@siemens/ix 2.4.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (830) hide show
  1. package/components/a11y.js +1 -1
  2. package/components/a11y.js.map +1 -1
  3. package/components/application-header.js +37 -7
  4. package/components/application-header.js.map +1 -1
  5. package/components/card-accordion.js +1 -1
  6. package/components/card-accordion.js.map +1 -1
  7. package/components/card-content.js +1 -1
  8. package/components/card-title.js +1 -1
  9. package/components/card.js +3 -3
  10. package/components/card.js.map +1 -1
  11. package/components/col.js.map +1 -1
  12. package/components/context.js +1 -1
  13. package/components/context.js.map +1 -1
  14. package/components/divider.js +1 -1
  15. package/components/dropdown-controller.js +140 -0
  16. package/components/dropdown-controller.js.map +1 -0
  17. package/components/dropdown-item.js +4 -4
  18. package/components/dropdown-item.js.map +1 -1
  19. package/components/dropdown.js +5 -141
  20. package/components/dropdown.js.map +1 -1
  21. package/components/filter-chip.js +1 -1
  22. package/components/floating-ui.dom.esm.js +533 -60
  23. package/components/floating-ui.dom.esm.js.map +1 -1
  24. package/components/group-context-menu.js +1 -1
  25. package/components/group-context-menu.js.map +1 -1
  26. package/components/group-item.js +2 -2
  27. package/components/index.js +1 -0
  28. package/components/index.js.map +1 -1
  29. package/components/ix-action-card.js +1 -1
  30. package/components/ix-action-card.js.map +1 -1
  31. package/components/ix-application-sidebar.js +1 -1
  32. package/components/ix-application-switch-modal.js +1 -1
  33. package/components/ix-application.js +2 -2
  34. package/components/ix-application.js.map +1 -1
  35. package/components/ix-basic-navigation.js +2 -2
  36. package/components/ix-basic-navigation.js.map +1 -1
  37. package/components/ix-blind.js.map +1 -1
  38. package/components/ix-breadcrumb.js +2 -2
  39. package/components/ix-card-list.js +6 -6
  40. package/components/ix-card-list.js.map +1 -1
  41. package/components/ix-category-filter.js +8 -4
  42. package/components/ix-category-filter.js.map +1 -1
  43. package/components/ix-chip.js +4 -4
  44. package/components/ix-chip.js.map +1 -1
  45. package/components/ix-content.js +3 -3
  46. package/components/ix-css-grid-item.js +1 -1
  47. package/components/ix-drawer.js +2 -2
  48. package/components/ix-dropdown-header.js +1 -1
  49. package/components/ix-dropdown-quick-actions.js +1 -1
  50. package/components/ix-event-list-item.js +4 -4
  51. package/components/ix-event-list.js +2 -2
  52. package/components/ix-expanding-search.js +4 -4
  53. package/components/ix-flip-tile-content.js +1 -1
  54. package/components/ix-flip-tile.js +4 -4
  55. package/components/ix-form-field.js +1 -1
  56. package/components/ix-group.js +58 -38
  57. package/components/ix-group.js.map +1 -1
  58. package/components/ix-icon-toggle-button.js +1 -1
  59. package/components/ix-input-group.js +1 -1
  60. package/components/ix-key-value-list.js +1 -1
  61. package/components/ix-kpi.js +3 -3
  62. package/components/ix-kpi.js.map +1 -1
  63. package/components/ix-link-button.js +3 -3
  64. package/components/ix-map-navigation.js +3 -3
  65. package/components/ix-map-navigation.js.map +1 -1
  66. package/components/ix-menu-about-item.js +1 -1
  67. package/components/ix-menu-about-news.js +4 -4
  68. package/components/ix-menu-avatar.js +2 -2
  69. package/components/ix-menu-category.js +5 -5
  70. package/components/ix-menu-settings-item.js +1 -1
  71. package/components/ix-menu.js +12 -12
  72. package/components/ix-menu.js.map +1 -1
  73. package/components/ix-message-bar.js +1 -1
  74. package/components/ix-modal-example.js +1 -1
  75. package/components/ix-modal-footer.js +2 -2
  76. package/components/ix-modal-footer.js.map +1 -1
  77. package/components/ix-modal-loading.js +1 -1
  78. package/components/ix-modal.js +1 -1
  79. package/components/ix-modal.js.map +1 -1
  80. package/components/ix-pagination.js +2 -2
  81. package/components/ix-pane-layout.js +1 -1
  82. package/components/ix-pane.js.map +1 -1
  83. package/components/ix-pill.js +4 -4
  84. package/components/ix-pill.js.map +1 -1
  85. package/components/ix-playground-internal.js +1 -1
  86. package/components/ix-playground-internal.js.map +1 -1
  87. package/components/ix-push-card.js +1 -1
  88. package/components/ix-push-card.js.map +1 -1
  89. package/components/ix-split-button-item.js +1 -1
  90. package/components/ix-tile.js +4 -4
  91. package/components/ix-tile.js.map +1 -1
  92. package/components/ix-toast-container.js.map +1 -1
  93. package/components/ix-toggle-button.js +2 -2
  94. package/components/ix-toggle.js +2 -2
  95. package/components/ix-tree.js +21 -7
  96. package/components/ix-tree.js.map +1 -1
  97. package/components/ix-upload.js +3 -3
  98. package/components/ix-upload.js.map +1 -1
  99. package/components/ix-validation-tooltip.js +2 -2
  100. package/components/ix-workflow-step.js +3 -3
  101. package/components/ix-workflow-step.js.map +1 -1
  102. package/components/ix-workflow-steps.js +1 -1
  103. package/components/ix-workflow-steps.js.map +1 -1
  104. package/components/layout-grid.js +2 -2
  105. package/components/layout-grid.js.map +1 -1
  106. package/components/listener.js +1 -1
  107. package/components/listener.js.map +1 -1
  108. package/components/logical-filter-operator.js +1 -1
  109. package/components/logical-filter-operator.js.map +1 -1
  110. package/components/map-navigation-overlay.js +2 -2
  111. package/components/menu-avatar-item.js +1 -1
  112. package/components/menu-expand-icon.js +1 -1
  113. package/components/menu-expand-icon.js.map +1 -1
  114. package/components/menu-item.js +14 -14
  115. package/components/menu-item.js.map +1 -1
  116. package/components/modal-content.js +1 -1
  117. package/components/modal-content.js.map +1 -1
  118. package/components/modal-header.js +1 -1
  119. package/components/modal-header.js.map +1 -1
  120. package/components/row.js +1 -1
  121. package/components/row.js.map +1 -1
  122. package/components/select-item.js +1 -1
  123. package/components/select.js +27 -30
  124. package/components/select.js.map +1 -1
  125. package/components/shadow-dom.js +1 -1
  126. package/components/shadow-dom.js.map +1 -1
  127. package/components/spinner.js +1 -1
  128. package/components/tabs.js +2 -2
  129. package/components/tabs.js.map +1 -1
  130. package/components/toast.js +2 -2
  131. package/components/toast.js.map +1 -1
  132. package/components/tooltip.js +22 -20
  133. package/components/tooltip.js.map +1 -1
  134. package/components/tree-item.js +8 -8
  135. package/components/tree-item.js.map +1 -1
  136. package/dist/cjs/{a11y-d3ce56d1.js → a11y-eba397e8.js} +2 -2
  137. package/dist/cjs/{a11y-d3ce56d1.js.map → a11y-eba397e8.js.map} +1 -1
  138. package/dist/cjs/{context-98f4a0b3.js → context-938f7470.js} +2 -2
  139. package/dist/cjs/{context-98f4a0b3.js.map → context-938f7470.js.map} +1 -1
  140. package/dist/cjs/dropdown-controller-5ef3d018.js +144 -0
  141. package/dist/cjs/dropdown-controller-5ef3d018.js.map +1 -0
  142. package/dist/cjs/{floating-ui.dom.esm-94b4d17c.js → floating-ui.dom.esm-9dde6cd6.js} +534 -60
  143. package/dist/cjs/floating-ui.dom.esm-9dde6cd6.js.map +1 -0
  144. package/dist/cjs/index.cjs.js +3 -2
  145. package/dist/cjs/index.cjs.js.map +1 -1
  146. package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
  147. package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -1
  148. package/dist/cjs/ix-application-header.cjs.entry.js +34 -8
  149. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  150. package/dist/cjs/ix-application-sidebar.cjs.entry.js +1 -1
  151. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +1 -1
  152. package/dist/cjs/ix-application.cjs.entry.js +4 -4
  153. package/dist/cjs/ix-application.cjs.entry.js.map +1 -1
  154. package/dist/cjs/ix-avatar_2.cjs.entry.js +2 -2
  155. package/dist/cjs/ix-basic-navigation.cjs.entry.js +3 -3
  156. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  157. package/dist/cjs/ix-blind.cjs.entry.js +1 -1
  158. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  159. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +1 -1
  160. package/dist/cjs/ix-breadcrumb.cjs.entry.js +3 -3
  161. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +2 -2
  162. package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
  163. package/dist/cjs/ix-card-list.cjs.entry.js +6 -6
  164. package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -1
  165. package/dist/cjs/ix-card_2.cjs.entry.js +4 -4
  166. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
  167. package/dist/cjs/ix-category-filter.cjs.entry.js +9 -5
  168. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  169. package/dist/cjs/ix-chip.cjs.entry.js +4 -4
  170. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  171. package/dist/cjs/ix-col_4.cjs.entry.js +4 -4
  172. package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
  173. package/dist/cjs/ix-content.cjs.entry.js +4 -4
  174. package/dist/cjs/ix-css-grid-item.cjs.entry.js +1 -1
  175. package/dist/cjs/ix-divider.cjs.entry.js +1 -1
  176. package/dist/cjs/ix-drawer.cjs.entry.js +2 -2
  177. package/dist/cjs/ix-dropdown-header.cjs.entry.js +1 -1
  178. package/dist/cjs/ix-dropdown-item.cjs.entry.js +4 -4
  179. package/dist/cjs/ix-dropdown-item.cjs.entry.js.map +1 -1
  180. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
  181. package/dist/cjs/ix-dropdown.cjs.entry.js +18 -154
  182. package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
  183. package/dist/cjs/ix-event-list-item.cjs.entry.js +5 -5
  184. package/dist/cjs/ix-event-list.cjs.entry.js +2 -2
  185. package/dist/cjs/ix-expanding-search.cjs.entry.js +4 -4
  186. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +2 -2
  187. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +1 -1
  188. package/dist/cjs/ix-flip-tile.cjs.entry.js +4 -4
  189. package/dist/cjs/ix-form-field.cjs.entry.js +1 -1
  190. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +4 -4
  191. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  192. package/dist/cjs/ix-group.cjs.entry.js +57 -39
  193. package/dist/cjs/ix-group.cjs.entry.js.map +1 -1
  194. package/dist/cjs/ix-icon-button_2.cjs.entry.js +2 -2
  195. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +2 -2
  196. package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
  197. package/dist/cjs/ix-key-value-list.cjs.entry.js +1 -1
  198. package/dist/cjs/ix-kpi.cjs.entry.js +3 -3
  199. package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
  200. package/dist/cjs/ix-link-button.cjs.entry.js +3 -3
  201. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +2 -2
  202. package/dist/cjs/ix-map-navigation.cjs.entry.js +4 -4
  203. package/dist/cjs/ix-map-navigation.cjs.entry.js.map +1 -1
  204. package/dist/cjs/ix-menu-about-item.cjs.entry.js +1 -1
  205. package/dist/cjs/ix-menu-about-news.cjs.entry.js +4 -4
  206. package/dist/cjs/ix-menu-avatar.cjs.entry.js +3 -3
  207. package/dist/cjs/ix-menu-category.cjs.entry.js +6 -6
  208. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +2 -2
  209. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js.map +1 -1
  210. package/dist/cjs/ix-menu-item.cjs.entry.js +13 -13
  211. package/dist/cjs/ix-menu-item.cjs.entry.js.map +1 -1
  212. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +1 -1
  213. package/dist/cjs/ix-menu.cjs.entry.js +13 -13
  214. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  215. package/dist/cjs/ix-message-bar.cjs.entry.js +1 -1
  216. package/dist/cjs/ix-modal-content_2.cjs.entry.js +3 -3
  217. package/dist/cjs/ix-modal-content_2.cjs.entry.js.map +1 -1
  218. package/dist/cjs/ix-modal-example.cjs.entry.js +1 -1
  219. package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
  220. package/dist/cjs/ix-modal-footer.cjs.entry.js.map +1 -1
  221. package/dist/cjs/ix-modal-loading.cjs.entry.js +1 -1
  222. package/dist/cjs/ix-modal.cjs.entry.js +3 -3
  223. package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
  224. package/dist/cjs/ix-pagination.cjs.entry.js +3 -3
  225. package/dist/cjs/ix-pane-layout.cjs.entry.js +1 -1
  226. package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
  227. package/dist/cjs/ix-pill.cjs.entry.js +4 -4
  228. package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
  229. package/dist/cjs/ix-playground-internal.cjs.entry.js +1 -1
  230. package/dist/cjs/ix-playground-internal.cjs.entry.js.map +1 -1
  231. package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
  232. package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -1
  233. package/dist/cjs/ix-select.cjs.entry.js +28 -31
  234. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  235. package/dist/cjs/ix-slider.cjs.entry.js +2 -2
  236. package/dist/cjs/ix-split-button-item.cjs.entry.js +1 -1
  237. package/dist/cjs/ix-tab-item_2.cjs.entry.js +2 -2
  238. package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
  239. package/dist/cjs/ix-tile.cjs.entry.js +4 -4
  240. package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
  241. package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
  242. package/dist/cjs/ix-toast.cjs.entry.js +2 -2
  243. package/dist/cjs/ix-toast.cjs.entry.js.map +1 -1
  244. package/dist/cjs/ix-toggle-button.cjs.entry.js +3 -3
  245. package/dist/cjs/ix-toggle.cjs.entry.js +3 -3
  246. package/dist/cjs/ix-tooltip.cjs.entry.js +23 -21
  247. package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -1
  248. package/dist/cjs/ix-tree-item.cjs.entry.js +8 -8
  249. package/dist/cjs/ix-tree-item.cjs.entry.js.map +1 -1
  250. package/dist/cjs/ix-tree.cjs.entry.js +21 -7
  251. package/dist/cjs/ix-tree.cjs.entry.js.map +1 -1
  252. package/dist/cjs/ix-upload.cjs.entry.js +3 -3
  253. package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
  254. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -3
  255. package/dist/cjs/ix-workflow-step.cjs.entry.js +3 -3
  256. package/dist/cjs/ix-workflow-step.cjs.entry.js.map +1 -1
  257. package/dist/cjs/ix-workflow-steps.cjs.entry.js +1 -1
  258. package/dist/cjs/ix-workflow-steps.cjs.entry.js.map +1 -1
  259. package/dist/cjs/{listener-bc3e7c0c.js → listener-a124ed49.js} +2 -2
  260. package/dist/cjs/{listener-bc3e7c0c.js.map → listener-a124ed49.js.map} +1 -1
  261. package/dist/cjs/loader.cjs.js +1 -1
  262. package/dist/cjs/{logical-filter-operator-5564322e.js → logical-filter-operator-4917393f.js} +2 -2
  263. package/dist/cjs/{logical-filter-operator-5564322e.js.map → logical-filter-operator-4917393f.js.map} +1 -1
  264. package/dist/cjs/{shadow-dom-73f9d553.js → shadow-dom-454acc38.js} +2 -2
  265. package/dist/cjs/{shadow-dom-73f9d553.js.map → shadow-dom-454acc38.js.map} +1 -1
  266. package/dist/cjs/siemens-ix.cjs.js +1 -1
  267. package/dist/collection/components/action-card/action-card.js +6 -3
  268. package/dist/collection/components/action-card/action-card.js.map +1 -1
  269. package/dist/collection/components/application/application.css +26 -6
  270. package/dist/collection/components/application/application.js +1 -1
  271. package/dist/collection/components/application/application.js.map +1 -1
  272. package/dist/collection/components/application-header/application-header.css +9 -7
  273. package/dist/collection/components/application-header/application-header.js +77 -5
  274. package/dist/collection/components/application-header/application-header.js.map +1 -1
  275. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
  276. package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
  277. package/dist/collection/components/basic-navigation/basic-navigation.js +7 -4
  278. package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
  279. package/dist/collection/components/blind/blind.css +1 -1
  280. package/dist/collection/components/blind/blind.js +2 -2
  281. package/dist/collection/components/blind/blind.js.map +1 -1
  282. package/dist/collection/components/blind/test/blind.ct.js +1 -1
  283. package/dist/collection/components/blind/test/blind.ct.js.map +1 -1
  284. package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
  285. package/dist/collection/components/card/card.css +3 -3
  286. package/dist/collection/components/card/card.js +7 -4
  287. package/dist/collection/components/card/card.js.map +1 -1
  288. package/dist/collection/components/card-accordion/card-accordion.css +4 -4
  289. package/dist/collection/components/card-content/card-content.js +1 -1
  290. package/dist/collection/components/card-list/card-list.css +6 -0
  291. package/dist/collection/components/card-list/card-list.js +5 -5
  292. package/dist/collection/components/card-list/card-list.js.map +1 -1
  293. package/dist/collection/components/card-title/card-title.js +1 -1
  294. package/dist/collection/components/category-filter/category-filter.js +18 -13
  295. package/dist/collection/components/category-filter/category-filter.js.map +1 -1
  296. package/dist/collection/components/category-filter/logical-filter-operator.js +1 -1
  297. package/dist/collection/components/category-filter/logical-filter-operator.js.map +1 -1
  298. package/dist/collection/components/category-filter/test/category-filter.ct.js +52 -0
  299. package/dist/collection/components/category-filter/test/category-filter.ct.js.map +1 -0
  300. package/dist/collection/components/chip/chip.css +2 -2
  301. package/dist/collection/components/chip/chip.js +5 -5
  302. package/dist/collection/components/chip/chip.js.map +1 -1
  303. package/dist/collection/components/col/col.css +1 -1
  304. package/dist/collection/components/col/col.js +1 -1
  305. package/dist/collection/components/col/col.js.map +1 -1
  306. package/dist/collection/components/content/content.js +3 -3
  307. package/dist/collection/components/css-grid/css-grid-item.js +1 -1
  308. package/dist/collection/components/divider/divider.js +1 -1
  309. package/dist/collection/components/drawer/drawer.js +2 -2
  310. package/dist/collection/components/dropdown/dropdown.js +2 -2
  311. package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
  312. package/dist/collection/components/dropdown-item/dropdown-item.css +3 -3
  313. package/dist/collection/components/dropdown-item/dropdown-item.js +5 -5
  314. package/dist/collection/components/dropdown-item/dropdown-item.js.map +1 -1
  315. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  316. package/dist/collection/components/event-list/event-list.js +2 -2
  317. package/dist/collection/components/event-list-item/event-list-item.js +4 -4
  318. package/dist/collection/components/expanding-search/expanding-search.js +4 -4
  319. package/dist/collection/components/filter-chip/filter-chip.js +1 -1
  320. package/dist/collection/components/flip-tile/flip-tile.js +4 -4
  321. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  322. package/dist/collection/components/form-field/form-field.js +1 -1
  323. package/dist/collection/components/grid/layout-grid.css +1 -1
  324. package/dist/collection/components/grid/layout-grid.js +3 -3
  325. package/dist/collection/components/grid/layout-grid.js.map +1 -1
  326. package/dist/collection/components/group/group-context-menu.css +1 -1
  327. package/dist/collection/components/group/group-context-menu.js +2 -2
  328. package/dist/collection/components/group/group-context-menu.js.map +1 -1
  329. package/dist/collection/components/group/group.css +3 -2
  330. package/dist/collection/components/group/group.js +68 -38
  331. package/dist/collection/components/group/group.js.map +1 -1
  332. package/dist/collection/components/group/test/group.ct.js +34 -4
  333. package/dist/collection/components/group/test/group.ct.js.map +1 -1
  334. package/dist/collection/components/group-item/group-item.js +2 -2
  335. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
  336. package/dist/collection/components/input-group/input-group.js +1 -1
  337. package/dist/collection/components/key-value-list/key-value-list.js +1 -1
  338. package/dist/collection/components/kpi/kpi.css +1 -1
  339. package/dist/collection/components/kpi/kpi.js +4 -4
  340. package/dist/collection/components/kpi/kpi.js.map +1 -1
  341. package/dist/collection/components/link-button/link-button.js +3 -3
  342. package/dist/collection/components/map-navigation/map-navigation.css +3 -3
  343. package/dist/collection/components/map-navigation/map-navigation.js +2 -2
  344. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
  345. package/dist/collection/components/menu/menu-expand-icon.css +1 -1
  346. package/dist/collection/components/menu/menu-expand-icon.js +3 -3
  347. package/dist/collection/components/menu/menu-expand-icon.js.map +1 -1
  348. package/dist/collection/components/menu/menu.css +4 -3
  349. package/dist/collection/components/menu/menu.js +12 -12
  350. package/dist/collection/components/menu/menu.js.map +1 -1
  351. package/dist/collection/components/menu/test/menu.ct.js +1 -1
  352. package/dist/collection/components/menu/test/menu.ct.js.map +1 -1
  353. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  354. package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
  355. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
  356. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
  357. package/dist/collection/components/menu-category/menu-category.js +5 -5
  358. package/dist/collection/components/menu-item/menu-item.js +24 -21
  359. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  360. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  361. package/dist/collection/components/message-bar/message-bar.js +1 -1
  362. package/dist/collection/components/modal/modal.css +18 -8
  363. package/dist/collection/components/modal/modal.js +1 -1
  364. package/dist/collection/components/modal/modal.js.map +1 -1
  365. package/dist/collection/components/modal/test/modal.ct.js +1 -1
  366. package/dist/collection/components/modal/test/modal.ct.js.map +1 -1
  367. package/dist/collection/components/modal-content/modal-content.css +1 -1
  368. package/dist/collection/components/modal-content/modal-content.js +1 -1
  369. package/dist/collection/components/modal-footer/modal-footer.css +1 -0
  370. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  371. package/dist/collection/components/modal-header/modal-header.js +2 -2
  372. package/dist/collection/components/modal-header/modal-header.js.map +1 -1
  373. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  374. package/dist/collection/components/pagination/pagination.js +2 -2
  375. package/dist/collection/components/pane/pane.css +1 -1
  376. package/dist/collection/components/pane/pane.js +1 -1
  377. package/dist/collection/components/pane/pane.js.map +1 -1
  378. package/dist/collection/components/pane/test/panes.ct.js +1 -1
  379. package/dist/collection/components/pane/test/panes.ct.js.map +1 -1
  380. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  381. package/dist/collection/components/pill/pill.css +2 -2
  382. package/dist/collection/components/pill/pill.js +5 -5
  383. package/dist/collection/components/pill/pill.js.map +1 -1
  384. package/dist/collection/components/playground/example-modal.js +1 -1
  385. package/dist/collection/components/playground/playground.js +2 -2
  386. package/dist/collection/components/playground/playground.js.map +1 -1
  387. package/dist/collection/components/push-card/push-card.js +9 -6
  388. package/dist/collection/components/push-card/push-card.js.map +1 -1
  389. package/dist/collection/components/row/row.css +1 -1
  390. package/dist/collection/components/row/row.js +2 -2
  391. package/dist/collection/components/row/row.js.map +1 -1
  392. package/dist/collection/components/select/select.js +27 -30
  393. package/dist/collection/components/select/select.js.map +1 -1
  394. package/dist/collection/components/select/test/select.ct.js +44 -0
  395. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  396. package/dist/collection/components/select-item/select-item.js +1 -1
  397. package/dist/collection/components/spinner/spinner.js +1 -1
  398. package/dist/collection/components/split-button-item/split-button-item.js +1 -1
  399. package/dist/collection/components/tabs/tabs.css +1 -1
  400. package/dist/collection/components/tabs/tabs.js +3 -3
  401. package/dist/collection/components/tabs/tabs.js.map +1 -1
  402. package/dist/collection/components/tile/tile.css +1 -1
  403. package/dist/collection/components/tile/tile.js +5 -5
  404. package/dist/collection/components/tile/tile.js.map +1 -1
  405. package/dist/collection/components/toast/styles/toast-container.css +1 -1
  406. package/dist/collection/components/toast/toast-container.js +1 -1
  407. package/dist/collection/components/toast/toast-container.js.map +1 -1
  408. package/dist/collection/components/toast/toast-utils.js.map +1 -1
  409. package/dist/collection/components/toast/toast.css +1 -1
  410. package/dist/collection/components/toast/toast.js +3 -3
  411. package/dist/collection/components/toast/toast.js.map +1 -1
  412. package/dist/collection/components/toggle/toggle.js +2 -2
  413. package/dist/collection/components/toggle-button/toggle-button.js +2 -2
  414. package/dist/collection/components/tooltip/tooltip.css +15 -5
  415. package/dist/collection/components/tooltip/tooltip.js +22 -20
  416. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  417. package/dist/collection/components/tree/test/tree.ct.js +37 -1
  418. package/dist/collection/components/tree/test/tree.ct.js.map +1 -1
  419. package/dist/collection/components/tree/tree-model.js.map +1 -1
  420. package/dist/collection/components/tree/tree.css +1 -1
  421. package/dist/collection/components/tree/tree.js +26 -11
  422. package/dist/collection/components/tree/tree.js.map +1 -1
  423. package/dist/collection/components/tree-item/tree-item.css +9 -0
  424. package/dist/collection/components/tree-item/tree-item.js +13 -12
  425. package/dist/collection/components/tree-item/tree-item.js.map +1 -1
  426. package/dist/collection/components/upload/upload.js +4 -4
  427. package/dist/collection/components/upload/upload.js.map +1 -1
  428. package/dist/collection/components/utils/condition-checks.js +1 -1
  429. package/dist/collection/components/utils/condition-checks.js.map +1 -1
  430. package/dist/collection/components/utils/context.js +1 -1
  431. package/dist/collection/components/utils/context.js.map +1 -1
  432. package/dist/collection/components/utils/listener.js +1 -1
  433. package/dist/collection/components/utils/listener.js.map +1 -1
  434. package/dist/collection/components/utils/notification-color.js.map +1 -1
  435. package/dist/collection/components/utils/shadow-dom.js +1 -1
  436. package/dist/collection/components/utils/shadow-dom.js.map +1 -1
  437. package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
  438. package/dist/collection/components/workflow-step/workflow-step.css +1 -1
  439. package/dist/collection/components/workflow-step/workflow-step.js +4 -4
  440. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  441. package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js +2 -2
  442. package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js.map +1 -1
  443. package/dist/collection/components/workflow-steps/workflow-steps.css +1 -1
  444. package/dist/collection/components/workflow-steps/workflow-steps.js +2 -2
  445. package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
  446. package/dist/collection/index.js +1 -0
  447. package/dist/collection/index.js.map +1 -1
  448. package/dist/collection/tests/application-header/application-header.e2e.js +9 -0
  449. package/dist/collection/tests/application-header/application-header.e2e.js.map +1 -1
  450. package/dist/collection/tests/card-list/card-list.e2e.js +7 -1
  451. package/dist/collection/tests/card-list/card-list.e2e.js.map +1 -1
  452. package/dist/collection/tests/dropdown/dropdown.e2e.js +6 -0
  453. package/dist/collection/tests/dropdown/dropdown.e2e.js.map +1 -1
  454. package/dist/collection/tests/group/group.e2e.js +12 -3
  455. package/dist/collection/tests/group/group.e2e.js.map +1 -1
  456. package/dist/collection/tests/tooltip/tooltip.e2e.js +22 -0
  457. package/dist/collection/tests/tooltip/tooltip.e2e.js.map +1 -1
  458. package/dist/collection/tests/tree/tree.e2e.js +12 -0
  459. package/dist/collection/tests/tree/tree.e2e.js.map +1 -1
  460. package/dist/esm/{a11y-d5444a76.js → a11y-2e34777f.js} +2 -2
  461. package/dist/esm/{a11y-d5444a76.js.map → a11y-2e34777f.js.map} +1 -1
  462. package/dist/esm/{context-c9078420.js → context-82a1ccf8.js} +2 -2
  463. package/dist/esm/{context-c9078420.js.map → context-82a1ccf8.js.map} +1 -1
  464. package/dist/esm/dropdown-controller-95bd6750.js +140 -0
  465. package/dist/esm/dropdown-controller-95bd6750.js.map +1 -0
  466. package/dist/esm/{floating-ui.dom.esm-6e7c098f.js → floating-ui.dom.esm-d4ad786a.js} +534 -61
  467. package/dist/esm/floating-ui.dom.esm-d4ad786a.js.map +1 -0
  468. package/dist/esm/index.js +2 -2
  469. package/dist/esm/index.js.map +1 -1
  470. package/dist/esm/ix-action-card.entry.js +1 -1
  471. package/dist/esm/ix-action-card.entry.js.map +1 -1
  472. package/dist/esm/ix-application-header.entry.js +35 -9
  473. package/dist/esm/ix-application-header.entry.js.map +1 -1
  474. package/dist/esm/ix-application-sidebar.entry.js +1 -1
  475. package/dist/esm/ix-application-switch-modal.entry.js +1 -1
  476. package/dist/esm/ix-application.entry.js +4 -4
  477. package/dist/esm/ix-application.entry.js.map +1 -1
  478. package/dist/esm/ix-avatar_2.entry.js +2 -2
  479. package/dist/esm/ix-basic-navigation.entry.js +3 -3
  480. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  481. package/dist/esm/ix-blind.entry.js +1 -1
  482. package/dist/esm/ix-blind.entry.js.map +1 -1
  483. package/dist/esm/ix-breadcrumb-item.entry.js +1 -1
  484. package/dist/esm/ix-breadcrumb.entry.js +3 -3
  485. package/dist/esm/ix-card-accordion_2.entry.js +2 -2
  486. package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
  487. package/dist/esm/ix-card-list.entry.js +6 -6
  488. package/dist/esm/ix-card-list.entry.js.map +1 -1
  489. package/dist/esm/ix-card_2.entry.js +4 -4
  490. package/dist/esm/ix-card_2.entry.js.map +1 -1
  491. package/dist/esm/ix-category-filter.entry.js +9 -5
  492. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  493. package/dist/esm/ix-chip.entry.js +4 -4
  494. package/dist/esm/ix-chip.entry.js.map +1 -1
  495. package/dist/esm/ix-col_4.entry.js +4 -4
  496. package/dist/esm/ix-col_4.entry.js.map +1 -1
  497. package/dist/esm/ix-content.entry.js +4 -4
  498. package/dist/esm/ix-css-grid-item.entry.js +1 -1
  499. package/dist/esm/ix-divider.entry.js +1 -1
  500. package/dist/esm/ix-drawer.entry.js +2 -2
  501. package/dist/esm/ix-dropdown-header.entry.js +1 -1
  502. package/dist/esm/ix-dropdown-item.entry.js +4 -4
  503. package/dist/esm/ix-dropdown-item.entry.js.map +1 -1
  504. package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
  505. package/dist/esm/ix-dropdown.entry.js +4 -140
  506. package/dist/esm/ix-dropdown.entry.js.map +1 -1
  507. package/dist/esm/ix-event-list-item.entry.js +5 -5
  508. package/dist/esm/ix-event-list.entry.js +2 -2
  509. package/dist/esm/ix-expanding-search.entry.js +4 -4
  510. package/dist/esm/ix-filter-chip_2.entry.js +2 -2
  511. package/dist/esm/ix-flip-tile-content.entry.js +1 -1
  512. package/dist/esm/ix-flip-tile.entry.js +4 -4
  513. package/dist/esm/ix-form-field.entry.js +1 -1
  514. package/dist/esm/ix-group-context-menu_2.entry.js +4 -4
  515. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  516. package/dist/esm/ix-group.entry.js +57 -39
  517. package/dist/esm/ix-group.entry.js.map +1 -1
  518. package/dist/esm/ix-icon-button_2.entry.js +2 -2
  519. package/dist/esm/ix-icon-toggle-button.entry.js +2 -2
  520. package/dist/esm/ix-input-group.entry.js +2 -2
  521. package/dist/esm/ix-key-value-list.entry.js +1 -1
  522. package/dist/esm/ix-kpi.entry.js +3 -3
  523. package/dist/esm/ix-kpi.entry.js.map +1 -1
  524. package/dist/esm/ix-link-button.entry.js +3 -3
  525. package/dist/esm/ix-map-navigation-overlay.entry.js +2 -2
  526. package/dist/esm/ix-map-navigation.entry.js +4 -4
  527. package/dist/esm/ix-map-navigation.entry.js.map +1 -1
  528. package/dist/esm/ix-menu-about-item.entry.js +1 -1
  529. package/dist/esm/ix-menu-about-news.entry.js +4 -4
  530. package/dist/esm/ix-menu-avatar.entry.js +3 -3
  531. package/dist/esm/ix-menu-category.entry.js +6 -6
  532. package/dist/esm/ix-menu-expand-icon.entry.js +2 -2
  533. package/dist/esm/ix-menu-expand-icon.entry.js.map +1 -1
  534. package/dist/esm/ix-menu-item.entry.js +14 -14
  535. package/dist/esm/ix-menu-item.entry.js.map +1 -1
  536. package/dist/esm/ix-menu-settings-item.entry.js +1 -1
  537. package/dist/esm/ix-menu.entry.js +13 -13
  538. package/dist/esm/ix-menu.entry.js.map +1 -1
  539. package/dist/esm/ix-message-bar.entry.js +1 -1
  540. package/dist/esm/ix-modal-content_2.entry.js +3 -3
  541. package/dist/esm/ix-modal-content_2.entry.js.map +1 -1
  542. package/dist/esm/ix-modal-example.entry.js +1 -1
  543. package/dist/esm/ix-modal-footer.entry.js +2 -2
  544. package/dist/esm/ix-modal-footer.entry.js.map +1 -1
  545. package/dist/esm/ix-modal-loading.entry.js +1 -1
  546. package/dist/esm/ix-modal.entry.js +3 -3
  547. package/dist/esm/ix-modal.entry.js.map +1 -1
  548. package/dist/esm/ix-pagination.entry.js +3 -3
  549. package/dist/esm/ix-pane-layout.entry.js +1 -1
  550. package/dist/esm/ix-pane.entry.js.map +1 -1
  551. package/dist/esm/ix-pill.entry.js +4 -4
  552. package/dist/esm/ix-pill.entry.js.map +1 -1
  553. package/dist/esm/ix-playground-internal.entry.js +1 -1
  554. package/dist/esm/ix-playground-internal.entry.js.map +1 -1
  555. package/dist/esm/ix-push-card.entry.js +1 -1
  556. package/dist/esm/ix-push-card.entry.js.map +1 -1
  557. package/dist/esm/ix-select.entry.js +28 -31
  558. package/dist/esm/ix-select.entry.js.map +1 -1
  559. package/dist/esm/ix-slider.entry.js +2 -2
  560. package/dist/esm/ix-split-button-item.entry.js +1 -1
  561. package/dist/esm/ix-tab-item_2.entry.js +2 -2
  562. package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
  563. package/dist/esm/ix-tile.entry.js +4 -4
  564. package/dist/esm/ix-tile.entry.js.map +1 -1
  565. package/dist/esm/ix-toast-container.entry.js.map +1 -1
  566. package/dist/esm/ix-toast.entry.js +2 -2
  567. package/dist/esm/ix-toast.entry.js.map +1 -1
  568. package/dist/esm/ix-toggle-button.entry.js +3 -3
  569. package/dist/esm/ix-toggle.entry.js +3 -3
  570. package/dist/esm/ix-tooltip.entry.js +23 -21
  571. package/dist/esm/ix-tooltip.entry.js.map +1 -1
  572. package/dist/esm/ix-tree-item.entry.js +8 -8
  573. package/dist/esm/ix-tree-item.entry.js.map +1 -1
  574. package/dist/esm/ix-tree.entry.js +21 -7
  575. package/dist/esm/ix-tree.entry.js.map +1 -1
  576. package/dist/esm/ix-upload.entry.js +3 -3
  577. package/dist/esm/ix-upload.entry.js.map +1 -1
  578. package/dist/esm/ix-validation-tooltip.entry.js +3 -3
  579. package/dist/esm/ix-workflow-step.entry.js +3 -3
  580. package/dist/esm/ix-workflow-step.entry.js.map +1 -1
  581. package/dist/esm/ix-workflow-steps.entry.js +1 -1
  582. package/dist/esm/ix-workflow-steps.entry.js.map +1 -1
  583. package/dist/esm/{listener-4f3baab5.js → listener-2c562054.js} +2 -2
  584. package/dist/esm/{listener-4f3baab5.js.map → listener-2c562054.js.map} +1 -1
  585. package/dist/esm/loader.js +1 -1
  586. package/dist/esm/{logical-filter-operator-f6701df5.js → logical-filter-operator-d793d1c3.js} +2 -2
  587. package/dist/esm/{logical-filter-operator-f6701df5.js.map → logical-filter-operator-d793d1c3.js.map} +1 -1
  588. package/dist/esm/{shadow-dom-60e9243d.js → shadow-dom-cc0bc152.js} +2 -2
  589. package/dist/esm/{shadow-dom-60e9243d.js.map → shadow-dom-cc0bc152.js.map} +1 -1
  590. package/dist/esm/siemens-ix.js +1 -1
  591. package/dist/siemens-ix/index.esm.js +1 -1
  592. package/dist/siemens-ix/index.esm.js.map +1 -1
  593. package/dist/siemens-ix/p-04af3853.entry.js +2 -0
  594. package/dist/siemens-ix/{p-4df0cdd7.entry.js → p-04ec538b.entry.js} +2 -2
  595. package/dist/siemens-ix/{p-68644ee1.entry.js → p-05dc6b2d.entry.js} +2 -2
  596. package/dist/siemens-ix/{p-68644ee1.entry.js.map → p-05dc6b2d.entry.js.map} +1 -1
  597. package/dist/siemens-ix/{p-af099ca4.entry.js → p-0632731e.entry.js} +2 -2
  598. package/dist/siemens-ix/{p-6af4415c.entry.js → p-085d5ec2.entry.js} +2 -2
  599. package/dist/siemens-ix/{p-6af4415c.entry.js.map → p-085d5ec2.entry.js.map} +1 -1
  600. package/dist/siemens-ix/{p-0d2a6886.entry.js → p-091b036d.entry.js} +2 -2
  601. package/dist/siemens-ix/{p-453fa360.entry.js → p-0ef97555.entry.js} +2 -2
  602. package/dist/siemens-ix/{p-453fa360.entry.js.map → p-0ef97555.entry.js.map} +1 -1
  603. package/dist/siemens-ix/{p-2946fd70.entry.js → p-0fafba48.entry.js} +2 -2
  604. package/dist/siemens-ix/{p-7076210b.entry.js → p-1483f65d.entry.js} +2 -2
  605. package/dist/siemens-ix/{p-4f8ac3bf.js → p-157b1b28.js} +1 -1
  606. package/dist/siemens-ix/{p-4f8ac3bf.js.map → p-157b1b28.js.map} +1 -1
  607. package/dist/siemens-ix/p-15f44099.entry.js +2 -0
  608. package/dist/siemens-ix/{p-87e692d9.entry.js.map → p-15f44099.entry.js.map} +1 -1
  609. package/dist/siemens-ix/{p-2908cacd.entry.js → p-17a8aab2.entry.js} +2 -2
  610. package/dist/siemens-ix/{p-2908cacd.entry.js.map → p-17a8aab2.entry.js.map} +1 -1
  611. package/dist/siemens-ix/{p-c1968b80.entry.js → p-1bd98772.entry.js} +2 -2
  612. package/dist/siemens-ix/p-1c3a0b1f.js +2 -0
  613. package/dist/siemens-ix/p-1c3a0b1f.js.map +1 -0
  614. package/dist/siemens-ix/{p-8629db91.entry.js → p-25f1749c.entry.js} +2 -2
  615. package/dist/siemens-ix/{p-5696bb62.entry.js → p-306269ae.entry.js} +2 -2
  616. package/dist/siemens-ix/{p-dde7eb80.entry.js → p-33a7a26d.entry.js} +2 -2
  617. package/dist/siemens-ix/{p-dde7eb80.entry.js.map → p-33a7a26d.entry.js.map} +1 -1
  618. package/dist/siemens-ix/{p-712e0ee0.js → p-345e1c73.js} +1 -1
  619. package/dist/siemens-ix/{p-712e0ee0.js.map → p-345e1c73.js.map} +1 -1
  620. package/dist/siemens-ix/p-35fff1e6.entry.js +2 -0
  621. package/dist/siemens-ix/{p-9ebc4fc3.entry.js → p-37229f30.entry.js} +2 -2
  622. package/dist/siemens-ix/{p-9ebc4fc3.entry.js.map → p-37229f30.entry.js.map} +1 -1
  623. package/dist/siemens-ix/p-3dc1294b.entry.js +2 -0
  624. package/dist/siemens-ix/{p-e9a3f58a.entry.js.map → p-3dc1294b.entry.js.map} +1 -1
  625. package/dist/siemens-ix/p-3f59a3c3.entry.js +2 -0
  626. package/dist/siemens-ix/p-3f59a3c3.entry.js.map +1 -0
  627. package/dist/siemens-ix/p-411f51c5.entry.js +2 -0
  628. package/dist/siemens-ix/{p-f78246bd.entry.js → p-44a27b29.entry.js} +2 -2
  629. package/dist/siemens-ix/{p-d03df401.entry.js → p-49d3fc15.entry.js} +2 -2
  630. package/dist/siemens-ix/{p-25ee1b62.js → p-4ac31849.js} +1 -1
  631. package/dist/siemens-ix/{p-25ee1b62.js.map → p-4ac31849.js.map} +1 -1
  632. package/dist/siemens-ix/{p-dbe8f5e6.entry.js → p-4e547dd3.entry.js} +2 -2
  633. package/dist/siemens-ix/{p-dbe8f5e6.entry.js.map → p-4e547dd3.entry.js.map} +1 -1
  634. package/dist/siemens-ix/p-5099c070.entry.js +2 -0
  635. package/dist/siemens-ix/p-5099c070.entry.js.map +1 -0
  636. package/dist/siemens-ix/{p-fc5814df.entry.js → p-5351225b.entry.js} +2 -2
  637. package/dist/siemens-ix/p-5351225b.entry.js.map +1 -0
  638. package/dist/siemens-ix/p-5aa0b93c.entry.js.map +1 -1
  639. package/dist/siemens-ix/{p-113cc793.entry.js → p-5af99eaa.entry.js} +2 -2
  640. package/dist/siemens-ix/{p-e30ed20a.entry.js → p-62b089b6.entry.js} +2 -2
  641. package/dist/siemens-ix/{p-e30ed20a.entry.js.map → p-62b089b6.entry.js.map} +1 -1
  642. package/dist/siemens-ix/p-63f0755e.entry.js +2 -0
  643. package/dist/siemens-ix/{p-14a41c8c.entry.js → p-6618b2db.entry.js} +2 -2
  644. package/dist/siemens-ix/{p-0653a145.entry.js → p-67f44540.entry.js} +2 -2
  645. package/dist/siemens-ix/{p-15b3c17e.entry.js → p-6e4c9e3d.entry.js} +2 -2
  646. package/dist/siemens-ix/{p-15b3c17e.entry.js.map → p-6e4c9e3d.entry.js.map} +1 -1
  647. package/dist/siemens-ix/p-7402f42a.entry.js +2 -0
  648. package/dist/siemens-ix/p-7402f42a.entry.js.map +1 -0
  649. package/dist/siemens-ix/{p-53352bfb.entry.js → p-77273517.entry.js} +2 -2
  650. package/dist/siemens-ix/{p-882a0233.entry.js → p-78ac2ff1.entry.js} +2 -2
  651. package/dist/siemens-ix/p-7947ef3d.entry.js +2 -0
  652. package/dist/siemens-ix/{p-fb47546b.entry.js → p-7c2f34f0.entry.js} +2 -2
  653. package/dist/siemens-ix/p-82d33168.entry.js +2 -0
  654. package/dist/siemens-ix/p-82f9d976.entry.js +2 -0
  655. package/dist/siemens-ix/p-82f9d976.entry.js.map +1 -0
  656. package/dist/siemens-ix/{p-85423643.entry.js → p-86bbc005.entry.js} +2 -2
  657. package/dist/siemens-ix/p-86bbc005.entry.js.map +1 -0
  658. package/dist/siemens-ix/p-86fd5922.entry.js +2 -0
  659. package/dist/siemens-ix/p-86fd5922.entry.js.map +1 -0
  660. package/dist/siemens-ix/p-89e48bea.entry.js +2 -0
  661. package/dist/siemens-ix/p-89e48bea.entry.js.map +1 -0
  662. package/dist/siemens-ix/{p-052340f9.entry.js → p-8acc09aa.entry.js} +2 -2
  663. package/dist/siemens-ix/{p-6fd7ecd0.entry.js → p-9079f6c8.entry.js} +2 -2
  664. package/dist/siemens-ix/p-928209e1.entry.js +2 -0
  665. package/dist/siemens-ix/p-928209e1.entry.js.map +1 -0
  666. package/dist/siemens-ix/{p-e8d3cf35.entry.js → p-958c5970.entry.js} +2 -2
  667. package/dist/siemens-ix/{p-e8d3cf35.entry.js.map → p-958c5970.entry.js.map} +1 -1
  668. package/dist/siemens-ix/{p-16b923e9.entry.js → p-9bdda7ff.entry.js} +2 -2
  669. package/dist/siemens-ix/p-a08efce0.entry.js +2 -0
  670. package/dist/siemens-ix/p-a08efce0.entry.js.map +1 -0
  671. package/dist/siemens-ix/p-a4755205.entry.js +2 -0
  672. package/dist/siemens-ix/p-a4755205.entry.js.map +1 -0
  673. package/dist/siemens-ix/{p-2c4c03d4.entry.js → p-aa814811.entry.js} +2 -2
  674. package/dist/siemens-ix/{p-7c36d3fa.js → p-accec846.js} +1 -1
  675. package/dist/siemens-ix/{p-7c36d3fa.js.map → p-accec846.js.map} +1 -1
  676. package/dist/siemens-ix/{p-8d599677.entry.js → p-adee6045.entry.js} +2 -2
  677. package/dist/siemens-ix/{p-8d599677.entry.js.map → p-adee6045.entry.js.map} +1 -1
  678. package/dist/siemens-ix/{p-d95cbd1f.entry.js → p-ae31be0d.entry.js} +2 -2
  679. package/dist/siemens-ix/{p-d95cbd1f.entry.js.map → p-ae31be0d.entry.js.map} +1 -1
  680. package/dist/siemens-ix/{p-feac09bc.entry.js → p-ba24e694.entry.js} +2 -2
  681. package/dist/siemens-ix/p-ba6e955a.js +2 -0
  682. package/dist/siemens-ix/p-ba6e955a.js.map +1 -0
  683. package/dist/siemens-ix/p-c022d6cc.entry.js +2 -0
  684. package/dist/siemens-ix/{p-eb6268a6.entry.js.map → p-c022d6cc.entry.js.map} +1 -1
  685. package/dist/siemens-ix/p-c05a98c8.entry.js +2 -0
  686. package/dist/siemens-ix/{p-71315e2e.entry.js → p-c072ddb5.entry.js} +2 -2
  687. package/dist/siemens-ix/p-c1fe9f3d.entry.js +2 -0
  688. package/dist/siemens-ix/p-c1fe9f3d.entry.js.map +1 -0
  689. package/dist/siemens-ix/p-c33cee36.entry.js.map +1 -1
  690. package/dist/siemens-ix/{p-0b4e398e.entry.js → p-c62966f8.entry.js} +2 -2
  691. package/dist/siemens-ix/{p-0b4e398e.entry.js.map → p-c62966f8.entry.js.map} +1 -1
  692. package/dist/siemens-ix/p-c7280736.entry.js +2 -0
  693. package/dist/siemens-ix/{p-0f7ef743.entry.js.map → p-c7280736.entry.js.map} +1 -1
  694. package/dist/siemens-ix/{p-8d0758c1.entry.js → p-c7e58e9e.entry.js} +2 -2
  695. package/dist/siemens-ix/{p-4430117a.entry.js → p-c81c4b9d.entry.js} +2 -2
  696. package/dist/siemens-ix/{p-d950c3a8.entry.js → p-cc65617d.entry.js} +2 -2
  697. package/dist/siemens-ix/{p-1a122c76.entry.js → p-d300b332.entry.js} +2 -2
  698. package/dist/siemens-ix/p-d6fc0727.entry.js +2 -0
  699. package/dist/siemens-ix/p-d6fc0727.entry.js.map +1 -0
  700. package/dist/siemens-ix/p-df370362.entry.js +2 -0
  701. package/dist/siemens-ix/p-df370362.entry.js.map +1 -0
  702. package/dist/siemens-ix/{p-5f25e7fd.entry.js → p-e0d03d67.entry.js} +2 -2
  703. package/dist/siemens-ix/{p-5f25e7fd.entry.js.map → p-e0d03d67.entry.js.map} +1 -1
  704. package/dist/siemens-ix/{p-ff1ac5b3.entry.js → p-e14384df.entry.js} +2 -2
  705. package/dist/siemens-ix/{p-fb2b78f7.entry.js → p-e35805d0.entry.js} +2 -2
  706. package/dist/siemens-ix/p-e35805d0.entry.js.map +1 -0
  707. package/dist/siemens-ix/{p-0c8a98cd.js → p-e948bcb0.js} +1 -1
  708. package/dist/siemens-ix/{p-0c8a98cd.js.map → p-e948bcb0.js.map} +1 -1
  709. package/dist/siemens-ix/{p-5b135f6b.entry.js → p-e95a5a97.entry.js} +2 -2
  710. package/dist/siemens-ix/{p-5b135f6b.entry.js.map → p-e95a5a97.entry.js.map} +1 -1
  711. package/dist/siemens-ix/p-ed7e76a3.entry.js +2 -0
  712. package/dist/siemens-ix/p-ed7e76a3.entry.js.map +1 -0
  713. package/dist/siemens-ix/{p-bea7c748.entry.js → p-ee96d1eb.entry.js} +2 -2
  714. package/dist/siemens-ix/p-f001ecc1.entry.js +2 -0
  715. package/dist/siemens-ix/p-f001ecc1.entry.js.map +1 -0
  716. package/dist/siemens-ix/p-f06b21f9.entry.js +2 -0
  717. package/dist/siemens-ix/p-f06b21f9.entry.js.map +1 -0
  718. package/dist/siemens-ix/{p-bc2c74c5.entry.js → p-fd5bee44.entry.js} +2 -2
  719. package/dist/siemens-ix/p-fefd5743.entry.js +2 -0
  720. package/dist/siemens-ix/p-fefd5743.entry.js.map +1 -0
  721. package/dist/siemens-ix/{p-dcb3e5be.entry.js → p-ffa856df.entry.js} +2 -2
  722. package/dist/siemens-ix/siemens-ix-core.css +1 -1
  723. package/dist/siemens-ix/siemens-ix.css +5 -1
  724. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  725. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  726. package/dist/types/components/action-card/action-card.d.ts +1 -0
  727. package/dist/types/components/application-header/application-header.d.ts +18 -0
  728. package/dist/types/components/basic-navigation/basic-navigation.d.ts +2 -1
  729. package/dist/types/components/card/card.d.ts +2 -1
  730. package/dist/types/components/category-filter/category-filter.d.ts +9 -9
  731. package/dist/types/components/category-filter/test/category-filter.ct.d.ts +1 -0
  732. package/dist/types/components/dropdown-item/dropdown-item.d.ts +2 -2
  733. package/dist/types/components/group/group.d.ts +4 -2
  734. package/dist/types/components/menu-item/menu-item.d.ts +6 -5
  735. package/dist/types/components/push-card/push-card.d.ts +4 -3
  736. package/dist/types/components/tooltip/tooltip.d.ts +2 -3
  737. package/dist/types/components/tree/tree.d.ts +1 -1
  738. package/dist/types/components/tree-item/tree-item.d.ts +3 -3
  739. package/dist/types/components.d.ts +67 -29
  740. package/dist/types/index.d.ts +1 -0
  741. package/hydrate/index.js +872 -338
  742. package/package.json +3 -2
  743. package/scss/_core.scss +5 -0
  744. package/dist/cjs/floating-ui.dom.esm-94b4d17c.js.map +0 -1
  745. package/dist/esm/floating-ui.dom.esm-6e7c098f.js.map +0 -1
  746. package/dist/siemens-ix/p-0b4e3779.entry.js +0 -2
  747. package/dist/siemens-ix/p-0b4e3779.entry.js.map +0 -1
  748. package/dist/siemens-ix/p-0f7ef743.entry.js +0 -2
  749. package/dist/siemens-ix/p-1cff59db.entry.js +0 -2
  750. package/dist/siemens-ix/p-1cff59db.entry.js.map +0 -1
  751. package/dist/siemens-ix/p-1f4b8463.entry.js +0 -2
  752. package/dist/siemens-ix/p-1f4b8463.entry.js.map +0 -1
  753. package/dist/siemens-ix/p-2ec7f841.entry.js +0 -2
  754. package/dist/siemens-ix/p-2ec7f841.entry.js.map +0 -1
  755. package/dist/siemens-ix/p-309ac3ad.entry.js +0 -2
  756. package/dist/siemens-ix/p-309ac3ad.entry.js.map +0 -1
  757. package/dist/siemens-ix/p-32375ddb.entry.js +0 -2
  758. package/dist/siemens-ix/p-427676f4.entry.js +0 -2
  759. package/dist/siemens-ix/p-427676f4.entry.js.map +0 -1
  760. package/dist/siemens-ix/p-44db3646.entry.js +0 -2
  761. package/dist/siemens-ix/p-4b3facea.entry.js +0 -2
  762. package/dist/siemens-ix/p-4b3facea.entry.js.map +0 -1
  763. package/dist/siemens-ix/p-52857629.entry.js +0 -2
  764. package/dist/siemens-ix/p-52857629.entry.js.map +0 -1
  765. package/dist/siemens-ix/p-6227e62b.entry.js +0 -2
  766. package/dist/siemens-ix/p-6227e62b.entry.js.map +0 -1
  767. package/dist/siemens-ix/p-7bfd6cd2.entry.js +0 -2
  768. package/dist/siemens-ix/p-7bfd6cd2.entry.js.map +0 -1
  769. package/dist/siemens-ix/p-7faa148f.entry.js +0 -2
  770. package/dist/siemens-ix/p-85423643.entry.js.map +0 -1
  771. package/dist/siemens-ix/p-87e692d9.entry.js +0 -2
  772. package/dist/siemens-ix/p-92a18c10.entry.js +0 -2
  773. package/dist/siemens-ix/p-a0a44a2b.entry.js +0 -2
  774. package/dist/siemens-ix/p-a0a44a2b.entry.js.map +0 -1
  775. package/dist/siemens-ix/p-b3b23af7.entry.js +0 -2
  776. package/dist/siemens-ix/p-b3f35666.js +0 -2
  777. package/dist/siemens-ix/p-b3f35666.js.map +0 -1
  778. package/dist/siemens-ix/p-c1222581.entry.js +0 -2
  779. package/dist/siemens-ix/p-d331216f.entry.js +0 -2
  780. package/dist/siemens-ix/p-d331216f.entry.js.map +0 -1
  781. package/dist/siemens-ix/p-d8790ff5.entry.js +0 -2
  782. package/dist/siemens-ix/p-d8790ff5.entry.js.map +0 -1
  783. package/dist/siemens-ix/p-d998415f.entry.js +0 -2
  784. package/dist/siemens-ix/p-d998415f.entry.js.map +0 -1
  785. package/dist/siemens-ix/p-e9a3f58a.entry.js +0 -2
  786. package/dist/siemens-ix/p-eb6268a6.entry.js +0 -2
  787. package/dist/siemens-ix/p-ebb277f0.entry.js +0 -2
  788. package/dist/siemens-ix/p-ebb277f0.entry.js.map +0 -1
  789. package/dist/siemens-ix/p-f318140c.entry.js +0 -2
  790. package/dist/siemens-ix/p-f318140c.entry.js.map +0 -1
  791. package/dist/siemens-ix/p-fb2b78f7.entry.js.map +0 -1
  792. package/dist/siemens-ix/p-fb4c79c6.entry.js +0 -2
  793. package/dist/siemens-ix/p-fc5814df.entry.js.map +0 -1
  794. /package/dist/siemens-ix/{p-fb4c79c6.entry.js.map → p-04af3853.entry.js.map} +0 -0
  795. /package/dist/siemens-ix/{p-4df0cdd7.entry.js.map → p-04ec538b.entry.js.map} +0 -0
  796. /package/dist/siemens-ix/{p-af099ca4.entry.js.map → p-0632731e.entry.js.map} +0 -0
  797. /package/dist/siemens-ix/{p-0d2a6886.entry.js.map → p-091b036d.entry.js.map} +0 -0
  798. /package/dist/siemens-ix/{p-2946fd70.entry.js.map → p-0fafba48.entry.js.map} +0 -0
  799. /package/dist/siemens-ix/{p-7076210b.entry.js.map → p-1483f65d.entry.js.map} +0 -0
  800. /package/dist/siemens-ix/{p-c1968b80.entry.js.map → p-1bd98772.entry.js.map} +0 -0
  801. /package/dist/siemens-ix/{p-8629db91.entry.js.map → p-25f1749c.entry.js.map} +0 -0
  802. /package/dist/siemens-ix/{p-5696bb62.entry.js.map → p-306269ae.entry.js.map} +0 -0
  803. /package/dist/siemens-ix/{p-b3b23af7.entry.js.map → p-35fff1e6.entry.js.map} +0 -0
  804. /package/dist/siemens-ix/{p-92a18c10.entry.js.map → p-411f51c5.entry.js.map} +0 -0
  805. /package/dist/siemens-ix/{p-f78246bd.entry.js.map → p-44a27b29.entry.js.map} +0 -0
  806. /package/dist/siemens-ix/{p-d03df401.entry.js.map → p-49d3fc15.entry.js.map} +0 -0
  807. /package/dist/siemens-ix/{p-113cc793.entry.js.map → p-5af99eaa.entry.js.map} +0 -0
  808. /package/dist/siemens-ix/{p-c1222581.entry.js.map → p-63f0755e.entry.js.map} +0 -0
  809. /package/dist/siemens-ix/{p-14a41c8c.entry.js.map → p-6618b2db.entry.js.map} +0 -0
  810. /package/dist/siemens-ix/{p-0653a145.entry.js.map → p-67f44540.entry.js.map} +0 -0
  811. /package/dist/siemens-ix/{p-53352bfb.entry.js.map → p-77273517.entry.js.map} +0 -0
  812. /package/dist/siemens-ix/{p-882a0233.entry.js.map → p-78ac2ff1.entry.js.map} +0 -0
  813. /package/dist/siemens-ix/{p-32375ddb.entry.js.map → p-7947ef3d.entry.js.map} +0 -0
  814. /package/dist/siemens-ix/{p-fb47546b.entry.js.map → p-7c2f34f0.entry.js.map} +0 -0
  815. /package/dist/siemens-ix/{p-7faa148f.entry.js.map → p-82d33168.entry.js.map} +0 -0
  816. /package/dist/siemens-ix/{p-052340f9.entry.js.map → p-8acc09aa.entry.js.map} +0 -0
  817. /package/dist/siemens-ix/{p-6fd7ecd0.entry.js.map → p-9079f6c8.entry.js.map} +0 -0
  818. /package/dist/siemens-ix/{p-16b923e9.entry.js.map → p-9bdda7ff.entry.js.map} +0 -0
  819. /package/dist/siemens-ix/{p-2c4c03d4.entry.js.map → p-aa814811.entry.js.map} +0 -0
  820. /package/dist/siemens-ix/{p-feac09bc.entry.js.map → p-ba24e694.entry.js.map} +0 -0
  821. /package/dist/siemens-ix/{p-44db3646.entry.js.map → p-c05a98c8.entry.js.map} +0 -0
  822. /package/dist/siemens-ix/{p-71315e2e.entry.js.map → p-c072ddb5.entry.js.map} +0 -0
  823. /package/dist/siemens-ix/{p-8d0758c1.entry.js.map → p-c7e58e9e.entry.js.map} +0 -0
  824. /package/dist/siemens-ix/{p-4430117a.entry.js.map → p-c81c4b9d.entry.js.map} +0 -0
  825. /package/dist/siemens-ix/{p-d950c3a8.entry.js.map → p-cc65617d.entry.js.map} +0 -0
  826. /package/dist/siemens-ix/{p-1a122c76.entry.js.map → p-d300b332.entry.js.map} +0 -0
  827. /package/dist/siemens-ix/{p-ff1ac5b3.entry.js.map → p-e14384df.entry.js.map} +0 -0
  828. /package/dist/siemens-ix/{p-bea7c748.entry.js.map → p-ee96d1eb.entry.js.map} +0 -0
  829. /package/dist/siemens-ix/{p-bc2c74c5.entry.js.map → p-fd5bee44.entry.js.map} +0 -0
  830. /package/dist/siemens-ix/{p-dcb3e5be.entry.js.map → p-ffa856df.entry.js.map} +0 -0
