@gov-design-system-ce/components 4.1.0 → 4.1.1

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 (279) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/gov-flex_4.cjs.entry.js +47 -30
  3. package/dist/cjs/gov-flex_4.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
  5. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  7. package/dist/cjs/gov-form-file.cjs.entry.js +2 -3
  8. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  9. package/dist/cjs/gov-form-multi-select.cjs.entry.js +2 -2
  10. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  11. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  14. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +2 -2
  17. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  18. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +2 -2
  19. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  20. package/dist/collection/components/gov-form/file/gov-form-file.js +3 -4
  21. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  22. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +3 -3
  23. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  24. package/dist/collection/components/gov-form/radio/gov-form-radio.js +1 -1
  25. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  26. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  27. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  28. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -2
  29. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  30. package/dist/collection/components/gov-icon/gov-icon.js +3 -4
  31. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  32. package/dist/collection/components/gov-icon/list.js +6 -0
  33. package/dist/collection/components/gov-icon/list.js.map +1 -1
  34. package/dist/collection/helpers/Dom/document.js +18 -0
  35. package/dist/collection/helpers/Dom/document.js.map +1 -1
  36. package/dist/components/gov-accordion-item.js +1 -1
  37. package/dist/components/gov-accordion.js +1 -1
  38. package/dist/components/gov-attachments-item.js +1 -1
  39. package/dist/components/gov-attachments.js +1 -1
  40. package/dist/components/gov-backdrop.js +1 -1
  41. package/dist/components/gov-breadcrumbs.js +1 -1
  42. package/dist/components/gov-button.js +1 -1
  43. package/dist/components/gov-card.js +1 -1
  44. package/dist/components/gov-chip.js +1 -1
  45. package/dist/components/gov-control-group.js +1 -1
  46. package/dist/components/gov-dialog.js +1 -1
  47. package/dist/components/gov-empty.js +1 -1
  48. package/dist/components/gov-form-autocomplete.js +1 -1
  49. package/dist/components/gov-form-checkbox-group.js +1 -1
  50. package/dist/components/gov-form-checkbox.js +1 -1
  51. package/dist/components/gov-form-checkbox.js.map +1 -1
  52. package/dist/components/gov-form-file.js +1 -1
  53. package/dist/components/gov-form-file.js.map +1 -1
  54. package/dist/components/gov-form-group.js +1 -1
  55. package/dist/components/gov-form-input.js +1 -1
  56. package/dist/components/gov-form-message.js +1 -1
  57. package/dist/components/gov-form-multi-select.js +1 -1
  58. package/dist/components/gov-form-multi-select.js.map +1 -1
  59. package/dist/components/gov-form-radio-group.js +1 -1
  60. package/dist/components/gov-form-radio.js +1 -1
  61. package/dist/components/gov-form-radio.js.map +1 -1
  62. package/dist/components/gov-form-select.js +1 -1
  63. package/dist/components/gov-form-switch.js +1 -1
  64. package/dist/components/gov-form-switch.js.map +1 -1
  65. package/dist/components/gov-icon.js +1 -1
  66. package/dist/components/gov-infobar.js +1 -1
  67. package/dist/components/gov-link.js +1 -1
  68. package/dist/components/gov-link.js.map +1 -1
  69. package/dist/components/gov-loading.js +1 -1
  70. package/dist/components/gov-message.js +1 -1
  71. package/dist/components/gov-pagination.js +1 -1
  72. package/dist/components/gov-skeleton.js +1 -1
  73. package/dist/components/gov-spacer.js +1 -1
  74. package/dist/components/gov-stepper-item.js +1 -1
  75. package/dist/components/gov-stepper.js +1 -1
  76. package/dist/components/gov-tabs.js +1 -1
  77. package/dist/components/gov-tag.js +1 -1
  78. package/dist/components/gov-theme-switch.js +1 -1
  79. package/dist/components/gov-theme-switch.js.map +1 -1
  80. package/dist/components/gov-tile.js +1 -1
  81. package/dist/components/gov-toast.js +1 -1
  82. package/dist/components/gov-tooltip-content.js +1 -1
  83. package/dist/components/gov-tooltip.js +1 -1
  84. package/dist/components/gov-tooltip.js.map +1 -1
  85. package/dist/components/gov-wizard-item.js +1 -1
  86. package/dist/components/gov-wizard.js +1 -1
  87. package/dist/components/p-0b3574c2.js +2 -0
  88. package/dist/components/{p-dc952cc2.js → p-1eb9c053.js} +2 -2
  89. package/dist/components/{p-2b87c27b.js → p-283b66c3.js} +2 -2
  90. package/dist/components/p-283b66c3.js.map +1 -0
  91. package/dist/components/{p-7d4f2214.js → p-318d89bd.js} +2 -2
  92. package/dist/components/{p-929ebfb5.js → p-3d7a21b5.js} +2 -2
  93. package/dist/components/p-46c567fd.js +2 -0
  94. package/dist/components/p-46c567fd.js.map +1 -0
  95. package/dist/components/{p-4149f195.js → p-73938936.js} +2 -2
  96. package/dist/components/{p-5952a5d0.js → p-7be2301a.js} +2 -2
  97. package/dist/components/{p-227eb30d.js → p-80dad64b.js} +2 -2
  98. package/dist/components/{p-31a99bfc.js → p-a6b7a6c2.js} +2 -2
  99. package/dist/components/{p-45097b4c.js → p-a6be4769.js} +2 -2
  100. package/dist/components/p-a6be4769.js.map +1 -0
  101. package/dist/components/{p-dfb5794a.js → p-ac359044.js} +2 -2
  102. package/dist/components/{p-859a4f0d.js → p-b95ebe8c.js} +2 -2
  103. package/dist/components/{p-20c2203a.js → p-e8ec030e.js} +2 -2
  104. package/dist/core/core.esm.js +1 -1
  105. package/dist/core/core.esm.js.map +1 -1
  106. package/dist/core/{p-3fc3c26b.entry.js → p-04fa0ab5.entry.js} +2 -2
  107. package/dist/core/p-0b3574c2.js +2 -0
  108. package/dist/core/{p-7d6073aa.entry.js → p-0fdd8929.entry.js} +2 -2
  109. package/dist/core/{p-783a6b5b.entry.js → p-1200a32d.entry.js} +2 -2
  110. package/dist/core/p-1200a32d.entry.js.map +1 -0
  111. package/dist/core/{p-8701c28e.entry.js → p-2739fa61.entry.js} +2 -2
  112. package/dist/core/{p-c52afdfc.js → p-29ac15d2.js} +2 -2
  113. package/dist/core/{p-1ac9544f.entry.js → p-3cb36bae.entry.js} +2 -2
  114. package/dist/core/p-3cb36bae.entry.js.map +1 -0
  115. package/dist/core/p-3d6edb09.entry.js +2 -0
  116. package/dist/core/p-3d6edb09.entry.js.map +1 -0
  117. package/dist/core/p-3f6a2d20.entry.js +2 -0
  118. package/dist/core/p-3f6a2d20.entry.js.map +1 -0
  119. package/dist/core/{p-f1fa5e1e.entry.js → p-41c6b262.entry.js} +2 -2
  120. package/dist/core/p-432c3875.entry.js +2 -0
  121. package/dist/core/p-432c3875.entry.js.map +1 -0
  122. package/dist/core/p-4b90fbc4.entry.js +2 -0
  123. package/dist/core/{p-2c59483f.entry.js → p-4c5f6299.entry.js} +2 -2
  124. package/dist/core/{p-db22d51c.entry.js → p-561718cd.entry.js} +2 -2
  125. package/dist/core/{p-ed1131cb.entry.js → p-56dc370d.entry.js} +2 -2
  126. package/dist/core/{p-c20fe3da.entry.js → p-5c9e6275.entry.js} +2 -2
  127. package/dist/core/p-65e67731.entry.js +2 -0
  128. package/dist/core/{p-773f71f6.entry.js → p-6bb37fe2.entry.js} +2 -2
  129. package/dist/core/p-6e457b3d.entry.js +2 -0
  130. package/dist/core/{p-1abdcb62.entry.js → p-72130a8f.entry.js} +2 -2
  131. package/dist/core/{p-6454af62.entry.js → p-7e04730a.entry.js} +2 -2
  132. package/dist/core/p-97a9725d.entry.js +2 -0
  133. package/dist/core/{p-9da91318.entry.js.map → p-97a9725d.entry.js.map} +1 -1
  134. package/dist/core/{p-b4af0bec.entry.js → p-9c2c5447.entry.js} +2 -2
  135. package/dist/core/{p-7bf52eb9.entry.js → p-9fe35463.entry.js} +2 -2
  136. package/dist/core/{p-951823cb.entry.js → p-b7cfe254.entry.js} +2 -2
  137. package/dist/core/p-b923a8d9.entry.js +2 -0
  138. package/dist/core/{p-d24710ff.entry.js.map → p-b923a8d9.entry.js.map} +1 -1
  139. package/dist/core/p-bcb45a18.entry.js +2 -0
  140. package/dist/core/{p-443a813a.entry.js.map → p-bcb45a18.entry.js.map} +1 -1
  141. package/dist/core/{p-fca60e04.entry.js → p-c054f955.entry.js} +2 -2
  142. package/dist/core/{p-74458da3.entry.js → p-c916d0d2.entry.js} +2 -2
  143. package/dist/core/p-c916d0d2.entry.js.map +1 -0
  144. package/dist/core/{p-c4ffcc37.entry.js → p-ccec8019.entry.js} +2 -2
  145. package/dist/core/p-cd2d335d.entry.js +2 -0
  146. package/dist/core/{p-f1056a83.entry.js.map → p-cd2d335d.entry.js.map} +1 -1
  147. package/dist/core/{p-e2517a72.entry.js → p-d836fcde.entry.js} +2 -2
  148. package/dist/core/{p-b1efeb41.entry.js → p-da7f1e11.entry.js} +2 -2
  149. package/dist/core/{p-dec3f948.entry.js → p-dea64896.entry.js} +2 -2
  150. package/dist/core/{p-a218e2eb.entry.js → p-e61aa53b.entry.js} +2 -2
  151. package/dist/core/{p-20c2203a.js → p-e8ec030e.js} +2 -2
  152. package/dist/core/p-ea44d447.entry.js +2 -0
  153. package/dist/core/{p-cb557873.entry.js → p-ed833334.entry.js} +2 -2
  154. package/dist/core/p-ed833334.entry.js.map +1 -0
  155. package/dist/core/{p-fe6fed11.entry.js → p-ed8fc183.entry.js} +2 -2
  156. package/dist/{components/p-45097b4c.js.map → core/p-ed8fc183.entry.js.map} +1 -1
  157. package/dist/core/p-f4dac942.entry.js +2 -0
  158. package/dist/esm/core.js +1 -1
  159. package/dist/esm/gov-accordion-item.entry.js +2 -2
  160. package/dist/esm/gov-accordion.entry.js +2 -2
  161. package/dist/esm/gov-attachments_3.entry.js +3 -3
  162. package/dist/esm/gov-backdrop.entry.js +2 -2
  163. package/dist/esm/gov-breadcrumbs.entry.js +2 -2
  164. package/dist/esm/gov-button.entry.js +3 -3
  165. package/dist/esm/gov-card.entry.js +2 -2
  166. package/dist/esm/gov-chip.entry.js +2 -2
  167. package/dist/esm/gov-control-group.entry.js +2 -2
  168. package/dist/esm/gov-dialog.entry.js +2 -2
  169. package/dist/esm/gov-empty.entry.js +2 -2
  170. package/dist/esm/gov-flex_4.entry.js +49 -32
  171. package/dist/esm/gov-flex_4.entry.js.map +1 -1
  172. package/dist/esm/gov-form-autocomplete.entry.js +3 -3
  173. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  174. package/dist/esm/gov-form-checkbox-group.entry.js +2 -2
  175. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  176. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  177. package/dist/esm/gov-form-file.entry.js +2 -3
  178. package/dist/esm/gov-form-file.entry.js.map +1 -1
  179. package/dist/esm/gov-form-group.entry.js +2 -2
  180. package/dist/esm/gov-form-input_2.entry.js +2 -2
  181. package/dist/esm/gov-form-multi-select.entry.js +4 -4
  182. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  183. package/dist/esm/gov-form-radio-group.entry.js +2 -2
  184. package/dist/esm/gov-form-radio.entry.js +2 -2
  185. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  186. package/dist/esm/gov-form-select.entry.js +4 -4
  187. package/dist/esm/gov-form-select.entry.js.map +1 -1
  188. package/dist/esm/gov-form-switch.entry.js +2 -2
  189. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  190. package/dist/esm/gov-infobar.entry.js +2 -2
  191. package/dist/esm/gov-link.entry.js +2 -2
  192. package/dist/esm/gov-loading.entry.js +2 -2
  193. package/dist/esm/gov-message.entry.js +2 -2
  194. package/dist/esm/gov-pagination.entry.js +2 -2
  195. package/dist/esm/gov-spacer.entry.js +2 -2
  196. package/dist/esm/gov-stepper-item.entry.js +2 -2
  197. package/dist/esm/gov-stepper.entry.js +2 -2
  198. package/dist/esm/gov-tabs.entry.js +2 -2
  199. package/dist/esm/gov-tag.entry.js +2 -2
  200. package/dist/esm/gov-toast.entry.js +2 -2
  201. package/dist/esm/gov-tooltip.entry.js +2 -2
  202. package/dist/esm/gov-wizard-item.entry.js +2 -2
  203. package/dist/esm/gov-wizard.entry.js +3 -3
  204. package/dist/esm/{gov.log-066c3139.js → gov.log-6b64cda6.js} +2 -2
  205. package/dist/esm/{gov.log-066c3139.js.map → gov.log-6b64cda6.js.map} +1 -1
  206. package/dist/esm/loader.js +1 -1
  207. package/dist/esm/{props-fb6587c3.js → props-9d3c7ac1.js} +2 -2
  208. package/dist/esm/{props-fb6587c3.js.map → props-9d3c7ac1.js.map} +1 -1
  209. package/dist/esm/{wcag-de9a3dc6.js → wcag-253a4421.js} +2 -2
  210. package/dist/esm/{wcag-de9a3dc6.js.map → wcag-253a4421.js.map} +1 -1
  211. package/dist/hydrate/index.js +71 -54
  212. package/dist/hydrate/index.mjs +71 -54
  213. package/dist/types/components/gov-icon/gov-icon.d.ts +1 -2
  214. package/dist/types/helpers/Dom/document.d.ts +1 -0
  215. package/package.json +4 -4
  216. package/dist/components/p-2b87c27b.js.map +0 -1
  217. package/dist/components/p-a2435993.js +0 -2
  218. package/dist/components/p-f44899e1.js +0 -2
  219. package/dist/components/p-f44899e1.js.map +0 -1
  220. package/dist/core/p-1ac9544f.entry.js.map +0 -1
  221. package/dist/core/p-1b3c808d.entry.js +0 -2
  222. package/dist/core/p-1b3c808d.entry.js.map +0 -1
  223. package/dist/core/p-2c290fe5.entry.js +0 -2
  224. package/dist/core/p-40d764ac.entry.js +0 -2
  225. package/dist/core/p-410ec0dd.entry.js +0 -2
  226. package/dist/core/p-443a813a.entry.js +0 -2
  227. package/dist/core/p-48c93ac0.entry.js +0 -2
  228. package/dist/core/p-48c93ac0.entry.js.map +0 -1
  229. package/dist/core/p-52ca31be.entry.js +0 -2
  230. package/dist/core/p-52ca31be.entry.js.map +0 -1
  231. package/dist/core/p-5ed63e9c.entry.js +0 -2
  232. package/dist/core/p-74458da3.entry.js.map +0 -1
  233. package/dist/core/p-783a6b5b.entry.js.map +0 -1
  234. package/dist/core/p-9da91318.entry.js +0 -2
  235. package/dist/core/p-a2435993.js +0 -2
  236. package/dist/core/p-cb557873.entry.js.map +0 -1
  237. package/dist/core/p-d24710ff.entry.js +0 -2
  238. package/dist/core/p-f1056a83.entry.js +0 -2
  239. package/dist/core/p-f6709826.entry.js +0 -2
  240. package/dist/core/p-fe6fed11.entry.js.map +0 -1
  241. /package/dist/components/{p-a2435993.js.map → p-0b3574c2.js.map} +0 -0
  242. /package/dist/components/{p-dc952cc2.js.map → p-1eb9c053.js.map} +0 -0
  243. /package/dist/components/{p-7d4f2214.js.map → p-318d89bd.js.map} +0 -0
  244. /package/dist/components/{p-929ebfb5.js.map → p-3d7a21b5.js.map} +0 -0
  245. /package/dist/components/{p-4149f195.js.map → p-73938936.js.map} +0 -0
  246. /package/dist/components/{p-5952a5d0.js.map → p-7be2301a.js.map} +0 -0
  247. /package/dist/components/{p-227eb30d.js.map → p-80dad64b.js.map} +0 -0
  248. /package/dist/components/{p-31a99bfc.js.map → p-a6b7a6c2.js.map} +0 -0
  249. /package/dist/components/{p-dfb5794a.js.map → p-ac359044.js.map} +0 -0
  250. /package/dist/components/{p-859a4f0d.js.map → p-b95ebe8c.js.map} +0 -0
  251. /package/dist/components/{p-20c2203a.js.map → p-e8ec030e.js.map} +0 -0
  252. /package/dist/core/{p-3fc3c26b.entry.js.map → p-04fa0ab5.entry.js.map} +0 -0
  253. /package/dist/core/{p-a2435993.js.map → p-0b3574c2.js.map} +0 -0
  254. /package/dist/core/{p-7d6073aa.entry.js.map → p-0fdd8929.entry.js.map} +0 -0
  255. /package/dist/core/{p-8701c28e.entry.js.map → p-2739fa61.entry.js.map} +0 -0
  256. /package/dist/core/{p-c52afdfc.js.map → p-29ac15d2.js.map} +0 -0
  257. /package/dist/core/{p-f1fa5e1e.entry.js.map → p-41c6b262.entry.js.map} +0 -0
  258. /package/dist/core/{p-410ec0dd.entry.js.map → p-4b90fbc4.entry.js.map} +0 -0
  259. /package/dist/core/{p-2c59483f.entry.js.map → p-4c5f6299.entry.js.map} +0 -0
  260. /package/dist/core/{p-db22d51c.entry.js.map → p-561718cd.entry.js.map} +0 -0
  261. /package/dist/core/{p-ed1131cb.entry.js.map → p-56dc370d.entry.js.map} +0 -0
  262. /package/dist/core/{p-c20fe3da.entry.js.map → p-5c9e6275.entry.js.map} +0 -0
  263. /package/dist/core/{p-2c290fe5.entry.js.map → p-65e67731.entry.js.map} +0 -0
  264. /package/dist/core/{p-773f71f6.entry.js.map → p-6bb37fe2.entry.js.map} +0 -0
  265. /package/dist/core/{p-5ed63e9c.entry.js.map → p-6e457b3d.entry.js.map} +0 -0
  266. /package/dist/core/{p-1abdcb62.entry.js.map → p-72130a8f.entry.js.map} +0 -0
  267. /package/dist/core/{p-6454af62.entry.js.map → p-7e04730a.entry.js.map} +0 -0
  268. /package/dist/core/{p-b4af0bec.entry.js.map → p-9c2c5447.entry.js.map} +0 -0
  269. /package/dist/core/{p-7bf52eb9.entry.js.map → p-9fe35463.entry.js.map} +0 -0
  270. /package/dist/core/{p-951823cb.entry.js.map → p-b7cfe254.entry.js.map} +0 -0
  271. /package/dist/core/{p-fca60e04.entry.js.map → p-c054f955.entry.js.map} +0 -0
  272. /package/dist/core/{p-c4ffcc37.entry.js.map → p-ccec8019.entry.js.map} +0 -0
  273. /package/dist/core/{p-e2517a72.entry.js.map → p-d836fcde.entry.js.map} +0 -0
  274. /package/dist/core/{p-b1efeb41.entry.js.map → p-da7f1e11.entry.js.map} +0 -0
  275. /package/dist/core/{p-dec3f948.entry.js.map → p-dea64896.entry.js.map} +0 -0
  276. /package/dist/core/{p-a218e2eb.entry.js.map → p-e61aa53b.entry.js.map} +0 -0
  277. /package/dist/core/{p-20c2203a.js.map → p-e8ec030e.js.map} +0 -0
  278. /package/dist/core/{p-f6709826.entry.js.map → p-ea44d447.entry.js.map} +0 -0
  279. /package/dist/core/{p-40d764ac.entry.js.map → p-f4dac942.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"props-fb6587c3.js","mappings":";;AAEA;MACa,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB;IAC5G,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,IAAI,CAAC,OAAO,EAAE;QACb,aAAa,CAAC,IAAI,SAAS,gCAAgC,KAAK,gCAAgC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KACtH;AACF;;;;","names":[],"sources":["../../../packages/core/src/helpers/Validate/props.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\n\n// @TODO: deal with optional values\nexport const validateProp = <T extends Record<string, string>>(valueEnum: T, value: string, component: string): void => {\n\tconst values = Object.values(valueEnum)\n\tconst isValid = values.indexOf(value) > -1\n\tif (!isValid) {\n\t\tgovWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`)\n\t}\n}\n"],"version":3}
