@gov-design-system-ce/components 0.0.36 → 0.0.38

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 (490) hide show
  1. package/dist/cjs/{constants-245999e7.js → constants-ff12205f.js} +1 -1
  2. package/dist/cjs/constants-ff12205f.js.map +1 -0
  3. package/dist/cjs/core.cjs.js +1 -1
  4. package/dist/cjs/{form-62c6a8c6.js → form-f68d13c6.js} +2 -2
  5. package/dist/cjs/form-f68d13c6.js.map +1 -0
  6. package/dist/cjs/gov-accordion.cjs.entry.js +2 -2
  7. package/dist/cjs/gov-alert.cjs.entry.js +2 -2
  8. package/dist/cjs/gov-alert.cjs.entry.js.map +1 -1
  9. package/dist/cjs/gov-app.cjs.entry.js +1122 -663
  10. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  11. package/dist/cjs/gov-attachments_3.cjs.entry.js +2 -2
  12. package/dist/cjs/gov-backdrop.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-badge.cjs.entry.js +2 -2
  14. package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +2 -2
  16. package/dist/cjs/gov-button.cjs.entry.js +4 -4
  17. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  18. package/dist/cjs/gov-card.cjs.entry.js +2 -2
  19. package/dist/cjs/gov-control-group.cjs.entry.js +42 -0
  20. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -0
  21. package/dist/cjs/gov-dropdown.cjs.entry.js +129 -0
  22. package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -0
  23. package/dist/cjs/gov-form-checkbox.cjs.entry.js +3 -3
  24. package/dist/cjs/gov-form-control.cjs.entry.js +35 -7
  25. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-form-file.cjs.entry.js +4 -4
  27. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-form-input.cjs.entry.js +6 -6
  29. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-form-label.cjs.entry.js +1 -1
  31. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-form-multi-select.cjs.entry.js +4 -4
  33. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-form-radio.cjs.entry.js +3 -3
  35. package/dist/cjs/gov-form-search.cjs.entry.js +5 -1
  36. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  37. package/dist/cjs/gov-form-select.cjs.entry.js +20 -10
  38. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  39. package/dist/cjs/gov-form-switch.cjs.entry.js +3 -3
  40. package/dist/cjs/gov-icon.cjs.entry.js +2 -2
  41. package/dist/cjs/gov-modal.cjs.entry.js +2 -2
  42. package/dist/cjs/gov-nav.cjs.entry.js +2 -2
  43. package/dist/cjs/gov-pagination.cjs.entry.js +2 -2
  44. package/dist/cjs/gov-prompt.cjs.entry.js +2 -2
  45. package/dist/cjs/gov-side-nav.cjs.entry.js +2 -2
  46. package/dist/cjs/gov-skeleton.cjs.entry.js +2 -2
  47. package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
  48. package/dist/cjs/gov-wizzard-item.cjs.entry.js +13 -15
  49. package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -1
  50. package/dist/cjs/gov-wizzard.cjs.entry.js +2 -2
  51. package/dist/cjs/index-29ac07f6.js +8 -0
  52. package/dist/cjs/loader.cjs.js +1 -1
  53. package/dist/cjs/{wcag-6efc0ab7.js → wcag-b0321f09.js} +2 -2
  54. package/dist/cjs/{wcag-6efc0ab7.js.map → wcag-b0321f09.js.map} +1 -1
  55. package/dist/cjs/{win-84bda0aa.js → win-53f637d4.js} +3 -2
  56. package/dist/cjs/win-53f637d4.js.map +1 -0
  57. package/dist/collection/collection-manifest.json +3 -1
  58. package/dist/collection/components/gov-accordion/gov-accordion-item.css +6 -0
  59. package/dist/collection/components/gov-accordion/gov-accordion.css +6 -0
  60. package/dist/collection/components/gov-alert/gov-alert.css +6 -0
  61. package/dist/collection/components/gov-alert/gov-alert.js.map +1 -1
  62. package/dist/collection/components/gov-app/gov-app.css +6 -0
  63. package/dist/collection/components/gov-app/gov-app.js +10 -8
  64. package/dist/collection/components/gov-app/gov-app.js.map +1 -1
  65. package/dist/collection/components/gov-attachments/gov-attachments-item.css +6 -0
  66. package/dist/collection/components/gov-attachments/gov-attachments.css +6 -0
  67. package/dist/collection/components/gov-backdrop/gov-backdrop.css +6 -0
  68. package/dist/collection/components/gov-badge/gov-badge.css +9 -3
  69. package/dist/collection/components/gov-badge/gov-badge.js +4 -4
  70. package/dist/collection/components/gov-badge/gov-badge.js.map +1 -1
  71. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +6 -0
  72. package/dist/collection/components/gov-button/{constants.js → default/constants.js} +3 -3
  73. package/dist/collection/components/gov-button/default/constants.js.map +1 -0
  74. package/dist/collection/components/gov-button/{gov-button.css → default/gov-button.css} +6 -3
  75. package/dist/collection/components/gov-button/{gov-button.js → default/gov-button.js} +7 -7
  76. package/dist/collection/components/gov-button/default/gov-button.js.map +1 -0
  77. package/dist/collection/components/gov-button/default/gov-button.types.js.map +1 -0
  78. package/dist/collection/components/gov-button/dropdown/constants.js +10 -0
  79. package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -0
  80. package/dist/collection/components/gov-button/dropdown/gov-dropdown.css +263 -0
  81. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +148 -0
  82. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -0
  83. package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js +2 -0
  84. package/dist/collection/components/gov-button/dropdown/gov-dropdown.types.js.map +1 -0
  85. package/dist/collection/components/gov-card/gov-card.css +6 -0
  86. package/dist/collection/components/gov-container/gov-container.css +6 -0
  87. package/dist/collection/components/gov-control-group/constants.js +7 -0
  88. package/dist/collection/components/gov-control-group/constants.js.map +1 -0
  89. package/dist/collection/components/gov-control-group/gov-control-group.css +259 -0
  90. package/dist/collection/components/gov-control-group/gov-control-group.js +83 -0
  91. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -0
  92. package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +6 -0
  93. package/dist/collection/components/gov-empty/gov-empty.css +6 -0
  94. package/dist/collection/components/gov-error-code/gov-error-code.css +6 -0
  95. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +6 -0
  96. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +6 -0
  97. package/dist/collection/components/gov-form/control/gov-form-control.css +6 -0
  98. package/dist/collection/components/gov-form/control/gov-form-control.js +35 -10
  99. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  100. package/dist/collection/components/gov-form/file/gov-form-file.css +13 -0
  101. package/dist/collection/components/gov-form/group/gov-form-group.css +6 -0
  102. package/dist/collection/components/gov-form/input/constants.js +1 -1
  103. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  104. package/dist/collection/components/gov-form/input/gov-form-input.css +106 -50
  105. package/dist/collection/components/gov-form/input/gov-form-input.js +9 -9
  106. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  107. package/dist/collection/components/gov-form/label/gov-form-label.css +6 -0
  108. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  109. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
  110. package/dist/collection/components/gov-form/message/gov-form-message.css +6 -0
  111. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +106 -50
  112. package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +6 -0
  113. package/dist/collection/components/gov-form/radio/gov-form-radio.css +6 -0
  114. package/dist/collection/components/gov-form/search/constants.js +3 -0
  115. package/dist/collection/components/gov-form/search/constants.js.map +1 -1
  116. package/dist/collection/components/gov-form/search/gov-form-search.css +12 -1
  117. package/dist/collection/components/gov-form/search/gov-form-search.js +30 -0
  118. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  119. package/dist/collection/components/gov-form/select/gov-form-select.css +106 -50
  120. package/dist/collection/components/gov-form/select/gov-form-select.js +17 -5
  121. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  122. package/dist/collection/components/gov-form/switch/gov-form-switch.css +6 -0
  123. package/dist/collection/components/gov-grid/gov-grid-item.css +6 -0
  124. package/dist/collection/components/gov-grid/gov-grid.css +6 -0
  125. package/dist/collection/components/gov-icon/gov-icon.css +6 -0
  126. package/dist/collection/components/gov-icon/list.js +10 -0
  127. package/dist/collection/components/gov-icon/list.js.map +1 -1
  128. package/dist/collection/components/gov-layout/gov-layout-column.css +6 -0
  129. package/dist/collection/components/gov-layout/gov-layout.css +6 -0
  130. package/dist/collection/components/gov-loading/loading/gov-loading.css +6 -0
  131. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +6 -0
  132. package/dist/collection/components/gov-message/gov-message.css +6 -0
  133. package/dist/collection/components/gov-modal/gov-modal.css +6 -0
  134. package/dist/collection/components/gov-nav/gov-nav-item.css +6 -0
  135. package/dist/collection/components/gov-nav/gov-nav.css +6 -0
  136. package/dist/collection/components/gov-pagination/gov-pagination.css +6 -0
  137. package/dist/collection/components/gov-promp/gov-prompt.css +6 -0
  138. package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +6 -0
  139. package/dist/collection/components/gov-side-nav/gov-side-nav.css +6 -0
  140. package/dist/collection/components/gov-spacer/gov-spacer.css +6 -0
  141. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +6 -0
  142. package/dist/collection/components/gov-statsbar/gov-statsbar.css +6 -0
  143. package/dist/collection/components/gov-stepper/gov-stepper-item.css +6 -0
  144. package/dist/collection/components/gov-stepper/gov-stepper.css +6 -0
  145. package/dist/collection/components/gov-tabs/gov-tabs-item.css +6 -0
  146. package/dist/collection/components/gov-tabs/gov-tabs.css +6 -0
  147. package/dist/collection/components/gov-tile/container/gov-tiles.css +6 -0
  148. package/dist/collection/components/gov-tile/gov-tile.css +6 -0
  149. package/dist/collection/components/gov-toast/gov-toast.css +6 -0
  150. package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +6 -0
  151. package/dist/collection/components/gov-tooltip/gov-tooltip.css +6 -0
  152. package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +6 -0
  153. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +29 -36
  154. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -1
  155. package/dist/collection/components/gov-wizzard/gov-wizzard-item.types.js +2 -0
  156. package/dist/collection/components/gov-wizzard/gov-wizzard-item.types.js.map +1 -0
  157. package/dist/collection/components/gov-wizzard/gov-wizzard.css +6 -0
  158. package/dist/collection/helpers/Dom/win.js +2 -1
  159. package/dist/collection/helpers/Dom/win.js.map +1 -1
  160. package/dist/collection/pages/Alert.js +1 -1
  161. package/dist/collection/pages/Alert.js.map +1 -1
  162. package/dist/collection/pages/Button.js +65 -0
  163. package/dist/collection/pages/Button.js.map +1 -1
  164. package/dist/collection/pages/ControlGroup.js +206 -0
  165. package/dist/collection/pages/ControlGroup.js.map +1 -0
  166. package/dist/collection/pages/Forms.js +369 -206
  167. package/dist/collection/pages/Forms.js.map +1 -1
  168. package/dist/collection/pages/Tooltip.js +24 -0
  169. package/dist/collection/pages/Tooltip.js.map +1 -1
  170. package/dist/components/constants3.js +1 -1
  171. package/dist/components/constants3.js.map +1 -1
  172. package/dist/components/form.js +8 -8
  173. package/dist/components/form.js.map +1 -1
  174. package/dist/components/gov-accordion-item.js +1 -0
  175. package/dist/components/gov-accordion-item.js.map +1 -1
  176. package/dist/components/gov-accordion.js +1 -0
  177. package/dist/components/gov-accordion.js.map +1 -1
  178. package/dist/components/gov-alert.js +1 -0
  179. package/dist/components/gov-alert.js.map +1 -1
  180. package/dist/components/gov-app.js +1123 -663
  181. package/dist/components/gov-app.js.map +1 -1
  182. package/dist/components/gov-attachments-item2.js +1 -0
  183. package/dist/components/gov-attachments-item2.js.map +1 -1
  184. package/dist/components/gov-attachments2.js +1 -0
  185. package/dist/components/gov-attachments2.js.map +1 -1
  186. package/dist/components/gov-backdrop2.js +1 -0
  187. package/dist/components/gov-backdrop2.js.map +1 -1
  188. package/dist/components/gov-badge2.js +3 -2
  189. package/dist/components/gov-badge2.js.map +1 -1
  190. package/dist/components/gov-breadcrumbs.js +1 -0
  191. package/dist/components/gov-breadcrumbs.js.map +1 -1
  192. package/dist/components/gov-button2.js +3 -2
  193. package/dist/components/gov-button2.js.map +1 -1
  194. package/dist/components/gov-card.js +1 -0
  195. package/dist/components/gov-card.js.map +1 -1
  196. package/dist/components/gov-container.js +1 -0
  197. package/dist/components/gov-container.js.map +1 -1
  198. package/dist/components/gov-control-group.d.ts +11 -0
  199. package/dist/components/gov-control-group.js +58 -0
  200. package/dist/components/gov-control-group.js.map +1 -0
  201. package/dist/components/gov-cookiebar.js +1 -0
  202. package/dist/components/gov-cookiebar.js.map +1 -1
  203. package/dist/components/gov-dropdown.d.ts +11 -0
  204. package/dist/components/gov-dropdown.js +144 -0
  205. package/dist/components/gov-dropdown.js.map +1 -0
  206. package/dist/components/gov-empty.js +1 -0
  207. package/dist/components/gov-empty.js.map +1 -1
  208. package/dist/components/gov-error-code.js +1 -0
  209. package/dist/components/gov-error-code.js.map +1 -1
  210. package/dist/components/gov-form-autocomplete2.js +1 -0
  211. package/dist/components/gov-form-autocomplete2.js.map +1 -1
  212. package/dist/components/gov-form-checkbox.js +1 -0
  213. package/dist/components/gov-form-checkbox.js.map +1 -1
  214. package/dist/components/gov-form-control.js +36 -7
  215. package/dist/components/gov-form-control.js.map +1 -1
  216. package/dist/components/gov-form-file.js +2 -1
  217. package/dist/components/gov-form-file.js.map +1 -1
  218. package/dist/components/gov-form-group.js +1 -0
  219. package/dist/components/gov-form-group.js.map +1 -1
  220. package/dist/components/gov-form-input2.js +6 -5
  221. package/dist/components/gov-form-input2.js.map +1 -1
  222. package/dist/components/gov-form-label.js +2 -1
  223. package/dist/components/gov-form-label.js.map +1 -1
  224. package/dist/components/gov-form-message2.js +1 -0
  225. package/dist/components/gov-form-message2.js.map +1 -1
  226. package/dist/components/gov-form-multi-select.js +2 -1
  227. package/dist/components/gov-form-multi-select.js.map +1 -1
  228. package/dist/components/gov-form-password-power.js +1 -0
  229. package/dist/components/gov-form-password-power.js.map +1 -1
  230. package/dist/components/gov-form-radio.js +1 -0
  231. package/dist/components/gov-form-radio.js.map +1 -1
  232. package/dist/components/gov-form-search.js +9 -2
  233. package/dist/components/gov-form-search.js.map +1 -1
  234. package/dist/components/gov-form-select2.js +18 -7
  235. package/dist/components/gov-form-select2.js.map +1 -1
  236. package/dist/components/gov-form-switch.js +1 -0
  237. package/dist/components/gov-form-switch.js.map +1 -1
  238. package/dist/components/gov-grid-item.js +1 -0
  239. package/dist/components/gov-grid-item.js.map +1 -1
  240. package/dist/components/gov-grid.js +1 -0
  241. package/dist/components/gov-grid.js.map +1 -1
  242. package/dist/components/gov-icon2.js +2 -1
  243. package/dist/components/gov-icon2.js.map +1 -1
  244. package/dist/components/gov-layout-column.js +1 -0
  245. package/dist/components/gov-layout-column.js.map +1 -1
  246. package/dist/components/gov-layout.js +1 -0
  247. package/dist/components/gov-layout.js.map +1 -1
  248. package/dist/components/gov-loading.js +1 -0
  249. package/dist/components/gov-loading.js.map +1 -1
  250. package/dist/components/gov-message.js +1 -0
  251. package/dist/components/gov-message.js.map +1 -1
  252. package/dist/components/gov-modal.js +1 -0
  253. package/dist/components/gov-modal.js.map +1 -1
  254. package/dist/components/gov-nav-item.js +1 -0
  255. package/dist/components/gov-nav-item.js.map +1 -1
  256. package/dist/components/gov-nav.js +1 -0
  257. package/dist/components/gov-nav.js.map +1 -1
  258. package/dist/components/gov-pagination.js +1 -0
  259. package/dist/components/gov-pagination.js.map +1 -1
  260. package/dist/components/gov-prompt.js +1 -0
  261. package/dist/components/gov-prompt.js.map +1 -1
  262. package/dist/components/gov-side-nav-item.js +1 -0
  263. package/dist/components/gov-side-nav-item.js.map +1 -1
  264. package/dist/components/gov-side-nav.js +1 -0
  265. package/dist/components/gov-side-nav.js.map +1 -1
  266. package/dist/components/gov-skeleton.js +1 -0
  267. package/dist/components/gov-skeleton.js.map +1 -1
  268. package/dist/components/gov-spacer.js +1 -0
  269. package/dist/components/gov-spacer.js.map +1 -1
  270. package/dist/components/gov-statsbar-item.js +1 -0
  271. package/dist/components/gov-statsbar-item.js.map +1 -1
  272. package/dist/components/gov-statsbar.js +1 -0
  273. package/dist/components/gov-statsbar.js.map +1 -1
  274. package/dist/components/gov-stepper-item.js +1 -0
  275. package/dist/components/gov-stepper-item.js.map +1 -1
  276. package/dist/components/gov-stepper.js +1 -0
  277. package/dist/components/gov-stepper.js.map +1 -1
  278. package/dist/components/gov-tabs-item.js +1 -0
  279. package/dist/components/gov-tabs-item.js.map +1 -1
  280. package/dist/components/gov-tabs.js +1 -0
  281. package/dist/components/gov-tabs.js.map +1 -1
  282. package/dist/components/gov-tile.js +1 -0
  283. package/dist/components/gov-tile.js.map +1 -1
  284. package/dist/components/gov-tiles.js +1 -0
  285. package/dist/components/gov-tiles.js.map +1 -1
  286. package/dist/components/gov-toast.js +1 -0
  287. package/dist/components/gov-toast.js.map +1 -1
  288. package/dist/components/gov-tooltip-content.js +1 -0
  289. package/dist/components/gov-tooltip-content.js.map +1 -1
  290. package/dist/components/gov-tooltip.js +1 -0
  291. package/dist/components/gov-tooltip.js.map +1 -1
  292. package/dist/components/gov-wizzard-item.js +15 -17
  293. package/dist/components/gov-wizzard-item.js.map +1 -1
  294. package/dist/components/gov-wizzard.js +1 -0
  295. package/dist/components/gov-wizzard.js.map +1 -1
  296. package/dist/components/index.d.ts +3 -1
  297. package/dist/components/index.js +2 -0
  298. package/dist/components/index.js.map +1 -1
  299. package/dist/components/win.js +2 -1
  300. package/dist/components/win.js.map +1 -1
  301. package/dist/core/core.esm.js +1 -1
  302. package/dist/core/core.esm.js.map +1 -1
  303. package/dist/core/p-00c4dc0d.entry.js +2 -0
  304. package/dist/core/p-00c4dc0d.entry.js.map +1 -0
  305. package/dist/core/{p-6044a1e7.entry.js → p-02fb27e8.entry.js} +2 -2
  306. package/dist/core/p-0574a26a.entry.js +2 -0
  307. package/dist/core/{p-a423b62a.entry.js.map → p-0574a26a.entry.js.map} +1 -1
  308. package/dist/core/{p-a9c57f72.entry.js → p-070f9684.entry.js} +2 -2
  309. package/dist/core/p-0f5e2b0a.js +2 -0
  310. package/dist/core/{p-d14130ac.entry.js → p-14a475a8.entry.js} +2 -2
  311. package/dist/core/p-1c4ad772.entry.js +2 -0
  312. package/dist/core/p-1c4ad772.entry.js.map +1 -0
  313. package/dist/core/{p-3e1a1bd4.entry.js → p-22222994.entry.js} +2 -2
  314. package/dist/core/{p-54b17f4d.entry.js → p-2e2be66b.entry.js} +2 -2
  315. package/dist/core/p-2e94d2d3.entry.js +2 -0
  316. package/dist/core/p-2e94d2d3.entry.js.map +1 -0
  317. package/dist/core/p-2f0f56fc.entry.js +2 -0
  318. package/dist/core/p-2f0f56fc.entry.js.map +1 -0
  319. package/dist/core/p-304f2d62.entry.js +2 -0
  320. package/dist/core/p-304f2d62.entry.js.map +1 -0
  321. package/dist/core/p-34152b51.js +2 -0
  322. package/dist/core/p-34152b51.js.map +1 -0
  323. package/dist/core/p-34ed07f6.js +2 -0
  324. package/dist/core/p-34ed07f6.js.map +1 -0
  325. package/dist/core/{p-005bfb42.entry.js → p-3d7ea15c.entry.js} +2 -2
  326. package/dist/core/{p-cd869237.js → p-3dbf7f49.js} +2 -2
  327. package/dist/core/p-3dbf7f49.js.map +1 -0
  328. package/dist/core/{p-5e865538.entry.js → p-4c6d7b65.entry.js} +2 -2
  329. package/dist/core/{p-d37f03e0.entry.js → p-529363af.entry.js} +2 -2
  330. package/dist/core/p-58047fab.entry.js +2 -0
  331. package/dist/core/p-58047fab.entry.js.map +1 -0
  332. package/dist/core/p-60ff8457.entry.js +2 -0
  333. package/dist/core/{p-acfd00a2.entry.js.map → p-60ff8457.entry.js.map} +1 -1
  334. package/dist/core/{p-fe1ee53b.entry.js → p-63ef7826.entry.js} +2 -2
  335. package/dist/core/p-63ef7826.entry.js.map +1 -0
  336. package/dist/core/{p-42db4603.entry.js → p-65aa3b0c.entry.js} +2 -2
  337. package/dist/core/{p-75a4c838.entry.js → p-683fc65e.entry.js} +2 -2
  338. package/dist/core/{p-75a4c838.entry.js.map → p-683fc65e.entry.js.map} +1 -1
  339. package/dist/core/{p-5a2a9cde.entry.js → p-70a7e7f6.entry.js} +2 -2
  340. package/dist/core/{p-1025c6ac.entry.js → p-78f8ffb0.entry.js} +2 -2
  341. package/dist/core/{p-3da88ddb.entry.js → p-7cde4bc8.entry.js} +2 -2
  342. package/dist/core/{p-d1275fa8.entry.js → p-90330543.entry.js} +2 -2
  343. package/dist/core/p-90330543.entry.js.map +1 -0
  344. package/dist/core/{p-d9b4bc20.entry.js → p-9fbee429.entry.js} +2 -2
  345. package/dist/core/p-9fbee429.entry.js.map +1 -0
  346. package/dist/core/p-bfc5e0f7.entry.js +2 -0
  347. package/dist/core/p-bfc5e0f7.entry.js.map +1 -0
  348. package/dist/core/p-cdd12494.entry.js +2 -0
  349. package/dist/core/p-cdd12494.entry.js.map +1 -0
  350. package/dist/core/{p-41f07da7.entry.js → p-ce59c2ee.entry.js} +2 -2
  351. package/dist/core/{p-207ba616.entry.js → p-d9e28400.entry.js} +2 -2
  352. package/dist/core/{p-f7275b59.entry.js → p-ec63daab.entry.js} +2 -2
  353. package/dist/core/{p-c289af04.entry.js → p-ed1e9d01.entry.js} +2 -2
  354. package/dist/core/p-f5d42069.entry.js +2 -0
  355. package/dist/core/p-f5d42069.entry.js.map +1 -0
  356. package/dist/custom-elements/index.d.ts +12 -0
  357. package/dist/custom-elements/index.js +1 -1
  358. package/dist/custom-elements/index.js.map +1 -1
  359. package/dist/esm/{constants-45f6db4c.js → constants-5708696f.js} +2 -2
  360. package/dist/esm/constants-5708696f.js.map +1 -0
  361. package/dist/esm/core.js +1 -1
  362. package/dist/esm/{form-613741a5.js → form-2d9f68d9.js} +2 -2
  363. package/dist/esm/form-2d9f68d9.js.map +1 -0
  364. package/dist/esm/gov-accordion.entry.js +2 -2
  365. package/dist/esm/gov-alert.entry.js +2 -2
  366. package/dist/esm/gov-alert.entry.js.map +1 -1
  367. package/dist/esm/gov-app.entry.js +1122 -663
  368. package/dist/esm/gov-app.entry.js.map +1 -1
  369. package/dist/esm/gov-attachments_3.entry.js +2 -2
  370. package/dist/esm/gov-backdrop.entry.js +2 -2
  371. package/dist/esm/gov-badge.entry.js +2 -2
  372. package/dist/esm/gov-badge.entry.js.map +1 -1
  373. package/dist/esm/gov-breadcrumbs.entry.js +2 -2
  374. package/dist/esm/gov-button.entry.js +4 -4
  375. package/dist/esm/gov-button.entry.js.map +1 -1
  376. package/dist/esm/gov-card.entry.js +2 -2
  377. package/dist/esm/gov-control-group.entry.js +38 -0
  378. package/dist/esm/gov-control-group.entry.js.map +1 -0
  379. package/dist/esm/gov-dropdown.entry.js +125 -0
  380. package/dist/esm/gov-dropdown.entry.js.map +1 -0
  381. package/dist/esm/gov-form-checkbox.entry.js +3 -3
  382. package/dist/esm/gov-form-control.entry.js +35 -7
  383. package/dist/esm/gov-form-control.entry.js.map +1 -1
  384. package/dist/esm/gov-form-file.entry.js +4 -4
  385. package/dist/esm/gov-form-file.entry.js.map +1 -1
  386. package/dist/esm/gov-form-input.entry.js +6 -6
  387. package/dist/esm/gov-form-input.entry.js.map +1 -1
  388. package/dist/esm/gov-form-label.entry.js +1 -1
  389. package/dist/esm/gov-form-label.entry.js.map +1 -1
  390. package/dist/esm/gov-form-multi-select.entry.js +4 -4
  391. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  392. package/dist/esm/gov-form-radio.entry.js +3 -3
  393. package/dist/esm/gov-form-search.entry.js +5 -1
  394. package/dist/esm/gov-form-search.entry.js.map +1 -1
  395. package/dist/esm/gov-form-select.entry.js +20 -10
  396. package/dist/esm/gov-form-select.entry.js.map +1 -1
  397. package/dist/esm/gov-form-switch.entry.js +3 -3
  398. package/dist/esm/gov-icon.entry.js +2 -2
  399. package/dist/esm/gov-modal.entry.js +2 -2
  400. package/dist/esm/gov-nav.entry.js +2 -2
  401. package/dist/esm/gov-pagination.entry.js +2 -2
  402. package/dist/esm/gov-prompt.entry.js +2 -2
  403. package/dist/esm/gov-side-nav.entry.js +2 -2
  404. package/dist/esm/gov-skeleton.entry.js +2 -2
  405. package/dist/esm/gov-tabs.entry.js +2 -2
  406. package/dist/esm/gov-wizzard-item.entry.js +13 -15
  407. package/dist/esm/gov-wizzard-item.entry.js.map +1 -1
  408. package/dist/esm/gov-wizzard.entry.js +2 -2
  409. package/dist/esm/index-b010bfb4.js +8 -0
  410. package/dist/esm/loader.js +1 -1
  411. package/dist/esm/{wcag-d588d144.js → wcag-afdfdddb.js} +2 -2
  412. package/dist/esm/{wcag-d588d144.js.map → wcag-afdfdddb.js.map} +1 -1
  413. package/dist/esm/{win-9c8460bb.js → win-7a1a8ac8.js} +3 -2
  414. package/dist/esm/win-7a1a8ac8.js.map +1 -0
  415. package/dist/hydrate/index.js +1316 -650
  416. package/dist/types/components/gov-alert/gov-alert.d.ts +1 -1
  417. package/dist/types/components/gov-app/gov-app.d.ts +9 -8
  418. package/dist/types/components/gov-badge/gov-badge.d.ts +1 -1
  419. package/dist/types/components/gov-button/{constants.d.ts → default/constants.d.ts} +3 -3
  420. package/dist/types/components/gov-button/{gov-button.d.ts → default/gov-button.d.ts} +1 -1
  421. package/dist/types/components/gov-button/{gov-button.types.d.ts → default/gov-button.types.d.ts} +1 -1
  422. package/dist/types/components/gov-button/dropdown/constants.d.ts +10 -0
  423. package/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +30 -0
  424. package/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +4 -0
  425. package/dist/types/components/gov-control-group/constants.d.ts +7 -0
  426. package/dist/types/components/gov-control-group/gov-control-group.d.ts +16 -0
  427. package/dist/types/components/gov-form/control/gov-form-control.d.ts +2 -1
  428. package/dist/types/components/gov-form/input/constants.d.ts +1 -1
  429. package/dist/types/components/gov-form/input/gov-form-input.d.ts +1 -2
  430. package/dist/types/components/gov-form/search/constants.d.ts +4 -0
  431. package/dist/types/components/gov-form/search/gov-form-search.d.ts +5 -0
  432. package/dist/types/components/gov-form/select/gov-form-select.d.ts +2 -0
  433. package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +7 -8
  434. package/dist/types/components/gov-wizzard/gov-wizzard-item.types.d.ts +4 -0
  435. package/dist/types/components.d.ts +90 -7
  436. package/dist/types/helpers/Dom/win.d.ts +1 -0
  437. package/dist/types/pages/ControlGroup.d.ts +3 -0
  438. package/package.json +1 -1
  439. package/dist/cjs/constants-245999e7.js.map +0 -1
  440. package/dist/cjs/form-62c6a8c6.js.map +0 -1
  441. package/dist/cjs/win-84bda0aa.js.map +0 -1
  442. package/dist/collection/components/gov-button/constants.js.map +0 -1
  443. package/dist/collection/components/gov-button/gov-button.js.map +0 -1
  444. package/dist/collection/components/gov-button/gov-button.types.js.map +0 -1
  445. package/dist/core/p-0a300d3e.entry.js +0 -2
  446. package/dist/core/p-0a300d3e.entry.js.map +0 -1
  447. package/dist/core/p-35aadeeb.entry.js +0 -2
  448. package/dist/core/p-35aadeeb.entry.js.map +0 -1
  449. package/dist/core/p-670b4f93.js +0 -2
  450. package/dist/core/p-67982c3a.entry.js +0 -2
  451. package/dist/core/p-67982c3a.entry.js.map +0 -1
  452. package/dist/core/p-7e524b49.js +0 -2
  453. package/dist/core/p-7e524b49.js.map +0 -1
  454. package/dist/core/p-a423b62a.entry.js +0 -2
  455. package/dist/core/p-a825183a.entry.js +0 -2
  456. package/dist/core/p-a825183a.entry.js.map +0 -1
  457. package/dist/core/p-acfd00a2.entry.js +0 -2
  458. package/dist/core/p-bbc765ca.entry.js +0 -2
  459. package/dist/core/p-bbc765ca.entry.js.map +0 -1
  460. package/dist/core/p-c20102ff.js +0 -2
  461. package/dist/core/p-c20102ff.js.map +0 -1
  462. package/dist/core/p-cd869237.js.map +0 -1
  463. package/dist/core/p-d1275fa8.entry.js.map +0 -1
  464. package/dist/core/p-d9b4bc20.entry.js.map +0 -1
  465. package/dist/core/p-e4bb6114.entry.js +0 -2
  466. package/dist/core/p-e4bb6114.entry.js.map +0 -1
  467. package/dist/core/p-e6904513.entry.js +0 -2
  468. package/dist/core/p-e6904513.entry.js.map +0 -1
  469. package/dist/core/p-fe1ee53b.entry.js.map +0 -1
  470. package/dist/esm/constants-45f6db4c.js.map +0 -1
  471. package/dist/esm/form-613741a5.js.map +0 -1
  472. package/dist/esm/win-9c8460bb.js.map +0 -1
  473. /package/dist/collection/components/gov-button/{gov-button.types.js → default/gov-button.types.js} +0 -0
  474. /package/dist/core/{p-6044a1e7.entry.js.map → p-02fb27e8.entry.js.map} +0 -0
  475. /package/dist/core/{p-a9c57f72.entry.js.map → p-070f9684.entry.js.map} +0 -0
  476. /package/dist/core/{p-670b4f93.js.map → p-0f5e2b0a.js.map} +0 -0
  477. /package/dist/core/{p-d14130ac.entry.js.map → p-14a475a8.entry.js.map} +0 -0
  478. /package/dist/core/{p-3e1a1bd4.entry.js.map → p-22222994.entry.js.map} +0 -0
  479. /package/dist/core/{p-54b17f4d.entry.js.map → p-2e2be66b.entry.js.map} +0 -0
  480. /package/dist/core/{p-005bfb42.entry.js.map → p-3d7ea15c.entry.js.map} +0 -0
  481. /package/dist/core/{p-5e865538.entry.js.map → p-4c6d7b65.entry.js.map} +0 -0
  482. /package/dist/core/{p-d37f03e0.entry.js.map → p-529363af.entry.js.map} +0 -0
  483. /package/dist/core/{p-42db4603.entry.js.map → p-65aa3b0c.entry.js.map} +0 -0
  484. /package/dist/core/{p-5a2a9cde.entry.js.map → p-70a7e7f6.entry.js.map} +0 -0
  485. /package/dist/core/{p-1025c6ac.entry.js.map → p-78f8ffb0.entry.js.map} +0 -0
  486. /package/dist/core/{p-3da88ddb.entry.js.map → p-7cde4bc8.entry.js.map} +0 -0
  487. /package/dist/core/{p-41f07da7.entry.js.map → p-ce59c2ee.entry.js.map} +0 -0
  488. /package/dist/core/{p-207ba616.entry.js.map → p-d9e28400.entry.js.map} +0 -0
  489. /package/dist/core/{p-f7275b59.entry.js.map → p-ec63daab.entry.js.map} +0 -0
  490. /package/dist/core/{p-c289af04.entry.js.map → p-ed1e9d01.entry.js.map} +0 -0
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b010bfb4.js';
2
2
  import { g as govHost, a as toBoolAttr } from './template-10332292.js';
