@gov-design-system-ce/components 0.0.15 → 0.0.17

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 (1381) hide show
  1. package/dist/cjs/Fragment-52846f79.js +7 -0
  2. package/dist/cjs/Fragment-52846f79.js.map +1 -0
  3. package/dist/cjs/constants-0488d137.js +22 -0
  4. package/dist/cjs/constants-0488d137.js.map +1 -0
  5. package/dist/cjs/constants-0883e74c.js +30 -0
  6. package/dist/cjs/constants-0883e74c.js.map +1 -0
  7. package/dist/cjs/constants-0c6c8e11.js +30 -0
  8. package/dist/cjs/constants-0c6c8e11.js.map +1 -0
  9. package/dist/cjs/constants-1490a5eb.js +25 -0
  10. package/dist/cjs/constants-1490a5eb.js.map +1 -0
  11. package/dist/cjs/constants-20b3f7ee.js +28 -0
  12. package/dist/cjs/constants-20b3f7ee.js.map +1 -0
  13. package/dist/cjs/constants-21559414.js +29 -0
  14. package/dist/cjs/constants-21559414.js.map +1 -0
  15. package/dist/cjs/constants-23b7a283.js +33 -0
  16. package/dist/cjs/constants-23b7a283.js.map +1 -0
  17. package/dist/cjs/constants-2b1c31b8.js +15 -0
  18. package/dist/cjs/constants-2b1c31b8.js.map +1 -0
  19. package/dist/cjs/constants-61f8be34.js +26 -0
  20. package/dist/cjs/constants-61f8be34.js.map +1 -0
  21. package/dist/cjs/constants-86fb4eb4.js +19 -0
  22. package/dist/cjs/constants-86fb4eb4.js.map +1 -0
  23. package/dist/cjs/constants-97eea364.js +14 -0
  24. package/dist/cjs/constants-97eea364.js.map +1 -0
  25. package/dist/cjs/constants-adc8268f.js +37 -0
  26. package/dist/cjs/constants-adc8268f.js.map +1 -0
  27. package/dist/cjs/constants-caad94b4.js +16 -0
  28. package/dist/cjs/constants-caad94b4.js.map +1 -0
  29. package/dist/cjs/constants-ded92f8a.js +13 -0
  30. package/dist/cjs/constants-ded92f8a.js.map +1 -0
  31. package/dist/cjs/constants-e47694c4.js +19 -0
  32. package/dist/cjs/constants-e47694c4.js.map +1 -0
  33. package/dist/cjs/constants-e8760a84.js +20 -0
  34. package/dist/cjs/constants-e8760a84.js.map +1 -0
  35. package/dist/cjs/core.cjs.js +21 -0
  36. package/dist/cjs/core.cjs.js.map +1 -0
  37. package/dist/cjs/form-9b8b1740.js +150 -0
  38. package/dist/cjs/form-9b8b1740.js.map +1 -0
  39. package/dist/cjs/gov-accordion-item.cjs.entry.js +113 -0
  40. package/dist/cjs/gov-accordion-item.cjs.entry.js.map +1 -0
  41. package/dist/cjs/gov-accordion.cjs.entry.js +75 -0
  42. package/dist/cjs/gov-accordion.cjs.entry.js.map +1 -0
  43. package/dist/cjs/gov-alert.cjs.entry.js +58 -0
  44. package/dist/cjs/gov-alert.cjs.entry.js.map +1 -0
  45. package/dist/cjs/gov-app.cjs.entry.js +8356 -0
  46. package/dist/cjs/gov-app.cjs.entry.js.map +1 -0
  47. package/dist/cjs/gov-attachments_3.cjs.entry.js +120 -0
  48. package/dist/cjs/gov-attachments_3.cjs.entry.js.map +1 -0
  49. package/dist/cjs/gov-backdrop.cjs.entry.js +54 -0
  50. package/dist/cjs/gov-backdrop.cjs.entry.js.map +1 -0
  51. package/dist/cjs/gov-badge.cjs.entry.js +84 -0
  52. package/dist/cjs/gov-badge.cjs.entry.js.map +1 -0
  53. package/dist/cjs/gov-breadcrumbs.cjs.entry.js +50 -0
  54. package/dist/cjs/gov-breadcrumbs.cjs.entry.js.map +1 -0
  55. package/dist/cjs/gov-button.cjs.entry.js +155 -0
  56. package/dist/cjs/gov-button.cjs.entry.js.map +1 -0
  57. package/dist/cjs/gov-card.cjs.entry.js +112 -0
  58. package/dist/cjs/gov-card.cjs.entry.js.map +1 -0
  59. package/dist/cjs/gov-container.cjs.entry.js +36 -0
  60. package/dist/cjs/gov-container.cjs.entry.js.map +1 -0
  61. package/dist/cjs/gov-cookiebar.cjs.entry.js +33 -0
  62. package/dist/cjs/gov-cookiebar.cjs.entry.js.map +1 -0
  63. package/dist/cjs/gov-empty.cjs.entry.js +31 -0
  64. package/dist/cjs/gov-empty.cjs.entry.js.map +1 -0
  65. package/dist/cjs/gov-error-code.cjs.entry.js +31 -0
  66. package/dist/cjs/gov-error-code.cjs.entry.js.map +1 -0
  67. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +177 -0
  68. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -0
  69. package/dist/cjs/gov-form-checkbox.cjs.entry.js +108 -0
  70. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -0
  71. package/dist/cjs/gov-form-control.cjs.entry.js +100 -0
  72. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -0
  73. package/dist/cjs/gov-form-file.cjs.entry.js +187 -0
  74. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -0
  75. package/dist/cjs/gov-form-group.cjs.entry.js +43 -0
  76. package/dist/cjs/gov-form-group.cjs.entry.js.map +1 -0
  77. package/dist/cjs/gov-form-input.cjs.entry.js +151 -0
  78. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -0
  79. package/dist/cjs/gov-form-label.cjs.entry.js +30 -0
  80. package/dist/cjs/gov-form-label.cjs.entry.js.map +1 -0
  81. package/dist/cjs/gov-form-multi-select.cjs.entry.js +193 -0
  82. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -0
  83. package/dist/cjs/gov-form-password-power.cjs.entry.js +28 -0
  84. package/dist/cjs/gov-form-password-power.cjs.entry.js.map +1 -0
  85. package/dist/cjs/gov-form-radio.cjs.entry.js +108 -0
  86. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -0
  87. package/dist/cjs/gov-form-search.cjs.entry.js +28 -0
  88. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -0
  89. package/dist/cjs/gov-form-select.cjs.entry.js +124 -0
  90. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -0
  91. package/dist/cjs/gov-form-switch.cjs.entry.js +108 -0
  92. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -0
  93. package/dist/cjs/gov-grid-item.cjs.entry.js +30 -0
  94. package/dist/cjs/gov-grid-item.cjs.entry.js.map +1 -0
  95. package/dist/cjs/gov-grid.cjs.entry.js +28 -0
  96. package/dist/cjs/gov-grid.cjs.entry.js.map +1 -0
  97. package/dist/cjs/gov-icon.cjs.entry.js +126 -0
  98. package/dist/cjs/gov-icon.cjs.entry.js.map +1 -0
  99. package/dist/cjs/gov-layout-column.cjs.entry.js +25 -0
  100. package/dist/cjs/gov-layout-column.cjs.entry.js.map +1 -0
  101. package/dist/cjs/gov-layout.cjs.entry.js +34 -0
  102. package/dist/cjs/gov-layout.cjs.entry.js.map +1 -0
  103. package/dist/cjs/gov-loading.cjs.entry.js +31 -0
  104. package/dist/cjs/gov-loading.cjs.entry.js.map +1 -0
  105. package/dist/cjs/gov-message.cjs.entry.js +43 -0
  106. package/dist/cjs/gov-message.cjs.entry.js.map +1 -0
  107. package/dist/cjs/gov-modal.cjs.entry.js +105 -0
  108. package/dist/cjs/gov-modal.cjs.entry.js.map +1 -0
  109. package/dist/cjs/gov-nav-item.cjs.entry.js +37 -0
  110. package/dist/cjs/gov-nav-item.cjs.entry.js.map +1 -0
  111. package/dist/cjs/gov-nav.cjs.entry.js +42 -0
  112. package/dist/cjs/gov-nav.cjs.entry.js.map +1 -0
  113. package/dist/cjs/gov-pagination.cjs.entry.js +209 -0
  114. package/dist/cjs/gov-pagination.cjs.entry.js.map +1 -0
  115. package/dist/cjs/gov-prompt.cjs.entry.js +105 -0
  116. package/dist/cjs/gov-prompt.cjs.entry.js.map +1 -0
  117. package/dist/cjs/gov-side-nav-item.cjs.entry.js +85 -0
  118. package/dist/cjs/gov-side-nav-item.cjs.entry.js.map +1 -0
  119. package/dist/cjs/gov-side-nav.cjs.entry.js +56 -0
  120. package/dist/cjs/gov-side-nav.cjs.entry.js.map +1 -0
  121. package/dist/cjs/gov-skeleton.cjs.entry.js +117 -0
  122. package/dist/cjs/gov-skeleton.cjs.entry.js.map +1 -0
  123. package/dist/cjs/gov-spacer.cjs.entry.js +57 -0
  124. package/dist/cjs/gov-spacer.cjs.entry.js.map +1 -0
  125. package/dist/cjs/gov-statsbar-item.cjs.entry.js +39 -0
  126. package/dist/cjs/gov-statsbar-item.cjs.entry.js.map +1 -0
  127. package/dist/cjs/gov-statsbar.cjs.entry.js +52 -0
  128. package/dist/cjs/gov-statsbar.cjs.entry.js.map +1 -0
  129. package/dist/cjs/gov-stepper-item.cjs.entry.js +77 -0
  130. package/dist/cjs/gov-stepper-item.cjs.entry.js.map +1 -0
  131. package/dist/cjs/gov-stepper.cjs.entry.js +50 -0
  132. package/dist/cjs/gov-stepper.cjs.entry.js.map +1 -0
  133. package/dist/cjs/gov-tabs-item.cjs.entry.js +53 -0
  134. package/dist/cjs/gov-tabs-item.cjs.entry.js.map +1 -0
  135. package/dist/cjs/gov-tabs.cjs.entry.js +189 -0
  136. package/dist/cjs/gov-tabs.cjs.entry.js.map +1 -0
  137. package/dist/cjs/gov-tile.cjs.entry.js +50 -0
  138. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -0
  139. package/dist/cjs/gov-tiles.cjs.entry.js +33 -0
  140. package/dist/cjs/gov-tiles.cjs.entry.js.map +1 -0
  141. package/dist/cjs/gov-toast.cjs.entry.js +103 -0
  142. package/dist/cjs/gov-toast.cjs.entry.js.map +1 -0
  143. package/dist/cjs/gov-tooltip-content.cjs.entry.js +42 -0
  144. package/dist/cjs/gov-tooltip-content.cjs.entry.js.map +1 -0
  145. package/dist/cjs/gov-tooltip.cjs.entry.js +158 -0
  146. package/dist/cjs/gov-tooltip.cjs.entry.js.map +1 -0
  147. package/dist/cjs/gov-wizzard-item.cjs.entry.js +110 -0
  148. package/dist/cjs/gov-wizzard-item.cjs.entry.js.map +1 -0
  149. package/dist/cjs/gov-wizzard.cjs.entry.js +67 -0
  150. package/dist/cjs/gov-wizzard.cjs.entry.js.map +1 -0
  151. package/dist/cjs/gov.log-0c9dca27.js +20 -0
  152. package/dist/cjs/gov.log-0c9dca27.js.map +1 -0
  153. package/dist/cjs/index-29ac07f6.js +2325 -0
  154. package/dist/cjs/index-29ac07f6.js.map +1 -0
  155. package/dist/cjs/index.cjs.js +4 -0
  156. package/dist/cjs/index.cjs.js.map +1 -0
  157. package/dist/cjs/loader.cjs.js +23 -0
  158. package/dist/cjs/loader.cjs.js.map +1 -0
  159. package/dist/cjs/props-5f82e4c0.js +16 -0
  160. package/dist/cjs/props-5f82e4c0.js.map +1 -0
  161. package/dist/cjs/sizes-79872c2a.js +18 -0
  162. package/dist/cjs/sizes-79872c2a.js.map +1 -0
  163. package/dist/cjs/string.utils-0f08c48c.js +24 -0
  164. package/dist/cjs/string.utils-0f08c48c.js.map +1 -0
  165. package/dist/cjs/template-e1c4ff78.js +121 -0
  166. package/dist/cjs/template-e1c4ff78.js.map +1 -0
  167. package/dist/cjs/utils-c9b1bba3.js +41 -0
  168. package/dist/cjs/utils-c9b1bba3.js.map +1 -0
  169. package/dist/cjs/variants-f5ffeef3.js +18 -0
  170. package/dist/cjs/variants-f5ffeef3.js.map +1 -0
  171. package/dist/cjs/wcag-6efc0ab7.js +67 -0
  172. package/dist/cjs/wcag-6efc0ab7.js.map +1 -0
  173. package/dist/cjs/win-84bda0aa.js +26 -0
  174. package/dist/cjs/win-84bda0aa.js.map +1 -0
  175. package/dist/collection/collection-manifest.json +69 -0
  176. package/dist/collection/components/gov-accordion/constants.js +21 -0
  177. package/dist/collection/components/gov-accordion/constants.js.map +1 -0
  178. package/dist/collection/components/gov-accordion/gov-accordion-item.css +484 -0
  179. package/dist/collection/components/gov-accordion/gov-accordion-item.d.js +2 -0
  180. package/dist/collection/components/gov-accordion/gov-accordion-item.d.js.map +1 -0
  181. package/dist/collection/components/gov-accordion/gov-accordion-item.js +386 -0
  182. package/dist/collection/components/gov-accordion/gov-accordion-item.js.map +1 -0
  183. package/dist/collection/components/gov-accordion/gov-accordion.css +231 -0
  184. package/dist/collection/components/gov-accordion/gov-accordion.js +220 -0
  185. package/dist/collection/components/gov-accordion/gov-accordion.js.map +1 -0
  186. package/dist/collection/components/gov-alert/constants.js +11 -0
  187. package/dist/collection/components/gov-alert/constants.js.map +1 -0
  188. package/dist/collection/components/gov-alert/gov-alert.css +379 -0
  189. package/dist/collection/components/gov-alert/gov-alert.js +150 -0
  190. package/dist/collection/components/gov-alert/gov-alert.js.map +1 -0
  191. package/dist/collection/components/gov-app/gov-app.css +240 -0
  192. package/dist/collection/components/gov-app/gov-app.js +95 -0
  193. package/dist/collection/components/gov-app/gov-app.js.map +1 -0
  194. package/dist/collection/components/gov-attachments/constants.js +12 -0
  195. package/dist/collection/components/gov-attachments/constants.js.map +1 -0
  196. package/dist/collection/components/gov-attachments/gov-attachments-item.css +252 -0
  197. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js +2 -0
  198. package/dist/collection/components/gov-attachments/gov-attachments-item.d.js.map +1 -0
  199. package/dist/collection/components/gov-attachments/gov-attachments-item.js +121 -0
  200. package/dist/collection/components/gov-attachments/gov-attachments-item.js.map +1 -0
  201. package/dist/collection/components/gov-attachments/gov-attachments.css +238 -0
  202. package/dist/collection/components/gov-attachments/gov-attachments.js +99 -0
  203. package/dist/collection/components/gov-attachments/gov-attachments.js.map +1 -0
  204. package/dist/collection/components/gov-backdrop/constants.js +5 -0
  205. package/dist/collection/components/gov-backdrop/constants.js.map +1 -0
  206. package/dist/collection/components/gov-backdrop/gov-backdrop.css +237 -0
  207. package/dist/collection/components/gov-backdrop/gov-backdrop.js +162 -0
  208. package/dist/collection/components/gov-backdrop/gov-backdrop.js.map +1 -0
  209. package/dist/collection/components/gov-badge/constants.js +13 -0
  210. package/dist/collection/components/gov-badge/constants.js.map +1 -0
  211. package/dist/collection/components/gov-badge/gov-badge.css +1203 -0
  212. package/dist/collection/components/gov-badge/gov-badge.js +284 -0
  213. package/dist/collection/components/gov-badge/gov-badge.js.map +1 -0
  214. package/dist/collection/components/gov-breadcrumbs/constants.js +4 -0
  215. package/dist/collection/components/gov-breadcrumbs/constants.js.map +1 -0
  216. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.css +270 -0
  217. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js +2 -0
  218. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.d.js.map +1 -0
  219. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js +160 -0
  220. package/dist/collection/components/gov-breadcrumbs/gov-breadcrumbs.js.map +1 -0
  221. package/dist/collection/components/gov-button/constants.js +29 -0
  222. package/dist/collection/components/gov-button/constants.js.map +1 -0
  223. package/dist/collection/components/gov-button/gov-button.css +1136 -0
  224. package/dist/collection/components/gov-button/gov-button.js +794 -0
  225. package/dist/collection/components/gov-button/gov-button.js.map +1 -0
  226. package/dist/collection/components/gov-card/constants.js +14 -0
  227. package/dist/collection/components/gov-card/constants.js.map +1 -0
  228. package/dist/collection/components/gov-card/gov-card.css +368 -0
  229. package/dist/collection/components/gov-card/gov-card.js +307 -0
  230. package/dist/collection/components/gov-card/gov-card.js.map +1 -0
  231. package/dist/collection/components/gov-card/interfaces.js +2 -0
  232. package/dist/collection/components/gov-card/interfaces.js.map +1 -0
  233. package/dist/collection/components/gov-container/constants.js +4 -0
  234. package/dist/collection/components/gov-container/constants.js.map +1 -0
  235. package/dist/collection/components/gov-container/gov-container.css +238 -0
  236. package/dist/collection/components/gov-container/gov-container.js +58 -0
  237. package/dist/collection/components/gov-container/gov-container.js.map +1 -0
  238. package/dist/collection/components/gov-cookiebar/constants.js +9 -0
  239. package/dist/collection/components/gov-cookiebar/constants.js.map +1 -0
  240. package/dist/collection/components/gov-cookiebar/gov-cookiebar.css +280 -0
  241. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js +24 -0
  242. package/dist/collection/components/gov-cookiebar/gov-cookiebar.js.map +1 -0
  243. package/dist/collection/components/gov-empty/constants.js +7 -0
  244. package/dist/collection/components/gov-empty/constants.js.map +1 -0
  245. package/dist/collection/components/gov-empty/gov-empty.css +246 -0
  246. package/dist/collection/components/gov-empty/gov-empty.js +24 -0
  247. package/dist/collection/components/gov-empty/gov-empty.js.map +1 -0
  248. package/dist/collection/components/gov-error-code/constants.js +7 -0
  249. package/dist/collection/components/gov-error-code/constants.js.map +1 -0
  250. package/dist/collection/components/gov-error-code/gov-error-code.css +261 -0
  251. package/dist/collection/components/gov-error-code/gov-error-code.js +24 -0
  252. package/dist/collection/components/gov-error-code/gov-error-code.js.map +1 -0
  253. package/dist/collection/components/gov-form/autocomplete/constants.js +11 -0
  254. package/dist/collection/components/gov-form/autocomplete/constants.js.map +1 -0
  255. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.css +273 -0
  256. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +660 -0
  257. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -0
  258. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js +2 -0
  259. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.types.js.map +1 -0
  260. package/dist/collection/components/gov-form/checkbox/constants.js +8 -0
  261. package/dist/collection/components/gov-form/checkbox/constants.js.map +1 -0
  262. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.css +388 -0
  263. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +390 -0
  264. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -0
  265. package/dist/collection/components/gov-form/control/constants.js +9 -0
  266. package/dist/collection/components/gov-form/control/constants.js.map +1 -0
  267. package/dist/collection/components/gov-form/control/gov-form-control.css +282 -0
  268. package/dist/collection/components/gov-form/control/gov-form-control.js +234 -0
  269. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -0
  270. package/dist/collection/components/gov-form/file/constants.js +10 -0
  271. package/dist/collection/components/gov-form/file/constants.js.map +1 -0
  272. package/dist/collection/components/gov-form/file/gov-form-file.css +285 -0
  273. package/dist/collection/components/gov-form/file/gov-form-file.js +555 -0
  274. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -0
  275. package/dist/collection/components/gov-form/file/gov-form-file.types.js +2 -0
  276. package/dist/collection/components/gov-form/file/gov-form-file.types.js.map +1 -0
  277. package/dist/collection/components/gov-form/group/constants.js +7 -0
  278. package/dist/collection/components/gov-form/group/constants.js.map +1 -0
  279. package/dist/collection/components/gov-form/group/gov-form-group.css +242 -0
  280. package/dist/collection/components/gov-form/group/gov-form-group.js +65 -0
  281. package/dist/collection/components/gov-form/group/gov-form-group.js.map +1 -0
  282. package/dist/collection/components/gov-form/input/constants.js +29 -0
  283. package/dist/collection/components/gov-form/input/constants.js.map +1 -0
  284. package/dist/collection/components/gov-form/input/gov-form-input.css +453 -0
  285. package/dist/collection/components/gov-form/input/gov-form-input.js +801 -0
  286. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -0
  287. package/dist/collection/components/gov-form/label/constants.js +8 -0
  288. package/dist/collection/components/gov-form/label/constants.js.map +1 -0
  289. package/dist/collection/components/gov-form/label/gov-form-label.css +269 -0
  290. package/dist/collection/components/gov-form/label/gov-form-label.js +128 -0
  291. package/dist/collection/components/gov-form/label/gov-form-label.js.map +1 -0
  292. package/dist/collection/components/gov-form/message/constants.js +9 -0
  293. package/dist/collection/components/gov-form/message/constants.js.map +1 -0
  294. package/dist/collection/components/gov-form/message/gov-form-message.css +253 -0
  295. package/dist/collection/components/gov-form/message/gov-form-message.js +93 -0
  296. package/dist/collection/components/gov-form/message/gov-form-message.js.map +1 -0
  297. package/dist/collection/components/gov-form/multiselect/constants.js +12 -0
  298. package/dist/collection/components/gov-form/multiselect/constants.js.map +1 -0
  299. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.css +513 -0
  300. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +544 -0
  301. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -0
  302. package/dist/collection/components/gov-form/multiselect/interfaces.js +2 -0
  303. package/dist/collection/components/gov-form/multiselect/interfaces.js.map +1 -0
  304. package/dist/collection/components/gov-form/password-power/constants.js +6 -0
  305. package/dist/collection/components/gov-form/password-power/constants.js.map +1 -0
  306. package/dist/collection/components/gov-form/password-power/gov-form-password-power.css +265 -0
  307. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js +43 -0
  308. package/dist/collection/components/gov-form/password-power/gov-form-password-power.js.map +1 -0
  309. package/dist/collection/components/gov-form/radio/constants.js +10 -0
  310. package/dist/collection/components/gov-form/radio/constants.js.map +1 -0
  311. package/dist/collection/components/gov-form/radio/gov-form-radio.css +387 -0
  312. package/dist/collection/components/gov-form/radio/gov-form-radio.js +390 -0
  313. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -0
  314. package/dist/collection/components/gov-form/search/constants.js +6 -0
  315. package/dist/collection/components/gov-form/search/constants.js.map +1 -0
  316. package/dist/collection/components/gov-form/search/gov-form-search.css +260 -0
  317. package/dist/collection/components/gov-form/search/gov-form-search.js +20 -0
  318. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -0
  319. package/dist/collection/components/gov-form/select/constants.js +10 -0
  320. package/dist/collection/components/gov-form/select/constants.js.map +1 -0
  321. package/dist/collection/components/gov-form/select/gov-form-select.css +472 -0
  322. package/dist/collection/components/gov-form/select/gov-form-select.js +497 -0
  323. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -0
  324. package/dist/collection/components/gov-form/switch/constants.js +10 -0
  325. package/dist/collection/components/gov-form/switch/constants.js.map +1 -0
  326. package/dist/collection/components/gov-form/switch/gov-form-switch.css +403 -0
  327. package/dist/collection/components/gov-form/switch/gov-form-switch.js +390 -0
  328. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -0
  329. package/dist/collection/components/gov-grid/constants.js +7 -0
  330. package/dist/collection/components/gov-grid/constants.js.map +1 -0
  331. package/dist/collection/components/gov-grid/gov-grid-item.css +472 -0
  332. package/dist/collection/components/gov-grid/gov-grid-item.js +119 -0
  333. package/dist/collection/components/gov-grid/gov-grid-item.js.map +1 -0
  334. package/dist/collection/components/gov-grid/gov-grid.css +247 -0
  335. package/dist/collection/components/gov-grid/gov-grid.js +65 -0
  336. package/dist/collection/components/gov-grid/gov-grid.js.map +1 -0
  337. package/dist/collection/components/gov-icon/constants.js +11 -0
  338. package/dist/collection/components/gov-icon/constants.js.map +1 -0
  339. package/dist/collection/components/gov-icon/gov-icon.css +232 -0
  340. package/dist/collection/components/gov-icon/gov-icon.js +135 -0
  341. package/dist/collection/components/gov-icon/gov-icon.js.map +1 -0
  342. package/dist/collection/components/gov-icon/list.js +238 -0
  343. package/dist/collection/components/gov-icon/list.js.map +1 -0
  344. package/dist/collection/components/gov-layout/constants.js +19 -0
  345. package/dist/collection/components/gov-layout/constants.js.map +1 -0
  346. package/dist/collection/components/gov-layout/gov-layout-column.css +227 -0
  347. package/dist/collection/components/gov-layout/gov-layout-column.js +24 -0
  348. package/dist/collection/components/gov-layout/gov-layout-column.js.map +1 -0
  349. package/dist/collection/components/gov-layout/gov-layout.css +273 -0
  350. package/dist/collection/components/gov-layout/gov-layout.js +100 -0
  351. package/dist/collection/components/gov-layout/gov-layout.js.map +1 -0
  352. package/dist/collection/components/gov-loading/loading/constants.js +6 -0
  353. package/dist/collection/components/gov-loading/loading/constants.js.map +1 -0
  354. package/dist/collection/components/gov-loading/loading/gov-loading.css +251 -0
  355. package/dist/collection/components/gov-loading/loading/gov-loading.js +47 -0
  356. package/dist/collection/components/gov-loading/loading/gov-loading.js.map +1 -0
  357. package/dist/collection/components/gov-loading/skeleton/constants.js +20 -0
  358. package/dist/collection/components/gov-loading/skeleton/constants.js.map +1 -0
  359. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.css +290 -0
  360. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js +267 -0
  361. package/dist/collection/components/gov-loading/skeleton/gov-skeleton.js.map +1 -0
  362. package/dist/collection/components/gov-message/constants.js +10 -0
  363. package/dist/collection/components/gov-message/constants.js.map +1 -0
  364. package/dist/collection/components/gov-message/gov-message.css +310 -0
  365. package/dist/collection/components/gov-message/gov-message.js +63 -0
  366. package/dist/collection/components/gov-message/gov-message.js.map +1 -0
  367. package/dist/collection/components/gov-modal/constants.js +14 -0
  368. package/dist/collection/components/gov-modal/constants.js.map +1 -0
  369. package/dist/collection/components/gov-modal/gov-modal.css +335 -0
  370. package/dist/collection/components/gov-modal/gov-modal.js +331 -0
  371. package/dist/collection/components/gov-modal/gov-modal.js.map +1 -0
  372. package/dist/collection/components/gov-nav/constants.js +9 -0
  373. package/dist/collection/components/gov-nav/constants.js.map +1 -0
  374. package/dist/collection/components/gov-nav/gov-nav-item.css +279 -0
  375. package/dist/collection/components/gov-nav/gov-nav-item.js +68 -0
  376. package/dist/collection/components/gov-nav/gov-nav-item.js.map +1 -0
  377. package/dist/collection/components/gov-nav/gov-nav.css +245 -0
  378. package/dist/collection/components/gov-nav/gov-nav.js +97 -0
  379. package/dist/collection/components/gov-nav/gov-nav.js.map +1 -0
  380. package/dist/collection/components/gov-pagination/constants.js +21 -0
  381. package/dist/collection/components/gov-pagination/constants.js.map +1 -0
  382. package/dist/collection/components/gov-pagination/gov-pagination.css +385 -0
  383. package/dist/collection/components/gov-pagination/gov-pagination.js +436 -0
  384. package/dist/collection/components/gov-pagination/gov-pagination.js.map +1 -0
  385. package/dist/collection/components/gov-pagination/pagination.js +55 -0
  386. package/dist/collection/components/gov-pagination/pagination.js.map +1 -0
  387. package/dist/collection/components/gov-promp/constants.js +13 -0
  388. package/dist/collection/components/gov-promp/constants.js.map +1 -0
  389. package/dist/collection/components/gov-promp/gov-prompt.css +338 -0
  390. package/dist/collection/components/gov-promp/gov-prompt.js +331 -0
  391. package/dist/collection/components/gov-promp/gov-prompt.js.map +1 -0
  392. package/dist/collection/components/gov-side-nav/constants.js +16 -0
  393. package/dist/collection/components/gov-side-nav/constants.js.map +1 -0
  394. package/dist/collection/components/gov-side-nav/gov-side-nav-item.css +375 -0
  395. package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js +2 -0
  396. package/dist/collection/components/gov-side-nav/gov-side-nav-item.d.js.map +1 -0
  397. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js +331 -0
  398. package/dist/collection/components/gov-side-nav/gov-side-nav-item.js.map +1 -0
  399. package/dist/collection/components/gov-side-nav/gov-side-nav.css +228 -0
  400. package/dist/collection/components/gov-side-nav/gov-side-nav.js +169 -0
  401. package/dist/collection/components/gov-side-nav/gov-side-nav.js.map +1 -0
  402. package/dist/collection/components/gov-spacer/constants.js +15 -0
  403. package/dist/collection/components/gov-spacer/constants.js.map +1 -0
  404. package/dist/collection/components/gov-spacer/gov-spacer.css +293 -0
  405. package/dist/collection/components/gov-spacer/gov-spacer.js +95 -0
  406. package/dist/collection/components/gov-spacer/gov-spacer.js.map +1 -0
  407. package/dist/collection/components/gov-statsbar/constants.js +18 -0
  408. package/dist/collection/components/gov-statsbar/constants.js.map +1 -0
  409. package/dist/collection/components/gov-statsbar/gov-statsbar-item.css +287 -0
  410. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js +65 -0
  411. package/dist/collection/components/gov-statsbar/gov-statsbar-item.js.map +1 -0
  412. package/dist/collection/components/gov-statsbar/gov-statsbar.css +272 -0
  413. package/dist/collection/components/gov-statsbar/gov-statsbar.js +102 -0
  414. package/dist/collection/components/gov-statsbar/gov-statsbar.js.map +1 -0
  415. package/dist/collection/components/gov-stepper/constants.js +21 -0
  416. package/dist/collection/components/gov-stepper/constants.js.map +1 -0
  417. package/dist/collection/components/gov-stepper/gov-stepper-item.css +450 -0
  418. package/dist/collection/components/gov-stepper/gov-stepper-item.d.js +2 -0
  419. package/dist/collection/components/gov-stepper/gov-stepper-item.d.js.map +1 -0
  420. package/dist/collection/components/gov-stepper/gov-stepper-item.js +246 -0
  421. package/dist/collection/components/gov-stepper/gov-stepper-item.js.map +1 -0
  422. package/dist/collection/components/gov-stepper/gov-stepper.css +228 -0
  423. package/dist/collection/components/gov-stepper/gov-stepper.js +97 -0
  424. package/dist/collection/components/gov-stepper/gov-stepper.js.map +1 -0
  425. package/dist/collection/components/gov-tabs/constants.js +25 -0
  426. package/dist/collection/components/gov-tabs/constants.js.map +1 -0
  427. package/dist/collection/components/gov-tabs/gov-tabs-item.css +229 -0
  428. package/dist/collection/components/gov-tabs/gov-tabs-item.js +183 -0
  429. package/dist/collection/components/gov-tabs/gov-tabs-item.js.map +1 -0
  430. package/dist/collection/components/gov-tabs/gov-tabs.css +381 -0
  431. package/dist/collection/components/gov-tabs/gov-tabs.js +422 -0
  432. package/dist/collection/components/gov-tabs/gov-tabs.js.map +1 -0
  433. package/dist/collection/components/gov-tabs/gov-tabs.types.js +2 -0
  434. package/dist/collection/components/gov-tabs/gov-tabs.types.js.map +1 -0
  435. package/dist/collection/components/gov-tile/constants.js +10 -0
  436. package/dist/collection/components/gov-tile/constants.js.map +1 -0
  437. package/dist/collection/components/gov-tile/container/constants.js +4 -0
  438. package/dist/collection/components/gov-tile/container/constants.js.map +1 -0
  439. package/dist/collection/components/gov-tile/container/gov-tiles.css +310 -0
  440. package/dist/collection/components/gov-tile/container/gov-tiles.js +70 -0
  441. package/dist/collection/components/gov-tile/container/gov-tiles.js.map +1 -0
  442. package/dist/collection/components/gov-tile/gov-tile.css +326 -0
  443. package/dist/collection/components/gov-tile/gov-tile.js +99 -0
  444. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -0
  445. package/dist/collection/components/gov-toast/constants.js +13 -0
  446. package/dist/collection/components/gov-toast/constants.js.map +1 -0
  447. package/dist/collection/components/gov-toast/gov-toast.css +394 -0
  448. package/dist/collection/components/gov-toast/gov-toast.js +267 -0
  449. package/dist/collection/components/gov-toast/gov-toast.js.map +1 -0
  450. package/dist/collection/components/gov-tooltip/constants.js +19 -0
  451. package/dist/collection/components/gov-tooltip/constants.js.map +1 -0
  452. package/dist/collection/components/gov-tooltip/gov-tooltip-content.css +324 -0
  453. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +63 -0
  454. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -0
  455. package/dist/collection/components/gov-tooltip/gov-tooltip.css +253 -0
  456. package/dist/collection/components/gov-tooltip/gov-tooltip.js +322 -0
  457. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -0
  458. package/dist/collection/components/gov-wizzard/constants.js +20 -0
  459. package/dist/collection/components/gov-wizzard/constants.js.map +1 -0
  460. package/dist/collection/components/gov-wizzard/gov-wizzard-item.css +441 -0
  461. package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js +2 -0
  462. package/dist/collection/components/gov-wizzard/gov-wizzard-item.d.js.map +1 -0
  463. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js +381 -0
  464. package/dist/collection/components/gov-wizzard/gov-wizzard-item.js.map +1 -0
  465. package/dist/collection/components/gov-wizzard/gov-wizzard.css +231 -0
  466. package/dist/collection/components/gov-wizzard/gov-wizzard.js +168 -0
  467. package/dist/collection/components/gov-wizzard/gov-wizzard.js.map +1 -0
  468. package/dist/collection/core/constants/sizes.js +15 -0
  469. package/dist/collection/core/constants/sizes.js.map +1 -0
  470. package/dist/collection/core/constants/tags.js +14 -0
  471. package/dist/collection/core/constants/tags.js.map +1 -0
  472. package/dist/collection/core/constants/variants.js +15 -0
  473. package/dist/collection/core/constants/variants.js.map +1 -0
  474. package/dist/collection/helpers/Dom/form.js +72 -0
  475. package/dist/collection/helpers/Dom/form.js.map +1 -0
  476. package/dist/collection/helpers/Dom/form.types.js +2 -0
  477. package/dist/collection/helpers/Dom/form.types.js.map +1 -0
  478. package/dist/collection/helpers/Dom/template.js +110 -0
  479. package/dist/collection/helpers/Dom/template.js.map +1 -0
  480. package/dist/collection/helpers/Dom/template.types.js +2 -0
  481. package/dist/collection/helpers/Dom/template.types.js.map +1 -0
  482. package/dist/collection/helpers/Dom/win.js +18 -0
  483. package/dist/collection/helpers/Dom/win.js.map +1 -0
  484. package/dist/collection/helpers/Fragment.js +2 -0
  485. package/dist/collection/helpers/Fragment.js.map +1 -0
  486. package/dist/collection/helpers/Log/gov.log.js +14 -0
  487. package/dist/collection/helpers/Log/gov.log.js.map +1 -0
  488. package/dist/collection/helpers/StorybookDocsTemplate.js +9 -0
  489. package/dist/collection/helpers/StorybookDocsTemplate.js.map +1 -0
  490. package/dist/collection/helpers/Validate/props.js +10 -0
  491. package/dist/collection/helpers/Validate/props.js.map +1 -0
  492. package/dist/collection/helpers/Validate/wcag.js +58 -0
  493. package/dist/collection/helpers/Validate/wcag.js.map +1 -0
  494. package/dist/collection/index.js +2 -0
  495. package/dist/collection/index.js.map +1 -0
  496. package/dist/collection/pages/Accordion.js +349 -0
  497. package/dist/collection/pages/Accordion.js.map +1 -0
  498. package/dist/collection/pages/Alert.js +83 -0
  499. package/dist/collection/pages/Alert.js.map +1 -0
  500. package/dist/collection/pages/Badge.js +321 -0
  501. package/dist/collection/pages/Badge.js.map +1 -0
  502. package/dist/collection/pages/Breadcrumbs.js +36 -0
  503. package/dist/collection/pages/Breadcrumbs.js.map +1 -0
  504. package/dist/collection/pages/Button.js +1277 -0
  505. package/dist/collection/pages/Button.js.map +1 -0
  506. package/dist/collection/pages/Card.js +102 -0
  507. package/dist/collection/pages/Card.js.map +1 -0
  508. package/dist/collection/pages/Container.js +15 -0
  509. package/dist/collection/pages/Container.js.map +1 -0
  510. package/dist/collection/pages/Cookiebar.js +29 -0
  511. package/dist/collection/pages/Cookiebar.js.map +1 -0
  512. package/dist/collection/pages/Empty.js +43 -0
  513. package/dist/collection/pages/Empty.js.map +1 -0
  514. package/dist/collection/pages/Error.js +16 -0
  515. package/dist/collection/pages/Error.js.map +1 -0
  516. package/dist/collection/pages/FormLabel.js +13 -0
  517. package/dist/collection/pages/FormLabel.js.map +1 -0
  518. package/dist/collection/pages/FormMessage.js +82 -0
  519. package/dist/collection/pages/FormMessage.js.map +1 -0
  520. package/dist/collection/pages/Forms.js +1205 -0
  521. package/dist/collection/pages/Forms.js.map +1 -0
  522. package/dist/collection/pages/FormsRestructure.js +13 -0
  523. package/dist/collection/pages/FormsRestructure.js.map +1 -0
  524. package/dist/collection/pages/Grid.js +92 -0
  525. package/dist/collection/pages/Grid.js.map +1 -0
  526. package/dist/collection/pages/Home.js +9 -0
  527. package/dist/collection/pages/Home.js.map +1 -0
  528. package/dist/collection/pages/Layout.js +97 -0
  529. package/dist/collection/pages/Layout.js.map +1 -0
  530. package/dist/collection/pages/Loading.js +95 -0
  531. package/dist/collection/pages/Loading.js.map +1 -0
  532. package/dist/collection/pages/Message.js +94 -0
  533. package/dist/collection/pages/Message.js.map +1 -0
  534. package/dist/collection/pages/Modal.js +57 -0
  535. package/dist/collection/pages/Modal.js.map +1 -0
  536. package/dist/collection/pages/Nav.js +30 -0
  537. package/dist/collection/pages/Nav.js.map +1 -0
  538. package/dist/collection/pages/Pagination.js +38 -0
  539. package/dist/collection/pages/Pagination.js.map +1 -0
  540. package/dist/collection/pages/Prompt.js +48 -0
  541. package/dist/collection/pages/Prompt.js.map +1 -0
  542. package/dist/collection/pages/SideNav.js +117 -0
  543. package/dist/collection/pages/SideNav.js.map +1 -0
  544. package/dist/collection/pages/Spacer.js +19 -0
  545. package/dist/collection/pages/Spacer.js.map +1 -0
  546. package/dist/collection/pages/Statsbar.js +202 -0
  547. package/dist/collection/pages/Statsbar.js.map +1 -0
  548. package/dist/collection/pages/Stepper.js +85 -0
  549. package/dist/collection/pages/Stepper.js.map +1 -0
  550. package/dist/collection/pages/Tabs.js +323 -0
  551. package/dist/collection/pages/Tabs.js.map +1 -0
  552. package/dist/collection/pages/Tiles.js +119 -0
  553. package/dist/collection/pages/Tiles.js.map +1 -0
  554. package/dist/collection/pages/ToastMessage.js +47 -0
  555. package/dist/collection/pages/ToastMessage.js.map +1 -0
  556. package/dist/collection/pages/ToastMessageCountdown.js +47 -0
  557. package/dist/collection/pages/ToastMessageCountdown.js.map +1 -0
  558. package/dist/collection/pages/Tooltip.js +137 -0
  559. package/dist/collection/pages/Tooltip.js.map +1 -0
  560. package/dist/collection/pages/Typography.js +75 -0
  561. package/dist/collection/pages/Typography.js.map +1 -0
  562. package/dist/collection/pages/Wizzard.js +88 -0
  563. package/dist/collection/pages/Wizzard.js.map +1 -0
  564. package/dist/collection/types/interfaces.js +2 -0
  565. package/dist/collection/types/interfaces.js.map +1 -0
  566. package/dist/collection/utils/array.utils.js +2 -0
  567. package/dist/collection/utils/array.utils.js.map +1 -0
  568. package/dist/collection/utils/bool.utils.js +15 -0
  569. package/dist/collection/utils/bool.utils.js.map +1 -0
  570. package/dist/collection/utils/ds.utils.js +5 -0
  571. package/dist/collection/utils/ds.utils.js.map +1 -0
  572. package/dist/collection/utils/file.utils.js +26 -0
  573. package/dist/collection/utils/file.utils.js.map +1 -0
  574. package/dist/collection/utils/icon.utils.js +31 -0
  575. package/dist/collection/utils/icon.utils.js.map +1 -0
  576. package/dist/collection/utils/number.utils.js +4 -0
  577. package/dist/collection/utils/number.utils.js.map +1 -0
  578. package/dist/collection/utils/string.utils.js +17 -0
  579. package/dist/collection/utils/string.utils.js.map +1 -0
  580. package/dist/collection/utils/utils.js +35 -0
  581. package/dist/collection/utils/utils.js.map +1 -0
  582. package/dist/components/Fragment.js +5 -0
  583. package/dist/components/Fragment.js.map +1 -0
  584. package/dist/components/constants.js +25 -0
  585. package/dist/components/constants.js.map +1 -0
  586. package/dist/components/constants10.js +19 -0
  587. package/dist/components/constants10.js.map +1 -0
  588. package/dist/components/constants11.js +22 -0
  589. package/dist/components/constants11.js.map +1 -0
  590. package/dist/components/constants12.js +25 -0
  591. package/dist/components/constants12.js.map +1 -0
  592. package/dist/components/constants13.js +29 -0
  593. package/dist/components/constants13.js.map +1 -0
  594. package/dist/components/constants14.js +23 -0
  595. package/dist/components/constants14.js.map +1 -0
  596. package/dist/components/constants15.js +24 -0
  597. package/dist/components/constants15.js.map +1 -0
  598. package/dist/components/constants2.js +15 -0
  599. package/dist/components/constants2.js.map +1 -0
  600. package/dist/components/constants3.js +33 -0
  601. package/dist/components/constants3.js.map +1 -0
  602. package/dist/components/constants4.js +12 -0
  603. package/dist/components/constants4.js.map +1 -0
  604. package/dist/components/constants5.js +13 -0
  605. package/dist/components/constants5.js.map +1 -0
  606. package/dist/components/constants6.js +10 -0
  607. package/dist/components/constants6.js.map +1 -0
  608. package/dist/components/constants7.js +22 -0
  609. package/dist/components/constants7.js.map +1 -0
  610. package/dist/components/constants8.js +17 -0
  611. package/dist/components/constants8.js.map +1 -0
  612. package/dist/components/constants9.js +12 -0
  613. package/dist/components/constants9.js.map +1 -0
  614. package/dist/components/form.js +150 -0
  615. package/dist/components/form.js.map +1 -0
  616. package/dist/components/gov-accordion-item.d.ts +11 -0
  617. package/dist/components/gov-accordion-item.js +144 -0
  618. package/dist/components/gov-accordion-item.js.map +1 -0
  619. package/dist/components/gov-accordion.d.ts +11 -0
  620. package/dist/components/gov-accordion.js +92 -0
  621. package/dist/components/gov-accordion.js.map +1 -0
  622. package/dist/components/gov-alert.d.ts +11 -0
  623. package/dist/components/gov-alert.js +87 -0
  624. package/dist/components/gov-alert.js.map +1 -0
  625. package/dist/components/gov-app.d.ts +11 -0
  626. package/dist/components/gov-app.js +8369 -0
  627. package/dist/components/gov-app.js.map +1 -0
  628. package/dist/components/gov-attachments-item.d.ts +11 -0
  629. package/dist/components/gov-attachments-item.js +8 -0
  630. package/dist/components/gov-attachments-item.js.map +1 -0
  631. package/dist/components/gov-attachments-item2.js +69 -0
  632. package/dist/components/gov-attachments-item2.js.map +1 -0
  633. package/dist/components/gov-attachments.d.ts +11 -0
  634. package/dist/components/gov-attachments.js +8 -0
  635. package/dist/components/gov-attachments.js.map +1 -0
  636. package/dist/components/gov-attachments2.js +56 -0
  637. package/dist/components/gov-attachments2.js.map +1 -0
  638. package/dist/components/gov-backdrop.d.ts +11 -0
  639. package/dist/components/gov-backdrop.js +8 -0
  640. package/dist/components/gov-backdrop.js.map +1 -0
  641. package/dist/components/gov-backdrop2.js +68 -0
  642. package/dist/components/gov-backdrop2.js.map +1 -0
  643. package/dist/components/gov-badge.d.ts +11 -0
  644. package/dist/components/gov-badge.js +8 -0
  645. package/dist/components/gov-badge.js.map +1 -0
  646. package/dist/components/gov-badge2.js +100 -0
  647. package/dist/components/gov-badge2.js.map +1 -0
  648. package/dist/components/gov-breadcrumbs.d.ts +11 -0
  649. package/dist/components/gov-breadcrumbs.js +67 -0
  650. package/dist/components/gov-breadcrumbs.js.map +1 -0
  651. package/dist/components/gov-button.d.ts +11 -0
  652. package/dist/components/gov-button.js +8 -0
  653. package/dist/components/gov-button.js.map +1 -0
  654. package/dist/components/gov-button2.js +201 -0
  655. package/dist/components/gov-button2.js.map +1 -0
  656. package/dist/components/gov-card.d.ts +11 -0
  657. package/dist/components/gov-card.js +143 -0
  658. package/dist/components/gov-card.js.map +1 -0
  659. package/dist/components/gov-container.d.ts +11 -0
  660. package/dist/components/gov-container.js +51 -0
  661. package/dist/components/gov-container.js.map +1 -0
  662. package/dist/components/gov-cookiebar.d.ts +11 -0
  663. package/dist/components/gov-cookiebar.js +46 -0
  664. package/dist/components/gov-cookiebar.js.map +1 -0
  665. package/dist/components/gov-empty.d.ts +11 -0
  666. package/dist/components/gov-empty.js +44 -0
  667. package/dist/components/gov-empty.js.map +1 -0
  668. package/dist/components/gov-error-code.d.ts +11 -0
  669. package/dist/components/gov-error-code.js +44 -0
  670. package/dist/components/gov-error-code.js.map +1 -0
  671. package/dist/components/gov-form-autocomplete.d.ts +11 -0
  672. package/dist/components/gov-form-autocomplete.js +8 -0
  673. package/dist/components/gov-form-autocomplete.js.map +1 -0
  674. package/dist/components/gov-form-autocomplete2.js +222 -0
  675. package/dist/components/gov-form-autocomplete2.js.map +1 -0
  676. package/dist/components/gov-form-checkbox.d.ts +11 -0
  677. package/dist/components/gov-form-checkbox.js +134 -0
  678. package/dist/components/gov-form-checkbox.js.map +1 -0
  679. package/dist/components/gov-form-control.d.ts +11 -0
  680. package/dist/components/gov-form-control.js +114 -0
  681. package/dist/components/gov-form-control.js.map +1 -0
  682. package/dist/components/gov-form-file.d.ts +11 -0
  683. package/dist/components/gov-form-file.js +242 -0
  684. package/dist/components/gov-form-file.js.map +1 -0
  685. package/dist/components/gov-form-group.d.ts +11 -0
  686. package/dist/components/gov-form-group.js +57 -0
  687. package/dist/components/gov-form-group.js.map +1 -0
  688. package/dist/components/gov-form-input.d.ts +11 -0
  689. package/dist/components/gov-form-input.js +8 -0
  690. package/dist/components/gov-form-input.js.map +1 -0
  691. package/dist/components/gov-form-input2.js +193 -0
  692. package/dist/components/gov-form-input2.js.map +1 -0
  693. package/dist/components/gov-form-label.d.ts +11 -0
  694. package/dist/components/gov-form-label.js +46 -0
  695. package/dist/components/gov-form-label.js.map +1 -0
  696. package/dist/components/gov-form-message.d.ts +11 -0
  697. package/dist/components/gov-form-message.js +8 -0
  698. package/dist/components/gov-form-message.js.map +1 -0
  699. package/dist/components/gov-form-message2.js +57 -0
  700. package/dist/components/gov-form-message2.js.map +1 -0
  701. package/dist/components/gov-form-multi-select.d.ts +11 -0
  702. package/dist/components/gov-form-multi-select.js +246 -0
  703. package/dist/components/gov-form-multi-select.js.map +1 -0
  704. package/dist/components/gov-form-password-power.d.ts +11 -0
  705. package/dist/components/gov-form-password-power.js +43 -0
  706. package/dist/components/gov-form-password-power.js.map +1 -0
  707. package/dist/components/gov-form-radio.d.ts +11 -0
  708. package/dist/components/gov-form-radio.js +128 -0
  709. package/dist/components/gov-form-radio.js.map +1 -0
  710. package/dist/components/gov-form-search.d.ts +11 -0
  711. package/dist/components/gov-form-search.js +41 -0
  712. package/dist/components/gov-form-search.js.map +1 -0
  713. package/dist/components/gov-form-select.d.ts +11 -0
  714. package/dist/components/gov-form-select.js +8 -0
  715. package/dist/components/gov-form-select.js.map +1 -0
  716. package/dist/components/gov-form-select2.js +152 -0
  717. package/dist/components/gov-form-select2.js.map +1 -0
  718. package/dist/components/gov-form-switch.d.ts +11 -0
  719. package/dist/components/gov-form-switch.js +128 -0
  720. package/dist/components/gov-form-switch.js.map +1 -0
  721. package/dist/components/gov-grid-item.d.ts +11 -0
  722. package/dist/components/gov-grid-item.js +49 -0
  723. package/dist/components/gov-grid-item.js.map +1 -0
  724. package/dist/components/gov-grid.d.ts +11 -0
  725. package/dist/components/gov-grid.js +44 -0
  726. package/dist/components/gov-grid.js.map +1 -0
  727. package/dist/components/gov-icon.d.ts +11 -0
  728. package/dist/components/gov-icon.js +8 -0
  729. package/dist/components/gov-icon.js.map +1 -0
  730. package/dist/components/gov-icon2.js +141 -0
  731. package/dist/components/gov-icon2.js.map +1 -0
  732. package/dist/components/gov-layout-column.d.ts +11 -0
  733. package/dist/components/gov-layout-column.js +38 -0
  734. package/dist/components/gov-layout-column.js.map +1 -0
  735. package/dist/components/gov-layout.d.ts +11 -0
  736. package/dist/components/gov-layout.js +51 -0
  737. package/dist/components/gov-layout.js.map +1 -0
  738. package/dist/components/gov-loading.d.ts +11 -0
  739. package/dist/components/gov-loading.js +58 -0
  740. package/dist/components/gov-loading.js.map +1 -0
  741. package/dist/components/gov-message.d.ts +11 -0
  742. package/dist/components/gov-message.js +57 -0
  743. package/dist/components/gov-message.js.map +1 -0
  744. package/dist/components/gov-modal.d.ts +11 -0
  745. package/dist/components/gov-modal.js +149 -0
  746. package/dist/components/gov-modal.js.map +1 -0
  747. package/dist/components/gov-nav-item.d.ts +11 -0
  748. package/dist/components/gov-nav-item.js +53 -0
  749. package/dist/components/gov-nav-item.js.map +1 -0
  750. package/dist/components/gov-nav.d.ts +11 -0
  751. package/dist/components/gov-nav.js +57 -0
  752. package/dist/components/gov-nav.js.map +1 -0
  753. package/dist/components/gov-pagination.d.ts +11 -0
  754. package/dist/components/gov-pagination.js +255 -0
  755. package/dist/components/gov-pagination.js.map +1 -0
  756. package/dist/components/gov-prompt.d.ts +11 -0
  757. package/dist/components/gov-prompt.js +149 -0
  758. package/dist/components/gov-prompt.js.map +1 -0
  759. package/dist/components/gov-side-nav-item.d.ts +11 -0
  760. package/dist/components/gov-side-nav-item.js +124 -0
  761. package/dist/components/gov-side-nav-item.js.map +1 -0
  762. package/dist/components/gov-side-nav.d.ts +11 -0
  763. package/dist/components/gov-side-nav.js +73 -0
  764. package/dist/components/gov-side-nav.js.map +1 -0
  765. package/dist/components/gov-skeleton.d.ts +11 -0
  766. package/dist/components/gov-skeleton.js +137 -0
  767. package/dist/components/gov-skeleton.js.map +1 -0
  768. package/dist/components/gov-spacer.d.ts +11 -0
  769. package/dist/components/gov-spacer.js +72 -0
  770. package/dist/components/gov-spacer.js.map +1 -0
  771. package/dist/components/gov-statsbar-item.d.ts +11 -0
  772. package/dist/components/gov-statsbar-item.js +51 -0
  773. package/dist/components/gov-statsbar-item.js.map +1 -0
  774. package/dist/components/gov-statsbar.d.ts +11 -0
  775. package/dist/components/gov-statsbar.js +65 -0
  776. package/dist/components/gov-statsbar.js.map +1 -0
  777. package/dist/components/gov-stepper-item.d.ts +11 -0
  778. package/dist/components/gov-stepper-item.js +96 -0
  779. package/dist/components/gov-stepper-item.js.map +1 -0
  780. package/dist/components/gov-stepper.d.ts +11 -0
  781. package/dist/components/gov-stepper.js +61 -0
  782. package/dist/components/gov-stepper.js.map +1 -0
  783. package/dist/components/gov-tabs-item.d.ts +11 -0
  784. package/dist/components/gov-tabs-item.js +73 -0
  785. package/dist/components/gov-tabs-item.js.map +1 -0
  786. package/dist/components/gov-tabs.d.ts +11 -0
  787. package/dist/components/gov-tabs.js +232 -0
  788. package/dist/components/gov-tabs.js.map +1 -0
  789. package/dist/components/gov-tile.d.ts +11 -0
  790. package/dist/components/gov-tile.js +73 -0
  791. package/dist/components/gov-tile.js.map +1 -0
  792. package/dist/components/gov-tiles.d.ts +11 -0
  793. package/dist/components/gov-tiles.js +49 -0
  794. package/dist/components/gov-tiles.js.map +1 -0
  795. package/dist/components/gov-toast.d.ts +11 -0
  796. package/dist/components/gov-toast.js +136 -0
  797. package/dist/components/gov-toast.js.map +1 -0
  798. package/dist/components/gov-tooltip-content.d.ts +11 -0
  799. package/dist/components/gov-tooltip-content.js +54 -0
  800. package/dist/components/gov-tooltip-content.js.map +1 -0
  801. package/dist/components/gov-tooltip.d.ts +11 -0
  802. package/dist/components/gov-tooltip.js +176 -0
  803. package/dist/components/gov-tooltip.js.map +1 -0
  804. package/dist/components/gov-wizzard-item.d.ts +11 -0
  805. package/dist/components/gov-wizzard-item.js +141 -0
  806. package/dist/components/gov-wizzard-item.js.map +1 -0
  807. package/dist/components/gov-wizzard.d.ts +11 -0
  808. package/dist/components/gov-wizzard.js +81 -0
  809. package/dist/components/gov-wizzard.js.map +1 -0
  810. package/dist/components/gov.log.js +17 -0
  811. package/dist/components/gov.log.js.map +1 -0
  812. package/dist/components/index.d.ts +79 -0
  813. package/dist/components/index.js +61 -0
  814. package/dist/components/index.js.map +1 -0
  815. package/dist/components/props.js +14 -0
  816. package/dist/components/props.js.map +1 -0
  817. package/dist/components/sizes.js +18 -0
  818. package/dist/components/sizes.js.map +1 -0
  819. package/dist/components/string.utils.js +20 -0
  820. package/dist/components/string.utils.js.map +1 -0
  821. package/dist/components/template.js +113 -0
  822. package/dist/components/template.js.map +1 -0
  823. package/dist/components/utils.js +35 -0
  824. package/dist/components/utils.js.map +1 -0
  825. package/dist/components/variants.js +18 -0
  826. package/dist/components/variants.js.map +1 -0
  827. package/dist/components/wcag.js +62 -0
  828. package/dist/components/wcag.js.map +1 -0
  829. package/dist/components/win.js +22 -0
  830. package/dist/components/win.js.map +1 -0
  831. package/dist/core/core.css +1 -0
  832. package/dist/core/core.esm.js +2 -0
  833. package/dist/core/core.esm.js.map +1 -0
  834. package/dist/core/index.esm.js +2 -0
  835. package/dist/core/index.esm.js.map +1 -0
  836. package/dist/core/p-0272ffa0.entry.js +2 -0
  837. package/dist/core/p-0272ffa0.entry.js.map +1 -0
  838. package/dist/core/p-03990da5.js +2 -0
  839. package/dist/core/p-03990da5.js.map +1 -0
  840. package/dist/core/p-042d5b20.entry.js +2 -0
  841. package/dist/core/p-042d5b20.entry.js.map +1 -0
  842. package/dist/core/p-0874a5ec.entry.js +2 -0
  843. package/dist/core/p-0874a5ec.entry.js.map +1 -0
  844. package/dist/core/p-0f0564e8.entry.js +2 -0
  845. package/dist/core/p-0f0564e8.entry.js.map +1 -0
  846. package/dist/core/p-1020a160.js +2 -0
  847. package/dist/core/p-1020a160.js.map +1 -0
  848. package/dist/core/p-131c50d1.entry.js +2 -0
  849. package/dist/core/p-131c50d1.entry.js.map +1 -0
  850. package/dist/core/p-1c1d0bbe.js +2 -0
  851. package/dist/core/p-1c1d0bbe.js.map +1 -0
  852. package/dist/core/p-1def0eb2.entry.js +2 -0
  853. package/dist/core/p-1def0eb2.entry.js.map +1 -0
  854. package/dist/core/p-2426fa82.entry.js +2 -0
  855. package/dist/core/p-2426fa82.entry.js.map +1 -0
  856. package/dist/core/p-24636c53.js +2 -0
  857. package/dist/core/p-24636c53.js.map +1 -0
  858. package/dist/core/p-24877419.entry.js +2 -0
  859. package/dist/core/p-24877419.entry.js.map +1 -0
  860. package/dist/core/p-26acf964.js +2 -0
  861. package/dist/core/p-26acf964.js.map +1 -0
  862. package/dist/core/p-2f88b6d9.entry.js +2 -0
  863. package/dist/core/p-2f88b6d9.entry.js.map +1 -0
  864. package/dist/core/p-30b162df.entry.js +2 -0
  865. package/dist/core/p-30b162df.entry.js.map +1 -0
  866. package/dist/core/p-337fb136.entry.js +2 -0
  867. package/dist/core/p-337fb136.entry.js.map +1 -0
  868. package/dist/core/p-3464136c.js +2 -0
  869. package/dist/core/p-3464136c.js.map +1 -0
  870. package/dist/core/p-364b4792.js +2 -0
  871. package/dist/core/p-364b4792.js.map +1 -0
  872. package/dist/core/p-36be8f6e.js +2 -0
  873. package/dist/core/p-36be8f6e.js.map +1 -0
  874. package/dist/core/p-3f37ddb6.js +2 -0
  875. package/dist/core/p-3f37ddb6.js.map +1 -0
  876. package/dist/core/p-3f92f3bf.entry.js +2 -0
  877. package/dist/core/p-3f92f3bf.entry.js.map +1 -0
  878. package/dist/core/p-402c2751.entry.js +2 -0
  879. package/dist/core/p-402c2751.entry.js.map +1 -0
  880. package/dist/core/p-404f469e.js +2 -0
  881. package/dist/core/p-404f469e.js.map +1 -0
  882. package/dist/core/p-405fc50f.entry.js +2 -0
  883. package/dist/core/p-405fc50f.entry.js.map +1 -0
  884. package/dist/core/p-42636ddf.entry.js +2 -0
  885. package/dist/core/p-42636ddf.entry.js.map +1 -0
  886. package/dist/core/p-429850b9.entry.js +2 -0
  887. package/dist/core/p-429850b9.entry.js.map +1 -0
  888. package/dist/core/p-45485d1c.js +2 -0
  889. package/dist/core/p-45485d1c.js.map +1 -0
  890. package/dist/core/p-471c0863.entry.js +2 -0
  891. package/dist/core/p-471c0863.entry.js.map +1 -0
  892. package/dist/core/p-4af5e4f4.js +3 -0
  893. package/dist/core/p-4af5e4f4.js.map +1 -0
  894. package/dist/core/p-52dc68aa.entry.js +2 -0
  895. package/dist/core/p-52dc68aa.entry.js.map +1 -0
  896. package/dist/core/p-540e79c4.entry.js +2 -0
  897. package/dist/core/p-540e79c4.entry.js.map +1 -0
  898. package/dist/core/p-55500e5a.js +2 -0
  899. package/dist/core/p-55500e5a.js.map +1 -0
  900. package/dist/core/p-561fa17b.js +2 -0
  901. package/dist/core/p-561fa17b.js.map +1 -0
  902. package/dist/core/p-5a1c8d48.entry.js +2 -0
  903. package/dist/core/p-5a1c8d48.entry.js.map +1 -0
  904. package/dist/core/p-5d348765.entry.js +2 -0
  905. package/dist/core/p-5d348765.entry.js.map +1 -0
  906. package/dist/core/p-5defdc5e.js +2 -0
  907. package/dist/core/p-5defdc5e.js.map +1 -0
  908. package/dist/core/p-5e4cf9a2.entry.js +2 -0
  909. package/dist/core/p-5e4cf9a2.entry.js.map +1 -0
  910. package/dist/core/p-61103476.entry.js +2 -0
  911. package/dist/core/p-61103476.entry.js.map +1 -0
  912. package/dist/core/p-6278531b.js +2 -0
  913. package/dist/core/p-6278531b.js.map +1 -0
  914. package/dist/core/p-64ced668.js +2 -0
  915. package/dist/core/p-64ced668.js.map +1 -0
  916. package/dist/core/p-67006730.entry.js +2 -0
  917. package/dist/core/p-67006730.entry.js.map +1 -0
  918. package/dist/core/p-6aa31f02.entry.js +2 -0
  919. package/dist/core/p-6aa31f02.entry.js.map +1 -0
  920. package/dist/core/p-732f74fe.entry.js +2 -0
  921. package/dist/core/p-732f74fe.entry.js.map +1 -0
  922. package/dist/core/p-76e2aa52.entry.js +2 -0
  923. package/dist/core/p-76e2aa52.entry.js.map +1 -0
  924. package/dist/core/p-7bfa06b1.entry.js +2 -0
  925. package/dist/core/p-7bfa06b1.entry.js.map +1 -0
  926. package/dist/core/p-80e30702.js +2 -0
  927. package/dist/core/p-80e30702.js.map +1 -0
  928. package/dist/core/p-81f73a28.entry.js +2 -0
  929. package/dist/core/p-81f73a28.entry.js.map +1 -0
  930. package/dist/core/p-8204070b.entry.js +2 -0
  931. package/dist/core/p-8204070b.entry.js.map +1 -0
  932. package/dist/core/p-8815fa81.entry.js +2 -0
  933. package/dist/core/p-8815fa81.entry.js.map +1 -0
  934. package/dist/core/p-8bebbcc7.entry.js +2 -0
  935. package/dist/core/p-8bebbcc7.entry.js.map +1 -0
  936. package/dist/core/p-9144dde1.js +2 -0
  937. package/dist/core/p-9144dde1.js.map +1 -0
  938. package/dist/core/p-9bdce72b.entry.js +2 -0
  939. package/dist/core/p-9bdce72b.entry.js.map +1 -0
  940. package/dist/core/p-9cd80b05.js +2 -0
  941. package/dist/core/p-9cd80b05.js.map +1 -0
  942. package/dist/core/p-a37ef1b2.entry.js +2 -0
  943. package/dist/core/p-a37ef1b2.entry.js.map +1 -0
  944. package/dist/core/p-a4d23e73.entry.js +2 -0
  945. package/dist/core/p-a4d23e73.entry.js.map +1 -0
  946. package/dist/core/p-a5d69694.js +2 -0
  947. package/dist/core/p-a5d69694.js.map +1 -0
  948. package/dist/core/p-a6d14a47.js +2 -0
  949. package/dist/core/p-a6d14a47.js.map +1 -0
  950. package/dist/core/p-a89c27c1.entry.js +2 -0
  951. package/dist/core/p-a89c27c1.entry.js.map +1 -0
  952. package/dist/core/p-aba39622.entry.js +2 -0
  953. package/dist/core/p-aba39622.entry.js.map +1 -0
  954. package/dist/core/p-b2275b3d.js +2 -0
  955. package/dist/core/p-b2275b3d.js.map +1 -0
  956. package/dist/core/p-b7587525.entry.js +2 -0
  957. package/dist/core/p-b7587525.entry.js.map +1 -0
  958. package/dist/core/p-bce96aac.entry.js +2 -0
  959. package/dist/core/p-bce96aac.entry.js.map +1 -0
  960. package/dist/core/p-c20102ff.js +2 -0
  961. package/dist/core/p-c20102ff.js.map +1 -0
  962. package/dist/core/p-c91928ed.entry.js +2 -0
  963. package/dist/core/p-c91928ed.entry.js.map +1 -0
  964. package/dist/core/p-cfb5cd82.entry.js +2 -0
  965. package/dist/core/p-cfb5cd82.entry.js.map +1 -0
  966. package/dist/core/p-d389c001.entry.js +2 -0
  967. package/dist/core/p-d389c001.entry.js.map +1 -0
  968. package/dist/core/p-d5c2db32.entry.js +2 -0
  969. package/dist/core/p-d5c2db32.entry.js.map +1 -0
  970. package/dist/core/p-d8def432.entry.js +2 -0
  971. package/dist/core/p-d8def432.entry.js.map +1 -0
  972. package/dist/core/p-d90a2718.entry.js +2 -0
  973. package/dist/core/p-d90a2718.entry.js.map +1 -0
  974. package/dist/core/p-d9b4bc20.entry.js +2 -0
  975. package/dist/core/p-d9b4bc20.entry.js.map +1 -0
  976. package/dist/core/p-dc94a1da.entry.js +2 -0
  977. package/dist/core/p-dc94a1da.entry.js.map +1 -0
  978. package/dist/core/p-e1e4c8f8.entry.js +2 -0
  979. package/dist/core/p-e1e4c8f8.entry.js.map +1 -0
  980. package/dist/core/p-e3141382.entry.js +2 -0
  981. package/dist/core/p-e3141382.entry.js.map +1 -0
  982. package/dist/core/p-e38e0ad9.entry.js +2 -0
  983. package/dist/core/p-e38e0ad9.entry.js.map +1 -0
  984. package/dist/core/p-e4bb6100.entry.js +2 -0
  985. package/dist/core/p-e4bb6100.entry.js.map +1 -0
  986. package/dist/core/p-e4bb6114.entry.js +2 -0
  987. package/dist/core/p-e4bb6114.entry.js.map +1 -0
  988. package/dist/core/p-ef393836.entry.js +2 -0
  989. package/dist/core/p-ef393836.entry.js.map +1 -0
  990. package/dist/core/p-ef79904e.js +2 -0
  991. package/dist/core/p-ef79904e.js.map +1 -0
  992. package/dist/core/p-f0a4439e.entry.js +2 -0
  993. package/dist/core/p-f0a4439e.entry.js.map +1 -0
  994. package/dist/core/p-f644cad5.entry.js +2 -0
  995. package/dist/core/p-f644cad5.entry.js.map +1 -0
  996. package/dist/core/p-f687452c.js +2 -0
  997. package/dist/core/p-f687452c.js.map +1 -0
  998. package/dist/core/p-f6e2f2f0.entry.js +2 -0
  999. package/dist/core/p-f6e2f2f0.entry.js.map +1 -0
  1000. package/dist/core/p-ff7365ae.js +2 -0
  1001. package/dist/core/p-ff7365ae.js.map +1 -0
  1002. package/dist/core/p-ffb7495c.js +2 -0
  1003. package/dist/core/p-ffb7495c.js.map +1 -0
  1004. package/dist/custom-elements/index.d.ts +387 -0
  1005. package/dist/custom-elements/index.js +2 -0
  1006. package/dist/custom-elements/index.js.map +1 -0
  1007. package/dist/esm/Fragment-8d8d54fb.js +5 -0
  1008. package/dist/esm/Fragment-8d8d54fb.js.map +1 -0
  1009. package/dist/esm/constants-037c35bc.js +22 -0
  1010. package/dist/esm/constants-037c35bc.js.map +1 -0
  1011. package/dist/esm/constants-089b3fdd.js +33 -0
  1012. package/dist/esm/constants-089b3fdd.js.map +1 -0
  1013. package/dist/esm/constants-136d4cd3.js +16 -0
  1014. package/dist/esm/constants-136d4cd3.js.map +1 -0
  1015. package/dist/esm/constants-24dad929.js +29 -0
  1016. package/dist/esm/constants-24dad929.js.map +1 -0
  1017. package/dist/esm/constants-2b14bb01.js +10 -0
  1018. package/dist/esm/constants-2b14bb01.js.map +1 -0
  1019. package/dist/esm/constants-2e8258cf.js +15 -0
  1020. package/dist/esm/constants-2e8258cf.js.map +1 -0
  1021. package/dist/esm/constants-3786b01b.js +22 -0
  1022. package/dist/esm/constants-3786b01b.js.map +1 -0
  1023. package/dist/esm/constants-3df712e2.js +13 -0
  1024. package/dist/esm/constants-3df712e2.js.map +1 -0
  1025. package/dist/esm/constants-78474786.js +25 -0
  1026. package/dist/esm/constants-78474786.js.map +1 -0
  1027. package/dist/esm/constants-ab132d9c.js +25 -0
  1028. package/dist/esm/constants-ab132d9c.js.map +1 -0
  1029. package/dist/esm/constants-ba13b28f.js +17 -0
  1030. package/dist/esm/constants-ba13b28f.js.map +1 -0
  1031. package/dist/esm/constants-bf5a583f.js +24 -0
  1032. package/dist/esm/constants-bf5a583f.js.map +1 -0
  1033. package/dist/esm/constants-d71c09e0.js +12 -0
  1034. package/dist/esm/constants-d71c09e0.js.map +1 -0
  1035. package/dist/esm/constants-ebec7de8.js +12 -0
  1036. package/dist/esm/constants-ebec7de8.js.map +1 -0
  1037. package/dist/esm/constants-f5c21493.js +19 -0
  1038. package/dist/esm/constants-f5c21493.js.map +1 -0
  1039. package/dist/esm/constants-f7b618c2.js +23 -0
  1040. package/dist/esm/constants-f7b618c2.js.map +1 -0
  1041. package/dist/esm/core.js +19 -0
  1042. package/dist/esm/core.js.map +1 -0
  1043. package/dist/esm/form-669a7180.js +135 -0
  1044. package/dist/esm/form-669a7180.js.map +1 -0
  1045. package/dist/esm/gov-accordion-item.entry.js +109 -0
  1046. package/dist/esm/gov-accordion-item.entry.js.map +1 -0
  1047. package/dist/esm/gov-accordion.entry.js +71 -0
  1048. package/dist/esm/gov-accordion.entry.js.map +1 -0
  1049. package/dist/esm/gov-alert.entry.js +54 -0
  1050. package/dist/esm/gov-alert.entry.js.map +1 -0
  1051. package/dist/esm/gov-app.entry.js +8352 -0
  1052. package/dist/esm/gov-app.entry.js.map +1 -0
  1053. package/dist/esm/gov-attachments_3.entry.js +114 -0
  1054. package/dist/esm/gov-attachments_3.entry.js.map +1 -0
  1055. package/dist/esm/gov-backdrop.entry.js +50 -0
  1056. package/dist/esm/gov-backdrop.entry.js.map +1 -0
  1057. package/dist/esm/gov-badge.entry.js +80 -0
  1058. package/dist/esm/gov-badge.entry.js.map +1 -0
  1059. package/dist/esm/gov-breadcrumbs.entry.js +46 -0
  1060. package/dist/esm/gov-breadcrumbs.entry.js.map +1 -0
  1061. package/dist/esm/gov-button.entry.js +151 -0
  1062. package/dist/esm/gov-button.entry.js.map +1 -0
  1063. package/dist/esm/gov-card.entry.js +108 -0
  1064. package/dist/esm/gov-card.entry.js.map +1 -0
  1065. package/dist/esm/gov-container.entry.js +32 -0
  1066. package/dist/esm/gov-container.entry.js.map +1 -0
  1067. package/dist/esm/gov-cookiebar.entry.js +29 -0
  1068. package/dist/esm/gov-cookiebar.entry.js.map +1 -0
  1069. package/dist/esm/gov-empty.entry.js +27 -0
  1070. package/dist/esm/gov-empty.entry.js.map +1 -0
  1071. package/dist/esm/gov-error-code.entry.js +27 -0
  1072. package/dist/esm/gov-error-code.entry.js.map +1 -0
  1073. package/dist/esm/gov-form-autocomplete.entry.js +173 -0
  1074. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -0
  1075. package/dist/esm/gov-form-checkbox.entry.js +104 -0
  1076. package/dist/esm/gov-form-checkbox.entry.js.map +1 -0
  1077. package/dist/esm/gov-form-control.entry.js +96 -0
  1078. package/dist/esm/gov-form-control.entry.js.map +1 -0
  1079. package/dist/esm/gov-form-file.entry.js +183 -0
  1080. package/dist/esm/gov-form-file.entry.js.map +1 -0
  1081. package/dist/esm/gov-form-group.entry.js +39 -0
  1082. package/dist/esm/gov-form-group.entry.js.map +1 -0
  1083. package/dist/esm/gov-form-input.entry.js +147 -0
  1084. package/dist/esm/gov-form-input.entry.js.map +1 -0
  1085. package/dist/esm/gov-form-label.entry.js +26 -0
  1086. package/dist/esm/gov-form-label.entry.js.map +1 -0
  1087. package/dist/esm/gov-form-multi-select.entry.js +189 -0
  1088. package/dist/esm/gov-form-multi-select.entry.js.map +1 -0
  1089. package/dist/esm/gov-form-password-power.entry.js +24 -0
  1090. package/dist/esm/gov-form-password-power.entry.js.map +1 -0
  1091. package/dist/esm/gov-form-radio.entry.js +104 -0
  1092. package/dist/esm/gov-form-radio.entry.js.map +1 -0
  1093. package/dist/esm/gov-form-search.entry.js +24 -0
  1094. package/dist/esm/gov-form-search.entry.js.map +1 -0
  1095. package/dist/esm/gov-form-select.entry.js +120 -0
  1096. package/dist/esm/gov-form-select.entry.js.map +1 -0
  1097. package/dist/esm/gov-form-switch.entry.js +104 -0
  1098. package/dist/esm/gov-form-switch.entry.js.map +1 -0
  1099. package/dist/esm/gov-grid-item.entry.js +26 -0
  1100. package/dist/esm/gov-grid-item.entry.js.map +1 -0
  1101. package/dist/esm/gov-grid.entry.js +24 -0
  1102. package/dist/esm/gov-grid.entry.js.map +1 -0
  1103. package/dist/esm/gov-icon.entry.js +122 -0
  1104. package/dist/esm/gov-icon.entry.js.map +1 -0
  1105. package/dist/esm/gov-layout-column.entry.js +21 -0
  1106. package/dist/esm/gov-layout-column.entry.js.map +1 -0
  1107. package/dist/esm/gov-layout.entry.js +30 -0
  1108. package/dist/esm/gov-layout.entry.js.map +1 -0
  1109. package/dist/esm/gov-loading.entry.js +27 -0
  1110. package/dist/esm/gov-loading.entry.js.map +1 -0
  1111. package/dist/esm/gov-message.entry.js +39 -0
  1112. package/dist/esm/gov-message.entry.js.map +1 -0
  1113. package/dist/esm/gov-modal.entry.js +101 -0
  1114. package/dist/esm/gov-modal.entry.js.map +1 -0
  1115. package/dist/esm/gov-nav-item.entry.js +33 -0
  1116. package/dist/esm/gov-nav-item.entry.js.map +1 -0
  1117. package/dist/esm/gov-nav.entry.js +38 -0
  1118. package/dist/esm/gov-nav.entry.js.map +1 -0
  1119. package/dist/esm/gov-pagination.entry.js +205 -0
  1120. package/dist/esm/gov-pagination.entry.js.map +1 -0
  1121. package/dist/esm/gov-prompt.entry.js +101 -0
  1122. package/dist/esm/gov-prompt.entry.js.map +1 -0
  1123. package/dist/esm/gov-side-nav-item.entry.js +81 -0
  1124. package/dist/esm/gov-side-nav-item.entry.js.map +1 -0
  1125. package/dist/esm/gov-side-nav.entry.js +52 -0
  1126. package/dist/esm/gov-side-nav.entry.js.map +1 -0
  1127. package/dist/esm/gov-skeleton.entry.js +113 -0
  1128. package/dist/esm/gov-skeleton.entry.js.map +1 -0
  1129. package/dist/esm/gov-spacer.entry.js +53 -0
  1130. package/dist/esm/gov-spacer.entry.js.map +1 -0
  1131. package/dist/esm/gov-statsbar-item.entry.js +35 -0
  1132. package/dist/esm/gov-statsbar-item.entry.js.map +1 -0
  1133. package/dist/esm/gov-statsbar.entry.js +48 -0
  1134. package/dist/esm/gov-statsbar.entry.js.map +1 -0
  1135. package/dist/esm/gov-stepper-item.entry.js +73 -0
  1136. package/dist/esm/gov-stepper-item.entry.js.map +1 -0
  1137. package/dist/esm/gov-stepper.entry.js +46 -0
  1138. package/dist/esm/gov-stepper.entry.js.map +1 -0
  1139. package/dist/esm/gov-tabs-item.entry.js +49 -0
  1140. package/dist/esm/gov-tabs-item.entry.js.map +1 -0
  1141. package/dist/esm/gov-tabs.entry.js +185 -0
  1142. package/dist/esm/gov-tabs.entry.js.map +1 -0
  1143. package/dist/esm/gov-tile.entry.js +46 -0
  1144. package/dist/esm/gov-tile.entry.js.map +1 -0
  1145. package/dist/esm/gov-tiles.entry.js +29 -0
  1146. package/dist/esm/gov-tiles.entry.js.map +1 -0
  1147. package/dist/esm/gov-toast.entry.js +99 -0
  1148. package/dist/esm/gov-toast.entry.js.map +1 -0
  1149. package/dist/esm/gov-tooltip-content.entry.js +38 -0
  1150. package/dist/esm/gov-tooltip-content.entry.js.map +1 -0
  1151. package/dist/esm/gov-tooltip.entry.js +154 -0
  1152. package/dist/esm/gov-tooltip.entry.js.map +1 -0
  1153. package/dist/esm/gov-wizzard-item.entry.js +106 -0
  1154. package/dist/esm/gov-wizzard-item.entry.js.map +1 -0
  1155. package/dist/esm/gov-wizzard.entry.js +63 -0
  1156. package/dist/esm/gov-wizzard.entry.js.map +1 -0
  1157. package/dist/esm/gov.log-af905420.js +17 -0
  1158. package/dist/esm/gov.log-af905420.js.map +1 -0
  1159. package/dist/esm/index-b010bfb4.js +2296 -0
  1160. package/dist/esm/index-b010bfb4.js.map +1 -0
  1161. package/dist/esm/index.js +3 -0
  1162. package/dist/esm/index.js.map +1 -0
  1163. package/dist/esm/loader.js +19 -0
  1164. package/dist/esm/loader.js.map +1 -0
  1165. package/dist/esm/polyfills/core-js.js +11 -0
  1166. package/dist/esm/polyfills/css-shim.js +1 -0
  1167. package/dist/esm/polyfills/dom.js +79 -0
  1168. package/dist/esm/polyfills/es5-html-element.js +1 -0
  1169. package/dist/esm/polyfills/index.js +34 -0
  1170. package/dist/esm/polyfills/system.js +6 -0
  1171. package/dist/esm/props-789f7529.js +14 -0
  1172. package/dist/esm/props-789f7529.js.map +1 -0
  1173. package/dist/esm/sizes-6c5943b4.js +18 -0
  1174. package/dist/esm/sizes-6c5943b4.js.map +1 -0
  1175. package/dist/esm/string.utils-f268fc6b.js +20 -0
  1176. package/dist/esm/string.utils-f268fc6b.js.map +1 -0
  1177. package/dist/esm/template-10332292.js +113 -0
  1178. package/dist/esm/template-10332292.js.map +1 -0
  1179. package/dist/esm/utils-c057a3fa.js +35 -0
  1180. package/dist/esm/utils-c057a3fa.js.map +1 -0
  1181. package/dist/esm/variants-2b936d58.js +18 -0
  1182. package/dist/esm/variants-2b936d58.js.map +1 -0
  1183. package/dist/esm/wcag-3792d4bb.js +62 -0
  1184. package/dist/esm/wcag-3792d4bb.js.map +1 -0
  1185. package/dist/esm/win-9c8460bb.js +22 -0
  1186. package/dist/esm/win-9c8460bb.js.map +1 -0
  1187. package/dist/globals.d.ts +2 -0
  1188. package/dist/hydrate/index.d.ts +217 -0
  1189. package/dist/hydrate/index.js +20092 -0
  1190. package/dist/hydrate/package.json +6 -0
  1191. package/dist/index.cjs.js +1 -0
  1192. package/dist/index.js +1 -0
  1193. package/dist/stencil.config.js +77 -0
  1194. package/dist/stencil.config.js.map +1 -0
  1195. package/dist/types/Users/iwory/iWork/asseco/mv/gov-design-system-ce/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  1196. package/dist/types/components/gov-accordion/constants.d.ts +22 -0
  1197. package/dist/types/components/gov-accordion/gov-accordion-item.d.d.ts +4 -0
  1198. package/dist/types/components/gov-accordion/gov-accordion-item.d.ts +75 -0
  1199. package/dist/types/components/gov-accordion/gov-accordion.d.ts +42 -0
  1200. package/dist/types/components/gov-alert/constants.d.ts +11 -0
  1201. package/dist/types/components/gov-alert/gov-alert.d.ts +30 -0
  1202. package/dist/types/components/gov-app/gov-app.d.ts +38 -0
  1203. package/dist/types/components/gov-attachments/constants.d.ts +11 -0
  1204. package/dist/types/components/gov-attachments/gov-attachments-item.d.d.ts +4 -0
  1205. package/dist/types/components/gov-attachments/gov-attachments-item.d.ts +24 -0
  1206. package/dist/types/components/gov-attachments/gov-attachments.d.ts +19 -0
  1207. package/dist/types/components/gov-backdrop/constants.d.ts +4 -0
  1208. package/dist/types/components/gov-backdrop/gov-backdrop.d.ts +32 -0
  1209. package/dist/types/components/gov-badge/constants.d.ts +13 -0
  1210. package/dist/types/components/gov-badge/gov-badge.d.ts +58 -0
  1211. package/dist/types/components/gov-breadcrumbs/constants.d.ts +3 -0
  1212. package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.d.ts +4 -0
  1213. package/dist/types/components/gov-breadcrumbs/gov-breadcrumbs.d.ts +33 -0
  1214. package/dist/types/components/gov-button/constants.d.ts +30 -0
  1215. package/dist/types/components/gov-button/gov-button.d.ts +167 -0
  1216. package/dist/types/components/gov-card/constants.d.ts +13 -0
  1217. package/dist/types/components/gov-card/gov-card.d.ts +60 -0
  1218. package/dist/types/components/gov-card/interfaces.d.ts +4 -0
  1219. package/dist/types/components/gov-container/constants.d.ts +3 -0
  1220. package/dist/types/components/gov-container/gov-container.d.ts +12 -0
  1221. package/dist/types/components/gov-cookiebar/constants.d.ts +8 -0
  1222. package/dist/types/components/gov-cookiebar/gov-cookiebar.d.ts +7 -0
  1223. package/dist/types/components/gov-empty/constants.d.ts +6 -0
  1224. package/dist/types/components/gov-empty/gov-empty.d.ts +6 -0
  1225. package/dist/types/components/gov-error-code/constants.d.ts +6 -0
  1226. package/dist/types/components/gov-error-code/gov-error-code.d.ts +6 -0
  1227. package/dist/types/components/gov-form/autocomplete/constants.d.ts +12 -0
  1228. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +132 -0
  1229. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.types.d.ts +3 -0
  1230. package/dist/types/components/gov-form/checkbox/constants.d.ts +8 -0
  1231. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +82 -0
  1232. package/dist/types/components/gov-form/control/constants.d.ts +9 -0
  1233. package/dist/types/components/gov-form/control/gov-form-control.d.ts +47 -0
  1234. package/dist/types/components/gov-form/file/constants.d.ts +9 -0
  1235. package/dist/types/components/gov-form/file/gov-form-file.d.ts +114 -0
  1236. package/dist/types/components/gov-form/file/gov-form-file.types.d.ts +6 -0
  1237. package/dist/types/components/gov-form/group/constants.d.ts +7 -0
  1238. package/dist/types/components/gov-form/group/gov-form-group.d.ts +13 -0
  1239. package/dist/types/components/gov-form/input/constants.d.ts +30 -0
  1240. package/dist/types/components/gov-form/input/gov-form-input.d.ts +165 -0
  1241. package/dist/types/components/gov-form/label/constants.d.ts +8 -0
  1242. package/dist/types/components/gov-form/label/gov-form-label.d.ts +26 -0
  1243. package/dist/types/components/gov-form/message/constants.d.ts +9 -0
  1244. package/dist/types/components/gov-form/message/gov-form-message.d.ts +19 -0
  1245. package/dist/types/components/gov-form/multiselect/constants.d.ts +13 -0
  1246. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +105 -0
  1247. package/dist/types/components/gov-form/multiselect/interfaces.d.ts +4 -0
  1248. package/dist/types/components/gov-form/password-power/constants.d.ts +5 -0
  1249. package/dist/types/components/gov-form/password-power/gov-form-password-power.d.ts +7 -0
  1250. package/dist/types/components/gov-form/radio/constants.d.ts +10 -0
  1251. package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +82 -0
  1252. package/dist/types/components/gov-form/search/constants.d.ts +5 -0
  1253. package/dist/types/components/gov-form/search/gov-form-search.d.ts +4 -0
  1254. package/dist/types/components/gov-form/select/constants.d.ts +11 -0
  1255. package/dist/types/components/gov-form/select/gov-form-select.d.ts +101 -0
  1256. package/dist/types/components/gov-form/switch/constants.d.ts +10 -0
  1257. package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +82 -0
  1258. package/dist/types/components/gov-grid/constants.d.ts +6 -0
  1259. package/dist/types/components/gov-grid/gov-grid-item.d.ts +26 -0
  1260. package/dist/types/components/gov-grid/gov-grid.d.ts +14 -0
  1261. package/dist/types/components/gov-icon/constants.d.ts +12 -0
  1262. package/dist/types/components/gov-icon/gov-icon.d.ts +24 -0
  1263. package/dist/types/components/gov-icon/list.d.ts +3 -0
  1264. package/dist/types/components/gov-layout/constants.d.ts +20 -0
  1265. package/dist/types/components/gov-layout/gov-layout-column.d.ts +6 -0
  1266. package/dist/types/components/gov-layout/gov-layout.d.ts +20 -0
  1267. package/dist/types/components/gov-loading/loading/constants.d.ts +5 -0
  1268. package/dist/types/components/gov-loading/loading/gov-loading.d.ts +10 -0
  1269. package/dist/types/components/gov-loading/skeleton/constants.d.ts +20 -0
  1270. package/dist/types/components/gov-loading/skeleton/gov-skeleton.d.ts +52 -0
  1271. package/dist/types/components/gov-message/constants.d.ts +10 -0
  1272. package/dist/types/components/gov-message/gov-message.d.ts +12 -0
  1273. package/dist/types/components/gov-modal/constants.d.ts +13 -0
  1274. package/dist/types/components/gov-modal/gov-modal.d.ts +65 -0
  1275. package/dist/types/components/gov-nav/constants.d.ts +8 -0
  1276. package/dist/types/components/gov-nav/gov-nav-item.d.ts +12 -0
  1277. package/dist/types/components/gov-nav/gov-nav.d.ts +17 -0
  1278. package/dist/types/components/gov-pagination/constants.d.ts +22 -0
  1279. package/dist/types/components/gov-pagination/gov-pagination.d.ts +85 -0
  1280. package/dist/types/components/gov-pagination/pagination.d.ts +12 -0
  1281. package/dist/types/components/gov-promp/constants.d.ts +12 -0
  1282. package/dist/types/components/gov-promp/gov-prompt.d.ts +65 -0
  1283. package/dist/types/components/gov-side-nav/constants.d.ts +15 -0
  1284. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.d.ts +4 -0
  1285. package/dist/types/components/gov-side-nav/gov-side-nav-item.d.ts +67 -0
  1286. package/dist/types/components/gov-side-nav/gov-side-nav.d.ts +32 -0
  1287. package/dist/types/components/gov-spacer/constants.d.ts +15 -0
  1288. package/dist/types/components/gov-spacer/gov-spacer.d.ts +18 -0
  1289. package/dist/types/components/gov-statsbar/constants.d.ts +18 -0
  1290. package/dist/types/components/gov-statsbar/gov-statsbar-item.d.ts +14 -0
  1291. package/dist/types/components/gov-statsbar/gov-statsbar.d.ts +19 -0
  1292. package/dist/types/components/gov-stepper/constants.d.ts +22 -0
  1293. package/dist/types/components/gov-stepper/gov-stepper-item.d.d.ts +4 -0
  1294. package/dist/types/components/gov-stepper/gov-stepper-item.d.ts +48 -0
  1295. package/dist/types/components/gov-stepper/gov-stepper.d.ts +20 -0
  1296. package/dist/types/components/gov-tabs/constants.d.ts +25 -0
  1297. package/dist/types/components/gov-tabs/gov-tabs-item.d.ts +37 -0
  1298. package/dist/types/components/gov-tabs/gov-tabs.d.ts +73 -0
  1299. package/dist/types/components/gov-tabs/gov-tabs.types.d.ts +8 -0
  1300. package/dist/types/components/gov-tile/constants.d.ts +9 -0
  1301. package/dist/types/components/gov-tile/container/constants.d.ts +3 -0
  1302. package/dist/types/components/gov-tile/container/gov-tiles.d.ts +15 -0
  1303. package/dist/types/components/gov-tile/gov-tile.d.ts +20 -0
  1304. package/dist/types/components/gov-toast/constants.d.ts +14 -0
  1305. package/dist/types/components/gov-toast/gov-toast.d.ts +55 -0
  1306. package/dist/types/components/gov-tooltip/constants.d.ts +20 -0
  1307. package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +10 -0
  1308. package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +50 -0
  1309. package/dist/types/components/gov-wizzard/constants.d.ts +21 -0
  1310. package/dist/types/components/gov-wizzard/gov-wizzard-item.d.d.ts +4 -0
  1311. package/dist/types/components/gov-wizzard/gov-wizzard-item.d.ts +73 -0
  1312. package/dist/types/components/gov-wizzard/gov-wizzard.d.ts +33 -0
  1313. package/dist/types/components.d.ts +4019 -0
  1314. package/dist/types/core/constants/sizes.d.ts +13 -0
  1315. package/dist/types/core/constants/tags.d.ts +12 -0
  1316. package/dist/types/core/constants/variants.d.ts +12 -0
  1317. package/dist/types/helpers/Dom/form.d.ts +3 -0
  1318. package/dist/types/helpers/Dom/form.types.d.ts +11 -0
  1319. package/dist/types/helpers/Dom/template.d.ts +10 -0
  1320. package/dist/types/helpers/Dom/template.types.d.ts +12 -0
  1321. package/dist/types/helpers/Dom/win.d.ts +9 -0
  1322. package/dist/types/helpers/Fragment.d.ts +2 -0
  1323. package/dist/types/helpers/Log/gov.log.d.ts +8 -0
  1324. package/dist/types/helpers/StorybookDocsTemplate.d.ts +3 -0
  1325. package/dist/types/helpers/Validate/props.d.ts +1 -0
  1326. package/dist/types/helpers/Validate/wcag.d.ts +4 -0
  1327. package/dist/types/index.d.ts +1 -0
  1328. package/dist/types/pages/Accordion.d.ts +3 -0
  1329. package/dist/types/pages/Alert.d.ts +3 -0
  1330. package/dist/types/pages/Badge.d.ts +3 -0
  1331. package/dist/types/pages/Breadcrumbs.d.ts +3 -0
  1332. package/dist/types/pages/Button.d.ts +3 -0
  1333. package/dist/types/pages/Card.d.ts +3 -0
  1334. package/dist/types/pages/Container.d.ts +3 -0
  1335. package/dist/types/pages/Cookiebar.d.ts +3 -0
  1336. package/dist/types/pages/Empty.d.ts +3 -0
  1337. package/dist/types/pages/Error.d.ts +3 -0
  1338. package/dist/types/pages/FormLabel.d.ts +3 -0
  1339. package/dist/types/pages/FormMessage.d.ts +3 -0
  1340. package/dist/types/pages/Forms.d.ts +8 -0
  1341. package/dist/types/pages/FormsRestructure.d.ts +3 -0
  1342. package/dist/types/pages/Grid.d.ts +3 -0
  1343. package/dist/types/pages/Home.d.ts +3 -0
  1344. package/dist/types/pages/Layout.d.ts +3 -0
  1345. package/dist/types/pages/Loading.d.ts +3 -0
  1346. package/dist/types/pages/Message.d.ts +3 -0
  1347. package/dist/types/pages/Modal.d.ts +3 -0
  1348. package/dist/types/pages/Nav.d.ts +3 -0
  1349. package/dist/types/pages/Pagination.d.ts +3 -0
  1350. package/dist/types/pages/Prompt.d.ts +3 -0
  1351. package/dist/types/pages/SideNav.d.ts +3 -0
  1352. package/dist/types/pages/Spacer.d.ts +3 -0
  1353. package/dist/types/pages/Statsbar.d.ts +3 -0
  1354. package/dist/types/pages/Stepper.d.ts +3 -0
  1355. package/dist/types/pages/Tabs.d.ts +3 -0
  1356. package/dist/types/pages/Tiles.d.ts +3 -0
  1357. package/dist/types/pages/ToastMessage.d.ts +3 -0
  1358. package/dist/types/pages/ToastMessageCountdown.d.ts +3 -0
  1359. package/dist/types/pages/Tooltip.d.ts +3 -0
  1360. package/dist/types/pages/Typography.d.ts +3 -0
  1361. package/dist/types/pages/Wizzard.d.ts +3 -0
  1362. package/dist/types/stencil-public-runtime.d.ts +1581 -0
  1363. package/dist/types/types/interfaces.d.ts +2 -0
  1364. package/dist/types/types/typings.d.ts +6 -0
  1365. package/dist/types/utils/array.utils.d.ts +1 -0
  1366. package/dist/types/utils/bool.utils.d.ts +1 -0
  1367. package/dist/types/utils/ds.utils.d.ts +1 -0
  1368. package/dist/types/utils/file.utils.d.ts +3 -0
  1369. package/dist/types/utils/icon.utils.d.ts +4 -0
  1370. package/dist/types/utils/number.utils.d.ts +1 -0
  1371. package/dist/types/utils/string.utils.d.ts +3 -0
  1372. package/dist/types/utils/utils.d.ts +20 -0
  1373. package/loader/cdn.js +3 -0
  1374. package/loader/index.cjs.js +3 -0
  1375. package/loader/index.d.ts +12 -0
  1376. package/loader/index.es2017.js +3 -0
  1377. package/loader/index.js +4 -0
  1378. package/loader/package.json +11 -0
  1379. package/package.json +1 -1
  1380. package/LICENSE +0 -21
  1381. package/readme.md +0 -86