1
+ {"file":"props-9d3c7ac1.js","mappings":";;AAEA;MACa,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB;IAC5G,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC1C,IAAI,CAAC,OAAO,EAAE;QACb,aAAa,CAAC,IAAI,SAAS,gCAAgC,KAAK,gCAAgC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KACtH;AACF;;;;","names":[],"sources":["../../../packages/core/src/helpers/Validate/props.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\n\n// @TODO: deal with optional values\nexport const validateProp = <T extends Record<string, string>>(valueEnum: T, value: string, component: string): void => {\n\tconst values = Object.values(valueEnum)\n\tconst isValid = values.indexOf(value) > -1\n\tif (!isValid) {\n\t\tgovWarningLog(`[${component}]: Bad parameter with value (${value}). Available parameters are (${values.join(', ')}).`)\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { g as govWarningLog, d as documentNode } from './gov.log-066c3139.js';
1
+ import { g as govWarningLog, d as documentNode } from './gov.log-6b64cda6.js';
2
2
  import { s as splitByWhitespace } from './string.utils-1da8f8fb.js';
3
3
  import { i as isString } from './helpers.types-43ddbdb8.js';
4
4
 
@@ -48,4 +48,4 @@ const validateAccessibleLabel = (label, labelledBy, component, el = undefined) =
48
48
 
49
49
  export { validateWcagRef as a, validateWcagProp as b, validateAccessibleLabel as v };
50
50
 
51
- //# sourceMappingURL=wcag-de9a3dc6.js.map
51
+ //# sourceMappingURL=wcag-253a4421.js.map
@@ -1 +1 @@
1
- {"file":"wcag-de9a3dc6.js","mappings":";;;;MAKa,gBAAgB,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,SAAiB;IAC9F,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACtD,aAAa,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;QACrC,aAAa,CAAC,IAAI,SAAS,iBAAiB,IAAI,mCAAmC,CAAC,CAAA;QACpF,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,MAAM,YAAY,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAA;IACnD,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAChC,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;YACxC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAA;SAC1B,CAAC,CAAA;KACF;IAED,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW;QAClC,IAAI,YAAY,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE;;YAExD,OAAO,KAAK,CAAA;SACZ;aAAM;YACN,OAAO,IAAI,CAAA;SACX;KACD,CAAC,CAAC,MAAM,CAAA;AACV,EAAC;MAcY,uBAAuB,GAAG,CAAC,KAAyB,EAAE,UAA8B,EAAE,SAAiB,EAAE,KAAkB,SAAS;IAChJ,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACxC,OAAO,IAAI,CAAA;KACX;IACD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QAC5D,MAAM,YAAY,GAAG,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;QAC9D,IAAI,YAAY,EAAE;YACjB,OAAO,IAAI,CAAA;SACX;KACD;IACD,aAAa,CAAC,IAAI,SAAS,wEAAwE,EAAE,EAAE,CAAC,CAAA;IACxG,OAAO,KAAK,CAAA;AACb;;;;","names":[],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import {govWarningLog} from '../Log/gov.log'\nimport {splitByWhitespace} from '../../utils/string.utils'\nimport {documentNode} from '../Dom/win'\nimport {isString} from \"../../utils/helpers.types\";\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateAccessibleLabel = (label: string | undefined, labelledBy: string | undefined, component: string, el: HTMLElement = undefined): boolean => {\n\tif (isString(label) && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined aria-label or aria-labelledby attribute.`, el)\n\treturn false\n}\n"],"version":3}
1
+ {"file":"wcag-253a4421.js","mappings":";;;;MAKa,gBAAgB,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,SAAiB;IAC9F,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACtD,aAAa,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;QACrC,aAAa,CAAC,IAAI,SAAS,iBAAiB,IAAI,mCAAmC,CAAC,CAAA;QACpF,OAAO,KAAK,CAAA;KACZ;IACD,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,MAAM,YAAY,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAA;IACnD,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAChC,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;YACxC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAA;SAC1B,CAAC,CAAA;KACF;IAED,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW;QAClC,IAAI,YAAY,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE;;YAExD,OAAO,KAAK,CAAA;SACZ;aAAM;YACN,OAAO,IAAI,CAAA;SACX;KACD,CAAC,CAAC,MAAM,CAAA;AACV,EAAC;MAcY,uBAAuB,GAAG,CAAC,KAAyB,EAAE,UAA8B,EAAE,SAAiB,EAAE,KAAkB,SAAS;IAChJ,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACxC,OAAO,IAAI,CAAA;KACX;IACD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QAC5D,MAAM,YAAY,GAAG,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;QAC9D,IAAI,YAAY,EAAE;YACjB,OAAO,IAAI,CAAA;SACX;KACD;IACD,aAAa,CAAC,IAAI,SAAS,wEAAwE,EAAE,EAAE,CAAC,CAAA;IACxG,OAAO,KAAK,CAAA;AACb;;;;","names":[],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import {govWarningLog} from '../Log/gov.log'\nimport {splitByWhitespace} from '../../utils/string.utils'\nimport {documentNode} from '../Dom/win'\nimport {isString} from \"../../utils/helpers.types\";\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateAccessibleLabel = (label: string | undefined, labelledBy: string | undefined, component: string, el: HTMLElement = undefined): boolean => {\n\tif (isString(label) && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined aria-label or aria-labelledby attribute.`, el)\n\treturn false\n}\n"],"version":3}
@@ -3960,7 +3960,7 @@ class GovFormAutocomplete {
3960
3960
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
3961
3961
  }
