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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1492) hide show
  1. package/dist/cjs/Fragment-D4qSkFah.js.map +1 -1
  2. package/dist/cjs/accessibility-BQJmIVWV.js.map +1 -1
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  4. package/dist/cjs/array.utils-DOh1gCQS.js.map +1 -1
  5. package/dist/cjs/attribute-CH1-zDDl.js.map +1 -1
  6. package/dist/cjs/colors-DgrrxjsX.js.map +1 -1
  7. package/dist/cjs/constants-357ehBFU.js.map +1 -1
  8. package/dist/cjs/constants-CFAhiwqu.js.map +1 -1
  9. package/dist/cjs/constants-CYm8AK_D.js.map +1 -1
  10. package/dist/cjs/constants-CbBhWRUQ.js.map +1 -1
  11. package/dist/cjs/constants-ChDSk4SZ.js.map +1 -1
  12. package/dist/cjs/constants-D6LZ31rS.js.map +1 -1
  13. package/dist/cjs/constants-DcKnOyW4.js.map +1 -1
  14. package/dist/cjs/constants-Dmmp9FHy.js.map +1 -1
  15. package/dist/cjs/constants-WvkMgj1j.js.map +1 -1
  16. package/dist/cjs/constants-ymB2dvwV.js.map +1 -1
  17. package/dist/cjs/constants-z2ZSS2je.js.map +1 -1
  18. package/dist/cjs/core.cjs.js +3 -3
  19. package/dist/cjs/core.cjs.js.map +1 -1
  20. package/dist/cjs/form-GgXzZZ-E.js.map +1 -1
  21. package/dist/cjs/gov-accordion-item.cjs.entry.js +5 -5
  22. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  23. package/dist/cjs/gov-accordion-item.entry.cjs.js.map +1 -1
  24. package/dist/cjs/gov-accordion.cjs.entry.js +3 -3
  25. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-accordion.entry.cjs.js.map +1 -1
  27. package/dist/cjs/gov-attachments.gov-attachments-item.gov-form-message.entry.cjs.js.map +1 -1
  28. package/dist/cjs/gov-attachments_3.cjs.entry.js +11 -7
  29. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-backdrop.cjs.entry.js +3 -3
  31. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-backdrop.entry.cjs.js.map +1 -1
  33. package/dist/cjs/gov-banner.cjs.entry.js +4 -4
  34. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
  35. package/dist/cjs/gov-banner.entry.cjs.js.map +1 -1
  36. package/dist/cjs/gov-blockquote.cjs.entry.js +3 -3
  37. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gov-blockquote.entry.cjs.js.map +1 -1
  39. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
  40. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  41. package/dist/cjs/gov-breadcrumbs.entry.cjs.js.map +1 -1
  42. package/dist/cjs/gov-button.cjs.entry.js +6 -6
  43. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-button.entry.cjs.js.map +1 -1
  45. package/dist/cjs/gov-card.cjs.entry.js +3 -3
  46. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  47. package/dist/cjs/gov-card.entry.cjs.js.map +1 -1
  48. package/dist/cjs/gov-chip.cjs.entry.js +4 -4
  49. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  50. package/dist/cjs/gov-chip.entry.cjs.js.map +1 -1
  51. package/dist/cjs/gov-collapsible.cjs.entry.js +86 -0
  52. package/dist/cjs/gov-collapsible.cjs.entry.js.map +1 -0
  53. package/dist/cjs/gov-collapsible.entry.cjs.js.map +1 -0
  54. package/dist/cjs/gov-container.cjs.entry.js +3 -3
  55. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-container.entry.cjs.js.map +1 -1
  57. package/dist/cjs/gov-control-group.cjs.entry.js +9 -5
  58. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-control-group.entry.cjs.js.map +1 -1
  60. package/dist/cjs/gov-cookiebar.cjs.entry.js +3 -3
  61. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
  62. package/dist/cjs/gov-cookiebar.entry.cjs.js.map +1 -1
  63. package/dist/cjs/gov-dialog.cjs.entry.js +3 -3
  64. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-dialog.entry.cjs.js.map +1 -1
  66. package/dist/cjs/gov-dropdown.cjs.entry.js +3 -3
  67. package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
  68. package/dist/cjs/gov-dropdown.entry.cjs.js.map +1 -1
  69. package/dist/cjs/gov-empty.cjs.entry.js +3 -3
  70. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  71. package/dist/cjs/gov-empty.entry.cjs.js.map +1 -1
  72. package/dist/cjs/gov-error-code.cjs.entry.js +3 -3
  73. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
  74. package/dist/cjs/gov-error-code.entry.cjs.js.map +1 -1
  75. package/dist/cjs/gov-flex.gov-icon.gov-theme-switch.entry.cjs.js.map +1 -1
  76. package/dist/cjs/gov-flex_3.cjs.entry.js +5 -5
  77. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  78. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
  79. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  80. package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +1 -1
  81. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +4 -4
  82. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  83. package/dist/cjs/gov-form-checkbox-group.entry.cjs.js.map +1 -1
  84. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
  85. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  86. package/dist/cjs/gov-form-checkbox.entry.cjs.js.map +1 -1
  87. package/dist/cjs/gov-form-control.cjs.entry.js +3 -3
  88. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  89. package/dist/cjs/gov-form-control.entry.cjs.js.map +1 -1
  90. package/dist/cjs/gov-form-file.cjs.entry.js +3 -7
  91. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  92. package/dist/cjs/gov-form-file.entry.cjs.js.map +1 -1
  93. package/dist/cjs/gov-form-group.cjs.entry.js +3 -3
  94. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  95. package/dist/cjs/gov-form-group.entry.cjs.js.map +1 -1
  96. package/dist/cjs/gov-form-input.gov-skeleton.entry.cjs.js.map +1 -1
  97. package/dist/cjs/gov-form-input_2.cjs.entry.js +8 -8
  98. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  99. package/dist/cjs/gov-form-label.cjs.entry.js +2 -2
  100. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  101. package/dist/cjs/gov-form-label.entry.cjs.js.map +1 -1
  102. package/dist/cjs/gov-form-multi-select.cjs.entry.js +4 -4
  103. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  104. package/dist/cjs/gov-form-multi-select.entry.cjs.js.map +1 -1
  105. package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
  106. package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
  107. package/dist/cjs/gov-form-password-power.entry.cjs.js.map +1 -1
  108. package/dist/cjs/gov-form-radio-group.cjs.entry.js +4 -4
  109. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  110. package/dist/cjs/gov-form-radio-group.entry.cjs.js.map +1 -1
  111. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
  112. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  113. package/dist/cjs/gov-form-radio.entry.cjs.js.map +1 -1
  114. package/dist/cjs/gov-form-range.cjs.entry.js +4 -4
  115. package/dist/cjs/gov-form-range.cjs.entry.js.map +1 -1
  116. package/dist/cjs/gov-form-range.entry.cjs.js.map +1 -1
  117. package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
  118. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  119. package/dist/cjs/gov-form-search.entry.cjs.js.map +1 -1
  120. package/dist/cjs/gov-form-select.cjs.entry.js +4 -4
  121. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  122. package/dist/cjs/gov-form-select.entry.cjs.js.map +1 -1
  123. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
  124. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  125. package/dist/cjs/gov-form-switch.entry.cjs.js.map +1 -1
  126. package/dist/cjs/gov-grid-item.cjs.entry.js +3 -3
  127. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  128. package/dist/cjs/gov-grid-item.entry.cjs.js.map +1 -1
  129. package/dist/cjs/gov-grid.cjs.entry.js +3 -3
  130. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  131. package/dist/cjs/gov-grid.entry.cjs.js.map +1 -1
  132. package/dist/cjs/gov-infobar.cjs.entry.js +4 -4
  133. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  134. package/dist/cjs/gov-infobar.entry.cjs.js.map +1 -1
  135. package/dist/cjs/gov-layout-column.cjs.entry.js +3 -3
  136. package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -1
  137. package/dist/cjs/gov-layout-column.entry.cjs.js.map +1 -1
  138. package/dist/cjs/gov-layout.cjs.entry.js +3 -3
  139. package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
  140. package/dist/cjs/gov-layout.entry.cjs.js.map +1 -1
  141. package/dist/cjs/gov-lifecycle.cjs.entry.js +2 -2
  142. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -1
  143. package/dist/cjs/gov-lifecycle.entry.cjs.js.map +1 -1
  144. package/dist/cjs/gov-link.cjs.entry.js +3 -3
  145. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  146. package/dist/cjs/gov-link.entry.cjs.js.map +1 -1
  147. package/dist/cjs/gov-loading.cjs.entry.js +3 -3
  148. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  149. package/dist/cjs/gov-loading.entry.cjs.js.map +1 -1
  150. package/dist/cjs/gov-message.cjs.entry.js +3 -3
  151. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  152. package/dist/cjs/gov-message.entry.cjs.js.map +1 -1
  153. package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
  154. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  155. package/dist/cjs/gov-pagination.entry.cjs.js.map +1 -1
  156. package/dist/cjs/gov-spacer.cjs.entry.js +3 -3
  157. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  158. package/dist/cjs/gov-spacer.entry.cjs.js.map +1 -1
  159. package/dist/cjs/gov-stepper-item.cjs.entry.js +3 -3
  160. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  161. package/dist/cjs/gov-stepper-item.entry.cjs.js.map +1 -1
  162. package/dist/cjs/gov-stepper.cjs.entry.js +3 -3
  163. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  164. package/dist/cjs/gov-stepper.entry.cjs.js.map +1 -1
  165. package/dist/cjs/gov-tabs-item.cjs.entry.js +3 -3
  166. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
  167. package/dist/cjs/gov-tabs-item.entry.cjs.js.map +1 -1
  168. package/dist/cjs/gov-tabs.cjs.entry.js +3 -3
  169. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  170. package/dist/cjs/gov-tabs.entry.cjs.js.map +1 -1
  171. package/dist/cjs/gov-tag.cjs.entry.js +3 -3
  172. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  173. package/dist/cjs/gov-tag.entry.cjs.js.map +1 -1
  174. package/dist/cjs/gov-tile.cjs.entry.js +3 -3
  175. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  176. package/dist/cjs/gov-tile.entry.cjs.js.map +1 -1
  177. package/dist/cjs/gov-toast.cjs.entry.js +3 -3
  178. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  179. package/dist/cjs/gov-toast.entry.cjs.js.map +1 -1
  180. package/dist/cjs/gov-tooltip.gov-tooltip-content.entry.cjs.js.map +1 -0
  181. package/dist/cjs/{gov-tooltip.cjs.entry.js → gov-tooltip_2.cjs.entry.js} +101 -33
  182. package/dist/cjs/gov-tooltip_2.cjs.entry.js.map +1 -0
  183. package/dist/cjs/gov-wizard-item.cjs.entry.js +4 -4
  184. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  185. package/dist/cjs/gov-wizard-item.entry.cjs.js.map +1 -1
  186. package/dist/cjs/gov-wizard.cjs.entry.js +3 -3
  187. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  188. package/dist/cjs/gov-wizard.entry.cjs.js.map +1 -1
  189. package/dist/cjs/gov.log-C5EH15b_.js.map +1 -1
  190. package/dist/cjs/helpers-DmI-ZOAH.js.map +1 -1
  191. package/dist/cjs/helpers.types-vap8QfRH.js.map +1 -1
  192. package/dist/cjs/{index-pjwoybrU.js → index-BEF5cZxd.js} +148 -490
  193. package/dist/cjs/index-BEF5cZxd.js.map +1 -0
  194. package/dist/cjs/loader.cjs.js +2 -2
  195. package/dist/cjs/props-CPENhBnM.js.map +1 -1
  196. package/dist/cjs/sizes-D5zsw2g5.js.map +1 -1
  197. package/dist/cjs/stencil.utils-8sCYbm34.js.map +1 -1
  198. package/dist/cjs/string.utils-BG4pUfEi.js.map +1 -1
  199. package/dist/cjs/{template-DS4pSCTb.js → template-Cj6PcLmR.js} +6 -2
  200. package/dist/cjs/template-Cj6PcLmR.js.map +1 -0
  201. package/dist/cjs/utils-NnC78QR3.js.map +1 -1
  202. package/dist/cjs/wcag-Bvzxnp5D.js.map +1 -1
  203. package/dist/collection/collection-manifest.json +2 -1
  204. package/dist/collection/components/gov-accordion/constants.js.map +1 -1
  205. package/dist/collection/components/gov-accordion/gov-accordion-item.js +3 -3
  206. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  207. package/dist/collection/components/gov-accordion/gov-accordion.js +1 -1
  208. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
  209. package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +1 -1
  210. package/dist/collection/components/gov-attachments/constants.js.map +1 -1
  211. package/dist/collection/components/gov-attachments/gov-attachments-item.css +20 -23
  212. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -1
  213. package/dist/collection/components/gov-attachments/gov-attachments-item.js +8 -2
  214. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  215. package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
  216. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
  217. package/dist/collection/components/gov-backdrop/constants.js.map +1 -1
  218. package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
  219. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  220. package/dist/collection/components/gov-banner/constants.js.map +1 -1
  221. package/dist/collection/components/gov-banner/gov-banner.js +2 -2
  222. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
  223. package/dist/collection/components/gov-blockquote/constants.js.map +1 -1
  224. package/dist/collection/components/gov-blockquote/gov-blockquote.js +1 -1
  225. package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +1 -1
  226. package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -1
  227. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -1
  228. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  229. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  230. package/dist/collection/components/gov-button/button/constants.js.map +1 -1
  231. package/dist/collection/components/gov-button/button/gov-button.js +14 -14
  232. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  233. package/dist/collection/components/gov-button/button/gov-button.types.js.map +1 -1
  234. package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -1
  235. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  236. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
  237. package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +1 -1
  238. package/dist/collection/components/gov-card/constants.js.map +1 -1
  239. package/dist/collection/components/gov-card/gov-card.js +1 -1
  240. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  241. package/dist/collection/components/gov-card/interfaces.js.map +1 -1
  242. package/dist/collection/components/gov-chip/constants.js.map +1 -1
  243. package/dist/collection/components/gov-chip/gov-chip.js +8 -8
  244. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  245. package/dist/collection/components/gov-collapsible/constants.js +18 -0
  246. package/dist/collection/components/gov-collapsible/constants.js.map +1 -0
  247. package/dist/collection/components/gov-collapsible/gov-collapsible.js +182 -0
  248. package/dist/collection/components/gov-collapsible/gov-collapsible.js.map +1 -0
  249. package/dist/collection/components/gov-container/constants.js.map +1 -1
  250. package/dist/collection/components/gov-container/gov-container.js +1 -1
  251. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  252. package/dist/collection/components/gov-control-group/constants.js +1 -1
  253. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  254. package/dist/collection/components/gov-control-group/gov-control-group.js +28 -4
  255. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  256. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -1
  257. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  258. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
  259. package/dist/collection/components/gov-dialog/constants.js.map +1 -1
  260. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  261. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  262. package/dist/collection/components/gov-empty/constants.js.map +1 -1
  263. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  264. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
  265. package/dist/collection/components/gov-error-code/constants.js.map +1 -1
  266. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  267. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
  268. package/dist/collection/components/gov-flex/constants.js.map +1 -1
  269. package/dist/collection/components/gov-flex/gov-flex.js +1 -1
  270. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  271. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
  272. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -3
  273. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  274. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -1
  275. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
  276. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +1 -1
  277. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  278. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +1 -1
  279. package/dist/collection/components/gov-form/control/constants.js.map +1 -1
  280. package/dist/collection/components/gov-form/control/gov-form-control.js +4 -4
  281. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  282. package/dist/collection/components/gov-form/file/constants.js.map +1 -1
  283. package/dist/collection/components/gov-form/file/gov-form-file.js +4 -28
  284. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  285. package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -1
  286. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  287. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  288. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -1
  289. package/dist/collection/components/gov-form/group/gov-form-group.css +12 -23
  290. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  291. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
  292. package/dist/collection/components/gov-form/group/gov-form-group.types.js.map +1 -1
  293. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  294. package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -1
  295. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  296. package/dist/collection/components/gov-form/input/gov-form-input.js +6 -6
  297. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  298. package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +1 -1
  299. package/dist/collection/components/gov-form/label/constants.js.map +1 -1
  300. package/dist/collection/components/gov-form/label/gov-form-label.js +2 -2
  301. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
  302. package/dist/collection/components/gov-form/message/constants.js.map +1 -1
  303. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  304. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
  305. package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
  306. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -4
  307. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  308. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -1
  309. package/dist/collection/components/gov-form/password-power/constants.js.map +1 -1
  310. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  311. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
  312. package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
  313. package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -2
  314. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  315. package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +1 -1
  316. package/dist/collection/components/gov-form/range/constants.js.map +1 -1
  317. package/dist/collection/components/gov-form/range/gov-form-range.js +2 -2
  318. package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -1
  319. package/dist/collection/components/gov-form/search/constants.js.map +1 -1
  320. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  321. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  322. package/dist/collection/components/gov-form/select/constants.js.map +1 -1
  323. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  324. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  325. package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -1
  326. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  327. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  328. package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +1 -1
  329. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  330. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  331. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  332. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  333. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  334. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  335. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  336. package/dist/collection/components/gov-icon/helpers.js.map +1 -1
  337. package/dist/collection/components/gov-icon/list.js.map +1 -1
  338. package/dist/collection/components/gov-infobar/constants.js.map +1 -1
  339. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  340. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  341. package/dist/collection/components/gov-infobar/gov-infobar.types.js.map +1 -1
  342. package/dist/collection/components/gov-layout/constants.js.map +1 -1
  343. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  344. package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
  345. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  346. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
  347. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  348. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -1
  349. package/dist/collection/components/gov-link/constants.js.map +1 -1
  350. package/dist/collection/components/gov-link/gov-link.js +1 -1
  351. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  352. package/dist/collection/components/gov-loading/loading/constants.js.map +1 -1
  353. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  354. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  355. package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -1
  356. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  357. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  358. package/dist/collection/components/gov-message/constants.js.map +1 -1
  359. package/dist/collection/components/gov-message/gov-message.js +1 -1
  360. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  361. package/dist/collection/components/gov-pagination/constants.js.map +1 -1
  362. package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
  363. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  364. package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +1 -1
  365. package/dist/collection/components/gov-pagination/pagination.js.map +1 -1
  366. package/dist/collection/components/gov-spacer/constants.js.map +1 -1
  367. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  368. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
  369. package/dist/collection/components/gov-stepper/stepper/constants.js.map +1 -1
  370. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.d.js.map +1 -1
  371. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js +1 -1
  372. package/dist/collection/components/gov-stepper/stepper/gov-stepper-item.js.map +1 -1
  373. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js +1 -1
  374. package/dist/collection/components/gov-stepper/stepper/gov-stepper.js.map +1 -1
  375. package/dist/collection/components/gov-tabs/constants.js.map +1 -1
  376. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  377. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
  378. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  379. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  380. package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -1
  381. package/dist/collection/components/gov-tag/constants.js.map +1 -1
  382. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  383. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  384. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  385. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  386. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  387. package/dist/collection/components/gov-theme-switch/gov-theme-switch.types.js.map +1 -1
  388. package/dist/collection/components/gov-tile/constants.js.map +1 -1
  389. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  390. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  391. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  392. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  393. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  394. package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
  395. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  396. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  397. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  398. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  399. package/dist/collection/components/gov-wizard/constants.js.map +1 -1
  400. package/dist/collection/components/gov-wizard/gov-wizard-item.d.js.map +1 -1
  401. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  402. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  403. package/dist/collection/components/gov-wizard/gov-wizard-item.types.js.map +1 -1
  404. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  405. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
  406. package/dist/collection/core/constants/colors.js.map +1 -1
  407. package/dist/collection/core/constants/sizes.js.map +1 -1
  408. package/dist/collection/core/constants/tags.js.map +1 -1
  409. package/dist/collection/core/constants/tokens.js.map +1 -1
  410. package/dist/collection/data/color-definitions.js +494 -494
  411. package/dist/collection/data/font-definitions.js +132 -132
  412. package/dist/collection/helpers/Accessibility/accessibility.js.map +1 -1
  413. package/dist/collection/helpers/Accessibility/attributes.js.map +1 -1
  414. package/dist/collection/helpers/Dom/attribute.js.map +1 -1
  415. package/dist/collection/helpers/Dom/document.js.map +1 -1
  416. package/dist/collection/helpers/Dom/form.js.map +1 -1
  417. package/dist/collection/helpers/Dom/form.types.js.map +1 -1
  418. package/dist/collection/helpers/Dom/template.js +4 -0
  419. package/dist/collection/helpers/Dom/template.js.map +1 -1
  420. package/dist/collection/helpers/Dom/template.types.js.map +1 -1
  421. package/dist/collection/helpers/Dom/win.js.map +1 -1
  422. package/dist/collection/helpers/Fragment.js.map +1 -1
  423. package/dist/collection/helpers/Log/gov.log.js.map +1 -1
  424. package/dist/collection/helpers/Validate/props.js.map +1 -1
  425. package/dist/collection/helpers/Validate/wcag.js.map +1 -1
  426. package/dist/collection/index.js +2 -1
  427. package/dist/collection/index.js.map +1 -1
  428. package/dist/collection/types/event.types.js.map +1 -1
  429. package/dist/collection/types/interfaces.js.map +1 -1
  430. package/dist/collection/utils/array.utils.js.map +1 -1
  431. package/dist/collection/utils/bool.utils.js.map +1 -1
  432. package/dist/collection/utils/dom.utils.js.map +1 -1
  433. package/dist/collection/utils/ds.utils.js.map +1 -1
  434. package/dist/collection/utils/file.utils.js.map +1 -1
  435. package/dist/collection/utils/helpers.types.js.map +1 -1
  436. package/dist/collection/utils/icon.utils.js.map +1 -1
  437. package/dist/collection/utils/number.utils.js.map +1 -1
  438. package/dist/collection/utils/object.utils.js.map +1 -1
  439. package/dist/collection/utils/stencil.utils.js.map +1 -1
  440. package/dist/collection/utils/string.utils.js.map +1 -1
  441. package/dist/collection/utils/utils.js.map +1 -1
  442. package/dist/components/gov-accordion-item.js +1 -1
  443. package/dist/components/gov-accordion-item.js.map +1 -1
  444. package/dist/components/gov-accordion.js +1 -1
  445. package/dist/components/gov-accordion.js.map +1 -1
  446. package/dist/components/gov-attachments-item.js +1 -1
  447. package/dist/components/gov-attachments.js +1 -1
  448. package/dist/components/gov-backdrop.js +1 -1
  449. package/dist/components/gov-banner.js +1 -1
  450. package/dist/components/gov-banner.js.map +1 -1
  451. package/dist/components/gov-blockquote.js +1 -1
  452. package/dist/components/gov-blockquote.js.map +1 -1
  453. package/dist/components/gov-breadcrumbs.js +1 -1
  454. package/dist/components/gov-breadcrumbs.js.map +1 -1
  455. package/dist/components/gov-button.js +1 -1
  456. package/dist/components/gov-card.js +1 -1
  457. package/dist/components/gov-card.js.map +1 -1
  458. package/dist/components/gov-chip.js +1 -1
  459. package/dist/components/gov-collapsible.d.ts +11 -0
  460. package/dist/components/gov-collapsible.js +2 -0
  461. package/dist/components/gov-collapsible.js.map +1 -0
  462. package/dist/components/gov-container.js +1 -1
  463. package/dist/components/gov-container.js.map +1 -1
  464. package/dist/components/gov-control-group.js +1 -1
  465. package/dist/components/gov-control-group.js.map +1 -1
  466. package/dist/components/gov-cookiebar.js +1 -1
  467. package/dist/components/gov-cookiebar.js.map +1 -1
  468. package/dist/components/gov-dialog.js +1 -1
  469. package/dist/components/gov-dialog.js.map +1 -1
  470. package/dist/components/gov-dropdown.js +1 -1
  471. package/dist/components/gov-dropdown.js.map +1 -1
  472. package/dist/components/gov-empty.js +1 -1
  473. package/dist/components/gov-empty.js.map +1 -1
  474. package/dist/components/gov-error-code.js +1 -1
  475. package/dist/components/gov-error-code.js.map +1 -1
  476. package/dist/components/gov-flex.js +1 -1
  477. package/dist/components/gov-flex.js.map +1 -1
  478. package/dist/components/gov-form-autocomplete.js +1 -1
  479. package/dist/components/gov-form-checkbox-group.js +1 -1
  480. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  481. package/dist/components/gov-form-checkbox.js +1 -1
  482. package/dist/components/gov-form-checkbox.js.map +1 -1
  483. package/dist/components/gov-form-control.js +1 -1
  484. package/dist/components/gov-form-control.js.map +1 -1
  485. package/dist/components/gov-form-file.js +1 -1
  486. package/dist/components/gov-form-file.js.map +1 -1
  487. package/dist/components/gov-form-group.js +1 -1
  488. package/dist/components/gov-form-group.js.map +1 -1
  489. package/dist/components/gov-form-input.js +1 -1
  490. package/dist/components/gov-form-label.js +1 -1
  491. package/dist/components/gov-form-label.js.map +1 -1
  492. package/dist/components/gov-form-message.js +1 -1
  493. package/dist/components/gov-form-multi-select.js +1 -1
  494. package/dist/components/gov-form-multi-select.js.map +1 -1
  495. package/dist/components/gov-form-password-power.js +1 -1
  496. package/dist/components/gov-form-password-power.js.map +1 -1
  497. package/dist/components/gov-form-radio-group.js +1 -1
  498. package/dist/components/gov-form-radio-group.js.map +1 -1
  499. package/dist/components/gov-form-radio.js +1 -1
  500. package/dist/components/gov-form-radio.js.map +1 -1
  501. package/dist/components/gov-form-range.js +1 -1
  502. package/dist/components/gov-form-range.js.map +1 -1
  503. package/dist/components/gov-form-search.js +1 -1
  504. package/dist/components/gov-form-search.js.map +1 -1
  505. package/dist/components/gov-form-select.js +1 -1
  506. package/dist/components/gov-form-switch.js +1 -1
  507. package/dist/components/gov-form-switch.js.map +1 -1
  508. package/dist/components/gov-grid-item.js +1 -1
  509. package/dist/components/gov-grid-item.js.map +1 -1
  510. package/dist/components/gov-grid.js +1 -1
  511. package/dist/components/gov-grid.js.map +1 -1
  512. package/dist/components/gov-icon.js +1 -1
  513. package/dist/components/gov-infobar.js +1 -1
  514. package/dist/components/gov-infobar.js.map +1 -1
  515. package/dist/components/gov-layout-column.js +1 -1
  516. package/dist/components/gov-layout-column.js.map +1 -1
  517. package/dist/components/gov-layout.js +1 -1
  518. package/dist/components/gov-layout.js.map +1 -1
  519. package/dist/components/gov-lifecycle.js +1 -1
  520. package/dist/components/gov-lifecycle.js.map +1 -1
  521. package/dist/components/gov-link.js +1 -1
  522. package/dist/components/gov-link.js.map +1 -1
  523. package/dist/components/gov-loading.js +1 -1
  524. package/dist/components/gov-loading.js.map +1 -1
  525. package/dist/components/gov-message.js +1 -1
  526. package/dist/components/gov-message.js.map +1 -1
  527. package/dist/components/gov-pagination.js +1 -1
  528. package/dist/components/gov-pagination.js.map +1 -1
  529. package/dist/components/gov-skeleton.js +1 -1
  530. package/dist/components/gov-spacer.js +1 -1
  531. package/dist/components/gov-spacer.js.map +1 -1
  532. package/dist/components/gov-stepper-item.js +1 -1
  533. package/dist/components/gov-stepper-item.js.map +1 -1
  534. package/dist/components/gov-stepper.js +1 -1
  535. package/dist/components/gov-stepper.js.map +1 -1
  536. package/dist/components/gov-tabs-item.js +1 -1
  537. package/dist/components/gov-tabs-item.js.map +1 -1
  538. package/dist/components/gov-tabs.js +1 -1
  539. package/dist/components/gov-tabs.js.map +1 -1
  540. package/dist/components/gov-tag.js +1 -1
  541. package/dist/components/gov-tag.js.map +1 -1
  542. package/dist/components/gov-theme-switch.js +1 -1
  543. package/dist/components/gov-theme-switch.js.map +1 -1
  544. package/dist/components/gov-tile.js +1 -1
  545. package/dist/components/gov-tile.js.map +1 -1
  546. package/dist/components/gov-toast.js +1 -1
  547. package/dist/components/gov-toast.js.map +1 -1
  548. package/dist/components/gov-tooltip-content.js +1 -1
  549. package/dist/components/gov-tooltip-content.js.map +1 -1
  550. package/dist/components/gov-tooltip.js +1 -1
  551. package/dist/components/gov-tooltip.js.map +1 -1
  552. package/dist/components/gov-wizard-item.js +1 -1
  553. package/dist/components/gov-wizard-item.js.map +1 -1
  554. package/dist/components/gov-wizard.js +1 -1
  555. package/dist/components/gov-wizard.js.map +1 -1
  556. package/dist/components/index.js +1 -1
  557. package/dist/components/index.js.map +1 -1
  558. package/dist/components/p-2_-up8FX.js +2 -0
  559. package/dist/components/p-2_-up8FX.js.map +1 -0
  560. package/dist/components/p-4i8qDRtu.js.map +1 -1
  561. package/dist/components/p-5itQzbON.js.map +1 -1
  562. package/dist/components/p-9VlKyZSl.js +2 -0
  563. package/dist/components/p-9VlKyZSl.js.map +1 -0
  564. package/dist/components/p-9imLQpxb.js.map +1 -1
  565. package/dist/components/p-B0hcuYXk.js.map +1 -1
  566. package/dist/components/p-B3tdsiZv.js.map +1 -1
  567. package/dist/components/{p-WmFNIuTf.js → p-BJnSrRNH.js} +2 -2
  568. package/dist/components/p-BJnSrRNH.js.map +1 -0
  569. package/dist/components/p-BKP-F1qP.js.map +1 -1
  570. package/dist/components/p-BTwdrNoS.js.map +1 -1
  571. package/dist/components/p-BUmDydor.js.map +1 -1
  572. package/dist/components/{p-CSjqhysd.js → p-Ba8Z-AIX.js} +2 -2
  573. package/dist/components/p-Ba8Z-AIX.js.map +1 -0
  574. package/dist/components/p-BcQO4NH2.js.map +1 -1
  575. package/dist/components/p-BnxqJyb_.js +2 -0
  576. package/dist/components/p-BnxqJyb_.js.map +1 -0
  577. package/dist/components/p-C6JN9gdb.js.map +1 -1
  578. package/dist/components/p-CJnwyVlG.js +2 -0
  579. package/dist/components/p-CJnwyVlG.js.map +1 -0
  580. package/dist/components/p-CNqoJU2V.js.map +1 -1
  581. package/dist/components/p-CQvUntGY.js.map +1 -1
  582. package/dist/components/p-CUVZZBqo.js.map +1 -1
  583. package/dist/components/p-CWqMiVYH.js +2 -0
  584. package/dist/components/p-CWqMiVYH.js.map +1 -0
  585. package/dist/components/p-CXgom82_.js.map +1 -1
  586. package/dist/components/p-CZr7GBEo.js.map +1 -1
  587. package/dist/components/p-CgXcNDpE.js +2 -0
  588. package/dist/components/p-CgXcNDpE.js.map +1 -0
  589. package/dist/components/p-Cjg0wpDG.js.map +1 -1
  590. package/dist/components/p-ClYmjarv.js.map +1 -1
  591. package/dist/components/{p-wlTP5ZEU.js → p-D8QfVS4O.js} +2 -2
  592. package/dist/components/p-D8QfVS4O.js.map +1 -0
  593. package/dist/components/p-DBXGhafv.js.map +1 -1
  594. package/dist/components/p-DKo9A5gq.js +2 -0
  595. package/dist/components/p-DKo9A5gq.js.map +1 -0
  596. package/dist/components/p-DW1DKFMF.js +2 -0
  597. package/dist/components/p-DW1DKFMF.js.map +1 -0
  598. package/dist/components/p-DZJk8GrA.js +2 -0
  599. package/dist/components/p-DZJk8GrA.js.map +1 -0
  600. package/dist/components/p-DfI_0WW6.js.map +1 -1
  601. package/dist/components/{p-C4pc6Rox.js → p-DhGb8cBK.js} +2 -2
  602. package/dist/components/p-DhGb8cBK.js.map +1 -0
  603. package/dist/components/p-DrPpH_9c.js.map +1 -1
  604. package/dist/components/p-EeKNA85D.js.map +1 -1
  605. package/dist/components/p-GYov8gU1.js.map +1 -1
  606. package/dist/components/p-Nvj7WFs_.js.map +1 -1
  607. package/dist/components/p-Q99QrOoi.js.map +1 -1
  608. package/dist/components/p-U40vKHrs.js.map +1 -1
  609. package/dist/components/{p-Btw6IAjS.js → p-_FzmpyXv.js} +2 -2
  610. package/dist/components/p-_FzmpyXv.js.map +1 -0
  611. package/dist/components/p-vN03FcXN.js.map +1 -1
  612. package/dist/core/core.css +1312 -635
  613. package/dist/core/core.esm.js +1 -1
  614. package/dist/core/core.esm.js.map +1 -1
  615. package/dist/core/gov-accordion-item.entry.esm.js.map +1 -1
  616. package/dist/core/gov-accordion.entry.esm.js.map +1 -1
  617. package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +1 -1
  618. package/dist/core/gov-backdrop.entry.esm.js.map +1 -1
  619. package/dist/core/gov-banner.entry.esm.js.map +1 -1
  620. package/dist/core/gov-blockquote.entry.esm.js.map +1 -1
  621. package/dist/core/gov-breadcrumbs.entry.esm.js.map +1 -1
  622. package/dist/core/gov-button.entry.esm.js.map +1 -1
  623. package/dist/core/gov-card.entry.esm.js.map +1 -1
  624. package/dist/core/gov-chip.entry.esm.js.map +1 -1
  625. package/dist/core/gov-collapsible.entry.esm.js.map +1 -0
  626. package/dist/core/gov-container.entry.esm.js.map +1 -1
  627. package/dist/core/gov-control-group.entry.esm.js.map +1 -1
  628. package/dist/core/gov-cookiebar.entry.esm.js.map +1 -1
  629. package/dist/core/gov-dialog.entry.esm.js.map +1 -1
  630. package/dist/core/gov-dropdown.entry.esm.js.map +1 -1
  631. package/dist/core/gov-empty.entry.esm.js.map +1 -1
  632. package/dist/core/gov-error-code.entry.esm.js.map +1 -1
  633. package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +1 -1
  634. package/dist/core/gov-form-autocomplete.entry.esm.js.map +1 -1
  635. package/dist/core/gov-form-checkbox-group.entry.esm.js.map +1 -1
  636. package/dist/core/gov-form-checkbox.entry.esm.js.map +1 -1
  637. package/dist/core/gov-form-control.entry.esm.js.map +1 -1
  638. package/dist/core/gov-form-file.entry.esm.js.map +1 -1
  639. package/dist/core/gov-form-group.entry.esm.js.map +1 -1
  640. package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +1 -1
  641. package/dist/core/gov-form-label.entry.esm.js.map +1 -1
  642. package/dist/core/gov-form-multi-select.entry.esm.js.map +1 -1
  643. package/dist/core/gov-form-password-power.entry.esm.js.map +1 -1
  644. package/dist/core/gov-form-radio-group.entry.esm.js.map +1 -1
  645. package/dist/core/gov-form-radio.entry.esm.js.map +1 -1
  646. package/dist/core/gov-form-range.entry.esm.js.map +1 -1
  647. package/dist/core/gov-form-search.entry.esm.js.map +1 -1
  648. package/dist/core/gov-form-select.entry.esm.js.map +1 -1
  649. package/dist/core/gov-form-switch.entry.esm.js.map +1 -1
  650. package/dist/core/gov-grid-item.entry.esm.js.map +1 -1
  651. package/dist/core/gov-grid.entry.esm.js.map +1 -1
  652. package/dist/core/gov-infobar.entry.esm.js.map +1 -1
  653. package/dist/core/gov-layout-column.entry.esm.js.map +1 -1
  654. package/dist/core/gov-layout.entry.esm.js.map +1 -1
  655. package/dist/core/gov-lifecycle.entry.esm.js.map +1 -1
  656. package/dist/core/gov-link.entry.esm.js.map +1 -1
  657. package/dist/core/gov-loading.entry.esm.js.map +1 -1
  658. package/dist/core/gov-message.entry.esm.js.map +1 -1
  659. package/dist/core/gov-pagination.entry.esm.js.map +1 -1
  660. package/dist/core/gov-spacer.entry.esm.js.map +1 -1
  661. package/dist/core/gov-stepper-item.entry.esm.js.map +1 -1
  662. package/dist/core/gov-stepper.entry.esm.js.map +1 -1
  663. package/dist/core/gov-tabs-item.entry.esm.js.map +1 -1
  664. package/dist/core/gov-tabs.entry.esm.js.map +1 -1
  665. package/dist/core/gov-tag.entry.esm.js.map +1 -1
  666. package/dist/core/gov-tile.entry.esm.js.map +1 -1
  667. package/dist/core/gov-toast.entry.esm.js.map +1 -1
  668. package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +1 -0
  669. package/dist/core/gov-wizard-item.entry.esm.js.map +1 -1
  670. package/dist/core/gov-wizard.entry.esm.js.map +1 -1
  671. package/dist/core/{p-c1a1fc45.entry.js → p-017d6340.entry.js} +2 -2
  672. package/dist/core/p-017d6340.entry.js.map +1 -0
  673. package/dist/core/p-01bc645f.entry.js +2 -0
  674. package/dist/core/p-01bc645f.entry.js.map +1 -0
  675. package/dist/core/p-0e06af2b.entry.js +2 -0
  676. package/dist/core/p-0e06af2b.entry.js.map +1 -0
  677. package/dist/core/{p-658c1d84.entry.js → p-1375d52d.entry.js} +2 -2
  678. package/dist/core/p-1375d52d.entry.js.map +1 -0
  679. package/dist/core/p-264cbd4e.entry.js +2 -0
  680. package/dist/core/p-264cbd4e.entry.js.map +1 -0
  681. package/dist/core/{p-2142c481.entry.js → p-2cfa670d.entry.js} +2 -2
  682. package/dist/core/p-2cfa670d.entry.js.map +1 -0
  683. package/dist/core/p-33a62c22.entry.js +2 -0
  684. package/dist/core/p-33a62c22.entry.js.map +1 -0
  685. package/dist/core/p-37f6095e.entry.js +2 -0
  686. package/dist/core/p-37f6095e.entry.js.map +1 -0
  687. package/dist/core/p-3cf20b56.entry.js +2 -0
  688. package/dist/core/p-3cf20b56.entry.js.map +1 -0
  689. package/dist/core/{p-0dbda4ab.entry.js → p-46824842.entry.js} +2 -2
  690. package/dist/core/p-46824842.entry.js.map +1 -0
  691. package/dist/core/p-46effc25.entry.js +2 -0
  692. package/dist/core/p-46effc25.entry.js.map +1 -0
  693. package/dist/core/{p-19a408eb.entry.js → p-495e25d8.entry.js} +2 -2
  694. package/dist/core/p-495e25d8.entry.js.map +1 -0
  695. package/dist/core/p-4aea131f.entry.js +2 -0
  696. package/dist/core/p-4aea131f.entry.js.map +1 -0
  697. package/dist/core/p-4ce8e721.entry.js +2 -0
  698. package/dist/core/p-4ce8e721.entry.js.map +1 -0
  699. package/dist/core/p-5283672a.entry.js +2 -0
  700. package/dist/core/p-5283672a.entry.js.map +1 -0
  701. package/dist/core/{p-90ff56f4.entry.js → p-54209c57.entry.js} +2 -2
  702. package/dist/core/p-54209c57.entry.js.map +1 -0
  703. package/dist/core/p-56dc11ba.entry.js +2 -0
  704. package/dist/core/p-56dc11ba.entry.js.map +1 -0
  705. package/dist/core/{p-d4440adf.entry.js → p-5721cf9b.entry.js} +2 -2
  706. package/dist/core/p-5721cf9b.entry.js.map +1 -0
  707. package/dist/core/p-58911028.entry.js +2 -0
  708. package/dist/core/p-58911028.entry.js.map +1 -0
  709. package/dist/core/p-5itQzbON.js.map +1 -1
  710. package/dist/core/p-617b0dbe.entry.js +2 -0
  711. package/dist/core/p-617b0dbe.entry.js.map +1 -0
  712. package/dist/core/{p-8873dc4b.entry.js → p-6781bfc0.entry.js} +2 -2
  713. package/dist/core/p-6781bfc0.entry.js.map +1 -0
  714. package/dist/core/p-67d1e6e2.entry.js +2 -0
  715. package/dist/core/p-67d1e6e2.entry.js.map +1 -0
  716. package/dist/core/p-6e42a12a.entry.js +2 -0
  717. package/dist/core/p-6e42a12a.entry.js.map +1 -0
  718. package/dist/core/{p-bbe0d727.entry.js → p-6f173022.entry.js} +2 -2
  719. package/dist/core/p-6f173022.entry.js.map +1 -0
  720. package/dist/core/p-7099beb0.entry.js +2 -0
  721. package/dist/core/p-7099beb0.entry.js.map +1 -0
  722. package/dist/core/{p-962d5767.entry.js → p-715c0e2e.entry.js} +2 -2
  723. package/dist/core/p-715c0e2e.entry.js.map +1 -0
  724. package/dist/core/p-7387370c.entry.js +2 -0
  725. package/dist/core/p-7387370c.entry.js.map +1 -0
  726. package/dist/core/p-768fe015.entry.js +2 -0
  727. package/dist/core/p-768fe015.entry.js.map +1 -0
  728. package/dist/core/p-7a3d4b6b.entry.js +2 -0
  729. package/dist/core/p-7a3d4b6b.entry.js.map +1 -0
  730. package/dist/core/p-7f4cf2f9.entry.js +2 -0
  731. package/dist/core/p-7f4cf2f9.entry.js.map +1 -0
  732. package/dist/core/{p-aaa73dc8.entry.js → p-8161e1fe.entry.js} +2 -2
  733. package/dist/core/p-8161e1fe.entry.js.map +1 -0
  734. package/dist/core/p-820eb0fb.entry.js +2 -0
  735. package/dist/core/p-820eb0fb.entry.js.map +1 -0
  736. package/dist/core/{p-e169f098.entry.js → p-8655fd24.entry.js} +2 -2
  737. package/dist/core/p-8655fd24.entry.js.map +1 -0
  738. package/dist/core/p-8f6172d4.entry.js +2 -0
  739. package/dist/core/p-8f6172d4.entry.js.map +1 -0
  740. package/dist/core/p-90cd5ffe.entry.js +2 -0
  741. package/dist/core/p-90cd5ffe.entry.js.map +1 -0
  742. package/dist/core/p-98314c19.entry.js +2 -0
  743. package/dist/core/p-98314c19.entry.js.map +1 -0
  744. package/dist/core/p-B6CqPcY_.js.map +1 -1
  745. package/dist/core/p-BUmDydor.js.map +1 -1
  746. package/dist/core/p-BcQO4NH2.js.map +1 -1
  747. package/dist/core/p-BjcqOprh.js.map +1 -1
  748. package/dist/core/p-Bo1ROm5Q.js.map +1 -1
  749. package/dist/core/p-Bz_RzYFb.js.map +1 -1
  750. package/dist/core/p-C3R1T_pg.js.map +1 -1
  751. package/dist/core/p-C6JN9gdb.js.map +1 -1
  752. package/dist/core/p-CDIRBJsi.js.map +1 -1
  753. package/dist/core/p-CQvUntGY.js.map +1 -1
  754. package/dist/core/p-Ccwpa1ck.js.map +1 -1
  755. package/dist/core/p-CgDnDrq5.js.map +1 -1
  756. package/dist/core/p-Cjg0wpDG.js.map +1 -1
  757. package/dist/core/p-ClISz4NF.js +3 -0
  758. package/dist/core/p-ClISz4NF.js.map +1 -0
  759. package/dist/core/p-CoD1xawt.js +2 -0
  760. package/dist/core/p-CoD1xawt.js.map +1 -0
  761. package/dist/core/p-Cx3bEC5v.js.map +1 -1
  762. package/dist/core/p-CzXeijOj.js.map +1 -1
  763. package/dist/core/p-D4TGB274.js.map +1 -1
  764. package/dist/core/p-DBXGhafv.js.map +1 -1
  765. package/dist/core/p-DNztiAH0.js.map +1 -1
  766. package/dist/core/p-DQuL1Twl.js.map +1 -1
  767. package/dist/core/p-DYcNEwSZ.js.map +1 -1
  768. package/dist/core/p-EeKNA85D.js.map +1 -1
  769. package/dist/core/p-GYov8gU1.js.map +1 -1
  770. package/dist/core/p-NOJjz9dT.js.map +1 -1
  771. package/dist/core/p-Q99QrOoi.js.map +1 -1
  772. package/dist/core/p-U40vKHrs.js.map +1 -1
  773. package/dist/core/p-ac962619.entry.js +2 -0
  774. package/dist/core/p-ac962619.entry.js.map +1 -0
  775. package/dist/core/p-ae6d0bcd.entry.js +2 -0
  776. package/dist/core/p-ae6d0bcd.entry.js.map +1 -0
  777. package/dist/core/p-b3b517f0.entry.js +2 -0
  778. package/dist/core/p-b3b517f0.entry.js.map +1 -0
  779. package/dist/core/p-b7306a6f.entry.js +2 -0
  780. package/dist/core/p-b7306a6f.entry.js.map +1 -0
  781. package/dist/core/{p-d48d5870.entry.js → p-b93548cc.entry.js} +2 -2
  782. package/dist/core/p-b93548cc.entry.js.map +1 -0
  783. package/dist/core/p-be3bbe06.entry.js +2 -0
  784. package/dist/core/p-be3bbe06.entry.js.map +1 -0
  785. package/dist/core/{p-5c9371da.entry.js → p-c6b55c0a.entry.js} +2 -2
  786. package/dist/core/p-c6b55c0a.entry.js.map +1 -0
  787. package/dist/core/p-cf06a38b.entry.js +2 -0
  788. package/dist/core/p-cf06a38b.entry.js.map +1 -0
  789. package/dist/core/p-dec65494.entry.js +2 -0
  790. package/dist/core/p-dec65494.entry.js.map +1 -0
  791. package/dist/core/p-df09f0be.entry.js +2 -0
  792. package/dist/core/p-df09f0be.entry.js.map +1 -0
  793. package/dist/core/p-e0634fae.entry.js +2 -0
  794. package/dist/core/p-e0634fae.entry.js.map +1 -0
  795. package/dist/core/{p-f0505205.entry.js → p-e1b2af6b.entry.js} +2 -2
  796. package/dist/core/p-e1b2af6b.entry.js.map +1 -0
  797. package/dist/core/p-e29cd545.entry.js +2 -0
  798. package/dist/core/p-e29cd545.entry.js.map +1 -0
  799. package/dist/core/p-e5e7abe0.entry.js +2 -0
  800. package/dist/core/p-e5e7abe0.entry.js.map +1 -0
  801. package/dist/core/{p-48a3bb49.entry.js → p-e7f889c7.entry.js} +2 -2
  802. package/dist/core/p-e7f889c7.entry.js.map +1 -0
  803. package/dist/core/p-ebd3d25f.entry.js +2 -0
  804. package/dist/core/p-ebd3d25f.entry.js.map +1 -0
  805. package/dist/core/p-f067af74.entry.js +2 -0
  806. package/dist/core/p-f067af74.entry.js.map +1 -0
  807. package/dist/core/p-f58a20af.entry.js +2 -0
  808. package/dist/core/p-f58a20af.entry.js.map +1 -0
  809. package/dist/core/{p-984b6020.entry.js → p-f7bdb44a.entry.js} +2 -2
  810. package/dist/core/p-f7bdb44a.entry.js.map +1 -0
  811. package/dist/core/p-fe3bd57c.entry.js +2 -0
  812. package/dist/core/p-fe3bd57c.entry.js.map +1 -0
  813. package/dist/core/p-vN03FcXN.js.map +1 -1
  814. package/dist/dist/components/gov-accordion-item.d.ts +11 -0
  815. package/dist/dist/components/gov-accordion.d.ts +11 -0
  816. package/dist/dist/components/gov-app.d.ts +11 -0
  817. package/dist/dist/components/gov-attachments-item.d.ts +11 -0
  818. package/dist/dist/components/gov-attachments.d.ts +11 -0
  819. package/dist/dist/components/gov-backdrop.d.ts +11 -0
  820. package/dist/dist/components/gov-banner.d.ts +11 -0
  821. package/dist/dist/components/gov-blockquote.d.ts +11 -0
  822. package/dist/dist/components/gov-breadcrumbs.d.ts +11 -0
  823. package/dist/dist/components/gov-button.d.ts +11 -0
  824. package/dist/dist/components/gov-card.d.ts +11 -0
  825. package/dist/dist/components/gov-chip.d.ts +11 -0
  826. package/dist/dist/components/gov-collapsible.d.ts +11 -0
  827. package/dist/dist/components/gov-container.d.ts +11 -0
  828. package/dist/dist/components/gov-control-group.d.ts +11 -0
  829. package/dist/dist/components/gov-cookiebar.d.ts +11 -0
  830. package/dist/dist/components/gov-dialog.d.ts +11 -0
  831. package/dist/dist/components/gov-dropdown.d.ts +11 -0
  832. package/dist/dist/components/gov-empty.d.ts +11 -0
  833. package/dist/dist/components/gov-error-code.d.ts +11 -0
  834. package/dist/dist/components/gov-flex.d.ts +11 -0
  835. package/dist/dist/components/gov-form-autocomplete.d.ts +11 -0
  836. package/dist/dist/components/gov-form-checkbox-group.d.ts +11 -0
  837. package/dist/dist/components/gov-form-checkbox.d.ts +11 -0
  838. package/dist/dist/components/gov-form-control.d.ts +11 -0
  839. package/dist/dist/components/gov-form-file.d.ts +11 -0
  840. package/dist/dist/components/gov-form-group.d.ts +11 -0
  841. package/dist/dist/components/gov-form-input.d.ts +11 -0
  842. package/dist/dist/components/gov-form-label.d.ts +11 -0
  843. package/dist/dist/components/gov-form-message.d.ts +11 -0
  844. package/dist/dist/components/gov-form-multi-select.d.ts +11 -0
  845. package/dist/dist/components/gov-form-password-power.d.ts +11 -0
  846. package/dist/dist/components/gov-form-radio-group.d.ts +11 -0
  847. package/dist/dist/components/gov-form-radio.d.ts +11 -0
  848. package/dist/dist/components/gov-form-range.d.ts +11 -0
  849. package/dist/dist/components/gov-form-search.d.ts +11 -0
  850. package/dist/dist/components/gov-form-select.d.ts +11 -0
  851. package/dist/dist/components/gov-form-switch.d.ts +11 -0
  852. package/dist/dist/components/gov-grid-item.d.ts +11 -0
  853. package/dist/dist/components/gov-grid.d.ts +11 -0
  854. package/dist/dist/components/gov-icon.d.ts +11 -0
  855. package/dist/dist/components/gov-infobar.d.ts +11 -0
  856. package/dist/dist/components/gov-layout-column.d.ts +11 -0
  857. package/dist/dist/components/gov-layout.d.ts +11 -0
  858. package/dist/dist/components/gov-lifecycle.d.ts +11 -0
  859. package/dist/dist/components/gov-link.d.ts +11 -0
  860. package/dist/dist/components/gov-loading.d.ts +11 -0
  861. package/dist/dist/components/gov-message.d.ts +11 -0
  862. package/dist/dist/components/gov-pagination.d.ts +11 -0
  863. package/dist/dist/components/gov-skeleton.d.ts +11 -0
  864. package/dist/dist/components/gov-spacer.d.ts +11 -0
  865. package/dist/dist/components/gov-stepper-item.d.ts +11 -0
  866. package/dist/dist/components/gov-stepper.d.ts +11 -0
  867. package/dist/dist/components/gov-tabs-item.d.ts +11 -0
  868. package/dist/dist/components/gov-tabs.d.ts +11 -0
  869. package/dist/dist/components/gov-tag.d.ts +11 -0
  870. package/dist/dist/components/gov-theme-switch.d.ts +11 -0
  871. package/dist/dist/components/gov-tile.d.ts +11 -0
  872. package/dist/dist/components/gov-toast.d.ts +11 -0
  873. package/dist/dist/components/gov-tooltip-content.d.ts +11 -0
  874. package/dist/dist/components/gov-tooltip.d.ts +11 -0
  875. package/dist/dist/components/gov-wizard-item.d.ts +11 -0
  876. package/dist/dist/components/gov-wizard.d.ts +11 -0
  877. package/dist/dist/components/index.d.ts +33 -0
  878. package/dist/dist/dist/components/index.d.ts +33 -0
  879. package/dist/dist/dist/globals.d.ts +2 -0
  880. package/dist/dist/dist/hydrate/index.d.ts +273 -0
  881. package/dist/dist/dist/types/interfaces.d.ts +1 -0
  882. package/dist/dist/dist/types/stencil-public-runtime.d.ts +1702 -0
  883. package/dist/dist/globals.d.ts +2 -0
  884. package/dist/dist/hydrate/index.d.ts +273 -0
  885. package/dist/dist/types/components/gov-accordion/constants.d.ts +19 -0
  886. package/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +43 -0
  887. package/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +26 -0
  888. package/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
  889. package/dist/dist/types/components/gov-attachments/constants.d.ts +11 -0
  890. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
  891. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
  892. package/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
  893. package/dist/dist/types/components/gov-backdrop/constants.d.ts +4 -0
  894. package/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
  895. package/dist/dist/types/components/gov-banner/constants.d.ts +26 -0
  896. package/dist/dist/types/components/gov-banner/gov-banner.d.ts +28 -0
  897. package/dist/dist/types/components/gov-blockquote/constants.d.ts +10 -0
  898. package/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +15 -0
  899. package/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
  900. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
  901. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +42 -0
  902. package/dist/dist/types/components/gov-button/button/constants.d.ts +29 -0
  903. package/dist/dist/types/components/gov-button/button/gov-button.d.ts +133 -0
  904. package/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
  905. package/dist/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
  906. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +40 -0
  907. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
  908. package/dist/dist/types/components/gov-card/constants.d.ts +16 -0
  909. package/dist/dist/types/components/gov-card/gov-card.d.ts +57 -0
  910. package/dist/dist/types/components/gov-card/interfaces.d.ts +4 -0
  911. package/dist/dist/types/components/gov-chip/constants.d.ts +21 -0
  912. package/dist/dist/types/components/gov-chip/gov-chip.d.ts +82 -0
  913. package/dist/dist/types/components/gov-collapsible/constants.d.ts +18 -0
  914. package/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
  915. package/dist/dist/types/components/gov-container/constants.d.ts +3 -0
  916. package/dist/dist/types/components/gov-container/gov-container.d.ts +6 -0
  917. package/dist/dist/types/components/gov-control-group/constants.d.ts +7 -0
  918. package/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +24 -0
  919. package/dist/dist/types/components/gov-cookiebar/constants.d.ts +7 -0
  920. package/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
  921. package/dist/dist/types/components/gov-dialog/constants.d.ts +11 -0
  922. package/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +70 -0
  923. package/dist/dist/types/components/gov-empty/constants.d.ts +19 -0
  924. package/dist/dist/types/components/gov-empty/gov-empty.d.ts +21 -0
  925. package/dist/dist/types/components/gov-error-code/constants.d.ts +4 -0
  926. package/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
  927. package/dist/dist/types/components/gov-flex/constants.d.ts +7 -0
  928. package/dist/dist/types/components/gov-flex/gov-flex.d.ts +39 -0
  929. package/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
  930. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +149 -0
  931. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
  932. package/dist/dist/types/components/gov-form/checkbox/constants.d.ts +10 -0
  933. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +86 -0
  934. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
  935. package/dist/dist/types/components/gov-form/control/constants.d.ts +9 -0
  936. package/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +40 -0
  937. package/dist/dist/types/components/gov-form/file/constants.d.ts +7 -0
  938. package/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +129 -0
  939. package/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
  940. package/dist/dist/types/components/gov-form/group/constants.d.ts +18 -0
  941. package/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +32 -0
  942. package/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -0
  943. package/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +7 -0
  944. package/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +32 -0
  945. package/dist/dist/types/components/gov-form/input/constants.d.ts +28 -0
  946. package/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +178 -0
  947. package/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
  948. package/dist/dist/types/components/gov-form/label/constants.d.ts +8 -0
  949. package/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
  950. package/dist/dist/types/components/gov-form/message/constants.d.ts +11 -0
  951. package/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +23 -0
  952. package/dist/dist/types/components/gov-form/multiselect/constants.d.ts +10 -0
  953. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +127 -0
  954. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +10 -0
  955. package/dist/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
  956. package/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
  957. package/dist/dist/types/components/gov-form/radio/constants.d.ts +10 -0
  958. package/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +83 -0
  959. package/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
  960. package/dist/dist/types/components/gov-form/range/constants.d.ts +9 -0
  961. package/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
  962. package/dist/dist/types/components/gov-form/search/constants.d.ts +10 -0
  963. package/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +13 -0
  964. package/dist/dist/types/components/gov-form/select/constants.d.ts +8 -0
  965. package/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +89 -0
  966. package/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -0
  967. package/dist/dist/types/components/gov-form/switch/constants.d.ts +12 -0
  968. package/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +81 -0
  969. package/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
  970. package/dist/dist/types/components/gov-grid/constants.d.ts +10 -0
  971. package/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +46 -0
  972. package/dist/dist/types/components/gov-grid/gov-grid.d.ts +19 -0
  973. package/dist/dist/types/components/gov-icon/constants.d.ts +18 -0
  974. package/dist/dist/types/components/gov-icon/gov-icon.d.ts +34 -0
  975. package/dist/dist/types/components/gov-icon/helpers.d.ts +6 -0
  976. package/dist/dist/types/components/gov-icon/list.d.ts +3 -0
  977. package/dist/dist/types/components/gov-infobar/constants.d.ts +16 -0
  978. package/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +51 -0
  979. package/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -0
  980. package/dist/dist/types/components/gov-layout/constants.d.ts +20 -0
  981. package/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
  982. package/dist/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
  983. package/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  984. package/dist/dist/types/components/gov-link/constants.d.ts +8 -0
  985. package/dist/dist/types/components/gov-link/gov-link.d.ts +34 -0
  986. package/dist/dist/types/components/gov-loading/loading/constants.d.ts +9 -0
  987. package/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +13 -0
  988. package/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +21 -0
  989. package/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +46 -0
  990. package/dist/dist/types/components/gov-message/constants.d.ts +13 -0
  991. package/dist/dist/types/components/gov-message/gov-message.d.ts +16 -0
  992. package/dist/dist/types/components/gov-pagination/constants.d.ts +22 -0
  993. package/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -0
  994. package/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
  995. package/dist/dist/types/components/gov-pagination/pagination.d.ts +12 -0
  996. package/dist/dist/types/components/gov-spacer/constants.d.ts +15 -0
  997. package/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
  998. package/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +21 -0
  999. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +4 -0
  1000. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +31 -0
  1001. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +22 -0
  1002. package/dist/dist/types/components/gov-tabs/constants.d.ts +28 -0
  1003. package/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +54 -0
  1004. package/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +70 -0
  1005. package/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +14 -0
  1006. package/dist/dist/types/components/gov-tag/constants.d.ts +12 -0
  1007. package/dist/dist/types/components/gov-tag/gov-tag.d.ts +35 -0
  1008. package/dist/dist/types/components/gov-theme-switch/constants.d.ts +12 -0
  1009. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +46 -0
  1010. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +10 -0
  1011. package/dist/dist/types/components/gov-tile/constants.d.ts +13 -0
  1012. package/dist/dist/types/components/gov-tile/gov-tile.d.ts +34 -0
  1013. package/dist/dist/types/components/gov-toast/constants.d.ts +17 -0
  1014. package/dist/dist/types/components/gov-toast/gov-toast.d.ts +58 -0
  1015. package/dist/dist/types/components/gov-tooltip/constants.d.ts +20 -0
  1016. package/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +28 -0
  1017. package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +58 -0
  1018. package/dist/dist/types/components/gov-wizard/constants.d.ts +19 -0
  1019. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
  1020. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +60 -0
  1021. package/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
  1022. package/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +35 -0
  1023. package/dist/dist/types/core/constants/colors.d.ts +13 -0
  1024. package/dist/dist/types/core/constants/sizes.d.ts +13 -0
  1025. package/dist/dist/types/core/constants/tags.d.ts +12 -0
  1026. package/dist/dist/types/core/constants/tokens.d.ts +1 -0
  1027. package/dist/dist/types/helpers/Accessibility/accessibility.d.ts +1 -0
  1028. package/dist/dist/types/helpers/Accessibility/attributes.d.ts +1 -0
  1029. package/dist/dist/types/helpers/Dom/attribute.d.ts +13 -0
  1030. package/dist/dist/types/helpers/Dom/document.d.ts +4 -0
  1031. package/dist/dist/types/helpers/Dom/form.d.ts +3 -0
  1032. package/dist/dist/types/helpers/Dom/form.types.d.ts +11 -0
  1033. package/dist/dist/types/helpers/Dom/template.d.ts +10 -0
  1034. package/dist/dist/types/helpers/Dom/template.types.d.ts +14 -0
  1035. package/dist/dist/types/helpers/Dom/win.d.ts +18 -0
  1036. package/dist/dist/types/helpers/Fragment.d.ts +2 -0
  1037. package/dist/dist/types/helpers/Log/gov.log.d.ts +8 -0
  1038. package/dist/dist/types/helpers/Validate/props.d.ts +1 -0
  1039. package/dist/dist/types/helpers/Validate/wcag.d.ts +4 -0
  1040. package/dist/dist/types/index.d.ts +0 -0
  1041. package/dist/dist/types/interfaces.d.ts +1 -0
  1042. package/dist/dist/types/stencil-public-runtime.d.ts +1702 -0
  1043. package/dist/dist/types/types/event.types.d.ts +4 -0
  1044. package/dist/dist/types/types/interfaces.d.ts +2 -0
  1045. package/dist/dist/types/types/typings.d.ts +6 -0
  1046. package/dist/dist/types/utils/array.utils.d.ts +2 -0
  1047. package/dist/dist/types/utils/bool.utils.d.ts +1 -0
  1048. package/dist/dist/types/utils/dom.utils.d.ts +1 -0
  1049. package/dist/dist/types/utils/ds.utils.d.ts +1 -0
  1050. package/dist/dist/types/utils/file.utils.d.ts +3 -0
  1051. package/dist/dist/types/utils/helpers.types.d.ts +49 -0
  1052. package/dist/dist/types/utils/icon.utils.d.ts +4 -0
  1053. package/dist/dist/types/utils/number.utils.d.ts +1 -0
  1054. package/dist/dist/types/utils/object.utils.d.ts +2 -0
  1055. package/dist/dist/types/utils/stencil.utils.d.ts +1 -0
  1056. package/dist/dist/types/utils/string.utils.d.ts +4 -0
  1057. package/dist/dist/types/utils/utils.d.ts +20 -0
  1058. package/dist/esm/Fragment-5itQzbON.js.map +1 -1
  1059. package/dist/esm/accessibility-wqNV8djF.js.map +1 -1
  1060. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  1061. package/dist/esm/array.utils-CJ0U_ONv.js.map +1 -1
  1062. package/dist/esm/attribute-Bz_RzYFb.js.map +1 -1
  1063. package/dist/esm/colors-U40vKHrs.js.map +1 -1
  1064. package/dist/esm/constants-BNBB_29K.js.map +1 -1
  1065. package/dist/esm/constants-BegH8u6i.js.map +1 -1
  1066. package/dist/esm/constants-BiWo5BNa.js.map +1 -1
  1067. package/dist/esm/constants-CysDgoMA.js.map +1 -1
  1068. package/dist/esm/constants-DHvN41Ek.js.map +1 -1
  1069. package/dist/esm/constants-DbTQsVRc.js.map +1 -1
  1070. package/dist/esm/constants-Du0ZtfYe.js.map +1 -1
  1071. package/dist/esm/constants-Q99QrOoi.js.map +1 -1
  1072. package/dist/esm/constants-YOtDGTm5.js.map +1 -1
  1073. package/dist/esm/constants-aqe7GX2n.js.map +1 -1
  1074. package/dist/esm/constants-oYp2tkdN.js.map +1 -1
  1075. package/dist/esm/core.js +4 -4
  1076. package/dist/esm/core.js.map +1 -1
  1077. package/dist/esm/form-DvhJiKwA.js.map +1 -1
  1078. package/dist/esm/gov-accordion-item.entry.js +5 -5
  1079. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  1080. package/dist/esm/gov-accordion.entry.js +3 -3
  1081. package/dist/esm/gov-accordion.entry.js.map +1 -1
  1082. package/dist/esm/gov-attachments.gov-attachments-item.gov-form-message.entry.js.map +1 -1
  1083. package/dist/esm/gov-attachments_3.entry.js +11 -7
  1084. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  1085. package/dist/esm/gov-backdrop.entry.js +3 -3
  1086. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  1087. package/dist/esm/gov-banner.entry.js +4 -4
  1088. package/dist/esm/gov-banner.entry.js.map +1 -1
  1089. package/dist/esm/gov-blockquote.entry.js +3 -3
  1090. package/dist/esm/gov-blockquote.entry.js.map +1 -1
  1091. package/dist/esm/gov-breadcrumbs.entry.js +3 -3
  1092. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  1093. package/dist/esm/gov-button.entry.js +6 -6
  1094. package/dist/esm/gov-button.entry.js.map +1 -1
  1095. package/dist/esm/gov-card.entry.js +3 -3
  1096. package/dist/esm/gov-card.entry.js.map +1 -1
  1097. package/dist/esm/gov-chip.entry.js +4 -4
  1098. package/dist/esm/gov-chip.entry.js.map +1 -1
  1099. package/dist/esm/gov-collapsible.entry.js +84 -0
  1100. package/dist/esm/gov-collapsible.entry.js.map +1 -0
  1101. package/dist/esm/gov-container.entry.js +3 -3
  1102. package/dist/esm/gov-container.entry.js.map +1 -1
  1103. package/dist/esm/gov-control-group.entry.js +9 -5
  1104. package/dist/esm/gov-control-group.entry.js.map +1 -1
  1105. package/dist/esm/gov-cookiebar.entry.js +3 -3
  1106. package/dist/esm/gov-cookiebar.entry.js.map +1 -1
  1107. package/dist/esm/gov-dialog.entry.js +3 -3
  1108. package/dist/esm/gov-dialog.entry.js.map +1 -1
  1109. package/dist/esm/gov-dropdown.entry.js +3 -3
  1110. package/dist/esm/gov-dropdown.entry.js.map +1 -1
  1111. package/dist/esm/gov-empty.entry.js +3 -3
  1112. package/dist/esm/gov-empty.entry.js.map +1 -1
  1113. package/dist/esm/gov-error-code.entry.js +3 -3
  1114. package/dist/esm/gov-error-code.entry.js.map +1 -1
  1115. package/dist/esm/gov-flex.gov-icon.gov-theme-switch.entry.js.map +1 -1
  1116. package/dist/esm/gov-flex_3.entry.js +5 -5
  1117. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  1118. package/dist/esm/gov-form-autocomplete.entry.js +3 -3
  1119. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  1120. package/dist/esm/gov-form-checkbox-group.entry.js +4 -4
  1121. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  1122. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  1123. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  1124. package/dist/esm/gov-form-control.entry.js +3 -3
  1125. package/dist/esm/gov-form-control.entry.js.map +1 -1
  1126. package/dist/esm/gov-form-file.entry.js +3 -7
  1127. package/dist/esm/gov-form-file.entry.js.map +1 -1
  1128. package/dist/esm/gov-form-group.entry.js +3 -3
  1129. package/dist/esm/gov-form-group.entry.js.map +1 -1
  1130. package/dist/esm/gov-form-input.gov-skeleton.entry.js.map +1 -1
  1131. package/dist/esm/gov-form-input_2.entry.js +8 -8
  1132. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  1133. package/dist/esm/gov-form-label.entry.js +2 -2
  1134. package/dist/esm/gov-form-label.entry.js.map +1 -1
  1135. package/dist/esm/gov-form-multi-select.entry.js +4 -4
  1136. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  1137. package/dist/esm/gov-form-password-power.entry.js +2 -2
  1138. package/dist/esm/gov-form-password-power.entry.js.map +1 -1
  1139. package/dist/esm/gov-form-radio-group.entry.js +4 -4
  1140. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  1141. package/dist/esm/gov-form-radio.entry.js +2 -2
  1142. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  1143. package/dist/esm/gov-form-range.entry.js +4 -4
  1144. package/dist/esm/gov-form-range.entry.js.map +1 -1
  1145. package/dist/esm/gov-form-search.entry.js +2 -2
  1146. package/dist/esm/gov-form-search.entry.js.map +1 -1
  1147. package/dist/esm/gov-form-select.entry.js +4 -4
  1148. package/dist/esm/gov-form-select.entry.js.map +1 -1
  1149. package/dist/esm/gov-form-switch.entry.js +2 -2
  1150. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  1151. package/dist/esm/gov-grid-item.entry.js +3 -3
  1152. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  1153. package/dist/esm/gov-grid.entry.js +3 -3
  1154. package/dist/esm/gov-grid.entry.js.map +1 -1
  1155. package/dist/esm/gov-infobar.entry.js +4 -4
  1156. package/dist/esm/gov-infobar.entry.js.map +1 -1
  1157. package/dist/esm/gov-layout-column.entry.js +3 -3
  1158. package/dist/esm/gov-layout-column.entry.js.map +1 -1
  1159. package/dist/esm/gov-layout.entry.js +3 -3
  1160. package/dist/esm/gov-layout.entry.js.map +1 -1
  1161. package/dist/esm/gov-lifecycle.entry.js +2 -2
  1162. package/dist/esm/gov-lifecycle.entry.js.map +1 -1
  1163. package/dist/esm/gov-link.entry.js +3 -3
  1164. package/dist/esm/gov-link.entry.js.map +1 -1
  1165. package/dist/esm/gov-loading.entry.js +3 -3
  1166. package/dist/esm/gov-loading.entry.js.map +1 -1
  1167. package/dist/esm/gov-message.entry.js +3 -3
  1168. package/dist/esm/gov-message.entry.js.map +1 -1
  1169. package/dist/esm/gov-pagination.entry.js +2 -2
  1170. package/dist/esm/gov-pagination.entry.js.map +1 -1
  1171. package/dist/esm/gov-spacer.entry.js +3 -3
  1172. package/dist/esm/gov-spacer.entry.js.map +1 -1
  1173. package/dist/esm/gov-stepper-item.entry.js +3 -3
  1174. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  1175. package/dist/esm/gov-stepper.entry.js +3 -3
  1176. package/dist/esm/gov-stepper.entry.js.map +1 -1
  1177. package/dist/esm/gov-tabs-item.entry.js +3 -3
  1178. package/dist/esm/gov-tabs-item.entry.js.map +1 -1
  1179. package/dist/esm/gov-tabs.entry.js +3 -3
  1180. package/dist/esm/gov-tabs.entry.js.map +1 -1
  1181. package/dist/esm/gov-tag.entry.js +3 -3
  1182. package/dist/esm/gov-tag.entry.js.map +1 -1
  1183. package/dist/esm/gov-tile.entry.js +3 -3
  1184. package/dist/esm/gov-tile.entry.js.map +1 -1
  1185. package/dist/esm/gov-toast.entry.js +3 -3
  1186. package/dist/esm/gov-toast.entry.js.map +1 -1
  1187. package/dist/esm/gov-tooltip.gov-tooltip-content.entry.js.map +1 -0
  1188. package/dist/esm/{gov-tooltip.entry.js → gov-tooltip_2.entry.js} +78 -11
  1189. package/dist/esm/gov-tooltip_2.entry.js.map +1 -0
  1190. package/dist/esm/gov-wizard-item.entry.js +4 -4
  1191. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  1192. package/dist/esm/gov-wizard.entry.js +3 -3
  1193. package/dist/esm/gov-wizard.entry.js.map +1 -1
  1194. package/dist/esm/gov.log-BtqD9K8d.js.map +1 -1
  1195. package/dist/esm/helpers-GYov8gU1.js.map +1 -1
  1196. package/dist/esm/helpers.types-DNztiAH0.js.map +1 -1
  1197. package/dist/esm/{index-DT2tslUp.js → index-ClISz4NF.js} +148 -490
  1198. package/dist/esm/index-ClISz4NF.js.map +1 -0
  1199. package/dist/esm/loader.js +3 -3
  1200. package/dist/esm/props-CJZgTDla.js.map +1 -1
  1201. package/dist/esm/sizes-BcQO4NH2.js.map +1 -1
  1202. package/dist/esm/stencil.utils-Cjg0wpDG.js.map +1 -1
  1203. package/dist/esm/string.utils-vN03FcXN.js.map +1 -1
  1204. package/dist/esm/{template-BBOh2pxy.js → template-CoD1xawt.js} +6 -2
  1205. package/dist/esm/template-CoD1xawt.js.map +1 -0
  1206. package/dist/esm/utils-CQvUntGY.js.map +1 -1
  1207. package/dist/esm/wcag-CD6_13JO.js.map +1 -1
  1208. package/dist/globals.d.ts +2 -2
  1209. package/dist/hydrate/index.js +373 -412
  1210. package/dist/hydrate/index.mjs +373 -412
  1211. package/dist/stencil.config.js +2 -4
  1212. package/dist/stencil.config.js.map +1 -1
  1213. package/dist/types/Users/KameraT/Desktop/Projects/DIA/Sarka/designSystemFinal/gov-design-system/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  1214. package/dist/types/components/gov-button/button/gov-button.d.ts +2 -2
  1215. package/dist/types/components/gov-chip/gov-chip.d.ts +1 -1
  1216. package/dist/types/components/gov-collapsible/constants.d.ts +18 -0
  1217. package/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
  1218. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  1219. package/dist/types/components/gov-control-group/gov-control-group.d.ts +4 -0
  1220. package/dist/types/components/gov-form/file/gov-form-file.d.ts +0 -4
  1221. package/dist/types/components.d.ts +73 -16
  1222. package/dist/types/helpers/Dom/template.types.d.ts +2 -0
  1223. package/dist/types/index.d.ts +0 -1
  1224. package/dist/types/interfaces.d.ts +1 -1
  1225. package/dist/types/stencil-public-runtime.d.ts +5 -12
  1226. package/dist/types/types/typings.d.ts +6 -6
  1227. package/package.json +29 -29
  1228. package/dist/cjs/constants-CS58GJeI.js +0 -29
  1229. package/dist/cjs/constants-CS58GJeI.js.map +0 -1
  1230. package/dist/cjs/gov-tooltip-content.cjs.entry.js +0 -65
  1231. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +0 -1
  1232. package/dist/cjs/gov-tooltip-content.entry.cjs.js.map +0 -1
  1233. package/dist/cjs/gov-tooltip.cjs.entry.js.map +0 -1
  1234. package/dist/cjs/gov-tooltip.entry.cjs.js.map +0 -1
  1235. package/dist/cjs/index-pjwoybrU.js.map +0 -1
  1236. package/dist/cjs/template-DS4pSCTb.js.map +0 -1
  1237. package/dist/collection/pages/Accordion.js +0 -300
  1238. package/dist/collection/pages/Accordion.js.map +0 -1
  1239. package/dist/collection/pages/AttributeSection.js +0 -59
  1240. package/dist/collection/pages/AttributeSection.js.map +0 -1
  1241. package/dist/collection/pages/Avatar.js +0 -47
  1242. package/dist/collection/pages/Avatar.js.map +0 -1
  1243. package/dist/collection/pages/Badge.js +0 -29
  1244. package/dist/collection/pages/Badge.js.map +0 -1
  1245. package/dist/collection/pages/Banner.js +0 -278
  1246. package/dist/collection/pages/Banner.js.map +0 -1
  1247. package/dist/collection/pages/Blockquote.js +0 -25
  1248. package/dist/collection/pages/Blockquote.js.map +0 -1
  1249. package/dist/collection/pages/Breadcrumbs.js +0 -62
  1250. package/dist/collection/pages/Breadcrumbs.js.map +0 -1
  1251. package/dist/collection/pages/Button.js +0 -1450
  1252. package/dist/collection/pages/Button.js.map +0 -1
  1253. package/dist/collection/pages/Card.js +0 -78
  1254. package/dist/collection/pages/Card.js.map +0 -1
  1255. package/dist/collection/pages/Chip.js +0 -265
  1256. package/dist/collection/pages/Chip.js.map +0 -1
  1257. package/dist/collection/pages/Collapsible.js +0 -43
  1258. package/dist/collection/pages/Collapsible.js.map +0 -1
  1259. package/dist/collection/pages/Container.js +0 -21
  1260. package/dist/collection/pages/Container.js.map +0 -1
  1261. package/dist/collection/pages/ControlGroup.js +0 -136
  1262. package/dist/collection/pages/ControlGroup.js.map +0 -1
  1263. package/dist/collection/pages/CookieConsent.js +0 -29
  1264. package/dist/collection/pages/CookieConsent.js.map +0 -1
  1265. package/dist/collection/pages/Dialog.js +0 -56
  1266. package/dist/collection/pages/Dialog.js.map +0 -1
  1267. package/dist/collection/pages/Empty.js +0 -64
  1268. package/dist/collection/pages/Empty.js.map +0 -1
  1269. package/dist/collection/pages/Error.js +0 -18
  1270. package/dist/collection/pages/Error.js.map +0 -1
  1271. package/dist/collection/pages/Flex.js +0 -62
  1272. package/dist/collection/pages/Flex.js.map +0 -1
  1273. package/dist/collection/pages/FormLabel.js +0 -13
  1274. package/dist/collection/pages/FormLabel.js.map +0 -1
  1275. package/dist/collection/pages/FormMessage.js +0 -82
  1276. package/dist/collection/pages/FormMessage.js.map +0 -1
  1277. package/dist/collection/pages/Forms.js +0 -2318
  1278. package/dist/collection/pages/Forms.js.map +0 -1
  1279. package/dist/collection/pages/FormsRestructure.js +0 -13
  1280. package/dist/collection/pages/FormsRestructure.js.map +0 -1
  1281. package/dist/collection/pages/Grid.js +0 -113
  1282. package/dist/collection/pages/Grid.js.map +0 -1
  1283. package/dist/collection/pages/Home.js +0 -114
  1284. package/dist/collection/pages/Home.js.map +0 -1
  1285. package/dist/collection/pages/HorizontalStepper.js +0 -85
  1286. package/dist/collection/pages/HorizontalStepper.js.map +0 -1
  1287. package/dist/collection/pages/Icon.js +0 -32
  1288. package/dist/collection/pages/Icon.js.map +0 -1
  1289. package/dist/collection/pages/Infobar.js +0 -129
  1290. package/dist/collection/pages/Infobar.js.map +0 -1
  1291. package/dist/collection/pages/Layout.js +0 -97
  1292. package/dist/collection/pages/Layout.js.map +0 -1
  1293. package/dist/collection/pages/Loading.js +0 -89
  1294. package/dist/collection/pages/Loading.js.map +0 -1
  1295. package/dist/collection/pages/Message.js +0 -82
  1296. package/dist/collection/pages/Message.js.map +0 -1
  1297. package/dist/collection/pages/Pagination.js +0 -38
  1298. package/dist/collection/pages/Pagination.js.map +0 -1
  1299. package/dist/collection/pages/Spacer.js +0 -26
  1300. package/dist/collection/pages/Spacer.js.map +0 -1
  1301. package/dist/collection/pages/Stepper.js +0 -103
  1302. package/dist/collection/pages/Stepper.js.map +0 -1
  1303. package/dist/collection/pages/Tabs.js +0 -611
  1304. package/dist/collection/pages/Tabs.js.map +0 -1
  1305. package/dist/collection/pages/Tag.js +0 -220
  1306. package/dist/collection/pages/Tag.js.map +0 -1
  1307. package/dist/collection/pages/Tiles.js +0 -107
  1308. package/dist/collection/pages/Tiles.js.map +0 -1
  1309. package/dist/collection/pages/ToastMessage.js +0 -47
  1310. package/dist/collection/pages/ToastMessage.js.map +0 -1
  1311. package/dist/collection/pages/ToastMessageCountdown.js +0 -47
  1312. package/dist/collection/pages/ToastMessageCountdown.js.map +0 -1
  1313. package/dist/collection/pages/Tooltip.js +0 -168
  1314. package/dist/collection/pages/Tooltip.js.map +0 -1
  1315. package/dist/collection/pages/Typography.js +0 -161
  1316. package/dist/collection/pages/Typography.js.map +0 -1
  1317. package/dist/collection/pages/UserNavigation.js +0 -134
  1318. package/dist/collection/pages/UserNavigation.js.map +0 -1
  1319. package/dist/collection/pages/Wizard.js +0 -106
  1320. package/dist/collection/pages/Wizard.js.map +0 -1
  1321. package/dist/components/p-8QWehgod.js +0 -2
  1322. package/dist/components/p-8QWehgod.js.map +0 -1
  1323. package/dist/components/p-BcZ7-N5H.js +0 -2
  1324. package/dist/components/p-BcZ7-N5H.js.map +0 -1
  1325. package/dist/components/p-BlBAryxm.js +0 -2
  1326. package/dist/components/p-BlBAryxm.js.map +0 -1
  1327. package/dist/components/p-Btw6IAjS.js.map +0 -1
  1328. package/dist/components/p-C4pc6Rox.js.map +0 -1
  1329. package/dist/components/p-CSjqhysd.js.map +0 -1
  1330. package/dist/components/p-Cta_74Ps.js +0 -2
  1331. package/dist/components/p-Cta_74Ps.js.map +0 -1
  1332. package/dist/components/p-D4Z6jWqx.js +0 -2
  1333. package/dist/components/p-D4Z6jWqx.js.map +0 -1
  1334. package/dist/components/p-DfJDyRCE.js +0 -2
  1335. package/dist/components/p-DfJDyRCE.js.map +0 -1
  1336. package/dist/components/p-DnZEr-aq.js +0 -2
  1337. package/dist/components/p-DnZEr-aq.js.map +0 -1
  1338. package/dist/components/p-WmFNIuTf.js.map +0 -1
  1339. package/dist/components/p-wlTP5ZEU.js.map +0 -1
  1340. package/dist/core/gov-tooltip-content.entry.esm.js.map +0 -1
  1341. package/dist/core/gov-tooltip.entry.esm.js.map +0 -1
  1342. package/dist/core/p-01482eb2.entry.js +0 -2
  1343. package/dist/core/p-01482eb2.entry.js.map +0 -1
  1344. package/dist/core/p-0dbda4ab.entry.js.map +0 -1
  1345. package/dist/core/p-19a408eb.entry.js.map +0 -1
  1346. package/dist/core/p-1bfbad36.entry.js +0 -2
  1347. package/dist/core/p-1bfbad36.entry.js.map +0 -1
  1348. package/dist/core/p-1f4450cc.entry.js +0 -2
  1349. package/dist/core/p-1f4450cc.entry.js.map +0 -1
  1350. package/dist/core/p-2142c481.entry.js.map +0 -1
  1351. package/dist/core/p-25a33448.entry.js +0 -2
  1352. package/dist/core/p-25a33448.entry.js.map +0 -1
  1353. package/dist/core/p-2affc4c0.entry.js +0 -2
  1354. package/dist/core/p-2affc4c0.entry.js.map +0 -1
  1355. package/dist/core/p-3477fcf1.entry.js +0 -2
  1356. package/dist/core/p-3477fcf1.entry.js.map +0 -1
  1357. package/dist/core/p-35c24ac5.entry.js +0 -2
  1358. package/dist/core/p-35c24ac5.entry.js.map +0 -1
  1359. package/dist/core/p-35f784be.entry.js +0 -2
  1360. package/dist/core/p-35f784be.entry.js.map +0 -1
  1361. package/dist/core/p-37770cee.entry.js +0 -2
  1362. package/dist/core/p-37770cee.entry.js.map +0 -1
  1363. package/dist/core/p-37b98852.entry.js +0 -2
  1364. package/dist/core/p-37b98852.entry.js.map +0 -1
  1365. package/dist/core/p-48a3bb49.entry.js.map +0 -1
  1366. package/dist/core/p-4e170f53.entry.js +0 -2
  1367. package/dist/core/p-4e170f53.entry.js.map +0 -1
  1368. package/dist/core/p-57aac00e.entry.js +0 -2
  1369. package/dist/core/p-57aac00e.entry.js.map +0 -1
  1370. package/dist/core/p-5c9371da.entry.js.map +0 -1
  1371. package/dist/core/p-6508f953.entry.js +0 -2
  1372. package/dist/core/p-6508f953.entry.js.map +0 -1
  1373. package/dist/core/p-658c1d84.entry.js.map +0 -1
  1374. package/dist/core/p-730b823a.entry.js +0 -2
  1375. package/dist/core/p-730b823a.entry.js.map +0 -1
  1376. package/dist/core/p-7f46f70a.entry.js +0 -2
  1377. package/dist/core/p-7f46f70a.entry.js.map +0 -1
  1378. package/dist/core/p-83507d07.entry.js +0 -2
  1379. package/dist/core/p-83507d07.entry.js.map +0 -1
  1380. package/dist/core/p-871d4318.entry.js +0 -2
  1381. package/dist/core/p-871d4318.entry.js.map +0 -1
  1382. package/dist/core/p-8873dc4b.entry.js.map +0 -1
  1383. package/dist/core/p-8c942041.entry.js +0 -2
  1384. package/dist/core/p-8c942041.entry.js.map +0 -1
  1385. package/dist/core/p-8d42ee97.entry.js +0 -2
  1386. package/dist/core/p-8d42ee97.entry.js.map +0 -1
  1387. package/dist/core/p-8dceba0b.entry.js +0 -2
  1388. package/dist/core/p-8dceba0b.entry.js.map +0 -1
  1389. package/dist/core/p-901cbf94.entry.js +0 -2
  1390. package/dist/core/p-901cbf94.entry.js.map +0 -1
  1391. package/dist/core/p-90b277bb.entry.js +0 -2
  1392. package/dist/core/p-90b277bb.entry.js.map +0 -1
  1393. package/dist/core/p-90ff56f4.entry.js.map +0 -1
  1394. package/dist/core/p-962d5767.entry.js.map +0 -1
  1395. package/dist/core/p-984b6020.entry.js.map +0 -1
  1396. package/dist/core/p-9d2a4eb1.entry.js +0 -2
  1397. package/dist/core/p-9d2a4eb1.entry.js.map +0 -1
  1398. package/dist/core/p-9ff7e018.entry.js +0 -2
  1399. package/dist/core/p-9ff7e018.entry.js.map +0 -1
  1400. package/dist/core/p-BBOh2pxy.js +0 -2
  1401. package/dist/core/p-BBOh2pxy.js.map +0 -1
  1402. package/dist/core/p-CLBboRhb.js +0 -2
  1403. package/dist/core/p-CLBboRhb.js.map +0 -1
  1404. package/dist/core/p-DT2tslUp.js +0 -3
  1405. package/dist/core/p-DT2tslUp.js.map +0 -1
  1406. package/dist/core/p-a18c600d.entry.js +0 -2
  1407. package/dist/core/p-a18c600d.entry.js.map +0 -1
  1408. package/dist/core/p-aaa73dc8.entry.js.map +0 -1
  1409. package/dist/core/p-ade69b24.entry.js +0 -2
  1410. package/dist/core/p-ade69b24.entry.js.map +0 -1
  1411. package/dist/core/p-b19afdd8.entry.js +0 -2
  1412. package/dist/core/p-b19afdd8.entry.js.map +0 -1
  1413. package/dist/core/p-b97b4439.entry.js +0 -2
  1414. package/dist/core/p-b97b4439.entry.js.map +0 -1
  1415. package/dist/core/p-bbe0d727.entry.js.map +0 -1
  1416. package/dist/core/p-bedd75e1.entry.js +0 -2
  1417. package/dist/core/p-bedd75e1.entry.js.map +0 -1
  1418. package/dist/core/p-c1a1fc45.entry.js.map +0 -1
  1419. package/dist/core/p-c6f52c6f.entry.js +0 -2
  1420. package/dist/core/p-c6f52c6f.entry.js.map +0 -1
  1421. package/dist/core/p-c99cc786.entry.js +0 -2
  1422. package/dist/core/p-c99cc786.entry.js.map +0 -1
  1423. package/dist/core/p-c9edada1.entry.js +0 -2
  1424. package/dist/core/p-c9edada1.entry.js.map +0 -1
  1425. package/dist/core/p-cddfc899.entry.js +0 -2
  1426. package/dist/core/p-cddfc899.entry.js.map +0 -1
  1427. package/dist/core/p-ce588d98.entry.js +0 -2
  1428. package/dist/core/p-ce588d98.entry.js.map +0 -1
  1429. package/dist/core/p-d4440adf.entry.js.map +0 -1
  1430. package/dist/core/p-d48d5870.entry.js.map +0 -1
  1431. package/dist/core/p-e169f098.entry.js.map +0 -1
  1432. package/dist/core/p-e3e3e9f2.entry.js +0 -2
  1433. package/dist/core/p-e3e3e9f2.entry.js.map +0 -1
  1434. package/dist/core/p-e8507630.entry.js +0 -2
  1435. package/dist/core/p-e8507630.entry.js.map +0 -1
  1436. package/dist/core/p-e9284c2b.entry.js +0 -2
  1437. package/dist/core/p-e9284c2b.entry.js.map +0 -1
  1438. package/dist/core/p-f01eb407.entry.js +0 -2
  1439. package/dist/core/p-f01eb407.entry.js.map +0 -1
  1440. package/dist/core/p-f0505205.entry.js.map +0 -1
  1441. package/dist/core/p-f3c873f5.entry.js +0 -2
  1442. package/dist/core/p-f3c873f5.entry.js.map +0 -1
  1443. package/dist/esm/constants-TT_l4YYj.js +0 -24
  1444. package/dist/esm/constants-TT_l4YYj.js.map +0 -1
  1445. package/dist/esm/gov-tooltip-content.entry.js +0 -63
  1446. package/dist/esm/gov-tooltip-content.entry.js.map +0 -1
  1447. package/dist/esm/gov-tooltip.entry.js.map +0 -1
  1448. package/dist/esm/index-DT2tslUp.js.map +0 -1
  1449. package/dist/esm/template-BBOh2pxy.js.map +0 -1
  1450. package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
  1451. package/dist/types/pages/Accordion.d.ts +0 -3
  1452. package/dist/types/pages/AttributeSection.d.ts +0 -3
  1453. package/dist/types/pages/Avatar.d.ts +0 -3
  1454. package/dist/types/pages/Badge.d.ts +0 -3
  1455. package/dist/types/pages/Banner.d.ts +0 -3
  1456. package/dist/types/pages/Blockquote.d.ts +0 -3
  1457. package/dist/types/pages/Breadcrumbs.d.ts +0 -3
  1458. package/dist/types/pages/Button.d.ts +0 -3
  1459. package/dist/types/pages/Card.d.ts +0 -3
  1460. package/dist/types/pages/Chip.d.ts +0 -3
  1461. package/dist/types/pages/Collapsible.d.ts +0 -3
  1462. package/dist/types/pages/Container.d.ts +0 -3
  1463. package/dist/types/pages/ControlGroup.d.ts +0 -3
  1464. package/dist/types/pages/CookieConsent.d.ts +0 -3
  1465. package/dist/types/pages/Dialog.d.ts +0 -3
  1466. package/dist/types/pages/Empty.d.ts +0 -3
  1467. package/dist/types/pages/Error.d.ts +0 -3
  1468. package/dist/types/pages/Flex.d.ts +0 -3
  1469. package/dist/types/pages/FormLabel.d.ts +0 -3
  1470. package/dist/types/pages/FormMessage.d.ts +0 -3
  1471. package/dist/types/pages/Forms.d.ts +0 -8
  1472. package/dist/types/pages/FormsRestructure.d.ts +0 -3
  1473. package/dist/types/pages/Grid.d.ts +0 -3
  1474. package/dist/types/pages/Home.d.ts +0 -3
  1475. package/dist/types/pages/HorizontalStepper.d.ts +0 -3
  1476. package/dist/types/pages/Icon.d.ts +0 -3
  1477. package/dist/types/pages/Infobar.d.ts +0 -3
  1478. package/dist/types/pages/Layout.d.ts +0 -3
  1479. package/dist/types/pages/Loading.d.ts +0 -3
  1480. package/dist/types/pages/Message.d.ts +0 -3
  1481. package/dist/types/pages/Pagination.d.ts +0 -3
  1482. package/dist/types/pages/Spacer.d.ts +0 -3
  1483. package/dist/types/pages/Stepper.d.ts +0 -3
  1484. package/dist/types/pages/Tabs.d.ts +0 -3
  1485. package/dist/types/pages/Tag.d.ts +0 -3
  1486. package/dist/types/pages/Tiles.d.ts +0 -3
  1487. package/dist/types/pages/ToastMessage.d.ts +0 -3
  1488. package/dist/types/pages/ToastMessageCountdown.d.ts +0 -3
  1489. package/dist/types/pages/Tooltip.d.ts +0 -3
  1490. package/dist/types/pages/Typography.d.ts +0 -3
  1491. package/dist/types/pages/UserNavigation.d.ts +0 -24
  1492. package/dist/types/pages/Wizard.d.ts +0 -3
