@gov-design-system-ce/components 4.6.5-b → 4.6.5

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 (744) hide show
  1. package/dist/cjs/gov-flex_3.cjs.entry.js +1 -1
  2. package/dist/components/gov-accordion-item.js +1 -1
  3. package/dist/components/gov-attachments-item.js +1 -1
  4. package/dist/components/gov-blockquote.js +1 -1
  5. package/dist/components/gov-breadcrumbs.js +1 -1
  6. package/dist/components/gov-button.js +1 -1
  7. package/dist/components/gov-card.js +1 -1
  8. package/dist/components/gov-chip.js +1 -1
  9. package/dist/components/gov-collapsible.js +1 -1
  10. package/dist/components/gov-dialog.js +1 -1
  11. package/dist/components/gov-form-autocomplete.js +1 -1
  12. package/dist/components/gov-form-checkbox.js +1 -1
  13. package/dist/components/gov-form-file.js +1 -1
  14. package/dist/components/gov-form-input.js +1 -1
  15. package/dist/components/gov-form-multi-select.js +1 -1
  16. package/dist/components/gov-form-range.js +1 -1
  17. package/dist/components/gov-form-select.js +1 -1
  18. package/dist/components/gov-form-switch.js +1 -1
  19. package/dist/components/gov-icon.js +1 -1
  20. package/dist/components/gov-infobar.js +1 -1
  21. package/dist/components/gov-link.js +1 -1
  22. package/dist/components/gov-loading.js +1 -1
  23. package/dist/components/gov-pagination.js +1 -1
  24. package/dist/components/gov-tabs.js +1 -1
  25. package/dist/components/gov-tag.js +1 -1
  26. package/dist/components/gov-theme-switch.js +1 -1
  27. package/dist/components/gov-tile.js +1 -1
  28. package/dist/components/gov-toast.js +1 -1
  29. package/dist/components/gov-tooltip-content.js +1 -1
  30. package/dist/components/gov-wizard-item.js +1 -1
  31. package/dist/components/{p-isPjiQbr.js → p-BIB-JMbL.js} +2 -2
  32. package/dist/components/{p-BICk4EuO.js → p-BVG9PtuQ.js} +2 -2
  33. package/dist/components/{p-DmK9qaKH.js → p-DV0Pdd1S.js} +2 -2
  34. package/dist/components/p-Dj-FiQ37.js +2 -0
  35. package/dist/components/{p-DRXiDAHW.js.map → p-Dj-FiQ37.js.map} +1 -1
  36. package/dist/components/{p-DjGO_trZ.js → p-DlpZtTcv.js} +2 -2
  37. package/dist/components/{p-BNoNH6m-.js → p-Dw1o8KoZ.js} +2 -2
  38. package/dist/components/{p-BGK46VRO.js → p-NU_8kxGz.js} +2 -2
  39. package/dist/components/{p-ClDhNt_H.js → p-o4vVG5sG.js} +2 -2
  40. package/dist/core/core.css +14776 -0
  41. package/dist/core/core.esm.js +1 -1
  42. package/dist/core/core.esm.js.map +1 -1
  43. package/dist/core/gov-accordion-item.entry.esm.js.map +1 -0
  44. package/dist/core/gov-accordion.entry.esm.js.map +1 -0
  45. package/dist/core/gov-attachments.gov-attachments-item.gov-form-message.entry.esm.js.map +1 -0
  46. package/dist/core/gov-backdrop.entry.esm.js.map +1 -0
  47. package/dist/core/gov-banner.entry.esm.js.map +1 -0
  48. package/dist/core/gov-blockquote.entry.esm.js.map +1 -0
  49. package/dist/core/gov-breadcrumbs.entry.esm.js.map +1 -0
  50. package/dist/core/gov-button.entry.esm.js.map +1 -0
  51. package/dist/core/gov-card.entry.esm.js.map +1 -0
  52. package/dist/core/gov-chip.entry.esm.js.map +1 -0
  53. package/dist/core/gov-collapsible.entry.esm.js.map +1 -0
  54. package/dist/core/gov-container.entry.esm.js.map +1 -0
  55. package/dist/core/gov-control-group.entry.esm.js.map +1 -0
  56. package/dist/core/gov-cookiebar.entry.esm.js.map +1 -0
  57. package/dist/core/gov-dialog.entry.esm.js.map +1 -0
  58. package/dist/core/gov-dropdown.entry.esm.js.map +1 -0
  59. package/dist/core/gov-empty.entry.esm.js.map +1 -0
  60. package/dist/core/gov-error-code.entry.esm.js.map +1 -0
  61. package/dist/core/gov-flex.gov-icon.gov-theme-switch.entry.esm.js.map +1 -0
  62. package/dist/core/gov-form-autocomplete.entry.esm.js.map +1 -0
  63. package/dist/core/gov-form-checkbox-group.entry.esm.js.map +1 -0
  64. package/dist/core/gov-form-checkbox.entry.esm.js.map +1 -0
  65. package/dist/core/gov-form-control.entry.esm.js.map +1 -0
  66. package/dist/core/gov-form-file.entry.esm.js.map +1 -0
  67. package/dist/core/gov-form-group.entry.esm.js.map +1 -0
  68. package/dist/core/gov-form-input.gov-skeleton.entry.esm.js.map +1 -0
  69. package/dist/core/gov-form-label.entry.esm.js.map +1 -0
  70. package/dist/core/gov-form-multi-select.entry.esm.js.map +1 -0
  71. package/dist/core/gov-form-password-power.entry.esm.js.map +1 -0
  72. package/dist/core/gov-form-radio-group.entry.esm.js.map +1 -0
  73. package/dist/core/gov-form-radio.entry.esm.js.map +1 -0
  74. package/dist/core/gov-form-range.entry.esm.js.map +1 -0
  75. package/dist/core/gov-form-search.entry.esm.js.map +1 -0
  76. package/dist/core/gov-form-select.entry.esm.js.map +1 -0
  77. package/dist/core/gov-form-switch.entry.esm.js.map +1 -0
  78. package/dist/core/gov-grid-item.entry.esm.js.map +1 -0
  79. package/dist/core/gov-grid.entry.esm.js.map +1 -0
  80. package/dist/core/gov-infobar.entry.esm.js.map +1 -0
  81. package/dist/core/gov-layout-column.entry.esm.js.map +1 -0
  82. package/dist/core/gov-layout.entry.esm.js.map +1 -0
  83. package/dist/core/gov-lifecycle.entry.esm.js.map +1 -0
  84. package/dist/core/gov-link.entry.esm.js.map +1 -0
  85. package/dist/core/gov-loading.entry.esm.js.map +1 -0
  86. package/dist/core/gov-message.entry.esm.js.map +1 -0
  87. package/dist/core/gov-pagination.entry.esm.js.map +1 -0
  88. package/dist/core/gov-spacer.entry.esm.js.map +1 -0
  89. package/dist/core/gov-stepper-item.entry.esm.js.map +1 -0
  90. package/dist/core/gov-stepper.entry.esm.js.map +1 -0
  91. package/dist/core/gov-tabs-item.entry.esm.js.map +1 -0
  92. package/dist/core/gov-tabs.entry.esm.js.map +1 -0
  93. package/dist/core/gov-tag.entry.esm.js.map +1 -0
  94. package/dist/core/gov-tile.entry.esm.js.map +1 -0
  95. package/dist/core/gov-toast.entry.esm.js.map +1 -0
  96. package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +1 -0
  97. package/dist/core/gov-wizard-item.entry.esm.js.map +1 -0
  98. package/dist/core/gov-wizard.entry.esm.js.map +1 -0
  99. package/dist/core/loader.esm.js.map +1 -0
  100. package/dist/core/p-002e72bf.entry.js +2 -0
  101. package/dist/core/{p-41bef63a.entry.js.map → p-002e72bf.entry.js.map} +1 -1
  102. package/dist/core/{p-49b67f59.entry.js → p-04ec45ab.entry.js} +2 -2
  103. package/dist/core/{p-49b67f59.entry.js.map → p-04ec45ab.entry.js.map} +1 -1
  104. package/dist/core/{p-6b0625ee.entry.js → p-0af96cc0.entry.js} +2 -2
  105. package/dist/core/{p-6b0625ee.entry.js.map → p-0af96cc0.entry.js.map} +1 -1
  106. package/dist/core/{p-de5dfd70.entry.js → p-10991f00.entry.js} +2 -2
  107. package/dist/core/{p-de5dfd70.entry.js.map → p-10991f00.entry.js.map} +1 -1
  108. package/dist/core/{p-4e534d68.entry.js → p-157a1636.entry.js} +2 -2
  109. package/dist/core/{p-4e534d68.entry.js.map → p-157a1636.entry.js.map} +1 -1
  110. package/dist/core/{p-30ad7514.entry.js → p-1626cc67.entry.js} +2 -2
  111. package/dist/core/{p-30ad7514.entry.js.map → p-1626cc67.entry.js.map} +1 -1
  112. package/dist/core/{p-9321fb9d.entry.js → p-187c0eda.entry.js} +2 -2
  113. package/dist/core/{p-9321fb9d.entry.js.map → p-187c0eda.entry.js.map} +1 -1
  114. package/dist/core/{p-b77c283e.entry.js → p-19300834.entry.js} +2 -2
  115. package/dist/core/{p-b77c283e.entry.js.map → p-19300834.entry.js.map} +1 -1
  116. package/dist/core/{p-00ab0454.entry.js → p-3314505d.entry.js} +2 -2
  117. package/dist/core/{p-00ab0454.entry.js.map → p-3314505d.entry.js.map} +1 -1
  118. package/dist/core/p-33209782.entry.js +2 -0
  119. package/dist/core/{p-943a58b2.entry.js.map → p-33209782.entry.js.map} +1 -1
  120. package/dist/core/{p-e913cfc8.entry.js → p-3e07bf07.entry.js} +2 -2
  121. package/dist/core/{p-dc0bd1e5.entry.js.map → p-3e07bf07.entry.js.map} +1 -1
  122. package/dist/core/{p-dfb76a14.entry.js → p-441e67f6.entry.js} +2 -2
  123. package/dist/core/{p-dfb76a14.entry.js.map → p-441e67f6.entry.js.map} +1 -1
  124. package/dist/core/{p-68a5d225.entry.js → p-46824842.entry.js} +2 -2
  125. package/dist/core/{p-68a5d225.entry.js.map → p-46824842.entry.js.map} +1 -1
  126. package/dist/core/{p-c9b2f97c.entry.js → p-4c02094d.entry.js} +2 -2
  127. package/dist/core/{p-c9b2f97c.entry.js.map → p-4c02094d.entry.js.map} +1 -1
  128. package/dist/core/{p-2493a7f3.entry.js → p-4d36cd18.entry.js} +2 -2
  129. package/dist/core/{p-2493a7f3.entry.js.map → p-4d36cd18.entry.js.map} +1 -1
  130. package/dist/core/{p-f2d24551.entry.js → p-4d902f20.entry.js} +2 -2
  131. package/dist/core/{p-f2d24551.entry.js.map → p-4d902f20.entry.js.map} +1 -1
  132. package/dist/core/{p-4342c252.entry.js → p-4e2faea7.entry.js} +2 -2
  133. package/dist/core/{p-4342c252.entry.js.map → p-4e2faea7.entry.js.map} +1 -1
  134. package/dist/core/{p-a6f27583.entry.js → p-511eed88.entry.js} +2 -2
  135. package/dist/core/{p-a6f27583.entry.js.map → p-511eed88.entry.js.map} +1 -1
  136. package/dist/core/{p-b2648255.entry.js → p-5305e82e.entry.js} +2 -2
  137. package/dist/core/{p-b2648255.entry.js.map → p-5305e82e.entry.js.map} +1 -1
  138. package/dist/core/{p-378cf8de.entry.js → p-558e75a6.entry.js} +2 -2
  139. package/dist/core/{p-378cf8de.entry.js.map → p-558e75a6.entry.js.map} +1 -1
  140. package/dist/core/{p-48b74272.entry.js → p-5721cf9b.entry.js} +2 -2
  141. package/dist/core/{p-48b74272.entry.js.map → p-5721cf9b.entry.js.map} +1 -1
  142. package/dist/core/p-57ca8ac7.entry.js +2 -0
  143. package/dist/core/{p-b181f85f.entry.js.map → p-57ca8ac7.entry.js.map} +1 -1
  144. package/dist/core/{p-f515d912.entry.js → p-5c872d64.entry.js} +2 -2
  145. package/dist/core/{p-b37bd421.entry.js → p-65a09763.entry.js} +2 -2
  146. package/dist/core/{p-b37bd421.entry.js.map → p-65a09763.entry.js.map} +1 -1
  147. package/dist/core/{p-4bd3f101.entry.js → p-6b44890d.entry.js} +2 -2
  148. package/dist/core/{p-4bd3f101.entry.js.map → p-6b44890d.entry.js.map} +1 -1
  149. package/dist/core/{p-ab367b0c.entry.js → p-6d2ce4c7.entry.js} +2 -2
  150. package/dist/core/{p-ab367b0c.entry.js.map → p-6d2ce4c7.entry.js.map} +1 -1
  151. package/dist/core/{p-b0d4d6bd.entry.js → p-70b5555f.entry.js} +2 -2
  152. package/dist/core/{p-b0d4d6bd.entry.js.map → p-70b5555f.entry.js.map} +1 -1
  153. package/dist/core/p-73bd93f9.entry.js +2 -0
  154. package/dist/core/{p-6638d034.entry.js.map → p-73bd93f9.entry.js.map} +1 -1
  155. package/dist/core/{p-bb5b9ccd.entry.js → p-7f513718.entry.js} +2 -2
  156. package/dist/core/{p-bb5b9ccd.entry.js.map → p-7f513718.entry.js.map} +1 -1
  157. package/dist/core/{p-eff8ffff.entry.js → p-852310d9.entry.js} +2 -2
  158. package/dist/core/{p-eff8ffff.entry.js.map → p-852310d9.entry.js.map} +1 -1
  159. package/dist/core/{p-6ac9b0f2.entry.js → p-8d47e346.entry.js} +2 -2
  160. package/dist/core/{p-6ac9b0f2.entry.js.map → p-8d47e346.entry.js.map} +1 -1
  161. package/dist/core/p-90ab65b4.entry.js +2 -0
  162. package/dist/core/{p-e913cfc8.entry.js.map → p-90ab65b4.entry.js.map} +1 -1
  163. package/dist/core/{p-b5e40f40.entry.js → p-91cbee1b.entry.js} +2 -2
  164. package/dist/core/{p-b5e40f40.entry.js.map → p-91cbee1b.entry.js.map} +1 -1
  165. package/dist/core/{p-05bb35e1.entry.js → p-9d9e9401.entry.js} +2 -2
  166. package/dist/core/{p-05bb35e1.entry.js.map → p-9d9e9401.entry.js.map} +1 -1
  167. package/dist/core/p-B6CqPcY_.js.map +1 -1
  168. package/dist/core/p-BUmDydor.js.map +1 -1
  169. package/dist/core/p-BcQO4NH2.js.map +1 -1
  170. package/dist/core/p-BjcqOprh.js.map +1 -1
  171. package/dist/core/p-Bo1ROm5Q.js.map +1 -1
  172. package/dist/core/p-Bz_RzYFb.js.map +1 -1
  173. package/dist/core/p-C3R1T_pg.js.map +1 -1
  174. package/dist/core/p-C6JN9gdb.js.map +1 -1
  175. package/dist/core/p-CDIRBJsi.js.map +1 -1
  176. package/dist/core/p-CQvUntGY.js.map +1 -1
  177. package/dist/core/p-Ccwpa1ck.js.map +1 -1
  178. package/dist/core/p-CgDnDrq5.js.map +1 -1
  179. package/dist/core/p-Cjg0wpDG.js.map +1 -1
  180. package/dist/core/p-ClISz4NF.js +3 -0
  181. package/dist/core/p-ClISz4NF.js.map +1 -0
  182. package/dist/core/p-CoD1xawt.js.map +1 -1
  183. package/dist/core/p-Cx3bEC5v.js.map +1 -1
  184. package/dist/core/p-D4TGB274.js.map +1 -1
  185. package/dist/core/p-DBXGhafv.js.map +1 -1
  186. package/dist/core/p-DNztiAH0.js.map +1 -1
  187. package/dist/core/p-DQuL1Twl.js.map +1 -1
  188. package/dist/core/p-DYcNEwSZ.js.map +1 -1
  189. package/dist/core/p-EeKNA85D.js.map +1 -1
  190. package/dist/core/p-GYov8gU1.js.map +1 -1
  191. package/dist/core/p-NOJjz9dT.js.map +1 -1
  192. package/dist/core/p-Q99QrOoi.js.map +1 -1
  193. package/dist/core/p-U40vKHrs.js.map +1 -1
  194. package/dist/core/{p-ad9227b3.entry.js → p-a2c61d50.entry.js} +2 -2
  195. package/dist/core/{p-ad9227b3.entry.js.map → p-a2c61d50.entry.js.map} +1 -1
  196. package/dist/core/p-abb7780e.entry.js +2 -0
  197. package/dist/core/{p-a7c322a7.entry.js.map → p-abb7780e.entry.js.map} +1 -1
  198. package/dist/core/p-bd2df430.entry.js +2 -0
  199. package/dist/core/{p-2e15a654.entry.js.map → p-bd2df430.entry.js.map} +1 -1
  200. package/dist/core/{p-3a4799b3.entry.js → p-be9af807.entry.js} +2 -2
  201. package/dist/core/{p-3a4799b3.entry.js.map → p-be9af807.entry.js.map} +1 -1
  202. package/dist/core/{p-febff4d1.entry.js → p-bf573a56.entry.js} +2 -2
  203. package/dist/core/{p-febff4d1.entry.js.map → p-bf573a56.entry.js.map} +1 -1
  204. package/dist/core/{p-473afd7d.entry.js → p-c1b9f1ab.entry.js} +2 -2
  205. package/dist/core/{p-473afd7d.entry.js.map → p-c1b9f1ab.entry.js.map} +1 -1
  206. package/dist/core/p-c4734357.entry.js +2 -0
  207. package/dist/core/{p-a4fa2ffc.entry.js.map → p-c4734357.entry.js.map} +1 -1
  208. package/dist/core/{p-ac81cdf6.entry.js → p-c6b55c0a.entry.js} +2 -2
  209. package/dist/core/{p-ac81cdf6.entry.js.map → p-c6b55c0a.entry.js.map} +1 -1
  210. package/dist/core/{p-e17def2b.entry.js → p-cd163299.entry.js} +2 -2
  211. package/dist/core/{p-e17def2b.entry.js.map → p-cd163299.entry.js.map} +1 -1
  212. package/dist/core/{p-8ddb6dc6.entry.js → p-d43959a0.entry.js} +2 -2
  213. package/dist/core/{p-8ddb6dc6.entry.js.map → p-d43959a0.entry.js.map} +1 -1
  214. package/dist/core/{p-90cc2ddb.entry.js → p-d9c574f0.entry.js} +2 -2
  215. package/dist/core/{p-90cc2ddb.entry.js.map → p-d9c574f0.entry.js.map} +1 -1
  216. package/dist/core/{p-af2bd9d3.entry.js → p-d9d29f50.entry.js} +2 -2
  217. package/dist/core/{p-af2bd9d3.entry.js.map → p-d9d29f50.entry.js.map} +1 -1
  218. package/dist/core/{p-ea299832.entry.js → p-da997fb3.entry.js} +2 -2
  219. package/dist/core/{p-ea299832.entry.js.map → p-da997fb3.entry.js.map} +1 -1
  220. package/dist/core/{p-dd390459.entry.js → p-db860031.entry.js} +2 -2
  221. package/dist/core/{p-dd390459.entry.js.map → p-db860031.entry.js.map} +1 -1
  222. package/dist/core/{p-06497d64.entry.js → p-e30968b3.entry.js} +2 -2
  223. package/dist/core/{p-06497d64.entry.js.map → p-e30968b3.entry.js.map} +1 -1
  224. package/dist/core/{p-e1d58751.entry.js → p-e39e5dc7.entry.js} +2 -2
  225. package/dist/core/{p-e1d58751.entry.js.map → p-e39e5dc7.entry.js.map} +1 -1
  226. package/dist/core/{p-caf817d4.entry.js → p-eb3f6808.entry.js} +2 -2
  227. package/dist/core/{p-caf817d4.entry.js.map → p-eb3f6808.entry.js.map} +1 -1
  228. package/dist/core/{p-80052953.entry.js → p-eb766437.entry.js} +2 -2
  229. package/dist/core/{p-80052953.entry.js.map → p-eb766437.entry.js.map} +1 -1
  230. package/dist/core/{p-91d5df66.entry.js → p-f3887d6d.entry.js} +2 -2
  231. package/dist/core/{p-91d5df66.entry.js.map → p-f3887d6d.entry.js.map} +1 -1
  232. package/dist/core/{p-78202a44.entry.js → p-f75ad657.entry.js} +2 -2
  233. package/dist/core/{p-78202a44.entry.js.map → p-f75ad657.entry.js.map} +1 -1
  234. package/dist/core/{p-3ebbe75a.entry.js → p-f7bdb44a.entry.js} +2 -2
  235. package/dist/core/{p-3ebbe75a.entry.js.map → p-f7bdb44a.entry.js.map} +1 -1
  236. package/dist/core/p-fca7a0d6.entry.js +2 -0
  237. package/dist/core/{p-0675617d.entry.js.map → p-fca7a0d6.entry.js.map} +1 -1
  238. package/dist/core/p-vN03FcXN.js.map +1 -1
  239. package/dist/dist/components/gov-accordion-item.d.ts +11 -0
  240. package/dist/dist/components/gov-accordion.d.ts +11 -0
  241. package/dist/dist/components/gov-attachments-item.d.ts +11 -0
  242. package/dist/dist/components/gov-attachments.d.ts +11 -0
  243. package/dist/dist/components/gov-backdrop.d.ts +11 -0
  244. package/dist/dist/components/gov-banner.d.ts +11 -0
  245. package/dist/dist/components/gov-blockquote.d.ts +11 -0
  246. package/dist/dist/components/gov-breadcrumbs.d.ts +11 -0
  247. package/dist/dist/components/gov-button.d.ts +11 -0
  248. package/dist/dist/components/gov-card.d.ts +11 -0
  249. package/dist/dist/components/gov-chip.d.ts +11 -0
  250. package/dist/dist/components/gov-collapsible.d.ts +11 -0
  251. package/dist/dist/components/gov-container.d.ts +11 -0
  252. package/dist/dist/components/gov-control-group.d.ts +11 -0
  253. package/dist/dist/components/gov-cookiebar.d.ts +11 -0
  254. package/dist/dist/components/gov-dialog.d.ts +11 -0
  255. package/dist/dist/components/gov-dropdown.d.ts +11 -0
  256. package/dist/dist/components/gov-empty.d.ts +11 -0
  257. package/dist/dist/components/gov-error-code.d.ts +11 -0
  258. package/dist/dist/components/gov-flex.d.ts +11 -0
  259. package/dist/dist/components/gov-form-autocomplete.d.ts +11 -0
  260. package/dist/dist/components/gov-form-checkbox-group.d.ts +11 -0
  261. package/dist/dist/components/gov-form-checkbox.d.ts +11 -0
  262. package/dist/dist/components/gov-form-control.d.ts +11 -0
  263. package/dist/dist/components/gov-form-file.d.ts +11 -0
  264. package/dist/dist/components/gov-form-group.d.ts +11 -0
  265. package/dist/dist/components/gov-form-input.d.ts +11 -0
  266. package/dist/dist/components/gov-form-label.d.ts +11 -0
  267. package/dist/dist/components/gov-form-message.d.ts +11 -0
  268. package/dist/dist/components/gov-form-multi-select.d.ts +11 -0
  269. package/dist/dist/components/gov-form-password-power.d.ts +11 -0
  270. package/dist/dist/components/gov-form-radio-group.d.ts +11 -0
  271. package/dist/dist/components/gov-form-radio.d.ts +11 -0
  272. package/dist/dist/components/gov-form-range.d.ts +11 -0
  273. package/dist/dist/components/gov-form-search.d.ts +11 -0
  274. package/dist/dist/components/gov-form-select.d.ts +11 -0
  275. package/dist/dist/components/gov-form-switch.d.ts +11 -0
  276. package/dist/dist/components/gov-grid-item.d.ts +11 -0
  277. package/dist/dist/components/gov-grid.d.ts +11 -0
  278. package/dist/dist/components/gov-icon.d.ts +11 -0
  279. package/dist/dist/components/gov-infobar.d.ts +11 -0
  280. package/dist/dist/components/gov-layout-column.d.ts +11 -0
  281. package/dist/dist/components/gov-layout.d.ts +11 -0
  282. package/dist/dist/components/gov-lifecycle.d.ts +11 -0
  283. package/dist/dist/components/gov-link.d.ts +11 -0
  284. package/dist/dist/components/gov-loading.d.ts +11 -0
  285. package/dist/dist/components/gov-message.d.ts +11 -0
  286. package/dist/dist/components/gov-pagination.d.ts +11 -0
  287. package/dist/dist/components/gov-skeleton.d.ts +11 -0
  288. package/dist/dist/components/gov-spacer.d.ts +11 -0
  289. package/dist/dist/components/gov-stepper-item.d.ts +11 -0
  290. package/dist/dist/components/gov-stepper.d.ts +11 -0
  291. package/dist/dist/components/gov-tabs-item.d.ts +11 -0
  292. package/dist/dist/components/gov-tabs.d.ts +11 -0
  293. package/dist/dist/components/gov-tag.d.ts +11 -0
  294. package/dist/dist/components/gov-theme-switch.d.ts +11 -0
  295. package/dist/dist/components/gov-tile.d.ts +11 -0
  296. package/dist/dist/components/gov-toast.d.ts +11 -0
  297. package/dist/dist/components/gov-tooltip-content.d.ts +11 -0
  298. package/dist/dist/components/gov-tooltip.d.ts +11 -0
  299. package/dist/dist/components/gov-wizard-item.d.ts +11 -0
  300. package/dist/dist/components/gov-wizard.d.ts +11 -0
  301. package/dist/dist/components/index.d.ts +35 -0
  302. package/dist/dist/dist/components/gov-accordion-item.d.ts +11 -0
  303. package/dist/dist/dist/components/gov-accordion.d.ts +11 -0
  304. package/dist/dist/dist/components/gov-app.d.ts +11 -0
  305. package/dist/dist/dist/components/gov-attachments-item.d.ts +11 -0
  306. package/dist/dist/dist/components/gov-attachments.d.ts +11 -0
  307. package/dist/dist/dist/components/gov-backdrop.d.ts +11 -0
  308. package/dist/dist/dist/components/gov-banner.d.ts +11 -0
  309. package/dist/dist/dist/components/gov-blockquote.d.ts +11 -0
  310. package/dist/dist/dist/components/gov-breadcrumbs.d.ts +11 -0
  311. package/dist/dist/dist/components/gov-button.d.ts +11 -0
  312. package/dist/dist/dist/components/gov-card.d.ts +11 -0
  313. package/dist/dist/dist/components/gov-chip.d.ts +11 -0
  314. package/dist/dist/dist/components/gov-collapsible.d.ts +11 -0
  315. package/dist/dist/dist/components/gov-container.d.ts +11 -0
  316. package/dist/dist/dist/components/gov-control-group.d.ts +11 -0
  317. package/dist/dist/dist/components/gov-cookiebar.d.ts +11 -0
  318. package/dist/dist/dist/components/gov-dialog.d.ts +11 -0
  319. package/dist/dist/dist/components/gov-dropdown.d.ts +11 -0
  320. package/dist/dist/dist/components/gov-empty.d.ts +11 -0
  321. package/dist/dist/dist/components/gov-error-code.d.ts +11 -0
  322. package/dist/dist/dist/components/gov-flex.d.ts +11 -0
  323. package/dist/dist/dist/components/gov-form-autocomplete.d.ts +11 -0
  324. package/dist/dist/dist/components/gov-form-checkbox-group.d.ts +11 -0
  325. package/dist/dist/dist/components/gov-form-checkbox.d.ts +11 -0
  326. package/dist/dist/dist/components/gov-form-control.d.ts +11 -0
  327. package/dist/dist/dist/components/gov-form-file.d.ts +11 -0
  328. package/dist/dist/dist/components/gov-form-group.d.ts +11 -0
  329. package/dist/dist/dist/components/gov-form-input.d.ts +11 -0
  330. package/dist/dist/dist/components/gov-form-label.d.ts +11 -0
  331. package/dist/dist/dist/components/gov-form-message.d.ts +11 -0
  332. package/dist/dist/dist/components/gov-form-multi-select.d.ts +11 -0
  333. package/dist/dist/dist/components/gov-form-password-power.d.ts +11 -0
  334. package/dist/dist/dist/components/gov-form-radio-group.d.ts +11 -0
  335. package/dist/dist/dist/components/gov-form-radio.d.ts +11 -0
  336. package/dist/dist/dist/components/gov-form-range.d.ts +11 -0
  337. package/dist/dist/dist/components/gov-form-search.d.ts +11 -0
  338. package/dist/dist/dist/components/gov-form-select.d.ts +11 -0
  339. package/dist/dist/dist/components/gov-form-switch.d.ts +11 -0
  340. package/dist/dist/dist/components/gov-grid-item.d.ts +11 -0
  341. package/dist/dist/dist/components/gov-grid.d.ts +11 -0
  342. package/dist/dist/dist/components/gov-icon.d.ts +11 -0
  343. package/dist/dist/dist/components/gov-infobar.d.ts +11 -0
  344. package/dist/dist/dist/components/gov-layout-column.d.ts +11 -0
  345. package/dist/dist/dist/components/gov-layout.d.ts +11 -0
  346. package/dist/dist/dist/components/gov-lifecycle.d.ts +11 -0
  347. package/dist/dist/dist/components/gov-link.d.ts +11 -0
  348. package/dist/dist/dist/components/gov-loading.d.ts +11 -0
  349. package/dist/dist/dist/components/gov-message.d.ts +11 -0
  350. package/dist/dist/dist/components/gov-pagination.d.ts +11 -0
  351. package/dist/dist/dist/components/gov-skeleton.d.ts +11 -0
  352. package/dist/dist/dist/components/gov-spacer.d.ts +11 -0
  353. package/dist/dist/dist/components/gov-stepper-item.d.ts +11 -0
  354. package/dist/dist/dist/components/gov-stepper.d.ts +11 -0
  355. package/dist/dist/dist/components/gov-tabs-item.d.ts +11 -0
  356. package/dist/dist/dist/components/gov-tabs.d.ts +11 -0
  357. package/dist/dist/dist/components/gov-tag.d.ts +11 -0
  358. package/dist/dist/dist/components/gov-theme-switch.d.ts +11 -0
  359. package/dist/dist/dist/components/gov-tile.d.ts +11 -0
  360. package/dist/dist/dist/components/gov-toast.d.ts +11 -0
  361. package/dist/dist/dist/components/gov-tooltip-content.d.ts +11 -0
  362. package/dist/dist/dist/components/gov-tooltip.d.ts +11 -0
  363. package/dist/dist/dist/components/gov-wizard-item.d.ts +11 -0
  364. package/dist/dist/dist/components/gov-wizard.d.ts +11 -0
  365. package/dist/dist/dist/components/index.d.ts +35 -0
  366. package/dist/dist/dist/globals.d.ts +2 -0
  367. package/dist/dist/dist/hydrate/index.d.ts +287 -0
  368. package/dist/dist/dist/types/components/gov-accordion/constants.d.ts +19 -0
  369. package/dist/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +43 -0
  370. package/dist/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +26 -0
  371. package/dist/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
  372. package/dist/dist/dist/types/components/gov-attachments/constants.d.ts +11 -0
  373. package/dist/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
  374. package/dist/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
  375. package/dist/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
  376. package/dist/dist/dist/types/components/gov-backdrop/constants.d.ts +4 -0
  377. package/dist/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
  378. package/dist/dist/dist/types/components/gov-banner/constants.d.ts +26 -0
  379. package/dist/dist/dist/types/components/gov-banner/gov-banner.d.ts +28 -0
  380. package/dist/dist/dist/types/components/gov-blockquote/constants.d.ts +10 -0
  381. package/dist/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +15 -0
  382. package/dist/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
  383. package/dist/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
  384. package/dist/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +42 -0
  385. package/dist/dist/dist/types/components/gov-button/button/constants.d.ts +29 -0
  386. package/dist/dist/dist/types/components/gov-button/button/gov-button.d.ts +133 -0
  387. package/dist/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
  388. package/dist/dist/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
  389. package/dist/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +40 -0
  390. package/dist/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
  391. package/dist/dist/dist/types/components/gov-card/constants.d.ts +16 -0
  392. package/dist/dist/dist/types/components/gov-card/gov-card.d.ts +57 -0
  393. package/dist/dist/dist/types/components/gov-card/interfaces.d.ts +4 -0
  394. package/dist/dist/dist/types/components/gov-chip/constants.d.ts +21 -0
  395. package/dist/dist/dist/types/components/gov-chip/gov-chip.d.ts +82 -0
  396. package/dist/dist/dist/types/components/gov-collapsible/constants.d.ts +18 -0
  397. package/dist/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
  398. package/dist/dist/dist/types/components/gov-container/constants.d.ts +3 -0
  399. package/dist/dist/dist/types/components/gov-container/gov-container.d.ts +6 -0
  400. package/dist/dist/dist/types/components/gov-control-group/constants.d.ts +7 -0
  401. package/dist/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +24 -0
  402. package/dist/dist/dist/types/components/gov-cookiebar/constants.d.ts +7 -0
  403. package/dist/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
  404. package/dist/dist/dist/types/components/gov-dialog/constants.d.ts +11 -0
  405. package/dist/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +70 -0
  406. package/dist/dist/dist/types/components/gov-empty/constants.d.ts +19 -0
  407. package/dist/dist/dist/types/components/gov-empty/gov-empty.d.ts +21 -0
  408. package/dist/dist/dist/types/components/gov-error-code/constants.d.ts +4 -0
  409. package/dist/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
  410. package/dist/dist/dist/types/components/gov-flex/constants.d.ts +7 -0
  411. package/dist/dist/dist/types/components/gov-flex/gov-flex.d.ts +39 -0
  412. package/dist/dist/dist/types/components/gov-form/autocomplete/autocomplete.utils.d.ts +2 -0
  413. package/dist/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
  414. package/dist/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +158 -0
  415. package/dist/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
  416. package/dist/dist/dist/types/components/gov-form/checkbox/constants.d.ts +10 -0
  417. package/dist/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +86 -0
  418. package/dist/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
  419. package/dist/dist/dist/types/components/gov-form/control/constants.d.ts +9 -0
  420. package/dist/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +40 -0
  421. package/dist/dist/dist/types/components/gov-form/file/constants.d.ts +7 -0
  422. package/dist/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +130 -0
  423. package/dist/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
  424. package/dist/dist/dist/types/components/gov-form/group/constants.d.ts +18 -0
  425. package/dist/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +32 -0
  426. package/dist/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -0
  427. package/dist/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +7 -0
  428. package/dist/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +32 -0
  429. package/dist/dist/dist/types/components/gov-form/input/constants.d.ts +28 -0
  430. package/dist/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +178 -0
  431. package/dist/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
  432. package/dist/dist/dist/types/components/gov-form/label/constants.d.ts +8 -0
  433. package/dist/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
  434. package/dist/dist/dist/types/components/gov-form/message/constants.d.ts +11 -0
  435. package/dist/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +23 -0
  436. package/dist/dist/dist/types/components/gov-form/multiselect/constants.d.ts +10 -0
  437. package/dist/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +127 -0
  438. package/dist/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +10 -0
  439. package/dist/dist/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
  440. package/dist/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
  441. package/dist/dist/dist/types/components/gov-form/radio/constants.d.ts +10 -0
  442. package/dist/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +83 -0
  443. package/dist/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
  444. package/dist/dist/dist/types/components/gov-form/range/constants.d.ts +9 -0
  445. package/dist/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
  446. package/dist/dist/dist/types/components/gov-form/search/constants.d.ts +10 -0
  447. package/dist/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +13 -0
  448. package/dist/dist/dist/types/components/gov-form/select/constants.d.ts +8 -0
  449. package/dist/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +89 -0
  450. package/dist/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -0
  451. package/dist/dist/dist/types/components/gov-form/switch/constants.d.ts +12 -0
  452. package/dist/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +81 -0
  453. package/dist/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
  454. package/dist/dist/dist/types/components/gov-grid/constants.d.ts +10 -0
  455. package/dist/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +46 -0
  456. package/dist/dist/dist/types/components/gov-grid/gov-grid.d.ts +19 -0
  457. package/dist/dist/dist/types/components/gov-icon/constants.d.ts +18 -0
  458. package/dist/dist/dist/types/components/gov-icon/gov-icon.d.ts +34 -0
  459. package/dist/dist/dist/types/components/gov-icon/helpers.d.ts +6 -0
  460. package/dist/dist/dist/types/components/gov-icon/list.d.ts +3 -0
  461. package/dist/dist/dist/types/components/gov-infobar/constants.d.ts +16 -0
  462. package/dist/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +51 -0
  463. package/dist/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -0
  464. package/dist/dist/dist/types/components/gov-layout/constants.d.ts +20 -0
  465. package/dist/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
  466. package/dist/dist/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
  467. package/dist/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  468. package/dist/dist/dist/types/components/gov-link/constants.d.ts +8 -0
  469. package/dist/dist/dist/types/components/gov-link/gov-link.d.ts +34 -0
  470. package/dist/dist/dist/types/components/gov-loading/loading/constants.d.ts +9 -0
  471. package/dist/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +13 -0
  472. package/dist/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +21 -0
  473. package/dist/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +46 -0
  474. package/dist/dist/dist/types/components/gov-message/constants.d.ts +13 -0
  475. package/dist/dist/dist/types/components/gov-message/gov-message.d.ts +16 -0
  476. package/dist/dist/dist/types/components/gov-pagination/constants.d.ts +22 -0
  477. package/dist/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -0
  478. package/dist/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
  479. package/dist/dist/dist/types/components/gov-pagination/pagination.d.ts +12 -0
  480. package/dist/dist/dist/types/components/gov-spacer/constants.d.ts +15 -0
  481. package/dist/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
  482. package/dist/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +21 -0
  483. package/dist/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +4 -0
  484. package/dist/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +31 -0
  485. package/dist/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +22 -0
  486. package/dist/dist/dist/types/components/gov-tabs/constants.d.ts +28 -0
  487. package/dist/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +54 -0
  488. package/dist/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +70 -0
  489. package/dist/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +14 -0
  490. package/dist/dist/dist/types/components/gov-tag/constants.d.ts +12 -0
  491. package/dist/dist/dist/types/components/gov-tag/gov-tag.d.ts +35 -0
  492. package/dist/dist/dist/types/components/gov-theme-switch/constants.d.ts +12 -0
  493. package/dist/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +46 -0
  494. package/dist/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +10 -0
  495. package/dist/dist/dist/types/components/gov-tile/constants.d.ts +13 -0
  496. package/dist/dist/dist/types/components/gov-tile/gov-tile.d.ts +34 -0
  497. package/dist/dist/dist/types/components/gov-toast/constants.d.ts +17 -0
  498. package/dist/dist/dist/types/components/gov-toast/gov-toast.d.ts +58 -0
  499. package/dist/dist/dist/types/components/gov-tooltip/constants.d.ts +20 -0
  500. package/dist/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +32 -0
  501. package/dist/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +61 -0
  502. package/dist/dist/dist/types/components/gov-wizard/constants.d.ts +19 -0
  503. package/dist/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
  504. package/dist/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +60 -0
  505. package/dist/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
  506. package/dist/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +35 -0
  507. package/dist/dist/dist/types/core/constants/colors.d.ts +13 -0
  508. package/dist/dist/dist/types/core/constants/sizes.d.ts +13 -0
  509. package/dist/dist/dist/types/core/constants/tags.d.ts +12 -0
  510. package/dist/dist/dist/types/core/constants/tokens.d.ts +1 -0
  511. package/dist/dist/dist/types/helpers/Accessibility/accessibility.d.ts +1 -0
  512. package/dist/dist/dist/types/helpers/Accessibility/attributes.d.ts +1 -0
  513. package/dist/dist/dist/types/helpers/Dom/attribute.d.ts +13 -0
  514. package/dist/dist/dist/types/helpers/Dom/document.d.ts +4 -0
  515. package/dist/dist/dist/types/helpers/Dom/form.d.ts +3 -0
  516. package/dist/dist/dist/types/helpers/Dom/form.types.d.ts +11 -0
  517. package/dist/dist/dist/types/helpers/Dom/template.d.ts +10 -0
  518. package/dist/dist/dist/types/helpers/Dom/template.types.d.ts +14 -0
  519. package/dist/dist/dist/types/helpers/Dom/win.d.ts +18 -0
  520. package/dist/dist/dist/types/helpers/Fragment.d.ts +2 -0
  521. package/dist/dist/dist/types/helpers/Log/gov.log.d.ts +8 -0
  522. package/dist/dist/dist/types/helpers/Validate/props.d.ts +1 -0
  523. package/dist/dist/dist/types/helpers/Validate/wcag.d.ts +4 -0
  524. package/dist/dist/dist/types/index.d.ts +0 -0
  525. package/dist/dist/dist/types/interfaces.d.ts +1 -0
  526. package/dist/dist/dist/types/stencil-public-runtime.d.ts +1861 -0
  527. package/dist/dist/dist/types/types/event.types.d.ts +4 -0
  528. package/dist/dist/dist/types/types/interfaces.d.ts +2 -0
  529. package/dist/dist/dist/types/types/typings.d.ts +6 -0
  530. package/dist/dist/dist/types/utils/array.utils.d.ts +2 -0
  531. package/dist/dist/dist/types/utils/bool.utils.d.ts +1 -0
  532. package/dist/dist/dist/types/utils/dom.utils.d.ts +1 -0
  533. package/dist/dist/dist/types/utils/ds.utils.d.ts +1 -0
  534. package/dist/dist/dist/types/utils/file.utils.d.ts +3 -0
  535. package/dist/dist/dist/types/utils/helpers.types.d.ts +49 -0
  536. package/dist/dist/dist/types/utils/icon.utils.d.ts +4 -0
  537. package/dist/dist/dist/types/utils/number.utils.d.ts +1 -0
  538. package/dist/dist/dist/types/utils/object.utils.d.ts +2 -0
  539. package/dist/dist/dist/types/utils/stencil.utils.d.ts +1 -0
  540. package/dist/dist/dist/types/utils/string.utils.d.ts +4 -0
  541. package/dist/dist/dist/types/utils/utils.d.ts +20 -0
  542. package/dist/dist/globals.d.ts +2 -0
  543. package/dist/dist/hydrate/index.d.ts +287 -0
  544. package/dist/dist/types/components/gov-accordion/constants.d.ts +19 -0
  545. package/dist/dist/types/components/gov-accordion/gov-accordion-item.d.ts +43 -0
  546. package/dist/dist/types/components/gov-accordion/gov-accordion.d.ts +26 -0
  547. package/dist/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
  548. package/dist/dist/types/components/gov-attachments/constants.d.ts +11 -0
  549. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
  550. package/dist/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
  551. package/dist/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
  552. package/dist/dist/types/components/gov-backdrop/constants.d.ts +4 -0
  553. package/dist/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
  554. package/dist/dist/types/components/gov-banner/constants.d.ts +26 -0
  555. package/dist/dist/types/components/gov-banner/gov-banner.d.ts +28 -0
  556. package/dist/dist/types/components/gov-blockquote/constants.d.ts +10 -0
  557. package/dist/dist/types/components/gov-blockquote/gov-blockquote.d.ts +15 -0
  558. package/dist/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
  559. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
  560. package/dist/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +42 -0
  561. package/dist/dist/types/components/gov-button/button/constants.d.ts +29 -0
  562. package/dist/dist/types/components/gov-button/button/gov-button.d.ts +133 -0
  563. package/dist/dist/types/components/gov-button/button/gov-button.types.d.ts +4 -0
  564. package/dist/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
  565. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +40 -0
  566. package/dist/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
  567. package/dist/dist/types/components/gov-card/constants.d.ts +16 -0
  568. package/dist/dist/types/components/gov-card/gov-card.d.ts +57 -0
  569. package/dist/dist/types/components/gov-card/interfaces.d.ts +4 -0
  570. package/dist/dist/types/components/gov-chip/constants.d.ts +21 -0
  571. package/dist/dist/types/components/gov-chip/gov-chip.d.ts +82 -0
  572. package/dist/dist/types/components/gov-collapsible/constants.d.ts +18 -0
  573. package/dist/dist/types/components/gov-collapsible/gov-collapsible.d.ts +36 -0
  574. package/dist/dist/types/components/gov-container/constants.d.ts +3 -0
  575. package/dist/dist/types/components/gov-container/gov-container.d.ts +6 -0
  576. package/dist/dist/types/components/gov-control-group/constants.d.ts +7 -0
  577. package/dist/dist/types/components/gov-control-group/gov-control-group.d.ts +24 -0
  578. package/dist/dist/types/components/gov-cookiebar/constants.d.ts +7 -0
  579. package/dist/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
  580. package/dist/dist/types/components/gov-dialog/constants.d.ts +11 -0
  581. package/dist/dist/types/components/gov-dialog/gov-dialog.d.ts +70 -0
  582. package/dist/dist/types/components/gov-empty/constants.d.ts +19 -0
  583. package/dist/dist/types/components/gov-empty/gov-empty.d.ts +21 -0
  584. package/dist/dist/types/components/gov-error-code/constants.d.ts +4 -0
  585. package/dist/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
  586. package/dist/dist/types/components/gov-flex/constants.d.ts +7 -0
  587. package/dist/dist/types/components/gov-flex/gov-flex.d.ts +39 -0
  588. package/dist/dist/types/components/gov-form/autocomplete/autocomplete.utils.d.ts +2 -0
  589. package/dist/dist/types/components/gov-form/autocomplete/constants.d.ts +11 -0
  590. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +158 -0
  591. package/dist/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +9 -0
  592. package/dist/dist/types/components/gov-form/checkbox/constants.d.ts +10 -0
  593. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +86 -0
  594. package/dist/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
  595. package/dist/dist/types/components/gov-form/control/constants.d.ts +9 -0
  596. package/dist/dist/types/components/gov-form/control/gov-form-control.d.ts +40 -0
  597. package/dist/dist/types/components/gov-form/file/constants.d.ts +7 -0
  598. package/dist/dist/types/components/gov-form/file/gov-form-file.d.ts +130 -0
  599. package/dist/dist/types/components/gov-form/file/gov-form-file.types.d.ts +11 -0
  600. package/dist/dist/types/components/gov-form/group/constants.d.ts +18 -0
  601. package/dist/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +32 -0
  602. package/dist/dist/types/components/gov-form/group/gov-form-group.d.ts +18 -0
  603. package/dist/dist/types/components/gov-form/group/gov-form-group.types.d.ts +7 -0
  604. package/dist/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +32 -0
  605. package/dist/dist/types/components/gov-form/input/constants.d.ts +28 -0
  606. package/dist/dist/types/components/gov-form/input/gov-form-input.d.ts +178 -0
  607. package/dist/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
  608. package/dist/dist/types/components/gov-form/label/constants.d.ts +8 -0
  609. package/dist/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
  610. package/dist/dist/types/components/gov-form/message/constants.d.ts +11 -0
  611. package/dist/dist/types/components/gov-form/message/gov-form-message.d.ts +23 -0
  612. package/dist/dist/types/components/gov-form/multiselect/constants.d.ts +10 -0
  613. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +127 -0
  614. package/dist/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +10 -0
  615. package/dist/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
  616. package/dist/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
  617. package/dist/dist/types/components/gov-form/radio/constants.d.ts +10 -0
  618. package/dist/dist/types/components/gov-form/radio/gov-form-radio.d.ts +83 -0
  619. package/dist/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
  620. package/dist/dist/types/components/gov-form/range/constants.d.ts +9 -0
  621. package/dist/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
  622. package/dist/dist/types/components/gov-form/search/constants.d.ts +10 -0
  623. package/dist/dist/types/components/gov-form/search/gov-form-search.d.ts +13 -0
  624. package/dist/dist/types/components/gov-form/select/constants.d.ts +8 -0
  625. package/dist/dist/types/components/gov-form/select/gov-form-select.d.ts +89 -0
  626. package/dist/dist/types/components/gov-form/select/gov-form-select.types.d.ts +9 -0
  627. package/dist/dist/types/components/gov-form/switch/constants.d.ts +12 -0
  628. package/dist/dist/types/components/gov-form/switch/gov-form-switch.d.ts +81 -0
  629. package/dist/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
  630. package/dist/dist/types/components/gov-grid/constants.d.ts +10 -0
  631. package/dist/dist/types/components/gov-grid/gov-grid-item.d.ts +46 -0
  632. package/dist/dist/types/components/gov-grid/gov-grid.d.ts +19 -0
  633. package/dist/dist/types/components/gov-icon/constants.d.ts +18 -0
  634. package/dist/dist/types/components/gov-icon/gov-icon.d.ts +34 -0
  635. package/dist/dist/types/components/gov-icon/helpers.d.ts +6 -0
  636. package/dist/dist/types/components/gov-icon/list.d.ts +3 -0
  637. package/dist/dist/types/components/gov-infobar/constants.d.ts +16 -0
  638. package/dist/dist/types/components/gov-infobar/gov-infobar.d.ts +51 -0
  639. package/dist/dist/types/components/gov-infobar/gov-infobar.types.d.ts +4 -0
  640. package/dist/dist/types/components/gov-layout/constants.d.ts +20 -0
  641. package/dist/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
  642. package/dist/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
  643. package/dist/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  644. package/dist/dist/types/components/gov-link/constants.d.ts +8 -0
  645. package/dist/dist/types/components/gov-link/gov-link.d.ts +34 -0
  646. package/dist/dist/types/components/gov-loading/loading/constants.d.ts +9 -0
  647. package/dist/dist/types/components/gov-loading/loading/gov-loading.d.ts +13 -0
  648. package/dist/dist/types/components/gov-loading/skeleton/constants.d.ts +21 -0
  649. package/dist/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +46 -0
  650. package/dist/dist/types/components/gov-message/constants.d.ts +13 -0
  651. package/dist/dist/types/components/gov-message/gov-message.d.ts +16 -0
  652. package/dist/dist/types/components/gov-pagination/constants.d.ts +22 -0
  653. package/dist/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -0
  654. package/dist/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
  655. package/dist/dist/types/components/gov-pagination/pagination.d.ts +12 -0
  656. package/dist/dist/types/components/gov-spacer/constants.d.ts +15 -0
  657. package/dist/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
  658. package/dist/dist/types/components/gov-stepper/stepper/constants.d.ts +21 -0
  659. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.d.ts +4 -0
  660. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper-item.d.ts +31 -0
  661. package/dist/dist/types/components/gov-stepper/stepper/gov-stepper.d.ts +22 -0
  662. package/dist/dist/types/components/gov-tabs/constants.d.ts +28 -0
  663. package/dist/dist/types/components/gov-tabs/gov-tabs-item.d.ts +54 -0
  664. package/dist/dist/types/components/gov-tabs/gov-tabs.d.ts +70 -0
  665. package/dist/dist/types/components/gov-tabs/gov-tabs.types.d.ts +14 -0
  666. package/dist/dist/types/components/gov-tag/constants.d.ts +12 -0
  667. package/dist/dist/types/components/gov-tag/gov-tag.d.ts +35 -0
  668. package/dist/dist/types/components/gov-theme-switch/constants.d.ts +12 -0
  669. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +46 -0
  670. package/dist/dist/types/components/gov-theme-switch/gov-theme-switch.types.d.ts +10 -0
  671. package/dist/dist/types/components/gov-tile/constants.d.ts +13 -0
  672. package/dist/dist/types/components/gov-tile/gov-tile.d.ts +34 -0
  673. package/dist/dist/types/components/gov-toast/constants.d.ts +17 -0
  674. package/dist/dist/types/components/gov-toast/gov-toast.d.ts +58 -0
  675. package/dist/dist/types/components/gov-tooltip/constants.d.ts +20 -0
  676. package/dist/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +32 -0
  677. package/dist/dist/types/components/gov-tooltip/gov-tooltip.d.ts +61 -0
  678. package/dist/dist/types/components/gov-wizard/constants.d.ts +19 -0
  679. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +4 -0
  680. package/dist/dist/types/components/gov-wizard/gov-wizard-item.d.ts +60 -0
  681. package/dist/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +4 -0
  682. package/dist/dist/types/components/gov-wizard/gov-wizard.d.ts +35 -0
  683. package/dist/dist/types/core/constants/colors.d.ts +13 -0
  684. package/dist/dist/types/core/constants/sizes.d.ts +13 -0
  685. package/dist/dist/types/core/constants/tags.d.ts +12 -0
  686. package/dist/dist/types/core/constants/tokens.d.ts +1 -0
  687. package/dist/dist/types/helpers/Accessibility/accessibility.d.ts +1 -0
  688. package/dist/dist/types/helpers/Accessibility/attributes.d.ts +1 -0
  689. package/dist/dist/types/helpers/Dom/attribute.d.ts +13 -0
  690. package/dist/dist/types/helpers/Dom/document.d.ts +4 -0
  691. package/dist/dist/types/helpers/Dom/form.d.ts +3 -0
  692. package/dist/dist/types/helpers/Dom/form.types.d.ts +11 -0
  693. package/dist/dist/types/helpers/Dom/template.d.ts +10 -0
  694. package/dist/dist/types/helpers/Dom/template.types.d.ts +14 -0
  695. package/dist/dist/types/helpers/Dom/win.d.ts +18 -0
  696. package/dist/dist/types/helpers/Fragment.d.ts +2 -0
  697. package/dist/dist/types/helpers/Log/gov.log.d.ts +8 -0
  698. package/dist/dist/types/helpers/Validate/props.d.ts +1 -0
  699. package/dist/dist/types/helpers/Validate/wcag.d.ts +4 -0
  700. package/dist/dist/types/index.d.ts +0 -0
  701. package/dist/dist/types/interfaces.d.ts +1 -0
  702. package/dist/dist/types/stencil-public-runtime.d.ts +1861 -0
  703. package/dist/dist/types/types/event.types.d.ts +4 -0
  704. package/dist/dist/types/types/interfaces.d.ts +2 -0
  705. package/dist/dist/types/types/typings.d.ts +6 -0
  706. package/dist/dist/types/utils/array.utils.d.ts +2 -0
  707. package/dist/dist/types/utils/bool.utils.d.ts +1 -0
  708. package/dist/dist/types/utils/dom.utils.d.ts +1 -0
  709. package/dist/dist/types/utils/ds.utils.d.ts +1 -0
  710. package/dist/dist/types/utils/file.utils.d.ts +3 -0
  711. package/dist/dist/types/utils/helpers.types.d.ts +49 -0
  712. package/dist/dist/types/utils/icon.utils.d.ts +4 -0
  713. package/dist/dist/types/utils/number.utils.d.ts +1 -0
  714. package/dist/dist/types/utils/object.utils.d.ts +2 -0
  715. package/dist/dist/types/utils/stencil.utils.d.ts +1 -0
  716. package/dist/dist/types/utils/string.utils.d.ts +4 -0
  717. package/dist/dist/types/utils/utils.d.ts +20 -0
  718. package/dist/esm/gov-flex_3.entry.js +1 -1
  719. package/dist/hydrate/index.js +1 -1
  720. package/dist/hydrate/index.mjs +1 -1
  721. package/dist/types/components.d.ts +119 -592
  722. package/dist/types/stencil-public-runtime.d.ts +11 -170
  723. package/package.json +28 -32
  724. package/dist/components/p-DRXiDAHW.js +0 -2
  725. package/dist/core/p-0675617d.entry.js +0 -2
  726. package/dist/core/p-2e15a654.entry.js +0 -2
  727. package/dist/core/p-41bef63a.entry.js +0 -2
  728. package/dist/core/p-6638d034.entry.js +0 -2
  729. package/dist/core/p-943a58b2.entry.js +0 -2
  730. package/dist/core/p-B8TR1oqt.js +0 -3
  731. package/dist/core/p-B8TR1oqt.js.map +0 -1
  732. package/dist/core/p-a4fa2ffc.entry.js +0 -2
  733. package/dist/core/p-a7c322a7.entry.js +0 -2
  734. package/dist/core/p-b181f85f.entry.js +0 -2
  735. package/dist/core/p-dc0bd1e5.entry.js +0 -2
  736. package/readme.md +0 -8
  737. /package/dist/components/{p-isPjiQbr.js.map → p-BIB-JMbL.js.map} +0 -0
  738. /package/dist/components/{p-BICk4EuO.js.map → p-BVG9PtuQ.js.map} +0 -0
  739. /package/dist/components/{p-DmK9qaKH.js.map → p-DV0Pdd1S.js.map} +0 -0
  740. /package/dist/components/{p-DjGO_trZ.js.map → p-DlpZtTcv.js.map} +0 -0
  741. /package/dist/components/{p-BNoNH6m-.js.map → p-Dw1o8KoZ.js.map} +0 -0
  742. /package/dist/components/{p-BGK46VRO.js.map → p-NU_8kxGz.js.map} +0 -0
  743. /package/dist/components/{p-ClDhNt_H.js.map → p-o4vVG5sG.js.map} +0 -0
  744. /package/dist/core/{p-f515d912.entry.js.map → p-5c872d64.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as o,h as i,a as e}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{C as c}from"./p-U40vKHrs.js";import{p as r}from"./p-CQvUntGY.js";import{g as n}from"./p-BHRF-5cf.js";import{c as h}from"./p-vN03FcXN.js";import{A as l,a as d,i as b}from"./p-CXgom82_.js";import{d as m}from"./p-ClDhNt_H.js";import{d as f}from"./p-DRXiDAHW.js";const p=r(c,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var u;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(u||(u={}));const v={root:"gov-toast",hidden:"gov-toast--hidden",content:"gov-toast__content",icon:"gov-toast__icon",close:"gov-toast__close",timer:"gov-toast__timer"};const g=t(class t extends s{constructor(){super();this.__registerHost();this.govClose=o(this,"gov-close");this.color="primary";this.gravity="top";this.position="right";this.type="bold";this.time=0;this.inheritedAttributes={};this.h=n(this.host);this.toastId=h("GovToast")}validateColor(t){a(p,t,v.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateColor(this.color);this.runTimer();this.inheritedAttributes=b(this.host)}disconnectedCallback(){var t;clearTimeout(this.timeout);(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}runTimer(){if(this.isTimer){this.timeout=setTimeout((()=>{this.host.classList.add(v.hidden);setTimeout((()=>{this.destroy().catch();this.govClose.emit(this.toastId)}),600)}),this.time)}}render(){return i(e,{key:"987e5c487dd42f713414dcb0db4c5324db61bc46",class:this.h.classes(v.root),"data-toast-id":this.toastId,gravity:this.gravity,position:this.position,color:this.color,type:this.type,style:{"--toast-duration":this.time+"ms"}},this.h.hasSlot("icon")&&i("span",{key:"1ebdf5e3b7a44dfa2c5489a3d23f5b7aff2368b4",class:v.icon},i("slot",{key:"be28a32d3ff38e6c9adcaee780cfab4b814c4291",name:"icon"})),i("div",Object.assign({key:"c8a8040d1b724d0e59d10a7dfde32870912c5bed",class:v.content},this.inheritedAttributes,{"aria-live":"polite",role:"status"}),i("slot",{key:"021b0fede68c4f897c28b1f6ef7b088d71740ec3"})),i("gov-button",{key:"1792f238afbba0ad073cd5513044b15d43cbe07b",size:"s","aria-label":this.accessibleCloseLabel,color:this.isBold?this.color:"neutral",type:"base","on-gov-click":this.onCloseHandler.bind(this),class:v.close},this.closeLabel?this.closeLabel:i("gov-icon",{name:"x-lg",type:"components"})),i("div",{key:"b467970959f395a2c14182d98a06b17e471611b4",class:v.timer}))}onCloseHandler(){this.govClose.emit(this.toastId);this.destroy().catch()}get isBold(){return this.type==="bold"}get isTimer(){return Number.isInteger(this.time)&&this.time>0}async destroy(){clearTimeout(this.timeout);const t=document.querySelector(`[data-toast-id="${this.toastId}"]`);if(t){t.classList.add(v.hidden);if(typeof t.remove==="function"){t.remove()}}}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-toast",{color:[1],gravity:[1],position:[1],type:[1],time:[2],closeLabel:[1,"close-label"],accessibleCloseLabel:[1,"accessible-close-label"],inheritedAttributes:[32],destroy:[64]},undefined,{color:["validateColor"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-toast","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-toast":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){f()}break}}))}y();const C=g;const j=y;export{C as GovToast,j as defineCustomElement};
