@gov-design-system-ce/components 4.1.0-rc02 → 4.1.0-rc04

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 (531) hide show
  1. package/dist/cjs/core.cjs.js +2 -2
  2. package/dist/cjs/gov-accordion-item.cjs.entry.js +8 -5
  3. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/gov-attachments_3.cjs.entry.js +6 -6
  6. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  7. package/dist/cjs/gov-backdrop.cjs.entry.js +4 -4
  8. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +4 -4
  9. package/dist/cjs/gov-button.cjs.entry.js +6 -6
  10. package/dist/cjs/gov-card.cjs.entry.js +4 -4
  11. package/dist/cjs/gov-chip.cjs.entry.js +4 -4
  12. package/dist/cjs/gov-container.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-control-group.cjs.entry.js +2 -2
  14. package/dist/cjs/gov-cookiebar.cjs.entry.js +2 -2
  15. package/dist/cjs/gov-dialog.cjs.entry.js +4 -4
  16. package/dist/cjs/gov-dialog.cjs.entry.js.map +1 -1
  17. package/dist/cjs/gov-dropdown.cjs.entry.js +3 -3
  18. package/dist/cjs/gov-empty.cjs.entry.js +2 -2
  19. package/dist/cjs/gov-error-code.cjs.entry.js +2 -2
  20. package/dist/cjs/gov-flex.cjs.entry.js +31 -0
  21. package/dist/cjs/gov-flex.cjs.entry.js.map +1 -0
  22. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +3 -3
  23. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +2 -2
  24. package/dist/cjs/gov-form-checkbox.cjs.entry.js +2 -2
  25. package/dist/cjs/gov-form-control.cjs.entry.js +3 -3
  26. package/dist/cjs/gov-form-file.cjs.entry.js +8 -3
  27. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  28. package/dist/cjs/gov-form-group.cjs.entry.js +2 -2
  29. package/dist/cjs/gov-form-input_2.cjs.entry.js +6 -6
  30. package/dist/cjs/gov-form-label.cjs.entry.js +2 -2
  31. package/dist/cjs/gov-form-multi-select.cjs.entry.js +7 -22
  32. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  33. package/dist/cjs/gov-form-password-power.cjs.entry.js +2 -2
  34. package/dist/cjs/gov-form-radio-group.cjs.entry.js +2 -2
  35. package/dist/cjs/gov-form-radio.cjs.entry.js +2 -2
  36. package/dist/cjs/gov-form-search.cjs.entry.js +2 -2
  37. package/dist/cjs/gov-form-select.cjs.entry.js +4 -4
  38. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -2
  39. package/dist/cjs/gov-grid-item.cjs.entry.js +2 -2
  40. package/dist/cjs/gov-grid.cjs.entry.js +2 -2
  41. package/dist/cjs/gov-icon.cjs.entry.js +2 -2
  42. package/dist/cjs/gov-infobar.cjs.entry.js +3 -3
  43. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  44. package/dist/cjs/gov-layout-column.cjs.entry.js +2 -2
  45. package/dist/cjs/gov-layout.cjs.entry.js +2 -2
  46. package/dist/cjs/gov-lifecycle.cjs.entry.js +47 -0
  47. package/dist/cjs/gov-lifecycle.cjs.entry.js.map +1 -0
  48. package/dist/cjs/gov-loading.cjs.entry.js +2 -2
  49. package/dist/cjs/gov-message.cjs.entry.js +2 -2
  50. package/dist/cjs/gov-pagination.cjs.entry.js +3 -3
  51. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  52. package/dist/cjs/gov-spacer.cjs.entry.js +2 -2
  53. package/dist/cjs/gov-stepper-item.cjs.entry.js +3 -3
  54. package/dist/cjs/gov-stepper.cjs.entry.js +2 -2
  55. package/dist/cjs/gov-tabs-item.cjs.entry.js +3 -3
  56. package/dist/cjs/gov-tabs.cjs.entry.js +2 -2
  57. package/dist/cjs/gov-tag.cjs.entry.js +2 -2
  58. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-theme-switch.cjs.entry.js +73 -0
  60. package/dist/cjs/gov-theme-switch.cjs.entry.js.map +1 -0
  61. package/dist/cjs/gov-tile.cjs.entry.js +2 -2
  62. package/dist/cjs/gov-tiles.cjs.entry.js +2 -2
  63. package/dist/cjs/gov-toast.cjs.entry.js +5 -6
  64. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-tooltip-content.cjs.entry.js +2 -2
  66. package/dist/cjs/gov-tooltip.cjs.entry.js +4 -4
  67. package/dist/cjs/gov-wizard-item.cjs.entry.js +4 -4
  68. package/dist/cjs/gov-wizard.cjs.entry.js +4 -4
  69. package/dist/cjs/{index-1af4880c.js → index-7ff4447c.js} +20 -4
  70. package/dist/cjs/index-7ff4447c.js.map +1 -0
  71. package/dist/cjs/loader.cjs.js +2 -2
  72. package/dist/cjs/{string.utils-2335838f.js → string.utils-b84c81cf.js} +2 -1
  73. package/dist/cjs/string.utils-b84c81cf.js.map +1 -0
  74. package/dist/cjs/{wcag-31089f70.js → wcag-b8d80c7d.js} +2 -2
  75. package/dist/cjs/{wcag-31089f70.js.map → wcag-b8d80c7d.js.map} +1 -1
  76. package/dist/collection/collection-manifest.json +2 -1
  77. package/dist/collection/components/gov-accordion/gov-accordion-item.js +8 -5
  78. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  79. package/dist/collection/components/gov-attachments/gov-attachments-item.js +1 -1
  80. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  81. package/dist/collection/components/gov-attachments/gov-attachments.js +1 -1
  82. package/dist/collection/components/gov-backdrop/gov-backdrop.js +1 -1
  83. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +1 -1
  84. package/dist/collection/components/gov-button/button/gov-button.js +3 -3
  85. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +1 -1
  86. package/dist/collection/components/gov-card/gov-card.js +1 -1
  87. package/dist/collection/components/gov-chip/gov-chip.js +2 -2
  88. package/dist/collection/components/gov-container/gov-container.js +1 -1
  89. package/dist/collection/components/gov-control-group/gov-control-group.js +1 -1
  90. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +1 -1
  91. package/dist/collection/components/gov-dialog/gov-dialog.js +1 -1
  92. package/dist/collection/components/gov-dialog/gov-dialog.js.map +1 -1
  93. package/dist/collection/components/gov-empty/gov-empty.js +1 -1
  94. package/dist/collection/components/gov-error-code/gov-error-code.js +1 -1
  95. package/dist/collection/components/gov-flex/constants.js +4 -0
  96. package/dist/collection/components/gov-flex/constants.js.map +1 -0
  97. package/dist/collection/components/gov-flex/gov-flex.js +127 -0
  98. package/dist/collection/components/gov-flex/gov-flex.js.map +1 -0
  99. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +1 -1
  100. package/dist/collection/components/gov-form/control/gov-form-control.js +1 -1
  101. package/dist/collection/components/gov-form/file/gov-form-file.js +6 -1
  102. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  103. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +1 -1
  104. package/dist/collection/components/gov-form/group/gov-form-group.js +1 -1
  105. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +1 -1
  106. package/dist/collection/components/gov-form/input/gov-form-input.js +3 -3
  107. package/dist/collection/components/gov-form/label/gov-form-label.js +1 -1
  108. package/dist/collection/components/gov-form/message/gov-form-message.js +1 -1
  109. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +4 -28
  110. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  111. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +1 -1
  112. package/dist/collection/components/gov-form/search/gov-form-search.js +1 -1
  113. package/dist/collection/components/gov-form/select/gov-form-select.js +2 -2
  114. package/dist/collection/components/gov-grid/gov-grid-item.js +1 -1
  115. package/dist/collection/components/gov-grid/gov-grid.js +1 -1
  116. package/dist/collection/components/gov-infobar/gov-infobar.js +2 -2
  117. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  118. package/dist/collection/components/gov-layout/gov-layout-column.js +1 -1
  119. package/dist/collection/components/gov-layout/gov-layout.js +1 -1
  120. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js +39 -0
  121. package/dist/collection/components/gov-lifecycle-tester/gov-lifecycle-tester.js.map +1 -0
  122. package/dist/collection/components/gov-loading/loading/gov-loading.js +1 -1
  123. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +1 -1
  124. package/dist/collection/components/gov-message/gov-message.js +1 -1
  125. package/dist/collection/components/gov-pagination/gov-pagination.js +1 -1
  126. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  127. package/dist/collection/components/gov-spacer/gov-spacer.js +1 -1
  128. package/dist/collection/components/gov-stepper/gov-stepper-item.js +1 -1
  129. package/dist/collection/components/gov-stepper/gov-stepper.js +1 -1
  130. package/dist/collection/components/gov-tabs/gov-tabs-item.js +1 -1
  131. package/dist/collection/components/gov-tabs/gov-tabs.js +1 -1
  132. package/dist/collection/components/gov-tag/gov-tag.js +1 -1
  133. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  134. package/dist/collection/components/gov-theme-switch/gov-theme-switch.js +1 -1
  135. package/dist/collection/components/gov-tile/container/gov-tiles.js +1 -1
  136. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  137. package/dist/collection/components/gov-toast/gov-toast.js +3 -4
  138. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  139. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +1 -1
  140. package/dist/collection/components/gov-tooltip/gov-tooltip.js +2 -2
  141. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  142. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  143. package/dist/collection/pages/Forms.js +159 -159
  144. package/dist/collection/pages/Forms.js.map +1 -1
  145. package/dist/collection/pages/Grid.js +1 -1
  146. package/dist/collection/pages/Grid.js.map +1 -1
  147. package/dist/collection/pages/Spacer.js +1 -1
  148. package/dist/collection/pages/Spacer.js.map +1 -1
  149. package/dist/collection/pages/Tag.js +135 -160
  150. package/dist/collection/pages/Tag.js.map +1 -1
  151. package/dist/collection/pages/Wizard.js +1 -1
  152. package/dist/collection/pages/Wizard.js.map +1 -1
  153. package/dist/collection/utils/string.utils.js +1 -1
  154. package/dist/collection/utils/string.utils.js.map +1 -1
  155. package/dist/components/gov-accordion-item.js +1 -1
  156. package/dist/components/gov-accordion-item.js.map +1 -1
  157. package/dist/components/gov-accordion.js +1 -1
  158. package/dist/components/gov-attachments-item.js +1 -1
  159. package/dist/components/gov-attachments.js +1 -1
  160. package/dist/components/gov-backdrop.js +1 -1
  161. package/dist/components/gov-breadcrumbs.js +1 -1
  162. package/dist/components/gov-breadcrumbs.js.map +1 -1
  163. package/dist/components/gov-button.js +1 -1
  164. package/dist/components/gov-card.js +1 -1
  165. package/dist/components/gov-chip.js +1 -1
  166. package/dist/components/gov-container.js +1 -1
  167. package/dist/components/gov-control-group.js +1 -1
  168. package/dist/components/gov-cookiebar.js +1 -1
  169. package/dist/components/gov-dialog.js +1 -1
  170. package/dist/components/gov-dialog.js.map +1 -1
  171. package/dist/components/gov-dropdown.js +1 -1
  172. package/dist/components/gov-dropdown.js.map +1 -1
  173. package/dist/components/gov-empty.js +1 -1
  174. package/dist/components/gov-error-code.js +1 -1
  175. package/dist/components/{gov-app.d.ts → gov-flex.d.ts} +4 -4
  176. package/dist/components/gov-flex.js +2 -0
  177. package/dist/components/gov-flex.js.map +1 -0
  178. package/dist/components/gov-form-autocomplete.js +1 -1
  179. package/dist/components/gov-form-checkbox-group.js +1 -1
  180. package/dist/components/gov-form-checkbox.js +1 -1
  181. package/dist/components/gov-form-control.js +1 -1
  182. package/dist/components/gov-form-file.js +1 -1
  183. package/dist/components/gov-form-file.js.map +1 -1
  184. package/dist/components/gov-form-group.js +1 -1
  185. package/dist/components/gov-form-input.js +1 -1
  186. package/dist/components/gov-form-label.js +1 -1
  187. package/dist/components/gov-form-message.js +1 -1
  188. package/dist/components/gov-form-multi-select.js +1 -1
  189. package/dist/components/gov-form-multi-select.js.map +1 -1
  190. package/dist/components/gov-form-password-power.js +1 -1
  191. package/dist/components/gov-form-password-power.js.map +1 -1
  192. package/dist/components/gov-form-radio-group.js +1 -1
  193. package/dist/components/gov-form-radio.js +1 -1
  194. package/dist/components/gov-form-radio.js.map +1 -1
  195. package/dist/components/gov-form-search.js +1 -1
  196. package/dist/components/gov-form-select.js +1 -1
  197. package/dist/components/gov-form-switch.js +1 -1
  198. package/dist/components/gov-grid-item.js +1 -1
  199. package/dist/components/gov-grid.js +1 -1
  200. package/dist/components/gov-icon.js +1 -1
  201. package/dist/components/gov-infobar.js +1 -1
  202. package/dist/components/gov-infobar.js.map +1 -1
  203. package/dist/components/gov-layout-column.js +1 -1
  204. package/dist/components/gov-layout.js +1 -1
  205. package/dist/components/gov-lifecycle.d.ts +11 -0
  206. package/dist/components/gov-lifecycle.js +2 -0
  207. package/dist/components/gov-lifecycle.js.map +1 -0
  208. package/dist/components/gov-loading.js +1 -1
  209. package/dist/components/gov-loading.js.map +1 -1
  210. package/dist/components/gov-message.js +1 -1
  211. package/dist/components/gov-pagination.js +1 -1
  212. package/dist/components/gov-pagination.js.map +1 -1
  213. package/dist/components/gov-skeleton.js +1 -1
  214. package/dist/components/gov-spacer.js +1 -1
  215. package/dist/components/gov-stepper-item.js +1 -1
  216. package/dist/components/gov-stepper.js +1 -1
  217. package/dist/components/gov-tabs-item.js +1 -1
  218. package/dist/components/gov-tabs.js +1 -1
  219. package/dist/components/gov-tabs.js.map +1 -1
  220. package/dist/components/gov-tag.js +1 -1
  221. package/dist/components/gov-tag.js.map +1 -1
  222. package/dist/components/gov-theme-switch.js +1 -1
  223. package/dist/components/gov-tile.js +1 -1
  224. package/dist/components/gov-tiles.js +1 -1
  225. package/dist/components/gov-toast.js +1 -1
  226. package/dist/components/gov-toast.js.map +1 -1
  227. package/dist/components/gov-tooltip-content.js +1 -1
  228. package/dist/components/gov-tooltip-content.js.map +1 -1
  229. package/dist/components/gov-tooltip.js +1 -1
  230. package/dist/components/gov-wizard-item.js +1 -1
  231. package/dist/components/gov-wizard.js +1 -1
  232. package/dist/components/index.js +1 -1
  233. package/dist/components/p-02da2aee.js +2 -0
  234. package/dist/components/{p-e9b35956.js.map → p-02da2aee.js.map} +1 -1
  235. package/dist/components/p-1d3019f3.js +2 -0
  236. package/dist/components/{p-e183a7c7.js → p-1f3bb41d.js} +2 -2
  237. package/dist/components/{p-6e19816b.js → p-23b7e680.js} +2 -2
  238. package/dist/components/{p-5caf1fe1.js → p-387052e1.js} +2 -2
  239. package/dist/components/{p-c9a15c52.js → p-3b807239.js} +2 -2
  240. package/dist/components/{p-ae3dada7.js → p-42200001.js} +3 -3
  241. package/dist/components/p-42200001.js.map +1 -0
  242. package/dist/components/{p-ff0cf148.js → p-5cc316bc.js} +2 -2
  243. package/dist/components/{p-e20bb5dc.js → p-6ea84137.js} +2 -2
  244. package/dist/components/p-820b66c0.js +2 -0
  245. package/dist/components/{p-fe1842da.js.map → p-820b66c0.js.map} +1 -1
  246. package/dist/components/p-880743a5.js.map +1 -1
  247. package/dist/components/{p-736e4917.js → p-bd22e21d.js} +2 -2
  248. package/dist/components/{p-2da35aa8.js → p-c211c3e1.js} +2 -2
  249. package/dist/components/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  250. package/dist/components/p-cd6c2938.js.map +1 -0
  251. package/dist/components/{p-9a93146e.js → p-dcee21ca.js} +2 -2
  252. package/dist/core/core.css +158 -29
  253. package/dist/core/core.esm.js +1 -1
  254. package/dist/core/core.esm.js.map +1 -1
  255. package/dist/core/p-0a24806a.entry.js +2 -0
  256. package/dist/core/{p-9d0f20ec.entry.js.map → p-0a24806a.entry.js.map} +1 -1
  257. package/dist/core/{p-9ff8f059.entry.js → p-0d2c4d31.entry.js} +2 -2
  258. package/dist/core/p-10f9bf55.entry.js +2 -0
  259. package/dist/core/{p-17015e36.entry.js.map → p-10f9bf55.entry.js.map} +1 -1
  260. package/dist/core/{p-0a952b3c.entry.js → p-12680890.entry.js} +2 -2
  261. package/dist/core/p-1600c1fb.entry.js +2 -0
  262. package/dist/core/p-18025823.entry.js +2 -0
  263. package/dist/core/p-18025823.entry.js.map +1 -0
  264. package/dist/core/p-18dbe177.entry.js +2 -0
  265. package/dist/core/p-18dbe177.entry.js.map +1 -0
  266. package/dist/core/{p-74e9ad9d.entry.js → p-1a550eee.entry.js} +2 -2
  267. package/dist/core/{p-9b41ac88.entry.js → p-1f1895c0.entry.js} +2 -2
  268. package/dist/core/p-1fdc2457.entry.js +2 -0
  269. package/dist/core/p-212759be.entry.js +2 -0
  270. package/dist/core/{p-db940455.entry.js.map → p-212759be.entry.js.map} +1 -1
  271. package/dist/core/p-215504c1.entry.js +2 -0
  272. package/dist/core/p-2c3ddc57.entry.js +2 -0
  273. package/dist/core/{p-83039b10.entry.js.map → p-2c3ddc57.entry.js.map} +1 -1
  274. package/dist/core/p-31e7d262.entry.js +2 -0
  275. package/dist/core/p-31e7d262.entry.js.map +1 -0
  276. package/dist/core/{p-b3acb156.entry.js → p-32bba4e7.entry.js} +2 -2
  277. package/dist/core/{p-fa7caad6.entry.js → p-378e0723.entry.js} +2 -2
  278. package/dist/core/{p-0ebc8365.entry.js → p-3844a27d.entry.js} +2 -2
  279. package/dist/core/p-4cb4de7b.entry.js +2 -0
  280. package/dist/core/{p-aa8adc45.entry.js.map → p-4cb4de7b.entry.js.map} +1 -1
  281. package/dist/core/p-56f9e026.entry.js +2 -0
  282. package/dist/core/p-57b0e670.entry.js +2 -0
  283. package/dist/core/{p-b55fc943.entry.js.map → p-57b0e670.entry.js.map} +1 -1
  284. package/dist/core/p-58dc3ec3.entry.js +2 -0
  285. package/dist/core/p-58dc3ec3.entry.js.map +1 -0
  286. package/dist/core/p-5ad3097c.entry.js +2 -0
  287. package/dist/core/{p-a5489b0e.entry.js.map → p-5ad3097c.entry.js.map} +1 -1
  288. package/dist/core/p-668ca722.entry.js +2 -0
  289. package/dist/core/{p-f1be099b.entry.js → p-67200095.entry.js} +2 -2
  290. package/dist/core/p-731fe7d8.entry.js +2 -0
  291. package/dist/core/{p-5c88f415.entry.js.map → p-731fe7d8.entry.js.map} +1 -1
  292. package/dist/core/p-7591976a.entry.js +2 -0
  293. package/dist/core/p-75ea368b.entry.js +2 -0
  294. package/dist/core/{p-ab9ae7ba.entry.js → p-7b48b1b8.entry.js} +2 -2
  295. package/dist/core/p-7de47344.entry.js +2 -0
  296. package/dist/core/p-7de47344.entry.js.map +1 -0
  297. package/dist/core/p-83aa4327.entry.js +2 -0
  298. package/dist/core/{p-28a7d3f7.js → p-842cb87f.js} +2 -2
  299. package/dist/core/{p-a1e95a5f.js → p-8506b611.js} +3 -3
  300. package/dist/core/p-8506b611.js.map +1 -0
  301. package/dist/core/p-880743a5.js.map +1 -1
  302. package/dist/core/p-89b69743.entry.js +2 -0
  303. package/dist/core/p-8a796fbe.entry.js +2 -0
  304. package/dist/core/p-8f10919c.entry.js +2 -0
  305. package/dist/core/{p-f456bd71.entry.js.map → p-8f10919c.entry.js.map} +1 -1
  306. package/dist/core/p-8fe36a5b.entry.js +2 -0
  307. package/dist/core/p-915e53ac.entry.js +2 -0
  308. package/dist/core/{p-47e364bb.entry.js.map → p-915e53ac.entry.js.map} +1 -1
  309. package/dist/core/p-92e13f9d.entry.js +2 -0
  310. package/dist/core/p-a274cdaa.entry.js +2 -0
  311. package/dist/core/p-a274cdaa.entry.js.map +1 -0
  312. package/dist/core/p-a9a095c2.entry.js +2 -0
  313. package/dist/core/p-a9a095c2.entry.js.map +1 -0
  314. package/dist/core/{p-81b0848c.entry.js → p-ab68c0b7.entry.js} +2 -2
  315. package/dist/core/p-b50ffab3.entry.js +2 -0
  316. package/dist/core/p-b70cc248.entry.js +2 -0
  317. package/dist/core/p-b822b9ff.entry.js +2 -0
  318. package/dist/core/p-c0a5a3f7.entry.js +2 -0
  319. package/dist/core/p-c5b5fd69.entry.js +2 -0
  320. package/dist/core/{p-6d772ff9.entry.js.map → p-c5b5fd69.entry.js.map} +1 -1
  321. package/dist/core/{p-95d41a3b.js → p-cd6c2938.js} +2 -2
  322. package/dist/core/p-cd6c2938.js.map +1 -0
  323. package/dist/core/{p-3f2b803c.entry.js → p-d1c4eb91.entry.js} +2 -2
  324. package/dist/core/{p-d2351924.entry.js → p-d3963396.entry.js} +2 -2
  325. package/dist/core/p-d4fbc249.entry.js +2 -0
  326. package/dist/core/{p-5dc0af54.entry.js.map → p-d4fbc249.entry.js.map} +1 -1
  327. package/dist/core/{p-fc90bf06.entry.js → p-d949aac7.entry.js} +2 -2
  328. package/dist/core/p-e6af4c58.entry.js +2 -0
  329. package/dist/core/p-ede7af0a.entry.js +2 -0
  330. package/dist/core/p-ede7af0a.entry.js.map +1 -0
  331. package/dist/core/p-eebc9e71.entry.js +2 -0
  332. package/dist/core/{p-2ed3afef.entry.js → p-eebf7ad8.entry.js} +2 -2
  333. package/dist/core/{p-dc3fab19.entry.js → p-f1c8a96b.entry.js} +2 -2
  334. package/dist/core/{p-dc3fab19.entry.js.map → p-f1c8a96b.entry.js.map} +1 -1
  335. package/dist/core/{p-35e66bef.entry.js → p-f963bb2f.entry.js} +2 -2
  336. package/dist/core/p-fb0df3a5.entry.js +2 -0
  337. package/dist/core/{p-7cf554e6.entry.js.map → p-fb0df3a5.entry.js.map} +1 -1
  338. package/dist/esm/core.js +3 -3
  339. package/dist/esm/gov-accordion-item.entry.js +8 -5
  340. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  341. package/dist/esm/gov-accordion.entry.js +1 -1
  342. package/dist/esm/gov-attachments_3.entry.js +6 -6
  343. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  344. package/dist/esm/gov-backdrop.entry.js +4 -4
  345. package/dist/esm/gov-breadcrumbs.entry.js +4 -4
  346. package/dist/esm/gov-button.entry.js +6 -6
  347. package/dist/esm/gov-card.entry.js +4 -4
  348. package/dist/esm/gov-chip.entry.js +4 -4
  349. package/dist/esm/gov-container.entry.js +2 -2
  350. package/dist/esm/gov-control-group.entry.js +2 -2
  351. package/dist/esm/gov-cookiebar.entry.js +2 -2
  352. package/dist/esm/gov-dialog.entry.js +4 -4
  353. package/dist/esm/gov-dialog.entry.js.map +1 -1
  354. package/dist/esm/gov-dropdown.entry.js +3 -3
  355. package/dist/esm/gov-empty.entry.js +2 -2
  356. package/dist/esm/gov-error-code.entry.js +2 -2
  357. package/dist/esm/gov-flex.entry.js +27 -0
  358. package/dist/esm/gov-flex.entry.js.map +1 -0
  359. package/dist/esm/gov-form-autocomplete.entry.js +3 -3
  360. package/dist/esm/gov-form-checkbox-group.entry.js +2 -2
  361. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  362. package/dist/esm/gov-form-control.entry.js +3 -3
  363. package/dist/esm/gov-form-file.entry.js +8 -3
  364. package/dist/esm/gov-form-file.entry.js.map +1 -1
  365. package/dist/esm/gov-form-group.entry.js +2 -2
  366. package/dist/esm/gov-form-input_2.entry.js +6 -6
  367. package/dist/esm/gov-form-label.entry.js +2 -2
  368. package/dist/esm/gov-form-multi-select.entry.js +7 -22
  369. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  370. package/dist/esm/gov-form-password-power.entry.js +2 -2
  371. package/dist/esm/gov-form-radio-group.entry.js +2 -2
  372. package/dist/esm/gov-form-radio.entry.js +2 -2
  373. package/dist/esm/gov-form-search.entry.js +2 -2
  374. package/dist/esm/gov-form-select.entry.js +4 -4
  375. package/dist/esm/gov-form-switch.entry.js +2 -2
  376. package/dist/esm/gov-grid-item.entry.js +2 -2
  377. package/dist/esm/gov-grid.entry.js +2 -2
  378. package/dist/esm/gov-icon.entry.js +2 -2
  379. package/dist/esm/gov-infobar.entry.js +3 -3
  380. package/dist/esm/gov-infobar.entry.js.map +1 -1
  381. package/dist/esm/gov-layout-column.entry.js +2 -2
  382. package/dist/esm/gov-layout.entry.js +2 -2
  383. package/dist/esm/gov-lifecycle.entry.js +43 -0
  384. package/dist/esm/gov-lifecycle.entry.js.map +1 -0
  385. package/dist/esm/gov-loading.entry.js +2 -2
  386. package/dist/esm/gov-message.entry.js +2 -2
  387. package/dist/esm/gov-pagination.entry.js +3 -3
  388. package/dist/esm/gov-pagination.entry.js.map +1 -1
  389. package/dist/esm/gov-spacer.entry.js +2 -2
  390. package/dist/esm/gov-stepper-item.entry.js +3 -3
  391. package/dist/esm/gov-stepper.entry.js +2 -2
  392. package/dist/esm/gov-tabs-item.entry.js +3 -3
  393. package/dist/esm/gov-tabs.entry.js +2 -2
  394. package/dist/esm/gov-tag.entry.js +2 -2
  395. package/dist/esm/gov-tag.entry.js.map +1 -1
  396. package/dist/esm/gov-theme-switch.entry.js +69 -0
  397. package/dist/esm/gov-theme-switch.entry.js.map +1 -0
  398. package/dist/esm/gov-tile.entry.js +2 -2
  399. package/dist/esm/gov-tiles.entry.js +2 -2
  400. package/dist/esm/gov-toast.entry.js +5 -6
  401. package/dist/esm/gov-toast.entry.js.map +1 -1
  402. package/dist/esm/gov-tooltip-content.entry.js +2 -2
  403. package/dist/esm/gov-tooltip.entry.js +4 -4
  404. package/dist/esm/gov-wizard-item.entry.js +4 -4
  405. package/dist/esm/gov-wizard.entry.js +4 -4
  406. package/dist/esm/{index-d8b4eb6c.js → index-c263e031.js} +20 -4
  407. package/dist/esm/index-c263e031.js.map +1 -0
  408. package/dist/esm/loader.js +3 -3
  409. package/dist/esm/{string.utils-5ce3f551.js → string.utils-1da8f8fb.js} +2 -2
  410. package/dist/esm/string.utils-1da8f8fb.js.map +1 -0
  411. package/dist/esm/{wcag-fa5ce56c.js → wcag-d7c6c252.js} +2 -2
  412. package/dist/esm/{wcag-fa5ce56c.js.map → wcag-d7c6c252.js.map} +1 -1
  413. package/dist/hydrate/index.js +277 -10021
  414. package/dist/hydrate/index.mjs +277 -10021
  415. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +1 -0
  416. package/dist/types/components/gov-flex/constants.d.ts +3 -0
  417. package/dist/types/components/gov-flex/gov-flex.d.ts +33 -0
  418. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -0
  419. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +0 -2
  420. package/dist/types/components/gov-lifecycle-tester/gov-lifecycle-tester.d.ts +14 -0
  421. package/dist/types/components.d.ts +74 -13
  422. package/dist/types/utils/string.utils.d.ts +1 -0
  423. package/package.json +2 -2
  424. package/dist/cjs/gov-app_2.cjs.entry.js +0 -9891
  425. package/dist/cjs/gov-app_2.cjs.entry.js.map +0 -1
  426. package/dist/cjs/index-1af4880c.js.map +0 -1
  427. package/dist/cjs/string.utils-2335838f.js.map +0 -1
  428. package/dist/collection/components/gov-app/gov-app.css +0 -68
  429. package/dist/collection/components/gov-app/gov-app.js +0 -93
  430. package/dist/collection/components/gov-app/gov-app.js.map +0 -1
  431. package/dist/components/gov-app.js +0 -2
  432. package/dist/components/gov-app.js.map +0 -1
  433. package/dist/components/p-95d41a3b.js.map +0 -1
  434. package/dist/components/p-ae3dada7.js.map +0 -1
  435. package/dist/components/p-ae7e6127.js +0 -2
  436. package/dist/components/p-e9b35956.js +0 -2
  437. package/dist/components/p-fe1842da.js +0 -2
  438. package/dist/core/p-006e52f1.entry.js +0 -2
  439. package/dist/core/p-023787b3.entry.js +0 -2
  440. package/dist/core/p-023787b3.entry.js.map +0 -1
  441. package/dist/core/p-17015e36.entry.js +0 -2
  442. package/dist/core/p-182189d2.entry.js +0 -2
  443. package/dist/core/p-2effdd60.entry.js +0 -2
  444. package/dist/core/p-2effdd60.entry.js.map +0 -1
  445. package/dist/core/p-477a5027.entry.js +0 -2
  446. package/dist/core/p-477a5027.entry.js.map +0 -1
  447. package/dist/core/p-47e364bb.entry.js +0 -2
  448. package/dist/core/p-5c88f415.entry.js +0 -2
  449. package/dist/core/p-5dc0af54.entry.js +0 -2
  450. package/dist/core/p-5dcbfca3.entry.js +0 -2
  451. package/dist/core/p-663d3db2.entry.js +0 -2
  452. package/dist/core/p-6b42a387.entry.js +0 -2
  453. package/dist/core/p-6d772ff9.entry.js +0 -2
  454. package/dist/core/p-6ed147a6.entry.js +0 -2
  455. package/dist/core/p-6ed147a6.entry.js.map +0 -1
  456. package/dist/core/p-7cf554e6.entry.js +0 -2
  457. package/dist/core/p-83039b10.entry.js +0 -2
  458. package/dist/core/p-904de5e6.entry.js +0 -2
  459. package/dist/core/p-91a9cd24.entry.js +0 -2
  460. package/dist/core/p-95d41a3b.js.map +0 -1
  461. package/dist/core/p-963f9fcd.entry.js +0 -2
  462. package/dist/core/p-9d0f20ec.entry.js +0 -2
  463. package/dist/core/p-9dde00d8.entry.js +0 -2
  464. package/dist/core/p-a1e95a5f.js.map +0 -1
  465. package/dist/core/p-a1ebb4da.entry.js +0 -2
  466. package/dist/core/p-a53a277a.entry.js +0 -2
  467. package/dist/core/p-a5489b0e.entry.js +0 -2
  468. package/dist/core/p-a54f1db9.entry.js +0 -2
  469. package/dist/core/p-aa8adc45.entry.js +0 -2
  470. package/dist/core/p-b55fc943.entry.js +0 -2
  471. package/dist/core/p-b838bb27.entry.js +0 -2
  472. package/dist/core/p-c214c202.entry.js +0 -2
  473. package/dist/core/p-c214c202.entry.js.map +0 -1
  474. package/dist/core/p-c4c7cb24.entry.js +0 -2
  475. package/dist/core/p-db940455.entry.js +0 -2
  476. package/dist/core/p-e134b123.entry.js +0 -2
  477. package/dist/core/p-e4978aab.entry.js +0 -2
  478. package/dist/core/p-edc05eff.entry.js +0 -2
  479. package/dist/core/p-edc05eff.entry.js.map +0 -1
  480. package/dist/core/p-eeb9cb73.entry.js +0 -2
  481. package/dist/core/p-f141ad5e.entry.js +0 -2
  482. package/dist/core/p-f456bd71.entry.js +0 -2
  483. package/dist/esm/gov-app_2.entry.js +0 -9886
  484. package/dist/esm/gov-app_2.entry.js.map +0 -1
  485. package/dist/esm/index-d8b4eb6c.js.map +0 -1
  486. package/dist/esm/string.utils-5ce3f551.js.map +0 -1
  487. package/dist/types/components/gov-app/gov-app.d.ts +0 -37
  488. /package/dist/components/{p-ae7e6127.js.map → p-1d3019f3.js.map} +0 -0
  489. /package/dist/components/{p-e183a7c7.js.map → p-1f3bb41d.js.map} +0 -0
  490. /package/dist/components/{p-6e19816b.js.map → p-23b7e680.js.map} +0 -0
  491. /package/dist/components/{p-5caf1fe1.js.map → p-387052e1.js.map} +0 -0
  492. /package/dist/components/{p-c9a15c52.js.map → p-3b807239.js.map} +0 -0
  493. /package/dist/components/{p-ff0cf148.js.map → p-5cc316bc.js.map} +0 -0
  494. /package/dist/components/{p-e20bb5dc.js.map → p-6ea84137.js.map} +0 -0
  495. /package/dist/components/{p-736e4917.js.map → p-bd22e21d.js.map} +0 -0
  496. /package/dist/components/{p-2da35aa8.js.map → p-c211c3e1.js.map} +0 -0
  497. /package/dist/components/{p-9a93146e.js.map → p-dcee21ca.js.map} +0 -0
  498. /package/dist/core/{p-9ff8f059.entry.js.map → p-0d2c4d31.entry.js.map} +0 -0
  499. /package/dist/core/{p-0a952b3c.entry.js.map → p-12680890.entry.js.map} +0 -0
  500. /package/dist/core/{p-e4978aab.entry.js.map → p-1600c1fb.entry.js.map} +0 -0
  501. /package/dist/core/{p-74e9ad9d.entry.js.map → p-1a550eee.entry.js.map} +0 -0
  502. /package/dist/core/{p-9b41ac88.entry.js.map → p-1f1895c0.entry.js.map} +0 -0
  503. /package/dist/core/{p-5dcbfca3.entry.js.map → p-1fdc2457.entry.js.map} +0 -0
  504. /package/dist/core/{p-f141ad5e.entry.js.map → p-215504c1.entry.js.map} +0 -0
  505. /package/dist/core/{p-b3acb156.entry.js.map → p-32bba4e7.entry.js.map} +0 -0
  506. /package/dist/core/{p-fa7caad6.entry.js.map → p-378e0723.entry.js.map} +0 -0
  507. /package/dist/core/{p-0ebc8365.entry.js.map → p-3844a27d.entry.js.map} +0 -0
  508. /package/dist/core/{p-182189d2.entry.js.map → p-56f9e026.entry.js.map} +0 -0
  509. /package/dist/core/{p-b838bb27.entry.js.map → p-668ca722.entry.js.map} +0 -0
  510. /package/dist/core/{p-f1be099b.entry.js.map → p-67200095.entry.js.map} +0 -0
  511. /package/dist/core/{p-6b42a387.entry.js.map → p-7591976a.entry.js.map} +0 -0
  512. /package/dist/core/{p-963f9fcd.entry.js.map → p-75ea368b.entry.js.map} +0 -0
  513. /package/dist/core/{p-ab9ae7ba.entry.js.map → p-7b48b1b8.entry.js.map} +0 -0
  514. /package/dist/core/{p-eeb9cb73.entry.js.map → p-83aa4327.entry.js.map} +0 -0
  515. /package/dist/core/{p-28a7d3f7.js.map → p-842cb87f.js.map} +0 -0
  516. /package/dist/core/{p-904de5e6.entry.js.map → p-89b69743.entry.js.map} +0 -0
  517. /package/dist/core/{p-e134b123.entry.js.map → p-8a796fbe.entry.js.map} +0 -0
  518. /package/dist/core/{p-663d3db2.entry.js.map → p-8fe36a5b.entry.js.map} +0 -0
  519. /package/dist/core/{p-a53a277a.entry.js.map → p-92e13f9d.entry.js.map} +0 -0
  520. /package/dist/core/{p-81b0848c.entry.js.map → p-ab68c0b7.entry.js.map} +0 -0
  521. /package/dist/core/{p-a54f1db9.entry.js.map → p-b50ffab3.entry.js.map} +0 -0
  522. /package/dist/core/{p-c4c7cb24.entry.js.map → p-b70cc248.entry.js.map} +0 -0
  523. /package/dist/core/{p-91a9cd24.entry.js.map → p-b822b9ff.entry.js.map} +0 -0
  524. /package/dist/core/{p-a1ebb4da.entry.js.map → p-c0a5a3f7.entry.js.map} +0 -0
  525. /package/dist/core/{p-3f2b803c.entry.js.map → p-d1c4eb91.entry.js.map} +0 -0
  526. /package/dist/core/{p-d2351924.entry.js.map → p-d3963396.entry.js.map} +0 -0
  527. /package/dist/core/{p-fc90bf06.entry.js.map → p-d949aac7.entry.js.map} +0 -0
  528. /package/dist/core/{p-006e52f1.entry.js.map → p-e6af4c58.entry.js.map} +0 -0
  529. /package/dist/core/{p-9dde00d8.entry.js.map → p-eebc9e71.entry.js.map} +0 -0
  530. /package/dist/core/{p-2ed3afef.entry.js.map → p-eebf7ad8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I,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":["createID","govHost","govForm","validateProp","FormMultiselectSizes","FormMultiSelectClass","propsValueToArray","toBoolAttr","AttributeObserver","ariaAttributes","removeDiacritics","tick","h","Host","toBoolAttrIfDefined"],"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.cjs.js","mappings":";;;;;;;;;;;;;;;;;;;;;;MAuBa,kBAAkB;IAW9B;;;;;;;;;;;oBA4BmD,GAAG;;gCAQwB,KAAK;wBAK9C,KAAK;wBAKL,KAAK;;;4BAY0B,gCAAgC;8BAI5B,YAAY;;;oCAwBlB,EAAE;4BAClB,EAAE;mCAiBT,EAAE;QAvG5C,IAAI,CAAC,QAAQ,GAAGA,qBAAQ,CAAC,WAAW,CAAC,CAAA;QACrC,IAAI,CAAC,MAAM,GAAGA,qBAAQ,CAAC,cAAc,CAAC,CAAA;QAEtC,IAAI,CAAC,CAAC,GAAGC,gBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC3B,IAAI,CAAC,CAAC,GAAGC,YAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KACxB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,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":["createID","govHost","govForm","validateProp","FormMultiselectSizes","FormMultiSelectClass","propsValueToArray","AttributeObserver","ariaAttributes","removeDiacritics","tick","h","Host","toBoolAttr","toBoolAttrIfDefined"],"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@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<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</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\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\"></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}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
 
7
7
  const FormPasswordPowerClass = {
8
8
  root: 'gov-form-password-power',
@@ -16,7 +16,7 @@ const GovFormPasswordPower = class {
16
16
  this.power = undefined;
17
17
  }
18
18
  render() {
19
- return (index.h(index.Host, { key: '1b32f76b93fcb8d84018c026510e8c5727604acf', class: FormPasswordPowerClass.root }, index.h("span", { key: '399b95fa5f190728a9efc14f90725599ce14d0e0', class: FormPasswordPowerClass.bar }, index.h("span", { key: 'f305f7b688e8fa752bf91af586b9b6a656f4dd54' }), index.h("span", { key: '18cfee3a78b2e3764953ec8e6d97fb542fd82ca2' }), index.h("span", { key: '1ee33abc6517ac08098fd681dd636426ab29f6e8' })), index.h("span", { key: '7829d02d3a95fdb76a2ae312fc7411ca428052a7', class: FormPasswordPowerClass.text }, index.h("slot", { key: '48e0aee956754dd9982063ee6c6cfadf6d0251a3' }))));
19
+ return (index.h(index.Host, { key: '47ec3fec069cf454df63db947100fd7427377345', class: FormPasswordPowerClass.root }, index.h("span", { key: '66cbb7214a5d7a0c42b238b00118570bddb5a133', class: FormPasswordPowerClass.bar }, index.h("span", { key: '8ebb64daf1f7dc03d21703fcf81e78d82ab7dd91' }), index.h("span", { key: '45e94fe48cf152982558f8729b6dfac4f07d2f81' }), index.h("span", { key: '85d205def5affb8d9cb04cf9a06222263d25ef56' })), index.h("span", { key: '64e74e3e63456f303ef94d7893c71a32200f5d29', class: FormPasswordPowerClass.text }, index.h("slot", { key: '244d847ae3bddb07f33f3fc0b8d5133ede98c542' }))));
20
20
  }
21
21
  };
22
22
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const constants = require('./constants-02aec493.js');
7
7
  const template = require('./template-b070338f.js');
8
8
  const props = require('./props-b8a955b2.js');
@@ -59,7 +59,7 @@ const GovFormRadioGroup = class {
59
59
  });
