@siemens/ix 1.6.3 → 2.0.0-beta.1

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