1
+ import{p as t,H as s,c as o,h as i,a as e}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{C as c}from"./p-U40vKHrs.js";import{p as r}from"./p-CQvUntGY.js";import{g as n}from"./p-BHRF-5cf.js";import{c as h}from"./p-vN03FcXN.js";import{A as l,a as d,i as b}from"./p-CXgom82_.js";import{d as m}from"./p-o4vVG5sG.js";import{d as f}from"./p-Dj-FiQ37.js";const p=r(c,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var u;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(u||(u={}));const v={root:"gov-toast",hidden:"gov-toast--hidden",content:"gov-toast__content",icon:"gov-toast__icon",close:"gov-toast__close",timer:"gov-toast__timer"};const g=t(class t extends s{constructor(){super();this.__registerHost();this.govClose=o(this,"gov-close");this.color="primary";this.gravity="top";this.position="right";this.type="bold";this.time=0;this.inheritedAttributes={};this.h=n(this.host);this.toastId=h("GovToast")}validateColor(t){a(p,t,v.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateColor(this.color);this.runTimer();this.inheritedAttributes=b(this.host)}disconnectedCallback(){var t;clearTimeout(this.timeout);(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}runTimer(){if(this.isTimer){this.timeout=setTimeout((()=>{this.host.classList.add(v.hidden);setTimeout((()=>{this.destroy().catch();this.govClose.emit(this.toastId)}),600)}),this.time)}}render(){return i(e,{key:"987e5c487dd42f713414dcb0db4c5324db61bc46",class:this.h.classes(v.root),"data-toast-id":this.toastId,gravity:this.gravity,position:this.position,color:this.color,type:this.type,style:{"--toast-duration":this.time+"ms"}},this.h.hasSlot("icon")&&i("span",{key:"1ebdf5e3b7a44dfa2c5489a3d23f5b7aff2368b4",class:v.icon},i("slot",{key:"be28a32d3ff38e6c9adcaee780cfab4b814c4291",name:"icon"})),i("div",Object.assign({key:"c8a8040d1b724d0e59d10a7dfde32870912c5bed",class:v.content},this.inheritedAttributes,{"aria-live":"polite",role:"status"}),i("slot",{key:"021b0fede68c4f897c28b1f6ef7b088d71740ec3"})),i("gov-button",{key:"1792f238afbba0ad073cd5513044b15d43cbe07b",size:"s","aria-label":this.accessibleCloseLabel,color:this.isBold?this.color:"neutral",type:"base","on-gov-click":this.onCloseHandler.bind(this),class:v.close},this.closeLabel?this.closeLabel:i("gov-icon",{name:"x-lg",type:"components"})),i("div",{key:"b467970959f395a2c14182d98a06b17e471611b4",class:v.timer}))}onCloseHandler(){this.govClose.emit(this.toastId);this.destroy().catch()}get isBold(){return this.type==="bold"}get isTimer(){return Number.isInteger(this.time)&&this.time>0}async destroy(){clearTimeout(this.timeout);const t=document.querySelector(`[data-toast-id="${this.toastId}"]`);if(t){t.classList.add(v.hidden);if(typeof t.remove==="function"){t.remove()}}}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-toast",{color:[1],gravity:[1],position:[1],type:[1],time:[2],closeLabel:[1,"close-label"],accessibleCloseLabel:[1,"accessible-close-label"],inheritedAttributes:[32],destroy:[64]},undefined,{color:["validateColor"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-toast","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-toast":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){f()}break}}))}y();const j=g;const k=y;export{j as GovToast,k as defineCustomElement};
2
2
  //# sourceMappingURL=gov-toast.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-DjGO_trZ.js";const t=o;const r=s;export{t as GovTooltipContent,r as defineCustomElement};