60
60
  }
61
61
  render() {
62
- return (index.h(index.Host, { key: '0526062e74e480edc22bdbbdf8c1f82a91ff463d', gap: this.gap, class: this.h.classes(constants.FormGroupClass.root), value: this.value }, index.h("slot", { key: 'f11696b75d4f0c4bc72da3ca70d3111825edd36a' })));
62
+ return (index.h(index.Host, { key: '73fa5685f9e9d6d7a55c8aa98a52134b6854cc38', gap: this.gap, class: this.h.classes(constants.FormGroupClass.root), value: this.value }, index.h("slot", { key: '61f973d47a8c215aebff11a16c9a17fdb86210cf' })));
63
63
  }
64
64
  get host() { return index.getElement(this); }
65
65
  static get watchers() { return {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
6
- const string_utils = require('./string.utils-2335838f.js');
5
+ const index = require('./index-7ff4447c.js');
6
+ const string_utils = require('./string.utils-b84c81cf.js');
7
7
  const props = require('./props-b8a955b2.js');
8
8
  const form = require('./form-c1aec07a.js');
9
9
  const template = require('./template-b070338f.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const colors = require('./colors-976f6dff.js');
7
7
  const utils = require('./utils-d263c5c6.js');
8
8
  const sizes = require('./sizes-89f8d3b2.js');
@@ -20,7 +20,7 @@ const GovFormSearch = class {
20
20
  this.color = 'neutral';
21
21
  }
22
22
  render() {
23
- return (index.h(index.Host, { key: '6be1b8a6c40809bd514b13802f4eaafc51f4acca', class: FormSearchClass.root, color: this.color, size: this.size }, index.h("slot", { key: '66295dad2acc05f00b49005e9e44fddd9b37d34d', name: "input" }), index.h("slot", { key: 'f1130dea04c5169abe8c58af3bb85af3855eed85', name: "button-erase" }), index.h("slot", { key: '35f7fc4d436fb504eeb10d223afee468b06fd2a2', name: "button" })));
23
+ return (index.h(index.Host, { key: '4a7e93e514a5077f4291761e23ca40b6de049838', class: FormSearchClass.root, color: this.color, size: this.size }, index.h("slot", { key: 'e15e0767f55d8c16b9e4328786cd12f6a6c8e733', name: "input" }), index.h("slot", { key: 'adeef445bedb5d1ff0c88619081e098bcd582078', name: "button-erase" }), index.h("slot", { key: '5d56bcd4ed0fd8b35c997157dc68c92208b52bdf', name: "button" })));
24
24
  }
25
25
  get host() { return index.getElement(this); }
26
26
  };
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const form = require('./form-c1aec07a.js');
7
7
  const template = require('./template-b070338f.js');
8
8
  const props = require('./props-b8a955b2.js');
9
- const string_utils = require('./string.utils-2335838f.js');
9
+ const string_utils = require('./string.utils-b84c81cf.js');
10
10
  const array_utils = require('./array.utils-96eadde3.js');
11
11
  const stencil_utils = require('./stencil.utils-182382ee.js');
12
12
  const attribute = require('./attribute-06dc5228.js');
@@ -97,10 +97,10 @@ const GovFormSelect = class {
97
97
  });
98
98
  }
