@gov-design-system-ce/components 4.2.0 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) 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/core.cjs.js +1 -1
  4. package/dist/cjs/gov-attachments_3.cjs.entry.js +3 -3
  5. package/dist/cjs/gov-backdrop.cjs.entry.js +2 -2
  6. package/dist/cjs/gov-banner.cjs.entry.js +21 -20
  7. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gov-blockquote.cjs.entry.js +1 -1
  9. package/dist/cjs/gov-blockquote.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
  11. package/dist/cjs/gov-button.cjs.entry.js +5 -5
  12. package/dist/cjs/gov-card.cjs.entry.js +11 -3
  13. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  14. package/dist/cjs/gov-chip.cjs.entry.js +2 -2
  15. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  16. package/dist/cjs/gov-control-group.cjs.entry.js +1 -1
  17. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  18. package/dist/cjs/gov-dialog.cjs.entry.js +3 -3
  19. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  20. package/dist/cjs/gov-empty.cjs.entry.js +1 -1
  21. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  22. package/dist/cjs/gov-flex_3.cjs.entry.js +3 -3
  23. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
  24. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +3 -3
  25. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  26. package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-form-group.cjs.entry.js +1 -1
  28. package/dist/cjs/gov-form-input_2.cjs.entry.js +6 -6
  29. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  30. package/dist/cjs/gov-form-multi-select.cjs.entry.js +4 -4
  31. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  32. package/dist/cjs/gov-form-radio-group.cjs.entry.js +1 -1
  33. package/dist/cjs/gov-form-range.cjs.entry.js +207 -0
  34. package/dist/cjs/gov-form-range.cjs.entry.js.map +1 -0
  35. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  36. package/dist/cjs/gov-form-select.cjs.entry.js +4 -4
  37. package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
  38. package/dist/cjs/gov-grid.cjs.entry.js +1 -1
  39. package/dist/cjs/gov-infobar.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-layout-column.cjs.entry.js +1 -1
  41. package/dist/cjs/gov-layout.cjs.entry.js +1 -1
  42. package/dist/cjs/gov-lifecycle.cjs.entry.js +1 -1
  43. package/dist/cjs/gov-link.cjs.entry.js +2 -1
  44. package/dist/cjs/gov-link.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gov-loading.cjs.entry.js +1 -1
  46. package/dist/cjs/gov-message.cjs.entry.js +1 -1
  47. package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
  48. package/dist/cjs/gov-spacer.cjs.entry.js +1 -1
  49. package/dist/cjs/gov-stepper-item.cjs.entry.js +1 -1
  50. package/dist/cjs/gov-stepper.cjs.entry.js +1 -1
  51. package/dist/cjs/gov-tabs-item.cjs.entry.js +1 -1
  52. package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
  53. package/dist/cjs/gov-tag.cjs.entry.js +1 -1
  54. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  55. package/dist/cjs/gov-toast.cjs.entry.js +1 -1
  56. package/dist/cjs/gov-tooltip-content.cjs.entry.js +1 -1
  57. package/dist/cjs/gov-tooltip.cjs.entry.js +2 -2
  58. package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
  59. package/dist/cjs/gov-wizard.cjs.entry.js +3 -3
  60. package/dist/cjs/{helpers.types-ff60c9bd.js → helpers.types-9066e4a4.js} +3 -1
  61. package/dist/cjs/helpers.types-9066e4a4.js.map +1 -0
  62. package/dist/cjs/index-0e4f24f9.js +4 -0
  63. package/dist/cjs/loader.cjs.js +1 -1
  64. package/dist/cjs/{wcag-2927ff73.js → wcag-f8da82da.js} +2 -2
  65. package/dist/cjs/{wcag-2927ff73.js.map → wcag-f8da82da.js.map} +1 -1
  66. package/dist/collection/collection-manifest.json +2 -1
  67. package/dist/collection/components/gov-banner/gov-banner.js +26 -73
  68. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
  69. package/dist/collection/components/gov-blockquote/constants.js.map +1 -0
  70. package/dist/collection/components/{gov-blocquote → gov-blockquote}/gov-blockquote.js +2 -2
  71. package/dist/collection/components/gov-blockquote/gov-blockquote.js.map +1 -0
  72. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  73. package/dist/collection/components/gov-button/button/gov-button.js +3 -3
  74. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  75. package/dist/collection/components/gov-card/gov-card.js +52 -1
  76. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  77. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  78. package/dist/collection/components/gov-container/gov-container.js +1 -1
  79. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  80. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  81. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  82. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  83. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  84. package/dist/collection/components/gov-flex/gov-flex.js +1 -1
  85. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -1
  86. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  87. package/dist/collection/components/gov-form/file/gov-form-file.js +1 -1
  88. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  89. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  90. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  91. package/dist/collection/components/gov-form/input/gov-form-input.js +5 -5
  92. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  93. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  94. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +2 -2
  95. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  96. package/dist/collection/components/gov-form/range/constants.js +9 -0
  97. package/dist/collection/components/gov-form/range/constants.js.map +1 -0
  98. package/dist/collection/components/gov-form/range/gov-form-range.js +610 -0
  99. package/dist/collection/components/gov-form/range/gov-form-range.js.map +1 -0
  100. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  101. package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
  102. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  103. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  104. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  105. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  106. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  107. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  108. package/dist/collection/components/gov-link/gov-link.js +20 -1
  109. package/dist/collection/components/gov-link/gov-link.js.map +1 -1
  110. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  111. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  112. package/dist/collection/components/gov-message/gov-message.js +1 -1
  113. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  114. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  115. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  116. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  117. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  118. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  119. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  120. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  121. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  122. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  123. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  124. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  125. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  126. package/dist/collection/data/color-definitions.js +13 -13
  127. package/dist/collection/data/font-definitions.js +86 -48
  128. package/dist/collection/pages/Banner.js +112 -112
  129. package/dist/collection/pages/Banner.js.map +1 -1
  130. package/dist/collection/pages/Blockquote.js +3 -3
  131. package/dist/collection/pages/Blockquote.js.map +1 -1
  132. package/dist/collection/pages/Card.js +27 -17
  133. package/dist/collection/pages/Card.js.map +1 -1
  134. package/dist/collection/pages/Forms.js +209 -4
  135. package/dist/collection/pages/Forms.js.map +1 -1
  136. package/dist/collection/pages/Message.js +10 -10
  137. package/dist/collection/pages/Message.js.map +1 -1
  138. package/dist/collection/pages/Typography.js +7 -0
  139. package/dist/collection/pages/Typography.js.map +1 -1
  140. package/dist/components/gov-accordion-item.js +1 -1
  141. package/dist/components/gov-attachments-item.js +1 -1
  142. package/dist/components/gov-attachments.js +1 -1
  143. package/dist/components/gov-backdrop.js +1 -1
  144. package/dist/components/gov-banner.js +1 -1
  145. package/dist/components/gov-banner.js.map +1 -1
  146. package/dist/components/gov-blockquote.js +1 -1
  147. package/dist/components/gov-blockquote.js.map +1 -1
  148. package/dist/components/gov-breadcrumbs.js +1 -1
  149. package/dist/components/gov-breadcrumbs.js.map +1 -1
  150. package/dist/components/gov-button.js +1 -1
  151. package/dist/components/gov-card.js +1 -1
  152. package/dist/components/gov-card.js.map +1 -1
  153. package/dist/components/gov-chip.js +1 -1
  154. package/dist/components/gov-container.js +1 -1
  155. package/dist/components/gov-control-group.js +1 -1
  156. package/dist/components/gov-cookiebar.js +1 -1
  157. package/dist/components/gov-dialog.js +1 -1
  158. package/dist/components/gov-dropdown.js +1 -1
  159. package/dist/components/gov-empty.js +1 -1
  160. package/dist/components/gov-error-code.js +1 -1
  161. package/dist/components/gov-flex.js +1 -1
  162. package/dist/components/gov-form-autocomplete.js +1 -1
  163. package/dist/components/gov-form-checkbox-group.js +1 -1
  164. package/dist/components/gov-form-checkbox.js +1 -1
  165. package/dist/components/gov-form-control.js +1 -1
  166. package/dist/components/gov-form-file.js +1 -1
  167. package/dist/components/gov-form-group.js +1 -1
  168. package/dist/components/gov-form-input.js +1 -1
  169. package/dist/components/gov-form-label.js +1 -1
  170. package/dist/components/gov-form-message.js +1 -1
  171. package/dist/components/gov-form-multi-select.js +1 -1
  172. package/dist/components/gov-form-password-power.js +1 -1
  173. package/dist/components/gov-form-radio-group.js +1 -1
  174. package/dist/components/gov-form-range.d.ts +11 -0
  175. package/dist/components/gov-form-range.js +2 -0
  176. package/dist/components/gov-form-range.js.map +1 -0
  177. package/dist/components/gov-form-search.js +1 -1
  178. package/dist/components/gov-form-select.js +1 -1
  179. package/dist/components/gov-form-switch.js +1 -1
  180. package/dist/components/gov-grid-item.js +1 -1
  181. package/dist/components/gov-grid.js +1 -1
  182. package/dist/components/gov-icon.js +1 -1
  183. package/dist/components/gov-infobar.js +1 -1
  184. package/dist/components/gov-infobar.js.map +1 -1
  185. package/dist/components/gov-layout-column.js +1 -1
  186. package/dist/components/gov-layout-column.js.map +1 -1
  187. package/dist/components/gov-layout.js +1 -1
  188. package/dist/components/gov-lifecycle.js +1 -1
  189. package/dist/components/gov-link.js +1 -1
  190. package/dist/components/gov-link.js.map +1 -1
  191. package/dist/components/gov-loading.js +1 -1
  192. package/dist/components/gov-loading.js.map +1 -1
  193. package/dist/components/gov-message.js +1 -1
  194. package/dist/components/gov-pagination.js +1 -1
  195. package/dist/components/gov-skeleton.js +1 -1
  196. package/dist/components/gov-spacer.js +1 -1
  197. package/dist/components/gov-stepper-item.js +1 -1
  198. package/dist/components/gov-stepper.js +1 -1
  199. package/dist/components/gov-tabs-item.js +1 -1
  200. package/dist/components/gov-tabs.js +1 -1
  201. package/dist/components/gov-tag.js +1 -1
  202. package/dist/components/gov-theme-switch.js +1 -1
  203. package/dist/components/gov-tile.js +1 -1
  204. package/dist/components/gov-toast.js +1 -1
  205. package/dist/components/gov-tooltip-content.js +1 -1
  206. package/dist/components/gov-tooltip.js +1 -1
  207. package/dist/components/gov-tooltip.js.map +1 -1
  208. package/dist/components/gov-wizard-item.js +1 -1
  209. package/dist/components/gov-wizard.js +1 -1
  210. package/dist/components/{p-73938936.js → p-022e49cf.js} +2 -2
  211. package/dist/components/p-10cad7f1.js +2 -0
  212. package/dist/components/p-2fe7d728.js +2 -0
  213. package/dist/components/p-2fe7d728.js.map +1 -0
  214. package/dist/components/{p-b533871a.js → p-313b4611.js} +2 -2
  215. package/dist/components/{p-3fead64a.js → p-5a861cd2.js} +2 -2
  216. package/dist/components/{p-0327a469.js → p-5b0934a8.js} +2 -2
  217. package/dist/components/{p-3c90521b.js → p-5d60b866.js} +2 -2
  218. package/dist/components/{p-69a31c96.js → p-6ce6e14f.js} +2 -2
  219. package/dist/components/{p-2fc08a71.js → p-7fb16042.js} +2 -2
  220. package/dist/components/p-be086357.js +2 -0
  221. package/dist/components/{p-4fba9df0.js → p-d3435179.js} +2 -2
  222. package/dist/components/p-de989dfe.js +2 -0
  223. package/dist/components/{p-7be2301a.js → p-e0c3b1a7.js} +2 -2
  224. package/dist/components/{p-b5dc6bae.js → p-f9b1a12b.js} +2 -2
  225. package/dist/core/core.css +708 -733
  226. package/dist/core/core.esm.js +1 -1
  227. package/dist/core/core.esm.js.map +1 -1
  228. package/dist/core/p-07590d84.entry.js +2 -0
  229. package/dist/core/p-07590d84.entry.js.map +1 -0
  230. package/dist/core/p-08552a0e.entry.js +2 -0
  231. package/dist/core/{p-16f44a0b.entry.js.map → p-08552a0e.entry.js.map} +1 -1
  232. package/dist/core/p-0abc38e8.entry.js +2 -0
  233. package/dist/core/{p-28d1bc01.entry.js.map → p-0abc38e8.entry.js.map} +1 -1
  234. package/dist/core/p-0c393d2f.entry.js +2 -0
  235. package/dist/core/p-16ece889.entry.js +2 -0
  236. package/dist/core/p-171e2a2f.entry.js +2 -0
  237. package/dist/core/p-25615325.entry.js +2 -0
  238. package/dist/core/{p-132c9a87.entry.js → p-2a7bcce0.entry.js} +2 -2
  239. package/dist/core/{p-f120ba66.entry.js → p-2f966102.entry.js} +2 -2
  240. package/dist/core/p-2fe7d728.js +2 -0
  241. package/dist/core/p-2fe7d728.js.map +1 -0
  242. package/dist/core/{p-9ae280b2.entry.js → p-3583dcf7.entry.js} +2 -2
  243. package/dist/core/p-3b2267a1.entry.js +2 -0
  244. package/dist/core/p-4216d8f3.entry.js +2 -0
  245. package/dist/core/p-44c912e2.entry.js +2 -0
  246. package/dist/core/p-4d5f768f.entry.js +2 -0
  247. package/dist/core/p-52bb8e4f.entry.js +2 -0
  248. package/dist/core/{p-f7e47c0a.entry.js.map → p-52bb8e4f.entry.js.map} +1 -1
  249. package/dist/core/p-52c74fc5.entry.js +2 -0
  250. package/dist/core/p-548806cb.entry.js +2 -0
  251. package/dist/core/{p-ab868410.entry.js → p-5fa4965e.entry.js} +2 -2
  252. package/dist/core/p-6d54ce5f.js +2 -0
  253. package/dist/core/p-6f74eb08.entry.js +2 -0
  254. package/dist/core/{p-5108eb37.entry.js → p-75dae924.entry.js} +2 -2
  255. package/dist/core/p-774ea182.entry.js +2 -0
  256. package/dist/core/p-843f980a.entry.js +2 -0
  257. package/dist/core/p-8a72ebcd.entry.js +2 -0
  258. package/dist/core/{p-94119ad4.entry.js → p-8cd7a120.entry.js} +2 -2
  259. package/dist/core/{p-99f192c1.entry.js → p-8f469270.entry.js} +2 -2
  260. package/dist/core/{p-564555e6.entry.js → p-947804a8.entry.js} +2 -2
  261. package/dist/core/p-979ff58c.entry.js +2 -0
  262. package/dist/core/p-979ff58c.entry.js.map +1 -0
  263. package/dist/core/{p-5242b51b.entry.js → p-981f217e.entry.js} +2 -2
  264. package/dist/core/p-9c1f3e9e.entry.js +2 -0
  265. package/dist/core/p-9c1f3e9e.entry.js.map +1 -0
  266. package/dist/core/{p-ab11081d.entry.js → p-a1c825f3.entry.js} +2 -2
  267. package/dist/core/p-a440365f.entry.js +2 -0
  268. package/dist/core/p-a440365f.entry.js.map +1 -0
  269. package/dist/core/p-a70c7959.entry.js +2 -0
  270. package/dist/core/{p-1cf1dd10.entry.js.map → p-a70c7959.entry.js.map} +1 -1
  271. package/dist/core/{p-59fe6cbc.entry.js → p-a8a7ae96.entry.js} +2 -2
  272. package/dist/core/p-aacafa40.entry.js +2 -0
  273. package/dist/core/{p-e89471ef.entry.js.map → p-aacafa40.entry.js.map} +1 -1
  274. package/dist/core/{p-a02f2547.entry.js → p-aeaba3ef.entry.js} +2 -2
  275. package/dist/core/p-b87e5429.entry.js +2 -0
  276. package/dist/core/p-b87e5429.entry.js.map +1 -0
  277. package/dist/core/p-b9f1c2ef.entry.js +2 -0
  278. package/dist/core/{p-3d7fb8f8.entry.js.map → p-b9f1c2ef.entry.js.map} +1 -1
  279. package/dist/core/p-bca478fd.entry.js +2 -0
  280. package/dist/core/{p-f98f19f6.entry.js.map → p-bca478fd.entry.js.map} +1 -1
  281. package/dist/core/p-be086357.js +2 -0
  282. package/dist/core/p-bea685cb.entry.js +2 -0
  283. package/dist/core/{p-49cd4d0d.entry.js.map → p-bea685cb.entry.js.map} +1 -1
  284. package/dist/core/{p-c07f6bb4.entry.js → p-c1584cfe.entry.js} +2 -2
  285. package/dist/core/p-c5a49469.entry.js +2 -0
  286. package/dist/core/{p-650fe9e8.entry.js.map → p-c5a49469.entry.js.map} +1 -1
  287. package/dist/core/{p-eb8a9705.entry.js → p-c88d8659.entry.js} +2 -2
  288. package/dist/core/p-cba1ebca.entry.js +2 -0
  289. package/dist/core/{p-16d3a79a.entry.js.map → p-cba1ebca.entry.js.map} +1 -1
  290. package/dist/core/p-ccb64e4e.entry.js +2 -0
  291. package/dist/core/p-d383f977.entry.js +2 -0
  292. package/dist/core/p-d990aae8.entry.js +2 -0
  293. package/dist/core/p-ddb3772f.entry.js +2 -0
  294. package/dist/core/{p-46ecf09e.entry.js.map → p-ddb3772f.entry.js.map} +1 -1
  295. package/dist/core/{p-ae88fe6b.entry.js → p-e2655cb7.entry.js} +2 -2
  296. package/dist/core/{p-3acaa012.entry.js → p-e29c9924.entry.js} +2 -2
  297. package/dist/core/p-ead1f58d.entry.js +2 -0
  298. package/dist/core/{p-f0e001c7.entry.js.map → p-ead1f58d.entry.js.map} +1 -1
  299. package/dist/core/{p-ee950038.entry.js → p-f83b3b08.entry.js} +2 -2
  300. package/dist/esm/{array.utils-85696abd.js → array.utils-3b213795.js} +2 -2
  301. package/dist/esm/{array.utils-85696abd.js.map → array.utils-3b213795.js.map} +1 -1
  302. package/dist/esm/core.js +1 -1
  303. package/dist/esm/gov-attachments_3.entry.js +3 -3
  304. package/dist/esm/gov-backdrop.entry.js +2 -2
  305. package/dist/esm/gov-banner.entry.js +21 -20
  306. package/dist/esm/gov-banner.entry.js.map +1 -1
  307. package/dist/esm/gov-blockquote.entry.js +1 -1
  308. package/dist/esm/gov-blockquote.entry.js.map +1 -1
  309. package/dist/esm/gov-breadcrumbs.entry.js +3 -3
  310. package/dist/esm/gov-button.entry.js +5 -5
  311. package/dist/esm/gov-card.entry.js +11 -3
  312. package/dist/esm/gov-card.entry.js.map +1 -1
  313. package/dist/esm/gov-chip.entry.js +2 -2
  314. package/dist/esm/gov-container.entry.js +1 -1
  315. package/dist/esm/gov-control-group.entry.js +1 -1
  316. package/dist/esm/gov-cookiebar.entry.js +1 -1
  317. package/dist/esm/gov-dialog.entry.js +3 -3
  318. package/dist/esm/gov-dropdown.entry.js +1 -1
  319. package/dist/esm/gov-empty.entry.js +1 -1
  320. package/dist/esm/gov-error-code.entry.js +1 -1
  321. package/dist/esm/gov-flex_3.entry.js +3 -3
  322. package/dist/esm/gov-form-autocomplete.entry.js +3 -3
  323. package/dist/esm/gov-form-checkbox-group.entry.js +3 -3
  324. package/dist/esm/gov-form-control.entry.js +1 -1
  325. package/dist/esm/gov-form-file.entry.js +1 -1
  326. package/dist/esm/gov-form-group.entry.js +1 -1
  327. package/dist/esm/gov-form-input_2.entry.js +6 -6
  328. package/dist/esm/gov-form-label.entry.js +1 -1
  329. package/dist/esm/gov-form-multi-select.entry.js +4 -4
  330. package/dist/esm/gov-form-password-power.entry.js +1 -1
  331. package/dist/esm/gov-form-radio-group.entry.js +1 -1
  332. package/dist/esm/gov-form-range.entry.js +203 -0
  333. package/dist/esm/gov-form-range.entry.js.map +1 -0
  334. package/dist/esm/gov-form-search.entry.js +1 -1
  335. package/dist/esm/gov-form-select.entry.js +4 -4
  336. package/dist/esm/gov-grid-item.entry.js +1 -1
  337. package/dist/esm/gov-grid.entry.js +1 -1
  338. package/dist/esm/gov-infobar.entry.js +2 -2
  339. package/dist/esm/gov-layout-column.entry.js +1 -1
  340. package/dist/esm/gov-layout.entry.js +1 -1
  341. package/dist/esm/gov-lifecycle.entry.js +1 -1
  342. package/dist/esm/gov-link.entry.js +2 -1
  343. package/dist/esm/gov-link.entry.js.map +1 -1
  344. package/dist/esm/gov-loading.entry.js +1 -1
  345. package/dist/esm/gov-message.entry.js +1 -1
  346. package/dist/esm/gov-pagination.entry.js +2 -2
  347. package/dist/esm/gov-spacer.entry.js +1 -1
  348. package/dist/esm/gov-stepper-item.entry.js +1 -1
  349. package/dist/esm/gov-stepper.entry.js +1 -1
  350. package/dist/esm/gov-tabs-item.entry.js +1 -1
  351. package/dist/esm/gov-tabs.entry.js +2 -2
  352. package/dist/esm/gov-tag.entry.js +1 -1
  353. package/dist/esm/gov-tile.entry.js +1 -1
  354. package/dist/esm/gov-toast.entry.js +1 -1
  355. package/dist/esm/gov-tooltip-content.entry.js +1 -1
  356. package/dist/esm/gov-tooltip.entry.js +2 -2
  357. package/dist/esm/gov-wizard-item.entry.js +2 -2
  358. package/dist/esm/gov-wizard.entry.js +3 -3
  359. package/dist/esm/{helpers.types-43ddbdb8.js → helpers.types-fe2f0447.js} +3 -2
  360. package/dist/esm/helpers.types-fe2f0447.js.map +1 -0
  361. package/dist/esm/index-bf8a6f64.js +4 -0
  362. package/dist/esm/loader.js +1 -1
  363. package/dist/esm/{wcag-253a4421.js → wcag-bd11d341.js} +2 -2
  364. package/dist/esm/{wcag-253a4421.js.map → wcag-bd11d341.js.map} +1 -1
  365. package/dist/hydrate/index.js +313 -86
  366. package/dist/hydrate/index.mjs +313 -86
  367. package/dist/stencil.config.js +1 -1
  368. package/dist/stencil.config.js.map +1 -1
  369. package/dist/types/components/gov-banner/gov-banner.d.ts +4 -14
  370. package/dist/types/components/gov-card/gov-card.d.ts +10 -0
  371. package/dist/types/components/gov-form/range/constants.d.ts +9 -0
  372. package/dist/types/components/gov-form/range/gov-form-range.d.ts +116 -0
  373. package/dist/types/components/gov-link/gov-link.d.ts +4 -0
  374. package/dist/types/components.d.ts +200 -22
  375. package/package.json +2 -2
  376. package/dist/cjs/helpers.types-ff60c9bd.js.map +0 -1
  377. package/dist/collection/components/gov-blocquote/constants.js.map +0 -1
  378. package/dist/collection/components/gov-blocquote/gov-blockquote.js.map +0 -1
  379. package/dist/components/p-2aedc81e.js +0 -2
  380. package/dist/components/p-2aedc81e.js.map +0 -1
  381. package/dist/components/p-80dad64b.js +0 -2
  382. package/dist/components/p-ded281e6.js +0 -2
  383. package/dist/components/p-f9a1ff6e.js +0 -2
  384. package/dist/core/p-005214d1.entry.js +0 -2
  385. package/dist/core/p-0fc9ea97.entry.js +0 -2
  386. package/dist/core/p-16d3a79a.entry.js +0 -2
  387. package/dist/core/p-16f44a0b.entry.js +0 -2
  388. package/dist/core/p-1c7c9144.entry.js +0 -2
  389. package/dist/core/p-1cf1dd10.entry.js +0 -2
  390. package/dist/core/p-23b4dcd3.entry.js +0 -2
  391. package/dist/core/p-28d1bc01.entry.js +0 -2
  392. package/dist/core/p-29ac15d2.js +0 -2
  393. package/dist/core/p-2aedc81e.js +0 -2
  394. package/dist/core/p-2aedc81e.js.map +0 -1
  395. package/dist/core/p-3d7fb8f8.entry.js +0 -2
  396. package/dist/core/p-46ecf09e.entry.js +0 -2
  397. package/dist/core/p-49cd4d0d.entry.js +0 -2
  398. package/dist/core/p-650fe9e8.entry.js +0 -2
  399. package/dist/core/p-6e41cf69.entry.js +0 -2
  400. package/dist/core/p-7399ad59.entry.js +0 -2
  401. package/dist/core/p-79ec86da.entry.js +0 -2
  402. package/dist/core/p-80bebb7f.entry.js +0 -2
  403. package/dist/core/p-8cbe8add.entry.js +0 -2
  404. package/dist/core/p-8f73f8e0.entry.js +0 -2
  405. package/dist/core/p-952ab9e5.entry.js +0 -2
  406. package/dist/core/p-9c1601b3.entry.js +0 -2
  407. package/dist/core/p-c2abc031.entry.js +0 -2
  408. package/dist/core/p-c688349d.entry.js +0 -2
  409. package/dist/core/p-c6fdc0a9.entry.js +0 -2
  410. package/dist/core/p-c6fdc0a9.entry.js.map +0 -1
  411. package/dist/core/p-c91512dd.entry.js +0 -2
  412. package/dist/core/p-cf9d5c2f.entry.js +0 -2
  413. package/dist/core/p-cf9d5c2f.entry.js.map +0 -1
  414. package/dist/core/p-d1270d72.entry.js +0 -2
  415. package/dist/core/p-d1270d72.entry.js.map +0 -1
  416. package/dist/core/p-d141e9ca.entry.js +0 -2
  417. package/dist/core/p-d141e9ca.entry.js.map +0 -1
  418. package/dist/core/p-de852480.entry.js +0 -2
  419. package/dist/core/p-ded281e6.js +0 -2
  420. package/dist/core/p-e89471ef.entry.js +0 -2
  421. package/dist/core/p-f0e001c7.entry.js +0 -2
  422. package/dist/core/p-f333c673.entry.js +0 -2
  423. package/dist/core/p-f7e47c0a.entry.js +0 -2
  424. package/dist/core/p-f98f19f6.entry.js +0 -2
  425. package/dist/esm/helpers.types-43ddbdb8.js.map +0 -1
  426. /package/dist/collection/components/{gov-blocquote → gov-blockquote}/constants.js +0 -0
  427. /package/dist/components/{p-73938936.js.map → p-022e49cf.js.map} +0 -0
  428. /package/dist/components/{p-80dad64b.js.map → p-10cad7f1.js.map} +0 -0
  429. /package/dist/components/{p-b533871a.js.map → p-313b4611.js.map} +0 -0
  430. /package/dist/components/{p-3fead64a.js.map → p-5a861cd2.js.map} +0 -0
  431. /package/dist/components/{p-0327a469.js.map → p-5b0934a8.js.map} +0 -0
  432. /package/dist/components/{p-3c90521b.js.map → p-5d60b866.js.map} +0 -0
  433. /package/dist/components/{p-69a31c96.js.map → p-6ce6e14f.js.map} +0 -0
  434. /package/dist/components/{p-2fc08a71.js.map → p-7fb16042.js.map} +0 -0
  435. /package/dist/components/{p-ded281e6.js.map → p-be086357.js.map} +0 -0
  436. /package/dist/components/{p-4fba9df0.js.map → p-d3435179.js.map} +0 -0
  437. /package/dist/components/{p-f9a1ff6e.js.map → p-de989dfe.js.map} +0 -0
  438. /package/dist/components/{p-7be2301a.js.map → p-e0c3b1a7.js.map} +0 -0
  439. /package/dist/components/{p-b5dc6bae.js.map → p-f9b1a12b.js.map} +0 -0
  440. /package/dist/core/{p-7399ad59.entry.js.map → p-0c393d2f.entry.js.map} +0 -0
  441. /package/dist/core/{p-9c1601b3.entry.js.map → p-16ece889.entry.js.map} +0 -0
  442. /package/dist/core/{p-1c7c9144.entry.js.map → p-171e2a2f.entry.js.map} +0 -0
  443. /package/dist/core/{p-23b4dcd3.entry.js.map → p-25615325.entry.js.map} +0 -0
  444. /package/dist/core/{p-132c9a87.entry.js.map → p-2a7bcce0.entry.js.map} +0 -0
  445. /package/dist/core/{p-f120ba66.entry.js.map → p-2f966102.entry.js.map} +0 -0
  446. /package/dist/core/{p-9ae280b2.entry.js.map → p-3583dcf7.entry.js.map} +0 -0
  447. /package/dist/core/{p-8cbe8add.entry.js.map → p-3b2267a1.entry.js.map} +0 -0
  448. /package/dist/core/{p-de852480.entry.js.map → p-4216d8f3.entry.js.map} +0 -0
  449. /package/dist/core/{p-80bebb7f.entry.js.map → p-44c912e2.entry.js.map} +0 -0
  450. /package/dist/core/{p-952ab9e5.entry.js.map → p-4d5f768f.entry.js.map} +0 -0
  451. /package/dist/core/{p-f333c673.entry.js.map → p-52c74fc5.entry.js.map} +0 -0
  452. /package/dist/core/{p-0fc9ea97.entry.js.map → p-548806cb.entry.js.map} +0 -0
  453. /package/dist/core/{p-ab868410.entry.js.map → p-5fa4965e.entry.js.map} +0 -0
  454. /package/dist/core/{p-29ac15d2.js.map → p-6d54ce5f.js.map} +0 -0
  455. /package/dist/core/{p-c688349d.entry.js.map → p-6f74eb08.entry.js.map} +0 -0
  456. /package/dist/core/{p-5108eb37.entry.js.map → p-75dae924.entry.js.map} +0 -0
  457. /package/dist/core/{p-005214d1.entry.js.map → p-774ea182.entry.js.map} +0 -0
  458. /package/dist/core/{p-79ec86da.entry.js.map → p-843f980a.entry.js.map} +0 -0
  459. /package/dist/core/{p-c91512dd.entry.js.map → p-8a72ebcd.entry.js.map} +0 -0
  460. /package/dist/core/{p-94119ad4.entry.js.map → p-8cd7a120.entry.js.map} +0 -0
  461. /package/dist/core/{p-99f192c1.entry.js.map → p-8f469270.entry.js.map} +0 -0
  462. /package/dist/core/{p-564555e6.entry.js.map → p-947804a8.entry.js.map} +0 -0
  463. /package/dist/core/{p-5242b51b.entry.js.map → p-981f217e.entry.js.map} +0 -0
  464. /package/dist/core/{p-ab11081d.entry.js.map → p-a1c825f3.entry.js.map} +0 -0
  465. /package/dist/core/{p-59fe6cbc.entry.js.map → p-a8a7ae96.entry.js.map} +0 -0
  466. /package/dist/core/{p-a02f2547.entry.js.map → p-aeaba3ef.entry.js.map} +0 -0
  467. /package/dist/core/{p-ded281e6.js.map → p-be086357.js.map} +0 -0
  468. /package/dist/core/{p-c07f6bb4.entry.js.map → p-c1584cfe.entry.js.map} +0 -0
  469. /package/dist/core/{p-eb8a9705.entry.js.map → p-c88d8659.entry.js.map} +0 -0
  470. /package/dist/core/{p-6e41cf69.entry.js.map → p-ccb64e4e.entry.js.map} +0 -0
  471. /package/dist/core/{p-c2abc031.entry.js.map → p-d383f977.entry.js.map} +0 -0
  472. /package/dist/core/{p-8f73f8e0.entry.js.map → p-d990aae8.entry.js.map} +0 -0
  473. /package/dist/core/{p-ae88fe6b.entry.js.map → p-e2655cb7.entry.js.map} +0 -0
  474. /package/dist/core/{p-3acaa012.entry.js.map → p-e29c9924.entry.js.map} +0 -0
  475. /package/dist/core/{p-ee950038.entry.js.map → p-f83b3b08.entry.js.map} +0 -0
  476. /package/dist/types/components/{gov-blocquote → gov-blockquote}/constants.d.ts +0 -0
  477. /package/dist/types/components/{gov-blocquote → gov-blockquote}/gov-blockquote.d.ts +0 -0
