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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/gov-flex_4.cjs.entry.js +47 -30
  3. package/dist/cjs/gov-flex_4.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +1 -1
  5. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  7. package/dist/cjs/gov-form-file.cjs.entry.js +2 -3
  8. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  9. package/dist/cjs/gov-form-multi-select.cjs.entry.js +2 -2
  10. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  11. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-form-select.cjs.entry.js +2 -2
  13. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  14. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +2 -2
  17. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  18. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +2 -2
  19. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  20. package/dist/collection/components/gov-form/file/gov-form-file.js +3 -4
  21. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  22. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +3 -3
  23. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  24. package/dist/collection/components/gov-form/radio/gov-form-radio.js +1 -1
  25. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  26. package/dist/collection/components/gov-form/select/gov-form-select.js +4 -4
  27. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  28. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -2
  29. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  30. package/dist/collection/components/gov-icon/gov-icon.js +3 -4
  31. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  32. package/dist/collection/components/gov-icon/list.js +6 -0
  33. package/dist/collection/components/gov-icon/list.js.map +1 -1
  34. package/dist/collection/helpers/Dom/document.js +18 -0
  35. package/dist/collection/helpers/Dom/document.js.map +1 -1
  36. package/dist/components/gov-accordion-item.js +1 -1
  37. package/dist/components/gov-accordion.js +1 -1
  38. package/dist/components/gov-attachments-item.js +1 -1
  39. package/dist/components/gov-attachments.js +1 -1
  40. package/dist/components/gov-backdrop.js +1 -1
  41. package/dist/components/gov-breadcrumbs.js +1 -1
  42. package/dist/components/gov-button.js +1 -1
  43. package/dist/components/gov-card.js +1 -1
  44. package/dist/components/gov-chip.js +1 -1
  45. package/dist/components/gov-control-group.js +1 -1
  46. package/dist/components/gov-dialog.js +1 -1
  47. package/dist/components/gov-empty.js +1 -1
  48. package/dist/components/gov-form-autocomplete.js +1 -1
  49. package/dist/components/gov-form-checkbox-group.js +1 -1
  50. package/dist/components/gov-form-checkbox.js +1 -1
  51. package/dist/components/gov-form-checkbox.js.map +1 -1
  52. package/dist/components/gov-form-file.js +1 -1
  53. package/dist/components/gov-form-file.js.map +1 -1
  54. package/dist/components/gov-form-group.js +1 -1
  55. package/dist/components/gov-form-input.js +1 -1
  56. package/dist/components/gov-form-message.js +1 -1
  57. package/dist/components/gov-form-multi-select.js +1 -1
  58. package/dist/components/gov-form-multi-select.js.map +1 -1
  59. package/dist/components/gov-form-radio-group.js +1 -1
  60. package/dist/components/gov-form-radio.js +1 -1
  61. package/dist/components/gov-form-radio.js.map +1 -1
  62. package/dist/components/gov-form-select.js +1 -1
  63. package/dist/components/gov-form-switch.js +1 -1
  64. package/dist/components/gov-form-switch.js.map +1 -1
  65. package/dist/components/gov-icon.js +1 -1
  66. package/dist/components/gov-infobar.js +1 -1
  67. package/dist/components/gov-link.js +1 -1
  68. package/dist/components/gov-link.js.map +1 -1
  69. package/dist/components/gov-loading.js +1 -1
  70. package/dist/components/gov-message.js +1 -1
  71. package/dist/components/gov-pagination.js +1 -1
  72. package/dist/components/gov-skeleton.js +1 -1
  73. package/dist/components/gov-spacer.js +1 -1
  74. package/dist/components/gov-stepper-item.js +1 -1
  75. package/dist/components/gov-stepper.js +1 -1
  76. package/dist/components/gov-tabs.js +1 -1
  77. package/dist/components/gov-tag.js +1 -1
  78. package/dist/components/gov-theme-switch.js +1 -1
  79. package/dist/components/gov-theme-switch.js.map +1 -1
  80. package/dist/components/gov-tile.js +1 -1
  81. package/dist/components/gov-toast.js +1 -1
  82. package/dist/components/gov-tooltip-content.js +1 -1
  83. package/dist/components/gov-tooltip.js +1 -1
  84. package/dist/components/gov-tooltip.js.map +1 -1
  85. package/dist/components/gov-wizard-item.js +1 -1
  86. package/dist/components/gov-wizard.js +1 -1
  87. package/dist/components/p-0b3574c2.js +2 -0
  88. package/dist/components/{p-dc952cc2.js → p-1eb9c053.js} +2 -2
  89. package/dist/components/{p-2b87c27b.js → p-283b66c3.js} +2 -2
  90. package/dist/components/p-283b66c3.js.map +1 -0
  91. package/dist/components/{p-7d4f2214.js → p-318d89bd.js} +2 -2
  92. package/dist/components/{p-929ebfb5.js → p-3d7a21b5.js} +2 -2
  93. package/dist/components/p-46c567fd.js +2 -0
  94. package/dist/components/p-46c567fd.js.map +1 -0
  95. package/dist/components/{p-4149f195.js → p-73938936.js} +2 -2
  96. package/dist/components/{p-5952a5d0.js → p-7be2301a.js} +2 -2
  97. package/dist/components/{p-227eb30d.js → p-80dad64b.js} +2 -2
  98. package/dist/components/{p-31a99bfc.js → p-a6b7a6c2.js} +2 -2
  99. package/dist/components/{p-45097b4c.js → p-a6be4769.js} +2 -2
  100. package/dist/components/p-a6be4769.js.map +1 -0
  101. package/dist/components/{p-dfb5794a.js → p-ac359044.js} +2 -2
  102. package/dist/components/{p-859a4f0d.js → p-b95ebe8c.js} +2 -2
  103. package/dist/components/{p-20c2203a.js → p-e8ec030e.js} +2 -2
  104. package/dist/core/core.esm.js +1 -1
  105. package/dist/core/core.esm.js.map +1 -1
  106. package/dist/core/{p-3fc3c26b.entry.js → p-04fa0ab5.entry.js} +2 -2
  107. package/dist/core/p-0b3574c2.js +2 -0
  108. package/dist/core/{p-7d6073aa.entry.js → p-0fdd8929.entry.js} +2 -2
  109. package/dist/core/{p-783a6b5b.entry.js → p-1200a32d.entry.js} +2 -2
  110. package/dist/core/p-1200a32d.entry.js.map +1 -0
  111. package/dist/core/{p-8701c28e.entry.js → p-2739fa61.entry.js} +2 -2
  112. package/dist/core/{p-c52afdfc.js → p-29ac15d2.js} +2 -2
  113. package/dist/core/{p-1ac9544f.entry.js → p-3cb36bae.entry.js} +2 -2
  114. package/dist/core/p-3cb36bae.entry.js.map +1 -0
  115. package/dist/core/p-3d6edb09.entry.js +2 -0
  116. package/dist/core/p-3d6edb09.entry.js.map +1 -0
  117. package/dist/core/p-3f6a2d20.entry.js +2 -0
  118. package/dist/core/p-3f6a2d20.entry.js.map +1 -0
  119. package/dist/core/{p-f1fa5e1e.entry.js → p-41c6b262.entry.js} +2 -2
  120. package/dist/core/p-432c3875.entry.js +2 -0
  121. package/dist/core/p-432c3875.entry.js.map +1 -0
  122. package/dist/core/p-4b90fbc4.entry.js +2 -0
  123. package/dist/core/{p-2c59483f.entry.js → p-4c5f6299.entry.js} +2 -2
  124. package/dist/core/{p-db22d51c.entry.js → p-561718cd.entry.js} +2 -2
  125. package/dist/core/{p-ed1131cb.entry.js → p-56dc370d.entry.js} +2 -2
  126. package/dist/core/{p-c20fe3da.entry.js → p-5c9e6275.entry.js} +2 -2
  127. package/dist/core/p-65e67731.entry.js +2 -0
  128. package/dist/core/{p-773f71f6.entry.js → p-6bb37fe2.entry.js} +2 -2
  129. package/dist/core/p-6e457b3d.entry.js +2 -0
  130. package/dist/core/{p-1abdcb62.entry.js → p-72130a8f.entry.js} +2 -2
  131. package/dist/core/{p-6454af62.entry.js → p-7e04730a.entry.js} +2 -2
  132. package/dist/core/p-97a9725d.entry.js +2 -0
  133. package/dist/core/{p-9da91318.entry.js.map → p-97a9725d.entry.js.map} +1 -1
  134. package/dist/core/{p-b4af0bec.entry.js → p-9c2c5447.entry.js} +2 -2
  135. package/dist/core/{p-7bf52eb9.entry.js → p-9fe35463.entry.js} +2 -2
  136. package/dist/core/{p-951823cb.entry.js → p-b7cfe254.entry.js} +2 -2
  137. package/dist/core/p-b923a8d9.entry.js +2 -0
  138. package/dist/core/{p-d24710ff.entry.js.map → p-b923a8d9.entry.js.map} +1 -1
  139. package/dist/core/p-bcb45a18.entry.js +2 -0
  140. package/dist/core/{p-443a813a.entry.js.map → p-bcb45a18.entry.js.map} +1 -1
  141. package/dist/core/{p-fca60e04.entry.js → p-c054f955.entry.js} +2 -2
  142. package/dist/core/{p-74458da3.entry.js → p-c916d0d2.entry.js} +2 -2
  143. package/dist/core/p-c916d0d2.entry.js.map +1 -0
  144. package/dist/core/{p-c4ffcc37.entry.js → p-ccec8019.entry.js} +2 -2
  145. package/dist/core/p-cd2d335d.entry.js +2 -0
  146. package/dist/core/{p-f1056a83.entry.js.map → p-cd2d335d.entry.js.map} +1 -1
  147. package/dist/core/{p-e2517a72.entry.js → p-d836fcde.entry.js} +2 -2
  148. package/dist/core/{p-b1efeb41.entry.js → p-da7f1e11.entry.js} +2 -2
  149. package/dist/core/{p-dec3f948.entry.js → p-dea64896.entry.js} +2 -2
  150. package/dist/core/{p-a218e2eb.entry.js → p-e61aa53b.entry.js} +2 -2
  151. package/dist/core/{p-20c2203a.js → p-e8ec030e.js} +2 -2
  152. package/dist/core/p-ea44d447.entry.js +2 -0
  153. package/dist/core/{p-cb557873.entry.js → p-ed833334.entry.js} +2 -2
  154. package/dist/core/p-ed833334.entry.js.map +1 -0
  155. package/dist/core/{p-fe6fed11.entry.js → p-ed8fc183.entry.js} +2 -2
  156. package/dist/{components/p-45097b4c.js.map → core/p-ed8fc183.entry.js.map} +1 -1
  157. package/dist/core/p-f4dac942.entry.js +2 -0
  158. package/dist/esm/core.js +1 -1
  159. package/dist/esm/gov-accordion-item.entry.js +2 -2
  160. package/dist/esm/gov-accordion.entry.js +2 -2
  161. package/dist/esm/gov-attachments_3.entry.js +3 -3
  162. package/dist/esm/gov-backdrop.entry.js +2 -2
  163. package/dist/esm/gov-breadcrumbs.entry.js +2 -2
  164. package/dist/esm/gov-button.entry.js +3 -3
  165. package/dist/esm/gov-card.entry.js +2 -2
  166. package/dist/esm/gov-chip.entry.js +2 -2
  167. package/dist/esm/gov-control-group.entry.js +2 -2
  168. package/dist/esm/gov-dialog.entry.js +2 -2
  169. package/dist/esm/gov-empty.entry.js +2 -2
  170. package/dist/esm/gov-flex_4.entry.js +49 -32
  171. package/dist/esm/gov-flex_4.entry.js.map +1 -1
  172. package/dist/esm/gov-form-autocomplete.entry.js +3 -3
  173. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  174. package/dist/esm/gov-form-checkbox-group.entry.js +2 -2
  175. package/dist/esm/gov-form-checkbox.entry.js +2 -2
  176. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  177. package/dist/esm/gov-form-file.entry.js +2 -3
  178. package/dist/esm/gov-form-file.entry.js.map +1 -1
  179. package/dist/esm/gov-form-group.entry.js +2 -2
  180. package/dist/esm/gov-form-input_2.entry.js +2 -2
  181. package/dist/esm/gov-form-multi-select.entry.js +4 -4
  182. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  183. package/dist/esm/gov-form-radio-group.entry.js +2 -2
  184. package/dist/esm/gov-form-radio.entry.js +2 -2
  185. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  186. package/dist/esm/gov-form-select.entry.js +4 -4
  187. package/dist/esm/gov-form-select.entry.js.map +1 -1
  188. package/dist/esm/gov-form-switch.entry.js +2 -2
  189. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  190. package/dist/esm/gov-infobar.entry.js +2 -2
  191. package/dist/esm/gov-link.entry.js +2 -2
  192. package/dist/esm/gov-loading.entry.js +2 -2
  193. package/dist/esm/gov-message.entry.js +2 -2
  194. package/dist/esm/gov-pagination.entry.js +2 -2
  195. package/dist/esm/gov-spacer.entry.js +2 -2
  196. package/dist/esm/gov-stepper-item.entry.js +2 -2
  197. package/dist/esm/gov-stepper.entry.js +2 -2
  198. package/dist/esm/gov-tabs.entry.js +2 -2
  199. package/dist/esm/gov-tag.entry.js +2 -2
  200. package/dist/esm/gov-toast.entry.js +2 -2
  201. package/dist/esm/gov-tooltip.entry.js +2 -2
  202. package/dist/esm/gov-wizard-item.entry.js +2 -2
  203. package/dist/esm/gov-wizard.entry.js +3 -3
  204. package/dist/esm/{gov.log-066c3139.js → gov.log-6b64cda6.js} +2 -2
  205. package/dist/esm/{gov.log-066c3139.js.map → gov.log-6b64cda6.js.map} +1 -1
  206. package/dist/esm/loader.js +1 -1
  207. package/dist/esm/{props-fb6587c3.js → props-9d3c7ac1.js} +2 -2
  208. package/dist/esm/{props-fb6587c3.js.map → props-9d3c7ac1.js.map} +1 -1
  209. package/dist/esm/{wcag-de9a3dc6.js → wcag-253a4421.js} +2 -2
  210. package/dist/esm/{wcag-de9a3dc6.js.map → wcag-253a4421.js.map} +1 -1
  211. package/dist/hydrate/index.js +71 -54
  212. package/dist/hydrate/index.mjs +71 -54
  213. package/dist/types/components/gov-icon/gov-icon.d.ts +1 -2
  214. package/dist/types/helpers/Dom/document.d.ts +1 -0
  215. package/package.json +4 -4
  216. package/dist/components/p-2b87c27b.js.map +0 -1
  217. package/dist/components/p-a2435993.js +0 -2
  218. package/dist/components/p-f44899e1.js +0 -2
  219. package/dist/components/p-f44899e1.js.map +0 -1
  220. package/dist/core/p-1ac9544f.entry.js.map +0 -1
  221. package/dist/core/p-1b3c808d.entry.js +0 -2
  222. package/dist/core/p-1b3c808d.entry.js.map +0 -1
  223. package/dist/core/p-2c290fe5.entry.js +0 -2
  224. package/dist/core/p-40d764ac.entry.js +0 -2
  225. package/dist/core/p-410ec0dd.entry.js +0 -2
  226. package/dist/core/p-443a813a.entry.js +0 -2
  227. package/dist/core/p-48c93ac0.entry.js +0 -2
  228. package/dist/core/p-48c93ac0.entry.js.map +0 -1
  229. package/dist/core/p-52ca31be.entry.js +0 -2
  230. package/dist/core/p-52ca31be.entry.js.map +0 -1
  231. package/dist/core/p-5ed63e9c.entry.js +0 -2
  232. package/dist/core/p-74458da3.entry.js.map +0 -1
  233. package/dist/core/p-783a6b5b.entry.js.map +0 -1
  234. package/dist/core/p-9da91318.entry.js +0 -2
  235. package/dist/core/p-a2435993.js +0 -2
  236. package/dist/core/p-cb557873.entry.js.map +0 -1
  237. package/dist/core/p-d24710ff.entry.js +0 -2
  238. package/dist/core/p-f1056a83.entry.js +0 -2
  239. package/dist/core/p-f6709826.entry.js +0 -2
  240. package/dist/core/p-fe6fed11.entry.js.map +0 -1
  241. /package/dist/components/{p-a2435993.js.map → p-0b3574c2.js.map} +0 -0
  242. /package/dist/components/{p-dc952cc2.js.map → p-1eb9c053.js.map} +0 -0
  243. /package/dist/components/{p-7d4f2214.js.map → p-318d89bd.js.map} +0 -0
  244. /package/dist/components/{p-929ebfb5.js.map → p-3d7a21b5.js.map} +0 -0
  245. /package/dist/components/{p-4149f195.js.map → p-73938936.js.map} +0 -0
  246. /package/dist/components/{p-5952a5d0.js.map → p-7be2301a.js.map} +0 -0
  247. /package/dist/components/{p-227eb30d.js.map → p-80dad64b.js.map} +0 -0
  248. /package/dist/components/{p-31a99bfc.js.map → p-a6b7a6c2.js.map} +0 -0
  249. /package/dist/components/{p-dfb5794a.js.map → p-ac359044.js.map} +0 -0
  250. /package/dist/components/{p-859a4f0d.js.map → p-b95ebe8c.js.map} +0 -0
  251. /package/dist/components/{p-20c2203a.js.map → p-e8ec030e.js.map} +0 -0
  252. /package/dist/core/{p-3fc3c26b.entry.js.map → p-04fa0ab5.entry.js.map} +0 -0
  253. /package/dist/core/{p-a2435993.js.map → p-0b3574c2.js.map} +0 -0
  254. /package/dist/core/{p-7d6073aa.entry.js.map → p-0fdd8929.entry.js.map} +0 -0
  255. /package/dist/core/{p-8701c28e.entry.js.map → p-2739fa61.entry.js.map} +0 -0
  256. /package/dist/core/{p-c52afdfc.js.map → p-29ac15d2.js.map} +0 -0
  257. /package/dist/core/{p-f1fa5e1e.entry.js.map → p-41c6b262.entry.js.map} +0 -0
  258. /package/dist/core/{p-410ec0dd.entry.js.map → p-4b90fbc4.entry.js.map} +0 -0
  259. /package/dist/core/{p-2c59483f.entry.js.map → p-4c5f6299.entry.js.map} +0 -0
  260. /package/dist/core/{p-db22d51c.entry.js.map → p-561718cd.entry.js.map} +0 -0
  261. /package/dist/core/{p-ed1131cb.entry.js.map → p-56dc370d.entry.js.map} +0 -0
  262. /package/dist/core/{p-c20fe3da.entry.js.map → p-5c9e6275.entry.js.map} +0 -0
  263. /package/dist/core/{p-2c290fe5.entry.js.map → p-65e67731.entry.js.map} +0 -0
  264. /package/dist/core/{p-773f71f6.entry.js.map → p-6bb37fe2.entry.js.map} +0 -0
  265. /package/dist/core/{p-5ed63e9c.entry.js.map → p-6e457b3d.entry.js.map} +0 -0
  266. /package/dist/core/{p-1abdcb62.entry.js.map → p-72130a8f.entry.js.map} +0 -0
  267. /package/dist/core/{p-6454af62.entry.js.map → p-7e04730a.entry.js.map} +0 -0
  268. /package/dist/core/{p-b4af0bec.entry.js.map → p-9c2c5447.entry.js.map} +0 -0
  269. /package/dist/core/{p-7bf52eb9.entry.js.map → p-9fe35463.entry.js.map} +0 -0
  270. /package/dist/core/{p-951823cb.entry.js.map → p-b7cfe254.entry.js.map} +0 -0
  271. /package/dist/core/{p-fca60e04.entry.js.map → p-c054f955.entry.js.map} +0 -0
  272. /package/dist/core/{p-c4ffcc37.entry.js.map → p-ccec8019.entry.js.map} +0 -0
  273. /package/dist/core/{p-e2517a72.entry.js.map → p-d836fcde.entry.js.map} +0 -0
  274. /package/dist/core/{p-b1efeb41.entry.js.map → p-da7f1e11.entry.js.map} +0 -0
  275. /package/dist/core/{p-dec3f948.entry.js.map → p-dea64896.entry.js.map} +0 -0
  276. /package/dist/core/{p-a218e2eb.entry.js.map → p-e61aa53b.entry.js.map} +0 -0
  277. /package/dist/core/{p-20c2203a.js.map → p-e8ec030e.js.map} +0 -0
  278. /package/dist/core/{p-f6709826.entry.js.map → p-ea44d447.entry.js.map} +0 -0
  279. /package/dist/core/{p-40d764ac.entry.js.map → p-f4dac942.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,d as h}from"./p-42200001.js";import{c as o,b as n}from"./p-ea7fdd2e.js";import{v as a}from"./p-a2435993.js";import{c as l}from"./p-cd6c2938.js";import{d as r,t as c,h as d}from"./p-e0e2e9c1.js";import{F as f,a as u}from"./p-9908b9f0.js";import{p as m}from"./p-ded281e6.js";import{A as p,a as v,i as g}from"./p-33d5d1ed.js";import{d as b}from"./p-7d4f2214.js";import{d as y}from"./p-dc952cc2.js";import{d as k}from"./p-f44899e1.js";import{d as w}from"./p-dfb5794a.js";const j=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govInput=i(this,"gov-input",7);this.govSelect=i(this,"gov-select",7);this.templateResolver=t=>t[this.nameKey];this.value="";this.options=undefined;this.identifier=undefined;this.success=undefined;this.size="m";this.nameKey="name";this.name=undefined;this.required=false;this.disabled=false;this.placeholder=undefined;this.readonly=undefined;this.invalid=undefined;this.minlength=3;this.maxlength=undefined;this.throttleTime=200;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.focused=undefined;this.processing=false;this.arrowCounter=-1;this.list=[];this.inheritedAttributes={};this.listBoxId=l("GovListBox")}validateSize(t){a(u,t,f.root)}watchOptions(t){this.setOptions(m(t)).catch()}onArrowUp(){if(this.arrowCounter>0){this.arrowCounter=this.arrowCounter-1;this.moveToView().finally()}}onArrowDown(){if(this.arrowCounter<this.list.length-1){this.arrowCounter=this.arrowCounter+1;this.moveToView().finally()}}async moveToView(){await r(200);const t=this.listRef.offsetHeight;const s=this.listRef.querySelector('li[aria-selected="true"]');if(s&&t){const t=s.offsetTop;this.listRef.scrollTo({top:t,behavior:"smooth"})}}doSearch(){if(Number.isInteger(this.minlength)&&this.isValueAccepted===false&&this.minlength){this.list=[];this.arrowCounter=-1;this.processing=false;return}if(this.searchCallback){this.processing=true;this.searchCallback(this.value).then((t=>this.list=t)).catch((()=>this.list=[])).finally((()=>{this.arrowCounter=-1;this.processing=false}))}}clearList(){const t=m(this.options);if(t.length===0){this.list=[]}}get isValueAccepted(){if(typeof this.value==="string"){return this.value.length>=this.minlength}else{return false}}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=g(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return e(h,{key:"d5ddd1d65a70f4a9839262831b6207a0fe8ae726",class:f.root,size:this.size},e("gov-form-input",Object.assign({key:"d656134c3a756de2c4178dcfcdd703f301d6c890",placeholder:this.placeholder,name:this.name,disabled:this.disabled,readonly:this.readonly,autocomplete:false,size:this.size,required:this.required,invalid:this.invalid,success:this.success,role:"searchbox",value:this.value,minlength:this.minlength,maxlength:this.maxlength,"on-gov-input":c(this.onInputHandler.bind(this),this.throttleTime),"on-gov-keyup":this.onKeyUpHandler.bind(this),"on-gov-keydown":this.onKeyDownHandler.bind(this),"on-gov-focus":this.onFocusHandler.bind(this),"on-gov-blur":this.onBlurHandler.bind(this)},this.inheritedAttributes,{"aria-autocomplete":"list","aria-owns":[this.listBoxId,this.inheritedAttributes["aria-owns"]].join(" "),"aria-expanded":n(this.list.length&&this.focused?true:false),ref:t=>this.inputRef=t}),e("slot",{key:"1d697820c14669a9e6c81f844f15e20743593f97",name:"validation-icon"}),e("slot",{key:"297ccc852764688a34102363beb428ab81d6de26",name:"icon-end"})),e("ul",{key:"3ed420a696852fad4183d16ef31a2db1dcb8f572",class:f.list,role:"listbox","aria-hidden":o(!this.focused),hidden:!this.focused,id:this.listBoxId,ref:t=>this.listRef=t},this.focused&&this.list.length===0&&this.processing===false&&this.isValueAccepted&&this.messageEmpty?e("li",{class:f.empty},this.messageEmpty):null,this.focused&&this.processing===true&&this.isValueAccepted?e("li",{class:f.loading},e("gov-skeleton",{size:"m"})):null,this.focused?this.list.map(((t,s)=>{const i=this.arrowCounter===s;return e("li",{class:f.item,innerHTML:this.templateResolver(t,i),role:"option","aria-posinset":s,tabindex:i?0:-1,"aria-setsize":this.list.length,onTouchStart:t=>this.onSelectHandler(t,s),onMouseDown:t=>this.onSelectHandler(t,s),"aria-selected":o(i)},e("slot",{name:"list-item-left"}),e("slot",{name:"list-item-right"}))})):null))}onFocusHandler(t){this.focused=true;this.arrowCounter=-1;if(this.isValueAccepted&&this.searchCallback){this.doSearch()}t.stopPropagation();this.govFocus.emit({originalEvent:t,component:f.root,value:this.value,selected:null})}onBlurHandler(t){this.focused=false;this.clearList();this.arrowCounter=-1;t.stopPropagation();this.govBlur.emit({originalEvent:t,component:f.root,value:this.value,selected:null})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({originalEvent:t,component:f.root,value:this.value,selected:null});this.doSearch()}onSelectHandler(t,s=-1){let i=null;if(s>-1){i=this.list[s]}else if(d(this.arrowCounter,this.list)){i=this.list[this.arrowCounter]}if(i){this.govSelect.emit({component:f.root,value:this.value,selected:i,originalEvent:t});this.clearList();if(d(this.nameKey,i)&&typeof i[this.nameKey]==="string"){this.value=i[this.nameKey]}}}onKeyUpHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===38)this.onArrowUp();else if(s.keyCode===40)this.onArrowDown();else if(s.keyCode===13){t.preventDefault();s.preventDefault();this.onSelectHandler(t)}}onKeyDownHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===13){t.preventDefault();s.preventDefault()}}async setFocus(t){return this.inputRef.focus(t)}async setBlur(){return this.inputRef.blur()}async setOptions(t){this.list=Array.isArray(t)?t:[];this.arrowCounter=-1}async clearValue(){this.value="";this.inputRef.value="";await this.inputRef.clearValue()}async setProcessing(t){this.processing=t}async setSearchCallback(t){this.searchCallback=t}async setTemplateResolver(t){this.templateResolver=t}get host(){return this}static get watchers(){return{size:["validateSize"],options:["watchOptions"]}}},[4,"gov-form-autocomplete",{value:[1537],options:[1537],identifier:[1],success:[4],size:[1],nameKey:[1,"name-key"],name:[1],required:[4],disabled:[4],placeholder:[1],readonly:[4],invalid:[4],minlength:[2],maxlength:[2],throttleTime:[2,"throttle-time"],messageEmpty:[1,"message-empty"],focused:[32],processing:[32],arrowCounter:[32],list:[32],inheritedAttributes:[32],setFocus:[64],setBlur:[64],setOptions:[64],clearValue:[64],setProcessing:[64],setSearchCallback:[64],setTemplateResolver:[64]},undefined,{size:["validateSize"],options:["watchOptions"]}]);function E(){if(typeof customElements==="undefined"){return}const t=["gov-form-autocomplete","gov-button","gov-form-input","gov-icon","gov-skeleton"];t.forEach((t=>{switch(t){case"gov-form-autocomplete":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-input":if(!customElements.get(t)){y()}break;case"gov-icon":if(!customElements.get(t)){k()}break;case"gov-skeleton":if(!customElements.get(t)){w()}break}}))}E();export{j as G,E as d};
2
- //# sourceMappingURL=p-45097b4c.js.map
1
+ import{p as t,H as s,c as i,h as e,d as h}from"./p-42200001.js";import{c as o,b as n}from"./p-ea7fdd2e.js";import{v as a}from"./p-0b3574c2.js";import{c as l}from"./p-cd6c2938.js";import{d as r,t as c,h as d}from"./p-e0e2e9c1.js";import{F as u,a as f}from"./p-9908b9f0.js";import{p as m}from"./p-ded281e6.js";import{A as p,a as v,i as g}from"./p-33d5d1ed.js";import{d as b}from"./p-318d89bd.js";import{d as y}from"./p-1eb9c053.js";import{d as k}from"./p-46c567fd.js";import{d as w}from"./p-ac359044.js";const j=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govInput=i(this,"gov-input",7);this.govSelect=i(this,"gov-select",7);this.templateResolver=t=>t[this.nameKey];this.value="";this.options=undefined;this.identifier=undefined;this.success=undefined;this.size="m";this.nameKey="name";this.name=undefined;this.required=false;this.disabled=false;this.placeholder=undefined;this.readonly=undefined;this.invalid=undefined;this.minlength=3;this.maxlength=undefined;this.throttleTime=200;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.focused=undefined;this.processing=false;this.arrowCounter=-1;this.list=[];this.inheritedAttributes={};this.listBoxId=l("GovListBox")}validateSize(t){a(f,t,u.root)}watchOptions(t){this.setOptions(m(t)).catch()}onArrowUp(){if(this.arrowCounter>0){this.arrowCounter=this.arrowCounter-1;this.moveToView().finally()}}onArrowDown(){if(this.arrowCounter<this.list.length-1){this.arrowCounter=this.arrowCounter+1;this.moveToView().finally()}}async moveToView(){await r(200);const t=this.listRef.offsetHeight;const s=this.listRef.querySelector('li[aria-selected="true"]');if(s&&t){const t=s.offsetTop;this.listRef.scrollTo({top:t,behavior:"smooth"})}}doSearch(){if(Number.isInteger(this.minlength)&&this.isValueAccepted===false&&this.minlength){this.list=[];this.arrowCounter=-1;this.processing=false;return}if(this.searchCallback){this.processing=true;this.searchCallback(this.value).then((t=>this.list=t)).catch((()=>this.list=[])).finally((()=>{this.arrowCounter=-1;this.processing=false}))}}clearList(){const t=m(this.options);if(t.length===0){this.list=[]}}get isValueAccepted(){if(typeof this.value==="string"){return this.value.length>=this.minlength}else{return false}}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=g(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return e(h,{key:"1914bf635c1c0bf169d6f45fe4dab9a2738d390a",class:u.root,size:this.size},e("gov-form-input",Object.assign({key:"75926414421d120acb5deea317d6d9afe11ddd11",placeholder:this.placeholder,name:this.name,disabled:this.disabled,readonly:this.readonly,autocomplete:false,size:this.size,required:this.required,invalid:this.invalid,success:this.success,role:"searchbox",value:this.value,minlength:this.minlength,maxlength:this.maxlength,"on-gov-input":c(this.onInputHandler.bind(this),this.throttleTime),"on-gov-keyup":this.onKeyUpHandler.bind(this),"on-gov-keydown":this.onKeyDownHandler.bind(this),"on-gov-focus":this.onFocusHandler.bind(this),"on-gov-blur":this.onBlurHandler.bind(this)},this.inheritedAttributes,{"aria-autocomplete":"list","aria-owns":[this.listBoxId,this.inheritedAttributes["aria-owns"]].join(" "),"aria-expanded":n(this.list.length&&this.focused?true:false),ref:t=>this.inputRef=t}),e("slot",{key:"1870810c9a7d6a258da3ec6d26e19cceef9da425",name:"validation-icon"}),e("slot",{key:"f6753deca157766fe66424d148a4416b1500e79e",name:"icon-end"})),e("ul",{key:"4a63a2c01d13870b6e49392118f291f2e43e3a34",class:u.list,role:"listbox","aria-hidden":o(!this.focused),hidden:!this.focused,id:this.listBoxId,ref:t=>this.listRef=t},this.focused&&this.list.length===0&&this.processing===false&&this.isValueAccepted&&this.messageEmpty?e("li",{class:u.empty},this.messageEmpty):null,this.focused&&this.processing===true&&this.isValueAccepted?e("li",{class:u.loading},e("gov-skeleton",{size:"m"})):null,this.focused?this.list.map(((t,s)=>{const i=this.arrowCounter===s;return e("li",{class:u.item,innerHTML:this.templateResolver(t,i),role:"option","aria-posinset":s,tabindex:i?0:-1,"aria-setsize":this.list.length,onTouchStart:t=>this.onSelectHandler(t,s),onMouseDown:t=>this.onSelectHandler(t,s),"aria-selected":o(i)},e("slot",{name:"list-item-left"}),e("slot",{name:"list-item-right"}))})):null))}onFocusHandler(t){this.focused=true;this.arrowCounter=-1;if(this.isValueAccepted&&this.searchCallback){this.doSearch()}t.stopPropagation();this.govFocus.emit({originalEvent:t,component:u.root,value:this.value,selected:null})}onBlurHandler(t){this.focused=false;this.clearList();this.arrowCounter=-1;t.stopPropagation();this.govBlur.emit({originalEvent:t,component:u.root,value:this.value,selected:null})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({originalEvent:t,component:u.root,value:this.value,selected:null});this.doSearch()}onSelectHandler(t,s=-1){let i=null;if(s>-1){i=this.list[s]}else if(d(this.arrowCounter,this.list)){i=this.list[this.arrowCounter]}if(i){this.govSelect.emit({component:u.root,value:this.value,selected:i,originalEvent:t});this.clearList();if(d(this.nameKey,i)&&typeof i[this.nameKey]==="string"){this.value=i[this.nameKey]}}}onKeyUpHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===38)this.onArrowUp();else if(s.keyCode===40)this.onArrowDown();else if(s.keyCode===13){t.preventDefault();s.preventDefault();this.onSelectHandler(t)}}onKeyDownHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===13){t.preventDefault();s.preventDefault()}}async setFocus(t){return this.inputRef.focus(t)}async setBlur(){return this.inputRef.blur()}async setOptions(t){this.list=Array.isArray(t)?t:[];this.arrowCounter=-1}async clearValue(){this.value="";this.inputRef.value="";await this.inputRef.clearValue()}async setProcessing(t){this.processing=t}async setSearchCallback(t){this.searchCallback=t}async setTemplateResolver(t){this.templateResolver=t}get host(){return this}static get watchers(){return{size:["validateSize"],options:["watchOptions"]}}},[4,"gov-form-autocomplete",{value:[1537],options:[1537],identifier:[1],success:[4],size:[1],nameKey:[1,"name-key"],name:[1],required:[4],disabled:[516],placeholder:[1],readonly:[4],invalid:[4],minlength:[2],maxlength:[2],throttleTime:[2,"throttle-time"],messageEmpty:[1,"message-empty"],focused:[32],processing:[32],arrowCounter:[32],list:[32],inheritedAttributes:[32],setFocus:[64],setBlur:[64],setOptions:[64],clearValue:[64],setProcessing:[64],setSearchCallback:[64],setTemplateResolver:[64]},undefined,{size:["validateSize"],options:["watchOptions"]}]);function E(){if(typeof customElements==="undefined"){return}const t=["gov-form-autocomplete","gov-button","gov-form-input","gov-icon","gov-skeleton"];t.forEach((t=>{switch(t){case"gov-form-autocomplete":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-input":if(!customElements.get(t)){y()}break;case"gov-icon":if(!customElements.get(t)){k()}break;case"gov-skeleton":if(!customElements.get(t)){w()}break}}))}E();export{j as G,E as d};
2
+ //# sourceMappingURL=p-a6be4769.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovFormAutocomplete","proxyCustomElement","H","constructor","this","templateResolver","item","nameKey","listBoxId","createID","validateSize","newValue","validateProp","FormAutocompleteSizes","FormAutocompleteClass","root","watchOptions","setOptions","propsValueToArray","catch","onArrowUp","arrowCounter","moveToView","finally","onArrowDown","list","length","delay","heightOfList","listRef","offsetHeight","selected","querySelector","offsetTop","scrollTo","top","behavior","doSearch","Number","isInteger","minlength","isValueAccepted","processing","searchCallback","value","then","response","clearList","areOptions","options","componentDidLoad","attributeObserver","AttributeObserver","host","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","size","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","stopObserving","removeAttribute","Object","assign","render","h","Host","key","class","placeholder","name","disabled","readonly","autocomplete","required","invalid","success","role","maxlength","throttle","onInputHandler","bind","throttleTime","onKeyUpHandler","onKeyDownHandler","onFocusHandler","onBlurHandler","join","booleanString","focused","ref","el","inputRef","toBoolAttr","hidden","id","messageEmpty","empty","loading","map","index","isSelected","innerHTML","tabindex","onTouchStart","e","onSelectHandler","onMouseDown","stopPropagation","govFocus","emit","originalEvent","component","govBlur","target","govInput","has","govSelect","event","detail","keyCode","preventDefault","setFocus","focus","setBlur","blur","Array","isArray","clearValue","setProcessing","status","setSearchCallback","callback","setTemplateResolver"],"sources":["../../../packages/core/src/components/gov-form/autocomplete/gov-form-autocomplete.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from '@stencil/core'\nimport {booleanString, toBoolAttr} from '../../../helpers/Dom/template'\nimport {validateProp} from '../../../helpers/Validate/props'\nimport {Nullable} from '../../../types/interfaces'\nimport {createID} from '../../../utils/string.utils'\nimport {delay, has, throttle} from '../../../utils/utils'\nimport {FormInputEvent} from '../input/gov-form-input.types'\nimport {FormAutocompleteClass, FormAutocompleteSizes, SizesType,} from './constants'\nimport {FormAutocompleteEvent, GovFormAutocompleteItem} from './gov-form-autocomplete.types'\nimport {propsValueToArray} from \"../../../utils/array.utils\";\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-form-autocomplete',\n})\nexport class GovFormAutocomplete {\n\tprivate inputRef?: HTMLGovFormInputElement\n\tprivate listRef?: HTMLUListElement\n\tprivate readonly listBoxId: string\n\tprivate searchCallback: (value: string) => Promise<GovFormAutocompleteItem[]>\n\tprivate templateResolver: (item: GovFormAutocompleteItem, selected: boolean) => string = item => item[this.nameKey]\n\tprivate attributeObserver: AttributeObserver\n\n\tconstructor() {\n\t\tthis.listBoxId = createID('GovListBox')\n\t}\n\n\t@Element() host: HTMLGovFormInputElement\n\t/**\n\t * Value of input\n\t */\n\t@Prop({reflect: true, mutable: true}) value = ''\n\t/**\n\t * Options of autocomplete\n\t */\n\t@Prop({reflect: true, mutable: true}) options?: string | GovFormAutocompleteItem[]\n\t/**\n\t * Custom input identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop() readonly success: boolean\n\t/**\n\t * Input’s size.\n\t */\n\t@Prop() readonly size?: SizesType = 'm'\n\t/**\n\t * Main key name in the object\n\t */\n\t@Prop({attribute: 'name-key'}) readonly nameKey: string = 'name'\n\t/**\n\t * Name of the input.\n\t */\n\t@Prop() readonly name: string\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 input component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Text that appears in the form control when it has no value set\n\t */\n\t@Prop() readonly placeholder: string\n\t/**\n\t * The value is not editable\n\t */\n\t@Prop() readonly readonly: boolean\n\t/**\n\t * 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 * Minimum length (number of characters) of value\n\t */\n\t@Prop() readonly minlength: number = 3\n\t/**\n\t * Maximum length (number of characters) of value\n\t */\n\t@Prop() readonly maxlength: number\n\t/**\n\t * Input throttle in milliseconds\n\t */\n\t@Prop() readonly throttleTime: number = 200\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 * Emitted when the input has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormAutocompleteEvent>\n\t/**\n\t * Emitted when the input loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormAutocompleteEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: 'gov-input'}) govInput: EventEmitter<FormAutocompleteEvent>\n\t/**\n\t * Emitted when the input change value.\n\t */\n\t@Event({eventName: 'gov-select'}) govSelect: EventEmitter<FormAutocompleteEvent>\n\n\t@State() focused: boolean\n\t@State() processing = false\n\t@State() arrowCounter = -1\n\t@State() list: GovFormAutocompleteItem[] = []\n\t@State() inheritedAttributes: Attributes = {}\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormAutocompleteSizes, newValue, FormAutocompleteClass.root)\n\t}\n\n\t@Watch('options')\n\twatchOptions(newValue: string | GovFormAutocompleteItem[]): void {\n\t\tthis.setOptions(propsValueToArray(newValue)).catch()\n\t}\n\n\tprivate onArrowUp() {\n\t\tif (this.arrowCounter > 0) {\n\t\t\tthis.arrowCounter = this.arrowCounter - 1\n\t\t\tthis.moveToView().finally()\n\t\t}\n\t}\n\n\tprivate onArrowDown() {\n\t\tif (this.arrowCounter < this.list.length - 1) {\n\t\t\tthis.arrowCounter = this.arrowCounter + 1\n\t\t\tthis.moveToView().finally()\n\t\t}\n\t}\n\n\tprivate async moveToView() {\n\t\tawait delay(200)\n\t\tconst heightOfList = this.listRef.offsetHeight\n\t\tconst selected = this.listRef.querySelector('li[aria-selected=\"true\"]') as HTMLUListElement\n\t\tif (selected && heightOfList) {\n\t\t\tconst offsetTop = selected.offsetTop\n\t\t\tthis.listRef.scrollTo({top: offsetTop, behavior: 'smooth'})\n\t\t}\n\t}\n\n\tprivate doSearch() {\n\t\tif (Number.isInteger(this.minlength) && this.isValueAccepted === false && this.minlength) {\n\t\t\tthis.list = []\n\t\t\tthis.arrowCounter = -1\n\t\t\tthis.processing = false\n\t\t\treturn\n\t\t}\n\t\tif (this.searchCallback) {\n\t\t\tthis.processing = true\n\t\t\tthis.searchCallback(this.value)\n\t\t\t\t.then(response => (this.list = response))\n\t\t\t\t.catch(() => (this.list = []))\n\t\t\t\t.finally(() => {\n\t\t\t\t\tthis.arrowCounter = -1\n\t\t\t\t\tthis.processing = false\n\t\t\t\t})\n\t\t}\n\t}\n\n\tprivate clearList() {\n\t\tconst areOptions = propsValueToArray<GovFormAutocompleteItem[]>(this.options)\n\t\tif (areOptions.length === 0) {\n\t\t\tthis.list = []\n\t\t}\n\t}\n\n\tget isValueAccepted() {\n\t\tif (typeof this.value === 'string') {\n\t\t\treturn this.value.length >= this.minlength\n\t\t} else {\n\t\t\treturn false\n\t\t}\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() {\n\t\tthis.validateSize(this.size)\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\treturn (\n\t\t\t<Host class={FormAutocompleteClass.root} size={this.size}>\n\t\t\t\t<gov-form-input\n\t\t\t\t\tplaceholder={this.placeholder}\n\t\t\t\t\tname={this.name}\n\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\treadonly={this.readonly}\n\t\t\t\t\tautocomplete={false}\n\t\t\t\t\tsize={this.size}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t\tinvalid={this.invalid}\n\t\t\t\t\tsuccess={this.success}\n\t\t\t\t\trole={'searchbox'}\n\t\t\t\t\tvalue={this.value}\n\t\t\t\t\tminlength={this.minlength}\n\t\t\t\t\tmaxlength={this.maxlength}\n\t\t\t\t\ton-gov-input={throttle(this.onInputHandler.bind(this), this.throttleTime)}\n\t\t\t\t\ton-gov-keyup={this.onKeyUpHandler.bind(this)}\n\t\t\t\t\ton-gov-keydown={this.onKeyDownHandler.bind(this)}\n\t\t\t\t\ton-gov-focus={this.onFocusHandler.bind(this)}\n\t\t\t\t\ton-gov-blur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\taria-autocomplete={'list'}\n\t\t\t\t\taria-owns={[this.listBoxId, this.inheritedAttributes['aria-owns']].join(' ')}\n\t\t\t\t\taria-expanded={booleanString(this.list.length && this.focused ? true : false)}\n\t\t\t\t\tref={el => (this.inputRef = el as HTMLGovFormInputElement)}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"validation-icon\" />\n\t\t\t\t\t<slot name=\"icon-end\" />\n\t\t\t\t</gov-form-input>\n\t\t\t\t<ul class={FormAutocompleteClass.list}\n\t\t\t\t\trole={'listbox'}\n\t\t\t\t\taria-hidden={toBoolAttr(!this.focused)}\n\t\t\t\t\thidden={!this.focused}\n\t\t\t\t\tid={this.listBoxId}\n\t\t\t\t\tref={el => (this.listRef = el as HTMLUListElement)}>\n\t\t\t\t\t{this.focused && this.list.length === 0 && this.processing === false && this.isValueAccepted && this.messageEmpty ? (\n\t\t\t\t\t\t<li class={FormAutocompleteClass.empty}>{this.messageEmpty}</li>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{this.focused && this.processing === true && this.isValueAccepted ? (\n\t\t\t\t\t\t<li class={FormAutocompleteClass.loading}>\n\t\t\t\t\t\t\t<gov-skeleton size=\"m\"></gov-skeleton>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{this.focused ? this.list.map((item, index) => {\n\t\t\t\t\t\tconst isSelected = this.arrowCounter === index\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<li\n\t\t\t\t\t\t\t\tclass={FormAutocompleteClass.item}\n\t\t\t\t\t\t\t\tinnerHTML={this.templateResolver(item, isSelected)}\n\t\t\t\t\t\t\t\trole={'option'}\n\t\t\t\t\t\t\t\taria-posinset={index}\n\t\t\t\t\t\t\t\ttabindex={isSelected ? 0 : -1}\n\t\t\t\t\t\t\t\taria-setsize={this.list.length}\n\t\t\t\t\t\t\t\tonTouchStart={(e: TouchEvent) => this.onSelectHandler(e, index)}\n\t\t\t\t\t\t\t\tonMouseDown={(e: PointerEvent) => this.onSelectHandler(e, index)}\n\t\t\t\t\t\t\t\taria-selected={toBoolAttr(isSelected)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<slot name=\"list-item-left\"/>\n\t\t\t\t\t\t\t\t<slot name=\"list-item-right\"/>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)\n\t\t\t\t\t}) : null}\n\t\t\t\t</ul>\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\tthis.focused = true\n\t\tthis.arrowCounter = -1\n\t\tif (this.isValueAccepted && this.searchCallback) {\n\t\t\tthis.doSearch()\n\t\t}\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\toriginalEvent: e,\n\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\tvalue: this.value,\n\t\t\tselected: null,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tthis.clearList();\n\t\tthis.arrowCounter = -1\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\toriginalEvent: e,\n\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\tvalue: this.value,\n\t\t\tselected: null,\n\t\t})\n\t}\n\n\tprivate onInputHandler(e: InputEvent) {\n\t\tthis.value = (e.target as HTMLGovFormInputElement).value\n\t\te.stopPropagation()\n\t\tthis.govInput.emit({\n\t\t\toriginalEvent: e,\n\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\tvalue: this.value,\n\t\t\tselected: null,\n\t\t})\n\t\tthis.doSearch()\n\t}\n\n\tprivate onSelectHandler(e: PointerEvent | CustomEvent | TouchEvent, index = -1) {\n\t\tlet selected: Nullable<GovFormAutocompleteItem> = null\n\t\tif (index > -1) {\n\t\t\tselected = this.list[index]\n\t\t} else if (has(this.arrowCounter, this.list)) {\n\t\t\tselected = this.list[this.arrowCounter]\n\t\t}\n\t\tif (selected) {\n\t\t\tthis.govSelect.emit({\n\t\t\t\tcomponent: FormAutocompleteClass.root,\n\t\t\t\tvalue: this.value,\n\t\t\t\tselected: selected,\n\t\t\t\toriginalEvent: e,\n\t\t\t})\n\t\t\tthis.clearList();\n\t\t\tif (has(this.nameKey, selected) && typeof selected[this.nameKey] === 'string') {\n\t\t\t\tthis.value = selected[this.nameKey]\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate onKeyUpHandler(e: CustomEvent) {\n\t\tconst event = (e.detail as FormInputEvent).originalEvent as KeyboardEvent\n\t\te.stopPropagation()\n\t\tevent.stopPropagation()\n\t\tif (event.keyCode === 38) this.onArrowUp()\n\t\telse if (event.keyCode === 40) this.onArrowDown()\n\t\telse if (event.keyCode === 13) {\n\t\t\te.preventDefault()\n\t\t\tevent.preventDefault()\n\t\t\tthis.onSelectHandler(e)\n\t\t}\n\t}\n\n\tprivate onKeyDownHandler(e: CustomEvent) {\n\t\tconst event = (e.detail as FormInputEvent).originalEvent as KeyboardEvent\n\t\te.stopPropagation()\n\t\tevent.stopPropagation()\n\t\tif (event.keyCode === 13) {\n\t\t\te.preventDefault()\n\t\t\tevent.preventDefault()\n\t\t}\n\t}\n\n\t/**\n\t * Focus main input element\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.inputRef.focus(options)\n\t}\n\n\t/**\n\t * Blur main input element\n\t */\n\t@Method()\n\tasync setBlur(): Promise<void> {\n\t\treturn this.inputRef.blur()\n\t}\n\n\t/**\n\t * Set options for list\n\t */\n\t@Method()\n\tasync setOptions(options: GovFormAutocompleteItem[]): Promise<void> {\n\t\tthis.list = Array.isArray(options) ? options : []\n\t\tthis.arrowCounter = -1\n\t}\n\n\t/**\n\t * Clears whisperer value\n\t */\n\t@Method()\n\tasync clearValue(): Promise<void> {\n\t\tthis.value = ''\n\t\tthis.inputRef.value = ''\n\n\t\tawait this.inputRef.clearValue()\n\t}\n\n\t/**\n\t * Clears whisperer value\n\t */\n\t@Method()\n\tasync setProcessing(status: boolean): Promise<void> {\n\t\tthis.processing = status\n\t}\n\n\t/**\n\t * Set a custom asynchronous function for the whisperer\n\t */\n\t@Method()\n\tasync setSearchCallback(callback: (value: string) => Promise<any>) {\n\t\tthis.searchCallback = callback\n\t}\n\n\t/**\n\t * Setting a custom whisper result template\n\t * @param callback\n\t */\n\t@Method()\n\tasync setTemplateResolver(callback: (item: GovFormAutocompleteItem) => string) {\n\t\tthis.templateResolver = callback\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{p as t,H as i,h as s,d as e}from"./p-42200001.js";import{p as a}from"./p-e0e2e9c1.js";import{S as n}from"./p-92f420cb.js";import{C as o}from"./p-5aad3497.js";import{g as r}from"./p-ea7fdd2e.js";import{v as h}from"./p-a2435993.js";import{A as l,a as c,i as p}from"./p-33d5d1ed.js";const d=a(n,["_XS","_S","_M","_L","_XL"]);a(o,["PRIMARY","NEUTRAL"]);var m;(function(t){t["CIRCLE"]="circle";t["LINE"]="line"})(m||(m={}));var u;(function(t){t["PULSE"]="pulse";t["PROGRESS"]="progress";t["FALSE"]="false"})(u||(u={}));const f={root:"gov-skeleton"};const v=t(class t extends i{constructor(){super();this.__registerHost();this.items=[];this.size="m";this.color="neutral";this.shape="line";this.width=null;this.height=null;this.animation="progress";this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){h(d,t,f.root)}validateShape(t){h(m,t,f.root)}validateAnimation(t){h(u,t,f.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(c)}componentWillLoad(){this.validateSize(this.size);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init();this.inheritedAttributes=p(this.host)}componentWillUpdate(){this.init()}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}init(){this.items.fill(1)}get style(){const t={width:null,height:null};if(this.width){t.width=this.width}if(this.height){t.height=this.height}return Object.assign({},t)}render(){return s(e,Object.assign({key:"9e026075a3ee04f09546bb686ec04309374da466",size:this.size,color:this.color,class:{[f.root]:true,circle:this.shape==="circle",line:this.shape==="line",progress:this.animation==="progress",pulse:this.animation==="pulse"}},this.inheritedAttributes,{"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100",role:"progressbar",tabindex:"0",style:this.style}))}get host(){return this}static get watchers(){return{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}}},[0,"gov-skeleton",{size:[1],color:[1],shape:[1],width:[1],height:[1],animation:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-skeleton"];t.forEach((t=>{switch(t){case"gov-skeleton":if(!customElements.get(t)){customElements.define(t,v)}break}}))}g();export{v as G,g as d};
2
- //# sourceMappingURL=p-dfb5794a.js.map
1
+ import{p as t,H as i,h as s,d as e}from"./p-42200001.js";import{p as a}from"./p-e0e2e9c1.js";import{S as n}from"./p-92f420cb.js";import{C as o}from"./p-5aad3497.js";import{g as r}from"./p-ea7fdd2e.js";import{v as h}from"./p-0b3574c2.js";import{A as l,a as c,i as p}from"./p-33d5d1ed.js";const d=a(n,["_XS","_S","_M","_L","_XL"]);a(o,["PRIMARY","NEUTRAL"]);var m;(function(t){t["CIRCLE"]="circle";t["LINE"]="line"})(m||(m={}));var u;(function(t){t["PULSE"]="pulse";t["PROGRESS"]="progress";t["FALSE"]="false"})(u||(u={}));const f={root:"gov-skeleton"};const v=t(class t extends i{constructor(){super();this.__registerHost();this.items=[];this.size="m";this.color="neutral";this.shape="line";this.width=null;this.height=null;this.animation="progress";this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){h(d,t,f.root)}validateShape(t){h(m,t,f.root)}validateAnimation(t){h(u,t,f.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(c)}componentWillLoad(){this.validateSize(this.size);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init();this.inheritedAttributes=p(this.host)}componentWillUpdate(){this.init()}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}init(){this.items.fill(1)}get style(){const t={width:null,height:null};if(this.width){t.width=this.width}if(this.height){t.height=this.height}return Object.assign({},t)}render(){return s(e,Object.assign({key:"9e026075a3ee04f09546bb686ec04309374da466",size:this.size,color:this.color,class:{[f.root]:true,circle:this.shape==="circle",line:this.shape==="line",progress:this.animation==="progress",pulse:this.animation==="pulse"}},this.inheritedAttributes,{"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100",role:"progressbar",tabindex:"0",style:this.style}))}get host(){return this}static get watchers(){return{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}}},[0,"gov-skeleton",{size:[1],color:[1],shape:[1],width:[1],height:[1],animation:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-skeleton"];t.forEach((t=>{switch(t){case"gov-skeleton":if(!customElements.get(t)){customElements.define(t,v)}break}}))}g();export{v as G,g as d};
2
+ //# sourceMappingURL=p-ac359044.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,c as a,h as s,d as i}from"./p-42200001.js";import{a as o}from"./p-07165d99.js";import{a as c}from"./p-227eb30d.js";import{c as m}from"./p-20c2203a.js";import{d as n}from"./p-e0e2e9c1.js";import{g as r}from"./p-ea7fdd2e.js";import{d as l}from"./p-7d4f2214.js";import{d}from"./p-f44899e1.js";const f=":root{--roboto:Roboto, sans-serif}gov-attachments-item,.gov-attachments-item{position:relative;display:flex;width:100%;gap:var(--spacing-s)}gov-attachments-item__messages>*:last-child,.gov-attachments-item__messages>*:last-child{margin-bottom:0 !important}gov-attachments-item__file,.gov-attachments-item__file{display:flex;gap:var(--spacing-s)}gov-attachments-item__name,.gov-attachments-item__name{display:flex;gap:var(--spacing-s);flex-wrap:wrap;align-items:center;margin:0;color:var(--name-color, var(--text-primary))}gov-attachments-item__name span,.gov-attachments-item__name span{font-size:var(--font-size-xs);line-height:var(--height-line-xs);letter-spacing:0.0125rem;font-weight:400;color:var(--decor-color, var(--text-secondary))}";const b=f;const p=e(class e extends t{constructor(){super();this.__registerHost();this.govRemove=a(this,"gov-remove",7);this.accessibleRemoveLabel=undefined;this.accessibleRemoveLabelledBy=undefined;this.h=r(this.host)}async componentDidRender(){if(m()){await n(500);await this.validateAccessibility()}}render(){return s(i,{key:"a8fffc03fb890c1aaae5a1d63240747f5fcb013e",class:this.h.classes(o.root),role:"listitem"},s("div",{key:"0aa555d1c5b3bdf089cf020db1271e40389522f9",class:o.file},s("p",{key:"46014b9e9d9a46fea6f813ef271815be6ab6dfc4",class:o.name},s("slot",{key:"806f9dc2b2ee44248f7fe613e8362d92ed938ba8"}),s("slot",{key:"97d69e72afd5063f41ea7b41e50012893ee5027c",name:"info"})),s("gov-button",{key:"6c40ff9ae6be99cde30fde276db287a3d14dccd1",color:"primary",type:"base",size:"s","aria-label":this.accessibleRemoveLabel,"aria-labelledby":this.accessibleRemoveLabelledBy,"on-gov-click":this.govRemove.emit},s("gov-icon",{key:"24871273b10ca807811acd15dabb49c6a45d76d1",slot:"icon-start",name:"x-lg",type:"components"}))),this.h.hasSlot("message")&&s("div",{key:"7683c6c6bfd1ca4b9660ee56ec190472970d0ac8",class:o.messages},s("slot",{key:"20b46c868809d19f9c67105a4c4774df9688a2c1",name:"message"})))}async validateAccessibility(){c(this.accessibleRemoveLabel,this.accessibleRemoveLabelledBy,o.root,this.host)}get host(){return this}static get style(){return b}},[4,"gov-attachments-item",{accessibleRemoveLabel:[1,"accessible-remove-label"],accessibleRemoveLabelledBy:[1,"accessible-remove-labelledby"],validateAccessibility:[64]}]);function g(){if(typeof customElements==="undefined"){return}const e=["gov-attachments-item","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-attachments-item":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-button":if(!customElements.get(e)){l()}break;case"gov-icon":if(!customElements.get(e)){d()}break}}))}g();export{p as G,g as d};
2
- //# sourceMappingURL=p-859a4f0d.js.map
1
+ import{p as e,H as t,c as a,h as s,d as i}from"./p-42200001.js";import{a as o}from"./p-07165d99.js";import{a as c}from"./p-80dad64b.js";import{c as m}from"./p-e8ec030e.js";import{d as n}from"./p-e0e2e9c1.js";import{g as r}from"./p-ea7fdd2e.js";import{d}from"./p-318d89bd.js";import{d as l}from"./p-46c567fd.js";const f=":root{--roboto:Roboto, sans-serif}gov-attachments-item,.gov-attachments-item{position:relative;display:flex;width:100%;gap:var(--spacing-s)}gov-attachments-item__messages>*:last-child,.gov-attachments-item__messages>*:last-child{margin-bottom:0 !important}gov-attachments-item__file,.gov-attachments-item__file{display:flex;gap:var(--spacing-s)}gov-attachments-item__name,.gov-attachments-item__name{display:flex;gap:var(--spacing-s);flex-wrap:wrap;align-items:center;margin:0;color:var(--name-color, var(--text-primary))}gov-attachments-item__name span,.gov-attachments-item__name span{font-size:var(--font-size-xs);line-height:var(--height-line-xs);letter-spacing:0.0125rem;font-weight:400;color:var(--decor-color, var(--text-secondary))}";const b=f;const p=e(class e extends t{constructor(){super();this.__registerHost();this.govRemove=a(this,"gov-remove",7);this.accessibleRemoveLabel=undefined;this.accessibleRemoveLabelledBy=undefined;this.h=r(this.host)}async componentDidRender(){if(m()){await n(500);await this.validateAccessibility()}}render(){return s(i,{key:"a8fffc03fb890c1aaae5a1d63240747f5fcb013e",class:this.h.classes(o.root),role:"listitem"},s("div",{key:"0aa555d1c5b3bdf089cf020db1271e40389522f9",class:o.file},s("p",{key:"46014b9e9d9a46fea6f813ef271815be6ab6dfc4",class:o.name},s("slot",{key:"806f9dc2b2ee44248f7fe613e8362d92ed938ba8"}),s("slot",{key:"97d69e72afd5063f41ea7b41e50012893ee5027c",name:"info"})),s("gov-button",{key:"6c40ff9ae6be99cde30fde276db287a3d14dccd1",color:"primary",type:"base",size:"s","aria-label":this.accessibleRemoveLabel,"aria-labelledby":this.accessibleRemoveLabelledBy,"on-gov-click":this.govRemove.emit},s("gov-icon",{key:"24871273b10ca807811acd15dabb49c6a45d76d1",slot:"icon-start",name:"x-lg",type:"components"}))),this.h.hasSlot("message")&&s("div",{key:"7683c6c6bfd1ca4b9660ee56ec190472970d0ac8",class:o.messages},s("slot",{key:"20b46c868809d19f9c67105a4c4774df9688a2c1",name:"message"})))}async validateAccessibility(){c(this.accessibleRemoveLabel,this.accessibleRemoveLabelledBy,o.root,this.host)}get host(){return this}static get style(){return b}},[4,"gov-attachments-item",{accessibleRemoveLabel:[1,"accessible-remove-label"],accessibleRemoveLabelledBy:[1,"accessible-remove-labelledby"],validateAccessibility:[64]}]);function g(){if(typeof customElements==="undefined"){return}const e=["gov-attachments-item","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-attachments-item":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-button":if(!customElements.get(e)){d()}break;case"gov-icon":if(!customElements.get(e)){l()}break}}))}g();export{p as G,g as d};
2
+ //# sourceMappingURL=p-b95ebe8c.js.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./p-e0e2e9c1.js";const n=typeof window!=="undefined";const s=s=>n&&window&&o(s,window);const t=()=>{const o={canValidateWcagOnRender:false,warningLog:false,errorLog:false,log:false,iconsPath:"/assets/icons",iconsLazyLoad:true,documentNode:document?document:null};const n=s("GOV_DS_CONFIG");if(n){return Object.assign(Object.assign({},o),n)}return o};const c=()=>t().canValidateWcagOnRender;const e=()=>t().warningLog;const a=()=>t().errorLog;const d=()=>t().log;const i=()=>t().iconsPath;const r=()=>t().iconsLazyLoad;const f=()=>t().documentNode;const g={bg:"#ecae1a",text:"#3b3b3b"};const b={bg:"#2362a2",text:"#fff"};const l=(o,n=b,s)=>{const t=["color: "+n.text,"background: "+n.bg,"font-size: 11px","padding: 2px 4px","border-radius: 3px","font-weight: 600"].join(";");if(d()||e()||a()){console.log("%cgov",t,o,s)}};const u=(o,n)=>{if(e()){l(o,g,n)}};export{r as a,n as b,c,f as d,u as g,i};
2
- //# sourceMappingURL=p-20c2203a.js.map
1
+ import{a as o}from"./p-e0e2e9c1.js";const n=typeof window!=="undefined";const s=s=>n&&window&&o(s,window);const t=()=>{const o={canValidateWcagOnRender:false,warningLog:false,errorLog:false,log:false,iconsPath:"/assets/icons",iconsLazyLoad:true,documentNode:document?document:null};const n=s("GOV_DS_CONFIG");if(n){return Object.assign(Object.assign({},o),n)}return o};const c=()=>t().canValidateWcagOnRender;const e=()=>t().warningLog;const a=()=>t().errorLog;const d=()=>t().log;const i=()=>t().iconsPath;const r=()=>t().iconsLazyLoad;const f=()=>t().documentNode;const g={bg:"#ecae1a",text:"#3b3b3b"};const b={bg:"#2362a2",text:"#fff"};const l=(o,n=b,s)=>{const t=["color: "+n.text,"background: "+n.bg,"font-size: 11px","padding: 2px 4px","border-radius: 3px","font-weight: 600"].join(";");if(d()||e()||a()){console.log("%cgov",t,o,s)}};const u=(o,n)=>{if(e()){l(o,g,n)}};export{n as a,r as b,c,f as d,u as g,i};
2
+ //# sourceMappingURL=p-e8ec030e.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as i,b as l}from"./p-8506b611.js";export{s as setNonce}from"./p-8506b611.js";import{g as a}from"./p-e1255160.js";var t=()=>{{o(i.prototype)}const l=import.meta.url;const a={};if(l!==""){a.resourcesUrl=new URL(".",l).href}return e(a)};var o=e=>{const i=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return i.call(this,e)}const l=i.call(this,false);const a=this.childNodes;if(e){for(let e=0;e<a.length;e++){if(a[e].nodeType!==2){l.appendChild(a[e].cloneNode(true))}}}return l}};t().then((async e=>{await a();return l(JSON.parse('[["p-48c93ac0",[[4,"gov-form-file",{"expanded":[4],"required":[4],"disabled":[4],"resetAfterPick":[4,"reset-after-pick"],"ignoreFileDuplicationCheck":[4,"ignore-file-duplication-check"],"displayAttachments":[4,"display-attachments"],"name":[1],"accept":[1],"multiple":[4],"maxFileSize":[2,"max-file-size"],"identifier":[1],"invalid":[4],"errorSize":[1,"error-size"],"errorAccept":[1,"error-accept"],"accessibleRemoveLabel":[1,"accessible-remove-label"],"accessibleAttachmentsLabel":[1,"accessible-attachments-label"],"files":[32],"inheritedAttributes":[32],"getRef":[64],"getAreaRef":[64],"reset":[64]},null,{"disabled":["watchControlAttrs"],"invalid":["watchControlAttrs"]}]]],["p-74458da3",[[4,"gov-form-multi-select",{"value":[1537],"options":[1537],"identifier":[1],"placeholder":[1],"size":[1],"name":[1],"hideSelectedList":[4,"hide-selected-list"],"required":[4],"disabled":[4],"invalid":[516],"success":[4],"messageEmpty":[1,"message-empty"],"messageLoading":[1,"message-loading"],"focused":[32],"valueState":[32],"selectedOptionsState":[32],"optionsState":[32],"inheritedAttributes":[32],"setFocus":[64],"setValue":[64],"getRef":[64]},null,{"size":["validateSize"],"options":["watchOptions"],"value":["watchValue"]}]]],["p-c20fe3da",[[4,"gov-dialog",{"open":[1540],"blockClose":[4,"block-close"],"blockBackdropClose":[4,"block-backdrop-close"],"role":[1],"labelTag":[1,"label-tag"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleCloseLabel":[1,"accessible-close-label"],"accessibleCloseLabelledBy":[1,"accessible-close-labelled-by"],"setFocus":[64],"validateAccessibility":[64]},null,{"open":["watchOpen"]}]]],["p-db22d51c",[[0,"gov-pagination",{"type":[1],"current":[2],"total":[2],"selectIdentifier":[1,"select-identifier"],"size":[1],"color":[1],"pageSize":[2,"page-size"],"maxPages":[2,"max-pages"],"link":[1],"accessibleSelectLabel":[1,"accessible-select-label"],"accessiblePageLabel":[1,"accessible-page-label"],"labelPrev":[1,"label-prev"],"labelStart":[1,"label-start"],"labelNext":[1,"label-next"],"labelEnd":[1,"label-end"],"pagination":[32],"inheritedAttributes":[32]},null,{"type":["validateType"],"size":["validateSize"],"color":["validateColor"],"current":["recalculate"],"total":["recalculate"],"pageSize":["recalculate"],"maxPages":["recalculate"]}]]],["p-e2517a72",[[4,"gov-breadcrumbs",{"collapsible":[4],"isExpanded":[4,"is-expanded"],"accessibleLabel":[1,"accessible-label"],"accessibleLabelledBy":[1,"accessible-labelledby"],"accessibleToggleLabel":[1,"accessible-toggle-label"],"expanded":[32],"toggleOption":[32],"validateAccessibility":[64]}]]],["p-7d6073aa",[[4,"gov-infobar",{"color":[1],"type":[1],"role":[1],"accessibleCloseLabel":[1,"accessible-close-label"],"accessibleToggleLabel":[1,"accessible-toggle-label"],"closable":[4],"toggleContent":[32],"inheritedAttributes":[32]},null,{"color":["validateColor"]}]]],["p-f6709826",[[4,"gov-loading",{"size":[1]},null,{"size":["validateSize"]}]]],["p-8701c28e",[[4,"gov-tabs",{"type":[1],"size":[1],"color":[1],"orientation":[1],"direction":[513],"controllers":[32],"focusIndex":[32],"inheritedAttributes":[32],"refresh":[64],"currentTab":[64],"setActiveTab":[64],"rerender":[64]},null,{"type":["validateType"],"color":["validateColor"],"size":["validateSize"]}]]],["p-c4ffcc37",[[4,"gov-toast",{"color":[1],"gravity":[1],"position":[1],"type":[1],"time":[2],"closeLabel":[1,"close-label"],"accessibleCloseLabel":[1,"accessible-close-label"],"inheritedAttributes":[32],"destroy":[64]},null,{"color":["validateColor"]}]]],["p-d65cef62",[[4,"gov-tooltip-content",{"color":[1],"size":[1],"persist":[4],"isVisible":[1028,"is-visible"],"parentId":[1,"parent-id"]},null,{"isVisible":["visibleContent"]}]]],["p-7bf52eb9",[[4,"gov-accordion-item",{"identifier":[1],"size":[1025],"disabled":[4],"open":[1028],"openState":[32],"toggle":[64],"currentState":[64]},null,{"size":["validateSize"]}]]],["p-b4af0bec",[[4,"gov-card",{"promotion":[4],"collapsible":[4],"open":[1540],"accessibleTriggerLabel":[1,"accessible-label"],"accessibleTriggerLabelledBy":[1,"accessible-labelledby"],"validateAccessibility":[64]}]]],["p-cb557873",[[4,"gov-form-checkbox",{"value":[1],"checked":[1540],"required":[4],"disabled":[4],"indeterminate":[516],"name":[1],"size":[1],"identifier":[1],"noLabel":[4,"no-label"],"invalid":[4],"inheritedAttributes":[32],"getRef":[64]},null,{"size":["validateSize","watchControlAttrs"],"disabled":["watchControlAttrs"],"invalid":["watchControlAttrs"]}]]],["p-1ac9544f",[[4,"gov-form-switch",{"value":[1],"noLabel":[4,"no-label"],"checked":[1540],"required":[4],"disabled":[4],"name":[1],"size":[1],"identifier":[1],"invalid":[4],"inheritedAttributes":[32],"getRef":[64]},null,{"size":["validateSize","watchDisabled"],"disabled":["watchDisabled"],"invalid":["watchDisabled"]}]]],["p-2c290fe5",[[4,"gov-link",{"size":[1],"external":[4],"href":[1],"target":[1],"inheritedAttributes":[32]},null,{"size":["validateSize"]}]]],["p-b1efeb41",[[4,"gov-tag",{"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"size":[513],"color":[513],"type":[513]},null,{"color":["validateColor"],"size":["validateSize"]}]]],["p-f4bcf817",[[4,"gov-tile",{"size":[513],"orientation":[1],"noBorder":[4,"no-border"],"href":[513],"target":[1],"getTriggerRef":[64]}]]],["p-d24710ff",[[4,"gov-wizard-item",{"color":[1],"size":[1],"identifier":[1],"collapsible":[4],"disabled":[4],"isExpanded":[1028,"is-expanded"],"open":[64],"close":[64],"toggle":[64],"currentState":[64]},null,{"color":["validateColor"]}]]],["p-9da91318",[[4,"gov-accordion",{"size":[1],"noBorder":[4,"no-border"]},null,{"size":["validateSize"]}]]],["p-bdc51179",[[4,"gov-container"]]],["p-5ed63e9c",[[4,"gov-control-group",{"color":[1],"noBorder":[4,"no-border"],"fitContent":[4,"fit-content"]},null,{"color":["validateColor"]}]]],["p-5b2131c1",[[4,"gov-cookiebar"]]],["p-f7a4da9d",[[4,"gov-dropdown",{"identifier":[1],"open":[1028],"position":[1],"getState":[64],"toggle":[64]},null,{"open":["watchOpen"]}]]],["p-410ec0dd",[[4,"gov-empty",{"size":[1]},null,{"size":["validateSize"]}]]],["p-5396935e",[[4,"gov-error-code"]]],["p-773f71f6",[[4,"gov-form-checkbox-group",{"gap":[1],"orientation":[1],"value":[1025]},null,{"gap":["validateGap"],"orientation":["validateOrientation"]}]]],["p-535316b4",[[4,"gov-form-control",{"identifier":[1],"invalid":[516],"disabled":[516],"success":[516],"fieldset":[4],"size":[1]}]]],["p-40d764ac",[[4,"gov-form-group",{"gap":[1],"orientation":[1]},null,{"gap":["validateGap"],"orientation":["validateOrientation"]}]]],["p-22fa411d",[[4,"gov-form-password-power",{"power":[514]}]]],["p-783a6b5b",[[4,"gov-form-radio",{"value":[1],"noLabel":[4,"no-label"],"checked":[1540],"required":[4],"disabled":[4],"name":[1],"size":[1],"identifier":[1],"invalid":[4],"inheritedAttributes":[32],"getRef":[64]},null,{"size":["validateSize","watchControlAttrs"],"disabled":["watchControlAttrs"],"invalid":["watchControlAttrs"]}]]],["p-a218e2eb",[[4,"gov-form-radio-group",{"gap":[1],"orientation":[1],"value":[1025]},null,{"gap":["validateGap"],"orientation":["validateOrientation"]}]]],["p-019e967c",[[4,"gov-form-search",{"size":[1],"color":[513]}]]],["p-00d153bf",[[4,"gov-grid",{"alignX":[1,"align-x"],"alignY":[1,"align-y"]}]]],["p-bc966c46",[[4,"gov-grid-item",{"size":[1],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]],["p-439b66a5",[[4,"gov-layout",{"type":[1],"variant":[1],"inverse":[4]}]]],["p-30eaeeec",[[4,"gov-layout-column"]]],["p-e834ee73",[[0,"gov-lifecycle"]]],["p-f1056a83",[[4,"gov-message",{"color":[1],"type":[1]},null,{"color":["validateColor"]}]]],["p-6454af62",[[0,"gov-spacer",{"size":[1],"breakpoint":[1]},null,{"size":["validateSize"],"breakpoint":["validateBreakpoint"]}]]],["p-443a813a",[[4,"gov-stepper",{"size":[1]},null,{"size":["validateSize"]}]]],["p-f1fa5e1e",[[4,"gov-stepper-item",{"color":[1],"size":[1],"identifier":[1]},null,{"color":["validateColor"]}]]],["p-0be19b89",[[4,"gov-tabs-item",{"identifier":[1],"triggerIdentifier":[1,"trigger-identifier"],"label":[513],"disabled":[516],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"default":[4],"isActive":[32],"getIdentifier":[64],"getTriggerIdentifier":[64],"getDisableState":[64],"setActiveStatus":[64]},null,{"label":["rerenderParent"],"disabled":["rerenderParent"]}]]],["p-7b7e502b",[[4,"gov-tiles",{"columns":[514]}]]],["p-3fc3c26b",[[4,"gov-tooltip",{"color":[1],"size":[1],"position":[1025],"message":[1],"identifier":[1],"icon":[516],"persist":[32],"show":[64],"hide":[64]},null,{"color":["validateColor"],"size":["validateSize"],"position":["validatePosition"],"message":["rerenderMessage"]}]]],["p-951823cb",[[4,"gov-wizard",{"size":[1],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]},null,{"size":["validateSize"]}]]],["p-1b3c808d",[[0,"gov-theme-switch",{"size":[1],"ariaLabelLight":[1,"aria-label-light"],"ariaLabelDark":[1,"aria-label-dark"],"labelLight":[1,"label-light"],"labelDark":[1,"label-dark"],"theme":[32]},null,{"size":["validateSize"],"theme":["watchTheme"]}],[4,"gov-flex",{"direction":[1],"justifyContent":[513,"justify-content"],"alignItems":[513,"align-items"],"wrap":[513],"alignContent":[513,"align-content"],"alignSelf":[513,"align-self"]}],[4,"gov-form-label",{"identifier":[1],"size":[1],"required":[4],"legend":[4]}],[0,"gov-icon",{"size":[513],"color":[513],"name":[513],"type":[513],"visible":[32],"error":[32]},null,{"size":["validateSize"],"color":["validateColor"],"name":["loadIconPathData"]}]]],["p-dec3f948",[[4,"gov-button",{"color":[513],"size":[513],"type":[513],"expanded":[516],"name":[1],"disabled":[516],"nativeType":[1,"native-type"],"href":[1],"target":[1],"download":[4],"hreflang":[1],"referrerpolicy":[1],"rel":[1],"loading":[1],"focusable":[4],"identifier":[1],"inheritedAttributes":[32],"setFocus":[64],"getRef":[64],"validateAccessibility":[64]},null,{"color":["validateColor"],"type":["validateType"],"size":["validateSize"],"nativeType":["validateNativeType"]}]]],["p-fe6fed11",[[4,"gov-form-autocomplete",{"value":[1537],"options":[1537],"identifier":[1],"success":[4],"size":[1],"nameKey":[1,"name-key"],"name":[1],"required":[4],"disabled":[4],"placeholder":[1],"readonly":[4],"invalid":[4],"minlength":[2],"maxlength":[2],"throttleTime":[2,"throttle-time"],"messageEmpty":[1,"message-empty"],"focused":[32],"processing":[32],"arrowCounter":[32],"list":[32],"inheritedAttributes":[32],"setFocus":[64],"setBlur":[64],"setOptions":[64],"clearValue":[64],"setProcessing":[64],"setSearchCallback":[64],"setTemplateResolver":[64]},null,{"size":["validateSize"],"options":["watchOptions"]}]]],["p-1abdcb62",[[4,"gov-chip",{"disabled":[516],"href":[1],"target":[1],"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"size":[1],"tag":[1],"color":[1],"type":[513],"focusable":[4],"identifier":[1],"inheritedAttributes":[32],"geRef":[64],"setFocus":[64]},null,{"color":["validateColor"],"size":["validateSize"]}]]],["p-52ca31be",[[4,"gov-form-select",{"value":[1537],"options":[1537],"identifier":[1],"size":[1],"name":[1],"required":[4],"success":[4],"disabled":[4],"invalid":[4],"focused":[32],"optionsState":[32],"inheritedAttributes":[32],"setFocus":[64],"getRef":[64]},null,{"size":["validateSize","watchControlAttrs"],"options":["watchOptions"],"disabled":["watchControlAttrs"],"invalid":["watchControlAttrs"],"success":["watchControlAttrs"],"value":["watchValue"]}]]],["p-fca60e04",[[0,"gov-backdrop",{"inverse":[4],"disabled":[1540],"accessibleLabel":[1,"accessible-label"],"accessibleLabelledBy":[1,"accessible-labelledby"],"validateAccessibility":[64]}]]],["p-ed1131cb",[[4,"gov-attachments-item",{"accessibleRemoveLabel":[1,"accessible-remove-label"],"accessibleRemoveLabelledBy":[1,"accessible-remove-labelledby"],"validateAccessibility":[64]}],[4,"gov-attachments",{"label":[1],"wcagLabel":[1,"wcag-label"],"validateWcag":[64]}],[4,"gov-form-message",{"color":[1],"size":[1],"identifier":[64]},null,{"color":["validateColor"]}]]],["p-2c59483f",[[4,"gov-form-input",{"value":[1537],"identifier":[1],"success":[516],"size":[1],"name":[1],"multiline":[4],"rows":[2],"cols":[2],"required":[516],"disabled":[516],"placeholder":[1],"readonly":[4],"minlength":[2],"maxlength":[2],"min":[8],"max":[8],"autocomplete":[4],"autocorrect":[4],"spellcheck":[4],"inputLang":[1,"input-lang"],"type":[1],"inputType":[1,"input-type"],"role":[1],"invalid":[516],"accessibleShowPasswordLabel":[1,"accessible-show-password-label"],"accessibleHidePasswordLabel":[1,"accessible-hide-password-label"],"focused":[32],"showPassword":[32],"inheritedAttributes":[32],"setFocus":[64],"setValue":[64],"clearValue":[64],"getRef":[64]},null,{"size":["validateSize","watchControlAttrs"],"disabled":["watchControlAttrs"],"invalid":["watchControlAttrs"],"success":["watchControlAttrs"]}],[0,"gov-skeleton",{"size":[1],"color":[1],"shape":[1],"width":[1],"height":[1],"animation":[1],"inheritedAttributes":[32]},null,{"size":["validateSize"],"shape":["validateShape"],"animation":["validateAnimation"]}]]]]'),e)}));
1
+ import{p as e,H as i,b as l}from"./p-8506b611.js";export{s as setNonce}from"./p-8506b611.js";import{g as a}from"./p-e1255160.js";var t=()=>{{o(i.prototype)}const l=import.meta.url;const a={};if(l!==""){a.resourcesUrl=new URL(".",l).href}return e(a)};var o=e=>{const i=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return i.call(this,e)}const l=i.call(this,false);const a=this.childNodes;if(e){for(let e=0;e<a.length;e++){if(a[e].nodeType!==2){l.appendChild(a[e].cloneNode(true))}}}return l}};t().then((async e=>{await a();return l(JSON.parse('[["p-432c3875",[[4,"gov-form-file",{"expanded":[4],"required":[4],"disabled":[516],"resetAfterPick":[4,"reset-after-pick"],"ignoreFileDuplicationCheck":[4,"ignore-file-duplication-check"],"displayAttachments":[4,"display-attachments"],"name":[1],"accept":[1],"multiple":[4],"maxFileSize":[2,"max-file-size"],"identifier":[1],"invalid":[4],"errorSize":[1,"error-size"],"errorAccept":[1,"error-accept"],"accessibleRemoveLabel":[1,"accessible-remove-label"],"accessibleAttachmentsLabel":[1,"accessible-attachments-label"],"files":[32],"inheritedAttributes":[32],"getRef":[64],"getAreaRef":[64],"reset":[64]},null,{"disabled":["watchControlAttrs"],"invalid":["watchControlAttrs"]}]]],["p-c916d0d2",[[4,"gov-form-multi-select",{"value":[1537],"options":[1537],"identifier":[1],"placeholder":[1],"size":[1],"name":[1],"hideSelectedList":[4,"hide-selected-list"],"required":[4],"disabled":[516],"invalid":[516],"success":[4],"messageEmpty":[1,"message-empty"],"messageLoading":[1,"message-loading"],"focused":[32],"valueState":[32],"selectedOptionsState":[32],"optionsState":[32],"inheritedAttributes":[32],"setFocus":[64],"setValue":[64],"getRef":[64]},null,{"size":["validateSize"],"options":["watchOptions"],"value":["watchValue"]}]]],["p-5c9e6275",[[4,"gov-dialog",{"open":[1540],"blockClose":[4,"block-close"],"blockBackdropClose":[4,"block-backdrop-close"],"role":[1],"labelTag":[1,"label-tag"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleCloseLabel":[1,"accessible-close-label"],"accessibleCloseLabelledBy":[1,"accessible-close-labelled-by"],"setFocus":[64],"validateAccessibility":[64]},null,{"open":["watchOpen"]}]]],["p-561718cd",[[0,"gov-pagination",{"type":[1],"current":[2],"total":[2],"selectIdentifier":[1,"select-identifier"],"size":[1],"color":[1],"pageSize":[2,"page-size"],"maxPages":[2,"max-pages"],"link":[1],"accessibleSelectLabel":[1,"accessible-select-label"],"accessiblePageLabel":[1,"accessible-page-label"],"labelPrev":[1,"label-prev"],"labelStart":[1,"label-start"],"labelNext":[1,"label-next"],"labelEnd":[1,"label-end"],"pagination":[32],"inheritedAttributes":[32]},null,{"type":["validateType"],"size":["validateSize"],"color":["validateColor"],"current":["recalculate"],"total":["recalculate"],"pageSize":["recalculate"],"maxPages":["recalculate"]}]]],["p-d836fcde",[[4,"gov-breadcrumbs",{"collapsible":[4],"isExpanded":[4,"is-expanded"],"accessibleLabel":[1,"accessible-label"],"accessibleLabelledBy":[1,"accessible-labelledby"],"accessibleToggleLabel":[1,"accessible-toggle-label"],"expanded":[32],"toggleOption":[32],"validateAccessibility":[64]}]]],["p-0fdd8929",[[4,"gov-infobar",{"color":[1],"type":[1],"role":[1],"accessibleCloseLabel":[1,"accessible-close-label"],"accessibleToggleLabel":[1,"accessible-toggle-label"],"closable":[4],"toggleContent":[32],"inheritedAttributes":[32]},null,{"color":["validateColor"]}]]],["p-ea44d447",[[4,"gov-loading",{"size":[1]},null,{"size":["validateSize"]}]]],["p-2739fa61",[[4,"gov-tabs",{"type":[1],"size":[1],"color":[1],"orientation":[1],"direction":[513],"controllers":[32],"focusIndex":[32],"inheritedAttributes":[32],"refresh":[64],"currentTab":[64],"setActiveTab":[64],"rerender":[64]},null,{"type":["validateType"],"color":["validateColor"],"size":["validateSize"]}]]],["p-ccec8019",[[4,"gov-toast",{"color":[1],"gravity":[1],"position":[1],"type":[1],"time":[2],"closeLabel":[1,"close-label"],"accessibleCloseLabel":[1,"accessible-close-label"],"inheritedAttributes":[32],"destroy":[64]},null,{"color":["validateColor"]}]]],["p-d65cef62",[[4,"gov-tooltip-content",{"color":[1],"size":[1],"persist":[4],"isVisible":[1028,"is-visible"],"parentId":[1,"parent-id"]},null,{"isVisible":["visibleContent"]}]]],["p-9fe35463",[[4,"gov-accordion-item",{"identifier":[1],"size":[1025],"disabled":[4],"open":[1028],"openState":[32],"toggle":[64],"currentState":[64]},null,{"size":["validateSize"]}]]],["p-9c2c5447",[[4,"gov-card",{"promotion":[4],"collapsible":[4],"open":[1540],"accessibleTriggerLabel":[1,"accessible-label"],"accessibleTriggerLabelledBy":[1,"accessible-labelledby"],"validateAccessibility":[64]}]]],["p-ed833334",[[4,"gov-form-checkbox",{"value":[1],"checked":[1540],"required":[4],"disabled":[516],"indeterminate":[516],"name":[1],"size":[513],"identifier":[1],"noLabel":[4,"no-label"],"invalid":[4],"inheritedAttributes":[32],"getRef":[64]},null,{"size":["validateSize","watchControlAttrs"],"disabled":["watchControlAttrs"],"invalid":["watchControlAttrs"]}]]],["p-3cb36bae",[[4,"gov-form-switch",{"value":[1],"noLabel":[4,"no-label"],"checked":[1540],"required":[4],"disabled":[516],"name":[1],"size":[513],"identifier":[1],"invalid":[4],"inheritedAttributes":[32],"getRef":[64]},null,{"size":["validateSize","watchDisabled"],"disabled":["watchDisabled"],"invalid":["watchDisabled"]}]]],["p-65e67731",[[4,"gov-link",{"size":[1],"external":[4],"href":[1],"target":[1],"inheritedAttributes":[32]},null,{"size":["validateSize"]}]]],["p-da7f1e11",[[4,"gov-tag",{"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"size":[513],"color":[513],"type":[513]},null,{"color":["validateColor"],"size":["validateSize"]}]]],["p-f4bcf817",[[4,"gov-tile",{"size":[513],"orientation":[1],"noBorder":[4,"no-border"],"href":[513],"target":[1],"getTriggerRef":[64]}]]],["p-b923a8d9",[[4,"gov-wizard-item",{"color":[1],"size":[1],"identifier":[1],"collapsible":[4],"disabled":[4],"isExpanded":[1028,"is-expanded"],"open":[64],"close":[64],"toggle":[64],"currentState":[64]},null,{"color":["validateColor"]}]]],["p-97a9725d",[[4,"gov-accordion",{"size":[1],"noBorder":[4,"no-border"]},null,{"size":["validateSize"]}]]],["p-bdc51179",[[4,"gov-container"]]],["p-6e457b3d",[[4,"gov-control-group",{"color":[1],"noBorder":[4,"no-border"],"fitContent":[4,"fit-content"]},null,{"color":["validateColor"]}]]],["p-5b2131c1",[[4,"gov-cookiebar"]]],["p-f7a4da9d",[[4,"gov-dropdown",{"identifier":[1],"open":[1028],"position":[1],"getState":[64],"toggle":[64]},null,{"open":["watchOpen"]}]]],["p-4b90fbc4",[[4,"gov-empty",{"size":[1]},null,{"size":["validateSize"]}]]],["p-5396935e",[[4,"gov-error-code"]]],["p-6bb37fe2",[[4,"gov-form-checkbox-group",{"gap":[1],"orientation":[1],"value":[1025]},null,{"gap":["validateGap"],"orientation":["validateOrientation"]}]]],["p-535316b4",[[4,"gov-form-control",{"identifier":[1],"invalid":[516],"disabled":[516],"success":[516],"fieldset":[4],"size":[1]}]]],["p-f4dac942",[[4,"gov-form-group",{"gap":[1],"orientation":[1]},null,{"gap":["validateGap"],"orientation":["validateOrientation"]}]]],["p-22fa411d",[[4,"gov-form-password-power",{"power":[514]}]]],["p-1200a32d",[[4,"gov-form-radio",{"value":[1],"noLabel":[4,"no-label"],"checked":[1540],"required":[4],"disabled":[516],"name":[1],"size":[1],"identifier":[1],"invalid":[4],"inheritedAttributes":[32],"getRef":[64]},null,{"size":["validateSize","watchControlAttrs"],"disabled":["watchControlAttrs"],"invalid":["watchControlAttrs"]}]]],["p-e61aa53b",[[4,"gov-form-radio-group",{"gap":[1],"orientation":[1],"value":[1025]},null,{"gap":["validateGap"],"orientation":["validateOrientation"]}]]],["p-019e967c",[[4,"gov-form-search",{"size":[1],"color":[513]}]]],["p-00d153bf",[[4,"gov-grid",{"alignX":[1,"align-x"],"alignY":[1,"align-y"]}]]],["p-bc966c46",[[4,"gov-grid-item",{"size":[1],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]],["p-439b66a5",[[4,"gov-layout",{"type":[1],"variant":[1],"inverse":[4]}]]],["p-30eaeeec",[[4,"gov-layout-column"]]],["p-e834ee73",[[0,"gov-lifecycle"]]],["p-cd2d335d",[[4,"gov-message",{"color":[1],"type":[1]},null,{"color":["validateColor"]}]]],["p-7e04730a",[[0,"gov-spacer",{"size":[1],"breakpoint":[1]},null,{"size":["validateSize"],"breakpoint":["validateBreakpoint"]}]]],["p-bcb45a18",[[4,"gov-stepper",{"size":[1]},null,{"size":["validateSize"]}]]],["p-41c6b262",[[4,"gov-stepper-item",{"color":[1],"size":[1],"identifier":[1]},null,{"color":["validateColor"]}]]],["p-0be19b89",[[4,"gov-tabs-item",{"identifier":[1],"triggerIdentifier":[1,"trigger-identifier"],"label":[513],"disabled":[516],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"default":[4],"isActive":[32],"getIdentifier":[64],"getTriggerIdentifier":[64],"getDisableState":[64],"setActiveStatus":[64]},null,{"label":["rerenderParent"],"disabled":["rerenderParent"]}]]],["p-7b7e502b",[[4,"gov-tiles",{"columns":[514]}]]],["p-04fa0ab5",[[4,"gov-tooltip",{"color":[1],"size":[1],"position":[1025],"message":[1],"identifier":[1],"icon":[516],"persist":[32],"show":[64],"hide":[64]},null,{"color":["validateColor"],"size":["validateSize"],"position":["validatePosition"],"message":["rerenderMessage"]}]]],["p-b7cfe254",[[4,"gov-wizard",{"size":[1],"wcagLabel":[1,"wcag-label"],"wcagLabelledBy":[1,"wcag-labelled-by"],"validateWcag":[64]},null,{"size":["validateSize"]}]]],["p-3f6a2d20",[[0,"gov-theme-switch",{"size":[1],"ariaLabelLight":[1,"aria-label-light"],"ariaLabelDark":[1,"aria-label-dark"],"labelLight":[1,"label-light"],"labelDark":[1,"label-dark"],"theme":[32]},null,{"size":["validateSize"],"theme":["watchTheme"]}],[4,"gov-flex",{"direction":[1],"justifyContent":[513,"justify-content"],"alignItems":[513,"align-items"],"wrap":[513],"alignContent":[513,"align-content"],"alignSelf":[513,"align-self"]}],[4,"gov-form-label",{"identifier":[1],"size":[1],"required":[4],"legend":[4]}],[0,"gov-icon",{"size":[513],"color":[513],"name":[513],"type":[513],"visible":[32],"error":[32]},null,{"size":["validateSize"],"color":["validateColor"],"name":["loadIconPathData"]}]]],["p-dea64896",[[4,"gov-button",{"color":[513],"size":[513],"type":[513],"expanded":[516],"name":[1],"disabled":[516],"nativeType":[1,"native-type"],"href":[1],"target":[1],"download":[4],"hreflang":[1],"referrerpolicy":[1],"rel":[1],"loading":[1],"focusable":[4],"identifier":[1],"inheritedAttributes":[32],"setFocus":[64],"getRef":[64],"validateAccessibility":[64]},null,{"color":["validateColor"],"type":["validateType"],"size":["validateSize"],"nativeType":["validateNativeType"]}]]],["p-ed8fc183",[[4,"gov-form-autocomplete",{"value":[1537],"options":[1537],"identifier":[1],"success":[4],"size":[1],"nameKey":[1,"name-key"],"name":[1],"required":[4],"disabled":[516],"placeholder":[1],"readonly":[4],"invalid":[4],"minlength":[2],"maxlength":[2],"throttleTime":[2,"throttle-time"],"messageEmpty":[1,"message-empty"],"focused":[32],"processing":[32],"arrowCounter":[32],"list":[32],"inheritedAttributes":[32],"setFocus":[64],"setBlur":[64],"setOptions":[64],"clearValue":[64],"setProcessing":[64],"setSearchCallback":[64],"setTemplateResolver":[64]},null,{"size":["validateSize"],"options":["watchOptions"]}]]],["p-72130a8f",[[4,"gov-chip",{"disabled":[516],"href":[1],"target":[1],"iconStart":[1,"icon-start"],"iconEnd":[1,"icon-end"],"size":[1],"tag":[1],"color":[1],"type":[513],"focusable":[4],"identifier":[1],"inheritedAttributes":[32],"geRef":[64],"setFocus":[64]},null,{"color":["validateColor"],"size":["validateSize"]}]]],["p-3d6edb09",[[4,"gov-form-select",{"value":[1537],"options":[1537],"identifier":[1],"size":[1],"name":[1],"required":[4],"success":[516],"disabled":[516],"invalid":[4],"focused":[32],"optionsState":[32],"inheritedAttributes":[32],"setFocus":[64],"getRef":[64]},null,{"size":["validateSize","watchControlAttrs"],"options":["watchOptions"],"disabled":["watchControlAttrs"],"invalid":["watchControlAttrs"],"success":["watchControlAttrs"],"value":["watchValue"]}]]],["p-c054f955",[[0,"gov-backdrop",{"inverse":[4],"disabled":[1540],"accessibleLabel":[1,"accessible-label"],"accessibleLabelledBy":[1,"accessible-labelledby"],"validateAccessibility":[64]}]]],["p-56dc370d",[[4,"gov-attachments-item",{"accessibleRemoveLabel":[1,"accessible-remove-label"],"accessibleRemoveLabelledBy":[1,"accessible-remove-labelledby"],"validateAccessibility":[64]}],[4,"gov-attachments",{"label":[1],"wcagLabel":[1,"wcag-label"],"validateWcag":[64]}],[4,"gov-form-message",{"color":[1],"size":[1],"identifier":[64]},null,{"color":["validateColor"]}]]],["p-4c5f6299",[[4,"gov-form-input",{"value":[1537],"identifier":[1],"success":[516],"size":[1],"name":[1],"multiline":[4],"rows":[2],"cols":[2],"required":[516],"disabled":[516],"placeholder":[1],"readonly":[4],"minlength":[2],"maxlength":[2],"min":[8],"max":[8],"autocomplete":[4],"autocorrect":[4],"spellcheck":[4],"inputLang":[1,"input-lang"],"type":[1],"inputType":[1,"input-type"],"role":[1],"invalid":[516],"accessibleShowPasswordLabel":[1,"accessible-show-password-label"],"accessibleHidePasswordLabel":[1,"accessible-hide-password-label"],"focused":[32],"showPassword":[32],"inheritedAttributes":[32],"setFocus":[64],"setValue":[64],"clearValue":[64],"getRef":[64]},null,{"size":["validateSize","watchControlAttrs"],"disabled":["watchControlAttrs"],"invalid":["watchControlAttrs"],"success":["watchControlAttrs"]}],[0,"gov-skeleton",{"size":[1],"color":[1],"shape":[1],"width":[1],"height":[1],"animation":[1],"inheritedAttributes":[32]},null,{"size":["validateSize"],"shape":["validateShape"],"animation":["validateAnimation"]}]]]]'),e)}));
2
2
  //# sourceMappingURL=core.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","patchCloneNodeFix","H","prototype","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","HTMLElementPrototype","nativeCloneNodeFn","cloneNode","deep","this","nodeName","call","clonedNode","srcChildNodes","childNodes","i","length","nodeType","appendChild","then","async","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["../../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"iIAOA,IAAIA,EAAe,KAIO,CACtBC,EAAkBC,EAAEC,UACxB,CAIE,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EAE7B,IAAIL,EAAqBU,IACvB,MAAMC,EAAoBD,EAAqBE,UAC/CF,EAAqBE,UAAY,SAASC,GACxC,GAAIC,KAAKC,WAAa,WAAY,CAChC,OAAOJ,EAAkBK,KAAKF,KAAMD,EAC1C,CACI,MAAMI,EAAaN,EAAkBK,KAAKF,KAAM,OAChD,MAAMI,EAAgBJ,KAAKK,WAC3B,GAAIN,EAAM,CACR,IAAK,IAAIO,EAAI,EAAGA,EAAIF,EAAcG,OAAQD,IAAK,CAC7C,GAAIF,EAAcE,GAAGE,WAAa,EAAG,CACnCL,EAAWM,YAAYL,EAAcE,GAAGR,UAAU,MAC5D,CACA,CACA,CACI,OAAOK,CACX,CAAG,ECpCHlB,IAAeyB,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAcC,KAAAC,MAAA,kwZAAuCJ,EAAA","ignoreList":[]}
1
+ {"version":3,"names":["patchBrowser","patchCloneNodeFix","H","prototype","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","HTMLElementPrototype","nativeCloneNodeFn","cloneNode","deep","this","nodeName","call","clonedNode","srcChildNodes","childNodes","i","length","nodeType","appendChild","then","async","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["../../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"iIAOA,IAAIA,EAAe,KAIO,CACtBC,EAAkBC,EAAEC,UACxB,CAIE,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACrBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACjD,CACE,OAAOC,EAAeJ,EAAK,EAE7B,IAAIL,EAAqBU,IACvB,MAAMC,EAAoBD,EAAqBE,UAC/CF,EAAqBE,UAAY,SAASC,GACxC,GAAIC,KAAKC,WAAa,WAAY,CAChC,OAAOJ,EAAkBK,KAAKF,KAAMD,EAC1C,CACI,MAAMI,EAAaN,EAAkBK,KAAKF,KAAM,OAChD,MAAMI,EAAgBJ,KAAKK,WAC3B,GAAIN,EAAM,CACR,IAAK,IAAIO,EAAI,EAAGA,EAAIF,EAAcG,OAAQD,IAAK,CAC7C,GAAIF,EAAcE,GAAGE,WAAa,EAAG,CACnCL,EAAWM,YAAYL,EAAcE,GAAGR,UAAU,MAC5D,CACA,CACA,CACI,OAAOK,CACX,CAAG,ECpCHlB,IAAeyB,MAAKC,MAAOC,UACnBC,IACN,OAAOC,EAAcC,KAAAC,MAAA,sxZAAuCJ,EAAA","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,h as i,a as s,g as e}from"./p-8506b611.js";import{v as h}from"./p-a2435993.js";import{T as o,a as n,b as a,c as r,d as c}from"./p-76d604c6.js";import{c as d}from"./p-cd6c2938.js";import{g as f}from"./p-ea7fdd2e.js";import{d as l}from"./p-20c2203a.js";import{t as p}from"./p-26618322.js";import"./p-5aad3497.js";import"./p-92f420cb.js";import"./p-e0e2e9c1.js";const m=class{constructor(i){t(this,i);this.tooltipContentId=undefined;this.tooltipId=undefined;this.color=o.PRIMARY;this.size=n._M;this.position="right";this.message=undefined;this.identifier=undefined;this.icon=undefined;this.persist=false;this.h=f(this.host);this.tooltipId=d("GovTooltip");this.tooltipContentId=d("GovContentTooltip")}validateColor(t){h(o,t,c.root)}validateSize(t){h(n,t,c.root)}validatePosition(t){h(r,t,c.root)}rerenderMessage(){this.createContentWrapper()}connectedCallback(){this.createContentWrapper();this.registerListeners()}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.validatePosition(this.position)}componentDidUpdate(){this.createContentWrapper()}disconnectedCallback(){this.removeContent()}createContentWrapper(){var t;if(this.tooltipContent){if(this.message){this.tooltipContent.innerHTML=this.message}else if(this.insideContent){this.tooltipContent.innerHTML=this.insideContent.innerHTML}return}let i;if(this.insideContent){i=this.insideContent}else{i=l().createElement(a.root);i.innerHTML=this.message}i.setAttribute("id",(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId);i.setAttribute("parent-id",this.tooltipId);i.setAttribute("color",this.color);i.setAttribute("size",this.size);l().body.appendChild(i)}get tooltipContent(){var t;return l().body.querySelector(`#${(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId}`)}get insideContent(){return this.host.querySelector(a.root)}registerListeners(){this.host.addEventListener("click",(t=>{t.preventDefault();this.persist=true;if(this.tooltipContent){this.tooltipContent.setAttribute("persist","true")}this.showTooltip()}));this.host.addEventListener("mouseenter",(t=>{t.preventDefault();this.showTooltip()}));this.host.addEventListener("mouseleave",(t=>{t.preventDefault();if(this.persist===false){this.hideTooltip()}}))}verifyPositionSpace(){const t=12;const i=window.innerWidth-(window.innerWidth-document.documentElement.clientWidth);const s=this.host.getBoundingClientRect();const e=this.host.offsetWidth;const h=this.host.offsetHeight;const o=this.tooltipContent.offsetWidth;const n=this.tooltipContent.offsetHeight;const a={left:s.left+document.documentElement.scrollLeft,top:s.top+document.documentElement.scrollTop};const c=a.left+t+s.width+o<=i;const d=a.left>o;if(this.position===r.LEFT||this.position===r.RIGHT){this.tooltipContent.style.top=a.top-(n-h)/2+"px";if(c===false&&d===false){this.position=r.TOP;this.tooltipContent.setAttribute("position",r.TOP)}if(d&&c===false&&this.position===r.RIGHT){this.position=r.LEFT}if(c&&d===false&&this.position===r.LEFT){this.position=r.RIGHT}}if(this.position===r.RIGHT){this.tooltipContent.setAttribute("position",r.RIGHT);this.tooltipContent.style.left=a.left+t+s.width+"px"}if(this.position===r.LEFT){this.tooltipContent.setAttribute("position",r.LEFT);this.tooltipContent.style.left=a.left-(o+t)+"px"}if(this.position===r.TOP||this.position===r.BOTTOM){if(o>e){let s=a.left-(o-e)/2;const h=s<0;const n=s+o>i;if(h&&n){this.tooltipContent.style.width="auto";this.tooltipContent.style.left=t+"px";this.tooltipContent.style.right=t+"px"}else{if(h){s=t}if(n){s=s-(i-(s+o+t))*-1}this.tooltipContent.style.left=s+"px"}}else{const t=a.left+(e-o)/2;this.tooltipContent.style.left=t+"px"}}if(this.position===r.TOP){this.tooltipContent.setAttribute("position",r.TOP);this.tooltipContent.style.top=a.top-(n+t)+"px"}if(this.position===r.BOTTOM){this.tooltipContent.setAttribute("position",r.BOTTOM);this.tooltipContent.style.top=a.top+(h+t)+"px"}this.tooltipContent.style.opacity="1"}showTooltip(){if(this.tooltipContent){this.tooltipContent.style.opacity="0";this.tooltipContent.hidden=false;this.tooltipContent.setAttribute("is-visible","true");p((()=>{this.verifyPositionSpace()}))}}hideTooltip(){if(this.tooltipContent){this.tooltipContent.setAttribute("is-visible","false");this.tooltipContent.setAttribute("persist","false");this.tooltipContent.removeAttribute("style")}}removeContent(){const t=document.getElementById(this.tooltipContentId);if(t){t.remove()}}render(){var t;return i(s,{key:"bc4cfa206b2e4060ca6070f0d4796df1a5df1bfc",id:this.tooltipId,class:this.h.classes(c.root),position:this.position},i("span",{key:"8ce3bf37e9ab13190c476db7cf47b7d0319719fe",role:"button",tabindex:0,onKeyPress:()=>this.showTooltip(),onBlur:()=>{if(this.persist===false){this.hideTooltip()}},"aria-describedby":(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId},i("slot",{key:"c622fcd797a2c0dd303395d2d6391fbc747e4d18"})))}async show(){this.showTooltip()}async hide(){this.persist=false;this.hideTooltip()}get host(){return e(this)}static get watchers(){return{color:["validateColor"],size:["validateSize"],position:["validatePosition"],message:["rerenderMessage"]}}};export{m as gov_tooltip};
2
- //# sourceMappingURL=p-3fc3c26b.entry.js.map
1
+ import{r as t,h as i,a as s,g as e}from"./p-8506b611.js";import{v as h}from"./p-0b3574c2.js";import{T as o,a as n,b as a,c as r,d as c}from"./p-76d604c6.js";import{c as d}from"./p-cd6c2938.js";import{g as f}from"./p-ea7fdd2e.js";import{d as l}from"./p-e8ec030e.js";import{t as p}from"./p-26618322.js";import"./p-5aad3497.js";import"./p-92f420cb.js";import"./p-e0e2e9c1.js";const m=class{constructor(i){t(this,i);this.tooltipContentId=undefined;this.tooltipId=undefined;this.color=o.PRIMARY;this.size=n._M;this.position="right";this.message=undefined;this.identifier=undefined;this.icon=undefined;this.persist=false;this.h=f(this.host);this.tooltipId=d("GovTooltip");this.tooltipContentId=d("GovContentTooltip")}validateColor(t){h(o,t,c.root)}validateSize(t){h(n,t,c.root)}validatePosition(t){h(r,t,c.root)}rerenderMessage(){this.createContentWrapper()}connectedCallback(){this.createContentWrapper();this.registerListeners()}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.validatePosition(this.position)}componentDidUpdate(){this.createContentWrapper()}disconnectedCallback(){this.removeContent()}createContentWrapper(){var t;if(this.tooltipContent){if(this.message){this.tooltipContent.innerHTML=this.message}else if(this.insideContent){this.tooltipContent.innerHTML=this.insideContent.innerHTML}return}let i;if(this.insideContent){i=this.insideContent}else{i=l().createElement(a.root);i.innerHTML=this.message}i.setAttribute("id",(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId);i.setAttribute("parent-id",this.tooltipId);i.setAttribute("color",this.color);i.setAttribute("size",this.size);l().body.appendChild(i)}get tooltipContent(){var t;return l().body.querySelector(`#${(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId}`)}get insideContent(){return this.host.querySelector(a.root)}registerListeners(){this.host.addEventListener("click",(t=>{t.preventDefault();this.persist=true;if(this.tooltipContent){this.tooltipContent.setAttribute("persist","true")}this.showTooltip()}));this.host.addEventListener("mouseenter",(t=>{t.preventDefault();this.showTooltip()}));this.host.addEventListener("mouseleave",(t=>{t.preventDefault();if(this.persist===false){this.hideTooltip()}}))}verifyPositionSpace(){const t=12;const i=window.innerWidth-(window.innerWidth-document.documentElement.clientWidth);const s=this.host.getBoundingClientRect();const e=this.host.offsetWidth;const h=this.host.offsetHeight;const o=this.tooltipContent.offsetWidth;const n=this.tooltipContent.offsetHeight;const a={left:s.left+document.documentElement.scrollLeft,top:s.top+document.documentElement.scrollTop};const c=a.left+t+s.width+o<=i;const d=a.left>o;if(this.position===r.LEFT||this.position===r.RIGHT){this.tooltipContent.style.top=a.top-(n-h)/2+"px";if(c===false&&d===false){this.position=r.TOP;this.tooltipContent.setAttribute("position",r.TOP)}if(d&&c===false&&this.position===r.RIGHT){this.position=r.LEFT}if(c&&d===false&&this.position===r.LEFT){this.position=r.RIGHT}}if(this.position===r.RIGHT){this.tooltipContent.setAttribute("position",r.RIGHT);this.tooltipContent.style.left=a.left+t+s.width+"px"}if(this.position===r.LEFT){this.tooltipContent.setAttribute("position",r.LEFT);this.tooltipContent.style.left=a.left-(o+t)+"px"}if(this.position===r.TOP||this.position===r.BOTTOM){if(o>e){let s=a.left-(o-e)/2;const h=s<0;const n=s+o>i;if(h&&n){this.tooltipContent.style.width="auto";this.tooltipContent.style.left=t+"px";this.tooltipContent.style.right=t+"px"}else{if(h){s=t}if(n){s=s-(i-(s+o+t))*-1}this.tooltipContent.style.left=s+"px"}}else{const t=a.left+(e-o)/2;this.tooltipContent.style.left=t+"px"}}if(this.position===r.TOP){this.tooltipContent.setAttribute("position",r.TOP);this.tooltipContent.style.top=a.top-(n+t)+"px"}if(this.position===r.BOTTOM){this.tooltipContent.setAttribute("position",r.BOTTOM);this.tooltipContent.style.top=a.top+(h+t)+"px"}this.tooltipContent.style.opacity="1"}showTooltip(){if(this.tooltipContent){this.tooltipContent.style.opacity="0";this.tooltipContent.hidden=false;this.tooltipContent.setAttribute("is-visible","true");p((()=>{this.verifyPositionSpace()}))}}hideTooltip(){if(this.tooltipContent){this.tooltipContent.setAttribute("is-visible","false");this.tooltipContent.setAttribute("persist","false");this.tooltipContent.removeAttribute("style")}}removeContent(){const t=document.getElementById(this.tooltipContentId);if(t){t.remove()}}render(){var t;return i(s,{key:"bc4cfa206b2e4060ca6070f0d4796df1a5df1bfc",id:this.tooltipId,class:this.h.classes(c.root),position:this.position},i("span",{key:"8ce3bf37e9ab13190c476db7cf47b7d0319719fe",role:"button",tabindex:0,onKeyPress:()=>this.showTooltip(),onBlur:()=>{if(this.persist===false){this.hideTooltip()}},"aria-describedby":(t=this.identifier)!==null&&t!==void 0?t:this.tooltipContentId},i("slot",{key:"c622fcd797a2c0dd303395d2d6391fbc747e4d18"})))}async show(){this.showTooltip()}async hide(){this.persist=false;this.hideTooltip()}get host(){return e(this)}static get watchers(){return{color:["validateColor"],size:["validateSize"],position:["validatePosition"],message:["rerenderMessage"]}}};export{m as gov_tooltip};
2
+ //# sourceMappingURL=p-04fa0ab5.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{g as e}from"./p-e8ec030e.js";const a=(a,t,r)=>{const s=Object.values(a);const o=s.indexOf(t)>-1;if(!o){e(`[${r}]: Bad parameter with value (${t}). Available parameters are (${s.join(", ")}).`)}};export{a as v};
2
+ //# sourceMappingURL=p-0b3574c2.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as s,h as o,a as i,g as e}from"./p-8506b611.js";import{g as a,c as n}from"./p-ea7fdd2e.js";import{F as c}from"./p-1c1d0bbe.js";import{v as r}from"./p-a2435993.js";import{C as h}from"./p-5aad3497.js";import{p as l}from"./p-e0e2e9c1.js";import{A as d,a as f}from"./p-9ac55bd1.js";import{i as b}from"./p-d9a299a4.js";import"./p-20c2203a.js";const p=l(h,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var m;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(m||(m={}));const v={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const g=class{constructor(o){t(this,o);this.govClose=s(this,"gov-close",7);this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){r(p,t,v.root)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(f)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=b(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=o("gov-button",{key:"4569d98296984f33ff83947f92a95a0a3bf0d3e3",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:v.close},o("gov-icon",{key:"aafcdbde7ca0e13d9e733036da6cc6085143966d",name:"x-lg",type:"components"}));return o(i,{key:"9b558a0c786862d032ed6fb5d274fc0c3cdae617",class:this.h.classes(v.root),color:this.color,type:this.type},o("section",Object.assign({key:"9bded4750afdfef6ace0e5a39be2d6283b30d725",class:v.section},this.inheritedAttributes,{role:this.role}),o("slot",{key:"011f9d52f9f971a560fd0220be40b5a221a5f4b3",name:"icon"}),o("div",{key:"d613d4ab22f89da935fe60b866ea262802c5d18f",class:v.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:v.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:v.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return e(this)}static get watchers(){return{color:["validateColor"]}}};export{g as gov_infobar};
2
- //# sourceMappingURL=p-7d6073aa.entry.js.map
1
+ import{r as t,c as s,h as o,a as i,g as e}from"./p-8506b611.js";import{g as a,c as n}from"./p-ea7fdd2e.js";import{F as c}from"./p-1c1d0bbe.js";import{v as r}from"./p-0b3574c2.js";import{C as h}from"./p-5aad3497.js";import{p as l}from"./p-e0e2e9c1.js";import{A as d,a as f}from"./p-9ac55bd1.js";import{i as b}from"./p-d9a299a4.js";import"./p-e8ec030e.js";const p=l(h,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var m;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(m||(m={}));const v={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const g=class{constructor(o){t(this,o);this.govClose=s(this,"gov-close",7);this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){r(p,t,v.root)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(f)}componentWillLoad(){this.validateColor(this.color);this.inheritedAttributes=b(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=o("gov-button",{key:"4569d98296984f33ff83947f92a95a0a3bf0d3e3",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:v.close},o("gov-icon",{key:"aafcdbde7ca0e13d9e733036da6cc6085143966d",name:"x-lg",type:"components"}));return o(i,{key:"9b558a0c786862d032ed6fb5d274fc0c3cdae617",class:this.h.classes(v.root),color:this.color,type:this.type},o("section",Object.assign({key:"9bded4750afdfef6ace0e5a39be2d6283b30d725",class:v.section},this.inheritedAttributes,{role:this.role}),o("slot",{key:"011f9d52f9f971a560fd0220be40b5a221a5f4b3",name:"icon"}),o("div",{key:"d613d4ab22f89da935fe60b866ea262802c5d18f",class:v.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:v.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:v.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return e(this)}static get watchers(){return{color:["validateColor"]}}};export{g as gov_infobar};
2
+ //# sourceMappingURL=p-0fdd8929.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as s,h as i,a as e,g as h}from"./p-8506b611.js";import{c as a}from"./p-cd6c2938.js";import{v as r}from"./p-a2435993.js";import{g as o,e as n,f as d}from"./p-da1db6fd.js";import{g as c,c as l,t as p}from"./p-ea7fdd2e.js";import{F as m}from"./p-1c1d0bbe.js";import{A as f,a as u}from"./p-9ac55bd1.js";import{i as b}from"./p-d9a299a4.js";import"./p-20c2203a.js";import"./p-e0e2e9c1.js";import"./p-92f420cb.js";import"./p-7f3becc5.js";import"./p-5aad3497.js";import"./p-56efd4a2.js";import"./p-7ba4daf4.js";const v=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus",7);this.govBlur=s(this,"gov-blur",7);this.govChange=s(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.inheritedAttributes={};this.radioId=a("GovRadio");this.h=c(this.host);this.f=o(this.h)}validateSize(t){r(d,t,n.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("type","radio")}componentWillLoad(){this.inheritedAttributes=b(this.host)}componentDidLoad(){this.attributeObserver=new f(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(u)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.radioId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=t=>{if(this.noLabel){return i("label",{class:n.label},t)}return t};return i(e,{class:n.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:p(this.invalid)},t(i(m,null,i("input",Object.assign({class:n.input,id:this.identifier||this.radioId,type:"radio",value:this.value,name:this.name,checked:this.checked,disabled:this.disabled,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:t=>this.inputRef=t,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":p(this.required),"aria-invalid":p(this.invalid),"aria-disabled":p(this.disabled)})),i("span",null,i("slot",{name:"label"})))))}onClickHandler(t){t.stopPropagation()}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return h(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}};export{v as gov_form_radio};
2
- //# sourceMappingURL=p-783a6b5b.entry.js.map
1
+ import{r as t,c as s,h as i,a as e,g as h}from"./p-8506b611.js";import{c as a}from"./p-cd6c2938.js";import{v as r}from"./p-0b3574c2.js";import{g as o,e as n,f as d}from"./p-da1db6fd.js";import{g as c,c as l,t as p}from"./p-ea7fdd2e.js";import{F as m}from"./p-1c1d0bbe.js";import{A as f,a as u}from"./p-9ac55bd1.js";import{i as b}from"./p-d9a299a4.js";import"./p-e8ec030e.js";import"./p-e0e2e9c1.js";import"./p-92f420cb.js";import"./p-7f3becc5.js";import"./p-5aad3497.js";import"./p-56efd4a2.js";import"./p-7ba4daf4.js";const v=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus",7);this.govBlur=s(this,"gov-blur",7);this.govChange=s(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.inheritedAttributes={};this.radioId=a("GovRadio");this.h=c(this.host);this.f=o(this.h)}validateSize(t){r(d,t,n.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("type","radio")}componentWillLoad(){this.inheritedAttributes=b(this.host)}componentDidLoad(){this.attributeObserver=new f(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(u)}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.radioId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=t=>{if(this.noLabel){return i("label",{class:n.label},t)}return t};return i(e,{class:n.root,hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:p(this.invalid)},t(i(m,null,i("input",Object.assign({class:n.input,id:this.identifier||this.radioId,type:"radio",value:this.value,name:this.name,checked:this.checked,disabled:this.disabled,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:t=>this.inputRef=t,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":p(this.required),"aria-invalid":p(this.invalid),"aria-disabled":p(this.disabled)})),i("span",null,i("slot",{name:"label"})))))}onClickHandler(t){t.stopPropagation()}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}onChangeHandler(t){this.checked=t.target.checked;t.stopPropagation();this.govChange.emit({component:n.root,value:this.value,checked:this.checked,originalEvent:t})}async getRef(){return this.inputRef}get host(){return h(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"]}}};export{v as gov_form_radio};
2
+ //# sourceMappingURL=p-1200a32d.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovFormRadio","constructor","hostRef","this","hydrated","radioId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormRadioSizes","FormRadioClass","root","watchControlAttrs","passControlAttrs","passAttrToControl","size","toBoolAttr","invalid","disabled","componentWillLoad","inheritedAttributes","inheritAriaAttributes","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentDidRender","passAttrToLabel","identifier","String","required","connectedCallback","disconnectedCallback","stopObserving","removeAttribute","Object","assign","render","wrapRadio","children","noLabel","class","label","Host","checked","toBoolAttrIfDefined","Fragment","input","id","type","value","name","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef"],"sources":["../../../packages/core/src/components/gov-form/radio/gov-form-radio.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormRadioClass, FormRadioSizes, FormRadioSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormRadioEvent} from \"./gov-form-radio.types\"\nimport {AttributeObserver, Attributes} from \"../../../helpers/Dom/attribute\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\nimport {ariaAttributes} from \"../../../helpers/Accessibility/attributes\";\n\n@Component({\n\ttag: \"gov-form-radio\",\n})\nexport class GovFormRadio {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly radioId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.radioId = createID(\"GovRadio\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormRadioElement\n\t/**\n\t * Value of radio\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Radio button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t * When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the radio component disabled.\n\t * This prevents users from being able to interact with the radio, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the radio.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Radio's size.\n\t */\n\t@Prop() readonly size?: FormRadioSizesType = \"m\"\n\t/**\n\t * Custom radio identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the radio has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormRadioEvent>\n\t/**\n\t * Emitted when the radio loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormRadioEvent>\n\t/**\n\t * Emitted when the radio change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormRadioEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormRadioSizes, newValue, FormRadioClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchControlAttrs(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"radio\")\n\t}\n\n\n\tcomponentWillLoad() {\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.attributeObserver = new AttributeObserver(this.host, (attributeName, newValue) => {\n\t\t\tthis.onAriaAttributeChange(attributeName, newValue);\n\t\t});\n\n\t\tthis.attributeObserver.startObserving(ariaAttributes);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.radioId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tonAriaAttributeChange(attributeName: string, newValue: string) {\n\t\tthis.host.removeAttribute(attributeName)\n\t\tthis.inheritedAttributes = {...this.inheritedAttributes, [attributeName]: newValue};\n\t}\n\n\trender() {\n\t\tconst wrapRadio = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn <label class={FormRadioClass.label}>{children}</label>\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={FormRadioClass.root} hydrated={this.hydrated} checked={this.checked} size={this.size}\n\t\t\t\t invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapRadio(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormRadioClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.radioId}\n\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<slot name=\"label\"/>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: PointerEvent) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormRadioClass.root,\n\t\t\tvalue: this.value,\n\t\t\tchecked: this.checked,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"mappings":"6gBAiBaA,EAAY,MASxB,WAAAC,CAAAC,G,sHAFQC,KAAAC,SAAW,M,kCAiBwC,M,aAIX,M,cAKX,M,cAKe,M,8BAQP,I,0EAkCF,GAtE1CD,KAAKE,QAAUC,EAAS,YAExBH,KAAKI,EAAIC,EAAQL,KAAKM,MACtBN,KAAKO,EAAIC,EAAQR,KAAKI,E,CAwDvB,YAAAK,CAAaC,GACZC,EAAaC,EAAgBF,EAAUG,EAAeC,K,CAMvD,iBAAAC,GACCf,KAAKgB,kB,CAKE,gBAAAA,GACPhB,KAAKO,EAAEU,kBAAkB,OAAQjB,KAAKkB,MACtClB,KAAKO,EAAEU,kBAAkB,UAAWE,EAAWnB,KAAKoB,UACpDpB,KAAKO,EAAEU,kBAAkB,WAAYE,EAAWnB,KAAKqB,WACrDrB,KAAKO,EAAEU,kBAAkB,OAAQ,Q,CAIlC,iBAAAK,GACCtB,KAAKuB,oBAAsBC,EAAsBxB,KAAKM,K,CAGvD,gBAAAmB,GACCzB,KAAK0B,kBAAoB,IAAIC,EAAkB3B,KAAKM,MAAM,CAACsB,EAAelB,KACzEV,KAAK6B,sBAAsBD,EAAelB,EAAS,IAGpDV,KAAK0B,kBAAkBI,eAAeC,E,CAGvC,wBAAMC,GACLhC,KAAKO,EAAE0B,gBAAgB,aAAcjC,KAAKkC,YAAclC,KAAKE,SAC7DF,KAAKO,EAAE0B,gBAAgB,WAAYE,OAAOnC,KAAKoC,WAC/CpC,KAAKgB,kB,CAGN,iBAAAqB,GACCrC,KAAKC,SAAW,I,CAGjB,oBAAAqC,GACCtC,KAAK0B,kBAAkBa,e,CAGxB,qBAAAV,CAAsBD,EAAuBlB,GAC5CV,KAAKM,KAAKkC,gBAAgBZ,GAC1B5B,KAAKuB,oBAAmBkB,OAAAC,OAAAD,OAAAC,OAAA,GAAO1C,KAAKuB,qBAAmB,CAAEK,CAACA,GAAgBlB,G,CAG3E,MAAAiC,GACC,MAAMC,EAAaC,IAClB,GAAI7C,KAAK8C,QAAS,CACjB,OAAO1C,EAAA,SAAO2C,MAAOlC,EAAemC,OAAQH,E,CAE7C,OAAOA,CAAQ,EAGhB,OACCzC,EAAC6C,EAAI,CAACF,MAAOlC,EAAeC,KAAMb,SAAUD,KAAKC,SAAUiD,QAASlD,KAAKkD,QAAShC,KAAMlB,KAAKkB,KAC1FE,QAAS+B,EAAoBnD,KAAKoB,UACnCwB,EACAxC,EAACgD,EAAQ,KACRhD,EAAA,QAAAqC,OAAAC,OAAA,CACCK,MAAOlC,EAAewC,MACtBC,GAAItD,KAAKkC,YAAclC,KAAKE,QAC5BqD,KAAK,QACLC,MAAOxD,KAAKwD,MACZC,KAAMzD,KAAKyD,KACXP,QAASlD,KAAKkD,QACd7B,SAAUrB,KAAKqB,SACfqC,QAAS1D,KAAK2D,eAAeC,KAAK5D,MAClC6D,SAAU7D,KAAK8D,gBAAgBF,KAAK5D,MACpC+D,QAAS/D,KAAKgE,eAAeJ,KAAK5D,MAClCiE,OAAQjE,KAAKkE,cAAcN,KAAK5D,MAChCmE,IAAKC,GAAOpE,KAAKqE,SAAWD,EAC5BhC,SAAUpC,KAAKoC,UACXpC,KAAKuB,oBAAmB,gBACdvB,KAAKkD,QAAO,gBACXC,EAAoBnD,KAAKoC,UAAS,eACnCe,EAAoBnD,KAAKoB,SAAQ,gBAChC+B,EAAoBnD,KAAKqB,aAEzCjB,EAAA,YACCA,EAAA,QAAMqD,KAAK,a,CAQT,cAAAE,CAAeW,GACtBA,EAAEC,iB,CAGK,cAAAP,CAAeM,GACtBA,EAAEC,kBACFvE,KAAKwE,SAASC,KAAK,CAClBC,UAAW7D,EAAeC,KAC1B0C,MAAOxD,KAAKwD,MACZN,QAASlD,KAAKkD,QACdyB,cAAeL,G,CAIT,aAAAJ,CAAcI,GACrBA,EAAEC,kBACFvE,KAAK4E,QAAQH,KAAK,CACjBC,UAAW7D,EAAeC,KAC1B0C,MAAOxD,KAAKwD,MACZN,QAASlD,KAAKkD,QACdyB,cAAeL,G,CAIT,eAAAR,CAAgBQ,GACvBtE,KAAKkD,QAAWoB,EAAEO,OAA4B3B,QAC9CoB,EAAEC,kBACFvE,KAAK8E,UAAUL,KAAK,CACnBC,UAAW7D,EAAeC,KAC1B0C,MAAOxD,KAAKwD,MACZN,QAASlD,KAAKkD,QACdyB,cAAeL,G,CAQjB,YAAMS,GACL,OAAO/E,KAAKqE,Q","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,c as s,h as i,a as e,g as a}from"./p-8506b611.js";import{v as h}from"./p-a2435993.js";import{T as o,a as r,b as n,c,d as l}from"./p-860520b0.js";import{g as d,c as f,b}from"./p-ea7fdd2e.js";import{h as p}from"./p-2aedc81e.js";import{p as m}from"./p-016bbea6.js";import{A as u,a as y}from"./p-9ac55bd1.js";import{i as g}from"./p-d9a299a4.js";import"./p-20c2203a.js";import"./p-e0e2e9c1.js";import"./p-92f420cb.js";import"./p-5aad3497.js";const v=class{constructor(i){t(this,i);this.govChange=s(this,"gov-change",7);this.triggerRefs={};this.type="text";this.size="m";this.color="primary";this.orientation="horizontal";this.direction="row";this.controllers=[];this.focusIndex=0;this.inheritedAttributes={};this.h=d(this.host)}validateType(t){h(n,t,r.root)}validateColor(t){h(c,t,r.root)}validateSize(t){h(l,t,r.root)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(y)}componentWillLoad(){this.prepareControllers();this.validateSize(this.size);this.inheritedAttributes=g(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}prepareControllers(t=false){this.controllers=[];const s=[];this.host.querySelectorAll(o.root).forEach((t=>{const i=Promise.all([t.getIdentifier(),t.getTriggerIdentifier(),t.getDisableState()]).then((([s,i,e])=>{const a=typeof t.getAttribute("default")==="string";const h=m(t.getAttribute("icon-start"));const o=m(t.getAttribute("icon-end"));return{label:t.getAttribute("label"),direction:t.getAttribute("direction"),contentIdentifier:s,disabled:e,triggerIdentifier:i,element:t,active:false,default:a,iconStart:h,iconEnd:o}}));s.push(i)}));Promise.all(s).then((s=>{if(t===false){let t=s.findIndex((t=>t.default));if(t===-1)t=0;this.focusIndex=t;s[t].active=true}else if(this.focusIndex>-1&&p(s,this.focusIndex)){s[this.focusIndex].active=true}const i=s.findIndex((t=>t.active&&t.disabled));if(i>-1){s[i].active=false;const t=s.findIndex((t=>!t.disabled));if(t>-1){s[t].active=true;this.focusIndex=t}}this.controllers=[...s];this.reRender()}))}setActiveByIdentifier(t){const s=[];this.controllers.map((i=>{i.active=t===i.triggerIdentifier||t===i.contentIdentifier;s.push(i)}));this.controllers=[...s]}reRender(){this.controllers.map((t=>{t.element.setActiveStatus(t.active).catch()}))}render(){return i(e,{key:"75a6dc2d1bb8afb13e3d63b44bdd00e230a49fe6",class:this.h.classes(r.root),size:this.size,color:this.color,type:this.type,direction:this.direction,onKeyDown:this.onKeydownHandler.bind(this)},i("div",Object.assign({key:"1fc7ff9eafaaab713727787a1bb0c7364ad3cf4e",class:r.tabs,role:"tablist"},this.inheritedAttributes),i("ul",{key:"82a67f585c9a394175bb64be57e669d886b3d4f6",class:r.list},this.controllers.map((t=>i("li",{class:r.item},this.type=="text"?i("button",{class:r.btn,id:t.triggerIdentifier,role:"tab",onClick:()=>this.onSelectHandler(t),disabled:t.disabled,"aria-disabled":f(t.disabled),"aria-selected":f(t.active),"aria-controls":t.contentIdentifier,tabindex:t.active&&!t.disabled?0:-1,ref:s=>this.triggerRefs[t.triggerIdentifier]=s},t.iconStart?i("gov-icon",{name:t.iconStart.name,type:t.iconStart.type}):null,t.label,t.iconEnd?i("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type}):null):i("gov-chip",{role:"tab",tag:"button",identifier:t.triggerIdentifier,"aria-selected":b(t.active),"aria-controls":t.contentIdentifier,focusable:t.active,disabled:t.disabled,color:this.color,size:this.size==="xs"?"xs":this.size==="s"?"s":"m",type:t.active?"solid":"outlined",ref:s=>this.triggerRefs[t.triggerIdentifier]=s,"on-gov-click":()=>this.onSelectHandler(t)},t.iconStart?i("gov-icon",{name:t.iconStart.name,type:t.iconStart.type,slot:"icon-start"}):null,t.label,t.iconEnd?i("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type,slot:"icon-end"}):null)))))),i("slot",{key:"8af7e27c0410ba9a4c0f79a1c44275e5811e9463"}))}getCurrentTab(){return this.controllers.find((t=>t.active))||null}onSelectHandler(t){const s=this.controllers.findIndex((s=>s.triggerIdentifier===t.triggerIdentifier));this.focusIndex=s;this.setActiveByIdentifier(t.triggerIdentifier);this.reRender();this.govChange.emit(this.getCurrentTab().element)}onKeydownHandler(t){const s=t.keyCode;t.stopPropagation();this.goToPrevNext(s)}goToPrevNext(t){if([37,38,39,40].includes(t)){if(false===(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1)){return}this.controllers[this.focusIndex].active=false;if(t===39||t===40){this.focusIndex++;if(this.focusIndex>=this.controllers.length){this.focusIndex=0}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(40)}}else if(t===37||t===38){this.focusIndex--;if(this.focusIndex<0){this.focusIndex=this.controllers.length-1}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(38)}}if(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1){const t=this.controllers[this.focusIndex];t.active=true;const s=this.triggerRefs[t.triggerIdentifier];if(s.nodeName.toLowerCase()==="gov-chip"){this.triggerRefs[t.triggerIdentifier].setFocus()}else{this.triggerRefs[t.triggerIdentifier].focus()}this.controllers=[...this.controllers];this.reRender();this.govChange.emit(this.getCurrentTab().element)}}}async refresh(){this.prepareControllers()}async currentTab(){return this.getCurrentTab().element||null}async setActiveTab(t){this.setActiveByIdentifier(t);this.reRender()}async rerender(){this.prepareControllers(true)}get host(){return a(this)}static get watchers(){return{type:["validateType"],color:["validateColor"],size:["validateSize"]}}};export{v as gov_tabs};
2
- //# sourceMappingURL=p-8701c28e.entry.js.map
1
+ import{r as t,c as s,h as i,a as e,g as a}from"./p-8506b611.js";import{v as h}from"./p-0b3574c2.js";import{T as o,a as r,b as n,c,d as l}from"./p-860520b0.js";import{g as d,c as f,b}from"./p-ea7fdd2e.js";import{h as p}from"./p-2aedc81e.js";import{p as m}from"./p-016bbea6.js";import{A as u,a as y}from"./p-9ac55bd1.js";import{i as g}from"./p-d9a299a4.js";import"./p-e8ec030e.js";import"./p-e0e2e9c1.js";import"./p-92f420cb.js";import"./p-5aad3497.js";const v=class{constructor(i){t(this,i);this.govChange=s(this,"gov-change",7);this.triggerRefs={};this.type="text";this.size="m";this.color="primary";this.orientation="horizontal";this.direction="row";this.controllers=[];this.focusIndex=0;this.inheritedAttributes={};this.h=d(this.host)}validateType(t){h(n,t,r.root)}validateColor(t){h(c,t,r.root)}validateSize(t){h(l,t,r.root)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(y)}componentWillLoad(){this.prepareControllers();this.validateSize(this.size);this.inheritedAttributes=g(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}prepareControllers(t=false){this.controllers=[];const s=[];this.host.querySelectorAll(o.root).forEach((t=>{const i=Promise.all([t.getIdentifier(),t.getTriggerIdentifier(),t.getDisableState()]).then((([s,i,e])=>{const a=typeof t.getAttribute("default")==="string";const h=m(t.getAttribute("icon-start"));const o=m(t.getAttribute("icon-end"));return{label:t.getAttribute("label"),direction:t.getAttribute("direction"),contentIdentifier:s,disabled:e,triggerIdentifier:i,element:t,active:false,default:a,iconStart:h,iconEnd:o}}));s.push(i)}));Promise.all(s).then((s=>{if(t===false){let t=s.findIndex((t=>t.default));if(t===-1)t=0;this.focusIndex=t;s[t].active=true}else if(this.focusIndex>-1&&p(s,this.focusIndex)){s[this.focusIndex].active=true}const i=s.findIndex((t=>t.active&&t.disabled));if(i>-1){s[i].active=false;const t=s.findIndex((t=>!t.disabled));if(t>-1){s[t].active=true;this.focusIndex=t}}this.controllers=[...s];this.reRender()}))}setActiveByIdentifier(t){const s=[];this.controllers.map((i=>{i.active=t===i.triggerIdentifier||t===i.contentIdentifier;s.push(i)}));this.controllers=[...s]}reRender(){this.controllers.map((t=>{t.element.setActiveStatus(t.active).catch()}))}render(){return i(e,{key:"75a6dc2d1bb8afb13e3d63b44bdd00e230a49fe6",class:this.h.classes(r.root),size:this.size,color:this.color,type:this.type,direction:this.direction,onKeyDown:this.onKeydownHandler.bind(this)},i("div",Object.assign({key:"1fc7ff9eafaaab713727787a1bb0c7364ad3cf4e",class:r.tabs,role:"tablist"},this.inheritedAttributes),i("ul",{key:"82a67f585c9a394175bb64be57e669d886b3d4f6",class:r.list},this.controllers.map((t=>i("li",{class:r.item},this.type=="text"?i("button",{class:r.btn,id:t.triggerIdentifier,role:"tab",onClick:()=>this.onSelectHandler(t),disabled:t.disabled,"aria-disabled":f(t.disabled),"aria-selected":f(t.active),"aria-controls":t.contentIdentifier,tabindex:t.active&&!t.disabled?0:-1,ref:s=>this.triggerRefs[t.triggerIdentifier]=s},t.iconStart?i("gov-icon",{name:t.iconStart.name,type:t.iconStart.type}):null,t.label,t.iconEnd?i("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type}):null):i("gov-chip",{role:"tab",tag:"button",identifier:t.triggerIdentifier,"aria-selected":b(t.active),"aria-controls":t.contentIdentifier,focusable:t.active,disabled:t.disabled,color:this.color,size:this.size==="xs"?"xs":this.size==="s"?"s":"m",type:t.active?"solid":"outlined",ref:s=>this.triggerRefs[t.triggerIdentifier]=s,"on-gov-click":()=>this.onSelectHandler(t)},t.iconStart?i("gov-icon",{name:t.iconStart.name,type:t.iconStart.type,slot:"icon-start"}):null,t.label,t.iconEnd?i("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type,slot:"icon-end"}):null)))))),i("slot",{key:"8af7e27c0410ba9a4c0f79a1c44275e5811e9463"}))}getCurrentTab(){return this.controllers.find((t=>t.active))||null}onSelectHandler(t){const s=this.controllers.findIndex((s=>s.triggerIdentifier===t.triggerIdentifier));this.focusIndex=s;this.setActiveByIdentifier(t.triggerIdentifier);this.reRender();this.govChange.emit(this.getCurrentTab().element)}onKeydownHandler(t){const s=t.keyCode;t.stopPropagation();this.goToPrevNext(s)}goToPrevNext(t){if([37,38,39,40].includes(t)){if(false===(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1)){return}this.controllers[this.focusIndex].active=false;if(t===39||t===40){this.focusIndex++;if(this.focusIndex>=this.controllers.length){this.focusIndex=0}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(40)}}else if(t===37||t===38){this.focusIndex--;if(this.focusIndex<0){this.focusIndex=this.controllers.length-1}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(38)}}if(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1){const t=this.controllers[this.focusIndex];t.active=true;const s=this.triggerRefs[t.triggerIdentifier];if(s.nodeName.toLowerCase()==="gov-chip"){this.triggerRefs[t.triggerIdentifier].setFocus()}else{this.triggerRefs[t.triggerIdentifier].focus()}this.controllers=[...this.controllers];this.reRender();this.govChange.emit(this.getCurrentTab().element)}}}async refresh(){this.prepareControllers()}async currentTab(){return this.getCurrentTab().element||null}async setActiveTab(t){this.setActiveByIdentifier(t);this.reRender()}async rerender(){this.prepareControllers(true)}get host(){return a(this)}static get watchers(){return{type:["validateType"],color:["validateColor"],size:["validateSize"]}}};export{v as gov_tabs};
2
+ //# sourceMappingURL=p-2739fa61.entry.js.map
@@ -1,2 +1,2 @@
1
- import{g as e,d as t}from"./p-20c2203a.js";import{s as r}from"./p-cd6c2938.js";import{i}from"./p-2aedc81e.js";const n=(t,r,i)=>{if(t===undefined||String(t).length===0){e(`[${i}]: The (${r}) attribute is important for correct accessibility.`)}};const a=(i,n,a)=>{if(typeof i==="undefined"||i===undefined){return true}if(String(i).length===0){e(`[${a}]: Attribute (${n}) is defined with an empty value.`);return false}let s=[];const f=r(i);if(Array.isArray(f)){s=f.filter((function(e){return e.trim().length>0}))}return!!s.filter((e=>{if(t().getElementById(e)===null){return false}else{return true}})).length};const s=(r,n,a,s=undefined)=>{if(i(r)&&r.length>0){return true}if(typeof n==="string"&&n.length>0){const e=t().getElementById(n);if(e){return true}}e(`[${a}]: The element has no defined aria-label or aria-labelledby attribute.`,s);return false};export{a,n as b,s as v};
2
- //# sourceMappingURL=p-c52afdfc.js.map
1
+ import{g as e,d as t}from"./p-e8ec030e.js";import{s as r}from"./p-cd6c2938.js";import{i}from"./p-2aedc81e.js";const n=(t,r,i)=>{if(t===undefined||String(t).length===0){e(`[${i}]: The (${r}) attribute is important for correct accessibility.`)}};const a=(i,n,a)=>{if(typeof i==="undefined"||i===undefined){return true}if(String(i).length===0){e(`[${a}]: Attribute (${n}) is defined with an empty value.`);return false}let s=[];const f=r(i);if(Array.isArray(f)){s=f.filter((function(e){return e.trim().length>0}))}return!!s.filter((e=>{if(t().getElementById(e)===null){return false}else{return true}})).length};const s=(r,n,a,s=undefined)=>{if(i(r)&&r.length>0){return true}if(typeof n==="string"&&n.length>0){const e=t().getElementById(n);if(e){return true}}e(`[${a}]: The element has no defined aria-label or aria-labelledby attribute.`,s);return false};export{a,n as b,s as v};
2
+ //# sourceMappingURL=p-29ac15d2.js.map
@@ -1,2 +1,2 @@
1
- import{r as s,c as i,h as t,a as e,g as h}from"./p-8506b611.js";import{c as a}from"./p-cd6c2938.js";import{v as n}from"./p-a2435993.js";import{g as o,h as r,i as c}from"./p-da1db6fd.js";import{g as d,c as l,t as p}from"./p-ea7fdd2e.js";import{F as m}from"./p-1c1d0bbe.js";import{A as f,a as u}from"./p-9ac55bd1.js";import{i as b}from"./p-d9a299a4.js";import"./p-20c2203a.js";import"./p-e0e2e9c1.js";import"./p-92f420cb.js";import"./p-7f3becc5.js";import"./p-5aad3497.js";import"./p-56efd4a2.js";import"./p-7ba4daf4.js";const g=class{constructor(t){s(this,t);this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govChange=i(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=d(this.host);this.f=o(this.h)}validateSize(s){n(c,s,r.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new f(this.host,((s,i)=>{this.onAriaAttributeChange(s,i)}));this.attributeObserver.startObserving(u)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=b(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(s,i){this.host.removeAttribute(s);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[s]:i})}render(){const s=s=>{if(this.noLabel){return t("label",{class:r.label},s)}return s};return t(e,{class:this.h.classes(r.root),hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:p(this.invalid)},s(t(m,null,t("input",Object.assign({class:r.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:s=>this.inputRef=s,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":p(this.required),"aria-invalid":p(this.invalid),"aria-disabled":p(this.disabled)})),t("span",null,t("span",{class:r.indicator},this.checked&&t("gov-icon",{name:"check-lg",type:"components"})),t("slot",{name:"label"})))))}onClickHandler(s){s.stopPropagation()}onFocusHandler(s){s.stopPropagation();this.govFocus.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}onBlurHandler(s){s.stopPropagation();this.govBlur.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}onChangeHandler(s){this.checked=s.target.checked;s.stopPropagation();this.govChange.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}async getRef(){return this.inputRef}get host(){return h(this)}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}};export{g as gov_form_switch};
2
- //# sourceMappingURL=p-1ac9544f.entry.js.map
1
+ import{r as s,c as i,h as t,a as e,g as h}from"./p-8506b611.js";import{c as a}from"./p-cd6c2938.js";import{v as n}from"./p-0b3574c2.js";import{g as o,h as r,i as c}from"./p-da1db6fd.js";import{g as d,c as l,t as p}from"./p-ea7fdd2e.js";import{F as m}from"./p-1c1d0bbe.js";import{A as f,a as u}from"./p-9ac55bd1.js";import{i as b}from"./p-d9a299a4.js";import"./p-e8ec030e.js";import"./p-e0e2e9c1.js";import"./p-92f420cb.js";import"./p-7f3becc5.js";import"./p-5aad3497.js";import"./p-56efd4a2.js";import"./p-7ba4daf4.js";const g=class{constructor(t){s(this,t);this.govFocus=i(this,"gov-focus",7);this.govBlur=i(this,"gov-blur",7);this.govChange=i(this,"gov-change",7);this.hydrated=false;this.value=undefined;this.noLabel=false;this.checked=false;this.required=false;this.disabled=false;this.name=undefined;this.size="m";this.identifier=undefined;this.invalid=undefined;this.inheritedAttributes={};this.checkboxId=a("GovCheckbox");this.h=d(this.host);this.f=o(this.h)}validateSize(s){n(c,s,r.root)}watchDisabled(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",l(this.invalid));this.f.passAttrToControl("disabled",l(this.disabled));this.f.passAttrToControl("type","switch")}componentDidLoad(){this.attributeObserver=new f(this.host,((s,i)=>{this.onAriaAttributeChange(s,i)}));this.attributeObserver.startObserving(u)}componentWillLoad(){this.passControlAttrs();this.inheritedAttributes=b(this.host)}disconnectedCallback(){this.attributeObserver.stopObserving()}async componentDidRender(){this.f.passAttrToLabel("identifier",this.identifier||this.checkboxId);this.f.passAttrToLabel("required",String(this.required));this.passControlAttrs()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(s,i){this.host.removeAttribute(s);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[s]:i})}render(){const s=s=>{if(this.noLabel){return t("label",{class:r.label},s)}return s};return t(e,{class:this.h.classes(r.root),hydrated:this.hydrated,checked:this.checked,size:this.size,invalid:p(this.invalid)},s(t(m,null,t("input",Object.assign({class:r.input,id:this.identifier||this.checkboxId,type:"checkbox",value:this.value,name:this.name,disabled:this.disabled,checked:this.checked,onClick:this.onClickHandler.bind(this),onChange:this.onChangeHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),ref:s=>this.inputRef=s,required:this.required},this.inheritedAttributes,{"aria-checked":this.checked,"aria-required":p(this.required),"aria-invalid":p(this.invalid),"aria-disabled":p(this.disabled)})),t("span",null,t("span",{class:r.indicator},this.checked&&t("gov-icon",{name:"check-lg",type:"components"})),t("slot",{name:"label"})))))}onClickHandler(s){s.stopPropagation()}onFocusHandler(s){s.stopPropagation();this.govFocus.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}onBlurHandler(s){s.stopPropagation();this.govBlur.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}onChangeHandler(s){this.checked=s.target.checked;s.stopPropagation();this.govChange.emit({component:r.root,checked:this.checked,value:this.value,originalEvent:s})}async getRef(){return this.inputRef}get host(){return h(this)}static get watchers(){return{size:["validateSize","watchDisabled"],disabled:["watchDisabled"],invalid:["watchDisabled"]}}};export{g as gov_form_switch};
2
+ //# sourceMappingURL=p-3cb36bae.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovFormSwitch","constructor","hostRef","this","hydrated","checkboxId","createID","h","govHost","host","f","govForm","validateSize","newValue","validateProp","FormSwitchSizes","FormSwitchClass","root","watchDisabled","passControlAttrs","passAttrToControl","size","toBoolAttr","invalid","disabled","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","componentWillLoad","inheritedAttributes","inheritAriaAttributes","disconnectedCallback","stopObserving","componentDidRender","passAttrToLabel","identifier","String","required","connectedCallback","removeAttribute","Object","assign","render","wrapCheckbox","children","noLabel","class","label","Host","classes","checked","toBoolAttrIfDefined","Fragment","input","id","type","value","name","onClick","onClickHandler","bind","onChange","onChangeHandler","onFocus","onFocusHandler","onBlur","onBlurHandler","ref","el","inputRef","indicator","e","stopPropagation","govFocus","emit","component","originalEvent","govBlur","target","govChange","getRef"],"sources":["../../../packages/core/src/components/gov-form/switch/gov-form-switch.tsx"],"sourcesContent":["import {Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch} from \"@stencil/core\"\nimport {createID} from \"../../../utils/string.utils\"\nimport {validateProp} from \"../../../helpers/Validate/props\"\nimport {FormSwitchClass, FormSwitchSizes, FormSwitchSizesType} from \"./constants\"\nimport {govHost, toBoolAttr, toBoolAttrIfDefined} from \"../../../helpers/Dom/template\"\nimport {GovForm} from \"../../../helpers/Dom/form.types\"\nimport {GovHost} from \"../../../helpers/Dom/template.types\"\nimport {govForm} from \"../../../helpers/Dom/form\"\nimport Fragment from \"../../../helpers/Fragment\"\nimport {FormSwitchEvent} from \"./gov-form-switch.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-form-switch\",\n})\nexport class GovFormSwitch {\n\tprivate readonly h: GovHost\n\tprivate f: GovForm\n\tprivate inputRef?: HTMLInputElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly checkboxId: string\n\tprivate hydrated = false\n\n\tconstructor() {\n\t\tthis.checkboxId = createID(\"GovCheckbox\")\n\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t}\n\n\t@Element() host: HTMLGovFormSwitchElement\n\t/**\n\t * Value of switch\n\t */\n\t@Prop() readonly value: string\n\t/**\n\t * When you can't use the form label.\n\t */\n\t@Prop({attribute: \"no-label\"}) readonly noLabel: boolean = false\n\t/**\n\t * Switch button state\n\t */\n\t@Prop({reflect: true, mutable: true}) checked = false\n\t/**\n\t * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them.\n\t */\n\t@Prop() readonly required: boolean = false\n\t/**\n\t * Makes the switch component disabled.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Name of the switch.\n\t */\n\t@Prop() readonly name: string\n\t/**\n\t * Switch's size.\n\t */\n\t@Prop({reflect: true}) readonly size?: FormSwitchSizesType = \"m\"\n\t/**\n\t * Custom switch identifier.\n\t */\n\t@Prop({attribute: \"identifier\"}) readonly identifier: string\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the switch has focus.\n\t */\n\t@Event({eventName: \"gov-focus\"}) govFocus: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch loses focus.\n\t */\n\t@Event({eventName: \"gov-blur\"}) govBlur: EventEmitter<FormSwitchEvent>\n\t/**\n\t * Emitted when the switch change value.\n\t */\n\t@Event({eventName: \"gov-change\"}) govChange: EventEmitter<FormSwitchEvent>\n\n\t@Watch(\"size\")\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSwitchSizes, newValue, FormSwitchClass.root)\n\t}\n\n\t@Watch(\"disabled\")\n\t@Watch(\"invalid\")\n\t@Watch(\"size\")\n\twatchDisabled(): void {\n\t\tthis.passControlAttrs()\n\t}\n\n\t@State() inheritedAttributes: Attributes = {}\n\n\tprivate passControlAttrs() {\n\t\tthis.f.passAttrToControl(\"size\", this.size)\n\t\tthis.f.passAttrToControl(\"invalid\", toBoolAttr(this.invalid))\n\t\tthis.f.passAttrToControl(\"disabled\", toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl(\"type\", \"switch\")\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() {\n\t\tthis.passControlAttrs()\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.f.passAttrToLabel(\"identifier\", this.identifier || this.checkboxId)\n\t\tthis.f.passAttrToLabel(\"required\", String(this.required))\n\t\tthis.passControlAttrs()\n\t}\n\n\tconnectedCallback() {\n\t\tthis.hydrated = true\n\t}\n\n\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 wrapCheckbox = (children) => {\n\t\t\tif (this.noLabel) {\n\t\t\t\treturn (\n\t\t\t\t\t<label class={FormSwitchClass.label}>\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</label>\n\t\t\t\t)\n\t\t\t}\n\t\t\treturn children\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class={this.h.classes(FormSwitchClass.root)} hydrated={this.hydrated} checked={this.checked}\n\t\t\t\t size={this.size} invalid={toBoolAttrIfDefined(this.invalid)}>\n\t\t\t\t{wrapCheckbox(\n\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={FormSwitchClass.input}\n\t\t\t\t\t\t\tid={this.identifier || this.checkboxId}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tonClick={this.onClickHandler.bind(this)}\n\t\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\t\tref={el => (this.inputRef = el as HTMLInputElement)}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\t\taria-checked={this.checked}\n\t\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t<span class={FormSwitchClass.indicator}>\n\t\t\t\t\t\t\t\t{this.checked && <gov-icon name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</Fragment>,\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onClickHandler(e: Event) {\n\t\te.stopPropagation()\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\te.stopPropagation()\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.checked = (e.target as HTMLInputElement).checked\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSwitchClass.root,\n\t\t\tchecked: this.checked,\n\t\t\tvalue: this.value,\n\t\t\toriginalEvent: e,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the reference of the native element\n\t */\n\t@Method()\n\tasync getRef(): Promise<HTMLInputElement> {\n\t\treturn this.inputRef\n\t}\n}\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as s,h as i,a as e,g as a}from"./p-8506b611.js";import{g as o,j as h,k as c}from"./p-da1db6fd.js";import{g as n,c as r,t as d}from"./p-ea7fdd2e.js";import{v as l}from"./p-0b3574c2.js";import{c as p}from"./p-cd6c2938.js";import{p as f}from"./p-ded281e6.js";import{t as m}from"./p-26618322.js";import{A as b,a as u}from"./p-9ac55bd1.js";import{i as v}from"./p-d9a299a4.js";import"./p-92f420cb.js";import"./p-e0e2e9c1.js";import"./p-7f3becc5.js";import"./p-5aad3497.js";import"./p-56efd4a2.js";import"./p-7ba4daf4.js";import"./p-e8ec030e.js";import"./p-2aedc81e.js";const g=class{constructor(i){t(this,i);this.govFocus=s(this,"gov-focus",7);this.govBlur=s(this,"gov-blur",7);this.govChange=s(this,"gov-change",7);this.value=undefined;this.options=undefined;this.identifier=undefined;this.size="m";this.name=undefined;this.required=false;this.success=undefined;this.disabled=false;this.invalid=undefined;this.focused=undefined;this.optionsState=[];this.inheritedAttributes={};this.h=n(this.host);this.f=o(this.h);this.selectId=p("GovSelect")}validateSize(t){l(c,t,h.root)}watchOptions(t){this.optionsState=f(t)}watchControlAttrs(){this.passControlAttrs()}watchValue(){this.markSelectedValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","select")}componentDidLoad(){this.attributeObserver=new b(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(u)}disconnectedCallback(){this.attributeObserver.stopObserving()}componentWillLoad(){this.validateSize(this.size);this.markSelectedValue();this.optionsState=f(this.options);this.inheritedAttributes=v(this.host)}async componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));m((()=>this.markSelectedValue()))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}markSelectedValue(){this.host.querySelectorAll("option").forEach((t=>{if(t.value===this.value){t.setAttribute("selected","selected")}else{t.removeAttribute("selected")}}))}render(){return i(e,{key:"b403868aaf854a9dc40f68cf093a8867cd20c4c4",class:h.root,size:this.size},this.h.hasSlot("prefix")&&i("slot",{key:"de3d0cb80bd3b33a9b23b60f91739f0e23fdab4a",name:"prefix"}),i("span",{key:"c501806b949bc6e1314922fce0ce088180fdebba",class:"element"},i("select",Object.assign({key:"7c1a04a65e69edda672d70b101b430d3c6105543",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:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":d(this.disabled),"aria-required":d(this.required),"aria-invalid":d(this.invalid)}),i("slot",{key:"0bd46e42f5e5267366088b9902a5ef8c6aa99064"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;return i("option",{value:t.value,selected:t.value===this.value,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)}))),this.success&&i("gov-icon",{key:"8e919bd8dd122618b2b0233c7b14c8def277540f",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"78610616be9cdf65e9bbc1359e27bc9003c8fc34",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"56c1ca03e5b23154a93056bba8758553a5c93f30",class:"arrow-icon",name:"chevron-down",type:"components"})),this.h.hasSlot("sufix")&&i("slot",{key:"f3e3f1416d15a34402d446e6a72d0607cc8d90fc",name:"sufix"}))}onFocusHandler(t){this.focused=true;this.govFocus.emit({component:h.root,originalEvent:t,value:this.value})}onBlurHandler(t){this.focused=false;this.govBlur.emit({component:h.root,originalEvent:t,value:this.value})}onChangeHandler(t){this.value=t.target.value;t.stopPropagation();this.govChange.emit({component:h.root,originalEvent:t,value:this.value})}async setFocus(t){return this.selectRef.focus(t)}async getRef(){return this.selectRef}get host(){return a(this)}static get watchers(){return{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}}};export{g as gov_form_select};
2
+ //# sourceMappingURL=p-3d6edb09.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["GovFormSelect","constructor","hostRef","this","h","govHost","host","f","govForm","selectId","createID","validateSize","newValue","validateProp","FormSelectSizes","FormSelectClass","root","watchOptions","optionsState","propsValueToArray","watchControlAttrs","passControlAttrs","watchValue","markSelectedValue","passAttrToControl","size","toBoolAttr","invalid","success","disabled","componentDidLoad","attributeObserver","AttributeObserver","attributeName","onAriaAttributeChange","startObserving","ariaAttributes","disconnectedCallback","stopObserving","componentWillLoad","options","inheritedAttributes","inheritAriaAttributes","componentDidRender","passAttrToLabel","String","required","tick","removeAttribute","Object","assign","querySelectorAll","forEach","option","value","setAttribute","render","Host","key","class","hasSlot","name","id","identifier","onFocus","onFocusHandler","bind","onChange","onChangeHandler","onBlur","onBlurHandler","ref","el","selectRef","toBoolAttrIfDefined","Array","isArray","map","selected","_a","label","type","e","focused","govFocus","emit","component","originalEvent","govBlur","target","stopPropagation","govChange","setFocus","focus","getRef"],"sources":["../../../packages/core/src/components/gov-form/select/gov-form-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 {createID} from '../../../utils/string.utils'\nimport {FormSelectClass, FormSelectSizes, FormSelectSizesType,} from './constants'\nimport {FormSelectEvent, FormSelectOption} from './gov-form-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\";\nimport {inheritAriaAttributes} from \"../../../helpers/Accessibility/accessibility\";\n\n@Component({\n\ttag: 'gov-form-select',\n})\nexport class GovFormSelect {\n\tprivate f: GovForm\n\tprivate readonly h: GovHost\n\tprivate selectRef?: HTMLSelectElement\n\tprivate attributeObserver: AttributeObserver\n\n\tprivate readonly selectId: string\n\n\tconstructor() {\n\t\tthis.h = govHost(this.host)\n\t\tthis.f = govForm(this.h)\n\t\tthis.selectId = createID('GovSelect')\n\t}\n\n\t@Element() host: HTMLGovFormSelectElement\n\t/**\n\t * Value of select\n\t */\n\t@Prop({reflect: true, mutable: true}) value: string\n\t/**\n\t * Options of select\n\t */\n\t@Prop({reflect: true, mutable: true}) options?: string | FormSelectOption[]\n\t/**\n\t * Custom select identifier.\n\t */\n\t@Prop({attribute: 'identifier'}) readonly identifier: string\n\t/**\n\t * Select’s size.\n\t */\n\t@Prop() readonly size?: FormSelectSizesType = 'm'\n\t/**\n\t * Name of the select.\n\t */\n\t@Prop() readonly name: string\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 * Indicates the entered value of child form element does conform to the format expected by the application.\n\t */\n\t@Prop({reflect: true}) readonly success: boolean\n\t/**\n\t * Makes the select component disabled.\n\t * This prevents users from being able to interact with the select, and conveys its inactive state to assistive technologies.\n\t */\n\t@Prop({reflect: true}) readonly disabled: boolean = false\n\t/**\n\t * Indicates the entered value does not conform to the format expected by the application.\n\t */\n\t@Prop() readonly invalid: boolean\n\t/**\n\t * Emitted when the select has focus.\n\t */\n\t@Event({eventName: 'gov-focus'}) govFocus: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select loses focus.\n\t */\n\t@Event({eventName: 'gov-blur'}) govBlur: EventEmitter<FormSelectEvent>\n\t/**\n\t * Emitted when the select change value.\n\t */\n\t@Event({eventName: 'gov-change'}) govChange: EventEmitter<FormSelectEvent>\n\t@State() focused: boolean\n\t@State() optionsState: FormSelectOption[] = []\n\n\t@Watch('size')\n\tvalidateSize(newValue: string): void {\n\t\tvalidateProp(FormSelectSizes, newValue, FormSelectClass.root)\n\t}\n\n\t@Watch('options')\n\twatchOptions(newValue: string | FormSelectOption[]): void {\n\t\tthis.optionsState = 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@Watch('value')\n\twatchValue(): void {\n\t\tthis.markSelectedValue()\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('success', toBoolAttr(this.success))\n\t\tthis.f.passAttrToControl('disabled', toBoolAttr(this.disabled))\n\t\tthis.f.passAttrToControl('type', 'select')\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\tdisconnectedCallback() {\n\t\tthis.attributeObserver.stopObserving();\n\t}\n\n\tcomponentWillLoad() {\n\t\tthis.validateSize(this.size)\n\n\t\tthis.markSelectedValue()\n\n\t\tthis.optionsState = propsValueToArray(this.options)\n\t\tthis.inheritedAttributes = inheritAriaAttributes(this.host);\n\t}\n\n\tasync componentDidRender() {\n\t\tthis.passControlAttrs()\n\t\tthis.f.passAttrToLabel('required', String(this.required))\n\t\ttick(() => this.markSelectedValue())\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 markSelectedValue() {\n\t\tthis.host.querySelectorAll('option').forEach((option: HTMLOptionElement) => {\n\t\t\tif (option.value === this.value) {\n\t\t\t\toption.setAttribute('selected', 'selected')\n\t\t\t} else {\n\t\t\t\toption.removeAttribute('selected')\n\t\t\t}\n\t\t})\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={FormSelectClass.root} size={this.size}>\n\t\t\t\t{this.h.hasSlot('prefix') && <slot name=\"prefix\"></slot>}\n\t\t\t\t<span class=\"element\">\n\t\t\t\t\t<select\n\t\t\t\t\t\tid={this.identifier || this.selectId}\n\t\t\t\t\t\tonFocus={this.onFocusHandler.bind(this)}\n\t\t\t\t\t\tonChange={this.onChangeHandler.bind(this)}\n\t\t\t\t\t\tonBlur={this.onBlurHandler.bind(this)}\n\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\tref={el => (this.selectRef = el as HTMLSelectElement)}\n\t\t\t\t\t\t{...this.inheritedAttributes}\n\t\t\t\t\t\taria-disabled={toBoolAttrIfDefined(this.disabled)}\n\t\t\t\t\t\taria-required={toBoolAttrIfDefined(this.required)}\n\t\t\t\t\t\taria-invalid={toBoolAttrIfDefined(this.invalid)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t{Array.isArray(this.optionsState) && this.optionsState.map((option) => {\n\t\t\t\t\t\t\treturn (<option value={option.value} selected={option.value === this.value}\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.success && <gov-icon class=\"validation-icon\" name=\"check-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t{this.invalid && <gov-icon class=\"validation-icon\" name=\"exclamation-lg\" type=\"components\"></gov-icon>}\n\t\t\t\t\t<gov-icon class=\"arrow-icon\" name=\"chevron-down\" type=\"components\"></gov-icon>\n\t\t\t\t</span>\n\t\t\t\t{this.h.hasSlot('sufix') && <slot name=\"sufix\"></slot>}\n\t\t\t</Host>\n\t\t)\n\t}\n\n\tprivate onFocusHandler(e: FocusEvent) {\n\t\tthis.focused = true\n\t\tthis.govFocus.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onBlurHandler(e: FocusEvent) {\n\t\tthis.focused = false\n\t\tthis.govBlur.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\tprivate onChangeHandler(e: Event) {\n\t\tthis.value = (e.target as HTMLSelectElement).value\n\t\te.stopPropagation()\n\t\tthis.govChange.emit({\n\t\t\tcomponent: FormSelectClass.root,\n\t\t\toriginalEvent: e,\n\t\t\tvalue: this.value,\n\t\t})\n\t}\n\n\t/**\n\t * Returns the current state of the component\n\t */\n\t@Method()\n\tasync setFocus(options?: FocusOptions): Promise<void> {\n\t\treturn this.selectRef.focus(options)\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"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,a as s,g as i,c as n,d as a}from"./p-8506b611.js";import{g as o}from"./p-ea7fdd2e.js";import{F as c}from"./p-7ba4daf4.js";import{p as r}from"./p-e0e2e9c1.js";import{C as h}from"./p-5aad3497.js";import{S as l}from"./p-92f420cb.js";import{i as f,a as d,b as u}from"./p-e8ec030e.js";import{v as m}from"./p-0b3574c2.js";const b={root:"gov-flex"};const g=class{constructor(e){t(this,e);this.direction="row";this.justifyContent=undefined;this.alignItems=undefined;this.wrap=undefined;this.alignContent=undefined;this.alignSelf=undefined;this.h=o(this.host)}render(){return e(s,{key:"77d5eb1db594698f6fde4bf497209912de71173f",class:this.h.classes(b.root)},e("slot",{key:"6c01ff6ec88c53dbf9e83d492f660c96e9e7fc2a"}))}get host(){return i(this)}};const p=class{constructor(e){t(this,e);this.govClick=n(this,"gov-click",7);this.identifier=undefined;this.size="m";this.required=false;this.legend=false}render(){const t=this.legend?"legend":"label";return e(s,{key:"3e02eaa899126807c31fac8d3b6f352a07a73a9d",class:c.root,size:this.size},e(t,{key:"a1213cf879e26565c4c84d31ab6a46dac2a9ee4e",class:c.label,htmlFor:this.identifier,onClick:()=>this.govClick.emit()},e("slot",{key:"46a6a39821d6f3f786b843c037b0b423ba2445ae"}),this.required?e("span",{class:"gov-color--error-500"}," *"):null))}};r(l,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);const v=r(h,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var _;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(_||(_={}));const w={root:"gov-icon",holder:"gov-icon__holder"};const y="4.1.1";const k=()=>y;const L={};const S={};const C=t=>t.startsWith("http://")||t.startsWith("https://");const D=(t,e,s)=>{if(C(t)){return`${t}/${s}/${e}.svg?v=${k()}`}return a(`${t}/${s}/${e}.svg`)+`?v=${k()}`};async function z({name:t,type:e}){const s=e+"-"+t;if(L[s]){return L[s]}if(!S[s]){S[s]=fetch(D(f(),t,e)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const i=await S[s];L[s]=i;return i}const I=(t,e,s)=>{if(!d){return}let i="";if(s){const t=new Date;t.setTime(t.getTime()+s*24*60*60*1e3);i="; expires="+t.toUTCString()}document.cookie=`${t}=${encodeURIComponent(e)}${i}; path=/`};const $=t=>{if(!d){return null}const e=t+"=";const s=document.cookie.split(";");for(let t=0;t<s.length;t++){let i=s[t].trim();if(i.startsWith(e)){return decodeURIComponent(i.substring(e.length))}}return null};const j=t=>{try{const e=new DOMParser;const s=e.parseFromString(t,"image/svg+xml");const i=s.querySelector("parsererror");if(i){return false}const n=s.documentElement;if(n.tagName.toLowerCase()!=="svg"){return false}return true}catch(t){return false}};const R=class{constructor(e){t(this,e);this.size=undefined;this.color=undefined;this.name=null;this.type="components";this.visible=false;this.error=false;this.h=o(this.host)}validateSize(t){m(l,t,w.root)}validateColor(t){m(v,t,w.root)}async loadIconPathData(){const{name:t,visible:e}=this;if(!t||!e){return}await this.loadIcon()}connectedCallback(){if(u()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){this.validateSize(this.size);this.validateColor(this.color);await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}async loadIcon(){try{const{name:t,type:e}=this;const s=await z({name:t,type:e});const i=j(s);this.host.innerHTML=i?s:null}catch(t){this.host.innerHTML="";this.error=true}}render(){if(this.error){return null}return e(s,{class:this.h.classes(w.root),size:this.size,color:this.color})}static get assetsDirs(){return["assets"]}get host(){return i(this)}static get watchers(){return{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}}};const E=r(l,["_XS","_S","_M","_L","_XL"]);const x={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark",labelLight:"gov-theme-switch__label-light",labelDark:"gov-theme-switch__label-dark"};const X="data-theme";var A;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(A||(A={}));const O=class{constructor(e){t(this,e);this.govChange=n(this,"gov-change",7);this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:x.root,state:this.theme,ref:this.host})};this.size="m";this.ariaLabelLight=undefined;this.ariaLabelDark=undefined;this.labelLight=undefined;this.labelDark=undefined;this.theme=A.auto;this.h=o(this.host)}validateSize(t){m(E,t,x.root)}watchTheme(t){this.htmlElement.setAttribute(X,t);this.htmlElement.classList.remove(...Object.keys(A));this.htmlElement.classList.add(t);I(X,t)}get storageValue(){return $(X)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return d&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(A);let e=this.storageValue;const s=this.htmlElement.getAttribute(X);if(e&&t.includes(e)){this.theme=e}else if(s&&t.includes(s)){this.theme=s}else{this.theme=A.auto}}render(){let t=this.theme===A.dark;if(this.theme===A.auto){t=this.isSystemPrefersColorDark}return e(s,{key:"a83f030f54527f8e8a2d23c3769f3f1b41c4af4f",class:this.h.classes(x.root),theme:t?A.dark:A.light,size:this.size},e("button",{key:"54f8337d911cf64f24c8db089b9092b806c3a926",onClick:()=>this.setThemeState(t?A.light:A.dark),"aria-label":t?this.ariaLabelLight:this.ariaLabelDark},e("span",{key:"483310b54df8e8de42c087f04b7e0758067c22b8"},e("span",{key:"88b822cac4b5dc3897fa19252b5b1e1a559b8d6d",class:x.indicator},A.light&&e("gov-icon",{key:"f6f162cda66facba8940ba55f7f3283e7796d157",name:"sun",class:x.iconLight,type:"components"}),A.dark&&e("gov-icon",{key:"b36b009c1787e37a3fd5108618c6bb5993f97a23",name:"moon",class:x.iconDark,type:"components"})),e("gov-form-label",{key:"dff2b2b454a87faa1d7e471d2a271c333c983aad",class:x.labelLight,size:this.size},this.labelLight),e("gov-form-label",{key:"1b682ccaff92cc4cfe8462ff2a59507fd61b114b",class:x.labelDark,size:this.size},this.labelDark))))}get host(){return i(this)}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}};export{g as gov_flex,p as gov_form_label,R as gov_icon,O as gov_theme_switch};
2
+ //# sourceMappingURL=p-3f6a2d20.entry.js.map