99
99
  render() {
100
- return (index.h(index.Host, { key: '1603b487cb27e87d0c7d894c52179fc0f10f5889', class: form.FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && index.h("slot", { key: '6ccaee3373fff628f817bc5c64846dbe70b2a0e1', name: "prefix" }), index.h("span", { key: '71c8144f67cfb19874fadbc56a5e3b14be80de35', class: "element" }, index.h("gov-icon", { key: '2a95e7d17ae06b1fef26fb7c6b6bca6229992a73', slot: "right-icon", name: "chevron-down", class: "icon-arrow" }), this.h.hasSlot('right-icon') && !(this.success || this.invalid) && index.h("slot", { key: '35b5bd9fb11ed7e7aecefa7a2dc5e32552eb44e5', name: "right-icon" }), this.success && index.h("gov-icon", { key: 'c35c20feca720276afc86378338a124c31ae72e7', slot: "validation-icon", name: "check-lg" }), this.invalid && index.h("gov-icon", { key: 'dff3726140aef5632b7ae1f73144a69c042c43eb', slot: "validation-icon", name: "exclamation-lg" }), index.h("select", Object.assign({ key: '1174e88bc1ad6b60c843addd245b936e778a49e4', id: this.identifier || this.selectId, onFocus: this.onFocusHandler.bind(this), onChange: this.onChangeHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": template.toBoolAttrIfDefined(this.disabled), "aria-required": template.toBoolAttrIfDefined(this.required), "aria-invalid": template.toBoolAttrIfDefined(this.invalid) }), index.h("slot", { key: '1cfedcf253a859a468bfc0be2125d8c8da8d92aa' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
100
+ return (index.h(index.Host, { key: 'c0ecdadf5c1d3e4782078250d57e5fa08c44c3ad', class: form.FormSelectClass.root, size: this.size }, this.h.hasSlot('prefix') && index.h("slot", { key: 'c71e30f520a8416e9e7919cfb88cfaaae968de53', name: "prefix" }), index.h("span", { key: '65d66fb26ba9fb6b81f05bde3e3aa2ca3f556206', class: "element" }, index.h("gov-icon", { key: 'e70a2a24f8e6cec8547b563265d9cbef115e3c49', slot: "right-icon", name: "chevron-down", class: "icon-arrow" }), this.h.hasSlot('right-icon') && !(this.success || this.invalid) && index.h("slot", { key: 'efdf84d1516056398cf910e0a67c974aec91afa6', name: "right-icon" }), this.success && index.h("gov-icon", { key: '1400a24fce62f26c5e654a3765642f0486d67773', slot: "validation-icon", name: "check-lg" }), this.invalid && index.h("gov-icon", { key: 'c45ff7215faf1c50da2b07a2d5544f16fb9cd0c9', slot: "validation-icon", name: "exclamation-lg" }), index.h("select", Object.assign({ key: '69dfdb382acb18345b8d5dd2f69428a5a976b7ce', id: this.identifier || this.selectId, onFocus: this.onFocusHandler.bind(this), onChange: this.onChangeHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el) }, this.inheritedAttributes, { "aria-disabled": template.toBoolAttrIfDefined(this.disabled), "aria-required": template.toBoolAttrIfDefined(this.required), "aria-invalid": template.toBoolAttrIfDefined(this.invalid) }), index.h("slot", { key: '9eaea24e76a03a7a627df7de2ce9938c50615a5b' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
101
101
  var _a;
102
102
  return (index.h("option", { value: option.value, selected: option.value === this.value, disabled: option === null || option === void 0 ? void 0 : option.disabled }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value));
103
- }))), this.h.hasSlot('sufix') && index.h("slot", { key: 'f9f301a9b9e64aa83df509479ad21e382052e13a', name: "sufix" })));
103
+ }))), this.h.hasSlot('sufix') && index.h("slot", { key: '6587428974991c9caeb14913a0f08fa17367e3df', name: "sufix" })));
104
104
  }
