@gov-design-system-ce/components 4.6.3 → 4.6.5-b

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 (406) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  2. package/dist/cjs/core.cjs.js +1 -1
  3. package/dist/cjs/gov-banner.cjs.entry.js +3 -3
  4. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
  5. package/dist/cjs/gov-banner.entry.cjs.js.map +1 -1
  6. package/dist/cjs/gov-flex_3.cjs.entry.js +1 -1
  7. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +67 -23
  8. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  9. package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +1 -1
  10. package/dist/cjs/gov-form-file.cjs.entry.js +65 -12
  11. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-form-file.entry.cjs.js.map +1 -1
  13. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  14. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gov-form-search.entry.cjs.js.map +1 -1
  16. package/dist/cjs/gov-form-select.cjs.entry.js +8 -15
  17. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  18. package/dist/cjs/gov-form-select.entry.cjs.js.map +1 -1
  19. package/dist/cjs/gov-tooltip.gov-tooltip-content.entry.cjs.js.map +1 -1
  20. package/dist/cjs/gov-tooltip_2.cjs.entry.js +34 -9
  21. package/dist/cjs/gov-tooltip_2.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
  23. package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
  24. package/dist/cjs/index-BEF5cZxd.js +4 -4
  25. package/dist/cjs/loader.cjs.js +1 -1
  26. package/dist/collection/components/gov-banner/gov-banner.js +4 -4
  27. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
  28. package/dist/collection/components/gov-form/autocomplete/autocomplete.utils.js +14 -0
  29. package/dist/collection/components/gov-form/autocomplete/autocomplete.utils.js.map +1 -0
  30. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +76 -22
  31. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  32. package/dist/collection/components/gov-form/file/gov-form-file.js +39 -3
  33. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  34. package/dist/collection/components/gov-form/search/gov-form-search.js +2 -2
  35. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  36. package/dist/collection/components/gov-form/select/gov-form-select.js +8 -15
  37. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  38. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +22 -1
  39. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  40. package/dist/collection/components/gov-tooltip/gov-tooltip.js +31 -8
  41. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  42. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  43. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  44. package/dist/collection/utils/file.utils.js +28 -9
  45. package/dist/collection/utils/file.utils.js.map +1 -1
  46. package/dist/components/gov-accordion-item.js +1 -1
  47. package/dist/components/gov-accordion.js +1 -1
  48. package/dist/components/gov-attachments-item.js +1 -1
  49. package/dist/components/gov-attachments.js +1 -1
  50. package/dist/components/gov-backdrop.js +1 -1
  51. package/dist/components/gov-banner.js +1 -1
  52. package/dist/components/gov-banner.js.map +1 -1
  53. package/dist/components/gov-blockquote.js +1 -1
  54. package/dist/components/gov-breadcrumbs.js +1 -1
  55. package/dist/components/gov-button.js +1 -1
  56. package/dist/components/gov-card.js +1 -1
  57. package/dist/components/gov-chip.js +1 -1
  58. package/dist/components/gov-collapsible.js +1 -1
  59. package/dist/components/gov-collapsible.js.map +1 -1
  60. package/dist/components/gov-container.js +1 -1
  61. package/dist/components/gov-control-group.js +1 -1
  62. package/dist/components/gov-cookiebar.js +1 -1
  63. package/dist/components/gov-dialog.js +1 -1
  64. package/dist/components/gov-dropdown.js +1 -1
  65. package/dist/components/gov-empty.js +1 -1
  66. package/dist/components/gov-error-code.js +1 -1
  67. package/dist/components/gov-flex.js +1 -1
  68. package/dist/components/gov-form-autocomplete.js +1 -1
  69. package/dist/components/gov-form-checkbox-group.js +1 -1
  70. package/dist/components/gov-form-checkbox.js +1 -1
  71. package/dist/components/gov-form-control.js +1 -1
  72. package/dist/components/gov-form-file.js +1 -1
  73. package/dist/components/gov-form-file.js.map +1 -1
  74. package/dist/components/gov-form-group.js +1 -1
  75. package/dist/components/gov-form-input.js +1 -1
  76. package/dist/components/gov-form-message.js +1 -1
  77. package/dist/components/gov-form-multi-select.js +1 -1
  78. package/dist/components/gov-form-multi-select.js.map +1 -1
  79. package/dist/components/gov-form-radio-group.js +1 -1
  80. package/dist/components/gov-form-radio.js +1 -1
  81. package/dist/components/gov-form-range.js +1 -1
  82. package/dist/components/gov-form-range.js.map +1 -1
  83. package/dist/components/gov-form-search.js +1 -1
  84. package/dist/components/gov-form-search.js.map +1 -1
  85. package/dist/components/gov-form-select.js +1 -1
  86. package/dist/components/gov-form-switch.js +1 -1
  87. package/dist/components/gov-grid-item.js +1 -1
  88. package/dist/components/gov-grid.js +1 -1
  89. package/dist/components/gov-icon.js +1 -1
  90. package/dist/components/gov-infobar.js +1 -1
  91. package/dist/components/gov-layout-column.js +1 -1
  92. package/dist/components/gov-layout.js +1 -1
  93. package/dist/components/gov-link.js +1 -1
  94. package/dist/components/gov-loading.js +1 -1
  95. package/dist/components/gov-message.js +1 -1
  96. package/dist/components/gov-pagination.js +1 -1
  97. package/dist/components/gov-skeleton.js +1 -1
  98. package/dist/components/gov-spacer.js +1 -1
  99. package/dist/components/gov-stepper-item.js +1 -1
  100. package/dist/components/gov-stepper.js +1 -1
  101. package/dist/components/gov-tabs-item.js +1 -1
  102. package/dist/components/gov-tabs.js +1 -1
  103. package/dist/components/gov-tag.js +1 -1
  104. package/dist/components/gov-theme-switch.js +1 -1
  105. package/dist/components/gov-tile.js +1 -1
  106. package/dist/components/gov-toast.js +1 -1
  107. package/dist/components/gov-tooltip-content.js +1 -1
  108. package/dist/components/gov-tooltip.js +1 -1
  109. package/dist/components/gov-wizard-item.js +1 -1
  110. package/dist/components/gov-wizard.js +1 -1
  111. package/dist/components/{p-BZTY3MxF.js → p-BGK46VRO.js} +2 -2
  112. package/dist/components/{p-DKo9A5gq.js → p-BHRF-5cf.js} +2 -2
  113. package/dist/components/{p-DesycS6d.js → p-BICk4EuO.js} +2 -2
  114. package/dist/components/{p-Bv5L0j6n.js → p-BNoNH6m-.js} +2 -2
  115. package/dist/components/{p-9imLQpxb.js → p-BSr8e18S.js} +2 -2
  116. package/dist/components/{p-BNnuBQvo.js → p-BxS4InzB.js} +2 -2
  117. package/dist/components/{p-CfaJM4SA.js → p-CMmyR4-k.js} +2 -2
  118. package/dist/components/{p-B0KFtEn3.js → p-CU0plGZP.js} +2 -2
  119. package/dist/components/{p-djqfSbq-.js → p-ClDhNt_H.js} +2 -2
  120. package/dist/components/{p-yqJEurSE.js → p-CnKqUwf9.js} +2 -2
  121. package/dist/components/p-DRXiDAHW.js +2 -0
  122. package/dist/components/{p-BrdXh0mI.js.map → p-DRXiDAHW.js.map} +1 -1
  123. package/dist/components/p-DjGO_trZ.js +2 -0
  124. package/dist/components/p-DjGO_trZ.js.map +1 -0
  125. package/dist/components/p-DmK9qaKH.js +2 -0
  126. package/dist/components/p-DmK9qaKH.js.map +1 -0
  127. package/dist/components/p-isPjiQbr.js +2 -0
  128. package/dist/components/p-isPjiQbr.js.map +1 -0
  129. package/dist/components/p-keC6luw7.js +2 -0
  130. package/dist/components/p-keC6luw7.js.map +1 -0
  131. package/dist/core/core.esm.js +1 -1
  132. package/dist/core/core.esm.js.map +1 -1
  133. package/dist/core/{p-3314505d.entry.js → p-00ab0454.entry.js} +2 -2
  134. package/dist/core/{p-3314505d.entry.js.map → p-00ab0454.entry.js.map} +1 -1
  135. package/dist/core/{p-9d9e9401.entry.js → p-05bb35e1.entry.js} +2 -2
  136. package/dist/core/{p-9d9e9401.entry.js.map → p-05bb35e1.entry.js.map} +1 -1
  137. package/dist/core/{p-e30968b3.entry.js → p-06497d64.entry.js} +2 -2
  138. package/dist/core/{p-e30968b3.entry.js.map → p-06497d64.entry.js.map} +1 -1
  139. package/dist/core/p-0675617d.entry.js +2 -0
  140. package/dist/core/{p-fca7a0d6.entry.js.map → p-0675617d.entry.js.map} +1 -1
  141. package/dist/core/{p-4d36cd18.entry.js → p-2493a7f3.entry.js} +2 -2
  142. package/dist/core/{p-4d36cd18.entry.js.map → p-2493a7f3.entry.js.map} +1 -1
  143. package/dist/core/p-2e15a654.entry.js +2 -0
  144. package/dist/core/{p-bd2df430.entry.js.map → p-2e15a654.entry.js.map} +1 -1
  145. package/dist/core/{p-1626cc67.entry.js → p-30ad7514.entry.js} +2 -2
  146. package/dist/core/{p-1626cc67.entry.js.map → p-30ad7514.entry.js.map} +1 -1
  147. package/dist/core/{p-558e75a6.entry.js → p-378cf8de.entry.js} +2 -2
  148. package/dist/core/{p-558e75a6.entry.js.map → p-378cf8de.entry.js.map} +1 -1
  149. package/dist/core/{p-be9af807.entry.js → p-3a4799b3.entry.js} +2 -2
  150. package/dist/core/{p-be9af807.entry.js.map → p-3a4799b3.entry.js.map} +1 -1
  151. package/dist/core/{p-f7bdb44a.entry.js → p-3ebbe75a.entry.js} +2 -2
  152. package/dist/core/{p-f7bdb44a.entry.js.map → p-3ebbe75a.entry.js.map} +1 -1
  153. package/dist/core/p-41bef63a.entry.js +2 -0
  154. package/dist/core/{p-469f14db.entry.js.map → p-41bef63a.entry.js.map} +1 -1
  155. package/dist/core/p-4342c252.entry.js +2 -0
  156. package/dist/core/p-4342c252.entry.js.map +1 -0
  157. package/dist/core/{p-c1b9f1ab.entry.js → p-473afd7d.entry.js} +2 -2
  158. package/dist/core/{p-c1b9f1ab.entry.js.map → p-473afd7d.entry.js.map} +1 -1
  159. package/dist/core/{p-5721cf9b.entry.js → p-48b74272.entry.js} +2 -2
  160. package/dist/core/{p-5721cf9b.entry.js.map → p-48b74272.entry.js.map} +1 -1
  161. package/dist/core/{p-04ec45ab.entry.js → p-49b67f59.entry.js} +2 -2
  162. package/dist/core/{p-04ec45ab.entry.js.map → p-49b67f59.entry.js.map} +1 -1
  163. package/dist/core/{p-6b44890d.entry.js → p-4bd3f101.entry.js} +2 -2
  164. package/dist/core/{p-6b44890d.entry.js.map → p-4bd3f101.entry.js.map} +1 -1
  165. package/dist/core/{p-157a1636.entry.js → p-4e534d68.entry.js} +2 -2
  166. package/dist/core/{p-157a1636.entry.js.map → p-4e534d68.entry.js.map} +1 -1
  167. package/dist/core/p-6638d034.entry.js +2 -0
  168. package/dist/core/{p-73bd93f9.entry.js.map → p-6638d034.entry.js.map} +1 -1
  169. package/dist/core/{p-46824842.entry.js → p-68a5d225.entry.js} +2 -2
  170. package/dist/core/{p-46824842.entry.js.map → p-68a5d225.entry.js.map} +1 -1
  171. package/dist/core/p-6ac9b0f2.entry.js +2 -0
  172. package/dist/core/p-6ac9b0f2.entry.js.map +1 -0
  173. package/dist/core/{p-0af96cc0.entry.js → p-6b0625ee.entry.js} +2 -2
  174. package/dist/core/{p-0af96cc0.entry.js.map → p-6b0625ee.entry.js.map} +1 -1
  175. package/dist/core/{p-4d365881.entry.js → p-78202a44.entry.js} +2 -2
  176. package/dist/core/{p-4d365881.entry.js.map → p-78202a44.entry.js.map} +1 -1
  177. package/dist/core/{p-eb766437.entry.js → p-80052953.entry.js} +2 -2
  178. package/dist/core/{p-eb766437.entry.js.map → p-80052953.entry.js.map} +1 -1
  179. package/dist/core/{p-d43959a0.entry.js → p-8ddb6dc6.entry.js} +2 -2
  180. package/dist/core/{p-d43959a0.entry.js.map → p-8ddb6dc6.entry.js.map} +1 -1
  181. package/dist/core/{p-d9c574f0.entry.js → p-90cc2ddb.entry.js} +2 -2
  182. package/dist/core/{p-d9c574f0.entry.js.map → p-90cc2ddb.entry.js.map} +1 -1
  183. package/dist/core/{p-f3887d6d.entry.js → p-91d5df66.entry.js} +2 -2
  184. package/dist/core/{p-f3887d6d.entry.js.map → p-91d5df66.entry.js.map} +1 -1
  185. package/dist/core/{p-187c0eda.entry.js → p-9321fb9d.entry.js} +2 -2
  186. package/dist/core/{p-187c0eda.entry.js.map → p-9321fb9d.entry.js.map} +1 -1
  187. package/dist/core/p-943a58b2.entry.js +2 -0
  188. package/dist/core/{p-33209782.entry.js.map → p-943a58b2.entry.js.map} +1 -1
  189. package/dist/core/p-B6CqPcY_.js.map +1 -1
  190. package/dist/core/p-B8TR1oqt.js +3 -0
  191. package/dist/core/p-B8TR1oqt.js.map +1 -0
  192. package/dist/core/p-BUmDydor.js.map +1 -1
  193. package/dist/core/p-BcQO4NH2.js.map +1 -1
  194. package/dist/core/p-BjcqOprh.js.map +1 -1
  195. package/dist/core/p-Bo1ROm5Q.js.map +1 -1
  196. package/dist/core/p-Bz_RzYFb.js.map +1 -1
  197. package/dist/core/p-C3R1T_pg.js.map +1 -1
  198. package/dist/core/p-C6JN9gdb.js.map +1 -1
  199. package/dist/core/p-CDIRBJsi.js.map +1 -1
  200. package/dist/core/p-CQvUntGY.js.map +1 -1
  201. package/dist/core/p-Ccwpa1ck.js.map +1 -1
  202. package/dist/core/p-CgDnDrq5.js.map +1 -1
  203. package/dist/core/p-Cjg0wpDG.js.map +1 -1
  204. package/dist/core/p-CoD1xawt.js.map +1 -1
  205. package/dist/core/p-Cx3bEC5v.js.map +1 -1
  206. package/dist/core/p-D4TGB274.js.map +1 -1
  207. package/dist/core/p-DBXGhafv.js.map +1 -1
  208. package/dist/core/p-DNztiAH0.js.map +1 -1
  209. package/dist/core/p-DQuL1Twl.js.map +1 -1
  210. package/dist/core/p-DYcNEwSZ.js.map +1 -1
  211. package/dist/core/p-EeKNA85D.js.map +1 -1
  212. package/dist/core/p-GYov8gU1.js.map +1 -1
  213. package/dist/core/p-NOJjz9dT.js.map +1 -1
  214. package/dist/core/p-Q99QrOoi.js.map +1 -1
  215. package/dist/core/p-U40vKHrs.js.map +1 -1
  216. package/dist/core/p-a4fa2ffc.entry.js +2 -0
  217. package/dist/core/{p-c4734357.entry.js.map → p-a4fa2ffc.entry.js.map} +1 -1
  218. package/dist/core/{p-511eed88.entry.js → p-a6f27583.entry.js} +2 -2
  219. package/dist/core/{p-511eed88.entry.js.map → p-a6f27583.entry.js.map} +1 -1
  220. package/dist/core/p-a7c322a7.entry.js +2 -0
  221. package/dist/core/{p-abb7780e.entry.js.map → p-a7c322a7.entry.js.map} +1 -1
  222. package/dist/core/{p-6d2ce4c7.entry.js → p-ab367b0c.entry.js} +2 -2
  223. package/dist/core/{p-6d2ce4c7.entry.js.map → p-ab367b0c.entry.js.map} +1 -1
  224. package/dist/core/{p-c6b55c0a.entry.js → p-ac81cdf6.entry.js} +2 -2
  225. package/dist/core/{p-c6b55c0a.entry.js.map → p-ac81cdf6.entry.js.map} +1 -1
  226. package/dist/core/{p-a2c61d50.entry.js → p-ad9227b3.entry.js} +2 -2
  227. package/dist/core/{p-a2c61d50.entry.js.map → p-ad9227b3.entry.js.map} +1 -1
  228. package/dist/core/p-af2bd9d3.entry.js +2 -0
  229. package/dist/core/p-af2bd9d3.entry.js.map +1 -0
  230. package/dist/core/{p-70b5555f.entry.js → p-b0d4d6bd.entry.js} +2 -2
  231. package/dist/core/{p-70b5555f.entry.js.map → p-b0d4d6bd.entry.js.map} +1 -1
  232. package/dist/core/p-b181f85f.entry.js +2 -0
  233. package/dist/core/{p-57ca8ac7.entry.js.map → p-b181f85f.entry.js.map} +1 -1
  234. package/dist/core/{p-5305e82e.entry.js → p-b2648255.entry.js} +2 -2
  235. package/dist/core/{p-5305e82e.entry.js.map → p-b2648255.entry.js.map} +1 -1
  236. package/dist/core/{p-65a09763.entry.js → p-b37bd421.entry.js} +2 -2
  237. package/dist/core/{p-65a09763.entry.js.map → p-b37bd421.entry.js.map} +1 -1
  238. package/dist/core/{p-91cbee1b.entry.js → p-b5e40f40.entry.js} +2 -2
  239. package/dist/core/{p-91cbee1b.entry.js.map → p-b5e40f40.entry.js.map} +1 -1
  240. package/dist/core/p-b77c283e.entry.js +2 -0
  241. package/dist/core/{p-bd389bfd.entry.js.map → p-b77c283e.entry.js.map} +1 -1
  242. package/dist/core/p-bb5b9ccd.entry.js +2 -0
  243. package/dist/core/p-bb5b9ccd.entry.js.map +1 -0
  244. package/dist/core/{p-4c02094d.entry.js → p-c9b2f97c.entry.js} +2 -2
  245. package/dist/core/{p-4c02094d.entry.js.map → p-c9b2f97c.entry.js.map} +1 -1
  246. package/dist/core/{p-eb3f6808.entry.js → p-caf817d4.entry.js} +2 -2
  247. package/dist/core/{p-eb3f6808.entry.js.map → p-caf817d4.entry.js.map} +1 -1
  248. package/dist/core/p-dc0bd1e5.entry.js +2 -0
  249. package/dist/core/{p-3e07bf07.entry.js.map → p-dc0bd1e5.entry.js.map} +1 -1
  250. package/dist/core/{p-db860031.entry.js → p-dd390459.entry.js} +2 -2
  251. package/dist/core/{p-db860031.entry.js.map → p-dd390459.entry.js.map} +1 -1
  252. package/dist/core/p-de5dfd70.entry.js +2 -0
  253. package/dist/core/{p-4da8ac1d.entry.js.map → p-de5dfd70.entry.js.map} +1 -1
  254. package/dist/core/p-dfb76a14.entry.js +2 -0
  255. package/dist/core/p-dfb76a14.entry.js.map +1 -0
  256. package/dist/core/{p-cd163299.entry.js → p-e17def2b.entry.js} +2 -2
  257. package/dist/core/{p-cd163299.entry.js.map → p-e17def2b.entry.js.map} +1 -1
  258. package/dist/core/{p-e39e5dc7.entry.js → p-e1d58751.entry.js} +2 -2
  259. package/dist/core/{p-e39e5dc7.entry.js.map → p-e1d58751.entry.js.map} +1 -1
  260. package/dist/core/{p-3e07bf07.entry.js → p-e913cfc8.entry.js} +2 -2
  261. package/dist/core/{p-90ab65b4.entry.js.map → p-e913cfc8.entry.js.map} +1 -1
  262. package/dist/core/{p-da997fb3.entry.js → p-ea299832.entry.js} +2 -2
  263. package/dist/core/{p-da997fb3.entry.js.map → p-ea299832.entry.js.map} +1 -1
  264. package/dist/core/{p-852310d9.entry.js → p-eff8ffff.entry.js} +2 -2
  265. package/dist/core/{p-852310d9.entry.js.map → p-eff8ffff.entry.js.map} +1 -1
  266. package/dist/core/{p-4d902f20.entry.js → p-f2d24551.entry.js} +2 -2
  267. package/dist/core/{p-4d902f20.entry.js.map → p-f2d24551.entry.js.map} +1 -1
  268. package/dist/core/{p-5c872d64.entry.js → p-f515d912.entry.js} +2 -2
  269. package/dist/core/{p-bf573a56.entry.js → p-febff4d1.entry.js} +2 -2
  270. package/dist/core/{p-bf573a56.entry.js.map → p-febff4d1.entry.js.map} +1 -1
  271. package/dist/core/p-vN03FcXN.js.map +1 -1
  272. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  273. package/dist/esm/core.js +1 -1
  274. package/dist/esm/gov-banner.entry.js +3 -3
  275. package/dist/esm/gov-banner.entry.js.map +1 -1
  276. package/dist/esm/gov-flex_3.entry.js +1 -1
  277. package/dist/esm/gov-form-autocomplete.entry.js +68 -24
  278. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  279. package/dist/esm/gov-form-file.entry.js +65 -12
  280. package/dist/esm/gov-form-file.entry.js.map +1 -1
  281. package/dist/esm/gov-form-search.entry.js +1 -1
  282. package/dist/esm/gov-form-search.entry.js.map +1 -1
  283. package/dist/esm/gov-form-select.entry.js +8 -15
  284. package/dist/esm/gov-form-select.entry.js.map +1 -1
  285. package/dist/esm/gov-tooltip.gov-tooltip-content.entry.js.map +1 -1
  286. package/dist/esm/gov-tooltip_2.entry.js +34 -9
  287. package/dist/esm/gov-tooltip_2.entry.js.map +1 -1
  288. package/dist/esm/gov-wizard-item.entry.js +2 -2
  289. package/dist/esm/gov-wizard.entry.js +1 -1
  290. package/dist/esm/index-ClISz4NF.js +4 -4
  291. package/dist/esm/loader.js +1 -1
  292. package/dist/hydrate/index.js +187 -69
  293. package/dist/hydrate/index.mjs +187 -69
  294. package/dist/types/Users/jf/dev/designSystem/gov-design-system/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  295. package/dist/types/components/gov-form/autocomplete/autocomplete.utils.d.ts +2 -0
  296. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +9 -0
  297. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -0
  298. package/dist/types/components/gov-form/select/gov-form-select.d.ts +1 -1
  299. package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +4 -0
  300. package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +3 -0
  301. package/dist/types/components.d.ts +612 -121
  302. package/dist/types/stencil-public-runtime.d.ts +170 -11
  303. package/package.json +32 -28
  304. package/readme.md +8 -0
  305. package/dist/components/p-BrdXh0mI.js +0 -2
  306. package/dist/components/p-DFu5UVoP.js +0 -2
  307. package/dist/components/p-DFu5UVoP.js.map +0 -1
  308. package/dist/components/p-DMVQRz4f.js +0 -2
  309. package/dist/components/p-DMVQRz4f.js.map +0 -1
  310. package/dist/components/p-UDT3DloZ.js +0 -2
  311. package/dist/components/p-UDT3DloZ.js.map +0 -1
  312. package/dist/components/p-x3w8Mun_.js +0 -2
  313. package/dist/components/p-x3w8Mun_.js.map +0 -1
  314. package/dist/core/core.css +0 -14776
  315. package/dist/core/gov-accordion-item.entry.esm.js.map +0 -1
  316. package/dist/core/gov-accordion.entry.esm.js.map +0 -1
  317. package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +0 -1
  318. package/dist/core/gov-backdrop.entry.esm.js.map +0 -1
  319. package/dist/core/gov-banner.entry.esm.js.map +0 -1
  320. package/dist/core/gov-blockquote.entry.esm.js.map +0 -1
  321. package/dist/core/gov-breadcrumbs.entry.esm.js.map +0 -1
  322. package/dist/core/gov-button.entry.esm.js.map +0 -1
  323. package/dist/core/gov-card.entry.esm.js.map +0 -1
  324. package/dist/core/gov-chip.entry.esm.js.map +0 -1
  325. package/dist/core/gov-collapsible.entry.esm.js.map +0 -1
  326. package/dist/core/gov-container.entry.esm.js.map +0 -1
  327. package/dist/core/gov-control-group.entry.esm.js.map +0 -1
  328. package/dist/core/gov-cookiebar.entry.esm.js.map +0 -1
  329. package/dist/core/gov-dialog.entry.esm.js.map +0 -1
  330. package/dist/core/gov-dropdown.entry.esm.js.map +0 -1
  331. package/dist/core/gov-empty.entry.esm.js.map +0 -1
  332. package/dist/core/gov-error-code.entry.esm.js.map +0 -1
  333. package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +0 -1
  334. package/dist/core/gov-form-autocomplete.entry.esm.js.map +0 -1
  335. package/dist/core/gov-form-checkbox-group.entry.esm.js.map +0 -1
  336. package/dist/core/gov-form-checkbox.entry.esm.js.map +0 -1
  337. package/dist/core/gov-form-control.entry.esm.js.map +0 -1
  338. package/dist/core/gov-form-file.entry.esm.js.map +0 -1
  339. package/dist/core/gov-form-group.entry.esm.js.map +0 -1
  340. package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +0 -1
  341. package/dist/core/gov-form-label.entry.esm.js.map +0 -1
  342. package/dist/core/gov-form-multi-select.entry.esm.js.map +0 -1
  343. package/dist/core/gov-form-password-power.entry.esm.js.map +0 -1
  344. package/dist/core/gov-form-radio-group.entry.esm.js.map +0 -1
  345. package/dist/core/gov-form-radio.entry.esm.js.map +0 -1
  346. package/dist/core/gov-form-range.entry.esm.js.map +0 -1
  347. package/dist/core/gov-form-search.entry.esm.js.map +0 -1
  348. package/dist/core/gov-form-select.entry.esm.js.map +0 -1
  349. package/dist/core/gov-form-switch.entry.esm.js.map +0 -1
  350. package/dist/core/gov-grid-item.entry.esm.js.map +0 -1
  351. package/dist/core/gov-grid.entry.esm.js.map +0 -1
  352. package/dist/core/gov-infobar.entry.esm.js.map +0 -1
  353. package/dist/core/gov-layout-column.entry.esm.js.map +0 -1
  354. package/dist/core/gov-layout.entry.esm.js.map +0 -1
  355. package/dist/core/gov-lifecycle.entry.esm.js.map +0 -1
  356. package/dist/core/gov-link.entry.esm.js.map +0 -1
  357. package/dist/core/gov-loading.entry.esm.js.map +0 -1
  358. package/dist/core/gov-message.entry.esm.js.map +0 -1
  359. package/dist/core/gov-pagination.entry.esm.js.map +0 -1
  360. package/dist/core/gov-spacer.entry.esm.js.map +0 -1
  361. package/dist/core/gov-stepper-item.entry.esm.js.map +0 -1
  362. package/dist/core/gov-stepper.entry.esm.js.map +0 -1
  363. package/dist/core/gov-tabs-item.entry.esm.js.map +0 -1
  364. package/dist/core/gov-tabs.entry.esm.js.map +0 -1
  365. package/dist/core/gov-tag.entry.esm.js.map +0 -1
  366. package/dist/core/gov-tile.entry.esm.js.map +0 -1
  367. package/dist/core/gov-toast.entry.esm.js.map +0 -1
  368. package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +0 -1
  369. package/dist/core/gov-wizard-item.entry.esm.js.map +0 -1
  370. package/dist/core/gov-wizard.entry.esm.js.map +0 -1
  371. package/dist/core/loader.esm.js.map +0 -1
  372. package/dist/core/p-11fc3899.entry.js +0 -2
  373. package/dist/core/p-11fc3899.entry.js.map +0 -1
  374. package/dist/core/p-33209782.entry.js +0 -2
  375. package/dist/core/p-33b462c9.entry.js +0 -2
  376. package/dist/core/p-33b462c9.entry.js.map +0 -1
  377. package/dist/core/p-3e5ae012.entry.js +0 -2
  378. package/dist/core/p-3e5ae012.entry.js.map +0 -1
  379. package/dist/core/p-469f14db.entry.js +0 -2
  380. package/dist/core/p-4da8ac1d.entry.js +0 -2
  381. package/dist/core/p-57ca8ac7.entry.js +0 -2
  382. package/dist/core/p-73bd93f9.entry.js +0 -2
  383. package/dist/core/p-90ab65b4.entry.js +0 -2
  384. package/dist/core/p-ClISz4NF.js +0 -3
  385. package/dist/core/p-ClISz4NF.js.map +0 -1
  386. package/dist/core/p-abb7780e.entry.js +0 -2
  387. package/dist/core/p-bd2df430.entry.js +0 -2
  388. package/dist/core/p-bd389bfd.entry.js +0 -2
  389. package/dist/core/p-c21bc8f9.entry.js +0 -2
  390. package/dist/core/p-c21bc8f9.entry.js.map +0 -1
  391. package/dist/core/p-c4734357.entry.js +0 -2
  392. package/dist/core/p-def34832.entry.js +0 -2
  393. package/dist/core/p-def34832.entry.js.map +0 -1
  394. package/dist/core/p-fca7a0d6.entry.js +0 -2
  395. package/dist/types/work/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
  396. /package/dist/components/{p-BZTY3MxF.js.map → p-BGK46VRO.js.map} +0 -0
  397. /package/dist/components/{p-DKo9A5gq.js.map → p-BHRF-5cf.js.map} +0 -0
  398. /package/dist/components/{p-DesycS6d.js.map → p-BICk4EuO.js.map} +0 -0
  399. /package/dist/components/{p-Bv5L0j6n.js.map → p-BNoNH6m-.js.map} +0 -0
  400. /package/dist/components/{p-9imLQpxb.js.map → p-BSr8e18S.js.map} +0 -0
  401. /package/dist/components/{p-BNnuBQvo.js.map → p-BxS4InzB.js.map} +0 -0
  402. /package/dist/components/{p-CfaJM4SA.js.map → p-CMmyR4-k.js.map} +0 -0
  403. /package/dist/components/{p-B0KFtEn3.js.map → p-CU0plGZP.js.map} +0 -0
  404. /package/dist/components/{p-djqfSbq-.js.map → p-ClDhNt_H.js.map} +0 -0
  405. /package/dist/components/{p-yqJEurSE.js.map → p-CnKqUwf9.js.map} +0 -0
  406. /package/dist/core/{p-5c872d64.entry.js.map → p-f515d912.entry.js.map} +0 -0