@@ -1 +1 @@
1
- {"version":3,"file":"gov-wizard.entry.esm.js","sources":["../../../packages/core/src/components/gov-wizard/gov-wizard.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizes, WizardSizesType, WizardClass, WizardItemClass } from \"./constants\"\nimport { GovWizardItemChangeEvent } from \"./gov-wizard-item.d\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { validateAccessibleLabel } from \"../../helpers/Validate/wcag\"\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\nimport { delay } from \"../../utils/utils\"\n\n@Component({\n\ttag: \"gov-wizard\",\n})\nexport class GovWizard {\n\tprivate h: GovHost\n\tprivate hydrated = false\n\n\t@Element() readonly host: HTMLGovWizardElement\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t/**\n\t * Size of wizard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Adds accessible label for the wizard that is only shown for screen readers.\n\t */\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\n\t/**\n\t * Called when the wizard children state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<GovWizardItemChangeEvent>\n\n\t@Watch(\"size\")\n\tprivate validateSize(newValue: string): void {\n\t\tvalidateProp(WizardSizes, newValue, WizardClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.host.querySelectorAll(WizardItemClass.root).forEach((child: HTMLGovWizardItemElement) => {\n\t\t\tchild.setAttribute(\"size\", this.size)\n\t\t\t/*\n\t\t\tchild.addEventListener('gov-change', (e: GovWizardItemCustomEvent<GovWizardItemChangeEvent>) => {\n\t\t\t\te.stopPropagation()\n\t\t\t\tthis.govChange.emit(e.detail)\n\t\t\t})\n\t\t\t*/\n\t\t})\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateWcag()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizardClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the WCAG attributes of the component\n\t */\n\t@Method()\n\tpublic async validateWcag(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.wcagLabel, this.wcagLabelledBy, WizardClass.root)\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;MAaa,SAAS,GAAA,MAAA;AAMrB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAJQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAQxB;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAqB,GAAG;QAN5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AAoBO,IAAA,YAAY,CAAC,QAAgB,EAAA;QACpC,YAAY,CAAC,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;IAGtD,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;;IAG7B,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAA+B,KAAI;YAC5F,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;AACrC;;;;;AAKE;AACH,SAAC,CAAC;;AAGH,IAAA,MAAM,kBAAkB,GAAA;QACvB,IAAI,uBAAuB,EAAE,EAAE;AAC9B,YAAA,MAAM,KAAK,CAAC,GAAG,CAAC;AAChB,YAAA,MAAM,IAAI,CAAC,YAAY,EAAE;;;IAI3B,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;;IAGrB,MAAM,GAAA;QACL,QACC,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EAClG,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACF;;AAIT;;AAEG;AAEI,IAAA,MAAM,YAAY,GAAA;AACxB,QAAA,uBAAuB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC;;;;;;;;;;"}
1
+ {"version":3,"file":"gov-wizard.entry.esm.js","sources":["../../../packages/core/src/components/gov-wizard/gov-wizard.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\r\nimport { validateProp } from \"../../helpers/Validate/props\"\r\nimport { WizardSizes, WizardSizesType, WizardClass, WizardItemClass } from \"./constants\"\r\nimport { GovWizardItemChangeEvent } from \"./gov-wizard-item.d\"\r\nimport { govHost } from \"../../helpers/Dom/template\"\r\nimport { GovHost } from \"../../helpers/Dom/template.types\"\r\nimport { validateAccessibleLabel } from \"../../helpers/Validate/wcag\"\r\nimport { canValidateWcagOnRender } from \"../../helpers/Dom/win\"\r\nimport { delay } from \"../../utils/utils\"\r\n\r\n@Component({\r\n\ttag: \"gov-wizard\",\r\n})\r\nexport class GovWizard {\r\n\tprivate h: GovHost\r\n\tprivate hydrated = false\r\n\r\n\t@Element() readonly host: HTMLGovWizardElement\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t/**\r\n\t * Size of wizard\r\n\t */\r\n\t@Prop() readonly size?: WizardSizesType = \"m\"\r\n\t/**\r\n\t * Adds accessible label for the wizard that is only shown for screen readers.\r\n\t */\r\n\t@Prop({ attribute: \"wcag-label\" }) readonly wcagLabel: string\r\n\t/**\r\n\t * String of id's that indicate alternative labels elements\r\n\t */\r\n\t@Prop({ attribute: \"wcag-labelled-by\" }) readonly wcagLabelledBy: string\r\n\t/**\r\n\t * Called when the wizard children state changes\r\n\t */\r\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<GovWizardItemChangeEvent>\r\n\r\n\t@Watch(\"size\")\r\n\tprivate validateSize(newValue: string): void {\r\n\t\tvalidateProp(WizardSizes, newValue, WizardClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.host.querySelectorAll(WizardItemClass.root).forEach((child: HTMLGovWizardItemElement) => {\r\n\t\t\tchild.setAttribute(\"size\", this.size)\r\n\t\t\t/*\r\n\t\t\tchild.addEventListener('gov-change', (e: GovWizardItemCustomEvent<GovWizardItemChangeEvent>) => {\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tthis.govChange.emit(e.detail)\r\n\t\t\t})\r\n\t\t\t*/\r\n\t\t})\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tif (canValidateWcagOnRender()) {\r\n\t\t\tawait delay(500)\r\n\t\t\tawait this.validateWcag()\r\n\t\t}\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(WizardClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Validate the WCAG attributes of the component\r\n\t */\r\n\t@Method()\r\n\tpublic async validateWcag(): Promise<void> {\r\n\t\tvalidateAccessibleLabel(this.wcagLabel, this.wcagLabelledBy, WizardClass.root)\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;MAaa,SAAS,GAAA,MAAA;AAMrB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAJQ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAQxB;;AAEG;AACc,QAAA,IAAI,CAAA,IAAA,GAAqB,GAAG;QAN5C,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC3B;AAoBO,IAAA,YAAY,CAAC,QAAgB,EAAA;QACpC,YAAY,CAAC,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC;;IAGtD,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;;IAG7B,gBAAgB,GAAA;AACf,QAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAA+B,KAAI;YAC5F,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;AACrC;;;;;AAKE;AACH,SAAC,CAAC;;AAGH,IAAA,MAAM,kBAAkB,GAAA;QACvB,IAAI,uBAAuB,EAAE,EAAE;AAC9B,YAAA,MAAM,KAAK,CAAC,GAAG,CAAC;AAChB,YAAA,MAAM,IAAI,CAAC,YAAY,EAAE;;;IAI3B,iBAAiB,GAAA;AAChB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;;IAGrB,MAAM,GAAA;QACL,QACC,CAAA,CAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EAClG,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACF;;AAIT;;AAEG;AAEI,IAAA,MAAM,YAAY,GAAA;AACxB,QAAA,uBAAuB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- import{r as t,c as i,h as s,H as e,g as o}from"./p-DT2tslUp.js";import{g as r,a as n}from"./p-BBOh2pxy.js";import{c as a}from"./p-vN03FcXN.js";import{b as c}from"./p-Bo1ROm5Q.js";import"./p-BcQO4NH2.js";import"./p-U40vKHrs.js";import"./p-CQvUntGY.js";const h={triggerEvents:"click",exclude:""};function d(t,i,s,e=h){const o=p(e);f(e).forEach((e=>{window.addEventListener(e,(e=>{l(e,t,i,s,o)}),false)}))}function l(t,i,s,e,o){const r=t.target;if(!s.contains(r)&&!u(r,o)){e.call(i)}}function f(t){if(t.triggerEvents){return t.triggerEvents.split(",").map((t=>t.trim()))}return["click"]}function p(t){if(t.exclude){try{return Array.from(document.querySelectorAll(t.exclude))}catch(i){console.warn(`@ClickOutside: Exclude: '${t.exclude}' will not be evaluated. Check your exclude selector syntax.`,i)}}return}function u(t,i){if(t&&i){for(let s of i){if(s.contains(t)){return true}}}return false}var g;(function(t){t["LEFT"]="left";t["RIGHT"]="right"})(g||(g={}));const v={root:"gov-dropdown",list:"gov-dropdown__list"};const b=class{constructor(s){t(this,s);this.govChange=i(this,"gov-change");this.open=false;this.position=g.LEFT;this.h=r(this.host);this.listId=a("GovDropdownList");this.controlId=a("GovDropdownControl")}watchOpen(){var t;(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded",n(this.open))}get trigger(){return this.host.querySelector(`* > ${c.root}`)}get list(){return this.h.getSlot("list")}componentWillLoad(){var t;if(!this.trigger)return;this.trigger.setAttribute("aria-controls",this.listId);this.trigger.setAttribute("aria-haspopup",n(!!this.list));this.trigger.setAttribute("aria-expanded",n(this.open));this.trigger.setAttribute("identifier",(t=this.identifier)!==null&&t!==void 0?t:this.controlId);this.trigger.addEventListener("gov-click",(t=>{t.preventDefault();t.stopPropagation();this.open=!this.open;this.govChange.emit({component:v.root,originalEvent:t,open:this.open})}))}render(){return s(e,{key:"ed9beb8952cacb4b76fc73ab31345bbe8c5d206d",class:this.h.classes([v.root]),open:this.open,position:this.position},s("slot",{key:"49d4da21a53be27e687622d17e21474c7cedb26d"}),s("div",{key:"941b05aab703a6bfd981d912763f4576899fd617",ref:t=>d(this,t,(()=>this.open=false)),class:v.list,id:this.listId,"aria-labelledby":this.controlId,"aria-hidden":n(!this.open),hidden:!this.open},s("slot",{key:"cd0c1f28b7d717efd0fe8faa964df78dfbeca49f",name:"list"})))}async getState(){return this.open}async toggle(){this.open=!this.open}get host(){return o(this)}static get watchers(){return{open:["watchOpen"]}}};export{b as gov_dropdown};
2
- //# sourceMappingURL=p-c1a1fc45.entry.js.map
1
+ import{r as t,c as i,h as s,H as e,g as o}from"./p-ClISz4NF.js";import{g as r,a as n}from"./p-CoD1xawt.js";import{c as a}from"./p-vN03FcXN.js";import{b as c}from"./p-Bo1ROm5Q.js";import"./p-BcQO4NH2.js";import"./p-U40vKHrs.js";import"./p-CQvUntGY.js";const h={triggerEvents:"click",exclude:""};function l(t,i,s,e=h){const o=f(e);p(e).forEach((e=>{window.addEventListener(e,(e=>{d(e,t,i,s,o)}),false)}))}function d(t,i,s,e,o){const r=t.target;if(!s.contains(r)&&!u(r,o)){e.call(i)}}function p(t){if(t.triggerEvents){return t.triggerEvents.split(",").map((t=>t.trim()))}return["click"]}function f(t){if(t.exclude){try{return Array.from(document.querySelectorAll(t.exclude))}catch(i){console.warn(`@ClickOutside: Exclude: '${t.exclude}' will not be evaluated. Check your exclude selector syntax.`,i)}}return}function u(t,i){if(t&&i){for(let s of i){if(s.contains(t)){return true}}}return false}var g;(function(t){t["LEFT"]="left";t["RIGHT"]="right"})(g||(g={}));const v={root:"gov-dropdown",list:"gov-dropdown__list"};const m=class{constructor(s){t(this,s);this.govChange=i(this,"gov-change");this.open=false;this.position=g.LEFT;this.h=r(this.host);this.listId=a("GovDropdownList");this.controlId=a("GovDropdownControl")}watchOpen(){var t;(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded",n(this.open))}get trigger(){return this.host.querySelector(`* > ${c.root}`)}get list(){return this.h.getSlot("list")}componentWillLoad(){var t;if(!this.trigger)return;this.trigger.setAttribute("aria-controls",this.listId);this.trigger.setAttribute("aria-haspopup",n(!!this.list));this.trigger.setAttribute("aria-expanded",n(this.open));this.trigger.setAttribute("identifier",(t=this.identifier)!==null&&t!==void 0?t:this.controlId);this.trigger.addEventListener("gov-click",(t=>{t.preventDefault();t.stopPropagation();this.open=!this.open;this.govChange.emit({component:v.root,originalEvent:t,open:this.open})}))}render(){return s(e,{key:"24e596043840ec3b4e2ae0c59cecd1ec5425f5b5",class:this.h.classes([v.root]),open:this.open,position:this.position},s("slot",{key:"5c9c344162c6842585b134b327e9d45e4c1df19e"}),s("div",{key:"b424408e77eaebc2eedfe5ac1c7a916808af21f7",ref:t=>l(this,t,(()=>this.open=false)),class:v.list,id:this.listId,"aria-labelledby":this.controlId,"aria-hidden":n(!this.open),hidden:!this.open},s("slot",{key:"b39d21fd27642fd5e7ece4b9d68de2e8468b93ae",name:"list"})))}async getState(){return this.open}async toggle(){this.open=!this.open}get host(){return o(this)}static get watchers(){return{open:["watchOpen"]}}};export{m as gov_dropdown};
2
+ //# sourceMappingURL=p-017d6340.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ClickOutsideOptionsDefaults","triggerEvents","exclude","registerClickOutside","component","element","callback","opt","excludedNodes","getExcludedNodes","getTriggerEvents","forEach","triggerEvent","window","addEventListener","e","initClickOutside","event","target","contains","isExcluded","call","split","map","trim","Array","from","document","querySelectorAll","err","console","warn","excudedNodes","excludedNode","Position","DropdownClass","root","list","GovDropdown","constructor","hostRef","this","open","position","LEFT","h","govHost","host","listId","createID","controlId","watchOpen","_a","trigger","setAttribute","toBoolAttr","querySelector","ButtonClass","getSlot","componentWillLoad","identifier","preventDefault","stopPropagation","govChange","emit","originalEvent","render","Host","key","class","classes","ref","el","id","hidden","name","getState","toggle"],"sources":["../../../node_modules/stencil-click-outside/dist/esm/index.js","../../../packages/core/src/components/gov-button/dropdown/constants.ts","../../../packages/core/src/components/gov-button/dropdown/gov-dropdown.tsx"],"sourcesContent":["import { Build as BUILD, getElement } from '@stencil/core';\nconst ClickOutsideOptionsDefaults = {\n triggerEvents: \"click\",\n exclude: \"\"\n};\n/**\n * Call this function as soon as the click outside of annotated method's host is done.\n * @example\n```\n@ClickOutside()\ncallback() {\n // this will run when click outside of element (host component) is done.\n}\n```\n */\nexport function ClickOutside(opt = ClickOutsideOptionsDefaults) {\n return (proto, methodName) => {\n // this is to resolve the 'compiler optimization issue':\n // lifecycle events not being called when not explicitly declared in at least one of components from bundle\n BUILD.connectedCallback = true;\n BUILD.disconnectedCallback = true;\n const { connectedCallback, disconnectedCallback } = proto;\n proto.connectedCallback = function () {\n const host = getElement(this);\n const method = this[methodName];\n registerClickOutside(this, host, method, opt);\n return connectedCallback && connectedCallback.call(this);\n };\n proto.disconnectedCallback = function () {\n const host = getElement(this);\n const method = this[methodName];\n removeClickOutside(this, host, method, opt);\n return disconnectedCallback && disconnectedCallback.call(this);\n };\n };\n}\n/**\n * Register callback function for HTMLElement to be executed when user clicks outside of element.\n * @example\n```\n<span\n ref={spanEl => registerClickOutside(this, spanEl, () => this.test())}>\n Hello, World!\n</span>;\n```\n */\nexport function registerClickOutside(component, element, callback, opt = ClickOutsideOptionsDefaults) {\n const excludedNodes = getExcludedNodes(opt);\n getTriggerEvents(opt).forEach(triggerEvent => {\n window.addEventListener(triggerEvent, (e) => {\n initClickOutside(e, component, element, callback, excludedNodes);\n }, false);\n });\n}\n/**\n * Remove click outside callback function for HTMLElement.\n */\nexport function removeClickOutside(component, element, callback, opt = ClickOutsideOptionsDefaults) {\n getTriggerEvents(opt).forEach(triggerEvent => {\n window.removeEventListener(triggerEvent, (e) => {\n initClickOutside(e, component, element, callback);\n }, false);\n });\n}\nfunction initClickOutside(event, component, element, callback, excludedNodes) {\n const target = event.target;\n if (!element.contains(target) && !isExcluded(target, excludedNodes)) {\n callback.call(component);\n }\n}\nfunction getTriggerEvents(opt) {\n if (opt.triggerEvents) {\n return opt.triggerEvents.split(\",\").map(e => e.trim());\n }\n return [\"click\"];\n}\nfunction getExcludedNodes(opt) {\n if (opt.exclude) {\n try {\n return Array.from(document.querySelectorAll(opt.exclude));\n }\n catch (err) {\n console.warn(`@ClickOutside: Exclude: '${opt.exclude}' will not be evaluated. Check your exclude selector syntax.`, err);\n }\n }\n return;\n}\nfunction isExcluded(target, excudedNodes) {\n if (target && excudedNodes) {\n for (let excludedNode of excudedNodes) {\n if (excludedNode.contains(target)) {\n return true;\n }\n }\n }\n return false;\n}\n","import { ValueOf } from \"../../../types/interfaces\"\r\n\r\nexport enum Position {\r\n\tLEFT = 'left',\r\n\tRIGHT = 'right',\r\n}\r\n\r\nexport type PositionType = `${ValueOf<typeof Position>}`\r\n\r\nexport const DropdownClass = {\r\n\troot: 'gov-dropdown',\r\n\tlist: 'gov-dropdown__list'\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch} from \"@stencil/core\"\r\nimport {registerClickOutside} from \"stencil-click-outside\"\r\nimport {govHost, toBoolAttr} from \"../../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {Nullable} from \"../../../types/interfaces\"\r\nimport {createID} from \"../../../utils/string.utils\"\r\nimport {ButtonClass} from \"../button/constants\"\r\nimport {DropdownClass, Position, PositionType} from \"./constants\"\r\nimport {DropdownEvent} from \"./gov-dropdown.types\"\r\n\r\n@Component({\r\n\ttag: \"gov-dropdown\",\r\n})\r\nexport class GovDropdown {\r\n\tprivate h: GovHost\r\n\tprivate readonly listId: string\r\n\tprivate readonly controlId: string\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.listId = createID(\"GovDropdownList\")\r\n\t\tthis.controlId = createID(\"GovDropdownControl\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovButtonElement\r\n\r\n\t/**\r\n\t * Custom trigger identifier\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Dropdown state\r\n\t */\r\n\t@Prop({mutable: true}) open = false\r\n\t/**\r\n\t * Menu display position\r\n\t */\r\n\t@Prop() readonly position: PositionType = Position.LEFT\r\n\t/**\r\n\t * Emitted when the dropdown change state\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<DropdownEvent>\r\n\r\n\t@Watch('open')\r\n\twatchOpen() {\r\n\t\tthis.trigger?.setAttribute(\"aria-expanded\", toBoolAttr(this.open))\r\n\t}\r\n\r\n\tget trigger() {\r\n\t\treturn this.host.querySelector(`* > ${ButtonClass.root}`) as HTMLGovButtonElement\r\n\t}\r\n\r\n\tget list() {\r\n\t\treturn this.h.getSlot(\"list\") as Nullable<HTMLUListElement>\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tif (!this.trigger) return;\r\n\r\n\t\tthis.trigger.setAttribute(\"aria-controls\", this.listId)\r\n\t\tthis.trigger.setAttribute(\"aria-haspopup\", toBoolAttr(!!this.list))\r\n\t\tthis.trigger.setAttribute(\"aria-expanded\", toBoolAttr(this.open))\r\n\t\tthis.trigger.setAttribute(\"identifier\", this.identifier ?? this.controlId)\r\n\r\n\t\tthis.trigger.addEventListener(\"gov-click\", (e) => {\r\n\t\t\te.preventDefault()\r\n\t\t\te.stopPropagation()\r\n\t\t\tthis.open = !this.open\r\n\r\n\t\t\tthis.govChange.emit({\r\n\t\t\t\tcomponent: DropdownClass.root,\r\n\t\t\t\toriginalEvent: e,\r\n\t\t\t\topen: this.open,\r\n\t\t\t})\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes([DropdownClass.root])} open={this.open} position={this.position}>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t\t<div\r\n\t\t\t\t\tref={el => registerClickOutside(this, el, () => this.open = false)}\r\n\t\t\t\t\tclass={DropdownClass.list}\r\n\t\t\t\t\tid={this.listId}\r\n\t\t\t\t\taria-labelledby={this.controlId}\r\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\r\n\t\t\t\t\thidden={!this.open}>\r\n\t\t\t\t\t<slot name=\"list\"></slot>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the current state of the dropdown\r\n\t */\r\n\t@Method()\r\n\tasync getState() {\r\n\t\treturn this.open\r\n\t}\r\n\r\n\t/**\r\n\t * Toggle state of dropdown\r\n\t */\r\n\t@Method()\r\n\tasync toggle() {\r\n\t\tthis.open = !this.open\r\n\t}\r\n}\r\n"],"mappings":"2PACA,MAAMA,EAA8B,CAChCC,cAAe,QACfC,QAAS,IA2CN,SAASC,EAAqBC,EAAWC,EAASC,EAAUC,EAAMP,GACrE,MAAMQ,EAAgBC,EAAiBF,GACvCG,EAAiBH,GAAKI,SAAQC,IAC1BC,OAAOC,iBAA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D,QAAIC,GACH,OAAOI,KAAKI,EAAEa,QAAQ,O,CAGvB,iBAAAC,G,MACC,IAAKlB,KAAKY,QAAS,OAEnBZ,KAAKY,QAAQC,aAAa,gBAAiBb,KAAKO,QAChDP,KAAKY,QAAQC,aAAa,gBAAiBC,IAAad,KAAKJ,OAC7DI,KAAKY,QAAQC,aAAa,gBAAiBC,EAAWd,KAAKC,OAC3DD,KAAKY,QAAQC,aAAa,cAAcF,EAAAX,KAAKmB,cAAc,MAAAR,SAAA,EAAAA,EAAAX,KAAKS,WAEhET,KAAKY,QAAQvC,iBAAiB,aAAcC,IAC3CA,EAAE8C,iBACF9C,EAAE+C,kBACFrB,KAAKC,MAAQD,KAAKC,KAElBD,KAAKsB,UAAUC,KAAK,CACnB5D,UAAW+B,EAAcC,KACzB6B,cAAelD,EACf2B,KAAMD,KAAKC,MACV,G,CAIJ,MAAAwB,GACC,OACCrB,EAACsB,EAAI,CAAAC,IAAA,2CAACC,MAAO5B,KAAKI,EAAEyB,QAAQ,CAACnC,EAAcC,OAAQM,KAAMD,KAAKC,KAAMC,SAAUF,KAAKE,UAClFE,EAAa,QAAAuB,IAAA,6CACbvB,EACC,OAAAuB,IAAA,2CAAAG,IAAKC,GAAMrE,EAAqBsC,KAAM+B,GAAI,IAAM/B,KAAKC,KAAO,QAC5D2B,MAAOlC,EAAcE,KACrBoC,GAAIhC,KAAKO,OACQ,kBAAAP,KAAKS,UACT,cAAAK,GAAYd,KAAKC,MAC9BgC,QAASjC,KAAKC,MACdG,EAAA,QAAAuB,IAAA,2CAAMO,KAAK,U,CAUf,cAAMC,GACL,OAAOnC,KAAKC,I,CAOb,YAAMmC,GACLpC,KAAKC,MAAQD,KAAKC,I","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as s,h as i,H as e,g as o}from"./p-ClISz4NF.js";import{c as h}from"./p-vN03FcXN.js";import{g as n,a,t as l}from"./p-CoD1xawt.js";import{g as r}from"./p-B6CqPcY_.js";import{i as c}from"./p-CzXeijOj.js";import{A as f,a as m}from"./p-Bz_RzYFb.js";import"./p-BcQO4NH2.js";import"./p-CQvUntGY.js";import"./p-EeKNA85D.js";import"./p-U40vKHrs.js";import"./p-DYcNEwSZ.js";import"./p-DBXGhafv.js";const d={root:"gov-form-file",area:"gov-form-file__area",input:"gov-form-file__input",inputFocus:"gov-form-file__input-focus",attachments:"gov-form-file__attachments"};function p(t){const s=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let i=0,e=parseInt(t,10)||0;while(e>=1024&&++i){e=e/1024}return e.toFixed(e<10&&i>0?1:0)+" "+s[i]}function u(t,s){if(typeof s==="string"&&s.length){return s.replace(/\s/g,"").split(",").filter((s=>new RegExp(s.replace("*",".*")).test(t.type))).length>0}else{return true}}function v(t,s){const i=Math.round(t.size);return i<=s}const g=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govFiles=s(this,"gov-files");this.govAddFile=s(this,"gov-add-file");this.govRemoveFile=s(this,"gov-remove-file");this.eventsRegistered=false;this.expanded=false;this.required=false;this.disabled=false;this.resetAfterPick=false;this.ignoreFileDuplicationCheck=false;this.displayAttachments=true;this.multiple=false;this.maxFileSize=-1;this.errorSize="Soubor je větší než povolená velikost {FILE_SIZE}";this.errorAccept="Soubor tohoto typu není povolen";this.accessibleAttachmentsLabel="Přílohy";this.files=[];this.inheritedAttributes={};this.fileId=h("GovInputFile");this.h=n(this.host);this.f=r(this.h)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("invalid",a(this.invalid));this.f.passAttrToControl("disabled",a(this.disabled));this.f.passAttrToControl("type","File")}registerListeners(){if(this.eventsRegistered){return}this.eventsRegistered=true;function t(){this.areaRef.classList.add("highlight")}function s(){this.areaRef.classList.remove("highlight")}this.inputRef.addEventListener("change",(t=>{t.preventDefault();t.stopPropagation();const s=t.target.files;if(this.resetAfterPick){if(s.length){this.validateFiles(s)}}else{this.validateFiles(s)}}),false);if(this.expanded){const i=["dragover","dragleave"];const e=["dragenter","dragover","mouseenter"];const o=["dragleave","mouseleave"];i.map((t=>this.inputRef.addEventListener(t,this.preventDefaults.bind(this),false)));e.map((s=>this.inputRef.addEventListener(s,t.bind(this),false)));o.forEach((t=>this.inputRef.addEventListener(t,s.bind(this),false)))}}preventDefaults(t){t.preventDefault();t.stopPropagation()}handleDrop(t){const s=t.dataTransfer;this.validateFiles(s.files)}validateFiles(t){let s=[];Array.from(t).map((t=>{const i=this.files.find((s=>s.file.name===t.name&&s.file.size===t.size))||null;if(i===null||this.ignoreFileDuplicationCheck){const i=typeof this.maxFileSize==="number"&&this.maxFileSize>0?v(t,this.maxFileSize):true;const e=u(t,this.accept);const o={id:h("GovFormFile"),file:t,acceptValid:e,sizeValid:i};if(this.displayAttachments){this.files=[...this.files,o]}else{s=[...s,o]}this.govAddFile.emit({component:d.root,file:o})}}));this.govFiles.emit({component:d.root,files:s.length?s:this.files});if(this.resetAfterPick){this.reset().finally()}}componentDidLoad(){this.attributeObserver=new f(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(m)}componentWillLoad(){this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs();this.inheritedAttributes=c(this.host)}async componentDidRender(){this.registerListeners()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return i(e,{key:"59bdd8c7d3bf9594fa545146ca44a00f060fccab",class:this.h.classes([d.root]),invalid:l(this.invalid),expanded:l(this.expanded)},i("div",{key:"fd1714f4eb7596fdc1eb67fe8b6d25e4ec93f454",class:d.area,ref:t=>this.areaRef=t},i("slot",{key:"2712d87a6889321616b1b4cb03ea0c61aefcd241"}),i("input",Object.assign({key:"ac998000d9551871016d4c2ab802040634ff6256",class:d.input,ref:t=>this.inputRef=t,id:this.identifier||this.fileId,type:"file",name:this.name,accept:this.accept,multiple:this.multiple,onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled},this.inheritedAttributes,{"aria-required":l(this.required),"aria-invalid":l(this.invalid),"aria-disabled":l(this.disabled)})),i("div",{key:"54a896ed65deef09f11a8b497f926d079fb599d1",class:d.inputFocus})),this.h.hasSlot("attachments")?i("div",{class:d.attachments},i("slot",{name:"attachments"})):null,this.files.length&&this.displayAttachments?i("div",{class:d.attachments},i("gov-attachments",{label:this.accessibleAttachmentsLabel,"accessible-label":this.accessibleAttachmentsLabel},this.files.map((t=>i("gov-attachments-item",{"accessible-remove-labelledby":t.id,"on-gov-remove":()=>this.onRemoveFileHandler(t)},t.file.name,i("span",{slot:"name"},t.file.name),t.acceptValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),t.acceptValid===false?this.errorAccept:null):null,t.sizeValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),this.errorSize.replace("{FILE_SIZE}",p(this.maxFileSize))):null,i("span",{slot:"info"},"(",p(t.file.size),")")))))):null)}onRemoveFileHandler(t){const s=this.files.findIndex((s=>s.id===t.id));if(s!==-1){const t=this.files;const i=this.files[s];t.splice(s,1);this.files=[...t];this.govRemoveFile.emit({component:d.root,file:i});this.govFiles.emit({component:d.root,files:t})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:d.root,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:d.root,originalEvent:t})}onChangeHandler(t){t.stopPropagation()}async getRef(){return this.inputRef}async getAreaRef(){return this.areaRef}async reset(){this.files=[];this.inputRef.value=""}get host(){return o(this)}static get watchers(){return{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}};export{g as gov_form_file};
2
+ //# sourceMappingURL=p-01bc645f.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FormFileClass","root","area","input","inputFocus","attachments","formatBytes","bytes","units","l","n","parseInt","toFixed","fileAcceptValidation","file","accept","length","replace","split","filter","RegExp","test","type","fileSizeValidation","maxSize","fileSize","Math","round","size","GovFormFile","constructor","hostRef","this","eventsRegistered","expanded","required","disabled","resetAfterPick","ignoreFileDuplicationCheck","displayAttachments","multiple","maxFileSize","errorSize","errorAccept","accessibleAttachmentsLabel","files","inheritedAttributes","fileId","createID","h","govHost","host","f","govForm","watchControlAttrs","passControlAttrs","passAttrToControl","toBoolAttr","invalid","registerListeners","highlight","areaRef","classList","add","unhighlight","remove","inputRef","addEventListener","e","preventDefault","stopPropagation","target","validateFiles","events","inEvents","outEvents","map","eventName","preventDefaults","bind","forEach","handleDrop","dataTransfer","filesBuffer","Array","from","isFile","find","item","name","isSizeValid","isAcceptValid","newFile","id","acceptValid","sizeValid","govAddFile","emit","component","govFiles","reset","finally","componentDidLoad","attributeObserver","AttributeObserver","attributeName","newValue","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","passAttrToLabel","String","inheritAriaAttributes","componentDidRender","disconnectedCallback","_a","stopObserving","removeAttribute","Object","assign","render","Host","key","class","classes","toBoolAttrIfDefined","ref","el","identifier","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","hasSlot","label","onRemoveFileHandler","slot","color","index","findIndex","removeFile","splice","govRemoveFile","govFocus","originalEvent","govBlur","getRef","getAreaRef","value"],"sources":["../../../packages/core/src/components/gov-form/file/constants.ts","../../../packages/core/src/utils/file.utils.ts","../../../packages/core/src/components/gov-form/file/gov-form-file.tsx"],"sourcesContent":["export const FormFileClass = {\r\n\troot: 'gov-form-file',\r\n\tarea: 'gov-form-file__area',\r\n\tinput: 'gov-form-file__input',\r\n\tinputFocus: 'gov-form-file__input-focus',\r\n\tattachments: 'gov-form-file__attachments',\r\n}\r\n","export function formatBytes(bytes: any): string {\r\n\tconst units = ['bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']\r\n\tlet l = 0,\r\n\t\tn = parseInt(bytes, 10) || 0\r\n\r\n\twhile (n >= 1024 && ++l) {\r\n\t\tn = n / 1024\r\n\t}\r\n\r\n\treturn n.toFixed(n < 10 && l > 0 ? 1 : 0) + ' ' + units[l]\r\n}\r\n\r\nexport function fileAcceptValidation(file: File, accept: string): boolean {\r\n\tif (typeof accept === 'string' && accept.length) {\r\n\t\treturn (\r\n\t\t\taccept\r\n\t\t\t\t.replace(/\\s/g, '')\r\n\t\t\t\t.split(',')\r\n\t\t\t\t.filter(accept => {\r\n\t\t\t\t\treturn new RegExp(accept.replace('*', '.*')).test(file.type)\r\n\t\t\t\t}).length > 0\r\n\t\t)\r\n\t} else {\r\n\t\treturn true\r\n\t}\r\n}\r\n\r\nexport function fileSizeValidation(file: File, maxSize: number): boolean {\r\n\tconst fileSize = Math.round(file.size)\r\n\treturn fileSize <= maxSize\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\r\nimport {createID} from \"../../../utils/string.utils\"\r\nimport {FormFileClass} from \"./constants\"\r\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\r\nimport {fileAcceptValidation, fileSizeValidation, formatBytes} from \"../../../utils/file.utils\"\r\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {govForm} from \"../../../helpers/Dom/form\"\r\nimport {GovFormFileEvent, GovFormFileItem} from \"./gov-form-file.types\"\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\n\r\n@Component({\r\n\ttag: \"gov-form-file\",\r\n})\r\nexport class GovFormFile {\r\n\tprivate f: GovForm\r\n\tprivate readonly h: GovHost\r\n\r\n\tprivate areaRef?: HTMLDivElement\r\n\tprivate inputRef?: HTMLInputElement\r\n\tprivate readonly fileId: string\r\n\tprivate attributeObserver: AttributeObserver\r\n\tprivate eventsRegistered = false\r\n\r\n\tconstructor() {\r\n\t\tthis.fileId = createID(\"GovInputFile\")\r\n\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.f = govForm(this.h)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormFileElement\r\n\t/**\r\n\t * Expands the file input to fill 100% of the container width.\r\n\t */\r\n\t@Prop() readonly expanded: boolean = false\r\n\t/**\r\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\r\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\r\n\t */\r\n\t@Prop() readonly required: boolean = false\r\n\t/**\r\n\t * Makes the File component disabled.\r\n\t * This prevents users from being able to interact with the File, and conveys its inactive state to assistive technologies.\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * After selecting the files, the main input element will be reset.\r\n\t * The propagation of the event with the selected files will not be affected.\r\n\t */\r\n\t@Prop({attribute: \"reset-after-pick\"}) readonly resetAfterPick: boolean = false\r\n\t/**\r\n\t * Selected files will not be checked for duplicates based on name and size.\r\n\t */\r\n\t@Prop({attribute: \"ignore-file-duplication-check\"}) readonly ignoreFileDuplicationCheck: boolean = false\r\n\t/**\r\n\t * Show list of attachments\r\n\t */\r\n\t@Prop({attribute: \"display-attachments\"}) readonly displayAttachments: boolean = true\r\n\t/**\r\n\t * Name of the input.\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\r\n\t */\r\n\t@Prop() readonly accept: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple\r\n\t */\r\n\t@Prop() readonly multiple: boolean = false\r\n\t/**\r\n\t * Maximum embedded file size\r\n\t */\r\n\t@Prop({attribute: \"max-file-size\"}) readonly maxFileSize: number = -1\r\n\t/**\r\n\t * Custom File identifier.\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Indicates the entered value does not conform to the format expected by the application.\r\n\t */\r\n\t@Prop() readonly invalid: boolean\r\n\t/**\r\n\t * Error message when the maximum file size is exceeded\r\n\t */\r\n\t@Prop({attribute: \"error-size\"}) readonly errorSize: string = \"Soubor je větší než povolená velikost {FILE_SIZE}\"\r\n\t/**\r\n\t * Insert unsupported file error message\r\n\t */\r\n\t@Prop({attribute: \"error-accept\"}) readonly errorAccept: string = \"Soubor tohoto typu není povolen\"\r\n\t/**\r\n\t * Adds accessible label for the list of attachments.\r\n\t */\r\n\t@Prop({attribute: \"accessible-attachments-label\"}) readonly accessibleAttachmentsLabel: string = \"Přílohy\"\r\n\t/**\r\n\t * Emitted when the File has focus.\r\n\t */\r\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<GovFormFileEvent>\r\n\t/**\r\n\t * Emitted when the File loses focus.\r\n\t */\r\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<GovFormFileEvent>\r\n\t/**\r\n\t * Called when the list of inserted files is changed\r\n\t */\r\n\t@Event({eventName: \"gov-files\"}) govFiles: EventEmitter<GovFormFileEvent>\r\n\t/**\r\n\t * Called when a new file is added\r\n\t */\r\n\t@Event({eventName: \"gov-add-file\"}) govAddFile: EventEmitter<GovFormFileEvent>\r\n\t/**\r\n\t * Called when a file is removed from the list\r\n\t */\r\n\t@Event({eventName: \"gov-remove-file\"}) govRemoveFile: EventEmitter<GovFormFileEvent>\r\n\r\n\r\n\t@Watch(\"disabled\")\r\n\t@Watch(\"invalid\")\r\n\twatchControlAttrs(): void {\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\t@State() files: GovFormFileItem[] = []\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\r\n\r\n\tprivate passControlAttrs() {\r\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\r\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\r\n\t\tthis.f.passAttrToControl(\"type\", \"File\")\r\n\t}\r\n\r\n\r\n\tprivate registerListeners() {\r\n\t\tif (this.eventsRegistered) {\r\n\t\t\treturn\r\n\t\t}\r\n\t\tthis.eventsRegistered = true\r\n\r\n\t\tfunction highlight() {\r\n\t\t\tthis.areaRef.classList.add(\"highlight\")\r\n\t\t}\r\n\r\n\t\tfunction unhighlight() {\r\n\t\t\tthis.areaRef.classList.remove(\"highlight\")\r\n\t\t}\r\n\r\n\t\tthis.inputRef.addEventListener(\r\n\t\t\t\"change\",\r\n\t\t\te => {\r\n\t\t\t\te.preventDefault()\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tconst files = (e.target as HTMLInputElement).files\r\n\t\t\t\tif (this.resetAfterPick) {\r\n\t\t\t\t\tif (files.length) {\r\n\t\t\t\t\t\tthis.validateFiles(files)\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.validateFiles(files)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tfalse,\r\n\t\t)\r\n\r\n\t\tif (this.expanded) {\r\n\t\t\tconst events = [\"dragover\", \"dragleave\"]\r\n\t\t\tconst inEvents = [\"dragenter\", \"dragover\", \"mouseenter\"]\r\n\t\t\tconst outEvents = [\"dragleave\", \"mouseleave\"]\r\n\r\n\t\t\tevents.map(eventName => this.inputRef.addEventListener(eventName, this.preventDefaults.bind(this), false))\r\n\t\t\tinEvents.map(eventName => this.inputRef.addEventListener(eventName, highlight.bind(this), false))\r\n\t\t\toutEvents.forEach(eventName => this.inputRef.addEventListener(eventName, unhighlight.bind(this), false))\r\n\t\t}\r\n\t}\r\n\r\n\tpreventDefaults(e) {\r\n\t\te.preventDefault()\r\n\t\te.stopPropagation()\r\n\t}\r\n\r\n\thandleDrop(e: DragEvent) {\r\n\t\tconst dataTransfer = e.dataTransfer\r\n\t\tthis.validateFiles(dataTransfer.files)\r\n\t}\r\n\r\n\tprivate validateFiles(files: FileList) {\r\n\t\tlet filesBuffer: GovFormFileItem[] = []\r\n\t\tArray.from(files).map(file => {\r\n\t\t\tconst isFile = this.files.find(item => item.file.name === file.name && item.file.size === file.size) || null\r\n\t\t\tif (isFile === null || this.ignoreFileDuplicationCheck) {\r\n\t\t\t\tconst isSizeValid = typeof this.maxFileSize === \"number\" && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true\r\n\t\t\t\tconst isAcceptValid = fileAcceptValidation(file, this.accept)\r\n\t\t\t\tconst newFile = {\r\n\t\t\t\t\tid: createID(\"GovFormFile\"),\r\n\t\t\t\t\tfile,\r\n\t\t\t\t\tacceptValid: isAcceptValid,\r\n\t\t\t\t\tsizeValid: isSizeValid,\r\n\t\t\t\t}\r\n\t\t\t\tif (this.displayAttachments) {\r\n\t\t\t\t\tthis.files = [...this.files, newFile]\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfilesBuffer = [...filesBuffer, newFile]\r\n\t\t\t\t}\r\n\t\t\t\tthis.govAddFile.emit({\r\n\t\t\t\t\tcomponent: FormFileClass.root,\r\n\t\t\t\t\tfile: newFile,\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t})\r\n\r\n\t\tthis.govFiles.emit({\r\n\t\t\tcomponent: FormFileClass.root,\r\n\t\t\tfiles: filesBuffer.length ? filesBuffer : this.files,\r\n\t\t})\r\n\r\n\t\tif (this.resetAfterPick) {\r\n\t\t\tthis.reset().finally()\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\r\n\t\tthis.passControlAttrs()\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tthis.registerListeners()\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes([FormFileClass.root])}\r\n\t\t\t\t invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t expanded={toBoolAttrIfDefined(this.expanded)}>\r\n\t\t\t\t<div class={FormFileClass.area} ref={el => (this.areaRef = el as HTMLDivElement)}>\r\n\t\t\t\t\t<slot/>\r\n\t\t\t\t\t<input\r\n\t\t\t\t\t\tclass={FormFileClass.input}\r\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\r\n\t\t\t\t\t\tid={this.identifier || this.fileId}\r\n\t\t\t\t\t\ttype=\"file\"\r\n\t\t\t\t\t\tname={this.name}\r\n\t\t\t\t\t\taccept={this.accept}\r\n\t\t\t\t\t\tmultiple={this.multiple}\r\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\r\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\t\trequired={this.required}\r\n\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\r\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class={FormFileClass.inputFocus}/>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t{this.h.hasSlot(\"attachments\") ? (\r\n\t\t\t\t\t<div class={FormFileClass.attachments}>\r\n\t\t\t\t\t\t<slot name={\"attachments\"}/>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t) : null}\r\n\r\n\t\t\t\t{this.files.length && this.displayAttachments ? (\r\n\t\t\t\t\t<div class={FormFileClass.attachments}>\r\n\t\t\t\t\t\t<gov-attachments label={this.accessibleAttachmentsLabel}\r\n\t\t\t\t\t\t\t\t\t\t accessible-label={this.accessibleAttachmentsLabel}>\r\n\t\t\t\t\t\t\t{this.files.map(item => (\r\n\t\t\t\t\t\t\t\t<gov-attachments-item accessible-remove-labelledby={item.id}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t on-gov-remove={() => this.onRemoveFileHandler(item)}>\r\n\t\t\t\t\t\t\t\t\t{item.file.name}\r\n\t\t\t\t\t\t\t\t\t<span slot=\"name\">{item.file.name}</span>\r\n\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? (\r\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" color=\"error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t\t\t\t{item.acceptValid === false ? this.errorAccept : null}\r\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\r\n\t\t\t\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\t\t\t\t{item.sizeValid === false ? (\r\n\t\t\t\t\t\t\t\t\t\t<gov-form-message slot=\"message\" color=\"error\">\r\n\t\t\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon\" name=\"exclamation-triangle-fill\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t\t\t\t{this.errorSize.replace(\"{FILE_SIZE}\", formatBytes(this.maxFileSize))}\r\n\t\t\t\t\t\t\t\t\t\t</gov-form-message>\r\n\t\t\t\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\t\t\t\t<span slot=\"info\">({formatBytes(item.file.size)})</span>\r\n\t\t\t\t\t\t\t\t</gov-attachments-item>\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t</gov-attachments>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t) : null}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onRemoveFileHandler(file: GovFormFileItem) {\r\n\t\tconst index = this.files.findIndex(item => item.id === file.id)\r\n\t\tif (index !== -1) {\r\n\t\t\tconst files = this.files\r\n\t\t\tconst removeFile = this.files[index]\r\n\t\t\tfiles.splice(index, 1)\r\n\t\t\tthis.files = [...files]\r\n\t\t\tthis.govRemoveFile.emit({\r\n\t\t\t\tcomponent: FormFileClass.root,\r\n\t\t\t\tfile: removeFile,\r\n\t\t\t})\r\n\t\t\tthis.govFiles.emit({\r\n\t\t\t\tcomponent: FormFileClass.root,\r\n\t\t\t\tfiles,\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tprivate onFocusHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govFocus.emit({\r\n\t\t\tcomponent: FormFileClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onBlurHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govBlur.emit({\r\n\t\t\tcomponent: FormFileClass.root,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onChangeHandler(e: Event) {\r\n\t\te.stopPropagation()\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the reference of the native element\r\n\t */\r\n\t@Method()\r\n\tasync getRef(): Promise<HTMLInputElement> {\r\n\t\treturn this.inputRef\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the reference of the native area element\r\n\t */\r\n\t@Method()\r\n\tasync getAreaRef(): Promise<HTMLDivElement> {\r\n\t\treturn this.areaRef\r\n\t}\r\n\r\n\t/**\r\n\t * Remove all files from component state\r\n\t */\r\n\t@Method()\r\n\tasync reset(): Promise<void> {\r\n\t\tthis.files = []\r\n\t\tthis.inputRef.value = '';\r\n\t}\r\n}\r\n"],"mappings":"oZAAO,MAAMA,EAAgB,CAC5BC,KAAM,gBACNC,KAAM,sBACNC,MAAO,uBACPC,WAAY,6BACZC,YAAa,8BCLR,SAAUC,EAAYC,GAC3B,MAAMC,EAAQ,CAAC,QAAS,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,OACzE,IAAIC,EAAI,EACPC,EAAIC,SAASJ,EAAO,KAAO,EAE5B,MAAOG,GAAK,QAAUD,EAAG,CACxBC,EAAIA,EAAI,I,CAGT,OAAOA,EAAEE,QAAQF,EAAI,IAAMD,EAAI,EAAI,EAAI,GAAK,IAAMD,EAAMC,EACzD,CAEgB,SAAAI,EAAqBC,EAAYC,GAChD,UAAWA,IAAW,UAAYA,EAAOC,OAAQ,CAChD,OACCD,EACEE,QAAQ,MAAO,IACfC,MAAM,KACNC,QAAOJ,GACA,IAAIK,OAAOL,EAAOE,QAAQ,IAAK,OAAOI,KAAKP,EAAKQ,QACrDN,OAAS,C,KAER,CACN,OAAO,I,CAET,CAEgB,SAAAO,EAAmBT,EAAYU,GAC9C,MAAMC,EAAWC,KAAKC,MAAMb,EAAKc,MACjC,OAAOH,GAAYD,CACpB,C,MCdaK,EAAW,MAUvB,WAAAC,CAAAC,G,kMAFQC,KAAgBC,iBAAG,MAaVD,KAAQE,SAAY,MAKpBF,KAAQG,SAAY,MAKLH,KAAQI,SAAY,MAKJJ,KAAcK,eAAY,MAIbL,KAA0BM,2BAAY,MAIhDN,KAAkBO,mBAAY,KAchEP,KAAQQ,SAAY,MAIQR,KAAWS,aAAW,EAYzBT,KAASU,UAAW,oDAIlBV,KAAWW,YAAW,kCAINX,KAA0BY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AKkH,SAASjD,KAAK,CAClBC,UAAWlG,EAAcC,KACzBkJ,cAAe/E,G,CAIT,aAAAmE,CAAcnE,GACrBA,EAAEE,kBACFtC,KAAKoH,QAAQnD,KAAK,CACjBC,UAAWlG,EAAcC,KACzBkJ,cAAe/E,G,CAIT,eAAA+D,CAAgB/D,GACvBA,EAAEE,iB,CAOH,YAAM+E,GACL,OAAOrH,KAAKkC,Q,CAOb,gBAAMoF,GACL,OAAOtH,KAAK6B,O,CAOb,WAAMuC,GACLpE,KAAKa,MAAQ,GACbb,KAAKkC,SAASqF,MAAQ,E","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,F as s,H as i,g as a}from"./p-ClISz4NF.js";import{p as o}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{g as c}from"./p-CoD1xawt.js";o(n,["_S","_M","_L"]);const l={root:"gov-tile",link:"gov-tile__link",content:"gov-tile__content",text:"gov-tile__text",title:"gov-tile__title",icon:"gov-tile__icon",annotation:"gov-tile__annotation"};const r=class{constructor(e){t(this,e);this.size="m";this.noBorder=false;this.h=c(this.host)}render(){return e(i,{key:"31fcebee125c753089b2229cea0033dce9aa3133",class:this.h.classes(l.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},e("slot",{key:"b79748ea55bb2e86d887860c1143d82d75497966",name:"icon"}),e("div",{key:"db8b61554f6943612c9d7165174926cfd205fcfb",class:l.content},e("div",{key:"e844267c106109d0470176d3c89539f8f987c70f",class:l.text},e("div",{key:"e4771f568d8848b87045293ebb10af5679f1a3b7",class:l.title},this.href?e(s,null,e("a",{href:this.href,target:this.target,class:l.link,ref:t=>this.triggerRef=t},e("slot",{name:"title"})),e("span",{class:l.icon},e("gov-icon",{name:"chevron-right",type:"components"}))):e("slot",{name:"title"})),e("div",{key:"cf1bf1a1c29e8879dc509b484325b82808db792a",class:`${l.annotation} ${this.href?`${l.annotation}--padding`:""}`},e("slot",{key:"9a10f28fd144f1131eae6735342da9a5d93665e2"}))),e("slot",{key:"067476f1a27bad0fb50d86789a729f93b1f1e5ad",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return a(this)}};export{r as gov_tile};
2
+ //# sourceMappingURL=p-0e06af2b.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pick","Sizes","TileClass","root","link","content","text","title","icon","annotation","GovTile","constructor","hostRef","this","size","noBorder","h","govHost","host","render","Host","key","class","classes","orientation","clickable","href","name","Fragment","target","ref","el","triggerRef","type","getTriggerRef"],"sources":["../../../packages/core/src/components/gov-tile/constants.ts","../../../packages/core/src/components/gov-tile/gov-tile.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const TileSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type TileSizesType = `${ValueOf<typeof TileSizes>}`\r\n\r\nexport const TileClass = {\r\n\troot: 'gov-tile',\r\n\tlink: 'gov-tile__link',\r\n\tcontent: 'gov-tile__content',\r\n\ttext: 'gov-tile__text',\r\n\ttitle: 'gov-tile__title',\r\n\ticon: 'gov-tile__icon',\r\n\tannotation: 'gov-tile__annotation',\r\n}\r\n","import {Component, Element, Fragment, h, Host, Method, Prop} from \"@stencil/core\"\r\nimport {TileClass, TileSizesType} from \"./constants\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {ButtonTargetType} from \"../gov-button/button/constants\"\r\n\r\n@Component({\r\n\ttag: \"gov-tile\",\r\n})\r\nexport class GovTile {\r\n\t@Element() host: HTMLGovTileElement\r\n\t/**\r\n\t * Tile’s size\r\n\t */\r\n\t@Prop({reflect: true}) readonly size?: TileSizesType = \"m\"\r\n\t/**\r\n\t * Style variation of the tile.\r\n\t */\r\n\t@Prop() readonly orientation: \"vertical\" | \"horizontal\"\r\n\t/**\r\n\t * Tiles border\r\n\t */\r\n\t@Prop({ attribute: 'no-border' }) readonly noBorder: boolean = false\r\n\t/**\r\n\t * Link on whole tile\r\n\t */\r\n\t@Prop({reflect: true}) readonly href: string\r\n\t/**\r\n\t * Same as original parameter\r\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\r\n\t */\r\n\t@Prop() readonly target?: ButtonTargetType\r\n\tprivate triggerRef?: HTMLLinkElement | HTMLSpanElement\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(TileClass.root)}\r\n\t\t\t\t size={this.size}\r\n\t\t\t\t orientation={this.orientation}\r\n\t\t\t\t clickable={this.href ? true : null}\r\n\t\t\t>\r\n\t\t\t\t<slot name=\"icon\"/>\r\n\t\t\t\t<div class={TileClass.content}>\r\n\t\t\t\t\t<div class={TileClass.text}>\r\n\t\t\t\t\t\t<div class={TileClass.title}>\r\n\t\t\t\t\t\t\t{this.href ? (\r\n\t\t\t\t\t\t\t\t<Fragment>\r\n\t\t\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\t\t\thref={this.href}\r\n\t\t\t\t\t\t\t\t\t\ttarget={this.target}\r\n\t\t\t\t\t\t\t\t\t\tclass={TileClass.link}\r\n\t\t\t\t\t\t\t\t\t\tref={el => (this.triggerRef = el as HTMLLinkElement | HTMLSpanElement)}>\r\n\t\t\t\t\t\t\t\t\t\t<slot name=\"title\"/>\r\n\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t<span class={TileClass.icon}>\r\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"chevron-right\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t</Fragment>\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t<slot name=\"title\"/>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class={`${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}`}>\r\n\t\t\t\t\t\t\t<slot/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<slot name=\"button\"/>\r\n\t\t\t\t</div>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\t/**\r\n\t * Returns a clickable element instance\r\n\t */\r\n\t@Method()\r\n\tasync getTriggerRef() {\r\n\t\treturn this.triggerRef\r\n\t}\r\n}\r\n"],"mappings":"4KAIyBA,EAAKC,EAAO,CAAC,KAAM,KAAM,OAG3C,MAAMC,EAAY,CACxBC,KAAM,WACNC,KAAM,iBACNC,QAAS,oBACTC,KAAM,iBACNC,MAAO,kBACPC,KAAM,iBACNC,WAAY,wB,MCLAC,EAAO,MA0BnB,WAAAC,CAAAC,G,UArBgCC,KAAIC,KAAmB,IAQZD,KAAQE,SAAY,MAc9DF,KAAKG,EAAIC,EAAQJ,KAAKK,KACtB,CAED,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOT,KAAKG,EAAEO,QAAQrB,EAAUC,MACnCW,KAAMD,KAAKC,KACXU,YAAaX,KAAKW,YAClBC,UAAWZ,KAAKa,KAAO,KAAO,MAEhCV,EAAM,QAAAK,IAAA,2CAAAM,KAAK,SACXX,EAAA,OAAAK,IAAA,2CAAKC,MAAOpB,EAAUG,SACrBW,EAAA,OAAAK,IAAA,2CAAKC,MAAOpB,EAAUI,MACrBU,EAAA,OAAAK,IAAA,2CAAKC,MAAOpB,EAAUK,OACpBM,KAAKa,KACLV,EAACY,EAAQ,KACRZ,EAAA,KACCU,KAAMb,KAAKa,KACXG,OAAQhB,KAAKgB,OACbP,MAAOpB,EAAUE,KACjB0B,IAAKC,GAAOlB,KAAKmB,WAAaD,GAC9Bf,EAAA,QAAMW,KAAK,WAEZX,EAAA,QAAMM,MAAOpB,EAAUM,MACtBQ,EAAU,YAAAW,KAAK,gBAAgBM,KAAK,iBAItCjB,EAAA,QAAMW,KAAK,WAGbX,EAAK,OAAAK,IAAA,2CAAAC,MAAO,GAAGpB,EAAUO,cAAcI,KAAKa,KAAO,GAAGxB,EAAUO,sBAAwB,MACvFO,EAAA,QAAAK,IAAA,+CAGFL,EAAA,QAAAK,IAAA,2CAAMM,KAAK,Y,CAUf,mBAAMO,GACL,OAAOrB,KAAKmB,U","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,h as s,H as e,g as i,c as n}from"./p-DT2tslUp.js";import{S as o}from"./p-BcQO4NH2.js";import{g as a}from"./p-BBOh2pxy.js";import{p as r}from"./p-CQvUntGY.js";import{C as c}from"./p-U40vKHrs.js";import{i as h,a as l,b as d}from"./p-CgDnDrq5.js";import{v as f}from"./p-NOJjz9dT.js";const u={root:"gov-flex"};const m=class{constructor(s){t(this,s);this.direction="row";this.responsive="true";this.h=a(this.host)}render(){return s(e,{key:"71dadfbe4c7ddd45b36ffe74d8fd0c38e5069756",class:this.h.classes(u.root)},s("slot",{key:"b86bd5e8abbf157f2476cad87134ff9eedd307cc"}))}get host(){return i(this)}};r(o,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);const p=r(c,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var b;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(b||(b={}));const v={root:"gov-icon"};const g="4.2.7";const w=()=>g;const _={};const y={};const S=t=>t.startsWith("http://")||t.startsWith("https://");const k=(t,s,e)=>{if(S(t)){return`${t}/${e}/${s}.svg?v=${w()}`}return`${t}/${e}/${s}.svg`+`?v=${w()}`};async function C({name:t,type:s}){const e=s+"-"+t;if(_[e]){return _[e]}if(!y[e]){y[e]=fetch(k(h(),t,s)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const i=await y[e];_[e]=i;return i}const L=(t,s,e)=>{if(!l){return}let i="";document.cookie=`${t}=${encodeURIComponent(s)}${i}; path=/`};const D=t=>{if(!l){return null}const s=t+"=";const e=document.cookie.split(";");for(let t=0;t<e.length;t++){let i=e[t].trim();if(i.startsWith(s)){return decodeURIComponent(i.substring(s.length))}}return null};const I=t=>{try{const s=new DOMParser;const e=s.parseFromString(t,"image/svg+xml");const i=e.querySelector("parsererror");if(i){return false}const n=e.documentElement;if(n.tagName.toLowerCase()!=="svg"){return false}return true}catch(t){return false}};const $=class{constructor(s){t(this,s);this.name=null;this.type="components";this.visible=false;this.error=false;this.h=a(this.host)}validateSize(t){f(o,t,v.root)}validateColor(t){f(p,t,v.root)}async loadIconPathData(){const{name:t,visible:s}=this;if(!t||!s){return}await this.loadIcon()}connectedCallback(){if(d()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){this.validateSize(this.size);this.validateColor(this.color);await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((s=>{s.forEach((s=>{if(s.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}async loadIcon(){try{const{name:t,type:s}=this;const e=await C({name:t,type:s});const i=I(e);this.host.innerHTML=i?e:null}catch(t){this.host.innerHTML="";this.error=true}}render(){if(this.error){return null}return s(e,{class:this.h.classes(v.root),size:this.size,color:this.color})}static get assetsDirs(){return["assets"]}get host(){return i(this)}static get watchers(){return{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}}};const j=r(o,["_XS","_S","_M","_L","_XL"]);const R={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",label:"gov-theme-switch__label",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark"};const z="data-theme";var E;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(E||(E={}));const O=class{constructor(s){t(this,s);this.govChange=n(this,"gov-change");this.size="m";this.displayLabel=false;this.ariaLabelLight="Přepnout na tmavý mód";this.ariaLabelDark="Přepnout na světlý mód";this.labelLight="Světlý mód";this.labelDark="Tmavý mód";this.theme=E.auto;this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:R.root,state:this.theme,ref:this.host})};this.h=a(this.host)}validateSize(t){f(j,t,R.root)}watchTheme(t){this.htmlElement.setAttribute(z,t);this.htmlElement.classList.remove(...Object.keys(E));this.htmlElement.classList.add(t);L(z,t)}get storageValue(){return D(z)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return l&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(E);let s=this.storageValue;const e=this.htmlElement.getAttribute(z);if(s&&t.includes(s)){this.theme=s}else if(e&&t.includes(e)){this.theme=e}else{this.theme=E.auto}}render(){let t=this.theme===E.dark;if(this.theme===E.auto){t=this.isSystemPrefersColorDark}return s(e,{key:"2b35ab195092cc77a4424b8676f3ae35733b5388",class:this.h.classes(R.root),theme:t?E.dark:E.light,size:this.size},s("button",{key:"8e3904870ea8181ca7e9bad9262bbf5638b19358",onClick:()=>this.setThemeState(t?E.light:E.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},s("span",{key:"e76b59b0cb70878e627c4e0be0c74e3dde19124c"},s("span",{key:"ceb0da027677434b1d64b24b05f4e3b0828c529a",class:R.indicator},E.light&&s("gov-icon",{key:"a36bf7c3e453ff752feb91f02a23302dbadd8509",name:"sun",class:R.iconLight,type:"components"}),E.dark&&s("gov-icon",{key:"66a37d369fbe737fcb90372f262a01225cdad90c",name:"moon",class:R.iconDark,type:"components"})),this.displayLabel?s("span",{class:R.label},t?this.labelDark:this.labelLight):null)))}get host(){return i(this)}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}};export{m as gov_flex,$ as gov_icon,O as gov_theme_switch};
2
- //# sourceMappingURL=p-658c1d84.entry.js.map
1
+ import{r as t,h as s,H as e,g as i,c as n}from"./p-ClISz4NF.js";import{S as o}from"./p-BcQO4NH2.js";import{g as a}from"./p-CoD1xawt.js";import{p as c}from"./p-CQvUntGY.js";import{C as r}from"./p-U40vKHrs.js";import{i as h,a as l,b as f}from"./p-CgDnDrq5.js";import{v as u}from"./p-NOJjz9dT.js";const m={root:"gov-flex"};const d=class{constructor(s){t(this,s);this.direction="row";this.responsive="true";this.h=a(this.host)}render(){return s(e,{key:"1c88a4c6aaf69a13c514bc24c10fd2a32316a7c0",class:this.h.classes(m.root)},s("slot",{key:"b055e2aff7056be660e53d5036341fbaabe796b1"}))}get host(){return i(this)}};c(o,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);const p=c(r,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var b;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(b||(b={}));const v={root:"gov-icon"};const g="4.6.0";const w=()=>g;const _={};const y={};const S=t=>t.startsWith("http://")||t.startsWith("https://");const C=(t,s,e)=>{if(S(t)){return`${t}/${e}/${s}.svg?v=${w()}`}return`${t}/${e}/${s}.svg`+`?v=${w()}`};async function k({name:t,type:s}){const e=s+"-"+t;if(_[e]){return _[e]}if(!y[e]){y[e]=fetch(C(h(),t,s)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const i=await y[e];_[e]=i;return i}const L=(t,s,e)=>{if(!l){return}let i="";document.cookie=`${t}=${encodeURIComponent(s)}${i}; path=/`};const D=t=>{if(!l){return null}const s=t+"=";const e=document.cookie.split(";");for(let t=0;t<e.length;t++){let i=e[t].trim();if(i.startsWith(s)){return decodeURIComponent(i.substring(s.length))}}return null};const I=t=>{try{const s=new DOMParser;const e=s.parseFromString(t,"image/svg+xml");const i=e.querySelector("parsererror");if(i){return false}const n=e.documentElement;if(n.tagName.toLowerCase()!=="svg"){return false}return true}catch(t){return false}};const $=class{constructor(s){t(this,s);this.name=null;this.type="components";this.visible=false;this.error=false;this.h=a(this.host)}validateSize(t){u(o,t,v.root)}validateColor(t){u(p,t,v.root)}async loadIconPathData(){const{name:t,visible:s}=this;if(!t||!s){return}await this.loadIcon()}connectedCallback(){if(f()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){this.validateSize(this.size);this.validateColor(this.color);await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((s=>{s.forEach((s=>{if(s.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}async loadIcon(){try{const{name:t,type:s}=this;const e=await k({name:t,type:s});const i=I(e);this.host.innerHTML=i?e:null}catch(t){this.host.innerHTML="";this.error=true}}render(){if(this.error){return null}return s(e,{class:this.h.classes(v.root),size:this.size,color:this.color})}static get assetsDirs(){return["assets"]}get host(){return i(this)}static get watchers(){return{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}}};const j=c(o,["_XS","_S","_M","_L","_XL"]);const z={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",label:"gov-theme-switch__label",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark"};const R="data-theme";var E;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(E||(E={}));const x=class{constructor(s){t(this,s);this.govChange=n(this,"gov-change");this.size="m";this.displayLabel=false;this.ariaLabelLight="Přepnout na tmavý mód";this.ariaLabelDark="Přepnout na světlý mód";this.labelLight="Světlý mód";this.labelDark="Tmavý mód";this.theme=E.auto;this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:z.root,state:this.theme,ref:this.host})};this.h=a(this.host)}validateSize(t){u(j,t,z.root)}watchTheme(t){this.htmlElement.setAttribute(R,t);this.htmlElement.classList.remove(...Object.keys(E));this.htmlElement.classList.add(t);L(R,t)}get storageValue(){return D(R)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return l&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(E);let s=this.storageValue;const e=this.htmlElement.getAttribute(R);if(s&&t.includes(s)){this.theme=s}else if(e&&t.includes(e)){this.theme=e}else{this.theme=E.auto}}render(){let t=this.theme===E.dark;if(this.theme===E.auto){t=this.isSystemPrefersColorDark}return s(e,{key:"77b26165b2a824ff9649ac9c28d7b300cdb76280",class:this.h.classes(z.root),theme:t?E.dark:E.light,size:this.size},s("button",{key:"c46058c2a0e797fef9c7e1ab4975ff379bbc3fb4",onClick:()=>this.setThemeState(t?E.light:E.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},s("span",{key:"c1d8824467dc7bfa5d23f1f99db686e91e93087b"},s("span",{key:"62da0a9fecc5fc713b98ac9e4e728e3e19b9aa67",class:z.indicator},E.light&&s("gov-icon",{key:"7c9dd1cf819afbd7f63609916d6c845c2236fbca",name:"sun",class:z.iconLight,type:"components"}),E.dark&&s("gov-icon",{key:"3f1acf71f8afb5ca893c460b7d0b6e49fe6f5c2d",name:"moon",class:z.iconDark,type:"components"})),this.displayLabel?s("span",{class:z.label},t?this.labelDark:this.labelLight):null)))}get host(){return i(this)}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}};export{d as gov_flex,$ as gov_icon,x as gov_theme_switch};
2
+ //# sourceMappingURL=p-1375d52d.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FlexClass","root","GovFlex","constructor","hostRef","this","direction","responsive","h","govHost","host","render","Host","key","class","classes","pick","Sizes","IconColors","Colors","Types","IconClass","dsVersion","version","iconCache","requestCache","isExternalUrl","path","startsWith","iconUrl","name","type","async","fetchIcon","cacheKey","fetch","iconsPath","then","resp","status","text","Error","setCookie","value","days","isWindow","expires","document","cookie","encodeURIComponent","getCookie","nameEQ","cookies","split","i","length","trim","decodeURIComponent","substring","isValidSVG","svgContent","parser","DOMParser","doc","parseFromString","parseError","querySelector","svgElement","documentElement","tagName","toLowerCase","error","GovIcon","visible","validateSize","newValue","validateProp","validateColor","loadIconPathData","loadIcon","connectedCallback","iconsLazyLoad","finally","waitUntilVisible","disconnectedCallback","intersectionObserver","disconnect","componentWillLoad","size","color","callback","window","IntersectionObserver","entries","forEach","entry","isIntersecting","rootMargin","observe","data","isValid","innerHTML","e","ThemeSwitchSizes","ThemeSwitchClass","indicator","label","iconLight","iconDark","ATTRIBUTE_THEME_NAME","ThemeList","GovThemeSwitch","displayLabel","ariaLabelLight","ariaLabelDark","labelLight","labelDark","theme","auto","setThemeState","state","govChange","emit","component","ref","watchTheme","htmlElement","setAttribute","classList","remove","Object","keys","add","storageValue","isSystemPrefersColorDark","matchMedia","matches","initDefaultState","options","currentState","htmlState","getAttribute","includes","isDark","dark","light","onClick"],"sources":["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx","../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/utils/ds.utils.ts","../../../packages/core/src/utils/icon.utils.ts","../../../packages/core/src/helpers/Dom/document.ts","../../../packages/core/src/components/gov-icon/gov-icon.tsx","../../../packages/core/src/components/gov-theme-switch/constants.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.types.ts","../../../packages/core/src/components/gov-theme-switch/gov-theme-switch.tsx"],"sourcesContent":["import {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const FlexSizes = Sizes\r\nexport type FlexSizesType = `${ValueOf<typeof FlexSizes>}`\r\n\r\nexport const FlexClass = {\r\n\troot: 'gov-flex',\r\n}\r\n\r\n","import {Component, Element, h, Host, Prop} from '@stencil/core'\r\nimport {FlexClass, FlexSizesType} from './constants'\r\nimport {govHost} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\n\r\n@Component({\r\n\ttag: 'gov-flex',\r\n})\r\nexport class GovFlex {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovGridElement\r\n\r\n\t/**\r\n\t * Controls the flex direction of the container.\r\n\t */\r\n\t@Prop({reflect: true}) direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' = 'row';\r\n\r\n\t/**\r\n\t * Defines how the browser distributes space between and around content items along the main axis.\r\n\t */\r\n\t@Prop({\r\n\t\tattribute: 'justify-content',\r\n\t\treflect: true\r\n\t}) justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';\r\n\r\n\t/**\r\n\t * Aligns flex items along the cross axis.\r\n\t */\r\n\t@Prop({\r\n\t\tattribute: 'align-items',\r\n\t\treflect: true\r\n\t}) alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';\r\n\r\n\t/**\r\n\t * Controls whether the flex container is a single-line or multi-line flex container.\r\n\t */\r\n\t@Prop({reflect: true}) wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\r\n\r\n\t/**\r\n\t * Aligns the flex container's lines within when there is extra space in the cross-axis.\r\n\t */\r\n\t@Prop({\r\n\t\tattribute: 'align-content',\r\n\t\treflect: true\r\n\t}) alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';\r\n\r\n\t/**\r\n\t * Sets the alignment of the flex container’s children along the flex container’s cross axis, overriding the `align-items` property for individual flex items.\r\n\t */\r\n\t@Prop({\r\n\t\tattribute: 'align-self',\r\n\t\treflect: true\r\n\t}) alignSelf?: 'auto' | 'normal' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' | 'anchor-center';\r\n\r\n\t/**\r\n\t * The gap property creates consistent spacing between flex items in the container.\r\n\t */\r\n\t@Prop({\r\n\t\tattribute: 'gap',\r\n\t\treflect: true\r\n\t}) gap?: FlexSizesType;\r\n\r\n\t/**\r\n\t * Option to turn off responsive\r\n\t */\r\n\t@Prop({reflect: true}) readonly responsive: string = \"true\"\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(FlexClass.root)}>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n","import { ValueOf } from '../../types/interfaces'\r\nimport { pick } from '../../utils/utils';\r\nimport { Colors } from '../../core/constants/colors';\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\n\r\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\r\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\r\n\r\nexport const IconColors = pick(Colors, [\r\n\t'DEFAULT',\r\n\t'PRIMARY',\r\n\t'SECONDARY',\r\n\t'NEUTRAL',\r\n\t'ERROR',\r\n\t'SUCCESS',\r\n\t'WARNING',\r\n\t'DISABLED',\r\n\t'WHITE',\r\n\t'BLACK',\r\n])\r\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\r\n\r\nenum Types {\r\n\tBASIC = 'basic',\r\n\tCOMPLEX = 'complex',\r\n\tCOLORED = 'colored',\r\n}\r\nexport type Type = `${ValueOf<typeof Types>}`\r\n\r\nexport const IconClass = {\r\n\troot: 'gov-icon',\r\n\tholder: 'gov-icon__holder',\r\n}\r\n","import { version } from '../../package.json'\r\n\r\nexport const dsVersion = (): string => {\r\n\treturn version\r\n}\r\n","import {dsVersion} from \"./ds.utils\"\r\nimport {iconsPath} from \"../helpers/Dom/win\"\r\n\r\nconst iconCache: { [key: string]: string } = {}\r\nconst requestCache: { [key: string]: Promise<string> } = {}\r\n\r\nconst isExternalUrl = (path: string) => path.startsWith(\"http://\") || path.startsWith(\"https://\")\r\nconst iconUrl = (path: string, name: string, type: string) => {\r\n if (isExternalUrl(path)) {\r\n return `${path}/${type}/${name}.svg?v=${dsVersion()}`\r\n }\r\n return `${path}/${type}/${name}.svg` + `?v=${dsVersion()}`\r\n}\r\n\r\nexport async function fetchIcon({name, type}: { name: string; type: string }): Promise<string> {\r\n const cacheKey = type + \"-\" + name\r\n if (iconCache[cacheKey]) {\r\n return iconCache[cacheKey]\r\n }\r\n\r\n if (!requestCache[cacheKey]) {\r\n requestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {\r\n if (resp.status === 200) {\r\n return resp.text()\r\n } else {\r\n throw new Error(\"Gov Icon doesn't exists\")\r\n }\r\n })\r\n }\r\n const path = await requestCache[cacheKey]\r\n iconCache[cacheKey] = path\r\n return path\r\n}\r\n","import {Nullable} from \"../../utils/helpers.types\";\r\nimport {isWindow} from \"./win\";\r\n\r\nexport const setCookie = (name: string, value: string, days?: number) => {\r\n\tif (!isWindow) {\r\n\t\treturn\r\n\t}\r\n\tlet expires = \"\";\r\n\tif (days) {\r\n\t\tconst date = new Date();\r\n\t\tdate.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\r\n\t\texpires = \"; expires=\" + date.toUTCString();\r\n\t}\r\n\tdocument.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;\r\n}\r\n\r\nexport const getCookie = (name: string): Nullable<string> => {\r\n\tif (!isWindow) {\r\n\t\treturn null\r\n\t}\r\n\tconst nameEQ = name + \"=\";\r\n\tconst cookies = document.cookie.split(';');\r\n\tfor (let i = 0; i < cookies.length; i++) {\r\n\t\tlet cookie = cookies[i].trim();\r\n\t\tif (cookie.startsWith(nameEQ)) {\r\n\t\t\treturn decodeURIComponent(cookie.substring(nameEQ.length));\r\n\t\t}\r\n\t}\r\n\treturn null;\r\n}\r\n\r\nexport const isValidSVG = (svgContent: string): boolean => {\r\n\ttry {\r\n\t\tconst parser = new DOMParser();\r\n\t\tconst doc = parser.parseFromString(svgContent, \"image/svg+xml\");\r\n\t\tconst parseError = doc.querySelector(\"parsererror\");\r\n\t\tif (parseError) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tconst svgElement = doc.documentElement;\r\n\t\tif (svgElement.tagName.toLowerCase() !== \"svg\") {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t} catch (error) {\r\n\t\treturn false;\r\n\t}\r\n}\r\n","import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\r\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\r\nimport {fetchIcon} from \"../../utils/icon.utils\"\r\nimport {govHost} from \"../../helpers/Dom/template\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\"\r\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\r\nimport {validateProp} from \"../../helpers/Validate/props\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {isValidSVG} from \"../../helpers/Dom/document\";\r\n\r\n@Component({\r\n\tassetsDirs: [\"assets\"],\r\n\ttag: \"gov-icon\",\r\n})\r\nexport class GovIcon {\r\n\tprivate h: GovHost\r\n\tprivate intersectionObserver: IntersectionObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovIconElement\r\n\t/**\r\n\t * Icon size\r\n\t */\r\n\t@Prop({reflect: true}) readonly size?: IconSizesType\r\n\t/**\r\n\t * Icon color\r\n\t */\r\n\t@Prop({reflect: true}) readonly color?: IconColorType\r\n\t/**\r\n\t * Name of icon in folder\r\n\t */\r\n\t@Prop({reflect: true}) name: string = null\r\n\t/**\r\n\t * Type (folder) of icon\r\n\t */\r\n\t@Prop({reflect: true}) type = \"components\"\r\n\r\n\t@State() private visible = false\r\n\t@State() private error = false\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\r\n\t}\r\n\r\n\t@Watch(\"color\")\r\n\tvalidateColor(newValue: string): void {\r\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\r\n\t}\r\n\r\n\t@Watch(\"name\")\r\n\tprivate async loadIconPathData(): Promise<void> {\r\n\t\tconst {name, visible} = this\r\n\t\tif (!Build.isBrowser || !name || !visible) {\r\n\t\t\treturn\r\n\t\t}\r\n\t\tawait this.loadIcon()\r\n\t}\r\n\r\n\tconnectedCallback(): void {\r\n\t\tif (iconsLazyLoad()) {\r\n\t\t\tthis.visible = true\r\n\t\t\tthis.loadIconPathData().finally()\r\n\t\t} else {\r\n\t\t\tthis.waitUntilVisible(async () => {\r\n\t\t\t\tthis.visible = true\r\n\t\t\t\tawait this.loadIconPathData()\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tdisconnectedCallback(): void {\r\n\t\tif (this.intersectionObserver) {\r\n\t\t\tthis.intersectionObserver.disconnect()\r\n\t\t\tthis.intersectionObserver = null\r\n\t\t}\r\n\t}\r\n\r\n\tasync componentWillLoad(): Promise<void> {\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validateColor(this.color)\r\n\t\tawait this.loadIconPathData()\r\n\t}\r\n\r\n\tprivate waitUntilVisible(callback: () => void): void {\r\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\r\n\t\t\tcallback()\r\n\t\t\treturn\r\n\t\t}\r\n\t\tthis.intersectionObserver = new IntersectionObserver(\r\n\t\t\tentries => {\r\n\t\t\t\tentries.forEach(entry => {\r\n\t\t\t\t\tif (entry.isIntersecting) {\r\n\t\t\t\t\t\tif (this.intersectionObserver) {\r\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\r\n\t\t\t\t\t\t\tthis.intersectionObserver = null\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcallback()\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t{rootMargin: \"50px\"},\r\n\t\t)\r\n\t\tthis.intersectionObserver.observe(this.host)\r\n\t}\r\n\r\n\tprivate async loadIcon() {\r\n\t\ttry {\r\n\t\t\tconst {name, type} = this\r\n\t\t\tconst data = await fetchIcon({name, type})\r\n\t\t\tconst isValid = isValidSVG(data)\r\n\t\t\tthis.host.innerHTML = isValid ? data : null;\r\n\t\t} catch (e) {\r\n\t\t\tthis.host.innerHTML = ''\r\n\t\t\tthis.error = true\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\tif (this.error) {\r\n\t\t\treturn null\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\r\n\t\t)\r\n\t}\r\n}\r\n","import {pick} from \"../../utils/utils\";\r\nimport {Sizes} from \"../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../types/interfaces\";\r\n\r\nexport const ThemeSwitchSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\r\nexport type ThemeSwitchSizesType = `${ValueOf<typeof ThemeSwitchSizes>}`\r\n\r\nexport const ThemeSwitchClass = {\r\n\troot: 'gov-theme-switch',\r\n\tindicator: 'gov-theme-switch__indicator',\r\n\tlabel: 'gov-theme-switch__label',\r\n\ticonLight: 'gov-theme-switch__icon-light',\r\n\ticonDark: 'gov-theme-switch__icon-dark',\r\n}\r\n\r\nexport const ATTRIBUTE_THEME_NAME = 'data-theme'\r\n","import {GovBaseEvent} from \"../../types/event.types\";\r\n\r\nexport enum ThemeList {\r\n\tauto = 'auto',\r\n\tlight = 'light',\r\n\tdark = 'dark'\r\n}\r\n\r\nexport interface ThemeSwitchEvent extends GovBaseEvent {\r\n\tref: HTMLGovThemeSwitchElement;\r\n\tstate: ThemeList\r\n}\r\n\r\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\r\nimport {GovHost} from \"../../helpers/Dom/template.types\";\r\nimport {govHost} from \"../../helpers/Dom/template\";\r\nimport {ATTRIBUTE_THEME_NAME, ThemeSwitchClass, ThemeSwitchSizes, ThemeSwitchSizesType} from \"./constants\";\r\nimport {isWindow} from \"../../helpers/Dom/win\";\r\nimport {ThemeList, ThemeSwitchEvent} from \"./gov-theme-switch.types\";\r\nimport {validateProp} from \"../../helpers/Validate/props\";\r\nimport {getCookie, setCookie} from \"../../helpers/Dom/document\";\r\n\r\n@Component({\r\n\ttag: \"gov-theme-switch\",\r\n})\r\nexport class GovThemeSwitch {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovThemeSwitchElement\r\n\r\n\t/**\r\n\t * Switch's size.\r\n\t */\r\n\t@Prop() readonly size?: ThemeSwitchSizesType = \"m\"\r\n\t/**\r\n\t * Display switch label\r\n\t */\r\n\t@Prop({attribute: \"display-label\"}) readonly displayLabel? = false\r\n\t/**\r\n\t * Label in light mode\r\n\t */\r\n\t@Prop({attribute: \"aria-label-light\"}) readonly ariaLabelLight? = \"Přepnout na tmavý mód\"\r\n\t/**\r\n\t * Label in dark mode\r\n\t */\r\n\t@Prop({attribute: \"aria-label-dark\"}) readonly ariaLabelDark? = \"Přepnout na světlý mód\"\r\n\t/**\r\n\t * Label in light mode\r\n\t */\r\n\t@Prop({attribute: \"label-light\"}) readonly labelLight? = \"Světlý mód\"\r\n\t/**\r\n\t * Label in dark mode\r\n\t */\r\n\t@Prop({attribute: \"label-dark\"}) readonly labelDark? = \"Tmavý mód\"\r\n\t/**\r\n\t * Called when the theme is changed by the user\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<ThemeSwitchEvent>\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(ThemeSwitchSizes, newValue, ThemeSwitchClass.root)\r\n\t}\r\n\r\n\t@Watch(\"theme\")\r\n\twatchTheme(newValue: ThemeList): void {\r\n\t\tthis.htmlElement.setAttribute(ATTRIBUTE_THEME_NAME, newValue);\r\n\t\tthis.htmlElement.classList.remove(...Object.keys(ThemeList));\r\n\t\tthis.htmlElement.classList.add(newValue);\r\n\t\tsetCookie(ATTRIBUTE_THEME_NAME, newValue);\r\n\t}\r\n\r\n\t@State() theme: ThemeList = ThemeList.auto\r\n\r\n\tprivate get storageValue() {\r\n\t\treturn getCookie(ATTRIBUTE_THEME_NAME)\r\n\t}\r\n\r\n\tprivate get htmlElement(): HTMLElement {\r\n\t\treturn document.documentElement\r\n\t}\r\n\r\n\tprivate get isSystemPrefersColorDark(): boolean {\r\n\t\treturn isWindow && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.initDefaultState()\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tprivate initDefaultState() {\r\n\t\tconst options = Object.keys(ThemeList);\r\n\t\tlet currentState = this.storageValue;\r\n\t\tconst htmlState = this.htmlElement.getAttribute(ATTRIBUTE_THEME_NAME)\r\n\r\n\t\tif (currentState && options.includes(currentState)) {\r\n\t\t\tthis.theme = currentState as ThemeList;\r\n\t\t} else if (htmlState && options.includes(htmlState)) {\r\n\t\t\tthis.theme = htmlState as ThemeList;\r\n\t\t} else {\r\n\t\t\tthis.theme = ThemeList.auto;\r\n\t\t}\r\n\t}\r\n\r\n\tprivate setThemeState = (state: ThemeList) => {\r\n\t\tthis.theme = state;\r\n\r\n\t\tthis.govChange.emit({\r\n\t\t\tcomponent: ThemeSwitchClass.root,\r\n\t\t\tstate: this.theme,\r\n\t\t\tref: this.host\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\tlet isDark = this.theme === ThemeList.dark;\r\n\t\tif (this.theme === ThemeList.auto) {\r\n\t\t\tisDark = this.isSystemPrefersColorDark;\r\n\t\t}\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(ThemeSwitchClass.root)}\r\n\t\t\t\t theme={isDark ? ThemeList.dark : ThemeList.light}\r\n\t\t\t\t size={this.size}>\r\n\t\t\t\t<button onClick={() => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark)}\r\n\t\t\t\t\t\taria-current={this.theme}\r\n\t\t\t\t\t\taria-label={isDark ? this.ariaLabelDark : this.ariaLabelLight}>\r\n\t\t\t\t\t<span>\r\n\t\t\t\t\t\t<span class={ThemeSwitchClass.indicator}>\r\n\t\t\t\t\t\t\t{ThemeList.light && <gov-icon name=\"sun\" class={ThemeSwitchClass.iconLight} type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t\t{ThemeList.dark && <gov-icon name=\"moon\" class={ThemeSwitchClass.iconDark} type=\"components\"></gov-icon>}\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t{this.displayLabel ? (\r\n\t\t\t\t\t\t\t<span class={ThemeSwitchClass.label}>\r\n\t\t\t\t\t\t\t\t{isDark ? this.labelDark : this.labelLight}\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t) : null\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t</button>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"sSAMO,MAAMA,EAAY,CACxBC,KAAM,Y,MCCMC,EAAO,MAGnB,WAAAC,CAAAC,G,UASuBC,KAASC,UAAyD,MAkDzDD,KAAUE,WAAW,OA1DpDF,KAAKG,EAAIC,EAAQJ,KAAKK,KACtB,CA2DD,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOT,KAAKG,EAAEO,QAAQf,EAAUC,OACrCO,EAAa,QAAAK,IAAA,6C,6BCtEQG,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,MAAO,OAAQ,OAAQ,OAA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AASjC,EAAUkC,KAAOlC,EAAUmC,MAC3CzD,KAAMnF,KAAKmF,MACbhF,EAAA,UAAAK,IAAA,2CAAQqI,QAAS,IAAM7I,KAAKkH,cAAcwB,EAASjC,EAAUmC,MAAQnC,EAAUkC,MAC/D,eAAA3I,KAAKgH,MAAK,aACZ0B,EAAS1I,KAAK6G,cAAgB7G,KAAK4G,gBAChDzG,EAAA,QAAAK,IAAA,4CACCL,EAAA,QAAAK,IAAA,2CAAMC,MAAO0F,EAAiBC,WAC5BK,EAAUmC,OAASzI,EAAU,YAAAK,IAAA,2CAAAiB,KAAK,MAAMhB,MAAO0F,EAAiBG,UAAW5E,KAAK,eAChF+E,EAAUkC,MAAQxI,EAAA,YAAAK,IAAA,2CAAUiB,KAAK,OAAOhB,MAAO0F,EAAiBI,SAAU7E,KAAK,gBAEhF1B,KAAK2G,aACLxG,EAAM,QAAAM,MAAO0F,EAAiBE,OAC5BqC,EAAS1I,KAAK+G,UAAY/G,KAAK8G,YAE7B,O","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,c as t,h as i,H as s,g as a}from"./p-ClISz4NF.js";import{g as o,a as d,c}from"./p-CoD1xawt.js";import{c as l}from"./p-CgDnDrq5.js";import{a as h}from"./p-CDIRBJsi.js";import{c as n}from"./p-vN03FcXN.js";import{t as b}from"./p-Cjg0wpDG.js";import"./p-CQvUntGY.js";import"./p-DNztiAH0.js";const r={root:"gov-dialog",dialog:"gov-dialog__dialog",inner:"gov-dialog__inner",header:"gov-dialog__header",title:"gov-dialog__title",content:"gov-dialog__content",close:"gov-dialog__close",footer:"gov-dialog__footer",bodyFix:"body-fixed"};function f(e){if(!e)return[];return Array.from(e.querySelectorAll('a[href], button:not([disabled]), textarea, input:not([type="hidden"]), select, [tabindex]:not([tabindex="-1"])'))}const g=class{constructor(i){e(this,i);this.govClose=t(this,"gov-close");this.hydrated=false;this.open=false;this.blockClose=false;this.blockBackdropClose=false;this.role="dialog";this.labelTag="h2";this.accessibleCloseLabel="Zavřít okno";this.h=o(this.host);this.labelId=n("GovDialogLabel");this.contentId=n("GovDialogContent")}watchOpen(e){var t;this.open=e;this.setFocus().finally();if(!e){(t=this.lastActiveElementRef)===null||t===void 0?void 0:t.focus()}else{this.focusTrap()}}showDialog(){this.open=true;document.body.classList.add(r.bodyFix)}hideDialog(){this.open=false;document.body.classList.remove(r.bodyFix)}async componentDidRender(){if(l()){b((()=>this.validateAccessibility()))}if(this.open){this.showDialog()}else{this.hideDialog()}}focusTrap(){var e;if(open&&this.dialogRef){this.lastActiveElementRef=document.activeElement;const e=f(this.dialogRef);if(e.length){e[0].focus()}const t=e=>{if(e.key==="Tab"&&this.dialogRef){const t=f(this.dialogRef);const i=t[0];const s=t[t.length-1];if(!e.shiftKey&&document.activeElement===s){e.preventDefault();i.focus()}if(e.shiftKey&&document.activeElement===i){e.preventDefault();s.focus()}}if(e.key==="Escape"){if(this.blockClose===false){this.hideDialog();this.govClose.emit()}}};document.addEventListener("keydown",t)}else{(e=this.lastActiveElementRef)===null||e===void 0?void 0:e.focus()}}connectedCallback(){this.hydrated=true}disconnectedCallback(){document.body.classList.remove(r.bodyFix)}render(){return i(s,{key:"ba9070ed36ce25806a12a88f55d9a36609e17bbb",class:this.h.classes(r.root),open:this.open,hydrated:this.hydrated},i("dialog",{key:"79188b6182895a7a7db32e629316a46420d2981c",ref:e=>this.dialogRef=e,class:r.dialog,hidden:!this.open,tabindex:c(this.open),open:this.open,"aria-modal":"true","aria-hidden":d(!this.open),"aria-labelledby":this.accessibleLabelledBy||this.labelId,"aria-describedby":this.accessibleDescribedBy||this.contentId,role:this.role},i("div",{key:"a50c41b27b3060292df9b6d2eb657c1e27a384e7",class:r.inner},i("div",{key:"487b4639e842aa7257e2ce24a553e8ae67be02be",class:r.header},this.h.hasSlot("icon")&&i("span",{key:"75dfd64444588ce6a37607a60eb1c4df7888d3e8"},i("slot",{key:"80be9198860ffce669b218b6f0f0143f7da83add",name:"icon"})),this.h.hasSlot("title")&&i("span",{key:"723a628454f0989db5da7a1ae12aef803896b9de",class:r.title,id:this.labelId},i("slot",{key:"0aee99ddbdbb0a068b07259d6b2793ddf3dfa629",name:"title"})),i("gov-button",{key:"6f245f5f2a3a95ff239cd55640c5aac980374cfc",ref:e=>this.closeCtaRef=e,disabled:this.blockClose,class:r.close,color:"primary","aria-label":this.accessibleCloseLabel,"aria-labelledby":this.accessibleCloseLabelledBy,type:"base",size:"m","on-gov-click":this.onCloseHandler.bind(this)},i("gov-icon",{key:"f767a25f40e13c322d6871275d996493bbe8730b",slot:"icon-start",name:"x-lg",type:"components"}))),i("div",{key:"4c975dfa826bada579b1ee6edbcece08bf6b7346",class:r.content,id:this.contentId},i("slot",{key:"cdc3d7b173b47237cecf113e344d2ebd05d6daeb"})),this.h.hasSlot("footer")&&i("div",{key:"37e471ea3bb0952c0ccfc290b02af6d69690ae4e",class:r.footer},i("slot",{key:"69f6160c0429d82051a6b99d210f132c7ec3ff56",name:"footer"})))),this.open?i("gov-backdrop",{disabled:this.blockBackdropClose,"aria-label":this.accessibleCloseLabel,"aria-labelled-by":this.accessibleCloseLabelledBy,"on-gov-click":this.onCloseHandler.bind(this)}):null)}onCloseHandler(e){e.stopPropagation();e.preventDefault();if(this.blockClose===false){this.hideDialog();this.govClose.emit(e)}}async setFocus(){if(this.open&&this.closeCtaRef){this.closeCtaRef.setFocus().catch()}}async validateAccessibility(){h(this.accessibleLabelledBy,"accessible-labelled-by",r.root);h(this.accessibleDescribedBy,"accessible-described-by",r.root)}get host(){return a(this)}static get watchers(){return{open:["watchOpen"]}}};export{g as gov_dialog};
2
+ //# sourceMappingURL=p-264cbd4e.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DialogClass","root","dialog","inner","header","title","content","close","footer","bodyFix","getFocusableElements","container","Array","from","querySelectorAll","GovDialog","constructor","hostRef","this","hydrated","open","blockClose","blockBackdropClose","role","labelTag","accessibleCloseLabel","h","govHost","host","labelId","createID","contentId","watchOpen","newValue","setFocus","finally","_a","lastActiveElementRef","focus","focusTrap","showDialog","document","body","classList","add","hideDialog","remove","componentDidRender","canValidateWcagOnRender","tick","validateAccessibility","dialogRef","activeElement","focusableEls","length","handleKeyDown","e","key","firstEl","lastEl","shiftKey","preventDefault","govClose","emit","addEventListener","connectedCallback","disconnectedCallback","render","Host","class","classes","ref","el","hidden","tabindex","boolToFocusValue","toBoolAttr","accessibleLabelledBy","accessibleDescribedBy","hasSlot","name","id","closeCtaRef","disabled","color","accessibleCloseLabelledBy","type","size","onCloseHandler","bind","slot","stopPropagation","catch","validateWcagRef"],"sources":["../../../packages/core/src/components/gov-dialog/constants.ts","../../../packages/core/src/utils/dom.utils.ts","../../../packages/core/src/components/gov-dialog/gov-dialog.tsx"],"sourcesContent":["export const DialogClass = {\r\n\troot: 'gov-dialog',\r\n\tdialog: 'gov-dialog__dialog',\r\n\tinner: 'gov-dialog__inner',\r\n\theader: 'gov-dialog__header',\r\n\ttitle: 'gov-dialog__title',\r\n\tcontent: 'gov-dialog__content',\r\n\tclose: 'gov-dialog__close',\r\n\tfooter: 'gov-dialog__footer',\r\n\tbodyFix: 'body-fixed',\r\n}\r\n","export function getFocusableElements(container: HTMLElement) {\r\n\tif (!container) return [];\r\n\treturn Array.from(\r\n\t\tcontainer.querySelectorAll(\r\n\t\t\t'a[href], button:not([disabled]), textarea, input:not([type=\"hidden\"]), select, [tabindex]:not([tabindex=\"-1\"])'\r\n\t\t)\r\n\t);\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch} from '@stencil/core'\r\nimport {boolToFocusValue, govHost, toBoolAttr} from '../../helpers/Dom/template'\r\nimport {GovHost} from '../../helpers/Dom/template.types'\r\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\r\nimport {validateWcagRef} from '../../helpers/Validate/wcag'\r\nimport {Nullable} from '../../types/interfaces'\r\nimport {createID} from '../../utils/string.utils'\r\nimport {DialogClass} from './constants'\r\nimport {tick} from \"../../utils/stencil.utils\";\r\nimport {getFocusableElements} from \"../../utils/dom.utils\";\r\n\r\n@Component({\r\n\ttag: 'gov-dialog',\r\n})\r\nexport class GovDialog {\r\n\tprivate h: GovHost\r\n\tprivate readonly labelId: string\r\n\tprivate readonly contentId: string\r\n\tprivate hydrated = false;\r\n\tprivate closeCtaRef?: HTMLGovButtonElement\r\n\tprivate dialogRef?: HTMLDialogElement;\r\n\tprivate lastActiveElementRef?: HTMLElement;\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.labelId = createID('GovDialogLabel')\r\n\t\tthis.contentId = createID('GovDialogContent')\r\n\t}\r\n\r\n\t@Element() host: HTMLGovDialogElement\r\n\r\n\t/**\r\n\t * Attribute for dialog window display\r\n\t */\r\n\t@Prop({mutable: true, reflect: true}) open = false\r\n\t/**\r\n\t * Attribute allowing blocking the dialog closing\r\n\t */\r\n\t@Prop({attribute: 'block-close'}) blockClose = false\r\n\t/**\r\n\t * Attribute allowing blocking the backdrop dialog closing\r\n\t */\r\n\t@Prop({attribute: 'block-backdrop-close'}) blockBackdropClose = false\r\n\t/**\r\n\t * Role of dialog\r\n\t */\r\n\t@Prop({attribute: 'role'}) role: Nullable<string> = 'dialog'\r\n\t/**\r\n\t * Used to change the HTML tag in the dialog label for correct semantic structure\r\n\t */\r\n\t@Prop({attribute: 'label-tag'}) readonly labelTag: string = 'h2'\r\n\t/**\r\n\t * String of id's that indicates alternative labels elements\r\n\t */\r\n\t@Prop({attribute: 'accessible-labelled-by'}) accessibleLabelledBy: string\r\n\t/**\r\n\t * Indicates the id of a component that describes the dialog.\r\n\t */\r\n\t@Prop({attribute: 'accessible-described-by'}) accessibleDescribedBy: string\r\n\t/**\r\n\t * Adds accessible label for the dialog close button that is only shown for screen readers.\r\n\t */\r\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít okno'\r\n\t/**\r\n\t * A string of identifiers that indicate alternative label elements for closing the dialog window\r\n\t */\r\n\t@Prop({attribute: 'accessible-close-labelled-by'}) accessibleCloseLabelledBy: string\r\n\t/**\r\n\t * Emitted when a dialog window closes.\r\n\t */\r\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<PointerEvent>\r\n\r\n\t@Watch('open')\r\n\twatchOpen(newValue: boolean): void {\r\n\t\tthis.open = newValue\r\n\t\tthis.setFocus().finally()\r\n\r\n\t\tif (!newValue) {\r\n\t\t\tthis.lastActiveElementRef?.focus();\r\n\t\t} else {\r\n\t\t\tthis.focusTrap();\r\n\t\t}\r\n\t}\r\n\r\n\tprivate showDialog() {\r\n\t\tthis.open = true\r\n\t\tdocument.body.classList.add(DialogClass.bodyFix)\r\n\t}\r\n\r\n\tprivate hideDialog() {\r\n\t\tthis.open = false\r\n\t\tdocument.body.classList.remove(DialogClass.bodyFix)\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tif (canValidateWcagOnRender()) {\r\n\t\t\ttick(() => this.validateAccessibility())\r\n\t\t}\r\n\r\n\t\tif (this.open) {\r\n\t\t\tthis.showDialog()\r\n\t\t} else {\r\n\t\t\tthis.hideDialog()\r\n\t\t}\r\n\t}\r\n\r\n\tprivate focusTrap() {\r\n\t\tif (open && this.dialogRef) {\r\n\t\t\tthis.lastActiveElementRef = document.activeElement as HTMLElement;\r\n\t\t\tconst focusableEls = getFocusableElements(this.dialogRef) as HTMLElement[];\r\n\t\t\tif (focusableEls.length) {\r\n\t\t\t\tfocusableEls[0].focus();\r\n\t\t\t}\r\n\r\n\t\t\tconst handleKeyDown = (e: KeyboardEvent) => {\r\n\t\t\t\tif (e.key === \"Tab\" && this.dialogRef) {\r\n\t\t\t\t\tconst focusableEls = getFocusableElements(this.dialogRef);\r\n\t\t\t\t\tconst firstEl = focusableEls[0] as HTMLElement;\r\n\t\t\t\t\tconst lastEl = focusableEls[focusableEls.length - 1] as HTMLElement;\r\n\r\n\t\t\t\t\tif (!e.shiftKey && document.activeElement === lastEl) {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tfirstEl.focus();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (e.shiftKey && document.activeElement === firstEl) {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tlastEl.focus();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (e.key === \"Escape\") {\r\n\t\t\t\t\tif (this.blockClose === false) {\r\n\t\t\t\t\t\tthis.hideDialog();\r\n\t\t\t\t\t\tthis.govClose.emit();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t\tdocument.addEventListener(\"keydown\", handleKeyDown);\r\n\t\t} else {\r\n\t\t\tthis.lastActiveElementRef?.focus();\r\n\t\t}\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\tdisconnectedCallback(): void {\r\n\t\tdocument.body.classList.remove(DialogClass.bodyFix)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(DialogClass.root)} open={this.open} hydrated={this.hydrated}>\r\n\t\t\t\t<dialog\r\n\t\t\t\t\tref={el => (this.dialogRef = el)}\r\n\t\t\t\t\tclass={DialogClass.dialog}\r\n\t\t\t\t\thidden={!this.open}\r\n\t\t\t\t\ttabindex={boolToFocusValue(this.open)}\r\n\t\t\t\t\topen={this.open}\r\n\t\t\t\t\taria-modal=\"true\"\r\n\t\t\t\t\taria-hidden={toBoolAttr(!this.open)}\r\n\t\t\t\t\taria-labelledby={this.accessibleLabelledBy || this.labelId}\r\n\t\t\t\t\taria-describedby={this.accessibleDescribedBy || this.contentId}\r\n\t\t\t\t\trole={this.role}\r\n\t\t\t\t>\r\n\t\t\t\t\t<div class={DialogClass.inner}>\r\n\t\t\t\t\t\t<div class={DialogClass.header}>\r\n\t\t\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\r\n\t\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t\t<slot name=\"icon\"/>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t{this.h.hasSlot('title') && (\r\n\t\t\t\t\t\t\t\t<span class={DialogClass.title} id={this.labelId}>\r\n\t\t\t\t\t\t\t\t\t<slot name=\"title\"/>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t<gov-button\r\n\t\t\t\t\t\t\t\tref={el => (this.closeCtaRef = el)}\r\n\t\t\t\t\t\t\t\tdisabled={this.blockClose}\r\n\t\t\t\t\t\t\t\tclass={DialogClass.close}\r\n\t\t\t\t\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\r\n\t\t\t\t\t\t\t\taria-labelledby={this.accessibleCloseLabelledBy}\r\n\t\t\t\t\t\t\t\ttype=\"base\"\r\n\t\t\t\t\t\t\t\tsize=\"m\"\r\n\t\t\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<gov-icon slot=\"icon-start\" name=\"x-lg\" type=\"components\"></gov-icon>\r\n\t\t\t\t\t\t\t</gov-button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class={DialogClass.content} id={this.contentId}>\r\n\t\t\t\t\t\t\t<slot/>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t{this.h.hasSlot('footer') && (\r\n\t\t\t\t\t\t\t<div class={DialogClass.footer}>\r\n\t\t\t\t\t\t\t\t<slot name=\"footer\"/>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</dialog>\r\n\r\n\t\t\t\t{this.open ? (\r\n\t\t\t\t\t<gov-backdrop\r\n\t\t\t\t\t\tdisabled={this.blockBackdropClose}\r\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\r\n\t\t\t\t\t\taria-labelled-by={this.accessibleCloseLabelledBy}\r\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t) : null}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onCloseHandler(e: PointerEvent) {\r\n\t\te.stopPropagation()\r\n\t\te.preventDefault()\r\n\t\tif (this.blockClose === false) {\r\n\t\t\tthis.hideDialog()\r\n\t\t\tthis.govClose.emit(e)\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Sets the close button to focus\r\n\t */\r\n\t@Method()\r\n\tasync setFocus(): Promise<void> {\r\n\t\tif (this.open && this.closeCtaRef) {\r\n\t\t\tthis.closeCtaRef.setFocus().catch()\r\n\t\t}\r\n\t}\r\n\r\n\r\n\t/**\r\n\t * Validate the WCAG attributes of the component\r\n\t */\r\n\t@Method()\r\n\tasync validateAccessibility(): Promise<void> {\r\n\t\tvalidateWcagRef(this.accessibleLabelledBy, 'accessible-labelled-by', DialogClass.root)\r\n\t\tvalidateWcagRef(this.accessibleDescribedBy, 'accessible-described-by', DialogClass.root)\r\n\t}\r\n}\r\n"],"mappings":"6SAAO,MAAMA,EAAc,CAC1BC,KAAM,aACNC,OAAQ,qBACRC,MAAO,oBACPC,OAAQ,qBACRC,MAAO,oBACPC,QAAS,sBACTC,MAAO,oBACPC,OAAQ,qBACRC,QAAS,cCTJ,SAAUC,EAAqBC,GACpC,IAAKA,EAAW,MAAO,GACvB,OAAOC,MAAMC,KACZF,EAAUG,iBACT,kHAGH,C,MCOaC,EAAS,MASrB,WAAAC,CAAAC,G,4CALQC,KAAQC,SAAG,MAgBmBD,KAAIE,KAAG,MAIXF,KAAUG,WAAG,MAIJH,KAAkBI,mBAAG,MAIrCJ,KAAIK,KAAqB,SAIXL,KAAQM,SAAW,KAYNN,KAAoBO,qBAAW,cAtCpFP,KAAKQ,EAAIC,EAAQT,KAAKU,MACtBV,KAAKW,QAAUC,EAAS,kBACxBZ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,OAAOM,KAAK,iBAG/C5D,EAAK,OAAA+B,IAAA,2CAAAY,MAAOrE,EAAYM,QAAS2E,GAAI/D,KAAKa,WACzCL,EAAA,QAAA+B,IAAA,8CAEAvC,KAAKQ,EAAEqD,QAAQ,WACfrD,EAAK,OAAA+B,IAAA,2CAAAY,MAAOrE,EAAYQ,QACvBkB,EAAA,QAAA+B,IAAA,2CAAMuB,KAAK,cAMd9D,KAAKE,KACLM,EACC,gBAAAyD,SAAUjE,KAAKI,mBAAkB,aACrBJ,KAAKO,qBACC,mBAAAP,KAAKmE,0BAAyB,eAClCnE,KAAKsE,eAAeC,KAAKvE,QAErC,K,CAKC,cAAAsE,CAAehC,GACtBA,EAAEmC,kBACFnC,EAAEK,iBACF,GAAI3C,KAAKG,aAAe,MAAO,CAC9BH,KAAK2B,aACL3B,KAAK4C,SAASC,KAAKP,E,EAQrB,cAAMtB,GACL,GAAIhB,KAAKE,MAAQF,KAAKgE,YAAa,CAClChE,KAAKgE,YAAYhD,WAAW0D,O,EAS9B,2BAAM1C,GACL2C,EAAgB3E,KAAK2D,qBAAsB,yBAA0B7E,EAAYC,MACjF4F,EAAgB3E,KAAK4D,sBAAuB,0BAA2B9E,EAAYC,K","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,c as s,h as i,H as e,g as h}from"./p-DT2tslUp.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{g as n,a as r,t as c}from"./p-BBOh2pxy.js";import{v as l}from"./p-NOJjz9dT.js";import{A as p,a as u}from"./p-Bz_RzYFb.js";import{g as d}from"./p-B6CqPcY_.js";import{t as f}from"./p-Cjg0wpDG.js";import{a as m}from"./p-DNztiAH0.js";import{c as v}from"./p-vN03FcXN.js";import{i as g}from"./p-CzXeijOj.js";import"./p-CgDnDrq5.js";import"./p-EeKNA85D.js";import"./p-U40vKHrs.js";import"./p-DYcNEwSZ.js";import"./p-DBXGhafv.js";const b=a(o,["_S","_M","_L"]);const j={root:"gov-form-range",fill:"gov-form-range--fill",input:"gov-form-range--input"};const C=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govInput=s(this,"gov-input");this.size="m";this.tooltip=false;this.input=false;this.required=false;this.disabled=false;this.inheritedAttributes={};this.h=n(this.host);this.f=d(this.h);this.inputId=v("GovInput")}validateSize(t){l(b,t,j.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 h=this.inputRef.offsetWidth;const a=(t-s)/(i-s)*100;let o=a/100*(h-e)+e/2;if(this.outputRef){this.outputRef.textContent=this.value;const t=this.outputRef.offsetWidth/2;this.outputRef.style.left=`${o-t}px`}if(this.fillRef){this.fillRef.style.width=`${o}px`}}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(u)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=g(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));f(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 i(e,{key:"263e214c6c36967aaa1d8ec4f33d23d0eec5c92d",class:j.root,size:this.size},this.h.hasSlot("prefix")&&i("slot",{key:"43e08e8d199572845578b1e95c7c012908555bc8",name:"prefix"}),i("span",{key:"89d4176b4f234a4cf83f15a0676710e530ee8d96",class:"element"},i("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)})),i("div",{key:"601626b0b79a7a62022cc61071961bd0b5b9ebe2",class:j.fill,ref:t=>this.fillRef=t}),this.tooltip?i("output",{htmlFor:this.name,ref:t=>this.outputRef=t},this.value):null,i("slot",{key:"f814e896acf10712ecfa34a8d6fa7f9b1d575a4e",name:"datalist"})),this.h.hasSlot("sufix")&&i("slot",{key:"432a47e6df6cd4c6aea28e3063f06e9debc0dc32",name:"sufix"}),this.input?i("gov-form-input",Object.assign({"on-gov-input":this.onCustomInputHandler.bind(this),class:j.input,size:this.size,value:this.value,disabled:this.disabled},this.inheritedAttributes)):null)}onCustomInputHandler(t){const s=t.target.value;if(this.step&&m(+this.step)){const i=+s;const e=+this.min;const h=+this.max;const a=+this.step;if(isNaN(i)){return false}if(i<e||i>h){return false}const o=i-e;if(o%a!==0){return false}this.value=s;this.govInput.emit({component:j.root,value:this.value,originalEvent:t})}}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:j.root,value:this.value,originalEvent:t})}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:j.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:j.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 h(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}};export{C as gov_form_range};
2
- //# sourceMappingURL=p-2142c481.entry.js.map
1
+ import{r as t,c as s,h as i,H as e,g as h}from"./p-ClISz4NF.js";import{p as o}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";import{g as n,a as r,t as c}from"./p-CoD1xawt.js";import{v as l}from"./p-NOJjz9dT.js";import{A as f,a as p}from"./p-Bz_RzYFb.js";import{g as u}from"./p-B6CqPcY_.js";import{t as d}from"./p-Cjg0wpDG.js";import{a as m}from"./p-DNztiAH0.js";import{c as b}from"./p-vN03FcXN.js";import{i as v}from"./p-CzXeijOj.js";import"./p-CgDnDrq5.js";import"./p-EeKNA85D.js";import"./p-U40vKHrs.js";import"./p-DYcNEwSZ.js";import"./p-DBXGhafv.js";const g=o(a,["_S","_M","_L"]);const j={root:"gov-form-range",fill:"gov-form-range--fill",input:"gov-form-range--input"};const C=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govInput=s(this,"gov-input");this.size="m";this.tooltip=false;this.input=false;this.required=false;this.disabled=false;this.inheritedAttributes={};this.h=n(this.host);this.f=u(this.h);this.inputId=b("GovInput")}validateSize(t){l(g,t,j.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 h=this.inputRef.offsetWidth;const o=(t-s)/(i-s)*100;let a=o/100*(h-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 f(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(p)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=v(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));d(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 i(e,{key:"52936cc832e35b7f79520c2f89b2a119e769b994",class:j.root,size:this.size},this.h.hasSlot("prefix")&&i("slot",{key:"1f5d3e1d537be5f431cbf4ba366627d82c2daa01",name:"prefix"}),i("span",{key:"cbabb9ff252fbabdd8b2f813de71b31c1a1444e6",class:"element"},i("input",Object.assign({key:"02dd3f62cb518c965c0f5529ae3b213a9c6fd649",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)})),i("div",{key:"fff23dd770c71878eae67df3f96b514c3f55ea2e",class:j.fill,ref:t=>this.fillRef=t}),this.tooltip?i("output",{htmlFor:this.name,ref:t=>this.outputRef=t},this.value):null,i("slot",{key:"32a7919602b2527a97bf019ec74744bedd0ef51f",name:"datalist"})),this.h.hasSlot("sufix")&&i("slot",{key:"e9efd215bb9895a6c11666eb694b6c47f8132f12",name:"sufix"}),this.input?i("gov-form-input",Object.assign({"on-gov-input":this.onCustomInputHandler.bind(this),class:j.input,size:this.size,value:this.value,disabled:this.disabled},this.inheritedAttributes)):null)}onCustomInputHandler(t){const s=t.target.value;if(this.step&&m(+this.step)){const i=+s;const e=+this.min;const h=+this.max;const o=+this.step;if(isNaN(i)){return false}if(i<e||i>h){return false}const a=i-e;if(a%o!==0){return false}this.value=s;this.govInput.emit({component:j.root,value:this.value,originalEvent:t})}}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:j.root,value:this.value,originalEvent:t})}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:j.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:j.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 h(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}};export{C as gov_form_range};
2
+ //# sourceMappingURL=p-2cfa670d.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FormRangeSizes","pick","Sizes","FormRangeClass","root","fill","input","GovFormRange","constructor","hostRef","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\";\r\nimport {Sizes} from \"../../../core/constants/sizes\";\r\nimport {ValueOf} from \"../../../types/interfaces\";\r\n\r\nexport const FormRangeSizes = pick(Sizes, ['_S', '_M', '_L'])\r\nexport type FormRangeSizesType = `${ValueOf<typeof FormRangeSizes>}`\r\n\r\nexport const FormRangeClass = {\r\n\troot: 'gov-form-range',\r\n\tfill: 'gov-form-range--fill',\r\n\tinput: 'gov-form-range--input',\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\r\nimport {FormRangeClass, FormRangeSizes, FormRangeSizesType} from './constants'\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\";\r\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\";\r\nimport {validateProp} from \"../../../helpers/Validate/props\";\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {GovForm} from \"../../../helpers/Dom/form.types\";\r\nimport {govForm} from \"../../../helpers/Dom/form\";\r\nimport {tick} from \"../../../utils/stencil.utils\";\r\nimport {isNumber} from \"../../../utils/helpers.types\";\r\nimport {createID} from \"../../../utils/string.utils\";\r\nimport {FormInputEvent} from \"../input/gov-form-input.types\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\n\r\n\r\n@Component({\r\n\ttag: 'gov-form-range',\r\n})\r\nexport class GovFormRange {\r\n\tprivate inputRef?: HTMLInputElement\r\n\tprivate outputRef?: HTMLOutputElement\r\n\tprivate fillRef?: HTMLDivElement\r\n\tprivate f: GovForm\r\n\tprivate readonly h: GovHost\r\n\tprivate readonly inputId: string\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.f = govForm(this.h)\r\n\t\tthis.inputId = createID(\"GovInput\")\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormRangeElement\r\n\t/**\r\n\t * Range’s size\r\n\t */\r\n\t@Prop() readonly size?: FormRangeSizesType = \"m\"\r\n\t/**\r\n\t * Value of range\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) value: string\r\n\t/**\r\n\t * Custom range identifier\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Name of the range\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Minimum value that is acceptable\r\n\t */\r\n\t@Prop() readonly min?: string | number\r\n\t/**\r\n\t * Maximum value that is acceptable\r\n\t */\r\n\t@Prop() readonly max?: string | number\r\n\t/**\r\n\t * Defines size of each step\r\n\t */\r\n\t@Prop() readonly step?: string | number\r\n\t/**\r\n\t * Show tooltip with current value\r\n\t */\r\n\t@Prop() readonly tooltip?: boolean = false\r\n\t/**\r\n\t * Show input with current value\r\n\t */\r\n\t@Prop() readonly input?: boolean = false\r\n\t/**\r\n\t * Links a <datalist/> element to a <input type=\"range\">, providing value markers as guidance for the user\r\n\t */\r\n\t@Prop() readonly listIdentifier?: string\r\n\t/**\r\n\t * Set whether the range is required or not\r\n\t */\r\n\t@Prop({reflect: true}) readonly required: boolean = false\r\n\t/**\r\n\t * Indicates the entered value of child form element does conform to the format expected by the application\r\n\t */\r\n\t@Prop({reflect: true}) readonly success: boolean\r\n\t/**\r\n\t * Indicates the entered value does not conform to the format expected by the application\r\n\t */\r\n\t@Prop({reflect: true}) readonly invalid: boolean\r\n\t/**\r\n\t * Makes the range component disabled\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Emitted when the input has focus.\r\n\t */\r\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormInputEvent>\r\n\t/**\r\n\t * Emitted when the input loses focus.\r\n\t */\r\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormInputEvent>\r\n\t/**\r\n\t * Emitted when the input change value.\r\n\t */\r\n\t@Event({eventName: \"gov-input\"}) govInput: EventEmitter<FormInputEvent>\r\n\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(FormRangeSizes, newValue, FormRangeClass.root)\r\n\t}\r\n\r\n\t@Watch(\"value\")\r\n\twatchValue(): void {\r\n\t\tthis.controlOutputPosition();\r\n\t}\r\n\r\n\t@Watch(\"disabled\")\r\n\t@Watch(\"invalid\")\r\n\t@Watch(\"success\")\r\n\t@Watch(\"size\")\r\n\twatchControlAttrs(): void {\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tprivate passControlAttrs() {\r\n\t\tthis.f.passAttrToControl(\"size\", this.size)\r\n\t\tthis.f.passAttrToControl(\"success\", toBoolAttr(this.success))\r\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\r\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\r\n\t}\r\n\r\n\tprivate get getThumbWidth() {\r\n\t\tconst styles = window.getComputedStyle(this.inputRef);\r\n\t\treturn parseFloat(styles.getPropertyValue('--thumb-size')) || 1;\r\n\t}\r\n\r\n\tprivate controlOutputPosition() {\r\n\t\tconst valueInt = +this.value;\r\n\t\tconst min = +this.inputRef.min;\r\n\t\tconst max = +this.inputRef.max;\r\n\r\n\t\tconst thumbWidth = (this.getThumbWidth * 16);\r\n\t\tconst rangeWidth = this.inputRef.offsetWidth;\r\n\t\tconst percentage = ((valueInt - min) / (max - min)) * 100;\r\n\r\n\t\tlet tooltipOffset = ((percentage / 100) * (rangeWidth - thumbWidth)) + (thumbWidth / 2);\r\n\r\n\t\tif (this.outputRef) {\r\n\t\t\tthis.outputRef.textContent = this.value;\r\n\t\t\tconst outputWidth = this.outputRef.offsetWidth / 2;\r\n\t\t\tthis.outputRef.style.left = `${tooltipOffset - outputWidth}px`;\r\n\t\t}\r\n\t\tif (this.fillRef) {\r\n\t\t\tthis.fillRef.style.width = `${tooltipOffset}px`\r\n\t\t}\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.validateSize(this.size)\r\n\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tcomponentDidRender() {\r\n\t\tthis.passControlAttrs()\r\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\r\n\t\ttick(this.controlOutputPosition.bind(this))\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={FormRangeClass.root} size={this.size}>\r\n\t\t\t\t{this.h.hasSlot(\"prefix\") && <slot name=\"prefix\"></slot>}\r\n\t\t\t\t<span class=\"element\">\r\n\t\t\t\t\t<input type=\"range\"\r\n\t\t\t\t\t\t ref={el => (this.inputRef = el)}\r\n\t\t\t\t\t\t onInput={this.onInputHandler.bind(this)}\r\n\t\t\t\t\t\t onFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\t\t onBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\t\t id={this.identifier || this.inputId}\r\n\t\t\t\t\t\t name={this.name}\r\n\t\t\t\t\t\t min={this.min}\r\n\t\t\t\t\t\t max={this.max}\r\n\t\t\t\t\t\t step={this.step}\r\n\t\t\t\t\t\t list={this.listIdentifier}\r\n\t\t\t\t\t\t value={this.value}\r\n\t\t\t\t\t\t required={this.required}\r\n\t\t\t\t\t\t disabled={this.disabled}\r\n\t\t\t\t\t\t {...this.inheritedAttributes}\r\n\t\t\t\t\t\t aria-required={toBoolAttrIfDefined(this.required)}\r\n\t\t\t\t\t\t aria-invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t\t\t aria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class={FormRangeClass.fill} ref={el => (this.fillRef = el)}></div>\r\n\t\t\t\t\t{this.tooltip ?\r\n\t\t\t\t\t\t<output htmlFor={this.name} ref={el => (this.outputRef = el)}>\r\n\t\t\t\t\t\t\t{this.value}\r\n\t\t\t\t\t\t</output>\r\n\t\t\t\t\t\t: null}\r\n\t\t\t\t\t<slot name=\"datalist\"></slot>\r\n\t\t\t\t</span>\r\n\t\t\t\t{this.h.hasSlot(\"sufix\") && <slot name=\"sufix\"></slot>}\r\n\t\t\t\t{this.input ?\r\n\t\t\t\t\t<gov-form-input\r\n\t\t\t\t\t\ton-gov-input={this.onCustomInputHandler.bind(this)}\r\n\t\t\t\t\t\tclass={FormRangeClass.input}\r\n\t\t\t\t\t\tsize={this.size}\r\n\t\t\t\t\t\tvalue={this.value}\r\n\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\t{...this.inheritedAttributes}>\r\n\t\t\t\t\t</gov-form-input>\r\n\t\t\t\t\t: null}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tonCustomInputHandler(e: InputEvent) {\r\n\t\tconst value = (e.target as HTMLInputElement).value;\r\n\t\tif (this.step && isNumber(+this.step)) {\r\n\t\t\tconst numValue = +value;\r\n\t\t\tconst numMin = +this.min;\r\n\t\t\tconst numMax = +this.max;\r\n\t\t\tconst numStep = +this.step;\r\n\r\n\t\t\tif (isNaN(numValue)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (numValue < numMin || numValue > numMax) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tconst diff = numValue - numMin;\r\n\t\t\tif (diff % numStep !== 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tthis.value = value;\r\n\t\t\tthis.govInput.emit({\r\n\t\t\t\tcomponent: FormRangeClass.root,\r\n\t\t\t\tvalue: this.value,\r\n\t\t\t\toriginalEvent: e,\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tprivate onInputHandler(e: InputEvent) {\r\n\t\tthis.value = (e.target as HTMLInputElement).value;\r\n\t\te.stopPropagation()\r\n\t\tthis.govInput.emit({\r\n\t\t\tcomponent: FormRangeClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onFocusHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govFocus.emit({\r\n\t\t\tcomponent: FormRangeClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onBlurHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govBlur.emit({\r\n\t\t\tcomponent: FormRangeClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the current state of the component\r\n\t */\r\n\t@Method()\r\n\tasync setFocus(options?: FocusOptions): Promise<void> {\r\n\t\treturn this.inputRef.focus(options)\r\n\t}\r\n\r\n\t/**\r\n\t * Sets the ordered value of the element\r\n\t */\r\n\t@Method()\r\n\tasync setValue(value: string): Promise<void> {\r\n\t\tthis.value = value\r\n\t}\r\n\r\n\t/**\r\n\t * Clears input value\r\n\t */\r\n\t@Method()\r\n\tasync clearValue(): Promise<void> {\r\n\t\tthis.value = \"\"\r\n\t\tthis.inputRef.value = \"\"\r\n\t}\r\n\r\n\t/**\r\n\t * Returns an instance of the native html input element\r\n\t */\r\n\t@Method()\r\n\tasync getRef(): Promise<HTMLInputElement> {\r\n\t\treturn this.inputRef\r\n\t}\r\n}\r\n"],"mappings":"qjBAIO,MAAMA,EAAiBC,EAAKC,EAAO,CAAC,KAAM,KAAM,OAGhD,MAAMC,EAAiB,CAC7BC,KAAM,iBACNC,KAAM,uBACNC,MAAO,yB,MCSKC,EAAY,MASxB,WAAAC,CAAAC,G,8GAUiBC,KAAIC,KAAwB,IA4B5BD,KAAOE,QAAa,MAIpBF,KAAKJ,MAAa,MAQHI,KAAQG,SAAY,MAYpBH,KAAQI,SAAY,MAiC3CJ,KAAmBK,oBAAe,GA9F1CL,KAAKM,EAAIC,EAAQP,KAAKQ,MACtBR,KAAKS,EAAIC,EAAQV,KAAKM,GACtBN,KAAKW,QAAUC,EAAS,WACxB,CA0ED,YAAAC,CAAaC,GACZC,EAAazB,EAAgBwB,EAAUrB,EAAeC,K,CAIvD,UAAAsB,GACChB,KAAKiB,uB,CAON,iBAAAC,GACClB,KAAKmB,kB,CAKE,gBAAAA,GACPnB,KAAKS,EAAEW,kBAAkB,OAAQpB,KAAKC,MACtCD,KAAKS,EAAEW,kBAAkB,UAAWC,EAAWrB,KAAKsB,UACpDtB,KAAKS,EAAEW,kBAAkB,WAAYC,EAAWrB,KAAKI,WACrDJ,KAAKS,EAAEW,kBAAkB,UAAWC,EAAWrB,KAAKuB,S,CAGrD,iBAAYC,GACX,MAAMC,EAASC,OAAOC,iBAAiB3B,KAAK4B,UAC5C,OAAOC,WAAWJ,EAAOK,iBAAiB,kBAAoB,C,CAGvD,qBAAAb,GACP,MAAMc,GAAY/B,KAAKgC,MACvB,MAAMC,GAAOjC,KAAK4B,SAASK,IAC3B,MAAMC,GAAOlC,KAAK4B,SAASM,IAE3B,MAAMC,EAAcnC,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5F,KAAKoF,MAAO,CACtC,MAAMS,GAAY7D,EAClB,MAAM8D,GAAU9F,KAAKiC,IACrB,MAAM8D,GAAU/F,KAAKkC,IACrB,MAAM8D,GAAWhG,KAAKoF,KAEtB,GAAIa,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,KAAKgC,MAAQA,EACbhC,KAAKmG,SAASC,KAAK,CAClBC,UAAW5G,EAAeC,KAC1BsC,MAAOhC,KAAKgC,MACZsE,cAAeZ,G,EAKV,cAAAb,CAAea,GACtB1F,KAAKgC,MAAS0D,EAAEC,OAA4B3D,MAC5C0D,EAAEa,kBACFvG,KAAKmG,SAASC,KAAK,CAClBC,UAAW5G,EAAeC,KAC1BsC,MAAOhC,KAAKgC,MACZsE,cAAeZ,G,CAIT,cAAAX,CAAeW,GACtBA,EAAEa,kBACFvG,KAAKwG,SAASJ,KAAK,CAClBC,UAAW5G,EAAeC,KAC1BsC,MAAOhC,KAAKgC,MACZsE,cAAeZ,G,CAIT,aAAAT,CAAcS,GACrBA,EAAEa,kBACFvG,KAAKyG,QAAQL,KAAK,CACjBC,UAAW5G,EAAeC,KAC1BsC,MAAOhC,KAAKgC,MACZsE,cAAeZ,G,CAQjB,cAAMgB,CAASC,GACd,OAAO3G,KAAK4B,SAASgF,MAAMD,E,CAO5B,cAAME,CAAS7E,GACdhC,KAAKgC,MAAQA,C,CAOd,gBAAM8E,GACL9G,KAAKgC,MAAQ,GACbhC,KAAK4B,SAASI,MAAQ,E,CAOvB,YAAM+E,GACL,OAAO/G,KAAK4B,Q","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as s,h as t,H as o,g as r}from"./p-ClISz4NF.js";import{g as e}from"./p-CoD1xawt.js";const a={root:"gov-container"};const c=class{constructor(t){s(this,t);this.h=e(this.host)}render(){return t(o,{key:"a15740b2be2e28a5a494d84b54b1cf065fb0907d",class:this.h.classes(a.root)},t("slot",{key:"c67701622dc955319e46eecdb897439fff163ca6"}))}get host(){return r(this)}};export{c as gov_container};
2
+ //# sourceMappingURL=p-33a62c22.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ContainerClass","root","GovContainer","constructor","hostRef","this","h","govHost","host","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-container/constants.tsx","../../../packages/core/src/components/gov-container/gov-container.tsx"],"sourcesContent":["export const ContainerClass = {\r\n\troot: 'gov-container',\r\n}\r\n","import { Component, Element, h, Host } from '@stencil/core'\r\nimport { govHost } from '../../helpers/Dom/template'\r\nimport { GovHost } from '../../helpers/Dom/template.types'\r\nimport { ContainerClass } from './constants'\r\n\r\n@Component({\r\n\ttag: 'gov-container',\r\n})\r\nexport class GovContainer {\r\n\tprivate h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovContainerElement\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(ContainerClass.root)}>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"6FAAO,MAAMA,EAAiB,CAC7BC,KAAM,iB,MCOMC,EAAY,MAGxB,WAAAC,CAAAC,G,UACCC,KAAKC,EAAIC,EAAQF,KAAKG,KACtB,CAID,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQb,EAAeC,OAC1CK,EAAQ,QAAAK,IAAA,6C","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as s,H as i,g as a}from"./p-ClISz4NF.js";import{v as r}from"./p-NOJjz9dT.js";import{S as o}from"./p-BcQO4NH2.js";import{p as e}from"./p-CQvUntGY.js";import{g as n}from"./p-CoD1xawt.js";import"./p-CgDnDrq5.js";const p=e(o,["_2XS","_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL"]);var c;(function(t){t["NONE"]="none";t["SM"]="sm";t["MD"]="md";t["LG"]="lg";t["XL"]="xl"})(c||(c={}));const h={root:"gov-spacer"};const m=class{constructor(s){t(this,s);this.breakpoint=undefined;this.h=n(this.host)}validateSize(t){r(p,t,h.root)}validateBreakpoint(t){r(c,t,h.root)}componentWillLoad(){this.validateSize(this.size);this.validateBreakpoint(this.breakpoint)}render(){return s(i,{key:"97560206986a3dea272c7e4a939bb91a050f6252",class:this.h.classes(h.root),size:this.size,breakpoint:this.breakpoint})}get host(){return a(this)}static get watchers(){return{size:["validateSize"],breakpoint:["validateBreakpoint"]}}};export{m as gov_spacer};
2
+ //# sourceMappingURL=p-37f6095e.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SpacerSize","pick","Sizes","SpacerBreakpoints","SpacerClass","root","GovSpacer","constructor","hostRef","this","breakpoint","undefined","h","govHost","host","validateSize","newValue","validateProp","validateBreakpoint","componentWillLoad","size","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-spacer/constants.tsx","../../../packages/core/src/components/gov-spacer/gov-spacer.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\r\nimport { pick } from '../../utils/utils'\r\nimport { ValueOf } from '../../types/interfaces'\r\n\r\nexport const SpacerSize = pick(Sizes, ['_2XS', '_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL'])\r\nexport type SpacerSizeType = `${ValueOf<typeof SpacerSize>}`\r\n\r\nexport enum SpacerBreakpoints {\r\n\tNONE = 'none',\r\n\tSM = 'sm',\r\n\tMD = 'md',\r\n\tLG = 'lg',\r\n\tXL = 'xl',\r\n}\r\nexport type SpacerBreakpointsType = `${ValueOf<typeof SpacerBreakpoints>}`\r\n\r\nexport const SpacerClass = {\r\n\troot: 'gov-spacer',\r\n}\r\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core'\r\nimport { validateProp } from '../../helpers/Validate/props'\r\nimport { SpacerBreakpoints, SpacerBreakpointsType, SpacerClass, SpacerSize, SpacerSizeType } from './constants'\r\nimport { GovHost } from '../../helpers/Dom/template.types'\r\nimport { govHost } from '../../helpers/Dom/template'\r\n\r\n@Component({\r\n\ttag: 'gov-spacer',\r\n})\r\nexport class GovSpacer {\r\n\tprivate h: GovHost\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\t@Element() host: HTMLGovSpacerElement\r\n\t/**\r\n\t * Spacer’s size\r\n\t */\r\n\t@Prop() readonly size?: SpacerSizeType\r\n\t/**\r\n\t * Breakpoint\r\n\t */\r\n\t@Prop() readonly breakpoint?: SpacerBreakpointsType = undefined\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(SpacerSize, newValue, SpacerClass.root)\r\n\t}\r\n\r\n\t@Watch('breakpoint')\r\n\tvalidateBreakpoint(newValue: string): void {\r\n\t\tvalidateProp(SpacerBreakpoints, newValue, SpacerClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t\tthis.validateBreakpoint(this.breakpoint)\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn <Host class={this.h.classes(SpacerClass.root)} size={this.size} breakpoint={this.breakpoint}></Host>\r\n\t}\r\n}\r\n"],"mappings":"iOAIO,MAAMA,EAAaC,EAAKC,EAAO,CAAC,OAAQ,MAAO,KAAM,KAAM,KAAM,MAAO,OAAQ,OAAQ,SAG/F,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,WACAA,EAAA,WACAA,EAAA,WACAA,EAAA,UACA,EAND,CAAYA,MAMX,KAGM,MAAMC,EAAc,CAC1BC,KAAM,c,MCRMC,EAAS,MAErB,WAAAC,CAAAC,G,UAWiBC,KAAUC,WAA2BC,UAVrDF,KAAKG,EAAIC,EAAQJ,KAAKK,KACtB,CAYD,YAAAC,CAAaC,GACZC,EAAajB,EAAYgB,EAAUZ,EAAYC,K,CAIhD,kBAAAa,CAAmBF,GAClBC,EAAad,EAAmBa,EAAUZ,EAAYC,K,CAGvD,iBAAAc,GACCV,KAAKM,aAAaN,KAAKW,MACvBX,KAAKS,mBAAmBT,KAAKC,W,CAG9B,MAAAW,GACC,OAAOT,EAACU,EAAK,CAAAC,IAAA,2CAAAC,MAAOf,KAAKG,EAAEa,QAAQrB,EAAYC,MAAOe,KAAMX,KAAKW,KAAMV,WAAYD,KAAKC,Y","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as o,c as r,h as g,H as a,g as p}from"./p-ClISz4NF.js";import{c as i,F as t,a as e,b as m}from"./p-BUmDydor.js";import{g as l}from"./p-CoD1xawt.js";import{v as f}from"./p-NOJjz9dT.js";import{t as v}from"./p-Cjg0wpDG.js";import{p as s}from"./p-Ccwpa1ck.js";import"./p-CQvUntGY.js";import"./p-BcQO4NH2.js";import"./p-CgDnDrq5.js";import"./p-DNztiAH0.js";const n="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 c=class{constructor(g){o(this,g);this.govChange=r(this,"gov-change");this.gap=undefined;this.orientation="vertical";this.value=undefined;this.handleChange=o=>{var r;o.stopPropagation();const g=s(this.value);if(!Array.isArray(g))return;if(o.detail.checked){this.value=[...g,o.detail.value]}else{this.value=(r=g.filter((r=>r!==o.detail.value)))!==null&&r!==void 0?r:[]}this.govChange.emit({value:this.value,component:i.root})};this.h=l(this.host)}validateGap(o){if(o){f(e,o,t.root)}}validateOrientation(o){if(o){f(m,o,t.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation);this.value=s(this.value)}componentDidRender(){v((()=>this.rerenderComponent()))}rerenderComponent(){this.host.querySelectorAll("gov-form-checkbox").forEach((o=>{if(!o.hasAttribute("listener-attached")){o.addEventListener("gov-change",this.handleChange)}o.setAttribute("listener-attached","true");o.checked=this.value.includes(o.value)}))}render(){return g(a,{key:"cfff4a643c778c0a573b08e6310045b8f0f0764b",gap:this.gap,class:this.h.classes(t.root),value:this.value},g("slot",{key:"6c9f6c553525f61c3aa95c834fd495d4dd6a8346"}))}get host(){return p(this)}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}};c.style=n;export{c as gov_form_checkbox_group};
2
+ //# sourceMappingURL=p-3cf20b56.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["govFormGroupCss","GovFormCheckboxGroup","constructor","hostRef","this","gap","undefined","orientation","value","handleChange","event","stopPropagation","propsValueToArray","Array","isArray","detail","checked","_a","filter","val","govChange","emit","component","FormCheckboxGroupClass","root","h","govHost","host","validateGap","newValue","validateProp","FormGroupSizes","FormGroupClass","validateOrientation","FormGroupOrientation","componentWillLoad","componentDidRender","tick","rerenderComponent","querySelectorAll","forEach","element","hasAttribute","addEventListener","setAttribute","includes","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-form/group/gov-form-group.scss?tag=gov-form-checkbox-group","../../../packages/core/src/components/gov-form/group/gov-form-checkbox-group.tsx"],"sourcesContent":["/* Form Group */\r\n\r\n@use \"sass:map\";\r\n@use \"../../../sass/mixins\" as mixin;\r\n@use \"./gov-form-group-variables\" as variable;\r\n\r\n\r\ngov-form-group, .gov-form-group,\r\ngov-form-radio-group, .gov-form-radio-group,\r\ngov-form-checkbox-group, .gov-form-checkbox-group {\r\n\t@include mixin.reset-margin();\r\n\t@include mixin.base(flex);\r\n\tflex-direction: column;\r\n\talign-items: flex-start;\r\n\t.gov-form-label__label {\r\n\t\tmargin: 0;\r\n\t}\r\n\r\n\t&[orientation=\"horizontal\"] {\r\n\t\tflex-direction: row;\r\n\t\tflex-wrap: wrap;\r\n\t\t.gov-form-label__label {\r\n\t\t\twhite-space: nowrap;\r\n\t\t}\r\n\t}\r\n\r\n\t// SIZES\r\n\t@each $size, $definitions in variable.$gaps {\r\n\t\t&[gap=\"#{$size}\"] {\r\n\t\t\tgap: map.get($definitions, \"gap\");\r\n\t\t}\r\n\t}\r\n}\r\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, Watch} from \"@stencil/core\"\r\nimport {\r\n\tFormCheckboxGroupClass,\r\n\tFormGroupClass,\r\n\tFormGroupOrientation,\r\n\tFormGroupOrientationType,\r\n\tFormGroupSizes,\r\n\tFormGroupSizesType\r\n} from \"./constants\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {govHost} from \"../../../helpers/Dom/template\"\r\nimport {validateProp} from \"../../../helpers/Validate/props\"\r\nimport {FormCheckboxEvent} from \"../checkbox/gov-form-checkbox.types\"\r\nimport {FormCheckboxGroupEvent} from \"./gov-form-group.types\"\r\nimport {tick} from \"../../../utils/stencil.utils\"\r\nimport {propsValueToArray} from \"../../../utils/array.utils\"\r\n\r\n@Component({\r\n\ttag: \"gov-form-checkbox-group\",\r\n\tstyleUrl: \"gov-form-group.scss\",\r\n})\r\nexport class GovFormCheckboxGroup {\r\n\tprivate readonly h: GovHost\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormGroupElement\r\n\t/**\r\n\t * Gap's size.\r\n\t */\r\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\r\n\t/**\r\n\t * Elements orientation\r\n\t */\r\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\r\n\t/**\r\n\t * Group's value\r\n\t */\r\n\t@Prop({attribute: \"value\", mutable: true}) value?: string | string[] = undefined\r\n\t/**\r\n /* Emitted when the checkbox change value.\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormCheckboxGroupEvent>\r\n\r\n\t@Watch(\"gap\")\r\n\tvalidateGap(newValue: string): void {\r\n\t\tif (newValue) {\r\n\t\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\r\n\t\t}\r\n\t}\r\n\r\n\t@Watch(\"orientation\")\r\n\tvalidateOrientation(newValue: string): void {\r\n\t\tif (newValue) {\r\n\t\t\tvalidateProp(FormGroupOrientation, newValue, FormGroupClass.root)\r\n\t\t}\r\n\t}\r\n\r\n\thandleChange = (event: CustomEvent<FormCheckboxEvent>) => {\r\n\t\tevent.stopPropagation()\r\n\t\tconst value = propsValueToArray<string[]>(this.value);\r\n\t\tif (!Array.isArray(value)) return;\r\n\t\tif (event.detail.checked) {\r\n\t\t\tthis.value = [...value, event.detail.value]\r\n\t\t} else {\r\n\t\t\tthis.value = value.filter((val) => val !== event.detail.value) ?? []\r\n\t\t}\r\n\t\tthis.govChange.emit({\r\n\t\t\tvalue: this.value,\r\n\t\t\tcomponent: FormCheckboxGroupClass.root,\r\n\t\t})\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateGap(this.gap)\r\n\t\tthis.validateOrientation(this.orientation)\r\n\t\tthis.value = propsValueToArray(this.value)\r\n\t}\r\n\r\n\tcomponentDidRender(): void {\r\n\t\ttick(() => this.rerenderComponent())\r\n\t}\r\n\r\n\trerenderComponent(): void {\r\n\t\tthis.host.querySelectorAll('gov-form-checkbox').forEach((element) => {\r\n\t\t\tif (!element.hasAttribute('listener-attached')) {\r\n\t\t\t\telement.addEventListener('gov-change', this.handleChange)\r\n\t\t\t}\r\n\t\t\telement.setAttribute('listener-attached', 'true')\r\n\t\t\telement.checked = this.value.includes(element.value);\r\n\t\t})\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)} value={this.value}>\r\n\t\t\t\t<slot></slot>\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"yWAAA,MAAMA,EAAkB,usE,MCqBXC,EAAoB,MAGhC,WAAAC,CAAAC,G,8CAQiBC,KAAGC,IAAwBC,UAI3BF,KAAWG,YAA8B,WAIfH,KAAKI,MAAuBF,UAoBvEF,KAAAK,aAAgB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as e}from"./p-DT2tslUp.js";import{c as a}from"./p-vN03FcXN.js";import{v as r}from"./p-NOJjz9dT.js";import{g as o,e as n,f as l}from"./p-B6CqPcY_.js";import{g as c,a as d,t as p}from"./p-BBOh2pxy.js";import{F as m}from"./p-5itQzbON.js";import{A as u,a as v}from"./p-Bz_RzYFb.js";import{i as f}from"./p-CzXeijOj.js";import"./p-CgDnDrq5.js";import"./p-CQvUntGY.js";import"./p-BcQO4NH2.js";import"./p-EeKNA85D.js";import"./p-U40vKHrs.js";import"./p-DYcNEwSZ.js";import"./p-DBXGhafv.js";const j=class{constructor(i){t(this,i);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=a("GovRadio");this.h=c(this.host);this.f=o(this.h)}validateSize(t){r(l,t,n.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 u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));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,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=t=>{if(this.noLabel){return i("label",{class:n.label},t)}return t};return i(h,{class:n.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:p(this.invalid)},t(i(m,null,i("input",Object.assign({class:n.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":p(this.required),"aria-invalid":p(this.invalid),"aria-disabled":p(this.disabled)})),i("span",null,i("slot",{name:"label"})))))}onClickHandler(t){t.stopPropagation()}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return e(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}};export{j as gov_form_radio};
2
- //# sourceMappingURL=p-0dbda4ab.entry.js.map
1
+ import{r as t,c as s,h as i,H as h,g as e}from"./p-ClISz4NF.js";import{c as a}from"./p-vN03FcXN.js";import{v as r}from"./p-NOJjz9dT.js";import{g as o,e as n,f as l}from"./p-B6CqPcY_.js";import{g as c,a as d,t as p}from"./p-CoD1xawt.js";import{F as m}from"./p-5itQzbON.js";import{A as u,a as v}from"./p-Bz_RzYFb.js";import{i as f}from"./p-CzXeijOj.js";import"./p-CgDnDrq5.js";import"./p-CQvUntGY.js";import"./p-BcQO4NH2.js";import"./p-EeKNA85D.js";import"./p-U40vKHrs.js";import"./p-DYcNEwSZ.js";import"./p-DBXGhafv.js";const j=class{constructor(i){t(this,i);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=a("GovRadio");this.h=c(this.host);this.f=o(this.h)}validateSize(t){r(l,t,n.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 u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));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,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=t=>{if(this.noLabel){return i("label",{class:n.label},t)}return t};return i(h,{class:n.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:p(this.invalid)},t(i(m,null,i("input",Object.assign({class:n.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":p(this.required),"aria-invalid":p(this.invalid),"aria-disabled":p(this.disabled)})),i("span",null,i("slot",{name:"label"})))))}onClickHandler(t){t.stopPropagation()}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return e(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}};export{j as gov_form_radio};
2
+ //# sourceMappingURL=p-46824842.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovFormRadio","constructor","hostRef","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\"\r\nimport {createID} from \"../../../utils/string.utils\"\r\nimport {validateProp} from \"../../../helpers/Validate/props\"\r\nimport {FormRadioClass, FormRadioSizes, FormRadioSizesType} from \"./constants\"\r\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\r\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\r\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\r\nimport {govForm} from \"../../../helpers/Dom/form\"\r\nimport Fragment from \"../../../helpers/Fragment\"\r\nimport {FormRadioEvent} from \"./gov-form-radio.types\"\r\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\r\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\r\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\r\n\r\n@Component({\r\n\ttag: \"gov-form-radio\",\r\n})\r\nexport class GovFormRadio {\r\n\tprivate readonly h: GovHost\r\n\tprivate f: GovForm\r\n\tprivate inputRef?: HTMLInputElement\r\n\tprivate attributeObserver: AttributeObserver\r\n\r\n\tprivate readonly radioId: string\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.radioId = createID(\"GovRadio\")\r\n\r\n\t\tthis.h = govHost(this.host)\r\n\t\tthis.f = govForm(this.h)\r\n\t}\r\n\r\n\t@Element() host: HTMLGovFormRadioElement\r\n\t/**\r\n\t * Value of radio\r\n\t */\r\n\t@Prop() readonly value: string\r\n\t/**\r\n\t * When you can't use the form label.\r\n\t */\r\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\r\n\t/**\r\n\t * Radio button state\r\n\t */\r\n\t@Prop({reflect: true, mutable: true}) checked = false\r\n\t/**\r\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\r\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\r\n\t */\r\n\t@Prop() readonly required: boolean = false\r\n\t/**\r\n\t * Makes the radio component disabled.\r\n\t * This prevents users from being able to interact with the radio, and conveys its inactive state to assistive technologies.\r\n\t */\r\n\t@Prop({reflect: true}) readonly disabled: boolean = false\r\n\t/**\r\n\t * Name of the radio.\r\n\t */\r\n\t@Prop() readonly name: string\r\n\t/**\r\n\t * Radio's size.\r\n\t */\r\n\t@Prop() readonly size?: FormRadioSizesType = \"m\"\r\n\t/**\r\n\t * Custom radio identifier.\r\n\t */\r\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\r\n\t/**\r\n\t * Indicates the entered value does not conform to the format expected by the application.\r\n\t */\r\n\t@Prop() readonly invalid: boolean\r\n\t/**\r\n\t * Emitted when the radio has focus.\r\n\t */\r\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormRadioEvent>\r\n\t/**\r\n\t * Emitted when the radio loses focus.\r\n\t */\r\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormRadioEvent>\r\n\t/**\r\n\t * Emitted when the radio change value.\r\n\t */\r\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioEvent>\r\n\r\n\t@Watch(\"size\")\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(FormRadioSizes, newValue, FormRadioClass.root)\r\n\t}\r\n\r\n\t@Watch(\"disabled\")\r\n\t@Watch(\"invalid\")\r\n\t@Watch(\"size\")\r\n\twatchControlAttrs(): void {\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\t@State() inheritedAttributes: Attributes = {}\r\n\r\n\tprivate passControlAttrs() {\r\n\t\tthis.f.passAttrToControl(\"size\", this.size)\r\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\r\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\r\n\t\tthis.f.passAttrToControl(\"type\", \"radio\")\r\n\t}\r\n\r\n\r\n\tcomponentWillLoad() {\r\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\r\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\r\n\t\t});\r\n\r\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\r\n\t}\r\n\r\n\tasync componentDidRender() {\r\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.radioId)\r\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\r\n\t\tthis.passControlAttrs()\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\tdisconnectedCallback() {\r\n\t\tthis.attributeObserver?.stopObserving();\r\n\t}\r\n\r\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\r\n\t\tthis.host.removeAttribute(attributeName)\r\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst wrapRadio = (children) => {\r\n\t\t\tif (this.noLabel) {\r\n\t\t\t\treturn <label class={FormRadioClass.label}>{children}</label>\r\n\t\t\t}\r\n\t\t\treturn children\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t<Host class={FormRadioClass.root} hydrated={this.hydrated} checked={this.checked} size={this.size}\r\n\t\t\t\t invalid={toBoolAttrIfDefined(this.invalid)}>\r\n\t\t\t\t{wrapRadio(\r\n\t\t\t\t\t<Fragment>\r\n\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\tclass={FormRadioClass.input}\r\n\t\t\t\t\t\t\tid={this.identifier || this.radioId}\r\n\t\t\t\t\t\t\ttype=\"radio\"\r\n\t\t\t\t\t\t\tvalue={this.value}\r\n\t\t\t\t\t\t\tname={this.name}\r\n\t\t\t\t\t\t\tchecked={this.checked}\r\n\t\t\t\t\t\t\tdisabled={this.disabled}\r\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\r\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\r\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\r\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\r\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\r\n\t\t\t\t\t\t\trequired={this.required}\r\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\r\n\t\t\t\t\t\t\taria-checked={this.checked}\r\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\r\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\r\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t<slot name=\"label\"/>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t</Fragment>,\r\n\t\t\t\t)}\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n\r\n\tprivate onClickHandler(e: PointerEvent) {\r\n\t\te.stopPropagation()\r\n\t}\r\n\r\n\tprivate onFocusHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govFocus.emit({\r\n\t\t\tcomponent: FormRadioClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\tchecked: this.checked,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onBlurHandler(e: FocusEvent) {\r\n\t\te.stopPropagation()\r\n\t\tthis.govBlur.emit({\r\n\t\t\tcomponent: FormRadioClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\tchecked: this.checked,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\tprivate onChangeHandler(e: Event) {\r\n\t\tthis.checked = (e.target as HTMLInputElement).checked\r\n\t\te.stopPropagation()\r\n\t\tthis.govChange.emit({\r\n\t\t\tcomponent: FormRadioClass.root,\r\n\t\t\tvalue: this.value,\r\n\t\t\tchecked: this.checked,\r\n\t\t\toriginalEvent: e,\r\n\t\t})\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the reference of the native element\r\n\t */\r\n\t@Method()\r\n\tasync getRef(): Promise<HTMLInputElement> {\r\n\t\treturn this.inputRef\r\n\t}\r\n}\r\n"],"mappings":"6gBAiBaA,EAAY,MASxB,WAAAC,CAAAC,G,gHAFQC,KAAQC,SAAG,MAiBqBD,KAAOE,QAAY,MAIrBF,KAAOG,QAAG,MAK/BH,KAAQI,SAAY,MAKLJ,KAAQK,SAAY,MAQnCL,KAAIM,KAAwB,IAkCpCN,KAAmBO,oBAAe,GAtE1CP,KAAKQ,QAAUC,EAAS,YAExBT,KAAKU,EAAIC,EAAQX,KAAKY,MACtBZ,KAAKa,EAAIC,EAAQd,KAAKU,EACtB,CAuDD,YAA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,Q","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as s,c as t,h as a,H as i,g as e}from"./p-ClISz4NF.js";import{v as r}from"./p-NOJjz9dT.js";import{S as o,a as h,b as p}from"./p-C3R1T_pg.js";import{g as c}from"./p-CoD1xawt.js";import"./p-CgDnDrq5.js";import"./p-CQvUntGY.js";import"./p-U40vKHrs.js";import"./p-BcQO4NH2.js";const n=class{constructor(a){s(this,a);this.govChange=t(this,"gov-change");this.hydrated=false;this.size="m";this.h=c(this.host)}validateSize(s){r(p,s,h.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(o.root).forEach((s=>{s.setAttribute("size",this.size);s.addEventListener("gov-change",(s=>{s.stopPropagation();this.govChange.emit(s.detail)}))}))}connectedCallback(){this.hydrated=true}render(){return a(i,{key:"92d3349a28b4330a3bea5293853612d0a0b96069",class:this.h.classes(h.root),role:"list",size:this.size,hydrated:this.hydrated},a("slot",{key:"a5b65c3a06c63f826d6c968c69f1452abe0408af"}))}get host(){return e(this)}static get watchers(){return{size:["validateSize"]}}};export{n as gov_stepper};
2
+ //# sourceMappingURL=p-46effc25.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovStepper","constructor","hostRef","this","hydrated","size","h","govHost","host","validateSize","newValue","validateProp","StepperSizes","StepperClass","root","componentWillLoad","componentDidLoad","querySelectorAll","StepperItemClass","forEach","child","setAttribute","addEventListener","e","stopPropagation","govChange","emit","detail","connectedCallback","render","Host","key","class","classes","role"],"sources":["../../../packages/core/src/components/gov-stepper/stepper/gov-stepper.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Prop, Watch } from '@stencil/core'\r\nimport { validateProp } from '../../../helpers/Validate/props'\r\nimport { StepperClass, StepperItemClass, StepperSizes, StepperSizesType } from './constants'\r\nimport { GovStepperItemCustomEvent } from '../../../components'\r\nimport { GovStepperItemChangeEvent } from './gov-stepper-item.d'\r\nimport { GovHost } from '../../../helpers/Dom/template.types'\r\nimport { govHost } from '../../../helpers/Dom/template'\r\n\r\n@Component({\r\n\ttag: 'gov-stepper',\r\n})\r\nexport class GovStepper {\r\n\tprivate h: GovHost\r\n\tprivate hydrated = false\r\n\r\n\tconstructor() {\r\n\t\tthis.h = govHost(this.host)\r\n\t}\r\n\r\n\t@Element() readonly host: HTMLGovStepperElement\r\n\t/**\r\n\t * Size of stepper\r\n\t */\r\n\t@Prop() readonly size?: StepperSizesType = 'm'\r\n\t/**\r\n\t * Called when the Stepper state changes\r\n\t */\r\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovStepperItemChangeEvent>\r\n\r\n\t@Watch('size')\r\n\tvalidateSize(newValue: string): void {\r\n\t\tvalidateProp(StepperSizes, newValue, StepperClass.root)\r\n\t}\r\n\r\n\tcomponentWillLoad(): void {\r\n\t\tthis.validateSize(this.size)\r\n\t}\r\n\r\n\tcomponentDidLoad() {\r\n\t\tthis.host.querySelectorAll(StepperItemClass.root).forEach((child: HTMLGovStepperItemElement) => {\r\n\t\t\tchild.setAttribute('size', this.size)\r\n\t\t\tchild.addEventListener('gov-change', (e: GovStepperItemCustomEvent<GovStepperItemChangeEvent>) => {\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t\tthis.govChange.emit(e.detail)\r\n\t\t\t})\r\n\t\t})\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tthis.hydrated = true\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<Host class={this.h.classes(StepperClass.root)} role=\"list\" size={this.size} hydrated={this.hydrated}>\r\n\t\t\t\t<slot />\r\n\t\t\t</Host>\r\n\t\t)\r\n\t}\r\n}\r\n"],"mappings":"gSAWaA,EAAU,MAItB,WAAAC,CAAAC,G,8CAFQC,KAAQC,SAAG,MAUFD,KAAIE,KAAsB,IAP1CF,KAAKG,EAAIC,EAAQJ,KAAKK,KACtB,CAaD,YAAAC,CAAaC,GACZC,EAAaC,EAAcF,EAAUG,EAAaC,K,CAGnD,iBAAAC,GACCZ,KAAKM,aAAaN,KAAKE,K,CAGxB,gBAAAW,GACCb,KAAKK,KAAKS,iBAAiBC,EAAiBJ,MAAMK,SAASC,IAC1DA,EAAMC,aAAa,OAAQlB,KAAKE,MAChCe,EAAME,iBAAiB,cAAeC,IACrCA,EAAEC,kBACFrB,KAAKsB,UAAUC,KAAKH,EAAEI,OAAO,GAC5B,G,CAIJ,iBAAAC,GACCzB,KAAKC,SAAW,I,CAGjB,MAAAyB,GACC,OACCvB,EAACwB,EAAI,CAAAC,IAAA,2CAACC,MAAO7B,KAAKG,EAAE2B,QAAQpB,EAAaC,MAAOoB,KAAK,OAAO7B,KAAMF,KAAKE,KAAMD,SAAUD,KAAKC,UAC3FE,EAAQ,QAAAyB,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as s,c as t,h as i,H as e,g as a}from"./p-DT2tslUp.js";import{v as r}from"./p-CDIRBJsi.js";import{c as h}from"./p-CgDnDrq5.js";import{g as o}from"./p-BBOh2pxy.js";import{t as c}from"./p-Cjg0wpDG.js";import"./p-vN03FcXN.js";import"./p-DNztiAH0.js";import"./p-CQvUntGY.js";const n={root:"gov-breadcrumbs"};const p=class{constructor(i){s(this,i);this.govChange=t(this,"gov-change");this.inited=false;this.collapsible=false;this.isExpanded=false;this.accessibleToggleLabel="Zobrazit či skrýt navigaci";this.expanded=false;this.toggleOption=false;this.h=o(this.host)}async componentDidRender(){this.scheduleContentVerification();if(h()){c((()=>this.validateAccessibility()))}}scheduleContentVerification(){if(this.inited)return;this.inited=true;c((()=>{this.calculateWidthOfItems();this.inited=false}))}calculateWidthOfItems(){const s=this.host.getBoundingClientRect().width;let t=0;this.host.querySelectorAll("li").forEach((s=>{t+=s.getBoundingClientRect().width}));this.toggleOption=t>s}render(){return i(e,{key:"dadd8de710050476be68e3f6fa0b317d6ccedfc1",class:this.h.classes(n.root),expanded:this.expanded},i("nav",{key:"468a3b605408c943421243024733b0381809f931","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy},i("slot",{key:"2c9f85b826c8c54340ab5abba51c1861282c9cb7"})),this.toggleOption?i("gov-button",{size:"xs",color:"primary",type:"base","aria-label":this.accessibleToggleLabel,"aria-pressed":this.expanded,"aria-expanded":this.expanded,"on-gov-click":()=>this.expanded=!this.expanded},i("gov-icon",{name:this.expanded?"chevron-up":"chevron-down",type:"components"})):null)}async validateAccessibility(){r(this.accessibleLabel,this.accessibleLabelledBy,n.root,this.host);r(this.accessibleToggleLabel,undefined,n.root,this.host)}get host(){return a(this)}};export{p as gov_breadcrumbs};
2
- //# sourceMappingURL=p-19a408eb.entry.js.map
1
+ import{r as s,c as t,h as i,H as e,g as a}from"./p-ClISz4NF.js";import{v as r}from"./p-CDIRBJsi.js";import{c as o}from"./p-CgDnDrq5.js";import{g as h}from"./p-CoD1xawt.js";import{t as c}from"./p-Cjg0wpDG.js";import"./p-vN03FcXN.js";import"./p-DNztiAH0.js";import"./p-CQvUntGY.js";const n={root:"gov-breadcrumbs"};const l=class{constructor(i){s(this,i);this.govChange=t(this,"gov-change");this.inited=false;this.collapsible=false;this.isExpanded=false;this.accessibleToggleLabel="Zobrazit či skrýt navigaci";this.expanded=false;this.toggleOption=false;this.h=h(this.host)}async componentDidRender(){this.scheduleContentVerification();if(o()){c((()=>this.validateAccessibility()))}}scheduleContentVerification(){if(this.inited)return;this.inited=true;c((()=>{this.calculateWidthOfItems();this.inited=false}))}calculateWidthOfItems(){const s=this.host.getBoundingClientRect().width;let t=0;this.host.querySelectorAll("li").forEach((s=>{t+=s.getBoundingClientRect().width}));this.toggleOption=t>s}render(){return i(e,{key:"5a2d10c3705a0d19458ea76e65ab6e0449eb620d",class:this.h.classes(n.root),expanded:this.expanded},i("nav",{key:"41b98c6ee95ea397f9802f5ac120d2674859cb4d","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy},i("slot",{key:"10fed9d58caa49017c34665e4b711252854040b7"})),this.toggleOption?i("gov-button",{size:"xs",color:"primary",type:"base","aria-label":this.accessibleToggleLabel,"aria-pressed":this.expanded,"aria-expanded":this.expanded,"on-gov-click":()=>this.expanded=!this.expanded},i("gov-icon",{name:this.expanded?"chevron-up":"chevron-down",type:"components"})):null)}async validateAccessibility(){r(this.accessibleLabel,this.accessibleLabelledBy,n.root,this.host);r(this.accessibleToggleLabel,undefined,n.root,this.host)}get host(){return a(this)}};export{l as gov_breadcrumbs};
2
+ //# sourceMappingURL=p-495e25d8.entry.js.map