3
- import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
3
+ import { c as canValidateWcagOnRender } from './win-7a1a8ac8.js';
4
4
  import { a as govErrorLog } from './gov.log-af905420.js';
5
- import { b as validateWcagRef } from './wcag-d588d144.js';
5
+ import { b as validateWcagRef } from './wcag-afdfdddb.js';
6
6
  import { c as createID } from './string.utils-f268fc6b.js';
7
7
  import { d as delay } from './utils-c057a3fa.js';
8
8
  import { M as ModalClass } from './constants-2a283e9a.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-b010bfb4.js';
2
2
  import { N as NavClass } from './constants-d71c09e0.js';
3
- import { v as validateWcagLabel } from './wcag-d588d144.js';
4
- import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
3
+ import { v as validateWcagLabel } from './wcag-afdfdddb.js';
4
+ import { c as canValidateWcagOnRender } from './win-7a1a8ac8.js';
5
5
  import { d as delay } from './utils-c057a3fa.js';
6
6
  import './gov.log-af905420.js';
7
7
  import './string.utils-f268fc6b.js';
@@ -5,8 +5,8 @@ import { S as Sizes } from './sizes-6c5943b4.js';
5
5
  import { V as Variants } from './variants-2b936d58.js';
6
6
  import { p as pick, d as delay } from './utils-c057a3fa.js';
