@siemens/ix 2.4.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (830) hide show
  1. package/components/a11y.js +1 -1
  2. package/components/a11y.js.map +1 -1
  3. package/components/application-header.js +37 -7
  4. package/components/application-header.js.map +1 -1
  5. package/components/card-accordion.js +1 -1
  6. package/components/card-accordion.js.map +1 -1
  7. package/components/card-content.js +1 -1
  8. package/components/card-title.js +1 -1
  9. package/components/card.js +3 -3
  10. package/components/card.js.map +1 -1
  11. package/components/col.js.map +1 -1
  12. package/components/context.js +1 -1
  13. package/components/context.js.map +1 -1
  14. package/components/divider.js +1 -1
  15. package/components/dropdown-controller.js +140 -0
  16. package/components/dropdown-controller.js.map +1 -0
  17. package/components/dropdown-item.js +4 -4
  18. package/components/dropdown-item.js.map +1 -1
  19. package/components/dropdown.js +5 -141
  20. package/components/dropdown.js.map +1 -1
  21. package/components/filter-chip.js +1 -1
  22. package/components/floating-ui.dom.esm.js +533 -60
  23. package/components/floating-ui.dom.esm.js.map +1 -1
  24. package/components/group-context-menu.js +1 -1
  25. package/components/group-context-menu.js.map +1 -1
  26. package/components/group-item.js +2 -2
  27. package/components/index.js +1 -0
  28. package/components/index.js.map +1 -1
  29. package/components/ix-action-card.js +1 -1
  30. package/components/ix-action-card.js.map +1 -1
  31. package/components/ix-application-sidebar.js +1 -1
  32. package/components/ix-application-switch-modal.js +1 -1
  33. package/components/ix-application.js +2 -2
  34. package/components/ix-application.js.map +1 -1
  35. package/components/ix-basic-navigation.js +2 -2
  36. package/components/ix-basic-navigation.js.map +1 -1
  37. package/components/ix-blind.js.map +1 -1
  38. package/components/ix-breadcrumb.js +2 -2
  39. package/components/ix-card-list.js +6 -6
  40. package/components/ix-card-list.js.map +1 -1
  41. package/components/ix-category-filter.js +8 -4
  42. package/components/ix-category-filter.js.map +1 -1
  43. package/components/ix-chip.js +4 -4
  44. package/components/ix-chip.js.map +1 -1
  45. package/components/ix-content.js +3 -3
  46. package/components/ix-css-grid-item.js +1 -1
  47. package/components/ix-drawer.js +2 -2
  48. package/components/ix-dropdown-header.js +1 -1
  49. package/components/ix-dropdown-quick-actions.js +1 -1
  50. package/components/ix-event-list-item.js +4 -4
  51. package/components/ix-event-list.js +2 -2
  52. package/components/ix-expanding-search.js +4 -4
  53. package/components/ix-flip-tile-content.js +1 -1
  54. package/components/ix-flip-tile.js +4 -4
  55. package/components/ix-form-field.js +1 -1
  56. package/components/ix-group.js +58 -38
  57. package/components/ix-group.js.map +1 -1
  58. package/components/ix-icon-toggle-button.js +1 -1
  59. package/components/ix-input-group.js +1 -1
  60. package/components/ix-key-value-list.js +1 -1
  61. package/components/ix-kpi.js +3 -3
  62. package/components/ix-kpi.js.map +1 -1
  63. package/components/ix-link-button.js +3 -3
  64. package/components/ix-map-navigation.js +3 -3
  65. package/components/ix-map-navigation.js.map +1 -1
  66. package/components/ix-menu-about-item.js +1 -1
  67. package/components/ix-menu-about-news.js +4 -4
  68. package/components/ix-menu-avatar.js +2 -2
  69. package/components/ix-menu-category.js +5 -5
  70. package/components/ix-menu-settings-item.js +1 -1
  71. package/components/ix-menu.js +12 -12
  72. package/components/ix-menu.js.map +1 -1
  73. package/components/ix-message-bar.js +1 -1
  74. package/components/ix-modal-example.js +1 -1
  75. package/components/ix-modal-footer.js +2 -2
  76. package/components/ix-modal-footer.js.map +1 -1
  77. package/components/ix-modal-loading.js +1 -1
  78. package/components/ix-modal.js +1 -1
  79. package/components/ix-modal.js.map +1 -1
  80. package/components/ix-pagination.js +2 -2
  81. package/components/ix-pane-layout.js +1 -1
  82. package/components/ix-pane.js.map +1 -1
  83. package/components/ix-pill.js +4 -4
  84. package/components/ix-pill.js.map +1 -1
  85. package/components/ix-playground-internal.js +1 -1
  86. package/components/ix-playground-internal.js.map +1 -1
  87. package/components/ix-push-card.js +1 -1
  88. package/components/ix-push-card.js.map +1 -1
  89. package/components/ix-split-button-item.js +1 -1
  90. package/components/ix-tile.js +4 -4
  91. package/components/ix-tile.js.map +1 -1
  92. package/components/ix-toast-container.js.map +1 -1
  93. package/components/ix-toggle-button.js +2 -2
  94. package/components/ix-toggle.js +2 -2
  95. package/components/ix-tree.js +21 -7
  96. package/components/ix-tree.js.map +1 -1
  97. package/components/ix-upload.js +3 -3
  98. package/components/ix-upload.js.map +1 -1
  99. package/components/ix-validation-tooltip.js +2 -2
  100. package/components/ix-workflow-step.js +3 -3
  101. package/components/ix-workflow-step.js.map +1 -1
  102. package/components/ix-workflow-steps.js +1 -1
  103. package/components/ix-workflow-steps.js.map +1 -1
  104. package/components/layout-grid.js +2 -2
  105. package/components/layout-grid.js.map +1 -1
  106. package/components/listener.js +1 -1
  107. package/components/listener.js.map +1 -1
  108. package/components/logical-filter-operator.js +1 -1
  109. package/components/logical-filter-operator.js.map +1 -1
  110. package/components/map-navigation-overlay.js +2 -2
  111. package/components/menu-avatar-item.js +1 -1
  112. package/components/menu-expand-icon.js +1 -1
  113. package/components/menu-expand-icon.js.map +1 -1
  114. package/components/menu-item.js +14 -14
  115. package/components/menu-item.js.map +1 -1
  116. package/components/modal-content.js +1 -1
  117. package/components/modal-content.js.map +1 -1
  118. package/components/modal-header.js +1 -1
  119. package/components/modal-header.js.map +1 -1
  120. package/components/row.js +1 -1
  121. package/components/row.js.map +1 -1
  122. package/components/select-item.js +1 -1
  123. package/components/select.js +27 -30
  124. package/components/select.js.map +1 -1
  125. package/components/shadow-dom.js +1 -1
  126. package/components/shadow-dom.js.map +1 -1
  127. package/components/spinner.js +1 -1
  128. package/components/tabs.js +2 -2
  129. package/components/tabs.js.map +1 -1
  130. package/components/toast.js +2 -2
  131. package/components/toast.js.map +1 -1
  132. package/components/tooltip.js +22 -20
  133. package/components/tooltip.js.map +1 -1
  134. package/components/tree-item.js +8 -8
  135. package/components/tree-item.js.map +1 -1
  136. package/dist/cjs/{a11y-d3ce56d1.js → a11y-eba397e8.js} +2 -2
  137. package/dist/cjs/{a11y-d3ce56d1.js.map → a11y-eba397e8.js.map} +1 -1
  138. package/dist/cjs/{context-98f4a0b3.js → context-938f7470.js} +2 -2
  139. package/dist/cjs/{context-98f4a0b3.js.map → context-938f7470.js.map} +1 -1
  140. package/dist/cjs/dropdown-controller-5ef3d018.js +144 -0
  141. package/dist/cjs/dropdown-controller-5ef3d018.js.map +1 -0
  142. package/dist/cjs/{floating-ui.dom.esm-94b4d17c.js → floating-ui.dom.esm-9dde6cd6.js} +534 -60
  143. package/dist/cjs/floating-ui.dom.esm-9dde6cd6.js.map +1 -0
  144. package/dist/cjs/index.cjs.js +3 -2
  145. package/dist/cjs/index.cjs.js.map +1 -1
  146. package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
  147. package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -1
  148. package/dist/cjs/ix-application-header.cjs.entry.js +34 -8
  149. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  150. package/dist/cjs/ix-application-sidebar.cjs.entry.js +1 -1
  151. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +1 -1
  152. package/dist/cjs/ix-application.cjs.entry.js +4 -4
  153. package/dist/cjs/ix-application.cjs.entry.js.map +1 -1
  154. package/dist/cjs/ix-avatar_2.cjs.entry.js +2 -2
  155. package/dist/cjs/ix-basic-navigation.cjs.entry.js +3 -3
  156. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  157. package/dist/cjs/ix-blind.cjs.entry.js +1 -1
  158. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  159. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +1 -1
  160. package/dist/cjs/ix-breadcrumb.cjs.entry.js +3 -3
  161. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +2 -2
  162. package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
  163. package/dist/cjs/ix-card-list.cjs.entry.js +6 -6
  164. package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -1
  165. package/dist/cjs/ix-card_2.cjs.entry.js +4 -4
  166. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
  167. package/dist/cjs/ix-category-filter.cjs.entry.js +9 -5
  168. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  169. package/dist/cjs/ix-chip.cjs.entry.js +4 -4
  170. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  171. package/dist/cjs/ix-col_4.cjs.entry.js +4 -4
  172. package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
  173. package/dist/cjs/ix-content.cjs.entry.js +4 -4
  174. package/dist/cjs/ix-css-grid-item.cjs.entry.js +1 -1
  175. package/dist/cjs/ix-divider.cjs.entry.js +1 -1
  176. package/dist/cjs/ix-drawer.cjs.entry.js +2 -2
  177. package/dist/cjs/ix-dropdown-header.cjs.entry.js +1 -1
  178. package/dist/cjs/ix-dropdown-item.cjs.entry.js +4 -4
  179. package/dist/cjs/ix-dropdown-item.cjs.entry.js.map +1 -1
  180. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
  181. package/dist/cjs/ix-dropdown.cjs.entry.js +18 -154
  182. package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
  183. package/dist/cjs/ix-event-list-item.cjs.entry.js +5 -5
  184. package/dist/cjs/ix-event-list.cjs.entry.js +2 -2
  185. package/dist/cjs/ix-expanding-search.cjs.entry.js +4 -4
  186. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +2 -2
  187. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +1 -1
  188. package/dist/cjs/ix-flip-tile.cjs.entry.js +4 -4
  189. package/dist/cjs/ix-form-field.cjs.entry.js +1 -1
  190. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +4 -4
  191. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  192. package/dist/cjs/ix-group.cjs.entry.js +57 -39
  193. package/dist/cjs/ix-group.cjs.entry.js.map +1 -1
  194. package/dist/cjs/ix-icon-button_2.cjs.entry.js +2 -2
  195. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +2 -2
  196. package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
  197. package/dist/cjs/ix-key-value-list.cjs.entry.js +1 -1
  198. package/dist/cjs/ix-kpi.cjs.entry.js +3 -3
  199. package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
  200. package/dist/cjs/ix-link-button.cjs.entry.js +3 -3
  201. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +2 -2
  202. package/dist/cjs/ix-map-navigation.cjs.entry.js +4 -4
  203. package/dist/cjs/ix-map-navigation.cjs.entry.js.map +1 -1
  204. package/dist/cjs/ix-menu-about-item.cjs.entry.js +1 -1
  205. package/dist/cjs/ix-menu-about-news.cjs.entry.js +4 -4
  206. package/dist/cjs/ix-menu-avatar.cjs.entry.js +3 -3
  207. package/dist/cjs/ix-menu-category.cjs.entry.js +6 -6
  208. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +2 -2
  209. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js.map +1 -1
  210. package/dist/cjs/ix-menu-item.cjs.entry.js +13 -13
  211. package/dist/cjs/ix-menu-item.cjs.entry.js.map +1 -1
  212. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +1 -1
  213. package/dist/cjs/ix-menu.cjs.entry.js +13 -13
  214. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  215. package/dist/cjs/ix-message-bar.cjs.entry.js +1 -1
  216. package/dist/cjs/ix-modal-content_2.cjs.entry.js +3 -3
  217. package/dist/cjs/ix-modal-content_2.cjs.entry.js.map +1 -1
  218. package/dist/cjs/ix-modal-example.cjs.entry.js +1 -1
  219. package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
  220. package/dist/cjs/ix-modal-footer.cjs.entry.js.map +1 -1
  221. package/dist/cjs/ix-modal-loading.cjs.entry.js +1 -1
  222. package/dist/cjs/ix-modal.cjs.entry.js +3 -3
  223. package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
  224. package/dist/cjs/ix-pagination.cjs.entry.js +3 -3
  225. package/dist/cjs/ix-pane-layout.cjs.entry.js +1 -1
  226. package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
  227. package/dist/cjs/ix-pill.cjs.entry.js +4 -4
  228. package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
  229. package/dist/cjs/ix-playground-internal.cjs.entry.js +1 -1
  230. package/dist/cjs/ix-playground-internal.cjs.entry.js.map +1 -1
  231. package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
  232. package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -1
  233. package/dist/cjs/ix-select.cjs.entry.js +28 -31
  234. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  235. package/dist/cjs/ix-slider.cjs.entry.js +2 -2
  236. package/dist/cjs/ix-split-button-item.cjs.entry.js +1 -1
  237. package/dist/cjs/ix-tab-item_2.cjs.entry.js +2 -2
  238. package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
  239. package/dist/cjs/ix-tile.cjs.entry.js +4 -4
  240. package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
  241. package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
  242. package/dist/cjs/ix-toast.cjs.entry.js +2 -2
  243. package/dist/cjs/ix-toast.cjs.entry.js.map +1 -1
  244. package/dist/cjs/ix-toggle-button.cjs.entry.js +3 -3
  245. package/dist/cjs/ix-toggle.cjs.entry.js +3 -3
  246. package/dist/cjs/ix-tooltip.cjs.entry.js +23 -21
  247. package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -1
  248. package/dist/cjs/ix-tree-item.cjs.entry.js +8 -8
  249. package/dist/cjs/ix-tree-item.cjs.entry.js.map +1 -1
  250. package/dist/cjs/ix-tree.cjs.entry.js +21 -7
  251. package/dist/cjs/ix-tree.cjs.entry.js.map +1 -1
  252. package/dist/cjs/ix-upload.cjs.entry.js +3 -3
  253. package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
  254. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -3
  255. package/dist/cjs/ix-workflow-step.cjs.entry.js +3 -3
  256. package/dist/cjs/ix-workflow-step.cjs.entry.js.map +1 -1
  257. package/dist/cjs/ix-workflow-steps.cjs.entry.js +1 -1
  258. package/dist/cjs/ix-workflow-steps.cjs.entry.js.map +1 -1
  259. package/dist/cjs/{listener-bc3e7c0c.js → listener-a124ed49.js} +2 -2
  260. package/dist/cjs/{listener-bc3e7c0c.js.map → listener-a124ed49.js.map} +1 -1
  261. package/dist/cjs/loader.cjs.js +1 -1
  262. package/dist/cjs/{logical-filter-operator-5564322e.js → logical-filter-operator-4917393f.js} +2 -2
  263. package/dist/cjs/{logical-filter-operator-5564322e.js.map → logical-filter-operator-4917393f.js.map} +1 -1
  264. package/dist/cjs/{shadow-dom-73f9d553.js → shadow-dom-454acc38.js} +2 -2
  265. package/dist/cjs/{shadow-dom-73f9d553.js.map → shadow-dom-454acc38.js.map} +1 -1
  266. package/dist/cjs/siemens-ix.cjs.js +1 -1
  267. package/dist/collection/components/action-card/action-card.js +6 -3
  268. package/dist/collection/components/action-card/action-card.js.map +1 -1
  269. package/dist/collection/components/application/application.css +26 -6
  270. package/dist/collection/components/application/application.js +1 -1
  271. package/dist/collection/components/application/application.js.map +1 -1
  272. package/dist/collection/components/application-header/application-header.css +9 -7
  273. package/dist/collection/components/application-header/application-header.js +77 -5
  274. package/dist/collection/components/application-header/application-header.js.map +1 -1
  275. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
  276. package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
  277. package/dist/collection/components/basic-navigation/basic-navigation.js +7 -4
  278. package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
  279. package/dist/collection/components/blind/blind.css +1 -1
  280. package/dist/collection/components/blind/blind.js +2 -2
  281. package/dist/collection/components/blind/blind.js.map +1 -1
  282. package/dist/collection/components/blind/test/blind.ct.js +1 -1
  283. package/dist/collection/components/blind/test/blind.ct.js.map +1 -1
  284. package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
  285. package/dist/collection/components/card/card.css +3 -3
  286. package/dist/collection/components/card/card.js +7 -4
  287. package/dist/collection/components/card/card.js.map +1 -1
  288. package/dist/collection/components/card-accordion/card-accordion.css +4 -4
  289. package/dist/collection/components/card-content/card-content.js +1 -1
  290. package/dist/collection/components/card-list/card-list.css +6 -0
  291. package/dist/collection/components/card-list/card-list.js +5 -5
  292. package/dist/collection/components/card-list/card-list.js.map +1 -1
  293. package/dist/collection/components/card-title/card-title.js +1 -1
  294. package/dist/collection/components/category-filter/category-filter.js +18 -13
  295. package/dist/collection/components/category-filter/category-filter.js.map +1 -1
  296. package/dist/collection/components/category-filter/logical-filter-operator.js +1 -1
  297. package/dist/collection/components/category-filter/logical-filter-operator.js.map +1 -1
  298. package/dist/collection/components/category-filter/test/category-filter.ct.js +52 -0
  299. package/dist/collection/components/category-filter/test/category-filter.ct.js.map +1 -0
  300. package/dist/collection/components/chip/chip.css +2 -2
  301. package/dist/collection/components/chip/chip.js +5 -5
  302. package/dist/collection/components/chip/chip.js.map +1 -1
  303. package/dist/collection/components/col/col.css +1 -1
  304. package/dist/collection/components/col/col.js +1 -1
  305. package/dist/collection/components/col/col.js.map +1 -1
  306. package/dist/collection/components/content/content.js +3 -3
  307. package/dist/collection/components/css-grid/css-grid-item.js +1 -1
  308. package/dist/collection/components/divider/divider.js +1 -1
  309. package/dist/collection/components/drawer/drawer.js +2 -2
  310. package/dist/collection/components/dropdown/dropdown.js +2 -2
  311. package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
  312. package/dist/collection/components/dropdown-item/dropdown-item.css +3 -3
  313. package/dist/collection/components/dropdown-item/dropdown-item.js +5 -5
  314. package/dist/collection/components/dropdown-item/dropdown-item.js.map +1 -1
  315. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  316. package/dist/collection/components/event-list/event-list.js +2 -2
  317. package/dist/collection/components/event-list-item/event-list-item.js +4 -4
  318. package/dist/collection/components/expanding-search/expanding-search.js +4 -4
  319. package/dist/collection/components/filter-chip/filter-chip.js +1 -1
  320. package/dist/collection/components/flip-tile/flip-tile.js +4 -4
  321. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  322. package/dist/collection/components/form-field/form-field.js +1 -1
  323. package/dist/collection/components/grid/layout-grid.css +1 -1
  324. package/dist/collection/components/grid/layout-grid.js +3 -3
  325. package/dist/collection/components/grid/layout-grid.js.map +1 -1
  326. package/dist/collection/components/group/group-context-menu.css +1 -1
  327. package/dist/collection/components/group/group-context-menu.js +2 -2
  328. package/dist/collection/components/group/group-context-menu.js.map +1 -1
  329. package/dist/collection/components/group/group.css +3 -2
  330. package/dist/collection/components/group/group.js +68 -38
  331. package/dist/collection/components/group/group.js.map +1 -1
  332. package/dist/collection/components/group/test/group.ct.js +34 -4
  333. package/dist/collection/components/group/test/group.ct.js.map +1 -1
  334. package/dist/collection/components/group-item/group-item.js +2 -2
  335. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
  336. package/dist/collection/components/input-group/input-group.js +1 -1
  337. package/dist/collection/components/key-value-list/key-value-list.js +1 -1
  338. package/dist/collection/components/kpi/kpi.css +1 -1
  339. package/dist/collection/components/kpi/kpi.js +4 -4
  340. package/dist/collection/components/kpi/kpi.js.map +1 -1
  341. package/dist/collection/components/link-button/link-button.js +3 -3
  342. package/dist/collection/components/map-navigation/map-navigation.css +3 -3
  343. package/dist/collection/components/map-navigation/map-navigation.js +2 -2
  344. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
  345. package/dist/collection/components/menu/menu-expand-icon.css +1 -1
  346. package/dist/collection/components/menu/menu-expand-icon.js +3 -3
  347. package/dist/collection/components/menu/menu-expand-icon.js.map +1 -1
  348. package/dist/collection/components/menu/menu.css +4 -3
  349. package/dist/collection/components/menu/menu.js +12 -12
  350. package/dist/collection/components/menu/menu.js.map +1 -1
  351. package/dist/collection/components/menu/test/menu.ct.js +1 -1
  352. package/dist/collection/components/menu/test/menu.ct.js.map +1 -1
  353. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  354. package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
  355. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
  356. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
  357. package/dist/collection/components/menu-category/menu-category.js +5 -5
  358. package/dist/collection/components/menu-item/menu-item.js +24 -21
  359. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  360. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  361. package/dist/collection/components/message-bar/message-bar.js +1 -1
  362. package/dist/collection/components/modal/modal.css +18 -8
  363. package/dist/collection/components/modal/modal.js +1 -1
  364. package/dist/collection/components/modal/modal.js.map +1 -1
  365. package/dist/collection/components/modal/test/modal.ct.js +1 -1
  366. package/dist/collection/components/modal/test/modal.ct.js.map +1 -1
  367. package/dist/collection/components/modal-content/modal-content.css +1 -1
  368. package/dist/collection/components/modal-content/modal-content.js +1 -1
  369. package/dist/collection/components/modal-footer/modal-footer.css +1 -0
  370. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  371. package/dist/collection/components/modal-header/modal-header.js +2 -2
  372. package/dist/collection/components/modal-header/modal-header.js.map +1 -1
  373. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  374. package/dist/collection/components/pagination/pagination.js +2 -2
  375. package/dist/collection/components/pane/pane.css +1 -1
  376. package/dist/collection/components/pane/pane.js +1 -1
  377. package/dist/collection/components/pane/pane.js.map +1 -1
  378. package/dist/collection/components/pane/test/panes.ct.js +1 -1
  379. package/dist/collection/components/pane/test/panes.ct.js.map +1 -1
  380. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  381. package/dist/collection/components/pill/pill.css +2 -2
  382. package/dist/collection/components/pill/pill.js +5 -5
  383. package/dist/collection/components/pill/pill.js.map +1 -1
  384. package/dist/collection/components/playground/example-modal.js +1 -1
  385. package/dist/collection/components/playground/playground.js +2 -2
  386. package/dist/collection/components/playground/playground.js.map +1 -1
  387. package/dist/collection/components/push-card/push-card.js +9 -6
  388. package/dist/collection/components/push-card/push-card.js.map +1 -1
  389. package/dist/collection/components/row/row.css +1 -1
  390. package/dist/collection/components/row/row.js +2 -2
  391. package/dist/collection/components/row/row.js.map +1 -1
  392. package/dist/collection/components/select/select.js +27 -30
  393. package/dist/collection/components/select/select.js.map +1 -1
  394. package/dist/collection/components/select/test/select.ct.js +44 -0
  395. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  396. package/dist/collection/components/select-item/select-item.js +1 -1
  397. package/dist/collection/components/spinner/spinner.js +1 -1
  398. package/dist/collection/components/split-button-item/split-button-item.js +1 -1
  399. package/dist/collection/components/tabs/tabs.css +1 -1
  400. package/dist/collection/components/tabs/tabs.js +3 -3
  401. package/dist/collection/components/tabs/tabs.js.map +1 -1
  402. package/dist/collection/components/tile/tile.css +1 -1
  403. package/dist/collection/components/tile/tile.js +5 -5
  404. package/dist/collection/components/tile/tile.js.map +1 -1
  405. package/dist/collection/components/toast/styles/toast-container.css +1 -1
  406. package/dist/collection/components/toast/toast-container.js +1 -1
  407. package/dist/collection/components/toast/toast-container.js.map +1 -1
  408. package/dist/collection/components/toast/toast-utils.js.map +1 -1
  409. package/dist/collection/components/toast/toast.css +1 -1
  410. package/dist/collection/components/toast/toast.js +3 -3
  411. package/dist/collection/components/toast/toast.js.map +1 -1
  412. package/dist/collection/components/toggle/toggle.js +2 -2
  413. package/dist/collection/components/toggle-button/toggle-button.js +2 -2
  414. package/dist/collection/components/tooltip/tooltip.css +15 -5
  415. package/dist/collection/components/tooltip/tooltip.js +22 -20
  416. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  417. package/dist/collection/components/tree/test/tree.ct.js +37 -1
  418. package/dist/collection/components/tree/test/tree.ct.js.map +1 -1
  419. package/dist/collection/components/tree/tree-model.js.map +1 -1
  420. package/dist/collection/components/tree/tree.css +1 -1
  421. package/dist/collection/components/tree/tree.js +26 -11
  422. package/dist/collection/components/tree/tree.js.map +1 -1
  423. package/dist/collection/components/tree-item/tree-item.css +9 -0
  424. package/dist/collection/components/tree-item/tree-item.js +13 -12
  425. package/dist/collection/components/tree-item/tree-item.js.map +1 -1
  426. package/dist/collection/components/upload/upload.js +4 -4
  427. package/dist/collection/components/upload/upload.js.map +1 -1
  428. package/dist/collection/components/utils/condition-checks.js +1 -1
  429. package/dist/collection/components/utils/condition-checks.js.map +1 -1
  430. package/dist/collection/components/utils/context.js +1 -1
  431. package/dist/collection/components/utils/context.js.map +1 -1
  432. package/dist/collection/components/utils/listener.js +1 -1
  433. package/dist/collection/components/utils/listener.js.map +1 -1
  434. package/dist/collection/components/utils/notification-color.js.map +1 -1
  435. package/dist/collection/components/utils/shadow-dom.js +1 -1
  436. package/dist/collection/components/utils/shadow-dom.js.map +1 -1
  437. package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
  438. package/dist/collection/components/workflow-step/workflow-step.css +1 -1
  439. package/dist/collection/components/workflow-step/workflow-step.js +4 -4
  440. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  441. package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js +2 -2
  442. package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js.map +1 -1
  443. package/dist/collection/components/workflow-steps/workflow-steps.css +1 -1
  444. package/dist/collection/components/workflow-steps/workflow-steps.js +2 -2
  445. package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
  446. package/dist/collection/index.js +1 -0
  447. package/dist/collection/index.js.map +1 -1
  448. package/dist/collection/tests/application-header/application-header.e2e.js +9 -0
  449. package/dist/collection/tests/application-header/application-header.e2e.js.map +1 -1
  450. package/dist/collection/tests/card-list/card-list.e2e.js +7 -1
  451. package/dist/collection/tests/card-list/card-list.e2e.js.map +1 -1
  452. package/dist/collection/tests/dropdown/dropdown.e2e.js +6 -0
  453. package/dist/collection/tests/dropdown/dropdown.e2e.js.map +1 -1
  454. package/dist/collection/tests/group/group.e2e.js +12 -3
  455. package/dist/collection/tests/group/group.e2e.js.map +1 -1
  456. package/dist/collection/tests/tooltip/tooltip.e2e.js +22 -0
  457. package/dist/collection/tests/tooltip/tooltip.e2e.js.map +1 -1
  458. package/dist/collection/tests/tree/tree.e2e.js +12 -0
  459. package/dist/collection/tests/tree/tree.e2e.js.map +1 -1
  460. package/dist/esm/{a11y-d5444a76.js → a11y-2e34777f.js} +2 -2
  461. package/dist/esm/{a11y-d5444a76.js.map → a11y-2e34777f.js.map} +1 -1
  462. package/dist/esm/{context-c9078420.js → context-82a1ccf8.js} +2 -2
  463. package/dist/esm/{context-c9078420.js.map → context-82a1ccf8.js.map} +1 -1
  464. package/dist/esm/dropdown-controller-95bd6750.js +140 -0
  465. package/dist/esm/dropdown-controller-95bd6750.js.map +1 -0
  466. package/dist/esm/{floating-ui.dom.esm-6e7c098f.js → floating-ui.dom.esm-d4ad786a.js} +534 -61
  467. package/dist/esm/floating-ui.dom.esm-d4ad786a.js.map +1 -0
  468. package/dist/esm/index.js +2 -2
  469. package/dist/esm/index.js.map +1 -1
  470. package/dist/esm/ix-action-card.entry.js +1 -1
  471. package/dist/esm/ix-action-card.entry.js.map +1 -1
  472. package/dist/esm/ix-application-header.entry.js +35 -9
  473. package/dist/esm/ix-application-header.entry.js.map +1 -1
  474. package/dist/esm/ix-application-sidebar.entry.js +1 -1
  475. package/dist/esm/ix-application-switch-modal.entry.js +1 -1
  476. package/dist/esm/ix-application.entry.js +4 -4
  477. package/dist/esm/ix-application.entry.js.map +1 -1
  478. package/dist/esm/ix-avatar_2.entry.js +2 -2
  479. package/dist/esm/ix-basic-navigation.entry.js +3 -3
  480. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  481. package/dist/esm/ix-blind.entry.js +1 -1
  482. package/dist/esm/ix-blind.entry.js.map +1 -1
  483. package/dist/esm/ix-breadcrumb-item.entry.js +1 -1
  484. package/dist/esm/ix-breadcrumb.entry.js +3 -3
  485. package/dist/esm/ix-card-accordion_2.entry.js +2 -2
  486. package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
  487. package/dist/esm/ix-card-list.entry.js +6 -6
  488. package/dist/esm/ix-card-list.entry.js.map +1 -1
  489. package/dist/esm/ix-card_2.entry.js +4 -4
  490. package/dist/esm/ix-card_2.entry.js.map +1 -1
  491. package/dist/esm/ix-category-filter.entry.js +9 -5
  492. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  493. package/dist/esm/ix-chip.entry.js +4 -4
  494. package/dist/esm/ix-chip.entry.js.map +1 -1
  495. package/dist/esm/ix-col_4.entry.js +4 -4
  496. package/dist/esm/ix-col_4.entry.js.map +1 -1
  497. package/dist/esm/ix-content.entry.js +4 -4
  498. package/dist/esm/ix-css-grid-item.entry.js +1 -1
  499. package/dist/esm/ix-divider.entry.js +1 -1
  500. package/dist/esm/ix-drawer.entry.js +2 -2
  501. package/dist/esm/ix-dropdown-header.entry.js +1 -1
  502. package/dist/esm/ix-dropdown-item.entry.js +4 -4
  503. package/dist/esm/ix-dropdown-item.entry.js.map +1 -1
  504. package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
  505. package/dist/esm/ix-dropdown.entry.js +4 -140
  506. package/dist/esm/ix-dropdown.entry.js.map +1 -1
  507. package/dist/esm/ix-event-list-item.entry.js +5 -5
  508. package/dist/esm/ix-event-list.entry.js +2 -2
  509. package/dist/esm/ix-expanding-search.entry.js +4 -4
  510. package/dist/esm/ix-filter-chip_2.entry.js +2 -2
  511. package/dist/esm/ix-flip-tile-content.entry.js +1 -1
  512. package/dist/esm/ix-flip-tile.entry.js +4 -4
  513. package/dist/esm/ix-form-field.entry.js +1 -1
  514. package/dist/esm/ix-group-context-menu_2.entry.js +4 -4
  515. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  516. package/dist/esm/ix-group.entry.js +57 -39
  517. package/dist/esm/ix-group.entry.js.map +1 -1
  518. package/dist/esm/ix-icon-button_2.entry.js +2 -2
  519. package/dist/esm/ix-icon-toggle-button.entry.js +2 -2
  520. package/dist/esm/ix-input-group.entry.js +2 -2
  521. package/dist/esm/ix-key-value-list.entry.js +1 -1
  522. package/dist/esm/ix-kpi.entry.js +3 -3
  523. package/dist/esm/ix-kpi.entry.js.map +1 -1
  524. package/dist/esm/ix-link-button.entry.js +3 -3
  525. package/dist/esm/ix-map-navigation-overlay.entry.js +2 -2
  526. package/dist/esm/ix-map-navigation.entry.js +4 -4
  527. package/dist/esm/ix-map-navigation.entry.js.map +1 -1
  528. package/dist/esm/ix-menu-about-item.entry.js +1 -1
  529. package/dist/esm/ix-menu-about-news.entry.js +4 -4
  530. package/dist/esm/ix-menu-avatar.entry.js +3 -3
  531. package/dist/esm/ix-menu-category.entry.js +6 -6
  532. package/dist/esm/ix-menu-expand-icon.entry.js +2 -2
  533. package/dist/esm/ix-menu-expand-icon.entry.js.map +1 -1
  534. package/dist/esm/ix-menu-item.entry.js +14 -14
  535. package/dist/esm/ix-menu-item.entry.js.map +1 -1
  536. package/dist/esm/ix-menu-settings-item.entry.js +1 -1
  537. package/dist/esm/ix-menu.entry.js +13 -13
  538. package/dist/esm/ix-menu.entry.js.map +1 -1
  539. package/dist/esm/ix-message-bar.entry.js +1 -1
  540. package/dist/esm/ix-modal-content_2.entry.js +3 -3
  541. package/dist/esm/ix-modal-content_2.entry.js.map +1 -1
  542. package/dist/esm/ix-modal-example.entry.js +1 -1
  543. package/dist/esm/ix-modal-footer.entry.js +2 -2
  544. package/dist/esm/ix-modal-footer.entry.js.map +1 -1
  545. package/dist/esm/ix-modal-loading.entry.js +1 -1
  546. package/dist/esm/ix-modal.entry.js +3 -3
  547. package/dist/esm/ix-modal.entry.js.map +1 -1
  548. package/dist/esm/ix-pagination.entry.js +3 -3
  549. package/dist/esm/ix-pane-layout.entry.js +1 -1
  550. package/dist/esm/ix-pane.entry.js.map +1 -1
  551. package/dist/esm/ix-pill.entry.js +4 -4
  552. package/dist/esm/ix-pill.entry.js.map +1 -1
  553. package/dist/esm/ix-playground-internal.entry.js +1 -1
  554. package/dist/esm/ix-playground-internal.entry.js.map +1 -1
  555. package/dist/esm/ix-push-card.entry.js +1 -1
  556. package/dist/esm/ix-push-card.entry.js.map +1 -1
  557. package/dist/esm/ix-select.entry.js +28 -31
  558. package/dist/esm/ix-select.entry.js.map +1 -1
  559. package/dist/esm/ix-slider.entry.js +2 -2
  560. package/dist/esm/ix-split-button-item.entry.js +1 -1
  561. package/dist/esm/ix-tab-item_2.entry.js +2 -2
  562. package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
  563. package/dist/esm/ix-tile.entry.js +4 -4
  564. package/dist/esm/ix-tile.entry.js.map +1 -1
  565. package/dist/esm/ix-toast-container.entry.js.map +1 -1
  566. package/dist/esm/ix-toast.entry.js +2 -2
  567. package/dist/esm/ix-toast.entry.js.map +1 -1
  568. package/dist/esm/ix-toggle-button.entry.js +3 -3
  569. package/dist/esm/ix-toggle.entry.js +3 -3
  570. package/dist/esm/ix-tooltip.entry.js +23 -21
  571. package/dist/esm/ix-tooltip.entry.js.map +1 -1
  572. package/dist/esm/ix-tree-item.entry.js +8 -8
  573. package/dist/esm/ix-tree-item.entry.js.map +1 -1
  574. package/dist/esm/ix-tree.entry.js +21 -7
  575. package/dist/esm/ix-tree.entry.js.map +1 -1
  576. package/dist/esm/ix-upload.entry.js +3 -3
  577. package/dist/esm/ix-upload.entry.js.map +1 -1
  578. package/dist/esm/ix-validation-tooltip.entry.js +3 -3
  579. package/dist/esm/ix-workflow-step.entry.js +3 -3
  580. package/dist/esm/ix-workflow-step.entry.js.map +1 -1
  581. package/dist/esm/ix-workflow-steps.entry.js +1 -1
  582. package/dist/esm/ix-workflow-steps.entry.js.map +1 -1
  583. package/dist/esm/{listener-4f3baab5.js → listener-2c562054.js} +2 -2
  584. package/dist/esm/{listener-4f3baab5.js.map → listener-2c562054.js.map} +1 -1
  585. package/dist/esm/loader.js +1 -1
  586. package/dist/esm/{logical-filter-operator-f6701df5.js → logical-filter-operator-d793d1c3.js} +2 -2
  587. package/dist/esm/{logical-filter-operator-f6701df5.js.map → logical-filter-operator-d793d1c3.js.map} +1 -1
  588. package/dist/esm/{shadow-dom-60e9243d.js → shadow-dom-cc0bc152.js} +2 -2
  589. package/dist/esm/{shadow-dom-60e9243d.js.map → shadow-dom-cc0bc152.js.map} +1 -1
  590. package/dist/esm/siemens-ix.js +1 -1
  591. package/dist/siemens-ix/index.esm.js +1 -1
  592. package/dist/siemens-ix/index.esm.js.map +1 -1
  593. package/dist/siemens-ix/p-04af3853.entry.js +2 -0
  594. package/dist/siemens-ix/{p-4df0cdd7.entry.js → p-04ec538b.entry.js} +2 -2
  595. package/dist/siemens-ix/{p-68644ee1.entry.js → p-05dc6b2d.entry.js} +2 -2
  596. package/dist/siemens-ix/{p-68644ee1.entry.js.map → p-05dc6b2d.entry.js.map} +1 -1
  597. package/dist/siemens-ix/{p-af099ca4.entry.js → p-0632731e.entry.js} +2 -2
  598. package/dist/siemens-ix/{p-6af4415c.entry.js → p-085d5ec2.entry.js} +2 -2
  599. package/dist/siemens-ix/{p-6af4415c.entry.js.map → p-085d5ec2.entry.js.map} +1 -1
  600. package/dist/siemens-ix/{p-0d2a6886.entry.js → p-091b036d.entry.js} +2 -2
  601. package/dist/siemens-ix/{p-453fa360.entry.js → p-0ef97555.entry.js} +2 -2
  602. package/dist/siemens-ix/{p-453fa360.entry.js.map → p-0ef97555.entry.js.map} +1 -1
  603. package/dist/siemens-ix/{p-2946fd70.entry.js → p-0fafba48.entry.js} +2 -2
  604. package/dist/siemens-ix/{p-7076210b.entry.js → p-1483f65d.entry.js} +2 -2
  605. package/dist/siemens-ix/{p-4f8ac3bf.js → p-157b1b28.js} +1 -1
  606. package/dist/siemens-ix/{p-4f8ac3bf.js.map → p-157b1b28.js.map} +1 -1
  607. package/dist/siemens-ix/p-15f44099.entry.js +2 -0
  608. package/dist/siemens-ix/{p-87e692d9.entry.js.map → p-15f44099.entry.js.map} +1 -1
  609. package/dist/siemens-ix/{p-2908cacd.entry.js → p-17a8aab2.entry.js} +2 -2
  610. package/dist/siemens-ix/{p-2908cacd.entry.js.map → p-17a8aab2.entry.js.map} +1 -1
  611. package/dist/siemens-ix/{p-c1968b80.entry.js → p-1bd98772.entry.js} +2 -2
  612. package/dist/siemens-ix/p-1c3a0b1f.js +2 -0
  613. package/dist/siemens-ix/p-1c3a0b1f.js.map +1 -0
  614. package/dist/siemens-ix/{p-8629db91.entry.js → p-25f1749c.entry.js} +2 -2
  615. package/dist/siemens-ix/{p-5696bb62.entry.js → p-306269ae.entry.js} +2 -2
  616. package/dist/siemens-ix/{p-dde7eb80.entry.js → p-33a7a26d.entry.js} +2 -2
  617. package/dist/siemens-ix/{p-dde7eb80.entry.js.map → p-33a7a26d.entry.js.map} +1 -1
  618. package/dist/siemens-ix/{p-712e0ee0.js → p-345e1c73.js} +1 -1
  619. package/dist/siemens-ix/{p-712e0ee0.js.map → p-345e1c73.js.map} +1 -1
  620. package/dist/siemens-ix/p-35fff1e6.entry.js +2 -0
  621. package/dist/siemens-ix/{p-9ebc4fc3.entry.js → p-37229f30.entry.js} +2 -2
  622. package/dist/siemens-ix/{p-9ebc4fc3.entry.js.map → p-37229f30.entry.js.map} +1 -1
  623. package/dist/siemens-ix/p-3dc1294b.entry.js +2 -0
  624. package/dist/siemens-ix/{p-e9a3f58a.entry.js.map → p-3dc1294b.entry.js.map} +1 -1
  625. package/dist/siemens-ix/p-3f59a3c3.entry.js +2 -0
  626. package/dist/siemens-ix/p-3f59a3c3.entry.js.map +1 -0
  627. package/dist/siemens-ix/p-411f51c5.entry.js +2 -0
  628. package/dist/siemens-ix/{p-f78246bd.entry.js → p-44a27b29.entry.js} +2 -2
  629. package/dist/siemens-ix/{p-d03df401.entry.js → p-49d3fc15.entry.js} +2 -2
  630. package/dist/siemens-ix/{p-25ee1b62.js → p-4ac31849.js} +1 -1
  631. package/dist/siemens-ix/{p-25ee1b62.js.map → p-4ac31849.js.map} +1 -1
  632. package/dist/siemens-ix/{p-dbe8f5e6.entry.js → p-4e547dd3.entry.js} +2 -2
  633. package/dist/siemens-ix/{p-dbe8f5e6.entry.js.map → p-4e547dd3.entry.js.map} +1 -1
  634. package/dist/siemens-ix/p-5099c070.entry.js +2 -0
  635. package/dist/siemens-ix/p-5099c070.entry.js.map +1 -0
  636. package/dist/siemens-ix/{p-fc5814df.entry.js → p-5351225b.entry.js} +2 -2
  637. package/dist/siemens-ix/p-5351225b.entry.js.map +1 -0
  638. package/dist/siemens-ix/p-5aa0b93c.entry.js.map +1 -1
  639. package/dist/siemens-ix/{p-113cc793.entry.js → p-5af99eaa.entry.js} +2 -2
  640. package/dist/siemens-ix/{p-e30ed20a.entry.js → p-62b089b6.entry.js} +2 -2
  641. package/dist/siemens-ix/{p-e30ed20a.entry.js.map → p-62b089b6.entry.js.map} +1 -1
  642. package/dist/siemens-ix/p-63f0755e.entry.js +2 -0
  643. package/dist/siemens-ix/{p-14a41c8c.entry.js → p-6618b2db.entry.js} +2 -2
  644. package/dist/siemens-ix/{p-0653a145.entry.js → p-67f44540.entry.js} +2 -2
  645. package/dist/siemens-ix/{p-15b3c17e.entry.js → p-6e4c9e3d.entry.js} +2 -2
  646. package/dist/siemens-ix/{p-15b3c17e.entry.js.map → p-6e4c9e3d.entry.js.map} +1 -1
  647. package/dist/siemens-ix/p-7402f42a.entry.js +2 -0
  648. package/dist/siemens-ix/p-7402f42a.entry.js.map +1 -0
  649. package/dist/siemens-ix/{p-53352bfb.entry.js → p-77273517.entry.js} +2 -2
  650. package/dist/siemens-ix/{p-882a0233.entry.js → p-78ac2ff1.entry.js} +2 -2
  651. package/dist/siemens-ix/p-7947ef3d.entry.js +2 -0
  652. package/dist/siemens-ix/{p-fb47546b.entry.js → p-7c2f34f0.entry.js} +2 -2
  653. package/dist/siemens-ix/p-82d33168.entry.js +2 -0
  654. package/dist/siemens-ix/p-82f9d976.entry.js +2 -0
  655. package/dist/siemens-ix/p-82f9d976.entry.js.map +1 -0
  656. package/dist/siemens-ix/{p-85423643.entry.js → p-86bbc005.entry.js} +2 -2
  657. package/dist/siemens-ix/p-86bbc005.entry.js.map +1 -0
  658. package/dist/siemens-ix/p-86fd5922.entry.js +2 -0
  659. package/dist/siemens-ix/p-86fd5922.entry.js.map +1 -0
  660. package/dist/siemens-ix/p-89e48bea.entry.js +2 -0
  661. package/dist/siemens-ix/p-89e48bea.entry.js.map +1 -0
  662. package/dist/siemens-ix/{p-052340f9.entry.js → p-8acc09aa.entry.js} +2 -2
  663. package/dist/siemens-ix/{p-6fd7ecd0.entry.js → p-9079f6c8.entry.js} +2 -2
  664. package/dist/siemens-ix/p-928209e1.entry.js +2 -0
  665. package/dist/siemens-ix/p-928209e1.entry.js.map +1 -0
  666. package/dist/siemens-ix/{p-e8d3cf35.entry.js → p-958c5970.entry.js} +2 -2
  667. package/dist/siemens-ix/{p-e8d3cf35.entry.js.map → p-958c5970.entry.js.map} +1 -1
  668. package/dist/siemens-ix/{p-16b923e9.entry.js → p-9bdda7ff.entry.js} +2 -2
  669. package/dist/siemens-ix/p-a08efce0.entry.js +2 -0
  670. package/dist/siemens-ix/p-a08efce0.entry.js.map +1 -0
  671. package/dist/siemens-ix/p-a4755205.entry.js +2 -0
  672. package/dist/siemens-ix/p-a4755205.entry.js.map +1 -0
  673. package/dist/siemens-ix/{p-2c4c03d4.entry.js → p-aa814811.entry.js} +2 -2
  674. package/dist/siemens-ix/{p-7c36d3fa.js → p-accec846.js} +1 -1
  675. package/dist/siemens-ix/{p-7c36d3fa.js.map → p-accec846.js.map} +1 -1
  676. package/dist/siemens-ix/{p-8d599677.entry.js → p-adee6045.entry.js} +2 -2
  677. package/dist/siemens-ix/{p-8d599677.entry.js.map → p-adee6045.entry.js.map} +1 -1
  678. package/dist/siemens-ix/{p-d95cbd1f.entry.js → p-ae31be0d.entry.js} +2 -2
  679. package/dist/siemens-ix/{p-d95cbd1f.entry.js.map → p-ae31be0d.entry.js.map} +1 -1
  680. package/dist/siemens-ix/{p-feac09bc.entry.js → p-ba24e694.entry.js} +2 -2
  681. package/dist/siemens-ix/p-ba6e955a.js +2 -0
  682. package/dist/siemens-ix/p-ba6e955a.js.map +1 -0
  683. package/dist/siemens-ix/p-c022d6cc.entry.js +2 -0
  684. package/dist/siemens-ix/{p-eb6268a6.entry.js.map → p-c022d6cc.entry.js.map} +1 -1
  685. package/dist/siemens-ix/p-c05a98c8.entry.js +2 -0
  686. package/dist/siemens-ix/{p-71315e2e.entry.js → p-c072ddb5.entry.js} +2 -2
  687. package/dist/siemens-ix/p-c1fe9f3d.entry.js +2 -0
  688. package/dist/siemens-ix/p-c1fe9f3d.entry.js.map +1 -0
  689. package/dist/siemens-ix/p-c33cee36.entry.js.map +1 -1
  690. package/dist/siemens-ix/{p-0b4e398e.entry.js → p-c62966f8.entry.js} +2 -2
  691. package/dist/siemens-ix/{p-0b4e398e.entry.js.map → p-c62966f8.entry.js.map} +1 -1
  692. package/dist/siemens-ix/p-c7280736.entry.js +2 -0
  693. package/dist/siemens-ix/{p-0f7ef743.entry.js.map → p-c7280736.entry.js.map} +1 -1
  694. package/dist/siemens-ix/{p-8d0758c1.entry.js → p-c7e58e9e.entry.js} +2 -2
  695. package/dist/siemens-ix/{p-4430117a.entry.js → p-c81c4b9d.entry.js} +2 -2
  696. package/dist/siemens-ix/{p-d950c3a8.entry.js → p-cc65617d.entry.js} +2 -2
  697. package/dist/siemens-ix/{p-1a122c76.entry.js → p-d300b332.entry.js} +2 -2
  698. package/dist/siemens-ix/p-d6fc0727.entry.js +2 -0
  699. package/dist/siemens-ix/p-d6fc0727.entry.js.map +1 -0
  700. package/dist/siemens-ix/p-df370362.entry.js +2 -0
  701. package/dist/siemens-ix/p-df370362.entry.js.map +1 -0
  702. package/dist/siemens-ix/{p-5f25e7fd.entry.js → p-e0d03d67.entry.js} +2 -2
  703. package/dist/siemens-ix/{p-5f25e7fd.entry.js.map → p-e0d03d67.entry.js.map} +1 -1
  704. package/dist/siemens-ix/{p-ff1ac5b3.entry.js → p-e14384df.entry.js} +2 -2
  705. package/dist/siemens-ix/{p-fb2b78f7.entry.js → p-e35805d0.entry.js} +2 -2
  706. package/dist/siemens-ix/p-e35805d0.entry.js.map +1 -0
  707. package/dist/siemens-ix/{p-0c8a98cd.js → p-e948bcb0.js} +1 -1
  708. package/dist/siemens-ix/{p-0c8a98cd.js.map → p-e948bcb0.js.map} +1 -1
  709. package/dist/siemens-ix/{p-5b135f6b.entry.js → p-e95a5a97.entry.js} +2 -2
  710. package/dist/siemens-ix/{p-5b135f6b.entry.js.map → p-e95a5a97.entry.js.map} +1 -1
  711. package/dist/siemens-ix/p-ed7e76a3.entry.js +2 -0
  712. package/dist/siemens-ix/p-ed7e76a3.entry.js.map +1 -0
  713. package/dist/siemens-ix/{p-bea7c748.entry.js → p-ee96d1eb.entry.js} +2 -2
  714. package/dist/siemens-ix/p-f001ecc1.entry.js +2 -0
  715. package/dist/siemens-ix/p-f001ecc1.entry.js.map +1 -0
  716. package/dist/siemens-ix/p-f06b21f9.entry.js +2 -0
  717. package/dist/siemens-ix/p-f06b21f9.entry.js.map +1 -0
  718. package/dist/siemens-ix/{p-bc2c74c5.entry.js → p-fd5bee44.entry.js} +2 -2
  719. package/dist/siemens-ix/p-fefd5743.entry.js +2 -0
  720. package/dist/siemens-ix/p-fefd5743.entry.js.map +1 -0
  721. package/dist/siemens-ix/{p-dcb3e5be.entry.js → p-ffa856df.entry.js} +2 -2
  722. package/dist/siemens-ix/siemens-ix-core.css +1 -1
  723. package/dist/siemens-ix/siemens-ix.css +5 -1
  724. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  725. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  726. package/dist/types/components/action-card/action-card.d.ts +1 -0
  727. package/dist/types/components/application-header/application-header.d.ts +18 -0
  728. package/dist/types/components/basic-navigation/basic-navigation.d.ts +2 -1
  729. package/dist/types/components/card/card.d.ts +2 -1
  730. package/dist/types/components/category-filter/category-filter.d.ts +9 -9
  731. package/dist/types/components/category-filter/test/category-filter.ct.d.ts +1 -0
  732. package/dist/types/components/dropdown-item/dropdown-item.d.ts +2 -2
  733. package/dist/types/components/group/group.d.ts +4 -2
  734. package/dist/types/components/menu-item/menu-item.d.ts +6 -5
  735. package/dist/types/components/push-card/push-card.d.ts +4 -3
  736. package/dist/types/components/tooltip/tooltip.d.ts +2 -3
  737. package/dist/types/components/tree/tree.d.ts +1 -1
  738. package/dist/types/components/tree-item/tree-item.d.ts +3 -3
  739. package/dist/types/components.d.ts +67 -29
  740. package/dist/types/index.d.ts +1 -0
  741. package/hydrate/index.js +872 -338
  742. package/package.json +3 -2
  743. package/scss/_core.scss +5 -0
  744. package/dist/cjs/floating-ui.dom.esm-94b4d17c.js.map +0 -1
  745. package/dist/esm/floating-ui.dom.esm-6e7c098f.js.map +0 -1
  746. package/dist/siemens-ix/p-0b4e3779.entry.js +0 -2
  747. package/dist/siemens-ix/p-0b4e3779.entry.js.map +0 -1
  748. package/dist/siemens-ix/p-0f7ef743.entry.js +0 -2
  749. package/dist/siemens-ix/p-1cff59db.entry.js +0 -2
  750. package/dist/siemens-ix/p-1cff59db.entry.js.map +0 -1
  751. package/dist/siemens-ix/p-1f4b8463.entry.js +0 -2
  752. package/dist/siemens-ix/p-1f4b8463.entry.js.map +0 -1
  753. package/dist/siemens-ix/p-2ec7f841.entry.js +0 -2
  754. package/dist/siemens-ix/p-2ec7f841.entry.js.map +0 -1
  755. package/dist/siemens-ix/p-309ac3ad.entry.js +0 -2
  756. package/dist/siemens-ix/p-309ac3ad.entry.js.map +0 -1
  757. package/dist/siemens-ix/p-32375ddb.entry.js +0 -2
  758. package/dist/siemens-ix/p-427676f4.entry.js +0 -2
  759. package/dist/siemens-ix/p-427676f4.entry.js.map +0 -1
  760. package/dist/siemens-ix/p-44db3646.entry.js +0 -2
  761. package/dist/siemens-ix/p-4b3facea.entry.js +0 -2
  762. package/dist/siemens-ix/p-4b3facea.entry.js.map +0 -1
  763. package/dist/siemens-ix/p-52857629.entry.js +0 -2
  764. package/dist/siemens-ix/p-52857629.entry.js.map +0 -1
  765. package/dist/siemens-ix/p-6227e62b.entry.js +0 -2
  766. package/dist/siemens-ix/p-6227e62b.entry.js.map +0 -1
  767. package/dist/siemens-ix/p-7bfd6cd2.entry.js +0 -2
  768. package/dist/siemens-ix/p-7bfd6cd2.entry.js.map +0 -1
  769. package/dist/siemens-ix/p-7faa148f.entry.js +0 -2
  770. package/dist/siemens-ix/p-85423643.entry.js.map +0 -1
  771. package/dist/siemens-ix/p-87e692d9.entry.js +0 -2
  772. package/dist/siemens-ix/p-92a18c10.entry.js +0 -2
  773. package/dist/siemens-ix/p-a0a44a2b.entry.js +0 -2
  774. package/dist/siemens-ix/p-a0a44a2b.entry.js.map +0 -1
  775. package/dist/siemens-ix/p-b3b23af7.entry.js +0 -2
  776. package/dist/siemens-ix/p-b3f35666.js +0 -2
  777. package/dist/siemens-ix/p-b3f35666.js.map +0 -1
  778. package/dist/siemens-ix/p-c1222581.entry.js +0 -2
  779. package/dist/siemens-ix/p-d331216f.entry.js +0 -2
  780. package/dist/siemens-ix/p-d331216f.entry.js.map +0 -1
  781. package/dist/siemens-ix/p-d8790ff5.entry.js +0 -2
  782. package/dist/siemens-ix/p-d8790ff5.entry.js.map +0 -1
  783. package/dist/siemens-ix/p-d998415f.entry.js +0 -2
  784. package/dist/siemens-ix/p-d998415f.entry.js.map +0 -1
  785. package/dist/siemens-ix/p-e9a3f58a.entry.js +0 -2
  786. package/dist/siemens-ix/p-eb6268a6.entry.js +0 -2
  787. package/dist/siemens-ix/p-ebb277f0.entry.js +0 -2
  788. package/dist/siemens-ix/p-ebb277f0.entry.js.map +0 -1
  789. package/dist/siemens-ix/p-f318140c.entry.js +0 -2
  790. package/dist/siemens-ix/p-f318140c.entry.js.map +0 -1
  791. package/dist/siemens-ix/p-fb2b78f7.entry.js.map +0 -1
  792. package/dist/siemens-ix/p-fb4c79c6.entry.js +0 -2
  793. package/dist/siemens-ix/p-fc5814df.entry.js.map +0 -1
  794. /package/dist/siemens-ix/{p-fb4c79c6.entry.js.map → p-04af3853.entry.js.map} +0 -0
  795. /package/dist/siemens-ix/{p-4df0cdd7.entry.js.map → p-04ec538b.entry.js.map} +0 -0
  796. /package/dist/siemens-ix/{p-af099ca4.entry.js.map → p-0632731e.entry.js.map} +0 -0
  797. /package/dist/siemens-ix/{p-0d2a6886.entry.js.map → p-091b036d.entry.js.map} +0 -0
  798. /package/dist/siemens-ix/{p-2946fd70.entry.js.map → p-0fafba48.entry.js.map} +0 -0
  799. /package/dist/siemens-ix/{p-7076210b.entry.js.map → p-1483f65d.entry.js.map} +0 -0
  800. /package/dist/siemens-ix/{p-c1968b80.entry.js.map → p-1bd98772.entry.js.map} +0 -0
  801. /package/dist/siemens-ix/{p-8629db91.entry.js.map → p-25f1749c.entry.js.map} +0 -0
  802. /package/dist/siemens-ix/{p-5696bb62.entry.js.map → p-306269ae.entry.js.map} +0 -0
  803. /package/dist/siemens-ix/{p-b3b23af7.entry.js.map → p-35fff1e6.entry.js.map} +0 -0
  804. /package/dist/siemens-ix/{p-92a18c10.entry.js.map → p-411f51c5.entry.js.map} +0 -0
  805. /package/dist/siemens-ix/{p-f78246bd.entry.js.map → p-44a27b29.entry.js.map} +0 -0
  806. /package/dist/siemens-ix/{p-d03df401.entry.js.map → p-49d3fc15.entry.js.map} +0 -0
  807. /package/dist/siemens-ix/{p-113cc793.entry.js.map → p-5af99eaa.entry.js.map} +0 -0
  808. /package/dist/siemens-ix/{p-c1222581.entry.js.map → p-63f0755e.entry.js.map} +0 -0
  809. /package/dist/siemens-ix/{p-14a41c8c.entry.js.map → p-6618b2db.entry.js.map} +0 -0
  810. /package/dist/siemens-ix/{p-0653a145.entry.js.map → p-67f44540.entry.js.map} +0 -0
  811. /package/dist/siemens-ix/{p-53352bfb.entry.js.map → p-77273517.entry.js.map} +0 -0
  812. /package/dist/siemens-ix/{p-882a0233.entry.js.map → p-78ac2ff1.entry.js.map} +0 -0
  813. /package/dist/siemens-ix/{p-32375ddb.entry.js.map → p-7947ef3d.entry.js.map} +0 -0
  814. /package/dist/siemens-ix/{p-fb47546b.entry.js.map → p-7c2f34f0.entry.js.map} +0 -0
  815. /package/dist/siemens-ix/{p-7faa148f.entry.js.map → p-82d33168.entry.js.map} +0 -0
  816. /package/dist/siemens-ix/{p-052340f9.entry.js.map → p-8acc09aa.entry.js.map} +0 -0
  817. /package/dist/siemens-ix/{p-6fd7ecd0.entry.js.map → p-9079f6c8.entry.js.map} +0 -0
  818. /package/dist/siemens-ix/{p-16b923e9.entry.js.map → p-9bdda7ff.entry.js.map} +0 -0
  819. /package/dist/siemens-ix/{p-2c4c03d4.entry.js.map → p-aa814811.entry.js.map} +0 -0
  820. /package/dist/siemens-ix/{p-feac09bc.entry.js.map → p-ba24e694.entry.js.map} +0 -0
  821. /package/dist/siemens-ix/{p-44db3646.entry.js.map → p-c05a98c8.entry.js.map} +0 -0
  822. /package/dist/siemens-ix/{p-71315e2e.entry.js.map → p-c072ddb5.entry.js.map} +0 -0
  823. /package/dist/siemens-ix/{p-8d0758c1.entry.js.map → p-c7e58e9e.entry.js.map} +0 -0
  824. /package/dist/siemens-ix/{p-4430117a.entry.js.map → p-c81c4b9d.entry.js.map} +0 -0
  825. /package/dist/siemens-ix/{p-d950c3a8.entry.js.map → p-cc65617d.entry.js.map} +0 -0
  826. /package/dist/siemens-ix/{p-1a122c76.entry.js.map → p-d300b332.entry.js.map} +0 -0
  827. /package/dist/siemens-ix/{p-ff1ac5b3.entry.js.map → p-e14384df.entry.js.map} +0 -0
  828. /package/dist/siemens-ix/{p-bea7c748.entry.js.map → p-ee96d1eb.entry.js.map} +0 -0
  829. /package/dist/siemens-ix/{p-bc2c74c5.entry.js.map → p-fd5bee44.entry.js.map} +0 -0
  830. /package/dist/siemens-ix/{p-dcb3e5be.entry.js.map → p-ffa856df.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * SPDX-FileCopyrightText: 2023 Siemens AG
2
+ * SPDX-FileCopyrightText: 2024 Siemens AG
3
3
  *
4
4
  * SPDX-License-Identifier: MIT
5
5
  *
@@ -1 +1 @@
1
- {"file":"shadow-dom.js","mappings":"AAAA;;;;;;;;SAQgB,cAAc,CAAC,QAAgB,EAAE,EAAO;IACtD,IAAI,CAAC,EAAE,EAAE;QACP,OAAO,IAAI,CAAC;KACb;IACD,QACE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;QACpB,cAAc,CAAC,QAAQ,EAAG,EAAE,CAAC,WAAW,EAAU,CAAC,IAAI,CAAC,EACxD;AACJ,CAAC;SAEe,kBAAkB,CAAU,IAAS;IACnD,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC;SAEe,kBAAkB,CAAC,IAAS;IAC1C,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,KAAK,CAAC;KACd;IACD,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AAC/D,CAAC;SAYe,iBAAiB,CAAC,IAAU,EAAE,QAAgB;IAC5D,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,IAAI,IAAI,YAAY,UAAU,EAAE;QAC9B,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KAC/C;IAED,IAAI,IAAI,YAAY,WAAW,EAAE;QAC/B,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC;SACb;aAAM;YACL,OAAO,iBAAiB,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;SACrD;KACF;IAED,OAAO,iBAAiB,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AACtD;;;;","names":[],"sources":["src/components/utils/shadow-dom.ts"],"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 */\nexport function closestElement(selector: string, el: any) {\n if (!el) {\n return null;\n }\n return (\n el.closest(selector) ||\n closestElement(selector, (el.getRootNode() as any).host)\n );\n}\n\nexport function getSlottedElements<R = any>(slot: any): R[] {\n return slot.assignedElements({ flatten: true });\n}\n\nexport function hasSlottedElements(slot: any) {\n if (!slot) {\n return false;\n }\n return slot.assignedElements({ flatten: true }).length !== 0;\n}\n\nexport function containsElement(target: Element, element: Element) {\n const hasShadowDom = target.shadowRoot;\n\n if (hasShadowDom) {\n target.contains(element) || target.shadowRoot.contains(element);\n }\n\n return target.contains(element);\n}\n\nexport function closestPassShadow(node: Node, selector: string) {\n if (!node) {\n return null;\n }\n\n if (node instanceof ShadowRoot) {\n return closestPassShadow(node.host, selector);\n }\n\n if (node instanceof HTMLElement) {\n if (node.matches(selector)) {\n return node;\n } else {\n return closestPassShadow(node.parentNode, selector);\n }\n }\n\n return closestPassShadow(node.parentNode, selector);\n}\n"],"version":3}
1
+ {"file":"shadow-dom.js","mappings":"AAAA;;;;;;;;SAQgB,cAAc,CAAC,QAAgB,EAAE,EAAO;IACtD,IAAI,CAAC,EAAE,EAAE;QACP,OAAO,IAAI,CAAC;KACb;IACD,QACE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;QACpB,cAAc,CAAC,QAAQ,EAAG,EAAE,CAAC,WAAW,EAAU,CAAC,IAAI,CAAC,EACxD;AACJ,CAAC;SAEe,kBAAkB,CAAU,IAAS;IACnD,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC;SAEe,kBAAkB,CAAC,IAAS;IAC1C,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,KAAK,CAAC;KACd;IACD,OAAO,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;AAC/D,CAAC;SAYe,iBAAiB,CAAC,IAAU,EAAE,QAAgB;IAC5D,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,IAAI,IAAI,YAAY,UAAU,EAAE;QAC9B,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KAC/C;IAED,IAAI,IAAI,YAAY,WAAW,EAAE;QAC/B,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC;SACb;aAAM;YACL,OAAO,iBAAiB,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;SACrD;KACF;IAED,OAAO,iBAAiB,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AACtD;;;;","names":[],"sources":["src/components/utils/shadow-dom.ts"],"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 */\nexport function closestElement(selector: string, el: any) {\n if (!el) {\n return null;\n }\n return (\n el.closest(selector) ||\n closestElement(selector, (el.getRootNode() as any).host)\n );\n}\n\nexport function getSlottedElements<R = any>(slot: any): R[] {\n return slot.assignedElements({ flatten: true });\n}\n\nexport function hasSlottedElements(slot: any) {\n if (!slot) {\n return false;\n }\n return slot.assignedElements({ flatten: true }).length !== 0;\n}\n\nexport function containsElement(target: Element, element: Element) {\n const hasShadowDom = target.shadowRoot;\n\n if (hasShadowDom) {\n target.contains(element) || target.shadowRoot.contains(element);\n }\n\n return target.contains(element);\n}\n\nexport function closestPassShadow(node: Node, selector: string) {\n if (!node) {\n return null;\n }\n\n if (node instanceof ShadowRoot) {\n return closestPassShadow(node.host, selector);\n }\n\n if (node instanceof HTMLElement) {\n if (node.matches(selector)) {\n return node;\n } else {\n return closestPassShadow(node.parentNode, selector);\n }\n }\n\n return closestPassShadow(node.parentNode, selector);\n}\n"],"version":3}
@@ -13,7 +13,7 @@ const Spinner = /*@__PURE__*/ proxyCustomElement(class Spinner extends HTMLEleme
13
13
  this.hideTrack = false;
14
14
  }
