@gov-design-system-ce/components 4.0.8-rc10 → 4.0.8-rc11

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 (1568) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  3. package/dist/cjs/array.utils-fcdab10c.js +46 -0
  4. package/dist/cjs/array.utils-fcdab10c.js.map +1 -0
  5. package/dist/cjs/{constants-9dc978dd.js → constants-02aec493.js} +8 -8
  6. package/dist/cjs/{constants-9dc978dd.js.map → constants-02aec493.js.map} +1 -1
  7. package/dist/cjs/{constants-20b3f7ee.js → constants-11f3de8f.js} +10 -10
  8. package/dist/cjs/{constants-20b3f7ee.js.map → constants-11f3de8f.js.map} +1 -1
  9. package/dist/cjs/constants-1b3eeb21.js +20 -0
  10. package/dist/cjs/{constants-66cb0615.js.map → constants-1b3eeb21.js.map} +1 -1
  11. package/dist/cjs/constants-29b9825f.js +33 -0
  12. package/dist/cjs/{constants-427a2843.js.map → constants-29b9825f.js.map} +1 -1
  13. package/dist/cjs/constants-2f0a11e5.js +30 -0
  14. package/dist/cjs/{constants-dde21dcf.js.map → constants-2f0a11e5.js.map} +1 -1
  15. package/dist/cjs/{constants-a31344ad.js → constants-4fefc173.js} +16 -16
  16. package/dist/cjs/{constants-a31344ad.js.map → constants-4fefc173.js.map} +1 -1
  17. package/dist/cjs/{constants-ded92f8a.js → constants-52053f2d.js} +3 -3
  18. package/dist/cjs/{constants-ded92f8a.js.map → constants-52053f2d.js.map} +1 -1
  19. package/dist/cjs/{constants-61f8be34.js → constants-7a5540d0.js} +10 -10
  20. package/dist/cjs/{constants-61f8be34.js.map → constants-7a5540d0.js.map} +1 -1
  21. package/dist/cjs/constants-87bab1ed.js +14 -0
  22. package/dist/cjs/{constants-97eea364.js.map → constants-87bab1ed.js.map} +1 -1
  23. package/dist/cjs/constants-8f194b53.js +30 -0
  24. package/dist/cjs/{constants-0c6c8e11.js.map → constants-8f194b53.js.map} +1 -1
  25. package/dist/cjs/{constants-1490a5eb.js → constants-a33f6e99.js} +9 -9
  26. package/dist/cjs/{constants-1490a5eb.js.map → constants-a33f6e99.js.map} +1 -1
  27. package/dist/cjs/constants-b7813ab1.js +16 -0
  28. package/dist/cjs/{constants-caad94b4.js.map → constants-b7813ab1.js.map} +1 -1
  29. package/dist/cjs/constants-b8a9f758.js +22 -0
  30. package/dist/cjs/{constants-25f7a6be.js.map → constants-b8a9f758.js.map} +1 -1
  31. package/dist/cjs/constants-d5fe1cee.js +29 -0
  32. package/dist/cjs/{constants-440cd5c8.js.map → constants-d5fe1cee.js.map} +1 -1
  33. package/dist/cjs/constants-fb915aae.js +21 -0
  34. package/dist/cjs/{constants-6df82618.js.map → constants-fb915aae.js.map} +1 -1
  35. package/dist/cjs/constants-fdc5268a.js +15 -0
  36. package/dist/cjs/{constants-2b1c31b8.js.map → constants-fdc5268a.js.map} +1 -1
  37. package/dist/cjs/core.cjs.js +32 -32
  38. package/dist/cjs/core.cjs.js.map +1 -1
  39. package/dist/cjs/form-f93c3a0a.js +163 -0
  40. package/dist/cjs/form-f93c3a0a.js.map +1 -0
  41. package/dist/cjs/gov-accordion-item.cjs.entry.js +89 -88
  42. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -1
  43. package/dist/cjs/gov-accordion.cjs.entry.js +63 -62
  44. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -1
  45. package/dist/cjs/gov-attachments_3.cjs.entry.js +91 -88
  46. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -1
  47. package/dist/cjs/gov-backdrop.cjs.entry.js +34 -33
  48. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -1
  49. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +57 -56
  50. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -1
  51. package/dist/cjs/gov-button.cjs.entry.js +166 -165
  52. package/dist/cjs/gov-button.cjs.entry.js.map +1 -1
  53. package/dist/cjs/gov-card.cjs.entry.js +91 -90
  54. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  55. package/dist/cjs/gov-chip.cjs.entry.js +90 -89
  56. package/dist/cjs/gov-chip.cjs.entry.js.map +1 -1
  57. package/dist/cjs/gov-container.cjs.entry.js +21 -20
  58. package/dist/cjs/gov-container.cjs.entry.js.map +1 -1
  59. package/dist/cjs/gov-control-group.cjs.entry.js +27 -26
  60. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  61. package/dist/cjs/gov-cookiebar.cjs.entry.js +18 -17
  62. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -1
  63. package/dist/cjs/gov-dropdown.cjs.entry.js +62 -59
  64. package/dist/cjs/gov-dropdown.cjs.entry.js.map +1 -1
  65. package/dist/cjs/gov-empty.cjs.entry.js +16 -15
  66. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -1
  67. package/dist/cjs/gov-error-code.cjs.entry.js +16 -15
  68. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -1
  69. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +237 -236
  70. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  71. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js +70 -69
  72. package/dist/cjs/gov-form-checkbox-group.cjs.entry.js.map +1 -1
  73. package/dist/cjs/gov-form-checkbox.cjs.entry.js +121 -120
  74. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  75. package/dist/cjs/gov-form-control.cjs.entry.js +91 -90
  76. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  77. package/dist/cjs/gov-form-file.cjs.entry.js +226 -225
  78. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  79. package/dist/cjs/gov-form-group.cjs.entry.js +36 -35
  80. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -1
  81. package/dist/cjs/gov-form-input.cjs.entry.js +180 -178
  82. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
  83. package/dist/cjs/gov-form-label.cjs.entry.js +18 -17
  84. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -1
  85. package/dist/cjs/gov-form-multi-select.cjs.entry.js +261 -260
  86. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  87. package/dist/cjs/gov-form-password-power.cjs.entry.js +13 -12
  88. package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -1
  89. package/dist/cjs/gov-form-radio-group.cjs.entry.js +59 -58
  90. package/dist/cjs/gov-form-radio-group.cjs.entry.js.map +1 -1
  91. package/dist/cjs/gov-form-radio.cjs.entry.js +121 -120
  92. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  93. package/dist/cjs/gov-form-search.cjs.entry.js +16 -15
  94. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  95. package/dist/cjs/gov-form-select.cjs.entry.js +151 -150
  96. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  97. package/dist/cjs/gov-form-switch.cjs.entry.js +121 -120
  98. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  99. package/dist/cjs/gov-grid-item.cjs.entry.js +18 -17
  100. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -1
  101. package/dist/cjs/gov-grid.cjs.entry.js +16 -15
  102. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -1
  103. package/dist/cjs/gov-icon.cjs.entry.js +96 -95
  104. package/dist/cjs/gov-icon.cjs.entry.js.map +1 -1
  105. package/dist/cjs/gov-infobar.cjs.entry.js +71 -70
  106. package/dist/cjs/gov-infobar.cjs.entry.js.map +1 -1
  107. package/dist/cjs/gov-layout-column.cjs.entry.js +13 -12
  108. package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -1
  109. package/dist/cjs/gov-layout.cjs.entry.js +22 -21
  110. package/dist/cjs/gov-layout.cjs.entry.js.map +1 -1
  111. package/dist/cjs/gov-loading.cjs.entry.js +15 -14
  112. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -1
  113. package/dist/cjs/gov-message.cjs.entry.js +28 -27
  114. package/dist/cjs/gov-message.cjs.entry.js.map +1 -1
  115. package/dist/cjs/gov-modal.cjs.entry.js +93 -90
  116. package/dist/cjs/gov-modal.cjs.entry.js.map +1 -1
  117. package/dist/cjs/gov-nav-item.cjs.entry.js +26 -25
  118. package/dist/cjs/gov-nav-item.cjs.entry.js.map +1 -1
  119. package/dist/cjs/gov-nav.cjs.entry.js +29 -28
  120. package/dist/cjs/gov-nav.cjs.entry.js.map +1 -1
  121. package/dist/cjs/gov-pagination.cjs.entry.js +193 -192
  122. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -1
  123. package/dist/cjs/gov-prompt.cjs.entry.js +89 -88
  124. package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -1
  125. package/dist/cjs/gov-side-nav-item.cjs.entry.js +74 -73
  126. package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -1
  127. package/dist/cjs/gov-side-nav.cjs.entry.js +43 -42
  128. package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -1
  129. package/dist/cjs/gov-skeleton.cjs.entry.js +92 -91
  130. package/dist/cjs/gov-skeleton.cjs.entry.js.map +1 -1
  131. package/dist/cjs/gov-spacer.cjs.entry.js +39 -38
  132. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -1
  133. package/dist/cjs/gov-statsbar-item.cjs.entry.js +28 -27
  134. package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -1
  135. package/dist/cjs/gov-statsbar.cjs.entry.js +41 -40
  136. package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -1
  137. package/dist/cjs/gov-stepper-item.cjs.entry.js +64 -63
  138. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -1
  139. package/dist/cjs/gov-stepper.cjs.entry.js +39 -38
  140. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -1
  141. package/dist/cjs/gov-tabs-item.cjs.entry.js +48 -40
  142. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -1
  143. package/dist/cjs/gov-tabs.cjs.entry.js +196 -183
  144. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -1
  145. package/dist/cjs/gov-tag.cjs.entry.js +43 -42
  146. package/dist/cjs/gov-tag.cjs.entry.js.map +1 -1
  147. package/dist/cjs/gov-tile.cjs.entry.js +27 -26
  148. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  149. package/dist/cjs/gov-tiles.cjs.entry.js +18 -17
  150. package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -1
  151. package/dist/cjs/gov-toast.cjs.entry.js +81 -80
  152. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -1
  153. package/dist/cjs/gov-tooltip-content.cjs.entry.js +39 -38
  154. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -1
  155. package/dist/cjs/gov-tooltip.cjs.entry.js +216 -207
  156. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -1
  157. package/dist/cjs/gov-wizard-item.cjs.entry.js +97 -96
  158. package/dist/cjs/gov-wizard-item.cjs.entry.js.map +1 -1
  159. package/dist/cjs/gov-wizard.cjs.entry.js +56 -55
  160. package/dist/cjs/gov-wizard.cjs.entry.js.map +1 -1
  161. package/dist/cjs/gov.log-8887c6bc.js +28 -0
  162. package/dist/cjs/{gov.log-b842920d.js.map → gov.log-8887c6bc.js.map} +1 -1
  163. package/dist/cjs/helpers-2ee3c9e6.js +19 -0
  164. package/dist/cjs/helpers-2ee3c9e6.js.map +1 -0
  165. package/dist/cjs/index-d7a6145d.js +2041 -0
  166. package/dist/cjs/index-d7a6145d.js.map +1 -0
  167. package/dist/cjs/loader.cjs.js +5 -3
  168. package/dist/cjs/loader.cjs.js.map +1 -1
  169. package/dist/cjs/props-edd0d46f.js +16 -0
  170. package/dist/cjs/{props-d6146e54.js.map → props-edd0d46f.js.map} +1 -1
  171. package/dist/cjs/sizes-89f8d3b2.js +18 -0
  172. package/dist/cjs/{sizes-79872c2a.js.map → sizes-89f8d3b2.js.map} +1 -1
  173. package/dist/cjs/stencil.utils-07182a8a.js +11 -0
  174. package/dist/cjs/{stencil.utils-22814956.js.map → stencil.utils-07182a8a.js.map} +1 -1
  175. package/dist/cjs/string.utils-2335838f.js +24 -0
  176. package/dist/cjs/{string.utils-0f08c48c.js.map → string.utils-2335838f.js.map} +1 -1
  177. package/dist/cjs/template-431f0737.js +132 -0
  178. package/dist/cjs/template-431f0737.js.map +1 -0
  179. package/dist/cjs/{utils-c9b1bba3.js → utils-d263c5c6.js} +9 -9
  180. package/dist/cjs/{utils-c9b1bba3.js.map → utils-d263c5c6.js.map} +1 -1
  181. package/dist/cjs/variants-85b514ea.js +18 -0
  182. package/dist/cjs/{variants-f5ffeef3.js.map → variants-85b514ea.js.map} +1 -1
  183. package/dist/cjs/wcag-53ebeed1.js +67 -0
  184. package/dist/cjs/{wcag-e6257f27.js.map → wcag-53ebeed1.js.map} +1 -1
  185. package/dist/cjs/{win-5521073d.js → win-03714165.js} +16 -16
  186. package/dist/cjs/{win-5521073d.js.map → win-03714165.js.map} +1 -1
  187. package/dist/collection/collection-manifest.json +2 -2
  188. package/dist/collection/components/gov-accordion/constants.js +11 -11
  189. package/dist/collection/components/gov-accordion/constants.js.map +1 -1
  190. package/dist/collection/components/gov-accordion/gov-accordion-item.js +292 -292
  191. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -1
  192. package/dist/collection/components/gov-accordion/gov-accordion.js +211 -211
  193. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -1
  194. package/dist/collection/components/gov-attachments/constants.js +7 -7
  195. package/dist/collection/components/gov-attachments/constants.js.map +1 -1
  196. package/dist/collection/components/gov-attachments/gov-attachments-item.js +111 -111
  197. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -1
  198. package/dist/collection/components/gov-attachments/gov-attachments.js +89 -89
  199. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -1
  200. package/dist/collection/components/gov-backdrop/constants.js +2 -2
  201. package/dist/collection/components/gov-backdrop/constants.js.map +1 -1
  202. package/dist/collection/components/gov-backdrop/gov-backdrop.js +130 -130
  203. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -1
  204. package/dist/collection/components/gov-breadcrumbs/constants.js +1 -1
  205. package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -1
  206. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +197 -197
  207. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -1
  208. package/dist/collection/components/gov-button/button/constants.js +12 -12
  209. package/dist/collection/components/gov-button/button/constants.js.map +1 -1
  210. package/dist/collection/components/gov-button/button/gov-button.css +45 -45
  211. package/dist/collection/components/gov-button/button/gov-button.js +864 -864
  212. package/dist/collection/components/gov-button/button/gov-button.js.map +1 -1
  213. package/dist/collection/components/gov-button/dropdown/constants.js +4 -4
  214. package/dist/collection/components/gov-button/dropdown/constants.js.map +1 -1
  215. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js +184 -164
  216. package/dist/collection/components/gov-button/dropdown/gov-dropdown.js.map +1 -1
  217. package/dist/collection/components/gov-card/constants.js +11 -11
  218. package/dist/collection/components/gov-card/constants.js.map +1 -1
  219. package/dist/collection/components/gov-card/gov-card.js +290 -290
  220. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  221. package/dist/collection/components/gov-chip/constants.js +7 -7
  222. package/dist/collection/components/gov-chip/constants.js.map +1 -1
  223. package/dist/collection/components/gov-chip/gov-chip.css +40 -40
  224. package/dist/collection/components/gov-chip/gov-chip.js +448 -448
  225. package/dist/collection/components/gov-chip/gov-chip.js.map +1 -1
  226. package/dist/collection/components/gov-container/constants.js +1 -1
  227. package/dist/collection/components/gov-container/constants.js.map +1 -1
  228. package/dist/collection/components/gov-container/gov-container.js +53 -53
  229. package/dist/collection/components/gov-container/gov-container.js.map +1 -1
  230. package/dist/collection/components/gov-control-group/constants.js +1 -1
  231. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  232. package/dist/collection/components/gov-control-group/gov-control-group.js +75 -75
  233. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  234. package/dist/collection/components/gov-cookiebar/constants.js +6 -6
  235. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -1
  236. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +18 -18
  237. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -1
  238. package/dist/collection/components/gov-empty/constants.js +4 -4
  239. package/dist/collection/components/gov-empty/constants.js.map +1 -1
  240. package/dist/collection/components/gov-empty/gov-empty.js +18 -18
  241. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -1
  242. package/dist/collection/components/gov-error-code/constants.js +4 -4
  243. package/dist/collection/components/gov-error-code/constants.js.map +1 -1
  244. package/dist/collection/components/gov-error-code/gov-error-code.js +18 -18
  245. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -1
  246. package/dist/collection/components/gov-form/autocomplete/constants.js +5 -5
  247. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -1
  248. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +881 -879
  249. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  250. package/dist/collection/components/gov-form/checkbox/constants.js +3 -3
  251. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -1
  252. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +427 -427
  253. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  254. package/dist/collection/components/gov-form/control/constants.js +3 -3
  255. package/dist/collection/components/gov-form/control/constants.js.map +1 -1
  256. package/dist/collection/components/gov-form/control/gov-form-control.js +228 -228
  257. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  258. package/dist/collection/components/gov-form/file/constants.js +7 -7
  259. package/dist/collection/components/gov-form/file/constants.js.map +1 -1
  260. package/dist/collection/components/gov-form/file/gov-form-file.js +722 -722
  261. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  262. package/dist/collection/components/gov-form/group/constants.js +5 -5
  263. package/dist/collection/components/gov-form/group/constants.js.map +1 -1
  264. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js +164 -164
  265. package/dist/collection/components/gov-form/group/gov-form-checkbox-group.js.map +1 -1
  266. package/dist/collection/components/gov-form/group/gov-form-group.js +92 -92
  267. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -1
  268. package/dist/collection/components/gov-form/group/gov-form-radio-group.js +154 -154
  269. package/dist/collection/components/gov-form/group/gov-form-radio-group.js.map +1 -1
  270. package/dist/collection/components/gov-form/input/constants.js +15 -15
  271. package/dist/collection/components/gov-form/input/constants.js.map +1 -1
  272. package/dist/collection/components/gov-form/input/gov-form-input.js +949 -929
  273. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  274. package/dist/collection/components/gov-form/label/constants.js +2 -2
  275. package/dist/collection/components/gov-form/label/constants.js.map +1 -1
  276. package/dist/collection/components/gov-form/label/gov-form-label.js +124 -124
  277. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -1
  278. package/dist/collection/components/gov-form/message/constants.js +3 -3
  279. package/dist/collection/components/gov-form/message/constants.js.map +1 -1
  280. package/dist/collection/components/gov-form/message/gov-form-message.js +85 -85
  281. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -1
  282. package/dist/collection/components/gov-form/multiselect/constants.js +4 -4
  283. package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -1
  284. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +788 -786
  285. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  286. package/dist/collection/components/gov-form/password-power/constants.js +3 -3
  287. package/dist/collection/components/gov-form/password-power/constants.js.map +1 -1
  288. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +38 -38
  289. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -1
  290. package/dist/collection/components/gov-form/radio/constants.js +5 -5
  291. package/dist/collection/components/gov-form/radio/constants.js.map +1 -1
  292. package/dist/collection/components/gov-form/radio/gov-form-radio.js +427 -427
  293. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  294. package/dist/collection/components/gov-form/search/constants.js +3 -3
  295. package/dist/collection/components/gov-form/search/constants.js.map +1 -1
  296. package/dist/collection/components/gov-form/search/gov-form-search.js +45 -45
  297. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  298. package/dist/collection/components/gov-form/select/constants.js +2 -2
  299. package/dist/collection/components/gov-form/select/constants.js.map +1 -1
  300. package/dist/collection/components/gov-form/select/gov-form-select.js +568 -567
  301. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  302. package/dist/collection/components/gov-form/switch/constants.js +4 -4
  303. package/dist/collection/components/gov-form/switch/constants.js.map +1 -1
  304. package/dist/collection/components/gov-form/switch/gov-form-switch.js +427 -427
  305. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  306. package/dist/collection/components/gov-grid/constants.js +2 -2
  307. package/dist/collection/components/gov-grid/constants.js.map +1 -1
  308. package/dist/collection/components/gov-grid/gov-grid-item.js +113 -113
  309. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -1
  310. package/dist/collection/components/gov-grid/gov-grid.js +59 -59
  311. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -1
  312. package/dist/collection/components/gov-icon/constants.js +5 -5
  313. package/dist/collection/components/gov-icon/constants.js.map +1 -1
  314. package/dist/collection/components/gov-icon/gov-icon.js +122 -122
  315. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -1
  316. package/dist/collection/components/gov-icon/helpers.js +10 -10
  317. package/dist/collection/components/gov-icon/helpers.js.map +1 -1
  318. package/dist/collection/components/gov-icon/list.js +276 -276
  319. package/dist/collection/components/gov-icon/list.js.map +1 -1
  320. package/dist/collection/components/gov-infobar/constants.js +7 -7
  321. package/dist/collection/components/gov-infobar/constants.js.map +1 -1
  322. package/dist/collection/components/gov-infobar/gov-infobar.js +253 -253
  323. package/dist/collection/components/gov-infobar/gov-infobar.js.map +1 -1
  324. package/dist/collection/components/gov-layout/constants.js +8 -8
  325. package/dist/collection/components/gov-layout/constants.js.map +1 -1
  326. package/dist/collection/components/gov-layout/gov-layout-column.js +18 -18
  327. package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -1
  328. package/dist/collection/components/gov-layout/gov-layout.js +95 -95
  329. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -1
  330. package/dist/collection/components/gov-loading/loading/constants.js +3 -3
  331. package/dist/collection/components/gov-loading/loading/constants.js.map +1 -1
  332. package/dist/collection/components/gov-loading/loading/gov-loading.js +18 -18
  333. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -1
  334. package/dist/collection/components/gov-loading/skeleton/constants.js +8 -8
  335. package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -1
  336. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +256 -256
  337. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -1
  338. package/dist/collection/components/gov-message/constants.js +4 -4
  339. package/dist/collection/components/gov-message/constants.js.map +1 -1
  340. package/dist/collection/components/gov-message/gov-message.js +55 -55
  341. package/dist/collection/components/gov-message/gov-message.js.map +1 -1
  342. package/dist/collection/components/gov-modal/constants.js +12 -12
  343. package/dist/collection/components/gov-modal/constants.js.map +1 -1
  344. package/dist/collection/components/gov-modal/gov-modal.js +375 -337
  345. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -1
  346. package/dist/collection/components/gov-nav/constants.js +4 -4
  347. package/dist/collection/components/gov-nav/constants.js.map +1 -1
  348. package/dist/collection/components/gov-nav/gov-nav-item.js +61 -61
  349. package/dist/collection/components/gov-nav/gov-nav-item.js.map +1 -1
  350. package/dist/collection/components/gov-nav/gov-nav.js +88 -88
  351. package/dist/collection/components/gov-nav/gov-nav.js.map +1 -1
  352. package/dist/collection/components/gov-pagination/constants.js +10 -10
  353. package/dist/collection/components/gov-pagination/constants.js.map +1 -1
  354. package/dist/collection/components/gov-pagination/gov-pagination.js +509 -509
  355. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -1
  356. package/dist/collection/components/gov-pagination/pagination.js +48 -48
  357. package/dist/collection/components/gov-pagination/pagination.js.map +1 -1
  358. package/dist/collection/components/gov-promp/constants.js +10 -10
  359. package/dist/collection/components/gov-promp/constants.js.map +1 -1
  360. package/dist/collection/components/gov-promp/gov-prompt.js +317 -317
  361. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -1
  362. package/dist/collection/components/gov-side-nav/constants.js +11 -11
  363. package/dist/collection/components/gov-side-nav/constants.js.map +1 -1
  364. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +324 -324
  365. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -1
  366. package/dist/collection/components/gov-side-nav/gov-side-nav.js +159 -159
  367. package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -1
  368. package/dist/collection/components/gov-spacer/constants.js +6 -6
  369. package/dist/collection/components/gov-spacer/constants.js.map +1 -1
  370. package/dist/collection/components/gov-spacer/gov-spacer.js +89 -89
  371. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -1
  372. package/dist/collection/components/gov-statsbar/constants.js +7 -7
  373. package/dist/collection/components/gov-statsbar/constants.js.map +1 -1
  374. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +58 -58
  375. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -1
  376. package/dist/collection/components/gov-statsbar/gov-statsbar.js +95 -95
  377. package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -1
  378. package/dist/collection/components/gov-stepper/constants.js +11 -11
  379. package/dist/collection/components/gov-stepper/constants.js.map +1 -1
  380. package/dist/collection/components/gov-stepper/gov-stepper-item.js +236 -236
  381. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -1
  382. package/dist/collection/components/gov-stepper/gov-stepper.js +91 -91
  383. package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -1
  384. package/dist/collection/components/gov-tabs/constants.js +11 -11
  385. package/dist/collection/components/gov-tabs/constants.js.map +1 -1
  386. package/dist/collection/components/gov-tabs/gov-tabs-item.js +221 -178
  387. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -1
  388. package/dist/collection/components/gov-tabs/gov-tabs.css +13 -10
  389. package/dist/collection/components/gov-tabs/gov-tabs.js +432 -419
  390. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -1
  391. package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -1
  392. package/dist/collection/components/gov-tag/constants.js +1 -1
  393. package/dist/collection/components/gov-tag/constants.js.map +1 -1
  394. package/dist/collection/components/gov-tag/gov-tag.css +40 -40
  395. package/dist/collection/components/gov-tag/gov-tag.js +147 -147
  396. package/dist/collection/components/gov-tag/gov-tag.js.map +1 -1
  397. package/dist/collection/components/gov-tile/constants.js +7 -7
  398. package/dist/collection/components/gov-tile/constants.js.map +1 -1
  399. package/dist/collection/components/gov-tile/container/constants.js +1 -1
  400. package/dist/collection/components/gov-tile/container/constants.js.map +1 -1
  401. package/dist/collection/components/gov-tile/container/gov-tiles.js +63 -63
  402. package/dist/collection/components/gov-tile/container/gov-tiles.js.map +1 -1
  403. package/dist/collection/components/gov-tile/gov-tile.js +100 -100
  404. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  405. package/dist/collection/components/gov-toast/constants.js +6 -6
  406. package/dist/collection/components/gov-toast/constants.js.map +1 -1
  407. package/dist/collection/components/gov-toast/gov-toast.js +253 -253
  408. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -1
  409. package/dist/collection/components/gov-tooltip/constants.js +6 -6
  410. package/dist/collection/components/gov-tooltip/constants.js.map +1 -1
  411. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +149 -149
  412. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  413. package/dist/collection/components/gov-tooltip/gov-tooltip.js +382 -372
  414. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  415. package/dist/collection/components/gov-wizard/constants.js +10 -10
  416. package/dist/collection/components/gov-wizard/constants.js.map +1 -1
  417. package/dist/collection/components/gov-wizard/gov-wizard-item.js +368 -368
  418. package/dist/collection/components/gov-wizard/gov-wizard-item.js.map +1 -1
  419. package/dist/collection/components/gov-wizard/gov-wizard.js +160 -160
  420. package/dist/collection/components/gov-wizard/gov-wizard.js.map +1 -1
  421. package/dist/collection/core/constants/sizes.js +11 -11
  422. package/dist/collection/core/constants/sizes.js.map +1 -1
  423. package/dist/collection/core/constants/tags.js +9 -9
  424. package/dist/collection/core/constants/tags.js.map +1 -1
  425. package/dist/collection/core/constants/tokens.js +5 -5
  426. package/dist/collection/core/constants/tokens.js.map +1 -1
  427. package/dist/collection/core/constants/variants.js +8 -8
  428. package/dist/collection/core/constants/variants.js.map +1 -1
  429. package/dist/collection/helpers/Dom/form.js +59 -59
  430. package/dist/collection/helpers/Dom/form.js.map +1 -1
  431. package/dist/collection/helpers/Dom/template.js +101 -101
  432. package/dist/collection/helpers/Dom/template.js.map +1 -1
  433. package/dist/collection/helpers/Dom/win.js +14 -14
  434. package/dist/collection/helpers/Dom/win.js.map +1 -1
  435. package/dist/collection/helpers/Log/gov.log.js +10 -10
  436. package/dist/collection/helpers/Log/gov.log.js.map +1 -1
  437. package/dist/collection/helpers/Validate/props.js +5 -5
  438. package/dist/collection/helpers/Validate/props.js.map +1 -1
  439. package/dist/collection/helpers/Validate/wcag.js +42 -42
  440. package/dist/collection/helpers/Validate/wcag.js.map +1 -1
  441. package/dist/collection/pages/Accordion.js +4 -4
  442. package/dist/collection/pages/Accordion.js.map +1 -1
  443. package/dist/collection/pages/Breadcrumbs.js +4 -4
  444. package/dist/collection/pages/Breadcrumbs.js.map +1 -1
  445. package/dist/collection/pages/Button.js +4 -4
  446. package/dist/collection/pages/Button.js.map +1 -1
  447. package/dist/collection/pages/Card.js +4 -4
  448. package/dist/collection/pages/Card.js.map +1 -1
  449. package/dist/collection/pages/Chip.js +4 -4
  450. package/dist/collection/pages/Chip.js.map +1 -1
  451. package/dist/collection/pages/Container.js +4 -4
  452. package/dist/collection/pages/Container.js.map +1 -1
  453. package/dist/collection/pages/ControlGroup.js +4 -4
  454. package/dist/collection/pages/ControlGroup.js.map +1 -1
  455. package/dist/collection/pages/Cookiebar.js +4 -4
  456. package/dist/collection/pages/Cookiebar.js.map +1 -1
  457. package/dist/collection/pages/Empty.js +4 -4
  458. package/dist/collection/pages/Empty.js.map +1 -1
  459. package/dist/collection/pages/Error.js +4 -4
  460. package/dist/collection/pages/Error.js.map +1 -1
  461. package/dist/collection/pages/FormLabel.js +4 -4
  462. package/dist/collection/pages/FormLabel.js.map +1 -1
  463. package/dist/collection/pages/FormMessage.js +4 -4
  464. package/dist/collection/pages/FormMessage.js.map +1 -1
  465. package/dist/collection/pages/Forms.js +120 -120
  466. package/dist/collection/pages/Forms.js.map +1 -1
  467. package/dist/collection/pages/FormsRestructure.js +4 -4
  468. package/dist/collection/pages/FormsRestructure.js.map +1 -1
  469. package/dist/collection/pages/Grid.js +4 -4
  470. package/dist/collection/pages/Grid.js.map +1 -1
  471. package/dist/collection/pages/Home.js +4 -4
  472. package/dist/collection/pages/Home.js.map +1 -1
  473. package/dist/collection/pages/Infobar.js +4 -4
  474. package/dist/collection/pages/Infobar.js.map +1 -1
  475. package/dist/collection/pages/Layout.js +4 -4
  476. package/dist/collection/pages/Layout.js.map +1 -1
  477. package/dist/collection/pages/Loading.js +9 -9
  478. package/dist/collection/pages/Loading.js.map +1 -1
  479. package/dist/collection/pages/Message.js +4 -4
  480. package/dist/collection/pages/Message.js.map +1 -1
  481. package/dist/collection/pages/Modal.js +10 -10
  482. package/dist/collection/pages/Modal.js.map +1 -1
  483. package/dist/collection/pages/Nav.js +4 -4
  484. package/dist/collection/pages/Nav.js.map +1 -1
  485. package/dist/collection/pages/Pagination.js +13 -13
  486. package/dist/collection/pages/Pagination.js.map +1 -1
  487. package/dist/collection/pages/Prompt.js +9 -9
  488. package/dist/collection/pages/Prompt.js.map +1 -1
  489. package/dist/collection/pages/SideNav.js +4 -4
  490. package/dist/collection/pages/SideNav.js.map +1 -1
  491. package/dist/collection/pages/Spacer.js +4 -4
  492. package/dist/collection/pages/Spacer.js.map +1 -1
  493. package/dist/collection/pages/Statsbar.js +4 -4
  494. package/dist/collection/pages/Statsbar.js.map +1 -1
  495. package/dist/collection/pages/Stepper.js +4 -4
  496. package/dist/collection/pages/Stepper.js.map +1 -1
  497. package/dist/collection/pages/Tabs.js +15 -6
  498. package/dist/collection/pages/Tabs.js.map +1 -1
  499. package/dist/collection/pages/Tag.js +4 -4
  500. package/dist/collection/pages/Tag.js.map +1 -1
  501. package/dist/collection/pages/Tiles.js +4 -4
  502. package/dist/collection/pages/Tiles.js.map +1 -1
  503. package/dist/collection/pages/ToastMessage.js +4 -4
  504. package/dist/collection/pages/ToastMessage.js.map +1 -1
  505. package/dist/collection/pages/ToastMessageCountdown.js +4 -4
  506. package/dist/collection/pages/ToastMessageCountdown.js.map +1 -1
  507. package/dist/collection/pages/Tooltip.js +4 -4
  508. package/dist/collection/pages/Tooltip.js.map +1 -1
  509. package/dist/collection/pages/Typography.js +4 -4
  510. package/dist/collection/pages/Typography.js.map +1 -1
  511. package/dist/collection/pages/Wizard.js +4 -4
  512. package/dist/collection/pages/Wizard.js.map +1 -1
  513. package/dist/collection/utils/array.utils.js +13 -13
  514. package/dist/collection/utils/array.utils.js.map +1 -1
  515. package/dist/collection/utils/bool.utils.js +12 -12
  516. package/dist/collection/utils/bool.utils.js.map +1 -1
  517. package/dist/collection/utils/ds.utils.js +1 -1
  518. package/dist/collection/utils/ds.utils.js.map +1 -1
  519. package/dist/collection/utils/file.utils.js +19 -19
  520. package/dist/collection/utils/file.utils.js.map +1 -1
  521. package/dist/collection/utils/helpers.types.js +15 -15
  522. package/dist/collection/utils/helpers.types.js.map +1 -1
  523. package/dist/collection/utils/icon.utils.js +21 -21
  524. package/dist/collection/utils/icon.utils.js.map +1 -1
  525. package/dist/collection/utils/number.utils.js +1 -1
  526. package/dist/collection/utils/number.utils.js.map +1 -1
  527. package/dist/collection/utils/object.utils.js +13 -13
  528. package/dist/collection/utils/object.utils.js.map +1 -1
  529. package/dist/collection/utils/stencil.utils.js +3 -3
  530. package/dist/collection/utils/stencil.utils.js.map +1 -1
  531. package/dist/collection/utils/string.utils.js +8 -8
  532. package/dist/collection/utils/string.utils.js.map +1 -1
  533. package/dist/collection/utils/utils.js +9 -9
  534. package/dist/collection/utils/utils.js.map +1 -1
  535. package/dist/components/gov-accordion-item.d.ts +2 -2
  536. package/dist/components/gov-accordion-item.js +1 -1
  537. package/dist/components/gov-accordion-item.js.map +1 -1
  538. package/dist/components/gov-accordion.d.ts +2 -2
  539. package/dist/components/gov-accordion.js +1 -2
  540. package/dist/components/gov-accordion.js.map +1 -1
  541. package/dist/components/gov-attachments-item.d.ts +2 -2
  542. package/dist/components/gov-attachments-item.js +1 -1
  543. package/dist/components/gov-attachments-item.js.map +1 -1
  544. package/dist/components/gov-attachments.d.ts +2 -2
  545. package/dist/components/gov-attachments.js +1 -1
  546. package/dist/components/gov-attachments.js.map +1 -1
  547. package/dist/components/gov-backdrop.d.ts +2 -2
  548. package/dist/components/gov-backdrop.js +1 -1
  549. package/dist/components/gov-backdrop.js.map +1 -1
  550. package/dist/components/gov-breadcrumbs.d.ts +2 -2
  551. package/dist/components/gov-breadcrumbs.js +1 -1
  552. package/dist/components/gov-breadcrumbs.js.map +1 -1
  553. package/dist/components/gov-button.d.ts +2 -2
  554. package/dist/components/gov-button.js +1 -1
  555. package/dist/components/gov-button.js.map +1 -1
  556. package/dist/components/gov-card.d.ts +2 -2
  557. package/dist/components/gov-card.js +1 -1
  558. package/dist/components/gov-card.js.map +1 -1
  559. package/dist/components/gov-chip.d.ts +2 -2
  560. package/dist/components/gov-chip.js +1 -1
  561. package/dist/components/gov-chip.js.map +1 -1
  562. package/dist/components/gov-container.d.ts +2 -2
  563. package/dist/components/gov-container.js +1 -1
  564. package/dist/components/gov-container.js.map +1 -1
  565. package/dist/components/gov-control-group.d.ts +2 -2
  566. package/dist/components/gov-control-group.js +1 -1
  567. package/dist/components/gov-control-group.js.map +1 -1
  568. package/dist/components/gov-cookiebar.d.ts +2 -2
  569. package/dist/components/gov-cookiebar.js +1 -1
  570. package/dist/components/gov-cookiebar.js.map +1 -1
  571. package/dist/components/gov-dropdown.d.ts +2 -2
  572. package/dist/components/gov-dropdown.js +1 -1
  573. package/dist/components/gov-dropdown.js.map +1 -1
  574. package/dist/components/gov-empty.d.ts +2 -2
  575. package/dist/components/gov-empty.js +1 -1
  576. package/dist/components/gov-empty.js.map +1 -1
  577. package/dist/components/gov-error-code.d.ts +2 -2
  578. package/dist/components/gov-error-code.js +1 -1
  579. package/dist/components/gov-error-code.js.map +1 -1
  580. package/dist/components/gov-form-autocomplete.d.ts +2 -2
  581. package/dist/components/gov-form-autocomplete.js +1 -1
  582. package/dist/components/gov-form-autocomplete.js.map +1 -1
  583. package/dist/components/gov-form-checkbox-group.d.ts +2 -2
  584. package/dist/components/gov-form-checkbox-group.js +1 -1
  585. package/dist/components/gov-form-checkbox-group.js.map +1 -1
  586. package/dist/components/gov-form-checkbox.d.ts +2 -2
  587. package/dist/components/gov-form-checkbox.js +1 -1
  588. package/dist/components/gov-form-checkbox.js.map +1 -1
  589. package/dist/components/gov-form-control.d.ts +2 -2
  590. package/dist/components/gov-form-control.js +1 -1
  591. package/dist/components/gov-form-control.js.map +1 -1
  592. package/dist/components/gov-form-file.d.ts +2 -2
  593. package/dist/components/gov-form-file.js +1 -1
  594. package/dist/components/gov-form-file.js.map +1 -1
  595. package/dist/components/gov-form-group.d.ts +2 -2
  596. package/dist/components/gov-form-group.js +1 -1
  597. package/dist/components/gov-form-group.js.map +1 -1
  598. package/dist/components/gov-form-input.d.ts +2 -2
  599. package/dist/components/gov-form-input.js +1 -1
  600. package/dist/components/gov-form-input.js.map +1 -1
  601. package/dist/components/gov-form-label.d.ts +2 -2
  602. package/dist/components/gov-form-label.js +1 -1
  603. package/dist/components/gov-form-label.js.map +1 -1
  604. package/dist/components/gov-form-message.d.ts +2 -2
  605. package/dist/components/gov-form-message.js +1 -1
  606. package/dist/components/gov-form-message.js.map +1 -1
  607. package/dist/components/gov-form-multi-select.d.ts +2 -2
  608. package/dist/components/gov-form-multi-select.js +1 -1
  609. package/dist/components/gov-form-multi-select.js.map +1 -1
  610. package/dist/components/gov-form-password-power.d.ts +2 -2
  611. package/dist/components/gov-form-password-power.js +1 -1
  612. package/dist/components/gov-form-password-power.js.map +1 -1
  613. package/dist/components/gov-form-radio-group.d.ts +2 -2
  614. package/dist/components/gov-form-radio-group.js +1 -1
  615. package/dist/components/gov-form-radio-group.js.map +1 -1
  616. package/dist/components/gov-form-radio.d.ts +2 -2
  617. package/dist/components/gov-form-radio.js +1 -2
  618. package/dist/components/gov-form-radio.js.map +1 -1
  619. package/dist/components/gov-form-search.d.ts +2 -2
  620. package/dist/components/gov-form-search.js +1 -1
  621. package/dist/components/gov-form-search.js.map +1 -1
  622. package/dist/components/gov-form-select.d.ts +2 -2
  623. package/dist/components/gov-form-select.js +1 -1
  624. package/dist/components/gov-form-select.js.map +1 -1
  625. package/dist/components/gov-form-switch.d.ts +2 -2
  626. package/dist/components/gov-form-switch.js +1 -2
  627. package/dist/components/gov-form-switch.js.map +1 -1
  628. package/dist/components/gov-grid-item.d.ts +2 -2
  629. package/dist/components/gov-grid-item.js +1 -1
  630. package/dist/components/gov-grid-item.js.map +1 -1
  631. package/dist/components/gov-grid.d.ts +2 -2
  632. package/dist/components/gov-grid.js +1 -1
  633. package/dist/components/gov-grid.js.map +1 -1
  634. package/dist/components/gov-icon.d.ts +2 -2
  635. package/dist/components/gov-icon.js +1 -1
  636. package/dist/components/gov-icon.js.map +1 -1
  637. package/dist/components/gov-infobar.d.ts +2 -2
  638. package/dist/components/gov-infobar.js +1 -1
  639. package/dist/components/gov-infobar.js.map +1 -1
  640. package/dist/components/gov-layout-column.d.ts +2 -2
  641. package/dist/components/gov-layout-column.js +1 -1
  642. package/dist/components/gov-layout-column.js.map +1 -1
  643. package/dist/components/gov-layout.d.ts +2 -2
  644. package/dist/components/gov-layout.js +1 -1
  645. package/dist/components/gov-layout.js.map +1 -1
  646. package/dist/components/gov-loading.d.ts +2 -2
  647. package/dist/components/gov-loading.js +1 -1
  648. package/dist/components/gov-loading.js.map +1 -1
  649. package/dist/components/gov-message.d.ts +2 -2
  650. package/dist/components/gov-message.js +1 -1
  651. package/dist/components/gov-message.js.map +1 -1
  652. package/dist/components/gov-modal.d.ts +2 -2
  653. package/dist/components/gov-modal.js +1 -1
  654. package/dist/components/gov-modal.js.map +1 -1
  655. package/dist/components/gov-nav-item.d.ts +2 -2
  656. package/dist/components/gov-nav-item.js +1 -1
  657. package/dist/components/gov-nav-item.js.map +1 -1
  658. package/dist/components/gov-nav.d.ts +2 -2
  659. package/dist/components/gov-nav.js +1 -2
  660. package/dist/components/gov-nav.js.map +1 -1
  661. package/dist/components/gov-pagination.d.ts +2 -2
  662. package/dist/components/gov-pagination.js +1 -1
  663. package/dist/components/gov-pagination.js.map +1 -1
  664. package/dist/components/gov-prompt.d.ts +2 -2
  665. package/dist/components/gov-prompt.js +1 -1
  666. package/dist/components/gov-prompt.js.map +1 -1
  667. package/dist/components/gov-side-nav-item.d.ts +2 -2
  668. package/dist/components/gov-side-nav-item.js +1 -1
  669. package/dist/components/gov-side-nav-item.js.map +1 -1
  670. package/dist/components/gov-side-nav.d.ts +2 -2
  671. package/dist/components/gov-side-nav.js +1 -2
  672. package/dist/components/gov-side-nav.js.map +1 -1
  673. package/dist/components/gov-skeleton.d.ts +2 -2
  674. package/dist/components/gov-skeleton.js +1 -2
  675. package/dist/components/gov-skeleton.js.map +1 -1
  676. package/dist/components/gov-spacer.d.ts +2 -2
  677. package/dist/components/gov-spacer.js +1 -1
  678. package/dist/components/gov-spacer.js.map +1 -1
  679. package/dist/components/gov-statsbar-item.d.ts +2 -2
  680. package/dist/components/gov-statsbar-item.js +1 -1
  681. package/dist/components/gov-statsbar-item.js.map +1 -1
  682. package/dist/components/gov-statsbar.d.ts +2 -2
  683. package/dist/components/gov-statsbar.js +1 -1
  684. package/dist/components/gov-statsbar.js.map +1 -1
  685. package/dist/components/gov-stepper-item.d.ts +2 -2
  686. package/dist/components/gov-stepper-item.js +1 -1
  687. package/dist/components/gov-stepper-item.js.map +1 -1
  688. package/dist/components/gov-stepper.d.ts +2 -2
  689. package/dist/components/gov-stepper.js +1 -1
  690. package/dist/components/gov-stepper.js.map +1 -1
  691. package/dist/components/gov-tabs-item.d.ts +2 -2
  692. package/dist/components/gov-tabs-item.js +1 -1
  693. package/dist/components/gov-tabs-item.js.map +1 -1
  694. package/dist/components/gov-tabs.d.ts +2 -2
  695. package/dist/components/gov-tabs.js +1 -1
  696. package/dist/components/gov-tabs.js.map +1 -1
  697. package/dist/components/gov-tag.d.ts +2 -2
  698. package/dist/components/gov-tag.js +1 -1
  699. package/dist/components/gov-tag.js.map +1 -1
  700. package/dist/components/gov-tile.d.ts +2 -2
  701. package/dist/components/gov-tile.js +1 -1
  702. package/dist/components/gov-tile.js.map +1 -1
  703. package/dist/components/gov-tiles.d.ts +2 -2
  704. package/dist/components/gov-tiles.js +1 -1
  705. package/dist/components/gov-tiles.js.map +1 -1
  706. package/dist/components/gov-toast.d.ts +2 -2
  707. package/dist/components/gov-toast.js +1 -1
  708. package/dist/components/gov-toast.js.map +1 -1
  709. package/dist/components/gov-tooltip-content.d.ts +2 -2
  710. package/dist/components/gov-tooltip-content.js +1 -1
  711. package/dist/components/gov-tooltip-content.js.map +1 -1
  712. package/dist/components/gov-tooltip.d.ts +2 -2
  713. package/dist/components/gov-tooltip.js +1 -1
  714. package/dist/components/gov-tooltip.js.map +1 -1
  715. package/dist/components/gov-wizard-item.d.ts +2 -2
  716. package/dist/components/gov-wizard-item.js +1 -1
  717. package/dist/components/gov-wizard-item.js.map +1 -1
  718. package/dist/components/gov-wizard.d.ts +2 -2
  719. package/dist/components/gov-wizard.js +1 -2
  720. package/dist/components/gov-wizard.js.map +1 -1
  721. package/dist/components/index.js +1 -1
  722. package/dist/components/index.js.map +1 -1
  723. package/dist/components/{p-be4aab0e.js → p-0134b442.js} +1 -1
  724. package/dist/{core/p-be4aab0e.js.map → components/p-0134b442.js.map} +1 -1
  725. package/dist/components/{p-74b2311a.js → p-016118d2.js} +2 -2
  726. package/dist/components/{p-74b2311a.js.map → p-016118d2.js.map} +1 -1
  727. package/dist/components/{p-2bf5b814.js → p-016bbea6.js} +1 -1
  728. package/dist/components/{p-2bf5b814.js.map → p-016bbea6.js.map} +1 -1
  729. package/dist/components/{p-ff7365ae.js → p-03dbb8b1.js} +1 -1
  730. package/dist/components/{p-ff7365ae.js.map → p-03dbb8b1.js.map} +1 -1
  731. package/dist/components/{p-b72a7bed.js → p-07165d99.js} +1 -1
  732. package/dist/components/{p-b72a7bed.js.map → p-07165d99.js.map} +1 -1
  733. package/dist/components/{p-ab5a13ea.js → p-0a6a373e.js} +1 -1
  734. package/dist/{core/p-ab5a13ea.js.map → components/p-0a6a373e.js.map} +1 -1
  735. package/dist/components/{p-692b78d9.js → p-0ef9ca38.js} +2 -2
  736. package/dist/components/p-0ef9ca38.js.map +1 -0
  737. package/dist/components/{p-5defdc5e.js → p-13ebd887.js} +1 -1
  738. package/dist/components/{p-5defdc5e.js.map → p-13ebd887.js.map} +1 -1
  739. package/dist/components/p-1c1d0bbe.js.map +1 -1
  740. package/dist/components/{p-6834d779.js → p-20fd8011.js} +2 -2
  741. package/dist/components/{p-6834d779.js.map → p-20fd8011.js.map} +1 -1
  742. package/dist/components/{p-8fcc8483.js → p-240c302e.js} +1 -1
  743. package/dist/components/{p-8fcc8483.js.map → p-240c302e.js.map} +1 -1
  744. package/dist/components/{p-dcb5fb35.js → p-344c72d7.js} +2 -2
  745. package/dist/components/{p-dcb5fb35.js.map → p-344c72d7.js.map} +1 -1
  746. package/dist/components/p-38129200.js +2 -0
  747. package/dist/components/p-38129200.js.map +1 -0
  748. package/dist/components/{p-a6d14a47.js → p-3983d290.js} +1 -1
  749. package/dist/components/{p-a6d14a47.js.map → p-3983d290.js.map} +1 -1
  750. package/dist/components/p-3d3231ab.js +2 -0
  751. package/dist/components/p-3d3231ab.js.map +1 -0
  752. package/dist/components/p-4faa3ba6.js +2 -0
  753. package/dist/components/{p-fa1e4aea.js.map → p-4faa3ba6.js.map} +1 -1
  754. package/dist/components/p-5a881c4f.js +2 -0
  755. package/dist/components/p-5a881c4f.js.map +1 -0
  756. package/dist/components/p-67f93e2f.js +2 -0
  757. package/dist/components/p-67f93e2f.js.map +1 -0
  758. package/dist/components/p-6b0471a8.js +2 -0
  759. package/dist/components/p-6b0471a8.js.map +1 -0
  760. package/dist/components/{p-f04382c3.js → p-77a6e3be.js} +2 -2
  761. package/dist/components/{p-f04382c3.js.map → p-77a6e3be.js.map} +1 -1
  762. package/dist/components/p-7ba4daf4.js +2 -0
  763. package/dist/components/{p-3464136c.js.map → p-7ba4daf4.js.map} +1 -1
  764. package/dist/components/p-850f41a3.js +2 -0
  765. package/dist/components/p-850f41a3.js.map +1 -0
  766. package/dist/components/{p-ffb7495c.js → p-880743a5.js} +1 -1
  767. package/dist/components/{p-ffb7495c.js.map → p-880743a5.js.map} +1 -1
  768. package/dist/components/{p-9144dde1.js → p-8dfac7d7.js} +2 -2
  769. package/dist/components/{p-9144dde1.js.map → p-8dfac7d7.js.map} +1 -1
  770. package/dist/components/{p-4e1215f7.js → p-8f752a63.js} +2 -2
  771. package/dist/components/p-8f752a63.js.map +1 -0
  772. package/dist/components/{p-55500e5a.js → p-92f420cb.js} +1 -1
  773. package/dist/components/{p-55500e5a.js.map → p-92f420cb.js.map} +1 -1
  774. package/dist/components/p-9370b15f.js +2 -0
  775. package/dist/components/{p-3c71d697.js.map → p-9370b15f.js.map} +1 -1
  776. package/dist/components/{p-17ebfe85.js → p-94dd1649.js} +2 -2
  777. package/dist/components/{p-17ebfe85.js.map → p-94dd1649.js.map} +1 -1
  778. package/dist/components/{p-24636c53.js → p-95d41a3b.js} +1 -1
  779. package/dist/components/{p-24636c53.js.map → p-95d41a3b.js.map} +1 -1
  780. package/dist/components/p-bfce6f99.js +2 -0
  781. package/dist/components/p-bfce6f99.js.map +1 -0
  782. package/dist/components/{p-f45783e0.js → p-cc51369e.js} +2 -2
  783. package/dist/components/p-cc51369e.js.map +1 -0
  784. package/dist/components/p-ce45c786.js +2 -0
  785. package/dist/components/{p-9a4c910d.js.map → p-ce45c786.js.map} +1 -1
  786. package/dist/components/p-cff54227.js +3 -0
  787. package/dist/components/p-cff54227.js.map +1 -0
  788. package/dist/components/{p-db1f0452.js → p-d0288df5.js} +1 -1
  789. package/dist/components/{p-db1f0452.js.map → p-d0288df5.js.map} +1 -1
  790. package/dist/components/{p-c353678b.js → p-d687df8f.js} +1 -1
  791. package/dist/components/{p-c353678b.js.map → p-d687df8f.js.map} +1 -1
  792. package/dist/components/{p-03990da5.js → p-e0e2e9c1.js} +1 -1
  793. package/dist/components/{p-03990da5.js.map → p-e0e2e9c1.js.map} +1 -1
  794. package/dist/components/p-e296ca83.js +2 -0
  795. package/dist/components/{p-7f2c9830.js.map → p-e296ca83.js.map} +1 -1
  796. package/dist/components/p-e44a0fee.js +2 -0
  797. package/dist/components/{p-3a04fb9b.js.map → p-e44a0fee.js.map} +1 -1
  798. package/dist/components/p-e618f1cb.js +2 -0
  799. package/dist/components/{p-003e6cca.js.map → p-e618f1cb.js.map} +1 -1
  800. package/dist/components/p-e6b44c13.js +2 -0
  801. package/dist/components/p-e6b44c13.js.map +1 -0
  802. package/dist/components/p-f0d542f2.js +2 -0
  803. package/dist/components/{p-6278531b.js.map → p-f0d542f2.js.map} +1 -1
  804. package/dist/components/{p-768b9ba0.js → p-f0e6e095.js} +2 -2
  805. package/dist/components/p-f0e6e095.js.map +1 -0
  806. package/dist/core/core.esm.js +1 -1
  807. package/dist/core/core.esm.js.map +1 -1
  808. package/dist/core/index.esm.js.map +1 -1
  809. package/dist/core/{p-be4aab0e.js → p-0134b442.js} +1 -1
  810. package/dist/{components/p-be4aab0e.js.map → core/p-0134b442.js.map} +1 -1
  811. package/dist/core/{p-2bf5b814.js → p-016bbea6.js} +1 -1
  812. package/dist/core/{p-2bf5b814.js.map → p-016bbea6.js.map} +1 -1
  813. package/dist/core/{p-ff7365ae.js → p-03dbb8b1.js} +1 -1
  814. package/dist/core/{p-ff7365ae.js.map → p-03dbb8b1.js.map} +1 -1
  815. package/dist/core/p-071857ce.entry.js +2 -0
  816. package/dist/core/p-071857ce.entry.js.map +1 -0
  817. package/dist/core/{p-ab5a13ea.js → p-0a6a373e.js} +1 -1
  818. package/dist/{components/p-ab5a13ea.js.map → core/p-0a6a373e.js.map} +1 -1
  819. package/dist/core/{p-aaf2510a.entry.js → p-0c78bb6a.entry.js} +2 -2
  820. package/dist/core/p-0c78bb6a.entry.js.map +1 -0
  821. package/dist/core/{p-5defdc5e.js → p-13ebd887.js} +1 -1
  822. package/dist/core/{p-5defdc5e.js.map → p-13ebd887.js.map} +1 -1
  823. package/dist/core/p-16ed4995.entry.js +2 -0
  824. package/dist/core/p-16ed4995.entry.js.map +1 -0
  825. package/dist/core/p-1c1d0bbe.js.map +1 -1
  826. package/dist/core/{p-6834d779.js → p-20fd8011.js} +2 -2
  827. package/dist/core/{p-6834d779.js.map → p-20fd8011.js.map} +1 -1
  828. package/dist/core/{p-8fcc8483.js → p-240c302e.js} +1 -1
  829. package/dist/core/{p-8fcc8483.js.map → p-240c302e.js.map} +1 -1
  830. package/dist/core/p-28d8b65c.entry.js +2 -0
  831. package/dist/core/p-28d8b65c.entry.js.map +1 -0
  832. package/dist/core/{p-555eaa93.entry.js → p-2cc5dda1.entry.js} +2 -2
  833. package/dist/core/p-2cc5dda1.entry.js.map +1 -0
  834. package/dist/core/p-307906c9.entry.js +2 -0
  835. package/dist/core/p-307906c9.entry.js.map +1 -0
  836. package/dist/core/{p-6bf8e7bf.entry.js → p-314df6e2.entry.js} +2 -2
  837. package/dist/core/p-314df6e2.entry.js.map +1 -0
  838. package/dist/core/{p-dcb5fb35.js → p-344c72d7.js} +2 -2
  839. package/dist/core/{p-dcb5fb35.js.map → p-344c72d7.js.map} +1 -1
  840. package/dist/core/{p-f2f2c14a.entry.js → p-35a77e2d.entry.js} +2 -3
  841. package/dist/core/p-35a77e2d.entry.js.map +1 -0
  842. package/dist/core/{p-1f769a40.entry.js → p-372910de.entry.js} +2 -2
  843. package/dist/core/p-372910de.entry.js.map +1 -0
  844. package/dist/core/p-37a58991.entry.js +2 -0
  845. package/dist/core/p-37a58991.entry.js.map +1 -0
  846. package/dist/core/p-37f5729b.entry.js +2 -0
  847. package/dist/core/p-37f5729b.entry.js.map +1 -0
  848. package/dist/core/{p-a6d14a47.js → p-3983d290.js} +1 -1
  849. package/dist/core/{p-a6d14a47.js.map → p-3983d290.js.map} +1 -1
  850. package/dist/core/p-3e4a8fa7.entry.js +2 -0
  851. package/dist/core/p-3e4a8fa7.entry.js.map +1 -0
  852. package/dist/core/{p-74b2311a.js → p-3f0dd8fa.js} +2 -2
  853. package/dist/core/{p-74b2311a.js.map → p-3f0dd8fa.js.map} +1 -1
  854. package/dist/core/{p-5de606f8.js → p-4191acf2.js} +1 -1
  855. package/dist/core/{p-5de606f8.js.map → p-4191acf2.js.map} +1 -1
  856. package/dist/core/p-4382ee13.entry.js +2 -0
  857. package/dist/core/p-4382ee13.entry.js.map +1 -0
  858. package/dist/core/{p-55cb727e.entry.js → p-443894aa.entry.js} +2 -2
  859. package/dist/core/p-443894aa.entry.js.map +1 -0
  860. package/dist/core/{p-dd4445ee.entry.js → p-45411344.entry.js} +2 -2
  861. package/dist/core/p-45411344.entry.js.map +1 -0
  862. package/dist/core/p-45b869ae.js +2 -0
  863. package/dist/core/{p-9dab01be.js.map → p-45b869ae.js.map} +1 -1
  864. package/dist/core/p-46ddd055.entry.js +2 -0
  865. package/dist/core/p-46ddd055.entry.js.map +1 -0
  866. package/dist/core/{p-72c5997f.entry.js → p-47efa303.entry.js} +2 -2
  867. package/dist/core/p-47efa303.entry.js.map +1 -0
  868. package/dist/core/p-49f584a3.entry.js +2 -0
  869. package/dist/core/p-49f584a3.entry.js.map +1 -0
  870. package/dist/core/p-4c68eb90.entry.js +2 -0
  871. package/dist/core/p-4c68eb90.entry.js.map +1 -0
  872. package/dist/core/p-4faa3ba6.js +2 -0
  873. package/dist/core/{p-fa1e4aea.js.map → p-4faa3ba6.js.map} +1 -1
  874. package/dist/core/{p-1ebf3575.entry.js → p-51f069f2.entry.js} +2 -3
  875. package/dist/core/p-51f069f2.entry.js.map +1 -0
  876. package/dist/core/p-5cf78f1c.entry.js +2 -0
  877. package/dist/core/p-5cf78f1c.entry.js.map +1 -0
  878. package/dist/core/p-5d1f350b.entry.js +2 -0
  879. package/dist/core/p-5d1f350b.entry.js.map +1 -0
  880. package/dist/core/p-5fa30ebf.entry.js +2 -0
  881. package/dist/core/p-5fa30ebf.entry.js.map +1 -0
  882. package/dist/core/{p-d2c370d6.entry.js → p-6378b5af.entry.js} +2 -2
  883. package/dist/core/p-6378b5af.entry.js.map +1 -0
  884. package/dist/core/p-671041de.entry.js +2 -0
  885. package/dist/core/p-671041de.entry.js.map +1 -0
  886. package/dist/core/{p-f6a4bf04.entry.js → p-680c0fee.entry.js} +2 -3
  887. package/dist/core/p-680c0fee.entry.js.map +1 -0
  888. package/dist/core/p-7ba4daf4.js +2 -0
  889. package/dist/core/{p-3464136c.js.map → p-7ba4daf4.js.map} +1 -1
  890. package/dist/core/{p-fc710edb.entry.js → p-7eeb23c5.entry.js} +2 -2
  891. package/dist/core/p-7eeb23c5.entry.js.map +1 -0
  892. package/dist/core/p-815d86ed.entry.js +2 -0
  893. package/dist/core/p-815d86ed.entry.js.map +1 -0
  894. package/dist/core/{p-529ce9a4.entry.js → p-854e705c.entry.js} +2 -2
  895. package/dist/core/p-854e705c.entry.js.map +1 -0
  896. package/dist/core/{p-ffb7495c.js → p-880743a5.js} +1 -1
  897. package/dist/core/{p-ffb7495c.js.map → p-880743a5.js.map} +1 -1
  898. package/dist/core/p-893bc0ef.entry.js +2 -0
  899. package/dist/core/p-893bc0ef.entry.js.map +1 -0
  900. package/dist/core/{p-60963ed7.entry.js → p-8c80d1aa.entry.js} +2 -2
  901. package/dist/core/p-8c80d1aa.entry.js.map +1 -0
  902. package/dist/core/{p-9144dde1.js → p-8dfac7d7.js} +2 -2
  903. package/dist/core/{p-9144dde1.js.map → p-8dfac7d7.js.map} +1 -1
  904. package/dist/core/p-8fc87295.entry.js +2 -0
  905. package/dist/core/p-8fc87295.entry.js.map +1 -0
  906. package/dist/core/p-92b7481f.js +2 -0
  907. package/dist/core/p-92b7481f.js.map +1 -0
  908. package/dist/core/p-92bef3b8.entry.js +2 -0
  909. package/dist/core/p-92bef3b8.entry.js.map +1 -0
  910. package/dist/core/{p-55500e5a.js → p-92f420cb.js} +1 -1
  911. package/dist/core/{p-55500e5a.js.map → p-92f420cb.js.map} +1 -1
  912. package/dist/core/{p-28a50f60.entry.js → p-94bc809d.entry.js} +2 -3
  913. package/dist/core/p-94bc809d.entry.js.map +1 -0
  914. package/dist/core/{p-17ebfe85.js → p-94dd1649.js} +2 -2
  915. package/dist/core/{p-17ebfe85.js.map → p-94dd1649.js.map} +1 -1
  916. package/dist/core/{p-24636c53.js → p-95d41a3b.js} +1 -1
  917. package/dist/core/{p-24636c53.js.map → p-95d41a3b.js.map} +1 -1
  918. package/dist/core/p-9de457bf.entry.js +2 -0
  919. package/dist/core/p-9de457bf.entry.js.map +1 -0
  920. package/dist/core/{p-127af1b4.entry.js → p-9f08ac81.entry.js} +2 -2
  921. package/dist/core/p-9f08ac81.entry.js.map +1 -0
  922. package/dist/core/{p-90c068ff.entry.js → p-a01a9f16.entry.js} +2 -2
  923. package/dist/core/p-a01a9f16.entry.js.map +1 -0
  924. package/dist/core/p-a0b01f1b.entry.js +2 -0
  925. package/dist/core/p-a0b01f1b.entry.js.map +1 -0
  926. package/dist/core/p-a14aa161.entry.js +2 -0
  927. package/dist/core/p-a14aa161.entry.js.map +1 -0
  928. package/dist/core/p-a45a55eb.entry.js +2 -0
  929. package/dist/core/p-a45a55eb.entry.js.map +1 -0
  930. package/dist/core/p-a6221940.js +3 -0
  931. package/dist/core/p-a6221940.js.map +1 -0
  932. package/dist/core/p-a82a8d9c.entry.js +2 -0
  933. package/dist/core/p-a82a8d9c.entry.js.map +1 -0
  934. package/dist/core/{p-715dccc0.entry.js → p-aaad919f.entry.js} +2 -3
  935. package/dist/core/p-aaad919f.entry.js.map +1 -0
  936. package/dist/core/p-b25da41e.entry.js +2 -0
  937. package/dist/core/p-b25da41e.entry.js.map +1 -0
  938. package/dist/core/p-b4b79f0a.entry.js +2 -0
  939. package/dist/core/p-b4b79f0a.entry.js.map +1 -0
  940. package/dist/core/{p-d07d3dcc.entry.js → p-b5ceb3ba.entry.js} +2 -2
  941. package/dist/core/p-b5ceb3ba.entry.js.map +1 -0
  942. package/dist/core/p-b7e96a9d.entry.js +2 -0
  943. package/dist/core/p-b7e96a9d.entry.js.map +1 -0
  944. package/dist/core/{p-148613fd.entry.js → p-c1911b6a.entry.js} +2 -3
  945. package/dist/core/p-c1911b6a.entry.js.map +1 -0
  946. package/dist/core/p-c366f797.entry.js +2 -0
  947. package/dist/core/p-c366f797.entry.js.map +1 -0
  948. package/dist/core/{p-61a2b12a.js → p-c98fe646.js} +2 -2
  949. package/dist/core/{p-61a2b12a.js.map → p-c98fe646.js.map} +1 -1
  950. package/dist/core/{p-67096d72.entry.js → p-c9bd2a6e.entry.js} +2 -2
  951. package/dist/core/p-c9bd2a6e.entry.js.map +1 -0
  952. package/dist/core/p-ce45c786.js +2 -0
  953. package/dist/core/{p-9a4c910d.js.map → p-ce45c786.js.map} +1 -1
  954. package/dist/core/{p-db1f0452.js → p-d0288df5.js} +1 -1
  955. package/dist/core/{p-db1f0452.js.map → p-d0288df5.js.map} +1 -1
  956. package/dist/core/p-d51fa875.entry.js +2 -0
  957. package/dist/core/p-d51fa875.entry.js.map +1 -0
  958. package/dist/core/p-dd45944f.entry.js +2 -0
  959. package/dist/core/p-dd45944f.entry.js.map +1 -0
  960. package/dist/core/{p-0f4f02a6.entry.js → p-de924143.entry.js} +2 -3
  961. package/dist/core/p-de924143.entry.js.map +1 -0
  962. package/dist/core/{p-03990da5.js → p-e0e2e9c1.js} +1 -1
  963. package/dist/core/{p-03990da5.js.map → p-e0e2e9c1.js.map} +1 -1
  964. package/dist/core/p-e1255160.js +2 -0
  965. package/dist/core/p-e1255160.js.map +1 -0
  966. package/dist/core/p-e1a5a373.entry.js +2 -0
  967. package/dist/core/p-e1a5a373.entry.js.map +1 -0
  968. package/dist/core/p-e296ca83.js +2 -0
  969. package/dist/core/{p-7f2c9830.js.map → p-e296ca83.js.map} +1 -1
  970. package/dist/core/p-e44a0fee.js +2 -0
  971. package/dist/core/{p-3a04fb9b.js.map → p-e44a0fee.js.map} +1 -1
  972. package/dist/core/p-e618f1cb.js +2 -0
  973. package/dist/core/{p-003e6cca.js.map → p-e618f1cb.js.map} +1 -1
  974. package/dist/core/{p-0c5c6dee.entry.js → p-e7845795.entry.js} +2 -2
  975. package/dist/core/p-e7845795.entry.js.map +1 -0
  976. package/dist/core/{p-43fc5c70.entry.js → p-ecbb9731.entry.js} +2 -3
  977. package/dist/core/p-ecbb9731.entry.js.map +1 -0
  978. package/dist/core/{p-4988c0bb.entry.js → p-ee1637ef.entry.js} +2 -2
  979. package/dist/core/p-ee1637ef.entry.js.map +1 -0
  980. package/dist/core/p-f0d542f2.js +2 -0
  981. package/dist/core/{p-6278531b.js.map → p-f0d542f2.js.map} +1 -1
  982. package/dist/core/{p-f3967a1d.entry.js → p-f10ad856.entry.js} +2 -3
  983. package/dist/core/p-f10ad856.entry.js.map +1 -0
  984. package/dist/core/{p-151f1b89.entry.js → p-f6416cb8.entry.js} +2 -2
  985. package/dist/core/p-f6416cb8.entry.js.map +1 -0
  986. package/dist/core/{p-c67ddbd3.entry.js → p-fbbd1e5d.entry.js} +2 -3
  987. package/dist/core/p-fbbd1e5d.entry.js.map +1 -0
  988. package/dist/core/{p-30673e46.entry.js → p-fccbecd3.entry.js} +2 -2
  989. package/dist/core/p-fccbecd3.entry.js.map +1 -0
  990. package/dist/core/p-fdead70e.js +2 -0
  991. package/dist/core/{p-4c55142b.js.map → p-fdead70e.js.map} +1 -1
  992. package/dist/esm/app-globals-0f993ce5.js +5 -0
  993. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  994. package/dist/esm/array.utils-5ce9a471.js +43 -0
  995. package/dist/esm/array.utils-5ce9a471.js.map +1 -0
  996. package/dist/esm/constants-0014bc7f.js +24 -0
  997. package/dist/esm/{constants-2499979c.js.map → constants-0014bc7f.js.map} +1 -1
  998. package/dist/esm/constants-122ac484.js +25 -0
  999. package/dist/esm/{constants-78474786.js.map → constants-122ac484.js.map} +1 -1
  1000. package/dist/esm/constants-14f351fd.js +23 -0
  1001. package/dist/esm/{constants-887c5391.js.map → constants-14f351fd.js.map} +1 -1
  1002. package/dist/esm/constants-1998bac1.js +19 -0
  1003. package/dist/esm/{constants-867ac6e2.js.map → constants-1998bac1.js.map} +1 -1
  1004. package/dist/esm/{constants-2b14bb01.js → constants-2d5a0e18.js} +3 -3
  1005. package/dist/esm/{constants-2b14bb01.js.map → constants-2d5a0e18.js.map} +1 -1
  1006. package/dist/esm/constants-43f10674.js +12 -0
  1007. package/dist/esm/{constants-ebec7de8.js.map → constants-43f10674.js.map} +1 -1
  1008. package/dist/esm/{constants-e80d9514.js → constants-4da2b3c0.js} +8 -8
  1009. package/dist/esm/{constants-e80d9514.js.map → constants-4da2b3c0.js.map} +1 -1
  1010. package/dist/esm/constants-66db9786.js +25 -0
  1011. package/dist/esm/{constants-09bda759.js.map → constants-66db9786.js.map} +1 -1
  1012. package/dist/esm/constants-78d0d7ff.js +13 -0
  1013. package/dist/esm/{constants-3df712e2.js.map → constants-78d0d7ff.js.map} +1 -1
  1014. package/dist/esm/constants-a2828485.js +12 -0
  1015. package/dist/esm/{constants-d71c09e0.js.map → constants-a2828485.js.map} +1 -1
  1016. package/dist/esm/constants-a5fadb10.js +29 -0
  1017. package/dist/esm/{constants-6df4edc4.js.map → constants-a5fadb10.js.map} +1 -1
  1018. package/dist/esm/constants-f0f531b6.js +22 -0
  1019. package/dist/esm/{constants-3786b01b.js.map → constants-f0f531b6.js.map} +1 -1
  1020. package/dist/esm/constants-f63d2d63.js +18 -0
  1021. package/dist/esm/{constants-2a283e9a.js.map → constants-f63d2d63.js.map} +1 -1
  1022. package/dist/esm/constants-f6ecfd4e.js +33 -0
  1023. package/dist/esm/{constants-34a29ae2.js.map → constants-f6ecfd4e.js.map} +1 -1
  1024. package/dist/esm/constants-f98e7750.js +22 -0
  1025. package/dist/esm/{constants-27b48cd1.js.map → constants-f98e7750.js.map} +1 -1
  1026. package/dist/esm/constants-ff234810.js +17 -0
  1027. package/dist/esm/{constants-47d7a8bc.js.map → constants-ff234810.js.map} +1 -1
  1028. package/dist/esm/core.js +33 -33
  1029. package/dist/esm/core.js.map +1 -1
  1030. package/dist/esm/form-738c5b12.js +145 -0
  1031. package/dist/esm/form-738c5b12.js.map +1 -0
  1032. package/dist/esm/gov-accordion-item.entry.js +89 -88
  1033. package/dist/esm/gov-accordion-item.entry.js.map +1 -1
  1034. package/dist/esm/gov-accordion.entry.js +63 -62
  1035. package/dist/esm/gov-accordion.entry.js.map +1 -1
  1036. package/dist/esm/gov-attachments_3.entry.js +91 -88
  1037. package/dist/esm/gov-attachments_3.entry.js.map +1 -1
  1038. package/dist/esm/gov-backdrop.entry.js +34 -33
  1039. package/dist/esm/gov-backdrop.entry.js.map +1 -1
  1040. package/dist/esm/gov-breadcrumbs.entry.js +57 -56
  1041. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -1
  1042. package/dist/esm/gov-button.entry.js +166 -165
  1043. package/dist/esm/gov-button.entry.js.map +1 -1
  1044. package/dist/esm/gov-card.entry.js +91 -90
  1045. package/dist/esm/gov-card.entry.js.map +1 -1
  1046. package/dist/esm/gov-chip.entry.js +90 -89
  1047. package/dist/esm/gov-chip.entry.js.map +1 -1
  1048. package/dist/esm/gov-container.entry.js +21 -20
  1049. package/dist/esm/gov-container.entry.js.map +1 -1
  1050. package/dist/esm/gov-control-group.entry.js +27 -26
  1051. package/dist/esm/gov-control-group.entry.js.map +1 -1
  1052. package/dist/esm/gov-cookiebar.entry.js +18 -17
  1053. package/dist/esm/gov-cookiebar.entry.js.map +1 -1
  1054. package/dist/esm/gov-dropdown.entry.js +62 -59
  1055. package/dist/esm/gov-dropdown.entry.js.map +1 -1
  1056. package/dist/esm/gov-empty.entry.js +16 -15
  1057. package/dist/esm/gov-empty.entry.js.map +1 -1
  1058. package/dist/esm/gov-error-code.entry.js +16 -15
  1059. package/dist/esm/gov-error-code.entry.js.map +1 -1
  1060. package/dist/esm/gov-form-autocomplete.entry.js +237 -236
  1061. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  1062. package/dist/esm/gov-form-checkbox-group.entry.js +70 -69
  1063. package/dist/esm/gov-form-checkbox-group.entry.js.map +1 -1
  1064. package/dist/esm/gov-form-checkbox.entry.js +121 -120
  1065. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  1066. package/dist/esm/gov-form-control.entry.js +91 -90
  1067. package/dist/esm/gov-form-control.entry.js.map +1 -1
  1068. package/dist/esm/gov-form-file.entry.js +226 -225
  1069. package/dist/esm/gov-form-file.entry.js.map +1 -1
  1070. package/dist/esm/gov-form-group.entry.js +36 -35
  1071. package/dist/esm/gov-form-group.entry.js.map +1 -1
  1072. package/dist/esm/gov-form-input.entry.js +180 -178
  1073. package/dist/esm/gov-form-input.entry.js.map +1 -1
  1074. package/dist/esm/gov-form-label.entry.js +18 -17
  1075. package/dist/esm/gov-form-label.entry.js.map +1 -1
  1076. package/dist/esm/gov-form-multi-select.entry.js +261 -260
  1077. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  1078. package/dist/esm/gov-form-password-power.entry.js +13 -12
  1079. package/dist/esm/gov-form-password-power.entry.js.map +1 -1
  1080. package/dist/esm/gov-form-radio-group.entry.js +59 -58
  1081. package/dist/esm/gov-form-radio-group.entry.js.map +1 -1
  1082. package/dist/esm/gov-form-radio.entry.js +121 -120
  1083. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  1084. package/dist/esm/gov-form-search.entry.js +16 -15
  1085. package/dist/esm/gov-form-search.entry.js.map +1 -1
  1086. package/dist/esm/gov-form-select.entry.js +151 -150
  1087. package/dist/esm/gov-form-select.entry.js.map +1 -1
  1088. package/dist/esm/gov-form-switch.entry.js +121 -120
  1089. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  1090. package/dist/esm/gov-grid-item.entry.js +18 -17
  1091. package/dist/esm/gov-grid-item.entry.js.map +1 -1
  1092. package/dist/esm/gov-grid.entry.js +16 -15
  1093. package/dist/esm/gov-grid.entry.js.map +1 -1
  1094. package/dist/esm/gov-icon.entry.js +96 -95
  1095. package/dist/esm/gov-icon.entry.js.map +1 -1
  1096. package/dist/esm/gov-infobar.entry.js +71 -70
  1097. package/dist/esm/gov-infobar.entry.js.map +1 -1
  1098. package/dist/esm/gov-layout-column.entry.js +13 -12
  1099. package/dist/esm/gov-layout-column.entry.js.map +1 -1
  1100. package/dist/esm/gov-layout.entry.js +22 -21
  1101. package/dist/esm/gov-layout.entry.js.map +1 -1
  1102. package/dist/esm/gov-loading.entry.js +15 -14
  1103. package/dist/esm/gov-loading.entry.js.map +1 -1
  1104. package/dist/esm/gov-message.entry.js +28 -27
  1105. package/dist/esm/gov-message.entry.js.map +1 -1
  1106. package/dist/esm/gov-modal.entry.js +93 -90
  1107. package/dist/esm/gov-modal.entry.js.map +1 -1
  1108. package/dist/esm/gov-nav-item.entry.js +26 -25
  1109. package/dist/esm/gov-nav-item.entry.js.map +1 -1
  1110. package/dist/esm/gov-nav.entry.js +29 -28
  1111. package/dist/esm/gov-nav.entry.js.map +1 -1
  1112. package/dist/esm/gov-pagination.entry.js +193 -192
  1113. package/dist/esm/gov-pagination.entry.js.map +1 -1
  1114. package/dist/esm/gov-prompt.entry.js +89 -88
  1115. package/dist/esm/gov-prompt.entry.js.map +1 -1
  1116. package/dist/esm/gov-side-nav-item.entry.js +74 -73
  1117. package/dist/esm/gov-side-nav-item.entry.js.map +1 -1
  1118. package/dist/esm/gov-side-nav.entry.js +43 -42
  1119. package/dist/esm/gov-side-nav.entry.js.map +1 -1
  1120. package/dist/esm/gov-skeleton.entry.js +92 -91
  1121. package/dist/esm/gov-skeleton.entry.js.map +1 -1
  1122. package/dist/esm/gov-spacer.entry.js +39 -38
  1123. package/dist/esm/gov-spacer.entry.js.map +1 -1
  1124. package/dist/esm/gov-statsbar-item.entry.js +28 -27
  1125. package/dist/esm/gov-statsbar-item.entry.js.map +1 -1
  1126. package/dist/esm/gov-statsbar.entry.js +41 -40
  1127. package/dist/esm/gov-statsbar.entry.js.map +1 -1
  1128. package/dist/esm/gov-stepper-item.entry.js +64 -63
  1129. package/dist/esm/gov-stepper-item.entry.js.map +1 -1
  1130. package/dist/esm/gov-stepper.entry.js +39 -38
  1131. package/dist/esm/gov-stepper.entry.js.map +1 -1
  1132. package/dist/esm/gov-tabs-item.entry.js +48 -40
  1133. package/dist/esm/gov-tabs-item.entry.js.map +1 -1
  1134. package/dist/esm/gov-tabs.entry.js +196 -183
  1135. package/dist/esm/gov-tabs.entry.js.map +1 -1
  1136. package/dist/esm/gov-tag.entry.js +43 -42
  1137. package/dist/esm/gov-tag.entry.js.map +1 -1
  1138. package/dist/esm/gov-tile.entry.js +27 -26
  1139. package/dist/esm/gov-tile.entry.js.map +1 -1
  1140. package/dist/esm/gov-tiles.entry.js +18 -17
  1141. package/dist/esm/gov-tiles.entry.js.map +1 -1
  1142. package/dist/esm/gov-toast.entry.js +81 -80
  1143. package/dist/esm/gov-toast.entry.js.map +1 -1
  1144. package/dist/esm/gov-tooltip-content.entry.js +39 -38
  1145. package/dist/esm/gov-tooltip-content.entry.js.map +1 -1
  1146. package/dist/esm/gov-tooltip.entry.js +216 -207
  1147. package/dist/esm/gov-tooltip.entry.js.map +1 -1
  1148. package/dist/esm/gov-wizard-item.entry.js +97 -96
  1149. package/dist/esm/gov-wizard-item.entry.js.map +1 -1
  1150. package/dist/esm/gov-wizard.entry.js +56 -55
  1151. package/dist/esm/gov-wizard.entry.js.map +1 -1
  1152. package/dist/esm/gov.log-431da6b2.js +25 -0
  1153. package/dist/esm/{gov.log-49da0221.js.map → gov.log-431da6b2.js.map} +1 -1
  1154. package/dist/esm/helpers-5d179d4b.js +17 -0
  1155. package/dist/{cjs/helpers-2c870ff5.js.map → esm/helpers-5d179d4b.js.map} +1 -1
  1156. package/dist/esm/index-84a63a3e.js +2010 -0
  1157. package/dist/esm/index-84a63a3e.js.map +1 -0
  1158. package/dist/esm/loader.js +6 -4
  1159. package/dist/esm/loader.js.map +1 -1
  1160. package/dist/esm/props-ec3beb91.js +14 -0
  1161. package/dist/esm/{props-a85d9c89.js.map → props-ec3beb91.js.map} +1 -1
  1162. package/dist/esm/sizes-5b9e579f.js +18 -0
  1163. package/dist/esm/{sizes-6c5943b4.js.map → sizes-5b9e579f.js.map} +1 -1
  1164. package/dist/esm/stencil.utils-5d8e3d11.js +9 -0
  1165. package/dist/esm/{stencil.utils-7cb5b075.js.map → stencil.utils-5d8e3d11.js.map} +1 -1
  1166. package/dist/esm/string.utils-5ce3f551.js +20 -0
  1167. package/dist/esm/{string.utils-f268fc6b.js.map → string.utils-5ce3f551.js.map} +1 -1
  1168. package/dist/esm/template-94812ab3.js +123 -0
  1169. package/dist/esm/template-94812ab3.js.map +1 -0
  1170. package/dist/esm/{utils-c057a3fa.js → utils-e10e994d.js} +9 -9
  1171. package/dist/esm/{utils-c057a3fa.js.map → utils-e10e994d.js.map} +1 -1
  1172. package/dist/esm/variants-69f013c1.js +18 -0
  1173. package/dist/esm/{variants-2b936d58.js.map → variants-69f013c1.js.map} +1 -1
  1174. package/dist/esm/wcag-6ad92279.js +62 -0
  1175. package/dist/esm/{wcag-7d25e12b.js.map → wcag-6ad92279.js.map} +1 -1
  1176. package/dist/esm/{win-1dbd3f5c.js → win-b64cd8a6.js} +16 -16
  1177. package/dist/esm/{win-1dbd3f5c.js.map → win-b64cd8a6.js.map} +1 -1
  1178. package/dist/globals.d.ts +2 -0
  1179. package/dist/hydrate/index.d.ts +36 -18
  1180. package/dist/hydrate/index.js +23082 -11872
  1181. package/dist/hydrate/index.mjs +24102 -0
  1182. package/dist/hydrate/package.json +7 -1
  1183. package/dist/stencil.config.js +78 -78
  1184. package/dist/stencil.config.js.map +1 -1
  1185. package/dist/types/components/gov-accordion/constants.d.ts +11 -11
  1186. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +53 -53
  1187. package/dist/types/components/gov-accordion/gov-accordion.d.ts +37 -37
  1188. package/dist/types/components/gov-accordion/gov-accordion.types.d.ts +4 -4
  1189. package/dist/types/components/gov-attachments/constants.d.ts +7 -7
  1190. package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +2 -2
  1191. package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +21 -21
  1192. package/dist/types/components/gov-attachments/gov-attachments.d.ts +17 -17
  1193. package/dist/types/components/gov-backdrop/constants.d.ts +2 -2
  1194. package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +25 -25
  1195. package/dist/types/components/gov-breadcrumbs/constants.d.ts +1 -1
  1196. package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +2 -2
  1197. package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +38 -38
  1198. package/dist/types/components/gov-button/button/constants.d.ts +12 -12
  1199. package/dist/types/components/gov-button/button/gov-button.d.ts +176 -176
  1200. package/dist/types/components/gov-button/button/gov-button.types.d.ts +1 -1
  1201. package/dist/types/components/gov-button/dropdown/constants.d.ts +4 -4
  1202. package/dist/types/components/gov-button/dropdown/gov-dropdown.d.ts +34 -29
  1203. package/dist/types/components/gov-button/dropdown/gov-dropdown.types.d.ts +1 -1
  1204. package/dist/types/components/gov-card/constants.d.ts +11 -11
  1205. package/dist/types/components/gov-card/gov-card.d.ts +56 -56
  1206. package/dist/types/components/gov-card/interfaces.d.ts +2 -2
  1207. package/dist/types/components/gov-chip/constants.d.ts +7 -7
  1208. package/dist/types/components/gov-chip/gov-chip.d.ts +89 -89
  1209. package/dist/types/components/gov-container/constants.d.ts +1 -1
  1210. package/dist/types/components/gov-container/gov-container.d.ts +10 -10
  1211. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  1212. package/dist/types/components/gov-control-group/gov-control-group.d.ts +13 -13
  1213. package/dist/types/components/gov-cookiebar/constants.d.ts +6 -6
  1214. package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +4 -4
  1215. package/dist/types/components/gov-empty/constants.d.ts +4 -4
  1216. package/dist/types/components/gov-empty/gov-empty.d.ts +4 -4
  1217. package/dist/types/components/gov-error-code/constants.d.ts +4 -4
  1218. package/dist/types/components/gov-error-code/gov-error-code.d.ts +4 -4
  1219. package/dist/types/components/gov-form/autocomplete/constants.d.ts +5 -5
  1220. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +160 -160
  1221. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +3 -3
  1222. package/dist/types/components/gov-form/checkbox/constants.d.ts +3 -3
  1223. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +84 -84
  1224. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.types.d.ts +2 -2
  1225. package/dist/types/components/gov-form/control/constants.d.ts +3 -3
  1226. package/dist/types/components/gov-form/control/gov-form-control.d.ts +44 -44
  1227. package/dist/types/components/gov-form/file/constants.d.ts +7 -7
  1228. package/dist/types/components/gov-form/file/gov-form-file.d.ts +138 -138
  1229. package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +6 -6
  1230. package/dist/types/components/gov-form/group/constants.d.ts +5 -5
  1231. package/dist/types/components/gov-form/group/gov-form-checkbox-group.d.ts +25 -25
  1232. package/dist/types/components/gov-form/group/gov-form-group.d.ts +15 -15
  1233. package/dist/types/components/gov-form/group/gov-form-group.types.d.ts +2 -2
  1234. package/dist/types/components/gov-form/group/gov-form-radio-group.d.ts +26 -26
  1235. package/dist/types/components/gov-form/input/constants.d.ts +15 -15
  1236. package/dist/types/components/gov-form/input/gov-form-input.d.ts +184 -180
  1237. package/dist/types/components/gov-form/input/gov-form-input.types.d.ts +1 -1
  1238. package/dist/types/components/gov-form/label/constants.d.ts +2 -2
  1239. package/dist/types/components/gov-form/label/gov-form-label.d.ts +22 -22
  1240. package/dist/types/components/gov-form/message/constants.d.ts +3 -3
  1241. package/dist/types/components/gov-form/message/gov-form-message.d.ts +15 -15
  1242. package/dist/types/components/gov-form/multiselect/constants.d.ts +4 -4
  1243. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +140 -140
  1244. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.types.d.ts +4 -4
  1245. package/dist/types/components/gov-form/password-power/constants.d.ts +3 -3
  1246. package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +5 -5
  1247. package/dist/types/components/gov-form/radio/constants.d.ts +5 -5
  1248. package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +84 -84
  1249. package/dist/types/components/gov-form/radio/gov-form-radio.types.d.ts +2 -2
  1250. package/dist/types/components/gov-form/search/constants.d.ts +3 -3
  1251. package/dist/types/components/gov-form/search/gov-form-search.d.ts +6 -6
  1252. package/dist/types/components/gov-form/select/constants.d.ts +2 -2
  1253. package/dist/types/components/gov-form/select/gov-form-select.d.ts +107 -107
  1254. package/dist/types/components/gov-form/select/gov-form-select.types.d.ts +4 -4
  1255. package/dist/types/components/gov-form/switch/constants.d.ts +4 -4
  1256. package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +84 -84
  1257. package/dist/types/components/gov-form/switch/gov-form-switch.types.d.ts +2 -2
  1258. package/dist/types/components/gov-grid/constants.d.ts +2 -2
  1259. package/dist/types/components/gov-grid/gov-grid-item.d.ts +24 -24
  1260. package/dist/types/components/gov-grid/gov-grid.d.ts +12 -12
  1261. package/dist/types/components/gov-icon/constants.d.ts +5 -5
  1262. package/dist/types/components/gov-icon/gov-icon.d.ts +21 -21
  1263. package/dist/types/components/gov-icon/helpers.d.ts +2 -2
  1264. package/dist/types/components/gov-infobar/constants.d.ts +7 -7
  1265. package/dist/types/components/gov-infobar/gov-infobar.d.ts +45 -45
  1266. package/dist/types/components/gov-infobar/gov-infobar.types.d.ts +1 -1
  1267. package/dist/types/components/gov-layout/constants.d.ts +8 -8
  1268. package/dist/types/components/gov-layout/gov-layout-column.d.ts +4 -4
  1269. package/dist/types/components/gov-layout/gov-layout.d.ts +17 -17
  1270. package/dist/types/components/gov-loading/loading/constants.d.ts +3 -3
  1271. package/dist/types/components/gov-loading/loading/gov-loading.d.ts +4 -4
  1272. package/dist/types/components/gov-loading/skeleton/constants.d.ts +8 -8
  1273. package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +48 -48
  1274. package/dist/types/components/gov-message/constants.d.ts +4 -4
  1275. package/dist/types/components/gov-message/gov-message.d.ts +9 -9
  1276. package/dist/types/components/gov-modal/constants.d.ts +12 -12
  1277. package/dist/types/components/gov-modal/gov-modal.d.ts +74 -66
  1278. package/dist/types/components/gov-nav/constants.d.ts +4 -4
  1279. package/dist/types/components/gov-nav/gov-nav-item.d.ts +10 -10
  1280. package/dist/types/components/gov-nav/gov-nav.d.ts +15 -15
  1281. package/dist/types/components/gov-pagination/constants.d.ts +10 -10
  1282. package/dist/types/components/gov-pagination/gov-pagination.d.ts +97 -97
  1283. package/dist/types/components/gov-pagination/gov-pagination.types.d.ts +1 -1
  1284. package/dist/types/components/gov-pagination/pagination.d.ts +9 -9
  1285. package/dist/types/components/gov-promp/constants.d.ts +10 -10
  1286. package/dist/types/components/gov-promp/gov-prompt.d.ts +62 -62
  1287. package/dist/types/components/gov-side-nav/constants.d.ts +11 -11
  1288. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.d.ts +2 -2
  1289. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +63 -63
  1290. package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +28 -28
  1291. package/dist/types/components/gov-spacer/constants.d.ts +6 -6
  1292. package/dist/types/components/gov-spacer/gov-spacer.d.ts +15 -15
  1293. package/dist/types/components/gov-statsbar/constants.d.ts +7 -7
  1294. package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +10 -10
  1295. package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +16 -16
  1296. package/dist/types/components/gov-stepper/constants.d.ts +11 -11
  1297. package/dist/types/components/gov-stepper/gov-stepper-item.d.d.ts +2 -2
  1298. package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +43 -43
  1299. package/dist/types/components/gov-stepper/gov-stepper.d.ts +15 -15
  1300. package/dist/types/components/gov-tabs/constants.d.ts +11 -11
  1301. package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +43 -35
  1302. package/dist/types/components/gov-tabs/gov-tabs.d.ts +68 -67
  1303. package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +7 -6
  1304. package/dist/types/components/gov-tag/constants.d.ts +1 -1
  1305. package/dist/types/components/gov-tag/gov-tag.d.ts +27 -27
  1306. package/dist/types/components/gov-tile/constants.d.ts +7 -7
  1307. package/dist/types/components/gov-tile/container/constants.d.ts +1 -1
  1308. package/dist/types/components/gov-tile/container/gov-tiles.d.ts +13 -13
  1309. package/dist/types/components/gov-tile/gov-tile.d.ts +18 -18
  1310. package/dist/types/components/gov-toast/constants.d.ts +6 -6
  1311. package/dist/types/components/gov-toast/gov-toast.d.ts +49 -49
  1312. package/dist/types/components/gov-tooltip/constants.d.ts +6 -6
  1313. package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +25 -25
  1314. package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +52 -51
  1315. package/dist/types/components/gov-wizard/constants.d.ts +10 -10
  1316. package/dist/types/components/gov-wizard/gov-wizard-item.d.d.ts +2 -2
  1317. package/dist/types/components/gov-wizard/gov-wizard-item.d.ts +67 -67
  1318. package/dist/types/components/gov-wizard/gov-wizard-item.types.d.ts +1 -1
  1319. package/dist/types/components/gov-wizard/gov-wizard.d.ts +28 -28
  1320. package/dist/types/components.d.ts +422 -0
  1321. package/dist/types/core/constants/sizes.d.ts +11 -11
  1322. package/dist/types/core/constants/tags.d.ts +9 -9
  1323. package/dist/types/core/constants/variants.d.ts +8 -8
  1324. package/dist/types/helpers/Dom/form.types.d.ts +8 -8
  1325. package/dist/types/helpers/Dom/template.types.d.ts +10 -10
  1326. package/dist/types/helpers/Dom/win.d.ts +14 -14
  1327. package/dist/types/helpers/Log/gov.log.d.ts +2 -2
  1328. package/dist/types/pages/Accordion.d.ts +1 -1
  1329. package/dist/types/pages/Breadcrumbs.d.ts +1 -1
  1330. package/dist/types/pages/Button.d.ts +1 -1
  1331. package/dist/types/pages/Card.d.ts +1 -1
  1332. package/dist/types/pages/Chip.d.ts +1 -1
  1333. package/dist/types/pages/Container.d.ts +1 -1
  1334. package/dist/types/pages/ControlGroup.d.ts +1 -1
  1335. package/dist/types/pages/Cookiebar.d.ts +1 -1
  1336. package/dist/types/pages/Empty.d.ts +1 -1
  1337. package/dist/types/pages/Error.d.ts +1 -1
  1338. package/dist/types/pages/FormLabel.d.ts +1 -1
  1339. package/dist/types/pages/FormMessage.d.ts +1 -1
  1340. package/dist/types/pages/Forms.d.ts +2 -2
  1341. package/dist/types/pages/FormsRestructure.d.ts +1 -1
  1342. package/dist/types/pages/Grid.d.ts +1 -1
  1343. package/dist/types/pages/Home.d.ts +1 -1
  1344. package/dist/types/pages/Infobar.d.ts +1 -1
  1345. package/dist/types/pages/Layout.d.ts +1 -1
  1346. package/dist/types/pages/Loading.d.ts +1 -1
  1347. package/dist/types/pages/Message.d.ts +1 -1
  1348. package/dist/types/pages/Modal.d.ts +1 -1
  1349. package/dist/types/pages/Nav.d.ts +1 -1
  1350. package/dist/types/pages/Pagination.d.ts +1 -1
  1351. package/dist/types/pages/Prompt.d.ts +1 -1
  1352. package/dist/types/pages/SideNav.d.ts +1 -1
  1353. package/dist/types/pages/Spacer.d.ts +1 -1
  1354. package/dist/types/pages/Statsbar.d.ts +1 -1
  1355. package/dist/types/pages/Stepper.d.ts +1 -1
  1356. package/dist/types/pages/Tabs.d.ts +1 -1
  1357. package/dist/types/pages/Tag.d.ts +1 -1
  1358. package/dist/types/pages/Tiles.d.ts +1 -1
  1359. package/dist/types/pages/ToastMessage.d.ts +1 -1
  1360. package/dist/types/pages/ToastMessageCountdown.d.ts +1 -1
  1361. package/dist/types/pages/Tooltip.d.ts +1 -1
  1362. package/dist/types/pages/Typography.d.ts +1 -1
  1363. package/dist/types/pages/Wizard.d.ts +1 -1
  1364. package/dist/types/stencil-public-runtime.d.ts +35 -13
  1365. package/dist/types/types/event.types.d.ts +2 -2
  1366. package/dist/types/types/typings.d.ts +6 -0
  1367. package/dist/types/utils/helpers.types.d.ts +12 -12
  1368. package/dist/types/utils/icon.utils.d.ts +2 -2
  1369. package/loader/cdn.js +1 -3
  1370. package/loader/index.cjs.js +1 -3
  1371. package/loader/index.d.ts +3 -0
  1372. package/loader/index.es2017.js +1 -3
  1373. package/loader/index.js +1 -3
  1374. package/package.json +7 -7
  1375. package/dist/cjs/array.utils-5a024b3a.js +0 -46
  1376. package/dist/cjs/array.utils-5a024b3a.js.map +0 -1
  1377. package/dist/cjs/constants-0c6c8e11.js +0 -30
  1378. package/dist/cjs/constants-25f7a6be.js +0 -22
  1379. package/dist/cjs/constants-2b1c31b8.js +0 -15
  1380. package/dist/cjs/constants-427a2843.js +0 -33
  1381. package/dist/cjs/constants-440cd5c8.js +0 -29
  1382. package/dist/cjs/constants-66cb0615.js +0 -20
  1383. package/dist/cjs/constants-6df82618.js +0 -21
  1384. package/dist/cjs/constants-97eea364.js +0 -14
  1385. package/dist/cjs/constants-caad94b4.js +0 -16
  1386. package/dist/cjs/constants-dde21dcf.js +0 -30
  1387. package/dist/cjs/form-893791cf.js +0 -163
  1388. package/dist/cjs/form-893791cf.js.map +0 -1
  1389. package/dist/cjs/gov.log-b842920d.js +0 -28
  1390. package/dist/cjs/helpers-2c870ff5.js +0 -19
  1391. package/dist/cjs/index-7b6bba34.js +0 -2721
  1392. package/dist/cjs/index-7b6bba34.js.map +0 -1
  1393. package/dist/cjs/props-d6146e54.js +0 -16
  1394. package/dist/cjs/sizes-79872c2a.js +0 -18
  1395. package/dist/cjs/stencil.utils-22814956.js +0 -11
  1396. package/dist/cjs/string.utils-0f08c48c.js +0 -24
  1397. package/dist/cjs/template-9534c584.js +0 -132
  1398. package/dist/cjs/template-9534c584.js.map +0 -1
  1399. package/dist/cjs/variants-f5ffeef3.js +0 -18
  1400. package/dist/cjs/wcag-e6257f27.js +0 -67
  1401. package/dist/components/p-003e6cca.js +0 -2
  1402. package/dist/components/p-033f8bda.js +0 -2
  1403. package/dist/components/p-033f8bda.js.map +0 -1
  1404. package/dist/components/p-156b4f92.js +0 -2
  1405. package/dist/components/p-156b4f92.js.map +0 -1
  1406. package/dist/components/p-2bdd00a0.js +0 -2
  1407. package/dist/components/p-2bdd00a0.js.map +0 -1
  1408. package/dist/components/p-2dee9951.js +0 -2
  1409. package/dist/components/p-2dee9951.js.map +0 -1
  1410. package/dist/components/p-3464136c.js +0 -2
  1411. package/dist/components/p-3a04fb9b.js +0 -2
  1412. package/dist/components/p-3c71d697.js +0 -2
  1413. package/dist/components/p-4e1215f7.js.map +0 -1
  1414. package/dist/components/p-4ff831e3.js +0 -2
  1415. package/dist/components/p-4ff831e3.js.map +0 -1
  1416. package/dist/components/p-6278531b.js +0 -2
  1417. package/dist/components/p-692b78d9.js.map +0 -1
  1418. package/dist/components/p-768b9ba0.js.map +0 -1
  1419. package/dist/components/p-7f2c9830.js +0 -2
  1420. package/dist/components/p-9a4c910d.js +0 -2
  1421. package/dist/components/p-b9ee51d6.js +0 -3
  1422. package/dist/components/p-b9ee51d6.js.map +0 -1
  1423. package/dist/components/p-c3fdf866.js +0 -2
  1424. package/dist/components/p-c3fdf866.js.map +0 -1
  1425. package/dist/components/p-f45783e0.js.map +0 -1
  1426. package/dist/components/p-f8b7ea69.js +0 -3
  1427. package/dist/components/p-f8b7ea69.js.map +0 -1
  1428. package/dist/components/p-fa1e4aea.js +0 -2
  1429. package/dist/core/p-0028fadc.entry.js +0 -2
  1430. package/dist/core/p-0028fadc.entry.js.map +0 -1
  1431. package/dist/core/p-003e6cca.js +0 -2
  1432. package/dist/core/p-0c5c6dee.entry.js.map +0 -1
  1433. package/dist/core/p-0e53df52.entry.js +0 -3
  1434. package/dist/core/p-0e53df52.entry.js.map +0 -1
  1435. package/dist/core/p-0f4f02a6.entry.js.map +0 -1
  1436. package/dist/core/p-127af1b4.entry.js.map +0 -1
  1437. package/dist/core/p-148613fd.entry.js.map +0 -1
  1438. package/dist/core/p-151f1b89.entry.js.map +0 -1
  1439. package/dist/core/p-1ebf3575.entry.js.map +0 -1
  1440. package/dist/core/p-1f769a40.entry.js.map +0 -1
  1441. package/dist/core/p-28a50f60.entry.js.map +0 -1
  1442. package/dist/core/p-2d15339f.entry.js +0 -3
  1443. package/dist/core/p-2d15339f.entry.js.map +0 -1
  1444. package/dist/core/p-2d1f3d62.entry.js +0 -2
  1445. package/dist/core/p-2d1f3d62.entry.js.map +0 -1
  1446. package/dist/core/p-30673e46.entry.js.map +0 -1
  1447. package/dist/core/p-3464136c.js +0 -2
  1448. package/dist/core/p-3a04fb9b.js +0 -2
  1449. package/dist/core/p-42072b8f.entry.js +0 -2
  1450. package/dist/core/p-42072b8f.entry.js.map +0 -1
  1451. package/dist/core/p-43fc5c70.entry.js.map +0 -1
  1452. package/dist/core/p-46467293.entry.js +0 -3
  1453. package/dist/core/p-46467293.entry.js.map +0 -1
  1454. package/dist/core/p-4988c0bb.entry.js.map +0 -1
  1455. package/dist/core/p-4c55142b.js +0 -2
  1456. package/dist/core/p-529ce9a4.entry.js.map +0 -1
  1457. package/dist/core/p-53e0ad52.entry.js +0 -2
  1458. package/dist/core/p-53e0ad52.entry.js.map +0 -1
  1459. package/dist/core/p-542ce647.entry.js +0 -2
  1460. package/dist/core/p-542ce647.entry.js.map +0 -1
  1461. package/dist/core/p-54fa7af5.entry.js +0 -2
  1462. package/dist/core/p-54fa7af5.entry.js.map +0 -1
  1463. package/dist/core/p-555eaa93.entry.js.map +0 -1
  1464. package/dist/core/p-55cb727e.entry.js.map +0 -1
  1465. package/dist/core/p-5bc604a3.js +0 -3
  1466. package/dist/core/p-5bc604a3.js.map +0 -1
  1467. package/dist/core/p-60963ed7.entry.js.map +0 -1
  1468. package/dist/core/p-60d681a6.entry.js +0 -2
  1469. package/dist/core/p-60d681a6.entry.js.map +0 -1
  1470. package/dist/core/p-6278531b.js +0 -2
  1471. package/dist/core/p-67096d72.entry.js.map +0 -1
  1472. package/dist/core/p-6bf8e7bf.entry.js.map +0 -1
  1473. package/dist/core/p-705efbf1.entry.js +0 -2
  1474. package/dist/core/p-705efbf1.entry.js.map +0 -1
  1475. package/dist/core/p-715dccc0.entry.js.map +0 -1
  1476. package/dist/core/p-71ca4aee.entry.js +0 -3
  1477. package/dist/core/p-71ca4aee.entry.js.map +0 -1
  1478. package/dist/core/p-72c5997f.entry.js.map +0 -1
  1479. package/dist/core/p-74882c70.entry.js +0 -2
  1480. package/dist/core/p-74882c70.entry.js.map +0 -1
  1481. package/dist/core/p-7724b535.js +0 -2
  1482. package/dist/core/p-7724b535.js.map +0 -1
  1483. package/dist/core/p-7abfd047.entry.js +0 -3
  1484. package/dist/core/p-7abfd047.entry.js.map +0 -1
  1485. package/dist/core/p-7d921045.entry.js +0 -3
  1486. package/dist/core/p-7d921045.entry.js.map +0 -1
  1487. package/dist/core/p-7f2c9830.js +0 -2
  1488. package/dist/core/p-90c068ff.entry.js.map +0 -1
  1489. package/dist/core/p-9469ecc2.entry.js +0 -2
  1490. package/dist/core/p-9469ecc2.entry.js.map +0 -1
  1491. package/dist/core/p-9a4c910d.js +0 -2
  1492. package/dist/core/p-9c04470d.entry.js +0 -2
  1493. package/dist/core/p-9c04470d.entry.js.map +0 -1
  1494. package/dist/core/p-9dab01be.js +0 -2
  1495. package/dist/core/p-a35484ed.entry.js +0 -2
  1496. package/dist/core/p-a35484ed.entry.js.map +0 -1
  1497. package/dist/core/p-aaf2510a.entry.js.map +0 -1
  1498. package/dist/core/p-ab1c25e7.entry.js +0 -3
  1499. package/dist/core/p-ab1c25e7.entry.js.map +0 -1
  1500. package/dist/core/p-b7e0b030.entry.js +0 -2
  1501. package/dist/core/p-b7e0b030.entry.js.map +0 -1
  1502. package/dist/core/p-b88d732b.entry.js +0 -3
  1503. package/dist/core/p-b88d732b.entry.js.map +0 -1
  1504. package/dist/core/p-bdd4ee7c.entry.js +0 -3
  1505. package/dist/core/p-bdd4ee7c.entry.js.map +0 -1
  1506. package/dist/core/p-be2f3b8f.entry.js +0 -2
  1507. package/dist/core/p-be2f3b8f.entry.js.map +0 -1
  1508. package/dist/core/p-c67ddbd3.entry.js.map +0 -1
  1509. package/dist/core/p-ce1486b8.entry.js +0 -2
  1510. package/dist/core/p-ce1486b8.entry.js.map +0 -1
  1511. package/dist/core/p-d07d3dcc.entry.js.map +0 -1
  1512. package/dist/core/p-d2c370d6.entry.js.map +0 -1
  1513. package/dist/core/p-d513468a.entry.js +0 -2
  1514. package/dist/core/p-d513468a.entry.js.map +0 -1
  1515. package/dist/core/p-d6eed6df.entry.js +0 -3
  1516. package/dist/core/p-d6eed6df.entry.js.map +0 -1
  1517. package/dist/core/p-dd4445ee.entry.js.map +0 -1
  1518. package/dist/core/p-e5bcedb7.entry.js +0 -2
  1519. package/dist/core/p-e5bcedb7.entry.js.map +0 -1
  1520. package/dist/core/p-eaedc9e3.entry.js +0 -2
  1521. package/dist/core/p-eaedc9e3.entry.js.map +0 -1
  1522. package/dist/core/p-f2206bbb.entry.js +0 -2
  1523. package/dist/core/p-f2206bbb.entry.js.map +0 -1
  1524. package/dist/core/p-f2f2c14a.entry.js.map +0 -1
  1525. package/dist/core/p-f3967a1d.entry.js.map +0 -1
  1526. package/dist/core/p-f4ef1b95.entry.js +0 -2
  1527. package/dist/core/p-f4ef1b95.entry.js.map +0 -1
  1528. package/dist/core/p-f6a4bf04.entry.js.map +0 -1
  1529. package/dist/core/p-fa1e4aea.js +0 -2
  1530. package/dist/core/p-fc710edb.entry.js.map +0 -1
  1531. package/dist/core/p-ff3323bd.entry.js +0 -3
  1532. package/dist/core/p-ff3323bd.entry.js.map +0 -1
  1533. package/dist/esm/array.utils-b27436ea.js +0 -43
  1534. package/dist/esm/array.utils-b27436ea.js.map +0 -1
  1535. package/dist/esm/constants-09bda759.js +0 -25
  1536. package/dist/esm/constants-2499979c.js +0 -24
  1537. package/dist/esm/constants-27b48cd1.js +0 -22
  1538. package/dist/esm/constants-2a283e9a.js +0 -18
  1539. package/dist/esm/constants-34a29ae2.js +0 -33
  1540. package/dist/esm/constants-3786b01b.js +0 -22
  1541. package/dist/esm/constants-3df712e2.js +0 -13
  1542. package/dist/esm/constants-47d7a8bc.js +0 -17
  1543. package/dist/esm/constants-6df4edc4.js +0 -29
  1544. package/dist/esm/constants-78474786.js +0 -25
  1545. package/dist/esm/constants-867ac6e2.js +0 -19
  1546. package/dist/esm/constants-887c5391.js +0 -23
  1547. package/dist/esm/constants-d71c09e0.js +0 -12
  1548. package/dist/esm/constants-ebec7de8.js +0 -12
  1549. package/dist/esm/form-b81fd97e.js +0 -145
  1550. package/dist/esm/form-b81fd97e.js.map +0 -1
  1551. package/dist/esm/gov.log-49da0221.js +0 -25
  1552. package/dist/esm/helpers-bc0fd116.js +0 -17
  1553. package/dist/esm/helpers-bc0fd116.js.map +0 -1
  1554. package/dist/esm/index-eb59f132.js +0 -2690
  1555. package/dist/esm/index-eb59f132.js.map +0 -1
  1556. package/dist/esm/polyfills/core-js.js +0 -11
  1557. package/dist/esm/polyfills/dom.js +0 -79
  1558. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1559. package/dist/esm/polyfills/index.js +0 -34
  1560. package/dist/esm/polyfills/system.js +0 -6
  1561. package/dist/esm/props-a85d9c89.js +0 -14
  1562. package/dist/esm/sizes-6c5943b4.js +0 -18
  1563. package/dist/esm/stencil.utils-7cb5b075.js +0 -9
  1564. package/dist/esm/string.utils-f268fc6b.js +0 -20
  1565. package/dist/esm/template-a0067bb6.js +0 -123
  1566. package/dist/esm/template-a0067bb6.js.map +0 -1
  1567. package/dist/esm/variants-2b936d58.js +0 -18
  1568. package/dist/esm/wcag-7d25e12b.js +0 -62
