@gov-design-system-ce/components 4.1.3-BETA-5 → 4.1.3-BETA-7

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 (416) hide show
  1. package/dist/cjs/core.cjs.js +2 -2
  2. package/dist/cjs/gov-accordion-item.cjs.entry.js +3 -3
  3. package/dist/cjs/gov-accordion.cjs.entry.js +3 -3
  4. package/dist/cjs/gov-attachments_3.cjs.entry.js +4 -4
  5. package/dist/cjs/gov-backdrop.cjs.entry.js +3 -3
  6. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +3 -3
  7. package/dist/cjs/gov-button.cjs.entry.js +4 -4
  8. package/dist/cjs/gov-card.cjs.entry.js +3 -3
  9. package/dist/cjs/gov-chip.cjs.entry.js +3 -3
  10. package/dist/cjs/gov-container.cjs.entry.js +1 -1
  11. package/dist/cjs/gov-control-group.cjs.entry.js +3 -3
  12. package/dist/cjs/gov-cookiebar.cjs.entry.js +1 -1
  13. package/dist/cjs/gov-dialog.cjs.entry.js +3 -3
  14. package/dist/cjs/gov-dropdown.cjs.entry.js +1 -1
  15. package/dist/cjs/gov-empty.cjs.entry.js +3 -3
  16. package/dist/cjs/gov-error-code.cjs.entry.js +1 -1
  17. package/dist/cjs/gov-flex_3.cjs.entry.js +179 -34
  18. package/dist/cjs/gov-flex_3.cjs.entry.js.map +1 -1
  19. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
  20. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +3 -3
  21. package/dist/cjs/gov-form-checkbox.cjs.entry.js +3 -3
  22. package/dist/cjs/gov-form-control.cjs.entry.js +1 -1
  23. package/dist/cjs/gov-form-file.cjs.entry.js +1 -1
  24. package/dist/cjs/gov-form-group.cjs.entry.js +3 -3
  25. package/dist/cjs/gov-form-input_2.cjs.entry.js +4 -4
  26. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  27. package/dist/cjs/gov-form-multi-select.cjs.entry.js +3 -3
  28. package/dist/cjs/gov-form-password-power.cjs.entry.js +1 -1
  29. package/dist/cjs/gov-form-radio-group.cjs.entry.js +3 -3
  30. package/dist/cjs/gov-form-radio.cjs.entry.js +3 -3
  31. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  32. package/dist/cjs/gov-form-select.cjs.entry.js +3 -3
  33. package/dist/cjs/gov-form-switch.cjs.entry.js +3 -3
  34. package/dist/cjs/gov-grid-item.cjs.entry.js +1 -1
  35. package/dist/cjs/gov-grid.cjs.entry.js +1 -1
  36. package/dist/cjs/gov-infobar.cjs.entry.js +5 -5
  37. package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
  38. package/dist/cjs/gov-layout.cjs.entry.js +2 -2
  39. package/dist/cjs/gov-lifecycle.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-link.cjs.entry.js +4 -4
  41. package/dist/cjs/gov-loading.cjs.entry.js +4 -4
  42. package/dist/cjs/gov-message.cjs.entry.js +4 -4
  43. package/dist/cjs/gov-pagination.cjs.entry.js +3 -3
  44. package/dist/cjs/gov-spacer.cjs.entry.js +4 -4
  45. package/dist/cjs/gov-stepper-item.cjs.entry.js +4 -4
  46. package/dist/cjs/gov-stepper.cjs.entry.js +4 -4
  47. package/dist/cjs/gov-tabs-item.cjs.entry.js +2 -2
  48. package/dist/cjs/gov-tabs.cjs.entry.js +4 -4
  49. package/dist/cjs/gov-tag.cjs.entry.js +4 -4
  50. package/dist/cjs/gov-tile.cjs.entry.js +2 -2
  51. package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
  52. package/dist/cjs/gov-toast.cjs.entry.js +4 -4
  53. package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
  54. package/dist/cjs/gov-tooltip.cjs.entry.js +5 -5
  55. package/dist/cjs/gov-wizard-item.cjs.entry.js +5 -5
  56. package/dist/cjs/gov-wizard.cjs.entry.js +5 -5
  57. package/dist/cjs/{gov.log-21ea2c96.js → gov.log-bfea3151.js} +5 -1
  58. package/dist/cjs/gov.log-bfea3151.js.map +1 -0
  59. package/dist/cjs/{index-0e4f24f9.js → index-67e87c27.js} +15 -1
  60. package/dist/cjs/index-67e87c27.js.map +1 -0
  61. package/dist/cjs/loader.cjs.js +2 -2
  62. package/dist/cjs/{props-b079c32b.js → props-d189860c.js} +2 -2
  63. package/dist/cjs/{props-b079c32b.js.map → props-d189860c.js.map} +1 -1
  64. package/dist/cjs/{wcag-efe9bf16.js → wcag-2927ff73.js} +2 -2
  65. package/dist/cjs/{wcag-efe9bf16.js.map → wcag-2927ff73.js.map} +1 -1
  66. package/dist/collection/components/gov-icon/gov-icon.js +113 -5
  67. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  68. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  69. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  70. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  71. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +1 -1
  72. package/dist/collection/components/gov-link/gov-link.js +1 -1
  73. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  74. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  75. package/dist/collection/components/gov-message/gov-message.js +1 -1
  76. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  77. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  78. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  79. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  80. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  81. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  82. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  83. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  84. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  85. package/dist/collection/components/gov-toast/gov-toast.js +1 -1
  86. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  87. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  88. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  89. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  90. package/dist/collection/utils/icon.utils.js.map +1 -1
  91. package/dist/components/gov-accordion-item.js +1 -1
  92. package/dist/components/gov-accordion.js +1 -1
  93. package/dist/components/gov-attachments-item.js +1 -1
  94. package/dist/components/gov-attachments.js +1 -1
  95. package/dist/components/gov-backdrop.js +1 -1
  96. package/dist/components/gov-breadcrumbs.js +1 -1
  97. package/dist/components/gov-button.js +1 -1
  98. package/dist/components/gov-card.js +1 -1
  99. package/dist/components/gov-chip.js +1 -1
  100. package/dist/components/gov-container.js +1 -1
  101. package/dist/components/gov-control-group.js +1 -1
  102. package/dist/components/gov-cookiebar.js +1 -1
  103. package/dist/components/gov-dialog.js +1 -1
  104. package/dist/components/gov-dropdown.js +1 -1
  105. package/dist/components/gov-dropdown.js.map +1 -1
  106. package/dist/components/gov-empty.js +1 -1
  107. package/dist/components/gov-error-code.js +1 -1
  108. package/dist/components/gov-flex.js +1 -1
  109. package/dist/components/gov-form-autocomplete.js +1 -1
  110. package/dist/components/gov-form-checkbox-group.js +1 -1
  111. package/dist/components/gov-form-checkbox.js +1 -1
  112. package/dist/components/gov-form-control.js +1 -1
  113. package/dist/components/gov-form-file.js +1 -1
  114. package/dist/components/gov-form-file.js.map +1 -1
  115. package/dist/components/gov-form-group.js +1 -1
  116. package/dist/components/gov-form-input.js +1 -1
  117. package/dist/components/gov-form-label.js +1 -1
  118. package/dist/components/gov-form-message.js +1 -1
  119. package/dist/components/gov-form-multi-select.js +1 -1
  120. package/dist/components/gov-form-password-power.js +1 -1
  121. package/dist/components/gov-form-radio-group.js +1 -1
  122. package/dist/components/gov-form-radio.js +1 -1
  123. package/dist/components/gov-form-radio.js.map +1 -1
  124. package/dist/components/gov-form-search.js +1 -1
  125. package/dist/components/gov-form-select.js +1 -1
  126. package/dist/components/gov-form-switch.js +1 -1
  127. package/dist/components/gov-grid-item.js +1 -1
  128. package/dist/components/gov-grid.js +1 -1
  129. package/dist/components/gov-icon.js +1 -1
  130. package/dist/components/gov-infobar.js +1 -1
  131. package/dist/components/gov-layout-column.js +1 -1
  132. package/dist/components/gov-layout.js +1 -1
  133. package/dist/components/gov-lifecycle.js +1 -1
  134. package/dist/components/gov-link.js +1 -1
  135. package/dist/components/gov-link.js.map +1 -1
  136. package/dist/components/gov-loading.js +1 -1
  137. package/dist/components/gov-loading.js.map +1 -1
  138. package/dist/components/gov-message.js +1 -1
  139. package/dist/components/gov-pagination.js +1 -1
  140. package/dist/components/gov-skeleton.js +1 -1
  141. package/dist/components/gov-spacer.js +1 -1
  142. package/dist/components/gov-stepper-item.js +1 -1
  143. package/dist/components/gov-stepper.js +1 -1
  144. package/dist/components/gov-tabs-item.js +1 -1
  145. package/dist/components/gov-tabs.js +1 -1
  146. package/dist/components/gov-tag.js +1 -1
  147. package/dist/components/gov-theme-switch.js +1 -1
  148. package/dist/components/gov-theme-switch.js.map +1 -1
  149. package/dist/components/gov-tile.js +1 -1
  150. package/dist/components/gov-tile.js.map +1 -1
  151. package/dist/components/gov-tiles.js +1 -1
  152. package/dist/components/gov-toast.js +1 -1
  153. package/dist/components/gov-tooltip-content.js +1 -1
  154. package/dist/components/gov-tooltip.js +1 -1
  155. package/dist/components/gov-wizard-item.js +1 -1
  156. package/dist/components/gov-wizard.js +1 -1
  157. package/dist/components/index.js +1 -1
  158. package/dist/components/{p-56399a9b.js → p-03ad4e0f.js} +2 -2
  159. package/dist/components/p-0b3574c2.js +2 -0
  160. package/dist/components/p-115b9cf3.js +3 -0
  161. package/dist/components/p-115b9cf3.js.map +1 -0
  162. package/dist/components/{p-c024f757.js → p-2237d3a5.js} +2 -2
  163. package/dist/components/{p-495b793e.js → p-350e060c.js} +2 -2
  164. package/dist/components/{p-de0a517f.js → p-384c7f2a.js} +2 -2
  165. package/dist/components/{p-88b35bda.js → p-7d808445.js} +2 -2
  166. package/dist/components/{p-454ce5f2.js → p-80dad64b.js} +2 -2
  167. package/dist/components/p-88b2667e.js +2 -0
  168. package/dist/components/p-88b2667e.js.map +1 -0
  169. package/dist/components/{p-080d5d41.js → p-8ee6f2f3.js} +2 -2
  170. package/dist/components/{p-438d5e0f.js → p-94002301.js} +2 -2
  171. package/dist/components/{p-61453dbf.js → p-9992e831.js} +2 -2
  172. package/dist/components/p-bfce6f99.js +2 -0
  173. package/dist/components/p-bfce6f99.js.map +1 -0
  174. package/dist/components/{p-b642e485.js → p-c67a25ad.js} +2 -2
  175. package/dist/components/p-e8ec030e.js +2 -0
  176. package/dist/components/{p-ceafa242.js.map → p-e8ec030e.js.map} +1 -1
  177. package/dist/components/{p-7007bd16.js → p-f4ca9c18.js} +2 -2
  178. package/dist/core/core.esm.js +1 -1
  179. package/dist/core/core.esm.js.map +1 -1
  180. package/dist/core/p-017ff5a5.entry.js +2 -0
  181. package/dist/core/{p-9ee41510.entry.js.map → p-017ff5a5.entry.js.map} +1 -1
  182. package/dist/core/{p-b2c00946.entry.js → p-032accfb.entry.js} +2 -2
  183. package/dist/core/{p-5802e37e.entry.js → p-058e6fe2.entry.js} +2 -2
  184. package/dist/core/{p-b36f84d2.entry.js → p-063b70a2.entry.js} +2 -2
  185. package/dist/core/{p-38287e92.entry.js → p-0724cb6a.entry.js} +2 -2
  186. package/dist/core/p-09c9eba6.entry.js +2 -0
  187. package/dist/core/p-0b3574c2.js +2 -0
  188. package/dist/core/{p-b404f53c.entry.js → p-0c076b21.entry.js} +2 -2
  189. package/dist/core/p-0f0f7302.entry.js +2 -0
  190. package/dist/core/{p-df338d69.entry.js.map → p-0f0f7302.entry.js.map} +1 -1
  191. package/dist/core/p-10f773c2.entry.js +2 -0
  192. package/dist/core/p-14d66f26.entry.js +2 -0
  193. package/dist/core/{p-54d924fc.entry.js.map → p-14d66f26.entry.js.map} +1 -1
  194. package/dist/core/{p-3abf57dc.entry.js → p-1aa7450e.entry.js} +2 -2
  195. package/dist/core/p-237a5b91.entry.js +2 -0
  196. package/dist/core/{p-e6b08d9b.entry.js.map → p-237a5b91.entry.js.map} +1 -1
  197. package/dist/core/p-269071f5.entry.js +2 -0
  198. package/dist/core/{p-2f3228e4.js → p-29ac15d2.js} +2 -2
  199. package/dist/core/p-2ee042d4.js +3 -0
  200. package/dist/core/p-2ee042d4.js.map +1 -0
  201. package/dist/core/{p-8a063925.entry.js → p-33310735.entry.js} +2 -2
  202. package/dist/core/p-347d15d5.entry.js +2 -0
  203. package/dist/core/{p-07b1fa1c.entry.js.map → p-347d15d5.entry.js.map} +1 -1
  204. package/dist/core/{p-8e5f45d0.entry.js → p-37473c34.entry.js} +2 -2
  205. package/dist/core/{p-9514520c.entry.js → p-3849ca02.entry.js} +2 -2
  206. package/dist/core/p-3a7381e7.entry.js +2 -0
  207. package/dist/core/{p-e078dab3.entry.js.map → p-3a7381e7.entry.js.map} +1 -1
  208. package/dist/core/p-43d3dbc0.entry.js +2 -0
  209. package/dist/core/p-45b759f4.entry.js +2 -0
  210. package/dist/core/{p-123d26eb.entry.js.map → p-45b759f4.entry.js.map} +1 -1
  211. package/dist/core/p-4c60e125.entry.js +2 -0
  212. package/dist/core/p-4e29744a.entry.js +2 -0
  213. package/dist/core/{p-402f36af.entry.js.map → p-4e29744a.entry.js.map} +1 -1
  214. package/dist/core/{p-3b8b331f.entry.js → p-4fa0320d.entry.js} +2 -2
  215. package/dist/core/p-50af9ae8.entry.js +2 -0
  216. package/dist/core/{p-4ea79bda.entry.js → p-5c3f4cfe.entry.js} +2 -2
  217. package/dist/core/{p-75ff8ad0.entry.js → p-6b7c3a96.entry.js} +2 -2
  218. package/dist/core/p-71f5d4ff.entry.js +2 -0
  219. package/dist/core/{p-0a49e852.entry.js → p-77daba72.entry.js} +2 -2
  220. package/dist/core/{p-cb76cda0.entry.js → p-7a21fb90.entry.js} +2 -2
  221. package/dist/core/{p-c723877b.entry.js → p-7baee44f.entry.js} +2 -2
  222. package/dist/core/{p-7f7c31e2.entry.js → p-7dfb7e36.entry.js} +2 -2
  223. package/dist/core/{p-9897ac81.entry.js → p-8bb6c816.entry.js} +2 -2
  224. package/dist/core/p-8cc5ad01.entry.js +2 -0
  225. package/dist/core/{p-9410ca28.entry.js.map → p-8cc5ad01.entry.js.map} +1 -1
  226. package/dist/core/p-906865d0.entry.js +2 -0
  227. package/dist/core/{p-9096ac3f.entry.js.map → p-906865d0.entry.js.map} +1 -1
  228. package/dist/core/p-927c31dd.entry.js +2 -0
  229. package/dist/core/{p-2800bec9.entry.js → p-967a1094.entry.js} +2 -2
  230. package/dist/core/{p-1399f929.entry.js → p-9846fd13.entry.js} +2 -2
  231. package/dist/core/{p-87e5b1d0.entry.js → p-994385ca.entry.js} +2 -2
  232. package/dist/core/{p-f35f3261.entry.js → p-9f8d69a9.entry.js} +2 -2
  233. package/dist/core/{p-47d27845.entry.js → p-a6a9de9a.entry.js} +2 -2
  234. package/dist/core/p-b62e49ee.entry.js +2 -0
  235. package/dist/core/p-c0800e6d.entry.js +2 -0
  236. package/dist/core/p-cecbe73f.entry.js +2 -0
  237. package/dist/core/{p-0087a816.entry.js.map → p-cecbe73f.entry.js.map} +1 -1
  238. package/dist/core/p-d795a421.entry.js +2 -0
  239. package/dist/core/{p-80c7db1f.entry.js.map → p-d795a421.entry.js.map} +1 -1
  240. package/dist/core/{p-bf0712e0.entry.js → p-d9b42773.entry.js} +2 -2
  241. package/dist/core/{p-6cf9500c.entry.js → p-e0a199ff.entry.js} +2 -2
  242. package/dist/core/{p-c34dad75.entry.js → p-e215f3ee.entry.js} +2 -2
  243. package/dist/core/p-e8ec030e.js +2 -0
  244. package/dist/core/{p-ceafa242.js.map → p-e8ec030e.js.map} +1 -1
  245. package/dist/core/{p-368aa2f4.entry.js → p-ed02945f.entry.js} +2 -2
  246. package/dist/core/p-ee55932a.entry.js +2 -0
  247. package/dist/core/p-f14252eb.entry.js +2 -0
  248. package/dist/core/p-f14252eb.entry.js.map +1 -0
  249. package/dist/core/{p-f9474bb3.entry.js → p-f2bb8c29.entry.js} +2 -2
  250. package/dist/core/{p-16a3deca.entry.js → p-f54edd6c.entry.js} +2 -2
  251. package/dist/core/p-f7f60f91.entry.js +2 -0
  252. package/dist/core/{p-1043fe0d.entry.js.map → p-f7f60f91.entry.js.map} +1 -1
  253. package/dist/core/{p-fc795b0e.entry.js → p-fcac8531.entry.js} +2 -2
  254. package/dist/esm/core.js +3 -3
  255. package/dist/esm/gov-accordion-item.entry.js +3 -3
  256. package/dist/esm/gov-accordion.entry.js +3 -3
  257. package/dist/esm/gov-attachments_3.entry.js +4 -4
  258. package/dist/esm/gov-backdrop.entry.js +3 -3
  259. package/dist/esm/gov-breadcrumbs.entry.js +3 -3
  260. package/dist/esm/gov-button.entry.js +4 -4
  261. package/dist/esm/gov-card.entry.js +3 -3
  262. package/dist/esm/gov-chip.entry.js +3 -3
  263. package/dist/esm/gov-container.entry.js +1 -1
  264. package/dist/esm/gov-control-group.entry.js +3 -3
  265. package/dist/esm/gov-cookiebar.entry.js +1 -1
  266. package/dist/esm/gov-dialog.entry.js +3 -3
  267. package/dist/esm/gov-dropdown.entry.js +1 -1
  268. package/dist/esm/gov-empty.entry.js +3 -3
  269. package/dist/esm/gov-error-code.entry.js +1 -1
  270. package/dist/esm/gov-flex_3.entry.js +179 -34
  271. package/dist/esm/gov-flex_3.entry.js.map +1 -1
  272. package/dist/esm/gov-form-autocomplete.entry.js +3 -3
  273. package/dist/esm/gov-form-checkbox-group.entry.js +3 -3
  274. package/dist/esm/gov-form-checkbox.entry.js +3 -3
  275. package/dist/esm/gov-form-control.entry.js +1 -1
  276. package/dist/esm/gov-form-file.entry.js +1 -1
  277. package/dist/esm/gov-form-group.entry.js +3 -3
  278. package/dist/esm/gov-form-input_2.entry.js +4 -4
  279. package/dist/esm/gov-form-label.entry.js +1 -1
  280. package/dist/esm/gov-form-multi-select.entry.js +3 -3
  281. package/dist/esm/gov-form-password-power.entry.js +1 -1
  282. package/dist/esm/gov-form-radio-group.entry.js +3 -3
  283. package/dist/esm/gov-form-radio.entry.js +3 -3
  284. package/dist/esm/gov-form-search.entry.js +1 -1
  285. package/dist/esm/gov-form-select.entry.js +3 -3
  286. package/dist/esm/gov-form-switch.entry.js +3 -3
  287. package/dist/esm/gov-grid-item.entry.js +1 -1
  288. package/dist/esm/gov-grid.entry.js +1 -1
  289. package/dist/esm/gov-infobar.entry.js +5 -5
  290. package/dist/esm/gov-layout-column.entry.js +2 -2
  291. package/dist/esm/gov-layout.entry.js +2 -2
  292. package/dist/esm/gov-lifecycle.entry.js +2 -2
  293. package/dist/esm/gov-link.entry.js +4 -4
  294. package/dist/esm/gov-loading.entry.js +4 -4
  295. package/dist/esm/gov-message.entry.js +4 -4
  296. package/dist/esm/gov-pagination.entry.js +3 -3
  297. package/dist/esm/gov-spacer.entry.js +4 -4
  298. package/dist/esm/gov-stepper-item.entry.js +4 -4
  299. package/dist/esm/gov-stepper.entry.js +4 -4
  300. package/dist/esm/gov-tabs-item.entry.js +2 -2
  301. package/dist/esm/gov-tabs.entry.js +4 -4
  302. package/dist/esm/gov-tag.entry.js +4 -4
  303. package/dist/esm/gov-tile.entry.js +2 -2
  304. package/dist/esm/gov-tiles.entry.js +2 -2
  305. package/dist/esm/gov-toast.entry.js +4 -4
  306. package/dist/esm/gov-tooltip-content.entry.js +2 -2
  307. package/dist/esm/gov-tooltip.entry.js +5 -5
  308. package/dist/esm/gov-wizard-item.entry.js +5 -5
  309. package/dist/esm/gov-wizard.entry.js +5 -5
  310. package/dist/esm/{gov.log-55c240b2.js → gov.log-6b64cda6.js} +4 -2
  311. package/dist/esm/gov.log-6b64cda6.js.map +1 -0
  312. package/dist/esm/{index-bf8a6f64.js → index-087b155c.js} +14 -2
  313. package/dist/esm/index-087b155c.js.map +1 -0
  314. package/dist/esm/loader.js +3 -3
  315. package/dist/esm/{props-c54f7897.js → props-9d3c7ac1.js} +2 -2
  316. package/dist/esm/{props-c54f7897.js.map → props-9d3c7ac1.js.map} +1 -1
  317. package/dist/esm/{wcag-1a5ae5e3.js → wcag-253a4421.js} +2 -2
  318. package/dist/esm/{wcag-1a5ae5e3.js.map → wcag-253a4421.js.map} +1 -1
  319. package/dist/hydrate/index.js +205 -57
  320. package/dist/hydrate/index.mjs +205 -57
  321. package/dist/types/components/gov-icon/gov-icon.d.ts +12 -0
  322. package/package.json +1 -1
  323. package/dist/cjs/gov.log-21ea2c96.js.map +0 -1
  324. package/dist/cjs/index-0e4f24f9.js.map +0 -1
  325. package/dist/components/p-42200001.js +0 -3
  326. package/dist/components/p-42200001.js.map +0 -1
  327. package/dist/components/p-ceafa242.js +0 -2
  328. package/dist/components/p-d8135701.js +0 -2
  329. package/dist/components/p-df29e931.js +0 -2
  330. package/dist/components/p-df29e931.js.map +0 -1
  331. package/dist/core/p-0087a816.entry.js +0 -2
  332. package/dist/core/p-07b1fa1c.entry.js +0 -2
  333. package/dist/core/p-1043fe0d.entry.js +0 -2
  334. package/dist/core/p-123d26eb.entry.js +0 -2
  335. package/dist/core/p-1d5cc2b1.entry.js +0 -2
  336. package/dist/core/p-200a0be4.entry.js +0 -2
  337. package/dist/core/p-26726401.entry.js +0 -2
  338. package/dist/core/p-2b62c4ee.entry.js +0 -2
  339. package/dist/core/p-2f693f59.entry.js +0 -2
  340. package/dist/core/p-402f36af.entry.js +0 -2
  341. package/dist/core/p-54d924fc.entry.js +0 -2
  342. package/dist/core/p-80c7db1f.entry.js +0 -2
  343. package/dist/core/p-8f21a858.entry.js +0 -2
  344. package/dist/core/p-9096ac3f.entry.js +0 -2
  345. package/dist/core/p-93b747c1.entry.js +0 -2
  346. package/dist/core/p-9410ca28.entry.js +0 -2
  347. package/dist/core/p-9dea2efa.js +0 -3
  348. package/dist/core/p-9dea2efa.js.map +0 -1
  349. package/dist/core/p-9ee41510.entry.js +0 -2
  350. package/dist/core/p-af2bc7cf.entry.js +0 -2
  351. package/dist/core/p-af2bc7cf.entry.js.map +0 -1
  352. package/dist/core/p-b480cda1.entry.js +0 -2
  353. package/dist/core/p-c742b08e.entry.js +0 -2
  354. package/dist/core/p-ceafa242.js +0 -2
  355. package/dist/core/p-d8135701.js +0 -2
  356. package/dist/core/p-df338d69.entry.js +0 -2
  357. package/dist/core/p-e078dab3.entry.js +0 -2
  358. package/dist/core/p-e6b08d9b.entry.js +0 -2
  359. package/dist/core/p-fe5030a6.entry.js +0 -2
  360. package/dist/core/p-fe9ca9e6.entry.js +0 -2
  361. package/dist/esm/gov.log-55c240b2.js.map +0 -1
  362. package/dist/esm/index-bf8a6f64.js.map +0 -1
  363. /package/dist/components/{p-56399a9b.js.map → p-03ad4e0f.js.map} +0 -0
  364. /package/dist/components/{p-d8135701.js.map → p-0b3574c2.js.map} +0 -0
  365. /package/dist/components/{p-c024f757.js.map → p-2237d3a5.js.map} +0 -0
  366. /package/dist/components/{p-495b793e.js.map → p-350e060c.js.map} +0 -0
  367. /package/dist/components/{p-de0a517f.js.map → p-384c7f2a.js.map} +0 -0
  368. /package/dist/components/{p-88b35bda.js.map → p-7d808445.js.map} +0 -0
  369. /package/dist/components/{p-454ce5f2.js.map → p-80dad64b.js.map} +0 -0
  370. /package/dist/components/{p-080d5d41.js.map → p-8ee6f2f3.js.map} +0 -0
  371. /package/dist/components/{p-438d5e0f.js.map → p-94002301.js.map} +0 -0
  372. /package/dist/components/{p-61453dbf.js.map → p-9992e831.js.map} +0 -0
  373. /package/dist/components/{p-b642e485.js.map → p-c67a25ad.js.map} +0 -0
  374. /package/dist/components/{p-7007bd16.js.map → p-f4ca9c18.js.map} +0 -0
  375. /package/dist/core/{p-b2c00946.entry.js.map → p-032accfb.entry.js.map} +0 -0
  376. /package/dist/core/{p-5802e37e.entry.js.map → p-058e6fe2.entry.js.map} +0 -0
  377. /package/dist/core/{p-b36f84d2.entry.js.map → p-063b70a2.entry.js.map} +0 -0
  378. /package/dist/core/{p-38287e92.entry.js.map → p-0724cb6a.entry.js.map} +0 -0
  379. /package/dist/core/{p-2b62c4ee.entry.js.map → p-09c9eba6.entry.js.map} +0 -0
  380. /package/dist/core/{p-d8135701.js.map → p-0b3574c2.js.map} +0 -0
  381. /package/dist/core/{p-b404f53c.entry.js.map → p-0c076b21.entry.js.map} +0 -0
  382. /package/dist/core/{p-1d5cc2b1.entry.js.map → p-10f773c2.entry.js.map} +0 -0
  383. /package/dist/core/{p-3abf57dc.entry.js.map → p-1aa7450e.entry.js.map} +0 -0
  384. /package/dist/core/{p-26726401.entry.js.map → p-269071f5.entry.js.map} +0 -0
  385. /package/dist/core/{p-2f3228e4.js.map → p-29ac15d2.js.map} +0 -0
  386. /package/dist/core/{p-8a063925.entry.js.map → p-33310735.entry.js.map} +0 -0
  387. /package/dist/core/{p-8e5f45d0.entry.js.map → p-37473c34.entry.js.map} +0 -0
  388. /package/dist/core/{p-9514520c.entry.js.map → p-3849ca02.entry.js.map} +0 -0
  389. /package/dist/core/{p-93b747c1.entry.js.map → p-43d3dbc0.entry.js.map} +0 -0
  390. /package/dist/core/{p-fe9ca9e6.entry.js.map → p-4c60e125.entry.js.map} +0 -0
  391. /package/dist/core/{p-3b8b331f.entry.js.map → p-4fa0320d.entry.js.map} +0 -0
  392. /package/dist/core/{p-200a0be4.entry.js.map → p-50af9ae8.entry.js.map} +0 -0
  393. /package/dist/core/{p-4ea79bda.entry.js.map → p-5c3f4cfe.entry.js.map} +0 -0
  394. /package/dist/core/{p-75ff8ad0.entry.js.map → p-6b7c3a96.entry.js.map} +0 -0
  395. /package/dist/core/{p-8f21a858.entry.js.map → p-71f5d4ff.entry.js.map} +0 -0
  396. /package/dist/core/{p-0a49e852.entry.js.map → p-77daba72.entry.js.map} +0 -0
  397. /package/dist/core/{p-cb76cda0.entry.js.map → p-7a21fb90.entry.js.map} +0 -0
  398. /package/dist/core/{p-c723877b.entry.js.map → p-7baee44f.entry.js.map} +0 -0
  399. /package/dist/core/{p-7f7c31e2.entry.js.map → p-7dfb7e36.entry.js.map} +0 -0
  400. /package/dist/core/{p-9897ac81.entry.js.map → p-8bb6c816.entry.js.map} +0 -0
  401. /package/dist/core/{p-fe5030a6.entry.js.map → p-927c31dd.entry.js.map} +0 -0
  402. /package/dist/core/{p-2800bec9.entry.js.map → p-967a1094.entry.js.map} +0 -0
  403. /package/dist/core/{p-1399f929.entry.js.map → p-9846fd13.entry.js.map} +0 -0
  404. /package/dist/core/{p-87e5b1d0.entry.js.map → p-994385ca.entry.js.map} +0 -0
  405. /package/dist/core/{p-f35f3261.entry.js.map → p-9f8d69a9.entry.js.map} +0 -0
  406. /package/dist/core/{p-47d27845.entry.js.map → p-a6a9de9a.entry.js.map} +0 -0
  407. /package/dist/core/{p-c742b08e.entry.js.map → p-b62e49ee.entry.js.map} +0 -0
  408. /package/dist/core/{p-2f693f59.entry.js.map → p-c0800e6d.entry.js.map} +0 -0
  409. /package/dist/core/{p-bf0712e0.entry.js.map → p-d9b42773.entry.js.map} +0 -0
  410. /package/dist/core/{p-6cf9500c.entry.js.map → p-e0a199ff.entry.js.map} +0 -0
  411. /package/dist/core/{p-c34dad75.entry.js.map → p-e215f3ee.entry.js.map} +0 -0
  412. /package/dist/core/{p-368aa2f4.entry.js.map → p-ed02945f.entry.js.map} +0 -0
  413. /package/dist/core/{p-b480cda1.entry.js.map → p-ee55932a.entry.js.map} +0 -0
  414. /package/dist/core/{p-f9474bb3.entry.js.map → p-f2bb8c29.entry.js.map} +0 -0
  415. /package/dist/core/{p-16a3deca.entry.js.map → p-f54edd6c.entry.js.map} +0 -0
  416. /package/dist/core/{p-fc795b0e.entry.js.map → p-fcac8531.entry.js.map} +0 -0
