@gov-design-system-ce/components 4.1.0-rc02 → 4.1.0-rc04

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 (531) hide show
  1. package/dist/cjs/core.cjs.js +2 -2
  2. package/dist/cjs/gov-accordion-item.cjs.entry.js +8 -5
  3. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/gov-attachments_3.cjs.entry.js +6 -6
  6. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  7. package/dist/cjs/gov-backdrop.cjs.entry.js +4 -4
  8. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +4 -4
  9. package/dist/cjs/gov-button.cjs.entry.js +6 -6
  10. package/dist/cjs/gov-card.cjs.entry.js +4 -4
  11. package/dist/cjs/gov-chip.cjs.entry.js +4 -4
  12. package/dist/cjs/gov-container.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
  14. package/dist/cjs/gov-cookiebar.cjs.entry.js +2 -2
  15. package/dist/cjs/gov-dialog.cjs.entry.js +4 -4
  16. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-dropdown.cjs.entry.js +3 -3
  18. package/dist/cjs/gov-empty.cjs.entry.js +2 -2
  19. package/dist/cjs/gov-error-code.cjs.entry.js +2 -2
  20. package/dist/cjs/gov-flex.cjs.entry.js +31 -0
  21. package/dist/cjs/gov-flex.cjs.entry.js.map +1 -0
  22. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
  23. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +2 -2
  24. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
  25. package/dist/cjs/gov-form-control.cjs.entry.js +3 -3
  26. package/dist/cjs/gov-form-file.cjs.entry.js +8 -3
  27. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-form-group.cjs.entry.js +2 -2
  29. package/dist/cjs/gov-form-input_2.cjs.entry.js +6 -6
  30. package/dist/cjs/gov-form-label.cjs.entry.js +2 -2
  31. package/dist/cjs/gov-form-multi-select.cjs.entry.js +7 -22
  32. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  33. package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
  34. package/dist/cjs/gov-form-radio-group.cjs.entry.js +2 -2
  35. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
  36. package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
  37. package/dist/cjs/gov-form-select.cjs.entry.js +4 -4
  38. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
  39. package/dist/cjs/gov-grid-item.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-grid.cjs.entry.js +2 -2
  41. package/dist/cjs/gov-icon.cjs.entry.js +2 -2
  42. package/dist/cjs/gov-infobar.cjs.entry.js +3 -3
  43. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
  45. package/dist/cjs/gov-layout.cjs.entry.js +2 -2
  46. package/dist/cjs/gov-lifecycle.cjs.entry.js +47 -0
  47. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -0
  48. package/dist/cjs/gov-loading.cjs.entry.js +2 -2
  49. package/dist/cjs/gov-message.cjs.entry.js +2 -2
  50. package/dist/cjs/gov-pagination.cjs.entry.js +3 -3
  51. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  52. package/dist/cjs/gov-spacer.cjs.entry.js +2 -2
  53. package/dist/cjs/gov-stepper-item.cjs.entry.js +3 -3
  54. package/dist/cjs/gov-stepper.cjs.entry.js +2 -2
  55. package/dist/cjs/gov-tabs-item.cjs.entry.js +3 -3
  56. package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
  57. package/dist/cjs/gov-tag.cjs.entry.js +2 -2
  58. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-theme-switch.cjs.entry.js +73 -0
  60. package/dist/cjs/gov-theme-switch.cjs.entry.js.map +1 -0
  61. package/dist/cjs/gov-tile.cjs.entry.js +2 -2
  62. package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
  63. package/dist/cjs/gov-toast.cjs.entry.js +5 -6
  64. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
  66. package/dist/cjs/gov-tooltip.cjs.entry.js +4 -4
  67. package/dist/cjs/gov-wizard-item.cjs.entry.js +4 -4
  68. package/dist/cjs/gov-wizard.cjs.entry.js +4 -4
  69. package/dist/cjs/{index-1af4880c.js → index-7ff4447c.js} +20 -4
  70. package/dist/cjs/index-7ff4447c.js.map +1 -0
  71. package/dist/cjs/loader.cjs.js +2 -2
  72. package/dist/cjs/{string.utils-2335838f.js → string.utils-b84c81cf.js} +2 -1
  73. package/dist/cjs/string.utils-b84c81cf.js.map +1 -0
  74. package/dist/cjs/{wcag-31089f70.js → wcag-b8d80c7d.js} +2 -2
  75. package/dist/cjs/{wcag-31089f70.js.map → wcag-b8d80c7d.js.map} +1 -1
  76. package/dist/collection/collection-manifest.json +2 -1
  77. package/dist/collection/components/gov-accordion/gov-accordion-item.js +8 -5
  78. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  79. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  80. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  81. package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
  82. package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
  83. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  84. package/dist/collection/components/gov-button/button/gov-button.js +3 -3
  85. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  86. package/dist/collection/components/gov-card/gov-card.js +1 -1
  87. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  88. package/dist/collection/components/gov-container/gov-container.js +1 -1
  89. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  90. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  91. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  92. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  93. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  94. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  95. package/dist/collection/components/gov-flex/constants.js +4 -0
  96. package/dist/collection/components/gov-flex/constants.js.map +1 -0
  97. package/dist/collection/components/gov-flex/gov-flex.js +127 -0
  98. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -0
  99. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -1
  100. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  101. package/dist/collection/components/gov-form/file/gov-form-file.js +6 -1
  102. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  103. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  104. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  105. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  106. package/dist/collection/components/gov-form/input/gov-form-input.js +3 -3
  107. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  108. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  109. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -28
  110. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  111. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  112. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  113. package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
  114. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  115. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  116. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  117. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  118. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  119. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  120. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +39 -0
  121. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -0
  122. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  123. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  124. package/dist/collection/components/gov-message/gov-message.js +1 -1
  125. package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
  126. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  127. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  128. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  129. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  130. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  131. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  132. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  133. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  134. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  135. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  136. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  137. package/dist/collection/components/gov-toast/gov-toast.js +3 -4
  138. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  139. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  140. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  141. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  142. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  143. package/dist/collection/pages/Forms.js +159 -159
  144. package/dist/collection/pages/Forms.js.map +1 -1
  145. package/dist/collection/pages/Grid.js +1 -1
  146. package/dist/collection/pages/Grid.js.map +1 -1
  147. package/dist/collection/pages/Spacer.js +1 -1
  148. package/dist/collection/pages/Spacer.js.map +1 -1
  149. package/dist/collection/pages/Tag.js +135 -160
  150. package/dist/collection/pages/Tag.js.map +1 -1
  151. package/dist/collection/pages/Wizard.js +1 -1
  152. package/dist/collection/pages/Wizard.js.map +1 -1
  153. package/dist/collection/utils/string.utils.js +1 -1
  154. package/dist/collection/utils/string.utils.js.map +1 -1
  155. package/dist/components/gov-accordion-item.js +1 -1
  156. package/dist/components/gov-accordion-item.js.map +1 -1
  157. package/dist/components/gov-accordion.js +1 -1
  158. package/dist/components/gov-attachments-item.js +1 -1
  159. package/dist/components/gov-attachments.js +1 -1
  160. package/dist/components/gov-backdrop.js +1 -1
  161. package/dist/components/gov-breadcrumbs.js +1 -1
  162. package/dist/components/gov-breadcrumbs.js.map +1 -1
  163. package/dist/components/gov-button.js +1 -1
  164. package/dist/components/gov-card.js +1 -1
  165. package/dist/components/gov-chip.js +1 -1
  166. package/dist/components/gov-container.js +1 -1
  167. package/dist/components/gov-control-group.js +1 -1
  168. package/dist/components/gov-cookiebar.js +1 -1
  169. package/dist/components/gov-dialog.js +1 -1
  170. package/dist/components/gov-dialog.js.map +1 -1
  171. package/dist/components/gov-dropdown.js +1 -1
  172. package/dist/components/gov-dropdown.js.map +1 -1
  173. package/dist/components/gov-empty.js +1 -1
  174. package/dist/components/gov-error-code.js +1 -1
  175. package/dist/components/{gov-app.d.ts → gov-flex.d.ts} +4 -4
  176. package/dist/components/gov-flex.js +2 -0
  177. package/dist/components/gov-flex.js.map +1 -0
  178. package/dist/components/gov-form-autocomplete.js +1 -1
  179. package/dist/components/gov-form-checkbox-group.js +1 -1
  180. package/dist/components/gov-form-checkbox.js +1 -1
  181. package/dist/components/gov-form-control.js +1 -1
  182. package/dist/components/gov-form-file.js +1 -1
  183. package/dist/components/gov-form-file.js.map +1 -1
  184. package/dist/components/gov-form-group.js +1 -1
  185. package/dist/components/gov-form-input.js +1 -1
  186. package/dist/components/gov-form-label.js +1 -1
  187. package/dist/components/gov-form-message.js +1 -1
  188. package/dist/components/gov-form-multi-select.js +1 -1
  189. package/dist/components/gov-form-multi-select.js.map +1 -1
  190. package/dist/components/gov-form-password-power.js +1 -1
  191. package/dist/components/gov-form-password-power.js.map +1 -1
  192. package/dist/components/gov-form-radio-group.js +1 -1
  193. package/dist/components/gov-form-radio.js +1 -1
  194. package/dist/components/gov-form-radio.js.map +1 -1
  195. package/dist/components/gov-form-search.js +1 -1
  196. package/dist/components/gov-form-select.js +1 -1
  197. package/dist/components/gov-form-switch.js +1 -1
  198. package/dist/components/gov-grid-item.js +1 -1
  199. package/dist/components/gov-grid.js +1 -1
  200. package/dist/components/gov-icon.js +1 -1
  201. package/dist/components/gov-infobar.js +1 -1
  202. package/dist/components/gov-infobar.js.map +1 -1
  203. package/dist/components/gov-layout-column.js +1 -1
  204. package/dist/components/gov-layout.js +1 -1
  205. package/dist/components/gov-lifecycle.d.ts +11 -0
  206. package/dist/components/gov-lifecycle.js +2 -0
  207. package/dist/components/gov-lifecycle.js.map +1 -0
  208. package/dist/components/gov-loading.js +1 -1
  209. package/dist/components/gov-loading.js.map +1 -1
  210. package/dist/components/gov-message.js +1 -1
  211. package/dist/components/gov-pagination.js +1 -1
  212. package/dist/components/gov-pagination.js.map +1 -1
  213. package/dist/components/gov-skeleton.js +1 -1
  214. package/dist/components/gov-spacer.js +1 -1
  215. package/dist/components/gov-stepper-item.js +1 -1
  216. package/dist/components/gov-stepper.js +1 -1
  217. package/dist/components/gov-tabs-item.js +1 -1
  218. package/dist/components/gov-tabs.js +1 -1
  219. package/dist/components/gov-tabs.js.map +1 -1
  220. package/dist/components/gov-tag.js +1 -1
  221. package/dist/components/gov-tag.js.map +1 -1
  222. package/dist/components/gov-theme-switch.js +1 -1
  223. package/dist/components/gov-tile.js +1 -1
  224. package/dist/components/gov-tiles.js +1 -1
  225. package/dist/components/gov-toast.js +1 -1
  226. package/dist/components/gov-toast.js.map +1 -1
  227. package/dist/components/gov-tooltip-content.js +1 -1
  228. package/dist/components/gov-tooltip-content.js.map +1 -1
  229. package/dist/components/gov-tooltip.js +1 -1
  230. package/dist/components/gov-wizard-item.js +1 -1
  231. package/dist/components/gov-wizard.js +1 -1
  232. package/dist/components/index.js +1 -1
  233. package/dist/components/p-02da2aee.js +2 -0
  234. package/dist/components/{p-e9b35956.js.map → p-02da2aee.js.map} +1 -1
  235. package/dist/components/p-1d3019f3.js +2 -0
  236. package/dist/components/{p-e183a7c7.js → p-1f3bb41d.js} +2 -2
  237. package/dist/components/{p-6e19816b.js → p-23b7e680.js} +2 -2
  238. package/dist/components/{p-5caf1fe1.js → p-387052e1.js} +2 -2
  239. package/dist/components/{p-c9a15c52.js → p-3b807239.js} +2 -2
  240. package/dist/components/{p-ae3dada7.js → p-42200001.js} +3 -3
  241. package/dist/components/p-42200001.js.map +1 -0
  242. package/dist/components/{p-ff0cf148.js → p-5cc316bc.js} +2 -2
  243. package/dist/components/{p-e20bb5dc.js → p-6ea84137.js} +2 -2
  244. package/dist/components/p-820b66c0.js +2 -0
  245. package/dist/components/{p-fe1842da.js.map → p-820b66c0.js.map} +1 -1
  246. package/dist/components/p-880743a5.js.map +1 -1
  247. package/dist/components/{p-736e4917.js → p-bd22e21d.js} +2 -2
  248. package/dist/components/{p-2da35aa8.js → p-c211c3e1.js} +2 -2
  249. package/dist/components/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  250. package/dist/components/p-cd6c2938.js.map +1 -0
  251. package/dist/components/{p-9a93146e.js → p-dcee21ca.js} +2 -2
  252. package/dist/core/core.css +158 -29
  253. package/dist/core/core.esm.js +1 -1
  254. package/dist/core/core.esm.js.map +1 -1
  255. package/dist/core/p-0a24806a.entry.js +2 -0
  256. package/dist/core/{p-9d0f20ec.entry.js.map → p-0a24806a.entry.js.map} +1 -1
  257. package/dist/core/{p-9ff8f059.entry.js → p-0d2c4d31.entry.js} +2 -2
  258. package/dist/core/p-10f9bf55.entry.js +2 -0
  259. package/dist/core/{p-17015e36.entry.js.map → p-10f9bf55.entry.js.map} +1 -1
  260. package/dist/core/{p-0a952b3c.entry.js → p-12680890.entry.js} +2 -2
  261. package/dist/core/p-1600c1fb.entry.js +2 -0
  262. package/dist/core/p-18025823.entry.js +2 -0
  263. package/dist/core/p-18025823.entry.js.map +1 -0
  264. package/dist/core/p-18dbe177.entry.js +2 -0
  265. package/dist/core/p-18dbe177.entry.js.map +1 -0
  266. package/dist/core/{p-74e9ad9d.entry.js → p-1a550eee.entry.js} +2 -2
  267. package/dist/core/{p-9b41ac88.entry.js → p-1f1895c0.entry.js} +2 -2
  268. package/dist/core/p-1fdc2457.entry.js +2 -0
  269. package/dist/core/p-212759be.entry.js +2 -0
  270. package/dist/core/{p-db940455.entry.js.map → p-212759be.entry.js.map} +1 -1
  271. package/dist/core/p-215504c1.entry.js +2 -0
  272. package/dist/core/p-2c3ddc57.entry.js +2 -0
  273. package/dist/core/{p-83039b10.entry.js.map → p-2c3ddc57.entry.js.map} +1 -1
  274. package/dist/core/p-31e7d262.entry.js +2 -0
  275. package/dist/core/p-31e7d262.entry.js.map +1 -0
  276. package/dist/core/{p-b3acb156.entry.js → p-32bba4e7.entry.js} +2 -2
  277. package/dist/core/{p-fa7caad6.entry.js → p-378e0723.entry.js} +2 -2
  278. package/dist/core/{p-0ebc8365.entry.js → p-3844a27d.entry.js} +2 -2
  279. package/dist/core/p-4cb4de7b.entry.js +2 -0
  280. package/dist/core/{p-aa8adc45.entry.js.map → p-4cb4de7b.entry.js.map} +1 -1
  281. package/dist/core/p-56f9e026.entry.js +2 -0
  282. package/dist/core/p-57b0e670.entry.js +2 -0
  283. package/dist/core/{p-b55fc943.entry.js.map → p-57b0e670.entry.js.map} +1 -1
  284. package/dist/core/p-58dc3ec3.entry.js +2 -0
  285. package/dist/core/p-58dc3ec3.entry.js.map +1 -0
  286. package/dist/core/p-5ad3097c.entry.js +2 -0
  287. package/dist/core/{p-a5489b0e.entry.js.map → p-5ad3097c.entry.js.map} +1 -1
  288. package/dist/core/p-668ca722.entry.js +2 -0
  289. package/dist/core/{p-f1be099b.entry.js → p-67200095.entry.js} +2 -2
  290. package/dist/core/p-731fe7d8.entry.js +2 -0
  291. package/dist/core/{p-5c88f415.entry.js.map → p-731fe7d8.entry.js.map} +1 -1
  292. package/dist/core/p-7591976a.entry.js +2 -0
  293. package/dist/core/p-75ea368b.entry.js +2 -0
  294. package/dist/core/{p-ab9ae7ba.entry.js → p-7b48b1b8.entry.js} +2 -2
  295. package/dist/core/p-7de47344.entry.js +2 -0
  296. package/dist/core/p-7de47344.entry.js.map +1 -0
  297. package/dist/core/p-83aa4327.entry.js +2 -0
  298. package/dist/core/{p-28a7d3f7.js → p-842cb87f.js} +2 -2
  299. package/dist/core/{p-a1e95a5f.js → p-8506b611.js} +3 -3
  300. package/dist/core/p-8506b611.js.map +1 -0
  301. package/dist/core/p-880743a5.js.map +1 -1
  302. package/dist/core/p-89b69743.entry.js +2 -0
  303. package/dist/core/p-8a796fbe.entry.js +2 -0
  304. package/dist/core/p-8f10919c.entry.js +2 -0
  305. package/dist/core/{p-f456bd71.entry.js.map → p-8f10919c.entry.js.map} +1 -1
  306. package/dist/core/p-8fe36a5b.entry.js +2 -0
  307. package/dist/core/p-915e53ac.entry.js +2 -0
  308. package/dist/core/{p-47e364bb.entry.js.map → p-915e53ac.entry.js.map} +1 -1
  309. package/dist/core/p-92e13f9d.entry.js +2 -0
  310. package/dist/core/p-a274cdaa.entry.js +2 -0
  311. package/dist/core/p-a274cdaa.entry.js.map +1 -0
  312. package/dist/core/p-a9a095c2.entry.js +2 -0
  313. package/dist/core/p-a9a095c2.entry.js.map +1 -0
  314. package/dist/core/{p-81b0848c.entry.js → p-ab68c0b7.entry.js} +2 -2
  315. package/dist/core/p-b50ffab3.entry.js +2 -0
  316. package/dist/core/p-b70cc248.entry.js +2 -0
  317. package/dist/core/p-b822b9ff.entry.js +2 -0
  318. package/dist/core/p-c0a5a3f7.entry.js +2 -0
  319. package/dist/core/p-c5b5fd69.entry.js +2 -0
  320. package/dist/core/{p-6d772ff9.entry.js.map → p-c5b5fd69.entry.js.map} +1 -1
  321. package/dist/core/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  322. package/dist/core/p-cd6c2938.js.map +1 -0
  323. package/dist/core/{p-3f2b803c.entry.js → p-d1c4eb91.entry.js} +2 -2
  324. package/dist/core/{p-d2351924.entry.js → p-d3963396.entry.js} +2 -2
  325. package/dist/core/p-d4fbc249.entry.js +2 -0
  326. package/dist/core/{p-5dc0af54.entry.js.map → p-d4fbc249.entry.js.map} +1 -1
  327. package/dist/core/{p-fc90bf06.entry.js → p-d949aac7.entry.js} +2 -2
  328. package/dist/core/p-e6af4c58.entry.js +2 -0
  329. package/dist/core/p-ede7af0a.entry.js +2 -0
  330. package/dist/core/p-ede7af0a.entry.js.map +1 -0
  331. package/dist/core/p-eebc9e71.entry.js +2 -0
  332. package/dist/core/{p-2ed3afef.entry.js → p-eebf7ad8.entry.js} +2 -2
  333. package/dist/core/{p-dc3fab19.entry.js → p-f1c8a96b.entry.js} +2 -2
  334. package/dist/core/{p-dc3fab19.entry.js.map → p-f1c8a96b.entry.js.map} +1 -1
  335. package/dist/core/{p-35e66bef.entry.js → p-f963bb2f.entry.js} +2 -2
  336. package/dist/core/p-fb0df3a5.entry.js +2 -0
  337. package/dist/core/{p-7cf554e6.entry.js.map → p-fb0df3a5.entry.js.map} +1 -1
  338. package/dist/esm/core.js +3 -3
  339. package/dist/esm/gov-accordion-item.entry.js +8 -5
  340. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  341. package/dist/esm/gov-accordion.entry.js +1 -1
  342. package/dist/esm/gov-attachments_3.entry.js +6 -6
  343. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  344. package/dist/esm/gov-backdrop.entry.js +4 -4
  345. package/dist/esm/gov-breadcrumbs.entry.js +4 -4
  346. package/dist/esm/gov-button.entry.js +6 -6
  347. package/dist/esm/gov-card.entry.js +4 -4
  348. package/dist/esm/gov-chip.entry.js +4 -4
  349. package/dist/esm/gov-container.entry.js +2 -2
  350. package/dist/esm/gov-control-group.entry.js +2 -2
  351. package/dist/esm/gov-cookiebar.entry.js +2 -2
  352. package/dist/esm/gov-dialog.entry.js +4 -4
  353. package/dist/esm/gov-dialog.entry.js.map +1 -1
  354. package/dist/esm/gov-dropdown.entry.js +3 -3
  355. package/dist/esm/gov-empty.entry.js +2 -2
  356. package/dist/esm/gov-error-code.entry.js +2 -2
  357. package/dist/esm/gov-flex.entry.js +27 -0
  358. package/dist/esm/gov-flex.entry.js.map +1 -0
  359. package/dist/esm/gov-form-autocomplete.entry.js +3 -3
  360. package/dist/esm/gov-form-checkbox-group.entry.js +2 -2
  361. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  362. package/dist/esm/gov-form-control.entry.js +3 -3
  363. package/dist/esm/gov-form-file.entry.js +8 -3
  364. package/dist/esm/gov-form-file.entry.js.map +1 -1
  365. package/dist/esm/gov-form-group.entry.js +2 -2
  366. package/dist/esm/gov-form-input_2.entry.js +6 -6
  367. package/dist/esm/gov-form-label.entry.js +2 -2
  368. package/dist/esm/gov-form-multi-select.entry.js +7 -22
  369. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  370. package/dist/esm/gov-form-password-power.entry.js +2 -2
  371. package/dist/esm/gov-form-radio-group.entry.js +2 -2
  372. package/dist/esm/gov-form-radio.entry.js +2 -2
  373. package/dist/esm/gov-form-search.entry.js +2 -2
  374. package/dist/esm/gov-form-select.entry.js +4 -4
  375. package/dist/esm/gov-form-switch.entry.js +2 -2
  376. package/dist/esm/gov-grid-item.entry.js +2 -2
  377. package/dist/esm/gov-grid.entry.js +2 -2
  378. package/dist/esm/gov-icon.entry.js +2 -2
  379. package/dist/esm/gov-infobar.entry.js +3 -3
  380. package/dist/esm/gov-infobar.entry.js.map +1 -1
  381. package/dist/esm/gov-layout-column.entry.js +2 -2
  382. package/dist/esm/gov-layout.entry.js +2 -2
  383. package/dist/esm/gov-lifecycle.entry.js +43 -0
  384. package/dist/esm/gov-lifecycle.entry.js.map +1 -0
  385. package/dist/esm/gov-loading.entry.js +2 -2
  386. package/dist/esm/gov-message.entry.js +2 -2
  387. package/dist/esm/gov-pagination.entry.js +3 -3
  388. package/dist/esm/gov-pagination.entry.js.map +1 -1
  389. package/dist/esm/gov-spacer.entry.js +2 -2
  390. package/dist/esm/gov-stepper-item.entry.js +3 -3
  391. package/dist/esm/gov-stepper.entry.js +2 -2
  392. package/dist/esm/gov-tabs-item.entry.js +3 -3
  393. package/dist/esm/gov-tabs.entry.js +2 -2
  394. package/dist/esm/gov-tag.entry.js +2 -2
  395. package/dist/esm/gov-tag.entry.js.map +1 -1
  396. package/dist/esm/gov-theme-switch.entry.js +69 -0
  397. package/dist/esm/gov-theme-switch.entry.js.map +1 -0
  398. package/dist/esm/gov-tile.entry.js +2 -2
  399. package/dist/esm/gov-tiles.entry.js +2 -2
  400. package/dist/esm/gov-toast.entry.js +5 -6
  401. package/dist/esm/gov-toast.entry.js.map +1 -1
  402. package/dist/esm/gov-tooltip-content.entry.js +2 -2
  403. package/dist/esm/gov-tooltip.entry.js +4 -4
  404. package/dist/esm/gov-wizard-item.entry.js +4 -4
  405. package/dist/esm/gov-wizard.entry.js +4 -4
  406. package/dist/esm/{index-d8b4eb6c.js → index-c263e031.js} +20 -4
  407. package/dist/esm/index-c263e031.js.map +1 -0
  408. package/dist/esm/loader.js +3 -3
  409. package/dist/esm/{string.utils-5ce3f551.js → string.utils-1da8f8fb.js} +2 -2
  410. package/dist/esm/string.utils-1da8f8fb.js.map +1 -0
  411. package/dist/esm/{wcag-fa5ce56c.js → wcag-d7c6c252.js} +2 -2
  412. package/dist/esm/{wcag-fa5ce56c.js.map → wcag-d7c6c252.js.map} +1 -1
  413. package/dist/hydrate/index.js +277 -10021
  414. package/dist/hydrate/index.mjs +277 -10021
  415. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +1 -0
  416. package/dist/types/components/gov-flex/constants.d.ts +3 -0
  417. package/dist/types/components/gov-flex/gov-flex.d.ts +33 -0
  418. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -0
  419. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -2
  420. package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  421. package/dist/types/components.d.ts +74 -13
  422. package/dist/types/utils/string.utils.d.ts +1 -0
  423. package/package.json +2 -2
  424. package/dist/cjs/gov-app_2.cjs.entry.js +0 -9891
  425. package/dist/cjs/gov-app_2.cjs.entry.js.map +0 -1
  426. package/dist/cjs/index-1af4880c.js.map +0 -1
  427. package/dist/cjs/string.utils-2335838f.js.map +0 -1
  428. package/dist/collection/components/gov-app/gov-app.css +0 -68
  429. package/dist/collection/components/gov-app/gov-app.js +0 -93
  430. package/dist/collection/components/gov-app/gov-app.js.map +0 -1
  431. package/dist/components/gov-app.js +0 -2
  432. package/dist/components/gov-app.js.map +0 -1
  433. package/dist/components/p-95d41a3b.js.map +0 -1
  434. package/dist/components/p-ae3dada7.js.map +0 -1
  435. package/dist/components/p-ae7e6127.js +0 -2
  436. package/dist/components/p-e9b35956.js +0 -2
  437. package/dist/components/p-fe1842da.js +0 -2
  438. package/dist/core/p-006e52f1.entry.js +0 -2
  439. package/dist/core/p-023787b3.entry.js +0 -2
  440. package/dist/core/p-023787b3.entry.js.map +0 -1
  441. package/dist/core/p-17015e36.entry.js +0 -2
  442. package/dist/core/p-182189d2.entry.js +0 -2
  443. package/dist/core/p-2effdd60.entry.js +0 -2
  444. package/dist/core/p-2effdd60.entry.js.map +0 -1
  445. package/dist/core/p-477a5027.entry.js +0 -2
  446. package/dist/core/p-477a5027.entry.js.map +0 -1
  447. package/dist/core/p-47e364bb.entry.js +0 -2
  448. package/dist/core/p-5c88f415.entry.js +0 -2
  449. package/dist/core/p-5dc0af54.entry.js +0 -2
  450. package/dist/core/p-5dcbfca3.entry.js +0 -2
  451. package/dist/core/p-663d3db2.entry.js +0 -2
  452. package/dist/core/p-6b42a387.entry.js +0 -2
  453. package/dist/core/p-6d772ff9.entry.js +0 -2
  454. package/dist/core/p-6ed147a6.entry.js +0 -2
  455. package/dist/core/p-6ed147a6.entry.js.map +0 -1
  456. package/dist/core/p-7cf554e6.entry.js +0 -2
  457. package/dist/core/p-83039b10.entry.js +0 -2
  458. package/dist/core/p-904de5e6.entry.js +0 -2
  459. package/dist/core/p-91a9cd24.entry.js +0 -2
  460. package/dist/core/p-95d41a3b.js.map +0 -1
  461. package/dist/core/p-963f9fcd.entry.js +0 -2
  462. package/dist/core/p-9d0f20ec.entry.js +0 -2
  463. package/dist/core/p-9dde00d8.entry.js +0 -2
  464. package/dist/core/p-a1e95a5f.js.map +0 -1
  465. package/dist/core/p-a1ebb4da.entry.js +0 -2
  466. package/dist/core/p-a53a277a.entry.js +0 -2
  467. package/dist/core/p-a5489b0e.entry.js +0 -2
  468. package/dist/core/p-a54f1db9.entry.js +0 -2
  469. package/dist/core/p-aa8adc45.entry.js +0 -2
  470. package/dist/core/p-b55fc943.entry.js +0 -2
  471. package/dist/core/p-b838bb27.entry.js +0 -2
  472. package/dist/core/p-c214c202.entry.js +0 -2
  473. package/dist/core/p-c214c202.entry.js.map +0 -1
  474. package/dist/core/p-c4c7cb24.entry.js +0 -2
  475. package/dist/core/p-db940455.entry.js +0 -2
  476. package/dist/core/p-e134b123.entry.js +0 -2
  477. package/dist/core/p-e4978aab.entry.js +0 -2
  478. package/dist/core/p-edc05eff.entry.js +0 -2
  479. package/dist/core/p-edc05eff.entry.js.map +0 -1
  480. package/dist/core/p-eeb9cb73.entry.js +0 -2
  481. package/dist/core/p-f141ad5e.entry.js +0 -2
  482. package/dist/core/p-f456bd71.entry.js +0 -2
  483. package/dist/esm/gov-app_2.entry.js +0 -9886
  484. package/dist/esm/gov-app_2.entry.js.map +0 -1
  485. package/dist/esm/index-d8b4eb6c.js.map +0 -1
  486. package/dist/esm/string.utils-5ce3f551.js.map +0 -1
  487. package/dist/types/components/gov-app/gov-app.d.ts +0 -37
  488. /package/dist/components/{p-ae7e6127.js.map → p-1d3019f3.js.map} +0 -0
  489. /package/dist/components/{p-e183a7c7.js.map → p-1f3bb41d.js.map} +0 -0
  490. /package/dist/components/{p-6e19816b.js.map → p-23b7e680.js.map} +0 -0
  491. /package/dist/components/{p-5caf1fe1.js.map → p-387052e1.js.map} +0 -0
  492. /package/dist/components/{p-c9a15c52.js.map → p-3b807239.js.map} +0 -0
  493. /package/dist/components/{p-ff0cf148.js.map → p-5cc316bc.js.map} +0 -0
  494. /package/dist/components/{p-e20bb5dc.js.map → p-6ea84137.js.map} +0 -0
  495. /package/dist/components/{p-736e4917.js.map → p-bd22e21d.js.map} +0 -0
  496. /package/dist/components/{p-2da35aa8.js.map → p-c211c3e1.js.map} +0 -0
  497. /package/dist/components/{p-9a93146e.js.map → p-dcee21ca.js.map} +0 -0
  498. /package/dist/core/{p-9ff8f059.entry.js.map → p-0d2c4d31.entry.js.map} +0 -0
  499. /package/dist/core/{p-0a952b3c.entry.js.map → p-12680890.entry.js.map} +0 -0
  500. /package/dist/core/{p-e4978aab.entry.js.map → p-1600c1fb.entry.js.map} +0 -0
  501. /package/dist/core/{p-74e9ad9d.entry.js.map → p-1a550eee.entry.js.map} +0 -0
  502. /package/dist/core/{p-9b41ac88.entry.js.map → p-1f1895c0.entry.js.map} +0 -0
  503. /package/dist/core/{p-5dcbfca3.entry.js.map → p-1fdc2457.entry.js.map} +0 -0
  504. /package/dist/core/{p-f141ad5e.entry.js.map → p-215504c1.entry.js.map} +0 -0
  505. /package/dist/core/{p-b3acb156.entry.js.map → p-32bba4e7.entry.js.map} +0 -0
  506. /package/dist/core/{p-fa7caad6.entry.js.map → p-378e0723.entry.js.map} +0 -0
  507. /package/dist/core/{p-0ebc8365.entry.js.map → p-3844a27d.entry.js.map} +0 -0
  508. /package/dist/core/{p-182189d2.entry.js.map → p-56f9e026.entry.js.map} +0 -0
  509. /package/dist/core/{p-b838bb27.entry.js.map → p-668ca722.entry.js.map} +0 -0
  510. /package/dist/core/{p-f1be099b.entry.js.map → p-67200095.entry.js.map} +0 -0
  511. /package/dist/core/{p-6b42a387.entry.js.map → p-7591976a.entry.js.map} +0 -0
  512. /package/dist/core/{p-963f9fcd.entry.js.map → p-75ea368b.entry.js.map} +0 -0
  513. /package/dist/core/{p-ab9ae7ba.entry.js.map → p-7b48b1b8.entry.js.map} +0 -0
  514. /package/dist/core/{p-eeb9cb73.entry.js.map → p-83aa4327.entry.js.map} +0 -0
  515. /package/dist/core/{p-28a7d3f7.js.map → p-842cb87f.js.map} +0 -0
  516. /package/dist/core/{p-904de5e6.entry.js.map → p-89b69743.entry.js.map} +0 -0
  517. /package/dist/core/{p-e134b123.entry.js.map → p-8a796fbe.entry.js.map} +0 -0
  518. /package/dist/core/{p-663d3db2.entry.js.map → p-8fe36a5b.entry.js.map} +0 -0
  519. /package/dist/core/{p-a53a277a.entry.js.map → p-92e13f9d.entry.js.map} +0 -0
  520. /package/dist/core/{p-81b0848c.entry.js.map → p-ab68c0b7.entry.js.map} +0 -0
  521. /package/dist/core/{p-a54f1db9.entry.js.map → p-b50ffab3.entry.js.map} +0 -0
  522. /package/dist/core/{p-c4c7cb24.entry.js.map → p-b70cc248.entry.js.map} +0 -0
  523. /package/dist/core/{p-91a9cd24.entry.js.map → p-b822b9ff.entry.js.map} +0 -0
  524. /package/dist/core/{p-a1ebb4da.entry.js.map → p-c0a5a3f7.entry.js.map} +0 -0
  525. /package/dist/core/{p-3f2b803c.entry.js.map → p-d1c4eb91.entry.js.map} +0 -0
  526. /package/dist/core/{p-d2351924.entry.js.map → p-d3963396.entry.js.map} +0 -0
  527. /package/dist/core/{p-fc90bf06.entry.js.map → p-d949aac7.entry.js.map} +0 -0
  528. /package/dist/core/{p-006e52f1.entry.js.map → p-e6af4c58.entry.js.map} +0 -0
  529. /package/dist/core/{p-9dde00d8.entry.js.map → p-eebc9e71.entry.js.map} +0 -0
  530. /package/dist/core/{p-2ed3afef.entry.js.map → p-eebf7ad8.entry.js.map} +0 -0
  531. /package/dist/core/{p-35e66bef.entry.js.map → p-f963bb2f.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as s,c as i,h as t,a as e,g as h}from"./p-a1e95a5f.js";import{c as a}from"./p-95d41a3b.js";import{v as n}from"./p-169b67af.js";import{g as o,h as r,i as c}from"./p-a693ffbf.js";import{g as d,c as l,t as p}from"./p-0075138f.js";import{F as m}from"./p-1c1d0bbe.js";import{A as f,a as u}from"./p-9ac55bd1.js";import{i as b}from"./p-d9a299a4.js";import"./p-b48a4aa0.js";import"./p-e0d428c9.js";import"./p-45a30859.js";import"./p-92f420cb.js";import"./p-6aa40794.js";import"./p-e3aeaca0.js";import"./p-42d9924c.js";import"./p-2614044c.js";const g=class{constructor(t){s(this,t);this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govChange=i(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=d(this.host);this.f=o(this.h)}validateSize(s){n(c,s,r.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new f(this.host,((s,i)=>{this.onAriaAttributeChange(s,i)}));this.attributeObserver.startObserving(u)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=b(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(s,i){this.host.removeAttribute(s);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[s]:i})}render(){const s=s=>{if(this.noLabel){return t("label",{class:r.label},s)}return s};return t(e,{class:this.h.classes(r.root),hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:p(this.invalid)},s(t(m,null,t("input",Object.assign({class:r.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:s=>this.inputRef=s,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":p(this.required),"aria-invalid":p(this.invalid),"aria-disabled":p(this.disabled)})),t("span",null,t("span",{class:r.indicator},this.checked&&t("gov-icon",{type:"basic",name:"check-lg"})),t("slot",{name:"label"})))))}onClickHandler(s){s.stopPropagation()}onFocusHandler(s){s.stopPropagation();this.govFocus.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}onBlurHandler(s){s.stopPropagation();this.govBlur.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}onChangeHandler(s){this.checked=s.target.checked;s.stopPropagation();this.govChange.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}async getRef(){return this.inputRef}get host(){return h(this)}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}};export{g as gov_form_switch};
2
- //# sourceMappingURL=p-35e66bef.entry.js.map
1
+ import{r as s,c as i,h as t,a as e,g as h}from"./p-8506b611.js";import{c as a}from"./p-cd6c2938.js";import{v as n}from"./p-169b67af.js";import{g as o,h as r,i as c}from"./p-a693ffbf.js";import{g as d,c as l,t as p}from"./p-0075138f.js";import{F as m}from"./p-1c1d0bbe.js";import{A as f,a as u}from"./p-9ac55bd1.js";import{i as b}from"./p-d9a299a4.js";import"./p-b48a4aa0.js";import"./p-e0d428c9.js";import"./p-45a30859.js";import"./p-92f420cb.js";import"./p-6aa40794.js";import"./p-e3aeaca0.js";import"./p-42d9924c.js";import"./p-2614044c.js";const g=class{constructor(t){s(this,t);this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govChange=i(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=d(this.host);this.f=o(this.h)}validateSize(s){n(c,s,r.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new f(this.host,((s,i)=>{this.onAriaAttributeChange(s,i)}));this.attributeObserver.startObserving(u)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=b(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(s,i){this.host.removeAttribute(s);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[s]:i})}render(){const s=s=>{if(this.noLabel){return t("label",{class:r.label},s)}return s};return t(e,{class:this.h.classes(r.root),hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:p(this.invalid)},s(t(m,null,t("input",Object.assign({class:r.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:s=>this.inputRef=s,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":p(this.required),"aria-invalid":p(this.invalid),"aria-disabled":p(this.disabled)})),t("span",null,t("span",{class:r.indicator},this.checked&&t("gov-icon",{type:"basic",name:"check-lg"})),t("slot",{name:"label"})))))}onClickHandler(s){s.stopPropagation()}onFocusHandler(s){s.stopPropagation();this.govFocus.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}onBlurHandler(s){s.stopPropagation();this.govBlur.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}onChangeHandler(s){this.checked=s.target.checked;s.stopPropagation();this.govChange.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}async getRef(){return this.inputRef}get host(){return h(this)}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}};export{g as gov_form_switch};
2
+ //# sourceMappingURL=p-f963bb2f.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as t,c as s,h as i,a as o,g as a}from"./p-8506b611.js";import{g as e,c as n}from"./p-0075138f.js";import{F as c}from"./p-1c1d0bbe.js";import{v as r}from"./p-169b67af.js";import{C as h}from"./p-e3aeaca0.js";import{a as l}from"./p-45a30859.js";import{A as b,a as d}from"./p-9ac55bd1.js";import{i as f}from"./p-d9a299a4.js";import"./p-b48a4aa0.js";import"./p-e0d428c9.js";const p=l(h,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var m;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(m||(m={}));const v={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const g=class{constructor(i){t(this,i);this.govClose=s(this,"gov-close",7);this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=e(this.host)}validateColor(t){r(p,t,v.root)}componentDidLoad(){this.attributeObserver=new b(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=i("gov-button",{key:"6d4f29f3bc1399f97833680692a69c4a1a2584b5",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:v.close},i("gov-icon",{key:"c1ae2403b5cbbf93aa248ed410882423b60f9915",name:"x-lg"}));return i(o,{key:"356c03e3e65b07704a677ce6fab744f97b499d92",class:this.h.classes(v.root),color:this.color,type:this.type},i("section",Object.assign({key:"cb599860defaae413b1c90c3bbdb83bfc22c3bfc",class:v.section},this.inheritedAttributes,{role:this.role}),i("slot",{key:"3f57ba1936c854f7889ab966a87493193d2ef42a",name:"icon"}),i("div",{key:"cd283d13c928691e6fd2d3a5f5fb47deaa7b6ffb",class:v.content},this.h.hasSlot("headline")?i(c,null,i("div",{class:v.headline},i("slot",{name:"headline"}),i("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},i("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down"}))),i("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},i("slot",null))):i("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:v.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return a(this)}static get watchers(){return{color:["validateColor"]}}};export{g as gov_infobar};
2
+ //# sourceMappingURL=p-fb0df3a5.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["InfobarColors","pick","Colors","InfobarType","InfobarClass","root","section","content","headline","close","GovInfobar","constructor","hostRef","undefined","this","h","govHost","host","validateColor","newValue","validateProp","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","color","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","stopObserving","removeAttribute","Object","assign","render","closeButton","key","size","accessibleCloseLabel","type","isBold","onCloseHandler","bind","class","name","Host","classes","role","hasSlot","Fragment","accessibleToggleLabel","toggleContent","hidden","toBoolAttr","closable","e","govClose","emit","component","ref","originalEvent"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\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\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\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\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taccessible-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taccessible-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"mappings":"0XAIO,MAAMA,EAAgBC,EAAKC,EAAQ,CAAC,UAAW,YAAa,UAAW,QAAS,UAAW,YAGlG,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,kBACA,EAHD,CAAYA,MAAW,KAMhB,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,QAAS,uBACTC,SAAU,wBACVC,MAAO,sB,MCHKC,EAAU,MAItB,WAAAC,CAAAC,G,yDASoC,U,UAIO,O,UAIEC,U,0BAIwC,0B,2BAIE,0B,cAQjD,M,mBAEb,M,yBACkB,GAnC1CC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAsCvB,aAAAC,CAAcC,GACbC,EAAapB,EAAemB,EAAUf,EAAaC,K,CAGpD,gBAAAgB,GACCP,KAAKQ,kBAAoB,IAAIC,EAAkBT,KAAKG,MAAM,CAACO,EAAeL,KACzEL,KAAKW,sBAAsBD,EAAeL,EAAS,IAGpDL,KAAKQ,kBAAkBI,eAAeC,E,CAGvC,iBAAAC,GACCd,KAAKI,cAAcJ,KAAKe,OACxBf,KAAKgB,oBAAsBC,EAAsBjB,KAAKG,K,CAGvD,oBAAAe,GACClB,KAAKQ,kBAAkBW,e,CAGxB,qBAAAR,CAAsBD,EAAuBL,GAC5CL,KAAKG,KAAKiB,gBAAgBV,GAC1BV,KAAKgB,oBAAmBK,OAAAC,OAAAD,OAAAC,OAAA,GAAOtB,KAAKgB,qBAAmB,CAAEN,CAACA,GAAgBL,G,CAG3E,MAAAkB,GACC,MAAMC,EACLvB,EAAA,cAAAwB,IAAA,2CAAYC,KAAK,IAAG,mBACC1B,KAAK2B,qBACvBC,KAAK,OACLb,MAAOf,KAAK6B,OAAS7B,KAAKe,MAAQ,UAAS,eAC7Bf,KAAK8B,eAAeC,KAAK/B,MACvCgC,MAAO1C,EAAaK,OACtBM,EAAA,YAAAwB,IAAA,2CAAUQ,KAAK,UAIjB,OACChC,EAACiC,EAAI,CAAAT,IAAA,2CAACO,MAAOhC,KAAKC,EAAEkC,QAAQ7C,EAAaC,MAAOwB,MAAOf,KAAKe,MAAOa,KAAM5B,KAAK4B,MAC7E3B,EAAA,UAAAoB,OAAAC,OAAA,CAAAG,IAAA,2CAASO,MAAO1C,EAAaE,SAAaQ,KAAKgB,oBAAmB,CAAEoB,KAAMpC,KAAKoC,OAC9EnC,EAAA,QAAAwB,IAAA,2CAAMQ,KAAK,SACXhC,EAAA,OAAAwB,IAAA,2CAAKO,MAAO1C,EAAaG,SACvBO,KAAKC,EAAEoC,QAAQ,YACfpC,EAACqC,EAAQ,KACRrC,EAAA,OAAK+B,MAAO1C,EAAaI,UACxBO,EAAA,QAAMgC,KAAM,aACZhC,EAAA,cACCyB,KAAK,IACLE,KAAK,OACLb,MAAOf,KAAK6B,OAAS7B,KAAKe,MAAQ,UAAS,mBACzBf,KAAKuC,sBAAqB,eAC9B,IAAOvC,KAAKwC,eAAiBxC,KAAKwC,eAEhDvC,EAAA,YAAUgC,KAAMjC,KAAKwC,cAAgB,aAAe,mBAGtDvC,EAAA,OAAKwC,QAASzC,KAAKwC,cAAa,cAAeE,EAAW1C,KAAKwC,gBAC9DvC,EAAA,eAIFA,EAAA,cAGDD,KAAK2C,UAAYnB,G,CAMtB,cAAAM,CAAec,GACd5C,KAAK6C,SAASC,KAAK,CAClBC,UAAWzD,EAAaC,KACxByD,IAAKhD,KAAKG,KACV8C,cAAeL,G,CAIjB,UAAIf,GACH,OAAO7B,KAAK4B,OAAS,M","ignoreList":[]}
1
+ {"version":3,"names":["InfobarColors","pick","Colors","InfobarType","InfobarClass","root","section","content","headline","close","GovInfobar","constructor","hostRef","undefined","this","h","govHost","host","validateColor","newValue","validateProp","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","color","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","stopObserving","removeAttribute","Object","assign","render","closeButton","key","size","accessibleCloseLabel","type","isBold","onCloseHandler","bind","class","name","Host","classes","role","hasSlot","Fragment","accessibleToggleLabel","toggleContent","hidden","toBoolAttr","closable","e","govClose","emit","component","ref","originalEvent"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\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\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\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\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"mappings":"0XAIO,MAAMA,EAAgBC,EAAKC,EAAQ,CAAC,UAAW,YAAa,UAAW,QAAS,UAAW,YAGlG,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,kBACA,EAHD,CAAYA,MAAW,KAMhB,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,QAAS,uBACTC,SAAU,wBACVC,MAAO,sB,MCHKC,EAAU,MAItB,WAAAC,CAAAC,G,yDASoC,U,UAIO,O,UAIEC,U,0BAIwC,0B,2BAIE,0B,cAQjD,M,mBAEb,M,yBACkB,GAnC1CC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAsCvB,aAAAC,CAAcC,GACbC,EAAapB,EAAemB,EAAUf,EAAaC,K,CAGpD,gBAAAgB,GACCP,KAAKQ,kBAAoB,IAAIC,EAAkBT,KAAKG,MAAM,CAACO,EAAeL,KACzEL,KAAKW,sBAAsBD,EAAeL,EAAS,IAGpDL,KAAKQ,kBAAkBI,eAAeC,E,CAGvC,iBAAAC,GACCd,KAAKI,cAAcJ,KAAKe,OACxBf,KAAKgB,oBAAsBC,EAAsBjB,KAAKG,K,CAGvD,oBAAAe,GACClB,KAAKQ,kBAAkBW,e,CAGxB,qBAAAR,CAAsBD,EAAuBL,GAC5CL,KAAKG,KAAKiB,gBAAgBV,GAC1BV,KAAKgB,oBAAmBK,OAAAC,OAAAD,OAAAC,OAAA,GAAOtB,KAAKgB,qBAAmB,CAAEN,CAACA,GAAgBL,G,CAG3E,MAAAkB,GACC,MAAMC,EACLvB,EAAA,cAAAwB,IAAA,2CAAYC,KAAK,IAAG,aACL1B,KAAK2B,qBACjBC,KAAK,OACLb,MAAOf,KAAK6B,OAAS7B,KAAKe,MAAQ,UAAS,eAC7Bf,KAAK8B,eAAeC,KAAK/B,MACvCgC,MAAO1C,EAAaK,OACtBM,EAAA,YAAAwB,IAAA,2CAAUQ,KAAK,UAIjB,OACChC,EAACiC,EAAI,CAAAT,IAAA,2CAACO,MAAOhC,KAAKC,EAAEkC,QAAQ7C,EAAaC,MAAOwB,MAAOf,KAAKe,MAAOa,KAAM5B,KAAK4B,MAC7E3B,EAAA,UAAAoB,OAAAC,OAAA,CAAAG,IAAA,2CAASO,MAAO1C,EAAaE,SAAaQ,KAAKgB,oBAAmB,CAAEoB,KAAMpC,KAAKoC,OAC9EnC,EAAA,QAAAwB,IAAA,2CAAMQ,KAAK,SACXhC,EAAA,OAAAwB,IAAA,2CAAKO,MAAO1C,EAAaG,SACvBO,KAAKC,EAAEoC,QAAQ,YACfpC,EAACqC,EAAQ,KACRrC,EAAA,OAAK+B,MAAO1C,EAAaI,UACxBO,EAAA,QAAMgC,KAAM,aACZhC,EAAA,cACCyB,KAAK,IACLE,KAAK,OACLb,MAAOf,KAAK6B,OAAS7B,KAAKe,MAAQ,UAAS,aAC/Bf,KAAKuC,sBAAqB,eACxB,IAAOvC,KAAKwC,eAAiBxC,KAAKwC,eAEhDvC,EAAA,YAAUgC,KAAMjC,KAAKwC,cAAgB,aAAe,mBAGtDvC,EAAA,OAAKwC,QAASzC,KAAKwC,cAAa,cAAeE,EAAW1C,KAAKwC,gBAC9DvC,EAAA,eAIFA,EAAA,cAGDD,KAAK2C,UAAYnB,G,CAMtB,cAAAM,CAAec,GACd5C,KAAK6C,SAASC,KAAK,CAClBC,UAAWzD,EAAaC,KACxByD,IAAKhD,KAAKG,KACV8C,cAAeL,G,CAIjB,UAAIf,GACH,OAAO7B,KAAK4B,OAAS,M","ignoreList":[]}
package/dist/esm/core.js CHANGED
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, H, b as bootstrapLazy } from './index-d8b4eb6c.js';
2
- export { s as setNonce } from './index-d8b4eb6c.js';
1
+ import { p as promiseResolve, H, b as bootstrapLazy } from './index-c263e031.js';
2
+ export { s as setNonce } from './index-c263e031.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
@@ -37,7 +37,7 @@ var patchCloneNodeFix = (HTMLElementPrototype) => {
37
37
 
38
38
  patchBrowser().then(async (options) => {
39
39
  await globalScripts();
40
- return bootstrapLazy(JSON.parse("[[\"gov-form-file\",[[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\",[[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\",\"watchControlAttrs\"],\"options\":[\"watchOptions\"],\"value\":[\"watchValue\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"]}]]],[\"gov-dialog\",[[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\",[[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\",[[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\",[[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\",[[4,\"gov-loading\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-tabs\",[[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\",[[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\",[[4,\"gov-tooltip-content\",{\"color\":[1],\"size\":[1],\"persist\":[4],\"isVisible\":[1028,\"is-visible\"],\"parentId\":[1,\"parent-id\"]},null,{\"isVisible\":[\"visibleContent\"]}]]],[\"gov-accordion-item\",[[4,\"gov-accordion-item\",{\"identifier\":[1],\"size\":[1],\"disabled\":[4],\"open\":[1028],\"openState\":[32],\"toggle\":[64],\"currentState\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-card\",[[4,\"gov-card\",{\"promotion\":[4],\"collapsible\":[4],\"open\":[1540],\"accessibleTriggerLabel\":[1,\"accessible-label\"],\"accessibleTriggerLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-form-checkbox\",[[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\",[[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\",[[4,\"gov-tag\",{\"iconLeft\":[1,\"icon-left\"],\"iconRight\":[1,\"icon-right\"],\"size\":[513],\"color\":[513],\"type\":[513]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-tile\",[[4,\"gov-tile\",{\"size\":[513],\"orientation\":[1],\"noBorder\":[4,\"no-border\"],\"href\":[513],\"target\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizard-item\",[[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-app_2\",[[0,\"gov-app\"],[0,\"gov-theme-switch\",{\"theme\":[32]}]]],[\"gov-accordion\",[[4,\"gov-accordion\",{\"size\":[1],\"noBorder\":[4,\"no-border\"]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-container\",[[4,\"gov-container\",{\"slottedChildren\":[64]}]]],[\"gov-control-group\",[[4,\"gov-control-group\",{\"color\":[1],\"noBorder\":[4,\"no-border\"],\"fitContent\":[4,\"fit-content\"]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-cookiebar\",[[4,\"gov-cookiebar\"]]],[\"gov-dropdown\",[[4,\"gov-dropdown\",{\"identifier\":[1],\"open\":[1028],\"position\":[1],\"getState\":[64],\"toggle\":[64]},null,{\"open\":[\"watchOpen\"]}]]],[\"gov-empty\",[[4,\"gov-empty\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-error-code\",[[4,\"gov-error-code\"]]],[\"gov-form-checkbox-group\",[[4,\"gov-form-checkbox-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-control\",[[4,\"gov-form-control\",{\"identifier\":[1],\"invalid\":[516],\"disabled\":[516],\"success\":[516],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group\",[[4,\"gov-form-group\",{\"gap\":[1],\"orientation\":[1]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-label\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-password-power\",[[4,\"gov-form-password-power\",{\"power\":[514]}]]],[\"gov-form-radio\",[[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\",[[4,\"gov-form-radio-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-search\",[[4,\"gov-form-search\",{\"size\":[1],\"color\":[513]}]]],[\"gov-grid\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column\",[[4,\"gov-layout-column\"]]],[\"gov-message\",[[4,\"gov-message\",{\"color\":[1],\"type\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-spacer\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]},null,{\"size\":[\"validateSize\"],\"breakpoint\":[\"validateBreakpoint\"]}]]],[\"gov-stepper\",[[4,\"gov-stepper\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-stepper-item\",[[4,\"gov-stepper-item\",{\"color\":[1],\"size\":[1],\"identifier\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-tabs-item\",[[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\",[[4,\"gov-tiles\",{\"columns\":[514]}]]],[\"gov-tooltip\",[[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\",[[4,\"gov-wizard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-icon\",[[0,\"gov-icon\",{\"color\":[513],\"name\":[513],\"type\":[513],\"visible\":[32],\"error\":[32]},null,{\"color\":[\"validateColor\"],\"name\":[\"loadIconPathData\"]}]]],[\"gov-button\",[[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\",[[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\",[[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\",[[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\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"disabled\":[1540],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-attachments_3\",[[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\",[[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);
40
+ return bootstrapLazy(JSON.parse("[[\"gov-form-file\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[4,\"gov-loading\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-tabs\",[[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\",[[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\",[[4,\"gov-tooltip-content\",{\"color\":[1],\"size\":[1],\"persist\":[4],\"isVisible\":[1028,\"is-visible\"],\"parentId\":[1,\"parent-id\"]},null,{\"isVisible\":[\"visibleContent\"]}]]],[\"gov-accordion-item\",[[4,\"gov-accordion-item\",{\"identifier\":[1],\"size\":[1025],\"disabled\":[4],\"open\":[1028],\"openState\":[32],\"toggle\":[64],\"currentState\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-card\",[[4,\"gov-card\",{\"promotion\":[4],\"collapsible\":[4],\"open\":[1540],\"accessibleTriggerLabel\":[1,\"accessible-label\"],\"accessibleTriggerLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-form-checkbox\",[[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\",[[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\",[[4,\"gov-tag\",{\"iconLeft\":[1,\"icon-left\"],\"iconRight\":[1,\"icon-right\"],\"size\":[513],\"color\":[513],\"type\":[513]},null,{\"color\":[\"validateColor\"],\"size\":[\"validateSize\"]}]]],[\"gov-tile\",[[4,\"gov-tile\",{\"size\":[513],\"orientation\":[1],\"noBorder\":[4,\"no-border\"],\"href\":[513],\"target\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizard-item\",[[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\",[[4,\"gov-accordion\",{\"size\":[1],\"noBorder\":[4,\"no-border\"]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-container\",[[4,\"gov-container\",{\"slottedChildren\":[64]}]]],[\"gov-control-group\",[[4,\"gov-control-group\",{\"color\":[1],\"noBorder\":[4,\"no-border\"],\"fitContent\":[4,\"fit-content\"]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-cookiebar\",[[4,\"gov-cookiebar\"]]],[\"gov-dropdown\",[[4,\"gov-dropdown\",{\"identifier\":[1],\"open\":[1028],\"position\":[1],\"getState\":[64],\"toggle\":[64]},null,{\"open\":[\"watchOpen\"]}]]],[\"gov-empty\",[[4,\"gov-empty\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-error-code\",[[4,\"gov-error-code\"]]],[\"gov-flex\",[[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\",[[4,\"gov-form-checkbox-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-control\",[[4,\"gov-form-control\",{\"identifier\":[1],\"invalid\":[516],\"disabled\":[516],\"success\":[516],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group\",[[4,\"gov-form-group\",{\"gap\":[1],\"orientation\":[1]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-label\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-password-power\",[[4,\"gov-form-password-power\",{\"power\":[514]}]]],[\"gov-form-radio\",[[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\",[[4,\"gov-form-radio-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-search\",[[4,\"gov-form-search\",{\"size\":[1],\"color\":[513]}]]],[\"gov-grid\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column\",[[4,\"gov-layout-column\"]]],[\"gov-lifecycle\",[[0,\"gov-lifecycle\"]]],[\"gov-message\",[[4,\"gov-message\",{\"color\":[1],\"type\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-spacer\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]},null,{\"size\":[\"validateSize\"],\"breakpoint\":[\"validateBreakpoint\"]}]]],[\"gov-stepper\",[[4,\"gov-stepper\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-stepper-item\",[[4,\"gov-stepper-item\",{\"color\":[1],\"size\":[1],\"identifier\":[1]},null,{\"color\":[\"validateColor\"]}]]],[\"gov-tabs-item\",[[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\",[[0,\"gov-theme-switch\",{\"theme\":[32]}]]],[\"gov-tiles\",[[4,\"gov-tiles\",{\"columns\":[514]}]]],[\"gov-tooltip\",[[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\",[[4,\"gov-wizard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-icon\",[[0,\"gov-icon\",{\"color\":[513],\"name\":[513],\"type\":[513],\"visible\":[32],\"error\":[32]},null,{\"color\":[\"validateColor\"],\"name\":[\"loadIconPathData\"]}]]],[\"gov-button\",[[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\",[[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\",[[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\",[[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\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"disabled\":[1540],\"accessibleLabel\":[1,\"accessible-label\"],\"accessibleLabelledBy\":[1,\"accessible-labelledby\"],\"validateAccessibility\":[64]}]]],[\"gov-attachments_3\",[[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\",[[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);
41
41
  });
42
42
 
43
43
  //# sourceMappingURL=core.js.map
@@ -1,8 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
2
  import { v as validateProp } from './props-c82e1abf.js';
3
3
  import { a as AccordionClass, A as AccordionItemClass, b as AccordionSizes } from './constants-d6418889.js';
4
4
  import { g as govHost, t as toBoolAttrIfDefined, b as booleanString } from './template-3d84d705.js';
5
5
  import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
6
+ import { t as tick } from './stencil.utils-f3c6c68d.js';
6
7
  import './gov.log-6e9faad2.js';
7
8
  import './win-cec370ad.js';
8
9
  import './utils-2b4ef320.js';
@@ -25,10 +26,12 @@ const GovAccordionItem = class {
25
26
  validateProp(AccordionSizes, newValue, AccordionItemClass.root);
26
27
  }
27
28
  componentWillLoad() {
28
- this.getPropsFromParents();
29
29
  this.validateSize(this.size);
30
30
  this.inheritedAttributes = inheritAriaAttributes(this.host);
31
31
  }
32
+ componentDidRender() {
33
+ tick(() => this.getPropsFromParents());
34
+ }
32
35
  getPropsFromParents() {
33
36
  const accordion = this.h.getParent(AccordionClass.root);
34
37
  if (accordion) {
@@ -36,13 +39,13 @@ const GovAccordionItem = class {
36
39
  }
37
40
  }
38
41
  render() {
39
- return (h(Host, { key: 'cd78429326c306d9ab9fdc15954cd7029aa3ee35', class: this.h.classes([AccordionItemClass.root,
40
- this.disabled && AccordionItemClass.disabled]), size: this.size, role: "listitem" }, h("details", { key: '5372c71057418b93711f7d2c6065a6cc669105ff', class: AccordionItemClass.details, id: this.identifier, "aria-disabled": toBoolAttrIfDefined(this.disabled), open: this.open }, h("summary", Object.assign({ key: 'a2e06472048b79b206dc4421e43f0afd877b9be6', onClick: (e) => {
42
+ return (h(Host, { key: '1beb62527ea9274e6280ce0b64c9d52c12e4a993', class: this.h.classes([AccordionItemClass.root,
43
+ this.disabled && AccordionItemClass.disabled]), size: this.size, role: "listitem" }, h("details", { key: '53ca7688e8f26e85cd76feb073a26d04c5505d2b', class: AccordionItemClass.details, id: this.identifier, "aria-disabled": toBoolAttrIfDefined(this.disabled), open: this.open }, h("summary", Object.assign({ key: '19fec49b0066b7a6162a6010e0ee20431c2a578b', onClick: (e) => {
41
44
  e.stopPropagation();
42
45
  e.preventDefault();
43
46
  !this.disabled && this.toggle().finally();
44
47
  }, class: AccordionItemClass.summary, tabIndex: this.disabled ? -1 : 0, "aria-expanded": booleanString(this.open) }, this.inheritedAttributes), this.h.hasSlot('icon') &&
45
- h("span", { key: 'a2e6529d090c59ef45c8f7dbfd452165eebdf6e5', class: AccordionItemClass.icon }, h("slot", { key: 'ec572df22db3551aeb1baa31077d2bb368db88ca', name: "icon" })), h("span", { key: '44451f5e8df2550217af485162015a0810b2735e', class: AccordionItemClass.title }, h("slot", { key: '7f1c09f9537fe337a95e67b6f0c90c9c00ca00c1', name: "label" }), h("slot", { key: '84d426afff5847ffe57a96c12c163219a8720872', name: "annotation" })), h("span", { key: 'c4e37d6e8726486a043dd1def487d14e9678585b', class: AccordionItemClass.right }, h("slot", { key: 'b29e5714737ce05b8d194ce693dc4729e6b0e8a0', name: "suffix" }), h("span", { key: '1bd99c3f807ebc20ba4545d1c09325ce5b940d1a', class: AccordionItemClass.arrow }, h("slot", { key: 'ec2f902bccb6f21701238b822d72e7b2819c20c3', name: "toggle-icon" }, h("gov-icon", { key: 'ab143aace36d062bfb6e78c2f3544a0efb52cb49', name: "chevron-down" }))))), h("div", { key: '253f1a692a13698306d2f2f1b050252b7a798886', class: AccordionItemClass.content }, h("slot", { key: 'f51877b9d3f58f29bced6949b170529ddbf45864' })))));
48
+ 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' })))));
46
49
  }
47
50
  /**
48
51
  * Accordion switch
@@ -1 +1 @@
1
- {"file":"gov-accordion-item.entry.js","mappings":"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","names":[],"sources":["../../../packages/core/src/components/gov-accordion/gov-accordion-item.tsx"],"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\";\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() 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.getPropsFromParents()\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\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"],"version":3}
1
+ {"file":"gov-accordion-item.entry.js","mappings":"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","names":[],"sources":["../../../packages/core/src/components/gov-accordion/gov-accordion-item.tsx"],"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"],"version":3}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
2
  import { v as validateProp } from './props-c82e1abf.js';
3
3
  import { A as AccordionItemClass, a as AccordionClass, b as AccordionSizes } from './constants-d6418889.js';
4
4
  import { g as govHost } from './template-3d84d705.js';
@@ -1,11 +1,11 @@
1
- import { r as registerInstance, h, a as Host, g as getElement, c as createEvent } from './index-d8b4eb6c.js';
2
- import { b as validateWcagProp, v as validateAccessibleLabel } from './wcag-fa5ce56c.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement, c as createEvent } from './index-c263e031.js';
2
+ import { b as validateWcagProp, v as validateAccessibleLabel } from './wcag-d7c6c252.js';
3
3
  import { c as canValidateWcagOnRender } from './win-cec370ad.js';
4
4
  import { d as delay } from './utils-2b4ef320.js';
5
5
  import { g as govHost } from './template-3d84d705.js';
6
6
  import { F as FormMessageClass, a as FormMessageColors } from './constants-7307438d.js';
7
7
  import { v as validateProp } from './props-c82e1abf.js';
8
- import { c as createID } from './string.utils-5ce3f551.js';
8
+ import { c as createID } from './string.utils-1da8f8fb.js';
9
9
  import './gov.log-6e9faad2.js';
10
10
  import './helpers.types-43ddbdb8.js';
11
11
  import './colors-02c1ea96.js';
@@ -37,7 +37,7 @@ const GovAttachments = class {
37
37
  }
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: 'd2b3c1f40f3c5eab7b179c68985d23ed776e9337', class: this.h.classes(AttachmentsClass.root) }, this.label ? h("p", { class: AttachmentsClass.label }, this.label) : null, h("div", { key: 'bbceab5ca1b5443eb7aa8074c2f788fe0e3e7090', class: AttachmentsClass.list, role: "list", "aria-label": this.wcagLabel }, h("slot", { key: '6d1a9999824cdc35e28543d80518855057cf99ce' }))));
40
+ return (h(Host, { key: '01d6046e8da3b76924fa9c3124cec31e5b81d4c5', class: this.h.classes(AttachmentsClass.root) }, this.label ? h("p", { class: AttachmentsClass.label }, this.label) : null, h("div", { key: '88936d984563a5815b90cba8b1b5ee0f71ee3460', class: AttachmentsClass.list, role: "list", "aria-label": this.wcagLabel }, h("slot", { key: '99c6427772c71388f027595a1fdf13ed4956a474' }))));
41
41
  }
42
42
  /**
43
43
  * Validate the WCAG attributes of the component
@@ -66,7 +66,7 @@ const GovAttachmentsItem = class {
66
66
  }
67
67
  }
68
68
  render() {
69
- return (h(Host, { key: 'f7878b14f668e2a1b23368dfcdea2e65e5de13b6', class: this.h.classes(AttachmentsItemClass.root), role: "listitem" }, h("div", { key: '4aaa01614a40507bc74d524756be66aac0632a4f', class: AttachmentsItemClass.file }, h("p", { key: '26eb87dd09942ee1d9bbf4bb13a76b4cb0240902', class: AttachmentsItemClass.name }, h("slot", { key: '5d4b3f690907e557526c9c22c88705a7e9ee3ef7' }), h("slot", { key: '1eff0d73e720ce22936a0004c476c3e01cbd88e1', name: "info" })), h("gov-button", { key: 'e2395e9c5139093e01bd48b14221643394a22c6c', color: "primary", type: "base", size: "s", "accessible-label": this.accessibleRemoveLabel, "accessible-labelledby": this.accessibleRemoveLabelledBy, "on-gov-click": this.govRemove.emit }, h("gov-icon", { key: 'c592f72a09dfce70c0cd2563ec0d781cc65ad77c', slot: "left-icon", name: "x-lg" }))), this.h.hasSlot('message') && (h("div", { key: '0bffbbe4622f291fd269637a4b4ff8c624fb04f7', class: AttachmentsItemClass.messages }, h("slot", { key: '2e6ad7d812e9b68f5c0e88ca734bf0bba78924a2', name: "message" })))));
69
+ 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" })))));
70
70
  }
71
71
  /**
72
72
  * Validate the accessible attributes of the component
@@ -93,7 +93,7 @@ const GovFormMessage = class {
93
93
  this.validateColor(this.color);
94
94
  }
95
95
  render() {
96
- return (h(Host, { key: 'ac4af62e187d42b15193c89ba91298612282ee3a', class: this.h.classes(FormMessageClass.root), color: this.color, size: this.size }, this.h.hasSlot('icon') && (h("slot", { key: 'baff038a9608571e038cd332d3d3b2fcaef649e9', name: "icon" })), h("span", { key: '15ec497fae5179dd5bce22c4a675d10936bdaffe', id: this.messageId, class: FormMessageClass.content }, h("slot", { key: '17f605a52a170e8202e07e0089a70e86a8e47b7b' }))));
96
+ return (h(Host, { key: '4fcfd955e1c76eb390db59b2894cd3b08ac47c1c', class: this.h.classes(FormMessageClass.root), color: this.color, size: this.size }, this.h.hasSlot('icon') && (h("slot", { key: '549c4073e26a05492212b546c92789bdf9f25575', name: "icon" })), h("span", { key: '9758bf8ce3f0c48ddca72b57eadc1f4e38da5d93', id: this.messageId, class: FormMessageClass.content }, h("slot", { key: '6e3be2fbc214c31be072fd09c81bbf5bf7c24564' }))));
97
97
  }
98
98
  /**
99
99
  * Returns unique identifier of message
@@ -1 +1 @@
1
- {"file":"gov-attachments.gov-attachments-item.gov-form-message.entry.js","mappings":"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","names":[],"sources":["../../../packages/core/src/components/gov-attachments/constants.ts","../../../packages/core/src/components/gov-attachments/gov-attachments.tsx","../../../packages/core/src/components/gov-attachments/gov-attachments-item.scss?tag=gov-attachments-item","../../../packages/core/src/components/gov-attachments/gov-attachments-item.tsx","../../../packages/core/src/components/gov-form/message/gov-form-message.tsx"],"sourcesContent":["export const AttachmentsClass = {\n\troot: 'gov-attachments',\n\tlabel: 'gov-attachments__label',\n\tlist: 'gov-attachments__list',\n}\n\nexport const AttachmentsItemClass = {\n\troot: 'gov-attachments-item',\n\tname: 'gov-attachments-item__name',\n\tfile: 'gov-attachments-item__file',\n\tmessages: 'gov-attachments-item__messages',\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { AttachmentsClass } from './constants'\nimport { validateWcagProp } 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',\n})\nexport class GovAttachments {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsElement\n\t/**\n\t * Label of attachments section\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Adds accessible label for the attachment section that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsClass.root)}>\n\t\t\t\t{this.label ? <p class={AttachmentsClass.label}>{this.label}</p> : null}\n\t\t\t\t<div class={AttachmentsClass.list} role=\"list\" aria-label={this.wcagLabel}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagProp(this.wcagLabel, 'wcag-label', AttachmentsClass.root)\n\t}\n}\n","/* Attachments - Item */\n\n\ngov-attachments-item, .gov-attachments-item {\n\t// VARIABLES\n\t@import \"gov-attachments-variables\";\n\n\t@include base($display: flex);\n\tgap: var(--spacing-s);\n\t&__messages {\n\t\t@include reset-last-margin();\n\t}\n\t&__file {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t}\n\t&__name {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t\tflex-wrap: wrap;\n\t\talign-items: center;\n\t\tmargin: 0;\n\t\tcolor: $attachments-name-color;\n\t\tspan {\n\t\t\t@include typography(\"xs\");\n\t\t\tcolor: $attachments-decor-color;\n\t\t}\n\t}\n}\n","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\taccessible-label={this.accessibleRemoveLabel}\n\t\t\t\t\t\taccessible-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","import { Component, Element, h, Host, Method, Prop, Watch } from '@stencil/core'\nimport {FormMessageClass, FormMessageSizesTypes, FormMessageColors, FormMessageColorType} from './constants'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { createID } from '../../../utils/string.utils'\n\n@Component({\n\ttag: 'gov-form-message',\n})\nexport class GovFormMessage {\n\th: GovHost\n\tprivate readonly messageId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.messageId = createID('GovFormMessage')\n\t}\n\n\t@Element() host: HTMLGovFormMessageElement\n\t/**\n\t * Style variation of the message.\n\t */\n\t@Prop({ attribute: 'color' }) readonly color?: FormMessageColorType = 'neutral'\n\t/**\n\t * Message's size.\n\t */\n\t@Prop() readonly size?: FormMessageSizesTypes = 'm'\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(FormMessageColors, newValue, FormMessageClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormMessageClass.root)} color={this.color} size={this.size}>\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\t\t\t\t<span id={this.messageId} class={FormMessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns unique identifier of message\n\t */\n\t@Method()\n\tasync identifier(): Promise<string> {\n\t\treturn this.messageId\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-attachments.gov-attachments-item.gov-form-message.entry.js","mappings":"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","names":[],"sources":["../../../packages/core/src/components/gov-attachments/constants.ts","../../../packages/core/src/components/gov-attachments/gov-attachments.tsx","../../../packages/core/src/components/gov-attachments/gov-attachments-item.scss?tag=gov-attachments-item","../../../packages/core/src/components/gov-attachments/gov-attachments-item.tsx","../../../packages/core/src/components/gov-form/message/gov-form-message.tsx"],"sourcesContent":["export const AttachmentsClass = {\n\troot: 'gov-attachments',\n\tlabel: 'gov-attachments__label',\n\tlist: 'gov-attachments__list',\n}\n\nexport const AttachmentsItemClass = {\n\troot: 'gov-attachments-item',\n\tname: 'gov-attachments-item__name',\n\tfile: 'gov-attachments-item__file',\n\tmessages: 'gov-attachments-item__messages',\n}\n","import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\nimport { AttachmentsClass } from './constants'\nimport { validateWcagProp } 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',\n})\nexport class GovAttachments {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovAttachmentsElement\n\t/**\n\t * Label of attachments section\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Adds accessible label for the attachment section that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(AttachmentsClass.root)}>\n\t\t\t\t{this.label ? <p class={AttachmentsClass.label}>{this.label}</p> : null}\n\t\t\t\t<div class={AttachmentsClass.list} role=\"list\" aria-label={this.wcagLabel}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagProp(this.wcagLabel, 'wcag-label', AttachmentsClass.root)\n\t}\n}\n","/* Attachments - Item */\n\n\ngov-attachments-item, .gov-attachments-item {\n\t// VARIABLES\n\t@import \"gov-attachments-variables\";\n\n\t@include base($display: flex);\n\tgap: var(--spacing-s);\n\t&__messages {\n\t\t@include reset-last-margin();\n\t}\n\t&__file {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t}\n\t&__name {\n\t\tdisplay: flex;\n\t\tgap: var(--spacing-s);\n\t\tflex-wrap: wrap;\n\t\talign-items: center;\n\t\tmargin: 0;\n\t\tcolor: $attachments-name-color;\n\t\tspan {\n\t\t\t@include typography(\"xs\");\n\t\t\tcolor: $attachments-decor-color;\n\t\t}\n\t}\n}\n","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","import { Component, Element, h, Host, Method, Prop, Watch } from '@stencil/core'\nimport {FormMessageClass, FormMessageSizesTypes, FormMessageColors, FormMessageColorType} from './constants'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { createID } from '../../../utils/string.utils'\n\n@Component({\n\ttag: 'gov-form-message',\n})\nexport class GovFormMessage {\n\th: GovHost\n\tprivate readonly messageId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.messageId = createID('GovFormMessage')\n\t}\n\n\t@Element() host: HTMLGovFormMessageElement\n\t/**\n\t * Style variation of the message.\n\t */\n\t@Prop({ attribute: 'color' }) readonly color?: FormMessageColorType = 'neutral'\n\t/**\n\t * Message's size.\n\t */\n\t@Prop() readonly size?: FormMessageSizesTypes = 'm'\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(FormMessageColors, newValue, FormMessageClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormMessageClass.root)} color={this.color} size={this.size}>\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\t\t\t\t<span id={this.messageId} class={FormMessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns unique identifier of message\n\t */\n\t@Method()\n\tasync identifier(): Promise<string> {\n\t\treturn this.messageId\n\t}\n}\n"],"version":3}
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { v as validateAccessibleLabel } from './wcag-fa5ce56c.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { v as validateAccessibleLabel } from './wcag-d7c6c252.js';
3
3
  import { c as canValidateWcagOnRender } from './win-cec370ad.js';
4
4
  import { g as govHost } from './template-3d84d705.js';
5
5
  import { t as tick } from './stencil.utils-f3c6c68d.js';
6
6
  import './gov.log-6e9faad2.js';
7
- import './string.utils-5ce3f551.js';
7
+ import './string.utils-1da8f8fb.js';
8
8
  import './helpers.types-43ddbdb8.js';
9
9
  import './utils-2b4ef320.js';
10
10
 
@@ -29,7 +29,7 @@ const GovBackdrop = class {
29
29
  }
30
30
  }
31
31
  render() {
32
- return (h(Host, { key: 'c3a04193bcb6bf07904885794068d15723012177', class: this.h.classes(BackdropClass.root), inverse: this.inverse }, h("div", { key: '722ab2c0f3b9e64e5790f51540f44252a1b3e4e4', role: 'button', "aria-disabled": this.disabled, "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, onClick: e => {
32
+ return (h(Host, { key: 'ee25a6a3443604253f1fa10676007aad3838f4d9', class: this.h.classes(BackdropClass.root), inverse: this.inverse }, h("div", { key: 'fd733ec0c2f6599ce7fe360092990f4c7f0973a1', role: 'button', "aria-disabled": this.disabled, "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy, onClick: e => {
33
33
  if (!this.disabled) {
34
34
  this.govClick.emit(e);
35
35
  }
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { v as validateAccessibleLabel } from './wcag-fa5ce56c.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { v as validateAccessibleLabel } from './wcag-d7c6c252.js';
3
3
  import { c as canValidateWcagOnRender } from './win-cec370ad.js';
4
4
  import { g as govHost } from './template-3d84d705.js';
5
5
  import { t as tick } from './stencil.utils-f3c6c68d.js';
6
6
  import './gov.log-6e9faad2.js';
7
- import './string.utils-5ce3f551.js';
7
+ import './string.utils-1da8f8fb.js';
8
8
  import './helpers.types-43ddbdb8.js';
9
9
  import './utils-2b4ef320.js';
10
10
 
@@ -50,7 +50,7 @@ const GovBreadcrumbs = class {
50
50
  this.toggleOption = sumOfWidths > hostWidth;
51
51
  }
52
52
  render() {
53
- return (h(Host, { key: '645442a9bf54f216c22b40eab292987d7a5c4229', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, h("nav", { key: '3404e135545ad9ab7895522f0db318fff722ff33', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, h("slot", { key: 'b9b33750baeece46453a810cb60c3f267029ea30' })), 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));
53
+ 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));
54
54
  }
55
55
  /**
56
56
  * Validate the WCAG attributes of the component
@@ -1,16 +1,16 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
2
  import { v as validateProp } from './props-c82e1abf.js';
3
3
  import { B as ButtonClass, a as ButtonColors, c as ButtonType, N as NativeType } from './constants-c716fa44.js';
4
4
  import { g as govHost, t as toBoolAttrIfDefined } from './template-3d84d705.js';
5
5
  import { S as Sizes } from './sizes-5b9e579f.js';
6
- import { v as validateAccessibleLabel } from './wcag-fa5ce56c.js';
6
+ import { v as validateAccessibleLabel } from './wcag-d7c6c252.js';
7
7
  import { c as canValidateWcagOnRender } from './win-cec370ad.js';
8
8
  import { d as delay } from './utils-2b4ef320.js';
9
9
  import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
10
10
  import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
11
11
  import './gov.log-6e9faad2.js';
12
12
  import './colors-02c1ea96.js';
13
- import './string.utils-5ce3f551.js';
13
+ import './string.utils-1da8f8fb.js';
14
14
  import './helpers.types-43ddbdb8.js';
15
15
 
16
16
  function toBool(value) {
@@ -103,9 +103,9 @@ const GovButton = class {
103
103
  render() {
104
104
  const Tag = this.href ? Tags.A : Tags.BUTTON;
105
105
  const nativeType = Tag === Tags.A ? undefined : this.nativeType;
106
- return (h(Host, { key: '2bb50646642155813d3b424d93abe66e402980fc', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(ButtonClass.root), type: this.type }, h(Tag, Object.assign({ key: '9eb0aef9aad90c4d8b36c98713f8b4368ec3ea60', 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") &&
107
- h("gov-icon", { key: '32e8ad524e440068871b84a7cfe0a297d729cdb1', name: "loader", class: "gov-spin-animation" }), this.h.hasSlot("left-icon") && h("slot", { key: '9cb9034730ff04ec4ecb17c7ab75618368074b5c', name: "left-icon" }), h("slot", { key: 'ba5a094a07caa393510f956f5797b73f4811d0a9' }), this.h.hasSlot("right-icon") && h("slot", { key: '4b62acb8f9c327c21ccd500688a1e0effa7bbfa8', name: "right-icon" }), toBool(this.loading) && this.h.hasSlot("right-icon") &&
108
- h("gov-icon", { key: '25f567c70ee5e4a89c37747fa17df87d9a4e6fb2', name: "loader", class: "gov-spin-animation" }))));
106
+ 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") &&
107
+ 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") &&
108
+ h("gov-icon", { key: '885f29b2d141823731e56ca50c6c89661c014322', name: "loader", class: "gov-spin-animation" }))));
109
109
  }
110
110
  onClickHandler(e) {
111
111
  e.stopPropagation();
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
2
  import { g as govHost, b as booleanString } from './template-3d84d705.js';
3
- import { c as createID } from './string.utils-5ce3f551.js';
4
- import { v as validateAccessibleLabel } from './wcag-fa5ce56c.js';
3
+ import { c as createID } from './string.utils-1da8f8fb.js';
4
+ import { v as validateAccessibleLabel } from './wcag-d7c6c252.js';
5
5
  import { c as canValidateWcagOnRender } from './win-cec370ad.js';
6
6
  import { d as delay } from './utils-2b4ef320.js';
7
7
  import './gov.log-6e9faad2.js';
@@ -44,7 +44,7 @@ const GovCard = class {
44
44
  this.hydrated = true;
45
45
  }
46
46
  render() {
47
- return (h(Host, { key: '7ae6cc86b82b3f87aff07e5d9e950b2e53151a18', 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: 'ddb3e93eeb27258896a44ba3bbef6d8d03a10a2f', 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: 'ec427ac10e1a8810a10fda0e7b0cfd479ccc7446', class: CardClass.img }, h("slot", { key: '70f4afe1cc9189987af1e213b83bfd3358da2e69', name: "img" }))), h("div", { key: '52b0c40a1fd194b0f4fe097deeabf4f66621bc7b', class: CardClass.main }, this.h.hasSlot('icon') && this.promotion && (h("div", { key: '665e99d2773408b2b99503aee1df61851ca6ef79', class: CardClass.icon }, h("slot", { key: '3d9ab0e47f8bd219fbe697182788dbc9f86755f4', name: "icon" }))), h("slot", { key: 'e7cb0ac6a735e53d183f0f376afc420cec0ecbd9' }), this.h.hasSlot('btn') && this.promotion && (h("div", { key: '30f0d797b741e1304d7500f89da4d86b13d8470d', class: CardClass.btns }, h("slot", { key: 'b8f6a9296c8c88922d31e80552d4eaf29cda4ad7', name: "btn" })))), this.h.hasSlot('footer') && (h("div", { key: 'd2eeed664123d020bacb1bfba680940d349f9ab8', class: CardClass.footer }, h("slot", { key: 'f4207f3e99a4230858177d97ec0880b9bba62145', name: "footer" }))))));
47
+ 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" }))))));
48
48
  }
49
49
  onClickHandler(e) {
50
50
  e.stopPropagation();
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
2
  import { v as validateProp } from './props-c82e1abf.js';
3
3
  import { g as govHost } from './template-3d84d705.js';
4
4
  import { a as pick } from './utils-2b4ef320.js';
5
5
  import { S as Sizes } from './sizes-5b9e579f.js';
6
6
  import { a as ButtonColors, b as ButtonSizes } from './constants-c716fa44.js';
7
- import { c as createID } from './string.utils-5ce3f551.js';
7
+ import { c as createID } from './string.utils-1da8f8fb.js';
8
8
  import { p as prepareIconFormat } from './helpers-5d179d4b.js';
9
9
  import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
10
10
  import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
@@ -83,11 +83,11 @@ const GovChip = class {
83
83
  const nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined;
84
84
  const iconLeft = prepareIconFormat(this.iconLeft);
85
85
  const iconRight = prepareIconFormat(this.iconRight);
86
- return (h(Host, { key: '7273e571a906515a35208303f36eb3d2bac4b663', class: this.h.classes([
86
+ return (h(Host, { key: '6d7c550b0c74460712d632060727626489abe3c0', class: this.h.classes([
87
87
  ChipClass.root,
88
88
  this.h.hasSlot("right") ? ChipClass.hasRight : undefined,
89
89
  this.h.hasSlot("left") ? ChipClass.hasLeft : undefined,
90
- ]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON, hydrated: this.hydrated }, h(Tag, Object.assign({ key: '8c32f17c36a757d8be7ae813ca113aa505375159', class: "element", href: this.href, target: this.target, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), tabindex: (this.h.hasSlot("left") || this.h.hasSlot("right") || this.disabled) && !this.focusable ? "-1" : "0", id: this.identifier || this.chipId, type: nativeType }, this.inheritedAttributes, { "aria-disabled": this.disabled }), h("slot", { key: 'e9fec4f49fbb1b43f73face265bc3c8dfcebc4fe', name: "left" }), h("slot", { key: '7fd9b938c44c55e66041d9298e285f34c80a0722', name: "left-icon" }, iconLeft && h("gov-icon", { key: '5f1a73b93fdbecfc0fe30ad45d0a86444e1b4703', type: iconLeft.type, name: iconLeft.name })), h("slot", { key: 'e63ae004f3c4b5e164e326ca7cff300b68ba02ee' }), h("slot", { key: '39da8e323a6623cfb0eb6f6807931f496cfeb867', name: "right-icon" }, iconRight && h("gov-icon", { key: '1518485f6d60b515a138dedc142ca7a013dd67bb', type: iconRight.type, name: iconRight.name })), h("slot", { key: '20059af90e74b6f8bb68673c56b387fd558eee29', name: "right" }))));
90
+ ]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON, hydrated: this.hydrated }, h(Tag, Object.assign({ key: '9dc30627e2111c76067c6f2da2427e81c05413e3', class: "element", href: this.href, target: this.target, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), tabindex: (this.h.hasSlot("left") || this.h.hasSlot("right") || this.disabled) && !this.focusable ? "-1" : "0", id: this.identifier || this.chipId, type: nativeType }, this.inheritedAttributes, { "aria-disabled": this.disabled }), h("slot", { key: '67cc0b4cfaf3b45e8fb333231681f9b5cfa90996', name: "left" }), h("slot", { key: '83eeb5cb5194903b8139ff8443bf5d024b1cb00d', name: "left-icon" }, iconLeft && h("gov-icon", { key: '7f90ee50fc4fce6375dc77a01980116cfd6136d0', type: iconLeft.type, name: iconLeft.name })), h("slot", { key: '4a089b176703b5c600d2a519f90be655397d5f27' }), h("slot", { key: 'ace71d5eae682f25c3ce4fd9dd825ae919286b35', name: "right-icon" }, iconRight && h("gov-icon", { key: '5baaf84b70cb4bbb8e70ef35aa81d893ca7cc143', type: iconRight.type, name: iconRight.name })), h("slot", { key: '7c51003d4890f14c0af817614fcbbb24446f4ef5', name: "right" }))));
91
91
  }
92
92
  onClickHandler(e) {
93
93
  e.stopPropagation();
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
2
2
  import { g as govHost, s as slottedChildren } from './template-3d84d705.js';
3
3
 
4
4
  const ContainerClass = {
@@ -11,7 +11,7 @@ const GovContainer = class {
11
11
  this.h = govHost(this.host);
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: 'f1a8dda159411bb7eed4db33d408ddd70a2327be', class: this.h.classes(ContainerClass.root) }, h("slot", { key: 'afe117ecdcb7bb6225e4612400e1627dcc80bff9' })));
14
+ return (h(Host, { key: '0c61adb532c5810dedd0b43f21b5843bfc3d9c53', class: this.h.classes(ContainerClass.root) }, h("slot", { key: 'df9ee5f718d72be4a2e1bbc4dd8ae6e9883c922f' })));
15
15
  }
16
16
  /**
17
17
  * Returns slotted children
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
2
2
  import { C as Colors } from './colors-02c1ea96.js';
3
3
  import { g as govHost } from './template-3d84d705.js';
4
4
  import { v as validateProp } from './props-c82e1abf.js';
@@ -23,7 +23,7 @@ const GovControlGroup = class {
23
23
  validateProp(Colors, newValue, ControlGroupClass.root);
24
24
  }
25
25
  render() {
26
- return (h(Host, { key: '41426d0763507d60dcf24a6f0fe3d69b54d5131f', class: this.h.classes(ControlGroupClass.root), color: this.color }, h("slot", { key: '0c67c4137be61b821e008779210543af73d7984c' })));
26
+ return (h(Host, { key: 'e2a56a633370dd4172c9d0895b51b7138d0a19a0', class: this.h.classes(ControlGroupClass.root), color: this.color }, h("slot", { key: '76d02cd85f4207a4e2f5a198e36d6ff53ee77e28' })));
27
27
  }
28
28
  get host() { return getElement(this); }
29
29
  static get watchers() { return {