@@ -1,9 +1,6 @@
1
1
  import { h, Host } from "@stencil/core";
2
- import { validateAccessibleLabel } from "../../helpers/Validate/wcag";
3
- import { canValidateWcagOnRender } from "../../helpers/Dom/win";
4
2
  import { govHost } from "../../helpers/Dom/template";
5
- import { tick } from "../../utils/stencil.utils";
6
- import { BannerClass, BannerSizes, BannerBackground, BannerForeground, BannerTextColor } from "./constants";
3
+ import { BannerBackground, BannerClass, BannerForeground, BannerSizes, BannerTextColor } from "./constants";
7
4
  import { validateProp } from "../../helpers/Validate/props";
8
5
  export class GovBanner {
9
6
  constructor() {
@@ -11,29 +8,31 @@ export class GovBanner {
11
8
  this.background = BannerBackground.SIMPLE;
12
9
  this.foreground = BannerForeground.LOGO;
13
10
  this.textColor = BannerTextColor.LIGHT;
14
- this.accessibleLabel = undefined;
15
- this.accessibleLabelledBy = undefined;
16
11
  this.h = govHost(this.host);
17
12
  }
18
13
  validateSize(newValue) {
19
14
  validateProp(BannerSizes, newValue, BannerClass.root);
20
15
  }
16
+ validateBackground(newValue) {
17
+ validateProp(BannerBackground, newValue, BannerClass.root);
18
+ }
19
+ validateForeground(newValue) {
20
+ validateProp(BannerForeground, newValue, BannerClass.root);
21
+ }
22
+ validateTextColor(newValue) {
23
+ validateProp(BannerTextColor, newValue, BannerClass.root);
24
+ }
21
25
  componentWillLoad() {
22
26
  this.validateSize(this.size);
23
- }
24
- async componentDidRender() {
25
- if (canValidateWcagOnRender()) {
26
- tick(() => this.validateAccessibility());
27
- }
27
+ this.validateBackground(this.background);
28
+ this.validateForeground(this.foreground);
29
+ this.validateTextColor(this.textColor);
28
30
  }
29
31
  render() {
30
- return (h(Host, Object.assign({ key: '2e74fec76a2919885f1ffcf0d5b5b43f4da9634f', class: this.h.classes(BannerClass.root), size: this.size }, (this.size !== "xl" ? { background: this.background, foreground: this.foreground } : { 'text-color': this.textColor })), h("div", { key: 'e96d0155618a4d8703869f9d41a16e6dca148d8f' }, h("div", { key: '1ca80fec0a9918753727bdbbde993c650f464e44', class: BannerClass.content }, h("slot", { key: '6649fb9ad5c08b9cb7fe44a633fbdf8a7c1070cf', name: "headline" }), h("slot", { key: '615031f7ca60d053f08822a497d59cb123103bae' })), this.h.hasSlot('button') && (h("gov-button", { key: '256dcef6425d21dfd6ea47b2dc9dbcfe2bbc0a19', color: "secondary", type: "solid", size: "l" }, h("slot", { key: '2553414cc5541ec8f4e8d22d4cd394d9d57f40ef', name: "button" })))), h("slot", { key: 'b87320fc0d4ea2415f2c2e3565942fd8944c8f7c', name: "image" })));
31
- }
32
- /**
33
- * Validate the accessibility attributes of the component
34
- */
35
- async validateAccessibility() {
36
- validateAccessibleLabel(this.accessibleLabel, this.accessibleLabelledBy, BannerClass.root, this.host);
32
+ return (h(Host, Object.assign({ key: '67c767ffc6ac1912bb691c8bb11158dac573e70f', class: this.h.classes(BannerClass.root), role: "region", size: this.size }, (this.size !== "xl" ? {
33
+ background: this.background,
34
+ foreground: this.foreground
35
+ } : { 'text-color': this.textColor })), h("div", { key: '624b24b1e621ef7f7ad4666b56f48ffec9881aee' }, h("div", { key: '90b322dca74ca90be13489d519534ebff0656593', class: BannerClass.content }, h("slot", { key: '272f89cbe0649af7edfd7230861f6232272c8da4', name: "headline" }), h("slot", { key: '1bfa7690842ba1a023af5b7da4edec5acb6c65fe' })), this.h.hasSlot('button') && (h("slot", { key: '5d9611292a76aee4654b16429a89fd46ad610884', name: "button" }))), h("slot", { key: '00000b185434b0d85112beaa2374c7f7b12c19b0', name: "image" })));
37
36
  }
38
37
  static get is() { return "gov-banner"; }
39
38
  static get properties() {
@@ -133,61 +132,6 @@ export class GovBanner {
133
132
  "attribute": "text-color",
134
133
  "reflect": false,
135
134
  "defaultValue": "BannerTextColor.LIGHT"
136
- },
137
- "accessibleLabel": {
138
- "type": "string",
139
- "mutable": false,
140
- "complexType": {
141
- "original": "string",
142
- "resolved": "string",
143
- "references": {}
144
- },
145
- "required": false,
146
- "optional": false,
147
- "docs": {
148
- "tags": [],
149
- "text": "Adds accessible label for the banner that is only shown for screen readers."
150
- },
151
- "attribute": "accessible-label",
152
- "reflect": false
153
- },
154
- "accessibleLabelledBy": {
155
- "type": "string",
156
- "mutable": false,
157
- "complexType": {
158
- "original": "string",
159
- "resolved": "string",
160
- "references": {}
161
- },
162
- "required": false,
163
- "optional": false,
164
- "docs": {
165
- "tags": [],
166
- "text": "String of id's that indicate alternative labels elements"
167
- },
168
- "attribute": "accessible-labelledby",
169
- "reflect": false
170
- }
171
- };
172
- }
173
- static get methods() {
174
- return {
175
- "validateAccessibility": {
176
- "complexType": {
177
- "signature": "() => Promise<void>",
178
- "parameters": [],
179
- "references": {
180
- "Promise": {
181
- "location": "global",
182
- "id": "global::Promise"
183
- }
184
- },
185
- "return": "Promise<void>"
186
- },
187
- "docs": {
188
- "text": "Validate the accessibility attributes of the component",
189
- "tags": []
190
- }
191
135
  }
192
136
  };
193
137
  }
@@ -196,6 +140,15 @@ export class GovBanner {
196
140
  return [{
197
141
  "propName": "size",
198
142
  "methodName": "validateSize"
143
+ }, {
144
+ "propName": "background",
145
+ "methodName": "validateBackground"
146
+ }, {
147
+ "propName": "foreground",
148
+ "methodName": "validateForeground"
149
+ }, {
150
+ "propName": "text-color",
151
+ "methodName": "validateTextColor"
199
152
  }];
200
153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,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAC1C,IAAI,EAAE,IAAI,CAAC,IAAI,IACX,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,EAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAC,CAAC,CAAC,CAAC,EAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAC,CAAC;YACxH;gBACC,4DAAK,KAAK,EAAE,WAAW,CAAC,OAAO;oBAC9B,6DAAM,IAAI,EAAC,UAAU,GAAE;oBACvB,8DAAO,CACF;gBACL,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAC5B,mEAAY,KAAK,EAAC,WAAW,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,GAAG;oBAClD,6DAAM,IAAI,EAAC,QAAQ,GAAE,CACT,CACb,CACI;YACN,6DAAM,IAAI,EAAC,OAAO,GAAE,CACd,CACP,CAAA;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,uBAAuB,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACtG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, h, Host, Method, Prop, Watch} from '@stencil/core'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {tick} from \"../../utils/stencil.utils\";\nimport {\n\tBannerClass,\n\tBannerSizes,\n\tBannerSizesType,\n\tBannerBackground,\n\tBannerBackgroundsType,\n\tBannerForegroundsType, BannerForeground, BannerTextColor, BannerTextColorsType\n} from \"./constants\";\nimport {validateProp} from \"../../helpers/Validate/props\";\n\n\n@Component({\n\ttag: 'gov-banner',\n})\nexport class GovBanner {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovBannerElement\n\t/**\n\t * Banner’s size.\n\t */\n\t@Prop({reflect: true}) readonly size: BannerSizesType = BannerSizes._M\n\t/**\n\t * Banner’s background\n\t */\n\t@Prop() readonly background: BannerBackgroundsType = BannerBackground.SIMPLE\n\t/**\n\t * Banner’s foreground\n\t */\n\t@Prop() readonly foreground: BannerForegroundsType = BannerForeground.LOGO\n\t/**\n\t * XL Banner’s text color\n\t */\n\t@Prop({ attribute: 'text-color' }) readonly textColor: BannerTextColorsType = BannerTextColor.LIGHT\n\t/**\n\t * Adds accessible label for the banner that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) readonly accessibleLabel: string\n\t/**\n\t * String of id's that indicate alternative labels elements\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) readonly accessibleLabelledBy: string\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(BannerSizes, newValue, BannerClass.root)\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateSize(this.size)\n\t}\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\ttick(() => this.validateAccessibility())\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BannerClass.root)}\n\t\t\t\t size={this.size}\n\t\t\t\t {...(this.size !== \"xl\" ? {background: this.background, foreground: this.foreground} : {'text-color': this.textColor})}>\n\t\t\t\t<div>\n\t\t\t\t\t<div class={BannerClass.content}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.h.hasSlot('button') && (\n\t\t\t\t\t\t<gov-button color=\"secondary\" type=\"solid\" size=\"l\">\n\t\t\t\t\t\t\t<slot name=\"button\"/>\n\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t<slot name=\"image\"/>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Validate the accessibility attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tvalidateAccessibleLabel(this.accessibleLabel, this.accessibleLabelledBy, BannerClass.root, this.host)\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-banner.js","sourceRoot":"","sources":["../../../../../../src/components/gov-banner/gov-banner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAA;AACtE,OAAO,EAAC,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAElD,OAAO,EACH,gBAAgB,EAEhB,WAAW,EACX,gBAAgB,EAEhB,WAAW,EAEX,eAAe,EAElB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAK1D,MAAM,OAAO,SAAS;IAGlB;oBAQwD,WAAW,CAAC,EAAE;0BAIjB,gBAAgB,CAAC,MAAM;0BAIvB,gBAAgB,CAAC,IAAI;yBAIE,eAAe,CAAC,KAAK;QAnB7F,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC9B;IAqBD,YAAY,CAAC,QAAgB;QACzB,YAAY,CAAC,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,CAAA;IACzD,CAAC;IAGD,kBAAkB,CAAC,QAAgB;QAC/B,YAAY,CAAC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AA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import {Component, Element, h, Host, Prop, Watch} from '@stencil/core'\nimport {govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {\n BannerBackground,\n BannerBackgroundsType,\n BannerClass,\n BannerForeground,\n BannerForegroundsType,\n BannerSizes,\n BannerSizesType,\n BannerTextColor,\n BannerTextColorsType\n} from \"./constants\";\nimport {validateProp} from \"../../helpers/Validate/props\";\n\n@Component({\n tag: 'gov-banner',\n})\nexport class GovBanner {\n private h: GovHost\n\n constructor() {\n this.h = govHost(this.host)\n }\n\n @Element() host: HTMLGovBannerElement\n /**\n * Banner’s size.\n */\n @Prop({reflect: true}) readonly size: BannerSizesType = BannerSizes._M\n /**\n * Banner’s background\n */\n @Prop() readonly background: BannerBackgroundsType = BannerBackground.SIMPLE\n /**\n * Banner’s foreground\n */\n @Prop() readonly foreground: BannerForegroundsType = BannerForeground.LOGO\n /**\n * XL Banner’s text color\n */\n @Prop({attribute: 'text-color'}) readonly textColor: BannerTextColorsType = BannerTextColor.LIGHT\n\n @Watch('size')\n validateSize(newValue: string): void {\n validateProp(BannerSizes, newValue, BannerClass.root)\n }\n\n @Watch('background')\n validateBackground(newValue: string): void {\n validateProp(BannerBackground, newValue, BannerClass.root)\n }\n\n @Watch('foreground')\n validateForeground(newValue: string): void {\n validateProp(BannerForeground, newValue, BannerClass.root)\n }\n\n @Watch('text-color')\n validateTextColor(newValue: string): void {\n validateProp(BannerTextColor, newValue, BannerClass.root)\n }\n\n componentWillLoad(): void {\n this.validateSize(this.size)\n this.validateBackground(this.background)\n this.validateForeground(this.foreground)\n this.validateTextColor(this.textColor)\n }\n\n render() {\n return (\n <Host class={this.h.classes(BannerClass.root)}\n role=\"region\"\n size={this.size}\n {...(this.size !== \"xl\" ? {\n background: this.background,\n foreground: this.foreground\n } : {'text-color': this.textColor})}>\n <div>\n <div class={BannerClass.content}>\n <slot name=\"headline\"/>\n <slot/>\n </div>\n {this.h.hasSlot('button') && (\n <slot name=\"button\"/>\n )}\n </div>\n <slot name=\"image\"/>\n </Host>\n )\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/components/gov-blockquote/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACpB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAGD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,IAAI,EAAE,gBAAgB;CACtB,CAAA","sourcesContent":["import {ValueOf} from \"../../types/interfaces\";\n\nexport enum BlockquoteType {\n\tPRIMARY = 'primary',\n\tSUBTLE = 'subtle',\n\tNEUTRAL = 'neutral',\n}\nexport type BlockquoteTypesType = `${ValueOf<typeof BlockquoteType>}`\n\nexport const BlockquoteClass = {\n\troot: 'gov-blockquote',\n}\n"]}
@@ -8,7 +8,7 @@ export class GovBlockquote {
8
8
  this.h = govHost(this.host);
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: '2d6d6f8731e3cf3a7697b1e5c9cb9628b120a9c0', class: this.h.classes(BlockquoteClass.root), type: this.type }, h("gov-icon", { key: 'a34dc43b0a8336830f7f8bd49a04f3fd36ccac5d', type: "components", name: "quote", size: "3xl" }), h("blockquote", { key: '1f74006947ad7d8d90ea3425be7d8f66291dbfc5', cite: this.cite }, h("slot", { key: '1e0413bfdcfec33d487998f88407b000d2cbd376' })), h("slot", { key: '9c61d787603bf343546af51e25ac9b6ad47191e9', name: "image" }), h("slot", { key: '7f7956a01aef3d1fe2ecc21428facc932e69ab03', name: "author" })));
11
+ return (h(Host, { key: '0d4b930791ee54ea55552b1a8ab9a2f248b5109e', class: this.h.classes(BlockquoteClass.root), type: this.type }, h("gov-icon", { key: 'f27a6a5059203b000bede13c47aa7e5eb150e4cd', type: "components", name: "quote", size: "3xl" }), h("blockquote", { key: '3206cd993309f5636920e5b552e3cd97be98b334', cite: this.cite }, h("slot", { key: '16ac7ec3098d37e1c5b444fe18e47986a5afa915' })), h("slot", { key: 'ae4f20fbf0820346cc9919014ab6a3fc9f9ef96e', name: "image" }), h("slot", { key: 'f43c96fef744f2d6147f8579fad0c808c064c81a', name: "author" })));
12
12
  }