@@ -3,145 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-529f21c1.js');
6
- const floatingUi_dom_esm = require('./floating-ui.dom.esm-94b4d17c.js');
6
+ const floatingUi_dom_esm = require('./floating-ui.dom.esm-9dde6cd6.js');
7
7
  const focus = require('./focus-9c8ffbb0.js');
8
-
9
- /*
10
- * SPDX-FileCopyrightText: 2024 Siemens AG
11
- *
12
- * SPDX-License-Identifier: MIT
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- */
17
- function hasDropdownItemWrapperImplemented(item) {
18
- return (item &&
19
- item.getDropdownItemElement !== undefined &&
20
- typeof item.getDropdownItemElement === 'function');
21
- }
22
- class DropdownController {
23
- constructor() {
24
- this.dropdowns = new Map();
25
- this.submenuIds = {};
26
- this.isWindowListenerActive = false;
27
- }
28
- connected(dropdown) {
29
- if (!this.isWindowListenerActive) {
30
- this.addOverlayListeners();
31
- }
32
- this.dropdowns.set(dropdown.getId(), dropdown);
33
- if (dropdown.discoverAllSubmenus) {
34
- this.discoverSubmenus();
35
- }
36
- }
37
- disconnected(dropdown) {
38
- this.dropdowns.delete(dropdown.getId());
39
- }
40
- discoverSubmenus() {
41
- this.dropdowns.forEach((dropdown) => {
42
- dropdown.discoverSubmenu();
43
- });
44
- }
45
- present(dropdown) {
46
- if (!dropdown.isPresent() && dropdown.willPresent()) {
47
- this.submenuIds[dropdown.getId()] = dropdown.getAssignedSubmenuIds();
48
- dropdown.present();
49
- }
50
- }
51
- dismissChildren(uid) {
52
- const childIds = this.submenuIds[uid] || [];
53
- for (const id of childIds) {
54
- this.dismiss(this.dropdowns.get(id));
55
- }
56
- }
57
- dismiss(dropdown) {
58
- if (dropdown.isPresent() && dropdown.willDismiss()) {
59
- this.dismissChildren(dropdown.getId());
60
- dropdown.dismiss();
61
- delete this.submenuIds[dropdown.getId()];
62
- }
63
- }
64
- dismissAll(ignoreBehaviorForIds = [], ignoreRelatedDropdowns = false) {
65
- this.dropdowns.forEach((dropdown) => {
66
- const preventClosing = dropdown.closeBehavior === 'inside' || dropdown.closeBehavior === false;
67
- const shouldIgnore = ignoreBehaviorForIds.includes(dropdown.getId());
68
- const path = this.buildComposedPath(dropdown.getId(), new Set());
69
- if (ignoreBehaviorForIds.length > 0 && ignoreRelatedDropdowns) {
70
- let skipRelatedDropdown = false;
71
- ignoreBehaviorForIds.forEach((id) => {
72
- if (path.has(id)) {
73
- skipRelatedDropdown = true;
74
- return;
75
- }
76
- });
77
- if (!skipRelatedDropdown) {
78
- return;
79
- }
80
- }
81
- if (!shouldIgnore && preventClosing) {
82
- return;
83
- }
84
- this.dismiss(dropdown);
85
- });
86
- }
87
- dismissOthers(uid) {
88
- let path = this.buildComposedPath(uid, new Set());
89
- path.add(uid);
90
- this.dropdowns.forEach((dropdown) => {
91
- if (dropdown.closeBehavior !== 'inside' &&
92
- dropdown.closeBehavior !== false &&
93
- !path.has(dropdown.getId())) {
94
- this.dismiss(dropdown);
95
- }
96
- });
97
- }
98
- pathIncludesTrigger(eventTargets) {
99
- for (let eventTarget of eventTargets) {
100
- if (eventTarget instanceof HTMLElement) {
101
- if (eventTarget.hasAttribute('data-ix-dropdown-trigger')) {
102
- return eventTarget;
103
- }
104
- }
105
- }
106
- return;
107
- }
108
- pathIncludesDropdown(eventTargets) {
109
- return !!eventTargets.find((element) => element.tagName === 'IX-DROPDOWN');
110
- }
111
- buildComposedPath(id, path) {
112
- if (this.submenuIds[id]) {
113
- path.add(id);
114
- }
115
- for (const ruleKey of Object.keys(this.submenuIds)) {
116
- if (this.submenuIds[ruleKey].includes(id)) {
117
- this.buildComposedPath(ruleKey, path).forEach((key) => path.add(key));
118
- }
119
- }
120
- return path;
121
- }
122
- addOverlayListeners() {
123
- this.isWindowListenerActive = true;
124
- window.addEventListener('click', (event) => {
125
- const hasTrigger = this.pathIncludesTrigger(event.composedPath());
126
- const hasDropdown = this.pathIncludesDropdown(event.composedPath());
127
- if (!hasTrigger && !hasDropdown) {
128
- this.dismissAll();
129
- }
130
- });
131
- window.addEventListener('keydown', (event) => {
132
- if (event.key === 'Escape') {
133
- this.dismissAll([...this.dropdowns.keys()]);
134
- }
135
- });
136
- }
137
- }
138
- const addDisposableEventListener = (element, eventType, callback) => {
139
- element.addEventListener(eventType, callback);
140
- return () => {
141
- element.removeEventListener(eventType, callback);
142
- };
143
- };
144
- const dropdownController = new DropdownController();
8
+ const dropdownController = require('./dropdown-controller-5ef3d018.js');
145
9
 
