@siemens/ix 2.3.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (738) hide show
  1. package/components/application-header.js +17 -11
  2. package/components/application-header.js.map +1 -1
  3. package/components/avatar.js +1 -1
  4. package/components/avatar.js.map +1 -1
  5. package/components/card-content.js +1 -1
  6. package/components/card-title.js +1 -1
  7. package/components/date-picker.js +4 -4
  8. package/components/date-time-card.js +1 -1
  9. package/components/divider.js +1 -1
  10. package/components/dropdown-item.js +3 -3
  11. package/components/dropdown.js +13 -6
  12. package/components/dropdown.js.map +1 -1
  13. package/components/filter-chip.js +1 -1
  14. package/components/group-context-menu.js +1 -1
  15. package/components/group-item.js +4 -8
  16. package/components/group-item.js.map +1 -1
  17. package/components/icon-button.js +1 -1
  18. package/components/ix-application-sidebar.js +1 -1
  19. package/components/ix-application-switch-modal.js +1 -1
  20. package/components/ix-application-switch-modal.js.map +1 -1
  21. package/components/ix-application.js +3 -3
  22. package/components/ix-basic-navigation.js +18 -12
  23. package/components/ix-basic-navigation.js.map +1 -1
  24. package/components/ix-breadcrumb.js +2 -2
  25. package/components/ix-card-list.js +4 -4
  26. package/components/ix-category-filter.js +3 -3
  27. package/components/ix-chip.js +4 -4
  28. package/components/ix-content.js +3 -3
  29. package/components/ix-css-grid-item.js +1 -1
  30. package/components/ix-date-dropdown.js +3 -3
  31. package/components/ix-date-dropdown.js.map +1 -1
  32. package/components/ix-datetime-picker.js +1 -1
  33. package/components/ix-drawer.js +2 -2
  34. package/components/ix-dropdown-button.js +2 -2
  35. package/components/ix-dropdown-header.js +1 -1
  36. package/components/ix-dropdown-quick-actions.js +1 -1
  37. package/components/ix-empty-state.js +1 -1
  38. package/components/ix-empty-state.js.map +1 -1
  39. package/components/ix-event-list-item.js +4 -4
  40. package/components/ix-event-list-item.js.map +1 -1
  41. package/components/ix-event-list.js +2 -2
  42. package/components/ix-expanding-search.js +4 -4
  43. package/components/ix-flip-tile-content.js +1 -1
  44. package/components/ix-flip-tile.js +4 -4
  45. package/components/ix-form-field.js +1 -1
  46. package/components/ix-group.js +29 -24
  47. package/components/ix-group.js.map +1 -1
  48. package/components/ix-icon-toggle-button.js +1 -1
  49. package/components/ix-input-group.js +1 -1
  50. package/components/ix-key-value-list.js +1 -1
  51. package/components/ix-key-value.js +1 -1
  52. package/components/ix-key-value.js.map +1 -1
  53. package/components/ix-kpi.js +3 -3
  54. package/components/ix-link-button.js +3 -3
  55. package/components/ix-map-navigation.js +20 -14
  56. package/components/ix-map-navigation.js.map +1 -1
  57. package/components/ix-menu-about-item.js +1 -1
  58. package/components/ix-menu-about-news.js +4 -4
  59. package/components/ix-menu-about.js +1 -1
  60. package/components/ix-menu-avatar.js +2 -2
  61. package/components/ix-menu-category.js +5 -5
  62. package/components/ix-menu-settings-item.js +1 -1
  63. package/components/ix-menu.js +11 -11
  64. package/components/ix-menu.js.map +1 -1
  65. package/components/ix-message-bar.js +1 -1
  66. package/components/ix-modal-example.js +1 -1
  67. package/components/ix-modal-footer.js +1 -1
  68. package/components/ix-modal-loading.js +1 -1
  69. package/components/ix-modal.js +3 -3
  70. package/components/ix-pagination.js +3 -3
  71. package/components/ix-pagination.js.map +1 -1
  72. package/components/ix-pane-layout.js +1 -1
  73. package/components/ix-pane.js +6 -6
  74. package/components/ix-pill.js +4 -4
  75. package/components/ix-playground-internal.js +1 -1
  76. package/components/ix-push-card.js +1 -1
  77. package/components/ix-slider.js +20 -13
  78. package/components/ix-slider.js.map +1 -1
  79. package/components/ix-split-button-item.js +1 -1
  80. package/components/ix-split-button.js +1 -1
  81. package/components/ix-tile.js +4 -4
  82. package/components/ix-toast-container.js +2 -2
  83. package/components/ix-toggle-button.js +2 -2
  84. package/components/ix-toggle.js +2 -2
  85. package/components/ix-tree.js +1 -1
  86. package/components/ix-upload.js +3 -3
  87. package/components/ix-validation-tooltip.js +2 -2
  88. package/components/ix-workflow-step.js +3 -3
  89. package/components/ix-workflow-steps.js +1 -1
  90. package/components/layout-grid.js +2 -2
  91. package/components/map-navigation-overlay.js +2 -2
  92. package/components/menu-avatar-item.js +1 -1
  93. package/components/menu-expand-icon.js +1 -1
  94. package/components/menu-item.js +3 -3
  95. package/components/menu-item.js.map +1 -1
  96. package/components/menu-tabs-fc.js +1 -1
  97. package/components/modal-content.js +1 -1
  98. package/components/modal-header.js +1 -1
  99. package/components/row.js +1 -1
  100. package/components/select-item.js +1 -1
  101. package/components/select.js +33 -17
  102. package/components/select.js.map +1 -1
  103. package/components/service.js +2 -2
  104. package/components/service.js.map +1 -1
  105. package/components/spinner.js +1 -1
  106. package/components/tab-item.js +3 -3
  107. package/components/tab-item.js.map +1 -1
  108. package/components/tabs.js +77 -43
  109. package/components/tabs.js.map +1 -1
  110. package/components/time-picker.js +3 -3
  111. package/components/toast.js +2 -2
  112. package/components/tooltip.js +4 -4
  113. package/components/tooltip.js.map +1 -1
  114. package/components/tree-item.js +4 -4
  115. package/dist/cjs/{base-button-bf6a6f0c.js → base-button-3735b8c2.js} +2 -2
  116. package/dist/cjs/{base-button-bf6a6f0c.js.map → base-button-3735b8c2.js.map} +1 -1
  117. package/dist/cjs/{base-icon-button-e95a232c.js → base-icon-button-44c72bc8.js} +3 -3
  118. package/dist/cjs/{base-icon-button-e95a232c.js.map → base-icon-button-44c72bc8.js.map} +1 -1
  119. package/dist/cjs/index-529f21c1.js +2122 -0
  120. package/dist/cjs/index-529f21c1.js.map +1 -0
  121. package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
  122. package/dist/cjs/ix-application-header.cjs.entry.js +5 -5
  123. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  124. package/dist/cjs/ix-application-sidebar.cjs.entry.js +2 -2
  125. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
  126. package/dist/cjs/ix-application-switch-modal.cjs.entry.js.map +1 -1
  127. package/dist/cjs/ix-application.cjs.entry.js +5 -5
  128. package/dist/cjs/ix-avatar_2.cjs.entry.js +4 -4
  129. package/dist/cjs/ix-avatar_2.cjs.entry.js.map +1 -1
  130. package/dist/cjs/ix-basic-navigation.cjs.entry.js +4 -4
  131. package/dist/cjs/ix-blind.cjs.entry.js +1 -1
  132. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +2 -2
  133. package/dist/cjs/ix-breadcrumb.cjs.entry.js +3 -3
  134. package/dist/cjs/ix-button.cjs.entry.js +2 -2
  135. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +2 -2
  136. package/dist/cjs/ix-card-list.cjs.entry.js +5 -5
  137. package/dist/cjs/ix-card_2.cjs.entry.js +2 -2
  138. package/dist/cjs/ix-category-filter.cjs.entry.js +5 -5
  139. package/dist/cjs/ix-chip.cjs.entry.js +5 -5
  140. package/dist/cjs/ix-col_4.cjs.entry.js +9 -9
  141. package/dist/cjs/ix-content-header.cjs.entry.js +1 -1
  142. package/dist/cjs/ix-content.cjs.entry.js +4 -4
  143. package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
  144. package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
  145. package/dist/cjs/ix-date-dropdown.cjs.entry.js +4 -4
  146. package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
  147. package/dist/cjs/ix-date-time-card.cjs.entry.js +2 -2
  148. package/dist/cjs/ix-datetime-picker.cjs.entry.js +2 -2
  149. package/dist/cjs/ix-divider.cjs.entry.js +2 -2
  150. package/dist/cjs/ix-drawer.cjs.entry.js +3 -3
  151. package/dist/cjs/ix-dropdown-button.cjs.entry.js +3 -3
  152. package/dist/cjs/ix-dropdown-header.cjs.entry.js +2 -2
  153. package/dist/cjs/ix-dropdown-item.cjs.entry.js +4 -4
  154. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
  155. package/dist/cjs/ix-dropdown.cjs.entry.js +14 -7
  156. package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
  157. package/dist/cjs/ix-empty-state.cjs.entry.js +2 -2
  158. package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
  159. package/dist/cjs/ix-event-list-item.cjs.entry.js +5 -5
  160. package/dist/cjs/ix-event-list-item.cjs.entry.js.map +1 -1
  161. package/dist/cjs/ix-event-list.cjs.entry.js +3 -3
  162. package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -5
  163. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +3 -3
  164. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
  165. package/dist/cjs/ix-flip-tile.cjs.entry.js +5 -5
  166. package/dist/cjs/ix-form-field.cjs.entry.js +2 -2
  167. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +6 -10
  168. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  169. package/dist/cjs/ix-group.cjs.entry.js +30 -24
  170. package/dist/cjs/ix-group.cjs.entry.js.map +1 -1
  171. package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -5
  172. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +4 -4
  173. package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
  174. package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
  175. package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
  176. package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
  177. package/dist/cjs/ix-kpi.cjs.entry.js +4 -4
  178. package/dist/cjs/ix-link-button.cjs.entry.js +4 -4
  179. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +3 -3
  180. package/dist/cjs/ix-map-navigation.cjs.entry.js +3 -3
  181. package/dist/cjs/ix-menu-about-item.cjs.entry.js +2 -2
  182. package/dist/cjs/ix-menu-about-news.cjs.entry.js +5 -5
  183. package/dist/cjs/ix-menu-about.cjs.entry.js +3 -3
  184. package/dist/cjs/ix-menu-avatar.cjs.entry.js +3 -3
  185. package/dist/cjs/ix-menu-category.cjs.entry.js +6 -6
  186. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +3 -3
  187. package/dist/cjs/ix-menu-item.cjs.entry.js +4 -4
  188. package/dist/cjs/ix-menu-item.cjs.entry.js.map +1 -1
  189. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
  190. package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
  191. package/dist/cjs/ix-menu.cjs.entry.js +13 -13
  192. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  193. package/dist/cjs/ix-message-bar.cjs.entry.js +2 -2
  194. package/dist/cjs/ix-modal-content_2.cjs.entry.js +3 -3
  195. package/dist/cjs/ix-modal-example.cjs.entry.js +2 -2
  196. package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
  197. package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
  198. package/dist/cjs/ix-modal.cjs.entry.js +5 -5
  199. package/dist/cjs/ix-pagination.cjs.entry.js +5 -5
  200. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  201. package/dist/cjs/ix-pane-layout.cjs.entry.js +3 -3
  202. package/dist/cjs/ix-pane.cjs.entry.js +8 -8
  203. package/dist/cjs/ix-pill.cjs.entry.js +5 -5
  204. package/dist/cjs/ix-playground-internal.cjs.entry.js +2 -2
  205. package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
  206. package/dist/cjs/ix-select.cjs.entry.js +35 -19
  207. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  208. package/dist/cjs/ix-slider.cjs.entry.js +22 -15
  209. package/dist/cjs/ix-slider.cjs.entry.js.map +1 -1
  210. package/dist/cjs/ix-split-button-item.cjs.entry.js +2 -2
  211. package/dist/cjs/ix-split-button.cjs.entry.js +2 -2
  212. package/dist/cjs/ix-tab-item_2.cjs.entry.js +75 -45
  213. package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
  214. package/dist/cjs/ix-tile.cjs.entry.js +5 -5
  215. package/dist/cjs/ix-time-picker.cjs.entry.js +4 -4
  216. package/dist/cjs/ix-toast-container.cjs.entry.js +3 -3
  217. package/dist/cjs/ix-toast.cjs.entry.js +3 -3
  218. package/dist/cjs/ix-toggle-button.cjs.entry.js +4 -4
  219. package/dist/cjs/ix-toggle.cjs.entry.js +3 -3
  220. package/dist/cjs/ix-tooltip.cjs.entry.js +6 -6
  221. package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -1
  222. package/dist/cjs/ix-tree-item.cjs.entry.js +5 -5
  223. package/dist/cjs/ix-tree.cjs.entry.js +2 -2
  224. package/dist/cjs/ix-typography.cjs.entry.js +1 -1
  225. package/dist/cjs/ix-upload.cjs.entry.js +4 -4
  226. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -3
  227. package/dist/cjs/ix-workflow-step.cjs.entry.js +4 -4
  228. package/dist/cjs/ix-workflow-steps.cjs.entry.js +2 -2
  229. package/dist/cjs/{listener-86a645ec.js → listener-bc3e7c0c.js} +2 -2
  230. package/dist/cjs/{listener-86a645ec.js.map → listener-bc3e7c0c.js.map} +1 -1
  231. package/dist/cjs/loader.cjs.js +2 -2
  232. package/dist/cjs/{menu-tabs-fc-a06afb9a.js → menu-tabs-fc-df53f176.js} +3 -3
  233. package/dist/cjs/{menu-tabs-fc-a06afb9a.js.map → menu-tabs-fc-df53f176.js.map} +1 -1
  234. package/dist/cjs/{service-a42add5f.js → service-39a8e5fe.js} +3 -3
  235. package/dist/cjs/service-39a8e5fe.js.map +1 -0
  236. package/dist/cjs/siemens-ix.cjs.js +10 -10
  237. package/dist/cjs/siemens-ix.cjs.js.map +1 -1
  238. package/dist/collection/collection-manifest.json +2 -2
  239. package/dist/collection/components/application/application.js +3 -3
  240. package/dist/collection/components/application-header/application-header.js +4 -4
  241. package/dist/collection/components/application-header/application-header.js.map +1 -1
  242. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
  243. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js.map +1 -1
  244. package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
  245. package/dist/collection/components/avatar/avatar.css +42 -0
  246. package/dist/collection/components/basic-navigation/basic-navigation.js +2 -2
  247. package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
  248. package/dist/collection/components/card-content/card-content.js +1 -1
  249. package/dist/collection/components/card-list/card-list.js +4 -4
  250. package/dist/collection/components/card-title/card-title.js +1 -1
  251. package/dist/collection/components/category-filter/category-filter.js +3 -3
  252. package/dist/collection/components/chip/chip.js +4 -4
  253. package/dist/collection/components/content/content.js +3 -3
  254. package/dist/collection/components/css-grid/css-grid-item.js +1 -1
  255. package/dist/collection/components/date-dropdown/date-dropdown.js +3 -3
  256. package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
  257. package/dist/collection/components/date-picker/date-picker.js +4 -4
  258. package/dist/collection/components/date-time-card/date-time-card.js +1 -1
  259. package/dist/collection/components/datetime-picker/datetime-picker.js +1 -1
  260. package/dist/collection/components/divider/divider.js +1 -1
  261. package/dist/collection/components/drawer/drawer.js +2 -2
  262. package/dist/collection/components/dropdown/dropdown.js +13 -6
  263. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  264. package/dist/collection/components/dropdown-button/dropdown-button.ct.js +28 -0
  265. package/dist/collection/components/dropdown-button/dropdown-button.ct.js.map +1 -1
  266. package/dist/collection/components/dropdown-button/dropdown-button.js +2 -2
  267. package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
  268. package/dist/collection/components/dropdown-item/dropdown-item.js +3 -3
  269. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  270. package/dist/collection/components/empty-state/empty-state.js +1 -1
  271. package/dist/collection/components/empty-state/empty-state.js.map +1 -1
  272. package/dist/collection/components/event-list/event-list.js +2 -2
  273. package/dist/collection/components/event-list-item/event-list-item.js +4 -4
  274. package/dist/collection/components/event-list-item/event-list-item.js.map +1 -1
  275. package/dist/collection/components/expanding-search/expanding-search.js +4 -4
  276. package/dist/collection/components/filter-chip/filter-chip.js +1 -1
  277. package/dist/collection/components/flip-tile/flip-tile.js +4 -4
  278. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  279. package/dist/collection/components/form-field/form-field.js +1 -1
  280. package/dist/collection/components/grid/layout-grid.js +2 -2
  281. package/dist/collection/components/group/group-context-menu.js +1 -1
  282. package/dist/collection/components/group/group.js +34 -28
  283. package/dist/collection/components/group/group.js.map +1 -1
  284. package/dist/collection/components/group/test/group.ct.js +39 -1
  285. package/dist/collection/components/group/test/group.ct.js.map +1 -1
  286. package/dist/collection/components/group-item/group-item.css +0 -4
  287. package/dist/collection/components/group-item/group-item.js +9 -12
  288. package/dist/collection/components/group-item/group-item.js.map +1 -1
  289. package/dist/collection/components/icon-button/icon-button.js +1 -1
  290. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
  291. package/dist/collection/components/input-group/input-group.js +1 -1
  292. package/dist/collection/components/key-value/key-value.js +1 -1
  293. package/dist/collection/components/key-value/key-value.js.map +1 -1
  294. package/dist/collection/components/key-value-list/key-value-list.js +1 -1
  295. package/dist/collection/components/kpi/kpi.js +3 -3
  296. package/dist/collection/components/link-button/link-button.js +3 -3
  297. package/dist/collection/components/map-navigation/map-navigation.js +2 -2
  298. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
  299. package/dist/collection/components/menu/menu-expand-icon.js +1 -1
  300. package/dist/collection/components/menu/menu.js +11 -11
  301. package/dist/collection/components/menu/menu.js.map +1 -1
  302. package/dist/collection/components/menu-about/menu-about.js +1 -1
  303. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  304. package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
  305. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
  306. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
  307. package/dist/collection/components/menu-category/menu-category.js +5 -5
  308. package/dist/collection/components/menu-item/menu-item.js +3 -3
  309. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  310. package/dist/collection/components/menu-settings/menu-settings.js +1 -1
  311. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  312. package/dist/collection/components/message-bar/message-bar.js +1 -1
  313. package/dist/collection/components/modal/modal.js +3 -3
  314. package/dist/collection/components/modal-content/modal-content.js +1 -1
  315. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  316. package/dist/collection/components/modal-header/modal-header.js +1 -1
  317. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  318. package/dist/collection/components/pagination/pagination.js +5 -4
  319. package/dist/collection/components/pagination/pagination.js.map +1 -1
  320. package/dist/collection/components/pane/pane.js +6 -6
  321. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  322. package/dist/collection/components/pill/pill.js +4 -4
  323. package/dist/collection/components/playground/example-modal.js +1 -1
  324. package/dist/collection/components/playground/playground.js +1 -1
  325. package/dist/collection/components/push-card/push-card.js +1 -1
  326. package/dist/collection/components/row/row.js +1 -1
  327. package/dist/collection/components/select/select.js +33 -17
  328. package/dist/collection/components/select/select.js.map +1 -1
  329. package/dist/collection/components/select/test/select.ct.js +107 -36
  330. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  331. package/dist/collection/components/select-item/select-item.js +1 -1
  332. package/dist/collection/components/slider/slider.css +1 -1
  333. package/dist/collection/components/slider/slider.js +23 -15
  334. package/dist/collection/components/slider/slider.js.map +1 -1
  335. package/dist/collection/components/slider/test/slider.ct.js +15 -6
  336. package/dist/collection/components/slider/test/slider.ct.js.map +1 -1
  337. package/dist/collection/components/spinner/spinner.js +1 -1
  338. package/dist/collection/components/split-button/split-button.js +1 -1
  339. package/dist/collection/components/split-button-item/split-button-item.js +1 -1
  340. package/dist/collection/components/tab-item/tab-item.js +5 -5
  341. package/dist/collection/components/tab-item/tab-item.js.map +1 -1
  342. package/dist/collection/components/tabs/tabs.js +77 -42
  343. package/dist/collection/components/tabs/tabs.js.map +1 -1
  344. package/dist/collection/components/tabs/test/tabs.ct.js +35 -9
  345. package/dist/collection/components/tabs/test/tabs.ct.js.map +1 -1
  346. package/dist/collection/components/tile/tile.js +4 -4
  347. package/dist/collection/components/time-picker/time-picker.js +3 -3
  348. package/dist/collection/components/toast/toast-container.js +2 -2
  349. package/dist/collection/components/toast/toast.js +2 -2
  350. package/dist/collection/components/toggle/toggle.js +2 -2
  351. package/dist/collection/components/toggle-button/toggle-button.js +2 -2
  352. package/dist/collection/components/tooltip/tooltip.js +13 -8
  353. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  354. package/dist/collection/components/tree/tree.js +1 -1
  355. package/dist/collection/components/tree-item/tree-item.js +4 -4
  356. package/dist/collection/components/upload/upload.js +3 -3
  357. package/dist/collection/components/utils/application-layout/service.js +2 -2
  358. package/dist/collection/components/utils/application-layout/service.js.map +1 -1
  359. package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
  360. package/dist/collection/components/workflow-step/workflow-step.js +3 -3
  361. package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
  362. package/dist/collection/tests/avatar/avatar.e2e.js +6 -0
  363. package/dist/collection/tests/avatar/avatar.e2e.js.map +1 -1
  364. package/dist/collection/tests/slider/slider.e2e.js +14 -0
  365. package/dist/collection/tests/slider/slider.e2e.js.map +1 -1
  366. package/dist/collection/tests/tabs/tabs.e2e.js +1 -1
  367. package/dist/collection/tests/tabs/tabs.e2e.js.map +1 -1
  368. package/dist/esm/{base-button-a1f04cd1.js → base-button-1b40b11d.js} +2 -2
  369. package/dist/esm/{base-button-a1f04cd1.js.map → base-button-1b40b11d.js.map} +1 -1
  370. package/dist/esm/{base-icon-button-368f0241.js → base-icon-button-bc1dabe0.js} +3 -3
  371. package/dist/esm/{base-icon-button-368f0241.js.map → base-icon-button-bc1dabe0.js.map} +1 -1
  372. package/dist/esm/index-5429f20b.js +2090 -0
  373. package/dist/esm/index-5429f20b.js.map +1 -0
  374. package/dist/esm/ix-action-card.entry.js +1 -1
  375. package/dist/esm/ix-application-header.entry.js +5 -5
  376. package/dist/esm/ix-application-header.entry.js.map +1 -1
  377. package/dist/esm/ix-application-sidebar.entry.js +2 -2
  378. package/dist/esm/ix-application-switch-modal.entry.js +2 -2
  379. package/dist/esm/ix-application-switch-modal.entry.js.map +1 -1
  380. package/dist/esm/ix-application.entry.js +5 -5
  381. package/dist/esm/ix-avatar_2.entry.js +4 -4
  382. package/dist/esm/ix-avatar_2.entry.js.map +1 -1
  383. package/dist/esm/ix-basic-navigation.entry.js +4 -4
  384. package/dist/esm/ix-blind.entry.js +1 -1
  385. package/dist/esm/ix-breadcrumb-item.entry.js +2 -2
  386. package/dist/esm/ix-breadcrumb.entry.js +3 -3
  387. package/dist/esm/ix-button.entry.js +2 -2
  388. package/dist/esm/ix-card-accordion_2.entry.js +2 -2
  389. package/dist/esm/ix-card-list.entry.js +5 -5
  390. package/dist/esm/ix-card_2.entry.js +2 -2
  391. package/dist/esm/ix-category-filter.entry.js +5 -5
  392. package/dist/esm/ix-chip.entry.js +5 -5
  393. package/dist/esm/ix-col_4.entry.js +9 -9
  394. package/dist/esm/ix-content-header.entry.js +1 -1
  395. package/dist/esm/ix-content.entry.js +4 -4
  396. package/dist/esm/ix-css-grid-item.entry.js +2 -2
  397. package/dist/esm/ix-css-grid.entry.js +1 -1
  398. package/dist/esm/ix-date-dropdown.entry.js +4 -4
  399. package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
  400. package/dist/esm/ix-date-time-card.entry.js +2 -2
  401. package/dist/esm/ix-datetime-picker.entry.js +2 -2
  402. package/dist/esm/ix-divider.entry.js +2 -2
  403. package/dist/esm/ix-drawer.entry.js +3 -3
  404. package/dist/esm/ix-dropdown-button.entry.js +3 -3
  405. package/dist/esm/ix-dropdown-header.entry.js +2 -2
  406. package/dist/esm/ix-dropdown-item.entry.js +4 -4
  407. package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
  408. package/dist/esm/ix-dropdown.entry.js +14 -7
  409. package/dist/esm/ix-dropdown.entry.js.map +1 -1
  410. package/dist/esm/ix-empty-state.entry.js +2 -2
  411. package/dist/esm/ix-empty-state.entry.js.map +1 -1
  412. package/dist/esm/ix-event-list-item.entry.js +5 -5
  413. package/dist/esm/ix-event-list-item.entry.js.map +1 -1
  414. package/dist/esm/ix-event-list.entry.js +3 -3
  415. package/dist/esm/ix-expanding-search.entry.js +5 -5
  416. package/dist/esm/ix-filter-chip_2.entry.js +3 -3
  417. package/dist/esm/ix-flip-tile-content.entry.js +2 -2
  418. package/dist/esm/ix-flip-tile.entry.js +5 -5
  419. package/dist/esm/ix-form-field.entry.js +2 -2
  420. package/dist/esm/ix-group-context-menu_2.entry.js +6 -10
  421. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  422. package/dist/esm/ix-group.entry.js +30 -24
  423. package/dist/esm/ix-group.entry.js.map +1 -1
  424. package/dist/esm/ix-icon-button_2.entry.js +5 -5
  425. package/dist/esm/ix-icon-toggle-button.entry.js +4 -4
  426. package/dist/esm/ix-input-group.entry.js +2 -2
  427. package/dist/esm/ix-key-value-list.entry.js +2 -2
  428. package/dist/esm/ix-key-value.entry.js +2 -2
  429. package/dist/esm/ix-key-value.entry.js.map +1 -1
  430. package/dist/esm/ix-kpi.entry.js +4 -4
  431. package/dist/esm/ix-link-button.entry.js +4 -4
  432. package/dist/esm/ix-map-navigation-overlay.entry.js +3 -3
  433. package/dist/esm/ix-map-navigation.entry.js +3 -3
  434. package/dist/esm/ix-menu-about-item.entry.js +2 -2
  435. package/dist/esm/ix-menu-about-news.entry.js +5 -5
  436. package/dist/esm/ix-menu-about.entry.js +3 -3
  437. package/dist/esm/ix-menu-avatar.entry.js +3 -3
  438. package/dist/esm/ix-menu-category.entry.js +6 -6
  439. package/dist/esm/ix-menu-expand-icon.entry.js +3 -3
  440. package/dist/esm/ix-menu-item.entry.js +4 -4
  441. package/dist/esm/ix-menu-item.entry.js.map +1 -1
  442. package/dist/esm/ix-menu-settings-item.entry.js +2 -2
  443. package/dist/esm/ix-menu-settings.entry.js +2 -2
  444. package/dist/esm/ix-menu.entry.js +13 -13
  445. package/dist/esm/ix-menu.entry.js.map +1 -1
  446. package/dist/esm/ix-message-bar.entry.js +2 -2
  447. package/dist/esm/ix-modal-content_2.entry.js +3 -3
  448. package/dist/esm/ix-modal-example.entry.js +2 -2
  449. package/dist/esm/ix-modal-footer.entry.js +2 -2
  450. package/dist/esm/ix-modal-loading.entry.js +2 -2
  451. package/dist/esm/ix-modal.entry.js +5 -5
  452. package/dist/esm/ix-pagination.entry.js +5 -5
  453. package/dist/esm/ix-pagination.entry.js.map +1 -1
  454. package/dist/esm/ix-pane-layout.entry.js +3 -3
  455. package/dist/esm/ix-pane.entry.js +8 -8
  456. package/dist/esm/ix-pill.entry.js +5 -5
  457. package/dist/esm/ix-playground-internal.entry.js +2 -2
  458. package/dist/esm/ix-push-card.entry.js +2 -2
  459. package/dist/esm/ix-select.entry.js +35 -19
  460. package/dist/esm/ix-select.entry.js.map +1 -1
  461. package/dist/esm/ix-slider.entry.js +22 -15
  462. package/dist/esm/ix-slider.entry.js.map +1 -1
  463. package/dist/esm/ix-split-button-item.entry.js +2 -2
  464. package/dist/esm/ix-split-button.entry.js +2 -2
  465. package/dist/esm/ix-tab-item_2.entry.js +75 -45
  466. package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
  467. package/dist/esm/ix-tile.entry.js +5 -5
  468. package/dist/esm/ix-time-picker.entry.js +4 -4
  469. package/dist/esm/ix-toast-container.entry.js +3 -3
  470. package/dist/esm/ix-toast.entry.js +3 -3
  471. package/dist/esm/ix-toggle-button.entry.js +4 -4
  472. package/dist/esm/ix-toggle.entry.js +3 -3
  473. package/dist/esm/ix-tooltip.entry.js +6 -6
  474. package/dist/esm/ix-tooltip.entry.js.map +1 -1
  475. package/dist/esm/ix-tree-item.entry.js +5 -5
  476. package/dist/esm/ix-tree.entry.js +2 -2
  477. package/dist/esm/ix-typography.entry.js +1 -1
  478. package/dist/esm/ix-upload.entry.js +4 -4
  479. package/dist/esm/ix-validation-tooltip.entry.js +3 -3
  480. package/dist/esm/ix-workflow-step.entry.js +4 -4
  481. package/dist/esm/ix-workflow-steps.entry.js +2 -2
  482. package/dist/esm/{listener-2d09646e.js → listener-4f3baab5.js} +2 -2
  483. package/dist/esm/{listener-2d09646e.js.map → listener-4f3baab5.js.map} +1 -1
  484. package/dist/esm/loader.js +3 -3
  485. package/dist/esm/{menu-tabs-fc-60ff0221.js → menu-tabs-fc-d9a7dd06.js} +3 -3
  486. package/dist/esm/{menu-tabs-fc-60ff0221.js.map → menu-tabs-fc-d9a7dd06.js.map} +1 -1
  487. package/dist/esm/{service-02cc9011.js → service-c7fc628b.js} +3 -3
  488. package/dist/esm/service-c7fc628b.js.map +1 -0
  489. package/dist/esm/siemens-ix.js +11 -11
  490. package/dist/esm/siemens-ix.js.map +1 -1
  491. package/dist/siemens-ix/{p-fbb851f3.entry.js → p-052340f9.entry.js} +2 -2
  492. package/dist/siemens-ix/{p-064172e5.entry.js → p-0653a145.entry.js} +2 -2
  493. package/dist/siemens-ix/{p-064172e5.entry.js.map → p-0653a145.entry.js.map} +1 -1
  494. package/dist/siemens-ix/p-0b4e3779.entry.js +2 -0
  495. package/dist/siemens-ix/p-0b4e3779.entry.js.map +1 -0
  496. package/dist/siemens-ix/{p-193f7439.entry.js → p-0b4e398e.entry.js} +2 -2
  497. package/dist/siemens-ix/{p-d6cef0ad.js → p-0c8a98cd.js} +2 -2
  498. package/dist/siemens-ix/p-0d2a6886.entry.js +2 -0
  499. package/dist/siemens-ix/{p-8d836d6f.entry.js → p-0f7ef743.entry.js} +2 -2
  500. package/dist/siemens-ix/{p-d57ab230.entry.js → p-113cc793.entry.js} +2 -2
  501. package/dist/siemens-ix/{p-442f750a.entry.js → p-14a41c8c.entry.js} +2 -2
  502. package/dist/siemens-ix/{p-5231ebe9.entry.js → p-15b3c17e.entry.js} +2 -2
  503. package/dist/siemens-ix/p-16b923e9.entry.js +2 -0
  504. package/dist/siemens-ix/{p-d6690de0.entry.js → p-1a122c76.entry.js} +2 -2
  505. package/dist/siemens-ix/{p-072cb3c7.entry.js → p-1cff59db.entry.js} +2 -2
  506. package/dist/siemens-ix/{p-719a3a11.js → p-1d581190.js} +2 -2
  507. package/dist/siemens-ix/{p-c50cdde4.js → p-1db6be55.js} +2 -2
  508. package/dist/siemens-ix/{p-8c126c50.entry.js → p-1f4b8463.entry.js} +2 -2
  509. package/dist/siemens-ix/{p-a419c1a8.entry.js → p-24a8737a.entry.js} +2 -2
  510. package/dist/siemens-ix/{p-7a337fdb.entry.js → p-2908cacd.entry.js} +2 -2
  511. package/dist/siemens-ix/{p-9ad52791.entry.js → p-2946fd70.entry.js} +2 -2
  512. package/dist/siemens-ix/{p-d80c0aff.entry.js → p-2c4c03d4.entry.js} +2 -2
  513. package/dist/siemens-ix/{p-e42a3069.entry.js → p-2ebfd4fd.entry.js} +2 -2
  514. package/dist/siemens-ix/{p-5f364337.entry.js → p-2ec7f841.entry.js} +2 -2
  515. package/dist/siemens-ix/{p-5f364337.entry.js.map → p-2ec7f841.entry.js.map} +1 -1
  516. package/dist/siemens-ix/{p-f7b91326.entry.js → p-309ac3ad.entry.js} +2 -2
  517. package/dist/siemens-ix/p-32375ddb.entry.js +2 -0
  518. package/dist/siemens-ix/p-32d4ed3b.entry.js +2 -0
  519. package/dist/siemens-ix/{p-1befce78.entry.js → p-427676f4.entry.js} +2 -2
  520. package/dist/siemens-ix/{p-da9e539d.entry.js → p-4430117a.entry.js} +2 -2
  521. package/dist/siemens-ix/{p-da9e539d.entry.js.map → p-4430117a.entry.js.map} +1 -1
  522. package/dist/siemens-ix/p-44db3646.entry.js +2 -0
  523. package/dist/siemens-ix/{p-47e3439b.entry.js → p-453fa360.entry.js} +2 -2
  524. package/dist/siemens-ix/p-4b3facea.entry.js +2 -0
  525. package/dist/siemens-ix/p-4df0cdd7.entry.js +2 -0
  526. package/dist/siemens-ix/p-4df0cdd7.entry.js.map +1 -0
  527. package/dist/siemens-ix/{p-d72cb8db.entry.js → p-52857629.entry.js} +2 -2
  528. package/dist/siemens-ix/p-52857629.entry.js.map +1 -0
  529. package/dist/siemens-ix/{p-ef378dca.entry.js → p-53352bfb.entry.js} +2 -2
  530. package/dist/siemens-ix/{p-880526bf.entry.js → p-5696bb62.entry.js} +2 -2
  531. package/dist/siemens-ix/{p-7cffddcf.entry.js → p-5aa0b93c.entry.js} +2 -2
  532. package/dist/siemens-ix/{p-955fa8ca.entry.js → p-5b135f6b.entry.js} +2 -2
  533. package/dist/siemens-ix/{p-955fa8ca.entry.js.map → p-5b135f6b.entry.js.map} +1 -1
  534. package/dist/siemens-ix/{p-e5bdd91f.entry.js → p-5c673ae9.entry.js} +2 -2
  535. package/dist/siemens-ix/{p-ec0662b9.entry.js → p-5f25e7fd.entry.js} +2 -2
  536. package/dist/siemens-ix/{p-ddd91a5b.entry.js → p-6227e62b.entry.js} +2 -2
  537. package/dist/siemens-ix/p-68532fa2.js +2 -0
  538. package/dist/siemens-ix/{p-13141e58.entry.js → p-68644ee1.entry.js} +2 -2
  539. package/dist/siemens-ix/{p-b4dfda02.entry.js → p-6af4415c.entry.js} +2 -2
  540. package/dist/siemens-ix/{p-075ec277.entry.js → p-6fd7ecd0.entry.js} +2 -2
  541. package/dist/siemens-ix/{p-fd68d6ed.entry.js → p-7076210b.entry.js} +2 -2
  542. package/dist/siemens-ix/{p-e14472c8.entry.js → p-71315e2e.entry.js} +2 -2
  543. package/dist/siemens-ix/p-71315e2e.entry.js.map +1 -0
  544. package/dist/siemens-ix/{p-8345c55f.entry.js → p-713828ed.entry.js} +2 -2
  545. package/dist/siemens-ix/{p-42157ecd.entry.js → p-7bfd6cd2.entry.js} +2 -2
  546. package/dist/siemens-ix/p-7faa148f.entry.js +2 -0
  547. package/dist/siemens-ix/{p-4cb9cc30.entry.js → p-85423643.entry.js} +2 -2
  548. package/dist/siemens-ix/{p-29be2b67.entry.js → p-8629db91.entry.js} +2 -2
  549. package/dist/siemens-ix/p-87e692d9.entry.js +2 -0
  550. package/dist/siemens-ix/p-882a0233.entry.js +2 -0
  551. package/dist/siemens-ix/{p-c62d3f80.entry.js → p-8d0758c1.entry.js} +2 -2
  552. package/dist/siemens-ix/{p-6f006293.entry.js → p-8d599677.entry.js} +2 -2
  553. package/dist/siemens-ix/{p-4ca27bd7.entry.js → p-90440046.entry.js} +2 -2
  554. package/dist/siemens-ix/p-92a18c10.entry.js +2 -0
  555. package/dist/siemens-ix/{p-3de94029.entry.js → p-9ebc4fc3.entry.js} +2 -2
  556. package/dist/siemens-ix/{p-ed693de7.entry.js → p-a0138163.entry.js} +2 -2
  557. package/dist/siemens-ix/{p-ed693de7.entry.js.map → p-a0138163.entry.js.map} +1 -1
  558. package/dist/siemens-ix/{p-de186f5c.entry.js → p-a0a44a2b.entry.js} +2 -2
  559. package/dist/siemens-ix/{p-5bd709a5.entry.js → p-a8d291fa.entry.js} +2 -2
  560. package/dist/siemens-ix/{p-5bd709a5.entry.js.map → p-a8d291fa.entry.js.map} +1 -1
  561. package/dist/siemens-ix/{p-ed8e1d4f.entry.js → p-af099ca4.entry.js} +2 -2
  562. package/dist/siemens-ix/p-b3b23af7.entry.js +2 -0
  563. package/dist/siemens-ix/{p-37c9f425.entry.js → p-b4ce366d.entry.js} +2 -2
  564. package/dist/siemens-ix/{p-a73efc31.entry.js → p-b663ca16.entry.js} +2 -2
  565. package/dist/siemens-ix/{p-42d156d6.entry.js → p-b804b8c5.entry.js} +2 -2
  566. package/dist/siemens-ix/{p-42d156d6.entry.js.map → p-b804b8c5.entry.js.map} +1 -1
  567. package/dist/siemens-ix/{p-e66fb590.entry.js → p-bc2c74c5.entry.js} +2 -2
  568. package/dist/siemens-ix/{p-b1c8c6f1.entry.js → p-bea7c748.entry.js} +2 -2
  569. package/dist/siemens-ix/{p-65a19457.entry.js → p-bf14c60b.entry.js} +2 -2
  570. package/dist/siemens-ix/p-c1222581.entry.js +2 -0
  571. package/dist/siemens-ix/{p-a0be36ad.entry.js → p-c1968b80.entry.js} +2 -2
  572. package/dist/siemens-ix/{p-b7fa2c5a.entry.js → p-c33cee36.entry.js} +2 -2
  573. package/dist/siemens-ix/{p-bc49e7ff.entry.js → p-d03df401.entry.js} +2 -2
  574. package/dist/siemens-ix/{p-dddd4a76.entry.js → p-d14024d3.entry.js} +2 -2
  575. package/dist/siemens-ix/{p-822fcb6c.entry.js → p-d1f49940.entry.js} +2 -2
  576. package/dist/siemens-ix/p-d331216f.entry.js +2 -0
  577. package/dist/siemens-ix/p-d331216f.entry.js.map +1 -0
  578. package/dist/siemens-ix/p-d8790ff5.entry.js +2 -0
  579. package/dist/siemens-ix/p-d8790ff5.entry.js.map +1 -0
  580. package/dist/siemens-ix/p-d950c3a8.entry.js +2 -0
  581. package/dist/siemens-ix/p-d950c3a8.entry.js.map +1 -0
  582. package/dist/siemens-ix/{p-06cba04a.entry.js → p-d95cbd1f.entry.js} +2 -2
  583. package/dist/siemens-ix/{p-127f6463.entry.js → p-d998415f.entry.js} +2 -2
  584. package/dist/siemens-ix/{p-d4fdbc68.entry.js → p-dbe8f5e6.entry.js} +2 -2
  585. package/dist/siemens-ix/p-dbe8f5e6.entry.js.map +1 -0
  586. package/dist/siemens-ix/p-dcb3e5be.entry.js +2 -0
  587. package/dist/siemens-ix/{p-f237ec25.entry.js.map → p-dcb3e5be.entry.js.map} +1 -1
  588. package/dist/siemens-ix/{p-bbacfd34.entry.js → p-dde7eb80.entry.js} +2 -2
  589. package/dist/siemens-ix/{p-73b070cc.entry.js → p-e30ed20a.entry.js} +2 -2
  590. package/dist/siemens-ix/{p-d6d48f1d.entry.js → p-e8d3cf35.entry.js} +2 -2
  591. package/dist/siemens-ix/p-e9a3f58a.entry.js +2 -0
  592. package/dist/siemens-ix/{p-ea0c0738.entry.js.map → p-e9a3f58a.entry.js.map} +1 -1
  593. package/dist/siemens-ix/p-eb6268a6.entry.js +2 -0
  594. package/dist/siemens-ix/{p-010d6f32.entry.js.map → p-eb6268a6.entry.js.map} +1 -1
  595. package/dist/siemens-ix/{p-c6234df9.entry.js → p-ebb277f0.entry.js} +2 -2
  596. package/dist/siemens-ix/{p-34891297.entry.js → p-f318140c.entry.js} +2 -2
  597. package/dist/siemens-ix/p-f318140c.entry.js.map +1 -0
  598. package/dist/siemens-ix/{p-0f8a55ee.entry.js → p-f78246bd.entry.js} +2 -2
  599. package/dist/siemens-ix/p-f87cd962.js +3 -0
  600. package/dist/siemens-ix/p-f87cd962.js.map +1 -0
  601. package/dist/siemens-ix/{p-07f815fa.entry.js → p-fb2b78f7.entry.js} +2 -2
  602. package/dist/siemens-ix/{p-644433de.entry.js → p-fb47546b.entry.js} +2 -2
  603. package/dist/siemens-ix/p-fb4c79c6.entry.js +2 -0
  604. package/dist/siemens-ix/{p-702f9349.js → p-fbe017b7.js} +2 -2
  605. package/dist/siemens-ix/p-fbe017b7.js.map +1 -0
  606. package/dist/siemens-ix/{p-b7a104cd.entry.js → p-fc5814df.entry.js} +2 -2
  607. package/dist/siemens-ix/{p-b7a104cd.entry.js.map → p-fc5814df.entry.js.map} +1 -1
  608. package/dist/siemens-ix/{p-45139de2.entry.js → p-feac09bc.entry.js} +2 -2
  609. package/dist/siemens-ix/{p-733c69fa.entry.js → p-ff1ac5b3.entry.js} +2 -2
  610. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  611. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  612. package/dist/types/components/application-header/application-header.d.ts +1 -1
  613. package/dist/types/components/dropdown/dropdown.d.ts +1 -0
  614. package/dist/types/components/group/group.d.ts +3 -4
  615. package/dist/types/components/group-item/group-item.d.ts +4 -4
  616. package/dist/types/components/slider/slider.d.ts +3 -3
  617. package/dist/types/components/tab-item/tab-item.d.ts +2 -2
  618. package/dist/types/components/tabs/tabs.d.ts +7 -4
  619. package/dist/types/components/tooltip/tooltip.d.ts +7 -7
  620. package/dist/types/components.d.ts +17 -15
  621. package/hydrate/index.d.ts +1 -1
  622. package/hydrate/index.js +38479 -32296
  623. package/package.json +2 -2
  624. package/dist/cjs/index-2d325c82.js +0 -2967
  625. package/dist/cjs/index-2d325c82.js.map +0 -1
  626. package/dist/cjs/service-a42add5f.js.map +0 -1
  627. package/dist/esm/index-06024ae7.js +0 -2935
  628. package/dist/esm/index-06024ae7.js.map +0 -1
  629. package/dist/esm/service-02cc9011.js.map +0 -1
  630. package/dist/siemens-ix/p-010d6f32.entry.js +0 -2
  631. package/dist/siemens-ix/p-31af865e.entry.js +0 -2
  632. package/dist/siemens-ix/p-34891297.entry.js.map +0 -1
  633. package/dist/siemens-ix/p-36f903fb.entry.js +0 -2
  634. package/dist/siemens-ix/p-36f903fb.entry.js.map +0 -1
  635. package/dist/siemens-ix/p-5c367ce7.entry.js +0 -2
  636. package/dist/siemens-ix/p-6a4545be.entry.js +0 -2
  637. package/dist/siemens-ix/p-6c368289.entry.js +0 -2
  638. package/dist/siemens-ix/p-702f9349.js.map +0 -1
  639. package/dist/siemens-ix/p-77b15444.entry.js +0 -2
  640. package/dist/siemens-ix/p-7cb1dcf0.entry.js +0 -2
  641. package/dist/siemens-ix/p-867ce59b.entry.js +0 -2
  642. package/dist/siemens-ix/p-8b3cb8c0.entry.js +0 -2
  643. package/dist/siemens-ix/p-8b3cb8c0.entry.js.map +0 -1
  644. package/dist/siemens-ix/p-9d0c9f9f.entry.js +0 -2
  645. package/dist/siemens-ix/p-a55105d1.entry.js +0 -2
  646. package/dist/siemens-ix/p-a55105d1.entry.js.map +0 -1
  647. package/dist/siemens-ix/p-a61b35a8.entry.js +0 -2
  648. package/dist/siemens-ix/p-ac552df3.js +0 -3
  649. package/dist/siemens-ix/p-ac552df3.js.map +0 -1
  650. package/dist/siemens-ix/p-af2ee1e2.entry.js +0 -2
  651. package/dist/siemens-ix/p-b331622d.entry.js +0 -2
  652. package/dist/siemens-ix/p-ba68b58c.entry.js +0 -2
  653. package/dist/siemens-ix/p-c6902b79.entry.js +0 -2
  654. package/dist/siemens-ix/p-c6902b79.entry.js.map +0 -1
  655. package/dist/siemens-ix/p-d4fdbc68.entry.js.map +0 -1
  656. package/dist/siemens-ix/p-d6116286.entry.js +0 -2
  657. package/dist/siemens-ix/p-d72cb8db.entry.js.map +0 -1
  658. package/dist/siemens-ix/p-e14472c8.entry.js.map +0 -1
  659. package/dist/siemens-ix/p-ea0c0738.entry.js +0 -2
  660. package/dist/siemens-ix/p-f237ec25.entry.js +0 -2
  661. package/dist/siemens-ix/p-f74280b3.entry.js +0 -2
  662. package/dist/siemens-ix/p-f74280b3.entry.js.map +0 -1
  663. package/dist/siemens-ix/p-fa3283ea.js +0 -2
  664. /package/dist/siemens-ix/{p-fbb851f3.entry.js.map → p-052340f9.entry.js.map} +0 -0
  665. /package/dist/siemens-ix/{p-193f7439.entry.js.map → p-0b4e398e.entry.js.map} +0 -0
  666. /package/dist/siemens-ix/{p-d6cef0ad.js.map → p-0c8a98cd.js.map} +0 -0
  667. /package/dist/siemens-ix/{p-867ce59b.entry.js.map → p-0d2a6886.entry.js.map} +0 -0
  668. /package/dist/siemens-ix/{p-8d836d6f.entry.js.map → p-0f7ef743.entry.js.map} +0 -0
  669. /package/dist/siemens-ix/{p-d57ab230.entry.js.map → p-113cc793.entry.js.map} +0 -0
  670. /package/dist/siemens-ix/{p-442f750a.entry.js.map → p-14a41c8c.entry.js.map} +0 -0
  671. /package/dist/siemens-ix/{p-5231ebe9.entry.js.map → p-15b3c17e.entry.js.map} +0 -0
  672. /package/dist/siemens-ix/{p-7cb1dcf0.entry.js.map → p-16b923e9.entry.js.map} +0 -0
  673. /package/dist/siemens-ix/{p-d6690de0.entry.js.map → p-1a122c76.entry.js.map} +0 -0
  674. /package/dist/siemens-ix/{p-072cb3c7.entry.js.map → p-1cff59db.entry.js.map} +0 -0
  675. /package/dist/siemens-ix/{p-719a3a11.js.map → p-1d581190.js.map} +0 -0
  676. /package/dist/siemens-ix/{p-c50cdde4.js.map → p-1db6be55.js.map} +0 -0
  677. /package/dist/siemens-ix/{p-8c126c50.entry.js.map → p-1f4b8463.entry.js.map} +0 -0
  678. /package/dist/siemens-ix/{p-a419c1a8.entry.js.map → p-24a8737a.entry.js.map} +0 -0
  679. /package/dist/siemens-ix/{p-7a337fdb.entry.js.map → p-2908cacd.entry.js.map} +0 -0
  680. /package/dist/siemens-ix/{p-9ad52791.entry.js.map → p-2946fd70.entry.js.map} +0 -0
  681. /package/dist/siemens-ix/{p-d80c0aff.entry.js.map → p-2c4c03d4.entry.js.map} +0 -0
  682. /package/dist/siemens-ix/{p-e42a3069.entry.js.map → p-2ebfd4fd.entry.js.map} +0 -0
  683. /package/dist/siemens-ix/{p-f7b91326.entry.js.map → p-309ac3ad.entry.js.map} +0 -0
  684. /package/dist/siemens-ix/{p-a61b35a8.entry.js.map → p-32375ddb.entry.js.map} +0 -0
  685. /package/dist/siemens-ix/{p-b331622d.entry.js.map → p-32d4ed3b.entry.js.map} +0 -0
  686. /package/dist/siemens-ix/{p-1befce78.entry.js.map → p-427676f4.entry.js.map} +0 -0
  687. /package/dist/siemens-ix/{p-af2ee1e2.entry.js.map → p-44db3646.entry.js.map} +0 -0
  688. /package/dist/siemens-ix/{p-47e3439b.entry.js.map → p-453fa360.entry.js.map} +0 -0
  689. /package/dist/siemens-ix/{p-9d0c9f9f.entry.js.map → p-4b3facea.entry.js.map} +0 -0
  690. /package/dist/siemens-ix/{p-ef378dca.entry.js.map → p-53352bfb.entry.js.map} +0 -0
  691. /package/dist/siemens-ix/{p-880526bf.entry.js.map → p-5696bb62.entry.js.map} +0 -0
  692. /package/dist/siemens-ix/{p-7cffddcf.entry.js.map → p-5aa0b93c.entry.js.map} +0 -0
  693. /package/dist/siemens-ix/{p-e5bdd91f.entry.js.map → p-5c673ae9.entry.js.map} +0 -0
  694. /package/dist/siemens-ix/{p-ec0662b9.entry.js.map → p-5f25e7fd.entry.js.map} +0 -0
  695. /package/dist/siemens-ix/{p-ddd91a5b.entry.js.map → p-6227e62b.entry.js.map} +0 -0
  696. /package/dist/siemens-ix/{p-fa3283ea.js.map → p-68532fa2.js.map} +0 -0
  697. /package/dist/siemens-ix/{p-13141e58.entry.js.map → p-68644ee1.entry.js.map} +0 -0
  698. /package/dist/siemens-ix/{p-b4dfda02.entry.js.map → p-6af4415c.entry.js.map} +0 -0
  699. /package/dist/siemens-ix/{p-075ec277.entry.js.map → p-6fd7ecd0.entry.js.map} +0 -0
  700. /package/dist/siemens-ix/{p-fd68d6ed.entry.js.map → p-7076210b.entry.js.map} +0 -0
  701. /package/dist/siemens-ix/{p-8345c55f.entry.js.map → p-713828ed.entry.js.map} +0 -0
  702. /package/dist/siemens-ix/{p-42157ecd.entry.js.map → p-7bfd6cd2.entry.js.map} +0 -0
  703. /package/dist/siemens-ix/{p-ba68b58c.entry.js.map → p-7faa148f.entry.js.map} +0 -0
  704. /package/dist/siemens-ix/{p-4cb9cc30.entry.js.map → p-85423643.entry.js.map} +0 -0
  705. /package/dist/siemens-ix/{p-29be2b67.entry.js.map → p-8629db91.entry.js.map} +0 -0
  706. /package/dist/siemens-ix/{p-6a4545be.entry.js.map → p-87e692d9.entry.js.map} +0 -0
  707. /package/dist/siemens-ix/{p-31af865e.entry.js.map → p-882a0233.entry.js.map} +0 -0
  708. /package/dist/siemens-ix/{p-c62d3f80.entry.js.map → p-8d0758c1.entry.js.map} +0 -0
  709. /package/dist/siemens-ix/{p-6f006293.entry.js.map → p-8d599677.entry.js.map} +0 -0
  710. /package/dist/siemens-ix/{p-4ca27bd7.entry.js.map → p-90440046.entry.js.map} +0 -0
  711. /package/dist/siemens-ix/{p-d6116286.entry.js.map → p-92a18c10.entry.js.map} +0 -0
  712. /package/dist/siemens-ix/{p-3de94029.entry.js.map → p-9ebc4fc3.entry.js.map} +0 -0
  713. /package/dist/siemens-ix/{p-de186f5c.entry.js.map → p-a0a44a2b.entry.js.map} +0 -0
  714. /package/dist/siemens-ix/{p-ed8e1d4f.entry.js.map → p-af099ca4.entry.js.map} +0 -0
  715. /package/dist/siemens-ix/{p-5c367ce7.entry.js.map → p-b3b23af7.entry.js.map} +0 -0
  716. /package/dist/siemens-ix/{p-37c9f425.entry.js.map → p-b4ce366d.entry.js.map} +0 -0
  717. /package/dist/siemens-ix/{p-a73efc31.entry.js.map → p-b663ca16.entry.js.map} +0 -0
  718. /package/dist/siemens-ix/{p-e66fb590.entry.js.map → p-bc2c74c5.entry.js.map} +0 -0
  719. /package/dist/siemens-ix/{p-b1c8c6f1.entry.js.map → p-bea7c748.entry.js.map} +0 -0
  720. /package/dist/siemens-ix/{p-65a19457.entry.js.map → p-bf14c60b.entry.js.map} +0 -0
  721. /package/dist/siemens-ix/{p-6c368289.entry.js.map → p-c1222581.entry.js.map} +0 -0
  722. /package/dist/siemens-ix/{p-a0be36ad.entry.js.map → p-c1968b80.entry.js.map} +0 -0
  723. /package/dist/siemens-ix/{p-b7fa2c5a.entry.js.map → p-c33cee36.entry.js.map} +0 -0
  724. /package/dist/siemens-ix/{p-bc49e7ff.entry.js.map → p-d03df401.entry.js.map} +0 -0
  725. /package/dist/siemens-ix/{p-dddd4a76.entry.js.map → p-d14024d3.entry.js.map} +0 -0
  726. /package/dist/siemens-ix/{p-822fcb6c.entry.js.map → p-d1f49940.entry.js.map} +0 -0
  727. /package/dist/siemens-ix/{p-06cba04a.entry.js.map → p-d95cbd1f.entry.js.map} +0 -0
  728. /package/dist/siemens-ix/{p-127f6463.entry.js.map → p-d998415f.entry.js.map} +0 -0
  729. /package/dist/siemens-ix/{p-bbacfd34.entry.js.map → p-dde7eb80.entry.js.map} +0 -0
  730. /package/dist/siemens-ix/{p-73b070cc.entry.js.map → p-e30ed20a.entry.js.map} +0 -0
  731. /package/dist/siemens-ix/{p-d6d48f1d.entry.js.map → p-e8d3cf35.entry.js.map} +0 -0
  732. /package/dist/siemens-ix/{p-c6234df9.entry.js.map → p-ebb277f0.entry.js.map} +0 -0
  733. /package/dist/siemens-ix/{p-0f8a55ee.entry.js.map → p-f78246bd.entry.js.map} +0 -0
  734. /package/dist/siemens-ix/{p-07f815fa.entry.js.map → p-fb2b78f7.entry.js.map} +0 -0
  735. /package/dist/siemens-ix/{p-644433de.entry.js.map → p-fb47546b.entry.js.map} +0 -0
  736. /package/dist/siemens-ix/{p-77b15444.entry.js.map → p-fb4c79c6.entry.js.map} +0 -0
  737. /package/dist/siemens-ix/{p-45139de2.entry.js.map → p-feac09bc.entry.js.map} +0 -0
  738. /package/dist/siemens-ix/{p-733c69fa.entry.js.map → p-ff1ac5b3.entry.js.map} +0 -0
