@gov-design-system-ce/components 4.2.9 → 4.6.0

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 (1489) hide show
  1. package/dist/cjs/Fragment-D4qSkFah.js.map +1 -1
  2. package/dist/cjs/accessibility-BQJmIVWV.js.map +1 -1
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  4. package/dist/cjs/array.utils-DOh1gCQS.js.map +1 -1
  5. package/dist/cjs/attribute-CH1-zDDl.js.map +1 -1
  6. package/dist/cjs/colors-DgrrxjsX.js.map +1 -1
  7. package/dist/cjs/constants-357ehBFU.js.map +1 -1
  8. package/dist/cjs/constants-CFAhiwqu.js.map +1 -1
  9. package/dist/cjs/constants-CYm8AK_D.js.map +1 -1
  10. package/dist/cjs/constants-CbBhWRUQ.js.map +1 -1
  11. package/dist/cjs/constants-ChDSk4SZ.js.map +1 -1
  12. package/dist/cjs/constants-D6LZ31rS.js.map +1 -1
  13. package/dist/cjs/constants-DcKnOyW4.js.map +1 -1
  14. package/dist/cjs/constants-Dmmp9FHy.js.map +1 -1
  15. package/dist/cjs/constants-WvkMgj1j.js.map +1 -1
  16. package/dist/cjs/constants-ymB2dvwV.js.map +1 -1
  17. package/dist/cjs/constants-z2ZSS2je.js.map +1 -1
  18. package/dist/cjs/core.cjs.js +3 -3
  19. package/dist/cjs/core.cjs.js.map +1 -1
  20. package/dist/cjs/form-GgXzZZ-E.js.map +1 -1
  21. package/dist/cjs/gov-accordion-item.cjs.entry.js +5 -5
  22. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  23. package/dist/cjs/gov-accordion-item.entry.cjs.js.map +1 -1
  24. package/dist/cjs/gov-accordion.cjs.entry.js +3 -3
  25. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-accordion.entry.cjs.js.map +1 -1
  27. package/dist/cjs/gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js.map +1 -1
  28. package/dist/cjs/gov-attachments_3.cjs.entry.js +11 -7
  29. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-backdrop.cjs.entry.js +3 -3
  31. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-backdrop.entry.cjs.js.map +1 -1
  33. package/dist/cjs/gov-banner.cjs.entry.js +4 -4
  34. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
  35. package/dist/cjs/gov-banner.entry.cjs.js.map +1 -1
  36. package/dist/cjs/gov-blockquote.cjs.entry.js +3 -3
  37. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gov-blockquote.entry.cjs.js.map +1 -1
  39. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
  40. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  41. package/dist/cjs/gov-breadcrumbs.entry.cjs.js.map +1 -1
  42. package/dist/cjs/gov-button.cjs.entry.js +6 -6
  43. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-button.entry.cjs.js.map +1 -1
  45. package/dist/cjs/gov-card.cjs.entry.js +3 -3
  46. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  47. package/dist/cjs/gov-card.entry.cjs.js.map +1 -1
  48. package/dist/cjs/gov-chip.cjs.entry.js +4 -4
  49. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  50. package/dist/cjs/gov-chip.entry.cjs.js.map +1 -1
  51. package/dist/cjs/gov-collapsible.cjs.entry.js +86 -0
  52. package/dist/cjs/gov-collapsible.cjs.entry.js.map +1 -0
  53. package/dist/cjs/gov-collapsible.entry.cjs.js.map +1 -0
  54. package/dist/cjs/gov-container.cjs.entry.js +3 -3
  55. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-container.entry.cjs.js.map +1 -1
  57. package/dist/cjs/gov-control-group.cjs.entry.js +3 -3
  58. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-control-group.entry.cjs.js.map +1 -1
  60. package/dist/cjs/gov-cookiebar.cjs.entry.js +3 -3
  61. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
  62. package/dist/cjs/gov-cookiebar.entry.cjs.js.map +1 -1
  63. package/dist/cjs/gov-dialog.cjs.entry.js +3 -3
  64. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-dialog.entry.cjs.js.map +1 -1
  66. package/dist/cjs/gov-dropdown.cjs.entry.js +3 -3
  67. package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
  68. package/dist/cjs/gov-dropdown.entry.cjs.js.map +1 -1
  69. package/dist/cjs/gov-empty.cjs.entry.js +3 -3
  70. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  71. package/dist/cjs/gov-empty.entry.cjs.js.map +1 -1
  72. package/dist/cjs/gov-error-code.cjs.entry.js +3 -3
  73. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
  74. package/dist/cjs/gov-error-code.entry.cjs.js.map +1 -1
  75. package/dist/cjs/gov-flex.gov-icon.gov-theme-switch.entry.cjs.js.map +1 -1
  76. package/dist/cjs/gov-flex_3.cjs.entry.js +5 -5
  77. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  78. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
  79. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  80. package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +1 -1
  81. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +4 -4
  82. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  83. package/dist/cjs/gov-form-checkbox-group.entry.cjs.js.map +1 -1
  84. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
  85. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  86. package/dist/cjs/gov-form-checkbox.entry.cjs.js.map +1 -1
  87. package/dist/cjs/gov-form-control.cjs.entry.js +3 -3
  88. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  89. package/dist/cjs/gov-form-control.entry.cjs.js.map +1 -1
  90. package/dist/cjs/gov-form-file.cjs.entry.js +3 -7
  91. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  92. package/dist/cjs/gov-form-file.entry.cjs.js.map +1 -1
  93. package/dist/cjs/gov-form-group.cjs.entry.js +3 -3
  94. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  95. package/dist/cjs/gov-form-group.entry.cjs.js.map +1 -1
  96. package/dist/cjs/gov-form-input.gov-skeleton.entry.cjs.js.map +1 -1
  97. package/dist/cjs/gov-form-input_2.cjs.entry.js +8 -8
  98. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  99. package/dist/cjs/gov-form-label.cjs.entry.js +2 -2
  100. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  101. package/dist/cjs/gov-form-label.entry.cjs.js.map +1 -1
  102. package/dist/cjs/gov-form-multi-select.cjs.entry.js +4 -4
  103. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  104. package/dist/cjs/gov-form-multi-select.entry.cjs.js.map +1 -1
  105. package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
  106. package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
  107. package/dist/cjs/gov-form-password-power.entry.cjs.js.map +1 -1
  108. package/dist/cjs/gov-form-radio-group.cjs.entry.js +4 -4
  109. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  110. package/dist/cjs/gov-form-radio-group.entry.cjs.js.map +1 -1
  111. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
  112. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  113. package/dist/cjs/gov-form-radio.entry.cjs.js.map +1 -1
  114. package/dist/cjs/gov-form-range.cjs.entry.js +4 -4
  115. package/dist/cjs/gov-form-range.cjs.entry.js.map +1 -1
  116. package/dist/cjs/gov-form-range.entry.cjs.js.map +1 -1
  117. package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
  118. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  119. package/dist/cjs/gov-form-search.entry.cjs.js.map +1 -1
  120. package/dist/cjs/gov-form-select.cjs.entry.js +4 -4
  121. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  122. package/dist/cjs/gov-form-select.entry.cjs.js.map +1 -1
  123. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
  124. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  125. package/dist/cjs/gov-form-switch.entry.cjs.js.map +1 -1
  126. package/dist/cjs/gov-grid-item.cjs.entry.js +3 -3
  127. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  128. package/dist/cjs/gov-grid-item.entry.cjs.js.map +1 -1
  129. package/dist/cjs/gov-grid.cjs.entry.js +3 -3
  130. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  131. package/dist/cjs/gov-grid.entry.cjs.js.map +1 -1
  132. package/dist/cjs/gov-infobar.cjs.entry.js +4 -4
  133. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  134. package/dist/cjs/gov-infobar.entry.cjs.js.map +1 -1
  135. package/dist/cjs/gov-layout-column.cjs.entry.js +3 -3
  136. package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -1
  137. package/dist/cjs/gov-layout-column.entry.cjs.js.map +1 -1
  138. package/dist/cjs/gov-layout.cjs.entry.js +3 -3
  139. package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
  140. package/dist/cjs/gov-layout.entry.cjs.js.map +1 -1
  141. package/dist/cjs/gov-lifecycle.cjs.entry.js +2 -2
  142. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -1
  143. package/dist/cjs/gov-lifecycle.entry.cjs.js.map +1 -1
  144. package/dist/cjs/gov-link.cjs.entry.js +3 -3
  145. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  146. package/dist/cjs/gov-link.entry.cjs.js.map +1 -1
  147. package/dist/cjs/gov-loading.cjs.entry.js +3 -3
  148. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  149. package/dist/cjs/gov-loading.entry.cjs.js.map +1 -1
  150. package/dist/cjs/gov-message.cjs.entry.js +3 -3
  151. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  152. package/dist/cjs/gov-message.entry.cjs.js.map +1 -1
  153. package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
  154. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  155. package/dist/cjs/gov-pagination.entry.cjs.js.map +1 -1
  156. package/dist/cjs/gov-spacer.cjs.entry.js +3 -3
  157. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  158. package/dist/cjs/gov-spacer.entry.cjs.js.map +1 -1
  159. package/dist/cjs/gov-stepper-item.cjs.entry.js +3 -3
  160. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  161. package/dist/cjs/gov-stepper-item.entry.cjs.js.map +1 -1
  162. package/dist/cjs/gov-stepper.cjs.entry.js +3 -3
  163. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  164. package/dist/cjs/gov-stepper.entry.cjs.js.map +1 -1
  165. package/dist/cjs/gov-tabs-item.cjs.entry.js +3 -3
  166. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
  167. package/dist/cjs/gov-tabs-item.entry.cjs.js.map +1 -1
  168. package/dist/cjs/gov-tabs.cjs.entry.js +3 -3
  169. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  170. package/dist/cjs/gov-tabs.entry.cjs.js.map +1 -1
  171. package/dist/cjs/gov-tag.cjs.entry.js +3 -3
  172. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  173. package/dist/cjs/gov-tag.entry.cjs.js.map +1 -1
  174. package/dist/cjs/gov-tile.cjs.entry.js +3 -3
  175. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  176. package/dist/cjs/gov-tile.entry.cjs.js.map +1 -1
  177. package/dist/cjs/gov-toast.cjs.entry.js +3 -3
  178. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  179. package/dist/cjs/gov-toast.entry.cjs.js.map +1 -1
  180. package/dist/cjs/gov-tooltip.gov-tooltip-content.entry.cjs.js.map +1 -0
  181. package/dist/cjs/{gov-tooltip.cjs.entry.js → gov-tooltip_2.cjs.entry.js} +101 -33
  182. package/dist/cjs/gov-tooltip_2.cjs.entry.js.map +1 -0
  183. package/dist/cjs/gov-wizard-item.cjs.entry.js +4 -4
  184. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  185. package/dist/cjs/gov-wizard-item.entry.cjs.js.map +1 -1
  186. package/dist/cjs/gov-wizard.cjs.entry.js +3 -3
  187. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  188. package/dist/cjs/gov-wizard.entry.cjs.js.map +1 -1
  189. package/dist/cjs/gov.log-C5EH15b_.js.map +1 -1
  190. package/dist/cjs/helpers-DmI-ZOAH.js.map +1 -1
  191. package/dist/cjs/helpers.types-vap8QfRH.js.map +1 -1
  192. package/dist/cjs/{index-pjwoybrU.js → index-BEF5cZxd.js} +148 -490
  193. package/dist/cjs/index-BEF5cZxd.js.map +1 -0
  194. package/dist/cjs/loader.cjs.js +2 -2
  195. package/dist/cjs/props-CPENhBnM.js.map +1 -1
  196. package/dist/cjs/sizes-D5zsw2g5.js.map +1 -1
  197. package/dist/cjs/stencil.utils-8sCYbm34.js.map +1 -1
  198. package/dist/cjs/string.utils-BG4pUfEi.js.map +1 -1
  199. package/dist/cjs/{template-DS4pSCTb.js → template-Cj6PcLmR.js} +6 -2
  200. package/dist/cjs/template-Cj6PcLmR.js.map +1 -0
  201. package/dist/cjs/utils-NnC78QR3.js.map +1 -1
  202. package/dist/cjs/wcag-Bvzxnp5D.js.map +1 -1
  203. package/dist/collection/collection-manifest.json +2 -1
  204. package/dist/collection/components/gov-accordion/constants.js.map +1 -1
  205. package/dist/collection/components/gov-accordion/gov-accordion-item.js +3 -3
  206. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  207. package/dist/collection/components/gov-accordion/gov-accordion.js +1 -1
  208. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
  209. package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +1 -1
  210. package/dist/collection/components/gov-attachments/constants.js.map +1 -1
  211. package/dist/collection/components/gov-attachments/gov-attachments-item.css +20 -23
  212. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -1
  213. package/dist/collection/components/gov-attachments/gov-attachments-item.js +8 -2
  214. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  215. package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
  216. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
  217. package/dist/collection/components/gov-backdrop/constants.js.map +1 -1
  218. package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
  219. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  220. package/dist/collection/components/gov-banner/constants.js.map +1 -1
  221. package/dist/collection/components/gov-banner/gov-banner.js +2 -2
  222. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
  223. package/dist/collection/components/gov-blockquote/constants.js.map +1 -1
  224. package/dist/collection/components/gov-blockquote/gov-blockquote.js +1 -1
  225. package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +1 -1
  226. package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -1
  227. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -1
  228. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  229. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  230. package/dist/collection/components/gov-button/button/constants.js.map +1 -1
  231. package/dist/collection/components/gov-button/button/gov-button.js +14 -14
  232. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  233. package/dist/collection/components/gov-button/button/gov-button.types.js.map +1 -1
  234. package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -1
  235. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  236. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
  237. package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +1 -1
  238. package/dist/collection/components/gov-card/constants.js.map +1 -1
  239. package/dist/collection/components/gov-card/gov-card.js +1 -1
  240. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  241. package/dist/collection/components/gov-card/interfaces.js.map +1 -1
  242. package/dist/collection/components/gov-chip/constants.js.map +1 -1
  243. package/dist/collection/components/gov-chip/gov-chip.js +8 -8
  244. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  245. package/dist/collection/components/gov-collapsible/constants.js +18 -0
  246. package/dist/collection/components/gov-collapsible/constants.js.map +1 -0
  247. package/dist/collection/components/gov-collapsible/gov-collapsible.js +182 -0
  248. package/dist/collection/components/gov-collapsible/gov-collapsible.js.map +1 -0
  249. package/dist/collection/components/gov-container/constants.js.map +1 -1
  250. package/dist/collection/components/gov-container/gov-container.js +1 -1
  251. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  252. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  253. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  254. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  255. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -1
  256. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  257. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
  258. package/dist/collection/components/gov-dialog/constants.js.map +1 -1
  259. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  260. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  261. package/dist/collection/components/gov-empty/constants.js.map +1 -1
  262. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  263. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
  264. package/dist/collection/components/gov-error-code/constants.js.map +1 -1
  265. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  266. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
  267. package/dist/collection/components/gov-flex/constants.js.map +1 -1
  268. package/dist/collection/components/gov-flex/gov-flex.js +1 -1
  269. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  270. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
  271. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -3
  272. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  273. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -1
  274. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
  275. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +1 -1
  276. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  277. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +1 -1
  278. package/dist/collection/components/gov-form/control/constants.js.map +1 -1
  279. package/dist/collection/components/gov-form/control/gov-form-control.js +4 -4
  280. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  281. package/dist/collection/components/gov-form/file/constants.js.map +1 -1
  282. package/dist/collection/components/gov-form/file/gov-form-file.js +4 -28
  283. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  284. package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -1
  285. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  286. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  287. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -1
  288. package/dist/collection/components/gov-form/group/gov-form-group.css +12 -23
  289. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  290. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
  291. package/dist/collection/components/gov-form/group/gov-form-group.types.js.map +1 -1
  292. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  293. package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -1
  294. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  295. package/dist/collection/components/gov-form/input/gov-form-input.js +6 -6
  296. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  297. package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +1 -1
  298. package/dist/collection/components/gov-form/label/constants.js.map +1 -1
  299. package/dist/collection/components/gov-form/label/gov-form-label.js +2 -2
  300. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
  301. package/dist/collection/components/gov-form/message/constants.js.map +1 -1
  302. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  303. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
  304. package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
  305. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -4
  306. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  307. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -1
  308. package/dist/collection/components/gov-form/password-power/constants.js.map +1 -1
  309. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  310. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
  311. package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
  312. package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -2
  313. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  314. package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +1 -1
  315. package/dist/collection/components/gov-form/range/constants.js.map +1 -1
  316. package/dist/collection/components/gov-form/range/gov-form-range.js +2 -2
  317. package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -1
  318. package/dist/collection/components/gov-form/search/constants.js.map +1 -1
  319. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  320. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  321. package/dist/collection/components/gov-form/select/constants.js.map +1 -1
  322. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  323. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  324. package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -1
  325. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  326. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  327. package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +1 -1
  328. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  329. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  330. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  331. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  332. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  333. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  334. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  335. package/dist/collection/components/gov-icon/helpers.js.map +1 -1
  336. package/dist/collection/components/gov-icon/list.js.map +1 -1
  337. package/dist/collection/components/gov-infobar/constants.js.map +1 -1
  338. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  339. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  340. package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +1 -1
  341. package/dist/collection/components/gov-layout/constants.js.map +1 -1
  342. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  343. package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
  344. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  345. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
  346. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  347. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -1
  348. package/dist/collection/components/gov-link/constants.js.map +1 -1
  349. package/dist/collection/components/gov-link/gov-link.js +1 -1
  350. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  351. package/dist/collection/components/gov-loading/loading/constants.js.map +1 -1
  352. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  353. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  354. package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -1
  355. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  356. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  357. package/dist/collection/components/gov-message/constants.js.map +1 -1
  358. package/dist/collection/components/gov-message/gov-message.js +1 -1
  359. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  360. package/dist/collection/components/gov-pagination/constants.js.map +1 -1
  361. package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
  362. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  363. package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +1 -1
  364. package/dist/collection/components/gov-pagination/pagination.js.map +1 -1
  365. package/dist/collection/components/gov-spacer/constants.js.map +1 -1
  366. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  367. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
  368. package/dist/collection/components/gov-stepper/stepper/constants.js.map +1 -1
  369. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js.map +1 -1
  370. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js +1 -1
  371. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js.map +1 -1
  372. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js +1 -1
  373. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js.map +1 -1
  374. package/dist/collection/components/gov-tabs/constants.js.map +1 -1
  375. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  376. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
  377. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  378. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  379. package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -1
  380. package/dist/collection/components/gov-tag/constants.js.map +1 -1
  381. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  382. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  383. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  384. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  385. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  386. package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js.map +1 -1
  387. package/dist/collection/components/gov-tile/constants.js.map +1 -1
  388. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  389. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  390. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  391. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  392. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  393. package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
  394. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  395. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  396. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  397. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  398. package/dist/collection/components/gov-wizard/constants.js.map +1 -1
  399. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -1
  400. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  401. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  402. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -1
  403. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  404. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
  405. package/dist/collection/core/constants/colors.js.map +1 -1
  406. package/dist/collection/core/constants/sizes.js.map +1 -1
  407. package/dist/collection/core/constants/tags.js.map +1 -1
  408. package/dist/collection/core/constants/tokens.js.map +1 -1
  409. package/dist/collection/data/color-definitions.js +494 -494
  410. package/dist/collection/data/font-definitions.js +132 -132
  411. package/dist/collection/helpers/Accessibility/accessibility.js.map +1 -1
  412. package/dist/collection/helpers/Accessibility/attributes.js.map +1 -1
  413. package/dist/collection/helpers/Dom/attribute.js.map +1 -1
  414. package/dist/collection/helpers/Dom/document.js.map +1 -1
  415. package/dist/collection/helpers/Dom/form.js.map +1 -1
  416. package/dist/collection/helpers/Dom/form.types.js.map +1 -1
  417. package/dist/collection/helpers/Dom/template.js +4 -0
  418. package/dist/collection/helpers/Dom/template.js.map +1 -1
  419. package/dist/collection/helpers/Dom/template.types.js.map +1 -1
  420. package/dist/collection/helpers/Dom/win.js.map +1 -1
  421. package/dist/collection/helpers/Fragment.js.map +1 -1
  422. package/dist/collection/helpers/Log/gov.log.js.map +1 -1
  423. package/dist/collection/helpers/Validate/props.js.map +1 -1
  424. package/dist/collection/helpers/Validate/wcag.js.map +1 -1
  425. package/dist/collection/index.js +2 -1
  426. package/dist/collection/index.js.map +1 -1
  427. package/dist/collection/types/event.types.js.map +1 -1
  428. package/dist/collection/types/interfaces.js.map +1 -1
  429. package/dist/collection/utils/array.utils.js.map +1 -1
  430. package/dist/collection/utils/bool.utils.js.map +1 -1
  431. package/dist/collection/utils/dom.utils.js.map +1 -1
  432. package/dist/collection/utils/ds.utils.js.map +1 -1
  433. package/dist/collection/utils/file.utils.js.map +1 -1
  434. package/dist/collection/utils/helpers.types.js.map +1 -1
  435. package/dist/collection/utils/icon.utils.js.map +1 -1
  436. package/dist/collection/utils/number.utils.js.map +1 -1
  437. package/dist/collection/utils/object.utils.js.map +1 -1
  438. package/dist/collection/utils/stencil.utils.js.map +1 -1
  439. package/dist/collection/utils/string.utils.js.map +1 -1
  440. package/dist/collection/utils/utils.js.map +1 -1
  441. package/dist/components/gov-accordion-item.js +1 -1
  442. package/dist/components/gov-accordion-item.js.map +1 -1
  443. package/dist/components/gov-accordion.js +1 -1
  444. package/dist/components/gov-accordion.js.map +1 -1
  445. package/dist/components/gov-attachments-item.js +1 -1
  446. package/dist/components/gov-attachments.js +1 -1
  447. package/dist/components/gov-backdrop.js +1 -1
  448. package/dist/components/gov-banner.js +1 -1
  449. package/dist/components/gov-banner.js.map +1 -1
  450. package/dist/components/gov-blockquote.js +1 -1
  451. package/dist/components/gov-blockquote.js.map +1 -1
  452. package/dist/components/gov-breadcrumbs.js +1 -1
  453. package/dist/components/gov-breadcrumbs.js.map +1 -1
  454. package/dist/components/gov-button.js +1 -1
  455. package/dist/components/gov-card.js +1 -1
  456. package/dist/components/gov-card.js.map +1 -1
  457. package/dist/components/gov-chip.js +1 -1
  458. package/dist/components/gov-collapsible.d.ts +11 -0
  459. package/dist/components/gov-collapsible.js +2 -0
  460. package/dist/components/gov-collapsible.js.map +1 -0
  461. package/dist/components/gov-container.js +1 -1
  462. package/dist/components/gov-container.js.map +1 -1
  463. package/dist/components/gov-control-group.js +1 -1
  464. package/dist/components/gov-control-group.js.map +1 -1
  465. package/dist/components/gov-cookiebar.js +1 -1
  466. package/dist/components/gov-cookiebar.js.map +1 -1
  467. package/dist/components/gov-dialog.js +1 -1
  468. package/dist/components/gov-dialog.js.map +1 -1
  469. package/dist/components/gov-dropdown.js +1 -1
  470. package/dist/components/gov-dropdown.js.map +1 -1
  471. package/dist/components/gov-empty.js +1 -1
  472. package/dist/components/gov-empty.js.map +1 -1
  473. package/dist/components/gov-error-code.js +1 -1
  474. package/dist/components/gov-error-code.js.map +1 -1
  475. package/dist/components/gov-flex.js +1 -1
  476. package/dist/components/gov-flex.js.map +1 -1
  477. package/dist/components/gov-form-autocomplete.js +1 -1
  478. package/dist/components/gov-form-checkbox-group.js +1 -1
  479. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  480. package/dist/components/gov-form-checkbox.js +1 -1
  481. package/dist/components/gov-form-checkbox.js.map +1 -1
  482. package/dist/components/gov-form-control.js +1 -1
  483. package/dist/components/gov-form-control.js.map +1 -1
  484. package/dist/components/gov-form-file.js +1 -1
  485. package/dist/components/gov-form-file.js.map +1 -1
  486. package/dist/components/gov-form-group.js +1 -1
  487. package/dist/components/gov-form-group.js.map +1 -1
  488. package/dist/components/gov-form-input.js +1 -1
  489. package/dist/components/gov-form-label.js +1 -1
  490. package/dist/components/gov-form-label.js.map +1 -1
  491. package/dist/components/gov-form-message.js +1 -1
  492. package/dist/components/gov-form-multi-select.js +1 -1
  493. package/dist/components/gov-form-multi-select.js.map +1 -1
  494. package/dist/components/gov-form-password-power.js +1 -1
  495. package/dist/components/gov-form-password-power.js.map +1 -1
  496. package/dist/components/gov-form-radio-group.js +1 -1
  497. package/dist/components/gov-form-radio-group.js.map +1 -1
  498. package/dist/components/gov-form-radio.js +1 -1
  499. package/dist/components/gov-form-radio.js.map +1 -1
  500. package/dist/components/gov-form-range.js +1 -1
  501. package/dist/components/gov-form-range.js.map +1 -1
  502. package/dist/components/gov-form-search.js +1 -1
  503. package/dist/components/gov-form-search.js.map +1 -1
  504. package/dist/components/gov-form-select.js +1 -1
  505. package/dist/components/gov-form-switch.js +1 -1
  506. package/dist/components/gov-form-switch.js.map +1 -1
  507. package/dist/components/gov-grid-item.js +1 -1
  508. package/dist/components/gov-grid-item.js.map +1 -1
  509. package/dist/components/gov-grid.js +1 -1
  510. package/dist/components/gov-grid.js.map +1 -1
  511. package/dist/components/gov-icon.js +1 -1
  512. package/dist/components/gov-infobar.js +1 -1
  513. package/dist/components/gov-infobar.js.map +1 -1
  514. package/dist/components/gov-layout-column.js +1 -1
  515. package/dist/components/gov-layout-column.js.map +1 -1
  516. package/dist/components/gov-layout.js +1 -1
  517. package/dist/components/gov-layout.js.map +1 -1
  518. package/dist/components/gov-lifecycle.js +1 -1
  519. package/dist/components/gov-lifecycle.js.map +1 -1
  520. package/dist/components/gov-link.js +1 -1
  521. package/dist/components/gov-link.js.map +1 -1
  522. package/dist/components/gov-loading.js +1 -1
  523. package/dist/components/gov-loading.js.map +1 -1
  524. package/dist/components/gov-message.js +1 -1
  525. package/dist/components/gov-message.js.map +1 -1
  526. package/dist/components/gov-pagination.js +1 -1
  527. package/dist/components/gov-pagination.js.map +1 -1
  528. package/dist/components/gov-skeleton.js +1 -1
  529. package/dist/components/gov-spacer.js +1 -1
  530. package/dist/components/gov-spacer.js.map +1 -1
  531. package/dist/components/gov-stepper-item.js +1 -1
  532. package/dist/components/gov-stepper-item.js.map +1 -1
  533. package/dist/components/gov-stepper.js +1 -1
  534. package/dist/components/gov-stepper.js.map +1 -1
  535. package/dist/components/gov-tabs-item.js +1 -1
  536. package/dist/components/gov-tabs-item.js.map +1 -1
  537. package/dist/components/gov-tabs.js +1 -1
  538. package/dist/components/gov-tabs.js.map +1 -1
  539. package/dist/components/gov-tag.js +1 -1
  540. package/dist/components/gov-tag.js.map +1 -1
  541. package/dist/components/gov-theme-switch.js +1 -1
  542. package/dist/components/gov-theme-switch.js.map +1 -1
  543. package/dist/components/gov-tile.js +1 -1
  544. package/dist/components/gov-tile.js.map +1 -1
  545. package/dist/components/gov-toast.js +1 -1
  546. package/dist/components/gov-toast.js.map +1 -1
  547. package/dist/components/gov-tooltip-content.js +1 -1
  548. package/dist/components/gov-tooltip-content.js.map +1 -1
  549. package/dist/components/gov-tooltip.js +1 -1
  550. package/dist/components/gov-tooltip.js.map +1 -1
  551. package/dist/components/gov-wizard-item.js +1 -1
  552. package/dist/components/gov-wizard-item.js.map +1 -1
  553. package/dist/components/gov-wizard.js +1 -1
  554. package/dist/components/gov-wizard.js.map +1 -1
  555. package/dist/components/index.js +1 -1
  556. package/dist/components/index.js.map +1 -1
  557. package/dist/components/p-2_-up8FX.js +2 -0
  558. package/dist/components/p-2_-up8FX.js.map +1 -0
  559. package/dist/components/p-4i8qDRtu.js.map +1 -1
  560. package/dist/components/p-5itQzbON.js.map +1 -1
  561. package/dist/components/p-9VlKyZSl.js +2 -0
  562. package/dist/components/p-9VlKyZSl.js.map +1 -0
  563. package/dist/components/p-9imLQpxb.js.map +1 -1
  564. package/dist/components/p-B0hcuYXk.js.map +1 -1
  565. package/dist/components/p-B3tdsiZv.js.map +1 -1
  566. package/dist/components/{p-B03Rpjps.js → p-BJnSrRNH.js} +2 -2
  567. package/dist/components/p-BJnSrRNH.js.map +1 -0
  568. package/dist/components/p-BKP-F1qP.js.map +1 -1
  569. package/dist/components/p-BTwdrNoS.js.map +1 -1
  570. package/dist/components/p-BUmDydor.js.map +1 -1
  571. package/dist/components/{p-9COKmDO0.js → p-Ba8Z-AIX.js} +2 -2
  572. package/dist/components/p-Ba8Z-AIX.js.map +1 -0
  573. package/dist/components/p-BcQO4NH2.js.map +1 -1
  574. package/dist/components/p-BnxqJyb_.js +2 -0
  575. package/dist/components/p-BnxqJyb_.js.map +1 -0
  576. package/dist/components/p-C6JN9gdb.js.map +1 -1
  577. package/dist/components/p-CJnwyVlG.js +2 -0
  578. package/dist/components/p-CJnwyVlG.js.map +1 -0
  579. package/dist/components/p-CNqoJU2V.js.map +1 -1
  580. package/dist/components/p-CQvUntGY.js.map +1 -1
  581. package/dist/components/p-CUVZZBqo.js.map +1 -1
  582. package/dist/components/p-CWqMiVYH.js +2 -0
  583. package/dist/components/p-CWqMiVYH.js.map +1 -0
  584. package/dist/components/p-CXgom82_.js.map +1 -1
  585. package/dist/components/p-CZr7GBEo.js.map +1 -1
  586. package/dist/components/p-CgXcNDpE.js +2 -0
  587. package/dist/components/p-CgXcNDpE.js.map +1 -0
  588. package/dist/components/p-Cjg0wpDG.js.map +1 -1
  589. package/dist/components/p-ClYmjarv.js.map +1 -1
  590. package/dist/components/{p-wlTP5ZEU.js → p-D8QfVS4O.js} +2 -2
  591. package/dist/components/p-D8QfVS4O.js.map +1 -0
  592. package/dist/components/p-DBXGhafv.js.map +1 -1
  593. package/dist/components/p-DKo9A5gq.js +2 -0
  594. package/dist/components/p-DKo9A5gq.js.map +1 -0
  595. package/dist/components/p-DW1DKFMF.js +2 -0
  596. package/dist/components/p-DW1DKFMF.js.map +1 -0
  597. package/dist/components/p-DZJk8GrA.js +2 -0
  598. package/dist/components/p-DZJk8GrA.js.map +1 -0
  599. package/dist/components/p-DfI_0WW6.js.map +1 -1
  600. package/dist/components/{p-Cy7Wk3yM.js → p-DhGb8cBK.js} +2 -2
  601. package/dist/components/p-DhGb8cBK.js.map +1 -0
  602. package/dist/components/p-DrPpH_9c.js.map +1 -1
  603. package/dist/components/p-EeKNA85D.js.map +1 -1
  604. package/dist/components/p-GYov8gU1.js.map +1 -1
  605. package/dist/components/p-Nvj7WFs_.js.map +1 -1
  606. package/dist/components/p-Q99QrOoi.js.map +1 -1
  607. package/dist/components/p-U40vKHrs.js.map +1 -1
  608. package/dist/components/{p-DJ1DN3ks.js → p-_FzmpyXv.js} +2 -2
  609. package/dist/components/p-_FzmpyXv.js.map +1 -0
  610. package/dist/components/p-vN03FcXN.js.map +1 -1
  611. package/dist/core/core.css +1252 -629
  612. package/dist/core/core.esm.js +1 -1
  613. package/dist/core/core.esm.js.map +1 -1
  614. package/dist/core/gov-accordion-item.entry.esm.js.map +1 -1
  615. package/dist/core/gov-accordion.entry.esm.js.map +1 -1
  616. package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +1 -1
  617. package/dist/core/gov-backdrop.entry.esm.js.map +1 -1
  618. package/dist/core/gov-banner.entry.esm.js.map +1 -1
  619. package/dist/core/gov-blockquote.entry.esm.js.map +1 -1
  620. package/dist/core/gov-breadcrumbs.entry.esm.js.map +1 -1
  621. package/dist/core/gov-button.entry.esm.js.map +1 -1
  622. package/dist/core/gov-card.entry.esm.js.map +1 -1
  623. package/dist/core/gov-chip.entry.esm.js.map +1 -1
  624. package/dist/core/gov-collapsible.entry.esm.js.map +1 -0
  625. package/dist/core/gov-container.entry.esm.js.map +1 -1
  626. package/dist/core/gov-control-group.entry.esm.js.map +1 -1
  627. package/dist/core/gov-cookiebar.entry.esm.js.map +1 -1
  628. package/dist/core/gov-dialog.entry.esm.js.map +1 -1
  629. package/dist/core/gov-dropdown.entry.esm.js.map +1 -1
  630. package/dist/core/gov-empty.entry.esm.js.map +1 -1
  631. package/dist/core/gov-error-code.entry.esm.js.map +1 -1
  632. package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +1 -1
  633. package/dist/core/gov-form-autocomplete.entry.esm.js.map +1 -1
  634. package/dist/core/gov-form-checkbox-group.entry.esm.js.map +1 -1
  635. package/dist/core/gov-form-checkbox.entry.esm.js.map +1 -1
  636. package/dist/core/gov-form-control.entry.esm.js.map +1 -1
  637. package/dist/core/gov-form-file.entry.esm.js.map +1 -1
  638. package/dist/core/gov-form-group.entry.esm.js.map +1 -1
  639. package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +1 -1
  640. package/dist/core/gov-form-label.entry.esm.js.map +1 -1
  641. package/dist/core/gov-form-multi-select.entry.esm.js.map +1 -1
  642. package/dist/core/gov-form-password-power.entry.esm.js.map +1 -1
  643. package/dist/core/gov-form-radio-group.entry.esm.js.map +1 -1
  644. package/dist/core/gov-form-radio.entry.esm.js.map +1 -1
  645. package/dist/core/gov-form-range.entry.esm.js.map +1 -1
  646. package/dist/core/gov-form-search.entry.esm.js.map +1 -1
  647. package/dist/core/gov-form-select.entry.esm.js.map +1 -1
  648. package/dist/core/gov-form-switch.entry.esm.js.map +1 -1
  649. package/dist/core/gov-grid-item.entry.esm.js.map +1 -1
  650. package/dist/core/gov-grid.entry.esm.js.map +1 -1
  651. package/dist/core/gov-infobar.entry.esm.js.map +1 -1
  652. package/dist/core/gov-layout-column.entry.esm.js.map +1 -1
  653. package/dist/core/gov-layout.entry.esm.js.map +1 -1
  654. package/dist/core/gov-lifecycle.entry.esm.js.map +1 -1
  655. package/dist/core/gov-link.entry.esm.js.map +1 -1
  656. package/dist/core/gov-loading.entry.esm.js.map +1 -1
  657. package/dist/core/gov-message.entry.esm.js.map +1 -1
  658. package/dist/core/gov-pagination.entry.esm.js.map +1 -1
  659. package/dist/core/gov-spacer.entry.esm.js.map +1 -1
  660. package/dist/core/gov-stepper-item.entry.esm.js.map +1 -1
  661. package/dist/core/gov-stepper.entry.esm.js.map +1 -1
  662. package/dist/core/gov-tabs-item.entry.esm.js.map +1 -1
  663. package/dist/core/gov-tabs.entry.esm.js.map +1 -1
  664. package/dist/core/gov-tag.entry.esm.js.map +1 -1
  665. package/dist/core/gov-tile.entry.esm.js.map +1 -1
  666. package/dist/core/gov-toast.entry.esm.js.map +1 -1
  667. package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +1 -0
  668. package/dist/core/gov-wizard-item.entry.esm.js.map +1 -1
  669. package/dist/core/gov-wizard.entry.esm.js.map +1 -1
  670. package/dist/core/{p-c1a1fc45.entry.js → p-017d6340.entry.js} +2 -2
  671. package/dist/core/p-017d6340.entry.js.map +1 -0
  672. package/dist/core/p-01bc645f.entry.js +2 -0
  673. package/dist/core/p-01bc645f.entry.js.map +1 -0
  674. package/dist/core/p-0e06af2b.entry.js +2 -0
  675. package/dist/core/p-0e06af2b.entry.js.map +1 -0
  676. package/dist/core/{p-35cd4ecd.entry.js → p-1375d52d.entry.js} +2 -2
  677. package/dist/core/p-1375d52d.entry.js.map +1 -0
  678. package/dist/core/p-264cbd4e.entry.js +2 -0
  679. package/dist/core/p-264cbd4e.entry.js.map +1 -0
  680. package/dist/core/{p-2142c481.entry.js → p-2cfa670d.entry.js} +2 -2
  681. package/dist/core/p-2cfa670d.entry.js.map +1 -0
  682. package/dist/core/p-33a62c22.entry.js +2 -0
  683. package/dist/core/p-33a62c22.entry.js.map +1 -0
  684. package/dist/core/p-37f6095e.entry.js +2 -0
  685. package/dist/core/p-37f6095e.entry.js.map +1 -0
  686. package/dist/core/p-3cf20b56.entry.js +2 -0
  687. package/dist/core/p-3cf20b56.entry.js.map +1 -0
  688. package/dist/core/{p-0dbda4ab.entry.js → p-46824842.entry.js} +2 -2
  689. package/dist/core/p-46824842.entry.js.map +1 -0
  690. package/dist/core/p-46effc25.entry.js +2 -0
  691. package/dist/core/p-46effc25.entry.js.map +1 -0
  692. package/dist/core/{p-19a408eb.entry.js → p-495e25d8.entry.js} +2 -2
  693. package/dist/core/p-495e25d8.entry.js.map +1 -0
  694. package/dist/core/p-4aea131f.entry.js +2 -0
  695. package/dist/core/p-4aea131f.entry.js.map +1 -0
  696. package/dist/core/p-4ce8e721.entry.js +2 -0
  697. package/dist/core/p-4ce8e721.entry.js.map +1 -0
  698. package/dist/core/p-5283672a.entry.js +2 -0
  699. package/dist/core/p-5283672a.entry.js.map +1 -0
  700. package/dist/core/{p-90ff56f4.entry.js → p-54209c57.entry.js} +2 -2
  701. package/dist/core/p-54209c57.entry.js.map +1 -0
  702. package/dist/core/p-56dc11ba.entry.js +2 -0
  703. package/dist/core/p-56dc11ba.entry.js.map +1 -0
  704. package/dist/core/{p-d4440adf.entry.js → p-5721cf9b.entry.js} +2 -2
  705. package/dist/core/p-5721cf9b.entry.js.map +1 -0
  706. package/dist/core/p-58911028.entry.js +2 -0
  707. package/dist/core/p-58911028.entry.js.map +1 -0
  708. package/dist/core/p-5itQzbON.js.map +1 -1
  709. package/dist/core/p-617b0dbe.entry.js +2 -0
  710. package/dist/core/p-617b0dbe.entry.js.map +1 -0
  711. package/dist/core/{p-8873dc4b.entry.js → p-6781bfc0.entry.js} +2 -2
  712. package/dist/core/p-6781bfc0.entry.js.map +1 -0
  713. package/dist/core/p-67d1e6e2.entry.js +2 -0
  714. package/dist/core/p-67d1e6e2.entry.js.map +1 -0
  715. package/dist/core/p-6e42a12a.entry.js +2 -0
  716. package/dist/core/p-6e42a12a.entry.js.map +1 -0
  717. package/dist/core/{p-bbe0d727.entry.js → p-6f173022.entry.js} +2 -2
  718. package/dist/core/p-6f173022.entry.js.map +1 -0
  719. package/dist/core/p-7099beb0.entry.js +2 -0
  720. package/dist/core/p-7099beb0.entry.js.map +1 -0
  721. package/dist/core/{p-962d5767.entry.js → p-715c0e2e.entry.js} +2 -2
  722. package/dist/core/p-715c0e2e.entry.js.map +1 -0
  723. package/dist/core/p-7387370c.entry.js +2 -0
  724. package/dist/core/p-7387370c.entry.js.map +1 -0
  725. package/dist/core/p-768fe015.entry.js +2 -0
  726. package/dist/core/p-768fe015.entry.js.map +1 -0
  727. package/dist/core/p-7a3d4b6b.entry.js +2 -0
  728. package/dist/core/p-7a3d4b6b.entry.js.map +1 -0
  729. package/dist/core/p-7f4cf2f9.entry.js +2 -0
  730. package/dist/core/p-7f4cf2f9.entry.js.map +1 -0
  731. package/dist/core/{p-aaa73dc8.entry.js → p-8161e1fe.entry.js} +2 -2
  732. package/dist/core/p-8161e1fe.entry.js.map +1 -0
  733. package/dist/core/p-820eb0fb.entry.js +2 -0
  734. package/dist/core/p-820eb0fb.entry.js.map +1 -0
  735. package/dist/core/{p-e169f098.entry.js → p-8655fd24.entry.js} +2 -2
  736. package/dist/core/p-8655fd24.entry.js.map +1 -0
  737. package/dist/core/p-8f6172d4.entry.js +2 -0
  738. package/dist/core/p-8f6172d4.entry.js.map +1 -0
  739. package/dist/core/p-90cd5ffe.entry.js +2 -0
  740. package/dist/core/p-90cd5ffe.entry.js.map +1 -0
  741. package/dist/core/p-98314c19.entry.js +2 -0
  742. package/dist/core/p-98314c19.entry.js.map +1 -0
  743. package/dist/core/p-B6CqPcY_.js.map +1 -1
  744. package/dist/core/p-BUmDydor.js.map +1 -1
  745. package/dist/core/p-BcQO4NH2.js.map +1 -1
  746. package/dist/core/p-BjcqOprh.js.map +1 -1
  747. package/dist/core/p-Bo1ROm5Q.js.map +1 -1
  748. package/dist/core/p-Bz_RzYFb.js.map +1 -1
  749. package/dist/core/p-C3R1T_pg.js.map +1 -1
  750. package/dist/core/p-C6JN9gdb.js.map +1 -1
  751. package/dist/core/p-CDIRBJsi.js.map +1 -1
  752. package/dist/core/p-CQvUntGY.js.map +1 -1
  753. package/dist/core/p-Ccwpa1ck.js.map +1 -1
  754. package/dist/core/p-CgDnDrq5.js.map +1 -1
  755. package/dist/core/p-Cjg0wpDG.js.map +1 -1
  756. package/dist/core/p-ClISz4NF.js +3 -0
  757. package/dist/core/p-ClISz4NF.js.map +1 -0
  758. package/dist/core/p-CoD1xawt.js +2 -0
  759. package/dist/core/p-CoD1xawt.js.map +1 -0
  760. package/dist/core/p-Cx3bEC5v.js.map +1 -1
  761. package/dist/core/p-CzXeijOj.js.map +1 -1
  762. package/dist/core/p-D4TGB274.js.map +1 -1
  763. package/dist/core/p-DBXGhafv.js.map +1 -1
  764. package/dist/core/p-DNztiAH0.js.map +1 -1
  765. package/dist/core/p-DQuL1Twl.js.map +1 -1
  766. package/dist/core/p-DYcNEwSZ.js.map +1 -1
  767. package/dist/core/p-EeKNA85D.js.map +1 -1
  768. package/dist/core/p-GYov8gU1.js.map +1 -1
  769. package/dist/core/p-NOJjz9dT.js.map +1 -1
  770. package/dist/core/p-Q99QrOoi.js.map +1 -1
  771. package/dist/core/p-U40vKHrs.js.map +1 -1
  772. package/dist/core/p-ac962619.entry.js +2 -0
  773. package/dist/core/p-ac962619.entry.js.map +1 -0
  774. package/dist/core/p-ae6d0bcd.entry.js +2 -0
  775. package/dist/core/p-ae6d0bcd.entry.js.map +1 -0
  776. package/dist/core/p-b3b517f0.entry.js +2 -0
  777. package/dist/core/p-b3b517f0.entry.js.map +1 -0
  778. package/dist/core/p-b7306a6f.entry.js +2 -0
  779. package/dist/core/p-b7306a6f.entry.js.map +1 -0
  780. package/dist/core/{p-d48d5870.entry.js → p-b93548cc.entry.js} +2 -2
  781. package/dist/core/p-b93548cc.entry.js.map +1 -0
  782. package/dist/core/p-be3bbe06.entry.js +2 -0
  783. package/dist/core/p-be3bbe06.entry.js.map +1 -0
  784. package/dist/core/{p-5c9371da.entry.js → p-c6b55c0a.entry.js} +2 -2
  785. package/dist/core/p-c6b55c0a.entry.js.map +1 -0
  786. package/dist/core/p-cf06a38b.entry.js +2 -0
  787. package/dist/core/p-cf06a38b.entry.js.map +1 -0
  788. package/dist/core/p-dec65494.entry.js +2 -0
  789. package/dist/core/p-dec65494.entry.js.map +1 -0
  790. package/dist/core/p-df09f0be.entry.js +2 -0
  791. package/dist/core/p-df09f0be.entry.js.map +1 -0
  792. package/dist/core/p-e0634fae.entry.js +2 -0
  793. package/dist/core/p-e0634fae.entry.js.map +1 -0
  794. package/dist/core/{p-f0505205.entry.js → p-e1b2af6b.entry.js} +2 -2
  795. package/dist/core/p-e1b2af6b.entry.js.map +1 -0
  796. package/dist/core/p-e29cd545.entry.js +2 -0
  797. package/dist/core/p-e29cd545.entry.js.map +1 -0
  798. package/dist/core/p-e5e7abe0.entry.js +2 -0
  799. package/dist/core/p-e5e7abe0.entry.js.map +1 -0
  800. package/dist/core/{p-48a3bb49.entry.js → p-e7f889c7.entry.js} +2 -2
  801. package/dist/core/p-e7f889c7.entry.js.map +1 -0
  802. package/dist/core/p-ebd3d25f.entry.js +2 -0
  803. package/dist/core/p-ebd3d25f.entry.js.map +1 -0
  804. package/dist/core/p-f067af74.entry.js +2 -0
  805. package/dist/core/p-f067af74.entry.js.map +1 -0
  806. package/dist/core/p-f58a20af.entry.js +2 -0
  807. package/dist/core/p-f58a20af.entry.js.map +1 -0
  808. package/dist/core/{p-984b6020.entry.js → p-f7bdb44a.entry.js} +2 -2
  809. package/dist/core/p-f7bdb44a.entry.js.map +1 -0
  810. package/dist/core/p-fe3bd57c.entry.js +2 -0
  811. package/dist/core/p-fe3bd57c.entry.js.map +1 -0
  812. package/dist/core/p-vN03FcXN.js.map +1 -1
  813. package/dist/dist/components/gov-accordion-item.d.ts +11 -0
  814. package/dist/dist/components/gov-accordion.d.ts +11 -0
  815. package/dist/dist/components/gov-app.d.ts +11 -0
  816. package/dist/dist/components/gov-attachments-item.d.ts +11 -0
  817. package/dist/dist/components/gov-attachments.d.ts +11 -0
  818. package/dist/dist/components/gov-backdrop.d.ts +11 -0
  819. package/dist/dist/components/gov-banner.d.ts +11 -0
  820. package/dist/dist/components/gov-blockquote.d.ts +11 -0
  821. package/dist/dist/components/gov-breadcrumbs.d.ts +11 -0
  822. package/dist/dist/components/gov-button.d.ts +11 -0
  823. package/dist/dist/components/gov-card.d.ts +11 -0
  824. package/dist/dist/components/gov-chip.d.ts +11 -0
  825. package/dist/dist/components/gov-collapsible.d.ts +11 -0
  826. package/dist/dist/components/gov-container.d.ts +11 -0
  827. package/dist/dist/components/gov-control-group.d.ts +11 -0
  828. package/dist/dist/components/gov-cookiebar.d.ts +11 -0
  829. package/dist/dist/components/gov-dialog.d.ts +11 -0
  830. package/dist/dist/components/gov-dropdown.d.ts +11 -0
  831. package/dist/dist/components/gov-empty.d.ts +11 -0
  832. package/dist/dist/components/gov-error-code.d.ts +11 -0
  833. package/dist/dist/components/gov-flex.d.ts +11 -0
  834. package/dist/dist/components/gov-form-autocomplete.d.ts +11 -0
  835. package/dist/dist/components/gov-form-checkbox-group.d.ts +11 -0
  836. package/dist/dist/components/gov-form-checkbox.d.ts +11 -0
  837. package/dist/dist/components/gov-form-control.d.ts +11 -0
  838. package/dist/dist/components/gov-form-file.d.ts +11 -0
  839. package/dist/dist/components/gov-form-group.d.ts +11 -0
  840. package/dist/dist/components/gov-form-input.d.ts +11 -0
  841. package/dist/dist/components/gov-form-label.d.ts +11 -0
  842. package/dist/dist/components/gov-form-message.d.ts +11 -0
  843. package/dist/dist/components/gov-form-multi-select.d.ts +11 -0
  844. package/dist/dist/components/gov-form-password-power.d.ts +11 -0
  845. package/dist/dist/components/gov-form-radio-group.d.ts +11 -0
  846. package/dist/dist/components/gov-form-radio.d.ts +11 -0
  847. package/dist/dist/components/gov-form-range.d.ts +11 -0
  848. package/dist/dist/components/gov-form-search.d.ts +11 -0
  849. package/dist/dist/components/gov-form-select.d.ts +11 -0
  850. package/dist/dist/components/gov-form-switch.d.ts +11 -0
  851. package/dist/dist/components/gov-grid-item.d.ts +11 -0
  852. package/dist/dist/components/gov-grid.d.ts +11 -0
  853. package/dist/dist/components/gov-icon.d.ts +11 -0
  854. package/dist/dist/components/gov-infobar.d.ts +11 -0
  855. package/dist/dist/components/gov-layout-column.d.ts +11 -0
  856. package/dist/dist/components/gov-layout.d.ts +11 -0
  857. package/dist/dist/components/gov-lifecycle.d.ts +11 -0
  858. package/dist/dist/components/gov-link.d.ts +11 -0
  859. package/dist/dist/components/gov-loading.d.ts +11 -0
  860. package/dist/dist/components/gov-message.d.ts +11 -0
  861. package/dist/dist/components/gov-pagination.d.ts +11 -0
  862. package/dist/dist/components/gov-skeleton.d.ts +11 -0
  863. package/dist/dist/components/gov-spacer.d.ts +11 -0
  864. package/dist/dist/components/gov-stepper-item.d.ts +11 -0
  865. package/dist/dist/components/gov-stepper.d.ts +11 -0
  866. package/dist/dist/components/gov-tabs-item.d.ts +11 -0
  867. package/dist/dist/components/gov-tabs.d.ts +11 -0
  868. package/dist/dist/components/gov-tag.d.ts +11 -0
  869. package/dist/dist/components/gov-theme-switch.d.ts +11 -0
  870. package/dist/dist/components/gov-tile.d.ts +11 -0
  871. package/dist/dist/components/gov-toast.d.ts +11 -0
  872. package/dist/dist/components/gov-tooltip-content.d.ts +11 -0
  873. package/dist/dist/components/gov-tooltip.d.ts +11 -0
  874. package/dist/dist/components/gov-wizard-item.d.ts +11 -0
  875. package/dist/dist/components/gov-wizard.d.ts +11 -0
  876. package/dist/dist/components/index.d.ts +33 -0
  877. package/dist/dist/dist/components/index.d.ts +33 -0
  878. package/dist/dist/dist/globals.d.ts +2 -0
  879. package/dist/dist/dist/hydrate/index.d.ts +273 -0
  880. package/dist/dist/dist/types/interfaces.d.ts +1 -0
  881. package/dist/dist/dist/types/stencil-public-runtime.d.ts +1702 -0
  882. package/dist/dist/globals.d.ts +2 -0
  883. package/dist/dist/hydrate/index.d.ts +273 -0
  884. package/dist/dist/types/components/gov-accordion/constants.d.ts +19 -0
  885. package/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +43 -0
  886. package/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +26 -0
  887. package/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
  888. package/dist/dist/types/components/gov-attachments/constants.d.ts +11 -0
  889. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
  890. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
  891. package/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
  892. package/dist/dist/types/components/gov-backdrop/constants.d.ts +4 -0
  893. package/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
  894. package/dist/dist/types/components/gov-banner/constants.d.ts +26 -0
  895. package/dist/dist/types/components/gov-banner/gov-banner.d.ts +28 -0
  896. package/dist/dist/types/components/gov-blockquote/constants.d.ts +10 -0
  897. package/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +15 -0
  898. package/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
  899. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
  900. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +42 -0
  901. package/dist/dist/types/components/gov-button/button/constants.d.ts +29 -0
  902. package/dist/dist/types/components/gov-button/button/gov-button.d.ts +133 -0
  903. package/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
  904. package/dist/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
  905. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +40 -0
  906. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
  907. package/dist/dist/types/components/gov-card/constants.d.ts +16 -0
  908. package/dist/dist/types/components/gov-card/gov-card.d.ts +57 -0
  909. package/dist/dist/types/components/gov-card/interfaces.d.ts +4 -0
  910. package/dist/dist/types/components/gov-chip/constants.d.ts +21 -0
  911. package/dist/dist/types/components/gov-chip/gov-chip.d.ts +82 -0
  912. package/dist/dist/types/components/gov-collapsible/constants.d.ts +18 -0
  913. package/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
  914. package/dist/dist/types/components/gov-container/constants.d.ts +3 -0
  915. package/dist/dist/types/components/gov-container/gov-container.d.ts +6 -0
  916. package/dist/dist/types/components/gov-control-group/constants.d.ts +7 -0
  917. package/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +24 -0
  918. package/dist/dist/types/components/gov-cookiebar/constants.d.ts +7 -0
  919. package/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
  920. package/dist/dist/types/components/gov-dialog/constants.d.ts +11 -0
  921. package/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +70 -0
  922. package/dist/dist/types/components/gov-empty/constants.d.ts +19 -0
  923. package/dist/dist/types/components/gov-empty/gov-empty.d.ts +21 -0
  924. package/dist/dist/types/components/gov-error-code/constants.d.ts +4 -0
  925. package/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
  926. package/dist/dist/types/components/gov-flex/constants.d.ts +7 -0
  927. package/dist/dist/types/components/gov-flex/gov-flex.d.ts +39 -0
  928. package/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
  929. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +149 -0
  930. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
  931. package/dist/dist/types/components/gov-form/checkbox/constants.d.ts +10 -0
  932. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +86 -0
  933. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
  934. package/dist/dist/types/components/gov-form/control/constants.d.ts +9 -0
  935. package/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +40 -0
  936. package/dist/dist/types/components/gov-form/file/constants.d.ts +7 -0
  937. package/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +129 -0
  938. package/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
  939. package/dist/dist/types/components/gov-form/group/constants.d.ts +18 -0
  940. package/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +32 -0
  941. package/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -0
  942. package/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +7 -0
  943. package/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +32 -0
  944. package/dist/dist/types/components/gov-form/input/constants.d.ts +28 -0
  945. package/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +178 -0
  946. package/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
  947. package/dist/dist/types/components/gov-form/label/constants.d.ts +8 -0
  948. package/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
  949. package/dist/dist/types/components/gov-form/message/constants.d.ts +11 -0
  950. package/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +23 -0
  951. package/dist/dist/types/components/gov-form/multiselect/constants.d.ts +10 -0
  952. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +127 -0
  953. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +10 -0
  954. package/dist/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
  955. package/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
  956. package/dist/dist/types/components/gov-form/radio/constants.d.ts +10 -0
  957. package/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +83 -0
  958. package/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
  959. package/dist/dist/types/components/gov-form/range/constants.d.ts +9 -0
  960. package/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
  961. package/dist/dist/types/components/gov-form/search/constants.d.ts +10 -0
  962. package/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +13 -0
  963. package/dist/dist/types/components/gov-form/select/constants.d.ts +8 -0
  964. package/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +89 -0
  965. package/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -0
  966. package/dist/dist/types/components/gov-form/switch/constants.d.ts +12 -0
  967. package/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +81 -0
  968. package/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
  969. package/dist/dist/types/components/gov-grid/constants.d.ts +10 -0
  970. package/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +46 -0
  971. package/dist/dist/types/components/gov-grid/gov-grid.d.ts +19 -0
  972. package/dist/dist/types/components/gov-icon/constants.d.ts +18 -0
  973. package/dist/dist/types/components/gov-icon/gov-icon.d.ts +34 -0
  974. package/dist/dist/types/components/gov-icon/helpers.d.ts +6 -0
  975. package/dist/dist/types/components/gov-icon/list.d.ts +3 -0
  976. package/dist/dist/types/components/gov-infobar/constants.d.ts +16 -0
  977. package/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +51 -0
  978. package/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -0
  979. package/dist/dist/types/components/gov-layout/constants.d.ts +20 -0
  980. package/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
  981. package/dist/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
  982. package/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  983. package/dist/dist/types/components/gov-link/constants.d.ts +8 -0
  984. package/dist/dist/types/components/gov-link/gov-link.d.ts +34 -0
  985. package/dist/dist/types/components/gov-loading/loading/constants.d.ts +9 -0
  986. package/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +13 -0
  987. package/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +21 -0
  988. package/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +46 -0
  989. package/dist/dist/types/components/gov-message/constants.d.ts +13 -0
  990. package/dist/dist/types/components/gov-message/gov-message.d.ts +16 -0
  991. package/dist/dist/types/components/gov-pagination/constants.d.ts +22 -0
  992. package/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -0
  993. package/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
  994. package/dist/dist/types/components/gov-pagination/pagination.d.ts +12 -0
  995. package/dist/dist/types/components/gov-spacer/constants.d.ts +15 -0
  996. package/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
  997. package/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +21 -0
  998. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +4 -0
  999. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +31 -0
  1000. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +22 -0
  1001. package/dist/dist/types/components/gov-tabs/constants.d.ts +28 -0
  1002. package/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +54 -0
  1003. package/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +70 -0
  1004. package/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +14 -0
  1005. package/dist/dist/types/components/gov-tag/constants.d.ts +12 -0
  1006. package/dist/dist/types/components/gov-tag/gov-tag.d.ts +35 -0
  1007. package/dist/dist/types/components/gov-theme-switch/constants.d.ts +12 -0
  1008. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +46 -0
  1009. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +10 -0
  1010. package/dist/dist/types/components/gov-tile/constants.d.ts +13 -0
  1011. package/dist/dist/types/components/gov-tile/gov-tile.d.ts +34 -0
  1012. package/dist/dist/types/components/gov-toast/constants.d.ts +17 -0
  1013. package/dist/dist/types/components/gov-toast/gov-toast.d.ts +58 -0
  1014. package/dist/dist/types/components/gov-tooltip/constants.d.ts +20 -0
  1015. package/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +28 -0
  1016. package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +58 -0
  1017. package/dist/dist/types/components/gov-wizard/constants.d.ts +19 -0
  1018. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
  1019. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +60 -0
  1020. package/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
  1021. package/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +35 -0
  1022. package/dist/dist/types/core/constants/colors.d.ts +13 -0
  1023. package/dist/dist/types/core/constants/sizes.d.ts +13 -0
  1024. package/dist/dist/types/core/constants/tags.d.ts +12 -0
  1025. package/dist/dist/types/core/constants/tokens.d.ts +1 -0
  1026. package/dist/dist/types/helpers/Accessibility/accessibility.d.ts +1 -0
  1027. package/dist/dist/types/helpers/Accessibility/attributes.d.ts +1 -0
  1028. package/dist/dist/types/helpers/Dom/attribute.d.ts +13 -0
  1029. package/dist/dist/types/helpers/Dom/document.d.ts +4 -0
  1030. package/dist/dist/types/helpers/Dom/form.d.ts +3 -0
  1031. package/dist/dist/types/helpers/Dom/form.types.d.ts +11 -0
  1032. package/dist/dist/types/helpers/Dom/template.d.ts +10 -0
  1033. package/dist/dist/types/helpers/Dom/template.types.d.ts +14 -0
  1034. package/dist/dist/types/helpers/Dom/win.d.ts +18 -0
  1035. package/dist/dist/types/helpers/Fragment.d.ts +2 -0
  1036. package/dist/dist/types/helpers/Log/gov.log.d.ts +8 -0
  1037. package/dist/dist/types/helpers/Validate/props.d.ts +1 -0
  1038. package/dist/dist/types/helpers/Validate/wcag.d.ts +4 -0
  1039. package/dist/dist/types/index.d.ts +0 -0
  1040. package/dist/dist/types/interfaces.d.ts +1 -0
  1041. package/dist/dist/types/stencil-public-runtime.d.ts +1702 -0
  1042. package/dist/dist/types/types/event.types.d.ts +4 -0
  1043. package/dist/dist/types/types/interfaces.d.ts +2 -0
  1044. package/dist/dist/types/types/typings.d.ts +6 -0
  1045. package/dist/dist/types/utils/array.utils.d.ts +2 -0
  1046. package/dist/dist/types/utils/bool.utils.d.ts +1 -0
  1047. package/dist/dist/types/utils/dom.utils.d.ts +1 -0
  1048. package/dist/dist/types/utils/ds.utils.d.ts +1 -0
  1049. package/dist/dist/types/utils/file.utils.d.ts +3 -0
  1050. package/dist/dist/types/utils/helpers.types.d.ts +49 -0
  1051. package/dist/dist/types/utils/icon.utils.d.ts +4 -0
  1052. package/dist/dist/types/utils/number.utils.d.ts +1 -0
  1053. package/dist/dist/types/utils/object.utils.d.ts +2 -0
  1054. package/dist/dist/types/utils/stencil.utils.d.ts +1 -0
  1055. package/dist/dist/types/utils/string.utils.d.ts +4 -0
  1056. package/dist/dist/types/utils/utils.d.ts +20 -0
  1057. package/dist/esm/Fragment-5itQzbON.js.map +1 -1
  1058. package/dist/esm/accessibility-wqNV8djF.js.map +1 -1
  1059. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  1060. package/dist/esm/array.utils-CJ0U_ONv.js.map +1 -1
  1061. package/dist/esm/attribute-Bz_RzYFb.js.map +1 -1
  1062. package/dist/esm/colors-U40vKHrs.js.map +1 -1
  1063. package/dist/esm/constants-BNBB_29K.js.map +1 -1
  1064. package/dist/esm/constants-BegH8u6i.js.map +1 -1
  1065. package/dist/esm/constants-BiWo5BNa.js.map +1 -1
  1066. package/dist/esm/constants-CysDgoMA.js.map +1 -1
  1067. package/dist/esm/constants-DHvN41Ek.js.map +1 -1
  1068. package/dist/esm/constants-DbTQsVRc.js.map +1 -1
  1069. package/dist/esm/constants-Du0ZtfYe.js.map +1 -1
  1070. package/dist/esm/constants-Q99QrOoi.js.map +1 -1
  1071. package/dist/esm/constants-YOtDGTm5.js.map +1 -1
  1072. package/dist/esm/constants-aqe7GX2n.js.map +1 -1
  1073. package/dist/esm/constants-oYp2tkdN.js.map +1 -1
  1074. package/dist/esm/core.js +4 -4
  1075. package/dist/esm/core.js.map +1 -1
  1076. package/dist/esm/form-DvhJiKwA.js.map +1 -1
  1077. package/dist/esm/gov-accordion-item.entry.js +5 -5
  1078. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  1079. package/dist/esm/gov-accordion.entry.js +3 -3
  1080. package/dist/esm/gov-accordion.entry.js.map +1 -1
  1081. package/dist/esm/gov-attachments.gov-attachments-item.gov-form-message.entry.js.map +1 -1
  1082. package/dist/esm/gov-attachments_3.entry.js +11 -7
  1083. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  1084. package/dist/esm/gov-backdrop.entry.js +3 -3
  1085. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  1086. package/dist/esm/gov-banner.entry.js +4 -4
  1087. package/dist/esm/gov-banner.entry.js.map +1 -1
  1088. package/dist/esm/gov-blockquote.entry.js +3 -3
  1089. package/dist/esm/gov-blockquote.entry.js.map +1 -1
  1090. package/dist/esm/gov-breadcrumbs.entry.js +3 -3
  1091. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  1092. package/dist/esm/gov-button.entry.js +6 -6
  1093. package/dist/esm/gov-button.entry.js.map +1 -1
  1094. package/dist/esm/gov-card.entry.js +3 -3
  1095. package/dist/esm/gov-card.entry.js.map +1 -1
  1096. package/dist/esm/gov-chip.entry.js +4 -4
  1097. package/dist/esm/gov-chip.entry.js.map +1 -1
  1098. package/dist/esm/gov-collapsible.entry.js +84 -0
  1099. package/dist/esm/gov-collapsible.entry.js.map +1 -0
  1100. package/dist/esm/gov-container.entry.js +3 -3
  1101. package/dist/esm/gov-container.entry.js.map +1 -1
  1102. package/dist/esm/gov-control-group.entry.js +3 -3
  1103. package/dist/esm/gov-control-group.entry.js.map +1 -1
  1104. package/dist/esm/gov-cookiebar.entry.js +3 -3
  1105. package/dist/esm/gov-cookiebar.entry.js.map +1 -1
  1106. package/dist/esm/gov-dialog.entry.js +3 -3
  1107. package/dist/esm/gov-dialog.entry.js.map +1 -1
  1108. package/dist/esm/gov-dropdown.entry.js +3 -3
  1109. package/dist/esm/gov-dropdown.entry.js.map +1 -1
  1110. package/dist/esm/gov-empty.entry.js +3 -3
  1111. package/dist/esm/gov-empty.entry.js.map +1 -1
  1112. package/dist/esm/gov-error-code.entry.js +3 -3
  1113. package/dist/esm/gov-error-code.entry.js.map +1 -1
  1114. package/dist/esm/gov-flex.gov-icon.gov-theme-switch.entry.js.map +1 -1
  1115. package/dist/esm/gov-flex_3.entry.js +5 -5
  1116. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  1117. package/dist/esm/gov-form-autocomplete.entry.js +3 -3
  1118. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  1119. package/dist/esm/gov-form-checkbox-group.entry.js +4 -4
  1120. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  1121. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  1122. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  1123. package/dist/esm/gov-form-control.entry.js +3 -3
  1124. package/dist/esm/gov-form-control.entry.js.map +1 -1
  1125. package/dist/esm/gov-form-file.entry.js +3 -7
  1126. package/dist/esm/gov-form-file.entry.js.map +1 -1
  1127. package/dist/esm/gov-form-group.entry.js +3 -3
  1128. package/dist/esm/gov-form-group.entry.js.map +1 -1
  1129. package/dist/esm/gov-form-input.gov-skeleton.entry.js.map +1 -1
  1130. package/dist/esm/gov-form-input_2.entry.js +8 -8
  1131. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  1132. package/dist/esm/gov-form-label.entry.js +2 -2
  1133. package/dist/esm/gov-form-label.entry.js.map +1 -1
  1134. package/dist/esm/gov-form-multi-select.entry.js +4 -4
  1135. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  1136. package/dist/esm/gov-form-password-power.entry.js +2 -2
  1137. package/dist/esm/gov-form-password-power.entry.js.map +1 -1
  1138. package/dist/esm/gov-form-radio-group.entry.js +4 -4
  1139. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  1140. package/dist/esm/gov-form-radio.entry.js +2 -2
  1141. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  1142. package/dist/esm/gov-form-range.entry.js +4 -4
  1143. package/dist/esm/gov-form-range.entry.js.map +1 -1
  1144. package/dist/esm/gov-form-search.entry.js +2 -2
  1145. package/dist/esm/gov-form-search.entry.js.map +1 -1
  1146. package/dist/esm/gov-form-select.entry.js +4 -4
  1147. package/dist/esm/gov-form-select.entry.js.map +1 -1
  1148. package/dist/esm/gov-form-switch.entry.js +2 -2
  1149. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  1150. package/dist/esm/gov-grid-item.entry.js +3 -3
  1151. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  1152. package/dist/esm/gov-grid.entry.js +3 -3
  1153. package/dist/esm/gov-grid.entry.js.map +1 -1
  1154. package/dist/esm/gov-infobar.entry.js +4 -4
  1155. package/dist/esm/gov-infobar.entry.js.map +1 -1
  1156. package/dist/esm/gov-layout-column.entry.js +3 -3
  1157. package/dist/esm/gov-layout-column.entry.js.map +1 -1
  1158. package/dist/esm/gov-layout.entry.js +3 -3
  1159. package/dist/esm/gov-layout.entry.js.map +1 -1
  1160. package/dist/esm/gov-lifecycle.entry.js +2 -2
  1161. package/dist/esm/gov-lifecycle.entry.js.map +1 -1
  1162. package/dist/esm/gov-link.entry.js +3 -3
  1163. package/dist/esm/gov-link.entry.js.map +1 -1
  1164. package/dist/esm/gov-loading.entry.js +3 -3
  1165. package/dist/esm/gov-loading.entry.js.map +1 -1
  1166. package/dist/esm/gov-message.entry.js +3 -3
  1167. package/dist/esm/gov-message.entry.js.map +1 -1
  1168. package/dist/esm/gov-pagination.entry.js +2 -2
  1169. package/dist/esm/gov-pagination.entry.js.map +1 -1
  1170. package/dist/esm/gov-spacer.entry.js +3 -3
  1171. package/dist/esm/gov-spacer.entry.js.map +1 -1
  1172. package/dist/esm/gov-stepper-item.entry.js +3 -3
  1173. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  1174. package/dist/esm/gov-stepper.entry.js +3 -3
  1175. package/dist/esm/gov-stepper.entry.js.map +1 -1
  1176. package/dist/esm/gov-tabs-item.entry.js +3 -3
  1177. package/dist/esm/gov-tabs-item.entry.js.map +1 -1
  1178. package/dist/esm/gov-tabs.entry.js +3 -3
  1179. package/dist/esm/gov-tabs.entry.js.map +1 -1
  1180. package/dist/esm/gov-tag.entry.js +3 -3
  1181. package/dist/esm/gov-tag.entry.js.map +1 -1
  1182. package/dist/esm/gov-tile.entry.js +3 -3
  1183. package/dist/esm/gov-tile.entry.js.map +1 -1
  1184. package/dist/esm/gov-toast.entry.js +3 -3
  1185. package/dist/esm/gov-toast.entry.js.map +1 -1
  1186. package/dist/esm/gov-tooltip.gov-tooltip-content.entry.js.map +1 -0
  1187. package/dist/esm/{gov-tooltip.entry.js → gov-tooltip_2.entry.js} +78 -11
  1188. package/dist/esm/gov-tooltip_2.entry.js.map +1 -0
  1189. package/dist/esm/gov-wizard-item.entry.js +4 -4
  1190. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  1191. package/dist/esm/gov-wizard.entry.js +3 -3
  1192. package/dist/esm/gov-wizard.entry.js.map +1 -1
  1193. package/dist/esm/gov.log-BtqD9K8d.js.map +1 -1
  1194. package/dist/esm/helpers-GYov8gU1.js.map +1 -1
  1195. package/dist/esm/helpers.types-DNztiAH0.js.map +1 -1
  1196. package/dist/esm/{index-DT2tslUp.js → index-ClISz4NF.js} +148 -490
  1197. package/dist/esm/index-ClISz4NF.js.map +1 -0
  1198. package/dist/esm/loader.js +3 -3
  1199. package/dist/esm/props-CJZgTDla.js.map +1 -1
  1200. package/dist/esm/sizes-BcQO4NH2.js.map +1 -1
  1201. package/dist/esm/stencil.utils-Cjg0wpDG.js.map +1 -1
  1202. package/dist/esm/string.utils-vN03FcXN.js.map +1 -1
  1203. package/dist/esm/{template-BBOh2pxy.js → template-CoD1xawt.js} +6 -2
  1204. package/dist/esm/template-CoD1xawt.js.map +1 -0
  1205. package/dist/esm/utils-CQvUntGY.js.map +1 -1
  1206. package/dist/esm/wcag-CD6_13JO.js.map +1 -1
  1207. package/dist/globals.d.ts +2 -2
  1208. package/dist/hydrate/index.js +366 -410
  1209. package/dist/hydrate/index.mjs +366 -410
  1210. package/dist/stencil.config.js +2 -4
  1211. package/dist/stencil.config.js.map +1 -1
  1212. package/dist/types/Users/KameraT/Desktop/Projects/DIA/Sarka/designSystemFinal/gov-design-system/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  1213. package/dist/types/components/gov-button/button/gov-button.d.ts +2 -2
  1214. package/dist/types/components/gov-chip/gov-chip.d.ts +1 -1
  1215. package/dist/types/components/gov-collapsible/constants.d.ts +18 -0
  1216. package/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
  1217. package/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -4
  1218. package/dist/types/components.d.ts +61 -14
  1219. package/dist/types/helpers/Dom/template.types.d.ts +2 -0
  1220. package/dist/types/index.d.ts +0 -1
  1221. package/dist/types/interfaces.d.ts +1 -1
  1222. package/dist/types/stencil-public-runtime.d.ts +5 -12
  1223. package/dist/types/types/typings.d.ts +6 -6
  1224. package/package.json +29 -29
  1225. package/dist/cjs/constants-CS58GJeI.js +0 -29
  1226. package/dist/cjs/constants-CS58GJeI.js.map +0 -1
  1227. package/dist/cjs/gov-tooltip-content.cjs.entry.js +0 -65
  1228. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +0 -1
  1229. package/dist/cjs/gov-tooltip-content.entry.cjs.js.map +0 -1
  1230. package/dist/cjs/gov-tooltip.cjs.entry.js.map +0 -1
  1231. package/dist/cjs/gov-tooltip.entry.cjs.js.map +0 -1
  1232. package/dist/cjs/index-pjwoybrU.js.map +0 -1
  1233. package/dist/cjs/template-DS4pSCTb.js.map +0 -1
  1234. package/dist/collection/pages/Accordion.js +0 -300
  1235. package/dist/collection/pages/Accordion.js.map +0 -1
  1236. package/dist/collection/pages/AttributeSection.js +0 -59
  1237. package/dist/collection/pages/AttributeSection.js.map +0 -1
  1238. package/dist/collection/pages/Avatar.js +0 -47
  1239. package/dist/collection/pages/Avatar.js.map +0 -1
  1240. package/dist/collection/pages/Badge.js +0 -29
  1241. package/dist/collection/pages/Badge.js.map +0 -1
  1242. package/dist/collection/pages/Banner.js +0 -278
  1243. package/dist/collection/pages/Banner.js.map +0 -1
  1244. package/dist/collection/pages/Blockquote.js +0 -25
  1245. package/dist/collection/pages/Blockquote.js.map +0 -1
  1246. package/dist/collection/pages/Breadcrumbs.js +0 -62
  1247. package/dist/collection/pages/Breadcrumbs.js.map +0 -1
  1248. package/dist/collection/pages/Button.js +0 -1450
  1249. package/dist/collection/pages/Button.js.map +0 -1
  1250. package/dist/collection/pages/Card.js +0 -78
  1251. package/dist/collection/pages/Card.js.map +0 -1
  1252. package/dist/collection/pages/Chip.js +0 -265
  1253. package/dist/collection/pages/Chip.js.map +0 -1
  1254. package/dist/collection/pages/Collapsible.js +0 -43
  1255. package/dist/collection/pages/Collapsible.js.map +0 -1
  1256. package/dist/collection/pages/Container.js +0 -21
  1257. package/dist/collection/pages/Container.js.map +0 -1
  1258. package/dist/collection/pages/ControlGroup.js +0 -227
  1259. package/dist/collection/pages/ControlGroup.js.map +0 -1
  1260. package/dist/collection/pages/CookieConsent.js +0 -29
  1261. package/dist/collection/pages/CookieConsent.js.map +0 -1
  1262. package/dist/collection/pages/Dialog.js +0 -56
  1263. package/dist/collection/pages/Dialog.js.map +0 -1
  1264. package/dist/collection/pages/Empty.js +0 -64
  1265. package/dist/collection/pages/Empty.js.map +0 -1
  1266. package/dist/collection/pages/Error.js +0 -18
  1267. package/dist/collection/pages/Error.js.map +0 -1
  1268. package/dist/collection/pages/Flex.js +0 -62
  1269. package/dist/collection/pages/Flex.js.map +0 -1
  1270. package/dist/collection/pages/FormLabel.js +0 -13
  1271. package/dist/collection/pages/FormLabel.js.map +0 -1
  1272. package/dist/collection/pages/FormMessage.js +0 -82
  1273. package/dist/collection/pages/FormMessage.js.map +0 -1
  1274. package/dist/collection/pages/Forms.js +0 -2329
  1275. package/dist/collection/pages/Forms.js.map +0 -1
  1276. package/dist/collection/pages/FormsRestructure.js +0 -13
  1277. package/dist/collection/pages/FormsRestructure.js.map +0 -1
  1278. package/dist/collection/pages/Grid.js +0 -113
  1279. package/dist/collection/pages/Grid.js.map +0 -1
  1280. package/dist/collection/pages/Home.js +0 -114
  1281. package/dist/collection/pages/Home.js.map +0 -1
  1282. package/dist/collection/pages/HorizontalStepper.js +0 -85
  1283. package/dist/collection/pages/HorizontalStepper.js.map +0 -1
  1284. package/dist/collection/pages/Icon.js +0 -32
  1285. package/dist/collection/pages/Icon.js.map +0 -1
  1286. package/dist/collection/pages/Infobar.js +0 -129
  1287. package/dist/collection/pages/Infobar.js.map +0 -1
  1288. package/dist/collection/pages/Layout.js +0 -97
  1289. package/dist/collection/pages/Layout.js.map +0 -1
  1290. package/dist/collection/pages/Loading.js +0 -89
  1291. package/dist/collection/pages/Loading.js.map +0 -1
  1292. package/dist/collection/pages/Message.js +0 -82
  1293. package/dist/collection/pages/Message.js.map +0 -1
  1294. package/dist/collection/pages/Pagination.js +0 -38
  1295. package/dist/collection/pages/Pagination.js.map +0 -1
  1296. package/dist/collection/pages/Spacer.js +0 -26
  1297. package/dist/collection/pages/Spacer.js.map +0 -1
  1298. package/dist/collection/pages/Stepper.js +0 -103
  1299. package/dist/collection/pages/Stepper.js.map +0 -1
  1300. package/dist/collection/pages/Tabs.js +0 -611
  1301. package/dist/collection/pages/Tabs.js.map +0 -1
  1302. package/dist/collection/pages/Tag.js +0 -220
  1303. package/dist/collection/pages/Tag.js.map +0 -1
  1304. package/dist/collection/pages/Tiles.js +0 -107
  1305. package/dist/collection/pages/Tiles.js.map +0 -1
  1306. package/dist/collection/pages/ToastMessage.js +0 -47
  1307. package/dist/collection/pages/ToastMessage.js.map +0 -1
  1308. package/dist/collection/pages/ToastMessageCountdown.js +0 -47
  1309. package/dist/collection/pages/ToastMessageCountdown.js.map +0 -1
  1310. package/dist/collection/pages/Tooltip.js +0 -168
  1311. package/dist/collection/pages/Tooltip.js.map +0 -1
  1312. package/dist/collection/pages/Typography.js +0 -161
  1313. package/dist/collection/pages/Typography.js.map +0 -1
  1314. package/dist/collection/pages/UserNavigation.js +0 -134
  1315. package/dist/collection/pages/UserNavigation.js.map +0 -1
  1316. package/dist/collection/pages/Wizard.js +0 -106
  1317. package/dist/collection/pages/Wizard.js.map +0 -1
  1318. package/dist/components/p-9COKmDO0.js.map +0 -1
  1319. package/dist/components/p-B03Rpjps.js.map +0 -1
  1320. package/dist/components/p-CXbpWAIF.js +0 -2
  1321. package/dist/components/p-CXbpWAIF.js.map +0 -1
  1322. package/dist/components/p-Cta_74Ps.js +0 -2
  1323. package/dist/components/p-Cta_74Ps.js.map +0 -1
  1324. package/dist/components/p-Cy7Wk3yM.js.map +0 -1
  1325. package/dist/components/p-D4Z6jWqx.js +0 -2
  1326. package/dist/components/p-D4Z6jWqx.js.map +0 -1
  1327. package/dist/components/p-DJ1DN3ks.js.map +0 -1
  1328. package/dist/components/p-DTn9nVrF.js +0 -2
  1329. package/dist/components/p-DTn9nVrF.js.map +0 -1
  1330. package/dist/components/p-DfJDyRCE.js +0 -2
  1331. package/dist/components/p-DfJDyRCE.js.map +0 -1
  1332. package/dist/components/p-Dmr81UhL.js +0 -2
  1333. package/dist/components/p-Dmr81UhL.js.map +0 -1
  1334. package/dist/components/p-DnZEr-aq.js +0 -2
  1335. package/dist/components/p-DnZEr-aq.js.map +0 -1
  1336. package/dist/components/p-wlTP5ZEU.js.map +0 -1
  1337. package/dist/core/gov-tooltip-content.entry.esm.js.map +0 -1
  1338. package/dist/core/gov-tooltip.entry.esm.js.map +0 -1
  1339. package/dist/core/p-01482eb2.entry.js +0 -2
  1340. package/dist/core/p-01482eb2.entry.js.map +0 -1
  1341. package/dist/core/p-0dbda4ab.entry.js.map +0 -1
  1342. package/dist/core/p-19a408eb.entry.js.map +0 -1
  1343. package/dist/core/p-1bfbad36.entry.js +0 -2
  1344. package/dist/core/p-1bfbad36.entry.js.map +0 -1
  1345. package/dist/core/p-1f4450cc.entry.js +0 -2
  1346. package/dist/core/p-1f4450cc.entry.js.map +0 -1
  1347. package/dist/core/p-2142c481.entry.js.map +0 -1
  1348. package/dist/core/p-25a33448.entry.js +0 -2
  1349. package/dist/core/p-25a33448.entry.js.map +0 -1
  1350. package/dist/core/p-2affc4c0.entry.js +0 -2
  1351. package/dist/core/p-2affc4c0.entry.js.map +0 -1
  1352. package/dist/core/p-3477fcf1.entry.js +0 -2
  1353. package/dist/core/p-3477fcf1.entry.js.map +0 -1
  1354. package/dist/core/p-35c24ac5.entry.js +0 -2
  1355. package/dist/core/p-35c24ac5.entry.js.map +0 -1
  1356. package/dist/core/p-35cd4ecd.entry.js.map +0 -1
  1357. package/dist/core/p-35f784be.entry.js +0 -2
  1358. package/dist/core/p-35f784be.entry.js.map +0 -1
  1359. package/dist/core/p-37770cee.entry.js +0 -2
  1360. package/dist/core/p-37770cee.entry.js.map +0 -1
  1361. package/dist/core/p-37b98852.entry.js +0 -2
  1362. package/dist/core/p-37b98852.entry.js.map +0 -1
  1363. package/dist/core/p-48a3bb49.entry.js.map +0 -1
  1364. package/dist/core/p-4e170f53.entry.js +0 -2
  1365. package/dist/core/p-4e170f53.entry.js.map +0 -1
  1366. package/dist/core/p-57aac00e.entry.js +0 -2
  1367. package/dist/core/p-57aac00e.entry.js.map +0 -1
  1368. package/dist/core/p-5c9371da.entry.js.map +0 -1
  1369. package/dist/core/p-6508f953.entry.js +0 -2
  1370. package/dist/core/p-6508f953.entry.js.map +0 -1
  1371. package/dist/core/p-730b823a.entry.js +0 -2
  1372. package/dist/core/p-730b823a.entry.js.map +0 -1
  1373. package/dist/core/p-7b623100.entry.js +0 -2
  1374. package/dist/core/p-7b623100.entry.js.map +0 -1
  1375. package/dist/core/p-7f46f70a.entry.js +0 -2
  1376. package/dist/core/p-7f46f70a.entry.js.map +0 -1
  1377. package/dist/core/p-83507d07.entry.js +0 -2
  1378. package/dist/core/p-83507d07.entry.js.map +0 -1
  1379. package/dist/core/p-871d4318.entry.js +0 -2
  1380. package/dist/core/p-871d4318.entry.js.map +0 -1
  1381. package/dist/core/p-8873dc4b.entry.js.map +0 -1
  1382. package/dist/core/p-8c942041.entry.js +0 -2
  1383. package/dist/core/p-8c942041.entry.js.map +0 -1
  1384. package/dist/core/p-8d42ee97.entry.js +0 -2
  1385. package/dist/core/p-8d42ee97.entry.js.map +0 -1
  1386. package/dist/core/p-8dceba0b.entry.js +0 -2
  1387. package/dist/core/p-8dceba0b.entry.js.map +0 -1
  1388. package/dist/core/p-901cbf94.entry.js +0 -2
  1389. package/dist/core/p-901cbf94.entry.js.map +0 -1
  1390. package/dist/core/p-90b277bb.entry.js +0 -2
  1391. package/dist/core/p-90b277bb.entry.js.map +0 -1
  1392. package/dist/core/p-90ff56f4.entry.js.map +0 -1
  1393. package/dist/core/p-962d5767.entry.js.map +0 -1
  1394. package/dist/core/p-984b6020.entry.js.map +0 -1
  1395. package/dist/core/p-9d2a4eb1.entry.js +0 -2
  1396. package/dist/core/p-9d2a4eb1.entry.js.map +0 -1
  1397. package/dist/core/p-9ff7e018.entry.js +0 -2
  1398. package/dist/core/p-9ff7e018.entry.js.map +0 -1
  1399. package/dist/core/p-BBOh2pxy.js +0 -2
  1400. package/dist/core/p-BBOh2pxy.js.map +0 -1
  1401. package/dist/core/p-CLBboRhb.js +0 -2
  1402. package/dist/core/p-CLBboRhb.js.map +0 -1
  1403. package/dist/core/p-DT2tslUp.js +0 -3
  1404. package/dist/core/p-DT2tslUp.js.map +0 -1
  1405. package/dist/core/p-a18c600d.entry.js +0 -2
  1406. package/dist/core/p-a18c600d.entry.js.map +0 -1
  1407. package/dist/core/p-aaa73dc8.entry.js.map +0 -1
  1408. package/dist/core/p-ade69b24.entry.js +0 -2
  1409. package/dist/core/p-ade69b24.entry.js.map +0 -1
  1410. package/dist/core/p-b19afdd8.entry.js +0 -2
  1411. package/dist/core/p-b19afdd8.entry.js.map +0 -1
  1412. package/dist/core/p-b97b4439.entry.js +0 -2
  1413. package/dist/core/p-b97b4439.entry.js.map +0 -1
  1414. package/dist/core/p-bbe0d727.entry.js.map +0 -1
  1415. package/dist/core/p-bedd75e1.entry.js +0 -2
  1416. package/dist/core/p-bedd75e1.entry.js.map +0 -1
  1417. package/dist/core/p-c1a1fc45.entry.js.map +0 -1
  1418. package/dist/core/p-c6f52c6f.entry.js +0 -2
  1419. package/dist/core/p-c6f52c6f.entry.js.map +0 -1
  1420. package/dist/core/p-c99cc786.entry.js +0 -2
  1421. package/dist/core/p-c99cc786.entry.js.map +0 -1
  1422. package/dist/core/p-c9edada1.entry.js +0 -2
  1423. package/dist/core/p-c9edada1.entry.js.map +0 -1
  1424. package/dist/core/p-cddfc899.entry.js +0 -2
  1425. package/dist/core/p-cddfc899.entry.js.map +0 -1
  1426. package/dist/core/p-ce588d98.entry.js +0 -2
  1427. package/dist/core/p-ce588d98.entry.js.map +0 -1
  1428. package/dist/core/p-d4440adf.entry.js.map +0 -1
  1429. package/dist/core/p-d48d5870.entry.js.map +0 -1
  1430. package/dist/core/p-d8264763.entry.js +0 -2
  1431. package/dist/core/p-d8264763.entry.js.map +0 -1
  1432. package/dist/core/p-e169f098.entry.js.map +0 -1
  1433. package/dist/core/p-e3e3e9f2.entry.js +0 -2
  1434. package/dist/core/p-e3e3e9f2.entry.js.map +0 -1
  1435. package/dist/core/p-e8507630.entry.js +0 -2
  1436. package/dist/core/p-e8507630.entry.js.map +0 -1
  1437. package/dist/core/p-f0505205.entry.js.map +0 -1
  1438. package/dist/core/p-f3c873f5.entry.js +0 -2
  1439. package/dist/core/p-f3c873f5.entry.js.map +0 -1
  1440. package/dist/esm/constants-TT_l4YYj.js +0 -24
  1441. package/dist/esm/constants-TT_l4YYj.js.map +0 -1
  1442. package/dist/esm/gov-tooltip-content.entry.js +0 -63
  1443. package/dist/esm/gov-tooltip-content.entry.js.map +0 -1
  1444. package/dist/esm/gov-tooltip.entry.js.map +0 -1
  1445. package/dist/esm/index-DT2tslUp.js.map +0 -1
  1446. package/dist/esm/template-BBOh2pxy.js.map +0 -1
  1447. package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
  1448. package/dist/types/pages/Accordion.d.ts +0 -3
  1449. package/dist/types/pages/AttributeSection.d.ts +0 -3
  1450. package/dist/types/pages/Avatar.d.ts +0 -3
  1451. package/dist/types/pages/Badge.d.ts +0 -3
  1452. package/dist/types/pages/Banner.d.ts +0 -3
  1453. package/dist/types/pages/Blockquote.d.ts +0 -3
  1454. package/dist/types/pages/Breadcrumbs.d.ts +0 -3
  1455. package/dist/types/pages/Button.d.ts +0 -3
  1456. package/dist/types/pages/Card.d.ts +0 -3
  1457. package/dist/types/pages/Chip.d.ts +0 -3
  1458. package/dist/types/pages/Collapsible.d.ts +0 -3
  1459. package/dist/types/pages/Container.d.ts +0 -3
  1460. package/dist/types/pages/ControlGroup.d.ts +0 -3
  1461. package/dist/types/pages/CookieConsent.d.ts +0 -3
  1462. package/dist/types/pages/Dialog.d.ts +0 -3
  1463. package/dist/types/pages/Empty.d.ts +0 -3
  1464. package/dist/types/pages/Error.d.ts +0 -3
  1465. package/dist/types/pages/Flex.d.ts +0 -3
  1466. package/dist/types/pages/FormLabel.d.ts +0 -3
  1467. package/dist/types/pages/FormMessage.d.ts +0 -3
  1468. package/dist/types/pages/Forms.d.ts +0 -8
  1469. package/dist/types/pages/FormsRestructure.d.ts +0 -3
  1470. package/dist/types/pages/Grid.d.ts +0 -3
  1471. package/dist/types/pages/Home.d.ts +0 -3
  1472. package/dist/types/pages/HorizontalStepper.d.ts +0 -3
  1473. package/dist/types/pages/Icon.d.ts +0 -3
  1474. package/dist/types/pages/Infobar.d.ts +0 -3
  1475. package/dist/types/pages/Layout.d.ts +0 -3
  1476. package/dist/types/pages/Loading.d.ts +0 -3
  1477. package/dist/types/pages/Message.d.ts +0 -3
  1478. package/dist/types/pages/Pagination.d.ts +0 -3
  1479. package/dist/types/pages/Spacer.d.ts +0 -3
  1480. package/dist/types/pages/Stepper.d.ts +0 -3
  1481. package/dist/types/pages/Tabs.d.ts +0 -3
  1482. package/dist/types/pages/Tag.d.ts +0 -3
  1483. package/dist/types/pages/Tiles.d.ts +0 -3
  1484. package/dist/types/pages/ToastMessage.d.ts +0 -3
  1485. package/dist/types/pages/ToastMessageCountdown.d.ts +0 -3
  1486. package/dist/types/pages/Tooltip.d.ts +0 -3
  1487. package/dist/types/pages/Typography.d.ts +0 -3
  1488. package/dist/types/pages/UserNavigation.d.ts +0 -24
  1489. package/dist/types/pages/Wizard.d.ts +0 -3