13
13
  static get is() { return "gov-blockquote"; }
14
14
  static get properties() {
@@ -23,7 +23,7 @@ export class GovBlockquote {
23
23
  "BlockquoteTypesType": {
24
24
  "location": "import",
25
25
  "path": "./constants",
26
- "id": "../../../packages/core/src/components/gov-blocquote/constants.ts::BlockquoteTypesType"
26
+ "id": "../../../packages/core/src/components/gov-blockquote/constants.ts::BlockquoteTypesType"
27
27
  }
28
28
  }
29
29
  },
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gov-blockquote.js","sourceRoot":"","sources":["../../../../../../src/components/gov-blockquote/gov-blockquote.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAC,eAAe,EAAE,cAAc,EAAsB,MAAM,aAAa,CAAC;AAMjF,MAAM,OAAO,aAAa;IAGzB;oBAQ4D,cAAc,CAAC,MAAM;;QAPhF,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;KAC3B;IAYD,MAAM;QACL,OAAO,CACN,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI;YACjE,iEAAU,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,KAAK,GAAY;YAC/D,mEAAY,IAAI,EAAE,IAAI,CAAC,IAAI;gBAC1B,8DAAQ,CACI;YACb,6DAAM,IAAI,EAAC,OAAO,GAAG;YACrB,6DAAM,IAAI,EAAC,QAAQ,GAAG,CAChB,CACP,CAAA;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Host, h, Prop} from '@stencil/core'\nimport { govHost } from '../../helpers/Dom/template'\nimport { GovHost } from '../../helpers/Dom/template.types'\nimport {BlockquoteClass, BlockquoteType, BlockquoteTypesType} from \"./constants\";\n\n\n@Component({\n\ttag: 'gov-blockquote',\n})\nexport class GovBlockquote {\n\tprivate h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovBlockquoteElement\n\t/**\n\t * Blockquote’s type\n\t */\n\t@Prop({reflect: true}) readonly type: BlockquoteTypesType = BlockquoteType.SUBTLE\n\t/**\n\t * Blockquote’s cite url\n\t */\n\t@Prop({attribute: 'cite'}) readonly cite: string\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(BlockquoteClass.root)} type={this.type}>\n\t\t\t\t<gov-icon type=\"components\" name=\"quote\" size=\"3xl\"></gov-icon>\n\t\t\t\t<blockquote cite={this.cite}>\n\t\t\t\t\t<slot />\n\t\t\t\t</blockquote>\n\t\t\t\t<slot name=\"image\" />\n\t\t\t\t<slot name=\"author\" />\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
@@ -40,7 +40,7 @@ export class GovBreadcrumbs {
40
40
  this.toggleOption = sumOfWidths > hostWidth;
41
41
  }