7
7
  import { g as govHost, p as prepareClasses, t as toBoolAttrIfDefined } from './template-10332292.js';
8
- import { a as validateWcagProp, v as validateWcagLabel } from './wcag-d588d144.js';
9
- import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
8
+ import { a as validateWcagProp, v as validateWcagLabel } from './wcag-afdfdddb.js';
9
+ import { c as canValidateWcagOnRender } from './win-7a1a8ac8.js';
10
10
  import { c as createID } from './string.utils-f268fc6b.js';
11
11
  import './gov.log-af905420.js';
12
12
 
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b010bfb4.js';
2
2
  import { c as createID } from './string.utils-f268fc6b.js';
3
- import { b as validateWcagRef } from './wcag-d588d144.js';
3
+ import { b as validateWcagRef } from './wcag-afdfdddb.js';
4
4
  import { M as ModalClass } from './constants-2a283e9a.js';
5
- import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
5
+ import { c as canValidateWcagOnRender } from './win-7a1a8ac8.js';
6
6
  import { d as delay } from './utils-c057a3fa.js';
7
7
  import { g as govHost, a as toBoolAttr } from './template-10332292.js';
8
8
  import { a as govErrorLog } from './gov.log-af905420.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b010bfb4.js';
2
2
  import { S as SideNavItemClass, a as SideNavClass } from './constants-f5c21493.js';
