@gov-design-system-ce/components 4.0.1 → 4.0.3

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 (374) hide show
  1. package/dist/cjs/gov-accordion-item.cjs.entry.js +4 -3
  2. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  3. package/dist/cjs/gov-accordion.cjs.entry.js +4 -4
  4. package/dist/cjs/gov-attachments_3.cjs.entry.js +4 -4
  5. package/dist/cjs/gov-backdrop.cjs.entry.js +3 -3
  6. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
  7. package/dist/cjs/gov-button.cjs.entry.js +4 -4
  8. package/dist/cjs/gov-card.cjs.entry.js +3 -3
  9. package/dist/cjs/gov-chip.cjs.entry.js +4 -3
  10. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  11. package/dist/cjs/gov-control-group.cjs.entry.js +3 -2
  12. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  13. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -2
  14. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gov-form-checkbox.cjs.entry.js +4 -5
  16. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-form-file.cjs.entry.js +3 -4
  18. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  19. package/dist/cjs/gov-form-group.cjs.entry.js +3 -2
  20. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  21. package/dist/cjs/gov-form-input.cjs.entry.js +4 -5
  22. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
  23. package/dist/cjs/gov-form-multi-select.cjs.entry.js +4 -5
  24. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  25. package/dist/cjs/gov-form-radio.cjs.entry.js +4 -5
  26. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  27. package/dist/cjs/gov-form-select.cjs.entry.js +4 -5
  28. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  29. package/dist/cjs/gov-form-switch.cjs.entry.js +4 -5
  30. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  31. package/dist/cjs/gov-icon.cjs.entry.js +2 -2
  32. package/dist/cjs/gov-infobar.cjs.entry.js +4 -4
  33. package/dist/cjs/gov-message.cjs.entry.js +3 -2
  34. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  35. package/dist/cjs/gov-modal.cjs.entry.js +3 -3
  36. package/dist/cjs/gov-nav-item.cjs.entry.js +3 -1
  37. package/dist/cjs/gov-nav-item.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gov-nav.cjs.entry.js +3 -3
  39. package/dist/cjs/gov-pagination.cjs.entry.js +4 -4
  40. package/dist/cjs/gov-prompt.cjs.entry.js +3 -3
  41. package/dist/cjs/gov-side-nav-item.cjs.entry.js +3 -1
  42. package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -1
  43. package/dist/cjs/gov-side-nav.cjs.entry.js +3 -3
  44. package/dist/cjs/gov-skeleton.cjs.entry.js +4 -4
  45. package/dist/cjs/gov-spacer.cjs.entry.js +3 -2
  46. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  47. package/dist/cjs/gov-statsbar-item.cjs.entry.js +3 -2
  48. package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-statsbar.cjs.entry.js +3 -2
  50. package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-stepper-item.cjs.entry.js +4 -3
  52. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-stepper.cjs.entry.js +4 -3
  54. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  55. package/dist/cjs/gov-tabs.cjs.entry.js +4 -4
  56. package/dist/cjs/gov-tag.cjs.entry.js +4 -3
  57. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  58. package/dist/cjs/gov-toast.cjs.entry.js +3 -2
  59. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  60. package/dist/cjs/gov-tooltip.cjs.entry.js +4 -3
  61. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  62. package/dist/cjs/gov-wizard-item.cjs.entry.js +4 -3
  63. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  64. package/dist/cjs/gov-wizard.cjs.entry.js +4 -4
  65. package/dist/cjs/{gov.log-0c9dca27.js → gov.log-b842920d.js} +12 -4
  66. package/dist/cjs/gov.log-b842920d.js.map +1 -0
  67. package/dist/cjs/{props-5f82e4c0.js → props-d6146e54.js} +2 -2
  68. package/dist/cjs/{props-5f82e4c0.js.map → props-d6146e54.js.map} +1 -1
  69. package/dist/cjs/{wcag-ebd590c0.js → wcag-e6257f27.js} +3 -3
  70. package/dist/cjs/{wcag-ebd590c0.js.map → wcag-e6257f27.js.map} +1 -1
  71. package/dist/cjs/{win-9d1a8a53.js → win-5521073d.js} +10 -1
  72. package/dist/cjs/win-5521073d.js.map +1 -0
  73. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +0 -1
  74. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  75. package/dist/collection/components/gov-form/file/gov-form-file.js +0 -1
  76. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  77. package/dist/collection/components/gov-form/input/gov-form-input.js +0 -1
  78. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  79. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +0 -1
  80. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  81. package/dist/collection/components/gov-form/radio/gov-form-radio.js +0 -1
  82. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  83. package/dist/collection/components/gov-form/select/gov-form-select.js +0 -1
  84. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  85. package/dist/collection/components/gov-form/switch/gov-form-switch.js +0 -1
  86. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  87. package/dist/collection/helpers/Dom/win.js +6 -0
  88. package/dist/collection/helpers/Dom/win.js.map +1 -1
  89. package/dist/collection/helpers/Log/gov.log.js +10 -3
  90. package/dist/collection/helpers/Log/gov.log.js.map +1 -1
  91. package/dist/components/gov-accordion-item.js +1 -1
  92. package/dist/components/gov-accordion.js +1 -1
  93. package/dist/components/gov-attachments-item.js +1 -1
  94. package/dist/components/gov-attachments.js +1 -1
  95. package/dist/components/gov-backdrop.js +1 -1
  96. package/dist/components/gov-breadcrumbs.js +1 -1
  97. package/dist/components/gov-button.js +1 -1
  98. package/dist/components/gov-card.js +1 -1
  99. package/dist/components/gov-chip.js +1 -1
  100. package/dist/components/gov-control-group.js +1 -1
  101. package/dist/components/gov-form-autocomplete.js +1 -1
  102. package/dist/components/gov-form-checkbox.js +1 -1
  103. package/dist/components/gov-form-checkbox.js.map +1 -1
  104. package/dist/components/gov-form-file.js +1 -1
  105. package/dist/components/gov-form-file.js.map +1 -1
  106. package/dist/components/gov-form-group.js +1 -1
  107. package/dist/components/gov-form-input.js +1 -1
  108. package/dist/components/gov-form-message.js +1 -1
  109. package/dist/components/gov-form-multi-select.js +1 -1
  110. package/dist/components/gov-form-multi-select.js.map +1 -1
  111. package/dist/components/gov-form-radio.js +1 -1
  112. package/dist/components/gov-form-radio.js.map +1 -1
  113. package/dist/components/gov-form-select.js +1 -1
  114. package/dist/components/gov-form-switch.js +1 -1
  115. package/dist/components/gov-form-switch.js.map +1 -1
  116. package/dist/components/gov-icon.js +1 -1
  117. package/dist/components/gov-infobar.js +1 -1
  118. package/dist/components/gov-loading.js +1 -1
  119. package/dist/components/gov-message.js +1 -1
  120. package/dist/components/gov-modal.js +1 -1
  121. package/dist/components/gov-nav-item.js +1 -1
  122. package/dist/components/gov-nav.js +1 -1
  123. package/dist/components/gov-pagination.js +1 -1
  124. package/dist/components/gov-prompt.js +1 -1
  125. package/dist/components/gov-side-nav-item.js +1 -1
  126. package/dist/components/gov-side-nav.js +1 -1
  127. package/dist/components/gov-skeleton.js +1 -1
  128. package/dist/components/gov-spacer.js +1 -1
  129. package/dist/components/gov-statsbar-item.js +1 -1
  130. package/dist/components/gov-statsbar.js +1 -1
  131. package/dist/components/gov-stepper-item.js +1 -1
  132. package/dist/components/gov-stepper.js +1 -1
  133. package/dist/components/gov-tabs.js +1 -1
  134. package/dist/components/gov-tag.js +1 -1
  135. package/dist/components/gov-tile.js +1 -1
  136. package/dist/components/gov-toast.js +1 -1
  137. package/dist/components/gov-tooltip-content.js +1 -1
  138. package/dist/components/gov-tooltip.js +1 -1
  139. package/dist/components/gov-wizard-item.js +1 -1
  140. package/dist/components/gov-wizard.js +1 -1
  141. package/dist/components/p-003e6cca.js +2 -0
  142. package/dist/components/p-003e6cca.js.map +1 -0
  143. package/dist/components/{p-1879b7a6.js → p-12121873.js} +2 -2
  144. package/dist/components/{p-aaf03357.js → p-47acb1f6.js} +2 -2
  145. package/dist/components/{p-00b7c4f5.js → p-4ff831e3.js} +2 -2
  146. package/dist/components/{p-530fbb0a.js → p-570803ab.js} +2 -2
  147. package/dist/components/{p-fc48702e.js → p-5e5d0651.js} +2 -2
  148. package/dist/components/p-7f2c9830.js +2 -0
  149. package/dist/components/p-7f2c9830.js.map +1 -0
  150. package/dist/components/{p-a9bd5396.js → p-8c43658a.js} +2 -2
  151. package/dist/components/{p-26dfbba1.js → p-9795ad94.js} +2 -2
  152. package/dist/components/{p-b293294b.js → p-b3fcc369.js} +2 -2
  153. package/dist/components/p-b3fcc369.js.map +1 -0
  154. package/dist/components/p-b526e440.js +2 -0
  155. package/dist/components/{p-22cd88f7.js.map → p-b526e440.js.map} +1 -1
  156. package/dist/components/{p-c7eeb3fa.js → p-dcb056f7.js} +2 -2
  157. package/dist/components/p-dcb056f7.js.map +1 -0
  158. package/dist/components/{p-26acf964.js → p-dcb5fb35.js} +2 -2
  159. package/dist/components/{p-01fd4652.js → p-f084f41a.js} +2 -2
  160. package/dist/core/core.esm.js +1 -1
  161. package/dist/core/p-003e6cca.js +2 -0
  162. package/dist/core/p-003e6cca.js.map +1 -0
  163. package/dist/core/{p-ee35ca3f.entry.js → p-044f4c35.entry.js} +2 -2
  164. package/dist/core/{p-acb40ea2.entry.js → p-1fee1753.entry.js} +2 -2
  165. package/dist/core/{p-f4a6a339.entry.js → p-2712444e.entry.js} +2 -2
  166. package/dist/core/{p-79ca1b62.entry.js → p-2969eb69.entry.js} +2 -2
  167. package/dist/core/p-3c12c766.entry.js +2 -0
  168. package/dist/core/{p-243b1ccc.entry.js.map → p-3c12c766.entry.js.map} +1 -1
  169. package/dist/core/p-41c18f64.entry.js +2 -0
  170. package/dist/core/{p-31b93317.entry.js.map → p-41c18f64.entry.js.map} +1 -1
  171. package/dist/core/{p-fc81b896.entry.js → p-497c90ea.entry.js} +2 -2
  172. package/dist/core/{p-093160bb.entry.js → p-4a235ef5.entry.js} +2 -2
  173. package/dist/core/p-60963ed7.entry.js +2 -0
  174. package/dist/core/{p-2c9a4d08.entry.js.map → p-60963ed7.entry.js.map} +1 -1
  175. package/dist/core/p-6dc942b8.entry.js +2 -0
  176. package/dist/core/{p-9aeb4282.entry.js.map → p-6dc942b8.entry.js.map} +1 -1
  177. package/dist/core/p-71d9ad24.entry.js +2 -0
  178. package/dist/core/{p-459a71d9.entry.js.map → p-71d9ad24.entry.js.map} +1 -1
  179. package/dist/core/p-73b7585b.entry.js +2 -0
  180. package/dist/core/{p-ecc8cc47.entry.js.map → p-73b7585b.entry.js.map} +1 -1
  181. package/dist/core/{p-faabd332.js → p-7724b535.js} +2 -2
  182. package/dist/core/p-78942f76.entry.js +2 -0
  183. package/dist/core/{p-a7d895cb.entry.js.map → p-78942f76.entry.js.map} +1 -1
  184. package/dist/core/p-7d89e238.entry.js +2 -0
  185. package/dist/core/{p-ce586e19.entry.js.map → p-7d89e238.entry.js.map} +1 -1
  186. package/dist/core/p-7f2c9830.js +2 -0
  187. package/dist/core/p-7f2c9830.js.map +1 -0
  188. package/dist/core/p-83e998d8.entry.js +2 -0
  189. package/dist/core/{p-877121d4.entry.js.map → p-83e998d8.entry.js.map} +1 -1
  190. package/dist/core/p-8b6c0908.entry.js +2 -0
  191. package/dist/core/{p-18396341.entry.js.map → p-8b6c0908.entry.js.map} +1 -1
  192. package/dist/core/{p-3aa4cf18.entry.js → p-92af05f2.entry.js} +2 -2
  193. package/dist/core/p-96d141a3.entry.js +2 -0
  194. package/dist/core/{p-44f4daa3.entry.js.map → p-96d141a3.entry.js.map} +1 -1
  195. package/dist/core/{p-28c83bdf.entry.js → p-9c6699d6.entry.js} +2 -2
  196. package/dist/core/p-9c6699d6.entry.js.map +1 -0
  197. package/dist/core/{p-13942637.entry.js → p-a63bb91e.entry.js} +2 -2
  198. package/dist/core/p-a6b6dc73.entry.js +2 -0
  199. package/dist/core/{p-1fd3d109.entry.js.map → p-a6b6dc73.entry.js.map} +1 -1
  200. package/dist/core/p-ac5e5b2c.entry.js +2 -0
  201. package/dist/core/{p-c44d44df.entry.js.map → p-ac5e5b2c.entry.js.map} +1 -1
  202. package/dist/core/{p-26921fac.entry.js → p-b1184db4.entry.js} +2 -2
  203. package/dist/core/p-b1184db4.entry.js.map +1 -0
  204. package/dist/core/p-b127c8a8.entry.js +2 -0
  205. package/dist/core/{p-bd763705.entry.js.map → p-b127c8a8.entry.js.map} +1 -1
  206. package/dist/core/{p-6b1c11ba.entry.js → p-b4a59c79.entry.js} +2 -2
  207. package/dist/core/p-b4ab0d15.entry.js +2 -0
  208. package/dist/core/{p-1730ac7a.entry.js.map → p-b4ab0d15.entry.js.map} +1 -1
  209. package/dist/core/p-b580666b.entry.js +2 -0
  210. package/dist/core/{p-47d63996.entry.js.map → p-b580666b.entry.js.map} +1 -1
  211. package/dist/core/{p-af1433f7.entry.js → p-b5e1ee46.entry.js} +2 -2
  212. package/dist/core/{p-ba7cbd7f.entry.js → p-b7d23697.entry.js} +2 -2
  213. package/dist/core/p-b7d23697.entry.js.map +1 -0
  214. package/dist/core/{p-2f208784.entry.js → p-c8a2a98e.entry.js} +2 -2
  215. package/dist/core/p-c8a2a98e.entry.js.map +1 -0
  216. package/dist/core/p-ccf73a1a.entry.js +2 -0
  217. package/dist/core/{p-d1a3e571.entry.js.map → p-ccf73a1a.entry.js.map} +1 -1
  218. package/dist/core/{p-7cd73b1e.entry.js → p-d69599bc.entry.js} +2 -2
  219. package/dist/core/p-d69599bc.entry.js.map +1 -0
  220. package/dist/core/{p-26acf964.js → p-dcb5fb35.js} +2 -2
  221. package/dist/core/p-de3429ab.entry.js +2 -0
  222. package/dist/core/{p-878741b6.entry.js.map → p-de3429ab.entry.js.map} +1 -1
  223. package/dist/core/p-ee4c58e3.entry.js +2 -0
  224. package/dist/core/{p-e4f703d3.entry.js.map → p-ee4c58e3.entry.js.map} +1 -1
  225. package/dist/core/{p-9d10131d.entry.js → p-f1227928.entry.js} +2 -2
  226. package/dist/core/{p-d4d59523.entry.js → p-f29b0193.entry.js} +2 -2
  227. package/dist/core/p-f636a1ca.entry.js +2 -0
  228. package/dist/core/{p-bd1855f7.entry.js.map → p-f636a1ca.entry.js.map} +1 -1
  229. package/dist/core/p-fb51d693.entry.js +2 -0
  230. package/dist/core/{p-3b45ecb0.entry.js.map → p-fb51d693.entry.js.map} +1 -1
  231. package/dist/core/{p-cef10fe5.entry.js → p-fc8a29e9.entry.js} +2 -2
  232. package/dist/core/{p-cef10fe5.entry.js.map → p-fc8a29e9.entry.js.map} +1 -1
  233. package/dist/core/{p-0950ca8d.entry.js → p-fd4b0f54.entry.js} +2 -2
  234. package/dist/core/p-fd4b0f54.entry.js.map +1 -0
  235. package/dist/esm/gov-accordion-item.entry.js +4 -3
  236. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  237. package/dist/esm/gov-accordion.entry.js +4 -4
  238. package/dist/esm/gov-attachments_3.entry.js +4 -4
  239. package/dist/esm/gov-backdrop.entry.js +3 -3
  240. package/dist/esm/gov-breadcrumbs.entry.js +3 -3
  241. package/dist/esm/gov-button.entry.js +4 -4
  242. package/dist/esm/gov-card.entry.js +3 -3
  243. package/dist/esm/gov-chip.entry.js +4 -3
  244. package/dist/esm/gov-chip.entry.js.map +1 -1
  245. package/dist/esm/gov-control-group.entry.js +3 -2
  246. package/dist/esm/gov-control-group.entry.js.map +1 -1
  247. package/dist/esm/gov-form-autocomplete.entry.js +3 -2
  248. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  249. package/dist/esm/gov-form-checkbox.entry.js +4 -5
  250. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  251. package/dist/esm/gov-form-file.entry.js +3 -4
  252. package/dist/esm/gov-form-file.entry.js.map +1 -1
  253. package/dist/esm/gov-form-group.entry.js +3 -2
  254. package/dist/esm/gov-form-group.entry.js.map +1 -1
  255. package/dist/esm/gov-form-input.entry.js +4 -5
  256. package/dist/esm/gov-form-input.entry.js.map +1 -1
  257. package/dist/esm/gov-form-multi-select.entry.js +4 -5
  258. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  259. package/dist/esm/gov-form-radio.entry.js +4 -5
  260. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  261. package/dist/esm/gov-form-select.entry.js +4 -5
  262. package/dist/esm/gov-form-select.entry.js.map +1 -1
  263. package/dist/esm/gov-form-switch.entry.js +4 -5
  264. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  265. package/dist/esm/gov-icon.entry.js +2 -2
  266. package/dist/esm/gov-infobar.entry.js +4 -4
  267. package/dist/esm/gov-message.entry.js +3 -2
  268. package/dist/esm/gov-message.entry.js.map +1 -1
  269. package/dist/esm/gov-modal.entry.js +3 -3
  270. package/dist/esm/gov-nav-item.entry.js +3 -1
  271. package/dist/esm/gov-nav-item.entry.js.map +1 -1
  272. package/dist/esm/gov-nav.entry.js +3 -3
  273. package/dist/esm/gov-pagination.entry.js +4 -4
  274. package/dist/esm/gov-prompt.entry.js +3 -3
  275. package/dist/esm/gov-side-nav-item.entry.js +3 -1
  276. package/dist/esm/gov-side-nav-item.entry.js.map +1 -1
  277. package/dist/esm/gov-side-nav.entry.js +3 -3
  278. package/dist/esm/gov-skeleton.entry.js +4 -4
  279. package/dist/esm/gov-spacer.entry.js +3 -2
  280. package/dist/esm/gov-spacer.entry.js.map +1 -1
  281. package/dist/esm/gov-statsbar-item.entry.js +3 -2
  282. package/dist/esm/gov-statsbar-item.entry.js.map +1 -1
  283. package/dist/esm/gov-statsbar.entry.js +3 -2
  284. package/dist/esm/gov-statsbar.entry.js.map +1 -1
  285. package/dist/esm/gov-stepper-item.entry.js +4 -3
  286. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  287. package/dist/esm/gov-stepper.entry.js +4 -3
  288. package/dist/esm/gov-stepper.entry.js.map +1 -1
  289. package/dist/esm/gov-tabs.entry.js +4 -4
  290. package/dist/esm/gov-tag.entry.js +4 -3
  291. package/dist/esm/gov-tag.entry.js.map +1 -1
  292. package/dist/esm/gov-toast.entry.js +3 -2
  293. package/dist/esm/gov-toast.entry.js.map +1 -1
  294. package/dist/esm/gov-tooltip.entry.js +4 -3
  295. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  296. package/dist/esm/gov-wizard-item.entry.js +4 -3
  297. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  298. package/dist/esm/gov-wizard.entry.js +4 -4
  299. package/dist/esm/{gov.log-af905420.js → gov.log-49da0221.js} +12 -4
  300. package/dist/esm/gov.log-49da0221.js.map +1 -0
  301. package/dist/esm/{props-789f7529.js → props-a85d9c89.js} +2 -2
  302. package/dist/esm/{props-789f7529.js.map → props-a85d9c89.js.map} +1 -1
  303. package/dist/esm/{wcag-b7b67e25.js → wcag-7d25e12b.js} +3 -3
  304. package/dist/esm/{wcag-b7b67e25.js.map → wcag-7d25e12b.js.map} +1 -1
  305. package/dist/esm/{win-0d231cca.js → win-1dbd3f5c.js} +8 -2
  306. package/dist/esm/win-1dbd3f5c.js.map +1 -0
  307. package/dist/hydrate/index.js +66 -61
  308. package/dist/types/helpers/Dom/win.d.ts +6 -0
  309. package/package.json +1 -1
  310. package/dist/cjs/gov.log-0c9dca27.js.map +0 -1
  311. package/dist/cjs/win-9d1a8a53.js.map +0 -1
  312. package/dist/components/p-22cd88f7.js +0 -2
  313. package/dist/components/p-561fa17b.js +0 -2
  314. package/dist/components/p-561fa17b.js.map +0 -1
  315. package/dist/components/p-b293294b.js.map +0 -1
  316. package/dist/components/p-c7eeb3fa.js.map +0 -1
  317. package/dist/components/p-d23e6972.js +0 -2
  318. package/dist/components/p-d23e6972.js.map +0 -1
  319. package/dist/core/p-0950ca8d.entry.js.map +0 -1
  320. package/dist/core/p-1730ac7a.entry.js +0 -2
  321. package/dist/core/p-18396341.entry.js +0 -2
  322. package/dist/core/p-1fd3d109.entry.js +0 -2
  323. package/dist/core/p-243b1ccc.entry.js +0 -2
  324. package/dist/core/p-26921fac.entry.js.map +0 -1
  325. package/dist/core/p-28c83bdf.entry.js.map +0 -1
  326. package/dist/core/p-2c9a4d08.entry.js +0 -2
  327. package/dist/core/p-2f208784.entry.js.map +0 -1
  328. package/dist/core/p-31b93317.entry.js +0 -2
  329. package/dist/core/p-3b45ecb0.entry.js +0 -2
  330. package/dist/core/p-44f4daa3.entry.js +0 -2
  331. package/dist/core/p-459a71d9.entry.js +0 -2
  332. package/dist/core/p-47d63996.entry.js +0 -2
  333. package/dist/core/p-561fa17b.js +0 -2
  334. package/dist/core/p-561fa17b.js.map +0 -1
  335. package/dist/core/p-7cd73b1e.entry.js.map +0 -1
  336. package/dist/core/p-877121d4.entry.js +0 -2
  337. package/dist/core/p-878741b6.entry.js +0 -2
  338. package/dist/core/p-9aeb4282.entry.js +0 -2
  339. package/dist/core/p-a7d895cb.entry.js +0 -2
  340. package/dist/core/p-ba7cbd7f.entry.js.map +0 -1
  341. package/dist/core/p-bd1855f7.entry.js +0 -2
  342. package/dist/core/p-bd763705.entry.js +0 -2
  343. package/dist/core/p-c44d44df.entry.js +0 -2
  344. package/dist/core/p-ce586e19.entry.js +0 -2
  345. package/dist/core/p-d1a3e571.entry.js +0 -2
  346. package/dist/core/p-d23e6972.js +0 -2
  347. package/dist/core/p-d23e6972.js.map +0 -1
  348. package/dist/core/p-e4f703d3.entry.js +0 -2
  349. package/dist/core/p-ecc8cc47.entry.js +0 -2
  350. package/dist/esm/gov.log-af905420.js.map +0 -1
  351. package/dist/esm/win-0d231cca.js.map +0 -1
  352. /package/dist/components/{p-1879b7a6.js.map → p-12121873.js.map} +0 -0
  353. /package/dist/components/{p-aaf03357.js.map → p-47acb1f6.js.map} +0 -0
  354. /package/dist/components/{p-00b7c4f5.js.map → p-4ff831e3.js.map} +0 -0
  355. /package/dist/components/{p-530fbb0a.js.map → p-570803ab.js.map} +0 -0
  356. /package/dist/components/{p-fc48702e.js.map → p-5e5d0651.js.map} +0 -0
  357. /package/dist/components/{p-a9bd5396.js.map → p-8c43658a.js.map} +0 -0
  358. /package/dist/components/{p-26dfbba1.js.map → p-9795ad94.js.map} +0 -0
  359. /package/dist/components/{p-26acf964.js.map → p-dcb5fb35.js.map} +0 -0
  360. /package/dist/components/{p-01fd4652.js.map → p-f084f41a.js.map} +0 -0
  361. /package/dist/core/{p-ee35ca3f.entry.js.map → p-044f4c35.entry.js.map} +0 -0
  362. /package/dist/core/{p-acb40ea2.entry.js.map → p-1fee1753.entry.js.map} +0 -0
  363. /package/dist/core/{p-f4a6a339.entry.js.map → p-2712444e.entry.js.map} +0 -0
  364. /package/dist/core/{p-79ca1b62.entry.js.map → p-2969eb69.entry.js.map} +0 -0
  365. /package/dist/core/{p-fc81b896.entry.js.map → p-497c90ea.entry.js.map} +0 -0
  366. /package/dist/core/{p-093160bb.entry.js.map → p-4a235ef5.entry.js.map} +0 -0
  367. /package/dist/core/{p-faabd332.js.map → p-7724b535.js.map} +0 -0
  368. /package/dist/core/{p-3aa4cf18.entry.js.map → p-92af05f2.entry.js.map} +0 -0
  369. /package/dist/core/{p-13942637.entry.js.map → p-a63bb91e.entry.js.map} +0 -0
  370. /package/dist/core/{p-6b1c11ba.entry.js.map → p-b4a59c79.entry.js.map} +0 -0
  371. /package/dist/core/{p-af1433f7.entry.js.map → p-b5e1ee46.entry.js.map} +0 -0
  372. /package/dist/core/{p-26acf964.js.map → p-dcb5fb35.js.map} +0 -0
  373. /package/dist/core/{p-9d10131d.entry.js.map → p-f1227928.entry.js.map} +0 -0
  374. /package/dist/core/{p-d4d59523.entry.js.map → p-f29b0193.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"gov-wizard-item.entry.js","mappings":";;;;;;;;;;;AAAA,MAAM,gBAAgB,GAAG,wrSAAwrS;;ACUjtS,IAAK,IAGJ;AAHD,WAAK,IAAI;EACR,mBAAW,CAAA;EACX,yBAAiB,CAAA;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;MAMY,aAAa;EAKzB;;;mBAUgD,SAAS;gBAIf,GAAG;;uBAQL,KAAK;;;oBAYR,KAAK;sBAIsB,KAAK;oBAIP,IAAI;IAzCjE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;IAC1C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAAA;GAC7C;EA6CO,aAAa,CAAC,QAAgB;IACrC,IAAI,CAAC,QAAQ,EAAE;MACd,WAAW,CAAC,IAAI,eAAe,CAAC,IAAI,iCAAiC,CAAC,CAAA;KACtE;GACD;EAGO,kBAAkB,CAAC,QAAgB;IAC1C,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;IAC9D,IAAI,QAAQ,EAAE;MACb,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;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AAe,CAAC,OAAO,iBAAe,aAAa,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,UAAU,IAC1G,eAAQ,CACH,CACN,CACK,EACP;GACD;;;;EAMD,MAAM,IAAI;IACT,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;IACtB,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMM,MAAM,KAAK;IACjB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;IACvB,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMM,MAAM,MAAM;IAClB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAA;IAClC,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMM,MAAM,YAAY;IACxB,OAAO,IAAI,CAAC,UAAU,CAAA;GACtB;;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-wizard/gov-wizard-item.scss?tag=gov-wizard-item","../../../packages/core/src/components/gov-wizard/gov-wizard-item.tsx"],"sourcesContent":["/*\n * Wizard - Item\n */\n\n@import \"../gov-wizard/gov-wizard-item-core.scss\";\n$class: \".gov-wizard-item\";\n\n#{$class} {\n\t@include wizard-item-core;\n\tmargin-bottom: rem-calc(16);\n\tbackground: $wizard-bg-color;\n\t&__header {\n\t\t@include focus-outline();\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttransition: $t linear color;\n\t}\n\t&__prefix {\n\t\tposition: absolute;\n\t\tleft: rem-calc(16);\n\t}\n\n\t// STATES\n\t&__header[aria-expanded=\"true\"] {\n\t\t#{$class}__label {\n\t\t\t.gov-icon {\n\t\t\t\ttransform: scale(-1);\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t&[size=\"#{$size-xs}\"],\n\t&[size=\"#{$size-s}\"],\n\t&[size=\"#{$size-m}\"] {\n\t\t#{$class} {\n\t\t\t&__title {\n\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-xs, \"font-size\"));\n\t\t\t}\n\t\t\t&__annot {\n\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-xs, \"font-size-annot\"));\n\t\t\t}\n\t\t\t&__prefix {\n\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-xs, \"font-size-indicator\"));\n\t\t\t\twidth: deep-map-get($wizard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\theight: deep-map-get($wizard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\ttop: deep-map-get($wizard-sizes, $size-xs, \"top\");\n\t\t\t\t+ #{$class}__header {\n\t\t\t\t\tpadding: deep-map-get($wizard-sizes, $size-xs, \"header-padding\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t&__content {\n\t\t\t\tpadding: $wizard-content-padding;\n\t\t\t}\n\t\t}\n\t}\n\t@each $variant, $definitions in $wizard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t@include parameter(\"collapsible\") {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__header {\n\t\t\t\t\t\t@include hover() {\n\t\t\t\t\t\t\tcolor: get(\"hover-color\", $definitions);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// HOVERS\n\t@at-root button#{&}__header {\n\t\t@include button-core();\n\t\tjustify-content: flex-start;\n\t\ttext-align: left;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&[size=\"#{$size-s}\"],\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-s, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-s, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\ttop: deep-map-get($wizard-sizes, $size-s, \"top\");\n\t\t\t\t\t+ #{$class}__header {\n\t\t\t\t\t\tpadding: deep-map-get($wizard-sizes, $size-s, \"header-padding\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-m, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-m, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\ttop: deep-map-get($wizard-sizes, $size-m, \"top\");\n\t\t\t\t\t+ #{$class}__header {\n\t\t\t\t\t\tpadding: deep-map-get($wizard-sizes, $size-m, \"header-padding\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@each $size, $definitions in $wizard-sizes {\n\t\t\t&[size=\"#{$size}\"] {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { govErrorLog } from \"../../helpers/Log/gov.log\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizesType, WizardVariants, WizardVariantsType, WizardItemClass } from \"./constants\"\nimport { createID } from \"../../utils/string.utils\"\nimport { booleanString, govHost, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { WizardItemEvent } from \"./gov-wizard-item.types\"\nimport Fragment from \"../../helpers/Fragment\"\n\nenum Tags {\n\tDIV = \"div\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-wizard-item\",\n\tstyleUrl: \"gov-wizard-item.scss\",\n})\nexport class GovWizardItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID(\"GovWizardItem\")\n\t\tthis.contentId = createID(\"GovWizardContent\")\n\t}\n\n\t@Element() readonly host: HTMLGovWizardItemElement\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: WizardVariantsType = \"primary\"\n\t/**\n\t * Size of wizard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Custom wizard item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defines weather the wizard item can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Item annotation of the wizard\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Item label of the wizard\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Makes the wizard component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by button\n\t */\n\t@Prop({ attribute: \"is-expanded\", mutable: true }) isExpanded = false\n\t/**\n\t * Used to change the HTML tag in the accordion trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: \"label-tag\" }) readonly labelTag: string = \"h3\"\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<WizardItemEvent>\n\n\t@Watch(\"label\")\n\tprivate validateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${WizardItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch(\"labelTag\")\n\tprivate validateTriggerTag(newValue: string): void {\n\t\tconst validTags = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"span\"]\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${WizardItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch(\"variant\")\n\tprivate validateVariant(newValue: string): void {\n\t\tvalidateProp(WizardVariants, newValue, WizardItemClass.root)\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ expanded: this.isExpanded, component: WizardItemClass.root })\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.labelTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst LabelTag = this.labelTag\n\t\tconst Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\n\t\tconst prefixSlot = this.h.hasSlot(\"prefix\") && (<span class={WizardItemClass.prefix}><slot name=\"prefix\" /></span>)\n\n\t\tconst label = (\n\t\t\t<LabelTag class={WizardItemClass.title}>\n\t\t\t\t<span class={WizardItemClass.name}>\n\t\t\t\t\t<span class={WizardItemClass.label}>\n\t\t\t\t\t\t<span>{this.label}</span>\n\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.arrow} name=\"chevron-down\"></gov-icon>}\n\t\t\t\t\t</span>\n\n\t\t\t\t\t{this.annotation && <span class={WizardItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t</span>\n\t\t\t</LabelTag>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizardItemClass.root)} is-expanded={this.isExpanded} variant={this.variant} size={this.size} role=\"listitem\" collapsible={this.collapsible}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\tid={triggerId}\n\t\t\t\t\t\t\tclass={WizardItemClass.header}\n\t\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\n\t\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\te.preventDefault()\n\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\tthis.collapsible ? this.toggle() : false\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</Tag>\n\t\t\t\t\t</Fragment>\n\t\t\t\t) : (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t\t<div class={WizardItemClass.header}>{label}</div>\n\t\t\t\t\t</Fragment>\n\t\t\t\t)}\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={WizardItemClass.content}\n\t\t\t\t\t\tid={this.contentId}\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\thidden={!this.isExpanded}\n\t\t\t\t\t\taria-labelledby={triggerId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizardItemClass.content} aria-hidden={booleanString(!this.isExpanded)} hidden={!this.isExpanded}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the Wizard\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpanded = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the Wizard\n\t */\n\t@Method()\n\tpublic async close(): Promise<void> {\n\t\tthis.isExpanded = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Wizard switch\n\t */\n\t@Method()\n\tpublic async toggle(): Promise<void> {\n\t\tthis.isExpanded = !this.isExpanded\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tpublic async currentState(): Promise<boolean> {\n\t\treturn this.isExpanded\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-wizard-item.entry.js","mappings":";;;;;;;;;;;;AAAA,MAAM,gBAAgB,GAAG,wrSAAwrS;;ACUjtS,IAAK,IAGJ;AAHD,WAAK,IAAI;EACR,mBAAW,CAAA;EACX,yBAAiB,CAAA;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;MAMY,aAAa;EAKzB;;;mBAUgD,SAAS;gBAIf,GAAG;;uBAQL,KAAK;;;oBAYR,KAAK;sBAIsB,KAAK;oBAIP,IAAI;IAzCjE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;IAC1C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,kBAAkB,CAAC,CAAA;GAC7C;EA6CO,aAAa,CAAC,QAAgB;IACrC,IAAI,CAAC,QAAQ,EAAE;MACd,WAAW,CAAC,IAAI,eAAe,CAAC,IAAI,iCAAiC,CAAC,CAAA;KACtE;GACD;EAGO,kBAAkB,CAAC,QAAgB;IAC1C,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;IAC9D,IAAI,QAAQ,EAAE;MACb,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClC,WAAW,CAAC,IAAI,eAAe,CAAC,IAAI,UAAU,QAAQ,kBAAkB,CAAC,CAAA;OACzE;KACD;GACD;EAGO,eAAe,CAAC,QAAgB;IACvC,YAAY,CAAC,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K,EACP;GACD;;;;EAMD,MAAM,IAAI;IACT,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;IACtB,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMM,MAAM,KAAK;IACjB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;IACvB,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMM,MAAM,MAAM;IAClB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAA;IAClC,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMM,MAAM,YAAY;IACxB,OAAO,IAAI,CAAC,UAAU,CAAA;GACtB;;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-wizard/gov-wizard-item.scss?tag=gov-wizard-item","../../../packages/core/src/components/gov-wizard/gov-wizard-item.tsx"],"sourcesContent":["/*\n * Wizard - Item\n */\n\n@import \"../gov-wizard/gov-wizard-item-core.scss\";\n$class: \".gov-wizard-item\";\n\n#{$class} {\n\t@include wizard-item-core;\n\tmargin-bottom: rem-calc(16);\n\tbackground: $wizard-bg-color;\n\t&__header {\n\t\t@include focus-outline();\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttransition: $t linear color;\n\t}\n\t&__prefix {\n\t\tposition: absolute;\n\t\tleft: rem-calc(16);\n\t}\n\n\t// STATES\n\t&__header[aria-expanded=\"true\"] {\n\t\t#{$class}__label {\n\t\t\t.gov-icon {\n\t\t\t\ttransform: scale(-1);\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t&[size=\"#{$size-xs}\"],\n\t&[size=\"#{$size-s}\"],\n\t&[size=\"#{$size-m}\"] {\n\t\t#{$class} {\n\t\t\t&__title {\n\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-xs, \"font-size\"));\n\t\t\t}\n\t\t\t&__annot {\n\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-xs, \"font-size-annot\"));\n\t\t\t}\n\t\t\t&__prefix {\n\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-xs, \"font-size-indicator\"));\n\t\t\t\twidth: deep-map-get($wizard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\theight: deep-map-get($wizard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\ttop: deep-map-get($wizard-sizes, $size-xs, \"top\");\n\t\t\t\t+ #{$class}__header {\n\t\t\t\t\tpadding: deep-map-get($wizard-sizes, $size-xs, \"header-padding\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t&__content {\n\t\t\t\tpadding: $wizard-content-padding;\n\t\t\t}\n\t\t}\n\t}\n\t@each $variant, $definitions in $wizard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t@include parameter(\"collapsible\") {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__header {\n\t\t\t\t\t\t@include hover() {\n\t\t\t\t\t\t\tcolor: get(\"hover-color\", $definitions);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// HOVERS\n\t@at-root button#{&}__header {\n\t\t@include button-core();\n\t\tjustify-content: flex-start;\n\t\ttext-align: left;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&[size=\"#{$size-s}\"],\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-s, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-s, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\ttop: deep-map-get($wizard-sizes, $size-s, \"top\");\n\t\t\t\t\t+ #{$class}__header {\n\t\t\t\t\t\tpadding: deep-map-get($wizard-sizes, $size-s, \"header-padding\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-m, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizard-sizes, $size-m, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\ttop: deep-map-get($wizard-sizes, $size-m, \"top\");\n\t\t\t\t\t+ #{$class}__header {\n\t\t\t\t\t\tpadding: deep-map-get($wizard-sizes, $size-m, \"header-padding\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@each $size, $definitions in $wizard-sizes {\n\t\t\t&[size=\"#{$size}\"] {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { govErrorLog } from \"../../helpers/Log/gov.log\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizesType, WizardVariants, WizardVariantsType, WizardItemClass } from \"./constants\"\nimport { createID } from \"../../utils/string.utils\"\nimport { booleanString, govHost, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { WizardItemEvent } from \"./gov-wizard-item.types\"\nimport Fragment from \"../../helpers/Fragment\"\n\nenum Tags {\n\tDIV = \"div\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-wizard-item\",\n\tstyleUrl: \"gov-wizard-item.scss\",\n})\nexport class GovWizardItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID(\"GovWizardItem\")\n\t\tthis.contentId = createID(\"GovWizardContent\")\n\t}\n\n\t@Element() readonly host: HTMLGovWizardItemElement\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: WizardVariantsType = \"primary\"\n\t/**\n\t * Size of wizard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Custom wizard item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defines weather the wizard item can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Item annotation of the wizard\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Item label of the wizard\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Makes the wizard component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by button\n\t */\n\t@Prop({ attribute: \"is-expanded\", mutable: true }) isExpanded = false\n\t/**\n\t * Used to change the HTML tag in the accordion trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: \"label-tag\" }) readonly labelTag: string = \"h3\"\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<WizardItemEvent>\n\n\t@Watch(\"label\")\n\tprivate validateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${WizardItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch(\"labelTag\")\n\tprivate validateTriggerTag(newValue: string): void {\n\t\tconst validTags = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"span\"]\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${WizardItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch(\"variant\")\n\tprivate validateVariant(newValue: string): void {\n\t\tvalidateProp(WizardVariants, newValue, WizardItemClass.root)\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ expanded: this.isExpanded, component: WizardItemClass.root })\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.labelTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst LabelTag = this.labelTag\n\t\tconst Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\n\t\tconst prefixSlot = this.h.hasSlot(\"prefix\") && (<span class={WizardItemClass.prefix}><slot name=\"prefix\" /></span>)\n\n\t\tconst label = (\n\t\t\t<LabelTag class={WizardItemClass.title}>\n\t\t\t\t<span class={WizardItemClass.name}>\n\t\t\t\t\t<span class={WizardItemClass.label}>\n\t\t\t\t\t\t<span>{this.label}</span>\n\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizardItemClass.arrow} name=\"chevron-down\"></gov-icon>}\n\t\t\t\t\t</span>\n\n\t\t\t\t\t{this.annotation && <span class={WizardItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t</span>\n\t\t\t</LabelTag>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizardItemClass.root)} is-expanded={this.isExpanded} variant={this.variant} size={this.size} role=\"listitem\" collapsible={this.collapsible}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t\t<Tag\n\t\t\t\t\t\t\tid={triggerId}\n\t\t\t\t\t\t\tclass={WizardItemClass.header}\n\t\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\n\t\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t\tonClick={(e) => {\n\t\t\t\t\t\t\t\te.preventDefault()\n\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\tthis.collapsible ? this.toggle() : false\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</Tag>\n\t\t\t\t\t</Fragment>\n\t\t\t\t) : (\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t{prefixSlot}\n\t\t\t\t\t\t<div class={WizardItemClass.header}>{label}</div>\n\t\t\t\t\t</Fragment>\n\t\t\t\t)}\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={WizardItemClass.content}\n\t\t\t\t\t\tid={this.contentId}\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\thidden={!this.isExpanded}\n\t\t\t\t\t\taria-labelledby={triggerId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizardItemClass.content} aria-hidden={booleanString(!this.isExpanded)} hidden={!this.isExpanded}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the Wizard\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpanded = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the Wizard\n\t */\n\t@Method()\n\tpublic async close(): Promise<void> {\n\t\tthis.isExpanded = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Wizard switch\n\t */\n\t@Method()\n\tpublic async toggle(): Promise<void> {\n\t\tthis.isExpanded = !this.isExpanded\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tpublic async currentState(): Promise<boolean> {\n\t\treturn this.isExpanded\n\t}\n}\n"],"version":3}
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-eb59f132.js';
2
- import { v as validateProp } from './props-789f7529.js';
2
+ import { v as validateProp } from './props-a85d9c89.js';
3
3
  import { W as WizardItemClass, a as WizardClass, b as WizardSizes } from './constants-2499979c.js';
