@siemens/ix 2.3.0 → 2.4.0

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