3
- import { v as validateWcagLabel } from './wcag-d588d144.js';
4
- import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
3
+ import { v as validateWcagLabel } from './wcag-afdfdddb.js';
4
+ import { c as canValidateWcagOnRender } from './win-7a1a8ac8.js';
5
5
  import { d as delay } from './utils-c057a3fa.js';
6
6
  import { b as booleanString } from './template-10332292.js';
7
7
  import './gov.log-af905420.js';
@@ -3,8 +3,8 @@ import { p as pick, d as delay } from './utils-c057a3fa.js';
3
3
  import { V as Variants } from './variants-2b936d58.js';
4
4
  import { g as govHost } from './template-10332292.js';
5
5
  import { v as validateProp } from './props-789f7529.js';
6
- import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
7
- import { v as validateWcagLabel } from './wcag-d588d144.js';
6
+ import { c as canValidateWcagOnRender } from './win-7a1a8ac8.js';
7
+ import { v as validateWcagLabel } from './wcag-afdfdddb.js';
8
8
  import './gov.log-af905420.js';
9
9
  import './string.utils-f268fc6b.js';
10
10
 
@@ -2,8 +2,8 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import { v as validateProp } from './props-789f7529.js';
3
3
  import { T as TabsItemClass, a as TabsClass, b as TabTypes, c as TabVariants } from './constants-24dad929.js';
4
4
  import { g as govHost, a as toBoolAttr } from './template-10332292.js';
5
- import { a as validateWcagProp, v as validateWcagLabel } from './wcag-d588d144.js';
6
- import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
5
+ import { a as validateWcagProp, v as validateWcagLabel } from './wcag-afdfdddb.js';
6
+ import { c as canValidateWcagOnRender } from './win-7a1a8ac8.js';
7
7
  import { d as delay, t as throttle } from './utils-c057a3fa.js';
8
8
  import { c as createID } from './string.utils-f268fc6b.js';
9
9
  import './gov.log-af905420.js';
