@gov-design-system-ce/components 4.0.8-rc22 → 4.0.8-rc24

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 (434) hide show
  1. package/dist/cjs/core.cjs.js +2 -2
  2. package/dist/cjs/gov-accordion-item.cjs.entry.js +2 -2
  3. package/dist/cjs/gov-accordion.cjs.entry.js +3 -3
  4. package/dist/cjs/gov-attachments_3.cjs.entry.js +3 -3
  5. package/dist/cjs/gov-backdrop.cjs.entry.js +3 -3
  6. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
  7. package/dist/cjs/gov-button.cjs.entry.js +3 -3
  8. package/dist/cjs/gov-card.cjs.entry.js +3 -3
  9. package/dist/cjs/gov-chip.cjs.entry.js +2 -2
  10. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  11. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  12. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  13. package/dist/cjs/gov-dropdown.cjs.entry.js +2 -2
  14. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  15. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  16. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +2 -2
  17. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +1 -1
  18. package/dist/cjs/gov-form-checkbox.cjs.entry.js +3 -3
  19. package/dist/cjs/gov-form-control.cjs.entry.js +2 -2
  20. package/dist/cjs/gov-form-file.cjs.entry.js +9 -4
  21. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  23. package/dist/cjs/gov-form-input.cjs.entry.js +3 -3
  24. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  25. package/dist/cjs/gov-form-multi-select.cjs.entry.js +3 -3
  26. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-form-radio-group.cjs.entry.js +1 -1
  28. package/dist/cjs/gov-form-radio.cjs.entry.js +3 -3
  29. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  30. package/dist/cjs/gov-form-select.cjs.entry.js +3 -3
  31. package/dist/cjs/gov-form-switch.cjs.entry.js +3 -3
  32. package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
  33. package/dist/cjs/gov-grid.cjs.entry.js +1 -1
  34. package/dist/cjs/gov-icon.cjs.entry.js +2 -2
  35. package/dist/cjs/gov-infobar.cjs.entry.js +3 -3
  36. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  37. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  38. package/dist/cjs/gov-lifecycle.cjs.entry.js +47 -0
  39. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -0
  40. package/dist/cjs/gov-loading.cjs.entry.js +2 -2
  41. package/dist/cjs/gov-message.cjs.entry.js +2 -2
  42. package/dist/cjs/gov-modal.cjs.entry.js +4 -4
  43. package/dist/cjs/gov-nav-item.cjs.entry.js +2 -2
  44. package/dist/cjs/gov-nav.cjs.entry.js +4 -4
  45. package/dist/cjs/gov-pagination.cjs.entry.js +3 -3
  46. package/dist/cjs/gov-prompt.cjs.entry.js +4 -4
  47. package/dist/cjs/gov-side-nav-item.cjs.entry.js +2 -2
  48. package/dist/cjs/gov-side-nav.cjs.entry.js +4 -4
  49. package/dist/cjs/gov-skeleton.cjs.entry.js +4 -4
  50. package/dist/cjs/gov-spacer.cjs.entry.js +2 -2
  51. package/dist/cjs/gov-statsbar-item.cjs.entry.js +2 -2
  52. package/dist/cjs/gov-statsbar.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 +4 -4
  57. package/dist/cjs/gov-tag.cjs.entry.js +2 -2
  58. package/dist/cjs/gov-tile.cjs.entry.js +2 -2
  59. package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
  60. package/dist/cjs/gov-toast.cjs.entry.js +3 -3
  61. package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
  62. package/dist/cjs/gov-tooltip.cjs.entry.js +4 -4
  63. package/dist/cjs/gov-wizard-item.cjs.entry.js +5 -5
  64. package/dist/cjs/gov-wizard.cjs.entry.js +4 -4
  65. package/dist/cjs/{index-cfb57f19.js → index-f53beed1.js} +11 -2
  66. package/dist/cjs/index-f53beed1.js.map +1 -0
  67. package/dist/cjs/loader.cjs.js +2 -2
  68. package/dist/cjs/{string.utils-2335838f.js → string.utils-b84c81cf.js} +2 -1
  69. package/dist/cjs/string.utils-b84c81cf.js.map +1 -0
  70. package/dist/cjs/{wcag-53ebeed1.js → wcag-0dfd29b6.js} +2 -2
  71. package/dist/cjs/{wcag-53ebeed1.js.map → wcag-0dfd29b6.js.map} +1 -1
  72. package/dist/collection/collection-manifest.json +1 -0
  73. package/dist/collection/components/gov-form/file/gov-form-file.js +6 -1
  74. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  75. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +39 -0
  76. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -0
  77. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  78. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  79. package/dist/collection/components/gov-message/gov-message.js +1 -1
  80. package/dist/collection/components/gov-modal/gov-modal.js +1 -1
  81. package/dist/collection/components/gov-nav/gov-nav-item.js +1 -1
  82. package/dist/collection/components/gov-nav/gov-nav.js +1 -1
  83. package/dist/collection/components/gov-promp/gov-prompt.js +1 -1
  84. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +1 -1
  85. package/dist/collection/components/gov-side-nav/gov-side-nav.js +1 -1
  86. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  87. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +1 -1
  88. package/dist/collection/components/gov-statsbar/gov-statsbar.js +1 -1
  89. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  90. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  91. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  92. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  93. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  94. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  95. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  96. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  97. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  98. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  99. package/dist/collection/components/gov-wizard/gov-wizard-item.js +3 -3
  100. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  101. package/dist/collection/utils/string.utils.js +1 -1
  102. package/dist/collection/utils/string.utils.js.map +1 -1
  103. package/dist/components/gov-accordion-item.js +1 -1
  104. package/dist/components/gov-accordion.js +1 -1
  105. package/dist/components/gov-attachments-item.js +1 -1
  106. package/dist/components/gov-attachments.js +1 -1
  107. package/dist/components/gov-backdrop.js +1 -1
  108. package/dist/components/gov-breadcrumbs.js +1 -1
  109. package/dist/components/gov-button.js +1 -1
  110. package/dist/components/gov-card.js +1 -1
  111. package/dist/components/gov-chip.js +1 -1
  112. package/dist/components/gov-container.js +1 -1
  113. package/dist/components/gov-control-group.js +1 -1
  114. package/dist/components/gov-cookiebar.js +1 -1
  115. package/dist/components/gov-dropdown.js +1 -1
  116. package/dist/components/gov-empty.js +1 -1
  117. package/dist/components/gov-error-code.js +1 -1
  118. package/dist/components/gov-form-autocomplete.js +1 -1
  119. package/dist/components/gov-form-checkbox-group.js +1 -1
  120. package/dist/components/gov-form-checkbox.js +1 -1
  121. package/dist/components/gov-form-control.js +1 -1
  122. package/dist/components/gov-form-file.js +1 -1
  123. package/dist/components/gov-form-file.js.map +1 -1
  124. package/dist/components/gov-form-group.js +1 -1
  125. package/dist/components/gov-form-input.js +1 -1
  126. package/dist/components/gov-form-label.js +1 -1
  127. package/dist/components/gov-form-message.js +1 -1
  128. package/dist/components/gov-form-multi-select.js +1 -1
  129. package/dist/components/gov-form-password-power.js +1 -1
  130. package/dist/components/gov-form-radio-group.js +1 -1
  131. package/dist/components/gov-form-radio.js +1 -1
  132. package/dist/components/gov-form-search.js +1 -1
  133. package/dist/components/gov-form-select.js +1 -1
  134. package/dist/components/gov-form-switch.js +1 -1
  135. package/dist/components/gov-grid-item.js +1 -1
  136. package/dist/components/gov-grid.js +1 -1
  137. package/dist/components/gov-grid.js.map +1 -1
  138. package/dist/components/gov-icon.js +1 -1
  139. package/dist/components/gov-infobar.js +1 -1
  140. package/dist/components/gov-layout-column.js +1 -1
  141. package/dist/components/gov-layout.js +1 -1
  142. package/dist/components/gov-lifecycle.d.ts +11 -0
  143. package/dist/components/gov-lifecycle.js +2 -0
  144. package/dist/components/gov-lifecycle.js.map +1 -0
  145. package/dist/components/gov-loading.js +1 -1
  146. package/dist/components/gov-message.js +1 -1
  147. package/dist/components/gov-modal.js +1 -1
  148. package/dist/components/gov-nav-item.js +1 -1
  149. package/dist/components/gov-nav-item.js.map +1 -1
  150. package/dist/components/gov-nav.js +1 -1
  151. package/dist/components/gov-pagination.js +1 -1
  152. package/dist/components/gov-prompt.js +1 -1
  153. package/dist/components/gov-side-nav-item.js +1 -1
  154. package/dist/components/gov-side-nav.js +1 -1
  155. package/dist/components/gov-skeleton.js +1 -1
  156. package/dist/components/gov-skeleton.js.map +1 -1
  157. package/dist/components/gov-spacer.js +1 -1
  158. package/dist/components/gov-statsbar-item.js +1 -1
  159. package/dist/components/gov-statsbar.js +1 -1
  160. package/dist/components/gov-stepper-item.js +1 -1
  161. package/dist/components/gov-stepper.js +1 -1
  162. package/dist/components/gov-tabs-item.js +1 -1
  163. package/dist/components/gov-tabs.js +1 -1
  164. package/dist/components/gov-tag.js +1 -1
  165. package/dist/components/gov-tile.js +1 -1
  166. package/dist/components/gov-tiles.js +1 -1
  167. package/dist/components/gov-toast.js +1 -1
  168. package/dist/components/gov-tooltip-content.js +1 -1
  169. package/dist/components/gov-tooltip.js +1 -1
  170. package/dist/components/gov-tooltip.js.map +1 -1
  171. package/dist/components/gov-wizard-item.js +1 -1
  172. package/dist/components/gov-wizard.js +1 -1
  173. package/dist/components/index.js +1 -1
  174. package/dist/components/{p-4489a1da.js → p-145d1fa3.js} +2 -2
  175. package/dist/components/{p-bb979e0e.js → p-1c288519.js} +2 -2
  176. package/dist/components/{p-6e263e52.js → p-3072ede5.js} +2 -2
  177. package/dist/components/{p-6207f7b0.js → p-414a45bb.js} +2 -2
  178. package/dist/components/{p-d6759ac3.js → p-5262b9ce.js} +3 -3
  179. package/dist/components/p-5262b9ce.js.map +1 -0
  180. package/dist/components/p-71cec4ef.js +2 -0
  181. package/dist/components/{p-92c6c6aa.js → p-77cdc056.js} +2 -2
  182. package/dist/components/p-880743a5.js.map +1 -1
  183. package/dist/components/{p-65cd1f0c.js → p-8ba0b435.js} +2 -2
  184. package/dist/components/{p-b5bbb1eb.js → p-b9450157.js} +2 -2
  185. package/dist/components/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  186. package/dist/components/p-cd6c2938.js.map +1 -0
  187. package/dist/components/{p-8df7c635.js → p-d0fe3cd8.js} +2 -2
  188. package/dist/components/{p-3cf3af92.js → p-d8e853ed.js} +2 -2
  189. package/dist/components/{p-6cdf3f51.js → p-f518bc1c.js} +2 -2
  190. package/dist/core/core.esm.js +1 -1
  191. package/dist/core/core.esm.js.map +1 -1
  192. package/dist/core/{p-6c745c3e.entry.js → p-06e9e93b.entry.js} +2 -2
  193. package/dist/core/{p-5d33cb6e.entry.js → p-092b0437.entry.js} +2 -2
  194. package/dist/core/{p-36ee24f8.entry.js → p-1005135a.entry.js} +2 -2
  195. package/dist/core/p-1005135a.entry.js.map +1 -0
  196. package/dist/core/{p-290773da.entry.js → p-1011ca26.entry.js} +2 -2
  197. package/dist/core/{p-212e297e.entry.js → p-107a6a5c.entry.js} +2 -2
  198. package/dist/core/{p-389edb54.entry.js → p-114a4d0b.entry.js} +2 -2
  199. package/dist/core/{p-3483a6e8.entry.js → p-13520b30.entry.js} +2 -2
  200. package/dist/core/{p-4dbaff99.entry.js → p-13ced376.entry.js} +2 -2
  201. package/dist/core/{p-36425101.entry.js → p-14a87c92.entry.js} +2 -2
  202. package/dist/core/{p-753e4861.entry.js → p-1b3143a8.entry.js} +2 -3
  203. package/dist/core/p-1b3143a8.entry.js.map +1 -0
  204. package/dist/core/{p-ab2f6b4d.entry.js → p-1bdc04bb.entry.js} +2 -2
  205. package/dist/core/{p-92f752e1.entry.js → p-208c99c8.entry.js} +2 -3
  206. package/dist/core/p-208c99c8.entry.js.map +1 -0
  207. package/dist/core/p-20ae3168.entry.js +2 -0
  208. package/dist/core/p-20ae3168.entry.js.map +1 -0
  209. package/dist/core/{p-8ab827a1.entry.js → p-2186fcd5.entry.js} +2 -2
  210. package/dist/core/p-240659bb.js +3 -0
  211. package/dist/core/p-240659bb.js.map +1 -0
  212. package/dist/core/{p-0790a27c.entry.js → p-2c3697cf.entry.js} +2 -2
  213. package/dist/core/{p-272ef734.entry.js → p-2e881577.entry.js} +2 -2
  214. package/dist/core/{p-02745628.entry.js → p-3309aed9.entry.js} +2 -2
  215. package/dist/core/{p-34cf509a.entry.js → p-348165e2.entry.js} +2 -2
  216. package/dist/core/{p-2cdb5670.entry.js → p-34d7c203.entry.js} +2 -3
  217. package/dist/core/p-34d7c203.entry.js.map +1 -0
  218. package/dist/core/{p-2db35d0f.entry.js → p-3832de64.entry.js} +2 -2
  219. package/dist/core/{p-aaabf6a4.entry.js → p-3b8fb675.entry.js} +2 -2
  220. package/dist/core/{p-761c33c7.entry.js → p-3ccab2ba.entry.js} +2 -2
  221. package/dist/core/{p-4532cea6.entry.js → p-3e041d63.entry.js} +2 -2
  222. package/dist/core/{p-04e48d5d.entry.js → p-4694b4b6.entry.js} +2 -2
  223. package/dist/core/{p-a50b306f.entry.js → p-4700508c.entry.js} +2 -2
  224. package/dist/core/p-489f5c82.entry.js +2 -0
  225. package/dist/core/{p-2e647c00.entry.js.map → p-489f5c82.entry.js.map} +1 -1
  226. package/dist/core/{p-33b1f5d8.entry.js → p-4ed064db.entry.js} +2 -2
  227. package/dist/core/{p-5e04679a.entry.js → p-4f77a766.entry.js} +2 -2
  228. package/dist/core/{p-cc3c6319.entry.js → p-551c9f44.entry.js} +2 -2
  229. package/dist/core/{p-650ac6c6.entry.js → p-55abc7bc.entry.js} +2 -2
  230. package/dist/core/p-55cd3fee.entry.js +2 -0
  231. package/dist/core/{p-ab9d9655.entry.js.map → p-55cd3fee.entry.js.map} +1 -1
  232. package/dist/core/{p-5facceb9.entry.js → p-5c3a0b02.entry.js} +2 -2
  233. package/dist/core/{p-5facceb9.entry.js.map → p-5c3a0b02.entry.js.map} +1 -1
  234. package/dist/core/{p-5e7e7cb1.entry.js → p-64353313.entry.js} +2 -2
  235. package/dist/core/{p-aba11ab4.entry.js → p-6789b9d0.entry.js} +2 -2
  236. package/dist/core/{p-f11f707f.entry.js → p-6a82c6a1.entry.js} +2 -2
  237. package/dist/core/{p-eb059ce6.entry.js → p-6c33492a.entry.js} +2 -2
  238. package/dist/core/{p-3f62cf30.entry.js → p-6d894ec7.entry.js} +2 -2
  239. package/dist/core/{p-6977b168.entry.js → p-6dfde487.entry.js} +2 -2
  240. package/dist/core/{p-d2fc217d.entry.js → p-74233183.entry.js} +2 -2
  241. package/dist/core/{p-eb403270.entry.js → p-77892071.entry.js} +2 -2
  242. package/dist/core/{p-1046221c.entry.js → p-7a896683.entry.js} +2 -2
  243. package/dist/core/{p-185a46b9.entry.js → p-7ba4ae8d.entry.js} +2 -2
  244. package/dist/core/{p-7695610a.entry.js → p-7d011c4b.entry.js} +2 -2
  245. package/dist/core/p-7e43f440.entry.js +2 -0
  246. package/dist/core/p-7e43f440.entry.js.map +1 -0
  247. package/dist/core/{p-b58ed9ce.entry.js → p-802909c5.entry.js} +2 -2
  248. package/dist/core/{p-dbde347f.entry.js → p-810f0d0c.entry.js} +2 -2
  249. package/dist/core/{p-718d0198.entry.js → p-828e8bce.entry.js} +2 -2
  250. package/dist/core/{p-6be9b50d.entry.js → p-87b7b469.entry.js} +2 -3
  251. package/dist/core/p-87b7b469.entry.js.map +1 -0
  252. package/dist/core/p-880743a5.js.map +1 -1
  253. package/dist/core/{p-cce125de.entry.js → p-8fb45e7c.entry.js} +2 -2
  254. package/dist/core/p-ab9aff3c.js +2 -0
  255. package/dist/core/{p-f9fee460.entry.js → p-ae4321ea.entry.js} +2 -2
  256. package/dist/core/{p-1b212799.entry.js → p-b2b254b6.entry.js} +2 -2
  257. package/dist/core/p-bcdf6cfc.entry.js +2 -0
  258. package/dist/core/{p-3e3a1607.entry.js.map → p-bcdf6cfc.entry.js.map} +1 -1
  259. package/dist/core/p-cc83b8cb.entry.js +2 -0
  260. package/dist/core/p-cc83b8cb.entry.js.map +1 -0
  261. package/dist/core/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  262. package/dist/core/p-cd6c2938.js.map +1 -0
  263. package/dist/core/{p-fc3d4a73.entry.js → p-cdaeb7d8.entry.js} +2 -3
  264. package/dist/core/p-cdaeb7d8.entry.js.map +1 -0
  265. package/dist/core/{p-7d1dd58a.entry.js → p-d4b50bcd.entry.js} +2 -2
  266. package/dist/core/{p-0dd510d0.entry.js → p-d4f2d6f9.entry.js} +2 -2
  267. package/dist/core/{p-2fb0e1cf.entry.js → p-e9bcadf1.entry.js} +2 -2
  268. package/dist/core/{p-13a80dc5.entry.js → p-f16f9116.entry.js} +2 -2
  269. package/dist/core/{p-f54fe20e.entry.js → p-f2edcca7.entry.js} +2 -2
  270. package/dist/core/p-f6a98765.entry.js +2 -0
  271. package/dist/core/{p-31a7316b.entry.js.map → p-f6a98765.entry.js.map} +1 -1
  272. package/dist/core/{p-5462e282.entry.js → p-f9de3c09.entry.js} +2 -2
  273. package/dist/esm/core.js +3 -3
  274. package/dist/esm/gov-accordion-item.entry.js +2 -2
  275. package/dist/esm/gov-accordion.entry.js +3 -3
  276. package/dist/esm/gov-attachments_3.entry.js +3 -3
  277. package/dist/esm/gov-backdrop.entry.js +3 -3
  278. package/dist/esm/gov-breadcrumbs.entry.js +3 -3
  279. package/dist/esm/gov-button.entry.js +3 -3
  280. package/dist/esm/gov-card.entry.js +3 -3
  281. package/dist/esm/gov-chip.entry.js +2 -2
  282. package/dist/esm/gov-container.entry.js +1 -1
  283. package/dist/esm/gov-control-group.entry.js +1 -1
  284. package/dist/esm/gov-cookiebar.entry.js +1 -1
  285. package/dist/esm/gov-dropdown.entry.js +2 -2
  286. package/dist/esm/gov-empty.entry.js +1 -1
  287. package/dist/esm/gov-error-code.entry.js +1 -1
  288. package/dist/esm/gov-form-autocomplete.entry.js +2 -2
  289. package/dist/esm/gov-form-checkbox-group.entry.js +1 -1
  290. package/dist/esm/gov-form-checkbox.entry.js +3 -3
  291. package/dist/esm/gov-form-control.entry.js +2 -2
  292. package/dist/esm/gov-form-file.entry.js +9 -4
  293. package/dist/esm/gov-form-file.entry.js.map +1 -1
  294. package/dist/esm/gov-form-group.entry.js +1 -1
  295. package/dist/esm/gov-form-input.entry.js +3 -3
  296. package/dist/esm/gov-form-label.entry.js +1 -1
  297. package/dist/esm/gov-form-multi-select.entry.js +3 -3
  298. package/dist/esm/gov-form-password-power.entry.js +1 -1
  299. package/dist/esm/gov-form-radio-group.entry.js +1 -1
  300. package/dist/esm/gov-form-radio.entry.js +3 -3
  301. package/dist/esm/gov-form-search.entry.js +1 -1
  302. package/dist/esm/gov-form-select.entry.js +3 -3
  303. package/dist/esm/gov-form-switch.entry.js +3 -3
  304. package/dist/esm/gov-grid-item.entry.js +1 -1
  305. package/dist/esm/gov-grid.entry.js +1 -1
  306. package/dist/esm/gov-icon.entry.js +2 -2
  307. package/dist/esm/gov-infobar.entry.js +3 -3
  308. package/dist/esm/gov-layout-column.entry.js +1 -1
  309. package/dist/esm/gov-layout.entry.js +1 -1
  310. package/dist/esm/gov-lifecycle.entry.js +43 -0
  311. package/dist/esm/gov-lifecycle.entry.js.map +1 -0
  312. package/dist/esm/gov-loading.entry.js +2 -2
  313. package/dist/esm/gov-message.entry.js +2 -2
  314. package/dist/esm/gov-modal.entry.js +4 -4
  315. package/dist/esm/gov-nav-item.entry.js +2 -2
  316. package/dist/esm/gov-nav.entry.js +4 -4
  317. package/dist/esm/gov-pagination.entry.js +3 -3
  318. package/dist/esm/gov-prompt.entry.js +4 -4
  319. package/dist/esm/gov-side-nav-item.entry.js +2 -2
  320. package/dist/esm/gov-side-nav.entry.js +4 -4
  321. package/dist/esm/gov-skeleton.entry.js +4 -4
  322. package/dist/esm/gov-spacer.entry.js +2 -2
  323. package/dist/esm/gov-statsbar-item.entry.js +2 -2
  324. package/dist/esm/gov-statsbar.entry.js +2 -2
  325. package/dist/esm/gov-stepper-item.entry.js +3 -3
  326. package/dist/esm/gov-stepper.entry.js +2 -2
  327. package/dist/esm/gov-tabs-item.entry.js +3 -3
  328. package/dist/esm/gov-tabs.entry.js +4 -4
  329. package/dist/esm/gov-tag.entry.js +2 -2
  330. package/dist/esm/gov-tile.entry.js +2 -2
  331. package/dist/esm/gov-tiles.entry.js +2 -2
  332. package/dist/esm/gov-toast.entry.js +3 -3
  333. package/dist/esm/gov-tooltip-content.entry.js +2 -2
  334. package/dist/esm/gov-tooltip.entry.js +4 -4
  335. package/dist/esm/gov-wizard-item.entry.js +5 -5
  336. package/dist/esm/gov-wizard.entry.js +4 -4
  337. package/dist/esm/{index-b44c6c92.js → index-c5251f2b.js} +11 -2
  338. package/dist/esm/index-c5251f2b.js.map +1 -0
  339. package/dist/esm/loader.js +3 -3
  340. package/dist/esm/{string.utils-5ce3f551.js → string.utils-1da8f8fb.js} +2 -2
  341. package/dist/esm/string.utils-1da8f8fb.js.map +1 -0
  342. package/dist/esm/{wcag-6ad92279.js → wcag-169f758a.js} +2 -2
  343. package/dist/esm/{wcag-6ad92279.js.map → wcag-169f758a.js.map} +1 -1
  344. package/dist/hydrate/index.js +85 -29
  345. package/dist/hydrate/index.mjs +85 -29
  346. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -0
  347. package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  348. package/dist/types/components.d.ts +13 -0
  349. package/dist/types/utils/string.utils.d.ts +1 -0
  350. package/package.json +1 -1
  351. package/dist/cjs/index-cfb57f19.js.map +0 -1
  352. package/dist/cjs/string.utils-2335838f.js.map +0 -1
  353. package/dist/components/p-6b0471a8.js +0 -2
  354. package/dist/components/p-95d41a3b.js.map +0 -1
  355. package/dist/components/p-d6759ac3.js.map +0 -1
  356. package/dist/core/p-0a5b0f7d.js +0 -3
  357. package/dist/core/p-0a5b0f7d.js.map +0 -1
  358. package/dist/core/p-2cdb5670.entry.js.map +0 -1
  359. package/dist/core/p-2e647c00.entry.js +0 -2
  360. package/dist/core/p-31a7316b.entry.js +0 -2
  361. package/dist/core/p-36ee24f8.entry.js.map +0 -1
  362. package/dist/core/p-3e3a1607.entry.js +0 -2
  363. package/dist/core/p-6be9b50d.entry.js.map +0 -1
  364. package/dist/core/p-753e4861.entry.js.map +0 -1
  365. package/dist/core/p-92b7481f.js +0 -2
  366. package/dist/core/p-92f752e1.entry.js.map +0 -1
  367. package/dist/core/p-95d41a3b.js.map +0 -1
  368. package/dist/core/p-ab9d9655.entry.js +0 -2
  369. package/dist/core/p-e21b402c.entry.js +0 -3
  370. package/dist/core/p-e21b402c.entry.js.map +0 -1
  371. package/dist/core/p-f9e6f776.entry.js +0 -3
  372. package/dist/core/p-f9e6f776.entry.js.map +0 -1
  373. package/dist/core/p-fc3d4a73.entry.js.map +0 -1
  374. package/dist/esm/index-b44c6c92.js.map +0 -1
  375. package/dist/esm/string.utils-5ce3f551.js.map +0 -1
  376. /package/dist/components/{p-4489a1da.js.map → p-145d1fa3.js.map} +0 -0
  377. /package/dist/components/{p-bb979e0e.js.map → p-1c288519.js.map} +0 -0
  378. /package/dist/components/{p-6e263e52.js.map → p-3072ede5.js.map} +0 -0
  379. /package/dist/components/{p-6207f7b0.js.map → p-414a45bb.js.map} +0 -0
  380. /package/dist/components/{p-6b0471a8.js.map → p-71cec4ef.js.map} +0 -0
  381. /package/dist/components/{p-92c6c6aa.js.map → p-77cdc056.js.map} +0 -0
  382. /package/dist/components/{p-65cd1f0c.js.map → p-8ba0b435.js.map} +0 -0
  383. /package/dist/components/{p-b5bbb1eb.js.map → p-b9450157.js.map} +0 -0
  384. /package/dist/components/{p-8df7c635.js.map → p-d0fe3cd8.js.map} +0 -0
  385. /package/dist/components/{p-3cf3af92.js.map → p-d8e853ed.js.map} +0 -0
  386. /package/dist/components/{p-6cdf3f51.js.map → p-f518bc1c.js.map} +0 -0
  387. /package/dist/core/{p-6c745c3e.entry.js.map → p-06e9e93b.entry.js.map} +0 -0
  388. /package/dist/core/{p-5d33cb6e.entry.js.map → p-092b0437.entry.js.map} +0 -0
  389. /package/dist/core/{p-290773da.entry.js.map → p-1011ca26.entry.js.map} +0 -0
  390. /package/dist/core/{p-212e297e.entry.js.map → p-107a6a5c.entry.js.map} +0 -0
  391. /package/dist/core/{p-389edb54.entry.js.map → p-114a4d0b.entry.js.map} +0 -0
  392. /package/dist/core/{p-3483a6e8.entry.js.map → p-13520b30.entry.js.map} +0 -0
  393. /package/dist/core/{p-4dbaff99.entry.js.map → p-13ced376.entry.js.map} +0 -0
  394. /package/dist/core/{p-36425101.entry.js.map → p-14a87c92.entry.js.map} +0 -0
  395. /package/dist/core/{p-ab2f6b4d.entry.js.map → p-1bdc04bb.entry.js.map} +0 -0
  396. /package/dist/core/{p-8ab827a1.entry.js.map → p-2186fcd5.entry.js.map} +0 -0
  397. /package/dist/core/{p-0790a27c.entry.js.map → p-2c3697cf.entry.js.map} +0 -0
  398. /package/dist/core/{p-272ef734.entry.js.map → p-2e881577.entry.js.map} +0 -0
  399. /package/dist/core/{p-02745628.entry.js.map → p-3309aed9.entry.js.map} +0 -0
  400. /package/dist/core/{p-34cf509a.entry.js.map → p-348165e2.entry.js.map} +0 -0
  401. /package/dist/core/{p-2db35d0f.entry.js.map → p-3832de64.entry.js.map} +0 -0
  402. /package/dist/core/{p-aaabf6a4.entry.js.map → p-3b8fb675.entry.js.map} +0 -0
  403. /package/dist/core/{p-761c33c7.entry.js.map → p-3ccab2ba.entry.js.map} +0 -0
  404. /package/dist/core/{p-4532cea6.entry.js.map → p-3e041d63.entry.js.map} +0 -0
  405. /package/dist/core/{p-04e48d5d.entry.js.map → p-4694b4b6.entry.js.map} +0 -0
  406. /package/dist/core/{p-a50b306f.entry.js.map → p-4700508c.entry.js.map} +0 -0
  407. /package/dist/core/{p-33b1f5d8.entry.js.map → p-4ed064db.entry.js.map} +0 -0
  408. /package/dist/core/{p-5e04679a.entry.js.map → p-4f77a766.entry.js.map} +0 -0
  409. /package/dist/core/{p-cc3c6319.entry.js.map → p-551c9f44.entry.js.map} +0 -0
  410. /package/dist/core/{p-650ac6c6.entry.js.map → p-55abc7bc.entry.js.map} +0 -0
  411. /package/dist/core/{p-5e7e7cb1.entry.js.map → p-64353313.entry.js.map} +0 -0
  412. /package/dist/core/{p-aba11ab4.entry.js.map → p-6789b9d0.entry.js.map} +0 -0
  413. /package/dist/core/{p-f11f707f.entry.js.map → p-6a82c6a1.entry.js.map} +0 -0
  414. /package/dist/core/{p-eb059ce6.entry.js.map → p-6c33492a.entry.js.map} +0 -0
  415. /package/dist/core/{p-3f62cf30.entry.js.map → p-6d894ec7.entry.js.map} +0 -0
  416. /package/dist/core/{p-6977b168.entry.js.map → p-6dfde487.entry.js.map} +0 -0
  417. /package/dist/core/{p-d2fc217d.entry.js.map → p-74233183.entry.js.map} +0 -0
  418. /package/dist/core/{p-eb403270.entry.js.map → p-77892071.entry.js.map} +0 -0
  419. /package/dist/core/{p-1046221c.entry.js.map → p-7a896683.entry.js.map} +0 -0
  420. /package/dist/core/{p-185a46b9.entry.js.map → p-7ba4ae8d.entry.js.map} +0 -0
  421. /package/dist/core/{p-7695610a.entry.js.map → p-7d011c4b.entry.js.map} +0 -0
  422. /package/dist/core/{p-b58ed9ce.entry.js.map → p-802909c5.entry.js.map} +0 -0
  423. /package/dist/core/{p-dbde347f.entry.js.map → p-810f0d0c.entry.js.map} +0 -0
  424. /package/dist/core/{p-718d0198.entry.js.map → p-828e8bce.entry.js.map} +0 -0
  425. /package/dist/core/{p-cce125de.entry.js.map → p-8fb45e7c.entry.js.map} +0 -0
  426. /package/dist/core/{p-92b7481f.js.map → p-ab9aff3c.js.map} +0 -0
  427. /package/dist/core/{p-f9fee460.entry.js.map → p-ae4321ea.entry.js.map} +0 -0
  428. /package/dist/core/{p-1b212799.entry.js.map → p-b2b254b6.entry.js.map} +0 -0
  429. /package/dist/core/{p-7d1dd58a.entry.js.map → p-d4b50bcd.entry.js.map} +0 -0
  430. /package/dist/core/{p-0dd510d0.entry.js.map → p-d4f2d6f9.entry.js.map} +0 -0
  431. /package/dist/core/{p-2fb0e1cf.entry.js.map → p-e9bcadf1.entry.js.map} +0 -0
  432. /package/dist/core/{p-13a80dc5.entry.js.map → p-f16f9116.entry.js.map} +0 -0
  433. /package/dist/core/{p-f54fe20e.entry.js.map → p-f2edcca7.entry.js.map} +0 -0
  434. /package/dist/core/{p-5462e282.entry.js.map → p-f9de3c09.entry.js.map} +0 -0
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-cfb57f19.js');
5
+ const index = require('./index-f53beed1.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy(JSON.parse("[[\"gov-form-file.cjs\",[[4,\"gov-form-file\",{\"expanded\":[4],\"required\":[4],\"disabled\":[4],\"resetAfterPick\":[4,\"reset-after-pick\"],\"ignoreFileDuplicationCheck\":[4,\"ignore-file-duplication-check\"],\"displayAttachments\":[4,\"display-attachments\"],\"name\":[1],\"accept\":[1],\"multiple\":[4],\"maxFileSize\":[2,\"max-file-size\"],\"identifier\":[1],\"invalid\":[4],\"errorSize\":[1,\"error-size\"],\"errorAccept\":[1,\"error-accept\"],\"attachmentsLabel\":[1,\"attachments-label\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagAttachmentsLabel\":[1,\"wcag-attachments-label\"],\"files\":[32],\"getRef\":[64],\"getAreaRef\":[64],\"reset\":[64],\"validateWcag\":[64]},null,{\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-multi-select.cjs\",[[4,\"gov-form-multi-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"placeholder\":[1],\"variant\":[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\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"valueState\":[32],\"selectedOptionsState\":[32],\"optionsState\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\",\"watchControlAttrs\"],\"options\":[\"watchOptions\"],\"value\":[\"watchValue\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"]}]]],[\"gov-modal.cjs\",[[4,\"gov-modal\",{\"open\":[1028],\"blockClose\":[4,\"block-close\"],\"blockBackdropClose\":[4,\"block-backdrop-close\"],\"blockButtonClose\":[4,\"block-button-close\"],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]},null,{\"labelTag\":[\"validateLabelTag\"],\"open\":[\"watchOpen\"]}]]],[\"gov-pagination.cjs\",[[0,\"gov-pagination\",{\"type\":[1],\"current\":[2],\"total\":[2],\"inverse\":[4],\"selectIdentifier\":[1,\"select-identifier\"],\"size\":[1],\"variant\":[1],\"pageSize\":[2,\"page-size\"],\"maxPages\":[2,\"max-pages\"],\"link\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagPageLabel\":[1,\"wcag-page-label\"],\"labelPrev\":[1,\"label-prev\"],\"labelStart\":[1,\"label-start\"],\"labelNext\":[1,\"label-next\"],\"labelEnd\":[1,\"label-end\"],\"pagination\":[32],\"validateWcag\":[64]},null,{\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"variant\":[\"validateVariant\"],\"current\":[\"recalculate\"],\"total\":[\"recalculate\"],\"pageSize\":[\"recalculate\"],\"maxPages\":[\"recalculate\"]}]]],[\"gov-prompt.cjs\",[[4,\"gov-prompt\",{\"open\":[1028],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]},null,{\"labelTag\":[\"validateLabelTag\"],\"open\":[\"watchOpen\"]}]]],[\"gov-tabs.cjs\",[[4,\"gov-tabs\",{\"type\":[1],\"variant\":[1],\"orientation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"controllers\":[32],\"focusIndex\":[32],\"compactControls\":[32],\"refresh\":[64],\"currentTab\":[64],\"setActiveTab\":[64],\"rerender\":[64],\"validateWcag\":[64]},null,{\"type\":[\"validateType\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-breadcrumbs.cjs\",[[4,\"gov-breadcrumbs\",{\"collapsible\":[4],\"isExpanded\":[4,\"is-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labeled-by\"],\"wcagToggleLabel\":[1,\"wcag-toggle-label\"],\"collapsed\":[32],\"toggleOption\":[32],\"validateWcag\":[64]}]]],[\"gov-infobar.cjs\",[[4,\"gov-infobar\",{\"headline\":[1],\"variant\":[1],\"role\":[1],\"inverse\":[4],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagToggleLabel\":[1,\"wcag-toggle-label\"],\"closable\":[4],\"toggleContent\":[32],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"]}]]],[\"gov-loading.cjs\",[[4,\"gov-loading\"]]],[\"gov-side-nav-item.cjs\",[[4,\"gov-side-nav-item\",{\"inverse\":[4],\"compact\":[4],\"identifier\":[1],\"count\":[4],\"label\":[1],\"disabled\":[4],\"href\":[1],\"isExpanded\":[4,\"is-expanded\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]},null,{\"label\":[\"validateLabel\"]}]]],[\"gov-toast.cjs\",[[4,\"gov-toast\",{\"variant\":[1],\"gravity\":[1],\"position\":[1],\"type\":[1],\"time\":[2],\"closeLabel\":[1,\"close-label\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"destroy\":[64]},null,{\"variant\":[\"validateVariant\"]}]]],[\"gov-tooltip-content.cjs\",[[4,\"gov-tooltip-content\",{\"variant\":[1],\"size\":[1],\"persist\":[4],\"isVisible\":[1028,\"is-visible\"],\"parentId\":[1,\"parent-id\"]},null,{\"isVisible\":[\"visibleContent\"]}]]],[\"gov-accordion-item.cjs\",[[4,\"gov-accordion-item\",{\"variant\":[1],\"identifier\":[1],\"size\":[1],\"disabled\":[4],\"isExpanded\":[1028,\"is-expanded\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]},null,{\"size\":[\"validateSize\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-card.cjs\",[[4,\"gov-card\",{\"promotion\":[4],\"label\":[1],\"collapsible\":[4],\"expanded\":[4],\"headlineTag\":[1,\"headline-tag\"],\"wcagTriggerLabel\":[1,\"wcag-trigger-label\"],\"wcagTriggerLabelledBy\":[1,\"wcag-trigger-labelled-by\"],\"isExpanded\":[32],\"open\":[64],\"close\":[64],\"validateWcag\":[64]},null,{\"headlineTag\":[\"validateHeadlineTag\"]}]]],[\"gov-form-checkbox.cjs\",[[4,\"gov-form-checkbox\",{\"value\":[1],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"noLabel\":[4,\"no-label\"],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-tag.cjs\",[[4,\"gov-tag\",{\"inverse\":[4],\"iconLeft\":[1,\"icon-left\"],\"iconRight\":[1,\"icon-right\"],\"size\":[513],\"variant\":[513]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\"]}]]],[\"gov-tile.cjs\",[[4,\"gov-tile\",{\"href\":[513],\"target\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizard-item.cjs\",[[4,\"gov-wizard-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"collapsible\":[4],\"annotation\":[1],\"label\":[1],\"disabled\":[4],\"isExpanded\":[1028,\"is-expanded\"],\"labelTag\":[1,\"label-tag\"],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]},null,{\"label\":[\"validateLabel\"],\"labelTag\":[\"validateTriggerTag\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-accordion.cjs\",[[4,\"gov-accordion\",{\"size\":[1],\"variant\":[1],\"noBorder\":[4,\"no-border\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-container.cjs\",[[4,\"gov-container\",{\"slottedChildren\":[64]}]]],[\"gov-control-group.cjs\",[[4,\"gov-control-group\",{\"variant\":[1],\"noBorder\":[4,\"no-border\"]},null,{\"variant\":[\"validateVariant\"]}]]],[\"gov-cookiebar.cjs\",[[4,\"gov-cookiebar\"]]],[\"gov-dropdown.cjs\",[[4,\"gov-dropdown\",{\"identifier\":[1],\"open\":[1028],\"position\":[1],\"getState\":[64],\"setOpen\":[64]}]]],[\"gov-empty.cjs\",[[4,\"gov-empty\"]]],[\"gov-error-code.cjs\",[[4,\"gov-error-code\"]]],[\"gov-form-checkbox-group.cjs\",[[4,\"gov-form-checkbox-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-control.cjs\",[[4,\"gov-form-control\",{\"identifier\":[1],\"invalid\":[516],\"disabled\":[516],\"success\":[516],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group.cjs\",[[4,\"gov-form-group\",{\"gap\":[1],\"orientation\":[1]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-label.cjs\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-password-power.cjs\",[[4,\"gov-form-password-power\",{\"power\":[514]}]]],[\"gov-form-radio.cjs\",[[4,\"gov-form-radio\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-radio-group.cjs\",[[4,\"gov-form-radio-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-search.cjs\",[[4,\"gov-form-search\",{\"variant\":[513]}]]],[\"gov-form-switch.cjs\",[[4,\"gov-form-switch\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\",\"watchDisabled\"],\"disabled\":[\"watchDisabled\"],\"invalid\":[\"watchDisabled\"]}]]],[\"gov-grid.cjs\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item.cjs\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout.cjs\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column.cjs\",[[4,\"gov-layout-column\"]]],[\"gov-message.cjs\",[[4,\"gov-message\",{\"variant\":[1]},null,{\"variant\":[\"validateVariant\"]}]]],[\"gov-nav.cjs\",[[4,\"gov-nav\",{\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-nav-item.cjs\",[[4,\"gov-nav-item\",{\"href\":[1],\"isExpandedState\":[32]},null,{\"href\":[\"validateHref\"]}]]],[\"gov-side-nav.cjs\",[[4,\"gov-side-nav\",{\"inverse\":[4],\"compact\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-skeleton.cjs\",[[0,\"gov-skeleton\",{\"variant\":[1],\"count\":[2],\"shape\":[1],\"width\":[1],\"height\":[1],\"animation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"],\"shape\":[\"validateShape\"],\"animation\":[\"validateAnimation\"]}]]],[\"gov-spacer.cjs\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]},null,{\"size\":[\"validateSize\"],\"breakpoint\":[\"validateBreakpoint\"]}]]],[\"gov-statsbar.cjs\",[[4,\"gov-statsbar\",{\"iconPosition\":[1,\"icon-position\"],\"variant\":[1]},null,{\"iconPosition\":[\"validateIconPosition\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-statsbar-item.cjs\",[[4,\"gov-statsbar-item\",{\"iconPosition\":[1,\"icon-position\"]},null,{\"iconPosition\":[\"validateIconPosition\"]}]]],[\"gov-stepper.cjs\",[[4,\"gov-stepper\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-stepper-item.cjs\",[[4,\"gov-stepper-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"label\":[1],\"annotation\":[1],\"triggerTag\":[1,\"trigger-tag\"],\"isExpandedState\":[32],\"currentState\":[64]},null,{\"label\":[\"validateLabel\"],\"triggerTag\":[\"validateTriggerTag\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-tabs-item.cjs\",[[4,\"gov-tabs-item\",{\"identifier\":[1],\"triggerIdentifier\":[1,\"trigger-identifier\"],\"label\":[513],\"disabled\":[516],\"default\":[4],\"isActive\":[32],\"getIdentifier\":[64],\"getTriggerIdentifier\":[64],\"getDisableState\":[64],\"setActiveStatus\":[64]},null,{\"label\":[\"rerenderParent\"],\"disabled\":[\"rerenderParent\"]}]]],[\"gov-tiles.cjs\",[[4,\"gov-tiles\",{\"columns\":[2],\"noBorder\":[4,\"no-border\"]}]]],[\"gov-tooltip.cjs\",[[4,\"gov-tooltip\",{\"variant\":[1],\"size\":[1],\"position\":[1025],\"message\":[1],\"identifier\":[1],\"icon\":[516],\"persist\":[32],\"show\":[64],\"hide\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\"],\"position\":[\"validatePosition\"],\"message\":[\"rerenderMessage\"]}]]],[\"gov-wizard.cjs\",[[4,\"gov-wizard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-icon.cjs\",[[0,\"gov-icon\",{\"name\":[1],\"type\":[1],\"iconData\":[32],\"visible\":[32],\"error\":[32]},null,{\"name\":[\"loadIconPathData\"]}]]],[\"gov-form-input.cjs\",[[4,\"gov-form-input\",{\"value\":[1537],\"identifier\":[1],\"variant\":[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],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagAutocomplete\":[1,\"wcag-autocomplete\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"focused\":[32],\"setFocus\":[64],\"setValue\":[64],\"clearValue\":[64],\"getRef\":[64],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"]}]]],[\"gov-form-autocomplete.cjs\",[[4,\"gov-form-autocomplete\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"variant\":[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\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"processing\":[32],\"arrowCounter\":[32],\"list\":[32],\"setFocus\":[64],\"setBlur\":[64],\"setOptions\":[64],\"clearValue\":[64],\"setProcessing\":[64],\"setSearchCallback\":[64],\"setTemplateResolver\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\"],\"options\":[\"watchOptions\"]}]]],[\"gov-chip.cjs\",[[4,\"gov-chip\",{\"inverse\":[4],\"disabled\":[4],\"href\":[1],\"target\":[1],\"iconLeft\":[1,\"icon-left\"],\"iconRight\":[1,\"icon-right\"],\"size\":[1],\"tag\":[1],\"variant\":[1],\"focusable\":[4],\"identifier\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagSelected\":[4,\"wcag-selected\"],\"getTriggerRef\":[64],\"getTriggerIdentifier\":[64],\"setFocus\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\"]}]]],[\"gov-form-select.cjs\",[[4,\"gov-form-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"variant\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"success\":[4],\"disabled\":[4],\"invalid\":[4],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"optionsState\":[32],\"setFocus\":[64],\"getRef\":[64],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\",\"watchControlAttrs\"],\"options\":[\"watchOptions\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"],\"value\":[\"watchValue\"]}]]],[\"gov-attachments_3.cjs\",[[4,\"gov-attachments-item\",{\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagRemoveLabelledBy\":[1,\"wcag-remove-labelled-by\"],\"validateWcag\":[64]}],[4,\"gov-attachments\",{\"label\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}],[4,\"gov-form-message\",{\"variant\":[1],\"identifier\":[64]},null,{\"variant\":[\"validateVariant\"]}]]],[\"gov-backdrop.cjs\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-button.cjs\",[[4,\"gov-button\",{\"variant\":[513],\"size\":[513],\"type\":[513],\"expanded\":[516],\"inverse\":[516],\"name\":[1],\"iconLeft\":[1,\"icon-left\"],\"iconRight\":[1,\"icon-right\"],\"disabled\":[516],\"nativeType\":[1,\"native-type\"],\"href\":[1],\"target\":[1],\"download\":[4],\"hreflang\":[1],\"referrerpolicy\":[1],\"rel\":[1],\"loading\":[1],\"focusable\":[4],\"identifier\":[1],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagDescription\":[1,\"wcag-description\"],\"wcagDetails\":[1,\"wcag-details\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagHasPopup\":[1,\"wcag-has-popup\"],\"wcagPressed\":[4,\"wcag-pressed\"],\"wcagCurrent\":[1,\"wcag-current\"],\"setFocus\":[64],\"getTriggerRef\":[64],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"],\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"nativeType\":[\"validateNativeType\"]}]]]]"), options);
11
+ return index.bootstrapLazy(JSON.parse("[[\"gov-form-file.cjs\",[[4,\"gov-form-file\",{\"expanded\":[4],\"required\":[4],\"disabled\":[4],\"resetAfterPick\":[4,\"reset-after-pick\"],\"ignoreFileDuplicationCheck\":[4,\"ignore-file-duplication-check\"],\"displayAttachments\":[4,\"display-attachments\"],\"name\":[1],\"accept\":[1],\"multiple\":[4],\"maxFileSize\":[2,\"max-file-size\"],\"identifier\":[1],\"invalid\":[4],\"errorSize\":[1,\"error-size\"],\"errorAccept\":[1,\"error-accept\"],\"attachmentsLabel\":[1,\"attachments-label\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagAttachmentsLabel\":[1,\"wcag-attachments-label\"],\"files\":[32],\"getRef\":[64],\"getAreaRef\":[64],\"reset\":[64],\"validateWcag\":[64]},null,{\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-multi-select.cjs\",[[4,\"gov-form-multi-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"placeholder\":[1],\"variant\":[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\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"valueState\":[32],\"selectedOptionsState\":[32],\"optionsState\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\",\"watchControlAttrs\"],\"options\":[\"watchOptions\"],\"value\":[\"watchValue\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"]}]]],[\"gov-modal.cjs\",[[4,\"gov-modal\",{\"open\":[1028],\"blockClose\":[4,\"block-close\"],\"blockBackdropClose\":[4,\"block-backdrop-close\"],\"blockButtonClose\":[4,\"block-button-close\"],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]},null,{\"labelTag\":[\"validateLabelTag\"],\"open\":[\"watchOpen\"]}]]],[\"gov-pagination.cjs\",[[0,\"gov-pagination\",{\"type\":[1],\"current\":[2],\"total\":[2],\"inverse\":[4],\"selectIdentifier\":[1,\"select-identifier\"],\"size\":[1],\"variant\":[1],\"pageSize\":[2,\"page-size\"],\"maxPages\":[2,\"max-pages\"],\"link\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagPageLabel\":[1,\"wcag-page-label\"],\"labelPrev\":[1,\"label-prev\"],\"labelStart\":[1,\"label-start\"],\"labelNext\":[1,\"label-next\"],\"labelEnd\":[1,\"label-end\"],\"pagination\":[32],\"validateWcag\":[64]},null,{\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"variant\":[\"validateVariant\"],\"current\":[\"recalculate\"],\"total\":[\"recalculate\"],\"pageSize\":[\"recalculate\"],\"maxPages\":[\"recalculate\"]}]]],[\"gov-prompt.cjs\",[[4,\"gov-prompt\",{\"open\":[1028],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]},null,{\"labelTag\":[\"validateLabelTag\"],\"open\":[\"watchOpen\"]}]]],[\"gov-tabs.cjs\",[[4,\"gov-tabs\",{\"type\":[1],\"variant\":[1],\"orientation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"controllers\":[32],\"focusIndex\":[32],\"compactControls\":[32],\"refresh\":[64],\"currentTab\":[64],\"setActiveTab\":[64],\"rerender\":[64],\"validateWcag\":[64]},null,{\"type\":[\"validateType\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-breadcrumbs.cjs\",[[4,\"gov-breadcrumbs\",{\"collapsible\":[4],\"isExpanded\":[4,\"is-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labeled-by\"],\"wcagToggleLabel\":[1,\"wcag-toggle-label\"],\"collapsed\":[32],\"toggleOption\":[32],\"validateWcag\":[64]}]]],[\"gov-infobar.cjs\",[[4,\"gov-infobar\",{\"headline\":[1],\"variant\":[1],\"role\":[1],\"inverse\":[4],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagToggleLabel\":[1,\"wcag-toggle-label\"],\"closable\":[4],\"toggleContent\":[32],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"]}]]],[\"gov-loading.cjs\",[[4,\"gov-loading\"]]],[\"gov-side-nav-item.cjs\",[[4,\"gov-side-nav-item\",{\"inverse\":[4],\"compact\":[4],\"identifier\":[1],\"count\":[4],\"label\":[1],\"disabled\":[4],\"href\":[1],\"isExpanded\":[4,\"is-expanded\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]},null,{\"label\":[\"validateLabel\"]}]]],[\"gov-toast.cjs\",[[4,\"gov-toast\",{\"variant\":[1],\"gravity\":[1],\"position\":[1],\"type\":[1],\"time\":[2],\"closeLabel\":[1,\"close-label\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"destroy\":[64]},null,{\"variant\":[\"validateVariant\"]}]]],[\"gov-tooltip-content.cjs\",[[4,\"gov-tooltip-content\",{\"variant\":[1],\"size\":[1],\"persist\":[4],\"isVisible\":[1028,\"is-visible\"],\"parentId\":[1,\"parent-id\"]},null,{\"isVisible\":[\"visibleContent\"]}]]],[\"gov-accordion-item.cjs\",[[4,\"gov-accordion-item\",{\"variant\":[1],\"identifier\":[1],\"size\":[1],\"disabled\":[4],\"isExpanded\":[1028,\"is-expanded\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]},null,{\"size\":[\"validateSize\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-card.cjs\",[[4,\"gov-card\",{\"promotion\":[4],\"label\":[1],\"collapsible\":[4],\"expanded\":[4],\"headlineTag\":[1,\"headline-tag\"],\"wcagTriggerLabel\":[1,\"wcag-trigger-label\"],\"wcagTriggerLabelledBy\":[1,\"wcag-trigger-labelled-by\"],\"isExpanded\":[32],\"open\":[64],\"close\":[64],\"validateWcag\":[64]},null,{\"headlineTag\":[\"validateHeadlineTag\"]}]]],[\"gov-form-checkbox.cjs\",[[4,\"gov-form-checkbox\",{\"value\":[1],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"noLabel\":[4,\"no-label\"],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-tag.cjs\",[[4,\"gov-tag\",{\"inverse\":[4],\"iconLeft\":[1,\"icon-left\"],\"iconRight\":[1,\"icon-right\"],\"size\":[513],\"variant\":[513]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\"]}]]],[\"gov-tile.cjs\",[[4,\"gov-tile\",{\"href\":[513],\"target\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizard-item.cjs\",[[4,\"gov-wizard-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"collapsible\":[4],\"annotation\":[1],\"label\":[1],\"disabled\":[4],\"isExpanded\":[1028,\"is-expanded\"],\"labelTag\":[1,\"label-tag\"],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]},null,{\"label\":[\"validateLabel\"],\"labelTag\":[\"validateTriggerTag\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-accordion.cjs\",[[4,\"gov-accordion\",{\"size\":[1],\"variant\":[1],\"noBorder\":[4,\"no-border\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-container.cjs\",[[4,\"gov-container\",{\"slottedChildren\":[64]}]]],[\"gov-control-group.cjs\",[[4,\"gov-control-group\",{\"variant\":[1],\"noBorder\":[4,\"no-border\"]},null,{\"variant\":[\"validateVariant\"]}]]],[\"gov-cookiebar.cjs\",[[4,\"gov-cookiebar\"]]],[\"gov-dropdown.cjs\",[[4,\"gov-dropdown\",{\"identifier\":[1],\"open\":[1028],\"position\":[1],\"getState\":[64],\"setOpen\":[64]}]]],[\"gov-empty.cjs\",[[4,\"gov-empty\"]]],[\"gov-error-code.cjs\",[[4,\"gov-error-code\"]]],[\"gov-form-checkbox-group.cjs\",[[4,\"gov-form-checkbox-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-control.cjs\",[[4,\"gov-form-control\",{\"identifier\":[1],\"invalid\":[516],\"disabled\":[516],\"success\":[516],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group.cjs\",[[4,\"gov-form-group\",{\"gap\":[1],\"orientation\":[1]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-label.cjs\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-password-power.cjs\",[[4,\"gov-form-password-power\",{\"power\":[514]}]]],[\"gov-form-radio.cjs\",[[4,\"gov-form-radio\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"]}]]],[\"gov-form-radio-group.cjs\",[[4,\"gov-form-radio-group\",{\"gap\":[1],\"orientation\":[1],\"value\":[1025]},null,{\"gap\":[\"validateGap\"],\"orientation\":[\"validateOrientation\"]}]]],[\"gov-form-search.cjs\",[[4,\"gov-form-search\",{\"variant\":[513]}]]],[\"gov-form-switch.cjs\",[[4,\"gov-form-switch\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\",\"watchDisabled\"],\"disabled\":[\"watchDisabled\"],\"invalid\":[\"watchDisabled\"]}]]],[\"gov-grid.cjs\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item.cjs\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout.cjs\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column.cjs\",[[4,\"gov-layout-column\"]]],[\"gov-lifecycle.cjs\",[[0,\"gov-lifecycle\"]]],[\"gov-message.cjs\",[[4,\"gov-message\",{\"variant\":[1]},null,{\"variant\":[\"validateVariant\"]}]]],[\"gov-nav.cjs\",[[4,\"gov-nav\",{\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-nav-item.cjs\",[[4,\"gov-nav-item\",{\"href\":[1],\"isExpandedState\":[32]},null,{\"href\":[\"validateHref\"]}]]],[\"gov-side-nav.cjs\",[[4,\"gov-side-nav\",{\"inverse\":[4],\"compact\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-skeleton.cjs\",[[0,\"gov-skeleton\",{\"variant\":[1],\"count\":[2],\"shape\":[1],\"width\":[1],\"height\":[1],\"animation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"],\"shape\":[\"validateShape\"],\"animation\":[\"validateAnimation\"]}]]],[\"gov-spacer.cjs\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]},null,{\"size\":[\"validateSize\"],\"breakpoint\":[\"validateBreakpoint\"]}]]],[\"gov-statsbar.cjs\",[[4,\"gov-statsbar\",{\"iconPosition\":[1,\"icon-position\"],\"variant\":[1]},null,{\"iconPosition\":[\"validateIconPosition\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-statsbar-item.cjs\",[[4,\"gov-statsbar-item\",{\"iconPosition\":[1,\"icon-position\"]},null,{\"iconPosition\":[\"validateIconPosition\"]}]]],[\"gov-stepper.cjs\",[[4,\"gov-stepper\",{\"size\":[1]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-stepper-item.cjs\",[[4,\"gov-stepper-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"label\":[1],\"annotation\":[1],\"triggerTag\":[1,\"trigger-tag\"],\"isExpandedState\":[32],\"currentState\":[64]},null,{\"label\":[\"validateLabel\"],\"triggerTag\":[\"validateTriggerTag\"],\"variant\":[\"validateVariant\"]}]]],[\"gov-tabs-item.cjs\",[[4,\"gov-tabs-item\",{\"identifier\":[1],\"triggerIdentifier\":[1,\"trigger-identifier\"],\"label\":[513],\"disabled\":[516],\"default\":[4],\"isActive\":[32],\"getIdentifier\":[64],\"getTriggerIdentifier\":[64],\"getDisableState\":[64],\"setActiveStatus\":[64]},null,{\"label\":[\"rerenderParent\"],\"disabled\":[\"rerenderParent\"]}]]],[\"gov-tiles.cjs\",[[4,\"gov-tiles\",{\"columns\":[2],\"noBorder\":[4,\"no-border\"]}]]],[\"gov-tooltip.cjs\",[[4,\"gov-tooltip\",{\"variant\":[1],\"size\":[1],\"position\":[1025],\"message\":[1],\"identifier\":[1],\"icon\":[516],\"persist\":[32],\"show\":[64],\"hide\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\"],\"position\":[\"validatePosition\"],\"message\":[\"rerenderMessage\"]}]]],[\"gov-wizard.cjs\",[[4,\"gov-wizard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]},null,{\"size\":[\"validateSize\"]}]]],[\"gov-icon.cjs\",[[0,\"gov-icon\",{\"name\":[1],\"type\":[1],\"iconData\":[32],\"visible\":[32],\"error\":[32]},null,{\"name\":[\"loadIconPathData\"]}]]],[\"gov-form-input.cjs\",[[4,\"gov-form-input\",{\"value\":[1537],\"identifier\":[1],\"variant\":[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],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagAutocomplete\":[1,\"wcag-autocomplete\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"focused\":[32],\"setFocus\":[64],\"setValue\":[64],\"clearValue\":[64],\"getRef\":[64],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\",\"watchControlAttrs\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"]}]]],[\"gov-form-autocomplete.cjs\",[[4,\"gov-form-autocomplete\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"variant\":[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\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"processing\":[32],\"arrowCounter\":[32],\"list\":[32],\"setFocus\":[64],\"setBlur\":[64],\"setOptions\":[64],\"clearValue\":[64],\"setProcessing\":[64],\"setSearchCallback\":[64],\"setTemplateResolver\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\"],\"options\":[\"watchOptions\"]}]]],[\"gov-chip.cjs\",[[4,\"gov-chip\",{\"inverse\":[4],\"disabled\":[4],\"href\":[1],\"target\":[1],\"iconLeft\":[1,\"icon-left\"],\"iconRight\":[1,\"icon-right\"],\"size\":[1],\"tag\":[1],\"variant\":[1],\"focusable\":[4],\"identifier\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagSelected\":[4,\"wcag-selected\"],\"getTriggerRef\":[64],\"getTriggerIdentifier\":[64],\"setFocus\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\"]}]]],[\"gov-form-select.cjs\",[[4,\"gov-form-select\",{\"value\":[1537],\"options\":[1537],\"identifier\":[1],\"variant\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"success\":[4],\"disabled\":[4],\"invalid\":[4],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"optionsState\":[32],\"setFocus\":[64],\"getRef\":[64],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"],\"size\":[\"validateSize\",\"watchControlAttrs\"],\"options\":[\"watchOptions\"],\"disabled\":[\"watchControlAttrs\"],\"invalid\":[\"watchControlAttrs\"],\"success\":[\"watchControlAttrs\"],\"value\":[\"watchValue\"]}]]],[\"gov-attachments_3.cjs\",[[4,\"gov-attachments-item\",{\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagRemoveLabelledBy\":[1,\"wcag-remove-labelled-by\"],\"validateWcag\":[64]}],[4,\"gov-attachments\",{\"label\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}],[4,\"gov-form-message\",{\"variant\":[1],\"identifier\":[64]},null,{\"variant\":[\"validateVariant\"]}]]],[\"gov-backdrop.cjs\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-button.cjs\",[[4,\"gov-button\",{\"variant\":[513],\"size\":[513],\"type\":[513],\"expanded\":[516],\"inverse\":[516],\"name\":[1],\"iconLeft\":[1,\"icon-left\"],\"iconRight\":[1,\"icon-right\"],\"disabled\":[516],\"nativeType\":[1,\"native-type\"],\"href\":[1],\"target\":[1],\"download\":[4],\"hreflang\":[1],\"referrerpolicy\":[1],\"rel\":[1],\"loading\":[1],\"focusable\":[4],\"identifier\":[1],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagDescription\":[1,\"wcag-description\"],\"wcagDetails\":[1,\"wcag-details\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagHasPopup\":[1,\"wcag-has-popup\"],\"wcagPressed\":[4,\"wcag-pressed\"],\"wcagCurrent\":[1,\"wcag-current\"],\"setFocus\":[64],\"getTriggerRef\":[64],\"validateWcag\":[64]},null,{\"variant\":[\"validateVariant\"],\"type\":[\"validateType\"],\"size\":[\"validateSize\"],\"nativeType\":[\"validateNativeType\"]}]]]]"), options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -17,8 +17,9 @@ function splitByWhitespace(string) {
17
17
  return string.split(/(\s+)/);
18
18
  }