@@ -1,2690 +0,0 @@
1
- const NAMESPACE = 'core';
2
-
3
- /**
4
- * Virtual DOM patching algorithm based on Snabbdom by
5
- * Simon Friis Vindum (@paldepind)
6
- * Licensed under the MIT License
7
- * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
- *
9
- * Modified for Stencil's renderer and slot projection
10
- */
11
- let contentRef;
12
- let hostTagName;
13
- let useNativeShadowDom = false;
14
- let checkSlotFallbackVisibility = false;
15
- let checkSlotRelocate = false;
16
- let isSvgMode = false;
17
- let queuePending = false;
18
- const getAssetPath = (path) => {
19
- const assetUrl = new URL(path, plt.$resourcesUrl$);
20
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
21
- };
22
- const createTime = (fnName, tagName = '') => {
23
- {
24
- return () => {
25
- return;
26
- };
27
- }
28
- };
29
- const uniqueTime = (key, measureText) => {
30
- {
31
- return () => {
32
- return;
33
- };
34
- }
35
- };
36
- const CONTENT_REF_ID = 'r';
37
- const ORG_LOCATION_ID = 'o';
38
- const SLOT_NODE_ID = 's';
39
- const TEXT_NODE_ID = 't';
40
- const HYDRATE_ID = 's-id';
41
- const HYDRATED_STYLE_ID = 'sty-id';
42
- const HYDRATE_CHILD_ID = 'c-id';
43
- /**
44
- * Default style mode id
45
- */
46
- /**
47
- * Reusable empty obj/array
48
- * Don't add values to these!!
49
- */
50
- const EMPTY_OBJ = {};
51
- /**
52
- * Check whether a value is a 'complex type', defined here as an object or a
53
- * function.
54
- *
55
- * @param o the value to check
56
- * @returns whether it's a complex type or not
57
- */
58
- const isComplexType = (o) => {
59
- // https://jsperf.com/typeof-fn-object/5
60
- o = typeof o;
61
- return o === 'object' || o === 'function';
62
- };
63
- /**
64
- * Helper method for querying a `meta` tag that contains a nonce value
65
- * out of a DOM's head.
66
- *
67
- * @param doc The DOM containing the `head` to query against
68
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
69
- * exists or the tag has no content.
70
- */
71
- function queryNonceMetaTagContent(doc) {
72
- var _a, _b, _c;
73
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
74
- }
75
- /**
76
- * Production h() function based on Preact by
77
- * Jason Miller (@developit)
78
- * Licensed under the MIT License
79
- * https://github.com/developit/preact/blob/master/LICENSE
80
- *
81
- * Modified for Stencil's compiler and vdom
82
- */
83
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
84
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
85
- const h = (nodeName, vnodeData, ...children) => {
86
- let child = null;
87
- let key = null;
88
- let slotName = null;
89
- let simple = false;
90
- let lastSimple = false;
91
- const vNodeChildren = [];
92
- const walk = (c) => {
93
- for (let i = 0; i < c.length; i++) {
94
- child = c[i];
95
- if (Array.isArray(child)) {
96
- walk(child);
97
- }
98
- else if (child != null && typeof child !== 'boolean') {
99
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
100
- child = String(child);
101
- }
102
- if (simple && lastSimple) {
103
- // If the previous child was simple (string), we merge both
104
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
105
- }
106
- else {
107
- // Append a new vNode, if it's text, we create a text vNode
108
- vNodeChildren.push(simple ? newVNode(null, child) : child);
109
- }
110
- lastSimple = simple;
111
- }
112
- }
113
- };
114
- walk(children);
115
- if (vnodeData) {
116
- // normalize class / classname attributes
117
- if (vnodeData.key) {
118
- key = vnodeData.key;
119
- }
120
- if (vnodeData.name) {
121
- slotName = vnodeData.name;
122
- }
123
- {
124
- const classData = vnodeData.className || vnodeData.class;
125
- if (classData) {
126
- vnodeData.class =
127
- typeof classData !== 'object'
128
- ? classData
129
- : Object.keys(classData)
130
- .filter((k) => classData[k])
131
- .join(' ');
132
- }
133
- }
134
- }
135
- if (typeof nodeName === 'function') {
136
- // nodeName is a functional component
137
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
138
- }
139
- const vnode = newVNode(nodeName, null);
140
- vnode.$attrs$ = vnodeData;
141
- if (vNodeChildren.length > 0) {
142
- vnode.$children$ = vNodeChildren;
143
- }
144
- {
145
- vnode.$key$ = key;
146
- }
147
- {
148
- vnode.$name$ = slotName;
149
- }
150
- return vnode;
151
- };
152
- /**
153
- * A utility function for creating a virtual DOM node from a tag and some
154
- * possible text content.
155
- *
156
- * @param tag the tag for this element
157
- * @param text possible text content for the node
158
- * @returns a newly-minted virtual DOM node
159
- */
160
- const newVNode = (tag, text) => {
161
- const vnode = {
162
- $flags$: 0,
163
- $tag$: tag,
164
- $text$: text,
165
- $elm$: null,
166
- $children$: null,
167
- };
168
- {
169
- vnode.$attrs$ = null;
170
- }
171
- {
172
- vnode.$key$ = null;
173
- }
174
- {
175
- vnode.$name$ = null;
176
- }
177
- return vnode;
178
- };
179
- const Host = {};
180
- /**
181
- * Check whether a given node is a Host node or not
182
- *
183
- * @param node the virtual DOM node to check
184
- * @returns whether it's a Host node or not
185
- */
186
- const isHost = (node) => node && node.$tag$ === Host;
187
- /**
188
- * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
189
- *
190
- * Note that these functions convert from {@link d.VNode} to
191
- * {@link d.ChildNode} to give functional component developers a friendly
192
- * interface.
193
- */
194
- const vdomFnUtils = {
195
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
196
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
197
- };
198
- /**
199
- * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
200
- * friendlier public interface (hence, 'convertToPublic').
201
- *
202
- * @param node the virtual DOM node to convert
203
- * @returns a converted child node
204
- */
205
- const convertToPublic = (node) => ({
206
- vattrs: node.$attrs$,
207
- vchildren: node.$children$,
208
- vkey: node.$key$,
209
- vname: node.$name$,
210
- vtag: node.$tag$,
211
- vtext: node.$text$,
212
- });
213
- /**
214
- * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
215
- * order to use the resulting object in the virtual DOM. The initial object was
216
- * likely created as part of presenting a public API, so converting it back
217
- * involved making it 'private' again (hence, `convertToPrivate`).
218
- *
219
- * @param node the child node to convert
220
- * @returns a converted virtual DOM node
221
- */
222
- const convertToPrivate = (node) => {
223
- if (typeof node.vtag === 'function') {
224
- const vnodeData = Object.assign({}, node.vattrs);
225
- if (node.vkey) {
226
- vnodeData.key = node.vkey;
227
- }
228
- if (node.vname) {
229
- vnodeData.name = node.vname;
230
- }
231
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
232
- }
233
- const vnode = newVNode(node.vtag, node.vtext);
234
- vnode.$attrs$ = node.vattrs;
235
- vnode.$children$ = node.vchildren;
236
- vnode.$key$ = node.vkey;
237
- vnode.$name$ = node.vname;
238
- return vnode;
239
- };
240
- const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
241
- const endHydrate = createTime('hydrateClient', tagName);
242
- const shadowRoot = hostElm.shadowRoot;
243
- const childRenderNodes = [];
244
- const slotNodes = [];
245
- const shadowRootNodes = null;
246
- const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
247
- if (!plt.$orgLocNodes$) {
248
- initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
249
- }
250
- hostElm[HYDRATE_ID] = hostId;
251
- hostElm.removeAttribute(HYDRATE_ID);
252
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
253
- childRenderNodes.map((c) => {
254
- const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
255
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
256
- const node = c.$elm$;
257
- if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
258
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
259
- }
260
- if (!shadowRoot) {
261
- node['s-hn'] = tagName;
262
- if (orgLocationNode) {
263
- node['s-ol'] = orgLocationNode;
264
- node['s-ol']['s-nr'] = node;
265
- }
266
- }
267
- plt.$orgLocNodes$.delete(orgLocationId);
268
- });
269
- endHydrate();
270
- };
271
- const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
272
- let childNodeType;
273
- let childIdSplt;
274
- let childVNode;
275
- let i;
276
- if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
277
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
278
- if (childNodeType) {
279
- // got the node data from the element's attribute
280
- // `${hostId}.${nodeId}.${depth}.${index}`
281
- childIdSplt = childNodeType.split('.');
282
- if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
283
- childVNode = {
284
- $flags$: 0,
285
- $hostId$: childIdSplt[0],
286
- $nodeId$: childIdSplt[1],
287
- $depth$: childIdSplt[2],
288
- $index$: childIdSplt[3],
289
- $tag$: node.tagName.toLowerCase(),
290
- $elm$: node,
291
- $attrs$: null,
292
- $children$: null,
293
- $key$: null,
294
- $name$: null,
295
- $text$: null,
296
- };
297
- childRenderNodes.push(childVNode);
298
- node.removeAttribute(HYDRATE_CHILD_ID);
299
- // this is a new child vnode
300
- // so ensure its parent vnode has the vchildren array
301
- if (!parentVNode.$children$) {
302
- parentVNode.$children$ = [];
303
- }
304
- // add our child vnode to a specific index of the vnode's children
305
- parentVNode.$children$[childVNode.$index$] = childVNode;
306
- // this is now the new parent vnode for all the next child checks
307
- parentVNode = childVNode;
308
- if (shadowRootNodes && childVNode.$depth$ === '0') {
309
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
310
- }
311
- }
312
- }
313
- // recursively drill down, end to start so we can remove nodes
314
- for (i = node.childNodes.length - 1; i >= 0; i--) {
315
- clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
316
- }
317
- if (node.shadowRoot) {
318
- // keep drilling down through the shadow root nodes
319
- for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
320
- clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
321
- }
322
- }
323
- }
324
- else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
325
- // `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
326
- childIdSplt = node.nodeValue.split('.');
327
- if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
328
- // comment node for either the host id or a 0 host id
329
- childNodeType = childIdSplt[0];
330
- childVNode = {
331
- $flags$: 0,
332
- $hostId$: childIdSplt[1],
333
- $nodeId$: childIdSplt[2],
334
- $depth$: childIdSplt[3],
335
- $index$: childIdSplt[4],
336
- $elm$: node,
337
- $attrs$: null,
338
- $children$: null,
339
- $key$: null,
340
- $name$: null,
341
- $tag$: null,
342
- $text$: null,
343
- };
344
- if (childNodeType === TEXT_NODE_ID) {
345
- childVNode.$elm$ = node.nextSibling;
346
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* NODE_TYPE.TextNode */) {
347
- childVNode.$text$ = childVNode.$elm$.textContent;
348
- childRenderNodes.push(childVNode);
349
- // remove the text comment since it's no longer needed
350
- node.remove();
351
- if (!parentVNode.$children$) {
352
- parentVNode.$children$ = [];
353
- }
354
- parentVNode.$children$[childVNode.$index$] = childVNode;
355
- if (shadowRootNodes && childVNode.$depth$ === '0') {
356
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
357
- }
358
- }
359
- }
360
- else if (childVNode.$hostId$ === hostId) {
361
- // this comment node is specifcally for this host id
362
- if (childNodeType === SLOT_NODE_ID) {
363
- // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
364
- childVNode.$tag$ = 'slot';
365
- if (childIdSplt[5]) {
366
- node['s-sn'] = childVNode.$name$ = childIdSplt[5];
367
- }
368
- else {
369
- node['s-sn'] = '';
370
- }
371
- node['s-sr'] = true;
372
- slotNodes.push(childVNode);
373
- if (!parentVNode.$children$) {
374
- parentVNode.$children$ = [];
375
- }
376
- parentVNode.$children$[childVNode.$index$] = childVNode;
377
- }
378
- else if (childNodeType === CONTENT_REF_ID) {
379
- // `${CONTENT_REF_ID}.${hostId}`;
380
- {
381
- hostElm['s-cr'] = node;
382
- node['s-cn'] = true;
383
- }
384
- }
385
- }
386
- }
387
- }
388
- else if (parentVNode && parentVNode.$tag$ === 'style') {
389
- const vnode = newVNode(null, node.textContent);
390
- vnode.$elm$ = node;
391
- vnode.$index$ = '0';
392
- parentVNode.$children$ = [vnode];
393
- }
394
- };
395
- const initializeDocumentHydrate = (node, orgLocNodes) => {
396
- if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
397
- let i = 0;
398
- for (; i < node.childNodes.length; i++) {
399
- initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
400
- }
401
- if (node.shadowRoot) {
402
- for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
403
- initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
404
- }
405
- }
406
- }
407
- else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
408
- const childIdSplt = node.nodeValue.split('.');
409
- if (childIdSplt[0] === ORG_LOCATION_ID) {
410
- orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
411
- node.nodeValue = '';
412
- // useful to know if the original location is
413
- // the root light-dom of a shadow dom component
414
- node['s-en'] = childIdSplt[3];
415
- }
416
- }
417
- };
418
- /**
419
- * Parse a new property value for a given property type.
420
- *
421
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
422
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
423
- * 1. `any`, the type given to `propValue` in the function signature
424
- * 2. the type stored from `propType`.
425
- *
426
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
427
- *
428
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
429
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
430
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
431
- * ```tsx
432
- * <my-cmp prop-val={0}></my-cmp>
433
- * ```
434
- *
435
- * HTML prop values on the other hand, will always a string
436
- *
437
- * @param propValue the new value to coerce to some type
438
- * @param propType the type of the prop, expressed as a binary number
439
- * @returns the parsed/coerced value
440
- */
441
- const parsePropertyValue = (propValue, propType) => {
442
- // ensure this value is of the correct prop type
443
- if (propValue != null && !isComplexType(propValue)) {
444
- if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
445
- // per the HTML spec, any string value means it is a boolean true value
446
- // but we'll cheat here and say that the string "false" is the boolean false
447
- return propValue === 'false' ? false : propValue === '' || !!propValue;
448
- }
449
- if (propType & 2 /* MEMBER_FLAGS.Number */) {
450
- // force it to be a number
451
- return parseFloat(propValue);
452
- }
453
- if (propType & 1 /* MEMBER_FLAGS.String */) {
454
- // could have been passed as a number or boolean
455
- // but we still want it as a string
456
- return String(propValue);
457
- }
458
- // redundant return here for better minification
459
- return propValue;
460
- }
461
- // not sure exactly what type we want
462
- // so no need to change to a different type
463
- return propValue;
464
- };
465
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
466
- const createEvent = (ref, name, flags) => {
467
- const elm = getElement(ref);
468
- return {
469
- emit: (detail) => {
470
- return emitEvent(elm, name, {
471
- bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
472
- composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
473
- cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
474
- detail,
475
- });
476
- },
477
- };
478
- };
479
- /**
480
- * Helper function to create & dispatch a custom Event on a provided target
481
- * @param elm the target of the Event
482
- * @param name the name to give the custom Event
483
- * @param opts options for configuring a custom Event
484
- * @returns the custom Event
485
- */
486
- const emitEvent = (elm, name, opts) => {
487
- const ev = plt.ce(name, opts);
488
- elm.dispatchEvent(ev);
489
- return ev;
490
- };
491
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
492
- const registerStyle = (scopeId, cssText, allowCS) => {
493
- let style = styles.get(scopeId);
494
- if (supportsConstructableStylesheets && allowCS) {
495
- style = (style || new CSSStyleSheet());
496
- if (typeof style === 'string') {
497
- style = cssText;
498
- }
499
- else {
500
- style.replaceSync(cssText);
501
- }
502
- }
503
- else {
504
- style = cssText;
505
- }
506
- styles.set(scopeId, style);
507
- };
508
- const addStyle = (styleContainerNode, cmpMeta, mode) => {
509
- var _a;
510
- const scopeId = getScopeId(cmpMeta);
511
- const style = styles.get(scopeId);
512
- // if an element is NOT connected then getRootNode() will return the wrong root node
513
- // so the fallback is to always use the document for the root node in those cases
514
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
515
- if (style) {
516
- if (typeof style === 'string') {
517
- styleContainerNode = styleContainerNode.head || styleContainerNode;
518
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
519
- let styleElm;
520
- if (!appliedStyles) {
521
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
522
- }
523
- if (!appliedStyles.has(scopeId)) {
524
- if (styleContainerNode.host &&
525
- (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
526
- // This is only happening on native shadow-dom, do not needs CSS var shim
527
- styleElm.innerHTML = style;
528
- }
529
- else {
530
- styleElm = doc.createElement('style');
531
- styleElm.innerHTML = style;
532
- // Apply CSP nonce to the style tag if it exists
533
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
534
- if (nonce != null) {
535
- styleElm.setAttribute('nonce', nonce);
536
- }
537
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
538
- }
539
- if (appliedStyles) {
540
- appliedStyles.add(scopeId);
541
- }
542
- }
543
- }
544
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
545
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
546
- }
547
- }
548
- return scopeId;
549
- };
550
- const attachStyles = (hostRef) => {
551
- const cmpMeta = hostRef.$cmpMeta$;
552
- const elm = hostRef.$hostElement$;
553
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
554
- addStyle(elm.getRootNode(), cmpMeta);
555
- endAttachStyles();
556
- };
557
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
558
- /**
559
- * Production setAccessor() function based on Preact by
560
- * Jason Miller (@developit)
561
- * Licensed under the MIT License
562
- * https://github.com/developit/preact/blob/master/LICENSE
563
- *
564
- * Modified for Stencil's compiler and vdom
565
- */
566
- /**
567
- * When running a VDom render set properties present on a VDom node onto the
568
- * corresponding HTML element.
569
- *
570
- * Note that this function has special functionality for the `class`,
571
- * `style`, `key`, and `ref` attributes, as well as event handlers (like
572
- * `onClick`, etc). All others are just passed through as-is.
573
- *
574
- * @param elm the HTMLElement onto which attributes should be set
575
- * @param memberName the name of the attribute to set
576
- * @param oldValue the old value for the attribute
577
- * @param newValue the new value for the attribute
578
- * @param isSvg whether we're in an svg context or not
579
- * @param flags bitflags for Vdom variables
580
- */
581
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
582
- if (oldValue !== newValue) {
583
- let isProp = isMemberInElement(elm, memberName);
584
- let ln = memberName.toLowerCase();
585
- if (memberName === 'class') {
586
- const classList = elm.classList;
587
- const oldClasses = parseClassList(oldValue);
588
- const newClasses = parseClassList(newValue);
589
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
590
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
591
- }
592
- else if (memberName === 'style') {
593
- // update style attribute, css properties and values
594
- {
595
- for (const prop in oldValue) {
596
- if (!newValue || newValue[prop] == null) {
597
- if (prop.includes('-')) {
598
- elm.style.removeProperty(prop);
599
- }
600
- else {
601
- elm.style[prop] = '';
602
- }
603
- }
604
- }
605
- }
606
- for (const prop in newValue) {
607
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
608
- if (prop.includes('-')) {
609
- elm.style.setProperty(prop, newValue[prop]);
610
- }
611
- else {
612
- elm.style[prop] = newValue[prop];
613
- }
614
- }
615
- }
616
- }
617
- else if (memberName === 'key')
618
- ;
619
- else if (memberName === 'ref') {
620
- // minifier will clean this up
621
- if (newValue) {
622
- newValue(elm);
623
- }
624
- }
625
- else if ((!isProp ) &&
626
- memberName[0] === 'o' &&
627
- memberName[1] === 'n') {
628
- // Event Handlers
629
- // so if the member name starts with "on" and the 3rd characters is
630
- // a capital letter, and it's not already a member on the element,
631
- // then we're assuming it's an event listener
632
- if (memberName[2] === '-') {
633
- // on- prefixed events
634
- // allows to be explicit about the dom event to listen without any magic
635
- // under the hood:
636
- // <my-cmp on-click> // listens for "click"
637
- // <my-cmp on-Click> // listens for "Click"
638
- // <my-cmp on-ionChange> // listens for "ionChange"
639
- // <my-cmp on-EVENTS> // listens for "EVENTS"
640
- memberName = memberName.slice(3);
641
- }
642
- else if (isMemberInElement(win, ln)) {
643
- // standard event
644
- // the JSX attribute could have been "onMouseOver" and the
645
- // member name "onmouseover" is on the window's prototype
646
- // so let's add the listener "mouseover", which is all lowercased
647
- memberName = ln.slice(2);
648
- }
649
- else {
650
- // custom event
651
- // the JSX attribute could have been "onMyCustomEvent"
652
- // so let's trim off the "on" prefix and lowercase the first character
653
- // and add the listener "myCustomEvent"
654
- // except for the first character, we keep the event name case
655
- memberName = ln[2] + memberName.slice(3);
656
- }
657
- if (oldValue) {
658
- plt.rel(elm, memberName, oldValue, false);
659
- }
660
- if (newValue) {
661
- plt.ael(elm, memberName, newValue, false);
662
- }
663
- }
664
- else {
665
- // Set property if it exists and it's not a SVG
666
- const isComplex = isComplexType(newValue);
667
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
668
- try {
669
- if (!elm.tagName.includes('-')) {
670
- const n = newValue == null ? '' : newValue;
671
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
672
- if (memberName === 'list') {
673
- isProp = false;
674
- }
675
- else if (oldValue == null || elm[memberName] != n) {
676
- elm[memberName] = n;
677
- }
678
- }
679
- else {
680
- elm[memberName] = newValue;
681
- }
682
- }
683
- catch (e) { }
684
- }
685
- if (newValue == null || newValue === false) {
686
- if (newValue !== false || elm.getAttribute(memberName) === '') {
687
- {
688
- elm.removeAttribute(memberName);
689
- }
690
- }
691
- }
692
- else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
693
- newValue = newValue === true ? '' : newValue;
694
- {
695
- elm.setAttribute(memberName, newValue);
696
- }
697
- }
698
- }
699
- }
700
- };
701
- const parseClassListRegex = /\s/;
702
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
703
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
704
- // if the element passed in is a shadow root, which is a document fragment
705
- // then we want to be adding attrs/props to the shadow root's "host" element
706
- // if it's not a shadow root, then we add attrs/props to the same element
707
- const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
708
- ? newVnode.$elm$.host
709
- : newVnode.$elm$;
710
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
711
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
712
- {
713
- // remove attributes no longer present on the vnode by setting them to undefined
714
- for (memberName in oldVnodeAttrs) {
715
- if (!(memberName in newVnodeAttrs)) {
716
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
717
- }
718
- }
719
- }
720
- // add new & update changed attributes
721
- for (memberName in newVnodeAttrs) {
722
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
723
- }
724
- };
725
- /**
726
- * Create a DOM Node corresponding to one of the children of a given VNode.
727
- *
728
- * @param oldParentVNode the parent VNode from the previous render
729
- * @param newParentVNode the parent VNode from the current render
730
- * @param childIndex the index of the VNode, in the _new_ parent node's
731
- * children, for which we will create a new DOM node
732
- * @param parentElm the parent DOM node which our new node will be a child of
733
- * @returns the newly created node
734
- */
735
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
736
- // tslint:disable-next-line: prefer-const
737
- const newVNode = newParentVNode.$children$[childIndex];
738
- let i = 0;
739
- let elm;
740
- let childNode;
741
- let oldVNode;
742
- if (!useNativeShadowDom) {
743
- // remember for later we need to check to relocate nodes
744
- checkSlotRelocate = true;
745
- if (newVNode.$tag$ === 'slot') {
746
- newVNode.$flags$ |= newVNode.$children$
747
- ? // slot element has fallback content
748
- 2 /* VNODE_FLAGS.isSlotFallback */
749
- : // slot element does not have fallback content
750
- 1 /* VNODE_FLAGS.isSlotReference */;
751
- }
752
- }
753
- if (newVNode.$text$ !== null) {
754
- // create text node
755
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
756
- }
757
- else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
758
- // create a slot reference node
759
- elm = newVNode.$elm$ =
760
- doc.createTextNode('');
761
- }
762
- else {
763
- // create element
764
- elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
765
- ? 'slot-fb'
766
- : newVNode.$tag$));
767
- // add css classes, attrs, props, listeners, etc.
768
- {
769
- updateElement(null, newVNode, isSvgMode);
770
- }
771
- if (newVNode.$children$) {
772
- for (i = 0; i < newVNode.$children$.length; ++i) {
773
- // create the node
774
- childNode = createElm(oldParentVNode, newVNode, i);
775
- // return node could have been null
776
- if (childNode) {
777
- // append our new node
778
- elm.appendChild(childNode);
779
- }
780
- }
781
- }
782
- }
783
- {
784
- elm['s-hn'] = hostTagName;
785
- if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
786
- // remember the content reference comment
787
- elm['s-sr'] = true;
788
- // remember the content reference comment
789
- elm['s-cr'] = contentRef;
790
- // remember the slot name, or empty string for default slot
791
- elm['s-sn'] = newVNode.$name$ || '';
792
- // check if we've got an old vnode for this slot
793
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
794
- if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
795
- // we've got an old slot vnode and the wrapper is being replaced
796
- // so let's move the old slot content back to it's original location
797
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
798
- }
799
- }
800
- }
801
- return elm;
802
- };
803
- const putBackInOriginalLocation = (parentElm, recursive) => {
804
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
805
- const oldSlotChildNodes = parentElm.childNodes;
806
- for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
807
- const childNode = oldSlotChildNodes[i];
808
- if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
809
- // // this child node in the old element is from another component
810
- // // remove this node from the old slot's parent
811
- // childNode.remove();
812
- // and relocate it back to it's original location
813
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
814
- // remove the old original location comment entirely
815
- // later on the patch function will know what to do
816
- // and move this to the correct spot in need be
817
- childNode['s-ol'].remove();
818
- childNode['s-ol'] = undefined;
819
- checkSlotRelocate = true;
820
- }
821
- if (recursive) {
822
- putBackInOriginalLocation(childNode, recursive);
823
- }
824
- }
825
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
826
- };
827
- /**
828
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
829
- * add them to the DOM in the appropriate place.
830
- *
831
- * @param parentElm the DOM node which should be used as a parent for the new
832
- * DOM nodes
833
- * @param before a child of the `parentElm` which the new children should be
834
- * inserted before (optional)
835
- * @param parentVNode the parent virtual DOM node
836
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
837
- * @param startIdx the index in the child virtual DOM nodes at which to start
838
- * creating DOM nodes (inclusive)
839
- * @param endIdx the index in the child virtual DOM nodes at which to stop
840
- * creating DOM nodes (inclusive)
841
- */
842
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
843
- let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
844
- let childNode;
845
- for (; startIdx <= endIdx; ++startIdx) {
846
- if (vnodes[startIdx]) {
847
- childNode = createElm(null, parentVNode, startIdx);
848
- if (childNode) {
849
- vnodes[startIdx].$elm$ = childNode;
850
- containerElm.insertBefore(childNode, referenceNode(before) );
851
- }
852
- }
853
- }
854
- };
855
- /**
856
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
857
- * This can be used to, for instance, clean up after a list of children which
858
- * should no longer be shown.
859
- *
860
- * This function also handles some of Stencil's slot relocation logic.
861
- *
862
- * @param vnodes a list of virtual DOM nodes to remove
863
- * @param startIdx the index at which to start removing nodes (inclusive)
864
- * @param endIdx the index at which to stop removing nodes (inclusive)
865
- */
866
- const removeVnodes = (vnodes, startIdx, endIdx) => {
867
- for (let index = startIdx; index <= endIdx; ++index) {
868
- const vnode = vnodes[index];
869
- if (vnode) {
870
- const elm = vnode.$elm$;
871
- nullifyVNodeRefs(vnode);
872
- if (elm) {
873
- {
874
- // we're removing this element
875
- // so it's possible we need to show slot fallback content now
876
- checkSlotFallbackVisibility = true;
877
- if (elm['s-ol']) {
878
- // remove the original location comment
879
- elm['s-ol'].remove();
880
- }
881
- else {
882
- // it's possible that child nodes of the node
883
- // that's being removed are slot nodes
884
- putBackInOriginalLocation(elm, true);
885
- }
886
- }
887
- // remove the vnode's element from the dom
888
- elm.remove();
889
- }
890
- }
891
- }
892
- };
893
- /**
894
- * Reconcile the children of a new VNode with the children of an old VNode by
895
- * traversing the two collections of children, identifying nodes that are
896
- * conserved or changed, calling out to `patch` to make any necessary
897
- * updates to the DOM, and rearranging DOM nodes as needed.
898
- *
899
- * The algorithm for reconciling children works by analyzing two 'windows' onto
900
- * the two arrays of children (`oldCh` and `newCh`). We keep track of the
901
- * 'windows' by storing start and end indices and references to the
902
- * corresponding array entries. Initially the two 'windows' are basically equal
903
- * to the entire array, but we progressively narrow the windows until there are
904
- * no children left to update by doing the following:
905
- *
906
- * 1. Skip any `null` entries at the beginning or end of the two arrays, so
907
- * that if we have an initial array like the following we'll end up dealing
908
- * only with a window bounded by the highlighted elements:
909
- *
910
- * [null, null, VNode1 , ... , VNode2, null, null]
911
- * ^^^^^^ ^^^^^^
912
- *
913
- * 2. Check to see if the elements at the head and tail positions are equal
914
- * across the windows. This will basically detect elements which haven't
915
- * been added, removed, or changed position, i.e. if you had the following
916
- * VNode elements (represented as HTML):
917
- *
918
- * oldVNode: `<div><p><span>HEY</span></p></div>`
919
- * newVNode: `<div><p><span>THERE</span></p></div>`
920
- *
921
- * Then when comparing the children of the `<div>` tag we check the equality
922
- * of the VNodes corresponding to the `<p>` tags and, since they are the
923
- * same tag in the same position, we'd be able to avoid completely
924
- * re-rendering the subtree under them with a new DOM element and would just
925
- * call out to `patch` to handle reconciling their children and so on.
926
- *
927
- * 3. Check, for both windows, to see if the element at the beginning of the
928
- * window corresponds to the element at the end of the other window. This is
929
- * a heuristic which will let us identify _some_ situations in which
930
- * elements have changed position, for instance it _should_ detect that the
931
- * children nodes themselves have not changed but merely moved in the
932
- * following example:
933
- *
934
- * oldVNode: `<div><element-one /><element-two /></div>`
935
- * newVNode: `<div><element-two /><element-one /></div>`
936
- *
937
- * If we find cases like this then we also need to move the concrete DOM
938
- * elements corresponding to the moved children to write the re-order to the
939
- * DOM.
940
- *
941
- * 4. Finally, if VNodes have the `key` attribute set on them we check for any
942
- * nodes in the old children which have the same key as the first element in
943
- * our window on the new children. If we find such a node we handle calling
944
- * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
945
- * what we find.
946
- *
947
- * Finally, once we've narrowed our 'windows' to the point that either of them
948
- * collapse (i.e. they have length 0) we then handle any remaining VNode
949
- * insertion or deletion that needs to happen to get a DOM state that correctly
950
- * reflects the new child VNodes. If, for instance, after our window on the old
951
- * children has collapsed we still have more nodes on the new children that
952
- * we haven't dealt with yet then we need to add them, or if the new children
953
- * collapse but we still have unhandled _old_ children then we need to make
954
- * sure the corresponding DOM nodes are removed.
955
- *
956
- * @param parentElm the node into which the parent VNode is rendered
957
- * @param oldCh the old children of the parent node
958
- * @param newVNode the new VNode which will replace the parent
959
- * @param newCh the new children of the parent node
960
- */
961
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
962
- let oldStartIdx = 0;
963
- let newStartIdx = 0;
964
- let idxInOld = 0;
965
- let i = 0;
966
- let oldEndIdx = oldCh.length - 1;
967
- let oldStartVnode = oldCh[0];
968
- let oldEndVnode = oldCh[oldEndIdx];
969
- let newEndIdx = newCh.length - 1;
970
- let newStartVnode = newCh[0];
971
- let newEndVnode = newCh[newEndIdx];
972
- let node;
973
- let elmToMove;
974
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
975
- if (oldStartVnode == null) {
976
- // VNode might have been moved left
977
- oldStartVnode = oldCh[++oldStartIdx];
978
- }
979
- else if (oldEndVnode == null) {
980
- oldEndVnode = oldCh[--oldEndIdx];
981
- }
982
- else if (newStartVnode == null) {
983
- newStartVnode = newCh[++newStartIdx];
984
- }
985
- else if (newEndVnode == null) {
986
- newEndVnode = newCh[--newEndIdx];
987
- }
988
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
989
- // if the start nodes are the same then we should patch the new VNode
990
- // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
991
- // indices to reflect that. We don't need to move any DOM Nodes around
992
- // since things are matched up in order.
993
- patch(oldStartVnode, newStartVnode);
994
- oldStartVnode = oldCh[++oldStartIdx];
995
- newStartVnode = newCh[++newStartIdx];
996
- }
997
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
998
- // likewise, if the end nodes are the same we patch new onto old and
999
- // decrement our end indices, and also likewise in this case we don't
1000
- // need to move any DOM Nodes.
1001
- patch(oldEndVnode, newEndVnode);
1002
- oldEndVnode = oldCh[--oldEndIdx];
1003
- newEndVnode = newCh[--newEndIdx];
1004
- }
1005
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
1006
- // case: "Vnode moved right"
1007
- //
1008
- // We've found that the last node in our window on the new children is
1009
- // the same VNode as the _first_ node in our window on the old children
1010
- // we're dealing with now. Visually, this is the layout of these two
1011
- // nodes:
1012
- //
1013
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
1014
- // ^^^^^^^^^^^
1015
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
1016
- // ^^^^^^^^^^^^^
1017
- //
1018
- // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
1019
- // and move the DOM element for `oldStartVnode`.
1020
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
1021
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1022
- }
1023
- patch(oldStartVnode, newEndVnode);
1024
- // We need to move the element for `oldStartVnode` into a position which
1025
- // will be appropriate for `newEndVnode`. For this we can use
1026
- // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
1027
- // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
1028
- // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
1029
- //
1030
- // <old-start-node />
1031
- // <some-intervening-node />
1032
- // <old-end-node />
1033
- // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
1034
- // <next-sibling />
1035
- //
1036
- // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
1037
- // the node for `oldStartVnode` at the end of the children of
1038
- // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
1039
- // aren't any siblings, and passing `null` to `Node.insertBefore` will
1040
- // append it to the children of the parent element.
1041
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1042
- oldStartVnode = oldCh[++oldStartIdx];
1043
- newEndVnode = newCh[--newEndIdx];
1044
- }
1045
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
1046
- // case: "Vnode moved left"
1047
- //
1048
- // We've found that the first node in our window on the new children is
1049
- // the same VNode as the _last_ node in our window on the old children.
1050
- // Visually, this is the layout of these two nodes:
1051
- //
1052
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
1053
- // ^^^^^^^^^^^^^
1054
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
1055
- // ^^^^^^^^^^^
1056
- //
1057
- // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
1058
- // (which will handle updating any changed attributes, reconciling their
1059
- // children etc) but we also need to move the DOM node to which
1060
- // `oldEndVnode` corresponds.
1061
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
1062
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1063
- }
1064
- patch(oldEndVnode, newStartVnode);
1065
- // We've already checked above if `oldStartVnode` and `newStartVnode` are
1066
- // the same node, so since we're here we know that they are not. Thus we
1067
- // can move the element for `oldEndVnode` _before_ the element for
1068
- // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
1069
- // future.
1070
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
1071
- oldEndVnode = oldCh[--oldEndIdx];
1072
- newStartVnode = newCh[++newStartIdx];
1073
- }
1074
- else {
1075
- // Here we do some checks to match up old and new nodes based on the
1076
- // `$key$` attribute, which is set by putting a `key="my-key"` attribute
1077
- // in the JSX for a DOM element in the implementation of a Stencil
1078
- // component.
1079
- //
1080
- // First we check to see if there are any nodes in the array of old
1081
- // children which have the same key as the first node in the new
1082
- // children.
1083
- idxInOld = -1;
1084
- {
1085
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
1086
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
1087
- idxInOld = i;
1088
- break;
1089
- }
1090
- }
1091
- }
1092
- if (idxInOld >= 0) {
1093
- // We found a node in the old children which matches up with the first
1094
- // node in the new children! So let's deal with that
1095
- elmToMove = oldCh[idxInOld];
1096
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1097
- // the tag doesn't match so we'll need a new DOM element
1098
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
1099
- }
1100
- else {
1101
- patch(elmToMove, newStartVnode);
1102
- // invalidate the matching old node so that we won't try to update it
1103
- // again later on
1104
- oldCh[idxInOld] = undefined;
1105
- node = elmToMove.$elm$;
1106
- }
1107
- newStartVnode = newCh[++newStartIdx];
1108
- }
1109
- else {
1110
- // We either didn't find an element in the old children that matches
1111
- // the key of the first new child OR the build is not using `key`
1112
- // attributes at all. In either case we need to create a new element
1113
- // for the new node.
1114
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
1115
- newStartVnode = newCh[++newStartIdx];
1116
- }
1117
- if (node) {
1118
- // if we created a new node then handle inserting it to the DOM
1119
- {
1120
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
1121
- }
1122
- }
1123
- }
1124
- }
1125
- if (oldStartIdx > oldEndIdx) {
1126
- // we have some more new nodes to add which don't match up with old nodes
1127
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
1128
- }
1129
- else if (newStartIdx > newEndIdx) {
1130
- // there are nodes in the `oldCh` array which no longer correspond to nodes
1131
- // in the new array, so lets remove them (which entails cleaning up the
1132
- // relevant DOM nodes)
1133
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1134
- }
1135
- };
1136
- /**
1137
- * Compare two VNodes to determine if they are the same
1138
- *
1139
- * **NB**: This function is an equality _heuristic_ based on the available
1140
- * information set on the two VNodes and can be misleading under certain
1141
- * circumstances. In particular, if the two nodes do not have `key` attrs
1142
- * (available under `$key$` on VNodes) then the function falls back on merely
1143
- * checking that they have the same tag.
1144
- *
1145
- * So, in other words, if `key` attrs are not set on VNodes which may be
1146
- * changing order within a `children` array or something along those lines then
1147
- * we could obtain a false negative and then have to do needless re-rendering
1148
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
1149
- *
1150
- * @param leftVNode the first VNode to check
1151
- * @param rightVNode the second VNode to check
1152
- * @returns whether they're equal or not
1153
- */
1154
- const isSameVnode = (leftVNode, rightVNode) => {
1155
- // compare if two vnode to see if they're "technically" the same
1156
- // need to have the same element tag, and same key to be the same
1157
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1158
- if (leftVNode.$tag$ === 'slot') {
1159
- return leftVNode.$name$ === rightVNode.$name$;
1160
- }
1161
- // this will be set if components in the build have `key` attrs set on them
1162
- {
1163
- return leftVNode.$key$ === rightVNode.$key$;
1164
- }
1165
- }
1166
- return false;
1167
- };
1168
- const referenceNode = (node) => {
1169
- // this node was relocated to a new location in the dom
1170
- // because of some other component's slot
1171
- // but we still have an html comment in place of where
1172
- // it's original location was according to it's original vdom
1173
- return (node && node['s-ol']) || node;
1174
- };
1175
- const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1176
- /**
1177
- * Handle reconciling an outdated VNode with a new one which corresponds to
1178
- * it. This function handles flushing updates to the DOM and reconciling the
1179
- * children of the two nodes (if any).
1180
- *
1181
- * @param oldVNode an old VNode whose DOM element and children we want to update
1182
- * @param newVNode a new VNode representing an updated version of the old one
1183
- */
1184
- const patch = (oldVNode, newVNode) => {
1185
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
1186
- const oldChildren = oldVNode.$children$;
1187
- const newChildren = newVNode.$children$;
1188
- const tag = newVNode.$tag$;
1189
- const text = newVNode.$text$;
1190
- let defaultHolder;
1191
- if (text === null) {
1192
- {
1193
- if (tag === 'slot')
1194
- ;
1195
- else {
1196
- // either this is the first render of an element OR it's an update
1197
- // AND we already know it's possible it could have changed
1198
- // this updates the element's css classes, attrs, props, listeners, etc.
1199
- updateElement(oldVNode, newVNode, isSvgMode);
1200
- }
1201
- }
1202
- if (oldChildren !== null && newChildren !== null) {
1203
- // looks like there's child vnodes for both the old and new vnodes
1204
- // so we need to call `updateChildren` to reconcile them
1205
- updateChildren(elm, oldChildren, newVNode, newChildren);
1206
- }
1207
- else if (newChildren !== null) {
1208
- // no old child vnodes, but there are new child vnodes to add
1209
- if (oldVNode.$text$ !== null) {
1210
- // the old vnode was text, so be sure to clear it out
1211
- elm.textContent = '';
1212
- }
1213
- // add the new vnode children
1214
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1215
- }
1216
- else if (oldChildren !== null) {
1217
- // no new child vnodes, but there are old child vnodes to remove
1218
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1219
- }
1220
- }
1221
- else if ((defaultHolder = elm['s-cr'])) {
1222
- // this element has slotted content
1223
- defaultHolder.parentNode.textContent = text;
1224
- }
1225
- else if (oldVNode.$text$ !== text) {
1226
- // update the text content for the text only vnode
1227
- // and also only if the text is different than before
1228
- elm.data = text;
1229
- }
1230
- };
1231
- const updateFallbackSlotVisibility = (elm) => {
1232
- // tslint:disable-next-line: prefer-const
1233
- const childNodes = elm.childNodes;
1234
- let childNode;
1235
- let i;
1236
- let ilen;
1237
- let j;
1238
- let slotNameAttr;
1239
- let nodeType;
1240
- for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1241
- childNode = childNodes[i];
1242
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1243
- if (childNode['s-sr']) {
1244
- // this is a slot fallback node
1245
- // get the slot name for this slot reference node
1246
- slotNameAttr = childNode['s-sn'];
1247
- // by default always show a fallback slot node
1248
- // then hide it if there are other slots in the light dom
1249
- childNode.hidden = false;
1250
- for (j = 0; j < ilen; j++) {
1251
- nodeType = childNodes[j].nodeType;
1252
- if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1253
- // this sibling node is from a different component OR is a named fallback slot node
1254
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1255
- childNode.hidden = true;
1256
- break;
1257
- }
1258
- }
1259
- else {
1260
- // this is a default fallback slot node
1261
- // any element or text node (with content)
1262
- // should hide the default fallback slot node
1263
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1264
- (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1265
- childNode.hidden = true;
1266
- break;
1267
- }
1268
- }
1269
- }
1270
- }
1271
- // keep drilling down
1272
- updateFallbackSlotVisibility(childNode);
1273
- }
1274
- }
1275
- };
1276
- const relocateNodes = [];
1277
- const relocateSlotContent = (elm) => {
1278
- // tslint:disable-next-line: prefer-const
1279
- let childNode;
1280
- let node;
1281
- let hostContentNodes;
1282
- let slotNameAttr;
1283
- let relocateNodeData;
1284
- let j;
1285
- let i = 0;
1286
- const childNodes = elm.childNodes;
1287
- const ilen = childNodes.length;
1288
- for (; i < ilen; i++) {
1289
- childNode = childNodes[i];
1290
- if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1291
- // first got the content reference comment node
1292
- // then we got it's parent, which is where all the host content is in now
1293
- hostContentNodes = node.parentNode.childNodes;
1294
- slotNameAttr = childNode['s-sn'];
1295
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1296
- node = hostContentNodes[j];
1297
- if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1298
- // let's do some relocating to its new home
1299
- // but never relocate a content reference node
1300
- // that is suppose to always represent the original content location
1301
- if (isNodeLocatedInSlot(node, slotNameAttr)) {
1302
- // it's possible we've already decided to relocate this node
1303
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1304
- // made some changes to slots
1305
- // let's make sure we also double check
1306
- // fallbacks are correctly hidden or shown
1307
- checkSlotFallbackVisibility = true;
1308
- node['s-sn'] = node['s-sn'] || slotNameAttr;
1309
- if (relocateNodeData) {
1310
- // previously we never found a slot home for this node
1311
- // but turns out we did, so let's remember it now
1312
- relocateNodeData.$slotRefNode$ = childNode;
1313
- }
1314
- else {
1315
- // add to our list of nodes to relocate
1316
- relocateNodes.push({
1317
- $slotRefNode$: childNode,
1318
- $nodeToRelocate$: node,
1319
- });
1320
- }
1321
- if (node['s-sr']) {
1322
- relocateNodes.map((relocateNode) => {
1323
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1324
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1325
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1326
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1327
- }
1328
- }
1329
- });
1330
- }
1331
- }
1332
- else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1333
- // so far this element does not have a slot home, not setting slotRefNode on purpose
1334
- // if we never find a home for this element then we'll need to hide it
1335
- relocateNodes.push({
1336
- $nodeToRelocate$: node,
1337
- });
1338
- }
1339
- }
1340
- }
1341
- }
1342
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1343
- relocateSlotContent(childNode);
1344
- }
1345
- }
1346
- };
1347
- const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1348
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1349
- if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1350
- return true;
1351
- }
1352
- if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1353
- return true;
1354
- }
1355
- return false;
1356
- }
1357
- if (nodeToRelocate['s-sn'] === slotNameAttr) {
1358
- return true;
1359
- }
1360
- return slotNameAttr === '';
1361
- };
1362
- /**
1363
- * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
1364
- * calling them with `null`. This signals that the DOM element corresponding to
1365
- * the VDom node has been removed from the DOM.
1366
- *
1367
- * @param vNode a virtual DOM node
1368
- */
1369
- const nullifyVNodeRefs = (vNode) => {
1370
- {
1371
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1372
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1373
- }
1374
- };
1375
- /**
1376
- * The main entry point for Stencil's virtual DOM-based rendering engine
1377
- *
1378
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1379
- * function will handle creating a virtual DOM tree with a single root, patching
1380
- * the current virtual DOM tree onto an old one (if any), dealing with slot
1381
- * relocation, and reflecting attributes.
1382
- *
1383
- * @param hostRef data needed to root and render the virtual DOM tree, such as
1384
- * the DOM node into which it should be rendered.
1385
- * @param renderFnResults the virtual DOM nodes to be rendered
1386
- * @param isInitialLoad whether or not this is the first call after page load
1387
- */
1388
- const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1389
- const hostElm = hostRef.$hostElement$;
1390
- const cmpMeta = hostRef.$cmpMeta$;
1391
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1392
- // if `renderFnResults` is a Host node then we can use it directly. If not,
1393
- // we need to call `h` again to wrap the children of our component in a
1394
- // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
1395
- // implicitly that the top-level vdom node is 1) an only child and 2)
1396
- // contains attrs that need to be set on the host element.
1397
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1398
- hostTagName = hostElm.tagName;
1399
- if (cmpMeta.$attrsToReflect$) {
1400
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1401
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1402
- }
1403
- // On the first render and *only* on the first render we want to check for
1404
- // any attributes set on the host element which are also set on the vdom
1405
- // node. If we find them, we override the value on the VDom node attrs with
1406
- // the value from the host element, which allows developers building apps
1407
- // with Stencil components to override e.g. the `role` attribute on a
1408
- // component even if it's already set on the `Host`.
1409
- if (isInitialLoad && rootVnode.$attrs$) {
1410
- for (const key of Object.keys(rootVnode.$attrs$)) {
1411
- // We have a special implementation in `setAccessor` for `style` and
1412
- // `class` which reconciles values coming from the VDom with values
1413
- // already present on the DOM element, so we don't want to override those
1414
- // attributes on the VDom tree with values from the host element if they
1415
- // are present.
1416
- //
1417
- // Likewise, `ref` and `key` are special internal values for the Stencil
1418
- // runtime and we don't want to override those either.
1419
- if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
1420
- rootVnode.$attrs$[key] = hostElm[key];
1421
- }
1422
- }
1423
- }
1424
- rootVnode.$tag$ = null;
1425
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1426
- hostRef.$vnode$ = rootVnode;
1427
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
1428
- {
1429
- contentRef = hostElm['s-cr'];
1430
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1431
- // always reset
1432
- checkSlotFallbackVisibility = false;
1433
- }
1434
- // synchronous patch
1435
- patch(oldVNode, rootVnode);
1436
- {
1437
- // while we're moving nodes around existing nodes, temporarily disable
1438
- // the disconnectCallback from working
1439
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1440
- if (checkSlotRelocate) {
1441
- relocateSlotContent(rootVnode.$elm$);
1442
- let relocateData;
1443
- let nodeToRelocate;
1444
- let orgLocationNode;
1445
- let parentNodeRef;
1446
- let insertBeforeNode;
1447
- let refNode;
1448
- let i = 0;
1449
- for (; i < relocateNodes.length; i++) {
1450
- relocateData = relocateNodes[i];
1451
- nodeToRelocate = relocateData.$nodeToRelocate$;
1452
- if (!nodeToRelocate['s-ol']) {
1453
- // add a reference node marking this node's original location
1454
- // keep a reference to this node for later lookups
1455
- orgLocationNode =
1456
- doc.createTextNode('');
1457
- orgLocationNode['s-nr'] = nodeToRelocate;
1458
- nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1459
- }
1460
- }
1461
- for (i = 0; i < relocateNodes.length; i++) {
1462
- relocateData = relocateNodes[i];
1463
- nodeToRelocate = relocateData.$nodeToRelocate$;
1464
- if (relocateData.$slotRefNode$) {
1465
- // by default we're just going to insert it directly
1466
- // after the slot reference node
1467
- parentNodeRef = relocateData.$slotRefNode$.parentNode;
1468
- insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1469
- orgLocationNode = nodeToRelocate['s-ol'];
1470
- while ((orgLocationNode = orgLocationNode.previousSibling)) {
1471
- refNode = orgLocationNode['s-nr'];
1472
- if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1473
- refNode = refNode.nextSibling;
1474
- if (!refNode || !refNode['s-nr']) {
1475
- insertBeforeNode = refNode;
1476
- break;
1477
- }
1478
- }
1479
- }
1480
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1481
- nodeToRelocate.nextSibling !== insertBeforeNode) {
1482
- // we've checked that it's worth while to relocate
1483
- // since that the node to relocate
1484
- // has a different next sibling or parent relocated
1485
- if (nodeToRelocate !== insertBeforeNode) {
1486
- if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1487
- // probably a component in the index.html that doesn't have it's hostname set
1488
- nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1489
- }
1490
- // add it back to the dom but in its new home
1491
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1492
- }
1493
- }
1494
- }
1495
- else {
1496
- // this node doesn't have a slot home to go to, so let's hide it
1497
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1498
- nodeToRelocate.hidden = true;
1499
- }
1500
- }
1501
- }
1502
- }
1503
- if (checkSlotFallbackVisibility) {
1504
- updateFallbackSlotVisibility(rootVnode.$elm$);
1505
- }
1506
- // done moving nodes around
1507
- // allow the disconnect callback to work again
1508
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1509
- // always reset
1510
- relocateNodes.length = 0;
1511
- }
1512
- };
1513
- const attachToAncestor = (hostRef, ancestorComponent) => {
1514
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1515
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1516
- }
1517
- };
1518
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1519
- {
1520
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1521
- }
1522
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1523
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1524
- return;
1525
- }
1526
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1527
- // there is no ancestor component or the ancestor component
1528
- // has already fired off its lifecycle update then
1529
- // fire off the initial update
1530
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1531
- return writeTask(dispatch) ;
1532
- };
1533
- /**
1534
- * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
1535
- * component lifecycle methods like `componentWillLoad` as well as
1536
- * {@link updateComponent}, which will kick off the virtual DOM re-render.
1537
- *
1538
- * @param hostRef a reference to a host DOM node
1539
- * @param isInitialLoad whether we're on the initial load or not
1540
- * @returns an empty Promise which is used to enqueue a series of operations for
1541
- * the component
1542
- */
1543
- const dispatchHooks = (hostRef, isInitialLoad) => {
1544
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1545
- const instance = hostRef.$lazyInstance$ ;
1546
- // We're going to use this variable together with `enqueue` to implement a
1547
- // little promise-based queue. We start out with it `undefined`. When we add
1548
- // the first function to the queue we'll set this variable to be that
1549
- // function's return value. When we attempt to add subsequent values to the
1550
- // queue we'll check that value and, if it was a `Promise`, we'll then chain
1551
- // the new function off of that `Promise` using `.then()`. This will give our
1552
- // queue two nice properties:
1553
- //
1554
- // 1. If all functions added to the queue are synchronous they'll be called
1555
- // synchronously right away.
1556
- // 2. If all functions added to the queue are asynchronous they'll all be
1557
- // called in order after `dispatchHooks` exits.
1558
- let maybePromise;
1559
- if (isInitialLoad) {
1560
- {
1561
- // If `componentWillLoad` returns a `Promise` then we want to wait on
1562
- // whatever's going on in that `Promise` before we launch into
1563
- // rendering the component, doing other lifecycle stuff, etc. So
1564
- // in that case we assign the returned promise to the variable we
1565
- // declared above to hold a possible 'queueing' Promise
1566
- maybePromise = safeCall(instance, 'componentWillLoad');
1567
- }
1568
- }
1569
- else {
1570
- {
1571
- // Like `componentWillLoad` above, we allow Stencil component
1572
- // authors to return a `Promise` from this lifecycle callback, and
1573
- // we specify that our runtime will wait for that `Promise` to
1574
- // resolve before the component re-renders. So if the method
1575
- // returns a `Promise` we need to keep it around!
1576
- maybePromise = safeCall(instance, 'componentWillUpdate');
1577
- }
1578
- }
1579
- {
1580
- maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
1581
- }
1582
- endSchedule();
1583
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1584
- };
1585
- /**
1586
- * This function uses a Promise to implement a simple first-in, first-out queue
1587
- * of functions to be called.
1588
- *
1589
- * The queue is ordered on the basis of the first argument. If it's
1590
- * `undefined`, then nothing is on the queue yet, so the provided function can
1591
- * be called synchronously (although note that this function may return a
1592
- * `Promise`). The idea is that then the return value of that enqueueing
1593
- * operation is kept around, so that if it was a `Promise` then subsequent
1594
- * functions can be enqueued by calling this function again with that `Promise`
1595
- * as the first argument.
1596
- *
1597
- * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1598
- * @param fn a function to enqueue
1599
- * @returns either a `Promise` or the return value of the provided function
1600
- */
1601
- const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
1602
- /**
1603
- * Check that a value is a `Promise`. To check, we first see if the value is an
1604
- * instance of the `Promise` global. In a few circumstances, in particular if
1605
- * the global has been overwritten, this is could be misleading, so we also do
1606
- * a little 'duck typing' check to see if the `.then` property of the value is
1607
- * defined and a function.
1608
- *
1609
- * @param maybePromise it might be a promise!
1610
- * @returns whether it is or not
1611
- */
1612
- const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1613
- (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1614
- /**
1615
- * Update a component given reference to its host elements and so on.
1616
- *
1617
- * @param hostRef an object containing references to the element's host node,
1618
- * VDom nodes, and other metadata
1619
- * @param instance a reference to the underlying host element where it will be
1620
- * rendered
1621
- * @param isInitialLoad whether or not this function is being called as part of
1622
- * the first render cycle
1623
- */
1624
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1625
- var _a;
1626
- const elm = hostRef.$hostElement$;
1627
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1628
- const rc = elm['s-rc'];
1629
- if (isInitialLoad) {
1630
- // DOM WRITE!
1631
- attachStyles(hostRef);
1632
- }
1633
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1634
- {
1635
- callRender(hostRef, instance, elm, isInitialLoad);
1636
- }
1637
- if (rc) {
1638
- // ok, so turns out there are some child host elements
1639
- // waiting on this parent element to load
1640
- // let's fire off all update callbacks waiting
1641
- rc.map((cb) => cb());
1642
- elm['s-rc'] = undefined;
1643
- }
1644
- endRender();
1645
- endUpdate();
1646
- {
1647
- const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1648
- const postUpdate = () => postUpdateComponent(hostRef);
1649
- if (childrenPromises.length === 0) {
1650
- postUpdate();
1651
- }
1652
- else {
1653
- Promise.all(childrenPromises).then(postUpdate);
1654
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1655
- childrenPromises.length = 0;
1656
- }
1657
- }
1658
- };
1659
- /**
1660
- * Handle making the call to the VDom renderer with the proper context given
1661
- * various build variables
1662
- *
1663
- * @param hostRef an object containing references to the element's host node,
1664
- * VDom nodes, and other metadata
1665
- * @param instance a reference to the underlying host element where it will be
1666
- * rendered
1667
- * @param elm the Host element for the component
1668
- * @param isInitialLoad whether or not this function is being called as part of
1669
- * @returns an empty promise
1670
- */
1671
- const callRender = (hostRef, instance, elm, isInitialLoad) => {
1672
- try {
1673
- instance = instance.render() ;
1674
- {
1675
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1676
- }
1677
- {
1678
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1679
- }
1680
- {
1681
- {
1682
- // looks like we've got child nodes to render into this host element
1683
- // or we need to update the css class/attrs on the host element
1684
- // DOM WRITE!
1685
- {
1686
- renderVdom(hostRef, instance, isInitialLoad);
1687
- }
1688
- }
1689
- }
1690
- }
1691
- catch (e) {
1692
- consoleError(e, hostRef.$hostElement$);
1693
- }
1694
- return null;
1695
- };
1696
- const postUpdateComponent = (hostRef) => {
1697
- const tagName = hostRef.$cmpMeta$.$tagName$;
1698
- const elm = hostRef.$hostElement$;
1699
- const endPostUpdate = createTime('postUpdate', tagName);
1700
- const instance = hostRef.$lazyInstance$ ;
1701
- const ancestorComponent = hostRef.$ancestorComponent$;
1702
- {
1703
- safeCall(instance, 'componentDidRender');
1704
- }
1705
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1706
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1707
- {
1708
- // DOM WRITE!
1709
- addHydratedFlag(elm);
1710
- }
1711
- {
1712
- safeCall(instance, 'componentDidLoad');
1713
- }
1714
- endPostUpdate();
1715
- {
1716
- hostRef.$onReadyResolve$(elm);
1717
- if (!ancestorComponent) {
1718
- appDidLoad();
1719
- }
1720
- }
1721
- }
1722
- else {
1723
- endPostUpdate();
1724
- }
1725
- {
1726
- hostRef.$onInstanceResolve$(elm);
1727
- }
1728
- // load events fire from bottom to top
1729
- // the deepest elements load first then bubbles up
1730
- {
1731
- if (hostRef.$onRenderResolve$) {
1732
- hostRef.$onRenderResolve$();
1733
- hostRef.$onRenderResolve$ = undefined;
1734
- }
1735
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1736
- nextTick(() => scheduleUpdate(hostRef, false));
1737
- }
1738
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1739
- }
1740
- // ( •_•)
1741
- // ( •_•)>⌐■-■
1742
- // (⌐■_■)
1743
- };
1744
- const appDidLoad = (who) => {
1745
- // on appload
1746
- // we have finish the first big initial render
1747
- {
1748
- addHydratedFlag(doc.documentElement);
1749
- }
1750
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1751
- };
1752
- const safeCall = (instance, method, arg) => {
1753
- if (instance && instance[method]) {
1754
- try {
1755
- return instance[method](arg);
1756
- }
1757
- catch (e) {
1758
- consoleError(e);
1759
- }
1760
- }
1761
- return undefined;
1762
- };
1763
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1764
- ;
1765
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1766
- const setValue = (ref, propName, newVal, cmpMeta) => {
1767
- // check our new property value against our internal value
1768
- const hostRef = getHostRef(ref);
1769
- const elm = hostRef.$hostElement$ ;
1770
- const oldVal = hostRef.$instanceValues$.get(propName);
1771
- const flags = hostRef.$flags$;
1772
- const instance = hostRef.$lazyInstance$ ;
1773
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1774
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1775
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1776
- const didValueChange = newVal !== oldVal && !areBothNaN;
1777
- if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1778
- // gadzooks! the property's value has changed!!
1779
- // set our new value!
1780
- hostRef.$instanceValues$.set(propName, newVal);
1781
- if (instance) {
1782
- // get an array of method names of watch functions to call
1783
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1784
- const watchMethods = cmpMeta.$watchers$[propName];
1785
- if (watchMethods) {
1786
- // this instance is watching for when this property changed
1787
- watchMethods.map((watchMethodName) => {
1788
- try {
1789
- // fire off each of the watch methods that are watching this property
1790
- instance[watchMethodName](newVal, oldVal, propName);
1791
- }
1792
- catch (e) {
1793
- consoleError(e, elm);
1794
- }
1795
- });
1796
- }
1797
- }
1798
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1799
- // looks like this value actually changed, so we've got work to do!
1800
- // but only if we've already rendered, otherwise just chill out
1801
- // queue that we need to do an update, but don't worry about queuing
1802
- // up millions cuz this function ensures it only runs once
1803
- scheduleUpdate(hostRef, false);
1804
- }
1805
- }
1806
- }
1807
- };
1808
- /**
1809
- * Attach a series of runtime constructs to a compiled Stencil component
1810
- * constructor, including getters and setters for the `@Prop` and `@State`
1811
- * decorators, callbacks for when attributes change, and so on.
1812
- *
1813
- * @param Cstr the constructor for a component that we need to process
1814
- * @param cmpMeta metadata collected previously about the component
1815
- * @param flags a number used to store a series of bit flags
1816
- * @returns a reference to the same constructor passed in (but now mutated)
1817
- */
1818
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1819
- if (cmpMeta.$members$) {
1820
- if (Cstr.watchers) {
1821
- cmpMeta.$watchers$ = Cstr.watchers;
1822
- }
1823
- // It's better to have a const than two Object.entries()
1824
- const members = Object.entries(cmpMeta.$members$);
1825
- const prototype = Cstr.prototype;
1826
- members.map(([memberName, [memberFlags]]) => {
1827
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1828
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1829
- // proxyComponent - prop
1830
- Object.defineProperty(prototype, memberName, {
1831
- get() {
1832
- // proxyComponent, get value
1833
- return getValue(this, memberName);
1834
- },
1835
- set(newValue) {
1836
- // proxyComponent, set value
1837
- setValue(this, memberName, newValue, cmpMeta);
1838
- },
1839
- configurable: true,
1840
- enumerable: true,
1841
- });
1842
- }
1843
- else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1844
- memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1845
- // proxyComponent - method
1846
- Object.defineProperty(prototype, memberName, {
1847
- value(...args) {
1848
- const ref = getHostRef(this);
1849
- return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1850
- },
1851
- });
1852
- }
1853
- });
1854
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1855
- const attrNameToPropName = new Map();
1856
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1857
- plt.jmp(() => {
1858
- const propName = attrNameToPropName.get(attrName);
1859
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1860
- // in the case where an attribute was set inline.
1861
- // ```html
1862
- // <my-component some-attribute="some-value"></my-component>
1863
- // ```
1864
- //
1865
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1866
- // programmatically changes it before it has been upgraded as shown below:
1867
- //
1868
- // ```html
1869
- // <!-- this component has _not_ been upgraded yet -->
1870
- // <my-component id="test" some-attribute="some-value"></my-component>
1871
- // <script>
1872
- // // grab non-upgraded component
1873
- // el = document.querySelector("#test");
1874
- // el.someAttribute = "another-value";
1875
- // // upgrade component
1876
- // customElements.define('my-component', MyComponent);
1877
- // </script>
1878
- // ```
1879
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1880
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1881
- // to the value that was set inline i.e. "some-value" from above example. When
1882
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1883
- //
1884
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1885
- // by connectedCallback as this attributeChangedCallback will not fire.
1886
- //
1887
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1888
- //
1889
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1890
- // properties here given that this goes against best practices outlined here
1891
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1892
- if (this.hasOwnProperty(propName)) {
1893
- newValue = this[propName];
1894
- delete this[propName];
1895
- }
1896
- else if (prototype.hasOwnProperty(propName) &&
1897
- typeof this[propName] === 'number' &&
1898
- this[propName] == newValue) {
1899
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1900
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1901
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1902
- return;
1903
- }
1904
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1905
- });
1906
- };
1907
- // create an array of attributes to observe
1908
- // and also create a map of html attribute name to js property name
1909
- Cstr.observedAttributes = members
1910
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1911
- .map(([propName, m]) => {
1912
- const attrName = m[1] || propName;
1913
- attrNameToPropName.set(attrName, propName);
1914
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1915
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1916
- }
1917
- return attrName;
1918
- });
1919
- }
1920
- }
1921
- return Cstr;
1922
- };
1923
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1924
- // initializeComponent
1925
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1926
- // Let the runtime know that the component has been initialized
1927
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1928
- {
1929
- // lazy loaded components
1930
- // request the component's implementation to be
1931
- // wired up with the host element
1932
- Cstr = loadModule(cmpMeta);
1933
- if (Cstr.then) {
1934
- // Await creates a micro-task avoid if possible
1935
- const endLoad = uniqueTime();
1936
- Cstr = await Cstr;
1937
- endLoad();
1938
- }
1939
- if (!Cstr.isProxied) {
1940
- // we've never proxied this Constructor before
1941
- // let's add the getters/setters to its prototype before
1942
- // the first time we create an instance of the implementation
1943
- {
1944
- cmpMeta.$watchers$ = Cstr.watchers;
1945
- }
1946
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1947
- Cstr.isProxied = true;
1948
- }
1949
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1950
- // ok, time to construct the instance
1951
- // but let's keep track of when we start and stop
1952
- // so that the getters/setters don't incorrectly step on data
1953
- {
1954
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1955
- }
1956
- // construct the lazy-loaded component implementation
1957
- // passing the hostRef is very important during
1958
- // construction in order to directly wire together the
1959
- // host element and the lazy-loaded instance
1960
- try {
1961
- new Cstr(hostRef);
1962
- }
1963
- catch (e) {
1964
- consoleError(e);
1965
- }
1966
- {
1967
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1968
- }
1969
- {
1970
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1971
- }
1972
- endNewInstance();
1973
- fireConnectedCallback(hostRef.$lazyInstance$);
1974
- }
1975
- if (Cstr.style) {
1976
- // this component has styles but we haven't registered them yet
1977
- let style = Cstr.style;
1978
- const scopeId = getScopeId(cmpMeta);
1979
- if (!styles.has(scopeId)) {
1980
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1981
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1982
- endRegisterStyles();
1983
- }
1984
- }
1985
- }
1986
- // we've successfully created a lazy instance
1987
- const ancestorComponent = hostRef.$ancestorComponent$;
1988
- const schedule = () => scheduleUpdate(hostRef, true);
1989
- if (ancestorComponent && ancestorComponent['s-rc']) {
1990
- // this is the initial load and this component it has an ancestor component
1991
- // but the ancestor component has NOT fired its will update lifecycle yet
1992
- // so let's just cool our jets and wait for the ancestor to continue first
1993
- // this will get fired off when the ancestor component
1994
- // finally gets around to rendering its lazy self
1995
- // fire off the initial update
1996
- ancestorComponent['s-rc'].push(schedule);
1997
- }
1998
- else {
1999
- schedule();
2000
- }
2001
- };
2002
- const fireConnectedCallback = (instance) => {
2003
- {
2004
- safeCall(instance, 'connectedCallback');
2005
- }
2006
- };
2007
- const connectedCallback = (elm) => {
2008
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
2009
- const hostRef = getHostRef(elm);
2010
- const cmpMeta = hostRef.$cmpMeta$;
2011
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
2012
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
2013
- // first time this component has connected
2014
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
2015
- let hostId;
2016
- {
2017
- hostId = elm.getAttribute(HYDRATE_ID);
2018
- if (hostId) {
2019
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2020
- }
2021
- }
2022
- if (!hostId) {
2023
- // initUpdate
2024
- // if the slot polyfill is required we'll need to put some nodes
2025
- // in here to act as original content anchors as we move nodes around
2026
- // host element has been connected to the DOM
2027
- if ((// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2028
- cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
2029
- setContentReference(elm);
2030
- }
2031
- }
2032
- {
2033
- // find the first ancestor component (if there is one) and register
2034
- // this component as one of the actively loading child components for its ancestor
2035
- let ancestorComponent = elm;
2036
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
2037
- // climb up the ancestors looking for the first
2038
- // component that hasn't finished its lifecycle update yet
2039
- if ((ancestorComponent.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
2040
- ancestorComponent.hasAttribute('s-id') &&
2041
- ancestorComponent['s-p']) ||
2042
- ancestorComponent['s-p']) {
2043
- // we found this components first ancestor component
2044
- // keep a reference to this component's ancestor component
2045
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
2046
- break;
2047
- }
2048
- }
2049
- }
2050
- // Lazy properties
2051
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
2052
- if (cmpMeta.$members$) {
2053
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2054
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
2055
- const value = elm[memberName];
2056
- delete elm[memberName];
2057
- elm[memberName] = value;
2058
- }
2059
- });
2060
- }
2061
- {
2062
- initializeComponent(elm, hostRef, cmpMeta);
2063
- }
2064
- }
2065
- else {
2066
- // fire off connectedCallback() on component instance
2067
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2068
- fireConnectedCallback(hostRef.$lazyInstance$);
2069
- }
2070
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2071
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
2072
- }
2073
- }
2074
- endConnected();
2075
- }
2076
- };
2077
- const setContentReference = (elm) => {
2078
- // only required when we're NOT using native shadow dom (slot)
2079
- // or this browser doesn't support native shadow dom
2080
- // and this host element was NOT created with SSR
2081
- // let's pick out the inner content for slot projection
2082
- // create a node to represent where the original
2083
- // content was first placed, which is useful later on
2084
- const contentRefElm = (elm['s-cr'] = doc.createComment(''));
2085
- contentRefElm['s-cn'] = true;
2086
- elm.insertBefore(contentRefElm, elm.firstChild);
2087
- };
2088
- const disconnectInstance = (instance) => {
2089
- {
2090
- safeCall(instance, 'disconnectedCallback');
2091
- }
2092
- };
2093
- const disconnectedCallback = async (elm) => {
2094
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
2095
- const hostRef = getHostRef(elm);
2096
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2097
- disconnectInstance(hostRef.$lazyInstance$);
2098
- }
2099
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2100
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2101
- }
2102
- }
2103
- };
2104
- const patchCloneNode = (HostElementPrototype) => {
2105
- const orgCloneNode = HostElementPrototype.cloneNode;
2106
- HostElementPrototype.cloneNode = function (deep) {
2107
- const srcNode = this;
2108
- const clonedNode = orgCloneNode.call(srcNode, false);
2109
- if (deep) {
2110
- let i = 0;
2111
- let slotted, nonStencilNode;
2112
- const stencilPrivates = [
2113
- 's-id',
2114
- 's-cr',
2115
- 's-lr',
2116
- 's-rc',
2117
- 's-sc',
2118
- 's-p',
2119
- 's-cn',
2120
- 's-sr',
2121
- 's-sn',
2122
- 's-hn',
2123
- 's-ol',
2124
- 's-nr',
2125
- 's-si',
2126
- ];
2127
- for (; i < srcNode.childNodes.length; i++) {
2128
- slotted = srcNode.childNodes[i]['s-nr'];
2129
- nonStencilNode = stencilPrivates.every((privateField) => !srcNode.childNodes[i][privateField]);
2130
- if (slotted) {
2131
- if (clonedNode.__appendChild) {
2132
- clonedNode.__appendChild(slotted.cloneNode(true));
2133
- }
2134
- else {
2135
- clonedNode.appendChild(slotted.cloneNode(true));
2136
- }
2137
- }
2138
- if (nonStencilNode) {
2139
- clonedNode.appendChild(srcNode.childNodes[i].cloneNode(true));
2140
- }
2141
- }
2142
- }
2143
- return clonedNode;
2144
- };
2145
- };
2146
- const patchSlotAppendChild = (HostElementPrototype) => {
2147
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
2148
- HostElementPrototype.appendChild = function (newChild) {
2149
- const slotName = (newChild['s-sn'] = getSlotName(newChild));
2150
- const slotNode = getHostSlotNode(this.childNodes, slotName);
2151
- if (slotNode) {
2152
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
2153
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
2154
- return appendAfter.parentNode.insertBefore(newChild, appendAfter.nextSibling);
2155
- }
2156
- return this.__appendChild(newChild);
2157
- };
2158
- };
2159
- const patchChildSlotNodes = (elm, cmpMeta) => {
2160
- class FakeNodeList extends Array {
2161
- item(n) {
2162
- return this[n];
2163
- }
2164
- }
2165
- // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2166
- if (cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {
2167
- const childNodesFn = elm.__lookupGetter__('childNodes');
2168
- Object.defineProperty(elm, 'children', {
2169
- get() {
2170
- return this.childNodes.map((n) => n.nodeType === 1);
2171
- },
2172
- });
2173
- Object.defineProperty(elm, 'childElementCount', {
2174
- get() {
2175
- return elm.children.length;
2176
- },
2177
- });
2178
- Object.defineProperty(elm, 'childNodes', {
2179
- get() {
2180
- const childNodes = childNodesFn.call(this);
2181
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0 &&
2182
- getHostRef(this).$flags$ & 2 /* HOST_FLAGS.hasRendered */) {
2183
- const result = new FakeNodeList();
2184
- for (let i = 0; i < childNodes.length; i++) {
2185
- const slot = childNodes[i]['s-nr'];
2186
- if (slot) {
2187
- result.push(slot);
2188
- }
2189
- }
2190
- return result;
2191
- }
2192
- return FakeNodeList.from(childNodes);
2193
- },
2194
- });
2195
- }
2196
- };
2197
- const getSlotName = (node) => node['s-sn'] || (node.nodeType === 1 && node.getAttribute('slot')) || '';
2198
- /**
2199
- * Recursively searches a series of child nodes for a slot with the provided name.
2200
- * @param childNodes the nodes to search for a slot with a specific name.
2201
- * @param slotName the name of the slot to match on.
2202
- * @returns a reference to the slot node that matches the provided name, `null` otherwise
2203
- */
2204
- const getHostSlotNode = (childNodes, slotName) => {
2205
- let i = 0;
2206
- let childNode;
2207
- for (; i < childNodes.length; i++) {
2208
- childNode = childNodes[i];
2209
- if (childNode['s-sr'] && childNode['s-sn'] === slotName) {
2210
- return childNode;
2211
- }
2212
- childNode = getHostSlotNode(childNode.childNodes, slotName);
2213
- if (childNode) {
2214
- return childNode;
2215
- }
2216
- }
2217
- return null;
2218
- };
2219
- const getHostSlotChildNodes = (n, slotName) => {
2220
- const childNodes = [n];
2221
- while ((n = n.nextSibling) && n['s-sn'] === slotName) {
2222
- childNodes.push(n);
2223
- }
2224
- return childNodes;
2225
- };
2226
- const bootstrapLazy = (lazyBundles, options = {}) => {
2227
- const endBootstrap = createTime();
2228
- const exclude = options.exclude || [];
2229
- const customElements = win.customElements;
2230
- const deferredConnectedCallbacks = [];
2231
- let appLoadFallback;
2232
- let isBootstrapping = true;
2233
- Object.assign(plt, options);
2234
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
2235
- {
2236
- // If the app is already hydrated there is not point to disable the
2237
- // async queue. This will improve the first input delay
2238
- plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
2239
- }
2240
- lazyBundles.map((lazyBundle) => {
2241
- lazyBundle[1].map((compactMeta) => {
2242
- const cmpMeta = {
2243
- $flags$: compactMeta[0],
2244
- $tagName$: compactMeta[1],
2245
- $members$: compactMeta[2],
2246
- $listeners$: compactMeta[3],
2247
- };
2248
- {
2249
- cmpMeta.$members$ = compactMeta[2];
2250
- }
2251
- {
2252
- cmpMeta.$attrsToReflect$ = [];
2253
- }
2254
- {
2255
- cmpMeta.$watchers$ = {};
2256
- }
2257
- const tagName = cmpMeta.$tagName$;
2258
- const HostElement = class extends HTMLElement {
2259
- // StencilLazyHost
2260
- constructor(self) {
2261
- // @ts-ignore
2262
- super(self);
2263
- self = this;
2264
- registerHost(self, cmpMeta);
2265
- }
2266
- connectedCallback() {
2267
- if (appLoadFallback) {
2268
- clearTimeout(appLoadFallback);
2269
- appLoadFallback = null;
2270
- }
2271
- if (isBootstrapping) {
2272
- // connectedCallback will be processed once all components have been registered
2273
- deferredConnectedCallbacks.push(this);
2274
- }
2275
- else {
2276
- plt.jmp(() => connectedCallback(this));
2277
- }
2278
- }
2279
- disconnectedCallback() {
2280
- plt.jmp(() => disconnectedCallback(this));
2281
- }
2282
- componentOnReady() {
2283
- return getHostRef(this).$onReadyPromise$;
2284
- }
2285
- };
2286
- // TODO(STENCIL-914): this check and `else` block can go away and be replaced by just `BUILD.scoped` once we
2287
- // default our pseudo-slot behavior
2288
- {
2289
- {
2290
- patchChildSlotNodes(HostElement.prototype, cmpMeta);
2291
- }
2292
- {
2293
- patchCloneNode(HostElement.prototype);
2294
- }
2295
- {
2296
- patchSlotAppendChild(HostElement.prototype);
2297
- }
2298
- }
2299
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
2300
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
2301
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
2302
- }
2303
- });
2304
- });
2305
- // Process deferred connectedCallbacks now all components have been registered
2306
- isBootstrapping = false;
2307
- if (deferredConnectedCallbacks.length) {
2308
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2309
- }
2310
- else {
2311
- {
2312
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
2313
- }
2314
- }
2315
- // Fallback appLoad event
2316
- endBootstrap();
2317
- };
2318
- /**
2319
- * Assigns the given value to the nonce property on the runtime platform object.
2320
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2321
- * @param nonce The value to be assigned to the platform nonce property.
2322
- * @returns void
2323
- */
2324
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
2325
- const hostRefs = /*@__PURE__*/ new WeakMap();
2326
- const getHostRef = (ref) => hostRefs.get(ref);
2327
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2328
- const registerHost = (elm, cmpMeta) => {
2329
- const hostRef = {
2330
- $flags$: 0,
2331
- $hostElement$: elm,
2332
- $cmpMeta$: cmpMeta,
2333
- $instanceValues$: new Map(),
2334
- };
2335
- {
2336
- hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
2337
- }
2338
- {
2339
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2340
- elm['s-p'] = [];
2341
- elm['s-rc'] = [];
2342
- }
2343
- return hostRefs.set(elm, hostRef);
2344
- };
2345
- const isMemberInElement = (elm, memberName) => memberName in elm;
2346
- const consoleError = (e, el) => (0, console.error)(e, el);
2347
- const cmpModules = /*@__PURE__*/ new Map();
2348
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2349
- // loadModuleImport
2350
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2351
- const bundleId = cmpMeta.$lazyBundleId$;
2352
- const module = cmpModules.get(bundleId) ;
2353
- if (module) {
2354
- return module[exportName];
2355
- }
2356
-
2357
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2358
- const processMod = importedModule => {
2359
- cmpModules.set(bundleId, importedModule);
2360
- return importedModule[exportName];
2361
- }
2362
- switch(bundleId) {
2363
-
2364
- case 'gov-accordion':
2365
- return import(
2366
- /* webpackMode: "lazy" */
2367
- './gov-accordion.entry.js').then(processMod, consoleError);
2368
- case 'gov-accordion-item':
2369
- return import(
2370
- /* webpackMode: "lazy" */
2371
- './gov-accordion-item.entry.js').then(processMod, consoleError);
2372
- case 'gov-breadcrumbs':
2373
- return import(
2374
- /* webpackMode: "lazy" */
2375
- './gov-breadcrumbs.entry.js').then(processMod, consoleError);
2376
- case 'gov-card':
2377
- return import(
2378
- /* webpackMode: "lazy" */
2379
- './gov-card.entry.js').then(processMod, consoleError);
2380
- case 'gov-container':
2381
- return import(
2382
- /* webpackMode: "lazy" */
2383
- './gov-container.entry.js').then(processMod, consoleError);
2384
- case 'gov-control-group':
2385
- return import(
2386
- /* webpackMode: "lazy" */
2387
- './gov-control-group.entry.js').then(processMod, consoleError);
2388
- case 'gov-cookiebar':
2389
- return import(
2390
- /* webpackMode: "lazy" */
2391
- './gov-cookiebar.entry.js').then(processMod, consoleError);
2392
- case 'gov-dropdown':
2393
- return import(
2394
- /* webpackMode: "lazy" */
2395
- './gov-dropdown.entry.js').then(processMod, consoleError);
2396
- case 'gov-empty':
2397
- return import(
2398
- /* webpackMode: "lazy" */
2399
- './gov-empty.entry.js').then(processMod, consoleError);
2400
- case 'gov-error-code':
2401
- return import(
2402
- /* webpackMode: "lazy" */
2403
- './gov-error-code.entry.js').then(processMod, consoleError);
2404
- case 'gov-form-checkbox':
2405
- return import(
2406
- /* webpackMode: "lazy" */
2407
- './gov-form-checkbox.entry.js').then(processMod, consoleError);
2408
- case 'gov-form-checkbox-group':
2409
- return import(
2410
- /* webpackMode: "lazy" */
2411
- './gov-form-checkbox-group.entry.js').then(processMod, consoleError);
2412
- case 'gov-form-control':
2413
- return import(
2414
- /* webpackMode: "lazy" */
2415
- './gov-form-control.entry.js').then(processMod, consoleError);
2416
- case 'gov-form-file':
2417
- return import(
2418
- /* webpackMode: "lazy" */
2419
- './gov-form-file.entry.js').then(processMod, consoleError);
2420
- case 'gov-form-group':
2421
- return import(
2422
- /* webpackMode: "lazy" */
2423
- './gov-form-group.entry.js').then(processMod, consoleError);
2424
- case 'gov-form-label':
2425
- return import(
2426
- /* webpackMode: "lazy" */
2427
- './gov-form-label.entry.js').then(processMod, consoleError);
2428
- case 'gov-form-multi-select':
2429
- return import(
2430
- /* webpackMode: "lazy" */
2431
- './gov-form-multi-select.entry.js').then(processMod, consoleError);
2432
- case 'gov-form-password-power':
2433
- return import(
2434
- /* webpackMode: "lazy" */
2435
- './gov-form-password-power.entry.js').then(processMod, consoleError);
2436
- case 'gov-form-radio':
2437
- return import(
2438
- /* webpackMode: "lazy" */
2439
- './gov-form-radio.entry.js').then(processMod, consoleError);
2440
- case 'gov-form-radio-group':
2441
- return import(
2442
- /* webpackMode: "lazy" */
2443
- './gov-form-radio-group.entry.js').then(processMod, consoleError);
2444
- case 'gov-form-search':
2445
- return import(
2446
- /* webpackMode: "lazy" */
2447
- './gov-form-search.entry.js').then(processMod, consoleError);
2448
- case 'gov-form-switch':
2449
- return import(
2450
- /* webpackMode: "lazy" */
2451
- './gov-form-switch.entry.js').then(processMod, consoleError);
2452
- case 'gov-grid':
2453
- return import(
2454
- /* webpackMode: "lazy" */
2455
- './gov-grid.entry.js').then(processMod, consoleError);
2456
- case 'gov-grid-item':
2457
- return import(
2458
- /* webpackMode: "lazy" */
2459
- './gov-grid-item.entry.js').then(processMod, consoleError);
2460
- case 'gov-infobar':
2461
- return import(
2462
- /* webpackMode: "lazy" */
2463
- './gov-infobar.entry.js').then(processMod, consoleError);
2464
- case 'gov-layout':
2465
- return import(
2466
- /* webpackMode: "lazy" */
2467
- './gov-layout.entry.js').then(processMod, consoleError);
2468
- case 'gov-layout-column':
2469
- return import(
2470
- /* webpackMode: "lazy" */
2471
- './gov-layout-column.entry.js').then(processMod, consoleError);
2472
- case 'gov-loading':
2473
- return import(
2474
- /* webpackMode: "lazy" */
2475
- './gov-loading.entry.js').then(processMod, consoleError);
2476
- case 'gov-message':
2477
- return import(
2478
- /* webpackMode: "lazy" */
2479
- './gov-message.entry.js').then(processMod, consoleError);
2480
- case 'gov-modal':
2481
- return import(
2482
- /* webpackMode: "lazy" */
2483
- './gov-modal.entry.js').then(processMod, consoleError);
2484
- case 'gov-nav':
2485
- return import(
2486
- /* webpackMode: "lazy" */
2487
- './gov-nav.entry.js').then(processMod, consoleError);
2488
- case 'gov-nav-item':
2489
- return import(
2490
- /* webpackMode: "lazy" */
2491
- './gov-nav-item.entry.js').then(processMod, consoleError);
2492
- case 'gov-pagination':
2493
- return import(
2494
- /* webpackMode: "lazy" */
2495
- './gov-pagination.entry.js').then(processMod, consoleError);
2496
- case 'gov-prompt':
2497
- return import(
2498
- /* webpackMode: "lazy" */
2499
- './gov-prompt.entry.js').then(processMod, consoleError);
2500
- case 'gov-side-nav':
2501
- return import(
2502
- /* webpackMode: "lazy" */
2503
- './gov-side-nav.entry.js').then(processMod, consoleError);
2504
- case 'gov-side-nav-item':
2505
- return import(
2506
- /* webpackMode: "lazy" */
2507
- './gov-side-nav-item.entry.js').then(processMod, consoleError);
2508
- case 'gov-skeleton':
2509
- return import(
2510
- /* webpackMode: "lazy" */
2511
- './gov-skeleton.entry.js').then(processMod, consoleError);
2512
- case 'gov-spacer':
2513
- return import(
2514
- /* webpackMode: "lazy" */
2515
- './gov-spacer.entry.js').then(processMod, consoleError);
2516
- case 'gov-statsbar':
2517
- return import(
2518
- /* webpackMode: "lazy" */
2519
- './gov-statsbar.entry.js').then(processMod, consoleError);
2520
- case 'gov-statsbar-item':
2521
- return import(
2522
- /* webpackMode: "lazy" */
2523
- './gov-statsbar-item.entry.js').then(processMod, consoleError);
2524
- case 'gov-stepper':
2525
- return import(
2526
- /* webpackMode: "lazy" */
2527
- './gov-stepper.entry.js').then(processMod, consoleError);
2528
- case 'gov-stepper-item':
2529
- return import(
2530
- /* webpackMode: "lazy" */
2531
- './gov-stepper-item.entry.js').then(processMod, consoleError);
2532
- case 'gov-tabs':
2533
- return import(
2534
- /* webpackMode: "lazy" */
2535
- './gov-tabs.entry.js').then(processMod, consoleError);
2536
- case 'gov-tabs-item':
2537
- return import(
2538
- /* webpackMode: "lazy" */
2539
- './gov-tabs-item.entry.js').then(processMod, consoleError);
2540
- case 'gov-tag':
2541
- return import(
2542
- /* webpackMode: "lazy" */
2543
- './gov-tag.entry.js').then(processMod, consoleError);
2544
- case 'gov-tile':
2545
- return import(
2546
- /* webpackMode: "lazy" */
2547
- './gov-tile.entry.js').then(processMod, consoleError);
2548
- case 'gov-tiles':
2549
- return import(
2550
- /* webpackMode: "lazy" */
2551
- './gov-tiles.entry.js').then(processMod, consoleError);
2552
- case 'gov-toast':
2553
- return import(
2554
- /* webpackMode: "lazy" */
2555
- './gov-toast.entry.js').then(processMod, consoleError);
2556
- case 'gov-tooltip':
2557
- return import(
2558
- /* webpackMode: "lazy" */
2559
- './gov-tooltip.entry.js').then(processMod, consoleError);
2560
- case 'gov-tooltip-content':
2561
- return import(
2562
- /* webpackMode: "lazy" */
2563
- './gov-tooltip-content.entry.js').then(processMod, consoleError);
2564
- case 'gov-wizard':
2565
- return import(
2566
- /* webpackMode: "lazy" */
2567
- './gov-wizard.entry.js').then(processMod, consoleError);
2568
- case 'gov-wizard-item':
2569
- return import(
2570
- /* webpackMode: "lazy" */
2571
- './gov-wizard-item.entry.js').then(processMod, consoleError);
2572
- case 'gov-attachments_3':
2573
- return import(
2574
- /* webpackMode: "lazy" */
2575
- './gov-attachments_3.entry.js').then(processMod, consoleError);
2576
- case 'gov-form-autocomplete':
2577
- return import(
2578
- /* webpackMode: "lazy" */
2579
- './gov-form-autocomplete.entry.js').then(processMod, consoleError);
2580
- case 'gov-chip':
2581
- return import(
2582
- /* webpackMode: "lazy" */
2583
- './gov-chip.entry.js').then(processMod, consoleError);
2584
- case 'gov-form-input':
2585
- return import(
2586
- /* webpackMode: "lazy" */
2587
- './gov-form-input.entry.js').then(processMod, consoleError);
2588
- case 'gov-form-select':
2589
- return import(
2590
- /* webpackMode: "lazy" */
2591
- './gov-form-select.entry.js').then(processMod, consoleError);
2592
- case 'gov-backdrop':
2593
- return import(
2594
- /* webpackMode: "lazy" */
2595
- './gov-backdrop.entry.js').then(processMod, consoleError);
2596
- case 'gov-button':
2597
- return import(
2598
- /* webpackMode: "lazy" */
2599
- './gov-button.entry.js').then(processMod, consoleError);
2600
- case 'gov-icon':
2601
- return import(
2602
- /* webpackMode: "lazy" */
2603
- './gov-icon.entry.js').then(processMod, consoleError);
2604
- }
2605
- }
2606
- return import(
2607
- /* @vite-ignore */
2608
- /* webpackInclude: /\.entry\.js$/ */
2609
- /* webpackExclude: /\.system\.entry\.js$/ */
2610
- /* webpackMode: "lazy" */
2611
- `./${bundleId}.entry.js${''}`).then((importedModule) => {
2612
- {
2613
- cmpModules.set(bundleId, importedModule);
2614
- }
2615
- return importedModule[exportName];
2616
- }, consoleError);
2617
- };
2618
- const styles = /*@__PURE__*/ new Map();
2619
- const win = typeof window !== 'undefined' ? window : {};
2620
- const doc = win.document || { head: {} };
2621
- const H = (win.HTMLElement || class {
2622
- });
2623
- const plt = {
2624
- $flags$: 0,
2625
- $resourcesUrl$: '',
2626
- jmp: (h) => h(),
2627
- raf: (h) => requestAnimationFrame(h),
2628
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2629
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2630
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
2631
- };
2632
- const supportsShadow =
2633
- // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2634
- true;
2635
- const promiseResolve = (v) => Promise.resolve(v);
2636
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2637
- try {
2638
- new CSSStyleSheet();
2639
- return typeof new CSSStyleSheet().replaceSync === 'function';
2640
- }
2641
- catch (e) { }
2642
- return false;
2643
- })()
2644
- ;
2645
- const queueDomReads = [];
2646
- const queueDomWrites = [];
2647
- const queueTask = (queue, write) => (cb) => {
2648
- queue.push(cb);
2649
- if (!queuePending) {
2650
- queuePending = true;
2651
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2652
- nextTick(flush);
2653
- }
2654
- else {
2655
- plt.raf(flush);
2656
- }
2657
- }
2658
- };
2659
- const consume = (queue) => {
2660
- for (let i = 0; i < queue.length; i++) {
2661
- try {
2662
- queue[i](performance.now());
2663
- }
2664
- catch (e) {
2665
- consoleError(e);
2666
- }
2667
- }
2668
- queue.length = 0;
2669
- };
2670
- const flush = () => {
2671
- // always force a bunch of medium callbacks to run, but still have
2672
- // a throttle on how many can run in a certain time
2673
- // DOM READS!!!
2674
- consume(queueDomReads);
2675
- // DOM WRITES!!!
2676
- {
2677
- consume(queueDomWrites);
2678
- if ((queuePending = queueDomReads.length > 0)) {
2679
- // still more to do yet, but we've run out of time
2680
- // let's let this thing cool off and try again in the next tick
2681
- plt.raf(flush);
2682
- }
2683
- }
2684
- };
2685
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2686
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2687
-
2688
- export { H, Host as a, bootstrapLazy as b, createEvent as c, getAssetPath as d, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2689
-
2690
- //# sourceMappingURL=index-eb59f132.js.map