1
+ import{G as o,d as s}from"./p-DlpZtTcv.js";const t=o;const p=s;export{t as GovTooltipContent,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tooltip-content.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,c as i,h as e,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{b as n,c}from"./p-CZr7GBEo.js";import{c as d}from"./p-vN03FcXN.js";import{g as l,c as h,b as r}from"./p-BHRF-5cf.js";import{d as m}from"./p-DRXiDAHW.js";var f;(function(s){s["DIV"]="div";s["BUTTON"]="button"})(f||(f={}));const p=s(class s extends t{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change");this.hydrated=false;this.color="primary";this.size="m";this.collapsible=false;this.disabled=false;this.isExpanded=false;this.h=l(this.host);this.triggerId=d("GovWizardItem");this.contentId=d("GovWizardContent")}validateColor(s){o(c,s,n.root)}emmitChange(){this.govChange.emit({expanded:this.isExpanded,component:n.root})}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const s=this.identifier||this.triggerId;const t=this.collapsible?f.BUTTON:f.DIV;const i=this.h.hasSlot("prefix")&&e("span",{key:"3f00516020337fc142713c6edb468d0007eba3c5",class:n.prefix},e("slot",{key:"05aa42bc8241f53bb3664dc3d06798cb0344f92f",name:"prefix"}));return e(a,{key:"863700f5087e86d1f8d4e22b40108dfbc0cb96f5",class:this.h.classes(n.root),"is-expanded":this.isExpanded,color:this.color,size:this.size,role:"listitem",collapsible:this.collapsible,hydrated:this.hydrated},e("div",{key:"6d93a5bb12dbe2fc2e308059ffd5d63ed915f16d",class:n.header},i,this.collapsible?e(t,{id:s,class:this.h.classes(n.label),"aria-expanded":h(this.isExpanded),"aria-controls":this.contentId,disabled:this.disabled,"aria-disabled":r(this.disabled),onClick:s=>{s.preventDefault();s.stopPropagation();this.toggle()}},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),e("slot",{name:"annotation"})):e(t,{class:this.h.classes(n.label)},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),e("slot",{name:"annotation"}))),this.collapsible?e("div",{class:n.content,id:this.contentId,"aria-hidden":h(!this.isExpanded),hidden:!this.isExpanded,"aria-labelledby":s},e("slot",null)):e("div",{class:n.content,"aria-hidden":h(!this.isExpanded),hidden:!this.isExpanded},e("slot",null)))}async open(){this.isExpanded=true;this.emmitChange()}async close(){this.isExpanded=false;this.emmitChange()}async toggle(){this.isExpanded=!this.isExpanded;this.emmitChange()}async currentState(){return this.isExpanded}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-wizard-item",{color:[1],size:[1],identifier:[1],collapsible:[4],disabled:[4],isExpanded:[1028,"is-expanded"],open:[64],close:[64],toggle:[64],currentState:[64]},undefined,{color:["validateColor"]}]);function b(){if(typeof customElements==="undefined"){return}const s=["gov-wizard-item","gov-icon"];s.forEach((s=>{switch(s){case"gov-wizard-item":if(!customElements.get(s)){customElements.define(s,p)}break;case"gov-icon":if(!customElements.get(s)){m()}break}}))}b();const u=p;const v=b;export{u as GovWizardItem,v as defineCustomElement};
1
+ import{p as s,H as t,c as i,h as e,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{b as n,c}from"./p-CZr7GBEo.js";import{c as d}from"./p-vN03FcXN.js";import{g as l,c as h,b as r}from"./p-BHRF-5cf.js";import{d as m}from"./p-Dj-FiQ37.js";var f;(function(s){s["DIV"]="div";s["BUTTON"]="button"})(f||(f={}));const p=s(class s extends t{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change");this.hydrated=false;this.color="primary";this.size="m";this.collapsible=false;this.disabled=false;this.isExpanded=false;this.h=l(this.host);this.triggerId=d("GovWizardItem");this.contentId=d("GovWizardContent")}validateColor(s){o(c,s,n.root)}emmitChange(){this.govChange.emit({expanded:this.isExpanded,component:n.root})}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const s=this.identifier||this.triggerId;const t=this.collapsible?f.BUTTON:f.DIV;const i=this.h.hasSlot("prefix")&&e("span",{key:"3f00516020337fc142713c6edb468d0007eba3c5",class:n.prefix},e("slot",{key:"05aa42bc8241f53bb3664dc3d06798cb0344f92f",name:"prefix"}));return e(a,{key:"863700f5087e86d1f8d4e22b40108dfbc0cb96f5",class:this.h.classes(n.root),"is-expanded":this.isExpanded,color:this.color,size:this.size,role:"listitem",collapsible:this.collapsible,hydrated:this.hydrated},e("div",{key:"6d93a5bb12dbe2fc2e308059ffd5d63ed915f16d",class:n.header},i,this.collapsible?e(t,{id:s,class:this.h.classes(n.label),"aria-expanded":h(this.isExpanded),"aria-controls":this.contentId,disabled:this.disabled,"aria-disabled":r(this.disabled),onClick:s=>{s.preventDefault();s.stopPropagation();this.toggle()}},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),e("slot",{name:"annotation"})):e(t,{class:this.h.classes(n.label)},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),e("slot",{name:"annotation"}))),this.collapsible?e("div",{class:n.content,id:this.contentId,"aria-hidden":h(!this.isExpanded),hidden:!this.isExpanded,"aria-labelledby":s},e("slot",null)):e("div",{class:n.content,"aria-hidden":h(!this.isExpanded),hidden:!this.isExpanded},e("slot",null)))}async open(){this.isExpanded=true;this.emmitChange()}async close(){this.isExpanded=false;this.emmitChange()}async toggle(){this.isExpanded=!this.isExpanded;this.emmitChange()}async currentState(){return this.isExpanded}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-wizard-item",{color:[1],size:[1],identifier:[1],collapsible:[4],disabled:[4],isExpanded:[1028,"is-expanded"],open:[64],close:[64],toggle:[64],currentState:[64]},undefined,{color:["validateColor"]}]);function b(){if(typeof customElements==="undefined"){return}const s=["gov-wizard-item","gov-icon"];s.forEach((s=>{switch(s){case"gov-wizard-item":if(!customElements.get(s)){customElements.define(s,p)}break;case"gov-icon":if(!customElements.get(s)){m()}break}}))}b();const u=p;const v=b;export{u as GovWizardItem,v as defineCustomElement};
2
2
  //# sourceMappingURL=gov-wizard-item.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,a as h}from"./index.js";import{t as o,c as a}from"./p-BHRF-5cf.js";import{v as n}from"./p-BKP-F1qP.js";import{r,c as l}from"./p-vN03FcXN.js";import{d as c,t as m,h as u}from"./p-CQvUntGY.js";import{j as f,k as d}from"./p-BSr8e18S.js";import{p}from"./p-B0hcuYXk.js";import{A as v,a as b,i as g}from"./p-CXgom82_.js";import{d as y}from"./p-ClDhNt_H.js";import{d as k}from"./p-BNoNH6m-.js";import{d as w}from"./p-DRXiDAHW.js";import{d as j}from"./p-BxS4InzB.js";const T=t=>typeof t==="string"?r(t).toLowerCase():"";const x=(t,s,i,e)=>{const h=Array.isArray(t)?t:[];const o=T(s);const a=o.length===0?h:h.filter((t=>{const s=t===null||t===void 0?void 0:t[i];return typeof s==="string"&&T(s).includes(o)}));return Number.isInteger(e)&&e>0?a.slice(0,e):a};const z=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.govSelect=i(this,"gov-select");this.fullOptions=[];this.templateResolver=t=>t[this.nameKey];this.value="";this.size="m";this.nameKey="name";this.required=false;this.disabled=false;this.minlength=3;this.maxOptions=10;this.throttleTime=200;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.processing=false;this.arrowCounter=-1;this.list=[];this.inheritedAttributes={};this.emitAndSearch=t=>{this.govInput.emit({originalEvent:t,component:f.root,value:this.value,selected:null});this.doSearch()};this.onInputHandler=t=>{t.stopPropagation();this.value=t.detail.value;this.debouncedSearch(t)};this.listBoxId=l("GovListBox")}validateSize(t){n(d,t,f.root)}watchOptions(t){this.fullOptions=p(t);if(this.searchCallback){this.setOptions(this.fullOptions).catch()}else{this.list=x(this.fullOptions,this.value,this.nameKey,this.maxOptions)}}onArrowUp(){if(this.arrowCounter>0){this.arrowCounter=this.arrowCounter-1;this.moveToView().finally()}}onArrowDown(){if(this.arrowCounter<this.list.length-1){this.arrowCounter=this.arrowCounter+1;this.moveToView().finally()}}async moveToView(){await c(200);const t=this.listRef.offsetHeight;const s=this.listRef.querySelector('li[aria-selected="true"]');if(s&&t){const t=s.offsetTop;this.listRef.scrollTo({top:t,behavior:"smooth"})}}doSearch(){if(this.searchCallback){if(Number.isInteger(this.minlength)&&this.isValueAccepted===false&&this.minlength){this.list=[];this.arrowCounter=-1;this.processing=false;return}this.processing=true;this.searchCallback(this.value).then((t=>this.list=t)).catch((()=>this.list=[])).finally((()=>{this.arrowCounter=-1;this.processing=false}));return}this.list=x(this.fullOptions,this.value,this.nameKey,this.maxOptions);this.arrowCounter=-1}clearList(){if(this.fullOptions.length===0){this.list=[]}}get isValueAccepted(){if(typeof this.value==="string"){return this.value.length>=this.minlength}else{return false}}componentDidLoad(){this.attributeObserver=new v(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=g(this.host);this.debouncedSearch=m(this.emitAndSearch,this.throttleTime);this.fullOptions=p(this.options);if(!this.searchCallback){this.list=x(this.fullOptions,this.value,this.nameKey,this.maxOptions)}}watchThrottleTime(){this.debouncedSearch=m(this.emitAndSearch,this.throttleTime)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return e(h,{key:"0cdbf770359115b24432e9d533b4e17ab2c65e18",class:f.root,size:this.size},e("gov-form-input",Object.assign({key:"5724ed153e3f2384725badbafdb0c19e67b69538",placeholder:this.placeholder,name:this.name,disabled:this.disabled,readonly:this.readonly,autocomplete:false,size:this.size,required:this.required,invalid:this.invalid,success:this.success,role:"searchbox",value:this.value,minlength:this.minlength,maxlength:this.maxlength,"on-gov-input":this.onInputHandler,"on-gov-keyup":this.onKeyUpHandler.bind(this),"on-gov-keydown":this.onKeyDownHandler.bind(this),"on-gov-focus":this.onFocusHandler.bind(this),"on-gov-blur":this.onBlurHandler.bind(this)},this.inheritedAttributes,{"aria-autocomplete":"list","aria-owns":[this.listBoxId,this.inheritedAttributes["aria-owns"]].join(" "),"aria-expanded":a(this.list.length&&this.focused?true:false),ref:t=>this.inputRef=t}),e("slot",{key:"ab6f37982f3d13adc2473a744b5697ac8bc651f5",name:"validation-icon"}),e("slot",{key:"1961a029eceee169b5be12fa4ba8c2e9072bb9de",name:"icon-end"})),e("ul",{key:"61b9b6929be4816e93e1b5fb778c3861b4f8631b",class:f.list,role:"listbox","aria-hidden":o(!this.focused),hidden:!this.focused,id:this.listBoxId,ref:t=>this.listRef=t},this.focused&&this.list.length===0&&this.processing===false&&(this.isValueAccepted||!this.searchCallback&&this.fullOptions.length>0)&&this.messageEmpty?e("li",{class:f.empty},this.messageEmpty):null,this.focused&&this.processing===true&&this.isValueAccepted?e("li",{class:f.loading},e("gov-skeleton",{size:"m"})):null,this.focused?this.list.map(((t,s)=>{const i=this.arrowCounter===s;return e("li",{class:f.item,innerHTML:this.templateResolver(t,i),role:"option","aria-posinset":s,tabindex:i?0:-1,"aria-setsize":this.list.length,onTouchStart:t=>this.onSelectHandler(t,s),onMouseDown:t=>this.onSelectHandler(t,s),"aria-selected":o(i)},e("slot",{name:"list-item-left"}),e("slot",{name:"list-item-right"}))})):null))}onFocusHandler(t){this.focused=true;this.arrowCounter=-1;if(this.searchCallback){if(this.isValueAccepted){this.doSearch()}}else{this.doSearch()}t.stopPropagation();this.govFocus.emit({originalEvent:t,component:f.root,value:this.value,selected:null})}onBlurHandler(t){this.focused=false;this.clearList();this.arrowCounter=-1;t.stopPropagation();this.govBlur.emit({originalEvent:t,component:f.root,value:this.value,selected:null})}onSelectHandler(t,s=-1){let i=null;if(s>-1){i=this.list[s]}else if(u(this.arrowCounter,this.list)){i=this.list[this.arrowCounter]}if(i){this.govSelect.emit({component:f.root,value:this.value,selected:i,originalEvent:t});this.clearList();if(u(this.nameKey,i)&&typeof i[this.nameKey]==="string"){this.value=i[this.nameKey]}}}onKeyUpHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===38)this.onArrowUp();else if(s.keyCode===40)this.onArrowDown();else if(s.keyCode===13){t.preventDefault();s.preventDefault();this.onSelectHandler(t)}}onKeyDownHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===13){t.preventDefault();s.preventDefault()}}async setFocus(t){return this.inputRef.focus(t)}async setBlur(){return this.inputRef.blur()}async setOptions(t){this.list=Array.isArray(t)?t:[];this.arrowCounter=-1}async clearValue(){this.value="";this.inputRef.value="";await this.inputRef.clearValue()}async setProcessing(t){this.processing=t}async setSearchCallback(t){this.searchCallback=t}async setTemplateResolver(t){this.templateResolver=t}get host(){return this}static get watchers(){return{size:["validateSize"],options:["watchOptions"],throttleTime:["watchThrottleTime"]}}},[4,"gov-form-autocomplete",{value:[1537],options:[1537],identifier:[1],success:[4],size:[1],nameKey:[1,"name-key"],name:[1],required:[4],disabled:[516],placeholder:[1],readonly:[4],invalid:[4],minlength:[2],maxlength:[2],maxOptions:[2,"max-options"],throttleTime:[2,"throttle-time"],messageEmpty:[1,"message-empty"],focused:[32],processing:[32],arrowCounter:[32],list:[32],inheritedAttributes:[32],setFocus:[64],setBlur:[64],setOptions:[64],clearValue:[64],setProcessing:[64],setSearchCallback:[64],setTemplateResolver:[64]},undefined,{size:["validateSize"],options:["watchOptions"],throttleTime:["watchThrottleTime"]}]);function E(){if(typeof customElements==="undefined"){return}const t=["gov-form-autocomplete","gov-button","gov-form-input","gov-icon","gov-skeleton"];t.forEach((t=>{switch(t){case"gov-form-autocomplete":if(!customElements.get(t)){customElements.define(t,z)}break;case"gov-button":if(!customElements.get(t)){y()}break;case"gov-form-input":if(!customElements.get(t)){k()}break;case"gov-icon":if(!customElements.get(t)){w()}break;case"gov-skeleton":if(!customElements.get(t)){j()}break}}))}E();export{z as G,E as d};
2
- //# sourceMappingURL=p-isPjiQbr.js.map
1
+ import{p as t,H as s,c as i,h as e,a as h}from"./index.js";import{t as o,c as a}from"./p-BHRF-5cf.js";import{v as n}from"./p-BKP-F1qP.js";import{r,c as l}from"./p-vN03FcXN.js";import{d as c,t as m,h as u}from"./p-CQvUntGY.js";import{j as f,k as d}from"./p-BSr8e18S.js";import{p}from"./p-B0hcuYXk.js";import{A as v,a as b,i as g}from"./p-CXgom82_.js";import{d as y}from"./p-o4vVG5sG.js";import{d as k}from"./p-Dw1o8KoZ.js";import{d as w}from"./p-Dj-FiQ37.js";import{d as j}from"./p-BxS4InzB.js";const T=t=>typeof t==="string"?r(t).toLowerCase():"";const x=(t,s,i,e)=>{const h=Array.isArray(t)?t:[];const o=T(s);const a=o.length===0?h:h.filter((t=>{const s=t===null||t===void 0?void 0:t[i];return typeof s==="string"&&T(s).includes(o)}));return Number.isInteger(e)&&e>0?a.slice(0,e):a};const z=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.govSelect=i(this,"gov-select");this.fullOptions=[];this.templateResolver=t=>t[this.nameKey];this.value="";this.size="m";this.nameKey="name";this.required=false;this.disabled=false;this.minlength=3;this.maxOptions=10;this.throttleTime=200;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.processing=false;this.arrowCounter=-1;this.list=[];this.inheritedAttributes={};this.emitAndSearch=t=>{this.govInput.emit({originalEvent:t,component:f.root,value:this.value,selected:null});this.doSearch()};this.onInputHandler=t=>{t.stopPropagation();this.value=t.detail.value;this.debouncedSearch(t)};this.listBoxId=l("GovListBox")}validateSize(t){n(d,t,f.root)}watchOptions(t){this.fullOptions=p(t);if(this.searchCallback){this.setOptions(this.fullOptions).catch()}else{this.list=x(this.fullOptions,this.value,this.nameKey,this.maxOptions)}}onArrowUp(){if(this.arrowCounter>0){this.arrowCounter=this.arrowCounter-1;this.moveToView().finally()}}onArrowDown(){if(this.arrowCounter<this.list.length-1){this.arrowCounter=this.arrowCounter+1;this.moveToView().finally()}}async moveToView(){await c(200);const t=this.listRef.offsetHeight;const s=this.listRef.querySelector('li[aria-selected="true"]');if(s&&t){const t=s.offsetTop;this.listRef.scrollTo({top:t,behavior:"smooth"})}}doSearch(){if(this.searchCallback){if(Number.isInteger(this.minlength)&&this.isValueAccepted===false&&this.minlength){this.list=[];this.arrowCounter=-1;this.processing=false;return}this.processing=true;this.searchCallback(this.value).then((t=>this.list=t)).catch((()=>this.list=[])).finally((()=>{this.arrowCounter=-1;this.processing=false}));return}this.list=x(this.fullOptions,this.value,this.nameKey,this.maxOptions);this.arrowCounter=-1}clearList(){if(this.fullOptions.length===0){this.list=[]}}get isValueAccepted(){if(typeof this.value==="string"){return this.value.length>=this.minlength}else{return false}}componentDidLoad(){this.attributeObserver=new v(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=g(this.host);this.debouncedSearch=m(this.emitAndSearch,this.throttleTime);this.fullOptions=p(this.options);if(!this.searchCallback){this.list=x(this.fullOptions,this.value,this.nameKey,this.maxOptions)}}watchThrottleTime(){this.debouncedSearch=m(this.emitAndSearch,this.throttleTime)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return e(h,{key:"0cdbf770359115b24432e9d533b4e17ab2c65e18",class:f.root,size:this.size},e("gov-form-input",Object.assign({key:"5724ed153e3f2384725badbafdb0c19e67b69538",placeholder:this.placeholder,name:this.name,disabled:this.disabled,readonly:this.readonly,autocomplete:false,size:this.size,required:this.required,invalid:this.invalid,success:this.success,role:"searchbox",value:this.value,minlength:this.minlength,maxlength:this.maxlength,"on-gov-input":this.onInputHandler,"on-gov-keyup":this.onKeyUpHandler.bind(this),"on-gov-keydown":this.onKeyDownHandler.bind(this),"on-gov-focus":this.onFocusHandler.bind(this),"on-gov-blur":this.onBlurHandler.bind(this)},this.inheritedAttributes,{"aria-autocomplete":"list","aria-owns":[this.listBoxId,this.inheritedAttributes["aria-owns"]].join(" "),"aria-expanded":a(this.list.length&&this.focused?true:false),ref:t=>this.inputRef=t}),e("slot",{key:"ab6f37982f3d13adc2473a744b5697ac8bc651f5",name:"validation-icon"}),e("slot",{key:"1961a029eceee169b5be12fa4ba8c2e9072bb9de",name:"icon-end"})),e("ul",{key:"61b9b6929be4816e93e1b5fb778c3861b4f8631b",class:f.list,role:"listbox","aria-hidden":o(!this.focused),hidden:!this.focused,id:this.listBoxId,ref:t=>this.listRef=t},this.focused&&this.list.length===0&&this.processing===false&&(this.isValueAccepted||!this.searchCallback&&this.fullOptions.length>0)&&this.messageEmpty?e("li",{class:f.empty},this.messageEmpty):null,this.focused&&this.processing===true&&this.isValueAccepted?e("li",{class:f.loading},e("gov-skeleton",{size:"m"})):null,this.focused?this.list.map(((t,s)=>{const i=this.arrowCounter===s;return e("li",{class:f.item,innerHTML:this.templateResolver(t,i),role:"option","aria-posinset":s,tabindex:i?0:-1,"aria-setsize":this.list.length,onTouchStart:t=>this.onSelectHandler(t,s),onMouseDown:t=>this.onSelectHandler(t,s),"aria-selected":o(i)},e("slot",{name:"list-item-left"}),e("slot",{name:"list-item-right"}))})):null))}onFocusHandler(t){this.focused=true;this.arrowCounter=-1;if(this.searchCallback){if(this.isValueAccepted){this.doSearch()}}else{this.doSearch()}t.stopPropagation();this.govFocus.emit({originalEvent:t,component:f.root,value:this.value,selected:null})}onBlurHandler(t){this.focused=false;this.clearList();this.arrowCounter=-1;t.stopPropagation();this.govBlur.emit({originalEvent:t,component:f.root,value:this.value,selected:null})}onSelectHandler(t,s=-1){let i=null;if(s>-1){i=this.list[s]}else if(u(this.arrowCounter,this.list)){i=this.list[this.arrowCounter]}if(i){this.govSelect.emit({component:f.root,value:this.value,selected:i,originalEvent:t});this.clearList();if(u(this.nameKey,i)&&typeof i[this.nameKey]==="string"){this.value=i[this.nameKey]}}}onKeyUpHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===38)this.onArrowUp();else if(s.keyCode===40)this.onArrowDown();else if(s.keyCode===13){t.preventDefault();s.preventDefault();this.onSelectHandler(t)}}onKeyDownHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===13){t.preventDefault();s.preventDefault()}}async setFocus(t){return this.inputRef.focus(t)}async setBlur(){return this.inputRef.blur()}async setOptions(t){this.list=Array.isArray(t)?t:[];this.arrowCounter=-1}async clearValue(){this.value="";this.inputRef.value="";await this.inputRef.clearValue()}async setProcessing(t){this.processing=t}async setSearchCallback(t){this.searchCallback=t}async setTemplateResolver(t){this.templateResolver=t}get host(){return this}static get watchers(){return{size:["validateSize"],options:["watchOptions"],throttleTime:["watchThrottleTime"]}}},[4,"gov-form-autocomplete",{value:[1537],options:[1537],identifier:[1],success:[4],size:[1],nameKey:[1,"name-key"],name:[1],required:[4],disabled:[516],placeholder:[1],readonly:[4],invalid:[4],minlength:[2],maxlength:[2],maxOptions:[2,"max-options"],throttleTime:[2,"throttle-time"],messageEmpty:[1,"message-empty"],focused:[32],processing:[32],arrowCounter:[32],list:[32],inheritedAttributes:[32],setFocus:[64],setBlur:[64],setOptions:[64],clearValue:[64],setProcessing:[64],setSearchCallback:[64],setTemplateResolver:[64]},undefined,{size:["validateSize"],options:["watchOptions"],throttleTime:["watchThrottleTime"]}]);function E(){if(typeof customElements==="undefined"){return}const t=["gov-form-autocomplete","gov-button","gov-form-input","gov-icon","gov-skeleton"];t.forEach((t=>{switch(t){case"gov-form-autocomplete":if(!customElements.get(t)){customElements.define(t,z)}break;case"gov-button":if(!customElements.get(t)){y()}break;case"gov-form-input":if(!customElements.get(t)){k()}break;case"gov-icon":if(!customElements.get(t)){w()}break;case"gov-skeleton":if(!customElements.get(t)){j()}break}}))}E();export{z as G,E as d};
2
+ //# sourceMappingURL=p-BIB-JMbL.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as a,h as s,a as o}from"./index.js";import{a as i}from"./p-CUVZZBqo.js";import{a as c}from"./p-Nvj7WFs_.js";import{c as m}from"./p-DrPpH_9c.js";import{d as n}from"./p-CQvUntGY.js";import{g as r}from"./p-BHRF-5cf.js";import{i as l}from"./p-B3tdsiZv.js";import{d as f}from"./p-ClDhNt_H.js";import{d as v}from"./p-DRXiDAHW.js";import{d as p}from"./p-keC6luw7.js";import{d as g}from"./p-DjGO_trZ.js";const d="gov-attachments-item,.gov-attachments-item{display:flex;flex-direction:column}gov-attachments-item__messages>*:last-child,.gov-attachments-item__messages>*:last-child{margin-bottom:0}gov-attachments-item__messages>*,.gov-attachments-item__messages>*{position:relative;top:calc(-1 * var(--spacing-xs))}gov-attachments-item__file,.gov-attachments-item__file{display:flex;gap:var(--spacing-s);max-width:100%}gov-attachments-item__name,.gov-attachments-item__name{display:flex;-moz-column-gap:var(--spacing-s);column-gap:var(--spacing-s);align-items:center;max-width:calc(100% - var(--spacing-s) - var(--icon-size-s) - (var(--spacing-s-nudge) + var(--border-width, 0.0625rem)) * 2);margin:0}gov-attachments-item__name>gov-tooltip,gov-attachments-item__name .gov-tooltip,.gov-attachments-item__name>gov-tooltip,.gov-attachments-item__name .gov-tooltip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--name-color, var(--text-primary))}gov-attachments-item__name span[slot=info],.gov-attachments-item__name span[slot=info]{font-size:var(--font-size-body-xs);line-height:150%;font-weight:400;color:var(--decor-color, var(--text-secondary));white-space:nowrap}";const h=t(class t extends e{constructor(){super();this.__registerHost();this.govRemove=a(this,"gov-remove");this.accessibleRemoveLabel="Odebrat soubor {FILE_NAME}";this.h=r(this.host)}async componentDidRender(){if(m()){await n(500);await this.validateAccessibility()}}render(){return s(o,{key:"7a7acaf1946577d29894242aa9606768afc96f77",class:this.h.classes(i.root),role:"listitem"},s("div",{key:"5cc40f9f91438105713d5c6a70686c5c12208b66",class:i.file},s("div",{key:"77e578b8c71cfc1bba2e89eacaa12e582692ff30",class:i.name},s("gov-tooltip",{key:"bf9a97f411e3877fdb1278b064910a64184662cd",position:"top",icon:true},s("slot",{key:"0eba40236e53407fa5fc380ebd552d339cff0054"}),s("gov-tooltip-content",{key:"624f6e919d73eae63db9cb667b5243997541a6c6"},this.h.getSlotContent(`name`))),s("slot",{key:"524f5a4397490a1371bd476361d1fc0e2308745c",name:"info"})),s("gov-button",{key:"0f0f046e9ab994201088ab802c9fb9bc4ff0f04c",color:"primary",type:"base",size:"s","aria-label":l(this.accessibleRemoveLabel)?this.accessibleRemoveLabel.replace("{FILE_NAME}",this.h.getSlotContent(`name`)||"").trim():null,"aria-labelledby":this.accessibleRemoveLabelledBy,"on-gov-click":this.govRemove.emit},s("gov-icon",{key:"16fc279022a36799b03ec2af3a5f2e2b8f70755f",slot:"icon-start",name:"x-lg",type:"components"}))),this.h.hasSlot("message")&&s("div",{key:"554ff1ff7dce9b034db47c13a66ac17f29ad38f4",class:i.messages},s("slot",{key:"09a9a492fb503a8c285cb21e10ec9d26c8cc71f5",name:"message"})))}async validateAccessibility(){c(this.accessibleRemoveLabel,this.accessibleRemoveLabelledBy,i.root,this.host)}get host(){return this}static get style(){return d}},[4,"gov-attachments-item",{accessibleRemoveLabel:[1,"accessible-remove-label"],accessibleRemoveLabelledBy:[1,"accessible-remove-labelledby"],validateAccessibility:[64]}]);function b(){if(typeof customElements==="undefined"){return}const t=["gov-attachments-item","gov-button","gov-icon","gov-tooltip","gov-tooltip-content"];t.forEach((t=>{switch(t){case"gov-attachments-item":if(!customElements.get(t)){customElements.define(t,h)}break;case"gov-button":if(!customElements.get(t)){f()}break;case"gov-icon":if(!customElements.get(t)){v()}break;case"gov-tooltip":if(!customElements.get(t)){p()}break;case"gov-tooltip-content":if(!customElements.get(t)){g()}break}}))}b();export{h as G,b as d};
2
- //# sourceMappingURL=p-BICk4EuO.js.map
1
+ import{p as t,H as e,c as a,h as s,a as o}from"./index.js";import{a as i}from"./p-CUVZZBqo.js";import{a as c}from"./p-Nvj7WFs_.js";import{c as m}from"./p-DrPpH_9c.js";import{d as n}from"./p-CQvUntGY.js";import{g as r}from"./p-BHRF-5cf.js";import{i as l}from"./p-B3tdsiZv.js";import{d as f}from"./p-o4vVG5sG.js";import{d as v}from"./p-Dj-FiQ37.js";import{d as p}from"./p-keC6luw7.js";import{d as g}from"./p-DlpZtTcv.js";const d="gov-attachments-item,.gov-attachments-item{display:flex;flex-direction:column}gov-attachments-item__messages>*:last-child,.gov-attachments-item__messages>*:last-child{margin-bottom:0}gov-attachments-item__messages>*,.gov-attachments-item__messages>*{position:relative;top:calc(-1 * var(--spacing-xs))}gov-attachments-item__file,.gov-attachments-item__file{display:flex;gap:var(--spacing-s);max-width:100%}gov-attachments-item__name,.gov-attachments-item__name{display:flex;-moz-column-gap:var(--spacing-s);column-gap:var(--spacing-s);align-items:center;max-width:calc(100% - var(--spacing-s) - var(--icon-size-s) - (var(--spacing-s-nudge) + var(--border-width, 0.0625rem)) * 2);margin:0}gov-attachments-item__name>gov-tooltip,gov-attachments-item__name .gov-tooltip,.gov-attachments-item__name>gov-tooltip,.gov-attachments-item__name .gov-tooltip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--name-color, var(--text-primary))}gov-attachments-item__name span[slot=info],.gov-attachments-item__name span[slot=info]{font-size:var(--font-size-body-xs);line-height:150%;font-weight:400;color:var(--decor-color, var(--text-secondary));white-space:nowrap}";const h=t(class t extends e{constructor(){super();this.__registerHost();this.govRemove=a(this,"gov-remove");this.accessibleRemoveLabel="Odebrat soubor {FILE_NAME}";this.h=r(this.host)}async componentDidRender(){if(m()){await n(500);await this.validateAccessibility()}}render(){return s(o,{key:"7a7acaf1946577d29894242aa9606768afc96f77",class:this.h.classes(i.root),role:"listitem"},s("div",{key:"5cc40f9f91438105713d5c6a70686c5c12208b66",class:i.file},s("div",{key:"77e578b8c71cfc1bba2e89eacaa12e582692ff30",class:i.name},s("gov-tooltip",{key:"bf9a97f411e3877fdb1278b064910a64184662cd",position:"top",icon:true},s("slot",{key:"0eba40236e53407fa5fc380ebd552d339cff0054"}),s("gov-tooltip-content",{key:"624f6e919d73eae63db9cb667b5243997541a6c6"},this.h.getSlotContent(`name`))),s("slot",{key:"524f5a4397490a1371bd476361d1fc0e2308745c",name:"info"})),s("gov-button",{key:"0f0f046e9ab994201088ab802c9fb9bc4ff0f04c",color:"primary",type:"base",size:"s","aria-label":l(this.accessibleRemoveLabel)?this.accessibleRemoveLabel.replace("{FILE_NAME}",this.h.getSlotContent(`name`)||"").trim():null,"aria-labelledby":this.accessibleRemoveLabelledBy,"on-gov-click":this.govRemove.emit},s("gov-icon",{key:"16fc279022a36799b03ec2af3a5f2e2b8f70755f",slot:"icon-start",name:"x-lg",type:"components"}))),this.h.hasSlot("message")&&s("div",{key:"554ff1ff7dce9b034db47c13a66ac17f29ad38f4",class:i.messages},s("slot",{key:"09a9a492fb503a8c285cb21e10ec9d26c8cc71f5",name:"message"})))}async validateAccessibility(){c(this.accessibleRemoveLabel,this.accessibleRemoveLabelledBy,i.root,this.host)}get host(){return this}static get style(){return d}},[4,"gov-attachments-item",{accessibleRemoveLabel:[1,"accessible-remove-label"],accessibleRemoveLabelledBy:[1,"accessible-remove-labelledby"],validateAccessibility:[64]}]);function b(){if(typeof customElements==="undefined"){return}const t=["gov-attachments-item","gov-button","gov-icon","gov-tooltip","gov-tooltip-content"];t.forEach((t=>{switch(t){case"gov-attachments-item":if(!customElements.get(t)){customElements.define(t,h)}break;case"gov-button":if(!customElements.get(t)){f()}break;case"gov-icon":if(!customElements.get(t)){v()}break;case"gov-tooltip":if(!customElements.get(t)){p()}break;case"gov-tooltip-content":if(!customElements.get(t)){g()}break}}))}b();export{h as G,b as d};
2
+ //# sourceMappingURL=p-BVG9PtuQ.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,a}from"./index.js";import{g as o,b as n,c}from"./p-BSr8e18S.js";import{g as h,t as r,b as d}from"./p-BHRF-5cf.js";import{v as l}from"./p-BKP-F1qP.js";import{c as f}from"./p-vN03FcXN.js";import{p as u}from"./p-B0hcuYXk.js";import{A as m,a as p,i as v}from"./p-CXgom82_.js";import{d as b}from"./p-DRXiDAHW.js";const g=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govChange=i(this,"gov-change");this.size="m";this.required=false;this.disabled=false;this.optionsState=[];this.inheritedAttributes={};this.h=h(this.host);this.f=o(this.h);this.selectId=f("GovSelect")}validateSize(t){l(c,t,n.root)}watchOptions(t){this.optionsState=u(t)}watchControlAttrs(){this.passControlAttrs()}watchValue(){this.syncSelectValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","select")}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(p);this.syncSelectValue()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateSize(this.size);this.optionsState=u(this.options);this.inheritedAttributes=v(this.host)}async componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}syncSelectValue(){if(this.selectRef&&this.value!==undefined&&this.selectRef.value!==this.value){this.selectRef.value=this.value}}render(){return e(a,{key:"d29638f5868731a2324971d197dcd636364a4f6c",class:n.root,size:this.size},this.h.hasSlot("prefix")&&e("slot",{key:"41cc14ee33022a4cf6d10c3d86c8915551221e94",name:"prefix"}),e("span",{key:"f9c167589fa81f0a060a13d9a31d16ab642d5ad2",class:"element"},e("select",Object.assign({key:"2dd5c948ccc7b65674e7d7f730cb2c9567287668",id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":d(this.disabled),"aria-required":d(this.required),"aria-invalid":d(this.invalid)}),e("slot",{key:"f6f0b21c9e43e1216446bce09c57a757a40d7b7b"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;return e("option",{value:t.value,selected:t.value===this.value,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)}))),this.success&&e("gov-icon",{key:"d94a0191bc7d02d55450dfad627457101226ad22",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&e("gov-icon",{key:"84ecf7197313c8a145efa54730d22068679df3f5",class:"validation-icon",name:"exclamation-lg",type:"components"}),e("gov-icon",{key:"1a219d4d230466ac15e316eee16d4a55db1889fe",class:"arrow-icon",name:"chevron-down",type:"components"})),this.h.hasSlot("sufix")&&e("slot",{key:"c7f4816548e3494de94f7ff0dd33f6c904acc14b",name:"sufix"}))}onFocusHandler(t){this.focused=true;this.govFocus.emit({component:n.root,originalEvent:t,value:this.value})}onBlurHandler(t){this.focused=false;this.govBlur.emit({component:n.root,originalEvent:t,value:this.value})}onChangeHandler(t){this.value=t.target.value;t.stopPropagation();this.govChange.emit({component:n.root,originalEvent:t,value:this.value})}async setFocus(t){return this.selectRef.focus(t)}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}}},[4,"gov-form-select",{value:[1537],options:[1537],identifier:[1],size:[1],name:[1],required:[4],success:[516],disabled:[516],invalid:[4],focused:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}]);function w(){if(typeof customElements==="undefined"){return}const t=["gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-select":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-icon":if(!customElements.get(t)){b()}break}}))}w();export{g as G,w as d};
2
- //# sourceMappingURL=p-DmK9qaKH.js.map
1
+ import{p as t,H as s,c as i,h as e,a}from"./index.js";import{g as o,b as n,c}from"./p-BSr8e18S.js";import{g as h,t as r,b as d}from"./p-BHRF-5cf.js";import{v as l}from"./p-BKP-F1qP.js";import{c as f}from"./p-vN03FcXN.js";import{p as u}from"./p-B0hcuYXk.js";import{A as m,a as p,i as v}from"./p-CXgom82_.js";import{d as b}from"./p-Dj-FiQ37.js";const g=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govChange=i(this,"gov-change");this.size="m";this.required=false;this.disabled=false;this.optionsState=[];this.inheritedAttributes={};this.h=h(this.host);this.f=o(this.h);this.selectId=f("GovSelect")}validateSize(t){l(c,t,n.root)}watchOptions(t){this.optionsState=u(t)}watchControlAttrs(){this.passControlAttrs()}watchValue(){this.syncSelectValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","select")}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(p);this.syncSelectValue()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateSize(this.size);this.optionsState=u(this.options);this.inheritedAttributes=v(this.host)}async componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}syncSelectValue(){if(this.selectRef&&this.value!==undefined&&this.selectRef.value!==this.value){this.selectRef.value=this.value}}render(){return e(a,{key:"d29638f5868731a2324971d197dcd636364a4f6c",class:n.root,size:this.size},this.h.hasSlot("prefix")&&e("slot",{key:"41cc14ee33022a4cf6d10c3d86c8915551221e94",name:"prefix"}),e("span",{key:"f9c167589fa81f0a060a13d9a31d16ab642d5ad2",class:"element"},e("select",Object.assign({key:"2dd5c948ccc7b65674e7d7f730cb2c9567287668",id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":d(this.disabled),"aria-required":d(this.required),"aria-invalid":d(this.invalid)}),e("slot",{key:"f6f0b21c9e43e1216446bce09c57a757a40d7b7b"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;return e("option",{value:t.value,selected:t.value===this.value,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)}))),this.success&&e("gov-icon",{key:"d94a0191bc7d02d55450dfad627457101226ad22",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&e("gov-icon",{key:"84ecf7197313c8a145efa54730d22068679df3f5",class:"validation-icon",name:"exclamation-lg",type:"components"}),e("gov-icon",{key:"1a219d4d230466ac15e316eee16d4a55db1889fe",class:"arrow-icon",name:"chevron-down",type:"components"})),this.h.hasSlot("sufix")&&e("slot",{key:"c7f4816548e3494de94f7ff0dd33f6c904acc14b",name:"sufix"}))}onFocusHandler(t){this.focused=true;this.govFocus.emit({component:n.root,originalEvent:t,value:this.value})}onBlurHandler(t){this.focused=false;this.govBlur.emit({component:n.root,originalEvent:t,value:this.value})}onChangeHandler(t){this.value=t.target.value;t.stopPropagation();this.govChange.emit({component:n.root,originalEvent:t,value:this.value})}async setFocus(t){return this.selectRef.focus(t)}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}}},[4,"gov-form-select",{value:[1537],options:[1537],identifier:[1],size:[1],name:[1],required:[4],success:[516],disabled:[516],invalid:[4],focused:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}]);function w(){if(typeof customElements==="undefined"){return}const t=["gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-select":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-icon":if(!customElements.get(t)){b()}break}}))}w();export{g as G,w as d};
2
+ //# sourceMappingURL=p-DV0Pdd1S.js.map
@@ -0,0 +1,2 @@
1
+ import{p as t,H as s,h as e,a as n}from"./index.js";import{p as o}from"./p-CQvUntGY.js";import{C as i}from"./p-U40vKHrs.js";import{S as r}from"./p-BcQO4NH2.js";import{a,i as c,b as l}from"./p-DrPpH_9c.js";import{g as h}from"./p-BHRF-5cf.js";import{v as u}from"./p-BKP-F1qP.js";o(r,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);const f=o(i,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var m;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(m||(m={}));const p={root:"gov-icon"};const d="4.6.5";const v=()=>d;const w={};const g={};const y=t=>t.startsWith("http://")||t.startsWith("https://");const C=(t,s,e)=>{if(y(t)){return`${t}/${e}/${s}.svg?v=${v()}`}return`${t}/${e}/${s}.svg`+`?v=${v()}`};async function I({name:t,type:s}){const e=s+"-"+t;if(w[e]){return w[e]}if(!g[e]){g[e]=fetch(C(a(),t,s)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const n=await g[e];w[e]=n;return n}const E=(t,s,e)=>{if(!c){return}let n="";document.cookie=`${t}=${encodeURIComponent(s)}${n}; path=/`};const L=t=>{if(!c){return null}const s=t+"=";const e=document.cookie.split(";");for(let t=0;t<e.length;t++){let n=e[t].trim();if(n.startsWith(s)){return decodeURIComponent(n.substring(s.length))}}return null};const R=t=>{try{const s=new DOMParser;const e=s.parseFromString(t,"image/svg+xml");const n=e.querySelector("parsererror");if(n){return false}const o=e.documentElement;if(o.tagName.toLowerCase()!=="svg"){return false}return true}catch(t){return false}};const S=t(class t extends s{constructor(){super();this.__registerHost();this.name=null;this.type="components";this.visible=false;this.error=false;this.h=h(this.host)}validateSize(t){u(r,t,p.root)}validateColor(t){u(f,t,p.root)}async loadIconPathData(){const{name:t,visible:s}=this;if(!t||!s){return}await this.loadIcon()}connectedCallback(){if(l()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){this.validateSize(this.size);this.validateColor(this.color);await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((s=>{s.forEach((s=>{if(s.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}async loadIcon(){try{const{name:t,type:s}=this;const e=await I({name:t,type:s});const n=R(e);this.host.innerHTML=n?e:null}catch(t){this.host.innerHTML="";this.error=true}}render(){if(this.error){return null}return e(n,{class:this.h.classes(p.root),size:this.size,color:this.color})}static get assetsDirs(){return["assets"]}get host(){return this}static get watchers(){return{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}}},[0,"gov-icon",{size:[513],color:[513],name:[513],type:[513],visible:[32],error:[32]},undefined,{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}]);function $(){if(typeof customElements==="undefined"){return}const t=["gov-icon"];t.forEach((t=>{switch(t){case"gov-icon":if(!customElements.get(t)){customElements.define(t,S)}break}}))}$();export{S as G,$ as d,L as g,E as s};
2
+ //# sourceMappingURL=p-Dj-FiQ37.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pick","Sizes","IconColors","Colors","Types","IconClass","root","dsVersion","version","iconCache","requestCache","isExternalUrl","path","startsWith","iconUrl","name","type","async","fetchIcon","cacheKey","fetch","iconsPath","then","resp","status","text","Error","setCookie","value","days","isWindow","expires","document","cookie","encodeURIComponent","getCookie","nameEQ","cookies","split","i","length","trim","decodeURIComponent","substring","isValidSVG","svgContent","parser","DOMParser","doc","parseFromString","parseError","querySelector","svgElement","documentElement","tagName","toLowerCase","error","GovIcon","__stencil_proxyCustomElement","HTMLElement","constructor","this","visible","h","govHost","host","validateSize","newValue","validateProp","validateColor","loadIconPathData","loadIcon","connectedCallback","iconsLazyLoad","finally","waitUntilVisible","disconnectedCallback","intersectionObserver","disconnect","componentWillLoad","size","color","callback","window","IntersectionObserver","entries","forEach","entry","isIntersecting","rootMargin","observe","data","isValid","innerHTML","e","render","Host","class","classes"],"sources":["../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/utils/ds.utils.ts","../../../packages/core/src/utils/icon.utils.ts","../../../packages/core/src/helpers/Dom/document.ts","../../../packages/core/src/components/gov-icon/gov-icon.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils';\nimport { Colors } from '../../core/constants/colors';\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\n\nexport const IconColors = pick(Colors, [\n\t'DEFAULT',\n\t'PRIMARY',\n\t'SECONDARY',\n\t'NEUTRAL',\n\t'ERROR',\n\t'SUCCESS',\n\t'WARNING',\n\t'DISABLED',\n\t'WHITE',\n\t'BLACK',\n])\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n","import { version } from '../../package.json'\n\nexport const dsVersion = (): string => {\n\treturn version\n}\n","import {dsVersion} from \"./ds.utils\"\nimport {iconsPath} from \"../helpers/Dom/win\"\n\nconst iconCache: { [key: string]: string } = {}\nconst requestCache: { [key: string]: Promise<string> } = {}\n\nconst isExternalUrl = (path: string) => path.startsWith(\"http://\") || path.startsWith(\"https://\")\nconst iconUrl = (path: string, name: string, type: string) => {\n if (isExternalUrl(path)) {\n return `${path}/${type}/${name}.svg?v=${dsVersion()}`\n }\n return `${path}/${type}/${name}.svg` + `?v=${dsVersion()}`\n}\n\nexport async function fetchIcon({name, type}: { name: string; type: string }): Promise<string> {\n const cacheKey = type + \"-\" + name\n if (iconCache[cacheKey]) {\n return iconCache[cacheKey]\n }\n\n if (!requestCache[cacheKey]) {\n requestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {\n if (resp.status === 200) {\n return resp.text()\n } else {\n throw new Error(\"Gov Icon doesn't exists\")\n }\n })\n }\n const path = await requestCache[cacheKey]\n iconCache[cacheKey] = path\n return path\n}\n","import {Nullable} from \"../../utils/helpers.types\";\nimport {isWindow} from \"./win\";\n\nexport const setCookie = (name: string, value: string, days?: number) => {\n\tif (!isWindow) {\n\t\treturn\n\t}\n\tlet expires = \"\";\n\tif (days) {\n\t\tconst date = new Date();\n\t\tdate.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n\t\texpires = \"; expires=\" + date.toUTCString();\n\t}\n\tdocument.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;\n}\n\nexport const getCookie = (name: string): Nullable<string> => {\n\tif (!isWindow) {\n\t\treturn null\n\t}\n\tconst nameEQ = name + \"=\";\n\tconst cookies = document.cookie.split(';');\n\tfor (let i = 0; i < cookies.length; i++) {\n\t\tlet cookie = cookies[i].trim();\n\t\tif (cookie.startsWith(nameEQ)) {\n\t\t\treturn decodeURIComponent(cookie.substring(nameEQ.length));\n\t\t}\n\t}\n\treturn null;\n}\n\nexport const isValidSVG = (svgContent: string): boolean => {\n\ttry {\n\t\tconst parser = new DOMParser();\n\t\tconst doc = parser.parseFromString(svgContent, \"image/svg+xml\");\n\t\tconst parseError = doc.querySelector(\"parsererror\");\n\t\tif (parseError) {\n\t\t\treturn false;\n\t\t}\n\t\tconst svgElement = doc.documentElement;\n\t\tif (svgElement.tagName.toLowerCase() !== \"svg\") {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t} catch (error) {\n\t\treturn false;\n\t}\n}\n","import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\nimport {fetchIcon} from \"../../utils/icon.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {isValidSVG} from \"../../helpers/Dom/document\";\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\tprivate intersectionObserver: IntersectionObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Icon size\n\t */\n\t@Prop({reflect: true}) readonly size?: IconSizesType\n\t/**\n\t * Icon color\n\t */\n\t@Prop({reflect: true}) readonly color?: IconColorType\n\t/**\n\t * Name of icon in folder\n\t */\n\t@Prop({reflect: true}) name: string = null\n\t/**\n\t * Type (folder) of icon\n\t */\n\t@Prop({reflect: true}) type = \"components\"\n\n\t@State() private visible = false\n\t@State() private error = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst {name, visible} = this\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\treturn\n\t\t}\n\t\tawait this.loadIcon()\n\t}\n\n\tconnectedCallback(): void {\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{rootMargin: \"50px\"},\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\tprivate async loadIcon() {\n\t\ttry {\n\t\t\tconst {name, type} = this\n\t\t\tconst data = await fetchIcon({name, type})\n\t\t\tconst isValid = isValidSVG(data)\n\t\t\tthis.host.innerHTML = isValid ? data : null;\n\t\t} catch (e) {\n\t\t\tthis.host.innerHTML = ''\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\n\t\t)\n\t}\n}\n"],"mappings":"qRAKyBA,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,MAAO,OAAQ,OAAQ,OAAQ,SAGvF,MAAMC,EAAaF,EAAKG,EAAQ,CACtC,UACA,UACA,YACA,UACA,QACA,UACA,UACA,WACA,QACA,UAID,IAAKC,GAAL,SAAKA,GACJA,EAAA,iBACAA,EAAA,qBACAA,EAAA,oBACA,EAJD,CAAKA,MAIJ,KAGM,MAAMC,EAAY,CACxBC,KAAM,Y,kBC5BA,MAAMC,EAAY,IACjBC,ECAR,MAAMC,EAAuC,GAC7C,MAAMC,EAAmD,GAEzD,MAAMC,EAAiBC,GAAiBA,EAAKC,WAAW,YAAcD,EAAKC,WAAW,YACtF,MAAMC,EAAU,CAACF,EAAcG,EAAcC,KACzC,GAAIL,EAAcC,GAAO,CACrB,MAAO,GAAGA,KAAQI,KAAQD,WAAcR,K,CAE5C,MAAO,GAAGK,KAAQI,KAAQD,QAAa,MAAMR,KAAa,EAGvDU,eAAeC,GAAUH,KAACA,EAAIC,KAAEA,IACnC,MAAMG,EAAWH,EAAO,IAAMD,EAC9B,GAAIN,EAAUU,GAAW,CACrB,OAAOV,EAAUU,E,CAGrB,IAAKT,EAAaS,GAAW,CACzBT,EAAaS,GAAYC,MAAMN,EAAQO,IAAaN,EAAMC,IAAOM,MAAKC,IAClE,GAAIA,EAAKC,SAAW,IAAK,CACrB,OAAOD,EAAKE,M,KACT,CACH,MAAM,IAAIC,MAAM,0B,KAI5B,MAAMd,QAAaF,EAAaS,GAChCV,EAAUU,GAAYP,EACtB,OAAOA,CACX,CC7Ba,MAAAe,EAAY,CAACZ,EAAca,EAAeC,KACtD,IAAKC,EAAU,CACd,M,CAED,IAAIC,EAAU,GAMdC,SAASC,OAAS,GAAGlB,KAAQmB,mBAAmBN,KAASG,WAAiB,EAG9D,MAAAI,EAAapB,IACzB,IAAKe,EAAU,CACd,OAAO,I,CAER,MAAMM,EAASrB,EAAO,IACtB,MAAMsB,EAAUL,SAASC,OAAOK,MAAM,KACtC,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IAAK,CACxC,IAAIN,EAASI,EAAQE,GAAGE,OACxB,GAAIR,EAAOpB,WAAWuB,GAAS,CAC9B,OAAOM,mBAAmBT,EAAOU,UAAUP,EAAOI,Q,EAGpD,OAAO,IAAI,EAGL,MAAMI,EAAcC,IAC1B,IACC,MAAMC,EAAS,IAAIC,UACnB,MAAMC,EAAMF,EAAOG,gBAAgBJ,EAAY,iBAC/C,MAAMK,EAAaF,EAAIG,cAAc,eACrC,GAAID,EAAY,CACf,OAAO,K,CAER,MAAME,EAAaJ,EAAIK,gBACvB,GAAID,EAAWE,QAAQC,gBAAkB,MAAO,CAC/C,OAAO,K,CAER,OAAO,I,CACN,MAAOC,GACR,OAAO,K,SC/BIC,EAAOC,EAAA,MAAAD,UAAAE,EAInB,WAAAC,G,8BAgBuBC,KAAI9C,KAAW,KAIf8C,KAAI7C,KAAG,aAEb6C,KAAOC,QAAG,MACVD,KAAKL,MAAG,MAtBxBK,KAAKE,EAAIC,EAAQH,KAAKI,KACtB,CAwBD,YAAAC,CAAaC,GACZC,EAAanE,EAAOkE,EAAU9D,EAAUC,K,CAIzC,aAAA+D,CAAcF,GACbC,EAAalE,EAAYiE,EAAU9D,EAAUC,K,CAItC,sBAAMgE,GACb,MAAMvD,KAACA,EAAI+C,QAAEA,GAAWD,KACxB,IAAyB9C,IAAS+C,EAAS,CAC1C,M,OAEKD,KAAKU,U,CAGZ,iBAAAC,GACC,GAAIC,IAAiB,CACpBZ,KAAKC,QAAU,KACfD,KAAKS,mBAAmBI,S,KAClB,CACNb,KAAKc,kBAAiB1D,UACrB4C,KAAKC,QAAU,WACTD,KAAKS,kBAAkB,G,EAKhC,oBAAAM,GACC,GAAIf,KAAKgB,qBAAsB,CAC9BhB,KAAKgB,qBAAqBC,aAC1BjB,KAAKgB,qBAAuB,I,EAI9B,uBAAME,GACLlB,KAAKK,aAAaL,KAAKmB,MACvBnB,KAAKQ,cAAcR,KAAKoB,aAClBpB,KAAKS,kB,CAGJ,gBAAAK,CAAiBO,GACxB,UAA+BC,SAAW,cAAiBA,OAAeC,qBAAsB,CAC/FF,IACA,M,CAEDrB,KAAKgB,qBAAuB,IAAIO,sBAC/BC,IACCA,EAAQC,SAAQC,IACf,GAAIA,EAAMC,eAAgB,CACzB,GAAI3B,KAAKgB,qBAAsB,CAC9BhB,KAAKgB,qBAAqBC,aAC1BjB,KAAKgB,qBAAuB,I,CAE7BK,G,IAEA,GAEH,CAACO,WAAY,SAEd5B,KAAKgB,qBAAqBa,QAAQ7B,KAAKI,K,CAGhC,cAAMM,GACb,IACC,MAAMxD,KAACA,EAAIC,KAAEA,GAAQ6C,KACrB,MAAM8B,QAAazE,EAAU,CAACH,OAAMC,SACpC,MAAM4E,EAAUhD,EAAW+C,GAC3B9B,KAAKI,KAAK4B,UAAYD,EAAUD,EAAO,I,CACtC,MAAOG,GACRjC,KAAKI,KAAK4B,UAAY,GACtBhC,KAAKL,MAAQ,I,EAIf,MAAAuC,GACC,GAAIlC,KAAKL,MAAO,CACf,OAAO,I,CAER,OACCO,EAACiC,EAAI,CAACC,MAAOpC,KAAKE,EAAEmC,QAAQ7F,EAAUC,MAAO0E,KAAMnB,KAAKmB,KAAMC,MAAOpB,KAAKoB,O","ignoreList":[]}
1
+ {"version":3,"names":["pick","Sizes","IconColors","Colors","Types","IconClass","root","dsVersion","version","iconCache","requestCache","isExternalUrl","path","startsWith","iconUrl","name","type","async","fetchIcon","cacheKey","fetch","iconsPath","then","resp","status","text","Error","setCookie","value","days","isWindow","expires","document","cookie","encodeURIComponent","getCookie","nameEQ","cookies","split","i","length","trim","decodeURIComponent","substring","isValidSVG","svgContent","parser","DOMParser","doc","parseFromString","parseError","querySelector","svgElement","documentElement","tagName","toLowerCase","error","GovIcon","__stencil_proxyCustomElement","HTMLElement","constructor","this","visible","h","govHost","host","validateSize","newValue","validateProp","validateColor","loadIconPathData","loadIcon","connectedCallback","iconsLazyLoad","finally","waitUntilVisible","disconnectedCallback","intersectionObserver","disconnect","componentWillLoad","size","color","callback","window","IntersectionObserver","entries","forEach","entry","isIntersecting","rootMargin","observe","data","isValid","innerHTML","e","render","Host","class","classes"],"sources":["../../../packages/core/src/components/gov-icon/constants.ts","../../../packages/core/src/utils/ds.utils.ts","../../../packages/core/src/utils/icon.utils.ts","../../../packages/core/src/helpers/Dom/document.ts","../../../packages/core/src/components/gov-icon/gov-icon.tsx"],"sourcesContent":["import { ValueOf } from '../../types/interfaces'\nimport { pick } from '../../utils/utils';\nimport { Colors } from '../../core/constants/colors';\nimport {Sizes} from \"../../core/constants/sizes\";\n\nexport const IconSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL'])\nexport type IconSizesType = `${ValueOf<typeof IconSizes>}`\n\nexport const IconColors = pick(Colors, [\n\t'DEFAULT',\n\t'PRIMARY',\n\t'SECONDARY',\n\t'NEUTRAL',\n\t'ERROR',\n\t'SUCCESS',\n\t'WARNING',\n\t'DISABLED',\n\t'WHITE',\n\t'BLACK',\n])\nexport type IconColorType = `${ValueOf<typeof IconColors>}`\n\nenum Types {\n\tBASIC = 'basic',\n\tCOMPLEX = 'complex',\n\tCOLORED = 'colored',\n}\nexport type Type = `${ValueOf<typeof Types>}`\n\nexport const IconClass = {\n\troot: 'gov-icon',\n\tholder: 'gov-icon__holder',\n}\n","import { version } from '../../package.json'\n\nexport const dsVersion = (): string => {\n\treturn version\n}\n","import {dsVersion} from \"./ds.utils\"\nimport {iconsPath} from \"../helpers/Dom/win\"\n\nconst iconCache: { [key: string]: string } = {}\nconst requestCache: { [key: string]: Promise<string> } = {}\n\nconst isExternalUrl = (path: string) => path.startsWith(\"http://\") || path.startsWith(\"https://\")\nconst iconUrl = (path: string, name: string, type: string) => {\n if (isExternalUrl(path)) {\n return `${path}/${type}/${name}.svg?v=${dsVersion()}`\n }\n return `${path}/${type}/${name}.svg` + `?v=${dsVersion()}`\n}\n\nexport async function fetchIcon({name, type}: { name: string; type: string }): Promise<string> {\n const cacheKey = type + \"-\" + name\n if (iconCache[cacheKey]) {\n return iconCache[cacheKey]\n }\n\n if (!requestCache[cacheKey]) {\n requestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {\n if (resp.status === 200) {\n return resp.text()\n } else {\n throw new Error(\"Gov Icon doesn't exists\")\n }\n })\n }\n const path = await requestCache[cacheKey]\n iconCache[cacheKey] = path\n return path\n}\n","import {Nullable} from \"../../utils/helpers.types\";\nimport {isWindow} from \"./win\";\n\nexport const setCookie = (name: string, value: string, days?: number) => {\n\tif (!isWindow) {\n\t\treturn\n\t}\n\tlet expires = \"\";\n\tif (days) {\n\t\tconst date = new Date();\n\t\tdate.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n\t\texpires = \"; expires=\" + date.toUTCString();\n\t}\n\tdocument.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;\n}\n\nexport const getCookie = (name: string): Nullable<string> => {\n\tif (!isWindow) {\n\t\treturn null\n\t}\n\tconst nameEQ = name + \"=\";\n\tconst cookies = document.cookie.split(';');\n\tfor (let i = 0; i < cookies.length; i++) {\n\t\tlet cookie = cookies[i].trim();\n\t\tif (cookie.startsWith(nameEQ)) {\n\t\t\treturn decodeURIComponent(cookie.substring(nameEQ.length));\n\t\t}\n\t}\n\treturn null;\n}\n\nexport const isValidSVG = (svgContent: string): boolean => {\n\ttry {\n\t\tconst parser = new DOMParser();\n\t\tconst doc = parser.parseFromString(svgContent, \"image/svg+xml\");\n\t\tconst parseError = doc.querySelector(\"parsererror\");\n\t\tif (parseError) {\n\t\t\treturn false;\n\t\t}\n\t\tconst svgElement = doc.documentElement;\n\t\tif (svgElement.tagName.toLowerCase() !== \"svg\") {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t} catch (error) {\n\t\treturn false;\n\t}\n}\n","import {Build, Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {IconClass, IconColors, type IconColorType, IconSizesType} from \"./constants\"\nimport {fetchIcon} from \"../../utils/icon.utils\"\nimport {govHost} from \"../../helpers/Dom/template\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {iconsLazyLoad} from \"../../helpers/Dom/win\"\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {isValidSVG} from \"../../helpers/Dom/document\";\n\n@Component({\n\tassetsDirs: [\"assets\"],\n\ttag: \"gov-icon\",\n})\nexport class GovIcon {\n\tprivate h: GovHost\n\tprivate intersectionObserver: IntersectionObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovIconElement\n\t/**\n\t * Icon size\n\t */\n\t@Prop({reflect: true}) readonly size?: IconSizesType\n\t/**\n\t * Icon color\n\t */\n\t@Prop({reflect: true}) readonly color?: IconColorType\n\t/**\n\t * Name of icon in folder\n\t */\n\t@Prop({reflect: true}) name: string = null\n\t/**\n\t * Type (folder) of icon\n\t */\n\t@Prop({reflect: true}) type = \"components\"\n\n\t@State() private visible = false\n\t@State() private error = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(Sizes, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(IconColors, newValue, IconClass.root)\n\t}\n\n\t@Watch(\"name\")\n\tprivate async loadIconPathData(): Promise<void> {\n\t\tconst {name, visible} = this\n\t\tif (!Build.isBrowser || !name || !visible) {\n\t\t\treturn\n\t\t}\n\t\tawait this.loadIcon()\n\t}\n\n\tconnectedCallback(): void {\n\t\tif (iconsLazyLoad()) {\n\t\t\tthis.visible = true\n\t\t\tthis.loadIconPathData().finally()\n\t\t} else {\n\t\t\tthis.waitUntilVisible(async () => {\n\t\t\t\tthis.visible = true\n\t\t\t\tawait this.loadIconPathData()\n\t\t\t})\n\t\t}\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tif (this.intersectionObserver) {\n\t\t\tthis.intersectionObserver.disconnect()\n\t\t\tthis.intersectionObserver = null\n\t\t}\n\t}\n\n\tasync componentWillLoad(): Promise<void> {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tawait this.loadIconPathData()\n\t}\n\n\tprivate waitUntilVisible(callback: () => void): void {\n\t\tif (!Build.isBrowser || typeof window === \"undefined\" || !(window as any).IntersectionObserver) {\n\t\t\tcallback()\n\t\t\treturn\n\t\t}\n\t\tthis.intersectionObserver = new IntersectionObserver(\n\t\t\tentries => {\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\t\tif (this.intersectionObserver) {\n\t\t\t\t\t\t\tthis.intersectionObserver.disconnect()\n\t\t\t\t\t\t\tthis.intersectionObserver = null\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t{rootMargin: \"50px\"},\n\t\t)\n\t\tthis.intersectionObserver.observe(this.host)\n\t}\n\n\tprivate async loadIcon() {\n\t\ttry {\n\t\t\tconst {name, type} = this\n\t\t\tconst data = await fetchIcon({name, type})\n\t\t\tconst isValid = isValidSVG(data)\n\t\t\tthis.host.innerHTML = isValid ? data : null;\n\t\t} catch (e) {\n\t\t\tthis.host.innerHTML = ''\n\t\t\tthis.error = true\n\t\t}\n\t}\n\n\trender() {\n\t\tif (this.error) {\n\t\t\treturn null\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(IconClass.root)} size={this.size} color={this.color}/>\n\t\t)\n\t}\n}\n"],"mappings":"qRAKyBA,EAAKC,EAAO,CAAC,MAAO,KAAM,KAAM,KAAM,MAAO,OAAQ,OAAQ,OAAQ,SAGvF,MAAMC,EAAaF,EAAKG,EAAQ,CACtC,UACA,UACA,YACA,UACA,QACA,UACA,UACA,WACA,QACA,UAID,IAAKC,GAAL,SAAKA,GACJA,EAAA,iBACAA,EAAA,qBACAA,EAAA,oBACA,EAJD,CAAKA,MAIJ,KAGM,MAAMC,EAAY,CACxBC,KAAM,Y,gBC5BA,MAAMC,EAAY,IACjBC,ECAR,MAAMC,EAAuC,GAC7C,MAAMC,EAAmD,GAEzD,MAAMC,EAAiBC,GAAiBA,EAAKC,WAAW,YAAcD,EAAKC,WAAW,YACtF,MAAMC,EAAU,CAACF,EAAcG,EAAcC,KACzC,GAAIL,EAAcC,GAAO,CACrB,MAAO,GAAGA,KAAQI,KAAQD,WAAcR,K,CAE5C,MAAO,GAAGK,KAAQI,KAAQD,QAAa,MAAMR,KAAa,EAGvDU,eAAeC,GAAUH,KAACA,EAAIC,KAAEA,IACnC,MAAMG,EAAWH,EAAO,IAAMD,EAC9B,GAAIN,EAAUU,GAAW,CACrB,OAAOV,EAAUU,E,CAGrB,IAAKT,EAAaS,GAAW,CACzBT,EAAaS,GAAYC,MAAMN,EAAQO,IAAaN,EAAMC,IAAOM,MAAKC,IAClE,GAAIA,EAAKC,SAAW,IAAK,CACrB,OAAOD,EAAKE,M,KACT,CACH,MAAM,IAAIC,MAAM,0B,KAI5B,MAAMd,QAAaF,EAAaS,GAChCV,EAAUU,GAAYP,EACtB,OAAOA,CACX,CC7Ba,MAAAe,EAAY,CAACZ,EAAca,EAAeC,KACtD,IAAKC,EAAU,CACd,M,CAED,IAAIC,EAAU,GAMdC,SAASC,OAAS,GAAGlB,KAAQmB,mBAAmBN,KAASG,WAAiB,EAG9D,MAAAI,EAAapB,IACzB,IAAKe,EAAU,CACd,OAAO,I,CAER,MAAMM,EAASrB,EAAO,IACtB,MAAMsB,EAAUL,SAASC,OAAOK,MAAM,KACtC,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IAAK,CACxC,IAAIN,EAASI,EAAQE,GAAGE,OACxB,GAAIR,EAAOpB,WAAWuB,GAAS,CAC9B,OAAOM,mBAAmBT,EAAOU,UAAUP,EAAOI,Q,EAGpD,OAAO,IAAI,EAGL,MAAMI,EAAcC,IAC1B,IACC,MAAMC,EAAS,IAAIC,UACnB,MAAMC,EAAMF,EAAOG,gBAAgBJ,EAAY,iBAC/C,MAAMK,EAAaF,EAAIG,cAAc,eACrC,GAAID,EAAY,CACf,OAAO,K,CAER,MAAME,EAAaJ,EAAIK,gBACvB,GAAID,EAAWE,QAAQC,gBAAkB,MAAO,CAC/C,OAAO,K,CAER,OAAO,I,CACN,MAAOC,GACR,OAAO,K,SC/BIC,EAAOC,EAAA,MAAAD,UAAAE,EAInB,WAAAC,G,8BAgBuBC,KAAI9C,KAAW,KAIf8C,KAAI7C,KAAG,aAEb6C,KAAOC,QAAG,MACVD,KAAKL,MAAG,MAtBxBK,KAAKE,EAAIC,EAAQH,KAAKI,KACtB,CAwBD,YAAAC,CAAaC,GACZC,EAAanE,EAAOkE,EAAU9D,EAAUC,K,CAIzC,aAAA+D,CAAcF,GACbC,EAAalE,EAAYiE,EAAU9D,EAAUC,K,CAItC,sBAAMgE,GACb,MAAMvD,KAACA,EAAI+C,QAAEA,GAAWD,KACxB,IAAyB9C,IAAS+C,EAAS,CAC1C,M,OAEKD,KAAKU,U,CAGZ,iBAAAC,GACC,GAAIC,IAAiB,CACpBZ,KAAKC,QAAU,KACfD,KAAKS,mBAAmBI,S,KAClB,CACNb,KAAKc,kBAAiB1D,UACrB4C,KAAKC,QAAU,WACTD,KAAKS,kBAAkB,G,EAKhC,oBAAAM,GACC,GAAIf,KAAKgB,qBAAsB,CAC9BhB,KAAKgB,qBAAqBC,aAC1BjB,KAAKgB,qBAAuB,I,EAI9B,uBAAME,GACLlB,KAAKK,aAAaL,KAAKmB,MACvBnB,KAAKQ,cAAcR,KAAKoB,aAClBpB,KAAKS,kB,CAGJ,gBAAAK,CAAiBO,GACxB,UAA+BC,SAAW,cAAiBA,OAAeC,qBAAsB,CAC/FF,IACA,M,CAEDrB,KAAKgB,qBAAuB,IAAIO,sBAC/BC,IACCA,EAAQC,SAAQC,IACf,GAAIA,EAAMC,eAAgB,CACzB,GAAI3B,KAAKgB,qBAAsB,CAC9BhB,KAAKgB,qBAAqBC,aAC1BjB,KAAKgB,qBAAuB,I,CAE7BK,G,IAEA,GAEH,CAACO,WAAY,SAEd5B,KAAKgB,qBAAqBa,QAAQ7B,KAAKI,K,CAGhC,cAAMM,GACb,IACC,MAAMxD,KAACA,EAAIC,KAAEA,GAAQ6C,KACrB,MAAM8B,QAAazE,EAAU,CAACH,OAAMC,SACpC,MAAM4E,EAAUhD,EAAW+C,GAC3B9B,KAAKI,KAAK4B,UAAYD,EAAUD,EAAO,I,CACtC,MAAOG,GACRjC,KAAKI,KAAK4B,UAAY,GACtBhC,KAAKL,MAAQ,I,EAIf,MAAAuC,GACC,GAAIlC,KAAKL,MAAO,CACf,OAAO,I,CAER,OACCO,EAACiC,EAAI,CAACC,MAAOpC,KAAKE,EAAEmC,QAAQ7F,EAAUC,MAAO0E,KAAMnB,KAAKmB,KAAMC,MAAOpB,KAAKoB,O","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,h as e,a as i}from"./index.js";import{T as o,a as n,d as l}from"./p-DfI_0WW6.js";import{t as a}from"./p-BHRF-5cf.js";import{d as r}from"./p-ClDhNt_H.js";import{d as c}from"./p-DRXiDAHW.js";const h=t(class t extends s{constructor(){super();this.__registerHost();this.color=o.PRIMARY;this.size=n._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(t){clearTimeout(this.timeout);if(t===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const t=document.getElementById(this.parentId);if(t){t.hide().catch()}}render(){return e(i,{key:"121b5cd3878956618a7a917511e6d8d76edf6672",class:l.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!a(this.isVisible),"is-visible":this.isVisible},this.message?e("span",{class:"gov-tooltip-content__message",innerHTML:this.message}):e("slot",null),this.persist?e("gov-button",{"on-gov-click":this.hideContent.bind(this),color:this.color,size:this.size,type:"base"},e("gov-icon",{slot:"icon-start",name:"x-lg",type:"components"})):null)}get host(){return this}static get watchers(){return{isVisible:["visibleContent"]}}},[4,"gov-tooltip-content",{color:[1],size:[1],persist:[4],isVisible:[1028,"is-visible"],parentId:[1,"parent-id"],message:[1025]},undefined,{isVisible:["visibleContent"]}]);function m(){if(typeof customElements==="undefined"){return}const t=["gov-tooltip-content","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-tooltip-content":if(!customElements.get(t)){customElements.define(t,h)}break;case"gov-button":if(!customElements.get(t)){r()}break;case"gov-icon":if(!customElements.get(t)){c()}break}}))}m();export{h as G,m as d};
2
- //# sourceMappingURL=p-DjGO_trZ.js.map
1
+ import{p as t,H as s,h as e,a as i}from"./index.js";import{T as o,a as n,d as l}from"./p-DfI_0WW6.js";import{t as a}from"./p-BHRF-5cf.js";import{d as r}from"./p-o4vVG5sG.js";import{d as c}from"./p-Dj-FiQ37.js";const h=t(class t extends s{constructor(){super();this.__registerHost();this.color=o.PRIMARY;this.size=n._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(t){clearTimeout(this.timeout);if(t===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const t=document.getElementById(this.parentId);if(t){t.hide().catch()}}render(){return e(i,{key:"121b5cd3878956618a7a917511e6d8d76edf6672",class:l.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!a(this.isVisible),"is-visible":this.isVisible},this.message?e("span",{class:"gov-tooltip-content__message",innerHTML:this.message}):e("slot",null),this.persist?e("gov-button",{"on-gov-click":this.hideContent.bind(this),color:this.color,size:this.size,type:"base"},e("gov-icon",{slot:"icon-start",name:"x-lg",type:"components"})):null)}get host(){return this}static get watchers(){return{isVisible:["visibleContent"]}}},[4,"gov-tooltip-content",{color:[1],size:[1],persist:[4],isVisible:[1028,"is-visible"],parentId:[1,"parent-id"],message:[1025]},undefined,{isVisible:["visibleContent"]}]);function m(){if(typeof customElements==="undefined"){return}const t=["gov-tooltip-content","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-tooltip-content":if(!customElements.get(t)){customElements.define(t,h)}break;case"gov-button":if(!customElements.get(t)){r()}break;case"gov-icon":if(!customElements.get(t)){c()}break}}))}m();export{h as G,m as d};
2
+ //# sourceMappingURL=p-DlpZtTcv.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,a}from"./index.js";import{g as o,F as n,a as h}from"./p-BSr8e18S.js";import{g as c,t as r,a as l,b as d}from"./p-BHRF-5cf.js";import{v as u}from"./p-BKP-F1qP.js";import{c as p}from"./p-vN03FcXN.js";import{A as m,a as f,i as b}from"./p-CXgom82_.js";import{d as v}from"./p-ClDhNt_H.js";import{d as g}from"./p-DRXiDAHW.js";var y;(function(t){t["INPUT"]="input";t["TEXTAREA"]="textarea"})(y||(y={}));const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.govKeyUp=i(this,"gov-keyup");this.govHydrated=i(this,"gov-hydrated");this.govKeyDown=i(this,"gov-keydown");this.size="m";this.required=false;this.disabled=false;this.inputType="text";this.accessibleShowPasswordLabel="Zobrazit heslo";this.accessibleHidePasswordLabel="Skrýt heslo";this.showPassword=false;this.inheritedAttributes={};this.h=c(this.host);this.inputId=p("GovInput");this.f=o(this.h)}validateSize(t){u(h,t,n.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("type",this.multiline?y.TEXTAREA:y.INPUT)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(f);this.govHydrated.emit()}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){const t=this.multiline?y.TEXTAREA:y.INPUT;return e(a,{key:"470bdae759d1432aebbffcf4c13b228b1a50c21a",class:n.root,size:this.size,type:this.type},this.h.hasSlot("prefix")&&e("slot",{key:"0963159d9d3f2ce33a994d85bc87b72ba7b52358",name:"prefix"}),e("span",{key:"ac3fd14a01fff348764c8d7ce583cb9335f1fc54",class:"element"},this.h.hasSlot("icon-start")&&!this.multiline&&e("div",{key:"24bf34d61668b77b7c8c673f8046dec464a1ced4",class:n.icons,onClick:()=>this.inputRef.focus()},e("slot",{key:"11c141e20982053571112b8b8abe1c714ffa1618",name:"icon-start"})),e(t,Object.assign({key:"4cdf4caf3597527525bc0d858895d6588e510a69",type:this.inputType==="password"&&this.showPassword?"text":this.inputType,disabled:this.disabled,id:this.identifier||this.inputId,name:this.name,onFocus:this.onFocusHandler.bind(this),onInput:this.onInputHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onKeyUp:this.onKeyUpHandler.bind(this),onKeyDown:this.onKeyDownHandler.bind(this),ref:t=>this.inputRef=t,placeholder:this.placeholder,spellcheck:d(this.spellcheck),lang:this.inputLang,readonly:d(this.readonly),autocomplete:l(this.autocomplete),autocorrect:l(this.autocorrect),minlength:this.minlength,maxlength:this.maxlength,min:this.min,max:this.max,required:this.required,rows:this.rows,cols:this.cols,role:this.role,value:this.value},this.inheritedAttributes,{"aria-required":d(this.required),"aria-invalid":d(this.invalid),"aria-disabled":d(this.disabled)})),(this.success||this.invalid||this.h.hasSlot("icon-end")||this.inputType==="password")&&!this.multiline&&e("div",{key:"fb1083c88c21dd1ed9651c3ed419c86acfcb29a0",class:n.icons,onClick:()=>this.inputRef.focus()},this.success&&!this.multiline&&e("gov-icon",{key:"5e3b97be29c7a1e5fe019f4b39a266283b097876",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&!this.multiline&&e("gov-icon",{key:"71082970477091c678241cf81a834b241203ea93",class:"validation-icon",name:"exclamation-lg",type:"components"}),this.h.hasSlot("icon-end")&&this.inputType!=="password"&&e("slot",{key:"cc1cc59a5e806ecc90b7a5da3d437e80a340ac30",name:"icon-end"}),this.inputType==="password"?e("gov-button",{color:"primary",type:"base",size:this.size,"aria-label":this.showPassword?this.accessibleHidePasswordLabel:this.accessibleShowPasswordLabel,"on-gov-click":()=>this.showPassword=!this.showPassword},e("gov-icon",{slot:"icon-start",name:"eye",type:"components"})):null)),this.h.hasSlot("sufix")&&e("slot",{key:"c8e382b5dfa2973b9e36bf5074860439f5f13236",name:"sufix"}))}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,value:this.value,originalEvent:t})}onKeyUpHandler(t){t.stopPropagation();this.govKeyUp.emit({component:n.root,value:this.value,originalEvent:t})}onKeyDownHandler(t){t.stopPropagation();this.govKeyDown.emit({component:n.root,value:this.value,originalEvent:t})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:n.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[4,"gov-form-input",{value:[1537],identifier:[1],success:[516],size:[1],name:[1],multiline:[4],rows:[2],cols:[2],required:[516],disabled:[516],placeholder:[1],readonly:[4],minlength:[2],maxlength:[2],min:[8],max:[8],autocomplete:[4],autocorrect:[4],spellcheck:[4],inputLang:[1,"input-lang"],type:[1],inputType:[1,"input-type"],role:[1],invalid:[516],accessibleShowPasswordLabel:[1,"accessible-show-password-label"],accessibleHidePasswordLabel:[1,"accessible-hide-password-label"],focused:[32],showPassword:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-input","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-input":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-button":if(!customElements.get(t)){v()}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}k();export{w as G,k as d};
2
- //# sourceMappingURL=p-BNoNH6m-.js.map
1
+ import{p as t,H as s,c as i,h as e,a}from"./index.js";import{g as o,F as n,a as h}from"./p-BSr8e18S.js";import{g as c,t as r,a as l,b as d}from"./p-BHRF-5cf.js";import{v as u}from"./p-BKP-F1qP.js";import{c as p}from"./p-vN03FcXN.js";import{A as m,a as f,i as b}from"./p-CXgom82_.js";import{d as v}from"./p-o4vVG5sG.js";import{d as g}from"./p-Dj-FiQ37.js";var y;(function(t){t["INPUT"]="input";t["TEXTAREA"]="textarea"})(y||(y={}));const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.govKeyUp=i(this,"gov-keyup");this.govHydrated=i(this,"gov-hydrated");this.govKeyDown=i(this,"gov-keydown");this.size="m";this.required=false;this.disabled=false;this.inputType="text";this.accessibleShowPasswordLabel="Zobrazit heslo";this.accessibleHidePasswordLabel="Skrýt heslo";this.showPassword=false;this.inheritedAttributes={};this.h=c(this.host);this.inputId=p("GovInput");this.f=o(this.h)}validateSize(t){u(h,t,n.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("type",this.multiline?y.TEXTAREA:y.INPUT)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(f);this.govHydrated.emit()}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){const t=this.multiline?y.TEXTAREA:y.INPUT;return e(a,{key:"470bdae759d1432aebbffcf4c13b228b1a50c21a",class:n.root,size:this.size,type:this.type},this.h.hasSlot("prefix")&&e("slot",{key:"0963159d9d3f2ce33a994d85bc87b72ba7b52358",name:"prefix"}),e("span",{key:"ac3fd14a01fff348764c8d7ce583cb9335f1fc54",class:"element"},this.h.hasSlot("icon-start")&&!this.multiline&&e("div",{key:"24bf34d61668b77b7c8c673f8046dec464a1ced4",class:n.icons,onClick:()=>this.inputRef.focus()},e("slot",{key:"11c141e20982053571112b8b8abe1c714ffa1618",name:"icon-start"})),e(t,Object.assign({key:"4cdf4caf3597527525bc0d858895d6588e510a69",type:this.inputType==="password"&&this.showPassword?"text":this.inputType,disabled:this.disabled,id:this.identifier||this.inputId,name:this.name,onFocus:this.onFocusHandler.bind(this),onInput:this.onInputHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onKeyUp:this.onKeyUpHandler.bind(this),onKeyDown:this.onKeyDownHandler.bind(this),ref:t=>this.inputRef=t,placeholder:this.placeholder,spellcheck:d(this.spellcheck),lang:this.inputLang,readonly:d(this.readonly),autocomplete:l(this.autocomplete),autocorrect:l(this.autocorrect),minlength:this.minlength,maxlength:this.maxlength,min:this.min,max:this.max,required:this.required,rows:this.rows,cols:this.cols,role:this.role,value:this.value},this.inheritedAttributes,{"aria-required":d(this.required),"aria-invalid":d(this.invalid),"aria-disabled":d(this.disabled)})),(this.success||this.invalid||this.h.hasSlot("icon-end")||this.inputType==="password")&&!this.multiline&&e("div",{key:"fb1083c88c21dd1ed9651c3ed419c86acfcb29a0",class:n.icons,onClick:()=>this.inputRef.focus()},this.success&&!this.multiline&&e("gov-icon",{key:"5e3b97be29c7a1e5fe019f4b39a266283b097876",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&!this.multiline&&e("gov-icon",{key:"71082970477091c678241cf81a834b241203ea93",class:"validation-icon",name:"exclamation-lg",type:"components"}),this.h.hasSlot("icon-end")&&this.inputType!=="password"&&e("slot",{key:"cc1cc59a5e806ecc90b7a5da3d437e80a340ac30",name:"icon-end"}),this.inputType==="password"?e("gov-button",{color:"primary",type:"base",size:this.size,"aria-label":this.showPassword?this.accessibleHidePasswordLabel:this.accessibleShowPasswordLabel,"on-gov-click":()=>this.showPassword=!this.showPassword},e("gov-icon",{slot:"icon-start",name:"eye",type:"components"})):null)),this.h.hasSlot("sufix")&&e("slot",{key:"c8e382b5dfa2973b9e36bf5074860439f5f13236",name:"sufix"}))}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,value:this.value,originalEvent:t})}onKeyUpHandler(t){t.stopPropagation();this.govKeyUp.emit({component:n.root,value:this.value,originalEvent:t})}onKeyDownHandler(t){t.stopPropagation();this.govKeyDown.emit({component:n.root,value:this.value,originalEvent:t})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:n.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[4,"gov-form-input",{value:[1537],identifier:[1],success:[516],size:[1],name:[1],multiline:[4],rows:[2],cols:[2],required:[516],disabled:[516],placeholder:[1],readonly:[4],minlength:[2],maxlength:[2],min:[8],max:[8],autocomplete:[4],autocorrect:[4],spellcheck:[4],inputLang:[1,"input-lang"],type:[1],inputType:[1,"input-type"],role:[1],invalid:[516],accessibleShowPasswordLabel:[1,"accessible-show-password-label"],accessibleHidePasswordLabel:[1,"accessible-hide-password-label"],focused:[32],showPassword:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-input","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-input":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-button":if(!customElements.get(t)){v()}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}k();export{w as G,k as d};
2
+ //# sourceMappingURL=p-Dw1o8KoZ.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,a as o}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{g as c}from"./p-BHRF-5cf.js";import{p as h}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{a as r,c as f}from"./p-CNqoJU2V.js";import{c as d}from"./p-vN03FcXN.js";import{p as l}from"./p-GYov8gU1.js";import{i as b,A as p,a as m}from"./p-CXgom82_.js";import{d as u}from"./p-DRXiDAHW.js";const g=h(n,["_XS","_S","_M"]);var v;(function(t){t["SOLID"]="solid";t["OUTLINED"]="outlined"})(v||(v={}));var y;(function(t){t["A"]="a";t["SPAN"]="span";t["BUTTON"]="button"})(y||(y={}));const k={root:"gov-chip",hasRight:"gov-chip--has-right",hasLeft:"gov-chip--has-left"};const j=t(class t extends s{constructor(){super();this.__registerHost();this.govClick=i(this,"gov-click");this.hydrated=false;this.disabled=false;this.size=g._M;this.tag="span";this.color=r.PRIMARY;this.focusable=true;this.inheritedAttributes={};this.h=c(this.host);this.chipId=d("GovChip")}validateColor(t){a(r,t,k.root)}validateSize(t){a(f,t,k.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(m)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=this.href?y.A:this.tag;const s=t==y.BUTTON?y.BUTTON:undefined;const i=l(this.iconStart);const a=l(this.iconEnd);return e(o,{key:"bbe58de10514cfa5049188d6cbea7402e4abef1a",class:this.h.classes([k.root,this.h.hasSlot("right")?k.hasRight:undefined,this.h.hasSlot("left")?k.hasLeft:undefined]),disabled:this.disabled,href:this.href,color:this.color,type:this.type,size:this.size,focusable:this.focusable,hydrated:this.hydrated},e(t,Object.assign({key:"593f0ccd8f024d3b0539d029eb1ce15744b99dcc",class:"element",href:this.href,target:this.target,ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),tabindex:this.h.hasSlot("left")||this.h.hasSlot("right")||this.disabled||!this.focusable?"-1":"0",id:this.identifier||this.chipId,type:s},this.inheritedAttributes,{"aria-disabled":this.disabled}),e("slot",{key:"d67eb38a50b78d336c6f26b94d771862f22d27e4",name:"left"}),e("slot",{key:"2642c53b31ace283aca7b21566b39e56caf7a0e2",name:"icon-start"},i&&e("gov-icon",{key:"8320fe3e6540b008684af9306b09b2464809948b",type:i.type,name:i.name})),e("slot",{key:"5c3c63c5cfef7d7c8ff1420ef6121e90fc735d80"}),e("slot",{key:"4e1e6f8751b8708a92b73d499c1f406c0fcb2fcc",name:"icon-end"},a&&e("gov-icon",{key:"a660967c54adc0b623b5f94b04e8e689425b7f28",type:a.type,name:a.name})),e("slot",{key:"af67d89fc3d70312d65078ad6f38b4ec4056542f",name:"right"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false&&this.tag===y.BUTTON){this.govClick.emit(t)}}async geRef(){return this.triggerRef}async setFocus(){this.triggerRef.focus()}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-chip",{disabled:[516],href:[1],target:[1],iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[1],tag:[1],color:[1],type:[513],focusable:[4],identifier:[1],inheritedAttributes:[32],geRef:[64],setFocus:[64]},undefined,{color:["validateColor"],size:["validateSize"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-chip":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-icon":if(!customElements.get(t)){u()}break}}))}C();export{j as G,C as d};
2
- //# sourceMappingURL=p-BGK46VRO.js.map
1
+ import{p as t,H as s,c as i,h as e,a as o}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{g as c}from"./p-BHRF-5cf.js";import{p as h}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{a as r,c as f}from"./p-CNqoJU2V.js";import{c as d}from"./p-vN03FcXN.js";import{p as l}from"./p-GYov8gU1.js";import{i as b,A as p,a as m}from"./p-CXgom82_.js";import{d as u}from"./p-Dj-FiQ37.js";const g=h(n,["_XS","_S","_M"]);var v;(function(t){t["SOLID"]="solid";t["OUTLINED"]="outlined"})(v||(v={}));var y;(function(t){t["A"]="a";t["SPAN"]="span";t["BUTTON"]="button"})(y||(y={}));const k={root:"gov-chip",hasRight:"gov-chip--has-right",hasLeft:"gov-chip--has-left"};const j=t(class t extends s{constructor(){super();this.__registerHost();this.govClick=i(this,"gov-click");this.hydrated=false;this.disabled=false;this.size=g._M;this.tag="span";this.color=r.PRIMARY;this.focusable=true;this.inheritedAttributes={};this.h=c(this.host);this.chipId=d("GovChip")}validateColor(t){a(r,t,k.root)}validateSize(t){a(f,t,k.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(m)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=this.href?y.A:this.tag;const s=t==y.BUTTON?y.BUTTON:undefined;const i=l(this.iconStart);const a=l(this.iconEnd);return e(o,{key:"bbe58de10514cfa5049188d6cbea7402e4abef1a",class:this.h.classes([k.root,this.h.hasSlot("right")?k.hasRight:undefined,this.h.hasSlot("left")?k.hasLeft:undefined]),disabled:this.disabled,href:this.href,color:this.color,type:this.type,size:this.size,focusable:this.focusable,hydrated:this.hydrated},e(t,Object.assign({key:"593f0ccd8f024d3b0539d029eb1ce15744b99dcc",class:"element",href:this.href,target:this.target,ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),tabindex:this.h.hasSlot("left")||this.h.hasSlot("right")||this.disabled||!this.focusable?"-1":"0",id:this.identifier||this.chipId,type:s},this.inheritedAttributes,{"aria-disabled":this.disabled}),e("slot",{key:"d67eb38a50b78d336c6f26b94d771862f22d27e4",name:"left"}),e("slot",{key:"2642c53b31ace283aca7b21566b39e56caf7a0e2",name:"icon-start"},i&&e("gov-icon",{key:"8320fe3e6540b008684af9306b09b2464809948b",type:i.type,name:i.name})),e("slot",{key:"5c3c63c5cfef7d7c8ff1420ef6121e90fc735d80"}),e("slot",{key:"4e1e6f8751b8708a92b73d499c1f406c0fcb2fcc",name:"icon-end"},a&&e("gov-icon",{key:"a660967c54adc0b623b5f94b04e8e689425b7f28",type:a.type,name:a.name})),e("slot",{key:"af67d89fc3d70312d65078ad6f38b4ec4056542f",name:"right"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false&&this.tag===y.BUTTON){this.govClick.emit(t)}}async geRef(){return this.triggerRef}async setFocus(){this.triggerRef.focus()}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-chip",{disabled:[516],href:[1],target:[1],iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[1],tag:[1],color:[1],type:[513],focusable:[4],identifier:[1],inheritedAttributes:[32],geRef:[64],setFocus:[64]},undefined,{color:["validateColor"],size:["validateSize"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-chip":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-icon":if(!customElements.get(t)){u()}break}}))}C();export{j as G,C as d};
2
+ //# sourceMappingURL=p-NU_8kxGz.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as i,h as s,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{B as n,a as r,b as c,N as h}from"./p-CNqoJU2V.js";import{g as d,b as l}from"./p-BHRF-5cf.js";import{S as f}from"./p-BcQO4NH2.js";import{a as p}from"./p-Nvj7WFs_.js";import{c as b}from"./p-DrPpH_9c.js";import{d as m}from"./p-CQvUntGY.js";import{A as u,a as v,i as y}from"./p-CXgom82_.js";import{d as g}from"./p-DRXiDAHW.js";function j(t){if(typeof t==="string"){return["true","True","TRUE","1"].indexOf(t)!==-1}else if(typeof t==="number"){return t>0}else if(typeof t==="boolean"){return t}else{return t?true:false}}var k;(function(t){t["A"]="a";t["BUTTON"]="button"})(k||(k={}));const C=t(class t extends e{constructor(){super();this.__registerHost();this.govClick=i(this,"gov-click");this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.hydrated=false;this.size="m";this.expanded=false;this.expandedMobile=false;this.disabled=false;this.nativeType="button";this.tab=0;this.focusable=true;this.inheritedAttributes={};this.h=d(this.host)}validateColor(t){o(r,t,n.root)}validateType(t){o(c,t,n.root)}validateSize(t){o(f,t,n.root)}validateNativeType(t){o(h,t,n.root)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(v)}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateColor(this.color);this.validateType(this.type);this.validateSize(this.size);this.validateNativeType(this.nativeType);this.inheritedAttributes=y(this.host)}async componentDidRender(){if(b()){await m(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){const t=this.href?k.A:k.BUTTON;const e=t===k.A?undefined:this.nativeType;return s(a,{key:"be41c5da0a82fa7c16239527bc720510de8ecbd5",size:this.size,hydrated:this.hydrated,color:this.color,class:this.h.classes(n.root),type:this.type},s(t,Object.assign({key:"c46f9288bccd35208999be6e0b3fbdc53097e9eb",class:"element",ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),disabled:this.disabled,id:this.identifier,href:this.href,target:this.target,download:this.download,hreflang:this.hreflang,rel:this.rel,name:this.name,type:e,tabindex:this.disabled?"-1":this.tab},this.inheritedAttributes,{"aria-disabled":l(this.disabled)}),j(this.loading)&&!this.h.hasSlot("icon-end")&&s("gov-icon",{key:"051f379ac0f6095662027cb21aa97167d641aeb9",name:"loader",class:"gov-spin-animation",type:"components"}),this.h.hasSlot("icon-start")&&s("slot",{key:"f727f494903fa51f278cf7bbd4045dff83bf735d",name:"icon-start"}),s("slot",{key:"dfb09a744c1ef48ef8fd5af7e833b28cf4138d89"}),this.h.hasSlot("icon-end")&&s("slot",{key:"1d81872f18bf2c66af51eb327b45cd102dec9ec9",name:"icon-end"}),j(this.loading)&&this.h.hasSlot("icon-end")&&s("gov-icon",{key:"288d436dbc423b0a02701a0c7764b46f2957d7f4",name:"loader",class:"gov-spin-animation",type:"components"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false){this.govClick.emit({component:n.root,originalEvent:t,ref:this.host})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:n.root,originalEvent:t,ref:this.host})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:n.root,originalEvent:t,ref:this.host})}async setFocus(){this.triggerRef.focus()}async getRef(){return this.triggerRef}async validateAccessibility(){if(this.focusable){p(this.triggerRef.getAttribute("aria-label"),this.triggerRef.getAttribute("aria-labelledby"),n.root,this.host)}}get host(){return this}static get watchers(){return{color:["validateColor"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}}},[4,"gov-button",{color:[513],size:[513],type:[513],expanded:[516],expandedMobile:[516,"expanded-mobile"],name:[1],disabled:[516],nativeType:[1,"native-type"],href:[1],target:[1],download:[4],tab:[2],hreflang:[1],referrerpolicy:[1],rel:[1],loading:[1],focusable:[4],identifier:[1],inheritedAttributes:[32],setFocus:[64],getRef:[64],validateAccessibility:[64]},undefined,{color:["validateColor"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}]);function T(){if(typeof customElements==="undefined"){return}const t=["gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-button":if(!customElements.get(t)){customElements.define(t,C)}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}T();export{C as G,T as d};
2
- //# sourceMappingURL=p-ClDhNt_H.js.map
1
+ import{p as t,H as e,c as i,h as s,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{B as n,a as r,b as c,N as h}from"./p-CNqoJU2V.js";import{g as d,b as l}from"./p-BHRF-5cf.js";import{S as f}from"./p-BcQO4NH2.js";import{a as p}from"./p-Nvj7WFs_.js";import{c as b}from"./p-DrPpH_9c.js";import{d as m}from"./p-CQvUntGY.js";import{A as u,a as v,i as y}from"./p-CXgom82_.js";import{d as g}from"./p-Dj-FiQ37.js";function j(t){if(typeof t==="string"){return["true","True","TRUE","1"].indexOf(t)!==-1}else if(typeof t==="number"){return t>0}else if(typeof t==="boolean"){return t}else{return t?true:false}}var k;(function(t){t["A"]="a";t["BUTTON"]="button"})(k||(k={}));const C=t(class t extends e{constructor(){super();this.__registerHost();this.govClick=i(this,"gov-click");this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.hydrated=false;this.size="m";this.expanded=false;this.expandedMobile=false;this.disabled=false;this.nativeType="button";this.tab=0;this.focusable=true;this.inheritedAttributes={};this.h=d(this.host)}validateColor(t){o(r,t,n.root)}validateType(t){o(c,t,n.root)}validateSize(t){o(f,t,n.root)}validateNativeType(t){o(h,t,n.root)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(v)}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateColor(this.color);this.validateType(this.type);this.validateSize(this.size);this.validateNativeType(this.nativeType);this.inheritedAttributes=y(this.host)}async componentDidRender(){if(b()){await m(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){const t=this.href?k.A:k.BUTTON;const e=t===k.A?undefined:this.nativeType;return s(a,{key:"be41c5da0a82fa7c16239527bc720510de8ecbd5",size:this.size,hydrated:this.hydrated,color:this.color,class:this.h.classes(n.root),type:this.type},s(t,Object.assign({key:"c46f9288bccd35208999be6e0b3fbdc53097e9eb",class:"element",ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),disabled:this.disabled,id:this.identifier,href:this.href,target:this.target,download:this.download,hreflang:this.hreflang,rel:this.rel,name:this.name,type:e,tabindex:this.disabled?"-1":this.tab},this.inheritedAttributes,{"aria-disabled":l(this.disabled)}),j(this.loading)&&!this.h.hasSlot("icon-end")&&s("gov-icon",{key:"051f379ac0f6095662027cb21aa97167d641aeb9",name:"loader",class:"gov-spin-animation",type:"components"}),this.h.hasSlot("icon-start")&&s("slot",{key:"f727f494903fa51f278cf7bbd4045dff83bf735d",name:"icon-start"}),s("slot",{key:"dfb09a744c1ef48ef8fd5af7e833b28cf4138d89"}),this.h.hasSlot("icon-end")&&s("slot",{key:"1d81872f18bf2c66af51eb327b45cd102dec9ec9",name:"icon-end"}),j(this.loading)&&this.h.hasSlot("icon-end")&&s("gov-icon",{key:"288d436dbc423b0a02701a0c7764b46f2957d7f4",name:"loader",class:"gov-spin-animation",type:"components"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false){this.govClick.emit({component:n.root,originalEvent:t,ref:this.host})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:n.root,originalEvent:t,ref:this.host})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:n.root,originalEvent:t,ref:this.host})}async setFocus(){this.triggerRef.focus()}async getRef(){return this.triggerRef}async validateAccessibility(){if(this.focusable){p(this.triggerRef.getAttribute("aria-label"),this.triggerRef.getAttribute("aria-labelledby"),n.root,this.host)}}get host(){return this}static get watchers(){return{color:["validateColor"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}}},[4,"gov-button",{color:[513],size:[513],type:[513],expanded:[516],expandedMobile:[516,"expanded-mobile"],name:[1],disabled:[516],nativeType:[1,"native-type"],href:[1],target:[1],download:[4],tab:[2],hreflang:[1],referrerpolicy:[1],rel:[1],loading:[1],focusable:[4],identifier:[1],inheritedAttributes:[32],setFocus:[64],getRef:[64],validateAccessibility:[64]},undefined,{color:["validateColor"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}]);function T(){if(typeof customElements==="undefined"){return}const t=["gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-button":if(!customElements.get(t)){customElements.define(t,C)}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}T();export{C as G,T as d};
2
+ //# sourceMappingURL=p-o4vVG5sG.js.map