@gov-design-system-ce/components 0.0.17 → 0.0.18

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 (264) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/gov-accordion-item.cjs.entry.js +5 -1
  3. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-accordion.cjs.entry.js +5 -1
  5. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-app.cjs.entry.js +11 -8
  7. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gov-backdrop.cjs.entry.js +0 -4
  9. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gov-button.cjs.entry.js +27 -13
  11. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +33 -14
  13. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  14. package/dist/cjs/gov-form-checkbox.cjs.entry.js +28 -14
  15. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  16. package/dist/cjs/gov-form-file.cjs.entry.js +57 -27
  17. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  18. package/dist/cjs/gov-form-input.cjs.entry.js +21 -5
  19. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-form-multi-select.cjs.entry.js +30 -19
  21. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-form-radio.cjs.entry.js +26 -12
  23. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-form-select.cjs.entry.js +27 -15
  25. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-form-switch.cjs.entry.js +26 -12
  27. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  29. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-modal.cjs.entry.js +1 -1
  31. package/dist/cjs/gov-modal.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-pagination.cjs.entry.js +18 -10
  33. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-prompt.cjs.entry.js +8 -8
  35. package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  37. package/dist/cjs/loader.cjs.js +1 -1
  38. package/dist/collection/components/gov-accordion/gov-accordion-item.js +9 -5
  39. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  40. package/dist/collection/components/gov-accordion/gov-accordion.js +9 -5
  41. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
  42. package/dist/collection/components/gov-accordion/gov-accordion.types.js +2 -0
  43. package/dist/collection/components/gov-accordion/gov-accordion.types.js.map +1 -0
  44. package/dist/collection/components/gov-backdrop/gov-backdrop.js +0 -22
  45. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  46. package/dist/collection/components/gov-button/gov-button.js +54 -37
  47. package/dist/collection/components/gov-button/gov-button.js.map +1 -1
  48. package/dist/collection/components/gov-button/gov-button.types.js +2 -0
  49. package/dist/collection/components/gov-button/gov-button.types.js.map +1 -0
  50. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +60 -38
  51. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  52. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -1
  53. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +61 -33
  54. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  55. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js +2 -0
  56. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.types.js.map +1 -0
  57. package/dist/collection/components/gov-form/file/gov-form-file.js +129 -59
  58. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  59. package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -1
  60. package/dist/collection/components/gov-form/input/gov-form-input.js +42 -22
  61. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  62. package/dist/collection/components/gov-form/input/gov-form-input.types.js +2 -0
  63. package/dist/collection/components/gov-form/input/gov-form-input.types.js.map +1 -0
  64. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +53 -40
  65. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  66. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js +2 -0
  67. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.types.js.map +1 -0
  68. package/dist/collection/components/gov-form/radio/gov-form-radio.js +59 -31
  69. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  70. package/dist/collection/components/gov-form/radio/gov-form-radio.types.js +2 -0
  71. package/dist/collection/components/gov-form/radio/gov-form-radio.types.js.map +1 -0
  72. package/dist/collection/components/gov-form/select/gov-form-select.js +56 -37
  73. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  74. package/dist/collection/components/gov-form/select/gov-form-select.types.js +2 -0
  75. package/dist/collection/components/gov-form/select/gov-form-select.types.js.map +1 -0
  76. package/dist/collection/components/gov-form/switch/gov-form-switch.js +59 -31
  77. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  78. package/dist/collection/components/gov-form/switch/gov-form-switch.types.js +2 -0
  79. package/dist/collection/components/gov-form/switch/gov-form-switch.types.js.map +1 -0
  80. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  81. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  82. package/dist/collection/components/gov-modal/gov-modal.js +1 -1
  83. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
  84. package/dist/collection/components/gov-pagination/gov-pagination.js +16 -13
  85. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  86. package/dist/collection/components/gov-pagination/gov-pagination.types.js +2 -0
  87. package/dist/collection/components/gov-pagination/gov-pagination.types.js.map +1 -0
  88. package/dist/collection/components/gov-promp/gov-prompt.js +18 -18
  89. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -1
  90. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  91. package/dist/collection/pages/Forms.js +3 -0
  92. package/dist/collection/pages/Forms.js.map +1 -1
  93. package/dist/collection/pages/Pagination.js +8 -8
  94. package/dist/collection/pages/Pagination.js.map +1 -1
  95. package/dist/collection/types/event.types.js +2 -0
  96. package/dist/collection/types/event.types.js.map +1 -0
  97. package/dist/collection/utils/array.utils.js +6 -1
  98. package/dist/collection/utils/array.utils.js.map +1 -1
  99. package/dist/components/gov-accordion-item.js +5 -1
  100. package/dist/components/gov-accordion-item.js.map +1 -1
  101. package/dist/components/gov-accordion.js +5 -1
  102. package/dist/components/gov-accordion.js.map +1 -1
  103. package/dist/components/gov-app.js +11 -8
  104. package/dist/components/gov-app.js.map +1 -1
  105. package/dist/components/gov-backdrop2.js +0 -5
  106. package/dist/components/gov-backdrop2.js.map +1 -1
  107. package/dist/components/gov-button2.js +27 -13
  108. package/dist/components/gov-button2.js.map +1 -1
  109. package/dist/components/gov-form-autocomplete2.js +33 -14
  110. package/dist/components/gov-form-autocomplete2.js.map +1 -1
  111. package/dist/components/gov-form-checkbox.js +29 -15
  112. package/dist/components/gov-form-checkbox.js.map +1 -1
  113. package/dist/components/gov-form-file.js +59 -27
  114. package/dist/components/gov-form-file.js.map +1 -1
  115. package/dist/components/gov-form-input2.js +22 -6
  116. package/dist/components/gov-form-input2.js.map +1 -1
  117. package/dist/components/gov-form-multi-select.js +30 -19
  118. package/dist/components/gov-form-multi-select.js.map +1 -1
  119. package/dist/components/gov-form-radio.js +27 -13
  120. package/dist/components/gov-form-radio.js.map +1 -1
  121. package/dist/components/gov-form-select2.js +28 -16
  122. package/dist/components/gov-form-select2.js.map +1 -1
  123. package/dist/components/gov-form-switch.js +27 -13
  124. package/dist/components/gov-form-switch.js.map +1 -1
  125. package/dist/components/gov-loading.js +1 -1
  126. package/dist/components/gov-loading.js.map +1 -1
  127. package/dist/components/gov-modal.js +1 -1
  128. package/dist/components/gov-modal.js.map +1 -1
  129. package/dist/components/gov-pagination.js +18 -10
  130. package/dist/components/gov-pagination.js.map +1 -1
  131. package/dist/components/gov-prompt.js +8 -8
  132. package/dist/components/gov-prompt.js.map +1 -1
  133. package/dist/components/gov-tile.js.map +1 -1
  134. package/dist/core/core.esm.js +1 -1
  135. package/dist/core/core.esm.js.map +1 -1
  136. package/dist/core/p-26260897.entry.js +2 -0
  137. package/dist/core/p-26260897.entry.js.map +1 -0
  138. package/dist/core/{p-30b162df.entry.js → p-354c6a6d.entry.js} +2 -2
  139. package/dist/core/p-354c6a6d.entry.js.map +1 -0
  140. package/dist/core/{p-cfb5cd82.entry.js → p-3a50ac4c.entry.js} +2 -2
  141. package/dist/core/p-3a50ac4c.entry.js.map +1 -0
  142. package/dist/core/p-52f2f67c.entry.js +2 -0
  143. package/dist/core/p-52f2f67c.entry.js.map +1 -0
  144. package/dist/core/{p-e3141382.entry.js → p-5e5e925d.entry.js} +2 -2
  145. package/dist/core/p-5e5e925d.entry.js.map +1 -0
  146. package/dist/core/p-67006730.entry.js.map +1 -1
  147. package/dist/core/p-724921e7.entry.js +2 -0
  148. package/dist/core/p-724921e7.entry.js.map +1 -0
  149. package/dist/core/{p-81f73a28.entry.js → p-8b2a6f87.entry.js} +2 -2
  150. package/dist/core/p-8b2a6f87.entry.js.map +1 -0
  151. package/dist/core/{p-9bdce72b.entry.js → p-8feb8960.entry.js} +2 -2
  152. package/dist/core/p-8feb8960.entry.js.map +1 -0
  153. package/dist/core/{p-bce96aac.entry.js → p-b2d1dd2a.entry.js} +2 -2
  154. package/dist/core/p-b2d1dd2a.entry.js.map +1 -0
  155. package/dist/core/{p-131c50d1.entry.js → p-b9b80796.entry.js} +2 -2
  156. package/dist/core/p-b9b80796.entry.js.map +1 -0
  157. package/dist/core/{p-b7587525.entry.js → p-bb3afae6.entry.js} +2 -2
  158. package/dist/core/p-bb3afae6.entry.js.map +1 -0
  159. package/dist/core/{p-c91928ed.entry.js → p-be799dfa.entry.js} +2 -2
  160. package/dist/core/p-be799dfa.entry.js.map +1 -0
  161. package/dist/core/{p-2426fa82.entry.js → p-c970a479.entry.js} +2 -2
  162. package/dist/core/p-c970a479.entry.js.map +1 -0
  163. package/dist/core/{p-471c0863.entry.js → p-cba27477.entry.js} +2 -2
  164. package/dist/core/p-cba27477.entry.js.map +1 -0
  165. package/dist/core/{p-8815fa81.entry.js → p-d79d0f7a.entry.js} +2 -2
  166. package/dist/core/p-d79d0f7a.entry.js.map +1 -0
  167. package/dist/core/{p-e38e0ad9.entry.js → p-e51baf04.entry.js} +2 -2
  168. package/dist/core/p-e51baf04.entry.js.map +1 -0
  169. package/dist/core/{p-0272ffa0.entry.js → p-f73d482b.entry.js} +2 -2
  170. package/dist/core/p-f73d482b.entry.js.map +1 -0
  171. package/dist/custom-elements/index.js +1 -1
  172. package/dist/custom-elements/index.js.map +1 -1
  173. package/dist/esm/core.js +1 -1
  174. package/dist/esm/gov-accordion-item.entry.js +5 -1
  175. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  176. package/dist/esm/gov-accordion.entry.js +5 -1
  177. package/dist/esm/gov-accordion.entry.js.map +1 -1
  178. package/dist/esm/gov-app.entry.js +11 -8
  179. package/dist/esm/gov-app.entry.js.map +1 -1
  180. package/dist/esm/gov-backdrop.entry.js +0 -4
  181. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  182. package/dist/esm/gov-button.entry.js +27 -13
  183. package/dist/esm/gov-button.entry.js.map +1 -1
  184. package/dist/esm/gov-form-autocomplete.entry.js +33 -14
  185. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  186. package/dist/esm/gov-form-checkbox.entry.js +28 -14
  187. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  188. package/dist/esm/gov-form-file.entry.js +57 -27
  189. package/dist/esm/gov-form-file.entry.js.map +1 -1
  190. package/dist/esm/gov-form-input.entry.js +21 -5
  191. package/dist/esm/gov-form-input.entry.js.map +1 -1
  192. package/dist/esm/gov-form-multi-select.entry.js +30 -19
  193. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  194. package/dist/esm/gov-form-radio.entry.js +26 -12
  195. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  196. package/dist/esm/gov-form-select.entry.js +27 -15
  197. package/dist/esm/gov-form-select.entry.js.map +1 -1
  198. package/dist/esm/gov-form-switch.entry.js +26 -12
  199. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  200. package/dist/esm/gov-loading.entry.js +1 -1
  201. package/dist/esm/gov-loading.entry.js.map +1 -1
  202. package/dist/esm/gov-modal.entry.js +1 -1
  203. package/dist/esm/gov-modal.entry.js.map +1 -1
  204. package/dist/esm/gov-pagination.entry.js +18 -10
  205. package/dist/esm/gov-pagination.entry.js.map +1 -1
  206. package/dist/esm/gov-prompt.entry.js +8 -8
  207. package/dist/esm/gov-prompt.entry.js.map +1 -1
  208. package/dist/esm/gov-tile.entry.js.map +1 -1
  209. package/dist/esm/loader.js +1 -1
  210. package/dist/hydrate/index.js +331 -171
  211. package/dist/stencil.config.js.map +1 -1
  212. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +2 -2
  213. package/dist/types/components/gov-accordion/gov-accordion.d.ts +2 -2
  214. package/dist/types/components/gov-accordion/gov-accordion.types.d.ts +9 -0
  215. package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +0 -4
  216. package/dist/types/components/gov-button/gov-button.d.ts +6 -5
  217. package/dist/types/components/gov-button/gov-button.types.d.ts +4 -0
  218. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +8 -8
  219. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +6 -0
  220. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +10 -7
  221. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +5 -0
  222. package/dist/types/components/gov-form/file/gov-form-file.d.ts +16 -8
  223. package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +5 -0
  224. package/dist/types/components/gov-form/input/gov-form-input.d.ts +6 -5
  225. package/dist/types/components/gov-form/input/gov-form-input.types.d.ts +4 -0
  226. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +6 -6
  227. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +8 -0
  228. package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +10 -7
  229. package/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +5 -0
  230. package/dist/types/components/gov-form/select/gov-form-select.d.ts +7 -6
  231. package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +4 -0
  232. package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +10 -7
  233. package/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +5 -0
  234. package/dist/types/components/gov-pagination/gov-pagination.d.ts +2 -1
  235. package/dist/types/components/gov-pagination/gov-pagination.types.d.ts +5 -0
  236. package/dist/types/components.d.ts +67 -50
  237. package/dist/types/types/event.types.d.ts +4 -0
  238. package/package.json +1 -1
  239. package/dist/collection/components/gov-accordion/gov-accordion-item.d.js +0 -2
  240. package/dist/collection/components/gov-accordion/gov-accordion-item.d.js.map +0 -1
  241. package/dist/collection/components/gov-form/multiselect/interfaces.js +0 -2
  242. package/dist/collection/components/gov-form/multiselect/interfaces.js.map +0 -1
  243. package/dist/core/p-0272ffa0.entry.js.map +0 -1
  244. package/dist/core/p-131c50d1.entry.js.map +0 -1
  245. package/dist/core/p-2426fa82.entry.js.map +0 -1
  246. package/dist/core/p-30b162df.entry.js.map +0 -1
  247. package/dist/core/p-337fb136.entry.js +0 -2
  248. package/dist/core/p-337fb136.entry.js.map +0 -1
  249. package/dist/core/p-402c2751.entry.js +0 -2
  250. package/dist/core/p-402c2751.entry.js.map +0 -1
  251. package/dist/core/p-405fc50f.entry.js +0 -2
  252. package/dist/core/p-405fc50f.entry.js.map +0 -1
  253. package/dist/core/p-471c0863.entry.js.map +0 -1
  254. package/dist/core/p-81f73a28.entry.js.map +0 -1
  255. package/dist/core/p-8815fa81.entry.js.map +0 -1
  256. package/dist/core/p-9bdce72b.entry.js.map +0 -1
  257. package/dist/core/p-b7587525.entry.js.map +0 -1
  258. package/dist/core/p-bce96aac.entry.js.map +0 -1
  259. package/dist/core/p-c91928ed.entry.js.map +0 -1
  260. package/dist/core/p-cfb5cd82.entry.js.map +0 -1
  261. package/dist/core/p-e3141382.entry.js.map +0 -1
  262. package/dist/core/p-e38e0ad9.entry.js.map +0 -1
  263. package/dist/types/components/gov-accordion/gov-accordion-item.d.d.ts +0 -4
  264. package/dist/types/components/gov-form/multiselect/interfaces.d.ts +0 -4