@@ -1,2967 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopNamespace(e) {
4
- if (e && e.__esModule) return e;
5
- var n = Object.create(null);
6
- if (e) {
7
- Object.keys(e).forEach(function (k) {
8
- if (k !== 'default') {
9
- var d = Object.getOwnPropertyDescriptor(e, k);
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: function () {
13
- return e[k];
14
- }
15
- });
16
- }
17
- });
18
- }
19
- n['default'] = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- const NAMESPACE = 'siemens-ix';
24
-
25
- /**
26
- * Virtual DOM patching algorithm based on Snabbdom by
27
- * Simon Friis Vindum (@paldepind)
28
- * Licensed under the MIT License
29
- * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
- *
31
- * Modified for Stencil's renderer and slot projection
32
- */
33
- let scopeId;
34
- let hostTagName;
35
- let useNativeShadowDom = false;
36
- let isSvgMode = false;
37
- let queuePending = false;
38
- const createTime = (fnName, tagName = '') => {
39
- {
40
- return () => {
41
- return;
42
- };
43
- }
44
- };
45
- const uniqueTime = (key, measureText) => {
46
- {
47
- return () => {
48
- return;
49
- };
50
- }
51
- };
52
- const CONTENT_REF_ID = 'r';
53
- const ORG_LOCATION_ID = 'o';
54
- const SLOT_NODE_ID = 's';
55
- const TEXT_NODE_ID = 't';
56
- const HYDRATE_ID = 's-id';
57
- const HYDRATED_STYLE_ID = 'sty-id';
58
- const HYDRATE_CHILD_ID = 'c-id';
59
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
60
- /**
61
- * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
62
- *
63
- * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
64
- * support as of Stencil v4.
65
- */
66
- const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
67
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
68
- /**
69
- * Default style mode id
70
- */
71
- /**
72
- * Reusable empty obj/array
73
- * Don't add values to these!!
74
- */
75
- const EMPTY_OBJ = {};
76
- /**
77
- * Namespaces
78
- */
79
- const SVG_NS = 'http://www.w3.org/2000/svg';
80
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
81
- const isDef = (v) => v != null;
82
- /**
83
- * Check whether a value is a 'complex type', defined here as an object or a
84
- * function.
85
- *
86
- * @param o the value to check
87
- * @returns whether it's a complex type or not
88
- */
89
- const isComplexType = (o) => {
90
- // https://jsperf.com/typeof-fn-object/5
91
- o = typeof o;
92
- return o === 'object' || o === 'function';
93
- };
94
- /**
95
- * Helper method for querying a `meta` tag that contains a nonce value
96
- * out of a DOM's head.
97
- *
98
- * @param doc The DOM containing the `head` to query against
99
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
100
- * exists or the tag has no content.
101
- */
102
- function queryNonceMetaTagContent(doc) {
103
- var _a, _b, _c;
104
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
105
- }
106
- /**
107
- * Production h() function based on Preact by
108
- * Jason Miller (@developit)
109
- * Licensed under the MIT License
110
- * https://github.com/developit/preact/blob/master/LICENSE
111
- *
112
- * Modified for Stencil's compiler and vdom
113
- */
114
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
115
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
116
- const h = (nodeName, vnodeData, ...children) => {
117
- let child = null;
118
- let key = null;
119
- let simple = false;
120
- let lastSimple = false;
121
- const vNodeChildren = [];
122
- const walk = (c) => {
123
- for (let i = 0; i < c.length; i++) {
124
- child = c[i];
125
- if (Array.isArray(child)) {
126
- walk(child);
127
- }
128
- else if (child != null && typeof child !== 'boolean') {
129
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
130
- child = String(child);
131
- }
132
- if (simple && lastSimple) {
133
- // If the previous child was simple (string), we merge both
134
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
135
- }
136
- else {
137
- // Append a new vNode, if it's text, we create a text vNode
138
- vNodeChildren.push(simple ? newVNode(null, child) : child);
139
- }
140
- lastSimple = simple;
141
- }
142
- }
143
- };
144
- walk(children);
145
- if (vnodeData) {
146
- if (vnodeData.key) {
147
- key = vnodeData.key;
148
- }
149
- // normalize class / className attributes
150
- {
151
- const classData = vnodeData.className || vnodeData.class;
152
- if (classData) {
153
- vnodeData.class =
154
- typeof classData !== 'object'
155
- ? classData
156
- : Object.keys(classData)
157
- .filter((k) => classData[k])
158
- .join(' ');
159
- }
160
- }
161
- }
162
- if (typeof nodeName === 'function') {
163
- // nodeName is a functional component
164
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
165
- }
166
- const vnode = newVNode(nodeName, null);
167
- vnode.$attrs$ = vnodeData;
168
- if (vNodeChildren.length > 0) {
169
- vnode.$children$ = vNodeChildren;
170
- }
171
- {
172
- vnode.$key$ = key;
173
- }
174
- return vnode;
175
- };
176
- /**
177
- * A utility function for creating a virtual DOM node from a tag and some
178
- * possible text content.
179
- *
180
- * @param tag the tag for this element
181
- * @param text possible text content for the node
182
- * @returns a newly-minted virtual DOM node
183
- */
184
- const newVNode = (tag, text) => {
185
- const vnode = {
186
- $flags$: 0,
187
- $tag$: tag,
188
- $text$: text,
189
- $elm$: null,
190
- $children$: null,
191
- };
192
- {
193
- vnode.$attrs$ = null;
194
- }
195
- {
196
- vnode.$key$ = null;
197
- }
198
- return vnode;
199
- };
200
- const Host = {};
201
- /**
202
- * Check whether a given node is a Host node or not
203
- *
204
- * @param node the virtual DOM node to check
205
- * @returns whether it's a Host node or not
206
- */
207
- const isHost = (node) => node && node.$tag$ === Host;
208
- /**
209
- * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
210
- *
211
- * Note that these functions convert from {@link d.VNode} to
212
- * {@link d.ChildNode} to give functional component developers a friendly
213
- * interface.
214
- */
215
- const vdomFnUtils = {
216
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
217
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
218
- };
219
- /**
220
- * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
221
- * friendlier public interface (hence, 'convertToPublic').
222
- *
223
- * @param node the virtual DOM node to convert
224
- * @returns a converted child node
225
- */
226
- const convertToPublic = (node) => ({
227
- vattrs: node.$attrs$,
228
- vchildren: node.$children$,
229
- vkey: node.$key$,
230
- vname: node.$name$,
231
- vtag: node.$tag$,
232
- vtext: node.$text$,
233
- });
234
- /**
235
- * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
236
- * order to use the resulting object in the virtual DOM. The initial object was
237
- * likely created as part of presenting a public API, so converting it back
238
- * involved making it 'private' again (hence, `convertToPrivate`).
239
- *
240
- * @param node the child node to convert
241
- * @returns a converted virtual DOM node
242
- */
243
- const convertToPrivate = (node) => {
244
- if (typeof node.vtag === 'function') {
245
- const vnodeData = Object.assign({}, node.vattrs);
246
- if (node.vkey) {
247
- vnodeData.key = node.vkey;
248
- }
249
- if (node.vname) {
250
- vnodeData.name = node.vname;
251
- }
252
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
253
- }
254
- const vnode = newVNode(node.vtag, node.vtext);
255
- vnode.$attrs$ = node.vattrs;
256
- vnode.$children$ = node.vchildren;
257
- vnode.$key$ = node.vkey;
258
- vnode.$name$ = node.vname;
259
- return vnode;
260
- };
261
- /**
262
- * Entrypoint of the client-side hydration process. Facilitates calls to hydrate the
263
- * document and all its nodes.
264
- *
265
- * This process will also reconstruct the shadow root and slot DOM nodes for components using shadow DOM.
266
- *
267
- * @param hostElm The element to hydrate.
268
- * @param tagName The element's tag name.
269
- * @param hostId The host ID assigned to the element by the server.
270
- * @param hostRef The host reference for the element.
271
- */
272
- const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
273
- const endHydrate = createTime('hydrateClient', tagName);
274
- const shadowRoot = hostElm.shadowRoot;
275
- const childRenderNodes = [];
276
- const slotNodes = [];
277
- const shadowRootNodes = shadowRoot ? [] : null;
278
- const vnode = (hostRef.$vnode$ = newVNode(tagName, null));
279
- if (!plt.$orgLocNodes$) {
280
- initializeDocumentHydrate(doc.body, (plt.$orgLocNodes$ = new Map()));
281
- }
282
- hostElm[HYDRATE_ID] = hostId;
283
- hostElm.removeAttribute(HYDRATE_ID);
284
- clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
285
- childRenderNodes.map((c) => {
286
- const orgLocationId = c.$hostId$ + '.' + c.$nodeId$;
287
- const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
288
- const node = c.$elm$;
289
- // Put the node back in its original location since the native Shadow DOM
290
- // can handle rendering it its correct location now
291
- if (orgLocationNode && supportsShadow && orgLocationNode['s-en'] === '') {
292
- orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
293
- }
294
- if (!shadowRoot) {
295
- node['s-hn'] = tagName;
296
- if (orgLocationNode) {
297
- node['s-ol'] = orgLocationNode;
298
- node['s-ol']['s-nr'] = node;
299
- }
300
- }
301
- plt.$orgLocNodes$.delete(orgLocationId);
302
- });
303
- if (shadowRoot) {
304
- shadowRootNodes.map((shadowRootNode) => {
305
- if (shadowRootNode) {
306
- shadowRoot.appendChild(shadowRootNode);
307
- }
308
- });
309
- }
310
- endHydrate();
311
- };
312
- /**
313
- * Recursively constructs the virtual node tree for a host element and its children.
314
- * The tree is constructed by parsing the annotations set on the nodes by the server.
315
- *
316
- * In addition to constructing the vNode tree, we also track information about the node's
317
- * descendants like which are slots, which should exist in the shadow root, and which
318
- * are nodes that should be rendered as children of the parent node.
319
- *
320
- * @param parentVNode The vNode representing the parent node.
321
- * @param childRenderNodes An array of all child nodes in the parent's node tree.
322
- * @param slotNodes An array of all slot nodes in the parent's node tree.
323
- * @param shadowRootNodes An array all nodes that should be rendered in the shadow root in the parent's node tree.
324
- * @param hostElm The parent element.
325
- * @param node The node to construct the vNode tree for.
326
- * @param hostId The host ID assigned to the element by the server.
327
- */
328
- const clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
329
- let childNodeType;
330
- let childIdSplt;
331
- let childVNode;
332
- let i;
333
- if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
334
- childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
335
- if (childNodeType) {
336
- // got the node data from the element's attribute
337
- // `${hostId}.${nodeId}.${depth}.${index}`
338
- childIdSplt = childNodeType.split('.');
339
- if (childIdSplt[0] === hostId || childIdSplt[0] === '0') {
340
- childVNode = {
341
- $flags$: 0,
342
- $hostId$: childIdSplt[0],
343
- $nodeId$: childIdSplt[1],
344
- $depth$: childIdSplt[2],
345
- $index$: childIdSplt[3],
346
- $tag$: node.tagName.toLowerCase(),
347
- $elm$: node,
348
- $attrs$: null,
349
- $children$: null,
350
- $key$: null,
351
- $name$: null,
352
- $text$: null,
353
- };
354
- childRenderNodes.push(childVNode);
355
- node.removeAttribute(HYDRATE_CHILD_ID);
356
- // this is a new child vnode
357
- // so ensure its parent vnode has the vchildren array
358
- if (!parentVNode.$children$) {
359
- parentVNode.$children$ = [];
360
- }
361
- // add our child vnode to a specific index of the vnode's children
362
- parentVNode.$children$[childVNode.$index$] = childVNode;
363
- // this is now the new parent vnode for all the next child checks
364
- parentVNode = childVNode;
365
- if (shadowRootNodes && childVNode.$depth$ === '0') {
366
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
367
- }
368
- }
369
- }
370
- // recursively drill down, end to start so we can remove nodes
371
- for (i = node.childNodes.length - 1; i >= 0; i--) {
372
- clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.childNodes[i], hostId);
373
- }
374
- if (node.shadowRoot) {
375
- // keep drilling down through the shadow root nodes
376
- for (i = node.shadowRoot.childNodes.length - 1; i >= 0; i--) {
377
- clientHydrate(parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node.shadowRoot.childNodes[i], hostId);
378
- }
379
- }
380
- }
381
- else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
382
- // `${COMMENT_TYPE}.${hostId}.${nodeId}.${depth}.${index}`
383
- childIdSplt = node.nodeValue.split('.');
384
- if (childIdSplt[1] === hostId || childIdSplt[1] === '0') {
385
- // comment node for either the host id or a 0 host id
386
- childNodeType = childIdSplt[0];
387
- childVNode = {
388
- $flags$: 0,
389
- $hostId$: childIdSplt[1],
390
- $nodeId$: childIdSplt[2],
391
- $depth$: childIdSplt[3],
392
- $index$: childIdSplt[4],
393
- $elm$: node,
394
- $attrs$: null,
395
- $children$: null,
396
- $key$: null,
397
- $name$: null,
398
- $tag$: null,
399
- $text$: null,
400
- };
401
- if (childNodeType === TEXT_NODE_ID) {
402
- childVNode.$elm$ = node.nextSibling;
403
- if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* NODE_TYPE.TextNode */) {
404
- childVNode.$text$ = childVNode.$elm$.textContent;
405
- childRenderNodes.push(childVNode);
406
- // remove the text comment since it's no longer needed
407
- node.remove();
408
- if (!parentVNode.$children$) {
409
- parentVNode.$children$ = [];
410
- }
411
- parentVNode.$children$[childVNode.$index$] = childVNode;
412
- if (shadowRootNodes && childVNode.$depth$ === '0') {
413
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
414
- }
415
- }
416
- }
417
- else if (childVNode.$hostId$ === hostId) {
418
- // this comment node is specifically for this host id
419
- if (childNodeType === SLOT_NODE_ID) {
420
- // `${SLOT_NODE_ID}.${hostId}.${nodeId}.${depth}.${index}.${slotName}`;
421
- childVNode.$tag$ = 'slot';
422
- if (childIdSplt[5]) {
423
- node['s-sn'] = childVNode.$name$ = childIdSplt[5];
424
- }
425
- else {
426
- node['s-sn'] = '';
427
- }
428
- node['s-sr'] = true;
429
- if (shadowRootNodes) {
430
- // browser support shadowRoot and this is a shadow dom component
431
- // create an actual slot element
432
- childVNode.$elm$ = doc.createElement(childVNode.$tag$);
433
- if (childVNode.$name$) {
434
- // add the slot name attribute
435
- childVNode.$elm$.setAttribute('name', childVNode.$name$);
436
- }
437
- // insert the new slot element before the slot comment
438
- node.parentNode.insertBefore(childVNode.$elm$, node);
439
- // remove the slot comment since it's not needed for shadow
440
- node.remove();
441
- if (childVNode.$depth$ === '0') {
442
- shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
443
- }
444
- }
445
- slotNodes.push(childVNode);
446
- if (!parentVNode.$children$) {
447
- parentVNode.$children$ = [];
448
- }
449
- parentVNode.$children$[childVNode.$index$] = childVNode;
450
- }
451
- else if (childNodeType === CONTENT_REF_ID) {
452
- // `${CONTENT_REF_ID}.${hostId}`;
453
- if (shadowRootNodes) {
454
- // remove the content ref comment since it's not needed for shadow
455
- node.remove();
456
- }
457
- }
458
- }
459
- }
460
- }
461
- else if (parentVNode && parentVNode.$tag$ === 'style') {
462
- const vnode = newVNode(null, node.textContent);
463
- vnode.$elm$ = node;
464
- vnode.$index$ = '0';
465
- parentVNode.$children$ = [vnode];
466
- }
467
- };
468
- /**
469
- * Recursively locate any comments representing an original location for a node in a node's
470
- * children or shadowRoot children.
471
- *
472
- * @param node The node to search.
473
- * @param orgLocNodes A map of the original location annotation and the current node being searched.
474
- */
475
- const initializeDocumentHydrate = (node, orgLocNodes) => {
476
- if (node.nodeType === 1 /* NODE_TYPE.ElementNode */) {
477
- let i = 0;
478
- for (; i < node.childNodes.length; i++) {
479
- initializeDocumentHydrate(node.childNodes[i], orgLocNodes);
480
- }
481
- if (node.shadowRoot) {
482
- for (i = 0; i < node.shadowRoot.childNodes.length; i++) {
483
- initializeDocumentHydrate(node.shadowRoot.childNodes[i], orgLocNodes);
484
- }
485
- }
486
- }
487
- else if (node.nodeType === 8 /* NODE_TYPE.CommentNode */) {
488
- const childIdSplt = node.nodeValue.split('.');
489
- if (childIdSplt[0] === ORG_LOCATION_ID) {
490
- orgLocNodes.set(childIdSplt[1] + '.' + childIdSplt[2], node);
491
- node.nodeValue = '';
492
- // useful to know if the original location is
493
- // the root light-dom of a shadow dom component
494
- node['s-en'] = childIdSplt[3];
495
- }
496
- }
497
- };
498
- /**
499
- * Parse a new property value for a given property type.
500
- *
501
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
502
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
503
- * 1. `any`, the type given to `propValue` in the function signature
504
- * 2. the type stored from `propType`.
505
- *
506
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
507
- *
508
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
509
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
510
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
511
- * ```tsx
512
- * <my-cmp prop-val={0}></my-cmp>
513
- * ```
514
- *
515
- * HTML prop values on the other hand, will always a string
516
- *
517
- * @param propValue the new value to coerce to some type
518
- * @param propType the type of the prop, expressed as a binary number
519
- * @returns the parsed/coerced value
520
- */
521
- const parsePropertyValue = (propValue, propType) => {
522
- // ensure this value is of the correct prop type
523
- if (propValue != null && !isComplexType(propValue)) {
524
- if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
525
- // per the HTML spec, any string value means it is a boolean true value
526
- // but we'll cheat here and say that the string "false" is the boolean false
527
- return propValue === 'false' ? false : propValue === '' || !!propValue;
528
- }
529
- if (propType & 2 /* MEMBER_FLAGS.Number */) {
530
- // force it to be a number
531
- return parseFloat(propValue);
532
- }
533
- if (propType & 1 /* MEMBER_FLAGS.String */) {
534
- // could have been passed as a number or boolean
535
- // but we still want it as a string
536
- return String(propValue);
537
- }
538
- // redundant return here for better minification
539
- return propValue;
540
- }
541
- // not sure exactly what type we want
542
- // so no need to change to a different type
543
- return propValue;
544
- };
545
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
546
- const createEvent = (ref, name, flags) => {
547
- const elm = getElement(ref);
548
- return {
549
- emit: (detail) => {
550
- return emitEvent(elm, name, {
551
- bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
552
- composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
553
- cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
554
- detail,
555
- });
556
- },
557
- };
558
- };
559
- /**
560
- * Helper function to create & dispatch a custom Event on a provided target
561
- * @param elm the target of the Event
562
- * @param name the name to give the custom Event
563
- * @param opts options for configuring a custom Event
564
- * @returns the custom Event
565
- */
566
- const emitEvent = (elm, name, opts) => {
567
- const ev = plt.ce(name, opts);
568
- elm.dispatchEvent(ev);
569
- return ev;
570
- };
571
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
572
- const registerStyle = (scopeId, cssText, allowCS) => {
573
- let style = styles.get(scopeId);
574
- if (supportsConstructableStylesheets && allowCS) {
575
- style = (style || new CSSStyleSheet());
576
- if (typeof style === 'string') {
577
- style = cssText;
578
- }
579
- else {
580
- style.replaceSync(cssText);
581
- }
582
- }
583
- else {
584
- style = cssText;
585
- }
586
- styles.set(scopeId, style);
587
- };
588
- const addStyle = (styleContainerNode, cmpMeta, mode) => {
589
- var _a;
590
- const scopeId = getScopeId(cmpMeta);
591
- const style = styles.get(scopeId);
592
- // if an element is NOT connected then getRootNode() will return the wrong root node
593
- // so the fallback is to always use the document for the root node in those cases
594
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
595
- if (style) {
596
- if (typeof style === 'string') {
597
- styleContainerNode = styleContainerNode.head || styleContainerNode;
598
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
599
- let styleElm;
600
- if (!appliedStyles) {
601
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
602
- }
603
- if (!appliedStyles.has(scopeId)) {
604
- if (styleContainerNode.host &&
605
- (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId}"]`))) {
606
- // This is only happening on native shadow-dom, do not needs CSS var shim
607
- styleElm.innerHTML = style;
608
- }
609
- else {
610
- styleElm = doc.createElement('style');
611
- styleElm.innerHTML = style;
612
- // Apply CSP nonce to the style tag if it exists
613
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
614
- if (nonce != null) {
615
- styleElm.setAttribute('nonce', nonce);
616
- }
617
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
618
- }
619
- // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
620
- if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
621
- styleElm.innerHTML += SLOT_FB_CSS;
622
- }
623
- if (appliedStyles) {
624
- appliedStyles.add(scopeId);
625
- }
626
- }
627
- }
628
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
629
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
630
- }
631
- }
632
- return scopeId;
633
- };
634
- const attachStyles = (hostRef) => {
635
- const cmpMeta = hostRef.$cmpMeta$;
636
- const elm = hostRef.$hostElement$;
637
- const flags = cmpMeta.$flags$;
638
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
639
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
640
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
641
- // only required when we're NOT using native shadow dom (slot)
642
- // or this browser doesn't support native shadow dom
643
- // and this host element was NOT created with SSR
644
- // let's pick out the inner content for slot projection
645
- // create a node to represent where the original
646
- // content was first placed, which is useful later on
647
- // DOM WRITE!!
648
- elm['s-sc'] = scopeId;
649
- elm.classList.add(scopeId + '-h');
650
- if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
651
- elm.classList.add(scopeId + '-s');
652
- }
653
- }
654
- endAttachStyles();
655
- };
656
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
657
- const convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, '$1{');
658
- /**
659
- * Production setAccessor() function based on Preact by
660
- * Jason Miller (@developit)
661
- * Licensed under the MIT License
662
- * https://github.com/developit/preact/blob/master/LICENSE
663
- *
664
- * Modified for Stencil's compiler and vdom
665
- */
666
- /**
667
- * When running a VDom render set properties present on a VDom node onto the
668
- * corresponding HTML element.
669
- *
670
- * Note that this function has special functionality for the `class`,
671
- * `style`, `key`, and `ref` attributes, as well as event handlers (like
672
- * `onClick`, etc). All others are just passed through as-is.
673
- *
674
- * @param elm the HTMLElement onto which attributes should be set
675
- * @param memberName the name of the attribute to set
676
- * @param oldValue the old value for the attribute
677
- * @param newValue the new value for the attribute
678
- * @param isSvg whether we're in an svg context or not
679
- * @param flags bitflags for Vdom variables
680
- */
681
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
682
- if (oldValue !== newValue) {
683
- let isProp = isMemberInElement(elm, memberName);
684
- let ln = memberName.toLowerCase();
685
- if (memberName === 'class') {
686
- const classList = elm.classList;
687
- const oldClasses = parseClassList(oldValue);
688
- const newClasses = parseClassList(newValue);
689
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
690
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
691
- }
692
- else if (memberName === 'style') {
693
- // update style attribute, css properties and values
694
- {
695
- for (const prop in oldValue) {
696
- if (!newValue || newValue[prop] == null) {
697
- if (prop.includes('-')) {
698
- elm.style.removeProperty(prop);
699
- }
700
- else {
701
- elm.style[prop] = '';
702
- }
703
- }
704
- }
705
- }
706
- for (const prop in newValue) {
707
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
708
- if (prop.includes('-')) {
709
- elm.style.setProperty(prop, newValue[prop]);
710
- }
711
- else {
712
- elm.style[prop] = newValue[prop];
713
- }
714
- }
715
- }
716
- }
717
- else if (memberName === 'key')
718
- ;
719
- else if (memberName === 'ref') {
720
- // minifier will clean this up
721
- if (newValue) {
722
- newValue(elm);
723
- }
724
- }
725
- else if ((!isProp ) &&
726
- memberName[0] === 'o' &&
727
- memberName[1] === 'n') {
728
- // Event Handlers
729
- // so if the member name starts with "on" and the 3rd characters is
730
- // a capital letter, and it's not already a member on the element,
731
- // then we're assuming it's an event listener
732
- if (memberName[2] === '-') {
733
- // on- prefixed events
734
- // allows to be explicit about the dom event to listen without any magic
735
- // under the hood:
736
- // <my-cmp on-click> // listens for "click"
737
- // <my-cmp on-Click> // listens for "Click"
738
- // <my-cmp on-ionChange> // listens for "ionChange"
739
- // <my-cmp on-EVENTS> // listens for "EVENTS"
740
- memberName = memberName.slice(3);
741
- }
742
- else if (isMemberInElement(win, ln)) {
743
- // standard event
744
- // the JSX attribute could have been "onMouseOver" and the
745
- // member name "onmouseover" is on the window's prototype
746
- // so let's add the listener "mouseover", which is all lowercased
747
- memberName = ln.slice(2);
748
- }
749
- else {
750
- // custom event
751
- // the JSX attribute could have been "onMyCustomEvent"
752
- // so let's trim off the "on" prefix and lowercase the first character
753
- // and add the listener "myCustomEvent"
754
- // except for the first character, we keep the event name case
755
- memberName = ln[2] + memberName.slice(3);
756
- }
757
- if (oldValue || newValue) {
758
- // Need to account for "capture" events.
759
- // If the event name ends with "Capture", we'll update the name to remove
760
- // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
761
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
762
- // Make sure we only replace the last instance of "Capture"
763
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
764
- if (oldValue) {
765
- plt.rel(elm, memberName, oldValue, capture);
766
- }
767
- if (newValue) {
768
- plt.ael(elm, memberName, newValue, capture);
769
- }
770
- }
771
- }
772
- else {
773
- // Set property if it exists and it's not a SVG
774
- const isComplex = isComplexType(newValue);
775
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
776
- try {
777
- if (!elm.tagName.includes('-')) {
778
- const n = newValue == null ? '' : newValue;
779
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
780
- if (memberName === 'list') {
781
- isProp = false;
782
- }
783
- else if (oldValue == null || elm[memberName] != n) {
784
- elm[memberName] = n;
785
- }
786
- }
787
- else {
788
- elm[memberName] = newValue;
789
- }
790
- }
791
- catch (e) {
792
- /**
793
- * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
794
- */
795
- }
796
- }
797
- /**
798
- * Need to manually update attribute if:
799
- * - memberName is not an attribute
800
- * - if we are rendering the host element in order to reflect attribute
801
- * - if it's a SVG, since properties might not work in <svg>
802
- * - if the newValue is null/undefined or 'false'.
803
- */
804
- let xlink = false;
805
- {
806
- if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
807
- memberName = ln;
808
- xlink = true;
809
- }
810
- }
811
- if (newValue == null || newValue === false) {
812
- if (newValue !== false || elm.getAttribute(memberName) === '') {
813
- if (xlink) {
814
- elm.removeAttributeNS(XLINK_NS, memberName);
815
- }
816
- else {
817
- elm.removeAttribute(memberName);
818
- }
819
- }
820
- }
821
- else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
822
- newValue = newValue === true ? '' : newValue;
823
- if (xlink) {
824
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
825
- }
826
- else {
827
- elm.setAttribute(memberName, newValue);
828
- }
829
- }
830
- }
831
- }
832
- };
833
- const parseClassListRegex = /\s/;
834
- /**
835
- * Parsed a string of classnames into an array
836
- * @param value className string, e.g. "foo bar baz"
837
- * @returns list of classes, e.g. ["foo", "bar", "baz"]
838
- */
839
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
840
- const CAPTURE_EVENT_SUFFIX = 'Capture';
841
- const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
842
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
843
- // if the element passed in is a shadow root, which is a document fragment
844
- // then we want to be adding attrs/props to the shadow root's "host" element
845
- // if it's not a shadow root, then we add attrs/props to the same element
846
- const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
847
- ? newVnode.$elm$.host
848
- : newVnode.$elm$;
849
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
850
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
851
- {
852
- // remove attributes no longer present on the vnode by setting them to undefined
853
- for (memberName in oldVnodeAttrs) {
854
- if (!(memberName in newVnodeAttrs)) {
855
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
856
- }
857
- }
858
- }
859
- // add new & update changed attributes
860
- for (memberName in newVnodeAttrs) {
861
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
862
- }
863
- };
864
- /**
865
- * Create a DOM Node corresponding to one of the children of a given VNode.
866
- *
867
- * @param oldParentVNode the parent VNode from the previous render
868
- * @param newParentVNode the parent VNode from the current render
869
- * @param childIndex the index of the VNode, in the _new_ parent node's
870
- * children, for which we will create a new DOM node
871
- * @param parentElm the parent DOM node which our new node will be a child of
872
- * @returns the newly created node
873
- */
874
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
875
- // tslint:disable-next-line: prefer-const
876
- const newVNode = newParentVNode.$children$[childIndex];
877
- let i = 0;
878
- let elm;
879
- let childNode;
880
- if (newVNode.$text$ !== null) {
881
- // create text node
882
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
883
- }
884
- else {
885
- if (!isSvgMode) {
886
- isSvgMode = newVNode.$tag$ === 'svg';
887
- }
888
- // create element
889
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
890
- );
891
- if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
892
- isSvgMode = false;
893
- }
894
- // add css classes, attrs, props, listeners, etc.
895
- {
896
- updateElement(null, newVNode, isSvgMode);
897
- }
898
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
899
- // if there is a scopeId and this is the initial render
900
- // then let's add the scopeId as a css class
901
- elm.classList.add((elm['s-si'] = scopeId));
902
- }
903
- if (newVNode.$children$) {
904
- for (i = 0; i < newVNode.$children$.length; ++i) {
905
- // create the node
906
- childNode = createElm(oldParentVNode, newVNode, i);
907
- // return node could have been null
908
- if (childNode) {
909
- // append our new node
910
- elm.appendChild(childNode);
911
- }
912
- }
913
- }
914
- {
915
- if (newVNode.$tag$ === 'svg') {
916
- // Only reset the SVG context when we're exiting <svg> element
917
- isSvgMode = false;
918
- }
919
- else if (elm.tagName === 'foreignObject') {
920
- // Reenter SVG context when we're exiting <foreignObject> element
921
- isSvgMode = true;
922
- }
923
- }
924
- }
925
- // This needs to always happen so we can hide nodes that are projected
926
- // to another component but don't end up in a slot
927
- elm['s-hn'] = hostTagName;
928
- return elm;
929
- };
930
- /**
931
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
932
- * add them to the DOM in the appropriate place.
933
- *
934
- * @param parentElm the DOM node which should be used as a parent for the new
935
- * DOM nodes
936
- * @param before a child of the `parentElm` which the new children should be
937
- * inserted before (optional)
938
- * @param parentVNode the parent virtual DOM node
939
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
940
- * @param startIdx the index in the child virtual DOM nodes at which to start
941
- * creating DOM nodes (inclusive)
942
- * @param endIdx the index in the child virtual DOM nodes at which to stop
943
- * creating DOM nodes (inclusive)
944
- */
945
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
946
- let containerElm = (parentElm);
947
- let childNode;
948
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
949
- containerElm = containerElm.shadowRoot;
950
- }
951
- for (; startIdx <= endIdx; ++startIdx) {
952
- if (vnodes[startIdx]) {
953
- childNode = createElm(null, parentVNode, startIdx);
954
- if (childNode) {
955
- vnodes[startIdx].$elm$ = childNode;
956
- containerElm.insertBefore(childNode, before);
957
- }
958
- }
959
- }
960
- };
961
- /**
962
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
963
- * This can be used to, for instance, clean up after a list of children which
964
- * should no longer be shown.
965
- *
966
- * This function also handles some of Stencil's slot relocation logic.
967
- *
968
- * @param vnodes a list of virtual DOM nodes to remove
969
- * @param startIdx the index at which to start removing nodes (inclusive)
970
- * @param endIdx the index at which to stop removing nodes (inclusive)
971
- */
972
- const removeVnodes = (vnodes, startIdx, endIdx) => {
973
- for (let index = startIdx; index <= endIdx; ++index) {
974
- const vnode = vnodes[index];
975
- if (vnode) {
976
- const elm = vnode.$elm$;
977
- nullifyVNodeRefs(vnode);
978
- if (elm) {
979
- // remove the vnode's element from the dom
980
- elm.remove();
981
- }
982
- }
983
- }
984
- };
985
- /**
986
- * Reconcile the children of a new VNode with the children of an old VNode by
987
- * traversing the two collections of children, identifying nodes that are
988
- * conserved or changed, calling out to `patch` to make any necessary
989
- * updates to the DOM, and rearranging DOM nodes as needed.
990
- *
991
- * The algorithm for reconciling children works by analyzing two 'windows' onto
992
- * the two arrays of children (`oldCh` and `newCh`). We keep track of the
993
- * 'windows' by storing start and end indices and references to the
994
- * corresponding array entries. Initially the two 'windows' are basically equal
995
- * to the entire array, but we progressively narrow the windows until there are
996
- * no children left to update by doing the following:
997
- *
998
- * 1. Skip any `null` entries at the beginning or end of the two arrays, so
999
- * that if we have an initial array like the following we'll end up dealing
1000
- * only with a window bounded by the highlighted elements:
1001
- *
1002
- * [null, null, VNode1 , ... , VNode2, null, null]
1003
- * ^^^^^^ ^^^^^^
1004
- *
1005
- * 2. Check to see if the elements at the head and tail positions are equal
1006
- * across the windows. This will basically detect elements which haven't
1007
- * been added, removed, or changed position, i.e. if you had the following
1008
- * VNode elements (represented as HTML):
1009
- *
1010
- * oldVNode: `<div><p><span>HEY</span></p></div>`
1011
- * newVNode: `<div><p><span>THERE</span></p></div>`
1012
- *
1013
- * Then when comparing the children of the `<div>` tag we check the equality
1014
- * of the VNodes corresponding to the `<p>` tags and, since they are the
1015
- * same tag in the same position, we'd be able to avoid completely
1016
- * re-rendering the subtree under them with a new DOM element and would just
1017
- * call out to `patch` to handle reconciling their children and so on.
1018
- *
1019
- * 3. Check, for both windows, to see if the element at the beginning of the
1020
- * window corresponds to the element at the end of the other window. This is
1021
- * a heuristic which will let us identify _some_ situations in which
1022
- * elements have changed position, for instance it _should_ detect that the
1023
- * children nodes themselves have not changed but merely moved in the
1024
- * following example:
1025
- *
1026
- * oldVNode: `<div><element-one /><element-two /></div>`
1027
- * newVNode: `<div><element-two /><element-one /></div>`
1028
- *
1029
- * If we find cases like this then we also need to move the concrete DOM
1030
- * elements corresponding to the moved children to write the re-order to the
1031
- * DOM.
1032
- *
1033
- * 4. Finally, if VNodes have the `key` attribute set on them we check for any
1034
- * nodes in the old children which have the same key as the first element in
1035
- * our window on the new children. If we find such a node we handle calling
1036
- * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
1037
- * what we find.
1038
- *
1039
- * Finally, once we've narrowed our 'windows' to the point that either of them
1040
- * collapse (i.e. they have length 0) we then handle any remaining VNode
1041
- * insertion or deletion that needs to happen to get a DOM state that correctly
1042
- * reflects the new child VNodes. If, for instance, after our window on the old
1043
- * children has collapsed we still have more nodes on the new children that
1044
- * we haven't dealt with yet then we need to add them, or if the new children
1045
- * collapse but we still have unhandled _old_ children then we need to make
1046
- * sure the corresponding DOM nodes are removed.
1047
- *
1048
- * @param parentElm the node into which the parent VNode is rendered
1049
- * @param oldCh the old children of the parent node
1050
- * @param newVNode the new VNode which will replace the parent
1051
- * @param newCh the new children of the parent node
1052
- * @param isInitialRender whether or not this is the first render of the vdom
1053
- */
1054
- const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
1055
- let oldStartIdx = 0;
1056
- let newStartIdx = 0;
1057
- let idxInOld = 0;
1058
- let i = 0;
1059
- let oldEndIdx = oldCh.length - 1;
1060
- let oldStartVnode = oldCh[0];
1061
- let oldEndVnode = oldCh[oldEndIdx];
1062
- let newEndIdx = newCh.length - 1;
1063
- let newStartVnode = newCh[0];
1064
- let newEndVnode = newCh[newEndIdx];
1065
- let node;
1066
- let elmToMove;
1067
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1068
- if (oldStartVnode == null) {
1069
- // VNode might have been moved left
1070
- oldStartVnode = oldCh[++oldStartIdx];
1071
- }
1072
- else if (oldEndVnode == null) {
1073
- oldEndVnode = oldCh[--oldEndIdx];
1074
- }
1075
- else if (newStartVnode == null) {
1076
- newStartVnode = newCh[++newStartIdx];
1077
- }
1078
- else if (newEndVnode == null) {
1079
- newEndVnode = newCh[--newEndIdx];
1080
- }
1081
- else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1082
- // if the start nodes are the same then we should patch the new VNode
1083
- // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
1084
- // indices to reflect that. We don't need to move any DOM Nodes around
1085
- // since things are matched up in order.
1086
- patch(oldStartVnode, newStartVnode, isInitialRender);
1087
- oldStartVnode = oldCh[++oldStartIdx];
1088
- newStartVnode = newCh[++newStartIdx];
1089
- }
1090
- else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1091
- // likewise, if the end nodes are the same we patch new onto old and
1092
- // decrement our end indices, and also likewise in this case we don't
1093
- // need to move any DOM Nodes.
1094
- patch(oldEndVnode, newEndVnode, isInitialRender);
1095
- oldEndVnode = oldCh[--oldEndIdx];
1096
- newEndVnode = newCh[--newEndIdx];
1097
- }
1098
- else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1099
- patch(oldStartVnode, newEndVnode, isInitialRender);
1100
- // We need to move the element for `oldStartVnode` into a position which
1101
- // will be appropriate for `newEndVnode`. For this we can use
1102
- // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
1103
- // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
1104
- // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
1105
- //
1106
- // <old-start-node />
1107
- // <some-intervening-node />
1108
- // <old-end-node />
1109
- // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
1110
- // <next-sibling />
1111
- //
1112
- // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
1113
- // the node for `oldStartVnode` at the end of the children of
1114
- // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
1115
- // aren't any siblings, and passing `null` to `Node.insertBefore` will
1116
- // append it to the children of the parent element.
1117
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1118
- oldStartVnode = oldCh[++oldStartIdx];
1119
- newEndVnode = newCh[--newEndIdx];
1120
- }
1121
- else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1122
- patch(oldEndVnode, newStartVnode, isInitialRender);
1123
- // We've already checked above if `oldStartVnode` and `newStartVnode` are
1124
- // the same node, so since we're here we know that they are not. Thus we
1125
- // can move the element for `oldEndVnode` _before_ the element for
1126
- // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
1127
- // future.
1128
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
1129
- oldEndVnode = oldCh[--oldEndIdx];
1130
- newStartVnode = newCh[++newStartIdx];
1131
- }
1132
- else {
1133
- // Here we do some checks to match up old and new nodes based on the
1134
- // `$key$` attribute, which is set by putting a `key="my-key"` attribute
1135
- // in the JSX for a DOM element in the implementation of a Stencil
1136
- // component.
1137
- //
1138
- // First we check to see if there are any nodes in the array of old
1139
- // children which have the same key as the first node in the new
1140
- // children.
1141
- idxInOld = -1;
1142
- {
1143
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
1144
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
1145
- idxInOld = i;
1146
- break;
1147
- }
1148
- }
1149
- }
1150
- if (idxInOld >= 0) {
1151
- // We found a node in the old children which matches up with the first
1152
- // node in the new children! So let's deal with that
1153
- elmToMove = oldCh[idxInOld];
1154
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1155
- // the tag doesn't match so we'll need a new DOM element
1156
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
1157
- }
1158
- else {
1159
- patch(elmToMove, newStartVnode, isInitialRender);
1160
- // invalidate the matching old node so that we won't try to update it
1161
- // again later on
1162
- oldCh[idxInOld] = undefined;
1163
- node = elmToMove.$elm$;
1164
- }
1165
- newStartVnode = newCh[++newStartIdx];
1166
- }
1167
- else {
1168
- // We either didn't find an element in the old children that matches
1169
- // the key of the first new child OR the build is not using `key`
1170
- // attributes at all. In either case we need to create a new element
1171
- // for the new node.
1172
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
1173
- newStartVnode = newCh[++newStartIdx];
1174
- }
1175
- if (node) {
1176
- // if we created a new node then handle inserting it to the DOM
1177
- {
1178
- oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
1179
- }
1180
- }
1181
- }
1182
- }
1183
- if (oldStartIdx > oldEndIdx) {
1184
- // we have some more new nodes to add which don't match up with old nodes
1185
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
1186
- }
1187
- else if (newStartIdx > newEndIdx) {
1188
- // there are nodes in the `oldCh` array which no longer correspond to nodes
1189
- // in the new array, so lets remove them (which entails cleaning up the
1190
- // relevant DOM nodes)
1191
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1192
- }
1193
- };
1194
- /**
1195
- * Compare two VNodes to determine if they are the same
1196
- *
1197
- * **NB**: This function is an equality _heuristic_ based on the available
1198
- * information set on the two VNodes and can be misleading under certain
1199
- * circumstances. In particular, if the two nodes do not have `key` attrs
1200
- * (available under `$key$` on VNodes) then the function falls back on merely
1201
- * checking that they have the same tag.
1202
- *
1203
- * So, in other words, if `key` attrs are not set on VNodes which may be
1204
- * changing order within a `children` array or something along those lines then
1205
- * we could obtain a false negative and then have to do needless re-rendering
1206
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
1207
- *
1208
- * @param leftVNode the first VNode to check
1209
- * @param rightVNode the second VNode to check
1210
- * @param isInitialRender whether or not this is the first render of the vdom
1211
- * @returns whether they're equal or not
1212
- */
1213
- const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1214
- // compare if two vnode to see if they're "technically" the same
1215
- // need to have the same element tag, and same key to be the same
1216
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1217
- // this will be set if JSX tags in the build have `key` attrs set on them
1218
- // we only want to check this if we're not on the first render since on
1219
- // first render `leftVNode.$key$` will always be `null`, so we can be led
1220
- // astray and, for instance, accidentally delete a DOM node that we want to
1221
- // keep around.
1222
- if (!isInitialRender) {
1223
- return leftVNode.$key$ === rightVNode.$key$;
1224
- }
1225
- return true;
1226
- }
1227
- return false;
1228
- };
1229
- /**
1230
- * Handle reconciling an outdated VNode with a new one which corresponds to
1231
- * it. This function handles flushing updates to the DOM and reconciling the
1232
- * children of the two nodes (if any).
1233
- *
1234
- * @param oldVNode an old VNode whose DOM element and children we want to update
1235
- * @param newVNode a new VNode representing an updated version of the old one
1236
- * @param isInitialRender whether or not this is the first render of the vdom
1237
- */
1238
- const patch = (oldVNode, newVNode, isInitialRender = false) => {
1239
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
1240
- const oldChildren = oldVNode.$children$;
1241
- const newChildren = newVNode.$children$;
1242
- const tag = newVNode.$tag$;
1243
- const text = newVNode.$text$;
1244
- if (text === null) {
1245
- {
1246
- // test if we're rendering an svg element, or still rendering nodes inside of one
1247
- // only add this to the when the compiler sees we're using an svg somewhere
1248
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
1249
- }
1250
- {
1251
- if (tag === 'slot' && !useNativeShadowDom) ;
1252
- else {
1253
- // either this is the first render of an element OR it's an update
1254
- // AND we already know it's possible it could have changed
1255
- // this updates the element's css classes, attrs, props, listeners, etc.
1256
- updateElement(oldVNode, newVNode, isSvgMode);
1257
- }
1258
- }
1259
- if (oldChildren !== null && newChildren !== null) {
1260
- // looks like there's child vnodes for both the old and new vnodes
1261
- // so we need to call `updateChildren` to reconcile them
1262
- updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
1263
- }
1264
- else if (newChildren !== null) {
1265
- // no old child vnodes, but there are new child vnodes to add
1266
- if (oldVNode.$text$ !== null) {
1267
- // the old vnode was text, so be sure to clear it out
1268
- elm.textContent = '';
1269
- }
1270
- // add the new vnode children
1271
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1272
- }
1273
- else if (oldChildren !== null) {
1274
- // no new child vnodes, but there are old child vnodes to remove
1275
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1276
- }
1277
- if (isSvgMode && tag === 'svg') {
1278
- isSvgMode = false;
1279
- }
1280
- }
1281
- else if (oldVNode.$text$ !== text) {
1282
- // update the text content for the text only vnode
1283
- // and also only if the text is different than before
1284
- elm.data = text;
1285
- }
1286
- };
1287
- /**
1288
- * Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
1289
- * are slot fallbacks nodes.
1290
- *
1291
- * A slot fallback node should be visible by default. Then, it should be
1292
- * conditionally hidden if:
1293
- *
1294
- * - it has a sibling with a `slot` property set to its slot name or if
1295
- * - it is a default fallback slot node, in which case we hide if it has any
1296
- * content
1297
- *
1298
- * @param elm the element of interest
1299
- */
1300
- const updateFallbackSlotVisibility = (elm) => {
1301
- const childNodes = elm.childNodes;
1302
- for (const childNode of childNodes) {
1303
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1304
- if (childNode['s-sr']) {
1305
- // this is a slot fallback node
1306
- // get the slot name for this slot reference node
1307
- const slotName = childNode['s-sn'];
1308
- // by default always show a fallback slot node
1309
- // then hide it if there are other slots in the light dom
1310
- childNode.hidden = false;
1311
- // we need to check all of its sibling nodes in order to see if
1312
- // `childNode` should be hidden
1313
- for (const siblingNode of childNodes) {
1314
- // Don't check the node against itself
1315
- if (siblingNode !== childNode) {
1316
- if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
1317
- // this sibling node is from a different component OR is a named
1318
- // fallback slot node
1319
- if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
1320
- (slotName === siblingNode.getAttribute('slot') || slotName === siblingNode['s-sn'])) {
1321
- childNode.hidden = true;
1322
- break;
1323
- }
1324
- }
1325
- else {
1326
- // this is a default fallback slot node
1327
- // any element or text node (with content)
1328
- // should hide the default fallback slot node
1329
- if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1330
- (siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
1331
- childNode.hidden = true;
1332
- break;
1333
- }
1334
- }
1335
- }
1336
- }
1337
- }
1338
- // keep drilling down
1339
- updateFallbackSlotVisibility(childNode);
1340
- }
1341
- }
1342
- };
1343
- /**
1344
- * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
1345
- * them with `null`. This signals that the DOM element corresponding to the VDom
1346
- * node has been removed from the DOM.
1347
- *
1348
- * @param vNode a virtual DOM node
1349
- */
1350
- const nullifyVNodeRefs = (vNode) => {
1351
- {
1352
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1353
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1354
- }
1355
- };
1356
- /**
1357
- * The main entry point for Stencil's virtual DOM-based rendering engine
1358
- *
1359
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1360
- * function will handle creating a virtual DOM tree with a single root, patching
1361
- * the current virtual DOM tree onto an old one (if any), dealing with slot
1362
- * relocation, and reflecting attributes.
1363
- *
1364
- * @param hostRef data needed to root and render the virtual DOM tree, such as
1365
- * the DOM node into which it should be rendered.
1366
- * @param renderFnResults the virtual DOM nodes to be rendered
1367
- * @param isInitialLoad whether or not this is the first call after page load
1368
- */
1369
- const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1370
- const hostElm = hostRef.$hostElement$;
1371
- const cmpMeta = hostRef.$cmpMeta$;
1372
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1373
- // if `renderFnResults` is a Host node then we can use it directly. If not,
1374
- // we need to call `h` again to wrap the children of our component in a
1375
- // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
1376
- // implicitly that the top-level vdom node is 1) an only child and 2)
1377
- // contains attrs that need to be set on the host element.
1378
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1379
- hostTagName = hostElm.tagName;
1380
- if (cmpMeta.$attrsToReflect$) {
1381
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1382
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1383
- }
1384
- // On the first render and *only* on the first render we want to check for
1385
- // any attributes set on the host element which are also set on the vdom
1386
- // node. If we find them, we override the value on the VDom node attrs with
1387
- // the value from the host element, which allows developers building apps
1388
- // with Stencil components to override e.g. the `role` attribute on a
1389
- // component even if it's already set on the `Host`.
1390
- if (isInitialLoad && rootVnode.$attrs$) {
1391
- for (const key of Object.keys(rootVnode.$attrs$)) {
1392
- // We have a special implementation in `setAccessor` for `style` and
1393
- // `class` which reconciles values coming from the VDom with values
1394
- // already present on the DOM element, so we don't want to override those
1395
- // attributes on the VDom tree with values from the host element if they
1396
- // are present.
1397
- //
1398
- // Likewise, `ref` and `key` are special internal values for the Stencil
1399
- // runtime and we don't want to override those either.
1400
- if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
1401
- rootVnode.$attrs$[key] = hostElm[key];
1402
- }
1403
- }
1404
- }
1405
- rootVnode.$tag$ = null;
1406
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1407
- hostRef.$vnode$ = rootVnode;
1408
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1409
- {
1410
- scopeId = hostElm['s-sc'];
1411
- }
1412
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1413
- // synchronous patch
1414
- patch(oldVNode, rootVnode, isInitialLoad);
1415
- };
1416
- const attachToAncestor = (hostRef, ancestorComponent) => {
1417
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1418
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1419
- }
1420
- };
1421
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1422
- {
1423
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1424
- }
1425
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1426
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1427
- return;
1428
- }
1429
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1430
- // there is no ancestor component or the ancestor component
1431
- // has already fired off its lifecycle update then
1432
- // fire off the initial update
1433
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1434
- return writeTask(dispatch) ;
1435
- };
1436
- /**
1437
- * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
1438
- * component lifecycle methods like `componentWillLoad` as well as
1439
- * {@link updateComponent}, which will kick off the virtual DOM re-render.
1440
- *
1441
- * @param hostRef a reference to a host DOM node
1442
- * @param isInitialLoad whether we're on the initial load or not
1443
- * @returns an empty Promise which is used to enqueue a series of operations for
1444
- * the component
1445
- */
1446
- const dispatchHooks = (hostRef, isInitialLoad) => {
1447
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1448
- const instance = hostRef.$lazyInstance$ ;
1449
- // We're going to use this variable together with `enqueue` to implement a
1450
- // little promise-based queue. We start out with it `undefined`. When we add
1451
- // the first function to the queue we'll set this variable to be that
1452
- // function's return value. When we attempt to add subsequent values to the
1453
- // queue we'll check that value and, if it was a `Promise`, we'll then chain
1454
- // the new function off of that `Promise` using `.then()`. This will give our
1455
- // queue two nice properties:
1456
- //
1457
- // 1. If all functions added to the queue are synchronous they'll be called
1458
- // synchronously right away.
1459
- // 2. If all functions added to the queue are asynchronous they'll all be
1460
- // called in order after `dispatchHooks` exits.
1461
- let maybePromise;
1462
- if (isInitialLoad) {
1463
- {
1464
- hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1465
- if (hostRef.$queuedListeners$) {
1466
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1467
- hostRef.$queuedListeners$ = undefined;
1468
- }
1469
- }
1470
- {
1471
- // If `componentWillLoad` returns a `Promise` then we want to wait on
1472
- // whatever's going on in that `Promise` before we launch into
1473
- // rendering the component, doing other lifecycle stuff, etc. So
1474
- // in that case we assign the returned promise to the variable we
1475
- // declared above to hold a possible 'queueing' Promise
1476
- maybePromise = safeCall(instance, 'componentWillLoad');
1477
- }
1478
- }
1479
- {
1480
- maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
1481
- }
1482
- endSchedule();
1483
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1484
- };
1485
- /**
1486
- * This function uses a Promise to implement a simple first-in, first-out queue
1487
- * of functions to be called.
1488
- *
1489
- * The queue is ordered on the basis of the first argument. If it's
1490
- * `undefined`, then nothing is on the queue yet, so the provided function can
1491
- * be called synchronously (although note that this function may return a
1492
- * `Promise`). The idea is that then the return value of that enqueueing
1493
- * operation is kept around, so that if it was a `Promise` then subsequent
1494
- * functions can be enqueued by calling this function again with that `Promise`
1495
- * as the first argument.
1496
- *
1497
- * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1498
- * @param fn a function to enqueue
1499
- * @returns either a `Promise` or the return value of the provided function
1500
- */
1501
- const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
1502
- /**
1503
- * Check that a value is a `Promise`. To check, we first see if the value is an
1504
- * instance of the `Promise` global. In a few circumstances, in particular if
1505
- * the global has been overwritten, this is could be misleading, so we also do
1506
- * a little 'duck typing' check to see if the `.then` property of the value is
1507
- * defined and a function.
1508
- *
1509
- * @param maybePromise it might be a promise!
1510
- * @returns whether it is or not
1511
- */
1512
- const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1513
- (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1514
- /**
1515
- * Update a component given reference to its host elements and so on.
1516
- *
1517
- * @param hostRef an object containing references to the element's host node,
1518
- * VDom nodes, and other metadata
1519
- * @param instance a reference to the underlying host element where it will be
1520
- * rendered
1521
- * @param isInitialLoad whether or not this function is being called as part of
1522
- * the first render cycle
1523
- */
1524
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1525
- var _a;
1526
- const elm = hostRef.$hostElement$;
1527
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1528
- const rc = elm['s-rc'];
1529
- if (isInitialLoad) {
1530
- // DOM WRITE!
1531
- attachStyles(hostRef);
1532
- }
1533
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1534
- {
1535
- callRender(hostRef, instance, elm, isInitialLoad);
1536
- }
1537
- if (rc) {
1538
- // ok, so turns out there are some child host elements
1539
- // waiting on this parent element to load
1540
- // let's fire off all update callbacks waiting
1541
- rc.map((cb) => cb());
1542
- elm['s-rc'] = undefined;
1543
- }
1544
- endRender();
1545
- endUpdate();
1546
- {
1547
- const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1548
- const postUpdate = () => postUpdateComponent(hostRef);
1549
- if (childrenPromises.length === 0) {
1550
- postUpdate();
1551
- }
1552
- else {
1553
- Promise.all(childrenPromises).then(postUpdate);
1554
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1555
- childrenPromises.length = 0;
1556
- }
1557
- }
1558
- };
1559
- /**
1560
- * Handle making the call to the VDom renderer with the proper context given
1561
- * various build variables
1562
- *
1563
- * @param hostRef an object containing references to the element's host node,
1564
- * VDom nodes, and other metadata
1565
- * @param instance a reference to the underlying host element where it will be
1566
- * rendered
1567
- * @param elm the Host element for the component
1568
- * @param isInitialLoad whether or not this function is being called as part of
1569
- * @returns an empty promise
1570
- */
1571
- const callRender = (hostRef, instance, elm, isInitialLoad) => {
1572
- try {
1573
- /**
1574
- * minification optimization: `allRenderFn` is `true` if all components have a `render`
1575
- * method, so we can call the method immediately. If not, check before calling it.
1576
- */
1577
- instance = instance.render() ;
1578
- {
1579
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1580
- }
1581
- {
1582
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1583
- }
1584
- {
1585
- {
1586
- // looks like we've got child nodes to render into this host element
1587
- // or we need to update the css class/attrs on the host element
1588
- // DOM WRITE!
1589
- {
1590
- renderVdom(hostRef, instance, isInitialLoad);
1591
- }
1592
- }
1593
- }
1594
- }
1595
- catch (e) {
1596
- consoleError(e, hostRef.$hostElement$);
1597
- }
1598
- return null;
1599
- };
1600
- const postUpdateComponent = (hostRef) => {
1601
- const tagName = hostRef.$cmpMeta$.$tagName$;
1602
- const elm = hostRef.$hostElement$;
1603
- const endPostUpdate = createTime('postUpdate', tagName);
1604
- const instance = hostRef.$lazyInstance$ ;
1605
- const ancestorComponent = hostRef.$ancestorComponent$;
1606
- {
1607
- safeCall(instance, 'componentDidRender');
1608
- }
1609
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1610
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1611
- {
1612
- // DOM WRITE!
1613
- addHydratedFlag(elm);
1614
- }
1615
- {
1616
- safeCall(instance, 'componentDidLoad');
1617
- }
1618
- endPostUpdate();
1619
- {
1620
- hostRef.$onReadyResolve$(elm);
1621
- if (!ancestorComponent) {
1622
- appDidLoad();
1623
- }
1624
- }
1625
- }
1626
- else {
1627
- endPostUpdate();
1628
- }
1629
- {
1630
- hostRef.$onInstanceResolve$(elm);
1631
- }
1632
- // load events fire from bottom to top
1633
- // the deepest elements load first then bubbles up
1634
- {
1635
- if (hostRef.$onRenderResolve$) {
1636
- hostRef.$onRenderResolve$();
1637
- hostRef.$onRenderResolve$ = undefined;
1638
- }
1639
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1640
- nextTick(() => scheduleUpdate(hostRef, false));
1641
- }
1642
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1643
- }
1644
- // ( •_•)
1645
- // ( •_•)>⌐■-■
1646
- // (⌐■_■)
1647
- };
1648
- const forceUpdate = (ref) => {
1649
- {
1650
- const hostRef = getHostRef(ref);
1651
- const isConnected = hostRef.$hostElement$.isConnected;
1652
- if (isConnected &&
1653
- (hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1654
- scheduleUpdate(hostRef, false);
1655
- }
1656
- // Returns "true" when the forced update was successfully scheduled
1657
- return isConnected;
1658
- }
1659
- };
1660
- const appDidLoad = (who) => {
1661
- // on appload
1662
- // we have finish the first big initial render
1663
- {
1664
- addHydratedFlag(doc.documentElement);
1665
- }
1666
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1667
- };
1668
- /**
1669
- * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1670
- * e.g. custom element node. If a build figures out that e.g. no component
1671
- * has a `componentDidLoad` method, the instance method gets removed from the
1672
- * output bundle and this function returns `undefined`.
1673
- * @param instance any object that may or may not contain methods
1674
- * @param method method name
1675
- * @param arg single arbitrary argument
1676
- * @returns result of method call if it exists, otherwise `undefined`
1677
- */
1678
- const safeCall = (instance, method, arg) => {
1679
- if (instance && instance[method]) {
1680
- try {
1681
- return instance[method](arg);
1682
- }
1683
- catch (e) {
1684
- consoleError(e);
1685
- }
1686
- }
1687
- return undefined;
1688
- };
1689
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1690
- ;
1691
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1692
- const setValue = (ref, propName, newVal, cmpMeta) => {
1693
- // check our new property value against our internal value
1694
- const hostRef = getHostRef(ref);
1695
- const elm = hostRef.$hostElement$ ;
1696
- const oldVal = hostRef.$instanceValues$.get(propName);
1697
- const flags = hostRef.$flags$;
1698
- const instance = hostRef.$lazyInstance$ ;
1699
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1700
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1701
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1702
- const didValueChange = newVal !== oldVal && !areBothNaN;
1703
- if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1704
- // gadzooks! the property's value has changed!!
1705
- // set our new value!
1706
- hostRef.$instanceValues$.set(propName, newVal);
1707
- if (instance) {
1708
- // get an array of method names of watch functions to call
1709
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1710
- const watchMethods = cmpMeta.$watchers$[propName];
1711
- if (watchMethods) {
1712
- // this instance is watching for when this property changed
1713
- watchMethods.map((watchMethodName) => {
1714
- try {
1715
- // fire off each of the watch methods that are watching this property
1716
- instance[watchMethodName](newVal, oldVal, propName);
1717
- }
1718
- catch (e) {
1719
- consoleError(e, elm);
1720
- }
1721
- });
1722
- }
1723
- }
1724
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1725
- // looks like this value actually changed, so we've got work to do!
1726
- // but only if we've already rendered, otherwise just chill out
1727
- // queue that we need to do an update, but don't worry about queuing
1728
- // up millions cuz this function ensures it only runs once
1729
- scheduleUpdate(hostRef, false);
1730
- }
1731
- }
1732
- }
1733
- };
1734
- /**
1735
- * Attach a series of runtime constructs to a compiled Stencil component
1736
- * constructor, including getters and setters for the `@Prop` and `@State`
1737
- * decorators, callbacks for when attributes change, and so on.
1738
- *
1739
- * @param Cstr the constructor for a component that we need to process
1740
- * @param cmpMeta metadata collected previously about the component
1741
- * @param flags a number used to store a series of bit flags
1742
- * @returns a reference to the same constructor passed in (but now mutated)
1743
- */
1744
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1745
- var _a;
1746
- const prototype = Cstr.prototype;
1747
- if (cmpMeta.$members$) {
1748
- if (Cstr.watchers) {
1749
- cmpMeta.$watchers$ = Cstr.watchers;
1750
- }
1751
- // It's better to have a const than two Object.entries()
1752
- const members = Object.entries(cmpMeta.$members$);
1753
- members.map(([memberName, [memberFlags]]) => {
1754
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1755
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1756
- // proxyComponent - prop
1757
- Object.defineProperty(prototype, memberName, {
1758
- get() {
1759
- // proxyComponent, get value
1760
- return getValue(this, memberName);
1761
- },
1762
- set(newValue) {
1763
- // proxyComponent, set value
1764
- setValue(this, memberName, newValue, cmpMeta);
1765
- },
1766
- configurable: true,
1767
- enumerable: true,
1768
- });
1769
- }
1770
- else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1771
- memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1772
- // proxyComponent - method
1773
- Object.defineProperty(prototype, memberName, {
1774
- value(...args) {
1775
- var _a;
1776
- const ref = getHostRef(this);
1777
- return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
1778
- },
1779
- });
1780
- }
1781
- });
1782
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1783
- const attrNameToPropName = new Map();
1784
- prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1785
- plt.jmp(() => {
1786
- var _a;
1787
- const propName = attrNameToPropName.get(attrName);
1788
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1789
- // in the case where an attribute was set inline.
1790
- // ```html
1791
- // <my-component some-attribute="some-value"></my-component>
1792
- // ```
1793
- //
1794
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1795
- // programmatically changes it before it has been upgraded as shown below:
1796
- //
1797
- // ```html
1798
- // <!-- this component has _not_ been upgraded yet -->
1799
- // <my-component id="test" some-attribute="some-value"></my-component>
1800
- // <script>
1801
- // // grab non-upgraded component
1802
- // el = document.querySelector("#test");
1803
- // el.someAttribute = "another-value";
1804
- // // upgrade component
1805
- // customElements.define('my-component', MyComponent);
1806
- // </script>
1807
- // ```
1808
- // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1809
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1810
- // to the value that was set inline i.e. "some-value" from above example. When
1811
- // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1812
- //
1813
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1814
- // by connectedCallback as this attributeChangedCallback will not fire.
1815
- //
1816
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1817
- //
1818
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1819
- // properties here given that this goes against best practices outlined here
1820
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1821
- if (this.hasOwnProperty(propName)) {
1822
- newValue = this[propName];
1823
- delete this[propName];
1824
- }
1825
- else if (prototype.hasOwnProperty(propName) &&
1826
- typeof this[propName] === 'number' &&
1827
- this[propName] == newValue) {
1828
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1829
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1830
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1831
- return;
1832
- }
1833
- else if (propName == null) {
1834
- // At this point we should know this is not a "member", so we can treat it like watching an attribute
1835
- // on a vanilla web component
1836
- const hostRef = getHostRef(this);
1837
- const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1838
- // We only want to trigger the callback(s) if:
1839
- // 1. The instance is ready
1840
- // 2. The watchers are ready
1841
- // 3. The value has changed
1842
- if (flags &&
1843
- !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1844
- flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1845
- newValue !== oldValue) {
1846
- const instance = hostRef.$lazyInstance$ ;
1847
- const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1848
- entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1849
- if (instance[callbackName] != null) {
1850
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1851
- }
1852
- });
1853
- }
1854
- return;
1855
- }
1856
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1857
- });
1858
- };
1859
- // Create an array of attributes to observe
1860
- // This list in comprised of all strings used within a `@Watch()` decorator
1861
- // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1862
- // As such, there is no way to guarantee type-safety here that a user hasn't entered
1863
- // an invalid attribute.
1864
- Cstr.observedAttributes = Array.from(new Set([
1865
- ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1866
- ...members
1867
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1868
- .map(([propName, m]) => {
1869
- var _a;
1870
- const attrName = m[1] || propName;
1871
- attrNameToPropName.set(attrName, propName);
1872
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1873
- (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1874
- }
1875
- return attrName;
1876
- }),
1877
- ]));
1878
- }
1879
- }
1880
- return Cstr;
1881
- };
1882
- /**
1883
- * Initialize a Stencil component given a reference to its host element, its
1884
- * runtime bookkeeping data structure, runtime metadata about the component,
1885
- * and (optionally) an HMR version ID.
1886
- *
1887
- * @param elm a host element
1888
- * @param hostRef the element's runtime bookkeeping object
1889
- * @param cmpMeta runtime metadata for the Stencil component
1890
- * @param hmrVersionId an (optional) HMR version ID
1891
- */
1892
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1893
- let Cstr;
1894
- // initializeComponent
1895
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1896
- // Let the runtime know that the component has been initialized
1897
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1898
- const bundleId = cmpMeta.$lazyBundleId$;
1899
- if (bundleId) {
1900
- // lazy loaded components
1901
- // request the component's implementation to be
1902
- // wired up with the host element
1903
- Cstr = loadModule(cmpMeta);
1904
- if (Cstr.then) {
1905
- // Await creates a micro-task avoid if possible
1906
- const endLoad = uniqueTime();
1907
- Cstr = await Cstr;
1908
- endLoad();
1909
- }
1910
- if (!Cstr.isProxied) {
1911
- // we've never proxied this Constructor before
1912
- // let's add the getters/setters to its prototype before
1913
- // the first time we create an instance of the implementation
1914
- {
1915
- cmpMeta.$watchers$ = Cstr.watchers;
1916
- }
1917
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1918
- Cstr.isProxied = true;
1919
- }
1920
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1921
- // ok, time to construct the instance
1922
- // but let's keep track of when we start and stop
1923
- // so that the getters/setters don't incorrectly step on data
1924
- {
1925
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1926
- }
1927
- // construct the lazy-loaded component implementation
1928
- // passing the hostRef is very important during
1929
- // construction in order to directly wire together the
1930
- // host element and the lazy-loaded instance
1931
- try {
1932
- new Cstr(hostRef);
1933
- }
1934
- catch (e) {
1935
- consoleError(e);
1936
- }
1937
- {
1938
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1939
- }
1940
- {
1941
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1942
- }
1943
- endNewInstance();
1944
- fireConnectedCallback(hostRef.$lazyInstance$);
1945
- }
1946
- else {
1947
- // sync constructor component
1948
- Cstr = elm.constructor;
1949
- // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
1950
- // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
1951
- // Stencil has completed instantiating the component.
1952
- customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
1953
- }
1954
- if (Cstr.style) {
1955
- // this component has styles but we haven't registered them yet
1956
- let style = Cstr.style;
1957
- const scopeId = getScopeId(cmpMeta);
1958
- if (!styles.has(scopeId)) {
1959
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1960
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1961
- endRegisterStyles();
1962
- }
1963
- }
1964
- }
1965
- // we've successfully created a lazy instance
1966
- const ancestorComponent = hostRef.$ancestorComponent$;
1967
- const schedule = () => scheduleUpdate(hostRef, true);
1968
- if (ancestorComponent && ancestorComponent['s-rc']) {
1969
- // this is the initial load and this component it has an ancestor component
1970
- // but the ancestor component has NOT fired its will update lifecycle yet
1971
- // so let's just cool our jets and wait for the ancestor to continue first
1972
- // this will get fired off when the ancestor component
1973
- // finally gets around to rendering its lazy self
1974
- // fire off the initial update
1975
- ancestorComponent['s-rc'].push(schedule);
1976
- }
1977
- else {
1978
- schedule();
1979
- }
1980
- };
1981
- const fireConnectedCallback = (instance) => {
1982
- {
1983
- safeCall(instance, 'connectedCallback');
1984
- }
1985
- };
1986
- const connectedCallback = (elm) => {
1987
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1988
- const hostRef = getHostRef(elm);
1989
- const cmpMeta = hostRef.$cmpMeta$;
1990
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1991
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1992
- // first time this component has connected
1993
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1994
- let hostId;
1995
- {
1996
- hostId = elm.getAttribute(HYDRATE_ID);
1997
- if (hostId) {
1998
- if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1999
- const scopeId = addStyle(elm.shadowRoot, cmpMeta);
2000
- elm.classList.remove(scopeId + '-h', scopeId + '-s');
2001
- }
2002
- initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
2003
- }
2004
- }
2005
- {
2006
- // find the first ancestor component (if there is one) and register
2007
- // this component as one of the actively loading child components for its ancestor
2008
- let ancestorComponent = elm;
2009
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
2010
- // climb up the ancestors looking for the first
2011
- // component that hasn't finished its lifecycle update yet
2012
- if ((ancestorComponent.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
2013
- ancestorComponent.hasAttribute('s-id') &&
2014
- ancestorComponent['s-p']) ||
2015
- ancestorComponent['s-p']) {
2016
- // we found this components first ancestor component
2017
- // keep a reference to this component's ancestor component
2018
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
2019
- break;
2020
- }
2021
- }
2022
- }
2023
- // Lazy properties
2024
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
2025
- if (cmpMeta.$members$) {
2026
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2027
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
2028
- const value = elm[memberName];
2029
- delete elm[memberName];
2030
- elm[memberName] = value;
2031
- }
2032
- });
2033
- }
2034
- {
2035
- initializeComponent(elm, hostRef, cmpMeta);
2036
- }
2037
- }
2038
- else {
2039
- // not the first time this has connected
2040
- // reattach any event listeners to the host
2041
- // since they would have been removed when disconnected
2042
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2043
- // fire off connectedCallback() on component instance
2044
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2045
- fireConnectedCallback(hostRef.$lazyInstance$);
2046
- }
2047
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2048
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
2049
- }
2050
- }
2051
- endConnected();
2052
- }
2053
- };
2054
- const disconnectInstance = (instance) => {
2055
- {
2056
- safeCall(instance, 'disconnectedCallback');
2057
- }
2058
- };
2059
- const disconnectedCallback = async (elm) => {
2060
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
2061
- const hostRef = getHostRef(elm);
2062
- {
2063
- if (hostRef.$rmListeners$) {
2064
- hostRef.$rmListeners$.map((rmListener) => rmListener());
2065
- hostRef.$rmListeners$ = undefined;
2066
- }
2067
- }
2068
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
2069
- disconnectInstance(hostRef.$lazyInstance$);
2070
- }
2071
- else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
2072
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
2073
- }
2074
- }
2075
- };
2076
- /**
2077
- * Patches the `appendChild` method on a `scoped` Stencil component.
2078
- * The patch will attempt to find a slot with the same name as the node being appended
2079
- * and insert it into the slot reference if found. Otherwise, it falls-back to the original
2080
- * `appendChild` method.
2081
- *
2082
- * @param HostElementPrototype The Stencil component to be patched
2083
- */
2084
- const patchSlotAppendChild = (HostElementPrototype) => {
2085
- HostElementPrototype.__appendChild = HostElementPrototype.appendChild;
2086
- HostElementPrototype.appendChild = function (newChild) {
2087
- const slotName = (newChild['s-sn'] = getSlotName(newChild));
2088
- const slotNode = getHostSlotNode(this.childNodes, slotName);
2089
- if (slotNode) {
2090
- const slotChildNodes = getHostSlotChildNodes(slotNode, slotName);
2091
- const appendAfter = slotChildNodes[slotChildNodes.length - 1];
2092
- const insertedNode = appendAfter.parentNode.insertBefore(newChild, appendAfter.nextSibling);
2093
- // Check if there is fallback content that should be hidden
2094
- updateFallbackSlotVisibility(this);
2095
- return insertedNode;
2096
- }
2097
- return this.__appendChild(newChild);
2098
- };
2099
- };
2100
- /**
2101
- * Patches the text content of an unnamed slotted node inside a scoped component
2102
- * @param hostElementPrototype the `Element` to be patched
2103
- */
2104
- const patchTextContent = (hostElementPrototype) => {
2105
- const descriptor = Object.getOwnPropertyDescriptor(Node.prototype, 'textContent');
2106
- Object.defineProperty(hostElementPrototype, '__textContent', descriptor);
2107
- {
2108
- Object.defineProperty(hostElementPrototype, 'textContent', {
2109
- get() {
2110
- var _a;
2111
- // get the 'default slot', which would be the first slot in a shadow tree (if we were using one), whose name is
2112
- // the empty string
2113
- const slotNode = getHostSlotNode(this.childNodes, '');
2114
- // when a slot node is found, the textContent _may_ be found in the next sibling (text) node, depending on how
2115
- // nodes were reordered during the vdom render. first try to get the text content from the sibling.
2116
- if (((_a = slotNode === null || slotNode === void 0 ? void 0 : slotNode.nextSibling) === null || _a === void 0 ? void 0 : _a.nodeType) === 3 /* NODE_TYPES.TEXT_NODE */) {
2117
- return slotNode.nextSibling.textContent;
2118
- }
2119
- else if (slotNode) {
2120
- return slotNode.textContent;
2121
- }
2122
- else {
2123
- // fallback to the original implementation
2124
- return this.__textContent;
2125
- }
2126
- },
2127
- set(value) {
2128
- var _a;
2129
- // get the 'default slot', which would be the first slot in a shadow tree (if we were using one), whose name is
2130
- // the empty string
2131
- const slotNode = getHostSlotNode(this.childNodes, '');
2132
- // when a slot node is found, the textContent _may_ need to be placed in the next sibling (text) node,
2133
- // depending on how nodes were reordered during the vdom render. first try to set the text content on the
2134
- // sibling.
2135
- if (((_a = slotNode === null || slotNode === void 0 ? void 0 : slotNode.nextSibling) === null || _a === void 0 ? void 0 : _a.nodeType) === 3 /* NODE_TYPES.TEXT_NODE */) {
2136
- slotNode.nextSibling.textContent = value;
2137
- }
2138
- else if (slotNode) {
2139
- slotNode.textContent = value;
2140
- }
2141
- else {
2142
- // we couldn't find a slot, but that doesn't mean that there isn't one. if this check ran before the DOM
2143
- // loaded, we could have missed it. check for a content reference element on the scoped component and insert
2144
- // it there
2145
- this.__textContent = value;
2146
- const contentRefElm = this['s-cr'];
2147
- if (contentRefElm) {
2148
- this.insertBefore(contentRefElm, this.firstChild);
2149
- }
2150
- }
2151
- },
2152
- });
2153
- }
2154
- };
2155
- const patchChildSlotNodes = (elm, cmpMeta) => {
2156
- class FakeNodeList extends Array {
2157
- item(n) {
2158
- return this[n];
2159
- }
2160
- }
2161
- // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2162
- if (cmpMeta.$flags$ & 8 /* CMP_FLAGS.needsShadowDomShim */) {
2163
- const childNodesFn = elm.__lookupGetter__('childNodes');
2164
- Object.defineProperty(elm, 'children', {
2165
- get() {
2166
- return this.childNodes.map((n) => n.nodeType === 1);
2167
- },
2168
- });
2169
- Object.defineProperty(elm, 'childElementCount', {
2170
- get() {
2171
- return elm.children.length;
2172
- },
2173
- });
2174
- Object.defineProperty(elm, 'childNodes', {
2175
- get() {
2176
- const childNodes = childNodesFn.call(this);
2177
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0 &&
2178
- getHostRef(this).$flags$ & 2 /* HOST_FLAGS.hasRendered */) {
2179
- const result = new FakeNodeList();
2180
- for (let i = 0; i < childNodes.length; i++) {
2181
- const slot = childNodes[i]['s-nr'];
2182
- if (slot) {
2183
- result.push(slot);
2184
- }
2185
- }
2186
- return result;
2187
- }
2188
- return FakeNodeList.from(childNodes);
2189
- },
2190
- });
2191
- }
2192
- };
2193
- const getSlotName = (node) => node['s-sn'] || (node.nodeType === 1 && node.getAttribute('slot')) || '';
2194
- /**
2195
- * Recursively searches a series of child nodes for a slot with the provided name.
2196
- * @param childNodes the nodes to search for a slot with a specific name.
2197
- * @param slotName the name of the slot to match on.
2198
- * @returns a reference to the slot node that matches the provided name, `null` otherwise
2199
- */
2200
- const getHostSlotNode = (childNodes, slotName) => {
2201
- let i = 0;
2202
- let childNode;
2203
- for (; i < childNodes.length; i++) {
2204
- childNode = childNodes[i];
2205
- if (childNode['s-sr'] && childNode['s-sn'] === slotName) {
2206
- return childNode;
2207
- }
2208
- childNode = getHostSlotNode(childNode.childNodes, slotName);
2209
- if (childNode) {
2210
- return childNode;
2211
- }
2212
- }
2213
- return null;
2214
- };
2215
- const getHostSlotChildNodes = (n, slotName) => {
2216
- const childNodes = [n];
2217
- while ((n = n.nextSibling) && n['s-sn'] === slotName) {
2218
- childNodes.push(n);
2219
- }
2220
- return childNodes;
2221
- };
2222
- const bootstrapLazy = (lazyBundles, options = {}) => {
2223
- var _a;
2224
- const endBootstrap = createTime();
2225
- const cmpTags = [];
2226
- const exclude = options.exclude || [];
2227
- const customElements = win.customElements;
2228
- const head = doc.head;
2229
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
2230
- const dataStyles = /*@__PURE__*/ doc.createElement('style');
2231
- const deferredConnectedCallbacks = [];
2232
- const styles = /*@__PURE__*/ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
2233
- let appLoadFallback;
2234
- let isBootstrapping = true;
2235
- let i = 0;
2236
- Object.assign(plt, options);
2237
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
2238
- {
2239
- // If the app is already hydrated there is not point to disable the
2240
- // async queue. This will improve the first input delay
2241
- plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
2242
- }
2243
- {
2244
- for (; i < styles.length; i++) {
2245
- registerStyle(styles[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles[i].innerHTML), true);
2246
- }
2247
- }
2248
- let hasSlotRelocation = false;
2249
- lazyBundles.map((lazyBundle) => {
2250
- lazyBundle[1].map((compactMeta) => {
2251
- var _a;
2252
- const cmpMeta = {
2253
- $flags$: compactMeta[0],
2254
- $tagName$: compactMeta[1],
2255
- $members$: compactMeta[2],
2256
- $listeners$: compactMeta[3],
2257
- };
2258
- // Check if we are using slots outside the shadow DOM in this component.
2259
- // We'll use this information later to add styles for `slot-fb` elements
2260
- if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
2261
- hasSlotRelocation = true;
2262
- }
2263
- {
2264
- cmpMeta.$members$ = compactMeta[2];
2265
- }
2266
- {
2267
- cmpMeta.$listeners$ = compactMeta[3];
2268
- }
2269
- {
2270
- cmpMeta.$attrsToReflect$ = [];
2271
- }
2272
- {
2273
- cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
2274
- }
2275
- const tagName = cmpMeta.$tagName$;
2276
- const HostElement = class extends HTMLElement {
2277
- // StencilLazyHost
2278
- constructor(self) {
2279
- // @ts-ignore
2280
- super(self);
2281
- self = this;
2282
- registerHost(self, cmpMeta);
2283
- if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
2284
- // this component is using shadow dom
2285
- // and this browser supports shadow dom
2286
- // add the read-only property "shadowRoot" to the host element
2287
- // adding the shadow root build conditionals to minimize runtime
2288
- {
2289
- {
2290
- self.attachShadow({ mode: 'open' });
2291
- }
2292
- }
2293
- }
2294
- }
2295
- connectedCallback() {
2296
- if (appLoadFallback) {
2297
- clearTimeout(appLoadFallback);
2298
- appLoadFallback = null;
2299
- }
2300
- if (isBootstrapping) {
2301
- // connectedCallback will be processed once all components have been registered
2302
- deferredConnectedCallbacks.push(this);
2303
- }
2304
- else {
2305
- plt.jmp(() => connectedCallback(this));
2306
- }
2307
- }
2308
- disconnectedCallback() {
2309
- plt.jmp(() => disconnectedCallback(this));
2310
- }
2311
- componentOnReady() {
2312
- return getHostRef(this).$onReadyPromise$;
2313
- }
2314
- };
2315
- // TODO(STENCIL-914): this check and `else` block can go away and be replaced by just the `scoped` check
2316
- {
2317
- {
2318
- patchChildSlotNodes(HostElement.prototype, cmpMeta);
2319
- }
2320
- {
2321
- patchSlotAppendChild(HostElement.prototype);
2322
- }
2323
- if (cmpMeta.$flags$ & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
2324
- patchTextContent(HostElement.prototype);
2325
- }
2326
- }
2327
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
2328
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
2329
- cmpTags.push(tagName);
2330
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
2331
- }
2332
- });
2333
- });
2334
- // Only bother generating CSS if we have components
2335
- // TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
2336
- if (cmpTags.length > 0) {
2337
- // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
2338
- if (hasSlotRelocation) {
2339
- dataStyles.textContent += SLOT_FB_CSS;
2340
- }
2341
- // Add hydration styles
2342
- {
2343
- dataStyles.textContent += cmpTags + HYDRATED_CSS;
2344
- }
2345
- // If we have styles, add them to the DOM
2346
- if (dataStyles.innerHTML.length) {
2347
- dataStyles.setAttribute('data-styles', '');
2348
- // Apply CSP nonce to the style tag if it exists
2349
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
2350
- if (nonce != null) {
2351
- dataStyles.setAttribute('nonce', nonce);
2352
- }
2353
- // Insert the styles into the document head
2354
- // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
2355
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2356
- }
2357
- }
2358
- // Process deferred connectedCallbacks now all components have been registered
2359
- isBootstrapping = false;
2360
- if (deferredConnectedCallbacks.length) {
2361
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2362
- }
2363
- else {
2364
- {
2365
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
2366
- }
2367
- }
2368
- // Fallback appLoad event
2369
- endBootstrap();
2370
- };
2371
- const Fragment = (_, children) => children;
2372
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2373
- if (listeners) {
2374
- listeners.map(([flags, name, method]) => {
2375
- const target = getHostListenerTarget(elm, flags) ;
2376
- const handler = hostListenerProxy(hostRef, method);
2377
- const opts = hostListenerOpts(flags);
2378
- plt.ael(target, name, handler, opts);
2379
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2380
- });
2381
- }
2382
- };
2383
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
2384
- try {
2385
- {
2386
- if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
2387
- // instance is ready, let's call it's member method for this event
2388
- hostRef.$lazyInstance$[methodName](ev);
2389
- }
2390
- else {
2391
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2392
- }
2393
- }
2394
- }
2395
- catch (e) {
2396
- consoleError(e);
2397
- }
2398
- };
2399
- const getHostListenerTarget = (elm, flags) => {
2400
- if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
2401
- return win;
2402
- return elm;
2403
- };
2404
- // prettier-ignore
2405
- const hostListenerOpts = (flags) => supportsListenerOptions
2406
- ? ({
2407
- passive: (flags & 1 /* LISTENER_FLAGS.Passive */) !== 0,
2408
- capture: (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0,
2409
- })
2410
- : (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
2411
- /**
2412
- * Assigns the given value to the nonce property on the runtime platform object.
2413
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2414
- * @param nonce The value to be assigned to the platform nonce property.
2415
- * @returns void
2416
- */
2417
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
2418
- /**
2419
- * A WeakMap mapping runtime component references to their corresponding host reference
2420
- * instances.
2421
- *
2422
- * **Note**: If we're in an HMR context we need to store a reference to this
2423
- * value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
2424
- * to {@link d.HostRef} across HMR updates.
2425
- *
2426
- * This is necessary because when HMR updates for a component are processed by
2427
- * the browser-side dev server client the JS bundle for that component is
2428
- * re-fetched. Since the module containing {@link hostRefs} is included in
2429
- * that bundle, if we do not store a reference to it the new iteration of the
2430
- * component will not have access to the previous hostRef map, leading to a
2431
- * bug where the new version of the component cannot properly initialize.
2432
- */
2433
- const hostRefs = new WeakMap();
2434
- /**
2435
- * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
2436
- *
2437
- * @param ref the runtime ref of interest
2438
- * @returns the Host reference (if found) or undefined
2439
- */
2440
- const getHostRef = (ref) => hostRefs.get(ref);
2441
- /**
2442
- * Register a lazy instance with the {@link hostRefs} object so it's
2443
- * corresponding {@link d.HostRef} can be retrieved later.
2444
- *
2445
- * @param lazyInstance the lazy instance of interest
2446
- * @param hostRef that instances `HostRef` object
2447
- * @returns a reference to the host ref WeakMap
2448
- */
2449
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2450
- /**
2451
- * Register a host element for a Stencil component, setting up various metadata
2452
- * and callbacks based on {@link BUILD} flags as well as the component's runtime
2453
- * metadata.
2454
- *
2455
- * @param hostElement the host element to register
2456
- * @param cmpMeta runtime metadata for that component
2457
- * @returns a reference to the host ref WeakMap
2458
- */
2459
- const registerHost = (hostElement, cmpMeta) => {
2460
- const hostRef = {
2461
- $flags$: 0,
2462
- $hostElement$: hostElement,
2463
- $cmpMeta$: cmpMeta,
2464
- $instanceValues$: new Map(),
2465
- };
2466
- {
2467
- hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
2468
- }
2469
- {
2470
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2471
- hostElement['s-p'] = [];
2472
- hostElement['s-rc'] = [];
2473
- }
2474
- addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
2475
- return hostRefs.set(hostElement, hostRef);
2476
- };
2477
- const isMemberInElement = (elm, memberName) => memberName in elm;
2478
- const consoleError = (e, el) => (0, console.error)(e, el);
2479
- const cmpModules = /*@__PURE__*/ new Map();
2480
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2481
- // loadModuleImport
2482
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2483
- const bundleId = cmpMeta.$lazyBundleId$;
2484
- const module = cmpModules.get(bundleId) ;
2485
- if (module) {
2486
- return module[exportName];
2487
- }
2488
-
2489
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2490
- const processMod = importedModule => {
2491
- cmpModules.set(bundleId, importedModule);
2492
- return importedModule[exportName];
2493
- }
2494
- switch(bundleId) {
2495
-
2496
- case 'ix-playground-internal.cjs':
2497
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2498
- /* webpackMode: "lazy" */
2499
- './ix-playground-internal.cjs.entry.js')); }).then(processMod, consoleError);
2500
- case 'ix-action-card.cjs':
2501
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2502
- /* webpackMode: "lazy" */
2503
- './ix-action-card.cjs.entry.js')); }).then(processMod, consoleError);
2504
- case 'ix-application.cjs':
2505
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2506
- /* webpackMode: "lazy" */
2507
- './ix-application.cjs.entry.js')); }).then(processMod, consoleError);
2508
- case 'ix-application-sidebar.cjs':
2509
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2510
- /* webpackMode: "lazy" */
2511
- './ix-application-sidebar.cjs.entry.js')); }).then(processMod, consoleError);
2512
- case 'ix-application-switch-modal.cjs':
2513
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2514
- /* webpackMode: "lazy" */
2515
- './ix-application-switch-modal.cjs.entry.js')); }).then(processMod, consoleError);
2516
- case 'ix-basic-navigation.cjs':
2517
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2518
- /* webpackMode: "lazy" */
2519
- './ix-basic-navigation.cjs.entry.js')); }).then(processMod, consoleError);
2520
- case 'ix-blind.cjs':
2521
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2522
- /* webpackMode: "lazy" */
2523
- './ix-blind.cjs.entry.js')); }).then(processMod, consoleError);
2524
- case 'ix-breadcrumb.cjs':
2525
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2526
- /* webpackMode: "lazy" */
2527
- './ix-breadcrumb.cjs.entry.js')); }).then(processMod, consoleError);
2528
- case 'ix-card-list.cjs':
2529
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2530
- /* webpackMode: "lazy" */
2531
- './ix-card-list.cjs.entry.js')); }).then(processMod, consoleError);
2532
- case 'ix-category-filter.cjs':
2533
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2534
- /* webpackMode: "lazy" */
2535
- './ix-category-filter.cjs.entry.js')); }).then(processMod, consoleError);
2536
- case 'ix-chip.cjs':
2537
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2538
- /* webpackMode: "lazy" */
2539
- './ix-chip.cjs.entry.js')); }).then(processMod, consoleError);
2540
- case 'ix-content.cjs':
2541
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2542
- /* webpackMode: "lazy" */
2543
- './ix-content.cjs.entry.js')); }).then(processMod, consoleError);
2544
- case 'ix-content-header.cjs':
2545
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2546
- /* webpackMode: "lazy" */
2547
- './ix-content-header.cjs.entry.js')); }).then(processMod, consoleError);
2548
- case 'ix-css-grid.cjs':
2549
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2550
- /* webpackMode: "lazy" */
2551
- './ix-css-grid.cjs.entry.js')); }).then(processMod, consoleError);
2552
- case 'ix-css-grid-item.cjs':
2553
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2554
- /* webpackMode: "lazy" */
2555
- './ix-css-grid-item.cjs.entry.js')); }).then(processMod, consoleError);
2556
- case 'ix-date-dropdown.cjs':
2557
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2558
- /* webpackMode: "lazy" */
2559
- './ix-date-dropdown.cjs.entry.js')); }).then(processMod, consoleError);
2560
- case 'ix-datetime-picker.cjs':
2561
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2562
- /* webpackMode: "lazy" */
2563
- './ix-datetime-picker.cjs.entry.js')); }).then(processMod, consoleError);
2564
- case 'ix-drawer.cjs':
2565
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2566
- /* webpackMode: "lazy" */
2567
- './ix-drawer.cjs.entry.js')); }).then(processMod, consoleError);
2568
- case 'ix-dropdown-button.cjs':
2569
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2570
- /* webpackMode: "lazy" */
2571
- './ix-dropdown-button.cjs.entry.js')); }).then(processMod, consoleError);
2572
- case 'ix-dropdown-header.cjs':
2573
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2574
- /* webpackMode: "lazy" */
2575
- './ix-dropdown-header.cjs.entry.js')); }).then(processMod, consoleError);
2576
- case 'ix-dropdown-quick-actions.cjs':
2577
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2578
- /* webpackMode: "lazy" */
2579
- './ix-dropdown-quick-actions.cjs.entry.js')); }).then(processMod, consoleError);
2580
- case 'ix-empty-state.cjs':
2581
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2582
- /* webpackMode: "lazy" */
2583
- './ix-empty-state.cjs.entry.js')); }).then(processMod, consoleError);
2584
- case 'ix-event-list.cjs':
2585
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2586
- /* webpackMode: "lazy" */
2587
- './ix-event-list.cjs.entry.js')); }).then(processMod, consoleError);
2588
- case 'ix-event-list-item.cjs':
2589
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2590
- /* webpackMode: "lazy" */
2591
- './ix-event-list-item.cjs.entry.js')); }).then(processMod, consoleError);
2592
- case 'ix-expanding-search.cjs':
2593
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2594
- /* webpackMode: "lazy" */
2595
- './ix-expanding-search.cjs.entry.js')); }).then(processMod, consoleError);
2596
- case 'ix-flip-tile.cjs':
2597
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2598
- /* webpackMode: "lazy" */
2599
- './ix-flip-tile.cjs.entry.js')); }).then(processMod, consoleError);
2600
- case 'ix-flip-tile-content.cjs':
2601
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2602
- /* webpackMode: "lazy" */
2603
- './ix-flip-tile-content.cjs.entry.js')); }).then(processMod, consoleError);
2604
- case 'ix-form-field.cjs':
2605
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2606
- /* webpackMode: "lazy" */
2607
- './ix-form-field.cjs.entry.js')); }).then(processMod, consoleError);
2608
- case 'ix-group.cjs':
2609
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2610
- /* webpackMode: "lazy" */
2611
- './ix-group.cjs.entry.js')); }).then(processMod, consoleError);
2612
- case 'ix-icon-toggle-button.cjs':
2613
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2614
- /* webpackMode: "lazy" */
2615
- './ix-icon-toggle-button.cjs.entry.js')); }).then(processMod, consoleError);
2616
- case 'ix-input-group.cjs':
2617
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2618
- /* webpackMode: "lazy" */
2619
- './ix-input-group.cjs.entry.js')); }).then(processMod, consoleError);
2620
- case 'ix-key-value.cjs':
2621
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2622
- /* webpackMode: "lazy" */
2623
- './ix-key-value.cjs.entry.js')); }).then(processMod, consoleError);
2624
- case 'ix-key-value-list.cjs':
2625
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2626
- /* webpackMode: "lazy" */
2627
- './ix-key-value-list.cjs.entry.js')); }).then(processMod, consoleError);
2628
- case 'ix-kpi.cjs':
2629
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2630
- /* webpackMode: "lazy" */
2631
- './ix-kpi.cjs.entry.js')); }).then(processMod, consoleError);
2632
- case 'ix-link-button.cjs':
2633
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2634
- /* webpackMode: "lazy" */
2635
- './ix-link-button.cjs.entry.js')); }).then(processMod, consoleError);
2636
- case 'ix-map-navigation.cjs':
2637
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2638
- /* webpackMode: "lazy" */
2639
- './ix-map-navigation.cjs.entry.js')); }).then(processMod, consoleError);
2640
- case 'ix-menu.cjs':
2641
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2642
- /* webpackMode: "lazy" */
2643
- './ix-menu.cjs.entry.js')); }).then(processMod, consoleError);
2644
- case 'ix-menu-about.cjs':
2645
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2646
- /* webpackMode: "lazy" */
2647
- './ix-menu-about.cjs.entry.js')); }).then(processMod, consoleError);
2648
- case 'ix-menu-about-item.cjs':
2649
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2650
- /* webpackMode: "lazy" */
2651
- './ix-menu-about-item.cjs.entry.js')); }).then(processMod, consoleError);
2652
- case 'ix-menu-about-news.cjs':
2653
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2654
- /* webpackMode: "lazy" */
2655
- './ix-menu-about-news.cjs.entry.js')); }).then(processMod, consoleError);
2656
- case 'ix-menu-avatar.cjs':
2657
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2658
- /* webpackMode: "lazy" */
2659
- './ix-menu-avatar.cjs.entry.js')); }).then(processMod, consoleError);
2660
- case 'ix-menu-category.cjs':
2661
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2662
- /* webpackMode: "lazy" */
2663
- './ix-menu-category.cjs.entry.js')); }).then(processMod, consoleError);
2664
- case 'ix-menu-settings.cjs':
2665
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2666
- /* webpackMode: "lazy" */
2667
- './ix-menu-settings.cjs.entry.js')); }).then(processMod, consoleError);
2668
- case 'ix-menu-settings-item.cjs':
2669
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2670
- /* webpackMode: "lazy" */
2671
- './ix-menu-settings-item.cjs.entry.js')); }).then(processMod, consoleError);
2672
- case 'ix-message-bar.cjs':
2673
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2674
- /* webpackMode: "lazy" */
2675
- './ix-message-bar.cjs.entry.js')); }).then(processMod, consoleError);
2676
- case 'ix-modal.cjs':
2677
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2678
- /* webpackMode: "lazy" */
2679
- './ix-modal.cjs.entry.js')); }).then(processMod, consoleError);
2680
- case 'ix-modal-example.cjs':
2681
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2682
- /* webpackMode: "lazy" */
2683
- './ix-modal-example.cjs.entry.js')); }).then(processMod, consoleError);
2684
- case 'ix-modal-footer.cjs':
2685
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2686
- /* webpackMode: "lazy" */
2687
- './ix-modal-footer.cjs.entry.js')); }).then(processMod, consoleError);
2688
- case 'ix-modal-loading.cjs':
2689
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2690
- /* webpackMode: "lazy" */
2691
- './ix-modal-loading.cjs.entry.js')); }).then(processMod, consoleError);
2692
- case 'ix-pagination.cjs':
2693
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2694
- /* webpackMode: "lazy" */
2695
- './ix-pagination.cjs.entry.js')); }).then(processMod, consoleError);
2696
- case 'ix-pane.cjs':
2697
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2698
- /* webpackMode: "lazy" */
2699
- './ix-pane.cjs.entry.js')); }).then(processMod, consoleError);
2700
- case 'ix-pane-layout.cjs':
2701
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2702
- /* webpackMode: "lazy" */
2703
- './ix-pane-layout.cjs.entry.js')); }).then(processMod, consoleError);
2704
- case 'ix-pill.cjs':
2705
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2706
- /* webpackMode: "lazy" */
2707
- './ix-pill.cjs.entry.js')); }).then(processMod, consoleError);
2708
- case 'ix-push-card.cjs':
2709
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2710
- /* webpackMode: "lazy" */
2711
- './ix-push-card.cjs.entry.js')); }).then(processMod, consoleError);
2712
- case 'ix-slider.cjs':
2713
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2714
- /* webpackMode: "lazy" */
2715
- './ix-slider.cjs.entry.js')); }).then(processMod, consoleError);
2716
- case 'ix-split-button.cjs':
2717
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2718
- /* webpackMode: "lazy" */
2719
- './ix-split-button.cjs.entry.js')); }).then(processMod, consoleError);
2720
- case 'ix-split-button-item.cjs':
2721
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2722
- /* webpackMode: "lazy" */
2723
- './ix-split-button-item.cjs.entry.js')); }).then(processMod, consoleError);
2724
- case 'ix-tile.cjs':
2725
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2726
- /* webpackMode: "lazy" */
2727
- './ix-tile.cjs.entry.js')); }).then(processMod, consoleError);
2728
- case 'ix-toast-container.cjs':
2729
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2730
- /* webpackMode: "lazy" */
2731
- './ix-toast-container.cjs.entry.js')); }).then(processMod, consoleError);
2732
- case 'ix-toggle.cjs':
2733
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2734
- /* webpackMode: "lazy" */
2735
- './ix-toggle.cjs.entry.js')); }).then(processMod, consoleError);
2736
- case 'ix-toggle-button.cjs':
2737
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2738
- /* webpackMode: "lazy" */
2739
- './ix-toggle-button.cjs.entry.js')); }).then(processMod, consoleError);
2740
- case 'ix-tree.cjs':
2741
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2742
- /* webpackMode: "lazy" */
2743
- './ix-tree.cjs.entry.js')); }).then(processMod, consoleError);
2744
- case 'ix-upload.cjs':
2745
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2746
- /* webpackMode: "lazy" */
2747
- './ix-upload.cjs.entry.js')); }).then(processMod, consoleError);
2748
- case 'ix-validation-tooltip.cjs':
2749
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2750
- /* webpackMode: "lazy" */
2751
- './ix-validation-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
2752
- case 'ix-workflow-step.cjs':
2753
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2754
- /* webpackMode: "lazy" */
2755
- './ix-workflow-step.cjs.entry.js')); }).then(processMod, consoleError);
2756
- case 'ix-workflow-steps.cjs':
2757
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2758
- /* webpackMode: "lazy" */
2759
- './ix-workflow-steps.cjs.entry.js')); }).then(processMod, consoleError);
2760
- case 'ix-avatar_2.cjs':
2761
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2762
- /* webpackMode: "lazy" */
2763
- './ix-avatar_2.cjs.entry.js')); }).then(processMod, consoleError);
2764
- case 'ix-breadcrumb-item.cjs':
2765
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2766
- /* webpackMode: "lazy" */
2767
- './ix-breadcrumb-item.cjs.entry.js')); }).then(processMod, consoleError);
2768
- case 'ix-card-accordion_2.cjs':
2769
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2770
- /* webpackMode: "lazy" */
2771
- './ix-card-accordion_2.cjs.entry.js')); }).then(processMod, consoleError);
2772
- case 'ix-group-context-menu_2.cjs':
2773
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2774
- /* webpackMode: "lazy" */
2775
- './ix-group-context-menu_2.cjs.entry.js')); }).then(processMod, consoleError);
2776
- case 'ix-map-navigation-overlay.cjs':
2777
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2778
- /* webpackMode: "lazy" */
2779
- './ix-map-navigation-overlay.cjs.entry.js')); }).then(processMod, consoleError);
2780
- case 'ix-modal-content_2.cjs':
2781
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2782
- /* webpackMode: "lazy" */
2783
- './ix-modal-content_2.cjs.entry.js')); }).then(processMod, consoleError);
2784
- case 'ix-select.cjs':
2785
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2786
- /* webpackMode: "lazy" */
2787
- './ix-select.cjs.entry.js')); }).then(processMod, consoleError);
2788
- case 'ix-time-picker.cjs':
2789
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2790
- /* webpackMode: "lazy" */
2791
- './ix-time-picker.cjs.entry.js')); }).then(processMod, consoleError);
2792
- case 'ix-toast.cjs':
2793
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2794
- /* webpackMode: "lazy" */
2795
- './ix-toast.cjs.entry.js')); }).then(processMod, consoleError);
2796
- case 'ix-tree-item.cjs':
2797
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2798
- /* webpackMode: "lazy" */
2799
- './ix-tree-item.cjs.entry.js')); }).then(processMod, consoleError);
2800
- case 'ix-application-header.cjs':
2801
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2802
- /* webpackMode: "lazy" */
2803
- './ix-application-header.cjs.entry.js')); }).then(processMod, consoleError);
2804
- case 'ix-col_4.cjs':
2805
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2806
- /* webpackMode: "lazy" */
2807
- './ix-col_4.cjs.entry.js')); }).then(processMod, consoleError);
2808
- case 'ix-menu-item.cjs':
2809
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2810
- /* webpackMode: "lazy" */
2811
- './ix-menu-item.cjs.entry.js')); }).then(processMod, consoleError);
2812
- case 'ix-filter-chip_2.cjs':
2813
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2814
- /* webpackMode: "lazy" */
2815
- './ix-filter-chip_2.cjs.entry.js')); }).then(processMod, consoleError);
2816
- case 'ix-tab-item_2.cjs':
2817
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2818
- /* webpackMode: "lazy" */
2819
- './ix-tab-item_2.cjs.entry.js')); }).then(processMod, consoleError);
2820
- case 'ix-card_2.cjs':
2821
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2822
- /* webpackMode: "lazy" */
2823
- './ix-card_2.cjs.entry.js')); }).then(processMod, consoleError);
2824
- case 'ix-divider.cjs':
2825
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2826
- /* webpackMode: "lazy" */
2827
- './ix-divider.cjs.entry.js')); }).then(processMod, consoleError);
2828
- case 'ix-date-time-card.cjs':
2829
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2830
- /* webpackMode: "lazy" */
2831
- './ix-date-time-card.cjs.entry.js')); }).then(processMod, consoleError);
2832
- case 'ix-menu-expand-icon.cjs':
2833
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2834
- /* webpackMode: "lazy" */
2835
- './ix-menu-expand-icon.cjs.entry.js')); }).then(processMod, consoleError);
2836
- case 'ix-tooltip.cjs':
2837
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2838
- /* webpackMode: "lazy" */
2839
- './ix-tooltip.cjs.entry.js')); }).then(processMod, consoleError);
2840
- case 'ix-dropdown-item.cjs':
2841
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2842
- /* webpackMode: "lazy" */
2843
- './ix-dropdown-item.cjs.entry.js')); }).then(processMod, consoleError);
2844
- case 'ix-button.cjs':
2845
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2846
- /* webpackMode: "lazy" */
2847
- './ix-button.cjs.entry.js')); }).then(processMod, consoleError);
2848
- case 'ix-dropdown.cjs':
2849
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2850
- /* webpackMode: "lazy" */
2851
- './ix-dropdown.cjs.entry.js')); }).then(processMod, consoleError);
2852
- case 'ix-typography.cjs':
2853
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2854
- /* webpackMode: "lazy" */
2855
- './ix-typography.cjs.entry.js')); }).then(processMod, consoleError);
2856
- case 'ix-icon-button_2.cjs':
2857
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2858
- /* webpackMode: "lazy" */
2859
- './ix-icon-button_2.cjs.entry.js')); }).then(processMod, consoleError);
2860
- }
2861
- }
2862
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2863
- /* @vite-ignore */
2864
- /* webpackInclude: /\.entry\.js$/ */
2865
- /* webpackExclude: /\.system\.entry\.js$/ */
2866
- /* webpackMode: "lazy" */
2867
- `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
2868
- {
2869
- cmpModules.set(bundleId, importedModule);
2870
- }
2871
- return importedModule[exportName];
2872
- }, consoleError);
2873
- };
2874
- const styles = /*@__PURE__*/ new Map();
2875
- const win = typeof window !== 'undefined' ? window : {};
2876
- const doc = win.document || { head: {} };
2877
- const plt = {
2878
- $flags$: 0,
2879
- $resourcesUrl$: '',
2880
- jmp: (h) => h(),
2881
- raf: (h) => requestAnimationFrame(h),
2882
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2883
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2884
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
2885
- };
2886
- const supportsShadow =
2887
- // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2888
- true;
2889
- const supportsListenerOptions = /*@__PURE__*/ (() => {
2890
- let supportsListenerOptions = false;
2891
- try {
2892
- doc.addEventListener('e', null, Object.defineProperty({}, 'passive', {
2893
- get() {
2894
- supportsListenerOptions = true;
2895
- },
2896
- }));
2897
- }
2898
- catch (e) { }
2899
- return supportsListenerOptions;
2900
- })();
2901
- const promiseResolve = (v) => Promise.resolve(v);
2902
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2903
- try {
2904
- new CSSStyleSheet();
2905
- return typeof new CSSStyleSheet().replaceSync === 'function';
2906
- }
2907
- catch (e) { }
2908
- return false;
2909
- })()
2910
- ;
2911
- const queueDomReads = [];
2912
- const queueDomWrites = [];
2913
- const queueTask = (queue, write) => (cb) => {
2914
- queue.push(cb);
2915
- if (!queuePending) {
2916
- queuePending = true;
2917
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2918
- nextTick(flush);
2919
- }
2920
- else {
2921
- plt.raf(flush);
2922
- }
2923
- }
2924
- };
2925
- const consume = (queue) => {
2926
- for (let i = 0; i < queue.length; i++) {
2927
- try {
2928
- queue[i](performance.now());
2929
- }
2930
- catch (e) {
2931
- consoleError(e);
2932
- }
2933
- }
2934
- queue.length = 0;
2935
- };
2936
- const flush = () => {
2937
- // always force a bunch of medium callbacks to run, but still have
2938
- // a throttle on how many can run in a certain time
2939
- // DOM READS!!!
2940
- consume(queueDomReads);
2941
- // DOM WRITES!!!
2942
- {
2943
- consume(queueDomWrites);
2944
- if ((queuePending = queueDomReads.length > 0)) {
2945
- // still more to do yet, but we've run out of time
2946
- // let's let this thing cool off and try again in the next tick
2947
- plt.raf(flush);
2948
- }
2949
- }
2950
- };
2951
- const nextTick = (cb) => promiseResolve().then(cb);
2952
- const readTask = /*@__PURE__*/ queueTask(queueDomReads, false);
2953
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2954
-
2955
- exports.Fragment = Fragment;
2956
- exports.Host = Host;
2957
- exports.bootstrapLazy = bootstrapLazy;
2958
- exports.createEvent = createEvent;
2959
- exports.forceUpdate = forceUpdate;
2960
- exports.getElement = getElement;
2961
- exports.h = h;
2962
- exports.promiseResolve = promiseResolve;
2963
- exports.readTask = readTask;
2964
- exports.registerInstance = registerInstance;
2965
- exports.setNonce = setNonce;
2966
-
2967
- //# sourceMappingURL=index-2d325c82.js.map