@siemens/ix 2.1.0 → 2.1.1-beta.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 (602) hide show
  1. package/components/burger-menu.js +2 -2
  2. package/components/burger-menu.js.map +1 -1
  3. package/components/dropdown.js +23 -15
  4. package/components/dropdown.js.map +1 -1
  5. package/components/ix-menu-category.js +19 -7
  6. package/components/ix-menu-category.js.map +1 -1
  7. package/components/ix-menu-settings-item.js +1 -1
  8. package/components/ix-menu.js +2 -2
  9. package/components/ix-menu.js.map +1 -1
  10. package/components/ix-message-bar.js +2 -2
  11. package/components/ix-message-bar.js.map +1 -1
  12. package/components/ix-modal-example.js +1 -1
  13. package/components/ix-modal-footer.js +1 -1
  14. package/components/ix-modal-loading.js +1 -1
  15. package/components/ix-modal.js +6 -3
  16. package/components/ix-modal.js.map +1 -1
  17. package/components/ix-pagination.js +2 -2
  18. package/components/ix-pane-layout.js +9 -1
  19. package/components/ix-pane-layout.js.map +1 -1
  20. package/components/ix-pane.js +51 -22
  21. package/components/ix-pane.js.map +1 -1
  22. package/components/ix-pill.js +4 -4
  23. package/components/ix-playground-internal.js +1 -1
  24. package/components/ix-split-button-item.js +1 -1
  25. package/components/ix-tile.js +4 -4
  26. package/components/ix-toast-container.js +1 -1
  27. package/components/ix-toggle-button.js +2 -2
  28. package/components/ix-toggle.js +2 -2
  29. package/components/ix-tree.js +1 -1
  30. package/components/ix-upload.js +3 -3
  31. package/components/ix-validation-tooltip.js +2 -2
  32. package/components/ix-workflow-step.js +3 -3
  33. package/components/ix-workflow-steps.js +1 -1
  34. package/components/menu-item.js +29 -6
  35. package/components/menu-item.js.map +1 -1
  36. package/components/modal-content.js +1 -1
  37. package/components/modal-header.js +1 -1
  38. package/components/modal.js +1 -1
  39. package/components/modal.js.map +1 -1
  40. package/components/row.js +1 -1
  41. package/components/select-item.js +1 -1
  42. package/components/select.js +6 -6
  43. package/components/spinner.js +1 -1
  44. package/components/tabs.js +2 -2
  45. package/components/toast.js +2 -2
  46. package/components/tooltip.js +17 -22
  47. package/components/tooltip.js.map +1 -1
  48. package/components/tree-item.js +4 -4
  49. package/dist/cjs/{base-button-86ed26da.js → base-button-2d5bec30.js} +2 -2
  50. package/dist/cjs/{base-button-86ed26da.js.map → base-button-2d5bec30.js.map} +1 -1
  51. package/dist/cjs/{base-icon-button-66351850.js → base-icon-button-b5fdb62e.js} +3 -3
  52. package/dist/cjs/{base-icon-button-66351850.js.map → base-icon-button-b5fdb62e.js.map} +1 -1
  53. package/dist/cjs/{index-ace435aa.js → index-7bcb694d.js} +35 -22
  54. package/dist/cjs/index-7bcb694d.js.map +1 -0
  55. package/dist/cjs/{index-5689c2a0.js → index-c4629a8d.js} +2 -2
  56. package/dist/cjs/{index-5689c2a0.js.map → index-c4629a8d.js.map} +1 -1
  57. package/dist/cjs/index.cjs.js +1 -1
  58. package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
  59. package/dist/cjs/ix-application-header.cjs.entry.js +3 -3
  60. package/dist/cjs/ix-application-sidebar.cjs.entry.js +1 -1
  61. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
  62. package/dist/cjs/ix-application.cjs.entry.js +1 -1
  63. package/dist/cjs/ix-avatar_2.cjs.entry.js +2 -2
  64. package/dist/cjs/ix-basic-navigation.cjs.entry.js +1 -1
  65. package/dist/cjs/ix-blind.cjs.entry.js +1 -1
  66. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +2 -2
  67. package/dist/cjs/ix-breadcrumb.cjs.entry.js +1 -1
  68. package/dist/cjs/ix-burger-menu.cjs.entry.js +4 -4
  69. package/dist/cjs/ix-burger-menu.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ix-button.cjs.entry.js +2 -2
  71. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +1 -1
  72. package/dist/cjs/ix-card-list.cjs.entry.js +1 -1
  73. package/dist/cjs/ix-card_2.cjs.entry.js +1 -1
  74. package/dist/cjs/ix-category-filter.cjs.entry.js +2 -2
  75. package/dist/cjs/ix-chip.cjs.entry.js +1 -1
  76. package/dist/cjs/ix-col_4.cjs.entry.js +3 -3
  77. package/dist/cjs/ix-content-header.cjs.entry.js +1 -1
  78. package/dist/cjs/ix-content.cjs.entry.js +1 -1
  79. package/dist/cjs/ix-css-grid-item.cjs.entry.js +1 -1
  80. package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
  81. package/dist/cjs/ix-date-dropdown.cjs.entry.js +1 -1
  82. package/dist/cjs/ix-date-time-card.cjs.entry.js +1 -1
  83. package/dist/cjs/ix-datetime-picker.cjs.entry.js +1 -1
  84. package/dist/cjs/ix-divider.cjs.entry.js +1 -1
  85. package/dist/cjs/ix-drawer.cjs.entry.js +1 -1
  86. package/dist/cjs/ix-dropdown-button.cjs.entry.js +1 -1
  87. package/dist/cjs/ix-dropdown-header.cjs.entry.js +1 -1
  88. package/dist/cjs/ix-dropdown-item.cjs.entry.js +1 -1
  89. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
  90. package/dist/cjs/ix-dropdown.cjs.entry.js +22 -14
  91. package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
  92. package/dist/cjs/ix-empty-state.cjs.entry.js +1 -1
  93. package/dist/cjs/ix-event-list-item.cjs.entry.js +1 -1
  94. package/dist/cjs/ix-event-list.cjs.entry.js +1 -1
  95. package/dist/cjs/ix-expanding-search.cjs.entry.js +1 -1
  96. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +2 -2
  97. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +1 -1
  98. package/dist/cjs/ix-flip-tile.cjs.entry.js +1 -1
  99. package/dist/cjs/ix-form-field.cjs.entry.js +1 -1
  100. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +1 -1
  101. package/dist/cjs/ix-group.cjs.entry.js +1 -1
  102. package/dist/cjs/ix-icon-button_2.cjs.entry.js +4 -4
  103. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +3 -3
  104. package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
  105. package/dist/cjs/ix-key-value-list.cjs.entry.js +1 -1
  106. package/dist/cjs/ix-key-value.cjs.entry.js +1 -1
  107. package/dist/cjs/ix-kpi.cjs.entry.js +1 -1
  108. package/dist/cjs/ix-link-button.cjs.entry.js +1 -1
  109. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +1 -1
  110. package/dist/cjs/ix-map-navigation.cjs.entry.js +1 -1
  111. package/dist/cjs/ix-menu-about-item.cjs.entry.js +1 -1
  112. package/dist/cjs/ix-menu-about-news.cjs.entry.js +1 -1
  113. package/dist/cjs/ix-menu-about.cjs.entry.js +2 -2
  114. package/dist/cjs/ix-menu-avatar.cjs.entry.js +1 -1
  115. package/dist/cjs/ix-menu-category.cjs.entry.js +20 -8
  116. package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -1
  117. package/dist/cjs/ix-menu-item.cjs.entry.js +25 -5
  118. package/dist/cjs/ix-menu-item.cjs.entry.js.map +1 -1
  119. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
  120. package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
  121. package/dist/cjs/ix-menu.cjs.entry.js +5 -5
  122. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  123. package/dist/cjs/ix-message-bar.cjs.entry.js +3 -3
  124. package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -1
  125. package/dist/cjs/ix-modal-content_2.cjs.entry.js +3 -3
  126. package/dist/cjs/ix-modal-example.cjs.entry.js +3 -3
  127. package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
  128. package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
  129. package/dist/cjs/ix-modal.cjs.entry.js +8 -5
  130. package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
  131. package/dist/cjs/ix-pagination.cjs.entry.js +4 -4
  132. package/dist/cjs/ix-pane-layout.cjs.entry.js +10 -2
  133. package/dist/cjs/ix-pane-layout.cjs.entry.js.map +1 -1
  134. package/dist/cjs/ix-pane.cjs.entry.js +52 -23
  135. package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
  136. package/dist/cjs/ix-pill.cjs.entry.js +5 -5
  137. package/dist/cjs/ix-playground-internal.cjs.entry.js +2 -2
  138. package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
  139. package/dist/cjs/ix-select.cjs.entry.js +8 -8
  140. package/dist/cjs/ix-slider.cjs.entry.js +2 -2
  141. package/dist/cjs/ix-split-button-item.cjs.entry.js +2 -2
  142. package/dist/cjs/ix-split-button.cjs.entry.js +1 -1
  143. package/dist/cjs/ix-tab-item_2.cjs.entry.js +3 -3
  144. package/dist/cjs/ix-tile.cjs.entry.js +5 -5
  145. package/dist/cjs/ix-time-picker.cjs.entry.js +1 -1
  146. package/dist/cjs/ix-toast-container.cjs.entry.js +2 -2
  147. package/dist/cjs/ix-toast.cjs.entry.js +3 -3
  148. package/dist/cjs/ix-toggle-button.cjs.entry.js +4 -4
  149. package/dist/cjs/ix-toggle.cjs.entry.js +3 -3
  150. package/dist/cjs/ix-tooltip.cjs.entry.js +19 -24
  151. package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -1
  152. package/dist/cjs/ix-tree-item.cjs.entry.js +5 -5
  153. package/dist/cjs/ix-tree.cjs.entry.js +2 -2
  154. package/dist/cjs/ix-typography.cjs.entry.js +1 -1
  155. package/dist/cjs/ix-upload.cjs.entry.js +4 -4
  156. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -3
  157. package/dist/cjs/ix-workflow-step.cjs.entry.js +4 -4
  158. package/dist/cjs/ix-workflow-steps.cjs.entry.js +2 -2
  159. package/dist/cjs/{listener-ad035304.js → listener-c0d191a7.js} +2 -2
  160. package/dist/cjs/{listener-ad035304.js.map → listener-c0d191a7.js.map} +1 -1
  161. package/dist/cjs/loader.cjs.js +4 -4
  162. package/dist/cjs/loader.cjs.js.map +1 -1
  163. package/dist/cjs/{menu-tabs-fc-78915307.js → menu-tabs-fc-b6a9af97.js} +2 -2
  164. package/dist/cjs/{menu-tabs-fc-78915307.js.map → menu-tabs-fc-b6a9af97.js.map} +1 -1
  165. package/dist/cjs/{modal-bf597938.js → modal-828cb80a.js} +2 -2
  166. package/dist/cjs/modal-828cb80a.js.map +1 -0
  167. package/dist/cjs/siemens-ix.cjs.js +5 -5
  168. package/dist/cjs/siemens-ix.cjs.js.map +1 -1
  169. package/dist/collection/collection-manifest.json +1 -1
  170. package/dist/collection/components/dropdown/dropdown-controller.js +13 -6
  171. package/dist/collection/components/dropdown/dropdown-controller.js.map +1 -1
  172. package/dist/collection/components/dropdown/dropdown.js +8 -7
  173. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  174. package/dist/collection/components/dropdown/test/dropdown-controller.spec.js +21 -0
  175. package/dist/collection/components/dropdown/test/dropdown-controller.spec.js.map +1 -0
  176. package/dist/collection/components/menu/burger-menu.css +0 -3
  177. package/dist/collection/components/menu/burger-menu.js +1 -1
  178. package/dist/collection/components/menu/burger-menu.js.map +1 -1
  179. package/dist/collection/components/menu/menu.js +2 -2
  180. package/dist/collection/components/menu/menu.js.map +1 -1
  181. package/dist/collection/components/menu/test/menu.ct.js +11 -0
  182. package/dist/collection/components/menu/test/menu.ct.js.map +1 -1
  183. package/dist/collection/components/menu-avatar-item/test/menu-avatar-item.ct.js +47 -0
  184. package/dist/collection/components/menu-avatar-item/test/menu-avatar-item.ct.js.map +1 -0
  185. package/dist/collection/components/menu-category/menu-category.css +22 -3
  186. package/dist/collection/components/menu-category/menu-category.js +18 -6
  187. package/dist/collection/components/menu-category/menu-category.js.map +1 -1
  188. package/dist/collection/components/menu-category/test/menu-category.ct.js +50 -2
  189. package/dist/collection/components/menu-category/test/menu-category.ct.js.map +1 -1
  190. package/dist/collection/components/menu-item/menu-item.css +18 -1
  191. package/dist/collection/components/menu-item/menu-item.js +31 -7
  192. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  193. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  194. package/dist/collection/components/message-bar/message-bar.css +2 -2
  195. package/dist/collection/components/message-bar/message-bar.js +1 -1
  196. package/dist/collection/components/modal/modal.js +6 -3
  197. package/dist/collection/components/modal/modal.js.map +1 -1
  198. package/dist/collection/components/modal/test/modal.ct.js +76 -0
  199. package/dist/collection/components/modal/test/modal.ct.js.map +1 -1
  200. package/dist/collection/components/modal-content/modal-content.js +1 -1
  201. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  202. package/dist/collection/components/modal-header/modal-header.js +1 -1
  203. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  204. package/dist/collection/components/pagination/pagination.js +2 -2
  205. package/dist/collection/components/pane/pane.css +7 -9
  206. package/dist/collection/components/pane/pane.js +50 -21
  207. package/dist/collection/components/pane/pane.js.map +1 -1
  208. package/dist/collection/components/pane-layout/pane-layout.js +9 -1
  209. package/dist/collection/components/pane-layout/pane-layout.js.map +1 -1
  210. package/dist/collection/components/pane-layout/test/pane-layout.ct.js +2 -0
  211. package/dist/collection/components/pane-layout/test/pane-layout.ct.js.map +1 -1
  212. package/dist/collection/components/pill/pill.js +4 -4
  213. package/dist/collection/components/playground/example-modal.js +1 -1
  214. package/dist/collection/components/playground/playground.js +1 -1
  215. package/dist/collection/components/row/row.js +1 -1
  216. package/dist/collection/components/select/select.js +6 -6
  217. package/dist/collection/components/select-item/select-item.js +1 -1
  218. package/dist/collection/components/spinner/spinner.js +1 -1
  219. package/dist/collection/components/split-button-item/split-button-item.js +1 -1
  220. package/dist/collection/components/tabs/tabs.js +2 -2
  221. package/dist/collection/components/tile/tile.js +4 -4
  222. package/dist/collection/components/toast/toast-container.js +1 -1
  223. package/dist/collection/components/toast/toast.js +2 -2
  224. package/dist/collection/components/toggle/toggle.js +2 -2
  225. package/dist/collection/components/toggle-button/toggle-button.js +2 -2
  226. package/dist/collection/components/tooltip/test/tooltip.ct.js +0 -18
  227. package/dist/collection/components/tooltip/test/tooltip.ct.js.map +1 -1
  228. package/dist/collection/components/tooltip/tooltip.js +17 -22
  229. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  230. package/dist/collection/components/tree/tree.js +1 -1
  231. package/dist/collection/components/tree-item/tree-item.js +4 -4
  232. package/dist/collection/components/upload/upload.js +3 -3
  233. package/dist/collection/components/utils/modal/modal.js +1 -1
  234. package/dist/collection/components/utils/modal/modal.js.map +1 -1
  235. package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
  236. package/dist/collection/components/workflow-step/workflow-step.js +3 -3
  237. package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
  238. package/dist/collection/tests/menu/menu.e2e.js +63 -38
  239. package/dist/collection/tests/menu/menu.e2e.js.map +1 -1
  240. package/dist/collection/tests/panes/panes.e2e.js +6 -0
  241. package/dist/collection/tests/panes/panes.e2e.js.map +1 -1
  242. package/dist/esm/{base-button-355ac631.js → base-button-c4987907.js} +2 -2
  243. package/dist/esm/{base-button-355ac631.js.map → base-button-c4987907.js.map} +1 -1
  244. package/dist/esm/{base-icon-button-030bd50c.js → base-icon-button-caf73c1d.js} +3 -3
  245. package/dist/esm/{base-icon-button-030bd50c.js.map → base-icon-button-caf73c1d.js.map} +1 -1
  246. package/dist/esm/{index-38dea61d.js → index-0d053ada.js} +35 -22
  247. package/dist/esm/index-0d053ada.js.map +1 -0
  248. package/dist/esm/{index-ff9bfca4.js → index-76b9c8de.js} +2 -2
  249. package/dist/esm/{index-ff9bfca4.js.map → index-76b9c8de.js.map} +1 -1
  250. package/dist/esm/index.js +2 -2
  251. package/dist/esm/ix-action-card.entry.js +1 -1
  252. package/dist/esm/ix-application-header.entry.js +3 -3
  253. package/dist/esm/ix-application-sidebar.entry.js +1 -1
  254. package/dist/esm/ix-application-switch-modal.entry.js +2 -2
  255. package/dist/esm/ix-application.entry.js +1 -1
  256. package/dist/esm/ix-avatar_2.entry.js +2 -2
  257. package/dist/esm/ix-basic-navigation.entry.js +1 -1
  258. package/dist/esm/ix-blind.entry.js +1 -1
  259. package/dist/esm/ix-breadcrumb-item.entry.js +2 -2
  260. package/dist/esm/ix-breadcrumb.entry.js +1 -1
  261. package/dist/esm/ix-burger-menu.entry.js +4 -4
  262. package/dist/esm/ix-burger-menu.entry.js.map +1 -1
  263. package/dist/esm/ix-button.entry.js +2 -2
  264. package/dist/esm/ix-card-accordion_2.entry.js +1 -1
  265. package/dist/esm/ix-card-list.entry.js +1 -1
  266. package/dist/esm/ix-card_2.entry.js +1 -1
  267. package/dist/esm/ix-category-filter.entry.js +2 -2
  268. package/dist/esm/ix-chip.entry.js +1 -1
  269. package/dist/esm/ix-col_4.entry.js +3 -3
  270. package/dist/esm/ix-content-header.entry.js +1 -1
  271. package/dist/esm/ix-content.entry.js +1 -1
  272. package/dist/esm/ix-css-grid-item.entry.js +1 -1
  273. package/dist/esm/ix-css-grid.entry.js +1 -1
  274. package/dist/esm/ix-date-dropdown.entry.js +1 -1
  275. package/dist/esm/ix-date-time-card.entry.js +1 -1
  276. package/dist/esm/ix-datetime-picker.entry.js +1 -1
  277. package/dist/esm/ix-divider.entry.js +1 -1
  278. package/dist/esm/ix-drawer.entry.js +1 -1
  279. package/dist/esm/ix-dropdown-button.entry.js +1 -1
  280. package/dist/esm/ix-dropdown-header.entry.js +1 -1
  281. package/dist/esm/ix-dropdown-item.entry.js +1 -1
  282. package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
  283. package/dist/esm/ix-dropdown.entry.js +22 -14
  284. package/dist/esm/ix-dropdown.entry.js.map +1 -1
  285. package/dist/esm/ix-empty-state.entry.js +1 -1
  286. package/dist/esm/ix-event-list-item.entry.js +1 -1
  287. package/dist/esm/ix-event-list.entry.js +1 -1
  288. package/dist/esm/ix-expanding-search.entry.js +1 -1
  289. package/dist/esm/ix-filter-chip_2.entry.js +2 -2
  290. package/dist/esm/ix-flip-tile-content.entry.js +1 -1
  291. package/dist/esm/ix-flip-tile.entry.js +1 -1
  292. package/dist/esm/ix-form-field.entry.js +1 -1
  293. package/dist/esm/ix-group-context-menu_2.entry.js +1 -1
  294. package/dist/esm/ix-group.entry.js +1 -1
  295. package/dist/esm/ix-icon-button_2.entry.js +4 -4
  296. package/dist/esm/ix-icon-toggle-button.entry.js +3 -3
  297. package/dist/esm/ix-input-group.entry.js +1 -1
  298. package/dist/esm/ix-key-value-list.entry.js +1 -1
  299. package/dist/esm/ix-key-value.entry.js +1 -1
  300. package/dist/esm/ix-kpi.entry.js +1 -1
  301. package/dist/esm/ix-link-button.entry.js +1 -1
  302. package/dist/esm/ix-map-navigation-overlay.entry.js +1 -1
  303. package/dist/esm/ix-map-navigation.entry.js +1 -1
  304. package/dist/esm/ix-menu-about-item.entry.js +1 -1
  305. package/dist/esm/ix-menu-about-news.entry.js +1 -1
  306. package/dist/esm/ix-menu-about.entry.js +2 -2
  307. package/dist/esm/ix-menu-avatar.entry.js +1 -1
  308. package/dist/esm/ix-menu-category.entry.js +20 -8
  309. package/dist/esm/ix-menu-category.entry.js.map +1 -1
  310. package/dist/esm/ix-menu-item.entry.js +25 -5
  311. package/dist/esm/ix-menu-item.entry.js.map +1 -1
  312. package/dist/esm/ix-menu-settings-item.entry.js +2 -2
  313. package/dist/esm/ix-menu-settings.entry.js +2 -2
  314. package/dist/esm/ix-menu.entry.js +5 -5
  315. package/dist/esm/ix-menu.entry.js.map +1 -1
  316. package/dist/esm/ix-message-bar.entry.js +3 -3
  317. package/dist/esm/ix-message-bar.entry.js.map +1 -1
  318. package/dist/esm/ix-modal-content_2.entry.js +3 -3
  319. package/dist/esm/ix-modal-example.entry.js +3 -3
  320. package/dist/esm/ix-modal-footer.entry.js +2 -2
  321. package/dist/esm/ix-modal-loading.entry.js +2 -2
  322. package/dist/esm/ix-modal.entry.js +8 -5
  323. package/dist/esm/ix-modal.entry.js.map +1 -1
  324. package/dist/esm/ix-pagination.entry.js +4 -4
  325. package/dist/esm/ix-pane-layout.entry.js +10 -2
  326. package/dist/esm/ix-pane-layout.entry.js.map +1 -1
  327. package/dist/esm/ix-pane.entry.js +52 -23
  328. package/dist/esm/ix-pane.entry.js.map +1 -1
  329. package/dist/esm/ix-pill.entry.js +5 -5
  330. package/dist/esm/ix-playground-internal.entry.js +2 -2
  331. package/dist/esm/ix-push-card.entry.js +1 -1
  332. package/dist/esm/ix-select.entry.js +8 -8
  333. package/dist/esm/ix-slider.entry.js +2 -2
  334. package/dist/esm/ix-split-button-item.entry.js +2 -2
  335. package/dist/esm/ix-split-button.entry.js +1 -1
  336. package/dist/esm/ix-tab-item_2.entry.js +3 -3
  337. package/dist/esm/ix-tile.entry.js +5 -5
  338. package/dist/esm/ix-time-picker.entry.js +1 -1
  339. package/dist/esm/ix-toast-container.entry.js +2 -2
  340. package/dist/esm/ix-toast.entry.js +3 -3
  341. package/dist/esm/ix-toggle-button.entry.js +4 -4
  342. package/dist/esm/ix-toggle.entry.js +3 -3
  343. package/dist/esm/ix-tooltip.entry.js +19 -24
  344. package/dist/esm/ix-tooltip.entry.js.map +1 -1
  345. package/dist/esm/ix-tree-item.entry.js +5 -5
  346. package/dist/esm/ix-tree.entry.js +2 -2
  347. package/dist/esm/ix-typography.entry.js +1 -1
  348. package/dist/esm/ix-upload.entry.js +4 -4
  349. package/dist/esm/ix-validation-tooltip.entry.js +3 -3
  350. package/dist/esm/ix-workflow-step.entry.js +4 -4
  351. package/dist/esm/ix-workflow-steps.entry.js +2 -2
  352. package/dist/esm/{listener-23c93aa7.js → listener-cf8cb0b2.js} +2 -2
  353. package/dist/esm/{listener-23c93aa7.js.map → listener-cf8cb0b2.js.map} +1 -1
  354. package/dist/esm/loader.js +5 -5
  355. package/dist/esm/loader.js.map +1 -1
  356. package/dist/esm/{menu-tabs-fc-efc49c04.js → menu-tabs-fc-7b7acc8b.js} +2 -2
  357. package/dist/esm/{menu-tabs-fc-efc49c04.js.map → menu-tabs-fc-7b7acc8b.js.map} +1 -1
  358. package/dist/esm/{modal-8bc5477b.js → modal-54740f80.js} +2 -2
  359. package/dist/esm/modal-54740f80.js.map +1 -0
  360. package/dist/esm/siemens-ix.js +6 -6
  361. package/dist/esm/siemens-ix.js.map +1 -1
  362. package/dist/siemens-ix/index.esm.js +1 -1
  363. package/dist/siemens-ix/{p-ad01ee70.js → p-004cade9.js} +2 -2
  364. package/dist/siemens-ix/{p-6e0a8877.entry.js → p-050f482a.entry.js} +2 -2
  365. package/dist/siemens-ix/{p-31748d33.entry.js → p-064a1a47.entry.js} +2 -2
  366. package/dist/siemens-ix/{p-7c2c24ff.entry.js → p-06b783a7.entry.js} +2 -2
  367. package/dist/siemens-ix/p-0ca3528f.js +2 -0
  368. package/dist/siemens-ix/{p-90f69373.entry.js → p-0e0e5f67.entry.js} +2 -2
  369. package/dist/siemens-ix/{p-0fc4bda8.entry.js → p-0e51828d.entry.js} +2 -2
  370. package/dist/siemens-ix/p-0e51828d.entry.js.map +1 -0
  371. package/dist/siemens-ix/{p-26ed3dec.entry.js → p-14d2576e.entry.js} +2 -2
  372. package/dist/siemens-ix/{p-98d1e861.entry.js → p-196d2cef.entry.js} +2 -2
  373. package/dist/siemens-ix/p-1aa9c005.entry.js +2 -0
  374. package/dist/siemens-ix/p-1aa9c005.entry.js.map +1 -0
  375. package/dist/siemens-ix/p-1e5e042b.entry.js +2 -0
  376. package/dist/siemens-ix/p-1e5e042b.entry.js.map +1 -0
  377. package/dist/siemens-ix/{p-0d5ae5ed.entry.js → p-22a792da.entry.js} +2 -2
  378. package/dist/siemens-ix/p-232bee46.entry.js +2 -0
  379. package/dist/siemens-ix/{p-6605180d.entry.js → p-2462fc76.entry.js} +2 -2
  380. package/dist/siemens-ix/{p-9808e98a.entry.js → p-26355e12.entry.js} +2 -2
  381. package/dist/siemens-ix/{p-247099fc.entry.js → p-27118d3b.entry.js} +2 -2
  382. package/dist/siemens-ix/{p-5f9bb7c9.entry.js → p-2cdd0028.entry.js} +2 -2
  383. package/dist/siemens-ix/{p-aeb745b9.entry.js → p-2deed888.entry.js} +2 -2
  384. package/dist/siemens-ix/{p-bf2ac29f.entry.js → p-31bfd5ff.entry.js} +2 -2
  385. package/dist/siemens-ix/p-3214478e.entry.js +2 -0
  386. package/dist/siemens-ix/p-3214478e.entry.js.map +1 -0
  387. package/dist/siemens-ix/p-34ccbe57.entry.js +2 -0
  388. package/dist/siemens-ix/{p-40fc3093.entry.js.map → p-34ccbe57.entry.js.map} +1 -1
  389. package/dist/siemens-ix/{p-89eb95bd.entry.js → p-353e2dd5.entry.js} +2 -2
  390. package/dist/siemens-ix/{p-9f03e475.entry.js → p-37d299a4.entry.js} +2 -2
  391. package/dist/siemens-ix/{p-92768144.entry.js → p-3bc095f3.entry.js} +2 -2
  392. package/dist/siemens-ix/{p-95642364.entry.js → p-3c0425f3.entry.js} +2 -2
  393. package/dist/siemens-ix/p-3c6e6130.entry.js +2 -0
  394. package/dist/siemens-ix/{p-69c97e5d.entry.js → p-3ead4fed.entry.js} +2 -2
  395. package/dist/siemens-ix/{p-a76b2311.entry.js → p-40335e7c.entry.js} +2 -2
  396. package/dist/siemens-ix/{p-3ef64d06.entry.js → p-42f7289e.entry.js} +2 -2
  397. package/dist/siemens-ix/{p-96e50b3a.entry.js → p-47919d43.entry.js} +2 -2
  398. package/dist/siemens-ix/{p-e0a04248.entry.js → p-4bb08459.entry.js} +2 -2
  399. package/dist/siemens-ix/{p-85a34aff.entry.js → p-4c29feb5.entry.js} +2 -2
  400. package/dist/siemens-ix/{p-b10cfca0.entry.js → p-4dad31fa.entry.js} +2 -2
  401. package/dist/siemens-ix/{p-cee05d4a.entry.js → p-50f12507.entry.js} +2 -2
  402. package/dist/siemens-ix/{p-cf14d460.entry.js → p-535ee46b.entry.js} +2 -2
  403. package/dist/siemens-ix/{p-ce88799e.entry.js → p-572455df.entry.js} +2 -2
  404. package/dist/siemens-ix/{p-f0be2cd7.entry.js → p-58f51cce.entry.js} +2 -2
  405. package/dist/siemens-ix/{p-cc3ea7bf.entry.js → p-5ca2ef74.entry.js} +2 -2
  406. package/dist/siemens-ix/{p-5df4d3f6.entry.js → p-5d3975c8.entry.js} +2 -2
  407. package/dist/siemens-ix/{p-b9bc0b4c.entry.js → p-5dd97d39.entry.js} +2 -2
  408. package/dist/siemens-ix/{p-5db56877.entry.js → p-5f74fc83.entry.js} +2 -2
  409. package/dist/siemens-ix/{p-b79b8967.entry.js → p-6a8d50c3.entry.js} +2 -2
  410. package/dist/siemens-ix/{p-b79b8967.entry.js.map → p-6a8d50c3.entry.js.map} +1 -1
  411. package/dist/siemens-ix/{p-340a7dcf.entry.js → p-6cd2b4d4.entry.js} +2 -2
  412. package/dist/siemens-ix/{p-06ac510a.js → p-6e5beede.js} +2 -2
  413. package/dist/siemens-ix/p-6e6efb4c.js +2 -0
  414. package/dist/siemens-ix/{p-2679a484.js.map → p-6e6efb4c.js.map} +1 -1
  415. package/dist/siemens-ix/{p-2a48e3c2.entry.js → p-73d5ea4a.entry.js} +2 -2
  416. package/dist/siemens-ix/{p-ba379675.entry.js → p-75050430.entry.js} +2 -2
  417. package/dist/siemens-ix/{p-0ff62c64.entry.js → p-75943110.entry.js} +2 -2
  418. package/dist/siemens-ix/p-75943110.entry.js.map +1 -0
  419. package/dist/siemens-ix/{p-3c043135.entry.js → p-782b33d3.entry.js} +2 -2
  420. package/dist/siemens-ix/p-78e332f4.entry.js +2 -0
  421. package/dist/siemens-ix/{p-830cada0.entry.js → p-81b570f5.entry.js} +2 -2
  422. package/dist/siemens-ix/p-8493da96.entry.js +2 -0
  423. package/dist/siemens-ix/{p-350f0c29.entry.js.map → p-8493da96.entry.js.map} +1 -1
  424. package/dist/siemens-ix/{p-da641f25.entry.js → p-8b1add8f.entry.js} +2 -2
  425. package/dist/siemens-ix/{p-44ff88dd.entry.js → p-8b51637c.entry.js} +2 -2
  426. package/dist/siemens-ix/{p-5ebe2601.entry.js → p-8be3bc6d.entry.js} +2 -2
  427. package/dist/siemens-ix/{p-73064959.entry.js → p-8c01fea2.entry.js} +2 -2
  428. package/dist/siemens-ix/p-8efe88e8.entry.js +2 -0
  429. package/dist/siemens-ix/p-8efe88e8.entry.js.map +1 -0
  430. package/dist/siemens-ix/{p-48268ca1.entry.js → p-92fc6ba1.entry.js} +2 -2
  431. package/dist/siemens-ix/p-975cb736.entry.js +2 -0
  432. package/dist/siemens-ix/{p-c7311667.entry.js → p-988d23ac.entry.js} +2 -2
  433. package/dist/siemens-ix/{p-91331a62.entry.js → p-9ceabb5f.entry.js} +2 -2
  434. package/dist/siemens-ix/{p-c56c1f11.entry.js → p-a3431d63.entry.js} +2 -2
  435. package/dist/siemens-ix/{p-3763fb0e.entry.js → p-a643ad05.entry.js} +2 -2
  436. package/dist/siemens-ix/{p-94e82b85.entry.js → p-ab282d03.entry.js} +2 -2
  437. package/dist/siemens-ix/{p-cb61d053.entry.js → p-b4e3a4fd.entry.js} +2 -2
  438. package/dist/siemens-ix/p-b4e3a4fd.entry.js.map +1 -0
  439. package/dist/siemens-ix/{p-64ee9c6b.entry.js → p-b62e2edf.entry.js} +2 -2
  440. package/dist/siemens-ix/{p-db227cd4.entry.js → p-c0bf9382.entry.js} +2 -2
  441. package/dist/siemens-ix/{p-8482064b.entry.js → p-ca53ecd8.entry.js} +2 -2
  442. package/dist/siemens-ix/{p-596f9406.entry.js → p-ca8407f5.entry.js} +2 -2
  443. package/dist/siemens-ix/p-cfc7a9ac.entry.js +2 -0
  444. package/dist/siemens-ix/p-cfc7a9ac.entry.js.map +1 -0
  445. package/dist/siemens-ix/{p-0f679fd8.entry.js → p-d277e7e2.entry.js} +2 -2
  446. package/dist/siemens-ix/{p-6504d262.entry.js → p-d445b333.entry.js} +2 -2
  447. package/dist/siemens-ix/{p-488055c0.entry.js → p-d464b60e.entry.js} +2 -2
  448. package/dist/siemens-ix/{p-731a81c6.entry.js → p-d59b3f31.entry.js} +2 -2
  449. package/dist/siemens-ix/{p-7d06e487.entry.js → p-d6e7e5da.entry.js} +2 -2
  450. package/dist/siemens-ix/p-da9f8709.entry.js +2 -0
  451. package/dist/siemens-ix/{p-d42d4c2e.entry.js → p-db47293b.entry.js} +2 -2
  452. package/dist/siemens-ix/{p-74472b15.entry.js → p-ddf93bce.entry.js} +2 -2
  453. package/dist/siemens-ix/{p-a4c02371.entry.js → p-e1b790d3.entry.js} +2 -2
  454. package/dist/siemens-ix/{p-6ebf07ba.entry.js → p-e1d7c7fa.entry.js} +2 -2
  455. package/dist/siemens-ix/{p-a5496783.entry.js → p-e345d0d2.entry.js} +2 -2
  456. package/dist/siemens-ix/p-ea80cb61.js +3 -0
  457. package/dist/siemens-ix/p-ea80cb61.js.map +1 -0
  458. package/dist/siemens-ix/{p-9c6df184.entry.js → p-eb6ea42d.entry.js} +2 -2
  459. package/dist/siemens-ix/p-ef38f3a0.js +2 -0
  460. package/dist/siemens-ix/{p-657fc30d.js → p-f0e7e035.js} +2 -2
  461. package/dist/siemens-ix/{p-7f66d83d.entry.js → p-f10824af.entry.js} +2 -2
  462. package/dist/siemens-ix/{p-0fa87626.entry.js → p-f1635e06.entry.js} +2 -2
  463. package/dist/siemens-ix/{p-1582a3c6.entry.js → p-f1e94d25.entry.js} +2 -2
  464. package/dist/siemens-ix/{p-2634d651.entry.js → p-f2ee640a.entry.js} +2 -2
  465. package/dist/siemens-ix/{p-3b3caf9a.entry.js → p-f56686c9.entry.js} +2 -2
  466. package/dist/siemens-ix/{p-8f6e4b39.entry.js → p-f5a108d5.entry.js} +2 -2
  467. package/dist/siemens-ix/{p-794bfde0.entry.js → p-f5af5a9f.entry.js} +2 -2
  468. package/dist/siemens-ix/{p-1f67076b.entry.js → p-f6691728.entry.js} +2 -2
  469. package/dist/siemens-ix/{p-757b8af2.entry.js → p-f8169051.entry.js} +2 -2
  470. package/dist/siemens-ix/{p-97cb6155.entry.js → p-fc5fd951.entry.js} +2 -2
  471. package/dist/siemens-ix/{p-9a19d0ba.entry.js → p-fcbe42c4.entry.js} +2 -2
  472. package/dist/siemens-ix/{p-52a89d75.entry.js → p-fdccc402.entry.js} +2 -2
  473. package/dist/siemens-ix/p-fe760d17.entry.js +2 -0
  474. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  475. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  476. package/dist/types/components/dropdown/dropdown-controller.d.ts +1 -1
  477. package/dist/types/components/menu-avatar-item/test/menu-avatar-item.ct.d.ts +1 -0
  478. package/dist/types/components/menu-category/menu-category.d.ts +2 -0
  479. package/dist/types/components/menu-item/menu-item.d.ts +2 -0
  480. package/dist/types/components/pane/pane.d.ts +4 -0
  481. package/dist/types/components/pane-layout/pane-layout.d.ts +1 -0
  482. package/dist/types/components/tooltip/tooltip.d.ts +1 -3
  483. package/package.json +2 -2
  484. package/scss/theme/classic-dark/_borderRadius.scss +1 -1
  485. package/scss/theme/classic-dark/_borderWidth.scss +1 -1
  486. package/scss/theme/classic-light/_borderRadius.scss +1 -1
  487. package/scss/theme/classic-light/_borderWidth.scss +1 -1
  488. package/dist/cjs/index-ace435aa.js.map +0 -1
  489. package/dist/cjs/modal-bf597938.js.map +0 -1
  490. package/dist/esm/index-38dea61d.js.map +0 -1
  491. package/dist/esm/modal-8bc5477b.js.map +0 -1
  492. package/dist/siemens-ix/p-03e4b68a.entry.js +0 -2
  493. package/dist/siemens-ix/p-0fc4bda8.entry.js.map +0 -1
  494. package/dist/siemens-ix/p-0ff62c64.entry.js.map +0 -1
  495. package/dist/siemens-ix/p-2679a484.js +0 -2
  496. package/dist/siemens-ix/p-3082ad93.entry.js +0 -2
  497. package/dist/siemens-ix/p-3082ad93.entry.js.map +0 -1
  498. package/dist/siemens-ix/p-350f0c29.entry.js +0 -2
  499. package/dist/siemens-ix/p-3c03baf3.entry.js +0 -2
  500. package/dist/siemens-ix/p-3c03baf3.entry.js.map +0 -1
  501. package/dist/siemens-ix/p-40fc3093.entry.js +0 -2
  502. package/dist/siemens-ix/p-7b9c848c.entry.js +0 -2
  503. package/dist/siemens-ix/p-8b1e1c0b.entry.js +0 -2
  504. package/dist/siemens-ix/p-8b7c8f71.entry.js +0 -2
  505. package/dist/siemens-ix/p-97b19267.js +0 -2
  506. package/dist/siemens-ix/p-98b3368c.js +0 -2
  507. package/dist/siemens-ix/p-a2bb9a69.entry.js +0 -2
  508. package/dist/siemens-ix/p-a2bb9a69.entry.js.map +0 -1
  509. package/dist/siemens-ix/p-a9cf5eb2.js +0 -3
  510. package/dist/siemens-ix/p-a9cf5eb2.js.map +0 -1
  511. package/dist/siemens-ix/p-abc9c138.entry.js +0 -2
  512. package/dist/siemens-ix/p-abc9c138.entry.js.map +0 -1
  513. package/dist/siemens-ix/p-b4ca36ac.entry.js +0 -2
  514. package/dist/siemens-ix/p-c5965787.entry.js +0 -2
  515. package/dist/siemens-ix/p-c5965787.entry.js.map +0 -1
  516. package/dist/siemens-ix/p-c65dca4b.entry.js +0 -2
  517. package/dist/siemens-ix/p-cb61d053.entry.js.map +0 -1
  518. /package/dist/siemens-ix/{p-ad01ee70.js.map → p-004cade9.js.map} +0 -0
  519. /package/dist/siemens-ix/{p-6e0a8877.entry.js.map → p-050f482a.entry.js.map} +0 -0
  520. /package/dist/siemens-ix/{p-31748d33.entry.js.map → p-064a1a47.entry.js.map} +0 -0
  521. /package/dist/siemens-ix/{p-7c2c24ff.entry.js.map → p-06b783a7.entry.js.map} +0 -0
  522. /package/dist/siemens-ix/{p-98b3368c.js.map → p-0ca3528f.js.map} +0 -0
  523. /package/dist/siemens-ix/{p-90f69373.entry.js.map → p-0e0e5f67.entry.js.map} +0 -0
  524. /package/dist/siemens-ix/{p-26ed3dec.entry.js.map → p-14d2576e.entry.js.map} +0 -0
  525. /package/dist/siemens-ix/{p-98d1e861.entry.js.map → p-196d2cef.entry.js.map} +0 -0
  526. /package/dist/siemens-ix/{p-0d5ae5ed.entry.js.map → p-22a792da.entry.js.map} +0 -0
  527. /package/dist/siemens-ix/{p-b4ca36ac.entry.js.map → p-232bee46.entry.js.map} +0 -0
  528. /package/dist/siemens-ix/{p-6605180d.entry.js.map → p-2462fc76.entry.js.map} +0 -0
  529. /package/dist/siemens-ix/{p-9808e98a.entry.js.map → p-26355e12.entry.js.map} +0 -0
  530. /package/dist/siemens-ix/{p-247099fc.entry.js.map → p-27118d3b.entry.js.map} +0 -0
  531. /package/dist/siemens-ix/{p-5f9bb7c9.entry.js.map → p-2cdd0028.entry.js.map} +0 -0
  532. /package/dist/siemens-ix/{p-aeb745b9.entry.js.map → p-2deed888.entry.js.map} +0 -0
  533. /package/dist/siemens-ix/{p-bf2ac29f.entry.js.map → p-31bfd5ff.entry.js.map} +0 -0
  534. /package/dist/siemens-ix/{p-89eb95bd.entry.js.map → p-353e2dd5.entry.js.map} +0 -0
  535. /package/dist/siemens-ix/{p-9f03e475.entry.js.map → p-37d299a4.entry.js.map} +0 -0
  536. /package/dist/siemens-ix/{p-92768144.entry.js.map → p-3bc095f3.entry.js.map} +0 -0
  537. /package/dist/siemens-ix/{p-95642364.entry.js.map → p-3c0425f3.entry.js.map} +0 -0
  538. /package/dist/siemens-ix/{p-7b9c848c.entry.js.map → p-3c6e6130.entry.js.map} +0 -0
  539. /package/dist/siemens-ix/{p-69c97e5d.entry.js.map → p-3ead4fed.entry.js.map} +0 -0
  540. /package/dist/siemens-ix/{p-a76b2311.entry.js.map → p-40335e7c.entry.js.map} +0 -0
  541. /package/dist/siemens-ix/{p-3ef64d06.entry.js.map → p-42f7289e.entry.js.map} +0 -0
  542. /package/dist/siemens-ix/{p-96e50b3a.entry.js.map → p-47919d43.entry.js.map} +0 -0
  543. /package/dist/siemens-ix/{p-e0a04248.entry.js.map → p-4bb08459.entry.js.map} +0 -0
  544. /package/dist/siemens-ix/{p-85a34aff.entry.js.map → p-4c29feb5.entry.js.map} +0 -0
  545. /package/dist/siemens-ix/{p-b10cfca0.entry.js.map → p-4dad31fa.entry.js.map} +0 -0
  546. /package/dist/siemens-ix/{p-cee05d4a.entry.js.map → p-50f12507.entry.js.map} +0 -0
  547. /package/dist/siemens-ix/{p-cf14d460.entry.js.map → p-535ee46b.entry.js.map} +0 -0
  548. /package/dist/siemens-ix/{p-ce88799e.entry.js.map → p-572455df.entry.js.map} +0 -0
  549. /package/dist/siemens-ix/{p-f0be2cd7.entry.js.map → p-58f51cce.entry.js.map} +0 -0
  550. /package/dist/siemens-ix/{p-cc3ea7bf.entry.js.map → p-5ca2ef74.entry.js.map} +0 -0
  551. /package/dist/siemens-ix/{p-5df4d3f6.entry.js.map → p-5d3975c8.entry.js.map} +0 -0
  552. /package/dist/siemens-ix/{p-b9bc0b4c.entry.js.map → p-5dd97d39.entry.js.map} +0 -0
  553. /package/dist/siemens-ix/{p-5db56877.entry.js.map → p-5f74fc83.entry.js.map} +0 -0
  554. /package/dist/siemens-ix/{p-340a7dcf.entry.js.map → p-6cd2b4d4.entry.js.map} +0 -0
  555. /package/dist/siemens-ix/{p-06ac510a.js.map → p-6e5beede.js.map} +0 -0
  556. /package/dist/siemens-ix/{p-2a48e3c2.entry.js.map → p-73d5ea4a.entry.js.map} +0 -0
  557. /package/dist/siemens-ix/{p-ba379675.entry.js.map → p-75050430.entry.js.map} +0 -0
  558. /package/dist/siemens-ix/{p-3c043135.entry.js.map → p-782b33d3.entry.js.map} +0 -0
  559. /package/dist/siemens-ix/{p-8b7c8f71.entry.js.map → p-78e332f4.entry.js.map} +0 -0
  560. /package/dist/siemens-ix/{p-830cada0.entry.js.map → p-81b570f5.entry.js.map} +0 -0
  561. /package/dist/siemens-ix/{p-da641f25.entry.js.map → p-8b1add8f.entry.js.map} +0 -0
  562. /package/dist/siemens-ix/{p-44ff88dd.entry.js.map → p-8b51637c.entry.js.map} +0 -0
  563. /package/dist/siemens-ix/{p-5ebe2601.entry.js.map → p-8be3bc6d.entry.js.map} +0 -0
  564. /package/dist/siemens-ix/{p-73064959.entry.js.map → p-8c01fea2.entry.js.map} +0 -0
  565. /package/dist/siemens-ix/{p-48268ca1.entry.js.map → p-92fc6ba1.entry.js.map} +0 -0
  566. /package/dist/siemens-ix/{p-c65dca4b.entry.js.map → p-975cb736.entry.js.map} +0 -0
  567. /package/dist/siemens-ix/{p-c7311667.entry.js.map → p-988d23ac.entry.js.map} +0 -0
  568. /package/dist/siemens-ix/{p-91331a62.entry.js.map → p-9ceabb5f.entry.js.map} +0 -0
  569. /package/dist/siemens-ix/{p-c56c1f11.entry.js.map → p-a3431d63.entry.js.map} +0 -0
  570. /package/dist/siemens-ix/{p-3763fb0e.entry.js.map → p-a643ad05.entry.js.map} +0 -0
  571. /package/dist/siemens-ix/{p-94e82b85.entry.js.map → p-ab282d03.entry.js.map} +0 -0
  572. /package/dist/siemens-ix/{p-64ee9c6b.entry.js.map → p-b62e2edf.entry.js.map} +0 -0
  573. /package/dist/siemens-ix/{p-db227cd4.entry.js.map → p-c0bf9382.entry.js.map} +0 -0
  574. /package/dist/siemens-ix/{p-8482064b.entry.js.map → p-ca53ecd8.entry.js.map} +0 -0
  575. /package/dist/siemens-ix/{p-596f9406.entry.js.map → p-ca8407f5.entry.js.map} +0 -0
  576. /package/dist/siemens-ix/{p-0f679fd8.entry.js.map → p-d277e7e2.entry.js.map} +0 -0
  577. /package/dist/siemens-ix/{p-6504d262.entry.js.map → p-d445b333.entry.js.map} +0 -0
  578. /package/dist/siemens-ix/{p-488055c0.entry.js.map → p-d464b60e.entry.js.map} +0 -0
  579. /package/dist/siemens-ix/{p-731a81c6.entry.js.map → p-d59b3f31.entry.js.map} +0 -0
  580. /package/dist/siemens-ix/{p-7d06e487.entry.js.map → p-d6e7e5da.entry.js.map} +0 -0
  581. /package/dist/siemens-ix/{p-8b1e1c0b.entry.js.map → p-da9f8709.entry.js.map} +0 -0
  582. /package/dist/siemens-ix/{p-d42d4c2e.entry.js.map → p-db47293b.entry.js.map} +0 -0
  583. /package/dist/siemens-ix/{p-74472b15.entry.js.map → p-ddf93bce.entry.js.map} +0 -0
  584. /package/dist/siemens-ix/{p-a4c02371.entry.js.map → p-e1b790d3.entry.js.map} +0 -0
  585. /package/dist/siemens-ix/{p-6ebf07ba.entry.js.map → p-e1d7c7fa.entry.js.map} +0 -0
  586. /package/dist/siemens-ix/{p-a5496783.entry.js.map → p-e345d0d2.entry.js.map} +0 -0
  587. /package/dist/siemens-ix/{p-9c6df184.entry.js.map → p-eb6ea42d.entry.js.map} +0 -0
  588. /package/dist/siemens-ix/{p-97b19267.js.map → p-ef38f3a0.js.map} +0 -0
  589. /package/dist/siemens-ix/{p-657fc30d.js.map → p-f0e7e035.js.map} +0 -0
  590. /package/dist/siemens-ix/{p-7f66d83d.entry.js.map → p-f10824af.entry.js.map} +0 -0
  591. /package/dist/siemens-ix/{p-0fa87626.entry.js.map → p-f1635e06.entry.js.map} +0 -0
  592. /package/dist/siemens-ix/{p-1582a3c6.entry.js.map → p-f1e94d25.entry.js.map} +0 -0
  593. /package/dist/siemens-ix/{p-2634d651.entry.js.map → p-f2ee640a.entry.js.map} +0 -0
  594. /package/dist/siemens-ix/{p-3b3caf9a.entry.js.map → p-f56686c9.entry.js.map} +0 -0
  595. /package/dist/siemens-ix/{p-8f6e4b39.entry.js.map → p-f5a108d5.entry.js.map} +0 -0
  596. /package/dist/siemens-ix/{p-794bfde0.entry.js.map → p-f5af5a9f.entry.js.map} +0 -0
  597. /package/dist/siemens-ix/{p-1f67076b.entry.js.map → p-f6691728.entry.js.map} +0 -0
  598. /package/dist/siemens-ix/{p-757b8af2.entry.js.map → p-f8169051.entry.js.map} +0 -0
  599. /package/dist/siemens-ix/{p-97cb6155.entry.js.map → p-fc5fd951.entry.js.map} +0 -0
  600. /package/dist/siemens-ix/{p-9a19d0ba.entry.js.map → p-fcbe42c4.entry.js.map} +0 -0
  601. /package/dist/siemens-ix/{p-52a89d75.entry.js.map → p-fdccc402.entry.js.map} +0 -0
  602. /package/dist/siemens-ix/{p-03e4b68a.entry.js.map → p-fe760d17.entry.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- import{r as t,h as e,H as o,g as i}from"./p-a9cf5eb2.js";import{c as a}from"./p-e898862b.js";const s=':host{position:relative;display:block;cursor:pointer;height:var(--ix-menu-item-height, 3rem);min-height:var(--ix-menu-item-height, 3rem);max-height:var(--ix-menu-item-height, 3rem)}:host .tab{all:unset;box-sizing:border-box;display:flex;position:relative;align-items:center;height:var(--ix-menu-item-height, 3rem);width:100%;z-index:500;padding-left:0.875rem}:host .tab:not(.disabled):not(:disabled).hover,:host .tab:not(.disabled):not(:disabled):hover{background-color:var(--theme-ghost--background--hover)}:host .tab:not(.disabled):not(:disabled).active,:host .tab:not(.disabled):not(:disabled):active{background-color:var(--theme-ghost--background--active)}:host .tab-icon{color:var(--theme-nav-item-primary-icon--color);position:relative;pointer-events:none}:host .tab:focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:-1px}:host .tab:not(:last-child){margin-bottom:0.5rem}:host .notification{display:inline-flex;position:absolute;top:0.25rem;left:1.75rem}:host .notification .pill{display:inline-flex;justify-content:center;align-items:center;height:0.5rem;min-width:1rem;position:relative;border-radius:6.25rem;background-color:var(--theme-color-primary);border-radius:6.25rem;font-size:0.75rem;font-weight:bold;line-height:1;font-family:Siemens Sans, Arial, sans-serif;color:var(--theme-color-primary--contrast);padding:0.25rem}:host .tab-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--theme-nav-item-primary--color);margin:0 1.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}:host(.active) .tab,:host(.selected) .tab{background-color:var(--theme-nav-item-primary--background--selected)}:host(.active) .tab::before,:host(.selected) .tab::before{content:"";background-color:var(--theme-nav-item-primary--border-color--selected);height:var(--ix-menu-item-height, 3rem);width:0.25rem;left:0;position:absolute}:host(.active) .tab>.glyph,:host(.selected) .tab>.glyph{color:var(--theme-nav-item-primary-icon--color--selected)}:host(.disabled){color:var(--theme-color-weak-text);pointer-events:none;cursor:default}:host(.disabled) .tab>.tab-icon{color:var(--theme-color-weak-text)}:host(.disabled) .tab-text{color:var(--theme-color-weak-text)}:host(.bottom-tab),:host([slot=bottom]){min-height:2.25rem;height:2.25rem;max-height:2.25rem}:host(.bottom-tab) .tab,:host([slot=bottom]) .tab{height:2.25rem}:host(.bottom-tab) .tab::before,:host([slot=bottom]) .tab::before{height:2.25rem;background-color:transparent}:host(.bottom-tab).active:hover,:host(.bottom-tab).selected:hover,:host([slot=bottom]).active:hover,:host([slot=bottom]).selected:hover{background-color:var(--theme-nav-item-secondary--background--selected)}:host(.bottom-tab).active:active,:host(.bottom-tab).selected:active,:host([slot=bottom]).active:active,:host([slot=bottom]).selected:active{background-color:var(--theme-nav-item-secondary--background--selected)}:host(.bottom-tab.active) .tab,:host(.bottom-tab.selected) .tab,:host(.active[slot=bottom]) .tab,:host(.selected[slot=bottom]) .tab{background-color:var(--theme-nav-item-secondary--background--selected)}:host(.tab-nested) .tab::before{display:none}';const r=s;const c=class{constructor(e){t(this,e);this.isHostedInsideCategory=false;this.home=false;this.bottom=false;this.tabIcon="document";this.icon=undefined;this.notifications=undefined;this.active=undefined;this.disabled=undefined;this.title=undefined}componentWillLoad(){this.isHostedInsideCategory=!!this.hostElement.closest("ix-menu-category")}componentWillRender(){this.title=this.hostElement.innerText}connectedCallback(){this.observer=a((()=>{this.title=this.hostElement.innerText}));this.observer.observe(this.hostElement,{subtree:true,childList:true,characterData:true})}disconnectedCallback(){if(this.observer){this.observer.disconnect()}}render(){var t;let i={};if(this.home){i={slot:"home"}}if(this.bottom){i={slot:"bottom"}}return e(o,Object.assign({key:"d00ab2e99c623bcb386887b3173ad3afe94fcb35",class:{disabled:this.disabled,"home-tab":this.home,"bottom-tab":this.bottom,active:this.active,"tab-nested":this.isHostedInsideCategory}},i),e("button",{key:"8d6b02cc96f0477c1eee2a665fbbcbacfada4197",class:"tab",title:this.title,tabIndex:this.disabled?-1:0,role:"listitem"},e("ix-icon",{key:"881303994ea8a29f49ac55b4599bee5b4755beec",class:"tab-icon",name:(t=this.icon)!==null&&t!==void 0?t:this.tabIcon}),e("div",{key:"2cb1cc719ca29def024b81b72dfe6861d0e4c77c",class:"notification"},this.notifications?e("div",{class:"pill"},this.notifications):null),e("span",{key:"cbe86fcfb2b26056b7d9c3bc1ec26539ec7bf481",class:"tab-text text-default"},e("slot",{key:"9c71b007cff4024971ae2f64a3e3fbe2c8ac85b5"}))))}get hostElement(){return i(this)}};c.style=r;export{c as ix_menu_item};
2
- //# sourceMappingURL=p-abc9c138.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["menuItemCss","IxMenuItemStyle0","MenuItem","this","isHostedInsideCategory","componentWillLoad","hostElement","closest","componentWillRender","title","innerText","connectedCallback","observer","createMutationObserver","observe","subtree","childList","characterData","disconnectedCallback","disconnect","render","extendedAttributes","home","slot","bottom","h","Host","Object","assign","key","class","disabled","active","tabIndex","role","name","_a","icon","tabIcon","notifications"],"sources":["src/components/menu-item/menu-item.scss?tag=ix-menu-item&encapsulation=shadow","src/components/menu-item/menu-item.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@import 'mixins/hover';\n@import 'mixins/text-truncation';\n\n$menuItemHeight: 3rem;\n$menuItemPadding: 0.875rem;\n\n:host {\n position: relative;\n display: block;\n cursor: pointer;\n\n height: var(--ix-menu-item-height, $menuItemHeight);\n min-height: var(--ix-menu-item-height, $menuItemHeight);\n max-height: var(--ix-menu-item-height, $menuItemHeight);\n\n .tab {\n all: unset;\n box-sizing: border-box;\n display: flex;\n position: relative;\n align-items: center;\n height: var(--ix-menu-item-height, $menuItemHeight);\n width: calc(100%);\n z-index: 500;\n padding-left: $menuItemPadding;\n\n @include ghost-hover-pressed;\n }\n\n .tab-icon {\n color: var(--theme-nav-item-primary-icon--color);\n position: relative;\n pointer-events: none;\n }\n\n .tab:focus-visible {\n outline: 1px solid var(--theme-color-focus-bdr);\n outline-offset: -1px;\n }\n\n .tab:not(:last-child) {\n margin-bottom: $small-space;\n }\n\n .notification {\n display: inline-flex;\n position: absolute;\n top: 0.25rem;\n left: 1.75rem;\n\n .pill {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n height: 0.5rem;\n min-width: 1rem;\n position: relative;\n border-radius: 6.25rem;\n background-color: var(--theme-color-primary);\n border-radius: 6.25rem;\n font-size: 0.75rem;\n font-weight: bold;\n line-height: 1;\n font-family: Siemens Sans, Arial, sans-serif;\n color: var(--theme-color-primary--contrast);\n padding: $tiny-space;\n }\n }\n\n .tab-text {\n @include ellipsis;\n color: var(--theme-nav-item-primary--color);\n margin: 0 1.25rem;\n user-select: none;\n width: 100%;\n }\n}\n\n:host(.active),\n:host(.selected) {\n .tab {\n background-color: var(--theme-nav-item-primary--background--selected);\n }\n\n .tab::before {\n content: '';\n background-color: var(--theme-nav-item-primary--border-color--selected);\n height: var(--ix-menu-item-height, $menuItemHeight);\n width: 0.25rem;\n left: 0;\n position: absolute;\n }\n\n .tab > .glyph {\n color: var(--theme-nav-item-primary-icon--color--selected);\n }\n}\n\n:host(.disabled) {\n color: var(--theme-color-weak-text);\n pointer-events: none;\n cursor: default;\n\n .tab > .tab-icon {\n color: var(--theme-color-weak-text);\n }\n\n .tab-text {\n color: var(--theme-color-weak-text);\n }\n}\n\n:host(.bottom-tab),\n:host([slot='bottom']) {\n $bottom-height: 2.25rem;\n\n min-height: $bottom-height;\n height: $bottom-height;\n max-height: $bottom-height;\n\n .tab {\n height: $bottom-height;\n }\n\n .tab::before {\n height: $bottom-height;\n background-color: transparent;\n }\n\n &.active,\n &.selected {\n &:hover {\n background-color: var(--theme-nav-item-secondary--background--selected);\n }\n\n &:active {\n background-color: var(--theme-nav-item-secondary--background--selected);\n }\n }\n}\n\n:host(.bottom-tab.active),\n:host(.bottom-tab.selected),\n:host(.active[slot='bottom']),\n:host(.selected[slot='bottom']) {\n .tab {\n background-color: var(--theme-nav-item-secondary--background--selected);\n }\n}\n\n:host(.tab-nested) {\n .tab::before {\n display: none;\n }\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 { Component, Element, h, Host, Prop, State } from '@stencil/core';\nimport { createMutationObserver } from '../utils/mutation-observer';\n\n/**\n * @slot menu-item-label Custom label\n */\n@Component({\n tag: 'ix-menu-item',\n styleUrl: 'menu-item.scss',\n shadow: true,\n})\nexport class MenuItem {\n /**\n * Move the Tab to a top position.\n */\n @Prop() home = false;\n\n /**\n * Caution: this is no longer working. Please use slot=\"bottom\" instead.\n *\n * Place tab on bottom\n */\n @Prop() bottom = false;\n\n /**\n * Name of the icon you want to display. Icon names can be resolved from the documentation @link https://ix.siemens.io/docs/icon-library/icons\n *\n * @deprecated since 2.0.0 use `icon` property. Will be removed in 3.0.0\n */\n @Prop() tabIcon = 'document';\n\n /**\n * Name of the icon you want to display. Icon names can be resolved from the documentation @link https://ix.siemens.io/docs/icon-library/icons\n */\n @Prop() icon: string;\n\n /**\n * Show notification count on tab\n */\n @Prop() notifications: number;\n\n /**\n * State to display active\n */\n @Prop() active: boolean;\n\n /**\n * Disable tab and remove event handlers\n */\n @Prop() disabled: boolean;\n\n @Element() hostElement: HTMLIxMenuItemElement;\n\n @State() title: string;\n\n private observer: MutationObserver;\n private isHostedInsideCategory = false;\n\n componentWillLoad() {\n this.isHostedInsideCategory =\n !!this.hostElement.closest('ix-menu-category');\n }\n\n componentWillRender() {\n this.title = this.hostElement.innerText;\n }\n\n connectedCallback() {\n this.observer = createMutationObserver(() => {\n this.title = this.hostElement.innerText;\n });\n\n this.observer.observe(this.hostElement, {\n subtree: true,\n childList: true,\n characterData: true,\n });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n let extendedAttributes = {};\n if (this.home) {\n extendedAttributes = {\n slot: 'home',\n };\n }\n\n if (this.bottom) {\n extendedAttributes = {\n slot: 'bottom',\n };\n }\n return (\n <Host\n class={{\n disabled: this.disabled,\n 'home-tab': this.home,\n 'bottom-tab': this.bottom,\n active: this.active,\n 'tab-nested': this.isHostedInsideCategory,\n }}\n {...extendedAttributes}\n >\n <button\n class=\"tab\"\n title={this.title}\n tabIndex={this.disabled ? -1 : 0}\n role=\"listitem\"\n >\n <ix-icon\n class={'tab-icon'}\n name={this.icon ?? this.tabIcon}\n ></ix-icon>\n <div class=\"notification\">\n {this.notifications ? (\n <div class=\"pill\">{this.notifications}</div>\n ) : null}\n </div>\n <span class=\"tab-text text-default\">\n <slot></slot>\n </span>\n </button>\n </Host>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAc,+lGACpB,MAAAC,EAAeD,E,MCmBFE,EAAQ,M,yBA6CXC,KAAAC,uBAAyB,M,UAzClB,M,YAOE,M,aAOC,W,oHA6BlB,iBAAAC,GACEF,KAAKC,yBACDD,KAAKG,YAAYC,QAAQ,mB,CAG/B,mBAAAC,GACEL,KAAKM,MAAQN,KAAKG,YAAYI,S,CAGhC,iBAAAC,GACER,KAAKS,SAAWC,GAAuB,KACrCV,KAAKM,MAAQN,KAAKG,YAAYI,SAAS,IAGzCP,KAAKS,SAASE,QAAQX,KAAKG,YAAa,CACtCS,QAAS,KACTC,UAAW,KACXC,cAAe,M,CAInB,oBAAAC,GACE,GAAIf,KAAKS,SAAU,CACjBT,KAAKS,SAASO,Y,EAIlB,MAAAC,G,MACE,IAAIC,EAAqB,GACzB,GAAIlB,KAAKmB,KAAM,CACbD,EAAqB,CACnBE,KAAM,O,CAIV,GAAIpB,KAAKqB,OAAQ,CACfH,EAAqB,CACnBE,KAAM,S,CAGV,OACEE,EAACC,EAAIC,OAAAC,OAAA,CAAAC,IAAA,2CACHC,MAAO,CACLC,SAAU5B,KAAK4B,SACf,WAAY5B,KAAKmB,KACjB,aAAcnB,KAAKqB,OACnBQ,OAAQ7B,KAAK6B,OACb,aAAc7B,KAAKC,yBAEjBiB,GAEJI,EAAA,UAAAI,IAAA,2CACEC,MAAM,MACNrB,MAAON,KAAKM,MACZwB,SAAU9B,KAAK4B,UAAY,EAAI,EAC/BG,KAAK,YAELT,EAAA,WAAAI,IAAA,2CACEC,MAAO,WACPK,MAAMC,EAAAjC,KAAKkC,QAAI,MAAAD,SAAA,EAAAA,EAAIjC,KAAKmC,UAE1Bb,EAAA,OAAAI,IAAA,2CAAKC,MAAM,gBACR3B,KAAKoC,cACJd,EAAA,OAAKK,MAAM,QAAQ3B,KAAKoC,eACtB,MAENd,EAAA,QAAAI,IAAA,2CAAMC,MAAM,yBACVL,EAAA,QAAAI,IAAA,+C"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as e,h as s,H as i,g as n}from"./p-a9cf5eb2.js";import{m as o}from"./p-64c3fa3d.js";const r=":host{display:contents}";const c=r;const a=class{constructor(s){t(this,s);this.itemClick=e(this,"itemClick",7);this.wrapperRef=o();this.icon=undefined;this.label=undefined}async getDropdownItemElement(){return this.wrapperRef.waitForCurrent()}render(){return s(i,{key:"ef07b2d6b51ae7356319d47e610517676651f2ae"},s("ix-dropdown-item",{key:"83b4d7597071c2337aae657211c2c093fabe5eb1",ref:this.wrapperRef,suppressChecked:true,icon:this.icon,label:this.label,onItemClick:t=>{t.preventDefault();t.stopPropagation()},onClick:t=>this.itemClick.emit(t)}))}get hostElement(){return n(this)}};a.style=c;export{a as ix_split_button_item};
2
- //# sourceMappingURL=p-b4ca36ac.entry.js.map
@@ -1,2 +0,0 @@
1
- import{r as t,c as s,h as i,H as e,g as r}from"./p-a9cf5eb2.js";import{f as n,i as o,s as h,o as a,a as d,c}from"./p-00df4a8c.js";function l(t){return t.getDropdownItemElement!==undefined&&typeof t.getDropdownItemElement==="function"}class u{constructor(){this.dropdowns=new Map;this.submenuIds={};this.isWindowListenerActive=false}connected(t){if(!this.isWindowListenerActive){this.addOverlayListeners()}this.dropdowns.set(t.getId(),t);if(t.discoverAllSubmenus){this.discoverSubmenus()}}disconnected(t){this.dropdowns.delete(t.getId())}discoverSubmenus(){this.dropdowns.forEach((t=>{t.discoverSubmenu()}))}present(t){if(!t.isPresent()&&t.willPresent()){this.submenuIds[t.getId()]=t.getAssignedSubmenuIds();t.present()}}dismissChildren(t){const s=this.submenuIds[t]||[];for(const t of s){this.dismiss(this.dropdowns.get(t))}}dismiss(t){if(t.isPresent()&&t.willDismiss()){this.dismissChildren(t.getId());t.dismiss();delete this.submenuIds[t.getId()]}}dismissAll(t){this.dropdowns.forEach((s=>{if(!(t===null||t===void 0?void 0:t.includes(s.getId()))&&(s.closeBehavior==="inside"||s.closeBehavior===false)){return}this.dismiss(s)}))}dismissOthers(t){let s=this.buildComposedPath(t,new Set);this.dropdowns.forEach((t=>{if(t.isPresent()&&t.closeBehavior!=="inside"&&t.closeBehavior!==false&&!s.has(t.getId())){this.dismiss(t)}}))}pathIncludesTrigger(t){return!!t.find((t=>{var s;return!!((s=t.hasAttribute)===null||s===void 0?void 0:s.call(t,"data-ix-dropdown-trigger"))}))}pathIncludesDropdown(t){return!!t.find((t=>t.tagName==="IX-DROPDOWN"))}buildComposedPath(t,s){if(this.submenuIds[t]){s.add(t)}for(const i of Object.keys(this.submenuIds)){if(this.submenuIds[i].includes(t)){this.buildComposedPath(i,s).forEach((t=>s.add(t)))}}return s}addOverlayListeners(){this.isWindowListenerActive=true;window.addEventListener("click",(t=>{const s=this.pathIncludesTrigger(t.composedPath());const i=this.pathIncludesDropdown(t.composedPath());if(!s&&!i){this.dismissAll()}}));window.addEventListener("keydown",(t=>{if(t.key==="Escape"){this.dismissAll([...this.dropdowns.keys()])}}))}}const f=(t,s,i)=>{t.addEventListener(s,i);return()=>{t.removeEventListener(s,i)}};const b=new u;const m=":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}: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}";const w=m;let p=0;const g=class{constructor(i){t(this,i);this.showChanged=s(this,"showChanged",7);this.autoUpdateCleanup=null;this.localUId=`dropdown-${p++}`;this.assignedSubmenu=[];this.suppressAutomaticPlacement=false;this.show=false;this.trigger=undefined;this.anchor=undefined;this.closeBehavior="both";this.placement="bottom-start";this.positioningStrategy="fixed";this.header=undefined;this.offset=undefined;this.overwriteDropdownStyle=undefined;this.discoverAllSubmenus=false}connectedCallback(){b.connected(this)}cacheSubmenuId(t){t.stopImmediatePropagation();t.preventDefault();const{detail:s}=t;if(this.assignedSubmenu.indexOf(s)===-1){this.assignedSubmenu.push(s)}}disconnectedCallback(){var t;(t=this.disposeListener)===null||t===void 0?void 0:t.call(this);b.disconnected(this);if(this.autoUpdateCleanup){this.autoUpdateCleanup()}}getAssignedSubmenuIds(){return this.assignedSubmenu}isPresent(){return this.show}present(){this.show=true}dismiss(){this.show=false}getId(){return this.localUId}willDismiss(){const{defaultPrevented:t}=this.showChanged.emit(false);return!t}willPresent(){const{defaultPrevented:t}=this.showChanged.emit(true);return!t}get dropdownItems(){return Array.from(this.hostElement.querySelectorAll("ix-dropdown-item"))}get slotElement(){return this.hostElement.shadowRoot.querySelector("slot")}addEventListenersFor(){var t;(t=this.disposeListener)===null||t===void 0?void 0:t.call(this);const s=()=>{if(!this.isPresent()){b.present(this)}else{b.dismiss(this)}b.dismissOthers(this.getId())};this.disposeListener=f(this.triggerElement,"click",(t=>{if(!t.defaultPrevented)s()}));this.triggerElement.setAttribute("data-ix-dropdown-trigger",this.localUId)}async discoverSubmenu(){var t;(t=this.triggerElement)===null||t===void 0?void 0:t.dispatchEvent(new CustomEvent("ix-assign-sub-menu",{bubbles:true,composed:false,cancelable:true,detail:this.localUId}))}async registerListener(t){this.triggerElement=await this.resolveElement(t);if(this.triggerElement){this.addEventListenersFor();this.discoverSubmenu()}}async resolveElement(t){const s=await this.findElement(t);return this.checkForSubmenuAnchor(s)}async checkForSubmenuAnchor(t){if(l(t)){const s=await t.getDropdownItemElement();s.isSubMenu=true;this.hostElement.style.zIndex=`var(--theme-z-index-dropdown)`;return s}if(t.tagName==="IX-DROPDOWN-ITEM"){t.isSubMenu=true;this.hostElement.style.zIndex=`var(--theme-z-index-dropdown)`}return t}findElement(t){if(t instanceof Promise){return t}if(typeof t==="object"){return Promise.resolve(t)}const s=`#${t}`;return new Promise((t=>{if(document.querySelector(s)){return t(document.querySelector(s))}const i=new MutationObserver((()=>{if(document.querySelector(s)){t(document.querySelector(s));i.disconnect()}}));i.observe(document.body,{childList:true,subtree:true})}))}async changedShow(t){if(t){this.anchorElement=await(this.anchor?this.resolveElement(this.anchor):this.resolveElement(this.trigger));if(this.anchorElement){this.applyDropdownPosition()}}}changedTrigger(t){this.registerListener(t)}isAnchorSubmenu(){var t;if(!l(this.anchorElement)){return!!((t=this.anchorElement)===null||t===void 0?void 0:t.closest("ix-dropdown-item"))}return true}async applyDropdownPosition(){if(!this.anchorElement){return}if(!this.dropdownRef){return}const t=this.isAnchorSubmenu();let s={strategy:this.positioningStrategy,middleware:[]};if(!this.suppressAutomaticPlacement){s.middleware.push(n({fallbackStrategy:"initialPlacement"}))}s.placement=t?"right-start":this.placement;s.middleware=[...s.middleware,o(),h()];if(this.offset){s.middleware.push(a(this.offset))}if(this.autoUpdateCleanup){this.autoUpdateCleanup();this.autoUpdateCleanup=null}this.autoUpdateCleanup=d(this.anchorElement,this.dropdownRef,(async()=>{const t=await c(this.anchorElement,this.dropdownRef,s);Object.assign(this.dropdownRef.style,{top:"0",left:"0",transform:`translate(${Math.round(t.x)}px,${Math.round(t.y)}px)`});if(this.overwriteDropdownStyle){const t=await this.overwriteDropdownStyle({dropdownRef:this.dropdownRef,triggerRef:this.triggerElement});Object.assign(this.dropdownRef.style,t)}}),{ancestorResize:true,ancestorScroll:true,elementResize:true})}async componentDidLoad(){this.changedTrigger(this.trigger)}async componentDidRender(){await this.applyDropdownPosition();this.anchorElement=await(this.anchor?this.resolveElement(this.anchor):this.resolveElement(this.trigger))}isTriggerElement(t){const s=!!t.hasAttribute("data-ix-dropdown-trigger");return s}onDropdownClick(t){if(b.pathIncludesTrigger(t.composedPath())){t.preventDefault();if(this.isTriggerElement(t.target))return}if(this.closeBehavior==="inside"||this.closeBehavior==="both"){b.dismissAll([this.getId()])}b.dismissOthers(this.getId())}async updatePosition(){this.applyDropdownPosition()}render(){return i(e,{key:"6747db1bc7c303781400a3ede0635fc84a32d61b","data-ix-dropdown":this.localUId,ref:t=>this.dropdownRef=t,class:{"dropdown-menu":true,show:this.show,overflow:true},style:{margin:"0",minWidth:"0px",position:this.positioningStrategy},role:"list",onClick:t=>this.onDropdownClick(t)},i("div",{key:"3407be8208d5fb220b80744afb9a5aa938b4b658",style:{display:"contents"}},this.header&&i("div",{class:"dropdown-header"},this.header),i("slot",{key:"48df3c460330d7ef698b1624d93ad548e95902d0"})))}get hostElement(){return r(this)}static get watchers(){return{show:["changedShow"],trigger:["changedTrigger"]}}};g.style=w;export{g as ix_dropdown};
2
- //# sourceMappingURL=p-c5965787.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["hasDropdownItemWrapperImplemented","item","getDropdownItemElement","undefined","DropdownController","constructor","this","dropdowns","Map","submenuIds","isWindowListenerActive","connected","dropdown","addOverlayListeners","set","getId","discoverAllSubmenus","discoverSubmenus","disconnected","delete","forEach","discoverSubmenu","present","isPresent","willPresent","getAssignedSubmenuIds","dismissChildren","uid","childIds","id","dismiss","get","willDismiss","dismissAll","includeUids","includes","closeBehavior","dismissOthers","path","buildComposedPath","Set","has","pathIncludesTrigger","eventTargets","find","element","_a","hasAttribute","call","pathIncludesDropdown","tagName","add","ruleKey","Object","keys","key","window","addEventListener","event","hasTrigger","composedPath","hasDropdown","addDisposableEventListener","eventType","callback","removeEventListener","dropdownController","dropdownCss","IxDropdownStyle0","sequenceId","Dropdown","autoUpdateCleanup","localUId","assignedSubmenu","connectedCallback","cacheSubmenuId","stopImmediatePropagation","preventDefault","detail","indexOf","push","disconnectedCallback","disposeListener","show","defaultPrevented","showChanged","emit","dropdownItems","Array","from","hostElement","querySelectorAll","slotElement","shadowRoot","querySelector","addEventListenersFor","toggleController","triggerElement","setAttribute","dispatchEvent","CustomEvent","bubbles","composed","cancelable","registerListener","resolveElement","el","findElement","checkForSubmenuAnchor","dropdownItem","isSubMenu","style","zIndex","Promise","resolve","selector","document","observer","MutationObserver","disconnect","observe","body","childList","subtree","changedShow","newShow","anchorElement","anchor","trigger","applyDropdownPosition","changedTrigger","newTriggerValue","isAnchorSubmenu","closest","dropdownRef","isSubmenu","positionConfig","strategy","positioningStrategy","middleware","suppressAutomaticPlacement","flip","fallbackStrategy","placement","inline","shift","offset","autoUpdate","async","computeResponse","computePosition","assign","top","left","transform","Math","round","x","y","overwriteDropdownStyle","overwriteStyle","triggerRef","ancestorResize","ancestorScroll","elementResize","componentDidLoad","componentDidRender","isTriggerElement","onDropdownClick","target","updatePosition","render","h","Host","ref","class","overflow","margin","minWidth","position","role","onClick","display","header"],"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 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(includeUids?: string[]) {\n this.dropdowns.forEach((dropdown) => {\n if (\n !includeUids?.includes(dropdown.getId()) &&\n (dropdown.closeBehavior === 'inside' ||\n dropdown.closeBehavior === false)\n ) {\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\n this.dropdowns.forEach((dropdown) => {\n if (\n dropdown.isPresent() &&\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 return !!eventTargets.find(\n (element: HTMLElement) =>\n !!element.hasAttribute?.('data-ix-dropdown-trigger')\n );\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 {\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 /**\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 connectedCallback(): void {\n dropdownController.connected(this);\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 this.disposeListener?.();\n dropdownController.disconnected(this);\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 disposeListener?: Function;\n\n private addEventListenersFor() {\n this.disposeListener?.();\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.disposeListener = addDisposableEventListener(\n this.triggerElement,\n 'click',\n (event: PointerEvent) => {\n if (!event.defaultPrevented) toggleController();\n }\n );\n this.triggerElement.setAttribute('data-ix-dropdown-trigger', this.localUId);\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: false,\n cancelable: true,\n detail: this.localUId,\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 (hasDropdownItemWrapperImplemented(element)) {\n const dropdownItem = await element.getDropdownItemElement();\n dropdownItem.isSubMenu = true;\n this.hostElement.style.zIndex = `var(--theme-z-index-dropdown)`;\n\n return dropdownItem;\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 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 // await this.checkForSubmenuAnchor();\n }\n }\n }\n\n @Watch('trigger')\n changedTrigger(newTriggerValue: string | HTMLElement | Promise<HTMLElement>) {\n this.registerListener(newTriggerValue);\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.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 if (this.autoUpdateCleanup) {\n this.autoUpdateCleanup();\n this.autoUpdateCleanup = null;\n }\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\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 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 if (dropdownController.pathIncludesTrigger(event.composedPath())) {\n event.preventDefault();\n\n if (this.isTriggerElement(event.target as HTMLElement)) return;\n }\n\n if (this.closeBehavior === 'inside' || this.closeBehavior === 'both') {\n dropdownController.dismissAll([this.getId()]);\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\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"2IA8BgBA,EACdC,GAEA,OACGA,EAA6BC,yBAA2BC,kBACjDF,EAA6BC,yBAA2B,UAEpE,CAQA,MAAME,EAAN,WAAAC,GACUC,KAAAC,UAA4C,IAAIC,IAIhDF,KAAAG,WAAyB,GAEzBH,KAAAI,uBAAyB,K,CAEjC,SAAAC,CAAUC,GACR,IAAKN,KAAKI,uBAAwB,CAChCJ,KAAKO,qB,CAEPP,KAAKC,UAAUO,IAAIF,EAASG,QAASH,GAErC,GAAIA,EAASI,oBAAqB,CAChCV,KAAKW,kB,EAIT,YAAAC,CAAaN,GACXN,KAAKC,UAAUY,OAAOP,EAASG,Q,CAGjC,gBAAAE,GACEX,KAAKC,UAAUa,SAASR,IACtBA,EAASS,iBAAiB,G,CAI9B,OAAAC,CAAQV,GACN,IAAKA,EAASW,aAAeX,EAASY,cAAe,CACnDlB,KAAKG,WAAWG,EAASG,SAAWH,EAASa,wBAC7Cb,EAASU,S,EAIb,eAAAI,CAAgBC,GACd,MAAMC,EAAWtB,KAAKG,WAAWkB,IAAQ,GACzC,IAAK,MAAME,KAAMD,EAAU,CACzBtB,KAAKwB,QAAQxB,KAAKC,UAAUwB,IAAIF,G,EAIpC,OAAAC,CAAQlB,GACN,GAAIA,EAASW,aAAeX,EAASoB,cAAe,CAClD1B,KAAKoB,gBAAgBd,EAASG,SAC9BH,EAASkB,iBACFxB,KAAKG,WAAWG,EAASG,Q,EAIpC,UAAAkB,CAAWC,GACT5B,KAAKC,UAAUa,SAASR,IACtB,KACGsB,IAAW,MAAXA,SAAW,SAAXA,EAAaC,SAASvB,EAASG,YAC/BH,EAASwB,gBAAkB,UAC1BxB,EAASwB,gBAAkB,OAC7B,CACA,M,CAGF9B,KAAKwB,QAAQlB,EAAS,G,CAI1B,aAAAyB,CAAcV,GACZ,IAAIW,EAAOhC,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,2CAAKwD,MAAO,CAAEuE,QAAS,aACpBhL,KAAKiL,QAAUX,EAAA,OAAKG,MAAM,mBAAmBzK,KAAKiL,QAEnDX,EAAA,QAAArH,IAAA,8C"}
@@ -1,2 +0,0 @@
1
- import{r,h as e,H as t}from"./p-a9cf5eb2.js";const a=".sc-ix-playground-internal-h{display:block;position:relative;width:100vw;height:100vh;padding:0rem 0rem 0rem 0rem}";const n=a;const s=class{constructor(e){r(this,e)}render(){return e(t,{key:"64dc9d49b33337f3f1fbfef272dbe26bc08a17a8"})}};s.style=n;export{s as ix_playground_internal};
2
- //# sourceMappingURL=p-c65dca4b.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["waitForElement","selector","doc","timeout","Promise","resolve","reject","startTime","Date","now","checkIfElementExist","dialog","querySelector","setTimeout","modalCss","IxModalStyle0","Modal","this","ariaAttributes","onKey","e","key","preventDefault","hostElement","shadowRoot","slideInModal","duration","animation","Animation","mediumTime","transformY","centered","anime","targets","opacity","translateY","translateX","easing","slideOutModal","completeCallback","complete","onModalClick","event","rect","getBoundingClientRect","isClickOutside","top","clientY","height","left","clientX","width","closeOnBackdropClick","dismissModal","showModal","modalVisible","console","error","reason","allowDismiss","beforeDismiss","undefined","close","JSON","stringify","type","dialogDismiss","emit","closeModal","dialogClose","componentDidLoad","componentWillLoad","a11yHostAttributes","render","h","Host","class","visible","backdrop","a11yBoolean","modal","size","onClose","onClick","onCancel","__decorate","OnListener","self","closeOnEscape","keyboard"],"sources":["src/components/utils/waitForElement.ts","src/components/modal/modal.scss?tag=ix-modal&encapsulation=shadow","src/components/modal/modal.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\nexport function waitForElement<R extends HTMLElement>(\n selector: string,\n doc: any,\n timeout = 3000\n): Promise<R> {\n return new Promise<R>((resolve, reject) => {\n const startTime = Date.now();\n\n const checkIfElementExist = () => {\n const dialog = doc.querySelector(selector) satisfies R;\n\n if (dialog) {\n resolve(dialog);\n } else {\n if (Date.now() - startTime < timeout) {\n setTimeout(checkIfElementExist);\n } else {\n reject();\n }\n }\n };\n\n checkIfElementExist();\n });\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\n::backdrop {\n --ix-dialog-backdrop: var(--theme-color-lightbox, #0000008c);\n}\n\n:focus-visible {\n outline: none !important;\n}\n\n:host {\n display: none;\n\n dialog {\n margin: 0;\n left: 50%;\n }\n\n dialog::backdrop {\n backdrop-filter: blur(2.7182817459106445px);\n }\n\n .modal {\n display: flex;\n flex-direction: column;\n position: relative;\n border: none;\n border-radius: var(--theme-default-border-radius);\n background: var(--theme-modal--background);\n box-shadow: var(--theme-shadow-4);\n color: var(--theme-color-std-text);\n overflow: visible;\n max-height: 80vh;\n pointer-events: all;\n }\n\n .modal-size-360 {\n width: 22.5rem;\n }\n\n .modal-size-480 {\n width: 30rem;\n }\n\n .modal-size-600 {\n width: 37.5rem;\n }\n\n .modal-size-720 {\n width: 45rem;\n }\n\n .modal-size-840 {\n width: 52.5rem;\n }\n\n .modal-size-full-width {\n width: 95%;\n }\n\n .modal-size-full-screen {\n left: 0px !important;\n top: 0px !important;\n transform: none !important;\n\n width: calc(100% - 28px);\n min-width: calc(100% - 28px);\n max-width: calc(100% - 28px);\n\n height: calc(100% - 28px);\n min-height: calc(100% - 28px);\n max-height: calc(100% - 28px);\n }\n\n .dialog-backdrop {\n display: block;\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0px;\n left: 0px;\n\n pointer-events: none;\n }\n\n ::slotted(ix-modal-footer) {\n margin-top: auto;\n }\n}\n\n:host(.visible) {\n display: block;\n}\n\n:host(.align-center) {\n dialog {\n margin: 0;\n left: 50%;\n top: 50%;\n }\n}\n\n:host(.no-backdrop) {\n dialog::backdrop {\n background-color: transparent !important;\n backdrop-filter: none !important;\n }\n}\n\n:host(.with-icon) {\n ::slotted(ix-modal-footer),\n ::slotted(ix-modal-content) {\n margin-left: 2.5rem;\n }\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 */\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\nimport anime from 'animejs';\nimport { A11yAttributes, a11yBoolean, a11yHostAttributes } from '../utils/a11y';\nimport Animation from '../utils/animation';\nimport { OnListener } from '../utils/listener';\nimport { waitForElement } from '../utils/waitForElement';\n\nexport type IxModalFixedSize = '360' | '480' | '600' | '720' | '840';\nexport type IxModalDynamicSize = 'full-width' | 'full-screen';\nexport type IxModalSize = IxModalFixedSize | IxModalDynamicSize;\n\n@Component({\n tag: 'ix-modal',\n styleUrl: 'modal.scss',\n shadow: true,\n})\nexport class Modal {\n private ariaAttributes: A11yAttributes = {};\n\n @Element() hostElement!: HTMLIxModalElement;\n\n /**\n * Modal size\n *\n * @since 2.0.0\n */\n @Prop() size: IxModalSize = '360';\n\n /**\n * Should the modal be animated\n */\n @Prop() animation = true;\n\n /**\n * Show a backdrop behind the modal dialog\n */\n @Prop() backdrop = true;\n\n /**\n * Dismiss modal on backdrop click\n *\n * @since 2.0.0\n */\n @Prop() closeOnBackdropClick = false;\n\n /**\n * Is called before the modal is dismissed.\n *\n * - Return `true` to proceed in dismissing the modal\n * - Return `false` to abort in dismissing the modal\n */\n @Prop() beforeDismiss: (reason?: any) => boolean | Promise<boolean>;\n\n /**\n * Centered modal\n */\n @Prop() centered = false;\n\n /**\n * Use ESC to dismiss the modal\n * @deprecated - Use closeOnEscape instead\n */\n @Prop() keyboard = true;\n\n /**\n * If set to true the modal can be closed by pressing the Escape key\n */\n @Prop() closeOnEscape = true;\n\n /**\n * Dialog close\n */\n @Event() dialogClose: EventEmitter;\n\n /**\n * Dialog cancel\n */\n @Event() dialogDismiss: EventEmitter;\n\n @State() modalVisible = false;\n\n @OnListener<Modal>('keydown', (self) => !self.closeOnEscape || !self.keyboard)\n onKey(e: KeyboardEvent) {\n if (e.key === 'Escape') {\n e.preventDefault();\n }\n }\n\n get dialog() {\n return this.hostElement.shadowRoot.querySelector('dialog');\n }\n\n private slideInModal() {\n const duration = this.animation ? Animation.mediumTime : 0;\n\n let transformY = this.centered ? '-50%' : 40;\n\n anime({\n targets: this.dialog,\n duration,\n opacity: [0, 1],\n translateY: [0, transformY],\n translateX: ['-50%', '-50%'],\n easing: 'easeOutSine',\n });\n }\n\n private slideOutModal(completeCallback: Function) {\n const duration = this.animation ? Animation.mediumTime : 0;\n\n let transformY = this.centered ? '-50%' : 40;\n\n anime({\n targets: this.dialog,\n duration,\n opacity: [1, 0],\n translateY: [transformY, 0],\n translateX: ['-50%', '-50%'],\n easing: 'easeInSine',\n complete: () => {\n if (completeCallback) {\n completeCallback();\n }\n },\n });\n }\n\n private onModalClick(event: MouseEvent) {\n const rect = this.dialog.getBoundingClientRect();\n const isClickOutside =\n rect.top <= event.clientY &&\n event.clientY <= rect.top + rect.height &&\n rect.left <= event.clientX &&\n event.clientX <= rect.left + rect.width;\n if (!isClickOutside && this.closeOnBackdropClick) {\n this.dismissModal();\n }\n }\n\n /**\n * Show the dialog\n */\n @Method()\n async showModal() {\n try {\n const dialog = await waitForElement<HTMLDialogElement>(\n 'dialog',\n this.hostElement.shadowRoot\n );\n this.modalVisible = true;\n dialog.showModal();\n } catch (e) {\n console.error('HTMLDialogElement not existing');\n }\n }\n\n /**\n * Dismiss the dialog\n */\n @Method()\n async dismissModal<T = any>(reason?: T) {\n let allowDismiss = true;\n\n if (this.beforeDismiss !== undefined) {\n allowDismiss = await this.beforeDismiss(reason);\n }\n if (!allowDismiss) {\n return;\n }\n\n this.slideOutModal(() => {\n this.modalVisible = false;\n this.dialog.close(\n JSON.stringify(\n {\n type: 'dismiss',\n reason,\n },\n null,\n 2\n )\n );\n\n this.dialogDismiss.emit(reason);\n });\n }\n\n /**\n * Close the dialog\n */\n @Method()\n async closeModal<T = any>(reason: T) {\n this.slideOutModal(() => {\n this.dialog.close(\n JSON.stringify(\n {\n type: 'close',\n reason,\n },\n null,\n 2\n )\n );\n\n this.dialogClose.emit(reason);\n });\n }\n\n componentDidLoad() {\n this.slideInModal();\n }\n\n componentWillLoad() {\n this.ariaAttributes = a11yHostAttributes(this.hostElement);\n }\n\n render() {\n return (\n <Host\n class={{\n visible: this.modalVisible,\n 'no-backdrop': this.backdrop === false,\n 'align-center': this.centered,\n }}\n >\n <div class=\"dialog-backdrop\">\n <dialog\n aria-modal={a11yBoolean(true)}\n aria-describedby={this.ariaAttributes['aria-describedby']}\n aria-labelledby={this.ariaAttributes['aria-labelledby']}\n class={{\n modal: true,\n [`modal-size-${this.size}`]: true,\n }}\n onClose={() => this.dismissModal()}\n onClick={(event) => this.onModalClick(event)}\n onCancel={(e) => {\n e.preventDefault();\n this.dismissModal();\n }}\n >\n <slot></slot>\n </dialog>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"2NASgBA,EACdC,EACAC,EACAC,EAAU,KAEV,OAAO,IAAIC,SAAW,CAACC,EAASC,KAC9B,MAAMC,EAAYC,KAAKC,MAEvB,MAAMC,EAAsB,KAC1B,MAAMC,EAAST,EAAIU,cAAcX,GAEjC,GAAIU,EAAQ,CACVN,EAAQM,E,KACH,CACL,GAAIH,KAAKC,MAAQF,EAAYJ,EAAS,CACpCU,WAAWH,E,KACN,CACLJ,G,IAKNI,GAAqB,GAEzB,CCjCA,MAAMI,EAAW,+/CACjB,MAAAC,EAAeD,E,iXCiCFE,EAAK,M,+GACRC,KAAAC,eAAiC,G,UASb,M,eAKR,K,cAKD,K,0BAOY,M,2CAaZ,M,cAMA,K,mBAKK,K,kBAYA,K,CAGxB,KAAAC,CAAMC,GACJ,GAAIA,EAAEC,MAAQ,SA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