@@ -6056,7 +6056,11 @@ class GovAccordion {
6056
6056
  child.setAttribute('variant', this.variant);
6057
6057
  child.addEventListener('gov-change', (e) => {
6058
6058
  e.stopPropagation();
6059
- this.govChange.emit(e.detail);
6059
+ this.govChange.emit({
6060
+ component: AccordionClass.root,
6061
+ open: e.detail.open,
6062
+ ref: e.detail.ref
6063
+ });
6060
6064
  });
6061
6065
  });
6062
6066
  }
@@ -6138,7 +6142,11 @@ class GovAccordionItem {
6138
6142
  validateProp(AccordionVariants, newValue, AccordionItemClass.root);
6139
6143
  }
6140
6144
  emmitChange() {
6141
- this.govChange.emit({ open: this.isExpandedState, element: this.host });
6145
+ this.govChange.emit({
6146
+ open: this.isExpandedState,
6147
+ component: AccordionItemClass.root,
6148
+ ref: this.host
6149
+ });
6142
6150
  }
6143
6151
  componentWillLoad() {
6144
6152
  this.isExpandedState = this.isExpanded;
@@ -11484,6 +11492,9 @@ class FormsPage extends HTMLElement {
11484
11492
  });
11485
11493
  }
11486
11494
  if (po) {
11495
+ po.addEventListener('gov-select', function (e) {
11496
+ console.log(e);
11497
+ });
11487
11498
  po.setSearchCallback(val => {
11488
11499
  return new Promise(resolve => {
11489
11500
  setTimeout(() => {
@@ -13236,22 +13247,22 @@ class PaginationPage extends HTMLElement {
13236
13247
  this.innerHTML = `
13237
13248
  <h2>Pagination</h2>
13238
13249
 
13239
- <gov-pagination id="bagr" total="212" wcag-label="Stránkování pro sekci dokumenty"></gov-pagination>
13250
+ <gov-pagination id="bagr" total="212" wcag-label="Stránkování pro sekci dokumenty" wcag-select-label="Vybrat stránku"></gov-pagination>
13240
13251
  <br>
13241
- <gov-pagination size="s" total="212" wcag-label="Stránkování pro sekci dokumenty"></gov-pagination>
13252
+ <gov-pagination size="s" total="212" wcag-label="Stránkování pro sekci dokumenty" wcag-select-label="Vybrat stránku"></gov-pagination>
13242
13253
  <br>
13243
- <gov-pagination type="select" total="212" wcag-label="Stránkování pro sekci dokumenty"></gov-pagination>
13254
+ <gov-pagination type="select" total="212" wcag-label="Stránkování pro sekci dokumenty" wcag-select-label="Vybrat stránku"></gov-pagination>
13244
13255
  <br>
13245
- <gov-pagination type="select" size="s" total="212" wcag-label="Stránkování pro sekci dokumenty"></gov-pagination>
13256
+ <gov-pagination type="select" size="s" total="212" wcag-label="Stránkování pro sekci dokumenty" wcag-select-label="Vybrat stránku"></gov-pagination>
13246
13257
  <br>
13247
13258
  <br>
13248
- <gov-pagination variant="secondary" total="212" current="2" wcag-label="Stránkování pro sekci dokumenty"></gov-pagination>
13259
+ <gov-pagination variant="secondary" total="212" current="2" wcag-label="Stránkování pro sekci dokumenty" wcag-select-label="Vybrat stránku"></gov-pagination>
13249
13260
  <br>
13250
- <gov-pagination size="s" variant="secondary" wcag-label="Stránkování pro sekci dokumenty"></gov-pagination>
13261
+ <gov-pagination size="s" variant="secondary" wcag-label="Stránkování pro sekci dokumenty" wcag-select-label="Vybrat stránku"></gov-pagination>
13251
13262
  <br>
13252
- <gov-pagination type="select" variant="secondary" total="212" wcag-label="Stránkování pro sekci dokumenty"></gov-pagination>
13263
+ <gov-pagination type="select" variant="secondary" total="212" wcag-label="Stránkování pro sekci dokumenty" wcag-select-label="Vybrat stránku"></gov-pagination>
13253
13264
  <br>
13254
- <gov-pagination type="select" variant="secondary" size="s" total="212" wcag-label="Stránkování pro sekci dokumenty"></gov-pagination>
13265
+ <gov-pagination type="select" variant="secondary" size="s" total="212" wcag-label="Stránkování pro sekci dokumenty" wcag-select-label="Vybrat stránku"></gov-pagination>
13255
13266
 
13256
13267
  `;
13257
13268
  }
@@ -14734,7 +14745,6 @@ class GovBackdrop {
14734
14745
  registerInstance(this, hostRef);
14735
14746
  this.govClick = createEvent(this, "gov-click", 7);
14736
14747
  this.inverse = false;
14737
- this.visible = false;
14738
14748
  this.wcagLabel = undefined;
14739
14749
  this.wcagLabelledBy = undefined;
14740
14750
  this.h = govHost(this.host);
@@ -14746,9 +14756,6 @@ class GovBackdrop {
14746
14756
  }
14747
14757
  }
14748
14758
  render() {
14749
- if (this.visible === false) {
14750
- return (hAsync(Host, { class: this.h.classes(BackdropClass.root) }));
14751
- }
14752
14759
  return (hAsync(Host, { class: this.h.classes(BackdropClass.root) }, hAsync("div", { role: 'button', "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy, onClick: e => this.govClick.emit(e), class: BackdropClass.bg })));
14753
14760
  }
14754
14761
  /**
@@ -14764,7 +14771,6 @@ class GovBackdrop {
14764
14771
  "$tagName$": "gov-backdrop",
14765
14772
  "$members$": {
14766
14773
  "inverse": [4],
14767
- "visible": [4],
14768
14774
  "wcagLabel": [1, "wcag-label"],
14769
14775
  "wcagLabelledBy": [1, "wcag-labelled-by"],
14770
14776
  "validateWcag": [64]
@@ -14965,13 +14971,13 @@ class GovButton {
14965
14971
  this.govFocus = createEvent(this, "gov-focus", 7);
14966
14972
  this.govBlur = createEvent(this, "gov-blur", 7);
14967
14973
  this.variant = undefined;
14968
- this.size = 'm';
14969
- this.type = 'solid';
14974
+ this.size = "m";
14975
+ this.type = "solid";
14970
14976
  this.expanded = false;
14971
14977
  this.inverse = false;
14972
14978
  this.name = undefined;
14973
14979
  this.disabled = false;
14974
- this.nativeType = 'button';
14980
+ this.nativeType = "button";
14975
14981
  this.href = undefined;
14976
14982
  this.target = undefined;
14977
14983
  this.download = undefined;
@@ -15022,26 +15028,40 @@ class GovButton {
15022
15028
  }
15023
15029
  get classNames() {
15024
15030
  const { h } = this;
15025
- return prepareClasses([ButtonClass.root, h.hasSlot('left-icon') && ButtonClass.rootWithIcon, h.hasSlot('right-icon') && ButtonClass.rootWithIcon]);
15031
+ return prepareClasses([ButtonClass.root, h.hasSlot("left-icon") && ButtonClass.rootWithIcon, h.hasSlot("right-icon") && ButtonClass.rootWithIcon]);
15026
15032
  }
15027
15033
  render() {
15028
15034
  const Tag = this.href ? Tags$2.A : Tags$2.BUTTON;
15029
15035
  const nativeType = Tag === Tags$2.A ? undefined : this.nativeType;
15030
- return (hAsync(Host, { hoverable: true, size: this.size, variant: this.variant, class: this.h.classes(this.classNames), type: this.type, inverse: this.inverse }, hAsync(Tag, { class: "element", ref: el => (this.buttonRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), onMouseDown: () => (this.isPressed = true), onMouseUp: () => (this.isPressed = false), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.focusable ? '0' : '-1', "aria-activedescendant": this.wcagActiveDescendant, "aria-describedby": this.wcagActiveDescendant, "aria-description": this.wcagDescription, "aria-controls": this.wcagControls, "aria-details": this.wcagDetails, "aria-expanded": toBoolAttrIfDefined(this.wcagExpanded), "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns, "aria-haspopup": toBoolAttrIfDefined(this.wcagHasPopup), "aria-pressed": toBoolAttr(this.isPressed), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-current": this.wcagCurrent }, toBool(this.loading) && !this.h.hasSlot('right-icon') && hAsync("gov-icon", { name: "loader", class: "gov-spin-animation" }), this.h.hasSlot('left-icon') && hAsync("slot", { name: "left-icon" }), hAsync("slot", null), this.h.hasSlot('right-icon') && hAsync("slot", { name: "right-icon" }), toBool(this.loading) && this.h.hasSlot('right-icon') && hAsync("gov-icon", { name: "loader", class: "gov-spin-animation" }))));
15036
+ return (hAsync(Host, { hoverable: true, size: this.size, variant: this.variant, class: this.h.classes(this.classNames), type: this.type, inverse: this.inverse }, hAsync(Tag, { class: "element", ref: el => (this.buttonRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), onMouseDown: () => (this.isPressed = true), onMouseUp: () => (this.isPressed = false), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.focusable ? "0" : "-1", "aria-activedescendant": this.wcagActiveDescendant, "aria-describedby": this.wcagActiveDescendant, "aria-description": this.wcagDescription, "aria-controls": this.wcagControls, "aria-details": this.wcagDetails, "aria-expanded": toBoolAttrIfDefined(this.wcagExpanded), "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns, "aria-haspopup": toBoolAttrIfDefined(this.wcagHasPopup), "aria-pressed": toBoolAttr(this.isPressed), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-current": this.wcagCurrent }, toBool(this.loading) && !this.h.hasSlot("right-icon") &&
15037
+ hAsync("gov-icon", { name: "loader", class: "gov-spin-animation" }), this.h.hasSlot("left-icon") && hAsync("slot", { name: "left-icon" }), hAsync("slot", null), this.h.hasSlot("right-icon") && hAsync("slot", { name: "right-icon" }), toBool(this.loading) && this.h.hasSlot("right-icon") &&
15038
+ hAsync("gov-icon", { name: "loader", class: "gov-spin-animation" }))));
15031
15039
  }
15032
15040
  onClickHandler(e) {
15033
15041
  e.stopPropagation();
15034
15042
  if (this.disabled === false) {
15035
- this.govClick.emit(e);
15043
+ this.govClick.emit({
15044
+ component: ButtonClass.root,
15045
+ originalEvent: e,
15046
+ ref: this.host,
15047
+ });
15036
15048
  }
15037
15049
  }
15038
15050
  onFocusHandler(e) {
15039
15051
  e.stopPropagation();
15040
- this.govFocus.emit(e);
15052
+ this.govFocus.emit({
15053
+ component: ButtonClass.root,
15054
+ originalEvent: e,
15055
+ ref: this.host,
15056
+ });
15041
15057
  }
15042
15058
  onBlurHandler(e) {
15043
15059
  e.stopPropagation();
15044
- this.govBlur.emit(e);
15060
+ this.govBlur.emit({
15061
+ component: ButtonClass.root,
15062
+ originalEvent: e,
15063
+ ref: this.host,
15064
+ });
15045
15065
  }
15046
15066
  /**
15047
15067
  * Focus button element
@@ -15054,11 +15074,11 @@ class GovButton {
15054
15074
  */
15055
15075
  async validateWcag() {
15056
15076
  if (this.focusable) {
15057
- validateWcagRef(this.wcagActiveDescendant, 'aria-activedescendant', ButtonClass.root);
15058
- validateWcagRef(this.wcagControls, 'aria-controls', ButtonClass.root);
15059
- validateWcagRef(this.wcagDetails, 'aria-details', ButtonClass.root);
15060
- validateWcagRef(this.wcagOwns, 'aria-owns', ButtonClass.root);
15061
- validateWcagRef(this.wcagHasPopup, 'aria-haspopup', ButtonClass.root);
15077
+ validateWcagRef(this.wcagActiveDescendant, "aria-activedescendant", ButtonClass.root);
15078
+ validateWcagRef(this.wcagControls, "aria-controls", ButtonClass.root);
15079
+ validateWcagRef(this.wcagDetails, "aria-details", ButtonClass.root);
15080
+ validateWcagRef(this.wcagOwns, "aria-owns", ButtonClass.root);
15081
+ validateWcagRef(this.wcagHasPopup, "aria-haspopup", ButtonClass.root);
15062
15082
  validateWcagLabel(this.wcagLabel, this.wcagLabelledBy, ButtonClass.root);
15063
15083
  }
15064
15084
  }
@@ -15373,12 +15393,12 @@ class GovFormAutocomplete {
15373
15393
  this.govInput = createEvent(this, "gov-input", 7);
15374
15394
  this.govSelect = createEvent(this, "gov-select", 7);
15375
15395
  this.templateResolver = item => item[this.nameKey];
15376
- this.value = '';
15396
+ this.value = "";
15377
15397
  this.identifier = undefined;
15378
15398
  this.variant = undefined;
15379
15399
  this.success = undefined;
15380
- this.size = 'm';
15381
- this.nameKey = 'name';
15400
+ this.size = "m";
15401
+ this.nameKey = "name";
15382
15402
  this.name = undefined;
15383
15403
  this.required = false;
15384
15404
  this.disabled = undefined;
@@ -15394,7 +15414,7 @@ class GovFormAutocomplete {
15394
15414
  this.processing = false;
15395
15415
  this.arrowCounter = -1;
15396
15416
  this.list = [];
15397
- this.listBoxId = createID('GovListBox');
15417
+ this.listBoxId = createID("GovListBox");
15398
15418
  }
15399
15419
  validateVariant(newValue) {
15400
15420
  validateProp(FormAutocompleteVariants, newValue, FormAutocompleteClass.root);
@@ -15435,9 +15455,9 @@ class GovFormAutocomplete {
15435
15455
  this.validateSize(this.size);
15436
15456
  }
15437
15457
  render() {
15438
- return (hAsync(Host, { class: FormAutocompleteClass.root, size: this.size, variant: this.variant }, hAsync("gov-form-input", { placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, variant: this.variant, required: this.required, invalid: this.invalid, role: 'searchbox', value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": throttle(this.onInputHandler.bind(this), 200), "on-gov-keyup": this.onKeyUpHandler.bind(this), "on-gov-focus": this.onFocusHandler.bind(this), "on-gov-blur": this.onBlurHandler.bind(this), wcagAutocomplete: 'list', wcagDescribedBy: this.wcagDescribedBy, wcagLabelledBy: this.wcagLabelledBy, wcagOwns: [this.listBoxId, this.wcagOwns].join(' '), wcagExpanded: this.list.length && this.focused, ref: el => (this.inputRef = el) }, hAsync("slot", { slot: "right-icon", name: "right-icon" })), hAsync("ul", { class: FormAutocompleteClass.list, role: 'listbox', id: this.listBoxId }, this.list.map((item, index) => {
15458
+ return (hAsync(Host, { class: FormAutocompleteClass.root, size: this.size, variant: this.variant }, hAsync("gov-form-input", { placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, variant: this.variant, required: this.required, invalid: this.invalid, role: "searchbox", value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": throttle(this.onInputHandler.bind(this), 200), "on-gov-keyup": this.onKeyUpHandler.bind(this), "on-gov-focus": this.onFocusHandler.bind(this), "on-gov-blur": this.onBlurHandler.bind(this), wcagAutocomplete: "list", wcagDescribedBy: this.wcagDescribedBy, wcagLabelledBy: this.wcagLabelledBy, wcagOwns: [this.listBoxId, this.wcagOwns].join(" "), wcagExpanded: this.list.length && this.focused, ref: el => (this.inputRef = el) }, hAsync("slot", { slot: "right-icon", name: "right-icon" })), hAsync("ul", { class: FormAutocompleteClass.list, role: "listbox", id: this.listBoxId }, this.list.map((item, index) => {
15439
15459
  const isSelected = this.arrowCounter === index;
15440
- return (hAsync("li", { class: FormAutocompleteClass.item, innerHTML: this.templateResolver(item, isSelected), role: 'option', "aria-posinset": index, tabindex: isSelected ? 0 : -1, "aria-setsize": this.list.length, onClick: () => this.onSelectHandler(index), "aria-selected": toBoolAttr(isSelected) }));
15460
+ return (hAsync("li", { class: FormAutocompleteClass.item, innerHTML: this.templateResolver(item, isSelected), role: "option", "aria-posinset": index, tabindex: isSelected ? 0 : -1, "aria-setsize": this.list.length, onClick: () => this.onSelectHandler(index), "aria-selected": toBoolAttr(isSelected) }));
15441
15461
  }))));
15442
15462
  }
15443
15463
  onFocusHandler(e) {
@@ -15447,19 +15467,34 @@ class GovFormAutocomplete {
15447
15467
  this.doSearch();
15448
15468
  }
15449
15469
  e.stopPropagation();
15450
- this.govFocus.emit(e);
15470
+ this.govFocus.emit({
15471
+ originalEvent: e,
15472
+ component: FormAutocompleteClass.root,
15473
+ value: this.value,
15474
+ selected: null
15475
+ });
15451
15476
  }
15452
15477
  onBlurHandler(e) {
15453
15478
  this.focused = false;
15454
15479
  setTimeout(() => (this.list = []), 200);
15455
15480
  this.arrowCounter = -1;
15456
15481
  e.stopPropagation();
15457
- this.govBlur.emit(e);
15482
+ this.govBlur.emit({
15483
+ originalEvent: e,
15484
+ component: FormAutocompleteClass.root,
15485
+ value: this.value,
15486
+ selected: null
15487
+ });
15458
15488
  }
15459
15489
  onInputHandler(e) {
15460
15490
  this.value = e.target.value;
15461
15491
  e.stopPropagation();
15462
- this.govInput.emit(e);
15492
+ this.govInput.emit({
15493
+ originalEvent: e,
15494
+ component: FormAutocompleteClass.root,
15495
+ value: this.value,
15496
+ selected: null
15497
+ });
15463
15498
  this.doSearch();
15464
15499
  }
15465
15500
  onSelectHandler(index = -1) {
@@ -15471,15 +15506,19 @@ class GovFormAutocomplete {
15471
15506
  selected = this.list[this.arrowCounter];
15472
15507
  }
15473
15508
  if (selected) {
15474
- this.govSelect.emit(selected);
15509
+ this.govSelect.emit({
15510
+ component: FormAutocompleteClass.root,
15511
+ value: this.value,
15512
+ selected: selected
15513
+ });
15475
15514
  this.list = [];
15476
- if (has(this.nameKey, selected) && typeof selected[this.nameKey] === 'string') {
15515
+ if (has(this.nameKey, selected) && typeof selected[this.nameKey] === "string") {
15477
15516
  this.value = selected[this.nameKey];
15478
15517
  }
15479
15518
  }
15480
15519
  }
15481
15520
  onKeyUpHandler(e) {
15482
- const event = e.detail;
15521
+ const event = e.detail.originalEvent;
15483
15522
  e.stopPropagation();
15484
15523
  if (event.keyCode === 38)
15485
15524
  this.onArrowUp();
@@ -15498,8 +15537,8 @@ class GovFormAutocomplete {
15498
15537
  * Clears whisperer value
15499
15538
  */
15500
15539
  async clearValue() {
15501
- this.value = '';
15502
- this.inputRef.value = '';
15540
+ this.value = "";
15541
+ this.inputRef.value = "";
15503
15542
  await this.inputRef.clearValue();
15504
15543
  }
15505
15544
  /**
@@ -15724,54 +15763,69 @@ class GovFormCheckbox {
15724
15763
  this.invalid = undefined;
15725
15764
  this.wcagDescribedBy = undefined;
15726
15765
  this.wcagLabelledBy = undefined;
15727
- this.isChecked = undefined;
15728
15766
  this.checkboxId = createID("GovCheckbox");
15729
15767
  this.h = govHost(this.host);
15730
15768
  this.f = govForm(this.h);
15731
15769
  }
15732
- updateCheckedState(newValue) {
15733
- this.isChecked = newValue;
15734
- }
15735
15770
  validateSize(newValue) {
15736
15771
  validateProp(FormCheckboxSizes, newValue, FormCheckboxClass.root);
15737
15772
  }
15738
15773
  componentWillLoad() {
15739
- this.isChecked = this.checked;
15740
15774
  this.f.passAttrToControl("type", "checkbox");
15741
15775
  }
15742
15776
  async componentDidRender() {
15743
- this.f.passAttrToLabel('identifier', this.identifier || this.checkboxId);
15744
- this.f.passAttrToLabel('required', String(this.required));
15777
+ this.f.passAttrToLabel("identifier", this.identifier || this.checkboxId);
15778
+ this.f.passAttrToLabel("required", String(this.required));
15745
15779
  if (canValidateWcagOnRender()) {
15746
15780
  await delay(500);
15747
15781
  await this.validateWcag();
15748
15782
  }
15749
15783
  }
15750
15784
  render() {
15751
- const { isChecked } = this;
15752
15785
  const wrapCheckbox = (children) => {
15753
15786
  if (this.noLabel) {
15754
15787
  return (hAsync("label", null, children));
15755
15788
  }
15756
15789
  return children;
15757
15790
  };
15758
- return (hAsync(Host, { class: FormCheckboxClass.root, "is-checked": isChecked, size: this.size, invalid: toBoolAttrIfDefined(this.invalid) }, wrapCheckbox(hAsync(Fragment, null, hAsync("input", { id: this.identifier || this.checkboxId, type: "checkbox", value: this.value, name: this.name, checked: this.isChecked, onClick: this.onClickHandler.bind(this), onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, "aria-checked": toBoolAttr(this.isChecked), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) }), hAsync("span", null, hAsync("slot", { name: "label" }), hAsync("gov-icon", { class: FormCheckboxClass.check, name: "check-lg" }))))));
15791
+ return (hAsync(Host, { class: FormCheckboxClass.root, checked: this.checked, size: this.size, invalid: toBoolAttrIfDefined(this.invalid) }, wrapCheckbox(hAsync(Fragment, null, hAsync("input", { 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, ref: el => (this.inputRef = el), "aria-checked": toBoolAttr(this.checked), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) }), hAsync("span", null, hAsync("slot", { name: "label" }), hAsync("gov-icon", { class: FormCheckboxClass.check, name: "check-lg" }))))));
15759
15792
  }
15760
15793
  onFocusHandler(e) {
15761
15794
  e.stopPropagation();
15762
- this.govFocus.emit(e);
15795
+ this.govFocus.emit({
15796
+ component: FormCheckboxClass.root,
15797
+ value: this.value,
15798
+ checked: this.checked,
15799
+ originalEvent: e,
15800
+ });
15763
15801
  }
15764
15802
  onBlurHandler(e) {
15765
15803
  e.stopPropagation();
15766
- this.govBlur.emit(e);
15804
+ this.govBlur.emit({
15805
+ component: FormCheckboxClass.root,
15806
+ value: this.value,
15807
+ checked: this.checked,
15808
+ originalEvent: e,
15809
+ });
15767
15810
  }
15768
15811
  onClickHandler(e) {
15769
15812
  e.stopPropagation();
15770
15813
  }
15771
15814
  onChangeHandler(e) {
15772
- this.isChecked = e.target.checked;
15815
+ this.checked = e.target.checked;
15773
15816
  e.stopPropagation();
15774
- this.govChange.emit(e);
15817
+ this.govChange.emit({
15818
+ component: FormCheckboxClass.root,
15819
+ value: this.value,
15820
+ checked: this.checked,
15821
+ originalEvent: e,
15822
+ });
15823
+ }
15824
+ /**
15825
+ * Returns the reference of the native element
15826
+ */
15827
+ async getRef() {
15828
+ return this.inputRef;
15775
15829
  }
15776
15830
  /**
15777
15831
  * Validate the WCAG attributes of the component
@@ -15783,7 +15837,6 @@ class GovFormCheckbox {
15783
15837
  }
15784
15838
  get host() { return getElement(this); }
15785
15839
  static get watchers() { return {
15786
- "checked": ["updateCheckedState"],
15787
15840
  "size": ["validateSize"]
15788
15841
  }; }
15789
15842
  static get style() { return govFormCheckboxCss; }
@@ -15802,7 +15855,7 @@ class GovFormCheckbox {
15802
15855
  "invalid": [4],
15803
15856
  "wcagDescribedBy": [1, "wcag-described-by"],
15804
15857
  "wcagLabelledBy": [1, "wcag-labelled-by"],
15805
- "isChecked": [32],
15858
+ "getRef": [64],
15806
15859
  "validateWcag": [64]
15807
15860
  },
15808
15861
  "$listeners$": undefined,
@@ -15953,7 +16006,7 @@ class GovFormFile {
15953
16006
  this.govBlur = createEvent(this, "gov-blur", 7);
15954
16007
  this.govFiles = createEvent(this, "gov-files", 7);
15955
16008
  this.govAddFile = createEvent(this, "gov-add-file", 7);
15956
- this.govRemovFile = createEvent(this, "gov-remove-file", 7);
16009
+ this.govRemoveFile = createEvent(this, "gov-remove-file", 7);
15957
16010
  this.expanded = false;
15958
16011
  this.required = false;
15959
16012
  this.disabled = undefined;
@@ -15963,26 +16016,26 @@ class GovFormFile {
15963
16016
  this.maxFileSize = -1;
15964
16017
  this.identifier = undefined;
15965
16018
  this.invalid = undefined;
15966
- this.errorSize = 'Soubor je větší než povolená velikost {FILE_SIZE}';
15967
- this.errorAccept = 'Soubor tohoto typu není povolen';
15968
- this.attachmentsLabel = 'Přílohy';
16019
+ this.errorSize = "Soubor je větší než povolená velikost {FILE_SIZE}";
16020
+ this.errorAccept = "Soubor tohoto typu není povolen";
16021
+ this.attachmentsLabel = "Přílohy";
15969
16022
  this.wcagDescribedBy = undefined;
15970
16023
  this.wcagLabelledBy = undefined;
15971
- this.wcagRemoveLabel = 'Odebrat soubor {FILE_NAME}';
15972
- this.wcagAttachmentsLabel = 'Přílohy';
16024
+ this.wcagRemoveLabel = "Odebrat soubor {FILE_NAME}";
16025
+ this.wcagAttachmentsLabel = "Přílohy";
15973
16026
  this.files = [];
15974
- this.fileId = createID('GovInputFile');
16027
+ this.fileId = createID("GovInputFile");
15975
16028
  this.h = govHost(this.host);
15976
16029
  this.f = govForm(this.h);
15977
16030
  }
15978
16031
  registerListeners() {
15979
16032
  function highlight() {
15980
- this.areaRef.classList.add('highlight');
16033
+ this.areaRef.classList.add("highlight");
15981
16034
  }
15982
16035
  function unhighlight() {
15983
- this.areaRef.classList.remove('highlight');
16036
+ this.areaRef.classList.remove("highlight");
15984
16037
  }
15985
- this.inputRef.addEventListener('change', e => {
16038
+ this.inputRef.addEventListener("change", e => {
15986
16039
  e.preventDefault();
15987
16040
  e.stopPropagation();
15988
16041
  const files = e.target.files;
@@ -15990,13 +16043,13 @@ class GovFormFile {
15990
16043
  }, false);
15991
16044
  //this.inputRef.addEventListener('focus')
15992
16045
  if (this.expanded) {
15993
- const events = ['dragover', 'dragleave'];
15994
- const inEvents = ['dragenter', 'dragover', 'mouseenter'];
15995
- const outEvents = ['dragleave', 'drop', 'mouseleave'];
16046
+ const events = ["dragover", "dragleave"];
16047
+ const inEvents = ["dragenter", "dragover", "mouseenter"];
16048
+ const outEvents = ["dragleave", "drop", "mouseleave"];
15996
16049
  events.map(eventName => this.inputRef.addEventListener(eventName, this.preventDefaults.bind(this), false));
15997
16050
  inEvents.map(eventName => this.inputRef.addEventListener(eventName, highlight.bind(this), false));
15998
16051
  outEvents.forEach(eventName => this.inputRef.addEventListener(eventName, unhighlight.bind(this), false));
15999
- this.areaRef.addEventListener('drop', this.handleDrop.bind(this), false);
16052
+ this.areaRef.addEventListener("drop", this.handleDrop.bind(this), false);
16000
16053
  }
16001
16054
  }
16002
16055
  preventDefaults(e) {
@@ -16011,23 +16064,29 @@ class GovFormFile {
16011
16064
  Array.from(files).map(file => {
16012
16065
  const isFile = this.files.find(item => item.file.name === file.name && item.file.size === file.size) || null;
16013
16066
  if (isFile === null) {
16014
- const isSizeValid = typeof this.maxFileSize === 'number' && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true;
16067
+ const isSizeValid = typeof this.maxFileSize === "number" && this.maxFileSize > 0 ? fileSizeValidation(file, this.maxFileSize) : true;
16015
16068
  const isAcceptValid = fileAcceptValidation(file, this.accept);
16016
16069
  const newFile = {
16017
- id: createID('GovFormFile'),
16070
+ id: createID("GovFormFile"),
16018
16071
  file,
16019
16072
  acceptValid: isAcceptValid,
16020
16073
  sizeValid: isSizeValid,
16021
16074
  };
16022
16075
  this.files = [...this.files, newFile];
16023
- this.govAddFile.emit(newFile);
16076
+ this.govAddFile.emit({
16077
+ component: FormFileClass.root,
16078
+ file: newFile,
16079
+ });
16024
16080
  }
16025
16081
  });
16026
- this.govFiles.emit(this.files);
16082
+ this.govFiles.emit({
16083
+ component: FormFileClass.root,
16084
+ files: this.files,
16085
+ });
16027
16086
  }
16028
16087
  componentWillLoad() {
16029
- this.f.passAttrToControl('type', 'File');
16030
- this.f.passAttrToLabel('required', String(this.required));
16088
+ this.f.passAttrToControl("type", "File");
16089
+ this.f.passAttrToLabel("required", String(this.required));
16031
16090
  }
16032
16091
  async componentDidRender() {
16033
16092
  if (canValidateWcagOnRender()) {
@@ -16037,7 +16096,7 @@ class GovFormFile {
16037
16096
  this.registerListeners();
16038
16097
  }
16039
16098
  render() {
16040
- return (hAsync(Host, { class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, hAsync("div", { class: FormFileClass.area, ref: el => (this.areaRef = el) }, hAsync("slot", null), hAsync("input", { class: FormFileClass.input, ref: el => (this.inputRef = el), id: this.identifier || this.fileId, type: "file", name: this.name, accept: this.accept, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, disabled: this.disabled, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) })), this.h.hasSlot('attachments') ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("slot", { name: 'attachments' }))) : null, this.files.length && this.displayAttachments ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("gov-attachments", { label: this.wcagAttachmentsLabel, "wcag-label": this.wcagAttachmentsLabel }, this.files.map(item => (hAsync("gov-attachments-item", { "wcag-remove-labelled-by": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, hAsync("span", { class: 'sr-only', id: item.id }, this.wcagRemoveLabel.replace('{FILE_NAME}', item.file.name)), item.file.name, item.acceptValid === false ? (hAsync("gov-form-message", { slot: "message", variant: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (hAsync("gov-form-message", { slot: "message", variant: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), this.errorSize.replace('{FILE_SIZE}', formatBytes(this.maxFileSize * 1024)))) : null, hAsync("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
16099
+ return (hAsync(Host, { class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, hAsync("div", { class: FormFileClass.area, ref: el => (this.areaRef = el) }, hAsync("slot", null), hAsync("input", { class: FormFileClass.input, ref: el => (this.inputRef = el), id: this.identifier || this.fileId, type: "file", name: this.name, accept: this.accept, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, disabled: this.disabled, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) })), this.h.hasSlot("attachments") ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("gov-attachments", { label: this.wcagAttachmentsLabel, "wcag-label": this.wcagAttachmentsLabel }, this.files.map(item => (hAsync("gov-attachments-item", { "wcag-remove-labelled-by": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, hAsync("span", { class: "sr-only", id: item.id }, this.wcagRemoveLabel.replace("{FILE_NAME}", item.file.name)), item.file.name, item.acceptValid === false ? (hAsync("gov-form-message", { slot: "message", variant: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (hAsync("gov-form-message", { slot: "message", variant: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize * 1024)))) : null, hAsync("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
16041
16100
  }
16042
16101
  onRemoveFileHandler(file) {
16043
16102
  const index = this.files.findIndex(item => item.id === file.id);
@@ -16046,27 +16105,51 @@ class GovFormFile {
16046
16105
  const removeFile = this.files[index];
16047
16106
  files.splice(index, 1);
16048
16107
  this.files = [...files];
16049
- this.govRemovFile.emit(removeFile);
16050
- this.govFiles.emit(this.files);
16108
+ this.govRemoveFile.emit({
16109
+ component: FormFileClass.root,
16110
+ file: removeFile,
16111
+ });
16112
+ this.govFiles.emit({
16113
+ component: FormFileClass.root,
16114
+ files,
16115
+ });
16051
16116
  }
16052
16117
  }
16053
16118
  onFocusHandler(e) {
16054
16119
  e.stopPropagation();
16055
- this.govFocus.emit(e);
16120
+ this.govFocus.emit({
16121
+ component: FormFileClass.root,
16122
+ originalEvent: e,
16123
+ });
16056
16124
  }
16057
16125
  onBlurHandler(e) {
16058
16126
  e.stopPropagation();
16059
- this.govBlur.emit(e);
16127
+ this.govBlur.emit({
16128
+ component: FormFileClass.root,
16129
+ originalEvent: e,
16130
+ });
16060
16131
  }
16061
16132
  onChangeHandler(e) {
16062
16133
  e.stopPropagation();
16063
16134
  }
16135
+ /**
16136
+ * Returns the reference of the native element
16137
+ */
16138
+ async getRef() {
16139
+ return this.inputRef;
16140
+ }
16141
+ /**
16142
+ * Returns the reference of the native area element
16143
+ */
16144
+ async getAreaRef() {
16145
+ return this.areaRef;
16146
+ }
16064
16147
  /**
16065
16148
  * Validate the WCAG attributes of the component
16066
16149
  */
16067
16150
  async validateWcag() {
16068
- validateWcagRef(this.wcagDescribedBy, 'wcag-described-by', FormFileClass.root);
16069
- validateWcagRef(this.wcagLabelledBy, 'wcag-labelled-by', FormFileClass.root);
16151
+ validateWcagRef(this.wcagDescribedBy, "wcag-described-by", FormFileClass.root);
16152
+ validateWcagRef(this.wcagLabelledBy, "wcag-labelled-by", FormFileClass.root);
16070
16153
  validateWcagLabelFor(this.identifier || this.fileId, this.wcagLabelledBy, FormFileClass.root);
16071
16154
  }
16072
16155
  get host() { return getElement(this); }
@@ -16092,6 +16175,8 @@ class GovFormFile {
16092
16175
  "wcagRemoveLabel": [1, "wcag-remove-label"],
16093
16176
  "wcagAttachmentsLabel": [1, "wcag-attachments-label"],
16094
16177
  "files": [32],
16178
+ "getRef": [64],
16179
+ "getAreaRef": [64],
16095
16180
  "validateWcag": [64]
16096
16181
  },
16097
16182
  "$listeners$": undefined,
@@ -16209,21 +16294,37 @@ class GovFormInput {
16209
16294
  onFocusHandler(e) {
16210
16295
  e.stopPropagation();
16211
16296
  this.focused = true;
16212
- this.govFocus.emit(e);
16297
+ this.govFocus.emit({
16298
+ component: FormInputClass.root,
16299
+ value: this.value,
16300
+ originalEvent: e,
16301
+ });
16213
16302
  }
16214
16303
  onBlurHandler(e) {
16215
16304
  e.stopPropagation();
16216
16305
  this.focused = false;
16217
- this.govBlur.emit(e);
16306
+ this.govBlur.emit({
16307
+ component: FormInputClass.root,
16308
+ value: this.value,
16309
+ originalEvent: e,
16310
+ });
16218
16311
  }
16219
16312
  onKeyUpHandler(e) {
16220
16313
  e.stopPropagation();
16221
- this.govKeyUp.emit(e);
16314
+ this.govKeyUp.emit({
16315
+ component: FormInputClass.root,
16316
+ value: this.value,
16317
+ originalEvent: e,
16318
+ });
16222
16319
  }
16223
16320
  onInputHandler(e) {
16224
16321
  this.value = e.target.value;
16225
16322
  e.stopPropagation();
16226
- this.govInput.emit(e);
16323
+ this.govInput.emit({
16324
+ component: FormInputClass.root,
16325
+ value: this.value,
16326
+ originalEvent: e,
16327
+ });
16227
16328
  }
16228
16329
  /**
16229
16330
  * Returns the current state of the component
@@ -16247,7 +16348,7 @@ class GovFormInput {
16247
16348
  /**
16248
16349
  * Returns an instance of the native html input element
16249
16350
  */
16250
- async getInstance() {
16351
+ async getRef() {
16251
16352
  return this.inputRef;
16252
16353
  }
16253
16354
  /**
@@ -16299,7 +16400,7 @@ class GovFormInput {
16299
16400
  "setFocus": [64],
16300
16401
  "setValue": [64],
16301
16402
  "clearValue": [64],
16302
- "getInstance": [64],
16403
+ "getRef": [64],
16303
16404
  "validateWcag": [64]
16304
16405
  },
16305
16406
  "$listeners$": undefined,
@@ -16392,7 +16493,7 @@ class GovFormMultiSelect {
16392
16493
  this.identifier = undefined;
16393
16494
  this.placeholder = undefined;
16394
16495
  this.variant = undefined;
16395
- this.size = 'm';
16496
+ this.size = "m";
16396
16497
  this.name = undefined;
16397
16498
  this.required = false;
16398
16499
  this.disabled = undefined;
@@ -16403,8 +16504,8 @@ class GovFormMultiSelect {
16403
16504
  this.focused = undefined;
16404
16505
  this.value = undefined;
16405
16506
  this.selectedOptions = [];
16406
- this.selectId = createID('GovSelect');
16407
- this.listId = createID('GovMultiList');
16507
+ this.selectId = createID("GovSelect");
16508
+ this.listId = createID("GovMultiList");
16408
16509
  }
16409
16510
  validateVariant(newValue) {
16410
16511
  validateProp(FormMultiselectVariants, newValue, FormMultiSelectClass.root);
@@ -16413,22 +16514,25 @@ class GovFormMultiSelect {
16413
16514
  validateProp(FormMultiselectSizes, newValue, FormMultiSelectClass.root);
16414
16515
  }
16415
16516
  emitChange(newValue) {
16416
- this.govChange.emit(newValue);
16517
+ this.govChange.emit({
16518
+ component: FormMultiSelectClass.root,
16519
+ value: newValue,
16520
+ });
16417
16521
  }
16418
16522
  componentWillLoad() {
16419
16523
  this.validateVariant(this.variant);
16420
16524
  this.validateSize(this.size);
16421
16525
  }
16422
16526
  getAvailableOptions() {
16423
- return Array.from(this.selectRef.querySelectorAll('option'))
16527
+ return Array.from(this.selectRef.querySelectorAll("option"))
16424
16528
  .filter((option) => !(option.disabled || option.selected))
16425
16529
  .map((option) => ({ name: option.textContent, value: option.value }));
16426
16530
  }
16427
16531
  initAutocomplete() {
16428
- this.autocompleteRef.addEventListener('gov-select', this.onSelectHandler.bind(this));
16429
- this.autocompleteRef.addEventListener('gov-input', this.onInputHandler.bind(this));
16430
- this.autocompleteRef.addEventListener('gov-focus', this.onFocusHandler.bind(this));
16431
- this.autocompleteRef.addEventListener('gov-blur', this.onBlurHandler.bind(this));
16532
+ this.autocompleteRef.addEventListener("gov-select", this.onSelectHandler.bind(this));
16533
+ this.autocompleteRef.addEventListener("gov-input", this.onInputHandler.bind(this));
16534
+ this.autocompleteRef.addEventListener("gov-focus", this.onFocusHandler.bind(this));
16535
+ this.autocompleteRef.addEventListener("gov-blur", this.onBlurHandler.bind(this));
16432
16536
  this.autocompleteRef
16433
16537
  .setSearchCallback(value => {
16434
16538
  return new Promise(resolve => {
@@ -16449,7 +16553,7 @@ class GovFormMultiSelect {
16449
16553
  return this.selectedOptions.findIndex(option => option.value === value.value && option.name === value.name);
16450
16554
  }
16451
16555
  getOptionElement(value) {
16452
- return this.selectRef.querySelector('option[value="' + value.value + '"]');
16556
+ return this.selectRef.querySelector("option[value=\"" + value.value + "\"]");
16453
16557
  }
16454
16558
  selectOption(newOption) {
16455
16559
  const index = this.getOptionIndex(newOption);
@@ -16475,7 +16579,7 @@ class GovFormMultiSelect {
16475
16579
  async componentDidRender() {
16476
16580
  this.initAutocomplete();
16477
16581
  await delay(0);
16478
- this.selectRef.querySelectorAll('option').forEach((option) => {
16582
+ this.selectRef.querySelectorAll("option").forEach((option) => {
16479
16583
  if (option.selected) {
16480
16584
  this.selectOption({
16481
16585
  name: option.textContent,
@@ -16490,29 +16594,37 @@ class GovFormMultiSelect {
16490
16594
  }
16491
16595
  render() {
16492
16596
  return (hAsync(Host, { class: FormMultiSelectClass.root, size: this.size, variant: this.variant }, hAsync("div", { class: FormMultiSelectClass.wrap }, hAsync("div", { class: "element" }, hAsync("gov-form-autocomplete", { value: this.value, disabled: this.disabled, identifier: this.identifier || this.selectId, required: false, size: this.size, variant: this.variant, invalid: this.invalid, placeholder: this.placeholder, ref: el => (this.autocompleteRef = el), minlength: 0, wcagDescribedBy: this.wcagDescribedBy, wcagLabelledBy: this.wcagLabelledBy, wcagOwns: this.listId }), hAsync("gov-icon", { slot: "right-icon", class: "icon-arrow", name: "chevron-down" }), hAsync("select", { hidden: true, "aria-hidden": true, multiple: true, required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns }, hAsync("slot", null)))), hAsync("ul", { role: "listbox", id: this.listId, class: FormMultiSelectClass.list }, this.selectedOptions.map(option => {
16493
- return (hAsync("li", { class: FormMultiSelectClass.item, role: "option" }, option.name, hAsync("gov-button", { wcagLabel: 'Odebrat vybranou položku ' + option.name, variant: "primary", type: "base", size: "s", "on-gov-click": () => this.onTagRemove(option) }, hAsync("gov-icon", { name: "x-lg" }))));
16597
+ return (hAsync("li", { class: FormMultiSelectClass.item, role: "option" }, option.name, hAsync("gov-button", { wcagLabel: "Odebrat vybranou položku " + option.name, variant: "primary", type: "base", size: "s", "on-gov-click": () => this.onTagRemove(option) }, hAsync("gov-icon", { name: "x-lg" }))));
16494
16598
  }))));
16495
16599
  }
16496
16600
  onFocusHandler(e) {
16497
16601
  e.stopPropagation();
16498
16602
  this.focused = true;
16499
- this.govFocus.emit(e);
16603
+ this.govFocus.emit({
16604
+ component: FormMultiSelectClass.root,
16605
+ originalEvent: e,
16606
+ value: this.selectedOptions,
16607
+ });
16500
16608
  }
16501
16609
  onBlurHandler(e) {
16502
16610
  e.stopPropagation();
16503
16611
  e.stopPropagation();
16504
16612
  this.focused = false;
16505
- this.govBlur.emit(e);
16613
+ this.govBlur.emit({
16614
+ component: FormMultiSelectClass.root,
16615
+ originalEvent: e,
16616
+ value: this.selectedOptions,
16617
+ });
16506
16618
  }
16507
16619
  onInputHandler(e) {
16508
- this.value = e.target.value;
16620
+ this.value = e.detail.value;
16509
16621
  e.stopPropagation();
16510
16622
  }
16511
16623
  onSelectHandler(e) {
16512
16624
  e.stopPropagation();
16513
16625
  const value = e.detail;
16514
16626
  this.selectOption(value);
16515
- this.value = '';
16627
+ this.value = "";
16516
16628
  this.autocompleteRef.clearValue();
16517
16629
  this.autocompleteRef.focus();
16518
16630
  }
@@ -16541,9 +16653,9 @@ class GovFormMultiSelect {
16541
16653
  * Validate the WCAG attributes of the component
16542
16654
  */
16543
16655
  async validateWcag() {
16544
- validateWcagRef(this.wcagDescribedBy, 'wcag-described-by', FormMultiSelectClass.root);
16545
- validateWcagRef(this.wcagLabelledBy, 'wcag-labelled-by', FormMultiSelectClass.root);
16546
- validateWcagRef(this.wcagOwns, 'wcag-owns', FormMultiSelectClass.root);
16656
+ validateWcagRef(this.wcagDescribedBy, "wcag-described-by", FormMultiSelectClass.root);
16657
+ validateWcagRef(this.wcagLabelledBy, "wcag-labelled-by", FormMultiSelectClass.root);
16658
+ validateWcagRef(this.wcagOwns, "wcag-owns", FormMultiSelectClass.root);
16547
16659
  validateWcagLabelFor(this.identifier || this.selectId, this.wcagLabelledBy, FormMultiSelectClass.root);
16548
16660
  }
16549
16661
  get host() { return getElement(this); }
@@ -16630,19 +16742,14 @@ class GovFormRadio {
16630
16742
  this.invalid = undefined;
16631
16743
  this.wcagDescribedBy = undefined;
16632
16744
  this.wcagLabelledBy = undefined;
16633
- this.isChecked = undefined;
16634
16745
  this.radioId = createID('GovRadio');
16635
16746
  this.h = govHost(this.host);
16636
16747
  this.f = govForm(this.h);
16637
16748
  }
16638
- updateCheckedState(newValue) {
16639
- this.isChecked = newValue;
16640
- }
16641
16749
  validateSize(newValue) {
16642
16750
  validateProp(FormRadioSizes, newValue, FormRadioClass.root);
16643
16751
  }
16644
16752
  componentWillLoad() {
16645
- this.isChecked = this.checked;
16646
16753
  this.f.passAttrToControl('type', 'radio');
16647
16754
  }
16648
16755
  async componentDidRender() {
@@ -16654,30 +16761,50 @@ class GovFormRadio {
16654
16761
  }
16655
16762
  }
16656
16763
  render() {
16657
- const { isChecked } = this;
16658
16764
  const wrapCheckbox = (children) => {
16659
16765
  if (this.noLabel) {
16660
16766
  return (hAsync("label", null, children));
16661
16767
  }
16662
16768
  return children;
16663
16769
  };
16664
- return (hAsync(Host, { class: FormRadioClass.root, "is-checked": isChecked, size: this.size, invalid: toBoolAttrIfDefined(this.invalid) }, hAsync("div", { class: FormRadioClass.holder }, wrapCheckbox(hAsync(Fragment, null, hAsync("input", { class: FormRadioClass.input, id: this.identifier || this.radioId, type: "radio", value: this.value, name: this.name, checked: this.isChecked, onClick: this.onClickHandler.bind(this), onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, "aria-checked": this.isChecked, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) }), hAsync("span", null, hAsync("slot", { name: "label" })))))));
16770
+ return (hAsync(Host, { class: FormRadioClass.root, checked: this.checked, size: this.size, invalid: toBoolAttrIfDefined(this.invalid) }, hAsync("div", { class: FormRadioClass.holder }, wrapCheckbox(hAsync(Fragment, null, hAsync("input", { class: FormRadioClass.input, id: this.identifier || this.radioId, type: "radio", 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), ref: el => (this.inputRef = el), required: this.required, "aria-checked": this.checked, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) }), hAsync("span", null, hAsync("slot", { name: "label" })))))));
16665
16771
  }
16666
16772
  onClickHandler(e) {
16667
16773
  e.stopPropagation();
16668
16774
  }
16669
16775
  onFocusHandler(e) {
16670
16776
  e.stopPropagation();
16671
- this.govFocus.emit(e);
16777
+ this.govFocus.emit({
16778
+ component: FormRadioClass.root,
16779
+ value: this.value,
16780
+ checked: this.checked,
16781
+ originalEvent: e,
16782
+ });
16672
16783
  }
16673
16784
  onBlurHandler(e) {
16674
16785
  e.stopPropagation();
16675
- this.govBlur.emit(e);
16786
+ this.govBlur.emit({
16787
+ component: FormRadioClass.root,
16788
+ value: this.value,
16789
+ checked: this.checked,
16790
+ originalEvent: e,
16791
+ });
16676
16792
  }
16677
16793
  onChangeHandler(e) {
16678
- this.isChecked = e.target.checked;
16794
+ this.checked = e.target.checked;
16679
16795
  e.stopPropagation();
16680
- this.govChange.emit(e);
16796
+ this.govChange.emit({
16797
+ component: FormRadioClass.root,
16798
+ value: this.value,
16799
+ checked: this.checked,
16800
+ originalEvent: e,
16801
+ });
16802
+ }
16803
+ /**
16804
+ * Returns the reference of the native element
16805
+ */
16806
+ async getRef() {
16807
+ return this.inputRef;
16681
16808
  }
16682
16809
  /**
16683
16810
  * Validate the WCAG attributes of the component
@@ -16689,7 +16816,6 @@ class GovFormRadio {
16689
16816
  }
16690
16817
  get host() { return getElement(this); }
16691
16818
  static get watchers() { return {
16692
- "checked": ["updateCheckedState"],
16693
16819
  "size": ["validateSize"]
16694
16820
  }; }
16695
16821
  static get style() { return govFormRadioCss; }
@@ -16708,7 +16834,7 @@ class GovFormRadio {
16708
16834
  "invalid": [4],
16709
16835
  "wcagDescribedBy": [1, "wcag-described-by"],
16710
16836
  "wcagLabelledBy": [1, "wcag-labelled-by"],
16711
- "isChecked": [32],
16837
+ "getRef": [64],
16712
16838
  "validateWcag": [64]
16713
16839
  },
16714
16840
  "$listeners$": undefined,
@@ -16755,7 +16881,7 @@ class GovFormSelect {
16755
16881
  this.value = undefined;
16756
16882
  this.identifier = undefined;
16757
16883
  this.variant = undefined;
16758
- this.size = 'm';
16884
+ this.size = "m";
16759
16885
  this.name = undefined;
16760
16886
  this.required = false;
16761
16887
  this.disabled = undefined;
@@ -16767,7 +16893,7 @@ class GovFormSelect {
16767
16893
  this.wcagOwns = undefined;
16768
16894
  this.focused = undefined;
16769
16895
  this.h = govHost(this.host);
16770
- this.selectId = createID('GovSelect');
16896
+ this.selectId = createID("GovSelect");
16771
16897
  this.f = govForm(govHost(this.host));
16772
16898
  }
16773
16899
  validateVariant(newValue) {
@@ -16779,13 +16905,13 @@ class GovFormSelect {
16779
16905
  componentWillLoad() {
16780
16906
  this.validateVariant(this.variant);
16781
16907
  this.validateSize(this.size);
16782
- this.host.querySelectorAll('option').forEach((option) => {
16908
+ this.host.querySelectorAll("option").forEach((option) => {
16783
16909
  if (option.value === this.value) {
16784
- option.setAttribute('selected', 'true');
16910
+ option.setAttribute("selected", "true");
16785
16911
  }
16786
16912
  });
16787
- this.f.passAttrToControl('type', 'select');
16788
- this.f.passAttrToLabel('required', String(this.required));
16913
+ this.f.passAttrToControl("type", "select");
16914
+ this.f.passAttrToLabel("required", String(this.required));
16789
16915
  }
16790
16916
  async componentDidRender() {
16791
16917
  if (canValidateWcagOnRender()) {
@@ -16794,20 +16920,32 @@ class GovFormSelect {
16794
16920
  }
16795
16921
  }
16796
16922
  render() {
16797
- return (hAsync(Host, { class: FormSelectClass.root, size: this.size, variant: this.variant }, this.h.hasSlot('prefix') && hAsync("slot", { name: "prefix" }), hAsync("span", { class: "element" }, hAsync("gov-icon", { slot: "right-icon", name: "chevron-down" }), hAsync("select", { id: this.identifier || this.selectId, onFocus: this.onFocusHandler.bind(this), onChange: this.onChangeHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-activedescendant": this.wcagActiveDescendant, "aria-controls": this.wcagControls, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns }, hAsync("slot", null))), this.h.hasSlot('sufix') && hAsync("slot", { name: "sufix" })));
16923
+ return (hAsync(Host, { class: FormSelectClass.root, size: this.size, variant: this.variant }, this.h.hasSlot("prefix") && hAsync("slot", { name: "prefix" }), hAsync("span", { class: "element" }, hAsync("gov-icon", { slot: "right-icon", name: "chevron-down" }), hAsync("select", { id: this.identifier || this.selectId, onFocus: this.onFocusHandler.bind(this), onChange: this.onChangeHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-activedescendant": this.wcagActiveDescendant, "aria-controls": this.wcagControls, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns }, hAsync("slot", null))), this.h.hasSlot("sufix") && hAsync("slot", { name: "sufix" })));
16798
16924
  }
16799
16925
  onFocusHandler(e) {
16800
16926
  this.focused = true;
16801
- this.govFocus.emit(e);
16927
+ this.govFocus.emit({
16928
+ component: FormSelectClass.root,
16929
+ originalEvent: e,
16930
+ value: this.value,
16931
+ });
16802
16932
  }
16803
16933
  onBlurHandler(e) {
16804
16934
  this.focused = false;
16805
- this.govBlur.emit(e);
16935
+ this.govBlur.emit({
16936
+ component: FormSelectClass.root,
16937
+ originalEvent: e,
16938
+ value: this.value,
16939
+ });
16806
16940
  }
16807
16941
  onChangeHandler(e) {
16808
16942
  this.value = e.target.value;
16809
16943
  e.stopPropagation();
16810
- this.govChange.emit(e.target);
16944
+ this.govChange.emit({
16945
+ component: FormSelectClass.root,
16946
+ originalEvent: e,
16947
+ value: this.value,
16948
+ });
16811
16949
  }
16812
16950
  /**
16813
16951
  * Returns the current state of the component
@@ -16824,17 +16962,17 @@ class GovFormSelect {
16824
16962
  /**
16825
16963
  * Returns an instance of the native html select element
16826
16964
  */
16827
- async getInstance() {
16965
+ async getRef() {
16828
16966
  return this.selectRef;
16829
16967
  }
16830
16968
  /**
16831
16969
  * Validate the WCAG attributes of the component
16832
16970
  */
16833
16971
  async validateWcag() {
16834
- validateWcagRef(this.wcagActiveDescendant, 'wcag-active-descendant', FormSelectClass.root);
16835
- validateWcagRef(this.wcagControls, 'wcag-controls', FormSelectClass.root);
16836
- validateWcagRef(this.wcagDescribedBy, 'wcag-described-by', FormSelectClass.root);
16837
- validateWcagRef(this.wcagOwns, 'wcag-owns', FormSelectClass.root);
16972
+ validateWcagRef(this.wcagActiveDescendant, "wcag-active-descendant", FormSelectClass.root);
16973
+ validateWcagRef(this.wcagControls, "wcag-controls", FormSelectClass.root);
16974
+ validateWcagRef(this.wcagDescribedBy, "wcag-described-by", FormSelectClass.root);
16975
+ validateWcagRef(this.wcagOwns, "wcag-owns", FormSelectClass.root);
16838
16976
  validateWcagLabelFor(this.identifier || this.selectId, this.wcagLabelledBy, FormSelectClass.root);
16839
16977
  }
16840
16978
  get host() { return getElement(this); }
@@ -16863,7 +17001,7 @@ class GovFormSelect {
16863
17001
  "focused": [32],
16864
17002
  "setFocus": [64],
16865
17003
  "setValue": [64],
16866
- "getInstance": [64],
17004
+ "getRef": [64],
16867
17005
  "validateWcag": [64]
16868
17006
  },
16869
17007
  "$listeners$": undefined,
@@ -16891,19 +17029,14 @@ class GovFormSwitch {
16891
17029
  this.invalid = undefined;
16892
17030
  this.wcagDescribedBy = undefined;
16893
17031
  this.wcagLabelledBy = undefined;
16894
- this.isChecked = undefined;
16895
17032
  this.checkboxId = createID("GovCheckbox");
16896
17033
  this.h = govHost(this.host);
16897
17034
  this.f = govForm(this.h);
16898
17035
  }
16899
- updateCheckedState(newValue) {
16900
- this.isChecked = newValue;
16901
- }
16902
17036
  validateSize(newValue) {
16903
17037
  validateProp(FormSwitchSizes, newValue, FormSwitchClass.root);
16904
17038
  }
16905
17039
  componentWillLoad() {
16906
- this.isChecked = this.checked;
16907
17040
  this.f.passAttrToControl("type", "switch");
16908
17041
  }
16909
17042
  async componentDidRender() {
@@ -16915,30 +17048,50 @@ class GovFormSwitch {
16915
17048
  }
16916
17049
  }
16917
17050
  render() {
16918
- const { isChecked } = this;
16919
17051
  const wrapCheckbox = (children) => {
16920
17052
  if (this.noLabel) {
16921
17053
  return (hAsync("label", null, children));
16922
17054
  }
16923
17055
  return children;
16924
17056
  };
16925
- return (hAsync(Host, { class: this.h.classes(FormSwitchClass.root), "is-checked": isChecked, size: this.size, invalid: toBoolAttrIfDefined(this.invalid) }, hAsync("div", { class: FormSwitchClass.holder }, wrapCheckbox(hAsync(Fragment, null, hAsync("input", { class: FormSwitchClass.input, id: this.identifier || this.checkboxId, type: "checkbox", value: this.value, name: this.name, checked: this.isChecked, onClick: this.onClickHandler.bind(this), onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, "aria-checked": this.isChecked, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) }), hAsync("span", { class: FormSwitchClass.indicator }), hAsync("slot", { name: "label" }))))));
17057
+ return (hAsync(Host, { class: this.h.classes(FormSwitchClass.root), checked: this.checked, size: this.size, invalid: toBoolAttrIfDefined(this.invalid) }, hAsync("div", { class: FormSwitchClass.holder }, wrapCheckbox(hAsync(Fragment, null, hAsync("input", { class: FormSwitchClass.input, 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), ref: el => (this.inputRef = el), required: this.required, "aria-checked": this.checked, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) }), hAsync("span", { class: FormSwitchClass.indicator }), hAsync("slot", { name: "label" }))))));
16926
17058
  }
16927
17059
  onClickHandler(e) {
16928
17060
  e.stopPropagation();
16929
17061
  }
16930
17062
  onFocusHandler(e) {
16931
17063
  e.stopPropagation();
16932
- this.govFocus.emit(e);
17064
+ this.govFocus.emit({
17065
+ component: FormSwitchClass.root,
17066
+ checked: this.checked,
17067
+ value: this.value,
17068
+ originalEvent: e
17069
+ });
16933
17070
  }
16934
17071
  onBlurHandler(e) {
16935
17072
  e.stopPropagation();
16936
- this.govBlur.emit(e);
17073
+ this.govBlur.emit({
17074
+ component: FormSwitchClass.root,
17075
+ checked: this.checked,
17076
+ value: this.value,
17077
+ originalEvent: e
17078
+ });
16937
17079
  }
16938
17080
  onChangeHandler(e) {
16939
- this.isChecked = e.target.checked;
17081
+ this.checked = e.target.checked;
16940
17082
  e.stopPropagation();
16941
- this.govChange.emit(e);
17083
+ this.govChange.emit({
17084
+ component: FormSwitchClass.root,
17085
+ checked: this.checked,
17086
+ value: this.value,
17087
+ originalEvent: e
17088
+ });
17089
+ }
17090
+ /**
17091
+ * Returns the reference of the native element
17092
+ */
17093
+ async getRef() {
17094
+ return this.inputRef;
16942
17095
  }
16943
17096
  /**
16944
17097
  * Validate the WCAG attributes of the component
@@ -16950,7 +17103,6 @@ class GovFormSwitch {
16950
17103
  }
16951
17104
  get host() { return getElement(this); }
16952
17105
  static get watchers() { return {
16953
- "checked": ["updateCheckedState"],
16954
17106
  "size": ["validateSize"]
16955
17107
  }; }
16956
17108
  static get style() { return govFormSwitchCss; }
@@ -16969,7 +17121,7 @@ class GovFormSwitch {
16969
17121
  "invalid": [4],
16970
17122
  "wcagDescribedBy": [1, "wcag-described-by"],
16971
17123
  "wcagLabelledBy": [1, "wcag-labelled-by"],
16972
- "isChecked": [32],
17124
+ "getRef": [64],
16973
17125
  "validateWcag": [64]
16974
17126
  },
16975
17127
  "$listeners$": undefined,
@@ -17214,7 +17366,7 @@ class GovLoading {
17214
17366
  this.h = govHost(this.host);
17215
17367
  }
17216
17368
  render() {
17217
- return (hAsync(Host, { class: this.h.classes(LoadingClass.root), loading: this.loading }, hAsync("div", { class: LoadingClass.content }, hAsync("gov-icon", { class: prepareClasses([LoadingClass.icon, 'gov-spin-animation']), name: "loader" }), hAsync("slot", null)), hAsync("gov-backdrop", { visible: this.loading, inverse: true })));
17369
+ return (hAsync(Host, { class: this.h.classes(LoadingClass.root), loading: this.loading }, hAsync("div", { class: LoadingClass.content }, hAsync("gov-icon", { class: prepareClasses([LoadingClass.icon, 'gov-spin-animation']), name: "loader" }), hAsync("slot", null)), this.loading ? (hAsync("gov-backdrop", { inverse: true })) : null));
17218
17370
  }
17219
17371
  get host() { return getElement(this); }
17220
17372
  static get style() { return govLoadingCss; }
@@ -17338,7 +17490,7 @@ class GovModal {
17338
17490
  }
17339
17491
  render() {
17340
17492
  const LabelTag = this.labelTag;
17341
- return (hAsync(Host, { class: this.h.classes(ModalClass.root), open: this.modalVisible }, hAsync("dialog", { class: ModalClass.dialog, hidden: !this.modalVisible, tabindex: "-1", open: this.modalVisible, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.modalVisible), "aria-labelledby": this.wcaglabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, hAsync("div", { class: ModalClass.inner }, hAsync("div", { class: ModalClass.header }, this.h.hasSlot("icon") && (hAsync("div", { class: ModalClass.icon }, hAsync("slot", { name: "icon" }))), this.label && (hAsync(LabelTag, { class: ModalClass.title, id: this.labelId }, this.label)), hAsync("gov-button", { class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, hAsync("gov-icon", { name: "x-lg" }))), hAsync("div", { class: ModalClass.content, id: this.contentId }, hAsync("slot", null)))), hAsync("gov-backdrop", { visible: this.modalVisible, "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })));
17493
+ return (hAsync(Host, { class: this.h.classes(ModalClass.root), open: this.modalVisible }, hAsync("dialog", { class: ModalClass.dialog, hidden: !this.modalVisible, tabindex: "-1", open: this.modalVisible, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.modalVisible), "aria-labelledby": this.wcaglabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, hAsync("div", { class: ModalClass.inner }, hAsync("div", { class: ModalClass.header }, this.h.hasSlot("icon") && (hAsync("div", { class: ModalClass.icon }, hAsync("slot", { name: "icon" }))), this.label && (hAsync(LabelTag, { class: ModalClass.title, id: this.labelId }, this.label)), hAsync("gov-button", { class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, hAsync("gov-icon", { name: "x-lg" }))), hAsync("div", { class: ModalClass.content, id: this.contentId }, hAsync("slot", null)))), this.modalVisible ? (hAsync("gov-backdrop", { "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
17342
17494
  }
17343
17495
  onCloseHandler(e) {
17344
17496
  e.stopPropagation();
@@ -17551,7 +17703,12 @@ function paginate(totalItems, currentPage = 1, pageSize = 10, maxPages = 10) {
17551
17703
  };
17552
17704
  }
17553
17705
 
17554
- const createArrayRange = (from, to) => [...Array(to + 1).keys()].slice(from);
17706
+ const createArrayRange = (from, to) => {
17707
+ if (Number.isInteger(from) && Number.isInteger(to)) {
17708
+ return [...Array(to + 1).keys()].slice(from);
17709
+ }
17710
+ return [];
17711
+ };
17555
17712
 
17556
17713
  const govPaginationCss = ".gov-pagination__list{margin:0;padding:0}.gov-pagination__list .gov-pagination__item{margin:0;padding:0;background:none}.gov-pagination__list .gov-pagination__item::before{display:none}.gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.gov-pagination{position:relative;display:block;width:100%}.gov-pagination__list{display:flex;align-items:center;flex-wrap:wrap;font-weight:bold;text-align:center}.gov-pagination__list .gov-pagination__item{display:flex;justify-content:center;align-items:center;margin:0;padding:0.125rem;border-radius:var(--gov-border-radius, 0.1875rem);overflow:hidden}.gov-pagination__list .gov-pagination__item--arrow{display:flex}.gov-pagination__list .gov-pagination__item--select{z-index:1;display:flex;overflow:visible;padding:0rem 1rem}.gov-pagination__arrow{margin:0}.gov-pagination__item--more .gov-form-select select{border:none;padding-right:0.75rem !important}.gov-pagination__item--more .gov-form-select .gov-icon{display:none}.gov-pagination__inner{display:flex;justify-content:center;align-items:center;align-self:stretch;width:100%;text-decoration:none}.gov-pagination__inner[wcag-current=true][type=solid][variant=primary] .element{background-color:var(--gov-button-primary-solid-hover-bg, var(--gov-color-primary-700));color:var(--gov-button-primary-solid-hover-color, var(--gov-color-neutral-white))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=primary] .element{background-color:var(--gov-button-primary-outlined-hover-bg, var(--gov-color-primary-100));color:var(--gov-button-primary-outlined-hover-color, var(--gov-color-primary))}.gov-pagination__inner[wcag-current=true][type=base][variant=primary] .element{background-color:var(--gov-button-primary-base-hover-bg, var(--gov-color-primary-100));color:var(--gov-button-primary-base-hover-color, var(--gov-color-primary))}.gov-pagination__inner[wcag-current=true][type=link][variant=primary] .element{background-color:var(--gov-button-primary-link-hover-bg, transparent);color:var(--gov-button-primary-link-hover-color, var(--gov-color-primary))}.gov-pagination__inner[wcag-current=true][type=solid][variant=secondary] .element{background-color:var(--gov-button-secondary-solid-hover-bg, var(--gov-color-secondary-900));color:var(--gov-button-secondary-solid-hover-color, var(--gov-color-neutral-white))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=secondary] .element{background-color:var(--gov-button-secondary-outlined-hover-bg, var(--gov-color-secondary-300));color:var(--gov-button-secondary-outlined-hover-color, var(--gov-color-secondary))}.gov-pagination__inner[wcag-current=true][type=base][variant=secondary] .element{background-color:var(--gov-button-secondary-base-hover-bg, var(--gov-color-secondary-300));color:var(--gov-button-secondary-base-hover-color, var(--gov-color-secondary))}.gov-pagination__inner[wcag-current=true][type=link][variant=secondary] .element{background-color:var(--gov-button-secondary-link-hover-bg, transparent);color:var(--gov-button-secondary-link-hover-color, var(--gov-color-secondary))}.gov-pagination__inner[wcag-current=true][type=solid][variant=error] .element{background-color:var(--gov-button-error-solid-hover-bg, var(--gov-color-error-500));color:var(--gov-button-error-solid-hover-color, var(--gov-color-neutral-white))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=error] .element{background-color:var(--gov-button-error-outlined-hover-bg, var(--gov-color-error-100));color:var(--gov-button-error-outlined-hover-color, var(--gov-color-error))}.gov-pagination__inner[wcag-current=true][type=base][variant=error] .element{background-color:var(--gov-button-error-base-hover-bg, var(--gov-color-error-100));color:var(--gov-button-error-base-hover-color, var(--gov-color-error))}.gov-pagination__inner[wcag-current=true][type=link][variant=error] .element{background-color:var(--gov-button-error-link-hover-bg, transparent);color:var(--gov-button-error-link-hover-color, var(--gov-color-error))}.gov-pagination__inner[wcag-current=true][type=solid][variant=success] .element{background-color:var(--gov-button-success-solid-hover-bg, var(--gov-color-success-600));color:var(--gov-button-success-solid-hover-color, var(--gov-color-neutral-white))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=success] .element{background-color:var(--gov-button-success-outlined-hover-bg, var(--gov-color-success-100));color:var(--gov-button-success-outlined-hover-color, var(--gov-color-success-500))}.gov-pagination__inner[wcag-current=true][type=base][variant=success] .element{background-color:var(--gov-button-success-base-hover-bg, var(--gov-color-success-100));color:var(--gov-button-success-base-hover-color, var(--gov-color-success-500))}.gov-pagination__inner[wcag-current=true][type=link][variant=success] .element{background-color:var(--gov-button-success-link-hover-bg, transparent);color:var(--gov-button-success-link-hover-color, var(--gov-color-success-500))}.gov-pagination__inner[wcag-current=true][type=solid][variant=warning] .element{background-color:var(--gov-button-warning-solid-hover-bg, var(--gov-color-warning-600));color:var(--gov-button-warning-solid-hover-color, var(--gov-color-neutral-white))}.gov-pagination__inner[wcag-current=true][type=outlined][variant=warning] .element{background-color:var(--gov-button-warning-outlined-hover-bg, var(--gov-color-warning-200));color:var(--gov-button-warning-outlined-hover-color, var(--gov-color-warning-500))}.gov-pagination__inner[wcag-current=true][type=base][variant=warning] .element{background-color:var(--gov-button-warning-base-hover-bg, var(--gov-color-warning-200));color:var(--gov-button-warning-base-hover-color, var(--gov-color-warning-500))}.gov-pagination__inner[wcag-current=true][type=link][variant=warning] .element{background-color:var(--gov-button-warning-link-hover-bg, transparent);color:var(--gov-button-warning-link-hover-color, var(--gov-color-warning-500))}.gov-pagination[size=s] .gov-pagination__inner{font-weight:var(--gov-text-s-font-weight);font-size:var(--gov-text-s-font-size);line-height:var(--gov-text-s-line-height);letter-spacing:var(--gov-text-s-letter-spacing);font-weight:inherit}.gov-pagination[size=s] .gov-pagination__inner .element{min-width:var(--gov-pagination-s-button-size, 2rem)}.gov-pagination[size=m] .gov-pagination__inner{font-weight:var(--gov-text-m-font-weight);font-size:var(--gov-text-m-font-size);line-height:var(--gov-text-m-line-height);letter-spacing:var(--gov-text-m-letter-spacing);font-weight:inherit}.gov-pagination[size=m] .gov-pagination__inner .element{min-width:var(--gov-pagination-m-button-size, 2.5rem)}";
17557
17714
 
@@ -17615,7 +17772,7 @@ class GovPagination {
17615
17772
  }
17616
17773
  resetSelectValue() {
17617
17774
  if (this.spreadSelectRef) {
17618
- this.spreadSelectRef.getInstance()
17775
+ this.spreadSelectRef.getRef()
17619
17776
  .then((el) => {
17620
17777
  el.value = '...';
17621
17778
  });
@@ -17627,17 +17784,20 @@ class GovPagination {
17627
17784
  const ariaCurrent = toBoolAttrIfDefined(this.pagination.currentPage === page ? true : undefined);
17628
17785
  return (hAsync("gov-button", { href: this.prepareLinkUrl(page), variant: this.variant, size: this.size, type: "base", disabled: isDisabled, "on-gov-click": (e) => this.onClickHandler(e, page), "wcag-label": page > -1 ? this.wcagPageLabel + " " + page : undefined, "wcag-current": ariaCurrent, class: PaginationClass.inner }, content));
17629
17786
  };
17630
- return (hAsync(Host, { class: this.h.classes(PaginationClass.root), type: this.type, variant: this.variant, size: this.size }, hAsync("nav", { "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy }, hAsync("ul", { class: PaginationClass.list }, hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.currentPage > 1 ? 1 : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-left" }))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "chevron-left" }))), this.type == "select" ? (hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemSelect]) }, hAsync("span", { class: PaginationClass.inner }, hAsync("span", { id: this.pageSelectId, hidden: true }, this.wcagSelectLabel), hAsync("gov-form-select", { size: "m", "wcag-labelled-by": this.pageSelectId, "on-gov-change": this.onSelectHandler.bind(this) }, createArrayRange(1, this.pagination.totalPages).map(page => (hAsync("option", { value: page, selected: this.pagination.currentPage === page }, page))))))) : (hAsync(Fragment, null, this.pagination.pages.map(page => (hAsync("li", { class: this.isActivePageClass(PaginationClass.item, page) }, pageResolver(page, page)))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemMore]) }, hAsync("span", { class: PaginationClass.inner }, hAsync("span", { id: this.pageSelectId, hidden: true }, this.wcagSelectLabel), hAsync("gov-form-select", { size: "m", "wcag-labelled-by": this.pageSelectId, ref: el => (this.spreadSelectRef = el), "on-gov-change": this.onSelectHandler.bind(this) }, hAsync("option", { selected: true, hidden: true }, "..."), createArrayRange(1, this.pagination.totalPages).map(page => (hAsync("option", { value: page, selected: false }, page)))))))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "chevron-right" }))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-right" })))))));
17787
+ return (hAsync(Host, { class: this.h.classes(PaginationClass.root), type: this.type, variant: this.variant, size: this.size }, hAsync("nav", { "aria-label": this.wcagLabel, "aria-labelledby": this.wcagLabelledBy }, hAsync("ul", { class: PaginationClass.list }, hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.currentPage > 1 ? 1 : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-left" }))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "chevron-left" }))), this.type == "select" ? (hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemSelect]) }, hAsync("span", { class: PaginationClass.inner }, hAsync("span", { id: this.pageSelectId, hidden: true }, this.wcagSelectLabel), hAsync("gov-form-select", { size: "m", variant: this.variant, "wcag-labelled-by": this.pageSelectId, "on-gov-change": this.onSelectHandler.bind(this) }, createArrayRange(1, this.pagination.totalPages).map(page => (hAsync("option", { value: page, selected: this.pagination.currentPage === page }, page))))))) : (hAsync(Fragment, null, this.pagination.pages.map(page => (hAsync("li", { class: this.isActivePageClass(PaginationClass.item, page) }, pageResolver(page, page)))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemMore]) }, hAsync("span", { class: PaginationClass.inner }, hAsync("span", { id: this.pageSelectId, hidden: true }, this.wcagSelectLabel), hAsync("gov-form-select", { size: "m", variant: this.variant, "wcag-labelled-by": this.pageSelectId, ref: el => (this.spreadSelectRef = el), "on-gov-change": this.onSelectHandler.bind(this) }, hAsync("option", { selected: true, hidden: true }, "..."), createArrayRange(1, this.pagination.totalPages).map(page => (hAsync("option", { value: page, selected: false }, page)))))))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "chevron-right" }))), hAsync("li", { class: prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1, hAsync("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-right" })))))));
17631
17788
  }
17632
17789
  onClickHandler(e, page) {
17633
17790
  e.stopPropagation();
17634
17791
  this.recalculatePagination(page);
17635
- this.govPage.emit(Object.assign({}, this.pagination));
17792
+ this.govPage.emit({
17793
+ component: PaginationClass.root,
17794
+ pagination: this.pagination
17795
+ });
17636
17796
  }
17637
17797
  onSelectHandler(e) {
17638
17798
  e.stopPropagation();
17639
- const target = e.target;
17640
- const page = parseInt(target.value);
17799
+ const value = e.detail.value;
17800
+ const page = parseInt(value);
17641
17801
  this.resetSelectValue();
17642
17802
  if (isNaN(page) === false) {
17643
17803
  this.recalculatePagination(page);
@@ -17645,7 +17805,10 @@ class GovPagination {
17645
17805
  window.location.href = this.prepareLinkUrl(page);
17646
17806
  }
17647
17807
  else {
17648
- this.govPage.emit(Object.assign({}, this.pagination));
17808
+ this.govPage.emit({
17809
+ component: PaginationClass.root,
17810
+ pagination: this.pagination
17811
+ });
17649
17812
  }
17650
17813
  }
17651
17814
  }
@@ -17655,9 +17818,6 @@ class GovPagination {
17655
17818
  async validateWcag() {
17656
17819
  validateWcagProp(this.wcagPageLabel, "wcag-page-label", PaginationClass.root);
17657
17820
  validateWcagLabel(this.wcagLabel, this.wcagLabelledBy, PaginationClass.root);
17658
- if (this.type === "select") {
17659
- validateWcagProp(this.wcagSelectLabel, "wcag-select-label", PaginationClass.root);
17660
- }
17661
17821
  }
17662
17822
  get host() { return getElement(this); }
17663
17823
  static get watchers() { return {
@@ -17700,19 +17860,19 @@ class GovPrompt {
17700
17860
  this.govClose = createEvent(this, "gov-close", 7);
17701
17861
  this.open = false;
17702
17862
  this.label = undefined;
17703
- this.role = 'dialog';
17704
- this.labelTag = 'h2';
17863
+ this.role = "dialog";
17864
+ this.labelTag = "h2";
17705
17865
  this.wcaglabelledBy = undefined;
17706
17866
  this.wcagDescribedBy = undefined;
17707
17867
  this.wcagCloseLabel = undefined;
17708
17868
  this.wcagCloseLabelledBy = undefined;
17709
17869
  this.modalVisible = false;
17710
17870
  this.h = govHost(this.host);
17711
- this.labelId = createID('GovPromptLabel');
17712
- this.contentId = createID('GovPromptContent');
17871
+ this.labelId = createID("GovPromptLabel");
17872
+ this.contentId = createID("GovPromptContent");
17713
17873
  }
17714
17874
  validateLabelTag(newValue) {
17715
- const validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
17875
+ const validTags = ["h1", "h2", "h3", "h4", "h5", "h6"];
17716
17876
  if (newValue) {
17717
17877
  if (!validTags.includes(newValue)) {
17718
17878
  govErrorLog(`[${ModalClass.root}]: Tag ${newValue} is not allowed.`);
@@ -17747,7 +17907,7 @@ class GovPrompt {
17747
17907
  }
17748
17908
  render() {
17749
17909
  const LabelTag = this.labelTag;
17750
- return (hAsync(Host, { class: this.h.classes(ModalClass.rootPrompt), open: this.modalVisible }, hAsync("dialog", { class: ModalClass.dialog, hidden: !this.modalVisible, tabindex: "-1", open: this.modalVisible, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.modalVisible), "aria-labelledby": this.wcaglabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, hAsync("div", { class: ModalClass.inner }, hAsync("div", { class: ModalClass.header }, this.h.hasSlot('icon') && (hAsync("div", { class: ModalClass.icon }, hAsync("slot", { name: "icon" }))), this.label && (hAsync(LabelTag, { class: ModalClass.title, id: this.labelId }, this.label)), hAsync("gov-button", { class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, hAsync("gov-icon", { name: "x-lg" }))), hAsync("div", { class: ModalClass.content, id: this.contentId }, hAsync("slot", null)), hAsync("div", { class: ModalClass.actions }, hAsync("slot", { name: "actions" })))), hAsync("gov-backdrop", { visible: this.modalVisible, "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })));
17910
+ return (hAsync(Host, { class: this.h.classes(ModalClass.rootPrompt), open: this.modalVisible }, hAsync("dialog", { class: ModalClass.dialog, hidden: !this.modalVisible, tabindex: "-1", open: this.modalVisible, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.modalVisible), "aria-labelledby": this.wcaglabelledBy || this.labelId, "aria-describedby": this.wcagDescribedBy || this.contentId, role: this.role }, hAsync("div", { class: ModalClass.inner }, hAsync("div", { class: ModalClass.header }, this.h.hasSlot("icon") && (hAsync("div", { class: ModalClass.icon }, hAsync("slot", { name: "icon" }))), this.label && (hAsync(LabelTag, { class: ModalClass.title, id: this.labelId }, this.label)), hAsync("gov-button", { class: ModalClass.close, variant: "primary", wcagLabel: this.wcagCloseLabel, wcagLabelledBy: this.wcagCloseLabelledBy, type: "base", "on-gov-click": this.onCloseHandler.bind(this) }, hAsync("gov-icon", { name: "x-lg" }))), hAsync("div", { class: ModalClass.content, id: this.contentId }, hAsync("slot", null)), hAsync("div", { class: ModalClass.actions }, hAsync("slot", { name: "actions" })))), this.modalVisible ? (hAsync("gov-backdrop", { "wcag-label": this.wcagCloseLabel, "wcag-labelled-by": this.wcagCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
17751
17911
  }
17752
17912
  onCloseHandler(e) {
17753
17913
  e.stopPropagation();
@@ -17770,8 +17930,8 @@ class GovPrompt {
17770
17930
  * Validate the WCAG attributes of the component
17771
17931
  */
17772
17932
  async validateWcag() {
17773
- validateWcagRef(this.wcaglabelledBy, 'aria-labelledby', ModalClass.root);
17774
- validateWcagRef(this.wcagDescribedBy, 'aria-describedby', ModalClass.root);
17933
+ validateWcagRef(this.wcaglabelledBy, "aria-labelledby", ModalClass.root);
17934
+ validateWcagRef(this.wcagDescribedBy, "aria-describedby", ModalClass.root);
17775
17935
  }
17776
17936
  get host() { return getElement(this); }
17777
17937
  static get watchers() { return {