15
15
  render() {
16
- return (h(Host, { key: 'b83203aa7712519c8d12c8ff55378edc167b43f7', class: {
16
+ return (h(Host, { key: '0146dd2225f65f26b9e2853cbb13072e4df5206c', class: {
17
17
  primary: this.variant === 'primary',
18
18
  'xx-small': this.size === 'xx-small',
19
19
  'x-small': this.size === 'x-small',
@@ -247,13 +247,13 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class Tabs extends HTMLElement {
247
247
  });
248
248
  }
249
249
  render() {
250
- return (h(Host, { key: '014b3afcc4165f3c3aa0800ea6f12c15d138b48b' }, this.showArrowPrevious && (h("div", { key: '6c98e2c2957c96970d42d5abdf959f325e1c05b8', class: "arrow", onClick: () => this.move(this.scrollAmount, true) }, h("ix-icon", { key: '55f46b38e62a863415fa5d51da48a1be19303b78', name: 'chevron-left-small' }))), h("div", { key: 'c0528e9e703746cc1acc63c1b68c4d9ee3a01a04', class: {
250
+ return (h(Host, { key: 'e10ac5f7e421ca20215339ef7e72c309da7132cd' }, this.showArrowPrevious && (h("div", { key: 'e800708e789600cc2784b8c1515e3dc03b002ee9', class: "arrow", onClick: () => this.move(this.scrollAmount, true) }, h("ix-icon", { key: 'd4c5fbc8e63d595c8fb92bf04d3462ea19446229', name: 'chevron-left-small' }))), h("div", { key: '908f08797515f007fb3320e157fa03a67cadcb25', class: {
251
251
  'tab-items': true,
252
252
  'overflow-shadow': true,
253
253
  'shadow-left': this.showArrowPrevious,
254
254
  'shadow-right': this.showArrowNext,
255
255
  'shadow-both': this.showArrowNext && this.showArrowPrevious,
256
- } }, h("div", { key: 'bb6174f8e9a9543ee928a70de23500edbedaeb04', class: "items-content" }, h("slot", { key: 'ba881f7c4784685ebdb1f0a2581c4691f2a8f1b9' }))), this.showArrowNext && (h("div", { key: '743123a5b14ed6a473c21b742f54cbf4ae4405da', class: "arrow right", onClick: () => this.move(-this.scrollAmount, true) }, h("ix-icon", { key: 'd67ab90bf1b620791ca9e84f7ace8b7a04a7a772', name: 'chevron-right-small' })))));
256
+ } }, h("div", { key: 'd63da9e8e146f3f7dc4376cb476a1ccfbe674e6a', class: "items-content" }, h("slot", { key: '781307adc791f851938edafb44a3be14a56e5eb8' }))), this.showArrowNext && (h("div", { key: '5ec04a7c0a53b73fdd1de1fdf89e4f48aa105c11', class: "arrow right", onClick: () => this.move(-this.scrollAmount, true) }, h("ix-icon", { key: 'cc7249abe9bfc978461dea999922251a743bdf84', name: 'chevron-right-small' })))));
257
257
  }
258
258
  get hostElement() { return this; }
259
259
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"tabs.js","mappings":";;AAAA;;;;;;;;AAWA;;;;;;AAMO,MAAM,6BAA6B,GAAG,CAC3C,QAAkC;IAElC,IAAI,OAAO,oCAAoC,KAAK,UAAU,EAAE;QAC9D,OAAO,oCAAoC,CAAC,QAAQ,CAAC,CAAC;KACvD;IACD,IAAI,OAAO,qBAAqB,KAAK,UAAU,EAAE;QAC/C,OAAO,qBAAqB,CAAC,QAAQ,CAAC,CAAC;KACxC;IACD,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC;;AC3BD,MAAM,OAAO,GAAG,svEAAsvE,CAAC;AACvwE,qBAAe,OAAO;;MC2BT,IAAI;;;;;;QA0CP,oBAAe,GAAG,MAAM,CAAC,UAAU,CAAC;QAGpC,gBAAW,GAGf;YACF,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,IAAI;SACd,CAAC;qBA7Cc,KAAK;uBAKH,KAAK;wBAKa,CAAC;sBAKE,MAAM;yBAKP,QAAQ;0BASxB,CAAC;mCACQ,CAAC;4BACR,GAAG;kCACG,CAAC;iCACF,KAAK;6BACT,KAAK;;IAc9B,cAAc;QACZ,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,UAAU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IAAI,CAAC,aAAa;gBAClC,aAAa,EAAE,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,iBAAiB;aAC5D,IAED,4DAAK,KAAK,EAAC,eAAe,IACxB,8DAAa,CACT,CACF,EACL,IAAI,CAAC,aAAa,KACjB,4DACE,KAAK,EAAC,aAAa,EACnB,OAAO,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,IAElD,gEAAS,IAAI,EAAE,qBAAqB,GAAY,CAC5C,CACP,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/utils/requestAnimationFrame.ts","src/components/tabs/tabs.scss?tag=ix-tabs&encapsulation=shadow","src/components/tabs/tabs.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\ndeclare const __zone_symbol__requestAnimationFrame: any;\n\n/**\n * Prevents angular from change detection when requesting an animation frame\n *\n * Credits goes to:\n * https://github.com/ionic-team/ionic-framework/blob/main/core/src/utils/helpers.ts\n */\nexport const requestAnimationFrameNoNgZone = (\n callback: (...args: any[]) => void\n) => {\n if (typeof __zone_symbol__requestAnimationFrame === 'function') {\n return __zone_symbol__requestAnimationFrame(callback);\n }\n if (typeof requestAnimationFrame === 'function') {\n return requestAnimationFrame(callback);\n }\n return setTimeout(callback);\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@import 'common-variables';\n@import 'mixins/text-truncation';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n width: auto;\n display: flex;\n align-items: center;\n position: relative;\n\n .tab-items {\n overflow: hidden;\n scroll-behavior: smooth;\n width: 100%;\n\n .items-content {\n display: flex;\n align-items: center;\n }\n }\n\n .arrow {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n top: 0;\n bottom: 0;\n left: 0;\n margin: auto 0;\n border-radius: 4px;\n color: var(--theme-btn-invisible-primary--color);\n background-color: var(--theme-btn-invisible-primary--background);\n z-index: 2;\n\n &:hover {\n color: var(--theme-btn-invisible-primary--color--hover);\n background-color: var(--theme-btn-invisible-primary--background--hover);\n }\n\n &:active {\n color: var(--theme-btn-invisible-primary--color--active);\n background-color: var(--theme-btn-invisible-primary--background--active);\n }\n\n &.right {\n left: auto;\n right: 0;\n }\n }\n\n .overflow-shadow {\n display: block;\n position: relative;\n height: 100%;\n width: 100%;\n pointer-events: all;\n\n &.shadow-left {\n mask-image: linear-gradient(90deg, transparent 0px, black 45px);\n }\n\n &.shadow-right {\n mask-image: linear-gradient(\n 90deg,\n black calc(100% - 45px),\n transparent 100%\n );\n }\n\n &.shadow-both {\n mask-image: linear-gradient(\n 90deg,\n transparent 0px,\n black 45px,\n black calc(100% - 45px),\n transparent 100%\n );\n }\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 {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { requestAnimationFrameNoNgZone } from '../utils/requestAnimationFrame';\n\n@Component({\n tag: 'ix-tabs',\n styleUrl: 'tabs.scss',\n shadow: true,\n})\nexport class Tabs {\n @Element() hostElement!: HTMLIxTabsElement;\n\n /**\n * Set tab items to small size\n */\n @Prop() small = false;\n\n /**\n * Set rounded tabs\n */\n @Prop() rounded = false;\n\n /**\n * Set default selected tab by index\n */\n @Prop({ mutable: true }) selected = 0;\n\n /**\n * Set layout width style\n */\n @Prop() layout: 'auto' | 'stretched' = 'auto';\n\n /**\n * Set placement style\n */\n @Prop() placement: 'bottom' | 'top' = 'bottom';\n\n /**\n * `selected` property changed\n *\n * @since 2.0.0\n */\n @Event() selectedChange!: EventEmitter<number>;\n\n @State() totalItems = 0;\n @State() currentScrollAmount = 0;\n @State() scrollAmount = 100;\n @State() scrollActionAmount = 0;\n @State() showArrowPrevious = false;\n @State() showArrowNext = false;\n\n private windowStartSize = window.innerWidth;\n private resizeObserver?: ResizeObserver;\n\n private clickAction: {\n timeout: NodeJS.Timeout | null;\n isClick: boolean;\n } = {\n timeout: null,\n isClick: true,\n };\n\n @Listen('resize', { target: 'window' })\n onWindowResize() {\n this.totalItems = 0;\n this.totalItems = this.getTabs().length;\n\n if (this.windowStartSize === 0)\n return (this.windowStartSize = window.innerWidth);\n this.move(this.windowStartSize - window.innerWidth);\n this.windowStartSize = window.innerWidth;\n }\n\n private getTabs() {\n return Array.from(this.hostElement.querySelectorAll('ix-tab-item'));\n }\n\n private getTab(tabIndex: number) {\n return this.getTabs()[tabIndex];\n }\n\n private getTabsWrapper() {\n return this.hostElement.shadowRoot?.querySelector('.items-content');\n }\n\n private initResizeObserver() {\n const parentElement = this.hostElement.parentElement;\n if (!parentElement) return;\n this.resizeObserver = new ResizeObserver(() => {\n this.renderArrows();\n });\n this.resizeObserver.observe(parentElement);\n }\n\n private showArrows() {\n try {\n const tabWrapper = this.getTabsWrapper();\n return (\n tabWrapper &&\n tabWrapper.scrollWidth >\n Math.ceil(tabWrapper.getBoundingClientRect().width) &&\n this.layout === 'auto'\n );\n } catch (error) {\n return false;\n }\n }\n\n private showPreviousArrow() {\n try {\n return this.showArrows() === true && this.scrollActionAmount < 0;\n } catch (error) {\n return false;\n }\n }\n\n private showNextArrow() {\n try {\n const tabWrapper = this.getTabsWrapper();\n\n if (!tabWrapper) {\n return false;\n }\n\n const tabWrapperRect = tabWrapper.getBoundingClientRect();\n\n return (\n this.showArrows() === true &&\n this.scrollActionAmount >\n (tabWrapper.scrollWidth - tabWrapperRect.width) * -1\n );\n } catch (error) {\n return false;\n }\n }\n\n private move(amount: number, click = false) {\n const tabsWrapper = this.getTabsWrapper();\n\n if (!tabsWrapper) {\n return;\n }\n\n const tabsWrapperVisibleWidth = tabsWrapper.getBoundingClientRect().width;\n const maxScrollWidth =\n -this.currentScrollAmount +\n tabsWrapperVisibleWidth -\n tabsWrapper.scrollWidth;\n\n amount = amount < maxScrollWidth ? maxScrollWidth : amount;\n amount += this.currentScrollAmount;\n amount = Math.min(amount, 0);\n\n const styles = [\n `transform: translateX(${amount}px);`,\n click ? 'transition: all ease-in-out 400ms;' : '',\n ].join('');\n\n tabsWrapper.setAttribute('style', styles);\n\n if (click) this.currentScrollAmount = this.scrollActionAmount = amount;\n else this.scrollActionAmount = amount;\n }\n\n @Watch('selected')\n onSelectedChange(newValue: number) {\n if (!this.showArrows()) return;\n\n const tabRect = this.getTab(newValue).getBoundingClientRect();\n const wrapperWidth = this.getTabsWrapper()?.clientWidth;\n const arrowWidth = 32;\n\n if (tabRect.left < arrowWidth) {\n this.move(-tabRect.left + arrowWidth, true);\n } else if (wrapperWidth && tabRect.right > wrapperWidth - arrowWidth) {\n this.move(wrapperWidth - tabRect.right - arrowWidth, true);\n }\n }\n\n private setSelected(index: number) {\n this.selected = index;\n }\n\n private clickTab(index: number) {\n if (!this.clickAction.isClick || this.dragStop()) {\n return;\n }\n\n const { defaultPrevented } = this.selectedChange.emit(index);\n if (defaultPrevented) {\n return;\n }\n\n this.setSelected(index);\n }\n\n private dragStart(element: HTMLIxTabItemElement, event: MouseEvent) {\n if (!this.showArrows()) return;\n if (event.button > 0) return;\n\n this.clickAction.timeout =\n this.clickAction.timeout === null\n ? setTimeout(() => (this.clickAction.isClick = false), 300)\n : null;\n\n const tabPositionX = parseFloat(window.getComputedStyle(element).left);\n const mousedownPositionX = event.clientX;\n const move = (event: MouseEvent) =>\n this.dragMove(event, tabPositionX, mousedownPositionX);\n const windowClick = () => {\n window.removeEventListener('mousemove', move, false);\n window.removeEventListener('click', windowClick, false);\n this.dragStop();\n };\n window.addEventListener('click', windowClick);\n window.addEventListener('mousemove', move, false);\n }\n\n private dragMove(event: MouseEvent, tabX: number, mousedownX: number) {\n this.move(event.clientX + tabX - mousedownX);\n }\n\n private dragStop() {\n if (this.clickAction.timeout) {\n clearTimeout(this.clickAction.timeout);\n this.clickAction.timeout = null;\n }\n\n if (this.clickAction.isClick) return false;\n\n this.currentScrollAmount = this.scrollActionAmount;\n this.clickAction.isClick = true;\n\n return true;\n }\n\n componentWillLoad() {\n const tabs = this.getTabs();\n\n tabs.map((element, index) => {\n if (this.small) element.setAttribute('small', 'true');\n\n if (this.rounded) element.setAttribute('rounded', 'true');\n\n element.setAttribute('layout', this.layout);\n element.setAttribute(\n 'selected',\n index === this.selected ? 'true' : 'false'\n );\n\n element.setAttribute('placement', this.placement);\n });\n\n this.initResizeObserver();\n }\n\n componentDidRender() {\n const tabs = this.getTabs();\n this.totalItems = tabs.length;\n\n tabs.map((element, index) => {\n element.setAttribute(\n 'selected',\n index === this.selected ? 'true' : 'false'\n );\n });\n }\n\n componentWillRender() {\n this.renderArrows();\n }\n\n private renderArrows() {\n requestAnimationFrameNoNgZone(() => {\n this.showArrowNext = this.showNextArrow();\n this.showArrowPrevious = this.showPreviousArrow();\n });\n }\n\n componentDidLoad() {\n const tabs = this.getTabs();\n tabs.forEach((element) => {\n element.addEventListener('mousedown', (event) =>\n this.dragStart(element, event)\n );\n });\n }\n\n disconnectedCallback() {\n this.resizeObserver?.disconnect();\n }\n\n @Listen('tabClick')\n onTabClick(event: CustomEvent) {\n if (event.defaultPrevented) {\n return;\n }\n\n const target = event.target;\n const tabs = this.getTabs();\n\n tabs.forEach((tab, index) => {\n if (!tab.disabled && tab === target) {\n this.clickTab(index);\n }\n });\n }\n\n render() {\n return (\n <Host>\n {this.showArrowPrevious && (\n <div class=\"arrow\" onClick={() => this.move(this.scrollAmount, true)}>\n <ix-icon name={'chevron-left-small'}></ix-icon>\n </div>\n )}\n <div\n class={{\n 'tab-items': true,\n 'overflow-shadow': true,\n 'shadow-left': this.showArrowPrevious,\n 'shadow-right': this.showArrowNext,\n 'shadow-both': this.showArrowNext && this.showArrowPrevious,\n }}\n >\n <div class=\"items-content\">\n <slot></slot>\n </div>\n </div>\n {this.showArrowNext && (\n <div\n class=\"arrow right\"\n onClick={() => this.move(-this.scrollAmount, true)}\n >\n <ix-icon name={'chevron-right-small'}></ix-icon>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"tabs.js","mappings":";;AAAA;;;;;;;;AAWA;;;;;;AAMO,MAAM,6BAA6B,GAAG,CAC3C,QAAkC;IAElC,IAAI,OAAO,oCAAoC,KAAK,UAAU,EAAE;QAC9D,OAAO,oCAAoC,CAAC,QAAQ,CAAC,CAAC;KACvD;IACD,IAAI,OAAO,qBAAqB,KAAK,UAAU,EAAE;QAC/C,OAAO,qBAAqB,CAAC,QAAQ,CAAC,CAAC;KACxC;IACD,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC;;AC3BD,MAAM,OAAO,GAAG,svEAAsvE,CAAC;AACvwE,qBAAe,OAAO;;MC2BT,IAAI;;;;;;QA0CP,oBAAe,GAAG,MAAM,CAAC,UAAU,CAAC;QAGpC,gBAAW,GAGf;YACF,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,IAAI;SACd,CAAC;qBA7Cc,KAAK;uBAKH,KAAK;wBAKa,CAAC;sBAKE,MAAM;yBAKP,QAAQ;0BASxB,CAAC;mCACQ,CAAC;4BACR,GAAG;kCACG,CAAC;iCACF,KAAK;6BACT,KAAK;;IAc9B,cAAc;QACZ,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QAExC,IAAI,IAAI,CAAC,eAAe,KAAK,CAAC;YAC5B,QAAQ,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,UAAU,EAAE;QACpD,IAAI,CAAC,I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ACE,KAAK,EAAC,aAAa,EACnB,OAAO,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,IAElD,gEAAS,IAAI,EAAE,qBAAqB,GAAY,CAC5C,CACP,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/utils/requestAnimationFrame.ts","src/components/tabs/tabs.scss?tag=ix-tabs&encapsulation=shadow","src/components/tabs/tabs.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\ndeclare const __zone_symbol__requestAnimationFrame: any;\n\n/**\n * Prevents angular from change detection when requesting an animation frame\n *\n * Credits goes to:\n * https://github.com/ionic-team/ionic-framework/blob/main/core/src/utils/helpers.ts\n */\nexport const requestAnimationFrameNoNgZone = (\n callback: (...args: any[]) => void\n) => {\n if (typeof __zone_symbol__requestAnimationFrame === 'function') {\n return __zone_symbol__requestAnimationFrame(callback);\n }\n if (typeof requestAnimationFrame === 'function') {\n return requestAnimationFrame(callback);\n }\n return setTimeout(callback);\n};\n","/*\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\n@import 'common-variables';\n@import 'mixins/text-truncation';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n width: auto;\n display: flex;\n align-items: center;\n position: relative;\n\n .tab-items {\n overflow: hidden;\n scroll-behavior: smooth;\n width: 100%;\n\n .items-content {\n display: flex;\n align-items: center;\n }\n }\n\n .arrow {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n top: 0;\n bottom: 0;\n left: 0;\n margin: auto 0;\n border-radius: 4px;\n color: var(--theme-btn-invisible-primary--color);\n background-color: var(--theme-btn-invisible-primary--background);\n z-index: 2;\n\n &:hover {\n color: var(--theme-btn-invisible-primary--color--hover);\n background-color: var(--theme-btn-invisible-primary--background--hover);\n }\n\n &:active {\n color: var(--theme-btn-invisible-primary--color--active);\n background-color: var(--theme-btn-invisible-primary--background--active);\n }\n\n &.right {\n left: auto;\n right: 0;\n }\n }\n\n .overflow-shadow {\n display: block;\n position: relative;\n height: 100%;\n width: 100%;\n pointer-events: all;\n\n &.shadow-left {\n mask-image: linear-gradient(90deg, transparent 0px, black 45px);\n }\n\n &.shadow-right {\n mask-image: linear-gradient(\n 90deg,\n black calc(100% - 45px),\n transparent 100%\n );\n }\n\n &.shadow-both {\n mask-image: linear-gradient(\n 90deg,\n transparent 0px,\n black 45px,\n black calc(100% - 45px),\n transparent 100%\n );\n }\n }\n}\n","/*\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 {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { requestAnimationFrameNoNgZone } from '../utils/requestAnimationFrame';\n\n@Component({\n tag: 'ix-tabs',\n styleUrl: 'tabs.scss',\n shadow: true,\n})\nexport class Tabs {\n @Element() hostElement!: HTMLIxTabsElement;\n\n /**\n * Set tab items to small size\n */\n @Prop() small = false;\n\n /**\n * Set rounded tabs\n */\n @Prop() rounded = false;\n\n /**\n * Set default selected tab by index\n */\n @Prop({ mutable: true }) selected = 0;\n\n /**\n * Set layout width style\n */\n @Prop() layout: 'auto' | 'stretched' = 'auto';\n\n /**\n * Set placement style\n */\n @Prop() placement: 'bottom' | 'top' = 'bottom';\n\n /**\n * `selected` property changed\n *\n * @since 2.0.0\n */\n @Event() selectedChange!: EventEmitter<number>;\n\n @State() totalItems = 0;\n @State() currentScrollAmount = 0;\n @State() scrollAmount = 100;\n @State() scrollActionAmount = 0;\n @State() showArrowPrevious = false;\n @State() showArrowNext = false;\n\n private windowStartSize = window.innerWidth;\n private resizeObserver?: ResizeObserver;\n\n private clickAction: {\n timeout: NodeJS.Timeout | null;\n isClick: boolean;\n } = {\n timeout: null,\n isClick: true,\n };\n\n @Listen('resize', { target: 'window' })\n onWindowResize() {\n this.totalItems = 0;\n this.totalItems = this.getTabs().length;\n\n if (this.windowStartSize === 0)\n return (this.windowStartSize = window.innerWidth);\n this.move(this.windowStartSize - window.innerWidth);\n this.windowStartSize = window.innerWidth;\n }\n\n private getTabs() {\n return Array.from(this.hostElement.querySelectorAll('ix-tab-item'));\n }\n\n private getTab(tabIndex: number) {\n return this.getTabs()[tabIndex];\n }\n\n private getTabsWrapper() {\n return this.hostElement.shadowRoot?.querySelector('.items-content');\n }\n\n private initResizeObserver() {\n const parentElement = this.hostElement.parentElement;\n if (!parentElement) return;\n this.resizeObserver = new ResizeObserver(() => {\n this.renderArrows();\n });\n this.resizeObserver.observe(parentElement);\n }\n\n private showArrows() {\n try {\n const tabWrapper = this.getTabsWrapper();\n return (\n tabWrapper &&\n tabWrapper.scrollWidth >\n Math.ceil(tabWrapper.getBoundingClientRect().width) &&\n this.layout === 'auto'\n );\n } catch (error) {\n return false;\n }\n }\n\n private showPreviousArrow() {\n try {\n return this.showArrows() === true && this.scrollActionAmount < 0;\n } catch (error) {\n return false;\n }\n }\n\n private showNextArrow() {\n try {\n const tabWrapper = this.getTabsWrapper();\n\n if (!tabWrapper) {\n return false;\n }\n\n const tabWrapperRect = tabWrapper.getBoundingClientRect();\n\n return (\n this.showArrows() === true &&\n this.scrollActionAmount >\n (tabWrapper.scrollWidth - tabWrapperRect.width) * -1\n );\n } catch (error) {\n return false;\n }\n }\n\n private move(amount: number, click = false) {\n const tabsWrapper = this.getTabsWrapper();\n\n if (!tabsWrapper) {\n return;\n }\n\n const tabsWrapperVisibleWidth = tabsWrapper.getBoundingClientRect().width;\n const maxScrollWidth =\n -this.currentScrollAmount +\n tabsWrapperVisibleWidth -\n tabsWrapper.scrollWidth;\n\n amount = amount < maxScrollWidth ? maxScrollWidth : amount;\n amount += this.currentScrollAmount;\n amount = Math.min(amount, 0);\n\n const styles = [\n `transform: translateX(${amount}px);`,\n click ? 'transition: all ease-in-out 400ms;' : '',\n ].join('');\n\n tabsWrapper.setAttribute('style', styles);\n\n if (click) this.currentScrollAmount = this.scrollActionAmount = amount;\n else this.scrollActionAmount = amount;\n }\n\n @Watch('selected')\n onSelectedChange(newValue: number) {\n if (!this.showArrows()) return;\n\n const tabRect = this.getTab(newValue).getBoundingClientRect();\n const wrapperWidth = this.getTabsWrapper()?.clientWidth;\n const arrowWidth = 32;\n\n if (tabRect.left < arrowWidth) {\n this.move(-tabRect.left + arrowWidth, true);\n } else if (wrapperWidth && tabRect.right > wrapperWidth - arrowWidth) {\n this.move(wrapperWidth - tabRect.right - arrowWidth, true);\n }\n }\n\n private setSelected(index: number) {\n this.selected = index;\n }\n\n private clickTab(index: number) {\n if (!this.clickAction.isClick || this.dragStop()) {\n return;\n }\n\n const { defaultPrevented } = this.selectedChange.emit(index);\n if (defaultPrevented) {\n return;\n }\n\n this.setSelected(index);\n }\n\n private dragStart(element: HTMLIxTabItemElement, event: MouseEvent) {\n if (!this.showArrows()) return;\n if (event.button > 0) return;\n\n this.clickAction.timeout =\n this.clickAction.timeout === null\n ? setTimeout(() => (this.clickAction.isClick = false), 300)\n : null;\n\n const tabPositionX = parseFloat(window.getComputedStyle(element).left);\n const mousedownPositionX = event.clientX;\n const move = (event: MouseEvent) =>\n this.dragMove(event, tabPositionX, mousedownPositionX);\n const windowClick = () => {\n window.removeEventListener('mousemove', move, false);\n window.removeEventListener('click', windowClick, false);\n this.dragStop();\n };\n window.addEventListener('click', windowClick);\n window.addEventListener('mousemove', move, false);\n }\n\n private dragMove(event: MouseEvent, tabX: number, mousedownX: number) {\n this.move(event.clientX + tabX - mousedownX);\n }\n\n private dragStop() {\n if (this.clickAction.timeout) {\n clearTimeout(this.clickAction.timeout);\n this.clickAction.timeout = null;\n }\n\n if (this.clickAction.isClick) return false;\n\n this.currentScrollAmount = this.scrollActionAmount;\n this.clickAction.isClick = true;\n\n return true;\n }\n\n componentWillLoad() {\n const tabs = this.getTabs();\n\n tabs.map((element, index) => {\n if (this.small) element.setAttribute('small', 'true');\n\n if (this.rounded) element.setAttribute('rounded', 'true');\n\n element.setAttribute('layout', this.layout);\n element.setAttribute(\n 'selected',\n index === this.selected ? 'true' : 'false'\n );\n\n element.setAttribute('placement', this.placement);\n });\n\n this.initResizeObserver();\n }\n\n componentDidRender() {\n const tabs = this.getTabs();\n this.totalItems = tabs.length;\n\n tabs.map((element, index) => {\n element.setAttribute(\n 'selected',\n index === this.selected ? 'true' : 'false'\n );\n });\n }\n\n componentWillRender() {\n this.renderArrows();\n }\n\n private renderArrows() {\n requestAnimationFrameNoNgZone(() => {\n this.showArrowNext = this.showNextArrow();\n this.showArrowPrevious = this.showPreviousArrow();\n });\n }\n\n componentDidLoad() {\n const tabs = this.getTabs();\n tabs.forEach((element) => {\n element.addEventListener('mousedown', (event) =>\n this.dragStart(element, event)\n );\n });\n }\n\n disconnectedCallback() {\n this.resizeObserver?.disconnect();\n }\n\n @Listen('tabClick')\n onTabClick(event: CustomEvent) {\n if (event.defaultPrevented) {\n return;\n }\n\n const target = event.target;\n const tabs = this.getTabs();\n\n tabs.forEach((tab, index) => {\n if (!tab.disabled && tab === target) {\n this.clickTab(index);\n }\n });\n }\n\n render() {\n return (\n <Host>\n {this.showArrowPrevious && (\n <div class=\"arrow\" onClick={() => this.move(this.scrollAmount, true)}>\n <ix-icon name={'chevron-left-small'}></ix-icon>\n </div>\n )}\n <div\n class={{\n 'tab-items': true,\n 'overflow-shadow': true,\n 'shadow-left': this.showArrowPrevious,\n 'shadow-right': this.showArrowNext,\n 'shadow-both': this.showArrowNext && this.showArrowPrevious,\n }}\n >\n <div class=\"items-content\">\n <slot></slot>\n </div>\n </div>\n {this.showArrowNext && (\n <div\n class=\"arrow right\"\n onClick={() => this.move(-this.scrollAmount, true)}\n >\n <ix-icon name={'chevron-right-small'}></ix-icon>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -53,11 +53,11 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
53
53
  animationPlayState: this.touched ? 'paused' : 'running',
54
54
  };
55
55
  progressBarClass.push('toast-progress-bar--animated');
56
- return (h(Host, { key: '165e8ce47907c08afaef29ec7741efaddaf59d0f', class: "animate__animated animate__fadeIn" }, h("div", { key: 'fff7c4afb35bf57eead0fa4b484e0843dcf6c163', class: "toast-body", onPointerLeave: () => {
56
+ return (h(Host, { key: 'd52b6e9699ad54687af42f99642eb0c297f97a2e', class: "animate__animated animate__fadeIn" }, h("div", { key: '93a7346e3b7a6ecd2e32f7114f93db78513cb181', class: "toast-body", onPointerLeave: () => {
57
57
  this.touched = false;
58
58
  }, onPointerEnter: () => {
59
59
  this.touched = true;
60
- } }, this.type || this.icon ? (h("div", { class: "toast-icon" }, this.getIcon())) : null, h("div", { key: 'cd9db0e7591fc8cc069608cff6c3824b4063b1df', class: "toast-content" }, this.toastTitle ? (h("div", { class: "toast-title" }, this.toastTitle)) : null, h("div", { key: '5c850aab1090ec83bfbb2ed4be68d665efaa403f', class: "toast-message" }, h("slot", { key: '0f857c156d576f8bc62cca7f2ab50df00fe3e794' }))), h("div", { key: '47db8f9094de72a16be06466bd694923d86492ff', class: "toast-close" }, h("ix-icon-button", { key: 'db141553999f04175cb135c9b89b7655a5eae216', icon: 'close', size: "24", ghost: true, onClick: () => this.closeToast.emit() }))), this.autoClose ? (h("div", { class: progressBarClass.join(' '), style: progressBarStyle, onAnimationEnd: () => {
60
+ } }, this.type || this.icon ? (h("div", { class: "toast-icon" }, this.getIcon())) : null, h("div", { key: '372fd16d6b94d8f2df0eb875d99c8c5199e80572', class: "toast-content" }, this.toastTitle ? (h("div", { class: "toast-title" }, this.toastTitle)) : null, h("div", { key: '1d43ec353af91250b6788b0ee2e44352f581543c', class: "toast-message" }, h("slot", { key: '5ed42d9699d34b6948cfda2b7ed4b1e68f2bac8e' }))), h("div", { key: '40e8ad3252a34ef2cebd6c388fa13e255a1d9f03', class: "toast-close" }, h("ix-icon-button", { key: 'ad4ed057761f4e76126ba68cd012e900ad3899a0', icon: 'close', size: "24", ghost: true, onClick: () => this.closeToast.emit() }))), this.autoClose ? (h("div", { class: progressBarClass.join(' '), style: progressBarStyle, onAnimationEnd: () => {
61
61
  this.close();
62
62
  }, onTransitionEnd: () => {
63
63
  if (this.progress === 0) {
@@ -1 +1 @@
1
- {"file":"toast.js","mappings":";;;;AAAA,MAAM,QAAQ,GAAG,k3EAAk3E,CAAC;AACp4E,sBAAe,QAAQ;;MCyBV,KAAK;;;;;;oBAIU,MAAM;;8BAUP,IAAI;yBAKT,IAAI;;;wBAiBJ,CAAC;uBACF,KAAK;;IAIhB,OAAO;QACb,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,QACE,8BACc,YAAY,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,IAAI,EAAC,IAAI,GACT,EACF;SACH;QAED,QAAQ,IAAI,CAAC,IAAI;YACf,KAAK,MAAM;gBACT,QACE,8BACc,YAAY,EACxB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAC,IAAI,EACT,KAAK,EAAC,gBAAgB,GACtB,EACF;YAEJ,KAAK,OAAO;gBACV,QACE,8BACc,YAAY,EACxB,IAAI,EAAE,OAAO,EACb,IAAI,EAAC,IAAI,EACT,KAAK,EAAC,aAAa,GACnB,EACF;YAEJ,KAAK,SAAS;gBACZ,QACE,8BACc,YAAY,EACxB,IAAI,EAAE,SAAS,EACf,IAAI,EAAC,IAAI,EACT,KAAK,EAAC,eAAe,GACrB,EACF;YAEJ,KAAK,SAAS;gBACZ,QACE,8BACc,YAAY,EACxB,IAAI,EAAE,SAAS,EACf,IAAI,EAAC,IAAI,EACT,KAAK,EAA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AI,CAAC,UAAU,CAAC,IAAI,EAAE,GACrC,CACE,CACF,EACL,IAAI,CAAC,SAAS,IACb,WACE,KAAK,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,EACjC,KAAK,EAAE,gBAAgB,EACvB,cAAc,EAAE;gBACd,IAAI,CAAC,KAAK,EAAE,CAAC;aACd,EACD,eAAe,EAAE;gBACf,IAAI,IAAI,CAAC,QAAQ,KAAK,CAAC,EAAE;oBACvB,IAAI,CAAC,KAAK,EAAE,CAAC;iBACd;aACF,GACI,IACL,IAAI,CACH,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/toast/toast.scss?tag=ix-toast&encapsulation=shadow","src/components/toast/toast.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@import 'mixins/shadow-dom/component';\n@import 'legacy/mixins/fonts';\n\n:host {\n @include ix-component;\n\n display: flex;\n flex-direction: column;\n position: relative;\n min-width: 17.5rem;\n max-width: 17.5rem;\n min-height: 3.5rem;\n\n pointer-events: all;\n\n background-color: var(--theme-toast--background);\n border: var(--theme-toast--border-thickness) solid\n var(--theme-toast--border-color);\n border-radius: var(--theme-toast--border-radius);\n box-shadow: var(--theme-toast--box-shadow);\n\n --animate-duration: #{$medium-time};\n\n .toast-body {\n display: flex;\n position: relative;\n min-height: 3.5rem;\n width: 100%;\n flex-grow: 1;\n padding: 0.75rem;\n\n .toast-icon {\n display: flex;\n align-items: flex-start;\n margin-right: $default-space;\n }\n\n .toast-content {\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n width: 100%;\n\n .toast-title {\n @include text-default-title-single;\n margin: 0.25rem 0px;\n }\n\n .toast-message {\n min-width: 0;\n\n @include text-default;\n }\n }\n\n .toast-icon + .toast-content {\n max-width: 10.25rem;\n }\n }\n\n .toast-close {\n display: flex;\n position: relative;\n pointer-events: all;\n margin-left: auto;\n margin-right: 0px;\n }\n\n .toast-progress-bar {\n position: absolute;\n bottom: 0;\n height: $tiny-space;\n width: 100%;\n background-color: var(--theme-toast-timer-value--background);\n transform-origin: left;\n\n &--animated {\n animation: trackProgress linear 1 forwards;\n }\n }\n\n @keyframes trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\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 {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { ToastType } from './toast-utils';\n\n@Component({\n tag: 'ix-toast',\n styleUrl: 'toast.scss',\n shadow: true,\n})\nexport class Toast {\n /**\n * Toast type\n */\n @Prop() type: ToastType = 'info';\n\n /**\n * Toast title\n */\n @Prop() toastTitle: string;\n\n /**\n * Autoclose title after delay\n */\n @Prop() autoCloseDelay = 5000;\n\n /**\n * Autoclose behavior\n */\n @Prop() autoClose = true;\n\n /**\n * Icon of toast\n */\n @Prop() icon: string;\n\n /**\n * Icon color of toast\n */\n @Prop() iconColor: string;\n\n /**\n * Toast closed\n */\n @Event() closeToast: EventEmitter;\n\n @State() progress = 0;\n @State() touched = false;\n\n @Element() hostElement!: HTMLIxToastElement;\n\n private getIcon() {\n if (this.icon) {\n return (\n <ix-icon\n data-testid=\"toast-icon\"\n name={this.icon}\n color={this.iconColor}\n size=\"24\"\n />\n );\n }\n\n switch (this.type) {\n case 'info':\n return (\n <ix-icon\n data-testid=\"toast-icon\"\n name={'info'}\n size=\"24\"\n color=\"color-std-text\"\n />\n );\n\n case 'error':\n return (\n <ix-icon\n data-testid=\"toast-icon\"\n name={'error'}\n size=\"24\"\n color=\"color-alarm\"\n />\n );\n\n case 'success':\n return (\n <ix-icon\n data-testid=\"toast-icon\"\n name={'success'}\n size=\"24\"\n color=\"color-success\"\n />\n );\n\n case 'warning':\n return (\n <ix-icon\n data-testid=\"toast-icon\"\n name={'warning'}\n size=\"24\"\n color=\"color-warning\"\n />\n );\n\n default:\n return '';\n }\n }\n\n private close() {\n if (this.hostElement) {\n this.hostElement.classList.add('animate__fadeOut');\n }\n setTimeout(() => {\n this.closeToast.emit();\n }, 250);\n }\n\n render() {\n let progressBarStyle: Record<string, string> = {};\n\n const progressBarClass = ['toast-progress-bar'];\n\n progressBarStyle = {\n animationDuration: `${this.autoCloseDelay}ms`,\n animationPlayState: this.touched ? 'paused' : 'running',\n };\n\n progressBarClass.push('toast-progress-bar--animated');\n\n return (\n <Host class=\"animate__animated animate__fadeIn\">\n <div\n class=\"toast-body\"\n onPointerLeave={() => {\n this.touched = false;\n }}\n onPointerEnter={() => {\n this.touched = true;\n }}\n >\n {this.type || this.icon ? (\n <div class=\"toast-icon\">{this.getIcon()}</div>\n ) : null}\n <div class=\"toast-content\">\n {this.toastTitle ? (\n <div class=\"toast-title\">{this.toastTitle}</div>\n ) : null}\n <div class=\"toast-message\">\n <slot></slot>\n </div>\n </div>\n <div class=\"toast-close\">\n <ix-icon-button\n icon={'close'}\n size=\"24\"\n ghost\n onClick={() => this.closeToast.emit()}\n />\n </div>\n </div>\n {this.autoClose ? (\n <div\n class={progressBarClass.join(' ')}\n style={progressBarStyle}\n onAnimationEnd={() => {\n this.close();\n }}\n onTransitionEnd={() => {\n if (this.progress === 0) {\n this.close();\n }\n }}\n ></div>\n ) : null}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"toast.js","mappings":";;;;AAAA,MAAM,QAAQ,GAAG,k3EAAk3E,CAAC;AACp4E,sBAAe,QAAQ;;MCyBV,KAAK;;;;;;oBAIU,MAAM;;8BAUP,IAAI;yBAKT,IAAI;;;wBAiBJ,CAAC;uBACF,KAAK;;IAIhB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CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;QAEtD,QACE,EAAC,IAAI,qDAAC,KAAK,EAAC,mCAAmC,IAC7C,4DACE,KAAK,EAAC,YAAY,EAClB,cAAc,EAAE;gBACd,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;aACtB,EACD,cAAc,EAAE;gBACd,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;aACrB,IAEA,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,IACrB,WAAK,KAAK,EAAC,YAAY,IAAE,IAAI,CAAC,OAAO,EAAE,CAAO,IAC5C,IAAI,EACR,4DAAK,KAAK,EAAC,eAAe,IACvB,IAAI,CAAC,UAAU,IACd,WAAK,KAAK,EAAC,aAAa,IAAE,IAAI,CAAC,UAAU,CAAO,IAC9C,IAAI,EACR,4DAAK,KAAK,EAAC,eAAe,IACxB,8DAAa,CACT,CACF,EACN,4DAAK,KAAK,EAAC,aAAa,IACtB,uEACE,IAAI,EAAE,OAAO,EACb,IAAI,EAAC,IAAI,EACT,KAAK,QACL,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GACrC,CACE,CACF,EACL,IAAI,CAAC,SAAS,IACb,WACE,KAAK,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,EACjC,KAAK,EAAE,gBAAgB,EACvB,cAAc,EAAE;gBACd,IAAI,CAAC,KAAK,EAAE,CAAC;aACd,EACD,eAAe,EAAE;gBACf,IAAI,IAAI,CAAC,QAAQ,KAAK,CAAC,EAAE;oBACvB,IAAI,CAAC,KAAK,EAAE,CAAC;iBACd;aACF,GACI,IACL,IAAI,CACH,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/toast/toast.scss?tag=ix-toast&encapsulation=shadow","src/components/toast/toast.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\n@import 'common-variables';\n@import 'mixins/hover';\n@import 'mixins/text-truncation';\n@import 'mixins/shadow-dom/component';\n@import 'legacy/mixins/fonts';\n\n:host {\n @include ix-component;\n\n display: flex;\n flex-direction: column;\n position: relative;\n min-width: 17.5rem;\n max-width: 17.5rem;\n min-height: 3.5rem;\n\n pointer-events: all;\n\n background-color: var(--theme-toast--background);\n border: var(--theme-toast--border-thickness) solid\n var(--theme-toast--border-color);\n border-radius: var(--theme-toast--border-radius);\n box-shadow: var(--theme-toast--box-shadow);\n\n --animate-duration: #{$medium-time};\n\n .toast-body {\n display: flex;\n position: relative;\n min-height: 3.5rem;\n width: 100%;\n flex-grow: 1;\n padding: 0.75rem;\n\n .toast-icon {\n display: flex;\n align-items: flex-start;\n margin-right: $default-space;\n }\n\n .toast-content {\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n width: 100%;\n\n .toast-title {\n @include text-default-title-single;\n margin: 0.25rem 0px;\n }\n\n .toast-message {\n min-width: 0;\n\n @include text-default;\n }\n }\n\n .toast-icon + .toast-content {\n max-width: 10.25rem;\n }\n }\n\n .toast-close {\n display: flex;\n position: relative;\n pointer-events: all;\n margin-left: auto;\n margin-right: 0px;\n }\n\n .toast-progress-bar {\n position: absolute;\n bottom: 0;\n height: $tiny-space;\n width: 100%;\n background-color: var(--theme-toast-timer-value--background);\n transform-origin: left;\n\n &--animated {\n animation: trackProgress linear 1 forwards;\n }\n }\n\n @keyframes trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n }\n}\n","/*\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 {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { ToastType } from './toast-utils';\n\n@Component({\n tag: 'ix-toast',\n styleUrl: 'toast.scss',\n shadow: true,\n})\nexport class Toast {\n /**\n * Toast type\n */\n @Prop() type: ToastType = 'info';\n\n /**\n * Toast title\n */\n @Prop() toastTitle: string;\n\n /**\n * Autoclose title after delay\n */\n @Prop() autoCloseDelay = 5000;\n\n /**\n * Autoclose behavior\n */\n @Prop() autoClose = true;\n\n /**\n * Icon of toast\n */\n @Prop() icon: string;\n\n /**\n * Icon color of toast\n */\n @Prop() iconColor: string;\n\n /**\n * Toast closed\n */\n @Event() closeToast: EventEmitter;\n\n @State() progress = 0;\n @State() touched = false;\n\n @Element() hostElement!: HTMLIxToastElement;\n\n private getIcon() {\n if (this.icon) {\n return (\n <ix-icon\n data-testid=\"toast-icon\"\n name={this.icon}\n color={this.iconColor}\n size=\"24\"\n />\n );\n }\n\n switch (this.type) {\n case 'info':\n return (\n <ix-icon\n data-testid=\"toast-icon\"\n name={'info'}\n size=\"24\"\n color=\"color-std-text\"\n />\n );\n\n case 'error':\n return (\n <ix-icon\n data-testid=\"toast-icon\"\n name={'error'}\n size=\"24\"\n color=\"color-alarm\"\n />\n );\n\n case 'success':\n return (\n <ix-icon\n data-testid=\"toast-icon\"\n name={'success'}\n size=\"24\"\n color=\"color-success\"\n />\n );\n\n case 'warning':\n return (\n <ix-icon\n data-testid=\"toast-icon\"\n name={'warning'}\n size=\"24\"\n color=\"color-warning\"\n />\n );\n\n default:\n return '';\n }\n }\n\n private close() {\n if (this.hostElement) {\n this.hostElement.classList.add('animate__fadeOut');\n }\n setTimeout(() => {\n this.closeToast.emit();\n }, 250);\n }\n\n render() {\n let progressBarStyle: Record<string, string> = {};\n\n const progressBarClass = ['toast-progress-bar'];\n\n progressBarStyle = {\n animationDuration: `${this.autoCloseDelay}ms`,\n animationPlayState: this.touched ? 'paused' : 'running',\n };\n\n progressBarClass.push('toast-progress-bar--animated');\n\n return (\n <Host class=\"animate__animated animate__fadeIn\">\n <div\n class=\"toast-body\"\n onPointerLeave={() => {\n this.touched = false;\n }}\n onPointerEnter={() => {\n this.touched = true;\n }}\n >\n {this.type || this.icon ? (\n <div class=\"toast-icon\">{this.getIcon()}</div>\n ) : null}\n <div class=\"toast-content\">\n {this.toastTitle ? (\n <div class=\"toast-title\">{this.toastTitle}</div>\n ) : null}\n <div class=\"toast-message\">\n <slot></slot>\n </div>\n </div>\n <div class=\"toast-close\">\n <ix-icon-button\n icon={'close'}\n size=\"24\"\n ghost\n onClick={() => this.closeToast.emit()}\n />\n </div>\n </div>\n {this.autoClose ? (\n <div\n class={progressBarClass.join(' ')}\n style={progressBarStyle}\n onAnimationEnd={() => {\n this.close();\n }}\n onTransitionEnd={() => {\n if (this.progress === 0) {\n this.close();\n }\n }}\n ></div>\n ) : null}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { c as computePosition, s as shift, o as offset, b as arrow, f as flip, a as autoUpdate } from './floating-ui.dom.esm.js';
2
+ import { c as computePosition, s as shift, o as offset, b as arrow, f as flip, h as hide, a as autoUpdate } from './floating-ui.dom.esm.js';
3
3
  import { O as OnListener } from './listener.js';
4
4
  import { d as defineCustomElement$1 } from './typography.js';
5
5
 
@@ -47,7 +47,7 @@ class TooltipController extends OverlayController {
47
47
  }
48
48
  const tooltipController = new TooltipController();
49
49
 
50
- const tooltipCss = ":host{display:inline-block;position:fixed;left:0px;top:0px;z-index:var(--theme-z-index-tooltip);max-width:18.25rem;opacity:0;visibility:collapse !important;overflow-wrap:break-word;border-radius:0.25rem;background-color:var(--theme-tootlip--background);padding:0.375rem 0.75rem 0.375rem 0.875rem;box-shadow:var(--theme-shadow-4)}:host .tooltip-title{display:flex;align-items:center}:host .tooltip-title ::slotted(ix-icon){margin-right:0.35rem}:host(.visible){opacity:1;visibility:visible !important}:host(.visible) .arrow,:host(.visible) .arrow::before{position:absolute;width:12px;height:12px;background:inherit}:host(.visible) .arrow{visibility:hidden}:host(.visible) .arrow::before{visibility:visible;content:\"\";transform:rotate(45deg);background-color:var(--theme-tootlip--background)}";
50
+ const tooltipCss = ":host{display:inline-block;position:fixed;left:0;top:0;z-index:var(--theme-z-index-tooltip);max-width:18.25rem;width:-moz-max-content;width:max-content;opacity:0;visibility:collapse !important;overflow-wrap:break-word;border-radius:0.25rem}:host .tooltip-title{display:flex;align-items:center}:host .tooltip-title ::slotted(ix-icon){margin-right:0.35rem}:host .tooltip-container{display:block;position:relative;width:auto;height:100%;background:var(--theme-tootlip--background);color:var(--theme-color-std-text);padding:0.375rem 0.75rem 0.375rem 0.875rem;box-shadow:var(--theme-shadow-4);border-radius:inherit}:host(.visible){opacity:1;visibility:visible !important}:host(.visible) .arrow,:host(.visible) .arrow::before{position:absolute;width:12px;height:12px;background:inherit}:host(.visible) .arrow{visibility:hidden}:host(.visible) .arrow::before{visibility:visible;content:\"\";transform:rotate(45deg);background-color:var(--theme-tootlip--background)}";
51
51
  const IxTooltipStyle0 = tooltipCss;
52
52
 
53
53
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -108,29 +108,23 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends HTMLEleme
108
108
  }
109
109
  computeArrowPosition({ placement, middlewareData, }) {
110
110
  let { x, y } = middlewareData.arrow;
111
+ const resetPosition = {
112
+ top: 'unset',
113
+ right: 'unset',
114
+ bottom: 'unset',
115
+ left: 'unset',
116
+ };
111
117
  if (placement.startsWith('top')) {
112
- return {
113
- left: numberToPixel(x),
114
- top: numberToPixel(y),
115
- };
118
+ return Object.assign(Object.assign({}, resetPosition), { left: numberToPixel(x), top: numberToPixel(y) });
116
119
  }
117
120
  if (placement.startsWith('right')) {
118
- return {
119
- left: numberToPixel(-6),
120
- top: numberToPixel(y),
121
- };
121
+ return Object.assign(Object.assign({}, resetPosition), { left: numberToPixel(-6), top: numberToPixel(y) });
122
122
  }
123
123
  if (placement.startsWith('bottom')) {
124
- return {
125
- left: numberToPixel(x),
126
- top: numberToPixel(-6),
127
- };
124
+ return Object.assign(Object.assign({}, resetPosition), { left: numberToPixel(x), top: numberToPixel(-6) });
128
125
  }
129
126
  if (placement.startsWith('left')) {
130
- return {
131
- right: numberToPixel(-6),
132
- top: numberToPixel(y),
133
- };
127
+ return Object.assign(Object.assign({}, resetPosition), { right: numberToPixel(-6), top: numberToPixel(y) });
134
128
  }
135
129
  }
136
130
  async computeTooltipPosition(target) {
@@ -145,8 +139,10 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends HTMLEleme
145
139
  }),
146
140
  flip({
147
141
  fallbackStrategy: 'initialPlacement',
142
+ fallbackAxisSideDirection: 'end',
148
143
  padding: 10,
149
144
  }),
145
+ hide(),
150
146
  ],
151
147
  });
152
148
  }
@@ -162,7 +158,13 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends HTMLEleme
162
158
  this.destroyAutoUpdate();
163
159
  this.disposeAutoUpdate = autoUpdate(target, this.hostElement, async () => {
164
160
  setTimeout(async () => {
161
+ var _a;
165
162
  const computeResponse = await this.computeTooltipPosition(target);
163
+ const isHidden = (_a = computeResponse.middlewareData.hide) === null || _a === void 0 ? void 0 : _a.referenceHidden;
164
+ if (isHidden) {
165
+ setTimeout(() => this.hideTooltip());
166
+ resolve(computeResponse);
167
+ }
166
168
  if (computeResponse.middlewareData.arrow) {
167
169
  this.applyTooltipArrowPosition(computeResponse);
168
170
  }
@@ -280,9 +282,9 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends HTMLEleme
280
282
  this.visible = false;
281
283
  }
282
284
  render() {
283
- return (h(Host, { key: '5d57bd50e4b54e59eef7e0ec463cf9cadba6ddc4', class: {
285
+ return (h(Host, { key: '5e39b9dbc226e6a61c11a737a6aebb318827edc3', class: {
284
286
  visible: this.visible,
285
- }, role: "tooltip" }, h("div", { key: '004a422b325b2c26639e479f3bc6a832277c38db', class: 'tooltip-title' }, h("slot", { key: 'dfb6ebe4022d3835b11d7237438358e8dd27191d', name: "title-icon" }), h("ix-typography", { key: 'e4230c3e9c28f53d217e8653fd972749af995dde', variant: "default-title" }, this.titleContent, h("slot", { key: 'bfd75a3ae808f03a552271a9f10c896de28072e2', name: "title-content" }))), h("div", { key: 'b8c20ae1bb16343dca997ecb2ef744d8b18b6ede', class: 'tooltip-content' }, h("slot", { key: 'cb15413ddd0b35a6ceb5dd95beebc855131fb998' })), h("div", { key: '91e9df64725d3ce40f280640374f0e95f89cf67b', class: "arrow" })));
287
+ }, role: "tooltip" }, h("div", { key: '4b9be3a9990c9b81425f2dbef9539054d01aa872', class: "tooltip-container" }, h("div", { key: 'c80f161df92379d45627338c1a11458948756ca5', class: 'tooltip-title' }, h("slot", { key: '9b63297978bd65ecd277eda2205b0639a41c2949', name: "title-icon" }), h("ix-typography", { key: 'ff0813c9f2532be81c5248230e057067cd196ae8', variant: "default-title" }, this.titleContent, h("slot", { key: 'f25947dac855dfcea0f41d39bbae53a593cfa8b0', name: "title-content" }))), h("div", { key: '7b8dd9351fbea202b9bb36bbd187683a4f2d8753', class: 'tooltip-content' }, h("slot", { key: '2b930dcd326294583931e945c1e9de83b17d3953' })), h("div", { key: 'd831b2851ec71fee69250d583387ddcac45cdf8e', class: "arrow" }))));
286
288
  }
287
289
  get hostElement() { return this; }
288
290
  static get style() { return IxTooltipStyle0; }
@@ -1 +1 @@
1
- {"file":"tooltip.js","mappings":";;;;;MAoBa,iBAAiB;IAA9B;QACE,aAAQ,GAA4B,IAAI,GAAG,EAAE,CAAC;KAgC/C;IA9BC,SAAS,CAAC,QAA4B;QACpC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KAC7B;IAED,YAAY,CAAC,QAA4B;QACvC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;KAChC;IAED,OAAO,CAAC,QAA4B;QAClC,IAAI,QAAQ,CAAC,WAAW,IAAI,CAAC,QAAQ,CAAC,WAA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tB;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,EACD,IAAI,EAAC,SAAS,IAEd,4DAAK,KAAK,EAAE,eAAe,IACzB,6DAAM,IAAI,EAAC,YAAY,GAAQ,EAC/B,sEAAe,OAAO,EAAC,eAAe,IACnC,IAAI,CAAC,YAAY,EAClB,6DAAM,IAAI,EAAC,eAAe,GAAQ,CACpB,CACZ,EACN,4DAAK,KAAK,EAAE,iBAAiB,IAC3B,8DAAa,CACT,EACN,4DAAK,KAAK,EAAC,OAAO,GAAO,CACpB,EACP;KACH;;;;;;;;;;;;;;;AApEK;IADL,UAAU,CAAU,SAAS,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC;wCAKtD;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/utils/overlay.ts","src/components/tooltip/tooltip-controller.ts","src/components/tooltip/tooltip.scss?tag=ix-tooltip&encapsulation=shadow","src/components/tooltip/tooltip.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 */\nimport { IxComponent } from '../utils/internal';\n\nexport interface IxOverlayComponent extends IxComponent {\n isPresent(): boolean;\n\n willPresent?(): boolean;\n willDismiss?(): boolean;\n\n present(): void;\n dismiss(): void;\n}\n\nexport class OverlayController {\n overlays: Set<IxOverlayComponent> = new Set();\n\n connected(instance: IxOverlayComponent): void {\n this.overlays.add(instance);\n }\n\n disconnected(instance: IxOverlayComponent): void {\n this.overlays.delete(instance);\n }\n\n present(instance: IxOverlayComponent): void {\n if (instance.willPresent && !instance.willPresent()) {\n return;\n }\n this.dismissOthers(instance);\n instance.present();\n }\n\n dismiss(instance: IxOverlayComponent): void {\n if (instance.willDismiss && !instance.willDismiss()) {\n return;\n }\n instance.dismiss();\n }\n\n private dismissOthers(instance: IxOverlayComponent): void {\n this.overlays.forEach((overlay) => {\n if (overlay !== instance) {\n this.dismiss(overlay);\n }\n });\n }\n}\n","/*\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 { OverlayController } from '../utils/overlay';\n\nclass TooltipController extends OverlayController {}\n\nexport const tooltipController = new TooltipController();\n",":host {\n display: inline-block;\n position: fixed;\n left: 0px;\n top: 0px;\n z-index: var(--theme-z-index-tooltip);\n\n max-width: 18.25rem;\n\n opacity: 0;\n visibility: collapse !important;\n overflow-wrap: break-word;\n\n border-radius: 0.25rem;\n background-color: var(--theme-tootlip--background);\n padding: 0.375rem 0.75rem 0.375rem 0.875rem;\n\n box-shadow: var(--theme-shadow-4);\n\n .tooltip-title {\n display: flex;\n align-items: center;\n\n ::slotted(ix-icon) {\n margin-right: 0.35rem;\n }\n }\n}\n\n:host(.visible) {\n opacity: 1;\n visibility: visible !important;\n}\n\n:host(.visible) {\n .arrow,\n .arrow::before {\n position: absolute;\n width: 12px;\n height: 12px;\n background: inherit;\n }\n\n .arrow {\n visibility: hidden;\n }\n\n .arrow::before {\n visibility: visible;\n content: '';\n transform: rotate(45deg);\n background-color: var(--theme-tootlip--background);\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 arrow,\n autoUpdate,\n computePosition,\n ComputePositionReturn,\n flip,\n offset,\n shift,\n} from '@floating-ui/dom';\nimport {\n Component,\n Element,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\nimport { OnListener } from '../utils/listener';\nimport { tooltipController } from './tooltip-controller';\nimport { IxOverlayComponent } from '../utils/overlay';\n\ntype ArrowPosition = {\n top?: string;\n left?: string;\n right?: string;\n};\n\nconst numberToPixel = (value: number) => (value != null ? `${value}px` : '');\n\n/**\n * @slot title-icon - Icon of tooltip title\n * @slot title-content - Content of tooltip title\n *\n * @since 1.4.0\n */\n@Component({\n tag: 'ix-tooltip',\n styleUrl: 'tooltip.scss',\n shadow: true,\n})\nexport class Tooltip implements IxOverlayComponent {\n /**\n * CSS selector for hover trigger element e.g. `for=\"[data-my-custom-select]\"`\n */\n @Prop() for?: string | HTMLElement | Promise<HTMLElement>;\n\n /**\n * Title of the tooltip\n */\n @Prop() titleContent?: string;\n\n /**\n * Define if the user can access the tooltip via mouse.\n */\n @Prop() interactive = false;\n\n /**\n * Initial placement of the tooltip. If the placement don\"t have enough space,\n * the tooltip will placed on another location.\n *\n * @since 1.5.0\n */\n @Prop() placement: 'top' | 'right' | 'bottom' | 'left' = 'top';\n\n /** @internal */\n @Prop() showDelay = 0;\n\n /** @internal */\n @Prop() hideDelay = 50;\n\n /** @internal */\n @Prop() animationFrame = false;\n\n @State() visible = false;\n\n @Element() hostElement!: HTMLIxTooltipElement;\n\n private observer?: MutationObserver;\n private hideTooltipTimeout?: NodeJS.Timeout;\n private showTooltipTimeout?: NodeJS.Timeout;\n private disposeAutoUpdate?: () => void;\n private disposeListener?: () => void;\n\n private get arrowElement(): HTMLElement {\n return this.hostElement.shadowRoot.querySelector('.arrow');\n }\n\n private destroyAutoUpdate() {\n if (this.disposeAutoUpdate !== undefined) {\n this.disposeAutoUpdate();\n }\n }\n\n /** @internal */\n @Method()\n async showTooltip(anchorElement: Element) {\n clearTimeout(this.hideTooltipTimeout);\n await this.applyTooltipPosition(anchorElement);\n\n this.showTooltipTimeout = setTimeout(() => {\n tooltipController.present(this);\n // Need to compute and apply tooltip position after initial render,\n // because arrow has no valid bounding rect before that\n this.applyTooltipPosition(anchorElement);\n }, this.showDelay);\n }\n\n /** @internal */\n @Method()\n async hideTooltip() {\n clearTimeout(this.showTooltipTimeout);\n let hideDelay = 50;\n\n if (this.interactive && this.hideDelay === hideDelay) {\n hideDelay = 150;\n }\n\n this.hideTooltipTimeout = setTimeout(() => {\n tooltipController.dismiss(this);\n }, hideDelay);\n this.destroyAutoUpdate();\n }\n\n private computeArrowPosition({\n placement,\n middlewareData,\n }: ComputePositionReturn): ArrowPosition {\n let { x, y } = middlewareData.arrow;\n\n if (placement.startsWith('top')) {\n return {\n left: numberToPixel(x),\n top: numberToPixel(y),\n };\n }\n\n if (placement.startsWith('right')) {\n return {\n left: numberToPixel(-6),\n top: numberToPixel(y),\n };\n }\n\n if (placement.startsWith('bottom')) {\n return {\n left: numberToPixel(x),\n top: numberToPixel(-6),\n };\n }\n\n if (placement.startsWith('left')) {\n return {\n right: numberToPixel(-6),\n top: numberToPixel(y),\n };\n }\n }\n\n private async computeTooltipPosition(target: Element) {\n return computePosition(target, this.hostElement, {\n strategy: 'fixed',\n placement: this.placement,\n middleware: [\n shift(),\n offset(12),\n arrow({\n element: this.arrowElement,\n }),\n flip({\n fallbackStrategy: 'initialPlacement',\n padding: 10,\n }),\n ],\n });\n }\n\n private applyTooltipArrowPosition(computeResponse: ComputePositionReturn) {\n const arrowPosition = this.computeArrowPosition(computeResponse);\n Object.assign(this.arrowElement.style, arrowPosition);\n }\n\n private async applyTooltipPosition(target: Element) {\n if (!target) {\n return;\n }\n\n return new Promise<ComputePositionReturn>((resolve) => {\n this.destroyAutoUpdate();\n this.disposeAutoUpdate = autoUpdate(\n target,\n this.hostElement,\n async () => {\n setTimeout(async () => {\n const computeResponse = await this.computeTooltipPosition(target);\n\n if (computeResponse.middlewareData.arrow) {\n this.applyTooltipArrowPosition(computeResponse);\n }\n\n const { x, y } = computeResponse;\n Object.assign(this.hostElement.style, {\n left: x !== null ? `${x}px` : '',\n top: y !== null ? `${y}px` : '',\n });\n\n resolve(computeResponse);\n });\n },\n {\n ancestorResize: true,\n ancestorScroll: true,\n elementResize: true,\n animationFrame: this.animationFrame,\n }\n );\n });\n }\n\n private clearHideTimeout() {\n if (this.interactive) {\n clearTimeout(this.hideTooltipTimeout);\n }\n }\n\n private async queryAnchorElements(): Promise<Array<HTMLElement> | undefined> {\n if (typeof this.for === 'string') {\n return Promise.resolve(Array.from(document.querySelectorAll(this.for)));\n }\n\n if (this.for instanceof HTMLElement) {\n return Promise.resolve([this.for]);\n }\n\n if (this.for instanceof Promise) {\n const element = await this.for;\n return [element];\n }\n }\n\n private async registerTriggerListener() {\n const triggerElementList = await this.queryAnchorElements();\n\n if (this.disposeListener) {\n this.disposeListener();\n }\n\n if (!triggerElementList) {\n return;\n }\n\n triggerElementList.forEach((element) => {\n const onMouseEnter = () => {\n this.showTooltip(element);\n };\n\n const onMouseLeave = () => {\n this.hideTooltip();\n };\n\n const onFocusIn = () => {\n if (this.showTooltipTimeout !== undefined) {\n clearTimeout(this.showTooltipTimeout);\n }\n\n onMouseEnter();\n };\n\n const onFocusOut = () => {\n this.hideTooltip();\n };\n\n element.addEventListener('mouseenter', onMouseEnter);\n element.addEventListener('mouseleave', onMouseLeave);\n element.addEventListener('focusin', onFocusIn);\n element.addEventListener('focusout', onFocusOut);\n\n this.disposeListener = () => {\n element.removeEventListener('mouseenter', onMouseEnter);\n element.removeEventListener('mouseleave', onMouseLeave);\n element.removeEventListener('focusin', onFocusIn);\n element.removeEventListener('focusout', onFocusOut);\n };\n });\n }\n\n private registerTooltipListener() {\n const { hostElement } = this;\n hostElement.addEventListener('mouseenter', () => this.clearHideTimeout());\n hostElement.addEventListener('focusin', () => this.clearHideTimeout());\n\n hostElement.addEventListener('mouseleave', () => this.hideTooltip());\n hostElement.addEventListener('focusout', () => this.hideTooltip());\n }\n\n @OnListener<Tooltip>('keydown', (self) => self.visible)\n async onKeydown(event: KeyboardEvent) {\n if (event.code === 'Escape') {\n this.hideTooltip();\n }\n }\n\n componentWillLoad() {\n this.registerTriggerListener();\n }\n\n componentDidLoad() {\n this.observer = new MutationObserver(() => {\n this.registerTriggerListener();\n });\n\n this.observer.observe(document.body, {\n attributes: true,\n attributeFilter: ['data-ix-tooltip'],\n childList: true,\n subtree: true,\n });\n\n this.registerTooltipListener();\n }\n\n connectedCallback() {\n tooltipController.connected(this);\n }\n\n disconnectedCallback() {\n this.observer?.disconnect();\n this.destroyAutoUpdate();\n tooltipController.disconnected(this);\n }\n\n isPresent(): boolean {\n return this.visible;\n }\n\n present(): void {\n this.visible = true;\n }\n\n dismiss(): void {\n this.visible = false;\n }\n\n render() {\n return (\n <Host\n class={{\n visible: this.visible,\n }}\n role=\"tooltip\"\n >\n <div class={'tooltip-title'}>\n <slot name=\"title-icon\"></slot>\n <ix-typography variant=\"default-title\">\n {this.titleContent}\n <slot name=\"title-content\"></slot>\n </ix-typography>\n </div>\n <div class={'tooltip-content'}>\n <slot></slot>\n </div>\n <div class=\"arrow\"></div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"tooltip.js","mappings":";;;;;MAoBa,iBAAiB;IAA9B;QACE,aAAQ,GAA4B,IAAI,GAAG,EAAE,CAAC;KAgC/C;IA9BC,SAAS,CAAC,QAA4B;QACpC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;KAC7B;IAED,YAAY,CAAC,QAA4B;QACvC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;KAChC;IAED,OAAO,CAAC,QAA4B;QAClC,IAAI,QAAQ,CAAC,WAAW,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE;YACnD,OAAO;SACR;QACD,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAC7B,QAAQ,CAAC,OAAO,EAAE,CAAC;KACpB;IAED,OAAO,CAAC,QAA4B;QAClC,IAAI,QAAQ,CAAC,WAAW,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE;YACnD,OAAO;SACR;QACD,QAAQ,CAAC,OAAO,EAAE,CAAC;KACpB;IAEO,aAAa,CAAC,QAA4B;QAChD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO;YAC5B,IAAI,OAAO,KAAK,QAAQ,EAA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ACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,EACD,IAAI,EAAC,SAAS,IAEd,4DAAK,KAAK,EAAC,mBAAmB,IAC5B,4DAAK,KAAK,EAAE,eAAe,IACzB,6DAAM,IAAI,EAAC,YAAY,GAAQ,EAC/B,sEAAe,OAAO,EAAC,eAAe,IACnC,IAAI,CAAC,YAAY,EAClB,6DAAM,IAAI,EAAC,eAAe,GAAQ,CACpB,CACZ,EACN,4DAAK,KAAK,EAAE,iBAAiB,IAC3B,8DAAa,CACT,EACN,4DAAK,KAAK,EAAC,OAAO,GAAO,CACrB,CACD,EACP;KACH;;;;;;;;;;;;;;;AAtEK;IADL,UAAU,CAAU,SAAS,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC;wCAKtD;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/utils/overlay.ts","src/components/tooltip/tooltip-controller.ts","src/components/tooltip/tooltip.scss?tag=ix-tooltip&encapsulation=shadow","src/components/tooltip/tooltip.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 */\nimport { IxComponent } from '../utils/internal';\n\nexport interface IxOverlayComponent extends IxComponent {\n isPresent(): boolean;\n\n willPresent?(): boolean;\n willDismiss?(): boolean;\n\n present(): void;\n dismiss(): void;\n}\n\nexport class OverlayController {\n overlays: Set<IxOverlayComponent> = new Set();\n\n connected(instance: IxOverlayComponent): void {\n this.overlays.add(instance);\n }\n\n disconnected(instance: IxOverlayComponent): void {\n this.overlays.delete(instance);\n }\n\n present(instance: IxOverlayComponent): void {\n if (instance.willPresent && !instance.willPresent()) {\n return;\n }\n this.dismissOthers(instance);\n instance.present();\n }\n\n dismiss(instance: IxOverlayComponent): void {\n if (instance.willDismiss && !instance.willDismiss()) {\n return;\n }\n instance.dismiss();\n }\n\n private dismissOthers(instance: IxOverlayComponent): void {\n this.overlays.forEach((overlay) => {\n if (overlay !== instance) {\n this.dismiss(overlay);\n }\n });\n }\n}\n","/*\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 { OverlayController } from '../utils/overlay';\n\nclass TooltipController extends OverlayController {}\n\nexport const tooltipController = new TooltipController();\n",":host {\n display: inline-block;\n position: fixed;\n left: 0;\n top: 0;\n z-index: var(--theme-z-index-tooltip);\n\n max-width: 18.25rem;\n width: max-content;\n\n opacity: 0;\n visibility: collapse !important;\n overflow-wrap: break-word;\n\n border-radius: 0.25rem;\n\n .tooltip-title {\n display: flex;\n align-items: center;\n\n ::slotted(ix-icon) {\n margin-right: 0.35rem;\n }\n }\n\n .tooltip-container {\n display: block;\n position: relative;\n width: auto;\n height: 100%;\n background: var(--theme-tootlip--background);\n color: var(--theme-color-std-text);\n padding: 0.375rem 0.75rem 0.375rem 0.875rem;\n\n box-shadow: var(--theme-shadow-4);\n border-radius: inherit;\n }\n}\n\n:host(.visible) {\n opacity: 1;\n visibility: visible !important;\n}\n\n:host(.visible) {\n .arrow,\n .arrow::before {\n position: absolute;\n width: 12px;\n height: 12px;\n background: inherit;\n }\n\n .arrow {\n visibility: hidden;\n }\n\n .arrow::before {\n visibility: visible;\n content: '';\n transform: rotate(45deg);\n background-color: var(--theme-tootlip--background);\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 arrow,\n autoUpdate,\n computePosition,\n ComputePositionReturn,\n flip,\n hide,\n offset,\n shift,\n} from '@floating-ui/dom';\nimport {\n Component,\n Element,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\nimport { OnListener } from '../utils/listener';\nimport { tooltipController } from './tooltip-controller';\nimport { IxOverlayComponent } from '../utils/overlay';\n\ntype ArrowPosition = {\n top?: string;\n left?: string;\n right?: string;\n};\n\nconst numberToPixel = (value: number) => (value != null ? `${value}px` : '');\n\n/**\n * @slot title-icon - Icon of tooltip title\n * @slot title-content - Content of tooltip title\n *\n * @since 1.4.0\n */\n@Component({\n tag: 'ix-tooltip',\n styleUrl: 'tooltip.scss',\n shadow: true,\n})\nexport class Tooltip implements IxOverlayComponent {\n /**\n * CSS selector for hover trigger element e.g. `for=\"[data-my-custom-select]\"`\n */\n @Prop() for?: string | HTMLElement | Promise<HTMLElement>;\n\n /**\n * Title of the tooltip\n */\n @Prop() titleContent?: string;\n\n /**\n * Define if the user can access the tooltip via mouse.\n */\n @Prop() interactive = false;\n\n /**\n * Initial placement of the tooltip.\n * If the selected placement doesn't have enough space, the tooltip will be repositioned to another location.\n * @since 1.5.0\n */\n @Prop() placement: 'top' | 'right' | 'bottom' | 'left' = 'top';\n\n /** @internal */\n @Prop() showDelay = 0;\n\n /** @internal */\n @Prop() hideDelay = 50;\n\n /** @internal */\n @Prop() animationFrame = false;\n\n @State() visible = false;\n\n @Element() hostElement!: HTMLIxTooltipElement;\n\n private observer?: MutationObserver;\n private hideTooltipTimeout?: NodeJS.Timeout;\n private showTooltipTimeout?: NodeJS.Timeout;\n private disposeAutoUpdate?: () => void;\n private disposeListener?: () => void;\n\n private get arrowElement(): HTMLElement {\n return this.hostElement.shadowRoot.querySelector('.arrow');\n }\n\n private destroyAutoUpdate() {\n if (this.disposeAutoUpdate !== undefined) {\n this.disposeAutoUpdate();\n }\n }\n\n /** @internal */\n @Method()\n async showTooltip(anchorElement: Element) {\n clearTimeout(this.hideTooltipTimeout);\n await this.applyTooltipPosition(anchorElement);\n\n this.showTooltipTimeout = setTimeout(() => {\n tooltipController.present(this);\n // Need to compute and apply tooltip position after initial render,\n // because arrow has no valid bounding rect before that\n this.applyTooltipPosition(anchorElement);\n }, this.showDelay);\n }\n\n /** @internal */\n @Method()\n async hideTooltip() {\n clearTimeout(this.showTooltipTimeout);\n let hideDelay = 50;\n\n if (this.interactive && this.hideDelay === hideDelay) {\n hideDelay = 150;\n }\n\n this.hideTooltipTimeout = setTimeout(() => {\n tooltipController.dismiss(this);\n }, hideDelay);\n this.destroyAutoUpdate();\n }\n\n private computeArrowPosition({\n placement,\n middlewareData,\n }: ComputePositionReturn): ArrowPosition {\n let { x, y } = middlewareData.arrow;\n const resetPosition = {\n top: 'unset',\n right: 'unset',\n bottom: 'unset',\n left: 'unset',\n };\n\n if (placement.startsWith('top')) {\n return {\n ...resetPosition,\n left: numberToPixel(x),\n top: numberToPixel(y),\n };\n }\n\n if (placement.startsWith('right')) {\n return {\n ...resetPosition,\n left: numberToPixel(-6),\n top: numberToPixel(y),\n };\n }\n\n if (placement.startsWith('bottom')) {\n return {\n ...resetPosition,\n left: numberToPixel(x),\n top: numberToPixel(-6),\n };\n }\n\n if (placement.startsWith('left')) {\n return {\n ...resetPosition,\n right: numberToPixel(-6),\n top: numberToPixel(y),\n };\n }\n }\n\n private async computeTooltipPosition(target: Element) {\n return computePosition(target, this.hostElement, {\n strategy: 'fixed',\n placement: this.placement,\n middleware: [\n shift(),\n offset(12),\n arrow({\n element: this.arrowElement,\n }),\n flip({\n fallbackStrategy: 'initialPlacement',\n fallbackAxisSideDirection: 'end',\n padding: 10,\n }),\n hide(),\n ],\n });\n }\n\n private applyTooltipArrowPosition(computeResponse: ComputePositionReturn) {\n const arrowPosition = this.computeArrowPosition(computeResponse);\n Object.assign(this.arrowElement.style, arrowPosition);\n }\n\n private async applyTooltipPosition(target: Element) {\n if (!target) {\n return;\n }\n\n return new Promise<ComputePositionReturn>((resolve) => {\n this.destroyAutoUpdate();\n this.disposeAutoUpdate = autoUpdate(\n target,\n this.hostElement,\n async () => {\n setTimeout(async () => {\n const computeResponse = await this.computeTooltipPosition(target);\n\n const isHidden =\n computeResponse.middlewareData.hide?.referenceHidden;\n\n if (isHidden) {\n setTimeout(() => this.hideTooltip());\n resolve(computeResponse);\n }\n\n if (computeResponse.middlewareData.arrow) {\n this.applyTooltipArrowPosition(computeResponse);\n }\n\n const { x, y } = computeResponse;\n Object.assign(this.hostElement.style, {\n left: x !== null ? `${x}px` : '',\n top: y !== null ? `${y}px` : '',\n });\n\n resolve(computeResponse);\n });\n },\n {\n ancestorResize: true,\n ancestorScroll: true,\n elementResize: true,\n animationFrame: this.animationFrame,\n }\n );\n });\n }\n\n private clearHideTimeout() {\n if (this.interactive) {\n clearTimeout(this.hideTooltipTimeout);\n }\n }\n\n private async queryAnchorElements(): Promise<Array<HTMLElement> | undefined> {\n if (typeof this.for === 'string') {\n return Promise.resolve(Array.from(document.querySelectorAll(this.for)));\n }\n\n if (this.for instanceof HTMLElement) {\n return Promise.resolve([this.for]);\n }\n\n if (this.for instanceof Promise) {\n const element = await this.for;\n return [element];\n }\n }\n\n private async registerTriggerListener() {\n const triggerElementList = await this.queryAnchorElements();\n\n if (this.disposeListener) {\n this.disposeListener();\n }\n\n if (!triggerElementList) {\n return;\n }\n\n triggerElementList.forEach((element) => {\n const onMouseEnter = () => {\n this.showTooltip(element);\n };\n\n const onMouseLeave = () => {\n this.hideTooltip();\n };\n\n const onFocusIn = () => {\n if (this.showTooltipTimeout !== undefined) {\n clearTimeout(this.showTooltipTimeout);\n }\n\n onMouseEnter();\n };\n\n const onFocusOut = () => {\n this.hideTooltip();\n };\n\n element.addEventListener('mouseenter', onMouseEnter);\n element.addEventListener('mouseleave', onMouseLeave);\n element.addEventListener('focusin', onFocusIn);\n element.addEventListener('focusout', onFocusOut);\n\n this.disposeListener = () => {\n element.removeEventListener('mouseenter', onMouseEnter);\n element.removeEventListener('mouseleave', onMouseLeave);\n element.removeEventListener('focusin', onFocusIn);\n element.removeEventListener('focusout', onFocusOut);\n };\n });\n }\n\n private registerTooltipListener() {\n const { hostElement } = this;\n hostElement.addEventListener('mouseenter', () => this.clearHideTimeout());\n hostElement.addEventListener('focusin', () => this.clearHideTimeout());\n\n hostElement.addEventListener('mouseleave', () => this.hideTooltip());\n hostElement.addEventListener('focusout', () => this.hideTooltip());\n }\n\n @OnListener<Tooltip>('keydown', (self) => self.visible)\n async onKeydown(event: KeyboardEvent) {\n if (event.code === 'Escape') {\n this.hideTooltip();\n }\n }\n\n componentWillLoad() {\n this.registerTriggerListener();\n }\n\n componentDidLoad() {\n this.observer = new MutationObserver(() => {\n this.registerTriggerListener();\n });\n\n this.observer.observe(document.body, {\n attributes: true,\n attributeFilter: ['data-ix-tooltip'],\n childList: true,\n subtree: true,\n });\n\n this.registerTooltipListener();\n }\n\n connectedCallback() {\n tooltipController.connected(this);\n }\n\n disconnectedCallback() {\n this.observer?.disconnect();\n this.destroyAutoUpdate();\n tooltipController.disconnected(this);\n }\n\n isPresent(): boolean {\n return this.visible;\n }\n\n present(): void {\n this.visible = true;\n }\n\n dismiss(): void {\n this.visible = false;\n }\n\n render() {\n return (\n <Host\n class={{\n visible: this.visible,\n }}\n role=\"tooltip\"\n >\n <div class=\"tooltip-container\">\n <div class={'tooltip-title'}>\n <slot name=\"title-icon\"></slot>\n <ix-typography variant=\"default-title\">\n {this.titleContent}\n <slot name=\"title-content\"></slot>\n </ix-typography>\n </div>\n <div class={'tooltip-content'}>\n <slot></slot>\n </div>\n <div class=\"arrow\"></div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const treeItemCss = ":host{display:flex;align-items:center;height:32px;width:100%;cursor:pointer}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .tree-node-container{display:flex;align-items:center;height:2rem;flex-grow:1;align-items:center}:host .icon-toggle-container{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem}:host .icon-toggle-container ix-icon{transition:transform var(--theme-default-time) ease-in-out}:host .icon-toggle-container ix-icon.icon-toggle-down{transform:rotate(90deg)}:host(:not(.disabled):not(:disabled):not(.selected).hover),:host(:not(.disabled):not(:disabled):not(.selected):hover){background-color:var(--theme-tree-item--background--hover)}:host(:not(.disabled):not(:disabled):not(.selected).active),:host(:not(.disabled):not(:disabled):not(.selected):active){background-color:var(--theme-tree-item--background--active)}:host(.selected){background-color:var(--theme-tree-item--background--selected)}:host(.selected.hover),:host(.selected:hover){background-color:var(--theme-tree-item--background--selected-hover)}:host(.selected.active),:host(.selected:active){background-color:var(--theme-tree-item--background--selected-active)}";
3
+ const treeItemCss = ":host{display:flex;align-items:center;height:32px;width:100%;cursor:pointer}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .tree-node-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;height:2rem;flex-grow:1;align-items:center}:host .tree-node-container .tree-node-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .icon-toggle-container{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;min-width:2rem}:host .icon-toggle-container ix-icon{transition:transform var(--theme-default-time) ease-in-out}:host .icon-toggle-container ix-icon.icon-toggle-down{transform:rotate(90deg)}:host(:not(.disabled):not(:disabled):not(.selected).hover),:host(:not(.disabled):not(:disabled):not(.selected):hover){background-color:var(--theme-tree-item--background--hover)}:host(:not(.disabled):not(:disabled):not(.selected).active),:host(:not(.disabled):not(:disabled):not(.selected):active){background-color:var(--theme-tree-item--background--active)}:host(.selected){background-color:var(--theme-tree-item--background--selected)}:host(.selected.hover),:host(.selected:hover){background-color:var(--theme-tree-item--background--selected-hover)}:host(.selected.active),:host(.selected:active){background-color:var(--theme-tree-item--background--selected-active)}";
4
4
  const IxTreeItemStyle0 = treeItemCss;
5
5
 
6
6
  const TreeItem = /*@__PURE__*/ proxyCustomElement(class TreeItem extends HTMLElement {
@@ -11,21 +11,21 @@ const TreeItem = /*@__PURE__*/ proxyCustomElement(class TreeItem extends HTMLEle
11
11
  this.toggle = createEvent(this, "toggle", 7);
12
12
  this.itemClick = createEvent(this, "itemClick", 7);
13
13
  this.text = undefined;
14
- this.hasChildren = undefined;
14
+ this.hasChildren = false;
15
15
  this.context = undefined;
16
16
  }
17
17
  render() {
18
18
  var _a, _b, _c;
19
- return (h(Host, { key: '5f5481c56072db6ae30c67a9c9ed8a709679d55b', class: {
20
- selected: (_a = this.context) === null || _a === void 0 ? void 0 : _a.isSelected,
21
- } }, h("div", { key: '1d36c65d8c44ce04347888c1a43532717b9f7e54', class: "icon-toggle-container", onClick: (e) => {
19
+ return (h(Host, { key: '29f49c27b0e62c71cb8776a2147de561aa5ed0f2', class: {
20
+ selected: !!((_a = this.context) === null || _a === void 0 ? void 0 : _a.isSelected),
21
+ } }, h("div", { key: '4fd6fab088cea8c06e5671c0389f84563e6a33ef', class: "icon-toggle-container", onClick: (e) => {
22
22
  e.preventDefault();
23
23
  this.toggle.emit();
24
24
  } }, this.hasChildren ? (h("ix-icon", { name: 'chevron-right', size: "16", class: {
25
- ['icon-toggle-down']: (_b = this.context) === null || _b === void 0 ? void 0 : _b.isExpanded,
26
- }, color: `color-${((_c = this.context) === null || _c === void 0 ? void 0 : _c.isExpanded) ? 'primary' : 'std-text'}` })) : null), h("div", { key: '43f5718e1c18f5a755f01580692349195dbe2e7e', class: "tree-node-container", onClick: () => {
25
+ ['icon-toggle-down']: !!((_b = this.context) === null || _b === void 0 ? void 0 : _b.isExpanded),
26
+ }, color: `color-${((_c = this.context) === null || _c === void 0 ? void 0 : _c.isExpanded) ? 'primary' : 'std-text'}` })) : null), h("div", { key: '4cb3c4699ee016895e68c21466e42aa3a10e3ed4', class: "tree-node-container", onClick: () => {
27
27
  this.itemClick.emit();
28
- } }, this.text, h("slot", { key: '4f0556708349c484f97f3f687ab1f0974c4ef35e' }))));
28
+ } }, h("div", { key: '48ae93475e742e15f6f6acd065fe47c8dd97559b', class: "tree-node-text" }, this.text), h("slot", { key: '2e27a586182c5ca31e924190801bbff825d7f25d' }))));
29
29
  }
30
30
  static get style() { return IxTreeItemStyle0; }
31
31
  }, [1, "ix-tree-item", {
@@ -1 +1 @@
1
- {"file":"tree-item.js","mappings":";;AAAA,MAAM,WAAW,GAAG,g2DAAg2D,CAAC;AACr3D,yBAAe,WAAW;;MCgBb,QAAQ;;;;;;;;;;;IA0BnB,MAAM;;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU;aACnC,IAED,4DACE,KAAK,EAAC,uBAAuB,EAC7B,OAAO,EAAE,CAAC,CAAC;gBACT,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;aACpB,IAEA,IAAI,CAAC,WAAW,IACf,eACE,IAAI,EAAE,eAAe,EACrB,IAAI,EAAC,IAAI,EACT,KAAK,EAAE;gBACL,CAAC,kBAAkB,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU;aAC/C,EACD,KAAK,EAAE,SACL,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,IAAG,SAAS,GAAG,UACzC,EAAE,GACF,IACA,IAAI,CACJ,EACN,4DACE,KAAK,EAAC,qBAAqB,EAC3B,OAAO,EAAE;gBACP,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;aACvB,IAEA,IAAI,CAAC,IAAI,EACV,8DAAa,CACT,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/tree-item/tree-item.scss?tag=ix-tree-item&encapsulation=shadow","src/components/tree-item/tree-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/text-truncation';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: flex;\n align-items: center;\n\n height: 32px;\n width: 100%;\n\n cursor: pointer;\n\n .tree-node-container {\n display: flex;\n align-items: center;\n height: $x-large-space;\n flex-grow: 1;\n align-items: center;\n }\n\n .icon-toggle-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n\n ix-icon {\n transition: transform var(--theme-default-time) ease-in-out;\n\n &.icon-toggle-down {\n transform: rotate(90deg);\n }\n }\n }\n}\n\n:host(:not(.disabled):not(:disabled):not(.selected).hover),\n:host(:not(.disabled):not(:disabled):not(.selected):hover) {\n background-color: var(--theme-tree-item--background--hover);\n}\n\n:host(:not(.disabled):not(:disabled):not(.selected).active),\n:host(:not(.disabled):not(:disabled):not(.selected):active) {\n background-color: var(--theme-tree-item--background--active);\n}\n\n:host(.selected) {\n background-color: var(--theme-tree-item--background--selected);\n}\n\n:host(.selected.hover),\n:host(.selected:hover) {\n background-color: var(--theme-tree-item--background--selected-hover);\n}\n\n:host(.selected.active),\n:host(.selected:active) {\n background-color: var(--theme-tree-item--background--selected-active);\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, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\nimport { TreeItemContext } from '../tree/tree-model';\n\n@Component({\n tag: 'ix-tree-item',\n styleUrl: 'tree-item.scss',\n shadow: true,\n})\nexport class TreeItem {\n /**\n * Text\n */\n @Prop() text: string;\n\n /**\n * Has tree item children\n */\n @Prop() hasChildren: boolean;\n\n /**\n * Context\n */\n @Prop() context: TreeItemContext;\n\n /**\n * Expand/Collapsed toggled\n */\n @Event() toggle: EventEmitter<void>;\n\n /**\n * Clicked\n */\n @Event() itemClick: EventEmitter<void>;\n\n render() {\n return (\n <Host\n class={{\n selected: this.context?.isSelected,\n }}\n >\n <div\n class=\"icon-toggle-container\"\n onClick={(e) => {\n e.preventDefault();\n this.toggle.emit();\n }}\n >\n {this.hasChildren ? (\n <ix-icon\n name={'chevron-right'}\n size=\"16\"\n class={{\n ['icon-toggle-down']: this.context?.isExpanded,\n }}\n color={`color-${\n this.context?.isExpanded ? 'primary' : 'std-text'\n }`}\n />\n ) : null}\n </div>\n <div\n class=\"tree-node-container\"\n onClick={() => {\n this.itemClick.emit();\n }}\n >\n {this.text}\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"tree-item.js","mappings":";;AAAA,MAAM,WAAW,GAAG,8gEAA8gE,CAAC;AACniE,yBAAe,WAAW;;MCgBb,QAAQ;;;;;;;;2BASG,KAAK;;;IAiB3B,MAAM;;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,CAAC,EAAC,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAA;aACrC,IAED,4DACE,KAAK,EAAC,uBAAuB,EAC7B,OAAO,EAAE,CAAC,CAAC;gBACT,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;aACpB,IAEA,IAAI,CAAC,WAAW,IACf,eACE,IAAI,EAAE,eAAe,EACrB,IAAI,EAAC,IAAI,EACT,KAAK,EAAE;gBACL,CAAC,kBAAkB,GAAG,CAAC,EAAC,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAA;aACjD,EACD,KAAK,EAAE,SACL,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,IAAG,SAAS,GAAG,UACzC,EAAE,GACF,IACA,IAAI,CACJ,EACN,4DACE,KAAK,EAAC,qBAAqB,EAC3B,OAAO,EAAE;gBACP,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;aACvB,IAED,4DAAK,KAAK,EAAC,gBAAgB,IAAE,IAAI,CAAC,IAAI,CAAO,EAC7C,8DAAa,CACT,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/tree-item/tree-item.scss?tag=ix-tree-item&encapsulation=shadow","src/components/tree-item/tree-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/text-truncation';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: flex;\n align-items: center;\n\n height: 32px;\n width: 100%;\n\n cursor: pointer;\n\n .tree-node-container {\n @include ellipsis;\n display: flex;\n align-items: center;\n height: $x-large-space;\n flex-grow: 1;\n align-items: center;\n\n .tree-node-text {\n @include ellipsis;\n }\n }\n\n .icon-toggle-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n min-width: 2rem;\n\n ix-icon {\n transition: transform var(--theme-default-time) ease-in-out;\n\n &.icon-toggle-down {\n transform: rotate(90deg);\n }\n }\n }\n}\n\n:host(:not(.disabled):not(:disabled):not(.selected).hover),\n:host(:not(.disabled):not(:disabled):not(.selected):hover) {\n background-color: var(--theme-tree-item--background--hover);\n}\n\n:host(:not(.disabled):not(:disabled):not(.selected).active),\n:host(:not(.disabled):not(:disabled):not(.selected):active) {\n background-color: var(--theme-tree-item--background--active);\n}\n\n:host(.selected) {\n background-color: var(--theme-tree-item--background--selected);\n}\n\n:host(.selected.hover),\n:host(.selected:hover) {\n background-color: var(--theme-tree-item--background--selected-hover);\n}\n\n:host(.selected.active),\n:host(.selected:active) {\n background-color: var(--theme-tree-item--background--selected-active);\n}\n","/*\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 { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\nimport { TreeItemContext } from '../tree/tree-model';\n\n@Component({\n tag: 'ix-tree-item',\n styleUrl: 'tree-item.scss',\n shadow: true,\n})\nexport class TreeItem {\n /**\n * Text\n */\n @Prop() text?: string;\n\n /**\n * Has tree item children\n */\n @Prop() hasChildren = false;\n\n /**\n * Context\n */\n @Prop() context?: TreeItemContext;\n\n /**\n * Expand/Collapsed toggled\n */\n @Event() toggle!: EventEmitter<void>;\n\n /**\n * Click on item not on the expand/collapse icon\n */\n @Event() itemClick!: EventEmitter<void>;\n\n render() {\n return (\n <Host\n class={{\n selected: !!this.context?.isSelected,\n }}\n >\n <div\n class=\"icon-toggle-container\"\n onClick={(e) => {\n e.preventDefault();\n this.toggle.emit();\n }}\n >\n {this.hasChildren ? (\n <ix-icon\n name={'chevron-right'}\n size=\"16\"\n class={{\n ['icon-toggle-down']: !!this.context?.isExpanded,\n }}\n color={`color-${\n this.context?.isExpanded ? 'primary' : 'std-text'\n }`}\n />\n ) : null}\n </div>\n <div\n class=\"tree-node-container\"\n onClick={() => {\n this.itemClick.emit();\n }}\n >\n <div class=\"tree-node-text\">{this.text}</div>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /*
4
- * SPDX-FileCopyrightText: 2023 Siemens AG
4
+ * SPDX-FileCopyrightText: 2024 Siemens AG
5
5
  *
6
6
  * SPDX-License-Identifier: MIT
7
7
  *
@@ -143,4 +143,4 @@ exports.a11yBoolean = a11yBoolean;
143
143
  exports.a11yHostAttributes = a11yHostAttributes;
144
144
  exports.getFallbackLabelFromIconName = getFallbackLabelFromIconName;
145
145
 
146
- //# sourceMappingURL=a11y-d3ce56d1.js.map
146
+ //# sourceMappingURL=a11y-eba397e8.js.map
@@ -1 +1 @@
1
- {"file":"a11y-d3ce56d1.js","mappings":";;AAAA;;;;;;;;AAQO,MAAM,SAAS,GAAG,CAAC,IAAY;IACpC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,KAAK,CAAC;KACd;IAED,IAAI,GAAQ,CAAC;IAEb,IAAI;QACF,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;KACrB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,KAAK,CAAC;KACd;IAED,OAAO,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC;AAC/D,CAAC,CAAC;AAEK,MAAM,YAAY,GAAG,CAAC,GAAW;IACtC,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,KAAK,CAAC;KACd;IAED,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,OAAO,KAAK,CAAC;KACd;IAED,OAAO,GAAG,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAC9C,CAAC;;AClCD;;;;;;;;MAWa,WAAW,GAAG,CAAC,KAAc,MAAM,KAAK,GAAG,MAAM,GAAG,OAAO,EAAE;AAE1E,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AC,OAAO,CAAC,CAAC,IAAI;QAC1B,IAAI,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YAClC,MAAM,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YAC7C,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;gBACtD,eAAe,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;gBACvD,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;aACnC;SACF;KACF,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB,EAAE;AA4DF,MAAM,cAAc,GAAwB;IAC1C,MAAM;IACN,uBAAuB;IACvB,aAAa;IACb,mBAAmB;IACnB,mBAAmB;IACnB,6BAA6B;IAC7B,WAAW;IACX,cAAc;IACd,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,mBAAmB;IACnB,eAAe;IACf,aAAa;IACb,eAAe;IACf,aAAa;IACb,cAAc;IACd,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;IACjB,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,sBAAsB;IACtB,kBAAkB;IAClB,WAAW;IACX,kBAAkB;IAClB,eAAe;IACf,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,sBAAsB;IACtB,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,WAAW;IACX,eAAe;IACf,eAAe;IACf,eAAe;IACf,gBAAgB;CACjB;;;;;;","names":[],"sources":["src/components/utils/condition-checks.ts","src/components/utils/a11y.ts"],"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 */\nexport const isHttpUrl = (link: string) => {\n if (!link) {\n return false;\n }\n\n let url: URL;\n\n try {\n url = new URL(link);\n } catch (e) {\n return false;\n }\n\n return url.protocol === 'http:' || url.protocol === 'https:';\n};\n\nexport const isSvgDataUrl = (url: string) => {\n if (!url) {\n return false;\n }\n\n if (typeof url !== 'string') {\n return false;\n }\n\n return url.startsWith('data:image/svg+xml');\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 { isHttpUrl, isSvgDataUrl } from './condition-checks';\n\nexport const a11yBoolean = (value: boolean) => (value ? 'true' : 'false');\n\nconst kebabCaseToUpperCaseSentence = (kebabCase: string) => {\n const withoutFilledSuffix = kebabCase.replace('-filled', '');\n const words = withoutFilledSuffix.split('-');\n const sentence = words\n .map((word) => {\n const trimWord = word.trim();\n const digitLessWord = trimWord.replace(/\\d+/g, '');\n\n if (digitLessWord.length === 0) {\n return trimWord;\n }\n\n return digitLessWord;\n })\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ');\n\n return sentence;\n};\n\nexport const getFallbackLabelFromIconName = (iconName: string) => {\n if (!iconName) {\n return 'Unknown';\n }\n\n if (isHttpUrl(iconName)) {\n return 'Unknown';\n }\n\n if (isSvgDataUrl(iconName)) {\n return 'Unknown';\n }\n\n const label = kebabCaseToUpperCaseSentence(iconName);\n\n if (label.length === 0) {\n return 'Unknown';\n }\n\n return label;\n};\n\nexport const a11yHostAttributes = (\n hostElement: HTMLElement,\n ignoreAttributes: A11yAttributeName[] = []\n): Record<A11yAttributeName, any> => {\n const attributeObject: Record<string, any> = {};\n a11yAttributes.forEach((attr) => {\n if (hostElement.hasAttribute(attr)) {\n const value = hostElement.getAttribute(attr);\n if (value !== null && !ignoreAttributes.includes(attr)) {\n attributeObject[attr] = hostElement.getAttribute(attr);\n hostElement.removeAttribute(attr);\n }\n }\n });\n\n return attributeObject;\n};\n\ntype PartialRecord<K extends keyof any, T> = {\n [P in K]?: T;\n};\nexport type A11yAttributes = PartialRecord<A11yAttributeName, any>;\n\nexport type A11yAttributeName =\n | 'role'\n | 'aria-activedescendant'\n | 'aria-atomic'\n | 'aria-autocomplete'\n | 'aria-braillelabel'\n | 'aria-brailleroledescription'\n | 'aria-busy'\n | 'aria-checked'\n | 'aria-colcount'\n | 'aria-colindex'\n | 'aria-colindextext'\n | 'aria-colspan'\n | 'aria-controls'\n | 'aria-current'\n | 'aria-describedby'\n | 'aria-description'\n | 'aria-details'\n | 'aria-disabled'\n | 'aria-errormessage'\n | 'aria-expanded'\n | 'aria-flowto'\n | 'aria-haspopup'\n | 'aria-hidden'\n | 'aria-invalid'\n | 'aria-keyshortcuts'\n | 'aria-label'\n | 'aria-labelledby'\n | 'aria-level'\n | 'aria-live'\n | 'aria-multiline'\n | 'aria-multiselectable'\n | 'aria-orientation'\n | 'aria-owns'\n | 'aria-placeholder'\n | 'aria-posinset'\n | 'aria-pressed'\n | 'aria-readonly'\n | 'aria-relevant'\n | 'aria-required'\n | 'aria-roledescription'\n | 'aria-rowcount'\n | 'aria-rowindex'\n | 'aria-rowindextext'\n | 'aria-rowspan'\n | 'aria-selected'\n | 'aria-setsize'\n | 'aria-sort'\n | 'aria-valuemax'\n | 'aria-valuemin'\n | 'aria-valuenow'\n | 'aria-valuetext';\n\nconst a11yAttributes: A11yAttributeName[] = [\n 'role',\n 'aria-activedescendant',\n 'aria-atomic',\n 'aria-autocomplete',\n 'aria-braillelabel',\n 'aria-brailleroledescription',\n 'aria-busy',\n 'aria-checked',\n 'aria-colcount',\n 'aria-colindex',\n 'aria-colindextext',\n 'aria-colspan',\n 'aria-controls',\n 'aria-current',\n 'aria-describedby',\n 'aria-description',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-flowto',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-level',\n 'aria-live',\n 'aria-multiline',\n 'aria-multiselectable',\n 'aria-orientation',\n 'aria-owns',\n 'aria-placeholder',\n 'aria-posinset',\n 'aria-pressed',\n 'aria-readonly',\n 'aria-relevant',\n 'aria-required',\n 'aria-roledescription',\n 'aria-rowcount',\n 'aria-rowindex',\n 'aria-rowindextext',\n 'aria-rowspan',\n 'aria-selected',\n 'aria-setsize',\n 'aria-sort',\n 'aria-valuemax',\n 'aria-valuemin',\n 'aria-valuenow',\n 'aria-valuetext',\n];\n"],"version":3}
1
+ {"file":"a11y-eba397e8.js","mappings":";;AAAA;;;;;;;;AAQO,MAAM,SAAS,GAAG,CAAC,IAAY;IACpC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,KAAK,CAAC;KACd;IAED,IAAI,GAAQ,CAAC;IAEb,IAAI;QACF,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;KACrB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,KAAK,CAAC;KACd;IAED,OAAO,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC;AAC/D,CAAC,CAAC;AAEK,MAAM,YAAY,GAAG,CAAC,GAAW;IACtC,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,KAAK,CAAC;KACd;IAED,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,OAAO,KAAK,CAAC;KACd;IAED,OAAO,GAAG,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAC9C,CAAC;;AClCD;;;;;;;;MAWa,WAAW,GAAG,CAAC,KAAc,MAAM,KAAK,GAAG,MAAM,GAAG,OAAO,EAAE;AAE1E,MAAM,4BAA4B,GAAG,CAAC,SAAiB;IACrD,MAAM,mBAAmB,GAAG,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAC7D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AAY,CAAC,IAAI,CAAC,CAAC;YAC7C,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;gBACtD,eAAe,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;gBACvD,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;aACnC;SACF;KACF,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB,EAAE;AA4DF,MAAM,cAAc,GAAwB;IAC1C,MAAM;IACN,uBAAuB;IACvB,aAAa;IACb,mBAAmB;IACnB,mBAAmB;IACnB,6BAA6B;IAC7B,WAAW;IACX,cAAc;IACd,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,mBAAmB;IACnB,eAAe;IACf,aAAa;IACb,eAAe;IACf,aAAa;IACb,cAAc;IACd,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;IACjB,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,sBAAsB;IACtB,kBAAkB;IAClB,WAAW;IACX,kBAAkB;IAClB,eAAe;IACf,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,sBAAsB;IACtB,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,WAAW;IACX,eAAe;IACf,eAAe;IACf,eAAe;IACf,gBAAgB;CACjB;;;;;;","names":[],"sources":["src/components/utils/condition-checks.ts","src/components/utils/a11y.ts"],"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 */\nexport const isHttpUrl = (link: string) => {\n if (!link) {\n return false;\n }\n\n let url: URL;\n\n try {\n url = new URL(link);\n } catch (e) {\n return false;\n }\n\n return url.protocol === 'http:' || url.protocol === 'https:';\n};\n\nexport const isSvgDataUrl = (url: string) => {\n if (!url) {\n return false;\n }\n\n if (typeof url !== 'string') {\n return false;\n }\n\n return url.startsWith('data:image/svg+xml');\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 { isHttpUrl, isSvgDataUrl } from './condition-checks';\n\nexport const a11yBoolean = (value: boolean) => (value ? 'true' : 'false');\n\nconst kebabCaseToUpperCaseSentence = (kebabCase: string) => {\n const withoutFilledSuffix = kebabCase.replace('-filled', '');\n const words = withoutFilledSuffix.split('-');\n const sentence = words\n .map((word) => {\n const trimWord = word.trim();\n const digitLessWord = trimWord.replace(/\\d+/g, '');\n\n if (digitLessWord.length === 0) {\n return trimWord;\n }\n\n return digitLessWord;\n })\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ');\n\n return sentence;\n};\n\nexport const getFallbackLabelFromIconName = (iconName: string) => {\n if (!iconName) {\n return 'Unknown';\n }\n\n if (isHttpUrl(iconName)) {\n return 'Unknown';\n }\n\n if (isSvgDataUrl(iconName)) {\n return 'Unknown';\n }\n\n const label = kebabCaseToUpperCaseSentence(iconName);\n\n if (label.length === 0) {\n return 'Unknown';\n }\n\n return label;\n};\n\nexport const a11yHostAttributes = (\n hostElement: HTMLElement,\n ignoreAttributes: A11yAttributeName[] = []\n): Record<A11yAttributeName, any> => {\n const attributeObject: Record<string, any> = {};\n a11yAttributes.forEach((attr) => {\n if (hostElement.hasAttribute(attr)) {\n const value = hostElement.getAttribute(attr);\n if (value !== null && !ignoreAttributes.includes(attr)) {\n attributeObject[attr] = hostElement.getAttribute(attr);\n hostElement.removeAttribute(attr);\n }\n }\n });\n\n return attributeObject;\n};\n\ntype PartialRecord<K extends keyof any, T> = {\n [P in K]?: T;\n};\nexport type A11yAttributes = PartialRecord<A11yAttributeName, any>;\n\nexport type A11yAttributeName =\n | 'role'\n | 'aria-activedescendant'\n | 'aria-atomic'\n | 'aria-autocomplete'\n | 'aria-braillelabel'\n | 'aria-brailleroledescription'\n | 'aria-busy'\n | 'aria-checked'\n | 'aria-colcount'\n | 'aria-colindex'\n | 'aria-colindextext'\n | 'aria-colspan'\n | 'aria-controls'\n | 'aria-current'\n | 'aria-describedby'\n | 'aria-description'\n | 'aria-details'\n | 'aria-disabled'\n | 'aria-errormessage'\n | 'aria-expanded'\n | 'aria-flowto'\n | 'aria-haspopup'\n | 'aria-hidden'\n | 'aria-invalid'\n | 'aria-keyshortcuts'\n | 'aria-label'\n | 'aria-labelledby'\n | 'aria-level'\n | 'aria-live'\n | 'aria-multiline'\n | 'aria-multiselectable'\n | 'aria-orientation'\n | 'aria-owns'\n | 'aria-placeholder'\n | 'aria-posinset'\n | 'aria-pressed'\n | 'aria-readonly'\n | 'aria-relevant'\n | 'aria-required'\n | 'aria-roledescription'\n | 'aria-rowcount'\n | 'aria-rowindex'\n | 'aria-rowindextext'\n | 'aria-rowspan'\n | 'aria-selected'\n | 'aria-setsize'\n | 'aria-sort'\n | 'aria-valuemax'\n | 'aria-valuemin'\n | 'aria-valuenow'\n | 'aria-valuetext';\n\nconst a11yAttributes: A11yAttributeName[] = [\n 'role',\n 'aria-activedescendant',\n 'aria-atomic',\n 'aria-autocomplete',\n 'aria-braillelabel',\n 'aria-brailleroledescription',\n 'aria-busy',\n 'aria-checked',\n 'aria-colcount',\n 'aria-colindex',\n 'aria-colindextext',\n 'aria-colspan',\n 'aria-controls',\n 'aria-current',\n 'aria-describedby',\n 'aria-description',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-flowto',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-level',\n 'aria-live',\n 'aria-multiline',\n 'aria-multiselectable',\n 'aria-orientation',\n 'aria-owns',\n 'aria-placeholder',\n 'aria-posinset',\n 'aria-pressed',\n 'aria-readonly',\n 'aria-relevant',\n 'aria-required',\n 'aria-roledescription',\n 'aria-rowcount',\n 'aria-rowindex',\n 'aria-rowindextext',\n 'aria-rowspan',\n 'aria-selected',\n 'aria-setsize',\n 'aria-sort',\n 'aria-valuemax',\n 'aria-valuemin',\n 'aria-valuenow',\n 'aria-valuetext',\n];\n"],"version":3}
@@ -3,7 +3,7 @@
3
3
  const typedEvent = require('./typed-event-8032c0c0.js');
4
4
 
5
5
  /*
6
- * SPDX-FileCopyrightText: 2023 Siemens AG
6
+ * SPDX-FileCopyrightText: 2024 Siemens AG
7
7
  *
8
8
  * SPDX-License-Identifier: MIT
9
9
  *
@@ -103,4 +103,4 @@ exports.closestIxMenu = closestIxMenu;
103
103
  exports.useContextConsumer = useContextConsumer;
104
104
  exports.useContextProvider = useContextProvider;
105
105
 
106
- //# sourceMappingURL=context-98f4a0b3.js.map
106
+ //# sourceMappingURL=context-938f7470.js.map