42
42
  render() {
43
- return (h(Host, { key: '9a9134423e513fc148bbb68c20fac5bb97670db8', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, h("nav", { key: '0850db41c7ce8bbb329a9abd3a925f292ec26c66', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, h("slot", { key: '477ce7803f02dc150c9980cbbf967b2b3d6485a0' })), this.toggleOption ? (h("gov-button", { size: 'xs', color: 'primary', type: 'base', "aria-label": this.accessibleToggleLabel, "aria-pressed": this.expanded, "aria-expanded": this.expanded, "on-gov-click": () => this.expanded = !this.expanded }, h("gov-icon", { name: this.expanded ? 'chevron-up' : 'chevron-down', type: "components" }))) : null));
43
+ return (h(Host, { key: 'dadd8de710050476be68e3f6fa0b317d6ccedfc1', class: this.h.classes(BreadcrumbsClass.root), expanded: this.expanded }, h("nav", { key: '468a3b605408c943421243024733b0381809f931', "aria-label": this.accessibleLabel, "aria-labelledby": this.accessibleLabelledBy }, h("slot", { key: '2c9f85b826c8c54340ab5abba51c1861282c9cb7' })), this.toggleOption ? (h("gov-button", { size: 'xs', color: 'primary', type: 'base', "aria-label": this.accessibleToggleLabel, "aria-pressed": this.expanded, "aria-expanded": this.expanded, "on-gov-click": () => this.expanded = !this.expanded }, h("gov-icon", { name: this.expanded ? 'chevron-up' : 'chevron-down', type: "components" }))) : null));
44
44
  }
45
45
  /**
46
46
  * Validate the WCAG attributes of the component
@@ -82,9 +82,9 @@ export class GovButton {
82
82
  render() {
83
83
  const Tag = this.href ? Tags.A : Tags.BUTTON;
84
84
  const nativeType = Tag === Tags.A ? undefined : this.nativeType;
85
- return (h(Host, { key: '526d8b276e9139e165d38c031adac59e9f1296f8', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(ButtonClass.root), type: this.type }, h(Tag, Object.assign({ key: '6db49c65c1b0d3c98d81cba6d86e9181ce32fc87', class: "element", ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.disabled ? "-1" : "0" }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("icon-end") &&
86
- h("gov-icon", { key: '535bfdca505680012cdefe59c7fdf6776a9692f0', name: "loader", class: "gov-spin-animation", type: "components" }), this.h.hasSlot("icon-start") && h("slot", { key: '26c813df831c8767ad019873572cc928c7475ca4', name: "icon-start" }), h("slot", { key: 'c0cdb5257b7db1ec33e317c0c3009ea9de713036' }), this.h.hasSlot("icon-end") && h("slot", { key: '238fabead4d6e40f754746866c8b83e0f517680a', name: "icon-end" }), toBool(this.loading) && this.h.hasSlot("icon-end") &&
87
- h("gov-icon", { key: 'cb8360aa13dd3e6ab1328bbd4a0a60a234f98bd5', name: "loader", class: "gov-spin-animation", type: "components" }))));
85
+ return (h(Host, { key: 'cd3d644c54ac882be5adf1645391a873d426e549', size: this.size, hydrated: this.hydrated, color: this.color, class: this.h.classes(ButtonClass.root), type: this.type }, h(Tag, Object.assign({ key: '39c76efc161144865f6bde8cf50e2808d0566415', class: "element", ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), disabled: this.disabled, id: this.identifier, href: this.href, target: this.target, download: this.download, hreflang: this.hreflang, rel: this.rel, name: this.name, type: nativeType, tabindex: this.disabled ? "-1" : "0" }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled) }), toBool(this.loading) && !this.h.hasSlot("icon-end") &&
86
+ h("gov-icon", { key: 'b75ed857aacc2b914810fbdbb3c0d39ede423639', name: "loader", class: "gov-spin-animation", type: "components" }), this.h.hasSlot("icon-start") && h("slot", { key: '838152233ab4f51b36217ae0b4077a3f3efc3ecf', name: "icon-start" }), h("slot", { key: '0dbfd16b6de4ea9c0bb92a97297262f10b9a335c' }), this.h.hasSlot("icon-end") && h("slot", { key: '8854b0bced36cabfe85988e22d10d49f9761a910', name: "icon-end" }), toBool(this.loading) && this.h.hasSlot("icon-end") &&
87
+ h("gov-icon", { key: '607c848e0a9e4abf1c4232658a38922ade4accf9', name: "loader", class: "gov-spin-animation", type: "components" }))));
88
88
  }
89
89
  onClickHandler(e) {
90
90
  e.stopPropagation();
@@ -43,7 +43,7 @@ export class GovDropdown {
43
43
  });
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '82ddf678be9e128e899f136598d923a9c62858b4', class: this.h.classes([DropdownClass.root]), open: this.open, position: this.position }, h("slot", { key: '5de32c9654140fb67fff7f55ce8fba4fa7ef282f' }), h("div", { key: '19bda970452623c7ddef45ff96b843698bb8cd1a', ref: el => registerClickOutside(this, el, () => this.open = false), class: DropdownClass.list, id: this.listId, "aria-labelledby": this.controlId, "aria-hidden": toBoolAttr(!this.open), hidden: !this.open }, h("slot", { key: 'd1429110f4e4bd054bf38d4a038946475d791323', name: "list" }))));
46
+ return (h(Host, { key: 'ed9beb8952cacb4b76fc73ab31345bbe8c5d206d', class: this.h.classes([DropdownClass.root]), open: this.open, position: this.position }, h("slot", { key: '49d4da21a53be27e687622d17e21474c7cedb26d' }), h("div", { key: '941b05aab703a6bfd981d912763f4576899fd617', ref: el => registerClickOutside(this, el, () => this.open = false), class: DropdownClass.list, id: this.listId, "aria-labelledby": this.controlId, "aria-hidden": toBoolAttr(!this.open), hidden: !this.open }, h("slot", { key: 'cd0c1f28b7d717efd0fe8faa964df78dfbeca49f', name: "list" }))));
47
47
  }
48
48
  /**
49
49
  * Returns the current state of the dropdown
@@ -5,12 +5,19 @@ import { createID } from "../../utils/string.utils";
5
5
  import { validateAccessibleLabel } from "../../helpers/Validate/wcag";
6
6
  import { canValidateWcagOnRender } from "../../helpers/Dom/win";
7
7
  import { delay } from "../../utils/utils";
8
+ var Tags;
9
+ (function (Tags) {
10
+ Tags["A"] = "a";
11
+ Tags["DIV"] = "div";
12
+ })(Tags || (Tags = {}));
8
13
  export class GovCard {
9
14
  constructor() {
10
15
  this.hydrated = false;
11
16
  this.direction = "vertical";
12
17
  this.collapsible = false;
13
18
  this.open = true;
19
+ this.href = undefined;
20
+ this.target = undefined;
14
21
  this.accessibleTriggerLabel = undefined;
15
22
  this.accessibleTriggerLabelledBy = undefined;
16
23
  this.h = govHost(this.host);
@@ -27,7 +34,8 @@ export class GovCard {
27
34
  this.hydrated = true;
28
35
  }
29
36
  render() {
30
- return (h(Host, { key: '734cecdc36d379c1d2d8c14ef136780eabff9d32', class: this.h.classes(CardClass.root), open: this.open, collapsible: booleanString(this.collapsible), direction: this.direction, hydrated: this.hydrated }, this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h("slot", { name: "headline" }), h("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (h("div", { class: CardClass.header }, h("slot", { name: "headline" }))) : null, h("div", { key: '35fbd43458f8895ac32a49b2fb26301ef6c2f4cc', class: CardClass.inner, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined }, this.h.hasSlot('img') && (h("div", { key: '1d1d26a7d45bc7453cdfbb2ce2530e277ea7f1d6', class: CardClass.img }, h("slot", { key: '43d62fec8982ac856afedfe30a4062253ab072d7', name: "img" }))), this.h.hasSlot('icon') && (h("div", { key: 'ea26e422318e6a8753c47c5af2bcbfafe44bd053', class: CardClass.icon }, h("slot", { key: '40cad4f8356f6ff1e640436f4b548581cb4b4bcf', name: "icon" }))), h("div", { key: '17d86c58f5d4d1fec9af1b111a69e73629188b4a', class: CardClass.content }, h("slot", { key: '34b718783966bda56624c883b85d965ba74041a5' })), this.h.hasSlot('footer') && (h("div", { key: 'bdac20b7db8adabdba069df573e117ef1c9a79fc', class: CardClass.footer }, h("slot", { key: 'e57ade83302bd2a7537236aff716d02a5a47ea0f', name: "footer" }))))));
37
+ const Tag = this.href ? Tags.A : Tags.DIV;
38
+ return (h(Host, { key: '3a11dfeface1fa81d0c27f4ee3644c1c3b3a0191', class: this.h.classes(CardClass.root), open: this.open, collapsible: booleanString(this.collapsible), clickable: this.href ? true : null, direction: this.direction, hydrated: this.hydrated }, this.collapsible ? (h("button", { id: this.headlineId, class: CardClass.header, "aria-label": this.accessibleTriggerLabel, "aria-labelledby": this.accessibleTriggerLabelledBy, "aria-expanded": booleanString(this.open), "aria-controls": this.contentId, onClick: this.onClickHandler.bind(this) }, h("slot", { name: "headline" }), h("gov-icon", { class: CardClass.arrow, name: "chevron-down", type: "components" }))) : this.h.hasSlot("headline") ? (h("div", { class: CardClass.header }, h("slot", { name: "headline" }))) : null, h(Tag, { key: 'bdf47c610db6c937ebe9f6fa45124b5df8e2847f', href: this.href, target: this.target, id: this.contentId, "aria-hidden": this.collapsible ? booleanString(!this.open) : undefined, hidden: this.collapsible ? !this.open : undefined, "aria-labelledby": this.collapsible ? this.headlineId : undefined, class: CardClass.inner }, this.h.hasSlot('img') && (h("div", { key: '11ed1b55fe67d05382d538c903726ffd84fb7d48', class: CardClass.img }, h("slot", { key: 'b1c362609163af2748256ecd1370bd074b8cd396', name: "img" }))), this.h.hasSlot('icon') && (h("div", { key: '70b848927a86419442be3a84ee060c27a87fa12b', class: CardClass.icon }, h("slot", { key: '357b5dffa7c0970495ed167ca9a5db0b8d67c721', name: "icon" }))), h("div", { key: '0bec7d7dc66dda27ba05e9041caeca8f20def8c4', class: CardClass.content }, h("slot", { key: 'e3b08eb1097e0d788df4a45f78711bd0a5f02656' })), this.h.hasSlot('footer') && (h("div", { key: '0f4ef687f88e18a935d8f651bb7d2a9ea2c3df97', class: CardClass.footer }, h("slot", { key: 'd645292f3ee9f007d9aeffdefcf2c26a1e5415b1', name: "footer" }))))));
31
39
  }
32
40
  onClickHandler(e) {
33
41
  e.stopPropagation();
@@ -107,6 +115,49 @@ export class GovCard {
107
115
  "reflect": true,
108
116
  "defaultValue": "true"
109
117
  },
118
+ "href": {
119
+ "type": "string",
120
+ "mutable": false,
121
+ "complexType": {
122
+ "original": "string",
123
+ "resolved": "string",
124
+ "references": {}
125
+ },
126
+ "required": false,
127
+ "optional": false,
128
+ "docs": {
129
+ "tags": [],
130
+ "text": "Link on whole card"
131
+ },
132
+ "attribute": "href",
133
+ "reflect": true
134
+ },
135
+ "target": {
136
+ "type": "string",
137
+ "mutable": false,
138
+ "complexType": {
139
+ "original": "ButtonTargetType",
140
+ "resolved": "\"_blank\" | \"_new\" | \"_self\"",
141
+ "references": {
142
+ "ButtonTargetType": {
143
+ "location": "import",
144
+ "path": "../gov-button/button/constants",
145
+ "id": "../../../packages/core/src/components/gov-button/button/constants.ts::ButtonTargetType"
146
+ }
147
+ }
148
+ },
149
+ "required": false,
150
+ "optional": true,
151
+ "docs": {
152
+ "tags": [{
153
+ "name": "link",
154
+ "text": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target"
155
+ }],
156
+ "text": "Same as original parameter"
157
+ },
158
+ "attribute": "target",
159
+ "reflect": false
160
+ },
110
161
  "accessibleTriggerLabel": {
111
162
  "type": "string",
112
163
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"gov-card.js","sourceRoot":"","sources":["../../../../../../src/components/gov-card/gov-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,eAAe,CAAA;AAC5F,OAAO,EAAC,SAAS,EAAoB,MAAM,aAAa,CAAA;AACxD,OAAO,EAAC,aAAa,EAAE,OAAO,EAAC,MAAM,4BAA4B,CAAA;AAEjE,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAC,uBAAuB,EAAC,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAA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ACI,CACA,CACP,CAAA;IACF,CAAC;IAEO,cAAc,CAAC,CAAC;QACvB,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;YACtB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAC,CAAC,CAAA;QAC3D,CAAC;IACF,CAAC;IAED;;OAEG;IAEH,KAAK,CAAC,qBAAqB;QAC1B,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,uBAAuB,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,2BAA2B,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAClH,CAAC;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {CardClass, CardDirectionType} from './constants'\nimport {booleanString, govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {createID} from '../../utils/string.utils'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {GovCardChangeEvent} from './interfaces'\n\n@Component({\n\ttag: 'gov-card',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID('GovCardHeadline')\n\t\tthis.contentId = createID('GovCardContent')\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Card direction\n\t */\n\t@Prop() readonly direction: CardDirectionType = \"vertical\"\n\t/**\n\t * Defines weather the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the card is open or closed\n\t */\n\t@Prop({reflect: true, mutable: true}) open = true\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) accessibleTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) accessibleTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({eventName: 'gov-toggle'}) govToggle: EventEmitter<GovCardChangeEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)} open={this.open}\n\t\t\t\t collapsible={booleanString(this.collapsible)} direction={this.direction} hydrated={this.hydrated}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.accessibleTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : this.h.hasSlot(\"headline\") ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={CardClass.inner}\n\t\t\t\t\tid={this.contentId}\n\t\t\t\t\taria-hidden={this.collapsible ? booleanString(!this.open) : undefined}\n\t\t\t\t\thidden={this.collapsible ? !this.open : undefined}\n\t\t\t\t\taria-labelledby={this.collapsible ? this.headlineId : undefined}\n\t\t\t\t>\n\t\t\t\t\t{this.h.hasSlot('img') && (\n\t\t\t\t\t\t<div class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={CardClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={CardClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.open = !this.open\n\t\t\tthis.govToggle.emit({open: this.open, element: this.host})\n\t\t}\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateAccessibleLabel(this.accessibleTriggerLabel, this.accessibleTriggerLabelledBy, CardClass.root, this.host)\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"gov-card.js","sourceRoot":"","sources":["../../../../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C1B,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,uBAAuB,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,2BAA2B,EAAE,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAClH,CAAC;IACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop} from '@stencil/core'\nimport {CardClass, CardDirectionType} from './constants'\nimport {booleanString, govHost} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport {createID} from '../../utils/string.utils'\nimport {validateAccessibleLabel} from '../../helpers/Validate/wcag'\nimport {canValidateWcagOnRender} from '../../helpers/Dom/win'\nimport {delay} from '../../utils/utils'\nimport {GovCardChangeEvent} from './interfaces'\nimport {ButtonTargetType} from \"../gov-button/button/constants\";\n\nenum Tags {\n\tA = \"a\",\n\tDIV = \"div\",\n}\n\n@Component({\n\ttag: 'gov-card',\n})\nexport class GovCard {\n\tprivate h: GovHost\n\tprivate readonly headlineId: string\n\tprivate readonly contentId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.headlineId = createID('GovCardHeadline')\n\t\tthis.contentId = createID('GovCardContent')\n\t}\n\n\t@Element() host: HTMLGovCardElement\n\n\t/**\n\t * Card direction\n\t */\n\t@Prop() readonly direction: CardDirectionType = \"vertical\"\n\t/**\n\t * Defines weather the card can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Defines whether the card is open or closed\n\t */\n\t@Prop({reflect: true, mutable: true}) open = true\n\t/**\n\t * Link on whole card\n\t */\n\t@Prop({reflect: true}) 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?: ButtonTargetType\n\t/**\n\t * Adds accessible label for the collapsible button that is only shown for screen readers.\n\t */\n\t@Prop({attribute: 'accessible-label'}) accessibleTriggerLabel: string\n\t/**\n\t * A string of identifiers that indicate alternative label elements for collapsible card\n\t */\n\t@Prop({attribute: 'accessible-labelledby'}) accessibleTriggerLabelledBy: string\n\t/**\n\t * Called when the card toggle state changes\n\t */\n\t@Event({eventName: 'gov-toggle'}) govToggle: EventEmitter<GovCardChangeEvent>\n\n\tasync componentDidRender() {\n\t\tif (canValidateWcagOnRender()) {\n\t\t\tawait delay(500)\n\t\t\tawait this.validateAccessibility()\n\t\t}\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\trender() {\n\t\tconst Tag = this.href ? Tags.A : Tags.DIV\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(CardClass.root)} open={this.open}\n\t\t\t\t collapsible={booleanString(this.collapsible)}\n\t\t\t\t clickable={this.href ? true : null}\n\t\t\t\t direction={this.direction} hydrated={this.hydrated}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<button\n\t\t\t\t\t\tid={this.headlineId}\n\t\t\t\t\t\tclass={CardClass.header}\n\t\t\t\t\t\taria-label={this.accessibleTriggerLabel}\n\t\t\t\t\t\taria-labelledby={this.accessibleTriggerLabelledBy}\n\t\t\t\t\t\taria-expanded={booleanString(this.open)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t\t<gov-icon class={CardClass.arrow} name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</button>\n\t\t\t\t) : this.h.hasSlot(\"headline\") ? (\n\t\t\t\t\t<div class={CardClass.header}>\n\t\t\t\t\t\t<slot name=\"headline\"/>\n\t\t\t\t\t</div>\n\t\t\t\t) : null}\n\n\t\t\t\t<Tag href={this.href}\n\t\t\t\t\t target={this.target}\n\t\t\t\t\t id={this.contentId}\n\t\t\t\t\t aria-hidden={this.collapsible ? booleanString(!this.open) : undefined}\n\t\t\t\t\t hidden={this.collapsible ? !this.open : undefined}\n\t\t\t\t\t aria-labelledby={this.collapsible ? this.headlineId : undefined}\n\t\t\t\t\t class={CardClass.inner}>\n\n\t\t\t\t\t{this.h.hasSlot('img') && (\n\t\t\t\t\t\t<div class={CardClass.img}>\n\t\t\t\t\t\t\t<slot name=\"img\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.h.hasSlot('icon') && (\n\t\t\t\t\t\t<div class={CardClass.icon}>\n\t\t\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={CardClass.content}>\n\t\t\t\t\t\t<slot/>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{this.h.hasSlot('footer') && (\n\t\t\t\t\t\t<div class={CardClass.footer}>\n\t\t\t\t\t\t\t<slot name=\"footer\"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</Tag>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e) {\n\t\te.stopPropagation()\n\t\tif (this.collapsible) {\n\t\t\tthis.open = !this.open\n\t\t\tthis.govToggle.emit({open: this.open, element: this.host})\n\t\t}\n\t}\n\n\t/**\n\t * Validate the accessible attributes of the component\n\t */\n\t@Method()\n\tasync validateAccessibility(): Promise<void> {\n\t\tif (this.collapsible) {\n\t\t\tvalidateAccessibleLabel(this.accessibleTriggerLabel, this.accessibleTriggerLabelledBy, CardClass.root, this.host)\n\t\t}\n\t}\n}\n"]}
@@ -59,11 +59,11 @@ export class GovChip {
59
59
  const nativeType = Tag == NativeType.BUTTON ? NativeType.BUTTON : undefined;
60
60
  const iconStart = prepareIconFormat(this.iconStart);
61
61
  const iconEnd = prepareIconFormat(this.iconEnd);
62
- return (h(Host, { key: '3873d567f8dd31d62e259751a9800bc2302380f8', class: this.h.classes([
62
+ return (h(Host, { key: '6891a65866779d31691de4842180ae22767c4268', class: this.h.classes([
63
63
  ChipClass.root,
64
64
  this.h.hasSlot("right") ? ChipClass.hasRight : undefined,
65
65
  this.h.hasSlot("left") ? ChipClass.hasLeft : undefined,
66
- ]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON, hydrated: this.hydrated }, h(Tag, Object.assign({ key: '6635ce7184fba0374e7f8035c3df38156ac69b24', class: "element", href: this.href, target: this.target, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), tabindex: (this.h.hasSlot("left") || this.h.hasSlot("right") || this.disabled) && !this.focusable ? "-1" : "0", id: this.identifier || this.chipId, type: nativeType }, this.inheritedAttributes, { "aria-disabled": this.disabled }), h("slot", { key: '3677ece9c89d8e9d59fb5d87fced0cdf4936342b', name: "left" }), h("slot", { key: '0acc75cb17c45740380ceb6681d21b29475c6419', name: "icon-start" }, iconStart && h("gov-icon", { key: 'f95b1e5fc9e460177a98deb1a7cd324dcac5e57f', type: iconStart.type, name: iconStart.name })), h("slot", { key: 'f0354863b6c661b99c26f5e94193b85a12affab9' }), h("slot", { key: 'ee35b12933b95d96932890ede60fa5b91f51d6b5', name: "icon-end" }, iconEnd && h("gov-icon", { key: '50cd0f12c868cb1e674a3df0609c2c8ba5664556', type: iconEnd.type, name: iconEnd.name })), h("slot", { key: '39ca7870c9423cd0a3f8ca6c91b4a0daed8ef07f', name: "right" }))));
66
+ ]), disabled: this.disabled, href: this.href, color: this.color, type: this.type, size: this.size, hoverable: Tag == NativeType.A || Tag == NativeType.BUTTON, hydrated: this.hydrated }, h(Tag, Object.assign({ key: '32a2696de42de539438caa0842d0fefa31804b77', class: "element", href: this.href, target: this.target, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), tabindex: (this.h.hasSlot("left") || this.h.hasSlot("right") || this.disabled) && !this.focusable ? "-1" : "0", id: this.identifier || this.chipId, type: nativeType }, this.inheritedAttributes, { "aria-disabled": this.disabled }), h("slot", { key: '93a5178477cbd4e0e09789c3ff0941e0972943f3', name: "left" }), h("slot", { key: '7d019aa4f2e543a8cb22e7d694c6994656e92065', name: "icon-start" }, iconStart && h("gov-icon", { key: '6077e90d13e1fe7945c43abf142e308fa88b10b9', type: iconStart.type, name: iconStart.name })), h("slot", { key: '8c2fbc69cade5187c4dc3805e2eb9b2639620687' }), h("slot", { key: 'ba590e6f48cf44ceb293917dbdecf34472db28ad', name: "icon-end" }, iconEnd && h("gov-icon", { key: '030988484d52eb2a47b192888a8e4a1e8773bd74', type: iconEnd.type, name: iconEnd.name })), h("slot", { key: 'b62f2b1359a70b2aba874686d33f3dd5b7d0c8a2', name: "right" }))));
67
67
  }