@@ -0,0 +1,2325 @@
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
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
66
+ /**
67
+ * Default style mode id
68
+ */
69
+ /**
70
+ * Reusable empty obj/array
71
+ * Don't add values to these!!
72
+ */
73
+ const EMPTY_OBJ = {};
74
+ const isComplexType = (o) => {
75
+ // https://jsperf.com/typeof-fn-object/5
76
+ o = typeof o;
77
+ return o === 'object' || o === 'function';
78
+ };
79
+ /**
80
+ * Production h() function based on Preact by
81
+ * Jason Miller (@developit)
82
+ * Licensed under the MIT License
83
+ * https://github.com/developit/preact/blob/master/LICENSE
84
+ *
85
+ * Modified for Stencil's compiler and vdom
86
+ */
87
+ // const stack: any[] = [];
88
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
89
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
90
+ const h = (nodeName, vnodeData, ...children) => {
91
+ let child = null;
92
+ let key = null;
93
+ let slotName = null;
94
+ let simple = false;
95
+ let lastSimple = false;
96
+ const vNodeChildren = [];
97
+ const walk = (c) => {
98
+ for (let i = 0; i < c.length; i++) {
99
+ child = c[i];
100
+ if (Array.isArray(child)) {
101
+ walk(child);
102
+ }
103
+ else if (child != null && typeof child !== 'boolean') {
104
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
105
+ child = String(child);
106
+ }
107
+ if (simple && lastSimple) {
108
+ // If the previous child was simple (string), we merge both
109
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
110
+ }
111
+ else {
112
+ // Append a new vNode, if it's text, we create a text vNode
113
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
114
+ }
115
+ lastSimple = simple;
116
+ }
117
+ }
118
+ };
119
+ walk(children);
120
+ if (vnodeData) {
121
+ // normalize class / classname attributes
122
+ if (vnodeData.key) {
123
+ key = vnodeData.key;
124
+ }
125
+ if (vnodeData.name) {
126
+ slotName = vnodeData.name;
127
+ }
128
+ {
129
+ const classData = vnodeData.className || vnodeData.class;
130
+ if (classData) {
131
+ vnodeData.class =
132
+ typeof classData !== 'object'
133
+ ? classData
134
+ : Object.keys(classData)
135
+ .filter((k) => classData[k])
136
+ .join(' ');
137
+ }
138
+ }
139
+ }
140
+ if (typeof nodeName === 'function') {
141
+ // nodeName is a functional component
142
+ return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
143
+ }
144
+ const vnode = newVNode(nodeName, null);
145
+ vnode.$attrs$ = vnodeData;
146
+ if (vNodeChildren.length > 0) {
147
+ vnode.$children$ = vNodeChildren;
148
+ }
149
+ {
150
+ vnode.$key$ = key;
151
+ }
152
+ {
153
+ vnode.$name$ = slotName;
154
+ }
155
+ return vnode;
156
+ };
157
+ const newVNode = (tag, text) => {
158
+ const vnode = {
159
+ $flags$: 0,
160
+ $tag$: tag,
161
+ $text$: text,
162
+ $elm$: null,
163
+ $children$: null,
164
+ };
165
+ {
166
+ vnode.$attrs$ = null;
167
+ }
168
+ {
169
+ vnode.$key$ = null;
170
+ }
171
+ {
172
+ vnode.$name$ = null;
173
+ }
174
+ return vnode;
175
+ };
176
+ const Host = {};
177
+ const isHost = (node) => node && node.$tag$ === Host;
178
+ const vdomFnUtils = {
179
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
180
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
181
+ };
182
+ const convertToPublic = (node) => ({
183
+ vattrs: node.$attrs$,
184
+ vchildren: node.$children$,
185
+ vkey: node.$key$,
186
+ vname: node.$name$,
187
+ vtag: node.$tag$,
188
+ vtext: node.$text$,
189
+ });
190
+ const convertToPrivate = (node) => {
191
+ if (typeof node.vtag === 'function') {
192
+ const vnodeData = Object.assign({}, node.vattrs);
193
+ if (node.vkey) {
194
+ vnodeData.key = node.vkey;
195
+ }
196
+ if (node.vname) {
197
+ vnodeData.name = node.vname;
198
+ }
199
+ return h(node.vtag, vnodeData, ...(node.vchildren || []));
200
+ }
201
+ const vnode = newVNode(node.vtag, node.vtext);
202
+ vnode.$attrs$ = node.vattrs;
203
+ vnode.$children$ = node.vchildren;
204
+ vnode.$key$ = node.vkey;
205
+ vnode.$name$ = node.vname;
206
+ return vnode;
207
+ };
208
+ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
209
+ const endHydrate = createTime('hydrateClient', tagName);
210
+ const shadowRoot = hostElm.shadowRoot;
211
+ const childRenderNodes = [];
212
+ const slotNodes = [];
213
+ const shadowRootNodes = null;
214
+ const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
215
+ if (!plt.$orgLocNodes$) {
216
+ initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
217
+ }
218
+ hostElm[HYDRATE_ID] = hostId;
219
+ hostElm.removeAttribute(HYDRATE_ID);
220
+ clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
221
+ childRenderNodes.map((c) => {
222
+ const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
223
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
224
+ const node = c.$elm$;
225
+ if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
226
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
227
+ }
228
+ if (!shadowRoot) {
229
+ node['s-hn'] = tagName;
230
+ if (orgLocationNode) {
231
+ node['s-ol'] = orgLocationNode;
232
+ node['s-ol']['s-nr'] = node;
233
+ }
234
+ }
235
+ plt.$orgLocNodes$.delete(orgLocationId);
236
+ });
237
+ endHydrate();
238
+ };
239
+ const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
240
+ let childNodeType;
241
+ let childIdSplt;
242
+ let childVNode;
243
+ let i;
244
+ if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
245
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
246
+ if (childNodeType) {
247
+ // got the node data from the element's attribute
248
+ // `${hostId}.${nodeId}.${depth}.${index}`
249
+ childIdSplt = childNodeType.split('.');
250
+ if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
251
+ childVNode = {
252
+ $flags$: 0,
253
+ $hostId$: childIdSplt[0],
254
+ $nodeId$: childIdSplt[1],
255
+ $depth$: childIdSplt[2],
256
+ $index$: childIdSplt[3],
257
+ $tag$: node.tagName.toLowerCase(),
258
+ $elm$: node,
259
+ $attrs$: null,
260
+ $children$: null,
261
+ $key$: null,
262
+ $name$: null,
263
+ $text$: null,
264
+ };
265
+ childRenderNodes.push(childVNode);
266
+ node.removeAttribute(HYDRATE_CHILD_ID);
267
+ // this is a new child vnode
268
+ // so ensure its parent vnode has the vchildren array
269
+ if (!parentVNode.$children$) {
270
+ parentVNode.$children$ = [];
271
+ }
272
+ // add our child vnode to a specific index of the vnode's children
273
+ parentVNode.$children$[childVNode.$index$] = childVNode;
274
+ // this is now the new parent vnode for all the next child checks
275
+ parentVNode = childVNode;
276
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
277
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
278
+ }
279
+ }
280
+ }
281
+ // recursively drill down, end to start so we can remove nodes
282
+ for (i = node.childNodes.length - 1; i >= 0; i--) {
283
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
284
+ }
285
+ if (node.shadowRoot) {
286
+ // keep drilling down through the shadow root nodes
287
+ for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
288
+ clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
289
+ }
290
+ }
291
+ }
292
+ else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
293
+ // `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
294
+ childIdSplt = node.nodeValue.split('.');
295
+ if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
296
+ // comment node for either the host id or a 0 host id
297
+ childNodeType = childIdSplt[0];
298
+ childVNode = {
299
+ $flags$: 0,
300
+ $hostId$: childIdSplt[1],
301
+ $nodeId$: childIdSplt[2],
302
+ $depth$: childIdSplt[3],
303
+ $index$: childIdSplt[4],
304
+ $elm$: node,
305
+ $attrs$: null,
306
+ $children$: null,
307
+ $key$: null,
308
+ $name$: null,
309
+ $tag$: null,
310
+ $text$: null,
311
+ };
312
+ if (childNodeType === TEXT_NODE_ID) {
313
+ childVNode.$elm$ = node.nextSibling;
314
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* NODE_TYPE.TextNode */) {
315
+ childVNode.$text$ = childVNode.$elm$.textContent;
316
+ childRenderNodes.push(childVNode);
317
+ // remove the text comment since it's no longer needed
318
+ node.remove();
319
+ if (!parentVNode.$children$) {
320
+ parentVNode.$children$ = [];
321
+ }
322
+ parentVNode.$children$[childVNode.$index$] = childVNode;
323
+ if (shadowRootNodes && childVNode.$depth$ === '0') {
324
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
325
+ }
326
+ }
327
+ }
328
+ else if (childVNode.$hostId$ === hostId) {
329
+ // this comment node is specifcally for this host id
330
+ if (childNodeType === SLOT_NODE_ID) {
331
+ // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
332
+ childVNode.$tag$ = 'slot';
333
+ if (childIdSplt[5]) {
334
+ node['s-sn'] = childVNode.$name$ = childIdSplt[5];
335
+ }
336
+ else {
337
+ node['s-sn'] = '';
338
+ }
339
+ node['s-sr'] = true;
340
+ slotNodes.push(childVNode);
341
+ if (!parentVNode.$children$) {
342
+ parentVNode.$children$ = [];
343
+ }
344
+ parentVNode.$children$[childVNode.$index$] = childVNode;
345
+ }
346
+ else if (childNodeType === CONTENT_REF_ID) {
347
+ // `${CONTENT_REF_ID}.${hostId}`;
348
+ {
349
+ hostElm['s-cr'] = node;
350
+ node['s-cn'] = true;
351
+ }
352
+ }
353
+ }
354
+ }
355
+ }
356
+ else if (parentVNode && parentVNode.$tag$ === 'style') {
357
+ const vnode = newVNode(null, node.textContent);
358
+ vnode.$elm$ = node;
359
+ vnode.$index$ = '0';
360
+ parentVNode.$children$ = [vnode];
361
+ }
362
+ };
363
+ const initializeDocumentHydrate = (node, orgLocNodes) => {
364
+ if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
365
+ let i = 0;
366
+ for (; i < node.childNodes.length; i++) {
367
+ initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
368
+ }
369
+ if (node.shadowRoot) {
370
+ for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
371
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
372
+ }
373
+ }
374
+ }
375
+ else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
376
+ const childIdSplt = node.nodeValue.split('.');
377
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
378
+ orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
379
+ node.nodeValue = '';
380
+ // useful to know if the original location is
381
+ // the root light-dom of a shadow dom component
382
+ node['s-en'] = childIdSplt[3];
383
+ }
384
+ }
385
+ };
386
+ /**
387
+ * Parse a new property value for a given property type.
388
+ *
389
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
390
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
391
+ * 1. `any`, the type given to `propValue` in the function signature
392
+ * 2. the type stored from `propType`.
393
+ *
394
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
395
+ *
396
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
397
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
398
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
399
+ * ```tsx
400
+ * <my-cmp prop-val={0}></my-cmp>
401
+ * ```
402
+ *
403
+ * HTML prop values on the other hand, will always a string
404
+ *
405
+ * @param propValue the new value to coerce to some type
406
+ * @param propType the type of the prop, expressed as a binary number
407
+ * @returns the parsed/coerced value
408
+ */
409
+ const parsePropertyValue = (propValue, propType) => {
410
+ // ensure this value is of the correct prop type
411
+ if (propValue != null && !isComplexType(propValue)) {
412
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
413
+ // per the HTML spec, any string value means it is a boolean true value
414
+ // but we'll cheat here and say that the string "false" is the boolean false
415
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
416
+ }
417
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
418
+ // force it to be a number
419
+ return parseFloat(propValue);
420
+ }
421
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
422
+ // could have been passed as a number or boolean
423
+ // but we still want it as a string
424
+ return String(propValue);
425
+ }
426
+ // redundant return here for better minification
427
+ return propValue;
428
+ }
429
+ // not sure exactly what type we want
430
+ // so no need to change to a different type
431
+ return propValue;
432
+ };
433
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
434
+ const createEvent = (ref, name, flags) => {
435
+ const elm = getElement(ref);
436
+ return {
437
+ emit: (detail) => {
438
+ return emitEvent(elm, name, {
439
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
440
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
441
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
442
+ detail,
443
+ });
444
+ },
445
+ };
446
+ };
447
+ /**
448
+ * Helper function to create & dispatch a custom Event on a provided target
449
+ * @param elm the target of the Event
450
+ * @param name the name to give the custom Event
451
+ * @param opts options for configuring a custom Event
452
+ * @returns the custom Event
453
+ */
454
+ const emitEvent = (elm, name, opts) => {
455
+ const ev = plt.ce(name, opts);
456
+ elm.dispatchEvent(ev);
457
+ return ev;
458
+ };
459
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
460
+ const registerStyle = (scopeId, cssText, allowCS) => {
461
+ let style = styles.get(scopeId);
462
+ if (supportsConstructableStylesheets && allowCS) {
463
+ style = (style || new CSSStyleSheet());
464
+ if (typeof style === 'string') {
465
+ style = cssText;
466
+ }
467
+ else {
468
+ style.replaceSync(cssText);
469
+ }
470
+ }
471
+ else {
472
+ style = cssText;
473
+ }
474
+ styles.set(scopeId, style);
475
+ };
476
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
477
+ let scopeId = getScopeId(cmpMeta);
478
+ const style = styles.get(scopeId);
479
+ // if an element is NOT connected then getRootNode() will return the wrong root node
480
+ // so the fallback is to always use the document for the root node in those cases
481
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
482
+ if (style) {
483
+ if (typeof style === 'string') {
484
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
485
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
486
+ let styleElm;
487
+ if (!appliedStyles) {
488
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
489
+ }
490
+ if (!appliedStyles.has(scopeId)) {
491
+ if (styleContainerNode.host &&
492
+ (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
493
+ // This is only happening on native shadow-dom, do not needs CSS var shim
494
+ styleElm.innerHTML = style;
495
+ }
496
+ else {
497
+ {
498
+ styleElm = doc.createElement('style');
499
+ styleElm.innerHTML = style;
500
+ }
501
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
502
+ }
503
+ if (appliedStyles) {
504
+ appliedStyles.add(scopeId);
505
+ }
506
+ }
507
+ }
508
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
509
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
510
+ }
511
+ }
512
+ return scopeId;
513
+ };
514
+ const attachStyles = (hostRef) => {
515
+ const cmpMeta = hostRef.$cmpMeta$;
516
+ const elm = hostRef.$hostElement$;
517
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
518
+ addStyle(elm.getRootNode(), cmpMeta);
519
+ endAttachStyles();
520
+ };
521
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
522
+ /**
523
+ * Production setAccessor() function based on Preact by
524
+ * Jason Miller (@developit)
525
+ * Licensed under the MIT License
526
+ * https://github.com/developit/preact/blob/master/LICENSE
527
+ *
528
+ * Modified for Stencil's compiler and vdom
529
+ */
530
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
531
+ if (oldValue !== newValue) {
532
+ let isProp = isMemberInElement(elm, memberName);
533
+ let ln = memberName.toLowerCase();
534
+ if (memberName === 'class') {
535
+ const classList = elm.classList;
536
+ const oldClasses = parseClassList(oldValue);
537
+ const newClasses = parseClassList(newValue);
538
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
539
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
540
+ }
541
+ else if (memberName === 'style') {
542
+ // update style attribute, css properties and values
543
+ {
544
+ for (const prop in oldValue) {
545
+ if (!newValue || newValue[prop] == null) {
546
+ if (prop.includes('-')) {
547
+ elm.style.removeProperty(prop);
548
+ }
549
+ else {
550
+ elm.style[prop] = '';
551
+ }
552
+ }
553
+ }
554
+ }
555
+ for (const prop in newValue) {
556
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
557
+ if (prop.includes('-')) {
558
+ elm.style.setProperty(prop, newValue[prop]);
559
+ }
560
+ else {
561
+ elm.style[prop] = newValue[prop];
562
+ }
563
+ }
564
+ }
565
+ }
566
+ else if (memberName === 'key')
567
+ ;
568
+ else if (memberName === 'ref') {
569
+ // minifier will clean this up
570
+ if (newValue) {
571
+ newValue(elm);
572
+ }
573
+ }
574
+ else if ((!isProp ) &&
575
+ memberName[0] === 'o' &&
576
+ memberName[1] === 'n') {
577
+ // Event Handlers
578
+ // so if the member name starts with "on" and the 3rd characters is
579
+ // a capital letter, and it's not already a member on the element,
580
+ // then we're assuming it's an event listener
581
+ if (memberName[2] === '-') {
582
+ // on- prefixed events
583
+ // allows to be explicit about the dom event to listen without any magic
584
+ // under the hood:
585
+ // <my-cmp on-click> // listens for "click"
586
+ // <my-cmp on-Click> // listens for "Click"
587
+ // <my-cmp on-ionChange> // listens for "ionChange"
588
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
589
+ memberName = memberName.slice(3);
590
+ }
591
+ else if (isMemberInElement(win, ln)) {
592
+ // standard event
593
+ // the JSX attribute could have been "onMouseOver" and the
594
+ // member name "onmouseover" is on the window's prototype
595
+ // so let's add the listener "mouseover", which is all lowercased
596
+ memberName = ln.slice(2);
597
+ }
598
+ else {
599
+ // custom event
600
+ // the JSX attribute could have been "onMyCustomEvent"
601
+ // so let's trim off the "on" prefix and lowercase the first character
602
+ // and add the listener "myCustomEvent"
603
+ // except for the first character, we keep the event name case
604
+ memberName = ln[2] + memberName.slice(3);
605
+ }
606
+ if (oldValue) {
607
+ plt.rel(elm, memberName, oldValue, false);
608
+ }
609
+ if (newValue) {
610
+ plt.ael(elm, memberName, newValue, false);
611
+ }
612
+ }
613
+ else {
614
+ // Set property if it exists and it's not a SVG
615
+ const isComplex = isComplexType(newValue);
616
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
617
+ try {
618
+ if (!elm.tagName.includes('-')) {
619
+ const n = newValue == null ? '' : newValue;
620
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
621
+ if (memberName === 'list') {
622
+ isProp = false;
623
+ }
624
+ else if (oldValue == null || elm[memberName] != n) {
625
+ elm[memberName] = n;
626
+ }
627
+ }
628
+ else {
629
+ elm[memberName] = newValue;
630
+ }
631
+ }
632
+ catch (e) { }
633
+ }
634
+ if (newValue == null || newValue === false) {
635
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
636
+ {
637
+ elm.removeAttribute(memberName);
638
+ }
639
+ }
640
+ }
641
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
642
+ newValue = newValue === true ? '' : newValue;
643
+ {
644
+ elm.setAttribute(memberName, newValue);
645
+ }
646
+ }
647
+ }
648
+ }
649
+ };
650
+ const parseClassListRegex = /\s/;
651
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
652
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
653
+ // if the element passed in is a shadow root, which is a document fragment
654
+ // then we want to be adding attrs/props to the shadow root's "host" element
655
+ // if it's not a shadow root, then we add attrs/props to the same element
656
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
657
+ ? newVnode.$elm$.host
658
+ : newVnode.$elm$;
659
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
660
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
661
+ {
662
+ // remove attributes no longer present on the vnode by setting them to undefined
663
+ for (memberName in oldVnodeAttrs) {
664
+ if (!(memberName in newVnodeAttrs)) {
665
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
666
+ }
667
+ }
668
+ }
669
+ // add new & update changed attributes
670
+ for (memberName in newVnodeAttrs) {
671
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
672
+ }
673
+ };
674
+ /**
675
+ * Create a DOM Node corresponding to one of the children of a given VNode.
676
+ *
677
+ * @param oldParentVNode the parent VNode from the previous render
678
+ * @param newParentVNode the parent VNode from the current render
679
+ * @param childIndex the index of the VNode, in the _new_ parent node's
680
+ * children, for which we will create a new DOM node
681
+ * @param parentElm the parent DOM node which our new node will be a child of
682
+ * @returns the newly created node
683
+ */
684
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
685
+ // tslint:disable-next-line: prefer-const
686
+ const newVNode = newParentVNode.$children$[childIndex];
687
+ let i = 0;
688
+ let elm;
689
+ let childNode;
690
+ let oldVNode;
691
+ if (!useNativeShadowDom) {
692
+ // remember for later we need to check to relocate nodes
693
+ checkSlotRelocate = true;
694
+ if (newVNode.$tag$ === 'slot') {
695
+ newVNode.$flags$ |= newVNode.$children$
696
+ ? // slot element has fallback content
697
+ 2 /* VNODE_FLAGS.isSlotFallback */
698
+ : // slot element does not have fallback content
699
+ 1 /* VNODE_FLAGS.isSlotReference */;
700
+ }
701
+ }
702
+ if (newVNode.$text$ !== null) {
703
+ // create text node
704
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
705
+ }
706
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
707
+ // create a slot reference node
708
+ elm = newVNode.$elm$ =
709
+ doc.createTextNode('');
710
+ }
711
+ else {
712
+ // create element
713
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
714
+ ? 'slot-fb'
715
+ : newVNode.$tag$));
716
+ // add css classes, attrs, props, listeners, etc.
717
+ {
718
+ updateElement(null, newVNode, isSvgMode);
719
+ }
720
+ if (newVNode.$children$) {
721
+ for (i = 0; i < newVNode.$children$.length; ++i) {
722
+ // create the node
723
+ childNode = createElm(oldParentVNode, newVNode, i);
724
+ // return node could have been null
725
+ if (childNode) {
726
+ // append our new node
727
+ elm.appendChild(childNode);
728
+ }
729
+ }
730
+ }
731
+ }
732
+ {
733
+ elm['s-hn'] = hostTagName;
734
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
735
+ // remember the content reference comment
736
+ elm['s-sr'] = true;
737
+ // remember the content reference comment
738
+ elm['s-cr'] = contentRef;
739
+ // remember the slot name, or empty string for default slot
740
+ elm['s-sn'] = newVNode.$name$ || '';
741
+ // check if we've got an old vnode for this slot
742
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
743
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
744
+ // we've got an old slot vnode and the wrapper is being replaced
745
+ // so let's move the old slot content back to it's original location
746
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
747
+ }
748
+ }
749
+ }
750
+ return elm;
751
+ };
752
+ const putBackInOriginalLocation = (parentElm, recursive) => {
753
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
754
+ const oldSlotChildNodes = parentElm.childNodes;
755
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
756
+ const childNode = oldSlotChildNodes[i];
757
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
758
+ // // this child node in the old element is from another component
759
+ // // remove this node from the old slot's parent
760
+ // childNode.remove();
761
+ // and relocate it back to it's original location
762
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
763
+ // remove the old original location comment entirely
764
+ // later on the patch function will know what to do
765
+ // and move this to the correct spot in need be
766
+ childNode['s-ol'].remove();
767
+ childNode['s-ol'] = undefined;
768
+ checkSlotRelocate = true;
769
+ }
770
+ if (recursive) {
771
+ putBackInOriginalLocation(childNode, recursive);
772
+ }
773
+ }
774
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
775
+ };
776
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
777
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
778
+ let childNode;
779
+ for (; startIdx <= endIdx; ++startIdx) {
780
+ if (vnodes[startIdx]) {
781
+ childNode = createElm(null, parentVNode, startIdx);
782
+ if (childNode) {
783
+ vnodes[startIdx].$elm$ = childNode;
784
+ containerElm.insertBefore(childNode, referenceNode(before) );
785
+ }
786
+ }
787
+ }
788
+ };
789
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
790
+ for (; startIdx <= endIdx; ++startIdx) {
791
+ if ((vnode = vnodes[startIdx])) {
792
+ elm = vnode.$elm$;
793
+ callNodeRefs(vnode);
794
+ {
795
+ // we're removing this element
796
+ // so it's possible we need to show slot fallback content now
797
+ checkSlotFallbackVisibility = true;
798
+ if (elm['s-ol']) {
799
+ // remove the original location comment
800
+ elm['s-ol'].remove();
801
+ }
802
+ else {
803
+ // it's possible that child nodes of the node
804
+ // that's being removed are slot nodes
805
+ putBackInOriginalLocation(elm, true);
806
+ }
807
+ }
808
+ // remove the vnode's element from the dom
809
+ elm.remove();
810
+ }
811
+ }
812
+ };
813
+ /**
814
+ * Reconcile the children of a new VNode with the children of an old VNode by
815
+ * traversing the two collections of children, identifying nodes that are
816
+ * conserved or changed, calling out to `patch` to make any necessary
817
+ * updates to the DOM, and rearranging DOM nodes as needed.
818
+ *
819
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
820
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
821
+ * 'windows' by storing start and end indices and references to the
822
+ * corresponding array entries. Initially the two 'windows' are basically equal
823
+ * to the entire array, but we progressively narrow the windows until there are
824
+ * no children left to update by doing the following:
825
+ *
826
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
827
+ * that if we have an initial array like the following we'll end up dealing
828
+ * only with a window bounded by the highlighted elements:
829
+ *
830
+ * [null, null, VNode1 , ... , VNode2, null, null]
831
+ * ^^^^^^ ^^^^^^
832
+ *
833
+ * 2. Check to see if the elements at the head and tail positions are equal
834
+ * across the windows. This will basically detect elements which haven't
835
+ * been added, removed, or changed position, i.e. if you had the following
836
+ * VNode elements (represented as HTML):
837
+ *
838
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
839
+ * newVNode: `<div><p><span>THERE</span></p></div>`
840
+ *
841
+ * Then when comparing the children of the `<div>` tag we check the equality
842
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
843
+ * same tag in the same position, we'd be able to avoid completely
844
+ * re-rendering the subtree under them with a new DOM element and would just
845
+ * call out to `patch` to handle reconciling their children and so on.
846
+ *
847
+ * 3. Check, for both windows, to see if the element at the beginning of the
848
+ * window corresponds to the element at the end of the other window. This is
849
+ * a heuristic which will let us identify _some_ situations in which
850
+ * elements have changed position, for instance it _should_ detect that the
851
+ * children nodes themselves have not changed but merely moved in the
852
+ * following example:
853
+ *
854
+ * oldVNode: `<div><element-one /><element-two /></div>`
855
+ * newVNode: `<div><element-two /><element-one /></div>`
856
+ *
857
+ * If we find cases like this then we also need to move the concrete DOM
858
+ * elements corresponding to the moved children to write the re-order to the
859
+ * DOM.
860
+ *
861
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
862
+ * nodes in the old children which have the same key as the first element in
863
+ * our window on the new children. If we find such a node we handle calling
864
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
865
+ * what we find.
866
+ *
867
+ * Finally, once we've narrowed our 'windows' to the point that either of them
868
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
869
+ * insertion or deletion that needs to happen to get a DOM state that correctly
870
+ * reflects the new child VNodes. If, for instance, after our window on the old
871
+ * children has collapsed we still have more nodes on the new children that
872
+ * we haven't dealt with yet then we need to add them, or if the new children
873
+ * collapse but we still have unhandled _old_ children then we need to make
874
+ * sure the corresponding DOM nodes are removed.
875
+ *
876
+ * @param parentElm the node into which the parent VNode is rendered
877
+ * @param oldCh the old children of the parent node
878
+ * @param newVNode the new VNode which will replace the parent
879
+ * @param newCh the new children of the parent node
880
+ */
881
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
882
+ let oldStartIdx = 0;
883
+ let newStartIdx = 0;
884
+ let idxInOld = 0;
885
+ let i = 0;
886
+ let oldEndIdx = oldCh.length - 1;
887
+ let oldStartVnode = oldCh[0];
888
+ let oldEndVnode = oldCh[oldEndIdx];
889
+ let newEndIdx = newCh.length - 1;
890
+ let newStartVnode = newCh[0];
891
+ let newEndVnode = newCh[newEndIdx];
892
+ let node;
893
+ let elmToMove;
894
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
895
+ if (oldStartVnode == null) {
896
+ // VNode might have been moved left
897
+ oldStartVnode = oldCh[++oldStartIdx];
898
+ }
899
+ else if (oldEndVnode == null) {
900
+ oldEndVnode = oldCh[--oldEndIdx];
901
+ }
902
+ else if (newStartVnode == null) {
903
+ newStartVnode = newCh[++newStartIdx];
904
+ }
905
+ else if (newEndVnode == null) {
906
+ newEndVnode = newCh[--newEndIdx];
907
+ }
908
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
909
+ // if the start nodes are the same then we should patch the new VNode
910
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
911
+ // indices to reflect that. We don't need to move any DOM Nodes around
912
+ // since things are matched up in order.
913
+ patch(oldStartVnode, newStartVnode);
914
+ oldStartVnode = oldCh[++oldStartIdx];
915
+ newStartVnode = newCh[++newStartIdx];
916
+ }
917
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
918
+ // likewise, if the end nodes are the same we patch new onto old and
919
+ // decrement our end indices, and also likewise in this case we don't
920
+ // need to move any DOM Nodes.
921
+ patch(oldEndVnode, newEndVnode);
922
+ oldEndVnode = oldCh[--oldEndIdx];
923
+ newEndVnode = newCh[--newEndIdx];
924
+ }
925
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
926
+ // case: "Vnode moved right"
927
+ //
928
+ // We've found that the last node in our window on the new children is
929
+ // the same VNode as the _first_ node in our window on the old children
930
+ // we're dealing with now. Visually, this is the layout of these two
931
+ // nodes:
932
+ //
933
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
934
+ // ^^^^^^^^^^^
935
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
936
+ // ^^^^^^^^^^^^^
937
+ //
938
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
939
+ // and move the DOM element for `oldStartVnode`.
940
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
941
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
942
+ }
943
+ patch(oldStartVnode, newEndVnode);
944
+ // We need to move the element for `oldStartVnode` into a position which
945
+ // will be appropriate for `newEndVnode`. For this we can use
946
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
947
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
948
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
949
+ //
950
+ // <old-start-node />
951
+ // <some-intervening-node />
952
+ // <old-end-node />
953
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
954
+ // <next-sibling />
955
+ //
956
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
957
+ // the node for `oldStartVnode` at the end of the children of
958
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
959
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
960
+ // append it to the children of the parent element.
961
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
962
+ oldStartVnode = oldCh[++oldStartIdx];
963
+ newEndVnode = newCh[--newEndIdx];
964
+ }
965
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
966
+ // case: "Vnode moved left"
967
+ //
968
+ // We've found that the first node in our window on the new children is
969
+ // the same VNode as the _last_ node in our window on the old children.
970
+ // Visually, this is the layout of these two nodes:
971
+ //
972
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
973
+ // ^^^^^^^^^^^^^
974
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
975
+ // ^^^^^^^^^^^
976
+ //
977
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
978
+ // (which will handle updating any changed attributes, reconciling their
979
+ // children etc) but we also need to move the DOM node to which
980
+ // `oldEndVnode` corresponds.
981
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
982
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
983
+ }
984
+ patch(oldEndVnode, newStartVnode);
985
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
986
+ // the same node, so since we're here we know that they are not. Thus we
987
+ // can move the element for `oldEndVnode` _before_ the element for
988
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
989
+ // future.
990
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
991
+ oldEndVnode = oldCh[--oldEndIdx];
992
+ newStartVnode = newCh[++newStartIdx];
993
+ }
994
+ else {
995
+ // Here we do some checks to match up old and new nodes based on the
996
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
997
+ // in the JSX for a DOM element in the implementation of a Stencil
998
+ // component.
999
+ //
1000
+ // First we check to see if there are any nodes in the array of old
1001
+ // children which have the same key as the first node in the new
1002
+ // children.
1003
+ idxInOld = -1;
1004
+ {
1005
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
1006
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
1007
+ idxInOld = i;
1008
+ break;
1009
+ }
1010
+ }
1011
+ }
1012
+ if (idxInOld >= 0) {
1013
+ // We found a node in the old children which matches up with the first
1014
+ // node in the new children! So let's deal with that
1015
+ elmToMove = oldCh[idxInOld];
1016
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1017
+ // the tag doesn't match so we'll need a new DOM element
1018
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
1019
+ }
1020
+ else {
1021
+ patch(elmToMove, newStartVnode);
1022
+ // invalidate the matching old node so that we won't try to update it
1023
+ // again later on
1024
+ oldCh[idxInOld] = undefined;
1025
+ node = elmToMove.$elm$;
1026
+ }
1027
+ newStartVnode = newCh[++newStartIdx];
1028
+ }
1029
+ else {
1030
+ // We either didn't find an element in the old children that matches
1031
+ // the key of the first new child OR the build is not using `key`
1032
+ // attributes at all. In either case we need to create a new element
1033
+ // for the new node.
1034
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
1035
+ newStartVnode = newCh[++newStartIdx];
1036
+ }
1037
+ if (node) {
1038
+ // if we created a new node then handle inserting it to the DOM
1039
+ {
1040
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
1041
+ }
1042
+ }
1043
+ }
1044
+ }
1045
+ if (oldStartIdx > oldEndIdx) {
1046
+ // we have some more new nodes to add which don't match up with old nodes
1047
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
1048
+ }
1049
+ else if (newStartIdx > newEndIdx) {
1050
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
1051
+ // in the new array, so lets remove them (which entails cleaning up the
1052
+ // relevant DOM nodes)
1053
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1054
+ }
1055
+ };
1056
+ /**
1057
+ * Compare two VNodes to determine if they are the same
1058
+ *
1059
+ * **NB**: This function is an equality _heuristic_ based on the available
1060
+ * information set on the two VNodes and can be misleading under certain
1061
+ * circumstances. In particular, if the two nodes do not have `key` attrs
1062
+ * (available under `$key$` on VNodes) then the function falls back on merely
1063
+ * checking that they have the same tag.
1064
+ *
1065
+ * So, in other words, if `key` attrs are not set on VNodes which may be
1066
+ * changing order within a `children` array or something along those lines then
1067
+ * we could obtain a false positive and then have to do needless re-rendering.
1068
+ *
1069
+ * @param leftVNode the first VNode to check
1070
+ * @param rightVNode the second VNode to check
1071
+ * @returns whether they're equal or not
1072
+ */
1073
+ const isSameVnode = (leftVNode, rightVNode) => {
1074
+ // compare if two vnode to see if they're "technically" the same
1075
+ // need to have the same element tag, and same key to be the same
1076
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
1077
+ if (leftVNode.$tag$ === 'slot') {
1078
+ return leftVNode.$name$ === rightVNode.$name$;
1079
+ }
1080
+ // this will be set if components in the build have `key` attrs set on them
1081
+ {
1082
+ return leftVNode.$key$ === rightVNode.$key$;
1083
+ }
1084
+ }
1085
+ return false;
1086
+ };
1087
+ const referenceNode = (node) => {
1088
+ // this node was relocated to a new location in the dom
1089
+ // because of some other component's slot
1090
+ // but we still have an html comment in place of where
1091
+ // it's original location was according to it's original vdom
1092
+ return (node && node['s-ol']) || node;
1093
+ };
1094
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1095
+ /**
1096
+ * Handle reconciling an outdated VNode with a new one which corresponds to
1097
+ * it. This function handles flushing updates to the DOM and reconciling the
1098
+ * children of the two nodes (if any).
1099
+ *
1100
+ * @param oldVNode an old VNode whose DOM element and children we want to update
1101
+ * @param newVNode a new VNode representing an updated version of the old one
1102
+ */
1103
+ const patch = (oldVNode, newVNode) => {
1104
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
1105
+ const oldChildren = oldVNode.$children$;
1106
+ const newChildren = newVNode.$children$;
1107
+ const tag = newVNode.$tag$;
1108
+ const text = newVNode.$text$;
1109
+ let defaultHolder;
1110
+ if (text === null) {
1111
+ {
1112
+ if (tag === 'slot')
1113
+ ;
1114
+ else {
1115
+ // either this is the first render of an element OR it's an update
1116
+ // AND we already know it's possible it could have changed
1117
+ // this updates the element's css classes, attrs, props, listeners, etc.
1118
+ updateElement(oldVNode, newVNode, isSvgMode);
1119
+ }
1120
+ }
1121
+ if (oldChildren !== null && newChildren !== null) {
1122
+ // looks like there's child vnodes for both the old and new vnodes
1123
+ // so we need to call `updateChildren` to reconcile them
1124
+ updateChildren(elm, oldChildren, newVNode, newChildren);
1125
+ }
1126
+ else if (newChildren !== null) {
1127
+ // no old child vnodes, but there are new child vnodes to add
1128
+ if (oldVNode.$text$ !== null) {
1129
+ // the old vnode was text, so be sure to clear it out
1130
+ elm.textContent = '';
1131
+ }
1132
+ // add the new vnode children
1133
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1134
+ }
1135
+ else if (oldChildren !== null) {
1136
+ // no new child vnodes, but there are old child vnodes to remove
1137
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
1138
+ }
1139
+ }
1140
+ else if ((defaultHolder = elm['s-cr'])) {
1141
+ // this element has slotted content
1142
+ defaultHolder.parentNode.textContent = text;
1143
+ }
1144
+ else if (oldVNode.$text$ !== text) {
1145
+ // update the text content for the text only vnode
1146
+ // and also only if the text is different than before
1147
+ elm.data = text;
1148
+ }
1149
+ };
1150
+ const updateFallbackSlotVisibility = (elm) => {
1151
+ // tslint:disable-next-line: prefer-const
1152
+ const childNodes = elm.childNodes;
1153
+ let childNode;
1154
+ let i;
1155
+ let ilen;
1156
+ let j;
1157
+ let slotNameAttr;
1158
+ let nodeType;
1159
+ for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1160
+ childNode = childNodes[i];
1161
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1162
+ if (childNode['s-sr']) {
1163
+ // this is a slot fallback node
1164
+ // get the slot name for this slot reference node
1165
+ slotNameAttr = childNode['s-sn'];
1166
+ // by default always show a fallback slot node
1167
+ // then hide it if there are other slots in the light dom
1168
+ childNode.hidden = false;
1169
+ for (j = 0; j < ilen; j++) {
1170
+ nodeType = childNodes[j].nodeType;
1171
+ if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1172
+ // this sibling node is from a different component OR is a named fallback slot node
1173
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1174
+ childNode.hidden = true;
1175
+ break;
1176
+ }
1177
+ }
1178
+ else {
1179
+ // this is a default fallback slot node
1180
+ // any element or text node (with content)
1181
+ // should hide the default fallback slot node
1182
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1183
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1184
+ childNode.hidden = true;
1185
+ break;
1186
+ }
1187
+ }
1188
+ }
1189
+ }
1190
+ // keep drilling down
1191
+ updateFallbackSlotVisibility(childNode);
1192
+ }
1193
+ }
1194
+ };
1195
+ const relocateNodes = [];
1196
+ const relocateSlotContent = (elm) => {
1197
+ // tslint:disable-next-line: prefer-const
1198
+ let childNode;
1199
+ let node;
1200
+ let hostContentNodes;
1201
+ let slotNameAttr;
1202
+ let relocateNodeData;
1203
+ let j;
1204
+ let i = 0;
1205
+ const childNodes = elm.childNodes;
1206
+ const ilen = childNodes.length;
1207
+ for (; i < ilen; i++) {
1208
+ childNode = childNodes[i];
1209
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1210
+ // first got the content reference comment node
1211
+ // then we got it's parent, which is where all the host content is in now
1212
+ hostContentNodes = node.parentNode.childNodes;
1213
+ slotNameAttr = childNode['s-sn'];
1214
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
1215
+ node = hostContentNodes[j];
1216
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1217
+ // let's do some relocating to its new home
1218
+ // but never relocate a content reference node
1219
+ // that is suppose to always represent the original content location
1220
+ if (isNodeLocatedInSlot(node, slotNameAttr)) {
1221
+ // it's possible we've already decided to relocate this node
1222
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1223
+ // made some changes to slots
1224
+ // let's make sure we also double check
1225
+ // fallbacks are correctly hidden or shown
1226
+ checkSlotFallbackVisibility = true;
1227
+ node['s-sn'] = node['s-sn'] || slotNameAttr;
1228
+ if (relocateNodeData) {
1229
+ // previously we never found a slot home for this node
1230
+ // but turns out we did, so let's remember it now
1231
+ relocateNodeData.$slotRefNode$ = childNode;
1232
+ }
1233
+ else {
1234
+ // add to our list of nodes to relocate
1235
+ relocateNodes.push({
1236
+ $slotRefNode$: childNode,
1237
+ $nodeToRelocate$: node,
1238
+ });
1239
+ }
1240
+ if (node['s-sr']) {
1241
+ relocateNodes.map((relocateNode) => {
1242
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1243
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1244
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1245
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1246
+ }
1247
+ }
1248
+ });
1249
+ }
1250
+ }
1251
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1252
+ // so far this element does not have a slot home, not setting slotRefNode on purpose
1253
+ // if we never find a home for this element then we'll need to hide it
1254
+ relocateNodes.push({
1255
+ $nodeToRelocate$: node,
1256
+ });
1257
+ }
1258
+ }
1259
+ }
1260
+ }
1261
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1262
+ relocateSlotContent(childNode);
1263
+ }
1264
+ }
1265
+ };
1266
+ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1267
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1268
+ if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1269
+ return true;
1270
+ }
1271
+ if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1272
+ return true;
1273
+ }
1274
+ return false;
1275
+ }
1276
+ if (nodeToRelocate['s-sn'] === slotNameAttr) {
1277
+ return true;
1278
+ }
1279
+ return slotNameAttr === '';
1280
+ };
1281
+ const callNodeRefs = (vNode) => {
1282
+ {
1283
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1284
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
1285
+ }
1286
+ };
1287
+ const renderVdom = (hostRef, renderFnResults) => {
1288
+ const hostElm = hostRef.$hostElement$;
1289
+ const cmpMeta = hostRef.$cmpMeta$;
1290
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1291
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1292
+ hostTagName = hostElm.tagName;
1293
+ if (cmpMeta.$attrsToReflect$) {
1294
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1295
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1296
+ }
1297
+ rootVnode.$tag$ = null;
1298
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1299
+ hostRef.$vnode$ = rootVnode;
1300
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
1301
+ {
1302
+ contentRef = hostElm['s-cr'];
1303
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1304
+ // always reset
1305
+ checkSlotFallbackVisibility = false;
1306
+ }
1307
+ // synchronous patch
1308
+ patch(oldVNode, rootVnode);
1309
+ {
1310
+ // while we're moving nodes around existing nodes, temporarily disable
1311
+ // the disconnectCallback from working
1312
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1313
+ if (checkSlotRelocate) {
1314
+ relocateSlotContent(rootVnode.$elm$);
1315
+ let relocateData;
1316
+ let nodeToRelocate;
1317
+ let orgLocationNode;
1318
+ let parentNodeRef;
1319
+ let insertBeforeNode;
1320
+ let refNode;
1321
+ let i = 0;
1322
+ for (; i < relocateNodes.length; i++) {
1323
+ relocateData = relocateNodes[i];
1324
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1325
+ if (!nodeToRelocate['s-ol']) {
1326
+ // add a reference node marking this node's original location
1327
+ // keep a reference to this node for later lookups
1328
+ orgLocationNode =
1329
+ doc.createTextNode('');
1330
+ orgLocationNode['s-nr'] = nodeToRelocate;
1331
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1332
+ }
1333
+ }
1334
+ for (i = 0; i < relocateNodes.length; i++) {
1335
+ relocateData = relocateNodes[i];
1336
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1337
+ if (relocateData.$slotRefNode$) {
1338
+ // by default we're just going to insert it directly
1339
+ // after the slot reference node
1340
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
1341
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1342
+ orgLocationNode = nodeToRelocate['s-ol'];
1343
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1344
+ refNode = orgLocationNode['s-nr'];
1345
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1346
+ refNode = refNode.nextSibling;
1347
+ if (!refNode || !refNode['s-nr']) {
1348
+ insertBeforeNode = refNode;
1349
+ break;
1350
+ }
1351
+ }
1352
+ }
1353
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1354
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1355
+ // we've checked that it's worth while to relocate
1356
+ // since that the node to relocate
1357
+ // has a different next sibling or parent relocated
1358
+ if (nodeToRelocate !== insertBeforeNode) {
1359
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1360
+ // probably a component in the index.html that doesn't have it's hostname set
1361
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1362
+ }
1363
+ // add it back to the dom but in its new home
1364
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1365
+ }
1366
+ }
1367
+ }
1368
+ else {
1369
+ // this node doesn't have a slot home to go to, so let's hide it
1370
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1371
+ nodeToRelocate.hidden = true;
1372
+ }
1373
+ }
1374
+ }
1375
+ }
1376
+ if (checkSlotFallbackVisibility) {
1377
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1378
+ }
1379
+ // done moving nodes around
1380
+ // allow the disconnect callback to work again
1381
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1382
+ // always reset
1383
+ relocateNodes.length = 0;
1384
+ }
1385
+ };
1386
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1387
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1388
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1389
+ }
1390
+ };
1391
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1392
+ {
1393
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1394
+ }
1395
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1396
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1397
+ return;
1398
+ }
1399
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1400
+ // there is no ancestor component or the ancestor component
1401
+ // has already fired off its lifecycle update then
1402
+ // fire off the initial update
1403
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1404
+ return writeTask(dispatch) ;
1405
+ };
1406
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1407
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1408
+ const instance = hostRef.$lazyInstance$ ;
1409
+ let promise;
1410
+ if (isInitialLoad) {
1411
+ {
1412
+ promise = safeCall(instance, 'componentWillLoad');
1413
+ }
1414
+ }
1415
+ else {
1416
+ {
1417
+ promise = safeCall(instance, 'componentWillUpdate');
1418
+ }
1419
+ }
1420
+ {
1421
+ promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1422
+ }
1423
+ endSchedule();
1424
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1425
+ };
1426
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1427
+ // updateComponent
1428
+ const elm = hostRef.$hostElement$;
1429
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1430
+ const rc = elm['s-rc'];
1431
+ if (isInitialLoad) {
1432
+ // DOM WRITE!
1433
+ attachStyles(hostRef);
1434
+ }
1435
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1436
+ {
1437
+ callRender(hostRef, instance);
1438
+ }
1439
+ if (rc) {
1440
+ // ok, so turns out there are some child host elements
1441
+ // waiting on this parent element to load
1442
+ // let's fire off all update callbacks waiting
1443
+ rc.map((cb) => cb());
1444
+ elm['s-rc'] = undefined;
1445
+ }
1446
+ endRender();
1447
+ endUpdate();
1448
+ {
1449
+ const childrenPromises = elm['s-p'];
1450
+ const postUpdate = () => postUpdateComponent(hostRef);
1451
+ if (childrenPromises.length === 0) {
1452
+ postUpdate();
1453
+ }
1454
+ else {
1455
+ Promise.all(childrenPromises).then(postUpdate);
1456
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1457
+ childrenPromises.length = 0;
1458
+ }
1459
+ }
1460
+ };
1461
+ const callRender = (hostRef, instance, elm) => {
1462
+ try {
1463
+ instance = instance.render() ;
1464
+ {
1465
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1466
+ }
1467
+ {
1468
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1469
+ }
1470
+ {
1471
+ {
1472
+ // looks like we've got child nodes to render into this host element
1473
+ // or we need to update the css class/attrs on the host element
1474
+ // DOM WRITE!
1475
+ {
1476
+ renderVdom(hostRef, instance);
1477
+ }
1478
+ }
1479
+ }
1480
+ }
1481
+ catch (e) {
1482
+ consoleError(e, hostRef.$hostElement$);
1483
+ }
1484
+ return null;
1485
+ };
1486
+ const postUpdateComponent = (hostRef) => {
1487
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1488
+ const elm = hostRef.$hostElement$;
1489
+ const endPostUpdate = createTime('postUpdate', tagName);
1490
+ const instance = hostRef.$lazyInstance$ ;
1491
+ const ancestorComponent = hostRef.$ancestorComponent$;
1492
+ {
1493
+ safeCall(instance, 'componentDidRender');
1494
+ }
1495
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1496
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1497
+ {
1498
+ // DOM WRITE!
1499
+ addHydratedFlag(elm);
1500
+ }
1501
+ {
1502
+ safeCall(instance, 'componentDidLoad');
1503
+ }
1504
+ endPostUpdate();
1505
+ {
1506
+ hostRef.$onReadyResolve$(elm);
1507
+ if (!ancestorComponent) {
1508
+ appDidLoad();
1509
+ }
1510
+ }
1511
+ }
1512
+ else {
1513
+ endPostUpdate();
1514
+ }
1515
+ {
1516
+ hostRef.$onInstanceResolve$(elm);
1517
+ }
1518
+ // load events fire from bottom to top
1519
+ // the deepest elements load first then bubbles up
1520
+ {
1521
+ if (hostRef.$onRenderResolve$) {
1522
+ hostRef.$onRenderResolve$();
1523
+ hostRef.$onRenderResolve$ = undefined;
1524
+ }
1525
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1526
+ nextTick(() => scheduleUpdate(hostRef, false));
1527
+ }
1528
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1529
+ }
1530
+ // ( •_•)
1531
+ // ( •_•)>⌐■-■
1532
+ // (⌐■_■)
1533
+ };
1534
+ const appDidLoad = (who) => {
1535
+ // on appload
1536
+ // we have finish the first big initial render
1537
+ {
1538
+ addHydratedFlag(doc.documentElement);
1539
+ }
1540
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1541
+ };
1542
+ const safeCall = (instance, method, arg) => {
1543
+ if (instance && instance[method]) {
1544
+ try {
1545
+ return instance[method](arg);
1546
+ }
1547
+ catch (e) {
1548
+ consoleError(e);
1549
+ }
1550
+ }
1551
+ return undefined;
1552
+ };
1553
+ const then = (promise, thenFn) => {
1554
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1555
+ };
1556
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1557
+ ;
1558
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1559
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1560
+ // check our new property value against our internal value
1561
+ const hostRef = getHostRef(ref);
1562
+ const elm = hostRef.$hostElement$ ;
1563
+ const oldVal = hostRef.$instanceValues$.get(propName);
1564
+ const flags = hostRef.$flags$;
1565
+ const instance = hostRef.$lazyInstance$ ;
1566
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1567
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1568
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1569
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1570
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1571
+ // gadzooks! the property's value has changed!!
1572
+ // set our new value!
1573
+ hostRef.$instanceValues$.set(propName, newVal);
1574
+ if (instance) {
1575
+ // get an array of method names of watch functions to call
1576
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1577
+ const watchMethods = cmpMeta.$watchers$[propName];
1578
+ if (watchMethods) {
1579
+ // this instance is watching for when this property changed
1580
+ watchMethods.map((watchMethodName) => {
1581
+ try {
1582
+ // fire off each of the watch methods that are watching this property
1583
+ instance[watchMethodName](newVal, oldVal, propName);
1584
+ }
1585
+ catch (e) {
1586
+ consoleError(e, elm);
1587
+ }
1588
+ });
1589
+ }
1590
+ }
1591
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1592
+ // looks like this value actually changed, so we've got work to do!
1593
+ // but only if we've already rendered, otherwise just chill out
1594
+ // queue that we need to do an update, but don't worry about queuing
1595
+ // up millions cuz this function ensures it only runs once
1596
+ scheduleUpdate(hostRef, false);
1597
+ }
1598
+ }
1599
+ }
1600
+ };
1601
+ /**
1602
+ * Attach a series of runtime constructs to a compiled Stencil component
1603
+ * constructor, including getters and setters for the `@Prop` and `@State`
1604
+ * decorators, callbacks for when attributes change, and so on.
1605
+ *
1606
+ * @param Cstr the constructor for a component that we need to process
1607
+ * @param cmpMeta metadata collected previously about the component
1608
+ * @param flags a number used to store a series of bit flags
1609
+ * @returns a reference to the same constructor passed in (but now mutated)
1610
+ */
1611
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1612
+ if (cmpMeta.$members$) {
1613
+ if (Cstr.watchers) {
1614
+ cmpMeta.$watchers$ = Cstr.watchers;
1615
+ }
1616
+ // It's better to have a const than two Object.entries()
1617
+ const members = Object.entries(cmpMeta.$members$);
1618
+ const prototype = Cstr.prototype;
1619
+ members.map(([memberName, [memberFlags]]) => {
1620
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1621
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1622
+ // proxyComponent - prop
1623
+ Object.defineProperty(prototype, memberName, {
1624
+ get() {
1625
+ // proxyComponent, get value
1626
+ return getValue(this, memberName);
1627
+ },
1628
+ set(newValue) {
1629
+ // proxyComponent, set value
1630
+ setValue(this, memberName, newValue, cmpMeta);
1631
+ },
1632
+ configurable: true,
1633
+ enumerable: true,
1634
+ });
1635
+ }
1636
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1637
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1638
+ // proxyComponent - method
1639
+ Object.defineProperty(prototype, memberName, {
1640
+ value(...args) {
1641
+ const ref = getHostRef(this);
1642
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1643
+ },
1644
+ });
1645
+ }
1646
+ });
1647
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1648
+ const attrNameToPropName = new Map();
1649
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1650
+ plt.jmp(() => {
1651
+ const propName = attrNameToPropName.get(attrName);
1652
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1653
+ // in the case where an attribute was set inline.
1654
+ // ```html
1655
+ // <my-component some-attribute="some-value"></my-component>
1656
+ // ```
1657
+ //
1658
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1659
+ // programmatically changes it before it has been upgraded as shown below:
1660
+ //
1661
+ // ```html
1662
+ // <!-- this component has _not_ been upgraded yet -->
1663
+ // <my-component id="test" some-attribute="some-value"></my-component>
1664
+ // <script>
1665
+ // // grab non-upgraded component
1666
+ // el = document.querySelector("#test");
1667
+ // el.someAttribute = "another-value";
1668
+ // // upgrade component
1669
+ // customElements.define('my-component', MyComponent);
1670
+ // </script>
1671
+ // ```
1672
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1673
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1674
+ // to the value that was set inline i.e. "some-value" from above example. When
1675
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1676
+ //
1677
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1678
+ // by connectedCallback as this attributeChangedCallback will not fire.
1679
+ //
1680
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1681
+ //
1682
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1683
+ // properties here given that this goes against best practices outlined here
1684
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1685
+ if (this.hasOwnProperty(propName)) {
1686
+ newValue = this[propName];
1687
+ delete this[propName];
1688
+ }
1689
+ else if (prototype.hasOwnProperty(propName) &&
1690
+ typeof this[propName] === 'number' &&
1691
+ this[propName] == newValue) {
1692
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1693
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1694
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1695
+ return;
1696
+ }
1697
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1698
+ });
1699
+ };
1700
+ // create an array of attributes to observe
1701
+ // and also create a map of html attribute name to js property name
1702
+ Cstr.observedAttributes = members
1703
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1704
+ .map(([propName, m]) => {
1705
+ const attrName = m[1] || propName;
1706
+ attrNameToPropName.set(attrName, propName);
1707
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1708
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1709
+ }
1710
+ return attrName;
1711
+ });
1712
+ }
1713
+ }
1714
+ return Cstr;
1715
+ };
1716
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1717
+ // initializeComponent
1718
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1719
+ {
1720
+ // we haven't initialized this element yet
1721
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1722
+ // lazy loaded components
1723
+ // request the component's implementation to be
1724
+ // wired up with the host element
1725
+ Cstr = loadModule(cmpMeta);
1726
+ if (Cstr.then) {
1727
+ // Await creates a micro-task avoid if possible
1728
+ const endLoad = uniqueTime();
1729
+ Cstr = await Cstr;
1730
+ endLoad();
1731
+ }
1732
+ if (!Cstr.isProxied) {
1733
+ // we've never proxied this Constructor before
1734
+ // let's add the getters/setters to its prototype before
1735
+ // the first time we create an instance of the implementation
1736
+ {
1737
+ cmpMeta.$watchers$ = Cstr.watchers;
1738
+ }
1739
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1740
+ Cstr.isProxied = true;
1741
+ }
1742
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1743
+ // ok, time to construct the instance
1744
+ // but let's keep track of when we start and stop
1745
+ // so that the getters/setters don't incorrectly step on data
1746
+ {
1747
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1748
+ }
1749
+ // construct the lazy-loaded component implementation
1750
+ // passing the hostRef is very important during
1751
+ // construction in order to directly wire together the
1752
+ // host element and the lazy-loaded instance
1753
+ try {
1754
+ new Cstr(hostRef);
1755
+ }
1756
+ catch (e) {
1757
+ consoleError(e);
1758
+ }
1759
+ {
1760
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1761
+ }
1762
+ {
1763
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1764
+ }
1765
+ endNewInstance();
1766
+ fireConnectedCallback(hostRef.$lazyInstance$);
1767
+ }
1768
+ if (Cstr.style) {
1769
+ // this component has styles but we haven't registered them yet
1770
+ let style = Cstr.style;
1771
+ const scopeId = getScopeId(cmpMeta);
1772
+ if (!styles.has(scopeId)) {
1773
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1774
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1775
+ endRegisterStyles();
1776
+ }
1777
+ }
1778
+ }
1779
+ // we've successfully created a lazy instance
1780
+ const ancestorComponent = hostRef.$ancestorComponent$;
1781
+ const schedule = () => scheduleUpdate(hostRef, true);
1782
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1783
+ // this is the initial load and this component it has an ancestor component
1784
+ // but the ancestor component has NOT fired its will update lifecycle yet
1785
+ // so let's just cool our jets and wait for the ancestor to continue first
1786
+ // this will get fired off when the ancestor component
1787
+ // finally gets around to rendering its lazy self
1788
+ // fire off the initial update
1789
+ ancestorComponent['s-rc'].push(schedule);
1790
+ }
1791
+ else {
1792
+ schedule();
1793
+ }
1794
+ };
1795
+ const fireConnectedCallback = (instance) => {
1796
+ {
1797
+ safeCall(instance, 'connectedCallback');
1798
+ }
1799
+ };
1800
+ const connectedCallback = (elm) => {
1801
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1802
+ const hostRef = getHostRef(elm);
1803
+ const cmpMeta = hostRef.$cmpMeta$;
1804
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1805
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1806
+ // first time this component has connected
1807
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1808
+ let hostId;
1809
+ {
1810
+ hostId = elm.getAttribute(HYDRATE_ID);
1811
+ if (hostId) {
1812
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
1813
+ }
1814
+ }
1815
+ if (!hostId) {
1816
+ // initUpdate
1817
+ // if the slot polyfill is required we'll need to put some nodes
1818
+ // in here to act as original content anchors as we move nodes around
1819
+ // host element has been connected to the DOM
1820
+ if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1821
+ setContentReference(elm);
1822
+ }
1823
+ }
1824
+ {
1825
+ // find the first ancestor component (if there is one) and register
1826
+ // this component as one of the actively loading child components for its ancestor
1827
+ let ancestorComponent = elm;
1828
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1829
+ // climb up the ancestors looking for the first
1830
+ // component that hasn't finished its lifecycle update yet
1831
+ if ((ancestorComponent.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1832
+ ancestorComponent.hasAttribute('s-id') &&
1833
+ ancestorComponent['s-p']) ||
1834
+ ancestorComponent['s-p']) {
1835
+ // we found this components first ancestor component
1836
+ // keep a reference to this component's ancestor component
1837
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1838
+ break;
1839
+ }
1840
+ }
1841
+ }
1842
+ // Lazy properties
1843
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1844
+ if (cmpMeta.$members$) {
1845
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1846
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1847
+ const value = elm[memberName];
1848
+ delete elm[memberName];
1849
+ elm[memberName] = value;
1850
+ }
1851
+ });
1852
+ }
1853
+ {
1854
+ initializeComponent(elm, hostRef, cmpMeta);
1855
+ }
1856
+ }
1857
+ else {
1858
+ // fire off connectedCallback() on component instance
1859
+ fireConnectedCallback(hostRef.$lazyInstance$);
1860
+ }
1861
+ endConnected();
1862
+ }
1863
+ };
1864
+ const setContentReference = (elm) => {
1865
+ // only required when we're NOT using native shadow dom (slot)
1866
+ // or this browser doesn't support native shadow dom
1867
+ // and this host element was NOT created with SSR
1868
+ // let's pick out the inner content for slot projection
1869
+ // create a node to represent where the original
1870
+ // content was first placed, which is useful later on
1871
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1872
+ contentRefElm['s-cn'] = true;
1873
+ elm.insertBefore(contentRefElm, elm.firstChild);
1874
+ };
1875
+ const disconnectedCallback = (elm) => {
1876
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1877
+ const hostRef = getHostRef(elm);
1878
+ const instance = hostRef.$lazyInstance$ ;
1879
+ {
1880
+ safeCall(instance, 'disconnectedCallback');
1881
+ }
1882
+ }
1883
+ };
1884
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1885
+ const endBootstrap = createTime();
1886
+ const cmpTags = [];
1887
+ const exclude = options.exclude || [];
1888
+ const customElements = win.customElements;
1889
+ const head = doc.head;
1890
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1891
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1892
+ const deferredConnectedCallbacks = [];
1893
+ let appLoadFallback;
1894
+ let isBootstrapping = true;
1895
+ Object.assign(plt, options);
1896
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1897
+ {
1898
+ // If the app is already hydrated there is not point to disable the
1899
+ // async queue. This will improve the first input delay
1900
+ plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
1901
+ }
1902
+ lazyBundles.map((lazyBundle) => {
1903
+ lazyBundle[1].map((compactMeta) => {
1904
+ const cmpMeta = {
1905
+ $flags$: compactMeta[0],
1906
+ $tagName$: compactMeta[1],
1907
+ $members$: compactMeta[2],
1908
+ $listeners$: compactMeta[3],
1909
+ };
1910
+ {
1911
+ cmpMeta.$members$ = compactMeta[2];
1912
+ }
1913
+ {
1914
+ cmpMeta.$attrsToReflect$ = [];
1915
+ }
1916
+ {
1917
+ cmpMeta.$watchers$ = {};
1918
+ }
1919
+ const tagName = cmpMeta.$tagName$;
1920
+ const HostElement = class extends HTMLElement {
1921
+ // StencilLazyHost
1922
+ constructor(self) {
1923
+ // @ts-ignore
1924
+ super(self);
1925
+ self = this;
1926
+ registerHost(self, cmpMeta);
1927
+ }
1928
+ connectedCallback() {
1929
+ if (appLoadFallback) {
1930
+ clearTimeout(appLoadFallback);
1931
+ appLoadFallback = null;
1932
+ }
1933
+ if (isBootstrapping) {
1934
+ // connectedCallback will be processed once all components have been registered
1935
+ deferredConnectedCallbacks.push(this);
1936
+ }
1937
+ else {
1938
+ plt.jmp(() => connectedCallback(this));
1939
+ }
1940
+ }
1941
+ disconnectedCallback() {
1942
+ plt.jmp(() => disconnectedCallback(this));
1943
+ }
1944
+ componentOnReady() {
1945
+ return getHostRef(this).$onReadyPromise$;
1946
+ }
1947
+ };
1948
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1949
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1950
+ cmpTags.push(tagName);
1951
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1952
+ }
1953
+ });
1954
+ });
1955
+ {
1956
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1957
+ visibilityStyle.setAttribute('data-styles', '');
1958
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1959
+ }
1960
+ // Process deferred connectedCallbacks now all components have been registered
1961
+ isBootstrapping = false;
1962
+ if (deferredConnectedCallbacks.length) {
1963
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1964
+ }
1965
+ else {
1966
+ {
1967
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1968
+ }
1969
+ }
1970
+ // Fallback appLoad event
1971
+ endBootstrap();
1972
+ };
1973
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1974
+ const getHostRef = (ref) => hostRefs.get(ref);
1975
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1976
+ const registerHost = (elm, cmpMeta) => {
1977
+ const hostRef = {
1978
+ $flags$: 0,
1979
+ $hostElement$: elm,
1980
+ $cmpMeta$: cmpMeta,
1981
+ $instanceValues$: new Map(),
1982
+ };
1983
+ {
1984
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1985
+ }
1986
+ {
1987
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1988
+ elm['s-p'] = [];
1989
+ elm['s-rc'] = [];
1990
+ }
1991
+ return hostRefs.set(elm, hostRef);
1992
+ };
1993
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1994
+ const consoleError = (e, el) => (0, console.error)(e, el);
1995
+ const cmpModules = /*@__PURE__*/ new Map();
1996
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1997
+ // loadModuleImport
1998
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1999
+ const bundleId = cmpMeta.$lazyBundleId$;
2000
+ const module = cmpModules.get(bundleId) ;
2001
+ if (module) {
2002
+ return module[exportName];
2003
+ }
2004
+
2005
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2006
+ const processMod = importedModule => {
2007
+ cmpModules.set(bundleId, importedModule);
2008
+ return importedModule[exportName];
2009
+ }
2010
+ switch(bundleId) {
2011
+
2012
+ case 'gov-app.cjs':
2013
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2014
+ /* webpackMode: "lazy" */
2015
+ './gov-app.cjs.entry.js')); }).then(processMod, consoleError);
2016
+ case 'gov-accordion.cjs':
2017
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2018
+ /* webpackMode: "lazy" */
2019
+ './gov-accordion.cjs.entry.js')); }).then(processMod, consoleError);
2020
+ case 'gov-accordion-item.cjs':
2021
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2022
+ /* webpackMode: "lazy" */
2023
+ './gov-accordion-item.cjs.entry.js')); }).then(processMod, consoleError);
2024
+ case 'gov-alert.cjs':
2025
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2026
+ /* webpackMode: "lazy" */
2027
+ './gov-alert.cjs.entry.js')); }).then(processMod, consoleError);
2028
+ case 'gov-breadcrumbs.cjs':
2029
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2030
+ /* webpackMode: "lazy" */
2031
+ './gov-breadcrumbs.cjs.entry.js')); }).then(processMod, consoleError);
2032
+ case 'gov-card.cjs':
2033
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2034
+ /* webpackMode: "lazy" */
2035
+ './gov-card.cjs.entry.js')); }).then(processMod, consoleError);
2036
+ case 'gov-container.cjs':
2037
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2038
+ /* webpackMode: "lazy" */
2039
+ './gov-container.cjs.entry.js')); }).then(processMod, consoleError);
2040
+ case 'gov-cookiebar.cjs':
2041
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2042
+ /* webpackMode: "lazy" */
2043
+ './gov-cookiebar.cjs.entry.js')); }).then(processMod, consoleError);
2044
+ case 'gov-empty.cjs':
2045
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2046
+ /* webpackMode: "lazy" */
2047
+ './gov-empty.cjs.entry.js')); }).then(processMod, consoleError);
2048
+ case 'gov-error-code.cjs':
2049
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2050
+ /* webpackMode: "lazy" */
2051
+ './gov-error-code.cjs.entry.js')); }).then(processMod, consoleError);
2052
+ case 'gov-form-checkbox.cjs':
2053
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2054
+ /* webpackMode: "lazy" */
2055
+ './gov-form-checkbox.cjs.entry.js')); }).then(processMod, consoleError);
2056
+ case 'gov-form-control.cjs':
2057
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2058
+ /* webpackMode: "lazy" */
2059
+ './gov-form-control.cjs.entry.js')); }).then(processMod, consoleError);
2060
+ case 'gov-form-file.cjs':
2061
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2062
+ /* webpackMode: "lazy" */
2063
+ './gov-form-file.cjs.entry.js')); }).then(processMod, consoleError);
2064
+ case 'gov-form-group.cjs':
2065
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2066
+ /* webpackMode: "lazy" */
2067
+ './gov-form-group.cjs.entry.js')); }).then(processMod, consoleError);
2068
+ case 'gov-form-label.cjs':
2069
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2070
+ /* webpackMode: "lazy" */
2071
+ './gov-form-label.cjs.entry.js')); }).then(processMod, consoleError);
2072
+ case 'gov-form-multi-select.cjs':
2073
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2074
+ /* webpackMode: "lazy" */
2075
+ './gov-form-multi-select.cjs.entry.js')); }).then(processMod, consoleError);
2076
+ case 'gov-form-password-power.cjs':
2077
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2078
+ /* webpackMode: "lazy" */
2079
+ './gov-form-password-power.cjs.entry.js')); }).then(processMod, consoleError);
2080
+ case 'gov-form-radio.cjs':
2081
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2082
+ /* webpackMode: "lazy" */
2083
+ './gov-form-radio.cjs.entry.js')); }).then(processMod, consoleError);
2084
+ case 'gov-form-search.cjs':
2085
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2086
+ /* webpackMode: "lazy" */
2087
+ './gov-form-search.cjs.entry.js')); }).then(processMod, consoleError);
2088
+ case 'gov-form-switch.cjs':
2089
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2090
+ /* webpackMode: "lazy" */
2091
+ './gov-form-switch.cjs.entry.js')); }).then(processMod, consoleError);
2092
+ case 'gov-grid.cjs':
2093
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2094
+ /* webpackMode: "lazy" */
2095
+ './gov-grid.cjs.entry.js')); }).then(processMod, consoleError);
2096
+ case 'gov-grid-item.cjs':
2097
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2098
+ /* webpackMode: "lazy" */
2099
+ './gov-grid-item.cjs.entry.js')); }).then(processMod, consoleError);
2100
+ case 'gov-layout.cjs':
2101
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2102
+ /* webpackMode: "lazy" */
2103
+ './gov-layout.cjs.entry.js')); }).then(processMod, consoleError);
2104
+ case 'gov-layout-column.cjs':
2105
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2106
+ /* webpackMode: "lazy" */
2107
+ './gov-layout-column.cjs.entry.js')); }).then(processMod, consoleError);
2108
+ case 'gov-loading.cjs':
2109
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2110
+ /* webpackMode: "lazy" */
2111
+ './gov-loading.cjs.entry.js')); }).then(processMod, consoleError);
2112
+ case 'gov-message.cjs':
2113
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2114
+ /* webpackMode: "lazy" */
2115
+ './gov-message.cjs.entry.js')); }).then(processMod, consoleError);
2116
+ case 'gov-modal.cjs':
2117
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2118
+ /* webpackMode: "lazy" */
2119
+ './gov-modal.cjs.entry.js')); }).then(processMod, consoleError);
2120
+ case 'gov-nav.cjs':
2121
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2122
+ /* webpackMode: "lazy" */
2123
+ './gov-nav.cjs.entry.js')); }).then(processMod, consoleError);
2124
+ case 'gov-nav-item.cjs':
2125
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2126
+ /* webpackMode: "lazy" */
2127
+ './gov-nav-item.cjs.entry.js')); }).then(processMod, consoleError);
2128
+ case 'gov-pagination.cjs':
2129
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2130
+ /* webpackMode: "lazy" */
2131
+ './gov-pagination.cjs.entry.js')); }).then(processMod, consoleError);
2132
+ case 'gov-prompt.cjs':
2133
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2134
+ /* webpackMode: "lazy" */
2135
+ './gov-prompt.cjs.entry.js')); }).then(processMod, consoleError);
2136
+ case 'gov-side-nav.cjs':
2137
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2138
+ /* webpackMode: "lazy" */
2139
+ './gov-side-nav.cjs.entry.js')); }).then(processMod, consoleError);
2140
+ case 'gov-side-nav-item.cjs':
2141
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2142
+ /* webpackMode: "lazy" */
2143
+ './gov-side-nav-item.cjs.entry.js')); }).then(processMod, consoleError);
2144
+ case 'gov-skeleton.cjs':
2145
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2146
+ /* webpackMode: "lazy" */
2147
+ './gov-skeleton.cjs.entry.js')); }).then(processMod, consoleError);
2148
+ case 'gov-spacer.cjs':
2149
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2150
+ /* webpackMode: "lazy" */
2151
+ './gov-spacer.cjs.entry.js')); }).then(processMod, consoleError);
2152
+ case 'gov-statsbar.cjs':
2153
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2154
+ /* webpackMode: "lazy" */
2155
+ './gov-statsbar.cjs.entry.js')); }).then(processMod, consoleError);
2156
+ case 'gov-statsbar-item.cjs':
2157
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2158
+ /* webpackMode: "lazy" */
2159
+ './gov-statsbar-item.cjs.entry.js')); }).then(processMod, consoleError);
2160
+ case 'gov-stepper.cjs':
2161
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2162
+ /* webpackMode: "lazy" */
2163
+ './gov-stepper.cjs.entry.js')); }).then(processMod, consoleError);
2164
+ case 'gov-stepper-item.cjs':
2165
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2166
+ /* webpackMode: "lazy" */
2167
+ './gov-stepper-item.cjs.entry.js')); }).then(processMod, consoleError);
2168
+ case 'gov-tabs.cjs':
2169
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2170
+ /* webpackMode: "lazy" */
2171
+ './gov-tabs.cjs.entry.js')); }).then(processMod, consoleError);
2172
+ case 'gov-tabs-item.cjs':
2173
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2174
+ /* webpackMode: "lazy" */
2175
+ './gov-tabs-item.cjs.entry.js')); }).then(processMod, consoleError);
2176
+ case 'gov-tile.cjs':
2177
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2178
+ /* webpackMode: "lazy" */
2179
+ './gov-tile.cjs.entry.js')); }).then(processMod, consoleError);
2180
+ case 'gov-tiles.cjs':
2181
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2182
+ /* webpackMode: "lazy" */
2183
+ './gov-tiles.cjs.entry.js')); }).then(processMod, consoleError);
2184
+ case 'gov-toast.cjs':
2185
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2186
+ /* webpackMode: "lazy" */
2187
+ './gov-toast.cjs.entry.js')); }).then(processMod, consoleError);
2188
+ case 'gov-tooltip.cjs':
2189
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2190
+ /* webpackMode: "lazy" */
2191
+ './gov-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
2192
+ case 'gov-tooltip-content.cjs':
2193
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2194
+ /* webpackMode: "lazy" */
2195
+ './gov-tooltip-content.cjs.entry.js')); }).then(processMod, consoleError);
2196
+ case 'gov-wizzard.cjs':
2197
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2198
+ /* webpackMode: "lazy" */
2199
+ './gov-wizzard.cjs.entry.js')); }).then(processMod, consoleError);
2200
+ case 'gov-wizzard-item.cjs':
2201
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2202
+ /* webpackMode: "lazy" */
2203
+ './gov-wizzard-item.cjs.entry.js')); }).then(processMod, consoleError);
2204
+ case 'gov-attachments_3.cjs':
2205
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2206
+ /* webpackMode: "lazy" */
2207
+ './gov-attachments_3.cjs.entry.js')); }).then(processMod, consoleError);
2208
+ case 'gov-form-autocomplete.cjs':
2209
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2210
+ /* webpackMode: "lazy" */
2211
+ './gov-form-autocomplete.cjs.entry.js')); }).then(processMod, consoleError);
2212
+ case 'gov-badge.cjs':
2213
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2214
+ /* webpackMode: "lazy" */
2215
+ './gov-badge.cjs.entry.js')); }).then(processMod, consoleError);
2216
+ case 'gov-form-input.cjs':
2217
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2218
+ /* webpackMode: "lazy" */
2219
+ './gov-form-input.cjs.entry.js')); }).then(processMod, consoleError);
2220
+ case 'gov-form-select.cjs':
2221
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2222
+ /* webpackMode: "lazy" */
2223
+ './gov-form-select.cjs.entry.js')); }).then(processMod, consoleError);
2224
+ case 'gov-backdrop.cjs':
2225
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2226
+ /* webpackMode: "lazy" */
2227
+ './gov-backdrop.cjs.entry.js')); }).then(processMod, consoleError);
2228
+ case 'gov-button.cjs':
2229
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2230
+ /* webpackMode: "lazy" */
2231
+ './gov-button.cjs.entry.js')); }).then(processMod, consoleError);
2232
+ case 'gov-icon.cjs':
2233
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2234
+ /* webpackMode: "lazy" */
2235
+ './gov-icon.cjs.entry.js')); }).then(processMod, consoleError);
2236
+ }
2237
+ }
2238
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2239
+ /* @vite-ignore */
2240
+ /* webpackInclude: /\.entry\.js$/ */
2241
+ /* webpackExclude: /\.system\.entry\.js$/ */
2242
+ /* webpackMode: "lazy" */
2243
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
2244
+ {
2245
+ cmpModules.set(bundleId, importedModule);
2246
+ }
2247
+ return importedModule[exportName];
2248
+ }, consoleError);
2249
+ };
2250
+ const styles = /*@__PURE__*/ new Map();
2251
+ const win = typeof window !== 'undefined' ? window : {};
2252
+ const doc = win.document || { head: {} };
2253
+ const plt = {
2254
+ $flags$: 0,
2255
+ $resourcesUrl$: '',
2256
+ jmp: (h) => h(),
2257
+ raf: (h) => requestAnimationFrame(h),
2258
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2259
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2260
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2261
+ };
2262
+ const supportsShadow = true;
2263
+ const promiseResolve = (v) => Promise.resolve(v);
2264
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2265
+ try {
2266
+ new CSSStyleSheet();
2267
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2268
+ }
2269
+ catch (e) { }
2270
+ return false;
2271
+ })()
2272
+ ;
2273
+ const queueDomReads = [];
2274
+ const queueDomWrites = [];
2275
+ const queueTask = (queue, write) => (cb) => {
2276
+ queue.push(cb);
2277
+ if (!queuePending) {
2278
+ queuePending = true;
2279
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2280
+ nextTick(flush);
2281
+ }
2282
+ else {
2283
+ plt.raf(flush);
2284
+ }
2285
+ }
2286
+ };
2287
+ const consume = (queue) => {
2288
+ for (let i = 0; i < queue.length; i++) {
2289
+ try {
2290
+ queue[i](performance.now());
2291
+ }
2292
+ catch (e) {
2293
+ consoleError(e);
2294
+ }
2295
+ }
2296
+ queue.length = 0;
2297
+ };
2298
+ const flush = () => {
2299
+ // always force a bunch of medium callbacks to run, but still have
2300
+ // a throttle on how many can run in a certain time
2301
+ // DOM READS!!!
2302
+ consume(queueDomReads);
2303
+ // DOM WRITES!!!
2304
+ {
2305
+ consume(queueDomWrites);
2306
+ if ((queuePending = queueDomReads.length > 0)) {
2307
+ // still more to do yet, but we've run out of time
2308
+ // let's let this thing cool off and try again in the next tick
2309
+ plt.raf(flush);
2310
+ }
2311
+ }
2312
+ };
2313
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2314
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2315
+
2316
+ exports.Host = Host;
2317
+ exports.bootstrapLazy = bootstrapLazy;
2318
+ exports.createEvent = createEvent;
2319
+ exports.getAssetPath = getAssetPath;
2320
+ exports.getElement = getElement;
2321
+ exports.h = h;
2322
+ exports.promiseResolve = promiseResolve;
2323
+ exports.registerInstance = registerInstance;
2324
+
2325
+ //# sourceMappingURL=index-29ac07f6.js.map