146
10
  const dropdownCss = ":host{background-color:var(--theme-color-2);border-radius:var(--theme-default-border-radius);min-width:0px;z-index:var(--theme-z-index-dropdown);box-shadow:var(--theme-shadow-4);padding:0.25rem 0px}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .dropdown-header{display:flex;align-items:center;height:2.5rem;color:var(--theme-menu-header--color);padding:0 1rem}:host(.overflow){max-height:50vh;overflow-y:auto}:host(:not(.show)){display:none}";
147
11
  const IxDropdownStyle0 = dropdownCss;
@@ -172,7 +36,7 @@ const Dropdown = class {
172
36
  this.ignoreRelatedSubmenu = false;
173
37
  }
174
38
  connectedCallback() {
175
- dropdownController.connected(this);
39
+ dropdownController.dropdownController.connected(this);
176
40
  if (this.trigger != undefined) {
177
41
  this.registerListener(this.trigger);
178
42
  }
@@ -186,8 +50,8 @@ const Dropdown = class {
186
50
  }
187
51
  }
188
52
  disconnectedCallback() {
189
- dropdownController.dismiss(this);
190
- dropdownController.disconnected(this);
53
+ dropdownController.dropdownController.dismiss(this);
54
+ dropdownController.dropdownController.disconnected(this);
191
55
  if (this.disposeClickListener) {
192
56
  this.disposeClickListener();
193
57
  }
@@ -233,14 +97,14 @@ const Dropdown = class {
233
97
  (_b = this.disposeKeyListener) === null || _b === void 0 ? void 0 : _b.call(this);
234
98
  const toggleController = () => {
235
99
  if (!this.isPresent()) {
236
- dropdownController.present(this);
100
+ dropdownController.dropdownController.present(this);
237
101
  }
238
102
  else {
239
- dropdownController.dismiss(this);
103
+ dropdownController.dropdownController.dismiss(this);
240
104
  }
241
- dropdownController.dismissOthers(this.getId());
105
+ dropdownController.dropdownController.dismissOthers(this.getId());
242
106
  };
243
- this.disposeClickListener = addDisposableEventListener(this.triggerElement, 'click', (event) => {
107
+ this.disposeClickListener = dropdownController.addDisposableEventListener(this.triggerElement, 'click', (event) => {
244
108
  if (!event.defaultPrevented) {
245
109
  toggleController();
246
110
  }
@@ -261,14 +125,14 @@ const Dropdown = class {
261
125
  if (!this.triggerElement) {
262
126
  return;
263
127
  }
264
- this.disposeKeyListener = addDisposableEventListener(this.triggerElement, 'keydown', (event) => {
128
+ this.disposeKeyListener = dropdownController.addDisposableEventListener(this.triggerElement, 'keydown', (event) => {
265
129
  if (event.key !== 'ArrowDown') {
266
130
  return;
267
131
  }
268
132
  if (document.activeElement !== this.triggerElement) {
269
133
  return;
270
134
  }
271
- dropdownController.present(this);
135
+ dropdownController.dropdownController.present(this);
272
136
  setTimeout(() => {
273
137
  this.focusDropdownItem(0);
274
138
  });
@@ -289,7 +153,7 @@ const Dropdown = class {
289
153
  if (!element) {
290
154
  return null;
291
155
  }
292
- if (hasDropdownItemWrapperImplemented(element)) {
156
+ if (dropdownController.hasDropdownItemWrapperImplemented(element)) {
293
157
  const dropdownItem = await element.getDropdownItemElement();
294
158
  dropdownItem.isSubMenu = true;
295
159
  this.hostElement.style.zIndex = `var(--theme-z-index-dropdown)`;
@@ -361,7 +225,7 @@ const Dropdown = class {
361
225
  }
362
226
  isAnchorSubmenu() {
363
227
  var _a;
364
- if (!hasDropdownItemWrapperImplemented(this.anchorElement)) {
228
+ if (!dropdownController.hasDropdownItemWrapperImplemented(this.anchorElement)) {
365
229
  // Is no official dropdown-item, but check if any dropdown-item
366
230
  // is placed somewhere up the DOM
367
231
  return !!((_a = this.anchorElement) === null || _a === void 0 ? void 0 : _a.closest('ix-dropdown-item'));
@@ -436,7 +300,7 @@ const Dropdown = class {
436
300
  return trigger;
437
301
  }
438
302
  onDropdownClick(event) {
439
- const target = dropdownController.pathIncludesTrigger(event.composedPath());
303
+ const target = dropdownController.dropdownController.pathIncludesTrigger(event.composedPath());
440
304
  if (target) {
441
305
  if (target !== this.triggerElement) {
442
306
  event.preventDefault();
@@ -450,10 +314,10 @@ const Dropdown = class {
450
314
  }
451
315
  if (!event.defaultPrevented &&
452
316
  (this.closeBehavior === 'inside' || this.closeBehavior === 'both')) {
453
- dropdownController.dismissAll([this.getId()], this.ignoreRelatedSubmenu);
317
+ dropdownController.dropdownController.dismissAll([this.getId()], this.ignoreRelatedSubmenu);
454
318
  return;
455
319
  }
456
- dropdownController.dismissOthers(this.getId());
320
+ dropdownController.dropdownController.dismissOthers(this.getId());
457
321
  }
458
322
  /**
459
323
  * Update position of dropdown
@@ -462,7 +326,7 @@ const Dropdown = class {
462
326
  this.applyDropdownPosition();
463
327
  }
464
328
  render() {
465
- return (index.h(index.Host, { key: '1b165268d8ee5fa5f18bca276b0541da36bd3130', "data-ix-dropdown": this.localUId, ref: (ref) => (this.dropdownRef = ref), class: {
329
+ return (index.h(index.Host, { key: 'a0822930491de50066f777003b05892d9fc9587b', "data-ix-dropdown": this.localUId, ref: (ref) => (this.dropdownRef = ref), class: {
466
330
  'dropdown-menu': true,
467
331
  show: this.show,
468
332
  overflow: true,
@@ -470,7 +334,7 @@ const Dropdown = class {
470
334
  margin: '0',
471
335
  minWidth: '0px',
472
336
  position: this.positioningStrategy,
473
- }, role: "list", onClick: (event) => this.onDropdownClick(event) }, index.h("div", { key: 'cdecec289e6c242a31b6160e93cb63b80bf5e535', style: { display: 'contents' } }, this.header && index.h("div", { key: '27b86587be67c8086480ecec8059f8d6ae8aa5b7', class: "dropdown-header" }, this.header), this.show && index.h("slot", { key: '32d6960a187e91492e24fa7ee0d9407df1209829' }))));
337
+ }, role: "list", onClick: (event) => this.onDropdownClick(event) }, index.h("div", { key: '00f8905edd2cfac83a21fbeee7001a4987fc018e', style: { display: 'contents' } }, this.header && index.h("div", { key: '4ae378c15f844f67c4894bf8ab4c18e502cddceb', class: "dropdown-header" }, this.header), this.show && index.h("slot", { key: 'bca1aac38def6df5d322b42415236daf61f67865' }))));
474
338
  }
475
339
  get hostElement() { return index.getElement(this); }
476
340
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"ix-dropdown.entry.cjs.js","mappings":";;;;;;;;AAAA;;;;;;;;SA8BgB,iCAAiC,CAC/C,IAAa;IAEb,QACE,IAAI;QACH,IAA4B,CAAC,sBAAsB,KAAK,SAAS;QAClE,OAAQ,IAA4B,CAAC,sBAAsB,KAAK,UAAU,EAC1E;AACJ,CAAC;AAQD,MAAM,kBAAkB;IAAxB;QACU,cAAS,GAAmC,IAAI,GAAG,EAGxD,CAAC;QACI,eAAU,GAAe,EAAE,CAAC;QAE5B,2BAAsB,GAAG,KAAK,CAAC;KAgJxC;IA9IC,SAAS,CAAC,QAA2B;QACnC,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAChC,IAAI,CAAC,mBAAmB,EAAE,CAAC;SAC5B;QACD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,QAAQ,CAAC,CAAC;QAE/C,IAAI,QAAQ,CAAC,mBAAmB,EAAE;YAChC,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;KACF;IAED,YAAY,CAAC,QAA2B;QACtC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;KACzC;IAED,gBAAgB;QACd,IAAI,CAAC,SAAS,C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C,aAAa,KAAK,MAAM,CAAC,EAClE;YACA,kBAAkB,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;YACzE,OAAO;SACR;QAED,kBAAkB,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;KAChD;;;;IAMD,MAAM,cAAc;QAClB,IAAI,CAAC,qBAAqB,EAAE,CAAC;KAC9B;IAED,MAAM;QACJ,QACEC,QAACC,UAAI,yEACe,IAAI,CAAC,QAAQ,EAC/B,GAAG,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC,EACtC,KAAK,EAAE;gBACL,eAAe,EAAE,IAAI;gBACrB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,QAAQ,EAAE,IAAI;aACf,EACD,KAAK,EAAE;gBACL,MAAM,EAAE,GAAG;gBACX,QAAQ,EAAE,KAAK;gBACf,QAAQ,EAAE,IAAI,CAAC,mBAAmB;aACnC,EACD,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,CAAC,KAAmB,KAAK,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,IAE7DD,kEAAK,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,IAChC,IAAI,CAAC,MAAM,IAAIA,kEAAK,KAAK,EAAC,iBAAiB,IAAE,IAAI,CAAC,MAAM,CAAO,EAC/D,IAAI,CAAC,IAAI,IAAIA,oEAAa,CACvB,CACD,EACP;KACH;;;;;;;;;;;","names":["ArrowFocusController","flip","inline","shift","offset","autoUpdate","computePosition","h","Host"],"sources":["src/components/dropdown/dropdown-controller.ts","src/components/dropdown/dropdown.scss?tag=ix-dropdown&encapsulation=shadow","src/components/dropdown/dropdown.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { IxComponent } from '../utils/internal';\nexport type CloseBehavior = 'inside' | 'outside' | 'both' | boolean;\n\nexport interface DropdownInterface extends IxComponent {\n closeBehavior: CloseBehavior;\n discoverAllSubmenus: boolean;\n\n getAssignedSubmenuIds(): string[];\n getId(): string;\n\n discoverSubmenu(): void;\n\n isPresent(): boolean;\n\n willPresent?(): boolean;\n willDismiss?(): boolean;\n\n present(): void;\n dismiss(): void;\n}\n\nexport function hasDropdownItemWrapperImplemented(\n item: unknown\n): item is DropdownItemWrapper {\n return (\n item &&\n (item as DropdownItemWrapper).getDropdownItemElement !== undefined &&\n typeof (item as DropdownItemWrapper).getDropdownItemElement === 'function'\n );\n}\n\nexport interface DropdownItemWrapper {\n getDropdownItemElement(): Promise<HTMLIxDropdownItemElement>;\n}\n\ntype SubmenuIds = Record<string, string[]>;\n\nclass DropdownController {\n private dropdowns: Map<string, DropdownInterface> = new Map<\n string,\n DropdownInterface\n >();\n private submenuIds: SubmenuIds = {};\n\n private isWindowListenerActive = false;\n\n connected(dropdown: DropdownInterface) {\n if (!this.isWindowListenerActive) {\n this.addOverlayListeners();\n }\n this.dropdowns.set(dropdown.getId(), dropdown);\n\n if (dropdown.discoverAllSubmenus) {\n this.discoverSubmenus();\n }\n }\n\n disconnected(dropdown: DropdownInterface) {\n this.dropdowns.delete(dropdown.getId());\n }\n\n discoverSubmenus() {\n this.dropdowns.forEach((dropdown) => {\n dropdown.discoverSubmenu();\n });\n }\n\n present(dropdown: DropdownInterface) {\n if (!dropdown.isPresent() && dropdown.willPresent()) {\n this.submenuIds[dropdown.getId()] = dropdown.getAssignedSubmenuIds();\n dropdown.present();\n }\n }\n\n dismissChildren(uid: string) {\n const childIds = this.submenuIds[uid] || [];\n for (const id of childIds) {\n this.dismiss(this.dropdowns.get(id));\n }\n }\n\n dismiss(dropdown: DropdownInterface) {\n if (dropdown.isPresent() && dropdown.willDismiss()) {\n this.dismissChildren(dropdown.getId());\n dropdown.dismiss();\n delete this.submenuIds[dropdown.getId()];\n }\n }\n\n dismissAll(\n ignoreBehaviorForIds: string[] = [],\n ignoreRelatedDropdowns = false\n ) {\n this.dropdowns.forEach((dropdown) => {\n const preventClosing =\n dropdown.closeBehavior === 'inside' || dropdown.closeBehavior === false;\n\n const shouldIgnore = ignoreBehaviorForIds.includes(dropdown.getId());\n const path = this.buildComposedPath(dropdown.getId(), new Set<string>());\n\n if (ignoreBehaviorForIds.length > 0 && ignoreRelatedDropdowns) {\n let skipRelatedDropdown = false;\n\n ignoreBehaviorForIds.forEach((id) => {\n if (path.has(id)) {\n skipRelatedDropdown = true;\n return;\n }\n });\n\n if (!skipRelatedDropdown) {\n return;\n }\n }\n\n if (!shouldIgnore && preventClosing) {\n return;\n }\n\n this.dismiss(dropdown);\n });\n }\n\n dismissOthers(uid: string) {\n let path = this.buildComposedPath(uid, new Set<string>());\n path.add(uid);\n\n this.dropdowns.forEach((dropdown) => {\n if (\n dropdown.closeBehavior !== 'inside' &&\n dropdown.closeBehavior !== false &&\n !path.has(dropdown.getId())\n ) {\n this.dismiss(dropdown);\n }\n });\n }\n\n pathIncludesTrigger(eventTargets: EventTarget[]) {\n for (let eventTarget of eventTargets) {\n if (eventTarget instanceof HTMLElement) {\n if (eventTarget.hasAttribute('data-ix-dropdown-trigger')) {\n return eventTarget;\n }\n }\n }\n\n return;\n }\n\n private pathIncludesDropdown(eventTargets: EventTarget[]) {\n return !!eventTargets.find(\n (element: HTMLElement) => element.tagName === 'IX-DROPDOWN'\n );\n }\n\n private buildComposedPath(id: string, path: Set<string>): Set<string> {\n if (this.submenuIds[id]) {\n path.add(id);\n }\n\n for (const ruleKey of Object.keys(this.submenuIds)) {\n if (this.submenuIds[ruleKey].includes(id)) {\n this.buildComposedPath(ruleKey, path).forEach((key) => path.add(key));\n }\n }\n\n return path;\n }\n\n private addOverlayListeners() {\n this.isWindowListenerActive = true;\n\n window.addEventListener('click', (event: PointerEvent) => {\n const hasTrigger = this.pathIncludesTrigger(event.composedPath());\n const hasDropdown = this.pathIncludesDropdown(event.composedPath());\n\n if (!hasTrigger && !hasDropdown) {\n this.dismissAll();\n }\n });\n\n window.addEventListener('keydown', (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n this.dismissAll([...this.dropdowns.keys()]);\n }\n });\n }\n}\n\nexport const addDisposableEventListener = (\n element: Element | Window | Document,\n eventType: string,\n callback: EventListenerOrEventListenerObject\n) => {\n element.addEventListener(eventType, callback);\n\n return () => {\n element.removeEventListener(eventType, callback);\n };\n};\n\nexport const addDisposableEventListenerAsArray = (\n listener: {\n element: Element | Window | Document;\n eventType: string;\n callback: EventListenerOrEventListenerObject;\n }[]\n) => {\n const disposables = listener.map(({ callback, element, eventType }) =>\n addDisposableEventListener(element, eventType, callback)\n );\n\n return () => disposables.forEach((dispose) => dispose());\n};\n\nexport const dropdownController = new DropdownController();\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n\n@import 'legacy/mixins/fonts';\n@import 'mixins/text-truncation';\n@import 'mixins/shadow-dom/component';\n\n:host {\n background-color: var(--theme-color-2);\n border-radius: var(--theme-default-border-radius);\n @include ix-component;\n min-width: 0px;\n z-index: var(--theme-z-index-dropdown);\n box-shadow: var(--theme-shadow-4);\n\n padding: 0.25rem 0px;\n\n .dropdown-header {\n display: flex;\n align-items: center;\n height: $large-control-height;\n color: var(--theme-menu-header--color);\n padding: 0 $default-space;\n }\n}\n\n:host(.overflow) {\n max-height: 50vh;\n overflow-y: auto;\n}\n\n:host(:not(.show)) {\n display: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n autoUpdate,\n computePosition,\n ComputePositionConfig,\n flip,\n inline,\n offset,\n shift,\n} from '@floating-ui/dom';\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { ComponentInterface } from '@stencil/core/internal';\nimport { ArrowFocusController } from '../utils/focus';\nimport {\n addDisposableEventListener,\n CloseBehavior,\n dropdownController,\n DropdownInterface,\n hasDropdownItemWrapperImplemented,\n} from './dropdown-controller';\nimport { AlignedPlacement } from './placement';\n\nlet sequenceId = 0;\n\n@Component({\n tag: 'ix-dropdown',\n styleUrl: 'dropdown.scss',\n shadow: true,\n})\nexport class Dropdown implements ComponentInterface, DropdownInterface {\n @Element() hostElement!: HTMLIxDropdownElement;\n\n /**\n * Suppress the automatic placement of the dropdown.\n *\n * @since 2.0.0\n */\n @Prop() suppressAutomaticPlacement = false;\n\n /**\n * Show dropdown\n */\n @Prop({ mutable: true, reflect: true }) show = false;\n\n /**\n * Define an element that triggers the dropdown.\n * A trigger can either be a string that will be interpreted as id attribute or a DOM element.\n */\n @Prop() trigger: string | HTMLElement | Promise<HTMLElement>;\n\n /**\n * Define an anchor element\n */\n @Prop() anchor: string | HTMLElement;\n\n /**\n * Controls if the dropdown will be closed in response to a click event depending on the position of the event relative to the dropdown.\n * If the dropdown is a child of another one, it will be closed with the parent, regardless of its own close behavior.\n */\n @Prop() closeBehavior: CloseBehavior = 'both';\n\n /**\n * Placement of the dropdown\n */\n @Prop() placement: AlignedPlacement = 'bottom-start';\n\n /**\n * Position strategy\n */\n @Prop() positioningStrategy: 'absolute' | 'fixed' = 'fixed';\n\n /**\n * An optional header shown at the top of the dropdown\n */\n @Prop() header?: string;\n\n /**\n * Move dropdown along main axis of alignment\n *\n * @internal\n */\n @Prop() offset: {\n mainAxis?: number;\n crossAxis?: number;\n alignmentAxis?: number;\n };\n\n /**\n * @internal\n */\n @Prop() overwriteDropdownStyle: (delegate: {\n dropdownRef: HTMLElement;\n triggerRef?: HTMLElement;\n }) => Promise<Partial<CSSStyleDeclaration>>;\n\n /**\n * @internal\n * If initialisation of this dropdown is expected to be defered submenu discovery will have to be re-run globally by the controller.\n * This property indicates the need for that to the controller.\n */\n @Prop() discoverAllSubmenus = false;\n\n /** @internal */\n @Prop() ignoreRelatedSubmenu = false;\n\n /**\n * Fire event after visibility of dropdown has changed\n */\n @Event() showChanged: EventEmitter<boolean>;\n\n private autoUpdateCleanup: () => void = null;\n\n private triggerElement?: Element;\n private anchorElement?: Element;\n\n private dropdownRef: HTMLElement;\n private localUId = `dropdown-${sequenceId++}`;\n private assignedSubmenu: string[] = [];\n\n private arrowFocusController: ArrowFocusController;\n private focusDropdownItemBind = this.focusDropdownItem.bind(this);\n\n private itemObserver = new MutationObserver(() => {\n this.arrowFocusController.items = this.dropdownItems;\n });\n\n connectedCallback(): void {\n dropdownController.connected(this);\n\n if (this.trigger != undefined) {\n this.registerListener(this.trigger);\n }\n }\n\n @Listen('ix-assign-sub-menu')\n cacheSubmenuId(event: CustomEvent<string>) {\n event.stopImmediatePropagation();\n event.preventDefault();\n\n const { detail } = event;\n\n if (this.assignedSubmenu.indexOf(detail) === -1) {\n this.assignedSubmenu.push(detail);\n }\n }\n\n disconnectedCallback() {\n dropdownController.dismiss(this);\n dropdownController.disconnected(this);\n\n if (this.disposeClickListener) {\n this.disposeClickListener();\n }\n\n if (this.disposeKeyListener) {\n this.disposeKeyListener();\n }\n\n if (this.autoUpdateCleanup) {\n this.autoUpdateCleanup();\n }\n }\n\n getAssignedSubmenuIds() {\n return this.assignedSubmenu;\n }\n\n isPresent() {\n return this.show;\n }\n\n present() {\n this.show = true;\n }\n\n dismiss() {\n this.show = false;\n }\n\n getId() {\n return this.localUId;\n }\n\n willDismiss() {\n const { defaultPrevented } = this.showChanged.emit(false);\n return !defaultPrevented;\n }\n\n willPresent() {\n const { defaultPrevented } = this.showChanged.emit(true);\n return !defaultPrevented;\n }\n\n get dropdownItems() {\n return Array.from(this.hostElement.querySelectorAll('ix-dropdown-item'));\n }\n\n get slotElement() {\n return this.hostElement.shadowRoot.querySelector('slot');\n }\n\n private disposeClickListener?: () => void;\n private disposeKeyListener?: () => void;\n\n private addEventListenersFor() {\n this.disposeClickListener?.();\n this.disposeKeyListener?.();\n\n const toggleController = () => {\n if (!this.isPresent()) {\n dropdownController.present(this);\n } else {\n dropdownController.dismiss(this);\n }\n\n dropdownController.dismissOthers(this.getId());\n };\n\n this.disposeClickListener = addDisposableEventListener(\n this.triggerElement,\n 'click',\n (event: PointerEvent) => {\n if (!event.defaultPrevented) {\n toggleController();\n }\n }\n );\n\n this.triggerElement?.setAttribute(\n 'data-ix-dropdown-trigger',\n this.localUId\n );\n }\n\n /** @internal */\n @Method()\n async discoverSubmenu() {\n this.triggerElement?.dispatchEvent(\n new CustomEvent('ix-assign-sub-menu', {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail: this.localUId,\n })\n );\n }\n\n private registerKeyListener() {\n if (!this.triggerElement) {\n return;\n }\n\n this.disposeKeyListener = addDisposableEventListener(\n this.triggerElement,\n 'keydown',\n (event: KeyboardEvent) => {\n if (event.key !== 'ArrowDown') {\n return;\n }\n\n if (document.activeElement !== this.triggerElement) {\n return;\n }\n\n dropdownController.present(this);\n\n setTimeout(() => {\n this.focusDropdownItem(0);\n });\n }\n );\n }\n\n private async registerListener(\n element: string | HTMLElement | Promise<HTMLElement>\n ) {\n this.triggerElement = await this.resolveElement(element);\n if (this.triggerElement) {\n this.addEventListenersFor();\n this.discoverSubmenu();\n }\n }\n\n private async resolveElement(\n element: string | HTMLElement | Promise<HTMLElement>\n ) {\n const el = await this.findElement(element);\n\n return this.checkForSubmenuAnchor(el);\n }\n\n private async checkForSubmenuAnchor(element: Element) {\n if (!element) {\n return null;\n }\n\n if (hasDropdownItemWrapperImplemented(element)) {\n const dropdownItem = await element.getDropdownItemElement();\n dropdownItem.isSubMenu = true;\n this.hostElement.style.zIndex = `var(--theme-z-index-dropdown)`;\n }\n\n if (element.tagName === 'IX-DROPDOWN-ITEM') {\n (element as HTMLIxDropdownItemElement).isSubMenu = true;\n this.hostElement.style.zIndex = `var(--theme-z-index-dropdown)`;\n }\n\n return element;\n }\n\n private findElement(\n element: string | HTMLElement | Promise<HTMLElement>\n ): Promise<Element> {\n if (element instanceof Promise) {\n return element;\n }\n\n if (typeof element === 'object') {\n return Promise.resolve(element);\n }\n\n if (typeof element != 'string') {\n return;\n }\n\n const selector = `#${element}`;\n return new Promise((resolve) => {\n if (document.querySelector(selector)) {\n return resolve(document.querySelector(selector));\n }\n\n const observer = new MutationObserver(() => {\n if (document.querySelector(selector)) {\n resolve(document.querySelector(selector));\n observer.disconnect();\n }\n });\n\n observer.observe(document.body, {\n childList: true,\n subtree: true,\n });\n });\n }\n\n @Watch('show')\n async changedShow(newShow: boolean) {\n if (newShow) {\n this.anchorElement = await (this.anchor\n ? this.resolveElement(this.anchor)\n : this.resolveElement(this.trigger));\n\n if (this.anchorElement) {\n this.applyDropdownPosition();\n }\n\n this.arrowFocusController = new ArrowFocusController(\n this.dropdownItems,\n this.dropdownRef,\n this.focusDropdownItemBind\n );\n\n this.itemObserver.observe(this.dropdownRef, {\n childList: true,\n subtree: true,\n });\n\n this.registerKeyListener();\n } else {\n this.destroyAutoUpdate();\n this.arrowFocusController?.disconnect();\n this.itemObserver.disconnect();\n this.disposeKeyListener?.();\n }\n }\n\n @Watch('trigger')\n changedTrigger(newTriggerValue: string | HTMLElement | Promise<HTMLElement>) {\n this.registerListener(newTriggerValue);\n }\n\n private destroyAutoUpdate() {\n if (this.autoUpdateCleanup) {\n this.autoUpdateCleanup();\n this.autoUpdateCleanup = null;\n }\n }\n\n private isAnchorSubmenu(): boolean {\n if (!hasDropdownItemWrapperImplemented(this.anchorElement)) {\n // Is no official dropdown-item, but check if any dropdown-item\n // is placed somewhere up the DOM\n return !!this.anchorElement?.closest('ix-dropdown-item');\n }\n\n return true;\n }\n\n private async applyDropdownPosition() {\n if (!this.show) {\n return;\n }\n if (!this.anchorElement) {\n return;\n }\n if (!this.dropdownRef) {\n return;\n }\n const isSubmenu = this.isAnchorSubmenu();\n\n let positionConfig: Partial<ComputePositionConfig> = {\n strategy: this.positioningStrategy,\n middleware: [],\n };\n\n if (!this.suppressAutomaticPlacement) {\n positionConfig.middleware.push(\n flip({ fallbackStrategy: 'initialPlacement' })\n );\n }\n\n positionConfig.placement = isSubmenu ? 'right-start' : this.placement;\n\n positionConfig.middleware = [\n ...positionConfig.middleware,\n inline(),\n shift(),\n ];\n\n if (this.offset) {\n positionConfig.middleware.push(offset(this.offset));\n }\n\n this.destroyAutoUpdate();\n\n this.autoUpdateCleanup = autoUpdate(\n this.anchorElement,\n this.dropdownRef,\n async () => {\n const computeResponse = await computePosition(\n this.anchorElement,\n this.dropdownRef,\n positionConfig\n );\n Object.assign(this.dropdownRef.style, {\n top: '0',\n left: '0',\n transform: `translate(${Math.round(computeResponse.x)}px,${Math.round(\n computeResponse.y\n )}px)`,\n });\n if (this.overwriteDropdownStyle) {\n const overwriteStyle = await this.overwriteDropdownStyle({\n dropdownRef: this.dropdownRef,\n triggerRef: this.triggerElement as HTMLElement,\n });\n\n Object.assign(this.dropdownRef.style, overwriteStyle);\n }\n },\n {\n ancestorResize: true,\n ancestorScroll: true,\n elementResize: true,\n }\n );\n }\n\n private focusDropdownItem(index: number) {\n requestAnimationFrame(() => {\n this.dropdownItems[index]?.shadowRoot.querySelector('button').focus();\n });\n }\n\n async componentDidLoad() {\n this.changedTrigger(this.trigger);\n }\n\n async componentDidRender() {\n await this.applyDropdownPosition();\n this.anchorElement = await (this.anchor\n ? this.resolveElement(this.anchor)\n : this.resolveElement(this.trigger));\n }\n\n private isTriggerElement(element: HTMLElement) {\n const trigger = !!element.hasAttribute('data-ix-dropdown-trigger');\n\n return trigger;\n }\n\n private onDropdownClick(event: PointerEvent) {\n const target = dropdownController.pathIncludesTrigger(event.composedPath());\n if (target) {\n if (target !== this.triggerElement) {\n event.preventDefault();\n }\n\n if (this.isTriggerElement(target)) {\n if (this.closeBehavior === 'outside') {\n event.preventDefault();\n }\n return;\n }\n }\n\n if (\n !event.defaultPrevented &&\n (this.closeBehavior === 'inside' || this.closeBehavior === 'both')\n ) {\n dropdownController.dismissAll([this.getId()], this.ignoreRelatedSubmenu);\n return;\n }\n\n dropdownController.dismissOthers(this.getId());\n }\n\n /**\n * Update position of dropdown\n */\n @Method()\n async updatePosition() {\n this.applyDropdownPosition();\n }\n\n render() {\n return (\n <Host\n data-ix-dropdown={this.localUId}\n ref={(ref) => (this.dropdownRef = ref)}\n class={{\n 'dropdown-menu': true,\n show: this.show,\n overflow: true,\n }}\n style={{\n margin: '0',\n minWidth: '0px',\n position: this.positioningStrategy,\n }}\n role=\"list\"\n onClick={(event: PointerEvent) => this.onDropdownClick(event)}\n >\n <div style={{ display: 'contents' }}>\n {this.header && <div class=\"dropdown-header\">{this.header}</div>}\n {this.show && <slot></slot>}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-dropdown.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,WAAW,GAAG,2oCAA2oC,CAAC;AAChqC,yBAAe,WAAW;;ACwC1B,IAAI,UAAU,GAAG,CAAC,CAAC;MAON,QAAQ;;;;QAiFX,sBAAiB,GAAe,IAAI,CAAC;QAMrC,aAAQ,GAAG,YAAY,UAAU,EAAE,EAAE,CAAC;QACtC,oBAAe,GAAa,EAAE,CAAC;QAG/B,0BAAqB,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE1D,iBAAY,GAAG,IAAI,gBAAgB,CAAC;YAC1C,IAAI,CAAC,oBAAoB,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC;SACtD,CAAC,CAAC;0CAvFkC,KAAK;oBAKK,KAAK;;;6BAiBb,MAAM;yBAKP,cAAc;mCAKA,OAAO;;;;mCA+B7B,KAAK;oCAGJ,KAAK;;IAuBpC,iBAAiB;QACfA,qCAAkB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,IAAI,CAAC,OAAO,IAAI,SAAS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;;;","names":["dropdownController","addDisposableEventListener","hasDropdownItemWrapperImplemented","ArrowFocusController","flip","inline","shift","offset","autoUpdate","computePosition","h","Host"],"sources":["src/components/dropdown/dropdown.scss?tag=ix-dropdown&encapsulation=shadow","src/components/dropdown/dropdown.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n\n@import 'legacy/mixins/fonts';\n@import 'mixins/text-truncation';\n@import 'mixins/shadow-dom/component';\n\n:host {\n background-color: var(--theme-color-2);\n border-radius: var(--theme-default-border-radius);\n @include ix-component;\n min-width: 0px;\n z-index: var(--theme-z-index-dropdown);\n box-shadow: var(--theme-shadow-4);\n\n padding: 0.25rem 0px;\n\n .dropdown-header {\n display: flex;\n align-items: center;\n height: $large-control-height;\n color: var(--theme-menu-header--color);\n padding: 0 $default-space;\n }\n}\n\n:host(.overflow) {\n max-height: 50vh;\n overflow-y: auto;\n}\n\n:host(:not(.show)) {\n display: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n autoUpdate,\n computePosition,\n ComputePositionConfig,\n flip,\n inline,\n offset,\n shift,\n} from '@floating-ui/dom';\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Method,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { ComponentInterface } from '@stencil/core/internal';\nimport { ArrowFocusController } from '../utils/focus';\nimport {\n addDisposableEventListener,\n CloseBehavior,\n dropdownController,\n DropdownInterface,\n hasDropdownItemWrapperImplemented,\n} from './dropdown-controller';\nimport { AlignedPlacement } from './placement';\n\nlet sequenceId = 0;\n\n@Component({\n tag: 'ix-dropdown',\n styleUrl: 'dropdown.scss',\n shadow: true,\n})\nexport class Dropdown implements ComponentInterface, DropdownInterface {\n @Element() hostElement!: HTMLIxDropdownElement;\n\n /**\n * Suppress the automatic placement of the dropdown.\n *\n * @since 2.0.0\n */\n @Prop() suppressAutomaticPlacement = false;\n\n /**\n * Show dropdown\n */\n @Prop({ mutable: true, reflect: true }) show = false;\n\n /**\n * Define an element that triggers the dropdown.\n * A trigger can either be a string that will be interpreted as id attribute or a DOM element.\n */\n @Prop() trigger: string | HTMLElement | Promise<HTMLElement>;\n\n /**\n * Define an anchor element\n */\n @Prop() anchor: string | HTMLElement;\n\n /**\n * Controls if the dropdown will be closed in response to a click event depending on the position of the event relative to the dropdown.\n * If the dropdown is a child of another one, it will be closed with the parent, regardless of its own close behavior.\n */\n @Prop() closeBehavior: CloseBehavior = 'both';\n\n /**\n * Placement of the dropdown\n */\n @Prop() placement: AlignedPlacement = 'bottom-start';\n\n /**\n * Position strategy\n */\n @Prop() positioningStrategy: 'absolute' | 'fixed' = 'fixed';\n\n /**\n * An optional header shown at the top of the dropdown\n */\n @Prop() header?: string;\n\n /**\n * Move dropdown along main axis of alignment\n *\n * @internal\n */\n @Prop() offset: {\n mainAxis?: number;\n crossAxis?: number;\n alignmentAxis?: number;\n };\n\n /**\n * @internal\n */\n @Prop() overwriteDropdownStyle: (delegate: {\n dropdownRef: HTMLElement;\n triggerRef?: HTMLElement;\n }) => Promise<Partial<CSSStyleDeclaration>>;\n\n /**\n * @internal\n * If initialisation of this dropdown is expected to be defered submenu discovery will have to be re-run globally by the controller.\n * This property indicates the need for that to the controller.\n */\n @Prop() discoverAllSubmenus = false;\n\n /** @internal */\n @Prop() ignoreRelatedSubmenu = false;\n\n /**\n * Fire event after visibility of dropdown has changed\n */\n @Event() showChanged: EventEmitter<boolean>;\n\n private autoUpdateCleanup: () => void = null;\n\n private triggerElement?: Element;\n private anchorElement?: Element;\n\n private dropdownRef: HTMLElement;\n private localUId = `dropdown-${sequenceId++}`;\n private assignedSubmenu: string[] = [];\n\n private arrowFocusController: ArrowFocusController;\n private focusDropdownItemBind = this.focusDropdownItem.bind(this);\n\n private itemObserver = new MutationObserver(() => {\n this.arrowFocusController.items = this.dropdownItems;\n });\n\n connectedCallback(): void {\n dropdownController.connected(this);\n\n if (this.trigger != undefined) {\n this.registerListener(this.trigger);\n }\n }\n\n @Listen('ix-assign-sub-menu')\n cacheSubmenuId(event: CustomEvent<string>) {\n event.stopImmediatePropagation();\n event.preventDefault();\n\n const { detail } = event;\n\n if (this.assignedSubmenu.indexOf(detail) === -1) {\n this.assignedSubmenu.push(detail);\n }\n }\n\n disconnectedCallback() {\n dropdownController.dismiss(this);\n dropdownController.disconnected(this);\n\n if (this.disposeClickListener) {\n this.disposeClickListener();\n }\n\n if (this.disposeKeyListener) {\n this.disposeKeyListener();\n }\n\n if (this.autoUpdateCleanup) {\n this.autoUpdateCleanup();\n }\n }\n\n getAssignedSubmenuIds() {\n return this.assignedSubmenu;\n }\n\n isPresent() {\n return this.show;\n }\n\n present() {\n this.show = true;\n }\n\n dismiss() {\n this.show = false;\n }\n\n getId() {\n return this.localUId;\n }\n\n willDismiss() {\n const { defaultPrevented } = this.showChanged.emit(false);\n return !defaultPrevented;\n }\n\n willPresent() {\n const { defaultPrevented } = this.showChanged.emit(true);\n return !defaultPrevented;\n }\n\n get dropdownItems() {\n return Array.from(this.hostElement.querySelectorAll('ix-dropdown-item'));\n }\n\n get slotElement() {\n return this.hostElement.shadowRoot.querySelector('slot');\n }\n\n private disposeClickListener?: () => void;\n private disposeKeyListener?: () => void;\n\n private addEventListenersFor() {\n this.disposeClickListener?.();\n this.disposeKeyListener?.();\n\n const toggleController = () => {\n if (!this.isPresent()) {\n dropdownController.present(this);\n } else {\n dropdownController.dismiss(this);\n }\n\n dropdownController.dismissOthers(this.getId());\n };\n\n this.disposeClickListener = addDisposableEventListener(\n this.triggerElement,\n 'click',\n (event: PointerEvent) => {\n if (!event.defaultPrevented) {\n toggleController();\n }\n }\n );\n\n this.triggerElement?.setAttribute(\n 'data-ix-dropdown-trigger',\n this.localUId\n );\n }\n\n /** @internal */\n @Method()\n async discoverSubmenu() {\n this.triggerElement?.dispatchEvent(\n new CustomEvent('ix-assign-sub-menu', {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail: this.localUId,\n })\n );\n }\n\n private registerKeyListener() {\n if (!this.triggerElement) {\n return;\n }\n\n this.disposeKeyListener = addDisposableEventListener(\n this.triggerElement,\n 'keydown',\n (event: KeyboardEvent) => {\n if (event.key !== 'ArrowDown') {\n return;\n }\n\n if (document.activeElement !== this.triggerElement) {\n return;\n }\n\n dropdownController.present(this);\n\n setTimeout(() => {\n this.focusDropdownItem(0);\n });\n }\n );\n }\n\n private async registerListener(\n element: string | HTMLElement | Promise<HTMLElement>\n ) {\n this.triggerElement = await this.resolveElement(element);\n if (this.triggerElement) {\n this.addEventListenersFor();\n this.discoverSubmenu();\n }\n }\n\n private async resolveElement(\n element: string | HTMLElement | Promise<HTMLElement>\n ) {\n const el = await this.findElement(element);\n\n return this.checkForSubmenuAnchor(el);\n }\n\n private async checkForSubmenuAnchor(element: Element) {\n if (!element) {\n return null;\n }\n\n if (hasDropdownItemWrapperImplemented(element)) {\n const dropdownItem = await element.getDropdownItemElement();\n dropdownItem.isSubMenu = true;\n this.hostElement.style.zIndex = `var(--theme-z-index-dropdown)`;\n }\n\n if (element.tagName === 'IX-DROPDOWN-ITEM') {\n (element as HTMLIxDropdownItemElement).isSubMenu = true;\n this.hostElement.style.zIndex = `var(--theme-z-index-dropdown)`;\n }\n\n return element;\n }\n\n private findElement(\n element: string | HTMLElement | Promise<HTMLElement>\n ): Promise<Element> {\n if (element instanceof Promise) {\n return element;\n }\n\n if (typeof element === 'object') {\n return Promise.resolve(element);\n }\n\n if (typeof element != 'string') {\n return;\n }\n\n const selector = `#${element}`;\n return new Promise((resolve) => {\n if (document.querySelector(selector)) {\n return resolve(document.querySelector(selector));\n }\n\n const observer = new MutationObserver(() => {\n if (document.querySelector(selector)) {\n resolve(document.querySelector(selector));\n observer.disconnect();\n }\n });\n\n observer.observe(document.body, {\n childList: true,\n subtree: true,\n });\n });\n }\n\n @Watch('show')\n async changedShow(newShow: boolean) {\n if (newShow) {\n this.anchorElement = await (this.anchor\n ? this.resolveElement(this.anchor)\n : this.resolveElement(this.trigger));\n\n if (this.anchorElement) {\n this.applyDropdownPosition();\n }\n\n this.arrowFocusController = new ArrowFocusController(\n this.dropdownItems,\n this.dropdownRef,\n this.focusDropdownItemBind\n );\n\n this.itemObserver.observe(this.dropdownRef, {\n childList: true,\n subtree: true,\n });\n\n this.registerKeyListener();\n } else {\n this.destroyAutoUpdate();\n this.arrowFocusController?.disconnect();\n this.itemObserver.disconnect();\n this.disposeKeyListener?.();\n }\n }\n\n @Watch('trigger')\n changedTrigger(newTriggerValue: string | HTMLElement | Promise<HTMLElement>) {\n this.registerListener(newTriggerValue);\n }\n\n private destroyAutoUpdate() {\n if (this.autoUpdateCleanup) {\n this.autoUpdateCleanup();\n this.autoUpdateCleanup = null;\n }\n }\n\n private isAnchorSubmenu(): boolean {\n if (!hasDropdownItemWrapperImplemented(this.anchorElement)) {\n // Is no official dropdown-item, but check if any dropdown-item\n // is placed somewhere up the DOM\n return !!this.anchorElement?.closest('ix-dropdown-item');\n }\n\n return true;\n }\n\n private async applyDropdownPosition() {\n if (!this.show) {\n return;\n }\n if (!this.anchorElement) {\n return;\n }\n if (!this.dropdownRef) {\n return;\n }\n const isSubmenu = this.isAnchorSubmenu();\n\n let positionConfig: Partial<ComputePositionConfig> = {\n strategy: this.positioningStrategy,\n middleware: [],\n };\n\n if (!this.suppressAutomaticPlacement) {\n positionConfig.middleware.push(\n flip({ fallbackStrategy: 'initialPlacement' })\n );\n }\n\n positionConfig.placement = isSubmenu ? 'right-start' : this.placement;\n\n positionConfig.middleware = [\n ...positionConfig.middleware,\n inline(),\n shift(),\n ];\n\n if (this.offset) {\n positionConfig.middleware.push(offset(this.offset));\n }\n\n this.destroyAutoUpdate();\n\n this.autoUpdateCleanup = autoUpdate(\n this.anchorElement,\n this.dropdownRef,\n async () => {\n const computeResponse = await computePosition(\n this.anchorElement,\n this.dropdownRef,\n positionConfig\n );\n Object.assign(this.dropdownRef.style, {\n top: '0',\n left: '0',\n transform: `translate(${Math.round(computeResponse.x)}px,${Math.round(\n computeResponse.y\n )}px)`,\n });\n if (this.overwriteDropdownStyle) {\n const overwriteStyle = await this.overwriteDropdownStyle({\n dropdownRef: this.dropdownRef,\n triggerRef: this.triggerElement as HTMLElement,\n });\n\n Object.assign(this.dropdownRef.style, overwriteStyle);\n }\n },\n {\n ancestorResize: true,\n ancestorScroll: true,\n elementResize: true,\n }\n );\n }\n\n private focusDropdownItem(index: number) {\n requestAnimationFrame(() => {\n this.dropdownItems[index]?.shadowRoot.querySelector('button').focus();\n });\n }\n\n async componentDidLoad() {\n this.changedTrigger(this.trigger);\n }\n\n async componentDidRender() {\n await this.applyDropdownPosition();\n this.anchorElement = await (this.anchor\n ? this.resolveElement(this.anchor)\n : this.resolveElement(this.trigger));\n }\n\n private isTriggerElement(element: HTMLElement) {\n const trigger = !!element.hasAttribute('data-ix-dropdown-trigger');\n\n return trigger;\n }\n\n private onDropdownClick(event: PointerEvent) {\n const target = dropdownController.pathIncludesTrigger(event.composedPath());\n if (target) {\n if (target !== this.triggerElement) {\n event.preventDefault();\n }\n\n if (this.isTriggerElement(target)) {\n if (this.closeBehavior === 'outside') {\n event.preventDefault();\n }\n return;\n }\n }\n\n if (\n !event.defaultPrevented &&\n (this.closeBehavior === 'inside' || this.closeBehavior === 'both')\n ) {\n dropdownController.dismissAll([this.getId()], this.ignoreRelatedSubmenu);\n return;\n }\n\n dropdownController.dismissOthers(this.getId());\n }\n\n /**\n * Update position of dropdown\n */\n @Method()\n async updatePosition() {\n this.applyDropdownPosition();\n }\n\n render() {\n return (\n <Host\n data-ix-dropdown={this.localUId}\n ref={(ref) => (this.dropdownRef = ref)}\n class={{\n 'dropdown-menu': true,\n show: this.show,\n overflow: true,\n }}\n style={{\n margin: '0',\n minWidth: '0px',\n position: this.positioningStrategy,\n }}\n role=\"list\"\n onClick={(event: PointerEvent) => this.onDropdownClick(event)}\n >\n <div style={{ display: 'contents' }}>\n {this.header && <div class=\"dropdown-header\">{this.header}</div>}\n {this.show && <slot></slot>}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-529f21c1.js');
6
- const a11y = require('./a11y-d3ce56d1.js');
6
+ const a11y = require('./a11y-eba397e8.js');
7
7
 
8
8
  const eventListItemCss = ":host{}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .event-list-item{display:flex;align-items:center;position:relative;height:var(--event-list-item-height, 2.5rem);max-height:var(--event-list-item-height, 2.5rem);border-radius:var(--event-list-item-border-radius, 0.25rem);background-color:var(--theme-event-item--background);overflow:hidden;transition:var(--theme-default-time);cursor:pointer;margin-bottom:var(--event-list-item-margin-bottom, 0.5rem)}:host .event-list-item .indicator{height:100%;width:0.5rem;max-width:0.5rem;min-width:0.5rem;border-top-left-radius:var(--event-list-item-border-radius, 0.25rem);border-bottom-left-radius:var(--event-list-item-border-radius, 0.25rem)}:host .event-list-item .indicator-empty{border:var(--theme-weak-bdr-1);border-right:none}:host .event-list-item .event-list-item-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-grow:1;width:calc(100% - (1rem + 0.5rem));height:100%;border:0.062rem solid;border-color:var(--theme-event-item--border);border-top-left-radius:0;border-top-right-radius:var(--event-list-item-border-radius, 0.25rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--event-list-item-border-radius, 0.25rem);border-left:none;padding-left:1rem}:host .event-list-item .event-content{display:flex;align-items:center;width:100%;height:var(--event-list-item-height, 100%);max-height:var(--event-list-item-height, 100%);white-space:var(--event-list-item-content-white-space, inherit);overflow:hidden;padding-inline-end:0.5rem}:host .event-list-item .chevron-icon{margin-left:auto;margin-right:0.5rem;opacity:0.6;align-self:center}:host .event-list-item:not(.selected):not(.disabled):not(:disabled){cursor:pointer}:host .event-list-item:not(.selected):not(.disabled):not(:disabled):hover{background-color:var(--theme-event-item--background--hover)}:host .event-list-item:not(.selected):not(.disabled):not(:disabled){cursor:pointer}:host .event-list-item:not(.selected):not(.disabled):not(:disabled):active,:host .event-list-item:not(.selected):not(.disabled):not(:disabled).active{background-color:var(--theme-event-item--background--active)}:host .event-list-item:not(.selected) .event-list-item-container:not(.disabled):not(:disabled){cursor:pointer}:host .event-list-item:not(.selected) .event-list-item-container:not(.disabled):not(:disabled):hover{border-color:var(--theme-event-item--border--hover)}:host .event-list-item:not(.selected) .event-list-item-container:not(.disabled):not(:disabled){cursor:pointer}:host .event-list-item:not(.selected) .event-list-item-container:not(.disabled):not(:disabled):active,:host .event-list-item:not(.selected) .event-list-item-container:not(.disabled):not(:disabled).active{border-color:var(--theme-event-item--border--active)}:host .event-list-item.selected .event-list-item-container{background-color:var(--theme-event-item--background--selected);border-color:var(--theme-event-item--border--selected)}:host .event-list-item[disabled],:host .event-list-item.disabled{pointer-events:none}:host .event-list-item[disabled] .event-list-item-container,:host .event-list-item.disabled .event-list-item-container{background-color:var(--theme-event-item--background--disabled);border-color:var(--theme-event-item--border--disabled)}:host(.disabled){pointer-events:none}";
9
9
  const IxEventListItemStyle0 = eventListItemCss;
@@ -31,16 +31,16 @@ const EventListItem = class {
31
31
  ? `var(${this.color})`
32
32
  : `var(--theme-${this.color})`;
33
33
  }
34
- return (index.h(index.Host, { key: 'f4867d7f68254b7f4929ce6746172eb03aa5caea', class: {
34
+ return (index.h(index.Host, { key: '115c40df6986d283ac53ecc1ef7d5cfbe751864e', class: {
35
35
  disabled: this.disabled,
36
- } }, index.h("li", { key: '325588cc80c9b8988b37aaeb72a8d9c7affc088e', "aria-disabled": a11y.a11yBoolean(this.disabled), class: {
36
+ } }, index.h("li", { key: '431cc4b56030d9f5db39923380067fdb98e77b88', "aria-disabled": a11y.a11yBoolean(this.disabled), class: {
37
37
  'event-list-item': true,
38
38
  selected: this.selected,
39
39
  disabled: this.disabled,
40
- } }, index.h("div", { key: '24ef52d3c26ccb528934fa0366c9ebdce05ca38d', class: `indicator ${!((_c = this.itemColor) !== null && _c !== void 0 ? _c : this.color) ? 'indicator-empty' : ''}`, style: {
40
+ } }, index.h("div", { key: '44cc672e3416136a20c4f256c6c6ffd9f82097d5', class: `indicator ${!((_c = this.itemColor) !== null && _c !== void 0 ? _c : this.color) ? 'indicator-empty' : ''}`, style: {
41
41
  'background-color': ((_d = this.itemColor) !== null && _d !== void 0 ? _d : this.color) ? color : 'inherit',
42
42
  opacity: `${this.disabled ? 0.4 : 1}`,
43
- } }), index.h("div", { key: '74fac568b74471bcd6051f25d13bbac6d3aaadb4', class: "event-list-item-container" }, index.h("div", { key: '47d69475c3d448ca417b1892b30f22e7de77b19f', class: "event-content" }, index.h("slot", { key: 'c87d4fc509bdbc2041122e274caa2860a2530843' })), this.chevron && (index.h("ix-icon", { key: '8626b6e5ff1f23163d4a75d5c3a114adc3942c2c', name: 'chevron-right', size: "16", class: "chevron-icon" }))))));
43
+ } }), index.h("div", { key: 'd894014deacd0fd725c0e88e57e5d40a4d329113', class: "event-list-item-container" }, index.h("div", { key: '3a016426709b4abc7853bc67aeca4a3e11e5d6c1', class: "event-content" }, index.h("slot", { key: 'c5cdf2b4a04834d540af8d8df19a8889ee6e0ffb' })), this.chevron && (index.h("ix-icon", { key: '9646e270e1496247c2ab8223452eb76d2f9f902e', name: 'chevron-right', size: "16", class: "chevron-icon" }))))));
44
44
  }
45
45
  };
46
46
  EventListItem.style = IxEventListItemStyle0;
@@ -106,11 +106,11 @@ const EventList = class {
106
106
  });
107
107
  }
108
108
  render() {
109
- return (index.h(index.Host, { key: '5d7a0f6f6d24eb87a5ea1a777d4deb578d4d4d53', class: {
109
+ return (index.h(index.Host, { key: '089a281bac15abcd507401131c2be9408acd5845', class: {
110
110
  'item-size-s': this.itemHeight === 'S',
111
111
  'item-size-l': this.itemHeight === 'L',
112
112
  compact: this.compact,
113
- } }, index.h("ul", { key: 'ed377a8c738270044e9a903360105a9ce3a30fa2' }, index.h("slot", { key: 'cd3f02ca5eb2ce9b6086b249678839cba7b9f7b0' }))));
113
+ } }, index.h("ul", { key: 'a142c907713c0817db7a3c056e4c7498f456963c' }, index.h("slot", { key: '1b3a8a7f56f4e2e52d29acbf325ab29e663f4337' }))));
114
114
  }
115
115
  get hostElement() { return index.getElement(this); }
116
116
  static get watchers() { return {
@@ -54,20 +54,20 @@ const ExpandingSearch = class {
54
54
  this.valueChange.emit(this.value);
55
55
  }
56
56
  render() {
57
- return (index.h(index.Host, { key: 'ce6a0b2941966880a2a47a20ddf39820d8110836', class: {
57
+ return (index.h(index.Host, { key: 'fd70f74b8c961ba043bd2cfe646bf2ab287b7edf', class: {
58
58
  expanded: this.expanded,
59
59
  'right-position': this.expanded,
60
60
  fullWidth: this.fullWidth,
61
- } }, index.h("ix-icon-button", { key: 'e773bc67a18476c86d530e14a0b062f1b10caae7', size: this.expanded ? '16' : '24', icon: this.icon, ghost: true, variant: "primary", "data-testid": "button", onClick: () => this.expandInput(), tabindex: this.expanded ? -1 : 0, color: this.hasFocus ? 'input-search-icon--color--focus' : undefined, class: {
61
+ } }, index.h("ix-icon-button", { key: 'afb4150bf7b4847e79723ec9595913eea9facecc', size: this.expanded ? '16' : '24', icon: this.icon, ghost: true, variant: "primary", "data-testid": "button", onClick: () => this.expandInput(), tabindex: this.expanded ? -1 : 0, color: this.hasFocus ? 'input-search-icon--color--focus' : undefined, class: {
62
62
  'btn-search': true,
63
63
  'btn-search--expanded': this.expanded,
64
- } }), index.h("div", { key: 'ab6b7f77f88713c1b0230a83a3c2eb50df35f340', class: {
64
+ } }), index.h("div", { key: '69c41e59e7d3e780b50a8619049d44044aae699d', class: {
65
65
  expanded: this.expanded,
66
66
  fullWidth: this.fullWidth,
67
67
  collapsed: !this.expanded,
68
68
  'disable-pointer': !this.expanded,
69
69
  'input-container': true,
70
- }, "data-testid": "input-wrapper" }, index.h("input", { key: 'fb3f5e5c926a5eed3d2a0bac878ef806684f9d8d', class: {
70
+ }, "data-testid": "input-wrapper" }, index.h("input", { key: '57daef5e26aa3dc16d9e8043ccfa14d2c4983cf6', class: {
71
71
  'form-control': true,
72
72
  input: this.expanded,
73
73
  'disable-pointer': !this.expanded,
@@ -20,7 +20,7 @@ const FilterChip = class {
20
20
  this.closeClick.emit();
21
21
  }
22
22
  render() {
23
- return (index.h(index.Host, { key: '215ed3c9b71df4ba795032725d76950f10a33184', class: { disabled: this.disabled, readonly: this.readonly }, title: this.el.textContent }, index.h("div", { key: '68f822ed7365a1b9375721e5fc9a9ce91bd79313', class: "slot-container" }, index.h("slot", { key: '8c334798a0c6c274d68564ba12b01d59054c338c' })), !this.disabled && !this.readonly ? (index.h("ix-icon-button", { ghost: true, oval: true, icon: 'close-small', size: "16", tabindex: this.disabled ? -1 : 0, variant: "primary", disabled: this.disabled, onClick: (e) => this.onCloseClick(e) })) : null));
23
+ return (index.h(index.Host, { key: 'a4d7097df0582282fbd3550741fa0a231a4c782a', class: { disabled: this.disabled, readonly: this.readonly }, title: this.el.textContent }, index.h("div", { key: '659346141b7c2645f0970629e6a8a53c52ee0759', class: "slot-container" }, index.h("slot", { key: '0799a1aa00aeae148532b56e847d2713f782e862' })), !this.disabled && !this.readonly ? (index.h("ix-icon-button", { ghost: true, oval: true, icon: 'close-small', size: "16", tabindex: this.disabled ? -1 : 0, variant: "primary", disabled: this.disabled, onClick: (e) => this.onCloseClick(e) })) : null));
24
24
  }
25
25
  get el() { return index.getElement(this); }
26
26
  };
@@ -83,7 +83,7 @@ const SelectItem = class {
83
83
  }));
84
84
  }
85
85
  render() {
86
- return (index.h(index.Host, { key: '73a6d9e2c4df3541658f2bdce0a4ec42aea2c5e1' }, index.h("ix-dropdown-item", { key: 'c8d0563af535129de120a4899d683038f02dad57', class: {
86
+ return (index.h(index.Host, { key: 'bac48ca281090f2dd8f56fce2772916cec959e8c' }, index.h("ix-dropdown-item", { key: 'a6f8cafd5ee9f9eedaa4e4e0bd82a32976434117', class: {
87
87
  'select-item-checked': this.selected,
88
88
  }, checked: this.selected, label: this.label ? this.label : this.value, onItemClick: (e) => this.onItemClick(e) })));
89
89
  }
@@ -13,7 +13,7 @@ const FlipTileContent = class {
13
13
  this.contentVisible = false;
14
14
  }
15
15
  render() {
16
- return index.h(index.Host, { key: '5168ef23e528f9bb5a8408a6df292bd2bbadd1fc' }, this.contentVisible ? index.h("slot", null) : null);
16
+ return index.h(index.Host, { key: '04dc2496f04f8fd290df6f9583341f04b4dee5cd' }, this.contentVisible ? index.h("slot", null) : null);
17
17
  }
18
18
  };
19
19
  FlipTileContent.style = IxFlipTileContentStyle0;
@@ -60,26 +60,26 @@ const FlipTile = class {
60
60
  }, 2 * this.ANIMATION_DURATION);
61
61
  }
62
62
  render() {
63
- return (index.h(index.Host, { key: '6325a67810cec0daa810626fd07fdee585dff321', style: {
63
+ return (index.h(index.Host, { key: 'c54bb71af0355c2bff52800f3ce2e94517690018', style: {
64
64
  height: `${this.height}${this.height === 'auto' ? '' : 'rem'}`,
65
65
  'min-height': `${this.height}${this.height === 'auto' ? '' : 'rem'}`,
66
66
  'max-height': `${this.height}${this.height === 'auto' ? '' : 'rem'}`,
67
67
  width: `${this.width}${this.width === 'auto' ? '' : 'rem'}`,
68
68
  'min-width': `${this.width}${this.width === 'auto' ? '' : 'rem'}`,
69
69
  'max-width': `${this.width}${this.width === 'auto' ? '' : 'rem'}`,
70
- } }, index.h("div", { key: 'b32de5296d6f9eaa2a47d7fca8fc37ccc3038ca8', class: {
70
+ } }, index.h("div", { key: '11724fe70d3bfdbc9a2c25db24cbcec60ad5f196', class: {
71
71
  'flip-tile-container': true,
72
72
  info: this.state === flipTileState.FlipTileState.Info,
73
73
  warning: this.state === flipTileState.FlipTileState.Warning,
74
74
  alarm: this.state === flipTileState.FlipTileState.Alarm,
75
75
  primary: this.state === flipTileState.FlipTileState.Primary,
76
76
  'flip-animation-active': this.isFlipAnimationActive,
77
- } }, index.h("div", { key: '547fd0065516281539327d61b7ba4806973b230e', class: "flip-tile-header" }, index.h("div", { key: '6f6105b466f35d94e7d5c51e6a8d0cd9190fda90', class: "header-slot-container text-l-title" }, index.h("slot", { key: 'e0d28500f1b867e120308d8ae08d19f8e2ed62ef', name: "header" })), index.h("ix-icon-button", { key: '9b1115eedef1cd2b5c20322e7126d69a7ddd5367', icon: 'eye', variant: "primary", ghost: true, onClick: () => this.toggleIndex() })), index.h("div", { key: '208e84bf8a58d0f0d664e6afa61f4c0134c170a1', class: "content-container" }, index.h("slot", { key: 'e58477ccc1f34df0f10d34b76ebfeb8740e6a2b7' })), index.h("div", { key: '1d2775674ae6ccf49d45349bb092e62a4edb6839', class: {
77
+ } }, index.h("div", { key: '79931960e992363efd04bc4811cb47a3f810b47e', class: "flip-tile-header" }, index.h("div", { key: 'eb24f87ba961b4697c4903663cf9500cf8a41a80', class: "header-slot-container text-l-title" }, index.h("slot", { key: '5991a7e2ed03995507e9e4bc329c2a69bcd606e8', name: "header" })), index.h("ix-icon-button", { key: 'fdca5d22fde09917560092be5ed30d1ac9a8e1f2', icon: 'eye', variant: "primary", ghost: true, onClick: () => this.toggleIndex() })), index.h("div", { key: '09a534b6123fc399549369dfe82abf1ebf74edb1', class: "content-container" }, index.h("slot", { key: '974a7da9316688e6971dabb9d0ba3427475ee72f' })), index.h("div", { key: '55408f796f09ea616f4ad2d5b51fb66c100101c9', class: {
78
78
  footer: true,
79
79
  'contrast-light': this.state === flipTileState.FlipTileState.Warning,
80
80
  'contrast-dark': this.state === flipTileState.FlipTileState.Info ||
81
81
  this.state === flipTileState.FlipTileState.Alarm,
82
- } }, index.h("slot", { key: '0876aa784c23b91f289b9feec114d94c5860bf29', name: "footer" })))));
82
+ } }, index.h("slot", { key: '7aedaee90543dc68b0c5ac03fc24e657e18a2296', name: "footer" })))));
83
83
  }
84
84
  get hostElement() { return index.getElement(this); }
85
85
  };
@@ -17,7 +17,7 @@ const FormField = class {
17
17
  }
18
18
  componentWillLoad() { }
19
19
  render() {
20
- return (index.h(index.Host, { key: '34305cf7e6ee023ae323d2c1b13248bb08f50001' }, this.label ? (index.h("label", { htmlFor: this.inputElement.id }, this.label)) : null, index.h("slot", { key: '7d9937b61fd5f5aa4711a7551c0665a1f048bb47' })));
20
+ return (index.h(index.Host, { key: '9ff1529dc21325a6644e16a91e145041699eeca6' }, this.label ? (index.h("label", { htmlFor: this.inputElement.id }, this.label)) : null, index.h("slot", { key: '67fa496dc86e3fd9194b62a7b5d2e9acbd5133b5' })));
21
21
  }
22
22
  get hostElement() { return index.getElement(this); }
23
23
  };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-529f21c1.js');
6
- const shadowDom = require('./shadow-dom-73f9d553.js');
6
+ const shadowDom = require('./shadow-dom-454acc38.js');
7
7
 
8
8
  const groupContextMenuCss = ":host{display:block;position:relative;height:2rem;width:2rem;margin-block-start:0.3125rem;margin-inline-end:0.3125rem;margin-inline-start:auto}:host .hide{visibility:collapse}:host ::slotted(ix-dropdown){cursor:default}";
9
9
  const IxGroupContextMenuStyle0 = groupContextMenuCss;
@@ -38,7 +38,7 @@ const GroupContextMenu = class {
38
38
  this.configureDropdown(dropdownElement, triggerElement);
39
39
  }
40
40
  render() {
41
- return (index.h(index.Host, { key: 'f0540e7922380e5d6dc1ccd3a9cf89f8899f0b8f' }, index.h("ix-icon-button", { key: 'd252cde38720925875096a6e57d494da800139f3', class: { hide: !this.showContextMenu }, size: "24", ghost: true, icon: 'context-menu' }), index.h("slot", { key: 'e5f04fcdd55f57bd9bad2beeb5982f6c6352f19b', onSlotchange: () => this.onSlotChange() })));
41
+ return (index.h(index.Host, { key: '21c0c5e986892c5e94644b6988b93f04cc2d52e4' }, index.h("ix-icon-button", { key: 'da9e1ea025d3b0f4afaa9bcb9769a4771f04e98e', class: { hide: !this.showContextMenu }, size: "24", ghost: true, icon: 'context-menu' }), index.h("slot", { key: '29312b85ab7e60ce075cbe95d40e1e7e7e492640', onSlotchange: () => this.onSlotChange() })));
42
42
  }
43
43
  get hostElement() { return index.getElement(this); }
44
44
  };
@@ -63,9 +63,9 @@ const GroupItem = class {
63
63
  this.selectedChanged.emit(this.hostElement);
64
64
  }
65
65
  render() {
66
- return (index.h(index.Host, { key: 'ae51a9df7d4b27336b05017a18300c5ee91473c7', class: {
66
+ return (index.h(index.Host, { key: '5467fe7e41ae1ce688e2ed294fe8dc26da9b4926', class: {
67
67
  selected: this.selected && !this.suppressSelection,
68
- } }, index.h("button", { key: 'd70ce085f9deb507c5365c4d4c3c75dac4864560', tabindex: this.focusable ? 0 : -1 }, index.h("div", { key: '194d910fb5b1dc94e27b504568ef9b5d774fcaca', class: "group-entry-selection-indicator" }), this.icon ? index.h("ix-icon", { size: "16", name: this.icon }) : null, this.text ? (index.h("span", { class: "group-entry-text" }, index.h("span", { title: this.text }, this.text))) : null, this.secondaryText ? (index.h("span", { class: "group-entry-text-secondary" }, index.h("span", { title: this.secondaryText }, this.secondaryText))) : null, index.h("slot", { key: '4934b9729052b030c04ea695d23abde6634eaf10' }))));
68
+ } }, index.h("button", { key: '1d3bcb115867183f660958d432ffca1931197a6b', tabindex: this.focusable ? 0 : -1 }, index.h("div", { key: 'f8723d831c359decf7ca3481cdeeb6c262cd929b', class: "group-entry-selection-indicator" }), this.icon ? index.h("ix-icon", { size: "16", name: this.icon }) : null, this.text ? (index.h("span", { class: "group-entry-text" }, index.h("span", { title: this.text }, this.text))) : null, this.secondaryText ? (index.h("span", { class: "group-entry-text-secondary" }, index.h("span", { title: this.secondaryText }, this.secondaryText))) : null, index.h("slot", { key: '202b787531c09feb239e6b7d7b4bf7aa186eb0cb' }))));
69
69
  }
70
70
  get hostElement() { return index.getElement(this); }
71
71
  };