@gov-design-system-ce/components 4.1.0 → 4.1.2

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 (510) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
  3. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-card.cjs.entry.js +9 -6
  5. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-chip.cjs.entry.js +2 -2
  7. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  8. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  9. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  10. package/dist/cjs/gov-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  12. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  13. package/dist/cjs/{gov-flex_4.cjs.entry.js → gov-flex_3.cjs.entry.js} +57 -57
  14. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -0
  15. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
  16. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +2 -2
  18. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  19. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  21. package/dist/cjs/gov-form-file.cjs.entry.js +2 -3
  22. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  23. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  24. package/dist/cjs/gov-form-input_2.cjs.entry.js +6 -6
  25. package/dist/cjs/gov-form-label.cjs.entry.js +27 -0
  26. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
  27. package/dist/cjs/gov-form-multi-select.cjs.entry.js +2 -2
  28. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  29. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  30. package/dist/cjs/gov-form-radio-group.cjs.entry.js +2 -2
  31. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  33. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  34. package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
  35. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  37. package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
  38. package/dist/cjs/gov-grid.cjs.entry.js +1 -1
  39. package/dist/cjs/gov-infobar.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  41. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  42. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-link.cjs.entry.js +1 -1
  44. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  45. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  46. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  47. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  48. package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
  49. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  50. package/dist/cjs/gov-tabs.cjs.entry.js +1 -1
  51. package/dist/cjs/gov-tag.cjs.entry.js +2 -1
  52. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  54. package/dist/cjs/gov-tiles.cjs.entry.js +1 -1
  55. package/dist/cjs/gov-toast.cjs.entry.js +1 -1
  56. package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
  57. package/dist/cjs/gov-tooltip.cjs.entry.js +2 -2
  58. package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
  59. package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
  60. package/dist/cjs/index-7ff4447c.js +6 -2
  61. package/dist/cjs/loader.cjs.js +1 -1
  62. package/dist/collection/components/gov-attachments/gov-attachments-item.css +2 -7
  63. package/dist/collection/components/gov-card/constants.js +7 -4
  64. package/dist/collection/components/gov-card/constants.js.map +1 -1
  65. package/dist/collection/components/gov-card/gov-card.js +16 -10
  66. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  67. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  68. package/dist/collection/components/gov-container/gov-container.js +1 -1
  69. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  70. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  71. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  72. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  73. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  74. package/dist/collection/components/gov-flex/constants.js +2 -0
  75. package/dist/collection/components/gov-flex/constants.js.map +1 -1
  76. package/dist/collection/components/gov-flex/gov-flex.js +33 -9
  77. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  78. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +2 -2
  79. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  80. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +2 -2
  81. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  82. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  83. package/dist/collection/components/gov-form/file/gov-form-file.js +3 -4
  84. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  85. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  86. package/dist/collection/components/gov-form/group/gov-form-group.css +3 -8
  87. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  88. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  89. package/dist/collection/components/gov-form/input/gov-form-input.js +5 -5
  90. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  91. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  92. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +3 -3
  93. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  94. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  95. package/dist/collection/components/gov-form/radio/gov-form-radio.js +1 -1
  96. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  97. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  98. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  99. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  100. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -2
  101. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  102. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  103. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  104. package/dist/collection/components/gov-icon/gov-icon.js +3 -4
  105. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  106. package/dist/collection/components/gov-icon/list.js +6 -0
  107. package/dist/collection/components/gov-icon/list.js.map +1 -1
  108. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  109. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  110. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  111. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  112. package/dist/collection/components/gov-link/gov-link.js +1 -1
  113. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  114. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  115. package/dist/collection/components/gov-message/gov-message.js +1 -1
  116. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  117. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  118. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  119. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  120. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  121. package/dist/collection/components/gov-tag/gov-tag.js +20 -1
  122. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  123. package/dist/collection/components/gov-theme-switch/constants.js +0 -2
  124. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  125. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +32 -9
  126. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  127. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  128. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  129. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  130. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  131. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  132. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  133. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  134. package/dist/collection/helpers/Dom/document.js +18 -0
  135. package/dist/collection/helpers/Dom/document.js.map +1 -1
  136. package/dist/collection/pages/Card.js +22 -37
  137. package/dist/collection/pages/Card.js.map +1 -1
  138. package/dist/collection/pages/Flex.js +62 -0
  139. package/dist/collection/pages/Flex.js.map +1 -0
  140. package/dist/collection/pages/Forms.js +5 -5
  141. package/dist/collection/pages/Forms.js.map +1 -1
  142. package/dist/collection/pages/Tag.js +30 -23
  143. package/dist/collection/pages/Tag.js.map +1 -1
  144. package/dist/components/gov-accordion-item.js +1 -1
  145. package/dist/components/gov-accordion.js +1 -1
  146. package/dist/components/gov-attachments-item.js +1 -1
  147. package/dist/components/gov-attachments.js +1 -1
  148. package/dist/components/gov-backdrop.js +1 -1
  149. package/dist/components/gov-breadcrumbs.js +1 -1
  150. package/dist/components/gov-button.js +1 -1
  151. package/dist/components/gov-card.js +1 -1
  152. package/dist/components/gov-card.js.map +1 -1
  153. package/dist/components/gov-chip.js +1 -1
  154. package/dist/components/gov-container.js +1 -1
  155. package/dist/components/gov-control-group.js +1 -1
  156. package/dist/components/gov-cookiebar.js +1 -1
  157. package/dist/components/gov-dialog.js +1 -1
  158. package/dist/components/gov-empty.js +1 -1
  159. package/dist/components/gov-error-code.js +1 -1
  160. package/dist/components/gov-flex.js +1 -1
  161. package/dist/components/gov-flex.js.map +1 -1
  162. package/dist/components/gov-form-autocomplete.js +1 -1
  163. package/dist/components/gov-form-checkbox-group.js +1 -1
  164. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  165. package/dist/components/gov-form-checkbox.js +1 -1
  166. package/dist/components/gov-form-checkbox.js.map +1 -1
  167. package/dist/components/gov-form-control.js +1 -1
  168. package/dist/components/gov-form-file.js +1 -1
  169. package/dist/components/gov-form-file.js.map +1 -1
  170. package/dist/components/gov-form-group.js +1 -1
  171. package/dist/components/gov-form-input.js +1 -1
  172. package/dist/components/gov-form-label.js +1 -1
  173. package/dist/components/gov-form-label.js.map +1 -1
  174. package/dist/components/gov-form-message.js +1 -1
  175. package/dist/components/gov-form-multi-select.js +1 -1
  176. package/dist/components/gov-form-multi-select.js.map +1 -1
  177. package/dist/components/gov-form-password-power.js +1 -1
  178. package/dist/components/gov-form-radio-group.js +1 -1
  179. package/dist/components/gov-form-radio-group.js.map +1 -1
  180. package/dist/components/gov-form-radio.js +1 -1
  181. package/dist/components/gov-form-radio.js.map +1 -1
  182. package/dist/components/gov-form-search.js +1 -1
  183. package/dist/components/gov-form-select.js +1 -1
  184. package/dist/components/gov-form-switch.js +1 -1
  185. package/dist/components/gov-form-switch.js.map +1 -1
  186. package/dist/components/gov-grid-item.js +1 -1
  187. package/dist/components/gov-grid.js +1 -1
  188. package/dist/components/gov-icon.js +1 -1
  189. package/dist/components/gov-infobar.js +1 -1
  190. package/dist/components/gov-layout-column.js +1 -1
  191. package/dist/components/gov-layout.js +1 -1
  192. package/dist/components/gov-lifecycle.js +1 -1
  193. package/dist/components/gov-link.js +1 -1
  194. package/dist/components/gov-loading.js +1 -1
  195. package/dist/components/gov-loading.js.map +1 -1
  196. package/dist/components/gov-message.js +1 -1
  197. package/dist/components/gov-pagination.js +1 -1
  198. package/dist/components/gov-skeleton.js +1 -1
  199. package/dist/components/gov-spacer.js +1 -1
  200. package/dist/components/gov-stepper-item.js +1 -1
  201. package/dist/components/gov-stepper.js +1 -1
  202. package/dist/components/gov-tabs-item.js +1 -1
  203. package/dist/components/gov-tabs.js +1 -1
  204. package/dist/components/gov-tag.js +1 -1
  205. package/dist/components/gov-tag.js.map +1 -1
  206. package/dist/components/gov-theme-switch.js +1 -1
  207. package/dist/components/gov-theme-switch.js.map +1 -1
  208. package/dist/components/gov-tile.js +1 -1
  209. package/dist/components/gov-tiles.js +1 -1
  210. package/dist/components/gov-toast.js +1 -1
  211. package/dist/components/gov-tooltip-content.js +1 -1
  212. package/dist/components/gov-tooltip.js +1 -1
  213. package/dist/components/gov-tooltip.js.map +1 -1
  214. package/dist/components/gov-wizard-item.js +1 -1
  215. package/dist/components/gov-wizard.js +1 -1
  216. package/dist/components/p-0b3574c2.js +2 -0
  217. package/dist/components/p-18ab0d24.js +2 -0
  218. package/dist/components/p-18ab0d24.js.map +1 -0
  219. package/dist/components/p-28776006.js +2 -0
  220. package/dist/components/{p-859a4f0d.js.map → p-28776006.js.map} +1 -1
  221. package/dist/components/p-40c2fb42.js +2 -0
  222. package/dist/components/{p-dc952cc2.js.map → p-40c2fb42.js.map} +1 -1
  223. package/dist/components/{p-2b87c27b.js → p-48c4d5c8.js} +2 -2
  224. package/dist/components/p-48c4d5c8.js.map +1 -0
  225. package/dist/components/{p-4149f195.js → p-73938936.js} +2 -2
  226. package/dist/components/{p-5952a5d0.js → p-7be2301a.js} +2 -2
  227. package/dist/components/{p-227eb30d.js → p-80dad64b.js} +2 -2
  228. package/dist/components/{p-7d4f2214.js → p-b25af2cf.js} +2 -2
  229. package/dist/components/{p-dfb5794a.js → p-b97d8edd.js} +2 -2
  230. package/dist/components/p-c438a723.js +2 -0
  231. package/dist/components/{p-45097b4c.js → p-ce90ff14.js} +2 -2
  232. package/dist/components/p-ce90ff14.js.map +1 -0
  233. package/dist/components/{p-929ebfb5.js → p-d962bf44.js} +2 -2
  234. package/dist/{core/p-20c2203a.js → components/p-e8ec030e.js} +2 -2
  235. package/dist/core/core.css +438 -273
  236. package/dist/core/core.esm.js +1 -1
  237. package/dist/core/core.esm.js.map +1 -1
  238. package/dist/core/p-0b3574c2.js +2 -0
  239. package/dist/core/{p-74458da3.entry.js → p-0dac0792.entry.js} +2 -2
  240. package/dist/core/p-0dac0792.entry.js.map +1 -0
  241. package/dist/core/{p-951823cb.entry.js → p-12d1e5bc.entry.js} +2 -2
  242. package/dist/core/p-182d03c1.entry.js +2 -0
  243. package/dist/core/p-2496f2a5.entry.js +2 -0
  244. package/dist/core/{p-a218e2eb.entry.js.map → p-2496f2a5.entry.js.map} +1 -1
  245. package/dist/core/{p-c52afdfc.js → p-29ac15d2.js} +2 -2
  246. package/dist/core/p-29d16111.entry.js +2 -0
  247. package/dist/core/{p-019e967c.entry.js.map → p-29d16111.entry.js.map} +1 -1
  248. package/dist/core/p-2b51b8e8.entry.js +2 -0
  249. package/dist/core/p-2b51b8e8.entry.js.map +1 -0
  250. package/dist/core/p-2bde147f.entry.js +2 -0
  251. package/dist/core/{p-bdc51179.entry.js.map → p-2bde147f.entry.js.map} +1 -1
  252. package/dist/core/{p-cb557873.entry.js → p-2e21a994.entry.js} +2 -2
  253. package/dist/core/p-2e21a994.entry.js.map +1 -0
  254. package/dist/core/p-3df6c6cd.entry.js +2 -0
  255. package/dist/core/p-436e7690.entry.js +2 -0
  256. package/dist/core/p-467f778b.entry.js +2 -0
  257. package/dist/core/p-4d81039c.entry.js +2 -0
  258. package/dist/core/p-520ac994.entry.js +2 -0
  259. package/dist/core/{p-f1056a83.entry.js.map → p-520ac994.entry.js.map} +1 -1
  260. package/dist/core/p-53fa7648.entry.js +2 -0
  261. package/dist/core/{p-c20fe3da.entry.js.map → p-53fa7648.entry.js.map} +1 -1
  262. package/dist/core/{p-7d6073aa.entry.js → p-581c8075.entry.js} +2 -2
  263. package/dist/core/{p-e2517a72.entry.js → p-5a92b9d9.entry.js} +2 -2
  264. package/dist/core/{p-8506b611.js → p-5fbde4f9.js} +2 -2
  265. package/dist/core/{p-7bf52eb9.entry.js → p-605e72b1.entry.js} +2 -2
  266. package/dist/core/{p-1ac9544f.entry.js → p-64dc1cdb.entry.js} +2 -2
  267. package/dist/core/p-64dc1cdb.entry.js.map +1 -0
  268. package/dist/core/{p-6454af62.entry.js → p-6603e3df.entry.js} +2 -2
  269. package/dist/core/p-6f260a90.entry.js +2 -0
  270. package/dist/core/{p-fca60e04.entry.js.map → p-6f260a90.entry.js.map} +1 -1
  271. package/dist/core/p-71dc8171.entry.js +2 -0
  272. package/dist/core/{p-443a813a.entry.js.map → p-71dc8171.entry.js.map} +1 -1
  273. package/dist/core/p-87562d9e.entry.js +2 -0
  274. package/dist/core/{p-773f71f6.entry.js.map → p-87562d9e.entry.js.map} +1 -1
  275. package/dist/core/p-88b69d30.entry.js +2 -0
  276. package/dist/core/{p-bc966c46.entry.js.map → p-88b69d30.entry.js.map} +1 -1
  277. package/dist/core/{p-fe6fed11.entry.js → p-8ece244d.entry.js} +2 -2
  278. package/dist/{components/p-45097b4c.js.map → core/p-8ece244d.entry.js.map} +1 -1
  279. package/dist/core/{p-db22d51c.entry.js → p-913331e8.entry.js} +2 -2
  280. package/dist/core/p-979b03eb.entry.js +2 -0
  281. package/dist/core/{p-b1efeb41.entry.js.map → p-979b03eb.entry.js.map} +1 -1
  282. package/dist/core/p-97c65665.entry.js +2 -0
  283. package/dist/core/{p-9da91318.entry.js.map → p-97c65665.entry.js.map} +1 -1
  284. package/dist/core/p-97e8b4b3.entry.js +2 -0
  285. package/dist/core/{p-439b66a5.entry.js.map → p-97e8b4b3.entry.js.map} +1 -1
  286. package/dist/core/{p-d65cef62.entry.js → p-abefa59b.entry.js} +2 -2
  287. package/dist/core/p-aeab9c1a.entry.js +2 -0
  288. package/dist/core/{p-c4ffcc37.entry.js → p-af9fe91a.entry.js} +2 -2
  289. package/dist/core/{p-d24710ff.entry.js → p-b0d1073c.entry.js} +2 -2
  290. package/dist/core/p-b245d627.entry.js +2 -0
  291. package/dist/core/{p-ed1131cb.entry.js.map → p-b245d627.entry.js.map} +1 -1
  292. package/dist/core/p-b2abc2fc.entry.js +2 -0
  293. package/dist/core/p-b2abc2fc.entry.js.map +1 -0
  294. package/dist/core/{p-0be19b89.entry.js → p-b4cf97ab.entry.js} +2 -2
  295. package/dist/core/p-b766810e.entry.js +2 -0
  296. package/dist/core/p-b766810e.entry.js.map +1 -0
  297. package/dist/core/p-bc0ed2c1.entry.js +2 -0
  298. package/dist/core/{p-dec3f948.entry.js → p-bf8529f8.entry.js} +2 -2
  299. package/dist/core/{p-783a6b5b.entry.js → p-cd988543.entry.js} +2 -2
  300. package/dist/core/p-cd988543.entry.js.map +1 -0
  301. package/dist/core/p-d2b11492.entry.js +2 -0
  302. package/dist/core/{p-f1fa5e1e.entry.js.map → p-d2b11492.entry.js.map} +1 -1
  303. package/dist/core/p-d3f7d3d5.entry.js +2 -0
  304. package/dist/core/p-d6e972c0.entry.js +2 -0
  305. package/dist/core/p-d952e56f.entry.js +2 -0
  306. package/dist/{components/p-20c2203a.js → core/p-e8ec030e.js} +2 -2
  307. package/dist/core/p-eaa83b2f.entry.js +2 -0
  308. package/dist/core/p-ebc318d7.entry.js +2 -0
  309. package/dist/core/p-ebeb1a03.entry.js +2 -0
  310. package/dist/core/{p-3fc3c26b.entry.js.map → p-ebeb1a03.entry.js.map} +1 -1
  311. package/dist/core/p-ee0f3bd9.entry.js +2 -0
  312. package/dist/core/p-ee0f3bd9.entry.js.map +1 -0
  313. package/dist/core/p-ee7af1ab.entry.js +2 -0
  314. package/dist/core/{p-8701c28e.entry.js.map → p-ee7af1ab.entry.js.map} +1 -1
  315. package/dist/core/{p-f7a4da9d.entry.js → p-eeee2325.entry.js} +2 -2
  316. package/dist/core/p-f83b9da5.entry.js +2 -0
  317. package/dist/core/{p-2c59483f.entry.js.map → p-f83b9da5.entry.js.map} +1 -1
  318. package/dist/core/p-fa161f10.entry.js +2 -0
  319. package/dist/core/{p-e834ee73.entry.js → p-fa5b72de.entry.js} +2 -2
  320. package/dist/core/p-fb8c019a.entry.js +2 -0
  321. package/dist/core/p-fb8c019a.entry.js.map +1 -0
  322. package/dist/core/p-ff609d0e.entry.js +2 -0
  323. package/dist/esm/core.js +3 -3
  324. package/dist/esm/gov-accordion-item.entry.js +3 -3
  325. package/dist/esm/gov-accordion.entry.js +3 -3
  326. package/dist/esm/gov-attachments_3.entry.js +6 -6
  327. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  328. package/dist/esm/gov-backdrop.entry.js +3 -3
  329. package/dist/esm/gov-breadcrumbs.entry.js +3 -3
  330. package/dist/esm/gov-button.entry.js +4 -4
  331. package/dist/esm/gov-card.entry.js +12 -9
  332. package/dist/esm/gov-card.entry.js.map +1 -1
  333. package/dist/esm/gov-chip.entry.js +5 -5
  334. package/dist/esm/gov-container.entry.js +2 -2
  335. package/dist/esm/gov-control-group.entry.js +4 -4
  336. package/dist/esm/gov-cookiebar.entry.js +2 -2
  337. package/dist/esm/gov-dialog.entry.js +4 -4
  338. package/dist/esm/gov-dropdown.entry.js +1 -1
  339. package/dist/esm/gov-empty.entry.js +4 -4
  340. package/dist/esm/gov-error-code.entry.js +2 -2
  341. package/dist/esm/{gov-flex_4.entry.js → gov-flex_3.entry.js} +61 -60
  342. package/dist/esm/gov-flex_3.entry.js.map +1 -0
  343. package/dist/esm/gov-form-autocomplete.entry.js +4 -4
  344. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  345. package/dist/esm/gov-form-checkbox-group.entry.js +5 -5
  346. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  347. package/dist/esm/gov-form-checkbox.entry.js +3 -3
  348. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  349. package/dist/esm/gov-form-control.entry.js +2 -2
  350. package/dist/esm/gov-form-file.entry.js +3 -4
  351. package/dist/esm/gov-form-file.entry.js.map +1 -1
  352. package/dist/esm/gov-form-group.entry.js +4 -4
  353. package/dist/esm/gov-form-input_2.entry.js +9 -9
  354. package/dist/esm/gov-form-label.entry.js +23 -0
  355. package/dist/esm/gov-form-label.entry.js.map +1 -0
  356. package/dist/esm/gov-form-multi-select.entry.js +5 -5
  357. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  358. package/dist/esm/gov-form-password-power.entry.js +2 -2
  359. package/dist/esm/gov-form-radio-group.entry.js +5 -5
  360. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  361. package/dist/esm/gov-form-radio.entry.js +3 -3
  362. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  363. package/dist/esm/gov-form-search.entry.js +2 -2
  364. package/dist/esm/gov-form-select.entry.js +5 -5
  365. package/dist/esm/gov-form-select.entry.js.map +1 -1
  366. package/dist/esm/gov-form-switch.entry.js +3 -3
  367. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  368. package/dist/esm/gov-grid-item.entry.js +2 -2
  369. package/dist/esm/gov-grid.entry.js +2 -2
  370. package/dist/esm/gov-infobar.entry.js +5 -5
  371. package/dist/esm/gov-layout-column.entry.js +2 -2
  372. package/dist/esm/gov-layout.entry.js +2 -2
  373. package/dist/esm/gov-lifecycle.entry.js +2 -2
  374. package/dist/esm/gov-link.entry.js +4 -4
  375. package/dist/esm/gov-loading.entry.js +4 -4
  376. package/dist/esm/gov-message.entry.js +4 -4
  377. package/dist/esm/gov-pagination.entry.js +3 -3
  378. package/dist/esm/gov-spacer.entry.js +4 -4
  379. package/dist/esm/gov-stepper-item.entry.js +4 -4
  380. package/dist/esm/gov-stepper.entry.js +4 -4
  381. package/dist/esm/gov-tabs-item.entry.js +2 -2
  382. package/dist/esm/gov-tabs.entry.js +4 -4
  383. package/dist/esm/gov-tag.entry.js +5 -4
  384. package/dist/esm/gov-tag.entry.js.map +1 -1
  385. package/dist/esm/gov-tile.entry.js +2 -2
  386. package/dist/esm/gov-tiles.entry.js +2 -2
  387. package/dist/esm/gov-toast.entry.js +4 -4
  388. package/dist/esm/gov-tooltip-content.entry.js +2 -2
  389. package/dist/esm/gov-tooltip.entry.js +5 -5
  390. package/dist/esm/gov-wizard-item.entry.js +5 -5
  391. package/dist/esm/gov-wizard.entry.js +5 -5
  392. package/dist/esm/{gov.log-066c3139.js → gov.log-6b64cda6.js} +2 -2
  393. package/dist/esm/{gov.log-066c3139.js.map → gov.log-6b64cda6.js.map} +1 -1
  394. package/dist/esm/{index-c263e031.js → index-8dc58a1a.js} +8 -4
  395. package/dist/esm/{index-c263e031.js.map → index-8dc58a1a.js.map} +1 -1
  396. package/dist/esm/loader.js +3 -3
  397. package/dist/esm/{props-fb6587c3.js → props-9d3c7ac1.js} +2 -2
  398. package/dist/esm/{props-fb6587c3.js.map → props-9d3c7ac1.js.map} +1 -1
  399. package/dist/esm/{wcag-de9a3dc6.js → wcag-253a4421.js} +2 -2
  400. package/dist/esm/{wcag-de9a3dc6.js.map → wcag-253a4421.js.map} +1 -1
  401. package/dist/hydrate/index.js +147 -123
  402. package/dist/hydrate/index.mjs +147 -123
  403. package/dist/types/components/gov-card/constants.d.ts +8 -4
  404. package/dist/types/components/gov-card/gov-card.d.ts +3 -2
  405. package/dist/types/components/gov-flex/constants.d.ts +4 -0
  406. package/dist/types/components/gov-flex/gov-flex.d.ts +9 -7
  407. package/dist/types/components/gov-icon/gov-icon.d.ts +1 -2
  408. package/dist/types/components/gov-tag/gov-tag.d.ts +4 -0
  409. package/dist/types/components/gov-theme-switch/constants.d.ts +0 -2
  410. package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +8 -4
  411. package/dist/types/components.d.ts +50 -22
  412. package/dist/types/helpers/Dom/document.d.ts +1 -0
  413. package/dist/types/pages/Flex.d.ts +3 -0
  414. package/package.json +4 -4
  415. package/dist/cjs/gov-flex_4.cjs.entry.js.map +0 -1
  416. package/dist/components/p-2b87c27b.js.map +0 -1
  417. package/dist/components/p-31a99bfc.js +0 -2
  418. package/dist/components/p-68a1aaec.js +0 -2
  419. package/dist/components/p-68a1aaec.js.map +0 -1
  420. package/dist/components/p-859a4f0d.js +0 -2
  421. package/dist/components/p-a2435993.js +0 -2
  422. package/dist/components/p-dc952cc2.js +0 -2
  423. package/dist/components/p-f44899e1.js +0 -2
  424. package/dist/components/p-f44899e1.js.map +0 -1
  425. package/dist/core/p-00d153bf.entry.js +0 -2
  426. package/dist/core/p-019e967c.entry.js +0 -2
  427. package/dist/core/p-1abdcb62.entry.js +0 -2
  428. package/dist/core/p-1ac9544f.entry.js.map +0 -1
  429. package/dist/core/p-1b3c808d.entry.js +0 -2
  430. package/dist/core/p-1b3c808d.entry.js.map +0 -1
  431. package/dist/core/p-22fa411d.entry.js +0 -2
  432. package/dist/core/p-2c290fe5.entry.js +0 -2
  433. package/dist/core/p-2c59483f.entry.js +0 -2
  434. package/dist/core/p-30eaeeec.entry.js +0 -2
  435. package/dist/core/p-3fc3c26b.entry.js +0 -2
  436. package/dist/core/p-40d764ac.entry.js +0 -2
  437. package/dist/core/p-410ec0dd.entry.js +0 -2
  438. package/dist/core/p-439b66a5.entry.js +0 -2
  439. package/dist/core/p-443a813a.entry.js +0 -2
  440. package/dist/core/p-48c93ac0.entry.js +0 -2
  441. package/dist/core/p-48c93ac0.entry.js.map +0 -1
  442. package/dist/core/p-52ca31be.entry.js +0 -2
  443. package/dist/core/p-52ca31be.entry.js.map +0 -1
  444. package/dist/core/p-535316b4.entry.js +0 -2
  445. package/dist/core/p-5396935e.entry.js +0 -2
  446. package/dist/core/p-5b2131c1.entry.js +0 -2
  447. package/dist/core/p-5ed63e9c.entry.js +0 -2
  448. package/dist/core/p-74458da3.entry.js.map +0 -1
  449. package/dist/core/p-773f71f6.entry.js +0 -2
  450. package/dist/core/p-783a6b5b.entry.js.map +0 -1
  451. package/dist/core/p-7b7e502b.entry.js +0 -2
  452. package/dist/core/p-8701c28e.entry.js +0 -2
  453. package/dist/core/p-9da91318.entry.js +0 -2
  454. package/dist/core/p-a218e2eb.entry.js +0 -2
  455. package/dist/core/p-a2435993.js +0 -2
  456. package/dist/core/p-b1efeb41.entry.js +0 -2
  457. package/dist/core/p-b4af0bec.entry.js +0 -2
  458. package/dist/core/p-b4af0bec.entry.js.map +0 -1
  459. package/dist/core/p-bc966c46.entry.js +0 -2
  460. package/dist/core/p-bdc51179.entry.js +0 -2
  461. package/dist/core/p-c20fe3da.entry.js +0 -2
  462. package/dist/core/p-cb557873.entry.js.map +0 -1
  463. package/dist/core/p-ed1131cb.entry.js +0 -2
  464. package/dist/core/p-f1056a83.entry.js +0 -2
  465. package/dist/core/p-f1fa5e1e.entry.js +0 -2
  466. package/dist/core/p-f4bcf817.entry.js +0 -2
  467. package/dist/core/p-f6709826.entry.js +0 -2
  468. package/dist/core/p-fca60e04.entry.js +0 -2
  469. package/dist/core/p-fe6fed11.entry.js.map +0 -1
  470. package/dist/esm/gov-flex_4.entry.js.map +0 -1
  471. /package/dist/components/{p-a2435993.js.map → p-0b3574c2.js.map} +0 -0
  472. /package/dist/components/{p-4149f195.js.map → p-73938936.js.map} +0 -0
  473. /package/dist/components/{p-5952a5d0.js.map → p-7be2301a.js.map} +0 -0
  474. /package/dist/components/{p-227eb30d.js.map → p-80dad64b.js.map} +0 -0
  475. /package/dist/components/{p-7d4f2214.js.map → p-b25af2cf.js.map} +0 -0
  476. /package/dist/components/{p-dfb5794a.js.map → p-b97d8edd.js.map} +0 -0
  477. /package/dist/components/{p-31a99bfc.js.map → p-c438a723.js.map} +0 -0
  478. /package/dist/components/{p-929ebfb5.js.map → p-d962bf44.js.map} +0 -0
  479. /package/dist/components/{p-20c2203a.js.map → p-e8ec030e.js.map} +0 -0
  480. /package/dist/core/{p-a2435993.js.map → p-0b3574c2.js.map} +0 -0
  481. /package/dist/core/{p-951823cb.entry.js.map → p-12d1e5bc.entry.js.map} +0 -0
  482. /package/dist/core/{p-22fa411d.entry.js.map → p-182d03c1.entry.js.map} +0 -0
  483. /package/dist/core/{p-c52afdfc.js.map → p-29ac15d2.js.map} +0 -0
  484. /package/dist/core/{p-30eaeeec.entry.js.map → p-3df6c6cd.entry.js.map} +0 -0
  485. /package/dist/core/{p-5396935e.entry.js.map → p-436e7690.entry.js.map} +0 -0
  486. /package/dist/core/{p-5ed63e9c.entry.js.map → p-467f778b.entry.js.map} +0 -0
  487. /package/dist/core/{p-7b7e502b.entry.js.map → p-4d81039c.entry.js.map} +0 -0
  488. /package/dist/core/{p-7d6073aa.entry.js.map → p-581c8075.entry.js.map} +0 -0
  489. /package/dist/core/{p-e2517a72.entry.js.map → p-5a92b9d9.entry.js.map} +0 -0
  490. /package/dist/core/{p-8506b611.js.map → p-5fbde4f9.js.map} +0 -0
  491. /package/dist/core/{p-7bf52eb9.entry.js.map → p-605e72b1.entry.js.map} +0 -0
  492. /package/dist/core/{p-6454af62.entry.js.map → p-6603e3df.entry.js.map} +0 -0
  493. /package/dist/core/{p-db22d51c.entry.js.map → p-913331e8.entry.js.map} +0 -0
  494. /package/dist/core/{p-d65cef62.entry.js.map → p-abefa59b.entry.js.map} +0 -0
  495. /package/dist/core/{p-1abdcb62.entry.js.map → p-aeab9c1a.entry.js.map} +0 -0
  496. /package/dist/core/{p-c4ffcc37.entry.js.map → p-af9fe91a.entry.js.map} +0 -0
  497. /package/dist/core/{p-d24710ff.entry.js.map → p-b0d1073c.entry.js.map} +0 -0
  498. /package/dist/core/{p-0be19b89.entry.js.map → p-b4cf97ab.entry.js.map} +0 -0
  499. /package/dist/core/{p-5b2131c1.entry.js.map → p-bc0ed2c1.entry.js.map} +0 -0
  500. /package/dist/core/{p-dec3f948.entry.js.map → p-bf8529f8.entry.js.map} +0 -0
  501. /package/dist/core/{p-40d764ac.entry.js.map → p-d3f7d3d5.entry.js.map} +0 -0
  502. /package/dist/core/{p-00d153bf.entry.js.map → p-d6e972c0.entry.js.map} +0 -0
  503. /package/dist/core/{p-410ec0dd.entry.js.map → p-d952e56f.entry.js.map} +0 -0
  504. /package/dist/core/{p-20c2203a.js.map → p-e8ec030e.js.map} +0 -0
  505. /package/dist/core/{p-2c290fe5.entry.js.map → p-eaa83b2f.entry.js.map} +0 -0
  506. /package/dist/core/{p-f6709826.entry.js.map → p-ebc318d7.entry.js.map} +0 -0
  507. /package/dist/core/{p-f7a4da9d.entry.js.map → p-eeee2325.entry.js.map} +0 -0
  508. /package/dist/core/{p-535316b4.entry.js.map → p-fa161f10.entry.js.map} +0 -0
  509. /package/dist/core/{p-e834ee73.entry.js.map → p-fa5b72de.entry.js.map} +0 -0
  510. /package/dist/core/{p-f4bcf817.entry.js.map → p-ff609d0e.entry.js.map} +0 -0