@@ -0,0 +1 @@
1
+ {"version":3,"names":["toBool","value","indexOf","Tags","GovButton","__stencil_proxyCustomElement","HTMLElement","constructor","this","hydrated","size","expanded","expandedMobile","disabled","nativeType","tab","focusable","inheritedAttributes","h","govHost","host","validateColor","newValue","validateProp","ButtonColors","ButtonClass","root","validateType","ButtonType","validateSize","Sizes","validateNativeType","NativeType","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","removeAttribute","Object","assign","disconnectedCallback","_a","stopObserving","componentWillLoad","color","type","inheritAriaAttributes","componentDidRender","canValidateWcagOnRender","delay","validateAccessibility","connectedCallback","render","Tag","href","A","BUTTON","undefined","Host","key","class","classes","ref","el","triggerRef","onClick","onClickHandler","bind","onFocus","onFocusHandler","onBlur","onBlurHandler","id","identifier","target","download","hreflang","rel","name","tabindex","toBoolAttrIfDefined","loading","hasSlot","e","stopPropagation","govClick","emit","component","originalEvent","govFocus","govBlur","setFocus","focus","getRef","validateAccessibleLabel","getAttribute"],"sources":["../../../packages/core/src/utils/bool.utils.ts","../../../packages/core/src/components/gov-button/button/gov-button.tsx"],"sourcesContent":["export function toBool(value: any): boolean {\r\n\tif (typeof value === 'string') {\r\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1\r\n\t} else if (typeof value === 'number') {\r\n\t\treturn value > 0\r\n\t} else if (typeof value === 'boolean') {\r\n\t\treturn value\r\n\t} else {\r\n\t\treturn value ? true : false\r\n\t}\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {validateProp} from \"../../../helpers/Validate/props\"\r\nimport {\r\n\tButtonClass,\r\n\tButtonColors,\r\n\tButtonColorType,\r\n\tButtonSizesType,\r\n\tButtonTargetType,\r\n\tButtonType,\r\n\tButtonTypesType,\r\n\tNativeType,\r\n\tNativeTypesType,\r\n} from \"./constants\"\r\nimport {govHost, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {toBool} from \"../../../utils/bool.utils\"\r\nimport {Sizes} from \"../../../core/constants/sizes\"\r\nimport {validateAccessibleLabel} from \"../../../helpers/Validate/wcag\"\r\nimport {canValidateWcagOnRender} from \"../../../helpers/Dom/win\"\r\nimport {delay} from \"../../../utils/utils\"\r\nimport {ButtonEvent} from \"./gov-button.types\"\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\n\r\nenum Tags {\r\n\tA = \"a\",\r\n\tBUTTON = \"button\",\r\n}\r\n\r\n@Component({\r\n\ttag: \"gov-button\",\r\n})\r\nexport class GovButton {\r\n\tprivate h: GovHost\r\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement\r\n\tprivate attributeObserver: AttributeObserver\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovButtonElement\r\n\r\n\t/**\r\n\t * Style variation of the button\r\n\t */\r\n\t@Prop({reflect: true}) readonly color: ButtonColorType\r\n\t/**\r\n\t * Button’s size\r\n\t */\r\n\t@Prop({reflect: true}) readonly size?: ButtonSizesType = \"m\"\r\n\t/**\r\n\t * Button's type\r\n\t */\r\n\t@Prop({reflect: true}) readonly type: ButtonTypesType\r\n\t/**\r\n\t * Expands the button to fill 100% of the container width\r\n\t */\r\n\t@Prop({reflect: true}) readonly expanded: boolean = false\r\n\t/**\r\n\t * Expands the button to fill 100% of the container width only on mobile\r\n\t */\r\n\t@Prop({reflect: true, attribute: \"expanded-mobile\"}) readonly expandedMobile: boolean = false\r\n\t/**\r\n\t * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Makes the button component disabled.\r\n\t * This prevents users from being able to interact with the button, and conveys its inactive state to assistive technologies\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Same as original parameter\r\n\t * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\r\n\t */\r\n\t@Prop() readonly nativeType?: NativeTypesType = \"button\"\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\r\n\t */\r\n\t@Prop() readonly href: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\r\n\t */\r\n\t@Prop() readonly target?: ButtonTargetType\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\r\n\t */\r\n\t@Prop() readonly download: boolean\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download\r\n\t */\r\n\t@Prop() readonly tab: number = 0\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-hreflang\r\n\t */\r\n\t@Prop() readonly hreflang: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-referrerpolicy\r\n\t */\r\n\t@Prop() readonly referrerpolicy: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-rel\r\n\t */\r\n\t@Prop() readonly rel: string\r\n\t/**\r\n\t * Indicates whether an asynchronous process is running\r\n\t */\r\n\t@Prop() readonly loading: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\r\n\t */\r\n\t@Prop() readonly focusable: boolean = true\r\n\t/**\r\n\t * Custom button identifier\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Emitted when the button click\r\n\t */\r\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<ButtonEvent>\r\n\t/**\r\n\t * Emitted when the button has focus\r\n\t */\r\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<ButtonEvent>\r\n\t/**\r\n\t * Emitted when the button loses focus\r\n\t */\r\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<ButtonEvent>\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ButtonColors, newValue, ButtonClass.root)\r\n\t}\r\n\r\n\t@Watch(\"type\")\r\n\tvalidateType(newValue: string): void {\r\n\t\tvalidateProp(ButtonType, newValue, ButtonClass.root)\r\n\t}\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(Sizes, newValue, ButtonClass.root)\r\n\t}\r\n\r\n\t@Watch(\"nativeType\")\r\n\tvalidateNativeType(newValue: string): void {\r\n\t\tvalidateProp(NativeType, newValue, ButtonClass.root)\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateType(this.type)\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validateNativeType(this.nativeType)\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tif (canValidateWcagOnRender()) {\r\n\t\t\tawait delay(500)\r\n\t\t\tawait this.validateAccessibility()\r\n\t\t}\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst Tag = this.href ? Tags.A : Tags.BUTTON\r\n\t\tconst nativeType = Tag === Tags.A ? undefined : this.nativeType\r\n\r\n\t\treturn (\r\n\t\t\t<Host size={this.size}\r\n\t\t\t\t hydrated={this.hydrated}\r\n\t\t\t\t color={this.color}\r\n\t\t\t\t class={this.h.classes(ButtonClass.root)}\r\n\t\t\t\t type={this.type}>\r\n\t\t\t\t<Tag\r\n\t\t\t\t\tclass=\"element\"\r\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLButtonElement | HTMLLinkElement)}\r\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\r\n\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\tid={this.identifier}\r\n\t\t\t\t\thref={this.href}\r\n\t\t\t\t\ttarget={this.target}\r\n\t\t\t\t\tdownload={this.download}\r\n\t\t\t\t\threflang={this.hreflang}\r\n\t\t\t\t\trel={this.rel}\r\n\t\t\t\t\tname={this.name}\r\n\t\t\t\t\ttype={nativeType}\r\n\t\t\t\t\ttabindex={this.disabled ? \"-1\" : this.tab}\r\n\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t>\r\n\t\t\t\t\t{toBool(this.loading) && !this.h.hasSlot(\"icon-end\") &&\r\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t{this.h.hasSlot(\"icon-start\") && <slot name=\"icon-start\"></slot>}\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t{this.h.hasSlot(\"icon-end\") && <slot name=\"icon-end\"></slot>}\r\n\t\t\t\t\t{toBool(this.loading) && this.h.hasSlot(\"icon-end\") &&\r\n\t\t\t\t\t\t<gov-icon name=\"loader\" class=\"gov-spin-animation\" type=\"components\"></gov-icon>}\r\n\t\t\t\t</Tag>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onClickHandler(e: PointerEvent): void {\r\n\t\te.stopPropagation()\r\n\t\tif (this.disabled === false) {\r\n\t\t\tthis.govClick.emit({\r\n\t\t\t\tcomponent: ButtonClass.root,\r\n\t\t\t\toriginalEvent: e,\r\n\t\t\t\tref: this.host,\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tprivate onFocusHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govFocus.emit({\r\n\t\t\tcomponent: ButtonClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tref: this.host,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onBlurHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govBlur.emit({\r\n\t\t\tcomponent: ButtonClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tref: this.host,\r\n\t\t})\r\n\t}\r\n\r\n\t/**\r\n\t * Focus button element\r\n\t */\r\n\t@Method()\r\n\tasync setFocus(): Promise<void> {\r\n\t\tthis.triggerRef.focus()\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a clickable element instance\r\n\t */\r\n\t@Method()\r\n\tasync getRef() {\r\n\t\treturn this.triggerRef\r\n\t}\r\n\r\n\t/**\r\n\t * Validate the Accessibility attributes of the component\r\n\t */\r\n\t@Method()\r\n\tasync validateAccessibility(): Promise<void> {\r\n\t\tif (this.focusable) {\r\n\t\t\tvalidateAccessibleLabel(this.triggerRef.getAttribute('aria-label'), this.triggerRef.getAttribute('aria-labelledby'), ButtonClass.root, this.host)\r\n\t\t}\r\n\t}\r\n}\r\n"],"mappings":"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","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["ariaAttributes","inheritAttributes","el","attributes","attributeObject","forEach","attr","hasAttribute","value","getAttribute","removeAttribute","AttributeObserver","constructor","element","callback","this","startObserving","mutationObserver","MutationObserver","mutationsList","mutation","type","attributeName","newValue","observe","attributeFilter","stopObserving","disconnect","inheritAriaAttributes","ignoreList","attributesToInherit"],"sources":["../../../packages/core/src/helpers/Accessibility/attributes.ts","../../../packages/core/src/helpers/Dom/attribute.ts","../../../packages/core/src/helpers/Accessibility/accessibility.ts"],"sourcesContent":["export const ariaAttributes = [\n\t'role',\n\t'aria-activedescendant',\n\t'aria-atomic',\n\t'aria-autocomplete',\n\t'aria-braillelabel',\n\t'aria-brailleroledescription',\n\t'aria-busy',\n\t'aria-checked',\n\t'aria-colcount',\n\t'aria-colindex',\n\t'aria-colindextext',\n\t'aria-colspan',\n\t'aria-controls',\n\t'aria-current',\n\t'aria-describedby',\n\t'aria-description',\n\t'aria-details',\n\t'aria-disabled',\n\t'aria-errormessage',\n\t'aria-expanded',\n\t'aria-flowto',\n\t'aria-haspopup',\n\t'aria-hidden',\n\t'aria-invalid',\n\t'aria-keyshortcuts',\n\t'aria-label',\n\t'aria-labelledby',\n\t'aria-level',\n\t'aria-live',\n\t'aria-multiline',\n\t'aria-multiselectable',\n\t'aria-orientation',\n\t'aria-owns',\n\t'aria-placeholder',\n\t'aria-posinset',\n\t'aria-pressed',\n\t'aria-readonly',\n\t'aria-relevant',\n\t'aria-required',\n\t'aria-roledescription',\n\t'aria-rowcount',\n\t'aria-rowindex',\n\t'aria-rowindextext',\n\t'aria-rowspan',\n\t'aria-selected',\n\t'aria-setsize',\n\t'aria-sort',\n\t'aria-valuemax',\n\t'aria-valuemin',\n\t'aria-valuenow',\n\t'aria-valuetext',\n];\n","export type Attribute = unknown;\nexport type Attributes = Record<string, Attribute>;\n\nexport const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n\tconst attributeObject: Attributes = {};\n\tattributes.forEach((attr) => {\n\t\tif (el.hasAttribute(attr)) {\n\t\t\tconst value = el.getAttribute(attr);\n\t\t\tif (value !== null) {\n\t\t\t\tattributeObject[attr] = el.getAttribute(attr);\n\t\t\t}\n\t\t\tel.removeAttribute(attr);\n\t\t}\n\t});\n\n\treturn attributeObject;\n};\n\ntype Callback = (attributeName: string, newValue: string) => void;\n\nexport class AttributeObserver {\n\tprivate mutationObserver: MutationObserver;\n\n\tconstructor(private element: HTMLElement, private callback: Callback) {\n\t}\n\n\tstartObserving(attributes: string[]) {\n\t\tthis.mutationObserver = new MutationObserver((mutationsList) => {\n\t\t\tfor (const mutation of mutationsList) {\n\t\t\t\tif (mutation.type === 'attributes' && mutation.attributeName) {\n\t\t\t\t\tconst newValue = this.element.getAttribute(mutation.attributeName);\n\t\t\t\t\tif (newValue !== null) {\n\t\t\t\t\t\tthis.callback(mutation.attributeName, newValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tthis.mutationObserver.observe(this.element, {\n\t\t\tattributes: true,\n\t\t\tattributeFilter: attributes,\n\t\t});\n\t}\n\n\tstopObserving() {\n\t\tif (this.mutationObserver) {\n\t\t\tthis.mutationObserver.disconnect();\n\t\t}\n\t}\n}\n","import {ariaAttributes} from \"./attributes\";\nimport {inheritAttributes} from \"../Dom/attribute\";\n\nexport const inheritAriaAttributes = (el: HTMLElement, ignoreList?: string[]) => {\n\tlet attributesToInherit = ariaAttributes;\n\tif (ignoreList && ignoreList.length > 0) {\n\t\tattributesToInherit = attributesToInherit.filter((attr) => !ignoreList.includes(attr));\n\t}\n\treturn inheritAttributes(el, attributesToInherit);\n};\n"],"mappings":"AAAa,MAAAA,EAAiB,CAC7B,OACA,wBACA,cACA,oBACA,oBACA,8BACA,YACA,eACA,gBACA,gBACA,oBACA,eACA,gBACA,eACA,mBACA,mBACA,eACA,gBACA,oBACA,gBACA,cACA,gBACA,cACA,eACA,oBACA,aACA,kBACA,aACA,YACA,iBACA,uBACA,mBACA,YACA,mBACA,gBACA,eACA,gBACA,gBACA,gBACA,uBACA,gBACA,gBACA,oBACA,eACA,gBACA,eACA,YACA,gBACA,gBACA,gBACA,kBChDM,MAAMC,EAAoB,CAACC,EAAiBC,EAAuB,MACzE,MAAMC,EAA8B,GACpCD,EAAWE,SAASC,IACnB,GAAIJ,EAAGK,aAAaD,GAAO,CAC1B,MAAME,EAAQN,EAAGO,aAAaH,GAC9B,GAAIE,IAAU,KAAM,CACnBJ,EAAgBE,GAAQJ,EAAGO,aAAaH,E,CAEzCJ,EAAGQ,gBAAgBJ,E,KAIrB,OAAOF,CAAe,E,MAKVO,EAGZ,WAAAC,CAAoBC,EAA8BC,GAA9BC,KAAOF,QAAPA,EAA8BE,KAAQD,SAARA,C,CAGlD,cAAAE,CAAeb,GACdY,KAAKE,iBAAmB,IAAIC,kBAAkBC,IAC7C,IAAK,MAAMC,KAAYD,EAAe,CACrC,GAAIC,EAASC,OAAS,cAAgBD,EAASE,cAAe,CAC7D,MAAMC,EAAWR,KAAKF,QAAQJ,aAAaW,EAASE,eACpD,GAAIC,IAAa,KAAM,CACtBR,KAAKD,SAASM,EAASE,cAAeC,E,OAM1CR,KAAKE,iBAAiBO,QAAQT,KAAKF,QAAS,CAC3CV,WAAY,KACZsB,gBAAiBtB,G,CAInB,aAAAuB,GACC,GAAIX,KAAKE,iBAAkB,CAC1BF,KAAKE,iBAAiBU,Y,SC3CZC,EAAwB,CAAC1B,EAAiB2B,KACtD,IAAIC,EAAsB9B,EAI1B,OAAOC,EAAkBC,EAAI4B,EAAoB,S","ignoreList":[]}
1
+ {"version":3,"names":["ariaAttributes","inheritAttributes","el","attributes","attributeObject","forEach","attr","hasAttribute","value","getAttribute","removeAttribute","AttributeObserver","constructor","element","callback","this","startObserving","mutationObserver","MutationObserver","mutationsList","mutation","type","attributeName","newValue","observe","attributeFilter","stopObserving","disconnect","inheritAriaAttributes","ignoreList","attributesToInherit"],"sources":["../../../packages/core/src/helpers/Accessibility/attributes.ts","../../../packages/core/src/helpers/Dom/attribute.ts","../../../packages/core/src/helpers/Accessibility/accessibility.ts"],"sourcesContent":["export const ariaAttributes = [\r\n\t'role',\r\n\t'aria-activedescendant',\r\n\t'aria-atomic',\r\n\t'aria-autocomplete',\r\n\t'aria-braillelabel',\r\n\t'aria-brailleroledescription',\r\n\t'aria-busy',\r\n\t'aria-checked',\r\n\t'aria-colcount',\r\n\t'aria-colindex',\r\n\t'aria-colindextext',\r\n\t'aria-colspan',\r\n\t'aria-controls',\r\n\t'aria-current',\r\n\t'aria-describedby',\r\n\t'aria-description',\r\n\t'aria-details',\r\n\t'aria-disabled',\r\n\t'aria-errormessage',\r\n\t'aria-expanded',\r\n\t'aria-flowto',\r\n\t'aria-haspopup',\r\n\t'aria-hidden',\r\n\t'aria-invalid',\r\n\t'aria-keyshortcuts',\r\n\t'aria-label',\r\n\t'aria-labelledby',\r\n\t'aria-level',\r\n\t'aria-live',\r\n\t'aria-multiline',\r\n\t'aria-multiselectable',\r\n\t'aria-orientation',\r\n\t'aria-owns',\r\n\t'aria-placeholder',\r\n\t'aria-posinset',\r\n\t'aria-pressed',\r\n\t'aria-readonly',\r\n\t'aria-relevant',\r\n\t'aria-required',\r\n\t'aria-roledescription',\r\n\t'aria-rowcount',\r\n\t'aria-rowindex',\r\n\t'aria-rowindextext',\r\n\t'aria-rowspan',\r\n\t'aria-selected',\r\n\t'aria-setsize',\r\n\t'aria-sort',\r\n\t'aria-valuemax',\r\n\t'aria-valuemin',\r\n\t'aria-valuenow',\r\n\t'aria-valuetext',\r\n];\r\n","export type Attribute = unknown;\r\nexport type Attributes = Record<string, Attribute>;\r\n\r\nexport const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\r\n\tconst attributeObject: Attributes = {};\r\n\tattributes.forEach((attr) => {\r\n\t\tif (el.hasAttribute(attr)) {\r\n\t\t\tconst value = el.getAttribute(attr);\r\n\t\t\tif (value !== null) {\r\n\t\t\t\tattributeObject[attr] = el.getAttribute(attr);\r\n\t\t\t}\r\n\t\t\tel.removeAttribute(attr);\r\n\t\t}\r\n\t});\r\n\r\n\treturn attributeObject;\r\n};\r\n\r\ntype Callback = (attributeName: string, newValue: string) => void;\r\n\r\nexport class AttributeObserver {\r\n\tprivate mutationObserver: MutationObserver;\r\n\r\n\tconstructor(private element: HTMLElement, private callback: Callback) {\r\n\t}\r\n\r\n\tstartObserving(attributes: string[]) {\r\n\t\tthis.mutationObserver = new MutationObserver((mutationsList) => {\r\n\t\t\tfor (const mutation of mutationsList) {\r\n\t\t\t\tif (mutation.type === 'attributes' && mutation.attributeName) {\r\n\t\t\t\t\tconst newValue = this.element.getAttribute(mutation.attributeName);\r\n\t\t\t\t\tif (newValue !== null) {\r\n\t\t\t\t\t\tthis.callback(mutation.attributeName, newValue);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.mutationObserver.observe(this.element, {\r\n\t\t\tattributes: true,\r\n\t\t\tattributeFilter: attributes,\r\n\t\t});\r\n\t}\r\n\r\n\tstopObserving() {\r\n\t\tif (this.mutationObserver) {\r\n\t\t\tthis.mutationObserver.disconnect();\r\n\t\t}\r\n\t}\r\n}\r\n","import {ariaAttributes} from \"./attributes\";\r\nimport {inheritAttributes} from \"../Dom/attribute\";\r\n\r\nexport const inheritAriaAttributes = (el: HTMLElement, ignoreList?: string[]) => {\r\n\tlet attributesToInherit = ariaAttributes;\r\n\tif (ignoreList && ignoreList.length > 0) {\r\n\t\tattributesToInherit = attributesToInherit.filter((attr) => !ignoreList.includes(attr));\r\n\t}\r\n\treturn inheritAttributes(el, attributesToInherit);\r\n};\r\n"],"mappings":"AAAa,MAAAA,EAAiB,CAC7B,OACA,wBACA,cACA,oBACA,oBACA,8BACA,YACA,eACA,gBACA,gBACA,oBACA,eACA,gBACA,eACA,mBACA,mBACA,eACA,gBACA,oBACA,gBACA,cACA,gBACA,cACA,eACA,oBACA,aACA,kBACA,aACA,YACA,iBACA,uBACA,mBACA,YACA,mBACA,gBACA,eACA,gBACA,gBACA,gBACA,uBACA,gBACA,gBACA,oBACA,eACA,gBACA,eACA,YACA,gBACA,gBACA,gBACA,kBChDM,MAAMC,EAAoB,CAACC,EAAiBC,EAAuB,MACzE,MAAMC,EAA8B,GACpCD,EAAWE,SAASC,IACnB,GAAIJ,EAAGK,aAAaD,GAAO,CAC1B,MAAME,EAAQN,EAAGO,aAAaH,GAC9B,GAAIE,IAAU,KAAM,CACnBJ,EAAgBE,GAAQJ,EAAGO,aAAaH,E,CAEzCJ,EAAGQ,gBAAgBJ,E,KAIrB,OAAOF,CAAe,E,MAKVO,EAGZ,WAAAC,CAAoBC,EAA8BC,GAA9BC,KAAOF,QAAPA,EAA8BE,KAAQD,SAARA,C,CAGlD,cAAAE,CAAeb,GACdY,KAAKE,iBAAmB,IAAIC,kBAAkBC,IAC7C,IAAK,MAAMC,KAAYD,EAAe,CACrC,GAAIC,EAASC,OAAS,cAAgBD,EAASE,cAAe,CAC7D,MAAMC,EAAWR,KAAKF,QAAQJ,aAAaW,EAASE,eACpD,GAAIC,IAAa,KAAM,CACtBR,KAAKD,SAASM,EAASE,cAAeC,E,OAM1CR,KAAKE,iBAAiBO,QAAQT,KAAKF,QAAS,CAC3CV,WAAY,KACZsB,gBAAiBtB,G,CAInB,aAAAuB,GACC,GAAIX,KAAKE,iBAAkB,CAC1BF,KAAKE,iBAAiBU,Y,SC3CZC,EAAwB,CAAC1B,EAAiB2B,KACtD,IAAIC,EAAsB9B,EAI1B,OAAOC,EAAkBC,EAAI4B,EAAoB,S","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["WizardColors","pick","Colors","WizardSizes","Sizes","WizardClass","root","WizardItemClass","header","prefix","label","headline","chevron","content"],"sources":["../../../packages/core/src/components/gov-wizard/constants.ts"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { Sizes } from '../../core/constants/sizes'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const WizardColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'WARNING', 'ERROR', 'SUCCESS'])\nexport type WizardColorType = `${ValueOf<typeof WizardColors>}`\n\nexport const WizardSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type WizardSizesType = `${ValueOf<typeof WizardSizes>}`\n\nexport const WizardClass = {\n\troot: 'gov-wizard',\n}\n\nexport const WizardItemClass = {\n\troot: 'gov-wizard-item',\n\theader: 'gov-wizard-item__header',\n\tprefix: 'gov-wizard-item__prefix',\n\tlabel: 'gov-wizard-item__label',\n\theadline: 'gov-wizard-item__headline',\n\tchevron: 'gov-wizard-item__chevron',\n\tcontent: 'gov-wizard-item__content',\n}\n"],"mappings":"kHAKaA,EAAeC,EAAKC,EAAQ,CAAC,UAAW,UAAW,UAAW,QAAS,YAGvE,MAAAC,EAAcF,EAAKG,EAAO,CAAC,KAAM,KAAM,OAGvC,MAAAC,EAAc,CAC1BC,KAAM,cAGM,MAAAC,EAAkB,CAC9BD,KAAM,kBACNE,OAAQ,0BACRC,OAAQ,0BACRC,MAAO,yBACPC,SAAU,4BACVC,QAAS,2BACTC,QAAS,mC","ignoreList":[]}
1
+ {"version":3,"names":["WizardColors","pick","Colors","WizardSizes","Sizes","WizardClass","root","WizardItemClass","header","prefix","label","headline","chevron","content"],"sources":["../../../packages/core/src/components/gov-wizard/constants.ts"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\r\nimport { Sizes } from '../../core/constants/sizes'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const WizardColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'WARNING', 'ERROR', 'SUCCESS'])\r\nexport type WizardColorType = `${ValueOf<typeof WizardColors>}`\r\n\r\nexport const WizardSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type WizardSizesType = `${ValueOf<typeof WizardSizes>}`\r\n\r\nexport const WizardClass = {\r\n\troot: 'gov-wizard',\r\n}\r\n\r\nexport const WizardItemClass = {\r\n\troot: 'gov-wizard-item',\r\n\theader: 'gov-wizard-item__header',\r\n\tprefix: 'gov-wizard-item__prefix',\r\n\tlabel: 'gov-wizard-item__label',\r\n\theadline: 'gov-wizard-item__headline',\r\n\tchevron: 'gov-wizard-item__chevron',\r\n\tcontent: 'gov-wizard-item__content',\r\n}\r\n"],"mappings":"kHAKaA,EAAeC,EAAKC,EAAQ,CAAC,UAAW,UAAW,UAAW,QAAS,YAGvE,MAAAC,EAAcF,EAAKG,EAAO,CAAC,KAAM,KAAM,OAGvC,MAAAC,EAAc,CAC1BC,KAAM,cAGM,MAAAC,EAAkB,CAC9BD,KAAM,kBACNE,OAAQ,0BACRC,OAAQ,0BACRC,MAAO,yBACPC,SAAU,4BACVC,QAAS,2BACTC,QAAS,mC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{p as s,H as t,h as a,a as e}from"./index.js";import{A as c}from"./p-CUVZZBqo.js";import{v as o}from"./p-Nvj7WFs_.js";import{c as i}from"./p-DrPpH_9c.js";import{d as r}from"./p-CQvUntGY.js";import{g as n}from"./p-DKo9A5gq.js";const l=s(class s extends t{constructor(){super();this.__registerHost();this.h=n(this.host)}async componentDidRender(){if(i()){await r(500);await this.validateWcag()}}render(){return a(e,{key:"80effc5b697215f9a0cf731b6562c137edbc0efa",class:this.h.classes(c.root)},this.label?a("p",{class:c.label},this.label):null,a("div",{key:"3b7388299a3da27be78732562ded94bb6581525b",class:c.list,role:"list","aria-label":this.wcagLabel},a("slot",{key:"38c1592a7501f166a462fbb70eef92d6c855d0ec"})))}async validateWcag(){o(this.wcagLabel,"wcag-label",c.root)}get host(){return this}},[4,"gov-attachments",{label:[1],wcagLabel:[1,"wcag-label"],validateWcag:[64]}]);function m(){if(typeof customElements==="undefined"){return}const s=["gov-attachments"];s.forEach((s=>{switch(s){case"gov-attachments":if(!customElements.get(s)){customElements.define(s,l)}break}}))}m();export{l as G,m as d};
2
+ //# sourceMappingURL=p-CgXcNDpE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovAttachments","__stencil_proxyCustomElement","HTMLElement","constructor","this","h","govHost","host","componentDidRender","canValidateWcagOnRender","delay","validateWcag","render","Host","key","class","classes","AttachmentsClass","root","label","list","role","wcagLabel","validateWcagProp"],"sources":["../../../packages/core/src/components/gov-attachments/gov-attachments.tsx"],"sourcesContent":["import { Component, Element, h, Host, Method, Prop } from '@stencil/core'\r\nimport { AttachmentsClass } from './constants'\r\nimport { validateWcagProp } from '../../helpers/Validate/wcag'\r\nimport { canValidateWcagOnRender } from '../../helpers/Dom/win'\r\nimport { delay } from '../../utils/utils'\r\nimport { govHost } from '../../helpers/Dom/template'\r\nimport { GovHost } from '../../helpers/Dom/template.types'\r\n\r\n@Component({\r\n\ttag: 'gov-attachments',\r\n})\r\nexport class GovAttachments {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovAttachmentsElement\r\n\t/**\r\n\t * Label of attachments section\r\n\t */\r\n\t@Prop() readonly label: string\r\n\t/**\r\n\t * Adds accessible label for the attachment section that is only shown for screen readers.\r\n\t */\r\n\t@Prop({ attribute: 'wcag-label' }) readonly wcagLabel: string\r\n\r\n\tasync componentDidRender() {\r\n\t\tif (canValidateWcagOnRender()) {\r\n\t\t\tawait delay(500)\r\n\t\t\tawait this.validateWcag()\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(AttachmentsClass.root)}>\r\n\t\t\t\t{this.label ? <p class={AttachmentsClass.label}>{this.label}</p> : null}\r\n\t\t\t\t<div class={AttachmentsClass.list} role=\"list\" aria-label={this.wcagLabel}>\r\n\t\t\t\t\t<slot />\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Validate the WCAG attributes of the component\r\n\t */\r\n\t@Method()\r\n\tasync validateWcag(): Promise<void> {\r\n\t\tvalidateWcagProp(this.wcagLabel, 'wcag-label', AttachmentsClass.root)\r\n\t}\r\n}\r\n"],"mappings":"8OAWaA,EAAcC,EAAA,MAAAD,UAAAE,EAG1B,WAAAC,G,8BACCC,KAAKC,EAAIC,EAAQF,KAAKG,KACtB,CAYD,wBAAMC,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNN,KAAKO,c,EAIb,MAAAC,GACC,OACCP,EAACQ,EAAI,CAAAC,IAAA,2CAACC,MAAOX,KAAKC,EAAEW,QAAQC,EAAiBC,OAC3Cd,KAAKe,MAAQd,EAAA,KAAGU,MAAOE,EAAiBE,OAAQf,KAAKe,OAAa,KACnEd,EAAA,OAAAS,IAAA,2CAAKC,MAAOE,EAAiBG,KAAMC,KAAK,OAAM,aAAajB,KAAKkB,WAC/DjB,EAAQ,QAAAS,IAAA,8C,CAUZ,kBAAMH,GACLY,EAAiBnB,KAAKkB,UAAW,aAAcL,EAAiBC,K","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["tick","callback","requestAnimationFrame"],"sources":["../../../packages/core/src/utils/stencil.utils.ts"],"sourcesContent":["export const tick = (callback: () => void) => {\n\trequestAnimationFrame(() => {\n\t\tcallback();\n\t});\n}\n"],"mappings":"AAAa,MAAAA,EAAQC,IACpBC,uBAAsB,KACrBD,GAAU,GACT,S","ignoreList":[]}
1
+ {"version":3,"names":["tick","callback","requestAnimationFrame"],"sources":["../../../packages/core/src/utils/stencil.utils.ts"],"sourcesContent":["export const tick = (callback: () => void) => {\r\n\trequestAnimationFrame(() => {\r\n\t\tcallback();\r\n\t});\r\n}\r\n"],"mappings":"AAAa,MAAAA,EAAQC,IACpBC,uBAAsB,KACrBD,GAAU,GACT,S","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["StepperColors","pick","Colors","StepperSizes","Sizes","StepperClass","root","StepperItemClass","steps","prefix","main","headline","content"],"sources":["../../../packages/core/src/components/gov-stepper/stepper/constants.ts"],"sourcesContent":["import { Colors } from '../../../core/constants/colors'\nimport { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const StepperColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type StepperColorType = `${ValueOf<typeof StepperColors>}`\n\nexport const StepperSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type StepperSizesType = `${ValueOf<typeof StepperSizes>}`\n\nexport const StepperClass = {\n\troot: 'gov-stepper',\n}\n\nexport const StepperItemClass = {\n\troot: 'gov-stepper-item',\n\theader: 'gov-stepper-item__header',\n\tlabel: 'gov-stepper-item__label',\n\tsteps: 'gov-stepper-item__steps',\n\tprefix: 'gov-stepper-item__prefix',\n\tmain: 'gov-stepper-item__main',\n\theadline: 'gov-stepper-item__headline',\n\tannotation: 'gov-stepper-item__annotation',\n\tcontent: 'gov-stepper-item__content',\n}\n"],"mappings":"6GAKaA,EAAgBC,EAAKC,EAAQ,CAAC,UAAW,UAAW,QAAS,UAAW,YAGxE,MAAAC,EAAeF,EAAKG,EAAO,CAAC,KAAM,KAAM,OAGxC,MAAAC,EAAe,CAC3BC,KAAM,eAGM,MAAAC,EAAmB,CAC/BD,KAAM,mBAGNE,MAAO,0BACPC,OAAQ,2BACRC,KAAM,yBACNC,SAAU,6BAEVC,QAAS,oC","ignoreList":[]}
1
+ {"version":3,"names":["StepperColors","pick","Colors","StepperSizes","Sizes","StepperClass","root","StepperItemClass","steps","prefix","main","headline","content"],"sources":["../../../packages/core/src/components/gov-stepper/stepper/constants.ts"],"sourcesContent":["import { Colors } from '../../../core/constants/colors'\r\nimport { Sizes } from '../../../core/constants/sizes'\r\nimport { pick } from '../../../utils/utils'\r\nimport { ValueOf } from '../../../types/interfaces'\r\n\r\nexport const StepperColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\r\nexport type StepperColorType = `${ValueOf<typeof StepperColors>}`\r\n\r\nexport const StepperSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type StepperSizesType = `${ValueOf<typeof StepperSizes>}`\r\n\r\nexport const StepperClass = {\r\n\troot: 'gov-stepper',\r\n}\r\n\r\nexport const StepperItemClass = {\r\n\troot: 'gov-stepper-item',\r\n\theader: 'gov-stepper-item__header',\r\n\tlabel: 'gov-stepper-item__label',\r\n\tsteps: 'gov-stepper-item__steps',\r\n\tprefix: 'gov-stepper-item__prefix',\r\n\tmain: 'gov-stepper-item__main',\r\n\theadline: 'gov-stepper-item__headline',\r\n\tannotation: 'gov-stepper-item__annotation',\r\n\tcontent: 'gov-stepper-item__content',\r\n}\r\n"],"mappings":"6GAKaA,EAAgBC,EAAKC,EAAQ,CAAC,UAAW,UAAW,QAAS,UAAW,YAGxE,MAAAC,EAAeF,EAAKG,EAAO,CAAC,KAAM,KAAM,OAGxC,MAAAC,EAAe,CAC3BC,KAAM,eAGM,MAAAC,EAAmB,CAC/BD,KAAM,mBAGNE,MAAO,0BACPC,OAAQ,2BACRC,KAAM,yBACNC,SAAU,6BAEVC,QAAS,oC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as i,h as s,a as e}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{C as n}from"./p-U40vKHrs.js";import{g as r}from"./p-DfJDyRCE.js";import{v as h}from"./p-BKP-F1qP.js";import{A as l,a as c,i as p}from"./p-CXgom82_.js";const d=a(o,["_XS","_S","_M","_L","_XL"]);a(n,["PRIMARY","NEUTRAL"]);var m;(function(t){t["CIRCLE"]="circle";t["LINE"]="line"})(m||(m={}));var u;(function(t){t["PULSE"]="pulse";t["PROGRESS"]="progress";t["FALSE"]="false"})(u||(u={}));const v={root:"gov-skeleton"};const f=t(class t extends i{constructor(){super();this.__registerHost();this.size="m";this.color="neutral";this.shape="line";this.width=null;this.height=null;this.animation="progress";this.items=[];this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){h(d,t,v.root)}validateShape(t){h(m,t,v.root)}validateAnimation(t){h(u,t,v.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(c)}componentWillLoad(){this.validateSize(this.size);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init();this.inheritedAttributes=p(this.host)}componentWillUpdate(){this.init()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}init(){this.items.fill(1)}render(){return s(e,Object.assign({key:"25734d3a4d1d1db5de3ce47019cfdc1e41bf8aa5",size:this.size,color:this.color,class:{[v.root]:true,circle:this.shape==="circle",line:this.shape==="line",progress:this.animation==="progress",pulse:this.animation==="pulse"}},this.inheritedAttributes,{"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100",role:"progressbar",tabindex:"0",style:{width:this.width,height:this.height}}))}get host(){return this}static get watchers(){return{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}}},[256,"gov-skeleton",{size:[513],color:[1],shape:[1],width:[513],height:[513],animation:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-skeleton"];t.forEach((t=>{switch(t){case"gov-skeleton":if(!customElements.get(t)){customElements.define(t,f)}break}}))}g();export{f as G,g as d};
2
- //# sourceMappingURL=p-wlTP5ZEU.js.map
1
+ import{p as t,H as i,h as s,a as e}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{C as n}from"./p-U40vKHrs.js";import{g as r}from"./p-DKo9A5gq.js";import{v as h}from"./p-BKP-F1qP.js";import{A as l,a as c,i as p}from"./p-CXgom82_.js";const m=a(o,["_XS","_S","_M","_L","_XL"]);a(n,["PRIMARY","NEUTRAL"]);var d;(function(t){t["CIRCLE"]="circle";t["LINE"]="line"})(d||(d={}));var u;(function(t){t["PULSE"]="pulse";t["PROGRESS"]="progress";t["FALSE"]="false"})(u||(u={}));const v={root:"gov-skeleton"};const f=t(class t extends i{constructor(){super();this.__registerHost();this.size="m";this.color="neutral";this.shape="line";this.width=null;this.height=null;this.animation="progress";this.items=[];this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){h(m,t,v.root)}validateShape(t){h(d,t,v.root)}validateAnimation(t){h(u,t,v.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(c)}componentWillLoad(){this.validateSize(this.size);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init();this.inheritedAttributes=p(this.host)}componentWillUpdate(){this.init()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}init(){this.items.fill(1)}render(){return s(e,Object.assign({key:"871f22b2b3bd0c92c75b81b4d649246414c01b97",size:this.size,color:this.color,class:{[v.root]:true,circle:this.shape==="circle",line:this.shape==="line",progress:this.animation==="progress",pulse:this.animation==="pulse"}},this.inheritedAttributes,{"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100",role:"progressbar",tabindex:"0",style:{width:this.width,height:this.height}}))}get host(){return this}static get watchers(){return{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}}},[0,"gov-skeleton",{size:[513],color:[1],shape:[1],width:[513],height:[513],animation:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-skeleton"];t.forEach((t=>{switch(t){case"gov-skeleton":if(!customElements.get(t)){customElements.define(t,f)}break}}))}g();export{f as G,g as d};
2
+ //# sourceMappingURL=p-D8QfVS4O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SkeletonSizes","pick","Sizes","Colors","SkeletonShapes","SkeletonAnimation","SkeletonClass","root","GovSkeleton","__stencil_proxyCustomElement","HTMLElement","constructor","this","size","color","shape","width","height","animation","items","inheritedAttributes","h","govHost","host","validateSize","newValue","validateProp","validateShape","validateAnimation","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","init","inheritAriaAttributes","componentWillUpdate","disconnectedCallback","_a","stopObserving","removeAttribute","Object","assign","fill","render","Host","key","class","circle","line","progress","pulse","role","tabindex","style"],"sources":["../../../packages/core/src/components/gov-loading/skeleton/constants.ts","../../../packages/core/src/components/gov-loading/skeleton/gov-skeleton.tsx"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\r\nimport { ValueOf } from \"../../../types/interfaces\"\r\nimport {Sizes} from \"../../../core/constants/sizes\";\r\nimport {Colors} from \"../../../core/constants/colors\";\r\n\r\nexport const SkeletonSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type SkeletonSizesType = `${ValueOf<typeof SkeletonSizes>}`\r\n\r\nexport const SkeletonColors = pick(Colors, [\"PRIMARY\", \"NEUTRAL\"])\r\nexport type SkeletonColorType = `${ValueOf<typeof SkeletonColors>}`\r\n\r\nexport enum SkeletonShapes {\r\n\tCIRCLE = 'circle',\r\n\tLINE = 'line'\r\n}\r\nexport type SkeletonShapesType = `${ValueOf<typeof SkeletonShapes>}`\r\n\r\nexport enum SkeletonAnimation {\r\n\tPULSE = 'pulse',\r\n\tPROGRESS = 'progress',\r\n\tFALSE = 'false'\r\n}\r\nexport type SkeletonAnimationType = `${ValueOf<typeof SkeletonAnimation>}`\r\n\r\nexport const SkeletonClass = {\r\n\troot: 'gov-skeleton',\r\n}\r\n","import {Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\r\nimport {\r\n\tSkeletonAnimation,\r\n\tSkeletonAnimationType,\r\n\tSkeletonClass,\r\n\tSkeletonColorType,\r\n\tSkeletonShapes,\r\n\tSkeletonShapesType,\r\n\tSkeletonSizes,\r\n} from \"./constants\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {govHost} from \"../../../helpers/Dom/template\"\r\nimport {validateProp} from \"../../../helpers/Validate/props\"\r\nimport {FormInputSizesType} from \"../../gov-form/input/constants\";\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\n\r\n@Component({\r\n\ttag: \"gov-skeleton\",\r\n})\r\nexport class GovSkeleton {\r\n\th: GovHost\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovSkeletonElement\r\n\t/**\r\n\t * Input’s size.\r\n\t */\r\n\t@Prop({reflect: true}) readonly size?: FormInputSizesType = \"m\"\r\n\t/**\r\n\t * Style variation of the skeleton.\r\n\t */\r\n\t@Prop() readonly color?: SkeletonColorType = \"neutral\"\r\n\t/**\r\n\t * Shape of the skeleton\r\n\t */\r\n\t@Prop() shape?: SkeletonShapesType = \"line\"\r\n\t/**\r\n\t * Width of the skeleton ex. 100px, 100%, auto etc.\r\n\t */\r\n\t@Prop({reflect: true}) width?: string = null\r\n\t/**\r\n\t * Height of the skeleton ex. 100px, 100%, auto etc.\r\n\t */\r\n\t@Prop({reflect: true}) height?: string = null\r\n\t/**\r\n\t * Animation type\r\n\t */\r\n\t@Prop() animation?: SkeletonAnimationType = \"progress\"\r\n\r\n\titems: number[] = []\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(SkeletonSizes, newValue, SkeletonClass.root)\r\n\t}\r\n\r\n\t@Watch('shape')\r\n\tvalidateShape(newValue: string): void {\r\n\t\tvalidateProp(SkeletonShapes, newValue, SkeletonClass.root)\r\n\t}\r\n\r\n\t@Watch('animation')\r\n\tvalidateAnimation(newValue: string): void {\r\n\t\tvalidateProp(SkeletonAnimation, newValue, SkeletonClass.root)\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validateShape(this.shape)\r\n\t\tthis.validateAnimation(this.animation)\r\n\t\tthis.init()\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tcomponentWillUpdate() {\r\n\t\tthis.init()\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tinit() {\r\n\t\tthis.items.fill(1)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host size={this.size}\r\n\t\t\t\t color={this.color}\r\n\t\t\t\t class={{\r\n\t\t\t\t\t [SkeletonClass.root]: true,\r\n\t\t\t\t\t circle: this.shape === \"circle\",\r\n\t\t\t\t\t line: this.shape === \"line\",\r\n\t\t\t\t\t progress: this.animation === \"progress\",\r\n\t\t\t\t\t pulse: this.animation === \"pulse\",\r\n\t\t\t\t }}\r\n\t\t\t\t {...this.inheritedAttributes}\r\n\t\t\t\t aria-busy=\"true\"\r\n\t\t\t\t aria-valuemin=\"0\"\r\n\t\t\t\t aria-valuemax=\"100\"\r\n\t\t\t\t role=\"progressbar\"\r\n\t\t\t\t tabindex=\"0\"\r\n\t\t\t\t style={{width: this.width, height: this.height}}>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"0RAKO,MAAMA,EAAgBC,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,QAGrCD,EAAKE,EAAQ,CAAC,UAAW,YAGvD,IAAYC,GAAZ,SAAYA,GACXA,EAAA,mBACAA,EAAA,cACA,EAHD,CAAYA,MAGX,KAGD,IAAYC,GAAZ,SAAYA,GACXA,EAAA,iBACAA,EAAA,uBACAA,EAAA,gBACA,EAJD,CAAYA,MAIX,KAGM,MAAMC,EAAgB,CAC5BC,KAAM,gB,MCJMC,EAAWC,EAAA,MAAAD,UAAAE,EAIvB,WAAAC,G,8BAQgCC,KAAIC,KAAwB,IAI3CD,KAAKE,MAAuB,UAIrCF,KAAKG,MAAwB,OAIdH,KAAKI,MAAY,KAIjBJ,KAAMK,OAAY,KAIjCL,KAASM,UAA2B,WAE5CN,KAAKO,MAAa,GAiBTP,KAAmBQ,oBAAe,GA9C1CR,KAAKS,EAAIC,EAAQV,KAAKW,KACtB,CA+BD,YAAAC,CAAaC,GACZC,EAAa1B,EAAeyB,EAAUnB,EAAcC,K,CAIrD,aAAAoB,CAAcF,GACbC,EAAatB,EAAgBqB,EAAUnB,EAAcC,K,CAItD,iBAAAqB,CAAkBH,GACjBC,EAAarB,EAAmBoB,EAAUnB,EAAcC,K,CAKzD,gBAAAsB,GACCjB,KAAKkB,kBAAoB,IAAIC,EAAkBnB,KAAKW,MAAM,CAACS,EAAeP,KACzEb,KAAKqB,sBAAsBD,EAAeP,EAAS,IAGpDb,KAAKkB,kBAAkBI,eAAeC,E,CAGvC,iBAAAC,GACCxB,KAAKY,aAAaZ,KAAKC,MACvBD,KAAKe,cAAcf,KAAKG,OACxBH,KAAKgB,kBAAkBhB,KAAKM,WAC5BN,KAAKyB,OACLzB,KAAKQ,oBAAsBkB,EAAsB1B,KAAKW,K,CAGvD,mBAAAgB,GACC3B,KAAKyB,M,CAGN,oBAAAG,G,OACCC,EAAA7B,KAAKkB,qBAAmB,MAAAW,SAAA,SAAAA,EAAAC,e,CAGzB,qBAAAT,CAAsBD,EAAuBP,GAC5Cb,KAAKW,KAAKoB,gBAAgBX,GAC1BpB,KAAKQ,oBAA0BwB,OAAAC,OAAAD,OAAAC,OAAA,GAAAjC,KAAKQ,qBAAqB,CAAAY,CAACA,GAAgBP,G,CAG3E,IAAAY,GACCzB,KAAKO,MAAM2B,KAAK,E,CAGjB,MAAAC,GACC,OACC1B,EAAC2B,EAAKJ,OAAAC,OAAA,CAAAI,IAAA,2CAAApC,KAAMD,KAAKC,KACdC,MAAOF,KAAKE,MACZoC,MAAO,CACN,CAAC5C,EAAcC,MAAO,KACtB4C,OAAQvC,KAAKG,QAAU,SACvBqC,KAAMxC,KAAKG,QAAU,OACrBsC,SAAUzC,KAAKM,YAAc,WAC7BoC,MAAO1C,KAAKM,YAAc,UAEvBN,KAAKQ,oBAAmB,aAClB,OACI,oBACA,sBACdmC,KAAK,cACLC,SAAS,IACTC,MAAO,CAACzC,MAAOJ,KAAKI,MAAOC,OAAQL,KAAKK,U","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["pick","Sizes","FormLabelClass","root","label"],"sources":["../../../packages/core/src/components/gov-form/label/constants.ts"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\nimport { Sizes } from \"../../../core/constants/sizes\"\nimport { ValueOf } from \"../../../types/interfaces\"\n\nexport const FormLabelSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type FormLabelSizesTypes = `${ValueOf<typeof FormLabelSizes>}`\n\nexport const FormLabelClass = {\n\troot: 'gov-form-label',\n\tlabel: 'gov-form-label__label',\n}\n"],"mappings":"wEAI8BA,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,QAGvD,MAAAC,EAAiB,CAC7BC,KAAM,iBACNC,MAAO,gC","ignoreList":[]}
1
+ {"version":3,"names":["pick","Sizes","FormLabelClass","root","label"],"sources":["../../../packages/core/src/components/gov-form/label/constants.ts"],"sourcesContent":["import { pick } from \"../../../utils/utils\"\r\nimport { Sizes } from \"../../../core/constants/sizes\"\r\nimport { ValueOf } from \"../../../types/interfaces\"\r\n\r\nexport const FormLabelSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type FormLabelSizesTypes = `${ValueOf<typeof FormLabelSizes>}`\r\n\r\nexport const FormLabelClass = {\r\n\troot: 'gov-form-label',\r\n\tlabel: 'gov-form-label__label',\r\n}\r\n"],"mappings":"wEAI8BA,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,QAGvD,MAAAC,EAAiB,CAC7BC,KAAM,iBACNC,MAAO,gC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ const e=e=>{if(Array.isArray(e)===false)return;return e.filter((e=>!!e)).join(" ").trim()};const t=e=>e?"true":"false";const r=e=>({get hostElement(){return e},get name(){return this.hostElement.nodeName.toLowerCase()},hasSlot(e){return!!this.getSlot(e)},isSlotEmpty(e){const t=this.getSlot(e);if(t){return t.childNodes.length===0}return false},getSlot(e){const t=Array.from(this.hostElement.querySelectorAll(`[slot="${e}"]`));return t.length>0?t[0]:null},getSlotContent(e){const t=this.getSlot(e);return t?t.textContent:null},getParent(e){return this.hostElement.closest(e)},passChildAttr(e,t,r){if(Array.isArray(e)){e.forEach((e=>{this.hostElement.querySelectorAll(e).forEach((e=>e.setAttribute(t,r)))}))}else{this.hostElement.querySelectorAll(e).forEach((e=>e.setAttribute(t,r)))}},removeChildAttr(e,t){if(Array.isArray(e)){e.forEach((e=>{this.hostElement.querySelectorAll(e).forEach((e=>e.removeAttribute(t)))}))}else{this.hostElement.querySelectorAll(e).forEach((e=>e.removeAttribute(t)))}},classes(e){const t=Array.isArray(e)?e.join(" "):e;if(this.hostElement){return this.hostElement.classList.toString()+" "+t}return t}});const n=e=>{if(typeof e==="string"){return["true","True","TRUE","1"].indexOf(e)!==-1?"true":"false"}else if(typeof e==="number"){return e>0?"true":"false"}else if(typeof e==="boolean"){return e?"true":"false"}else{return e?"true":"false"}};const s=e=>{if(typeof e==="string"){return["true","True","TRUE","1","On","on","ON"].indexOf(e)!==-1?"on":"off"}else if(typeof e==="number"){return e>0?"on":"off"}else if(typeof e==="boolean"){return e?"on":"off"}else{return e?"on":"off"}};const o=e=>typeof e==="undefined"?undefined:n(e);const f=e=>typeof e==="undefined"?undefined:s(e);const u=e=>e?"0":"-1";export{f as a,t as b,o as c,u as d,r as g,e as p,n as t};
2
+ //# sourceMappingURL=p-DKo9A5gq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["prepareClasses","classes","Array","isArray","filter","classname","join","trim","booleanString","value","govHost","host","hostElement","name","this","nodeName","toLowerCase","hasSlot","getSlot","isSlotEmpty","slot","childNodes","length","slottedElements","from","querySelectorAll","getSlotContent","textContent","getParent","element","closest","passChildAttr","selector","forEach","child","setAttribute","removeChildAttr","removeAttribute","clearClasses","classList","toString","toBoolAttr","indexOf","toOnOffAttr","toBoolAttrIfDefined","undefined","toOnOffAttrIfDefined","boolToFocusValue"],"sources":["../../../packages/core/src/helpers/Dom/template.ts"],"sourcesContent":["import {HTMLStencilElement} from '@stencil/core/internal'\r\nimport {GovHost} from './template.types'\r\nimport {Nullable} from '../../types/interfaces'\r\n\r\nexport const prepareClasses = (classes: string[]): string => {\r\n\tif (Array.isArray(classes) === false) return\r\n\treturn classes\r\n\t\t.filter(classname => !!classname)\r\n\t\t.join(' ')\r\n\t\t.trim()\r\n}\r\n\r\nexport const booleanString = (value: boolean): string => {\r\n\treturn value ? 'true' : 'false'\r\n}\r\n\r\nexport const govHost = (host: HTMLStencilElement): GovHost => {\r\n\treturn {\r\n\t\tget hostElement(): HTMLStencilElement {\r\n\t\t\treturn host\r\n\t\t},\r\n\t\tget name(): string {\r\n\t\t\treturn this.hostElement.nodeName.toLowerCase()\r\n\t\t},\r\n\t\thasSlot(name: string): boolean {\r\n\t\t\treturn !!this.getSlot(name)\r\n\t\t},\r\n\t\tisSlotEmpty(name: string): boolean {\r\n\t\t\tconst slot = this.getSlot(name)\r\n\t\t\tif (slot) {\r\n\t\t\t\treturn slot.childNodes.length === 0\r\n\t\t\t}\r\n\t\t\treturn false\r\n\t\t},\r\n\t\tgetSlot(name: string): HTMLElement {\r\n\t\t\tconst slottedElements = Array.from(this.hostElement.querySelectorAll(`[slot=\"${name}\"]`)) as HTMLElement[];\r\n\t\t\treturn slottedElements.length > 0 ? slottedElements[0] : null;\r\n\t\t},\r\n\t\tgetSlotContent(name: string): Nullable<string> {\r\n\t\t\tconst slot = this.getSlot(name);\r\n\t\t\treturn slot ? slot.textContent : null;\r\n\t\t},\r\n\t\tgetParent(element): Nullable<HTMLElement> {\r\n\t\t\treturn this.hostElement.closest(element)\r\n\t\t},\r\n\t\tpassChildAttr(selector: string | string[], name: string, value: any): void {\r\n\t\t\tif (Array.isArray(selector)) {\r\n\t\t\t\tselector.forEach(selector => {\r\n\t\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.setAttribute(name, value))\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.setAttribute(name, value))\r\n\t\t\t}\r\n\t\t},\r\n\t\tremoveChildAttr(selector: string | string[], name: string): void {\r\n\t\t\tif (Array.isArray(selector)) {\r\n\t\t\t\tselector.forEach(selector => {\r\n\t\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.removeAttribute(name))\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis.hostElement.querySelectorAll(selector).forEach(child => child.removeAttribute(name))\r\n\t\t\t}\r\n\t\t},\r\n\t\tclasses(classes: string | string[]): string {\r\n\t\t\tconst clearClasses = Array.isArray(classes) ? classes.join(' ') : classes\r\n\t\t\tif (this.hostElement) {\r\n\t\t\t\treturn this.hostElement.classList.toString() + ' ' + clearClasses\r\n\t\t\t}\r\n\t\t\treturn clearClasses\r\n\t\t},\r\n\t}\r\n}\r\n\r\nexport const toBoolAttr = (value: boolean | string | number): string => {\r\n\tif (typeof value === 'string') {\r\n\t\treturn ['true', 'True', 'TRUE', '1'].indexOf(value) !== -1 ? 'true' : 'false'\r\n\t} else if (typeof value === 'number') {\r\n\t\treturn value > 0 ? 'true' : 'false'\r\n\t} else if (typeof value === 'boolean') {\r\n\t\treturn value ? 'true' : 'false'\r\n\t} else {\r\n\t\treturn value ? 'true' : 'false'\r\n\t}\r\n}\r\n\r\nexport const toOnOffAttr = (value: boolean | string | number): string => {\r\n\tif (typeof value === 'string') {\r\n\t\treturn ['true', 'True', 'TRUE', '1', 'On', 'on', 'ON'].indexOf(value) !== -1 ? 'on' : 'off'\r\n\t} else if (typeof value === 'number') {\r\n\t\treturn value > 0 ? 'on' : 'off'\r\n\t} else if (typeof value === 'boolean') {\r\n\t\treturn value ? 'on' : 'off'\r\n\t} else {\r\n\t\treturn value ? 'on' : 'off'\r\n\t}\r\n}\r\n\r\nexport const toBoolAttrIfDefined = (value: boolean | string | number | undefined | null): undefined | string => {\r\n\treturn typeof value === 'undefined' ? undefined : toBoolAttr(value)\r\n}\r\n\r\nexport const toOnOffAttrIfDefined = (value: boolean | string | number | undefined | null): undefined | string => {\r\n\treturn typeof value === 'undefined' ? undefined : toOnOffAttr(value)\r\n}\r\n\r\nexport const boolToFocusValue = (value: boolean): undefined | string => {\r\n\treturn value ? '0' : '-1'\r\n}\r\n"],"mappings":"AAIa,MAAAA,EAAkBC,IAC9B,GAAIC,MAAMC,QAAQF,KAAa,MAAO,OACtC,OAAOA,EACLG,QAAOC,KAAeA,IACtBC,KAAK,KACLC,MAAM,EAGI,MAAAC,EAAiBC,GACtBA,EAAQ,OAAS,QAGZ,MAAAC,EAAWC,IAChB,CACN,eAAIC,GACH,OAAOD,C,EAER,QAAIE,GACH,OAAOC,KAAKF,YAAYG,SAASC,a,EAElC,OAAAC,CAAQJ,GACP,QAASC,KAAKI,QAAQL,E,EAEvB,WAAAM,CAAYN,GACX,MAAMO,EAAON,KAAKI,QAAQL,GAC1B,GAAIO,EAAM,CACT,OAAOA,EAAKC,WAAWC,SAAW,C,CAEnC,OAAO,K,EAER,OAAAJ,CAAQL,GACP,MAAMU,EAAkBrB,MAAMsB,KAAKV,KAAKF,YAAYa,iBAAiB,UAAUZ,QAC/E,OAAOU,EAAgBD,OAAS,EAAIC,EAAgB,GAAK,I,EAE1D,cAAAG,CAAeb,GACd,MAAMO,EAAON,KAAKI,QAAQL,GAC1B,OAAOO,EAAOA,EAAKO,YAAc,I,EAElC,SAAAC,CAAUC,GACT,OAAOf,KAAKF,YAAYkB,QAAQD,E,EAEjC,aAAAE,CAAcC,EAA6BnB,EAAcJ,GACxD,GAAIP,MAAMC,QAAQ6B,GAAW,CAC5BA,EAASC,SAAQD,IAChBlB,KAAKF,YAAYa,iBAAiBO,GAAUC,SAAQC,GAASA,EAAMC,aAAatB,EAAMJ,IAAO,G,KAExF,CACNK,KAAKF,YAAYa,iBAAiBO,GAAUC,SAAQC,GAASA,EAAMC,aAAatB,EAAMJ,I,GAGxF,eAAA2B,CAAgBJ,EAA6BnB,GAC5C,GAAIX,MAAMC,QAAQ6B,GAAW,CAC5BA,EAASC,SAAQD,IAChBlB,KAAKF,YAAYa,iBAAiBO,GAAUC,SAAQC,GAASA,EAAMG,gBAAgBxB,IAAM,G,KAEpF,CACNC,KAAKF,YAAYa,iBAAiBO,GAAUC,SAAQC,GAASA,EAAMG,gBAAgBxB,I,GAGrF,OAAAZ,CAAQA,GACP,MAAMqC,EAAepC,MAAMC,QAAQF,GAAWA,EAAQK,KAAK,KAAOL,EAClE,GAAIa,KAAKF,YAAa,CACrB,OAAOE,KAAKF,YAAY2B,UAAUC,WAAa,IAAMF,C,CAEtD,OAAOA,C,IAKG,MAAAG,EAAchC,IAC1B,UAAWA,IAAU,SAAU,CAC9B,MAAO,CAAC,OAAQ,OAAQ,OAAQ,KAAKiC,QAAQjC,MAAW,EAAK,OAAS,O,MAChE,UAAWA,IAAU,SAAU,CACrC,OAAOA,EAAQ,EAAI,OAAS,O,MACtB,UAAWA,IAAU,UAAW,CACtC,OAAOA,EAAQ,OAAS,O,KAClB,CACN,OAAOA,EAAQ,OAAS,O,GAInB,MAAMkC,EAAelC,IAC3B,UAAWA,IAAU,SAAU,CAC9B,MAAO,CAAC,OAAQ,OAAQ,OAAQ,IAAK,KAAM,KAAM,MAAMiC,QAAQjC,MAAW,EAAK,KAAO,K,MAChF,UAAWA,IAAU,SAAU,CACrC,OAAOA,EAAQ,EAAI,KAAO,K,MACpB,UAAWA,IAAU,UAAW,CACtC,OAAOA,EAAQ,KAAO,K,KAChB,CACN,OAAOA,EAAQ,KAAO,K,GAIX,MAAAmC,EAAuBnC,UACrBA,IAAU,YAAcoC,UAAYJ,EAAWhC,GAGjD,MAAAqC,EAAwBrC,UACtBA,IAAU,YAAcoC,UAAYF,EAAYlC,GAGlD,MAAAsC,EAAoBtC,GACzBA,EAAQ,IAAM,Y","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{p as t,H as s,c as e,h as i,a as o}from"./index.js";import{v as c}from"./p-BKP-F1qP.js";import{g as a}from"./p-DKo9A5gq.js";import{p as h}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{a as r,c as f}from"./p-CNqoJU2V.js";import{c as d}from"./p-vN03FcXN.js";import{p as l}from"./p-GYov8gU1.js";import{i as b,A as p,a as m}from"./p-CXgom82_.js";import{d as u}from"./p-BJnSrRNH.js";const g=h(n,["_XS","_S","_M"]);var v;(function(t){t["SOLID"]="solid";t["OUTLINED"]="outlined"})(v||(v={}));var y;(function(t){t["A"]="a";t["SPAN"]="span";t["BUTTON"]="button"})(y||(y={}));const k={root:"gov-chip",hasRight:"gov-chip--has-right",hasLeft:"gov-chip--has-left"};const j=t(class t extends s{constructor(){super();this.__registerHost();this.govClick=e(this,"gov-click");this.hydrated=false;this.disabled=false;this.size=g._M;this.tag="span";this.color=r.PRIMARY;this.focusable=true;this.inheritedAttributes={};this.h=a(this.host);this.chipId=d("GovChip")}validateColor(t){c(r,t,k.root)}validateSize(t){c(f,t,k.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(m)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=this.href?y.A:this.tag;const s=t==y.BUTTON?y.BUTTON:undefined;const e=l(this.iconStart);const c=l(this.iconEnd);return i(o,{key:"ef86316065b17ea753e6f46944203be579c9669c",class:this.h.classes([k.root,this.h.hasSlot("right")?k.hasRight:undefined,this.h.hasSlot("left")?k.hasLeft:undefined]),disabled:this.disabled,href:this.href,color:this.color,type:this.type,size:this.size,focusable:this.focusable,hydrated:this.hydrated},i(t,Object.assign({key:"0ecb833e5c5f4e30914d9f12764b78bfd22973b6",class:"element",href:this.href,target:this.target,ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),tabindex:this.h.hasSlot("left")||this.h.hasSlot("right")||this.disabled||!this.focusable?"-1":"0",id:this.identifier||this.chipId,type:s},this.inheritedAttributes,{"aria-disabled":this.disabled}),i("slot",{key:"9793b743f288573932aec95f68c0f1b1bb617add",name:"left"}),i("slot",{key:"be7cc7cb0a94c666faf842d8ee70701245305001",name:"icon-start"},e&&i("gov-icon",{key:"464ebc3d08b609a17e5e126eca9b0fb8eefc2bd4",type:e.type,name:e.name})),i("slot",{key:"faffc742599b65f40b61b8cbd45e32891f43a869"}),i("slot",{key:"dce2fa1d55332f8cc3d51e8a11e56735f5bcf683",name:"icon-end"},c&&i("gov-icon",{key:"afc841c471bc376cc650150e168d307f3393ef15",type:c.type,name:c.name})),i("slot",{key:"16dc2b17d2b813c2ced12ae44c12d621a82c6cb5",name:"right"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false&&this.tag===y.BUTTON){this.govClick.emit(t)}}async geRef(){return this.triggerRef}async setFocus(){this.triggerRef.focus()}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-chip",{disabled:[516],href:[1],target:[1],iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[1],tag:[1],color:[1],type:[513],focusable:[4],identifier:[1],inheritedAttributes:[32],geRef:[64],setFocus:[64]},undefined,{color:["validateColor"],size:["validateSize"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-chip":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-icon":if(!customElements.get(t)){u()}break}}))}C();export{j as G,C as d};
2
+ //# sourceMappingURL=p-DW1DKFMF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ChipSizes","pick","Sizes","ChipType","NativeType","ChipClass","root","hasRight","hasLeft","GovChip","__stencil_proxyCustomElement","HTMLElement","constructor","this","hydrated","disabled","size","_M","tag","color","ButtonColors","PRIMARY","focusable","inheritedAttributes","h","govHost","host","chipId","createID","validateColor","newValue","validateProp","validateSize","ButtonSizes","componentWillLoad","inheritAriaAttributes","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","disconnectedCallback","_a","stopObserving","connectedCallback","removeAttribute","Object","assign","render","Tag","href","A","nativeType","BUTTON","undefined","iconStart","prepareIconFormat","iconEnd","Host","key","class","classes","hasSlot","type","target","ref","el","triggerRef","onClick","onClickHandler","bind","tabindex","id","identifier","name","e","stopPropagation","govClick","emit","geRef","setFocus","focus"],"sources":["../../../packages/core/src/components/gov-chip/constants.ts","../../../packages/core/src/components/gov-chip/gov-chip.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\r\nimport {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\n\r\nexport const ChipSizes = pick(Sizes, ['_XS', '_S', '_M'])\r\nexport type ChipSizesType = `${ValueOf<typeof ChipSizes>}`\r\n\r\nexport enum ChipType {\r\n\tSOLID = 'solid',\r\n\tOUTLINED = 'outlined',\r\n}\r\nexport type ChipTypesType = `${ValueOf<typeof ChipType>}`\r\n\r\nexport enum NativeType {\r\n\tA = 'a',\r\n\tSPAN = 'span',\r\n\tBUTTON = 'button',\r\n}\r\nexport type NativeTypesType = `${ValueOf<typeof NativeType>}`\r\n\r\nexport const ChipClass = {\r\n\troot: 'gov-chip',\r\n\tinner: 'gov-chip__inner',\r\n\thasRight: 'gov-chip--has-right',\r\n\thasLeft: 'gov-chip--has-left',\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {validateProp} from \"../../helpers/Validate/props\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {ChipClass, ChipSizes, ChipSizesType, ChipTypesType, NativeType, NativeTypesType} from \"./constants\"\r\nimport {ButtonColors, ButtonColorType, ButtonSizes} from \"../gov-button/button/constants\"\r\nimport {createID} from \"../../utils/string.utils\"\r\nimport {prepareIconFormat} from \"../gov-icon/helpers\";\r\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\r\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\r\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\r\n\r\n@Component({\r\n\ttag: \"gov-chip\",\r\n})\r\nexport class GovChip {\r\n\tprivate triggerRef?: HTMLButtonElement | HTMLLinkElement | HTMLSpanElement\r\n\tprivate h: GovHost\r\n\tprivate readonly chipId: string\r\n\tprivate hydrated = false\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.chipId = createID('GovChip')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovChipElement\r\n\r\n\t/**\r\n\t * Makes the chip component disabled.\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\r\n\t */\r\n\t@Prop() readonly href: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\r\n\t */\r\n\t@Prop() readonly target: string\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-start\"}) readonly iconStart?: string\r\n\t/**\r\n\t * Definition of the button icon on the left. The icon must be defined in the form \"type/name\".\r\n\t */\r\n\t@Prop({attribute: \"icon-end\"}) readonly iconEnd?: string\r\n\t/**\r\n\t * Chip’s size.\r\n\t */\r\n\t@Prop() readonly size: ChipSizesType = ChipSizes._M\r\n\t/**\r\n\t * Used to change the HTML tag in the chip\r\n\t */\r\n\t@Prop() readonly tag: NativeTypesType = \"span\"\r\n\t/**\r\n\t * Style variation of the chip.\r\n\t */\r\n\t@Prop() readonly color: ButtonColorType = ButtonColors.PRIMARY\r\n\t/**\r\n\t * Chip’s type\r\n\t */\r\n\t@Prop({reflect: true}) readonly type: ChipTypesType\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/focusable\r\n\t */\r\n\t@Prop() readonly focusable: boolean = true\r\n\t/**\r\n\t * Custom chip identifier. Otherwise, it will be generated\r\n\t */\r\n\t@Prop() readonly identifier: string\r\n\t/**\r\n\t * Emitted when the button click.\r\n\t */\r\n\t@Event({eventName: \"gov-click\"}) govClick: EventEmitter<PointerEvent>\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(ButtonColors, newValue, ChipClass.root)\r\n\t}\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(ButtonSizes, newValue, ChipClass.root)\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst Tag = this.href ? NativeType.A : this.tag\r\n\t\tconst nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined\r\n\r\n\t\tconst iconStart = prepareIconFormat(this.iconStart)\r\n\t\tconst iconEnd = prepareIconFormat(this.iconEnd)\r\n\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={this.h.classes([\r\n\t\t\t\t\tChipClass.root,\r\n\t\t\t\t\tthis.h.hasSlot(\"right\") ? ChipClass.hasRight : undefined,\r\n\t\t\t\t\tthis.h.hasSlot(\"left\") ? ChipClass.hasLeft : undefined,\r\n\t\t\t\t])}\r\n\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\thref={this.href}\r\n\t\t\t\tcolor={this.color}\r\n\t\t\t\ttype={this.type}\r\n\t\t\t\tsize={this.size}\r\n\t\t\t\tfocusable={this.focusable}\r\n\t\t\t\thydrated={this.hydrated}\r\n\t\t\t>\r\n\t\t\t\t<Tag\r\n\t\t\t\t\tclass=\"element\"\r\n\t\t\t\t\thref={this.href}\r\n\t\t\t\t\ttarget={this.target}\r\n\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLButtonElement | HTMLSpanElement)}\r\n\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\r\n\t\t\t\t\ttabindex={(this.h.hasSlot(\"left\") || this.h.hasSlot(\"right\") || this.disabled || !this.focusable) ? \"-1\" : \"0\"}\r\n\t\t\t\t\tid={this.identifier || this.chipId}\r\n\t\t\t\t\ttype={nativeType}\r\n\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\taria-disabled={this.disabled}>\r\n\t\t\t\t\t<slot name=\"left\"></slot>\r\n\t\t\t\t\t<slot name=\"icon-start\">\r\n\t\t\t\t\t\t{iconStart && <gov-icon type={iconStart.type} name={iconStart.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t<slot name=\"icon-end\">\r\n\t\t\t\t\t\t{iconEnd && <gov-icon type={iconEnd.type} name={iconEnd.name}></gov-icon>}\r\n\t\t\t\t\t</slot>\r\n\t\t\t\t\t<slot name=\"right\"></slot>\r\n\t\t\t\t</Tag>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onClickHandler(e: PointerEvent): void {\r\n\t\te.stopPropagation()\r\n\t\tif (this.disabled === false && this.tag === NativeType.BUTTON) {\r\n\t\t\tthis.govClick.emit(e)\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a clickable element instance\r\n\t */\r\n\t@Method()\r\n\tasync geRef() {\r\n\t\treturn this.triggerRef\r\n\t}\r\n\r\n\t/**\r\n\t * Focus button element\r\n\t */\r\n\t@Method()\r\n\tasync setFocus(): Promise<void> {\r\n\t\tthis.triggerRef.focus()\r\n\t}\r\n}\r\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{p as t,H as s,h as e,a as i}from"./index.js";import{T as o,a as n,d as a}from"./p-DfI_0WW6.js";import{t as c}from"./p-DKo9A5gq.js";import{d as l}from"./p-CWqMiVYH.js";import{d as r}from"./p-BJnSrRNH.js";const f=t(class t extends s{constructor(){super();this.__registerHost();this.color=o.PRIMARY;this.size=n._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(t){clearTimeout(this.timeout);if(t===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const t=document.getElementById(this.parentId);if(t){t.hide().catch()}}render(){return e(i,{key:"a826527fe9f7851ad25f700156d987c1b29f3adc",class:a.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!c(this.isVisible),"is-visible":this.isVisible},e("slot",{key:"d3891d8a3f3df7ee7f852db8485c7ecc2f61992c"}),this.persist?e("gov-button",{"on-gov-click":this.hideContent.bind(this),color:this.color,size:this.size,type:"base"},e("gov-icon",{slot:"icon-start",name:"x-lg",type:"components"})):null)}get host(){return this}static get watchers(){return{isVisible:["visibleContent"]}}},[4,"gov-tooltip-content",{color:[1],size:[1],persist:[4],isVisible:[1028,"is-visible"],parentId:[1,"parent-id"]},undefined,{isVisible:["visibleContent"]}]);function h(){if(typeof customElements==="undefined"){return}const t=["gov-tooltip-content","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-tooltip-content":if(!customElements.get(t)){customElements.define(t,f)}break;case"gov-button":if(!customElements.get(t)){l()}break;case"gov-icon":if(!customElements.get(t)){r()}break}}))}h();export{f as G,h as d};
2
+ //# sourceMappingURL=p-DZJk8GrA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovTooltipContent","__stencil_proxyCustomElement","HTMLElement","constructor","this","color","TooltipColors","PRIMARY","size","TooltipSize","_M","persist","isVisible","parentId","visibleContent","newValue","clearTimeout","timeout","setTimeout","host","style","visibility","hideContent","parentEl","document","getElementById","hide","catch","render","h","Host","key","class","TooltipContentClass","root","role","hidden","toBoolAttr","bind","type","slot","name"],"sources":["../../../packages/core/src/components/gov-tooltip/gov-tooltip-content.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\r\nimport { TooltipContentClass, TooltipSize, TooltipSizeType, TooltipColors, TooltipColorType } from \"./constants\"\r\nimport { toBoolAttr } from \"../../helpers/Dom/template\"\r\n\r\n@Component({\r\n\ttag: \"gov-tooltip-content\",\r\n})\r\nexport class GovTooltipContent {\r\n\tprivate timeout\r\n\r\n\t@Element() host: HTMLGovTooltipContentElement\r\n\t/**\r\n\t * Style variation of the tooltip\r\n\t */\r\n\t@Prop() readonly color?: TooltipColorType = TooltipColors.PRIMARY\r\n\t/**\r\n\t * Tooltip’s size.\r\n\t */\r\n\t@Prop() readonly size?: TooltipSizeType = TooltipSize._M\r\n\t/**\r\n\t * Tooltip is still visible.\r\n\t */\r\n\t@Prop() persist?: boolean = false\r\n\t/**\r\n\t * Indicates display of tooltip content\r\n\t */\r\n\t@Prop({ attribute: \"is-visible\", mutable: true }) isVisible = false\r\n\t/**\r\n\t * Indicates display of tooltip content\r\n\t */\r\n\t@Prop({ attribute: \"parent-id\" }) parentId: string = null\r\n\r\n\t@Watch(\"isVisible\")\r\n\tvisibleContent(newValue: boolean): void {\r\n\t\tclearTimeout(this.timeout)\r\n\t\tif (newValue === false) {\r\n\t\t\tthis.timeout = setTimeout(() => {\r\n\t\t\t\tthis.host.style.visibility = \"hidden\"\r\n\t\t\t}, 250)\r\n\t\t} else {\r\n\t\t\tthis.host.style.visibility = \"visible\"\r\n\t\t}\r\n\t}\r\n\r\n\thideContent() {\r\n\t\tthis.isVisible = false\r\n\t\tthis.persist = false\r\n\t\tconst parentEl = document.getElementById(this.parentId) as HTMLGovTooltipElement\r\n\t\tif (parentEl) {\r\n\t\t\tparentEl.hide().catch()\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host\r\n\t\t\t\tclass={TooltipContentClass.root}\r\n\t\t\t\trole={\"tooltip\"}\r\n\t\t\t\thidden={!this.isVisible}\r\n\t\t\t\taria-hidden={!toBoolAttr(this.isVisible)}\r\n\t\t\t\tis-visible={this.isVisible}>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t\t{this.persist ? (\r\n\t\t\t\t\t<gov-button\r\n\t\t\t\t\t\ton-gov-click={this.hideContent.bind(this)}\r\n\t\t\t\t\t\tcolor={this.color}\r\n\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\ttype={\"base\"}>\r\n\t\t\t\t\t\t<gov-icon slot={\"icon-start\"} name={\"x-lg\"} type={\"components\"}></gov-icon>\r\n\t\t\t\t\t</gov-button>\r\n\t\t\t\t) : null}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"wNAOaA,EAAiBC,EAAA,MAAAD,UAAAE,EAH9B,WAAAC,G,8BAUkBC,KAAAC,MAA2BC,EAAcC,QAIzCH,KAAAI,KAAyBC,EAAYC,GAI9CN,KAAOO,QAAa,MAIsBP,KAASQ,UAAG,MAI5BR,KAAQS,SAAW,IA4CrD,CAzCA,cAAAC,CAAeC,GACdC,aAAaZ,KAAKa,SAClB,GAAIF,IAAa,MAAO,CACvBX,KAAKa,QAAUC,YAAW,KACzBd,KAAKe,KAAKC,MAAMC,WAAa,QAAQ,GACnC,I,KACG,CACNjB,KAAKe,KAAKC,MAAMC,WAAa,S,EAI/B,WAAAC,GACClB,KAAKQ,UAAY,MACjBR,KAAKO,QAAU,MACf,MAAMY,EAAWC,SAASC,eAAerB,KAAKS,UAC9C,GAAIU,EAAU,CACbA,EAASG,OAAOC,O,EAIlB,MAAAC,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CACJC,MAAOC,EAAoBC,KAC3BC,KAAM,UACNC,QAAShC,KAAKQ,UAAS,eACTyB,EAAWjC,KAAKQ,WAClB,aAAAR,KAAKQ,WACjBiB,EAAa,QAAAE,IAAA,6CACZ3B,KAAKO,QACLkB,EACe,6BAAAzB,KAAKkB,YAAYgB,KAAKlC,MACpCC,MAAOD,KAAKC,MACZG,KAAMJ,KAAKI,KACX+B,KAAM,QACNV,EAAU,YAAAW,KAAM,aAAcC,KAAM,OAAQF,KAAM,gBAEhD,K","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["TooltipColors","pick","Colors","TooltipSize","Sizes","TooltipPosition","TooltipClass","root","TooltipContentClass"],"sources":["../../../packages/core/src/components/gov-tooltip/constants.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { Sizes } from '../../core/constants/sizes'\nimport { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils'\n\nexport const TooltipColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\nexport type TooltipColorType = `${ValueOf<typeof TooltipColors>}`\n\nexport const TooltipSize = pick(Sizes, ['_S', '_M', '_L'])\nexport type TooltipSizeType = `${ValueOf<typeof TooltipSize>}`\n\nexport enum TooltipPosition {\n\tTOP = 'top',\n\tRIGHT = 'right',\n\tBOTTOM = 'bottom',\n\tLEFT = 'left',\n}\nexport type TooltipPositionType = `${ValueOf<typeof TooltipPosition>}`\n\nexport const TooltipClass = {\n\troot: 'gov-tooltip',\n}\n\nexport const TooltipContentClass = {\n\troot: 'gov-tooltip-content',\n}\n"],"mappings":"4GAKO,MAAMA,EAAgBC,EAAKC,EAAQ,CAAC,UAAW,YAGzC,MAAAC,EAAcF,EAAKG,EAAO,CAAC,KAAM,KAAM,O,IAGxCC,GAAZ,SAAYA,GACXA,EAAA,aACAA,EAAA,iBACAA,EAAA,mBACAA,EAAA,cACA,EALD,CAAYA,MAKX,KAGY,MAAAC,EAAe,CAC3BC,KAAM,eAGM,MAAAC,EAAsB,CAClCD,KAAM,8B","ignoreList":[]}
1
+ {"version":3,"names":["TooltipColors","pick","Colors","TooltipSize","Sizes","TooltipPosition","TooltipClass","root","TooltipContentClass"],"sources":["../../../packages/core/src/components/gov-tooltip/constants.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\r\nimport { Sizes } from '../../core/constants/sizes'\r\nimport { ValueOf } from '../../types/interfaces'\r\nimport { pick } from '../../utils/utils'\r\n\r\nexport const TooltipColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\r\nexport type TooltipColorType = `${ValueOf<typeof TooltipColors>}`\r\n\r\nexport const TooltipSize = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type TooltipSizeType = `${ValueOf<typeof TooltipSize>}`\r\n\r\nexport enum TooltipPosition {\r\n\tTOP = 'top',\r\n\tRIGHT = 'right',\r\n\tBOTTOM = 'bottom',\r\n\tLEFT = 'left',\r\n}\r\nexport type TooltipPositionType = `${ValueOf<typeof TooltipPosition>}`\r\n\r\nexport const TooltipClass = {\r\n\troot: 'gov-tooltip',\r\n}\r\n\r\nexport const TooltipContentClass = {\r\n\troot: 'gov-tooltip-content',\r\n}\r\n"],"mappings":"4GAKO,MAAMA,EAAgBC,EAAKC,EAAQ,CAAC,UAAW,YAGzC,MAAAC,EAAcF,EAAKG,EAAO,CAAC,KAAM,KAAM,O,IAGxCC,GAAZ,SAAYA,GACXA,EAAA,aACAA,EAAA,iBACAA,EAAA,mBACAA,EAAA,cACA,EALD,CAAYA,MAKX,KAGY,MAAAC,EAAe,CAC3BC,KAAM,eAGM,MAAAC,EAAsB,CAClCD,KAAM,8B","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as e,h as i,a}from"./index.js";import{g as o,d as n,e as c}from"./p-9imLQpxb.js";import{g as h,t as r,c as d}from"./p-DfJDyRCE.js";import{v as l}from"./p-BKP-F1qP.js";import{c as f}from"./p-vN03FcXN.js";import{p as u}from"./p-B0hcuYXk.js";import{t as p}from"./p-Cjg0wpDG.js";import{A as m,a as v,i as b}from"./p-CXgom82_.js";import{d as g}from"./p-B03Rpjps.js";const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=e(this,"gov-focus");this.govBlur=e(this,"gov-blur");this.govChange=e(this,"gov-change");this.size="m";this.required=false;this.disabled=false;this.optionsState=[];this.inheritedAttributes={};this.h=h(this.host);this.f=o(this.h);this.selectId=f("GovSelect")}validateSize(t){l(c,t,n.root)}watchOptions(t){this.optionsState=u(t)}watchControlAttrs(){this.passControlAttrs()}watchValue(){this.markSelectedValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","select")}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateSize(this.size);this.markSelectedValue();this.optionsState=u(this.options);this.inheritedAttributes=b(this.host)}async componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));p((()=>this.markSelectedValue()))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}markSelectedValue(){this.host.querySelectorAll("option").forEach((t=>{if(t.value===this.value){t.setAttribute("selected","selected")}else{t.removeAttribute("selected")}}))}render(){return i(a,{key:"209d5865fd6928823e03ea63773a8c5270e9ad32",class:n.root,size:this.size},this.h.hasSlot("prefix")&&i("slot",{key:"1fbe248e069d10cefc405a341dc4d601f3bc1afd",name:"prefix"}),i("span",{key:"1f250f81b6921a50099fa460493845cacff104de",class:"element"},i("select",Object.assign({key:"8ad3b59aa86d4ba926b19cea1f254a6800a50478",id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":d(this.disabled),"aria-required":d(this.required),"aria-invalid":d(this.invalid)}),i("slot",{key:"a55508d3024ecccf9f78ea4046524b1c54f1f43f"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;return i("option",{value:t.value,selected:t.value===this.value,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)}))),this.success&&i("gov-icon",{key:"8aed7cb4cc3d3dd7ac3b80812ded81674f1af748",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"95442149ab9cba9e138684577802e32a3adb5836",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"917481bb56daf82689db8efddc1cf9fd724e47d5",class:"arrow-icon",name:"chevron-down",type:"components"})),this.h.hasSlot("sufix")&&i("slot",{key:"e58a7cb17bfed2046b31f1a2d70832194020963f",name:"sufix"}))}onFocusHandler(t){this.focused=true;this.govFocus.emit({component:n.root,originalEvent:t,value:this.value})}onBlurHandler(t){this.focused=false;this.govBlur.emit({component:n.root,originalEvent:t,value:this.value})}onChangeHandler(t){this.value=t.target.value;t.stopPropagation();this.govChange.emit({component:n.root,originalEvent:t,value:this.value})}async setFocus(t){return this.selectRef.focus(t)}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}}},[260,"gov-form-select",{value:[1537],options:[1537],identifier:[1],size:[1],name:[1],required:[4],success:[516],disabled:[516],invalid:[4],focused:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-select":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}y();export{w as G,y as d};
2
- //# sourceMappingURL=p-Cy7Wk3yM.js.map
1
+ import{p as t,H as s,c as e,h as i,a}from"./index.js";import{g as o,d as c,e as n}from"./p-9imLQpxb.js";import{g as h,t as r,c as d}from"./p-DKo9A5gq.js";import{v as l}from"./p-BKP-F1qP.js";import{c as f}from"./p-vN03FcXN.js";import{p as u}from"./p-B0hcuYXk.js";import{t as m}from"./p-Cjg0wpDG.js";import{A as p,a as v,i as b}from"./p-CXgom82_.js";import{d as g}from"./p-BJnSrRNH.js";const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=e(this,"gov-focus");this.govBlur=e(this,"gov-blur");this.govChange=e(this,"gov-change");this.size="m";this.required=false;this.disabled=false;this.optionsState=[];this.inheritedAttributes={};this.h=h(this.host);this.f=o(this.h);this.selectId=f("GovSelect")}validateSize(t){l(n,t,c.root)}watchOptions(t){this.optionsState=u(t)}watchControlAttrs(){this.passControlAttrs()}watchValue(){this.markSelectedValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","select")}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateSize(this.size);this.markSelectedValue();this.optionsState=u(this.options);this.inheritedAttributes=b(this.host)}async componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));m((()=>this.markSelectedValue()))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}markSelectedValue(){this.host.querySelectorAll("option").forEach((t=>{if(t.value===this.value){t.setAttribute("selected","selected")}else{t.removeAttribute("selected")}}))}render(){return i(a,{key:"784373d222b67be86b39d3ed61bfdf81d9648a36",class:c.root,size:this.size},this.h.hasSlot("prefix")&&i("slot",{key:"23b99e07df8d0d135c93bdd8c14556de4b4a5433",name:"prefix"}),i("span",{key:"f4c931f58a53db5cc2f8379b2dc6b688bbe84bc8",class:"element"},i("select",Object.assign({key:"e259f55116a12a7b821fac43db61b9ed35457c17",id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":d(this.disabled),"aria-required":d(this.required),"aria-invalid":d(this.invalid)}),i("slot",{key:"223133e692d0c7a4c2c9c4706aee2d447f37c37b"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;return i("option",{value:t.value,selected:t.value===this.value,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)}))),this.success&&i("gov-icon",{key:"97ceacc7ec59f13a9d994dc6df3b58201b5f68ae",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"bd9f33ef6da150e5a3f4a5711d41282fe35df49f",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"c5ca08441cb8f425a4e310e402d6f208c8a75e15",class:"arrow-icon",name:"chevron-down",type:"components"})),this.h.hasSlot("sufix")&&i("slot",{key:"af16a1bd05ed5d665888cea9a811eee2c0fe5749",name:"sufix"}))}onFocusHandler(t){this.focused=true;this.govFocus.emit({component:c.root,originalEvent:t,value:this.value})}onBlurHandler(t){this.focused=false;this.govBlur.emit({component:c.root,originalEvent:t,value:this.value})}onChangeHandler(t){this.value=t.target.value;t.stopPropagation();this.govChange.emit({component:c.root,originalEvent:t,value:this.value})}async setFocus(t){return this.selectRef.focus(t)}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}}},[4,"gov-form-select",{value:[1537],options:[1537],identifier:[1],size:[1],name:[1],required:[4],success:[516],disabled:[516],invalid:[4],focused:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-select":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}y();export{w as G,y as d};
2
+ //# sourceMappingURL=p-DhGb8cBK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovFormSelect","__stencil_proxyCustomElement","HTMLElement","constructor","this","size","required","disabled","optionsState","inheritedAttributes","h","govHost","host","f","govForm","selectId","createID","validateSize","newValue","validateProp","FormSelectSizes","FormSelectClass","root","watchOptions","propsValueToArray","watchControlAttrs","passControlAttrs","watchValue","markSelectedValue","passAttrToControl","toBoolAttr","invalid","success","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","disconnectedCallback","_a","stopObserving","componentWillLoad","options","inheritAriaAttributes","componentDidRender","passAttrToLabel","String","tick","removeAttribute","Object","assign","querySelectorAll","forEach","option","value","setAttribute","render","Host","key","class","hasSlot","name","id","identifier","onFocus","onFocusHandler","bind","onChange","onChangeHandler","onBlur","onBlurHandler","ref","el","selectRef","toBoolAttrIfDefined","Array","isArray","map","selected","label","type","e","focused","govFocus","emit","component","originalEvent","govBlur","target","stopPropagation","govChange","setFocus","focus","getRef"],"sources":["../../../packages/core/src/components/gov-form/select/gov-form-select.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\r\nimport {govForm} from '../../../helpers/Dom/form'\r\nimport {GovForm} from '../../../helpers/Dom/form.types'\r\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\r\nimport {GovHost} from '../../../helpers/Dom/template.types'\r\nimport {validateProp} from '../../../helpers/Validate/props'\r\nimport {createID} from '../../../utils/string.utils'\r\nimport {FormSelectClass, FormSelectSizes, FormSelectSizesType,} from './constants'\r\nimport {FormSelectEvent, FormSelectOption} from './gov-form-select.types'\r\nimport {propsValueToArray} from \"../../../utils/array.utils\";\r\nimport {tick} from \"../../../utils/stencil.utils\";\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\n\r\n@Component({\r\n\ttag: 'gov-form-select',\r\n})\r\nexport class GovFormSelect {\r\n\tprivate f: GovForm\r\n\tprivate readonly h: GovHost\r\n\tprivate selectRef?: HTMLSelectElement\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tprivate readonly selectId: string\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.f = govForm(this.h)\r\n\t\tthis.selectId = createID('GovSelect')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormSelectElement\r\n\t/**\r\n\t * Value of select\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) value: string\r\n\t/**\r\n\t * Options of select\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) options?: string | FormSelectOption[]\r\n\t/**\r\n\t * Custom select identifier.\r\n\t */\r\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\r\n\t/**\r\n\t * Select’s size.\r\n\t */\r\n\t@Prop() readonly size?: FormSelectSizesType = 'm'\r\n\t/**\r\n\t * Name of the select.\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\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.\r\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.\r\n\t */\r\n\t@Prop() readonly required: boolean = false\r\n\t/**\r\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\r\n\t */\r\n\t@Prop({reflect: true}) readonly success: boolean\r\n\t/**\r\n\t * Makes the select component disabled.\r\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Indicates the entered value does not conform to the format expected by the application.\r\n\t */\r\n\t@Prop() readonly invalid: boolean\r\n\t/**\r\n\t * Emitted when the select has focus.\r\n\t */\r\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormSelectEvent>\r\n\t/**\r\n\t * Emitted when the select loses focus.\r\n\t */\r\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormSelectEvent>\r\n\t/**\r\n\t * Emitted when the select change value.\r\n\t */\r\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormSelectEvent>\r\n\t@State() focused: boolean\r\n\t@State() optionsState: FormSelectOption[] = []\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(FormSelectSizes, newValue, FormSelectClass.root)\r\n\t}\r\n\r\n\t@Watch('options')\r\n\twatchOptions(newValue: string | FormSelectOption[]): void {\r\n\t\tthis.optionsState = propsValueToArray(newValue)\r\n\t}\r\n\r\n\t@Watch('disabled')\r\n\t@Watch('invalid')\r\n\t@Watch('success')\r\n\t@Watch('size')\r\n\twatchControlAttrs(): void {\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\t@Watch('value')\r\n\twatchValue(): void {\r\n\t\tthis.markSelectedValue()\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tprivate passControlAttrs() {\r\n\t\tthis.f.passAttrToControl('size', this.size)\r\n\t\tthis.f.passAttrToControl('invalid', toBoolAttr(this.invalid))\r\n\t\tthis.f.passAttrToControl('success', toBoolAttr(this.success))\r\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\r\n\t\tthis.f.passAttrToControl('type', 'select')\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.validateSize(this.size)\r\n\r\n\t\tthis.markSelectedValue()\r\n\r\n\t\tthis.optionsState = propsValueToArray(this.options)\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tthis.passControlAttrs()\r\n\t\tthis.f.passAttrToLabel('required', String(this.required))\r\n\t\ttick(() => this.markSelectedValue())\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tprivate markSelectedValue() {\r\n\t\tthis.host.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\r\n\t\t\tif (option.value === this.value) {\r\n\t\t\t\toption.setAttribute('selected', 'selected')\r\n\t\t\t} else {\r\n\t\t\t\toption.removeAttribute('selected')\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={FormSelectClass.root} size={this.size}>\r\n\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\r\n\t\t\t\t<span class=\"element\">\r\n\t\t\t\t\t<select\r\n\t\t\t\t\t\tid={this.identifier || this.selectId}\r\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\r\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\t\trequired={this.required}\r\n\t\t\t\t\t\tname={this.name}\r\n\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\r\n\t\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\r\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t<slot />\r\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\r\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={option.value === this.value}\r\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label ?? option.value}</option>)\r\n\t\t\t\t\t\t})}\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t{this.success && <gov-icon class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t{this.invalid && <gov-icon class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t<gov-icon class=\"arrow-icon\" name=\"chevron-down\" type=\"components\"></gov-icon>\r\n\t\t\t\t</span>\r\n\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onFocusHandler(e: FocusEvent) {\r\n\t\tthis.focused = true\r\n\t\tthis.govFocus.emit({\r\n\t\t\tcomponent: FormSelectClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tvalue: this.value,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onBlurHandler(e: FocusEvent) {\r\n\t\tthis.focused = false\r\n\t\tthis.govBlur.emit({\r\n\t\t\tcomponent: FormSelectClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tvalue: this.value,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onChangeHandler(e: Event) {\r\n\t\tthis.value = (e.target as HTMLSelectElement).value\r\n\t\te.stopPropagation()\r\n\t\tthis.govChange.emit({\r\n\t\t\tcomponent: FormSelectClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tvalue: this.value,\r\n\t\t})\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the current state of the component\r\n\t */\r\n\t@Method()\r\n\tasync setFocus(options?: FocusOptions): Promise<void> {\r\n\t\treturn this.selectRef.focus(options)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns an instance of the native html select element\r\n\t */\r\n\t@Method()\r\n\tasync getRef(): Promise<HTMLSelectElement> {\r\n\t\treturn this.selectRef\r\n\t}\r\n}\r\n"],"mappings":"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","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["isWindow","window","getWindowProperty","name","property","config","defaultConfig","canValidateWcagOnRender","warningLog","errorLog","log","iconsPath","iconsLazyLoad","documentNode","document","windowProperty","Object","assign","useWarningLog","useErrorLog","useLog","WARNING_COLORS","bg","text","INFO_COLORS","govLog","message","colors","args","styles","join","console","govWarningLog"],"sources":["../../../packages/core/src/helpers/Dom/win.ts","../../../packages/core/src/helpers/Log/gov.log.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","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, args?: unknown): 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, args)\n\t}\n}\n\nexport const govWarningLog = (message: string, args?: unknown): void => {\n\tif (useWarningLog()) {\n\t\tgovLog(message, WARNING_COLORS, args)\n\t}\n}\n\nexport const govErrorLog = (message: string, args?: unknown): void => {\n\tif (useErrorLog()) {\n\t\tgovLog(message, ERROR_COLORS, args)\n\t}\n}\n"],"mappings":"0CAYaA,SAAkBC,SAAW,YAE1C,MAAMC,EAAwBC,GAAyCH,GAAYC,QAAUG,EAASD,EAA6BF,QAEnI,MAAMI,EAAS,KACd,MAAMC,EAAyB,CAC9BC,wBAAyB,MACzBC,WAAY,MACZC,SAAU,MACVC,IAAK,MACLC,UAAW,gBACXC,cAAe,KACfC,aAAcC,SAAWA,SAAW,MAGrC,MAAMC,EAAiBb,EAA2B,iBAClD,GAAIa,EAAgB,CACnB,OAAYC,OAAAC,OAAAD,OAAAC,OAAA,GAAAX,GAAkBS,E,CAG/B,OAAOT,CAAa,EAGR,MAAAC,EAA0B,IAA0CF,IAASE,wBACnF,MAAMW,EAAgB,IAA6Bb,IAASG,WAC5D,MAAMW,EAAc,IAA2Bd,IAASI,SACxD,MAAMW,EAAS,IAAsBf,IAASK,IACxC,MAAAC,EAAY,IAA4BN,IAASM,UACjD,MAAAC,EAAgB,IAAgCP,IAASO,cACzD,MAAAC,EAAe,IAA+BR,IAASQ,aClCpE,MAAMQ,EAA8B,CAACC,GAAI,UAAWC,KAAM,WAC1D,MAAMC,EAA2B,CAACF,GAAI,UAAWC,KAAM,QAGhD,MAAME,EAAS,CAACC,EAAiBC,EAAsBH,EAAaI,KAC1E,MAAMC,EAAS,CAAC,UAAYF,EAAOJ,KAAM,eAAiBI,EAAOL,GAAI,kBAAmB,mBAAoB,qBAAsB,oBAAoBQ,KACrJ,KAGD,GAAGV,KAAYF,KAAmBC,IAAe,CAChDY,QAAQrB,IAAI,QAASmB,EAAQH,EAASE,E,SAI3BI,EAAgB,CAACN,EAAiBE,KAC9C,GAAIV,IAAiB,CACpBO,EAAOC,EAASL,EAAgBO,E","ignoreList":[]}
1
+ {"version":3,"names":["isWindow","window","getWindowProperty","name","property","config","defaultConfig","canValidateWcagOnRender","warningLog","errorLog","log","iconsPath","iconsLazyLoad","documentNode","document","windowProperty","Object","assign","useWarningLog","useErrorLog","useLog","WARNING_COLORS","bg","text","INFO_COLORS","govLog","message","colors","args","styles","join","console","govWarningLog"],"sources":["../../../packages/core/src/helpers/Dom/win.ts","../../../packages/core/src/helpers/Log/gov.log.ts"],"sourcesContent":["import { property } from '../../utils/utils'\r\n\r\ninterface IConfig {\r\n\tcanValidateWcagOnRender: boolean\r\n\twarningLog: boolean\r\n\terrorLog: boolean\r\n\tlog: boolean\r\n\ticonsPath: string\r\n\ticonsLazyLoad: boolean\r\n\tdocumentNode: Document\r\n}\r\n\r\nexport const isWindow = typeof window !== \"undefined\"\r\n\r\nconst getWindowProperty = <T>(name: string): Partial<T> | undefined => isWindow && window && property(name as keyof typeof window, window)\r\n\r\nconst config = (): IConfig => {\r\n\tconst defaultConfig: IConfig = {\r\n\t\tcanValidateWcagOnRender: false,\r\n\t\twarningLog: false,\r\n\t\terrorLog: false,\r\n\t\tlog: false,\r\n\t\ticonsPath: '/assets/icons',\r\n\t\ticonsLazyLoad: true,\r\n\t\tdocumentNode: document ? document : null,\r\n\t}\r\n\r\n\tconst windowProperty = getWindowProperty<IConfig>('GOV_DS_CONFIG')\r\n\tif (windowProperty) {\r\n\t\treturn { ...defaultConfig, ...windowProperty }\r\n\t}\r\n\r\n\treturn defaultConfig\r\n}\r\n\r\nexport const canValidateWcagOnRender = (): IConfig['canValidateWcagOnRender'] => config().canValidateWcagOnRender\r\nexport const useWarningLog = (): IConfig['warningLog'] => config().warningLog\r\nexport const useErrorLog = (): IConfig['errorLog'] => config().errorLog\r\nexport const useLog = (): IConfig['log'] => config().log\r\nexport const iconsPath = (): IConfig['iconsPath'] => config().iconsPath\r\nexport const iconsLazyLoad = (): IConfig['iconsLazyLoad'] => config().iconsLazyLoad\r\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\r\n","import {useErrorLog, useLog, useWarningLog} from \"../Dom/win\";\r\n\r\ninterface ColorConfig {\r\n\tbg: string\r\n\ttext: string\r\n}\r\n\r\nconst WARNING_COLORS: ColorConfig = {bg: '#ecae1a', text: '#3b3b3b'}\r\nconst INFO_COLORS: ColorConfig = {bg: '#2362a2', text: '#fff'}\r\nconst ERROR_COLORS: ColorConfig = {bg: '#c52a3a', text: '#fff'}\r\n\r\nexport const govLog = (message: string, colors: ColorConfig = INFO_COLORS, args?: unknown): void => {\r\n\tconst styles = ['color: ' + colors.text, 'background: ' + colors.bg, 'font-size: 11px', 'padding: 2px 4px', 'border-radius: 3px', 'font-weight: 600'].join(\r\n\t\t';'\r\n\t)\r\n\r\n\tif(useLog() || useWarningLog() || useErrorLog()) {\r\n\t\tconsole.log('%cgov', styles, message, args)\r\n\t}\r\n}\r\n\r\nexport const govWarningLog = (message: string, args?: unknown): void => {\r\n\tif (useWarningLog()) {\r\n\t\tgovLog(message, WARNING_COLORS, args)\r\n\t}\r\n}\r\n\r\nexport const govErrorLog = (message: string, args?: unknown): void => {\r\n\tif (useErrorLog()) {\r\n\t\tgovLog(message, ERROR_COLORS, args)\r\n\t}\r\n}\r\n"],"mappings":"0CAYaA,SAAkBC,SAAW,YAE1C,MAAMC,EAAwBC,GAAyCH,GAAYC,QAAUG,EAASD,EAA6BF,QAEnI,MAAMI,EAAS,KACd,MAAMC,EAAyB,CAC9BC,wBAAyB,MACzBC,WAAY,MACZC,SAAU,MACVC,IAAK,MACLC,UAAW,gBACXC,cAAe,KACfC,aAAcC,SAAWA,SAAW,MAGrC,MAAMC,EAAiBb,EAA2B,iBAClD,GAAIa,EAAgB,CACnB,OAAYC,OAAAC,OAAAD,OAAAC,OAAA,GAAAX,GAAkBS,E,CAG/B,OAAOT,CAAa,EAGR,MAAAC,EAA0B,IAA0CF,IAASE,wBACnF,MAAMW,EAAgB,IAA6Bb,IAASG,WAC5D,MAAMW,EAAc,IAA2Bd,IAASI,SACxD,MAAMW,EAAS,IAAsBf,IAASK,IACxC,MAAAC,EAAY,IAA4BN,IAASM,UACjD,MAAAC,EAAgB,IAAgCP,IAASO,cACzD,MAAAC,EAAe,IAA+BR,IAASQ,aClCpE,MAAMQ,EAA8B,CAACC,GAAI,UAAWC,KAAM,WAC1D,MAAMC,EAA2B,CAACF,GAAI,UAAWC,KAAM,QAGhD,MAAME,EAAS,CAACC,EAAiBC,EAAsBH,EAAaI,KAC1E,MAAMC,EAAS,CAAC,UAAYF,EAAOJ,KAAM,eAAiBI,EAAOL,GAAI,kBAAmB,mBAAoB,qBAAsB,oBAAoBQ,KACrJ,KAGD,GAAGV,KAAYF,KAAmBC,IAAe,CAChDY,QAAQrB,IAAI,QAASmB,EAAQH,EAASE,E,SAI3BI,EAAgB,CAACN,EAAiBE,KAC9C,GAAIV,IAAiB,CACpBO,EAAOC,EAASL,EAAgBO,E","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["FormMessageColors","pick","Colors","Sizes","FormMessageClass","root","content"],"sources":["../../../packages/core/src/components/gov-form/message/constants.ts"],"sourcesContent":["import { Colors } from '../../../core/constants/colors'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\nimport {Sizes} from \"../../../core/constants/sizes\";\n\nexport const FormMessageColors = pick(Colors, ['NEUTRAL', 'ERROR', 'WARNING', 'SUCCESS'])\nexport type FormMessageColorType = `${ValueOf<typeof FormMessageColors>}`\n\nexport const FormMessageSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type FormMessageSizesTypes = `${ValueOf<typeof FormMessageSizes>}`\n\nexport const FormMessageClass = {\n\troot: 'gov-form-message',\n\tcontent: 'gov-form-message__content',\n}\n"],"mappings":"4GAKa,MAAAA,EAAoBC,EAAKC,EAAQ,CAAC,UAAW,QAAS,UAAW,YAG9CD,EAAKE,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,QAGzD,MAAAC,EAAmB,CAC/BC,KAAM,mBACNC,QAAS,oC","ignoreList":[]}
1
+ {"version":3,"names":["FormMessageColors","pick","Colors","Sizes","FormMessageClass","root","content"],"sources":["../../../packages/core/src/components/gov-form/message/constants.ts"],"sourcesContent":["import { Colors } from '../../../core/constants/colors'\r\nimport { pick } from '../../../utils/utils'\r\nimport { ValueOf } from '../../../types/interfaces'\r\nimport {Sizes} from \"../../../core/constants/sizes\";\r\n\r\nexport const FormMessageColors = pick(Colors, ['NEUTRAL', 'ERROR', 'WARNING', 'SUCCESS'])\r\nexport type FormMessageColorType = `${ValueOf<typeof FormMessageColors>}`\r\n\r\nexport const FormMessageSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type FormMessageSizesTypes = `${ValueOf<typeof FormMessageSizes>}`\r\n\r\nexport const FormMessageClass = {\r\n\troot: 'gov-form-message',\r\n\tcontent: 'gov-form-message__content',\r\n}\r\n"],"mappings":"4GAKa,MAAAA,EAAoBC,EAAKC,EAAQ,CAAC,UAAW,QAAS,UAAW,YAG9CD,EAAKE,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,QAGzD,MAAAC,EAAmB,CAC/BC,KAAM,mBACNC,QAAS,oC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["prepareIconFormat","value","length","regexPattern","test","icon","split","type","name"],"sources":["../../../packages/core/src/components/gov-icon/helpers.ts"],"sourcesContent":["import {Nullable} from \"../../types/interfaces\";\n\nexport type IconType = { type: string, name: string }\n\nexport const prepareIconFormat = (value: string): Nullable<IconType> => {\n\tif (typeof value === 'string' && value.length) {\n\t\tconst regexPattern = /^[a-z-]+\\/[a-z-]+$/;\n\t\tif (regexPattern.test(value)) {\n\t\t\tconst icon = value.split(\"/\");\n\t\t\treturn {\n\t\t\t\ttype: icon[0],\n\t\t\t\tname: icon[1],\n\t\t\t}\n\t\t}\n\t}\n\treturn null\n}\n"],"mappings":"AAIa,MAAAA,EAAqBC,IACjC,UAAWA,IAAU,UAAYA,EAAMC,OAAQ,CAC9C,MAAMC,EAAe,qBACrB,GAAIA,EAAaC,KAAKH,GAAQ,CAC7B,MAAMI,EAAOJ,EAAMK,MAAM,KACzB,MAAO,CACNC,KAAMF,EAAK,GACXG,KAAMH,EAAK,G,EAId,OAAO,IAAI,S","ignoreList":[]}
1
+ {"version":3,"names":["prepareIconFormat","value","length","regexPattern","test","icon","split","type","name"],"sources":["../../../packages/core/src/components/gov-icon/helpers.ts"],"sourcesContent":["import {Nullable} from \"../../types/interfaces\";\r\n\r\nexport type IconType = { type: string, name: string }\r\n\r\nexport const prepareIconFormat = (value: string): Nullable<IconType> => {\r\n\tif (typeof value === 'string' && value.length) {\r\n\t\tconst regexPattern = /^[a-z-]+\\/[a-z-]+$/;\r\n\t\tif (regexPattern.test(value)) {\r\n\t\t\tconst icon = value.split(\"/\");\r\n\t\t\treturn {\r\n\t\t\t\ttype: icon[0],\r\n\t\t\t\tname: icon[1],\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn null\r\n}\r\n"],"mappings":"AAIa,MAAAA,EAAqBC,IACjC,UAAWA,IAAU,UAAYA,EAAMC,OAAQ,CAC9C,MAAMC,EAAe,qBACrB,GAAIA,EAAaC,KAAKH,GAAQ,CAC7B,MAAMI,EAAOJ,EAAMK,MAAM,KACzB,MAAO,CACNC,KAAMF,EAAK,GACXG,KAAMH,EAAK,G,EAId,OAAO,IAAI,S","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["validateWcagProp","value","propName","component","undefined","String","length","govWarningLog","validateWcagRef","referenceId","name","strings","referenceIds","splitByWhitespace","Array","isArray","filter","e","isString","trim","documentNode","getElementById","validateAccessibleLabel","label","labelledBy","el","labelledByEl"],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import {govWarningLog} from '../Log/gov.log'\nimport {splitByWhitespace} from '../../utils/string.utils'\nimport {documentNode} from '../Dom/win'\nimport {isString} from \"../../utils/helpers.types\";\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn isString(e) ? e.trim().length > 0 : false\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateAccessibleLabel = (label: string | undefined, labelledBy: string | undefined, component: string, el: HTMLElement = undefined): boolean => {\n\tif (isString(label) && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined aria-label or aria-labelledby attribute.`, el)\n\treturn false\n}\n"],"mappings":"8GAKa,MAAAA,EAAmB,CAACC,EAA2BC,EAAkBC,KAC7E,GAAIF,IAAUG,WAAaC,OAAOJ,GAAOK,SAAW,EAAG,CACtDC,EAAc,IAAIJ,YAAoBD,uD,GAI3B,MAAAM,EAAkB,CAACC,EAAqBC,EAAcP,KAClE,UAAWM,IAAgB,aAAeA,IAAgBL,UAAW,CACpE,OAAO,I,CAER,GAAIC,OAAOI,GAAaH,SAAW,EAAG,CACrCC,EAAc,IAAIJ,kBAA0BO,sCAC5C,OAAO,K,CAER,IAAIC,EAAU,GACd,MAAMC,EAAeC,EAAkBJ,GACvC,GAAIK,MAAMC,QAAQH,GAAe,CAChCD,EAAUC,EAAaI,QAAO,SAAUC,GACvC,OAAOC,EAASD,GAAKA,EAAEE,OAAOb,OAAS,EAAI,KAC5C,G,CAGD,QAASK,EAAQK,QAAOP,IACvB,GAAIW,IAAeC,eAAeZ,KAAiB,KAAM,CAExD,OAAO,K,KACD,CACN,OAAO,I,KAENH,MAAM,EAeH,MAAMgB,EAA0B,CAACC,EAA2BC,EAAgCrB,EAAmBsB,EAAkBrB,aACvI,GAAIc,EAASK,IAAUA,EAAMjB,OAAS,EAAG,CACxC,OAAO,I,CAER,UAAWkB,IAAe,UAAYA,EAAWlB,OAAS,EAAG,CAC5D,MAAMoB,EAAeN,IAAeC,eAAeG,GACnD,GAAIE,EAAc,CACjB,OAAO,I,EAGTnB,EAAc,IAAIJ,0EAAmFsB,GACrG,OAAO,KAAK,S","ignoreList":[]}
1
+ {"version":3,"names":["validateWcagProp","value","propName","component","undefined","String","length","govWarningLog","validateWcagRef","referenceId","name","strings","referenceIds","splitByWhitespace","Array","isArray","filter","e","isString","trim","documentNode","getElementById","validateAccessibleLabel","label","labelledBy","el","labelledByEl"],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import {govWarningLog} from '../Log/gov.log'\r\nimport {splitByWhitespace} from '../../utils/string.utils'\r\nimport {documentNode} from '../Dom/win'\r\nimport {isString} from \"../../utils/helpers.types\";\r\n\r\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\r\n\tif (value === undefined || String(value).length === 0) {\r\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\r\n\t}\r\n}\r\n\r\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\r\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\r\n\t\treturn true\r\n\t}\r\n\tif (String(referenceId).length === 0) {\r\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\r\n\t\treturn false\r\n\t}\r\n\tlet strings = []\r\n\tconst referenceIds = splitByWhitespace(referenceId)\r\n\tif (Array.isArray(referenceIds)) {\r\n\t\tstrings = referenceIds.filter(function (e) {\r\n\t\t\treturn isString(e) ? e.trim().length > 0 : false\r\n\t\t})\r\n\t}\r\n\r\n\treturn !!strings.filter(referenceId => {\r\n\t\tif (documentNode().getElementById(referenceId) === null) {\r\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\r\n\t\t\treturn false\r\n\t\t} else {\r\n\t\t\treturn true\r\n\t\t}\r\n\t}).length\r\n}\r\n\r\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\r\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\r\n\tif (labelEl === null) {\r\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\r\n\t\tif (labelledByEl === null) {\r\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\r\n\t\t\treturn false\r\n\t\t}\r\n\t}\r\n\treturn true\r\n}\r\n\r\nexport const validateAccessibleLabel = (label: string | undefined, labelledBy: string | undefined, component: string, el: HTMLElement = undefined): boolean => {\r\n\tif (isString(label) && label.length > 0) {\r\n\t\treturn true\r\n\t}\r\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\r\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\r\n\t\tif (labelledByEl) {\r\n\t\t\treturn true\r\n\t\t}\r\n\t}\r\n\tgovWarningLog(`[${component}]: The element has no defined aria-label or aria-labelledby attribute.`, el)\r\n\treturn false\r\n}\r\n"],"mappings":"8GAKa,MAAAA,EAAmB,CAACC,EAA2BC,EAAkBC,KAC7E,GAAIF,IAAUG,WAAaC,OAAOJ,GAAOK,SAAW,EAAG,CACtDC,EAAc,IAAIJ,YAAoBD,uD,GAI3B,MAAAM,EAAkB,CAACC,EAAqBC,EAAcP,KAClE,UAAWM,IAAgB,aAAeA,IAAgBL,UAAW,CACpE,OAAO,I,CAER,GAAIC,OAAOI,GAAaH,SAAW,EAAG,CACrCC,EAAc,IAAIJ,kBAA0BO,sCAC5C,OAAO,K,CAER,IAAIC,EAAU,GACd,MAAMC,EAAeC,EAAkBJ,GACvC,GAAIK,MAAMC,QAAQH,GAAe,CAChCD,EAAUC,EAAaI,QAAO,SAAUC,GACvC,OAAOC,EAASD,GAAKA,EAAEE,OAAOb,OAAS,EAAI,KAC5C,G,CAGD,QAASK,EAAQK,QAAOP,IACvB,GAAIW,IAAeC,eAAeZ,KAAiB,KAAM,CAExD,OAAO,K,KACD,CACN,OAAO,I,KAENH,MAAM,EAeH,MAAMgB,EAA0B,CAACC,EAA2BC,EAAgCrB,EAAmBsB,EAAkBrB,aACvI,GAAIc,EAASK,IAAUA,EAAMjB,OAAS,EAAG,CACxC,OAAO,I,CAER,UAAWkB,IAAe,UAAYA,EAAWlB,OAAS,EAAG,CAC5D,MAAMoB,EAAeN,IAAeC,eAAeG,GACnD,GAAIE,EAAc,CACjB,OAAO,I,EAGTnB,EAAc,IAAIJ,0EAAmFsB,GACrG,OAAO,KAAK,S","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["LayoutClass","root","section","LayoutTypes","LayoutVariant","LayoutColumnClass"],"sources":["../../../packages/core/src/components/gov-layout/constants.ts"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\n\nexport const LayoutClass = {\n\troot: 'gov-layout',\n\tsection: 'gov-layout__section',\n}\n\nenum LayoutTypes {\n\tSTRETCH = 'stretch',\n\tASIDE = 'aside',\n\tTEXT = 'text',\n}\nexport type LayoutType = `${ValueOf<typeof LayoutTypes>}`\n\nenum LayoutVariant {\n\tLEFT = 'left',\n\tRIGHT = 'right',\n}\n\nexport type LayoutVariantType = `${ValueOf<typeof LayoutVariant>}`\n\nexport const LayoutColumnClass = {\n\troot: 'gov-layout-column',\n}\n"],"mappings":"AAEa,MAAAA,EAAc,CAC1BC,KAAM,aACNC,QAAS,uBAGV,IAAKC,GAAL,SAAKA,GACJA,EAAA,qBACAA,EAAA,iBACAA,EAAA,cACA,EAJD,CAAKA,MAIJ,KAGD,IAAKC,GAAL,SAAKA,GACJA,EAAA,eACAA,EAAA,gBACA,EAHD,CAAKA,MAGJ,KAIY,MAAAC,EAAoB,CAChCJ,KAAM,4B","ignoreList":[]}
1
+ {"version":3,"names":["LayoutClass","root","section","LayoutTypes","LayoutVariant","LayoutColumnClass"],"sources":["../../../packages/core/src/components/gov-layout/constants.ts"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\r\n\r\nexport const LayoutClass = {\r\n\troot: 'gov-layout',\r\n\tsection: 'gov-layout__section',\r\n}\r\n\r\nenum LayoutTypes {\r\n\tSTRETCH = 'stretch',\r\n\tASIDE = 'aside',\r\n\tTEXT = 'text',\r\n}\r\nexport type LayoutType = `${ValueOf<typeof LayoutTypes>}`\r\n\r\nenum LayoutVariant {\r\n\tLEFT = 'left',\r\n\tRIGHT = 'right',\r\n}\r\n\r\nexport type LayoutVariantType = `${ValueOf<typeof LayoutVariant>}`\r\n\r\nexport const LayoutColumnClass = {\r\n\troot: 'gov-layout-column',\r\n}\r\n"],"mappings":"AAEa,MAAAA,EAAc,CAC1BC,KAAM,aACNC,QAAS,uBAGV,IAAKC,GAAL,SAAKA,GACJA,EAAA,qBACAA,EAAA,iBACAA,EAAA,cACA,EAJD,CAAKA,MAIJ,KAGD,IAAKC,GAAL,SAAKA,GACJA,EAAA,eACAA,EAAA,gBACA,EAHD,CAAKA,MAGJ,KAIY,MAAAC,EAAoB,CAChCJ,KAAM,4B","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["Colors"],"sources":["../../../packages/core/src/core/constants/colors.ts"],"sourcesContent":["export enum Colors {\n\tDEFAULT = 'default',\n\tPRIMARY = 'primary',\n\tSECONDARY = 'secondary',\n\tNEUTRAL = 'neutral',\n\tERROR = 'error',\n\tSUCCESS = 'success',\n\tWARNING = 'warning',\n\tDISABLED = 'disabled',\n\tBLACK = 'black',\n\tWHITE = 'white',\n\tCUSTOM = 'custom',\n}\n"],"mappings":"IAAYA,GAAZ,SAAYA,GACXA,EAAA,qBACAA,EAAA,qBACAA,EAAA,yBACAA,EAAA,qBACAA,EAAA,iBACAA,EAAA,qBACAA,EAAA,qBACAA,EAAA,uBACAA,EAAA,iBACAA,EAAA,iBACAA,EAAA,kBACA,EAZD,CAAYA,MAYX,Y","ignoreList":[]}
1
+ {"version":3,"names":["Colors"],"sources":["../../../packages/core/src/core/constants/colors.ts"],"sourcesContent":["export enum Colors {\r\n\tDEFAULT = 'default',\r\n\tPRIMARY = 'primary',\r\n\tSECONDARY = 'secondary',\r\n\tNEUTRAL = 'neutral',\r\n\tERROR = 'error',\r\n\tSUCCESS = 'success',\r\n\tWARNING = 'warning',\r\n\tDISABLED = 'disabled',\r\n\tBLACK = 'black',\r\n\tWHITE = 'white',\r\n\tCUSTOM = 'custom',\r\n}\r\n"],"mappings":"IAAYA,GAAZ,SAAYA,GACXA,EAAA,qBACAA,EAAA,qBACAA,EAAA,yBACAA,EAAA,qBACAA,EAAA,iBACAA,EAAA,qBACAA,EAAA,qBACAA,EAAA,uBACAA,EAAA,iBACAA,EAAA,iBACAA,EAAA,kBACA,EAZD,CAAYA,MAYX,Y","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,a}from"./index.js";import{g as o,b as n,c as h}from"./p-9imLQpxb.js";import{g as c,t as r,a as l,c as d}from"./p-DfJDyRCE.js";import{v as p}from"./p-BKP-F1qP.js";import{c as u}from"./p-vN03FcXN.js";import{A as m,a as b,i as f}from"./p-CXgom82_.js";import{d as v}from"./p-CXbpWAIF.js";import{d as g}from"./p-B03Rpjps.js";var y;(function(t){t["INPUT"]="input";t["TEXTAREA"]="textarea"})(y||(y={}));const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.govKeyUp=i(this,"gov-keyup");this.govHydrated=i(this,"gov-hydrated");this.govKeyDown=i(this,"gov-keydown");this.size="m";this.required=false;this.disabled=false;this.inputType="text";this.accessibleShowPasswordLabel="Zobrazit heslo";this.accessibleHidePasswordLabel="Skrýt heslo";this.showPassword=false;this.inheritedAttributes={};this.h=c(this.host);this.inputId=u("GovInput");this.f=o(this.h)}validateSize(t){p(h,t,n.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("type",this.multiline?y.TEXTAREA:y.INPUT)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b);this.govHydrated.emit()}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=f(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){const t=this.multiline?y.TEXTAREA:y.INPUT;return e(a,{key:"bdbab2105ea328155d7a023e2070c4ca22a5afba",class:n.root,size:this.size,type:this.type},this.h.hasSlot("prefix")&&e("slot",{key:"71be98f4ba1933c8a5affd3f41b496633528bcc8",name:"prefix"}),e("span",{key:"820a6cc14d90fb52b3fa809858c9b7223d7dec21",class:"element"},this.h.hasSlot("icon-start")&&!this.multiline&&e("div",{key:"6c001fb96074d4f5b7779a14cbceee9169b4a70a",class:n.icons,onClick:()=>this.inputRef.focus()},e("slot",{key:"15da634518db7ac788de51911296d1a0ca87c993",name:"icon-start"})),e(t,Object.assign({key:"f43777146426ddbe5d37408a734ca61aa51e0e69",type:this.inputType==="password"&&this.showPassword?"text":this.inputType,disabled:this.disabled,id:this.identifier||this.inputId,name:this.name,onFocus:this.onFocusHandler.bind(this),onInput:this.onInputHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onKeyUp:this.onKeyUpHandler.bind(this),onKeyDown:this.onKeyDownHandler.bind(this),ref:t=>this.inputRef=t,placeholder:this.placeholder,spellcheck:d(this.spellcheck),lang:this.inputLang,readonly:d(this.readonly),autocomplete:l(this.autocomplete),autocorrect:l(this.autocorrect),minlength:this.minlength,maxlength:this.maxlength,min:this.min,max:this.max,required:this.required,rows:this.rows,cols:this.cols,role:this.role,value:this.value},this.inheritedAttributes,{"aria-required":d(this.required),"aria-invalid":d(this.invalid),"aria-disabled":d(this.disabled)})),(this.success||this.invalid||this.h.hasSlot("icon-end")||this.inputType==="password")&&!this.multiline&&e("div",{key:"716e004caf2077ce8d5ee5101bcb541fbdb45d38",class:n.icons,onClick:()=>this.inputRef.focus()},this.success&&!this.multiline&&e("gov-icon",{key:"96c5fcdad8332c08d3eaf9a5a6af573962a96744",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&!this.multiline&&e("gov-icon",{key:"4883e137f51052a2659f46a09270c656bc3347f7",class:"validation-icon",name:"exclamation-lg",type:"components"}),this.h.hasSlot("icon-end")&&this.inputType!=="password"&&e("slot",{key:"a74b2df0932087834fc33de45aa341444c61042a",name:"icon-end"}),this.inputType==="password"?e("gov-button",{color:"primary",type:"base",size:this.size,"aria-label":this.showPassword?this.accessibleHidePasswordLabel:this.accessibleShowPasswordLabel,"on-gov-click":()=>this.showPassword=!this.showPassword},e("gov-icon",{slot:"icon-start",name:"eye",type:"components"})):null)),this.h.hasSlot("sufix")&&e("slot",{key:"9d15adccc023a5501114982c4417df6db9a4d8c1",name:"sufix"}))}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,value:this.value,originalEvent:t})}onKeyUpHandler(t){t.stopPropagation();this.govKeyUp.emit({component:n.root,value:this.value,originalEvent:t})}onKeyDownHandler(t){t.stopPropagation();this.govKeyDown.emit({component:n.root,value:this.value,originalEvent:t})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:n.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[260,"gov-form-input",{value:[1537],identifier:[1],success:[516],size:[1],name:[1],multiline:[4],rows:[2],cols:[2],required:[516],disabled:[516],placeholder:[1],readonly:[4],minlength:[2],maxlength:[2],min:[8],max:[8],autocomplete:[4],autocorrect:[4],spellcheck:[4],inputLang:[1,"input-lang"],type:[1],inputType:[1,"input-type"],role:[1],invalid:[516],accessibleShowPasswordLabel:[1,"accessible-show-password-label"],accessibleHidePasswordLabel:[1,"accessible-hide-password-label"],focused:[32],showPassword:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-input","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-input":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-button":if(!customElements.get(t)){v()}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}k();export{w as G,k as d};
2
- //# sourceMappingURL=p-DJ1DN3ks.js.map
1
+ import{p as t,H as s,c as i,h as e,a}from"./index.js";import{g as o,b as n,c as h}from"./p-9imLQpxb.js";import{g as c,t as r,a as l,c as d}from"./p-DKo9A5gq.js";import{v as p}from"./p-BKP-F1qP.js";import{c as u}from"./p-vN03FcXN.js";import{A as m,a as f,i as b}from"./p-CXgom82_.js";import{d as v}from"./p-CWqMiVYH.js";import{d as g}from"./p-BJnSrRNH.js";var y;(function(t){t["INPUT"]="input";t["TEXTAREA"]="textarea"})(y||(y={}));const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.govKeyUp=i(this,"gov-keyup");this.govHydrated=i(this,"gov-hydrated");this.govKeyDown=i(this,"gov-keydown");this.size="m";this.required=false;this.disabled=false;this.inputType="text";this.accessibleShowPasswordLabel="Zobrazit heslo";this.accessibleHidePasswordLabel="Skrýt heslo";this.showPassword=false;this.inheritedAttributes={};this.h=c(this.host);this.inputId=u("GovInput");this.f=o(this.h)}validateSize(t){p(h,t,n.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("type",this.multiline?y.TEXTAREA:y.INPUT)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(f);this.govHydrated.emit()}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){const t=this.multiline?y.TEXTAREA:y.INPUT;return e(a,{key:"77dae47e06d063a2487a5ddbb1259306b5cdbfc3",class:n.root,size:this.size,type:this.type},this.h.hasSlot("prefix")&&e("slot",{key:"e8e2f433d1ef4132ea11deccd0430d1e629b939b",name:"prefix"}),e("span",{key:"d6ccd3199c302f2bdefec80c9b1d41e221f5c996",class:"element"},this.h.hasSlot("icon-start")&&!this.multiline&&e("div",{key:"9bdfc91aeb6b5f9c9c16cf902d092caeb5c5d9c5",class:n.icons,onClick:()=>this.inputRef.focus()},e("slot",{key:"2a2d7b03fbe85a18353ac360a822721b2e76da78",name:"icon-start"})),e(t,Object.assign({key:"e43d026dbb5138a6b69363805df462d18d3e1e1f",type:this.inputType==="password"&&this.showPassword?"text":this.inputType,disabled:this.disabled,id:this.identifier||this.inputId,name:this.name,onFocus:this.onFocusHandler.bind(this),onInput:this.onInputHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onKeyUp:this.onKeyUpHandler.bind(this),onKeyDown:this.onKeyDownHandler.bind(this),ref:t=>this.inputRef=t,placeholder:this.placeholder,spellcheck:d(this.spellcheck),lang:this.inputLang,readonly:d(this.readonly),autocomplete:l(this.autocomplete),autocorrect:l(this.autocorrect),minlength:this.minlength,maxlength:this.maxlength,min:this.min,max:this.max,required:this.required,rows:this.rows,cols:this.cols,role:this.role,value:this.value},this.inheritedAttributes,{"aria-required":d(this.required),"aria-invalid":d(this.invalid),"aria-disabled":d(this.disabled)})),(this.success||this.invalid||this.h.hasSlot("icon-end")||this.inputType==="password")&&!this.multiline&&e("div",{key:"43025915f216c0153e069acdddbece0e059f3ec7",class:n.icons,onClick:()=>this.inputRef.focus()},this.success&&!this.multiline&&e("gov-icon",{key:"13b34f7a5e705afdb92877850f116895318bb876",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&!this.multiline&&e("gov-icon",{key:"d671025577334714519c12956863a3a3c6f3af81",class:"validation-icon",name:"exclamation-lg",type:"components"}),this.h.hasSlot("icon-end")&&this.inputType!=="password"&&e("slot",{key:"f26ff9842ab606917ff1fe10e5fa83e0707f923f",name:"icon-end"}),this.inputType==="password"?e("gov-button",{color:"primary",type:"base",size:this.size,"aria-label":this.showPassword?this.accessibleHidePasswordLabel:this.accessibleShowPasswordLabel,"on-gov-click":()=>this.showPassword=!this.showPassword},e("gov-icon",{slot:"icon-start",name:"eye",type:"components"})):null)),this.h.hasSlot("sufix")&&e("slot",{key:"666b152801bc34d6cdb66e88c22d695c4b4d169c",name:"sufix"}))}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,value:this.value,originalEvent:t})}onKeyUpHandler(t){t.stopPropagation();this.govKeyUp.emit({component:n.root,value:this.value,originalEvent:t})}onKeyDownHandler(t){t.stopPropagation();this.govKeyDown.emit({component:n.root,value:this.value,originalEvent:t})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:n.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[4,"gov-form-input",{value:[1537],identifier:[1],success:[516],size:[1],name:[1],multiline:[4],rows:[2],cols:[2],required:[516],disabled:[516],placeholder:[1],readonly:[4],minlength:[2],maxlength:[2],min:[8],max:[8],autocomplete:[4],autocorrect:[4],spellcheck:[4],inputLang:[1,"input-lang"],type:[1],inputType:[1,"input-type"],role:[1],invalid:[516],accessibleShowPasswordLabel:[1,"accessible-show-password-label"],accessibleHidePasswordLabel:[1,"accessible-hide-password-label"],focused:[32],showPassword:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-input","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-input":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-button":if(!customElements.get(t)){v()}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}k();export{w as G,k as d};
2
+ //# sourceMappingURL=p-_FzmpyXv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Tags","GovFormInput","__stencil_proxyCustomElement","HTMLElement","constructor","this","size","required","disabled","inputType","accessibleShowPasswordLabel","accessibleHidePasswordLabel","showPassword","inheritedAttributes","h","govHost","host","inputId","createID","f","govForm","validateSize","newValue","validateProp","FormInputSizes","FormInputClass","root","watchControlAttrs","passControlAttrs","passAttrToControl","toBoolAttr","success","invalid","multiline","TEXTAREA","INPUT","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","govHydrated","emit","componentWillLoad","inheritAriaAttributes","componentDidRender","passAttrToLabel","String","removeAttribute","Object","assign","disconnectedCallback","_a","stopObserving","render","Tag","Host","key","class","type","hasSlot","name","icons","onClick","inputRef","focus","id","identifier","onFocus","onFocusHandler","bind","onInput","onInputHandler","onBlur","onBlurHandler","onKeyUp","onKeyUpHandler","onKeyDown","onKeyDownHandler","ref","el","placeholder","spellcheck","toBoolAttrIfDefined","lang","inputLang","readonly","autocomplete","toOnOffAttrIfDefined","autocorrect","minlength","maxlength","min","max","rows","cols","role","value","color","slot","e","stopPropagation","focused","govFocus","component","originalEvent","govBlur","govKeyUp","govKeyDown","target","govInput","setFocus","options","setValue","clearValue","getRef"],"sources":["../../../packages/core/src/components/gov-form/input/gov-form-input.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {govForm} from \"../../../helpers/Dom/form\"\r\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\r\nimport {govHost, toBoolAttr, toBoolAttrIfDefined, toOnOffAttrIfDefined} from \"../../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {validateProp} from \"../../../helpers/Validate/props\"\r\nimport {createID} from \"../../../utils/string.utils\"\r\nimport {FormInputClass, FormInputSizes, FormInputSizesType, InputType, Type,} from \"./constants\"\r\nimport {FormInputEvent} from \"./gov-form-input.types\"\r\nimport {Nullable} from \"../../../types/interfaces\"\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\n\r\nenum Tags {\r\n\tINPUT = \"input\",\r\n\tTEXTAREA = \"textarea\",\r\n}\r\n\r\n@Component({\r\n\ttag: \"gov-form-input\",\r\n})\r\nexport class GovFormInput {\r\n\tprivate f: GovForm\r\n\tprivate readonly h: GovHost\r\n\tprivate inputRef?: HTMLInputElement\r\n\tprivate readonly inputId: string\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.inputId = createID(\"GovInput\")\r\n\t\tthis.f = govForm(this.h)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormInputElement\r\n\t/**\r\n\t * Value of input\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) value: string\r\n\t/**\r\n\t * Custom input identifier.\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\r\n\t */\r\n\t@Prop({reflect:true}) readonly success: boolean\r\n\t/**\r\n\t * Input’s size.\r\n\t */\r\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\r\n\t/**\r\n\t * Name of the input.\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Generates a texarea for the possibility of multiple lines\r\n\t */\r\n\t@Prop() readonly multiline: boolean\r\n\t/**\r\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows\r\n\t */\r\n\t@Prop() readonly rows: number\r\n\t/**\r\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols\r\n\t */\r\n\t@Prop() readonly cols: number\r\n\t/**\r\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.\r\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.\r\n\t */\r\n\t@Prop({reflect:true}) readonly required: boolean = false\r\n\t/**\r\n\t * Makes the input component disabled.\r\n\t */\r\n\t@Prop({reflect:true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Text that appears in the form control when it has no value set\r\n\t */\r\n\t@Prop() readonly placeholder: string\r\n\t/**\r\n\t * The value is not editable\r\n\t */\r\n\t@Prop() readonly readonly: boolean\r\n\t/**\r\n\t * Minimum length (number of characters) of value\r\n\t */\r\n\t@Prop() readonly minlength: number\r\n\t/**\r\n\t * Maximum length (number of characters) of value\r\n\t */\r\n\t@Prop() readonly maxlength: number\r\n\t/**\r\n\t * Minimum value that is acceptable and valid for the input containing the attribute\r\n\t */\r\n\t@Prop() readonly min?: string | number\r\n\t/**\r\n\t * Maximum value that is acceptable and valid for the input containing the attribute\r\n\t */\r\n\t@Prop() readonly max?: string | number\r\n\t/**\r\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocomplete\r\n\t */\r\n\t@Prop() readonly autocomplete: boolean\r\n\t/**\r\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocorrect\r\n\t */\r\n\t@Prop() readonly autocorrect: boolean\r\n\t/**\r\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck\r\n\t */\r\n\t@Prop() readonly spellcheck: boolean\r\n\t/**\r\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang\r\n\t */\r\n\t@Prop({attribute: \"input-lang\"}) readonly inputLang: string\r\n\t/**\r\n\t * Defined the visual style of input\r\n\t */\r\n\t@Prop() readonly type?: Type\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\r\n\t */\r\n\t@Prop({attribute: \"input-type\"}) readonly inputType: InputType = \"text\"\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role\r\n\t */\r\n\t@Prop() readonly role: Nullable<string>\r\n\t/**\r\n\t * Indicates the entered value does not conform to the format expected by the application.\r\n\t */\r\n\t@Prop({reflect:true}) readonly invalid: boolean\r\n\t/**\r\n\t * Accessible text for password display\r\n\t */\r\n\t@Prop({attribute: \"accessible-show-password-label\"}) readonly accessibleShowPasswordLabel = 'Zobrazit heslo'\r\n\t/**\r\n\t * Accessible text to hide the password\r\n\t */\r\n\t@Prop({attribute: \"accessible-hide-password-label\"}) readonly accessibleHidePasswordLabel = 'Skrýt heslo'\r\n\t/**\r\n\t * Emitted when the input has focus.\r\n\t */\r\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormInputEvent>\r\n\t/**\r\n\t * Emitted when the input loses focus.\r\n\t */\r\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormInputEvent>\r\n\t/**\r\n\t * Emitted when the input change value.\r\n\t */\r\n\t@Event({eventName: \"gov-input\"}) govInput: EventEmitter<FormInputEvent>\r\n\t/**\r\n\t * Emitted when the input change value.\r\n\t */\r\n\t@Event({eventName: \"gov-keyup\"}) govKeyUp: EventEmitter<FormInputEvent>\r\n\t/**\r\n\t * Emitted when the input change value.\r\n\t */\r\n\t@Event({eventName: \"gov-hydrated\"}) govHydrated: EventEmitter<void>\r\n\t/**\r\n\t * Emitted when the input change value.\r\n\t */\r\n\t@Event({eventName: \"gov-keydown\"}) govKeyDown: EventEmitter<FormInputEvent>\r\n\t@State() focused: boolean\r\n\t@State() showPassword: boolean = false\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(FormInputSizes, newValue, FormInputClass.root)\r\n\t}\r\n\r\n\t@Watch(\"disabled\")\r\n\t@Watch(\"invalid\")\r\n\t@Watch(\"success\")\r\n\t@Watch(\"size\")\r\n\twatchControlAttrs(): void {\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tprivate passControlAttrs() {\r\n\t\tthis.f.passAttrToControl(\"size\", this.size)\r\n\t\tthis.f.passAttrToControl(\"success\", toBoolAttr(this.success))\r\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\r\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\r\n\t\tthis.f.passAttrToControl(\"type\", this.multiline ? Tags.TEXTAREA : Tags.INPUT)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t\tthis.govHydrated.emit();\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.validateSize(this.size)\r\n\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tcomponentDidRender() {\r\n\t\tthis.passControlAttrs()\r\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst Tag = this.multiline ? Tags.TEXTAREA : Tags.INPUT\r\n\r\n\t\treturn (\r\n\t\t\t<Host class={FormInputClass.root} size={this.size} type={this.type}>\r\n\t\t\t\t{this.h.hasSlot(\"prefix\") && <slot name=\"prefix\"></slot>}\r\n\t\t\t\t<span class=\"element\">\r\n\t\t\t\t\t{(this.h.hasSlot(\"icon-start\") && !this.multiline) &&\r\n\t\t\t\t\t\t<div class={FormInputClass.icons} onClick={() => this.inputRef.focus()}>\r\n\t\t\t\t\t\t\t<slot name=\"icon-start\" />\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t}\r\n\t\t\t\t\t<Tag\r\n\t\t\t\t\t\ttype={this.inputType === 'password' && this.showPassword ? 'text' : this.inputType}\r\n\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\tid={this.identifier || this.inputId}\r\n\t\t\t\t\t\tname={this.name}\r\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\t\tonInput={this.onInputHandler.bind(this)}\r\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\t\tonKeyUp={this.onKeyUpHandler.bind(this)}\r\n\t\t\t\t\t\tonKeyDown={this.onKeyDownHandler.bind(this)}\r\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\r\n\t\t\t\t\t\tplaceholder={this.placeholder}\r\n\t\t\t\t\t\tspellcheck={toBoolAttrIfDefined(this.spellcheck)}\r\n\t\t\t\t\t\tlang={this.inputLang}\r\n\t\t\t\t\t\treadonly={toBoolAttrIfDefined(this.readonly)}\r\n\t\t\t\t\t\tautocomplete={toOnOffAttrIfDefined(this.autocomplete)}\r\n\t\t\t\t\t\tautocorrect={toOnOffAttrIfDefined(this.autocorrect)}\r\n\t\t\t\t\t\tminlength={this.minlength}\r\n\t\t\t\t\t\tmaxlength={this.maxlength}\r\n\t\t\t\t\t\tmin={this.min}\r\n\t\t\t\t\t\tmax={this.max}\r\n\t\t\t\t\t\trequired={this.required}\r\n\t\t\t\t\t\trows={this.rows}\r\n\t\t\t\t\t\tcols={this.cols}\r\n\t\t\t\t\t\trole={this.role}\r\n\t\t\t\t\t\tvalue={this.value}\r\n\t\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\r\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t{((this.success || this.invalid || this.h.hasSlot(\"icon-end\") || this.inputType === 'password') && !this.multiline) &&\r\n\t\t\t\t\t\t<div class={FormInputClass.icons} onClick={() => this.inputRef.focus()}>\r\n\t\t\t\t\t\t\t{this.success && !this.multiline &&\r\n\t\t\t\t\t\t\t\t<gov-icon class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t\t{this.invalid && !this.multiline &&\r\n\t\t\t\t\t\t\t\t<gov-icon class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t\t{this.h.hasSlot(\"icon-end\") && this.inputType !== 'password' && <slot name=\"icon-end\"/>}\r\n\t\t\t\t\t\t\t{this.inputType === 'password' ? (\r\n\t\t\t\t\t\t\t\t<gov-button color={'primary'}\r\n\t\t\t\t\t\t\t\t\t\t\ttype={'base'}\r\n\t\t\t\t\t\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\t\t\t\t\t\taria-label={this.showPassword ? this.accessibleHidePasswordLabel : this.accessibleShowPasswordLabel}\r\n\t\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.showPassword = !this.showPassword}>\r\n\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon-start\" name=\"eye\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t</gov-button>) : null}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t}\r\n\t\t\t\t</span>\r\n\t\t\t\t{this.h.hasSlot(\"sufix\") && <slot name=\"sufix\"></slot>}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onFocusHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.focused = true\r\n\t\tthis.govFocus.emit({\r\n\t\t\tcomponent: FormInputClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onBlurHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.focused = false\r\n\t\tthis.govBlur.emit({\r\n\t\t\tcomponent: FormInputClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onKeyUpHandler(e: KeyboardEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govKeyUp.emit({\r\n\t\t\tcomponent: FormInputClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onKeyDownHandler(e: KeyboardEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govKeyDown.emit({\r\n\t\t\tcomponent: FormInputClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onInputHandler(e: InputEvent) {\r\n\t\tthis.value = (e.target as HTMLInputElement).value\r\n\t\te.stopPropagation()\r\n\t\tthis.govInput.emit({\r\n\t\t\tcomponent: FormInputClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the current state of the component\r\n\t */\r\n\t@Method()\r\n\tasync setFocus(options?: FocusOptions): Promise<void> {\r\n\t\treturn this.inputRef.focus(options)\r\n\t}\r\n\r\n\t/**\r\n\t * Sets the ordered value of the element\r\n\t */\r\n\t@Method()\r\n\tasync setValue(value: string): Promise<void> {\r\n\t\tthis.value = value\r\n\t}\r\n\r\n\t/**\r\n\t * Clears input value\r\n\t */\r\n\t@Method()\r\n\tasync clearValue(): Promise<void> {\r\n\t\tthis.value = \"\"\r\n\t\tthis.inputRef.value = \"\"\r\n\t}\r\n\r\n\t/**\r\n\t * Returns an instance of the native html input element\r\n\t */\r\n\t@Method()\r\n\tasync getRef(): Promise<HTMLInputElement> {\r\n\t\treturn this.inputRef\r\n\t}\r\n}\r\n"],"mappings":"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","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["chr4","Math","random","toString","slice","createID","prefix","removeDiacritics","string","normalize","replace","splitByWhitespace","split"],"sources":["../../../packages/core/src/utils/string.utils.ts"],"sourcesContent":["export function chr4(): string {\n\treturn Math.random().toString(16).slice(-4)\n}\n\nexport function createID(prefix: string): string {\n\treturn `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`\n}\n\nexport function removeDiacritics(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '')\n}\n\nexport function splitByWhitespace(string: any): string | any {\n\tif (typeof string !== 'string') return string\n\treturn string.split(/(\\s+)/)\n}\n"],"mappings":"SAAgBA,IACf,OAAOC,KAAKC,SAASC,SAAS,IAAIC,OAAM,EACzC,CAEM,SAAUC,EAASC,GACxB,MAAO,GAAGA,KAAUN,MAASA,OAAUA,OAAUA,OAAUA,OAAUA,MAASA,MAASA,KACxF,CAEM,SAAUO,EAAiBC,GAChC,UAAWA,IAAW,SAAU,OAAOA,EACvC,OAAOA,EAAOC,UAAU,OAAOC,QAAQ,mBAAoB,GAC5D,CAEM,SAAUC,EAAkBH,GACjC,UAAWA,IAAW,SAAU,OAAOA,EACvC,OAAOA,EAAOI,MAAM,QACrB,Q","ignoreList":[]}
1
+ {"version":3,"names":["chr4","Math","random","toString","slice","createID","prefix","removeDiacritics","string","normalize","replace","splitByWhitespace","split"],"sources":["../../../packages/core/src/utils/string.utils.ts"],"sourcesContent":["export function chr4(): string {\r\n\treturn Math.random().toString(16).slice(-4)\r\n}\r\n\r\nexport function createID(prefix: string): string {\r\n\treturn `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`\r\n}\r\n\r\nexport function removeDiacritics(string: any): string | any {\r\n\tif (typeof string !== 'string') return string\r\n\treturn string.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '')\r\n}\r\n\r\nexport function splitByWhitespace(string: any): string | any {\r\n\tif (typeof string !== 'string') return string\r\n\treturn string.split(/(\\s+)/)\r\n}\r\n"],"mappings":"SAAgBA,IACf,OAAOC,KAAKC,SAASC,SAAS,IAAIC,OAAM,EACzC,CAEM,SAAUC,EAASC,GACxB,MAAO,GAAGA,KAAUN,MAASA,OAAUA,OAAUA,OAAUA,OAAUA,MAASA,MAASA,KACxF,CAEM,SAAUO,EAAiBC,GAChC,UAAWA,IAAW,SAAU,OAAOA,EACvC,OAAOA,EAAOC,UAAU,OAAOC,QAAQ,mBAAoB,GAC5D,CAEM,SAAUC,EAAkBH,GACjC,UAAWA,IAAW,SAAU,OAAOA,EACvC,OAAOA,EAAOI,MAAM,QACrB,Q","ignoreList":[]}