105
105
  onFocusHandler(e) {
106
106
  this.focused = true;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
6
- const string_utils = require('./string.utils-2335838f.js');
5
+ const index = require('./index-7ff4447c.js');
6
+ const string_utils = require('./string.utils-b84c81cf.js');
7
7
  const props = require('./props-b8a955b2.js');
8
8
  const form = require('./form-c1aec07a.js');
9
9
  const template = require('./template-b070338f.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const constants = require('./constants-52053f2d.js');
7
7
  const template = require('./template-b070338f.js');
8
8
 
@@ -17,7 +17,7 @@ const GovGridItem = class {
17
17
  this.h = template.govHost(this.host);
18
18
  }
19
19
  render() {
20
- return (index.h(index.Host, { key: 'e1dc6e3517618361ab3b5e3ad499a5bbbaae3d6a', class: this.h.classes(constants.GridItemClass.root), role: "listitem", size: this.size, "size-sm": this.sizeSm, "size-md": this.sizeMd, "size-lg": this.sizeLg, "size-xl": this.sizeXl }, index.h("slot", { key: '53780db95fa728f252302cb86923ad9e9fcd9b66' })));
20
+ return (index.h(index.Host, { key: '67fe774dc5344926db8dbfef6f761a305326b82c', class: this.h.classes(constants.GridItemClass.root), role: "listitem", size: this.size, "size-sm": this.sizeSm, "size-md": this.sizeMd, "size-lg": this.sizeLg, "size-xl": this.sizeXl }, index.h("slot", { key: 'b26c3ac972e728a3cbc8713e3c284834d2413ca4' })));
21
21
  }
22
22
  get host() { return index.getElement(this); }
23
23
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const constants = require('./constants-52053f2d.js');
7
7
  const template = require('./template-b070338f.js');
8
8
 
@@ -15,7 +15,7 @@ const GovGrid = class {
15
15
  }
16
16
  // vertical / horizontal align
17
17
  render() {
18
- return (index.h(index.Host, { key: 'd2f4e42a186e0d8020abc96ef3ca0956e1492d05', class: this.h.classes(constants.GridClass.root), "align-x": this.alignX, "align-y": this.alignY, role: "list" }, index.h("slot", { key: '46c60ccdda81ce271aeaca46bead1bf33e22c041' })));
18
+ return (index.h(index.Host, { key: '0b77c477c260c74b5953f9a170da4aee66a8a73a', class: this.h.classes(constants.GridClass.root), "align-x": this.alignX, "align-y": this.alignY, role: "list" }, index.h("slot", { key: '98d0f2a4fadf05fc42ed313b69ad034af2a45705' })));
19
19
  }
20
20
  get host() { return index.getElement(this); }
21
21
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const utils = require('./utils-d263c5c6.js');
7
7
  const colors = require('./colors-976f6dff.js');
8
8
  const win = require('./win-587f4614.js');
@@ -35,7 +35,7 @@ const IconClass = {
35
35
  holder: 'gov-icon__holder',
36
36
  };
37
37
 
38
- const version = "4.1.0-rc02";
38
+ const version = "4.1.0-rc04";
39
39
 
40
40
  const dsVersion = () => {
41
41
  return version;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const template = require('./template-b070338f.js');
7
7
  const Fragment = require('./Fragment-52846f79.js');
8
8
  const props = require('./props-b8a955b2.js');
@@ -62,8 +62,8 @@ const GovInfobar = class {
62
62
  this.inheritedAttributes = Object.assign(Object.assign({}, this.inheritedAttributes), { [attributeName]: newValue });
63
63
  }
64
64
  render() {
65
- const closeButton = (index.h("gov-button", { key: '8153474d0e2ef77bfb100bcb978d4f49b5436add', size: "s", "accessible-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, index.h("gov-icon", { key: 'e49a24686ad48a63e48a3da212dba0a828227355', name: "x-lg" })));
66
- return (index.h(index.Host, { key: 'f9e889af972b6b6d54f4d7dd49b0870328ec3cb2', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, index.h("section", Object.assign({ key: '2fe9fac18a2025f9d932818f8b395adb8d143f97', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), index.h("slot", { key: '58cf1566241cd88e4e87f89bfdbcdee9e3d06cf5', name: "icon" }), index.h("div", { key: '02ec6f434fd5056daa0fb7f471af6714fefcac18', class: InfobarClass.content }, this.h.hasSlot('headline') ? (index.h(Fragment.Fragment, null, index.h("div", { class: InfobarClass.headline }, index.h("slot", { name: "headline" }), index.h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "accessible-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, index.h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down' }))), index.h("div", { hidden: !this.toggleContent, "aria-hidden": template.toBoolAttr(this.toggleContent) }, index.h("slot", null)))) : (index.h("slot", null))), this.closable && closeButton)));
65
+ const closeButton = (index.h("gov-button", { key: '6d4f29f3bc1399f97833680692a69c4a1a2584b5', size: "s", "aria-label": this.accessibleCloseLabel, type: "base", color: this.isBold ? this.color : "neutral", "on-gov-click": this.onCloseHandler.bind(this), class: InfobarClass.close }, index.h("gov-icon", { key: 'c1ae2403b5cbbf93aa248ed410882423b60f9915', name: "x-lg" })));
66
+ return (index.h(index.Host, { key: '356c03e3e65b07704a677ce6fab744f97b499d92', class: this.h.classes(InfobarClass.root), color: this.color, type: this.type }, index.h("section", Object.assign({ key: 'cb599860defaae413b1c90c3bbdb83bfc22c3bfc', class: InfobarClass.section }, this.inheritedAttributes, { role: this.role }), index.h("slot", { key: '3f57ba1936c854f7889ab966a87493193d2ef42a', name: "icon" }), index.h("div", { key: 'cd283d13c928691e6fd2d3a5f5fb47deaa7b6ffb', class: InfobarClass.content }, this.h.hasSlot('headline') ? (index.h(Fragment.Fragment, null, index.h("div", { class: InfobarClass.headline }, index.h("slot", { name: "headline" }), index.h("gov-button", { size: "s", type: "base", color: this.isBold ? this.color : "neutral", "aria-label": this.accessibleToggleLabel, "on-gov-click": () => (this.toggleContent = !this.toggleContent) }, index.h("gov-icon", { name: this.toggleContent ? 'chevron-up' : 'chevron-down' }))), index.h("div", { hidden: !this.toggleContent, "aria-hidden": template.toBoolAttr(this.toggleContent) }, index.h("slot", null)))) : (index.h("slot", null))), this.closable && closeButton)));
67
67
  }
68
68
  onCloseHandler(e) {
69
69
  this.govClose.emit({
@@ -1 +1 @@
1
- {"file":"gov-infobar.entry.cjs.js","mappings":";;;;;;;;;;;;;;;AAIO,MAAM,aAAa,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,C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G,YAAY,GAAG,cAAc,GAAa,CACnE,CACR,EACNA,iBAAK,MAAM,EAAE,CAAC,IAAI,CAAC,aAAa,iBAAeG,mBAAU,CAAC,IAAI,CAAC,aAAa,CAAC,IAC5EH,qBAAO,CACF,CACI,KAEXA,qBAAO,CACP,CACI,EACL,IAAI,CAAC,QAAQ,IAAI,WAAW,CACpB,CACJ,EACP;KACD;IAED,cAAc,CAAC,CAA2B;QACzC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAClB,SAAS,EAAE,YAAY,CAAC,IAAI;YAC5B,GAAG,EAAE,IAAI,CAAC,IAAI;YACd,aAAa,EAAE,CAAC;SAChB,CAAC,CAAA;KACF;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM,CAAA;KAC3B;;;;;;;;;","names":["pick","Colors","govHost","validateProp","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host","Fragment","toBoolAttr"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taccessible-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taccessible-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"version":3}
1
+ {"file":"gov-infobar.entry.cjs.js","mappings":";;;;;;;;;;;;;;;AAIO,MAAM,aAAa,GAAGA,UAAI,CAACC,aAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;AAG7G,IAAY,WAGX;AAHD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AAClB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAGM,MAAM,YAAY,GAAG;IAC3B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,sBAAsB;IAC/B,QAAQ,EAAE,uBAAuB;IACjC,KAAK,EAAE,oBAAoB;CAC3B;;MCJY,UAAU;IAItB;;;qBASoC,SAAS;oBAIF,MAAM;oBAIJ,SAAS;oCAI+B,yBAAyB;qCAIvB,yBAAyB;wBAQ1E,KAAK;6BAElB,K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F;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,KAAK,MAAM,CAAA;KAC3B;;;;;;;;;","names":["pick","Colors","govHost","validateProp","AttributeObserver","ariaAttributes","inheritAriaAttributes","h","Host","Fragment","toBoolAttr"],"sources":["../../../packages/core/src/components/gov-infobar/constants.ts","../../../packages/core/src/components/gov-infobar/gov-infobar.tsx"],"sourcesContent":["import { Colors } from '../../core/constants/colors'\nimport { pick } from '../../utils/utils'\nimport { ValueOf } from '../../types/interfaces'\n\nexport const InfobarColors = pick(Colors, ['PRIMARY', 'SECONDARY', 'NEUTRAL', 'ERROR', 'SUCCESS', 'WARNING'])\nexport type ColorType = `${ValueOf<typeof InfobarColors>}`\n\nexport enum InfobarType {\n\tBOLD = 'bold',\n\tSUBTLE = 'subtle',\n}\nexport type InfobarTypesType = `${ValueOf<typeof InfobarType>}`\n\nexport const InfobarClass = {\n\troot: 'gov-infobar',\n\tsection: 'gov-infobar__section',\n\tcontent: 'gov-infobar__content',\n\theadline: 'gov-infobar__headline',\n\tclose: 'gov-infobar__close',\n}\n","import {Component, Element, Event, EventEmitter, h, Host, Prop, State, Watch} from '@stencil/core'\nimport {govHost, toBoolAttr} from '../../helpers/Dom/template'\nimport {GovHost} from '../../helpers/Dom/template.types'\nimport Fragment from '../../helpers/Fragment'\nimport {validateProp} from '../../helpers/Validate/props'\nimport {ButtonEvent} from '../gov-button/button/gov-button.types'\nimport {ColorType, InfobarClass, InfobarColors, InfobarTypesType} from './constants'\nimport {InfobarEvent} from './gov-infobar.types'\nimport {AttributeObserver, Attributes} from \"../../helpers/Dom/attribute\";\nimport {ariaAttributes} from \"../../helpers/Accessibility/attributes\";\nimport {inheritAriaAttributes} from \"../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-infobar',\n})\nexport class GovInfobar {\n\tprivate h: GovHost\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t}\n\n\t@Element() host: HTMLGovInfobarElement\n\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly color: ColorType = 'primary'\n\t/**\n\t * Infobar appearance\n\t */\n\t@Prop() readonly type?: InfobarTypesType = \"bold\"\n\t/**\n\t * Style variation of the button.\n\t */\n\t@Prop() readonly role: HTMLElement['role'] = undefined\n\t/**\n\t * Aria label for the closing button. It is mandatory if the infobar is closable\n\t */\n\t@Prop({attribute: 'accessible-close-label'}) readonly accessibleCloseLabel: string = 'Zavřít informační lištu'\n\t/**\n\t * Aria label for the toggle button. It is mandatory if the infobar has headline\n\t */\n\t@Prop({attribute: 'accessible-toggle-label'}) readonly accessibleToggleLabel: string = 'Zobrazit více informací'\n\t/**\n\t * Called when the close button is clicked\n\t */\n\t@Event({eventName: 'gov-close'}) govClose: EventEmitter<InfobarEvent>\n\t/**\n\t * Displays the option to close the infobar\n\t */\n\t@Prop() readonly closable?: boolean = false\n\n\t@State() toggleContent = false\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('color')\n\tvalidateColor(newValue: string): void {\n\t\tvalidateProp(InfobarColors, newValue, InfobarClass.root)\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tcomponentWillLoad(): void {\n\t\tthis.validateColor(this.color)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst closeButton = (\n\t\t\t<gov-button size=\"s\"\n\t\t\t\t\t\taria-label={this.accessibleCloseLabel}\n\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\ton-gov-click={this.onCloseHandler.bind(this)}\n\t\t\t\t\t\tclass={InfobarClass.close}>\n\t\t\t\t<gov-icon name=\"x-lg\"></gov-icon>\n\t\t\t</gov-button>\n\t\t)\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(InfobarClass.root)} color={this.color} type={this.type}>\n\t\t\t\t<section class={InfobarClass.section} {...this.inheritedAttributes} role={this.role}>\n\t\t\t\t\t<slot name=\"icon\"/>\n\t\t\t\t\t<div class={InfobarClass.content}>\n\t\t\t\t\t\t{this.h.hasSlot('headline') ? (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<div class={InfobarClass.headline}>\n\t\t\t\t\t\t\t\t\t<slot name={\"headline\"}/>\n\t\t\t\t\t\t\t\t\t<gov-button\n\t\t\t\t\t\t\t\t\t\tsize=\"s\"\n\t\t\t\t\t\t\t\t\t\ttype=\"base\"\n\t\t\t\t\t\t\t\t\t\tcolor={this.isBold ? this.color : \"neutral\"}\n\t\t\t\t\t\t\t\t\t\taria-label={this.accessibleToggleLabel}\n\t\t\t\t\t\t\t\t\t\ton-gov-click={() => (this.toggleContent = !this.toggleContent)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<gov-icon name={this.toggleContent ? 'chevron-up' : 'chevron-down'}></gov-icon>\n\t\t\t\t\t\t\t\t\t</gov-button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div hidden={!this.toggleContent} aria-hidden={toBoolAttr(this.toggleContent)}>\n\t\t\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<slot/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{this.closable && closeButton}\n\t\t\t\t</section>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tonCloseHandler(e: CustomEvent<ButtonEvent>) {\n\t\tthis.govClose.emit({\n\t\t\tcomponent: InfobarClass.root,\n\t\t\tref: this.host,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tget isBold(): boolean {\n\t\treturn this.type === \"bold\"\n\t}\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const constants = require('./constants-a33f6e99.js');
7
7
  const template = require('./template-b070338f.js');
8
8
 
@@ -12,7 +12,7 @@ const GovLayoutColumn = class {
12
12
  this.h = template.govHost(this.host);
13
13
  }
14
14
  render() {
15
- return (index.h(index.Host, { key: 'ebef4ca76b1308a566c862b5a49eecf1eb3fce99', class: this.h.classes(constants.LayoutColumnClass.root) }, index.h("slot", { key: 'aaeefeb1a56b294d91b1327fd52eb16486cfb918' })));
15
+ return (index.h(index.Host, { key: 'df54ae33d7014e4ac0dfa79ffcc9c4c1ad92dffb', class: this.h.classes(constants.LayoutColumnClass.root) }, index.h("slot", { key: '7dfb2ebdcf8974ae17ca181017f2fee58776df9c' })));
16
16
  }
17
17
  get host() { return index.getElement(this); }
18
18
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const constants = require('./constants-a33f6e99.js');
7
7
  const template = require('./template-b070338f.js');
8
8
 
@@ -21,7 +21,7 @@ const GovLayout = class {
21
21
  return originalClass + ' ' + originalClass + isType + isVariant + isInverse;
22
22
  }
23
23
  render() {
24
- return (index.h(index.Host, { key: 'c35fc39e07229363bdf36be5856165e7e8eb7985', type: this.type, class: this.h.classes(constants.LayoutClass.root) }, index.h("section", { key: 'dc50cf9cba8bd4e879291fddfbd41955f2d10330', class: this.typeClass(constants.LayoutClass.section, this.type, this.variant, this.inverse) }, index.h("slot", { key: '017a329c119529d3893e187b6a8bbccfbbc76679' }))));
24
+ return (index.h(index.Host, { key: '8fb6469e60ee22db59a32f94911e5bd559284438', type: this.type, class: this.h.classes(constants.LayoutClass.root) }, index.h("section", { key: 'ef0b2eb7cf294ad4c54585ce329283f34b88c371', class: this.typeClass(constants.LayoutClass.section, this.type, this.variant, this.inverse) }, index.h("slot", { key: '9dd0552d1146df7a89aeae135979f572dfc09204' }))));
25
25
  }
26
26
  get host() { return index.getElement(this); }
27
27
  };
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-7ff4447c.js');
6
+ const string_utils = require('./string.utils-b84c81cf.js');
7
+
8
+ const GovLifecycle = class {
9
+ constructor(hostRef) {
10
+ index.registerInstance(this, hostRef);
11
+ this.uniqueId = 'lifecycle-' + string_utils.chr4();
12
+ }
13
+ connectedCallback() {
14
+ console.log('connectedCallback', this.uniqueId);
15
+ }
16
+ disconnectedCallback() {
17
+ console.log('disconnectedCallback', this.uniqueId);
18
+ }
19
+ componentWillLoad() {
20
+ console.log('componentWillLoad', this.uniqueId);
21
+ }
22
+ componentDidLoad() {
23
+ console.log('componentDidLoad', this.uniqueId);
24
+ }
25
+ componentShouldUpdate() {
26
+ console.log('componentShouldUpdate', this.uniqueId);
27
+ }
28
+ componentWillRender() {
29
+ console.log('componentWillRender', this.uniqueId);
30
+ }
31
+ componentDidRender() {
32
+ console.log('componentDidRender', this.uniqueId);
33
+ }
34
+ componentWillUpdate() {
35
+ console.log('componentWillUpdate', this.uniqueId);
36
+ }
37
+ componentDidUpdate() {
38
+ console.log('componentDidUpdate', this.uniqueId);
39
+ }
40
+ render() {
41
+ return (index.h(index.Host, { key: '9571f893e056c8fa159479cb06da8c06e8724600', identifier: this.uniqueId }, index.h("span", { key: '98894ab03591844c115b94a43ee170585295ddcf' }, "lifecycle ", this.uniqueId)));
42
+ }
43
+ };
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4","h","Host"],"sources":["../../../packages/core/src/components/gov-lifecycle-tester/gov-lifecycle-tester.tsx"],"sourcesContent":["import {Component, h, Host} from '@stencil/core';\nimport {chr4} from \"../../utils/string.utils\";\n\n@Component({\n\ttag: 'gov-lifecycle',\n})\nexport class GovLifecycle {\n\tprivate readonly uniqueId: string;\n\n\tconstructor() {\n\t\tthis.uniqueId = 'lifecycle-' + chr4();\n\t}\n\n\tconnectedCallback() {\n\t\tconsole.log('connectedCallback', this.uniqueId);\n\t}\n\n\tdisconnectedCallback() {\n\t\tconsole.log('disconnectedCallback', this.uniqueId);\n\t}\n\n\tcomponentWillLoad() {\n\t\tconsole.log('componentWillLoad', this.uniqueId);\n\t}\n\n\tcomponentDidLoad() {\n\t\tconsole.log('componentDidLoad', this.uniqueId);\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tconsole.log('componentShouldUpdate', this.uniqueId);\n\t}\n\n\tcomponentWillRender() {\n\t\tconsole.log('componentWillRender', this.uniqueId);\n\t}\n\n\tcomponentDidRender() {\n\t\tconsole.log('componentDidRender', this.uniqueId);\n\t}\n\n\tcomponentWillUpdate() {\n\t\tconsole.log('componentWillUpdate', this.uniqueId);\n\t}\n\n\tcomponentDidUpdate() {\n\t\tconsole.log('componentDidUpdate', this.uniqueId);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host identifier={this.uniqueId}>\n\t\t\t\t<span>lifecycle {this.uniqueId}</span>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const utils = require('./utils-d263c5c6.js');
7
7
  const sizes = require('./sizes-89f8d3b2.js');
8
8
  const template = require('./template-b070338f.js');
@@ -30,7 +30,7 @@ const GovLoading = class {
30
30
  this.validateSize(this.size);
31
31
  }
32
32
  render() {
33
- return (index.h(index.Host, { key: '19a9e2b4c7c9c4f43d28c0ea6afe7b34fc1c8d6c', class: this.h.classes(LoadingClass.root), size: this.size }, index.h("div", { key: '270564f5feaaf1743ec98d373c97c2a123f75c93', class: LoadingClass.content }, index.h("gov-icon", { key: '12fde39ecaa6abaeb61e147ce462e8e44bb58495', class: template.prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader" }), index.h("slot", { key: '6ada9ba801094896d311f1006075177601037fe1' })), index.h("gov-backdrop", { key: 'e398b925bb6d78650e8f9f6ea869b48e4405f188', inverse: true })));
33
+ return (index.h(index.Host, { key: '513f13c80fc2af7545772534af1cc04ded202ec3', class: this.h.classes(LoadingClass.root), size: this.size }, index.h("div", { key: 'f4c66ec827f34cd2498c69b44d8dbbfba69aa3c7', class: LoadingClass.content }, index.h("gov-icon", { key: 'fceceebd341d720f4d1d38b234ff5770110392d8', class: template.prepareClasses([LoadingClass.icon, "gov-spin-animation"]), name: "loader" }), index.h("slot", { key: '85e34ce7d618a4b73668d80e3419a98e14ec524b' })), index.h("gov-backdrop", { key: 'a240f9f8b15dbc422adeda6674e019f6b118dc6a', inverse: true })));
34
34
  }
35
35
  get host() { return index.getElement(this); }
36
36
  static get watchers() { return {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const props = require('./props-b8a955b2.js');
7
7
  const colors = require('./colors-976f6dff.js');
8
8
  const utils = require('./utils-d263c5c6.js');
@@ -32,7 +32,7 @@ const GovMessage = class {
32
32
  props.validateProp(colors.Colors, newValue, MessageClass.root);
33
33
  }
34
34
  render() {
35
- return (index.h(index.Host, { key: '6a466a5d5541e097127a7eb40f6427a2297ece5c', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (index.h("slot", { key: '9192c599fd9380a9b0912c5489b75de609f522f6', name: "icon" })), index.h("div", { key: 'e64387028becc31add5b0d0fb2065ceace15b95b', class: MessageClass.content }, index.h("slot", { key: '9b682a660ced9f18f91e2f7aad71986a83f5a6b7' }))));
35
+ return (index.h(index.Host, { key: '9379d874b17b448a37771cf06fde7ac8a87ea7c7', class: this.h.classes(MessageClass.root), color: this.color, type: this.type, role: "status" }, this.h.hasSlot("icon") && (index.h("slot", { key: '4ff98ecd6b2b9e97d8083e9e907265e6bb265f79', name: "icon" })), index.h("div", { key: '2be09cb7021a713e90008ac8180c153361620a65', class: MessageClass.content }, index.h("slot", { key: '54f7fe2ade82698f072eae27eb58cf4ade008553' }))));
36
36
  }
37
37
  get host() { return index.getElement(this); }
38
38
  static get watchers() { return {
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1af4880c.js');
5
+ const index = require('./index-7ff4447c.js');
6
6
  const Fragment = require('./Fragment-52846f79.js');
7
7
  const props = require('./props-b8a955b2.js');
8
8
  const sizes = require('./sizes-89f8d3b2.js');
9
9
  const colors = require('./colors-976f6dff.js');
10
10
  const utils = require('./utils-d263c5c6.js');
11
11
  const template = require('./template-b070338f.js');
12
- const string_utils = require('./string.utils-2335838f.js');
12
+ const string_utils = require('./string.utils-b84c81cf.js');
13
13
  const array_utils = require('./array.utils-96eadde3.js');
14
14
  const attribute = require('./attribute-06dc5228.js');
15
15
  const accessibility = require('./accessibility-c475826b.js');
@@ -175,7 +175,7 @@ const GovPagination = class {
175
175
  const pageResolver = (page, content, description) => {
176
176
  const isDisabled = page === -1;
177
177
  const ariaCurrent = template.toBoolAttrIfDefined(this.pagination.currentPage === page ? true : undefined);
178
- return (index.h("gov-button", { href: this.prepareLinkUrl(page), color: this.color, size: this.size, type: "base", disabled: isDisabled, "on-gov-click": (e) => this.onClickHandler(e, page), "wcag-label": description ? description : page > -1 ? this.accessiblePageLabel + " " + page : undefined, "wcag-current": ariaCurrent, class: PaginationClass.inner, focusable: true }, content));
178
+ return (index.h("gov-button", { href: this.prepareLinkUrl(page), color: this.color, size: this.size, type: "base", disabled: isDisabled, "on-gov-click": (e) => this.onClickHandler(e, page), "aria-label": description ? description : page > -1 ? `${this.accessiblePageLabel} ${page}` : undefined, "aria-current": ariaCurrent, class: PaginationClass.inner, focusable: true }, content));
179
179
  };
180
180
  return (index.h(index.Host, { class: this.h.classes(PaginationClass.root), type: this.type, color: this.color, size: this.size }, index.h("nav", Object.assign({}, this.inheritedAttributes), index.h("ul", { class: PaginationClass.list }, index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.currentPage > 1 ? 1 : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-left" }), this.labelStart)), index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.startPage < this.pagination.currentPage ? this.pagination.currentPage - 1 : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-left" }), this.labelPrev)), this.type == "select" ? (index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemSelect]) }, index.h("span", { class: PaginationClass.inner }, index.h("span", { id: this.pageSelectId, hidden: true }, this.accessibleSelectLabel), index.h("gov-form-select", { size: this.size, color: this.color, identifier: this.selectIdentifier || this.selectId, "aria-labelledby": this.pageSelectId, "on-gov-change": this.onSelectHandler.bind(this) }, array_utils.createArrayRange(1, this.pagination.totalPages).map(page => (index.h("option", { value: page, selected: this.pagination.currentPage === page }, page))))))) : (index.h(Fragment.Fragment, null, this.pagination.pages.map(page => (index.h("li", { class: this.isActivePageClass(PaginationClass.item, page) }, pageResolver(page, page, '')))), this.pagination.totalPages ? (index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemMore]) }, index.h("span", { class: PaginationClass.inner }, index.h("span", { id: this.pageSelectId, hidden: true }, this.accessibleSelectLabel), index.h("gov-form-select", { size: this.size, color: this.color, identifier: this.selectIdentifier || this.selectId, "aria-labelledby": this.pageSelectId, ref: el => (this.spreadSelectRef = el), "on-gov-change": this.onSelectHandler.bind(this) }, index.h("option", { selected: true, hidden: true }, "..."), array_utils.createArrayRange(1, this.pagination.totalPages).map(page => (index.h("option", { value: page, selected: false }, page))))))) : null)), index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.currentPage + 1 : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-right" }), this.labelNext)), index.h("li", { class: template.prepareClasses([PaginationClass.item, PaginationClass.itemArrow]) }, pageResolver(this.pagination.totalPages > this.pagination.currentPage ? this.pagination.totalPages : -1, index.h("gov-icon", { class: PaginationClass.arrow, name: "chevron-double-right" }), this.labelEnd))))));
181
181
  }