3962
3962
  render() {
3963
- return (hAsync(Host, { key: 'd5ddd1d65a70f4a9839262831b6207a0fe8ae726', class: FormAutocompleteClass.root, size: this.size }, hAsync("gov-form-input", Object.assign({ key: 'd656134c3a756de2c4178dcfcdd703f301d6c890', 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: '1d697820c14669a9e6c81f844f15e20743593f97', name: "validation-icon" }), hAsync("slot", { key: '297ccc852764688a34102363beb428ab81d6de26', name: "icon-end" })), hAsync("ul", { key: '3ed420a696852fad4183d16ef31a2db1dcb8f572', 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) => {
3963
+ return (hAsync(Host, { key: '1914bf635c1c0bf169d6f45fe4dab9a2738d390a', class: FormAutocompleteClass.root, size: this.size }, hAsync("gov-form-input", Object.assign({ key: '75926414421d120acb5deea317d6d9afe11ddd11', 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: '1870810c9a7d6a258da3ec6d26e19cceef9da425', name: "validation-icon" }), hAsync("slot", { key: 'f6753deca157766fe66424d148a4416b1500e79e', name: "icon-end" })), hAsync("ul", { key: '4a63a2c01d13870b6e49392118f291f2e43e3a34', 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) => {
3964
3964
  const isSelected = this.arrowCounter === index;
3965
3965
  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" })));
3966
3966
  }) : null)));
@@ -4109,7 +4109,7 @@ class GovFormAutocomplete {
4109
4109
  "nameKey": [1, "name-key"],
4110
4110
  "name": [1],
4111
4111
  "required": [4],
4112
- "disabled": [4],
4112
+ "disabled": [516],
4113
4113
  "placeholder": [1],
4114
4114
  "readonly": [4],
4115
4115
  "invalid": [4],
@@ -4132,7 +4132,7 @@ class GovFormAutocomplete {
4132
4132
  },
4133
4133
  "$listeners$": undefined,
4134
4134
  "$lazyBundleId$": "-",
4135
- "$attrsToReflect$": [["value", "value"], ["options", "options"]]
4135
+ "$attrsToReflect$": [["value", "value"], ["options", "options"], ["disabled", "disabled"]]
4136
4136
  }; }
4137
4137
  }
4138
4138
 
@@ -4403,10 +4403,10 @@ class GovFormCheckbox {
4403
4403
  "value": [1],
4404
4404
  "checked": [1540],
4405
4405
  "required": [4],
4406
- "disabled": [4],
4406
+ "disabled": [516],
4407
4407
  "indeterminate": [516],
4408
4408
  "name": [1],
4409
- "size": [1],
4409
+ "size": [513],
4410
4410
  "identifier": [1],
4411
4411
  "noLabel": [4, "no-label"],
4412
4412
  "invalid": [4],
@@ -4415,7 +4415,7 @@ class GovFormCheckbox {
4415
4415
  },
4416
4416
  "$listeners$": undefined,
4417
4417
  "$lazyBundleId$": "-",
4418
- "$attrsToReflect$": [["checked", "checked"], ["indeterminate", "indeterminate"]]
4418
+ "$attrsToReflect$": [["checked", "checked"], ["disabled", "disabled"], ["indeterminate", "indeterminate"], ["size", "size"]]
4419
4419
  }; }
4420
4420
  }
