@gov-design-system-ce/components 4.2.8 → 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 (1492) 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 +9 -5
  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 +1 -1
  253. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  254. package/dist/collection/components/gov-control-group/gov-control-group.js +28 -4
  255. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  256. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -1
  257. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  258. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
  259. package/dist/collection/components/gov-dialog/constants.js.map +1 -1
  260. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  261. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  262. package/dist/collection/components/gov-empty/constants.js.map +1 -1
  263. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  264. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
  265. package/dist/collection/components/gov-error-code/constants.js.map +1 -1
  266. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  267. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
  268. package/dist/collection/components/gov-flex/constants.js.map +1 -1
  269. package/dist/collection/components/gov-flex/gov-flex.js +1 -1
  270. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  271. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
  272. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -3
  273. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  274. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -1
  275. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
  276. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +1 -1
  277. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  278. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +1 -1
  279. package/dist/collection/components/gov-form/control/constants.js.map +1 -1
  280. package/dist/collection/components/gov-form/control/gov-form-control.js +4 -4
  281. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  282. package/dist/collection/components/gov-form/file/constants.js.map +1 -1
  283. package/dist/collection/components/gov-form/file/gov-form-file.js +4 -28
  284. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  285. package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -1
  286. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  287. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  288. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -1
  289. package/dist/collection/components/gov-form/group/gov-form-group.css +12 -23
  290. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  291. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
  292. package/dist/collection/components/gov-form/group/gov-form-group.types.js.map +1 -1
  293. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  294. package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -1
  295. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  296. package/dist/collection/components/gov-form/input/gov-form-input.js +6 -6
  297. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  298. package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +1 -1
  299. package/dist/collection/components/gov-form/label/constants.js.map +1 -1
  300. package/dist/collection/components/gov-form/label/gov-form-label.js +2 -2
  301. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
  302. package/dist/collection/components/gov-form/message/constants.js.map +1 -1
  303. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  304. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
  305. package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
  306. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -4
  307. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  308. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -1
  309. package/dist/collection/components/gov-form/password-power/constants.js.map +1 -1
  310. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  311. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
  312. package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
  313. package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -2
  314. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  315. package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +1 -1
  316. package/dist/collection/components/gov-form/range/constants.js.map +1 -1
  317. package/dist/collection/components/gov-form/range/gov-form-range.js +2 -2
  318. package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -1
  319. package/dist/collection/components/gov-form/search/constants.js.map +1 -1
  320. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  321. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  322. package/dist/collection/components/gov-form/select/constants.js.map +1 -1
  323. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  324. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  325. package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -1
  326. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  327. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  328. package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +1 -1
  329. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  330. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  331. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  332. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  333. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  334. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  335. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  336. package/dist/collection/components/gov-icon/helpers.js.map +1 -1
  337. package/dist/collection/components/gov-icon/list.js.map +1 -1
  338. package/dist/collection/components/gov-infobar/constants.js.map +1 -1
  339. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  340. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  341. package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +1 -1
  342. package/dist/collection/components/gov-layout/constants.js.map +1 -1
  343. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  344. package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
  345. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  346. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
  347. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  348. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -1
  349. package/dist/collection/components/gov-link/constants.js.map +1 -1
  350. package/dist/collection/components/gov-link/gov-link.js +1 -1
  351. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  352. package/dist/collection/components/gov-loading/loading/constants.js.map +1 -1
  353. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  354. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  355. package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -1
  356. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  357. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  358. package/dist/collection/components/gov-message/constants.js.map +1 -1
  359. package/dist/collection/components/gov-message/gov-message.js +1 -1
  360. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  361. package/dist/collection/components/gov-pagination/constants.js.map +1 -1
  362. package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
  363. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  364. package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +1 -1
  365. package/dist/collection/components/gov-pagination/pagination.js.map +1 -1
  366. package/dist/collection/components/gov-spacer/constants.js.map +1 -1
  367. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  368. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
  369. package/dist/collection/components/gov-stepper/stepper/constants.js.map +1 -1
  370. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js.map +1 -1
  371. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js +1 -1
  372. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js.map +1 -1
  373. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js +1 -1
  374. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js.map +1 -1
  375. package/dist/collection/components/gov-tabs/constants.js.map +1 -1
  376. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  377. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
  378. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  379. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  380. package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -1
  381. package/dist/collection/components/gov-tag/constants.js.map +1 -1
  382. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  383. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  384. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  385. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  386. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  387. package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js.map +1 -1
  388. package/dist/collection/components/gov-tile/constants.js.map +1 -1
  389. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  390. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  391. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  392. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  393. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  394. package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
  395. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  396. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  397. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  398. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  399. package/dist/collection/components/gov-wizard/constants.js.map +1 -1
  400. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -1
  401. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  402. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  403. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -1
  404. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  405. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
  406. package/dist/collection/core/constants/colors.js.map +1 -1
  407. package/dist/collection/core/constants/sizes.js.map +1 -1
  408. package/dist/collection/core/constants/tags.js.map +1 -1
  409. package/dist/collection/core/constants/tokens.js.map +1 -1
  410. package/dist/collection/data/color-definitions.js +494 -494
  411. package/dist/collection/data/font-definitions.js +132 -132
  412. package/dist/collection/helpers/Accessibility/accessibility.js.map +1 -1
  413. package/dist/collection/helpers/Accessibility/attributes.js.map +1 -1
  414. package/dist/collection/helpers/Dom/attribute.js.map +1 -1
  415. package/dist/collection/helpers/Dom/document.js.map +1 -1
  416. package/dist/collection/helpers/Dom/form.js.map +1 -1
  417. package/dist/collection/helpers/Dom/form.types.js.map +1 -1
  418. package/dist/collection/helpers/Dom/template.js +4 -0
  419. package/dist/collection/helpers/Dom/template.js.map +1 -1
  420. package/dist/collection/helpers/Dom/template.types.js.map +1 -1
  421. package/dist/collection/helpers/Dom/win.js.map +1 -1
  422. package/dist/collection/helpers/Fragment.js.map +1 -1
  423. package/dist/collection/helpers/Log/gov.log.js.map +1 -1
  424. package/dist/collection/helpers/Validate/props.js.map +1 -1
  425. package/dist/collection/helpers/Validate/wcag.js.map +1 -1
  426. package/dist/collection/index.js +2 -1
  427. package/dist/collection/index.js.map +1 -1
  428. package/dist/collection/types/event.types.js.map +1 -1
  429. package/dist/collection/types/interfaces.js.map +1 -1
  430. package/dist/collection/utils/array.utils.js.map +1 -1
  431. package/dist/collection/utils/bool.utils.js.map +1 -1
  432. package/dist/collection/utils/dom.utils.js.map +1 -1
  433. package/dist/collection/utils/ds.utils.js.map +1 -1
  434. package/dist/collection/utils/file.utils.js.map +1 -1
  435. package/dist/collection/utils/helpers.types.js.map +1 -1
  436. package/dist/collection/utils/icon.utils.js.map +1 -1
  437. package/dist/collection/utils/number.utils.js.map +1 -1
  438. package/dist/collection/utils/object.utils.js.map +1 -1
  439. package/dist/collection/utils/stencil.utils.js.map +1 -1
  440. package/dist/collection/utils/string.utils.js.map +1 -1
  441. package/dist/collection/utils/utils.js.map +1 -1
  442. package/dist/components/gov-accordion-item.js +1 -1
  443. package/dist/components/gov-accordion-item.js.map +1 -1
  444. package/dist/components/gov-accordion.js +1 -1
  445. package/dist/components/gov-accordion.js.map +1 -1
  446. package/dist/components/gov-attachments-item.js +1 -1
  447. package/dist/components/gov-attachments.js +1 -1
  448. package/dist/components/gov-backdrop.js +1 -1
  449. package/dist/components/gov-banner.js +1 -1
  450. package/dist/components/gov-banner.js.map +1 -1
  451. package/dist/components/gov-blockquote.js +1 -1
  452. package/dist/components/gov-blockquote.js.map +1 -1
  453. package/dist/components/gov-breadcrumbs.js +1 -1
  454. package/dist/components/gov-breadcrumbs.js.map +1 -1
  455. package/dist/components/gov-button.js +1 -1
  456. package/dist/components/gov-card.js +1 -1
  457. package/dist/components/gov-card.js.map +1 -1
  458. package/dist/components/gov-chip.js +1 -1
  459. package/dist/components/gov-collapsible.d.ts +11 -0
  460. package/dist/components/gov-collapsible.js +2 -0
  461. package/dist/components/gov-collapsible.js.map +1 -0
  462. package/dist/components/gov-container.js +1 -1
  463. package/dist/components/gov-container.js.map +1 -1
  464. package/dist/components/gov-control-group.js +1 -1
  465. package/dist/components/gov-control-group.js.map +1 -1
  466. package/dist/components/gov-cookiebar.js +1 -1
  467. package/dist/components/gov-cookiebar.js.map +1 -1
  468. package/dist/components/gov-dialog.js +1 -1
  469. package/dist/components/gov-dialog.js.map +1 -1
  470. package/dist/components/gov-dropdown.js +1 -1
  471. package/dist/components/gov-dropdown.js.map +1 -1
  472. package/dist/components/gov-empty.js +1 -1
  473. package/dist/components/gov-empty.js.map +1 -1
  474. package/dist/components/gov-error-code.js +1 -1
  475. package/dist/components/gov-error-code.js.map +1 -1
  476. package/dist/components/gov-flex.js +1 -1
  477. package/dist/components/gov-flex.js.map +1 -1
  478. package/dist/components/gov-form-autocomplete.js +1 -1
  479. package/dist/components/gov-form-checkbox-group.js +1 -1
  480. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  481. package/dist/components/gov-form-checkbox.js +1 -1
  482. package/dist/components/gov-form-checkbox.js.map +1 -1
  483. package/dist/components/gov-form-control.js +1 -1
  484. package/dist/components/gov-form-control.js.map +1 -1
  485. package/dist/components/gov-form-file.js +1 -1
  486. package/dist/components/gov-form-file.js.map +1 -1
  487. package/dist/components/gov-form-group.js +1 -1
  488. package/dist/components/gov-form-group.js.map +1 -1
  489. package/dist/components/gov-form-input.js +1 -1
  490. package/dist/components/gov-form-label.js +1 -1
  491. package/dist/components/gov-form-label.js.map +1 -1
  492. package/dist/components/gov-form-message.js +1 -1
  493. package/dist/components/gov-form-multi-select.js +1 -1
  494. package/dist/components/gov-form-multi-select.js.map +1 -1
  495. package/dist/components/gov-form-password-power.js +1 -1
  496. package/dist/components/gov-form-password-power.js.map +1 -1
  497. package/dist/components/gov-form-radio-group.js +1 -1
  498. package/dist/components/gov-form-radio-group.js.map +1 -1
  499. package/dist/components/gov-form-radio.js +1 -1
  500. package/dist/components/gov-form-radio.js.map +1 -1
  501. package/dist/components/gov-form-range.js +1 -1
  502. package/dist/components/gov-form-range.js.map +1 -1
  503. package/dist/components/gov-form-search.js +1 -1
  504. package/dist/components/gov-form-search.js.map +1 -1
  505. package/dist/components/gov-form-select.js +1 -1
  506. package/dist/components/gov-form-switch.js +1 -1
  507. package/dist/components/gov-form-switch.js.map +1 -1
  508. package/dist/components/gov-grid-item.js +1 -1
  509. package/dist/components/gov-grid-item.js.map +1 -1
  510. package/dist/components/gov-grid.js +1 -1
  511. package/dist/components/gov-grid.js.map +1 -1
  512. package/dist/components/gov-icon.js +1 -1
  513. package/dist/components/gov-infobar.js +1 -1
  514. package/dist/components/gov-infobar.js.map +1 -1
  515. package/dist/components/gov-layout-column.js +1 -1
  516. package/dist/components/gov-layout-column.js.map +1 -1
  517. package/dist/components/gov-layout.js +1 -1
  518. package/dist/components/gov-layout.js.map +1 -1
  519. package/dist/components/gov-lifecycle.js +1 -1
  520. package/dist/components/gov-lifecycle.js.map +1 -1
  521. package/dist/components/gov-link.js +1 -1
  522. package/dist/components/gov-link.js.map +1 -1
  523. package/dist/components/gov-loading.js +1 -1
  524. package/dist/components/gov-loading.js.map +1 -1
  525. package/dist/components/gov-message.js +1 -1
  526. package/dist/components/gov-message.js.map +1 -1
  527. package/dist/components/gov-pagination.js +1 -1
  528. package/dist/components/gov-pagination.js.map +1 -1
  529. package/dist/components/gov-skeleton.js +1 -1
  530. package/dist/components/gov-spacer.js +1 -1
  531. package/dist/components/gov-spacer.js.map +1 -1
  532. package/dist/components/gov-stepper-item.js +1 -1
  533. package/dist/components/gov-stepper-item.js.map +1 -1
  534. package/dist/components/gov-stepper.js +1 -1
  535. package/dist/components/gov-stepper.js.map +1 -1
  536. package/dist/components/gov-tabs-item.js +1 -1
  537. package/dist/components/gov-tabs-item.js.map +1 -1
  538. package/dist/components/gov-tabs.js +1 -1
  539. package/dist/components/gov-tabs.js.map +1 -1
  540. package/dist/components/gov-tag.js +1 -1
  541. package/dist/components/gov-tag.js.map +1 -1
  542. package/dist/components/gov-theme-switch.js +1 -1
  543. package/dist/components/gov-theme-switch.js.map +1 -1
  544. package/dist/components/gov-tile.js +1 -1
  545. package/dist/components/gov-tile.js.map +1 -1
  546. package/dist/components/gov-toast.js +1 -1
  547. package/dist/components/gov-toast.js.map +1 -1
  548. package/dist/components/gov-tooltip-content.js +1 -1
  549. package/dist/components/gov-tooltip-content.js.map +1 -1
  550. package/dist/components/gov-tooltip.js +1 -1
  551. package/dist/components/gov-tooltip.js.map +1 -1
  552. package/dist/components/gov-wizard-item.js +1 -1
  553. package/dist/components/gov-wizard-item.js.map +1 -1
  554. package/dist/components/gov-wizard.js +1 -1
  555. package/dist/components/gov-wizard.js.map +1 -1
  556. package/dist/components/index.js +1 -1
  557. package/dist/components/index.js.map +1 -1
  558. package/dist/components/p-2_-up8FX.js +2 -0
  559. package/dist/components/p-2_-up8FX.js.map +1 -0
  560. package/dist/components/p-4i8qDRtu.js.map +1 -1
  561. package/dist/components/p-5itQzbON.js.map +1 -1
  562. package/dist/components/p-9VlKyZSl.js +2 -0
  563. package/dist/components/p-9VlKyZSl.js.map +1 -0
  564. package/dist/components/p-9imLQpxb.js.map +1 -1
  565. package/dist/components/p-B0hcuYXk.js.map +1 -1
  566. package/dist/components/p-B3tdsiZv.js.map +1 -1
  567. package/dist/components/{p-WmFNIuTf.js → p-BJnSrRNH.js} +2 -2
  568. package/dist/components/p-BJnSrRNH.js.map +1 -0
  569. package/dist/components/p-BKP-F1qP.js.map +1 -1
  570. package/dist/components/p-BTwdrNoS.js.map +1 -1
  571. package/dist/components/p-BUmDydor.js.map +1 -1
  572. package/dist/components/{p-CSjqhysd.js → p-Ba8Z-AIX.js} +2 -2
  573. package/dist/components/p-Ba8Z-AIX.js.map +1 -0
  574. package/dist/components/p-BcQO4NH2.js.map +1 -1
  575. package/dist/components/p-BnxqJyb_.js +2 -0
  576. package/dist/components/p-BnxqJyb_.js.map +1 -0
  577. package/dist/components/p-C6JN9gdb.js.map +1 -1
  578. package/dist/components/p-CJnwyVlG.js +2 -0
  579. package/dist/components/p-CJnwyVlG.js.map +1 -0
  580. package/dist/components/p-CNqoJU2V.js.map +1 -1
  581. package/dist/components/p-CQvUntGY.js.map +1 -1
  582. package/dist/components/p-CUVZZBqo.js.map +1 -1
  583. package/dist/components/p-CWqMiVYH.js +2 -0
  584. package/dist/components/p-CWqMiVYH.js.map +1 -0
  585. package/dist/components/p-CXgom82_.js.map +1 -1
  586. package/dist/components/p-CZr7GBEo.js.map +1 -1
  587. package/dist/components/p-CgXcNDpE.js +2 -0
  588. package/dist/components/p-CgXcNDpE.js.map +1 -0
  589. package/dist/components/p-Cjg0wpDG.js.map +1 -1
  590. package/dist/components/p-ClYmjarv.js.map +1 -1
  591. package/dist/components/{p-wlTP5ZEU.js → p-D8QfVS4O.js} +2 -2
  592. package/dist/components/p-D8QfVS4O.js.map +1 -0
  593. package/dist/components/p-DBXGhafv.js.map +1 -1
  594. package/dist/components/p-DKo9A5gq.js +2 -0
  595. package/dist/components/p-DKo9A5gq.js.map +1 -0
  596. package/dist/components/p-DW1DKFMF.js +2 -0
  597. package/dist/components/p-DW1DKFMF.js.map +1 -0
  598. package/dist/components/p-DZJk8GrA.js +2 -0
  599. package/dist/components/p-DZJk8GrA.js.map +1 -0
  600. package/dist/components/p-DfI_0WW6.js.map +1 -1
  601. package/dist/components/{p-C4pc6Rox.js → p-DhGb8cBK.js} +2 -2
  602. package/dist/components/p-DhGb8cBK.js.map +1 -0
  603. package/dist/components/p-DrPpH_9c.js.map +1 -1
  604. package/dist/components/p-EeKNA85D.js.map +1 -1
  605. package/dist/components/p-GYov8gU1.js.map +1 -1
  606. package/dist/components/p-Nvj7WFs_.js.map +1 -1
  607. package/dist/components/p-Q99QrOoi.js.map +1 -1
  608. package/dist/components/p-U40vKHrs.js.map +1 -1
  609. package/dist/components/{p-Btw6IAjS.js → p-_FzmpyXv.js} +2 -2
  610. package/dist/components/p-_FzmpyXv.js.map +1 -0
  611. package/dist/components/p-vN03FcXN.js.map +1 -1
  612. package/dist/core/core.css +1312 -635
  613. package/dist/core/core.esm.js +1 -1
  614. package/dist/core/core.esm.js.map +1 -1
  615. package/dist/core/gov-accordion-item.entry.esm.js.map +1 -1
  616. package/dist/core/gov-accordion.entry.esm.js.map +1 -1
  617. package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +1 -1
  618. package/dist/core/gov-backdrop.entry.esm.js.map +1 -1
  619. package/dist/core/gov-banner.entry.esm.js.map +1 -1
  620. package/dist/core/gov-blockquote.entry.esm.js.map +1 -1
  621. package/dist/core/gov-breadcrumbs.entry.esm.js.map +1 -1
  622. package/dist/core/gov-button.entry.esm.js.map +1 -1
  623. package/dist/core/gov-card.entry.esm.js.map +1 -1
  624. package/dist/core/gov-chip.entry.esm.js.map +1 -1
  625. package/dist/core/gov-collapsible.entry.esm.js.map +1 -0
  626. package/dist/core/gov-container.entry.esm.js.map +1 -1
  627. package/dist/core/gov-control-group.entry.esm.js.map +1 -1
  628. package/dist/core/gov-cookiebar.entry.esm.js.map +1 -1
  629. package/dist/core/gov-dialog.entry.esm.js.map +1 -1
  630. package/dist/core/gov-dropdown.entry.esm.js.map +1 -1
  631. package/dist/core/gov-empty.entry.esm.js.map +1 -1
  632. package/dist/core/gov-error-code.entry.esm.js.map +1 -1
  633. package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +1 -1
  634. package/dist/core/gov-form-autocomplete.entry.esm.js.map +1 -1
  635. package/dist/core/gov-form-checkbox-group.entry.esm.js.map +1 -1
  636. package/dist/core/gov-form-checkbox.entry.esm.js.map +1 -1
  637. package/dist/core/gov-form-control.entry.esm.js.map +1 -1
  638. package/dist/core/gov-form-file.entry.esm.js.map +1 -1
  639. package/dist/core/gov-form-group.entry.esm.js.map +1 -1
  640. package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +1 -1
  641. package/dist/core/gov-form-label.entry.esm.js.map +1 -1
  642. package/dist/core/gov-form-multi-select.entry.esm.js.map +1 -1
  643. package/dist/core/gov-form-password-power.entry.esm.js.map +1 -1
  644. package/dist/core/gov-form-radio-group.entry.esm.js.map +1 -1
  645. package/dist/core/gov-form-radio.entry.esm.js.map +1 -1
  646. package/dist/core/gov-form-range.entry.esm.js.map +1 -1
  647. package/dist/core/gov-form-search.entry.esm.js.map +1 -1
  648. package/dist/core/gov-form-select.entry.esm.js.map +1 -1
  649. package/dist/core/gov-form-switch.entry.esm.js.map +1 -1
  650. package/dist/core/gov-grid-item.entry.esm.js.map +1 -1
  651. package/dist/core/gov-grid.entry.esm.js.map +1 -1
  652. package/dist/core/gov-infobar.entry.esm.js.map +1 -1
  653. package/dist/core/gov-layout-column.entry.esm.js.map +1 -1
  654. package/dist/core/gov-layout.entry.esm.js.map +1 -1
  655. package/dist/core/gov-lifecycle.entry.esm.js.map +1 -1
  656. package/dist/core/gov-link.entry.esm.js.map +1 -1
  657. package/dist/core/gov-loading.entry.esm.js.map +1 -1
  658. package/dist/core/gov-message.entry.esm.js.map +1 -1
  659. package/dist/core/gov-pagination.entry.esm.js.map +1 -1
  660. package/dist/core/gov-spacer.entry.esm.js.map +1 -1
  661. package/dist/core/gov-stepper-item.entry.esm.js.map +1 -1
  662. package/dist/core/gov-stepper.entry.esm.js.map +1 -1
  663. package/dist/core/gov-tabs-item.entry.esm.js.map +1 -1
  664. package/dist/core/gov-tabs.entry.esm.js.map +1 -1
  665. package/dist/core/gov-tag.entry.esm.js.map +1 -1
  666. package/dist/core/gov-tile.entry.esm.js.map +1 -1
  667. package/dist/core/gov-toast.entry.esm.js.map +1 -1
  668. package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +1 -0
  669. package/dist/core/gov-wizard-item.entry.esm.js.map +1 -1
  670. package/dist/core/gov-wizard.entry.esm.js.map +1 -1
  671. package/dist/core/{p-c1a1fc45.entry.js → p-017d6340.entry.js} +2 -2
  672. package/dist/core/p-017d6340.entry.js.map +1 -0
  673. package/dist/core/p-01bc645f.entry.js +2 -0
  674. package/dist/core/p-01bc645f.entry.js.map +1 -0
  675. package/dist/core/p-0e06af2b.entry.js +2 -0
  676. package/dist/core/p-0e06af2b.entry.js.map +1 -0
  677. package/dist/core/{p-658c1d84.entry.js → p-1375d52d.entry.js} +2 -2
  678. package/dist/core/p-1375d52d.entry.js.map +1 -0
  679. package/dist/core/p-264cbd4e.entry.js +2 -0
  680. package/dist/core/p-264cbd4e.entry.js.map +1 -0
  681. package/dist/core/{p-2142c481.entry.js → p-2cfa670d.entry.js} +2 -2
  682. package/dist/core/p-2cfa670d.entry.js.map +1 -0
  683. package/dist/core/p-33a62c22.entry.js +2 -0
  684. package/dist/core/p-33a62c22.entry.js.map +1 -0
  685. package/dist/core/p-37f6095e.entry.js +2 -0
  686. package/dist/core/p-37f6095e.entry.js.map +1 -0
  687. package/dist/core/p-3cf20b56.entry.js +2 -0
  688. package/dist/core/p-3cf20b56.entry.js.map +1 -0
  689. package/dist/core/{p-0dbda4ab.entry.js → p-46824842.entry.js} +2 -2
  690. package/dist/core/p-46824842.entry.js.map +1 -0
  691. package/dist/core/p-46effc25.entry.js +2 -0
  692. package/dist/core/p-46effc25.entry.js.map +1 -0
  693. package/dist/core/{p-19a408eb.entry.js → p-495e25d8.entry.js} +2 -2
  694. package/dist/core/p-495e25d8.entry.js.map +1 -0
  695. package/dist/core/p-4aea131f.entry.js +2 -0
  696. package/dist/core/p-4aea131f.entry.js.map +1 -0
  697. package/dist/core/p-4ce8e721.entry.js +2 -0
  698. package/dist/core/p-4ce8e721.entry.js.map +1 -0
  699. package/dist/core/p-5283672a.entry.js +2 -0
  700. package/dist/core/p-5283672a.entry.js.map +1 -0
  701. package/dist/core/{p-90ff56f4.entry.js → p-54209c57.entry.js} +2 -2
  702. package/dist/core/p-54209c57.entry.js.map +1 -0
  703. package/dist/core/p-56dc11ba.entry.js +2 -0
  704. package/dist/core/p-56dc11ba.entry.js.map +1 -0
  705. package/dist/core/{p-d4440adf.entry.js → p-5721cf9b.entry.js} +2 -2
  706. package/dist/core/p-5721cf9b.entry.js.map +1 -0
  707. package/dist/core/p-58911028.entry.js +2 -0
  708. package/dist/core/p-58911028.entry.js.map +1 -0
  709. package/dist/core/p-5itQzbON.js.map +1 -1
  710. package/dist/core/p-617b0dbe.entry.js +2 -0
  711. package/dist/core/p-617b0dbe.entry.js.map +1 -0
  712. package/dist/core/{p-8873dc4b.entry.js → p-6781bfc0.entry.js} +2 -2
  713. package/dist/core/p-6781bfc0.entry.js.map +1 -0
  714. package/dist/core/p-67d1e6e2.entry.js +2 -0
  715. package/dist/core/p-67d1e6e2.entry.js.map +1 -0
  716. package/dist/core/p-6e42a12a.entry.js +2 -0
  717. package/dist/core/p-6e42a12a.entry.js.map +1 -0
  718. package/dist/core/{p-bbe0d727.entry.js → p-6f173022.entry.js} +2 -2
  719. package/dist/core/p-6f173022.entry.js.map +1 -0
  720. package/dist/core/p-7099beb0.entry.js +2 -0
  721. package/dist/core/p-7099beb0.entry.js.map +1 -0
  722. package/dist/core/{p-962d5767.entry.js → p-715c0e2e.entry.js} +2 -2
  723. package/dist/core/p-715c0e2e.entry.js.map +1 -0
  724. package/dist/core/p-7387370c.entry.js +2 -0
  725. package/dist/core/p-7387370c.entry.js.map +1 -0
  726. package/dist/core/p-768fe015.entry.js +2 -0
  727. package/dist/core/p-768fe015.entry.js.map +1 -0
  728. package/dist/core/p-7a3d4b6b.entry.js +2 -0
  729. package/dist/core/p-7a3d4b6b.entry.js.map +1 -0
  730. package/dist/core/p-7f4cf2f9.entry.js +2 -0
  731. package/dist/core/p-7f4cf2f9.entry.js.map +1 -0
  732. package/dist/core/{p-aaa73dc8.entry.js → p-8161e1fe.entry.js} +2 -2
  733. package/dist/core/p-8161e1fe.entry.js.map +1 -0
  734. package/dist/core/p-820eb0fb.entry.js +2 -0
  735. package/dist/core/p-820eb0fb.entry.js.map +1 -0
  736. package/dist/core/{p-e169f098.entry.js → p-8655fd24.entry.js} +2 -2
  737. package/dist/core/p-8655fd24.entry.js.map +1 -0
  738. package/dist/core/p-8f6172d4.entry.js +2 -0
  739. package/dist/core/p-8f6172d4.entry.js.map +1 -0
  740. package/dist/core/p-90cd5ffe.entry.js +2 -0
  741. package/dist/core/p-90cd5ffe.entry.js.map +1 -0
  742. package/dist/core/p-98314c19.entry.js +2 -0
  743. package/dist/core/p-98314c19.entry.js.map +1 -0
  744. package/dist/core/p-B6CqPcY_.js.map +1 -1
  745. package/dist/core/p-BUmDydor.js.map +1 -1
  746. package/dist/core/p-BcQO4NH2.js.map +1 -1
  747. package/dist/core/p-BjcqOprh.js.map +1 -1
  748. package/dist/core/p-Bo1ROm5Q.js.map +1 -1
  749. package/dist/core/p-Bz_RzYFb.js.map +1 -1
  750. package/dist/core/p-C3R1T_pg.js.map +1 -1
  751. package/dist/core/p-C6JN9gdb.js.map +1 -1
  752. package/dist/core/p-CDIRBJsi.js.map +1 -1
  753. package/dist/core/p-CQvUntGY.js.map +1 -1
  754. package/dist/core/p-Ccwpa1ck.js.map +1 -1
  755. package/dist/core/p-CgDnDrq5.js.map +1 -1
  756. package/dist/core/p-Cjg0wpDG.js.map +1 -1
  757. package/dist/core/p-ClISz4NF.js +3 -0
  758. package/dist/core/p-ClISz4NF.js.map +1 -0
  759. package/dist/core/p-CoD1xawt.js +2 -0
  760. package/dist/core/p-CoD1xawt.js.map +1 -0
  761. package/dist/core/p-Cx3bEC5v.js.map +1 -1
  762. package/dist/core/p-CzXeijOj.js.map +1 -1
  763. package/dist/core/p-D4TGB274.js.map +1 -1
  764. package/dist/core/p-DBXGhafv.js.map +1 -1
  765. package/dist/core/p-DNztiAH0.js.map +1 -1
  766. package/dist/core/p-DQuL1Twl.js.map +1 -1
  767. package/dist/core/p-DYcNEwSZ.js.map +1 -1
  768. package/dist/core/p-EeKNA85D.js.map +1 -1
  769. package/dist/core/p-GYov8gU1.js.map +1 -1
  770. package/dist/core/p-NOJjz9dT.js.map +1 -1
  771. package/dist/core/p-Q99QrOoi.js.map +1 -1
  772. package/dist/core/p-U40vKHrs.js.map +1 -1
  773. package/dist/core/p-ac962619.entry.js +2 -0
  774. package/dist/core/p-ac962619.entry.js.map +1 -0
  775. package/dist/core/p-ae6d0bcd.entry.js +2 -0
  776. package/dist/core/p-ae6d0bcd.entry.js.map +1 -0
  777. package/dist/core/p-b3b517f0.entry.js +2 -0
  778. package/dist/core/p-b3b517f0.entry.js.map +1 -0
  779. package/dist/core/p-b7306a6f.entry.js +2 -0
  780. package/dist/core/p-b7306a6f.entry.js.map +1 -0
  781. package/dist/core/{p-d48d5870.entry.js → p-b93548cc.entry.js} +2 -2
  782. package/dist/core/p-b93548cc.entry.js.map +1 -0
  783. package/dist/core/p-be3bbe06.entry.js +2 -0
  784. package/dist/core/p-be3bbe06.entry.js.map +1 -0
  785. package/dist/core/{p-5c9371da.entry.js → p-c6b55c0a.entry.js} +2 -2
  786. package/dist/core/p-c6b55c0a.entry.js.map +1 -0
  787. package/dist/core/p-cf06a38b.entry.js +2 -0
  788. package/dist/core/p-cf06a38b.entry.js.map +1 -0
  789. package/dist/core/p-dec65494.entry.js +2 -0
  790. package/dist/core/p-dec65494.entry.js.map +1 -0
  791. package/dist/core/p-df09f0be.entry.js +2 -0
  792. package/dist/core/p-df09f0be.entry.js.map +1 -0
  793. package/dist/core/p-e0634fae.entry.js +2 -0
  794. package/dist/core/p-e0634fae.entry.js.map +1 -0
  795. package/dist/core/{p-f0505205.entry.js → p-e1b2af6b.entry.js} +2 -2
  796. package/dist/core/p-e1b2af6b.entry.js.map +1 -0
  797. package/dist/core/p-e29cd545.entry.js +2 -0
  798. package/dist/core/p-e29cd545.entry.js.map +1 -0
  799. package/dist/core/p-e5e7abe0.entry.js +2 -0
  800. package/dist/core/p-e5e7abe0.entry.js.map +1 -0
  801. package/dist/core/{p-48a3bb49.entry.js → p-e7f889c7.entry.js} +2 -2
  802. package/dist/core/p-e7f889c7.entry.js.map +1 -0
  803. package/dist/core/p-ebd3d25f.entry.js +2 -0
  804. package/dist/core/p-ebd3d25f.entry.js.map +1 -0
  805. package/dist/core/p-f067af74.entry.js +2 -0
  806. package/dist/core/p-f067af74.entry.js.map +1 -0
  807. package/dist/core/p-f58a20af.entry.js +2 -0
  808. package/dist/core/p-f58a20af.entry.js.map +1 -0
  809. package/dist/core/{p-984b6020.entry.js → p-f7bdb44a.entry.js} +2 -2
  810. package/dist/core/p-f7bdb44a.entry.js.map +1 -0
  811. package/dist/core/p-fe3bd57c.entry.js +2 -0
  812. package/dist/core/p-fe3bd57c.entry.js.map +1 -0
  813. package/dist/core/p-vN03FcXN.js.map +1 -1
  814. package/dist/dist/components/gov-accordion-item.d.ts +11 -0
  815. package/dist/dist/components/gov-accordion.d.ts +11 -0
  816. package/dist/dist/components/gov-app.d.ts +11 -0
  817. package/dist/dist/components/gov-attachments-item.d.ts +11 -0
  818. package/dist/dist/components/gov-attachments.d.ts +11 -0
  819. package/dist/dist/components/gov-backdrop.d.ts +11 -0
  820. package/dist/dist/components/gov-banner.d.ts +11 -0
  821. package/dist/dist/components/gov-blockquote.d.ts +11 -0
  822. package/dist/dist/components/gov-breadcrumbs.d.ts +11 -0
  823. package/dist/dist/components/gov-button.d.ts +11 -0
  824. package/dist/dist/components/gov-card.d.ts +11 -0
  825. package/dist/dist/components/gov-chip.d.ts +11 -0
  826. package/dist/dist/components/gov-collapsible.d.ts +11 -0
  827. package/dist/dist/components/gov-container.d.ts +11 -0
  828. package/dist/dist/components/gov-control-group.d.ts +11 -0
  829. package/dist/dist/components/gov-cookiebar.d.ts +11 -0
  830. package/dist/dist/components/gov-dialog.d.ts +11 -0
  831. package/dist/dist/components/gov-dropdown.d.ts +11 -0
  832. package/dist/dist/components/gov-empty.d.ts +11 -0
  833. package/dist/dist/components/gov-error-code.d.ts +11 -0
  834. package/dist/dist/components/gov-flex.d.ts +11 -0
  835. package/dist/dist/components/gov-form-autocomplete.d.ts +11 -0
  836. package/dist/dist/components/gov-form-checkbox-group.d.ts +11 -0
  837. package/dist/dist/components/gov-form-checkbox.d.ts +11 -0
  838. package/dist/dist/components/gov-form-control.d.ts +11 -0
  839. package/dist/dist/components/gov-form-file.d.ts +11 -0
  840. package/dist/dist/components/gov-form-group.d.ts +11 -0
  841. package/dist/dist/components/gov-form-input.d.ts +11 -0
  842. package/dist/dist/components/gov-form-label.d.ts +11 -0
  843. package/dist/dist/components/gov-form-message.d.ts +11 -0
  844. package/dist/dist/components/gov-form-multi-select.d.ts +11 -0
  845. package/dist/dist/components/gov-form-password-power.d.ts +11 -0
  846. package/dist/dist/components/gov-form-radio-group.d.ts +11 -0
  847. package/dist/dist/components/gov-form-radio.d.ts +11 -0
  848. package/dist/dist/components/gov-form-range.d.ts +11 -0
  849. package/dist/dist/components/gov-form-search.d.ts +11 -0
  850. package/dist/dist/components/gov-form-select.d.ts +11 -0
  851. package/dist/dist/components/gov-form-switch.d.ts +11 -0
  852. package/dist/dist/components/gov-grid-item.d.ts +11 -0
  853. package/dist/dist/components/gov-grid.d.ts +11 -0
  854. package/dist/dist/components/gov-icon.d.ts +11 -0
  855. package/dist/dist/components/gov-infobar.d.ts +11 -0
  856. package/dist/dist/components/gov-layout-column.d.ts +11 -0
  857. package/dist/dist/components/gov-layout.d.ts +11 -0
  858. package/dist/dist/components/gov-lifecycle.d.ts +11 -0
  859. package/dist/dist/components/gov-link.d.ts +11 -0
  860. package/dist/dist/components/gov-loading.d.ts +11 -0
  861. package/dist/dist/components/gov-message.d.ts +11 -0
  862. package/dist/dist/components/gov-pagination.d.ts +11 -0
  863. package/dist/dist/components/gov-skeleton.d.ts +11 -0
  864. package/dist/dist/components/gov-spacer.d.ts +11 -0
  865. package/dist/dist/components/gov-stepper-item.d.ts +11 -0
  866. package/dist/dist/components/gov-stepper.d.ts +11 -0
  867. package/dist/dist/components/gov-tabs-item.d.ts +11 -0
  868. package/dist/dist/components/gov-tabs.d.ts +11 -0
  869. package/dist/dist/components/gov-tag.d.ts +11 -0
  870. package/dist/dist/components/gov-theme-switch.d.ts +11 -0
  871. package/dist/dist/components/gov-tile.d.ts +11 -0
  872. package/dist/dist/components/gov-toast.d.ts +11 -0
  873. package/dist/dist/components/gov-tooltip-content.d.ts +11 -0
  874. package/dist/dist/components/gov-tooltip.d.ts +11 -0
  875. package/dist/dist/components/gov-wizard-item.d.ts +11 -0
  876. package/dist/dist/components/gov-wizard.d.ts +11 -0
  877. package/dist/dist/components/index.d.ts +33 -0
  878. package/dist/dist/dist/components/index.d.ts +33 -0
  879. package/dist/dist/dist/globals.d.ts +2 -0
  880. package/dist/dist/dist/hydrate/index.d.ts +273 -0
  881. package/dist/dist/dist/types/interfaces.d.ts +1 -0
  882. package/dist/dist/dist/types/stencil-public-runtime.d.ts +1702 -0
  883. package/dist/dist/globals.d.ts +2 -0
  884. package/dist/dist/hydrate/index.d.ts +273 -0
  885. package/dist/dist/types/components/gov-accordion/constants.d.ts +19 -0
  886. package/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +43 -0
  887. package/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +26 -0
  888. package/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
  889. package/dist/dist/types/components/gov-attachments/constants.d.ts +11 -0
  890. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
  891. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
  892. package/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
  893. package/dist/dist/types/components/gov-backdrop/constants.d.ts +4 -0
  894. package/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
  895. package/dist/dist/types/components/gov-banner/constants.d.ts +26 -0
  896. package/dist/dist/types/components/gov-banner/gov-banner.d.ts +28 -0
  897. package/dist/dist/types/components/gov-blockquote/constants.d.ts +10 -0
  898. package/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +15 -0
  899. package/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
  900. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
  901. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +42 -0
  902. package/dist/dist/types/components/gov-button/button/constants.d.ts +29 -0
  903. package/dist/dist/types/components/gov-button/button/gov-button.d.ts +133 -0
  904. package/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
  905. package/dist/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
  906. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +40 -0
  907. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
  908. package/dist/dist/types/components/gov-card/constants.d.ts +16 -0
  909. package/dist/dist/types/components/gov-card/gov-card.d.ts +57 -0
  910. package/dist/dist/types/components/gov-card/interfaces.d.ts +4 -0
  911. package/dist/dist/types/components/gov-chip/constants.d.ts +21 -0
  912. package/dist/dist/types/components/gov-chip/gov-chip.d.ts +82 -0
  913. package/dist/dist/types/components/gov-collapsible/constants.d.ts +18 -0
  914. package/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
  915. package/dist/dist/types/components/gov-container/constants.d.ts +3 -0
  916. package/dist/dist/types/components/gov-container/gov-container.d.ts +6 -0
  917. package/dist/dist/types/components/gov-control-group/constants.d.ts +7 -0
  918. package/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +24 -0
  919. package/dist/dist/types/components/gov-cookiebar/constants.d.ts +7 -0
  920. package/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
  921. package/dist/dist/types/components/gov-dialog/constants.d.ts +11 -0
  922. package/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +70 -0
  923. package/dist/dist/types/components/gov-empty/constants.d.ts +19 -0
  924. package/dist/dist/types/components/gov-empty/gov-empty.d.ts +21 -0
  925. package/dist/dist/types/components/gov-error-code/constants.d.ts +4 -0
  926. package/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
  927. package/dist/dist/types/components/gov-flex/constants.d.ts +7 -0
  928. package/dist/dist/types/components/gov-flex/gov-flex.d.ts +39 -0
  929. package/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
  930. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +149 -0
  931. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
  932. package/dist/dist/types/components/gov-form/checkbox/constants.d.ts +10 -0
  933. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +86 -0
  934. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
  935. package/dist/dist/types/components/gov-form/control/constants.d.ts +9 -0
  936. package/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +40 -0
  937. package/dist/dist/types/components/gov-form/file/constants.d.ts +7 -0
  938. package/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +129 -0
  939. package/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
  940. package/dist/dist/types/components/gov-form/group/constants.d.ts +18 -0
  941. package/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +32 -0
  942. package/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -0
  943. package/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +7 -0
  944. package/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +32 -0
  945. package/dist/dist/types/components/gov-form/input/constants.d.ts +28 -0
  946. package/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +178 -0
  947. package/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
  948. package/dist/dist/types/components/gov-form/label/constants.d.ts +8 -0
  949. package/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
  950. package/dist/dist/types/components/gov-form/message/constants.d.ts +11 -0
  951. package/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +23 -0
  952. package/dist/dist/types/components/gov-form/multiselect/constants.d.ts +10 -0
  953. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +127 -0
  954. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +10 -0
  955. package/dist/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
  956. package/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
  957. package/dist/dist/types/components/gov-form/radio/constants.d.ts +10 -0
  958. package/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +83 -0
  959. package/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
  960. package/dist/dist/types/components/gov-form/range/constants.d.ts +9 -0
  961. package/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
  962. package/dist/dist/types/components/gov-form/search/constants.d.ts +10 -0
  963. package/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +13 -0
  964. package/dist/dist/types/components/gov-form/select/constants.d.ts +8 -0
  965. package/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +89 -0
  966. package/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -0
  967. package/dist/dist/types/components/gov-form/switch/constants.d.ts +12 -0
  968. package/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +81 -0
  969. package/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
  970. package/dist/dist/types/components/gov-grid/constants.d.ts +10 -0
  971. package/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +46 -0
  972. package/dist/dist/types/components/gov-grid/gov-grid.d.ts +19 -0
  973. package/dist/dist/types/components/gov-icon/constants.d.ts +18 -0
  974. package/dist/dist/types/components/gov-icon/gov-icon.d.ts +34 -0
  975. package/dist/dist/types/components/gov-icon/helpers.d.ts +6 -0
  976. package/dist/dist/types/components/gov-icon/list.d.ts +3 -0
  977. package/dist/dist/types/components/gov-infobar/constants.d.ts +16 -0
  978. package/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +51 -0
  979. package/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -0
  980. package/dist/dist/types/components/gov-layout/constants.d.ts +20 -0
  981. package/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
  982. package/dist/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
  983. package/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  984. package/dist/dist/types/components/gov-link/constants.d.ts +8 -0
  985. package/dist/dist/types/components/gov-link/gov-link.d.ts +34 -0
  986. package/dist/dist/types/components/gov-loading/loading/constants.d.ts +9 -0
  987. package/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +13 -0
  988. package/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +21 -0
  989. package/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +46 -0
  990. package/dist/dist/types/components/gov-message/constants.d.ts +13 -0
  991. package/dist/dist/types/components/gov-message/gov-message.d.ts +16 -0
  992. package/dist/dist/types/components/gov-pagination/constants.d.ts +22 -0
  993. package/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -0
  994. package/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
  995. package/dist/dist/types/components/gov-pagination/pagination.d.ts +12 -0
  996. package/dist/dist/types/components/gov-spacer/constants.d.ts +15 -0
  997. package/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
  998. package/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +21 -0
  999. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +4 -0
  1000. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +31 -0
  1001. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +22 -0
  1002. package/dist/dist/types/components/gov-tabs/constants.d.ts +28 -0
  1003. package/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +54 -0
  1004. package/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +70 -0
  1005. package/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +14 -0
  1006. package/dist/dist/types/components/gov-tag/constants.d.ts +12 -0
  1007. package/dist/dist/types/components/gov-tag/gov-tag.d.ts +35 -0
  1008. package/dist/dist/types/components/gov-theme-switch/constants.d.ts +12 -0
  1009. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +46 -0
  1010. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +10 -0
  1011. package/dist/dist/types/components/gov-tile/constants.d.ts +13 -0
  1012. package/dist/dist/types/components/gov-tile/gov-tile.d.ts +34 -0
  1013. package/dist/dist/types/components/gov-toast/constants.d.ts +17 -0
  1014. package/dist/dist/types/components/gov-toast/gov-toast.d.ts +58 -0
  1015. package/dist/dist/types/components/gov-tooltip/constants.d.ts +20 -0
  1016. package/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +28 -0
  1017. package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +58 -0
  1018. package/dist/dist/types/components/gov-wizard/constants.d.ts +19 -0
  1019. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
  1020. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +60 -0
  1021. package/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
  1022. package/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +35 -0
  1023. package/dist/dist/types/core/constants/colors.d.ts +13 -0
  1024. package/dist/dist/types/core/constants/sizes.d.ts +13 -0
  1025. package/dist/dist/types/core/constants/tags.d.ts +12 -0
  1026. package/dist/dist/types/core/constants/tokens.d.ts +1 -0
  1027. package/dist/dist/types/helpers/Accessibility/accessibility.d.ts +1 -0
  1028. package/dist/dist/types/helpers/Accessibility/attributes.d.ts +1 -0
  1029. package/dist/dist/types/helpers/Dom/attribute.d.ts +13 -0
  1030. package/dist/dist/types/helpers/Dom/document.d.ts +4 -0
  1031. package/dist/dist/types/helpers/Dom/form.d.ts +3 -0
  1032. package/dist/dist/types/helpers/Dom/form.types.d.ts +11 -0
  1033. package/dist/dist/types/helpers/Dom/template.d.ts +10 -0
  1034. package/dist/dist/types/helpers/Dom/template.types.d.ts +14 -0
  1035. package/dist/dist/types/helpers/Dom/win.d.ts +18 -0
  1036. package/dist/dist/types/helpers/Fragment.d.ts +2 -0
  1037. package/dist/dist/types/helpers/Log/gov.log.d.ts +8 -0
  1038. package/dist/dist/types/helpers/Validate/props.d.ts +1 -0
  1039. package/dist/dist/types/helpers/Validate/wcag.d.ts +4 -0
  1040. package/dist/dist/types/index.d.ts +0 -0
  1041. package/dist/dist/types/interfaces.d.ts +1 -0
  1042. package/dist/dist/types/stencil-public-runtime.d.ts +1702 -0
  1043. package/dist/dist/types/types/event.types.d.ts +4 -0
  1044. package/dist/dist/types/types/interfaces.d.ts +2 -0
  1045. package/dist/dist/types/types/typings.d.ts +6 -0
  1046. package/dist/dist/types/utils/array.utils.d.ts +2 -0
  1047. package/dist/dist/types/utils/bool.utils.d.ts +1 -0
  1048. package/dist/dist/types/utils/dom.utils.d.ts +1 -0
  1049. package/dist/dist/types/utils/ds.utils.d.ts +1 -0
  1050. package/dist/dist/types/utils/file.utils.d.ts +3 -0
  1051. package/dist/dist/types/utils/helpers.types.d.ts +49 -0
  1052. package/dist/dist/types/utils/icon.utils.d.ts +4 -0
  1053. package/dist/dist/types/utils/number.utils.d.ts +1 -0
  1054. package/dist/dist/types/utils/object.utils.d.ts +2 -0
  1055. package/dist/dist/types/utils/stencil.utils.d.ts +1 -0
  1056. package/dist/dist/types/utils/string.utils.d.ts +4 -0
  1057. package/dist/dist/types/utils/utils.d.ts +20 -0
  1058. package/dist/esm/Fragment-5itQzbON.js.map +1 -1
  1059. package/dist/esm/accessibility-wqNV8djF.js.map +1 -1
  1060. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  1061. package/dist/esm/array.utils-CJ0U_ONv.js.map +1 -1
  1062. package/dist/esm/attribute-Bz_RzYFb.js.map +1 -1
  1063. package/dist/esm/colors-U40vKHrs.js.map +1 -1
  1064. package/dist/esm/constants-BNBB_29K.js.map +1 -1
  1065. package/dist/esm/constants-BegH8u6i.js.map +1 -1
  1066. package/dist/esm/constants-BiWo5BNa.js.map +1 -1
  1067. package/dist/esm/constants-CysDgoMA.js.map +1 -1
  1068. package/dist/esm/constants-DHvN41Ek.js.map +1 -1
  1069. package/dist/esm/constants-DbTQsVRc.js.map +1 -1
  1070. package/dist/esm/constants-Du0ZtfYe.js.map +1 -1
  1071. package/dist/esm/constants-Q99QrOoi.js.map +1 -1
  1072. package/dist/esm/constants-YOtDGTm5.js.map +1 -1
  1073. package/dist/esm/constants-aqe7GX2n.js.map +1 -1
  1074. package/dist/esm/constants-oYp2tkdN.js.map +1 -1
  1075. package/dist/esm/core.js +4 -4
  1076. package/dist/esm/core.js.map +1 -1
  1077. package/dist/esm/form-DvhJiKwA.js.map +1 -1
  1078. package/dist/esm/gov-accordion-item.entry.js +5 -5
  1079. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  1080. package/dist/esm/gov-accordion.entry.js +3 -3
  1081. package/dist/esm/gov-accordion.entry.js.map +1 -1
  1082. package/dist/esm/gov-attachments.gov-attachments-item.gov-form-message.entry.js.map +1 -1
  1083. package/dist/esm/gov-attachments_3.entry.js +11 -7
  1084. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  1085. package/dist/esm/gov-backdrop.entry.js +3 -3
  1086. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  1087. package/dist/esm/gov-banner.entry.js +4 -4
  1088. package/dist/esm/gov-banner.entry.js.map +1 -1
  1089. package/dist/esm/gov-blockquote.entry.js +3 -3
  1090. package/dist/esm/gov-blockquote.entry.js.map +1 -1
  1091. package/dist/esm/gov-breadcrumbs.entry.js +3 -3
  1092. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  1093. package/dist/esm/gov-button.entry.js +6 -6
  1094. package/dist/esm/gov-button.entry.js.map +1 -1
  1095. package/dist/esm/gov-card.entry.js +3 -3
  1096. package/dist/esm/gov-card.entry.js.map +1 -1
  1097. package/dist/esm/gov-chip.entry.js +4 -4
  1098. package/dist/esm/gov-chip.entry.js.map +1 -1
  1099. package/dist/esm/gov-collapsible.entry.js +84 -0
  1100. package/dist/esm/gov-collapsible.entry.js.map +1 -0
  1101. package/dist/esm/gov-container.entry.js +3 -3
  1102. package/dist/esm/gov-container.entry.js.map +1 -1
  1103. package/dist/esm/gov-control-group.entry.js +9 -5
  1104. package/dist/esm/gov-control-group.entry.js.map +1 -1
  1105. package/dist/esm/gov-cookiebar.entry.js +3 -3
  1106. package/dist/esm/gov-cookiebar.entry.js.map +1 -1
  1107. package/dist/esm/gov-dialog.entry.js +3 -3
  1108. package/dist/esm/gov-dialog.entry.js.map +1 -1
  1109. package/dist/esm/gov-dropdown.entry.js +3 -3
  1110. package/dist/esm/gov-dropdown.entry.js.map +1 -1
  1111. package/dist/esm/gov-empty.entry.js +3 -3
  1112. package/dist/esm/gov-empty.entry.js.map +1 -1
  1113. package/dist/esm/gov-error-code.entry.js +3 -3
  1114. package/dist/esm/gov-error-code.entry.js.map +1 -1
  1115. package/dist/esm/gov-flex.gov-icon.gov-theme-switch.entry.js.map +1 -1
  1116. package/dist/esm/gov-flex_3.entry.js +5 -5
  1117. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  1118. package/dist/esm/gov-form-autocomplete.entry.js +3 -3
  1119. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  1120. package/dist/esm/gov-form-checkbox-group.entry.js +4 -4
  1121. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  1122. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  1123. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  1124. package/dist/esm/gov-form-control.entry.js +3 -3
  1125. package/dist/esm/gov-form-control.entry.js.map +1 -1
  1126. package/dist/esm/gov-form-file.entry.js +3 -7
  1127. package/dist/esm/gov-form-file.entry.js.map +1 -1
  1128. package/dist/esm/gov-form-group.entry.js +3 -3
  1129. package/dist/esm/gov-form-group.entry.js.map +1 -1
  1130. package/dist/esm/gov-form-input.gov-skeleton.entry.js.map +1 -1
  1131. package/dist/esm/gov-form-input_2.entry.js +8 -8
  1132. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  1133. package/dist/esm/gov-form-label.entry.js +2 -2
  1134. package/dist/esm/gov-form-label.entry.js.map +1 -1
  1135. package/dist/esm/gov-form-multi-select.entry.js +4 -4
  1136. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  1137. package/dist/esm/gov-form-password-power.entry.js +2 -2
  1138. package/dist/esm/gov-form-password-power.entry.js.map +1 -1
  1139. package/dist/esm/gov-form-radio-group.entry.js +4 -4
  1140. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  1141. package/dist/esm/gov-form-radio.entry.js +2 -2
  1142. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  1143. package/dist/esm/gov-form-range.entry.js +4 -4
  1144. package/dist/esm/gov-form-range.entry.js.map +1 -1
  1145. package/dist/esm/gov-form-search.entry.js +2 -2
  1146. package/dist/esm/gov-form-search.entry.js.map +1 -1
  1147. package/dist/esm/gov-form-select.entry.js +4 -4
  1148. package/dist/esm/gov-form-select.entry.js.map +1 -1
  1149. package/dist/esm/gov-form-switch.entry.js +2 -2
  1150. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  1151. package/dist/esm/gov-grid-item.entry.js +3 -3
  1152. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  1153. package/dist/esm/gov-grid.entry.js +3 -3
  1154. package/dist/esm/gov-grid.entry.js.map +1 -1
  1155. package/dist/esm/gov-infobar.entry.js +4 -4
  1156. package/dist/esm/gov-infobar.entry.js.map +1 -1
  1157. package/dist/esm/gov-layout-column.entry.js +3 -3
  1158. package/dist/esm/gov-layout-column.entry.js.map +1 -1
  1159. package/dist/esm/gov-layout.entry.js +3 -3
  1160. package/dist/esm/gov-layout.entry.js.map +1 -1
  1161. package/dist/esm/gov-lifecycle.entry.js +2 -2
  1162. package/dist/esm/gov-lifecycle.entry.js.map +1 -1
  1163. package/dist/esm/gov-link.entry.js +3 -3
  1164. package/dist/esm/gov-link.entry.js.map +1 -1
  1165. package/dist/esm/gov-loading.entry.js +3 -3
  1166. package/dist/esm/gov-loading.entry.js.map +1 -1
  1167. package/dist/esm/gov-message.entry.js +3 -3
  1168. package/dist/esm/gov-message.entry.js.map +1 -1
  1169. package/dist/esm/gov-pagination.entry.js +2 -2
  1170. package/dist/esm/gov-pagination.entry.js.map +1 -1
  1171. package/dist/esm/gov-spacer.entry.js +3 -3
  1172. package/dist/esm/gov-spacer.entry.js.map +1 -1
  1173. package/dist/esm/gov-stepper-item.entry.js +3 -3
  1174. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  1175. package/dist/esm/gov-stepper.entry.js +3 -3
  1176. package/dist/esm/gov-stepper.entry.js.map +1 -1
  1177. package/dist/esm/gov-tabs-item.entry.js +3 -3
  1178. package/dist/esm/gov-tabs-item.entry.js.map +1 -1
  1179. package/dist/esm/gov-tabs.entry.js +3 -3
  1180. package/dist/esm/gov-tabs.entry.js.map +1 -1
  1181. package/dist/esm/gov-tag.entry.js +3 -3
  1182. package/dist/esm/gov-tag.entry.js.map +1 -1
  1183. package/dist/esm/gov-tile.entry.js +3 -3
  1184. package/dist/esm/gov-tile.entry.js.map +1 -1
  1185. package/dist/esm/gov-toast.entry.js +3 -3
  1186. package/dist/esm/gov-toast.entry.js.map +1 -1
  1187. package/dist/esm/gov-tooltip.gov-tooltip-content.entry.js.map +1 -0
  1188. package/dist/esm/{gov-tooltip.entry.js → gov-tooltip_2.entry.js} +78 -11
  1189. package/dist/esm/gov-tooltip_2.entry.js.map +1 -0
  1190. package/dist/esm/gov-wizard-item.entry.js +4 -4
  1191. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  1192. package/dist/esm/gov-wizard.entry.js +3 -3
  1193. package/dist/esm/gov-wizard.entry.js.map +1 -1
  1194. package/dist/esm/gov.log-BtqD9K8d.js.map +1 -1
  1195. package/dist/esm/helpers-GYov8gU1.js.map +1 -1
  1196. package/dist/esm/helpers.types-DNztiAH0.js.map +1 -1
  1197. package/dist/esm/{index-DT2tslUp.js → index-ClISz4NF.js} +148 -490
  1198. package/dist/esm/index-ClISz4NF.js.map +1 -0
  1199. package/dist/esm/loader.js +3 -3
  1200. package/dist/esm/props-CJZgTDla.js.map +1 -1
  1201. package/dist/esm/sizes-BcQO4NH2.js.map +1 -1
  1202. package/dist/esm/stencil.utils-Cjg0wpDG.js.map +1 -1
  1203. package/dist/esm/string.utils-vN03FcXN.js.map +1 -1
  1204. package/dist/esm/{template-BBOh2pxy.js → template-CoD1xawt.js} +6 -2
  1205. package/dist/esm/template-CoD1xawt.js.map +1 -0
  1206. package/dist/esm/utils-CQvUntGY.js.map +1 -1
  1207. package/dist/esm/wcag-CD6_13JO.js.map +1 -1
  1208. package/dist/globals.d.ts +2 -2
  1209. package/dist/hydrate/index.js +373 -412
  1210. package/dist/hydrate/index.mjs +373 -412
  1211. package/dist/stencil.config.js +2 -4
  1212. package/dist/stencil.config.js.map +1 -1
  1213. package/dist/types/Users/KameraT/Desktop/Projects/DIA/Sarka/designSystemFinal/gov-design-system/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  1214. package/dist/types/components/gov-button/button/gov-button.d.ts +2 -2
  1215. package/dist/types/components/gov-chip/gov-chip.d.ts +1 -1
  1216. package/dist/types/components/gov-collapsible/constants.d.ts +18 -0
  1217. package/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
  1218. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  1219. package/dist/types/components/gov-control-group/gov-control-group.d.ts +4 -0
  1220. package/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -4
  1221. package/dist/types/components.d.ts +73 -16
  1222. package/dist/types/helpers/Dom/template.types.d.ts +2 -0
  1223. package/dist/types/index.d.ts +0 -1
  1224. package/dist/types/interfaces.d.ts +1 -1
  1225. package/dist/types/stencil-public-runtime.d.ts +5 -12
  1226. package/dist/types/types/typings.d.ts +6 -6
  1227. package/package.json +29 -29
  1228. package/dist/cjs/constants-CS58GJeI.js +0 -29
  1229. package/dist/cjs/constants-CS58GJeI.js.map +0 -1
  1230. package/dist/cjs/gov-tooltip-content.cjs.entry.js +0 -65
  1231. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +0 -1
  1232. package/dist/cjs/gov-tooltip-content.entry.cjs.js.map +0 -1
  1233. package/dist/cjs/gov-tooltip.cjs.entry.js.map +0 -1
  1234. package/dist/cjs/gov-tooltip.entry.cjs.js.map +0 -1
  1235. package/dist/cjs/index-pjwoybrU.js.map +0 -1
  1236. package/dist/cjs/template-DS4pSCTb.js.map +0 -1
  1237. package/dist/collection/pages/Accordion.js +0 -300
  1238. package/dist/collection/pages/Accordion.js.map +0 -1
  1239. package/dist/collection/pages/AttributeSection.js +0 -59
  1240. package/dist/collection/pages/AttributeSection.js.map +0 -1
  1241. package/dist/collection/pages/Avatar.js +0 -47
  1242. package/dist/collection/pages/Avatar.js.map +0 -1
  1243. package/dist/collection/pages/Badge.js +0 -29
  1244. package/dist/collection/pages/Badge.js.map +0 -1
  1245. package/dist/collection/pages/Banner.js +0 -278
  1246. package/dist/collection/pages/Banner.js.map +0 -1
  1247. package/dist/collection/pages/Blockquote.js +0 -25
  1248. package/dist/collection/pages/Blockquote.js.map +0 -1
  1249. package/dist/collection/pages/Breadcrumbs.js +0 -62
  1250. package/dist/collection/pages/Breadcrumbs.js.map +0 -1
  1251. package/dist/collection/pages/Button.js +0 -1450
  1252. package/dist/collection/pages/Button.js.map +0 -1
  1253. package/dist/collection/pages/Card.js +0 -78
  1254. package/dist/collection/pages/Card.js.map +0 -1
  1255. package/dist/collection/pages/Chip.js +0 -265
  1256. package/dist/collection/pages/Chip.js.map +0 -1
  1257. package/dist/collection/pages/Collapsible.js +0 -43
  1258. package/dist/collection/pages/Collapsible.js.map +0 -1
  1259. package/dist/collection/pages/Container.js +0 -21
  1260. package/dist/collection/pages/Container.js.map +0 -1
  1261. package/dist/collection/pages/ControlGroup.js +0 -136
  1262. package/dist/collection/pages/ControlGroup.js.map +0 -1
  1263. package/dist/collection/pages/CookieConsent.js +0 -29
  1264. package/dist/collection/pages/CookieConsent.js.map +0 -1
  1265. package/dist/collection/pages/Dialog.js +0 -56
  1266. package/dist/collection/pages/Dialog.js.map +0 -1
  1267. package/dist/collection/pages/Empty.js +0 -64
  1268. package/dist/collection/pages/Empty.js.map +0 -1
  1269. package/dist/collection/pages/Error.js +0 -18
  1270. package/dist/collection/pages/Error.js.map +0 -1
  1271. package/dist/collection/pages/Flex.js +0 -62
  1272. package/dist/collection/pages/Flex.js.map +0 -1
  1273. package/dist/collection/pages/FormLabel.js +0 -13
  1274. package/dist/collection/pages/FormLabel.js.map +0 -1
  1275. package/dist/collection/pages/FormMessage.js +0 -82
  1276. package/dist/collection/pages/FormMessage.js.map +0 -1
  1277. package/dist/collection/pages/Forms.js +0 -2318
  1278. package/dist/collection/pages/Forms.js.map +0 -1
  1279. package/dist/collection/pages/FormsRestructure.js +0 -13
  1280. package/dist/collection/pages/FormsRestructure.js.map +0 -1
  1281. package/dist/collection/pages/Grid.js +0 -113
  1282. package/dist/collection/pages/Grid.js.map +0 -1
  1283. package/dist/collection/pages/Home.js +0 -114
  1284. package/dist/collection/pages/Home.js.map +0 -1
  1285. package/dist/collection/pages/HorizontalStepper.js +0 -85
  1286. package/dist/collection/pages/HorizontalStepper.js.map +0 -1
  1287. package/dist/collection/pages/Icon.js +0 -32
  1288. package/dist/collection/pages/Icon.js.map +0 -1
  1289. package/dist/collection/pages/Infobar.js +0 -129
  1290. package/dist/collection/pages/Infobar.js.map +0 -1
  1291. package/dist/collection/pages/Layout.js +0 -97
  1292. package/dist/collection/pages/Layout.js.map +0 -1
  1293. package/dist/collection/pages/Loading.js +0 -89
  1294. package/dist/collection/pages/Loading.js.map +0 -1
  1295. package/dist/collection/pages/Message.js +0 -82
  1296. package/dist/collection/pages/Message.js.map +0 -1
  1297. package/dist/collection/pages/Pagination.js +0 -38
  1298. package/dist/collection/pages/Pagination.js.map +0 -1
  1299. package/dist/collection/pages/Spacer.js +0 -26
  1300. package/dist/collection/pages/Spacer.js.map +0 -1
  1301. package/dist/collection/pages/Stepper.js +0 -103
  1302. package/dist/collection/pages/Stepper.js.map +0 -1
  1303. package/dist/collection/pages/Tabs.js +0 -611
  1304. package/dist/collection/pages/Tabs.js.map +0 -1
  1305. package/dist/collection/pages/Tag.js +0 -220
  1306. package/dist/collection/pages/Tag.js.map +0 -1
  1307. package/dist/collection/pages/Tiles.js +0 -107
  1308. package/dist/collection/pages/Tiles.js.map +0 -1
  1309. package/dist/collection/pages/ToastMessage.js +0 -47
  1310. package/dist/collection/pages/ToastMessage.js.map +0 -1
  1311. package/dist/collection/pages/ToastMessageCountdown.js +0 -47
  1312. package/dist/collection/pages/ToastMessageCountdown.js.map +0 -1
  1313. package/dist/collection/pages/Tooltip.js +0 -168
  1314. package/dist/collection/pages/Tooltip.js.map +0 -1
  1315. package/dist/collection/pages/Typography.js +0 -161
  1316. package/dist/collection/pages/Typography.js.map +0 -1
  1317. package/dist/collection/pages/UserNavigation.js +0 -134
  1318. package/dist/collection/pages/UserNavigation.js.map +0 -1
  1319. package/dist/collection/pages/Wizard.js +0 -106
  1320. package/dist/collection/pages/Wizard.js.map +0 -1
  1321. package/dist/components/p-8QWehgod.js +0 -2
  1322. package/dist/components/p-8QWehgod.js.map +0 -1
  1323. package/dist/components/p-BcZ7-N5H.js +0 -2
  1324. package/dist/components/p-BcZ7-N5H.js.map +0 -1
  1325. package/dist/components/p-BlBAryxm.js +0 -2
  1326. package/dist/components/p-BlBAryxm.js.map +0 -1
  1327. package/dist/components/p-Btw6IAjS.js.map +0 -1
  1328. package/dist/components/p-C4pc6Rox.js.map +0 -1
  1329. package/dist/components/p-CSjqhysd.js.map +0 -1
  1330. package/dist/components/p-Cta_74Ps.js +0 -2
  1331. package/dist/components/p-Cta_74Ps.js.map +0 -1
  1332. package/dist/components/p-D4Z6jWqx.js +0 -2
  1333. package/dist/components/p-D4Z6jWqx.js.map +0 -1
  1334. package/dist/components/p-DfJDyRCE.js +0 -2
  1335. package/dist/components/p-DfJDyRCE.js.map +0 -1
  1336. package/dist/components/p-DnZEr-aq.js +0 -2
  1337. package/dist/components/p-DnZEr-aq.js.map +0 -1
  1338. package/dist/components/p-WmFNIuTf.js.map +0 -1
  1339. package/dist/components/p-wlTP5ZEU.js.map +0 -1
  1340. package/dist/core/gov-tooltip-content.entry.esm.js.map +0 -1
  1341. package/dist/core/gov-tooltip.entry.esm.js.map +0 -1
  1342. package/dist/core/p-01482eb2.entry.js +0 -2
  1343. package/dist/core/p-01482eb2.entry.js.map +0 -1
  1344. package/dist/core/p-0dbda4ab.entry.js.map +0 -1
  1345. package/dist/core/p-19a408eb.entry.js.map +0 -1
  1346. package/dist/core/p-1bfbad36.entry.js +0 -2
  1347. package/dist/core/p-1bfbad36.entry.js.map +0 -1
  1348. package/dist/core/p-1f4450cc.entry.js +0 -2
  1349. package/dist/core/p-1f4450cc.entry.js.map +0 -1
  1350. package/dist/core/p-2142c481.entry.js.map +0 -1
  1351. package/dist/core/p-25a33448.entry.js +0 -2
  1352. package/dist/core/p-25a33448.entry.js.map +0 -1
  1353. package/dist/core/p-2affc4c0.entry.js +0 -2
  1354. package/dist/core/p-2affc4c0.entry.js.map +0 -1
  1355. package/dist/core/p-3477fcf1.entry.js +0 -2
  1356. package/dist/core/p-3477fcf1.entry.js.map +0 -1
  1357. package/dist/core/p-35c24ac5.entry.js +0 -2
  1358. package/dist/core/p-35c24ac5.entry.js.map +0 -1
  1359. package/dist/core/p-35f784be.entry.js +0 -2
  1360. package/dist/core/p-35f784be.entry.js.map +0 -1
  1361. package/dist/core/p-37770cee.entry.js +0 -2
  1362. package/dist/core/p-37770cee.entry.js.map +0 -1
  1363. package/dist/core/p-37b98852.entry.js +0 -2
  1364. package/dist/core/p-37b98852.entry.js.map +0 -1
  1365. package/dist/core/p-48a3bb49.entry.js.map +0 -1
  1366. package/dist/core/p-4e170f53.entry.js +0 -2
  1367. package/dist/core/p-4e170f53.entry.js.map +0 -1
  1368. package/dist/core/p-57aac00e.entry.js +0 -2
  1369. package/dist/core/p-57aac00e.entry.js.map +0 -1
  1370. package/dist/core/p-5c9371da.entry.js.map +0 -1
  1371. package/dist/core/p-6508f953.entry.js +0 -2
  1372. package/dist/core/p-6508f953.entry.js.map +0 -1
  1373. package/dist/core/p-658c1d84.entry.js.map +0 -1
  1374. package/dist/core/p-730b823a.entry.js +0 -2
  1375. package/dist/core/p-730b823a.entry.js.map +0 -1
  1376. package/dist/core/p-7f46f70a.entry.js +0 -2
  1377. package/dist/core/p-7f46f70a.entry.js.map +0 -1
  1378. package/dist/core/p-83507d07.entry.js +0 -2
  1379. package/dist/core/p-83507d07.entry.js.map +0 -1
  1380. package/dist/core/p-871d4318.entry.js +0 -2
  1381. package/dist/core/p-871d4318.entry.js.map +0 -1
  1382. package/dist/core/p-8873dc4b.entry.js.map +0 -1
  1383. package/dist/core/p-8c942041.entry.js +0 -2
  1384. package/dist/core/p-8c942041.entry.js.map +0 -1
  1385. package/dist/core/p-8d42ee97.entry.js +0 -2
  1386. package/dist/core/p-8d42ee97.entry.js.map +0 -1
  1387. package/dist/core/p-8dceba0b.entry.js +0 -2
  1388. package/dist/core/p-8dceba0b.entry.js.map +0 -1
  1389. package/dist/core/p-901cbf94.entry.js +0 -2
  1390. package/dist/core/p-901cbf94.entry.js.map +0 -1
  1391. package/dist/core/p-90b277bb.entry.js +0 -2
  1392. package/dist/core/p-90b277bb.entry.js.map +0 -1
  1393. package/dist/core/p-90ff56f4.entry.js.map +0 -1
  1394. package/dist/core/p-962d5767.entry.js.map +0 -1
  1395. package/dist/core/p-984b6020.entry.js.map +0 -1
  1396. package/dist/core/p-9d2a4eb1.entry.js +0 -2
  1397. package/dist/core/p-9d2a4eb1.entry.js.map +0 -1
  1398. package/dist/core/p-9ff7e018.entry.js +0 -2
  1399. package/dist/core/p-9ff7e018.entry.js.map +0 -1
  1400. package/dist/core/p-BBOh2pxy.js +0 -2
  1401. package/dist/core/p-BBOh2pxy.js.map +0 -1
  1402. package/dist/core/p-CLBboRhb.js +0 -2
  1403. package/dist/core/p-CLBboRhb.js.map +0 -1
  1404. package/dist/core/p-DT2tslUp.js +0 -3
  1405. package/dist/core/p-DT2tslUp.js.map +0 -1
  1406. package/dist/core/p-a18c600d.entry.js +0 -2
  1407. package/dist/core/p-a18c600d.entry.js.map +0 -1
  1408. package/dist/core/p-aaa73dc8.entry.js.map +0 -1
  1409. package/dist/core/p-ade69b24.entry.js +0 -2
  1410. package/dist/core/p-ade69b24.entry.js.map +0 -1
  1411. package/dist/core/p-b19afdd8.entry.js +0 -2
  1412. package/dist/core/p-b19afdd8.entry.js.map +0 -1
  1413. package/dist/core/p-b97b4439.entry.js +0 -2
  1414. package/dist/core/p-b97b4439.entry.js.map +0 -1
  1415. package/dist/core/p-bbe0d727.entry.js.map +0 -1
  1416. package/dist/core/p-bedd75e1.entry.js +0 -2
  1417. package/dist/core/p-bedd75e1.entry.js.map +0 -1
  1418. package/dist/core/p-c1a1fc45.entry.js.map +0 -1
  1419. package/dist/core/p-c6f52c6f.entry.js +0 -2
  1420. package/dist/core/p-c6f52c6f.entry.js.map +0 -1
  1421. package/dist/core/p-c99cc786.entry.js +0 -2
  1422. package/dist/core/p-c99cc786.entry.js.map +0 -1
  1423. package/dist/core/p-c9edada1.entry.js +0 -2
  1424. package/dist/core/p-c9edada1.entry.js.map +0 -1
  1425. package/dist/core/p-cddfc899.entry.js +0 -2
  1426. package/dist/core/p-cddfc899.entry.js.map +0 -1
  1427. package/dist/core/p-ce588d98.entry.js +0 -2
  1428. package/dist/core/p-ce588d98.entry.js.map +0 -1
  1429. package/dist/core/p-d4440adf.entry.js.map +0 -1
  1430. package/dist/core/p-d48d5870.entry.js.map +0 -1
  1431. package/dist/core/p-e169f098.entry.js.map +0 -1
  1432. package/dist/core/p-e3e3e9f2.entry.js +0 -2
  1433. package/dist/core/p-e3e3e9f2.entry.js.map +0 -1
  1434. package/dist/core/p-e8507630.entry.js +0 -2
  1435. package/dist/core/p-e8507630.entry.js.map +0 -1
  1436. package/dist/core/p-e9284c2b.entry.js +0 -2
  1437. package/dist/core/p-e9284c2b.entry.js.map +0 -1
  1438. package/dist/core/p-f01eb407.entry.js +0 -2
  1439. package/dist/core/p-f01eb407.entry.js.map +0 -1
  1440. package/dist/core/p-f0505205.entry.js.map +0 -1
  1441. package/dist/core/p-f3c873f5.entry.js +0 -2
  1442. package/dist/core/p-f3c873f5.entry.js.map +0 -1
  1443. package/dist/esm/constants-TT_l4YYj.js +0 -24
  1444. package/dist/esm/constants-TT_l4YYj.js.map +0 -1
  1445. package/dist/esm/gov-tooltip-content.entry.js +0 -63
  1446. package/dist/esm/gov-tooltip-content.entry.js.map +0 -1
  1447. package/dist/esm/gov-tooltip.entry.js.map +0 -1
  1448. package/dist/esm/index-DT2tslUp.js.map +0 -1
  1449. package/dist/esm/template-BBOh2pxy.js.map +0 -1
  1450. package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
  1451. package/dist/types/pages/Accordion.d.ts +0 -3
  1452. package/dist/types/pages/AttributeSection.d.ts +0 -3
  1453. package/dist/types/pages/Avatar.d.ts +0 -3
  1454. package/dist/types/pages/Badge.d.ts +0 -3
  1455. package/dist/types/pages/Banner.d.ts +0 -3
  1456. package/dist/types/pages/Blockquote.d.ts +0 -3
  1457. package/dist/types/pages/Breadcrumbs.d.ts +0 -3
  1458. package/dist/types/pages/Button.d.ts +0 -3
  1459. package/dist/types/pages/Card.d.ts +0 -3
  1460. package/dist/types/pages/Chip.d.ts +0 -3
  1461. package/dist/types/pages/Collapsible.d.ts +0 -3
  1462. package/dist/types/pages/Container.d.ts +0 -3
  1463. package/dist/types/pages/ControlGroup.d.ts +0 -3
  1464. package/dist/types/pages/CookieConsent.d.ts +0 -3
  1465. package/dist/types/pages/Dialog.d.ts +0 -3
  1466. package/dist/types/pages/Empty.d.ts +0 -3
  1467. package/dist/types/pages/Error.d.ts +0 -3
  1468. package/dist/types/pages/Flex.d.ts +0 -3
  1469. package/dist/types/pages/FormLabel.d.ts +0 -3
  1470. package/dist/types/pages/FormMessage.d.ts +0 -3
  1471. package/dist/types/pages/Forms.d.ts +0 -8
  1472. package/dist/types/pages/FormsRestructure.d.ts +0 -3
  1473. package/dist/types/pages/Grid.d.ts +0 -3
  1474. package/dist/types/pages/Home.d.ts +0 -3
  1475. package/dist/types/pages/HorizontalStepper.d.ts +0 -3
  1476. package/dist/types/pages/Icon.d.ts +0 -3
  1477. package/dist/types/pages/Infobar.d.ts +0 -3
  1478. package/dist/types/pages/Layout.d.ts +0 -3
  1479. package/dist/types/pages/Loading.d.ts +0 -3
  1480. package/dist/types/pages/Message.d.ts +0 -3
  1481. package/dist/types/pages/Pagination.d.ts +0 -3
  1482. package/dist/types/pages/Spacer.d.ts +0 -3
  1483. package/dist/types/pages/Stepper.d.ts +0 -3
  1484. package/dist/types/pages/Tabs.d.ts +0 -3
  1485. package/dist/types/pages/Tag.d.ts +0 -3
  1486. package/dist/types/pages/Tiles.d.ts +0 -3
  1487. package/dist/types/pages/ToastMessage.d.ts +0 -3
  1488. package/dist/types/pages/ToastMessageCountdown.d.ts +0 -3
  1489. package/dist/types/pages/Tooltip.d.ts +0 -3
  1490. package/dist/types/pages/Typography.d.ts +0 -3
  1491. package/dist/types/pages/UserNavigation.d.ts +0 -24
  1492. package/dist/types/pages/Wizard.d.ts +0 -3