19
19
 
20
+ exports.chr4 = chr4;
20
21
  exports.createID = createID;
21
22
  exports.removeDiacritics = removeDiacritics;
22
23
  exports.splitByWhitespace = splitByWhitespace;
23
24
 
24
- //# sourceMappingURL=string.utils-2335838f.js.map
25
+ //# sourceMappingURL=string.utils-b84c81cf.js.map
@@ -0,0 +1 @@
1
+ {"file":"string.utils-b84c81cf.js","mappings":";;SAAgB,IAAI;IACnB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAC5C,CAAC;SAEe,QAAQ,CAAC,MAAc;IACtC,OAAO,GAAG,MAAM,IAAI,IAAI,EAAE,GAAG,IAAI,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,CAAA;AAChG,CAAC;SAEe,gBAAgB,CAAC,MAAW;IAC3C,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAA;IAC7C,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAA;AAC/D,CAAC;SAEe,iBAAiB,CAAC,MAAW;IAC5C,IAAI,OAAO,MAAM,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAA;IAC7C,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;AAC7B;;;;;;;","names":[],"sources":["../../../packages/core/src/utils/string.utils.ts"],"sourcesContent":["export function chr4(): string {\n\treturn Math.random().toString(16).slice(-4)\n}\n\nexport function createID(prefix: string): string {\n\treturn `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`\n}\n\nexport function removeDiacritics(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '')\n}\n\nexport function splitByWhitespace(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.split(/(\\s+)/)\n}\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const gov_log = require('./gov.log-8887c6bc.js');
4
- const string_utils = require('./string.utils-2335838f.js');
4
+ const string_utils = require('./string.utils-b84c81cf.js');
5
5
  const win = require('./win-03714165.js');
6
6
 
7
7
  const validateWcagProp = (value, propName, component) => {
@@ -64,4 +64,4 @@ exports.validateWcagLabelFor = validateWcagLabelFor;
64
64
  exports.validateWcagProp = validateWcagProp;
65
65
  exports.validateWcagRef = validateWcagRef;
66
66
 
67
- //# sourceMappingURL=wcag-53ebeed1.js.map
67
+ //# sourceMappingURL=wcag-0dfd29b6.js.map
@@ -1 +1 @@
1
- {"file":"wcag-53ebeed1.js","mappings":";;;;;;MAIa,gBAAgB,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,SAAiB;IAC9F,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACtDA,qBAAa,CAAC,IAAI,SAAS,WAAW,QAAQ,qDAAqD,CAAC,CAAA;KACpG;AACF,EAAC;MAEY,eAAe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A;AACZ,EAAC;MAEY,iBAAiB,GAAG,CAAC,KAAyB,EAAE,UAA8B,EAAE,SAAiB;IAC7G,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QAClD,OAAO,IAAI,CAAA;KACX;IACD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QAC5D,MAAM,YAAY,GAAGE,gBAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;QAC9D,IAAI,YAAY,EAAE;YACjB,OAAO,IAAI,CAAA;SACX;KACD;IACDF,qBAAa,CAAC,IAAI,SAAS,yEAAyE,CAAC,CAAA;IACrG,OAAO,KAAK,CAAA;AACb;;;;;;;","names":["govWarningLog","splitByWhitespace","documentNode"],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\nimport { splitByWhitespace } from '../../utils/string.utils'\nimport { documentNode } from '../Dom/win'\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateWcagLabel = (label: string | undefined, labelledBy: string | undefined, component: string): boolean => {\n\tif (typeof label === 'string' && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined wcag-label or wcag-labelled-by attribute.`)\n\treturn false\n}\n"],"version":3}
1
+ {"file":"wcag-0dfd29b6.js","mappings":";;;;;;MAIa,gBAAgB,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,SAAiB;IAC9F,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACtDA,qBAAa,CAAC,IAAI,SAAS,WAAW,QAAQ,qDAAqD,CAAC,CAAA;KACpG;AACF,EAAC;MAEY,eAAe,GAAG,CAAC,WAAmB,EAAE,IAAY,EAAE,SAAiB;IACnF,IAAI,OAAO,WAAW,KAAK,WAAW,IAAI,WAAW,KAAK,SAAS,EAAE;QACpE,OAAO,IAAI,CAAA;KACX;IACD,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACrCA,qBAAa,CAAC,IAAI,SAAS,iBAAiB,IAAI,mCAAmC,CAAC,CAAA;QACpF,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,OAAO,GAAG,EAAE,C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AAA;QAC9D,IAAI,YAAY,EAAE;YACjB,OAAO,IAAI,CAAA;SACX;KACD;IACDF,qBAAa,CAAC,IAAI,SAAS,yEAAyE,CAAC,CAAA;IACrG,OAAO,KAAK,CAAA;AACb;;;;;;;","names":["govWarningLog","splitByWhitespace","documentNode"],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\nimport { splitByWhitespace } from '../../utils/string.utils'\nimport { documentNode } from '../Dom/win'\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateWcagLabel = (label: string | undefined, labelledBy: string | undefined, component: string): boolean => {\n\tif (typeof label === 'string' && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined wcag-label or wcag-labelled-by attribute.`)\n\treturn false\n}\n"],"version":3}
@@ -37,6 +37,7 @@
37
37
  "components/gov-infobar/gov-infobar.js",
38
38
  "components/gov-layout/gov-layout-column.js",
39
39
  "components/gov-layout/gov-layout.js",
40
+ "components/gov-lifecycle-tester/gov-lifecycle-tester.js",
40
41
  "components/gov-loading/loading/gov-loading.js",
41
42
  "components/gov-loading/skeleton/gov-skeleton.js",
42
43
  "components/gov-message/gov-message.js",
@@ -9,6 +9,7 @@ import { delay } from "../../../utils/utils";
9
9
  import { govForm } from "../../../helpers/Dom/form";
10
10
  export class GovFormFile {
11
11
  constructor() {
12
+ this.eventsRegistered = false;
12
13
  this.expanded = false;
13
14
  this.required = false;
14
15
  this.disabled = false;
@@ -42,6 +43,10 @@ export class GovFormFile {
42
43
  this.f.passAttrToControl("type", "File");
43
44
  }
44
45
  registerListeners() {
46
+ if (this.eventsRegistered) {
47
+ return;
48
+ }
49
+ this.eventsRegistered = true;
45
50
  function highlight() {
46
51
  this.areaRef.classList.add("highlight");
47
52
  }
@@ -122,7 +127,7 @@ export class GovFormFile {
122
127
  this.registerListeners();
123
128
  }
124
129
  render() {
125
- return (h(Host, { key: 'f4ff2f49ca750b8025ebacdafea5330c3e681b8e', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, h("div", { key: '6c1811dcdca85ebe64141ee0af5f2b9e351e3da0', class: FormFileClass.area, ref: el => (this.areaRef = el) }, h("slot", { key: '86be170e7f1527dbc0b8b891a130a8b743808702' }), h("input", { key: '95b877b4639343f6dfc5715255e75e82cf18d733', class: FormFileClass.input, ref: el => (this.inputRef = el), id: this.identifier || this.fileId, type: "file", name: this.name, accept: this.accept, multiple: this.multiple, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, disabled: this.disabled, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) })), this.h.hasSlot("attachments") ? (h("div", { class: FormFileClass.attachments }, h("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (h("div", { class: FormFileClass.attachments }, h("gov-attachments", { label: this.wcagAttachmentsLabel, "wcag-label": this.wcagAttachmentsLabel }, this.files.map(item => (h("gov-attachments-item", { "wcag-remove-labelled-by": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, h("span", { class: "sr-only", id: item.id }, this.wcagRemoveLabel.replace("{FILE_NAME}", item.file.name)), item.file.name, item.acceptValid === false ? (h("gov-form-message", { slot: "message", variant: "error" }, h("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (h("gov-form-message", { slot: "message", variant: "error" }, h("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize)))) : null, h("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
130
+ return (h(Host, { key: 'aa5c283da9eba03799821960eb24cb33ccb09970', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, h("div", { key: '009e6045d710930eabd1dd9a6b4c8b863f1d7966', class: FormFileClass.area, ref: el => (this.areaRef = el) }, h("slot", { key: 'c41093ae90e265a077a5a18366dcd3951ca1797b' }), h("input", { key: '9e5813b8a306b65a646ee5754aafb897e92a0c8a', class: FormFileClass.input, ref: el => (this.inputRef = el), id: this.identifier || this.fileId, type: "file", name: this.name, accept: this.accept, multiple: this.multiple, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, disabled: this.disabled, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) })), this.h.hasSlot("attachments") ? (h("div", { class: FormFileClass.attachments }, h("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (h("div", { class: FormFileClass.attachments }, h("gov-attachments", { label: this.wcagAttachmentsLabel, "wcag-label": this.wcagAttachmentsLabel }, this.files.map(item => (h("gov-attachments-item", { "wcag-remove-labelled-by": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, h("span", { class: "sr-only", id: item.id }, this.wcagRemoveLabel.replace("{FILE_NAME}", item.file.name)), item.file.name, item.acceptValid === false ? (h("gov-form-message", { slot: "message", variant: "error" }, h("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (h("gov-form-message", { slot: "message", variant: "error" }, h("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize)))) : null, h("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
126
131
  }
127
132
  onRemoveFileHandler(file) {
128
133
  const index = this.files.findIndex(item => item.id === file.id);
@@ -1 +1 @@
1
- {"version":3,"file":"gov-form-file.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/file/gov-form-file.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormFileClass} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {validateWcagLabelFor, validateWcagRef} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {fileAcceptValidation, fileSizeValidation, formatBytes} from \"../../../utils/file.utils\"\nimport {delay} from \"../../../utils/utils\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovFormFileEvent, GovFormFileItem} from \"./gov-form-file.types\"\n\n@Component({\n\ttag: \"gov-form-file\",\n\tstyleUrl: \"gov-form-file.scss\",\n})\nexport class GovFormFile {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\n\tprivate areaRef?: HTMLDivElement\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly fileId: string\n\n\tconstructor() {\n\t\tthis.fileId = createID(\"GovInputFile\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormFileElement\n\t/**\n\t * Expands the file input to fill 100% of the container width.\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the File component disabled.\n\t * This prevents users from being able to interact with the File, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * After selecting the files, the main input element will be reset.\n\t * The propagation of the event with the selected files will not be affected.\n\t */\n\t@Prop({attribute: \"reset-after-pick\"}) readonly resetAfterPick: boolean = true\n\t/**\n\t * Selected files will not be checked for duplicates based on name and size.\n\t */\n\t@Prop({attribute: \"ignore-file-duplication-check\"}) readonly ignoreFileDuplicationCheck: boolean = false\n\t/**\n\t * Show list of attachments\n\t */\n\t@Prop({attribute: \"display-attachments\"}) readonly displayAttachments: boolean = true\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\n\t */\n\t@Prop() readonly accept: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple\n\t */\n\t@Prop() readonly multiple: boolean = false\n\t/**\n\t * Maximum embedded file size\n\t */\n\t@Prop({attribute: \"max-file-size\"}) readonly maxFileSize: number = -1\n\t/**\n\t * Custom File identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Error message when the maximum file size is exceeded\n\t */\n\t@Prop({attribute: \"error-size\"}) readonly errorSize: string = \"Soubor je větší než povolená velikost {FILE_SIZE}\"\n\t/**\n\t * Insert unsupported file error message\n\t */\n\t@Prop({attribute: \"error-accept\"}) readonly errorAccept: string = \"Soubor tohoto typu není povolen\"\n\t/**\n\t * Description of the list of attachments\n\t */\n\t@Prop({attribute: \"attachments-label\"}) readonly attachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({attribute: \"wcag-described-by\"}) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({attribute: \"wcag-labelled-by\"}) readonly wcagLabelledBy: string\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: \"wcag-remove-label\"}) readonly wcagRemoveLabel: string = \"Odebrat soubor {FILE_NAME}\"\n\t/**\n\t * Adds accessible label for the list of attachments.\n\t */\n\t@Prop({attribute: \"wcag-attachments-label\"}) readonly wcagAttachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Emitted when the File has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Emitted when the File loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when the list of inserted files is changed\n\t */\n\t@Event({eventName: \"gov-files\"}) govFiles: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a new file is added\n\t */\n\t@Event({eventName: \"gov-add-file\"}) govAddFile: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a file is removed from the list\n\t */\n\t@Event({eventName: \"gov-remove-file\"}) govRemoveFile: EventEmitter<GovFormFileEvent>\n\n\t@State() files: GovFormFileItem[] = []\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"File\")\n\t}\n\n\n\tprivate registerListeners() {\n\t\tfunction highlight() {\n\t\t\tthis.areaRef.classList.add(\"highlight\")\n\t\t}\n\n\t\tfunction unhighlight() {\n\t\t\tthis.areaRef.classList.remove(\"highlight\")\n\t\t}\n\n\t\tthis.inputRef.addEventListener(\n\t\t\t\"change\",\n\t\t\te => {\n\t\t\t\te.preventDefault()\n\t\t\t\te.stopPropagation()\n\t\t\t\tconst files = (e.target as HTMLInputElement).files\n\t\t\t\tif (this.resetAfterPick) {\n\t\t\t\t\tif (files.length) {\n\t\t\t\t\t\tthis.validateFiles(files)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthis.validateFiles(files)\n\t\t\t\t}\n\t\t\t},\n\t\t\tfalse,\n\t\t)\n\n\t\tif (this.expanded) {\n\t\t\tconst events = [\"dragover\", \"dragleave\"]\n\t\t\tconst inEvents = [\"dragenter\", \"dragover\", \"mouseenter\"]\n\t\t\tconst outEvents = [\"dragleave\", \"drop\", \"mouseleave\"]\n\n\t\t\tevents.map(eventName => this.inputRef.addEventListener(eventName, this.preventDefaults.bind(this), false))\n\t\t\tinEvents.map(eventName => this.inputRef.addEventListener(eventName, highlight.bind(this), false))\n\t\t\toutEvents.forEach(eventName => this.inputRef.addEventListener(eventName, unhighlight.bind(this), false))\n\n\t\t\tthis.areaRef.addEventListener(\"drop\", this.handleDrop.bind(this), false)\n\t\t}\n\t}\n\n\tpreventDefaults(e) {\n\t\te.preventDefault()\n\t\te.stopPropagation()\n\t}\n\n\thandleDrop(e: DragEvent) {\n\t\tconst dataTransfer = e.dataTransfer\n\t\tthis.validateFiles(dataTransfer.files)\n\t}\n\n\tprivate validateFiles(files: FileList) {\n\t\tlet filesBuffer: GovFormFileItem[] = []\n\t\tArray.from(files).map(file => {\n\t\t\tconst isFile = this.files.find(item => item.file.name === file.name && item.file.size === file.size) || null\n\t\t\tif (isFile === null || this.ignoreFileDuplicationCheck) {\n\t\t\t\tconst isSizeValid = typeof this.maxFileSize === \"number\" && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true\n\t\t\t\tconst isAcceptValid = fileAcceptValidation(file, this.accept)\n\t\t\t\tconst newFile = {\n\t\t\t\t\tid: createID(\"GovFormFile\"),\n\t\t\t\t\tfile,\n\t\t\t\t\tacceptValid: isAcceptValid,\n\t\t\t\t\tsizeValid: isSizeValid,\n\t\t\t\t}\n\t\t\t\tif (this.displayAttachments) {\n\t\t\t\t\tthis.files = [...this.files, newFile]\n\t\t\t\t} else {\n\t\t\t\t\tfilesBuffer = [...filesBuffer, newFile]\n\t\t\t\t}\n\t\t\t\tthis.govAddFile.emit({\n\t\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\t\tfile: newFile,\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\n\t\tthis.govFiles.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\tfiles: filesBuffer.length ? filesBuffer : this.files,\n\t\t})\n\n\t\tif (this.resetAfterPick) {\n\t\t\tthis.reset().finally()\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\n\t\tthis.registerListeners()\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([FormFileClass.root])} invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\texpanded={toBoolAttrIfDefined(this.expanded)}>\n\t\t\t\t<div class={FormFileClass.area} ref={el => (this.areaRef = el as HTMLDivElement)}>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<input\n\t\t\t\t\t\tclass={FormFileClass.input}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tid={this.identifier || this.fileId}\n\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\taccept={this.accept}\n\t\t\t\t\t\tmultiple={this.multiple}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot(\"attachments\") ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<slot name={\"attachments\"}/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t{this.files.length && this.displayAttachments ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<gov-attachments label={this.wcagAttachmentsLabel} wcag-label={this.wcagAttachmentsLabel}>\n\t\t\t\t\t\t\t{this.files.map(item => (\n\t\t\t\t\t\t\t\t<gov-attachments-item wcag-remove-labelled-by={item.id}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ton-gov-remove={() => this.onRemoveFileHandler(item)}>\n\t\t\t\t\t\t\t\t\t<span class={\"sr-only\"} id={item.id}>\n\t\t\t\t\t\t\t\t\t\t{this.wcagRemoveLabel.replace(\"{FILE_NAME}\", item.file.name)}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t{item.file.name}\n\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" variant=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? this.errorAccept : null}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t{item.sizeValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" variant=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{this.errorSize.replace(\"{FILE_SIZE}\", formatBytes(this.maxFileSize))}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t<span slot=\"info\">({formatBytes(item.file.size)})</span>\n\t\t\t\t\t\t\t\t</gov-attachments-item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</gov-attachments>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onRemoveFileHandler(file: GovFormFileItem) {\n\t\tconst index = this.files.findIndex(item => item.id === file.id)\n\t\tif (index !== -1) {\n\t\t\tconst files = this.files\n\t\t\tconst removeFile = this.files[index]\n\t\t\tfiles.splice(index, 1)\n\t\t\tthis.files = [...files]\n\t\t\tthis.govRemoveFile.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfile: removeFile,\n\t\t\t})\n\t\t\tthis.govFiles.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfiles,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Returns the reference of the native area element\n\t */\n\t@Method()\n\tasync getAreaRef(): Promise<HTMLDivElement> {\n\t\treturn this.areaRef\n\t}\n\n\t/**\n\t * Remove all files from component state\n\t */\n\t@Method()\n\tasync reset(): Promise<void> {\n\t\tthis.files = []\n\t\tthis.inputRef.value = '';\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\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", FormFileClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", FormFileClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.fileId, this.wcagLabelledBy, FormFileClass.root)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-form-file.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/file/gov-form-file.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAA;AACzC,OAAO,EAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AACtF,OAAO,EAAC,oBAAoB,EAAE,eAAe,EAAC,MAAM,gCAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormFileClass} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {validateWcagLabelFor, validateWcagRef} from \"../../../helpers/Validate/wcag\"\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\nimport {fileAcceptValidation, fileSizeValidation, formatBytes} from \"../../../utils/file.utils\"\nimport {delay} from \"../../../utils/utils\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovFormFileEvent, GovFormFileItem} from \"./gov-form-file.types\"\n\n@Component({\n\ttag: \"gov-form-file\",\n\tstyleUrl: \"gov-form-file.scss\",\n})\nexport class GovFormFile {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\n\tprivate areaRef?: HTMLDivElement\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly fileId: string\n\tprivate eventsRegistered = false\n\n\tconstructor() {\n\t\tthis.fileId = createID(\"GovInputFile\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormFileElement\n\t/**\n\t * Expands the file input to fill 100% of the container width.\n\t */\n\t@Prop() readonly expanded: boolean = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the File component disabled.\n\t * This prevents users from being able to interact with the File, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * After selecting the files, the main input element will be reset.\n\t * The propagation of the event with the selected files will not be affected.\n\t */\n\t@Prop({attribute: \"reset-after-pick\"}) readonly resetAfterPick: boolean = true\n\t/**\n\t * Selected files will not be checked for duplicates based on name and size.\n\t */\n\t@Prop({attribute: \"ignore-file-duplication-check\"}) readonly ignoreFileDuplicationCheck: boolean = false\n\t/**\n\t * Show list of attachments\n\t */\n\t@Prop({attribute: \"display-attachments\"}) readonly displayAttachments: boolean = true\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\n\t */\n\t@Prop() readonly accept: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple\n\t */\n\t@Prop() readonly multiple: boolean = false\n\t/**\n\t * Maximum embedded file size\n\t */\n\t@Prop({attribute: \"max-file-size\"}) readonly maxFileSize: number = -1\n\t/**\n\t * Custom File identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Error message when the maximum file size is exceeded\n\t */\n\t@Prop({attribute: \"error-size\"}) readonly errorSize: string = \"Soubor je větší než povolená velikost {FILE_SIZE}\"\n\t/**\n\t * Insert unsupported file error message\n\t */\n\t@Prop({attribute: \"error-accept\"}) readonly errorAccept: string = \"Soubor tohoto typu není povolen\"\n\t/**\n\t * Description of the list of attachments\n\t */\n\t@Prop({attribute: \"attachments-label\"}) readonly attachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({attribute: \"wcag-described-by\"}) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({attribute: \"wcag-labelled-by\"}) readonly wcagLabelledBy: string\n\t/**\n\t * Adds accessible label for the remove button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: \"wcag-remove-label\"}) readonly wcagRemoveLabel: string = \"Odebrat soubor {FILE_NAME}\"\n\t/**\n\t * Adds accessible label for the list of attachments.\n\t */\n\t@Prop({attribute: \"wcag-attachments-label\"}) readonly wcagAttachmentsLabel: string = \"Přílohy\"\n\t/**\n\t * Emitted when the File has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Emitted when the File loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when the list of inserted files is changed\n\t */\n\t@Event({eventName: \"gov-files\"}) govFiles: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a new file is added\n\t */\n\t@Event({eventName: \"gov-add-file\"}) govAddFile: EventEmitter<GovFormFileEvent>\n\t/**\n\t * Called when a file is removed from the list\n\t */\n\t@Event({eventName: \"gov-remove-file\"}) govRemoveFile: EventEmitter<GovFormFileEvent>\n\n\t@State() files: GovFormFileItem[] = []\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"File\")\n\t}\n\n\n\tprivate registerListeners() {\n\t\tif (this.eventsRegistered) {\n\t\t\treturn\n\t\t}\n\t\tthis.eventsRegistered = true\n\n\t\tfunction highlight() {\n\t\t\tthis.areaRef.classList.add(\"highlight\")\n\t\t}\n\n\t\tfunction unhighlight() {\n\t\t\tthis.areaRef.classList.remove(\"highlight\")\n\t\t}\n\n\t\tthis.inputRef.addEventListener(\n\t\t\t\"change\",\n\t\t\te => {\n\t\t\t\te.preventDefault()\n\t\t\t\te.stopPropagation()\n\t\t\t\tconst files = (e.target as HTMLInputElement).files\n\t\t\t\tif (this.resetAfterPick) {\n\t\t\t\t\tif (files.length) {\n\t\t\t\t\t\tthis.validateFiles(files)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthis.validateFiles(files)\n\t\t\t\t}\n\t\t\t},\n\t\t\tfalse,\n\t\t)\n\n\t\tif (this.expanded) {\n\t\t\tconst events = [\"dragover\", \"dragleave\"]\n\t\t\tconst inEvents = [\"dragenter\", \"dragover\", \"mouseenter\"]\n\t\t\tconst outEvents = [\"dragleave\", \"drop\", \"mouseleave\"]\n\n\t\t\tevents.map(eventName => this.inputRef.addEventListener(eventName, this.preventDefaults.bind(this), false))\n\t\t\tinEvents.map(eventName => this.inputRef.addEventListener(eventName, highlight.bind(this), false))\n\t\t\toutEvents.forEach(eventName => this.inputRef.addEventListener(eventName, unhighlight.bind(this), false))\n\n\t\t\tthis.areaRef.addEventListener(\"drop\", this.handleDrop.bind(this), false)\n\t\t}\n\t}\n\n\tpreventDefaults(e) {\n\t\te.preventDefault()\n\t\te.stopPropagation()\n\t}\n\n\thandleDrop(e: DragEvent) {\n\t\tconst dataTransfer = e.dataTransfer\n\t\tthis.validateFiles(dataTransfer.files)\n\t}\n\n\tprivate validateFiles(files: FileList) {\n\t\tlet filesBuffer: GovFormFileItem[] = []\n\t\tArray.from(files).map(file => {\n\t\t\tconst isFile = this.files.find(item => item.file.name === file.name && item.file.size === file.size) || null\n\t\t\tif (isFile === null || this.ignoreFileDuplicationCheck) {\n\t\t\t\tconst isSizeValid = typeof this.maxFileSize === \"number\" && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true\n\t\t\t\tconst isAcceptValid = fileAcceptValidation(file, this.accept)\n\t\t\t\tconst newFile = {\n\t\t\t\t\tid: createID(\"GovFormFile\"),\n\t\t\t\t\tfile,\n\t\t\t\t\tacceptValid: isAcceptValid,\n\t\t\t\t\tsizeValid: isSizeValid,\n\t\t\t\t}\n\t\t\t\tif (this.displayAttachments) {\n\t\t\t\t\tthis.files = [...this.files, newFile]\n\t\t\t\t} else {\n\t\t\t\t\tfilesBuffer = [...filesBuffer, newFile]\n\t\t\t\t}\n\t\t\t\tthis.govAddFile.emit({\n\t\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\t\tfile: newFile,\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\n\t\tthis.govFiles.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\tfiles: filesBuffer.length ? filesBuffer : this.files,\n\t\t})\n\n\t\tif (this.resetAfterPick) {\n\t\t\tthis.reset().finally()\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\n\t\tthis.registerListeners()\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes([FormFileClass.root])} invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\texpanded={toBoolAttrIfDefined(this.expanded)}>\n\t\t\t\t<div class={FormFileClass.area} ref={el => (this.areaRef = el as HTMLDivElement)}>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t<input\n\t\t\t\t\t\tclass={FormFileClass.input}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tid={this.identifier || this.fileId}\n\t\t\t\t\t\ttype=\"file\"\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\taccept={this.accept}\n\t\t\t\t\t\tmultiple={this.multiple}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\n\t\t\t\t{this.h.hasSlot(\"attachments\") ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<slot name={\"attachments\"}/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t{this.files.length && this.displayAttachments ? (\n\t\t\t\t\t<div class={FormFileClass.attachments}>\n\t\t\t\t\t\t<gov-attachments label={this.wcagAttachmentsLabel} wcag-label={this.wcagAttachmentsLabel}>\n\t\t\t\t\t\t\t{this.files.map(item => (\n\t\t\t\t\t\t\t\t<gov-attachments-item wcag-remove-labelled-by={item.id}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ton-gov-remove={() => this.onRemoveFileHandler(item)}>\n\t\t\t\t\t\t\t\t\t<span class={\"sr-only\"} id={item.id}>\n\t\t\t\t\t\t\t\t\t\t{this.wcagRemoveLabel.replace(\"{FILE_NAME}\", item.file.name)}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t{item.file.name}\n\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" variant=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? this.errorAccept : null}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t{item.sizeValid === false ? (\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" variant=\"error\">\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\"></gov-icon>\n\t\t\t\t\t\t\t\t\t\t\t{this.errorSize.replace(\"{FILE_SIZE}\", formatBytes(this.maxFileSize))}\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\n\t\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t\t\t<span slot=\"info\">({formatBytes(item.file.size)})</span>\n\t\t\t\t\t\t\t\t</gov-attachments-item>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</gov-attachments>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onRemoveFileHandler(file: GovFormFileItem) {\n\t\tconst index = this.files.findIndex(item => item.id === file.id)\n\t\tif (index !== -1) {\n\t\t\tconst files = this.files\n\t\t\tconst removeFile = this.files[index]\n\t\t\tfiles.splice(index, 1)\n\t\t\tthis.files = [...files]\n\t\t\tthis.govRemoveFile.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfile: removeFile,\n\t\t\t})\n\t\t\tthis.govFiles.emit({\n\t\t\t\tcomponent: FormFileClass.root,\n\t\t\t\tfiles,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormFileClass.root,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Returns the reference of the native area element\n\t */\n\t@Method()\n\tasync getAreaRef(): Promise<HTMLDivElement> {\n\t\treturn this.areaRef\n\t}\n\n\t/**\n\t * Remove all files from component state\n\t */\n\t@Method()\n\tasync reset(): Promise<void> {\n\t\tthis.files = []\n\t\tthis.inputRef.value = '';\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\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", FormFileClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", FormFileClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.fileId, this.wcagLabelledBy, FormFileClass.root)\n\t}\n}\n"]}
@@ -0,0 +1,39 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import { chr4 } from "../../utils/string.utils";
3
+ export class GovLifecycle {
4
+ constructor() {
5
+ this.uniqueId = 'lifecycle-' + chr4();
6
+ }
7
+ connectedCallback() {
8
+ console.log('connectedCallback', this.uniqueId);
9
+ }
10
+ disconnectedCallback() {
11
+ console.log('disconnectedCallback', this.uniqueId);
12
+ }
13
+ componentWillLoad() {
14
+ console.log('componentWillLoad', this.uniqueId);
15
+ }
16
+ componentDidLoad() {
17
+ console.log('componentDidLoad', this.uniqueId);
18
+ }
19
+ componentShouldUpdate() {
20
+ console.log('componentShouldUpdate', this.uniqueId);
21
+ }
22
+ componentWillRender() {
23
+ console.log('componentWillRender', this.uniqueId);
24
+ }
25
+ componentDidRender() {
26
+ console.log('componentDidRender', this.uniqueId);
27
+ }
28
+ componentWillUpdate() {
29
+ console.log('componentWillUpdate', this.uniqueId);
30
+ }
31
+ componentDidUpdate() {
32
+ console.log('componentDidUpdate', this.uniqueId);
33
+ }
34
+ render() {
35
+ return (h(Host, { key: '96a0e961547f60b083824345c4fdf95189c01028', identifier: this.uniqueId }, h("span", { key: '3334335d1d07eb6d80bd957f288e92b60e7b203a' }, "lifecycle ", this.uniqueId)));
36
+ }
37
+ static get is() { return "gov-lifecycle"; }
38
+ }
39
+ //# sourceMappingURL=gov-lifecycle-tester.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gov-lifecycle-tester.js","sourceRoot":"","sources":["../../../../../../src/components/gov-lifecycle-tester/gov-lifecycle-tester.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAK9C,MAAM,OAAO,YAAY;IAGxB;QACC,IAAI,CAAC,QAAQ,GAAG,YAAY,GAAG,IAAI,EAAE,CAAC;IACvC,CAAC;IAED,iBAAiB;QAChB,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED,oBAAoB;QACnB,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;IAED,iBAAiB;QAChB,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED,gBAAgB;QACf,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED,qBAAqB;QACpB,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAED,mBAAmB;QAClB,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED,kBAAkB;QACjB,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,mBAAmB;QAClB,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED,kBAAkB;QACjB,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClD,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,UAAU,EAAE,IAAI,CAAC,QAAQ;YAC9B;;gBAAiB,IAAI,CAAC,QAAQ,CAAQ,CAChC,CACP,CAAC;IACH,CAAC;;CACD","sourcesContent":["import {Component, h, Host} from '@stencil/core';\nimport {chr4} from \"../../utils/string.utils\";\n\n@Component({\n\ttag: 'gov-lifecycle',\n})\nexport class GovLifecycle {\n\tprivate readonly uniqueId: string;\n\n\tconstructor() {\n\t\tthis.uniqueId = 'lifecycle-' + chr4();\n\t}\n\n\tconnectedCallback() {\n\t\tconsole.log('connectedCallback', this.uniqueId);\n\t}\n\n\tdisconnectedCallback() {\n\t\tconsole.log('disconnectedCallback', this.uniqueId);\n\t}\n\n\tcomponentWillLoad() {\n\t\tconsole.log('componentWillLoad', this.uniqueId);\n\t}\n\n\tcomponentDidLoad() {\n\t\tconsole.log('componentDidLoad', this.uniqueId);\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tconsole.log('componentShouldUpdate', this.uniqueId);\n\t}\n\n\tcomponentWillRender() {\n\t\tconsole.log('componentWillRender', this.uniqueId);\n\t}\n\n\tcomponentDidRender() {\n\t\tconsole.log('componentDidRender', this.uniqueId);\n\t}\n\n\tcomponentWillUpdate() {\n\t\tconsole.log('componentWillUpdate', this.uniqueId);\n\t}\n\n\tcomponentDidUpdate() {\n\t\tconsole.log('componentDidUpdate', this.uniqueId);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host identifier={this.uniqueId}>\n\t\t\t\t<span>lifecycle {this.uniqueId}</span>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"]}
@@ -6,7 +6,7 @@ export class GovLoading {
6
6
  this.h = govHost(this.host);
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: '07e1abd92428555bc7651af43bb1beed4be6585c', class: this.h.classes(LoadingClass.root) }, h("div", { key: '849c10645767b3f3c2e0caa688b57a5454dc4178', class: LoadingClass.content }, h("gov-icon", { key: 'c4175ff66bf22dadb3b6779d9efede6dbb6f85e9', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader" }), h("slot", { key: '03e90ff98d83cd748e7b541b579df93de2bcf073' })), h("gov-backdrop", { key: 'cbc72236c34803588c4ab1cdcb14f8a420d37238', inverse: true })));
9
+ return (h(Host, { key: '9a38088a7a1d7197352a2efe6f47316d995a6498', class: this.h.classes(LoadingClass.root) }, h("div", { key: '322e1a406e5f220b9d843f8fa4804f49d409c352', class: LoadingClass.content }, h("gov-icon", { key: '49a5b5f273320576971a1b13239fe61c893f7d89', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader" }), h("slot", { key: '5cccab862e42911ff035cf047b687671f2574c0d' })), h("gov-backdrop", { key: '6b68544288d966a0a73207b9746e7080f8daae91', inverse: true })));
10
10
  }
11
11
  static get is() { return "gov-loading"; }
12
12
  static get originalStyleUrls() {
@@ -59,7 +59,7 @@ export class GovSkeleton {
59
59
  return Object.assign({}, dimenssionsStyles);
60
60
  }
61
61
  render() {
62
- return (h(Host, { key: '415b3912396ef67e1e8e66ebdbc6bab08928b14e', class: this.h.classes(SkeletonClass.root), variant: this.variant }, this.items.map((_, index) => {
62
+ return (h(Host, { key: '0027773f3ae104fe11a353487b8cc4e264cfe5ff', class: this.h.classes(SkeletonClass.root), variant: this.variant }, this.items.map((_, index) => {
63
63
  return (h("span", { key: index, class: {
64
64
  circle: this.shape === "circle",
65
65
  rect: this.shape === "rect",
@@ -12,7 +12,7 @@ export class GovMessage {
12
12
  validateProp(Variants, newValue, MessageClass.root);
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: 'a4909dd27c4a47aedcc54f7fb46771c527240f42', class: this.h.classes(MessageClass.root), variant: this.variant, role: "alert" }, this.h.hasSlot("icon") && (h("span", { key: '47fb2c74d8e0a8573bde9c6e536fe19260f49f3f', class: MessageClass.icon }, h("slot", { key: 'e80a010d7a56662493af5a730c2fddade7eb3cd9', name: "icon" }))), h("div", { key: '1df484c7e6c5ae03defe06faa9e9b9e8ff90930c', class: MessageClass.content }, h("slot", { key: '7879e3b732d4cfa9ec843781f6ef81509608f56f' }))));
15
+ return (h(Host, { key: '69edcf03283f701a745c0c63478a3f019291c723', class: this.h.classes(MessageClass.root), variant: this.variant, role: "alert" }, this.h.hasSlot("icon") && (h("span", { key: '8d495b32715eabd44ab7a96b035e6af411bd9dfa', class: MessageClass.icon }, h("slot", { key: 'ac8739f3d307531a739283cc5992e839e7562311', name: "icon" }))), h("div", { key: 'cabd3c7248345080b9c5dae45c708e194d85f69e', class: MessageClass.content }, h("slot", { key: 'f76153be97e337b6efccd2f53b67fe4058efc285' }))));
16
16
  }
17
17
  static get is() { return "gov-message"; }
18
18
  static get originalStyleUrls() {
@@ -61,7 +61,7 @@ export class GovModal {
61
61
  }
62
62
  render() {
63
63
  const LabelTag = this.labelTag;
64
- return (h(Host, { key: 'e1525cfa3cdd7b0efeb2385b25a04ea8dbd49bc7', class: this.h.classes(ModalClass.root), open: this.open }, h("dialog", { key: 'a1116333c938d11049de61a9531109f346297734', class: ModalClass.dialog, hidden: !this.open, tabindex: boolToFocusValue(this.open), open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.wcagLabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, h("div", { key: '952ca6b5e7d1f4dcc59e09c1495f9aa9a96e56fb', class: ModalClass.inner }, h("div", { key: 'b00890579ccd683cd171a6200e972e0f02b5b4d3', class: ModalClass.header }, this.h.hasSlot('icon') && (h("div", { key: '7bcf03a0f1c475b0c3553854c885b3d0900894db', class: ModalClass.icon }, h("slot", { key: '527c8a9e77dbb2568510b6765634db0234039f8f', name: "icon" }))), this.label && (h(LabelTag, { key: 'c96b0339fcc61ba3f834d35926f6ef13419a901a', class: ModalClass.title, id: this.labelId }, this.label)), !(this.blockButtonClose || this.blockClose) ? (h("gov-button", { ref: el => (this.closeCtaRef = el), disabled: this.blockClose, class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { name: "x-lg" }))) : null), h("div", { key: '47e940a5bf64b87ec065f6c0977546603ca9bb11', class: ModalClass.content, id: this.contentId }, h("slot", { key: 'bc97ebe004ffb446c71a4bc0c8086af5d63cf3ec' })), this.h.hasSlot('footer') && (h("div", { key: 'c48e97d8c9f597cc544d5e567cb0d679186b868e', class: ModalClass.footer }, h("slot", { key: '7c9165dca0a9e20eef86e1937704c0f4154fcfb8', name: "footer" }))))), this.open ? (h("gov-backdrop", { "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": (e) => !this.blockBackdropClose && this.onCloseHandler(e) })) : null));
64
+ return (h(Host, { key: '96c413d6f0dafb536c14c922e739d3629489ca86', class: this.h.classes(ModalClass.root), open: this.open }, h("dialog", { key: '12ea0d33af22ca72d60767b5c1b24df9efc8e4b6', class: ModalClass.dialog, hidden: !this.open, tabindex: boolToFocusValue(this.open), open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.wcagLabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, h("div", { key: 'ad54729d09b1884def4fa221d6c917a7c1ff2def', class: ModalClass.inner }, h("div", { key: '22d4402876b44c14b3012a10f342d04fcf5bc6ff', class: ModalClass.header }, this.h.hasSlot('icon') && (h("div", { key: '261018dd7febfa53992da14316a48b7235f9fae2', class: ModalClass.icon }, h("slot", { key: 'd39e8ad92db3309fb812d7e8e580b3deb4c18b81', name: "icon" }))), this.label && (h(LabelTag, { key: '630ec5259cf9001012a221cb269fc56537a65973', class: ModalClass.title, id: this.labelId }, this.label)), !(this.blockButtonClose || this.blockClose) ? (h("gov-button", { ref: el => (this.closeCtaRef = el), disabled: this.blockClose, class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { name: "x-lg" }))) : null), h("div", { key: '67445c7a52b04b118fb21f84bacc7d80f6e1d47b', class: ModalClass.content, id: this.contentId }, h("slot", { key: 'eef23b93fb59d6241716ea28deca2e3d21aac8cd' })), this.h.hasSlot('footer') && (h("div", { key: '4522c4fb756230b7c6ea27cd366471906fbeee72', class: ModalClass.footer }, h("slot", { key: '4553a53d2f22de79e1dfc1f3977769c035aab1bb', name: "footer" }))))), this.open ? (h("gov-backdrop", { "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": (e) => !this.blockBackdropClose && this.onCloseHandler(e) })) : null));
65
65
  }
66
66
  onCloseHandler(e) {
67
67
  e.stopPropagation();
@@ -15,7 +15,7 @@ export class GovNavItem {
15
15
  this.validateHref(this.href);
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: 'dd8ad75d2391f39589dc1c2d52ef40bb2bf4f750', class: NavItemClass.root, role: "listitem" }, h("a", { key: 'a193d5088343a4651ca35fa1ea75e28770de7ad1', href: this.href, class: NavItemClass.link }, h("slot", { key: 'dca0edca0e9ecbf13aa3c2e0287ea78dba114505' }))));
18
+ return (h(Host, { key: 'abc774bf18eefbfd4b247ae6107d19b3a1574457', class: NavItemClass.root, role: "listitem" }, h("a", { key: 'ca8f1d499123c8fb0bed9e84168d9bb2ed05c456', href: this.href, class: NavItemClass.link }, h("slot", { key: '91ec4497a5ac9bbfbf58dea47497a8ba19d19209' }))));
19
19
  }
20
20
  static get is() { return "gov-nav-item"; }
21
21
  static get originalStyleUrls() {
@@ -15,7 +15,7 @@ export class GovNav {
15
15
  }
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '576cf7d5e744e9577a6c203a08de72a3741b88ad', class: NavClass.root }, h("nav", { key: '6b82c1a4a1fb21a78325878d9a23871962d14f1c', class: NavClass.nav, role: 'list', "arial-label": this.wcagLabel, "arial-labelledby": this.wcagLabelledBy }, h("slot", { key: 'c8c30f1be87334ba420fe0aa7ccbea43f7ca3b7f' }))));
18
+ return (h(Host, { key: '0b8fdcbd012af6ef80e119b491c1f96ef9a437df', class: NavClass.root }, h("nav", { key: '3b5ba4f8e8c83a378ecfef63e43b8381b364ec30', class: NavClass.nav, role: 'list', "arial-label": this.wcagLabel, "arial-labelledby": this.wcagLabelledBy }, h("slot", { key: 'fd1314123fbb143da8c590655bcf81a397159e15' }))));
19
19
  }
20
20
  /**
21
21
  * Validate the WCAG attributes of the component
@@ -58,7 +58,7 @@ export class GovPrompt {
58
58
  }
59
59
  render() {
60
60
  const LabelTag = this.labelTag;
61
- return (h(Host, { key: 'eafb47c3de00f2944cf648244a0cc4d57579c7ff', class: this.h.classes(ModalClass.rootPrompt), open: this.open }, h("dialog", { key: '4e93478ea3a360bb6249725b4299f1db89626e72', class: ModalClass.dialog, hidden: !this.open, tabindex: "-1", open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.wcagLabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, h("div", { key: '0e4dc70872d6bab33e36e192ec921a05e278e844', class: ModalClass.inner }, h("div", { key: '3be8a8bed33a9640dcba8e8374512efadb4c4a63', class: ModalClass.header }, this.h.hasSlot('icon') && (h("div", { key: '76931e2ab2a270ce04a71c7d8d32ead065da6eca', class: ModalClass.icon }, h("slot", { key: '3a49590e4c2b67742aa7202e440408a307975ad3', name: "icon" }))), this.label && (h(LabelTag, { key: '8e3cd8b4940f6222e15efb63317e151efa2e6b5f', class: ModalClass.title, id: this.labelId }, this.label)), h("gov-button", { key: '23de5a7c3bb39f3896c134665aa564d584160914', class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", ref: el => (this.closeCtaRef = el), "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { key: '4769f23e5e772c92ed07ba8244d2da674acb8d33', name: "x-lg" }))), h("div", { key: '1b181dd790d066b2aa943c91ef2e0f47f8a0e5df', class: ModalClass.content, id: this.contentId }, h("slot", { key: '04cf9527b390b134ee7900ff3283b84cb5b6cdcb' })), h("div", { key: '350de95cfb9e765da4ebdc8f0f179bcc040baf28', class: ModalClass.actions }, h("slot", { key: '206f016467e43154a75c02c2708a65a589d09710', name: "actions" })))), this.open ? (h("gov-backdrop", { "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
61
+ return (h(Host, { key: '7ac1936ccec34e91d0a9898d1873c339597ef876', class: this.h.classes(ModalClass.rootPrompt), open: this.open }, h("dialog", { key: '995c647db1f91c18a4e96122891f61df3fdfb861', class: ModalClass.dialog, hidden: !this.open, tabindex: "-1", open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.wcagLabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, h("div", { key: 'aa779660590eed5a534a049eb42e0557d2c8bf6a', class: ModalClass.inner }, h("div", { key: '148b133eb68805628ac005c63ff07f1a1ccf025f', class: ModalClass.header }, this.h.hasSlot('icon') && (h("div", { key: 'd2ec410e6f005c0f04e57a84a995b3e98f183f59', class: ModalClass.icon }, h("slot", { key: '9aff9c0deed64f6f28b1a2e89d2696680d6fc4b6', name: "icon" }))), this.label && (h(LabelTag, { key: '571bb9403ce20e1cad22b462510dba66d5fc44a4', class: ModalClass.title, id: this.labelId }, this.label)), h("gov-button", { key: '56a95561a2364ada8905d631369e3f36fcc3ddd7', class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", ref: el => (this.closeCtaRef = el), "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { key: 'a52842fb038bfd80f72736afff92b9b646def1af', name: "x-lg" }))), h("div", { key: '75ab803ab3b4fd4dbef3473e90c0c6149c56d415', class: ModalClass.content, id: this.contentId }, h("slot", { key: '9b1014bd98ee8ce26eccc9bb548083de189fe971' })), h("div", { key: '3cb437eedfff8330a406720fe81450e78198a497', class: ModalClass.actions }, h("slot", { key: 'fb4fd30bd70485626d0d43c3a1f957ba2aca7e48', name: "actions" })))), this.open ? (h("gov-backdrop", { "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
62
62
  }
63
63
  onCloseHandler(e) {
64
64
  e.stopPropagation();
@@ -36,7 +36,7 @@ export class GovSideNavItem {
36
36
  const { isExpandedState, label } = this;
37
37
  // TODO: správný počet zanořených childů
38
38
  const hasChilds = this.host.children.length > 1;
39
- return (h(Host, { key: 'f8390dc60ed9cdf08e407dad71d23d6d885dd8fd', class: this.classNames, role: "listitem", inverse: this.inverse, "aria-expanded": booleanString(isExpandedState) }, this.href ? (h("div", { class: SideNavItemClass.header }, h("a", { class: SideNavItemClass.name, href: this.href }, this.h.hasSlot('icon') && (h("span", { class: SideNavItemClass.icon }, h("slot", { name: "icon" }))), h("span", { class: SideNavItemClass.label }, label), this.count && (h("span", { class: SideNavItemClass.chip }, h("gov-chip", { variant: "secondary", size: "s", inverse: this.inverse }, "3")))), hasChilds && (h("button", { type: "button", class: SideNavItemClass.arrow, onClick: () => this.toggle() }, h("gov-icon", { name: "chevron-down" }))))) : (h("div", { class: SideNavItemClass.header }, h("button", { class: SideNavItemClass.name, type: "button", onClick: () => this.toggle() }, this.h.hasSlot('icon') && (h("span", { class: SideNavItemClass.icon }, h("slot", { name: "icon" }))), h("span", { class: SideNavItemClass.label }, label), hasChilds && (h("span", { class: SideNavItemClass.arrow }, h("gov-icon", { name: "chevron-down" })))))), hasChilds && (h("div", { key: '679bafab6040bf267fecefd362fb202ccb6e6706', class: SideNavItemClass.content }, h("slot", { key: '835734ba7e65a8ff8911282e0ee23ee43a080b70' })))));
39
+ return (h(Host, { key: '439a47a4f8eaa6a7298691f4e585890928da6646', class: this.classNames, role: "listitem", inverse: this.inverse, "aria-expanded": booleanString(isExpandedState) }, this.href ? (h("div", { class: SideNavItemClass.header }, h("a", { class: SideNavItemClass.name, href: this.href }, this.h.hasSlot('icon') && (h("span", { class: SideNavItemClass.icon }, h("slot", { name: "icon" }))), h("span", { class: SideNavItemClass.label }, label), this.count && (h("span", { class: SideNavItemClass.chip }, h("gov-chip", { variant: "secondary", size: "s", inverse: this.inverse }, "3")))), hasChilds && (h("button", { type: "button", class: SideNavItemClass.arrow, onClick: () => this.toggle() }, h("gov-icon", { name: "chevron-down" }))))) : (h("div", { class: SideNavItemClass.header }, h("button", { class: SideNavItemClass.name, type: "button", onClick: () => this.toggle() }, this.h.hasSlot('icon') && (h("span", { class: SideNavItemClass.icon }, h("slot", { name: "icon" }))), h("span", { class: SideNavItemClass.label }, label), hasChilds && (h("span", { class: SideNavItemClass.arrow }, h("gov-icon", { name: "chevron-down" })))))), hasChilds && (h("div", { key: 'd835aaae10d51554354de563306b9648463d5b5c', class: SideNavItemClass.content }, h("slot", { key: '7eee251c1b2119b9be66eaf9a8d9f5fc3cb29fdd' })))));
40
40
  }
41
41
  /**
42
42
  * Opening the sidenav
@@ -28,7 +28,7 @@ export class GovSideNav {
28
28
  }
29
29
  }
30
30
  render() {
31
- return (h(Host, { key: '9546176e33d0e26d9f13f49634661d59bc523870', class: SideNavClass.root, compact: this.compact, inverse: this.inverse, "arial-label": this.wcagLabel, "arial-labelledby": this.wcagLabelledBy }, h("aside", { key: '6937c47b89dfee6f329663a6b9c2a507b0cbd02e', class: SideNavClass.aside, role: 'list' }, h("slot", { key: 'aaaefa730cc7caa5c17be272585d7be21c3b83ee' }))));
31
+ return (h(Host, { key: 'b06e69f853539d54e497f643848747a7df1598a5', class: SideNavClass.root, compact: this.compact, inverse: this.inverse, "arial-label": this.wcagLabel, "arial-labelledby": this.wcagLabelledBy }, h("aside", { key: 'a650408bf74bc79932df4951828d37e6bd17820c', class: SideNavClass.aside, role: 'list' }, h("slot", { key: 'ce01726757591d812762b137f454144aa5748ca5' }))));
32
32
  }
33
33
  /**
34
34
  * Validate the WCAG attributes of the component
@@ -19,7 +19,7 @@ export class GovSpacer {
19
19
  this.validateBreakpoint(this.breakpoint);
20
20
  }
21
21
  render() {
22
- return h(Host, { key: 'e33645cb98a3f4e5b37df3d65e930b2b3c7a51a8', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
22
+ return h(Host, { key: '3a6213a2137b5ae7d9bad9ebd2d314b413b826f7', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
23
23
  }
24
24
  static get is() { return "gov-spacer"; }
25
25
  static get originalStyleUrls() {
@@ -14,7 +14,7 @@ export class GovStatsbarItem {
14
14
  this.validateIconPosition(this.iconPosition);
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: '95021fab94d50525772bf8ec427867b6e4074f7d', class: this.h.classes(StatsBarItemClass.root) }, h("article", { key: 'c027715f659fd7b64b05624e3a15c74d7eea885b' }, this.h.hasSlot('icon') && (h("span", { key: 'b7c1d8e279b9d9b92c603cc4046a6abdb50310de', class: StatsBarItemClass.icon }, h("slot", { key: '80af814d0b68932ddf5357d7ff30afdcbef62c86', name: "icon" }))), h("p", { key: '1156428c87901b9f65d28b5b1125bad59a054ea1', class: StatsBarItemClass.number }, h("slot", { key: 'f1c26467d31e229c9c1d2966cd1c0c3ea55ec4c7' })), this.h.hasSlot('text') && (h("div", { key: 'bf1e86d94c6599589a69926ef942de11cc9522aa', class: StatsBarItemClass.text }, h("slot", { key: 'aa406ddc92756aed8e34105e2c95db9b4fd640f8', name: "text" }))))));
17
+ return (h(Host, { key: 'a1418fb5cf6108201ae83cc56f765fad5b78f8ca', class: this.h.classes(StatsBarItemClass.root) }, h("article", { key: '312d5fd27e6be569c9fe6373ed25b9d3492bd6a4' }, this.h.hasSlot('icon') && (h("span", { key: '4e4a99a7eea1286aa34e10e23aa016038277c8d3', class: StatsBarItemClass.icon }, h("slot", { key: 'be1313025a1cd88466f77ea74a690a1e137536cb', name: "icon" }))), h("p", { key: '79de80d15a8e122ea83213d11643b3cf1e125255', class: StatsBarItemClass.number }, h("slot", { key: '1c3a34ae86a174f02406862334b7e651c3373dd6' })), this.h.hasSlot('text') && (h("div", { key: '03bf3e3cdc1759ac55680c947d0484bea4eb17c4', class: StatsBarItemClass.text }, h("slot", { key: 'a0c45fb63b384b949ca5f5eabc3f6d23a5936dd0', name: "text" }))))));
18
18
  }
19
19
  static get is() { return "gov-statsbar-item"; }
20
20
  static get originalStyleUrls() {
@@ -26,7 +26,7 @@ export class GovStatsbar {
26
26
  });
27
27
  }
28
28
  render() {
29
- return (h(Host, { key: '6eb6e513718a6aa3ca6de1f9c53d90c307eaf05c', class: this.h.classes(StatsBarClass.root), variant: this.variant }, h("section", { key: '72765a3bc8b89140984e75825c24a8049268527c', class: StatsBarClass.section }, h("slot", { key: '0287d85ba856a1b8ac6d970910c3ceccff1cc084' }))));
29
+ return (h(Host, { key: '7bb47326c4f514853eb3ce3f8838a271dcbe49c7', class: this.h.classes(StatsBarClass.root), variant: this.variant }, h("section", { key: '99321c0f4ea2d4efec9f05e8340633e82ca699e8', class: StatsBarClass.section }, h("slot", { key: 'b6708be40da2fc0ee0062c3efa29fe857b476e21' }))));
30
30
  }
31
31
  static get is() { return "gov-statsbar"; }
32
32
  static get originalStyleUrls() {
@@ -43,7 +43,7 @@ export class GovStepperItem {
43
43
  const contentId = this.contentId;
44
44
  const { label } = this;
45
45
  const TriggerTag = this.triggerTag;
46
- return (h(Host, { key: '23d79b1dd92ae9f0ab7452a07a8e85380cefff0e', class: prepareClasses([StepperItemClass.root, this.annotation && StepperItemClass.rootWithAnnot]), variant: this.variant }, h("div", { key: '945a190cfcf519f09a89a77b27bcd90ae4f7c05b', id: triggerId, class: StepperItemClass.header, role: "listitem" }, h(TriggerTag, { key: '9806afdbcc5929c7d2ee2a0b31fb898a3d138996', class: StepperItemClass.title }, this.h.hasSlot('prefix') && (h("span", { key: '689480217dbd2db27d5069ebeb2ee4d266a397a8', class: StepperItemClass.prefix }, h("slot", { key: 'a63e14fd09e872bee67cb3bd2b2a5fd94a015a30', name: "prefix" }))), h("span", { key: 'af957100e33572449a76ff4dcd7ef9898a7ded5e', class: StepperItemClass.name }, h("span", { key: '2212aaba29debc180617fffff58338f237b47c4e', class: StepperItemClass.label }, label), this.annotation && h("span", { key: 'ba654d89d874548b5d7a91544329a6a931de1302', class: StepperItemClass.annot }, this.annotation)))), this.h.hasSlot('content') && (h("div", { key: '9fcfd57f2c09df66a983643c451e6ce7d4edf66c', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, h("slot", { key: 'b60ff8bc25e39b4ca5d4c97b6bd13ef30e7ce8c7', name: "content" })))));
46
+ return (h(Host, { key: '8d08f11d6d41fdbfda841fc6a8b92e662525c3ac', class: prepareClasses([StepperItemClass.root, this.annotation && StepperItemClass.rootWithAnnot]), variant: this.variant }, h("div", { key: '31b2dccdd333d1d6b57d608f463ef098ca7e0890', id: triggerId, class: StepperItemClass.header, role: "listitem" }, h(TriggerTag, { key: '619dad78d74f8c86d18f9d1515245860865eb986', class: StepperItemClass.title }, this.h.hasSlot('prefix') && (h("span", { key: '4a9d79cdce2a5356542d7656bfa19dcff67d7a6b', class: StepperItemClass.prefix }, h("slot", { key: '84081ec60a3e3005332779704a39cdf03cb76144', name: "prefix" }))), h("span", { key: 'e3f05158f2a7a622c6e6935a41927c19936ba614', class: StepperItemClass.name }, h("span", { key: '73b7180844026d13d4b3fb4ba736eb28f2d1c8a9', class: StepperItemClass.label }, label), this.annotation && h("span", { key: '608525047a0cc430c5209950fdff683a91795f58', class: StepperItemClass.annot }, this.annotation)))), this.h.hasSlot('content') && (h("div", { key: 'f6766d3f245c2a7bdd5773c8b8a01c275f1276cf', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, h("slot", { key: '1d2d8afbc5320e3bb67ff94a6837e2e27446a6eb', name: "content" })))));
47
47
  }
48
48
  /**
49
49
  * Returns the current state of the component
@@ -23,7 +23,7 @@ export class GovStepper {
23
23
  });
24
24
  }
25
25
  render() {
26
- return (h(Host, { key: 'a8fc7443be71de97628ae6ae123278ead5247be1', class: this.h.classes(StepperClass.root), role: "list", size: this.size }, h("slot", { key: '3df3b746ce8a628e888802f558315590d22dc00e' })));
26
+ return (h(Host, { key: '8e167455a54b2e2b3d5d86171959c3b7be205efe', class: this.h.classes(StepperClass.root), role: "list", size: this.size }, h("slot", { key: 'b066d15519504115cae8e05cb08060ac91251229' })));
27
27
  }
28
28
  static get is() { return "gov-stepper"; }
29
29
  static get originalStyleUrls() {