4421
4421
 
@@ -4678,11 +4678,10 @@ class GovFormFile {
4678
4678
  if (this.expanded) {
4679
4679
  const events = ["dragover", "dragleave"];
4680
4680
  const inEvents = ["dragenter", "dragover", "mouseenter"];
4681
- const outEvents = ["dragleave", "drop", "mouseleave"];
4681
+ const outEvents = ["dragleave", "mouseleave"];
4682
4682
  events.map(eventName => this.inputRef.addEventListener(eventName, this.preventDefaults.bind(this), false));
4683
4683
  inEvents.map(eventName => this.inputRef.addEventListener(eventName, highlight.bind(this), false));
4684
4684
  outEvents.forEach(eventName => this.inputRef.addEventListener(eventName, unhighlight.bind(this), false));
4685
- this.areaRef.addEventListener("drop", this.handleDrop.bind(this), false);
4686
4685
  }
4687
4686
  }
4688
4687
  preventDefaults(e) {
@@ -4748,7 +4747,7 @@ class GovFormFile {
4748
4747
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
4749
4748
  }
4750
4749
  render() {
4751
- return (hAsync(Host, { key: 'fda855fd13b98ed5ec1cfca65467a076a88a5fa0', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, hAsync("div", { key: 'b1045cecb8e17259cd01b8856987da468e0e9396', class: FormFileClass.area, ref: el => (this.areaRef = el) }, hAsync("slot", { key: '0d06955bac8c995f95078f706988058a50b72e55' }), hAsync("input", Object.assign({ key: 'ec52abcad54909f6c0af0b7957765b8cadb26a10', 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) }))), 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) }, hAsync("span", { class: "sr-only", id: item.id }, this.accessibleRemoveLabel.replace("{FILE_NAME}", item.file.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));
4750
+ return (hAsync(Host, { key: '30047bbc26c5d51b5e24a6e8ce33690b31fe3b1d', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, hAsync("div", { key: 'f99d4ee71f9126f9fc72acb6adf2ea964410d738', class: FormFileClass.area, ref: el => (this.areaRef = el) }, hAsync("slot", { key: 'a280d44c9b649aa8ccdc48356a0173e183dbd3ee' }), hAsync("input", Object.assign({ key: '2abf8d4c1f0d9086fbe63d86f71c9cdc3e0867c3', 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) }))), 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) }, hAsync("span", { class: "sr-only", id: item.id }, this.accessibleRemoveLabel.replace("{FILE_NAME}", item.file.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));
4752
4751
  }
4753
4752
  onRemoveFileHandler(file) {
4754
4753
  const index = this.files.findIndex(item => item.id === file.id);
@@ -4814,7 +4813,7 @@ class GovFormFile {
4814
4813
  "$members$": {
4815
4814
  "expanded": [4],
4816
4815
  "required": [4],
4817
- "disabled": [4],
4816
+ "disabled": [516],
4818
4817
  "resetAfterPick": [4, "reset-after-pick"],
4819
4818
  "ignoreFileDuplicationCheck": [4, "ignore-file-duplication-check"],
4820
4819
  "displayAttachments": [4, "display-attachments"],
@@ -4836,7 +4835,7 @@ class GovFormFile {
4836
4835
  },
4837
4836
  "$listeners$": undefined,
4838
4837
  "$lazyBundleId$": "-",
4839
- "$attrsToReflect$": []
4838
+ "$attrsToReflect$": [["disabled", "disabled"]]
4840
4839
  }; }
4841
4840
  }
4842
4841
 
@@ -5323,11 +5322,11 @@ class GovFormMultiSelect {
5323
5322
  });
