@gov-design-system-ce/components 4.1.0-rc1 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (897) hide show
  1. package/dist/cjs/{colors-976f6dff.js → colors-f7c8eadd.js} +7 -9
  2. package/dist/cjs/colors-f7c8eadd.js.map +1 -0
  3. package/dist/cjs/{constants-e2807da6.js → constants-49f0efa6.js} +2 -2
  4. package/dist/cjs/{constants-e2807da6.js.map → constants-49f0efa6.js.map} +1 -1
  5. package/dist/cjs/{constants-43c0c51b.js → constants-4dfa23e3.js} +2 -2
  6. package/dist/cjs/{constants-43c0c51b.js.map → constants-4dfa23e3.js.map} +1 -1
  7. package/dist/cjs/{constants-441d1af4.js → constants-82929d01.js} +2 -2
  8. package/dist/cjs/{constants-441d1af4.js.map → constants-82929d01.js.map} +1 -1
  9. package/dist/cjs/{constants-bd0d66ac.js → constants-b9fece07.js} +2 -2
  10. package/dist/cjs/{constants-bd0d66ac.js.map → constants-b9fece07.js.map} +1 -1
  11. package/dist/cjs/{constants-5037cdc9.js → constants-c0886404.js} +2 -2
  12. package/dist/cjs/{constants-5037cdc9.js.map → constants-c0886404.js.map} +1 -1
  13. package/dist/cjs/{constants-861428a4.js → constants-f464dc4c.js} +2 -2
  14. package/dist/cjs/{constants-861428a4.js.map → constants-f464dc4c.js.map} +1 -1
  15. package/dist/cjs/core.cjs.js +2 -2
  16. package/dist/cjs/{form-c1aec07a.js → form-4e66039a.js} +4 -3
  17. package/dist/cjs/form-4e66039a.js.map +1 -0
  18. package/dist/cjs/gov-accordion-item.cjs.entry.js +11 -9
  19. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-accordion.cjs.entry.js +4 -5
  21. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-attachments_3.cjs.entry.js +14 -15
  23. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-backdrop.cjs.entry.js +7 -8
  25. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  26. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +7 -8
  27. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-button.cjs.entry.js +12 -13
  29. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  30. package/dist/cjs/gov-card.cjs.entry.js +7 -8
  31. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  32. package/dist/cjs/gov-chip.cjs.entry.js +13 -14
  33. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  34. package/dist/cjs/gov-container.cjs.entry.js +3 -11
  35. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  36. package/dist/cjs/gov-control-group.cjs.entry.js +6 -7
  37. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  38. package/dist/cjs/gov-cookiebar.cjs.entry.js +3 -3
  39. package/dist/cjs/gov-dialog.cjs.entry.js +7 -8
  40. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  41. package/dist/cjs/gov-dropdown.cjs.entry.js +6 -6
  42. package/dist/cjs/gov-empty.cjs.entry.js +5 -6
  43. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-error-code.cjs.entry.js +3 -3
  45. package/dist/cjs/gov-flex_4.cjs.entry.js +339 -0
  46. package/dist/cjs/gov-flex_4.cjs.entry.js.map +1 -0
  47. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +6 -8
  48. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +6 -7
  50. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-form-checkbox.cjs.entry.js +9 -10
  52. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-form-control.cjs.entry.js +7 -7
  54. package/dist/cjs/gov-form-file.cjs.entry.js +13 -10
  55. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  56. package/dist/cjs/gov-form-group.cjs.entry.js +5 -6
  57. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  58. package/dist/cjs/gov-form-input_2.cjs.entry.js +14 -13
  59. package/dist/cjs/gov-form-input_2.cjs.entry.js.map +1 -1
  60. package/dist/cjs/gov-form-multi-select.cjs.entry.js +13 -29
  61. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  62. package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
  63. package/dist/cjs/gov-form-radio-group.cjs.entry.js +6 -7
  64. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-form-radio.cjs.entry.js +8 -9
  66. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  67. package/dist/cjs/gov-form-search.cjs.entry.js +3 -3
  68. package/dist/cjs/gov-form-select.cjs.entry.js +10 -11
  69. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  70. package/dist/cjs/gov-form-switch.cjs.entry.js +9 -10
  71. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  72. package/dist/cjs/gov-grid-item.cjs.entry.js +3 -3
  73. package/dist/cjs/gov-grid.cjs.entry.js +3 -3
  74. package/dist/cjs/gov-infobar.cjs.entry.js +7 -8
  75. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  76. package/dist/cjs/gov-layout-column.cjs.entry.js +3 -3
  77. package/dist/cjs/gov-layout.cjs.entry.js +3 -3
  78. package/dist/cjs/gov-lifecycle.cjs.entry.js +47 -0
  79. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -0
  80. package/dist/cjs/gov-link.cjs.entry.js +51 -0
  81. package/dist/cjs/gov-link.cjs.entry.js.map +1 -0
  82. package/dist/cjs/gov-loading.cjs.entry.js +5 -6
  83. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  84. package/dist/cjs/gov-message.cjs.entry.js +6 -7
  85. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  86. package/dist/cjs/gov-pagination.cjs.entry.js +8 -9
  87. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  88. package/dist/cjs/gov-spacer.cjs.entry.js +5 -6
  89. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  90. package/dist/cjs/gov-stepper-item.cjs.entry.js +8 -9
  91. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  92. package/dist/cjs/gov-stepper.cjs.entry.js +7 -8
  93. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  94. package/dist/cjs/gov-tabs-item.cjs.entry.js +6 -6
  95. package/dist/cjs/gov-tabs.cjs.entry.js +7 -8
  96. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  97. package/dist/cjs/gov-tag.cjs.entry.js +11 -12
  98. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  99. package/dist/cjs/gov-tile.cjs.entry.js +3 -3
  100. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  101. package/dist/cjs/gov-tiles.cjs.entry.js +3 -3
  102. package/dist/cjs/gov-toast.cjs.entry.js +10 -11
  103. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  104. package/dist/cjs/gov-tooltip-content.cjs.entry.js +5 -5
  105. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
  106. package/dist/cjs/gov-tooltip.cjs.entry.js +12 -13
  107. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  108. package/dist/cjs/gov-wizard-item.cjs.entry.js +10 -11
  109. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  110. package/dist/cjs/gov-wizard.cjs.entry.js +10 -11
  111. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  112. package/dist/cjs/{win-587f4614.js → gov.log-bfea3151.js} +16 -4
  113. package/dist/cjs/gov.log-bfea3151.js.map +1 -0
  114. package/dist/cjs/{index-1af4880c.js → index-7ff4447c.js} +20 -12
  115. package/dist/cjs/index-7ff4447c.js.map +1 -0
  116. package/dist/cjs/loader.cjs.js +2 -2
  117. package/dist/cjs/{props-b8a955b2.js → props-d189860c.js} +2 -2
  118. package/dist/cjs/{props-b8a955b2.js.map → props-d189860c.js.map} +1 -1
  119. package/dist/cjs/{string.utils-2335838f.js → string.utils-b84c81cf.js} +2 -1
  120. package/dist/cjs/string.utils-b84c81cf.js.map +1 -0
  121. package/dist/cjs/{template-b070338f.js → template-39939fd6.js} +1 -20
  122. package/dist/cjs/template-39939fd6.js.map +1 -0
  123. package/dist/cjs/{wcag-31089f70.js → wcag-2927ff73.js} +5 -6
  124. package/dist/cjs/wcag-2927ff73.js.map +1 -0
  125. package/dist/collection/collection-manifest.json +3 -1
  126. package/dist/collection/components/gov-accordion/gov-accordion-item.js +8 -5
  127. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  128. package/dist/collection/components/gov-attachments/gov-attachments-item.css +6 -35
  129. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  130. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  131. package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
  132. package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
  133. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  134. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  135. package/dist/collection/components/gov-button/button/gov-button.js +9 -9
  136. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  137. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  138. package/dist/collection/components/gov-card/gov-card.js +1 -1
  139. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  140. package/dist/collection/components/gov-chip/gov-chip.js +16 -16
  141. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  142. package/dist/collection/components/gov-container/gov-container.js +2 -38
  143. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  144. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  145. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  146. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  147. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  148. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  149. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  150. package/dist/collection/components/gov-flex/constants.js +4 -0
  151. package/dist/collection/components/gov-flex/constants.js.map +1 -0
  152. package/dist/collection/components/gov-flex/gov-flex.js +127 -0
  153. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -0
  154. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +2 -21
  155. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  156. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +3 -3
  157. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  158. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  159. package/dist/collection/components/gov-form/file/gov-form-file.js +8 -23
  160. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  161. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  162. package/dist/collection/components/gov-form/group/gov-form-group.css +7 -36
  163. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  164. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  165. package/dist/collection/components/gov-form/input/constants.js +1 -0
  166. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  167. package/dist/collection/components/gov-form/input/gov-form-input.js +5 -3
  168. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  169. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  170. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  171. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +6 -30
  172. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  173. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  174. package/dist/collection/components/gov-form/radio/gov-form-radio.js +1 -1
  175. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  176. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  177. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  178. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  179. package/dist/collection/components/gov-form/switch/constants.js +1 -1
  180. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  181. package/dist/collection/components/gov-form/switch/gov-form-switch.js +4 -4
  182. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  183. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  184. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  185. package/dist/collection/components/gov-icon/constants.js +8 -7
  186. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  187. package/dist/collection/components/gov-icon/gov-icon.js +41 -10
  188. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  189. package/dist/collection/components/gov-icon/list.js +43 -151
  190. package/dist/collection/components/gov-icon/list.js.map +1 -1
  191. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  192. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  193. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  194. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  195. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +39 -0
  196. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -0
  197. package/dist/collection/components/gov-link/constants.js +7 -0
  198. package/dist/collection/components/gov-link/constants.js.map +1 -0
  199. package/dist/collection/components/gov-link/gov-link.js +129 -0
  200. package/dist/collection/components/gov-link/gov-link.js.map +1 -0
  201. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  202. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  203. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  204. package/dist/collection/components/gov-message/gov-message.js +1 -1
  205. package/dist/collection/components/gov-pagination/gov-pagination.js +2 -2
  206. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  207. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  208. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  209. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  210. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  211. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  212. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  213. package/dist/collection/components/gov-tag/gov-tag.js +9 -9
  214. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  215. package/dist/collection/components/gov-theme-switch/constants.js +9 -1
  216. package/dist/collection/components/gov-theme-switch/constants.js.map +1 -1
  217. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +134 -10
  218. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js.map +1 -1
  219. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  220. package/dist/collection/components/gov-tile/gov-tile.js +7 -7
  221. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  222. package/dist/collection/components/gov-toast/constants.js +1 -0
  223. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  224. package/dist/collection/components/gov-toast/gov-toast.js +3 -4
  225. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  226. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  227. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  228. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  229. package/dist/collection/components/gov-wizard/gov-wizard-item.js +3 -3
  230. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  231. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  232. package/dist/collection/core/constants/colors.js +6 -8
  233. package/dist/collection/core/constants/colors.js.map +1 -1
  234. package/dist/collection/data/color-definitions.js +359 -172
  235. package/dist/collection/helpers/Dom/document.js +46 -0
  236. package/dist/collection/helpers/Dom/document.js.map +1 -0
  237. package/dist/collection/helpers/Dom/template.js +0 -18
  238. package/dist/collection/helpers/Dom/template.js.map +1 -1
  239. package/dist/collection/helpers/Dom/template.types.js.map +1 -1
  240. package/dist/collection/pages/Accordion.js +30 -30
  241. package/dist/collection/pages/Accordion.js.map +1 -1
  242. package/dist/collection/pages/Button.js +383 -383
  243. package/dist/collection/pages/Button.js.map +1 -1
  244. package/dist/collection/pages/Chip.js +53 -53
  245. package/dist/collection/pages/Chip.js.map +1 -1
  246. package/dist/collection/pages/ControlGroup.js +18 -18
  247. package/dist/collection/pages/ControlGroup.js.map +1 -1
  248. package/dist/collection/pages/Dialog.js +1 -1
  249. package/dist/collection/pages/Dialog.js.map +1 -1
  250. package/dist/collection/pages/Forms.js +206 -196
  251. package/dist/collection/pages/Forms.js.map +1 -1
  252. package/dist/collection/pages/Grid.js +1 -1
  253. package/dist/collection/pages/Grid.js.map +1 -1
  254. package/dist/collection/pages/Icon.js +10 -0
  255. package/dist/collection/pages/Icon.js.map +1 -1
  256. package/dist/collection/pages/Infobar.js +16 -16
  257. package/dist/collection/pages/Infobar.js.map +1 -1
  258. package/dist/collection/pages/Message.js +20 -20
  259. package/dist/collection/pages/Message.js.map +1 -1
  260. package/dist/collection/pages/Spacer.js +1 -1
  261. package/dist/collection/pages/Spacer.js.map +1 -1
  262. package/dist/collection/pages/Stepper.js +15 -15
  263. package/dist/collection/pages/Stepper.js.map +1 -1
  264. package/dist/collection/pages/Tag.js +135 -160
  265. package/dist/collection/pages/Tag.js.map +1 -1
  266. package/dist/collection/pages/ToastMessage.js +4 -4
  267. package/dist/collection/pages/ToastMessage.js.map +1 -1
  268. package/dist/collection/pages/ToastMessageCountdown.js +4 -4
  269. package/dist/collection/pages/ToastMessageCountdown.js.map +1 -1
  270. package/dist/collection/pages/Tooltip.js +2 -2
  271. package/dist/collection/pages/Tooltip.js.map +1 -1
  272. package/dist/collection/pages/Typography.js +20 -0
  273. package/dist/collection/pages/Typography.js.map +1 -1
  274. package/dist/collection/pages/Wizard.js +2 -2
  275. package/dist/collection/pages/Wizard.js.map +1 -1
  276. package/dist/collection/utils/string.utils.js +1 -1
  277. package/dist/collection/utils/string.utils.js.map +1 -1
  278. package/dist/components/gov-accordion-item.js +1 -1
  279. package/dist/components/gov-accordion-item.js.map +1 -1
  280. package/dist/components/gov-accordion.js +1 -1
  281. package/dist/components/gov-attachments-item.js +1 -1
  282. package/dist/components/gov-attachments.js +1 -1
  283. package/dist/components/gov-backdrop.js +1 -1
  284. package/dist/components/gov-breadcrumbs.js +1 -1
  285. package/dist/components/gov-breadcrumbs.js.map +1 -1
  286. package/dist/components/gov-button.js +1 -1
  287. package/dist/components/gov-card.js +1 -1
  288. package/dist/components/gov-card.js.map +1 -1
  289. package/dist/components/gov-chip.js +1 -1
  290. package/dist/components/gov-container.js +1 -1
  291. package/dist/components/gov-container.js.map +1 -1
  292. package/dist/components/gov-control-group.js +1 -1
  293. package/dist/components/gov-cookiebar.js +1 -1
  294. package/dist/components/gov-dialog.js +1 -1
  295. package/dist/components/gov-dialog.js.map +1 -1
  296. package/dist/components/gov-dropdown.js +1 -1
  297. package/dist/components/gov-dropdown.js.map +1 -1
  298. package/dist/components/gov-empty.js +1 -1
  299. package/dist/components/gov-error-code.js +1 -1
  300. package/dist/components/{gov-app.d.ts → gov-flex.d.ts} +4 -4
  301. package/dist/components/gov-flex.js +2 -0
  302. package/dist/components/gov-flex.js.map +1 -0
  303. package/dist/components/gov-form-autocomplete.js +1 -1
  304. package/dist/components/gov-form-checkbox-group.js +1 -1
  305. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  306. package/dist/components/gov-form-checkbox.js +1 -1
  307. package/dist/components/gov-form-checkbox.js.map +1 -1
  308. package/dist/components/gov-form-control.js +1 -1
  309. package/dist/components/gov-form-file.js +1 -1
  310. package/dist/components/gov-form-file.js.map +1 -1
  311. package/dist/components/gov-form-group.js +1 -1
  312. package/dist/components/gov-form-input.js +1 -1
  313. package/dist/components/gov-form-label.js +1 -1
  314. package/dist/components/gov-form-label.js.map +1 -1
  315. package/dist/components/gov-form-message.js +1 -1
  316. package/dist/components/gov-form-multi-select.js +1 -1
  317. package/dist/components/gov-form-multi-select.js.map +1 -1
  318. package/dist/components/gov-form-password-power.js +1 -1
  319. package/dist/components/gov-form-radio-group.js +1 -1
  320. package/dist/components/gov-form-radio-group.js.map +1 -1
  321. package/dist/components/gov-form-radio.js +1 -1
  322. package/dist/components/gov-form-radio.js.map +1 -1
  323. package/dist/components/gov-form-search.js +1 -1
  324. package/dist/components/gov-form-select.js +1 -1
  325. package/dist/components/gov-form-switch.js +1 -1
  326. package/dist/components/gov-form-switch.js.map +1 -1
  327. package/dist/components/gov-grid-item.js +1 -1
  328. package/dist/components/gov-grid.js +1 -1
  329. package/dist/components/gov-icon.js +1 -1
  330. package/dist/components/gov-infobar.js +1 -1
  331. package/dist/components/gov-infobar.js.map +1 -1
  332. package/dist/components/gov-layout-column.js +1 -1
  333. package/dist/components/gov-layout.js +1 -1
  334. package/dist/components/gov-lifecycle.d.ts +11 -0
  335. package/dist/components/gov-lifecycle.js +2 -0
  336. package/dist/components/gov-lifecycle.js.map +1 -0
  337. package/dist/components/gov-link.d.ts +11 -0
  338. package/dist/components/gov-link.js +2 -0
  339. package/dist/components/gov-link.js.map +1 -0
  340. package/dist/components/gov-loading.js +1 -1
  341. package/dist/components/gov-loading.js.map +1 -1
  342. package/dist/components/gov-message.js +1 -1
  343. package/dist/components/gov-pagination.js +1 -1
  344. package/dist/components/gov-pagination.js.map +1 -1
  345. package/dist/components/gov-skeleton.js +1 -1
  346. package/dist/components/gov-spacer.js +1 -1
  347. package/dist/components/gov-stepper-item.js +1 -1
  348. package/dist/components/gov-stepper.js +1 -1
  349. package/dist/components/gov-tabs-item.js +1 -1
  350. package/dist/components/gov-tabs.js +1 -1
  351. package/dist/components/gov-tabs.js.map +1 -1
  352. package/dist/components/gov-tag.js +1 -1
  353. package/dist/components/gov-tag.js.map +1 -1
  354. package/dist/components/gov-theme-switch.js +1 -1
  355. package/dist/components/gov-theme-switch.js.map +1 -1
  356. package/dist/components/gov-tile.js +1 -1
  357. package/dist/components/gov-tile.js.map +1 -1
  358. package/dist/components/gov-tiles.js +1 -1
  359. package/dist/components/gov-toast.js +1 -1
  360. package/dist/components/gov-toast.js.map +1 -1
  361. package/dist/components/gov-tooltip-content.js +1 -1
  362. package/dist/components/gov-tooltip-content.js.map +1 -1
  363. package/dist/components/gov-tooltip.js +1 -1
  364. package/dist/components/gov-wizard-item.js +1 -1
  365. package/dist/components/gov-wizard-item.js.map +1 -1
  366. package/dist/components/gov-wizard.js +1 -1
  367. package/dist/components/index.js +1 -1
  368. package/dist/components/p-0b3574c2.js +2 -0
  369. package/dist/components/p-1eb9c053.js +2 -0
  370. package/dist/components/p-1eb9c053.js.map +1 -0
  371. package/dist/components/p-283b66c3.js +2 -0
  372. package/dist/components/p-283b66c3.js.map +1 -0
  373. package/dist/components/p-318d89bd.js +2 -0
  374. package/dist/components/{p-1366ed8d.js.map → p-318d89bd.js.map} +1 -1
  375. package/dist/components/p-3d7a21b5.js +2 -0
  376. package/dist/components/p-3d7a21b5.js.map +1 -0
  377. package/dist/components/{p-ae3dada7.js → p-42200001.js} +3 -3
  378. package/dist/components/p-42200001.js.map +1 -0
  379. package/dist/components/p-44a8a668.js +2 -0
  380. package/dist/components/p-46c567fd.js +2 -0
  381. package/dist/components/p-46c567fd.js.map +1 -0
  382. package/dist/components/p-5aad3497.js +2 -0
  383. package/dist/components/p-5aad3497.js.map +1 -0
  384. package/dist/components/p-68a1aaec.js +2 -0
  385. package/dist/components/p-68a1aaec.js.map +1 -0
  386. package/dist/components/p-73938936.js +2 -0
  387. package/dist/components/p-76d604c6.js +2 -0
  388. package/dist/components/p-7be2301a.js +2 -0
  389. package/dist/components/p-7f3becc5.js +2 -0
  390. package/dist/components/p-80dad64b.js +2 -0
  391. package/dist/components/{p-9a93146e.js.map → p-80dad64b.js.map} +1 -1
  392. package/dist/components/{p-7f8a24a7.js → p-860520b0.js} +2 -2
  393. package/dist/components/p-880743a5.js.map +1 -1
  394. package/dist/components/p-9908b9f0.js +2 -0
  395. package/dist/components/p-9908b9f0.js.map +1 -0
  396. package/dist/components/{p-59737af9.js → p-a521c59a.js} +2 -2
  397. package/dist/components/p-a6b7a6c2.js +2 -0
  398. package/dist/components/p-a6be4769.js +2 -0
  399. package/dist/components/p-a6be4769.js.map +1 -0
  400. package/dist/components/{p-6e19816b.js → p-ac359044.js} +2 -2
  401. package/dist/components/p-b95ebe8c.js +2 -0
  402. package/dist/components/{p-dbae2385.js.map → p-b95ebe8c.js.map} +1 -1
  403. package/dist/components/{p-0c93dd39.js → p-c61a5830.js} +2 -2
  404. package/dist/components/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  405. package/dist/components/p-cd6c2938.js.map +1 -0
  406. package/dist/components/p-e8ec030e.js +2 -0
  407. package/dist/components/p-e8ec030e.js.map +1 -0
  408. package/dist/components/p-ea7fdd2e.js +2 -0
  409. package/dist/components/p-ea7fdd2e.js.map +1 -0
  410. package/dist/core/core.css +8256 -7340
  411. package/dist/core/core.esm.js +1 -1
  412. package/dist/core/core.esm.js.map +1 -1
  413. package/dist/core/p-00d153bf.entry.js +2 -0
  414. package/dist/core/p-019e967c.entry.js +2 -0
  415. package/dist/core/{p-eeb9cb73.entry.js.map → p-019e967c.entry.js.map} +1 -1
  416. package/dist/core/p-04fa0ab5.entry.js +2 -0
  417. package/dist/core/{p-db940455.entry.js.map → p-04fa0ab5.entry.js.map} +1 -1
  418. package/dist/core/p-0b3574c2.js +2 -0
  419. package/dist/core/p-0be19b89.entry.js +2 -0
  420. package/dist/core/p-0fdd8929.entry.js +2 -0
  421. package/dist/core/{p-7cf554e6.entry.js.map → p-0fdd8929.entry.js.map} +1 -1
  422. package/dist/core/p-1200a32d.entry.js +2 -0
  423. package/dist/core/p-1200a32d.entry.js.map +1 -0
  424. package/dist/core/p-22fa411d.entry.js +2 -0
  425. package/dist/core/p-2739fa61.entry.js +2 -0
  426. package/dist/core/p-2739fa61.entry.js.map +1 -0
  427. package/dist/core/p-29ac15d2.js +2 -0
  428. package/dist/core/{p-28a7d3f7.js.map → p-29ac15d2.js.map} +1 -1
  429. package/dist/core/p-30eaeeec.entry.js +2 -0
  430. package/dist/core/p-3bbb77a0.js +2 -0
  431. package/dist/core/p-3cb36bae.entry.js +2 -0
  432. package/dist/core/p-3cb36bae.entry.js.map +1 -0
  433. package/dist/core/p-3d6edb09.entry.js +2 -0
  434. package/dist/core/p-3d6edb09.entry.js.map +1 -0
  435. package/dist/core/p-3f6a2d20.entry.js +2 -0
  436. package/dist/core/p-3f6a2d20.entry.js.map +1 -0
  437. package/dist/core/p-41c6b262.entry.js +2 -0
  438. package/dist/core/{p-e4978aab.entry.js.map → p-41c6b262.entry.js.map} +1 -1
  439. package/dist/core/p-432c3875.entry.js +2 -0
  440. package/dist/core/p-432c3875.entry.js.map +1 -0
  441. package/dist/core/p-439b66a5.entry.js +2 -0
  442. package/dist/core/{p-a53a277a.entry.js.map → p-439b66a5.entry.js.map} +1 -1
  443. package/dist/core/p-4b90fbc4.entry.js +2 -0
  444. package/dist/core/{p-17015e36.entry.js.map → p-4b90fbc4.entry.js.map} +1 -1
  445. package/dist/core/p-4c5f6299.entry.js +2 -0
  446. package/dist/core/p-4c5f6299.entry.js.map +1 -0
  447. package/dist/core/p-535316b4.entry.js +2 -0
  448. package/dist/core/p-5396935e.entry.js +2 -0
  449. package/dist/core/p-561718cd.entry.js +2 -0
  450. package/dist/core/{p-dc3fab19.entry.js.map → p-561718cd.entry.js.map} +1 -1
  451. package/dist/core/p-56dc370d.entry.js +2 -0
  452. package/dist/core/{p-6d772ff9.entry.js.map → p-56dc370d.entry.js.map} +1 -1
  453. package/dist/core/{p-42d9924c.js → p-56efd4a2.js} +2 -2
  454. package/dist/core/p-5aad3497.js +2 -0
  455. package/dist/core/p-5aad3497.js.map +1 -0
  456. package/dist/core/p-5b2131c1.entry.js +2 -0
  457. package/dist/core/p-5c9e6275.entry.js +2 -0
  458. package/dist/core/{p-f456bd71.entry.js.map → p-5c9e6275.entry.js.map} +1 -1
  459. package/dist/core/{p-60658ae9.js → p-5f1000da.js} +2 -2
  460. package/dist/core/p-65e67731.entry.js +2 -0
  461. package/dist/core/p-65e67731.entry.js.map +1 -0
  462. package/dist/core/p-6bb37fe2.entry.js +2 -0
  463. package/dist/core/{p-f1be099b.entry.js.map → p-6bb37fe2.entry.js.map} +1 -1
  464. package/dist/core/p-6e457b3d.entry.js +2 -0
  465. package/dist/core/{p-5dcbfca3.entry.js.map → p-6e457b3d.entry.js.map} +1 -1
  466. package/dist/core/p-72130a8f.entry.js +2 -0
  467. package/dist/core/p-72130a8f.entry.js.map +1 -0
  468. package/dist/core/p-76d604c6.js +2 -0
  469. package/dist/core/{p-a21dc94f.js.map → p-76d604c6.js.map} +1 -1
  470. package/dist/core/p-7b7e502b.entry.js +2 -0
  471. package/dist/core/p-7ba4daf4.js +2 -0
  472. package/dist/core/p-7e04730a.entry.js +2 -0
  473. package/dist/core/{p-182189d2.entry.js.map → p-7e04730a.entry.js.map} +1 -1
  474. package/dist/core/p-7f3becc5.js +2 -0
  475. package/dist/core/{p-a1e95a5f.js → p-8506b611.js} +3 -3
  476. package/dist/core/p-8506b611.js.map +1 -0
  477. package/dist/core/{p-e9a6cd71.js → p-860520b0.js} +2 -2
  478. package/dist/core/p-880743a5.js.map +1 -1
  479. package/dist/core/p-97a9725d.entry.js +2 -0
  480. package/dist/core/{p-9b41ac88.entry.js.map → p-97a9725d.entry.js.map} +1 -1
  481. package/dist/core/p-9c2c5447.entry.js +2 -0
  482. package/dist/core/p-9c2c5447.entry.js.map +1 -0
  483. package/dist/core/p-9fe35463.entry.js +2 -0
  484. package/dist/core/p-9fe35463.entry.js.map +1 -0
  485. package/dist/core/p-a521c59a.js +2 -0
  486. package/dist/core/p-b7cfe254.entry.js +2 -0
  487. package/dist/core/{p-963f9fcd.entry.js.map → p-b7cfe254.entry.js.map} +1 -1
  488. package/dist/core/p-b923a8d9.entry.js +2 -0
  489. package/dist/core/p-b923a8d9.entry.js.map +1 -0
  490. package/dist/core/p-bc966c46.entry.js +2 -0
  491. package/dist/core/{p-83039b10.entry.js.map → p-bc966c46.entry.js.map} +1 -1
  492. package/dist/core/p-bcb45a18.entry.js +2 -0
  493. package/dist/core/{p-2ed3afef.entry.js.map → p-bcb45a18.entry.js.map} +1 -1
  494. package/dist/core/p-bdc51179.entry.js +2 -0
  495. package/dist/core/p-bdc51179.entry.js.map +1 -0
  496. package/dist/core/p-c054f955.entry.js +2 -0
  497. package/dist/core/{p-663d3db2.entry.js.map → p-c054f955.entry.js.map} +1 -1
  498. package/dist/core/{p-c990d746.js → p-c61a5830.js} +2 -2
  499. package/dist/core/p-c916d0d2.entry.js +2 -0
  500. package/dist/core/p-c916d0d2.entry.js.map +1 -0
  501. package/dist/core/p-ccec8019.entry.js +2 -0
  502. package/dist/core/p-ccec8019.entry.js.map +1 -0
  503. package/dist/core/p-cd2d335d.entry.js +2 -0
  504. package/dist/core/{p-b3acb156.entry.js.map → p-cd2d335d.entry.js.map} +1 -1
  505. package/dist/core/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  506. package/dist/core/p-cd6c2938.js.map +1 -0
  507. package/dist/core/p-d65cef62.entry.js +2 -0
  508. package/dist/core/{p-aa8adc45.entry.js.map → p-d65cef62.entry.js.map} +1 -1
  509. package/dist/core/p-d836fcde.entry.js +2 -0
  510. package/dist/core/{p-b55fc943.entry.js.map → p-d836fcde.entry.js.map} +1 -1
  511. package/dist/core/p-da1db6fd.js +2 -0
  512. package/dist/core/p-da1db6fd.js.map +1 -0
  513. package/dist/core/p-da7f1e11.entry.js +2 -0
  514. package/dist/core/p-da7f1e11.entry.js.map +1 -0
  515. package/dist/core/p-dea64896.entry.js +2 -0
  516. package/dist/core/{p-ab9ae7ba.entry.js.map → p-dea64896.entry.js.map} +1 -1
  517. package/dist/core/{p-45a30859.js → p-e0e2e9c1.js} +2 -2
  518. package/dist/core/p-e44a0fee.js +2 -0
  519. package/dist/core/p-e61aa53b.entry.js +2 -0
  520. package/dist/core/{p-d2351924.entry.js.map → p-e61aa53b.entry.js.map} +1 -1
  521. package/dist/core/p-e834ee73.entry.js +2 -0
  522. package/dist/core/p-e834ee73.entry.js.map +1 -0
  523. package/dist/core/p-e8ec030e.js +2 -0
  524. package/dist/core/p-e8ec030e.js.map +1 -0
  525. package/dist/core/p-ea44d447.entry.js +2 -0
  526. package/dist/core/p-ea44d447.entry.js.map +1 -0
  527. package/dist/core/p-ea7fdd2e.js +2 -0
  528. package/dist/core/p-ea7fdd2e.js.map +1 -0
  529. package/dist/core/p-ed833334.entry.js +2 -0
  530. package/dist/core/p-ed833334.entry.js.map +1 -0
  531. package/dist/core/p-ed8fc183.entry.js +2 -0
  532. package/dist/core/p-ed8fc183.entry.js.map +1 -0
  533. package/dist/core/p-f4bcf817.entry.js +2 -0
  534. package/dist/core/p-f4bcf817.entry.js.map +1 -0
  535. package/dist/core/p-f4dac942.entry.js +2 -0
  536. package/dist/core/{p-9ff8f059.entry.js.map → p-f4dac942.entry.js.map} +1 -1
  537. package/dist/core/p-f7a4da9d.entry.js +2 -0
  538. package/dist/core/{p-a5489b0e.entry.js.map → p-f7a4da9d.entry.js.map} +1 -1
  539. package/dist/esm/{colors-02c1ea96.js → colors-4cf64720.js} +7 -9
  540. package/dist/esm/colors-4cf64720.js.map +1 -0
  541. package/dist/esm/{constants-6d727976.js → constants-085f9943.js} +2 -2
  542. package/dist/esm/{constants-6d727976.js.map → constants-085f9943.js.map} +1 -1
  543. package/dist/esm/{constants-990365f1.js → constants-372455eb.js} +3 -3
  544. package/dist/esm/{constants-990365f1.js.map → constants-372455eb.js.map} +1 -1
  545. package/dist/esm/{constants-d6418889.js → constants-3ab65c42.js} +2 -2
  546. package/dist/esm/{constants-d6418889.js.map → constants-3ab65c42.js.map} +1 -1
  547. package/dist/esm/{constants-48177684.js → constants-3b914c35.js} +3 -3
  548. package/dist/esm/{constants-48177684.js.map → constants-3b914c35.js.map} +1 -1
  549. package/dist/esm/{constants-d42abf99.js → constants-43f10674.js} +2 -2
  550. package/dist/esm/{constants-d42abf99.js.map → constants-43f10674.js.map} +1 -1
  551. package/dist/esm/{constants-501eb756.js → constants-4da2b3c0.js} +2 -2
  552. package/dist/esm/{constants-501eb756.js.map → constants-4da2b3c0.js.map} +1 -1
  553. package/dist/esm/{constants-c716fa44.js → constants-51f51588.js} +3 -3
  554. package/dist/esm/{constants-c716fa44.js.map → constants-51f51588.js.map} +1 -1
  555. package/dist/esm/{constants-f4e4ede6.js → constants-8429b68f.js} +3 -3
  556. package/dist/esm/{constants-f4e4ede6.js.map → constants-8429b68f.js.map} +1 -1
  557. package/dist/esm/{constants-47e20524.js → constants-9177ea52.js} +3 -3
  558. package/dist/esm/{constants-47e20524.js.map → constants-9177ea52.js.map} +1 -1
  559. package/dist/esm/{constants-7307438d.js → constants-bc210662.js} +3 -3
  560. package/dist/esm/{constants-7307438d.js.map → constants-bc210662.js.map} +1 -1
  561. package/dist/esm/core.js +3 -3
  562. package/dist/esm/{form-472e078d.js → form-713f26fd.js} +7 -6
  563. package/dist/esm/form-713f26fd.js.map +1 -0
  564. package/dist/esm/gov-accordion-item.entry.js +13 -11
  565. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  566. package/dist/esm/gov-accordion.entry.js +6 -7
  567. package/dist/esm/gov-accordion.entry.js.map +1 -1
  568. package/dist/esm/gov-attachments_3.entry.js +13 -14
  569. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  570. package/dist/esm/gov-backdrop.entry.js +7 -8
  571. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  572. package/dist/esm/gov-breadcrumbs.entry.js +7 -8
  573. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  574. package/dist/esm/gov-button.entry.js +12 -13
  575. package/dist/esm/gov-button.entry.js.map +1 -1
  576. package/dist/esm/gov-card.entry.js +7 -8
  577. package/dist/esm/gov-card.entry.js.map +1 -1
  578. package/dist/esm/gov-chip.entry.js +14 -15
  579. package/dist/esm/gov-chip.entry.js.map +1 -1
  580. package/dist/esm/gov-container.entry.js +3 -11
  581. package/dist/esm/gov-container.entry.js.map +1 -1
  582. package/dist/esm/gov-control-group.entry.js +7 -8
  583. package/dist/esm/gov-control-group.entry.js.map +1 -1
  584. package/dist/esm/gov-cookiebar.entry.js +3 -3
  585. package/dist/esm/gov-dialog.entry.js +7 -8
  586. package/dist/esm/gov-dialog.entry.js.map +1 -1
  587. package/dist/esm/gov-dropdown.entry.js +7 -7
  588. package/dist/esm/gov-empty.entry.js +7 -8
  589. package/dist/esm/gov-empty.entry.js.map +1 -1
  590. package/dist/esm/gov-error-code.entry.js +3 -3
  591. package/dist/esm/gov-flex_4.entry.js +332 -0
  592. package/dist/esm/gov-flex_4.entry.js.map +1 -0
  593. package/dist/esm/gov-form-autocomplete.entry.js +8 -10
  594. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  595. package/dist/esm/gov-form-checkbox-group.entry.js +8 -9
  596. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  597. package/dist/esm/gov-form-checkbox.entry.js +12 -13
  598. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  599. package/dist/esm/gov-form-control.entry.js +10 -10
  600. package/dist/esm/gov-form-file.entry.js +16 -13
  601. package/dist/esm/gov-form-file.entry.js.map +1 -1
  602. package/dist/esm/gov-form-group.entry.js +7 -8
  603. package/dist/esm/gov-form-group.entry.js.map +1 -1
  604. package/dist/esm/gov-form-input_2.entry.js +17 -16
  605. package/dist/esm/gov-form-input_2.entry.js.map +1 -1
  606. package/dist/esm/gov-form-multi-select.entry.js +16 -32
  607. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  608. package/dist/esm/gov-form-password-power.entry.js +2 -2
  609. package/dist/esm/gov-form-radio-group.entry.js +8 -9
  610. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  611. package/dist/esm/gov-form-radio.entry.js +11 -12
  612. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  613. package/dist/esm/gov-form-search.entry.js +4 -4
  614. package/dist/esm/gov-form-select.entry.js +13 -14
  615. package/dist/esm/gov-form-select.entry.js.map +1 -1
  616. package/dist/esm/gov-form-switch.entry.js +12 -13
  617. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  618. package/dist/esm/gov-grid-item.entry.js +3 -3
  619. package/dist/esm/gov-grid.entry.js +3 -3
  620. package/dist/esm/gov-infobar.entry.js +8 -9
  621. package/dist/esm/gov-infobar.entry.js.map +1 -1
  622. package/dist/esm/gov-layout-column.entry.js +3 -3
  623. package/dist/esm/gov-layout.entry.js +3 -3
  624. package/dist/esm/gov-lifecycle.entry.js +43 -0
  625. package/dist/esm/gov-lifecycle.entry.js.map +1 -0
  626. package/dist/esm/gov-link.entry.js +47 -0
  627. package/dist/esm/gov-link.entry.js.map +1 -0
  628. package/dist/esm/gov-loading.entry.js +6 -7
  629. package/dist/esm/gov-loading.entry.js.map +1 -1
  630. package/dist/esm/gov-message.entry.js +7 -8
  631. package/dist/esm/gov-message.entry.js.map +1 -1
  632. package/dist/esm/gov-pagination.entry.js +9 -10
  633. package/dist/esm/gov-pagination.entry.js.map +1 -1
  634. package/dist/esm/gov-spacer.entry.js +6 -7
  635. package/dist/esm/gov-spacer.entry.js.map +1 -1
  636. package/dist/esm/gov-stepper-item.entry.js +9 -10
  637. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  638. package/dist/esm/gov-stepper.entry.js +8 -9
  639. package/dist/esm/gov-stepper.entry.js.map +1 -1
  640. package/dist/esm/gov-tabs-item.entry.js +7 -7
  641. package/dist/esm/gov-tabs.entry.js +8 -9
  642. package/dist/esm/gov-tabs.entry.js.map +1 -1
  643. package/dist/esm/gov-tag.entry.js +12 -13
  644. package/dist/esm/gov-tag.entry.js.map +1 -1
  645. package/dist/esm/gov-tile.entry.js +4 -4
  646. package/dist/esm/gov-tile.entry.js.map +1 -1
  647. package/dist/esm/gov-tiles.entry.js +3 -3
  648. package/dist/esm/gov-toast.entry.js +11 -12
  649. package/dist/esm/gov-toast.entry.js.map +1 -1
  650. package/dist/esm/gov-tooltip-content.entry.js +6 -6
  651. package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
  652. package/dist/esm/gov-tooltip.entry.js +10 -11
  653. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  654. package/dist/esm/gov-wizard-item.entry.js +11 -12
  655. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  656. package/dist/esm/gov-wizard.entry.js +10 -11
  657. package/dist/esm/gov-wizard.entry.js.map +1 -1
  658. package/dist/esm/{win-cec370ad.js → gov.log-6b64cda6.js} +17 -3
  659. package/dist/esm/gov.log-6b64cda6.js.map +1 -0
  660. package/dist/esm/{index-d8b4eb6c.js → index-c263e031.js} +20 -12
  661. package/dist/esm/index-c263e031.js.map +1 -0
  662. package/dist/esm/loader.js +3 -3
  663. package/dist/esm/{props-c82e1abf.js → props-9d3c7ac1.js} +2 -2
  664. package/dist/esm/{props-c82e1abf.js.map → props-9d3c7ac1.js.map} +1 -1
  665. package/dist/esm/{string.utils-5ce3f551.js → string.utils-1da8f8fb.js} +2 -2
  666. package/dist/esm/string.utils-1da8f8fb.js.map +1 -0
  667. package/dist/esm/{template-3d84d705.js → template-7ecee4d1.js} +2 -20
  668. package/dist/esm/template-7ecee4d1.js.map +1 -0
  669. package/dist/esm/{utils-2b4ef320.js → utils-e10e994d.js} +2 -2
  670. package/dist/esm/{utils-2b4ef320.js.map → utils-e10e994d.js.map} +1 -1
  671. package/dist/esm/{wcag-fa5ce56c.js → wcag-253a4421.js} +3 -4
  672. package/dist/esm/wcag-253a4421.js.map +1 -0
  673. package/dist/hydrate/index.js +431 -10072
  674. package/dist/hydrate/index.mjs +431 -10072
  675. package/dist/stencil.config.js +9 -6
  676. package/dist/stencil.config.js.map +1 -1
  677. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +1 -0
  678. package/dist/types/components/gov-button/button/gov-button.d.ts +1 -1
  679. package/dist/types/components/gov-chip/gov-chip.d.ts +3 -3
  680. package/dist/types/components/gov-container/gov-container.d.ts +0 -6
  681. package/dist/types/components/gov-flex/constants.d.ts +3 -0
  682. package/dist/types/components/gov-flex/gov-flex.d.ts +33 -0
  683. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +0 -4
  684. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -4
  685. package/dist/types/components/gov-form/input/constants.d.ts +1 -0
  686. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -2
  687. package/dist/types/components/gov-form/switch/constants.d.ts +1 -1
  688. package/dist/types/components/gov-icon/constants.d.ts +4 -1
  689. package/dist/types/components/gov-icon/gov-icon.d.ts +8 -3
  690. package/dist/types/components/gov-icon/list.d.ts +1 -1
  691. package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  692. package/dist/types/components/gov-link/constants.d.ts +7 -0
  693. package/dist/types/components/gov-link/gov-link.d.ts +30 -0
  694. package/dist/types/components/gov-tag/gov-tag.d.ts +2 -2
  695. package/dist/types/components/gov-theme-switch/constants.d.ts +9 -0
  696. package/dist/types/components/gov-theme-switch/gov-theme-switch.d.ts +26 -2
  697. package/dist/types/components/gov-tile/gov-tile.d.ts +1 -1
  698. package/dist/types/components/gov-toast/constants.d.ts +1 -0
  699. package/dist/types/components.d.ts +191 -50
  700. package/dist/types/core/constants/colors.d.ts +6 -8
  701. package/dist/types/helpers/Dom/document.d.ts +4 -0
  702. package/dist/types/helpers/Dom/template.d.ts +0 -1
  703. package/dist/types/helpers/Dom/template.types.d.ts +0 -1
  704. package/dist/types/utils/string.utils.d.ts +1 -0
  705. package/package.json +4 -4
  706. package/dist/cjs/colors-976f6dff.js.map +0 -1
  707. package/dist/cjs/form-c1aec07a.js.map +0 -1
  708. package/dist/cjs/gov-app_2.cjs.entry.js +0 -9891
  709. package/dist/cjs/gov-app_2.cjs.entry.js.map +0 -1
  710. package/dist/cjs/gov-form-label.cjs.entry.js +0 -27
  711. package/dist/cjs/gov-form-label.cjs.entry.js.map +0 -1
  712. package/dist/cjs/gov-icon.cjs.entry.js +0 -161
  713. package/dist/cjs/gov-icon.cjs.entry.js.map +0 -1
  714. package/dist/cjs/gov.log-1e8bab6e.js +0 -21
  715. package/dist/cjs/gov.log-1e8bab6e.js.map +0 -1
  716. package/dist/cjs/index-1af4880c.js.map +0 -1
  717. package/dist/cjs/string.utils-2335838f.js.map +0 -1
  718. package/dist/cjs/template-b070338f.js.map +0 -1
  719. package/dist/cjs/wcag-31089f70.js.map +0 -1
  720. package/dist/cjs/win-587f4614.js.map +0 -1
  721. package/dist/collection/components/gov-app/gov-app.css +0 -68
  722. package/dist/collection/components/gov-app/gov-app.js +0 -93
  723. package/dist/collection/components/gov-app/gov-app.js.map +0 -1
  724. package/dist/components/gov-app.js +0 -2
  725. package/dist/components/gov-app.js.map +0 -1
  726. package/dist/components/p-0075138f.js +0 -2
  727. package/dist/components/p-0075138f.js.map +0 -1
  728. package/dist/components/p-08621bdf.js +0 -2
  729. package/dist/components/p-1366ed8d.js +0 -2
  730. package/dist/components/p-19c681a3.js +0 -2
  731. package/dist/components/p-1a0b3b4f.js +0 -2
  732. package/dist/components/p-1a0b3b4f.js.map +0 -1
  733. package/dist/components/p-255d0471.js +0 -2
  734. package/dist/components/p-255d0471.js.map +0 -1
  735. package/dist/components/p-565120d5.js +0 -2
  736. package/dist/components/p-736e4917.js +0 -2
  737. package/dist/components/p-7501abe8.js +0 -2
  738. package/dist/components/p-7501abe8.js.map +0 -1
  739. package/dist/components/p-778e3fff.js +0 -2
  740. package/dist/components/p-778e3fff.js.map +0 -1
  741. package/dist/components/p-7fd16831.js +0 -2
  742. package/dist/components/p-7fd16831.js.map +0 -1
  743. package/dist/components/p-95d41a3b.js.map +0 -1
  744. package/dist/components/p-9a93146e.js +0 -2
  745. package/dist/components/p-ae3dada7.js.map +0 -1
  746. package/dist/components/p-ae7e6127.js +0 -2
  747. package/dist/components/p-cc90a508.js +0 -2
  748. package/dist/components/p-cc90a508.js.map +0 -1
  749. package/dist/components/p-d5f25595.js +0 -2
  750. package/dist/components/p-d5f25595.js.map +0 -1
  751. package/dist/components/p-dbae2385.js +0 -2
  752. package/dist/components/p-dcaf0383.js +0 -2
  753. package/dist/components/p-dcaf0383.js.map +0 -1
  754. package/dist/components/p-e183a7c7.js +0 -2
  755. package/dist/components/p-e3aeaca0.js +0 -2
  756. package/dist/components/p-e3aeaca0.js.map +0 -1
  757. package/dist/components/p-edd1417b.js +0 -2
  758. package/dist/core/p-006e52f1.entry.js +0 -2
  759. package/dist/core/p-006e52f1.entry.js.map +0 -1
  760. package/dist/core/p-0075138f.js +0 -2
  761. package/dist/core/p-0075138f.js.map +0 -1
  762. package/dist/core/p-023787b3.entry.js +0 -2
  763. package/dist/core/p-023787b3.entry.js.map +0 -1
  764. package/dist/core/p-052cc573.js +0 -2
  765. package/dist/core/p-0a952b3c.entry.js +0 -2
  766. package/dist/core/p-0a952b3c.entry.js.map +0 -1
  767. package/dist/core/p-0ebc8365.entry.js +0 -2
  768. package/dist/core/p-0ebc8365.entry.js.map +0 -1
  769. package/dist/core/p-169b67af.js +0 -2
  770. package/dist/core/p-17015e36.entry.js +0 -2
  771. package/dist/core/p-182189d2.entry.js +0 -2
  772. package/dist/core/p-2614044c.js +0 -2
  773. package/dist/core/p-28a7d3f7.js +0 -2
  774. package/dist/core/p-2ed3afef.entry.js +0 -2
  775. package/dist/core/p-2effdd60.entry.js +0 -2
  776. package/dist/core/p-2effdd60.entry.js.map +0 -1
  777. package/dist/core/p-35e66bef.entry.js +0 -2
  778. package/dist/core/p-35e66bef.entry.js.map +0 -1
  779. package/dist/core/p-3f2b803c.entry.js +0 -2
  780. package/dist/core/p-477a5027.entry.js +0 -2
  781. package/dist/core/p-477a5027.entry.js.map +0 -1
  782. package/dist/core/p-47e364bb.entry.js +0 -2
  783. package/dist/core/p-47e364bb.entry.js.map +0 -1
  784. package/dist/core/p-4bce896c.js +0 -2
  785. package/dist/core/p-5c88f415.entry.js +0 -2
  786. package/dist/core/p-5c88f415.entry.js.map +0 -1
  787. package/dist/core/p-5dc0af54.entry.js +0 -2
  788. package/dist/core/p-5dc0af54.entry.js.map +0 -1
  789. package/dist/core/p-5dcbfca3.entry.js +0 -2
  790. package/dist/core/p-663d3db2.entry.js +0 -2
  791. package/dist/core/p-69d56f17.js +0 -2
  792. package/dist/core/p-6aa40794.js +0 -2
  793. package/dist/core/p-6b42a387.entry.js +0 -2
  794. package/dist/core/p-6d772ff9.entry.js +0 -2
  795. package/dist/core/p-6ed147a6.entry.js +0 -2
  796. package/dist/core/p-6ed147a6.entry.js.map +0 -1
  797. package/dist/core/p-7cf554e6.entry.js +0 -2
  798. package/dist/core/p-81b0848c.entry.js +0 -2
  799. package/dist/core/p-81b0848c.entry.js.map +0 -1
  800. package/dist/core/p-83039b10.entry.js +0 -2
  801. package/dist/core/p-904de5e6.entry.js +0 -2
  802. package/dist/core/p-904de5e6.entry.js.map +0 -1
  803. package/dist/core/p-91a9cd24.entry.js +0 -2
  804. package/dist/core/p-95d41a3b.js.map +0 -1
  805. package/dist/core/p-963f9fcd.entry.js +0 -2
  806. package/dist/core/p-9b41ac88.entry.js +0 -2
  807. package/dist/core/p-9d0f20ec.entry.js +0 -2
  808. package/dist/core/p-9d0f20ec.entry.js.map +0 -1
  809. package/dist/core/p-9dde00d8.entry.js +0 -2
  810. package/dist/core/p-9dde00d8.entry.js.map +0 -1
  811. package/dist/core/p-9ff8f059.entry.js +0 -2
  812. package/dist/core/p-a16229c6.entry.js +0 -2
  813. package/dist/core/p-a16229c6.entry.js.map +0 -1
  814. package/dist/core/p-a1e95a5f.js.map +0 -1
  815. package/dist/core/p-a1ebb4da.entry.js +0 -2
  816. package/dist/core/p-a1ebb4da.entry.js.map +0 -1
  817. package/dist/core/p-a21dc94f.js +0 -2
  818. package/dist/core/p-a53a277a.entry.js +0 -2
  819. package/dist/core/p-a5489b0e.entry.js +0 -2
  820. package/dist/core/p-a54f1db9.entry.js +0 -2
  821. package/dist/core/p-a693ffbf.js +0 -2
  822. package/dist/core/p-a693ffbf.js.map +0 -1
  823. package/dist/core/p-aa8adc45.entry.js +0 -2
  824. package/dist/core/p-ab9ae7ba.entry.js +0 -2
  825. package/dist/core/p-b3acb156.entry.js +0 -2
  826. package/dist/core/p-b48a4aa0.js +0 -2
  827. package/dist/core/p-b48a4aa0.js.map +0 -1
  828. package/dist/core/p-b55fc943.entry.js +0 -2
  829. package/dist/core/p-b838bb27.entry.js +0 -2
  830. package/dist/core/p-c214c202.entry.js +0 -2
  831. package/dist/core/p-c214c202.entry.js.map +0 -1
  832. package/dist/core/p-c4c7cb24.entry.js +0 -2
  833. package/dist/core/p-d2351924.entry.js +0 -2
  834. package/dist/core/p-db940455.entry.js +0 -2
  835. package/dist/core/p-dc3fab19.entry.js +0 -2
  836. package/dist/core/p-e0d428c9.js +0 -2
  837. package/dist/core/p-e0d428c9.js.map +0 -1
  838. package/dist/core/p-e134b123.entry.js +0 -2
  839. package/dist/core/p-e3aeaca0.js +0 -2
  840. package/dist/core/p-e3aeaca0.js.map +0 -1
  841. package/dist/core/p-e4978aab.entry.js +0 -2
  842. package/dist/core/p-edc05eff.entry.js +0 -2
  843. package/dist/core/p-edc05eff.entry.js.map +0 -1
  844. package/dist/core/p-eeb9cb73.entry.js +0 -2
  845. package/dist/core/p-f141ad5e.entry.js +0 -2
  846. package/dist/core/p-f1be099b.entry.js +0 -2
  847. package/dist/core/p-f456bd71.entry.js +0 -2
  848. package/dist/core/p-fa7caad6.entry.js +0 -2
  849. package/dist/core/p-fa7caad6.entry.js.map +0 -1
  850. package/dist/core/p-fc90bf06.entry.js +0 -2
  851. package/dist/core/p-fc90bf06.entry.js.map +0 -1
  852. package/dist/esm/colors-02c1ea96.js.map +0 -1
  853. package/dist/esm/form-472e078d.js.map +0 -1
  854. package/dist/esm/gov-app_2.entry.js +0 -9886
  855. package/dist/esm/gov-app_2.entry.js.map +0 -1
  856. package/dist/esm/gov-form-label.entry.js +0 -23
  857. package/dist/esm/gov-form-label.entry.js.map +0 -1
  858. package/dist/esm/gov-icon.entry.js +0 -157
  859. package/dist/esm/gov-icon.entry.js.map +0 -1
  860. package/dist/esm/gov.log-6e9faad2.js +0 -19
  861. package/dist/esm/gov.log-6e9faad2.js.map +0 -1
  862. package/dist/esm/index-d8b4eb6c.js.map +0 -1
  863. package/dist/esm/string.utils-5ce3f551.js.map +0 -1
  864. package/dist/esm/template-3d84d705.js.map +0 -1
  865. package/dist/esm/wcag-fa5ce56c.js.map +0 -1
  866. package/dist/esm/win-cec370ad.js.map +0 -1
  867. package/dist/types/components/gov-app/gov-app.d.ts +0 -37
  868. /package/dist/components/{p-19c681a3.js.map → p-0b3574c2.js.map} +0 -0
  869. /package/dist/components/{p-08621bdf.js.map → p-44a8a668.js.map} +0 -0
  870. /package/dist/components/{p-736e4917.js.map → p-73938936.js.map} +0 -0
  871. /package/dist/components/{p-565120d5.js.map → p-76d604c6.js.map} +0 -0
  872. /package/dist/components/{p-e183a7c7.js.map → p-7be2301a.js.map} +0 -0
  873. /package/dist/components/{p-edd1417b.js.map → p-7f3becc5.js.map} +0 -0
  874. /package/dist/components/{p-7f8a24a7.js.map → p-860520b0.js.map} +0 -0
  875. /package/dist/components/{p-59737af9.js.map → p-a521c59a.js.map} +0 -0
  876. /package/dist/components/{p-ae7e6127.js.map → p-a6b7a6c2.js.map} +0 -0
  877. /package/dist/components/{p-6e19816b.js.map → p-ac359044.js.map} +0 -0
  878. /package/dist/components/{p-0c93dd39.js.map → p-c61a5830.js.map} +0 -0
  879. /package/dist/core/{p-a54f1db9.entry.js.map → p-00d153bf.entry.js.map} +0 -0
  880. /package/dist/core/{p-169b67af.js.map → p-0b3574c2.js.map} +0 -0
  881. /package/dist/core/{p-3f2b803c.entry.js.map → p-0be19b89.entry.js.map} +0 -0
  882. /package/dist/core/{p-f141ad5e.entry.js.map → p-22fa411d.entry.js.map} +0 -0
  883. /package/dist/core/{p-b838bb27.entry.js.map → p-30eaeeec.entry.js.map} +0 -0
  884. /package/dist/core/{p-69d56f17.js.map → p-3bbb77a0.js.map} +0 -0
  885. /package/dist/core/{p-6b42a387.entry.js.map → p-535316b4.entry.js.map} +0 -0
  886. /package/dist/core/{p-91a9cd24.entry.js.map → p-5396935e.entry.js.map} +0 -0
  887. /package/dist/core/{p-42d9924c.js.map → p-56efd4a2.js.map} +0 -0
  888. /package/dist/core/{p-e134b123.entry.js.map → p-5b2131c1.entry.js.map} +0 -0
  889. /package/dist/core/{p-60658ae9.js.map → p-5f1000da.js.map} +0 -0
  890. /package/dist/core/{p-c4c7cb24.entry.js.map → p-7b7e502b.entry.js.map} +0 -0
  891. /package/dist/core/{p-2614044c.js.map → p-7ba4daf4.js.map} +0 -0
  892. /package/dist/core/{p-6aa40794.js.map → p-7f3becc5.js.map} +0 -0
  893. /package/dist/core/{p-e9a6cd71.js.map → p-860520b0.js.map} +0 -0
  894. /package/dist/core/{p-4bce896c.js.map → p-a521c59a.js.map} +0 -0
  895. /package/dist/core/{p-c990d746.js.map → p-c61a5830.js.map} +0 -0
  896. /package/dist/core/{p-45a30859.js.map → p-e0e2e9c1.js.map} +0 -0
  897. /package/dist/core/{p-052cc573.js.map → p-e44a0fee.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"gov-form-input.gov-skeleton.entry.js","mappings":";;;;;;;;;;;;;;;;AAcA,IAAK,IAGJ;AAHD,WAAK,IAAI;IACR,uBAAe,CAAA;IACf,6BAAqB,CAAA;AACtB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;MAKY,YAAY;IAOxB;;;;;;;;;;;oBAsB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;SACZ,CAAA;QACD,IAAI,IAAI,CAAC,KAAK,EAAE;YACf,iBAAiB,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;SACpC;QAED,IAAI,IAAI,CAAC,MAAM,EAAE;YAChB,iBAAiB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;SACtC;QAED,yBAAW,iBAAiB,EAAC;KAC7B;IAED,MAAM;QACL,QACC,EAAC,IAAI,mEAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAClB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,KAAK,EAAE;gBACN,CAAC,aAAa,CAAC,IAAI,GAAG,IAAI;gBAC1B,MAAM,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;gBAC/B,IAAI,EAAE,IAAI,CAAC,KAAK,KAAK,MAAM;gBAC3B,QAAQ,EAAE,IAAI,CAAC,SAAS,KAAK,UAAU;gBACvC,KAAK,EAAE,IAAI,CAAC,SAAS,KAAK,OAAO;aACjC,IACG,IAAI,CAAC,mBAAmB,iBAClB,MAAM,mBACF,GAAG,mBACH,KAAK,EACnB,IAAI,EAAC,aAAa,EAClB,QAAQ,EAAC,GAAG,EACZ,KAAK,EAAE,IAAI,CAAC,KAAK,IACb,EACP;KACD;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-form/input/gov-form-input.tsx","../../../packages/core/src/components/gov-loading/skeleton/constants.ts","../../../packages/core/src/components/gov-loading/skeleton/gov-skeleton.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined, toOnOffAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormInputClass, FormInputSizes, FormInputSizesType, InputType, Type,} from \"./constants\"\nimport {FormInputEvent} from \"./gov-form-input.types\"\nimport {Nullable} from \"../../../types/interfaces\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\nenum Tags {\n\tINPUT = \"input\",\n\tTEXTAREA = \"textarea\",\n}\n\n@Component({\n\ttag: \"gov-form-input\",\n})\nexport class GovFormInput {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly inputId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.inputId = createID(\"GovInput\")\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormInputElement\n\t/**\n\t * Value of input\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Custom input identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly success: boolean\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Generates a texarea for the possibility of multiple lines\n\t */\n\t@Prop() readonly multiline: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows\n\t */\n\t@Prop() readonly rows: number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols\n\t */\n\t@Prop() readonly cols: number\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop({reflect:true}) readonly required: boolean = false\n\t/**\n\t * Makes the input component disabled.\n\t */\n\t@Prop({reflect:true}) readonly disabled: boolean = false\n\t/**\n\t * Text that appears in the form control when it has no value set\n\t */\n\t@Prop() readonly placeholder: string\n\t/**\n\t * The value is not editable\n\t */\n\t@Prop() readonly readonly: boolean\n\t/**\n\t * Minimum length (number of characters) of value\n\t */\n\t@Prop() readonly minlength: number\n\t/**\n\t * Maximum length (number of characters) of value\n\t */\n\t@Prop() readonly maxlength: number\n\t/**\n\t * Minimum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly min?: string | number\n\t/**\n\t * Maximum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly max?: string | number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocomplete\n\t */\n\t@Prop() readonly autocomplete: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocorrect\n\t */\n\t@Prop() readonly autocorrect: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck\n\t */\n\t@Prop() readonly spellcheck: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang\n\t */\n\t@Prop({attribute: \"input-lang\"}) readonly inputLang: string\n\t/**\n\t * Defined the visual style of input\n\t */\n\t@Prop() readonly type?: Type\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\n\t */\n\t@Prop({attribute: \"input-type\"}) readonly inputType: InputType = \"text\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role\n\t */\n\t@Prop() readonly role: Nullable<string>\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly invalid: boolean\n\t/**\n\t * Accessible text for password display\n\t */\n\t@Prop({attribute: \"accessible-show-password-label\"}) readonly accessibleShowPasswordLabel = 'Zobrazit heslo'\n\t/**\n\t * Accessible text to hide the password\n\t */\n\t@Prop({attribute: \"accessible-hide-password-label\"}) readonly accessibleHidePasswordLabel = 'Skrýt heslo'\n\t/**\n\t * Emitted when the input has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-input\"}) govInput: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keyup\"}) govKeyUp: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-hydrated\"}) govHydrated: EventEmitter<void>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keydown\"}) govKeyDown: EventEmitter<FormInputEvent>\n\t@State() focused: boolean\n\t@State() showPassword: boolean = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormInputSizes, newValue, FormInputClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"success\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"success\", toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", this.multiline ? Tags.TEXTAREA : Tags.INPUT)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t\tthis.govHydrated.emit();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\trender() {\n\t\tconst Tag = this.multiline ? Tags.TEXTAREA : Tags.INPUT\n\n\t\treturn (\n\t\t\t<Host class={FormInputClass.root} size={this.size} type={this.type}>\n\t\t\t\t{this.h.hasSlot(\"prefix\") && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t{this.h.hasSlot(\"left-icon\") && <slot name=\"left-icon\"/>}\n\n\t\t\t\t\t{this.h.hasSlot(\"right-icon\") && this.inputType !== 'password' && <slot name=\"right-icon\"/>}\n\n\t\t\t\t\t{this.success && !this.multiline &&\n\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"check-lg\"></gov-icon>}\n\t\t\t\t\t{this.invalid && !this.multiline &&\n\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"exclamation-lg\"></gov-icon>}\n\t\t\t\t\t<Tag\n\t\t\t\t\t\ttype={this.inputType === 'password' && this.showPassword ? 'text' : this.inputType}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tid={this.identifier || this.inputId}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonInput={this.onInputHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\tonKeyUp={this.onKeyUpHandler.bind(this)}\n\t\t\t\t\t\tonKeyDown={this.onKeyDownHandler.bind(this)}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tspellcheck={toBoolAttrIfDefined(this.spellcheck)}\n\t\t\t\t\t\tlang={this.inputLang}\n\t\t\t\t\t\treadonly={toBoolAttrIfDefined(this.readonly)}\n\t\t\t\t\t\tautocomplete={toOnOffAttrIfDefined(this.autocomplete)}\n\t\t\t\t\t\tautocorrect={toOnOffAttrIfDefined(this.autocorrect)}\n\t\t\t\t\t\tminlength={this.minlength}\n\t\t\t\t\t\tmaxlength={this.maxlength}\n\t\t\t\t\t\tmin={this.min}\n\t\t\t\t\t\tmax={this.max}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\trows={this.rows}\n\t\t\t\t\t\tcols={this.cols}\n\t\t\t\t\t\trole={this.role}\n\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t\t{this.inputType === 'password' ? (\n\t\t\t\t\t\t<gov-button color={'primary'}\n\t\t\t\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\taria-label={this.showPassword ? this.accessibleHidePasswordLabel : this.accessibleShowPasswordLabel}\n\t\t\t\t\t\t\t\t\ton-gov-click={() => this.showPassword = !this.showPassword}>\n\t\t\t\t\t\t\t<gov-icon slot=\"left-icon\" name=\"eye\" type=\"basic\"></gov-icon>\n\t\t\t\t\t\t</gov-button>) : null}\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot(\"sufix\") && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyUpHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyUp.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyDownHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyDown.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLInputElement).value\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.inputRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.value = value\n\t}\n\n\t/**\n\t * Clears input value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = \"\"\n\t\tthis.inputRef.value = \"\"\n\t}\n\n\t/**\n\t * Returns an instance of the native html input element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n","import { pick } from \"../../../utils/utils\"\nimport { ValueOf } from \"../../../types/interfaces\"\nimport {Sizes} from \"../../../core/constants/sizes\";\nimport {Colors} from \"../../../core/constants/colors\";\n\nexport const SkeletonSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type SkeletonSizesType = `${ValueOf<typeof SkeletonSizes>}`\n\nexport const SkeletonColors = pick(Colors, [\"PRIMARY\", \"NEUTRAL\"])\nexport type SkeletonColorType = `${ValueOf<typeof SkeletonColors>}`\n\nexport enum SkeletonShapes {\n\tCIRCLE = 'circle',\n\tLINE = 'line'\n}\nexport type SkeletonShapesType = `${ValueOf<typeof SkeletonShapes>}`\n\nexport enum SkeletonAnimation {\n\tPULSE = 'pulse',\n\tPROGRESS = 'progress',\n\tFALSE = 'false'\n}\nexport type SkeletonAnimationType = `${ValueOf<typeof SkeletonAnimation>}`\n\nexport const SkeletonClass = {\n\troot: 'gov-skeleton',\n}\n","import {Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {\n\tSkeletonAnimation,\n\tSkeletonAnimationType,\n\tSkeletonClass,\n\tSkeletonColorType,\n\tSkeletonShapes,\n\tSkeletonShapesType,\n\tSkeletonSizes,\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormInputSizesType} from \"../../gov-form/input/constants\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-skeleton\",\n})\nexport class GovSkeleton {\n\th: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovSkeletonElement\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Style variation of the skeleton.\n\t */\n\t@Prop() readonly color?: SkeletonColorType = \"neutral\"\n\t/**\n\t * Shape of the skeleton\n\t */\n\t@Prop() shape?: SkeletonShapesType = \"line\"\n\t/**\n\t * Width of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() width: string = null\n\t/**\n\t * Height of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() height: string = null\n\t/**\n\t * Animation type\n\t */\n\t@Prop() animation?: SkeletonAnimationType = \"progress\"\n\n\titems: number[] = []\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(SkeletonSizes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('shape')\n\tvalidateShape(newValue: string): void {\n\t\tvalidateProp(SkeletonShapes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('animation')\n\tvalidateAnimation(newValue: string): void {\n\t\tvalidateProp(SkeletonAnimation, newValue, SkeletonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateShape(this.shape)\n\t\tthis.validateAnimation(this.animation)\n\t\tthis.init()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentWillUpdate() {\n\t\tthis.init()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tinit() {\n\t\tthis.items.fill(1)\n\t}\n\n\tget style() {\n\t\tconst dimenssionsStyles: {\n\t\t\twidth?: string,\n\t\t\theight?: string,\n\t\t} = {\n\t\t\twidth: null,\n\t\t\theight: null,\n\t\t}\n\t\tif (this.width) {\n\t\t\tdimenssionsStyles.width = this.width\n\t\t}\n\n\t\tif (this.height) {\n\t\t\tdimenssionsStyles.height = this.height\n\t\t}\n\n\t\treturn {...dimenssionsStyles}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t color={this.color}\n\t\t\t\t class={{\n\t\t\t\t\t [SkeletonClass.root]: true,\n\t\t\t\t\t circle: this.shape === \"circle\",\n\t\t\t\t\t line: this.shape === \"line\",\n\t\t\t\t\t progress: this.animation === \"progress\",\n\t\t\t\t\t pulse: this.animation === \"pulse\",\n\t\t\t\t }}\n\t\t\t\t {...this.inheritedAttributes}\n\t\t\t\t aria-busy=\"true\"\n\t\t\t\t aria-valuemin=\"0\"\n\t\t\t\t aria-valuemax=\"100\"\n\t\t\t\t role=\"progressbar\"\n\t\t\t\t tabindex=\"0\"\n\t\t\t\t style={this.style}>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-form-input.gov-skeleton.entry.js","mappings":";;;;;;;;;;;;;;;AAcA,IAAK,IAGJ;AAHD,WAAK,IAAI;IACR,uBAAe,CAAA;IACf,6BAAqB,CAAA;AACtB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;MAKY,YAAY;IAOxB;;;;;;;;;;;oBAsB6C,GAAG;;;;;wBAqBG,KAAK;wBAIL,KAAK;;;;;;;;;;;;yBAiDS,MAAM;;;2CAaqB,gBAAgB;2CAIhB,aAAa;;4BA0BxE,KAAK;mCAeK,EAAE;Q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eAAe,CAAC,aAAa,CAAC,CAAA;QACxC,IAAI,CAAC,mBAAmB,mCAAO,IAAI,CAAC,mBAAmB,KAAE,CAAC,aAAa,GAAG,QAAQ,GAAC,CAAC;KACpF;IAED,IAAI;QACH,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KAClB;IAED,IAAI,KAAK;QACR,MAAM,iBAAiB,GAGnB;YACH,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,IAAI;SACZ,CAAA;QACD,IAAI,IAAI,CAAC,KAAK,EAAE;YACf,iBAAiB,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;SACpC;QAED,IAAI,IAAI,CAAC,MAAM,EAAE;YAChB,iBAAiB,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;SACtC;QAED,yBAAW,iBAAiB,EAAC;KAC7B;IAED,MAAM;QACL,QACC,EAAC,IAAI,mEAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAClB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,KAAK,EAAE;gBACN,CAAC,aAAa,CAAC,IAAI,GAAG,IAAI;gBAC1B,MAAM,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;gBAC/B,IAAI,EAAE,IAAI,CAAC,KAAK,KAAK,MAAM;gBAC3B,QAAQ,EAAE,IAAI,CAAC,SAAS,KAAK,UAAU;gBACvC,KAAK,EAAE,IAAI,CAAC,SAAS,KAAK,OAAO;aACjC,IACG,IAAI,CAAC,mBAAmB,iBAClB,MAAM,mBACF,GAAG,mBACH,KAAK,EACnB,IAAI,EAAC,aAAa,EAClB,QAAQ,EAAC,GAAG,EACZ,KAAK,EAAE,IAAI,CAAC,KAAK,IACb,EACP;KACD;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-form/input/gov-form-input.tsx","../../../packages/core/src/components/gov-loading/skeleton/constants.ts","../../../packages/core/src/components/gov-loading/skeleton/gov-skeleton.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined, toOnOffAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {FormInputClass, FormInputSizes, FormInputSizesType, InputType, Type,} from \"./constants\"\nimport {FormInputEvent} from \"./gov-form-input.types\"\nimport {Nullable} from \"../../../types/interfaces\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\nenum Tags {\n\tINPUT = \"input\",\n\tTEXTAREA = \"textarea\",\n}\n\n@Component({\n\ttag: \"gov-form-input\",\n})\nexport class GovFormInput {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate inputRef?: HTMLInputElement\n\tprivate readonly inputId: string\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.inputId = createID(\"GovInput\")\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormInputElement\n\t/**\n\t * Value of input\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Custom input identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly success: boolean\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Generates a texarea for the possibility of multiple lines\n\t */\n\t@Prop() readonly multiline: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows\n\t */\n\t@Prop() readonly rows: number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols\n\t */\n\t@Prop() readonly cols: number\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop({reflect:true}) readonly required: boolean = false\n\t/**\n\t * Makes the input component disabled.\n\t */\n\t@Prop({reflect:true}) readonly disabled: boolean = false\n\t/**\n\t * Text that appears in the form control when it has no value set\n\t */\n\t@Prop() readonly placeholder: string\n\t/**\n\t * The value is not editable\n\t */\n\t@Prop() readonly readonly: boolean\n\t/**\n\t * Minimum length (number of characters) of value\n\t */\n\t@Prop() readonly minlength: number\n\t/**\n\t * Maximum length (number of characters) of value\n\t */\n\t@Prop() readonly maxlength: number\n\t/**\n\t * Minimum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly min?: string | number\n\t/**\n\t * Maximum value that is acceptable and valid for the input containing the attribute\n\t */\n\t@Prop() readonly max?: string | number\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocomplete\n\t */\n\t@Prop() readonly autocomplete: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-autocorrect\n\t */\n\t@Prop() readonly autocorrect: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck\n\t */\n\t@Prop() readonly spellcheck: boolean\n\t/**\n\t * Same as original parameter https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang\n\t */\n\t@Prop({attribute: \"input-lang\"}) readonly inputLang: string\n\t/**\n\t * Defined the visual style of input\n\t */\n\t@Prop() readonly type?: Type\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\n\t */\n\t@Prop({attribute: \"input-type\"}) readonly inputType: InputType = \"text\"\n\t/**\n\t * Same as original parameter\n\t * @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/input_role\n\t */\n\t@Prop() readonly role: Nullable<string>\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly invalid: boolean\n\t/**\n\t * Accessible text for password display\n\t */\n\t@Prop({attribute: \"accessible-show-password-label\"}) readonly accessibleShowPasswordLabel = 'Zobrazit heslo'\n\t/**\n\t * Accessible text to hide the password\n\t */\n\t@Prop({attribute: \"accessible-hide-password-label\"}) readonly accessibleHidePasswordLabel = 'Skrýt heslo'\n\t/**\n\t * Emitted when the input has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-input\"}) govInput: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keyup\"}) govKeyUp: EventEmitter<FormInputEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-hydrated\"}) govHydrated: EventEmitter<void>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: \"gov-keydown\"}) govKeyDown: EventEmitter<FormInputEvent>\n\t@State() focused: boolean\n\t@State() showPassword: boolean = false\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormInputSizes, newValue, FormInputClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"success\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"success\", toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"type\", this.multiline ? Tags.TEXTAREA : Tags.INPUT)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t\tthis.govHydrated.emit();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\trender() {\n\t\tconst Tag = this.multiline ? Tags.TEXTAREA : Tags.INPUT\n\n\t\treturn (\n\t\t\t<Host class={FormInputClass.root} size={this.size} type={this.type}>\n\t\t\t\t{this.h.hasSlot(\"prefix\") && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t{(this.h.hasSlot(\"icon-start\") && !this.multiline) &&\n\t\t\t\t\t\t<div class={FormInputClass.icons} onClick={() => this.inputRef.focus()}>\n\t\t\t\t\t\t\t<slot name=\"icon-start\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t\t<Tag\n\t\t\t\t\t\ttype={this.inputType === 'password' && this.showPassword ? 'text' : this.inputType}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tid={this.identifier || this.inputId}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonInput={this.onInputHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\tonKeyUp={this.onKeyUpHandler.bind(this)}\n\t\t\t\t\t\tonKeyDown={this.onKeyDownHandler.bind(this)}\n\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tspellcheck={toBoolAttrIfDefined(this.spellcheck)}\n\t\t\t\t\t\tlang={this.inputLang}\n\t\t\t\t\t\treadonly={toBoolAttrIfDefined(this.readonly)}\n\t\t\t\t\t\tautocomplete={toOnOffAttrIfDefined(this.autocomplete)}\n\t\t\t\t\t\tautocorrect={toOnOffAttrIfDefined(this.autocorrect)}\n\t\t\t\t\t\tminlength={this.minlength}\n\t\t\t\t\t\tmaxlength={this.maxlength}\n\t\t\t\t\t\tmin={this.min}\n\t\t\t\t\t\tmax={this.max}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\trows={this.rows}\n\t\t\t\t\t\tcols={this.cols}\n\t\t\t\t\t\trole={this.role}\n\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t/>\n\t\t\t\t\t{((this.success || this.invalid || this.h.hasSlot(\"icon-end\") || this.inputType === 'password') && !this.multiline) &&\n\t\t\t\t\t\t<div class={FormInputClass.icons} onClick={() => this.inputRef.focus()}>\n\t\t\t\t\t\t\t{this.success && !this.multiline &&\n\t\t\t\t\t\t\t\t<gov-icon class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t{this.invalid && !this.multiline &&\n\t\t\t\t\t\t\t\t<gov-icon class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t{this.h.hasSlot(\"icon-end\") && this.inputType !== 'password' && <slot name=\"icon-end\"/>}\n\t\t\t\t\t\t\t{this.inputType === 'password' ? (\n\t\t\t\t\t\t\t\t<gov-button color={'primary'}\n\t\t\t\t\t\t\t\t\t\t\ttype={'base'}\n\t\t\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\t\t\taria-label={this.showPassword ? this.accessibleHidePasswordLabel : this.accessibleShowPasswordLabel}\n\t\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.showPassword = !this.showPassword}>\n\t\t\t\t\t\t\t\t\t<gov-icon slot=\"icon-start\" name=\"eye\" type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t</gov-button>) : null}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot(\"sufix\") && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyUpHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyUp.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onKeyDownHandler(e: KeyboardEvent) {\n\t\te.stopPropagation()\n\t\tthis.govKeyDown.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLInputElement).value\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\tcomponent: FormInputClass.root,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.inputRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.value = value\n\t}\n\n\t/**\n\t * Clears input value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = \"\"\n\t\tthis.inputRef.value = \"\"\n\t}\n\n\t/**\n\t * Returns an instance of the native html input element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n","import { pick } from \"../../../utils/utils\"\nimport { ValueOf } from \"../../../types/interfaces\"\nimport {Sizes} from \"../../../core/constants/sizes\";\nimport {Colors} from \"../../../core/constants/colors\";\n\nexport const SkeletonSizes = pick(Sizes, ['_XS', '_S', '_M', '_L', '_XL'])\nexport type SkeletonSizesType = `${ValueOf<typeof SkeletonSizes>}`\n\nexport const SkeletonColors = pick(Colors, [\"PRIMARY\", \"NEUTRAL\"])\nexport type SkeletonColorType = `${ValueOf<typeof SkeletonColors>}`\n\nexport enum SkeletonShapes {\n\tCIRCLE = 'circle',\n\tLINE = 'line'\n}\nexport type SkeletonShapesType = `${ValueOf<typeof SkeletonShapes>}`\n\nexport enum SkeletonAnimation {\n\tPULSE = 'pulse',\n\tPROGRESS = 'progress',\n\tFALSE = 'false'\n}\nexport type SkeletonAnimationType = `${ValueOf<typeof SkeletonAnimation>}`\n\nexport const SkeletonClass = {\n\troot: 'gov-skeleton',\n}\n","import {Component, Element, h, Host, Prop, State, Watch} from \"@stencil/core\"\nimport {\n\tSkeletonAnimation,\n\tSkeletonAnimationType,\n\tSkeletonClass,\n\tSkeletonColorType,\n\tSkeletonShapes,\n\tSkeletonShapesType,\n\tSkeletonSizes,\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormInputSizesType} from \"../../gov-form/input/constants\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: \"gov-skeleton\",\n})\nexport class GovSkeleton {\n\th: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovSkeletonElement\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: FormInputSizesType = \"m\"\n\t/**\n\t * Style variation of the skeleton.\n\t */\n\t@Prop() readonly color?: SkeletonColorType = \"neutral\"\n\t/**\n\t * Shape of the skeleton\n\t */\n\t@Prop() shape?: SkeletonShapesType = \"line\"\n\t/**\n\t * Width of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() width: string = null\n\t/**\n\t * Height of the skeleton ex. 100px, 100%, auto etc.\n\t */\n\t@Prop() height: string = null\n\t/**\n\t * Animation type\n\t */\n\t@Prop() animation?: SkeletonAnimationType = \"progress\"\n\n\titems: number[] = []\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(SkeletonSizes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('shape')\n\tvalidateShape(newValue: string): void {\n\t\tvalidateProp(SkeletonShapes, newValue, SkeletonClass.root)\n\t}\n\n\t@Watch('animation')\n\tvalidateAnimation(newValue: string): void {\n\t\tvalidateProp(SkeletonAnimation, newValue, SkeletonClass.root)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\t\tthis.validateShape(this.shape)\n\t\tthis.validateAnimation(this.animation)\n\t\tthis.init()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentWillUpdate() {\n\t\tthis.init()\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tinit() {\n\t\tthis.items.fill(1)\n\t}\n\n\tget style() {\n\t\tconst dimenssionsStyles: {\n\t\t\twidth?: string,\n\t\t\theight?: string,\n\t\t} = {\n\t\t\twidth: null,\n\t\t\theight: null,\n\t\t}\n\t\tif (this.width) {\n\t\t\tdimenssionsStyles.width = this.width\n\t\t}\n\n\t\tif (this.height) {\n\t\t\tdimenssionsStyles.height = this.height\n\t\t}\n\n\t\treturn {...dimenssionsStyles}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host size={this.size}\n\t\t\t\t color={this.color}\n\t\t\t\t class={{\n\t\t\t\t\t [SkeletonClass.root]: true,\n\t\t\t\t\t circle: this.shape === \"circle\",\n\t\t\t\t\t line: this.shape === \"line\",\n\t\t\t\t\t progress: this.animation === \"progress\",\n\t\t\t\t\t pulse: this.animation === \"pulse\",\n\t\t\t\t }}\n\t\t\t\t {...this.inheritedAttributes}\n\t\t\t\t aria-busy=\"true\"\n\t\t\t\t aria-valuemin=\"0\"\n\t\t\t\t aria-valuemax=\"100\"\n\t\t\t\t role=\"progressbar\"\n\t\t\t\t tabindex=\"0\"\n\t\t\t\t style={this.style}>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -1,19 +1,18 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { g as govForm, c as FormMultiSelectClass, d as FormMultiselectSizes } from './form-472e078d.js';
3
- import { g as govHost, c as toBoolAttr, t as toBoolAttrIfDefined } from './template-3d84d705.js';
4
- import { v as validateProp } from './props-c82e1abf.js';
5
- import { c as createID, r as removeDiacritics } from './string.utils-5ce3f551.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { g as govForm, c as FormMultiSelectClass, d as FormMultiselectSizes } from './form-713f26fd.js';
3
+ import { g as govHost, c as toBoolAttr, t as toBoolAttrIfDefined } from './template-7ecee4d1.js';
4
+ import { v as validateProp } from './props-9d3c7ac1.js';
5
+ import { c as createID, r as removeDiacritics } from './string.utils-1da8f8fb.js';
6
6
  import { p as propsValueToArray } from './array.utils-85696abd.js';
7
7
  import { t as tick } from './stencil.utils-f3c6c68d.js';
8
8
  import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
9
9
  import './sizes-5b9e579f.js';
10
- import './utils-2b4ef320.js';
11
- import './constants-7307438d.js';
12
- import './colors-02c1ea96.js';
13
- import './constants-6d727976.js';
14
- import './constants-d42abf99.js';
15
- import './gov.log-6e9faad2.js';
16
- import './win-cec370ad.js';
10
+ import './utils-e10e994d.js';
11
+ import './constants-bc210662.js';
12
+ import './colors-4cf64720.js';
13
+ import './constants-085f9943.js';
14
+ import './constants-43f10674.js';
15
+ import './gov.log-6b64cda6.js';
17
16
  import './helpers.types-43ddbdb8.js';
18
17
 
19
18
  const GovFormMultiSelect = class {
@@ -56,15 +55,6 @@ const GovFormMultiSelect = class {
56
55
  watchValue(newValue) {
57
56
  this.selectedOptionsState = propsValueToArray(newValue);
58
57
  }
59
- watchControlAttrs() {
60
- this.passControlAttrs();
61
- }
62
- passControlAttrs() {
63
- this.f.passAttrToControl('size', this.size);
64
- this.f.passAttrToControl('invalid', toBoolAttr(this.invalid));
65
- this.f.passAttrToControl('disabled', toBoolAttr(this.disabled));
66
- this.f.passAttrToControl('success', toBoolAttr(this.success));
67
- }
68
58
  componentDidLoad() {
69
59
  this.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {
70
60
  this.onAriaAttributeChange(attributeName, newValue);
@@ -178,7 +168,6 @@ const GovFormMultiSelect = class {
178
168
  }
179
169
  }
180
170
  async componentDidRender() {
181
- this.passControlAttrs();
182
171
  this.f.passAttrToLabel('required', String(this.required));
183
172
  tick(() => {
184
173
  this.selectRef.querySelectorAll('option').forEach((option) => {
@@ -189,18 +178,16 @@ const GovFormMultiSelect = class {
189
178
  });
190
179
  }
191
180
  render() {
192
- return (h(Host, { key: '0e2bf90516a05a8e0c27c7532efe5da224c03465', class: FormMultiSelectClass.root, size: this.size }, h("div", { key: 'f11641f89fe42687883fe53fe948087a27193071', class: FormMultiSelectClass.wrap }, this.h.hasSlot('prefix') && h("slot", { key: '6cd9f9136c071a6378402289894fdabc507ebff2', name: "prefix" }), h("gov-form-autocomplete", { key: '955f58e159a530a5b533c6460547ae709735256e', value: this.valueState, disabled: this.disabled, identifier: this.identifier || this.selectId, required: false, size: this.size, placeholder: this.placeholder, "message-empty": this.messageEmpty, "message-loading": this.messageLoading, ref: el => (this.autocompleteRef = el), minlength: 0, "aria-owns": this.listId }, h("gov-icon", { key: 'b378d8bde11321d2dc578f99c8158056f1253164', slot: "right-icon", class: "icon-arrow", name: "chevron-down" }), this.h.hasSlot('right-icon') && !(this.success || this.invalid) && h("slot", { key: '6de4b89ef556f1eaaec97836eac78d10831b28c2', name: "right-icon" }), this.success &&
193
- h("gov-icon", { key: '19756d99d19cba8cecdc9a0adb0c35e1a5d8c024', slot: "validation-icon", class: "icon-validation", name: "check-lg" }), this.invalid &&
194
- h("gov-icon", { key: 'cb21e4f8d4b932602b3409f1c8e4a627c1591bd3', slot: "validation-icon", class: "icon-validation", name: "exclamation-lg" })), h("select", Object.assign({ key: '40b56eba1078e476fcc782c2ffbfbcbee503434a', hidden: true, class: 'hidden-select-list', "aria-hidden": toBoolAttr(true), multiple: true, required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), h("slot", { key: '6c970c5fb7d8188a6135e5df2652a48d72ce7a05' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
181
+ return (h(Host, { key: '11352c6950674badb00870e18c17a031c81235df', class: FormMultiSelectClass.root, size: this.size }, h("div", { key: 'edd74cbfbbf116700dfdcd7d33307c6416e2ad8c', class: FormMultiSelectClass.wrap }, this.h.hasSlot('prefix') && h("slot", { key: '6aa65aa9875527890bfecb2a1e6c56b2eb9ce827', name: "prefix" }), h("gov-form-autocomplete", { key: '60c5065ccb09073c2e1ca17c329f980cda52761f', value: this.valueState, disabled: this.disabled, identifier: this.identifier || this.selectId, required: false, invalid: this.invalid, success: this.success, size: this.size, placeholder: this.placeholder, "message-empty": this.messageEmpty, "message-loading": this.messageLoading, ref: el => (this.autocompleteRef = el), minlength: 0, "aria-owns": this.listId }, this.success && h("gov-icon", { key: '907aac2768a9bd5384326377fcad9e90795ff170', slot: "validation-icon", class: "validation-icon", name: "check-lg", type: "components" }), this.invalid && h("gov-icon", { key: '7294050c2910097d6a316b37fdc1f571f3450f8a', slot: "validation-icon", class: "validation-icon", name: "exclamation-lg", type: "components" }), h("gov-icon", { key: 'ac4474f517f8124831c22055e69d0eb45e6e2d4f', slot: "icon-end", class: "arrow-icon", name: "chevron-down", type: "components" })), h("select", Object.assign({ key: '9437199c079132409bdbf0f932605474b885781e', hidden: true, class: 'hidden-select-list', "aria-hidden": toBoolAttr(true), multiple: true, required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid) }), h("slot", { key: '59f4071b90b40ed6291b9180b5caa29101b5e95a' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
195
182
  var _a;
196
183
  const selectedOption = this.selectedValueIndex(option.value);
197
184
  return (h("option", { value: option.value, selected: selectedOption > -1, disabled: option === null || option === void 0 ? void 0 : option.disabled }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value));
198
- })), this.h.hasSlot('sufix') && h("slot", { key: '46c5c8ab89561433a6c6d51eb9097149f3dc4155', name: "sufix" })), this.hideSelectedList === false ? (h("ul", { role: "listbox", id: this.listId, class: FormMultiSelectClass.list }, Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {
185
+ })), this.h.hasSlot('sufix') && h("slot", { key: '0620c4ab3b9d9d122456f91cc3dd5cefd85e8bba', name: "sufix" })), this.hideSelectedList === false ? (h("ul", { role: "listbox", id: this.listId, class: FormMultiSelectClass.list }, Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {
199
186
  var _a, _b;
200
187
  const option = this.getOption(selected);
201
188
  if (!option)
202
189
  return null;
203
- return (h("li", { class: FormMultiSelectClass.item, role: "option" }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value, h("gov-button", { "accessible-label": (_b = 'Odebrat vybranou položku ' + option.label) !== null && _b !== void 0 ? _b : option.value, color: "primary", type: "base", size: this.size, "on-gov-click": () => this.onTagRemove(selected) }, h("gov-icon", { name: "x-lg" }))));
190
+ return (h("li", { class: FormMultiSelectClass.item, role: "option" }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value, h("gov-button", { "aria-label": (_b = 'Odebrat vybranou položku ' + option.label) !== null && _b !== void 0 ? _b : option.value, color: "primary", type: "base", size: this.size, "on-gov-click": () => this.onTagRemove(selected) }, h("gov-icon", { name: "x-lg", type: "components" }))));
204
191
  }))) : null));
205
192
  }
206
193
  onFocusHandler(e) {
@@ -257,12 +244,9 @@ const GovFormMultiSelect = class {
257
244
  }
258
245
  get host() { return getElement(this); }
259
246
  static get watchers() { return {
260
- "size": ["validateSize", "watchControlAttrs"],
247
+ "size": ["validateSize"],
261
248
  "options": ["watchOptions"],
262
- "value": ["watchValue"],
263
- "disabled": ["watchControlAttrs"],
264
- "invalid": ["watchControlAttrs"],
265
- "success": ["watchControlAttrs"]
249
+ "value": ["watchValue"]
266
250
  }; }
267
251
  };
268
252
 
@@ -1 +1 @@
1
- {"file":"gov-form-multi-select.entry.js","mappings":";;;;;;;;;;;;;;;;;;MAuBa,kBAAkB;IAW9B;;;;;;;;;;;oBA4BmD,GAAG;;gCAQwB,KAAK;wBAK9C,KAAK;wBAKL,KAAK;;;4BAY0B,gCAAgC;8BAI5B,YAAY;;;oCAwBlB,EAAE;4BAClB,EAAE;mCAyBT,EAAE;QA/G5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAA;QACrC,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAA;QAEtC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KACxB;IAoFD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,oBAAoB,EAAE,QAAQ,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAA;KACvE;IAGD,YAAY,CAAC,QAA2C;QACvD,IAAI,CAAC,YAAY,GAAG,iBAAi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AEO,eAAe,CAAC,CAAqC;QAC5D,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAC9B,IAAI,CAAC,UAAU,GAAG,EAAE,CAAA;QACpB,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,CAAA;QAC3C,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAA;KAC5B;IAEO,WAAW,CAAC,YAA4C;QAC/D,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAA;KAC/B;;;;IAMD,MAAM,QAAQ,CAAC,OAAsB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KACpC;;;;IAMD,MAAM,QAAQ,CAAC,KAAa;QAC3B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;KACvB;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-form/multiselect/gov-form-multi-select.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {govForm} from '../../../helpers/Dom/form'\nimport {GovForm} from '../../../helpers/Dom/form.types'\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\nimport {GovHost} from '../../../helpers/Dom/template.types'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {Nullable} from '../../../types/interfaces'\nimport {createID, removeDiacritics} from '../../../utils/string.utils'\nimport {FormAutocompleteEvent} from '../autocomplete/gov-form-autocomplete.types'\nimport {FormMultiSelectClass, FormMultiselectSizes, FormMultiselectSizesType,} from './constants'\nimport {\n\tFormMultiselectEvent,\n\tGovFormMultiSelectItem,\n\tGovFormMultiSelectSelectedItem\n} from './gov-form-multi-select.types'\nimport {propsValueToArray} from \"../../../utils/array.utils\";\nimport {tick} from \"../../../utils/stencil.utils\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\n\n@Component({\n\ttag: 'gov-form-multi-select',\n})\nexport class GovFormMultiSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\n\tprivate selectRef?: HTMLSelectElement\n\tprivate autocompleteRef?: HTMLGovFormAutocompleteElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly selectId: string\n\tprivate readonly listId: string\n\n\tconstructor() {\n\t\tthis.selectId = createID('GovSelect')\n\t\tthis.listId = createID('GovMultiList')\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of multi-select\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string | GovFormMultiSelectSelectedItem[]\n\t/**\n\t * Options of multi-select\n\t */\n\t@Prop({reflect: true, mutable: true}) options?: string | GovFormMultiSelectItem[]\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Custom select placeholder.\n\t */\n\t@Prop({attribute: 'placeholder'}) readonly placeholder: string\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormMultiselectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Option to hide the list of selected items\n\t */\n\t@Prop({attribute: 'hide-selected-list'}) readonly hideSelectedList: boolean = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean\n\t/**\n\t * Custom message for when there is a blank sheet\n\t */\n\t@Prop({attribute: 'message-empty'}) readonly messageEmpty: string = 'Nebyly nalezeny žádné výsledky'\n\t/**\n\t * Custom message for when data is loaded\n\t */\n\t@Prop({attribute: 'message-loading'}) readonly messageLoading: string = 'Načítám...'\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when an item is selected\n\t */\n\t@Event({eventName: 'gov-select'}) govSelect: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when an item is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<FormMultiselectEvent>\n\n\t@State() focused: boolean\n\t@State() valueState: string\n\t@State() selectedOptionsState: GovFormMultiSelectSelectedItem[] = []\n\t@State() optionsState: GovFormMultiSelectItem[] = []\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormMultiselectSizes, newValue, FormMultiSelectClass.root)\n\t}\n\n\t@Watch('options')\n\twatchOptions(newValue: string | GovFormMultiSelectItem[]): void {\n\t\tthis.optionsState = propsValueToArray(newValue)\n\t}\n\n\t@Watch('value')\n\twatchValue(newValue: string | GovFormMultiSelectItem[]): void {\n\t\tthis.selectedOptionsState = propsValueToArray(newValue)\n\t}\n\n\t@Watch('disabled')\n\t@Watch('invalid')\n\t@Watch('success')\n\t@Watch('size')\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl('size', this.size)\n\t\tthis.f.passAttrToControl('invalid', toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl('success', toBoolAttr(this.success))\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t\tthis.initAutocomplete()\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\t\tthis.optionsState = propsValueToArray(this.options)\n\t\tthis.selectedOptionsState = propsValueToArray(this.value)\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate getAvailableOptions(ignoreFilter = false): GovFormMultiSelectItem[] {\n\t\tif (Array.isArray(this.optionsState) && this.optionsState.length) {\n\t\t\tif (ignoreFilter) {\n\t\t\t\treturn this.optionsState;\n\t\t\t}\n\t\t\treturn this.optionsState.filter((option) => {\n\t\t\t\tconst selectedIndex = this.selectedValueIndex(option.value)\n\t\t\t\treturn (selectedIndex !== -1 || option?.disabled) ? false : true\n\t\t\t}).map((option) => ({name: option.label ?? option.value, value: option.value}))\n\t\t}\n\t\treturn Array.from(this.selectRef.querySelectorAll('option'))\n\t\t\t.filter((option: HTMLOptionElement) => {\n\t\t\t\tif (ignoreFilter) {\n\t\t\t\t\treturn true\n\t\t\t\t}\n\t\t\t\tconst selectedIndex = this.selectedValueIndex(option.value)\n\t\t\t\treturn !(option.disabled || option.selected || selectedIndex > -1)\n\t\t\t})\n\t\t\t.map((option: HTMLOptionElement) => ({name: option.textContent, value: option.value}))\n\t}\n\n\tprivate initAutocomplete() {\n\t\tthis.autocompleteRef?.addEventListener('gov-select', this.onSelectHandler.bind(this))\n\t\tthis.autocompleteRef?.addEventListener('gov-input', this.onInputHandler.bind(this))\n\t\tthis.autocompleteRef?.addEventListener('gov-focus', this.onFocusHandler.bind(this))\n\t\tthis.autocompleteRef?.addEventListener('gov-blur', this.onBlurHandler.bind(this))\n\t\tthis.autocompleteRef\n\t\t\t?.setSearchCallback(searchString => {\n\t\t\t\treturn new Promise(resolve => {\n\t\t\t\t\tconst data = this.getAvailableOptions()\n\t\t\t\t\tif (String(searchString).length === 0) {\n\t\t\t\t\t\treturn resolve(data)\n\t\t\t\t\t}\n\t\t\t\t\tresolve(\n\t\t\t\t\t\tdata.filter(({label, value}) => {\n\t\t\t\t\t\t\tif (!label) label = value;\n\t\t\t\t\t\t\treturn removeDiacritics(label).toLowerCase().indexOf(removeDiacritics(searchString).toLowerCase()) > -1\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\t.finally()\n\t}\n\n\tprivate selectedValueIndex(value: GovFormMultiSelectSelectedItem) {\n\t\treturn this.selectedOptionsState.findIndex((selected) => selected === value)\n\t}\n\n\tprivate getOptionElement(value: GovFormMultiSelectSelectedItem): Nullable<HTMLOptionElement> {\n\t\treturn this.selectRef.querySelector('option[value=\"' + value + '\"]') as HTMLOptionElement\n\t}\n\n\tprivate getOption(value: GovFormMultiSelectSelectedItem): GovFormMultiSelectItem | null {\n\t\treturn this.getAvailableOptions(true).find((option) => option.value === value) ?? null;\n\t}\n\n\tprivate selectOption(newOption: GovFormMultiSelectSelectedItem, notify = true) {\n\t\tconst index = this.selectedValueIndex(newOption)\n\t\tif (index === -1) {\n\t\t\tthis.selectedOptionsState = [...this.selectedOptionsState, newOption]\n\t\t\tthis.value = this.selectedOptionsState;\n\t\t\tif (notify) {\n\t\t\t\tthis.govChange.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t\tthis.govSelect.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t}\n\t\t\tconst option = this.getOptionElement(newOption)\n\t\t\tif (option) {\n\t\t\t\toption.selected = true\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate removeOption(removeOption: GovFormMultiSelectSelectedItem, notify = true) {\n\t\tconst index = this.selectedValueIndex(removeOption)\n\t\tif (index !== -1) {\n\t\t\tthis.selectedOptionsState.splice(index, 1)\n\t\t\tthis.selectedOptionsState = [...this.selectedOptionsState]\n\t\t\tthis.value = this.selectedOptionsState;\n\t\t\tif (notify) {\n\t\t\t\tthis.govChange.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t\tthis.govRemove.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t}\n\t\t\tconst option = this.getOptionElement(removeOption)\n\t\t\tif (option) {\n\t\t\t\toption.selected = false\n\t\t\t}\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\n\t\ttick(() => {\n\t\t\tthis.selectRef.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\t\tif (option.selected) {\n\t\t\t\t\tthis.selectOption(option.value, false)\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormMultiSelectClass.root} size={this.size}>\n\t\t\t\t<div class={FormMultiSelectClass.wrap}>\n\t\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\n\t\t\t\t\t<gov-form-autocomplete\n\t\t\t\t\t\tvalue={this.valueState}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tidentifier={this.identifier || this.selectId}\n\t\t\t\t\t\trequired={false}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tmessage-empty={this.messageEmpty}\n\t\t\t\t\t\tmessage-loading={this.messageLoading}\n\t\t\t\t\t\tref={el => (this.autocompleteRef = el as HTMLGovFormAutocompleteElement)}\n\t\t\t\t\t\tminlength={0}\n\t\t\t\t\t\taria-owns={this.listId}\n\t\t\t\t\t>\n\t\t\t\t\t\t<gov-icon slot=\"right-icon\" class=\"icon-arrow\" name=\"chevron-down\"></gov-icon>\n\t\t\t\t\t\t{this.h.hasSlot('right-icon') && !(this.success || this.invalid) && <slot name=\"right-icon\"/>}\n\t\t\t\t\t\t{this.success &&\n\t\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"check-lg\"></gov-icon>}\n\t\t\t\t\t\t{this.invalid &&\n\t\t\t\t\t\t\t<gov-icon slot=\"validation-icon\" class=\"icon-validation\" name=\"exclamation-lg\"></gov-icon>}\n\t\t\t\t\t</gov-form-autocomplete>\n\t\t\t\t\t<select\n\t\t\t\t\t\thidden\n\t\t\t\t\t\tclass={'hidden-select-list'}\n\t\t\t\t\t\taria-hidden={toBoolAttr(true)}\n\t\t\t\t\t\tmultiple\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\n\t\t\t\t\t\t\tconst selectedOption = this.selectedValueIndex(option.value);\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={selectedOption > -1}\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label ?? option.value}</option>)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\n\t\t\t\t</div>\n\t\t\t\t{this.hideSelectedList === false ? (\n\t\t\t\t\t<ul role=\"listbox\" id={this.listId} class={FormMultiSelectClass.list}>\n\t\t\t\t\t\t{Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {\n\t\t\t\t\t\t\tconst option = this.getOption(selected);\n\t\t\t\t\t\t\tif (!option) return null\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<li class={FormMultiSelectClass.item} role=\"option\">\n\t\t\t\t\t\t\t\t\t{option.label ?? option.value}\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\taccessible-label={'Odebrat vybranou položku ' + option.label ?? option.value}\n\t\t\t\t\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onTagRemove(selected)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"x-lg\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</ul>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.selectedOptionsState,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\te.stopPropagation()\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.selectedOptionsState,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: CustomEvent<FormAutocompleteEvent>) {\n\t\tthis.valueState = e.detail.value\n\t\te.stopPropagation()\n\t}\n\n\tprivate onSelectHandler(e: CustomEvent<FormAutocompleteEvent>) {\n\t\te.stopPropagation()\n\t\tconst value = e.detail.selected\n\t\tthis.selectOption(value.value)\n\t\tthis.valueState = ''\n\t\tthis.autocompleteRef.clearValue().finally()\n\t\tthis.autocompleteRef.focus()\n\t}\n\n\tprivate onTagRemove(removeOption: GovFormMultiSelectSelectedItem) {\n\t\tthis.removeOption(removeOption)\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.selectRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.valueState = value\n\t}\n\n\t/**\n\t * Returns an instance of the native html select element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLSelectElement> {\n\t\treturn this.selectRef\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-form-multi-select.entry.js","mappings":";;;;;;;;;;;;;;;;;MAuBa,kBAAkB;IAW9B;;;;;;;;;;;oBA4BmD,GAAG;;gCAQwB,KAAK;wBAK9C,KAAK;wBAKU,KAAK;;;4BAYW,gCAAgC;8BAI5B,YAAY;;;oCAwBlB,EAAE;4BAClB,EAAE;mCAiBT,EAAE;QAvG5C,IAAI,CAAC,QAAQ,GAA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CAAC,MAAM,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAC9B,IAAI,CAAC,UAAU,GAAG,EAAE,CAAA;QACpB,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,CAAA;QAC3C,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAA;KAC5B;IAEO,WAAW,CAAC,YAA4C;QAC/D,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAA;KAC/B;;;;IAMD,MAAM,QAAQ,CAAC,OAAsB;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;KACpC;;;;IAMD,MAAM,QAAQ,CAAC,KAAa;QAC3B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;KACvB;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,SAAS,CAAA;KACrB;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-form/multiselect/gov-form-multi-select.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {govForm} from '../../../helpers/Dom/form'\nimport {GovForm} from '../../../helpers/Dom/form.types'\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from '../../../helpers/Dom/template'\nimport {GovHost} from '../../../helpers/Dom/template.types'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {Nullable} from '../../../types/interfaces'\nimport {createID, removeDiacritics} from '../../../utils/string.utils'\nimport {FormAutocompleteEvent} from '../autocomplete/gov-form-autocomplete.types'\nimport {FormMultiSelectClass, FormMultiselectSizes, FormMultiselectSizesType} from './constants'\nimport {\n\tFormMultiselectEvent,\n\tGovFormMultiSelectItem,\n\tGovFormMultiSelectSelectedItem\n} from './gov-form-multi-select.types'\nimport {propsValueToArray} from \"../../../utils/array.utils\";\nimport {tick} from \"../../../utils/stencil.utils\";\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\n\n@Component({\n\ttag: 'gov-form-multi-select',\n})\nexport class GovFormMultiSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\n\tprivate selectRef?: HTMLSelectElement\n\tprivate autocompleteRef?: HTMLGovFormAutocompleteElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly selectId: string\n\tprivate readonly listId: string\n\n\tconstructor() {\n\t\tthis.selectId = createID('GovSelect')\n\t\tthis.listId = createID('GovMultiList')\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of multi-select\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string | GovFormMultiSelectSelectedItem[]\n\t/**\n\t * Options of multi-select\n\t */\n\t@Prop({reflect: true, mutable: true}) options?: string | GovFormMultiSelectItem[]\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Custom select placeholder.\n\t */\n\t@Prop({attribute: 'placeholder'}) readonly placeholder: string\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormMultiselectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Option to hide the list of selected items\n\t */\n\t@Prop({attribute: 'hide-selected-list'}) readonly hideSelectedList: boolean = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop({reflect:true}) readonly invalid: boolean\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean\n\t/**\n\t * Custom message for when there is a blank sheet\n\t */\n\t@Prop({attribute: 'message-empty'}) readonly messageEmpty: string = 'Nebyly nalezeny žádné výsledky'\n\t/**\n\t * Custom message for when data is loaded\n\t */\n\t@Prop({attribute: 'message-loading'}) readonly messageLoading: string = 'Načítám...'\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when an item is selected\n\t */\n\t@Event({eventName: 'gov-select'}) govSelect: EventEmitter<FormMultiselectEvent>\n\t/**\n\t * Emitted when an item is removed\n\t */\n\t@Event({eventName: 'gov-remove'}) govRemove: EventEmitter<FormMultiselectEvent>\n\n\t@State() focused: boolean\n\t@State() valueState: string\n\t@State() selectedOptionsState: GovFormMultiSelectSelectedItem[] = []\n\t@State() optionsState: GovFormMultiSelectItem[] = []\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormMultiselectSizes, newValue, FormMultiSelectClass.root)\n\t}\n\n\t@Watch('options')\n\twatchOptions(newValue: string | GovFormMultiSelectItem[]): void {\n\t\tthis.optionsState = propsValueToArray(newValue)\n\t}\n\n\t@Watch('value')\n\twatchValue(newValue: string | GovFormMultiSelectItem[]): void {\n\t\tthis.selectedOptionsState = propsValueToArray(newValue)\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t\tthis.initAutocomplete()\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\t\tthis.optionsState = propsValueToArray(this.options)\n\t\tthis.selectedOptionsState = propsValueToArray(this.value)\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\tprivate getAvailableOptions(ignoreFilter = false): GovFormMultiSelectItem[] {\n\t\tif (Array.isArray(this.optionsState) && this.optionsState.length) {\n\t\t\tif (ignoreFilter) {\n\t\t\t\treturn this.optionsState;\n\t\t\t}\n\t\t\treturn this.optionsState.filter((option) => {\n\t\t\t\tconst selectedIndex = this.selectedValueIndex(option.value)\n\t\t\t\treturn (selectedIndex !== -1 || option?.disabled) ? false : true\n\t\t\t}).map((option) => ({name: option.label ?? option.value, value: option.value}))\n\t\t}\n\t\treturn Array.from(this.selectRef.querySelectorAll('option'))\n\t\t\t.filter((option: HTMLOptionElement) => {\n\t\t\t\tif (ignoreFilter) {\n\t\t\t\t\treturn true\n\t\t\t\t}\n\t\t\t\tconst selectedIndex = this.selectedValueIndex(option.value)\n\t\t\t\treturn !(option.disabled || option.selected || selectedIndex > -1)\n\t\t\t})\n\t\t\t.map((option: HTMLOptionElement) => ({name: option.textContent, value: option.value}))\n\t}\n\n\tprivate initAutocomplete() {\n\t\tthis.autocompleteRef?.addEventListener('gov-select', this.onSelectHandler.bind(this))\n\t\tthis.autocompleteRef?.addEventListener('gov-input', this.onInputHandler.bind(this))\n\t\tthis.autocompleteRef?.addEventListener('gov-focus', this.onFocusHandler.bind(this))\n\t\tthis.autocompleteRef?.addEventListener('gov-blur', this.onBlurHandler.bind(this))\n\t\tthis.autocompleteRef\n\t\t\t?.setSearchCallback(searchString => {\n\t\t\t\treturn new Promise(resolve => {\n\t\t\t\t\tconst data = this.getAvailableOptions()\n\t\t\t\t\tif (String(searchString).length === 0) {\n\t\t\t\t\t\treturn resolve(data)\n\t\t\t\t\t}\n\t\t\t\t\tresolve(\n\t\t\t\t\t\tdata.filter(({label, value}) => {\n\t\t\t\t\t\t\tif (!label) label = value;\n\t\t\t\t\t\t\treturn removeDiacritics(label).toLowerCase().indexOf(removeDiacritics(searchString).toLowerCase()) > -1\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\t.finally()\n\t}\n\n\tprivate selectedValueIndex(value: GovFormMultiSelectSelectedItem) {\n\t\treturn this.selectedOptionsState.findIndex((selected) => selected === value)\n\t}\n\n\tprivate getOptionElement(value: GovFormMultiSelectSelectedItem): Nullable<HTMLOptionElement> {\n\t\treturn this.selectRef.querySelector('option[value=\"' + value + '\"]') as HTMLOptionElement\n\t}\n\n\tprivate getOption(value: GovFormMultiSelectSelectedItem): GovFormMultiSelectItem | null {\n\t\treturn this.getAvailableOptions(true).find((option) => option.value === value) ?? null;\n\t}\n\n\tprivate selectOption(newOption: GovFormMultiSelectSelectedItem, notify = true) {\n\t\tconst index = this.selectedValueIndex(newOption)\n\t\tif (index === -1) {\n\t\t\tthis.selectedOptionsState = [...this.selectedOptionsState, newOption]\n\t\t\tthis.value = this.selectedOptionsState;\n\t\t\tif (notify) {\n\t\t\t\tthis.govChange.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t\tthis.govSelect.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t}\n\t\t\tconst option = this.getOptionElement(newOption)\n\t\t\tif (option) {\n\t\t\t\toption.selected = true\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate removeOption(removeOption: GovFormMultiSelectSelectedItem, notify = true) {\n\t\tconst index = this.selectedValueIndex(removeOption)\n\t\tif (index !== -1) {\n\t\t\tthis.selectedOptionsState.splice(index, 1)\n\t\t\tthis.selectedOptionsState = [...this.selectedOptionsState]\n\t\t\tthis.value = this.selectedOptionsState;\n\t\t\tif (notify) {\n\t\t\t\tthis.govChange.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t\tthis.govRemove.emit({\n\t\t\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\t\t\tvalue: this.selectedOptionsState,\n\t\t\t\t})\n\t\t\t}\n\t\t\tconst option = this.getOptionElement(removeOption)\n\t\t\tif (option) {\n\t\t\t\toption.selected = false\n\t\t\t}\n\t\t}\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\n\t\ttick(() => {\n\t\t\tthis.selectRef.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\t\tif (option.selected) {\n\t\t\t\t\tthis.selectOption(option.value, false)\n\t\t\t\t}\n\t\t\t})\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormMultiSelectClass.root} size={this.size}>\n\t\t\t\t<div class={FormMultiSelectClass.wrap}>\n\t\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\n\t\t\t\t\t<gov-form-autocomplete\n\t\t\t\t\t\tvalue={this.valueState}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tidentifier={this.identifier || this.selectId}\n\t\t\t\t\t\trequired={false}\n\t\t\t\t\t\tinvalid={this.invalid}\n\t\t\t\t\t\tsuccess={this.success}\n\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\t\tmessage-empty={this.messageEmpty}\n\t\t\t\t\t\tmessage-loading={this.messageLoading}\n\t\t\t\t\t\tref={el => (this.autocompleteRef = el as HTMLGovFormAutocompleteElement)}\n\t\t\t\t\t\tminlength={0}\n\t\t\t\t\t\taria-owns={this.listId}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.success && <gov-icon slot=\"validation-icon\" class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t{this.invalid && <gov-icon slot=\"validation-icon\" class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t<gov-icon slot=\"icon-end\" class=\"arrow-icon\" name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t\t</gov-form-autocomplete>\n\t\t\t\t\t<select\n\t\t\t\t\t\thidden\n\t\t\t\t\t\tclass={'hidden-select-list'}\n\t\t\t\t\t\taria-hidden={toBoolAttr(true)}\n\t\t\t\t\t\tmultiple\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\n\t\t\t\t\t\t\tconst selectedOption = this.selectedValueIndex(option.value);\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={selectedOption > -1}\n\t\t\t\t\t\t\t\t\t\t\tdisabled={option?.disabled}>{option.label ?? option.value}</option>)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\n\t\t\t\t</div>\n\t\t\t\t{this.hideSelectedList === false ? (\n\t\t\t\t\t<ul role=\"listbox\" id={this.listId} class={FormMultiSelectClass.list}>\n\t\t\t\t\t\t{Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {\n\t\t\t\t\t\t\tconst option = this.getOption(selected);\n\t\t\t\t\t\t\tif (!option) return null\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t<li class={FormMultiSelectClass.item} role=\"option\">\n\t\t\t\t\t\t\t\t\t{option.label ?? option.value}\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\taria-label={'Odebrat vybranou položku ' + option.label ?? option.value}\n\t\t\t\t\t\t\t\t\t\tcolor=\"primary\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => this.onTagRemove(selected)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name=\"x-lg\" type=\"components\"></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})}\n\t\t\t\t\t</ul>\n\t\t\t\t) : null}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.selectedOptionsState,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\te.stopPropagation()\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormMultiSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.selectedOptionsState,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: CustomEvent<FormAutocompleteEvent>) {\n\t\tthis.valueState = e.detail.value\n\t\te.stopPropagation()\n\t}\n\n\tprivate onSelectHandler(e: CustomEvent<FormAutocompleteEvent>) {\n\t\te.stopPropagation()\n\t\tconst value = e.detail.selected\n\t\tthis.selectOption(value.value)\n\t\tthis.valueState = ''\n\t\tthis.autocompleteRef.clearValue().finally()\n\t\tthis.autocompleteRef.focus()\n\t}\n\n\tprivate onTagRemove(removeOption: GovFormMultiSelectSelectedItem) {\n\t\tthis.removeOption(removeOption)\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.selectRef.focus(options)\n\t}\n\n\t/**\n\t * Sets the ordered value of the element\n\t */\n\t@Method()\n\tasync setValue(value: string): Promise<void> {\n\t\tthis.valueState = value\n\t}\n\n\t/**\n\t * Returns an instance of the native html select element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLSelectElement> {\n\t\treturn this.selectRef\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as Host } from './index-d8b4eb6c.js';
1
+ import { r as registerInstance, h, a as Host } from './index-c263e031.js';
2
2
 
3
3
  const FormPasswordPowerClass = {
4
4
  root: 'gov-form-password-power',
@@ -12,7 +12,7 @@ const GovFormPasswordPower = class {
12
12
  this.power = undefined;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '1b32f76b93fcb8d84018c026510e8c5727604acf', class: FormPasswordPowerClass.root }, h("span", { key: '399b95fa5f190728a9efc14f90725599ce14d0e0', class: FormPasswordPowerClass.bar }, h("span", { key: 'f305f7b688e8fa752bf91af586b9b6a656f4dd54' }), h("span", { key: '18cfee3a78b2e3764953ec8e6d97fb542fd82ca2' }), h("span", { key: '1ee33abc6517ac08098fd681dd636426ab29f6e8' })), h("span", { key: '7829d02d3a95fdb76a2ae312fc7411ca428052a7', class: FormPasswordPowerClass.text }, h("slot", { key: '48e0aee956754dd9982063ee6c6cfadf6d0251a3' }))));
15
+ return (h(Host, { key: '9125566cb99bfc49e2e61edb5af71b5b052d6790', class: FormPasswordPowerClass.root }, h("span", { key: 'b293292f3b8faca38bbbd6cb03fdd49d8601aab3', class: FormPasswordPowerClass.bar }, h("span", { key: '20995fbc87342a8e0db8031b0ff23a9cb01b4068' }), h("span", { key: '4fec375a3f27cc35025c165badbff731c8fb26ab' }), h("span", { key: '426f641b8b8e179e25e8a1006a0afd0394615058' })), h("span", { key: '7aeaf7222b484ad59084bb20fcbff4660cdcb1db', class: FormPasswordPowerClass.text }, h("slot", { key: '57c3415c9b2dfc688ec5762c33cdad473b8110bd' }))));
16
16
  }
17
17
  };
18
18
 
@@ -1,14 +1,13 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { d as FormRadioGroupClass, a as FormGroupClass, b as FormGroupSizes, c as FormGroupOrientation } from './constants-501eb756.js';
3
- import { g as govHost } from './template-3d84d705.js';
4
- import { v as validateProp } from './props-c82e1abf.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { d as FormRadioGroupClass, a as FormGroupClass, b as FormGroupSizes, c as FormGroupOrientation } from './constants-4da2b3c0.js';
3
+ import { g as govHost } from './template-7ecee4d1.js';
4
+ import { v as validateProp } from './props-9d3c7ac1.js';
5
5
  import { t as tick } from './stencil.utils-f3c6c68d.js';
6
- import './utils-2b4ef320.js';
6
+ import './utils-e10e994d.js';
7
7
  import './sizes-5b9e579f.js';
8
- import './gov.log-6e9faad2.js';
9
- import './win-cec370ad.js';
8
+ import './gov.log-6b64cda6.js';
10
9
 
11
- const govFormGroupCss = ".gov-spin-animation,.gov-pseudo-spin-animation::before{animation:spin 4s linear infinite}@keyframes spin{100%{transform:rotate(360deg)}}@keyframes countdown{to{transform:scaleX(0)}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0;margin-bottom:0;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:var(--gap, var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:var(--gap, var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:var(--gap, var(--spacing-s-nudge))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:var(--gap, var(--spacing-m))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:var(--gap, var(--spacing-m-nudge))}";
10
+ const govFormGroupCss = ":root{--roboto:Roboto, sans-serif}gov-form-group,.gov-form-group,gov-form-radio-group,.gov-form-radio-group,gov-form-checkbox-group,.gov-form-checkbox-group{margin-top:0 !important;margin-bottom:0 !important;position:relative;display:flex;width:100%;flex-direction:column;align-items:flex-start}gov-form-group .gov-form-label__label,.gov-form-group .gov-form-label__label,gov-form-radio-group .gov-form-label__label,.gov-form-radio-group .gov-form-label__label,gov-form-checkbox-group .gov-form-label__label,.gov-form-checkbox-group .gov-form-label__label{margin:0}gov-form-group[orientation=horizontal],.gov-form-group[orientation=horizontal],gov-form-radio-group[orientation=horizontal],.gov-form-radio-group[orientation=horizontal],gov-form-checkbox-group[orientation=horizontal],.gov-form-checkbox-group[orientation=horizontal]{flex-direction:row;flex-wrap:wrap}gov-form-group[orientation=horizontal] .gov-form-label__label,.gov-form-group[orientation=horizontal] .gov-form-label__label,gov-form-radio-group[orientation=horizontal] .gov-form-label__label,.gov-form-radio-group[orientation=horizontal] .gov-form-label__label,gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label,.gov-form-checkbox-group[orientation=horizontal] .gov-form-label__label{white-space:nowrap}gov-form-group[gap=xs],.gov-form-group[gap=xs],gov-form-radio-group[gap=xs],.gov-form-radio-group[gap=xs],gov-form-checkbox-group[gap=xs],.gov-form-checkbox-group[gap=xs]{gap:var(--gap, var(--spacing-xs-nudge))}gov-form-group[gap=s],.gov-form-group[gap=s],gov-form-radio-group[gap=s],.gov-form-radio-group[gap=s],gov-form-checkbox-group[gap=s],.gov-form-checkbox-group[gap=s]{gap:var(--gap, var(--spacing-s))}gov-form-group[gap=m],.gov-form-group[gap=m],gov-form-radio-group[gap=m],.gov-form-radio-group[gap=m],gov-form-checkbox-group[gap=m],.gov-form-checkbox-group[gap=m]{gap:var(--gap, var(--spacing-s-nudge))}gov-form-group[gap=l],.gov-form-group[gap=l],gov-form-radio-group[gap=l],.gov-form-radio-group[gap=l],gov-form-checkbox-group[gap=l],.gov-form-checkbox-group[gap=l]{gap:var(--gap, var(--spacing-m))}gov-form-group[gap=xl],.gov-form-group[gap=xl],gov-form-radio-group[gap=xl],.gov-form-radio-group[gap=xl],gov-form-checkbox-group[gap=xl],.gov-form-checkbox-group[gap=xl]{gap:var(--gap, var(--spacing-m-nudge))}";
12
11
  const GovFormRadioGroupStyle0 = govFormGroupCss;
13
12
 
14
13
  const GovFormRadioGroup = class {
@@ -55,7 +54,7 @@ const GovFormRadioGroup = class {
55
54
  });
56
55
  }
57
56
  render() {
58
- return (h(Host, { key: '0526062e74e480edc22bdbbdf8c1f82a91ff463d', gap: this.gap, class: this.h.classes(FormGroupClass.root), value: this.value }, h("slot", { key: 'f11696b75d4f0c4bc72da3ca70d3111825edd36a' })));
57
+ return (h(Host, { key: '5a9b1bd507ef9c0a57cdb25fb200ab6c9fb46604', gap: this.gap, class: this.h.classes(FormGroupClass.root), value: this.value }, h("slot", { key: '34b587d61d716b51729431c52879b6fcd0285fee' })));
59
58
  }
60
59
  get host() { return getElement(this); }
61
60
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"gov-form-radio-group.entry.js","mappings":";;;;;;;;;;AAAA,MAAM,eAAe,GAAG,uiFAAuiF,CAAC;AAChkF,gCAAe,eAAe;;MCmBjB,iBAAiB;IAG7B;;;QAoCA,iBAAY,GAAG,CAAC,KAAkC;YACjD,KAAK,CAAC,eAAe,EAAE,CAAA;YACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAA;YAC/B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;gBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,SAAS,EAAE,mBAAmB,CAAC,IAAI;aACnC,CAAC,CAAA;SACF,CAAA;mBAnC2C,SAAS;2BAIK,UAAU;qBAIR,SAAS;QAfpE,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC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packages/core/src/components/gov-form/group/gov-form-radio-group.tsx"],"sourcesContent":["/* Form Control */\n\n\ngov-form-group, .gov-form-group,\ngov-form-radio-group, .gov-form-radio-group,\ngov-form-checkbox-group, .gov-form-checkbox-group {\n\t// VARIABLES\n\t@import \"./gov-form-group-variables\";\n\n\t@include reset-margin();\n\t@include base(flex);\n\tflex-direction: column;\n\talign-items: flex-start;\n\t.gov-form-label__label {\n\t\tmargin: 0;\n\t}\n\n\t&[orientation=\"horizontal\"] {\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\t.gov-form-label__label {\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t// SIZES\n\t@each $size, $definitions in $form-group-gaps {\n\t\t&[gap=\"#{$size}\"] {\n\t\t\tgap: map-get($definitions, \"gap\");\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {\n\tFormGroupClass,\n\tFormGroupOrientation,\n\tFormGroupOrientationType,\n\tFormGroupSizes,\n\tFormGroupSizesType,\n\tFormRadioGroupClass\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormRadioEvent} from \"../radio/gov-form-radio.types\"\nimport {FormRadioGroupEvent} from \"./gov-form-group.types\"\nimport {tick} from \"../../../utils/stencil.utils\"\n\n@Component({\n\ttag: \"gov-form-radio-group\",\n\tstyleUrl: \"gov-form-group.scss\",\n})\nexport class GovFormRadioGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovFormGroupElement\n\t/**\n\t * Gap's size.\n\t */\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\n\t/**\n\t * Elements orientation\n\t */\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\t/**\n\t * Group's value\n\t */\n\t@Prop({attribute: \"value\", mutable: true}) value?: string = undefined\n\t/**\n\t * Emitted when the checkbox change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioGroupEvent>\n\n\t@Watch(\"gap\")\n\tvalidateGap(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\t@Watch(\"orientation\")\n\tvalidateOrientation(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupOrientation, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\thandleChange = (event: CustomEvent<FormRadioEvent>) => {\n\t\tevent.stopPropagation()\n\t\tthis.value = event.detail.value\n\t\tthis.govChange.emit({\n\t\t\tvalue: this.value,\n\t\t\tcomponent: FormRadioGroupClass.root,\n\t\t})\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateGap(this.gap)\n\t\tthis.validateOrientation(this.orientation)\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.rerenderComponent())\n\t}\n\n\trerenderComponent(): void {\n\t\tthis.host.querySelectorAll('gov-form-radio').forEach((element) => {\n\t\t\tif (!element.hasAttribute('listener-attached')) {\n\t\t\t\telement.addEventListener('gov-change', this.handleChange)\n\t\t\t}\n\t\t\telement.setAttribute('listener-attached', 'true')\n\t\t\telement.checked = element.value === this.value;\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)} value={this.value}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-form-radio-group.entry.js","mappings":";;;;;;;;;AAAA,MAAM,eAAe,GAAG,ywEAAywE,CAAC;AAClyE,gCAAe,eAAe;;MCmBjB,iBAAiB;IAG7B;;;QAoCA,iBAAY,GAAG,CAAC,KAAkC;YACjD,KAAK,CAAC,eAAe,EAAE,CAAA;YACvB,IAAI,CAAC,KA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;IAED,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,IACjF,8DAAa,CACP,EACP;KACD;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-form/group/gov-form-group.scss?tag=gov-form-radio-group","../../../packages/core/src/components/gov-form/group/gov-form-radio-group.tsx"],"sourcesContent":["/* Form Control */\n\n\ngov-form-group, .gov-form-group,\ngov-form-radio-group, .gov-form-radio-group,\ngov-form-checkbox-group, .gov-form-checkbox-group {\n\t// VARIABLES\n\t@import \"./gov-form-group-variables\";\n\n\t@include reset-margin();\n\t@include base(flex);\n\tflex-direction: column;\n\talign-items: flex-start;\n\t.gov-form-label__label {\n\t\tmargin: 0;\n\t}\n\n\t&[orientation=\"horizontal\"] {\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\t.gov-form-label__label {\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t// SIZES\n\t@each $size, $definitions in $form-group-gaps {\n\t\t&[gap=\"#{$size}\"] {\n\t\t\tgap: map-get($definitions, \"gap\");\n\t\t}\n\t}\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, Watch} from \"@stencil/core\"\nimport {\n\tFormGroupClass,\n\tFormGroupOrientation,\n\tFormGroupOrientationType,\n\tFormGroupSizes,\n\tFormGroupSizesType,\n\tFormRadioGroupClass\n} from \"./constants\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govHost} from \"../../../helpers/Dom/template\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormRadioEvent} from \"../radio/gov-form-radio.types\"\nimport {FormRadioGroupEvent} from \"./gov-form-group.types\"\nimport {tick} from \"../../../utils/stencil.utils\"\n\n@Component({\n\ttag: \"gov-form-radio-group\",\n\tstyleUrl: \"gov-form-group.scss\",\n})\nexport class GovFormRadioGroup {\n\tprivate readonly h: GovHost\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovFormGroupElement\n\t/**\n\t * Gap's size.\n\t */\n\t@Prop() readonly gap?: FormGroupSizesType = undefined\n\t/**\n\t * Elements orientation\n\t */\n\t@Prop() readonly orientation?: FormGroupOrientationType = 'vertical'\n\t/**\n\t * Group's value\n\t */\n\t@Prop({attribute: \"value\", mutable: true}) value?: string = undefined\n\t/**\n\t * Emitted when the checkbox change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioGroupEvent>\n\n\t@Watch(\"gap\")\n\tvalidateGap(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupSizes, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\t@Watch(\"orientation\")\n\tvalidateOrientation(newValue: string): void {\n\t\tif (newValue) {\n\t\t\tvalidateProp(FormGroupOrientation, newValue, FormGroupClass.root)\n\t\t}\n\t}\n\n\thandleChange = (event: CustomEvent<FormRadioEvent>) => {\n\t\tevent.stopPropagation()\n\t\tthis.value = event.detail.value\n\t\tthis.govChange.emit({\n\t\t\tvalue: this.value,\n\t\t\tcomponent: FormRadioGroupClass.root,\n\t\t})\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateGap(this.gap)\n\t\tthis.validateOrientation(this.orientation)\n\t}\n\n\tcomponentDidRender(): void {\n\t\ttick(() => this.rerenderComponent())\n\t}\n\n\trerenderComponent(): void {\n\t\tthis.host.querySelectorAll('gov-form-radio').forEach((element) => {\n\t\t\tif (!element.hasAttribute('listener-attached')) {\n\t\t\t\telement.addEventListener('gov-change', this.handleChange)\n\t\t\t}\n\t\t\telement.setAttribute('listener-attached', 'true')\n\t\t\telement.checked = element.value === this.value;\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host gap={this.gap} class={this.h.classes(FormGroupClass.root)} value={this.value}>\n\t\t\t\t<slot></slot>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"],"version":3}
@@ -1,19 +1,18 @@
1
- import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { c as createID } from './string.utils-5ce3f551.js';
3
- import { v as validateProp } from './props-c82e1abf.js';
4
- import { g as govForm, e as FormRadioClass, f as FormRadioSizes } from './form-472e078d.js';
5
- import { g as govHost, c as toBoolAttr, t as toBoolAttrIfDefined } from './template-3d84d705.js';
1
+ import { r as registerInstance, c as createEvent, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { c as createID } from './string.utils-1da8f8fb.js';
3
+ import { v as validateProp } from './props-9d3c7ac1.js';
4
+ import { g as govForm, e as FormRadioClass, f as FormRadioSizes } from './form-713f26fd.js';
5
+ import { g as govHost, c as toBoolAttr, t as toBoolAttrIfDefined } from './template-7ecee4d1.js';
6
6
  import { F as Fragment } from './Fragment-8d8d54fb.js';
7
7
  import { A as AttributeObserver, a as ariaAttributes } from './attribute-5561aca4.js';
8
8
  import { i as inheritAriaAttributes } from './accessibility-f83c991a.js';
9
- import './gov.log-6e9faad2.js';
10
- import './win-cec370ad.js';
11
- import './utils-2b4ef320.js';
9
+ import './gov.log-6b64cda6.js';
10
+ import './utils-e10e994d.js';
12
11
  import './sizes-5b9e579f.js';
13
- import './constants-7307438d.js';
14
- import './colors-02c1ea96.js';
15
- import './constants-6d727976.js';
16
- import './constants-d42abf99.js';
12
+ import './constants-bc210662.js';
13
+ import './colors-4cf64720.js';
14
+ import './constants-085f9943.js';
15
+ import './constants-43f10674.js';
17
16
 
18
17
  const GovFormRadio = class {
19
18
  constructor(hostRef) {
@@ -1 +1 @@
1
- {"file":"gov-form-radio.entry.js","mappings":";;;;;;;;;;;;;;;;;MAiBa,YAAY;IASxB;;;;;QAFQ,aAAQ,GAAG,KAAK,CAAA;;uBAiBmC,KAAK;uBAIhB,KAAK;wBAKhB,KAAK;wBAKL,KAAK;;oBAQ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a,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAEO,eAAe,CAAC,CAAQ;QAC/B,IAAI,CAAC,OAAO,GAAI,CAAC,CAAC,MAA2B,CAAC,OAAO,CAAA;QACrD,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,SAAS,EAAE,cAAc,CAAC,IAAI;YAC9B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,QAAQ,CAAA;KACpB;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-form/radio/gov-form-radio.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormRadioClass, FormRadioSizes, FormRadioSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormRadioEvent} from \"./gov-form-radio.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\n\n@Component({\n\ttag: \"gov-form-radio\",\n})\nexport class GovFormRadio {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly radioId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.radioId = createID(\"GovRadio\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormRadioElement\n\t/**\n\t * Value of radio\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Radio button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the radio component disabled.\n\t * This prevents users from being able to interact with the radio, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop() readonly disabled: boolean = false\n\t/**\n\t * Name of the radio.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Radio's size.\n\t */\n\t@Prop() readonly size?: FormRadioSizesType = \"m\"\n\t/**\n\t * Custom radio identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the radio has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormRadioEvent>\n\t/**\n\t * Emitted when the radio loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormRadioEvent>\n\t/**\n\t * Emitted when the radio change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormRadioSizes, newValue, FormRadioClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"radio\")\n\t}\n\n\n\tcomponentWillLoad() {\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.radioId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst wrapRadio = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn <label class={FormRadioClass.label}>{children}</label>\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={FormRadioClass.root} hydrated={this.hydrated} checked={this.checked} size={this.size}\n\t\t\t\t invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapRadio(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormRadioClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.radioId}\n\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<slot name=\"label\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-form-radio.entry.js","mappings":";;;;;;;;;;;;;;;;MAiBa,YAAY;IASxB;;;;;QAFQ,aAAQ,GAAG,KAAK,CAAA;;uBAiBmC,KAAK;uBAIhB,KAAK;wBAKhB,KAAK;wBAKU,KAAK;;oBAQZ,GAAG;;;mCAkCL,EAAE;QAtE5C,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAA;QAEnC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KACxB;IAuDD,YAAY,CAAC,QAAgB;QAC5B,YAAY,CAAC,cAAc,EAAE,QAAQ,EAAE,cAAc,CAAC,IAAI,CAAC,CAAA;KAC3D;IAKD,iBAAiB;QAChB,IAAI,CAAC,gBAAgB,EAAE,CAAA;KACvB;IAIO,gBAAgB;QACvB,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3C,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,SAAS,EAAE,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;QAC7D,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KACzC;IAGD,iBAAiB;QAChB,IAAI,CAAC,mBAAmB,GAAG,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC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AK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAEO,aAAa,CAAC,CAAa;QAClC,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YACjB,SAAS,EAAE,cAAc,CAAC,IAAI;YAC9B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAEO,eAAe,CAAC,CAAQ;QAC/B,IAAI,CAAC,OAAO,GAAI,CAAC,CAAC,MAA2B,CAAC,OAAO,CAAA;QACrD,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YACnB,SAAS,EAAE,cAAc,CAAC,IAAI;YAC9B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;;;;IAMD,MAAM,MAAM;QACX,OAAO,IAAI,CAAC,QAAQ,CAAA;KACpB;;;;;;;;;;;","names":[],"sources":["../../../packages/core/src/components/gov-form/radio/gov-form-radio.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormRadioClass, FormRadioSizes, FormRadioSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormRadioEvent} from \"./gov-form-radio.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\n\n@Component({\n\ttag: \"gov-form-radio\",\n})\nexport class GovFormRadio {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly radioId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.radioId = createID(\"GovRadio\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormRadioElement\n\t/**\n\t * Value of radio\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Radio button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the radio component disabled.\n\t * This prevents users from being able to interact with the radio, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the radio.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Radio's size.\n\t */\n\t@Prop() readonly size?: FormRadioSizesType = \"m\"\n\t/**\n\t * Custom radio identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the radio has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormRadioEvent>\n\t/**\n\t * Emitted when the radio loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormRadioEvent>\n\t/**\n\t * Emitted when the radio change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormRadioSizes, newValue, FormRadioClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"radio\")\n\t}\n\n\n\tcomponentWillLoad() {\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.radioId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst wrapRadio = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn <label class={FormRadioClass.label}>{children}</label>\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={FormRadioClass.root} hydrated={this.hydrated} checked={this.checked} size={this.size}\n\t\t\t\t invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapRadio(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormRadioClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.radioId}\n\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<slot name=\"label\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, a as Host, g as getElement } from './index-d8b4eb6c.js';
2
- import { C as Colors } from './colors-02c1ea96.js';
3
- import { a as pick } from './utils-2b4ef320.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-c263e031.js';
2
+ import { C as Colors } from './colors-4cf64720.js';
3
+ import { p as pick } from './utils-e10e994d.js';
4
4
  import { S as Sizes } from './sizes-5b9e579f.js';
5
5
 
6
6
  pick(Sizes, ['_S', '_M', '_L']);
@@ -16,7 +16,7 @@ const GovFormSearch = class {
16
16
  this.color = 'neutral';
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '6be1b8a6c40809bd514b13802f4eaafc51f4acca', class: FormSearchClass.root, color: this.color, size: this.size }, h("slot", { key: '66295dad2acc05f00b49005e9e44fddd9b37d34d', name: "input" }), h("slot", { key: 'f1130dea04c5169abe8c58af3bb85af3855eed85', name: "button-erase" }), h("slot", { key: '35f7fc4d436fb504eeb10d223afee468b06fd2a2', name: "button" })));
19
+ return (h(Host, { key: '9d628d34bd6f19132ea398437faf9023a322bdcf', class: FormSearchClass.root, color: this.color, size: this.size }, h("slot", { key: 'aa70625f5e6b754a18b36ad87634fe5be1a34fb7', name: "input" }), h("slot", { key: 'd098e011406c85877131ee57c04bc9a3f05ded18', name: "button-erase" }), h("slot", { key: '6a5226ae29cf22f4ec33ecf5604db44d8154d2fa', name: "button" })));
20
20
  }
21
21
  get host() { return getElement(this); }
22
22
  };