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