@ukic/web-components 2.0.0-alpha.121

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