@@ -131,6 +131,12 @@ var __export = (target, all) => {
131
131
  __defProp(target, name, { get: all[name], enumerable: true });
132
132
  };
133
133
 
134
+ // src/runtime/asset-path.ts
135
+ var getAssetPath = (path) => {
136
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
137
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
138
+ };
139
+
134
140
  // src/utils/constants.ts
135
141
  var EMPTY_OBJ = {};
136
142
 
@@ -2199,6 +2205,12 @@ var registerHost = (elm, cmpMeta) => {
2199
2205
  elm["s-rc"] = [];
2200
2206
  return hostRefs.set(elm, hostRef);
2201
2207
  };
2208
+ var Build = {
2209
+ isDev: false,
2210
+ isBrowser: false,
2211
+ isServer: true,
2212
+ isTesting: false
2213
+ };
2202
2214
  var styles = /* @__PURE__ */ new Map();
2203
2215
 
2204
2216
  async function delay(miliseconds) {
@@ -2255,6 +2267,8 @@ const canValidateWcagOnRender = () => config().canValidateWcagOnRender;
2255
2267
  const useWarningLog = () => config().warningLog;
2256
2268
  const useErrorLog = () => config().errorLog;
2257
2269
  const useLog = () => config().log;
2270
+ const iconsPath = () => config().iconsPath;
2271
+ const iconsLazyLoad = () => config().iconsLazyLoad;
2258
2272
  const documentNode = () => config().documentNode;
2259
2273
 
2260
2274
  const WARNING_COLORS = { bg: '#ecae1a', text: '#3b3b3b' };
@@ -6019,7 +6033,7 @@ class GovGridItem {
6019
6033
  }
6020
6034
 
6021
6035
  pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL', '_2XL', '_3XL', '_4XL', '_5XL']);
6022
- pick(Colors, [
6036
+ const IconColors = pick(Colors, [
6023
6037
  'DEFAULT',
6024
6038
  'PRIMARY',
6025
6039
  'SECONDARY',
@@ -6042,7 +6056,90 @@ const IconClass = {
6042
6056
  holder: 'gov-icon__holder',
6043
6057
  };
6044
6058
 
6045
- console.log('GovIcon loaded');
6059
+ const version = "4.1.3-BETA-7";
6060
+
6061
+ const dsVersion = () => {
6062
+ return version;
6063
+ };
6064
+
6065
+ const iconCache = {};
6066
+ const requestCache = {};
6067
+ const isExternalUrl = (path) => path.startsWith("http://") || path.startsWith("https://");
6068
+ const iconUrl = (path, name, type) => {
6069
+ if (isExternalUrl(path)) {
6070
+ return `${path}/${type}/${name}.svg?v=${dsVersion()}`;
6071
+ }
6072
+ return getAssetPath(`${path}/${type}/${name}.svg`) + `?v=${dsVersion()}`;
6073
+ };
6074
+ async function fetchIcon({ name, type }) {
6075
+ const cacheKey = type + "-" + name;
6076
+ console.log('cacheKey', cacheKey);
6077
+ console.log('iconCache[cacheKey]', iconCache, iconCache[cacheKey]);
6078
+ if (iconCache[cacheKey]) {
6079
+ return iconCache[cacheKey];
6080
+ }
6081
+ console.log('requestCache[cacheKey]', requestCache, requestCache[cacheKey]);
6082
+ if (!requestCache[cacheKey]) {
6083
+ console.log('iconUrl(iconsPath(), name, type)', iconUrl(iconsPath(), name, type));
6084
+ requestCache[cacheKey] = fetch(iconUrl(iconsPath(), name, type)).then(resp => {
6085
+ if (resp.status === 200) {
6086
+ return resp.text();
6087
+ }
6088
+ else {
6089
+ throw new Error("Gov Icon doesn't exists");
6090
+ }
6091
+ });
6092
+ }
6093
+ const path = await requestCache[cacheKey];
6094
+ iconCache[cacheKey] = path;
6095
+ return path;
6096
+ }
6097
+
6098
+ const setCookie = (name, value, days) => {
6099
+ if (!isWindow) {
6100
+ return;
6101
+ }
6102
+ let expires = "";
6103
+ if (days) {
6104
+ const date = new Date();
6105
+ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
6106
+ expires = "; expires=" + date.toUTCString();
6107
+ }
6108
+ document.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;
6109
+ };
6110
+ const getCookie = (name) => {
6111
+ if (!isWindow) {
6112
+ return null;
6113
+ }
6114
+ const nameEQ = name + "=";
6115
+ const cookies = document.cookie.split(';');
6116
+ for (let i = 0; i < cookies.length; i++) {
6117
+ let cookie = cookies[i].trim();
6118
+ if (cookie.startsWith(nameEQ)) {
6119
+ return decodeURIComponent(cookie.substring(nameEQ.length));
6120
+ }
6121
+ }
6122
+ return null;
6123
+ };
6124
+ const isValidSVG = (svgContent) => {
6125
+ try {
6126
+ const parser = new DOMParser();
6127
+ const doc = parser.parseFromString(svgContent, "image/svg+xml");
6128
+ const parseError = doc.querySelector("parsererror");
6129
+ if (parseError) {
6130
+ return false;
6131
+ }
6132
+ const svgElement = doc.documentElement;
6133
+ if (svgElement.tagName.toLowerCase() !== "svg") {
6134
+ return false;
6135
+ }
6136
+ return true;
6137
+ }
6138
+ catch (error) {
6139
+ return false;
6140
+ }
6141
+ };
6142
+
6046
6143
  class GovIcon {
6047
6144
  constructor(hostRef) {
6048
6145
  registerInstance(this, hostRef);
@@ -6050,13 +6147,89 @@ class GovIcon {
6050
6147
  this.color = undefined;
6051
6148
  this.name = null;
6052
6149
  this.type = "components";
6053
- console.log('GovIcon constructor');
6150
+ this.visible = false;
6151
+ this.error = false;
6152
+ console.log('GovIcon');
6054
6153
  this.h = govHost(this.host);
6055
6154
  }
6155
+ validateSize(newValue) {
6156
+ validateProp(Sizes, newValue, IconClass.root);
6157
+ }
6158
+ validateColor(newValue) {
6159
+ validateProp(IconColors, newValue, IconClass.root);
6160
+ }
6161
+ watchError(newValue) {
6162
+ console.log('error', newValue);
6163
+ }
6164
+ async loadIconPathData() {
6165
+ const { name, visible } = this;
6166
+ console.log('name, visible', name, visible);
6167
+ console.log('Build.isBrowser', Build.isBrowser);
6168
+ {
6169
+ console.log('return');
6170
+ return;
6171
+ }
6172
+ }
6173
+ connectedCallback() {
6174
+ console.log('connectedCallback icon', this.name);
6175
+ console.log('iconsLazyLoad()', iconsLazyLoad());
6176
+ if (iconsLazyLoad()) {
6177
+ this.visible = true;
6178
+ this.loadIconPathData().finally();
6179
+ }
6180
+ else {
6181
+ this.waitUntilVisible(async () => {
6182
+ this.visible = true;
6183
+ await this.loadIconPathData();
6184
+ });
6185
+ }
6186
+ }
6187
+ disconnectedCallback() {
6188
+ console.log('disconnectedCallback');
6189
+ if (this.intersectionObserver) {
6190
+ this.intersectionObserver.disconnect();
6191
+ this.intersectionObserver = null;
6192
+ }
6193
+ }
6194
+ async componentWillLoad() {
6195
+ console.log('componentWillLoad');
6196
+ this.validateSize(this.size);
6197
+ this.validateColor(this.color);
6198
+ await this.loadIconPathData();
6199
+ }
6200
+ waitUntilVisible(callback) {
6201
+ {
6202
+ callback();
6203
+ return;
6204
+ }
6205
+ }
6206
+ async loadIcon() {
6207
+ try {
6208
+ const { name, type } = this;
6209
+ console.log('loadIcon -> name, type', name, type);
6210
+ const data = await fetchIcon({ name, type });
6211
+ const isValid = isValidSVG(data);
6212
+ this.host.innerHTML = isValid ? data : null;
6213
+ }
6214
+ catch (e) {
6215
+ this.host.innerHTML = '';
6216
+ this.error = true;
6217
+ }
6218
+ }
6056
6219
  render() {
6057
- return (hAsync(Host, { key: 'd67f8522556dd6bc146746686df41951a74944a4', class: this.h.classes(IconClass.root), size: this.size, color: this.color }, "Icc"));
6220
+ if (this.error) {
6221
+ return null;
6222
+ }
6223
+ return (hAsync(Host, { class: this.h.classes(IconClass.root), size: this.size, color: this.color }));
6058
6224
  }
6225
+ static get assetsDirs() { return ["assets"]; }
6059
6226
  get host() { return getElement(this); }
6227
+ static get watchers() { return {
6228
+ "size": ["validateSize"],
6229
+ "color": ["validateColor"],
6230
+ "error": ["watchError"],
6231
+ "name": ["loadIconPathData"]
6232
+ }; }
6060
6233
  static get cmpMeta() { return {
6061
6234
  "$flags$": 0,
6062
6235
  "$tagName$": "gov-icon",
@@ -6064,7 +6237,9 @@ class GovIcon {
6064
6237
  "size": [513],
6065
6238
  "color": [513],
6066
6239
  "name": [513],
6067
- "type": [513]
6240
+ "type": [513],
6241
+ "visible": [32],
6242
+ "error": [32]
6068
6243
  },
6069
6244
  "$listeners$": undefined,
6070
6245
  "$lazyBundleId$": "-",
@@ -6121,8 +6296,8 @@ class GovInfobar {
6121
6296
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
6122
6297
  }
6123
6298
  render() {
6124
- const closeButton = (hAsync("gov-button", { key: '03f7921b0eef199be48f021a23f431cfb116d001', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, hAsync("gov-icon", { key: '5b8385ff70a5ae33032451d56e1d1a2e4938656e', name: "x-lg", type: "components" })));
6125
- return (hAsync(Host, { key: 'cb9dbd10b36253597b3190b5ec6558761cf32ffb', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, hAsync("section", Object.assign({ key: '301e4d6b31069183e7a84015bebe0ca9ffc0c667', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), hAsync("slot", { key: 'a0cb4376440cc034c501dcb41f0f8912e6331a0a', name: "icon" }), hAsync("div", { key: '99f1c4dbf739de828c10277e83a3c94e9aaf68bd', class: InfobarClass.content }, this.h.hasSlot('headline') ? (hAsync(Fragment, null, hAsync("div", { class: InfobarClass.headline }, hAsync("slot", { name: "headline" }), hAsync("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, hAsync("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), hAsync("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, hAsync("slot", null)))) : (hAsync("slot", null))), this.closable && closeButton)));
6299
+ const closeButton = (hAsync("gov-button", { key: '2d0597a56f6edb97e7feff654ba98885fa48033a', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, hAsync("gov-icon", { key: 'c17ba542b02a4910a136eec6cb4556d1857dffb2', name: "x-lg", type: "components" })));
6300
+ return (hAsync(Host, { key: 'd71d1b8ffe158de90f3fb520bd996a8246988d3d', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, hAsync("section", Object.assign({ key: '12cce82faa13fa39135fe92b0ab61bc2b01fa083', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), hAsync("slot", { key: 'bc48d4e5dfad03cd9c54054225a4c3db0ec09cd9', name: "icon" }), hAsync("div", { key: '70422e59cb69504d1aca5d45b9f9700b35b344f0', class: InfobarClass.content }, this.h.hasSlot('headline') ? (hAsync(Fragment, null, hAsync("div", { class: InfobarClass.headline }, hAsync("slot", { name: "headline" }), hAsync("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, hAsync("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down', type: "components" }))), hAsync("div", { hidden: !this.toggleContent, "aria-hidden": toBoolAttr(this.toggleContent) }, hAsync("slot", null)))) : (hAsync("slot", null))), this.closable && closeButton)));
6126
6301
  }
6127
6302
  onCloseHandler(e) {
6128
6303
  this.govClose.emit({
@@ -6191,7 +6366,7 @@ class GovLayout {
6191
6366
  return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
6192
6367
  }
6193
6368
  render() {
6194
- return (hAsync(Host, { key: '0797feef52b833ead99b61d5aa78c0dbc4f5b5b7', type: this.type, class: this.h.classes(LayoutClass.root) }, hAsync("section", { key: 'aab90b8796879b296ae09f3a7975e8931adacea8', class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, hAsync("slot", { key: 'ac79827788dfac2c3e2cfb57671a4b9422d31d7b' }))));
6369
+ return (hAsync(Host, { key: 'c35fc39e07229363bdf36be5856165e7e8eb7985', type: this.type, class: this.h.classes(LayoutClass.root) }, hAsync("section", { key: 'dc50cf9cba8bd4e879291fddfbd41955f2d10330', class: this.typeClass(LayoutClass.section, this.type, this.variant, this.inverse) }, hAsync("slot", { key: '017a329c119529d3893e187b6a8bbccfbbc76679' }))));
6195
6370
  }
6196
6371
  get host() { return getElement(this); }
6197
6372
  static get cmpMeta() { return {
@@ -6214,7 +6389,7 @@ class GovLayoutColumn {
6214
6389
  this.h = govHost(this.host);
6215
6390
  }
6216
6391
  render() {
6217
- return (hAsync(Host, { key: '6d327408b450774b24d976e4450378d3cb41fc99', class: this.h.classes(LayoutColumnClass.root) }, hAsync("slot", { key: '8c73b3c0a3c5e1e4a79205bc7631ae8579f38643' })));
6392
+ return (hAsync(Host, { key: 'ebef4ca76b1308a566c862b5a49eecf1eb3fce99', class: this.h.classes(LayoutColumnClass.root) }, hAsync("slot", { key: 'aaeefeb1a56b294d91b1327fd52eb16486cfb918' })));
6218
6393
  }
6219
6394
  get host() { return getElement(this); }
6220
6395
  static get cmpMeta() { return {
@@ -6260,7 +6435,7 @@ class GovLifecycle {
6260
6435
  console.log('componentDidUpdate', this.uniqueId);
6261
6436
  }
6262
6437
  render() {
6263
- return (hAsync(Host, { key: '914b3fa860f16bb35d1219f9d758cc7c0c51ca1a', identifier: this.uniqueId }, hAsync("span", { key: 'ccd8f0d9c97e53e958d0db4452d12c66fc33dd7a' }, "lifecycle ", this.uniqueId)));
6438
+ return (hAsync(Host, { key: '506eabaae01ae888fa838c10572e55bbe6fb7015', identifier: this.uniqueId }, hAsync("span", { key: '7604a29214fdffb1a470d83d7db37a583e5072ed' }, "lifecycle ", this.uniqueId)));
6264
6439
  }
6265
6440
  static get cmpMeta() { return {
6266
6441
  "$flags$": 0,
@@ -6299,7 +6474,7 @@ class GovLink {
6299
6474
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
6300
6475
  }
6301
6476
  render() {
6302
- return (hAsync(Host, { key: '3555b4e5b485f3928dba84bf929d3d22d0e5d4ae', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, hAsync("a", Object.assign({ key: '4844af47b5a20f84b7ea81812eede0d0361208e8', class: "element", href: this.href, target: this.target }, this.inheritedAttributes), hAsync("slot", { key: '4a77215c37a5807be36a996ab250b52b4eaac64c', name: "icon-start" }), hAsync("slot", { key: '1f10e44babae3c7cfb702ca61b8f9c5dc0cbe999' }), this.external ? hAsync("gov-icon", { name: "box-arrow-up-right", type: "components" }) : hAsync("slot", { name: "icon-end" }))));
6477
+ return (hAsync(Host, { key: '233af48c179501fe03ee2e5931806e1955913b59', class: this.h.classes(LinkClass.root), size: this.size, href: this.href, external: this.external }, hAsync("a", Object.assign({ key: '679067805205d76500979620b1ef4405139bb339', class: "element", href: this.href, target: this.target }, this.inheritedAttributes), hAsync("slot", { key: 'd24c4ab99451f317a453c8131bd0506606322553', name: "icon-start" }), hAsync("slot", { key: '276923f48cdc13985115e8d4e8860a2fb0c692e2' }), this.external ? hAsync("gov-icon", { name: "box-arrow-up-right", type: "components" }) : hAsync("slot", { name: "icon-end" }))));
6303
6478
  }
6304
6479
  get host() { return getElement(this); }
6305
6480
  static get watchers() { return {
@@ -6341,7 +6516,7 @@ class GovLoading {
6341
6516
  this.validateSize(this.size);
6342
6517
  }
6343
6518
  render() {
6344
- return (hAsync(Host, { key: 'c898509b3ef6060aaf7fe430738f8b40ae37810f', class: this.h.classes(LoadingClass.root), size: this.size }, hAsync("div", { key: '2dcb83c719ba81284fe78c1c30a12c4630571712', class: LoadingClass.content }, hAsync("gov-icon", { key: '9e499b414ceb2b601b5f7f093f403e4317fbebec', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), hAsync("slot", { key: '638d2b827845d5ca7b6ac9dc4ebb27e790dc710e' })), hAsync("gov-backdrop", { key: '1124baa1e77cf732888acdd3938d5b3661514b6d', inverse: true })));
6519
+ return (hAsync(Host, { key: '4c33339523674f2f2415dfb326131858de9eecf9', class: this.h.classes(LoadingClass.root), size: this.size }, hAsync("div", { key: '8c25628dd3072fd89665ccfedb9596383181b13d', class: LoadingClass.content }, hAsync("gov-icon", { key: 'a9969874350b5316c61a94b12d41a0130eeded0f', class: prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader", type: "components" }), hAsync("slot", { key: '14c716ecc352a0d947a6e3d932d2ab9075dedb97' })), hAsync("gov-backdrop", { key: '507610e5a61b34be2166fb4a30539a134dc1b262', inverse: true })));
6345
6520
  }
6346
6521
  get host() { return getElement(this); }
6347
6522
  static get watchers() { return {
@@ -6381,7 +6556,7 @@ class GovMessage {
6381
6556
  validateProp(Colors, newValue, MessageClass.root);
6382
6557
  }
6383
6558
  render() {
6384
- return (hAsync(Host, { key: '21d5bfd1df1e7e4f4a9997d3ac530c5782f8781a', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (hAsync("slot", { key: 'a05f13714529add991bd5a3c54e3ba28c00568b3', name: "icon" })), hAsync("div", { key: '9955a18a98e405947bc50fb233c9506038336300', class: MessageClass.content }, hAsync("slot", { key: '9c95c386a0747b36115cfd60d6719b7f738006de' }))));
6559
+ return (hAsync(Host, { key: 'b9e06c8f94940edf9d2c60119c35ec32baa23fc9', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (hAsync("slot", { key: 'd478f414de8eaa276cc867ae5bb325c1090b08ac', name: "icon" })), hAsync("div", { key: 'd5a113ca4061b445c583fb1b4f22fff594570b1e', class: MessageClass.content }, hAsync("slot", { key: 'e9be2f4ff3603c5f77d46e042455174e6ccfb7be' }))));
6385
6560
  }
6386
6561
  get host() { return getElement(this); }
6387
6562
  static get watchers() { return {
@@ -6705,7 +6880,7 @@ class GovSkeleton {
6705
6880
  return Object.assign({}, dimenssionsStyles);
6706
6881
  }
6707
6882
  render() {
6708
- return (hAsync(Host, Object.assign({ key: '881e753455535f18553d6ff8abfc3e2fab0f158e', size: this.size, color: this.color, class: {
6883
+ return (hAsync(Host, Object.assign({ key: '175dad78f57ee2e44fe3097e0595f59254e1003b', size: this.size, color: this.color, class: {
6709
6884
  [SkeletonClass.root]: true,
6710
6885
  circle: this.shape === "circle",
6711
6886
  line: this.shape === "line",
@@ -6768,7 +6943,7 @@ class GovSpacer {
6768
6943
  this.validateBreakpoint(this.breakpoint);
6769
6944
  }
6770
6945
  render() {
6771
- return hAsync(Host, { key: 'e42a12db071b1b5224b47f3655fb58e20ee8c611', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
6946
+ return hAsync(Host, { key: '23aedb7f3b112a356319aba076eedf9a4743e25b', class: this.h.classes(SpacerClass.root), size: this.size, breakpoint: this.breakpoint });
6772
6947
  }
6773
6948
  get host() { return getElement(this); }
6774
6949
  static get watchers() { return {
@@ -6830,7 +7005,7 @@ class GovStepper {
6830
7005
  this.hydrated = true;
6831
7006
  }
6832
7007
  render() {
6833
- return (hAsync(Host, { key: '7f4c6fb4087d7a5dbe61a45d6b2818d4242c6340', class: this.h.classes(StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, hAsync("slot", { key: 'dc925a52989ea99d546d492762e3c902e2b8072e' })));
7008
+ return (hAsync(Host, { key: '0815470dbe86e888ab922139e6f02347f89f4700', class: this.h.classes(StepperClass.root), role: "list", size: this.size, hydrated: this.hydrated }, hAsync("slot", { key: '2585c79a48236a8c2d333a437beb4d7f1d9d9d6c' })));
6834
7009
  }
6835
7010
  get host() { return getElement(this); }
6836
7011
  static get watchers() { return {
@@ -6872,7 +7047,7 @@ class GovStepperItem {
6872
7047
  render() {
6873
7048
  const triggerId = this.identifier || this.triggerId;
6874
7049
  const contentId = this.contentId;
6875
- return (hAsync(Host, { key: 'fc00ba7e0c3be93e6a169bdb03e1e5c6c5853572', id: triggerId, class: this.h.classes(StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, this.h.hasSlot('prefix') && (hAsync("span", { key: '8a6bc5466c813daed63d9bbe79cdff140c6efe0d', class: StepperItemClass.prefix }, hAsync("slot", { key: '91113b50c14f4483bb5e105d3f9edeededf4e012', name: "prefix" }))), hAsync("div", { key: '3fb2989980a0ae0e5dea17acf6cebfff7cdd3e9a' }, hAsync("span", { key: '62ab2a21f486c91574fdc727a11a7f799ee502ab', class: StepperItemClass.headline }, hAsync("slot", { key: '78ac018eb5041a6c41f929b6d94dbd9dcb87ee66', name: "headline" })), hAsync("slot", { key: '9d45b3bc137a55f6e54f453c82bde7ce39840cd0', name: "annotation" }), this.h.hasSlot('content') && (hAsync("div", { key: 'b845c4314ceac232f624906c71648e2e10fe7b98', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, hAsync("slot", { key: '3571a4cb451f1d64497b31ebd3db6618ba76bdc6', name: "content" }))))));
7050
+ return (hAsync(Host, { key: 'c24400b8ee5917005e6e3a21f47024c7ebad2960', id: triggerId, class: this.h.classes(StepperItemClass.root), color: this.color, role: "listitem", hydrated: this.hydrated }, this.h.hasSlot('prefix') && (hAsync("span", { key: '010401daa60b44eed322de007fdd6e4ca035ff8d', class: StepperItemClass.prefix }, hAsync("slot", { key: '27287e54365c7e72e01dd21f8d07f7144dc03f3c', name: "prefix" }))), hAsync("div", { key: 'b50e23ee80b270bb5bb781c46e2cf2de73cad1bb' }, hAsync("span", { key: '84500822ca2e529bff5e5cf4eb7ac7c9f0fc9d97', class: StepperItemClass.headline }, hAsync("slot", { key: '18410e07be87715a96540789a82403bfab45e55c', name: "headline" })), hAsync("slot", { key: 'dd2c20b9f07d2bcbf4223eca8de0d7592d178e86', name: "annotation" }), this.h.hasSlot('content') && (hAsync("div", { key: 'cd34d17b5a14816dd91ee84f91a14217952bcfe5', class: StepperItemClass.content, id: contentId, "aria-labelledby": triggerId, role: "tabpanel" }, hAsync("slot", { key: 'c90f411f8d63c6381f55a0e6ac819369a9bfd2e5', name: "content" }))))));
6876
7051
  }
6877
7052
  get host() { return getElement(this); }
6878
7053
  static get watchers() { return {
@@ -7023,7 +7198,7 @@ class GovTabs {
7023
7198
  });
7024
7199
  }
7025
7200
  render() {
7026
- return (hAsync(Host, { key: '1fffeff827b0d4944bf701c3a838eebd9666abcb', class: this.h.classes(TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, hAsync("div", Object.assign({ key: '3be472d6bc3d111de4b73f1c6e6a89d5d7e92110', class: TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), hAsync("ul", { key: 'cc7108c86e22104094ef8eb6d1430a0a0abe11db', class: TabsClass.list }, this.controllers.map(control => (hAsync("li", { class: TabsClass.item }, this.type == "text" ? (hAsync("button", { class: TabsClass.btn, id: control.triggerIdentifier, role: "tab", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": toBoolAttr(control.disabled), "aria-selected": toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (hAsync("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (hAsync("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (hAsync("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (hAsync("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (hAsync("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), hAsync("slot", { key: '6e8295947f0555d54060a29fd8f5b7c607be4c20' })));
7201
+ return (hAsync(Host, { key: '4efcbedcc355a74456cc899bc48c7aaf8c604c12', class: this.h.classes(TabsClass.root), size: this.size, color: this.color, type: this.type, direction: this.direction, onKeyDown: this.onKeydownHandler.bind(this) }, hAsync("div", Object.assign({ key: 'a64d1a7cadd5950ebc687c3f3d741ea0a59a3684', class: TabsClass.tabs, role: "tablist" }, this.inheritedAttributes), hAsync("ul", { key: 'adab5148c97b041e11f3e7d11a4d87492df5320a', class: TabsClass.list }, this.controllers.map(control => (hAsync("li", { class: TabsClass.item }, this.type == "text" ? (hAsync("button", { class: TabsClass.btn, id: control.triggerIdentifier, role: "tab", onClick: () => this.onSelectHandler(control), disabled: control.disabled, "aria-disabled": toBoolAttr(control.disabled), "aria-selected": toBoolAttr(control.active), "aria-controls": control.contentIdentifier, tabindex: control.active && !control.disabled ? 0 : -1, ref: el => (this.triggerRefs[control.triggerIdentifier] = el) }, control.iconStart ? (hAsync("gov-icon", { name: control.iconStart.name, type: control.iconStart.type })) : null, control.label, control.iconEnd ? (hAsync("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type })) : null)) : (hAsync("gov-chip", { role: "tab", tag: 'button', identifier: control.triggerIdentifier, "aria-selected": booleanString(control.active), "aria-controls": control.contentIdentifier, focusable: control.active, disabled: control.disabled, color: this.color, size: this.size === "xs" ? "xs" : (this.size === "s" ? "s" : "m"), type: control.active ? "solid" : "outlined", ref: el => (this.triggerRefs[control.triggerIdentifier] = el), "on-gov-click": () => this.onSelectHandler(control) }, control.iconStart ? (hAsync("gov-icon", { name: control.iconStart.name, type: control.iconStart.type, slot: "icon-start" })) : null, control.label, control.iconEnd ? (hAsync("gov-icon", { name: control.iconEnd.name, type: control.iconEnd.type, slot: "icon-end" })) : null))))))), hAsync("slot", { key: '2a3720ce9449d62ecd1d58bac806bf356d37375a' })));
7027
7202
  }
7028
7203
  getCurrentTab() {
7029
7204
  return this.controllers.find(control => control.active) || null;
@@ -7156,7 +7331,7 @@ class GovTabsItem {
7156
7331
  }
7157
7332
  }
7158
7333
  render() {
7159
- return (hAsync(Host, { key: '20bb9dd4a6cf12190de8518c7cadc794c82c896b', class: this.h.classes(TabsItemClass.root), default: this.default }, hAsync("div", { key: 'fd9a14dc61b5297ecd9392cb605f89d459723c27', class: TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": toBoolAttrIfDefined(!this.isActive) }, hAsync("slot", { key: '2be087e8c8641b14bf4a3e34784ca1f182b34850' }))));
7334
+ return (hAsync(Host, { key: '89b01b0d025a89f89085dba24db6b8fadcd97e68', class: this.h.classes(TabsItemClass.root), default: this.default }, hAsync("div", { key: '8868371d0da63c1727c8b3a55b930a4d0ce30a3c', class: TabsItemClass.inner, role: "tabpanel", id: this.identifier || this.contentId, hidden: !this.isActive, "aria-labelledby": this.triggerIdentifier || this.triggerId, "aria-hidden": toBoolAttrIfDefined(!this.isActive) }, hAsync("slot", { key: '0d47bea8c416b1c57aac006f9eea9101ade9427d' }))));
7160
7335
  }
7161
7336
  /**
7162
7337
  * Returns a unique tab content identifier
@@ -7244,7 +7419,7 @@ class GovTag {
7244
7419
  render() {
7245
7420
  const iconStart = prepareIconFormat(this.iconStart);
7246
7421
  const iconEnd = prepareIconFormat(this.iconEnd);
7247
- return (hAsync(Host, { key: '6e4203592cd24134cb9e1a187dbecd6cc70d20bb', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, hAsync("span", { key: 'a58f1a4fd78d57f8e4a89d1c325ea0f24347ccaf', class: "element" }, hAsync("slot", { key: 'bc52f9aa456b154b67b97903babe69c8b7731f50', name: "icon-start" }, iconStart && hAsync("gov-icon", { key: 'ed492a9c4746766d8ac7bf810da994147d189133', type: iconStart.type, name: iconStart.name })), hAsync("slot", { key: '52e2c10f8048aa0168dc7daf44392f19dd118e43' }), hAsync("slot", { key: 'ccbd781c7a0e8fd2e02725cebc5df48e8e84b6ea', name: "icon-end" }, iconEnd && hAsync("gov-icon", { key: 'cce60e6a25e14d42281111979b7689d03ea264e1', type: iconEnd.type, name: iconEnd.name })))));
7422
+ return (hAsync(Host, { key: '8865709f2568a754160000138f413f352409e248', class: this.h.classes(TagClass.root), color: this.color, size: this.size, type: this.type }, hAsync("span", { key: '4ae6dc1d60a207510de61c2391af9eb268dd3588', class: "element" }, hAsync("slot", { key: 'f08057eb346b918d1be45ad7561a71bac54237aa', name: "icon-start" }, iconStart && hAsync("gov-icon", { key: '37554fce04335c45bb724efeb5e7701513336b7b', type: iconStart.type, name: iconStart.name })), hAsync("slot", { key: 'b66970bf42b9fd9217cb2e3a03c2f47c608b14a5' }), hAsync("slot", { key: '85bf0010dac55b808bba5a442d977e8538f93d3a', name: "icon-end" }, iconEnd && hAsync("gov-icon", { key: '70bf541bac6a69871618cb520c7008099aa6f341', type: iconEnd.type, name: iconEnd.name })))));
7248
7423
  }
7249
7424
  get host() { return getElement(this); }
7250
7425
  static get watchers() { return {
@@ -7284,33 +7459,6 @@ var ThemeList;
7284
7459
  ThemeList["dark"] = "dark";
7285
7460
  })(ThemeList || (ThemeList = {}));
7286
7461
 
7287
- const setCookie = (name, value, days) => {
7288
- if (!isWindow) {
7289
- return;
7290
- }
7291
- let expires = "";
7292
- if (days) {
7293
- const date = new Date();
7294
- date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
7295
- expires = "; expires=" + date.toUTCString();
7296
- }
7297
- document.cookie = `${name}=${encodeURIComponent(value)}${expires}; path=/`;
7298
- };
7299
- const getCookie = (name) => {
7300
- if (!isWindow) {
7301
- return null;
7302
- }
7303
- const nameEQ = name + "=";
7304
- const cookies = document.cookie.split(';');
7305
- for (let i = 0; i < cookies.length; i++) {
7306
- let cookie = cookies[i].trim();
7307
- if (cookie.startsWith(nameEQ)) {
7308
- return decodeURIComponent(cookie.substring(nameEQ.length));
7309
- }
7310
- }
7311
- return null;
7312
- };
7313
-
7314
7462
  class GovThemeSwitch {
7315
7463
  constructor(hostRef) {
7316
7464
  registerInstance(this, hostRef);
@@ -7373,7 +7521,7 @@ class GovThemeSwitch {
7373
7521
  if (this.theme === ThemeList.auto) {
7374
7522
  isDark = this.isSystemPrefersColorDark;
7375
7523
  }
7376
- return (hAsync(Host, { key: '51cbe413c4cd97f82ae8e34376cad4cb59c3a41d', class: this.h.classes(ThemeSwitchClass.root), theme: isDark ? ThemeList.dark : ThemeList.light, size: this.size }, hAsync("button", { key: '8f7dbeec9ff6617c4953c4a0582b374baf7ba8c3', onClick: () => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark), "aria-current": this.theme, "aria-label": isDark ? this.ariaLabelDark : this.ariaLabelLight }, hAsync("span", { key: '64f9a96872b50f33483721541178e0d4c553d834' }, hAsync("span", { key: 'f363538d18d9a4419f1ef15b1172c941277372a3', class: ThemeSwitchClass.indicator }, ThemeList.light && hAsync("gov-icon", { key: '762947b5442313672e7ace3ed59523404f548b5b', name: "sun", class: ThemeSwitchClass.iconLight, type: "components" }), ThemeList.dark && hAsync("gov-icon", { key: '371ace4006ae511225583323682b08c8bc154f61', name: "moon", class: ThemeSwitchClass.iconDark, type: "components" })), this.displayLabel && (isDark ? this.labelDark : this.labelLight)))));
7524
+ return (hAsync(Host, { key: '784ed0513ea1436bb754dc82691646422789783b', class: this.h.classes(ThemeSwitchClass.root), theme: isDark ? ThemeList.dark : ThemeList.light, size: this.size }, hAsync("button", { key: 'd4abc155a8ae8f07d0a49c378e295c3ab57318d4', onClick: () => this.setThemeState(isDark ? ThemeList.light : ThemeList.dark), "aria-current": this.theme, "aria-label": isDark ? this.ariaLabelDark : this.ariaLabelLight }, hAsync("span", { key: '7f713875d5618acc919702cdc60e9db58dfb9db5' }, hAsync("span", { key: '0b57c0153047ef292b6bdc43b49e5a1a9cdc17e1', class: ThemeSwitchClass.indicator }, ThemeList.light && hAsync("gov-icon", { key: 'ae2c751435a2bc9c1e9f8dfa4ca52e13943ada9b', name: "sun", class: ThemeSwitchClass.iconLight, type: "components" }), ThemeList.dark && hAsync("gov-icon", { key: '7a4ee602a37742ab94dcee47a7c4970d5dce5bb6', name: "moon", class: ThemeSwitchClass.iconDark, type: "components" })), this.displayLabel && (isDark ? this.labelDark : this.labelLight)))));
7377
7525
  }
7378
7526
  get host() { return getElement(this); }
7379
7527
  static get watchers() { return {
@@ -7420,7 +7568,7 @@ class GovTile {
7420
7568
  this.h = govHost(this.host);
7421
7569
  }
7422
7570
  render() {
7423
- return (hAsync(Host, { key: '84c41fa8adec27a169b9af69b9d7542bd86dcf36', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, hAsync("slot", { key: '7176b3b1da20e5ba92c87c32b48f850e141558f9', name: "icon" }), hAsync("div", { key: '614de838391b6e65368cdb58b5db81af5a344d21', class: TileClass.content }, hAsync("div", { key: 'f952461981e6a5f20172a6d0ad9d041a5f9d8171', class: TileClass.text }, hAsync("div", { key: 'fb411a7f50a8a0ecb6015a69fccb8b0832c5aed4', class: TileClass.title }, this.href ? (hAsync(Fragment$1, null, hAsync("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, hAsync("slot", { name: "title" })), hAsync("span", { class: TileClass.icon }, hAsync("gov-icon", { name: "chevron-right", type: "components" })))) : (hAsync("slot", { name: "title" }))), hAsync("div", { key: '555c1aff4029a9b62f8e53391da8e289d373e100', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, hAsync("slot", { key: 'e9310d039ca17a2a45dc9ef6a04c107dc6cf1bcd' }))), hAsync("slot", { key: 'e8c792e1682c30d5dcaf33798908ec06da7a8d1a', name: "button" }))));
7571
+ return (hAsync(Host, { key: 'c766f3d54f15e5a49a877fa2e67593d084f487f7', class: this.h.classes(TileClass.root), size: this.size, orientation: this.orientation, clickable: this.href ? true : null }, hAsync("slot", { key: 'd07b106d781fead65a124c82d11ebe991fddfece', name: "icon" }), hAsync("div", { key: 'eeee0397b4384a473f3782750d1e04f0c8c7894d', class: TileClass.content }, hAsync("div", { key: 'f4081902e55b964b1ebbdd43f7b189f83dce8690', class: TileClass.text }, hAsync("div", { key: '3bf8cf35db6f667de7c278786787e38b1392a5b2', class: TileClass.title }, this.href ? (hAsync(Fragment$1, null, hAsync("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, hAsync("slot", { name: "title" })), hAsync("span", { class: TileClass.icon }, hAsync("gov-icon", { name: "chevron-right", type: "components" })))) : (hAsync("slot", { name: "title" }))), hAsync("div", { key: '088f60531285a1457277352a011766f809d9280d', class: `${TileClass.annotation} ${this.href ? `${TileClass.annotation}--padding` : ''}` }, hAsync("slot", { key: '8d4a612e3aff054a60ec1030eb5a28903595ea6a' }))), hAsync("slot", { key: 'f7610d06a6d951b3a24f2e129342bb82c5e9d767', name: "button" }))));
7424
7572
  }
7425
7573
  /**
7426
7574
  * Returns a clickable element instance
@@ -7457,7 +7605,7 @@ class GovTiles {
7457
7605
  this.h = govHost(this.host);
7458
7606
  }
7459
7607
  render() {
7460
- return (hAsync(Host, { key: 'ecc964ac553f792318284779a8823eea7ae731f9', class: this.h.classes(TilesClass.root) }, hAsync("slot", { key: '609deafe9ff8cb61d5aa30b51b26e539cb5d3934' })));
7608
+ return (hAsync(Host, { key: '18eb380e2fe62b54a90c5c758c62c985107c98d4', class: this.h.classes(TilesClass.root) }, hAsync("slot", { key: '9746ede80d0daa8776208afb5cef44b7adb0d7fc' })));
7461
7609
  }
7462
7610
  get host() { return getElement(this); }
7463
7611
  static get cmpMeta() { return {
@@ -7536,7 +7684,7 @@ class GovToast {
7536
7684
  }
7537
7685
  }
7538
7686
  render() {
7539
- return (hAsync(Host, { key: '9d2e214ed4c883f0ac90eb6d580ed95cb55e42cd', class: this.h.classes(ToastClass.root), "data-toast-id": this.toastId, gravity: this.gravity, position: this.position, color: this.color, type: this.type, style: { "--toast-duration": this.time + "ms" } }, this.h.hasSlot("icon") && (hAsync("span", { key: '54292ad196806932ab9ae44bfc33187f4154e616', class: ToastClass.icon }, hAsync("slot", { key: '9545c651a46a7bb55990e9327e8fbe4fe126954f', name: "icon" }))), hAsync("div", Object.assign({ key: 'daed3fcbd83eec05979a9e00e2f983d5c6b1b538', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), hAsync("slot", { key: 'd3f78c0d713d56ef32b0dece9553e258f0ef4ef4' })), hAsync("gov-button", { key: 'dad799261c83b387c0590fd0ad13bdad584ee6b4', size: "s", "aria-label": this.accessibleCloseLabel, color: this.isBold ? this.color : "neutral", type: "base", "on-gov-click": this.onCloseHandler.bind(this), class: ToastClass.close }, this.closeLabel ? this.closeLabel : hAsync("gov-icon", { name: "x-lg", type: "components" })), hAsync("div", { key: 'e13b568ada5e34f00c405d359665cd9d0af5ff89', class: ToastClass.timer })));
7687
+ return (hAsync(Host, { key: '632972ed59aac0d696428d6f32e6c99615ccf687', class: this.h.classes(ToastClass.root), "data-toast-id": this.toastId, gravity: this.gravity, position: this.position, color: this.color, type: this.type, style: { "--toast-duration": this.time + "ms" } }, this.h.hasSlot("icon") && (hAsync("span", { key: 'da93a05f1976eeb4e356160fd0daea409b836a05', class: ToastClass.icon }, hAsync("slot", { key: 'd374f5dea570b27643d960e65d0d5b2c710cb2b4', name: "icon" }))), hAsync("div", Object.assign({ key: '1680aff627c809348ae7812ab72a34dbad33a368', class: ToastClass.content }, this.inheritedAttributes, { "aria-live": "polite", role: "status" }), hAsync("slot", { key: '8208b697e9fbefd964a17c6bfdb06d3a5ff9d2f2' })), hAsync("gov-button", { key: '9f05e19a672f66c2203a5556370e12e2ce7819f7', size: "s", "aria-label": this.accessibleCloseLabel, color: this.isBold ? this.color : "neutral", type: "base", "on-gov-click": this.onCloseHandler.bind(this), class: ToastClass.close }, this.closeLabel ? this.closeLabel : hAsync("gov-icon", { name: "x-lg", type: "components" })), hAsync("div", { key: 'a954d22ce3a0e06e2d17aa14903dae7264d9e03c', class: ToastClass.timer })));
7540
7688
  }
7541
7689
  onCloseHandler() {
7542
7690
  this.govClose.emit(this.toastId);
@@ -7793,11 +7941,11 @@ class GovTooltip {
7793
7941
  }
7794
7942
  render() {
7795
7943
  var _a;
7796
- return (hAsync(Host, { key: '37b75e6feac97800345d4e93f7be840172712dd2', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, hAsync("span", { key: '0982a167f159aca0d39edc784ef50f13409fa29c', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
7944
+ return (hAsync(Host, { key: '2e96da1a9d7afd70abb4ffd2e979210cc179680e', id: this.tooltipId, class: this.h.classes(TooltipClass.root), position: this.position }, hAsync("span", { key: '9c9c06d716556faa56f5ba9a952ea867c5533b2b', role: 'button', tabindex: 0, onKeyPress: () => this.showTooltip(), onBlur: () => {
7797
7945
  if (this.persist === false) {
7798
7946
  this.hideTooltip();
7799
7947
  }
7800
- }, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, hAsync("slot", { key: '1b6f7bd6a704ac56941e464d401eebf9da4eafaf' }))));
7948
+ }, "aria-describedby": (_a = this.identifier) !== null && _a !== void 0 ? _a : this.tooltipContentId }, hAsync("slot", { key: '29549049c0bfbe311980aa6a630ff9eff8e35f40' }))));
7801
7949
  }
7802
7950
  /**
7803
7951
  * Showing the modal
@@ -7868,7 +8016,7 @@ class GovTooltipContent {
7868
8016
  }
7869
8017
  }
7870
8018
  render() {
7871
- return (hAsync(Host, { key: 'c47f590b5f8dffb0c0f1caa17978075fb64c3603', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, hAsync("slot", { key: '276690a83ede038b09f5e439495693b7215e4af7' }), this.persist ? (hAsync("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, hAsync("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
8019
+ return (hAsync(Host, { key: '965998f4788ddd5dffd01b53073a001023cd9037', class: TooltipContentClass.root, role: "tooltip", hidden: !this.isVisible, "aria-hidden": !toBoolAttr(this.isVisible), "is-visible": this.isVisible }, hAsync("slot", { key: 'fe9d1ee13a11077947492341836f8f25c1f8881f' }), this.persist ? (hAsync("gov-button", { "on-gov-click": this.hideContent.bind(this), color: this.color, size: this.size, type: "base" }, hAsync("gov-icon", { slot: "icon-start", name: "x-lg", type: "components" }))) : null));
7872
8020
  }
7873
8021
  get host() { return getElement(this); }
7874
8022
  static get watchers() { return {
@@ -7942,7 +8090,7 @@ class GovWizard {
7942
8090
  this.hydrated = true;
7943
8091
  }
7944
8092
  render() {
7945
- return (hAsync(Host, { key: 'fb6b400947dc4c7feddd5b83b3c167d611af0370', class: this.h.classes(WizardClass.root), role: "list", size: this.size, hydrated: this.hydrated }, hAsync("slot", { key: 'df2cb17a4c48813843ed5b3174a27b07e04b85b4' })));
8093
+ return (hAsync(Host, { key: 'd75ce2d5499cef41ac6b316f313b0c5c446d0b55', class: this.h.classes(WizardClass.root), role: "list", size: this.size, hydrated: this.hydrated }, hAsync("slot", { key: 'ea151639d058fa4e50427a893fa167969a453d39' })));
7946
8094
  }
7947
8095
  /**
7948
8096
  * Validate the WCAG attributes of the component
@@ -8004,8 +8152,8 @@ class GovWizardItem {
8004
8152
  render() {
8005
8153
  const triggerId = this.identifier || this.triggerId;
8006
8154
  const Tag = this.collapsible ? Tags.BUTTON : Tags.DIV;
8007
- const prefixSlot = this.h.hasSlot("prefix") && (hAsync("span", { key: '82b6be7faa5fdf29249eec96683ca3914a060dd7', class: WizardItemClass.prefix }, hAsync("slot", { key: '4aa4139f7ae8fa022c6f93b3f6fe508ee30e881e', name: "prefix" })));
8008
- return (hAsync(Host, { key: '70570aa0326bc056bdcada429a04f87b2e106051', class: this.h.classes(WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, hAsync("div", { key: 'ef0e103ec1535e155c12df999f5b64747c1167c2', class: WizardItemClass.header }, prefixSlot, this.collapsible ? (hAsync(Tag, { id: triggerId, class: this.h.classes(WizardItemClass.label), "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: (e) => {
8155
+ const prefixSlot = this.h.hasSlot("prefix") && (hAsync("span", { key: 'abdd15cfa834f393b29335ea2bda28cd1dfeef46', class: WizardItemClass.prefix }, hAsync("slot", { key: '123c495809091879ab3d985b9bcb4a22005e4b75', name: "prefix" })));
8156
+ return (hAsync(Host, { key: '463384ea408a20992bf6f30f142fce7146fabf53', class: this.h.classes(WizardItemClass.root), "is-expanded": this.isExpanded, color: this.color, size: this.size, role: "listitem", collapsible: this.collapsible, hydrated: this.hydrated }, hAsync("div", { key: '0b60621607cd8c48fe05fd1755f9f7b8514d425d', class: WizardItemClass.header }, prefixSlot, this.collapsible ? (hAsync(Tag, { id: triggerId, class: this.h.classes(WizardItemClass.label), "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: (e) => {
8009
8157
  e.preventDefault();
8010
8158
  e.stopPropagation();
8011
8159
  this.toggle();
@@ -1,6 +1,7 @@
1
1
  import { type IconColorType, IconSizesType } from "./constants";
2
2
  export declare class GovIcon {
3
3
  private h;
4
+ private intersectionObserver;
4
5
  constructor();
5
6
  host: HTMLGovIconElement;
6
7
  /**
@@ -19,5 +20,16 @@ export declare class GovIcon {
19
20
  * Type (folder) of icon
20
21
  */
21
22
  type: string;
23
+ private visible;
24
+ private error;
25
+ validateSize(newValue: string): void;
26
+ validateColor(newValue: string): void;
27
+ watchError(newValue: string): void;
28
+ private loadIconPathData;
29
+ connectedCallback(): void;
30
+ disconnectedCallback(): void;
31
+ componentWillLoad(): Promise<void>;
32
+ private waitUntilVisible;
33
+ private loadIcon;
22
34
  render(): any;
23
35
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gov-design-system-ce/components",
3
3
  "description": "This package includes Gov Design System Web Components and related utilities.",
4
4
  "author": "Zdeněk Vítek",
5
- "version": "4.1.3-BETA-5",
5
+ "version": "4.1.3-BETA-7",
6
6
  "license": "EUPL v1.2 Licensed",
7
7
  "main": "./dist/index.cjs.js",
8
8
  "unpkg": "./dist/core/core.esm.js",
@@ -1 +0,0 @@
1
- {"file":"gov.log-21ea2c96.js","mappings":";;;;MAYa,QAAQ,GAAG,OAAO,MAAM,KAAK,YAAW;AAErD,MAAM,iBAAiB,GAAG,CAAI,IAAY,KAA6B,QAAQ,IAAI,MAAM,IAAIA,cAAQ,CAAC,IAA2B,EAAE,MAAM,CAAC,CAAA;AAE1I,MAAM,MAAM,GAAG;IACd,MAAM,aAAa,GAAY;QAC9B,uBAAuB,EAAE,KAAK;QAC9B,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,KAAK;QACf,GAAG,EAAE,KAAK;QACV,SAAS,EAAE,eAAe;QAC1B,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI;KACxC,CAAA;IAED,MAAM,cAAc,GAAG,iBAAiB,CAAU,eAAe,CAAC,CAAA;IAClE,IAAI,cAAc,EAAE;QACnB,uCAAY,aAAa,GAAK,cAAc,EAAE;KAC9C;IAED,OAAO,aAAa,CAAA;AACrB,CAAC,CAAA;MAEY,uBAAuB,GAAG,MAA0C,MAAM,EAAE,CAAC,wBAAuB;AAC1G,MAAM,aAAa,GAAG,MAA6B,MAAM,EAAE,CAAC,UAAU,CAAA;AACtE,MAAM,WAAW,GAAG,MAA2B,MAAM,EAAE,CAAC,QAAQ,CAAA;AAChE,MAAM,MAAM,GAAG,MAAsB,MAAM,EAAE,CAAC,GAAG,CAAA;MAG3C,YAAY,GAAG,MAA+B,MAAM,EAAE,CAAC;;AClCpE,MAAM,cAAc,GAAgB,EAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAC,CAAA;AACpE,MAAM,WAAW,GAAgB,EAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAC,CAAA;AAGvD,MAAM,MAAM,GAAG,CAAC,OAAe,EAAE,SAAsB,WAAW,EAAE,IAAc;IACxF,MAAM,MAAM,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC,EAAE,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,kBAAkB,CAAC,CAAC,IAAI,CACzJ,GAAG,CACH,CAAA;IAED,IAAG,MAAM,EAAE,IAAI,aAAa,EAAE,IAAI,WAAW,EAAE,EAAE;QAChD,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;KAC3C;AACF,CAAC,CAAA;MAEY,aAAa,GAAG,CAAC,OAAe,EAAE,IAAc;IAC5D,IAAI,aAAa,EAAE,EAAE;QACpB,MAAM,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,CAAA;KACrC;AACF;;;;;;;","names":["property"],"sources":["../../../packages/core/src/helpers/Dom/win.ts","../../../packages/core/src/helpers/Log/gov.log.ts"],"sourcesContent":["import { property } from '../../utils/utils'\n\ninterface IConfig {\n\tcanValidateWcagOnRender: boolean\n\twarningLog: boolean\n\terrorLog: boolean\n\tlog: boolean\n\ticonsPath: string\n\ticonsLazyLoad: boolean\n\tdocumentNode: Document\n}\n\nexport const isWindow = typeof window !== \"undefined\"\n\nconst getWindowProperty = <T>(name: string): Partial<T> | undefined => isWindow && window && property(name as keyof typeof window, window)\n\nconst config = (): IConfig => {\n\tconst defaultConfig: IConfig = {\n\t\tcanValidateWcagOnRender: false,\n\t\twarningLog: false,\n\t\terrorLog: false,\n\t\tlog: false,\n\t\ticonsPath: '/assets/icons',\n\t\ticonsLazyLoad: true,\n\t\tdocumentNode: document ? document : null,\n\t}\n\n\tconst windowProperty = getWindowProperty<IConfig>('GOV_DS_CONFIG')\n\tif (windowProperty) {\n\t\treturn { ...defaultConfig, ...windowProperty }\n\t}\n\n\treturn defaultConfig\n}\n\nexport const canValidateWcagOnRender = (): IConfig['canValidateWcagOnRender'] => config().canValidateWcagOnRender\nexport const useWarningLog = (): IConfig['warningLog'] => config().warningLog\nexport const useErrorLog = (): IConfig['errorLog'] => config().errorLog\nexport const useLog = (): IConfig['log'] => config().log\nexport const iconsPath = (): IConfig['iconsPath'] => config().iconsPath\nexport const iconsLazyLoad = (): IConfig['iconsLazyLoad'] => config().iconsLazyLoad\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\n","import {useErrorLog, useLog, useWarningLog} from \"../Dom/win\";\n\ninterface ColorConfig {\n\tbg: string\n\ttext: string\n}\n\nconst WARNING_COLORS: ColorConfig = {bg: '#ecae1a', text: '#3b3b3b'}\nconst INFO_COLORS: ColorConfig = {bg: '#2362a2', text: '#fff'}\nconst ERROR_COLORS: ColorConfig = {bg: '#c52a3a', text: '#fff'}\n\nexport const govLog = (message: string, colors: ColorConfig = INFO_COLORS, args?: unknown): void => {\n\tconst styles = ['color: ' + colors.text, 'background: ' + colors.bg, 'font-size: 11px', 'padding: 2px 4px', 'border-radius: 3px', 'font-weight: 600'].join(\n\t\t';'\n\t)\n\n\tif(useLog() || useWarningLog() || useErrorLog()) {\n\t\tconsole.log('%cgov', styles, message, args)\n\t}\n}\n\nexport const govWarningLog = (message: string, args?: unknown): void => {\n\tif (useWarningLog()) {\n\t\tgovLog(message, WARNING_COLORS, args)\n\t}\n}\n\nexport const govErrorLog = (message: string, args?: unknown): void => {\n\tif (useErrorLog()) {\n\t\tgovLog(message, ERROR_COLORS, args)\n\t}\n}\n"],"version":3}