@gov-design-system-ce/components 4.1.3-BETA-10 → 4.2.1

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 (719) hide show
  1. package/dist/cjs/{array.utils-96eadde3.js → array.utils-211fffc0.js} +2 -2
  2. package/dist/cjs/{array.utils-96eadde3.js.map → array.utils-211fffc0.js.map} +1 -1
  3. package/dist/cjs/{constants-02aec493.js → constants-7f713d6c.js} +2 -2
  4. package/dist/cjs/{constants-02aec493.js.map → constants-7f713d6c.js.map} +1 -1
  5. package/dist/cjs/{constants-4dfa23e3.js → constants-c7447ffd.js} +3 -1
  6. package/dist/cjs/constants-c7447ffd.js.map +1 -0
  7. package/dist/cjs/{constants-52053f2d.js → constants-c84c60d6.js} +3 -1
  8. package/dist/cjs/constants-c84c60d6.js.map +1 -0
  9. package/dist/cjs/core.cjs.js +1 -1
  10. package/dist/cjs/gov-attachments_3.cjs.entry.js +4 -4
  11. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-backdrop.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-banner.cjs.entry.js +80 -0
  14. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -0
  15. package/dist/cjs/gov-blockquote.cjs.entry.js +33 -0
  16. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -0
  17. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
  18. package/dist/cjs/gov-button.cjs.entry.js +7 -6
  19. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-card.cjs.entry.js +11 -3
  21. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-chip.cjs.entry.js +4 -3
  23. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  25. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  26. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-dialog.cjs.entry.js +3 -3
  28. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  29. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  30. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  31. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  32. package/dist/cjs/gov-flex_3.cjs.entry.js +5 -5
  33. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +5 -4
  35. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +5 -5
  37. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -1
  39. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  40. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  41. package/dist/cjs/gov-form-file.cjs.entry.js +3 -2
  42. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  43. package/dist/cjs/gov-form-group.cjs.entry.js +2 -2
  44. package/dist/cjs/gov-form-input_2.cjs.entry.js +10 -8
  45. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  46. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  47. package/dist/cjs/gov-form-multi-select.cjs.entry.js +6 -5
  48. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  50. package/dist/cjs/gov-form-radio-group.cjs.entry.js +3 -3
  51. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  52. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -1
  53. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  54. package/dist/cjs/gov-form-range.cjs.entry.js +207 -0
  55. package/dist/cjs/gov-form-range.cjs.entry.js.map +1 -0
  56. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  57. package/dist/cjs/gov-form-select.cjs.entry.js +6 -5
  58. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -1
  60. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  61. package/dist/cjs/gov-grid-item.cjs.entry.js +13 -7
  62. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  63. package/dist/cjs/gov-grid.cjs.entry.js +7 -5
  64. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-infobar.cjs.entry.js +4 -3
  66. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  67. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  68. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  69. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  70. package/dist/cjs/gov-link.cjs.entry.js +3 -1
  71. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  72. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  73. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  74. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  75. package/dist/cjs/gov-pagination.cjs.entry.js +4 -3
  76. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  77. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  78. package/dist/cjs/gov-stepper-item.cjs.entry.js +2 -2
  79. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  80. package/dist/cjs/gov-stepper.cjs.entry.js +2 -2
  81. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  82. package/dist/cjs/gov-tabs.cjs.entry.js +4 -3
  83. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  84. package/dist/cjs/gov-tag.cjs.entry.js +1 -1
  85. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  86. package/dist/cjs/gov-toast.cjs.entry.js +3 -2
  87. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  88. package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
  89. package/dist/cjs/gov-tooltip.cjs.entry.js +2 -2
  90. package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
  91. package/dist/cjs/gov-wizard.cjs.entry.js +3 -3
  92. package/dist/cjs/{helpers.types-ff60c9bd.js → helpers.types-9066e4a4.js} +3 -1
  93. package/dist/cjs/helpers.types-9066e4a4.js.map +1 -0
  94. package/dist/cjs/index-0e4f24f9.js +12 -4
  95. package/dist/cjs/loader.cjs.js +1 -1
  96. package/dist/cjs/{wcag-2927ff73.js → wcag-f8da82da.js} +2 -2
  97. package/dist/cjs/{wcag-2927ff73.js.map → wcag-f8da82da.js.map} +1 -1
  98. package/dist/collection/collection-manifest.json +3 -1
  99. package/dist/collection/components/gov-attachments/gov-attachments-item.css +3 -4
  100. package/dist/collection/components/gov-banner/constants.js +26 -0
  101. package/dist/collection/components/gov-banner/constants.js.map +1 -0
  102. package/dist/collection/components/gov-banner/gov-banner.js +155 -0
  103. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -0
  104. package/dist/collection/components/gov-blockquote/constants.js +10 -0
  105. package/dist/collection/components/gov-blockquote/constants.js.map +1 -0
  106. package/dist/collection/components/gov-blockquote/gov-blockquote.js +61 -0
  107. package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +1 -0
  108. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  109. package/dist/collection/components/gov-button/button/gov-button.js +5 -4
  110. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  111. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  112. package/dist/collection/components/gov-card/gov-card.js +52 -1
  113. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  114. package/dist/collection/components/gov-chip/gov-chip.js +4 -3
  115. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  116. package/dist/collection/components/gov-container/gov-container.js +1 -1
  117. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  118. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  119. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  120. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  121. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  122. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  123. package/dist/collection/components/gov-flex/gov-flex.js +22 -3
  124. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -1
  125. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +3 -2
  126. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  127. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +2 -1
  128. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  129. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  130. package/dist/collection/components/gov-form/file/gov-form-file.js +3 -2
  131. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  132. package/dist/collection/components/gov-form/group/constants.js +1 -1
  133. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  134. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +2 -2
  135. package/dist/collection/components/gov-form/group/gov-form-group.css +4 -4
  136. package/dist/collection/components/gov-form/group/gov-form-group.js +2 -2
  137. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +2 -2
  138. package/dist/collection/components/gov-form/input/gov-form-input.js +7 -6
  139. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  140. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  141. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  142. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -3
  143. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  144. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  145. package/dist/collection/components/gov-form/radio/gov-form-radio.js +2 -1
  146. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  147. package/dist/collection/components/gov-form/range/constants.js +9 -0
  148. package/dist/collection/components/gov-form/range/constants.js.map +1 -0
  149. package/dist/collection/components/gov-form/range/gov-form-range.js +610 -0
  150. package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -0
  151. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  152. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -3
  153. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  154. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -1
  155. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  156. package/dist/collection/components/gov-grid/constants.js +2 -0
  157. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  158. package/dist/collection/components/gov-grid/gov-grid-item.js +111 -20
  159. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  160. package/dist/collection/components/gov-grid/gov-grid.js +56 -14
  161. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  162. package/dist/collection/components/gov-icon/gov-icon.js +0 -2
  163. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  164. package/dist/collection/components/gov-infobar/gov-infobar.js +4 -3
  165. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  166. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  167. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  168. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  169. package/dist/collection/components/gov-link/constants.js +1 -0
  170. package/dist/collection/components/gov-link/constants.js.map +1 -1
  171. package/dist/collection/components/gov-link/gov-link.js +20 -1
  172. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  173. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  174. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +3 -2
  175. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  176. package/dist/collection/components/gov-message/gov-message.js +1 -1
  177. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  178. package/dist/collection/components/gov-pagination/gov-pagination.js +2 -1
  179. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  180. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  181. package/dist/collection/components/gov-stepper/constants.js +2 -0
  182. package/dist/collection/components/gov-stepper/constants.js.map +1 -1
  183. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  184. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
  185. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  186. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  187. package/dist/collection/components/gov-tabs/gov-tabs.js +3 -2
  188. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  189. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  190. package/dist/collection/components/gov-theme-switch/constants.js +1 -0
  191. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  192. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  193. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  194. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  195. package/dist/collection/components/gov-toast/gov-toast.js +3 -2
  196. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  197. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  198. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  199. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  200. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  201. package/dist/collection/data/color-definitions.js +13 -13
  202. package/dist/collection/data/font-definitions.js +86 -48
  203. package/dist/collection/pages/Banner.js +268 -0
  204. package/dist/collection/pages/Banner.js.map +1 -0
  205. package/dist/collection/pages/Blockquote.js +25 -0
  206. package/dist/collection/pages/Blockquote.js.map +1 -0
  207. package/dist/collection/pages/Breadcrumbs.js +2 -2
  208. package/dist/collection/pages/Breadcrumbs.js.map +1 -1
  209. package/dist/collection/pages/Card.js +27 -17
  210. package/dist/collection/pages/Card.js.map +1 -1
  211. package/dist/collection/pages/Flex.js +1 -1
  212. package/dist/collection/pages/Flex.js.map +1 -1
  213. package/dist/collection/pages/Forms.js +209 -4
  214. package/dist/collection/pages/Forms.js.map +1 -1
  215. package/dist/collection/pages/Grid.js +61 -40
  216. package/dist/collection/pages/Grid.js.map +1 -1
  217. package/dist/collection/pages/Home.js +57 -0
  218. package/dist/collection/pages/Home.js.map +1 -1
  219. package/dist/collection/pages/Infobar.js +36 -56
  220. package/dist/collection/pages/Infobar.js.map +1 -1
  221. package/dist/collection/pages/Layout.js +10 -10
  222. package/dist/collection/pages/Layout.js.map +1 -1
  223. package/dist/collection/pages/Message.js +10 -10
  224. package/dist/collection/pages/Message.js.map +1 -1
  225. package/dist/collection/pages/Tag.js +14 -0
  226. package/dist/collection/pages/Tag.js.map +1 -1
  227. package/dist/collection/pages/Tiles.js +8 -235
  228. package/dist/collection/pages/Tiles.js.map +1 -1
  229. package/dist/collection/pages/Typography.js +117 -51
  230. package/dist/collection/pages/Typography.js.map +1 -1
  231. package/dist/components/gov-accordion-item.js +1 -1
  232. package/dist/components/gov-attachments-item.js +1 -1
  233. package/dist/components/gov-attachments.js +1 -1
  234. package/dist/components/gov-backdrop.js +1 -1
  235. package/dist/components/{gov-tiles.d.ts → gov-banner.d.ts} +4 -4
  236. package/dist/components/gov-banner.js +2 -0
  237. package/dist/components/gov-banner.js.map +1 -0
  238. package/dist/components/gov-blockquote.d.ts +11 -0
  239. package/dist/components/gov-blockquote.js +2 -0
  240. package/dist/components/gov-blockquote.js.map +1 -0
  241. package/dist/components/gov-breadcrumbs.js +1 -1
  242. package/dist/components/gov-breadcrumbs.js.map +1 -1
  243. package/dist/components/gov-button.js +1 -1
  244. package/dist/components/gov-card.js +1 -1
  245. package/dist/components/gov-card.js.map +1 -1
  246. package/dist/components/gov-chip.js +1 -1
  247. package/dist/components/gov-container.js +1 -1
  248. package/dist/components/gov-control-group.js +1 -1
  249. package/dist/components/gov-cookiebar.js +1 -1
  250. package/dist/components/gov-dialog.js +1 -1
  251. package/dist/components/gov-dialog.js.map +1 -1
  252. package/dist/components/gov-dropdown.js +1 -1
  253. package/dist/components/gov-empty.js +1 -1
  254. package/dist/components/gov-error-code.js +1 -1
  255. package/dist/components/gov-flex.js +1 -1
  256. package/dist/components/gov-flex.js.map +1 -1
  257. package/dist/components/gov-form-autocomplete.js +1 -1
  258. package/dist/components/gov-form-checkbox-group.js +1 -1
  259. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  260. package/dist/components/gov-form-checkbox.js +1 -1
  261. package/dist/components/gov-form-checkbox.js.map +1 -1
  262. package/dist/components/gov-form-control.js +1 -1
  263. package/dist/components/gov-form-file.js +1 -1
  264. package/dist/components/gov-form-file.js.map +1 -1
  265. package/dist/components/gov-form-group.js +1 -1
  266. package/dist/components/gov-form-input.js +1 -1
  267. package/dist/components/gov-form-label.js +1 -1
  268. package/dist/components/gov-form-message.js +1 -1
  269. package/dist/components/gov-form-multi-select.js +1 -1
  270. package/dist/components/gov-form-multi-select.js.map +1 -1
  271. package/dist/components/gov-form-password-power.js +1 -1
  272. package/dist/components/gov-form-radio-group.js +1 -1
  273. package/dist/components/gov-form-radio-group.js.map +1 -1
  274. package/dist/components/gov-form-radio.js +1 -1
  275. package/dist/components/gov-form-radio.js.map +1 -1
  276. package/dist/components/gov-form-range.d.ts +11 -0
  277. package/dist/components/gov-form-range.js +2 -0
  278. package/dist/components/gov-form-range.js.map +1 -0
  279. package/dist/components/gov-form-search.js +1 -1
  280. package/dist/components/gov-form-select.js +1 -1
  281. package/dist/components/gov-form-switch.js +1 -1
  282. package/dist/components/gov-form-switch.js.map +1 -1
  283. package/dist/components/gov-grid-item.js +1 -1
  284. package/dist/components/gov-grid-item.js.map +1 -1
  285. package/dist/components/gov-grid.js +1 -1
  286. package/dist/components/gov-grid.js.map +1 -1
  287. package/dist/components/gov-icon.js +1 -1
  288. package/dist/components/gov-infobar.js +1 -1
  289. package/dist/components/gov-infobar.js.map +1 -1
  290. package/dist/components/gov-layout-column.js +1 -1
  291. package/dist/components/gov-layout-column.js.map +1 -1
  292. package/dist/components/gov-layout.js +1 -1
  293. package/dist/components/gov-lifecycle.js +1 -1
  294. package/dist/components/gov-link.js +1 -1
  295. package/dist/components/gov-link.js.map +1 -1
  296. package/dist/components/gov-loading.js +1 -1
  297. package/dist/components/gov-message.js +1 -1
  298. package/dist/components/gov-message.js.map +1 -1
  299. package/dist/components/gov-pagination.js +1 -1
  300. package/dist/components/gov-pagination.js.map +1 -1
  301. package/dist/components/gov-skeleton.js +1 -1
  302. package/dist/components/gov-spacer.js +1 -1
  303. package/dist/components/gov-stepper-item.js +1 -1
  304. package/dist/components/gov-stepper-item.js.map +1 -1
  305. package/dist/components/gov-stepper.js +1 -1
  306. package/dist/components/gov-tabs-item.js +1 -1
  307. package/dist/components/gov-tabs.js +1 -1
  308. package/dist/components/gov-tabs.js.map +1 -1
  309. package/dist/components/gov-tag.js +1 -1
  310. package/dist/components/gov-theme-switch.js +1 -1
  311. package/dist/components/gov-theme-switch.js.map +1 -1
  312. package/dist/components/gov-tile.js +1 -1
  313. package/dist/components/gov-toast.js +1 -1
  314. package/dist/components/gov-toast.js.map +1 -1
  315. package/dist/components/gov-tooltip-content.js +1 -1
  316. package/dist/components/gov-tooltip.js +1 -1
  317. package/dist/components/gov-wizard-item.js +1 -1
  318. package/dist/components/gov-wizard.js +1 -1
  319. package/dist/components/{p-73938936.js → p-022e49cf.js} +2 -2
  320. package/dist/components/p-10cad7f1.js +2 -0
  321. package/dist/components/p-2ca5423c.js +2 -0
  322. package/dist/components/p-2ca5423c.js.map +1 -0
  323. package/dist/components/p-2fe7d728.js +2 -0
  324. package/dist/components/p-2fe7d728.js.map +1 -0
  325. package/dist/components/p-313b4611.js +2 -0
  326. package/dist/components/p-313b4611.js.map +1 -0
  327. package/dist/components/p-5a861cd2.js +2 -0
  328. package/dist/components/p-5a861cd2.js.map +1 -0
  329. package/dist/components/p-5b0934a8.js +2 -0
  330. package/dist/components/p-5b0934a8.js.map +1 -0
  331. package/dist/components/p-5d60b866.js +2 -0
  332. package/dist/components/p-5d60b866.js.map +1 -0
  333. package/dist/components/p-6ce6e14f.js +2 -0
  334. package/dist/components/p-6ce6e14f.js.map +1 -0
  335. package/dist/components/p-7fb16042.js +2 -0
  336. package/dist/components/p-7fb16042.js.map +1 -0
  337. package/dist/components/p-be086357.js +2 -0
  338. package/dist/components/p-d3435179.js +2 -0
  339. package/dist/components/p-d3435179.js.map +1 -0
  340. package/dist/components/p-de989dfe.js +2 -0
  341. package/dist/components/{p-7be2301a.js → p-e0c3b1a7.js} +2 -2
  342. package/dist/components/p-ea128b8b.js +2 -0
  343. package/dist/components/p-ea128b8b.js.map +1 -0
  344. package/dist/components/p-f9b1a12b.js +2 -0
  345. package/dist/components/p-f9b1a12b.js.map +1 -0
  346. package/dist/components/{p-e44a0fee.js → p-fc2afe61.js} +2 -2
  347. package/dist/components/{p-e44a0fee.js.map → p-fc2afe61.js.map} +1 -1
  348. package/dist/core/core.css +3541 -2361
  349. package/dist/core/core.esm.js +1 -1
  350. package/dist/core/core.esm.js.map +1 -1
  351. package/dist/core/p-07590d84.entry.js +2 -0
  352. package/dist/core/p-07590d84.entry.js.map +1 -0
  353. package/dist/core/p-08552a0e.entry.js +2 -0
  354. package/dist/core/p-08552a0e.entry.js.map +1 -0
  355. package/dist/core/p-0abc38e8.entry.js +2 -0
  356. package/dist/core/p-0abc38e8.entry.js.map +1 -0
  357. package/dist/core/p-0c393d2f.entry.js +2 -0
  358. package/dist/core/p-0c393d2f.entry.js.map +1 -0
  359. package/dist/core/p-0ef1f684.entry.js +2 -0
  360. package/dist/core/p-0ef1f684.entry.js.map +1 -0
  361. package/dist/core/p-16ece889.entry.js +2 -0
  362. package/dist/core/p-16ece889.entry.js.map +1 -0
  363. package/dist/core/p-171e2a2f.entry.js +2 -0
  364. package/dist/core/p-2536a8ff.entry.js +2 -0
  365. package/dist/core/p-2536a8ff.entry.js.map +1 -0
  366. package/dist/core/p-25615325.entry.js +2 -0
  367. package/dist/core/p-2a7bcce0.entry.js +2 -0
  368. package/dist/core/p-2a7bcce0.entry.js.map +1 -0
  369. package/dist/core/p-2ca5423c.js +2 -0
  370. package/dist/core/p-2ca5423c.js.map +1 -0
  371. package/dist/core/{p-9514520c.entry.js → p-2f966102.entry.js} +2 -2
  372. package/dist/core/p-2f966102.entry.js.map +1 -0
  373. package/dist/core/p-2fe7d728.js +2 -0
  374. package/dist/core/p-2fe7d728.js.map +1 -0
  375. package/dist/core/p-3583dcf7.entry.js +2 -0
  376. package/dist/core/p-3583dcf7.entry.js.map +1 -0
  377. package/dist/core/p-3b2267a1.entry.js +2 -0
  378. package/dist/core/{p-e078dab3.entry.js.map → p-3b2267a1.entry.js.map} +1 -1
  379. package/dist/core/p-4216d8f3.entry.js +2 -0
  380. package/dist/core/p-44c912e2.entry.js +2 -0
  381. package/dist/core/p-44c912e2.entry.js.map +1 -0
  382. package/dist/core/p-4d5f768f.entry.js +2 -0
  383. package/dist/core/{p-a8a5e8ca.entry.js.map → p-4d5f768f.entry.js.map} +1 -1
  384. package/dist/core/p-52103c05.entry.js +2 -0
  385. package/dist/core/p-52103c05.entry.js.map +1 -0
  386. package/dist/core/p-52bb8e4f.entry.js +2 -0
  387. package/dist/core/p-52bb8e4f.entry.js.map +1 -0
  388. package/dist/core/p-52c74fc5.entry.js +2 -0
  389. package/dist/core/{p-07b1fa1c.entry.js.map → p-52c74fc5.entry.js.map} +1 -1
  390. package/dist/core/p-548806cb.entry.js +2 -0
  391. package/dist/core/p-548806cb.entry.js.map +1 -0
  392. package/dist/core/p-5fa4965e.entry.js +2 -0
  393. package/dist/core/{p-f9474bb3.entry.js.map → p-5fa4965e.entry.js.map} +1 -1
  394. package/dist/core/p-6d54ce5f.js +2 -0
  395. package/dist/core/p-6f74eb08.entry.js +2 -0
  396. package/dist/core/{p-eed4e606.entry.js → p-75dae924.entry.js} +2 -2
  397. package/dist/core/{p-eed4e606.entry.js.map → p-75dae924.entry.js.map} +1 -1
  398. package/dist/core/p-774ea182.entry.js +2 -0
  399. package/dist/core/p-843f980a.entry.js +2 -0
  400. package/dist/core/p-8a72ebcd.entry.js +2 -0
  401. package/dist/core/p-8cd7a120.entry.js +2 -0
  402. package/dist/core/p-8cd7a120.entry.js.map +1 -0
  403. package/dist/core/{p-5ff7f0c4.entry.js → p-8f469270.entry.js} +2 -2
  404. package/dist/core/p-947804a8.entry.js +2 -0
  405. package/dist/core/p-979ff58c.entry.js +2 -0
  406. package/dist/core/p-979ff58c.entry.js.map +1 -0
  407. package/dist/core/{p-ab500948.entry.js → p-981f217e.entry.js} +2 -2
  408. package/dist/core/p-9c1f3e9e.entry.js +2 -0
  409. package/dist/core/p-9c1f3e9e.entry.js.map +1 -0
  410. package/dist/core/p-a1c825f3.entry.js +2 -0
  411. package/dist/core/p-a1c825f3.entry.js.map +1 -0
  412. package/dist/core/p-a440365f.entry.js +2 -0
  413. package/dist/core/p-a440365f.entry.js.map +1 -0
  414. package/dist/core/{p-bd667900.entry.js → p-a70c7959.entry.js} +2 -2
  415. package/dist/core/p-a8a7ae96.entry.js +2 -0
  416. package/dist/core/p-a8a7ae96.entry.js.map +1 -0
  417. package/dist/core/p-aacafa40.entry.js +2 -0
  418. package/dist/core/{p-72c4ebcd.entry.js.map → p-aacafa40.entry.js.map} +1 -1
  419. package/dist/core/p-aeaba3ef.entry.js +2 -0
  420. package/dist/core/p-b87e5429.entry.js +2 -0
  421. package/dist/core/p-b87e5429.entry.js.map +1 -0
  422. package/dist/core/p-b9f1c2ef.entry.js +2 -0
  423. package/dist/core/p-b9f1c2ef.entry.js.map +1 -0
  424. package/dist/core/p-bca478fd.entry.js +2 -0
  425. package/dist/core/{p-f98f19f6.entry.js.map → p-bca478fd.entry.js.map} +1 -1
  426. package/dist/core/p-be086357.js +2 -0
  427. package/dist/core/p-bea685cb.entry.js +2 -0
  428. package/dist/core/p-c1584cfe.entry.js +2 -0
  429. package/dist/core/p-c1584cfe.entry.js.map +1 -0
  430. package/dist/core/p-c5a49469.entry.js +2 -0
  431. package/dist/core/p-c88d8659.entry.js +2 -0
  432. package/dist/core/p-c88d8659.entry.js.map +1 -0
  433. package/dist/core/{p-49ebfe10.entry.js → p-cba1ebca.entry.js} +2 -2
  434. package/dist/core/p-ccb64e4e.entry.js +2 -0
  435. package/dist/core/p-d383f977.entry.js +2 -0
  436. package/dist/core/p-d990aae8.entry.js +2 -0
  437. package/dist/core/p-ddb3772f.entry.js +2 -0
  438. package/dist/core/{p-fd7a3951.entry.js.map → p-ddb3772f.entry.js.map} +1 -1
  439. package/dist/core/{p-a58f4e2b.entry.js → p-e2655cb7.entry.js} +2 -2
  440. package/dist/core/p-e29c9924.entry.js +2 -0
  441. package/dist/core/{p-a5648769.entry.js.map → p-e29c9924.entry.js.map} +1 -1
  442. package/dist/core/p-ea128b8b.js +2 -0
  443. package/dist/core/p-ea128b8b.js.map +1 -0
  444. package/dist/core/p-ead1f58d.entry.js +2 -0
  445. package/dist/core/p-f83b3b08.entry.js +2 -0
  446. package/dist/core/p-f83b3b08.entry.js.map +1 -0
  447. package/dist/core/{p-e44a0fee.js → p-fc2afe61.js} +2 -2
  448. package/dist/core/{p-e44a0fee.js.map → p-fc2afe61.js.map} +1 -1
  449. package/dist/esm/{array.utils-85696abd.js → array.utils-3b213795.js} +2 -2
  450. package/dist/esm/{array.utils-85696abd.js.map → array.utils-3b213795.js.map} +1 -1
  451. package/dist/esm/{constants-4da2b3c0.js → constants-1548499a.js} +2 -2
  452. package/dist/esm/{constants-4da2b3c0.js.map → constants-1548499a.js.map} +1 -1
  453. package/dist/esm/{constants-372455eb.js → constants-7b1ce2ec.js} +3 -1
  454. package/dist/esm/constants-7b1ce2ec.js.map +1 -0
  455. package/dist/esm/{constants-2d5a0e18.js → constants-dc2115cb.js} +3 -1
  456. package/dist/esm/constants-dc2115cb.js.map +1 -0
  457. package/dist/esm/core.js +1 -1
  458. package/dist/esm/gov-attachments_3.entry.js +4 -4
  459. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  460. package/dist/esm/gov-backdrop.entry.js +2 -2
  461. package/dist/esm/gov-banner.entry.js +76 -0
  462. package/dist/esm/gov-banner.entry.js.map +1 -0
  463. package/dist/esm/gov-blockquote.entry.js +29 -0
  464. package/dist/esm/gov-blockquote.entry.js.map +1 -0
  465. package/dist/esm/gov-breadcrumbs.entry.js +3 -3
  466. package/dist/esm/gov-button.entry.js +7 -6
  467. package/dist/esm/gov-button.entry.js.map +1 -1
  468. package/dist/esm/gov-card.entry.js +11 -3
  469. package/dist/esm/gov-card.entry.js.map +1 -1
  470. package/dist/esm/gov-chip.entry.js +4 -3
  471. package/dist/esm/gov-chip.entry.js.map +1 -1
  472. package/dist/esm/gov-container.entry.js +1 -1
  473. package/dist/esm/gov-control-group.entry.js +1 -1
  474. package/dist/esm/gov-cookiebar.entry.js +1 -1
  475. package/dist/esm/gov-dialog.entry.js +3 -3
  476. package/dist/esm/gov-dialog.entry.js.map +1 -1
  477. package/dist/esm/gov-dropdown.entry.js +1 -1
  478. package/dist/esm/gov-empty.entry.js +1 -1
  479. package/dist/esm/gov-error-code.entry.js +1 -1
  480. package/dist/esm/gov-flex_3.entry.js +5 -5
  481. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  482. package/dist/esm/gov-form-autocomplete.entry.js +5 -4
  483. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  484. package/dist/esm/gov-form-checkbox-group.entry.js +5 -5
  485. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  486. package/dist/esm/gov-form-checkbox.entry.js +2 -1
  487. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  488. package/dist/esm/gov-form-control.entry.js +1 -1
  489. package/dist/esm/gov-form-file.entry.js +3 -2
  490. package/dist/esm/gov-form-file.entry.js.map +1 -1
  491. package/dist/esm/gov-form-group.entry.js +2 -2
  492. package/dist/esm/gov-form-input_2.entry.js +10 -8
  493. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  494. package/dist/esm/gov-form-label.entry.js +1 -1
  495. package/dist/esm/gov-form-multi-select.entry.js +6 -5
  496. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  497. package/dist/esm/gov-form-password-power.entry.js +1 -1
  498. package/dist/esm/gov-form-radio-group.entry.js +3 -3
  499. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  500. package/dist/esm/gov-form-radio.entry.js +2 -1
  501. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  502. package/dist/esm/gov-form-range.entry.js +203 -0
  503. package/dist/esm/gov-form-range.entry.js.map +1 -0
  504. package/dist/esm/gov-form-search.entry.js +1 -1
  505. package/dist/esm/gov-form-select.entry.js +6 -5
  506. package/dist/esm/gov-form-select.entry.js.map +1 -1
  507. package/dist/esm/gov-form-switch.entry.js +2 -1
  508. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  509. package/dist/esm/gov-grid-item.entry.js +13 -7
  510. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  511. package/dist/esm/gov-grid.entry.js +7 -5
  512. package/dist/esm/gov-grid.entry.js.map +1 -1
  513. package/dist/esm/gov-infobar.entry.js +4 -3
  514. package/dist/esm/gov-infobar.entry.js.map +1 -1
  515. package/dist/esm/gov-layout-column.entry.js +1 -1
  516. package/dist/esm/gov-layout.entry.js +1 -1
  517. package/dist/esm/gov-lifecycle.entry.js +1 -1
  518. package/dist/esm/gov-link.entry.js +3 -1
  519. package/dist/esm/gov-link.entry.js.map +1 -1
  520. package/dist/esm/gov-loading.entry.js +1 -1
  521. package/dist/esm/gov-message.entry.js +1 -1
  522. package/dist/esm/gov-message.entry.js.map +1 -1
  523. package/dist/esm/gov-pagination.entry.js +4 -3
  524. package/dist/esm/gov-pagination.entry.js.map +1 -1
  525. package/dist/esm/gov-spacer.entry.js +1 -1
  526. package/dist/esm/gov-stepper-item.entry.js +2 -2
  527. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  528. package/dist/esm/gov-stepper.entry.js +2 -2
  529. package/dist/esm/gov-tabs-item.entry.js +1 -1
  530. package/dist/esm/gov-tabs.entry.js +4 -3
  531. package/dist/esm/gov-tabs.entry.js.map +1 -1
  532. package/dist/esm/gov-tag.entry.js +1 -1
  533. package/dist/esm/gov-tile.entry.js +1 -1
  534. package/dist/esm/gov-toast.entry.js +3 -2
  535. package/dist/esm/gov-toast.entry.js.map +1 -1
  536. package/dist/esm/gov-tooltip-content.entry.js +1 -1
  537. package/dist/esm/gov-tooltip.entry.js +2 -2
  538. package/dist/esm/gov-wizard-item.entry.js +2 -2
  539. package/dist/esm/gov-wizard.entry.js +3 -3
  540. package/dist/esm/{helpers.types-43ddbdb8.js → helpers.types-fe2f0447.js} +3 -2
  541. package/dist/esm/helpers.types-fe2f0447.js.map +1 -0
  542. package/dist/esm/index-bf8a6f64.js +12 -4
  543. package/dist/esm/loader.js +1 -1
  544. package/dist/esm/{wcag-253a4421.js → wcag-bd11d341.js} +2 -2
  545. package/dist/esm/{wcag-253a4421.js.map → wcag-bd11d341.js.map} +1 -1
  546. package/dist/hydrate/index.js +478 -133
  547. package/dist/hydrate/index.mjs +478 -133
  548. package/dist/stencil.config.js +3 -2
  549. package/dist/stencil.config.js.map +1 -1
  550. package/dist/types/components/gov-banner/constants.d.ts +26 -0
  551. package/dist/types/components/gov-banner/gov-banner.d.ts +28 -0
  552. package/dist/types/components/gov-blockquote/constants.d.ts +10 -0
  553. package/dist/types/components/gov-blockquote/gov-blockquote.d.ts +15 -0
  554. package/dist/types/components/gov-button/button/constants.d.ts +1 -1
  555. package/dist/types/components/gov-card/gov-card.d.ts +10 -0
  556. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  557. package/dist/types/components/gov-flex/gov-flex.d.ts +5 -1
  558. package/dist/types/components/gov-form/group/constants.d.ts +1 -1
  559. package/dist/types/components/gov-form/range/constants.d.ts +9 -0
  560. package/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
  561. package/dist/types/components/gov-grid/constants.d.ts +4 -0
  562. package/dist/types/components/gov-grid/gov-grid-item.d.ts +25 -5
  563. package/dist/types/components/gov-grid/gov-grid.d.ts +11 -2
  564. package/dist/types/components/gov-icon/constants.d.ts +1 -1
  565. package/dist/types/components/gov-infobar/constants.d.ts +1 -1
  566. package/dist/types/components/gov-link/constants.d.ts +1 -0
  567. package/dist/types/components/gov-link/gov-link.d.ts +4 -0
  568. package/dist/types/components/gov-stepper/constants.d.ts +2 -0
  569. package/dist/types/components/gov-theme-switch/constants.d.ts +1 -0
  570. package/dist/types/components.d.ts +357 -36
  571. package/dist/types/pages/Banner.d.ts +3 -0
  572. package/dist/types/pages/Blockquote.d.ts +3 -0
  573. package/package.json +3 -3
  574. package/dist/cjs/constants-4dfa23e3.js.map +0 -1
  575. package/dist/cjs/constants-52053f2d.js.map +0 -1
  576. package/dist/cjs/gov-tiles.cjs.entry.js +0 -26
  577. package/dist/cjs/gov-tiles.cjs.entry.js.map +0 -1
  578. package/dist/cjs/helpers.types-ff60c9bd.js.map +0 -1
  579. package/dist/collection/components/gov-tile/container/constants.js +0 -4
  580. package/dist/collection/components/gov-tile/container/constants.js.map +0 -1
  581. package/dist/collection/components/gov-tile/container/gov-tiles.js +0 -37
  582. package/dist/collection/components/gov-tile/container/gov-tiles.js.map +0 -1
  583. package/dist/components/gov-tiles.js +0 -2
  584. package/dist/components/gov-tiles.js.map +0 -1
  585. package/dist/components/p-076c8b31.js +0 -2
  586. package/dist/components/p-076c8b31.js.map +0 -1
  587. package/dist/components/p-13a70392.js +0 -2
  588. package/dist/components/p-13a70392.js.map +0 -1
  589. package/dist/components/p-2aedc81e.js +0 -2
  590. package/dist/components/p-2aedc81e.js.map +0 -1
  591. package/dist/components/p-4d513423.js +0 -2
  592. package/dist/components/p-4d513423.js.map +0 -1
  593. package/dist/components/p-4faecdb2.js +0 -2
  594. package/dist/components/p-4faecdb2.js.map +0 -1
  595. package/dist/components/p-558cbab0.js +0 -2
  596. package/dist/components/p-558cbab0.js.map +0 -1
  597. package/dist/components/p-80dad64b.js +0 -2
  598. package/dist/components/p-880743a5.js +0 -2
  599. package/dist/components/p-880743a5.js.map +0 -1
  600. package/dist/components/p-a521c59a.js +0 -2
  601. package/dist/components/p-a521c59a.js.map +0 -1
  602. package/dist/components/p-a877bf8a.js +0 -2
  603. package/dist/components/p-a877bf8a.js.map +0 -1
  604. package/dist/components/p-b97d8edd.js +0 -2
  605. package/dist/components/p-b97d8edd.js.map +0 -1
  606. package/dist/components/p-c438a723.js +0 -2
  607. package/dist/components/p-c5e91e5a.js +0 -2
  608. package/dist/components/p-c5e91e5a.js.map +0 -1
  609. package/dist/components/p-ded281e6.js +0 -2
  610. package/dist/core/p-07b1fa1c.entry.js +0 -2
  611. package/dist/core/p-0932c74d.entry.js +0 -2
  612. package/dist/core/p-13c6da90.entry.js +0 -2
  613. package/dist/core/p-13c6da90.entry.js.map +0 -1
  614. package/dist/core/p-15a7b952.entry.js +0 -2
  615. package/dist/core/p-15a7b952.entry.js.map +0 -1
  616. package/dist/core/p-2470194a.entry.js +0 -2
  617. package/dist/core/p-2470194a.entry.js.map +0 -1
  618. package/dist/core/p-29ac15d2.js +0 -2
  619. package/dist/core/p-2abdce2d.entry.js +0 -2
  620. package/dist/core/p-2abdce2d.entry.js.map +0 -1
  621. package/dist/core/p-2ae8b8d5.entry.js +0 -2
  622. package/dist/core/p-2ae8b8d5.entry.js.map +0 -1
  623. package/dist/core/p-2aedc81e.js +0 -2
  624. package/dist/core/p-2aedc81e.js.map +0 -1
  625. package/dist/core/p-3627773f.entry.js +0 -2
  626. package/dist/core/p-3627773f.entry.js.map +0 -1
  627. package/dist/core/p-36b35592.entry.js +0 -2
  628. package/dist/core/p-36b35592.entry.js.map +0 -1
  629. package/dist/core/p-3974176f.entry.js +0 -2
  630. package/dist/core/p-3974176f.entry.js.map +0 -1
  631. package/dist/core/p-3b8b331f.entry.js +0 -2
  632. package/dist/core/p-41e0ad2e.entry.js +0 -2
  633. package/dist/core/p-41e0ad2e.entry.js.map +0 -1
  634. package/dist/core/p-4aa5db49.entry.js +0 -2
  635. package/dist/core/p-4aa5db49.entry.js.map +0 -1
  636. package/dist/core/p-5e42395f.entry.js +0 -2
  637. package/dist/core/p-5e42395f.entry.js.map +0 -1
  638. package/dist/core/p-72c4ebcd.entry.js +0 -2
  639. package/dist/core/p-72cdac94.entry.js +0 -2
  640. package/dist/core/p-77bf7b01.entry.js +0 -2
  641. package/dist/core/p-77bf7b01.entry.js.map +0 -1
  642. package/dist/core/p-7a44bd0a.entry.js +0 -2
  643. package/dist/core/p-7a44bd0a.entry.js.map +0 -1
  644. package/dist/core/p-7c0be05a.entry.js +0 -2
  645. package/dist/core/p-7c0be05a.entry.js.map +0 -1
  646. package/dist/core/p-80c7db1f.entry.js +0 -2
  647. package/dist/core/p-80c7db1f.entry.js.map +0 -1
  648. package/dist/core/p-880743a5.js +0 -2
  649. package/dist/core/p-880743a5.js.map +0 -1
  650. package/dist/core/p-8e5f45d0.entry.js +0 -2
  651. package/dist/core/p-8ede0622.entry.js +0 -2
  652. package/dist/core/p-9256cf6c.entry.js +0 -2
  653. package/dist/core/p-93179cbf.entry.js +0 -2
  654. package/dist/core/p-93179cbf.entry.js.map +0 -1
  655. package/dist/core/p-93b747c1.entry.js +0 -2
  656. package/dist/core/p-9514520c.entry.js.map +0 -1
  657. package/dist/core/p-9897ac81.entry.js +0 -2
  658. package/dist/core/p-9897ac81.entry.js.map +0 -1
  659. package/dist/core/p-9e77f076.entry.js +0 -2
  660. package/dist/core/p-9fcb2ba7.entry.js +0 -2
  661. package/dist/core/p-a0728f09.entry.js +0 -2
  662. package/dist/core/p-a0728f09.entry.js.map +0 -1
  663. package/dist/core/p-a22517e2.entry.js +0 -2
  664. package/dist/core/p-a22517e2.entry.js.map +0 -1
  665. package/dist/core/p-a521c59a.js +0 -2
  666. package/dist/core/p-a521c59a.js.map +0 -1
  667. package/dist/core/p-a5648769.entry.js +0 -2
  668. package/dist/core/p-a8a5e8ca.entry.js +0 -2
  669. package/dist/core/p-b319674e.entry.js +0 -2
  670. package/dist/core/p-b404f53c.entry.js +0 -2
  671. package/dist/core/p-c34dad75.entry.js +0 -2
  672. package/dist/core/p-c9d70c7a.entry.js +0 -2
  673. package/dist/core/p-d512059d.entry.js +0 -2
  674. package/dist/core/p-ded281e6.js +0 -2
  675. package/dist/core/p-e078dab3.entry.js +0 -2
  676. package/dist/core/p-e4ac787c.entry.js +0 -2
  677. package/dist/core/p-e4ac787c.entry.js.map +0 -1
  678. package/dist/core/p-e7b3b5db.entry.js +0 -2
  679. package/dist/core/p-e7b3b5db.entry.js.map +0 -1
  680. package/dist/core/p-f60265c3.entry.js +0 -2
  681. package/dist/core/p-f6863a64.entry.js +0 -2
  682. package/dist/core/p-f6863a64.entry.js.map +0 -1
  683. package/dist/core/p-f9474bb3.entry.js +0 -2
  684. package/dist/core/p-f98f19f6.entry.js +0 -2
  685. package/dist/core/p-fd7a3951.entry.js +0 -2
  686. package/dist/esm/constants-2d5a0e18.js.map +0 -1
  687. package/dist/esm/constants-372455eb.js.map +0 -1
  688. package/dist/esm/gov-tiles.entry.js +0 -22
  689. package/dist/esm/gov-tiles.entry.js.map +0 -1
  690. package/dist/esm/helpers.types-43ddbdb8.js.map +0 -1
  691. package/dist/types/components/gov-tile/container/constants.d.ts +0 -3
  692. package/dist/types/components/gov-tile/container/gov-tiles.d.ts +0 -10
  693. /package/dist/components/{p-73938936.js.map → p-022e49cf.js.map} +0 -0
  694. /package/dist/components/{p-80dad64b.js.map → p-10cad7f1.js.map} +0 -0
  695. /package/dist/components/{p-ded281e6.js.map → p-be086357.js.map} +0 -0
  696. /package/dist/components/{p-c438a723.js.map → p-de989dfe.js.map} +0 -0
  697. /package/dist/components/{p-7be2301a.js.map → p-e0c3b1a7.js.map} +0 -0
  698. /package/dist/core/{p-93b747c1.entry.js.map → p-171e2a2f.entry.js.map} +0 -0
  699. /package/dist/core/{p-9fcb2ba7.entry.js.map → p-25615325.entry.js.map} +0 -0
  700. /package/dist/core/{p-9256cf6c.entry.js.map → p-4216d8f3.entry.js.map} +0 -0
  701. /package/dist/core/{p-29ac15d2.js.map → p-6d54ce5f.js.map} +0 -0
  702. /package/dist/core/{p-72cdac94.entry.js.map → p-6f74eb08.entry.js.map} +0 -0
  703. /package/dist/core/{p-8e5f45d0.entry.js.map → p-774ea182.entry.js.map} +0 -0
  704. /package/dist/core/{p-f60265c3.entry.js.map → p-843f980a.entry.js.map} +0 -0
  705. /package/dist/core/{p-8ede0622.entry.js.map → p-8a72ebcd.entry.js.map} +0 -0
  706. /package/dist/core/{p-5ff7f0c4.entry.js.map → p-8f469270.entry.js.map} +0 -0
  707. /package/dist/core/{p-b319674e.entry.js.map → p-947804a8.entry.js.map} +0 -0
  708. /package/dist/core/{p-ab500948.entry.js.map → p-981f217e.entry.js.map} +0 -0
  709. /package/dist/core/{p-bd667900.entry.js.map → p-a70c7959.entry.js.map} +0 -0
  710. /package/dist/core/{p-c34dad75.entry.js.map → p-aeaba3ef.entry.js.map} +0 -0
  711. /package/dist/core/{p-ded281e6.js.map → p-be086357.js.map} +0 -0
  712. /package/dist/core/{p-0932c74d.entry.js.map → p-bea685cb.entry.js.map} +0 -0
  713. /package/dist/core/{p-9e77f076.entry.js.map → p-c5a49469.entry.js.map} +0 -0
  714. /package/dist/core/{p-49ebfe10.entry.js.map → p-cba1ebca.entry.js.map} +0 -0
  715. /package/dist/core/{p-b404f53c.entry.js.map → p-ccb64e4e.entry.js.map} +0 -0
  716. /package/dist/core/{p-d512059d.entry.js.map → p-d383f977.entry.js.map} +0 -0
  717. /package/dist/core/{p-3b8b331f.entry.js.map → p-d990aae8.entry.js.map} +0 -0
  718. /package/dist/core/{p-a58f4e2b.entry.js.map → p-e2655cb7.entry.js.map} +0 -0
  719. /package/dist/core/{p-c9d70c7a.entry.js.map → p-ead1f58d.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as i,H as s,c as t,h as e,d as h}from"./p-42200001.js";import{c as a}from"./p-cd6c2938.js";import{v as n}from"./p-0b3574c2.js";import{g as o,n as c,o as d}from"./p-9908b9f0.js";import{g as r,c as l,t as u}from"./p-ea7fdd2e.js";import{F as m}from"./p-1c1d0bbe.js";import{A as f,a as b,i as p}from"./p-33d5d1ed.js";import{d as v}from"./p-a877bf8a.js";const g=i(class i extends s{constructor(){super();this.__registerHost();this.govFocus=t(this,"gov-focus",7);this.govBlur=t(this,"gov-blur",7);this.govChange=t(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=r(this.host);this.f=o(this.h)}validateSize(i){n(d,i,c.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new f(this.host,((i,s)=>{this.onAriaAttributeChange(i,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=p(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(i,s){this.host.removeAttribute(i);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[i]:s})}render(){const i=i=>{if(this.noLabel){return e("label",{class:c.label},i)}return i};return e(h,{class:this.h.classes(c.root),hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:u(this.invalid)},i(e(m,null,e("input",Object.assign({class:c.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:i=>this.inputRef=i,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":u(this.required),"aria-invalid":u(this.invalid),"aria-disabled":u(this.disabled)})),e("span",null,e("span",{class:c.indicator},this.checked&&e("gov-icon",{name:"check-lg",type:"components"})),e("slot",{name:"label"})))))}onClickHandler(i){i.stopPropagation()}onFocusHandler(i){i.stopPropagation();this.govFocus.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onBlurHandler(i){i.stopPropagation();this.govBlur.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onChangeHandler(i){this.checked=i.target.checked;i.stopPropagation();this.govChange.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}},[4,"gov-form-switch",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[513],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}]);function k(){if(typeof customElements==="undefined"){return}const i=["gov-form-switch","gov-icon"];i.forEach((i=>{switch(i){case"gov-form-switch":if(!customElements.get(i)){customElements.define(i,g)}break;case"gov-icon":if(!customElements.get(i)){v()}break}}))}k();const w=g;const j=k;export{w as GovFormSwitch,j as defineCustomElement};
1
+ import{p as i,H as s,c as t,h as e,d as h}from"./p-42200001.js";import{c as a}from"./p-cd6c2938.js";import{v as n}from"./p-0b3574c2.js";import{g as o,n as c,o as d}from"./p-9908b9f0.js";import{g as r,c as l,t as u}from"./p-ea7fdd2e.js";import{F as m}from"./p-1c1d0bbe.js";import{A as f,a as b,i as p}from"./p-33d5d1ed.js";import{d as v}from"./p-5d60b866.js";const g=i(class i extends s{constructor(){super();this.__registerHost();this.govFocus=t(this,"gov-focus",7);this.govBlur=t(this,"gov-blur",7);this.govChange=t(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=r(this.host);this.f=o(this.h)}validateSize(i){n(d,i,c.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new f(this.host,((i,s)=>{this.onAriaAttributeChange(i,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=p(this.host)}disconnectedCallback(){var i;(i=this.attributeObserver)===null||i===void 0?void 0:i.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(i,s){this.host.removeAttribute(i);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[i]:s})}render(){const i=i=>{if(this.noLabel){return e("label",{class:c.label},i)}return i};return e(h,{class:this.h.classes(c.root),hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:u(this.invalid)},i(e(m,null,e("input",Object.assign({class:c.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:i=>this.inputRef=i,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":u(this.required),"aria-invalid":u(this.invalid),"aria-disabled":u(this.disabled)})),e("span",null,e("span",{class:c.indicator},this.checked&&e("gov-icon",{name:"check-lg",type:"components"})),e("slot",{name:"label"})))))}onClickHandler(i){i.stopPropagation()}onFocusHandler(i){i.stopPropagation();this.govFocus.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onBlurHandler(i){i.stopPropagation();this.govBlur.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}onChangeHandler(i){this.checked=i.target.checked;i.stopPropagation();this.govChange.emit({component:c.root,checked:this.checked,value:this.value,originalEvent:i})}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}},[4,"gov-form-switch",{value:[1],noLabel:[4,"no-label"],checked:[1540],required:[4],disabled:[516],name:[1],size:[513],identifier:[1],invalid:[4],inheritedAttributes:[32],getRef:[64]},undefined,{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}]);function k(){if(typeof customElements==="undefined"){return}const i=["gov-form-switch","gov-icon"];i.forEach((i=>{switch(i){case"gov-form-switch":if(!customElements.get(i)){customElements.define(i,g)}break;case"gov-icon":if(!customElements.get(i)){v()}break}}))}k();const w=g;const j=k;export{w as GovFormSwitch,j as defineCustomElement};
2
2
  //# sourceMappingURL=gov-form-switch.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GovFormSwitch","proxyCustomElement","H","constructor","this","hydrated","checkboxId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormSwitchSizes","FormSwitchClass","root","watchDisabled","passControlAttrs","passAttrToControl","size","toBoolAttr","invalid","disabled","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","stopObserving","componentDidRender","passAttrToLabel","identifier","String","required","connectedCallback","removeAttribute","Object","assign","render","wrapCheckbox","children","noLabel","class","label","Host","classes","checked","toBoolAttrIfDefined","Fragment","input","id","type","value","name","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","indicator","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormSwitchEvent} from \"./gov-form-switch.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-form-switch\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Switch button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop({reflect: true}) readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the switch has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label class={FormSwitchClass.label}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} hydrated={this.hydrated} checked={this.checked}\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}>\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\t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AASnD,KAAKmD,QACdM,MAAOzD,KAAKyD,MACZoB,cAAeL,G,CAIT,aAAAL,CAAcK,GACrBA,EAAEC,kBACFzE,KAAK8E,QAAQH,KAAK,CACjBC,UAAW/D,EAAgBC,KAC3BqC,QAASnD,KAAKmD,QACdM,MAAOzD,KAAKyD,MACZoB,cAAeL,G,CAIT,eAAAT,CAAgBS,GACvBxE,KAAKmD,QAAWqB,EAAEO,OAA4B5B,QAC9CqB,EAAEC,kBACFzE,KAAKgF,UAAUL,KAAK,CACnBC,UAAW/D,EAAgBC,KAC3BqC,QAASnD,KAAKmD,QACdM,MAAOzD,KAAKyD,MACZoB,cAAeL,G,CAQjB,YAAMS,GACL,OAAOjF,KAAKsE,Q","ignoreList":[]}
1
+ {"version":3,"names":["GovFormSwitch","proxyCustomElement","H","constructor","this","hydrated","checkboxId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormSwitchSizes","FormSwitchClass","root","watchDisabled","passControlAttrs","passAttrToControl","size","toBoolAttr","invalid","disabled","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","_a","stopObserving","componentDidRender","passAttrToLabel","identifier","String","required","connectedCallback","removeAttribute","Object","assign","render","wrapCheckbox","children","noLabel","class","label","Host","classes","checked","toBoolAttrIfDefined","Fragment","input","id","type","value","name","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","indicator","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormSwitchEvent} from \"./gov-form-switch.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-form-switch\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Switch button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop({reflect: true}) readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the switch has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label class={FormSwitchClass.label}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} hydrated={this.hydrated} checked={this.checked}\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}>\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"mappings":"4WAiBaA,EAAaC,EAAA,MAAAD,UAAAE,EASzB,WAAAC,G,0IAFQC,KAAAC,SAAW,M,kCAiBwC,M,aAIX,M,cAIX,M,cAIe,M,8BAQS,I,0EAkClB,GApE1CD,KAAKE,WAAaC,EAAS,eAE3BH,KAAKI,EAAIC,EAAQL,KAAKM,MACtBN,KAAKO,EAAIC,EAAQR,KAAKI,E,CAsDvB,YAAAK,CAAaC,GACZC,EAAaC,EAAiBF,EAAUG,EAAgBC,K,CAMzD,aAAAC,GACCf,KAAKgB,kB,CAKE,gBAAA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QACdM,MAAO1D,KAAK0D,MACZoB,cAAeL,G,CAQjB,YAAMS,GACL,OAAOlF,KAAKuE,Q","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as s,H as e,h as i,d as t}from"./p-42200001.js";import{a as d}from"./p-880743a5.js";import{g as n}from"./p-ea7fdd2e.js";const o=s(class s extends e{constructor(){super();this.__registerHost();this.size="12/12";this.sizeSm=undefined;this.sizeMd=undefined;this.sizeLg=undefined;this.sizeXl=undefined;this.h=n(this.host)}render(){return i(t,{key:"e1dc6e3517618361ab3b5e3ad499a5bbbaae3d6a",class:this.h.classes(d.root),role:"listitem",size:this.size,"size-sm":this.sizeSm,"size-md":this.sizeMd,"size-lg":this.sizeLg,"size-xl":this.sizeXl},i("slot",{key:"53780db95fa728f252302cb86923ad9e9fcd9b66"}))}get host(){return this}},[4,"gov-grid-item",{size:[1],sizeSm:[1,"size-sm"],sizeMd:[1,"size-md"],sizeLg:[1,"size-lg"],sizeXl:[1,"size-xl"]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-grid-item"];s.forEach((s=>{switch(s){case"gov-grid-item":if(!customElements.get(s)){customElements.define(s,o)}break}}))}r();const m=o;const a=r;export{m as GovGridItem,a as defineCustomElement};
1
+ import{p as s,H as e,h as n,d as t}from"./p-42200001.js";import{a as o}from"./p-ea128b8b.js";import{g as i}from"./p-ea7fdd2e.js";const d=s(class s extends e{constructor(){super();this.__registerHost();this.column="12";this.columnSm=undefined;this.columnMd=undefined;this.columnLg=undefined;this.columnXl=undefined;this.row="1";this.rowSm=undefined;this.rowMd=undefined;this.rowLg=undefined;this.rowXl=undefined;this.h=i(this.host)}render(){return n(t,{key:"30f35aa2a7d4c2456164b6f0001a915796a07b9c",class:this.h.classes(o.root),role:"listitem"},n("slot",{key:"25e3d4f401f56697a3f90abd01b9add8fa1d238b"}))}get host(){return this}},[4,"gov-grid-item",{column:[1,"col-span"],columnSm:[1,"col-span-sm"],columnMd:[1,"col-span-md"],columnLg:[1,"col-span-lg"],columnXl:[1,"col-span-xl"],row:[1,"row-span"],rowSm:[1,"row-span-sm"],rowMd:[1,"row-span-md"],rowLg:[1,"row-span-lg"],rowXl:[1,"row-span-xl"]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-grid-item"];s.forEach((s=>{switch(s){case"gov-grid-item":if(!customElements.get(s)){customElements.define(s,d)}break}}))}r();const a=d;const m=r;export{a as GovGridItem,m as defineCustomElement};
2
2
  //# sourceMappingURL=gov-grid-item.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GovGridItem","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","GridItemClass","root","role","size","sizeSm","sizeMd","sizeLg","sizeXl"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid-item.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop() readonly size: string = '12/12'\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-sm' }) readonly sizeSm: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-md' }) readonly sizeMd: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-lg' }) readonly sizeLg: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'size-xl' }) readonly sizeXl: string\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t\tsize={this.size}\n\t\t\t\tsize-sm={this.sizeSm}\n\t\t\t\tsize-md={this.sizeMd}\n\t\t\t\tsize-lg={this.sizeLg}\n\t\t\t\tsize-xl={this.sizeXl}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"uIAQaA,EAAWC,EAAA,MAAAD,UAAAE,EAGvB,WAAAC,G,wCAQgC,Q,wFAP/BC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAyBvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CACJC,MAAOP,KAAKC,EAAEO,QAAQC,EAAcC,MACpCC,KAAK,WACLC,KAAMZ,KAAKY,KAAI,UACNZ,KAAKa,OAAM,UACXb,KAAKc,OAAM,UACXd,KAAKe,OAAM,UACXf,KAAKgB,QAEdf,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
1
+ {"version":3,"names":["GovGridItem","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","GridItemClass","root","role"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid-item.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridItemClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid-item',\n})\nexport class GovGridItem {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovGridItemElement\n\t/**\n\t * Cell size as a fraction of 1/12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span' }) readonly column: string = \"12\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-sm' }) readonly columnSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-md' }) readonly columnMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-lg' }) readonly columnLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'col-span-xl' }) readonly columnXl?: string\n\t/**\n\t * Connects rows in the grid\n\t */\n\t@Prop({ attribute: 'row-span' }) readonly row: string = \"1\";\n\t/**\n\t * Cell size for SM media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-sm' }) readonly rowSm?: string\n\t/**\n\t * Cell size for MD media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-md' }) readonly rowMd?: string\n\t/**\n\t * Cell size for LG media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-lg' }) readonly rowLg?: string\n\t/**\n\t * Cell size for XL media query and up as a fraction of 12 of the grid size\n\t */\n\t@Prop({ attribute: 'row-span-xl' }) readonly rowXl?: string\n\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={this.h.classes(GridItemClass.root)}\n\t\t\t\trole=\"listitem\"\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"uIAQaA,EAAWC,EAAA,MAAAD,UAAAE,EAGvB,WAAAC,G,0CAQ2D,K,yGAoBH,I,oFA3BvDC,KAAKC,EAAIC,EAAQF,KAAKG,K,CA8CvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CACJC,MAAOP,KAAKC,EAAEO,QAAQC,EAAcC,MACpCC,KAAK,YAELV,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,h as t,d as i}from"./p-42200001.js";import{G as n}from"./p-880743a5.js";import{g as a}from"./p-ea7fdd2e.js";const o=e(class e extends s{constructor(){super();this.__registerHost();this.alignX=undefined;this.alignY=undefined;this.h=a(this.host)}render(){return t(i,{key:"d2f4e42a186e0d8020abc96ef3ca0956e1492d05",class:this.h.classes(n.root),"align-x":this.alignX,"align-y":this.alignY,role:"list"},t("slot",{key:"46c60ccdda81ce271aeaca46bead1bf33e22c041"}))}get host(){return this}},[4,"gov-grid",{alignX:[1,"align-x"],alignY:[1,"align-y"]}]);function r(){if(typeof customElements==="undefined"){return}const e=["gov-grid"];e.forEach((e=>{switch(e){case"gov-grid":if(!customElements.get(e)){customElements.define(e,o)}break}}))}r();const c=o;const d=r;export{c as GovGrid,d as defineCustomElement};
1
+ import{p as s,H as e,h as t,d as i}from"./p-42200001.js";import{G as n}from"./p-ea128b8b.js";import{g as o}from"./p-ea7fdd2e.js";const r=s(class s extends e{constructor(){super();this.__registerHost();this.columns="12";this.alignItems=undefined;this.justifyItems=undefined;this.gap=undefined;this.h=o(this.host)}render(){return t(i,{key:"e5ca7f6e3554f0e3bd52731a81c3ae4cc809a8dd",class:this.h.classes(n.root),role:"list"},t("slot",{key:"e99880d69919891b5b22c0eab933069fbcb4852c"}))}get host(){return this}},[4,"gov-grid",{columns:[513],alignItems:[513,"align-items"],justifyItems:[513,"justify-items"],gap:[513]}]);function c(){if(typeof customElements==="undefined"){return}const s=["gov-grid"];s.forEach((s=>{switch(s){case"gov-grid":if(!customElements.get(s)){customElements.define(s,r)}break}}))}c();const d=r;const a=c;export{d as GovGrid,a as defineCustomElement};
2
2
  //# sourceMappingURL=gov-grid.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GovGrid","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","GridClass","root","alignX","alignY","role"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-x' }) readonly alignX: string\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'align-y' }) readonly alignY: string\n\n\t// vertical / horizontal align\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} align-x={this.alignX} align-y={this.alignY} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"uIAQaA,EAAOC,EAAA,MAAAD,UAAAE,EAGnB,WAAAC,G,0EACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAgBvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQC,EAAUC,MAAK,UAAWV,KAAKW,OAAM,UAAWX,KAAKY,OAAQC,KAAK,QAC7FZ,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
1
+ {"version":3,"names":["GovGrid","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","GridClass","root","role"],"sources":["../../../packages/core/src/components/gov-grid/gov-grid.tsx"],"sourcesContent":["import { Component, Element, h, Host, Prop } from '@stencil/core'\nimport { GridClass, GridSizesType } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-grid',\n})\nexport class GovGrid {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovGridElement\n\n\t/**\n\t * Setting the number of grid columns\n\t */\n\t@Prop({ attribute: 'columns', reflect: true }) columns?: string = \"12\";\n\n\t/**\n\t * Horizontal align of cells\n\t */\n\t@Prop({ attribute: 'align-items', reflect: true }) alignItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * Vertical align of cells\n\t */\n\t@Prop({ attribute: 'justify-items', reflect: true }) justifyItems?: 'start' | 'center' | 'end' | 'stretch';\n\n\t/**\n\t * The gap property creates consistent spacing between flex items in the container.\n\t */\n\t@Prop({ attribute: 'gap', reflect: true }) gap?: GridSizesType;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(GridClass.root)} role=\"list\">\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"uIAQaA,EAAOC,EAAA,MAAAD,UAAAE,EAGnB,WAAAC,G,2CASkE,K,yEARjEC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAyBvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQC,EAAUC,MAAOC,KAAK,QACjDV,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-a877bf8a.js";const a=o;const t=s;export{a as GovIcon,t as defineCustomElement};
1
+ import{G as o,d as s}from"./p-5d60b866.js";const t=o;const p=s;export{t as GovIcon,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-icon.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as o,d as i}from"./p-42200001.js";import{g as a,c as n}from"./p-ea7fdd2e.js";import{F as c}from"./p-1c1d0bbe.js";import{v as l}from"./p-0b3574c2.js";import{C as r}from"./p-5aad3497.js";import{p as b}from"./p-e0e2e9c1.js";import{A as d,a as h,i as f}from"./p-33d5d1ed.js";import{d as m}from"./p-558cbab0.js";import{d as p}from"./p-a877bf8a.js";const g=b(r,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var v;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(v||(v={}));const u={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const y=t(class t extends e{constructor(){super();this.__registerHost();this.govClose=s(this,"gov-close",7);this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){l(g,t,u.root)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(h)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}render(){const t=o("gov-button",{key:"2d0597a56f6edb97e7feff654ba98885fa48033a",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:u.close},o("gov-icon",{key:"c17ba542b02a4910a136eec6cb4556d1857dffb2",name:"x-lg",type:"components"}));return o(i,{key:"d71d1b8ffe158de90f3fb520bd996a8246988d3d",class:this.h.classes(u.root),color:this.color,type:this.type},o("section",Object.assign({key:"12cce82faa13fa39135fe92b0ab61bc2b01fa083",class:u.section},this.inheritedAttributes,{role:this.role}),o("slot",{key:"bc48d4e5dfad03cd9c54054225a4c3db0ec09cd9",name:"icon"}),o("div",{key:"70422e59cb69504d1aca5d45b9f9700b35b344f0",class:u.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:u.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:u.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-infobar",{color:[1],type:[1],role:[1],accessibleCloseLabel:[1,"accessible-close-label"],accessibleToggleLabel:[1,"accessible-toggle-label"],closable:[4],toggleContent:[32],inheritedAttributes:[32]},undefined,{color:["validateColor"]}]);function j(){if(typeof customElements==="undefined"){return}const t=["gov-infobar","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-infobar":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){p()}break}}))}j();const k=y;const C=j;export{k as GovInfobar,C as defineCustomElement};
1
+ import{p as e,H as t,c as s,h as o,d as i}from"./p-42200001.js";import{g as a,c as n}from"./p-ea7fdd2e.js";import{F as c}from"./p-1c1d0bbe.js";import{v as l}from"./p-0b3574c2.js";import{C as r}from"./p-5aad3497.js";import{p as b}from"./p-e0e2e9c1.js";import{A as d,a as h,i as f}from"./p-33d5d1ed.js";import{d as m}from"./p-d3435179.js";import{d as p}from"./p-5d60b866.js";const v=b(r,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var g;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(g||(g={}));const u={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const y=e(class e extends t{constructor(){super();this.__registerHost();this.govClose=s(this,"gov-close",7);this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(e){l(v,e,u.root)}componentDidLoad(){this.attributeObserver=new d(this.host,((e,t)=>{this.onAriaAttributeChange(e,t)}));this.attributeObserver.startObserving(h)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var e;(e=this.attributeObserver)===null||e===void 0?void 0:e.stopObserving()}onAriaAttributeChange(e,t){this.host.removeAttribute(e);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[e]:t})}render(){const e=o("gov-button",{key:"bf4dbf4e33374f5827d51c7fab56ce1de0e86103",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:u.close},o("gov-icon",{key:"c85cebe33a0b06adc79c0adb97d9cabe3d648651",name:"x-lg",type:"components"}));return o(i,{key:"82fe497b7f6d4f3aba3bcad0295bb626587952c1",class:this.h.classes(u.root),color:this.color,type:this.type},o("section",Object.assign({key:"d2b1a013623206d9662c252f189a5b9edeff009d",class:u.section},this.inheritedAttributes,{role:this.role}),this.h.hasSlot("icon")&&o("span",{key:"18efd7eecd6eeb683ba2982f9abb2cfc09e90dab"},o("slot",{key:"cc093214b7fd417c1baec6918e5613f843a7bb55",name:"icon"})),o("div",{key:"07d2db35c654390b08318273dbd76456b75ae5e4",class:u.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:u.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&e))}onCloseHandler(e){this.govClose.emit({component:u.root,ref:this.host,originalEvent:e})}get isBold(){return this.type==="bold"}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-infobar",{color:[1],type:[1],role:[1],accessibleCloseLabel:[1,"accessible-close-label"],accessibleToggleLabel:[1,"accessible-toggle-label"],closable:[4],toggleContent:[32],inheritedAttributes:[32]},undefined,{color:["validateColor"]}]);function k(){if(typeof customElements==="undefined"){return}const e=["gov-infobar","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-infobar":if(!customElements.get(e)){customElements.define(e,y)}break;case"gov-button":if(!customElements.get(e)){m()}break;case"gov-icon":if(!customElements.get(e)){p()}break}}))}k();const j=y;const C=k;export{j as GovInfobar,C as defineCustomElement};
2
2
  //# sourceMappingURL=gov-infobar.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["InfobarColors","pick","Colors","InfobarType","InfobarClass","root","section","content","headline","close","GovInfobar","proxyCustomElement","H","constructor","undefined","this","h","govHost","host","validateColor","newValue","validateProp","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","color","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","stopObserving","removeAttribute","Object","assign","render","closeButton","key","size","accessibleCloseLabel","type","isBold","onCloseHandler","bind","class","name","Host","classes","role","hasSlot","Fragment","accessibleToggleLabel","toggleContent","hidden","toBoolAttr","closable","e","govClose","emit","component","ref","originalEvent"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"mappings":"qXAIO,MAAMA,EAAgBC,EAAKC,EAAQ,CAAC,UAAW,YAAa,UAAW,QAAS,UAAW,YAGlG,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,kBACA,EAHD,CAAYA,MAAW,KAMhB,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,QAAS,uBACTC,SAAU,wBACVC,MAAO,sB,MCHKC,EAAUC,EAAA,MAAAD,UAAAE,EAItB,WAAAC,G,6EASoC,U,UAIO,O,UAIEC,U,0BAIwC,0B,2BAIE,0B,cAQjD,M,mBAEb,M,yBACkB,GAnC1CC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAsCvB,aAAAC,CAAcC,GACbC,EAAarB,EAAeoB,EAAUhB,EAAaC,K,CAGpD,gBAAAiB,GACCP,KAAKQ,kBAAoB,IAAIC,EAAkBT,KAAKG,MAAM,CAACO,EAAeL,KACzEL,KAAKW,sBAAsBD,EAAeL,EAAS,IAGpDL,KAAKQ,kBAAkBI,eA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gC,KAAMjC,KAAKwC,cAAgB,aAAe,eAAgBZ,KAAK,iBAG3E3B,EAAA,OAAKwC,QAASzC,KAAKwC,cAAa,cAAeE,EAAW1C,KAAKwC,gBAC9DvC,EAAA,eAIFA,EAAA,cAGDD,KAAK2C,UAAYnB,G,CAMtB,cAAAM,CAAec,GACd5C,KAAK6C,SAASC,KAAK,CAClBC,UAAW1D,EAAaC,KACxB0D,IAAKhD,KAAKG,KACV8C,cAAeL,G,CAIjB,UAAIf,GACH,OAAO7B,KAAK4B,OAAS,M","ignoreList":[]}
1
+ {"version":3,"names":["InfobarColors","pick","Colors","InfobarType","InfobarClass","root","section","content","headline","close","GovInfobar","proxyCustomElement","H","constructor","undefined","this","h","govHost","host","validateColor","newValue","validateProp","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","color","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","_a","stopObserving","removeAttribute","Object","assign","render","closeButton","key","size","accessibleCloseLabel","type","isBold","onCloseHandler","bind","class","name","Host","classes","role","hasSlot","Fragment","accessibleToggleLabel","toggleContent","hidden","toBoolAttr","closable","e","govClose","emit","component","ref","originalEvent"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t)}\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'} type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"mappings":"qXAIO,MAAMA,EAAgBC,EAAKC,EAAQ,CAAC,UAAW,YAAa,UAAW,QAAS,UAAW,YAGlG,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,kBACA,EAHD,CAAYA,MAAW,KAMhB,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,uBACTC,QAAS,uBACTC,SAAU,wBACVC,MAAO,sB,MCHKC,EAAUC,EAAA,MAAAD,UAAAE,EAItB,WAAAC,G,6EASoC,U,UAIO,O,UAIEC,U,0BAIwC,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CzB,EAAA,QAAAyB,IAAA,2CAAMQ,KAAK,UAGbjC,EAAA,OAAAyB,IAAA,2CAAKO,MAAO5C,EAAaG,SACvBQ,KAAKC,EAAEqC,QAAQ,YACfrC,EAACsC,EAAQ,KACRtC,EAAA,OAAKgC,MAAO5C,EAAaI,UACxBQ,EAAA,QAAMiC,KAAM,aACZjC,EAAA,cACC0B,KAAK,IACLE,KAAK,OACLd,MAAOf,KAAK8B,OAAS9B,KAAKe,MAAQ,UAAS,aAC/Bf,KAAKwC,sBAAqB,eACxB,IAAOxC,KAAKyC,eAAiBzC,KAAKyC,eAEhDxC,EAAA,YAAUiC,KAAMlC,KAAKyC,cAAgB,aAAe,eAAgBZ,KAAK,iBAG3E5B,EAAA,OAAKyC,QAAS1C,KAAKyC,cAAa,cAAeE,EAAW3C,KAAKyC,gBAC9DxC,EAAA,eAIFA,EAAA,cAGDD,KAAK4C,UAAYnB,G,CAMtB,cAAAM,CAAec,GACd7C,KAAK8C,SAASC,KAAK,CAClBC,UAAW3D,EAAaC,KACxB2D,IAAKjD,KAAKG,KACV+C,cAAeL,G,CAIjB,UAAIf,GACH,OAAO9B,KAAK6B,OAAS,M","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as s,d as o}from"./p-42200001.js";import{a as c}from"./p-13ebd887.js";import{g as n}from"./p-ea7fdd2e.js";const a=e(class e extends t{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return s(o,{key:"ebef4ca76b1308a566c862b5a49eecf1eb3fce99",class:this.h.classes(c.root)},s("slot",{key:"aaeefeb1a56b294d91b1327fd52eb16486cfb918"}))}get host(){return this}},[4,"gov-layout-column"]);function r(){if(typeof customElements==="undefined"){return}const e=["gov-layout-column"];e.forEach((e=>{switch(e){case"gov-layout-column":if(!customElements.get(e)){customElements.define(e,a)}break}}))}r();const u=a;const f=r;export{u as GovLayoutColumn,f as defineCustomElement};
1
+ import{p as t,H as s,h as e,d as o}from"./p-42200001.js";import{a}from"./p-13ebd887.js";import{g as n}from"./p-ea7fdd2e.js";const c=t(class t extends s{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return e(o,{key:"48f578ba8365e6f3748a4ac6766784a4062846e1",class:this.h.classes(a.root)},e("slot",{key:"d5aca194eda1174fa71401f66d17743d1f260a50"}))}get host(){return this}},[4,"gov-layout-column"]);function r(){if(typeof customElements==="undefined"){return}const t=["gov-layout-column"];t.forEach((t=>{switch(t){case"gov-layout-column":if(!customElements.get(t)){customElements.define(t,c)}break}}))}r();const u=c;const m=r;export{u as GovLayoutColumn,m as defineCustomElement};
2
2
  //# sourceMappingURL=gov-layout-column.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["GovLayoutColumn","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","LayoutColumnClass","root"],"sources":["../../../packages/core/src/components/gov-layout/gov-layout-column.tsx"],"sourcesContent":["import { Component, Element, h, Host } from '@stencil/core'\nimport { LayoutColumnClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-layout-column',\n})\nexport class GovLayoutColumn {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovLayoutColumnElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LayoutColumnClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"uIAQaA,EAAeC,EAAA,MAAAD,UAAAE,EAG3B,WAAAC,G,8BACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQC,EAAkBC,OAC7CT,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
1
+ {"version":3,"names":["GovLayoutColumn","proxyCustomElement","H","constructor","this","h","govHost","host","render","Host","key","class","classes","LayoutColumnClass","root"],"sources":["../../../packages/core/src/components/gov-layout/gov-layout-column.tsx"],"sourcesContent":["import { Component, Element, h, Host } from '@stencil/core'\nimport { LayoutColumnClass } from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\n@Component({\n\ttag: 'gov-layout-column',\n})\nexport class GovLayoutColumn {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() readonly host: HTMLGovLayoutColumnElement\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LayoutColumnClass.root)}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"kIAQaA,EAAeC,EAAA,MAAAD,UAAAE,EAG3B,WAAAC,G,8BACCC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAKvB,MAAAC,GACC,OACCH,EAACI,EAAI,CAAAC,IAAA,2CAACC,MAAOP,KAAKC,EAAEO,QAAQC,EAAkBC,OAC7CT,EAAA,QAAAK,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,h as e,d as o}from"./p-42200001.js";import{L as c}from"./p-13ebd887.js";import{g as n}from"./p-ea7fdd2e.js";const i=s(class s extends t{constructor(){super();this.__registerHost();this.type="stretch";this.variant=undefined;this.inverse=false;this.h=n(this.host)}typeClass(s,t,e,o){const c=t?"-"+t:"";const n=e?"-"+e:"";const i=o?"-inverse":"";return s+" "+s+c+n+i}render(){return e(o,{key:"c35fc39e07229363bdf36be5856165e7e8eb7985",type:this.type,class:this.h.classes(c.root)},e("section",{key:"dc50cf9cba8bd4e879291fddfbd41955f2d10330",class:this.typeClass(c.section,this.type,this.variant,this.inverse)},e("slot",{key:"017a329c119529d3893e187b6a8bbccfbbc76679"})))}get host(){return this}},[4,"gov-layout",{type:[1],variant:[1],inverse:[4]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-layout"];s.forEach((s=>{switch(s){case"gov-layout":if(!customElements.get(s)){customElements.define(s,i)}break}}))}r();const a=i;const d=r;export{a as GovLayout,d as defineCustomElement};
1
+ import{p as s,H as t,h as e,d as o}from"./p-42200001.js";import{L as c}from"./p-13ebd887.js";import{g as a}from"./p-ea7fdd2e.js";const n=s(class s extends t{constructor(){super();this.__registerHost();this.type="stretch";this.variant=undefined;this.inverse=false;this.h=a(this.host)}typeClass(s,t,e,o){const c=t?"-"+t:"";const a=e?"-"+e:"";const n=o?"-inverse":"";return s+" "+s+c+a+n}render(){return e(o,{key:"f22ec016a02ac1c97f570f167ac14fbcd1a82f21",type:this.type,class:this.h.classes(c.root)},e("section",{key:"b6e46bbe21ac021b63f6afa1f96f2195afd9d456",class:this.typeClass(c.section,this.type,this.variant,this.inverse)},e("slot",{key:"789e8b9c425651966356c485a140dfa7fd549e50"})))}get host(){return this}},[4,"gov-layout",{type:[1],variant:[1],inverse:[4]}]);function i(){if(typeof customElements==="undefined"){return}const s=["gov-layout"];s.forEach((s=>{switch(s){case"gov-layout":if(!customElements.get(s)){customElements.define(s,n)}break}}))}i();const r=n;const f=i;export{r as GovLayout,f as defineCustomElement};
2
2
  //# sourceMappingURL=gov-layout.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,h as n,d as c}from"./p-42200001.js";import{a as t}from"./p-cd6c2938.js";const s=e(class e extends o{constructor(){super();this.__registerHost();this.uniqueId="lifecycle-"+t()}connectedCallback(){console.log("connectedCallback",this.uniqueId)}disconnectedCallback(){console.log("disconnectedCallback",this.uniqueId)}componentWillLoad(){console.log("componentWillLoad",this.uniqueId)}componentDidLoad(){console.log("componentDidLoad",this.uniqueId)}componentShouldUpdate(){console.log("componentShouldUpdate",this.uniqueId)}componentWillRender(){console.log("componentWillRender",this.uniqueId)}componentDidRender(){console.log("componentDidRender",this.uniqueId)}componentWillUpdate(){console.log("componentWillUpdate",this.uniqueId)}componentDidUpdate(){console.log("componentDidUpdate",this.uniqueId)}render(){return n(c,{key:"506eabaae01ae888fa838c10572e55bbe6fb7015",identifier:this.uniqueId},n("span",{key:"7604a29214fdffb1a470d83d7db37a583e5072ed"},"lifecycle ",this.uniqueId))}},[0,"gov-lifecycle"]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-lifecycle"];e.forEach((e=>{switch(e){case"gov-lifecycle":if(!customElements.get(e)){customElements.define(e,s)}break}}))}l();const i=s;const d=l;export{i as GovLifecycle,d as defineCustomElement};
1
+ import{p as e,H as o,h as n,d as c}from"./p-42200001.js";import{a as t}from"./p-cd6c2938.js";const s=e(class e extends o{constructor(){super();this.__registerHost();this.uniqueId="lifecycle-"+t()}connectedCallback(){console.log("connectedCallback",this.uniqueId)}disconnectedCallback(){console.log("disconnectedCallback",this.uniqueId)}componentWillLoad(){console.log("componentWillLoad",this.uniqueId)}componentDidLoad(){console.log("componentDidLoad",this.uniqueId)}componentShouldUpdate(){console.log("componentShouldUpdate",this.uniqueId)}componentWillRender(){console.log("componentWillRender",this.uniqueId)}componentDidRender(){console.log("componentDidRender",this.uniqueId)}componentWillUpdate(){console.log("componentWillUpdate",this.uniqueId)}componentDidUpdate(){console.log("componentDidUpdate",this.uniqueId)}render(){return n(c,{key:"8c519b9d20ae1a95fc4ac207fe447916219deaf4",identifier:this.uniqueId},n("span",{key:"d034bb091344d475bbb1a420d35e88dd1291ba45"},"lifecycle ",this.uniqueId))}},[0,"gov-lifecycle"]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-lifecycle"];e.forEach((e=>{switch(e){case"gov-lifecycle":if(!customElements.get(e)){customElements.define(e,s)}break}}))}l();const d=s;const i=l;export{d as GovLifecycle,i as defineCustomElement};
2
2
  //# sourceMappingURL=gov-lifecycle.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,h as s,d as i}from"./p-42200001.js";import{p as o}from"./p-e0e2e9c1.js";import{S as n}from"./p-92f420cb.js";import{g as r}from"./p-ea7fdd2e.js";import{v as a}from"./p-0b3574c2.js";import{i as c}from"./p-33d5d1ed.js";import{d as h}from"./p-a877bf8a.js";const f=o(n,["_S","_M","_L"]);const m={root:"gov-link"};const d=t(class t extends e{constructor(){super();this.__registerHost();this.size="m";this.external=false;this.href=undefined;this.target=undefined;this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){a(f,t,m.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=c(this.host)}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}render(){return s(i,{key:"233af48c179501fe03ee2e5931806e1955913b59",class:this.h.classes(m.root),size:this.size,href:this.href,external:this.external},s("a",Object.assign({key:"679067805205d76500979620b1ef4405139bb339",class:"element",href:this.href,target:this.target},this.inheritedAttributes),s("slot",{key:"d24c4ab99451f317a453c8131bd0506606322553",name:"icon-start"}),s("slot",{key:"276923f48cdc13985115e8d4e8860a2fb0c692e2"}),this.external?s("gov-icon",{name:"box-arrow-up-right",type:"components"}):s("slot",{name:"icon-end"})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-link",{size:[1],external:[4],href:[1],target:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"]}]);function l(){if(typeof customElements==="undefined"){return}const t=["gov-link","gov-icon"];t.forEach((t=>{switch(t){case"gov-link":if(!customElements.get(t)){customElements.define(t,d)}break;case"gov-icon":if(!customElements.get(t)){h()}break}}))}l();const p=d;const b=l;export{p as GovLink,b as defineCustomElement};
1
+ import{p as e,H as t,h as s,d as i}from"./p-42200001.js";import{p as n}from"./p-e0e2e9c1.js";import{S as o}from"./p-92f420cb.js";import{g as a}from"./p-ea7fdd2e.js";import{v as r}from"./p-0b3574c2.js";import{i as c}from"./p-33d5d1ed.js";import{d}from"./p-5d60b866.js";const f=n(o,["_S","_M","_L"]);const h={root:"gov-link",external:"gov-link--external"};const l=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.external=false;this.truncate=false;this.href=undefined;this.target=undefined;this.inheritedAttributes={};this.h=a(this.host)}validateSize(e){r(f,e,h.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=c(this.host)}onAriaAttributeChange(e,t){this.host.removeAttribute(e);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[e]:t})}render(){return s(i,{key:"1e7fe110dd7ffc47364765cd01d17adf78db675c",class:this.h.classes(h.root),size:this.size,href:this.href,external:this.external,truncate:this.truncate},s("a",Object.assign({key:"4a9148c0adfd79bc7cb0953768929b702530c298",class:"element",href:this.href,target:this.external?"_blank":this.target,rel:this.external?"noreferrer":null},this.inheritedAttributes),s("slot",{key:"ca80033f0525c11e0f16bb9cb93c746816144e54",name:"icon-start"}),s("span",{key:"0338222112b926d141ff42538489d7d019997560"},s("slot",{key:"a492aed90aed29892e4522f602858d8a84c5f010"})),s("slot",{key:"f9f60c054849df9980b26ca09804218476d3b4ed",name:"icon-end"}),this.external&&s("gov-icon",{key:"fbe4cd9d42ae1bcc1f3666271f49ee96ff49d112",name:"box-arrow-up-right",type:"components",size:this.size,class:h.external})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-link",{size:[1],external:[4],truncate:[4],href:[1],target:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-link","gov-icon"];e.forEach((e=>{switch(e){case"gov-link":if(!customElements.get(e)){customElements.define(e,l)}break;case"gov-icon":if(!customElements.get(e)){d()}break}}))}m();const b=l;const p=m;export{b as GovLink,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-link.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["LinkSizes","pick","Sizes","LinkClass","root","GovLink","proxyCustomElement","H","constructor","this","h","govHost","host","validateSize","newValue","validateProp","componentWillLoad","size","inheritedAttributes","inheritAriaAttributes","onAriaAttributeChange","attributeName","removeAttribute","Object","assign","render","Host","key","class","classes","href","external","target","name","type"],"sources":["../../../packages/core/src/components/gov-link/constants.ts","../../../packages/core/src/components/gov-link/gov-link.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const LinkSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LinkSizesType = `${ValueOf<typeof LinkSizes>}`\n\nexport const LinkClass = {\n\troot: 'gov-link',\n}\n","import {Component, Element, Host, h, Prop, Watch, State} from '@stencil/core'\nimport {LinkClass, LinkSizes, LinkSizesType} from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-link',\n})\nexport class GovLink {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLinkElement\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly size?: LinkSizesType = 'm'\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly external?: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LinkSizes, newValue, LinkClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LinkClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t href={this.href}\n\t\t\t\t external={this.external}>\n\t\t\t\t<a class=\"element\"\n\t\t\t\t href={this.href}\n\t\t\t\t target={this.target}\n\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<slot name=\"icon-start\"/>\n\t\t\t\t\t<slot/>\n\t\t\t\t\t{this.external ? <gov-icon name=\"box-arrow-up-right\" type=\"components\"></gov-icon> : <slot name=\"icon-end\"/>}\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"iRAIO,MAAMA,EAAYC,EAAKC,EAAO,CAAC,KAAM,KAAM,OAG3C,MAAMC,EAAY,CACxBC,KAAM,Y,MCGMC,EAAOC,EAAA,MAAAD,UAAAE,EAGnB,WAAAC,G,wCAQwC,I,cAIF,M,mEAkBK,GA7B1CC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAyBvB,YAAAC,CAAaC,GACZC,EAAaf,EAAWc,EAAUX,EAAUC,K,CAK7C,iBAAAY,GACCP,KAAKI,aAAaJ,KAAKQ,MACvBR,KAAKS,oBAAsBC,EAAsBV,KAAKG,K,CAGvD,qBAAAQ,CAAsBC,EAAuBP,GAC5CL,KAAKG,KAAKU,gBAAgBD,GAC1BZ,KAAKS,oBAAmBK,OAAAC,OAAAD,OAAAC,OAAA,GAAOf,KAAKS,qBAAmB,CAAEG,CAACA,GAAgBP,G,CAG3E,MAAAW,GACC,OACCf,EAACgB,EAAI,CAAAC,IAAA,2CAACC,MAAOnB,KAAKC,EAAEmB,QAAQ1B,EAAUC,MACnCa,KAAMR,KAAKQ,KACXa,KAAMrB,KAAKqB,KACXC,SAAUtB,KAAKsB,UACjBrB,EAAA,IAAAa,OAAAC,OAAA,CAAAG,IAAA,2CAAGC,MAAM,UACNE,KAAMrB,KAAKqB,KACXE,OAAQvB,KAAKuB,QACTvB,KAAKS,qBACXR,EAAA,QAAAiB,IAAA,2CAAMM,KAAK,eACXvB,EAAA,QAAAiB,IAAA,6CACClB,KAAKsB,SAAWrB,EAAA,YAAUuB,KAAK,qBAAqBC,KAAK,eAA2BxB,EAAA,QAAMuB,KAAK,c","ignoreList":[]}
1
+ {"version":3,"names":["LinkSizes","pick","Sizes","LinkClass","root","external","GovLink","proxyCustomElement","H","constructor","this","h","govHost","host","validateSize","newValue","validateProp","componentWillLoad","size","inheritedAttributes","inheritAriaAttributes","onAriaAttributeChange","attributeName","removeAttribute","Object","assign","render","Host","key","class","classes","href","truncate","target","rel","name","type"],"sources":["../../../packages/core/src/components/gov-link/constants.ts","../../../packages/core/src/components/gov-link/gov-link.tsx"],"sourcesContent":["import {pick} from \"../../utils/utils\";\nimport {Sizes} from \"../../core/constants/sizes\";\nimport {ValueOf} from \"../../types/interfaces\";\n\nexport const LinkSizes = pick(Sizes, ['_S', '_M', '_L'])\nexport type LinkSizesType = `${ValueOf<typeof LinkSizes>}`\n\nexport const LinkClass = {\n\troot: 'gov-link',\n\texternal: 'gov-link--external',\n}\n","import {Component, Element, Host, h, Prop, Watch, State} from '@stencil/core'\nimport {LinkClass, LinkSizes, LinkSizesType} from './constants'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {validateProp} from \"../../helpers/Validate/props\";\nimport {Attributes} from \"../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-link',\n})\nexport class GovLink {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovLinkElement\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly size?: LinkSizesType = 'm'\n\t/**\n\t * Element size.\n\t */\n\t@Prop() readonly external?: boolean = false\n\t/**\n\t * Cutting text to one line\n\t */\n\t@Prop() readonly truncate?: boolean = false\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href\n\t */\n\t@Prop() readonly href: string\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target\n\t */\n\t@Prop() readonly target: string\n\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(LinkSizes, newValue, LinkClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host)\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(LinkClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t href={this.href}\n\t\t\t\t external={this.external}\n\t\t\t\t truncate={this.truncate}>\n\t\t\t\t<a class=\"element\"\n\t\t\t\t href={this.href}\n\t\t\t\t target={this.external ? '_blank' : this.target}\n\t\t\t\t rel={this.external ? \"noreferrer\" : null}\n\t\t\t\t {...this.inheritedAttributes}>\n\t\t\t\t\t<slot name=\"icon-start\"/>\n\t\t\t\t\t<span><slot/></span>\n\t\t\t\t\t<slot name=\"icon-end\"/>\n\t\t\t\t\t{this.external && <gov-icon name=\"box-arrow-up-right\" type=\"components\" size={this.size} class={LinkClass.external}></gov-icon>}\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"4QAIO,MAAMA,EAAYC,EAAKC,EAAO,CAAC,KAAM,KAAM,OAG3C,MAAMC,EAAY,CACxBC,KAAM,WACNC,SAAU,sB,MCEEC,EAAOC,EAAA,MAAAD,UAAAE,EAGnB,WAAAC,G,wCAQwC,I,cAIF,M,cAIA,M,mEAkBK,GAjC1CC,KAAKC,EAAIC,EAAQF,KAAKG,K,CA6BvB,YAAAC,CAAaC,GACZC,EAAahB,EAAWe,EAAUZ,EAAUC,K,CAK7C,iBAAAa,GACCP,KAAKI,aAAaJ,KAAKQ,MACvBR,KAAKS,oBAAsBC,EAAsBV,KAAKG,K,CAGvD,qBAAAQ,CAAsBC,EAAuBP,GAC5CL,KAAKG,KAAKU,gBAAgBD,GAC1BZ,KAAKS,oBAAmBK,OAAAC,OAAAD,OAAAC,OAAA,GAAOf,KAAKS,qBAAmB,CAAEG,CAACA,GAAgBP,G,CAG3E,MAAAW,GACC,OACCf,EAACgB,EAAI,CAAAC,IAAA,2CAACC,MAAOnB,KAAKC,EAAEmB,QAAQ3B,EAAUC,MACnCc,KAAMR,KAAKQ,KACXa,KAAMrB,KAAKqB,KACX1B,SAAUK,KAAKL,SACf2B,SAAUtB,KAAKsB,UACjBrB,EAAA,IAAAa,OAAAC,OAAA,CAAAG,IAAA,2CAAGC,MAAM,UACNE,KAAMrB,KAAKqB,KACXE,OAAQvB,KAAKL,SAAW,SAAWK,KAAKuB,OACxCC,IAAKxB,KAAKL,SAAW,aAAe,MAChCK,KAAKS,qBACXR,EAAA,QAAAiB,IAAA,2CAAMO,KAAK,eACXxB,EAAA,QAAAiB,IAAA,4CAAMjB,EAAA,QAAAiB,IAAA,8CACNjB,EAAA,QAAAiB,IAAA,2CAAMO,KAAK,aACVzB,KAAKL,UAAYM,EAAA,YAAAiB,IAAA,2CAAUO,KAAK,qBAAqBC,KAAK,aAAalB,KAAMR,KAAKQ,KAAMW,MAAO1B,EAAUE,Y","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,h as s,d as t}from"./p-42200001.js";import{p as a}from"./p-e0e2e9c1.js";import{S as i}from"./p-92f420cb.js";import{g as c,p as n}from"./p-ea7fdd2e.js";import{v as d}from"./p-0b3574c2.js";import{d as r}from"./p-7be2301a.js";import{d as m}from"./p-a877bf8a.js";const p=a(i,["_S","_M","_L"]);const f={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const g=e(class e extends o{constructor(){super();this.__registerHost();this.size="m";this.h=c(this.host)}validateSize(e){d(p,e,f.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(t,{key:"4c33339523674f2f2415dfb326131858de9eecf9",class:this.h.classes(f.root),size:this.size},s("div",{key:"8c25628dd3072fd89665ccfedb9596383181b13d",class:f.content},s("gov-icon",{key:"a9969874350b5316c61a94b12d41a0130eeded0f",class:n([f.icon,"gov-spin-animation"]),name:"loader",type:"components"}),s("slot",{key:"14c716ecc352a0d947a6e3d932d2ab9075dedb97"})),s("gov-backdrop",{key:"507610e5a61b34be2166fb4a30539a134dc1b262",inverse:true}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-loading",{size:[1]},undefined,{size:["validateSize"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-loading","gov-backdrop","gov-icon"];e.forEach((e=>{switch(e){case"gov-loading":if(!customElements.get(e)){customElements.define(e,g)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}l();const b=g;const v=l;export{b as GovLoading,v as defineCustomElement};
1
+ import{p as e,H as o,h as s,d as t}from"./p-42200001.js";import{p as a}from"./p-e0e2e9c1.js";import{S as c}from"./p-92f420cb.js";import{g as i,p as n}from"./p-ea7fdd2e.js";import{v as d}from"./p-0b3574c2.js";import{d as r}from"./p-e0c3b1a7.js";import{d as m}from"./p-5d60b866.js";const b=a(c,["_S","_M","_L"]);const f={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const p=e(class e extends o{constructor(){super();this.__registerHost();this.size="m";this.h=i(this.host)}validateSize(e){d(b,e,f.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(t,{key:"84c4d73523ef359fc224441d2b3ee700b9d563b3",class:this.h.classes(f.root),size:this.size},s("div",{key:"e8e9bda9cb6d86fdec2022b8a9b3fba9f5ee423a",class:f.content},s("gov-icon",{key:"7adafe593b0c37da48dc3da5eb43bc25c504e9a4",class:n([f.icon,"gov-spin-animation"]),name:"loader",type:"components"}),s("slot",{key:"e4b8461f84f519b70eea2a1bb10cf86e9e3d14ca"})),s("gov-backdrop",{key:"0c044675ab012d028dcc7772c2ad0dfb0aa08de2",inverse:true}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-loading",{size:[1]},undefined,{size:["validateSize"]}]);function g(){if(typeof customElements==="undefined"){return}const e=["gov-loading","gov-backdrop","gov-icon"];e.forEach((e=>{switch(e){case"gov-loading":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}g();const l=p;const v=g;export{l as GovLoading,v as defineCustomElement};
2
2
  //# sourceMappingURL=gov-loading.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as s,h as t,d as o}from"./p-42200001.js";import{v as c}from"./p-0b3574c2.js";import{C as a}from"./p-5aad3497.js";import{p as r}from"./p-e0e2e9c1.js";import{g as n}from"./p-ea7fdd2e.js";r(a,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var i;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(i||(i={}));const f={root:"gov-message",content:"gov-message__content"};const l=e(class e extends s{constructor(){super();this.__registerHost();this.color=a.PRIMARY;this.type="subtle";this.h=n(this.host)}validateColor(e){c(a,e,f.root)}render(){return t(o,{key:"b9e06c8f94940edf9d2c60119c35ec32baa23fc9",class:this.h.classes(f.root),color:this.color,type:this.type,role:"status"},this.h.hasSlot("icon")&&t("slot",{key:"d478f414de8eaa276cc867ae5bb325c1090b08ac",name:"icon"}),t("div",{key:"d5a113ca4061b445c583fb1b4f22fff594570b1e",class:f.content},t("slot",{key:"e9be2f4ff3603c5f77d46e042455174e6ccfb7be"})))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-message",{color:[1],type:[1]},undefined,{color:["validateColor"]}]);function m(){if(typeof customElements==="undefined"){return}const e=["gov-message"];e.forEach((e=>{switch(e){case"gov-message":if(!customElements.get(e)){customElements.define(e,l)}break}}))}m();const d=l;const b=m;export{d as GovMessage,b as defineCustomElement};
1
+ import{p as e,H as s,h as t,d as o}from"./p-42200001.js";import{v as a}from"./p-0b3574c2.js";import{C as c}from"./p-5aad3497.js";import{p as r}from"./p-e0e2e9c1.js";import{g as d}from"./p-ea7fdd2e.js";r(c,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var n;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(n||(n={}));const i={root:"gov-message",content:"gov-message__content"};const f=e(class e extends s{constructor(){super();this.__registerHost();this.color=c.PRIMARY;this.type="subtle";this.h=d(this.host)}validateColor(e){a(c,e,i.root)}render(){return t(o,{key:"6cdca867db0d3576076bba0518cbfc844762aa9e",class:this.h.classes(i.root),color:this.color,type:this.type,role:"status"},this.h.hasSlot("icon")&&t("span",{key:"b28876f005e857aaddaf2afb6372745978abb926"},t("slot",{key:"b88920a480dfdd18ddcdcc013ff36a81d6de1707",name:"icon"})),t("div",{key:"ad9e4ef4894877d53f0b7c598035c0c35e317054",class:i.content},t("slot",{key:"78f8e1a9ee32eddaeb7b78e029476a525975ee6d"})))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-message",{color:[1],type:[1]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-message"];e.forEach((e=>{switch(e){case"gov-message":if(!customElements.get(e)){customElements.define(e,f)}break}}))}l();const m=f;const p=l;export{m as GovMessage,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-message.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pick","Colors","MessageType","MessageClass","root","content","GovMessage","proxyCustomElement","H","constructor","PRIMARY","this","h","govHost","host","validateColor","newValue","validateProp","render","Host","key","class","classes","color","type","role","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type MessageColorType = `${ValueOf<typeof MessageColors>}`\n\nexport enum MessageType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type MessageTypesType = `${ValueOf<typeof MessageType>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\tcontent: 'gov-message__content',\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { MessageTypesType, MessageClass, MessageColorType} from \"./constants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { Colors } from \"../../core/constants/colors\"\n\n@Component({\n\ttag: \"gov-message\",\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly color: MessageColorType = Colors.PRIMARY\n\t/**\n\t * Message type\n\t */\n\t@Prop() readonly type?: MessageTypesType = \"subtle\"\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(Colors, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} color={this.color} type={this.type} role=\"status\">\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"yMAI6BA,EAAKC,EAAQ,CAAC,UAAW,UAAW,QAAS,UAAW,YAGrF,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,kBACA,EAHD,CAAYA,MAAW,KAMhB,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,wB,MCLGC,EAAUC,EAAA,MAAAD,UAAAE,EAGtB,WAAAC,G,yCAS2CR,EAAOS,Q,UAIP,SAZ1CC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAevB,aAAAC,CAAcC,GACbC,EAAahB,EAAQe,EAAUb,EAAaC,K,CAG7C,MAAAc,GACC,OACCN,EAACO,EAAI,CAAAC,IAAA,2CAACC,MAAOV,KAAKC,EAAEU,QAAQnB,EAAaC,MAAOmB,MAAOZ,KAAKY,MAAOC,KAAMb,KAAKa,KAAMC,KAAK,UACvFd,KAAKC,EAAEc,QAAQ,SACfd,EAAA,QAAAQ,IAAA,2CAAMO,KAAK,SAGZf,EAAA,OAAAQ,IAAA,2CAAKC,MAAOlB,EAAaE,SACxBO,EAAA,QAAAQ,IAAA,8C","ignoreList":[]}
1
+ {"version":3,"names":["pick","Colors","MessageType","MessageClass","root","content","GovMessage","proxyCustomElement","H","constructor","PRIMARY","this","h","govHost","host","validateColor","newValue","validateProp","render","Host","key","class","classes","color","type","role","hasSlot","name"],"sources":["../../../packages/core/src/components/gov-message/constants.ts","../../../packages/core/src/components/gov-message/gov-message.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const MessageColors = pick(Colors, ['PRIMARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type MessageColorType = `${ValueOf<typeof MessageColors>}`\n\nexport enum MessageType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type MessageTypesType = `${ValueOf<typeof MessageType>}`\n\nexport const MessageClass = {\n\troot: 'gov-message',\n\tcontent: 'gov-message__content',\n}\n","import { Component, Element, h, Host, Prop, Watch } from \"@stencil/core\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { MessageTypesType, MessageClass, MessageColorType} from \"./constants\"\nimport { govHost } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { Colors } from \"../../core/constants/colors\"\n\n@Component({\n\ttag: \"gov-message\",\n})\nexport class GovMessage {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovMessageElement\n\n\t/**\n\t * Style variation of the content message.\n\t */\n\t@Prop() readonly color: MessageColorType = Colors.PRIMARY\n\t/**\n\t * Message type\n\t */\n\t@Prop() readonly type?: MessageTypesType = \"subtle\"\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(Colors, newValue, MessageClass.root)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(MessageClass.root)} color={this.color} type={this.type} role=\"status\">\n\t\t\t\t{this.h.hasSlot(\"icon\") && (\n\t\t\t\t\t<span>\n\t\t\t\t\t\t<slot name=\"icon\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\n\t\t\t\t<div class={MessageClass.content}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"mappings":"yMAI6BA,EAAKC,EAAQ,CAAC,UAAW,UAAW,QAAS,UAAW,YAGrF,IAAYC,GAAZ,SAAYA,GACXA,EAAA,eACAA,EAAA,kBACA,EAHD,CAAYA,MAAW,KAMhB,MAAMC,EAAe,CAC3BC,KAAM,cACNC,QAAS,wB,MCLGC,EAAUC,EAAA,MAAAD,UAAAE,EAGtB,WAAAC,G,yCAS2CR,EAAOS,Q,UAIP,SAZ1CC,KAAKC,EAAIC,EAAQF,KAAKG,K,CAevB,aAAAC,CAAcC,GACbC,EAAahB,EAAQe,EAAUb,EAAaC,K,CAG7C,MAAAc,GACC,OACCN,EAACO,EAAI,CAAAC,IAAA,2CAACC,MAAOV,KAAKC,EAAEU,QAAQnB,EAAaC,MAAOmB,MAAOZ,KAAKY,MAAOC,KAAMb,KAAKa,KAAMC,KAAK,UACvFd,KAAKC,EAAEc,QAAQ,SACfd,EAAA,QAAAQ,IAAA,4CACCR,EAAA,QAAAQ,IAAA,2CAAMO,KAAK,UAIbf,EAAA,OAAAQ,IAAA,2CAAKC,MAAOlB,EAAaE,SACxBO,EAAA,QAAAQ,IAAA,8C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as i,d as a}from"./p-42200001.js";import{F as o}from"./p-1c1d0bbe.js";import{v as n}from"./p-0b3574c2.js";import{S as l}from"./p-92f420cb.js";import{C as r}from"./p-5aad3497.js";import{p as c}from"./p-e0e2e9c1.js";import{g as h,p,t as d}from"./p-ea7fdd2e.js";import{c as g}from"./p-cd6c2938.js";import{c as m}from"./p-ded281e6.js";import{A as u,a as f,i as v}from"./p-33d5d1ed.js";import{d as b}from"./p-558cbab0.js";import{d as j}from"./p-13a70392.js";import{d as y}from"./p-a877bf8a.js";const S=c(l,["_S","_M"]);const P=c(r,["PRIMARY","NEUTRAL"]);var z;(function(t){t["BUTTON"]="button";t["SELECT"]="select"})(z||(z={}));const _={root:"gov-pagination",list:"gov-pagination__list",item:"gov-pagination__item",itemArrow:"gov-pagination__item--arrow",itemMore:"gov-pagination__item--more",itemSelect:"gov-pagination__item--select",inner:"gov-pagination__inner",arrow:"gov-pagination__arrow"};function k(t,e=1,s=10,i=10){const a=Math.ceil(t/s);if(e<1){e=1}else if(e>a){e=a}let o,n;if(a<=i){o=1;n=a}else{const t=Math.floor(i/2);const s=Math.ceil(i/2)-1;if(e<=t){o=1;n=i}else if(e+s>=a){o=a-i+1;n=a}else{o=e-t;n=e+s}}const l=(e-1)*s;const r=Math.min(l+s-1,t-1);const c=Array.from(Array(n+1-o).keys()).map((t=>o+t));return{totalItems:t,currentPage:e,pageSize:s,totalPages:a,startPage:o,endPage:n,startIndex:l,endIndex:r,pages:c}}const A=t(class t extends e{constructor(){super();this.__registerHost();this.govPage=s(this,"gov-page",7);this.type="button";this.current=1;this.total=0;this.selectIdentifier=undefined;this.size="m";this.color="primary";this.pageSize=10;this.maxPages=5;this.link=undefined;this.accessibleSelectLabel="Vybrat stranu";this.accessiblePageLabel="Strana";this.labelPrev="Přejít o stranu zpět";this.labelStart="Přejít na začátek";this.labelNext="Přejít na další stranu";this.labelEnd="Přejít na konec";this.pagination=undefined;this.inheritedAttributes={};this.h=h(this.host);this.pageSelectId=g("GovPageSelect");this.selectId=g("GovSelect")}validateType(t){n(z,t,_.root)}validateSize(t){n(S,t,_.root)}validateColor(t){n(P,t,_.root)}recalculate(){this.recalculatePagination(this.current)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(f)}componentWillLoad(){this.recalculatePagination(this.current);this.validateSize(this.size);this.validateColor(this.color);this.inheritedAttributes=v(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}recalculatePagination(t){this.pagination=k(this.total,t,this.pageSize,this.maxPages)}isActivePageClass(t,e){if(this.pagination.currentPage===e){return t+" is-active"}else{return t}}prepareLinkUrl(t){if(this.link){return String(this.link).replace("{PAGE}",String(t))}return undefined}resetSelectValue(){if(this.spreadSelectRef){this.spreadSelectRef.getRef().then((t=>{t.value="..."}))}}render(){const t=(t,e,s)=>{const a=t===-1;const o=d(this.pagination.currentPage===t?true:undefined);return i("gov-button",{href:this.prepareLinkUrl(t),color:this.color,size:this.size,type:"base",disabled:a,"on-gov-click":e=>this.onClickHandler(e,t),"aria-label":s?s:t>-1?`${this.accessiblePageLabel} ${t}`:undefined,"aria-current":o,class:_.inner,focusable:true},e)};return i(a,{class:this.h.classes(_.root),type:this.type,color:this.color,size:this.size},i("nav",Object.assign({},this.inheritedAttributes),i("ul",{class:_.list},i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.currentPage>1?1:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-left",type:"components"}),this.labelStart)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.startPage<this.pagination.currentPage?this.pagination.currentPage-1:-1,i("gov-icon",{class:_.arrow,name:"chevron-left",type:"components"}),this.labelPrev)),this.type=="select"?i("li",{class:p([_.item,_.itemSelect])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,"on-gov-change":this.onSelectHandler.bind(this)},m(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:this.pagination.currentPage===t},t)))))):i(o,null,this.pagination.pages.map((e=>i("li",{class:this.isActivePageClass(_.item,e)},t(e,e,"")))),this.pagination.totalPages?i("li",{class:p([_.item,_.itemMore])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,ref:t=>this.spreadSelectRef=t,"on-gov-change":this.onSelectHandler.bind(this)},i("option",{selected:true,hidden:true},"..."),m(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:false},t)))))):null),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.currentPage+1:-1,i("gov-icon",{class:_.arrow,name:"chevron-right",type:"components"}),this.labelNext)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.totalPages:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-right",type:"components"}),this.labelEnd)))))}onClickHandler(t,e){t.stopPropagation();this.recalculatePagination(e);this.govPage.emit({component:_.root,pagination:this.pagination})}onSelectHandler(t){t.stopPropagation();const e=t.detail.value;const s=parseInt(e);this.resetSelectValue();if(isNaN(s)===false){this.recalculatePagination(s);if(this.link){window.location.href=this.prepareLinkUrl(s)}else{this.govPage.emit({component:_.root,pagination:this.pagination})}}}get host(){return this}static get watchers(){return{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}}},[0,"gov-pagination",{type:[1],current:[2],total:[2],selectIdentifier:[1,"select-identifier"],size:[1],color:[1],pageSize:[2,"page-size"],maxPages:[2,"max-pages"],link:[1],accessibleSelectLabel:[1,"accessible-select-label"],accessiblePageLabel:[1,"accessible-page-label"],labelPrev:[1,"label-prev"],labelStart:[1,"label-start"],labelNext:[1,"label-next"],labelEnd:[1,"label-end"],pagination:[32],inheritedAttributes:[32]},undefined,{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}]);function x(){if(typeof customElements==="undefined"){return}const t=["gov-pagination","gov-button","gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-pagination":if(!customElements.get(t)){customElements.define(t,A)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-select":if(!customElements.get(t)){j()}break;case"gov-icon":if(!customElements.get(t)){y()}break}}))}x();const w=A;const E=x;export{w as GovPagination,E as defineCustomElement};
1
+ import{p as t,H as e,c as s,h as i,d as a}from"./p-42200001.js";import{F as o}from"./p-1c1d0bbe.js";import{v as n}from"./p-0b3574c2.js";import{S as l}from"./p-92f420cb.js";import{C as r}from"./p-5aad3497.js";import{p as c}from"./p-e0e2e9c1.js";import{g as h,p,t as d}from"./p-ea7fdd2e.js";import{c as g}from"./p-cd6c2938.js";import{c as m}from"./p-be086357.js";import{A as u,a as f,i as v}from"./p-33d5d1ed.js";import{d as b}from"./p-d3435179.js";import{d as j}from"./p-5b0934a8.js";import{d as y}from"./p-5d60b866.js";const S=c(l,["_S","_M"]);const P=c(r,["PRIMARY","NEUTRAL"]);var z;(function(t){t["BUTTON"]="button";t["SELECT"]="select"})(z||(z={}));const _={root:"gov-pagination",list:"gov-pagination__list",item:"gov-pagination__item",itemArrow:"gov-pagination__item--arrow",itemMore:"gov-pagination__item--more",itemSelect:"gov-pagination__item--select",inner:"gov-pagination__inner",arrow:"gov-pagination__arrow"};function k(t,e=1,s=10,i=10){const a=Math.ceil(t/s);if(e<1){e=1}else if(e>a){e=a}let o,n;if(a<=i){o=1;n=a}else{const t=Math.floor(i/2);const s=Math.ceil(i/2)-1;if(e<=t){o=1;n=i}else if(e+s>=a){o=a-i+1;n=a}else{o=e-t;n=e+s}}const l=(e-1)*s;const r=Math.min(l+s-1,t-1);const c=Array.from(Array(n+1-o).keys()).map((t=>o+t));return{totalItems:t,currentPage:e,pageSize:s,totalPages:a,startPage:o,endPage:n,startIndex:l,endIndex:r,pages:c}}const A=t(class t extends e{constructor(){super();this.__registerHost();this.govPage=s(this,"gov-page",7);this.type="button";this.current=1;this.total=0;this.selectIdentifier=undefined;this.size="m";this.color="primary";this.pageSize=10;this.maxPages=5;this.link=undefined;this.accessibleSelectLabel="Vybrat stranu";this.accessiblePageLabel="Strana";this.labelPrev="Přejít o stranu zpět";this.labelStart="Přejít na začátek";this.labelNext="Přejít na další stranu";this.labelEnd="Přejít na konec";this.pagination=undefined;this.inheritedAttributes={};this.h=h(this.host);this.pageSelectId=g("GovPageSelect");this.selectId=g("GovSelect")}validateType(t){n(z,t,_.root)}validateSize(t){n(S,t,_.root)}validateColor(t){n(P,t,_.root)}recalculate(){this.recalculatePagination(this.current)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(f)}componentWillLoad(){this.recalculatePagination(this.current);this.validateSize(this.size);this.validateColor(this.color);this.inheritedAttributes=v(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}recalculatePagination(t){this.pagination=k(this.total,t,this.pageSize,this.maxPages)}isActivePageClass(t,e){if(this.pagination.currentPage===e){return t+" is-active"}else{return t}}prepareLinkUrl(t){if(this.link){return String(this.link).replace("{PAGE}",String(t))}return undefined}resetSelectValue(){if(this.spreadSelectRef){this.spreadSelectRef.getRef().then((t=>{t.value="..."}))}}render(){const t=(t,e,s)=>{const a=t===-1;const o=d(this.pagination.currentPage===t?true:undefined);return i("gov-button",{href:this.prepareLinkUrl(t),color:this.color,size:this.size,type:"base",disabled:a,"on-gov-click":e=>this.onClickHandler(e,t),"aria-label":s?s:t>-1?`${this.accessiblePageLabel} ${t}`:undefined,"aria-current":o,class:_.inner,focusable:true},e)};return i(a,{class:this.h.classes(_.root),type:this.type,color:this.color,size:this.size},i("nav",Object.assign({},this.inheritedAttributes),i("ul",{class:_.list},i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.currentPage>1?1:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-left",type:"components"}),this.labelStart)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.startPage<this.pagination.currentPage?this.pagination.currentPage-1:-1,i("gov-icon",{class:_.arrow,name:"chevron-left",type:"components"}),this.labelPrev)),this.type=="select"?i("li",{class:p([_.item,_.itemSelect])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,"on-gov-change":this.onSelectHandler.bind(this)},m(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:this.pagination.currentPage===t},t)))))):i(o,null,this.pagination.pages.map((e=>i("li",{class:this.isActivePageClass(_.item,e)},t(e,e,"")))),this.pagination.totalPages?i("li",{class:p([_.item,_.itemMore])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,ref:t=>this.spreadSelectRef=t,"on-gov-change":this.onSelectHandler.bind(this)},i("option",{selected:true,hidden:true},"..."),m(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:false},t)))))):null),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.currentPage+1:-1,i("gov-icon",{class:_.arrow,name:"chevron-right",type:"components"}),this.labelNext)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.totalPages:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-right",type:"components"}),this.labelEnd)))))}onClickHandler(t,e){t.stopPropagation();this.recalculatePagination(e);this.govPage.emit({component:_.root,pagination:this.pagination})}onSelectHandler(t){t.stopPropagation();const e=t.detail.value;const s=parseInt(e);this.resetSelectValue();if(isNaN(s)===false){this.recalculatePagination(s);if(this.link){window.location.href=this.prepareLinkUrl(s)}else{this.govPage.emit({component:_.root,pagination:this.pagination})}}}get host(){return this}static get watchers(){return{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}}},[0,"gov-pagination",{type:[1],current:[2],total:[2],selectIdentifier:[1,"select-identifier"],size:[1],color:[1],pageSize:[2,"page-size"],maxPages:[2,"max-pages"],link:[1],accessibleSelectLabel:[1,"accessible-select-label"],accessiblePageLabel:[1,"accessible-page-label"],labelPrev:[1,"label-prev"],labelStart:[1,"label-start"],labelNext:[1,"label-next"],labelEnd:[1,"label-end"],pagination:[32],inheritedAttributes:[32]},undefined,{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}]);function x(){if(typeof customElements==="undefined"){return}const t=["gov-pagination","gov-button","gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-pagination":if(!customElements.get(t)){customElements.define(t,A)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-select":if(!customElements.get(t)){j()}break;case"gov-icon":if(!customElements.get(t)){y()}break}}))}x();const w=A;const E=x;export{w as GovPagination,E as defineCustomElement};
2
2
  //# sourceMappingURL=gov-pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["PaginationSizes","pick","Sizes","PaginationColors","Colors","PaginationTypes","PaginationClass","root","list","item","itemArrow","itemMore","itemSelect","inner","arrow","paginate","totalItems","currentPage","pageSize","maxPages","totalPages","Math","ceil","startPage","endPage","maxPagesBeforeCurrentPage","floor","maxPagesAfterCurrentPage","startIndex","endIndex","min","pages","Array","from","keys","map","i","GovPagination","proxyCustomElement","H","constructor","this","h","govHost","host","pageSelectId","createID","selectId","validateType","newValue","validateProp","validateSize","validateColor","recalculate","recalculatePagination","current","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","size","color","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","stopObserving","removeAttribute","Object","assign","pagination","total","isActivePageClass","originalClass","page","prepareLinkUrl","link","String","replace","undefined","resetSelectValue","spreadSelectRef","getRef","then","el","value","render","pageResolver","content","description","isDisabled","ariaCurrent","toBoolAttrIfDefined","href","type","disabled","e","onClickHandler","accessiblePageLabel","class","focusable","Host","classes","prepareClasses","name","labelStart","labelPrev","id","hidden","accessibleSelectLabel","identifier","selectIdentifier","onSelectHandler","bind","createArrayRange","selected","Fragment","ref","labelNext","labelEnd","stopPropagation","govPage","emit","component","detail","parseInt","isNaN","window","location"],"sources":["../../../packages/core/src/components/gov-pagination/constants.ts","../../../packages/core/src/components/gov-pagination/pagination.ts","../../../packages/core/src/components/gov-pagination/gov-pagination.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const PaginationSizes = pick(Sizes, ['_S', '_M'])\nexport type PaginationSizeType = `${ValueOf<typeof PaginationSizes>}`\n\nexport const PaginationColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\nexport type PaginationColorType = `${ValueOf<typeof PaginationColors>}`\n\nexport enum PaginationTypes {\n\tBUTTON = 'button',\n\tSELECT = 'select',\n}\nexport type PaginationType = `${ValueOf<typeof PaginationTypes>}`\n\nexport const PaginationClass = {\n\troot: 'gov-pagination',\n\tlist: 'gov-pagination__list',\n\titem: 'gov-pagination__item',\n\titemArrow: 'gov-pagination__item--arrow',\n\titemMore: 'gov-pagination__item--more',\n\titemSelect: 'gov-pagination__item--select',\n\tinner: 'gov-pagination__inner',\n\tarrow: 'gov-pagination__arrow',\n}\n","export interface Pagination {\n\ttotalItems: number\n\tcurrentPage: number\n\tpageSize: number\n\ttotalPages: number\n\tstartPage: number\n\tendPage: number\n\tstartIndex: number\n\tendIndex: number\n\tpages: number[]\n}\n\nexport function paginate(totalItems: number, currentPage = 1, pageSize = 10, maxPages = 10): Pagination {\n\t// calculate total pages\n\tconst totalPages = Math.ceil(totalItems / pageSize)\n\n\t// ensure current page isn't out of range\n\tif (currentPage < 1) {\n\t\tcurrentPage = 1\n\t} else if (currentPage > totalPages) {\n\t\tcurrentPage = totalPages\n\t}\n\n\tlet startPage: number, endPage: number\n\tif (totalPages <= maxPages) {\n\t\t// total pages less than max so show all pages\n\t\tstartPage = 1\n\t\tendPage = totalPages\n\t} else {\n\t\t// total pages more than max so calculate start and end pages\n\t\tconst maxPagesBeforeCurrentPage = Math.floor(maxPages / 2)\n\t\tconst maxPagesAfterCurrentPage = Math.ceil(maxPages / 2) - 1\n\t\tif (currentPage <= maxPagesBeforeCurrentPage) {\n\t\t\t// current page near the start\n\t\t\tstartPage = 1\n\t\t\tendPage = maxPages\n\t\t} else if (currentPage + maxPagesAfterCurrentPage >= totalPages) {\n\t\t\t// current page near the end\n\t\t\tstartPage = totalPages - maxPages + 1\n\t\t\tendPage = totalPages\n\t\t} else {\n\t\t\t// current page somewhere in the middle\n\t\t\tstartPage = currentPage - maxPagesBeforeCurrentPage\n\t\t\tendPage = currentPage + maxPagesAfterCurrentPage\n\t\t}\n\t}\n\n\t// calculate start and end item indexes\n\tconst startIndex = (currentPage - 1) * pageSize\n\tconst endIndex = Math.min(startIndex + pageSize - 1, totalItems - 1)\n\n\t// create an array of pages to ng-repeat in the pager control\n\tconst pages = Array.from(Array(endPage + 1 - startPage).keys()).map(i => startPage + i)\n\n\t// return object with all pager properties required by the view\n\treturn {\n\t\ttotalItems: totalItems,\n\t\tcurrentPage: currentPage,\n\t\tpageSize: pageSize,\n\t\ttotalPages: totalPages,\n\t\tstartPage: startPage,\n\t\tendPage: endPage,\n\t\tstartIndex: startIndex,\n\t\tendIndex: endIndex,\n\t\tpages: pages,\n\t}\n}\n","import Fragment from \"../../helpers/Fragment\"\nimport {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {\n\tPaginationClass,\n\tPaginationColors,\n\tPaginationColorType,\n\tPaginationSizes,\n\tPaginationSizeType,\n\tPaginationType,\n\tPaginationTypes,\n} from \"./constants\"\nimport {govHost, prepareClasses, toBoolAttrIfDefined} from \"../../helpers/Dom/template\"\nimport {paginate, Pagination} from \"./pagination\"\nimport {createID} from \"../../utils/string.utils\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {createArrayRange} from \"../../utils/array.utils\"\nimport {FormSelectEvent} from \"../gov-form/select/gov-form-select.types\"\nimport {PaginationEvent} from \"./gov-pagination.types\"\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-pagination\",\n})\nexport class GovPagination {\n\tprivate h: GovHost\n\tprivate readonly pageSelectId: string\n\tprivate readonly selectId: string\n\n\tprivate spreadSelectRef?: HTMLGovFormSelectElement\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.pageSelectId = createID(\"GovPageSelect\")\n\t\tthis.selectId = createID(\"GovSelect\")\n\t}\n\n\t@Element() readonly host: HTMLGovPaginationElement\n\t/**\n\t * Pagination type\n\t */\n\t@Prop() readonly type: PaginationType = \"button\"\n\t/**\n\t * Currently displayed page\n\t */\n\t@Prop() readonly current: number = 1\n\t/**\n\t * Total count of entries\n\t */\n\t@Prop() readonly total: number = 0\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'select-identifier'}) readonly selectIdentifier: string\n\t/**\n\t * Pagination's size\n\t */\n\t@Prop() readonly size?: PaginationSizeType = \"m\"\n\t/**\n\t * Style variation of the pagination.\n\t */\n\t@Prop() readonly color?: PaginationColorType = \"primary\"\n\t/**\n\t * Maximum number of entries per page\n\t */\n\t@Prop({attribute: \"page-size\"}) readonly pageSize: number = 10\n\t/**\n\t * Maximum pages displayed for selection\n\t */\n\t@Prop({attribute: \"max-pages\"}) readonly maxPages: number = 5\n\t/**\n\t * Setting a link to redirect to a given page.\n\t * The {PAGE} wildcard can be used in the link to replace the page number.\n\t * Note that in the case of paging through a link, it is always necessary to send to the component the current page where the user is.\n\t */\n\t@Prop() readonly link: string\n\t/**\n\t * Adds accessible label for the page select\n\t */\n\t@Prop({attribute: \"accessible-select-label\"}) readonly accessibleSelectLabel: string = \"Vybrat stranu\"\n\t/**\n\t * Adds accessible label for the page item\n\t */\n\t@Prop({attribute: \"accessible-page-label\"}) readonly accessiblePageLabel: string = \"Strana\"\n\t/**\n\t * Description of the possibility to go back one page\n\t */\n\t@Prop({attribute: \"label-prev\"}) readonly labelPrev = 'Přejít o stranu zpět'\n\t/**\n\t * Description of the option to go to the top of paging\n\t */\n\t@Prop({attribute: \"label-start\"}) readonly labelStart = 'Přejít na začátek'\n\t/**\n\t * Description of the option to go to the end of paging\n\t */\n\t@Prop({attribute: \"label-next\"}) readonly labelNext = 'Přejít na další stranu'\n\t/**\n\t * Description of the option to move one page forward\n\t */\n\t@Prop({attribute: \"label-end\"}) readonly labelEnd = 'Přejít na konec'\n\t/**\n\t * Event called when changing the page with the current setting of the whole paging\n\t */\n\t@Event({eventName: \"gov-page\"}) govPage: EventEmitter<PaginationEvent>\n\n\t@State() pagination: Pagination\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(PaginationTypes, newValue, PaginationClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(PaginationSizes, newValue, PaginationClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(PaginationColors, newValue, PaginationClass.root)\n\t}\n\n\t@Watch(\"current\")\n\t@Watch(\"total\")\n\t@Watch(\"pageSize\")\n\t@Watch(\"maxPages\")\n\trecalculate(): void {\n\t\tthis.recalculatePagination(this.current)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.recalculatePagination(this.current)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate recalculatePagination(currentPage: number) {\n\t\tthis.pagination = paginate(this.total, currentPage, this.pageSize, this.maxPages)\n\t}\n\n\tprivate isActivePageClass(originalClass: string, page: number) {\n\t\tif (this.pagination.currentPage === page) {\n\t\t\treturn originalClass + \" is-active\"\n\t\t} else {\n\t\t\treturn originalClass\n\t\t}\n\t}\n\n\tprivate prepareLinkUrl(page: number) {\n\t\tif (this.link) {\n\t\t\treturn String(this.link).replace(\"{PAGE}\", String(page))\n\t\t}\n\t\treturn undefined\n\t}\n\n\tprivate resetSelectValue() {\n\t\tif (this.spreadSelectRef) {\n\t\t\tthis.spreadSelectRef.getRef()\n\t\t\t\t.then((el: HTMLSelectElement) => {\n\t\t\t\t\tel.value = '...'\n\t\t\t\t})\n\t\t}\n\t}\n\n\trender() {\n\t\tconst pageResolver = (page: number, content: any, description: string) => {\n\t\t\tconst isDisabled = page === -1\n\t\t\tconst ariaCurrent = toBoolAttrIfDefined(this.pagination.currentPage === page ? true : undefined)\n\t\t\treturn (\n\t\t\t\t<gov-button\n\t\t\t\t\thref={this.prepareLinkUrl(page)}\n\t\t\t\t\tcolor={this.color}\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\ttype=\"base\"\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\ton-gov-click={(e) => this.onClickHandler(e, page)}\n\t\t\t\t\taria-label={description ? description : page > -1 ? `${this.accessiblePageLabel} ${page}` : undefined}\n\t\t\t\t\taria-current={ariaCurrent}\n\t\t\t\t\tclass={PaginationClass.inner}\n\t\t\t\t\tfocusable={true}>\n\t\t\t\t\t{content}\n\t\t\t\t</gov-button>\n\t\t\t)\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(PaginationClass.root)} type={this.type} color={this.color} size={this.size}>\n\t\t\t\t<nav {...this.inheritedAttributes}>\n\t\t\t\t\t<ul class={PaginationClass.list}>\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.currentPage > 1 ? 1 : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-double-left\" type=\"components\"></gov-icon>,\n\t\t\t\t\t\t\t\tthis.labelStart\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-left\" type=\"components\"></gov-icon>,\n\t\t\t\t\t\t\t\tthis.labelPrev\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t{this.type == \"select\" ? (\n\t\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemSelect])}>\n\t\t\t\t\t\t\t\t<span class={PaginationClass.inner}>\n\t\t\t\t\t\t\t\t\t<span id={this.pageSelectId} hidden>\n\t\t\t\t\t\t\t\t\t\t{this.accessibleSelectLabel}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<gov-form-select\n\t\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\t\t\t\t\tidentifier={this.selectIdentifier || this.selectId}\n\t\t\t\t\t\t\t\t\t\taria-labelledby={this.pageSelectId}\n\t\t\t\t\t\t\t\t\t\ton-gov-change={this.onSelectHandler.bind(this)}>\n\t\t\t\t\t\t\t\t\t\t{createArrayRange(1, this.pagination.totalPages).map(page => (\n\t\t\t\t\t\t\t\t\t\t\t<option value={page} selected={this.pagination.currentPage === page}>\n\t\t\t\t\t\t\t\t\t\t\t\t{page}\n\t\t\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t</gov-form-select>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t{this.pagination.pages.map(page => (\n\t\t\t\t\t\t\t\t\t<li class={this.isActivePageClass(PaginationClass.item, page)}>{pageResolver(page, page, '')}</li>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t{this.pagination.totalPages ? (\n\t\t\t\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemMore])}>\n\t\t\t\t\t\t\t\t\t<span class={PaginationClass.inner}>\n\t\t\t\t\t\t\t\t\t\t<span id={this.pageSelectId} hidden>\n\t\t\t\t\t\t\t\t\t\t\t{this.accessibleSelectLabel}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<gov-form-select\n\t\t\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\t\t\t\t\t\tidentifier={this.selectIdentifier || this.selectId}\n\t\t\t\t\t\t\t\t\t\t\taria-labelledby={this.pageSelectId}\n\t\t\t\t\t\t\t\t\t\t\tref={el => (this.spreadSelectRef = el as HTMLGovFormSelectElement)}\n\t\t\t\t\t\t\t\t\t\t\ton-gov-change={this.onSelectHandler.bind(this)}>\n\t\t\t\t\t\t\t\t\t\t\t<option selected hidden>...</option>\n\t\t\t\t\t\t\t\t\t\t\t{createArrayRange(1, this.pagination.totalPages).map(page => (\n\t\t\t\t\t\t\t\t\t\t\t\t<option value={page} selected={false}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{page}\n\t\t\t\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t</gov-form-select>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-right\" type=\"components\"></gov-icon>,\n\t\t\t\t\t\t\t\tthis.labelNext\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-double-right\" type=\"components\"></gov-icon>,\n\t\t\t\t\t\t\t\tthis.labelEnd\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: CustomEvent, page: number): void {\n\t\te.stopPropagation()\n\t\tthis.recalculatePagination(page)\n\t\tthis.govPage.emit({\n\t\t\tcomponent: PaginationClass.root,\n\t\t\tpagination: this.pagination\n\t\t})\n\t}\n\n\tprivate onSelectHandler(e: CustomEvent<FormSelectEvent>): void {\n\t\te.stopPropagation()\n\t\tconst value = e.detail.value\n\t\tconst page = parseInt(value)\n\t\tthis.resetSelectValue()\n\t\tif (isNaN(page) === false) {\n\t\t\tthis.recalculatePagination(page)\n\t\t\tif (this.link) {\n\t\t\t\twindow.location.href = this.prepareLinkUrl(page)\n\t\t\t} else {\n\t\t\t\tthis.govPage.emit({\n\t\t\t\t\tcomponent: PaginationClass.root,\n\t\t\t\t\tpagination: this.pagination\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":"ugBAKO,MAAMA,EAAkBC,EAAKC,EAAO,CAAC,KAAM,OAG3C,MAAMC,EAAmBF,EAAKG,EAAQ,CAAC,UAAW,YAGzD,IAAYC,GAAZ,SAAYA,GACXA,EAAA,mBACAA,EAAA,kBACA,EAHD,CAAYA,MAAe,KAMpB,MAAMC,EAAkB,CAC9BC,KAAM,iBACNC,KA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AAOI,EAAe,CAACpG,EAAgBG,KAAMH,EAAgBI,aAC/DgF,EACAjD,KAAKgC,WAAWrD,WAAaqB,KAAKgC,WAAWxD,YAAcwB,KAAKgC,WAAWxD,YAAc,GAAK,EAC9FyB,EAAA,YAAU4D,MAAOhG,EAAgBQ,MAAO6F,KAAK,gBAAgBV,KAAK,eAClExD,KAAKgF,YAIP/E,EAAA,MAAI4D,MAAOI,EAAe,CAACpG,EAAgBG,KAAMH,EAAgBI,aAC/DgF,EACAjD,KAAKgC,WAAWrD,WAAaqB,KAAKgC,WAAWxD,YAAcwB,KAAKgC,WAAWrD,YAAc,EACzFsB,EAAA,YAAU4D,MAAOhG,EAAgBQ,MAAO6F,KAAK,uBAAuBV,KAAK,eACzExD,KAAKiF,a,CASJ,cAAAtB,CAAeD,EAAgBtB,GACtCsB,EAAEwB,kBACFlF,KAAKa,sBAAsBuB,GAC3BpC,KAAKmF,QAAQC,KAAK,CACjBC,UAAWxH,EAAgBC,KAC3BkE,WAAYhC,KAAKgC,Y,CAIX,eAAA0C,CAAgBhB,GACvBA,EAAEwB,kBACF,MAAMnC,EAAQW,EAAE4B,OAAOvC,MACvB,MAAMX,EAAOmD,SAASxC,GACtB/C,KAAK0C,mBACL,GAAI8C,MAAMpD,KAAU,MAAO,CAC1BpC,KAAKa,sBAAsBuB,GAC3B,GAAIpC,KAAKsC,KAAM,CACdmD,OAAOC,SAASnC,KAAOvD,KAAKqC,eAAeD,E,KACrC,CACNpC,KAAKmF,QAAQC,KAAK,CACjBC,UAAWxH,EAAgBC,KAC3BkE,WAAYhC,KAAKgC,Y","ignoreList":[]}
1
+ {"version":3,"names":["PaginationSizes","pick","Sizes","PaginationColors","Colors","PaginationTypes","PaginationClass","root","list","item","itemArrow","itemMore","itemSelect","inner","arrow","paginate","totalItems","currentPage","pageSize","maxPages","totalPages","Math","ceil","startPage","endPage","maxPagesBeforeCurrentPage","floor","maxPagesAfterCurrentPage","startIndex","endIndex","min","pages","Array","from","keys","map","i","GovPagination","proxyCustomElement","H","constructor","this","h","govHost","host","pageSelectId","createID","selectId","validateType","newValue","validateProp","validateSize","validateColor","recalculate","recalculatePagination","current","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","size","color","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","_a","stopObserving","removeAttribute","Object","assign","pagination","total","isActivePageClass","originalClass","page","prepareLinkUrl","link","String","replace","undefined","resetSelectValue","spreadSelectRef","getRef","then","el","value","render","pageResolver","content","description","isDisabled","ariaCurrent","toBoolAttrIfDefined","href","type","disabled","e","onClickHandler","accessiblePageLabel","class","focusable","Host","classes","prepareClasses","name","labelStart","labelPrev","id","hidden","accessibleSelectLabel","identifier","selectIdentifier","onSelectHandler","bind","createArrayRange","selected","Fragment","ref","labelNext","labelEnd","stopPropagation","govPage","emit","component","detail","parseInt","isNaN","window","location"],"sources":["../../../packages/core/src/components/gov-pagination/constants.ts","../../../packages/core/src/components/gov-pagination/pagination.ts","../../../packages/core/src/components/gov-pagination/gov-pagination.tsx"],"sourcesContent":["import { Sizes } from '../../core/constants/sizes'\nimport { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const PaginationSizes = pick(Sizes, ['_S', '_M'])\nexport type PaginationSizeType = `${ValueOf<typeof PaginationSizes>}`\n\nexport const PaginationColors = pick(Colors, ['PRIMARY', 'NEUTRAL'])\nexport type PaginationColorType = `${ValueOf<typeof PaginationColors>}`\n\nexport enum PaginationTypes {\n\tBUTTON = 'button',\n\tSELECT = 'select',\n}\nexport type PaginationType = `${ValueOf<typeof PaginationTypes>}`\n\nexport const PaginationClass = {\n\troot: 'gov-pagination',\n\tlist: 'gov-pagination__list',\n\titem: 'gov-pagination__item',\n\titemArrow: 'gov-pagination__item--arrow',\n\titemMore: 'gov-pagination__item--more',\n\titemSelect: 'gov-pagination__item--select',\n\tinner: 'gov-pagination__inner',\n\tarrow: 'gov-pagination__arrow',\n}\n","export interface Pagination {\n\ttotalItems: number\n\tcurrentPage: number\n\tpageSize: number\n\ttotalPages: number\n\tstartPage: number\n\tendPage: number\n\tstartIndex: number\n\tendIndex: number\n\tpages: number[]\n}\n\nexport function paginate(totalItems: number, currentPage = 1, pageSize = 10, maxPages = 10): Pagination {\n\t// calculate total pages\n\tconst totalPages = Math.ceil(totalItems / pageSize)\n\n\t// ensure current page isn't out of range\n\tif (currentPage < 1) {\n\t\tcurrentPage = 1\n\t} else if (currentPage > totalPages) {\n\t\tcurrentPage = totalPages\n\t}\n\n\tlet startPage: number, endPage: number\n\tif (totalPages <= maxPages) {\n\t\t// total pages less than max so show all pages\n\t\tstartPage = 1\n\t\tendPage = totalPages\n\t} else {\n\t\t// total pages more than max so calculate start and end pages\n\t\tconst maxPagesBeforeCurrentPage = Math.floor(maxPages / 2)\n\t\tconst maxPagesAfterCurrentPage = Math.ceil(maxPages / 2) - 1\n\t\tif (currentPage <= maxPagesBeforeCurrentPage) {\n\t\t\t// current page near the start\n\t\t\tstartPage = 1\n\t\t\tendPage = maxPages\n\t\t} else if (currentPage + maxPagesAfterCurrentPage >= totalPages) {\n\t\t\t// current page near the end\n\t\t\tstartPage = totalPages - maxPages + 1\n\t\t\tendPage = totalPages\n\t\t} else {\n\t\t\t// current page somewhere in the middle\n\t\t\tstartPage = currentPage - maxPagesBeforeCurrentPage\n\t\t\tendPage = currentPage + maxPagesAfterCurrentPage\n\t\t}\n\t}\n\n\t// calculate start and end item indexes\n\tconst startIndex = (currentPage - 1) * pageSize\n\tconst endIndex = Math.min(startIndex + pageSize - 1, totalItems - 1)\n\n\t// create an array of pages to ng-repeat in the pager control\n\tconst pages = Array.from(Array(endPage + 1 - startPage).keys()).map(i => startPage + i)\n\n\t// return object with all pager properties required by the view\n\treturn {\n\t\ttotalItems: totalItems,\n\t\tcurrentPage: currentPage,\n\t\tpageSize: pageSize,\n\t\ttotalPages: totalPages,\n\t\tstartPage: startPage,\n\t\tendPage: endPage,\n\t\tstartIndex: startIndex,\n\t\tendIndex: endIndex,\n\t\tpages: pages,\n\t}\n}\n","import Fragment from \"../../helpers/Fragment\"\nimport {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {validateProp} from \"../../helpers/Validate/props\"\nimport {\n\tPaginationClass,\n\tPaginationColors,\n\tPaginationColorType,\n\tPaginationSizes,\n\tPaginationSizeType,\n\tPaginationType,\n\tPaginationTypes,\n} from \"./constants\"\nimport {govHost, prepareClasses, toBoolAttrIfDefined} from \"../../helpers/Dom/template\"\nimport {paginate, Pagination} from \"./pagination\"\nimport {createID} from \"../../utils/string.utils\"\nimport {GovHost} from \"../../helpers/Dom/template.types\"\nimport {createArrayRange} from \"../../utils/array.utils\"\nimport {FormSelectEvent} from \"../gov-form/select/gov-form-select.types\"\nimport {PaginationEvent} from \"./gov-pagination.types\"\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-pagination\",\n})\nexport class GovPagination {\n\tprivate h: GovHost\n\tprivate readonly pageSelectId: string\n\tprivate readonly selectId: string\n\n\tprivate spreadSelectRef?: HTMLGovFormSelectElement\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.pageSelectId = createID(\"GovPageSelect\")\n\t\tthis.selectId = createID(\"GovSelect\")\n\t}\n\n\t@Element() readonly host: HTMLGovPaginationElement\n\t/**\n\t * Pagination type\n\t */\n\t@Prop() readonly type: PaginationType = \"button\"\n\t/**\n\t * Currently displayed page\n\t */\n\t@Prop() readonly current: number = 1\n\t/**\n\t * Total count of entries\n\t */\n\t@Prop() readonly total: number = 0\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'select-identifier'}) readonly selectIdentifier: string\n\t/**\n\t * Pagination's size\n\t */\n\t@Prop() readonly size?: PaginationSizeType = \"m\"\n\t/**\n\t * Style variation of the pagination.\n\t */\n\t@Prop() readonly color?: PaginationColorType = \"primary\"\n\t/**\n\t * Maximum number of entries per page\n\t */\n\t@Prop({attribute: \"page-size\"}) readonly pageSize: number = 10\n\t/**\n\t * Maximum pages displayed for selection\n\t */\n\t@Prop({attribute: \"max-pages\"}) readonly maxPages: number = 5\n\t/**\n\t * Setting a link to redirect to a given page.\n\t * The {PAGE} wildcard can be used in the link to replace the page number.\n\t * Note that in the case of paging through a link, it is always necessary to send to the component the current page where the user is.\n\t */\n\t@Prop() readonly link: string\n\t/**\n\t * Adds accessible label for the page select\n\t */\n\t@Prop({attribute: \"accessible-select-label\"}) readonly accessibleSelectLabel: string = \"Vybrat stranu\"\n\t/**\n\t * Adds accessible label for the page item\n\t */\n\t@Prop({attribute: \"accessible-page-label\"}) readonly accessiblePageLabel: string = \"Strana\"\n\t/**\n\t * Description of the possibility to go back one page\n\t */\n\t@Prop({attribute: \"label-prev\"}) readonly labelPrev = 'Přejít o stranu zpět'\n\t/**\n\t * Description of the option to go to the top of paging\n\t */\n\t@Prop({attribute: \"label-start\"}) readonly labelStart = 'Přejít na začátek'\n\t/**\n\t * Description of the option to go to the end of paging\n\t */\n\t@Prop({attribute: \"label-next\"}) readonly labelNext = 'Přejít na další stranu'\n\t/**\n\t * Description of the option to move one page forward\n\t */\n\t@Prop({attribute: \"label-end\"}) readonly labelEnd = 'Přejít na konec'\n\t/**\n\t * Event called when changing the page with the current setting of the whole paging\n\t */\n\t@Event({eventName: \"gov-page\"}) govPage: EventEmitter<PaginationEvent>\n\n\t@State() pagination: Pagination\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch(\"type\")\n\tvalidateType(newValue: string): void {\n\t\tvalidateProp(PaginationTypes, newValue, PaginationClass.root)\n\t}\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(PaginationSizes, newValue, PaginationClass.root)\n\t}\n\n\t@Watch(\"color\")\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(PaginationColors, newValue, PaginationClass.root)\n\t}\n\n\t@Watch(\"current\")\n\t@Watch(\"total\")\n\t@Watch(\"pageSize\")\n\t@Watch(\"maxPages\")\n\trecalculate(): void {\n\t\tthis.recalculatePagination(this.current)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.recalculatePagination(this.current)\n\t\tthis.validateSize(this.size)\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver?.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate recalculatePagination(currentPage: number) {\n\t\tthis.pagination = paginate(this.total, currentPage, this.pageSize, this.maxPages)\n\t}\n\n\tprivate isActivePageClass(originalClass: string, page: number) {\n\t\tif (this.pagination.currentPage === page) {\n\t\t\treturn originalClass + \" is-active\"\n\t\t} else {\n\t\t\treturn originalClass\n\t\t}\n\t}\n\n\tprivate prepareLinkUrl(page: number) {\n\t\tif (this.link) {\n\t\t\treturn String(this.link).replace(\"{PAGE}\", String(page))\n\t\t}\n\t\treturn undefined\n\t}\n\n\tprivate resetSelectValue() {\n\t\tif (this.spreadSelectRef) {\n\t\t\tthis.spreadSelectRef.getRef()\n\t\t\t\t.then((el: HTMLSelectElement) => {\n\t\t\t\t\tel.value = '...'\n\t\t\t\t})\n\t\t}\n\t}\n\n\trender() {\n\t\tconst pageResolver = (page: number, content: any, description: string) => {\n\t\t\tconst isDisabled = page === -1\n\t\t\tconst ariaCurrent = toBoolAttrIfDefined(this.pagination.currentPage === page ? true : undefined)\n\t\t\treturn (\n\t\t\t\t<gov-button\n\t\t\t\t\thref={this.prepareLinkUrl(page)}\n\t\t\t\t\tcolor={this.color}\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\ttype=\"base\"\n\t\t\t\t\tdisabled={isDisabled}\n\t\t\t\t\ton-gov-click={(e) => this.onClickHandler(e, page)}\n\t\t\t\t\taria-label={description ? description : page > -1 ? `${this.accessiblePageLabel} ${page}` : undefined}\n\t\t\t\t\taria-current={ariaCurrent}\n\t\t\t\t\tclass={PaginationClass.inner}\n\t\t\t\t\tfocusable={true}>\n\t\t\t\t\t{content}\n\t\t\t\t</gov-button>\n\t\t\t)\n\t\t}\n\t\treturn (\n\t\t\t<Host class={this.h.classes(PaginationClass.root)} type={this.type} color={this.color} size={this.size}>\n\t\t\t\t<nav {...this.inheritedAttributes}>\n\t\t\t\t\t<ul class={PaginationClass.list}>\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.currentPage > 1 ? 1 : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-double-left\" type=\"components\"></gov-icon>,\n\t\t\t\t\t\t\t\tthis.labelStart\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-left\" type=\"components\"></gov-icon>,\n\t\t\t\t\t\t\t\tthis.labelPrev\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t{this.type == \"select\" ? (\n\t\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemSelect])}>\n\t\t\t\t\t\t\t\t<span class={PaginationClass.inner}>\n\t\t\t\t\t\t\t\t\t<span id={this.pageSelectId} hidden>\n\t\t\t\t\t\t\t\t\t\t{this.accessibleSelectLabel}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t<gov-form-select\n\t\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\t\t\t\t\tidentifier={this.selectIdentifier || this.selectId}\n\t\t\t\t\t\t\t\t\t\taria-labelledby={this.pageSelectId}\n\t\t\t\t\t\t\t\t\t\ton-gov-change={this.onSelectHandler.bind(this)}>\n\t\t\t\t\t\t\t\t\t\t{createArrayRange(1, this.pagination.totalPages).map(page => (\n\t\t\t\t\t\t\t\t\t\t\t<option value={page} selected={this.pagination.currentPage === page}>\n\t\t\t\t\t\t\t\t\t\t\t\t{page}\n\t\t\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t</gov-form-select>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t{this.pagination.pages.map(page => (\n\t\t\t\t\t\t\t\t\t<li class={this.isActivePageClass(PaginationClass.item, page)}>{pageResolver(page, page, '')}</li>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t{this.pagination.totalPages ? (\n\t\t\t\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemMore])}>\n\t\t\t\t\t\t\t\t\t<span class={PaginationClass.inner}>\n\t\t\t\t\t\t\t\t\t\t<span id={this.pageSelectId} hidden>\n\t\t\t\t\t\t\t\t\t\t\t{this.accessibleSelectLabel}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<gov-form-select\n\t\t\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\t\t\tcolor={this.color}\n\t\t\t\t\t\t\t\t\t\t\tidentifier={this.selectIdentifier || this.selectId}\n\t\t\t\t\t\t\t\t\t\t\taria-labelledby={this.pageSelectId}\n\t\t\t\t\t\t\t\t\t\t\tref={el => (this.spreadSelectRef = el as HTMLGovFormSelectElement)}\n\t\t\t\t\t\t\t\t\t\t\ton-gov-change={this.onSelectHandler.bind(this)}>\n\t\t\t\t\t\t\t\t\t\t\t<option selected hidden>...</option>\n\t\t\t\t\t\t\t\t\t\t\t{createArrayRange(1, this.pagination.totalPages).map(page => (\n\t\t\t\t\t\t\t\t\t\t\t\t<option value={page} selected={false}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{page}\n\t\t\t\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t\t\t</gov-form-select>\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-right\" type=\"components\"></gov-icon>,\n\t\t\t\t\t\t\t\tthis.labelNext\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\n\t\t\t\t\t\t<li class={prepareClasses([PaginationClass.item, PaginationClass.itemArrow])}>\n\t\t\t\t\t\t\t{pageResolver(\n\t\t\t\t\t\t\t\tthis.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1,\n\t\t\t\t\t\t\t\t<gov-icon class={PaginationClass.arrow} name=\"chevron-double-right\" type=\"components\"></gov-icon>,\n\t\t\t\t\t\t\t\tthis.labelEnd\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: CustomEvent, page: number): void {\n\t\te.stopPropagation()\n\t\tthis.recalculatePagination(page)\n\t\tthis.govPage.emit({\n\t\t\tcomponent: PaginationClass.root,\n\t\t\tpagination: this.pagination\n\t\t})\n\t}\n\n\tprivate onSelectHandler(e: CustomEvent<FormSelectEvent>): void {\n\t\te.stopPropagation()\n\t\tconst value = e.detail.value\n\t\tconst page = parseInt(value)\n\t\tthis.resetSelectValue()\n\t\tif (isNaN(page) === false) {\n\t\t\tthis.recalculatePagination(page)\n\t\t\tif (this.link) {\n\t\t\t\twindow.location.href = this.prepareLinkUrl(page)\n\t\t\t} else {\n\t\t\t\tthis.govPage.emit({\n\t\t\t\t\tcomponent: PaginationClass.root,\n\t\t\t\t\tpagination: this.pagination\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":"ugBAKO,MAAMA,EAAkBC,EAAKC,EAAO,CAAC,KAAM,OAG3C,MAAMC,EAAmBF,EAAKG,EAAQ,CAAC,UAAW,YAGzD,IAAYC,GAAZ,SAAYA,GACXA,EAAA,mBACAA,EAAA,kBACA,EAHD,CAAYA,MAAe,KAMpB,MAAMC,EAAkB,CAC9BC,KAAM,iBACNC,KAAM,uBACNC,KAAM,uBACNC,UAAW,8BACXC,SAAU,6BACVC,WAAY,+BACZC,MAAO,wBACPC,MAAO,yB,SCbQC,EAASC,EAAoBC,EAAc,EAAGC,EAAW,GAAIC,EAAW,IAEvF,MAAMC,EAAaC,KAAKC,KAAKN,EAAaE,GAG1C,GAAID,EAAc,EAAG,CACpBA,EAAc,C,MACR,GAAIA,EAAcG,EAAY,CACpCH,EAAcG,C,CAGf,I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EAAA,MAAI6D,MAAOI,EAAe,CAACrG,EAAgBG,KAAMH,EAAgBI,aAC/DiF,EACAlD,KAAKiC,WAAWtD,WAAaqB,KAAKiC,WAAWzD,YAAcwB,KAAKiC,WAAWtD,YAAc,EACzFsB,EAAA,YAAU6D,MAAOjG,EAAgBQ,MAAO8F,KAAK,uBAAuBV,KAAK,eACzEzD,KAAKkF,a,CASJ,cAAAtB,CAAeD,EAAgBtB,GACtCsB,EAAEwB,kBACFnF,KAAKa,sBAAsBwB,GAC3BrC,KAAKoF,QAAQC,KAAK,CACjBC,UAAWzH,EAAgBC,KAC3BmE,WAAYjC,KAAKiC,Y,CAIX,eAAA0C,CAAgBhB,GACvBA,EAAEwB,kBACF,MAAMnC,EAAQW,EAAE4B,OAAOvC,MACvB,MAAMX,EAAOmD,SAASxC,GACtBhD,KAAK2C,mBACL,GAAI8C,MAAMpD,KAAU,MAAO,CAC1BrC,KAAKa,sBAAsBwB,GAC3B,GAAIrC,KAAKuC,KAAM,CACdmD,OAAOC,SAASnC,KAAOxD,KAAKsC,eAAeD,E,KACrC,CACNrC,KAAKoF,QAAQC,KAAK,CACjBC,UAAWzH,EAAgBC,KAC3BmE,WAAYjC,KAAKiC,Y","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-b97d8edd.js";const d=o;const t=s;export{d as GovSkeleton,t as defineCustomElement};
1
+ import{G as o,d as s}from"./p-313b4611.js";const t=o;const p=s;export{t as GovSkeleton,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-skeleton.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as s,d as i}from"./p-42200001.js";import{v as a}from"./p-0b3574c2.js";import{S as o}from"./p-92f420cb.js";import{p as n}from"./p-e0e2e9c1.js";import{g as r}from"./p-ea7fdd2e.js";const c=n(o,["_2XS","_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL"]);var p;(function(e){e["NONE"]="none";e["SM"]="sm";e["MD"]="md";e["LG"]="lg";e["XL"]="xl"})(p||(p={}));const d={root:"gov-spacer"};const m=e(class e extends t{constructor(){super();this.__registerHost();this.size=undefined;this.breakpoint=undefined;this.h=r(this.host)}validateSize(e){a(c,e,d.root)}validateBreakpoint(e){a(p,e,d.root)}componentWillLoad(){this.validateSize(this.size);this.validateBreakpoint(this.breakpoint)}render(){return s(i,{key:"23aedb7f3b112a356319aba076eedf9a4743e25b",class:this.h.classes(d.root),size:this.size,breakpoint:this.breakpoint})}get host(){return this}static get watchers(){return{size:["validateSize"],breakpoint:["validateBreakpoint"]}}},[0,"gov-spacer",{size:[1],breakpoint:[1]},undefined,{size:["validateSize"],breakpoint:["validateBreakpoint"]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-spacer"];e.forEach((e=>{switch(e){case"gov-spacer":if(!customElements.get(e)){customElements.define(e,m)}break}}))}f();const h=m;const l=f;export{h as GovSpacer,l as defineCustomElement};
1
+ import{p as e,H as t,h as s,d as i}from"./p-42200001.js";import{v as o}from"./p-0b3574c2.js";import{S as a}from"./p-92f420cb.js";import{p as n}from"./p-e0e2e9c1.js";import{g as r}from"./p-ea7fdd2e.js";const c=n(a,["_2XS","_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL"]);var p;(function(e){e["NONE"]="none";e["SM"]="sm";e["MD"]="md";e["LG"]="lg";e["XL"]="xl"})(p||(p={}));const d={root:"gov-spacer"};const m=e(class e extends t{constructor(){super();this.__registerHost();this.size=undefined;this.breakpoint=undefined;this.h=r(this.host)}validateSize(e){o(c,e,d.root)}validateBreakpoint(e){o(p,e,d.root)}componentWillLoad(){this.validateSize(this.size);this.validateBreakpoint(this.breakpoint)}render(){return s(i,{key:"f4c81a7820625de045b36a5bee9ced0eebe8e433",class:this.h.classes(d.root),size:this.size,breakpoint:this.breakpoint})}get host(){return this}static get watchers(){return{size:["validateSize"],breakpoint:["validateBreakpoint"]}}},[0,"gov-spacer",{size:[1],breakpoint:[1]},undefined,{size:["validateSize"],breakpoint:["validateBreakpoint"]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-spacer"];e.forEach((e=>{switch(e){case"gov-spacer":if(!customElements.get(e)){customElements.define(e,m)}break}}))}f();const h=m;const l=f;export{h as GovSpacer,l as defineCustomElement};
2
2
  //# sourceMappingURL=gov-spacer.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,c as s,h as a,d as c}from"./p-42200001.js";import{v as o}from"./p-0b3574c2.js";import{S as i,c as d}from"./p-a521c59a.js";import{c as r}from"./p-cd6c2938.js";import{g as n}from"./p-ea7fdd2e.js";const f=e(class e extends t{constructor(){super();this.__registerHost();this.govChange=s(this,"gov-change",7);this.hydrated=false;this.color="primary";this.size="m";this.identifier=undefined;this.h=n(this.host);this.triggerId=r("GovStepperItem");this.contentId=r("GovStepperContent")}validateColor(e){o(d,e,i.root)}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const e=this.identifier||this.triggerId;const t=this.contentId;return a(c,{key:"c24400b8ee5917005e6e3a21f47024c7ebad2960",id:e,class:this.h.classes(i.root),color:this.color,role:"listitem",hydrated:this.hydrated},this.h.hasSlot("prefix")&&a("span",{key:"010401daa60b44eed322de007fdd6e4ca035ff8d",class:i.prefix},a("slot",{key:"27287e54365c7e72e01dd21f8d07f7144dc03f3c",name:"prefix"})),a("div",{key:"b50e23ee80b270bb5bb781c46e2cf2de73cad1bb"},a("span",{key:"84500822ca2e529bff5e5cf4eb7ac7c9f0fc9d97",class:i.headline},a("slot",{key:"18410e07be87715a96540789a82403bfab45e55c",name:"headline"})),a("slot",{key:"dd2c20b9f07d2bcbf4223eca8de0d7592d178e86",name:"annotation"}),this.h.hasSlot("content")&&a("div",{key:"cd34d17b5a14816dd91ee84f91a14217952bcfe5",class:i.content,id:t,"aria-labelledby":e,role:"tabpanel"},a("slot",{key:"c90f411f8d63c6381f55a0e6ac819369a9bfd2e5",name:"content"}))))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-stepper-item",{color:[1],size:[1],identifier:[1]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-stepper-item"];e.forEach((e=>{switch(e){case"gov-stepper-item":if(!customElements.get(e)){customElements.define(e,f)}break}}))}l();const p=f;const h=l;export{p as GovStepperItem,h as defineCustomElement};
1
+ import{p as e,H as a,c as t,h as s,d as c}from"./p-42200001.js";import{v as d}from"./p-0b3574c2.js";import{S as o,c as i}from"./p-2ca5423c.js";import{c as n}from"./p-cd6c2938.js";import{g as r}from"./p-ea7fdd2e.js";const f=e(class e extends a{constructor(){super();this.__registerHost();this.govChange=t(this,"gov-change",7);this.hydrated=false;this.color="primary";this.size="m";this.identifier=undefined;this.h=r(this.host);this.triggerId=n("GovStepperItem");this.contentId=n("GovStepperContent")}validateColor(e){d(i,e,o.root)}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const e=this.identifier||this.triggerId;const a=this.contentId;return s(c,{key:"ef017294b38b6fda6da1bceb8a85185a4f088270",id:e,class:this.h.classes(o.root),color:this.color,role:"listitem",hydrated:this.hydrated},s("div",{key:"37ebc08427d94722ff4127b6aa39b4f28e2844f5"},s("div",{key:"0f74091afd24d44a77249cadcfc51a3618985632",class:o.steps},s("span",{key:"397c1a50f02498ff849d0b93dbca66cae076761e"}),s("span",{key:"5b70a1ada896d1f3092acf345eae2d6265513cc5",class:o.prefix},s("slot",{key:"e6b30945934e11db11d0ee035224b1969bb3808d",name:"prefix"})),s("span",{key:"d0ab63fc8038726b39ca41a79f8d73c5cad9b670"})),s("div",{key:"76366242f47074a4e5f18062d7cc0a5ad54c22aa",class:o.main},s("span",{key:"f28fcf03b8abe71de585c41d378d4a9a8fda4f5a",class:o.headline},s("slot",{key:"41dac89031060fbb12d36ba2ca1d0d65f0bfc372",name:"headline"})),s("slot",{key:"c4ce96cb0625d66244887874de84981101014d39",name:"annotation"}),this.h.hasSlot("content")&&s("div",{key:"d45cd14c4e1b8cfd48cb73673be3d7da76a662e6",class:o.content,id:a,"aria-labelledby":e,role:"tabpanel"},s("slot",{key:"3a2896b00d01c76ecb0346d601801c538ab9ba8f",name:"content"})))))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-stepper-item",{color:[1],size:[1],identifier:[1]},undefined,{color:["validateColor"]}]);function b(){if(typeof customElements==="undefined"){return}const e=["gov-stepper-item"];e.forEach((e=>{switch(e){case"gov-stepper-item":if(!customElements.get(e)){customElements.define(e,f)}break}}))}b();const l=f;const p=b;export{l as GovStepperItem,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-stepper-item.js.map