@@ -19,19 +19,18 @@ const GovWizzardItem = class {
19
19
  constructor(hostRef) {
20
20
  registerInstance(this, hostRef);
21
21
  this.govChange = createEvent(this, "gov-change", 7);
22
- this.variant = 'primary';
23
- this.size = 'm';
22
+ this.variant = "primary";
23
+ this.size = "m";
24
24
  this.identifier = undefined;
25
25
  this.collapsible = false;
26
26
  this.annotation = undefined;
27
27
  this.label = undefined;
28
28
  this.disabled = false;
29
29
  this.isExpanded = false;
30
- this.labelTag = 'h3';
31
- this.isExpandedState = undefined;
30
+ this.labelTag = "h3";
32
31
  this.h = govHost(this.host);
33
- this.triggerId = createID('GovWizzardItem');
34
- this.contentId = createID('GovWizzardContent');
32
+ this.triggerId = createID("GovWizzardItem");
33
+ this.contentId = createID("GovWizzardContent");
35
34
  }
36
35
  validateLabel(newValue) {
37
36
  if (!newValue) {
@@ -39,7 +38,7 @@ const GovWizzardItem = class {
39
38
  }
40
39
  }
41
40
  validateTriggerTag(newValue) {
42
- const validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span'];
41
+ const validTags = ["h1", "h2", "h3", "h4", "h5", "h6", "span"];
43
42
  if (newValue) {
44
43
  if (!validTags.includes(newValue)) {
45
44
  govErrorLog(`[${WizzardItemClass.root}]: Tag ${newValue} is not allowed.`);
@@ -50,10 +49,9 @@ const GovWizzardItem = class {
50
49
  validateProp(WizardVariants, newValue, WizzardItemClass.root);
51
50
  }
52
51
  emmitChange() {
53
- this.govChange.emit({ open: this.isExpandedState, element: this.host });
52
+ this.govChange.emit({ expanded: this.isExpanded, component: WizzardItemClass.root });
54
53
  }
55
54
  componentWillLoad() {
56
- this.isExpandedState = this.isExpanded;
57
55
  this.validateLabel(this.label);
58
56
  this.validateVariant(this.variant);
59
57
  this.validateTriggerTag(this.labelTag);
@@ -62,35 +60,35 @@ const GovWizzardItem = class {
62
60
  const triggerId = this.identifier || this.triggerId;
63
61
  const LabelTag = this.labelTag;
64
62
  const Tag = this.collapsible ? Tags.BUTTON : Tags.DIV;
65
- const label = (h(LabelTag, { class: WizzardItemClass.title }, this.h.hasSlot('prefix') && (h("span", { class: WizzardItemClass.prefix }, h("slot", { name: "prefix" }))), h("span", { class: WizzardItemClass.name }, h("span", { class: WizzardItemClass.label }, h("span", null, this.label), this.collapsible && h("gov-icon", { class: WizzardItemClass.arrow, name: "chevron-down" })), this.annotation && h("span", { class: WizzardItemClass.annot }, this.annotation))));
66
- return (h(Host, { class: this.h.classes(WizzardItemClass.root), variant: this.variant, size: this.size, role: "listitem", collapsible: this.collapsible }, this.collapsible ? (h(Tag, { id: triggerId, class: WizzardItemClass.header, "aria-expanded": booleanString(this.isExpandedState), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: () => (this.collapsible ? this.toggle() : false) }, label)) : (h("div", { class: WizzardItemClass.header }, label)), this.collapsible ? (h("div", { class: WizzardItemClass.content, id: this.contentId, "aria-hidden": booleanString(!this.isExpandedState), hidden: !this.isExpandedState, "aria-labelledby": triggerId }, h("slot", null))) : (h("div", { class: WizzardItemClass.content, "aria-hidden": booleanString(!this.isExpandedState), hidden: !this.isExpandedState }, h("slot", null)))));
63
+ const label = (h(LabelTag, { class: WizzardItemClass.title }, this.h.hasSlot("prefix") && (h("span", { class: WizzardItemClass.prefix }, h("slot", { name: "prefix" }))), h("span", { class: WizzardItemClass.name }, h("span", { class: WizzardItemClass.label }, h("span", null, this.label), this.collapsible && h("gov-icon", { class: WizzardItemClass.arrow, name: "chevron-down" })), this.annotation && h("span", { class: WizzardItemClass.annot }, this.annotation))));
64
+ return (h(Host, { class: this.h.classes(WizzardItemClass.root), "is-expanded": this.isExpanded, variant: this.variant, size: this.size, role: "listitem", collapsible: this.collapsible }, this.collapsible ? (h(Tag, { id: triggerId, class: WizzardItemClass.header, "aria-expanded": booleanString(this.isExpanded), "aria-controls": this.contentId, disabled: this.disabled, "aria-disabled": toBoolAttrIfDefined(this.disabled), onClick: () => (this.collapsible ? this.toggle() : false) }, label)) : (h("div", { class: WizzardItemClass.header }, label)), this.collapsible ? (h("div", { class: WizzardItemClass.content, id: this.contentId, "aria-hidden": booleanString(!this.isExpanded), hidden: !this.isExpanded, "aria-labelledby": triggerId }, h("slot", null))) : (h("div", { class: WizzardItemClass.content, "aria-hidden": booleanString(!this.isExpanded), hidden: !this.isExpanded }, h("slot", null)))));
67
65
  }
68
66
  /**
69
67
  * Opening the Wizzard
70
68
  */
71
69
  async open() {
72
- this.isExpandedState = true;
70
+ this.isExpanded = true;
73
71
  this.emmitChange();
74
72
  }
75
73
  /**
76
74
  * Closing the Wizzard
77
75
  */
78
76
  async close() {
79
- this.isExpandedState = false;
77
+ this.isExpanded = false;
80
78
  this.emmitChange();
81
79
  }
82
80
  /**
83
81
  * Wizzard switch
84
82
  */
85
83
  async toggle() {
86
- this.isExpandedState = !this.isExpandedState;
84
+ this.isExpanded = !this.isExpanded;
87
85
  this.emmitChange();
88
86
  }
89
87
  /**
90
88
  * Returns the current state of the component
91
89
  */
92
90
  async currentState() {
93
- return this.isExpandedState;
91
+ return this.isExpanded;
94
92
  }
95
93
  get host() { return getElement(this); }
96
94
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-wizzard-item.entry.js","mappings":";;;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,w2QAAw2Q;;ACSl4Q,IAAK,IAGJ;AAHD,WAAK,IAAI;EACR,mBAAW,CAAA;EACX,yBAAiB,CAAA;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;MAMY,cAAc;EAK1B;;;mBAUgD,SAAS;gBAIf,GAAG;;uBAQL,KAAK;;;oBAYR,KAAK;sBAIyB,KAAK;oBAIV,IAAI;;IAzCjE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAA;IAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAA;GAC9C;EA+CO,aAAa,CAAC,QAAgB;IACrC,IAAI,CAAC,QAAQ,EAAE;MACd,WAAW,CAAC,IAAI,gBAAgB,CAAC,IAAI,iCAAiC,CAAC,CAAA;KACvE;GACD;EAGO,kBAAkB,CAAC,QAAgB;IAC1C,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;IAC9D,IAAI,QAAQ,EAAE;MACb,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClC,WAAW,CAAC,IAAI,gBAAgB,CAAC,IAAI,UAAU,QAAQ,kBAAkB,CAAC,CAAA;OAC1E;KACD;GACD;EAGO,eAAe,CAAC,QAAgB;IACvC,YAAY,CAAC,cAAc,EAAE,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;GAC7D;EAEO,WAAW;IAClB,IAAI,CAAC,SAAS,CAAC,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AM,MAAM;IAClB,IAAI,CAAC,eAAe,GAAG,CAAC,IAAI,CAAC,eAAe,CAAA;IAC5C,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMM,MAAM,YAAY;IACxB,OAAO,IAAI,CAAC,eAAe,CAAA;GAC3B;;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-wizzard/gov-wizzard-item.scss?tag=gov-wizzard-item","../../../packages/core/src/components/gov-wizzard/gov-wizzard-item.tsx"],"sourcesContent":["/*\n * Wizzard - Item\n */\n\n@import \"../gov-wizzard/gov-wizzard-item-core.scss\";\n$class: \".gov-wizzard-item\";\n\n#{$class} {\n\t@include wizzard-item-core;\n\tmargin-bottom: rem-calc(16);\n\tbackground: $wizzard-bg-color;\n\t&__header {\n\t\t@include focus-outline();\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttransition: $t linear color;\n\t}\n\n\t// STATES\n\t&__header[aria-expanded=\"true\"] {\n\t\t#{$class}__label {\n\t\t\t.gov-icon {\n\t\t\t\ttransform: scale(-1);\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t&[size=\"#{$size-xs}\"],\n\t&[size=\"#{$size-s}\"],\n\t&[size=\"#{$size-m}\"] {\n\t\t#{$class} {\n\t\t\t&__title {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size\"));\n\t\t\t}\n\t\t\t&__annot {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size-annot\"));\n\t\t\t}\n\t\t\t&__prefix {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size-indicator\"));\n\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\theight: deep-map-get($wizzard-sizes, $size-xs, \"indicator-size\");\n\t\t\t}\n\t\t\t&__content {\n\t\t\t\tpadding: $wizzard-content-padding;\n\t\t\t}\n\t\t}\n\t}\n\t@each $variant, $definitions in $wizzard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t@include parameter(\"collapsible\") {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__header {\n\t\t\t\t\t\t@include hover() {\n\t\t\t\t\t\t\tcolor: get(\"hover-color\", $definitions);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// HOVERS\n\t@at-root button#{&}__header {\n\t\t@include button-core();\n\t\tjustify-content: flex-start;\n\t\ttext-align: left;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&[size=\"#{$size-s}\"],\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-s, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-s, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizzard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-m, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-m, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizzard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@each $size, $definitions in $wizzard-sizes {\n\t\t\t&[size=\"#{$size}\"] {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, Prop, State, Watch, Host, Method, Event, EventEmitter } from '@stencil/core'\nimport { govErrorLog } from '../../helpers/Log/gov.log'\nimport { validateProp } from '../../helpers/Validate/props'\nimport { WizzardItemClass, WizardVariantsType, WizardSizesType, WizardVariants } from './constants'\nimport { createID } from '../../utils/string.utils'\nimport { booleanString, toBoolAttrIfDefined, govHost } from '../../helpers/Dom/template'\nimport { GovWizzardItemChangeEvent } from './gov-wizzard-item.d'\nimport { GovHost } from '../../helpers/Dom/template.types'\n\nenum Tags {\n\tDIV = 'div',\n\tBUTTON = 'button',\n}\n\n@Component({\n\ttag: 'gov-wizzard-item',\n\tstyleUrl: 'gov-wizzard-item.scss',\n})\nexport class GovWizzardItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID('GovWizzardItem')\n\t\tthis.contentId = createID('GovWizzardContent')\n\t}\n\n\t@Element() readonly host: HTMLGovWizzardItemElement\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: WizardVariantsType = 'primary'\n\t/**\n\t * Size of wizzard\n\t */\n\t@Prop() readonly size?: WizardSizesType = 'm'\n\t/**\n\t * Custom wizzard item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defines wether the wizzard item can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Item annotation of the wizzard\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Item label of the wizzard\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Makes the wizzard component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by default\n\t */\n\t@Prop({ attribute: 'is-expanded' }) readonly isExpanded: boolean = false\n\t/**\n\t * Used to change the HMTL tag in the accordion trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: 'label-tag' }) readonly labelTag: string = 'h3'\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: 'gov-change' }) govChange: EventEmitter<GovWizzardItemChangeEvent>\n\n\t@State() isExpandedState: boolean\n\n\t@Watch('label')\n\tprivate validateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${WizzardItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch('labelTag')\n\tprivate validateTriggerTag(newValue: string): void {\n\t\tconst validTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span']\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${WizzardItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch('variant')\n\tprivate validateVariant(newValue: string): void {\n\t\tvalidateProp(WizardVariants, newValue, WizzardItemClass.root)\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ open: this.isExpandedState, element: this.host })\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.isExpandedState = this.isExpanded\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.labelTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst LabelTag = this.labelTag\n\t\tconst Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\n\n\t\tconst label = (\n\t\t\t<LabelTag class={WizzardItemClass.title}>\n\t\t\t\t{this.h.hasSlot('prefix') && (\n\t\t\t\t\t<span class={WizzardItemClass.prefix}>\n\t\t\t\t\t\t<slot name=\"prefix\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t\t<span class={WizzardItemClass.name}>\n\t\t\t\t\t<span class={WizzardItemClass.label}>\n\t\t\t\t\t\t<span>{this.label}</span>\n\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizzardItemClass.arrow} name=\"chevron-down\"></gov-icon>}\n\t\t\t\t\t</span>\n\n\t\t\t\t\t{this.annotation && <span class={WizzardItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t</span>\n\t\t\t</LabelTag>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizzardItemClass.root)} variant={this.variant} size={this.size} role=\"listitem\" collapsible={this.collapsible}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<Tag\n\t\t\t\t\t\tid={triggerId}\n\t\t\t\t\t\tclass={WizzardItemClass.header}\n\t\t\t\t\t\taria-expanded={booleanString(this.isExpandedState)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\tonClick={() => (this.collapsible ? this.toggle() : false)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</Tag>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizzardItemClass.header}>{label}</div>\n\t\t\t\t)}\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={WizzardItemClass.content}\n\t\t\t\t\t\tid={this.contentId}\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpandedState)}\n\t\t\t\t\t\thidden={!this.isExpandedState}\n\t\t\t\t\t\taria-labelledby={triggerId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizzardItemClass.content} aria-hidden={booleanString(!this.isExpandedState)} hidden={!this.isExpandedState}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the Wizzard\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpandedState = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the Wizzard\n\t */\n\t@Method()\n\tpublic async close(): Promise<void> {\n\t\tthis.isExpandedState = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Wizzard switch\n\t */\n\t@Method()\n\tpublic async toggle(): Promise<void> {\n\t\tthis.isExpandedState = !this.isExpandedState\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tpublic async currentState(): Promise<boolean> {\n\t\treturn this.isExpandedState\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-wizzard-item.entry.js","mappings":";;;;;;;;;;AAAA,MAAM,iBAAiB,GAAG,w2QAAw2Q;;ACSl4Q,IAAK,IAGJ;AAHD,WAAK,IAAI;EACR,mBAAW,CAAA;EACX,yBAAiB,CAAA;AAClB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;MAMY,cAAc;EAK1B;;;mBAUgD,SAAS;gBAIf,GAAG;;uBAQL,KAAK;;;oBAYR,KAAK;sBAIsB,KAAK;oBAIP,IAAI;IAzCjE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAA;IAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAA;GAC9C;EA6CO,aAAa,CAAC,QAAgB;IACrC,IAAI,CAAC,QAAQ,EAAE;MACd,WAAW,CAAC,IAAI,gBAAgB,CAAC,IAAI,iCAAiC,CAAC,CAAA;KACvE;GACD;EAGO,kBAAkB,CAAC,QAAgB;IAC1C,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;IAC9D,IAAI,QAAQ,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E,CAAC,IAAI,CAAC,UAAU,IAC3G,eAAQ,CACH,CACN,CACK,EACP;GACD;;;;EAMD,MAAM,IAAI;IACT,IAAI,CAAC,UAAU,GAAG,IAAI,CAAA;IACtB,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMM,MAAM,KAAK;IACjB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;IACvB,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMM,MAAM,MAAM;IAClB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAA;IAClC,IAAI,CAAC,WAAW,EAAE,CAAA;GAClB;;;;EAMM,MAAM,YAAY;IACxB,OAAO,IAAI,CAAC,UAAU,CAAA;GACtB;;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-wizzard/gov-wizzard-item.scss?tag=gov-wizzard-item","../../../packages/core/src/components/gov-wizzard/gov-wizzard-item.tsx"],"sourcesContent":["/*\n * Wizzard - Item\n */\n\n@import \"../gov-wizzard/gov-wizzard-item-core.scss\";\n$class: \".gov-wizzard-item\";\n\n#{$class} {\n\t@include wizzard-item-core;\n\tmargin-bottom: rem-calc(16);\n\tbackground: $wizzard-bg-color;\n\t&__header {\n\t\t@include focus-outline();\n\t\tgap: rem-calc(16);\n\t\tpadding: rem-calc(16);\n\t\tborder-radius: 0;\n\t\ttext-align: left;\n\t\ttransition: $t linear color;\n\t}\n\n\t// STATES\n\t&__header[aria-expanded=\"true\"] {\n\t\t#{$class}__label {\n\t\t\t.gov-icon {\n\t\t\t\ttransform: scale(-1);\n\t\t\t}\n\t\t}\n\t}\n\n\t// VARIANTS\n\t&[size=\"#{$size-xs}\"],\n\t&[size=\"#{$size-s}\"],\n\t&[size=\"#{$size-m}\"] {\n\t\t#{$class} {\n\t\t\t&__title {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size\"));\n\t\t\t}\n\t\t\t&__annot {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size-annot\"));\n\t\t\t}\n\t\t\t&__prefix {\n\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-xs, \"font-size-indicator\"));\n\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-xs, \"indicator-size\");\n\t\t\t\theight: deep-map-get($wizzard-sizes, $size-xs, \"indicator-size\");\n\t\t\t}\n\t\t\t&__content {\n\t\t\t\tpadding: $wizzard-content-padding;\n\t\t\t}\n\t\t}\n\t}\n\t@each $variant, $definitions in $wizzard-core-variants {\n\t\t&[variant=\"#{$variant}\"] {\n\t\t\t@include parameter(\"collapsible\") {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__header {\n\t\t\t\t\t\t@include hover() {\n\t\t\t\t\t\t\tcolor: get(\"hover-color\", $definitions);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// HOVERS\n\t@at-root button#{&}__header {\n\t\t@include button-core();\n\t\tjustify-content: flex-start;\n\t\ttext-align: left;\n\t}\n\n\t// MQ\n\t@include mq($from: sm) {\n\t\t&[size=\"#{$size-s}\"],\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-s, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-s, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizzard-sizes, $size-s, \"indicator-size\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t@include mq($from: md) {\n\t\t&[size=\"#{$size-m}\"] {\n\t\t\t#{$class} {\n\t\t\t\t&__title {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-m, \"font-size\"));\n\t\t\t\t}\n\t\t\t\t&__prefix {\n\t\t\t\t\t@include typography(deep-map-get($wizzard-sizes, $size-m, \"font-size-indicator\"));\n\t\t\t\t\twidth: deep-map-get($wizzard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t\theight: deep-map-get($wizzard-sizes, $size-m, \"indicator-size\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@each $size, $definitions in $wizzard-sizes {\n\t\t\t&[size=\"#{$size}\"] {\n\t\t\t\t#{$class} {\n\t\t\t\t\t&__content {\n\t\t\t\t\t\tpadding: get(\"content-padding\", $definitions);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from \"@stencil/core\"\nimport { govErrorLog } from \"../../helpers/Log/gov.log\"\nimport { validateProp } from \"../../helpers/Validate/props\"\nimport { WizardSizesType, WizardVariants, WizardVariantsType, WizzardItemClass } from \"./constants\"\nimport { createID } from \"../../utils/string.utils\"\nimport { booleanString, govHost, toBoolAttrIfDefined } from \"../../helpers/Dom/template\"\nimport { GovHost } from \"../../helpers/Dom/template.types\"\nimport { WizzardItemEvent } from \"./gov-wizzard-item.types\"\n\nenum Tags {\n\tDIV = \"div\",\n\tBUTTON = \"button\",\n}\n\n@Component({\n\ttag: \"gov-wizzard-item\",\n\tstyleUrl: \"gov-wizzard-item.scss\",\n})\nexport class GovWizzardItem {\n\tprivate h: GovHost\n\tprivate readonly triggerId: string\n\tprivate readonly contentId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.triggerId = createID(\"GovWizzardItem\")\n\t\tthis.contentId = createID(\"GovWizzardContent\")\n\t}\n\n\t@Element() readonly host: HTMLGovWizzardItemElement\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly variant?: WizardVariantsType = \"primary\"\n\t/**\n\t * Size of wizzard\n\t */\n\t@Prop() readonly size?: WizardSizesType = \"m\"\n\t/**\n\t * Custom wizzard item identifier. Otherwise, it will be generated\n\t */\n\t@Prop() readonly identifier: string\n\t/**\n\t * Defines weather the wizzard item can be collapsible\n\t */\n\t@Prop() readonly collapsible: boolean = false\n\t/**\n\t * Item annotation of the wizzard\n\t */\n\t@Prop() readonly annotation: string\n\t/**\n\t * Item label of the wizzard\n\t */\n\t@Prop() readonly label: string\n\t/**\n\t * Makes the wizzard component disabled.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Defines whether the accordion is open or closed by default\n\t */\n\t@Prop({ attribute: \"is-expanded\", mutable: true }) isExpanded = false\n\t/**\n\t * Used to change the HTML tag in the accordion trigger for correct semantic structure\n\t */\n\t@Prop({ attribute: \"label-tag\" }) readonly labelTag: string = \"h3\"\n\t/**\n\t * Called when the accordion state changes\n\t */\n\t@Event({ eventName: \"gov-change\" }) govChange: EventEmitter<WizzardItemEvent>\n\n\t@Watch(\"label\")\n\tprivate validateLabel(newValue: string): void {\n\t\tif (!newValue) {\n\t\t\tgovErrorLog(`[${WizzardItemClass.root}]: Parameter label is required.`)\n\t\t}\n\t}\n\n\t@Watch(\"labelTag\")\n\tprivate validateTriggerTag(newValue: string): void {\n\t\tconst validTags = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"span\"]\n\t\tif (newValue) {\n\t\t\tif (!validTags.includes(newValue)) {\n\t\t\t\tgovErrorLog(`[${WizzardItemClass.root}]: Tag ${newValue} is not allowed.`)\n\t\t\t}\n\t\t}\n\t}\n\n\t@Watch(\"variant\")\n\tprivate validateVariant(newValue: string): void {\n\t\tvalidateProp(WizardVariants, newValue, WizzardItemClass.root)\n\t}\n\n\tprivate emmitChange(): void {\n\t\tthis.govChange.emit({ expanded: this.isExpanded, component: WizzardItemClass.root })\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateLabel(this.label)\n\t\tthis.validateVariant(this.variant)\n\t\tthis.validateTriggerTag(this.labelTag)\n\t}\n\n\trender() {\n\t\tconst triggerId = this.identifier || this.triggerId\n\t\tconst LabelTag = this.labelTag\n\t\tconst Tag = this.collapsible ? Tags.BUTTON : Tags.DIV\n\n\t\tconst label = (\n\t\t\t<LabelTag class={WizzardItemClass.title}>\n\t\t\t\t{this.h.hasSlot(\"prefix\") && (\n\t\t\t\t\t<span class={WizzardItemClass.prefix}>\n\t\t\t\t\t\t<slot name=\"prefix\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t\t<span class={WizzardItemClass.name}>\n\t\t\t\t\t<span class={WizzardItemClass.label}>\n\t\t\t\t\t\t<span>{this.label}</span>\n\t\t\t\t\t\t{this.collapsible && <gov-icon class={WizzardItemClass.arrow} name=\"chevron-down\"></gov-icon>}\n\t\t\t\t\t</span>\n\n\t\t\t\t\t{this.annotation && <span class={WizzardItemClass.annot}>{this.annotation}</span>}\n\t\t\t\t</span>\n\t\t\t</LabelTag>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(WizzardItemClass.root)} is-expanded={this.isExpanded} variant={this.variant} size={this.size} role=\"listitem\" collapsible={this.collapsible}>\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<Tag\n\t\t\t\t\t\tid={triggerId}\n\t\t\t\t\t\tclass={WizzardItemClass.header}\n\t\t\t\t\t\taria-expanded={booleanString(this.isExpanded)}\n\t\t\t\t\t\taria-controls={this.contentId}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\tonClick={() => (this.collapsible ? this.toggle() : false)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t</Tag>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizzardItemClass.header}>{label}</div>\n\t\t\t\t)}\n\t\t\t\t{this.collapsible ? (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={WizzardItemClass.content}\n\t\t\t\t\t\tid={this.contentId}\n\t\t\t\t\t\taria-hidden={booleanString(!this.isExpanded)}\n\t\t\t\t\t\thidden={!this.isExpanded}\n\t\t\t\t\t\taria-labelledby={triggerId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div class={WizzardItemClass.content} aria-hidden={booleanString(!this.isExpanded)} hidden={!this.isExpanded}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\t/**\n\t * Opening the Wizzard\n\t */\n\t@Method()\n\tasync open(): Promise<void> {\n\t\tthis.isExpanded = true\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Closing the Wizzard\n\t */\n\t@Method()\n\tpublic async close(): Promise<void> {\n\t\tthis.isExpanded = false\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Wizzard switch\n\t */\n\t@Method()\n\tpublic async toggle(): Promise<void> {\n\t\tthis.isExpanded = !this.isExpanded\n\t\tthis.emmitChange()\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tpublic async currentState(): Promise<boolean> {\n\t\treturn this.isExpanded\n\t}\n}\n"],"version":3}
@@ -2,8 +2,8 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import { v as validateProp } from './props-789f7529.js';
3
3
  import { W as WizzardItemClass, a as WizzardClass, b as WizardSizes } from './constants-bf5a583f.js';
4
4
  import { g as govHost } from './template-10332292.js';
5
- import { v as validateWcagLabel } from './wcag-d588d144.js';
6
- import { c as canValidateWcagOnRender } from './win-9c8460bb.js';
5
+ import { v as validateWcagLabel } from './wcag-afdfdddb.js';
6
+ import { c as canValidateWcagOnRender } from './win-7a1a8ac8.js';
7
7
  import { d as delay } from './utils-c057a3fa.js';
8
8
  import './gov.log-af905420.js';
9
9
  import './variants-2b936d58.js';
@@ -2015,10 +2015,18 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2015
2015
  return import(
2016
2016
  /* webpackMode: "lazy" */
2017
2017
  './gov-container.entry.js').then(processMod, consoleError);
2018
+ case 'gov-control-group':
2019
+ return import(
2020
+ /* webpackMode: "lazy" */
2021
+ './gov-control-group.entry.js').then(processMod, consoleError);
2018
2022
  case 'gov-cookiebar':
2019
2023
  return import(
2020
2024
  /* webpackMode: "lazy" */
2021
2025
  './gov-cookiebar.entry.js').then(processMod, consoleError);
2026
+ case 'gov-dropdown':
2027
+ return import(
2028
+ /* webpackMode: "lazy" */
2029
+ './gov-dropdown.entry.js').then(processMod, consoleError);
2022
2030
  case 'gov-empty':
2023
2031
  return import(
2024
2032
  /* webpackMode: "lazy" */
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy(JSON.parse("[[\"gov-form-file\",[[4,\"gov-form-file\",{\"expanded\":[4],\"required\":[4],\"disabled\":[4],\"displayAttachments\":[4,\"display-attachments\"],\"name\":[1],\"accept\":[1],\"maxFileSize\":[2,\"max-file-size\"],\"identifier\":[1],\"invalid\":[4],\"errorSize\":[1,\"error-size\"],\"errorAccept\":[1,\"error-accept\"],\"attachmentsLabel\":[1,\"attachments-label\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagAttachmentsLabel\":[1,\"wcag-attachments-label\"],\"files\":[32],\"getRef\":[64],\"getAreaRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-multi-select\",[[4,\"gov-form-multi-select\",{\"identifier\":[1],\"placeholder\":[1],\"variant\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"value\":[32],\"selectedOptions\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-modal\",[[4,\"gov-modal\",{\"open\":[1028],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]}]]],[\"gov-pagination\",[[0,\"gov-pagination\",{\"type\":[1],\"current\":[2],\"total\":[2],\"inverse\":[4],\"size\":[1],\"variant\":[1],\"pageSize\":[2,\"page-size\"],\"maxPages\":[2,\"max-pages\"],\"link\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagPageLabel\":[1,\"wcag-page-label\"],\"pagination\":[32],\"validateWcag\":[64]}]]],[\"gov-prompt\",[[4,\"gov-prompt\",{\"open\":[1028],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]}]]],[\"gov-tabs\",[[4,\"gov-tabs\",{\"type\":[1],\"variant\":[1],\"orientation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"controller\":[32],\"focusIndex\":[32],\"compactControls\":[32],\"refresh\":[64],\"currentTab\":[64],\"setActiveTab\":[64],\"validateWcag\":[64]}]]],[\"gov-alert\",[[4,\"gov-alert\",{\"headline\":[1],\"variant\":[1],\"inverse\":[4],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagToggleLabel\":[1,\"wcag-toggle-label\"],\"closable\":[4],\"toggleContent\":[32],\"validateWcag\":[64]}]]],[\"gov-loading\",[[4,\"gov-loading\",{\"loading\":[4]}]]],[\"gov-side-nav-item\",[[4,\"gov-side-nav-item\",{\"inverse\":[4],\"compact\":[4],\"identifier\":[1],\"count\":[4],\"label\":[1],\"disabled\":[4],\"href\":[1],\"isExpanded\":[4,\"is-expanded\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-toast\",[[4,\"gov-toast\",{\"variant\":[1],\"gravity\":[1],\"position\":[1],\"type\":[1],\"time\":[2],\"closeLabel\":[1,\"close-label\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"destroy\":[64]}]]],[\"gov-accordion-item\",[[4,\"gov-accordion-item\",{\"variant\":[1025],\"identifier\":[1],\"size\":[1025],\"label\":[1],\"annotation\":[1],\"disabled\":[4],\"isExpanded\":[4,\"is-expanded\"],\"triggerTag\":[1,\"trigger-tag\"],\"noBorder\":[4,\"no-border\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-card\",[[4,\"gov-card\",{\"promotion\":[4],\"label\":[1],\"collapsible\":[4],\"expanded\":[4],\"headlineTag\":[1,\"headline-tag\"],\"wcagTriggerLabel\":[1,\"wcag-trigger-label\"],\"wcagTriggerLabelledBy\":[1,\"wcag-trigger-labelled-by\"],\"isExpanded\":[32],\"open\":[64],\"close\":[64],\"validateWcag\":[64]}]]],[\"gov-form-checkbox\",[[4,\"gov-form-checkbox\",{\"value\":[1],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"noLabel\":[4,\"no-label\"],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-tile\",[[4,\"gov-tile\",{\"promotion\":[4],\"href\":[1],\"name\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizzard-item\",[[4,\"gov-wizzard-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"collapsible\":[4],\"annotation\":[1],\"label\":[1],\"disabled\":[4],\"isExpanded\":[4,\"is-expanded\"],\"labelTag\":[1,\"label-tag\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-accordion\",[[4,\"gov-accordion\",{\"size\":[1],\"variant\":[1],\"noBorder\":[4,\"no-border\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-app\",[[0,\"gov-app\"]]],[\"gov-breadcrumbs\",[[4,\"gov-breadcrumbs\",{\"collapsible\":[4],\"isExpanded\":[4,\"is-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelded-by\"],\"validateWcag\":[64]}]]],[\"gov-container\",[[4,\"gov-container\",{\"slottedChildren\":[64]}]]],[\"gov-cookiebar\",[[4,\"gov-cookiebar\"]]],[\"gov-empty\",[[4,\"gov-empty\"]]],[\"gov-error-code\",[[4,\"gov-error-code\"]]],[\"gov-form-control\",[[4,\"gov-form-control\",{\"gap\":[1],\"identifier\":[1],\"invalid\":[4],\"disabled\":[4],\"success\":[4],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group\",[[4,\"gov-form-group\",{\"gap\":[1]}]]],[\"gov-form-label\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-password-power\",[[4,\"gov-form-password-power\",{\"power\":[2]}]]],[\"gov-form-radio\",[[4,\"gov-form-radio\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-search\",[[4,\"gov-form-search\"]]],[\"gov-form-switch\",[[4,\"gov-form-switch\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-grid\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column\",[[4,\"gov-layout-column\"]]],[\"gov-message\",[[4,\"gov-message\",{\"variant\":[1]}]]],[\"gov-nav\",[[4,\"gov-nav\",{\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-nav-item\",[[4,\"gov-nav-item\",{\"href\":[1],\"isExpandedState\":[32]}]]],[\"gov-side-nav\",[[4,\"gov-side-nav\",{\"inverse\":[4],\"compact\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-skeleton\",[[0,\"gov-skeleton\",{\"variant\":[1],\"count\":[2],\"shape\":[1],\"width\":[1],\"height\":[1],\"animation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}]]],[\"gov-spacer\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]}]]],[\"gov-statsbar\",[[4,\"gov-statsbar\",{\"iconPosition\":[1,\"icon-position\"],\"variant\":[1]}]]],[\"gov-statsbar-item\",[[4,\"gov-statsbar-item\",{\"iconPosition\":[1,\"icon-position\"]}]]],[\"gov-stepper\",[[4,\"gov-stepper\",{\"size\":[1]}]]],[\"gov-stepper-item\",[[4,\"gov-stepper-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"label\":[1],\"annotation\":[1],\"triggerTag\":[1,\"trigger-tag\"],\"isExpandedState\":[32],\"currentState\":[64]}]]],[\"gov-tabs-item\",[[4,\"gov-tabs-item\",{\"identifier\":[1],\"triggerIdentifier\":[1,\"trigger-identifier\"],\"label\":[1],\"default\":[4],\"isActive\":[32],\"getIdentifier\":[64],\"getTriggerIdentifier\":[64],\"setActiveStatus\":[64]}]]],[\"gov-tiles\",[[4,\"gov-tiles\",{\"columns\":[2],\"noBorder\":[4,\"no-border\"]}]]],[\"gov-tooltip\",[[4,\"gov-tooltip\",{\"variant\":[1],\"size\":[1],\"position\":[1],\"message\":[1],\"identifier\":[1],\"icon\":[4],\"show\":[64],\"hide\":[64]}]]],[\"gov-tooltip-content\",[[4,\"gov-tooltip-content\",{\"isVisible\":[4,\"is-visible\"]}]]],[\"gov-wizzard\",[[4,\"gov-wizzard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-icon\",[[0,\"gov-icon\",{\"name\":[1],\"type\":[1],\"iconData\":[32],\"visible\":[32],\"error\":[32]}]]],[\"gov-form-input\",[[4,\"gov-form-input\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"success\":[4],\"size\":[1],\"name\":[1],\"multiline\":[4],\"rows\":[2],\"cols\":[2],\"required\":[4],\"disabled\":[4],\"placeholder\":[1],\"readonly\":[4],\"minlength\":[2],\"maxlength\":[2],\"min\":[8],\"max\":[8],\"autocomplete\":[4],\"autocorrect\":[4],\"type\":[1],\"inputType\":[1,\"input-type\"],\"role\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagAutocomplete\":[1,\"wcag-autocomplete\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"focused\":[32],\"setFocus\":[64],\"setValue\":[64],\"clearValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-autocomplete\",[[4,\"gov-form-autocomplete\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"success\":[4],\"size\":[1],\"nameKey\":[1,\"name-key\"],\"name\":[1],\"required\":[4],\"disabled\":[4],\"placeholder\":[1],\"readonly\":[4],\"invalid\":[4],\"minlength\":[2],\"maxlength\":[2],\"messageEmpty\":[1,\"message-empty\"],\"messageLoading\":[1,\"message-loading\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"processing\":[32],\"arrowCounter\":[32],\"list\":[32],\"setFocus\":[64],\"setOptions\":[64],\"clearValue\":[64],\"setProcessing\":[64],\"setSearchCallback\":[64],\"setTemplateResolver\":[64]}]]],[\"gov-form-select\",[[4,\"gov-form-select\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-badge\",[[4,\"gov-badge\",{\"inverse\":[4],\"disabled\":[4],\"href\":[1],\"target\":[1],\"size\":[1],\"type\":[1],\"tag\":[1],\"variant\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"getTriggerRef\":[64]}]]],[\"gov-attachments_3\",[[4,\"gov-attachments-item\",{\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagRemoveLabelledBy\":[1,\"wcag-remove-labelled-by\"],\"validateWcag\":[64]}],[4,\"gov-attachments\",{\"label\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}],[4,\"gov-form-message\",{\"variant\":[1],\"identifier\":[64]}]]],[\"gov-backdrop\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-button\",[[4,\"gov-button\",{\"variant\":[513],\"size\":[513],\"type\":[513],\"expanded\":[4],\"inverse\":[4],\"name\":[1],\"disabled\":[516],\"nativeType\":[1,\"native-type\"],\"href\":[1],\"target\":[1],\"download\":[4],\"hreflang\":[1],\"referrerpolicy\":[1],\"rel\":[1],\"loading\":[1],\"focusable\":[4],\"identifier\":[1],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagDescription\":[1,\"wcag-description\"],\"wcagDetails\":[1,\"wcag-details\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagHasPopup\":[1,\"wcag-has-popup\"],\"wcagPressed\":[1,\"wcag-pressed\"],\"wcagCurrent\":[1,\"wcag-current\"],\"isPressed\":[32],\"setFocus\":[64],\"getTriggerRef\":[64],\"validateWcag\":[64]}]]]]"), options);
13
+ return bootstrapLazy(JSON.parse("[[\"gov-form-file\",[[4,\"gov-form-file\",{\"expanded\":[4],\"required\":[4],\"disabled\":[4],\"displayAttachments\":[4,\"display-attachments\"],\"name\":[1],\"accept\":[1],\"maxFileSize\":[2,\"max-file-size\"],\"identifier\":[1],\"invalid\":[4],\"errorSize\":[1,\"error-size\"],\"errorAccept\":[1,\"error-accept\"],\"attachmentsLabel\":[1,\"attachments-label\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagAttachmentsLabel\":[1,\"wcag-attachments-label\"],\"files\":[32],\"getRef\":[64],\"getAreaRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-multi-select\",[[4,\"gov-form-multi-select\",{\"identifier\":[1],\"placeholder\":[1],\"variant\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"value\":[32],\"selectedOptions\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-modal\",[[4,\"gov-modal\",{\"open\":[1028],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]}]]],[\"gov-pagination\",[[0,\"gov-pagination\",{\"type\":[1],\"current\":[2],\"total\":[2],\"inverse\":[4],\"size\":[1],\"variant\":[1],\"pageSize\":[2,\"page-size\"],\"maxPages\":[2,\"max-pages\"],\"link\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagPageLabel\":[1,\"wcag-page-label\"],\"pagination\":[32],\"validateWcag\":[64]}]]],[\"gov-prompt\",[[4,\"gov-prompt\",{\"open\":[1028],\"label\":[1],\"role\":[1],\"labelTag\":[1,\"label-tag\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagCloseLabelledBy\":[1,\"wcag-close-labelled-by\"],\"show\":[64],\"hide\":[64],\"validateWcag\":[64]}]]],[\"gov-tabs\",[[4,\"gov-tabs\",{\"type\":[1],\"variant\":[1],\"orientation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagSelectLabel\":[1,\"wcag-select-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"controller\":[32],\"focusIndex\":[32],\"compactControls\":[32],\"refresh\":[64],\"currentTab\":[64],\"setActiveTab\":[64],\"validateWcag\":[64]}]]],[\"gov-alert\",[[4,\"gov-alert\",{\"headline\":[1],\"variant\":[1],\"inverse\":[4],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"wcagToggleLabel\":[1,\"wcag-toggle-label\"],\"closable\":[4],\"toggleContent\":[32],\"validateWcag\":[64]}]]],[\"gov-loading\",[[4,\"gov-loading\",{\"loading\":[4]}]]],[\"gov-side-nav-item\",[[4,\"gov-side-nav-item\",{\"inverse\":[4],\"compact\":[4],\"identifier\":[1],\"count\":[4],\"label\":[1],\"disabled\":[4],\"href\":[1],\"isExpanded\":[4,\"is-expanded\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-toast\",[[4,\"gov-toast\",{\"variant\":[1],\"gravity\":[1],\"position\":[1],\"type\":[1],\"time\":[2],\"closeLabel\":[1,\"close-label\"],\"wcagCloseLabel\":[1,\"wcag-close-label\"],\"destroy\":[64]}]]],[\"gov-accordion-item\",[[4,\"gov-accordion-item\",{\"variant\":[1025],\"identifier\":[1],\"size\":[1025],\"label\":[1],\"annotation\":[1],\"disabled\":[4],\"isExpanded\":[4,\"is-expanded\"],\"triggerTag\":[1,\"trigger-tag\"],\"noBorder\":[4,\"no-border\"],\"isExpandedState\":[32],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-card\",[[4,\"gov-card\",{\"promotion\":[4],\"label\":[1],\"collapsible\":[4],\"expanded\":[4],\"headlineTag\":[1,\"headline-tag\"],\"wcagTriggerLabel\":[1,\"wcag-trigger-label\"],\"wcagTriggerLabelledBy\":[1,\"wcag-trigger-labelled-by\"],\"isExpanded\":[32],\"open\":[64],\"close\":[64],\"validateWcag\":[64]}]]],[\"gov-form-checkbox\",[[4,\"gov-form-checkbox\",{\"value\":[1],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"noLabel\":[4,\"no-label\"],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-tile\",[[4,\"gov-tile\",{\"promotion\":[4],\"href\":[1],\"name\":[1],\"getTriggerRef\":[64]}]]],[\"gov-wizzard-item\",[[4,\"gov-wizzard-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"collapsible\":[4],\"annotation\":[1],\"label\":[1],\"disabled\":[4],\"isExpanded\":[1028,\"is-expanded\"],\"labelTag\":[1,\"label-tag\"],\"open\":[64],\"close\":[64],\"toggle\":[64],\"currentState\":[64]}]]],[\"gov-accordion\",[[4,\"gov-accordion\",{\"size\":[1],\"variant\":[1],\"noBorder\":[4,\"no-border\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-app\",[[0,\"gov-app\"]]],[\"gov-breadcrumbs\",[[4,\"gov-breadcrumbs\",{\"collapsible\":[4],\"isExpanded\":[4,\"is-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelded-by\"],\"validateWcag\":[64]}]]],[\"gov-container\",[[4,\"gov-container\",{\"slottedChildren\":[64]}]]],[\"gov-control-group\",[[4,\"gov-control-group\",{\"variant\":[1],\"noBorder\":[4,\"no-border\"]}]]],[\"gov-cookiebar\",[[4,\"gov-cookiebar\"]]],[\"gov-dropdown\",[[4,\"gov-dropdown\",{\"open\":[1028],\"position\":[1],\"getState\":[64]}]]],[\"gov-empty\",[[4,\"gov-empty\"]]],[\"gov-error-code\",[[4,\"gov-error-code\"]]],[\"gov-form-control\",[[4,\"gov-form-control\",{\"gap\":[1],\"identifier\":[1],\"invalid\":[4],\"disabled\":[4],\"success\":[4],\"fieldset\":[4],\"size\":[1]}]]],[\"gov-form-group\",[[4,\"gov-form-group\",{\"gap\":[1]}]]],[\"gov-form-label\",[[4,\"gov-form-label\",{\"identifier\":[1],\"size\":[1],\"required\":[4],\"legend\":[4]}]]],[\"gov-form-password-power\",[[4,\"gov-form-password-power\",{\"power\":[2]}]]],[\"gov-form-radio\",[[4,\"gov-form-radio\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-search\",[[4,\"gov-form-search\",{\"variant\":[1]}]]],[\"gov-form-switch\",[[4,\"gov-form-switch\",{\"value\":[1],\"noLabel\":[4,\"no-label\"],\"checked\":[1540],\"required\":[4],\"disabled\":[4],\"name\":[1],\"size\":[1],\"identifier\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-grid\",[[4,\"gov-grid\",{\"alignX\":[1,\"align-x\"],\"alignY\":[1,\"align-y\"]}]]],[\"gov-grid-item\",[[4,\"gov-grid-item\",{\"size\":[1],\"sizeSm\":[1,\"size-sm\"],\"sizeMd\":[1,\"size-md\"],\"sizeLg\":[1,\"size-lg\"],\"sizeXl\":[1,\"size-xl\"]}]]],[\"gov-layout\",[[4,\"gov-layout\",{\"type\":[1],\"variant\":[1],\"inverse\":[4]}]]],[\"gov-layout-column\",[[4,\"gov-layout-column\"]]],[\"gov-message\",[[4,\"gov-message\",{\"variant\":[1]}]]],[\"gov-nav\",[[4,\"gov-nav\",{\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-nav-item\",[[4,\"gov-nav-item\",{\"href\":[1],\"isExpandedState\":[32]}]]],[\"gov-side-nav\",[[4,\"gov-side-nav\",{\"inverse\":[4],\"compact\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-skeleton\",[[0,\"gov-skeleton\",{\"variant\":[1],\"count\":[2],\"shape\":[1],\"width\":[1],\"height\":[1],\"animation\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}]]],[\"gov-spacer\",[[0,\"gov-spacer\",{\"size\":[1],\"breakpoint\":[1]}]]],[\"gov-statsbar\",[[4,\"gov-statsbar\",{\"iconPosition\":[1,\"icon-position\"],\"variant\":[1]}]]],[\"gov-statsbar-item\",[[4,\"gov-statsbar-item\",{\"iconPosition\":[1,\"icon-position\"]}]]],[\"gov-stepper\",[[4,\"gov-stepper\",{\"size\":[1]}]]],[\"gov-stepper-item\",[[4,\"gov-stepper-item\",{\"variant\":[1],\"size\":[1],\"identifier\":[1],\"label\":[1],\"annotation\":[1],\"triggerTag\":[1,\"trigger-tag\"],\"isExpandedState\":[32],\"currentState\":[64]}]]],[\"gov-tabs-item\",[[4,\"gov-tabs-item\",{\"identifier\":[1],\"triggerIdentifier\":[1,\"trigger-identifier\"],\"label\":[1],\"default\":[4],\"isActive\":[32],\"getIdentifier\":[64],\"getTriggerIdentifier\":[64],\"setActiveStatus\":[64]}]]],[\"gov-tiles\",[[4,\"gov-tiles\",{\"columns\":[2],\"noBorder\":[4,\"no-border\"]}]]],[\"gov-tooltip\",[[4,\"gov-tooltip\",{\"variant\":[1],\"size\":[1],\"position\":[1],\"message\":[1],\"identifier\":[1],\"icon\":[4],\"show\":[64],\"hide\":[64]}]]],[\"gov-tooltip-content\",[[4,\"gov-tooltip-content\",{\"isVisible\":[4,\"is-visible\"]}]]],[\"gov-wizzard\",[[4,\"gov-wizzard\",{\"size\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-icon\",[[0,\"gov-icon\",{\"name\":[1],\"type\":[1],\"iconData\":[32],\"visible\":[32],\"error\":[32]}]]],[\"gov-form-input\",[[4,\"gov-form-input\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"success\":[4],\"size\":[1],\"name\":[1],\"multiline\":[4],\"rows\":[2],\"cols\":[2],\"required\":[4],\"disabled\":[4],\"placeholder\":[1],\"readonly\":[4],\"minlength\":[2],\"maxlength\":[2],\"min\":[8],\"max\":[8],\"autocomplete\":[4],\"autocorrect\":[4],\"type\":[1],\"inputType\":[1,\"input-type\"],\"role\":[1],\"invalid\":[4],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagAutocomplete\":[1,\"wcag-autocomplete\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"focused\":[32],\"setFocus\":[64],\"setValue\":[64],\"clearValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-form-autocomplete\",[[4,\"gov-form-autocomplete\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"success\":[4],\"size\":[1],\"nameKey\":[1,\"name-key\"],\"name\":[1],\"required\":[4],\"disabled\":[4],\"placeholder\":[1],\"readonly\":[4],\"invalid\":[4],\"minlength\":[2],\"maxlength\":[2],\"messageEmpty\":[1,\"message-empty\"],\"messageLoading\":[1,\"message-loading\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"processing\":[32],\"arrowCounter\":[32],\"list\":[32],\"setFocus\":[64],\"setOptions\":[64],\"clearValue\":[64],\"setProcessing\":[64],\"setSearchCallback\":[64],\"setTemplateResolver\":[64]}]]],[\"gov-form-select\",[[4,\"gov-form-select\",{\"value\":[1537],\"identifier\":[1],\"variant\":[1],\"size\":[1],\"name\":[1],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"focused\":[32],\"setFocus\":[64],\"setValue\":[64],\"getRef\":[64],\"validateWcag\":[64]}]]],[\"gov-badge\",[[4,\"gov-badge\",{\"inverse\":[4],\"disabled\":[4],\"href\":[1],\"target\":[1],\"size\":[1],\"type\":[1],\"tag\":[1],\"variant\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"getTriggerRef\":[64]}]]],[\"gov-attachments_3\",[[4,\"gov-attachments-item\",{\"wcagRemoveLabel\":[1,\"wcag-remove-label\"],\"wcagRemoveLabelledBy\":[1,\"wcag-remove-labelled-by\"],\"validateWcag\":[64]}],[4,\"gov-attachments\",{\"label\":[1],\"wcagLabel\":[1,\"wcag-label\"],\"validateWcag\":[64]}],[4,\"gov-form-message\",{\"variant\":[1],\"identifier\":[64]}]]],[\"gov-backdrop\",[[0,\"gov-backdrop\",{\"inverse\":[4],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"validateWcag\":[64]}]]],[\"gov-button\",[[4,\"gov-button\",{\"variant\":[513],\"size\":[513],\"type\":[513],\"expanded\":[4],\"inverse\":[4],\"name\":[1],\"disabled\":[516],\"nativeType\":[1,\"native-type\"],\"href\":[1],\"target\":[1],\"download\":[4],\"hreflang\":[1],\"referrerpolicy\":[1],\"rel\":[1],\"loading\":[1],\"focusable\":[4],\"identifier\":[1],\"wcagActiveDescendant\":[1,\"wcag-active-descendant\"],\"wcagControls\":[1,\"wcag-controls\"],\"wcagDescribedBy\":[1,\"wcag-described-by\"],\"wcagDescription\":[1,\"wcag-description\"],\"wcagDetails\":[1,\"wcag-details\"],\"wcagExpanded\":[4,\"wcag-expanded\"],\"wcagLabel\":[1,\"wcag-label\"],\"wcagLabelledBy\":[1,\"wcag-labelled-by\"],\"wcagOwns\":[1,\"wcag-owns\"],\"wcagHasPopup\":[1,\"wcag-has-popup\"],\"wcagPressed\":[1,\"wcag-pressed\"],\"wcagCurrent\":[1,\"wcag-current\"],\"isPressed\":[32],\"setFocus\":[64],\"getTriggerRef\":[64],\"validateWcag\":[64]}]]]]"), options);
14
14
  });
15
15
  };
16
16
 
@@ -1,6 +1,6 @@
1
1
  import { g as govWarningLog } from './gov.log-af905420.js';
2
2
  import { s as splitByWhitespace } from './string.utils-f268fc6b.js';
3
- import { d as documentNode } from './win-9c8460bb.js';
3
+ import { d as documentNode } from './win-7a1a8ac8.js';
4
4
 
5
5
  const validateWcagProp = (value, propName, component) => {
6
6
  if (value === undefined || String(value).length === 0) {
@@ -59,4 +59,4 @@ const validateWcagLabel = (label, labelledBy, component) => {
59
59
 
60
60
  export { validateWcagProp as a, validateWcagRef as b, validateWcagLabelFor as c, validateWcagLabel as v };
61
61
 
62
- //# sourceMappingURL=wcag-d588d144.js.map
62
+ //# sourceMappingURL=wcag-afdfdddb.js.map
@@ -1 +1 @@
1
- {"file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;EAChE,IAAI,OAAO,KAAK,IAAI,EAAE;IACrB,MAAM,YAAY,GAAG,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;IAC9D,IAAI,YAAY,KAAK,IAAI,EAAE;MAC1B,aAAa,CAAC,IAAI,SAAS,8EAA8E,CAAC,CAAA;MAC1G,OAAO,KAAK,CAAA;KACZ;GACD;EACD,OAAO,IAAI,CAAA;AACZ,EAAC;MAEY,iBAAiB,GAAG,CAAC,KAAyB,EAAE,UAA8B,EAAE,SAAiB;EAC7G,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;IAClD,OAAO,IAAI,CAAA;GACX;EACD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;IAC5D,MAAM,YAAY,GAAG,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;IAC9D,IAAI,YAAY,EAAE;MACjB,OAAO,IAAI,CAAA;KACX;GACD;EACD,aAAa,CAAC,IAAI,SAAS,yEAAyE,CAAC,CAAA;EACrG,OAAO,KAAK,CAAA;AACb;;;;","names":[],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\nimport { splitByWhitespace } from '../../utils/string.utils'\nimport { documentNode } from '../Dom/win'\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateWcagLabel = (label: string | undefined, labelledBy: string | undefined, component: string): boolean => {\n\tif (typeof label === 'string' && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined wcag-label or wcag-labelled-by attribute.`)\n\treturn false\n}\n"],"version":3}
1
+ {"file":"wcag-afdfdddb.js","mappings":";;;;MAIa,gBAAgB,GAAG,CAAC,KAAyB,EAAE,QAAgB,EAAE,SAAiB;EAC9F,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;IACtD,aAAa,CAAC,IAAI,SAAS,WAAW,QAAQ,qDAAqD,CAAC,CAAA;GACpG;AACF,EAAC;MAEY,eAAe,GAAG,CAAC,WAAmB,EAAE,IAAY,EAAE,SAAiB;EACnF,IAAI,OAAO,WAAW,KAAK,WAAW,IAAI,WAAW,KAAK,SAAS,EAAE;IACpE,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MAAM,GAAG,CAAC,EAAE;IAClD,OAAO,IAAI,CAAA;GACX;EACD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;IAC5D,MAAM,YAAY,GAAG,YAAY,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;IAC9D,IAAI,YAAY,EAAE;MACjB,OAAO,IAAI,CAAA;KACX;GACD;EACD,aAAa,CAAC,IAAI,SAAS,yEAAyE,CAAC,CAAA;EACrG,OAAO,KAAK,CAAA;AACb;;;;","names":[],"sources":["../../../packages/core/src/helpers/Validate/wcag.ts"],"sourcesContent":["import { govWarningLog } from '../Log/gov.log'\nimport { splitByWhitespace } from '../../utils/string.utils'\nimport { documentNode } from '../Dom/win'\n\nexport const validateWcagProp = (value: string | undefined, propName: string, component: string): void => {\n\tif (value === undefined || String(value).length === 0) {\n\t\tgovWarningLog(`[${component}]: The (${propName}) attribute is important for correct accessibility.`)\n\t}\n}\n\nexport const validateWcagRef = (referenceId: string, name: string, component: string): boolean => {\n\tif (typeof referenceId === 'undefined' || referenceId === undefined) {\n\t\treturn true\n\t}\n\tif (String(referenceId).length === 0) {\n\t\tgovWarningLog(`[${component}]: Attribute (${name}) is defined with an empty value.`)\n\t\treturn false\n\t}\n\tlet strings = []\n\tconst referenceIds = splitByWhitespace(referenceId)\n\tif (Array.isArray(referenceIds)) {\n\t\tstrings = referenceIds.filter(function (e) {\n\t\t\treturn e.trim().length > 0\n\t\t})\n\t}\n\n\treturn !!strings.filter(referenceId => {\n\t\tif (documentNode().getElementById(referenceId) === null) {\n\t\t\t//govWarningLog(`[${component}][${name}]: Reference to element with id (${referenceId}) does not exist.`)\n\t\t\treturn false\n\t\t} else {\n\t\t\treturn true\n\t\t}\n\t}).length\n}\n\nexport const validateWcagLabelFor = (inputId: string, labelledBy: string | undefined, component: string): boolean => {\n\tconst labelEl = documentNode().querySelector(`[for=${inputId}]`)\n\tif (labelEl === null) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl === null) {\n\t\t\tgovWarningLog(`[${component}]: The form element has no defined wcag-label or wcag-labelled-by attribute.`)\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}\n\nexport const validateWcagLabel = (label: string | undefined, labelledBy: string | undefined, component: string): boolean => {\n\tif (typeof label === 'string' && label.length > 0) {\n\t\treturn true\n\t}\n\tif (typeof labelledBy === 'string' && labelledBy.length > 0) {\n\t\tconst labelledByEl = documentNode().getElementById(labelledBy)\n\t\tif (labelledByEl) {\n\t\t\treturn true\n\t\t}\n\t}\n\tgovWarningLog(`[${component}]: The element has no defined wcag-label or wcag-labelled-by attribute.`)\n\treturn false\n}\n"],"version":3}
@@ -1,6 +1,7 @@
1
1
  import { a as property } from './utils-c057a3fa.js';
2
2
 
3
- const getWindowProperty = (name) => window && property(name, window);
3
+ const isWindow = typeof window !== "undefined";
4
+ const getWindowProperty = (name) => isWindow && window && property(name, window);
4
5
  const config = () => {
5
6
  const defaultConfig = {
6
7
  canValidateWcagOnRender: false,
@@ -19,4 +20,4 @@ const documentNode = () => config().documentNode;
19
20
 
20
21
  export { canValidateWcagOnRender as c, documentNode as d, iconsPath as i };
21
22
 
22
- //# sourceMappingURL=win-9c8460bb.js.map
23
+ //# sourceMappingURL=win-7a1a8ac8.js.map
@@ -0,0 +1 @@
1
+ {"file":"win-7a1a8ac8.js","mappings":";;AAQO,MAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,WAAW,CAAA;AAErD,MAAM,iBAAiB,GAAG,CAAI,IAAY,KAA6B,QAAQ,IAAI,MAAM,IAAI,QAAQ,CAAC,IAA2B,EAAE,MAAM,CAAC,CAAA;AAE1I,MAAM,MAAM,GAAG;EACd,MAAM,aAAa,GAAY;IAC9B,uBAAuB,EAAE,KAAK;IAC9B,SAAS,EAAE,gBAAgB;IAC3B,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI;GACxC,CAAA;EAED,MAAM,cAAc,GAAG,iBAAiB,CAAU,eAAe,CAAC,CAAA;EAClE,IAAI,cAAc,EAAE;IACnB,uCAAY,aAAa,GAAK,cAAc,EAAE;GAC9C;EAED,OAAO,aAAa,CAAA;AACrB,CAAC,CAAA;MAEY,uBAAuB,GAAG,MAA0C,MAAM,EAAE,CAAC,wBAAuB;MACpG,SAAS,GAAG,MAA4B,MAAM,EAAE,CAAC,UAAS;MAC1D,YAAY,GAAG,MAA+B,MAAM,EAAE,CAAC;;;;","names":[],"sources":["../../../packages/core/src/helpers/Dom/win.ts"],"sourcesContent":["import { property } from '../../utils/utils'\n\ninterface IConfig {\n\tcanValidateWcagOnRender: boolean\n\ticonsPath: string\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\ticonsPath: './assets/icons',\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 iconsPath = (): IConfig['iconsPath'] => config().iconsPath\nexport const documentNode = (): IConfig['documentNode'] => config().documentNode\n"],"version":3}