68
68
  onClickHandler(e) {
69
69
  e.stopPropagation();
@@ -6,7 +6,7 @@ export class GovContainer {
6
6
  this.h = govHost(this.host);
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: 'ad1f0a234ba94b59c7214c2ddba4208234355a47', class: this.h.classes(ContainerClass.root) }, h("slot", { key: 'a7b877a4cf5d2f5ec1aa5908a2faf9976fa5591e' })));
9
+ return (h(Host, { key: '82f7c451b4196138a062e9e807c0b264b5f8e1fe', class: this.h.classes(ContainerClass.root) }, h("slot", { key: '04a40aeafe57c99f4a148d04320bf390e3444ea8' })));
10
10
  }
11
11
  static get is() { return "gov-container"; }
12
12
  static get elementRef() { return "host"; }
@@ -14,7 +14,7 @@ export class GovControlGroup {
14
14
  validateProp(Colors, newValue, ControlGroupClass.root);
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: 'c52a55a92fd473dcec8806a693fa820a9557a8f3', class: this.h.classes(ControlGroupClass.root), color: this.color }, h("slot", { key: '2c39e206b7a295212f4bda2a0552b1d10d19828b' })));
17
+ return (h(Host, { key: '74d339e88105be80b3f335aa2af1155ab23099c8', class: this.h.classes(ControlGroupClass.root), color: this.color }, h("slot", { key: 'e3af09285370470ad4e1ca9e6b225ca98708cebc' })));
18
18
  }