@@ -1 +1 @@
1
- {"version":3,"file":"gov-form-message.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/message/gov-form-message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,EAAC,gBAAgB,EAAyB,iBAAiB,EAAuB,MAAM,aAAa,CAAA;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAKtD,MAAM,OAAO,cAAc;IAI1B;QAMA;;WAEG;QACoC,UAAK,GAA0B,SAAS,CAAA;QAC/E;;WAEG;QACc,SAAI,GAA2B,GAAG,CAAA;QAZlD,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAA;KAC3C;IAaD,aAAa,CAAC,QAAgB;QAC7B,YAAY,CAAC,iBAAiB,EAAE,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;IACjE,CAAC;IAED,iBAAiB;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;YACpF,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAC1B,6DAAM,IAAI,EAAC,MAAM,GAAG,CACpB;YACD,6DAAM,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,gBAAgB,CAAC,OAAO;gBACxD,8DAAQ,CACF,CACD,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,UAAU;QACf,OAAO,IAAI,CAAC,SAAS,CAAA;IACtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Method, Prop, Watch } from '@stencil/core'\nimport {FormMessageClass, FormMessageSizesTypes, FormMessageColors, FormMessageColorType} from './constants'\nimport { govHost } from '../../../helpers/Dom/template'\nimport { GovHost } from '../../../helpers/Dom/template.types'\nimport { validateProp } from '../../../helpers/Validate/props'\nimport { createID } from '../../../utils/string.utils'\n\n@Component({\n\ttag: 'gov-form-message',\n})\nexport class GovFormMessage {\n\th: GovHost\n\tprivate readonly messageId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.messageId = createID('GovFormMessage')\n\t}\n\n\t@Element() host: HTMLGovFormMessageElement\n\t/**\n\t * Style variation of the message.\n\t */\n\t@Prop({ attribute: 'color' }) readonly color?: FormMessageColorType = 'neutral'\n\t/**\n\t * Message's size.\n\t */\n\t@Prop() readonly size?: FormMessageSizesTypes = 'm'\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(FormMessageColors, newValue, FormMessageClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormMessageClass.root)} color={this.color} size={this.size}>\n\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\t\t\t\t<span id={this.messageId} class={FormMessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Returns unique identifier of message\n\t */\n\t@Method()\n\tasync identifier(): Promise<string> {\n\t\treturn this.messageId\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-form-message.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/message/gov-form-message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAChF,OAAO,EAAC,gBAAgB,EAAyB,iBAAiB,EAAuB,MAAM,aAAa,CAAA;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAKtD,MAAM,OAAO,cAAc;IAI1B;QAMA;;WAEG;QACoC,UAAK,GAA0B,SAAS,CAAA;QAC/E;;WAEG;QACc,SAAI,GAA2B,GAAG,CAAA;QAZlD,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAA;KAC3C;IAaD,aAAa,CAAC,QAAgB;QAC7B,YAAY,CAAC,iBAAiB,EAAE,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;IACjE,CAAC;IAED,iBAAiB;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;IAED,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;YACpF,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAC1B,6DAAM,IAAI,EAAC,MAAM,GAAG,CACpB;YACD,6DAAM,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,gBAAgB,CAAC,OAAO;gBACxD,8DAAQ,CACF,CACD,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,UAAU;QACf,OAAO,IAAI,CAAC,SAAS,CAAA;IACtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, h, Host, Method, Prop, Watch } from '@stencil/core'\r\nimport {FormMessageClass, FormMessageSizesTypes, FormMessageColors, FormMessageColorType} from './constants'\r\nimport { govHost } 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\n\r\n@Component({\r\n\ttag: 'gov-form-message',\r\n})\r\nexport class GovFormMessage {\r\n\th: GovHost\r\n\tprivate readonly messageId: string\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.messageId = createID('GovFormMessage')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormMessageElement\r\n\t/**\r\n\t * Style variation of the message.\r\n\t */\r\n\t@Prop({ attribute: 'color' }) readonly color?: FormMessageColorType = 'neutral'\r\n\t/**\r\n\t * Message's size.\r\n\t */\r\n\t@Prop() readonly size?: FormMessageSizesTypes = 'm'\r\n\r\n\t@Watch('color')\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(FormMessageColors, newValue, FormMessageClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateColor(this.color)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(FormMessageClass.root)} color={this.color} size={this.size}>\r\n\t\t\t\t{this.h.hasSlot('icon') && (\r\n\t\t\t\t\t<slot name=\"icon\" />\r\n\t\t\t\t)}\r\n\t\t\t\t<span id={this.messageId} class={FormMessageClass.content}>\r\n\t\t\t\t\t<slot />\r\n\t\t\t\t</span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns unique identifier of message\r\n\t */\r\n\t@Method()\r\n\tasync identifier(): Promise<string> {\r\n\t\treturn this.messageId\r\n\t}\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/multiselect/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAG3C,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAGjF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE,6BAA6B;CACnC,CAAA","sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormMultiselectSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type FormMultiselectSizesType = `${ValueOf<typeof FormMultiselectSizes>}`\n\nexport const FormMultiSelectClass = {\n\troot: 'gov-form-multi-select',\n\twrap: 'gov-form-multi-select__wrap',\n\tlist: 'gov-form-multi-select__list',\n\titem: 'gov-form-multi-select__item',\n}\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/multiselect/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAG3C,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAGjF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE,6BAA6B;CACnC,CAAA","sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\r\nimport { pick } from '../../../utils/utils'\r\nimport { ValueOf } from '../../../types/interfaces'\r\n\r\nexport const FormMultiselectSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type FormMultiselectSizesType = `${ValueOf<typeof FormMultiselectSizes>}`\r\n\r\nexport const FormMultiSelectClass = {\r\n\troot: 'gov-form-multi-select',\r\n\twrap: 'gov-form-multi-select__wrap',\r\n\tlist: 'gov-form-multi-select__list',\r\n\titem: 'gov-form-multi-select__item',\r\n}\r\n"]}
@@ -177,11 +177,11 @@ export class GovFormMultiSelect {
177
177
  });