@@ -3433,7 +3433,7 @@ class GovBanner {
3433
3433
  /**
3434
3434
  * Banner’s foreground
3435
3435
  */
3436
- this.foreground = BannerForeground.LOGO;
3436
+ this.foreground = BannerForeground.IMAGE;
3437
3437
  /**
3438
3438
  * XL Banner’s text color
3439
3439
  */
@@ -3459,10 +3459,10 @@ class GovBanner {
3459
3459
  this.validateTextColor(this.textColor);
3460
3460
  }
3461
3461
  render() {
3462
- return (hAsync(Host, Object.assign({ key: '3e20f606dab5e32411afc2dbf2bc94add284bed4', class: this.h.classes(BannerClass.root), role: "region", size: this.size }, (this.size !== "xl" ? {
3462
+ return (hAsync(Host, Object.assign({ key: '142c906194083f6c186d1f1d9033c4f2c9be9bff', class: this.h.classes(BannerClass.root), role: "region", size: this.size }, (this.size !== "xl" ? {
3463
3463
  background: this.background,
3464
3464
  foreground: this.foreground
3465
- } : { 'text-color': this.textColor })), hAsync("div", { key: '334c429dac2fcde8b9bbaa223ec5111ba2ea062f' }, hAsync("div", { key: '900e59f605db3ddb9a0999ee6d802aa73d0f4cb3', class: BannerClass.content }, hAsync("slot", { key: 'b5bbcc66a5d7154e22c73c78001c1e2609c034cc', name: "headline" }), hAsync("slot", { key: '3bc1675de3e41360eebd57fcc0880ede40053c3f' })), this.h.hasSlot('button') && (hAsync("slot", { key: '9b85a1240ae9a28c8297085f88674006a729cc72', name: "button" }))), hAsync("slot", { key: 'e2b1423f67a81d8188d68b1fbfdad1a88b3893cd', name: "image" })));
3465
+ } : { 'text-color': this.textColor })), hAsync("div", { key: '0b52a8859b6cdcd92d0f5e97b460a3e0a899bd44' }, hAsync("div", { key: 'a36ed5ad57c878d70770ccfeccd172749a555b22', class: BannerClass.content }, hAsync("slot", { key: '57f52bfb0189450e77c00f4d9904712e555a3125', name: "headline" }), hAsync("slot", { key: '91629f1bf0605ae28d694d044d19bbef9ebb69da' })), this.h.hasSlot('button') && (hAsync("slot", { key: '458a59c73e9bdf02d6cdb1e8c5caea0dcfec526a', name: "button" }))), hAsync("slot", { key: 'f1d60077313455ed78c78b56c7741b4b593cf7cc', name: "image" })));
3466
3466
  }
3467
3467
  get host() { return getElement(this); }
3468
3468
  static get watchers() { return {
@@ -4757,6 +4757,19 @@ const propsValueToArray = (value) => {
4757
4757
  return [];
4758
4758
  };
4759
4759
 
4760
+ const normalize = (value) => typeof value === 'string' ? removeDiacritics(value).toLowerCase() : '';
4761
+ const filterAutocompleteOptions = (options, query, nameKey, maxOptions) => {
4762
+ const source = Array.isArray(options) ? options : [];
4763
+ const normalizedQuery = normalize(query);
4764
+ const matches = normalizedQuery.length === 0
4765
+ ? source
4766
+ : source.filter(item => {
4767
+ const text = item === null || item === void 0 ? void 0 : item[nameKey];
4768
+ return typeof text === 'string' && normalize(text).includes(normalizedQuery);
4769
+ });
4770
+ return Number.isInteger(maxOptions) && maxOptions > 0 ? matches.slice(0, maxOptions) : matches;
4771
+ };
4772
+
4760
4773
  class GovFormAutocomplete {
4761
4774
  constructor(hostRef) {
4762
4775
  registerInstance(this, hostRef);
@@ -4764,6 +4777,7 @@ class GovFormAutocomplete {
4764
4777
  this.govBlur = createEvent(this, "gov-blur");
4765
4778
  this.govInput = createEvent(this, "gov-input");
4766
4779
  this.govSelect = createEvent(this, "gov-select");
4780
+ this.fullOptions = [];
4767
4781
  this.templateResolver = item => item[this.nameKey];
4768
4782
  /**
4769
4783
  * Value of input
@@ -4791,6 +4805,11 @@ class GovFormAutocomplete {
4791
4805
  * Minimum length (number of characters) of value
4792
4806
  */
4793
4807
  this.minlength = 3;
4808
+ /**
4809
+ * Maximum number of items shown from a static `options` list (0 = unlimited).
4810
+ * Applies only when no async search callback is set.
4811
+ */
4812
+ this.maxOptions = 10;
4794
4813
  /**
4795
4814
  * Input throttle in milliseconds
4796
4815
  */
@@ -4803,13 +4822,33 @@ class GovFormAutocomplete {
4803
4822
  this.arrowCounter = -1;
4804
4823
  this.list = [];
4805
4824
  this.inheritedAttributes = {};
4825
+ this.emitAndSearch = (e) => {
4826
+ this.govInput.emit({
4827
+ originalEvent: e,
4828
+ component: FormAutocompleteClass.root,
4829
+ value: this.value,
4830
+ selected: null,
4831
+ });
4832
+ this.doSearch();
4833
+ };
4834
+ this.onInputHandler = (e) => {
4835
+ e.stopPropagation();
4836
+ this.value = e.detail.value;
4837
+ this.debouncedSearch(e);
4838
+ };
4806
4839
  this.listBoxId = createID('GovListBox');
4807
4840
  }
4808
4841
  validateSize(newValue) {
4809
4842
  validateProp(FormAutocompleteSizes, newValue, FormAutocompleteClass.root);
4810
4843
  }
4811
4844
  watchOptions(newValue) {
4812
- this.setOptions(propsValueToArray(newValue)).catch();
4845
+ this.fullOptions = propsValueToArray(newValue);
4846
+ if (this.searchCallback) {
4847
+ this.setOptions(this.fullOptions).catch();
4848
+ }
4849
+ else {
4850
+ this.list = filterAutocompleteOptions(this.fullOptions, this.value, this.nameKey, this.maxOptions);
4851
+ }
4813
4852
  }
4814
4853
  onArrowUp() {
4815
4854
  if (this.arrowCounter > 0) {
@@ -4833,13 +4872,13 @@ class GovFormAutocomplete {
4833
4872
  }
4834
4873
  }
4835
4874
  doSearch() {
4836
- if (Number.isInteger(this.minlength) && this.isValueAccepted === false && this.minlength) {
4837
- this.list = [];
4838
- this.arrowCounter = -1;
4839
- this.processing = false;
4840
- return;
4841
- }
4842
4875
  if (this.searchCallback) {
4876
+ if (Number.isInteger(this.minlength) && this.isValueAccepted === false && this.minlength) {
4877
+ this.list = [];
4878
+ this.arrowCounter = -1;
4879
+ this.processing = false;
4880
+ return;
4881
+ }
4843
4882
  this.processing = true;
4844
4883
  this.searchCallback(this.value)
4845
4884
  .then(response => (this.list = response))
@@ -4848,11 +4887,13 @@ class GovFormAutocomplete {
4848
4887
  this.arrowCounter = -1;
4849
4888
  this.processing = false;
4850
4889
  });
4890
+ return;
4851
4891
  }
4892
+ this.list = filterAutocompleteOptions(this.fullOptions, this.value, this.nameKey, this.maxOptions);
4893
+ this.arrowCounter = -1;
4852
4894
  }
4853
4895
  clearList() {
4854
- const areOptions = propsValueToArray(this.options);
4855
- if (areOptions.length === 0) {
4896
+ if (this.fullOptions.length === 0) {
4856
4897
  this.list = [];
4857
4898
  }
4858
4899
  }
@@ -4873,6 +4914,14 @@ class GovFormAutocomplete {
4873
4914
  componentWillLoad() {
4874
4915
  this.validateSize(this.size);
4875
4916
  this.inheritedAttributes = inheritAriaAttributes(this.host);
4917
+ this.debouncedSearch = throttle(this.emitAndSearch, this.throttleTime);
4918
+ this.fullOptions = propsValueToArray(this.options);
4919
+ if (!this.searchCallback) {
4920
+ this.list = filterAutocompleteOptions(this.fullOptions, this.value, this.nameKey, this.maxOptions);
4921
+ }
4922
+ }
4923
+ watchThrottleTime() {
4924
+ this.debouncedSearch = throttle(this.emitAndSearch, this.throttleTime);
4876
4925
  }
4877
4926
  disconnectedCallback() {
4878
4927
  var _a;
@@ -4883,7 +4932,7 @@ class GovFormAutocomplete {
4883
4932
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
4884
4933
  }
4885
4934
  render() {
4886
- return (hAsync(Host, { key: '531610863e3752a4e07f0b6c3b946c475a6420c6', class: FormAutocompleteClass.root, size: this.size }, hAsync("gov-form-input", Object.assign({ key: '82f74fc8139c85cddb4e206c5d82286107135fff', placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, required: this.required, invalid: this.invalid, success: this.success, role: 'searchbox', value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": throttle(this.onInputHandler.bind(this), this.throttleTime), "on-gov-keyup": this.onKeyUpHandler.bind(this), "on-gov-keydown": this.onKeyDownHandler.bind(this), "on-gov-focus": this.onFocusHandler.bind(this), "on-gov-blur": this.onBlurHandler.bind(this) }, this.inheritedAttributes, { "aria-autocomplete": 'list', "aria-owns": [this.listBoxId, this.inheritedAttributes['aria-owns']].join(' '), "aria-expanded": booleanString(this.list.length && this.focused ? true : false), ref: el => (this.inputRef = el) }), hAsync("slot", { key: 'd27f897ff5c405adc14640a7e8508319df7b5ff9', name: "validation-icon" }), hAsync("slot", { key: 'da5ec2879f9c6ba7c57a68cc2515539016a6ec43', name: "icon-end" })), hAsync("ul", { key: 'cbb3514f12fe3c506d7bcf2c3aa86b78303ac398', class: FormAutocompleteClass.list, role: 'listbox', "aria-hidden": toBoolAttr(!this.focused), hidden: !this.focused, id: this.listBoxId, ref: el => (this.listRef = el) }, this.focused && this.list.length === 0 && this.processing === false && this.isValueAccepted && this.messageEmpty ? (hAsync("li", { class: FormAutocompleteClass.empty }, this.messageEmpty)) : null, this.focused && this.processing === true && this.isValueAccepted ? (hAsync("li", { class: FormAutocompleteClass.loading }, hAsync("gov-skeleton", { size: "m" }))) : null, this.focused ? this.list.map((item, index) => {
4935
+ return (hAsync(Host, { key: '0cdbf770359115b24432e9d533b4e17ab2c65e18', class: FormAutocompleteClass.root, size: this.size }, hAsync("gov-form-input", Object.assign({ key: '5724ed153e3f2384725badbafdb0c19e67b69538', placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, required: this.required, invalid: this.invalid, success: this.success, role: 'searchbox', value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": this.onInputHandler, "on-gov-keyup": this.onKeyUpHandler.bind(this), "on-gov-keydown": this.onKeyDownHandler.bind(this), "on-gov-focus": this.onFocusHandler.bind(this), "on-gov-blur": this.onBlurHandler.bind(this) }, this.inheritedAttributes, { "aria-autocomplete": 'list', "aria-owns": [this.listBoxId, this.inheritedAttributes['aria-owns']].join(' '), "aria-expanded": booleanString(this.list.length && this.focused ? true : false), ref: el => (this.inputRef = el) }), hAsync("slot", { key: 'ab6f37982f3d13adc2473a744b5697ac8bc651f5', name: "validation-icon" }), hAsync("slot", { key: '1961a029eceee169b5be12fa4ba8c2e9072bb9de', name: "icon-end" })), hAsync("ul", { key: '61b9b6929be4816e93e1b5fb778c3861b4f8631b', class: FormAutocompleteClass.list, role: 'listbox', "aria-hidden": toBoolAttr(!this.focused), hidden: !this.focused, id: this.listBoxId, ref: el => (this.listRef = el) }, this.focused && this.list.length === 0 && this.processing === false && (this.isValueAccepted || (!this.searchCallback && this.fullOptions.length > 0)) && this.messageEmpty ? (hAsync("li", { class: FormAutocompleteClass.empty }, this.messageEmpty)) : null, this.focused && this.processing === true && this.isValueAccepted ? (hAsync("li", { class: FormAutocompleteClass.loading }, hAsync("gov-skeleton", { size: "m" }))) : null, this.focused ? this.list.map((item, index) => {
4887
4936
  const isSelected = this.arrowCounter === index;
4888
4937
  return (hAsync("li", { class: FormAutocompleteClass.item, innerHTML: this.templateResolver(item, isSelected), role: 'option', "aria-posinset": index, tabindex: isSelected ? 0 : -1, "aria-setsize": this.list.length, onTouchStart: (e) => this.onSelectHandler(e, index), onMouseDown: (e) => this.onSelectHandler(e, index), "aria-selected": toBoolAttr(isSelected) }, hAsync("slot", { name: "list-item-left" }), hAsync("slot", { name: "list-item-right" })));
4889
4938
  }) : null)));
@@ -4891,7 +4940,12 @@ class GovFormAutocomplete {
4891
4940
  onFocusHandler(e) {
4892
4941
  this.focused = true;
4893
4942
  this.arrowCounter = -1;
4894
- if (this.isValueAccepted && this.searchCallback) {
4943
+ if (this.searchCallback) {
4944
+ if (this.isValueAccepted) {
4945
+ this.doSearch();
4946
+ }
4947
+ }
4948
+ else {
4895
4949
  this.doSearch();
4896
4950
  }
4897
4951
  e.stopPropagation();
@@ -4914,17 +4968,6 @@ class GovFormAutocomplete {
4914
4968
  selected: null,
4915
4969
  });
4916
4970
  }
4917
- onInputHandler(e) {
4918
- this.value = e.target.value;
4919
- e.stopPropagation();
4920
- this.govInput.emit({
4921
- originalEvent: e,
4922
- component: FormAutocompleteClass.root,
4923
- value: this.value,
4924
- selected: null,
4925
- });
4926
- this.doSearch();
4927
- }
4928
4971
  onSelectHandler(e, index = -1) {
4929
4972
  let selected = null;
4930
4973
  if (index > -1) {
@@ -5018,7 +5061,8 @@ class GovFormAutocomplete {
5018
5061
  get host() { return getElement(this); }
5019
5062
  static get watchers() { return {
5020
5063
  "size": ["validateSize"],
5021
- "options": ["watchOptions"]
5064
+ "options": ["watchOptions"],
5065
+ "throttleTime": ["watchThrottleTime"]
5022
5066
  }; }
5023
5067
  static get cmpMeta() { return {
5024
5068
  "$flags$": 4,
@@ -5038,6 +5082,7 @@ class GovFormAutocomplete {
5038
5082
  "invalid": [4],
5039
5083
  "minlength": [2],
5040
5084
  "maxlength": [2],
5085
+ "maxOptions": [2, "max-options"],
5041
5086
  "throttleTime": [2, "throttle-time"],
5042
5087
  "messageEmpty": [1, "message-empty"],
5043
5088
  "focused": [32],
@@ -5556,18 +5601,37 @@ function formatBytes(bytes) {
5556
5601
  }
5557
5602
  return n.toFixed(n < 10 && l > 0 ? 1 : 0) + ' ' + units[l];
5558
5603
  }
5604
+ // Validates a file against an `accept` attribute value, following the HTML spec
5605
+ // (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept):
5606
+ // - ".ext" → matched against the file NAME suffix (case-insensitive)
5607
+ // - "type/*" → matched against the file MIME group
5608
+ // - "type/sub" → exact MIME match
5609
+ // Matching the name (not only file.type) is essential: browsers often report an
5610
+ // empty or non-standard MIME for extensions like .jsonld, which the previous
5611
+ // MIME-only RegExp check always rejected.
5559
5612
  function fileAcceptValidation(file, accept) {
5560
- if (typeof accept === 'string' && accept.length) {
5561
- return (accept
5562
- .replace(/\s/g, '')
5563
- .split(',')
5564
- .filter(accept => {
5565
- return new RegExp(accept.replace('*', '.*')).test(file.type);
5566
- }).length > 0);
5567
- }
5568
- else {
5613
+ if (typeof accept !== 'string' || accept.trim().length === 0) {
5569
5614
  return true;
5570
5615
  }
5616
+ const fileName = file.name.toLowerCase();
5617
+ const fileType = (file.type || '').toLowerCase();
5618
+ return accept
5619
+ .split(',')
5620
+ .map(token => token.trim().toLowerCase())
5621
+ .filter(token => token.length > 0)
5622
+ .some(token => {
5623
+ if (token.startsWith('.')) {
5624
+ return fileName.endsWith(token);
5625
+ }
5626
+ if (token === '*' || token === '*/*') {
5627
+ return true;
5628
+ }
5629
+ if (token.endsWith('/*')) {
5630
+ const group = token.slice(0, token.indexOf('/') + 1);
5631
+ return fileType.startsWith(group);
5632
+ }
5633
+ return fileType === token;
5634
+ });
5571
5635
  }
5572
5636
  function fileSizeValidation(file, maxSize) {
5573
5637
  const fileSize = Math.round(file.size);
@@ -5688,7 +5752,15 @@ class GovFormFile {
5688
5752
  }
5689
5753
  validateFiles(files) {
5690
5754
  let filesBuffer = [];
5691
- Array.from(files).map(file => {
5755
+ // Without `multiple`, only a single file is allowed. An incoming batch
5756
+ // (drag-drop, framework wrapper, programmatic assignment) can still carry
5757
+ // several files, so cap it to the last one — consistent with the
5758
+ // "second pick replaces the first" semantics. (Bug #30570313)
5759
+ const incoming = this.multiple ? Array.from(files) : Array.from(files).slice(-1);
5760
+ if (!this.multiple && this.displayAttachments) {
5761
+ this.files = [];
5762
+ }
5763
+ incoming.forEach(file => {
5692
5764
  const isFile = this.files.find(item => item.file.name === file.name && item.file.size === file.size) || null;
5693
5765
  if (isFile === null || this.ignoreFileDuplicationCheck) {
5694
5766
  const isSizeValid = typeof this.maxFileSize === "number" && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true;
@@ -5711,6 +5783,9 @@ class GovFormFile {
5711
5783
  });
5712
5784
  }
5713
5785
  });
5786
+ if (this.displayAttachments) {
5787
+ this.syncNativeInputFiles();
5788
+ }
5714
5789
  this.govFiles.emit({
5715
5790
  component: FormFileClass.root,
5716
5791
  files: filesBuffer.length ? filesBuffer : this.files,
@@ -5719,6 +5794,25 @@ class GovFormFile {
5719
5794
  this.reset().finally();
5720
5795
  }
5721
5796
  }
5797
+ // Keep native <input type="file"> in sync with the visible attachments list so
5798
+ // that a native form submit / FormData carries exactly the files shown in the UI.
5799
+ // Invalid items (wrong type or oversize) are intentionally excluded.
5800
+ syncNativeInputFiles() {
5801
+ if (!this.inputRef || typeof DataTransfer === "undefined") {
5802
+ return;
5803
+ }
5804
+ try {
5805
+ const dt = new DataTransfer();
5806
+ this.files
5807
+ .filter(item => item.acceptValid === true && item.sizeValid === true)
5808
+ .forEach(item => dt.items.add(item.file));
5809
+ this.inputRef.files = dt.files;
5810
+ }
5811
+ catch (e) {
5812
+ // Safari < 14.1 / older browsers may reject assigning to .files; nothing safe to fall back to.
5813
+ if (typeof process !== "undefined" && process.env && "production" !== "production") ;
5814
+ }
5815
+ }
5722
5816
  componentDidLoad() {
5723
5817
  this.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {
5724
5818
  this.onAriaAttributeChange(attributeName, newValue);
@@ -5742,7 +5836,7 @@ class GovFormFile {
5742
5836
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
5743
5837
  }
5744
5838
  render() {
5745
- return (hAsync(Host, { key: '0f005cd699699df5d67c1ae5a1ce69bcbe14df08', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, hAsync("div", { key: '85de8e3bbbed08f63a93b874799b2e76311320dd', class: FormFileClass.area, ref: el => (this.areaRef = el) }, hAsync("slot", { key: 'd67d074f20d899d81c37118eeb872eace16be983' }), hAsync("input", Object.assign({ key: 'b0be06c28155cd0bfd13aa6926f05718fe58ca2d', 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 }, this.inheritedAttributes, { "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) })), hAsync("div", { key: 'bf27e1a3806a4334ec9476171c64a5dfe96a1040', class: FormFileClass.inputFocus })), this.h.hasSlot("attachments") ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("gov-attachments", { label: this.accessibleAttachmentsLabel, "accessible-label": this.accessibleAttachmentsLabel }, this.files.map(item => (hAsync("gov-attachments-item", { "accessible-remove-labelledby": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, item.file.name, hAsync("span", { slot: "name" }, item.file.name), item.acceptValid === false ? (hAsync("gov-form-message", { slot: "message", color: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill", type: "components" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (hAsync("gov-form-message", { slot: "message", color: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill", type: "components" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize)))) : null, hAsync("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
5839
+ return (hAsync(Host, { key: '2d89af24db1447bba2c7987946b5c63bff65a58a', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, hAsync("div", { key: '7a37869f8ef203b0f1d6b07cfee8e4f325fe9ecc', class: FormFileClass.area, ref: el => (this.areaRef = el) }, hAsync("slot", { key: '10344be7bedf53a4754c8e79bb069c57291b7663' }), hAsync("input", Object.assign({ key: '52dc1692d0eaa6310c0166faceb5906627aac73c', 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 }, this.inheritedAttributes, { "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) })), hAsync("div", { key: '1193c6ef7a57894baab2f14619827c2f51441d08', class: FormFileClass.inputFocus })), this.h.hasSlot("attachments") ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("gov-attachments", { label: this.accessibleAttachmentsLabel, "accessible-label": this.accessibleAttachmentsLabel }, this.files.map(item => (hAsync("gov-attachments-item", { "accessible-remove-labelledby": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, item.file.name, hAsync("span", { slot: "name" }, item.file.name), item.acceptValid === false ? (hAsync("gov-form-message", { slot: "message", color: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill", type: "components" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (hAsync("gov-form-message", { slot: "message", color: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill", type: "components" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize)))) : null, hAsync("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
5746
5840
  }
5747
5841
  onRemoveFileHandler(file) {
5748
5842
  const index = this.files.findIndex(item => item.id === file.id);
@@ -5751,6 +5845,7 @@ class GovFormFile {
5751
5845
  const removeFile = this.files[index];
5752
5846
  files.splice(index, 1);
5753
5847
  this.files = [...files];
5848
+ this.syncNativeInputFiles();
5754
5849
  this.govRemoveFile.emit({
5755
5850
  component: FormFileClass.root,
5756
5851
  file: removeFile,
@@ -5795,7 +5890,10 @@ class GovFormFile {
5795
5890
  */
5796
5891
  async reset() {
5797
5892
  this.files = [];
5798
- this.inputRef.value = '';
5893
+ if (this.inputRef) {
5894
+ this.inputRef.value = '';
5895
+ this.syncNativeInputFiles();
5896
+ }
5799
5897
  }
5800
5898
  get host() { return getElement(this); }
5801
5899
  static get watchers() { return {
@@ -6934,19 +7032,19 @@ class GovFormSearch {
6934
7032
  this.color = 'neutral';
6935
7033
  }
6936
7034
  render() {
6937
- return (hAsync(Host, { key: '8694237120321b5cea6dbe4c4152edfde30228a1', class: FormSearchClass.root, color: this.color, size: this.size }, hAsync("slot", { key: '4c382e33221ff8b874a7f8544d94261298c3cf28', name: "input" }), hAsync("slot", { key: '3b56d19118f2b75964a9ed62ae2210e7705ba4a5', name: "button-erase" }), hAsync("slot", { key: 'c829a3df01bc53fab6b3022aac353ebe06b088db', name: "button" })));
7035
+ return (hAsync(Host, { key: 'c901368f70213c3be37b44b472002ce0872209d0', class: FormSearchClass.root, color: this.color, size: this.size }, hAsync("slot", { key: '4ca581f75ccd75f785f94c1f93500c914b129cc8', name: "input" }), hAsync("slot", { key: '10a34b30a9496b0d9a82b0baaf10b66ac5a2679f', name: "button-erase" }), hAsync("slot", { key: '2888491da6babe4e7586abdda1863850ed67f8a9', name: "button" })));
6938
7036
  }
6939
7037
  get host() { return getElement(this); }
6940
7038
  static get cmpMeta() { return {
6941
7039
  "$flags$": 4,
6942
7040
  "$tagName$": "gov-form-search",
6943
7041
  "$members$": {
6944
- "size": [1],
7042
+ "size": [513],
6945
7043
  "color": [513]
6946
7044
  },
6947
7045
  "$listeners$": undefined,
6948
7046
  "$lazyBundleId$": "-",
6949
- "$attrsToReflect$": [["color", "color"]]
7047
+ "$attrsToReflect$": [["size", "size"], ["color", "color"]]
6950
7048
  }; }
6951
7049
  }
6952
7050
 
@@ -6986,7 +7084,7 @@ class GovFormSelect {
6986
7084
  this.passControlAttrs();
6987
7085
  }
6988
7086
  watchValue() {
6989
- this.markSelectedValue();
7087
+ this.syncSelectValue();
6990
7088
  }
6991
7089
  passControlAttrs() {
6992
7090
  this.f.passAttrToControl('size', this.size);
@@ -7000,6 +7098,7 @@ class GovFormSelect {
7000
7098
  this.onAriaAttributeChange(attributeName, newValue);
7001
7099
  });
7002
7100
  this.attributeObserver.startObserving(ariaAttributes);
7101
+ this.syncSelectValue();
7003
7102
  }
7004
7103
  disconnectedCallback() {
7005
7104
  var _a;
@@ -7007,34 +7106,27 @@ class GovFormSelect {
7007
7106
  }
7008
7107
  componentWillLoad() {
7009
7108
  this.validateSize(this.size);
7010
- this.markSelectedValue();
7011
7109
  this.optionsState = propsValueToArray(this.options);
7012
7110
  this.inheritedAttributes = inheritAriaAttributes(this.host);
7013
7111
  }
7014
7112
  async componentDidRender() {
7015
7113
  this.passControlAttrs();
7016
7114
  this.f.passAttrToLabel('required', String(this.required));
7017
- tick(() => this.markSelectedValue());
7018
7115
  }
7019
7116
  onAriaAttributeChange(attributeName, newValue) {
7020
7117
  this.host.removeAttribute(attributeName);
7021
7118
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
7022
7119
  }
7023
- markSelectedValue() {
7024
- this.host.querySelectorAll('option').forEach((option) => {
7025
- if (option.value === this.value) {
7026
- option.setAttribute('selected', 'selected');
7027
- }
7028
- else {
7029
- option.removeAttribute('selected');
7030
- }
7031
- });
7120
+ syncSelectValue() {
7121
+ if (this.selectRef && this.value !== undefined && this.selectRef.value !== this.value) {
7122
+ this.selectRef.value = this.value;
7123
+ }
7032
7124
  }
7033
7125
  render() {
7034
- return (hAsync(Host, { key: '92b4679d9a9fb77628934ed90e00b1eafc593a3e', class: FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && hAsync("slot", { key: 'b51835a8b6254898a064a41c75f95cc746d46d57', name: "prefix" }), hAsync("span", { key: '2324839a4c3821a46fcdace4755961a96216dadc', class: "element" }, hAsync("select", Object.assign({ key: 'df1fe5989b6d427c0f48d673f951a4b1f5f8b728', id: this.identifier || this.selectId, onFocus: this.onFocusHandler.bind(this), onChange: this.onChangeHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), hAsync("slot", { key: 'bc12463c981b174aa49a791f360d6001230c3fc4' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
7126
+ return (hAsync(Host, { key: 'd29638f5868731a2324971d197dcd636364a4f6c', class: FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && hAsync("slot", { key: '41cc14ee33022a4cf6d10c3d86c8915551221e94', name: "prefix" }), hAsync("span", { key: 'f9c167589fa81f0a060a13d9a31d16ab642d5ad2', class: "element" }, hAsync("select", Object.assign({ key: '2dd5c948ccc7b65674e7d7f730cb2c9567287668', id: this.identifier || this.selectId, onFocus: this.onFocusHandler.bind(this), onChange: this.onChangeHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), hAsync("slot", { key: 'f6f0b21c9e43e1216446bce09c57a757a40d7b7b' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
7035
7127
  var _a;
7036
7128
  return (hAsync("option", { value: option.value, selected: option.value === this.value, disabled: option === null || option === void 0 ? void 0 : option.disabled }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value));
7037
- })), this.success && hAsync("gov-icon", { key: 'def96c72b9bd804797472954d591e16d25860036', class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && hAsync("gov-icon", { key: 'e20c8d4bac094529ff51d8412ae2105401edcf98', class: "validation-icon", name: "exclamation-lg", type: "components" }), hAsync("gov-icon", { key: 'e004aae985d9de1202fb50c06f5baa4d12c19fd2', class: "arrow-icon", name: "chevron-down", type: "components" })), this.h.hasSlot('sufix') && hAsync("slot", { key: '72b7791037616836108a7420d13b21bf44fdeb85', name: "sufix" })));
7129
+ })), this.success && hAsync("gov-icon", { key: 'd94a0191bc7d02d55450dfad627457101226ad22', class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && hAsync("gov-icon", { key: '84ecf7197313c8a145efa54730d22068679df3f5', class: "validation-icon", name: "exclamation-lg", type: "components" }), hAsync("gov-icon", { key: '1a219d4d230466ac15e316eee16d4a55db1889fe', class: "arrow-icon", name: "chevron-down", type: "components" })), this.h.hasSlot('sufix') && hAsync("slot", { key: 'c7f4816548e3494de94f7ff0dd33f6c904acc14b', name: "sufix" })));
7038
7130
  }
7039
7131
  onFocusHandler(e) {
7040
7132
  this.focused = true;
@@ -7343,7 +7435,7 @@ var Types;
7343
7435
  const IconClass = {
7344
7436
  root: 'gov-icon'};
7345
7437
 
7346
- const version = "4.6.3";
7438
+ const version = "4.6.5-b";
7347
7439
 
7348
7440
  const dsVersion = () => {
7349
7441
  return version;
@@ -9175,6 +9267,12 @@ class GovTooltip {
9175
9267
  */
9176
9268
  this.icon = undefined;
9177
9269
  this.persist = false;
9270
+ this.repositionListenersAttached = false;
9271
+ this.reposition = () => {
9272
+ if (this.tooltipContent) {
9273
+ this.verifyPositionSpace();
9274
+ }
9275
+ };
9178
9276
  this.h = govHost(this.host);
9179
9277
  this.tooltipId = createID("GovTooltip");
9180
9278
  this.tooltipContentId = createID("GovContentTooltip");
@@ -9204,16 +9302,18 @@ class GovTooltip {
9204
9302
  this.createContentWrapper();
9205
9303
  }
9206
9304
  disconnectedCallback() {
9305
+ var _a;
9306
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
9307
+ this.resizeObserver = undefined;
9308
+ window.removeEventListener("resize", this.reposition);
9309
+ this.repositionListenersAttached = false;
9207
9310
  this.removeContent();
9208
9311
  }
9209
9312
  createContentWrapper() {
9210
9313
  var _a;
9211
9314
  if (this.tooltipContent) {
9212
- if (this.message) {
9213
- this.tooltipContent.innerHTML = this.message;
9214
- }
9215
- else if (this.insideContent) {
9216
- this.tooltipContent.innerHTML = this.insideContent.innerHTML;
9315
+ if (this.message != null) {
9316
+ this.tooltipContent.setAttribute("message", this.message);
9217
9317
  }
9218
9318
  return;
9219
9319
  }
@@ -9223,7 +9323,9 @@ class GovTooltip {
9223
9323
  }
9224
9324
  else {
9225
9325
  content = documentNode().createElement(TooltipContentClass.root);
9226
- content.innerHTML = this.message;
9326
+ if (this.message != null) {
9327
+ content.setAttribute("message", this.message);
9328
+ }
9227
9329
  }
9228
9330
  content.setAttribute("id", (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId);
9229
9331
  content.setAttribute("parent-id", this.tooltipId);
@@ -9338,14 +9440,27 @@ class GovTooltip {
9338
9440
  tick(() => {
9339
9441
  this.verifyPositionSpace();
9340
9442
  });
9443
+ if (!this.repositionListenersAttached) {
9444
+ this.repositionListenersAttached = true;
9445
+ if (typeof ResizeObserver !== "undefined") {
9446
+ this.resizeObserver = new ResizeObserver(this.reposition);
9447
+ this.resizeObserver.observe(this.tooltipContent);
9448
+ }
9449
+ window.addEventListener("resize", this.reposition);
9450
+ }
9341
9451
  }
9342
9452
  }
9343
9453
  hideTooltip() {
9454
+ var _a;
9344
9455
  if (this.tooltipContent) {
9345
9456
  this.tooltipContent.setAttribute("is-visible", "false");
9346
9457
  this.tooltipContent.setAttribute("persist", "false");
9347
9458
  this.tooltipContent.removeAttribute('style');
9348
9459
  }
9460
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
9461
+ this.resizeObserver = undefined;
9462
+ window.removeEventListener("resize", this.reposition);
9463
+ this.repositionListenersAttached = false;
9349
9464
  }
9350
9465
  removeContent() {
9351
9466
  const contentEl = document.getElementById(this.tooltipContentId);
@@ -9355,11 +9470,11 @@ class GovTooltip {
9355
9470
  }
9356
9471
  render() {
9357
9472
  var _a;
9358
- return (hAsync(Host, { key: 'dd78d93d3b5ba4bc3a128435f58467c9bd6def43', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, hAsync("span", { key: '2ede8642a4cf998367da3756c795847195c0f694', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
9473
+ return (hAsync(Host, { key: '20ebe5eea59967e8681fd0e35fc7aff53b5915dd', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, hAsync("span", { key: '847b78886907d683425013227eb78bbf9261b709', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
9359
9474
  if (this.persist === false) {
9360
9475
  this.hideTooltip();
9361
9476
  }
9362
- }, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, hAsync("slot", { key: '9607b4c9b24766f70b53c6372e6e7219e7a3a6fd' }))));
9477
+ }, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, hAsync("slot", { key: '84c4c02ee11e05166fca208b82ef54298dcaa6ee' }))));
9363
9478
  }
9364
9479
  /**
9365
9480
  * Showing the modal
@@ -9445,7 +9560,9 @@ class GovTooltipContent {
9445
9560
  }
9446
9561
  }
9447
9562
  render() {
9448
- return (hAsync(Host, { key: '71d259cc8d7247030767f8ac36a6875f9c16ffea', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, hAsync("slot", { key: '06d883340271717da9d0b8de6c35339cd5c9dfb9' }), this.persist ? (hAsync("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, hAsync("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
9563
+ return (hAsync(Host, { key: '121b5cd3878956618a7a917511e6d8d76edf6672', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, this.message
9564
+ ? hAsync("span", { class: "gov-tooltip-content__message", innerHTML: this.message })
9565
+ : hAsync("slot", null), this.persist ? (hAsync("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, hAsync("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
9449
9566
  }
9450
9567
  get host() { return getElement(this); }
9451
9568
  static get watchers() { return {
@@ -9459,7 +9576,8 @@ class GovTooltipContent {
9459
9576
  "size": [1],
9460
9577
  "persist": [4],
9461
9578
  "isVisible": [1028, "is-visible"],
9462
- "parentId": [1, "parent-id"]
9579
+ "parentId": [1, "parent-id"],
9580
+ "message": [1025]
9463
9581
  },
9464
9582
  "$listeners$": undefined,
9465
9583
  "$lazyBundleId$": "-",
@@ -9520,7 +9638,7 @@ class GovWizard {
9520
9638
  this.hydrated = true;
9521
9639
  }
9522
9640
  render() {
9523
- return (hAsync(Host, { key: '5d1d08b27c5a8b266d209841d4cfda654081124c', class: this.h.classes(WizardClass.root), role: "list", size: this.size, hydrated: this.hydrated }, hAsync("slot", { key: 'c17071c8a7bed0dee95deec69c0ce1c668160209' })));
9641
+ return (hAsync(Host, { key: 'd1957fc0c0058c107769e3cc5390ef986fc9b921', class: this.h.classes(WizardClass.root), role: "list", size: this.size, hydrated: this.hydrated }, hAsync("slot", { key: 'a34323c408d790c5945ca0d80db62de2433db438' })));
9524
9642
  }
9525
9643
  /**
9526
9644
  * Validate the WCAG attributes of the component
@@ -9596,8 +9714,8 @@ class GovWizardItem {
9596
9714
  render() {
9597
9715
  const triggerId = this.identifier || this.triggerId;
9598
9716
  const Tag = this.collapsible ? Tags.BUTTON : Tags.DIV;
9599
- const prefixSlot = this.h.hasSlot("prefix") && (hAsync("span", { key: '10144e93de98bf60873fa6c244c4129b040b8bae', class: WizardItemClass.prefix }, hAsync("slot", { key: 'a946028d94e0c159cf4c91fa1773467c8203a5f2', name: "prefix" })));
9600
- return (hAsync(Host, { key: 'f33ced4d5d8f57bec50cc8ebce6f12cf2145833d', class: this.h.classes(WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, hAsync("div", { key: '872e3e164b4cca4955c2ba4cf0a2d88563f50fc5', class: WizardItemClass.header }, prefixSlot, this.collapsible ? (hAsync(Tag, { id: triggerId, class: this.h.classes(WizardItemClass.label), "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: (e) => {
9717
+ const prefixSlot = this.h.hasSlot("prefix") && (hAsync("span", { key: '3f00516020337fc142713c6edb468d0007eba3c5', class: WizardItemClass.prefix }, hAsync("slot", { key: '05aa42bc8241f53bb3664dc3d06798cb0344f92f', name: "prefix" })));
9718
+ return (hAsync(Host, { key: '863700f5087e86d1f8d4e22b40108dfbc0cb96f5', class: this.h.classes(WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, hAsync("div", { key: '6d93a5bb12dbe2fc2e308059ffd5d63ed915f16d', class: WizardItemClass.header }, prefixSlot, this.collapsible ? (hAsync(Tag, { id: triggerId, class: this.h.classes(WizardItemClass.label), "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: (e) => {
9601
9719
  e.preventDefault();
9602
9720
  e.stopPropagation();
9603
9721
  this.toggle();
@@ -0,0 +1,2 @@
1
+ import { Config } from "../../../../../../../../../../stencil-public-runtime";
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { GovFormAutocompleteItem } from './gov-form-autocomplete.types';
2
+ export declare const filterAutocompleteOptions: (options: GovFormAutocompleteItem[], query: string, nameKey: string, maxOptions: number) => GovFormAutocompleteItem[];
@@ -7,8 +7,10 @@ export declare class GovFormAutocomplete {
7
7
  private listRef?;
8
8
  private readonly listBoxId;
9
9
  private searchCallback;
10
+ private fullOptions;
10
11
  private templateResolver;
11
12
  private attributeObserver;
13
+ private debouncedSearch;
12
14
  constructor();
13
15
  host: HTMLGovFormInputElement;
14
16
  /**
@@ -69,6 +71,11 @@ export declare class GovFormAutocomplete {
69
71
  * Maximum length (number of characters) of value
70
72
  */
71
73
  readonly maxlength: number;
74
+ /**
75
+ * Maximum number of items shown from a static `options` list (0 = unlimited).
76
+ * Applies only when no async search callback is set.
77
+ */
78
+ readonly maxOptions: number;
72
79
  /**
73
80
  * Input throttle in milliseconds
74
81
  */
@@ -108,6 +115,8 @@ export declare class GovFormAutocomplete {
108
115
  get isValueAccepted(): boolean;
109
116
  componentDidLoad(): void;
110
117
  componentWillLoad(): void;
118
+ watchThrottleTime(): void;
119
+ private emitAndSearch;
111
120
  disconnectedCallback(): void;
112
121
  onAriaAttributeChange(attributeName: string, newValue: string): void;
113
122
  render(): any;
@@ -104,6 +104,7 @@ export declare class GovFormFile {
104
104
  preventDefaults(e: any): void;
105
105
  handleDrop(e: DragEvent): void;
106
106
  private validateFiles;
107
+ private syncNativeInputFiles;
107
108
  componentDidLoad(): void;
108
109
  componentWillLoad(): void;
109
110
  componentDidRender(): Promise<void>;
@@ -73,7 +73,7 @@ export declare class GovFormSelect {
73
73
  componentWillLoad(): void;
74
74
  componentDidRender(): Promise<void>;
75
75
  onAriaAttributeChange(attributeName: string, newValue: string): void;
76
- private markSelectedValue;
76
+ private syncSelectValue;
77
77
  render(): any;
78
78
  private onFocusHandler;
79
79
  private onBlurHandler;
@@ -22,6 +22,10 @@ export declare class GovTooltipContent {
22
22
  * Indicates display of tooltip content
23
23
  */
24
24
  parentId: string;
25
+ /**
26
+ * Tooltip text. When set, renders the HTML message; otherwise the default `<slot/>` is used.
27
+ */
28
+ message?: string;
25
29
  visibleContent(newValue: boolean): void;
26
30
  hideContent(): void;
27
31
  render(): any;
@@ -43,6 +43,9 @@ export declare class GovTooltip {
43
43
  private get insideContent();
44
44
  private registerListeners;
45
45
  private verifyPositionSpace;
46
+ private resizeObserver?;
47
+ private repositionListenersAttached;
48
+ private readonly reposition;
46
49
  private showTooltip;
47
50
  private hideTooltip;
48
51
  private removeContent;