5324
5323
  }
5325
5324
  render() {
5326
- return (hAsync(Host, { key: '8c36a19951ed5931adea3e023209e8c6b271a98f', class: FormMultiSelectClass.root, size: this.size }, hAsync("div", { key: '97ed4682166e9f9261bdde9f8e9261eb350f2a85', class: FormMultiSelectClass.wrap }, this.h.hasSlot('prefix') && hAsync("slot", { key: 'e49357d489985785acb2fd4917ec0eea02e420e4', name: "prefix" }), hAsync("gov-form-autocomplete", { key: '9aba6a6e6208107e62e916505e30f56a03707cf1', value: this.valueState, disabled: this.disabled, identifier: this.identifier || this.selectId, required: false, invalid: this.invalid, success: this.success, size: this.size, placeholder: this.placeholder, "message-empty": this.messageEmpty, "message-loading": this.messageLoading, ref: el => (this.autocompleteRef = el), minlength: 0, "aria-owns": this.listId }, this.success && hAsync("gov-icon", { key: '0ecf17afa6bef85ac0666e206b0d84bc63cdde2f', slot: "validation-icon", class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && hAsync("gov-icon", { key: '7573420027300e8951adb1bafe934dbafe5be4a4', slot: "validation-icon", class: "validation-icon", name: "exclamation-lg", type: "components" }), hAsync("gov-icon", { key: '461f2108ddd524153d5f684b0fea218913410737', slot: "icon-end", class: "arrow-icon", name: "chevron-down", type: "components" })), hAsync("select", Object.assign({ key: '61aad9d04d5ce5778f66c794d447e45f8d605492', hidden: true, class: 'hidden-select-list', "aria-hidden": toBoolAttr(true), multiple: true, 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: '6dda21eb97bab4a943d51f3f4d0593f7580740ed' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
5325
+ return (hAsync(Host, { key: '11352c6950674badb00870e18c17a031c81235df', class: FormMultiSelectClass.root, size: this.size }, hAsync("div", { key: 'edd74cbfbbf116700dfdcd7d33307c6416e2ad8c', class: FormMultiSelectClass.wrap }, this.h.hasSlot('prefix') && hAsync("slot", { key: '6aa65aa9875527890bfecb2a1e6c56b2eb9ce827', name: "prefix" }), hAsync("gov-form-autocomplete", { key: '60c5065ccb09073c2e1ca17c329f980cda52761f', value: this.valueState, disabled: this.disabled, identifier: this.identifier || this.selectId, required: false, invalid: this.invalid, success: this.success, size: this.size, placeholder: this.placeholder, "message-empty": this.messageEmpty, "message-loading": this.messageLoading, ref: el => (this.autocompleteRef = el), minlength: 0, "aria-owns": this.listId }, this.success && hAsync("gov-icon", { key: '907aac2768a9bd5384326377fcad9e90795ff170', slot: "validation-icon", class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && hAsync("gov-icon", { key: '7294050c2910097d6a316b37fdc1f571f3450f8a', slot: "validation-icon", class: "validation-icon", name: "exclamation-lg", type: "components" }), hAsync("gov-icon", { key: 'ac4474f517f8124831c22055e69d0eb45e6e2d4f', slot: "icon-end", class: "arrow-icon", name: "chevron-down", type: "components" })), hAsync("select", Object.assign({ key: '9437199c079132409bdbf0f932605474b885781e', hidden: true, class: 'hidden-select-list', "aria-hidden": toBoolAttr(true), multiple: true, 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: '59f4071b90b40ed6291b9180b5caa29101b5e95a' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
5327
5326
  var _a;
5328
5327
  const selectedOption = this.selectedValueIndex(option.value);
5329
5328
  return (hAsync("option", { value: option.value, selected: selectedOption > -1, disabled: option === null || option === void 0 ? void 0 : option.disabled }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value));
5330
- })), this.h.hasSlot('sufix') && hAsync("slot", { key: '91c91489ce3167f9e0e9eda66e1fab3553750472', name: "sufix" })), this.hideSelectedList === false ? (hAsync("ul", { role: "listbox", id: this.listId, class: FormMultiSelectClass.list }, Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {
5329
+ })), this.h.hasSlot('sufix') && hAsync("slot", { key: '0620c4ab3b9d9d122456f91cc3dd5cefd85e8bba', name: "sufix" })), this.hideSelectedList === false ? (hAsync("ul", { role: "listbox", id: this.listId, class: FormMultiSelectClass.list }, Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {
5331
5330
  var _a, _b;
5332
5331
  const option = this.getOption(selected);
5333
5332
  if (!option)
@@ -5405,7 +5404,7 @@ class GovFormMultiSelect {
5405
5404
  "name": [1],
5406
5405
  "hideSelectedList": [4, "hide-selected-list"],
5407
5406
  "required": [4],
5408
- "disabled": [4],
5407
+ "disabled": [516],
5409
5408
  "invalid": [516],
5410
5409
  "success": [4],
5411
5410
  "messageEmpty": [1, "message-empty"],
@@ -5421,7 +5420,7 @@ class GovFormMultiSelect {
5421
5420
  },
5422
5421
  "$listeners$": undefined,
5423
5422
  "$lazyBundleId$": "-",
5424
- "$attrsToReflect$": [["value", "value"], ["options", "options"], ["invalid", "invalid"]]
5423
+ "$attrsToReflect$": [["value", "value"], ["options", "options"], ["disabled", "disabled"], ["invalid", "invalid"]]
5425
5424
  }; }
5426
5425
  }
5427
5426
 
@@ -5568,7 +5567,7 @@ class GovFormRadio {
5568
5567
  "noLabel": [4, "no-label"],
5569
5568
  "checked": [1540],
5570
5569
  "required": [4],
5571
- "disabled": [4],
5570
+ "disabled": [516],
5572
5571
  "name": [1],
5573
5572
  "size": [1],
5574
5573
  "identifier": [1],
@@ -5578,7 +5577,7 @@ class GovFormRadio {
5578
5577
  },
5579
5578
  "$listeners$": undefined,
5580
5579
  "$lazyBundleId$": "-",
5581
- "$attrsToReflect$": [["checked", "checked"]]
5580
+ "$attrsToReflect$": [["checked", "checked"], ["disabled", "disabled"]]
5582
5581
  }; }
5583
5582
  }
5584
5583
 
@@ -5756,10 +5755,10 @@ class GovFormSelect {
5756
5755
  });
5757
5756
  }
5758
5757
  render() {
5759
- return (hAsync(Host, { key: '2eaa50cdab69d7ea87e86b33a69728b735f24e89', class: FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && hAsync("slot", { key: 'ef57fa4df7417a583738b7863af7b8903dc92ced', name: "prefix" }), hAsync("span", { key: 'f7c8e78bab4ddfe8315ec641b99077d963c3023f', class: "element" }, hAsync("select", Object.assign({ key: '1e7502585fc0c59ad024ad6607ae8f8b4461e1ea', 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: '2d657c57207d93d0054f410f274a6b9e163c6a79' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
5758
+ return (hAsync(Host, { key: 'b403868aaf854a9dc40f68cf093a8867cd20c4c4', class: FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && hAsync("slot", { key: 'de3d0cb80bd3b33a9b23b60f91739f0e23fdab4a', name: "prefix" }), hAsync("span", { key: 'c501806b949bc6e1314922fce0ce088180fdebba', class: "element" }, hAsync("select", Object.assign({ key: '7c1a04a65e69edda672d70b101b430d3c6105543', 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: '0bd46e42f5e5267366088b9902a5ef8c6aa99064' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
5760
5759
  var _a;
5761
5760
  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));
5762
- })), this.success && hAsync("gov-icon", { key: 'cec630f5f88b883d6873d3f8fd4157d56af540ca', class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && hAsync("gov-icon", { key: 'd079d76edc2e8db801d8ff840af595a67c9db8e5', class: "validation-icon", name: "exclamation-lg", type: "components" }), hAsync("gov-icon", { key: '349bc31354f24d96a279ea9f0967b416b8357af9', class: "arrow-icon", name: "chevron-down", type: "components" })), this.h.hasSlot('sufix') && hAsync("slot", { key: '3d45a1c71ce49f8a207144b8d72401d593f7d712', name: "sufix" })));
5761
+ })), this.success && hAsync("gov-icon", { key: '8e919bd8dd122618b2b0233c7b14c8def277540f', class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && hAsync("gov-icon", { key: '78610616be9cdf65e9bbc1359e27bc9003c8fc34', class: "validation-icon", name: "exclamation-lg", type: "components" }), hAsync("gov-icon", { key: '56c1ca03e5b23154a93056bba8758553a5c93f30', class: "arrow-icon", name: "chevron-down", type: "components" })), this.h.hasSlot('sufix') && hAsync("slot", { key: 'f3e3f1416d15a34402d446e6a72d0607cc8d90fc', name: "sufix" })));
5763
5762
  }
5764
5763
  onFocusHandler(e) {
5765
5764
  this.focused = true;
@@ -5817,8 +5816,8 @@ class GovFormSelect {
5817
5816
  "size": [1],
5818
5817
  "name": [1],
5819
5818
  "required": [4],
5820
- "success": [4],
5821
- "disabled": [4],
5819
+ "success": [516],
5820
+ "disabled": [516],
5822
5821
  "invalid": [4],
5823
5822
  "focused": [32],
5824
5823
  "optionsState": [32],
@@ -5828,7 +5827,7 @@ class GovFormSelect {
5828
5827
  },
5829
5828
  "$listeners$": undefined,
5830
5829
  "$lazyBundleId$": "-",
5831
- "$attrsToReflect$": [["value", "value"], ["options", "options"]]
5830
+ "$attrsToReflect$": [["value", "value"], ["options", "options"], ["success", "success"], ["disabled", "disabled"]]
5832
5831
  }; }
5833
5832
  }
5834
5833
 
@@ -5950,9 +5949,9 @@ class GovFormSwitch {
5950
5949
  "noLabel": [4, "no-label"],
5951
5950
  "checked": [1540],
5952
5951
  "required": [4],
5953
- "disabled": [4],
5952
+ "disabled": [516],
5954
5953
  "name": [1],
5955
- "size": [1],
5954
+ "size": [513],
5956
5955
  "identifier": [1],
5957
5956
  "invalid": [4],
5958
5957
  "inheritedAttributes": [32],
@@ -5960,7 +5959,7 @@ class GovFormSwitch {
5960
5959
  },
5961
5960
  "$listeners$": undefined,
5962
5961
  "$lazyBundleId$": "-",
5963
- "$attrsToReflect$": [["checked", "checked"]]
5962
+ "$attrsToReflect$": [["checked", "checked"], ["disabled", "disabled"], ["size", "size"]]
5964
5963
  }; }
5965
5964
  }
5966
5965
 
@@ -6050,7 +6049,7 @@ const IconClass = {
6050
6049
  holder: 'gov-icon__holder',
6051
6050
  };
6052
6051
 
6053
- const version = "4.1.0";
6052
+ const version = "4.1.1";
6054
6053
 
6055
6054
  const dsVersion = () => {
6056
6055
  return version;
@@ -6085,6 +6084,51 @@ async function fetchIcon({ name, type }) {
6085
6084
  return path;
6086
6085
  }
6087
6086
 
6087
+ const setCookie = (name, value, days) => {
6088
+ if (!isWindow) {
6089
+ return;
6090
+ }
6091
+ let expires = "";
6092
+ if (days) {
6093
+ const date = new Date();
6094
+ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
6095
+ expires = "; expires=" + date.toUTCString();
6096
+ }
6097
+ document.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;
6098
+ };
6099
+ const getCookie = (name) => {
6100
+ if (!isWindow) {
6101
+ return null;
6102
+ }
6103
+ const nameEQ = name + "=";
6104
+ const cookies = document.cookie.split(';');
6105
+ for (let i = 0; i < cookies.length; i++) {
6106
+ let cookie = cookies[i].trim();
6107
+ if (cookie.startsWith(nameEQ)) {
6108
+ return decodeURIComponent(cookie.substring(nameEQ.length));
6109
+ }
6110
+ }
6111
+ return null;
6112
+ };
6113
+ const isValidSVG = (svgContent) => {
6114
+ try {
6115
+ const parser = new DOMParser();
6116
+ const doc = parser.parseFromString(svgContent, "image/svg+xml");
6117
+ const parseError = doc.querySelector("parsererror");
6118
+ if (parseError) {
6119
+ return false;
6120
+ }
6121
+ const svgElement = doc.documentElement;
6122
+ if (svgElement.tagName.toLowerCase() !== "svg") {
6123
+ return false;
6124
+ }
6125
+ return true;
6126
+ }
6127
+ catch (error) {
6128
+ return false;
6129
+ }
6130
+ };
6131
+
6088
6132
  class GovIcon {
6089
6133
  constructor(hostRef) {
6090
6134
  registerInstance(this, hostRef);
@@ -6140,7 +6184,7 @@ class GovIcon {
6140
6184
  try {
6141
6185
  const { name, type } = this;
6142
6186
  const data = await fetchIcon({ name, type });
6143
- const isValid = isString(data) && data.indexOf('svg') > -1;
6187
+ const isValid = isValidSVG(data);
6144
6188
  this.host.innerHTML = isValid ? data : null;
6145
6189
  }
6146
6190
  catch (e) {
@@ -7390,33 +7434,6 @@ var ThemeList;
7390
7434
  ThemeList["dark"] = "dark";
7391
7435
  })(ThemeList || (ThemeList = {}));
7392
7436
 
7393
- const setCookie = (name, value, days) => {
7394
- if (!isWindow) {
7395
- return;
7396
- }
7397
- let expires = "";
7398
- if (days) {
7399
- const date = new Date();
7400
- date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
7401
- expires = "; expires=" + date.toUTCString();
7402
- }
7403
- document.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;
7404
- };
7405
- const getCookie = (name) => {
7406
- if (!isWindow) {
7407
- return null;
7408
- }
7409
- const nameEQ = name + "=";
7410
- const cookies = document.cookie.split(';');
7411
- for (let i = 0; i < cookies.length; i++) {
7412
- let cookie = cookies[i].trim();
7413
- if (cookie.startsWith(nameEQ)) {
7414
- return decodeURIComponent(cookie.substring(nameEQ.length));
7415
- }
7416
- }
7417
- return null;
7418
- };
7419
-
7420
7437
  class GovThemeSwitch {
7421
7438
  constructor(hostRef) {
7422
7439
  registerInstance(this, hostRef);