19
19
  static get is() { return "gov-control-group"; }
20
20
  static get properties() {
@@ -6,7 +6,7 @@ export class GovCookiebar {
6
6
  this.h = govHost(this.host);
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: '10c57cd4a06fe46e504309598788a95fc832493c', class: this.h.classes(CookieConsentClass.root) }, h("div", { key: '877d252bf4889abadd06e50c125ec27e114353e5', class: CookieConsentClass.content }, h("slot", { key: '817560e69ede6d998c27db262346e889167830fc', name: "headline" }), h("slot", { key: '27395c4c03746c73eec66e75e16c7c6209a41298' })), (this.h.hasSlot('actions-primary') || this.h.hasSlot('actions-secondary')) && (h("div", { key: '5d1395aa7039f6dc0bd84b47387b2d2b54c2359e', class: CookieConsentClass.actions }, this.h.hasSlot('actions-primary') && (h("div", { key: '79e2932462ff78a186b3de70d5a7bab0ff9cdc7f', class: CookieConsentClass.actionsPrimary }, h("slot", { key: '85cc159d24a21c8b8f4148a339038e2bdce5f246', name: "actions-primary" }))), this.h.hasSlot('actions-secondary') && (h("div", { key: 'af86c4ad358e36356f1d4be9409c2f642faf7035', class: CookieConsentClass.actionsSecondary }, h("slot", { key: '5495b26b5c31112a4c4bcd8dcbd21d54993bb6e1', name: "actions-secondary" })))))));
9
+ return (h(Host, { key: 'ad50c5414cb7d3dc0c5b2d378e2484dea094b1de', class: this.h.classes(CookieConsentClass.root) }, h("div", { key: 'aeedb06244acdb5bf57f11c37132d7fec2871cc5', class: CookieConsentClass.content }, h("slot", { key: '90ac710208833ac2c6349792a02f13c4e80741c4', name: "headline" }), h("slot", { key: '67c6c377aa6255bd31fefa8d20b55bfa3c90b489' })), (this.h.hasSlot('actions-primary') || this.h.hasSlot('actions-secondary')) && (h("div", { key: 'aa9b2f1162adcd6d9a2d81da2262046ec8886f50', class: CookieConsentClass.actions }, this.h.hasSlot('actions-primary') && (h("div", { key: 'b152aebaef3031dc48fe569fef4f1f8119dbaf6b', class: CookieConsentClass.actionsPrimary }, h("slot", { key: '16b3e328ddc88528d877052b445855dc909605d4', name: "actions-primary" }))), this.h.hasSlot('actions-secondary') && (h("div", { key: 'a825b255261a36cfd192d8936de9eb2b78d5d941', class: CookieConsentClass.actionsSecondary }, h("slot", { key: 'f651dfbf6756682711b2c4415df6acf4a2c9a479', name: "actions-secondary" })))))));
10
10
  }