@@ -7,20 +7,27 @@ class TagPage extends HTMLElement {
7
7
  <gov-tag color="primary" size="xs" type="bold">
8
8
  Tag
9
9
  </gov-tag>
10
- <gov-tag color="primary" size="xs" type="bold" icon-start="basic/star-fill">
10
+ <gov-tag color="primary" size="xs" type="bold" icon-start="components/star-fill">
11
11
  Tag
12
12
  </gov-tag>
13
- <gov-tag color="primary" size="xs" type="bold" icon-end="basic/star-fill">
13
+ <gov-tag color="primary" size="xs" type="bold" icon-end="components/star-fill">
14
14
  Tag
15
15
  </gov-tag>
16
- <gov-tag color="primary" size="xs" type="bold" icon-start="basic/star-fill" icon-end="basic/star-fill">
16
+ <gov-tag color="primary" size="xs" type="bold" icon-start="components/star-fill" icon-end="components/star-fill">
17
17
  Tag
18
18
  </gov-tag>
19
- <gov-tag color="primary" size="s" type="bold" icon-start="basic/star-fill">
19
+ <gov-tag color="primary" size="s" type="bold" icon-start="components/star-fill">
20
20
  Small Primary
21
21
  </gov-tag>
22
- <gov-tag color="primary" size="m" type="bold" icon-start="basic/star-fill" icon-end="basic/star-fill">
22
+ <gov-tag color="primary" size="m" type="bold">
23
+ <gov-icon slot="icon-start" type="components" name="star-fill"></gov-icon>
23
24
  Normal Primary
25
+ <gov-icon slot="icon-end" type="components" name="star-fill"></gov-icon>
26
+ </gov-tag>
27
+ <gov-tag color="primary" size="m" type="bold" expanded>
28
+ <gov-icon slot="icon-start" type="components" name="star-fill"></gov-icon>
29
+ Expanded
30
+ <gov-icon slot="icon-end" type="components" name="star-fill"></gov-icon>
24
31
  </gov-tag>
25
32
  </div>
26
33
  <h4>Primary - subtle</h4>
@@ -28,10 +35,10 @@ class TagPage extends HTMLElement {
28
35
  <gov-tag color="primary" size="xs" type="subtle">
29
36
  Tag
30
37
  </gov-tag>
31
- <gov-tag color="primary" size="s" type="subtle" icon-start="basic/star-fill">
38
+ <gov-tag color="primary" size="s" type="subtle" icon-start="components/star-fill">
32
39
  Small Primary
33
40
  </gov-tag>
34
- <gov-tag color="primary" size="m" type="subtle" icon-start="basic/star-fill">
41
+ <gov-tag color="primary" size="m" type="subtle" icon-start="components/star-fill">
35
42
  Normal Primary
36
43
  </gov-tag>
37
44
  </div>
@@ -42,10 +49,10 @@ class TagPage extends HTMLElement {
42
49
  <gov-tag color="secondary" type="bold" size="xs">
43
50
  Tag
44
51
  </gov-tag>
45
- <gov-tag color="secondary" type="bold" size="s" icon-start="basic/star-fill">
52
+ <gov-tag color="secondary" type="bold" size="s" icon-start="components/star-fill">
46
53
  Small secondary
47
54
  </gov-tag>
48
- <gov-tag color="secondary" type="bold" size="m" icon-start="basic/star-fill">
55
+ <gov-tag color="secondary" type="bold" size="m" icon-start="components/star-fill">
49
56
  Normal secondary
50
57
  </gov-tag>
51
58
  </div>
@@ -54,10 +61,10 @@ class TagPage extends HTMLElement {
54
61
  <gov-tag color="secondary" type="subtle" size="xs">
55
62
  Tag
56
63
  </gov-tag>
57
- <gov-tag color="secondary" type="subtle" size="s" icon-start="basic/star-fill">
64
+ <gov-tag color="secondary" type="subtle" size="s" icon-start="components/star-fill">
58
65
  Small Primary
59
66
  </gov-tag>
60
- <gov-tag color="secondary" type="subtle" size="m" icon-start="basic/star-fill">
67
+ <gov-tag color="secondary" type="subtle" size="m" icon-start="components/star-fill">
61
68
  Normal Primary
62
69
  </gov-tag>
63
70
  </div>
@@ -68,10 +75,10 @@ class TagPage extends HTMLElement {
68
75
  <gov-tag color="success" type="bold" size="xs">
69
76
  Tag
70
77
  </gov-tag>
71
- <gov-tag color="success" type="bold" size="s" icon-start="basic/star-fill">
78
+ <gov-tag color="success" type="bold" size="s" icon-start="components/star-fill">
72
79
  Small success
73
80
  </gov-tag>
74
- <gov-tag color="success" type="bold" size="m" icon-start="basic/star-fill">
81
+ <gov-tag color="success" type="bold" size="m" icon-start="components/star-fill">
75
82
  Normal success
76
83
  </gov-tag>
77
84
  </div>
@@ -80,10 +87,10 @@ class TagPage extends HTMLElement {
80
87
  <gov-tag color="success" type="subtle" size="xs">
81
88
  Tag
82
89
  </gov-tag>
83
- <gov-tag color="success" type="subtle" size="s" icon-start="basic/star-fill">
90
+ <gov-tag color="success" type="subtle" size="s" icon-start="components/star-fill">
84
91
  Small Primary
85
92
  </gov-tag>
86
- <gov-tag color="success" type="subtle" size="m" icon-start="basic/star-fill">
93
+ <gov-tag color="success" type="subtle" size="m" icon-start="components/star-fill">
87
94
  Normal Primary
88
95
  </gov-tag>
89
96
  </div>
@@ -94,10 +101,10 @@ class TagPage extends HTMLElement {
94
101
  <gov-tag color="warning" type="bold" size="xs">
95
102
  Tag
96
103
  </gov-tag>
97
- <gov-tag color="warning" type="bold" size="s" icon-start="basic/star-fill">
104
+ <gov-tag color="warning" type="bold" size="s" icon-start="components/star-fill">
98
105
  Small warning
99
106
  </gov-tag>
100
- <gov-tag color="warning" type="bold" size="m" icon-start="basic/star-fill">
107
+ <gov-tag color="warning" type="bold" size="m" icon-start="components/star-fill">
101
108
  Normal warning
102
109
  </gov-tag>
103
110
  </div>
@@ -106,10 +113,10 @@ class TagPage extends HTMLElement {
106
113
  <gov-tag color="warning" type="subtle" size="xs">
107
114
  Tag
108
115
  </gov-tag>
109
- <gov-tag color="warning" type="subtle" size="s" icon-start="basic/star-fill">
116
+ <gov-tag color="warning" type="subtle" size="s" icon-start="components/star-fill">
110
117
  Small Primary
111
118
  </gov-tag>
112
- <gov-tag color="warning" type="subtle" size="m" icon-start="basic/star-fill">
119
+ <gov-tag color="warning" type="subtle" size="m" icon-start="components/star-fill">
113
120
  Normal Primary
114
121
  </gov-tag>
115
122
  </div>
@@ -120,10 +127,10 @@ class TagPage extends HTMLElement {
120
127
  <gov-tag color="error" type="bold" size="xs">
121
128
  Tag
122
129
  </gov-tag>
123
- <gov-tag color="error" type="bold" size="s" icon-start="basic/star-fill">
130
+ <gov-tag color="error" type="bold" size="s" icon-start="components/star-fill">
124
131
  Small error
125
132
  </gov-tag>
126
- <gov-tag color="error" type="bold" size="m" icon-start="basic/star-fill">
133
+ <gov-tag color="error" type="bold" size="m" icon-start="components/star-fill">
127
134
  Normal error
128
135
  </gov-tag>
129
136
  </div>
@@ -132,10 +139,10 @@ class TagPage extends HTMLElement {
132
139
  <gov-tag color="error" type="subtle" size="xs">
133
140
  Tag
134
141
  </gov-tag>
135
- <gov-tag color="error" type="subtle" size="s" icon-start="basic/star-fill">
142
+ <gov-tag color="error" type="subtle" size="s" icon-start="components/star-fill">
136
143
  Small Primary
137
144
  </gov-tag>
138
- <gov-tag color="error" type="subtle" size="m" icon-start="basic/star-fill">
145
+ <gov-tag color="error" type="subtle" size="m" icon-start="components/star-fill">
139
146
  Normal Primary
140
147
  </gov-tag>
141
148
  </div>
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../../../src/pages/Tag.ts"],"names":[],"mappings":"AAAA,MAAM,OAAQ,SAAQ,WAAW;IAC7B,iBAAiB;QACb,IAAI,CAAC,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA2IhB,CAAA;IACL,CAAC;CACJ;AAED,IAAI,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;IAC/C,cAAc,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;AAC9C,CAAC","sourcesContent":["class TagPage extends HTMLElement {\n connectedCallback() {\n this.innerHTML = `\n <h1>Tags</h1>\n <h4>Primary - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\" icon-start=\"basic/star-fill\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\" icon-end=\"basic/star-fill\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\" icon-start=\"basic/star-fill\" icon-end=\"basic/star-fill\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"s\" type=\"bold\" icon-start=\"basic/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"primary\" size=\"m\" type=\"bold\" icon-start=\"basic/star-fill\" icon-end=\"basic/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <h4>Primary - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"primary\" size=\"xs\" type=\"subtle\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"s\" type=\"subtle\" icon-start=\"basic/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"primary\" size=\"m\" type=\"subtle\" icon-start=\"basic/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Secondary - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"secondary\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"bold\" size=\"s\" icon-start=\"basic/star-fill\">\n Small secondary\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"bold\" size=\"m\" icon-start=\"basic/star-fill\">\n Normal secondary\n </gov-tag>\n </div>\n <h4>Secondary - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"secondary\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"subtle\" size=\"s\" icon-start=\"basic/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"subtle\" size=\"m\" icon-start=\"basic/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Success - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"success\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"success\" type=\"bold\" size=\"s\" icon-start=\"basic/star-fill\">\n Small success\n </gov-tag>\n <gov-tag color=\"success\" type=\"bold\" size=\"m\" icon-start=\"basic/star-fill\">\n Normal success\n </gov-tag>\n </div>\n <h4>Success - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"success\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"success\" type=\"subtle\" size=\"s\" icon-start=\"basic/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"success\" type=\"subtle\" size=\"m\" icon-start=\"basic/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Warning - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"warning\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"warning\" type=\"bold\" size=\"s\" icon-start=\"basic/star-fill\">\n Small warning\n </gov-tag>\n <gov-tag color=\"warning\" type=\"bold\" size=\"m\" icon-start=\"basic/star-fill\">\n Normal warning\n </gov-tag>\n </div>\n <h4>Warning - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"warning\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"warning\" type=\"subtle\" size=\"s\" icon-start=\"basic/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"warning\" type=\"subtle\" size=\"m\" icon-start=\"basic/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Error - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"error\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"error\" type=\"bold\" size=\"s\" icon-start=\"basic/star-fill\">\n Small error\n </gov-tag>\n <gov-tag color=\"error\" type=\"bold\" size=\"m\" icon-start=\"basic/star-fill\">\n Normal error\n </gov-tag>\n </div>\n <h4>Error - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"error\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"error\" type=\"subtle\" size=\"s\" icon-start=\"basic/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"error\" type=\"subtle\" size=\"m\" icon-start=\"basic/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n `\n }\n}\n\nif (customElements.get('tag-page') === undefined) {\n customElements.define('tag-page', TagPage)\n}\n"]}
1
+ {"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../../../src/pages/Tag.ts"],"names":[],"mappings":"AAAA,MAAM,OAAQ,SAAQ,WAAW;IAC7B,iBAAiB;QACb,IAAI,CAAC,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAkJhB,CAAA;IACL,CAAC;CACJ;AAED,IAAI,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;IAC/C,cAAc,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;AAC9C,CAAC","sourcesContent":["class TagPage extends HTMLElement {\n connectedCallback() {\n this.innerHTML = `\n <h1>Tags</h1>\n <h4>Primary - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\" icon-start=\"components/star-fill\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\" icon-end=\"components/star-fill\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"xs\" type=\"bold\" icon-start=\"components/star-fill\" icon-end=\"components/star-fill\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"s\" type=\"bold\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"primary\" size=\"m\" type=\"bold\">\n \t<gov-icon slot=\"icon-start\" type=\"components\" name=\"star-fill\"></gov-icon>\n Normal Primary\n <gov-icon slot=\"icon-end\" type=\"components\" name=\"star-fill\"></gov-icon>\n </gov-tag>\n <gov-tag color=\"primary\" size=\"m\" type=\"bold\" expanded>\n \t<gov-icon slot=\"icon-start\" type=\"components\" name=\"star-fill\"></gov-icon>\n Expanded\n <gov-icon slot=\"icon-end\" type=\"components\" name=\"star-fill\"></gov-icon>\n </gov-tag>\n </div>\n <h4>Primary - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"primary\" size=\"xs\" type=\"subtle\">\n Tag\n </gov-tag>\n <gov-tag color=\"primary\" size=\"s\" type=\"subtle\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"primary\" size=\"m\" type=\"subtle\" icon-start=\"components/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Secondary - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"secondary\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"bold\" size=\"s\" icon-start=\"components/star-fill\">\n Small secondary\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"bold\" size=\"m\" icon-start=\"components/star-fill\">\n Normal secondary\n </gov-tag>\n </div>\n <h4>Secondary - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"secondary\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"subtle\" size=\"s\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"secondary\" type=\"subtle\" size=\"m\" icon-start=\"components/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Success - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"success\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"success\" type=\"bold\" size=\"s\" icon-start=\"components/star-fill\">\n Small success\n </gov-tag>\n <gov-tag color=\"success\" type=\"bold\" size=\"m\" icon-start=\"components/star-fill\">\n Normal success\n </gov-tag>\n </div>\n <h4>Success - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"success\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"success\" type=\"subtle\" size=\"s\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"success\" type=\"subtle\" size=\"m\" icon-start=\"components/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Warning - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"warning\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"warning\" type=\"bold\" size=\"s\" icon-start=\"components/star-fill\">\n Small warning\n </gov-tag>\n <gov-tag color=\"warning\" type=\"bold\" size=\"m\" icon-start=\"components/star-fill\">\n Normal warning\n </gov-tag>\n </div>\n <h4>Warning - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"warning\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"warning\" type=\"subtle\" size=\"s\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"warning\" type=\"subtle\" size=\"m\" icon-start=\"components/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n <br>\n\n <h4>Error - bold</h4>\n <div class=\"container-view\">\n <gov-tag color=\"error\" type=\"bold\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"error\" type=\"bold\" size=\"s\" icon-start=\"components/star-fill\">\n Small error\n </gov-tag>\n <gov-tag color=\"error\" type=\"bold\" size=\"m\" icon-start=\"components/star-fill\">\n Normal error\n </gov-tag>\n </div>\n <h4>Error - subtle</h4>\n <div class=\"container-view\">\n <gov-tag color=\"error\" type=\"subtle\" size=\"xs\">\n Tag\n </gov-tag>\n <gov-tag color=\"error\" type=\"subtle\" size=\"s\" icon-start=\"components/star-fill\">\n Small Primary\n </gov-tag>\n <gov-tag color=\"error\" type=\"subtle\" size=\"m\" icon-start=\"components/star-fill\">\n Normal Primary\n </gov-tag>\n </div>\n `\n }\n}\n\nif (customElements.get('tag-page') === undefined) {\n customElements.define('tag-page', TagPage)\n}\n"]}
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,c as t,h as a,d as i}from"./p-42200001.js";import{v as c}from"./p-a2435993.js";import{A as o,b as n,a as d}from"./p-d4509899.js";import{g as f,t as b,b as r}from"./p-ea7fdd2e.js";import{i as h}from"./p-33d5d1ed.js";import{t as m}from"./p-26618322.js";import{d as l}from"./p-f44899e1.js";const p=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.inheritedAttributes={};this.openState=undefined;this.identifier=undefined;this.size=undefined;this.disabled=false;this.open=false;this.h=f(this.host)}validateSize(e){c(d,e,n.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=h(this.host)}componentDidRender(){m((()=>this.getPropsFromParents()))}getPropsFromParents(){const e=this.h.getParent(o.root);if(e){this.size=e.getAttribute("size")}}render(){return a(i,{key:"1beb62527ea9274e6280ce0b64c9d52c12e4a993",class:this.h.classes([n.root,this.disabled&&n.disabled]),size:this.size,role:"listitem"},a("details",{key:"53ca7688e8f26e85cd76feb073a26d04c5505d2b",class:n.details,id:this.identifier,"aria-disabled":b(this.disabled),open:this.open},a("summary",Object.assign({key:"19fec49b0066b7a6162a6010e0ee20431c2a578b",onClick:e=>{e.stopPropagation();e.preventDefault();!this.disabled&&this.toggle().finally()},class:n.summary,tabIndex:this.disabled?-1:0,"aria-expanded":r(this.open)},this.inheritedAttributes),this.h.hasSlot("icon")&&a("span",{key:"19254947c22fa2b1a2fa4e26eacb22c0c89b40c9",class:n.icon},a("slot",{key:"262be1640f250fabf9918f4162c071bb68dc4fb3",name:"icon"})),a("span",{key:"ebb5ef762ef51921b68a8063fd09c979d7d0d32d",class:n.title},a("slot",{key:"75783345d2276f06e53c401761cb4e57d241e5e0",name:"label"}),a("slot",{key:"f2d9cdff693edbcae6293921fde7996d1b1251b6",name:"annotation"})),a("span",{key:"f7e28ea54455756c7d146c7b88be7001e80b07a8",class:n.right},a("slot",{key:"e76b31bf1c349a8a86d4b91ec1cfa650a75edf60",name:"suffix"}),a("span",{key:"87ea99c9862deb3ff9820fa383cec52956b4655a",class:n.arrow},a("slot",{key:"c8b64a90455a731f359e12550664ba5aa905abbc",name:"toggle-icon"},a("gov-icon",{key:"867406c5634d6446683529f5f647492b9b289a31",name:"chevron-down",type:"components"}))))),a("div",{key:"2adf7441dd470ae1b32a08fb374cd1d9e2d1f789",class:n.content},a("slot",{key:"8eb27d0b33689933b6e71850324c35c89d71c4c0"}))))}async toggle(){this.open=!this.open;this.govChange.emit({open:this.open,component:n.root,ref:this.host})}async currentState(){return this.open}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion-item",{identifier:[1],size:[1025],disabled:[4],open:[1028],openState:[32],toggle:[64],currentState:[64]},undefined,{size:["validateSize"]}]);function u(){if(typeof customElements==="undefined"){return}const e=["gov-accordion-item","gov-icon"];e.forEach((e=>{switch(e){case"gov-accordion-item":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}u();const y=p;const g=u;export{y as GovAccordionItem,g as defineCustomElement};
1
+ import{p as e,H as s,c as t,h as a,d as i}from"./p-42200001.js";import{v as c}from"./p-0b3574c2.js";import{A as o,b as n,a as d}from"./p-d4509899.js";import{g as f,t as b,b as r}from"./p-ea7fdd2e.js";import{i as h}from"./p-33d5d1ed.js";import{t as m}from"./p-26618322.js";import{d as l}from"./p-18ab0d24.js";const p=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.inheritedAttributes={};this.openState=undefined;this.identifier=undefined;this.size=undefined;this.disabled=false;this.open=false;this.h=f(this.host)}validateSize(e){c(d,e,n.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=h(this.host)}componentDidRender(){m((()=>this.getPropsFromParents()))}getPropsFromParents(){const e=this.h.getParent(o.root);if(e){this.size=e.getAttribute("size")}}render(){return a(i,{key:"1beb62527ea9274e6280ce0b64c9d52c12e4a993",class:this.h.classes([n.root,this.disabled&&n.disabled]),size:this.size,role:"listitem"},a("details",{key:"53ca7688e8f26e85cd76feb073a26d04c5505d2b",class:n.details,id:this.identifier,"aria-disabled":b(this.disabled),open:this.open},a("summary",Object.assign({key:"19fec49b0066b7a6162a6010e0ee20431c2a578b",onClick:e=>{e.stopPropagation();e.preventDefault();!this.disabled&&this.toggle().finally()},class:n.summary,tabIndex:this.disabled?-1:0,"aria-expanded":r(this.open)},this.inheritedAttributes),this.h.hasSlot("icon")&&a("span",{key:"19254947c22fa2b1a2fa4e26eacb22c0c89b40c9",class:n.icon},a("slot",{key:"262be1640f250fabf9918f4162c071bb68dc4fb3",name:"icon"})),a("span",{key:"ebb5ef762ef51921b68a8063fd09c979d7d0d32d",class:n.title},a("slot",{key:"75783345d2276f06e53c401761cb4e57d241e5e0",name:"label"}),a("slot",{key:"f2d9cdff693edbcae6293921fde7996d1b1251b6",name:"annotation"})),a("span",{key:"f7e28ea54455756c7d146c7b88be7001e80b07a8",class:n.right},a("slot",{key:"e76b31bf1c349a8a86d4b91ec1cfa650a75edf60",name:"suffix"}),a("span",{key:"87ea99c9862deb3ff9820fa383cec52956b4655a",class:n.arrow},a("slot",{key:"c8b64a90455a731f359e12550664ba5aa905abbc",name:"toggle-icon"},a("gov-icon",{key:"867406c5634d6446683529f5f647492b9b289a31",name:"chevron-down",type:"components"}))))),a("div",{key:"2adf7441dd470ae1b32a08fb374cd1d9e2d1f789",class:n.content},a("slot",{key:"8eb27d0b33689933b6e71850324c35c89d71c4c0"}))))}async toggle(){this.open=!this.open;this.govChange.emit({open:this.open,component:n.root,ref:this.host})}async currentState(){return this.open}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion-item",{identifier:[1],size:[1025],disabled:[4],open:[1028],openState:[32],toggle:[64],currentState:[64]},undefined,{size:["validateSize"]}]);function u(){if(typeof customElements==="undefined"){return}const e=["gov-accordion-item","gov-icon"];e.forEach((e=>{switch(e){case"gov-accordion-item":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}u();const y=p;const g=u;export{y as GovAccordionItem,g as defineCustomElement};
2
2
  //# sourceMappingURL=gov-accordion-item.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,c as t,h as o,d as i}from"./p-42200001.js";import{v as a}from"./p-a2435993.js";import{A as c,a as n,b as r}from"./p-d4509899.js";import{g as d}from"./p-ea7fdd2e.js";const h=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.hydrated=false;this.size="m";this.noBorder=false;this.h=d(this.host)}validateSize(e){a(n,e,c.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(r.root).forEach((e=>{e.addEventListener("gov-change",(e=>{e.stopPropagation();this.govChange.emit({component:c.root,open:e.detail.open,ref:e.detail.ref})}))}))}connectedCallback(){this.hydrated=true}render(){return o(i,{key:"98666441f80fcb633f05142c4a695e2478af5383",hydrated:this.hydrated,class:this.h.classes(c.root),size:this.size,role:"list"},o("slot",{key:"db7aa61e809f901019dcb301aa529cdc9bc7530e"}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion",{size:[1],noBorder:[4,"no-border"]},undefined,{size:["validateSize"]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-accordion"];e.forEach((e=>{switch(e){case"gov-accordion":if(!customElements.get(e)){customElements.define(e,h)}break}}))}f();const m=h;const l=f;export{m as GovAccordion,l as defineCustomElement};
1
+ import{p as e,H as s,c as t,h as o,d as i}from"./p-42200001.js";import{v as a}from"./p-0b3574c2.js";import{A as c,a as n,b as r}from"./p-d4509899.js";import{g as d}from"./p-ea7fdd2e.js";const h=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.hydrated=false;this.size="m";this.noBorder=false;this.h=d(this.host)}validateSize(e){a(n,e,c.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(r.root).forEach((e=>{e.addEventListener("gov-change",(e=>{e.stopPropagation();this.govChange.emit({component:c.root,open:e.detail.open,ref:e.detail.ref})}))}))}connectedCallback(){this.hydrated=true}render(){return o(i,{key:"98666441f80fcb633f05142c4a695e2478af5383",hydrated:this.hydrated,class:this.h.classes(c.root),size:this.size,role:"list"},o("slot",{key:"db7aa61e809f901019dcb301aa529cdc9bc7530e"}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion",{size:[1],noBorder:[4,"no-border"]},undefined,{size:["validateSize"]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-accordion"];e.forEach((e=>{switch(e){case"gov-accordion":if(!customElements.get(e)){customElements.define(e,h)}break}}))}f();const m=h;const l=f;export{m as GovAccordion,l as defineCustomElement};
2
2
  //# sourceMappingURL=gov-accordion.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-859a4f0d.js";const t=o;const a=s;export{t as GovAttachmentsItem,a as defineCustomElement};
1
+ import{G as o,d as s}from"./p-28776006.js";const t=o;const p=s;export{t as GovAttachmentsItem,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-attachments-item.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-4149f195.js";const t=o;const p=s;export{t as GovAttachments,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-73938936.js";const t=o;const p=s;export{t as GovAttachments,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-attachments.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-5952a5d0.js";const t=o;const a=s;export{t as GovBackdrop,a as defineCustomElement};
1
+ import{G as o,d as s}from"./p-7be2301a.js";const t=o;const a=s;export{t as GovBackdrop,a as defineCustomElement};
2
2
  //# sourceMappingURL=gov-backdrop.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,c as t,h as i,d as a}from"./p-42200001.js";import{a as o}from"./p-227eb30d.js";import{c}from"./p-20c2203a.js";import{g as n}from"./p-ea7fdd2e.js";import{t as l}from"./p-26618322.js";import{d as r}from"./p-7d4f2214.js";import{d}from"./p-f44899e1.js";const h={root:"gov-breadcrumbs"};const b=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.inited=false;this.collapsible=false;this.isExpanded=false;this.accessibleLabel=undefined;this.accessibleLabelledBy=undefined;this.accessibleToggleLabel="Zobrazit či skrýt navigaci";this.expanded=false;this.toggleOption=false;this.h=n(this.host)}async componentDidRender(){this.scheduleContentVerification();if(c()){l((()=>this.validateAccessibility()))}}scheduleContentVerification(){if(this.inited)return;this.inited=true;l((()=>{this.calculateWidthOfItems();this.inited=false}))}calculateWidthOfItems(){const e=this.host.getBoundingClientRect().width;let s=0;this.host.querySelectorAll("li").forEach((e=>{s+=e.getBoundingClientRect().width}));this.toggleOption=s>e}render(){return i(a,{key:"81d7a8e273e1ce4740ee35ebe4a570ee8c5e73a4",class:this.h.classes(h.root),expanded:this.expanded},i("nav",{key:"dc37fa314f5d84c6c517f64229ef601b256f3ad5","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy},i("slot",{key:"4ead548352e642c0994360d74a98123782790a04"})),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(){o(this.accessibleLabel,this.accessibleLabelledBy,h.root,this.host);o(this.accessibleToggleLabel,undefined,h.root,this.host)}get host(){return this}},[4,"gov-breadcrumbs",{collapsible:[4],isExpanded:[4,"is-expanded"],accessibleLabel:[1,"accessible-label"],accessibleLabelledBy:[1,"accessible-labelledby"],accessibleToggleLabel:[1,"accessible-toggle-label"],expanded:[32],toggleOption:[32],validateAccessibility:[64]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-breadcrumbs","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-breadcrumbs":if(!customElements.get(e)){customElements.define(e,b)}break;case"gov-button":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){d()}break}}))}f();const m=b;const p=f;export{m as GovBreadcrumbs,p as defineCustomElement};
1
+ import{p as e,H as s,c as t,h as i,d as a}from"./p-42200001.js";import{a as o}from"./p-80dad64b.js";import{c}from"./p-e8ec030e.js";import{g as n}from"./p-ea7fdd2e.js";import{t as l}from"./p-26618322.js";import{d as r}from"./p-b25af2cf.js";import{d}from"./p-18ab0d24.js";const h={root:"gov-breadcrumbs"};const b=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.inited=false;this.collapsible=false;this.isExpanded=false;this.accessibleLabel=undefined;this.accessibleLabelledBy=undefined;this.accessibleToggleLabel="Zobrazit či skrýt navigaci";this.expanded=false;this.toggleOption=false;this.h=n(this.host)}async componentDidRender(){this.scheduleContentVerification();if(c()){l((()=>this.validateAccessibility()))}}scheduleContentVerification(){if(this.inited)return;this.inited=true;l((()=>{this.calculateWidthOfItems();this.inited=false}))}calculateWidthOfItems(){const e=this.host.getBoundingClientRect().width;let s=0;this.host.querySelectorAll("li").forEach((e=>{s+=e.getBoundingClientRect().width}));this.toggleOption=s>e}render(){return i(a,{key:"81d7a8e273e1ce4740ee35ebe4a570ee8c5e73a4",class:this.h.classes(h.root),expanded:this.expanded},i("nav",{key:"dc37fa314f5d84c6c517f64229ef601b256f3ad5","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy},i("slot",{key:"4ead548352e642c0994360d74a98123782790a04"})),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(){o(this.accessibleLabel,this.accessibleLabelledBy,h.root,this.host);o(this.accessibleToggleLabel,undefined,h.root,this.host)}get host(){return this}},[4,"gov-breadcrumbs",{collapsible:[4],isExpanded:[4,"is-expanded"],accessibleLabel:[1,"accessible-label"],accessibleLabelledBy:[1,"accessible-labelledby"],accessibleToggleLabel:[1,"accessible-toggle-label"],expanded:[32],toggleOption:[32],validateAccessibility:[64]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-breadcrumbs","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-breadcrumbs":if(!customElements.get(e)){customElements.define(e,b)}break;case"gov-button":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){d()}break}}))}f();const m=b;const p=f;export{m as GovBreadcrumbs,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-breadcrumbs.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-7d4f2214.js";const t=o;const p=s;export{t as GovButton,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-b25af2cf.js";const t=o;const a=s;export{t as GovButton,a as defineCustomElement};
2
2
  //# sourceMappingURL=gov-button.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,c as i,h as a,d as t}from"./p-42200001.js";import{g as c,b as d}from"./p-ea7fdd2e.js";import{c as o}from"./p-cd6c2938.js";import{a as n}from"./p-227eb30d.js";import{c as r}from"./p-20c2203a.js";import{d as l}from"./p-e0e2e9c1.js";import{d as h}from"./p-f44899e1.js";const f={root:"gov-card",header:"gov-card__header",title:"gov-card__title",inner:"gov-card__inner",img:"gov-card__img",main:"gov-card__main",icon:"gov-card__icon",btns:"gov-card__btns",footer:"gov-card__footer",arrow:"gov-card__arrow"};const b=e(class e extends s{constructor(){super();this.__registerHost();this.govToggle=i(this,"gov-toggle",7);this.hydrated=false;this.promotion=false;this.collapsible=false;this.open=true;this.accessibleTriggerLabel=undefined;this.accessibleTriggerLabelledBy=undefined;this.h=c(this.host);this.headlineId=o("GovCardHeadline");this.contentId=o("GovCardContent")}async componentDidRender(){if(r()){await l(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){return a(t,{key:"c7dd00e1eee01b7005b98b39ddfccf784dc2808e",class:this.h.classes(f.root),open:this.open,collapsible:d(this.collapsible),promotion:this.promotion,hydrated:this.hydrated},this.collapsible?a("button",{id:this.headlineId,class:f.header,"aria-label":this.accessibleTriggerLabel,"aria-labelledby":this.accessibleTriggerLabelledBy,"aria-expanded":d(this.open),"aria-controls":this.contentId,onClick:this.onClickHandler.bind(this)},a("slot",{name:"headline"}),a("gov-icon",{class:f.arrow,name:"chevron-down",type:"components"})):this.h.hasSlot("headline")?a("div",{class:f.header},a("slot",{name:"headline"})):null,a("div",{key:"369364ba24e3d93c1ac78a584dd1fd48c44b892b",class:f.inner,id:this.contentId,"aria-hidden":this.collapsible?d(!this.open):undefined,hidden:this.collapsible?!this.open:undefined,"aria-labelledby":this.collapsible?this.headlineId:undefined},this.h.hasSlot("img")&&a("p",{key:"813afe326da050fc90039355853617f267505fab",class:f.img},a("slot",{key:"5817f673e65eeb32c5740c7524518d726a98364c",name:"img"})),a("div",{key:"d47df9920b2ce96f2c535bb0bfd3723c2a7b7a9e",class:f.main},this.h.hasSlot("icon")&&this.promotion&&a("div",{key:"c2649f05b9e7c25b7d77a02f692d45f0e30caa60",class:f.icon},a("slot",{key:"9c5c54d2bf6c4a83bd6490b2ad7ef7a1ca9d53d5",name:"icon"})),a("slot",{key:"49608def955a9fa5f5c1ed957ca63bc698b9aeab"}),this.h.hasSlot("btn")&&this.promotion&&a("div",{key:"2bfc4a6c551fe33c4da625f800a796eb619746d3",class:f.btns},a("slot",{key:"050552b970e6d16586f57ed3dab46e6fcff9d95b",name:"btn"}))),this.h.hasSlot("footer")&&a("div",{key:"364cdbd90941b2e93cecc9742ff08479f82d0c14",class:f.footer},a("slot",{key:"0352680a92293ddfe93c055b1d7e5555967f870b",name:"footer"}))))}onClickHandler(e){e.stopPropagation();if(this.collapsible){this.open=!this.open;this.govToggle.emit({open:this.open,element:this.host})}}async validateAccessibility(){if(this.collapsible){n(this.accessibleTriggerLabel,this.accessibleTriggerLabelledBy,f.root,this.host)}}get host(){return this}},[4,"gov-card",{promotion:[4],collapsible:[4],open:[1540],accessibleTriggerLabel:[1,"accessible-label"],accessibleTriggerLabelledBy:[1,"accessible-labelledby"],validateAccessibility:[64]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-card","gov-icon"];e.forEach((e=>{switch(e){case"gov-card":if(!customElements.get(e)){customElements.define(e,b)}break;case"gov-icon":if(!customElements.get(e)){h()}break}}))}m();const p=b;const g=m;export{p as GovCard,g as defineCustomElement};
1
+ import{p as e,H as i,c as s,h as t,d as a}from"./p-42200001.js";import{g as c,b as o}from"./p-ea7fdd2e.js";import{c as d}from"./p-cd6c2938.js";import{a as n}from"./p-80dad64b.js";import{c as r}from"./p-e8ec030e.js";import{d as f}from"./p-e0e2e9c1.js";import{d as l}from"./p-18ab0d24.js";var h;(function(e){e["HORIZONTAL"]="horizontal";e["VERTICAL"]="vertical"})(h||(h={}));const b={root:"gov-card",header:"gov-card__header",arrow:"gov-card__arrow",inner:"gov-card__inner",img:"gov-card__img",icon:"gov-card__icon",content:"gov-card__content",footer:"gov-card__footer"};const m=e(class e extends i{constructor(){super();this.__registerHost();this.govToggle=s(this,"gov-toggle",7);this.hydrated=false;this.direction="vertical";this.collapsible=false;this.open=true;this.accessibleTriggerLabel=undefined;this.accessibleTriggerLabelledBy=undefined;this.h=c(this.host);this.headlineId=d("GovCardHeadline");this.contentId=d("GovCardContent")}async componentDidRender(){if(r()){await f(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){return t(a,{key:"16ef4ffbb0a84bb231008f4f52a4ffe1f2f809d8",class:this.h.classes(b.root),open:this.open,collapsible:o(this.collapsible),direction:this.direction,hydrated:this.hydrated},this.collapsible?t("button",{id:this.headlineId,class:b.header,"aria-label":this.accessibleTriggerLabel,"aria-labelledby":this.accessibleTriggerLabelledBy,"aria-expanded":o(this.open),"aria-controls":this.contentId,onClick:this.onClickHandler.bind(this)},t("slot",{name:"headline"}),t("gov-icon",{class:b.arrow,name:"chevron-down",type:"components"})):this.h.hasSlot("headline")?t("div",{class:b.header},t("slot",{name:"headline"})):null,t("div",{key:"749f6e4b624f4cdda53d2e3433b451d56c742667",class:b.inner,id:this.contentId,"aria-hidden":this.collapsible?o(!this.open):undefined,hidden:this.collapsible?!this.open:undefined,"aria-labelledby":this.collapsible?this.headlineId:undefined},this.h.hasSlot("img")&&t("div",{key:"f4b953ddf9b4f59bc111b512bb3de3510b28af7f",class:b.img},t("slot",{key:"2867a29e49e67aff041ac0705527c5f76f4a019e",name:"img"})),this.h.hasSlot("icon")&&t("div",{key:"8c8e55d3faff7cfbd6abe698cd8801f7fc41dbad",class:b.icon},t("slot",{key:"4d9eaeb0b3af65e4bf5de75090f9346942069e86",name:"icon"})),t("div",{key:"77a9a065fb2803b5f39f1b5716d9810c04b6971b",class:b.content},t("slot",{key:"acec7d3d4b6ac5533e5df218fe38e26147c440d8"})),this.h.hasSlot("footer")&&t("div",{key:"1e63a0811f487e18cbbef8b045651c0e5b745f37",class:b.footer},t("slot",{key:"4bffc12bffb3e29527aad38b6edbe8c00527a843",name:"footer"}))))}onClickHandler(e){e.stopPropagation();if(this.collapsible){this.open=!this.open;this.govToggle.emit({open:this.open,element:this.host})}}async validateAccessibility(){if(this.collapsible){n(this.accessibleTriggerLabel,this.accessibleTriggerLabelledBy,b.root,this.host)}}get host(){return this}},[4,"gov-card",{direction:[1],collapsible:[4],open:[1540],accessibleTriggerLabel:[1,"accessible-label"],accessibleTriggerLabelledBy:[1,"accessible-labelledby"],validateAccessibility:[64]}]);function v(){if(typeof customElements==="undefined"){return}const e=["gov-card","gov-icon"];e.forEach((e=>{switch(e){case"gov-card":if(!customElements.get(e)){customElements.define(e,m)}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}v();const g=m;const p=v;export{g as GovCard,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-card.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CardClass","root","header","title","inner","img","main","icon","btns","footer","arrow","GovCard","proxyCustomElement","H","constructor","this","hydrated","h","govHost","host","headlineId","createID","contentId","componentDidRender","canValidateWcagOnRender","delay","validateAccessibility","connectedCallback","render","Host","key","class","classes","open","collapsible","booleanString","promotion","id","accessibleTriggerLabel","accessibleTriggerLabelledBy","onClick","onClickHandler","bind","name","type","hasSlot","undefined","hidden","e","stopPropagation","govToggle","emit","element","validateAccessibleLabel"],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.tsx"],"sourcesContent":["export const CardClass = {\n\troot: 'gov-card',\n\theader: 'gov-card__header',\n\ttitle: 'gov-card__title',\n\tinner: 'gov-card__inner',\n\timg: 'gov-card__img',\n\tmain: 'gov-card__main',\n\ticon: 'gov-card__icon',\n\tbtns: 'gov-card__btns',\n\tfooter: 'gov-card__footer',\n\tarrow: 'gov-card__arrow',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {CardClass} from './constants'\nimport {booleanString, govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {createID} from '../../utils/string.utils'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {GovCardChangeEvent} from './interfaces'\n\n@Component({\n\ttag: 'gov-card',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID('GovCardHeadline')\n\t\tthis.contentId = createID('GovCardContent')\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Style variation of the card.\n\t */\n\t@Prop() readonly promotion: boolean = false\n\t/**\n\t * Defines weather the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the card is open or closed\n\t */\n\t@Prop({reflect: true, mutable: true}) open = true\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) accessibleTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) accessibleTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({eventName: 'gov-toggle'}) govToggle: EventEmitter<GovCardChangeEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\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(CardClass.root)} open={this.open}\n\t\t\t\t collapsible={booleanString(this.collapsible)} promotion={this.promotion} hydrated={this.hydrated}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.accessibleTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : this.h.hasSlot(\"headline\") ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={CardClass.inner}\n\t\t\t\t\tid={this.contentId}\n\t\t\t\t\taria-hidden={this.collapsible ? booleanString(!this.open) : undefined}\n\t\t\t\t\thidden={this.collapsible ? !this.open : undefined}\n\t\t\t\t\taria-labelledby={this.collapsible ? this.headlineId : undefined}\n\t\t\t\t>\n\t\t\t\t\t{this.h.hasSlot('img') && (\n\t\t\t\t\t\t<p class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\"/>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={CardClass.main}>\n\t\t\t\t\t\t{this.h.hasSlot('icon') && this.promotion && (\n\t\t\t\t\t\t\t<div class={CardClass.icon}>\n\t\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<slot/>\n\n\t\t\t\t\t\t{this.h.hasSlot('btn') && this.promotion && (\n\t\t\t\t\t\t\t<div class={CardClass.btns}>\n\t\t\t\t\t\t\t\t<slot name=\"btn\"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.open = !this.open\n\t\t\tthis.govToggle.emit({open: this.open, element: this.host})\n\t\t}\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateAccessibleLabel(this.accessibleTriggerLabel, this.accessibleTriggerLabelledBy, CardClass.root, this.host)\n\t\t}\n\t}\n}\n"],"mappings":"+RAAO,MAAMA,EAAY,CACxBC,KAAM,WACNC,OAAQ,mBACRC,MAAO,kBACPC,MAAO,kBACPC,IAAK,gBACLC,KAAM,iBACNC,KAAM,iBACNC,KAAM,iBACNC,OAAQ,mBACRC,MAAO,mB,MCGKC,EAAOC,EAAA,MAAAD,UAAAE,EAMnB,WAAAC,G,oEAFQC,KAAAC,SAAW,M,eAamB,M,iBAIE,M,UAIK,K,iFAlB5CD,KAAKE,EAAIC,EAAQH,KAAKI,MACtBJ,KAAKK,WAAaC,EAAS,mBAC3BN,KAAKO,UAAYD,EAAS,iB,CA8B3B,wBAAME,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNV,KAAKW,uB,EAIb,iBAAAC,GACCZ,KAAKC,SAAW,I,CAGjB,MAAAY,GACC,OACCX,EAACY,EAAI,CAAAC,IAAA,2CAACC,MAAOhB,KAAKE,EAAEe,QAAQhC,EAAUC,MAAOgC,KAAMlB,KAAKkB,KACrDC,YAAaC,EAAcpB,KAAKmB,aAAcE,UAAWrB,KAAKqB,UAAWpB,SAAUD,KAAKC,UACzFD,KAAKmB,YACLjB,EAAA,UACCoB,GAAItB,KAAKK,WACTW,MAAO/B,EAAUE,OAAM,aACXa,KAAKuB,uBAAsB,kBACtBvB,KAAKwB,4BAA2B,gBAClCJ,EAAcpB,KAAKkB,MAAK,gBACxBlB,KAAKO,UACpBkB,QAASzB,KAAK0B,eAAeC,KAAK3B,OAElCE,EAAA,QAAM0B,KAAK,aACX1B,EAAA,YAAUc,MAAO/B,EAAUU,MAAOiC,KAAK,eAAeC,KAAK,gBAEzD7B,KAAKE,EAAE4B,QAAQ,YAClB5B,EAAA,OAAKc,MAAO/B,EAAUE,QACrBe,EAAA,QAAM0B,KAAK,cAET,KAEJ1B,EAAA,OAAAa,IAAA,2CACCC,MAAO/B,EAAUI,MACjBiC,GAAItB,KAAKO,UAAS,cACLP,KAAKmB,YAAcC,GAAepB,KAAKkB,MAAQa,UAC5DC,OAAQhC,KAAKmB,aAAenB,KAAKkB,KAAOa,UAAS,kBAChC/B,KAAKmB,YAAcnB,KAAKK,WAAa0B,WAErD/B,KAAKE,EAAE4B,QAAQ,QACf5B,EAAA,KAAAa,IAAA,2CAAGC,MAAO/B,EAAUK,KACnBY,EAAA,QAAAa,IAAA,2CAAMa,KAAK,SAIb1B,EAAA,OAAAa,IAAA,2CAAKC,MAAO/B,EAAUM,MACpBS,KAAKE,EAAE4B,QAAQ,SAAW9B,KAAKqB,WAC/BnB,EAAA,OAAAa,IAAA,2CAAKC,MAAO/B,EAAUO,MACrBU,EAAA,QAAAa,IAAA,2CAAMa,KAAK,UAIb1B,EAAA,QAAAa,IAAA,6CAECf,KAAKE,EAAE4B,QAAQ,QAAU9B,KAAKqB,WAC9BnB,EAAA,OAAAa,IAAA,2CAAKC,MAAO/B,EAAUQ,MACrBS,EAAA,QAAAa,IAAA,2CAAMa,KAAK,UAKb5B,KAAKE,EAAE4B,QAAQ,WACf5B,EAAA,OAAAa,IAAA,2CAAKC,MAAO/B,EAAUS,QACrBQ,EAAA,QAAAa,IAAA,2CAAMa,KAAK,a,CAQT,cAAAF,CAAeO,GACtBA,EAAEC,kBACF,GAAIlC,KAAKmB,YAAa,CACrBnB,KAAKkB,MAAQlB,KAAKkB,KAClBlB,KAAKmC,UAAUC,KAAK,CAAClB,KAAMlB,KAAKkB,KAAMmB,QAASrC,KAAKI,M,EAQtD,2BAAMO,GACL,GAAIX,KAAKmB,YAAa,CACrBmB,EAAwBtC,KAAKuB,uBAAwBvB,KAAKwB,4BAA6BvC,EAAUC,KAAMc,KAAKI,K","ignoreList":[]}
1
+ {"version":3,"names":["CardDirection","CardClass","root","header","arrow","inner","img","icon","content","footer","GovCard","proxyCustomElement","H","constructor","this","hydrated","h","govHost","host","headlineId","createID","contentId","componentDidRender","canValidateWcagOnRender","delay","validateAccessibility","connectedCallback","render","Host","key","class","classes","open","collapsible","booleanString","direction","id","accessibleTriggerLabel","accessibleTriggerLabelledBy","onClick","onClickHandler","bind","name","type","hasSlot","undefined","hidden","e","stopPropagation","govToggle","emit","element","validateAccessibleLabel"],"sources":["../../../packages/core/src/components/gov-card/constants.ts","../../../packages/core/src/components/gov-card/gov-card.tsx"],"sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\n\nexport enum CardDirection {\n\tHORIZONTAL = 'horizontal',\n\tVERTICAL = 'vertical',\n}\nexport type CardDirectionType = `${ValueOf<typeof CardDirection>}`\n\nexport const CardClass = {\n\troot: 'gov-card',\n\theader: 'gov-card__header',\n\tarrow: 'gov-card__arrow',\n\tinner: 'gov-card__inner',\n\timg: 'gov-card__img',\n\ticon: 'gov-card__icon',\n\tcontent: 'gov-card__content',\n\tfooter: 'gov-card__footer',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {CardClass, CardDirectionType} from './constants'\nimport {booleanString, govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {createID} from '../../utils/string.utils'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {GovCardChangeEvent} from './interfaces'\n\n@Component({\n\ttag: 'gov-card',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID('GovCardHeadline')\n\t\tthis.contentId = createID('GovCardContent')\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Card direction\n\t */\n\t@Prop() readonly direction: CardDirectionType = \"vertical\"\n\t/**\n\t * Defines weather the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the card is open or closed\n\t */\n\t@Prop({reflect: true, mutable: true}) open = true\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) accessibleTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) accessibleTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({eventName: 'gov-toggle'}) govToggle: EventEmitter<GovCardChangeEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\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(CardClass.root)} open={this.open}\n\t\t\t\t collapsible={booleanString(this.collapsible)} direction={this.direction} hydrated={this.hydrated}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.accessibleTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : this.h.hasSlot(\"headline\") ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={CardClass.inner}\n\t\t\t\t\tid={this.contentId}\n\t\t\t\t\taria-hidden={this.collapsible ? booleanString(!this.open) : undefined}\n\t\t\t\t\thidden={this.collapsible ? !this.open : undefined}\n\t\t\t\t\taria-labelledby={this.collapsible ? this.headlineId : undefined}\n\t\t\t\t>\n\t\t\t\t\t{this.h.hasSlot('img') && (\n\t\t\t\t\t\t<div class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={CardClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={CardClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.open = !this.open\n\t\t\tthis.govToggle.emit({open: this.open, element: this.host})\n\t\t}\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateAccessibleLabel(this.accessibleTriggerLabel, this.accessibleTriggerLabelledBy, CardClass.root, this.host)\n\t\t}\n\t}\n}\n"],"mappings":"+RAEA,IAAYA,GAAZ,SAAYA,GACXA,EAAA,2BACAA,EAAA,sBACA,EAHD,CAAYA,MAAa,KAMlB,MAAMC,EAAY,CACxBC,KAAM,WACNC,OAAQ,mBACRC,MAAO,kBACPC,MAAO,kBACPC,IAAK,gBACLC,KAAM,iBACNC,QAAS,oBACTC,OAAQ,oB,MCHIC,EAAOC,EAAA,MAAAD,UAAAE,EAMnB,WAAAC,G,oEAFQC,KAAAC,SAAW,M,eAa6B,W,iBAIR,M,UAIK,K,iFAlB5CD,KAAKE,EAAIC,EAAQH,KAAKI,MACtBJ,KAAKK,WAAaC,EAAS,mBAC3BN,KAAKO,UAAYD,EAAS,iB,CA8B3B,wBAAME,GACL,GAAIC,IAA2B,OACxBC,EAAM,WACNV,KAAKW,uB,EAIb,iBAAAC,GACCZ,KAAKC,SAAW,I,CAGjB,MAAAY,GACC,OACCX,EAACY,EAAI,CAAAC,IAAA,2CAACC,MAAOhB,KAAKE,EAAEe,QAAQ9B,EAAUC,MAAO8B,KAAMlB,KAAKkB,KACrDC,YAAaC,EAAcpB,KAAKmB,aAAcE,UAAWrB,KAAKqB,UAAWpB,SAAUD,KAAKC,UACzFD,KAAKmB,YACLjB,EAAA,UACCoB,GAAItB,KAAKK,WACTW,MAAO7B,EAAUE,OAAM,aACXW,KAAKuB,uBAAsB,kBACtBvB,KAAKwB,4BAA2B,gBAClCJ,EAAcpB,KAAKkB,MAAK,gBACxBlB,KAAKO,UACpBkB,QAASzB,KAAK0B,eAAeC,KAAK3B,OAElCE,EAAA,QAAM0B,KAAK,aACX1B,EAAA,YAAUc,MAAO7B,EAAUG,MAAOsC,KAAK,eAAeC,KAAK,gBAEzD7B,KAAKE,EAAE4B,QAAQ,YAClB5B,EAAA,OAAKc,MAAO7B,EAAUE,QACrBa,EAAA,QAAM0B,KAAK,cAET,KAEJ1B,EAAA,OAAAa,IAAA,2CACCC,MAAO7B,EAAUI,MACjB+B,GAAItB,KAAKO,UAAS,cACLP,KAAKmB,YAAcC,GAAepB,KAAKkB,MAAQa,UAC5DC,OAAQhC,KAAKmB,aAAenB,KAAKkB,KAAOa,UAAS,kBAChC/B,KAAKmB,YAAcnB,KAAKK,WAAa0B,WAErD/B,KAAKE,EAAE4B,QAAQ,QACf5B,EAAA,OAAAa,IAAA,2CAAKC,MAAO7B,EAAUK,KACrBU,EAAA,QAAAa,IAAA,2CAAMa,KAAK,SAIZ5B,KAAKE,EAAE4B,QAAQ,SACf5B,EAAA,OAAAa,IAAA,2CAAKC,MAAO7B,EAAUM,MACrBS,EAAA,QAAAa,IAAA,2CAAMa,KAAK,UAIb1B,EAAA,OAAAa,IAAA,2CAAKC,MAAO7B,EAAUO,SACrBQ,EAAA,QAAAa,IAAA,8CAGAf,KAAKE,EAAE4B,QAAQ,WACf5B,EAAA,OAAAa,IAAA,2CAAKC,MAAO7B,EAAUQ,QACrBO,EAAA,QAAAa,IAAA,2CAAMa,KAAK,a,CAQT,cAAAF,CAAeO,GACtBA,EAAEC,kBACF,GAAIlC,KAAKmB,YAAa,CACrBnB,KAAKkB,MAAQlB,KAAKkB,KAClBlB,KAAKmC,UAAUC,KAAK,CAAClB,KAAMlB,KAAKkB,KAAMmB,QAASrC,KAAKI,M,EAQtD,2BAAMO,GACL,GAAIX,KAAKmB,YAAa,CACrBmB,EAAwBtC,KAAKuB,uBAAwBvB,KAAKwB,4BAA6BrC,EAAUC,KAAMY,KAAKI,K","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-929ebfb5.js";const t=o;const p=s;export{t as GovChip,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-d962bf44.js";const t=o;const p=s;export{t as GovChip,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-chip.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,h as s,d as o}from"./p-42200001.js";import{g as n}from"./p-ea7fdd2e.js";const c={root:"gov-container"};const r=t(class t extends e{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return s(o,{key:"72c32b930fe5a024a469c2d8170a7597e990e659",class:this.h.classes(c.root)},s("slot",{key:"a4ad5247d403cd17ba46529cc204c936b82dd97d"}))}get host(){return this}},[4,"gov-container"]);function a(){if(typeof customElements==="undefined"){return}const t=["gov-container"];t.forEach((t=>{switch(t){case"gov-container":if(!customElements.get(t)){customElements.define(t,r)}break}}))}a();const i=r;const d=a;export{i as GovContainer,d as defineCustomElement};
1
+ import{p as t,H as e,h as s,d as o}from"./p-42200001.js";import{g as n}from"./p-ea7fdd2e.js";const c={root:"gov-container"};const r=t(class t extends e{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return s(o,{key:"0844c86e0eacd5f89bcfcad2b60e56da0097b506",class:this.h.classes(c.root)},s("slot",{key:"5cd801a016968be5968a3598d3efa3b222953120"}))}get host(){return this}},[4,"gov-container"]);function a(){if(typeof customElements==="undefined"){return}const t=["gov-container"];t.forEach((t=>{switch(t){case"gov-container":if(!customElements.get(t)){customElements.define(t,r)}break}}))}a();const i=r;const d=a;export{i as GovContainer,d as defineCustomElement};
2
2
  //# sourceMappingURL=gov-container.js.map
@@ -1,2 +1,2 @@
1
- import{p as o,H as t,h as e,d as r}from"./p-42200001.js";import{C as s}from"./p-5aad3497.js";import{g as n}from"./p-ea7fdd2e.js";import{v as a}from"./p-a2435993.js";import{p as c}from"./p-e0e2e9c1.js";c(s,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);const i={root:"gov-control-group"};const d=o(class o extends t{constructor(){super();this.__registerHost();this.color=s.PRIMARY;this.noBorder=false;this.fitContent=false;this.h=n(this.host)}validateColor(o){a(s,o,i.root)}render(){return e(r,{key:"e2a56a633370dd4172c9d0895b51b7138d0a19a0",class:this.h.classes(i.root),color:this.color},e("slot",{key:"76d02cd85f4207a4e2f5a198e36d6ff53ee77e28"}))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-control-group",{color:[1],noBorder:[4,"no-border"],fitContent:[4,"fit-content"]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const o=["gov-control-group"];o.forEach((o=>{switch(o){case"gov-control-group":if(!customElements.get(o)){customElements.define(o,d)}break}}))}l();const f=d;const p=l;export{f as GovControlGroup,p as defineCustomElement};
1
+ import{p as o,H as t,h as e,d as r}from"./p-42200001.js";import{C as s}from"./p-5aad3497.js";import{g as a}from"./p-ea7fdd2e.js";import{v as c}from"./p-0b3574c2.js";import{p as n}from"./p-e0e2e9c1.js";n(s,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);const i={root:"gov-control-group"};const d=o(class o extends t{constructor(){super();this.__registerHost();this.color=s.PRIMARY;this.noBorder=false;this.fitContent=false;this.h=a(this.host)}validateColor(o){c(s,o,i.root)}render(){return e(r,{key:"bee513bb064b3a276eaede7f93ed12b97edb7adb",class:this.h.classes(i.root),color:this.color},e("slot",{key:"adba55ccd38d432ae11fa4967996d8bcaf552427"}))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-control-group",{color:[1],noBorder:[4,"no-border"],fitContent:[4,"fit-content"]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const o=["gov-control-group"];o.forEach((o=>{switch(o){case"gov-control-group":if(!customElements.get(o)){customElements.define(o,d)}break}}))}l();const f=d;const p=l;export{f as GovControlGroup,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-control-group.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as c,h as o,d as a}from"./p-42200001.js";import{g as s}from"./p-ea7fdd2e.js";const t={root:"gov-cookiebar",content:"gov-cookiebar__content",actions:"gov-cookiebar__actions",actionsPrimary:"gov-cookiebar__actions--primary",actionsSecondary:"gov-cookiebar__actions--secondary"};const i=e(class e extends c{constructor(){super();this.__registerHost();this.h=s(this.host)}render(){return o(a,{key:"1955ae868b0e5255aea8ebc8e26146c4d973a75b",class:this.h.classes(t.root)},o("div",{key:"cec7976304269a18f2fd71ffb0e398c60e17c4d5",class:t.content},o("slot",{key:"f311694262ff0297c86ae435874f2108621bb7dc",name:"headline"}),o("slot",{key:"7ea9f4b7e848bf3afa2039f5ec4ab14ce2573243"})),(this.h.hasSlot("actions-primary")||this.h.hasSlot("actions-secondary"))&&o("div",{key:"9230c752f5fa798d7784406dc6d114c159c8aa6e",class:t.actions},this.h.hasSlot("actions-primary")&&o("div",{key:"324e807bcc4e867f6561723edbe4028bb484297f",class:t.actionsPrimary},o("slot",{key:"bf945e0d01c7497cd8575b01fd9be172968179cd",name:"actions-primary"})),this.h.hasSlot("actions-secondary")&&o("div",{key:"8d836b11f057ec6840aa7ba62900dde267e9bdad",class:t.actionsSecondary},o("slot",{key:"8b9144381a5e6b54017bd6fb6ffc9c56437b62d0",name:"actions-secondary"}))))}get host(){return this}},[4,"gov-cookiebar"]);function n(){if(typeof customElements==="undefined"){return}const e=["gov-cookiebar"];e.forEach((e=>{switch(e){case"gov-cookiebar":if(!customElements.get(e)){customElements.define(e,i)}break}}))}n();const r=i;const d=n;export{r as GovCookiebar,d as defineCustomElement};
1
+ import{p as e,H as a,h as c,d as o}from"./p-42200001.js";import{g as s}from"./p-ea7fdd2e.js";const t={root:"gov-cookiebar",content:"gov-cookiebar__content",actions:"gov-cookiebar__actions",actionsPrimary:"gov-cookiebar__actions--primary",actionsSecondary:"gov-cookiebar__actions--secondary"};const i=e(class e extends a{constructor(){super();this.__registerHost();this.h=s(this.host)}render(){return c(o,{key:"311f0da16d86ab548e90e8f7be69d23d88a71ae4",class:this.h.classes(t.root)},c("div",{key:"f371e0bfa5ad8b2195aec2fd0c02f86fb81d58ff",class:t.content},c("slot",{key:"96433ca7228d4bf61bfc6dc041bc519c83f56109",name:"headline"}),c("slot",{key:"4fa8e397eba029f55329d0ca6d24044ae7c9a513"})),(this.h.hasSlot("actions-primary")||this.h.hasSlot("actions-secondary"))&&c("div",{key:"a1d5e5d03d8d89bceb65f45f75d7dc3d446d1b62",class:t.actions},this.h.hasSlot("actions-primary")&&c("div",{key:"4ee2b3b82b91bdfb3d87a7bc34e9b0d4e2fc4f33",class:t.actionsPrimary},c("slot",{key:"7c0cbf9c5f334cffa4a4eb3f2af9a05bfc8af208",name:"actions-primary"})),this.h.hasSlot("actions-secondary")&&c("div",{key:"e40a9f403e994584f53df9e0d84e27aa08c849e2",class:t.actionsSecondary},c("slot",{key:"5a2bc741413334a0f08bf2d17b94d1c51b5c3f69",name:"actions-secondary"}))))}get host(){return this}},[4,"gov-cookiebar"]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-cookiebar"];e.forEach((e=>{switch(e){case"gov-cookiebar":if(!customElements.get(e)){customElements.define(e,i)}break}}))}d();const n=i;const f=d;export{n as GovCookiebar,f as defineCustomElement};
2
2
  //# sourceMappingURL=gov-cookiebar.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,c as i,h as a,d as t}from"./p-42200001.js";import{g as o,a as c,c as l}from"./p-ea7fdd2e.js";import{c as d}from"./p-20c2203a.js";import{b}from"./p-227eb30d.js";import{c as n}from"./p-cd6c2938.js";import{t as h}from"./p-26618322.js";import{d as r}from"./p-5952a5d0.js";import{d as f}from"./p-7d4f2214.js";import{d as g}from"./p-f44899e1.js";const m={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"};const p=e(class e extends s{constructor(){super();this.__registerHost();this.govClose=i(this,"gov-close",7);this.hydrated=false;this.open=false;this.blockClose=false;this.blockBackdropClose=false;this.role="dialog";this.labelTag="h2";this.accessibleLabelledBy=undefined;this.accessibleDescribedBy=undefined;this.accessibleCloseLabel="Zavřít okno";this.accessibleCloseLabelledBy=undefined;this.h=o(this.host);this.labelId=n("GovDialogLabel");this.contentId=n("GovDialogContent")}watchOpen(e){this.open=e;this.setFocus().finally()}showDialog(){this.open=true;document.body.classList.add(m.bodyFix)}hideDialog(){this.open=false;document.body.classList.remove(m.bodyFix)}async componentDidRender(){if(d()){h((()=>this.validateAccessibility()))}if(this.open){this.showDialog()}else{this.hideDialog()}}connectedCallback(){this.hydrated=true}disconnectedCallback(){document.body.classList.remove(m.bodyFix)}render(){return a(t,{key:"fe34cd83c969ab539a47c4f851231085f34b21f6",class:this.h.classes(m.root),open:this.open,hydrated:this.hydrated},a("dialog",{key:"d013f87f499635ed0d0f1cc016cc1e84410154b4",class:m.dialog,hidden:!this.open,tabindex:c(this.open),open:this.open,"aria-modal":"true","aria-hidden":l(!this.open),"aria-labelledby":this.accessibleLabelledBy||this.labelId,"aria-describedby":this.accessibleDescribedBy||this.contentId,role:this.role},a("div",{key:"6018f61d5a335583dc05a0f8cdef6c4562977558",class:m.inner},a("div",{key:"9ab56eb94d92f67291b783ec8310fec2c3da9d33",class:m.header},a("slot",{key:"b2248113ca181acbd9e0c960c4e7b13c3e114ae3",name:"icon"}),this.h.hasSlot("title")&&a("span",{key:"fce7d93f476553e3cc53c8dc987d65cb64538552",class:m.title,id:this.labelId},a("slot",{key:"b151367fda2f5f87d6de3cabbf46cacc9d427f0f",name:"title"})),a("gov-button",{key:"e3622dc8601452c2d52a5d17a611d27cd0d17e97",ref:e=>this.closeCtaRef=e,disabled:this.blockClose,class:m.close,color:"primary","aria-label":this.accessibleCloseLabel,"aria-labelledby":this.accessibleCloseLabelledBy,type:"base","on-gov-click":this.onCloseHandler.bind(this)},a("gov-icon",{key:"aa75b37c5aa82566d2e9f6b49351dba0550052de",slot:"icon-start",name:"x-lg",type:"components"}))),a("div",{key:"608ac5fe732219559583cfb512d14b9221619a6b",class:m.content,id:this.contentId},a("slot",{key:"cd93b5061448c1d4c4d2dece9a349a8fa11f6c28"})),this.h.hasSlot("footer")&&a("div",{key:"759319b3fb204e9f8f869d3839fc3f91f42b494f",class:m.footer},a("slot",{key:"5937ba641d297c61645f6216d63656cd883e5280",name:"footer"})))),this.open?a("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(){b(this.accessibleLabelledBy,"accessible-labelled-by",m.root);b(this.accessibleDescribedBy,"accessible-described-by",m.root)}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[4,"gov-dialog",{open:[1540],blockClose:[4,"block-close"],blockBackdropClose:[4,"block-backdrop-close"],role:[1],labelTag:[1,"label-tag"],accessibleLabelledBy:[1,"accessible-labelled-by"],accessibleDescribedBy:[1,"accessible-described-by"],accessibleCloseLabel:[1,"accessible-close-label"],accessibleCloseLabelledBy:[1,"accessible-close-labelled-by"],setFocus:[64],validateAccessibility:[64]},undefined,{open:["watchOpen"]}]);function y(){if(typeof customElements==="undefined"){return}const e=["gov-dialog","gov-backdrop","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-dialog":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-button":if(!customElements.get(e)){f()}break;case"gov-icon":if(!customElements.get(e)){g()}break}}))}y();const v=p;const k=y;export{v as GovDialog,k as defineCustomElement};
1
+ import{p as e,H as s,c as a,h as i,d as t}from"./p-42200001.js";import{g as o,a as c,c as l}from"./p-ea7fdd2e.js";import{c as d}from"./p-e8ec030e.js";import{b}from"./p-80dad64b.js";import{c as n}from"./p-cd6c2938.js";import{t as h}from"./p-26618322.js";import{d as r}from"./p-7be2301a.js";import{d as f}from"./p-b25af2cf.js";import{d as g}from"./p-18ab0d24.js";const m={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"};const p=e(class e extends s{constructor(){super();this.__registerHost();this.govClose=a(this,"gov-close",7);this.hydrated=false;this.open=false;this.blockClose=false;this.blockBackdropClose=false;this.role="dialog";this.labelTag="h2";this.accessibleLabelledBy=undefined;this.accessibleDescribedBy=undefined;this.accessibleCloseLabel="Zavřít okno";this.accessibleCloseLabelledBy=undefined;this.h=o(this.host);this.labelId=n("GovDialogLabel");this.contentId=n("GovDialogContent")}watchOpen(e){this.open=e;this.setFocus().finally()}showDialog(){this.open=true;document.body.classList.add(m.bodyFix)}hideDialog(){this.open=false;document.body.classList.remove(m.bodyFix)}async componentDidRender(){if(d()){h((()=>this.validateAccessibility()))}if(this.open){this.showDialog()}else{this.hideDialog()}}connectedCallback(){this.hydrated=true}disconnectedCallback(){document.body.classList.remove(m.bodyFix)}render(){return i(t,{key:"c3b65521da7837b81972262ecf614d3c12f14bb3",class:this.h.classes(m.root),open:this.open,hydrated:this.hydrated},i("dialog",{key:"98b6d6db6fc9bd35760c03586548cc8a2470752a",class:m.dialog,hidden:!this.open,tabindex:c(this.open),open:this.open,"aria-modal":"true","aria-hidden":l(!this.open),"aria-labelledby":this.accessibleLabelledBy||this.labelId,"aria-describedby":this.accessibleDescribedBy||this.contentId,role:this.role},i("div",{key:"a8517c656ef3d3e3cf17bc9914e268a20b0e0e4b",class:m.inner},i("div",{key:"3ba16e3bafe7936f0c0a999d45d5efdd64291ec3",class:m.header},i("slot",{key:"736a0a11d601e9f522e69369ffa0f276c9673803",name:"icon"}),this.h.hasSlot("title")&&i("span",{key:"5505a53174c82c1faf73ed500c5672f2dc8ea83b",class:m.title,id:this.labelId},i("slot",{key:"391dd6236c23c14e62c8c97a94c5733409939c32",name:"title"})),i("gov-button",{key:"867505a691e69da09808350fc7eefb51974005ba",ref:e=>this.closeCtaRef=e,disabled:this.blockClose,class:m.close,color:"primary","aria-label":this.accessibleCloseLabel,"aria-labelledby":this.accessibleCloseLabelledBy,type:"base","on-gov-click":this.onCloseHandler.bind(this)},i("gov-icon",{key:"6fe742ccf5aca7f27cac627373a338d46bbccfda",slot:"icon-start",name:"x-lg",type:"components"}))),i("div",{key:"9d9d6a45d79215ba5415512405ce7577d6a1dc26",class:m.content,id:this.contentId},i("slot",{key:"f9b32ee565586b3741c166a0aa14ca1d1c55f032"})),this.h.hasSlot("footer")&&i("div",{key:"8628b46f0196f38f7d2f273f0860a7c6cee62655",class:m.footer},i("slot",{key:"0742967012eab82c36f9dfe0f3b43213be8bcd47",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(){b(this.accessibleLabelledBy,"accessible-labelled-by",m.root);b(this.accessibleDescribedBy,"accessible-described-by",m.root)}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[4,"gov-dialog",{open:[1540],blockClose:[4,"block-close"],blockBackdropClose:[4,"block-backdrop-close"],role:[1],labelTag:[1,"label-tag"],accessibleLabelledBy:[1,"accessible-labelled-by"],accessibleDescribedBy:[1,"accessible-described-by"],accessibleCloseLabel:[1,"accessible-close-label"],accessibleCloseLabelledBy:[1,"accessible-close-labelled-by"],setFocus:[64],validateAccessibility:[64]},undefined,{open:["watchOpen"]}]);function y(){if(typeof customElements==="undefined"){return}const e=["gov-dialog","gov-backdrop","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-dialog":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-button":if(!customElements.get(e)){f()}break;case"gov-icon":if(!customElements.get(e)){g()}break}}))}y();const v=p;const k=y;export{v as GovDialog,k as defineCustomElement};
2
2
  //# sourceMappingURL=gov-dialog.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as s,d as a}from"./p-42200001.js";import{p as o}from"./p-e0e2e9c1.js";import{S as c}from"./p-92f420cb.js";import{g as i}from"./p-ea7fdd2e.js";import{v as n}from"./p-a2435993.js";import{A as f,a as r}from"./p-d4509899.js";o(c,["_S","_M","_L"]);const m={root:"gov-empty",content:"gov-empty__content"};const d=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.h=i(this.host)}validateSize(e){n(r,e,f.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(a,{key:"25d3813acc796b96c6e51aec4a55fc2efa725aa6",class:this.h.classes(m.root),size:this.size},this.h.hasSlot("icon")&&s("slot",{key:"7fccad0fe25b57219f06cfbcf18a2f2bff19c905",name:"icon"}),s("div",{key:"a4cffd5e7175ba9273a5ea74ba622e2a577ba0fe",class:m.content},s("slot",{key:"53fd435d43baa4841ecb5e3d5817efcb57433eab",name:"headline"}),s("slot",{key:"314e7a0fd7a381dbc4a85da4df2082ce4946b7b5"})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-empty",{size:[1]},undefined,{size:["validateSize"]}]);function p(){if(typeof customElements==="undefined"){return}const e=["gov-empty"];e.forEach((e=>{switch(e){case"gov-empty":if(!customElements.get(e)){customElements.define(e,d)}break}}))}p();const b=d;const l=p;export{b as GovEmpty,l as defineCustomElement};
1
+ import{p as e,H as t,h as s,d as a}from"./p-42200001.js";import{p as o}from"./p-e0e2e9c1.js";import{S as c}from"./p-92f420cb.js";import{g as i}from"./p-ea7fdd2e.js";import{v as n}from"./p-0b3574c2.js";import{A as r,a as d}from"./p-d4509899.js";o(c,["_S","_M","_L"]);const f={root:"gov-empty",content:"gov-empty__content"};const m=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.h=i(this.host)}validateSize(e){n(d,e,r.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(a,{key:"3346bc91e4af67ca885ec89364d3caed0553f87c",class:this.h.classes(f.root),size:this.size},this.h.hasSlot("icon")&&s("slot",{key:"6ae5bf19e792bc94fedaa9fe3a56cafa103356f4",name:"icon"}),s("div",{key:"3cb5595ef6de22c590844902d5fe59a2066b0bf7",class:f.content},s("slot",{key:"dedf42aac4d7a4304a0eeeae7e5a7e1be8e4aac5",name:"headline"}),s("slot",{key:"0d061d5b70d90c3bf6446ff78618e6506446bde2"})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-empty",{size:[1]},undefined,{size:["validateSize"]}]);function p(){if(typeof customElements==="undefined"){return}const e=["gov-empty"];e.forEach((e=>{switch(e){case"gov-empty":if(!customElements.get(e)){customElements.define(e,m)}break}}))}p();const l=m;const h=p;export{l as GovEmpty,h as defineCustomElement};
2
2
  //# sourceMappingURL=gov-empty.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,h as t,d as c}from"./p-42200001.js";import{g as s}from"./p-ea7fdd2e.js";const r={root:"gov-error-code",content:"gov-error-code__content"};const n=e(class e extends o{constructor(){super();this.__registerHost();this.h=s(this.host)}render(){return t(c,{key:"90ebeeb8f2e7ed539e7069a876aa1fe3027873fc",class:this.h.classes(r.root),align:"center"},this.h.hasSlot("icon")&&t("slot",{key:"a31a15dd5276be32288c691d5bb7b8cf9d6615ab",name:"icon"}),t("div",{key:"0dfc7905d1e515a7ecc1eba1dd3912cd32774ca3",class:r.content},t("slot",{key:"238e3ab94cf05880567e2ac2c54c9f9c572ff014",name:"headline"}),t("slot",{key:"56519d70f3ab7b162e9e9a78bf7bfabef89a9b2d"})))}get host(){return this}},[4,"gov-error-code"]);function a(){if(typeof customElements==="undefined"){return}const e=["gov-error-code"];e.forEach((e=>{switch(e){case"gov-error-code":if(!customElements.get(e)){customElements.define(e,n)}break}}))}a();const d=n;const f=a;export{d as GovErrorCode,f as defineCustomElement};
1
+ import{p as e,H as o,h as t,d as c}from"./p-42200001.js";import{g as s}from"./p-ea7fdd2e.js";const r={root:"gov-error-code",content:"gov-error-code__content"};const n=e(class e extends o{constructor(){super();this.__registerHost();this.h=s(this.host)}render(){return t(c,{key:"c47e051194598ee060955a36959d11340b66dadc",class:this.h.classes(r.root),align:"center"},this.h.hasSlot("icon")&&t("slot",{key:"510cdd27231b580403e76154d263af37877bd7b3",name:"icon"}),t("div",{key:"1b65726c29093652b1f2b6470669cedb5b951c7b",class:r.content},t("slot",{key:"d5fb45bfdfd4cc096e9f4ed213f0b50baaf225e6",name:"headline"}),t("slot",{key:"1950c6c8b034319c3d499b3470b4a2e0e1c7855a"})))}get host(){return this}},[4,"gov-error-code"]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-error-code"];e.forEach((e=>{switch(e){case"gov-error-code":if(!customElements.get(e)){customElements.define(e,n)}break}}))}d();const a=n;const b=d;export{a as GovErrorCode,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-error-code.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as n,d as s}from"./p-42200001.js";import{g as i}from"./p-ea7fdd2e.js";const o={root:"gov-flex"};const f=e(class e extends t{constructor(){super();this.__registerHost();this.direction="row";this.justifyContent=undefined;this.alignItems=undefined;this.wrap=undefined;this.alignContent=undefined;this.alignSelf=undefined;this.h=i(this.host)}render(){return n(s,{key:"77d5eb1db594698f6fde4bf497209912de71173f",class:this.h.classes(o.root)},n("slot",{key:"6c01ff6ec88c53dbf9e83d492f660c96e9e7fc2a"}))}get host(){return this}},[4,"gov-flex",{direction:[1],justifyContent:[513,"justify-content"],alignItems:[513,"align-items"],wrap:[513],alignContent:[513,"align-content"],alignSelf:[513,"align-self"]}]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-flex"];e.forEach((e=>{switch(e){case"gov-flex":if(!customElements.get(e)){customElements.define(e,f)}break}}))}d();const c=f;const r=d;export{c as GovFlex,r as defineCustomElement};
1
+ import{p as e,H as t,h as n,d as s}from"./p-42200001.js";import"./p-92f420cb.js";import{g as i}from"./p-ea7fdd2e.js";const o={root:"gov-flex"};const f=e(class e extends t{constructor(){super();this.__registerHost();this.direction="row";this.justifyContent=undefined;this.alignItems=undefined;this.wrap=undefined;this.alignContent=undefined;this.alignSelf=undefined;this.gap=undefined;this.h=i(this.host)}render(){return n(s,{key:"08c1591134f0b5c95a18ac9e1d3723c12d9bc47b",class:this.h.classes(o.root)},n("slot",{key:"b66fb8ffa35b0fb98eed3440a55a92a1bd97eb76"}))}get host(){return this}},[4,"gov-flex",{direction:[1],justifyContent:[513,"justify-content"],alignItems:[513,"align-items"],wrap:[513],alignContent:[513,"align-content"],alignSelf:[513,"align-self"],gap:[513]}]);function c(){if(typeof customElements==="undefined"){return}const e=["gov-flex"];e.forEach((e=>{switch(e){case"gov-flex":if(!customElements.get(e)){customElements.define(e,f)}break}}))}c();const d=f;const a=c;export{d as GovFlex,a as defineCustomElement};
2
2
  //# sourceMappingURL=gov-flex.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FlexClass","root","GovFlex","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx"],"sourcesContent":["export const FlexClass = {\n\troot: 'gov-flex',\n}\n\n","import {Component, Element, h, Host, Prop} from '@stencil/core'\nimport {FlexClass} from './constants'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-flex',\n})\nexport class GovFlex {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Controls the flex direction of the container. Can be 'row', 'row-reverse', 'column', or 'column-reverse'.\n\t */\n\t@Prop() direction: 'row' | 'row-reverse' | 'column' | 'column-reverse' = 'row';\n\n\t/**\n\t * Defines how the browser distributes space between and around content items along the main axis.\n\t * Allowed values: 'flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly'.\n\t */\n\t@Prop({\n\t\tattribute: 'justify-content',\n\t\treflect: true\n\t}) justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';\n\n\t/**\n\t * Aligns flex items along the cross axis. Can be 'stretch', 'flex-start', 'flex-end', 'center', or 'baseline'.\n\t */\n\t@Prop({\n\t\tattribute: 'align-items', reflect: true\n\t}) alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';\n\n\t/**\n\t * Controls whether the flex container is a single-line or multi-line flex container. Can be 'nowrap', 'wrap', or 'wrap-reverse'.\n\t */\n\t@Prop({reflect: true}) wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n\n\t/**\n\t * Aligns the flex container's lines within when there is extra space in the cross-axis.\n\t * Allowed values: 'flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'stretch'.\n\t */\n\t@Prop({\n\t\tattribute: 'align-content',\n\t\treflect: true\n\t}) alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';\n\n\t/**\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.\n\t * Allowed values: 'auto', 'flex-start', 'flex-end', 'center', 'baseline', 'stretch'.\n\t */\n\t@Prop({\n\t\tattribute: 'align-self',\n\t\treflect: true\n\t}) alignSelf?: 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FlexClass.root)}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"6FAAO,MAAMA,EAAY,CACxBC,KAAM,Y,MCOMC,EAAOC,EAAA,MAAAD,UAAAE,EAGnB,WAAAC,G,6CASyE,M,iIARxEC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAiDvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQd,EAAUC,OACrCM,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
1
+ {"version":3,"names":["FlexClass","root","GovFlex","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes"],"sources":["../../../packages/core/src/components/gov-flex/constants.ts","../../../packages/core/src/components/gov-flex/gov-flex.tsx"],"sourcesContent":["import {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const FlexSizes = Sizes\nexport type FlexSizesType = `${ValueOf<typeof FlexSizes>}`\n\nexport const FlexClass = {\n\troot: 'gov-flex',\n}\n\n","import {Component, Element, h, Host, Prop} from '@stencil/core'\nimport {FlexClass, FlexSizesType} from './constants'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-flex',\n})\nexport class GovFlex {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Controls the flex direction of the container.\n\t */\n\t@Prop() direction: 'row' | 'row-reverse' | 'column' | 'column-reverse' = 'row';\n\n\t/**\n\t * Defines how the browser distributes space between and around content items along the main axis.\n\t */\n\t@Prop({\n\t\tattribute: 'justify-content',\n\t\treflect: true\n\t}) justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';\n\n\t/**\n\t * Aligns flex items along the cross axis.\n\t */\n\t@Prop({\n\t\tattribute: 'align-items',\n\t\treflect: true\n\t}) alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';\n\n\t/**\n\t * Controls whether the flex container is a single-line or multi-line flex container.\n\t */\n\t@Prop({reflect: true}) wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n\n\t/**\n\t * Aligns the flex container's lines within when there is extra space in the cross-axis.\n\t */\n\t@Prop({\n\t\tattribute: 'align-content',\n\t\treflect: true\n\t}) alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'stretch';\n\n\t/**\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.\n\t */\n\t@Prop({\n\t\tattribute: 'align-self',\n\t\treflect: true\n\t}) alignSelf?: 'auto' | 'normal' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch' | 'anchor-center';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({\n\t\tattribute: 'gap',\n\t\treflect: true\n\t}) gap?: FlexSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FlexClass.root)}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"qHAMO,MAAMA,EAAY,CACxBC,KAAM,Y,MCCMC,EAAOC,EAAA,MAAAD,UAAAE,EAGnB,WAAAC,G,6CASyE,M,oJARxEC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAuDvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQd,EAAUC,OACrCM,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-45097b4c.js";const t=o;const c=s;export{t as GovFormAutocomplete,c as defineCustomElement};
1
+ import{G as o,d as s}from"./p-ce90ff14.js";const t=o;const c=s;export{t as GovFormAutocomplete,c as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-autocomplete.js.map
@@ -1,2 +1,2 @@
1
- import{p as o,H as r,c as a,h as g,d as e}from"./p-42200001.js";import{F as t,a as i,b as p,c as n}from"./p-e44a0fee.js";import{g as m}from"./p-ea7fdd2e.js";import{v as f}from"./p-a2435993.js";import{t as l}from"./p-26618322.js";import{p as s}from"./p-ded281e6.js";const v=":root{--roboto:Roboto, sans-serif}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 !important;margin-bottom:0 !important;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-s-nudge))}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-m))}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-m-nudge))}";const c=v;const u=o(class o extends r{constructor(){super();this.__registerHost();this.govChange=a(this,"gov-change",7);this.handleChange=o=>{var r;o.stopPropagation();const a=s(this.value);if(!Array.isArray(a))return;if(o.detail.checked){this.value=[...a,o.detail.value]}else{this.value=(r=a.filter((r=>r!==o.detail.value)))!==null&&r!==void 0?r:[]}this.govChange.emit({value:this.value,component:t.root})};this.gap=undefined;this.orientation="vertical";this.value=undefined;this.h=m(this.host)}validateGap(o){if(o){f(p,o,i.root)}}validateOrientation(o){if(o){f(n,o,i.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation);this.value=s(this.value)}componentDidRender(){l((()=>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(e,{key:"9f0b69dea278df308a3ad5dacf989d4a89687b2a",gap:this.gap,class:this.h.classes(i.root),value:this.value},g("slot",{key:"14abf79a5ef9bc899b2732f6ae159781afa51fe2"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}static get style(){return c}},[4,"gov-form-checkbox-group",{gap:[1],orientation:[1],value:[1025]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function h(){if(typeof customElements==="undefined"){return}const o=["gov-form-checkbox-group"];o.forEach((o=>{switch(o){case"gov-form-checkbox-group":if(!customElements.get(o)){customElements.define(o,u)}break}}))}h();const d=u;const b=h;export{d as GovFormCheckboxGroup,b as defineCustomElement};
1
+ import{p as o,H as r,c as a,h as g,d as e}from"./p-42200001.js";import{F as t,a as i,b as p,c as n}from"./p-e44a0fee.js";import{g as m}from"./p-ea7fdd2e.js";import{v as l}from"./p-0b3574c2.js";import{t as s}from"./p-26618322.js";import{p as f}from"./p-ded281e6.js";const v="gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0;margin-bottom:0;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:var(--gap, var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:var(--gap, var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:var(--gap, var(--spacing-s-nudge))}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-m))}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-m-nudge))}";const c=v;const u=o(class o extends r{constructor(){super();this.__registerHost();this.govChange=a(this,"gov-change",7);this.handleChange=o=>{var r;o.stopPropagation();const a=f(this.value);if(!Array.isArray(a))return;if(o.detail.checked){this.value=[...a,o.detail.value]}else{this.value=(r=a.filter((r=>r!==o.detail.value)))!==null&&r!==void 0?r:[]}this.govChange.emit({value:this.value,component:t.root})};this.gap=undefined;this.orientation="vertical";this.value=undefined;this.h=m(this.host)}validateGap(o){if(o){l(p,o,i.root)}}validateOrientation(o){if(o){l(n,o,i.root)}}componentWillLoad(){this.validateGap(this.gap);this.validateOrientation(this.orientation);this.value=f(this.value)}componentDidRender(){s((()=>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(e,{key:"7f71876a9b72b688bb354a1477153bd8d1b5ad05",gap:this.gap,class:this.h.classes(i.root),value:this.value},g("slot",{key:"2b3ce2b04ab3a2e55128a6d8c00a1d41217061f6"}))}get host(){return this}static get watchers(){return{gap:["validateGap"],orientation:["validateOrientation"]}}static get style(){return c}},[4,"gov-form-checkbox-group",{gap:[1],orientation:[1],value:[1025]},undefined,{gap:["validateGap"],orientation:["validateOrientation"]}]);function h(){if(typeof customElements==="undefined"){return}const o=["gov-form-checkbox-group"];o.forEach((o=>{switch(o){case"gov-form-checkbox-group":if(!customElements.get(o)){customElements.define(o,u)}break}}))}h();const b=u;const d=h;export{b as GovFormCheckboxGroup,d as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-checkbox-group.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["govFormGroupCss","GovFormCheckboxGroupStyle0","GovFormCheckboxGroup","proxyCustomElement","H","constructor","this","handleChange","event","stopPropagation","value","propsValueToArray","Array","isArray","detail","checked","_a","filter","val","govChange","emit","component","FormCheckboxGroupClass","root","undefined","h","govHost","host","validateGap","newValue","validateProp","FormGroupSizes","FormGroupClass","validateOrientation","FormGroupOrientation","componentWillLoad","gap","orientation","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 Control */\n\n\ngov-form-group, .gov-form-group,\ngov-form-radio-group, .gov-form-radio-group,\ngov-form-checkbox-group, .gov-form-checkbox-group {\n\t// VARIABLES\n\t@import \"./gov-form-group-variables\";\n\n\t@include reset-margin();\n\t@include base(flex);\n\tflex-direction: column;\n\talign-items: flex-start;\n\t.gov-form-label__label {\n\t\tmargin: 0;\n\t}\n\n\t&[orientation=\"horizontal\"] {\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\t.gov-form-label__label {\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t// SIZES\n\t@each $size, $definitions in $form-group-gaps {\n\t\t&[gap=\"#{$size}\"] {\n\t\t\tgap: map-get($definitions, \"gap\");\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {\n\tFormCheckboxGroupClass,\n\tFormGroupClass,\n\tFormGroupOrientation,\n\tFormGroupOrientationType,\n\tFormGroupSizes,\n\tFormGroupSizesType\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormCheckboxEvent} from \"../checkbox/gov-form-checkbox.types\"\nimport {FormCheckboxGroupEvent} from \"./gov-form-group.types\"\nimport {tick} from \"../../../utils/stencil.utils\"\nimport {propsValueToArray} from \"../../../utils/array.utils\"\n\n@Component({\n\ttag: \"gov-form-checkbox-group\",\n\tstyleUrl: \"gov-form-group.scss\",\n})\nexport class GovFormCheckboxGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovFormGroupElement\n\t/**\n\t * Gap's size.\n\t */\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\n\t/**\n\t * Elements orientation\n\t */\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\t/**\n\t * Group's value\n\t */\n\t@Prop({attribute: \"value\", mutable: true}) value?: string | string[] = undefined\n\t/**\n /* Emitted when the checkbox change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormCheckboxGroupEvent>\n\n\t@Watch(\"gap\")\n\tvalidateGap(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\t@Watch(\"orientation\")\n\tvalidateOrientation(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupOrientation, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\thandleChange = (event: CustomEvent<FormCheckboxEvent>) => {\n\t\tevent.stopPropagation()\n\t\tconst value = propsValueToArray<string[]>(this.value);\n\t\tif (!Array.isArray(value)) return;\n\t\tif (event.detail.checked) {\n\t\t\tthis.value = [...value, event.detail.value]\n\t\t} else {\n\t\t\tthis.value = value.filter((val) => val !== event.detail.value) ?? []\n\t\t}\n\t\tthis.govChange.emit({\n\t\t\tvalue: this.value,\n\t\t\tcomponent: FormCheckboxGroupClass.root,\n\t\t})\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateGap(this.gap)\n\t\tthis.validateOrientation(this.orientation)\n\t\tthis.value = propsValueToArray(this.value)\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.rerenderComponent())\n\t}\n\n\trerenderComponent(): void {\n\t\tthis.host.querySelectorAll('gov-form-checkbox').forEach((element) => {\n\t\t\tif (!element.hasAttribute('listener-attached')) {\n\t\t\t\telement.addEventListener('gov-change', this.handleChange)\n\t\t\t}\n\t\t\telement.setAttribute('listener-attached', 'true')\n\t\t\telement.checked = this.value.includes(element.value);\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)} value={this.value}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"yQAAA,MAAMA,EAAkB,0wEACxB,MAAAC,EAAeD,E,MCoBFE,EAAoBC,EAAA,MAAAD,UAAAE,EAGhC,WAAAC,G,oEAoCAC,KAAAC,aAAgBC,I,MACfA,EAAMC,kBACN,MAAMC,EAAQC,EAA4BL,KAAKI,OAC/C,IAAKE,MAAMC,QAAQH,GAAQ,OAC3B,GAAIF,EAAMM,OAAOC,QAAS,CACzBT,KAAKI,MAAQ,IAAIA,EAAOF,EAAMM,OAAOJ,M,KAC/B,CACNJ,KAAKI,OAAQM,EAAAN,EAAMO,QAAQC,GAAQA,IAAQV,EAAMM,OAAOJ,WAAM,MAAAM,SAAA,EAAAA,EAAI,E,CAEnEV,KAAKa,UAAUC,KAAK,CACnBV,MAAOJ,KAAKI,MACZW,UAAWC,EAAuBC,MACjC,E,SAxCyCC,U,iBAIc,W,WAIaA,UAftElB,KAAKmB,EAAIC,EAAQpB,KAAKqB,K,CAsBvB,WAAAC,CAAYC,GACX,GAAIA,EAAU,CACbC,EAAaC,EAAgBF,EAAUG,EAAeT,K,EAKxD,mBAAAU,CAAoBJ,GACnB,GAAIA,EAAU,CACbC,EAAaI,EAAsBL,EAAUG,EAAeT,K,EAmB9D,iBAAAY,GACC7B,KAAKsB,YAAYtB,KAAK8B,KACtB9B,KAAK2B,oBAAoB3B,KAAK+B,aAC9B/B,KAAKI,MAAQC,EAAkBL,KAAKI,M,CAGrC,kBAAA4B,GACCC,GAAK,IAAMjC,KAAKkC,qB,CAGjB,iBAAAA,GACClC,KAAKqB,KAAKc,iBAAiB,qBAAqBC,SAASC,IACxD,IAAKA,EAAQC,aAAa,qBAAsB,CAC/CD,EAAQE,iBAAiB,aAAcvC,KAAKC,a,CAE7CoC,EAAQG,aAAa,oBAAqB,QAC1CH,EAAQ5B,QAAUT,KAAKI,MAAMqC,SAASJ,EAAQjC,MAAM,G,CAItD,MAAAsC,GACC,OACCvB,EAACwB,EAAI,CAAAC,IAAA,2CAACd,IAAK9B,KAAK8B,IAAKe,MAAO7C,KAAKmB,EAAE2B,QAAQpB,EAAeT,MAAOb,MAAOJ,KAAKI,OAC5Ee,EAAA,QAAAyB,IAAA,6C","ignoreList":[]}
1
+ {"version":3,"names":["govFormGroupCss","GovFormCheckboxGroupStyle0","GovFormCheckboxGroup","proxyCustomElement","H","constructor","this","handleChange","event","stopPropagation","value","propsValueToArray","Array","isArray","detail","checked","_a","filter","val","govChange","emit","component","FormCheckboxGroupClass","root","undefined","h","govHost","host","validateGap","newValue","validateProp","FormGroupSizes","FormGroupClass","validateOrientation","FormGroupOrientation","componentWillLoad","gap","orientation","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 Control */\n\n\ngov-form-group, .gov-form-group,\ngov-form-radio-group, .gov-form-radio-group,\ngov-form-checkbox-group, .gov-form-checkbox-group {\n\t// VARIABLES\n\t@import \"./gov-form-group-variables\";\n\n\t@include reset-margin();\n\t@include base(flex);\n\tflex-direction: column;\n\talign-items: flex-start;\n\t.gov-form-label__label {\n\t\tmargin: 0;\n\t}\n\n\t&[orientation=\"horizontal\"] {\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\t.gov-form-label__label {\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t// SIZES\n\t@each $size, $definitions in $form-group-gaps {\n\t\t&[gap=\"#{$size}\"] {\n\t\t\tgap: map-get($definitions, \"gap\");\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {\n\tFormCheckboxGroupClass,\n\tFormGroupClass,\n\tFormGroupOrientation,\n\tFormGroupOrientationType,\n\tFormGroupSizes,\n\tFormGroupSizesType\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormCheckboxEvent} from \"../checkbox/gov-form-checkbox.types\"\nimport {FormCheckboxGroupEvent} from \"./gov-form-group.types\"\nimport {tick} from \"../../../utils/stencil.utils\"\nimport {propsValueToArray} from \"../../../utils/array.utils\"\n\n@Component({\n\ttag: \"gov-form-checkbox-group\",\n\tstyleUrl: \"gov-form-group.scss\",\n})\nexport class GovFormCheckboxGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovFormGroupElement\n\t/**\n\t * Gap's size.\n\t */\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\n\t/**\n\t * Elements orientation\n\t */\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\t/**\n\t * Group's value\n\t */\n\t@Prop({attribute: \"value\", mutable: true}) value?: string | string[] = undefined\n\t/**\n /* Emitted when the checkbox change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormCheckboxGroupEvent>\n\n\t@Watch(\"gap\")\n\tvalidateGap(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\t@Watch(\"orientation\")\n\tvalidateOrientation(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupOrientation, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\thandleChange = (event: CustomEvent<FormCheckboxEvent>) => {\n\t\tevent.stopPropagation()\n\t\tconst value = propsValueToArray<string[]>(this.value);\n\t\tif (!Array.isArray(value)) return;\n\t\tif (event.detail.checked) {\n\t\t\tthis.value = [...value, event.detail.value]\n\t\t} else {\n\t\t\tthis.value = value.filter((val) => val !== event.detail.value) ?? []\n\t\t}\n\t\tthis.govChange.emit({\n\t\t\tvalue: this.value,\n\t\t\tcomponent: FormCheckboxGroupClass.root,\n\t\t})\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateGap(this.gap)\n\t\tthis.validateOrientation(this.orientation)\n\t\tthis.value = propsValueToArray(this.value)\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.rerenderComponent())\n\t}\n\n\trerenderComponent(): void {\n\t\tthis.host.querySelectorAll('gov-form-checkbox').forEach((element) => {\n\t\t\tif (!element.hasAttribute('listener-attached')) {\n\t\t\t\telement.addEventListener('gov-change', this.handleChange)\n\t\t\t}\n\t\t\telement.setAttribute('listener-attached', 'true')\n\t\t\telement.checked = this.value.includes(element.value);\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)} value={this.value}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"yQAAA,MAAMA,EAAkB,ktEACxB,MAAAC,EAAeD,E,MCoBFE,EAAoBC,EAAA,MAAAD,UAAAE,EAGhC,WAAAC,G,oEAoCAC,KAAAC,aAAgBC,I,MACfA,EAAMC,kBACN,MAAMC,EAAQC,EAA4BL,KAAKI,OAC/C,IAAKE,MAAMC,QAAQH,GAAQ,OAC3B,GAAIF,EAAMM,OAAOC,QAAS,CACzBT,KAAKI,MAAQ,IAAIA,EAAOF,EAAMM,OAAOJ,M,KAC/B,CACNJ,KAAKI,OAAQM,EAAAN,EAAMO,QAAQC,GAAQA,IAAQV,EAAMM,OAAOJ,WAAM,MAAAM,SAAA,EAAAA,EAAI,E,CAEnEV,KAAKa,UAAUC,KAAK,CACnBV,MAAOJ,KAAKI,MACZW,UAAWC,EAAuBC,MACjC,E,SAxCyCC,U,iBAIc,W,WAIaA,UAftElB,KAAKmB,EAAIC,EAAQpB,KAAKqB,K,CAsBvB,WAAAC,CAAYC,GACX,GAAIA,EAAU,CACbC,EAAaC,EAAgBF,EAAUG,EAAeT,K,EAKxD,mBAAAU,CAAoBJ,GACnB,GAAIA,EAAU,CACbC,EAAaI,EAAsBL,EAAUG,EAAeT,K,EAmB9D,iBAAAY,GACC7B,KAAKsB,YAAYtB,KAAK8B,KACtB9B,KAAK2B,oBAAoB3B,KAAK+B,aAC9B/B,KAAKI,MAAQC,EAAkBL,KAAKI,M,CAGrC,kBAAA4B,GACCC,GAAK,IAAMjC,KAAKkC,qB,CAGjB,iBAAAA,GACClC,KAAKqB,KAAKc,iBAAiB,qBAAqBC,SAASC,IACxD,IAAKA,EAAQC,aAAa,qBAAsB,CAC/CD,EAAQE,iBAAiB,aAAcvC,KAAKC,a,CAE7CoC,EAAQG,aAAa,oBAAqB,QAC1CH,EAAQ5B,QAAUT,KAAKI,MAAMqC,SAASJ,EAAQjC,MAAM,G,CAItD,MAAAsC,GACC,OACCvB,EAACwB,EAAI,CAAAC,IAAA,2CAACd,IAAK9B,KAAK8B,IAAKe,MAAO7C,KAAKmB,EAAE2B,QAAQpB,EAAeT,MAAOb,MAAOJ,KAAKI,OAC5Ee,EAAA,QAAAyB,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,d as h}from"./p-42200001.js";import{c as n}from"./p-cd6c2938.js";import{v as a}from"./p-a2435993.js";import{g as o,d as r,e as c}from"./p-9908b9f0.js";import{g as d,c as l,t as m}from"./p-ea7fdd2e.js";import{F as u}from"./p-1c1d0bbe.js";import{i as f,A as p,a as b}from"./p-33d5d1ed.js";import{d as v}from"./p-f44899e1.js";const g=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govChange=i(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.checked=false;this.required=false;this.disabled=false;this.indeterminate=false;this.name=undefined;this.size="m";this.identifier=undefined;this.noLabel=false;this.invalid=undefined;this.inheritedAttributes={};this.checkboxId=n("GovCheckbox");this.h=d(this.host);this.f=o(this.h)}validateSize(t){a(c,t,r.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("type","checkbox")}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=f(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){this.attributeObserver.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 e("label",{class:r.label},t)}return t};return e(h,{class:r.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},t(e(u,null,e("input",Object.assign({id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled,indeterminate:this.indeterminate,ref:t=>this.inputRef=t},this.inheritedAttributes,{"aria-checked":l(this.checked),"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("slot",{name:"label"}),e("gov-icon",{class:r.check,name:"check-lg",type:"components"}),e("gov-icon",{class:r.indeterminate,name:"dash-lg",type:"components"})))))}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onClickHandler(t){t.stopPropagation()}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-checkbox",{value:[1],checked:[1540],required:[4],disabled:[4],indeterminate:[516],name:[1],size:[1],identifier:[1],noLabel:[4,"no-label"],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-checkbox","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-checkbox":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}k();const C=g;const A=k;export{C as GovFormCheckbox,A as defineCustomElement};
1
+ import{p as t,H as s,c as i,h as e,d as h}from"./p-42200001.js";import{c as n}from"./p-cd6c2938.js";import{v as a}from"./p-0b3574c2.js";import{g as o,d as r,e as c}from"./p-9908b9f0.js";import{g as d,c as l,t as m}from"./p-ea7fdd2e.js";import{F as u}from"./p-1c1d0bbe.js";import{i as f,A as p,a as b}from"./p-33d5d1ed.js";import{d as v}from"./p-18ab0d24.js";const g=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govChange=i(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.checked=false;this.required=false;this.disabled=false;this.indeterminate=false;this.name=undefined;this.size="m";this.identifier=undefined;this.noLabel=false;this.invalid=undefined;this.inheritedAttributes={};this.checkboxId=n("GovCheckbox");this.h=d(this.host);this.f=o(this.h)}validateSize(t){a(c,t,r.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("type","checkbox")}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=f(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){this.attributeObserver.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 e("label",{class:r.label},t)}return t};return e(h,{class:r.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},t(e(u,null,e("input",Object.assign({id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled,indeterminate:this.indeterminate,ref:t=>this.inputRef=t},this.inheritedAttributes,{"aria-checked":l(this.checked),"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("slot",{name:"label"}),e("gov-icon",{class:r.check,name:"check-lg",type:"components"}),e("gov-icon",{class:r.indeterminate,name:"dash-lg",type:"components"})))))}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onClickHandler(t){t.stopPropagation()}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-checkbox",{value:[1],checked:[1540],required:[4],disabled:[516],indeterminate:[516],name:[1],size:[513],identifier:[1],noLabel:[4,"no-label"],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-checkbox","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-checkbox":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}k();const C=g;const A=k;export{C as GovFormCheckbox,A as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-checkbox.js.map