@gov-design-system-ce/components 4.2.5 → 4.2.7

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 (1415) hide show
  1. package/dist/cjs/Fragment-D4qSkFah.js +8 -0
  2. package/dist/cjs/Fragment-D4qSkFah.js.map +1 -0
  3. package/dist/cjs/accessibility-BQJmIVWV.js +13 -0
  4. package/dist/cjs/accessibility-BQJmIVWV.js.map +1 -0
  5. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  6. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  7. package/dist/cjs/array.utils-DOh1gCQS.js +45 -0
  8. package/dist/cjs/array.utils-DOh1gCQS.js.map +1 -0
  9. package/dist/cjs/attribute-CH1-zDDl.js +103 -0
  10. package/dist/cjs/attribute-CH1-zDDl.js.map +1 -0
  11. package/dist/cjs/colors-DgrrxjsX.js +19 -0
  12. package/dist/cjs/colors-DgrrxjsX.js.map +1 -0
  13. package/dist/cjs/constants-357ehBFU.js +15 -0
  14. package/dist/cjs/constants-357ehBFU.js.map +1 -0
  15. package/dist/cjs/constants-CFAhiwqu.js +19 -0
  16. package/dist/cjs/constants-CFAhiwqu.js.map +1 -0
  17. package/dist/cjs/constants-CS58GJeI.js +29 -0
  18. package/dist/cjs/constants-CS58GJeI.js.map +1 -0
  19. package/dist/cjs/constants-CYm8AK_D.js +27 -0
  20. package/dist/cjs/constants-CYm8AK_D.js.map +1 -0
  21. package/dist/cjs/constants-CbBhWRUQ.js +26 -0
  22. package/dist/cjs/constants-CbBhWRUQ.js.map +1 -0
  23. package/dist/cjs/constants-ChDSk4SZ.js +16 -0
  24. package/dist/cjs/constants-ChDSk4SZ.js.map +1 -0
  25. package/dist/cjs/constants-D6LZ31rS.js +28 -0
  26. package/dist/cjs/constants-D6LZ31rS.js.map +1 -0
  27. package/dist/cjs/constants-DcKnOyW4.js +18 -0
  28. package/dist/cjs/constants-DcKnOyW4.js.map +1 -0
  29. package/dist/cjs/constants-Dmmp9FHy.js +37 -0
  30. package/dist/cjs/constants-Dmmp9FHy.js.map +1 -0
  31. package/dist/cjs/constants-WvkMgj1j.js +27 -0
  32. package/dist/cjs/constants-WvkMgj1j.js.map +1 -0
  33. package/dist/cjs/constants-ymB2dvwV.js +28 -0
  34. package/dist/cjs/constants-ymB2dvwV.js.map +1 -0
  35. package/dist/cjs/constants-z2ZSS2je.js +37 -0
  36. package/dist/cjs/constants-z2ZSS2je.js.map +1 -0
  37. package/dist/cjs/core.cjs.js +8 -7
  38. package/dist/cjs/core.cjs.js.map +1 -1
  39. package/dist/cjs/form-GgXzZZ-E.js +156 -0
  40. package/dist/cjs/form-GgXzZZ-E.js.map +1 -0
  41. package/dist/cjs/gov-accordion-item.cjs.entry.js +18 -16
  42. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  43. package/dist/cjs/gov-accordion-item.entry.cjs.js.map +1 -0
  44. package/dist/cjs/gov-accordion.cjs.entry.js +15 -10
  45. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  46. package/dist/cjs/gov-accordion.entry.cjs.js.map +1 -0
  47. package/dist/cjs/gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js.map +1 -0
  48. package/dist/cjs/gov-attachments_3.cjs.entry.js +22 -22
  49. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  50. package/dist/cjs/gov-backdrop.cjs.entry.js +16 -13
  51. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  52. package/dist/cjs/gov-backdrop.entry.cjs.js.map +1 -0
  53. package/dist/cjs/gov-banner.cjs.entry.js +19 -8
  54. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
  55. package/dist/cjs/gov-banner.entry.cjs.js.map +1 -0
  56. package/dist/cjs/gov-blockquote.cjs.entry.js +6 -5
  57. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -1
  58. package/dist/cjs/gov-blockquote.entry.cjs.js.map +1 -0
  59. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +19 -13
  60. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  61. package/dist/cjs/gov-breadcrumbs.entry.cjs.js.map +1 -0
  62. package/dist/cjs/gov-button.cjs.entry.js +46 -32
  63. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  64. package/dist/cjs/gov-button.entry.cjs.js.map +1 -0
  65. package/dist/cjs/gov-card.cjs.entry.js +23 -15
  66. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  67. package/dist/cjs/gov-card.entry.cjs.js.map +1 -0
  68. package/dist/cjs/gov-chip.cjs.entry.js +30 -22
  69. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  70. package/dist/cjs/gov-chip.entry.cjs.js.map +1 -0
  71. package/dist/cjs/gov-container.cjs.entry.js +3 -4
  72. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  73. package/dist/cjs/gov-container.entry.cjs.js.map +1 -0
  74. package/dist/cjs/gov-control-group.cjs.entry.js +16 -8
  75. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  76. package/dist/cjs/gov-control-group.entry.cjs.js.map +1 -0
  77. package/dist/cjs/gov-cookiebar.cjs.entry.js +3 -4
  78. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
  79. package/dist/cjs/gov-cookiebar.entry.cjs.js.map +1 -0
  80. package/dist/cjs/gov-dialog.cjs.entry.js +77 -15
  81. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  82. package/dist/cjs/gov-dialog.entry.cjs.js.map +1 -0
  83. package/dist/cjs/gov-dropdown.cjs.entry.js +15 -11
  84. package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
  85. package/dist/cjs/gov-dropdown.entry.cjs.js.map +1 -0
  86. package/dist/cjs/gov-empty.cjs.entry.js +25 -10
  87. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  88. package/dist/cjs/gov-empty.entry.cjs.js.map +1 -0
  89. package/dist/cjs/gov-error-code.cjs.entry.js +3 -4
  90. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
  91. package/dist/cjs/gov-error-code.entry.cjs.js.map +1 -0
  92. package/dist/cjs/gov-flex.gov-icon.gov-theme-switch.entry.cjs.js.map +1 -0
  93. package/dist/cjs/gov-flex_3.cjs.entry.js +49 -35
  94. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  95. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +43 -27
  96. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  97. package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +1 -0
  98. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +27 -20
  99. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  100. package/dist/cjs/gov-form-checkbox-group.entry.cjs.js.map +1 -0
  101. package/dist/cjs/gov-form-checkbox.cjs.entry.js +38 -24
  102. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  103. package/dist/cjs/gov-form-checkbox.entry.cjs.js.map +1 -0
  104. package/dist/cjs/gov-form-control.cjs.entry.js +32 -15
  105. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  106. package/dist/cjs/gov-form-control.entry.cjs.js.map +1 -0
  107. package/dist/cjs/gov-form-file.cjs.entry.js +60 -24
  108. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  109. package/dist/cjs/gov-form-file.entry.cjs.js.map +1 -0
  110. package/dist/cjs/gov-form-group.cjs.entry.js +15 -10
  111. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  112. package/dist/cjs/gov-form-group.entry.cjs.js.map +1 -0
  113. package/dist/cjs/gov-form-input.gov-skeleton.entry.cjs.js.map +1 -0
  114. package/dist/cjs/gov-form-input_2.cjs.entry.js +67 -64
  115. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  116. package/dist/cjs/gov-form-label.cjs.entry.js +17 -9
  117. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  118. package/dist/cjs/gov-form-label.entry.cjs.js.map +1 -0
  119. package/dist/cjs/gov-form-multi-select.cjs.entry.js +46 -36
  120. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  121. package/dist/cjs/gov-form-multi-select.entry.cjs.js.map +1 -0
  122. package/dist/cjs/gov-form-password-power.cjs.entry.js +3 -5
  123. package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
  124. package/dist/cjs/gov-form-password-power.entry.cjs.js.map +1 -0
  125. package/dist/cjs/gov-form-radio-group.cjs.entry.js +25 -18
  126. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  127. package/dist/cjs/gov-form-radio-group.entry.cjs.js.map +1 -0
  128. package/dist/cjs/gov-form-radio.cjs.entry.js +36 -24
  129. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  130. package/dist/cjs/gov-form-radio.entry.cjs.js.map +1 -0
  131. package/dist/cjs/gov-form-range.cjs.entry.js +37 -32
  132. package/dist/cjs/gov-form-range.cjs.entry.js.map +1 -1
  133. package/dist/cjs/gov-form-range.entry.cjs.js.map +1 -0
  134. package/dist/cjs/gov-form-search.cjs.entry.js +12 -7
  135. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  136. package/dist/cjs/gov-form-search.entry.cjs.js.map +1 -0
  137. package/dist/cjs/gov-form-select.cjs.entry.js +34 -31
  138. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  139. package/dist/cjs/gov-form-select.entry.cjs.js.map +1 -0
  140. package/dist/cjs/gov-form-switch.cjs.entry.js +38 -26
  141. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  142. package/dist/cjs/gov-form-switch.entry.cjs.js.map +1 -0
  143. package/dist/cjs/gov-grid-item.cjs.entry.js +12 -15
  144. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  145. package/dist/cjs/gov-grid-item.entry.cjs.js.map +1 -0
  146. package/dist/cjs/gov-grid.cjs.entry.js +6 -11
  147. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  148. package/dist/cjs/gov-grid.entry.cjs.js.map +1 -0
  149. package/dist/cjs/gov-infobar.cjs.entry.js +31 -14
  150. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  151. package/dist/cjs/gov-infobar.entry.cjs.js.map +1 -0
  152. package/dist/cjs/gov-layout-column.cjs.entry.js +5 -6
  153. package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -1
  154. package/dist/cjs/gov-layout-column.entry.cjs.js.map +1 -0
  155. package/dist/cjs/gov-layout.cjs.entry.js +11 -7
  156. package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
  157. package/dist/cjs/gov-layout.entry.cjs.js.map +1 -0
  158. package/dist/cjs/gov-lifecycle.cjs.entry.js +4 -5
  159. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -1
  160. package/dist/cjs/gov-lifecycle.entry.cjs.js.map +1 -0
  161. package/dist/cjs/gov-link.cjs.entry.js +19 -13
  162. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  163. package/dist/cjs/gov-link.entry.cjs.js.map +1 -0
  164. package/dist/cjs/gov-loading.cjs.entry.js +11 -9
  165. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  166. package/dist/cjs/gov-loading.entry.cjs.js.map +1 -0
  167. package/dist/cjs/gov-message.cjs.entry.js +14 -9
  168. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  169. package/dist/cjs/gov-message.entry.cjs.js.map +1 -0
  170. package/dist/cjs/gov-pagination.cjs.entry.js +54 -19
  171. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  172. package/dist/cjs/gov-pagination.entry.cjs.js.map +1 -0
  173. package/dist/cjs/gov-spacer.cjs.entry.js +11 -10
  174. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  175. package/dist/cjs/gov-spacer.entry.cjs.js.map +1 -0
  176. package/dist/cjs/gov-stepper-item.cjs.entry.js +18 -14
  177. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  178. package/dist/cjs/gov-stepper-item.entry.cjs.js.map +1 -0
  179. package/dist/cjs/gov-stepper.cjs.entry.js +14 -12
  180. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  181. package/dist/cjs/gov-stepper.entry.cjs.js.map +1 -0
  182. package/dist/cjs/gov-tabs-item.cjs.entry.js +15 -15
  183. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
  184. package/dist/cjs/gov-tabs-item.entry.cjs.js.map +1 -0
  185. package/dist/cjs/gov-tabs.cjs.entry.js +30 -16
  186. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  187. package/dist/cjs/gov-tabs.entry.cjs.js.map +1 -0
  188. package/dist/cjs/gov-tag.cjs.entry.js +20 -15
  189. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  190. package/dist/cjs/gov-tag.entry.cjs.js.map +1 -0
  191. package/dist/cjs/gov-tile.cjs.entry.js +12 -10
  192. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  193. package/dist/cjs/gov-tile.entry.cjs.js.map +1 -0
  194. package/dist/cjs/gov-toast.cjs.entry.js +27 -15
  195. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  196. package/dist/cjs/gov-toast.entry.cjs.js.map +1 -0
  197. package/dist/cjs/gov-tooltip-content.cjs.entry.js +23 -9
  198. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
  199. package/dist/cjs/gov-tooltip-content.entry.cjs.js.map +1 -0
  200. package/dist/cjs/gov-tooltip.cjs.entry.js +28 -15
  201. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  202. package/dist/cjs/gov-tooltip.entry.cjs.js.map +1 -0
  203. package/dist/cjs/gov-wizard-item.cjs.entry.js +28 -15
  204. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  205. package/dist/cjs/gov-wizard-item.entry.cjs.js.map +1 -0
  206. package/dist/cjs/gov-wizard.cjs.entry.js +17 -17
  207. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  208. package/dist/cjs/gov-wizard.entry.cjs.js.map +1 -0
  209. package/dist/cjs/gov.log-C5EH15b_.js +53 -0
  210. package/dist/cjs/gov.log-C5EH15b_.js.map +1 -0
  211. package/dist/cjs/helpers-DmI-ZOAH.js +20 -0
  212. package/dist/cjs/helpers-DmI-ZOAH.js.map +1 -0
  213. package/dist/cjs/helpers.types-vap8QfRH.js +17 -0
  214. package/dist/cjs/helpers.types-vap8QfRH.js.map +1 -0
  215. package/dist/cjs/index-BEF5cZxd.js +2743 -0
  216. package/dist/cjs/index-BEF5cZxd.js.map +1 -0
  217. package/dist/cjs/index.cjs.js +1 -0
  218. package/dist/cjs/index.cjs.js.map +1 -1
  219. package/dist/cjs/loader.cjs.js +4 -5
  220. package/dist/cjs/loader.cjs.js.map +1 -1
  221. package/dist/cjs/props-CPENhBnM.js +17 -0
  222. package/dist/cjs/props-CPENhBnM.js.map +1 -0
  223. package/dist/cjs/sizes-D5zsw2g5.js +19 -0
  224. package/dist/cjs/sizes-D5zsw2g5.js.map +1 -0
  225. package/dist/cjs/stencil.utils-8sCYbm34.js +12 -0
  226. package/dist/cjs/stencil.utils-8sCYbm34.js.map +1 -0
  227. package/dist/cjs/string.utils-BG4pUfEi.js +26 -0
  228. package/dist/cjs/string.utils-BG4pUfEi.js.map +1 -0
  229. package/dist/cjs/template-DS4pSCTb.js +115 -0
  230. package/dist/cjs/template-DS4pSCTb.js.map +1 -0
  231. package/dist/cjs/utils-NnC78QR3.js +42 -0
  232. package/dist/cjs/utils-NnC78QR3.js.map +1 -0
  233. package/dist/cjs/wcag-Bvzxnp5D.js +56 -0
  234. package/dist/cjs/wcag-Bvzxnp5D.js.map +1 -0
  235. package/dist/collection/collection-manifest.json +4 -4
  236. package/dist/collection/components/gov-accordion/gov-accordion-item.js +18 -7
  237. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  238. package/dist/collection/components/gov-accordion/gov-accordion.js +12 -2
  239. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
  240. package/dist/collection/components/gov-attachments/gov-attachments-item.css +19 -7
  241. package/dist/collection/components/gov-attachments/gov-attachments-item.js +6 -4
  242. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  243. package/dist/collection/components/gov-attachments/gov-attachments.js +6 -4
  244. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
  245. package/dist/collection/components/gov-backdrop/gov-backdrop.js +18 -6
  246. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  247. package/dist/collection/components/gov-banner/gov-banner.js +24 -4
  248. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
  249. package/dist/collection/components/gov-blockquote/gov-blockquote.js +9 -3
  250. package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +1 -1
  251. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +24 -7
  252. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  253. package/dist/collection/components/gov-button/button/gov-button.js +103 -31
  254. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  255. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +15 -4
  256. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
  257. package/dist/collection/components/gov-card/gov-card.js +55 -12
  258. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  259. package/dist/collection/components/gov-chip/gov-chip.js +55 -23
  260. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  261. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  262. package/dist/collection/components/gov-control-group/gov-control-group.js +18 -3
  263. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  264. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
  265. package/dist/collection/components/gov-dialog/gov-dialog.js +91 -15
  266. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  267. package/dist/collection/components/gov-empty/constants.js +6 -0
  268. package/dist/collection/components/gov-empty/constants.js.map +1 -1
  269. package/dist/collection/components/gov-empty/gov-empty.js +43 -3
  270. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
  271. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
  272. package/dist/collection/components/gov-flex/gov-flex.js +31 -15
  273. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  274. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +74 -25
  275. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  276. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +49 -14
  277. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  278. package/dist/collection/components/gov-form/control/gov-form-control.js +42 -12
  279. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  280. package/dist/collection/components/gov-form/file/constants.js +1 -0
  281. package/dist/collection/components/gov-form/file/constants.js.map +1 -1
  282. package/dist/collection/components/gov-form/file/gov-form-file.js +89 -21
  283. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  284. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +22 -7
  285. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -1
  286. package/dist/collection/components/gov-form/group/gov-form-group.css +17 -7
  287. package/dist/collection/components/gov-form/group/gov-form-group.js +13 -3
  288. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
  289. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +22 -7
  290. package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -1
  291. package/dist/collection/components/gov-form/input/gov-form-input.js +103 -52
  292. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  293. package/dist/collection/components/gov-form/label/gov-form-label.js +23 -6
  294. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
  295. package/dist/collection/components/gov-form/message/gov-form-message.js +13 -3
  296. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
  297. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +63 -26
  298. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  299. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +4 -5
  300. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
  301. package/dist/collection/components/gov-form/radio/gov-form-radio.js +44 -13
  302. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  303. package/dist/collection/components/gov-form/range/gov-form-range.js +59 -25
  304. package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -1
  305. package/dist/collection/components/gov-form/search/gov-form-search.js +13 -3
  306. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  307. package/dist/collection/components/gov-form/select/gov-form-select.js +40 -18
  308. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  309. package/dist/collection/components/gov-form/switch/constants.js +1 -0
  310. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  311. package/dist/collection/components/gov-form/switch/gov-form-switch.js +46 -15
  312. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  313. package/dist/collection/components/gov-grid/gov-grid-item.js +37 -19
  314. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  315. package/dist/collection/components/gov-grid/gov-grid.js +11 -27
  316. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  317. package/dist/collection/components/gov-icon/gov-icon.js +19 -7
  318. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  319. package/dist/collection/components/gov-infobar/gov-infobar.js +38 -8
  320. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  321. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  322. package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
  323. package/dist/collection/components/gov-layout/gov-layout.js +16 -5
  324. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
  325. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  326. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -1
  327. package/dist/collection/components/gov-link/gov-link.js +25 -8
  328. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  329. package/dist/collection/components/gov-loading/loading/gov-loading.js +7 -2
  330. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  331. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +39 -22
  332. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  333. package/dist/collection/components/gov-message/gov-message.js +13 -3
  334. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  335. package/dist/collection/components/gov-pagination/gov-pagination.js +84 -18
  336. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  337. package/dist/collection/components/gov-spacer/gov-spacer.js +10 -4
  338. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
  339. package/dist/collection/components/gov-stepper/stepper/constants.js +20 -0
  340. package/dist/collection/components/gov-stepper/stepper/constants.js.map +1 -0
  341. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js.map +1 -0
  342. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js +143 -0
  343. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js.map +1 -0
  344. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js +98 -0
  345. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js.map +1 -0
  346. package/dist/collection/components/gov-tabs/gov-tabs-item.js +28 -13
  347. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
  348. package/dist/collection/components/gov-tabs/gov-tabs.js +31 -6
  349. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  350. package/dist/collection/components/gov-tag/gov-tag.js +28 -10
  351. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  352. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +44 -14
  353. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  354. package/dist/collection/components/gov-tile/gov-tile.js +28 -15
  355. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  356. package/dist/collection/components/gov-toast/gov-toast.js +37 -10
  357. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  358. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +31 -6
  359. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  360. package/dist/collection/components/gov-tooltip/gov-tooltip.js +35 -9
  361. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  362. package/dist/collection/components/gov-wizard/gov-wizard-item.js +35 -9
  363. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  364. package/dist/collection/components/gov-wizard/gov-wizard.js +13 -6
  365. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
  366. package/dist/collection/core/constants/sizes.js +1 -1
  367. package/dist/collection/core/constants/sizes.js.map +1 -1
  368. package/dist/collection/helpers/Validate/wcag.js +1 -1
  369. package/dist/collection/helpers/Validate/wcag.js.map +1 -1
  370. package/dist/collection/pages/AttributeSection.js +59 -0
  371. package/dist/collection/pages/AttributeSection.js.map +1 -0
  372. package/dist/collection/pages/Avatar.js +47 -0
  373. package/dist/collection/pages/Avatar.js.map +1 -0
  374. package/dist/collection/pages/Badge.js +29 -0
  375. package/dist/collection/pages/Badge.js.map +1 -0
  376. package/dist/collection/pages/Card.js +7 -1
  377. package/dist/collection/pages/Card.js.map +1 -1
  378. package/dist/collection/pages/Collapsible.js +43 -0
  379. package/dist/collection/pages/Collapsible.js.map +1 -0
  380. package/dist/collection/pages/Empty.js +1 -1
  381. package/dist/collection/pages/Empty.js.map +1 -1
  382. package/dist/collection/pages/Forms.js +36 -9
  383. package/dist/collection/pages/Forms.js.map +1 -1
  384. package/dist/collection/pages/Grid.js +13 -13
  385. package/dist/collection/pages/Grid.js.map +1 -1
  386. package/dist/collection/pages/HorizontalStepper.js +85 -0
  387. package/dist/collection/pages/HorizontalStepper.js.map +1 -0
  388. package/dist/collection/pages/Spacer.js +9 -8
  389. package/dist/collection/pages/Spacer.js.map +1 -1
  390. package/dist/collection/pages/Tabs.js +20 -0
  391. package/dist/collection/pages/Tabs.js.map +1 -1
  392. package/dist/collection/pages/Tag.js +75 -24
  393. package/dist/collection/pages/Tag.js.map +1 -1
  394. package/dist/collection/pages/UserNavigation.js +134 -0
  395. package/dist/collection/pages/UserNavigation.js.map +1 -0
  396. package/dist/collection/utils/dom.utils.js +6 -0
  397. package/dist/collection/utils/dom.utils.js.map +1 -0
  398. package/dist/collection/utils/object.utils.js +12 -0
  399. package/dist/collection/utils/object.utils.js.map +1 -1
  400. package/dist/components/gov-accordion-item.js +1 -1
  401. package/dist/components/gov-accordion-item.js.map +1 -1
  402. package/dist/components/gov-accordion.js +1 -1
  403. package/dist/components/gov-accordion.js.map +1 -1
  404. package/dist/components/gov-attachments-item.js +1 -1
  405. package/dist/components/gov-attachments.js +1 -1
  406. package/dist/components/gov-backdrop.js +1 -1
  407. package/dist/components/gov-banner.js +1 -1
  408. package/dist/components/gov-banner.js.map +1 -1
  409. package/dist/components/gov-blockquote.js +1 -1
  410. package/dist/components/gov-blockquote.js.map +1 -1
  411. package/dist/components/gov-breadcrumbs.js +1 -1
  412. package/dist/components/gov-breadcrumbs.js.map +1 -1
  413. package/dist/components/gov-button.js +1 -1
  414. package/dist/components/gov-card.js +1 -1
  415. package/dist/components/gov-card.js.map +1 -1
  416. package/dist/components/gov-chip.js +1 -1
  417. package/dist/components/gov-container.js +1 -1
  418. package/dist/components/gov-container.js.map +1 -1
  419. package/dist/components/gov-control-group.js +1 -1
  420. package/dist/components/gov-control-group.js.map +1 -1
  421. package/dist/components/gov-cookiebar.js +1 -1
  422. package/dist/components/gov-cookiebar.js.map +1 -1
  423. package/dist/components/gov-dialog.js +1 -1
  424. package/dist/components/gov-dialog.js.map +1 -1
  425. package/dist/components/gov-dropdown.js +1 -1
  426. package/dist/components/gov-dropdown.js.map +1 -1
  427. package/dist/components/gov-empty.js +1 -1
  428. package/dist/components/gov-empty.js.map +1 -1
  429. package/dist/components/gov-error-code.js +1 -1
  430. package/dist/components/gov-error-code.js.map +1 -1
  431. package/dist/components/gov-flex.js +1 -1
  432. package/dist/components/gov-flex.js.map +1 -1
  433. package/dist/components/gov-form-autocomplete.js +1 -1
  434. package/dist/components/gov-form-checkbox-group.js +1 -1
  435. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  436. package/dist/components/gov-form-checkbox.js +1 -1
  437. package/dist/components/gov-form-checkbox.js.map +1 -1
  438. package/dist/components/gov-form-control.js +1 -1
  439. package/dist/components/gov-form-control.js.map +1 -1
  440. package/dist/components/gov-form-file.js +1 -1
  441. package/dist/components/gov-form-file.js.map +1 -1
  442. package/dist/components/gov-form-group.js +1 -1
  443. package/dist/components/gov-form-group.js.map +1 -1
  444. package/dist/components/gov-form-input.js +1 -1
  445. package/dist/components/gov-form-label.js +1 -1
  446. package/dist/components/gov-form-label.js.map +1 -1
  447. package/dist/components/gov-form-message.js +1 -1
  448. package/dist/components/gov-form-multi-select.js +1 -1
  449. package/dist/components/gov-form-multi-select.js.map +1 -1
  450. package/dist/components/gov-form-password-power.js +1 -1
  451. package/dist/components/gov-form-password-power.js.map +1 -1
  452. package/dist/components/gov-form-radio-group.js +1 -1
  453. package/dist/components/gov-form-radio-group.js.map +1 -1
  454. package/dist/components/gov-form-radio.js +1 -1
  455. package/dist/components/gov-form-radio.js.map +1 -1
  456. package/dist/components/gov-form-range.js +1 -1
  457. package/dist/components/gov-form-range.js.map +1 -1
  458. package/dist/components/gov-form-search.js +1 -1
  459. package/dist/components/gov-form-search.js.map +1 -1
  460. package/dist/components/gov-form-select.js +1 -1
  461. package/dist/components/gov-form-switch.js +1 -1
  462. package/dist/components/gov-form-switch.js.map +1 -1
  463. package/dist/components/gov-grid-item.js +1 -1
  464. package/dist/components/gov-grid-item.js.map +1 -1
  465. package/dist/components/gov-grid.js +1 -1
  466. package/dist/components/gov-grid.js.map +1 -1
  467. package/dist/components/gov-icon.js +1 -1
  468. package/dist/components/gov-infobar.js +1 -1
  469. package/dist/components/gov-infobar.js.map +1 -1
  470. package/dist/components/gov-layout-column.js +1 -1
  471. package/dist/components/gov-layout-column.js.map +1 -1
  472. package/dist/components/gov-layout.js +1 -1
  473. package/dist/components/gov-layout.js.map +1 -1
  474. package/dist/components/gov-lifecycle.js +1 -1
  475. package/dist/components/gov-lifecycle.js.map +1 -1
  476. package/dist/components/gov-link.js +1 -1
  477. package/dist/components/gov-link.js.map +1 -1
  478. package/dist/components/gov-loading.js +1 -1
  479. package/dist/components/gov-loading.js.map +1 -1
  480. package/dist/components/gov-message.js +1 -1
  481. package/dist/components/gov-message.js.map +1 -1
  482. package/dist/components/gov-pagination.js +1 -1
  483. package/dist/components/gov-pagination.js.map +1 -1
  484. package/dist/components/gov-skeleton.js +1 -1
  485. package/dist/components/gov-spacer.js +1 -1
  486. package/dist/components/gov-spacer.js.map +1 -1
  487. package/dist/components/gov-stepper-item.js +1 -1
  488. package/dist/components/gov-stepper-item.js.map +1 -1
  489. package/dist/components/gov-stepper.js +1 -1
  490. package/dist/components/gov-stepper.js.map +1 -1
  491. package/dist/components/gov-tabs-item.js +1 -1
  492. package/dist/components/gov-tabs-item.js.map +1 -1
  493. package/dist/components/gov-tabs.js +1 -1
  494. package/dist/components/gov-tabs.js.map +1 -1
  495. package/dist/components/gov-tag.js +1 -1
  496. package/dist/components/gov-tag.js.map +1 -1
  497. package/dist/components/gov-theme-switch.js +1 -1
  498. package/dist/components/gov-theme-switch.js.map +1 -1
  499. package/dist/components/gov-tile.js +1 -1
  500. package/dist/components/gov-tile.js.map +1 -1
  501. package/dist/components/gov-toast.js +1 -1
  502. package/dist/components/gov-toast.js.map +1 -1
  503. package/dist/components/gov-tooltip-content.js +1 -1
  504. package/dist/components/gov-tooltip-content.js.map +1 -1
  505. package/dist/components/gov-tooltip.js +1 -1
  506. package/dist/components/gov-tooltip.js.map +1 -1
  507. package/dist/components/gov-wizard-item.js +1 -1
  508. package/dist/components/gov-wizard-item.js.map +1 -1
  509. package/dist/components/gov-wizard.js +1 -1
  510. package/dist/components/gov-wizard.js.map +1 -1
  511. package/dist/components/index.js +1 -1
  512. package/dist/components/index.js.map +1 -1
  513. package/dist/components/p-4i8qDRtu.js +2 -0
  514. package/dist/components/p-4i8qDRtu.js.map +1 -0
  515. package/dist/components/p-5itQzbON.js +2 -0
  516. package/dist/components/p-5itQzbON.js.map +1 -0
  517. package/dist/components/p-9imLQpxb.js +2 -0
  518. package/dist/components/p-9imLQpxb.js.map +1 -0
  519. package/dist/components/p-B0hcuYXk.js +2 -0
  520. package/dist/components/p-B0hcuYXk.js.map +1 -0
  521. package/dist/components/p-B3tdsiZv.js +2 -0
  522. package/dist/components/p-B3tdsiZv.js.map +1 -0
  523. package/dist/components/p-BKP-F1qP.js +2 -0
  524. package/dist/components/p-BKP-F1qP.js.map +1 -0
  525. package/dist/components/p-BTwdrNoS.js +2 -0
  526. package/dist/components/p-BTwdrNoS.js.map +1 -0
  527. package/dist/components/p-BUmDydor.js +2 -0
  528. package/dist/components/p-BUmDydor.js.map +1 -0
  529. package/dist/components/p-BcQO4NH2.js +2 -0
  530. package/dist/components/p-BcQO4NH2.js.map +1 -0
  531. package/dist/components/p-BlqsCTBR.js +2 -0
  532. package/dist/components/p-BlqsCTBR.js.map +1 -0
  533. package/dist/components/p-C6JN9gdb.js +2 -0
  534. package/dist/components/p-C6JN9gdb.js.map +1 -0
  535. package/dist/components/p-CEl4WEkF.js +2 -0
  536. package/dist/components/p-CEl4WEkF.js.map +1 -0
  537. package/dist/components/p-CNRG3ZtC.js +2 -0
  538. package/dist/components/p-CNRG3ZtC.js.map +1 -0
  539. package/dist/components/p-CNXZgyfX.js +2 -0
  540. package/dist/components/p-CNXZgyfX.js.map +1 -0
  541. package/dist/components/p-CNqoJU2V.js +2 -0
  542. package/dist/components/p-CNqoJU2V.js.map +1 -0
  543. package/dist/components/p-CQvUntGY.js +2 -0
  544. package/dist/components/p-CQvUntGY.js.map +1 -0
  545. package/dist/components/p-CUVZZBqo.js +2 -0
  546. package/dist/components/p-CUVZZBqo.js.map +1 -0
  547. package/dist/components/p-CXgom82_.js +2 -0
  548. package/dist/components/p-CXgom82_.js.map +1 -0
  549. package/dist/components/p-CZr7GBEo.js +2 -0
  550. package/dist/components/p-CZr7GBEo.js.map +1 -0
  551. package/dist/components/p-Cjg0wpDG.js +2 -0
  552. package/dist/components/p-Cjg0wpDG.js.map +1 -0
  553. package/dist/components/p-ClYmjarv.js +2 -0
  554. package/dist/components/p-ClYmjarv.js.map +1 -0
  555. package/dist/components/p-D82BPGeo.js +2 -0
  556. package/dist/components/p-D82BPGeo.js.map +1 -0
  557. package/dist/components/p-DBXGhafv.js +2 -0
  558. package/dist/components/p-DBXGhafv.js.map +1 -0
  559. package/dist/components/p-DGsyEn3-.js +2 -0
  560. package/dist/components/p-DGsyEn3-.js.map +1 -0
  561. package/dist/components/p-DfI_0WW6.js +2 -0
  562. package/dist/components/p-DfI_0WW6.js.map +1 -0
  563. package/dist/components/p-DfJDyRCE.js +2 -0
  564. package/dist/components/p-DfJDyRCE.js.map +1 -0
  565. package/dist/components/p-Dj3UNRiz.js +2 -0
  566. package/dist/components/p-Dj3UNRiz.js.map +1 -0
  567. package/dist/components/p-DkoI3xas.js +2 -0
  568. package/dist/components/p-DkoI3xas.js.map +1 -0
  569. package/dist/components/p-DrPpH_9c.js +2 -0
  570. package/dist/components/p-DrPpH_9c.js.map +1 -0
  571. package/dist/components/p-DxCeyMKq.js +2 -0
  572. package/dist/components/p-DxCeyMKq.js.map +1 -0
  573. package/dist/components/p-EeKNA85D.js +2 -0
  574. package/dist/components/p-EeKNA85D.js.map +1 -0
  575. package/dist/components/p-GYov8gU1.js +2 -0
  576. package/dist/components/p-GYov8gU1.js.map +1 -0
  577. package/dist/components/p-Nvj7WFs_.js +2 -0
  578. package/dist/components/p-Nvj7WFs_.js.map +1 -0
  579. package/dist/components/p-Q99QrOoi.js +2 -0
  580. package/dist/components/p-Q99QrOoi.js.map +1 -0
  581. package/dist/components/p-U40vKHrs.js +2 -0
  582. package/dist/components/p-U40vKHrs.js.map +1 -0
  583. package/dist/components/p-vN03FcXN.js +2 -0
  584. package/dist/components/p-vN03FcXN.js.map +1 -0
  585. package/dist/components/p-vuyK2av-.js +2 -0
  586. package/dist/components/p-vuyK2av-.js.map +1 -0
  587. package/dist/components/p-yUYC6pA5.js +2 -0
  588. package/dist/components/p-yUYC6pA5.js.map +1 -0
  589. package/dist/core/core.css +602 -429
  590. package/dist/core/core.esm.js +1 -1
  591. package/dist/core/core.esm.js.map +1 -1
  592. package/dist/core/gov-accordion-item.entry.esm.js.map +1 -0
  593. package/dist/core/gov-accordion.entry.esm.js.map +1 -0
  594. package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +1 -0
  595. package/dist/core/gov-backdrop.entry.esm.js.map +1 -0
  596. package/dist/core/gov-banner.entry.esm.js.map +1 -0
  597. package/dist/core/gov-blockquote.entry.esm.js.map +1 -0
  598. package/dist/core/gov-breadcrumbs.entry.esm.js.map +1 -0
  599. package/dist/core/gov-button.entry.esm.js.map +1 -0
  600. package/dist/core/gov-card.entry.esm.js.map +1 -0
  601. package/dist/core/gov-chip.entry.esm.js.map +1 -0
  602. package/dist/core/gov-container.entry.esm.js.map +1 -0
  603. package/dist/core/gov-control-group.entry.esm.js.map +1 -0
  604. package/dist/core/gov-cookiebar.entry.esm.js.map +1 -0
  605. package/dist/core/gov-dialog.entry.esm.js.map +1 -0
  606. package/dist/core/gov-dropdown.entry.esm.js.map +1 -0
  607. package/dist/core/gov-empty.entry.esm.js.map +1 -0
  608. package/dist/core/gov-error-code.entry.esm.js.map +1 -0
  609. package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +1 -0
  610. package/dist/core/gov-form-autocomplete.entry.esm.js.map +1 -0
  611. package/dist/core/gov-form-checkbox-group.entry.esm.js.map +1 -0
  612. package/dist/core/gov-form-checkbox.entry.esm.js.map +1 -0
  613. package/dist/core/gov-form-control.entry.esm.js.map +1 -0
  614. package/dist/core/gov-form-file.entry.esm.js.map +1 -0
  615. package/dist/core/gov-form-group.entry.esm.js.map +1 -0
  616. package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +1 -0
  617. package/dist/core/gov-form-label.entry.esm.js.map +1 -0
  618. package/dist/core/gov-form-multi-select.entry.esm.js.map +1 -0
  619. package/dist/core/gov-form-password-power.entry.esm.js.map +1 -0
  620. package/dist/core/gov-form-radio-group.entry.esm.js.map +1 -0
  621. package/dist/core/gov-form-radio.entry.esm.js.map +1 -0
  622. package/dist/core/gov-form-range.entry.esm.js.map +1 -0
  623. package/dist/core/gov-form-search.entry.esm.js.map +1 -0
  624. package/dist/core/gov-form-select.entry.esm.js.map +1 -0
  625. package/dist/core/gov-form-switch.entry.esm.js.map +1 -0
  626. package/dist/core/gov-grid-item.entry.esm.js.map +1 -0
  627. package/dist/core/gov-grid.entry.esm.js.map +1 -0
  628. package/dist/core/gov-infobar.entry.esm.js.map +1 -0
  629. package/dist/core/gov-layout-column.entry.esm.js.map +1 -0
  630. package/dist/core/gov-layout.entry.esm.js.map +1 -0
  631. package/dist/core/gov-lifecycle.entry.esm.js.map +1 -0
  632. package/dist/core/gov-link.entry.esm.js.map +1 -0
  633. package/dist/core/gov-loading.entry.esm.js.map +1 -0
  634. package/dist/core/gov-message.entry.esm.js.map +1 -0
  635. package/dist/core/gov-pagination.entry.esm.js.map +1 -0
  636. package/dist/core/gov-spacer.entry.esm.js.map +1 -0
  637. package/dist/core/gov-stepper-item.entry.esm.js.map +1 -0
  638. package/dist/core/gov-stepper.entry.esm.js.map +1 -0
  639. package/dist/core/gov-tabs-item.entry.esm.js.map +1 -0
  640. package/dist/core/gov-tabs.entry.esm.js.map +1 -0
  641. package/dist/core/gov-tag.entry.esm.js.map +1 -0
  642. package/dist/core/gov-tile.entry.esm.js.map +1 -0
  643. package/dist/core/gov-toast.entry.esm.js.map +1 -0
  644. package/dist/core/gov-tooltip-content.entry.esm.js.map +1 -0
  645. package/dist/core/gov-tooltip.entry.esm.js.map +1 -0
  646. package/dist/core/gov-wizard-item.entry.esm.js.map +1 -0
  647. package/dist/core/gov-wizard.entry.esm.js.map +1 -0
  648. package/dist/core/index.esm.js.map +1 -1
  649. package/dist/core/loader.esm.js.map +1 -0
  650. package/dist/core/p-03a8226e.entry.js +2 -0
  651. package/dist/core/p-03a8226e.entry.js.map +1 -0
  652. package/dist/core/p-05c81fd3.entry.js +2 -0
  653. package/dist/core/p-05c81fd3.entry.js.map +1 -0
  654. package/dist/core/p-0a50f540.entry.js +2 -0
  655. package/dist/core/p-0a50f540.entry.js.map +1 -0
  656. package/dist/core/p-0d0bd226.entry.js +2 -0
  657. package/dist/core/p-0d0bd226.entry.js.map +1 -0
  658. package/dist/core/p-0f2f623b.entry.js +2 -0
  659. package/dist/core/p-0f2f623b.entry.js.map +1 -0
  660. package/dist/core/p-11ee3438.entry.js +2 -0
  661. package/dist/core/p-11ee3438.entry.js.map +1 -0
  662. package/dist/core/p-1744f488.entry.js +2 -0
  663. package/dist/core/p-1744f488.entry.js.map +1 -0
  664. package/dist/core/p-177a0638.entry.js +2 -0
  665. package/dist/core/p-177a0638.entry.js.map +1 -0
  666. package/dist/core/p-1b922db5.entry.js +2 -0
  667. package/dist/core/p-1b922db5.entry.js.map +1 -0
  668. package/dist/core/p-1c01e161.entry.js +2 -0
  669. package/dist/core/p-1c01e161.entry.js.map +1 -0
  670. package/dist/core/p-1d78f520.entry.js +2 -0
  671. package/dist/core/p-1d78f520.entry.js.map +1 -0
  672. package/dist/core/p-1d944358.entry.js +2 -0
  673. package/dist/core/p-1d944358.entry.js.map +1 -0
  674. package/dist/core/p-1fca9440.entry.js +2 -0
  675. package/dist/core/p-1fca9440.entry.js.map +1 -0
  676. package/dist/core/p-22c2e7e8.entry.js +2 -0
  677. package/dist/core/p-22c2e7e8.entry.js.map +1 -0
  678. package/dist/core/p-22f17af5.entry.js +2 -0
  679. package/dist/core/p-22f17af5.entry.js.map +1 -0
  680. package/dist/core/p-24ec7a60.entry.js +2 -0
  681. package/dist/core/p-24ec7a60.entry.js.map +1 -0
  682. package/dist/core/p-25017dd9.entry.js +2 -0
  683. package/dist/core/p-25017dd9.entry.js.map +1 -0
  684. package/dist/core/p-3a25ddfa.entry.js +2 -0
  685. package/dist/core/p-3a25ddfa.entry.js.map +1 -0
  686. package/dist/core/p-4382abb5.entry.js +2 -0
  687. package/dist/core/p-4382abb5.entry.js.map +1 -0
  688. package/dist/core/p-49581c53.entry.js +2 -0
  689. package/dist/core/p-49581c53.entry.js.map +1 -0
  690. package/dist/core/p-50b0d5dd.entry.js +2 -0
  691. package/dist/core/p-50b0d5dd.entry.js.map +1 -0
  692. package/dist/core/p-57f8e68a.entry.js +2 -0
  693. package/dist/core/p-57f8e68a.entry.js.map +1 -0
  694. package/dist/core/p-5e8946af.entry.js +2 -0
  695. package/dist/core/p-5e8946af.entry.js.map +1 -0
  696. package/dist/core/p-5f2cbcf6.entry.js +2 -0
  697. package/dist/core/p-5f2cbcf6.entry.js.map +1 -0
  698. package/dist/core/p-5itQzbON.js +2 -0
  699. package/dist/core/p-5itQzbON.js.map +1 -0
  700. package/dist/core/p-616c2209.entry.js +2 -0
  701. package/dist/core/p-616c2209.entry.js.map +1 -0
  702. package/dist/core/p-64b0f2d6.entry.js +2 -0
  703. package/dist/core/p-64b0f2d6.entry.js.map +1 -0
  704. package/dist/core/p-73dcc4f1.entry.js +2 -0
  705. package/dist/core/p-73dcc4f1.entry.js.map +1 -0
  706. package/dist/core/p-750ced1c.entry.js +2 -0
  707. package/dist/core/p-750ced1c.entry.js.map +1 -0
  708. package/dist/core/p-77e3fa09.entry.js +2 -0
  709. package/dist/core/p-77e3fa09.entry.js.map +1 -0
  710. package/dist/core/p-7c1d10c4.entry.js +2 -0
  711. package/dist/core/p-7c1d10c4.entry.js.map +1 -0
  712. package/dist/core/p-840fed0e.entry.js +2 -0
  713. package/dist/core/p-840fed0e.entry.js.map +1 -0
  714. package/dist/core/p-877178fe.entry.js +2 -0
  715. package/dist/core/p-877178fe.entry.js.map +1 -0
  716. package/dist/core/p-8b866af0.entry.js +2 -0
  717. package/dist/core/p-8b866af0.entry.js.map +1 -0
  718. package/dist/core/p-8ca5804b.entry.js +2 -0
  719. package/dist/core/p-8ca5804b.entry.js.map +1 -0
  720. package/dist/core/p-8fbdabfe.entry.js +2 -0
  721. package/dist/core/p-8fbdabfe.entry.js.map +1 -0
  722. package/dist/core/p-904e7e44.entry.js +2 -0
  723. package/dist/core/p-904e7e44.entry.js.map +1 -0
  724. package/dist/core/p-B6CqPcY_.js +2 -0
  725. package/dist/core/p-B6CqPcY_.js.map +1 -0
  726. package/dist/core/p-BBOh2pxy.js +2 -0
  727. package/dist/core/p-BBOh2pxy.js.map +1 -0
  728. package/dist/core/p-BUmDydor.js +2 -0
  729. package/dist/core/p-BUmDydor.js.map +1 -0
  730. package/dist/core/p-BcQO4NH2.js +2 -0
  731. package/dist/core/p-BcQO4NH2.js.map +1 -0
  732. package/dist/core/p-BjcqOprh.js +2 -0
  733. package/dist/core/p-BjcqOprh.js.map +1 -0
  734. package/dist/core/p-Bo1ROm5Q.js +2 -0
  735. package/dist/core/p-Bo1ROm5Q.js.map +1 -0
  736. package/dist/core/p-Bz_RzYFb.js +2 -0
  737. package/dist/core/p-Bz_RzYFb.js.map +1 -0
  738. package/dist/core/p-C3R1T_pg.js +2 -0
  739. package/dist/core/p-C3R1T_pg.js.map +1 -0
  740. package/dist/core/p-C6JN9gdb.js +2 -0
  741. package/dist/core/p-C6JN9gdb.js.map +1 -0
  742. package/dist/core/p-CDIRBJsi.js +2 -0
  743. package/dist/core/p-CDIRBJsi.js.map +1 -0
  744. package/dist/core/p-CLBboRhb.js +2 -0
  745. package/dist/core/p-CLBboRhb.js.map +1 -0
  746. package/dist/core/p-CQvUntGY.js +2 -0
  747. package/dist/core/p-CQvUntGY.js.map +1 -0
  748. package/dist/core/p-Ccwpa1ck.js +2 -0
  749. package/dist/core/p-Ccwpa1ck.js.map +1 -0
  750. package/dist/core/p-CgDnDrq5.js +2 -0
  751. package/dist/core/p-CgDnDrq5.js.map +1 -0
  752. package/dist/core/p-Cjg0wpDG.js +2 -0
  753. package/dist/core/p-Cjg0wpDG.js.map +1 -0
  754. package/dist/core/p-ClISz4NF.js +3 -0
  755. package/dist/core/p-ClISz4NF.js.map +1 -0
  756. package/dist/core/p-Cx3bEC5v.js +2 -0
  757. package/dist/core/p-Cx3bEC5v.js.map +1 -0
  758. package/dist/core/p-CzXeijOj.js +2 -0
  759. package/dist/core/p-CzXeijOj.js.map +1 -0
  760. package/dist/core/p-D4TGB274.js +2 -0
  761. package/dist/core/p-D4TGB274.js.map +1 -0
  762. package/dist/core/p-DBXGhafv.js +2 -0
  763. package/dist/core/p-DBXGhafv.js.map +1 -0
  764. package/dist/core/p-DNztiAH0.js +2 -0
  765. package/dist/core/p-DNztiAH0.js.map +1 -0
  766. package/dist/core/p-DQuL1Twl.js +2 -0
  767. package/dist/core/p-DQuL1Twl.js.map +1 -0
  768. package/dist/core/p-DYcNEwSZ.js +2 -0
  769. package/dist/core/p-DYcNEwSZ.js.map +1 -0
  770. package/dist/core/p-EeKNA85D.js +2 -0
  771. package/dist/core/p-EeKNA85D.js.map +1 -0
  772. package/dist/core/p-GYov8gU1.js +2 -0
  773. package/dist/core/p-GYov8gU1.js.map +1 -0
  774. package/dist/core/p-NOJjz9dT.js +2 -0
  775. package/dist/core/p-NOJjz9dT.js.map +1 -0
  776. package/dist/core/p-Q99QrOoi.js +2 -0
  777. package/dist/core/p-Q99QrOoi.js.map +1 -0
  778. package/dist/core/p-U40vKHrs.js +2 -0
  779. package/dist/core/p-U40vKHrs.js.map +1 -0
  780. package/dist/core/p-a262eb49.entry.js +2 -0
  781. package/dist/core/p-a262eb49.entry.js.map +1 -0
  782. package/dist/core/p-a2a257ef.entry.js +2 -0
  783. package/dist/core/p-a2a257ef.entry.js.map +1 -0
  784. package/dist/core/p-a6d16324.entry.js +2 -0
  785. package/dist/core/p-a6d16324.entry.js.map +1 -0
  786. package/dist/core/p-ab0f7851.entry.js +2 -0
  787. package/dist/core/p-ab0f7851.entry.js.map +1 -0
  788. package/dist/core/p-b1869b24.entry.js +2 -0
  789. package/dist/core/p-b1869b24.entry.js.map +1 -0
  790. package/dist/core/p-bc5f5e3d.entry.js +2 -0
  791. package/dist/core/p-bc5f5e3d.entry.js.map +1 -0
  792. package/dist/core/p-bc6fe3db.entry.js +2 -0
  793. package/dist/core/p-bc6fe3db.entry.js.map +1 -0
  794. package/dist/core/p-cb293cf3.entry.js +2 -0
  795. package/dist/core/p-cb293cf3.entry.js.map +1 -0
  796. package/dist/core/p-cb91eed8.entry.js +2 -0
  797. package/dist/core/p-cb91eed8.entry.js.map +1 -0
  798. package/dist/core/p-cd82ae8b.entry.js +2 -0
  799. package/dist/core/p-cd82ae8b.entry.js.map +1 -0
  800. package/dist/core/p-db01c95c.entry.js +2 -0
  801. package/dist/core/p-db01c95c.entry.js.map +1 -0
  802. package/dist/core/p-db32ed60.entry.js +2 -0
  803. package/dist/core/p-db32ed60.entry.js.map +1 -0
  804. package/dist/core/p-e0ec9f75.entry.js +2 -0
  805. package/dist/core/p-e0ec9f75.entry.js.map +1 -0
  806. package/dist/core/p-e61dceb2.entry.js +2 -0
  807. package/dist/core/p-e61dceb2.entry.js.map +1 -0
  808. package/dist/core/p-e74093c1.entry.js +2 -0
  809. package/dist/core/p-e74093c1.entry.js.map +1 -0
  810. package/dist/core/p-e9e584a0.entry.js +2 -0
  811. package/dist/core/p-e9e584a0.entry.js.map +1 -0
  812. package/dist/core/p-f27ac0f7.entry.js +2 -0
  813. package/dist/core/p-f27ac0f7.entry.js.map +1 -0
  814. package/dist/core/p-f3613f8a.entry.js +2 -0
  815. package/dist/core/p-f3613f8a.entry.js.map +1 -0
  816. package/dist/core/p-f6a01739.entry.js +2 -0
  817. package/dist/core/p-f6a01739.entry.js.map +1 -0
  818. package/dist/core/p-ffd60450.entry.js +2 -0
  819. package/dist/core/p-ffd60450.entry.js.map +1 -0
  820. package/dist/core/p-vN03FcXN.js +2 -0
  821. package/dist/core/p-vN03FcXN.js.map +1 -0
  822. package/dist/esm/Fragment-5itQzbON.js +6 -0
  823. package/dist/esm/Fragment-5itQzbON.js.map +1 -0
  824. package/dist/esm/accessibility-wqNV8djF.js +11 -0
  825. package/dist/esm/accessibility-wqNV8djF.js.map +1 -0
  826. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  827. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  828. package/dist/esm/array.utils-CJ0U_ONv.js +42 -0
  829. package/dist/esm/array.utils-CJ0U_ONv.js.map +1 -0
  830. package/dist/esm/attribute-Bz_RzYFb.js +99 -0
  831. package/dist/esm/attribute-Bz_RzYFb.js.map +1 -0
  832. package/dist/esm/colors-U40vKHrs.js +19 -0
  833. package/dist/esm/colors-U40vKHrs.js.map +1 -0
  834. package/dist/esm/constants-BNBB_29K.js +33 -0
  835. package/dist/esm/constants-BNBB_29K.js.map +1 -0
  836. package/dist/esm/constants-BegH8u6i.js +15 -0
  837. package/dist/esm/constants-BegH8u6i.js.map +1 -0
  838. package/dist/esm/constants-BiWo5BNa.js +13 -0
  839. package/dist/esm/constants-BiWo5BNa.js.map +1 -0
  840. package/dist/esm/constants-CysDgoMA.js +13 -0
  841. package/dist/esm/constants-CysDgoMA.js.map +1 -0
  842. package/dist/esm/constants-DHvN41Ek.js +32 -0
  843. package/dist/esm/constants-DHvN41Ek.js.map +1 -0
  844. package/dist/esm/constants-DbTQsVRc.js +23 -0
  845. package/dist/esm/constants-DbTQsVRc.js.map +1 -0
  846. package/dist/esm/constants-Du0ZtfYe.js +23 -0
  847. package/dist/esm/constants-Du0ZtfYe.js.map +1 -0
  848. package/dist/esm/constants-Q99QrOoi.js +23 -0
  849. package/dist/esm/constants-Q99QrOoi.js.map +1 -0
  850. package/dist/esm/constants-TT_l4YYj.js +24 -0
  851. package/dist/esm/constants-TT_l4YYj.js.map +1 -0
  852. package/dist/esm/constants-YOtDGTm5.js +23 -0
  853. package/dist/esm/constants-YOtDGTm5.js.map +1 -0
  854. package/dist/esm/constants-aqe7GX2n.js +16 -0
  855. package/dist/esm/constants-aqe7GX2n.js.map +1 -0
  856. package/dist/esm/constants-oYp2tkdN.js +22 -0
  857. package/dist/esm/constants-oYp2tkdN.js.map +1 -0
  858. package/dist/esm/core.js +7 -5
  859. package/dist/esm/core.js.map +1 -1
  860. package/dist/esm/form-DvhJiKwA.js +141 -0
  861. package/dist/esm/form-DvhJiKwA.js.map +1 -0
  862. package/dist/esm/gov-accordion-item.entry.js +18 -14
  863. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  864. package/dist/esm/gov-accordion.entry.js +15 -8
  865. package/dist/esm/gov-accordion.entry.js.map +1 -1
  866. package/dist/esm/gov-attachments.gov-attachments-item.gov-form-message.entry.js.map +1 -0
  867. package/dist/esm/gov-attachments_3.entry.js +22 -20
  868. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  869. package/dist/esm/gov-backdrop.entry.js +16 -11
  870. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  871. package/dist/esm/gov-banner.entry.js +19 -6
  872. package/dist/esm/gov-banner.entry.js.map +1 -1
  873. package/dist/esm/gov-blockquote.entry.js +6 -3
  874. package/dist/esm/gov-blockquote.entry.js.map +1 -1
  875. package/dist/esm/gov-breadcrumbs.entry.js +19 -11
  876. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  877. package/dist/esm/gov-button.entry.js +46 -30
  878. package/dist/esm/gov-button.entry.js.map +1 -1
  879. package/dist/esm/gov-card.entry.js +23 -13
  880. package/dist/esm/gov-card.entry.js.map +1 -1
  881. package/dist/esm/gov-chip.entry.js +30 -20
  882. package/dist/esm/gov-chip.entry.js.map +1 -1
  883. package/dist/esm/gov-container.entry.js +3 -2
  884. package/dist/esm/gov-container.entry.js.map +1 -1
  885. package/dist/esm/gov-control-group.entry.js +16 -6
  886. package/dist/esm/gov-control-group.entry.js.map +1 -1
  887. package/dist/esm/gov-cookiebar.entry.js +3 -2
  888. package/dist/esm/gov-cookiebar.entry.js.map +1 -1
  889. package/dist/esm/gov-dialog.entry.js +77 -13
  890. package/dist/esm/gov-dialog.entry.js.map +1 -1
  891. package/dist/esm/gov-dropdown.entry.js +15 -9
  892. package/dist/esm/gov-dropdown.entry.js.map +1 -1
  893. package/dist/esm/gov-empty.entry.js +25 -8
  894. package/dist/esm/gov-empty.entry.js.map +1 -1
  895. package/dist/esm/gov-error-code.entry.js +3 -2
  896. package/dist/esm/gov-error-code.entry.js.map +1 -1
  897. package/dist/esm/gov-flex.gov-icon.gov-theme-switch.entry.js.map +1 -0
  898. package/dist/esm/gov-flex_3.entry.js +49 -33
  899. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  900. package/dist/esm/gov-form-autocomplete.entry.js +43 -25
  901. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  902. package/dist/esm/gov-form-checkbox-group.entry.js +27 -18
  903. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  904. package/dist/esm/gov-form-checkbox.entry.js +38 -22
  905. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  906. package/dist/esm/gov-form-control.entry.js +32 -13
  907. package/dist/esm/gov-form-control.entry.js.map +1 -1
  908. package/dist/esm/gov-form-file.entry.js +60 -22
  909. package/dist/esm/gov-form-file.entry.js.map +1 -1
  910. package/dist/esm/gov-form-group.entry.js +15 -8
  911. package/dist/esm/gov-form-group.entry.js.map +1 -1
  912. package/dist/esm/gov-form-input.gov-skeleton.entry.js.map +1 -0
  913. package/dist/esm/gov-form-input_2.entry.js +67 -62
  914. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  915. package/dist/esm/gov-form-label.entry.js +17 -7
  916. package/dist/esm/gov-form-label.entry.js.map +1 -1
  917. package/dist/esm/gov-form-multi-select.entry.js +46 -34
  918. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  919. package/dist/esm/gov-form-password-power.entry.js +3 -3
  920. package/dist/esm/gov-form-password-power.entry.js.map +1 -1
  921. package/dist/esm/gov-form-radio-group.entry.js +25 -16
  922. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  923. package/dist/esm/gov-form-radio.entry.js +36 -22
  924. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  925. package/dist/esm/gov-form-range.entry.js +37 -30
  926. package/dist/esm/gov-form-range.entry.js.map +1 -1
  927. package/dist/esm/gov-form-search.entry.js +12 -5
  928. package/dist/esm/gov-form-search.entry.js.map +1 -1
  929. package/dist/esm/gov-form-select.entry.js +34 -29
  930. package/dist/esm/gov-form-select.entry.js.map +1 -1
  931. package/dist/esm/gov-form-switch.entry.js +38 -24
  932. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  933. package/dist/esm/gov-grid-item.entry.js +12 -13
  934. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  935. package/dist/esm/gov-grid.entry.js +6 -9
  936. package/dist/esm/gov-grid.entry.js.map +1 -1
  937. package/dist/esm/gov-infobar.entry.js +31 -12
  938. package/dist/esm/gov-infobar.entry.js.map +1 -1
  939. package/dist/esm/gov-layout-column.entry.js +5 -4
  940. package/dist/esm/gov-layout-column.entry.js.map +1 -1
  941. package/dist/esm/gov-layout.entry.js +11 -5
  942. package/dist/esm/gov-layout.entry.js.map +1 -1
  943. package/dist/esm/gov-lifecycle.entry.js +4 -3
  944. package/dist/esm/gov-lifecycle.entry.js.map +1 -1
  945. package/dist/esm/gov-link.entry.js +19 -11
  946. package/dist/esm/gov-link.entry.js.map +1 -1
  947. package/dist/esm/gov-loading.entry.js +11 -7
  948. package/dist/esm/gov-loading.entry.js.map +1 -1
  949. package/dist/esm/gov-message.entry.js +14 -7
  950. package/dist/esm/gov-message.entry.js.map +1 -1
  951. package/dist/esm/gov-pagination.entry.js +54 -17
  952. package/dist/esm/gov-pagination.entry.js.map +1 -1
  953. package/dist/esm/gov-spacer.entry.js +11 -8
  954. package/dist/esm/gov-spacer.entry.js.map +1 -1
  955. package/dist/esm/gov-stepper-item.entry.js +18 -12
  956. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  957. package/dist/esm/gov-stepper.entry.js +14 -10
  958. package/dist/esm/gov-stepper.entry.js.map +1 -1
  959. package/dist/esm/gov-tabs-item.entry.js +15 -13
  960. package/dist/esm/gov-tabs-item.entry.js.map +1 -1
  961. package/dist/esm/gov-tabs.entry.js +30 -14
  962. package/dist/esm/gov-tabs.entry.js.map +1 -1
  963. package/dist/esm/gov-tag.entry.js +20 -13
  964. package/dist/esm/gov-tag.entry.js.map +1 -1
  965. package/dist/esm/gov-tile.entry.js +12 -8
  966. package/dist/esm/gov-tile.entry.js.map +1 -1
  967. package/dist/esm/gov-toast.entry.js +27 -13
  968. package/dist/esm/gov-toast.entry.js.map +1 -1
  969. package/dist/esm/gov-tooltip-content.entry.js +23 -7
  970. package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
  971. package/dist/esm/gov-tooltip.entry.js +28 -13
  972. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  973. package/dist/esm/gov-wizard-item.entry.js +28 -13
  974. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  975. package/dist/esm/gov-wizard.entry.js +17 -15
  976. package/dist/esm/gov-wizard.entry.js.map +1 -1
  977. package/dist/esm/gov.log-BtqD9K8d.js +46 -0
  978. package/dist/esm/gov.log-BtqD9K8d.js.map +1 -0
  979. package/dist/esm/helpers-GYov8gU1.js +18 -0
  980. package/dist/esm/helpers-GYov8gU1.js.map +1 -0
  981. package/dist/esm/helpers.types-DNztiAH0.js +12 -0
  982. package/dist/esm/helpers.types-DNztiAH0.js.map +1 -0
  983. package/dist/esm/index-ClISz4NF.js +2714 -0
  984. package/dist/esm/index-ClISz4NF.js.map +1 -0
  985. package/dist/esm/index.js +1 -0
  986. package/dist/esm/index.js.map +1 -1
  987. package/dist/esm/loader.js +5 -4
  988. package/dist/esm/loader.js.map +1 -1
  989. package/dist/esm/props-CJZgTDla.js +15 -0
  990. package/dist/esm/props-CJZgTDla.js.map +1 -0
  991. package/dist/esm/sizes-BcQO4NH2.js +19 -0
  992. package/dist/esm/sizes-BcQO4NH2.js.map +1 -0
  993. package/dist/esm/stencil.utils-Cjg0wpDG.js +10 -0
  994. package/dist/esm/stencil.utils-Cjg0wpDG.js.map +1 -0
  995. package/dist/esm/string.utils-vN03FcXN.js +21 -0
  996. package/dist/esm/string.utils-vN03FcXN.js.map +1 -0
  997. package/dist/esm/template-BBOh2pxy.js +107 -0
  998. package/dist/esm/template-BBOh2pxy.js.map +1 -0
  999. package/dist/esm/utils-CQvUntGY.js +36 -0
  1000. package/dist/esm/utils-CQvUntGY.js.map +1 -0
  1001. package/dist/esm/wcag-CD6_13JO.js +52 -0
  1002. package/dist/esm/wcag-CD6_13JO.js.map +1 -0
  1003. package/dist/hydrate/index.d.ts +44 -7
  1004. package/dist/hydrate/index.js +3001 -1349
  1005. package/dist/hydrate/index.mjs +3000 -1348
  1006. package/dist/types/components/gov-button/button/gov-button.d.ts +5 -0
  1007. package/dist/types/components/gov-card/gov-card.d.ts +4 -0
  1008. package/dist/types/components/gov-chip/gov-chip.d.ts +1 -1
  1009. package/dist/types/components/gov-dialog/gov-dialog.d.ts +5 -2
  1010. package/dist/types/components/gov-empty/constants.d.ts +6 -0
  1011. package/dist/types/components/gov-empty/gov-empty.d.ts +5 -1
  1012. package/dist/types/components/gov-form/control/gov-form-control.d.ts +3 -3
  1013. package/dist/types/components/gov-form/file/constants.d.ts +1 -0
  1014. package/dist/types/components/gov-form/switch/constants.d.ts +1 -0
  1015. package/dist/types/components/gov-grid/gov-grid.d.ts +0 -4
  1016. package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +0 -4
  1017. package/dist/types/components/gov-stepper/stepper/constants.d.ts +21 -0
  1018. package/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +31 -0
  1019. package/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +22 -0
  1020. package/dist/types/components/gov-tile/gov-tile.d.ts +1 -1
  1021. package/dist/types/components.d.ts +447 -25
  1022. package/dist/types/core/constants/sizes.d.ts +1 -1
  1023. package/dist/types/pages/AttributeSection.d.ts +3 -0
  1024. package/dist/types/pages/Avatar.d.ts +3 -0
  1025. package/dist/types/pages/Badge.d.ts +3 -0
  1026. package/dist/types/pages/Collapsible.d.ts +3 -0
  1027. package/dist/types/pages/HorizontalStepper.d.ts +3 -0
  1028. package/dist/types/pages/UserNavigation.d.ts +24 -0
  1029. package/dist/types/stencil-public-runtime.d.ts +29 -1
  1030. package/dist/types/utils/dom.utils.d.ts +1 -0
  1031. package/dist/types/utils/object.utils.d.ts +1 -0
  1032. package/package.json +2 -2
  1033. package/dist/cjs/Fragment-52846f79.js +0 -7
  1034. package/dist/cjs/Fragment-52846f79.js.map +0 -1
  1035. package/dist/cjs/accessibility-c475826b.js +0 -15
  1036. package/dist/cjs/accessibility-c475826b.js.map +0 -1
  1037. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  1038. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  1039. package/dist/cjs/array.utils-211fffc0.js +0 -44
  1040. package/dist/cjs/array.utils-211fffc0.js.map +0 -1
  1041. package/dist/cjs/attribute-06dc5228.js +0 -102
  1042. package/dist/cjs/attribute-06dc5228.js.map +0 -1
  1043. package/dist/cjs/colors-f7c8eadd.js +0 -18
  1044. package/dist/cjs/colors-f7c8eadd.js.map +0 -1
  1045. package/dist/cjs/constants-47ba678b.js +0 -18
  1046. package/dist/cjs/constants-47ba678b.js.map +0 -1
  1047. package/dist/cjs/constants-49f0efa6.js +0 -36
  1048. package/dist/cjs/constants-49f0efa6.js.map +0 -1
  1049. package/dist/cjs/constants-7f713d6c.js +0 -27
  1050. package/dist/cjs/constants-7f713d6c.js.map +0 -1
  1051. package/dist/cjs/constants-82929d01.js +0 -27
  1052. package/dist/cjs/constants-82929d01.js.map +0 -1
  1053. package/dist/cjs/constants-87bab1ed.js +0 -14
  1054. package/dist/cjs/constants-87bab1ed.js.map +0 -1
  1055. package/dist/cjs/constants-a33f6e99.js +0 -25
  1056. package/dist/cjs/constants-a33f6e99.js.map +0 -1
  1057. package/dist/cjs/constants-b9fece07.js +0 -17
  1058. package/dist/cjs/constants-b9fece07.js.map +0 -1
  1059. package/dist/cjs/constants-c0886404.js +0 -28
  1060. package/dist/cjs/constants-c0886404.js.map +0 -1
  1061. package/dist/cjs/constants-c7447ffd.js +0 -29
  1062. package/dist/cjs/constants-c7447ffd.js.map +0 -1
  1063. package/dist/cjs/constants-c84c60d6.js +0 -15
  1064. package/dist/cjs/constants-c84c60d6.js.map +0 -1
  1065. package/dist/cjs/constants-e1bbb053.js +0 -27
  1066. package/dist/cjs/constants-e1bbb053.js.map +0 -1
  1067. package/dist/cjs/constants-f464dc4c.js +0 -36
  1068. package/dist/cjs/constants-f464dc4c.js.map +0 -1
  1069. package/dist/cjs/form-4e66039a.js +0 -158
  1070. package/dist/cjs/form-4e66039a.js.map +0 -1
  1071. package/dist/cjs/gov.log-bfea3151.js +0 -52
  1072. package/dist/cjs/gov.log-bfea3151.js.map +0 -1
  1073. package/dist/cjs/helpers-2ee3c9e6.js +0 -19
  1074. package/dist/cjs/helpers-2ee3c9e6.js.map +0 -1
  1075. package/dist/cjs/helpers.types-9066e4a4.js +0 -16
  1076. package/dist/cjs/helpers.types-9066e4a4.js.map +0 -1
  1077. package/dist/cjs/index-0e4f24f9.js +0 -2042
  1078. package/dist/cjs/index-0e4f24f9.js.map +0 -1
  1079. package/dist/cjs/props-d189860c.js +0 -16
  1080. package/dist/cjs/props-d189860c.js.map +0 -1
  1081. package/dist/cjs/sizes-89f8d3b2.js +0 -18
  1082. package/dist/cjs/sizes-89f8d3b2.js.map +0 -1
  1083. package/dist/cjs/stencil.utils-182382ee.js +0 -11
  1084. package/dist/cjs/stencil.utils-182382ee.js.map +0 -1
  1085. package/dist/cjs/string.utils-b84c81cf.js +0 -25
  1086. package/dist/cjs/string.utils-b84c81cf.js.map +0 -1
  1087. package/dist/cjs/template-39939fd6.js +0 -114
  1088. package/dist/cjs/template-39939fd6.js.map +0 -1
  1089. package/dist/cjs/utils-d263c5c6.js +0 -41
  1090. package/dist/cjs/utils-d263c5c6.js.map +0 -1
  1091. package/dist/cjs/wcag-f8da82da.js +0 -55
  1092. package/dist/cjs/wcag-f8da82da.js.map +0 -1
  1093. package/dist/collection/components/gov-stepper/constants.js +0 -20
  1094. package/dist/collection/components/gov-stepper/constants.js.map +0 -1
  1095. package/dist/collection/components/gov-stepper/gov-stepper-item.d.js.map +0 -1
  1096. package/dist/collection/components/gov-stepper/gov-stepper-item.js +0 -132
  1097. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +0 -1
  1098. package/dist/collection/components/gov-stepper/gov-stepper.js +0 -93
  1099. package/dist/collection/components/gov-stepper/gov-stepper.js.map +0 -1
  1100. package/dist/components/p-016bbea6.js +0 -2
  1101. package/dist/components/p-016bbea6.js.map +0 -1
  1102. package/dist/components/p-022e49cf.js +0 -2
  1103. package/dist/components/p-022e49cf.js.map +0 -1
  1104. package/dist/components/p-07165d99.js +0 -2
  1105. package/dist/components/p-07165d99.js.map +0 -1
  1106. package/dist/components/p-0b3574c2.js +0 -2
  1107. package/dist/components/p-0b3574c2.js.map +0 -1
  1108. package/dist/components/p-106a27de.js +0 -2
  1109. package/dist/components/p-106a27de.js.map +0 -1
  1110. package/dist/components/p-10cad7f1.js +0 -2
  1111. package/dist/components/p-10cad7f1.js.map +0 -1
  1112. package/dist/components/p-13ebd887.js +0 -2
  1113. package/dist/components/p-13ebd887.js.map +0 -1
  1114. package/dist/components/p-1c1d0bbe.js +0 -2
  1115. package/dist/components/p-1c1d0bbe.js.map +0 -1
  1116. package/dist/components/p-246216b9.js +0 -2
  1117. package/dist/components/p-246216b9.js.map +0 -1
  1118. package/dist/components/p-26618322.js +0 -2
  1119. package/dist/components/p-26618322.js.map +0 -1
  1120. package/dist/components/p-2ca5423c.js +0 -2
  1121. package/dist/components/p-2ca5423c.js.map +0 -1
  1122. package/dist/components/p-2d1d727d.js +0 -2
  1123. package/dist/components/p-2d1d727d.js.map +0 -1
  1124. package/dist/components/p-2fe7d728.js +0 -2
  1125. package/dist/components/p-2fe7d728.js.map +0 -1
  1126. package/dist/components/p-33d5d1ed.js +0 -2
  1127. package/dist/components/p-33d5d1ed.js.map +0 -1
  1128. package/dist/components/p-42200001.js +0 -3
  1129. package/dist/components/p-42200001.js.map +0 -1
  1130. package/dist/components/p-44a8a668.js +0 -2
  1131. package/dist/components/p-44a8a668.js.map +0 -1
  1132. package/dist/components/p-5aad3497.js +0 -2
  1133. package/dist/components/p-5aad3497.js.map +0 -1
  1134. package/dist/components/p-5c247bc2.js +0 -2
  1135. package/dist/components/p-5c247bc2.js.map +0 -1
  1136. package/dist/components/p-76d604c6.js +0 -2
  1137. package/dist/components/p-76d604c6.js.map +0 -1
  1138. package/dist/components/p-7ba4daf4.js +0 -2
  1139. package/dist/components/p-7ba4daf4.js.map +0 -1
  1140. package/dist/components/p-7f3becc5.js +0 -2
  1141. package/dist/components/p-7f3becc5.js.map +0 -1
  1142. package/dist/components/p-80c889e2.js +0 -2
  1143. package/dist/components/p-80c889e2.js.map +0 -1
  1144. package/dist/components/p-860520b0.js +0 -2
  1145. package/dist/components/p-860520b0.js.map +0 -1
  1146. package/dist/components/p-92f420cb.js +0 -2
  1147. package/dist/components/p-92f420cb.js.map +0 -1
  1148. package/dist/components/p-9908b9f0.js +0 -2
  1149. package/dist/components/p-9908b9f0.js.map +0 -1
  1150. package/dist/components/p-be086357.js +0 -2
  1151. package/dist/components/p-be086357.js.map +0 -1
  1152. package/dist/components/p-c61a5830.js +0 -2
  1153. package/dist/components/p-c61a5830.js.map +0 -1
  1154. package/dist/components/p-cd6c2938.js +0 -2
  1155. package/dist/components/p-cd6c2938.js.map +0 -1
  1156. package/dist/components/p-d1a59544.js +0 -2
  1157. package/dist/components/p-d1a59544.js.map +0 -1
  1158. package/dist/components/p-d4509899.js +0 -2
  1159. package/dist/components/p-d4509899.js.map +0 -1
  1160. package/dist/components/p-de989dfe.js +0 -2
  1161. package/dist/components/p-de989dfe.js.map +0 -1
  1162. package/dist/components/p-e0c3b1a7.js +0 -2
  1163. package/dist/components/p-e0c3b1a7.js.map +0 -1
  1164. package/dist/components/p-e0e2e9c1.js +0 -2
  1165. package/dist/components/p-e0e2e9c1.js.map +0 -1
  1166. package/dist/components/p-e8ec030e.js +0 -2
  1167. package/dist/components/p-e8ec030e.js.map +0 -1
  1168. package/dist/components/p-ea128b8b.js +0 -2
  1169. package/dist/components/p-ea128b8b.js.map +0 -1
  1170. package/dist/components/p-ea7fdd2e.js +0 -2
  1171. package/dist/components/p-ea7fdd2e.js.map +0 -1
  1172. package/dist/components/p-f7ca5e39.js +0 -2
  1173. package/dist/components/p-f7ca5e39.js.map +0 -1
  1174. package/dist/components/p-fc2afe61.js +0 -2
  1175. package/dist/components/p-fc2afe61.js.map +0 -1
  1176. package/dist/components/p-fcc6dd1d.js +0 -2
  1177. package/dist/components/p-fcc6dd1d.js.map +0 -1
  1178. package/dist/core/p-016bbea6.js +0 -2
  1179. package/dist/core/p-016bbea6.js.map +0 -1
  1180. package/dist/core/p-07590d84.entry.js +0 -2
  1181. package/dist/core/p-07590d84.entry.js.map +0 -1
  1182. package/dist/core/p-08552a0e.entry.js +0 -2
  1183. package/dist/core/p-08552a0e.entry.js.map +0 -1
  1184. package/dist/core/p-0b3574c2.js +0 -2
  1185. package/dist/core/p-0b3574c2.js.map +0 -1
  1186. package/dist/core/p-0c393d2f.entry.js +0 -2
  1187. package/dist/core/p-0c393d2f.entry.js.map +0 -1
  1188. package/dist/core/p-0ef1f684.entry.js +0 -2
  1189. package/dist/core/p-0ef1f684.entry.js.map +0 -1
  1190. package/dist/core/p-13ebd887.js +0 -2
  1191. package/dist/core/p-13ebd887.js.map +0 -1
  1192. package/dist/core/p-16ece889.entry.js +0 -2
  1193. package/dist/core/p-16ece889.entry.js.map +0 -1
  1194. package/dist/core/p-171e2a2f.entry.js +0 -2
  1195. package/dist/core/p-171e2a2f.entry.js.map +0 -1
  1196. package/dist/core/p-1c1d0bbe.js +0 -2
  1197. package/dist/core/p-1c1d0bbe.js.map +0 -1
  1198. package/dist/core/p-2536a8ff.entry.js +0 -2
  1199. package/dist/core/p-2536a8ff.entry.js.map +0 -1
  1200. package/dist/core/p-25615325.entry.js +0 -2
  1201. package/dist/core/p-25615325.entry.js.map +0 -1
  1202. package/dist/core/p-26618322.js +0 -2
  1203. package/dist/core/p-26618322.js.map +0 -1
  1204. package/dist/core/p-2a7bcce0.entry.js +0 -2
  1205. package/dist/core/p-2a7bcce0.entry.js.map +0 -1
  1206. package/dist/core/p-2ca5423c.js +0 -2
  1207. package/dist/core/p-2ca5423c.js.map +0 -1
  1208. package/dist/core/p-2f966102.entry.js +0 -2
  1209. package/dist/core/p-2f966102.entry.js.map +0 -1
  1210. package/dist/core/p-2fd53723.entry.js +0 -2
  1211. package/dist/core/p-2fd53723.entry.js.map +0 -1
  1212. package/dist/core/p-2fe7d728.js +0 -2
  1213. package/dist/core/p-2fe7d728.js.map +0 -1
  1214. package/dist/core/p-39d6e51d.entry.js +0 -2
  1215. package/dist/core/p-39d6e51d.entry.js.map +0 -1
  1216. package/dist/core/p-3b2267a1.entry.js +0 -2
  1217. package/dist/core/p-3b2267a1.entry.js.map +0 -1
  1218. package/dist/core/p-3bbb77a0.js +0 -2
  1219. package/dist/core/p-3bbb77a0.js.map +0 -1
  1220. package/dist/core/p-4216d8f3.entry.js +0 -2
  1221. package/dist/core/p-4216d8f3.entry.js.map +0 -1
  1222. package/dist/core/p-44c912e2.entry.js +0 -2
  1223. package/dist/core/p-44c912e2.entry.js.map +0 -1
  1224. package/dist/core/p-4d5f768f.entry.js +0 -2
  1225. package/dist/core/p-4d5f768f.entry.js.map +0 -1
  1226. package/dist/core/p-52042c7e.entry.js +0 -2
  1227. package/dist/core/p-52042c7e.entry.js.map +0 -1
  1228. package/dist/core/p-52103c05.entry.js +0 -2
  1229. package/dist/core/p-52103c05.entry.js.map +0 -1
  1230. package/dist/core/p-52bb8e4f.entry.js +0 -2
  1231. package/dist/core/p-52bb8e4f.entry.js.map +0 -1
  1232. package/dist/core/p-52c74fc5.entry.js +0 -2
  1233. package/dist/core/p-52c74fc5.entry.js.map +0 -1
  1234. package/dist/core/p-548806cb.entry.js +0 -2
  1235. package/dist/core/p-548806cb.entry.js.map +0 -1
  1236. package/dist/core/p-56efd4a2.js +0 -2
  1237. package/dist/core/p-56efd4a2.js.map +0 -1
  1238. package/dist/core/p-5aad3497.js +0 -2
  1239. package/dist/core/p-5aad3497.js.map +0 -1
  1240. package/dist/core/p-5f1000da.js +0 -2
  1241. package/dist/core/p-5f1000da.js.map +0 -1
  1242. package/dist/core/p-5fa4965e.entry.js +0 -2
  1243. package/dist/core/p-5fa4965e.entry.js.map +0 -1
  1244. package/dist/core/p-6d54ce5f.js +0 -2
  1245. package/dist/core/p-6d54ce5f.js.map +0 -1
  1246. package/dist/core/p-6f1ea21d.entry.js +0 -2
  1247. package/dist/core/p-6f1ea21d.entry.js.map +0 -1
  1248. package/dist/core/p-6f74eb08.entry.js +0 -2
  1249. package/dist/core/p-6f74eb08.entry.js.map +0 -1
  1250. package/dist/core/p-7385f6e8.entry.js +0 -2
  1251. package/dist/core/p-7385f6e8.entry.js.map +0 -1
  1252. package/dist/core/p-75dae924.entry.js +0 -2
  1253. package/dist/core/p-75dae924.entry.js.map +0 -1
  1254. package/dist/core/p-76d604c6.js +0 -2
  1255. package/dist/core/p-76d604c6.js.map +0 -1
  1256. package/dist/core/p-7ba4daf4.js +0 -2
  1257. package/dist/core/p-7ba4daf4.js.map +0 -1
  1258. package/dist/core/p-7f3becc5.js +0 -2
  1259. package/dist/core/p-7f3becc5.js.map +0 -1
  1260. package/dist/core/p-843f980a.entry.js +0 -2
  1261. package/dist/core/p-843f980a.entry.js.map +0 -1
  1262. package/dist/core/p-860520b0.js +0 -2
  1263. package/dist/core/p-860520b0.js.map +0 -1
  1264. package/dist/core/p-8a72ebcd.entry.js +0 -2
  1265. package/dist/core/p-8a72ebcd.entry.js.map +0 -1
  1266. package/dist/core/p-8cd7a120.entry.js +0 -2
  1267. package/dist/core/p-8cd7a120.entry.js.map +0 -1
  1268. package/dist/core/p-8f469270.entry.js +0 -2
  1269. package/dist/core/p-8f469270.entry.js.map +0 -1
  1270. package/dist/core/p-92f420cb.js +0 -2
  1271. package/dist/core/p-92f420cb.js.map +0 -1
  1272. package/dist/core/p-947804a8.entry.js +0 -2
  1273. package/dist/core/p-947804a8.entry.js.map +0 -1
  1274. package/dist/core/p-979ff58c.entry.js +0 -2
  1275. package/dist/core/p-979ff58c.entry.js.map +0 -1
  1276. package/dist/core/p-981f217e.entry.js +0 -2
  1277. package/dist/core/p-981f217e.entry.js.map +0 -1
  1278. package/dist/core/p-9ac55bd1.js +0 -2
  1279. package/dist/core/p-9ac55bd1.js.map +0 -1
  1280. package/dist/core/p-9c1f3e9e.entry.js +0 -2
  1281. package/dist/core/p-9c1f3e9e.entry.js.map +0 -1
  1282. package/dist/core/p-9dea2efa.js +0 -3
  1283. package/dist/core/p-9dea2efa.js.map +0 -1
  1284. package/dist/core/p-a440365f.entry.js +0 -2
  1285. package/dist/core/p-a440365f.entry.js.map +0 -1
  1286. package/dist/core/p-a70c7959.entry.js +0 -2
  1287. package/dist/core/p-a70c7959.entry.js.map +0 -1
  1288. package/dist/core/p-a8a7ae96.entry.js +0 -2
  1289. package/dist/core/p-a8a7ae96.entry.js.map +0 -1
  1290. package/dist/core/p-aacafa40.entry.js +0 -2
  1291. package/dist/core/p-aacafa40.entry.js.map +0 -1
  1292. package/dist/core/p-ac800db4.entry.js +0 -2
  1293. package/dist/core/p-ac800db4.entry.js.map +0 -1
  1294. package/dist/core/p-aeaba3ef.entry.js +0 -2
  1295. package/dist/core/p-aeaba3ef.entry.js.map +0 -1
  1296. package/dist/core/p-b87e5429.entry.js +0 -2
  1297. package/dist/core/p-b87e5429.entry.js.map +0 -1
  1298. package/dist/core/p-bca478fd.entry.js +0 -2
  1299. package/dist/core/p-bca478fd.entry.js.map +0 -1
  1300. package/dist/core/p-be086357.js +0 -2
  1301. package/dist/core/p-be086357.js.map +0 -1
  1302. package/dist/core/p-bea685cb.entry.js +0 -2
  1303. package/dist/core/p-bea685cb.entry.js.map +0 -1
  1304. package/dist/core/p-c61a5830.js +0 -2
  1305. package/dist/core/p-c61a5830.js.map +0 -1
  1306. package/dist/core/p-c88d8659.entry.js +0 -2
  1307. package/dist/core/p-c88d8659.entry.js.map +0 -1
  1308. package/dist/core/p-cba1ebca.entry.js +0 -2
  1309. package/dist/core/p-cba1ebca.entry.js.map +0 -1
  1310. package/dist/core/p-ccb64e4e.entry.js +0 -2
  1311. package/dist/core/p-ccb64e4e.entry.js.map +0 -1
  1312. package/dist/core/p-cd6c2938.js +0 -2
  1313. package/dist/core/p-cd6c2938.js.map +0 -1
  1314. package/dist/core/p-d3014dc5.entry.js +0 -2
  1315. package/dist/core/p-d3014dc5.entry.js.map +0 -1
  1316. package/dist/core/p-d383f977.entry.js +0 -2
  1317. package/dist/core/p-d383f977.entry.js.map +0 -1
  1318. package/dist/core/p-d45bcd43.entry.js +0 -2
  1319. package/dist/core/p-d45bcd43.entry.js.map +0 -1
  1320. package/dist/core/p-d990aae8.entry.js +0 -2
  1321. package/dist/core/p-d990aae8.entry.js.map +0 -1
  1322. package/dist/core/p-d9a299a4.js +0 -2
  1323. package/dist/core/p-d9a299a4.js.map +0 -1
  1324. package/dist/core/p-da1db6fd.js +0 -2
  1325. package/dist/core/p-da1db6fd.js.map +0 -1
  1326. package/dist/core/p-ddb3772f.entry.js +0 -2
  1327. package/dist/core/p-ddb3772f.entry.js.map +0 -1
  1328. package/dist/core/p-e0e2e9c1.js +0 -2
  1329. package/dist/core/p-e0e2e9c1.js.map +0 -1
  1330. package/dist/core/p-e1255160.js +0 -2
  1331. package/dist/core/p-e1255160.js.map +0 -1
  1332. package/dist/core/p-e2655cb7.entry.js +0 -2
  1333. package/dist/core/p-e2655cb7.entry.js.map +0 -1
  1334. package/dist/core/p-e29c9924.entry.js +0 -2
  1335. package/dist/core/p-e29c9924.entry.js.map +0 -1
  1336. package/dist/core/p-e7e00fe3.entry.js +0 -2
  1337. package/dist/core/p-e7e00fe3.entry.js.map +0 -1
  1338. package/dist/core/p-e8ec030e.js +0 -2
  1339. package/dist/core/p-e8ec030e.js.map +0 -1
  1340. package/dist/core/p-ea128b8b.js +0 -2
  1341. package/dist/core/p-ea128b8b.js.map +0 -1
  1342. package/dist/core/p-ea7fdd2e.js +0 -2
  1343. package/dist/core/p-ea7fdd2e.js.map +0 -1
  1344. package/dist/core/p-ead1f58d.entry.js +0 -2
  1345. package/dist/core/p-ead1f58d.entry.js.map +0 -1
  1346. package/dist/core/p-f83b3b08.entry.js +0 -2
  1347. package/dist/core/p-f83b3b08.entry.js.map +0 -1
  1348. package/dist/core/p-fc2afe61.js +0 -2
  1349. package/dist/core/p-fc2afe61.js.map +0 -1
  1350. package/dist/esm/Fragment-8d8d54fb.js +0 -5
  1351. package/dist/esm/Fragment-8d8d54fb.js.map +0 -1
  1352. package/dist/esm/accessibility-f83c991a.js +0 -13
  1353. package/dist/esm/accessibility-f83c991a.js.map +0 -1
  1354. package/dist/esm/app-globals-0f993ce5.js +0 -5
  1355. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  1356. package/dist/esm/array.utils-3b213795.js +0 -41
  1357. package/dist/esm/array.utils-3b213795.js.map +0 -1
  1358. package/dist/esm/attribute-5561aca4.js +0 -98
  1359. package/dist/esm/attribute-5561aca4.js.map +0 -1
  1360. package/dist/esm/colors-4cf64720.js +0 -18
  1361. package/dist/esm/colors-4cf64720.js.map +0 -1
  1362. package/dist/esm/constants-085f9943.js +0 -15
  1363. package/dist/esm/constants-085f9943.js.map +0 -1
  1364. package/dist/esm/constants-1548499a.js +0 -22
  1365. package/dist/esm/constants-1548499a.js.map +0 -1
  1366. package/dist/esm/constants-3ab65c42.js +0 -23
  1367. package/dist/esm/constants-3ab65c42.js.map +0 -1
  1368. package/dist/esm/constants-3b914c35.js +0 -23
  1369. package/dist/esm/constants-3b914c35.js.map +0 -1
  1370. package/dist/esm/constants-43f10674.js +0 -12
  1371. package/dist/esm/constants-43f10674.js.map +0 -1
  1372. package/dist/esm/constants-51f51588.js +0 -32
  1373. package/dist/esm/constants-51f51588.js.map +0 -1
  1374. package/dist/esm/constants-7b1ce2ec.js +0 -24
  1375. package/dist/esm/constants-7b1ce2ec.js.map +0 -1
  1376. package/dist/esm/constants-8429b68f.js +0 -22
  1377. package/dist/esm/constants-8429b68f.js.map +0 -1
  1378. package/dist/esm/constants-9177ea52.js +0 -31
  1379. package/dist/esm/constants-9177ea52.js.map +0 -1
  1380. package/dist/esm/constants-bc210662.js +0 -14
  1381. package/dist/esm/constants-bc210662.js.map +0 -1
  1382. package/dist/esm/constants-dc2115cb.js +0 -12
  1383. package/dist/esm/constants-dc2115cb.js.map +0 -1
  1384. package/dist/esm/constants-f0f531b6.js +0 -22
  1385. package/dist/esm/constants-f0f531b6.js.map +0 -1
  1386. package/dist/esm/form-713f26fd.js +0 -143
  1387. package/dist/esm/form-713f26fd.js.map +0 -1
  1388. package/dist/esm/gov.log-6b64cda6.js +0 -45
  1389. package/dist/esm/gov.log-6b64cda6.js.map +0 -1
  1390. package/dist/esm/helpers-5d179d4b.js +0 -17
  1391. package/dist/esm/helpers-5d179d4b.js.map +0 -1
  1392. package/dist/esm/helpers.types-fe2f0447.js +0 -11
  1393. package/dist/esm/helpers.types-fe2f0447.js.map +0 -1
  1394. package/dist/esm/index-bf8a6f64.js +0 -2011
  1395. package/dist/esm/index-bf8a6f64.js.map +0 -1
  1396. package/dist/esm/props-9d3c7ac1.js +0 -14
  1397. package/dist/esm/props-9d3c7ac1.js.map +0 -1
  1398. package/dist/esm/sizes-5b9e579f.js +0 -18
  1399. package/dist/esm/sizes-5b9e579f.js.map +0 -1
  1400. package/dist/esm/stencil.utils-f3c6c68d.js +0 -9
  1401. package/dist/esm/stencil.utils-f3c6c68d.js.map +0 -1
  1402. package/dist/esm/string.utils-1da8f8fb.js +0 -20
  1403. package/dist/esm/string.utils-1da8f8fb.js.map +0 -1
  1404. package/dist/esm/template-7ecee4d1.js +0 -106
  1405. package/dist/esm/template-7ecee4d1.js.map +0 -1
  1406. package/dist/esm/utils-e10e994d.js +0 -35
  1407. package/dist/esm/utils-e10e994d.js.map +0 -1
  1408. package/dist/esm/wcag-bd11d341.js +0 -51
  1409. package/dist/esm/wcag-bd11d341.js.map +0 -1
  1410. package/dist/types/components/gov-stepper/constants.d.ts +0 -21
  1411. package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +0 -31
  1412. package/dist/types/components/gov-stepper/gov-stepper.d.ts +0 -22
  1413. package/loader/package.json +0 -11
  1414. /package/dist/collection/components/gov-stepper/{gov-stepper-item.d.js → stepper/gov-stepper-item.d.js} +0 -0
  1415. /package/dist/types/components/gov-stepper/{gov-stepper-item.d.d.ts → stepper/gov-stepper-item.d.d.ts} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as o,H as r,c as a,h as g,d as e}from"./p-42200001.js";import{d as i,a as t,b as p,c as l}from"./p-fc2afe61.js";import{g as n}from"./p-ea7fdd2e.js";import{v as m}from"./p-0b3574c2.js";import{t as f}from"./p-26618322.js";const v="gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0;margin-bottom:0;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:var(--gap, var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:var(--gap, var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:var(--gap, var(--spacing-m))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:var(--gap, var(--spacing-l))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:var(--gap, var(--spacing-xl))}";const s=v;const c=o(class o extends r{constructor(){super();this.__registerHost();this.govChange=a(this,"gov-change",7);this.handleChange=o=>{o.stopPropagation();this.value=o.detail.value;this.govChange.emit({value:this.value,component:i.root})};this.gap=undefined;this.orientation="vertical";this.value=undefined;this.h=n(this.host)}validateGap(o){if(o){m(p,o,t.root)}}validateOrientation(o){if(o){m(l,o,t.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation)}componentDidRender(){f((()=>this.rerenderComponent()))}rerenderComponent(){this.host.querySelectorAll("gov-form-radio").forEach((o=>{if(!o.hasAttribute("listener-attached")){o.addEventListener("gov-change",this.handleChange)}o.setAttribute("listener-attached","true");o.checked=o.value===this.value}))}render(){return g(e,{key:"332ec3c5c0582167e5543304daa8508cc354ecc5",gap:this.gap,class:this.h.classes(t.root),value:this.value},g("slot",{key:"7bfbcec04a7f39226709c9546dbd0f121678d075"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}static get style(){return s}},[4,"gov-form-radio-group",{gap:[1],orientation:[1],value:[1025]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function u(){if(typeof customElements==="undefined"){return}const o=["gov-form-radio-group"];o.forEach((o=>{switch(o){case"gov-form-radio-group":if(!customElements.get(o)){customElements.define(o,c)}break}}))}u();const h=c;const d=u;export{h as GovFormRadioGroup,d as defineCustomElement};
1
+ import{p as o,H as r,c as a,h as g,a as e}from"./index.js";import{d as i,F as t,a as p,b as m}from"./p-BUmDydor.js";import{g as l}from"./p-DfJDyRCE.js";import{v as n}from"./p-BKP-F1qP.js";import{t as f}from"./p-Cjg0wpDG.js";const v='gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0;margin-bottom:0;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:make-var("gap", var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:make-var("gap", var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:make-var("gap", var(--spacing-m))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:make-var("gap", var(--spacing-l))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:make-var("gap", var(--spacing-xl))}';const s=o(class o extends r{constructor(){super();this.__registerHost();this.govChange=a(this,"gov-change");this.gap=undefined;this.orientation="vertical";this.value=undefined;this.handleChange=o=>{o.stopPropagation();this.value=o.detail.value;this.govChange.emit({value:this.value,component:i.root})};this.h=l(this.host)}validateGap(o){if(o){n(p,o,t.root)}}validateOrientation(o){if(o){n(m,o,t.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation)}componentDidRender(){f((()=>this.rerenderComponent()))}rerenderComponent(){this.host.querySelectorAll("gov-form-radio").forEach((o=>{if(!o.hasAttribute("listener-attached")){o.addEventListener("gov-change",this.handleChange)}o.setAttribute("listener-attached","true");o.checked=o.value===this.value}))}render(){return g(e,{key:"f5d9641f18787c21c13898a8d80159326161e676",gap:this.gap,class:this.h.classes(t.root),value:this.value},g("slot",{key:"81b46ef337551d1f31b9b7f7d5bb32a620f0fb69"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}static get style(){return v}},[4,"gov-form-radio-group",{gap:[1],orientation:[1],value:[1025]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function u(){if(typeof customElements==="undefined"){return}const o=["gov-form-radio-group"];o.forEach((o=>{switch(o){case"gov-form-radio-group":if(!customElements.get(o)){customElements.define(o,s)}break}}))}u();const c=s;const h=u;export{c as GovFormRadioGroup,h as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-radio-group.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["govFormGroupCss","GovFormRadioGroupStyle0","GovFormRadioGroup","proxyCustomElement","H","constructor","this","handleChange","event","stopPropagation","value","detail","govChange","emit","component","FormRadioGroupClass","root","undefined","h","govHost","host","validateGap","newValue","validateProp","FormGroupSizes","FormGroupClass","validateOrientation","FormGroupOrientation","componentWillLoad","gap","orientation","componentDidRender","tick","rerenderComponent","querySelectorAll","forEach","element","hasAttribute","addEventListener","setAttribute","checked","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-form/group/gov-form-group.scss?tag=gov-form-radio-group","../../../packages/core/src/components/gov-form/group/gov-form-radio-group.tsx"],"sourcesContent":["/* Form Control */\n\n\ngov-form-group, .gov-form-group,\ngov-form-radio-group, .gov-form-radio-group,\ngov-form-checkbox-group, .gov-form-checkbox-group {\n\t// VARIABLES\n\t@import \"./gov-form-group-variables\";\n\n\t@include reset-margin();\n\t@include base(flex);\n\tflex-direction: column;\n\talign-items: flex-start;\n\t.gov-form-label__label {\n\t\tmargin: 0;\n\t}\n\n\t&[orientation=\"horizontal\"] {\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\t.gov-form-label__label {\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t// SIZES\n\t@each $size, $definitions in $form-group-gaps {\n\t\t&[gap=\"#{$size}\"] {\n\t\t\tgap: map-get($definitions, \"gap\");\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {\n\tFormGroupClass,\n\tFormGroupOrientation,\n\tFormGroupOrientationType,\n\tFormGroupSizes,\n\tFormGroupSizesType,\n\tFormRadioGroupClass\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormRadioEvent} from \"../radio/gov-form-radio.types\"\nimport {FormRadioGroupEvent} from \"./gov-form-group.types\"\nimport {tick} from \"../../../utils/stencil.utils\"\n\n@Component({\n\ttag: \"gov-form-radio-group\",\n\tstyleUrl: \"gov-form-group.scss\",\n})\nexport class GovFormRadioGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovFormGroupElement\n\t/**\n\t * Gap's size.\n\t */\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\n\t/**\n\t * Elements orientation\n\t */\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\t/**\n\t * Group's value\n\t */\n\t@Prop({attribute: \"value\", mutable: true}) value?: string = undefined\n\t/**\n\t * Emitted when the checkbox change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioGroupEvent>\n\n\t@Watch(\"gap\")\n\tvalidateGap(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\t@Watch(\"orientation\")\n\tvalidateOrientation(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupOrientation, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\thandleChange = (event: CustomEvent<FormRadioEvent>) => {\n\t\tevent.stopPropagation()\n\t\tthis.value = event.detail.value\n\t\tthis.govChange.emit({\n\t\t\tvalue: this.value,\n\t\t\tcomponent: FormRadioGroupClass.root,\n\t\t})\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateGap(this.gap)\n\t\tthis.validateOrientation(this.orientation)\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.rerenderComponent())\n\t}\n\n\trerenderComponent(): void {\n\t\tthis.host.querySelectorAll('gov-form-radio').forEach((element) => {\n\t\t\tif (!element.hasAttribute('listener-attached')) {\n\t\t\t\telement.addEventListener('gov-change', this.handleChange)\n\t\t\t}\n\t\t\telement.setAttribute('listener-attached', 'true')\n\t\t\telement.checked = element.value === this.value;\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)} value={this.value}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"qOAAA,MAAMA,EAAkB,usEACxB,MAAAC,EAAeD,E,MCmBFE,EAAiBC,EAAA,MAAAD,UAAAE,EAG7B,WAAAC,G,oEAoCAC,KAAAC,aAAgBC,IACfA,EAAMC,kBACNH,KAAKI,MAAQF,EAAMG,OAAOD,MAC1BJ,KAAKM,UAAUC,KAAK,CACnBH,MAAOJ,KAAKI,MACZI,UAAWC,EAAoBC,MAC9B,E,SAlCyCC,U,iBAIc,W,WAIEA,UAf3DX,KAAKY,EAAIC,EAAQb,KAAKc,K,CAsBvB,WAAAC,CAAYC,GACX,GAAIA,EAAU,CACbC,EAAaC,EAAgBF,EAAUG,EAAeT,K,EAKxD,mBAAAU,CAAoBJ,GACnB,GAAIA,EAAU,CACbC,EAAaI,EAAsBL,EAAUG,EAAeT,K,EAa9D,iBAAAY,GACCtB,KAAKe,YAAYf,KAAKuB,KACtBvB,KAAKoB,oBAAoBpB,KAAKwB,Y,CAG/B,kBAAAC,GACCC,GAAK,IAAM1B,KAAK2B,qB,CAGjB,iBAAAA,GACC3B,KAAKc,KAAKc,iBAAiB,kBAAkBC,SAASC,IACrD,IAAKA,EAAQC,aAAa,qBAAsB,CAC/CD,EAAQE,iBAAiB,aAAchC,KAAKC,a,CAE7C6B,EAAQG,aAAa,oBAAqB,QAC1CH,EAAQI,QAAUJ,EAAQ1B,QAAUJ,KAAKI,KAAK,G,CAIhD,MAAA+B,GACC,OACCvB,EAACwB,EAAI,CAAAC,IAAA,2CAACd,IAAKvB,KAAKuB,IAAKe,MAAOtC,KAAKY,EAAE2B,QAAQpB,EAAeT,MAAON,MAAOJ,KAAKI,OAC5EQ,EAAA,QAAAyB,IAAA,6C","ignoreList":[]}
1
+ {"version":3,"names":["govFormGroupCss","GovFormRadioGroup","__stencil_proxyCustomElement","HTMLElement","constructor","this","gap","undefined","orientation","value","handleChange","event","stopPropagation","detail","govChange","emit","component","FormRadioGroupClass","root","h","govHost","host","validateGap","newValue","validateProp","FormGroupSizes","FormGroupClass","validateOrientation","FormGroupOrientation","componentWillLoad","componentDidRender","tick","rerenderComponent","querySelectorAll","forEach","element","hasAttribute","addEventListener","setAttribute","checked","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-form/group/gov-form-group.scss?tag=gov-form-radio-group","../../../packages/core/src/components/gov-form/group/gov-form-radio-group.tsx"],"sourcesContent":["/* Form Control */\n\n\ngov-form-group, .gov-form-group,\ngov-form-radio-group, .gov-form-radio-group,\ngov-form-checkbox-group, .gov-form-checkbox-group {\n\t// VARIABLES\n\t@import \"./gov-form-group-variables\";\n\n\t@include reset-margin();\n\t@include base(flex);\n\tflex-direction: column;\n\talign-items: flex-start;\n\t.gov-form-label__label {\n\t\tmargin: 0;\n\t}\n\n\t&[orientation=\"horizontal\"] {\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\t.gov-form-label__label {\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t// SIZES\n\t@each $size, $definitions in $form-group-gaps {\n\t\t&[gap=\"#{$size}\"] {\n\t\t\tgap: map-get($definitions, \"gap\");\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {\n\tFormGroupClass,\n\tFormGroupOrientation,\n\tFormGroupOrientationType,\n\tFormGroupSizes,\n\tFormGroupSizesType,\n\tFormRadioGroupClass\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormRadioEvent} from \"../radio/gov-form-radio.types\"\nimport {FormRadioGroupEvent} from \"./gov-form-group.types\"\nimport {tick} from \"../../../utils/stencil.utils\"\n\n@Component({\n\ttag: \"gov-form-radio-group\",\n\tstyleUrl: \"gov-form-group.scss\",\n})\nexport class GovFormRadioGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovFormGroupElement\n\t/**\n\t * Gap's size.\n\t */\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\n\t/**\n\t * Elements orientation\n\t */\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\t/**\n\t * Group's value\n\t */\n\t@Prop({attribute: \"value\", mutable: true}) value?: string = undefined\n\t/**\n\t * Emitted when the checkbox change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioGroupEvent>\n\n\t@Watch(\"gap\")\n\tvalidateGap(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\t@Watch(\"orientation\")\n\tvalidateOrientation(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupOrientation, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\thandleChange = (event: CustomEvent<FormRadioEvent>) => {\n\t\tevent.stopPropagation()\n\t\tthis.value = event.detail.value\n\t\tthis.govChange.emit({\n\t\t\tvalue: this.value,\n\t\t\tcomponent: FormRadioGroupClass.root,\n\t\t})\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateGap(this.gap)\n\t\tthis.validateOrientation(this.orientation)\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.rerenderComponent())\n\t}\n\n\trerenderComponent(): void {\n\t\tthis.host.querySelectorAll('gov-form-radio').forEach((element) => {\n\t\t\tif (!element.hasAttribute('listener-attached')) {\n\t\t\t\telement.addEventListener('gov-change', this.handleChange)\n\t\t\t}\n\t\t\telement.setAttribute('listener-attached', 'true')\n\t\t\telement.checked = element.value === this.value;\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)} value={this.value}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"gOAAA,MAAMA,EAAkB,guE,MCoBXC,EAAiBC,EAAA,MAAAD,UAAAE,EAG7B,WAAAC,G,kEAQiBC,KAAGC,IAAwBC,UAI3BF,KAAWG,YAA8B,WAIfH,KAAKI,MAAYF,UAoB5DF,KAAAK,aAAgBC,IACfA,EAAMC,kBACNP,KAAKI,MAAQE,EAAME,OAAOJ,MAC1BJ,KAAKS,UAAUC,KAAK,CACnBN,MAAOJ,KAAKI,MACZO,UAAWC,EAAoBC,MAC9B,EAzCFb,KAAKc,EAAIC,EAAQf,KAAKgB,KACtB,CAqBD,WAAAC,CAAYC,GACX,GAAIA,EAAU,CACbC,EAAaC,EAAgBF,EAAUG,EAAeR,K,EAKxD,mBAAAS,CAAoBJ,GACnB,GAAIA,EAAU,CACbC,EAAaI,EAAsBL,EAAUG,EAAeR,K,EAa9D,iBAAAW,GACCxB,KAAKiB,YAAYjB,KAAKC,KACtBD,KAAKsB,oBAAoBtB,KAAKG,Y,CAG/B,kBAAAsB,GACCC,GAAK,IAAM1B,KAAK2B,qB,CAGjB,iBAAAA,GACC3B,KAAKgB,KAAKY,iBAAiB,kBAAkBC,SAASC,IACrD,IAAKA,EAAQC,aAAa,qBAAsB,CAC/CD,EAAQE,iBAAiB,aAAchC,KAAKK,a,CAE7CyB,EAAQG,aAAa,oBAAqB,QAC1CH,EAAQI,QAAUJ,EAAQ1B,QAAUJ,KAAKI,KAAK,G,CAIhD,MAAA+B,GACC,OACCrB,EAACsB,EAAK,CAAAC,IAAA,2CAAApC,IAAKD,KAAKC,IAAKqC,MAAOtC,KAAKc,EAAEyB,QAAQlB,EAAeR,MAAOT,MAAOJ,KAAKI,OAC5EU,EAAa,QAAAuB,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as i,c as s,h as e,d as h}from"./p-42200001.js";import{c as a}from"./p-cd6c2938.js";import{v as n}from"./p-0b3574c2.js";import{g as o,j as r,k as d}from"./p-9908b9f0.js";import{g as l,c,t as u}from"./p-ea7fdd2e.js";import{F as f}from"./p-1c1d0bbe.js";import{i as m,A as p,a as v}from"./p-33d5d1ed.js";const b=t(class t extends i{constructor(){super();this.__registerHost();this.govFocus=s(this,"gov-focus",7);this.govBlur=s(this,"gov-blur",7);this.govChange=s(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.inheritedAttributes={};this.radioId=a("GovRadio");this.h=l(this.host);this.f=o(this.h)}validateSize(t){n(d,t,r.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",c(this.invalid));this.f.passAttrToControl("disabled",c(this.disabled));this.f.passAttrToControl("type","radio")}componentWillLoad(){this.inheritedAttributes=m(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(v)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.radioId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}render(){const t=t=>{if(this.noLabel){return e("label",{class:r.label},t)}return t};return e(h,{class:r.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:u(this.invalid)},t(e(f,null,e("input",Object.assign({class:r.input,id:this.identifier||this.radioId,type:"radio",value:this.value,name:this.name,checked:this.checked,disabled:this.disabled,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:t=>this.inputRef=t,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":u(this.required),"aria-invalid":u(this.invalid),"aria-disabled":u(this.disabled)})),e("span",null,e("slot",{name:"label"})))))}onClickHandler(t){t.stopPropagation()}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-radio",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[1],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-form-radio"];t.forEach((t=>{switch(t){case"gov-form-radio":if(!customElements.get(t)){customElements.define(t,b)}break}}))}g();const C=b;const k=g;export{C as GovFormRadio,k as defineCustomElement};
1
+ import{p as t,H as i,c as s,h as e,a}from"./index.js";import{c as h}from"./p-vN03FcXN.js";import{v as o}from"./p-BKP-F1qP.js";import{g as n,l as r,m as l}from"./p-9imLQpxb.js";import{g as c,t as d,c as u}from"./p-DfJDyRCE.js";import{F as m}from"./p-5itQzbON.js";import{i as f,A as p,a as v}from"./p-CXgom82_.js";const b=t(class t extends i{constructor(){super();this.__registerHost();this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govChange=s(this,"gov-change");this.hydrated=false;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.size="m";this.inheritedAttributes={};this.radioId=h("GovRadio");this.h=c(this.host);this.f=n(this.h)}validateSize(t){o(l,t,r.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("type","radio")}componentWillLoad(){this.inheritedAttributes=f(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(v)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.radioId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}render(){const t=t=>{if(this.noLabel){return e("label",{class:r.label},t)}return t};return e(a,{class:r.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:u(this.invalid)},t(e(m,null,e("input",Object.assign({class:r.input,id:this.identifier||this.radioId,type:"radio",value:this.value,name:this.name,checked:this.checked,disabled:this.disabled,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:t=>this.inputRef=t,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":u(this.required),"aria-invalid":u(this.invalid),"aria-disabled":u(this.disabled)})),e("span",null,e("slot",{name:"label"})))))}onClickHandler(t){t.stopPropagation()}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-radio",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[1],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-form-radio"];t.forEach((t=>{switch(t){case"gov-form-radio":if(!customElements.get(t)){customElements.define(t,b)}break}}))}g();const C=b;const k=g;export{C as GovFormRadio,k as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-radio.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GovFormRadio","proxyCustomElement","H","constructor","this","hydrated","radioId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormRadioSizes","FormRadioClass","root","watchControlAttrs","passControlAttrs","passAttrToControl","size","toBoolAttr","invalid","disabled","componentWillLoad","inheritedAttributes","inheritAriaAttributes","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentDidRender","passAttrToLabel","identifier","String","required","connectedCallback","disconnectedCallback","_a","stopObserving","removeAttribute","Object","assign","render","wrapRadio","children","noLabel","class","label","Host","checked","toBoolAttrIfDefined","Fragment","input","id","type","value","name","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef"],"sources":["../../../packages/core/src/components/gov-form/radio/gov-form-radio.tsx"],"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"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["GovFormRadio","__stencil_proxyCustomElement","HTMLElement","constructor","this","hydrated","noLabel","checked","required","disabled","size","inheritedAttributes","radioId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormRadioSizes","FormRadioClass","root","watchControlAttrs","passControlAttrs","passAttrToControl","toBoolAttr","invalid","componentWillLoad","inheritAriaAttributes","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentDidRender","passAttrToLabel","identifier","String","connectedCallback","disconnectedCallback","_a","stopObserving","removeAttribute","Object","assign","render","wrapRadio","children","class","label","Host","toBoolAttrIfDefined","Fragment","input","id","type","value","name","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef"],"sources":["../../../packages/core/src/components/gov-form/radio/gov-form-radio.tsx"],"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"],"mappings":"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,d as n}from"./p-42200001.js";import{p as o}from"./p-e0e2e9c1.js";import{S as a}from"./p-92f420cb.js";import{g as h,c as r,t as c}from"./p-ea7fdd2e.js";import{v as d}from"./p-0b3574c2.js";import{A as l,a as u,i as f}from"./p-33d5d1ed.js";import{g as m}from"./p-9908b9f0.js";import{t as p}from"./p-26618322.js";import{b as v}from"./p-2fe7d728.js";import{c as b}from"./p-cd6c2938.js";import{d as g}from"./p-80c889e2.js";import{d as j}from"./p-106a27de.js";import{d as w}from"./p-d1a59544.js";const A=o(a,["_S","_M","_L"]);const y={root:"gov-form-range",fill:"gov-form-range--fill",input:"gov-form-range--input"};const C=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govInput=i(this,"gov-input",7);this.size="m";this.value=undefined;this.identifier=undefined;this.name=undefined;this.min=undefined;this.max=undefined;this.step=undefined;this.tooltip=false;this.input=false;this.listIdentifier=undefined;this.required=false;this.success=undefined;this.invalid=undefined;this.disabled=false;this.inheritedAttributes={};this.h=h(this.host);this.f=m(this.h);this.inputId=b("GovInput")}validateSize(t){d(A,t,y.root)}watchValue(){this.controlOutputPosition()}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid))}get getThumbWidth(){const t=window.getComputedStyle(this.inputRef);return parseFloat(t.getPropertyValue("--thumb-size"))||1}controlOutputPosition(){const t=+this.value;const s=+this.inputRef.min;const i=+this.inputRef.max;const e=this.getThumbWidth*16;const n=this.inputRef.offsetWidth;const o=(t-s)/(i-s)*100;let a=o/100*(n-e)+e/2;if(this.outputRef){this.outputRef.textContent=this.value;const t=this.outputRef.offsetWidth/2;this.outputRef.style.left=`${a-t}px`}if(this.fillRef){this.fillRef.style.width=`${a}px`}}componentDidLoad(){this.attributeObserver=new l(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(u)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=f(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));p(this.controlOutputPosition.bind(this))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){return e(n,{key:"87236e8cdb0534dbefc72286517c353d41860260",class:y.root,size:this.size},this.h.hasSlot("prefix")&&e("slot",{key:"83f2b5ff50d7638d1e13de9e0f4774d747a8e374",name:"prefix"}),e("span",{key:"7cef4eac6144ee71dd6b3ffcdc2e992f33f97740",class:"element"},e("input",Object.assign({key:"1c2fda25454dc11bdfab17065f07bb38959a2941",type:"range",ref:t=>this.inputRef=t,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":c(this.required),"aria-invalid":c(this.invalid),"aria-disabled":c(this.disabled)})),e("div",{key:"bdece1cc0cad1614eb090e9183d9dd96389b7568",class:y.fill,ref:t=>this.fillRef=t}),this.tooltip?e("output",{htmlFor:this.name,ref:t=>this.outputRef=t},this.value):null,e("slot",{key:"4e346163e119d7508942a31bc35b28acd807bdb3",name:"datalist"})),this.h.hasSlot("sufix")&&e("slot",{key:"3faaf9ba94069c9a7f3a147e9a6ecfec7a38edc7",name:"sufix"}),this.input?e("gov-form-input",Object.assign({"on-gov-input":this.onCustomInputHandler.bind(this),class:y.input,size:this.size,value:this.value,disabled:this.disabled},this.inheritedAttributes)):null)}onCustomInputHandler(t){const s=t.target.value;if(this.step&&v(+this.step)){const i=+s;const e=+this.min;const n=+this.max;const o=+this.step;if(isNaN(i)){return false}if(i<e||i>n){return false}const a=i-e;if(a%o!==0){return false}this.value=s;this.govInput.emit({component:y.root,value:this.value,originalEvent:t})}}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:y.root,value:this.value,originalEvent:t})}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:y.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:y.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[4,"gov-form-range",{size:[1],value:[1537],identifier:[1],name:[1],min:[8],max:[8],step:[8],tooltip:[4],input:[4],listIdentifier:[1,"list-identifier"],required:[516],success:[516],invalid:[516],disabled:[516],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-range","gov-button","gov-form-input","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-range":if(!customElements.get(t)){customElements.define(t,C)}break;case"gov-button":if(!customElements.get(t)){g()}break;case"gov-form-input":if(!customElements.get(t)){j()}break;case"gov-icon":if(!customElements.get(t)){w()}break}}))}k();const x=C;const z=k;export{x as GovFormRange,z as defineCustomElement};
1
+ import{p as t,H as s,c as i,h as e,a as o}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{g as h,t as r,c}from"./p-DfJDyRCE.js";import{v as l}from"./p-BKP-F1qP.js";import{A as u,a as d,i as f}from"./p-CXgom82_.js";import{g as m}from"./p-9imLQpxb.js";import{t as p}from"./p-Cjg0wpDG.js";import{b as v}from"./p-B3tdsiZv.js";import{c as g}from"./p-vN03FcXN.js";import{d as b}from"./p-DxCeyMKq.js";import{d as C}from"./p-CNRG3ZtC.js";import{d as j}from"./p-D82BPGeo.js";const w=a(n,["_S","_M","_L"]);const y={root:"gov-form-range",fill:"gov-form-range--fill",input:"gov-form-range--input"};const A=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.size="m";this.tooltip=false;this.input=false;this.required=false;this.disabled=false;this.inheritedAttributes={};this.h=h(this.host);this.f=m(this.h);this.inputId=g("GovInput")}validateSize(t){l(w,t,y.root)}watchValue(){this.controlOutputPosition()}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid))}get getThumbWidth(){const t=window.getComputedStyle(this.inputRef);return parseFloat(t.getPropertyValue("--thumb-size"))||1}controlOutputPosition(){const t=+this.value;const s=+this.inputRef.min;const i=+this.inputRef.max;const e=this.getThumbWidth*16;const o=this.inputRef.offsetWidth;const a=(t-s)/(i-s)*100;let n=a/100*(o-e)+e/2;if(this.outputRef){this.outputRef.textContent=this.value;const t=this.outputRef.offsetWidth/2;this.outputRef.style.left=`${n-t}px`}if(this.fillRef){this.fillRef.style.width=`${n}px`}}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=f(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));p(this.controlOutputPosition.bind(this))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){return e(o,{key:"263e214c6c36967aaa1d8ec4f33d23d0eec5c92d",class:y.root,size:this.size},this.h.hasSlot("prefix")&&e("slot",{key:"43e08e8d199572845578b1e95c7c012908555bc8",name:"prefix"}),e("span",{key:"89d4176b4f234a4cf83f15a0676710e530ee8d96",class:"element"},e("input",Object.assign({key:"97de040cc35b22aa0c07bfd9654062803cc75c8b",type:"range",ref:t=>this.inputRef=t,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":c(this.required),"aria-invalid":c(this.invalid),"aria-disabled":c(this.disabled)})),e("div",{key:"601626b0b79a7a62022cc61071961bd0b5b9ebe2",class:y.fill,ref:t=>this.fillRef=t}),this.tooltip?e("output",{htmlFor:this.name,ref:t=>this.outputRef=t},this.value):null,e("slot",{key:"f814e896acf10712ecfa34a8d6fa7f9b1d575a4e",name:"datalist"})),this.h.hasSlot("sufix")&&e("slot",{key:"432a47e6df6cd4c6aea28e3063f06e9debc0dc32",name:"sufix"}),this.input?e("gov-form-input",Object.assign({"on-gov-input":this.onCustomInputHandler.bind(this),class:y.input,size:this.size,value:this.value,disabled:this.disabled},this.inheritedAttributes)):null)}onCustomInputHandler(t){const s=t.target.value;if(this.step&&v(+this.step)){const i=+s;const e=+this.min;const o=+this.max;const a=+this.step;if(isNaN(i)){return false}if(i<e||i>o){return false}const n=i-e;if(n%a!==0){return false}this.value=s;this.govInput.emit({component:y.root,value:this.value,originalEvent:t})}}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:y.root,value:this.value,originalEvent:t})}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:y.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:y.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[4,"gov-form-range",{size:[1],value:[1537],identifier:[1],name:[1],min:[8],max:[8],step:[8],tooltip:[4],input:[4],listIdentifier:[1,"list-identifier"],required:[516],success:[516],invalid:[516],disabled:[516],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function x(){if(typeof customElements==="undefined"){return}const t=["gov-form-range","gov-button","gov-form-input","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-range":if(!customElements.get(t)){customElements.define(t,A)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-input":if(!customElements.get(t)){C()}break;case"gov-icon":if(!customElements.get(t)){j()}break}}))}x();const k=A;const E=x;export{k as GovFormRange,E as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-range.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FormRangeSizes","pick","Sizes","FormRangeClass","root","fill","input","GovFormRange","proxyCustomElement","H","constructor","this","h","govHost","host","f","govForm","inputId","createID","validateSize","newValue","validateProp","watchValue","controlOutputPosition","watchControlAttrs","passControlAttrs","passAttrToControl","size","toBoolAttr","success","disabled","invalid","getThumbWidth","styles","window","getComputedStyle","inputRef","parseFloat","getPropertyValue","valueInt","value","min","max","thumbWidth","rangeWidth","offsetWidth","percentage","tooltipOffset","outputRef","textContent","outputWidth","style","left","fillRef","width","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","inheritedAttributes","inheritAriaAttributes","componentDidRender","passAttrToLabel","String","required","tick","bind","removeAttribute","Object","assign","disconnectedCallback","_a","stopObserving","render","Host","key","class","hasSlot","name","type","ref","el","onInput","onInputHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","id","identifier","step","list","listIdentifier","toBoolAttrIfDefined","tooltip","htmlFor","onCustomInputHandler","e","target","isNumber","numValue","numMin","numMax","numStep","isNaN","diff","govInput","emit","component","originalEvent","stopPropagation","govFocus","govBlur","setFocus","options","focus","setValue","clearValue","getRef"],"sources":["../../../packages/core/src/components/gov-form/range/constants.ts","../../../packages/core/src/components/gov-form/range/gov-form-range.tsx"],"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","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"],"mappings":"4gBAIO,MAAMA,EAAiBC,EAAKC,EAAO,CAAC,KAAM,KAAM,OAGhD,MAAMC,EAAiB,CAC7BC,KAAM,iBACNC,KAAM,uBACNC,MAAO,yB,MCSKC,EAAYC,EAAA,MAAAD,UAAAE,EASxB,WAAAC,G,kJAU6C,I,0IA4BR,M,WAIF,M,4CAQiB,M,4DAYA,M,yBAiCT,GA9F1CC,KAAKC,EAAIC,EAAQF,KAAKG,MACtBH,KAAKI,EAAIC,EAAQL,KAAKC,GACtBD,KAAKM,QAAUC,EAAS,W,CA2EzB,YAAAC,CAAaC,GACZC,EAAarB,EAAgBoB,EAAUjB,EAAeC,K,CAIvD,UAAAkB,GACCX,KAAKY,uB,CAON,iBAAAC,GACCb,KAAKc,kB,CAKE,gBAAAA,GACPd,KAAKI,EAAEW,kBAAkB,OAAQf,KAAKgB,MACtChB,KAAKI,EAAEW,kBAAkB,UAAWE,EAAWjB,KAAKkB,UACpDlB,KAAKI,EAAEW,kBAAkB,WAAYE,EAAWjB,KAAKmB,WACrDnB,KAAKI,EAAEW,kBAAkB,UAAWE,EAAWjB,KAAKoB,S,CAGrD,iBAAYC,GACX,MAAMC,EAASC,OAAOC,iBAAiBxB,KAAKyB,UAC5C,OAAOC,WAAWJ,EAAOK,iBAAiB,kBAAoB,C,CAGvD,qBAAAf,GACP,MAAMgB,GAAY5B,KAAK6B,MACvB,MAAMC,GAAO9B,KAAKyB,SAASK,IAC3B,MAAMC,GAAO/B,KAAKyB,SAASM,IAE3B,MAAMC,EAAchC,KAAKqB,cAAgB,GACzC,MAAMY,EAAajC,KAAKyB,SAASS,YACjC,MAAMC,GAAeP,EAAWE,IAAQC,EAAMD,GAAQ,IAEtD,IAAIM,EAAkBD,EAAa,KAAQF,EAAaD,GAAgBA,EAAa,EAErF,GAAIhC,KAAKqC,UAAW,CACnBrC,KAAKqC,UAAUC,YAActC,KAAK6B,MAClC,MAAMU,EAAcvC,KAAKqC,UAAUH,YAAc,EACjDlC,KAAKqC,UAAUG,MAAMC,KAAO,GAAGL,EAAgBG,K,CAEhD,GAAIvC,KAAK0C,QAAS,CACjB1C,KAAK0C,QAAQF,MAAMG,MAAQ,GAAGP,K,EAIhC,gBAAAQ,GACC5C,KAAK6C,kBAAoB,IAAIC,EAAkB9C,KAAKG,MAAM,CAAC4C,EAAetC,KACzET,KAAKgD,sBAAsBD,EAAetC,EAAS,IAGpDT,KAAK6C,kBAAkBI,eAAeC,E,CAGvC,iBAAAC,GACCnD,KAAKQ,aAAaR,KAAKgB,MAEvBhB,KAAKoD,oBAAsBC,EAAsBrD,KAAKG,K,CAGvD,kBAAAmD,GACCtD,KAAKc,mBACLd,KAAKI,EAAEmD,gBAAgB,WAAYC,OAAOxD,KAAKyD,WAC/CC,EAAK1D,KAAKY,sBAAsB+C,KAAK3D,M,CAGtC,qBAAAgD,CAAsBD,EAAuBtC,GAC5CT,KAAKG,KAAKyD,gBAAgBb,GAC1B/C,KAAKoD,oBAAmBS,OAAAC,OAAAD,OAAAC,OAAA,GAAO9D,KAAKoD,qBAAmB,CAAEL,CAACA,GAAgBtC,G,CAG3E,oBAAAsD,G,OACCC,EAAAhE,KAAK6C,qBAAiB,MAAAmB,SAAA,SAAAA,EAAEC,e,CAGzB,MAAAC,GACC,OACCjE,EAACkE,EAAI,CAAAC,IAAA,2CAACC,MAAO7E,EAAeC,KAAMuB,KAAMhB,KAAKgB,MAC3ChB,KAAKC,EAAEqE,QAAQ,WAAarE,EAAA,QAAAmE,IAAA,2CAAMG,KAAK,WACxCtE,EAAA,QAAAmE,IAAA,2CAAMC,MAAM,WACXpE,EAAA,QAAA4D,OAAAC,OAAA,CAAAM,IAAA,2CAAOI,KAAK,QACRC,IAAKC,GAAO1E,KAAKyB,SAAWiD,EAC5BC,QAAS3E,KAAK4E,eAAejB,KAAK3D,MAClC6E,QAAS7E,KAAK8E,eAAenB,KAAK3D,MAClC+E,OAAQ/E,KAAKgF,cAAcrB,KAAK3D,MAChCiF,GAAIjF,KAAKkF,YAAclF,KAAKM,QAC5BiE,KAAMvE,KAAKuE,KACXzC,IAAK9B,KAAK8B,IACVC,IAAK/B,KAAK+B,IACVoD,KAAMnF,KAAKmF,KACXC,KAAMpF,KAAKqF,eACXxD,MAAO7B,KAAK6B,MACZ4B,SAAUzD,KAAKyD,SACftC,SAAUnB,KAAKmB,UACXnB,KAAKoD,oBAAmB,iBACbkC,EAAoBtF,KAAKyD,UAAS,eACnC6B,EAAoBtF,KAAKoB,SAAQ,gBAChCkE,EAAoBtF,KAAKmB,aAE5ClB,EAAA,OAAAmE,IAAA,2CAAKC,MAAO7E,EAAeE,KAAM+E,IAAKC,GAAO1E,KAAK0C,QAAUgC,IAC3D1E,KAAKuF,QACLtF,EAAA,UAAQuF,QAASxF,KAAKuE,KAAME,IAAKC,GAAO1E,KAAKqC,UAAYqC,GACvD1E,KAAK6B,OAEL,KACH5B,EAAA,QAAAmE,IAAA,2CAAMG,KAAK,cAEXvE,KAAKC,EAAEqE,QAAQ,UAAYrE,EAAA,QAAAmE,IAAA,2CAAMG,KAAK,UACtCvE,KAAKL,MACLM,EAAA,iBAAA4D,OAAAC,OAAA,gBACe9D,KAAKyF,qBAAqB9B,KAAK3D,MAC7CqE,MAAO7E,EAAeG,MACtBqB,KAAMhB,KAAKgB,KACXa,MAAO7B,KAAK6B,MACZV,SAAUnB,KAAKmB,UACXnB,KAAKoD,sBAER,K,CAKN,oBAAAqC,CAAqBC,GACpB,MAAM7D,EAAS6D,EAAEC,OAA4B9D,MAC7C,GAAI7B,KAAKmF,MAAQS,GAAU5F,KAAKmF,MAAO,CACtC,MAAMU,GAAYhE,EAClB,MAAMiE,GAAU9F,KAAK8B,IACrB,MAAMiE,GAAU/F,KAAK+B,IACrB,MAAMiE,GAAWhG,KAAKmF,KAEtB,GAAIc,MAAMJ,GAAW,CACpB,OAAO,K,CAGR,GAAIA,EAAWC,GAAUD,EAAWE,EAAQ,CAC3C,OAAO,K,CAER,MAAMG,EAAOL,EAAWC,EACxB,GAAII,EAAOF,IAAY,EAAG,CACzB,OAAO,K,CAGRhG,KAAK6B,MAAQA,EACb7B,KAAKmG,SAASC,KAAK,CAClBC,UAAW7G,EAAeC,KAC1BoC,MAAO7B,KAAK6B,MACZyE,cAAeZ,G,EAKV,cAAAd,CAAec,GACtB1F,KAAK6B,MAAS6D,EAAEC,OAA4B9D,MAC5C6D,EAAEa,kBACFvG,KAAKmG,SAASC,KAAK,CAClBC,UAAW7G,EAAeC,KAC1BoC,MAAO7B,KAAK6B,MACZyE,cAAeZ,G,CAIT,cAAAZ,CAAeY,GACtBA,EAAEa,kBACFvG,KAAKwG,SAASJ,KAAK,CAClBC,UAAW7G,EAAeC,KAC1BoC,MAAO7B,KAAK6B,MACZyE,cAAeZ,G,CAIT,aAAAV,CAAcU,GACrBA,EAAEa,kBACFvG,KAAKyG,QAAQL,KAAK,CACjBC,UAAW7G,EAAeC,KAC1BoC,MAAO7B,KAAK6B,MACZyE,cAAeZ,G,CAQjB,cAAMgB,CAASC,GACd,OAAO3G,KAAKyB,SAASmF,MAAMD,E,CAO5B,cAAME,CAAShF,GACd7B,KAAK6B,MAAQA,C,CAOd,gBAAMiF,GACL9G,KAAK6B,MAAQ,GACb7B,KAAKyB,SAASI,MAAQ,E,CAOvB,YAAMkF,GACL,OAAO/G,KAAKyB,Q","ignoreList":[]}
1
+ {"version":3,"names":["FormRangeSizes","pick","Sizes","FormRangeClass","root","fill","input","GovFormRange","__stencil_proxyCustomElement","HTMLElement","constructor","this","size","tooltip","required","disabled","inheritedAttributes","h","govHost","host","f","govForm","inputId","createID","validateSize","newValue","validateProp","watchValue","controlOutputPosition","watchControlAttrs","passControlAttrs","passAttrToControl","toBoolAttr","success","invalid","getThumbWidth","styles","window","getComputedStyle","inputRef","parseFloat","getPropertyValue","valueInt","value","min","max","thumbWidth","rangeWidth","offsetWidth","percentage","tooltipOffset","outputRef","textContent","outputWidth","style","left","fillRef","width","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","inheritAriaAttributes","componentDidRender","passAttrToLabel","String","tick","bind","removeAttribute","Object","assign","disconnectedCallback","_a","stopObserving","render","Host","key","class","hasSlot","name","type","ref","el","onInput","onInputHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","id","identifier","step","list","listIdentifier","toBoolAttrIfDefined","htmlFor","onCustomInputHandler","e","target","isNumber","numValue","numMin","numMax","numStep","isNaN","diff","govInput","emit","component","originalEvent","stopPropagation","govFocus","govBlur","setFocus","options","focus","setValue","clearValue","getRef"],"sources":["../../../packages/core/src/components/gov-form/range/constants.ts","../../../packages/core/src/components/gov-form/range/gov-form-range.tsx"],"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","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"],"mappings":"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,h as t,d as o}from"./p-42200001.js";import{C as r}from"./p-5aad3497.js";import{p as a}from"./p-e0e2e9c1.js";import{S as c}from"./p-92f420cb.js";a(c,["_S","_M","_L"]);a(r,["PRIMARY","NEUTRAL"]);const n={root:"gov-form-search"};const f=e(class e extends s{constructor(){super();this.__registerHost();this.size="m";this.color="neutral"}render(){return t(o,{key:"aac69369eafa76eee7e1117601008ac8d34b5417",class:n.root,color:this.color,size:this.size},t("slot",{key:"7f20815a61d662cbfde7f85f40e45277c5494315",name:"input"}),t("slot",{key:"d2db24dda8aad0577f8d84ea39377df3dd1b9b19",name:"button-erase"}),t("slot",{key:"d7f38530eb623e1f230e0ec42db0a68f775eec8e",name:"button"}))}get host(){return this}},[4,"gov-form-search",{size:[1],color:[513]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-form-search"];e.forEach((e=>{switch(e){case"gov-form-search":if(!customElements.get(e)){customElements.define(e,f)}break}}))}m();const d=f;const i=m;export{d as GovFormSearch,i as defineCustomElement};
1
+ import{p as e,H as s,h as t,a as o}from"./index.js";import{C as r}from"./p-U40vKHrs.js";import{p as c}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";c(a,["_S","_M","_L"]);c(r,["PRIMARY","NEUTRAL"]);const n={root:"gov-form-search"};const f=e(class e extends s{constructor(){super();this.__registerHost();this.size="m";this.color="neutral"}render(){return t(o,{key:"0eaf52ea1460cab6cee82e453a92d24efc9457e1",class:n.root,color:this.color,size:this.size},t("slot",{key:"79481e7e6ad6fd2b241be41964f513354e42e40c",name:"input"}),t("slot",{key:"beeebbf1f8eb023aa165bbf0a1b2d84f393dec98",name:"button-erase"}),t("slot",{key:"685e0f84c5ebef1a32b26c4c25f8c9b5d20b254b",name:"button"}))}get host(){return this}},[4,"gov-form-search",{size:[1],color:[513]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-form-search"];e.forEach((e=>{switch(e){case"gov-form-search":if(!customElements.get(e)){customElements.define(e,f)}break}}))}m();const i=f;const b=m;export{i as GovFormSearch,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-search.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pick","Sizes","Colors","FormSearchClass","root","GovFormSearch","proxyCustomElement","H","render","h","Host","key","class","color","this","size","name"],"sources":["../../../packages/core/src/components/gov-form/search/constants.ts","../../../packages/core/src/components/gov-form/search/gov-form-search.tsx"],"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","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"],"mappings":"qKAK+BA,EAAKC,EAAO,CAAC,KAAM,KAAM,OAGxBD,EAAKE,EAAQ,CAAC,UAAW,YAGlD,MAAMC,EAAkB,CAC9BC,KAAM,mB,MCNMC,EAAaC,EAAA,MAAAD,UAAAE,E,sDAKqB,I,WAIe,S,CAE7D,MAAAC,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOT,EAAgBC,KAAMS,MAAOC,KAAKD,MAAOE,KAAMD,KAAKC,MAChEN,EAAA,QAAAE,IAAA,2CAAMK,KAAK,UACXP,EAAA,QAAAE,IAAA,2CAAMK,KAAK,iBACXP,EAAA,QAAAE,IAAA,2CAAMK,KAAK,W","ignoreList":[]}
1
+ {"version":3,"names":["pick","Sizes","Colors","FormSearchClass","root","GovFormSearch","__stencil_proxyCustomElement","HTMLElement","constructor","this","size","color","render","h","Host","key","class","name"],"sources":["../../../packages/core/src/components/gov-form/search/constants.ts","../../../packages/core/src/components/gov-form/search/gov-form-search.tsx"],"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","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"],"mappings":"gKAK+BA,EAAKC,EAAO,CAAC,KAAM,KAAM,OAGxBD,EAAKE,EAAQ,CAAC,UAAW,YAGlD,MAAMC,EAAkB,CAC9BC,KAAM,mB,MCNMC,EAAaC,EAAA,MAAAD,UAAAE,EAH1B,WAAAC,G,8BAQkBC,KAAIC,KAAyB,IAIdD,KAAKE,MAAwB,SAW7D,CATA,MAAAC,GACC,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOb,EAAgBC,KAAMO,MAAOF,KAAKE,MAAOD,KAAMD,KAAKC,MAChEG,EAAM,QAAAE,IAAA,2CAAAE,KAAK,UACXJ,EAAM,QAAAE,IAAA,2CAAAE,KAAK,iBACXJ,EAAA,QAAAE,IAAA,2CAAME,KAAK,W","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-2d1d727d.js";const d=o;const t=s;export{d as GovFormSelect,t as defineCustomElement};
1
+ import{G as o,d as s}from"./p-DkoI3xas.js";const t=o;const a=s;export{t as GovFormSelect,a as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-select.js.map
@@ -1,2 +1,2 @@
1
- import{p as i,H as s,c as t,h as e,d as h}from"./p-42200001.js";import{c as a}from"./p-cd6c2938.js";import{v as n}from"./p-0b3574c2.js";import{g as o,n as c,o as d}from"./p-9908b9f0.js";import{g as r,c as l,t as u}from"./p-ea7fdd2e.js";import{F as m}from"./p-1c1d0bbe.js";import{A as f,a as p,i as b}from"./p-33d5d1ed.js";import{d as v}from"./p-d1a59544.js";const g=i(class i extends s{constructor(){super();this.__registerHost();this.govFocus=t(this,"gov-focus",7);this.govBlur=t(this,"gov-blur",7);this.govChange=t(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=r(this.host);this.f=o(this.h)}validateSize(i){n(d,i,c.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new f(this.host,((i,s)=>{this.onAriaAttributeChange(i,s)}));this.attributeObserver.startObserving(p)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=b(this.host)}disconnectedCallback(){var i;(i=this.attributeObserver)===null||i===void 0?void 0:i.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(i,s){this.host.removeAttribute(i);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[i]:s})}render(){const i=i=>{if(this.noLabel){return e("label",{class:c.label},i)}return i};return e(h,{class:this.h.classes(c.root),hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:u(this.invalid)},i(e(m,null,e("input",Object.assign({class:c.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:i=>this.inputRef=i,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":u(this.required),"aria-invalid":u(this.invalid),"aria-disabled":u(this.disabled)})),e("span",null,e("span",{class:c.indicator},this.checked&&e("gov-icon",{name:"check-lg",type:"components"})),e("slot",{name:"label"})))))}onClickHandler(i){i.stopPropagation()}onFocusHandler(i){i.stopPropagation();this.govFocus.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onBlurHandler(i){i.stopPropagation();this.govBlur.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onChangeHandler(i){this.checked=i.target.checked;i.stopPropagation();this.govChange.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}},[4,"gov-form-switch",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[513],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}]);function k(){if(typeof customElements==="undefined"){return}const i=["gov-form-switch","gov-icon"];i.forEach((i=>{switch(i){case"gov-form-switch":if(!customElements.get(i)){customElements.define(i,g)}break;case"gov-icon":if(!customElements.get(i)){v()}break}}))}k();const w=g;const j=k;export{w as GovFormSwitch,j as defineCustomElement};
1
+ import{p as i,H as s,c as t,h as e,a as h}from"./index.js";import{c as a}from"./p-vN03FcXN.js";import{v as n}from"./p-BKP-F1qP.js";import{g as o,n as c,o as l}from"./p-9imLQpxb.js";import{g as r,t as d,c as m}from"./p-DfJDyRCE.js";import{F as u}from"./p-5itQzbON.js";import{A as p,a as b,i as v}from"./p-CXgom82_.js";import{d as f}from"./p-D82BPGeo.js";const g=i(class i extends s{constructor(){super();this.__registerHost();this.govFocus=t(this,"gov-focus");this.govBlur=t(this,"gov-blur");this.govChange=t(this,"gov-change");this.hydrated=false;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.size="m";this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=r(this.host);this.f=o(this.h)}validateSize(i){n(l,i,c.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new p(this.host,((i,s)=>{this.onAriaAttributeChange(i,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=v(this.host)}disconnectedCallback(){var i;(i=this.attributeObserver)===null||i===void 0?void 0:i.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(i,s){this.host.removeAttribute(i);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[i]:s})}render(){const i=i=>{if(this.noLabel){return e("label",{class:c.label},i)}return i};const s=!this.host.querySelector('[slot="label"]');const t=`${this.h.classes(c.root)}${s?` ${c.noLabel}`:""}`;return e(h,{class:t,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},i(e(u,null,e("input",Object.assign({class:c.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:i=>this.inputRef=i,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("span",{class:c.indicator},this.checked&&e("gov-icon",{name:"check-lg",type:"components"})),e("slot",{name:"label"})))))}onClickHandler(i){i.stopPropagation()}onFocusHandler(i){i.stopPropagation();this.govFocus.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onBlurHandler(i){i.stopPropagation();this.govBlur.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onChangeHandler(i){this.checked=i.target.checked;i.stopPropagation();this.govChange.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}},[4,"gov-form-switch",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[513],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}]);function k(){if(typeof customElements==="undefined"){return}const i=["gov-form-switch","gov-icon"];i.forEach((i=>{switch(i){case"gov-form-switch":if(!customElements.get(i)){customElements.define(i,g)}break;case"gov-icon":if(!customElements.get(i)){f()}break}}))}k();const w=g;const D=k;export{w as GovFormSwitch,D as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-switch.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GovFormSwitch","proxyCustomElement","H","constructor","this","hydrated","checkboxId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormSwitchSizes","FormSwitchClass","root","watchDisabled","passControlAttrs","passAttrToControl","size","toBoolAttr","invalid","disabled","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","_a","stopObserving","componentDidRender","passAttrToLabel","identifier","String","required","connectedCallback","removeAttribute","Object","assign","render","wrapCheckbox","children","noLabel","class","label","Host","classes","checked","toBoolAttrIfDefined","Fragment","input","id","type","value","name","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","indicator","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"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 {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} 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 {FormSwitchEvent} from \"./gov-form-switch.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-form-switch\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\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 * Switch 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 */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop({reflect: true}) readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch 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 switch has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@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\", \"switch\")\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.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\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\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 wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label class={FormSwitchClass.label}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} hydrated={this.hydrated} checked={this.checked}\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\ttype=\"checkbox\"\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\tdisabled={this.disabled}\n\t\t\t\t\t\t\tchecked={this.checked}\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<span class={FormSwitchClass.indicator}>\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\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: Event) {\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: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\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: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\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: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\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"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["GovFormSwitch","__stencil_proxyCustomElement","HTMLElement","constructor","this","hydrated","noLabel","checked","required","disabled","size","inheritedAttributes","checkboxId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormSwitchSizes","FormSwitchClass","root","watchDisabled","passControlAttrs","passAttrToControl","toBoolAttr","invalid","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","inheritAriaAttributes","disconnectedCallback","_a","stopObserving","componentDidRender","passAttrToLabel","identifier","String","connectedCallback","removeAttribute","Object","assign","render","wrapSwitch","children","class","label","noLabelSlot","querySelector","hostClasses","classes","Host","toBoolAttrIfDefined","Fragment","input","id","type","value","name","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","indicator","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"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 {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} 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 {FormSwitchEvent} from \"./gov-form-switch.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-form-switch\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\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 * Switch 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 */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop({reflect: true}) readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch 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 switch has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@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\", \"switch\")\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.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\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\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 wrapSwitch = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label class={FormSwitchClass.label}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\tconst noLabelSlot = !this.host.querySelector('[slot=\"label\"]');\n\t\tconst hostClasses = `${this.h.classes(FormSwitchClass.root)}${noLabelSlot ? ` ${FormSwitchClass.noLabel}` : ''}`;\n\n\t\treturn (\n\t\t\t<Host class={hostClasses} hydrated={this.hydrated} checked={this.checked}\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapSwitch(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\ttype=\"checkbox\"\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\tdisabled={this.disabled}\n\t\t\t\t\t\t\tchecked={this.checked}\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<span class={FormSwitchClass.indicator}>\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\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: Event) {\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: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\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: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\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: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\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"],"mappings":"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as s,H as e,h as n,d as t}from"./p-42200001.js";import{a as o}from"./p-ea128b8b.js";import{g as i}from"./p-ea7fdd2e.js";const d=s(class s extends e{constructor(){super();this.__registerHost();this.column="12";this.columnSm=undefined;this.columnMd=undefined;this.columnLg=undefined;this.columnXl=undefined;this.row="1";this.rowSm=undefined;this.rowMd=undefined;this.rowLg=undefined;this.rowXl=undefined;this.h=i(this.host)}render(){return n(t,{key:"30f35aa2a7d4c2456164b6f0001a915796a07b9c",class:this.h.classes(o.root),role:"listitem"},n("slot",{key:"25e3d4f401f56697a3f90abd01b9add8fa1d238b"}))}get host(){return this}},[4,"gov-grid-item",{column:[1,"col-span"],columnSm:[1,"col-span-sm"],columnMd:[1,"col-span-md"],columnLg:[1,"col-span-lg"],columnXl:[1,"col-span-xl"],row:[1,"row-span"],rowSm:[1,"row-span-sm"],rowMd:[1,"row-span-md"],rowLg:[1,"row-span-lg"],rowXl:[1,"row-span-xl"]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-grid-item"];s.forEach((s=>{switch(s){case"gov-grid-item":if(!customElements.get(s)){customElements.define(s,d)}break}}))}r();const a=d;const m=r;export{a as GovGridItem,m as defineCustomElement};
1
+ import{p as s,H as o,h as t,a as n}from"./index.js";import{a as r}from"./p-C6JN9gdb.js";import{g as e}from"./p-DfJDyRCE.js";const c=s(class s extends o{constructor(){super();this.__registerHost();this.column="12";this.row="1";this.h=e(this.host)}render(){return t(n,{key:"0c2d26293ed16bc14937027e056cb1f43e997cdd",class:this.h.classes(r.root),role:"listitem"},t("slot",{key:"c4817953375997bd6d1a361145a2bf19452ad563"}))}get host(){return this}},[4,"gov-grid-item",{column:[1,"col-span"],columnSm:[1,"col-span-sm"],columnMd:[1,"col-span-md"],columnLg:[1,"col-span-lg"],columnXl:[1,"col-span-xl"],row:[1,"row-span"],rowSm:[1,"row-span-sm"],rowMd:[1,"row-span-md"],rowLg:[1,"row-span-lg"],rowXl:[1,"row-span-xl"]}]);function m(){if(typeof customElements==="undefined"){return}const s=["gov-grid-item"];s.forEach((s=>{switch(s){case"gov-grid-item":if(!customElements.get(s)){customElements.define(s,c)}break}}))}m();const i=c;const l=m;export{i as GovGridItem,l as defineCustomElement};
2
2
  //# sourceMappingURL=gov-grid-item.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GovGridItem","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","GridItemClass","root","role"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid-item.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span' }) readonly column: string = \"12\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-sm' }) readonly columnSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-md' }) readonly columnMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-lg' }) readonly columnLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-xl' }) readonly columnXl?: string\n\t/**\n\t * Connects rows in the grid\n\t */\n\t@Prop({ attribute: 'row-span' }) readonly row: string = \"1\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-sm' }) readonly rowSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-md' }) readonly rowMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-lg' }) readonly rowLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-xl' }) readonly rowXl?: string\n\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"uIAQaA,EAAWC,EAAA,MAAAD,UAAAE,EAGvB,WAAAC,G,0CAQ2D,K,yGAoBH,I,oFA3BvDC,KAAKC,EAAIC,EAAQF,KAAKG,K,CA8CvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CACJC,MAAOP,KAAKC,EAAEO,QAAQC,EAAcC,MACpCC,KAAK,YAELV,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
1
+ {"version":3,"names":["GovGridItem","__stencil_proxyCustomElement","HTMLElement","constructor","this","column","row","h","govHost","host","render","Host","key","class","classes","GridItemClass","root","role"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid-item.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span' }) readonly column: string = \"12\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-sm' }) readonly columnSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-md' }) readonly columnMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-lg' }) readonly columnLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-xl' }) readonly columnXl?: string\n\t/**\n\t * Connects rows in the grid\n\t */\n\t@Prop({ attribute: 'row-span' }) readonly row: string = \"1\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-sm' }) readonly rowSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-md' }) readonly rowMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-lg' }) readonly rowLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-xl' }) readonly rowXl?: string\n\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"kIAQaA,EAAWC,EAAA,MAAAD,UAAAE,EAGvB,WAAAC,G,8BAQ0CC,KAAMC,OAAW,KAoBjBD,KAAGE,IAAW,IA3BvDF,KAAKG,EAAIC,EAAQJ,KAAKK,KACtB,CA6CD,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CACJC,MAAOT,KAAKG,EAAEO,QAAQC,EAAcC,MACpCC,KAAK,YAELV,EAAQ,QAAAK,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as s,H as e,h as t,d as i}from"./p-42200001.js";import{G as n}from"./p-ea128b8b.js";import{g as o}from"./p-ea7fdd2e.js";const r=s(class s extends e{constructor(){super();this.__registerHost();this.columns="12";this.alignItems=undefined;this.justifyItems=undefined;this.gap=undefined;this.h=o(this.host)}render(){return t(i,{key:"e5ca7f6e3554f0e3bd52731a81c3ae4cc809a8dd",class:this.h.classes(n.root),role:"list"},t("slot",{key:"e99880d69919891b5b22c0eab933069fbcb4852c"}))}get host(){return this}},[4,"gov-grid",{columns:[513],alignItems:[513,"align-items"],justifyItems:[513,"justify-items"],gap:[513]}]);function c(){if(typeof customElements==="undefined"){return}const s=["gov-grid"];s.forEach((s=>{switch(s){case"gov-grid":if(!customElements.get(s)){customElements.define(s,r)}break}}))}c();const d=r;const a=c;export{d as GovGrid,a as defineCustomElement};
1
+ import{p as s,H as t,h as e,a as i}from"./index.js";import{G as o}from"./p-C6JN9gdb.js";import{g as r}from"./p-DfJDyRCE.js";const n=s(class s extends t{constructor(){super();this.__registerHost();this.h=r(this.host)}render(){return e(i,{key:"18d145fce4ae449e277684f8b0274ed60b759568",class:this.h.classes(o.root),role:"list"},e("slot",{key:"a37b3c0533fe8ef2fa5513e9c489f5b98247d4de"}))}get host(){return this}},[4,"gov-grid",{alignItems:[513,"align-items"],justifyItems:[513,"justify-items"],gap:[513]}]);function c(){if(typeof customElements==="undefined"){return}const s=["gov-grid"];s.forEach((s=>{switch(s){case"gov-grid":if(!customElements.get(s)){customElements.define(s,n)}break}}))}c();const f=n;const m=c;export{f as GovGrid,m as defineCustomElement};
2
2
  //# sourceMappingURL=gov-grid.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GovGrid","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","GridClass","root","role"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass, GridSizesType } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Setting the number of grid columns\n\t */\n\t@Prop({ attribute: 'columns', reflect: true }) columns?: string = \"12\";\n\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-items', reflect: true }) alignItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'justify-items', reflect: true }) justifyItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({ attribute: 'gap', reflect: true }) gap?: GridSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"uIAQaA,EAAOC,EAAA,MAAAD,UAAAE,EAGnB,WAAAC,G,2CASkE,K,yEARjEC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAyBvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQC,EAAUC,MAAOC,KAAK,QACjDV,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
1
+ {"version":3,"names":["GovGrid","__stencil_proxyCustomElement","HTMLElement","constructor","this","h","govHost","host","render","Host","key","class","classes","GridClass","root","role"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass, GridSizesType } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-items', reflect: true }) alignItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'justify-items', reflect: true }) justifyItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({ attribute: 'gap', reflect: true }) gap?: GridSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"kIAQaA,EAAOC,EAAA,MAAAD,UAAAE,EAGnB,WAAAC,G,8BACCC,KAAKC,EAAIC,EAAQF,KAAKG,KACtB,CAmBD,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQC,EAAUC,MAAOC,KAAK,QACjDV,EAAa,QAAAK,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-d1a59544.js";const t=o;const a=s;export{t as GovIcon,a as defineCustomElement};
1
+ import{G as o,d as s}from"./p-D82BPGeo.js";const t=o;const p=s;export{t as GovIcon,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-icon.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as o,d as i}from"./p-42200001.js";import{g as a,c as n}from"./p-ea7fdd2e.js";import{F as c}from"./p-1c1d0bbe.js";import{v as l}from"./p-0b3574c2.js";import{C as r}from"./p-5aad3497.js";import{p as h}from"./p-e0e2e9c1.js";import{A as d,a as b,i as f}from"./p-33d5d1ed.js";import{d as m}from"./p-80c889e2.js";import{d as p}from"./p-d1a59544.js";const v=h(r,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var u;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(u||(u={}));const g={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const y=t(class t extends e{constructor(){super();this.__registerHost();this.govClose=s(this,"gov-close",7);this.hydrated=false;this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){l(v,t,g.root)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}connectedCallback(){this.hydrated=true}render(){const t=o("gov-button",{key:"43dfaa83a5cbf0c8ac3ffe055b9b2df56ee95252",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:g.close},o("gov-icon",{key:"9a04704a5679dbd328b150975cd01b13a9a8939b",name:"x-lg",type:"components"}));return o(i,{key:"61a672fe70509238f25f353f0f97c4170f958b18",class:this.h.classes(g.root),color:this.color,type:this.type,hydrated:this.hydrated},o("section",Object.assign({key:"2cebebdc62541a0c71578b06f677c3814b2dfd36",class:g.section},this.inheritedAttributes,{role:this.role}),this.h.hasSlot("icon")&&o("span",{key:"de201f0008f3ec11533e0712cb95391e2694318a"},o("slot",{key:"fe5ff9dca68dad254be183b31174123f7218f8ff",name:"icon"})),o("div",{key:"d2201cd542519895dbab9329c7bef7190ad42783",class:g.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:g.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:g.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-infobar",{color:[1],type:[1],role:[1],accessibleCloseLabel:[1,"accessible-close-label"],accessibleToggleLabel:[1,"accessible-toggle-label"],closable:[4],toggleContent:[32],inheritedAttributes:[32]},undefined,{color:["validateColor"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-infobar","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-infobar":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){p()}break}}))}k();const C=y;const j=k;export{C as GovInfobar,j as defineCustomElement};
1
+ import{p as t,H as e,c as s,h as o,a as i}from"./index.js";import{g as a,t as n}from"./p-DfJDyRCE.js";import{F as c}from"./p-5itQzbON.js";import{v as l}from"./p-BKP-F1qP.js";import{C as r}from"./p-U40vKHrs.js";import{p as h}from"./p-CQvUntGY.js";import{A as b,a as d,i as f}from"./p-CXgom82_.js";import{d as m}from"./p-DxCeyMKq.js";import{d as v}from"./p-D82BPGeo.js";const p=h(r,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var g;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(g||(g={}));const u={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const y=t(class t extends e{constructor(){super();this.__registerHost();this.govClose=s(this,"gov-close");this.hydrated=false;this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){l(p,t,u.root)}componentDidLoad(){this.attributeObserver=new b(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}connectedCallback(){this.hydrated=true}render(){const t=o("gov-button",{key:"725f2b43b343cf280f1d17f2e4ea585f76459e4a",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:u.close},o("gov-icon",{key:"a152c21f78f34765419c772bd74d3deeac89a193",name:"x-lg",type:"components"}));return o(i,{key:"ea3760a93c20997a2c9807395346782854ca2b14",class:this.h.classes(u.root),color:this.color,type:this.type,hydrated:this.hydrated},o("section",Object.assign({key:"ed8c013c901f3cf42bec8be0f006056ae4d0925a",class:u.section},this.inheritedAttributes,{role:this.role}),this.h.hasSlot("icon")&&o("span",{key:"4a04033e6f01219508a7d2bb2dce964d87ebd2e8"},o("slot",{key:"513dfdc3bc75b60fe522cb78fb8b3a69de82606f",name:"icon"})),o("div",{key:"1bb7ed8940cef2f981857eec96de6b998b2791d8",class:u.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:u.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:u.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-infobar",{color:[1],type:[1],role:[1],accessibleCloseLabel:[1,"accessible-close-label"],accessibleToggleLabel:[1,"accessible-toggle-label"],closable:[4],toggleContent:[32],inheritedAttributes:[32]},undefined,{color:["validateColor"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-infobar","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-infobar":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}C();const k=y;const j=C;export{k as GovInfobar,j as defineCustomElement};
2
2
  //# sourceMappingURL=gov-infobar.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["InfobarColors","pick","Colors","InfobarType","InfobarClass","root","section","content","headline","close","GovInfobar","proxyCustomElement","H","constructor","this","hydrated","undefined","h","govHost","host","validateColor","newValue","validateProp","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","color","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","_a","stopObserving","removeAttribute","Object","assign","connectedCallback","render","closeButton","key","size","accessibleCloseLabel","type","isBold","onCloseHandler","bind","class","name","Host","classes","role","hasSlot","Fragment","accessibleToggleLabel","toggleContent","hidden","toBoolAttr","closable","e","govClose","emit","component","ref","originalEvent"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\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(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\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\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type} hydrated={this.hydrated}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} 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</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["InfobarColors","pick","Colors","InfobarType","InfobarClass","root","section","content","headline","close","GovInfobar","__stencil_proxyCustomElement","HTMLElement","constructor","this","hydrated","color","type","role","undefined","accessibleCloseLabel","accessibleToggleLabel","closable","toggleContent","inheritedAttributes","h","govHost","host","validateColor","newValue","validateProp","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","inheritAriaAttributes","disconnectedCallback","_a","stopObserving","removeAttribute","Object","assign","connectedCallback","render","closeButton","key","size","isBold","onCloseHandler","bind","class","name","Host","classes","hasSlot","Fragment","hidden","toBoolAttr","e","govClose","emit","component","ref","originalEvent"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\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(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\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\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type} hydrated={this.hydrated}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} 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</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,h as e,d as o}from"./p-42200001.js";import{a}from"./p-13ebd887.js";import{g as n}from"./p-ea7fdd2e.js";const c=t(class t extends s{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return e(o,{key:"48f578ba8365e6f3748a4ac6766784a4062846e1",class:this.h.classes(a.root)},e("slot",{key:"d5aca194eda1174fa71401f66d17743d1f260a50"}))}get host(){return this}},[4,"gov-layout-column"]);function r(){if(typeof customElements==="undefined"){return}const t=["gov-layout-column"];t.forEach((t=>{switch(t){case"gov-layout-column":if(!customElements.get(t)){customElements.define(t,c)}break}}))}r();const u=c;const m=r;export{u as GovLayoutColumn,m as defineCustomElement};
1
+ import{p as t,H as s,h as o,a as e}from"./index.js";import{a as c}from"./p-Q99QrOoi.js";import{g as n}from"./p-DfJDyRCE.js";const a=t(class t extends s{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return o(e,{key:"397a057c9e14fa21904f79a2c0b0c006476d53a4",class:this.h.classes(c.root)},o("slot",{key:"29373dc179d00e3e3f34ae4da070815d04d1a355"}))}get host(){return this}},[4,"gov-layout-column"]);function r(){if(typeof customElements==="undefined"){return}const t=["gov-layout-column"];t.forEach((t=>{switch(t){case"gov-layout-column":if(!customElements.get(t)){customElements.define(t,a)}break}}))}r();const u=a;const i=r;export{u as GovLayoutColumn,i as defineCustomElement};
2
2
  //# sourceMappingURL=gov-layout-column.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GovLayoutColumn","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","LayoutColumnClass","root"],"sources":["../../../packages/core/src/components/gov-layout/gov-layout-column.tsx"],"sourcesContent":["import { Component, Element, h, Host } from '@stencil/core'\nimport { LayoutColumnClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-layout-column',\n})\nexport class GovLayoutColumn {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovLayoutColumnElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LayoutColumnClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"kIAQaA,EAAeC,EAAA,MAAAD,UAAAE,EAG3B,WAAAC,G,8BACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQC,EAAkBC,OAC7CT,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
1
+ {"version":3,"names":["GovLayoutColumn","__stencil_proxyCustomElement","HTMLElement","constructor","this","h","govHost","host","render","Host","key","class","classes","LayoutColumnClass","root"],"sources":["../../../packages/core/src/components/gov-layout/gov-layout-column.tsx"],"sourcesContent":["import { Component, Element, h, Host } from '@stencil/core'\nimport { LayoutColumnClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-layout-column',\n})\nexport class GovLayoutColumn {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovLayoutColumnElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LayoutColumnClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"kIAQaA,EAAeC,EAAA,MAAAD,UAAAE,EAG3B,WAAAC,G,8BACCC,KAAKC,EAAIC,EAAQF,KAAKG,KACtB,CAID,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQC,EAAkBC,OAC7CT,EAAQ,QAAAK,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,h as e,d as o}from"./p-42200001.js";import{L as c}from"./p-13ebd887.js";import{g as a}from"./p-ea7fdd2e.js";const n=s(class s extends t{constructor(){super();this.__registerHost();this.type="stretch";this.variant=undefined;this.inverse=false;this.h=a(this.host)}typeClass(s,t,e,o){const c=t?"-"+t:"";const a=e?"-"+e:"";const n=o?"-inverse":"";return s+" "+s+c+a+n}render(){return e(o,{key:"f22ec016a02ac1c97f570f167ac14fbcd1a82f21",type:this.type,class:this.h.classes(c.root)},e("section",{key:"b6e46bbe21ac021b63f6afa1f96f2195afd9d456",class:this.typeClass(c.section,this.type,this.variant,this.inverse)},e("slot",{key:"789e8b9c425651966356c485a140dfa7fd549e50"})))}get host(){return this}},[4,"gov-layout",{type:[1],variant:[1],inverse:[4]}]);function i(){if(typeof customElements==="undefined"){return}const s=["gov-layout"];s.forEach((s=>{switch(s){case"gov-layout":if(!customElements.get(s)){customElements.define(s,n)}break}}))}i();const r=n;const f=i;export{r as GovLayout,f as defineCustomElement};
1
+ import{p as s,H as t,h as e,a as o}from"./index.js";import{L as c}from"./p-Q99QrOoi.js";import{g as i}from"./p-DfJDyRCE.js";const n=s(class s extends t{constructor(){super();this.__registerHost();this.type="stretch";this.inverse=false;this.h=i(this.host)}typeClass(s,t,e,o){const c=t?"-"+t:"";const i=e?"-"+e:"";const n=o?"-inverse":"";return s+" "+s+c+i+n}render(){return e(o,{key:"e1c3d46c89a466366190d86e9cf6e9890b9f53c8",type:this.type,class:this.h.classes(c.root)},e("section",{key:"0e7d98f4f001f66a4a43aecf50070bf3cf166fd9",class:this.typeClass(c.section,this.type,this.variant,this.inverse)},e("slot",{key:"3cd4ca9c4d9020d4315484b0581efb09354806ef"})))}get host(){return this}},[4,"gov-layout",{type:[1],variant:[1],inverse:[4]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-layout"];s.forEach((s=>{switch(s){case"gov-layout":if(!customElements.get(s)){customElements.define(s,n)}break}}))}r();const a=n;const f=r;export{a as GovLayout,f as defineCustomElement};
2
2
  //# sourceMappingURL=gov-layout.js.map