4
4
  import { g as govHost } from './template-df429738.js';
5
- import { v as validateWcagLabel } from './wcag-b7b67e25.js';
6
- import { c as canValidateWcagOnRender } from './win-0d231cca.js';
5
+ import { v as validateWcagLabel } from './wcag-7d25e12b.js';
6
+ import { c as canValidateWcagOnRender } from './win-1dbd3f5c.js';
7
7
  import { d as delay } from './utils-c057a3fa.js';
8
- import './gov.log-af905420.js';
8
+ import './gov.log-49da0221.js';
9
9
  import './variants-2b936d58.js';
10
10
  import './sizes-6c5943b4.js';
11
11
  import './string.utils-f268fc6b.js';
@@ -1,17 +1,25 @@
1
+ import { u as useErrorLog, a as useLog, b as useWarningLog } from './win-1dbd3f5c.js';
2
+
1
3
  const WARNING_COLORS = { bg: '#ecae1a', text: '#3b3b3b' };
2
4
  const INFO_COLORS = { bg: '#2362a2', text: '#fff' };
3
5
  const ERROR_COLORS = { bg: '#c52a3a', text: '#fff' };
4
6
  const govLog = (message, colors = INFO_COLORS) => {
5
7
  const styles = ['color: ' + colors.text, 'background: ' + colors.bg, 'font-size: 11px', 'padding: 2px 4px', 'border-radius: 3px', 'font-weight: 600'].join(';');
6
- console.log('%cgov', styles, message);
8
+ if (useLog() || useWarningLog() || useErrorLog()) {
9
+ console.log('%cgov', styles, message);
10
+ }
7
11
  };