178
178
  }
179
179
  render() {
180
- return (h(Host, { key: '702237c94a2454e2ee966fee0a4fb92e690b7ca3', class: FormMultiSelectClass.root, size: this.size }, h("div", { key: '06644d9c3deb723effa4dd18207734ff4c9885cf', class: FormMultiSelectClass.wrap }, this.h.hasSlot('prefix') && h("slot", { key: '7a000864224ecfe4fc333b2609f1d624b8cbad2c', name: "prefix" }), h("gov-form-autocomplete", { key: '7ce180ba5e799af98869ab3a0eab7dc0b1cd28f8', value: this.valueState, disabled: this.disabled, identifier: this.identifier || this.selectId, required: false, invalid: this.invalid, success: this.success, size: this.size, placeholder: this.placeholder, "message-empty": this.messageEmpty, "message-loading": this.messageLoading, ref: el => (this.autocompleteRef = el), minlength: 0, "aria-owns": this.listId }, this.success && h("gov-icon", { key: '8433d6631829ad487ea0d14f3a23ef955179ab72', slot: "validation-icon", class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && h("gov-icon", { key: '55076350c10d021f5e1c6882ca9c36ddcb3b8d96', slot: "validation-icon", class: "validation-icon", name: "exclamation-lg", type: "components" }), h("gov-icon", { key: '3671d42362ea1a7334b687d12d9fbe50d12a2e6b', slot: "icon-end", class: "arrow-icon", name: "chevron-down", type: "components" })), h("select", Object.assign({ key: '9d9af70e3a94506e654bc4739dff88512f9a7027', hidden: true, class: 'hidden-select-list', "aria-hidden": toBoolAttr(true), multiple: true, required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), h("slot", { key: '121da88c22cb7aa89bddd017daaa3adf2d3cdba1' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
180
+ return (h(Host, { key: 'b5f6643779e88a7fd84c50e0e28a2e3df55ef5b1', class: FormMultiSelectClass.root, size: this.size }, h("div", { key: 'eac5219ecea75ffa80cf00e2ea7b657d011a4364', class: FormMultiSelectClass.wrap }, this.h.hasSlot('prefix') && h("slot", { key: '043326a3213e27ba4bd82fc07d807f5385cad621', name: "prefix" }), h("gov-form-autocomplete", { key: '908d9dd75e8eccf489bf02c38830742119f3f5a8', value: this.valueState, disabled: this.disabled, identifier: this.identifier || this.selectId, required: false, invalid: this.invalid, success: this.success, size: this.size, placeholder: this.placeholder, "message-empty": this.messageEmpty, "message-loading": this.messageLoading, ref: el => (this.autocompleteRef = el), minlength: 0, "aria-owns": this.listId }, this.success && h("gov-icon", { key: '5462998619176ad9b9fb64bb4cbfa64640b1882b', slot: "validation-icon", class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && h("gov-icon", { key: '927ab032bef36a8de9dcbdc0b04fb9ba788ff3ef', slot: "validation-icon", class: "validation-icon", name: "exclamation-lg", type: "components" }), h("gov-icon", { key: '92064ab6e3af5b2614eabe328795602613e06fdb', slot: "icon-end", class: "arrow-icon", name: "chevron-down", type: "components" })), h("select", Object.assign({ key: 'e344464b72f03ab9cf5e9ccdbd5caaff913774f9', hidden: true, class: 'hidden-select-list', "aria-hidden": toBoolAttr(true), multiple: true, required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), h("slot", { key: 'b7713729d23f54f2f7d9489bd816237565b87d43' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
181
181
  var _a;
182
182
  const selectedOption = this.selectedValueIndex(option.value);
183
183
  return (h("option", { value: option.value, selected: selectedOption > -1, disabled: option === null || option === void 0 ? void 0 : option.disabled }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value));
184
- })), this.h.hasSlot('sufix') && h("slot", { key: '7a1392bc37a8ff68a2269b8aced6af13dc2d0155', name: "sufix" })), this.hideSelectedList === false ? (h("ul", { role: "listbox", id: this.listId, class: FormMultiSelectClass.list }, Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {
184
+ })), this.h.hasSlot('sufix') && h("slot", { key: 'ae1452913889844708b397d9d6e66fa071f85522', name: "sufix" })), this.hideSelectedList === false ? (h("ul", { role: "listbox", id: this.listId, class: FormMultiSelectClass.list }, Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {
185
185
  var _a;
186
186
  const option = this.getOption(selected);
187
187
  if (!option)
@@ -410,7 +410,7 @@ export class GovFormMultiSelect {
410
410
  "optional": false,
411
411
  "docs": {
412
412
  "tags": [],
413
- "text": "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.\nWhen using this property you need to also set \u201Cnovalidate\u201D attribute to your form element to prevent browser from displaying its own validation errors."
413
+ "text": "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\nWhen using this property you need to also set \u201Cnovalidate\u201D attribute to your form element to prevent browser from displaying its own validation errors."
414
414
  },
415
415
  "getter": false,
416
416
  "setter": false,
@@ -430,7 +430,7 @@ export class GovFormMultiSelect {
430
430
  "optional": false,
431
431
  "docs": {
432
432
  "tags": [],
433
- "text": "Makes the select component disabled.\nThis prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies."
433
+ "text": "Makes the select component disabled.\r\nThis prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies."
434
434
  },
435
435
  "getter": false,
436
436
  "setter": false,
@@ -1 +1 @@
1
- {"version":3,"file":"gov-form-multi-select.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/multiselect/gov-form-multi-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAA;AAEjD,OAAO,EAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAEtF,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAE5D,OAAO,EAAC,QAAQ,EAAE,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAEtE,OAAO,EAAC,oBAAoB,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {govForm} from '../../../helpers/Dom/form'\nimport {GovForm} from '../../../helpers/Dom/form.types'\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\nimport {GovHost} from '../../../helpers/Dom/template.types'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {Nullable} from '../../../types/interfaces'\nimport {createID, removeDiacritics} from '../../../utils/string.utils'\nimport {FormAutocompleteEvent} from '../autocomplete/gov-form-autocomplete.types'\nimport {FormMultiSelectClass, FormMultiselectSizes, FormMultiselectSizesType} from './constants'\nimport {\n\tFormMultiselectEvent,\n\tGovFormMultiSelectItem,\n\tGovFormMultiSelectSelectedItem\n} from './gov-form-multi-select.types'\nimport {propsValueToArray} from \"../../../utils/array.utils\";\nimport {tick} from \"../../../utils/stencil.utils\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\n\n@Component({\n\ttag: 'gov-form-multi-select',\n})\nexport class GovFormMultiSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\n\tprivate selectRef?: HTMLSelectElement\n\tprivate autocompleteRef?: HTMLGovFormAutocompleteElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly selectId: string\n\tprivate readonly listId: string\n\n\tconstructor() {\n\t\tthis.selectId = createID('GovSelect')\n\t\tthis.listId = createID('GovMultiList')\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of multi-select\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string | GovFormMultiSelectSelectedItem[]\n\t/**\n\t * Options of multi-select\n\t */\n\t@Prop({reflect: true, mutable: true}) options?: string | GovFormMultiSelectItem[]\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Custom select placeholder.\n\t */\n\t@Prop({attribute: 'placeholder'}) readonly placeholder: string\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormMultiselectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Option to hide the list of selected items\n\t */\n\t@Prop({attribute: 'hide-selected-list'}) readonly hideSelectedList: boolean = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly invalid: boolean\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean\n\t/**\n\t * Custom message for when there is a blank sheet\n\t */\n\t@Prop({attribute: 'message-empty'}) readonly messageEmpty: string = 'Nebyly nalezeny žádné výsledky'\n\t/**\n\t * Custom message for when data is loaded\n\t */\n\t@Prop({attribute: 'message-loading'}) readonly messageLoading: string = 'Načítám...'\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when an item is selected\n\t */\n\t@Event({eventName: 'gov-select'}) govSelect: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when an item is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<FormMultiselectEvent>\n\n\t@State() focused: boolean\n\t@State() valueState: string\n\t@State() selectedOptionsState: GovFormMultiSelectSelectedItem[] = []\n\t@State() optionsState: GovFormMultiSelectItem[] = []\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormMultiselectSizes, newValue, FormMultiSelectClass.root)\n\t}\n\n\t@Watch('options')\n\twatchOptions(newValue: string | GovFormMultiSelectItem[]): void {\n\t\tthis.optionsState = propsValueToArray(newValue)\n\t}\n\n\t@Watch('value')\n\twatchValue(newValue: string | GovFormMultiSelectItem[]): void {\n\t\tthis.selectedOptionsState = propsValueToArray(newValue)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t\tthis.initAutocomplete()\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\t\tthis.optionsState = propsValueToArray(this.options)\n\t\tthis.selectedOptionsState = propsValueToArray(this.value)\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate getAvailableOptions(ignoreFilter = false): GovFormMultiSelectItem[] {\n\t\tif (Array.isArray(this.optionsState) && this.optionsState.length) {\n\t\t\tif (ignoreFilter) {\n\t\t\t\treturn this.optionsState;\n\t\t\t}\n\t\t\treturn this.optionsState.filter((option) => {\n\t\t\t\tconst selectedIndex = this.selectedValueIndex(option.value)\n\t\t\t\treturn (selectedIndex !== -1 || option?.disabled) ? false : true\n\t\t\t}).map((option) => ({name: option.label ?? option.value, value: option.value}))\n\t\t}\n\t\treturn Array.from(this.selectRef.querySelectorAll('option'))\n\t\t\t.filter((option: HTMLOptionElement) => {\n\t\t\t\tif (ignoreFilter) {\n\t\t\t\t\treturn true\n\t\t\t\t}\n\t\t\t\tconst selectedIndex = this.selectedValueIndex(option.value)\n\t\t\t\treturn !(option.disabled || option.selected || selectedIndex > -1)\n\t\t\t})\n\t\t\t.map((option: HTMLOptionElement) => ({name: option.textContent, value: option.value}))\n\t}\n\n\tprivate initAutocomplete() {\n\t\tthis.autocompleteRef?.addEventListener('gov-select', this.onSelectHandler.bind(this))\n\t\tthis.autocompleteRef?.addEventListener('gov-input', this.onInputHandler.bind(this))\n\t\tthis.autocompleteRef?.addEventListener('gov-focus', this.onFocusHandler.bind(this))\n\t\tthis.autocompleteRef?.addEventListener('gov-blur', this.onBlurHandler.bind(this))\n\t\tthis.autocompleteRef\n\t\t\t?.setSearchCallback(searchString => {\n\t\t\t\treturn new Promise(resolve => {\n\t\t\t\t\tconst data = this.getAvailableOptions()\n\t\t\t\t\tif (String(searchString).length === 0) {\n\t\t\t\t\t\treturn resolve(data)\n\t\t\t\t\t}\n\t\t\t\t\tresolve(\n\t\t\t\t\t\tdata.filter(({label, value}) => {\n\t\t\t\t\t\t\tif (!label) label = value;\n\t\t\t\t\t\t\treturn removeDiacritics(label).toLowerCase().indexOf(removeDiacritics(searchString).toLowerCase()) > -1\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t})\n\t\t\t})\n\t\t\t.finally()\n\t}\n\n\tprivate selectedValueIndex(value: GovFormMultiSelectSelectedItem) {\n\t\treturn this.selectedOptionsState.findIndex((selected) => selected === value)\n\t}\n\n\tprivate getOptionElement(value: GovFormMultiSelectSelectedItem): Nullable<HTMLOptionElement> {\n\t\treturn this.selectRef.querySelector('option[value=\"' + value + '\"]') as HTMLOptionElement\n\t}\n\n\tprivate getOption(value: GovFormMultiSelectSelectedItem): GovFormMultiSelectItem | null {\n\t\treturn this.getAvailableOptions(true).find((option) => option.value === value) ?? null;\n\t}\n\n\tprivate selectOption(newOption: GovFormMultiSelectSelectedItem, notify = true) {\n\t\tconst index = this.selectedValueIndex(newOption)\n\t\tif (index === -1) {\n\t\t\tthis.selectedOptionsState = [...this.selectedOptionsState, newOption]\n\t\t\tthis.value = this.selectedOptionsState;\n\t\t\tif (notify) {\n\t\t\t\tthis.govChange.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t\tthis.govSelect.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t}\n\t\t\tconst option = this.getOptionElement(newOption)\n\t\t\tif (option) {\n\t\t\t\toption.selected = true\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate removeOption(removeOption: GovFormMultiSelectSelectedItem, notify = true) {\n\t\tconst index = this.selectedValueIndex(removeOption)\n\t\tif (index !== -1) {\n\t\t\tthis.selectedOptionsState.splice(index, 1)\n\t\t\tthis.selectedOptionsState = [...this.selectedOptionsState]\n\t\t\tthis.value = this.selectedOptionsState;\n\t\t\tif (notify) {\n\t\t\t\tthis.govChange.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t\tthis.govRemove.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t}\n\t\t\tconst option = this.getOptionElement(removeOption)\n\t\t\tif (option) {\n\t\t\t\toption.selected = false\n\t\t\t}\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\n\t\ttick(() => {\n\t\t\tthis.selectRef.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\t\tif (option.selected) {\n\t\t\t\t\tthis.selectOption(option.value, false)\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormMultiSelectClass.root} size={this.size}>\n\t\t\t\t<div class={FormMultiSelectClass.wrap}>\n\t\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\n\t\t\t\t\t<gov-form-autocomplete\n\t\t\t\t\t\tvalue={this.valueState}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tidentifier={this.identifier || this.selectId}\n\t\t\t\t\t\trequired={false}\n\t\t\t\t\t\tinvalid={this.invalid}\n\t\t\t\t\t\tsuccess={this.success}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tmessage-empty={this.messageEmpty}\n\t\t\t\t\t\tmessage-loading={this.messageLoading}\n\t\t\t\t\t\tref={el => (this.autocompleteRef = el as HTMLGovFormAutocompleteElement)}\n\t\t\t\t\t\tminlength={0}\n\t\t\t\t\t\taria-owns={this.listId}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.success && <gov-icon slot=\"validation-icon\" class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t{this.invalid && <gov-icon slot=\"validation-icon\" class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t<gov-icon slot=\"icon-end\" class=\"arrow-icon\" name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</gov-form-autocomplete>\n\t\t\t\t\t<select\n\t\t\t\t\t\thidden\n\t\t\t\t\t\tclass={'hidden-select-list'}\n\t\t\t\t\t\taria-hidden={toBoolAttr(true)}\n\t\t\t\t\t\tmultiple\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\n\t\t\t\t\t\t\tconst selectedOption = this.selectedValueIndex(option.value);\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={selectedOption > -1}\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label ?? option.value}</option>)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\n\t\t\t\t</div>\n\t\t\t\t{this.hideSelectedList === false ? (\n\t\t\t\t\t<ul role=\"listbox\" id={this.listId} class={FormMultiSelectClass.list}>\n\t\t\t\t\t\t{Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {\n\t\t\t\t\t\t\tconst option = this.getOption(selected);\n\t\t\t\t\t\t\tif (!option) return null\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<li class={FormMultiSelectClass.item} role=\"option\">\n\t\t\t\t\t\t\t\t\t{option.label ?? option.value}\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\taria-label={`Odebrat vybranou položku ${option.label}`}\n\t\t\t\t\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onTagRemove(selected)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</ul>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.selectedOptionsState,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\te.stopPropagation()\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.selectedOptionsState,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: CustomEvent<FormAutocompleteEvent>) {\n\t\tthis.valueState = e.detail.value\n\t\te.stopPropagation()\n\t}\n\n\tprivate onSelectHandler(e: CustomEvent<FormAutocompleteEvent>) {\n\t\te.stopPropagation()\n\t\tconst value = e.detail.selected\n\t\tthis.selectOption(value.value)\n\t\tthis.valueState = ''\n\t\tthis.autocompleteRef.clearValue().finally()\n\t\tthis.autocompleteRef.focus()\n\t}\n\n\tprivate onTagRemove(removeOption: GovFormMultiSelectSelectedItem) {\n\t\tthis.removeOption(removeOption)\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.selectRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.valueState = value\n\t}\n\n\t/**\n\t * Returns an instance of the native html select element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLSelectElement> {\n\t\treturn this.selectRef\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-form-multi-select.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/multiselect/gov-form-multi-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAA;AAEjD,OAAO,EAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAEtF,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAE5D,OAAO,EAAC,QAAQ,EAAE,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAEtE,OAAO,EAAC,oBAAoB,EAAE,oBAAoB,EAA2B,MAAM,aAAa,CAAA;AAMhG,OAAO,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAC,IAAI,EAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAC,iBAAiB,EAAa,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAC,cAAc,EAAC,MAAM,2CAA2C,CAAC;AAKzE,MAAM,OAAO,kBAAkB;IAW9B;QAyBA;;WAEG;QACc,SAAI,GAA8B,GAAG,CAAA;QAKtD;;WAEG;QAC+C,qBAAgB,GAAY,KAAK,CAAA;QACnF;;;WAGG;QACc,aAAQ,GAAY,KAAK,CAAA;QAC1C;;;WAGG;QAC6B,aAAQ,GAAY,KAAK,CAAA;QASzD;;WAEG;QAC0C,iBAAY,GAAW,gCAAgC,CAAA;QACpG;;WAEG;QAC4C,mBAAc,GAAW,YAAY,CAAA;QAwB3E,yBAAoB,GAAqC,EAAE,CAAA;QAC3D,iBAAY,GAA6B,EAAE,CAAA;QAiB3C,wBAAmB,GAAe,EAAE,CAAA;QAvG5C,IAAI,CAAC,QA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G,KAAK,CAAA;IACxB,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,OAAO,IAAI,CAAC,SAAS,CAAA;IACtB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","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 {Nullable} from '../../../types/interfaces'\r\nimport {createID, removeDiacritics} from '../../../utils/string.utils'\r\nimport {FormAutocompleteEvent} from '../autocomplete/gov-form-autocomplete.types'\r\nimport {FormMultiSelectClass, FormMultiselectSizes, FormMultiselectSizesType} from './constants'\r\nimport {\r\n\tFormMultiselectEvent,\r\n\tGovFormMultiSelectItem,\r\n\tGovFormMultiSelectSelectedItem\r\n} from './gov-form-multi-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\n\r\n@Component({\r\n\ttag: 'gov-form-multi-select',\r\n})\r\nexport class GovFormMultiSelect {\r\n\tprivate f: GovForm\r\n\tprivate readonly h: GovHost\r\n\r\n\tprivate selectRef?: HTMLSelectElement\r\n\tprivate autocompleteRef?: HTMLGovFormAutocompleteElement\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tprivate readonly selectId: string\r\n\tprivate readonly listId: string\r\n\r\n\tconstructor() {\r\n\t\tthis.selectId = createID('GovSelect')\r\n\t\tthis.listId = createID('GovMultiList')\r\n\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.f = govForm(this.h)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormSelectElement\r\n\t/**\r\n\t * Value of multi-select\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) value: string | GovFormMultiSelectSelectedItem[]\r\n\t/**\r\n\t * Options of multi-select\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) options?: string | GovFormMultiSelectItem[]\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 * Custom select placeholder.\r\n\t */\r\n\t@Prop({attribute: 'placeholder'}) readonly placeholder: string\r\n\t/**\r\n\t * Select’s size.\r\n\t */\r\n\t@Prop() readonly size?: FormMultiselectSizesType = '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 * Option to hide the list of selected items\r\n\t */\r\n\t@Prop({attribute: 'hide-selected-list'}) readonly hideSelectedList: boolean = false\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 * 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({reflect:true}) readonly invalid: boolean\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() readonly success: boolean\r\n\t/**\r\n\t * Custom message for when there is a blank sheet\r\n\t */\r\n\t@Prop({attribute: 'message-empty'}) readonly messageEmpty: string = 'Nebyly nalezeny žádné výsledky'\r\n\t/**\r\n\t * Custom message for when data is loaded\r\n\t */\r\n\t@Prop({attribute: 'message-loading'}) readonly messageLoading: string = 'Načítám...'\r\n\t/**\r\n\t * Emitted when the select has focus.\r\n\t */\r\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormMultiselectEvent>\r\n\t/**\r\n\t * Emitted when the select loses focus.\r\n\t */\r\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormMultiselectEvent>\r\n\t/**\r\n\t * Emitted when the select change value.\r\n\t */\r\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormMultiselectEvent>\r\n\t/**\r\n\t * Emitted when an item is selected\r\n\t */\r\n\t@Event({eventName: 'gov-select'}) govSelect: EventEmitter<FormMultiselectEvent>\r\n\t/**\r\n\t * Emitted when an item is removed\r\n\t */\r\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<FormMultiselectEvent>\r\n\r\n\t@State() focused: boolean\r\n\t@State() valueState: string\r\n\t@State() selectedOptionsState: GovFormMultiSelectSelectedItem[] = []\r\n\t@State() optionsState: GovFormMultiSelectItem[] = []\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(FormMultiselectSizes, newValue, FormMultiSelectClass.root)\r\n\t}\r\n\r\n\t@Watch('options')\r\n\twatchOptions(newValue: string | GovFormMultiSelectItem[]): void {\r\n\t\tthis.optionsState = propsValueToArray(newValue)\r\n\t}\r\n\r\n\t@Watch('value')\r\n\twatchValue(newValue: string | GovFormMultiSelectItem[]): void {\r\n\t\tthis.selectedOptionsState = propsValueToArray(newValue)\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\tthis.initAutocomplete()\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.optionsState = propsValueToArray(this.options)\r\n\t\tthis.selectedOptionsState = propsValueToArray(this.value)\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\tprivate getAvailableOptions(ignoreFilter = false): GovFormMultiSelectItem[] {\r\n\t\tif (Array.isArray(this.optionsState) && this.optionsState.length) {\r\n\t\t\tif (ignoreFilter) {\r\n\t\t\t\treturn this.optionsState;\r\n\t\t\t}\r\n\t\t\treturn this.optionsState.filter((option) => {\r\n\t\t\t\tconst selectedIndex = this.selectedValueIndex(option.value)\r\n\t\t\t\treturn (selectedIndex !== -1 || option?.disabled) ? false : true\r\n\t\t\t}).map((option) => ({name: option.label ?? option.value, value: option.value}))\r\n\t\t}\r\n\t\treturn Array.from(this.selectRef.querySelectorAll('option'))\r\n\t\t\t.filter((option: HTMLOptionElement) => {\r\n\t\t\t\tif (ignoreFilter) {\r\n\t\t\t\t\treturn true\r\n\t\t\t\t}\r\n\t\t\t\tconst selectedIndex = this.selectedValueIndex(option.value)\r\n\t\t\t\treturn !(option.disabled || option.selected || selectedIndex > -1)\r\n\t\t\t})\r\n\t\t\t.map((option: HTMLOptionElement) => ({name: option.textContent, value: option.value}))\r\n\t}\r\n\r\n\tprivate initAutocomplete() {\r\n\t\tthis.autocompleteRef?.addEventListener('gov-select', this.onSelectHandler.bind(this))\r\n\t\tthis.autocompleteRef?.addEventListener('gov-input', this.onInputHandler.bind(this))\r\n\t\tthis.autocompleteRef?.addEventListener('gov-focus', this.onFocusHandler.bind(this))\r\n\t\tthis.autocompleteRef?.addEventListener('gov-blur', this.onBlurHandler.bind(this))\r\n\t\tthis.autocompleteRef\r\n\t\t\t?.setSearchCallback(searchString => {\r\n\t\t\t\treturn new Promise(resolve => {\r\n\t\t\t\t\tconst data = this.getAvailableOptions()\r\n\t\t\t\t\tif (String(searchString).length === 0) {\r\n\t\t\t\t\t\treturn resolve(data)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresolve(\r\n\t\t\t\t\t\tdata.filter(({label, value}) => {\r\n\t\t\t\t\t\t\tif (!label) label = value;\r\n\t\t\t\t\t\t\treturn removeDiacritics(label).toLowerCase().indexOf(removeDiacritics(searchString).toLowerCase()) > -1\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t)\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t\t.finally()\r\n\t}\r\n\r\n\tprivate selectedValueIndex(value: GovFormMultiSelectSelectedItem) {\r\n\t\treturn this.selectedOptionsState.findIndex((selected) => selected === value)\r\n\t}\r\n\r\n\tprivate getOptionElement(value: GovFormMultiSelectSelectedItem): Nullable<HTMLOptionElement> {\r\n\t\treturn this.selectRef.querySelector('option[value=\"' + value + '\"]') as HTMLOptionElement\r\n\t}\r\n\r\n\tprivate getOption(value: GovFormMultiSelectSelectedItem): GovFormMultiSelectItem | null {\r\n\t\treturn this.getAvailableOptions(true).find((option) => option.value === value) ?? null;\r\n\t}\r\n\r\n\tprivate selectOption(newOption: GovFormMultiSelectSelectedItem, notify = true) {\r\n\t\tconst index = this.selectedValueIndex(newOption)\r\n\t\tif (index === -1) {\r\n\t\t\tthis.selectedOptionsState = [...this.selectedOptionsState, newOption]\r\n\t\t\tthis.value = this.selectedOptionsState;\r\n\t\t\tif (notify) {\r\n\t\t\t\tthis.govChange.emit({\r\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\r\n\t\t\t\t\tvalue: this.selectedOptionsState,\r\n\t\t\t\t})\r\n\t\t\t\tthis.govSelect.emit({\r\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\r\n\t\t\t\t\tvalue: this.selectedOptionsState,\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\tconst option = this.getOptionElement(newOption)\r\n\t\t\tif (option) {\r\n\t\t\t\toption.selected = true\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tprivate removeOption(removeOption: GovFormMultiSelectSelectedItem, notify = true) {\r\n\t\tconst index = this.selectedValueIndex(removeOption)\r\n\t\tif (index !== -1) {\r\n\t\t\tthis.selectedOptionsState.splice(index, 1)\r\n\t\t\tthis.selectedOptionsState = [...this.selectedOptionsState]\r\n\t\t\tthis.value = this.selectedOptionsState;\r\n\t\t\tif (notify) {\r\n\t\t\t\tthis.govChange.emit({\r\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\r\n\t\t\t\t\tvalue: this.selectedOptionsState,\r\n\t\t\t\t})\r\n\t\t\t\tthis.govRemove.emit({\r\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\r\n\t\t\t\t\tvalue: this.selectedOptionsState,\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\tconst option = this.getOptionElement(removeOption)\r\n\t\t\tif (option) {\r\n\t\t\t\toption.selected = false\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tthis.f.passAttrToLabel('required', String(this.required))\r\n\r\n\t\ttick(() => {\r\n\t\t\tthis.selectRef.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\r\n\t\t\t\tif (option.selected) {\r\n\t\t\t\t\tthis.selectOption(option.value, false)\r\n\t\t\t\t}\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={FormMultiSelectClass.root} size={this.size}>\r\n\t\t\t\t<div class={FormMultiSelectClass.wrap}>\r\n\t\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\r\n\t\t\t\t\t<gov-form-autocomplete\r\n\t\t\t\t\t\tvalue={this.valueState}\r\n\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\tidentifier={this.identifier || this.selectId}\r\n\t\t\t\t\t\trequired={false}\r\n\t\t\t\t\t\tinvalid={this.invalid}\r\n\t\t\t\t\t\tsuccess={this.success}\r\n\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\tplaceholder={this.placeholder}\r\n\t\t\t\t\t\tmessage-empty={this.messageEmpty}\r\n\t\t\t\t\t\tmessage-loading={this.messageLoading}\r\n\t\t\t\t\t\tref={el => (this.autocompleteRef = el as HTMLGovFormAutocompleteElement)}\r\n\t\t\t\t\t\tminlength={0}\r\n\t\t\t\t\t\taria-owns={this.listId}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{this.success && <gov-icon slot=\"validation-icon\" class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t{this.invalid && <gov-icon slot=\"validation-icon\" class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t<gov-icon slot=\"icon-end\" class=\"arrow-icon\" name=\"chevron-down\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t</gov-form-autocomplete>\r\n\t\t\t\t\t<select\r\n\t\t\t\t\t\thidden\r\n\t\t\t\t\t\tclass={'hidden-select-list'}\r\n\t\t\t\t\t\taria-hidden={toBoolAttr(true)}\r\n\t\t\t\t\t\tmultiple\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\tconst selectedOption = this.selectedValueIndex(option.value);\r\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={selectedOption > -1}\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.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\r\n\t\t\t\t</div>\r\n\t\t\t\t{this.hideSelectedList === false ? (\r\n\t\t\t\t\t<ul role=\"listbox\" id={this.listId} class={FormMultiSelectClass.list}>\r\n\t\t\t\t\t\t{Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {\r\n\t\t\t\t\t\t\tconst option = this.getOption(selected);\r\n\t\t\t\t\t\t\tif (!option) return null\r\n\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t<li class={FormMultiSelectClass.item} role=\"option\">\r\n\t\t\t\t\t\t\t\t\t{option.label ?? option.value}\r\n\t\t\t\t\t\t\t\t\t<gov-button\r\n\t\t\t\t\t\t\t\t\t\taria-label={`Odebrat vybranou položku ${option.label}`}\r\n\t\t\t\t\t\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\r\n\t\t\t\t\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onTagRemove(selected)}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t\t</gov-button>\r\n\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t})}\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t) : null}\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: FormMultiSelectClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tvalue: this.selectedOptionsState,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onBlurHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\te.stopPropagation()\r\n\t\tthis.focused = false\r\n\t\tthis.govBlur.emit({\r\n\t\t\tcomponent: FormMultiSelectClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t\tvalue: this.selectedOptionsState,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onInputHandler(e: CustomEvent<FormAutocompleteEvent>) {\r\n\t\tthis.valueState = e.detail.value\r\n\t\te.stopPropagation()\r\n\t}\r\n\r\n\tprivate onSelectHandler(e: CustomEvent<FormAutocompleteEvent>) {\r\n\t\te.stopPropagation()\r\n\t\tconst value = e.detail.selected\r\n\t\tthis.selectOption(value.value)\r\n\t\tthis.valueState = ''\r\n\t\tthis.autocompleteRef.clearValue().finally()\r\n\t\tthis.autocompleteRef.focus()\r\n\t}\r\n\r\n\tprivate onTagRemove(removeOption: GovFormMultiSelectSelectedItem) {\r\n\t\tthis.removeOption(removeOption)\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 * 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.valueState = value\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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-form-multi-select.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/multiselect/gov-form-multi-select.types.ts"],"names":[],"mappings":"","sourcesContent":["import {GovBaseEvent} from \"../../../types/event.types\"\n\nexport interface GovFormMultiSelectItem {\n\tvalue: string\n\tlabel?: string\n\tdisabled?: boolean\n}\n\nexport type GovFormMultiSelectSelectedItem = number | string;\n\nexport interface FormMultiselectEvent extends GovBaseEvent {\n\tvalue: GovFormMultiSelectSelectedItem[]\n}\n"]}
1
+ {"version":3,"file":"gov-form-multi-select.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/multiselect/gov-form-multi-select.types.ts"],"names":[],"mappings":"","sourcesContent":["import {GovBaseEvent} from \"../../../types/event.types\"\r\n\r\nexport interface GovFormMultiSelectItem {\r\n\tvalue: string\r\n\tlabel?: string\r\n\tdisabled?: boolean\r\n}\r\n\r\nexport type GovFormMultiSelectSelectedItem = number | string;\r\n\r\nexport interface FormMultiselectEvent extends GovBaseEvent {\r\n\tvalue: GovFormMultiSelectSelectedItem[]\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/password-power/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,IAAI,EAAE,yBAAyB;IAC5B,GAAG,EAAE,8BAA8B;IACnC,IAAI,EAAE,+BAA+B;CACxC,CAAA","sourcesContent":["export const FormPasswordPowerClass = {\n\troot: 'gov-form-password-power',\n bar: 'gov-form-password-power__bar',\n text: 'gov-form-password-power__text',\n}\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/password-power/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,IAAI,EAAE,yBAAyB;IAC5B,GAAG,EAAE,8BAA8B;IACnC,IAAI,EAAE,+BAA+B;CACxC,CAAA","sourcesContent":["export const FormPasswordPowerClass = {\r\n\troot: 'gov-form-password-power',\r\n bar: 'gov-form-password-power__bar',\r\n text: 'gov-form-password-power__text',\r\n}\r\n"]}
@@ -2,7 +2,7 @@ import { h, Host } from "@stencil/core";
2
2
  import { FormPasswordPowerClass } from "./constants";
3
3
  export class GovFormPasswordPower {
4
4
  render() {
5
- return (h(Host, { key: '5345be77d281075d14e4d846cc28b4ee80238d44', class: FormPasswordPowerClass.root }, h("span", { key: '4d54a301ac65d9432e524906eb8d0626fcc6be63', class: FormPasswordPowerClass.bar }, h("span", { key: '0590bdcda2ca777daa02b4ed078490120c0d76b9' }), h("span", { key: 'd76531fc51948809e1c7577c06661fd320ccb68c' }), h("span", { key: '48a13aa684e06289961bf7aaeb778c9340242e55' })), h("span", { key: '683dab64032d38a9d94121c154085a5e4cb0f6f1', class: FormPasswordPowerClass.text }, h("slot", { key: 'd55a6fdbd4bfb5504457d10c7e6ce194d0ff36c5' }))));
5
+ return (h(Host, { key: '95bbc5fb2e55470ec4cd18b0b1ecece89a4df502', class: FormPasswordPowerClass.root }, h("span", { key: '513c89318f7f4ded2e91c420dba95fa7852942db', class: FormPasswordPowerClass.bar }, h("span", { key: '524f84e45276cb043999d41560b62320ba701343' }), h("span", { key: '4d2a5ff935ca8d293bde0ab11d5f5e2fba0aacc4' }), h("span", { key: '270276edf333b84e7c06c741c9cfc84eeadef2c4' })), h("span", { key: '6b092b79e2e8934b1eba3c448e56c4aea6eab279', class: FormPasswordPowerClass.text }, h("slot", { key: '4d24610c752886264b453df0965af10812946490' }))));
6
6
  }
7
7
  static get is() { return "gov-form-password-power"; }
8
8
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"gov-form-password-power.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/password-power/gov-form-password-power.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AACtD,OAAO,EAAC,sBAAsB,EAAC,MAAM,aAAa,CAAA;AAKlD,MAAM,OAAO,oBAAoB;IAMhC,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,sBAAsB,CAAC,IAAI;YACtC,6DAAM,KAAK,EAAE,sBAAsB,CAAC,GAAG;gBACrC,8DAAa;gBACb,8DAAa;gBACb,8DAAa,CACR;YACP,6DAAM,KAAK,EAAE,sBAAsB,CAAC,IAAI;gBACtC,8DAAO,CACF,CACF,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, h, Host, Prop} from '@stencil/core'\nimport {FormPasswordPowerClass} from './constants'\n\n@Component({\n\ttag: 'gov-form-password-power',\n})\nexport class GovFormPasswordPower {\n\t/**\n\t * Password power: 0 - none, 1 - weak, 2 - medium, 3 - strong\n\t */\n\t@Prop({reflect: true}) readonly power: number\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormPasswordPowerClass.root}>\n\t\t\t\t\t<span class={FormPasswordPowerClass.bar}>\n\t\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t\t<span></span>\n\t\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</span>\n\t\t\t\t\t<span class={FormPasswordPowerClass.text}>\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-form-password-power.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/password-power/gov-form-password-power.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AACtD,OAAO,EAAC,sBAAsB,EAAC,MAAM,aAAa,CAAA;AAKlD,MAAM,OAAO,oBAAoB;IAMhC,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,sBAAsB,CAAC,IAAI;YACtC,6DAAM,KAAK,EAAE,sBAAsB,CAAC,GAAG;gBACrC,8DAAa;gBACb,8DAAa;gBACb,8DAAa,CACR;YACP,6DAAM,KAAK,EAAE,sBAAsB,CAAC,IAAI;gBACtC,8DAAO,CACF,CACF,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, h, Host, Prop} from '@stencil/core'\r\nimport {FormPasswordPowerClass} from './constants'\r\n\r\n@Component({\r\n\ttag: 'gov-form-password-power',\r\n})\r\nexport class GovFormPasswordPower {\r\n\t/**\r\n\t * Password power: 0 - none, 1 - weak, 2 - medium, 3 - strong\r\n\t */\r\n\t@Prop({reflect: true}) readonly power: number\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={FormPasswordPowerClass.root}>\r\n\t\t\t\t\t<span class={FormPasswordPowerClass.bar}>\r\n\t\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t\t\t<span></span>\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<span class={FormPasswordPowerClass.text}>\r\n\t\t\t\t\t\t\t<slot/>\r\n\t\t\t\t\t</span>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/radio/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAG3C,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAG3E,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,2BAA2B;IACtC,KAAK,EAAE,uBAAuB;CAC9B,CAAA","sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormRadioSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type FormRadioSizesType = `${ValueOf<typeof FormRadioSizes>}`\n\nexport const FormRadioClass = {\n\troot: 'gov-form-radio',\n\tinput: 'gov-form-radio__input',\n\tindicator: 'gov-form-radio__indicator',\n\tlabel: 'gov-form-radio__label',\n}\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/radio/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAG3C,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAG3E,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,2BAA2B;IACtC,KAAK,EAAE,uBAAuB;CAC9B,CAAA","sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\r\nimport { pick } from '../../../utils/utils'\r\nimport { ValueOf } from '../../../types/interfaces'\r\n\r\nexport const FormRadioSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type FormRadioSizesType = `${ValueOf<typeof FormRadioSizes>}`\r\n\r\nexport const FormRadioClass = {\r\n\troot: 'gov-form-radio',\r\n\tinput: 'gov-form-radio__input',\r\n\tindicator: 'gov-form-radio__indicator',\r\n\tlabel: 'gov-form-radio__label',\r\n}\r\n"]}
@@ -196,7 +196,7 @@ export class GovFormRadio {
196
196
  "optional": false,
197
197
  "docs": {
198
198
  "tags": [],
199
- "text": "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.\nWhen using this property you need to also set \u201Cnovalidate\u201D attribute to your form element to prevent browser from displaying its own validation errors."
199
+ "text": "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\nWhen using this property you need to also set \u201Cnovalidate\u201D attribute to your form element to prevent browser from displaying its own validation errors."
200
200
  },
201
201
  "getter": false,
202
202
  "setter": false,
@@ -216,7 +216,7 @@ export class GovFormRadio {
216
216
  "optional": false,
217
217
  "docs": {
218
218
  "tags": [],
219
- "text": "Makes the radio component disabled.\nThis prevents users from being able to interact with the radio, and conveys its inactive state to assistive technologies."
219
+ "text": "Makes the radio component disabled.\r\nThis prevents users from being able to interact with the radio, and conveys its inactive state to assistive technologies."
220
220
  },
221
221
  "getter": false,
222
222
  "setter": false,
@@ -1 +1 @@
1
- {"version":3,"file":"gov-form-radio.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/radio/gov-form-radio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAC,cAAc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H,KAAK,CAAC,MAAM;QACX,OAAO,IAAI,CAAC,QAAQ,CAAA;IACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormRadioClass, FormRadioSizes, FormRadioSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormRadioEvent} from \"./gov-form-radio.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\n\n@Component({\n\ttag: \"gov-form-radio\",\n})\nexport class GovFormRadio {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly radioId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.radioId = createID(\"GovRadio\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormRadioElement\n\t/**\n\t * Value of radio\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Radio button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the radio component disabled.\n\t * This prevents users from being able to interact with the radio, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the radio.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Radio's size.\n\t */\n\t@Prop() readonly size?: FormRadioSizesType = \"m\"\n\t/**\n\t * Custom radio identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the radio has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormRadioEvent>\n\t/**\n\t * Emitted when the radio loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormRadioEvent>\n\t/**\n\t * Emitted when the radio change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormRadioSizes, newValue, FormRadioClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"radio\")\n\t}\n\n\n\tcomponentWillLoad() {\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.radioId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst wrapRadio = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn <label class={FormRadioClass.label}>{children}</label>\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={FormRadioClass.root} hydrated={this.hydrated} checked={this.checked} size={this.size}\n\t\t\t\t invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapRadio(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormRadioClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.radioId}\n\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<slot name=\"label\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-form-radio.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/radio/gov-form-radio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAA;AACpD,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAC,cAAc,EAAE,cAAc,EAAqB,MAAM,aAAa,CAAA;AAC9E,OAAO,EAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AAGtF,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAA;AACjD,OAAO,QAAQ,MAAM,2BAA2B,CAAA;AAEhD,OAAO,EAAC,iBAAiB,EAAa,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAC,cAAc,EAAC,MAAM,2CAA2C,CAAC;AAKzE,MAAM,OAAO,YAAY;IASxB;QAFQ,aAAQ,GAAG,KAAK,CAAA;QAcxB;;WAEG;QACqC,YAAO,GAAY,KAAK,CAAA;QAChE;;WAEG;QACmC,YAAO,GAAG,KAAK,CAAA;QACrD;;;WAGG;QACc,aAAQ,GAAY,KAAK,CAAA;QAC1C;;;WAGG;QAC6B,aAAQ,GAAY,KAAK,CAAA;QAKzD;;WAEG;QACc,SAAI,GAAwB,GAAG,CAAA;QAkCvC,wBAAmB,GAAe,EAAE,CAAA;QAtE5C,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAA;QAEnC,IAAI,CAAC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E,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;IACH,CAAC;IAEO,eAAe,CAAC,CAAQ;QAC/B,IAAI,CAAC,OAAO,GAAI,CAAC,CAAC,MAA2B,CAAC,OAAO,CAAA;QACrD,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,SAAS,EAAE,cAAc,CAAC,IAAI;YAC9B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;IACH,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,MAAM;QACX,OAAO,IAAI,CAAC,QAAQ,CAAA;IACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {createID} from \"../../../utils/string.utils\"\r\nimport {validateProp} from \"../../../helpers/Validate/props\"\r\nimport {FormRadioClass, FormRadioSizes, FormRadioSizesType} from \"./constants\"\r\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\r\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {govForm} from \"../../../helpers/Dom/form\"\r\nimport Fragment from \"../../../helpers/Fragment\"\r\nimport {FormRadioEvent} from \"./gov-form-radio.types\"\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\n\r\n@Component({\r\n\ttag: \"gov-form-radio\",\r\n})\r\nexport class GovFormRadio {\r\n\tprivate readonly h: GovHost\r\n\tprivate f: GovForm\r\n\tprivate inputRef?: HTMLInputElement\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tprivate readonly radioId: string\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.radioId = createID(\"GovRadio\")\r\n\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.f = govForm(this.h)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormRadioElement\r\n\t/**\r\n\t * Value of radio\r\n\t */\r\n\t@Prop() readonly value: string\r\n\t/**\r\n\t * When you can't use the form label.\r\n\t */\r\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\r\n\t/**\r\n\t * Radio button state\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) checked = false\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 * Makes the radio component disabled.\r\n\t * This prevents users from being able to interact with the radio, 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 * Name of the radio.\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Radio's size.\r\n\t */\r\n\t@Prop() readonly size?: FormRadioSizesType = \"m\"\r\n\t/**\r\n\t * Custom radio identifier.\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: 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() readonly invalid: boolean\r\n\t/**\r\n\t * Emitted when the radio has focus.\r\n\t */\r\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormRadioEvent>\r\n\t/**\r\n\t * Emitted when the radio loses focus.\r\n\t */\r\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormRadioEvent>\r\n\t/**\r\n\t * Emitted when the radio change value.\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioEvent>\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(FormRadioSizes, newValue, FormRadioClass.root)\r\n\t}\r\n\r\n\t@Watch(\"disabled\")\r\n\t@Watch(\"invalid\")\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(\"invalid\", toBoolAttr(this.invalid))\r\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\r\n\t\tthis.f.passAttrToControl(\"type\", \"radio\")\r\n\t}\r\n\r\n\r\n\tcomponentWillLoad() {\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\tasync componentDidRender() {\r\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.radioId)\r\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\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\trender() {\r\n\t\tconst wrapRadio = (children) => {\r\n\t\t\tif (this.noLabel) {\r\n\t\t\t\treturn <label class={FormRadioClass.label}>{children}</label>\r\n\t\t\t}\r\n\t\t\treturn children\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t<Host class={FormRadioClass.root} hydrated={this.hydrated} checked={this.checked} size={this.size}\r\n\t\t\t\t invalid={toBoolAttrIfDefined(this.invalid)}>\r\n\t\t\t\t{wrapRadio(\r\n\t\t\t\t\t<Fragment>\r\n\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\tclass={FormRadioClass.input}\r\n\t\t\t\t\t\t\tid={this.identifier || this.radioId}\r\n\t\t\t\t\t\t\ttype=\"radio\"\r\n\t\t\t\t\t\t\tvalue={this.value}\r\n\t\t\t\t\t\t\tname={this.name}\r\n\t\t\t\t\t\t\tchecked={this.checked}\r\n\t\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\r\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\r\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\r\n\t\t\t\t\t\t\trequired={this.required}\r\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\t\t\taria-checked={this.checked}\r\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\r\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t<slot name=\"label\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t</Fragment>,\r\n\t\t\t\t)}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onClickHandler(e: PointerEvent) {\r\n\t\te.stopPropagation()\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: FormRadioClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\tchecked: this.checked,\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.govBlur.emit({\r\n\t\t\tcomponent: FormRadioClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\tchecked: this.checked,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onChangeHandler(e: Event) {\r\n\t\tthis.checked = (e.target as HTMLInputElement).checked\r\n\t\te.stopPropagation()\r\n\t\tthis.govChange.emit({\r\n\t\t\tcomponent: FormRadioClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\tchecked: this.checked,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the reference of the native 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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"gov-form-radio.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/radio/gov-form-radio.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../../types/event.types\"\n\nexport interface FormRadioEvent extends GovBaseEvent {\n\tchecked: boolean,\n\tvalue: string\n}\n"]}
1
+ {"version":3,"file":"gov-form-radio.types.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/radio/gov-form-radio.types.ts"],"names":[],"mappings":"","sourcesContent":["import { GovBaseEvent } from \"../../../types/event.types\"\r\n\r\nexport interface FormRadioEvent extends GovBaseEvent {\r\n\tchecked: boolean,\r\n\tvalue: string\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/range/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAC,MAAM,+BAA+B,CAAC;AAGpD,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAG7D,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,uBAAuB;CAC9B,CAAA","sourcesContent":["import {pick} from \"../../../utils/utils\";\nimport {Sizes} from \"../../../core/constants/sizes\";\nimport {ValueOf} from \"../../../types/interfaces\";\n\nexport const FormRangeSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type FormRangeSizesType = `${ValueOf<typeof FormRangeSizes>}`\n\nexport const FormRangeClass = {\n\troot: 'gov-form-range',\n\tfill: 'gov-form-range--fill',\n\tinput: 'gov-form-range--input',\n}\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/range/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAC,KAAK,EAAC,MAAM,+BAA+B,CAAC;AAGpD,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAG7D,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,uBAAuB;CAC9B,CAAA","sourcesContent":["import {pick} from \"../../../utils/utils\";\r\nimport {Sizes} from \"../../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../../types/interfaces\";\r\n\r\nexport const FormRangeSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type FormRangeSizesType = `${ValueOf<typeof FormRangeSizes>}`\r\n\r\nexport const FormRangeClass = {\r\n\troot: 'gov-form-range',\r\n\tfill: 'gov-form-range--fill',\r\n\tinput: 'gov-form-range--input',\r\n}\r\n"]}
@@ -96,9 +96,9 @@ export class GovFormRange {
96
96
  (_a = this.attributeObserver) === null || _a === void 0 ? void 0 : _a.stopObserving();
97
97
  }
98
98
  render() {
99
- return (h(Host, { key: '263e214c6c36967aaa1d8ec4f33d23d0eec5c92d', class: FormRangeClass.root, size: this.size }, this.h.hasSlot("prefix") && h("slot", { key: '43e08e8d199572845578b1e95c7c012908555bc8', name: "prefix" }), h("span", { key: '89d4176b4f234a4cf83f15a0676710e530ee8d96', class: "element" }, h("input", Object.assign({ key: '97de040cc35b22aa0c07bfd9654062803cc75c8b', type: "range", ref: el => (this.inputRef = el), onInput: this.onInputHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), id: this.identifier || this.inputId, name: this.name, min: this.min, max: this.max, step: this.step, list: this.listIdentifier, value: this.value, required: this.required, disabled: this.disabled }, this.inheritedAttributes, { "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) })), h("div", { key: '601626b0b79a7a62022cc61071961bd0b5b9ebe2', class: FormRangeClass.fill, ref: el => (this.fillRef = el) }), this.tooltip ?
99
+ return (h(Host, { key: '52936cc832e35b7f79520c2f89b2a119e769b994', class: FormRangeClass.root, size: this.size }, this.h.hasSlot("prefix") && h("slot", { key: '1f5d3e1d537be5f431cbf4ba366627d82c2daa01', name: "prefix" }), h("span", { key: 'cbabb9ff252fbabdd8b2f813de71b31c1a1444e6', class: "element" }, h("input", Object.assign({ key: '02dd3f62cb518c965c0f5529ae3b213a9c6fd649', type: "range", ref: el => (this.inputRef = el), onInput: this.onInputHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), id: this.identifier || this.inputId, name: this.name, min: this.min, max: this.max, step: this.step, list: this.listIdentifier, value: this.value, required: this.required, disabled: this.disabled }, this.inheritedAttributes, { "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) })), h("div", { key: 'fff23dd770c71878eae67df3f96b514c3f55ea2e', class: FormRangeClass.fill, ref: el => (this.fillRef = el) }), this.tooltip ?
100
100
  h("output", { htmlFor: this.name, ref: el => (this.outputRef = el) }, this.value)
101
- : null, h("slot", { key: 'f814e896acf10712ecfa34a8d6fa7f9b1d575a4e', name: "datalist" })), this.h.hasSlot("sufix") && h("slot", { key: '432a47e6df6cd4c6aea28e3063f06e9debc0dc32', name: "sufix" }), this.input ?
101
+ : null, h("slot", { key: '32a7919602b2527a97bf019ec74744bedd0ef51f', name: "datalist" })), this.h.hasSlot("sufix") && h("slot", { key: 'e9efd215bb9895a6c11666eb694b6c47f8132f12', name: "sufix" }), this.input ?
102
102
  h("gov-form-input", Object.assign({ "on-gov-input": this.onCustomInputHandler.bind(this), class: FormRangeClass.input, size: this.size, value: this.value, disabled: this.disabled }, this.inheritedAttributes))
103
103
  : null));
104
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gov-form-range.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/range/gov-form-range.tsx"],"names":[],"mappings":"A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {FormRangeClass, FormRangeSizes, FormRangeSizesType} from './constants'\nimport {GovHost} from \"../../../helpers/Dom/template.types\";\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\";\nimport {validateProp} from \"../../../helpers/Validate/props\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {GovForm} from \"../../../helpers/Dom/form.types\";\nimport {govForm} from \"../../../helpers/Dom/form\";\nimport {tick} from \"../../../utils/stencil.utils\";\nimport {isNumber} from \"../../../utils/helpers.types\";\nimport {createID} from \"../../../utils/string.utils\";\nimport {FormInputEvent} from \"../input/gov-form-input.types\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n\n@Component({\n\ttag: 'gov-form-range',\n})\nexport class GovFormRange {\n\tprivate inputRef?: HTMLInputElement\n\tprivate outputRef?: HTMLOutputElement\n\tprivate fillRef?: HTMLDivElement\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate readonly inputId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t\tthis.inputId = createID(\"GovInput\")\n\t}\n\n\t@Element() host: HTMLGovFormRangeElement\n\t/**\n\t * Range’s size\n\t */\n\t@Prop() readonly size?: FormRangeSizesType = \"m\"\n\t/**\n\t * Value of range\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Custom range identifier\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Name of the range\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Minimum value that is acceptable\n\t */\n\t@Prop() readonly min?: string | number\n\t/**\n\t * Maximum value that is acceptable\n\t */\n\t@Prop() readonly max?: string | number\n\t/**\n\t * Defines size of each step\n\t */\n\t@Prop() readonly step?: string | number\n\t/**\n\t * Show tooltip with current value\n\t */\n\t@Prop() readonly tooltip?: boolean = false\n\t/**\n\t * Show input with current value\n\t */\n\t@Prop() readonly input?: boolean = false\n\t/**\n\t * Links a <datalist/> element to a <input type=\"range\">, providing value markers as guidance for the user\n\t */\n\t@Prop() readonly listIdentifier?: string\n\t/**\n\t * Set whether the range is required or not\n\t */\n\t@Prop({reflect: true}) readonly required: boolean = false\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application\n\t */\n\t@Prop({reflect: true}) readonly success: boolean\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application\n\t */\n\t@Prop({reflect: true}) readonly invalid: boolean\n\t/**\n\t * Makes the range component disabled\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Emitted when the input has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-input\"}) govInput: EventEmitter<FormInputEvent>\n\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormRangeSizes, newValue, FormRangeClass.root)\n\t}\n\n\t@Watch(\"value\")\n\twatchValue(): void {\n\t\tthis.controlOutputPosition();\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"success\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"success\", toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t}\n\n\tprivate get getThumbWidth() {\n\t\tconst styles = window.getComputedStyle(this.inputRef);\n\t\treturn parseFloat(styles.getPropertyValue('--thumb-size')) || 1;\n\t}\n\n\tprivate controlOutputPosition() {\n\t\tconst valueInt = +this.value;\n\t\tconst min = +this.inputRef.min;\n\t\tconst max = +this.inputRef.max;\n\n\t\tconst thumbWidth = (this.getThumbWidth * 16);\n\t\tconst rangeWidth = this.inputRef.offsetWidth;\n\t\tconst percentage = ((valueInt - min) / (max - min)) * 100;\n\n\t\tlet tooltipOffset = ((percentage / 100) * (rangeWidth - thumbWidth)) + (thumbWidth / 2);\n\n\t\tif (this.outputRef) {\n\t\t\tthis.outputRef.textContent = this.value;\n\t\t\tconst outputWidth = this.outputRef.offsetWidth / 2;\n\t\t\tthis.outputRef.style.left = `${tooltipOffset - outputWidth}px`;\n\t\t}\n\t\tif (this.fillRef) {\n\t\t\tthis.fillRef.style.width = `${tooltipOffset}px`\n\t\t}\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\ttick(this.controlOutputPosition.bind(this))\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormRangeClass.root} size={this.size}>\n\t\t\t\t{this.h.hasSlot(\"prefix\") && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<input type=\"range\"\n\t\t\t\t\t\t ref={el => (this.inputRef = el)}\n\t\t\t\t\t\t onInput={this.onInputHandler.bind(this)}\n\t\t\t\t\t\t onFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t onBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t id={this.identifier || this.inputId}\n\t\t\t\t\t\t name={this.name}\n\t\t\t\t\t\t min={this.min}\n\t\t\t\t\t\t max={this.max}\n\t\t\t\t\t\t step={this.step}\n\t\t\t\t\t\t list={this.listIdentifier}\n\t\t\t\t\t\t value={this.value}\n\t\t\t\t\t\t required={this.required}\n\t\t\t\t\t\t disabled={this.disabled}\n\t\t\t\t\t\t {...this.inheritedAttributes}\n\t\t\t\t\t\t aria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t aria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t aria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t\t<div class={FormRangeClass.fill} ref={el => (this.fillRef = el)}></div>\n\t\t\t\t\t{this.tooltip ?\n\t\t\t\t\t\t<output htmlFor={this.name} ref={el => (this.outputRef = el)}>\n\t\t\t\t\t\t\t{this.value}\n\t\t\t\t\t\t</output>\n\t\t\t\t\t\t: null}\n\t\t\t\t\t<slot name=\"datalist\"></slot>\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot(\"sufix\") && <slot name=\"sufix\"></slot>}\n\t\t\t\t{this.input ?\n\t\t\t\t\t<gov-form-input\n\t\t\t\t\t\ton-gov-input={this.onCustomInputHandler.bind(this)}\n\t\t\t\t\t\tclass={FormRangeClass.input}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t{...this.inheritedAttributes}>\n\t\t\t\t\t</gov-form-input>\n\t\t\t\t\t: null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCustomInputHandler(e: InputEvent) {\n\t\tconst value = (e.target as HTMLInputElement).value;\n\t\tif (this.step && isNumber(+this.step)) {\n\t\t\tconst numValue = +value;\n\t\t\tconst numMin = +this.min;\n\t\t\tconst numMax = +this.max;\n\t\t\tconst numStep = +this.step;\n\n\t\t\tif (isNaN(numValue)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (numValue < numMin || numValue > numMax) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tconst diff = numValue - numMin;\n\t\t\tif (diff % numStep !== 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tthis.value = value;\n\t\t\tthis.govInput.emit({\n\t\t\t\tcomponent: FormRangeClass.root,\n\t\t\t\tvalue: this.value,\n\t\t\t\toriginalEvent: e,\n\t\t\t})\n\t\t}\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLInputElement).value;\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\tcomponent: FormRangeClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormRangeClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormRangeClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.inputRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.value = value\n\t}\n\n\t/**\n\t * Clears input value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = \"\"\n\t\tthis.inputRef.value = \"\"\n\t}\n\n\t/**\n\t * Returns an instance of the native html input element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-form-range.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/range/gov-form-range.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAC,cAAc,EAAE,cAAc,EAAqB,MAAM,aAAa,CAAA;AAE9E,OAAO,EAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAC,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAC,iBAAiB,EAAa,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAC,IAAI,EAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAC,QAAQ,EAAC,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAC,cAAc,EAAC,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAC;AAMnF,MAAM,OAAO,YAAY;IASxB;QAOA;;WAEG;QACc,SAAI,GAAwB,GAAG,CAAA;QAyBhD;;WAEG;QACc,YAAO,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\r\nimport {FormRangeClass, FormRangeSizes, FormRangeSizesType} from './constants'\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\";\r\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\";\r\nimport {validateProp} from \"../../../helpers/Validate/props\";\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {GovForm} from \"../../../helpers/Dom/form.types\";\r\nimport {govForm} from \"../../../helpers/Dom/form\";\r\nimport {tick} from \"../../../utils/stencil.utils\";\r\nimport {isNumber} from \"../../../utils/helpers.types\";\r\nimport {createID} from \"../../../utils/string.utils\";\r\nimport {FormInputEvent} from \"../input/gov-form-input.types\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\n\r\n\r\n@Component({\r\n\ttag: 'gov-form-range',\r\n})\r\nexport class GovFormRange {\r\n\tprivate inputRef?: HTMLInputElement\r\n\tprivate outputRef?: HTMLOutputElement\r\n\tprivate fillRef?: HTMLDivElement\r\n\tprivate f: GovForm\r\n\tprivate readonly h: GovHost\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.f = govForm(this.h)\r\n\t\tthis.inputId = createID(\"GovInput\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormRangeElement\r\n\t/**\r\n\t * Range’s size\r\n\t */\r\n\t@Prop() readonly size?: FormRangeSizesType = \"m\"\r\n\t/**\r\n\t * Value of range\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) value: string\r\n\t/**\r\n\t * Custom range identifier\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Name of the range\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Minimum value that is acceptable\r\n\t */\r\n\t@Prop() readonly min?: string | number\r\n\t/**\r\n\t * Maximum value that is acceptable\r\n\t */\r\n\t@Prop() readonly max?: string | number\r\n\t/**\r\n\t * Defines size of each step\r\n\t */\r\n\t@Prop() readonly step?: string | number\r\n\t/**\r\n\t * Show tooltip with current value\r\n\t */\r\n\t@Prop() readonly tooltip?: boolean = false\r\n\t/**\r\n\t * Show input with current value\r\n\t */\r\n\t@Prop() readonly input?: boolean = false\r\n\t/**\r\n\t * Links a <datalist/> element to a <input type=\"range\">, providing value markers as guidance for the user\r\n\t */\r\n\t@Prop() readonly listIdentifier?: string\r\n\t/**\r\n\t * Set whether the range is required or not\r\n\t */\r\n\t@Prop({reflect: true}) 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 * 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 * Makes the range component disabled\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\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\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(FormRangeSizes, newValue, FormRangeClass.root)\r\n\t}\r\n\r\n\t@Watch(\"value\")\r\n\twatchValue(): void {\r\n\t\tthis.controlOutputPosition();\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}\r\n\r\n\tprivate get getThumbWidth() {\r\n\t\tconst styles = window.getComputedStyle(this.inputRef);\r\n\t\treturn parseFloat(styles.getPropertyValue('--thumb-size')) || 1;\r\n\t}\r\n\r\n\tprivate controlOutputPosition() {\r\n\t\tconst valueInt = +this.value;\r\n\t\tconst min = +this.inputRef.min;\r\n\t\tconst max = +this.inputRef.max;\r\n\r\n\t\tconst thumbWidth = (this.getThumbWidth * 16);\r\n\t\tconst rangeWidth = this.inputRef.offsetWidth;\r\n\t\tconst percentage = ((valueInt - min) / (max - min)) * 100;\r\n\r\n\t\tlet tooltipOffset = ((percentage / 100) * (rangeWidth - thumbWidth)) + (thumbWidth / 2);\r\n\r\n\t\tif (this.outputRef) {\r\n\t\t\tthis.outputRef.textContent = this.value;\r\n\t\t\tconst outputWidth = this.outputRef.offsetWidth / 2;\r\n\t\t\tthis.outputRef.style.left = `${tooltipOffset - outputWidth}px`;\r\n\t\t}\r\n\t\tif (this.fillRef) {\r\n\t\t\tthis.fillRef.style.width = `${tooltipOffset}px`\r\n\t\t}\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\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\ttick(this.controlOutputPosition.bind(this))\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\treturn (\r\n\t\t\t<Host class={FormRangeClass.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<input type=\"range\"\r\n\t\t\t\t\t\t ref={el => (this.inputRef = el)}\r\n\t\t\t\t\t\t onInput={this.onInputHandler.bind(this)}\r\n\t\t\t\t\t\t onFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\t\t onBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\t\t id={this.identifier || this.inputId}\r\n\t\t\t\t\t\t name={this.name}\r\n\t\t\t\t\t\t min={this.min}\r\n\t\t\t\t\t\t max={this.max}\r\n\t\t\t\t\t\t step={this.step}\r\n\t\t\t\t\t\t list={this.listIdentifier}\r\n\t\t\t\t\t\t value={this.value}\r\n\t\t\t\t\t\t required={this.required}\r\n\t\t\t\t\t\t disabled={this.disabled}\r\n\t\t\t\t\t\t {...this.inheritedAttributes}\r\n\t\t\t\t\t\t aria-required={toBoolAttrIfDefined(this.required)}\r\n\t\t\t\t\t\t aria-invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t\t\t aria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class={FormRangeClass.fill} ref={el => (this.fillRef = el)}></div>\r\n\t\t\t\t\t{this.tooltip ?\r\n\t\t\t\t\t\t<output htmlFor={this.name} ref={el => (this.outputRef = el)}>\r\n\t\t\t\t\t\t\t{this.value}\r\n\t\t\t\t\t\t</output>\r\n\t\t\t\t\t\t: null}\r\n\t\t\t\t\t<slot name=\"datalist\"></slot>\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\t{this.input ?\r\n\t\t\t\t\t<gov-form-input\r\n\t\t\t\t\t\ton-gov-input={this.onCustomInputHandler.bind(this)}\r\n\t\t\t\t\t\tclass={FormRangeClass.input}\r\n\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\tvalue={this.value}\r\n\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\t{...this.inheritedAttributes}>\r\n\t\t\t\t\t</gov-form-input>\r\n\t\t\t\t\t: null}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tonCustomInputHandler(e: InputEvent) {\r\n\t\tconst value = (e.target as HTMLInputElement).value;\r\n\t\tif (this.step && isNumber(+this.step)) {\r\n\t\t\tconst numValue = +value;\r\n\t\t\tconst numMin = +this.min;\r\n\t\t\tconst numMax = +this.max;\r\n\t\t\tconst numStep = +this.step;\r\n\r\n\t\t\tif (isNaN(numValue)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (numValue < numMin || numValue > numMax) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tconst diff = numValue - numMin;\r\n\t\t\tif (diff % numStep !== 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.value = value;\r\n\t\t\tthis.govInput.emit({\r\n\t\t\t\tcomponent: FormRangeClass.root,\r\n\t\t\t\tvalue: this.value,\r\n\t\t\t\toriginalEvent: e,\r\n\t\t\t})\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: FormRangeClass.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 onFocusHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govFocus.emit({\r\n\t\t\tcomponent: FormRangeClass.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.govBlur.emit({\r\n\t\t\tcomponent: FormRangeClass.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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/search/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAC,KAAK,EAAC,MAAM,+BAA+B,CAAC;AAEpD,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAG9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAGpE,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,IAAI,EAAE,iBAAiB;CACvB,CAAA","sourcesContent":["import { Colors } from '../../../core/constants/colors'\nimport { ValueOf } from '../../../types/interfaces'\nimport { pick } from '../../../utils/utils'\nimport {Sizes} from \"../../../core/constants/sizes\";\n\nexport const FormSearchSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type FormSearchSizesType = `${ValueOf<typeof FormSearchSizes>}`\n\nexport const FormSearchColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\nexport type FormSearchColorType = `${ValueOf<typeof FormSearchColors>}`\n\nexport const FormSearchClass = {\n\troot: 'gov-form-search',\n}\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/search/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AAEvD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,EAAC,KAAK,EAAC,MAAM,+BAA+B,CAAC;AAEpD,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAG9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAGpE,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,IAAI,EAAE,iBAAiB;CACvB,CAAA","sourcesContent":["import { Colors } from '../../../core/constants/colors'\r\nimport { ValueOf } from '../../../types/interfaces'\r\nimport { pick } from '../../../utils/utils'\r\nimport {Sizes} from \"../../../core/constants/sizes\";\r\n\r\nexport const FormSearchSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type FormSearchSizesType = `${ValueOf<typeof FormSearchSizes>}`\r\n\r\nexport const FormSearchColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\r\nexport type FormSearchColorType = `${ValueOf<typeof FormSearchColors>}`\r\n\r\nexport const FormSearchClass = {\r\n\troot: 'gov-form-search',\r\n}\r\n"]}
@@ -12,7 +12,7 @@ export class GovFormSearch {
12
12
  this.color = 'neutral';
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '0eaf52ea1460cab6cee82e453a92d24efc9457e1', class: FormSearchClass.root, color: this.color, size: this.size }, h("slot", { key: '79481e7e6ad6fd2b241be41964f513354e42e40c', name: "input" }), h("slot", { key: 'beeebbf1f8eb023aa165bbf0a1b2d84f393dec98', name: "button-erase" }), h("slot", { key: '685e0f84c5ebef1a32b26c4c25f8c9b5d20b254b', name: "button" })));
15
+ return (h(Host, { key: '71109e2502931ac3b92b4e2e6336c3d08d666fae', class: FormSearchClass.root, color: this.color, size: this.size }, h("slot", { key: '615ea1dab3ebee905d7bc9f1c7b4f0da4e89eee5', name: "input" }), h("slot", { key: 'fa9abfbaee3dedecb4b217cc8681b16557d978bc', name: "button-erase" }), h("slot", { key: '8c2cb29b38de5634b220db526452b9a07873fc29', name: "button" })));
16
16
  }
17
17
  static get is() { return "gov-form-search"; }
18
18
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"gov-form-search.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/search/gov-form-search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAC,eAAe,EAA2C,MAAM,aAAa,CAAA;AAKrF,MAAM,OAAO,aAAa;IAH1B;QAKC;;WAEG;QACc,SAAI,GAAyB,GAAG,CAAA;QACjD;;WAEG;QAC6B,UAAK,GAAwB,SAAS,CAAA;KAWtE;IATA,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,eAAe,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;YACpE,6DAAM,IAAI,EAAC,OAAO,GAAE;YACpB,6DAAM,IAAI,EAAC,cAAc,GAAE;YAC3B,6DAAM,IAAI,EAAC,QAAQ,GAAE,CACf,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, h, Host, Prop} from '@stencil/core'\nimport {FormSearchClass, FormSearchSizesType, FormSearchColorType} from './constants'\n\n@Component({\n\ttag: 'gov-form-search',\n})\nexport class GovFormSearch {\n\t@Element() host: HTMLGovFormSearchElement\n\t/**\n\t * Search’s size.\n\t */\n\t@Prop() readonly size?: FormSearchSizesType = \"m\"\n\t/**\n\t * Style variation of the form input.\n\t */\n\t@Prop({reflect: true}) readonly color: FormSearchColorType = 'neutral'\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormSearchClass.root} color={this.color} size={this.size}>\n\t\t\t\t<slot name=\"input\"/>\n\t\t\t\t<slot name=\"button-erase\"/>\n\t\t\t\t<slot name=\"button\"/>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-form-search.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/search/gov-form-search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAC,eAAe,EAA2C,MAAM,aAAa,CAAA;AAKrF,MAAM,OAAO,aAAa;IAH1B;QAKC;;WAEG;QACc,SAAI,GAAyB,GAAG,CAAA;QACjD;;WAEG;QAC6B,UAAK,GAAwB,SAAS,CAAA;KAWtE;IATA,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,eAAe,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;YACpE,6DAAM,IAAI,EAAC,OAAO,GAAE;YACpB,6DAAM,IAAI,EAAC,cAAc,GAAE;YAC3B,6DAAM,IAAI,EAAC,QAAQ,GAAE,CACf,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, h, Host, Prop} from '@stencil/core'\r\nimport {FormSearchClass, FormSearchSizesType, FormSearchColorType} from './constants'\r\n\r\n@Component({\r\n\ttag: 'gov-form-search',\r\n})\r\nexport class GovFormSearch {\r\n\t@Element() host: HTMLGovFormSearchElement\r\n\t/**\r\n\t * Search’s size.\r\n\t */\r\n\t@Prop() readonly size?: FormSearchSizesType = \"m\"\r\n\t/**\r\n\t * Style variation of the form input.\r\n\t */\r\n\t@Prop({reflect: true}) readonly color: FormSearchColorType = 'neutral'\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={FormSearchClass.root} color={this.color} size={this.size}>\r\n\t\t\t\t<slot name=\"input\"/>\r\n\t\t\t\t<slot name=\"button-erase\"/>\r\n\t\t\t\t<slot name=\"button\"/>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/select/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAG3C,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAG5E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,uBAAuB;CAC7B,CAAA","sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\nimport { pick } from '../../../utils/utils'\nimport { ValueOf } from '../../../types/interfaces'\n\nexport const FormSelectSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type FormSelectSizesType = `${ValueOf<typeof FormSelectSizes>}`\n\nexport const FormSelectClass = {\n\troot: 'gov-form-select',\n\ticon: 'gov-form-select__icon',\n}\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../src/components/gov-form/select/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAG3C,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAA;AAG5E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,uBAAuB;CAC7B,CAAA","sourcesContent":["import { Sizes } from '../../../core/constants/sizes'\r\nimport { pick } from '../../../utils/utils'\r\nimport { ValueOf } from '../../../types/interfaces'\r\n\r\nexport const FormSelectSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type FormSelectSizesType = `${ValueOf<typeof FormSelectSizes>}`\r\n\r\nexport const FormSelectClass = {\r\n\troot: 'gov-form-select',\r\n\ticon: 'gov-form-select__icon',\r\n}\r\n"]}
@@ -86,10 +86,10 @@ export class GovFormSelect {
86
86
  });
87
87
  }
88
88
  render() {
89
- return (h(Host, { key: '209d5865fd6928823e03ea63773a8c5270e9ad32', class: FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && h("slot", { key: '1fbe248e069d10cefc405a341dc4d601f3bc1afd', name: "prefix" }), h("span", { key: '1f250f81b6921a50099fa460493845cacff104de', class: "element" }, h("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: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), h("slot", { key: 'a55508d3024ecccf9f78ea4046524b1c54f1f43f' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
89
+ return (h(Host, { key: '784373d222b67be86b39d3ed61bfdf81d9648a36', class: FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && h("slot", { key: '23b99e07df8d0d135c93bdd8c14556de4b4a5433', name: "prefix" }), h("span", { key: 'f4c931f58a53db5cc2f8379b2dc6b688bbe84bc8', class: "element" }, h("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: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), h("slot", { key: '223133e692d0c7a4c2c9c4706aee2d447f37c37b' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
90
90
  var _a;
91
91
  return (h("option", { value: option.value, selected: option.value === this.value, disabled: option === null || option === void 0 ? void 0 : option.disabled }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value));
92
- })), this.success && h("gov-icon", { key: '8aed7cb4cc3d3dd7ac3b80812ded81674f1af748', class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && h("gov-icon", { key: '95442149ab9cba9e138684577802e32a3adb5836', class: "validation-icon", name: "exclamation-lg", type: "components" }), h("gov-icon", { key: '917481bb56daf82689db8efddc1cf9fd724e47d5', class: "arrow-icon", name: "chevron-down", type: "components" })), this.h.hasSlot('sufix') && h("slot", { key: 'e58a7cb17bfed2046b31f1a2d70832194020963f', name: "sufix" })));
92
+ })), this.success && h("gov-icon", { key: '97ceacc7ec59f13a9d994dc6df3b58201b5f68ae', class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && h("gov-icon", { key: 'bd9f33ef6da150e5a3f4a5711d41282fe35df49f', class: "validation-icon", name: "exclamation-lg", type: "components" }), h("gov-icon", { key: 'c5ca08441cb8f425a4e310e402d6f208c8a75e15', class: "arrow-icon", name: "chevron-down", type: "components" })), this.h.hasSlot('sufix') && h("slot", { key: 'af16a1bd05ed5d665888cea9a811eee2c0fe5749', name: "sufix" })));
93
93
  }
94
94
  onFocusHandler(e) {
95
95
  this.focused = true;
@@ -252,7 +252,7 @@ export class GovFormSelect {
252
252
  "optional": false,
253
253
  "docs": {
254
254
  "tags": [],
255
- "text": "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.\nWhen using this property you need to also set \u201Cnovalidate\u201D attribute to your form element to prevent browser from displaying its own validation errors."
255
+ "text": "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\nWhen using this property you need to also set \u201Cnovalidate\u201D attribute to your form element to prevent browser from displaying its own validation errors."
256
256
  },
257
257
  "getter": false,
258
258
  "setter": false,
@@ -291,7 +291,7 @@ export class GovFormSelect {
291
291
  "optional": false,
292
292
  "docs": {
293
293
  "tags": [],
294
- "text": "Makes the select component disabled.\nThis prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies."
294
+ "text": "Makes the select component disabled.\r\nThis prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies."
295
295
  },
296
296
  "getter": false,
297
297
  "setter": false,