11
11
  static get is() { return "gov-cookiebar"; }
12
12
  static get elementRef() { return "host"; }
@@ -51,7 +51,7 @@ export class GovDialog {
51
51
  document.body.classList.remove(DialogClass.bodyFix);
52
52
  }
53
53
  render() {
54
- return (h(Host, { key: '697a938c343fff3af9cb37c377ac9784e0728e0e', class: this.h.classes(DialogClass.root), open: this.open, hydrated: this.hydrated }, h("dialog", { key: '9b641ef551f5f4eeb00890e822b6f5434421c38d', class: DialogClass.dialog, hidden: !this.open, tabindex: boolToFocusValue(this.open), open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.accessibleLabelledBy || this.labelId, "aria-describedby": this.accessibleDescribedBy || this.contentId, role: this.role }, h("div", { key: '08da7bb9a7d3b942132410dc4dbf57c2b9d85363', class: DialogClass.inner }, h("div", { key: '389a42468a93951f461024950ea84a80443bd366', class: DialogClass.header }, this.h.hasSlot("icon") && (h("span", { key: '920649b3b276589a254cc8f47c777406d2adfdaf' }, h("slot", { key: '7a6b86f61009015d5dbfa3aaa7aee9aad42185dd', name: "icon" }))), this.h.hasSlot('title') && (h("span", { key: '8aa87028f1ed4c524291c3e0fed0a393fbb46db2', class: DialogClass.title, id: this.labelId }, h("slot", { key: '70b360d2748edde6ea2f762c72cc3acfa67cde97', name: "title" }))), h("gov-button", { key: '946ab0088d52affe4a31ecef5bdef84c1b231093', ref: el => (this.closeCtaRef = el), disabled: this.blockClose, class: DialogClass.close, color: "primary", "aria-label": this.accessibleCloseLabel, "aria-labelledby": this.accessibleCloseLabelledBy, type: "base", size: "m", "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { key: 'b9874c2494a8b46c7b9f94f6989527b0acefc465', slot: "icon-start", name: "x-lg", type: "components" }))), h("div", { key: '4f4b1815de42427edeb5bd9a7b88c96e27530472', class: DialogClass.content, id: this.contentId }, h("slot", { key: '94ccdf29a3578f1ee8e52e505eed109cc6128f67' })), this.h.hasSlot('footer') && (h("div", { key: '8b7f85195264f4045c1d7ab8dd6db9f6abfe4f9f', class: DialogClass.footer }, h("slot", { key: '373cda2bd8b1cccf34acbbf859b4b8f608bc4a19', name: "footer" }))))), this.open ? (h("gov-backdrop", { disabled: this.blockBackdropClose, "aria-label": this.accessibleCloseLabel, "aria-labelled-by": this.accessibleCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
54
+ return (h(Host, { key: 'd4185a1b611db509ebf08509afa23b6e1682fe6f', class: this.h.classes(DialogClass.root), open: this.open, hydrated: this.hydrated }, h("dialog", { key: '6a9624025826c1bd0eb7e83739112cf7b2d56dbc', class: DialogClass.dialog, hidden: !this.open, tabindex: boolToFocusValue(this.open), open: this.open, "aria-modal": "true", "aria-hidden": toBoolAttr(!this.open), "aria-labelledby": this.accessibleLabelledBy || this.labelId, "aria-describedby": this.accessibleDescribedBy || this.contentId, role: this.role }, h("div", { key: '1f93dc885aad9898151e00ca4717c8dd8eeea1ff', class: DialogClass.inner }, h("div", { key: '4455c3f5f5e6aa9e6ec84ce400ead24a3e526374', class: DialogClass.header }, this.h.hasSlot("icon") && (h("span", { key: '40bd7dba7f121d87e00b48b5c4f3ed0c01f5d4a0' }, h("slot", { key: '911f36f5199cde0f6561da2385934bb88e668c68', name: "icon" }))), this.h.hasSlot('title') && (h("span", { key: '1e45df978ffc0f360d242d24e826b4df41188196', class: DialogClass.title, id: this.labelId }, h("slot", { key: '920d60a3305db5b2b7963e6e0c795dbe49101f40', name: "title" }))), h("gov-button", { key: '42a64cd1706ba71362bc0bc0b8d69e9867ec5fb1', ref: el => (this.closeCtaRef = el), disabled: this.blockClose, class: DialogClass.close, color: "primary", "aria-label": this.accessibleCloseLabel, "aria-labelledby": this.accessibleCloseLabelledBy, type: "base", size: "m", "on-gov-click": this.onCloseHandler.bind(this) }, h("gov-icon", { key: '480265e99c21126cbb755df8e6c6f482f69fb92b', slot: "icon-start", name: "x-lg", type: "components" }))), h("div", { key: 'dc16ca442fbb779b8d0c127253324d2894e1b1e5', class: DialogClass.content, id: this.contentId }, h("slot", { key: 'a721e2e66951a436c2a7c946648e15cd1043a7c1' })), this.h.hasSlot('footer') && (h("div", { key: 'ea53d2a6284285c3b33a346784f783e69cc6ff4a', class: DialogClass.footer }, h("slot", { key: '1693aec930d48ffd79505638b4b03df4e50529f5', name: "footer" }))))), this.open ? (h("gov-backdrop", { disabled: this.blockBackdropClose, "aria-label": this.accessibleCloseLabel, "aria-labelled-by": this.accessibleCloseLabelledBy, "on-gov-click": this.onCloseHandler.bind(this) })) : null));
55
55
  }
56
56
  onCloseHandler(e) {
57
57
  e.stopPropagation();
@@ -15,7 +15,7 @@ export class GovEmpty {
15
15
  this.validateSize(this.size);
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '536c14b44e86e71ded94980cce96cfcef26c13d5', class: this.h.classes(EmptyClass.root), size: this.size }, this.h.hasSlot('icon') && (h("slot", { key: '11e8a26c901809dc67cc2db2ff1aff47257a8014', name: "icon" })), h("div", { key: '4aac9fffa417df01fb668dab89aa19ed29469cc0', class: EmptyClass.content }, h("slot", { key: '1b663ce7931eaf8cccd00342e0f1f9fec7abe2d3', name: "headline" }), h("slot", { key: 'f1b1ad8a80fe12d01008da1efd335e14cee0a16d' }))));
18
+ return (h(Host, { key: '93155f92af0574538fd919e52f312b0f02d07e21', class: this.h.classes(EmptyClass.root), size: this.size }, this.h.hasSlot('icon') && (h("slot", { key: 'e9504c9396c9743ea7e454bb2df5d0f2a046aabe', name: "icon" })), h("div", { key: '78f2d30f570c6123a58d2ac93db58b4e471796b3', class: EmptyClass.content }, h("slot", { key: '7b5e1121dbfccf6d647e168e80c60cad4a1ca136', name: "headline" }), h("slot", { key: 'd435390c88c0304f9ee129b268c454b2147fddb0' }))));
19
19
  }
20
20
  static get is() { return "gov-empty"; }
21
21
  static get properties() {
@@ -6,7 +6,7 @@ export class GovErrorCode {
6
6
  this.h = govHost(this.host);
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: '3355f2c43f55001d6b12bae918220f858721279b', class: this.h.classes(ErrorCodeClass.root), align: "center" }, this.h.hasSlot('icon') && (h("slot", { key: '721e74886d890b048bc268cadf9fb05979234ad6', name: "icon" })), h("div", { key: '9a1e0ce9d1aa43eacd4967a2688123fcd9164d8f', class: ErrorCodeClass.content }, h("slot", { key: '5193304f9720b28d12176e805436e7ebbee2f704', name: "headline" }), h("slot", { key: '12d538e92472745e3613149a7c824e6cd345e776' }))));
9
+ return (h(Host, { key: 'b253a0e9141dca1662d4d2b792f4c9d25f869a38', class: this.h.classes(ErrorCodeClass.root), align: "center" }, this.h.hasSlot('icon') && (h("slot", { key: '4ca7e5788170cdf49d969d1a6ed3e12a0f368914', name: "icon" })), h("div", { key: '1822320601777bba88b698375f8ccfc55e33567e', class: ErrorCodeClass.content }, h("slot", { key: 'f3b7e46e878f7ff87291bae34a043d5e228dac4c', name: "headline" }), h("slot", { key: 'f63ac6838e3397bd6828853f96f476454a0bcda7' }))));
10
10
  }
11
11
  static get is() { return "gov-error-code"; }
12
12
  static get elementRef() { return "host"; }
@@ -14,7 +14,7 @@ export class GovFlex {
14
14
  this.h = govHost(this.host);
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: '082daf61e75a8b30f7faa2cbd6a44ad8a74b0442', class: this.h.classes(FlexClass.root) }, h("slot", { key: '120882be8540480b11df18d006414dabbb00e1d0' })));
17
+ return (h(Host, { key: '71dadfbe4c7ddd45b36ffe74d8fd0c38e5069756', class: this.h.classes(FlexClass.root) }, h("slot", { key: 'b86bd5e8abbf157f2476cad87134ff9eedd307cc' })));
18
18
  }
