@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
@@ -53,7 +53,7 @@ var Types;
53
53
  const IconClass = {
54
54
  root: 'gov-icon'};
55
55
 
56
- const version = "4.6.5-b";
56
+ const version = "4.6.5";
57
57
 
58
58
  const dsVersion = () => {
59
59
  return version;
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,c as t,h as a,a as i}from"./index.js";import{v as c}from"./p-BKP-F1qP.js";import{b as o,a as n,A as d}from"./p-4i8qDRtu.js";import{g as f,b,c as r}from"./p-BHRF-5cf.js";import{i as m}from"./p-CXgom82_.js";import{t as h}from"./p-Cjg0wpDG.js";import{d as l}from"./p-DRXiDAHW.js";const p=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change");this.inheritedAttributes={};this.disabled=false;this.open=false;this.h=f(this.host)}validateSize(e){c(n,e,o.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=m(this.host)}componentDidRender(){h((()=>this.getPropsFromParents()))}getPropsFromParents(){const e=this.h.getParent(d.root);if(e){this.size=e.getAttribute("size")}}render(){return a(i,{key:"1beb62527ea9274e6280ce0b64c9d52c12e4a993",class:this.h.classes([o.root,this.disabled&&o.disabled]),size:this.size,role:"listitem"},a("details",{key:"53ca7688e8f26e85cd76feb073a26d04c5505d2b",class:o.details,id:this.identifier,"aria-disabled":b(this.disabled),open:this.open},a("summary",Object.assign({key:"19fec49b0066b7a6162a6010e0ee20431c2a578b",onClick:e=>{e.stopPropagation();e.preventDefault();!this.disabled&&this.toggle().finally()},class:o.summary,tabIndex:this.disabled?-1:0,"aria-expanded":r(this.open)},this.inheritedAttributes),this.h.hasSlot("icon")&&a("span",{key:"19254947c22fa2b1a2fa4e26eacb22c0c89b40c9",class:o.icon},a("slot",{key:"262be1640f250fabf9918f4162c071bb68dc4fb3",name:"icon"})),a("span",{key:"ebb5ef762ef51921b68a8063fd09c979d7d0d32d",class:o.title},a("slot",{key:"75783345d2276f06e53c401761cb4e57d241e5e0",name:"label"}),a("slot",{key:"f2d9cdff693edbcae6293921fde7996d1b1251b6",name:"annotation"})),a("span",{key:"f7e28ea54455756c7d146c7b88be7001e80b07a8",class:o.right},a("slot",{key:"e76b31bf1c349a8a86d4b91ec1cfa650a75edf60",name:"suffix"}),a("span",{key:"87ea99c9862deb3ff9820fa383cec52956b4655a",class:o.arrow},a("slot",{key:"c8b64a90455a731f359e12550664ba5aa905abbc",name:"toggle-icon"},a("gov-icon",{key:"867406c5634d6446683529f5f647492b9b289a31",name:"chevron-down",type:"components"}))))),a("div",{key:"2adf7441dd470ae1b32a08fb374cd1d9e2d1f789",class:o.content},a("slot",{key:"8eb27d0b33689933b6e71850324c35c89d71c4c0"}))))}async toggle(){this.open=!this.open;this.govChange.emit({open:this.open,component:o.root,ref:this.host})}async currentState(){return this.open}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion-item",{identifier:[1],size:[1025],disabled:[4],open:[1028],openState:[32],toggle:[64],currentState:[64]},undefined,{size:["validateSize"]}]);function g(){if(typeof customElements==="undefined"){return}const e=["gov-accordion-item","gov-icon"];e.forEach((e=>{switch(e){case"gov-accordion-item":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}g();const y=p;const u=g;export{y as GovAccordionItem,u as defineCustomElement};
1
+ import{p as e,H as s,c as t,h as a,a as i}from"./index.js";import{v as c}from"./p-BKP-F1qP.js";import{b as o,a as n,A as d}from"./p-4i8qDRtu.js";import{g as f,b,c as r}from"./p-BHRF-5cf.js";import{i as m}from"./p-CXgom82_.js";import{t as h}from"./p-Cjg0wpDG.js";import{d as l}from"./p-Dj-FiQ37.js";const p=e(class e extends s{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change");this.inheritedAttributes={};this.disabled=false;this.open=false;this.h=f(this.host)}validateSize(e){c(n,e,o.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=m(this.host)}componentDidRender(){h((()=>this.getPropsFromParents()))}getPropsFromParents(){const e=this.h.getParent(d.root);if(e){this.size=e.getAttribute("size")}}render(){return a(i,{key:"1beb62527ea9274e6280ce0b64c9d52c12e4a993",class:this.h.classes([o.root,this.disabled&&o.disabled]),size:this.size,role:"listitem"},a("details",{key:"53ca7688e8f26e85cd76feb073a26d04c5505d2b",class:o.details,id:this.identifier,"aria-disabled":b(this.disabled),open:this.open},a("summary",Object.assign({key:"19fec49b0066b7a6162a6010e0ee20431c2a578b",onClick:e=>{e.stopPropagation();e.preventDefault();!this.disabled&&this.toggle().finally()},class:o.summary,tabIndex:this.disabled?-1:0,"aria-expanded":r(this.open)},this.inheritedAttributes),this.h.hasSlot("icon")&&a("span",{key:"19254947c22fa2b1a2fa4e26eacb22c0c89b40c9",class:o.icon},a("slot",{key:"262be1640f250fabf9918f4162c071bb68dc4fb3",name:"icon"})),a("span",{key:"ebb5ef762ef51921b68a8063fd09c979d7d0d32d",class:o.title},a("slot",{key:"75783345d2276f06e53c401761cb4e57d241e5e0",name:"label"}),a("slot",{key:"f2d9cdff693edbcae6293921fde7996d1b1251b6",name:"annotation"})),a("span",{key:"f7e28ea54455756c7d146c7b88be7001e80b07a8",class:o.right},a("slot",{key:"e76b31bf1c349a8a86d4b91ec1cfa650a75edf60",name:"suffix"}),a("span",{key:"87ea99c9862deb3ff9820fa383cec52956b4655a",class:o.arrow},a("slot",{key:"c8b64a90455a731f359e12550664ba5aa905abbc",name:"toggle-icon"},a("gov-icon",{key:"867406c5634d6446683529f5f647492b9b289a31",name:"chevron-down",type:"components"}))))),a("div",{key:"2adf7441dd470ae1b32a08fb374cd1d9e2d1f789",class:o.content},a("slot",{key:"8eb27d0b33689933b6e71850324c35c89d71c4c0"}))))}async toggle(){this.open=!this.open;this.govChange.emit({open:this.open,component:o.root,ref:this.host})}async currentState(){return this.open}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-accordion-item",{identifier:[1],size:[1025],disabled:[4],open:[1028],openState:[32],toggle:[64],currentState:[64]},undefined,{size:["validateSize"]}]);function g(){if(typeof customElements==="undefined"){return}const e=["gov-accordion-item","gov-icon"];e.forEach((e=>{switch(e){case"gov-accordion-item":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}g();const y=p;const u=g;export{y as GovAccordionItem,u as defineCustomElement};
2
2
  //# sourceMappingURL=gov-accordion-item.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-BICk4EuO.js";const t=o;const p=s;export{t as GovAttachmentsItem,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-BVG9PtuQ.js";const t=o;const p=s;export{t as GovAttachmentsItem,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-attachments-item.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as o,a as c}from"./index.js";import{g as s}from"./p-BHRF-5cf.js";import{d as n}from"./p-DRXiDAHW.js";var a;(function(e){e["PRIMARY"]="primary";e["SUBTLE"]="subtle";e["NEUTRAL"]="neutral"})(a||(a={}));const i={root:"gov-blockquote"};const f=e(class e extends t{constructor(){super();this.__registerHost();this.type=a.SUBTLE;this.h=s(this.host)}render(){return o(c,{key:"c12f0f01c2db5025112edd1ebc834a18ff754546",class:this.h.classes(i.root),type:this.type},o("gov-icon",{key:"f043fdebbbd95c4eb3909985243f5ef253eb0335",type:"components",name:"quote",size:"3xl"}),o("blockquote",{key:"57cdec66772ad7732a79dd9a55cad1d9e5058ed7",cite:this.cite},o("slot",{key:"71a0e5ca7f377e22f4c12c44c517f142d45e47a9"})),o("slot",{key:"b0c7f4796b12e1baec71c03d20cb2ff99ae51311",name:"image"}),o("slot",{key:"55e5588b7e9793743a6b8ef403d363ddde8300d8",name:"author"}))}get host(){return this}},[4,"gov-blockquote",{type:[513],cite:[1]}]);function r(){if(typeof customElements==="undefined"){return}const e=["gov-blockquote","gov-icon"];e.forEach((e=>{switch(e){case"gov-blockquote":if(!customElements.get(e)){customElements.define(e,f)}break;case"gov-icon":if(!customElements.get(e)){n()}break}}))}r();const d=f;const b=r;export{d as GovBlockquote,b as defineCustomElement};
1
+ import{p as e,H as t,h as o,a as c}from"./index.js";import{g as s}from"./p-BHRF-5cf.js";import{d as n}from"./p-Dj-FiQ37.js";var a;(function(e){e["PRIMARY"]="primary";e["SUBTLE"]="subtle";e["NEUTRAL"]="neutral"})(a||(a={}));const i={root:"gov-blockquote"};const f=e(class e extends t{constructor(){super();this.__registerHost();this.type=a.SUBTLE;this.h=s(this.host)}render(){return o(c,{key:"c12f0f01c2db5025112edd1ebc834a18ff754546",class:this.h.classes(i.root),type:this.type},o("gov-icon",{key:"f043fdebbbd95c4eb3909985243f5ef253eb0335",type:"components",name:"quote",size:"3xl"}),o("blockquote",{key:"57cdec66772ad7732a79dd9a55cad1d9e5058ed7",cite:this.cite},o("slot",{key:"71a0e5ca7f377e22f4c12c44c517f142d45e47a9"})),o("slot",{key:"b0c7f4796b12e1baec71c03d20cb2ff99ae51311",name:"image"}),o("slot",{key:"55e5588b7e9793743a6b8ef403d363ddde8300d8",name:"author"}))}get host(){return this}},[4,"gov-blockquote",{type:[513],cite:[1]}]);function r(){if(typeof customElements==="undefined"){return}const e=["gov-blockquote","gov-icon"];e.forEach((e=>{switch(e){case"gov-blockquote":if(!customElements.get(e)){customElements.define(e,f)}break;case"gov-icon":if(!customElements.get(e)){n()}break}}))}r();const d=f;const b=r;export{d as GovBlockquote,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-blockquote.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as e,c as t,h as i,a}from"./index.js";import{a as o}from"./p-Nvj7WFs_.js";import{c}from"./p-DrPpH_9c.js";import{g as l}from"./p-BHRF-5cf.js";import{t as r}from"./p-Cjg0wpDG.js";import{d as n}from"./p-ClDhNt_H.js";import{d as h}from"./p-DRXiDAHW.js";const b={root:"gov-breadcrumbs"};const d=s(class s extends e{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change");this.inited=false;this.collapsible=false;this.isExpanded=false;this.accessibleToggleLabel="Zobrazit či skrýt navigaci";this.expanded=false;this.toggleOption=false;this.h=l(this.host)}async componentDidRender(){this.scheduleContentVerification();if(c()){r((()=>this.validateAccessibility()))}}scheduleContentVerification(){if(this.inited)return;this.inited=true;r((()=>{this.calculateWidthOfItems();this.inited=false}))}calculateWidthOfItems(){const s=this.host.getBoundingClientRect().width;let e=0;this.host.querySelectorAll("li").forEach((s=>{e+=s.getBoundingClientRect().width}));this.toggleOption=e>s}render(){return i(a,{key:"f8d5534c547e913a6ea57caafb588e00244f5c13",class:this.h.classes(b.root),expanded:this.expanded},i("nav",{key:"932e17955c6bdfb53339597b088519e91a5249f6","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy},i("slot",{key:"618bee35e6a66fad8fb7cf35485d101ce0b62ad4"})),this.toggleOption?i("gov-button",{size:"xs",color:"primary",type:"base","aria-label":this.accessibleToggleLabel,"aria-pressed":this.expanded,"aria-expanded":this.expanded,"on-gov-click":()=>this.expanded=!this.expanded},i("gov-icon",{name:this.expanded?"chevron-up":"chevron-down",type:"components"})):null)}async validateAccessibility(){o(this.accessibleLabel,this.accessibleLabelledBy,b.root,this.host);o(this.accessibleToggleLabel,undefined,b.root,this.host)}get host(){return this}},[4,"gov-breadcrumbs",{collapsible:[4],isExpanded:[4,"is-expanded"],accessibleLabel:[1,"accessible-label"],accessibleLabelledBy:[1,"accessible-labelledby"],accessibleToggleLabel:[1,"accessible-toggle-label"],expanded:[32],toggleOption:[32],validateAccessibility:[64]}]);function f(){if(typeof customElements==="undefined"){return}const s=["gov-breadcrumbs","gov-button","gov-icon"];s.forEach((s=>{switch(s){case"gov-breadcrumbs":if(!customElements.get(s)){customElements.define(s,d)}break;case"gov-button":if(!customElements.get(s)){n()}break;case"gov-icon":if(!customElements.get(s)){h()}break}}))}f();const m=d;const p=f;export{m as GovBreadcrumbs,p as defineCustomElement};
1
+ import{p as s,H as e,c as t,h as i,a}from"./index.js";import{a as o}from"./p-Nvj7WFs_.js";import{c}from"./p-DrPpH_9c.js";import{g as l}from"./p-BHRF-5cf.js";import{t as r}from"./p-Cjg0wpDG.js";import{d as n}from"./p-o4vVG5sG.js";import{d as h}from"./p-Dj-FiQ37.js";const b={root:"gov-breadcrumbs"};const d=s(class s extends e{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change");this.inited=false;this.collapsible=false;this.isExpanded=false;this.accessibleToggleLabel="Zobrazit či skrýt navigaci";this.expanded=false;this.toggleOption=false;this.h=l(this.host)}async componentDidRender(){this.scheduleContentVerification();if(c()){r((()=>this.validateAccessibility()))}}scheduleContentVerification(){if(this.inited)return;this.inited=true;r((()=>{this.calculateWidthOfItems();this.inited=false}))}calculateWidthOfItems(){const s=this.host.getBoundingClientRect().width;let e=0;this.host.querySelectorAll("li").forEach((s=>{e+=s.getBoundingClientRect().width}));this.toggleOption=e>s}render(){return i(a,{key:"f8d5534c547e913a6ea57caafb588e00244f5c13",class:this.h.classes(b.root),expanded:this.expanded},i("nav",{key:"932e17955c6bdfb53339597b088519e91a5249f6","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy},i("slot",{key:"618bee35e6a66fad8fb7cf35485d101ce0b62ad4"})),this.toggleOption?i("gov-button",{size:"xs",color:"primary",type:"base","aria-label":this.accessibleToggleLabel,"aria-pressed":this.expanded,"aria-expanded":this.expanded,"on-gov-click":()=>this.expanded=!this.expanded},i("gov-icon",{name:this.expanded?"chevron-up":"chevron-down",type:"components"})):null)}async validateAccessibility(){o(this.accessibleLabel,this.accessibleLabelledBy,b.root,this.host);o(this.accessibleToggleLabel,undefined,b.root,this.host)}get host(){return this}},[4,"gov-breadcrumbs",{collapsible:[4],isExpanded:[4,"is-expanded"],accessibleLabel:[1,"accessible-label"],accessibleLabelledBy:[1,"accessible-labelledby"],accessibleToggleLabel:[1,"accessible-toggle-label"],expanded:[32],toggleOption:[32],validateAccessibility:[64]}]);function f(){if(typeof customElements==="undefined"){return}const s=["gov-breadcrumbs","gov-button","gov-icon"];s.forEach((s=>{switch(s){case"gov-breadcrumbs":if(!customElements.get(s)){customElements.define(s,d)}break;case"gov-button":if(!customElements.get(s)){n()}break;case"gov-icon":if(!customElements.get(s)){h()}break}}))}f();const m=d;const p=f;export{m as GovBreadcrumbs,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-breadcrumbs.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-ClDhNt_H.js";const t=o;const p=s;export{t as GovButton,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-o4vVG5sG.js";const t=o;const p=s;export{t as GovButton,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-button.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as i,c as s,h as t,a}from"./index.js";import{g as c,c as o}from"./p-BHRF-5cf.js";import{c as d}from"./p-vN03FcXN.js";import{a as n}from"./p-Nvj7WFs_.js";import{c as r}from"./p-DrPpH_9c.js";import{d as l}from"./p-CQvUntGY.js";import{d as h}from"./p-DRXiDAHW.js";var f;(function(e){e["HORIZONTAL"]="horizontal";e["VERTICAL"]="vertical"})(f||(f={}));const b={root:"gov-card",header:"gov-card__header",arrow:"gov-card__arrow",inner:"gov-card__inner",img:"gov-card__img",icon:"gov-card__icon",content:"gov-card__content",footer:"gov-card__footer"};var m;(function(e){e["A"]="a";e["DIV"]="div"})(m||(m={}));const v=e(class e extends i{constructor(){super();this.__registerHost();this.govToggle=s(this,"gov-toggle");this.hydrated=false;this.direction="vertical";this.collapsible=false;this.clickable=false;this.open=true;this.h=c(this.host);this.headlineId=d("GovCardHeadline");this.contentId=d("GovCardContent")}async componentDidRender(){if(r()){await l(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){const e=this.href?m.A:m.DIV;return t(a,{key:"8e06f44b5b92bdbbdd47121d3e136485b83ce64e",class:this.h.classes(b.root),open:this.open,collapsible:o(this.collapsible),clickable:this.clickable,direction:this.direction,hydrated:this.hydrated},this.collapsible?t("button",{id:this.headlineId,class:b.header,"aria-label":this.accessibleTriggerLabel,"aria-labelledby":this.accessibleTriggerLabelledBy,"aria-expanded":o(this.open),"aria-controls":this.contentId,onClick:this.onClickHandler.bind(this)},t("slot",{name:"headline"}),t("gov-icon",{class:b.arrow,name:"chevron-down",type:"components"})):this.h.hasSlot("headline")?t("div",{class:b.header},t("slot",{name:"headline"})):null,t(e,{key:"e10c86ffa82d2e6227f0212295f4eed2ec68adac",href:this.href,target:this.target,id:this.contentId,"aria-hidden":this.collapsible?o(!this.open):undefined,hidden:this.collapsible?!this.open:undefined,"aria-labelledby":this.collapsible?this.headlineId:undefined,class:b.inner},this.h.hasSlot("img")&&t("div",{key:"f3c3a6f840fb6c8c6a4816e821bc3678fb696140",class:b.img},t("slot",{key:"d935568b7eeab4ce60cd699c301bf735a62e8862",name:"img"})),this.h.hasSlot("icon")&&t("div",{key:"a11162b8aa9820facd7e141cecd95327c1d299f4",class:b.icon},t("slot",{key:"e8dbb0a3e4f24eeed4254f8b91e9491029eb0221",name:"icon"})),t("div",{key:"76953be0ece73a123389d5d3e5f5accf5da9fd27",class:b.content},t("slot",{key:"a424223d3cd41e382cb97685c40a11ac43c8f836"})),this.h.hasSlot("footer")&&t("div",{key:"4ab1cfaa4d814f1bf693b44c4a56169caf8cea45",class:b.footer},t("slot",{key:"3427ccf260355c8b8b3b8d1dea54d8e82ec44da5",name:"footer"}))))}onClickHandler(e){e.stopPropagation();if(this.collapsible){this.open=!this.open;this.govToggle.emit({open:this.open,element:this.host})}}async validateAccessibility(){if(this.collapsible){n(this.accessibleTriggerLabel,this.accessibleTriggerLabelledBy,b.root,this.host)}}get host(){return this}},[4,"gov-card",{direction:[1],collapsible:[4],clickable:[4],open:[1540],href:[513],target:[1],accessibleTriggerLabel:[1,"accessible-label"],accessibleTriggerLabelledBy:[1,"accessible-labelledby"],validateAccessibility:[64]}]);function g(){if(typeof customElements==="undefined"){return}const e=["gov-card","gov-icon"];e.forEach((e=>{switch(e){case"gov-card":if(!customElements.get(e)){customElements.define(e,v)}break;case"gov-icon":if(!customElements.get(e)){h()}break}}))}g();const p=v;const y=g;export{p as GovCard,y as defineCustomElement};
1
+ import{p as e,H as i,c as s,h as t,a}from"./index.js";import{g as c,c as o}from"./p-BHRF-5cf.js";import{c as d}from"./p-vN03FcXN.js";import{a as n}from"./p-Nvj7WFs_.js";import{c as r}from"./p-DrPpH_9c.js";import{d as l}from"./p-CQvUntGY.js";import{d as h}from"./p-Dj-FiQ37.js";var f;(function(e){e["HORIZONTAL"]="horizontal";e["VERTICAL"]="vertical"})(f||(f={}));const b={root:"gov-card",header:"gov-card__header",arrow:"gov-card__arrow",inner:"gov-card__inner",img:"gov-card__img",icon:"gov-card__icon",content:"gov-card__content",footer:"gov-card__footer"};var m;(function(e){e["A"]="a";e["DIV"]="div"})(m||(m={}));const v=e(class e extends i{constructor(){super();this.__registerHost();this.govToggle=s(this,"gov-toggle");this.hydrated=false;this.direction="vertical";this.collapsible=false;this.clickable=false;this.open=true;this.h=c(this.host);this.headlineId=d("GovCardHeadline");this.contentId=d("GovCardContent")}async componentDidRender(){if(r()){await l(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){const e=this.href?m.A:m.DIV;return t(a,{key:"8e06f44b5b92bdbbdd47121d3e136485b83ce64e",class:this.h.classes(b.root),open:this.open,collapsible:o(this.collapsible),clickable:this.clickable,direction:this.direction,hydrated:this.hydrated},this.collapsible?t("button",{id:this.headlineId,class:b.header,"aria-label":this.accessibleTriggerLabel,"aria-labelledby":this.accessibleTriggerLabelledBy,"aria-expanded":o(this.open),"aria-controls":this.contentId,onClick:this.onClickHandler.bind(this)},t("slot",{name:"headline"}),t("gov-icon",{class:b.arrow,name:"chevron-down",type:"components"})):this.h.hasSlot("headline")?t("div",{class:b.header},t("slot",{name:"headline"})):null,t(e,{key:"e10c86ffa82d2e6227f0212295f4eed2ec68adac",href:this.href,target:this.target,id:this.contentId,"aria-hidden":this.collapsible?o(!this.open):undefined,hidden:this.collapsible?!this.open:undefined,"aria-labelledby":this.collapsible?this.headlineId:undefined,class:b.inner},this.h.hasSlot("img")&&t("div",{key:"f3c3a6f840fb6c8c6a4816e821bc3678fb696140",class:b.img},t("slot",{key:"d935568b7eeab4ce60cd699c301bf735a62e8862",name:"img"})),this.h.hasSlot("icon")&&t("div",{key:"a11162b8aa9820facd7e141cecd95327c1d299f4",class:b.icon},t("slot",{key:"e8dbb0a3e4f24eeed4254f8b91e9491029eb0221",name:"icon"})),t("div",{key:"76953be0ece73a123389d5d3e5f5accf5da9fd27",class:b.content},t("slot",{key:"a424223d3cd41e382cb97685c40a11ac43c8f836"})),this.h.hasSlot("footer")&&t("div",{key:"4ab1cfaa4d814f1bf693b44c4a56169caf8cea45",class:b.footer},t("slot",{key:"3427ccf260355c8b8b3b8d1dea54d8e82ec44da5",name:"footer"}))))}onClickHandler(e){e.stopPropagation();if(this.collapsible){this.open=!this.open;this.govToggle.emit({open:this.open,element:this.host})}}async validateAccessibility(){if(this.collapsible){n(this.accessibleTriggerLabel,this.accessibleTriggerLabelledBy,b.root,this.host)}}get host(){return this}},[4,"gov-card",{direction:[1],collapsible:[4],clickable:[4],open:[1540],href:[513],target:[1],accessibleTriggerLabel:[1,"accessible-label"],accessibleTriggerLabelledBy:[1,"accessible-labelledby"],validateAccessibility:[64]}]);function g(){if(typeof customElements==="undefined"){return}const e=["gov-card","gov-icon"];e.forEach((e=>{switch(e){case"gov-card":if(!customElements.get(e)){customElements.define(e,v)}break;case"gov-icon":if(!customElements.get(e)){h()}break}}))}g();const p=v;const y=g;export{p as GovCard,y as defineCustomElement};
2
2
  //# sourceMappingURL=gov-card.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-BGK46VRO.js";const t=o;const p=s;export{t as GovChip,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-NU_8kxGz.js";const t=o;const p=s;export{t as GovChip,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-chip.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,h as i,a as e}from"./index.js";import{p as o}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";import{g as n,c}from"./p-BHRF-5cf.js";import{v as d}from"./p-BKP-F1qP.js";import{A as l,a as r,i as h}from"./p-CXgom82_.js";import{c as f}from"./p-vN03FcXN.js";import{d as p}from"./p-ClDhNt_H.js";import{d as b}from"./p-DRXiDAHW.js";const m=o(a,["_XS","_S","_M","_L","_XL"]);var v;(function(t){t["DOWN"]="down";t["UP"]="up"})(v||(v={}));const u={root:"gov-collapsible",content:"gov-collapsible__content",disabled:"gov-collapsible--disabled"};const g=t(class t extends s{constructor(){super();this.__registerHost();this.hydrated=false;this.size="m";this.disabled=false;this.open=false;this.inheritedAttributes={};this.h=n(this.host);this.triggerId=f("GovCollapsibleControl");this.contentId=f("GovCollapsibleContent")}validateSize(t){d(m,t,u.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(r)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=h(this.host)}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()}connectedCallback(){this.hydrated=true}render(){return i(e,{key:"769978332f69d9faf2a4e8b305db730f30aff4ef",hydrated:this.hydrated,class:this.h.classes([u.root,this.disabled&&u.disabled]),size:this.size},i("gov-button",Object.assign({key:"8471245d9dd22f5599d234f86b7bf2127d8632ac",color:"primary",size:this.size,type:"link",disabled:this.disabled,"onGov-click":t=>{t.stopPropagation();t.preventDefault();this.open=!this.open}},this.inheritedAttributes,{identifier:this.triggerId,"aria-controls":this.contentId,"aria-expanded":c(this.open),"aria-haspopup":"true"}),this.label,i("gov-icon",{key:"01d4627f3817249e3653f8a2fdf0cc2d2d2ad36a",slot:"icon-end",name:this.open?"chevron-up":"chevron-down",type:"components"})),i("div",{key:"0d680443f3fa888d753aaf0090e9c4da177dbf7b",class:u.content,hidden:!this.open,id:this.contentId,"aria-labelledby":this.triggerId,"aria-hidden":c(!this.open)},i("slot",{key:"4b3c64ff8fb7f6d6039d9042328121207ccf7580"})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-collapsible",{size:[1],identifier:[1],label:[1],disabled:[4],open:[1028],inheritedAttributes:[32]},undefined,{size:["validateSize"]}]);function j(){if(typeof customElements==="undefined"){return}const t=["gov-collapsible","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-collapsible":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-button":if(!customElements.get(t)){p()}break;case"gov-icon":if(!customElements.get(t)){b()}break}}))}j();const k=g;const y=j;export{k as GovCollapsible,y as defineCustomElement};
1
+ import{p as t,H as s,h as i,a as e}from"./index.js";import{p as o}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";import{g as n,c}from"./p-BHRF-5cf.js";import{v as d}from"./p-BKP-F1qP.js";import{A as l,a as r,i as h}from"./p-CXgom82_.js";import{c as f}from"./p-vN03FcXN.js";import{d as p}from"./p-o4vVG5sG.js";import{d as b}from"./p-Dj-FiQ37.js";const m=o(a,["_XS","_S","_M","_L","_XL"]);var v;(function(t){t["DOWN"]="down";t["UP"]="up"})(v||(v={}));const u={root:"gov-collapsible",content:"gov-collapsible__content",disabled:"gov-collapsible--disabled"};const g=t(class t extends s{constructor(){super();this.__registerHost();this.hydrated=false;this.size="m";this.disabled=false;this.open=false;this.inheritedAttributes={};this.h=n(this.host);this.triggerId=f("GovCollapsibleControl");this.contentId=f("GovCollapsibleContent")}validateSize(t){d(m,t,u.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(r)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=h(this.host)}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()}connectedCallback(){this.hydrated=true}render(){return i(e,{key:"769978332f69d9faf2a4e8b305db730f30aff4ef",hydrated:this.hydrated,class:this.h.classes([u.root,this.disabled&&u.disabled]),size:this.size},i("gov-button",Object.assign({key:"8471245d9dd22f5599d234f86b7bf2127d8632ac",color:"primary",size:this.size,type:"link",disabled:this.disabled,"onGov-click":t=>{t.stopPropagation();t.preventDefault();this.open=!this.open}},this.inheritedAttributes,{identifier:this.triggerId,"aria-controls":this.contentId,"aria-expanded":c(this.open),"aria-haspopup":"true"}),this.label,i("gov-icon",{key:"01d4627f3817249e3653f8a2fdf0cc2d2d2ad36a",slot:"icon-end",name:this.open?"chevron-up":"chevron-down",type:"components"})),i("div",{key:"0d680443f3fa888d753aaf0090e9c4da177dbf7b",class:u.content,hidden:!this.open,id:this.contentId,"aria-labelledby":this.triggerId,"aria-hidden":c(!this.open)},i("slot",{key:"4b3c64ff8fb7f6d6039d9042328121207ccf7580"})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-collapsible",{size:[1],identifier:[1],label:[1],disabled:[4],open:[1028],inheritedAttributes:[32]},undefined,{size:["validateSize"]}]);function j(){if(typeof customElements==="undefined"){return}const t=["gov-collapsible","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-collapsible":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-button":if(!customElements.get(t)){p()}break;case"gov-icon":if(!customElements.get(t)){b()}break}}))}j();const k=g;const y=j;export{k as GovCollapsible,y as defineCustomElement};
2
2
  //# sourceMappingURL=gov-collapsible.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,c as t,h as i,a}from"./index.js";import{g as o,t as c,d as l}from"./p-BHRF-5cf.js";import{c as d}from"./p-DrPpH_9c.js";import{b}from"./p-Nvj7WFs_.js";import{c as n}from"./p-vN03FcXN.js";import{t as f}from"./p-Cjg0wpDG.js";import{d as h}from"./p-CnKqUwf9.js";import{d as r}from"./p-ClDhNt_H.js";import{d as g}from"./p-DRXiDAHW.js";const p={root:"gov-dialog",dialog:"gov-dialog__dialog",inner:"gov-dialog__inner",header:"gov-dialog__header",title:"gov-dialog__title",content:"gov-dialog__content",close:"gov-dialog__close",footer:"gov-dialog__footer",bodyFix:"body-fixed"};function m(e){if(!e)return[];return Array.from(e.querySelectorAll('a[href], button:not([disabled]), textarea, input:not([type="hidden"]), select, [tabindex]:not([tabindex="-1"])'))}const y=e(class e extends s{constructor(){super();this.__registerHost();this.govClose=t(this,"gov-close");this.hydrated=false;this.open=false;this.blockClose=false;this.blockBackdropClose=false;this.role="dialog";this.labelTag="h2";this.accessibleCloseLabel="Zavřít okno";this.h=o(this.host);this.labelId=n("GovDialogLabel");this.contentId=n("GovDialogContent")}watchOpen(e){var s;this.open=e;this.setFocus().finally();if(!e){(s=this.lastActiveElementRef)===null||s===void 0?void 0:s.focus()}else{this.focusTrap()}}showDialog(){this.open=true;document.body.classList.add(p.bodyFix)}hideDialog(){this.open=false;document.body.classList.remove(p.bodyFix)}async componentDidRender(){if(d()){f((()=>this.validateAccessibility()))}if(this.open){this.showDialog()}else{this.hideDialog()}}focusTrap(){var e;if(open&&this.dialogRef){this.lastActiveElementRef=document.activeElement;const e=m(this.dialogRef);if(e.length){e[0].focus()}const s=e=>{if(e.key==="Tab"&&this.dialogRef){const s=m(this.dialogRef);const t=s[0];const i=s[s.length-1];if(!e.shiftKey&&document.activeElement===i){e.preventDefault();t.focus()}if(e.shiftKey&&document.activeElement===t){e.preventDefault();i.focus()}}if(e.key==="Escape"){if(this.blockClose===false){this.hideDialog();this.govClose.emit()}}};document.addEventListener("keydown",s)}else{(e=this.lastActiveElementRef)===null||e===void 0?void 0:e.focus()}}connectedCallback(){this.hydrated=true}disconnectedCallback(){document.body.classList.remove(p.bodyFix)}render(){return i(a,{key:"1b4a7fbbf75675be26754a29aeadf8943af6e372",class:this.h.classes(p.root),open:this.open,hydrated:this.hydrated},i("dialog",{key:"75df8bc2428485b6bc5a2ed21f334ff897a26f19",ref:e=>this.dialogRef=e,class:p.dialog,hidden:!this.open,tabindex:l(this.open),open:this.open,"aria-modal":"true","aria-hidden":c(!this.open),"aria-labelledby":this.accessibleLabelledBy||this.labelId,"aria-describedby":this.accessibleDescribedBy||this.contentId,role:this.role},i("div",{key:"7a8c1ff8172fcb3e2e6ed342baf38018b7603b4c",class:p.inner},i("div",{key:"b84fec4ad89efe420beede090a20bfdff6f47457",class:p.header},this.h.hasSlot("icon")&&i("span",{key:"931cc48c446af90837a58bd83bfc30e9c54ad787"},i("slot",{key:"088523bcc3debf0144195c21faa89f9f5ab8dd31",name:"icon"})),this.h.hasSlot("title")&&i("span",{key:"d38ca38a8b269f5a4f18ea2c8b0d833ac1614f43",class:p.title,id:this.labelId},i("slot",{key:"7bdc841090ba66fb9dab50d3ae1af8308fd4dddb",name:"title"})),i("gov-button",{key:"89dddfec62b770915b1e841b65a3727a399ac454",ref:e=>this.closeCtaRef=e,disabled:this.blockClose,class:p.close,color:"primary","aria-label":this.accessibleCloseLabel,"aria-labelledby":this.accessibleCloseLabelledBy,type:"base",size:"m","on-gov-click":this.onCloseHandler.bind(this)},i("gov-icon",{key:"b4446a4fb10351aa2c263c1e09c7f821096e780f",slot:"icon-start",name:"x-lg",type:"components"}))),i("div",{key:"5c2a71245e7cd6e5ffebc317b79c16b299de1674",class:p.content,id:this.contentId},i("slot",{key:"d2bb335499547d7799316f2c9016569375eed7f4"})),this.h.hasSlot("footer")&&i("div",{key:"154d7917e898162f0fdaad2fa4007fccdec820c6",class:p.footer},i("slot",{key:"45272652b42b67f1f1bc88f256c20eba35fe1f69",name:"footer"})))),this.open?i("gov-backdrop",{disabled:this.blockBackdropClose,"aria-label":this.accessibleCloseLabel,"aria-labelled-by":this.accessibleCloseLabelledBy,"on-gov-click":this.onCloseHandler.bind(this)}):null)}onCloseHandler(e){e.stopPropagation();e.preventDefault();if(this.blockClose===false){this.hideDialog();this.govClose.emit(e)}}async setFocus(){if(this.open&&this.closeCtaRef){this.closeCtaRef.setFocus().catch()}}async validateAccessibility(){b(this.accessibleLabelledBy,"accessible-labelled-by",p.root);b(this.accessibleDescribedBy,"accessible-described-by",p.root)}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[4,"gov-dialog",{open:[1540],blockClose:[4,"block-close"],blockBackdropClose:[4,"block-backdrop-close"],role:[1],labelTag:[1,"label-tag"],accessibleLabelledBy:[1,"accessible-labelled-by"],accessibleDescribedBy:[1,"accessible-described-by"],accessibleCloseLabel:[1,"accessible-close-label"],accessibleCloseLabelledBy:[1,"accessible-close-labelled-by"],setFocus:[64],validateAccessibility:[64]},undefined,{open:["watchOpen"]}]);function v(){if(typeof customElements==="undefined"){return}const e=["gov-dialog","gov-backdrop","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-dialog":if(!customElements.get(e)){customElements.define(e,y)}break;case"gov-backdrop":if(!customElements.get(e)){h()}break;case"gov-button":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){g()}break}}))}v();const u=y;const k=v;export{u as GovDialog,k as defineCustomElement};
1
+ import{p as e,H as s,c as t,h as i,a}from"./index.js";import{g as o,t as c,d as l}from"./p-BHRF-5cf.js";import{c as d}from"./p-DrPpH_9c.js";import{b}from"./p-Nvj7WFs_.js";import{c as n}from"./p-vN03FcXN.js";import{t as f}from"./p-Cjg0wpDG.js";import{d as h}from"./p-CnKqUwf9.js";import{d as r}from"./p-o4vVG5sG.js";import{d as g}from"./p-Dj-FiQ37.js";const p={root:"gov-dialog",dialog:"gov-dialog__dialog",inner:"gov-dialog__inner",header:"gov-dialog__header",title:"gov-dialog__title",content:"gov-dialog__content",close:"gov-dialog__close",footer:"gov-dialog__footer",bodyFix:"body-fixed"};function m(e){if(!e)return[];return Array.from(e.querySelectorAll('a[href], button:not([disabled]), textarea, input:not([type="hidden"]), select, [tabindex]:not([tabindex="-1"])'))}const v=e(class e extends s{constructor(){super();this.__registerHost();this.govClose=t(this,"gov-close");this.hydrated=false;this.open=false;this.blockClose=false;this.blockBackdropClose=false;this.role="dialog";this.labelTag="h2";this.accessibleCloseLabel="Zavřít okno";this.h=o(this.host);this.labelId=n("GovDialogLabel");this.contentId=n("GovDialogContent")}watchOpen(e){var s;this.open=e;this.setFocus().finally();if(!e){(s=this.lastActiveElementRef)===null||s===void 0?void 0:s.focus()}else{this.focusTrap()}}showDialog(){this.open=true;document.body.classList.add(p.bodyFix)}hideDialog(){this.open=false;document.body.classList.remove(p.bodyFix)}async componentDidRender(){if(d()){f((()=>this.validateAccessibility()))}if(this.open){this.showDialog()}else{this.hideDialog()}}focusTrap(){var e;if(open&&this.dialogRef){this.lastActiveElementRef=document.activeElement;const e=m(this.dialogRef);if(e.length){e[0].focus()}const s=e=>{if(e.key==="Tab"&&this.dialogRef){const s=m(this.dialogRef);const t=s[0];const i=s[s.length-1];if(!e.shiftKey&&document.activeElement===i){e.preventDefault();t.focus()}if(e.shiftKey&&document.activeElement===t){e.preventDefault();i.focus()}}if(e.key==="Escape"){if(this.blockClose===false){this.hideDialog();this.govClose.emit()}}};document.addEventListener("keydown",s)}else{(e=this.lastActiveElementRef)===null||e===void 0?void 0:e.focus()}}connectedCallback(){this.hydrated=true}disconnectedCallback(){document.body.classList.remove(p.bodyFix)}render(){return i(a,{key:"1b4a7fbbf75675be26754a29aeadf8943af6e372",class:this.h.classes(p.root),open:this.open,hydrated:this.hydrated},i("dialog",{key:"75df8bc2428485b6bc5a2ed21f334ff897a26f19",ref:e=>this.dialogRef=e,class:p.dialog,hidden:!this.open,tabindex:l(this.open),open:this.open,"aria-modal":"true","aria-hidden":c(!this.open),"aria-labelledby":this.accessibleLabelledBy||this.labelId,"aria-describedby":this.accessibleDescribedBy||this.contentId,role:this.role},i("div",{key:"7a8c1ff8172fcb3e2e6ed342baf38018b7603b4c",class:p.inner},i("div",{key:"b84fec4ad89efe420beede090a20bfdff6f47457",class:p.header},this.h.hasSlot("icon")&&i("span",{key:"931cc48c446af90837a58bd83bfc30e9c54ad787"},i("slot",{key:"088523bcc3debf0144195c21faa89f9f5ab8dd31",name:"icon"})),this.h.hasSlot("title")&&i("span",{key:"d38ca38a8b269f5a4f18ea2c8b0d833ac1614f43",class:p.title,id:this.labelId},i("slot",{key:"7bdc841090ba66fb9dab50d3ae1af8308fd4dddb",name:"title"})),i("gov-button",{key:"89dddfec62b770915b1e841b65a3727a399ac454",ref:e=>this.closeCtaRef=e,disabled:this.blockClose,class:p.close,color:"primary","aria-label":this.accessibleCloseLabel,"aria-labelledby":this.accessibleCloseLabelledBy,type:"base",size:"m","on-gov-click":this.onCloseHandler.bind(this)},i("gov-icon",{key:"b4446a4fb10351aa2c263c1e09c7f821096e780f",slot:"icon-start",name:"x-lg",type:"components"}))),i("div",{key:"5c2a71245e7cd6e5ffebc317b79c16b299de1674",class:p.content,id:this.contentId},i("slot",{key:"d2bb335499547d7799316f2c9016569375eed7f4"})),this.h.hasSlot("footer")&&i("div",{key:"154d7917e898162f0fdaad2fa4007fccdec820c6",class:p.footer},i("slot",{key:"45272652b42b67f1f1bc88f256c20eba35fe1f69",name:"footer"})))),this.open?i("gov-backdrop",{disabled:this.blockBackdropClose,"aria-label":this.accessibleCloseLabel,"aria-labelled-by":this.accessibleCloseLabelledBy,"on-gov-click":this.onCloseHandler.bind(this)}):null)}onCloseHandler(e){e.stopPropagation();e.preventDefault();if(this.blockClose===false){this.hideDialog();this.govClose.emit(e)}}async setFocus(){if(this.open&&this.closeCtaRef){this.closeCtaRef.setFocus().catch()}}async validateAccessibility(){b(this.accessibleLabelledBy,"accessible-labelled-by",p.root);b(this.accessibleDescribedBy,"accessible-described-by",p.root)}get host(){return this}static get watchers(){return{open:["watchOpen"]}}},[4,"gov-dialog",{open:[1540],blockClose:[4,"block-close"],blockBackdropClose:[4,"block-backdrop-close"],role:[1],labelTag:[1,"label-tag"],accessibleLabelledBy:[1,"accessible-labelled-by"],accessibleDescribedBy:[1,"accessible-described-by"],accessibleCloseLabel:[1,"accessible-close-label"],accessibleCloseLabelledBy:[1,"accessible-close-labelled-by"],setFocus:[64],validateAccessibility:[64]},undefined,{open:["watchOpen"]}]);function y(){if(typeof customElements==="undefined"){return}const e=["gov-dialog","gov-backdrop","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-dialog":if(!customElements.get(e)){customElements.define(e,v)}break;case"gov-backdrop":if(!customElements.get(e)){h()}break;case"gov-button":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){g()}break}}))}y();const u=v;const k=y;export{u as GovDialog,k as defineCustomElement};
2
2
  //# sourceMappingURL=gov-dialog.js.map
@@ -1,2 +1,2 @@
1
- import{G as s,d as o}from"./p-isPjiQbr.js";const r=s;const t=o;export{r as GovFormAutocomplete,t as defineCustomElement};
1
+ import{G as o,d as s}from"./p-BIB-JMbL.js";const t=o;const p=s;export{t as GovFormAutocomplete,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-autocomplete.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{c as o}from"./p-vN03FcXN.js";import{v as n}from"./p-BKP-F1qP.js";import{g as a,d as r,e as c}from"./p-BSr8e18S.js";import{g as l,t as d,b as m}from"./p-BHRF-5cf.js";import{F as u}from"./p-5itQzbON.js";import{i as p,A as v,a as f}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.hydrated=false;this.checked=false;this.required=false;this.disabled=false;this.indeterminate=false;this.size="m";this.noLabel=false;this.inheritedAttributes={};this.checkboxId=o("GovCheckbox");this.h=l(this.host);this.f=a(this.h)}validateSize(t){n(c,t,r.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("type","checkbox")}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=p(this.host)}componentDidLoad(){this.attributeObserver=new v(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(f)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=t=>{if(this.noLabel){return e("label",{class:r.label},t)}return t};return e(h,{class:r.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},t(e(u,null,e("input",Object.assign({id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled,indeterminate:this.indeterminate,ref:t=>this.inputRef=t},this.inheritedAttributes,{"aria-checked":d(this.checked),"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("slot",{name:"label"}),e("gov-icon",{class:r.check,name:"check-lg",type:"components"}),e("gov-icon",{class:r.indeterminate,name:"dash-lg",type:"components"})))))}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onClickHandler(t){t.stopPropagation()}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-checkbox",{value:[1],checked:[1540],required:[4],disabled:[516],indeterminate:[516],name:[1],size:[513],identifier:[1],noLabel:[4,"no-label"],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-checkbox","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-checkbox":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-icon":if(!customElements.get(t)){b()}break}}))}k();const C=g;const A=k;export{C as GovFormCheckbox,A as defineCustomElement};
1
+ import{p as t,H as s,c as i,h as e,a as h}from"./index.js";import{c as o}from"./p-vN03FcXN.js";import{v as n}from"./p-BKP-F1qP.js";import{g as a,d as r,e as c}from"./p-BSr8e18S.js";import{g as l,t as d,b as m}from"./p-BHRF-5cf.js";import{F as u}from"./p-5itQzbON.js";import{i as p,A as v,a as f}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.hydrated=false;this.checked=false;this.required=false;this.disabled=false;this.indeterminate=false;this.size="m";this.noLabel=false;this.inheritedAttributes={};this.checkboxId=o("GovCheckbox");this.h=l(this.host);this.f=a(this.h)}validateSize(t){n(c,t,r.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("type","checkbox")}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=p(this.host)}componentDidLoad(){this.attributeObserver=new v(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(f)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=t=>{if(this.noLabel){return e("label",{class:r.label},t)}return t};return e(h,{class:r.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},t(e(u,null,e("input",Object.assign({id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled,indeterminate:this.indeterminate,ref:t=>this.inputRef=t},this.inheritedAttributes,{"aria-checked":d(this.checked),"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("slot",{name:"label"}),e("gov-icon",{class:r.check,name:"check-lg",type:"components"}),e("gov-icon",{class:r.indeterminate,name:"dash-lg",type:"components"})))))}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}onClickHandler(t){t.stopPropagation()}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:r.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-checkbox",{value:[1],checked:[1540],required:[4],disabled:[516],indeterminate:[516],name:[1],size:[513],identifier:[1],noLabel:[4,"no-label"],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-checkbox","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-checkbox":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-icon":if(!customElements.get(t)){b()}break}}))}k();const C=g;const j=k;export{C as GovFormCheckbox,j as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-checkbox.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as e,h as i,a as o}from"./index.js";import{c as n}from"./p-vN03FcXN.js";import{g as a,t as r,b as h}from"./p-BHRF-5cf.js";import{g as l}from"./p-BSr8e18S.js";import{A as c,a as f,i as m}from"./p-CXgom82_.js";import{d as u}from"./p-CMmyR4-k.js";import{d}from"./p-BICk4EuO.js";import{d as p}from"./p-ClDhNt_H.js";import{d as g}from"./p-CU0plGZP.js";import{d as v}from"./p-DRXiDAHW.js";import{d as b}from"./p-keC6luw7.js";import{d as y}from"./p-DjGO_trZ.js";const k={root:"gov-form-file",area:"gov-form-file__area",input:"gov-form-file__input",inputFocus:"gov-form-file__input-focus",attachments:"gov-form-file__attachments"};function A(t){const s=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=0,i=parseInt(t,10)||0;while(i>=1024&&++e){i=i/1024}return i.toFixed(i<10&&e>0?1:0)+" "+s[e]}function E(t,s){if(typeof s!=="string"||s.trim().length===0){return true}const e=t.name.toLowerCase();const i=(t.type||"").toLowerCase();return s.split(",").map((t=>t.trim().toLowerCase())).filter((t=>t.length>0)).some((t=>{if(t.startsWith(".")){return e.endsWith(t)}if(t==="*"||t==="*/*"){return true}if(t.endsWith("/*")){const s=t.slice(0,t.indexOf("/")+1);return i.startsWith(s)}return i===t}))}function j(t,s){const e=Math.round(t.size);return e<=s}const C=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=e(this,"gov-focus");this.govBlur=e(this,"gov-blur");this.govFiles=e(this,"gov-files");this.govAddFile=e(this,"gov-add-file");this.govRemoveFile=e(this,"gov-remove-file");this.eventsRegistered=false;this.expanded=false;this.required=false;this.disabled=false;this.resetAfterPick=false;this.ignoreFileDuplicationCheck=false;this.displayAttachments=true;this.multiple=false;this.maxFileSize=-1;this.errorSize="Soubor je větší než povolená velikost {FILE_SIZE}";this.errorAccept="Soubor tohoto typu není povolen";this.accessibleAttachmentsLabel="Přílohy";this.files=[];this.inheritedAttributes={};this.fileId=n("GovInputFile");this.h=a(this.host);this.f=l(this.h)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","File")}registerListeners(){if(this.eventsRegistered){return}this.eventsRegistered=true;function t(){this.areaRef.classList.add("highlight")}function s(){this.areaRef.classList.remove("highlight")}this.inputRef.addEventListener("change",(t=>{t.preventDefault();t.stopPropagation();const s=t.target.files;if(this.resetAfterPick){if(s.length){this.validateFiles(s)}}else{this.validateFiles(s)}}),false);if(this.expanded){const e=["dragover","dragleave"];const i=["dragenter","dragover","mouseenter"];const o=["dragleave","mouseleave"];e.map((t=>this.inputRef.addEventListener(t,this.preventDefaults.bind(this),false)));i.map((s=>this.inputRef.addEventListener(s,t.bind(this),false)));o.forEach((t=>this.inputRef.addEventListener(t,s.bind(this),false)))}}preventDefaults(t){t.preventDefault();t.stopPropagation()}handleDrop(t){const s=t.dataTransfer;this.validateFiles(s.files)}validateFiles(t){let s=[];const e=this.multiple?Array.from(t):Array.from(t).slice(-1);if(!this.multiple&&this.displayAttachments){this.files=[]}e.forEach((t=>{const e=this.files.find((s=>s.file.name===t.name&&s.file.size===t.size))||null;if(e===null||this.ignoreFileDuplicationCheck){const e=typeof this.maxFileSize==="number"&&this.maxFileSize>0?j(t,this.maxFileSize):true;const i=E(t,this.accept);const o={id:n("GovFormFile"),file:t,acceptValid:i,sizeValid:e};if(this.displayAttachments){this.files=[...this.files,o]}else{s=[...s,o]}this.govAddFile.emit({component:k.root,file:o})}}));if(this.displayAttachments){this.syncNativeInputFiles()}this.govFiles.emit({component:k.root,files:s.length?s:this.files});if(this.resetAfterPick){this.reset().finally()}}syncNativeInputFiles(){if(!this.inputRef||typeof DataTransfer==="undefined"){return}try{const t=new DataTransfer;this.files.filter((t=>t.acceptValid===true&&t.sizeValid===true)).forEach((s=>t.items.add(s.file)));this.inputRef.files=t.files}catch(t){if(typeof process!=="undefined"&&process.env&&"production"!=="production");}}componentDidLoad(){this.attributeObserver=new c(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(f)}componentWillLoad(){this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs();this.inheritedAttributes=m(this.host)}async componentDidRender(){this.registerListeners()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return i(o,{key:"2d89af24db1447bba2c7987946b5c63bff65a58a",class:this.h.classes([k.root]),invalid:h(this.invalid),expanded:h(this.expanded)},i("div",{key:"7a37869f8ef203b0f1d6b07cfee8e4f325fe9ecc",class:k.area,ref:t=>this.areaRef=t},i("slot",{key:"10344be7bedf53a4754c8e79bb069c57291b7663"}),i("input",Object.assign({key:"52dc1692d0eaa6310c0166faceb5906627aac73c",class:k.input,ref:t=>this.inputRef=t,id:this.identifier||this.fileId,type:"file",name:this.name,accept:this.accept,multiple:this.multiple,onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled},this.inheritedAttributes,{"aria-required":h(this.required),"aria-invalid":h(this.invalid),"aria-disabled":h(this.disabled)})),i("div",{key:"1193c6ef7a57894baab2f14619827c2f51441d08",class:k.inputFocus})),this.h.hasSlot("attachments")?i("div",{class:k.attachments},i("slot",{name:"attachments"})):null,this.files.length&&this.displayAttachments?i("div",{class:k.attachments},i("gov-attachments",{label:this.accessibleAttachmentsLabel,"accessible-label":this.accessibleAttachmentsLabel},this.files.map((t=>i("gov-attachments-item",{"accessible-remove-labelledby":t.id,"on-gov-remove":()=>this.onRemoveFileHandler(t)},t.file.name,i("span",{slot:"name"},t.file.name),t.acceptValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),t.acceptValid===false?this.errorAccept:null):null,t.sizeValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),this.errorSize.replace("{FILE_SIZE}",A(this.maxFileSize))):null,i("span",{slot:"info"},"(",A(t.file.size),")")))))):null)}onRemoveFileHandler(t){const s=this.files.findIndex((s=>s.id===t.id));if(s!==-1){const t=this.files;const e=this.files[s];t.splice(s,1);this.files=[...t];this.syncNativeInputFiles();this.govRemoveFile.emit({component:k.root,file:e});this.govFiles.emit({component:k.root,files:t})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:k.root,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:k.root,originalEvent:t})}onChangeHandler(t){t.stopPropagation()}async getRef(){return this.inputRef}async getAreaRef(){return this.areaRef}async reset(){this.files=[];if(this.inputRef){this.inputRef.value="";this.syncNativeInputFiles()}}get host(){return this}static get watchers(){return{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-file",{expanded:[4],required:[4],disabled:[516],resetAfterPick:[4,"reset-after-pick"],ignoreFileDuplicationCheck:[4,"ignore-file-duplication-check"],displayAttachments:[4,"display-attachments"],name:[1],accept:[1],multiple:[4],maxFileSize:[2,"max-file-size"],identifier:[1],invalid:[4],errorSize:[1,"error-size"],errorAccept:[1,"error-accept"],accessibleAttachmentsLabel:[1,"accessible-attachments-label"],files:[32],inheritedAttributes:[32],getRef:[64],getAreaRef:[64],reset:[64]},undefined,{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function F(){if(typeof customElements==="undefined"){return}const t=["gov-form-file","gov-attachments","gov-attachments-item","gov-button","gov-form-message","gov-icon","gov-tooltip","gov-tooltip-content"];t.forEach((t=>{switch(t){case"gov-form-file":if(!customElements.get(t)){customElements.define(t,C)}break;case"gov-attachments":if(!customElements.get(t)){u()}break;case"gov-attachments-item":if(!customElements.get(t)){d()}break;case"gov-button":if(!customElements.get(t)){p()}break;case"gov-form-message":if(!customElements.get(t)){g()}break;case"gov-icon":if(!customElements.get(t)){v()}break;case"gov-tooltip":if(!customElements.get(t)){b()}break;case"gov-tooltip-content":if(!customElements.get(t)){y()}break}}))}F();const B=C;const _=F;export{B as GovFormFile,_ as defineCustomElement};
1
+ import{p as t,H as s,c as e,h as i,a as o}from"./index.js";import{c as n}from"./p-vN03FcXN.js";import{g as a,t as r,b as h}from"./p-BHRF-5cf.js";import{g as l}from"./p-BSr8e18S.js";import{A as c,a as f,i as m}from"./p-CXgom82_.js";import{d as u}from"./p-CMmyR4-k.js";import{d}from"./p-BVG9PtuQ.js";import{d as p}from"./p-o4vVG5sG.js";import{d as g}from"./p-CU0plGZP.js";import{d as v}from"./p-Dj-FiQ37.js";import{d as b}from"./p-keC6luw7.js";import{d as y}from"./p-DlpZtTcv.js";const k={root:"gov-form-file",area:"gov-form-file__area",input:"gov-form-file__input",inputFocus:"gov-form-file__input-focus",attachments:"gov-form-file__attachments"};function A(t){const s=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let e=0,i=parseInt(t,10)||0;while(i>=1024&&++e){i=i/1024}return i.toFixed(i<10&&e>0?1:0)+" "+s[e]}function j(t,s){if(typeof s!=="string"||s.trim().length===0){return true}const e=t.name.toLowerCase();const i=(t.type||"").toLowerCase();return s.split(",").map((t=>t.trim().toLowerCase())).filter((t=>t.length>0)).some((t=>{if(t.startsWith(".")){return e.endsWith(t)}if(t==="*"||t==="*/*"){return true}if(t.endsWith("/*")){const s=t.slice(0,t.indexOf("/")+1);return i.startsWith(s)}return i===t}))}function E(t,s){const e=Math.round(t.size);return e<=s}const F=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=e(this,"gov-focus");this.govBlur=e(this,"gov-blur");this.govFiles=e(this,"gov-files");this.govAddFile=e(this,"gov-add-file");this.govRemoveFile=e(this,"gov-remove-file");this.eventsRegistered=false;this.expanded=false;this.required=false;this.disabled=false;this.resetAfterPick=false;this.ignoreFileDuplicationCheck=false;this.displayAttachments=true;this.multiple=false;this.maxFileSize=-1;this.errorSize="Soubor je větší než povolená velikost {FILE_SIZE}";this.errorAccept="Soubor tohoto typu není povolen";this.accessibleAttachmentsLabel="Přílohy";this.files=[];this.inheritedAttributes={};this.fileId=n("GovInputFile");this.h=a(this.host);this.f=l(this.h)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","File")}registerListeners(){if(this.eventsRegistered){return}this.eventsRegistered=true;function t(){this.areaRef.classList.add("highlight")}function s(){this.areaRef.classList.remove("highlight")}this.inputRef.addEventListener("change",(t=>{t.preventDefault();t.stopPropagation();const s=t.target.files;if(this.resetAfterPick){if(s.length){this.validateFiles(s)}}else{this.validateFiles(s)}}),false);if(this.expanded){const e=["dragover","dragleave"];const i=["dragenter","dragover","mouseenter"];const o=["dragleave","mouseleave"];e.map((t=>this.inputRef.addEventListener(t,this.preventDefaults.bind(this),false)));i.map((s=>this.inputRef.addEventListener(s,t.bind(this),false)));o.forEach((t=>this.inputRef.addEventListener(t,s.bind(this),false)))}}preventDefaults(t){t.preventDefault();t.stopPropagation()}handleDrop(t){const s=t.dataTransfer;this.validateFiles(s.files)}validateFiles(t){let s=[];const e=this.multiple?Array.from(t):Array.from(t).slice(-1);if(!this.multiple&&this.displayAttachments){this.files=[]}e.forEach((t=>{const e=this.files.find((s=>s.file.name===t.name&&s.file.size===t.size))||null;if(e===null||this.ignoreFileDuplicationCheck){const e=typeof this.maxFileSize==="number"&&this.maxFileSize>0?E(t,this.maxFileSize):true;const i=j(t,this.accept);const o={id:n("GovFormFile"),file:t,acceptValid:i,sizeValid:e};if(this.displayAttachments){this.files=[...this.files,o]}else{s=[...s,o]}this.govAddFile.emit({component:k.root,file:o})}}));if(this.displayAttachments){this.syncNativeInputFiles()}this.govFiles.emit({component:k.root,files:s.length?s:this.files});if(this.resetAfterPick){this.reset().finally()}}syncNativeInputFiles(){if(!this.inputRef||typeof DataTransfer==="undefined"){return}try{const t=new DataTransfer;this.files.filter((t=>t.acceptValid===true&&t.sizeValid===true)).forEach((s=>t.items.add(s.file)));this.inputRef.files=t.files}catch(t){if(typeof process!=="undefined"&&process.env&&"production"!=="production");}}componentDidLoad(){this.attributeObserver=new c(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(f)}componentWillLoad(){this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs();this.inheritedAttributes=m(this.host)}async componentDidRender(){this.registerListeners()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return i(o,{key:"2d89af24db1447bba2c7987946b5c63bff65a58a",class:this.h.classes([k.root]),invalid:h(this.invalid),expanded:h(this.expanded)},i("div",{key:"7a37869f8ef203b0f1d6b07cfee8e4f325fe9ecc",class:k.area,ref:t=>this.areaRef=t},i("slot",{key:"10344be7bedf53a4754c8e79bb069c57291b7663"}),i("input",Object.assign({key:"52dc1692d0eaa6310c0166faceb5906627aac73c",class:k.input,ref:t=>this.inputRef=t,id:this.identifier||this.fileId,type:"file",name:this.name,accept:this.accept,multiple:this.multiple,onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,disabled:this.disabled},this.inheritedAttributes,{"aria-required":h(this.required),"aria-invalid":h(this.invalid),"aria-disabled":h(this.disabled)})),i("div",{key:"1193c6ef7a57894baab2f14619827c2f51441d08",class:k.inputFocus})),this.h.hasSlot("attachments")?i("div",{class:k.attachments},i("slot",{name:"attachments"})):null,this.files.length&&this.displayAttachments?i("div",{class:k.attachments},i("gov-attachments",{label:this.accessibleAttachmentsLabel,"accessible-label":this.accessibleAttachmentsLabel},this.files.map((t=>i("gov-attachments-item",{"accessible-remove-labelledby":t.id,"on-gov-remove":()=>this.onRemoveFileHandler(t)},t.file.name,i("span",{slot:"name"},t.file.name),t.acceptValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),t.acceptValid===false?this.errorAccept:null):null,t.sizeValid===false?i("gov-form-message",{slot:"message",color:"error"},i("gov-icon",{slot:"icon",name:"exclamation-triangle-fill",type:"components"}),this.errorSize.replace("{FILE_SIZE}",A(this.maxFileSize))):null,i("span",{slot:"info"},"(",A(t.file.size),")")))))):null)}onRemoveFileHandler(t){const s=this.files.findIndex((s=>s.id===t.id));if(s!==-1){const t=this.files;const e=this.files[s];t.splice(s,1);this.files=[...t];this.syncNativeInputFiles();this.govRemoveFile.emit({component:k.root,file:e});this.govFiles.emit({component:k.root,files:t})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:k.root,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:k.root,originalEvent:t})}onChangeHandler(t){t.stopPropagation()}async getRef(){return this.inputRef}async getAreaRef(){return this.areaRef}async reset(){this.files=[];if(this.inputRef){this.inputRef.value="";this.syncNativeInputFiles()}}get host(){return this}static get watchers(){return{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}},[4,"gov-form-file",{expanded:[4],required:[4],disabled:[516],resetAfterPick:[4,"reset-after-pick"],ignoreFileDuplicationCheck:[4,"ignore-file-duplication-check"],displayAttachments:[4,"display-attachments"],name:[1],accept:[1],multiple:[4],maxFileSize:[2,"max-file-size"],identifier:[1],invalid:[4],errorSize:[1,"error-size"],errorAccept:[1,"error-accept"],accessibleAttachmentsLabel:[1,"accessible-attachments-label"],files:[32],inheritedAttributes:[32],getRef:[64],getAreaRef:[64],reset:[64]},undefined,{disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-form-file","gov-attachments","gov-attachments-item","gov-button","gov-form-message","gov-icon","gov-tooltip","gov-tooltip-content"];t.forEach((t=>{switch(t){case"gov-form-file":if(!customElements.get(t)){customElements.define(t,F)}break;case"gov-attachments":if(!customElements.get(t)){u()}break;case"gov-attachments-item":if(!customElements.get(t)){d()}break;case"gov-button":if(!customElements.get(t)){p()}break;case"gov-form-message":if(!customElements.get(t)){g()}break;case"gov-icon":if(!customElements.get(t)){v()}break;case"gov-tooltip":if(!customElements.get(t)){b()}break;case"gov-tooltip-content":if(!customElements.get(t)){y()}break}}))}C();const B=F;const w=C;export{B as GovFormFile,w as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-file.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-BNoNH6m-.js";const t=o;const m=s;export{t as GovFormInput,m as defineCustomElement};
1
+ import{G as o,d as s}from"./p-Dw1o8KoZ.js";const t=o;const p=s;export{t as GovFormInput,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-input.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as i,a as o}from"./index.js";import{g as a,h as n,i as l}from"./p-BSr8e18S.js";import{g as r,t as h,b as c}from"./p-BHRF-5cf.js";import{v as u}from"./p-BKP-F1qP.js";import{c as d,r as f}from"./p-vN03FcXN.js";import{p as m}from"./p-B0hcuYXk.js";import{t as v}from"./p-Cjg0wpDG.js";import{A as p,a as g}from"./p-CXgom82_.js";import{d as b}from"./p-ClDhNt_H.js";import{d as y}from"./p-isPjiQbr.js";import{d as k}from"./p-BNoNH6m-.js";import{d as j}from"./p-DRXiDAHW.js";import{d as w}from"./p-BxS4InzB.js";const S=t(class t extends e{constructor(){super();this.__registerHost();this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govChange=s(this,"gov-change");this.govSelect=s(this,"gov-select");this.govRemove=s(this,"gov-remove");this.size="m";this.hideSelectedList=false;this.required=false;this.disabled=false;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.messageLoading="Načítám...";this.selectedOptionsState=[];this.optionsState=[];this.inheritedAttributes={};this.selectId=d("GovSelect");this.listId=d("GovMultiList");this.h=r(this.host);this.f=a(this.h)}validateSize(t){u(l,t,n.root)}watchOptions(t){this.optionsState=m(t)}watchValue(t){this.selectedOptionsState=m(t)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(g);this.initAutocomplete()}componentWillLoad(){this.validateSize(this.size);this.optionsState=m(this.options);this.selectedOptionsState=m(this.value)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}getAvailableOptions(t=false){if(Array.isArray(this.optionsState)&&this.optionsState.length){if(t){return this.optionsState}return this.optionsState.filter((t=>{const e=this.selectedValueIndex(t.value);return e!==-1||(t===null||t===void 0?void 0:t.disabled)?false:true})).map((t=>{var e;return{name:(e=t.label)!==null&&e!==void 0?e:t.value,value:t.value}}))}return Array.from(this.selectRef.querySelectorAll("option")).filter((e=>{if(t){return true}const s=this.selectedValueIndex(e.value);return!(e.disabled||e.selected||s>-1)})).map((t=>({name:t.textContent,value:t.value})))}initAutocomplete(){var t,e,s,i,o;(t=this.autocompleteRef)===null||t===void 0?void 0:t.addEventListener("gov-select",this.onSelectHandler.bind(this));(e=this.autocompleteRef)===null||e===void 0?void 0:e.addEventListener("gov-input",this.onInputHandler.bind(this));(s=this.autocompleteRef)===null||s===void 0?void 0:s.addEventListener("gov-focus",this.onFocusHandler.bind(this));(i=this.autocompleteRef)===null||i===void 0?void 0:i.addEventListener("gov-blur",this.onBlurHandler.bind(this));(o=this.autocompleteRef)===null||o===void 0?void 0:o.setSearchCallback((t=>new Promise((e=>{const s=this.getAvailableOptions();if(String(t).length===0){return e(s)}e(s.filter((({label:e,value:s})=>{if(!e)e=s;return f(e).toLowerCase().indexOf(f(t).toLowerCase())>-1})))})))).finally()}selectedValueIndex(t){return this.selectedOptionsState.findIndex((e=>e===t))}getOptionElement(t){return this.selectRef.querySelector('option[value="'+t+'"]')}getOption(t){var e;return(e=this.getAvailableOptions(true).find((e=>e.value===t)))!==null&&e!==void 0?e:null}selectOption(t,e=true){const s=this.selectedValueIndex(t);if(s===-1){this.selectedOptionsState=[...this.selectedOptionsState,t];this.value=this.selectedOptionsState;if(e){this.govChange.emit({component:n.root,value:this.selectedOptionsState});this.govSelect.emit({component:n.root,value:this.selectedOptionsState})}const s=this.getOptionElement(t);if(s){s.selected=true}}}removeOption(t,e=true){const s=this.selectedValueIndex(t);if(s!==-1){this.selectedOptionsState.splice(s,1);this.selectedOptionsState=[...this.selectedOptionsState];this.value=this.selectedOptionsState;if(e){this.govChange.emit({component:n.root,value:this.selectedOptionsState});this.govRemove.emit({component:n.root,value:this.selectedOptionsState})}const i=this.getOptionElement(t);if(i){i.selected=false}}}async componentDidRender(){this.f.passAttrToLabel("required",String(this.required));v((()=>{this.selectRef.querySelectorAll("option").forEach((t=>{if(t.selected){this.selectOption(t.value,false)}}))}))}render(){return i(o,{key:"00de4cfbb82c004cae37353e271f8535fe46775e",class:n.root,size:this.size},i("div",{key:"7e35ab7e890edf08ae084fc65812755645e32771",class:n.wrap},this.h.hasSlot("prefix")&&i("slot",{key:"9b95a1b803f3eba9470b0dffd2cacd16462b1dfe",name:"prefix"}),i("gov-form-autocomplete",{key:"a5e6f7740ff1ea946e2efcbb122ee3c350f3d79c",value:this.valueState,disabled:this.disabled,identifier:this.identifier||this.selectId,required:false,invalid:this.invalid,success:this.success,size:this.size,placeholder:this.placeholder,"message-empty":this.messageEmpty,"message-loading":this.messageLoading,ref:t=>this.autocompleteRef=t,minlength:0,"aria-owns":this.listId},this.success&&i("gov-icon",{key:"56520f21509ed79d828848f713af383fafe8e47a",slot:"validation-icon",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"1f8f2e059a5c8c30ae0644435f591f7cb70e0930",slot:"validation-icon",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"e6996c534d4c8bda09f365336160dfe552f8a4a0",slot:"icon-end",class:"arrow-icon",name:"chevron-down",type:"components"})),i("select",Object.assign({key:"69a0ec03bc00ee1b7e85f1655a7033f587ea553f",hidden:true,class:"hidden-select-list","aria-hidden":h(true),multiple:true,required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":c(this.disabled),"aria-required":c(this.required),"aria-invalid":c(this.invalid)}),i("slot",{key:"95ccf066ef3585b5c3dc58441e74d70152c0fffb"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var e;const s=this.selectedValueIndex(t.value);return i("option",{value:t.value,selected:s>-1,disabled:t===null||t===void 0?void 0:t.disabled},(e=t.label)!==null&&e!==void 0?e:t.value)}))),this.h.hasSlot("sufix")&&i("slot",{key:"e07e4cd61da18737a4373fd4badc72c9ae3dab30",name:"sufix"})),this.hideSelectedList===false?i("ul",{role:"listbox",id:this.listId,class:n.list},Array.isArray(this.selectedOptionsState)&&this.selectedOptionsState.map((t=>{var e;const s=this.getOption(t);if(!s)return null;return i("li",{class:n.item,role:"option"},(e=s.label)!==null&&e!==void 0?e:s.value,i("gov-button",{"aria-label":`Odebrat vybranou položku ${s.label}`,color:"primary",type:"base",size:this.size,"on-gov-click":()=>this.onTagRemove(t)},i("gov-icon",{name:"x-lg",type:"components"})))}))):null)}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,originalEvent:t,value:this.selectedOptionsState})}onBlurHandler(t){t.stopPropagation();t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,originalEvent:t,value:this.selectedOptionsState})}onInputHandler(t){this.valueState=t.detail.value;t.stopPropagation()}onSelectHandler(t){t.stopPropagation();const e=t.detail.selected;this.selectOption(e.value);this.valueState="";this.autocompleteRef.clearValue().finally();this.autocompleteRef.focus()}onTagRemove(t){this.removeOption(t)}async setFocus(t){return this.selectRef.focus(t)}async setValue(t){this.valueState=t}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize"],options:["watchOptions"],value:["watchValue"]}}},[4,"gov-form-multi-select",{value:[1537],options:[1537],identifier:[1],placeholder:[1],size:[1],name:[1],hideSelectedList:[4,"hide-selected-list"],required:[4],disabled:[516],invalid:[516],success:[4],messageEmpty:[1,"message-empty"],messageLoading:[1,"message-loading"],focused:[32],valueState:[32],selectedOptionsState:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],getRef:[64]},undefined,{size:["validateSize"],options:["watchOptions"],value:["watchValue"]}]);function O(){if(typeof customElements==="undefined"){return}const t=["gov-form-multi-select","gov-button","gov-form-autocomplete","gov-form-input","gov-icon","gov-skeleton"];t.forEach((t=>{switch(t){case"gov-form-multi-select":if(!customElements.get(t)){customElements.define(t,S)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-autocomplete":if(!customElements.get(t)){y()}break;case"gov-form-input":if(!customElements.get(t)){k()}break;case"gov-icon":if(!customElements.get(t)){j()}break;case"gov-skeleton":if(!customElements.get(t)){w()}break}}))}O();const x=S;const E=O;export{x as GovFormMultiSelect,E as defineCustomElement};
1
+ import{p as t,H as e,c as s,h as i,a as o}from"./index.js";import{g as a,h as n,i as l}from"./p-BSr8e18S.js";import{g as r,t as h,b as c}from"./p-BHRF-5cf.js";import{v as u}from"./p-BKP-F1qP.js";import{c as d,r as f}from"./p-vN03FcXN.js";import{p as m}from"./p-B0hcuYXk.js";import{t as v}from"./p-Cjg0wpDG.js";import{A as p,a as g}from"./p-CXgom82_.js";import{d as b}from"./p-o4vVG5sG.js";import{d as y}from"./p-BIB-JMbL.js";import{d as k}from"./p-Dw1o8KoZ.js";import{d as j}from"./p-Dj-FiQ37.js";import{d as w}from"./p-BxS4InzB.js";const S=t(class t extends e{constructor(){super();this.__registerHost();this.govFocus=s(this,"gov-focus");this.govBlur=s(this,"gov-blur");this.govChange=s(this,"gov-change");this.govSelect=s(this,"gov-select");this.govRemove=s(this,"gov-remove");this.size="m";this.hideSelectedList=false;this.required=false;this.disabled=false;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.messageLoading="Načítám...";this.selectedOptionsState=[];this.optionsState=[];this.inheritedAttributes={};this.selectId=d("GovSelect");this.listId=d("GovMultiList");this.h=r(this.host);this.f=a(this.h)}validateSize(t){u(l,t,n.root)}watchOptions(t){this.optionsState=m(t)}watchValue(t){this.selectedOptionsState=m(t)}componentDidLoad(){this.attributeObserver=new p(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(g);this.initAutocomplete()}componentWillLoad(){this.validateSize(this.size);this.optionsState=m(this.options);this.selectedOptionsState=m(this.value)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}getAvailableOptions(t=false){if(Array.isArray(this.optionsState)&&this.optionsState.length){if(t){return this.optionsState}return this.optionsState.filter((t=>{const e=this.selectedValueIndex(t.value);return e!==-1||(t===null||t===void 0?void 0:t.disabled)?false:true})).map((t=>{var e;return{name:(e=t.label)!==null&&e!==void 0?e:t.value,value:t.value}}))}return Array.from(this.selectRef.querySelectorAll("option")).filter((e=>{if(t){return true}const s=this.selectedValueIndex(e.value);return!(e.disabled||e.selected||s>-1)})).map((t=>({name:t.textContent,value:t.value})))}initAutocomplete(){var t,e,s,i,o;(t=this.autocompleteRef)===null||t===void 0?void 0:t.addEventListener("gov-select",this.onSelectHandler.bind(this));(e=this.autocompleteRef)===null||e===void 0?void 0:e.addEventListener("gov-input",this.onInputHandler.bind(this));(s=this.autocompleteRef)===null||s===void 0?void 0:s.addEventListener("gov-focus",this.onFocusHandler.bind(this));(i=this.autocompleteRef)===null||i===void 0?void 0:i.addEventListener("gov-blur",this.onBlurHandler.bind(this));(o=this.autocompleteRef)===null||o===void 0?void 0:o.setSearchCallback((t=>new Promise((e=>{const s=this.getAvailableOptions();if(String(t).length===0){return e(s)}e(s.filter((({label:e,value:s})=>{if(!e)e=s;return f(e).toLowerCase().indexOf(f(t).toLowerCase())>-1})))})))).finally()}selectedValueIndex(t){return this.selectedOptionsState.findIndex((e=>e===t))}getOptionElement(t){return this.selectRef.querySelector('option[value="'+t+'"]')}getOption(t){var e;return(e=this.getAvailableOptions(true).find((e=>e.value===t)))!==null&&e!==void 0?e:null}selectOption(t,e=true){const s=this.selectedValueIndex(t);if(s===-1){this.selectedOptionsState=[...this.selectedOptionsState,t];this.value=this.selectedOptionsState;if(e){this.govChange.emit({component:n.root,value:this.selectedOptionsState});this.govSelect.emit({component:n.root,value:this.selectedOptionsState})}const s=this.getOptionElement(t);if(s){s.selected=true}}}removeOption(t,e=true){const s=this.selectedValueIndex(t);if(s!==-1){this.selectedOptionsState.splice(s,1);this.selectedOptionsState=[...this.selectedOptionsState];this.value=this.selectedOptionsState;if(e){this.govChange.emit({component:n.root,value:this.selectedOptionsState});this.govRemove.emit({component:n.root,value:this.selectedOptionsState})}const i=this.getOptionElement(t);if(i){i.selected=false}}}async componentDidRender(){this.f.passAttrToLabel("required",String(this.required));v((()=>{this.selectRef.querySelectorAll("option").forEach((t=>{if(t.selected){this.selectOption(t.value,false)}}))}))}render(){return i(o,{key:"00de4cfbb82c004cae37353e271f8535fe46775e",class:n.root,size:this.size},i("div",{key:"7e35ab7e890edf08ae084fc65812755645e32771",class:n.wrap},this.h.hasSlot("prefix")&&i("slot",{key:"9b95a1b803f3eba9470b0dffd2cacd16462b1dfe",name:"prefix"}),i("gov-form-autocomplete",{key:"a5e6f7740ff1ea946e2efcbb122ee3c350f3d79c",value:this.valueState,disabled:this.disabled,identifier:this.identifier||this.selectId,required:false,invalid:this.invalid,success:this.success,size:this.size,placeholder:this.placeholder,"message-empty":this.messageEmpty,"message-loading":this.messageLoading,ref:t=>this.autocompleteRef=t,minlength:0,"aria-owns":this.listId},this.success&&i("gov-icon",{key:"56520f21509ed79d828848f713af383fafe8e47a",slot:"validation-icon",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"1f8f2e059a5c8c30ae0644435f591f7cb70e0930",slot:"validation-icon",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"e6996c534d4c8bda09f365336160dfe552f8a4a0",slot:"icon-end",class:"arrow-icon",name:"chevron-down",type:"components"})),i("select",Object.assign({key:"69a0ec03bc00ee1b7e85f1655a7033f587ea553f",hidden:true,class:"hidden-select-list","aria-hidden":h(true),multiple:true,required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":c(this.disabled),"aria-required":c(this.required),"aria-invalid":c(this.invalid)}),i("slot",{key:"95ccf066ef3585b5c3dc58441e74d70152c0fffb"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var e;const s=this.selectedValueIndex(t.value);return i("option",{value:t.value,selected:s>-1,disabled:t===null||t===void 0?void 0:t.disabled},(e=t.label)!==null&&e!==void 0?e:t.value)}))),this.h.hasSlot("sufix")&&i("slot",{key:"e07e4cd61da18737a4373fd4badc72c9ae3dab30",name:"sufix"})),this.hideSelectedList===false?i("ul",{role:"listbox",id:this.listId,class:n.list},Array.isArray(this.selectedOptionsState)&&this.selectedOptionsState.map((t=>{var e;const s=this.getOption(t);if(!s)return null;return i("li",{class:n.item,role:"option"},(e=s.label)!==null&&e!==void 0?e:s.value,i("gov-button",{"aria-label":`Odebrat vybranou položku ${s.label}`,color:"primary",type:"base",size:this.size,"on-gov-click":()=>this.onTagRemove(t)},i("gov-icon",{name:"x-lg",type:"components"})))}))):null)}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,originalEvent:t,value:this.selectedOptionsState})}onBlurHandler(t){t.stopPropagation();t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,originalEvent:t,value:this.selectedOptionsState})}onInputHandler(t){this.valueState=t.detail.value;t.stopPropagation()}onSelectHandler(t){t.stopPropagation();const e=t.detail.selected;this.selectOption(e.value);this.valueState="";this.autocompleteRef.clearValue().finally();this.autocompleteRef.focus()}onTagRemove(t){this.removeOption(t)}async setFocus(t){return this.selectRef.focus(t)}async setValue(t){this.valueState=t}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize"],options:["watchOptions"],value:["watchValue"]}}},[4,"gov-form-multi-select",{value:[1537],options:[1537],identifier:[1],placeholder:[1],size:[1],name:[1],hideSelectedList:[4,"hide-selected-list"],required:[4],disabled:[516],invalid:[516],success:[4],messageEmpty:[1,"message-empty"],messageLoading:[1,"message-loading"],focused:[32],valueState:[32],selectedOptionsState:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],getRef:[64]},undefined,{size:["validateSize"],options:["watchOptions"],value:["watchValue"]}]);function O(){if(typeof customElements==="undefined"){return}const t=["gov-form-multi-select","gov-button","gov-form-autocomplete","gov-form-input","gov-icon","gov-skeleton"];t.forEach((t=>{switch(t){case"gov-form-multi-select":if(!customElements.get(t)){customElements.define(t,S)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-autocomplete":if(!customElements.get(t)){y()}break;case"gov-form-input":if(!customElements.get(t)){k()}break;case"gov-icon":if(!customElements.get(t)){j()}break;case"gov-skeleton":if(!customElements.get(t)){w()}break}}))}O();const x=S;const E=O;export{x as GovFormMultiSelect,E as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-multi-select.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{p as a}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{g as h,t as r,b as c}from"./p-BHRF-5cf.js";import{v as l}from"./p-BKP-F1qP.js";import{A as u,a as d,i as f}from"./p-CXgom82_.js";import{g as m}from"./p-BSr8e18S.js";import{t as p}from"./p-Cjg0wpDG.js";import{b as v}from"./p-B3tdsiZv.js";import{c as b}from"./p-vN03FcXN.js";import{d as g}from"./p-ClDhNt_H.js";import{d as j}from"./p-BNoNH6m-.js";import{d as w}from"./p-DRXiDAHW.js";const C=a(n,["_S","_M","_L"]);const A={root:"gov-form-range",fill:"gov-form-range--fill",input:"gov-form-range--input"};const y=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.size="m";this.tooltip=false;this.input=false;this.required=false;this.disabled=false;this.inheritedAttributes={};this.h=h(this.host);this.f=m(this.h);this.inputId=b("GovInput")}validateSize(t){l(C,t,A.root)}watchValue(){this.controlOutputPosition()}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid))}get getThumbWidth(){const t=window.getComputedStyle(this.inputRef);return parseFloat(t.getPropertyValue("--thumb-size"))||1}controlOutputPosition(){const t=+this.value;const s=+this.inputRef.min;const i=+this.inputRef.max;const e=this.getThumbWidth*16;const o=this.inputRef.offsetWidth;const a=(t-s)/(i-s)*100;let n=a/100*(o-e)+e/2;if(this.outputRef){this.outputRef.textContent=this.value;const t=this.outputRef.offsetWidth/2;this.outputRef.style.left=`${n-t}px`}if(this.fillRef){this.fillRef.style.width=`${n}px`}}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=f(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));p(this.controlOutputPosition.bind(this))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){return e(o,{key:"28444cac3f85772d0efb301cb43219c184f8f2fe",class:A.root,size:this.size},this.h.hasSlot("prefix")&&e("slot",{key:"3ec11551a934f90dd8ee821b11e626a07b865ed0",name:"prefix"}),e("span",{key:"63ac5b2b977124208fe55f237d378cbb7d20e72f",class:"element"},e("input",Object.assign({key:"802a3145c61e9074733e80ae5a66094ae0b9657d",type:"range",ref:t=>this.inputRef=t,onInput:this.onInputHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),id:this.identifier||this.inputId,name:this.name,min:this.min,max:this.max,step:this.step,list:this.listIdentifier,value:this.value,required:this.required,disabled:this.disabled},this.inheritedAttributes,{"aria-required":c(this.required),"aria-invalid":c(this.invalid),"aria-disabled":c(this.disabled)})),e("div",{key:"3aa0f6ab956c1d3f58d256b137dc4bde129d2eba",class:A.fill,ref:t=>this.fillRef=t}),this.tooltip?e("output",{htmlFor:this.name,ref:t=>this.outputRef=t},this.value):null,e("slot",{key:"b71ca566187911623048a030870330d0b42ae1fd",name:"datalist"})),this.h.hasSlot("sufix")&&e("slot",{key:"18e53573e7b90cba853deead846b30325727e3d1",name:"sufix"}),this.input?e("gov-form-input",Object.assign({"on-gov-input":this.onCustomInputHandler.bind(this),class:A.input,size:this.size,value:this.value,disabled:this.disabled},this.inheritedAttributes)):null)}onCustomInputHandler(t){const s=t.target.value;if(this.step&&v(+this.step)){const i=+s;const e=+this.min;const o=+this.max;const a=+this.step;if(isNaN(i)){return false}if(i<e||i>o){return false}const n=i-e;if(n%a!==0){return false}this.value=s;this.govInput.emit({component:A.root,value:this.value,originalEvent:t})}}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:A.root,value:this.value,originalEvent:t})}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:A.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:A.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[4,"gov-form-range",{size:[1],value:[1537],identifier:[1],name:[1],min:[8],max:[8],step:[8],tooltip:[4],input:[4],listIdentifier:[1,"list-identifier"],required:[516],success:[516],invalid:[516],disabled:[516],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-range","gov-button","gov-form-input","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-range":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){g()}break;case"gov-form-input":if(!customElements.get(t)){j()}break;case"gov-icon":if(!customElements.get(t)){w()}break}}))}k();const x=y;const z=k;export{x as GovFormRange,z as defineCustomElement};
1
+ import{p as t,H as s,c as i,h as e,a as o}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{g as r,t as h,b as c}from"./p-BHRF-5cf.js";import{v as l}from"./p-BKP-F1qP.js";import{A as u,a as d,i as f}from"./p-CXgom82_.js";import{g as m}from"./p-BSr8e18S.js";import{t as p}from"./p-Cjg0wpDG.js";import{b as v}from"./p-B3tdsiZv.js";import{c as b}from"./p-vN03FcXN.js";import{d as g}from"./p-o4vVG5sG.js";import{d as j}from"./p-Dw1o8KoZ.js";import{d as w}from"./p-Dj-FiQ37.js";const C=a(n,["_S","_M","_L"]);const A={root:"gov-form-range",fill:"gov-form-range--fill",input:"gov-form-range--input"};const y=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.size="m";this.tooltip=false;this.input=false;this.required=false;this.disabled=false;this.inheritedAttributes={};this.h=r(this.host);this.f=m(this.h);this.inputId=b("GovInput")}validateSize(t){l(C,t,A.root)}watchValue(){this.controlOutputPosition()}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",h(this.success));this.f.passAttrToControl("disabled",h(this.disabled));this.f.passAttrToControl("invalid",h(this.invalid))}get getThumbWidth(){const t=window.getComputedStyle(this.inputRef);return parseFloat(t.getPropertyValue("--thumb-size"))||1}controlOutputPosition(){const t=+this.value;const s=+this.inputRef.min;const i=+this.inputRef.max;const e=this.getThumbWidth*16;const o=this.inputRef.offsetWidth;const a=(t-s)/(i-s)*100;let n=a/100*(o-e)+e/2;if(this.outputRef){this.outputRef.textContent=this.value;const t=this.outputRef.offsetWidth/2;this.outputRef.style.left=`${n-t}px`}if(this.fillRef){this.fillRef.style.width=`${n}px`}}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=f(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));p(this.controlOutputPosition.bind(this))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){return e(o,{key:"28444cac3f85772d0efb301cb43219c184f8f2fe",class:A.root,size:this.size},this.h.hasSlot("prefix")&&e("slot",{key:"3ec11551a934f90dd8ee821b11e626a07b865ed0",name:"prefix"}),e("span",{key:"63ac5b2b977124208fe55f237d378cbb7d20e72f",class:"element"},e("input",Object.assign({key:"802a3145c61e9074733e80ae5a66094ae0b9657d",type:"range",ref:t=>this.inputRef=t,onInput:this.onInputHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),id:this.identifier||this.inputId,name:this.name,min:this.min,max:this.max,step:this.step,list:this.listIdentifier,value:this.value,required:this.required,disabled:this.disabled},this.inheritedAttributes,{"aria-required":c(this.required),"aria-invalid":c(this.invalid),"aria-disabled":c(this.disabled)})),e("div",{key:"3aa0f6ab956c1d3f58d256b137dc4bde129d2eba",class:A.fill,ref:t=>this.fillRef=t}),this.tooltip?e("output",{htmlFor:this.name,ref:t=>this.outputRef=t},this.value):null,e("slot",{key:"b71ca566187911623048a030870330d0b42ae1fd",name:"datalist"})),this.h.hasSlot("sufix")&&e("slot",{key:"18e53573e7b90cba853deead846b30325727e3d1",name:"sufix"}),this.input?e("gov-form-input",Object.assign({"on-gov-input":this.onCustomInputHandler.bind(this),class:A.input,size:this.size,value:this.value,disabled:this.disabled},this.inheritedAttributes)):null)}onCustomInputHandler(t){const s=t.target.value;if(this.step&&v(+this.step)){const i=+s;const e=+this.min;const o=+this.max;const a=+this.step;if(isNaN(i)){return false}if(i<e||i>o){return false}const n=i-e;if(n%a!==0){return false}this.value=s;this.govInput.emit({component:A.root,value:this.value,originalEvent:t})}}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:A.root,value:this.value,originalEvent:t})}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:A.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:A.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[4,"gov-form-range",{size:[1],value:[1537],identifier:[1],name:[1],min:[8],max:[8],step:[8],tooltip:[4],input:[4],listIdentifier:[1,"list-identifier"],required:[516],success:[516],invalid:[516],disabled:[516],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],value:["watchValue"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-range","gov-button","gov-form-input","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-range":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){g()}break;case"gov-form-input":if(!customElements.get(t)){j()}break;case"gov-icon":if(!customElements.get(t)){w()}break}}))}k();const x=y;const z=k;export{x as GovFormRange,z as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-range.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-DmK9qaKH.js";const t=o;const a=s;export{t as GovFormSelect,a as defineCustomElement};
1
+ import{G as o,d as s}from"./p-DV0Pdd1S.js";const t=o;const d=s;export{t as GovFormSelect,d as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-select.js.map
@@ -1,2 +1,2 @@
1
- import{p as i,H as s,c as t,h as e,a as h}from"./index.js";import{c as a}from"./p-vN03FcXN.js";import{v as n}from"./p-BKP-F1qP.js";import{g as o,n as c,o as r}from"./p-BSr8e18S.js";import{g as l,t as d,b as m}from"./p-BHRF-5cf.js";import{F as u}from"./p-5itQzbON.js";import{A as p,a as b,i as v}from"./p-CXgom82_.js";import{d as f}from"./p-DRXiDAHW.js";const g=i(class i extends s{constructor(){super();this.__registerHost();this.govFocus=t(this,"gov-focus");this.govBlur=t(this,"gov-blur");this.govChange=t(this,"gov-change");this.hydrated=false;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.size="m";this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=l(this.host);this.f=o(this.h)}validateSize(i){n(r,i,c.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new p(this.host,((i,s)=>{this.onAriaAttributeChange(i,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=v(this.host)}disconnectedCallback(){var i;(i=this.attributeObserver)===null||i===void 0?void 0:i.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(i,s){this.host.removeAttribute(i);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[i]:s})}render(){const i=i=>{if(this.noLabel){return e("label",{class:c.label},i)}return i};const s=!this.host.querySelector('[slot="label"]');const t=`${this.h.classes(c.root)}${s?` ${c.noLabel}`:""}`;return e(h,{class:t,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},i(e(u,null,e("input",Object.assign({class:c.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:i=>this.inputRef=i,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("span",{class:c.indicator},this.checked&&e("gov-icon",{name:"check-lg",type:"components"})),e("slot",{name:"label"})))))}onClickHandler(i){i.stopPropagation()}onFocusHandler(i){i.stopPropagation();this.govFocus.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onBlurHandler(i){i.stopPropagation();this.govBlur.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onChangeHandler(i){this.checked=i.target.checked;i.stopPropagation();this.govChange.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}},[4,"gov-form-switch",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[513],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}]);function k(){if(typeof customElements==="undefined"){return}const i=["gov-form-switch","gov-icon"];i.forEach((i=>{switch(i){case"gov-form-switch":if(!customElements.get(i)){customElements.define(i,g)}break;case"gov-icon":if(!customElements.get(i)){f()}break}}))}k();const w=g;const j=k;export{w as GovFormSwitch,j as defineCustomElement};
1
+ import{p as i,H as s,c as t,h as e,a as h}from"./index.js";import{c as a}from"./p-vN03FcXN.js";import{v as n}from"./p-BKP-F1qP.js";import{g as o,n as c,o as r}from"./p-BSr8e18S.js";import{g as l,t as d,b as m}from"./p-BHRF-5cf.js";import{F as u}from"./p-5itQzbON.js";import{A as p,a as b,i as v}from"./p-CXgom82_.js";import{d as f}from"./p-Dj-FiQ37.js";const g=i(class i extends s{constructor(){super();this.__registerHost();this.govFocus=t(this,"gov-focus");this.govBlur=t(this,"gov-blur");this.govChange=t(this,"gov-change");this.hydrated=false;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.size="m";this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=l(this.host);this.f=o(this.h)}validateSize(i){n(r,i,c.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",d(this.invalid));this.f.passAttrToControl("disabled",d(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new p(this.host,((i,s)=>{this.onAriaAttributeChange(i,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=v(this.host)}disconnectedCallback(){var i;(i=this.attributeObserver)===null||i===void 0?void 0:i.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(i,s){this.host.removeAttribute(i);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[i]:s})}render(){const i=i=>{if(this.noLabel){return e("label",{class:c.label},i)}return i};const s=!this.host.querySelector('[slot="label"]');const t=`${this.h.classes(c.root)}${s?` ${c.noLabel}`:""}`;return e(h,{class:t,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:m(this.invalid)},i(e(u,null,e("input",Object.assign({class:c.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:i=>this.inputRef=i,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":m(this.required),"aria-invalid":m(this.invalid),"aria-disabled":m(this.disabled)})),e("span",null,e("span",{class:c.indicator},this.checked&&e("gov-icon",{name:"check-lg",type:"components"})),e("slot",{name:"label"})))))}onClickHandler(i){i.stopPropagation()}onFocusHandler(i){i.stopPropagation();this.govFocus.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onBlurHandler(i){i.stopPropagation();this.govBlur.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onChangeHandler(i){this.checked=i.target.checked;i.stopPropagation();this.govChange.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}},[4,"gov-form-switch",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[513],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}]);function k(){if(typeof customElements==="undefined"){return}const i=["gov-form-switch","gov-icon"];i.forEach((i=>{switch(i){case"gov-form-switch":if(!customElements.get(i)){customElements.define(i,g)}break;case"gov-icon":if(!customElements.get(i)){f()}break}}))}k();const w=g;const j=k;export{w as GovFormSwitch,j as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-switch.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-DRXiDAHW.js";const t=o;const p=s;export{t as GovIcon,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-Dj-FiQ37.js";const t=o;const p=s;export{t as GovIcon,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-icon.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as e,h as o,a as i}from"./index.js";import{g as a,t as n}from"./p-BHRF-5cf.js";import{F as c}from"./p-5itQzbON.js";import{v as l}from"./p-BKP-F1qP.js";import{C as r}from"./p-U40vKHrs.js";import{p as h}from"./p-CQvUntGY.js";import{A as d,a as b,i as f}from"./p-CXgom82_.js";import{d as m}from"./p-ClDhNt_H.js";import{d as v}from"./p-DRXiDAHW.js";const p=h(r,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var g;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(g||(g={}));const u={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const y=t(class t extends s{constructor(){super();this.__registerHost();this.govClose=e(this,"gov-close");this.hydrated=false;this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){l(p,t,u.root)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}connectedCallback(){this.hydrated=true}render(){const t=o("gov-button",{key:"c52201d2fd9a489e8eb152e8f7b3080cc9d347f0",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:u.close},o("gov-icon",{key:"c5d79b9980d755afae94643836d58ab2dd5b4e4f",name:"x-lg",type:"components"}));return o(i,{key:"f7c79cc67ee83527ff3c56d8e96f325b5366154f",class:this.h.classes(u.root),color:this.color,type:this.type,hydrated:this.hydrated},o("section",Object.assign({key:"dceb21332d31d55cb2f63d078efc5284439978ae",class:u.section},this.inheritedAttributes,{role:this.role}),this.h.hasSlot("icon")&&o("span",{key:"5dcf6a77672669228e8b94b7c39141624706254b"},o("slot",{key:"b158350430cf7249f9f7ea59fbf675879a195c39",name:"icon"})),o("div",{key:"17894bba1c6538d205a64e055aa6ee82825176a0",class:u.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:u.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:u.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-infobar",{color:[1],type:[1],role:[1],accessibleCloseLabel:[1,"accessible-close-label"],accessibleToggleLabel:[1,"accessible-toggle-label"],closable:[4],toggleContent:[32],inheritedAttributes:[32]},undefined,{color:["validateColor"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-infobar","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-infobar":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}C();const k=y;const j=C;export{k as GovInfobar,j as defineCustomElement};
1
+ import{p as t,H as s,c as e,h as o,a as i}from"./index.js";import{g as a,t as n}from"./p-BHRF-5cf.js";import{F as c}from"./p-5itQzbON.js";import{v as l}from"./p-BKP-F1qP.js";import{C as r}from"./p-U40vKHrs.js";import{p as h}from"./p-CQvUntGY.js";import{A as d,a as b,i as f}from"./p-CXgom82_.js";import{d as m}from"./p-o4vVG5sG.js";import{d as v}from"./p-Dj-FiQ37.js";const p=h(r,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var g;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(g||(g={}));const u={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const y=t(class t extends s{constructor(){super();this.__registerHost();this.govClose=e(this,"gov-close");this.hydrated=false;this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){l(p,t,u.root)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}connectedCallback(){this.hydrated=true}render(){const t=o("gov-button",{key:"c52201d2fd9a489e8eb152e8f7b3080cc9d347f0",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:u.close},o("gov-icon",{key:"c5d79b9980d755afae94643836d58ab2dd5b4e4f",name:"x-lg",type:"components"}));return o(i,{key:"f7c79cc67ee83527ff3c56d8e96f325b5366154f",class:this.h.classes(u.root),color:this.color,type:this.type,hydrated:this.hydrated},o("section",Object.assign({key:"dceb21332d31d55cb2f63d078efc5284439978ae",class:u.section},this.inheritedAttributes,{role:this.role}),this.h.hasSlot("icon")&&o("span",{key:"5dcf6a77672669228e8b94b7c39141624706254b"},o("slot",{key:"b158350430cf7249f9f7ea59fbf675879a195c39",name:"icon"})),o("div",{key:"17894bba1c6538d205a64e055aa6ee82825176a0",class:u.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:u.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:u.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-infobar",{color:[1],type:[1],role:[1],accessibleCloseLabel:[1,"accessible-close-label"],accessibleToggleLabel:[1,"accessible-toggle-label"],closable:[4],toggleContent:[32],inheritedAttributes:[32]},undefined,{color:["validateColor"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-infobar","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-infobar":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}C();const k=y;const j=C;export{k as GovInfobar,j as defineCustomElement};
2
2
  //# sourceMappingURL=gov-infobar.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as s,a as i}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{g as n}from"./p-BHRF-5cf.js";import{v as c}from"./p-BKP-F1qP.js";import{i as r}from"./p-CXgom82_.js";import{d as f}from"./p-DRXiDAHW.js";const h=a(o,["_S","_M","_L"]);const l={root:"gov-link",external:"gov-link--external"};const m=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.external=false;this.truncate=false;this.inheritedAttributes={};this.h=n(this.host)}validateSize(e){c(h,e,l.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=r(this.host)}onAriaAttributeChange(e,t){this.host.removeAttribute(e);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[e]:t})}render(){return s(i,{key:"8ad1e46b293cf74570f818c0a2eebae906b59d79",class:this.h.classes(l.root),size:this.size,href:this.href,external:this.external,truncate:this.truncate},s("a",Object.assign({key:"7b2e9ca795c11167426e80a5a938ccb2153abecc",class:"element",href:this.href,target:this.external?"_blank":this.target,rel:this.external?"noreferrer":null},this.inheritedAttributes),s("slot",{key:"30f58ac9206aa7a1afa9147c8e43077d9b1cb3a8",name:"icon-start"}),s("span",{key:"f839d620a705139a1d155784ea71d954701e89ea"},s("slot",{key:"516ca9f11e1bc62638f3989a8efc0798b9a4ad2e"})),s("slot",{key:"36351fdc5c94f027f731a51608f26552a587c5d0",name:"icon-end"}),this.external&&s("gov-icon",{key:"e2433f478e1f14db8ccddf9d45c4fb0118eeb3a0",name:"box-arrow-up-right",type:"components",size:this.size,class:l.external})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-link",{size:[1],external:[4],truncate:[4],href:[1],target:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"]}]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-link","gov-icon"];e.forEach((e=>{switch(e){case"gov-link":if(!customElements.get(e)){customElements.define(e,m)}break;case"gov-icon":if(!customElements.get(e)){f()}break}}))}d();const p=m;const b=d;export{p as GovLink,b as defineCustomElement};
1
+ import{p as e,H as t,h as s,a as i}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{g as n}from"./p-BHRF-5cf.js";import{v as c}from"./p-BKP-F1qP.js";import{i as r}from"./p-CXgom82_.js";import{d as f}from"./p-Dj-FiQ37.js";const h=a(o,["_S","_M","_L"]);const l={root:"gov-link",external:"gov-link--external"};const m=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.external=false;this.truncate=false;this.inheritedAttributes={};this.h=n(this.host)}validateSize(e){c(h,e,l.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=r(this.host)}onAriaAttributeChange(e,t){this.host.removeAttribute(e);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[e]:t})}render(){return s(i,{key:"8ad1e46b293cf74570f818c0a2eebae906b59d79",class:this.h.classes(l.root),size:this.size,href:this.href,external:this.external,truncate:this.truncate},s("a",Object.assign({key:"7b2e9ca795c11167426e80a5a938ccb2153abecc",class:"element",href:this.href,target:this.external?"_blank":this.target,rel:this.external?"noreferrer":null},this.inheritedAttributes),s("slot",{key:"30f58ac9206aa7a1afa9147c8e43077d9b1cb3a8",name:"icon-start"}),s("span",{key:"f839d620a705139a1d155784ea71d954701e89ea"},s("slot",{key:"516ca9f11e1bc62638f3989a8efc0798b9a4ad2e"})),s("slot",{key:"36351fdc5c94f027f731a51608f26552a587c5d0",name:"icon-end"}),this.external&&s("gov-icon",{key:"e2433f478e1f14db8ccddf9d45c4fb0118eeb3a0",name:"box-arrow-up-right",type:"components",size:this.size,class:l.external})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-link",{size:[1],external:[4],truncate:[4],href:[1],target:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"]}]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-link","gov-icon"];e.forEach((e=>{switch(e){case"gov-link":if(!customElements.get(e)){customElements.define(e,m)}break;case"gov-icon":if(!customElements.get(e)){f()}break}}))}d();const p=m;const b=d;export{p as GovLink,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-link.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,h as s,a as t}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as i}from"./p-BcQO4NH2.js";import{g as n,p as c}from"./p-BHRF-5cf.js";import{v as d}from"./p-BKP-F1qP.js";import{d as r}from"./p-CnKqUwf9.js";import{d as m}from"./p-DRXiDAHW.js";const f=a(i,["_S","_M","_L"]);const p={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const g=e(class e extends o{constructor(){super();this.__registerHost();this.size="m";this.h=n(this.host)}validateSize(e){d(f,e,p.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(t,{key:"fd1daa910f59d6a90cd028a7973952450dcbbafd",class:this.h.classes(p.root),size:this.size},s("div",{key:"c4ce62df116e5e13a2bdb14855f6ce6b8b5fc640",class:p.content},s("gov-icon",{key:"5b31630577d8e7cde90a80829ea20b9ded0f5bb3",class:c([p.icon,"gov-spin-animation"]),name:"loader",type:"components"}),s("slot",{key:"21179ec4603daf9694a520be92c92989c99f1884"})),s("gov-backdrop",{key:"95104639ad57b91d4dcaa2df40f6203a8e13b52e",inverse:true}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-loading",{size:[1]},undefined,{size:["validateSize"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-loading","gov-backdrop","gov-icon"];e.forEach((e=>{switch(e){case"gov-loading":if(!customElements.get(e)){customElements.define(e,g)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}l();const v=g;const b=l;export{v as GovLoading,b as defineCustomElement};
1
+ import{p as e,H as o,h as s,a as t}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as i}from"./p-BcQO4NH2.js";import{g as n,p as c}from"./p-BHRF-5cf.js";import{v as d}from"./p-BKP-F1qP.js";import{d as r}from"./p-CnKqUwf9.js";import{d as m}from"./p-Dj-FiQ37.js";const f=a(i,["_S","_M","_L"]);const p={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const g=e(class e extends o{constructor(){super();this.__registerHost();this.size="m";this.h=n(this.host)}validateSize(e){d(f,e,p.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(t,{key:"fd1daa910f59d6a90cd028a7973952450dcbbafd",class:this.h.classes(p.root),size:this.size},s("div",{key:"c4ce62df116e5e13a2bdb14855f6ce6b8b5fc640",class:p.content},s("gov-icon",{key:"5b31630577d8e7cde90a80829ea20b9ded0f5bb3",class:c([p.icon,"gov-spin-animation"]),name:"loader",type:"components"}),s("slot",{key:"21179ec4603daf9694a520be92c92989c99f1884"})),s("gov-backdrop",{key:"95104639ad57b91d4dcaa2df40f6203a8e13b52e",inverse:true}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-loading",{size:[1]},undefined,{size:["validateSize"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-loading","gov-backdrop","gov-icon"];e.forEach((e=>{switch(e){case"gov-loading":if(!customElements.get(e)){customElements.define(e,g)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}l();const v=g;const b=l;export{v as GovLoading,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-loading.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as i,a}from"./index.js";import{F as o}from"./p-5itQzbON.js";import{v as n}from"./p-BKP-F1qP.js";import{S as l}from"./p-BcQO4NH2.js";import{C as r}from"./p-U40vKHrs.js";import{p as c}from"./p-CQvUntGY.js";import{g as h,p,b as g}from"./p-BHRF-5cf.js";import{c as m}from"./p-vN03FcXN.js";import{c as u}from"./p-B0hcuYXk.js";import{A as d,a as v,i as f}from"./p-CXgom82_.js";import{d as b}from"./p-ClDhNt_H.js";import{d as j}from"./p-DmK9qaKH.js";import{d as P}from"./p-DRXiDAHW.js";const y=c(l,["_S","_M"]);const S=c(r,["PRIMARY","NEUTRAL"]);var z;(function(t){t["BUTTON"]="button";t["SELECT"]="select"})(z||(z={}));const _={root:"gov-pagination",list:"gov-pagination__list",item:"gov-pagination__item",itemArrow:"gov-pagination__item--arrow",itemMore:"gov-pagination__item--more",itemSelect:"gov-pagination__item--select",inner:"gov-pagination__inner",arrow:"gov-pagination__arrow"};function k(t,e=1,s=10,i=10){const a=Math.ceil(t/s);if(e<1){e=1}else if(e>a){e=a}let o,n;if(a<=i){o=1;n=a}else{const t=Math.floor(i/2);const s=Math.ceil(i/2)-1;if(e<=t){o=1;n=i}else if(e+s>=a){o=a-i+1;n=a}else{o=e-t;n=e+s}}const l=(e-1)*s;const r=Math.min(l+s-1,t-1);const c=Array.from(Array(n+1-o).keys()).map((t=>o+t));return{totalItems:t,currentPage:e,pageSize:s,totalPages:a,startPage:o,endPage:n,startIndex:l,endIndex:r,pages:c}}const A=t(class t extends e{constructor(){super();this.__registerHost();this.govPage=s(this,"gov-page");this.type="button";this.current=1;this.total=0;this.size="m";this.color="primary";this.pageSize=10;this.maxPages=5;this.accessibleSelectLabel="Vybrat stranu";this.accessiblePageLabel="Strana";this.labelPrev="Přejít o stranu zpět";this.labelStart="Přejít na začátek";this.labelNext="Přejít na další stranu";this.labelEnd="Přejít na konec";this.inheritedAttributes={};this.h=h(this.host);this.pageSelectId=m("GovPageSelect");this.selectId=m("GovSelect")}validateType(t){n(z,t,_.root)}validateSize(t){n(y,t,_.root)}validateColor(t){n(S,t,_.root)}recalculate(){this.recalculatePagination(this.current)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.recalculatePagination(this.current);this.validateSize(this.size);this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}recalculatePagination(t){this.pagination=k(this.total,t,this.pageSize,this.maxPages)}isActivePageClass(t,e){if(this.pagination.currentPage===e){return t+" is-active"}else{return t}}prepareLinkUrl(t){if(this.link){return String(this.link).replace("{PAGE}",String(t))}return undefined}resetSelectValue(){if(this.spreadSelectRef){this.spreadSelectRef.getRef().then((t=>{t.value="..."}))}}render(){const t=(t,e,s)=>{const a=t===-1;const o=g(this.pagination.currentPage===t?true:undefined);return i("gov-button",{href:this.prepareLinkUrl(t),color:this.color,size:this.size,type:"base",disabled:a,"on-gov-click":e=>this.onClickHandler(e,t),"aria-label":s?s:t>-1?`${this.accessiblePageLabel} ${t}`:undefined,"aria-current":o,class:_.inner,focusable:true},e)};return i(a,{class:this.h.classes(_.root),type:this.type,color:this.color,size:this.size},i("nav",Object.assign({},this.inheritedAttributes),i("ul",{class:_.list},i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.currentPage>1?1:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-left",type:"components"}),this.labelStart)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.startPage<this.pagination.currentPage?this.pagination.currentPage-1:-1,i("gov-icon",{class:_.arrow,name:"chevron-left",type:"components"}),this.labelPrev)),this.type=="select"?i("li",{class:p([_.item,_.itemSelect])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,"on-gov-change":this.onSelectHandler.bind(this)},u(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:this.pagination.currentPage===t},t)))))):i(o,null,this.pagination.pages.map((e=>i("li",{class:this.isActivePageClass(_.item,e)},t(e,e,"")))),this.pagination.totalPages?i("li",{class:p([_.item,_.itemMore])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,ref:t=>this.spreadSelectRef=t,"on-gov-change":this.onSelectHandler.bind(this)},i("option",{selected:true,hidden:true},"..."),u(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:false},t)))))):null),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.currentPage+1:-1,i("gov-icon",{class:_.arrow,name:"chevron-right",type:"components"}),this.labelNext)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.totalPages:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-right",type:"components"}),this.labelEnd)))))}onClickHandler(t,e){t.stopPropagation();this.recalculatePagination(e);this.govPage.emit({component:_.root,pagination:this.pagination})}onSelectHandler(t){t.stopPropagation();const e=t.detail.value;const s=parseInt(e);this.resetSelectValue();if(isNaN(s)===false){this.recalculatePagination(s);if(this.link){window.location.href=this.prepareLinkUrl(s)}else{this.govPage.emit({component:_.root,pagination:this.pagination})}}}get host(){return this}static get watchers(){return{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}}},[0,"gov-pagination",{type:[1],current:[2],total:[2],selectIdentifier:[1,"select-identifier"],size:[1],color:[1],pageSize:[2,"page-size"],maxPages:[2,"max-pages"],link:[1],accessibleSelectLabel:[1,"accessible-select-label"],accessiblePageLabel:[1,"accessible-page-label"],labelPrev:[1,"label-prev"],labelStart:[1,"label-start"],labelNext:[1,"label-next"],labelEnd:[1,"label-end"],pagination:[32],inheritedAttributes:[32]},undefined,{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}]);function x(){if(typeof customElements==="undefined"){return}const t=["gov-pagination","gov-button","gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-pagination":if(!customElements.get(t)){customElements.define(t,A)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-select":if(!customElements.get(t)){j()}break;case"gov-icon":if(!customElements.get(t)){P()}break}}))}x();const C=A;const w=x;export{C as GovPagination,w as defineCustomElement};
1
+ import{p as t,H as e,c as s,h as i,a}from"./index.js";import{F as o}from"./p-5itQzbON.js";import{v as n}from"./p-BKP-F1qP.js";import{S as l}from"./p-BcQO4NH2.js";import{C as r}from"./p-U40vKHrs.js";import{p as c}from"./p-CQvUntGY.js";import{g as h,p,b as g}from"./p-BHRF-5cf.js";import{c as m}from"./p-vN03FcXN.js";import{c as u}from"./p-B0hcuYXk.js";import{A as d,a as v,i as f}from"./p-CXgom82_.js";import{d as b}from"./p-o4vVG5sG.js";import{d as j}from"./p-DV0Pdd1S.js";import{d as P}from"./p-Dj-FiQ37.js";const S=c(l,["_S","_M"]);const y=c(r,["PRIMARY","NEUTRAL"]);var z;(function(t){t["BUTTON"]="button";t["SELECT"]="select"})(z||(z={}));const _={root:"gov-pagination",list:"gov-pagination__list",item:"gov-pagination__item",itemArrow:"gov-pagination__item--arrow",itemMore:"gov-pagination__item--more",itemSelect:"gov-pagination__item--select",inner:"gov-pagination__inner",arrow:"gov-pagination__arrow"};function k(t,e=1,s=10,i=10){const a=Math.ceil(t/s);if(e<1){e=1}else if(e>a){e=a}let o,n;if(a<=i){o=1;n=a}else{const t=Math.floor(i/2);const s=Math.ceil(i/2)-1;if(e<=t){o=1;n=i}else if(e+s>=a){o=a-i+1;n=a}else{o=e-t;n=e+s}}const l=(e-1)*s;const r=Math.min(l+s-1,t-1);const c=Array.from(Array(n+1-o).keys()).map((t=>o+t));return{totalItems:t,currentPage:e,pageSize:s,totalPages:a,startPage:o,endPage:n,startIndex:l,endIndex:r,pages:c}}const x=t(class t extends e{constructor(){super();this.__registerHost();this.govPage=s(this,"gov-page");this.type="button";this.current=1;this.total=0;this.size="m";this.color="primary";this.pageSize=10;this.maxPages=5;this.accessibleSelectLabel="Vybrat stranu";this.accessiblePageLabel="Strana";this.labelPrev="Přejít o stranu zpět";this.labelStart="Přejít na začátek";this.labelNext="Přejít na další stranu";this.labelEnd="Přejít na konec";this.inheritedAttributes={};this.h=h(this.host);this.pageSelectId=m("GovPageSelect");this.selectId=m("GovSelect")}validateType(t){n(z,t,_.root)}validateSize(t){n(S,t,_.root)}validateColor(t){n(y,t,_.root)}recalculate(){this.recalculatePagination(this.current)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.recalculatePagination(this.current);this.validateSize(this.size);this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}recalculatePagination(t){this.pagination=k(this.total,t,this.pageSize,this.maxPages)}isActivePageClass(t,e){if(this.pagination.currentPage===e){return t+" is-active"}else{return t}}prepareLinkUrl(t){if(this.link){return String(this.link).replace("{PAGE}",String(t))}return undefined}resetSelectValue(){if(this.spreadSelectRef){this.spreadSelectRef.getRef().then((t=>{t.value="..."}))}}render(){const t=(t,e,s)=>{const a=t===-1;const o=g(this.pagination.currentPage===t?true:undefined);return i("gov-button",{href:this.prepareLinkUrl(t),color:this.color,size:this.size,type:"base",disabled:a,"on-gov-click":e=>this.onClickHandler(e,t),"aria-label":s?s:t>-1?`${this.accessiblePageLabel} ${t}`:undefined,"aria-current":o,class:_.inner,focusable:true},e)};return i(a,{class:this.h.classes(_.root),type:this.type,color:this.color,size:this.size},i("nav",Object.assign({},this.inheritedAttributes),i("ul",{class:_.list},i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.currentPage>1?1:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-left",type:"components"}),this.labelStart)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.startPage<this.pagination.currentPage?this.pagination.currentPage-1:-1,i("gov-icon",{class:_.arrow,name:"chevron-left",type:"components"}),this.labelPrev)),this.type=="select"?i("li",{class:p([_.item,_.itemSelect])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,"on-gov-change":this.onSelectHandler.bind(this)},u(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:this.pagination.currentPage===t},t)))))):i(o,null,this.pagination.pages.map((e=>i("li",{class:this.isActivePageClass(_.item,e)},t(e,e,"")))),this.pagination.totalPages?i("li",{class:p([_.item,_.itemMore])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,ref:t=>this.spreadSelectRef=t,"on-gov-change":this.onSelectHandler.bind(this)},i("option",{selected:true,hidden:true},"..."),u(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:false},t)))))):null),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.currentPage+1:-1,i("gov-icon",{class:_.arrow,name:"chevron-right",type:"components"}),this.labelNext)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.totalPages:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-right",type:"components"}),this.labelEnd)))))}onClickHandler(t,e){t.stopPropagation();this.recalculatePagination(e);this.govPage.emit({component:_.root,pagination:this.pagination})}onSelectHandler(t){t.stopPropagation();const e=t.detail.value;const s=parseInt(e);this.resetSelectValue();if(isNaN(s)===false){this.recalculatePagination(s);if(this.link){window.location.href=this.prepareLinkUrl(s)}else{this.govPage.emit({component:_.root,pagination:this.pagination})}}}get host(){return this}static get watchers(){return{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}}},[0,"gov-pagination",{type:[1],current:[2],total:[2],selectIdentifier:[1,"select-identifier"],size:[1],color:[1],pageSize:[2,"page-size"],maxPages:[2,"max-pages"],link:[1],accessibleSelectLabel:[1,"accessible-select-label"],accessiblePageLabel:[1,"accessible-page-label"],labelPrev:[1,"label-prev"],labelStart:[1,"label-start"],labelNext:[1,"label-next"],labelEnd:[1,"label-end"],pagination:[32],inheritedAttributes:[32]},undefined,{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}]);function A(){if(typeof customElements==="undefined"){return}const t=["gov-pagination","gov-button","gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-pagination":if(!customElements.get(t)){customElements.define(t,x)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-select":if(!customElements.get(t)){j()}break;case"gov-icon":if(!customElements.get(t)){P()}break}}))}A();const C=x;const w=A;export{C as GovPagination,w as defineCustomElement};
2
2
  //# sourceMappingURL=gov-pagination.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{T as r,a as n,b as h,c,d as l}from"./p-BTwdrNoS.js";import{g as d,t as f,c as p}from"./p-BHRF-5cf.js";import{h as u}from"./p-B3tdsiZv.js";import{p as b}from"./p-GYov8gU1.js";import{A as m,a as v,i as g}from"./p-CXgom82_.js";import{d as y}from"./p-BGK46VRO.js";import{d as j}from"./p-DRXiDAHW.js";const T=t(class t extends s{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change");this.triggerRefs={};this.type="text";this.size="m";this.color="primary";this.orientation="horizontal";this.direction="row";this.controllers=[];this.focusIndex=0;this.inheritedAttributes={};this.h=d(this.host)}validateType(t){a(n,t,r.root)}validateColor(t){a(h,t,r.root)}validateSize(t){a(c,t,r.root)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.prepareControllers();this.validateSize(this.size);this.inheritedAttributes=g(this.host)}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})}prepareControllers(t=false){this.controllers=[];const s=[];this.host.querySelectorAll(":scope > "+l.root).forEach((t=>{const i=Promise.all([t.getIdentifier(),t.getTriggerIdentifier(),t.getDisableState()]).then((([s,i,e])=>{const o=typeof t.getAttribute("default")==="string";const a=b(t.getAttribute("icon-start"));const r=b(t.getAttribute("icon-end"));return{label:t.getAttribute("label"),direction:t.getAttribute("direction"),contentIdentifier:s,disabled:e,triggerIdentifier:i,element:t,active:false,default:o,iconStart:a,iconEnd:r}}));s.push(i)}));Promise.all(s).then((s=>{if(t===false){let t=s.findIndex((t=>t.default));if(t===-1)t=0;this.focusIndex=t;s[t].active=true}else if(this.focusIndex>-1&&u(s,this.focusIndex)){s[this.focusIndex].active=true}const i=s.findIndex((t=>t.active&&t.disabled));if(i>-1){s[i].active=false;const t=s.findIndex((t=>!t.disabled));if(t>-1){s[t].active=true;this.focusIndex=t}}this.controllers=[...s];this.reRender()}))}setActiveByIdentifier(t){const s=[];this.controllers.map((i=>{i.active=t===i.triggerIdentifier||t===i.contentIdentifier;s.push(i)}));this.controllers=[...s]}reRender(){this.controllers.map((t=>{t.element.setActiveStatus(t.active).catch()}))}render(){return e(o,{key:"5dfd9d6ca4a17c425a96a1f766d599de80db6028",class:this.h.classes(r.root),size:this.size,color:this.color,type:this.type,direction:this.direction,onKeyDown:this.onKeydownHandler.bind(this)},e("div",Object.assign({key:"a195131ab673e7b9906777757f5c7e8c8421ddad",class:r.tabs,role:"tablist"},this.inheritedAttributes),e("ul",{key:"3dd46399f5054881f71242b2f184ebfb11fac51e",class:r.list},this.controllers.map((t=>e("li",{class:r.item},this.type=="text"?e("button",{class:r.btn,id:t.triggerIdentifier,role:"tab",type:"button",onClick:()=>this.onSelectHandler(t),disabled:t.disabled,"aria-disabled":f(t.disabled),"aria-selected":f(t.active),"aria-controls":t.contentIdentifier,tabindex:t.active&&!t.disabled?0:-1,ref:s=>this.triggerRefs[t.triggerIdentifier]=s},t.iconStart?e("gov-icon",{name:t.iconStart.name,type:t.iconStart.type}):null,t.label,t.iconEnd?e("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type}):null):e("gov-chip",{role:"tab",tag:"button",identifier:t.triggerIdentifier,"aria-selected":p(t.active),"aria-controls":t.contentIdentifier,focusable:t.active,disabled:t.disabled,color:this.color,size:this.size==="xs"?"xs":this.size==="s"?"s":"m",type:t.active?"solid":"outlined",ref:s=>this.triggerRefs[t.triggerIdentifier]=s,"on-gov-click":()=>this.onSelectHandler(t)},t.iconStart?e("gov-icon",{name:t.iconStart.name,type:t.iconStart.type,slot:"icon-start"}):null,t.label,t.iconEnd?e("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type,slot:"icon-end"}):null)))))),e("slot",{key:"5fc402a27b6236ca10c8f3370f946b7ceadb5342"}))}getCurrentTab(){return this.controllers.find((t=>t.active))||null}onSelectHandler(t){const s=this.controllers.findIndex((s=>s.triggerIdentifier===t.triggerIdentifier));this.focusIndex=s;this.setActiveByIdentifier(t.triggerIdentifier);this.reRender();this.govChange.emit(this.getCurrentTab().element)}onKeydownHandler(t){const s=t.keyCode;t.stopPropagation();this.goToPrevNext(s)}goToPrevNext(t){if([37,38,39,40].includes(t)){if(false===(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1)){return}this.controllers[this.focusIndex].active=false;if(t===39||t===40){this.focusIndex++;if(this.focusIndex>=this.controllers.length){this.focusIndex=0}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(40)}}else if(t===37||t===38){this.focusIndex--;if(this.focusIndex<0){this.focusIndex=this.controllers.length-1}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(38)}}if(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1){const t=this.controllers[this.focusIndex];t.active=true;const s=this.triggerRefs[t.triggerIdentifier];if(s.nodeName.toLowerCase()==="gov-chip"){this.triggerRefs[t.triggerIdentifier].setFocus()}else{this.triggerRefs[t.triggerIdentifier].focus()}this.controllers=[...this.controllers];this.reRender();this.govChange.emit(this.getCurrentTab().element)}}}async refresh(){this.prepareControllers()}async currentTab(){return this.getCurrentTab().element||null}async setActiveTab(t){this.setActiveByIdentifier(t);this.reRender()}async rerender(){this.prepareControllers(true)}get host(){return this}static get watchers(){return{type:["validateType"],color:["validateColor"],size:["validateSize"]}}},[4,"gov-tabs",{type:[1],size:[1],color:[1],orientation:[1],direction:[513],controllers:[32],focusIndex:[32],inheritedAttributes:[32],refresh:[64],currentTab:[64],setActiveTab:[64],rerender:[64]},undefined,{type:["validateType"],color:["validateColor"],size:["validateSize"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-tabs","gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-tabs":if(!customElements.get(t)){customElements.define(t,T)}break;case"gov-chip":if(!customElements.get(t)){y()}break;case"gov-icon":if(!customElements.get(t)){j()}break}}))}k();const x=T;const z=k;export{x as GovTabs,z as defineCustomElement};
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{T as r,a as n,b as h,c,d as l}from"./p-BTwdrNoS.js";import{g as d,t as f,c as p}from"./p-BHRF-5cf.js";import{h as u}from"./p-B3tdsiZv.js";import{p as b}from"./p-GYov8gU1.js";import{A as m,a as v,i as g}from"./p-CXgom82_.js";import{d as y}from"./p-NU_8kxGz.js";import{d as j}from"./p-Dj-FiQ37.js";const k=t(class t extends s{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change");this.triggerRefs={};this.type="text";this.size="m";this.color="primary";this.orientation="horizontal";this.direction="row";this.controllers=[];this.focusIndex=0;this.inheritedAttributes={};this.h=d(this.host)}validateType(t){a(n,t,r.root)}validateColor(t){a(h,t,r.root)}validateSize(t){a(c,t,r.root)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.prepareControllers();this.validateSize(this.size);this.inheritedAttributes=g(this.host)}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})}prepareControllers(t=false){this.controllers=[];const s=[];this.host.querySelectorAll(":scope > "+l.root).forEach((t=>{const i=Promise.all([t.getIdentifier(),t.getTriggerIdentifier(),t.getDisableState()]).then((([s,i,e])=>{const o=typeof t.getAttribute("default")==="string";const a=b(t.getAttribute("icon-start"));const r=b(t.getAttribute("icon-end"));return{label:t.getAttribute("label"),direction:t.getAttribute("direction"),contentIdentifier:s,disabled:e,triggerIdentifier:i,element:t,active:false,default:o,iconStart:a,iconEnd:r}}));s.push(i)}));Promise.all(s).then((s=>{if(t===false){let t=s.findIndex((t=>t.default));if(t===-1)t=0;this.focusIndex=t;s[t].active=true}else if(this.focusIndex>-1&&u(s,this.focusIndex)){s[this.focusIndex].active=true}const i=s.findIndex((t=>t.active&&t.disabled));if(i>-1){s[i].active=false;const t=s.findIndex((t=>!t.disabled));if(t>-1){s[t].active=true;this.focusIndex=t}}this.controllers=[...s];this.reRender()}))}setActiveByIdentifier(t){const s=[];this.controllers.map((i=>{i.active=t===i.triggerIdentifier||t===i.contentIdentifier;s.push(i)}));this.controllers=[...s]}reRender(){this.controllers.map((t=>{t.element.setActiveStatus(t.active).catch()}))}render(){return e(o,{key:"5dfd9d6ca4a17c425a96a1f766d599de80db6028",class:this.h.classes(r.root),size:this.size,color:this.color,type:this.type,direction:this.direction,onKeyDown:this.onKeydownHandler.bind(this)},e("div",Object.assign({key:"a195131ab673e7b9906777757f5c7e8c8421ddad",class:r.tabs,role:"tablist"},this.inheritedAttributes),e("ul",{key:"3dd46399f5054881f71242b2f184ebfb11fac51e",class:r.list},this.controllers.map((t=>e("li",{class:r.item},this.type=="text"?e("button",{class:r.btn,id:t.triggerIdentifier,role:"tab",type:"button",onClick:()=>this.onSelectHandler(t),disabled:t.disabled,"aria-disabled":f(t.disabled),"aria-selected":f(t.active),"aria-controls":t.contentIdentifier,tabindex:t.active&&!t.disabled?0:-1,ref:s=>this.triggerRefs[t.triggerIdentifier]=s},t.iconStart?e("gov-icon",{name:t.iconStart.name,type:t.iconStart.type}):null,t.label,t.iconEnd?e("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type}):null):e("gov-chip",{role:"tab",tag:"button",identifier:t.triggerIdentifier,"aria-selected":p(t.active),"aria-controls":t.contentIdentifier,focusable:t.active,disabled:t.disabled,color:this.color,size:this.size==="xs"?"xs":this.size==="s"?"s":"m",type:t.active?"solid":"outlined",ref:s=>this.triggerRefs[t.triggerIdentifier]=s,"on-gov-click":()=>this.onSelectHandler(t)},t.iconStart?e("gov-icon",{name:t.iconStart.name,type:t.iconStart.type,slot:"icon-start"}):null,t.label,t.iconEnd?e("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type,slot:"icon-end"}):null)))))),e("slot",{key:"5fc402a27b6236ca10c8f3370f946b7ceadb5342"}))}getCurrentTab(){return this.controllers.find((t=>t.active))||null}onSelectHandler(t){const s=this.controllers.findIndex((s=>s.triggerIdentifier===t.triggerIdentifier));this.focusIndex=s;this.setActiveByIdentifier(t.triggerIdentifier);this.reRender();this.govChange.emit(this.getCurrentTab().element)}onKeydownHandler(t){const s=t.keyCode;t.stopPropagation();this.goToPrevNext(s)}goToPrevNext(t){if([37,38,39,40].includes(t)){if(false===(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1)){return}this.controllers[this.focusIndex].active=false;if(t===39||t===40){this.focusIndex++;if(this.focusIndex>=this.controllers.length){this.focusIndex=0}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(40)}}else if(t===37||t===38){this.focusIndex--;if(this.focusIndex<0){this.focusIndex=this.controllers.length-1}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(38)}}if(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1){const t=this.controllers[this.focusIndex];t.active=true;const s=this.triggerRefs[t.triggerIdentifier];if(s.nodeName.toLowerCase()==="gov-chip"){this.triggerRefs[t.triggerIdentifier].setFocus()}else{this.triggerRefs[t.triggerIdentifier].focus()}this.controllers=[...this.controllers];this.reRender();this.govChange.emit(this.getCurrentTab().element)}}}async refresh(){this.prepareControllers()}async currentTab(){return this.getCurrentTab().element||null}async setActiveTab(t){this.setActiveByIdentifier(t);this.reRender()}async rerender(){this.prepareControllers(true)}get host(){return this}static get watchers(){return{type:["validateType"],color:["validateColor"],size:["validateSize"]}}},[4,"gov-tabs",{type:[1],size:[1],color:[1],orientation:[1],direction:[513],controllers:[32],focusIndex:[32],inheritedAttributes:[32],refresh:[64],currentTab:[64],setActiveTab:[64],rerender:[64]},undefined,{type:["validateType"],color:["validateColor"],size:["validateSize"]}]);function x(){if(typeof customElements==="undefined"){return}const t=["gov-tabs","gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-tabs":if(!customElements.get(t)){customElements.define(t,k)}break;case"gov-chip":if(!customElements.get(t)){y()}break;case"gov-icon":if(!customElements.get(t)){j()}break}}))}x();const T=k;const z=x;export{T as GovTabs,z as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tabs.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,h as o,a as s}from"./index.js";import{g as a}from"./p-BHRF-5cf.js";import{v as i}from"./p-BKP-F1qP.js";import{a as c,c as n}from"./p-CNqoJU2V.js";import{p as r}from"./p-CQvUntGY.js";import{S as d}from"./p-BcQO4NH2.js";import{p as f}from"./p-GYov8gU1.js";import{d as m}from"./p-DRXiDAHW.js";const l=r(d,["_XS","_S","_M"]);var p;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(p||(p={}));const h={root:"gov-tag"};const b=t(class t extends e{constructor(){super();this.__registerHost();this.size=l._S;this.color=c.PRIMARY;this.expanded=false;this.h=a(this.host)}validateColor(t){i(c,t,h.root)}validateSize(t){i(n,t,h.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size)}render(){const t=f(this.iconStart);const e=f(this.iconEnd);return o(s,{key:"9ed31c6f9d34001618223db4d842ee55611f8896",class:this.h.classes(h.root),color:this.color,size:this.size,type:this.type},o("span",{key:"617d6cf19dc34385815916b6656f48c14428bff6",class:"element"},o("slot",{key:"d95d40e8a9de633865f174821050ab57174b435f",name:"icon-start"},t&&o("gov-icon",{key:"95a813406d45b8a69f4d4804f4063a7fa88d1038",type:t.type,name:t.name})),o("slot",{key:"4e4ad28e073bc933e3a193283e46d50f413bcf62"}),o("slot",{key:"0642ab987098007d4335d8aed281f4cd431bfe10",name:"icon-end"},e&&o("gov-icon",{key:"00ea783ae37eb0a4461cb97e15cdc9efc332bb27",type:e.type,name:e.name}))))}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-tag",{iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[513],color:[513],type:[513],expanded:[516]},undefined,{color:["validateColor"],size:["validateSize"]}]);function v(){if(typeof customElements==="undefined"){return}const t=["gov-tag","gov-icon"];t.forEach((t=>{switch(t){case"gov-tag":if(!customElements.get(t)){customElements.define(t,b)}break;case"gov-icon":if(!customElements.get(t)){m()}break}}))}v();const g=b;const u=v;export{g as GovTag,u as defineCustomElement};
1
+ import{p as t,H as e,h as o,a as s}from"./index.js";import{g as a}from"./p-BHRF-5cf.js";import{v as i}from"./p-BKP-F1qP.js";import{a as c,c as n}from"./p-CNqoJU2V.js";import{p as r}from"./p-CQvUntGY.js";import{S as d}from"./p-BcQO4NH2.js";import{p as f}from"./p-GYov8gU1.js";import{d as m}from"./p-Dj-FiQ37.js";const l=r(d,["_XS","_S","_M"]);var p;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(p||(p={}));const h={root:"gov-tag"};const b=t(class t extends e{constructor(){super();this.__registerHost();this.size=l._S;this.color=c.PRIMARY;this.expanded=false;this.h=a(this.host)}validateColor(t){i(c,t,h.root)}validateSize(t){i(n,t,h.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size)}render(){const t=f(this.iconStart);const e=f(this.iconEnd);return o(s,{key:"9ed31c6f9d34001618223db4d842ee55611f8896",class:this.h.classes(h.root),color:this.color,size:this.size,type:this.type},o("span",{key:"617d6cf19dc34385815916b6656f48c14428bff6",class:"element"},o("slot",{key:"d95d40e8a9de633865f174821050ab57174b435f",name:"icon-start"},t&&o("gov-icon",{key:"95a813406d45b8a69f4d4804f4063a7fa88d1038",type:t.type,name:t.name})),o("slot",{key:"4e4ad28e073bc933e3a193283e46d50f413bcf62"}),o("slot",{key:"0642ab987098007d4335d8aed281f4cd431bfe10",name:"icon-end"},e&&o("gov-icon",{key:"00ea783ae37eb0a4461cb97e15cdc9efc332bb27",type:e.type,name:e.name}))))}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-tag",{iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[513],color:[513],type:[513],expanded:[516]},undefined,{color:["validateColor"],size:["validateSize"]}]);function v(){if(typeof customElements==="undefined"){return}const t=["gov-tag","gov-icon"];t.forEach((t=>{switch(t){case"gov-tag":if(!customElements.get(t)){customElements.define(t,b)}break;case"gov-icon":if(!customElements.get(t)){m()}break}}))}v();const g=b;const u=v;export{g as GovTag,u as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tag.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as i,a}from"./index.js";import{g as o}from"./p-BHRF-5cf.js";import{p as h}from"./p-CQvUntGY.js";import{S as c}from"./p-BcQO4NH2.js";import{i as n}from"./p-DrPpH_9c.js";import{v as r}from"./p-BKP-F1qP.js";import{d as l,s as m,g as d}from"./p-DRXiDAHW.js";const f=h(c,["_XS","_S","_M","_L","_XL"]);const p={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",label:"gov-theme-switch__label",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark"};const b="data-theme";var g;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(g||(g={}));const u=t(class t extends e{constructor(){super();this.__registerHost();this.govChange=s(this,"gov-change");this.size="m";this.displayLabel=false;this.ariaLabelLight="Přepnout na tmavý mód";this.ariaLabelDark="Přepnout na světlý mód";this.labelLight="Světlý mód";this.labelDark="Tmavý mód";this.theme=g.auto;this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:p.root,state:this.theme,ref:this.host})};this.h=o(this.host)}validateSize(t){r(f,t,p.root)}watchTheme(t){this.htmlElement.setAttribute(b,t);this.htmlElement.classList.remove(...Object.keys(g));this.htmlElement.classList.add(t);m(b,t)}get storageValue(){return d(b)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return n&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(g);let e=this.storageValue;const s=this.htmlElement.getAttribute(b);if(e&&t.includes(e)){this.theme=e}else if(s&&t.includes(s)){this.theme=s}else{this.theme=g.auto}}render(){let t=this.theme===g.dark;if(this.theme===g.auto){t=this.isSystemPrefersColorDark}return i(a,{key:"3015dd1049b1c9a2b5902d1d56c8b3872a275c10",class:this.h.classes(p.root),theme:t?g.dark:g.light,size:this.size},i("button",{key:"ca4b331189fca45f66c4eef138db66482add2834",onClick:()=>this.setThemeState(t?g.light:g.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},i("span",{key:"ed2a779f1e9fe1a0e722439598c9a413e9b39071"},i("span",{key:"f58e164a6b1b389ecfe93f7d2673ea5749a8fd96",class:p.indicator},g.light&&i("gov-icon",{key:"24663f2d33ea2bead59df37fef9932e549070ce4",name:"sun",class:p.iconLight,type:"components"}),g.dark&&i("gov-icon",{key:"a4482c64c35b9c70122a687aca4bb90bfa1000f3",name:"moon",class:p.iconDark,type:"components"})),this.displayLabel?i("span",{class:p.label},t?this.labelDark:this.labelLight):null)))}get host(){return this}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}},[0,"gov-theme-switch",{size:[1],displayLabel:[4,"display-label"],ariaLabelLight:[1,"aria-label-light"],ariaLabelDark:[1,"aria-label-dark"],labelLight:[1,"label-light"],labelDark:[1,"label-dark"],theme:[32]},undefined,{size:["validateSize"],theme:["watchTheme"]}]);function v(){if(typeof customElements==="undefined"){return}const t=["gov-theme-switch","gov-icon"];t.forEach((t=>{switch(t){case"gov-theme-switch":if(!customElements.get(t)){customElements.define(t,u)}break;case"gov-icon":if(!customElements.get(t)){l()}break}}))}v();const k=u;const w=v;export{k as GovThemeSwitch,w as defineCustomElement};
1
+ import{p as t,H as e,c as s,h as i,a}from"./index.js";import{g as o}from"./p-BHRF-5cf.js";import{p as h}from"./p-CQvUntGY.js";import{S as c}from"./p-BcQO4NH2.js";import{i as n}from"./p-DrPpH_9c.js";import{v as r}from"./p-BKP-F1qP.js";import{d as l,s as m,g as d}from"./p-Dj-FiQ37.js";const f=h(c,["_XS","_S","_M","_L","_XL"]);const p={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",label:"gov-theme-switch__label",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark"};const b="data-theme";var g;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(g||(g={}));const u=t(class t extends e{constructor(){super();this.__registerHost();this.govChange=s(this,"gov-change");this.size="m";this.displayLabel=false;this.ariaLabelLight="Přepnout na tmavý mód";this.ariaLabelDark="Přepnout na světlý mód";this.labelLight="Světlý mód";this.labelDark="Tmavý mód";this.theme=g.auto;this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:p.root,state:this.theme,ref:this.host})};this.h=o(this.host)}validateSize(t){r(f,t,p.root)}watchTheme(t){this.htmlElement.setAttribute(b,t);this.htmlElement.classList.remove(...Object.keys(g));this.htmlElement.classList.add(t);m(b,t)}get storageValue(){return d(b)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return n&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(g);let e=this.storageValue;const s=this.htmlElement.getAttribute(b);if(e&&t.includes(e)){this.theme=e}else if(s&&t.includes(s)){this.theme=s}else{this.theme=g.auto}}render(){let t=this.theme===g.dark;if(this.theme===g.auto){t=this.isSystemPrefersColorDark}return i(a,{key:"3015dd1049b1c9a2b5902d1d56c8b3872a275c10",class:this.h.classes(p.root),theme:t?g.dark:g.light,size:this.size},i("button",{key:"ca4b331189fca45f66c4eef138db66482add2834",onClick:()=>this.setThemeState(t?g.light:g.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},i("span",{key:"ed2a779f1e9fe1a0e722439598c9a413e9b39071"},i("span",{key:"f58e164a6b1b389ecfe93f7d2673ea5749a8fd96",class:p.indicator},g.light&&i("gov-icon",{key:"24663f2d33ea2bead59df37fef9932e549070ce4",name:"sun",class:p.iconLight,type:"components"}),g.dark&&i("gov-icon",{key:"a4482c64c35b9c70122a687aca4bb90bfa1000f3",name:"moon",class:p.iconDark,type:"components"})),this.displayLabel?i("span",{class:p.label},t?this.labelDark:this.labelLight):null)))}get host(){return this}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}},[0,"gov-theme-switch",{size:[1],displayLabel:[4,"display-label"],ariaLabelLight:[1,"aria-label-light"],ariaLabelDark:[1,"aria-label-dark"],labelLight:[1,"label-light"],labelDark:[1,"label-dark"],theme:[32]},undefined,{size:["validateSize"],theme:["watchTheme"]}]);function v(){if(typeof customElements==="undefined"){return}const t=["gov-theme-switch","gov-icon"];t.forEach((t=>{switch(t){case"gov-theme-switch":if(!customElements.get(t)){customElements.define(t,u)}break;case"gov-icon":if(!customElements.get(t)){l()}break}}))}v();const k=u;const w=v;export{k as GovThemeSwitch,w as defineCustomElement};
2
2
  //# sourceMappingURL=gov-theme-switch.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as s,F as o,a as i}from"./index.js";import{p as n}from"./p-CQvUntGY.js";import{S as c}from"./p-BcQO4NH2.js";import{g as a}from"./p-BHRF-5cf.js";import{d as r}from"./p-DRXiDAHW.js";n(c,["_S","_M","_L"]);const f={root:"gov-tile",link:"gov-tile__link",content:"gov-tile__content",text:"gov-tile__text",title:"gov-tile__title",icon:"gov-tile__icon",annotation:"gov-tile__annotation"};const l=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.noBorder=false;this.h=a(this.host)}render(){return s(i,{key:"675f324a6b643d22ae4b737f2049f0f1a51e4972",class:this.h.classes(f.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},s("slot",{key:"4dc974090359d27cd89e7b7af38f56fd016608d5",name:"icon"}),s("div",{key:"9d3c42f854fe4178886d6218cc99de44c6a27335",class:f.content},s("div",{key:"97891e205f08b2b4c81110bcb7bb3c4ed48362ed",class:f.text},s("div",{key:"6446384bd51f13aff4b9ff0144a4240fe1465b8d",class:f.title},this.href?s(o,null,s("a",{href:this.href,target:this.target,class:f.link,ref:e=>this.triggerRef=e},s("slot",{name:"title"})),s("span",{class:f.icon},s("gov-icon",{name:"chevron-right",type:"components"}))):s("slot",{name:"title"})),s("div",{key:"e25fe83f7f147582005341bb951ac2221bebbfbf",class:`${f.annotation} ${this.href?`${f.annotation}--padding`:""}`},s("slot",{key:"5c87e54b826d3e4fbb8231c19e66db7961e63a60"}))),s("slot",{key:"ab53f48d63dbc279788e4f83d77beb7eaabc1425",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return this}},[4,"gov-tile",{size:[513],orientation:[1],noBorder:[4,"no-border"],href:[513],target:[1],getTriggerRef:[64]}]);function b(){if(typeof customElements==="undefined"){return}const e=["gov-tile","gov-icon"];e.forEach((e=>{switch(e){case"gov-tile":if(!customElements.get(e)){customElements.define(e,l)}break;case"gov-icon":if(!customElements.get(e)){r()}break}}))}b();const d=l;const g=b;export{d as GovTile,g as defineCustomElement};
1
+ import{p as e,H as t,h as s,F as o,a as i}from"./index.js";import{p as n}from"./p-CQvUntGY.js";import{S as c}from"./p-BcQO4NH2.js";import{g as a}from"./p-BHRF-5cf.js";import{d as r}from"./p-Dj-FiQ37.js";n(c,["_S","_M","_L"]);const f={root:"gov-tile",link:"gov-tile__link",content:"gov-tile__content",text:"gov-tile__text",title:"gov-tile__title",icon:"gov-tile__icon",annotation:"gov-tile__annotation"};const l=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.noBorder=false;this.h=a(this.host)}render(){return s(i,{key:"675f324a6b643d22ae4b737f2049f0f1a51e4972",class:this.h.classes(f.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},s("slot",{key:"4dc974090359d27cd89e7b7af38f56fd016608d5",name:"icon"}),s("div",{key:"9d3c42f854fe4178886d6218cc99de44c6a27335",class:f.content},s("div",{key:"97891e205f08b2b4c81110bcb7bb3c4ed48362ed",class:f.text},s("div",{key:"6446384bd51f13aff4b9ff0144a4240fe1465b8d",class:f.title},this.href?s(o,null,s("a",{href:this.href,target:this.target,class:f.link,ref:e=>this.triggerRef=e},s("slot",{name:"title"})),s("span",{class:f.icon},s("gov-icon",{name:"chevron-right",type:"components"}))):s("slot",{name:"title"})),s("div",{key:"e25fe83f7f147582005341bb951ac2221bebbfbf",class:`${f.annotation} ${this.href?`${f.annotation}--padding`:""}`},s("slot",{key:"5c87e54b826d3e4fbb8231c19e66db7961e63a60"}))),s("slot",{key:"ab53f48d63dbc279788e4f83d77beb7eaabc1425",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return this}},[4,"gov-tile",{size:[513],orientation:[1],noBorder:[4,"no-border"],href:[513],target:[1],getTriggerRef:[64]}]);function b(){if(typeof customElements==="undefined"){return}const e=["gov-tile","gov-icon"];e.forEach((e=>{switch(e){case"gov-tile":if(!customElements.get(e)){customElements.define(e,l)}break;case"gov-icon":if(!customElements.get(e)){r()}break}}))}b();const d=l;const g=b;export{d as GovTile,g as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tile.js.map