8
12
  const govWarningLog = (message) => {
9
- govLog(message, WARNING_COLORS);
13
+ if (useWarningLog()) {
14
+ govLog(message, WARNING_COLORS);
15
+ }
10
16
  };
11
17
  const govErrorLog = (message) => {
12
- govLog(message, ERROR_COLORS);
18
+ if (useErrorLog()) {
19
+ govLog(message, ERROR_COLORS);
20
+ }
13
21
  };
14
22
 
15
23
  export { govErrorLog as a, govWarningLog as g };
16
24
 
17
- //# sourceMappingURL=gov.log-af905420.js.map
25
+ //# sourceMappingURL=gov.log-49da0221.js.map
@@ -0,0 +1 @@
1
+ {"file":"gov.log-49da0221.js","mappings":";;AAOA,MAAM,cAAc,GAAgB,EAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAC,CAAA;AACpE,MAAM,WAAW,GAAgB,EAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAC,CAAA;AAC9D,MAAM,YAAY,GAAgB,EAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAC,CAAA;AAExD,MAAM,MAAM,GAAG,CAAC,OAAe,EAAE,SAAsB,WAAW;EACxE,MAAM,MAAM,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC,EAAE,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,kBAAkB,CAAC,CAAC,IAAI,CACzJ,GAAG,CACH,CAAA;EAED,IAAG,MAAM,EAAE,IAAI,aAAa,EAAE,IAAI,WAAW,EAAE,EAAE;IAChD,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;GACrC;AACF,CAAC,CAAA;MAEY,aAAa,GAAG,CAAC,OAAe;EAC5C,IAAI,aAAa,EAAE,EAAE;IACpB,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,CAAA;GAC/B;AACF,EAAC;MAEY,WAAW,GAAG,CAAC,OAAe;EAC1C,IAAI,WAAW,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;GAC7B;AACF;;;;","names":[],"sources":["../../../packages/core/src/helpers/Log/gov.log.ts"],"sourcesContent":["import {useErrorLog, useLog, useWarningLog} from \"../Dom/win\";\n\ninterface ColorConfig {\n\tbg: string\n\ttext: string\n}\n\nconst WARNING_COLORS: ColorConfig = {bg: '#ecae1a', text: '#3b3b3b'}\nconst INFO_COLORS: ColorConfig = {bg: '#2362a2', text: '#fff'}\nconst ERROR_COLORS: ColorConfig = {bg: '#c52a3a', text: '#fff'}\n\nexport const govLog = (message: string, colors: ColorConfig = INFO_COLORS): void => {\n\tconst styles = ['color: ' + colors.text, 'background: ' + colors.bg, 'font-size: 11px', 'padding: 2px 4px', 'border-radius: 3px', 'font-weight: 600'].join(\n\t\t';'\n\t)\n\n\tif(useLog() || useWarningLog() || useErrorLog()) {\n\t\tconsole.log('%cgov', styles, message)\n\t}\n}\n\nexport const govWarningLog = (message: string): void => {\n\tif (useWarningLog()) {\n\t\tgovLog(message, WARNING_COLORS)\n\t}\n}\n\nexport const govErrorLog = (message: string): void => {\n\tif (useErrorLog()) {\n\t\tgovLog(message, ERROR_COLORS)\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { g as govWarningLog } from './gov.log-af905420.js';
1
+ import { g as govWarningLog } from './gov.log-49da0221.js';
2
2
 
3
3
  // @TODO: deal with optional values
4
4
  const validateProp = (valueEnum, value, component) => {
@@ -11,4 +11,4 @@ const validateProp = (valueEnum, value, component) => {
11
11
 
12
12
  export { validateProp as v };
13
13
 
14
- //# sourceMappingURL=props-789f7529.js.map
14
+ //# sourceMappingURL=props-a85d9c89.js.map
@@ -1 +1 @@
1
- {"file":"props-789f7529.js","mappings":";;AAEA;MACa,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB;EAC5G,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;EACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;EAC1C,IAAI,CAAC,OAAO,EAAE;IACb,aAAa,CAAC,IAAI,SAAS,gCAAgC,KAAK,gCAAgC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GACtH;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-a85d9c89.js","mappings":";;AAEA;MACa,YAAY,GAAG,CAAmC,SAAY,EAAE,KAAa,EAAE,SAAiB;EAC5G,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;EACvC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;EAC1C,IAAI,CAAC,OAAO,EAAE;IACb,aAAa,CAAC,IAAI,SAAS,gCAAgC,KAAK,gCAAgC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;GACtH;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,6 +1,6 @@
1
- import { g as govWarningLog } from './gov.log-af905420.js';
1
+ import { g as govWarningLog } from './gov.log-49da0221.js';
2
2
  import { s as splitByWhitespace } from './string.utils-f268fc6b.js';
3
- import { d as documentNode } from './win-0d231cca.js';
3
+ import { d as documentNode } from './win-1dbd3f5c.js';
4
4
 
5
5
  const validateWcagProp = (value, propName, component) => {
6
6
  if (value === undefined || String(value).length === 0) {
@@ -59,4 +59,4 @@ const validateWcagLabel = (label, labelledBy, component) => {
59
59
 
60
60
  export { validateWcagRef as a, validateWcagLabelFor as b, validateWcagProp as c, validateWcagLabel as v };
61
61
 
62
- //# sourceMappingURL=wcag-b7b67e25.js.map
62
+ //# sourceMappingURL=wcag-7d25e12b.js.map
@@ -1 +1 @@
1
- {"file":"wcag-b7b67e25.js","mappings":";;;;MAIa,gBAAgB,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,SAAiB;EAC9F,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;IACtD,aAAa,CAAC,IAAI,SAAS,WAAW,QAAQ,qDAAqD,CAAC,CAAA;GACpG;AACF,EAAC;MAEY,eAAe,GAAG,CAAC,WAAmB,EAAE,IAAY,EAAE,SAAiB;EACnF,IAAI,OAAO,WAAW,KAAK,WAAW,IAAI,WAAW,KAAK,SAAS,EAAE;IACpE,OAAO,IAAI,CAAA;GACX;EACD,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;IACrC,aAAa,CAAC,IAAI,SAAS,iBAAiB,IAAI,mCAAmC,CAAC,CAAA;IACpF,OAAO,KAAK,CAAA;GACZ;EACD,IAAI,OAAO,GAAG,EAAE,CAAA;EAChB,MAAM,YAAY,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAA;EACnD,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;IAChC,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;MACxC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAA;KAC1B,CAAC,CAAA;GACF;EAED,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW;IAClC,IAAI,YAAY,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE;;MAExD,OAAO,KAAK,CAAA;KACZ;SAAM;MACN,OAAO,IAAI,CAAA;KACX;GACD,CAAC,CAAC,MAAM,CAAA;AACV,EAAC;MAEY,oBAAoB,GAAG,CAAC,OAAe,EAAE,UAA8B,EAAE,SAAiB;EACtG,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC,aAAa,CAAC,QAAQ,OAAO,GAAG,CAAC,CAAA;EAChE,IAAI,OAAO,KAAK,IAAI,EAAE;IACrB,MAAM,YAAY,GAAG,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;IAC9D,IAAI,YAAY,KAAK,IAAI,EAAE;MAC1B,aAAa,CAAC,IAAI,SAAS,8EAA8E,CAAC,CAAA;MAC1G,OAAO,KAAK,CAAA;KACZ;GACD;EACD,OAAO,IAAI,CAAA;AACZ,EAAC;MAEY,iBAAiB,GAAG,CAAC,KAAyB,EAAE,UAA8B,EAAE,SAAiB;EAC7G,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;IAClD,OAAO,IAAI,CAAA;GACX;EACD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;IAC5D,MAAM,YAAY,GAAG,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;IAC9D,IAAI,YAAY,EAAE;MACjB,OAAO,IAAI,CAAA;KACX;GACD;EACD,aAAa,CAAC,IAAI,SAAS,yEAAyE,CAAC,CAAA;EACrG,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'\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateWcagLabel = (label: string | undefined, labelledBy: string | undefined, component: string): boolean => {\n\tif (typeof label === 'string' && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined wcag-label or wcag-labelled-by attribute.`)\n\treturn false\n}\n"],"version":3}
1
+ {"file":"wcag-7d25e12b.js","mappings":";;;;MAIa,gBAAgB,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,SAAiB;EAC9F,IAAI,KAAK,KAAK,SA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9D,IAAI,YAAY,KAAK,IAAI,EAAE;MAC1B,aAAa,CAAC,IAAI,SAAS,8EAA8E,CAAC,CAAA;MAC1G,OAAO,KAAK,CAAA;KACZ;GACD;EACD,OAAO,IAAI,CAAA;AACZ,EAAC;MAEY,iBAAiB,GAAG,CAAC,KAAyB,EAAE,UAA8B,EAAE,SAAiB;EAC7G,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;IAClD,OAAO,IAAI,CAAA;GACX;EACD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;IAC5D,MAAM,YAAY,GAAG,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;IAC9D,IAAI,YAAY,EAAE;MACjB,OAAO,IAAI,CAAA;KACX;GACD;EACD,aAAa,CAAC,IAAI,SAAS,yEAAyE,CAAC,CAAA;EACrG,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'\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateWcagLabel = (label: string | undefined, labelledBy: string | undefined, component: string): boolean => {\n\tif (typeof label === 'string' && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined wcag-label or wcag-labelled-by attribute.`)\n\treturn false\n}\n"],"version":3}
@@ -5,6 +5,9 @@ const getWindowProperty = (name) => isWindow && window && property(name, window)
5
5
  const config = () => {
6
6
  const defaultConfig = {
7
7
  canValidateWcagOnRender: false,
8
+ warningLog: false,
9
+ errorLog: false,
10
+ log: false,
8
11
  iconsPath: '/assets/icons',
9
12
  iconsLazyLoad: true,
10
13
  documentNode: document ? document : null,
@@ -16,10 +19,13 @@ const config = () => {
16
19
  return defaultConfig;
17
20
  };
18
21
  const canValidateWcagOnRender = () => config().canValidateWcagOnRender;
22
+ const useWarningLog = () => config().warningLog;
23
+ const useErrorLog = () => config().errorLog;
24
+ const useLog = () => config().log;
19
25
  const iconsPath = () => config().iconsPath;
20
26
  const iconsLazyLoad = () => config().iconsLazyLoad;
21
27
  const documentNode = () => config().documentNode;
22
28
 
23
- export { iconsLazyLoad as a, canValidateWcagOnRender as c, documentNode as d, iconsPath as i };
29
+ export { useLog as a, useWarningLog as b, canValidateWcagOnRender as c, documentNode as d, iconsLazyLoad as e, iconsPath as i, useErrorLog as u };
24
30
 
25
- //# sourceMappingURL=win-0d231cca.js.map
31
+ //# sourceMappingURL=win-1dbd3f5c.js.map
@@ -0,0 +1 @@
1
+ {"file":"win-1dbd3f5c.js","mappings":";;AAYO,MAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,WAAW,CAAA;AAErD,MAAM,iBAAiB,GAAG,CAAI,IAAY,KAA6B,QAAQ,IAAI,MAAM,IAAI,QAAQ,CAAC,IAA2B,EAAE,MAAM,CAAC,CAAA;AAE1I,MAAM,MAAM,GAAG;EACd,MAAM,aAAa,GAAY;IAC9B,uBAAuB,EAAE,KAAK;IAC9B,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,KAAK;IACf,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,eAAe;IAC1B,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI;GACxC,CAAA;EAED,MAAM,cAAc,GAAG,iBAAiB,CAAU,eAAe,CAAC,CAAA;EAClE,IAAI,cAAc,EAAE;IACnB,uCAAY,aAAa,GAAK,cAAc,EAAE;GAC9C;EAED,OAAO,aAAa,CAAA;AACrB,CAAC,CAAA;MAEY,uBAAuB,GAAG,MAA0C,MAAM,EAAE,CAAC,wBAAuB;MACpG,aAAa,GAAG,MAA6B,MAAM,EAAE,CAAC,WAAU;MAChE,WAAW,GAAG,MAA2B,MAAM,EAAE,CAAC,SAAQ;MAC1D,MAAM,GAAG,MAAsB,MAAM,EAAE,CAAC,IAAG;MAC3C,SAAS,GAAG,MAA4B,MAAM,EAAE,CAAC,UAAS;MAC1D,aAAa,GAAG,MAAgC,MAAM,EAAE,CAAC,cAAa;MACtE,YAAY,GAAG,MAA+B,MAAM,EAAE,CAAC;;;;","names":[],"sources":["../../../packages/core/src/helpers/Dom/win.ts"],"sourcesContent":["import { property } from '../../utils/utils'\n\ninterface IConfig {\n\tcanValidateWcagOnRender: boolean\n\twarningLog: boolean\n\terrorLog: boolean\n\tlog: boolean\n\ticonsPath: string\n\ticonsLazyLoad: boolean\n\tdocumentNode: Document\n}\n\nexport const isWindow = typeof window !== \"undefined\"\n\nconst getWindowProperty = <T>(name: string): Partial<T> | undefined => isWindow && window && property(name as keyof typeof window, window)\n\nconst config = (): IConfig => {\n\tconst defaultConfig: IConfig = {\n\t\tcanValidateWcagOnRender: false,\n\t\twarningLog: false,\n\t\terrorLog: false,\n\t\tlog: false,\n\t\ticonsPath: '/assets/icons',\n\t\ticonsLazyLoad: true,\n\t\tdocumentNode: document ? document : null,\n\t}\n\n\tconst windowProperty = getWindowProperty<IConfig>('GOV_DS_CONFIG')\n\tif (windowProperty) {\n\t\treturn { ...defaultConfig, ...windowProperty }\n\t}\n\n\treturn defaultConfig\n}\n\nexport const canValidateWcagOnRender = (): IConfig['canValidateWcagOnRender'] => config().canValidateWcagOnRender\nexport const useWarningLog = (): IConfig['warningLog'] => config().warningLog\nexport const useErrorLog = (): IConfig['errorLog'] => config().errorLog\nexport const useLog = (): IConfig['log'] => config().log\nexport const iconsPath = (): IConfig['iconsPath'] => config().iconsPath\nexport const iconsLazyLoad = (): IConfig['iconsLazyLoad'] => config().iconsLazyLoad\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\n"],"version":3}
@@ -5747,18 +5747,81 @@ const cmpModules = new Map, getModule = e => {
5747
5747
  e["s-p"] = [], e["s-rc"] = [], hostRefs.set(e, o);
5748
5748
  }, styles = new Map;
5749
5749
 
5750
+ async function delay(miliseconds) {
5751
+ return new Promise(resolve => setTimeout(resolve, miliseconds));
5752
+ }
5753
+ function throttle(f, delay) {
5754
+ let timer = 0;
5755
+ return function (...args) {
5756
+ clearTimeout(timer);
5757
+ timer = setTimeout(() => f.apply(this, args), delay);
5758
+ };
5759
+ }
5760
+ /**
5761
+ * Checks if object has that property
5762
+ *
5763
+ * @param {K} prop
5764
+ * @param {T} obj
5765
+ * @return {obj is T & Record<K, V>}
5766
+ */
5767
+ const has = (prop, obj) => {
5768
+ return Object.prototype.hasOwnProperty.call(obj, prop);
5769
+ };
5770
+ /**
5771
+ * Returns property of given Object
5772
+ *
5773
+ * @param {K} name
5774
+ * @param {T} object
5775
+ * @return {(T & Record<K, unknown>)[K]}
5776
+ */
5777
+ const property = (name, object) => {
5778
+ return has(name, object) ? object[name] : undefined;
5779
+ };
5780
+ const pick = (obj, keys) => Object.fromEntries(Object.entries(obj).filter(([key]) => keys.includes(key)));
5781
+
5782
+ const isWindow = typeof window !== "undefined";
5783
+ const getWindowProperty = (name) => isWindow && window && property(name, window);
5784
+ const config = () => {
5785
+ const defaultConfig = {
5786
+ canValidateWcagOnRender: false,
5787
+ warningLog: false,
5788
+ errorLog: false,
5789
+ log: false,
5790
+ iconsPath: '/assets/icons',
5791
+ iconsLazyLoad: true,
5792
+ documentNode: document ? document : null,
5793
+ };
5794
+ const windowProperty = getWindowProperty('GOV_DS_CONFIG');
5795
+ if (windowProperty) {
5796
+ return Object.assign(Object.assign({}, defaultConfig), windowProperty);
5797
+ }
5798
+ return defaultConfig;
5799
+ };
5800
+ const canValidateWcagOnRender = () => config().canValidateWcagOnRender;
5801
+ const useWarningLog = () => config().warningLog;
5802
+ const useErrorLog = () => config().errorLog;
5803
+ const useLog = () => config().log;
5804
+ const iconsLazyLoad = () => config().iconsLazyLoad;
5805
+ const documentNode = () => config().documentNode;
5806
+
5750
5807
  const WARNING_COLORS = { bg: '#ecae1a', text: '#3b3b3b' };
5751
5808
  const INFO_COLORS = { bg: '#2362a2', text: '#fff' };
5752
5809
  const ERROR_COLORS = { bg: '#c52a3a', text: '#fff' };
5753
5810
  const govLog = (message, colors = INFO_COLORS) => {
5754
5811
  const styles = ['color: ' + colors.text, 'background: ' + colors.bg, 'font-size: 11px', 'padding: 2px 4px', 'border-radius: 3px', 'font-weight: 600'].join(';');
5755
- console.log('%cgov', styles, message);
5812
+ if (useLog() || useWarningLog() || useErrorLog()) {
5813
+ console.log('%cgov', styles, message);
5814
+ }
5756
5815
  };
5757
5816
  const govWarningLog = (message) => {
5758
- govLog(message, WARNING_COLORS);
5817
+ if (useWarningLog()) {
5818
+ govLog(message, WARNING_COLORS);
5819
+ }
5759
5820
  };
5760
5821
  const govErrorLog = (message) => {
5761
- govLog(message, ERROR_COLORS);
5822
+ if (useErrorLog()) {
5823
+ govLog(message, ERROR_COLORS);
5824
+ }
5762
5825
  };
5763
5826
 
5764
5827
  // @TODO: deal with optional values
@@ -5800,38 +5863,6 @@ var Types$1;
5800
5863
  Types["SOLID"] = "solid";
5801
5864
  })(Types$1 || (Types$1 = {}));
5802
5865
 
5803
- async function delay(miliseconds) {
5804
- return new Promise(resolve => setTimeout(resolve, miliseconds));
5805
- }
5806
- function throttle(f, delay) {
5807
- let timer = 0;
5808
- return function (...args) {
5809
- clearTimeout(timer);
5810
- timer = setTimeout(() => f.apply(this, args), delay);
5811
- };
5812
- }
5813
- /**
5814
- * Checks if object has that property
5815
- *
5816
- * @param {K} prop
5817
- * @param {T} obj
5818
- * @return {obj is T & Record<K, V>}
5819
- */
5820
- const has = (prop, obj) => {
5821
- return Object.prototype.hasOwnProperty.call(obj, prop);
5822
- };
5823
- /**
5824
- * Returns property of given Object
5825
- *
5826
- * @param {K} name
5827
- * @param {T} object
5828
- * @return {(T & Record<K, unknown>)[K]}
5829
- */
5830
- const property = (name, object) => {
5831
- return has(name, object) ? object[name] : undefined;
5832
- };
5833
- const pick = (obj, keys) => Object.fromEntries(Object.entries(obj).filter(([key]) => keys.includes(key)));
5834
-
5835
5866
  const AccordionSizes = pick(Sizes, ['_XS', '_S', '_M', '_L']);
5836
5867
  const AccordionVariants = pick(Variants, ['PRIMARY', 'SECONDARY', 'CUSTOM']);
5837
5868
  const AccordionClass = {
@@ -5867,25 +5898,6 @@ function splitByWhitespace(string) {
5867
5898
  return string.split(/(\s+)/);
5868
5899
  }
5869
5900
 
5870
- const isWindow = typeof window !== "undefined";
5871
- const getWindowProperty = (name) => isWindow && window && property(name, window);
5872
- const config = () => {
5873
- const defaultConfig = {
5874
- canValidateWcagOnRender: false,
5875
- iconsPath: '/assets/icons',
5876
- iconsLazyLoad: true,
5877
- documentNode: document ? document : null,
5878
- };
5879
- const windowProperty = getWindowProperty('GOV_DS_CONFIG');
5880
- if (windowProperty) {
5881
- return Object.assign(Object.assign({}, defaultConfig), windowProperty);
5882
- }
5883
- return defaultConfig;
5884
- };
5885
- const canValidateWcagOnRender = () => config().canValidateWcagOnRender;
5886
- const iconsLazyLoad = () => config().iconsLazyLoad;
5887
- const documentNode = () => config().documentNode;
5888
-
5889
5901
  const validateWcagProp = (value, propName, component) => {
5890
5902
  if (value === undefined || String(value).length === 0) {
5891
5903
  govWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`);
@@ -17101,7 +17113,6 @@ class GovFormCheckbox {
17101
17113
  }
17102
17114
  passControlAttrs() {
17103
17115
  this.f.passAttrToControl("size", this.size);
17104
- this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
17105
17116
  this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
17106
17117
  }
17107
17118
  componentWillLoad() {
@@ -17378,7 +17389,6 @@ class GovFormFile {
17378
17389
  this.passControlAttrs();
17379
17390
  }
17380
17391
  passControlAttrs() {
17381
- this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
17382
17392
  this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
17383
17393
  this.f.passAttrToControl("type", "File");
17384
17394
  }
@@ -17671,7 +17681,6 @@ class GovFormInput {
17671
17681
  }
17672
17682
  passControlAttrs() {
17673
17683
  this.f.passAttrToControl("size", this.size);
17674
- this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
17675
17684
  this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
17676
17685
  this.f.passAttrToControl("type", this.multiline ? Tags$1.TEXTAREA : Tags$1.INPUT);
17677
17686
  }
@@ -17946,7 +17955,6 @@ class GovFormMultiSelect {
17946
17955
  }
17947
17956
  passControlAttrs() {
17948
17957
  this.f.passAttrToControl('size', this.size);
17949
- this.f.passAttrToControl('disabled', toBoolAttr(this.disabled));
17950
17958
  this.f.passAttrToControl('invalid', toBoolAttr(this.invalid));
17951
17959
  this.f.passAttrToControl('success', toBoolAttr(this.success));
17952
17960
  }
@@ -18263,7 +18271,6 @@ class GovFormRadio {
18263
18271
  }
18264
18272
  passControlAttrs() {
18265
18273
  this.f.passAttrToControl("size", this.size);
18266
- this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
18267
18274
  this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
18268
18275
  this.f.passAttrToControl("type", "radio");
18269
18276
  }
@@ -18436,7 +18443,6 @@ class GovFormSelect {
18436
18443
  }
18437
18444
  passControlAttrs() {
18438
18445
  this.f.passAttrToControl('size', this.size);
18439
- this.f.passAttrToControl('disabled', toBoolAttr(this.disabled));
18440
18446
  this.f.passAttrToControl('invalid', toBoolAttr(this.invalid));
18441
18447
  this.f.passAttrToControl('type', 'select');
18442
18448
  }
@@ -18601,7 +18607,6 @@ class GovFormSwitch {
18601
18607
  }
18602
18608
  passControlAttrs() {
18603
18609
  this.f.passAttrToControl("size", this.size);
18604
- this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
18605
18610
  this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
18606
18611
  this.f.passAttrToControl("type", "switch");
18607
18612
  }
@@ -1,11 +1,17 @@
1
1
  interface IConfig {
2
2
  canValidateWcagOnRender: boolean;
3
+ warningLog: boolean;
4
+ errorLog: boolean;
5
+ log: boolean;
3
6
  iconsPath: string;
4
7
  iconsLazyLoad: boolean;
5
8
  documentNode: Document;
6
9
  }
7
10
  export declare const isWindow: boolean;
8
11
  export declare const canValidateWcagOnRender: () => IConfig['canValidateWcagOnRender'];
12
+ export declare const useWarningLog: () => IConfig['warningLog'];
13
+ export declare const useErrorLog: () => IConfig['errorLog'];
14
+ export declare const useLog: () => IConfig['log'];
9
15
  export declare const iconsPath: () => IConfig['iconsPath'];
10
16
  export declare const iconsLazyLoad: () => IConfig['iconsLazyLoad'];
11
17
  export declare const documentNode: () => IConfig['documentNode'];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gov-design-system-ce/components",
3
3
  "description": "This package includes Gov Design System Web Components and related utilities.",
4
4
  "author": "Zdeněk Vítek",
5
- "version": "4.0.1",
5
+ "version": "4.0.3",
6
6
  "license": "EUPL v1.2 Licensed",
7
7
  "main": "./dist/index.cjs.js",
8
8
  "unpkg": "./dist/core/core.esm.js",
@@ -1 +0,0 @@
1
- {"file":"gov.log-0c9dca27.js","mappings":";;AAKA,MAAM,cAAc,GAAgB,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;AACtE,MAAM,WAAW,GAAgB,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA;AAChE,MAAM,YAAY,GAAgB,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA;AAE1D,MAAM,MAAM,GAAG,CAAC,OAAe,EAAE,SAAsB,WAAW;EACxE,MAAM,MAAM,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC,EAAE,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,kBAAkB,CAAC,CAAC,IAAI,CACzJ,GAAG,CACH,CAAA;EAED,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;AACtC,CAAC,CAAA;MAEY,aAAa,GAAG,CAAC,OAAe;EAC5C,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,CAAA;AAChC,EAAC;MAEY,WAAW,GAAG,CAAC,OAAe;EAC1C,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;AAC9B;;;;;","names":[],"sources":["../../../packages/core/src/helpers/Log/gov.log.ts"],"sourcesContent":["interface ColorConfig {\n\tbg: string\n\ttext: string\n}\n\nconst WARNING_COLORS: ColorConfig = { bg: '#ecae1a', text: '#3b3b3b' }\nconst INFO_COLORS: ColorConfig = { bg: '#2362a2', text: '#fff' }\nconst ERROR_COLORS: ColorConfig = { bg: '#c52a3a', text: '#fff' }\n\nexport const govLog = (message: string, colors: ColorConfig = INFO_COLORS): void => {\n\tconst styles = ['color: ' + colors.text, 'background: ' + colors.bg, 'font-size: 11px', 'padding: 2px 4px', 'border-radius: 3px', 'font-weight: 600'].join(\n\t\t';'\n\t)\n\n\tconsole.log('%cgov', styles, message)\n}\n\nexport const govWarningLog = (message: string): void => {\n\tgovLog(message, WARNING_COLORS)\n}\n\nexport const govErrorLog = (message: string): void => {\n\tgovLog(message, ERROR_COLORS)\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"win-9d1a8a53.js","mappings":";;;;AASO,MAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,WAAW,CAAA;AAErD,MAAM,iBAAiB,GAAG,CAAI,IAAY,KAA6B,QAAQ,IAAI,MAAM,IAAIA,cAAQ,CAAC,IAA2B,EAAE,MAAM,CAAC,CAAA;AAE1I,MAAM,MAAM,GAAG;EACd,MAAM,aAAa,GAAY;IAC9B,uBAAuB,EAAE,KAAK;IAC9B,SAAS,EAAE,eAAe;IAC1B,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI;GACxC,CAAA;EAED,MAAM,cAAc,GAAG,iBAAiB,CAAU,eAAe,CAAC,CAAA;EAClE,IAAI,cAAc,EAAE;IACnB,uCAAY,aAAa,GAAK,cAAc,EAAE;GAC9C;EAED,OAAO,aAAa,CAAA;AACrB,CAAC,CAAA;MAEY,uBAAuB,GAAG,MAA0C,MAAM,EAAE,CAAC,wBAAuB;MACpG,SAAS,GAAG,MAA4B,MAAM,EAAE,CAAC,UAAS;MAC1D,aAAa,GAAG,MAAgC,MAAM,EAAE,CAAC,cAAa;MACtE,YAAY,GAAG,MAA+B,MAAM,EAAE,CAAC;;;;;;;","names":["property"],"sources":["../../../packages/core/src/helpers/Dom/win.ts"],"sourcesContent":["import { property } from '../../utils/utils'\n\ninterface IConfig {\n\tcanValidateWcagOnRender: boolean\n\ticonsPath: string\n\ticonsLazyLoad: boolean\n\tdocumentNode: Document\n}\n\nexport const isWindow = typeof window !== \"undefined\"\n\nconst getWindowProperty = <T>(name: string): Partial<T> | undefined => isWindow && window && property(name as keyof typeof window, window)\n\nconst config = (): IConfig => {\n\tconst defaultConfig: IConfig = {\n\t\tcanValidateWcagOnRender: false,\n\t\ticonsPath: '/assets/icons',\n\t\ticonsLazyLoad: true,\n\t\tdocumentNode: document ? document : null,\n\t}\n\n\tconst windowProperty = getWindowProperty<IConfig>('GOV_DS_CONFIG')\n\tif (windowProperty) {\n\t\treturn { ...defaultConfig, ...windowProperty }\n\t}\n\n\treturn defaultConfig\n}\n\nexport const canValidateWcagOnRender = (): IConfig['canValidateWcagOnRender'] => config().canValidateWcagOnRender\nexport const iconsPath = (): IConfig['iconsPath'] => config().iconsPath\nexport const iconsLazyLoad = (): IConfig['iconsLazyLoad'] => config().iconsLazyLoad\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\n"],"version":3}
@@ -1,2 +0,0 @@
1
- import{p as s,H as o,h as e,d as r}from"./p-2dee9951.js";import{F as a,a as t}from"./p-6278531b.js";import{g as i}from"./p-28e59384.js";import{v as n}from"./p-26acf964.js";import{c}from"./p-24636c53.js";const g=".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-form-message{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);display:flex;gap:0.5rem;margin:0rem 0rem 1rem}.gov-form-message__icon{position:relative;top:calc(var(--gov-text-s-font-size) / 6);display:flex}.gov-form-message__icon>*{width:calc(var(--gov-text-s-font-size) * 1.167);height:calc(var(--gov-text-s-font-size) * 1.167)}.gov-form-message[variant=error]{color:var(--gov-form-message-error-color, var(--gov-color-error-400))}.gov-form-message[variant=secondary]{color:var(--gov-form-message-secondary-color, var(--gov-color-secondary-700))}.gov-form-message[variant=warning]{color:var(--gov-form-message-warning-color, var(--gov-color-warning-500))}.gov-form-message[variant=success]{color:var(--gov-form-message-success-color, var(--gov-color-success-500))}";const m=s(class s extends o{constructor(){super();this.__registerHost();this.variant="secondary";this.h=i(this.host);this.messageId=c("GovFormMessage")}validateVariant(s){n(t,s,a.root)}componentWillLoad(){this.validateVariant(this.variant)}render(){return e(r,{class:this.h.classes(a.root),variant:this.variant},this.h.hasSlot("icon")&&e("span",{class:a.icon},e("slot",{name:"icon"})),e("span",{id:this.messageId,class:a.content},e("slot",null)))}async identifier(){return this.messageId}get host(){return this}static get watchers(){return{variant:["validateVariant"]}}static get style(){return g}},[4,"gov-form-message",{variant:[1],identifier:[64]}]);function v(){if(typeof customElements==="undefined"){return}const s=["gov-form-message"];s.forEach((s=>{switch(s){case"gov-form-message":if(!customElements.get(s)){customElements.define(s,m)}break}}))}v();export{m as G,v as d};
2
- //# sourceMappingURL=p-22cd88f7.js.map
@@ -1,2 +0,0 @@
1
- const o={bg:"#ecae1a",text:"#3b3b3b"};const t={bg:"#2362a2",text:"#fff"};const c={bg:"#c52a3a",text:"#fff"};const n=(o,c=t)=>{const n=["color: "+c.text,"background: "+c.bg,"font-size: 11px","padding: 2px 4px","border-radius: 3px","font-weight: 600"].join(";");console.log("%cgov",n,o)};const s=t=>{n(t,o)};const a=o=>{n(o,c)};export{a,s as g};
2
- //# sourceMappingURL=p-561fa17b.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["WARNING_COLORS","bg","text","INFO_COLORS","ERROR_COLORS","govLog","message","colors","styles","join","console","log","govWarningLog","govErrorLog"],"sources":["../../../packages/core/src/helpers/Log/gov.log.ts"],"sourcesContent":["interface ColorConfig {\n\tbg: string\n\ttext: string\n}\n\nconst WARNING_COLORS: ColorConfig = { bg: '#ecae1a', text: '#3b3b3b' }\nconst INFO_COLORS: ColorConfig = { bg: '#2362a2', text: '#fff' }\nconst ERROR_COLORS: ColorConfig = { bg: '#c52a3a', text: '#fff' }\n\nexport const govLog = (message: string, colors: ColorConfig = INFO_COLORS): void => {\n\tconst styles = ['color: ' + colors.text, 'background: ' + colors.bg, 'font-size: 11px', 'padding: 2px 4px', 'border-radius: 3px', 'font-weight: 600'].join(\n\t\t';'\n\t)\n\n\tconsole.log('%cgov', styles, message)\n}\n\nexport const govWarningLog = (message: string): void => {\n\tgovLog(message, WARNING_COLORS)\n}\n\nexport const govErrorLog = (message: string): void => {\n\tgovLog(message, ERROR_COLORS)\n}\n"],"mappings":"AAKA,MAAMA,EAA8B,CAAEC,GAAI,UAAWC,KAAM,WAC3D,MAAMC,EAA2B,CAAEF,GAAI,UAAWC,KAAM,QACxD,MAAME,EAA4B,CAAEH,GAAI,UAAWC,KAAM,QAElD,MAAMG,EAAS,CAACC,EAAiBC,EAAsBJ,KAC7D,MAAMK,EAAS,CAAC,UAAYD,EAAOL,KAAM,eAAiBK,EAAON,GAAI,kBAAmB,mBAAoB,qBAAsB,oBAAoBQ,KACrJ,KAGDC,QAAQC,IAAI,QAASH,EAAQF,EAAQ,E,MAGzBM,EAAiBN,IAC7BD,EAAOC,EAASN,EAAe,E,MAGnBa,EAAeP,IAC3BD,EAAOC,EAASF,EAAa,S"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["govFormInputCss","Tags","GovFormInput","proxyCustomElement","H","constructor","this","h","govHost","host","inputId","createID","f","govForm","validateVariant","newValue","validateProp","FormInputVariants","FormInputClass","root","validateSize","FormInputSizes","watchDisabled","passControlAttrs","passAttrToControl","size","toBoolAttr","disabled","invalid","multiline","TEXTAREA","INPUT","componentWillLoad","variant","passAttrToLabel","String","required","componentDidRender","canValidateWcagOnRender","delay","validateWcag","render","Tag","Host","class","type","hasSlot","name","success","slot","inputType","id","identifier","onFocus","onFocusHandler","bind","onInput","onInputHandler","onBlur","onBlurHandler","onKeyUp","onKeyUpHandler","onKeyDown","onKeyDownHandler","ref","el","inputRef","placeholder","value","readonly","toBoolAttrIfDefined","autocomplete","toOnOffAttrIfDefined","autocorrect","minlength","maxlength","min","max","rows","cols","role","wcagDescribedBy","wcagLabelledBy","wcagOwns","wcagExpanded","wcagAutocomplete","e","stopPropagation","focused","govFocus","emit","component","originalEvent","govBlur","govKeyUp","govKeyDown","target","govInput","setFocus","options","focus","setValue","clearValue","getRef","validateWcagRef","validateWcagLabelFor"],"sources":["../../../packages/core/src/components/gov-form/input/gov-form-input.scss?tag=gov-form-input","../../../packages/core/src/components/gov-form/input/gov-form-input.tsx"],"sourcesContent":["/*\n * Input\n */\n\n@import \"../input/gov-form-input-core.scss\";\n$class: \".gov-form-input\";\n\n#{$class} {\n\t@extend %form-input-core;\n\n\t// VARIANTS\n\t&[type=\"reset\"] {\n\t\tinput {\n\t\t\tborder-width: 0;\n\t\t\t&:focus {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from \"@stencil/core\"\nimport { govForm } from \"../../../helpers/Dom/form\"\nimport { GovForm } from \"../../../helpers/Dom/form.types\"\nimport { govHost, toBoolAttr, toBoolAttrIfDefined, toOnOffAttrIfDefined } from \"../../../helpers/Dom/template\"\nimport { GovHost } from \"../../../helpers/Dom/template.types\"\nimport { canValidateWcagOnRender } from \"../../../helpers/Dom/win\"\nimport { validateProp } from \"../../../helpers/Validate/props\"\nimport { validateWcagLabelFor, validateWcagRef } from \"../../../helpers/Validate/wcag\"\nimport { createID } from \"../../../utils/string.utils\"\nimport { delay } from \"../../../utils/utils\"\nimport {\n\tFormInputClass,\n\tFormInputSizes,\n\tFormInputSizesType,\n\tFormInputVariants,\n\tFormInputVariantType,\n\tInputType,\n\tType,\n} from \"./constants\"\nimport { FormInputEvent } from \"./gov-form-input.types\"\nimport { Nullable } from \"../../../types/interfaces\"\n\nenum Tags {\n\tINPUT = \"input\",\n\tTEXTAREA = \"textarea\",\n}\n\n@Component({\n\ttag: \"gov-form-input\",\n\tstyleUrl: \"gov-form-input.scss\",\n})\nexport class GovFormInput {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly inputId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.inputId = createID(\"GovInput\")\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormInputElement\n\t/**\n\t * Value of input\n\t */\n\t@Prop({ reflect: true, mutable: true }) value: string\n\t/**\n\t * Custom input identifier.\n\t */\n\t@Prop({ attribute: \"identifier\" }) readonly identifier: string\n\t/**\n\t * Style variation of the form input.\n\t */\n\t@Prop() readonly variant?: FormInputVariantType = \"secondary\"\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Generates a texarea for the possibility of multiple lines\n\t */\n\t@Prop() readonly multiline: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows\n\t */\n\t@Prop() readonly rows: number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols\n\t */\n\t@Prop() readonly cols: number\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the input component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Text that appears in the form control when it has no value set\n\t */\n\t@Prop() readonly placeholder: string\n\t/**\n\t * The value is not editable\n\t */\n\t@Prop() readonly readonly: boolean\n\t/**\n\t * Minimum length (number of characters) of value\n\t */\n\t@Prop() readonly minlength: number\n\t/**\n\t * Maximum length (number of characters) of value\n\t */\n\t@Prop() readonly maxlength: number\n\t/**\n\t * Minimum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly min?: string | number\n\t/**\n\t * Maximum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly max?: string | number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocomplete\n\t */\n\t@Prop() readonly autocomplete: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocorrect\n\t */\n\t@Prop() readonly autocorrect: boolean\n\t/**\n\t * Defineds the visual style of input\n\t */\n\t@Prop() readonly type?: Type\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\n\t */\n\t@Prop({ attribute: \"input-type\" }) readonly inputType: InputType = \"text\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role\n\t */\n\t@Prop() readonly role: Nullable<string>\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({ attribute: \"wcag-described-by\" }) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({ attribute: \"wcag-owns\" }) readonly wcagOwns: string\n\t/**\n\t * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value.\n\t */\n\t@Prop({ attribute: \"wcag-autocomplete\" }) readonly wcagAutocomplete: string\n\t/**\n\t * Attribute is set on an element to indicate if a control is expanded or collapsed\n\t */\n\t@Prop({ attribute: \"wcag-expanded\" }) readonly wcagExpanded: boolean\n\t/**\n\t * Emitted when the input has focus.\n\t */\n\t@Event({ eventName: \"gov-focus\" }) govFocus: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({ eventName: \"gov-blur\" }) govBlur: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({ eventName: \"gov-input\" }) govInput: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({ eventName: \"gov-keyup\" }) govKeyUp: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({ eventName: \"gov-keydown\" }) govKeyDown: EventEmitter<FormInputEvent>\n\t@State() focused: boolean\n\n\t@Watch(\"variant\")\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(FormInputVariants, newValue, FormInputClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormInputSizes, newValue, FormInputClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"type\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", this.multiline ? Tags.TEXTAREA : Tags.INPUT)\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateSize(this.size)\n\t\tthis.passControlAttrs()\n\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\trender() {\n\t\tconst Tag = this.multiline ? Tags.TEXTAREA : Tags.INPUT\n\n\t\treturn (\n\t\t\t<Host class={FormInputClass.root} size={this.size} variant={this.variant} type={this.type}>\n\t\t\t\t{this.h.hasSlot(\"prefix\") && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\" />}\n\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && !(this.success || this.invalid) && <slot name=\"right-icon\" />}\n\n\t\t\t\t\t{this.success && !this.multiline &&\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"right-icon\" class=\"icon-validation\" name=\"check-lg\"></gov-icon>}\n\t\t\t\t\t{this.invalid && !this.multiline &&\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"right-icon\" class=\"icon-validation\" name=\"exclamation-lg\"></gov-icon>}\n\t\t\t\t\t<Tag\n\t\t\t\t\t\ttype={this.inputType}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tid={this.identifier || this.inputId}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonInput={this.onInputHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\tonKeyUp={this.onKeyUpHandler.bind(this)}\n\t\t\t\t\t\tonKeyDown={this.onKeyDownHandler.bind(this)}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\treadonly={toBoolAttrIfDefined(this.readonly)}\n\t\t\t\t\t\tautocomplete={toOnOffAttrIfDefined(this.autocomplete)}\n\t\t\t\t\t\tautocorrect={toOnOffAttrIfDefined(this.autocorrect)}\n\t\t\t\t\t\tminlength={this.minlength}\n\t\t\t\t\t\tmaxlength={this.maxlength}\n\t\t\t\t\t\tmin={this.min}\n\t\t\t\t\t\tmax={this.max}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\trows={this.rows}\n\t\t\t\t\t\tcols={this.cols}\n\t\t\t\t\t\trole={this.role}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\taria-owns={this.wcagOwns}\n\t\t\t\t\t\taria-expanded={toBoolAttrIfDefined(this.wcagExpanded)}\n\t\t\t\t\t\taria-autocomplete={this.wcagAutocomplete}\n\t\t\t\t\t/>\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot(\"sufix\") && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyUpHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyUp.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyDownHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyDown.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLInputElement).value\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.inputRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.value = value\n\t}\n\n\t/**\n\t * Clears input value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = \"\"\n\t\tthis.inputRef.value = \"\"\n\t}\n\n\t/**\n\t * Returns an instance of the native html input element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagDescribedBy, \"wcag-described-by\", FormInputClass.root)\n\t\tvalidateWcagRef(this.wcagLabelledBy, \"wcag-labelled-by\", FormInputClass.root)\n\t\tvalidateWcagRef(this.wcagOwns, \"wcag-owns\", FormInputClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.inputId, this.wcagLabelledBy, FormInputClass.root)\n\t}\n}\n"],"mappings":"iZAAA,MAAMA,EAAkB,28YCsBxB,IAAKC,GAA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AAK8C,YAAc9C,KAAKI,QAASJ,KAAK4E,eAAgBhE,EAAeC,K"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["govFormSelectCss","GovFormSelect","proxyCustomElement","H","constructor","this","h","govHost","host","f","govForm","selectId","createID","validateVariant","newValue","validateProp","FormSelectVariants","FormSelectClass","root","validateSize","FormSelectSizes","watchDisabled","passControlAttrs","watchValue","markSelectedValue","passAttrToControl","size","toBoolAttr","disabled","invalid","componentWillLoad","variant","passAttrToLabel","String","required","componentDidRender","canValidateWcagOnRender","delay","validateWcag","querySelectorAll","forEach","option","value","setAttribute","removeAttribute","render","Host","class","hasSlot","name","slot","success","id","identifier","onFocus","onFocusHandler","bind","onChange","onChangeHandler","onBlur","onBlurHandler","ref","el","selectRef","toBoolAttrIfDefined","wcagActiveDescendant","wcagControls","wcagDescribedBy","wcagLabelledBy","wcagOwns","options","map","selected","label","e","focused","govFocus","emit","component","originalEvent","govBlur","target","stopPropagation","govChange","setFocus","focus","setValue","getRef","setOptions","Array","isArray","validateWcagRef","validateWcagLabelFor"],"sources":["../../../packages/core/src/components/gov-form/select/gov-form-select.scss?tag=gov-form-select","../../../packages/core/src/components/gov-form/select/gov-form-select.tsx"],"sourcesContent":["/*\n * Select\n */\n\n@import \"../select/gov-form-select-core.scss\";\n\n$class: \".gov-form-select\";\n\n#{$class} {\n\t@extend %form-select-core;\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {govForm} from '../../../helpers/Dom/form'\nimport {GovForm} from '../../../helpers/Dom/form.types'\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\nimport {GovHost} from '../../../helpers/Dom/template.types'\nimport {canValidateWcagOnRender} from '../../../helpers/Dom/win'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {validateWcagLabelFor, validateWcagRef} from '../../../helpers/Validate/wcag'\nimport {createID} from '../../../utils/string.utils'\nimport {delay} from '../../../utils/utils'\nimport {\n\tFormSelectClass,\n\tFormSelectSizes,\n\tFormSelectSizesType,\n\tFormSelectVariants,\n\tFormSelectVariantType\n} from './constants'\nimport {FormSelectEvent, FormSelectOption} from './gov-form-select.types'\n\n@Component({\n\ttag: 'gov-form-select',\n\tstyleUrl: 'gov-form-select.scss',\n})\nexport class GovFormSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate selectRef?: HTMLSelectElement\n\n\tprivate readonly selectId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t\tthis.selectId = createID('GovSelect')\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of select\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Style variation of the form select.\n\t */\n\t@Prop() readonly variant?: FormSelectVariantType = 'secondary'\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormSelectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Indicates the id of a related component’s visually focused element.\n\t */\n\t@Prop({attribute: 'wcag-active-descendant'}) readonly wcagActiveDescendant: string\n\t/**\n\t * Use this prop to add an aria-controls attribute. Use the attribute to indicate the id of a component controlled by this component.\n\t */\n\t@Prop({attribute: 'wcag-controls'}) readonly wcagControls: string\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({attribute: 'wcag-described-by'}) readonly wcagDescribedBy: string\n\t/**\n\t * Indicates the id of a component that labels the input.\n\t */\n\t@Prop({attribute: 'wcag-labelled-by'}) readonly wcagLabelledBy: string\n\t/**\n\t * Indicates the id of a component that describes the input.\n\t */\n\t@Prop({attribute: 'wcag-owns'}) readonly wcagOwns: string\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormSelectEvent>\n\t@State() focused: boolean\n\t@State() options: FormSelectOption[] = []\n\n\t@Watch('variant')\n\tvalidateVariant(newValue: string): void {\n\t\tvalidateProp(FormSelectVariants, newValue, FormSelectClass.root)\n\t}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSelectSizes, newValue, FormSelectClass.root)\n\t}\n\n\t@Watch('disabled')\n\t@Watch('invalid')\n\t@Watch('size')\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@Watch('value')\n\twatchValue(): void {\n\t\tthis.markSelectedValue()\n\t}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl('size', this.size)\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl('invalid', toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl('type', 'select')\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateSize(this.size)\n\n\t\tthis.markSelectedValue()\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tprivate markSelectedValue() {\n\t\tthis.host.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\tif (option.value === this.value) {\n\t\t\t\toption.setAttribute('selected', 'selected')\n\t\t\t} else {\n\t\t\t\toption.removeAttribute('selected')\n\t\t\t}\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormSelectClass.root} size={this.size} variant={this.variant}>\n\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<gov-icon slot=\"right-icon\" name=\"chevron-down\" class=\"icon-arrow\"></gov-icon>\n\t\t\t\t\t{this.h.hasSlot('right-icon') && !(this.success || this.invalid) && <slot name=\"right-icon\"/>}\n\t\t\t\t\t{this.success && <gov-icon slot=\"right-icon\" class=\"icon-validation\" name=\"check-lg\"></gov-icon>}\n\t\t\t\t\t{this.invalid && <gov-icon slot=\"right-icon\" class=\"icon-validation\" name=\"exclamation-lg\"></gov-icon>}\n\t\t\t\t\t<select\n\t\t\t\t\t\tid={this.identifier || this.selectId}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-activedescendant={this.wcagActiveDescendant}\n\t\t\t\t\t\taria-controls={this.wcagControls}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-describedby={this.wcagDescribedBy}\n\t\t\t\t\t\taria-labelledby={this.wcagLabelledBy}\n\t\t\t\t\t\taria-owns={this.wcagOwns}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t\t{this.options.map((option) => {\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={option.value === this.value}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label}</option>)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.value = (e.target as HTMLSelectElement).value\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.selectRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.value = value\n\t}\n\n\t/**\n\t * Returns an instance of the native html select element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLSelectElement> {\n\t\treturn this.selectRef\n\t}\n\n\t/**\n\t * Sets the selection options\n\t */\n\t@Method()\n\tasync setOptions(options: FormSelectOption[]): Promise<void> {\n\t\tif (Array.isArray(options)) {\n\t\t\tthis.options = options\n\t\t}\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tasync validateWcag(): Promise<void> {\n\t\tvalidateWcagRef(this.wcagActiveDescendant, 'wcag-active-descendant', FormSelectClass.root)\n\t\tvalidateWcagRef(this.wcagControls, 'wcag-controls', FormSelectClass.root)\n\t\tvalidateWcagRef(this.wcagDescribedBy, 'wcag-described-by', FormSelectClass.root)\n\t\tvalidateWcagRef(this.wcagOwns, 'wcag-owns', FormSelectClass.root)\n\t\tvalidateWcagLabelFor(this.identifier || this.selectId, this.wcagLabelledBy, FormSelectClass.root)\n\t}\n}\n"],"mappings":"0YAAA,MAAMA,EAAmB,kxlB,MCuBZC,EAAaC,EAAA,MAAAD,UAAAE,EAOzB,WAAAC,G,sMAkBmD,Y,UAIL,I,kCAST,M,qCASA,M,gNAsCE,GA7EtCC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,EAAIC,EAAQL,KAAKC,GACtBD,KAAKM,SAAWC,EAAS,Y,CA8E1B,eAAAC,CAAgBC,GACfC,EAAaC,EAAoBF,EAAUG,EAAgBC,K,CAI5D,YAAAC,CAAaL,GACZC,EAAaK,EAAiBN,EAAUG,EAAgBC,K,CAMzD,aAAAG,GACChB,KAAKiB,kB,CAIN,UAAAC,GACClB,KAAKmB,mB,CAGE,gBAAAF,GACPjB,KAAKI,EAAEgB,kBAAkB,OAAQpB,KAAKqB,MACtCrB,KAAKI,EAAEgB,kBAAkB,WAAYE,EAAWtB,KAAKuB,WACrDvB,KAAKI,EAAEgB,kBAAkB,UAAWE,EAAWtB,KAAKwB,UACpDxB,KAAKI,EAAEgB,kBAAkB,OAAQ,S,CAGlC,iBAAAK,GACCzB,KAAKQ,gBAAgBR,KAAK0B,SAC1B1B,KAAKc,aAAad,KAAKqB,MAEvBrB,KAAKmB,o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AKgE,SAAU,YAAapD,EAAgBC,MAC5D0E,EAAqBvF,KAAKgD,YAAchD,KAAKM,SAAUN,KAAK+D,eAAgBnD,EAAgBC,K"}
@@ -1,2 +0,0 @@
1
- import{a as n}from"./p-03990da5.js";const o=typeof window!=="undefined";const t=t=>o&&window&&n(t,window);const s=()=>{const n={canValidateWcagOnRender:false,iconsPath:"/assets/icons",iconsLazyLoad:true,documentNode:document?document:null};const o=t("GOV_DS_CONFIG");if(o){return Object.assign(Object.assign({},n),o)}return n};const c=()=>s().canValidateWcagOnRender;const e=()=>s().iconsPath;const a=()=>s().iconsLazyLoad;const d=()=>s().documentNode;export{a,c,d,e as i};
2
- //# sourceMappingURL=p-d23e6972.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["isWindow","window","getWindowProperty","name","property","config","defaultConfig","canValidateWcagOnRender","iconsPath","iconsLazyLoad","documentNode","document","windowProperty","Object","assign"],"sources":["../../../packages/core/src/helpers/Dom/win.ts"],"sourcesContent":["import { property } from '../../utils/utils'\n\ninterface IConfig {\n\tcanValidateWcagOnRender: boolean\n\ticonsPath: string\n\ticonsLazyLoad: boolean\n\tdocumentNode: Document\n}\n\nexport const isWindow = typeof window !== \"undefined\"\n\nconst getWindowProperty = <T>(name: string): Partial<T> | undefined => isWindow && window && property(name as keyof typeof window, window)\n\nconst config = (): IConfig => {\n\tconst defaultConfig: IConfig = {\n\t\tcanValidateWcagOnRender: false,\n\t\ticonsPath: '/assets/icons',\n\t\ticonsLazyLoad: true,\n\t\tdocumentNode: document ? document : null,\n\t}\n\n\tconst windowProperty = getWindowProperty<IConfig>('GOV_DS_CONFIG')\n\tif (windowProperty) {\n\t\treturn { ...defaultConfig, ...windowProperty }\n\t}\n\n\treturn defaultConfig\n}\n\nexport const canValidateWcagOnRender = (): IConfig['canValidateWcagOnRender'] => config().canValidateWcagOnRender\nexport const iconsPath = (): IConfig['iconsPath'] => config().iconsPath\nexport const iconsLazyLoad = (): IConfig['iconsLazyLoad'] => config().iconsLazyLoad\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\n"],"mappings":"oCASO,MAAMA,SAAkBC,SAAW,YAE1C,MAAMC,EAAwBC,GAAyCH,GAAYC,QAAUG,EAASD,EAA6BF,QAEnI,MAAMI,EAAS,KACd,MAAMC,EAAyB,CAC9BC,wBAAyB,MACzBC,UAAW,gBACXC,cAAe,KACfC,aAAcC,SAAWA,SAAW,MAGrC,MAAMC,EAAiBV,EAA2B,iBAClD,GAAIU,EAAgB,CACnB,OAAAC,OAAAC,OAAAD,OAAAC,OAAA,GAAYR,GAAkBM,E,CAG/B,OAAON,CAAa,E,MAGRC,EAA0B,IAA0CF,IAASE,wB,MAC7EC,EAAY,IAA4BH,IAASG,U,MACjDC,EAAgB,IAAgCJ,IAASI,c,MACzDC,EAAe,IAA+BL,IAASK,oB"}