19
19
  static get is() { return "gov-flex"; }
20
20
  static get properties() {
@@ -112,7 +112,7 @@ export class GovFormAutocomplete {
112
112
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
113
113
  }
114
114
  render() {
115
- return (h(Host, { key: '9aab109be9dc6f21e88a2da79223866b1b39732a', class: FormAutocompleteClass.root, size: this.size }, h("gov-form-input", Object.assign({ key: '62828ff7629c39a283925c24113f0db2c7558ca5', placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, required: this.required, invalid: this.invalid, success: this.success, role: 'searchbox', value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": throttle(this.onInputHandler.bind(this), this.throttleTime), "on-gov-keyup": this.onKeyUpHandler.bind(this), "on-gov-keydown": this.onKeyDownHandler.bind(this), "on-gov-focus": this.onFocusHandler.bind(this), "on-gov-blur": this.onBlurHandler.bind(this) }, this.inheritedAttributes, { "aria-autocomplete": 'list', "aria-owns": [this.listBoxId, this.inheritedAttributes['aria-owns']].join(' '), "aria-expanded": booleanString(this.list.length && this.focused ? true : false), ref: el => (this.inputRef = el) }), h("slot", { key: 'd722dd5d3241853d45a5153f0197403a42872c4a', name: "validation-icon" }), h("slot", { key: 'bb003098d072de7c33cb1f538470b2ba6a79d920', name: "icon-end" })), h("ul", { key: '4d54077583a9eed5682501372cd75f655e635203', class: FormAutocompleteClass.list, role: 'listbox', "aria-hidden": toBoolAttr(!this.focused), hidden: !this.focused, id: this.listBoxId, ref: el => (this.listRef = el) }, this.focused && this.list.length === 0 && this.processing === false && this.isValueAccepted && this.messageEmpty ? (h("li", { class: FormAutocompleteClass.empty }, this.messageEmpty)) : null, this.focused && this.processing === true && this.isValueAccepted ? (h("li", { class: FormAutocompleteClass.loading }, h("gov-skeleton", { size: "m" }))) : null, this.focused ? this.list.map((item, index) => {
115
+ return (h(Host, { key: '22d9a81f648404e942ee680acddda83165af4dc2', class: FormAutocompleteClass.root, size: this.size }, h("gov-form-input", Object.assign({ key: '4b60cfea2591a4bde6c97dee3c11b75461db3c5d', placeholder: this.placeholder, name: this.name, disabled: this.disabled, readonly: this.readonly, autocomplete: false, size: this.size, required: this.required, invalid: this.invalid, success: this.success, role: 'searchbox', value: this.value, minlength: this.minlength, maxlength: this.maxlength, "on-gov-input": throttle(this.onInputHandler.bind(this), this.throttleTime), "on-gov-keyup": this.onKeyUpHandler.bind(this), "on-gov-keydown": this.onKeyDownHandler.bind(this), "on-gov-focus": this.onFocusHandler.bind(this), "on-gov-blur": this.onBlurHandler.bind(this) }, this.inheritedAttributes, { "aria-autocomplete": 'list', "aria-owns": [this.listBoxId, this.inheritedAttributes['aria-owns']].join(' '), "aria-expanded": booleanString(this.list.length && this.focused ? true : false), ref: el => (this.inputRef = el) }), h("slot", { key: '739722e49f8062d3ebec84dc2a1f840413439c7c', name: "validation-icon" }), h("slot", { key: '6f3b3c7695a5c7d56276fbc41f854b9afff3800e', name: "icon-end" })), h("ul", { key: '52b34c8501d976b438350104594b02137d40a386', class: FormAutocompleteClass.list, role: 'listbox', "aria-hidden": toBoolAttr(!this.focused), hidden: !this.focused, id: this.listBoxId, ref: el => (this.listRef = el) }, this.focused && this.list.length === 0 && this.processing === false && this.isValueAccepted && this.messageEmpty ? (h("li", { class: FormAutocompleteClass.empty }, this.messageEmpty)) : null, this.focused && this.processing === true && this.isValueAccepted ? (h("li", { class: FormAutocompleteClass.loading }, h("gov-skeleton", { size: "m" }))) : null, this.focused ? this.list.map((item, index) => {
116
116
  const isSelected = this.arrowCounter === index;
117
117
  return (h("li", { class: FormAutocompleteClass.item, innerHTML: this.templateResolver(item, isSelected), role: 'option', "aria-posinset": index, tabindex: isSelected ? 0 : -1, "aria-setsize": this.list.length, onTouchStart: (e) => this.onSelectHandler(e, index), onMouseDown: (e) => this.onSelectHandler(e, index), "aria-selected": toBoolAttr(isSelected) }, h("slot", { name: "list-item-left" }), h("slot", { name: "list-item-right" })));
118
118
  }) : null)));
@@ -47,7 +47,7 @@ export class GovFormControl {
47
47
  }
48
48
  render() {
49
49
  const Tag = this.fieldset ? "fieldset" : "div";
50
- return (h(Host, { key: '2f6a44e96f79c5ec6fa6326fb01dba74d2f405cc', size: this.size, class: this.h.classes(FormControlClass.root) }, h(Tag, { key: '5b4ec1e274416aa4330f60727662f9f441cb5973', class: FormControlClass.holder }, this.h.hasSlot("top") && h("slot", { key: '51738751699005e6642bdf855f6fafbea9af83f6', name: "top" }), h("slot", { key: 'f765b4b014274832bbef5118312a0e8a70939cda' }), this.h.hasSlot("bottom") && (h("div", { key: '048b08353a3bb6c6246e297bc183288cb9c78034', class: FormControlClass.bottom }, h("slot", { key: '24e79aa1a2d87c12ac0ebefde129a8055f38525e', name: "bottom" }))))));
50
+ return (h(Host, { key: '1502fcaa64e9c9839e7393573f10aa7a98161f8a', size: this.size, class: this.h.classes(FormControlClass.root) }, h(Tag, { key: 'ea3147966c1e34366293c19228793679f5065d53', class: FormControlClass.holder }, this.h.hasSlot("top") && h("slot", { key: '803c63b94d671bdcd30eeb2bf4a9ab9f23633358', name: "top" }), h("slot", { key: 'c46d8faf4cea51bc15e6f57e0f2e9bea895b4454' }), this.h.hasSlot("bottom") && (h("div", { key: '78fcf2aa671f3741f6d38f0519cd8983be5d6082', class: FormControlClass.bottom }, h("slot", { key: '0d25b0c2d06a1f5612c2bf85dc428715e2a8f97a', name: "bottom" }))))));
51
51
  }
52
52
  static get is() { return "gov-form-control"; }
53
53
  static get properties() {
@@ -137,7 +137,7 @@ export class GovFormFile {
137
137
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
138
138
  }
139
139
  render() {
140
- return (h(Host, { key: '57a2ec8520c058114c22a58cc666d74efccb9a96', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, h("div", { key: '6a31911301d1b3eaaeafe32f3167fc0a5893125a', class: FormFileClass.area, ref: el => (this.areaRef = el) }, h("slot", { key: 'feae9382b0223eec714593882ade1904d284e40d' }), h("input", Object.assign({ key: 'b6a16d19ba27cdd878540b39bc440d11761a3ab5', class: FormFileClass.input, ref: el => (this.inputRef = el), id: this.identifier || this.fileId, type: "file", name: this.name, accept: this.accept, multiple: this.multiple, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, disabled: this.disabled }, this.inheritedAttributes, { "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) }))), this.h.hasSlot("attachments") ? (h("div", { class: FormFileClass.attachments }, h("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (h("div", { class: FormFileClass.attachments }, h("gov-attachments", { label: this.accessibleAttachmentsLabel, "accessible-label": this.accessibleAttachmentsLabel }, this.files.map(item => (h("gov-attachments-item", { "accessible-remove-labelledby": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, h("span", { class: "sr-only", id: item.id }, this.accessibleRemoveLabel.replace("{FILE_NAME}", item.file.name)), item.file.name, item.acceptValid === false ? (h("gov-form-message", { slot: "message", color: "error" }, h("gov-icon", { slot: "icon", name: "exclamation-triangle-fill", type: "components" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (h("gov-form-message", { slot: "message", color: "error" }, h("gov-icon", { slot: "icon", name: "exclamation-triangle-fill", type: "components" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize)))) : null, h("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
140
+ return (h(Host, { key: '6fe6eb71a8275871bb0aeebae9531d846123ae06', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, h("div", { key: 'cd7ab5a0c223214f5d825c8695993e8c64b9ea78', class: FormFileClass.area, ref: el => (this.areaRef = el) }, h("slot", { key: '6197c08c6a50725a261da65069159f75e3e47834' }), h("input", Object.assign({ key: 'f6897d875af8c47268118ef5d7dd9c19cec6e9a1', class: FormFileClass.input, ref: el => (this.inputRef = el), id: this.identifier || this.fileId, type: "file", name: this.name, accept: this.accept, multiple: this.multiple, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, disabled: this.disabled }, this.inheritedAttributes, { "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled) }))), this.h.hasSlot("attachments") ? (h("div", { class: FormFileClass.attachments }, h("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (h("div", { class: FormFileClass.attachments }, h("gov-attachments", { label: this.accessibleAttachmentsLabel, "accessible-label": this.accessibleAttachmentsLabel }, this.files.map(item => (h("gov-attachments-item", { "accessible-remove-labelledby": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, h("span", { class: "sr-only", id: item.id }, this.accessibleRemoveLabel.replace("{FILE_NAME}", item.file.name)), item.file.name, item.acceptValid === false ? (h("gov-form-message", { slot: "message", color: "error" }, h("gov-icon", { slot: "icon", name: "exclamation-triangle-fill", type: "components" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (h("gov-form-message", { slot: "message", color: "error" }, h("gov-icon", { slot: "icon", name: "exclamation-triangle-fill", type: "components" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize)))) : null, h("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
141
141
  }
142
142
  onRemoveFileHandler(file) {
143
143
  const index = this.files.findIndex(item => item.id === file.id);
@@ -56,7 +56,7 @@ export class GovFormCheckboxGroup {
56
56
  });
57
57
  }
58
58
  render() {
59
- return (h(Host, { key: '22f738e5251d68688b6d21c471a5c18ae2532a5a', gap: this.gap, class: this.h.classes(FormGroupClass.root), value: this.value }, h("slot", { key: '8028ab95f42dc8c8dfb8f1ee1b70879c291db6d4' })));
59
+ return (h(Host, { key: '332a7e45344ebd6bafbcf20813ab7a06a99aae7e', gap: this.gap, class: this.h.classes(FormGroupClass.root), value: this.value }, h("slot", { key: 'd00028b250fa309ee22d25bd07f0f940fec0590e' })));
60
60
  }
61
61
  static get is() { return "gov-form-checkbox-group"; }
62
62
  static get originalStyleUrls() {
@@ -23,7 +23,7 @@ export class GovFormGroup {
23
23
  this.validateOrientation(this.orientation);
24
24
  }
25
25
  render() {
26
- return (h(Host, { key: '23bc665133af4d63acae967405c379aef79f9125', gap: this.gap, class: this.h.classes(FormGroupClass.root) }, h("slot", { key: '11d303816dae7149170180b450542c2cd1a322c6' })));
26
+ return (h(Host, { key: 'a16a99205899fe2a9e49702708c8f879c363b111', gap: this.gap, class: this.h.classes(FormGroupClass.root) }, h("slot", { key: '871900cb0682f57fa0856d90b38a683a005240dd' })));
27
27
  }
28
28
  static get is() { return "gov-form-group"; }
29
29
  static get properties() {
@@ -45,7 +45,7 @@ export class GovFormRadioGroup {
45
45
  });
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: 'f5d9641f18787c21c13898a8d80159326161e676', gap: this.gap, class: this.h.classes(FormGroupClass.root), value: this.value }, h("slot", { key: '81b46ef337551d1f31b9b7f7d5bb32a620f0fb69' })));
48
+ return (h(Host, { key: '332ec3c5c0582167e5543304daa8508cc354ecc5', gap: this.gap, class: this.h.classes(FormGroupClass.root), value: this.value }, h("slot", { key: '7bfbcec04a7f39226709c9546dbd0f121678d075' })));
49
49
  }
50
50
  static get is() { return "gov-form-radio-group"; }
51
51
  static get originalStyleUrls() {