@siemens/ix 0.0.0-20240522074328 → 0.0.0-pr-1373-20240705054533

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 (1085) hide show
  1. package/components/application-header.js +12 -4
  2. package/components/application-header.js.map +1 -1
  3. package/components/avatar.js +6 -1
  4. package/components/avatar.js.map +1 -1
  5. package/components/breadcrumb-item.js +1 -1
  6. package/components/breadcrumb-item.js.map +1 -1
  7. package/components/button.js +1 -1
  8. package/components/button.js.map +1 -1
  9. package/components/card-accordion.js +1 -1
  10. package/components/card-accordion.js.map +1 -1
  11. package/components/card-content.js +2 -2
  12. package/components/card-content.js.map +1 -1
  13. package/components/card-title.js +1 -1
  14. package/components/card.js +1 -1
  15. package/components/card.js.map +1 -1
  16. package/components/col.js +1 -1
  17. package/components/col.js.map +1 -1
  18. package/components/date-picker.js +5 -5
  19. package/components/date-picker.js.map +1 -1
  20. package/components/date-time-card.js +2 -2
  21. package/components/date-time-card.js.map +1 -1
  22. package/components/divider.js +1 -1
  23. package/components/dropdown-item.js +4 -4
  24. package/components/dropdown-item.js.map +1 -1
  25. package/components/dropdown.js +15 -8
  26. package/components/dropdown.js.map +1 -1
  27. package/components/filter-chip.js +2 -2
  28. package/components/filter-chip.js.map +1 -1
  29. package/components/group-context-menu.js +1 -1
  30. package/components/group-item.js +3 -3
  31. package/components/group-item.js.map +1 -1
  32. package/components/icon-button.js +2 -2
  33. package/components/icon-button.js.map +1 -1
  34. package/components/ix-action-card.js +1 -1
  35. package/components/ix-action-card.js.map +1 -1
  36. package/components/ix-application-sidebar.js +2 -2
  37. package/components/ix-application-sidebar.js.map +1 -1
  38. package/components/ix-application-switch-modal.js +2 -2
  39. package/components/ix-application-switch-modal.js.map +1 -1
  40. package/components/ix-application.js +4 -4
  41. package/components/ix-application.js.map +1 -1
  42. package/components/ix-basic-navigation.js +3 -3
  43. package/components/ix-basic-navigation.js.map +1 -1
  44. package/components/ix-blind.js +1 -1
  45. package/components/ix-blind.js.map +1 -1
  46. package/components/ix-breadcrumb.js +3 -3
  47. package/components/ix-breadcrumb.js.map +1 -1
  48. package/components/ix-card-list.js +5 -5
  49. package/components/ix-card-list.js.map +1 -1
  50. package/components/ix-category-filter.js +8 -5
  51. package/components/ix-category-filter.js.map +1 -1
  52. package/components/ix-chip.js +5 -5
  53. package/components/ix-chip.js.map +1 -1
  54. package/components/ix-content.js +4 -4
  55. package/components/ix-content.js.map +1 -1
  56. package/components/ix-css-grid-item.js +1 -1
  57. package/components/ix-date-dropdown.js +4 -4
  58. package/components/ix-date-dropdown.js.map +1 -1
  59. package/components/ix-datetime-picker.js +2 -2
  60. package/components/ix-datetime-picker.js.map +1 -1
  61. package/components/ix-drawer.js +3 -3
  62. package/components/ix-drawer.js.map +1 -1
  63. package/components/ix-dropdown-button.js +3 -3
  64. package/components/ix-dropdown-button.js.map +1 -1
  65. package/components/ix-dropdown-header.js +2 -2
  66. package/components/ix-dropdown-header.js.map +1 -1
  67. package/components/ix-dropdown-quick-actions.js +1 -1
  68. package/components/ix-empty-state.js +2 -2
  69. package/components/ix-empty-state.js.map +1 -1
  70. package/components/ix-event-list-item.js +5 -5
  71. package/components/ix-event-list-item.js.map +1 -1
  72. package/components/ix-event-list.js +3 -3
  73. package/components/ix-event-list.js.map +1 -1
  74. package/components/ix-expanding-search.js +5 -5
  75. package/components/ix-expanding-search.js.map +1 -1
  76. package/components/ix-flip-tile-content.js +1 -1
  77. package/components/ix-flip-tile.js +5 -5
  78. package/components/ix-flip-tile.js.map +1 -1
  79. package/components/ix-form-field.js +2 -2
  80. package/components/ix-form-field.js.map +1 -1
  81. package/components/ix-group.js +8 -8
  82. package/components/ix-icon-toggle-button.js +2 -2
  83. package/components/ix-icon-toggle-button.js.map +1 -1
  84. package/components/ix-input-group.js +2 -2
  85. package/components/ix-input-group.js.map +1 -1
  86. package/components/ix-key-value-list.js +1 -1
  87. package/components/ix-key-value.js +1 -1
  88. package/components/ix-key-value.js.map +1 -1
  89. package/components/ix-kpi.js +4 -4
  90. package/components/ix-kpi.js.map +1 -1
  91. package/components/ix-link-button.js +3 -3
  92. package/components/ix-map-navigation.js +3 -3
  93. package/components/ix-map-navigation.js.map +1 -1
  94. package/components/ix-menu-about-item.js +1 -1
  95. package/components/ix-menu-about-news.js +5 -5
  96. package/components/ix-menu-about-news.js.map +1 -1
  97. package/components/ix-menu-about.js +1 -1
  98. package/components/ix-menu-avatar.js +3 -3
  99. package/components/ix-menu-avatar.js.map +1 -1
  100. package/components/ix-menu-category.js +9 -6
  101. package/components/ix-menu-category.js.map +1 -1
  102. package/components/ix-menu-settings-item.js +1 -1
  103. package/components/ix-menu.js +12 -12
  104. package/components/ix-menu.js.map +1 -1
  105. package/components/ix-message-bar.js +2 -2
  106. package/components/ix-message-bar.js.map +1 -1
  107. package/components/ix-modal-example.js +1 -1
  108. package/components/ix-modal-footer.js +2 -2
  109. package/components/ix-modal-footer.js.map +1 -1
  110. package/components/ix-modal-loading.js +1 -1
  111. package/components/ix-modal.js +3 -3
  112. package/components/ix-pagination.js +3 -3
  113. package/components/ix-pagination.js.map +1 -1
  114. package/components/ix-pane-layout.js +2 -2
  115. package/components/ix-pane-layout.js.map +1 -1
  116. package/components/ix-pane.js +7 -7
  117. package/components/ix-pane.js.map +1 -1
  118. package/components/ix-pill.js +5 -5
  119. package/components/ix-pill.js.map +1 -1
  120. package/components/ix-playground-internal.js +1 -1
  121. package/components/ix-push-card.js +1 -1
  122. package/components/ix-slider.js +7 -7
  123. package/components/ix-slider.js.map +1 -1
  124. package/components/ix-split-button-item.js +1 -1
  125. package/components/ix-split-button.js +4 -2
  126. package/components/ix-split-button.js.map +1 -1
  127. package/components/ix-tile.js +5 -5
  128. package/components/ix-tile.js.map +1 -1
  129. package/components/ix-toast-container.js +3 -3
  130. package/components/ix-toast-container.js.map +1 -1
  131. package/components/ix-toggle-button.js +3 -3
  132. package/components/ix-toggle-button.js.map +1 -1
  133. package/components/ix-toggle.js +3 -3
  134. package/components/ix-toggle.js.map +1 -1
  135. package/components/ix-tree.js +1 -1
  136. package/components/ix-upload.js +4 -4
  137. package/components/ix-upload.js.map +1 -1
  138. package/components/ix-validation-tooltip.js +2 -2
  139. package/components/ix-workflow-step.js +5 -5
  140. package/components/ix-workflow-step.js.map +1 -1
  141. package/components/ix-workflow-steps.js +2 -2
  142. package/components/ix-workflow-steps.js.map +1 -1
  143. package/components/layout-grid.js +2 -2
  144. package/components/map-navigation-overlay.js +3 -3
  145. package/components/map-navigation-overlay.js.map +1 -1
  146. package/components/menu-avatar-item.js +2 -2
  147. package/components/menu-avatar-item.js.map +1 -1
  148. package/components/menu-expand-icon.js +2 -2
  149. package/components/menu-expand-icon.js.map +1 -1
  150. package/components/menu-item.js +4 -4
  151. package/components/menu-item.js.map +1 -1
  152. package/components/menu-tabs-fc.js +2 -2
  153. package/components/menu-tabs-fc.js.map +1 -1
  154. package/components/modal-content.js +2 -2
  155. package/components/modal-content.js.map +1 -1
  156. package/components/modal-header.js +2 -2
  157. package/components/modal-header.js.map +1 -1
  158. package/components/row.js +1 -1
  159. package/components/select-item.js +1 -1
  160. package/components/select.js +42 -24
  161. package/components/select.js.map +1 -1
  162. package/components/service.js +2 -2
  163. package/components/service.js.map +1 -1
  164. package/components/spinner.js +2 -2
  165. package/components/spinner.js.map +1 -1
  166. package/components/tab-item.js +4 -4
  167. package/components/tab-item.js.map +1 -1
  168. package/components/tabs.js +3 -3
  169. package/components/tabs.js.map +1 -1
  170. package/components/time-picker.js +4 -4
  171. package/components/time-picker.js.map +1 -1
  172. package/components/toast.js +3 -3
  173. package/components/toast.js.map +1 -1
  174. package/components/tooltip.js +7 -7
  175. package/components/tooltip.js.map +1 -1
  176. package/components/tree-item.js +5 -5
  177. package/components/tree-item.js.map +1 -1
  178. package/components/typography.js +1 -1
  179. package/components/typography.js.map +1 -1
  180. package/dist/cjs/app-globals-5cfdf2a0.js.map +1 -1
  181. package/dist/cjs/{base-button-7c45a6c4.js → base-button-3735b8c2.js} +2 -2
  182. package/dist/cjs/{base-button-7c45a6c4.js.map → base-button-3735b8c2.js.map} +1 -1
  183. package/dist/cjs/{base-icon-button-ac2fcf4b.js → base-icon-button-44c72bc8.js} +3 -3
  184. package/dist/cjs/{base-icon-button-ac2fcf4b.js.map → base-icon-button-44c72bc8.js.map} +1 -1
  185. package/dist/cjs/index-529f21c1.js +2122 -0
  186. package/dist/cjs/index-529f21c1.js.map +1 -0
  187. package/dist/cjs/ix-action-card.cjs.entry.js +2 -2
  188. package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -1
  189. package/dist/cjs/ix-application-header.cjs.entry.js +14 -6
  190. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  191. package/dist/cjs/ix-application-sidebar.cjs.entry.js +3 -3
  192. package/dist/cjs/ix-application-sidebar.cjs.entry.js.map +1 -1
  193. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +3 -3
  194. package/dist/cjs/ix-application-switch-modal.cjs.entry.js.map +1 -1
  195. package/dist/cjs/ix-application.cjs.entry.js +6 -6
  196. package/dist/cjs/ix-application.cjs.entry.js.map +1 -1
  197. package/dist/cjs/ix-avatar_2.cjs.entry.js +10 -5
  198. package/dist/cjs/ix-avatar_2.cjs.entry.js.map +1 -1
  199. package/dist/cjs/ix-basic-navigation.cjs.entry.js +5 -5
  200. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  201. package/dist/cjs/ix-blind.cjs.entry.js +2 -2
  202. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  203. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +3 -3
  204. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
  205. package/dist/cjs/ix-breadcrumb.cjs.entry.js +4 -4
  206. package/dist/cjs/ix-breadcrumb.cjs.entry.js.map +1 -1
  207. package/dist/cjs/ix-button.cjs.entry.js +3 -3
  208. package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
  209. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +3 -3
  210. package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
  211. package/dist/cjs/ix-card-list.cjs.entry.js +6 -6
  212. package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -1
  213. package/dist/cjs/ix-card_2.cjs.entry.js +4 -4
  214. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
  215. package/dist/cjs/ix-category-filter.cjs.entry.js +10 -7
  216. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  217. package/dist/cjs/ix-chip.cjs.entry.js +6 -6
  218. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  219. package/dist/cjs/ix-col_4.cjs.entry.js +11 -11
  220. package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
  221. package/dist/cjs/ix-content-header.cjs.entry.js +1 -1
  222. package/dist/cjs/ix-content.cjs.entry.js +5 -5
  223. package/dist/cjs/ix-content.cjs.entry.js.map +1 -1
  224. package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
  225. package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
  226. package/dist/cjs/ix-date-dropdown.cjs.entry.js +5 -5
  227. package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
  228. package/dist/cjs/ix-date-time-card.cjs.entry.js +3 -3
  229. package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -1
  230. package/dist/cjs/ix-datetime-picker.cjs.entry.js +3 -3
  231. package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -1
  232. package/dist/cjs/ix-divider.cjs.entry.js +2 -2
  233. package/dist/cjs/ix-drawer.cjs.entry.js +4 -4
  234. package/dist/cjs/ix-drawer.cjs.entry.js.map +1 -1
  235. package/dist/cjs/ix-dropdown-button.cjs.entry.js +4 -4
  236. package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
  237. package/dist/cjs/ix-dropdown-header.cjs.entry.js +3 -3
  238. package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -1
  239. package/dist/cjs/ix-dropdown-item.cjs.entry.js +5 -5
  240. package/dist/cjs/ix-dropdown-item.cjs.entry.js.map +1 -1
  241. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
  242. package/dist/cjs/ix-dropdown.cjs.entry.js +16 -9
  243. package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
  244. package/dist/cjs/ix-empty-state.cjs.entry.js +3 -3
  245. package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
  246. package/dist/cjs/ix-event-list-item.cjs.entry.js +6 -6
  247. package/dist/cjs/ix-event-list-item.cjs.entry.js.map +1 -1
  248. package/dist/cjs/ix-event-list.cjs.entry.js +4 -4
  249. package/dist/cjs/ix-event-list.cjs.entry.js.map +1 -1
  250. package/dist/cjs/ix-expanding-search.cjs.entry.js +6 -6
  251. package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
  252. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +4 -4
  253. package/dist/cjs/ix-filter-chip_2.cjs.entry.js.map +1 -1
  254. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
  255. package/dist/cjs/ix-flip-tile.cjs.entry.js +6 -6
  256. package/dist/cjs/ix-flip-tile.cjs.entry.js.map +1 -1
  257. package/dist/cjs/ix-form-field.cjs.entry.js +3 -3
  258. package/dist/cjs/ix-form-field.cjs.entry.js.map +1 -1
  259. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +5 -5
  260. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  261. package/dist/cjs/ix-group.cjs.entry.js +9 -9
  262. package/dist/cjs/ix-icon-button_2.cjs.entry.js +7 -7
  263. package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
  264. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +5 -5
  265. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js.map +1 -1
  266. package/dist/cjs/ix-input-group.cjs.entry.js +3 -3
  267. package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
  268. package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
  269. package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
  270. package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
  271. package/dist/cjs/ix-kpi.cjs.entry.js +5 -5
  272. package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
  273. package/dist/cjs/ix-link-button.cjs.entry.js +4 -4
  274. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +4 -4
  275. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js.map +1 -1
  276. package/dist/cjs/ix-map-navigation.cjs.entry.js +4 -4
  277. package/dist/cjs/ix-map-navigation.cjs.entry.js.map +1 -1
  278. package/dist/cjs/ix-menu-about-item.cjs.entry.js +2 -2
  279. package/dist/cjs/ix-menu-about-news.cjs.entry.js +6 -6
  280. package/dist/cjs/ix-menu-about-news.cjs.entry.js.map +1 -1
  281. package/dist/cjs/ix-menu-about.cjs.entry.js +3 -3
  282. package/dist/cjs/ix-menu-avatar.cjs.entry.js +4 -4
  283. package/dist/cjs/ix-menu-avatar.cjs.entry.js.map +1 -1
  284. package/dist/cjs/ix-menu-category.cjs.entry.js +10 -7
  285. package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -1
  286. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +4 -4
  287. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js.map +1 -1
  288. package/dist/cjs/ix-menu-item.cjs.entry.js +5 -5
  289. package/dist/cjs/ix-menu-item.cjs.entry.js.map +1 -1
  290. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
  291. package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
  292. package/dist/cjs/ix-menu.cjs.entry.js +14 -14
  293. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  294. package/dist/cjs/ix-message-bar.cjs.entry.js +3 -3
  295. package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -1
  296. package/dist/cjs/ix-modal-content_2.cjs.entry.js +5 -5
  297. package/dist/cjs/ix-modal-content_2.cjs.entry.js.map +1 -1
  298. package/dist/cjs/ix-modal-example.cjs.entry.js +2 -2
  299. package/dist/cjs/ix-modal-footer.cjs.entry.js +3 -3
  300. package/dist/cjs/ix-modal-footer.cjs.entry.js.map +1 -1
  301. package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
  302. package/dist/cjs/ix-modal.cjs.entry.js +5 -5
  303. package/dist/cjs/ix-pagination.cjs.entry.js +5 -5
  304. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  305. package/dist/cjs/ix-pane-layout.cjs.entry.js +4 -4
  306. package/dist/cjs/ix-pane-layout.cjs.entry.js.map +1 -1
  307. package/dist/cjs/ix-pane.cjs.entry.js +9 -9
  308. package/dist/cjs/ix-pane.cjs.entry.js.map +1 -1
  309. package/dist/cjs/ix-pill.cjs.entry.js +6 -6
  310. package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
  311. package/dist/cjs/ix-playground-internal.cjs.entry.js +2 -2
  312. package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
  313. package/dist/cjs/ix-select.cjs.entry.js +44 -26
  314. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  315. package/dist/cjs/ix-slider.cjs.entry.js +9 -9
  316. package/dist/cjs/ix-slider.cjs.entry.js.map +1 -1
  317. package/dist/cjs/ix-split-button-item.cjs.entry.js +2 -2
  318. package/dist/cjs/ix-split-button.cjs.entry.js +4 -3
  319. package/dist/cjs/ix-split-button.cjs.entry.js.map +1 -1
  320. package/dist/cjs/ix-tab-item_2.cjs.entry.js +8 -8
  321. package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
  322. package/dist/cjs/ix-tile.cjs.entry.js +6 -6
  323. package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
  324. package/dist/cjs/ix-time-picker.cjs.entry.js +5 -5
  325. package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
  326. package/dist/cjs/ix-toast-container.cjs.entry.js +4 -4
  327. package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
  328. package/dist/cjs/ix-toast.cjs.entry.js +4 -4
  329. package/dist/cjs/ix-toast.cjs.entry.js.map +1 -1
  330. package/dist/cjs/ix-toggle-button.cjs.entry.js +5 -5
  331. package/dist/cjs/ix-toggle-button.cjs.entry.js.map +1 -1
  332. package/dist/cjs/ix-toggle.cjs.entry.js +4 -4
  333. package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
  334. package/dist/cjs/ix-tooltip.cjs.entry.js +9 -9
  335. package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -1
  336. package/dist/cjs/ix-tree-item.cjs.entry.js +6 -6
  337. package/dist/cjs/ix-tree-item.cjs.entry.js.map +1 -1
  338. package/dist/cjs/ix-tree.cjs.entry.js +2 -2
  339. package/dist/cjs/ix-typography.cjs.entry.js +2 -2
  340. package/dist/cjs/ix-typography.cjs.entry.js.map +1 -1
  341. package/dist/cjs/ix-upload.cjs.entry.js +5 -5
  342. package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
  343. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -3
  344. package/dist/cjs/ix-workflow-step.cjs.entry.js +6 -6
  345. package/dist/cjs/ix-workflow-step.cjs.entry.js.map +1 -1
  346. package/dist/cjs/ix-workflow-steps.cjs.entry.js +3 -3
  347. package/dist/cjs/ix-workflow-steps.cjs.entry.js.map +1 -1
  348. package/dist/cjs/{listener-d27acb41.js → listener-bc3e7c0c.js} +2 -2
  349. package/dist/cjs/{listener-d27acb41.js.map → listener-bc3e7c0c.js.map} +1 -1
  350. package/dist/cjs/loader.cjs.js +2 -2
  351. package/dist/cjs/{menu-tabs-fc-194c3ba9.js → menu-tabs-fc-df53f176.js} +4 -4
  352. package/dist/cjs/{menu-tabs-fc-194c3ba9.js.map → menu-tabs-fc-df53f176.js.map} +1 -1
  353. package/dist/cjs/{service-a42add5f.js → service-39a8e5fe.js} +3 -3
  354. package/dist/cjs/service-39a8e5fe.js.map +1 -0
  355. package/dist/cjs/siemens-ix.cjs.js +10 -10
  356. package/dist/cjs/siemens-ix.cjs.js.map +1 -1
  357. package/dist/collection/collection-manifest.json +2 -2
  358. package/dist/collection/components/action-card/action-card.css +6 -0
  359. package/dist/collection/components/action-card/action-card.js +1 -1
  360. package/dist/collection/components/application/application.css +6 -0
  361. package/dist/collection/components/application/application.js +3 -3
  362. package/dist/collection/components/application-header/application-header.css +6 -0
  363. package/dist/collection/components/application-header/application-header.js +11 -3
  364. package/dist/collection/components/application-header/application-header.js.map +1 -1
  365. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.css +6 -0
  366. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
  367. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js.map +1 -1
  368. package/dist/collection/components/application-sidebar/application-sidebar.css +7 -2
  369. package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
  370. package/dist/collection/components/avatar/avatar.js +6 -1
  371. package/dist/collection/components/avatar/avatar.js.map +1 -1
  372. package/dist/collection/components/basic-navigation/basic-navigation.css +6 -0
  373. package/dist/collection/components/basic-navigation/basic-navigation.js +2 -2
  374. package/dist/collection/components/blind/blind.css +6 -0
  375. package/dist/collection/components/blind/blind.js +1 -1
  376. package/dist/collection/components/breadcrumb/breadcrumb.css +6 -0
  377. package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
  378. package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +18 -0
  379. package/dist/collection/components/button/button.css +6 -0
  380. package/dist/collection/components/button/button.js +1 -1
  381. package/dist/collection/components/card/card.css +6 -0
  382. package/dist/collection/components/card/card.js +1 -1
  383. package/dist/collection/components/card-accordion/card-accordion.css +6 -0
  384. package/dist/collection/components/card-accordion/card-accordion.js +1 -1
  385. package/dist/collection/components/card-content/card-content.css +7 -2
  386. package/dist/collection/components/card-content/card-content.js +1 -1
  387. package/dist/collection/components/card-list/card-list.css +6 -0
  388. package/dist/collection/components/card-list/card-list.js +4 -4
  389. package/dist/collection/components/card-title/card-title.js +1 -1
  390. package/dist/collection/components/category-filter/category-filter.css +16 -0
  391. package/dist/collection/components/category-filter/category-filter.js +7 -4
  392. package/dist/collection/components/category-filter/category-filter.js.map +1 -1
  393. package/dist/collection/components/chip/chip.css +38 -8
  394. package/dist/collection/components/chip/chip.js +4 -4
  395. package/dist/collection/components/chip/test/chip.ct.js +32 -0
  396. package/dist/collection/components/chip/test/chip.ct.js.map +1 -0
  397. package/dist/collection/components/col/col.css +7 -2
  398. package/dist/collection/components/col/col.js +4 -4
  399. package/dist/collection/components/content/content.css +6 -0
  400. package/dist/collection/components/content/content.js +3 -3
  401. package/dist/collection/components/content-header/content-header.js +1 -1
  402. package/dist/collection/components/css-grid/css-grid-item.js +1 -1
  403. package/dist/collection/components/css-grid/css-grid.js +1 -1
  404. package/dist/collection/components/date-dropdown/date-dropdown.css +6 -0
  405. package/dist/collection/components/date-dropdown/date-dropdown.js +6 -6
  406. package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
  407. package/dist/collection/components/date-picker/date-picker.css +6 -0
  408. package/dist/collection/components/date-picker/date-picker.js +7 -7
  409. package/dist/collection/components/date-time-card/date-time-card.css +6 -0
  410. package/dist/collection/components/date-time-card/date-time-card.js +2 -2
  411. package/dist/collection/components/datetime-picker/datetime-picker.css +6 -0
  412. package/dist/collection/components/datetime-picker/datetime-picker.js +3 -3
  413. package/dist/collection/components/divider/divider.js +1 -1
  414. package/dist/collection/components/drawer/drawer.css +6 -0
  415. package/dist/collection/components/drawer/drawer.js +2 -2
  416. package/dist/collection/components/dropdown/dropdown-controller.js +1 -0
  417. package/dist/collection/components/dropdown/dropdown-controller.js.map +1 -1
  418. package/dist/collection/components/dropdown/dropdown.css +6 -0
  419. package/dist/collection/components/dropdown/dropdown.js +13 -7
  420. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  421. package/dist/collection/components/dropdown/test/dropdown.ct.js +18 -0
  422. package/dist/collection/components/dropdown/test/dropdown.ct.js.map +1 -1
  423. package/dist/collection/components/dropdown-button/dropdown-button.css +6 -0
  424. package/dist/collection/components/dropdown-button/dropdown-button.ct.js +51 -0
  425. package/dist/collection/components/dropdown-button/dropdown-button.ct.js.map +1 -0
  426. package/dist/collection/components/dropdown-button/dropdown-button.js +3 -3
  427. package/dist/collection/components/dropdown-header/dropdown-header.css +6 -0
  428. package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
  429. package/dist/collection/components/dropdown-item/dropdown-item.css +6 -0
  430. package/dist/collection/components/dropdown-item/dropdown-item.js +3 -3
  431. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  432. package/dist/collection/components/empty-state/empty-state.css +6 -0
  433. package/dist/collection/components/empty-state/empty-state.js +2 -2
  434. package/dist/collection/components/empty-state/empty-state.js.map +1 -1
  435. package/dist/collection/components/event-list/event-list.css +6 -0
  436. package/dist/collection/components/event-list/event-list.js +2 -2
  437. package/dist/collection/components/event-list-item/event-list-item.css +6 -0
  438. package/dist/collection/components/event-list-item/event-list-item.js +4 -4
  439. package/dist/collection/components/event-list-item/event-list-item.js.map +1 -1
  440. package/dist/collection/components/expanding-search/expanding-search.css +6 -0
  441. package/dist/collection/components/expanding-search/expanding-search.js +4 -4
  442. package/dist/collection/components/filter-chip/filter-chip.css +6 -0
  443. package/dist/collection/components/filter-chip/filter-chip.js +1 -1
  444. package/dist/collection/components/flip-tile/flip-tile.css +6 -0
  445. package/dist/collection/components/flip-tile/flip-tile.js +4 -4
  446. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  447. package/dist/collection/components/form-field/form-field.css +2 -0
  448. package/dist/collection/components/form-field/form-field.js +1 -1
  449. package/dist/collection/components/grid/layout-grid.js +2 -2
  450. package/dist/collection/components/group/group-context-menu.js +1 -1
  451. package/dist/collection/components/group/group.js +8 -8
  452. package/dist/collection/components/group-item/group-item.css +6 -0
  453. package/dist/collection/components/group-item/group-item.js +2 -2
  454. package/dist/collection/components/icon-button/icon-button.css +12 -0
  455. package/dist/collection/components/icon-button/icon-button.js +2 -2
  456. package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +12 -0
  457. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
  458. package/dist/collection/components/input-group/input-group.css +6 -0
  459. package/dist/collection/components/input-group/input-group.js +1 -1
  460. package/dist/collection/components/key-value/key-value.js +2 -2
  461. package/dist/collection/components/key-value/key-value.js.map +1 -1
  462. package/dist/collection/components/key-value-list/key-value-list.js +1 -1
  463. package/dist/collection/components/kpi/kpi.css +6 -0
  464. package/dist/collection/components/kpi/kpi.js +3 -3
  465. package/dist/collection/components/link-button/link-button.js +3 -3
  466. package/dist/collection/components/map-navigation/map-navigation.css +6 -0
  467. package/dist/collection/components/map-navigation/map-navigation.js +2 -2
  468. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.css +6 -0
  469. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
  470. package/dist/collection/components/menu/menu-expand-icon.css +6 -0
  471. package/dist/collection/components/menu/menu-expand-icon.js +1 -1
  472. package/dist/collection/components/menu/menu.css +7 -1
  473. package/dist/collection/components/menu/menu.js +11 -11
  474. package/dist/collection/components/menu/menu.js.map +1 -1
  475. package/dist/collection/components/menu-about/menu-about.js +1 -1
  476. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  477. package/dist/collection/components/menu-about-news/menu-about-news.css +6 -0
  478. package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
  479. package/dist/collection/components/menu-avatar/menu-avatar.css +6 -0
  480. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
  481. package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +6 -0
  482. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
  483. package/dist/collection/components/menu-category/menu-category.css +6 -0
  484. package/dist/collection/components/menu-category/menu-category.js +8 -5
  485. package/dist/collection/components/menu-category/menu-category.js.map +1 -1
  486. package/dist/collection/components/menu-item/menu-item.css +0 -3
  487. package/dist/collection/components/menu-item/menu-item.js +3 -3
  488. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  489. package/dist/collection/components/menu-settings/menu-settings.css +6 -0
  490. package/dist/collection/components/menu-settings/menu-settings.js +1 -1
  491. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  492. package/dist/collection/components/message-bar/message-bar.css +6 -0
  493. package/dist/collection/components/message-bar/message-bar.js +1 -1
  494. package/dist/collection/components/modal/modal.js +4 -4
  495. package/dist/collection/components/modal-content/modal-content.css +6 -0
  496. package/dist/collection/components/modal-content/modal-content.js +1 -1
  497. package/dist/collection/components/modal-footer/modal-footer.css +6 -0
  498. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  499. package/dist/collection/components/modal-header/modal-header.css +6 -0
  500. package/dist/collection/components/modal-header/modal-header.js +1 -1
  501. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  502. package/dist/collection/components/pagination/pagination.css +20 -0
  503. package/dist/collection/components/pagination/pagination.js +2 -2
  504. package/dist/collection/components/pane/pane.css +9 -0
  505. package/dist/collection/components/pane/pane.js +12 -12
  506. package/dist/collection/components/pane-layout/pane-layout.css +6 -0
  507. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  508. package/dist/collection/components/pill/pill.css +38 -7
  509. package/dist/collection/components/pill/pill.js +4 -4
  510. package/dist/collection/components/playground/example-modal.js +1 -1
  511. package/dist/collection/components/playground/playground.js +1 -1
  512. package/dist/collection/components/push-card/push-card.js +2 -2
  513. package/dist/collection/components/row/row.js +1 -1
  514. package/dist/collection/components/select/select.css +6 -0
  515. package/dist/collection/components/select/select.js +41 -23
  516. package/dist/collection/components/select/select.js.map +1 -1
  517. package/dist/collection/components/select/test/select.ct.js +136 -36
  518. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  519. package/dist/collection/components/select-item/select-item.js +1 -1
  520. package/dist/collection/components/slider/slider.css +6 -0
  521. package/dist/collection/components/slider/slider.js +7 -7
  522. package/dist/collection/components/spinner/spinner.css +30 -0
  523. package/dist/collection/components/spinner/spinner.js +1 -1
  524. package/dist/collection/components/split-button/split-button.css +6 -0
  525. package/dist/collection/components/split-button/split-button.js +30 -2
  526. package/dist/collection/components/split-button/split-button.js.map +1 -1
  527. package/dist/collection/components/split-button-item/split-button-item.js +1 -1
  528. package/dist/collection/components/tab-item/tab-item.css +13 -13
  529. package/dist/collection/components/tab-item/tab-item.js +5 -5
  530. package/dist/collection/components/tab-item/tab-item.js.map +1 -1
  531. package/dist/collection/components/tabs/tabs.css +6 -0
  532. package/dist/collection/components/tabs/tabs.js +2 -2
  533. package/dist/collection/components/tile/tile.css +6 -0
  534. package/dist/collection/components/tile/tile.js +4 -4
  535. package/dist/collection/components/time-picker/time-picker.css +8 -0
  536. package/dist/collection/components/time-picker/time-picker.js +4 -4
  537. package/dist/collection/components/toast/styles/toast-container.css +6 -0
  538. package/dist/collection/components/toast/toast-container.js +3 -3
  539. package/dist/collection/components/toast/toast.css +6 -0
  540. package/dist/collection/components/toast/toast.js +2 -2
  541. package/dist/collection/components/toggle/toggle.css +6 -0
  542. package/dist/collection/components/toggle/toggle.js +2 -2
  543. package/dist/collection/components/toggle-button/toggle-button.css +6 -0
  544. package/dist/collection/components/toggle-button/toggle-button.js +2 -2
  545. package/dist/collection/components/tooltip/tooltip.css +2 -2
  546. package/dist/collection/components/tooltip/tooltip.js +6 -6
  547. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  548. package/dist/collection/components/tree/tree.js +1 -1
  549. package/dist/collection/components/tree-item/tree-item.css +6 -0
  550. package/dist/collection/components/tree-item/tree-item.js +4 -4
  551. package/dist/collection/components/typography/typography.css +7 -2
  552. package/dist/collection/components/typography/typography.js +5 -5
  553. package/dist/collection/components/upload/upload.css +6 -0
  554. package/dist/collection/components/upload/upload.js +3 -3
  555. package/dist/collection/components/utils/application-layout/service.js +2 -2
  556. package/dist/collection/components/utils/application-layout/service.js.map +1 -1
  557. package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
  558. package/dist/collection/components/workflow-step/workflow-step.css +6 -0
  559. package/dist/collection/components/workflow-step/workflow-step.js +4 -4
  560. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  561. package/dist/collection/components/workflow-steps/workflow-steps.css +6 -0
  562. package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
  563. package/dist/collection/tests/panes/panes.e2e.js +5 -0
  564. package/dist/collection/tests/panes/panes.e2e.js.map +1 -1
  565. package/dist/esm/app-globals-0cd07cd9.js.map +1 -1
  566. package/dist/esm/{base-button-3ac703a7.js → base-button-1b40b11d.js} +2 -2
  567. package/dist/esm/{base-button-3ac703a7.js.map → base-button-1b40b11d.js.map} +1 -1
  568. package/dist/esm/{base-icon-button-59eb1fe5.js → base-icon-button-bc1dabe0.js} +3 -3
  569. package/dist/esm/{base-icon-button-59eb1fe5.js.map → base-icon-button-bc1dabe0.js.map} +1 -1
  570. package/dist/esm/index-5429f20b.js +2090 -0
  571. package/dist/esm/index-5429f20b.js.map +1 -0
  572. package/dist/esm/ix-action-card.entry.js +2 -2
  573. package/dist/esm/ix-action-card.entry.js.map +1 -1
  574. package/dist/esm/ix-application-header.entry.js +14 -6
  575. package/dist/esm/ix-application-header.entry.js.map +1 -1
  576. package/dist/esm/ix-application-sidebar.entry.js +3 -3
  577. package/dist/esm/ix-application-sidebar.entry.js.map +1 -1
  578. package/dist/esm/ix-application-switch-modal.entry.js +3 -3
  579. package/dist/esm/ix-application-switch-modal.entry.js.map +1 -1
  580. package/dist/esm/ix-application.entry.js +6 -6
  581. package/dist/esm/ix-application.entry.js.map +1 -1
  582. package/dist/esm/ix-avatar_2.entry.js +10 -5
  583. package/dist/esm/ix-avatar_2.entry.js.map +1 -1
  584. package/dist/esm/ix-basic-navigation.entry.js +5 -5
  585. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  586. package/dist/esm/ix-blind.entry.js +2 -2
  587. package/dist/esm/ix-blind.entry.js.map +1 -1
  588. package/dist/esm/ix-breadcrumb-item.entry.js +3 -3
  589. package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
  590. package/dist/esm/ix-breadcrumb.entry.js +4 -4
  591. package/dist/esm/ix-breadcrumb.entry.js.map +1 -1
  592. package/dist/esm/ix-button.entry.js +3 -3
  593. package/dist/esm/ix-button.entry.js.map +1 -1
  594. package/dist/esm/ix-card-accordion_2.entry.js +3 -3
  595. package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
  596. package/dist/esm/ix-card-list.entry.js +6 -6
  597. package/dist/esm/ix-card-list.entry.js.map +1 -1
  598. package/dist/esm/ix-card_2.entry.js +4 -4
  599. package/dist/esm/ix-card_2.entry.js.map +1 -1
  600. package/dist/esm/ix-category-filter.entry.js +10 -7
  601. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  602. package/dist/esm/ix-chip.entry.js +6 -6
  603. package/dist/esm/ix-chip.entry.js.map +1 -1
  604. package/dist/esm/ix-col_4.entry.js +11 -11
  605. package/dist/esm/ix-col_4.entry.js.map +1 -1
  606. package/dist/esm/ix-content-header.entry.js +1 -1
  607. package/dist/esm/ix-content.entry.js +5 -5
  608. package/dist/esm/ix-content.entry.js.map +1 -1
  609. package/dist/esm/ix-css-grid-item.entry.js +2 -2
  610. package/dist/esm/ix-css-grid.entry.js +1 -1
  611. package/dist/esm/ix-date-dropdown.entry.js +5 -5
  612. package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
  613. package/dist/esm/ix-date-time-card.entry.js +3 -3
  614. package/dist/esm/ix-date-time-card.entry.js.map +1 -1
  615. package/dist/esm/ix-datetime-picker.entry.js +3 -3
  616. package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
  617. package/dist/esm/ix-divider.entry.js +2 -2
  618. package/dist/esm/ix-drawer.entry.js +4 -4
  619. package/dist/esm/ix-drawer.entry.js.map +1 -1
  620. package/dist/esm/ix-dropdown-button.entry.js +4 -4
  621. package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
  622. package/dist/esm/ix-dropdown-header.entry.js +3 -3
  623. package/dist/esm/ix-dropdown-header.entry.js.map +1 -1
  624. package/dist/esm/ix-dropdown-item.entry.js +5 -5
  625. package/dist/esm/ix-dropdown-item.entry.js.map +1 -1
  626. package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
  627. package/dist/esm/ix-dropdown.entry.js +16 -9
  628. package/dist/esm/ix-dropdown.entry.js.map +1 -1
  629. package/dist/esm/ix-empty-state.entry.js +3 -3
  630. package/dist/esm/ix-empty-state.entry.js.map +1 -1
  631. package/dist/esm/ix-event-list-item.entry.js +6 -6
  632. package/dist/esm/ix-event-list-item.entry.js.map +1 -1
  633. package/dist/esm/ix-event-list.entry.js +4 -4
  634. package/dist/esm/ix-event-list.entry.js.map +1 -1
  635. package/dist/esm/ix-expanding-search.entry.js +6 -6
  636. package/dist/esm/ix-expanding-search.entry.js.map +1 -1
  637. package/dist/esm/ix-filter-chip_2.entry.js +4 -4
  638. package/dist/esm/ix-filter-chip_2.entry.js.map +1 -1
  639. package/dist/esm/ix-flip-tile-content.entry.js +2 -2
  640. package/dist/esm/ix-flip-tile.entry.js +6 -6
  641. package/dist/esm/ix-flip-tile.entry.js.map +1 -1
  642. package/dist/esm/ix-form-field.entry.js +3 -3
  643. package/dist/esm/ix-form-field.entry.js.map +1 -1
  644. package/dist/esm/ix-group-context-menu_2.entry.js +5 -5
  645. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  646. package/dist/esm/ix-group.entry.js +9 -9
  647. package/dist/esm/ix-icon-button_2.entry.js +7 -7
  648. package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
  649. package/dist/esm/ix-icon-toggle-button.entry.js +5 -5
  650. package/dist/esm/ix-icon-toggle-button.entry.js.map +1 -1
  651. package/dist/esm/ix-input-group.entry.js +3 -3
  652. package/dist/esm/ix-input-group.entry.js.map +1 -1
  653. package/dist/esm/ix-key-value-list.entry.js +2 -2
  654. package/dist/esm/ix-key-value.entry.js +2 -2
  655. package/dist/esm/ix-key-value.entry.js.map +1 -1
  656. package/dist/esm/ix-kpi.entry.js +5 -5
  657. package/dist/esm/ix-kpi.entry.js.map +1 -1
  658. package/dist/esm/ix-link-button.entry.js +4 -4
  659. package/dist/esm/ix-map-navigation-overlay.entry.js +4 -4
  660. package/dist/esm/ix-map-navigation-overlay.entry.js.map +1 -1
  661. package/dist/esm/ix-map-navigation.entry.js +4 -4
  662. package/dist/esm/ix-map-navigation.entry.js.map +1 -1
  663. package/dist/esm/ix-menu-about-item.entry.js +2 -2
  664. package/dist/esm/ix-menu-about-news.entry.js +6 -6
  665. package/dist/esm/ix-menu-about-news.entry.js.map +1 -1
  666. package/dist/esm/ix-menu-about.entry.js +3 -3
  667. package/dist/esm/ix-menu-avatar.entry.js +4 -4
  668. package/dist/esm/ix-menu-avatar.entry.js.map +1 -1
  669. package/dist/esm/ix-menu-category.entry.js +10 -7
  670. package/dist/esm/ix-menu-category.entry.js.map +1 -1
  671. package/dist/esm/ix-menu-expand-icon.entry.js +4 -4
  672. package/dist/esm/ix-menu-expand-icon.entry.js.map +1 -1
  673. package/dist/esm/ix-menu-item.entry.js +5 -5
  674. package/dist/esm/ix-menu-item.entry.js.map +1 -1
  675. package/dist/esm/ix-menu-settings-item.entry.js +2 -2
  676. package/dist/esm/ix-menu-settings.entry.js +2 -2
  677. package/dist/esm/ix-menu.entry.js +14 -14
  678. package/dist/esm/ix-menu.entry.js.map +1 -1
  679. package/dist/esm/ix-message-bar.entry.js +3 -3
  680. package/dist/esm/ix-message-bar.entry.js.map +1 -1
  681. package/dist/esm/ix-modal-content_2.entry.js +5 -5
  682. package/dist/esm/ix-modal-content_2.entry.js.map +1 -1
  683. package/dist/esm/ix-modal-example.entry.js +2 -2
  684. package/dist/esm/ix-modal-footer.entry.js +3 -3
  685. package/dist/esm/ix-modal-footer.entry.js.map +1 -1
  686. package/dist/esm/ix-modal-loading.entry.js +2 -2
  687. package/dist/esm/ix-modal.entry.js +5 -5
  688. package/dist/esm/ix-pagination.entry.js +5 -5
  689. package/dist/esm/ix-pagination.entry.js.map +1 -1
  690. package/dist/esm/ix-pane-layout.entry.js +4 -4
  691. package/dist/esm/ix-pane-layout.entry.js.map +1 -1
  692. package/dist/esm/ix-pane.entry.js +9 -9
  693. package/dist/esm/ix-pane.entry.js.map +1 -1
  694. package/dist/esm/ix-pill.entry.js +6 -6
  695. package/dist/esm/ix-pill.entry.js.map +1 -1
  696. package/dist/esm/ix-playground-internal.entry.js +2 -2
  697. package/dist/esm/ix-push-card.entry.js +2 -2
  698. package/dist/esm/ix-select.entry.js +44 -26
  699. package/dist/esm/ix-select.entry.js.map +1 -1
  700. package/dist/esm/ix-slider.entry.js +9 -9
  701. package/dist/esm/ix-slider.entry.js.map +1 -1
  702. package/dist/esm/ix-split-button-item.entry.js +2 -2
  703. package/dist/esm/ix-split-button.entry.js +4 -3
  704. package/dist/esm/ix-split-button.entry.js.map +1 -1
  705. package/dist/esm/ix-tab-item_2.entry.js +8 -8
  706. package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
  707. package/dist/esm/ix-tile.entry.js +6 -6
  708. package/dist/esm/ix-tile.entry.js.map +1 -1
  709. package/dist/esm/ix-time-picker.entry.js +5 -5
  710. package/dist/esm/ix-time-picker.entry.js.map +1 -1
  711. package/dist/esm/ix-toast-container.entry.js +4 -4
  712. package/dist/esm/ix-toast-container.entry.js.map +1 -1
  713. package/dist/esm/ix-toast.entry.js +4 -4
  714. package/dist/esm/ix-toast.entry.js.map +1 -1
  715. package/dist/esm/ix-toggle-button.entry.js +5 -5
  716. package/dist/esm/ix-toggle-button.entry.js.map +1 -1
  717. package/dist/esm/ix-toggle.entry.js +4 -4
  718. package/dist/esm/ix-toggle.entry.js.map +1 -1
  719. package/dist/esm/ix-tooltip.entry.js +9 -9
  720. package/dist/esm/ix-tooltip.entry.js.map +1 -1
  721. package/dist/esm/ix-tree-item.entry.js +6 -6
  722. package/dist/esm/ix-tree-item.entry.js.map +1 -1
  723. package/dist/esm/ix-tree.entry.js +2 -2
  724. package/dist/esm/ix-typography.entry.js +2 -2
  725. package/dist/esm/ix-typography.entry.js.map +1 -1
  726. package/dist/esm/ix-upload.entry.js +5 -5
  727. package/dist/esm/ix-upload.entry.js.map +1 -1
  728. package/dist/esm/ix-validation-tooltip.entry.js +3 -3
  729. package/dist/esm/ix-workflow-step.entry.js +6 -6
  730. package/dist/esm/ix-workflow-step.entry.js.map +1 -1
  731. package/dist/esm/ix-workflow-steps.entry.js +3 -3
  732. package/dist/esm/ix-workflow-steps.entry.js.map +1 -1
  733. package/dist/esm/{listener-b87c1f3d.js → listener-4f3baab5.js} +2 -2
  734. package/dist/esm/{listener-b87c1f3d.js.map → listener-4f3baab5.js.map} +1 -1
  735. package/dist/esm/loader.js +3 -3
  736. package/dist/esm/{menu-tabs-fc-c72e41b6.js → menu-tabs-fc-d9a7dd06.js} +4 -4
  737. package/dist/esm/{menu-tabs-fc-c72e41b6.js.map → menu-tabs-fc-d9a7dd06.js.map} +1 -1
  738. package/dist/esm/{service-02cc9011.js → service-c7fc628b.js} +3 -3
  739. package/dist/esm/service-c7fc628b.js.map +1 -0
  740. package/dist/esm/siemens-ix.js +11 -11
  741. package/dist/esm/siemens-ix.js.map +1 -1
  742. package/dist/siemens-ix/p-052340f9.entry.js +2 -0
  743. package/dist/siemens-ix/{p-ed2ec72f.entry.js.map → p-052340f9.entry.js.map} +1 -1
  744. package/dist/siemens-ix/p-0653a145.entry.js +2 -0
  745. package/dist/siemens-ix/{p-abb29515.entry.js.map → p-0653a145.entry.js.map} +1 -1
  746. package/dist/siemens-ix/p-0b4e398e.entry.js +2 -0
  747. package/dist/siemens-ix/{p-ec741c06.entry.js.map → p-0b4e398e.entry.js.map} +1 -1
  748. package/dist/siemens-ix/{p-ced10144.js → p-0c8a98cd.js} +2 -2
  749. package/dist/siemens-ix/p-0d2a6886.entry.js +2 -0
  750. package/dist/siemens-ix/p-0f7ef743.entry.js +2 -0
  751. package/dist/siemens-ix/{p-a617e605.entry.js.map → p-0f7ef743.entry.js.map} +1 -1
  752. package/dist/siemens-ix/p-112069ca.entry.js +2 -0
  753. package/dist/siemens-ix/p-112069ca.entry.js.map +1 -0
  754. package/dist/siemens-ix/p-113cc793.entry.js +2 -0
  755. package/dist/siemens-ix/{p-3b8e4fe5.entry.js.map → p-113cc793.entry.js.map} +1 -1
  756. package/dist/siemens-ix/p-14a41c8c.entry.js +2 -0
  757. package/dist/siemens-ix/{p-c1bd5d78.entry.js.map → p-14a41c8c.entry.js.map} +1 -1
  758. package/dist/siemens-ix/p-15b3c17e.entry.js +2 -0
  759. package/dist/siemens-ix/{p-e678bfc5.entry.js.map → p-15b3c17e.entry.js.map} +1 -1
  760. package/dist/siemens-ix/p-16b923e9.entry.js +2 -0
  761. package/dist/siemens-ix/p-1a122c76.entry.js +2 -0
  762. package/dist/siemens-ix/{p-bdc57334.entry.js.map → p-1a122c76.entry.js.map} +1 -1
  763. package/dist/siemens-ix/p-1cff59db.entry.js +2 -0
  764. package/dist/siemens-ix/{p-3b8ff673.entry.js.map → p-1cff59db.entry.js.map} +1 -1
  765. package/dist/siemens-ix/p-1d581190.js +2 -0
  766. package/dist/siemens-ix/{p-e07d2623.js → p-1db6be55.js} +2 -2
  767. package/dist/siemens-ix/{p-e07d2623.js.map → p-1db6be55.js.map} +1 -1
  768. package/dist/siemens-ix/p-1f4b8463.entry.js +2 -0
  769. package/dist/siemens-ix/{p-d08cbeaf.entry.js.map → p-1f4b8463.entry.js.map} +1 -1
  770. package/dist/siemens-ix/p-235c14ca.js.map +1 -1
  771. package/dist/siemens-ix/p-24a8737a.entry.js +2 -0
  772. package/dist/siemens-ix/p-24a8737a.entry.js.map +1 -0
  773. package/dist/siemens-ix/p-2908cacd.entry.js +2 -0
  774. package/dist/siemens-ix/{p-bd576793.entry.js.map → p-2908cacd.entry.js.map} +1 -1
  775. package/dist/siemens-ix/{p-08a5d45b.entry.js → p-2946fd70.entry.js} +2 -2
  776. package/dist/siemens-ix/{p-08a5d45b.entry.js.map → p-2946fd70.entry.js.map} +1 -1
  777. package/dist/siemens-ix/{p-2c14670e.entry.js → p-29df2e29.entry.js} +2 -2
  778. package/dist/siemens-ix/p-29df2e29.entry.js.map +1 -0
  779. package/dist/siemens-ix/p-2c4c03d4.entry.js +2 -0
  780. package/dist/siemens-ix/{p-96d2d21f.entry.js.map → p-2c4c03d4.entry.js.map} +1 -1
  781. package/dist/siemens-ix/p-2ebfd4fd.entry.js +2 -0
  782. package/dist/siemens-ix/{p-4290098e.entry.js.map → p-2ebfd4fd.entry.js.map} +1 -1
  783. package/dist/siemens-ix/p-2ec7f841.entry.js +2 -0
  784. package/dist/siemens-ix/p-2ec7f841.entry.js.map +1 -0
  785. package/dist/siemens-ix/p-309ac3ad.entry.js +2 -0
  786. package/dist/siemens-ix/{p-9dabe2f7.entry.js.map → p-309ac3ad.entry.js.map} +1 -1
  787. package/dist/siemens-ix/p-315f070d.entry.js +2 -0
  788. package/dist/siemens-ix/p-315f070d.entry.js.map +1 -0
  789. package/dist/siemens-ix/p-32375ddb.entry.js +2 -0
  790. package/dist/siemens-ix/p-32d4ed3b.entry.js +2 -0
  791. package/dist/siemens-ix/p-427676f4.entry.js +2 -0
  792. package/dist/siemens-ix/{p-4d57ca67.entry.js.map → p-427676f4.entry.js.map} +1 -1
  793. package/dist/siemens-ix/p-4430117a.entry.js +2 -0
  794. package/dist/siemens-ix/{p-04a362da.entry.js.map → p-4430117a.entry.js.map} +1 -1
  795. package/dist/siemens-ix/p-44db3646.entry.js +2 -0
  796. package/dist/siemens-ix/p-453fa360.entry.js +2 -0
  797. package/dist/siemens-ix/{p-2c6a35db.entry.js.map → p-453fa360.entry.js.map} +1 -1
  798. package/dist/siemens-ix/p-4b3facea.entry.js +2 -0
  799. package/dist/siemens-ix/p-52857629.entry.js +2 -0
  800. package/dist/siemens-ix/p-52857629.entry.js.map +1 -0
  801. package/dist/siemens-ix/p-53352bfb.entry.js +2 -0
  802. package/dist/siemens-ix/{p-e4e24f59.entry.js.map → p-53352bfb.entry.js.map} +1 -1
  803. package/dist/siemens-ix/p-5696bb62.entry.js +2 -0
  804. package/dist/siemens-ix/{p-6ea6396e.entry.js.map → p-5696bb62.entry.js.map} +1 -1
  805. package/dist/siemens-ix/p-5aa0b93c.entry.js +2 -0
  806. package/dist/siemens-ix/{p-84b3b311.entry.js.map → p-5aa0b93c.entry.js.map} +1 -1
  807. package/dist/siemens-ix/{p-01a8adf1.entry.js → p-5c673ae9.entry.js} +2 -2
  808. package/dist/siemens-ix/p-5f25e7fd.entry.js +2 -0
  809. package/dist/siemens-ix/{p-ca65a043.entry.js.map → p-5f25e7fd.entry.js.map} +1 -1
  810. package/dist/siemens-ix/p-60c16878.entry.js +2 -0
  811. package/dist/siemens-ix/{p-8d156396.entry.js.map → p-60c16878.entry.js.map} +1 -1
  812. package/dist/siemens-ix/p-6227e62b.entry.js +2 -0
  813. package/dist/siemens-ix/{p-cbbe9dee.entry.js.map → p-6227e62b.entry.js.map} +1 -1
  814. package/dist/siemens-ix/p-68532fa2.js +2 -0
  815. package/dist/siemens-ix/p-68644ee1.entry.js +2 -0
  816. package/dist/siemens-ix/p-68644ee1.entry.js.map +1 -0
  817. package/dist/siemens-ix/{p-4cf6e817.entry.js → p-6af4415c.entry.js} +2 -2
  818. package/dist/siemens-ix/{p-4cf6e817.entry.js.map → p-6af4415c.entry.js.map} +1 -1
  819. package/dist/siemens-ix/{p-f2a81e70.entry.js → p-6fd7ecd0.entry.js} +2 -2
  820. package/dist/siemens-ix/p-7076210b.entry.js +2 -0
  821. package/dist/siemens-ix/{p-a3ad98bc.entry.js.map → p-7076210b.entry.js.map} +1 -1
  822. package/dist/siemens-ix/{p-330343e7.entry.js → p-713828ed.entry.js} +2 -2
  823. package/dist/siemens-ix/{p-330343e7.entry.js.map → p-713828ed.entry.js.map} +1 -1
  824. package/dist/siemens-ix/{p-30e8a26a.entry.js → p-7bfd6cd2.entry.js} +2 -2
  825. package/dist/siemens-ix/p-7faa148f.entry.js +2 -0
  826. package/dist/siemens-ix/p-85423643.entry.js +2 -0
  827. package/dist/siemens-ix/{p-213f16d5.entry.js.map → p-85423643.entry.js.map} +1 -1
  828. package/dist/siemens-ix/p-8629db91.entry.js +2 -0
  829. package/dist/siemens-ix/{p-f23e0121.entry.js.map → p-8629db91.entry.js.map} +1 -1
  830. package/dist/siemens-ix/p-87e692d9.entry.js +2 -0
  831. package/dist/siemens-ix/p-882a0233.entry.js +2 -0
  832. package/dist/siemens-ix/{p-5d582c48.entry.js.map → p-882a0233.entry.js.map} +1 -1
  833. package/dist/siemens-ix/p-8d0758c1.entry.js +2 -0
  834. package/dist/siemens-ix/{p-e0cab820.entry.js.map → p-8d0758c1.entry.js.map} +1 -1
  835. package/dist/siemens-ix/p-8d599677.entry.js +2 -0
  836. package/dist/siemens-ix/{p-0a1bfcfc.entry.js.map → p-8d599677.entry.js.map} +1 -1
  837. package/dist/siemens-ix/p-90440046.entry.js +2 -0
  838. package/dist/siemens-ix/{p-23dd21b3.entry.js.map → p-90440046.entry.js.map} +1 -1
  839. package/dist/siemens-ix/p-92a18c10.entry.js +2 -0
  840. package/dist/siemens-ix/p-96a3a750.entry.js +2 -0
  841. package/dist/siemens-ix/{p-aa58d9d7.entry.js.map → p-96a3a750.entry.js.map} +1 -1
  842. package/dist/siemens-ix/p-9ebc4fc3.entry.js +2 -0
  843. package/dist/siemens-ix/{p-18a1c4dd.entry.js.map → p-9ebc4fc3.entry.js.map} +1 -1
  844. package/dist/siemens-ix/p-a0138163.entry.js +2 -0
  845. package/dist/siemens-ix/{p-a147b152.entry.js.map → p-a0138163.entry.js.map} +1 -1
  846. package/dist/siemens-ix/p-a0a44a2b.entry.js +2 -0
  847. package/dist/siemens-ix/{p-b475f567.entry.js.map → p-a0a44a2b.entry.js.map} +1 -1
  848. package/dist/siemens-ix/p-a8d291fa.entry.js +2 -0
  849. package/dist/siemens-ix/{p-75548c73.entry.js.map → p-a8d291fa.entry.js.map} +1 -1
  850. package/dist/siemens-ix/p-af099ca4.entry.js +2 -0
  851. package/dist/siemens-ix/{p-e2464e13.entry.js.map → p-af099ca4.entry.js.map} +1 -1
  852. package/dist/siemens-ix/p-b3b23af7.entry.js +2 -0
  853. package/dist/siemens-ix/p-b4ce366d.entry.js +2 -0
  854. package/dist/siemens-ix/{p-18a27007.entry.js.map → p-b4ce366d.entry.js.map} +1 -1
  855. package/dist/siemens-ix/{p-418959d3.entry.js → p-b663ca16.entry.js} +2 -2
  856. package/dist/siemens-ix/{p-6e1fdc40.entry.js → p-b804b8c5.entry.js} +2 -2
  857. package/dist/siemens-ix/{p-6e1fdc40.entry.js.map → p-b804b8c5.entry.js.map} +1 -1
  858. package/dist/siemens-ix/p-bc2c74c5.entry.js +2 -0
  859. package/dist/siemens-ix/{p-6eb4eefc.entry.js.map → p-bc2c74c5.entry.js.map} +1 -1
  860. package/dist/siemens-ix/{p-306c5ab2.entry.js → p-bea7c748.entry.js} +2 -2
  861. package/dist/siemens-ix/{p-306c5ab2.entry.js.map → p-bea7c748.entry.js.map} +1 -1
  862. package/dist/siemens-ix/p-bf14c60b.entry.js +2 -0
  863. package/dist/siemens-ix/{p-b944d015.entry.js.map → p-bf14c60b.entry.js.map} +1 -1
  864. package/dist/siemens-ix/p-c1222581.entry.js +2 -0
  865. package/dist/siemens-ix/p-c1968b80.entry.js +2 -0
  866. package/dist/siemens-ix/{p-5f08da2c.entry.js.map → p-c1968b80.entry.js.map} +1 -1
  867. package/dist/siemens-ix/p-c33cee36.entry.js +2 -0
  868. package/dist/siemens-ix/p-c33cee36.entry.js.map +1 -0
  869. package/dist/siemens-ix/p-c45601cb.entry.js +2 -0
  870. package/dist/siemens-ix/p-c45601cb.entry.js.map +1 -0
  871. package/dist/siemens-ix/{p-a6fbea5b.entry.js → p-c55db6c7.entry.js} +2 -2
  872. package/dist/siemens-ix/p-d03df401.entry.js +2 -0
  873. package/dist/siemens-ix/{p-43a58a77.entry.js.map → p-d03df401.entry.js.map} +1 -1
  874. package/dist/siemens-ix/{p-2637665e.entry.js → p-d14024d3.entry.js} +2 -2
  875. package/dist/siemens-ix/p-d1f49940.entry.js +2 -0
  876. package/dist/siemens-ix/{p-902d1046.entry.js.map → p-d1f49940.entry.js.map} +1 -1
  877. package/dist/siemens-ix/p-d95cbd1f.entry.js +2 -0
  878. package/dist/siemens-ix/{p-784fe260.entry.js.map → p-d95cbd1f.entry.js.map} +1 -1
  879. package/dist/siemens-ix/{p-9dc3e182.entry.js → p-d998415f.entry.js} +2 -2
  880. package/dist/siemens-ix/p-dcb3e5be.entry.js +2 -0
  881. package/dist/siemens-ix/{p-021e1084.entry.js.map → p-dcb3e5be.entry.js.map} +1 -1
  882. package/dist/siemens-ix/p-dde7eb80.entry.js +2 -0
  883. package/dist/siemens-ix/{p-b24beb48.entry.js.map → p-dde7eb80.entry.js.map} +1 -1
  884. package/dist/siemens-ix/p-e30ed20a.entry.js +2 -0
  885. package/dist/siemens-ix/{p-cf546284.entry.js.map → p-e30ed20a.entry.js.map} +1 -1
  886. package/dist/siemens-ix/p-e8d3cf35.entry.js +2 -0
  887. package/dist/siemens-ix/p-e8d3cf35.entry.js.map +1 -0
  888. package/dist/siemens-ix/p-e9a3f58a.entry.js +2 -0
  889. package/dist/siemens-ix/p-e9a3f58a.entry.js.map +1 -0
  890. package/dist/siemens-ix/p-eb6268a6.entry.js +2 -0
  891. package/dist/siemens-ix/{p-ecd3b070.entry.js.map → p-eb6268a6.entry.js.map} +1 -1
  892. package/dist/siemens-ix/p-ebb277f0.entry.js +2 -0
  893. package/dist/siemens-ix/{p-b35a627a.entry.js.map → p-ebb277f0.entry.js.map} +1 -1
  894. package/dist/siemens-ix/{p-fb55854a.entry.js → p-f07110c6.entry.js} +2 -2
  895. package/dist/siemens-ix/p-f07110c6.entry.js.map +1 -0
  896. package/dist/siemens-ix/p-f78246bd.entry.js +2 -0
  897. package/dist/siemens-ix/{p-90c55341.entry.js.map → p-f78246bd.entry.js.map} +1 -1
  898. package/dist/siemens-ix/p-f87cd962.js +3 -0
  899. package/dist/siemens-ix/p-f87cd962.js.map +1 -0
  900. package/dist/siemens-ix/p-fb2b78f7.entry.js +2 -0
  901. package/dist/siemens-ix/{p-33538474.entry.js.map → p-fb2b78f7.entry.js.map} +1 -1
  902. package/dist/siemens-ix/p-fb47546b.entry.js +2 -0
  903. package/dist/siemens-ix/{p-ee20d08c.entry.js.map → p-fb47546b.entry.js.map} +1 -1
  904. package/dist/siemens-ix/{p-c3939d35.entry.js → p-fb4c79c6.entry.js} +2 -2
  905. package/dist/siemens-ix/{p-702f9349.js → p-fbe017b7.js} +2 -2
  906. package/dist/siemens-ix/p-fbe017b7.js.map +1 -0
  907. package/dist/siemens-ix/{p-0b7741b7.entry.js → p-fc5814df.entry.js} +2 -2
  908. package/dist/siemens-ix/p-fc5814df.entry.js.map +1 -0
  909. package/dist/siemens-ix/p-feac09bc.entry.js +2 -0
  910. package/dist/siemens-ix/{p-2c14670e.entry.js.map → p-feac09bc.entry.js.map} +1 -1
  911. package/dist/siemens-ix/p-ff148103.entry.js +2 -0
  912. package/dist/siemens-ix/p-ff148103.entry.js.map +1 -0
  913. package/dist/siemens-ix/{p-114bb49b.entry.js → p-ff1ac5b3.entry.js} +2 -2
  914. package/dist/siemens-ix/siemens-ix-core.css +1 -1
  915. package/dist/siemens-ix/siemens-ix.css +682 -152
  916. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  917. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  918. package/dist/siemens-ix/theme/classic-dark.css +1 -1
  919. package/dist/siemens-ix/theme/classic-light.css +1 -1
  920. package/dist/types/components/application-header/application-header.d.ts +2 -0
  921. package/dist/types/components/avatar/avatar.d.ts +2 -0
  922. package/dist/types/components/chip/test/chip.ct.d.ts +1 -0
  923. package/dist/types/components/dropdown-button/dropdown-button.ct.d.ts +1 -0
  924. package/dist/types/components/split-button/split-button.d.ts +6 -0
  925. package/dist/types/components/tab-item/tab-item.d.ts +1 -1
  926. package/dist/types/components/workflow-step/workflow-step.d.ts +1 -1
  927. package/dist/types/components.d.ts +11 -1
  928. package/hydrate/index.d.ts +218 -0
  929. package/hydrate/index.js +41407 -0
  930. package/hydrate/package.json +6 -0
  931. package/package.json +4 -3
  932. package/scss/components/form/_input.scss +1 -0
  933. package/scss/mixins/_scrollbar.scss +7 -0
  934. package/scss/theme/classic-dark/_border.scss +1 -1
  935. package/scss/theme/classic-dark/_borderRadius.scss +1 -1
  936. package/scss/theme/classic-dark/_borderWidth.scss +1 -1
  937. package/scss/theme/classic-dark/_boxShadow.scss +1 -1
  938. package/scss/theme/classic-dark/_color.scss +320 -62
  939. package/scss/theme/classic-dark/_fontFamilies.scss +1 -1
  940. package/scss/theme/classic-dark/_fontSizes.scss +1 -1
  941. package/scss/theme/classic-dark/_fontWeights.scss +1 -1
  942. package/scss/theme/classic-dark/_index.scss +1 -1
  943. package/scss/theme/classic-dark/_letterSpacing.scss +1 -1
  944. package/scss/theme/classic-dark/_lineHeights.scss +1 -1
  945. package/scss/theme/classic-dark/_other.scss +1 -1
  946. package/scss/theme/classic-dark/_sizing.scss +1 -1
  947. package/scss/theme/classic-dark/_spacing.scss +1 -1
  948. package/scss/theme/classic-dark/_typography.scss +1 -1
  949. package/scss/theme/classic-light/_border.scss +1 -1
  950. package/scss/theme/classic-light/_borderRadius.scss +1 -1
  951. package/scss/theme/classic-light/_borderWidth.scss +1 -1
  952. package/scss/theme/classic-light/_boxShadow.scss +1 -1
  953. package/scss/theme/classic-light/_color.scss +320 -62
  954. package/scss/theme/classic-light/_fontFamilies.scss +1 -1
  955. package/scss/theme/classic-light/_fontSizes.scss +1 -1
  956. package/scss/theme/classic-light/_fontWeights.scss +1 -1
  957. package/scss/theme/classic-light/_index.scss +1 -1
  958. package/scss/theme/classic-light/_letterSpacing.scss +1 -1
  959. package/scss/theme/classic-light/_lineHeights.scss +1 -1
  960. package/scss/theme/classic-light/_other.scss +1 -1
  961. package/scss/theme/classic-light/_sizing.scss +1 -1
  962. package/scss/theme/classic-light/_spacing.scss +1 -1
  963. package/scss/theme/classic-light/_typography.scss +1 -1
  964. package/dist/cjs/index-c6f0ac73.js +0 -2688
  965. package/dist/cjs/index-c6f0ac73.js.map +0 -1
  966. package/dist/cjs/service-a42add5f.js.map +0 -1
  967. package/dist/esm/index-f18c5ad1.js +0 -2656
  968. package/dist/esm/index-f18c5ad1.js.map +0 -1
  969. package/dist/esm/service-02cc9011.js.map +0 -1
  970. package/dist/siemens-ix/p-01b8b98c.entry.js +0 -2
  971. package/dist/siemens-ix/p-01b8b98c.entry.js.map +0 -1
  972. package/dist/siemens-ix/p-021e1084.entry.js +0 -2
  973. package/dist/siemens-ix/p-04a362da.entry.js +0 -2
  974. package/dist/siemens-ix/p-0a1bfcfc.entry.js +0 -2
  975. package/dist/siemens-ix/p-0b7741b7.entry.js.map +0 -1
  976. package/dist/siemens-ix/p-0fee2dd5.entry.js +0 -2
  977. package/dist/siemens-ix/p-0fee2dd5.entry.js.map +0 -1
  978. package/dist/siemens-ix/p-10f86b92.entry.js +0 -2
  979. package/dist/siemens-ix/p-10f86b92.entry.js.map +0 -1
  980. package/dist/siemens-ix/p-18a1c4dd.entry.js +0 -2
  981. package/dist/siemens-ix/p-18a27007.entry.js +0 -2
  982. package/dist/siemens-ix/p-1cc910b7.entry.js +0 -2
  983. package/dist/siemens-ix/p-213f16d5.entry.js +0 -2
  984. package/dist/siemens-ix/p-23dd21b3.entry.js +0 -2
  985. package/dist/siemens-ix/p-2459f98f.entry.js +0 -2
  986. package/dist/siemens-ix/p-2459f98f.entry.js.map +0 -1
  987. package/dist/siemens-ix/p-26e9d40e.js +0 -3
  988. package/dist/siemens-ix/p-26e9d40e.js.map +0 -1
  989. package/dist/siemens-ix/p-2c6a35db.entry.js +0 -2
  990. package/dist/siemens-ix/p-2f4e6ac1.entry.js +0 -2
  991. package/dist/siemens-ix/p-2f4e6ac1.entry.js.map +0 -1
  992. package/dist/siemens-ix/p-33538474.entry.js +0 -2
  993. package/dist/siemens-ix/p-3b8e4fe5.entry.js +0 -2
  994. package/dist/siemens-ix/p-3b8ff673.entry.js +0 -2
  995. package/dist/siemens-ix/p-4290098e.entry.js +0 -2
  996. package/dist/siemens-ix/p-43a58a77.entry.js +0 -2
  997. package/dist/siemens-ix/p-4d57ca67.entry.js +0 -2
  998. package/dist/siemens-ix/p-4fd11865.entry.js +0 -2
  999. package/dist/siemens-ix/p-52bb526e.entry.js +0 -2
  1000. package/dist/siemens-ix/p-56bbdae4.entry.js +0 -2
  1001. package/dist/siemens-ix/p-5d582c48.entry.js +0 -2
  1002. package/dist/siemens-ix/p-5f08da2c.entry.js +0 -2
  1003. package/dist/siemens-ix/p-601cfc6a.entry.js +0 -2
  1004. package/dist/siemens-ix/p-601cfc6a.entry.js.map +0 -1
  1005. package/dist/siemens-ix/p-678d821f.entry.js +0 -2
  1006. package/dist/siemens-ix/p-6ea6396e.entry.js +0 -2
  1007. package/dist/siemens-ix/p-6eb4eefc.entry.js +0 -2
  1008. package/dist/siemens-ix/p-702f9349.js.map +0 -1
  1009. package/dist/siemens-ix/p-75548c73.entry.js +0 -2
  1010. package/dist/siemens-ix/p-784fe260.entry.js +0 -2
  1011. package/dist/siemens-ix/p-8362e966.js +0 -2
  1012. package/dist/siemens-ix/p-84b3b311.entry.js +0 -2
  1013. package/dist/siemens-ix/p-890d74cd.entry.js +0 -2
  1014. package/dist/siemens-ix/p-8d156396.entry.js +0 -2
  1015. package/dist/siemens-ix/p-902d1046.entry.js +0 -2
  1016. package/dist/siemens-ix/p-90c55341.entry.js +0 -2
  1017. package/dist/siemens-ix/p-96d2d21f.entry.js +0 -2
  1018. package/dist/siemens-ix/p-9dabe2f7.entry.js +0 -2
  1019. package/dist/siemens-ix/p-a147b152.entry.js +0 -2
  1020. package/dist/siemens-ix/p-a35d02ea.entry.js +0 -2
  1021. package/dist/siemens-ix/p-a3ad98bc.entry.js +0 -2
  1022. package/dist/siemens-ix/p-a617e605.entry.js +0 -2
  1023. package/dist/siemens-ix/p-a8838a77.js +0 -2
  1024. package/dist/siemens-ix/p-a9d1ab94.entry.js +0 -2
  1025. package/dist/siemens-ix/p-a9d1ab94.entry.js.map +0 -1
  1026. package/dist/siemens-ix/p-aa58d9d7.entry.js +0 -2
  1027. package/dist/siemens-ix/p-abb29515.entry.js +0 -2
  1028. package/dist/siemens-ix/p-add5b76c.entry.js +0 -2
  1029. package/dist/siemens-ix/p-b24beb48.entry.js +0 -2
  1030. package/dist/siemens-ix/p-b32c2183.entry.js +0 -2
  1031. package/dist/siemens-ix/p-b35a627a.entry.js +0 -2
  1032. package/dist/siemens-ix/p-b475f567.entry.js +0 -2
  1033. package/dist/siemens-ix/p-b7a8f2d5.entry.js +0 -2
  1034. package/dist/siemens-ix/p-b944d015.entry.js +0 -2
  1035. package/dist/siemens-ix/p-bc5d33ce.entry.js +0 -2
  1036. package/dist/siemens-ix/p-bc5d33ce.entry.js.map +0 -1
  1037. package/dist/siemens-ix/p-bd576793.entry.js +0 -2
  1038. package/dist/siemens-ix/p-bdc57334.entry.js +0 -2
  1039. package/dist/siemens-ix/p-c1bd5d78.entry.js +0 -2
  1040. package/dist/siemens-ix/p-ca65a043.entry.js +0 -2
  1041. package/dist/siemens-ix/p-cbbe9dee.entry.js +0 -2
  1042. package/dist/siemens-ix/p-ccf1bd22.entry.js +0 -2
  1043. package/dist/siemens-ix/p-cf546284.entry.js +0 -2
  1044. package/dist/siemens-ix/p-d08cbeaf.entry.js +0 -2
  1045. package/dist/siemens-ix/p-d3f26126.entry.js +0 -2
  1046. package/dist/siemens-ix/p-d3f26126.entry.js.map +0 -1
  1047. package/dist/siemens-ix/p-d600ea55.entry.js +0 -2
  1048. package/dist/siemens-ix/p-d600ea55.entry.js.map +0 -1
  1049. package/dist/siemens-ix/p-d6a094cf.entry.js +0 -2
  1050. package/dist/siemens-ix/p-d6a094cf.entry.js.map +0 -1
  1051. package/dist/siemens-ix/p-def8b3a4.entry.js +0 -2
  1052. package/dist/siemens-ix/p-def8b3a4.entry.js.map +0 -1
  1053. package/dist/siemens-ix/p-e0cab820.entry.js +0 -2
  1054. package/dist/siemens-ix/p-e2464e13.entry.js +0 -2
  1055. package/dist/siemens-ix/p-e4e24f59.entry.js +0 -2
  1056. package/dist/siemens-ix/p-e678bfc5.entry.js +0 -2
  1057. package/dist/siemens-ix/p-ec741c06.entry.js +0 -2
  1058. package/dist/siemens-ix/p-ecd3b070.entry.js +0 -2
  1059. package/dist/siemens-ix/p-ed2ec72f.entry.js +0 -2
  1060. package/dist/siemens-ix/p-ee20d08c.entry.js +0 -2
  1061. package/dist/siemens-ix/p-f23e0121.entry.js +0 -2
  1062. package/dist/siemens-ix/p-fb55854a.entry.js.map +0 -1
  1063. /package/dist/siemens-ix/{p-ced10144.js.map → p-0c8a98cd.js.map} +0 -0
  1064. /package/dist/siemens-ix/{p-678d821f.entry.js.map → p-0d2a6886.entry.js.map} +0 -0
  1065. /package/dist/siemens-ix/{p-4fd11865.entry.js.map → p-16b923e9.entry.js.map} +0 -0
  1066. /package/dist/siemens-ix/{p-8362e966.js.map → p-1d581190.js.map} +0 -0
  1067. /package/dist/siemens-ix/{p-a35d02ea.entry.js.map → p-32375ddb.entry.js.map} +0 -0
  1068. /package/dist/siemens-ix/{p-52bb526e.entry.js.map → p-32d4ed3b.entry.js.map} +0 -0
  1069. /package/dist/siemens-ix/{p-b7a8f2d5.entry.js.map → p-44db3646.entry.js.map} +0 -0
  1070. /package/dist/siemens-ix/{p-890d74cd.entry.js.map → p-4b3facea.entry.js.map} +0 -0
  1071. /package/dist/siemens-ix/{p-01a8adf1.entry.js.map → p-5c673ae9.entry.js.map} +0 -0
  1072. /package/dist/siemens-ix/{p-a8838a77.js.map → p-68532fa2.js.map} +0 -0
  1073. /package/dist/siemens-ix/{p-f2a81e70.entry.js.map → p-6fd7ecd0.entry.js.map} +0 -0
  1074. /package/dist/siemens-ix/{p-30e8a26a.entry.js.map → p-7bfd6cd2.entry.js.map} +0 -0
  1075. /package/dist/siemens-ix/{p-56bbdae4.entry.js.map → p-7faa148f.entry.js.map} +0 -0
  1076. /package/dist/siemens-ix/{p-add5b76c.entry.js.map → p-87e692d9.entry.js.map} +0 -0
  1077. /package/dist/siemens-ix/{p-b32c2183.entry.js.map → p-92a18c10.entry.js.map} +0 -0
  1078. /package/dist/siemens-ix/{p-1cc910b7.entry.js.map → p-b3b23af7.entry.js.map} +0 -0
  1079. /package/dist/siemens-ix/{p-418959d3.entry.js.map → p-b663ca16.entry.js.map} +0 -0
  1080. /package/dist/siemens-ix/{p-ccf1bd22.entry.js.map → p-c1222581.entry.js.map} +0 -0
  1081. /package/dist/siemens-ix/{p-a6fbea5b.entry.js.map → p-c55db6c7.entry.js.map} +0 -0
  1082. /package/dist/siemens-ix/{p-2637665e.entry.js.map → p-d14024d3.entry.js.map} +0 -0
  1083. /package/dist/siemens-ix/{p-9dc3e182.entry.js.map → p-d998415f.entry.js.map} +0 -0
  1084. /package/dist/siemens-ix/{p-c3939d35.entry.js.map → p-fb4c79c6.entry.js.map} +0 -0
  1085. /package/dist/siemens-ix/{p-114bb49b.entry.js.map → p-ff1ac5b3.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h, H as Host } from './index-f18c5ad1.js';
1
+ import { r as registerInstance, h, H as Host } from './index-5429f20b.js';
2
2
  import { T as TypedEvent } from './typed-event-ad6484c5.js';
3
3
 
4
- const toastContainerCss = ":host{}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}#toast-container>:not(:last-child){margin-block-end:1rem}.toast-container{display:block;position:fixed}.toast-container--top-right{right:1rem;top:2rem}.toast-container--bottom-right{right:1rem;bottom:2rem}";
4
+ const toastContainerCss = ":host{}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}#toast-container>:not(:last-child){margin-block-end:1rem}.toast-container{display:block;position:fixed}.toast-container--top-right{right:1rem;top:2rem}.toast-container--bottom-right{right:1rem;bottom:2rem}";
5
5
  const IxToastContainerStyle0 = toastContainerCss;
6
6
 
7
7
  const ToastContainer = class {
@@ -74,10 +74,10 @@ const ToastContainer = class {
74
74
  };
75
75
  }
76
76
  render() {
77
- return (h(Host, { key: '22ee0d6985d0b35a3d623dfc318c22cb0a2720ae', class: {
77
+ return (h(Host, { key: '4c3986ebc5843f0d1846527f602851d82bd525d7', class: {
78
78
  'toast-container--bottom-right': this.position === 'bottom-right',
79
79
  'toast-container--top-right': this.position === 'top-right',
80
- } }, h("slot", { key: '9cfd7c6607fde4dd11f6b4c026f017b31acba8d9' })));
80
+ } }, h("slot", { key: '6d9c87e3bfddb1b1bf0fbebdd06efad5347b5390' })));
81
81
  }
82
82
  static get watchers() { return {
83
83
  "position": ["onPositionChange"]
@@ -1 +1 @@
1
- {"file":"ix-toast-container.entry.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,kzBAAkzB,CAAC;AAC70B,+B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+BAA+B,EAAE,IAAI,CAAC,QAAQ,KAAK,cAAc;gBACjE,4BAA4B,EAAE,IAAI,CAAC,QAAQ,KAAK,WAAW;aAC5D,IAED,8DAAa,CACR,EACP;KACH;;;;;;;;;","names":[],"sources":["src/components/toast/styles/toast-container.scss?tag=ix-toast-container&encapsulation=shadow","src/components/toast/toast-container.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/shadow-dom/component';\n\n:host {\n @include ix-component;\n}\n\n#toast-container {\n > :not(:last-child) {\n margin-block-end: $default-space;\n }\n}\n\n.toast-container {\n display: block;\n position: fixed;\n}\n\n.toast-container--top-right {\n right: 1rem;\n top: 2rem;\n}\n\n.toast-container--bottom-right {\n right: 1rem;\n bottom: 2rem;\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, h, Host, Method, Prop, Watch } from '@stencil/core';\nimport { TypedEvent } from '../utils/typed-event';\nimport { ToastConfig } from './toast-utils';\n\nexport type ShowToastResult = {\n onClose: TypedEvent<any | undefined>;\n close: (result?: any) => void;\n};\n\n@Component({\n tag: 'ix-toast-container',\n styleUrl: './styles/toast-container.scss',\n shadow: true,\n})\nexport class ToastContainer {\n /**\n */\n @Prop() containerId = 'toast-container';\n\n /**\n */\n @Prop() containerClass = 'toast-container';\n\n /**\n */\n @Prop() position: 'bottom-right' | 'top-right' = 'bottom-right';\n\n private readonly PREFIX_POSITION_CLASS = 'toast-container--';\n\n get hostContainer() {\n return new Promise<HTMLElement>((resolve) => {\n const interval = setInterval(() => {\n const containerElement = document.getElementById(this.containerId);\n if (containerElement) {\n clearInterval(interval);\n resolve(containerElement);\n }\n });\n });\n }\n\n componentDidLoad() {\n if (!document.getElementById(this.containerId)) {\n const toastContainer = document.createElement('div');\n toastContainer.id = this.containerId;\n toastContainer.classList.add(this.containerClass);\n toastContainer.classList.add(\n `${this.PREFIX_POSITION_CLASS}${this.position}`\n );\n document.body.appendChild(toastContainer);\n }\n }\n\n @Watch('position')\n onPositionChange(newPosition: string, oldPosition: string) {\n const toastContainer = document.getElementById(this.containerId);\n toastContainer.classList.remove(\n `${this.PREFIX_POSITION_CLASS}${oldPosition}`\n );\n toastContainer.classList.add(`${this.PREFIX_POSITION_CLASS}${newPosition}`);\n }\n\n /**\n * Display a toast message\n * @param config\n */\n @Method()\n async showToast(config: ToastConfig): Promise<ShowToastResult> {\n const toast = document.createElement('ix-toast');\n const onClose = new TypedEvent<any | undefined>();\n\n function removeToast(result?: any) {\n toast.remove();\n onClose.emit(result);\n }\n\n toast.toastTitle = config.title;\n toast.type = config.type;\n toast.autoClose = config.autoClose ?? true;\n toast.autoCloseDelay = config.autoCloseDelay ?? 5000;\n toast.icon = config.icon;\n toast.iconColor = config.iconColor;\n toast.addEventListener(\n 'closeToast',\n (event: CustomEvent<any | undefined>) => {\n const { detail } = event;\n removeToast(detail);\n }\n );\n\n if (typeof config.message === 'string') {\n toast.innerText = config.message;\n } else {\n toast.appendChild(config.message);\n }\n\n (await this.hostContainer).appendChild(toast);\n\n return {\n onClose,\n close: (result?: any) => {\n removeToast(result);\n },\n };\n }\n\n render() {\n return (\n <Host\n class={{\n 'toast-container--bottom-right': this.position === 'bottom-right',\n 'toast-container--top-right': this.position === 'top-right',\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-toast-container.entry.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,88BAA88B,CAAC;AACz+B,+BAAe,iBAAiB;;MCsBnB,cAAc;;;QAaR,0BAAqB,GAAG,mBAAmB,CAAC;2BAVvC,iBAAiB;8BAId,iBAAiB;wBAIO,cAAc;;IAI/D,IAAI,aAAa;QACf,OAA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;;","names":[],"sources":["src/components/toast/styles/toast-container.scss?tag=ix-toast-container&encapsulation=shadow","src/components/toast/toast-container.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/shadow-dom/component';\n\n:host {\n @include ix-component;\n}\n\n#toast-container {\n > :not(:last-child) {\n margin-block-end: $default-space;\n }\n}\n\n.toast-container {\n display: block;\n position: fixed;\n}\n\n.toast-container--top-right {\n right: 1rem;\n top: 2rem;\n}\n\n.toast-container--bottom-right {\n right: 1rem;\n bottom: 2rem;\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, h, Host, Method, Prop, Watch } from '@stencil/core';\nimport { TypedEvent } from '../utils/typed-event';\nimport { ToastConfig } from './toast-utils';\n\nexport type ShowToastResult = {\n onClose: TypedEvent<any | undefined>;\n close: (result?: any) => void;\n};\n\n@Component({\n tag: 'ix-toast-container',\n styleUrl: './styles/toast-container.scss',\n shadow: true,\n})\nexport class ToastContainer {\n /**\n */\n @Prop() containerId = 'toast-container';\n\n /**\n */\n @Prop() containerClass = 'toast-container';\n\n /**\n */\n @Prop() position: 'bottom-right' | 'top-right' = 'bottom-right';\n\n private readonly PREFIX_POSITION_CLASS = 'toast-container--';\n\n get hostContainer() {\n return new Promise<HTMLElement>((resolve) => {\n const interval = setInterval(() => {\n const containerElement = document.getElementById(this.containerId);\n if (containerElement) {\n clearInterval(interval);\n resolve(containerElement);\n }\n });\n });\n }\n\n componentDidLoad() {\n if (!document.getElementById(this.containerId)) {\n const toastContainer = document.createElement('div');\n toastContainer.id = this.containerId;\n toastContainer.classList.add(this.containerClass);\n toastContainer.classList.add(\n `${this.PREFIX_POSITION_CLASS}${this.position}`\n );\n document.body.appendChild(toastContainer);\n }\n }\n\n @Watch('position')\n onPositionChange(newPosition: string, oldPosition: string) {\n const toastContainer = document.getElementById(this.containerId);\n toastContainer.classList.remove(\n `${this.PREFIX_POSITION_CLASS}${oldPosition}`\n );\n toastContainer.classList.add(`${this.PREFIX_POSITION_CLASS}${newPosition}`);\n }\n\n /**\n * Display a toast message\n * @param config\n */\n @Method()\n async showToast(config: ToastConfig): Promise<ShowToastResult> {\n const toast = document.createElement('ix-toast');\n const onClose = new TypedEvent<any | undefined>();\n\n function removeToast(result?: any) {\n toast.remove();\n onClose.emit(result);\n }\n\n toast.toastTitle = config.title;\n toast.type = config.type;\n toast.autoClose = config.autoClose ?? true;\n toast.autoCloseDelay = config.autoCloseDelay ?? 5000;\n toast.icon = config.icon;\n toast.iconColor = config.iconColor;\n toast.addEventListener(\n 'closeToast',\n (event: CustomEvent<any | undefined>) => {\n const { detail } = event;\n removeToast(detail);\n }\n );\n\n if (typeof config.message === 'string') {\n toast.innerText = config.message;\n } else {\n toast.appendChild(config.message);\n }\n\n (await this.hostContainer).appendChild(toast);\n\n return {\n onClose,\n close: (result?: any) => {\n removeToast(result);\n },\n };\n }\n\n render() {\n return (\n <Host\n class={{\n 'toast-container--bottom-right': this.position === 'bottom-right',\n 'toast-container--top-right': this.position === 'top-right',\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f18c5ad1.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5429f20b.js';
2
2
 
3
- const toastCss = ":host{display:flex;flex-direction:column;position:relative;min-width:17.5rem;max-width:17.5rem;min-height:3.5rem;pointer-events:all;background-color:var(--theme-toast--background);border:var(--theme-toast--border-thickness) solid var(--theme-toast--border-color);border-radius:var(--theme-toast--border-radius);box-shadow:var(--theme-toast--box-shadow);--animate-duration:300ms}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .toast-body{display:flex;position:relative;min-height:3.5rem;width:100%;flex-grow:1;padding:0.75rem}:host .toast-body .toast-icon{display:flex;align-items:flex-start;margin-right:1rem}:host .toast-body .toast-content{overflow:hidden;text-overflow:ellipsis;min-width:0;width:100%}:host .toast-body .toast-content .toast-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text);margin:0.25rem 0px}:host .toast-body .toast-content .toast-message{min-width:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text)}:host .toast-body .toast-icon+.toast-content{max-width:10.25rem}:host .toast-close{display:flex;position:relative;pointer-events:all;margin-left:auto;margin-right:0px}:host .toast-progress-bar{position:absolute;bottom:0;height:0.25rem;width:100%;background-color:var(--theme-toast-timer-value--background);transform-origin:left}:host .toast-progress-bar--animated{animation:trackProgress linear 1 forwards}@keyframes trackProgress{0%{transform:scaleX(1)}100%{transform:scaleX(0)}}";
3
+ const toastCss = ":host{display:flex;flex-direction:column;position:relative;min-width:17.5rem;max-width:17.5rem;min-height:3.5rem;pointer-events:all;background-color:var(--theme-toast--background);border:var(--theme-toast--border-thickness) solid var(--theme-toast--border-color);border-radius:var(--theme-toast--border-radius);box-shadow:var(--theme-toast--box-shadow);--animate-duration:300ms}: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 .toast-body{display:flex;position:relative;min-height:3.5rem;width:100%;flex-grow:1;padding:0.75rem}:host .toast-body .toast-icon{display:flex;align-items:flex-start;margin-right:1rem}:host .toast-body .toast-content{overflow:hidden;text-overflow:ellipsis;min-width:0;width:100%}:host .toast-body .toast-content .toast-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text);margin:0.25rem 0px}:host .toast-body .toast-content .toast-message{min-width:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text)}:host .toast-body .toast-icon+.toast-content{max-width:10.25rem}:host .toast-close{display:flex;position:relative;pointer-events:all;margin-left:auto;margin-right:0px}:host .toast-progress-bar{position:absolute;bottom:0;height:0.25rem;width:100%;background-color:var(--theme-toast-timer-value--background);transform-origin:left}:host .toast-progress-bar--animated{animation:trackProgress linear 1 forwards}@keyframes trackProgress{0%{transform:scaleX(1)}100%{transform:scaleX(0)}}";
4
4
  const IxToastStyle0 = toastCss;
5
5
 
6
6
  const Toast = class {
@@ -49,11 +49,11 @@ const Toast = class {
49
49
  animationPlayState: this.touched ? 'paused' : 'running',
50
50
  };
51
51
  progressBarClass.push('toast-progress-bar--animated');
52
- return (h(Host, { key: '8af2933e92ceaae263f3cc38ad519c6fc8865b3e', class: "animate__animated animate__fadeIn" }, h("div", { key: '7a09d06a2d6643be19660ad2dc8b226208a7b478', class: "toast-body", onPointerLeave: () => {
52
+ return (h(Host, { key: '165e8ce47907c08afaef29ec7741efaddaf59d0f', class: "animate__animated animate__fadeIn" }, h("div", { key: 'fff7c4afb35bf57eead0fa4b484e0843dcf6c163', class: "toast-body", onPointerLeave: () => {
53
53
  this.touched = false;
54
54
  }, onPointerEnter: () => {
55
55
  this.touched = true;
56
- } }, this.type || this.icon ? (h("div", { class: "toast-icon" }, this.getIcon())) : null, h("div", { key: 'b19932c2f9e60287f53302f8d273df2f0a087375', class: "toast-content" }, this.toastTitle ? (h("div", { class: "toast-title" }, this.toastTitle)) : null, h("div", { key: 'b10ee8ffae9b69060c74b405c41a5533ceff5806', class: "toast-message" }, h("slot", { key: '8e7931e442b82ef3760f4b13c08f2fb29cb3dbe5' }))), h("div", { key: 'bd7de69a43138138f60e9938a07e0f3d58262cf7', class: "toast-close" }, h("ix-icon-button", { key: '93137526cf1606c0f72b55f722495c4bb659c1c3', icon: 'close', size: "24", ghost: true, onClick: () => this.closeToast.emit() }))), this.autoClose ? (h("div", { class: progressBarClass.join(' '), style: progressBarStyle, onAnimationEnd: () => {
56
+ } }, 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: () => {
57
57
  this.close();
58
58
  }, onTransitionEnd: () => {
59
59
  if (this.progress === 0) {
@@ -1 +1 @@
1
- {"file":"ix-toast.entry.js","mappings":";;AAAA,MAAM,QAAQ,GAAG,stEAAstE,CAAC;AACxuE,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,EAAC,eAAe,GACrB,EACF;YAEJ;gBACE,OAAO,EAAE,CAAC;SACb;KACF;IAEO,KAAK;QACX,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;SACpD;QACD,UAAU,CAAC;YACT,IAAI,CAAC,UAAU,CAA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AE;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":"ix-toast.entry.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,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AC,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: 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,8 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-f18c5ad1.js';
2
- import { B as BaseButton } from './base-button-3ac703a7.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-5429f20b.js';
2
+ import { B as BaseButton } from './base-button-1b40b11d.js';
3
3
  import { a as a11yBoolean } from './a11y-d5444a76.js';
4
4
 
5
- const toggleButtonCss = ".btn{display:inline-flex;align-items:center;justify-content:center;height:2rem;font-size:0.875rem;font-weight:700;transition:var(--theme-default-time);padding:0 0.5rem;min-width:5rem;gap:0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn .glyph{margin-right:0.25rem;font-weight:400}.btn:focus-visible,.btn.focus{box-shadow:none}.btn-primary{border-radius:var(--theme-btn--border-radius)}.btn-primary,.btn-primary.focus,.btn-primary:focus-visible{background-color:var(--theme-btn-primary--background);color:var(--theme-btn-primary--color);--ix-button-color:var(--theme-btn-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-primary--border-color);border-style:solid}.btn-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-primary.hover,.btn-primary:hover{border-color:var(--theme-btn-primary--border-color--hover);background-color:var(--theme-btn-primary--background--hover);color:var(--theme-btn-primary--color--hover)}.btn-primary.selected.hover,.btn-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}.btn-primary.selected:not(:disabled):not(.disabled):active,.btn-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-primary.disabled,.btn-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-primary--border-color--disabled);background-color:var(--theme-btn-primary--background--disabled);color:var(--theme-btn-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-primary--color--disabled)}.btn-outline-primary{border-radius:var(--theme-btn--border-radius)}.btn-outline-primary,.btn-outline-primary.focus,.btn-outline-primary:focus-visible{background-color:var(--theme-btn-outline-primary--background);color:var(--theme-btn-outline-primary--color);--ix-button-color:var(--theme-btn-outline-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-primary--border-color);border-style:solid}.btn-outline-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-primary.hover,.btn-outline-primary:hover{border-color:var(--theme-btn-outline-primary--border-color--hover);background-color:var(--theme-btn-outline-primary--background--hover);color:var(--theme-btn-outline-primary--color--hover)}.btn-outline-primary.selected.hover,.btn-outline-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle{border-color:var(--theme-btn-outline-primary--border-color--active);background-color:var(--theme-btn-outline-primary--background--active);color:var(--theme-btn-outline-primary--color--active)}.btn-outline-primary.selected:not(:disabled):not(.disabled):active,.btn-outline-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-primary--border-color--disabled);background-color:var(--theme-btn-outline-primary--background--disabled);color:var(--theme-btn-outline-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-primary--color--disabled)}.btn-invisible-primary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-primary,.btn-invisible-primary.focus,.btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}.btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-primary.hover,.btn-invisible-primary:hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}.btn-invisible-primary.selected.hover,.btn-invisible-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-primary:not(:disabled):not(.disabled):active,.btn-invisible-primary:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.dropdown-toggle{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}.btn-invisible-primary.selected:not(:disabled):not(.disabled):active,.btn-invisible-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-primary.disabled,.btn-invisible-primary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-primary--background--disabled);color:var(--theme-btn-invisible-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-primary--color--disabled)}.btn-secondary{border-radius:var(--theme-btn--border-radius)}.btn-secondary,.btn-secondary.focus,.btn-secondary:focus-visible{background-color:var(--theme-btn-secondary--background);color:var(--theme-btn-secondary--color);--ix-button-color:var(--theme-btn-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-secondary--border-color);border-style:solid}.btn-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-secondary.hover,.btn-secondary:hover{border-color:var(--theme-btn-secondary--border-color--hover);background-color:var(--theme-btn-secondary--background--hover);color:var(--theme-btn-secondary--color--hover)}.btn-secondary.selected.hover,.btn-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-secondary:not(:disabled):not(.disabled):active,.btn-secondary:not(:disabled):not(.disabled).active,.show>.btn-secondary.dropdown-toggle{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}.btn-secondary.selected:not(:disabled):not(.disabled):active,.btn-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-secondary.disabled,.btn-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-secondary--border-color--disabled);background-color:var(--theme-btn-secondary--background--disabled);color:var(--theme-btn-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-secondary--color--disabled)}.btn-outline-secondary{border-radius:var(--theme-btn--border-radius)}.btn-outline-secondary,.btn-outline-secondary.focus,.btn-outline-secondary:focus-visible{background-color:var(--theme-btn-outline-secondary--background);color:var(--theme-btn-outline-secondary--color);--ix-button-color:var(--theme-btn-outline-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-secondary--border-color);border-style:solid}.btn-outline-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-secondary.hover,.btn-outline-secondary:hover{border-color:var(--theme-btn-outline-secondary--border-color--hover);background-color:var(--theme-btn-outline-secondary--background--hover);color:var(--theme-btn-outline-secondary--color--hover)}.btn-outline-secondary.selected.hover,.btn-outline-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-secondary:not(:disabled):not(.disabled):active,.btn-outline-secondary:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.dropdown-toggle{border-color:var(--theme-btn-outline-secondary--border-color--active);background-color:var(--theme-btn-outline-secondary--background--active);color:var(--theme-btn-outline-secondary--color--active)}.btn-outline-secondary.selected:not(:disabled):not(.disabled):active,.btn-outline-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-secondary--border-color--disabled);background-color:var(--theme-btn-outline-secondary--background--disabled);color:var(--theme-btn-outline-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-secondary--color--disabled)}.btn-invisible-secondary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-secondary,.btn-invisible-secondary.focus,.btn-invisible-secondary:focus-visible{background-color:var(--theme-btn-invisible-secondary--background);color:var(--theme-btn-invisible-secondary--color);--ix-button-color:var(--theme-btn-invisible-secondary--color);border-color:transparent}.btn-invisible-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-secondary.hover,.btn-invisible-secondary:hover{background-color:var(--theme-btn-invisible-secondary--background--hover);color:var(--theme-btn-invisible-secondary--color--hover)}.btn-invisible-secondary.selected.hover,.btn-invisible-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-secondary:not(:disabled):not(.disabled):active,.btn-invisible-secondary:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.dropdown-toggle{background-color:var(--theme-btn-invisible-secondary--background--active);color:var(--theme-btn-invisible-secondary--color--active)}.btn-invisible-secondary.selected:not(:disabled):not(.disabled):active,.btn-invisible-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-secondary.disabled,.btn-invisible-secondary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-secondary--background--disabled);color:var(--theme-btn-invisible-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-secondary--color--disabled)}.btn-oval,.btn-icon{min-width:2rem;width:2rem}.btn-oval .glyph,.btn-icon .glyph{margin-right:0}.btn-oval{border-radius:6.25rem;width:2rem}.btn-icon-xs,.btn-icon-12{height:1rem;width:1rem;min-width:1rem;min-height:1rem}.btn-icon-s,.btn-icon-16{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}.btn-icon-32{height:2rem;width:2rem;min-width:2rem;min-height:2rem}:host{display:inline-block;width:auto;height:2rem;vertical-align:middle}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .btn{width:100%;height:100%}:host button:not(:disabled){cursor:pointer}:host(.disabled){pointer-events:none}";
5
+ const toggleButtonCss = ".btn{display:inline-flex;align-items:center;justify-content:center;height:2rem;font-size:0.875rem;font-weight:700;transition:var(--theme-default-time);padding:0 0.5rem;min-width:5rem;gap:0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn .glyph{margin-right:0.25rem;font-weight:400}.btn:focus-visible,.btn.focus{box-shadow:none}.btn-primary{border-radius:var(--theme-btn--border-radius)}.btn-primary,.btn-primary.focus,.btn-primary:focus-visible{background-color:var(--theme-btn-primary--background);color:var(--theme-btn-primary--color);--ix-button-color:var(--theme-btn-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-primary--border-color);border-style:solid}.btn-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-primary.hover,.btn-primary:hover{border-color:var(--theme-btn-primary--border-color--hover);background-color:var(--theme-btn-primary--background--hover);color:var(--theme-btn-primary--color--hover)}.btn-primary.selected.hover,.btn-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}.btn-primary.selected:not(:disabled):not(.disabled):active,.btn-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-primary.disabled,.btn-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-primary--border-color--disabled);background-color:var(--theme-btn-primary--background--disabled);color:var(--theme-btn-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-primary--color--disabled)}.btn-outline-primary{border-radius:var(--theme-btn--border-radius)}.btn-outline-primary,.btn-outline-primary.focus,.btn-outline-primary:focus-visible{background-color:var(--theme-btn-outline-primary--background);color:var(--theme-btn-outline-primary--color);--ix-button-color:var(--theme-btn-outline-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-primary--border-color);border-style:solid}.btn-outline-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-primary.hover,.btn-outline-primary:hover{border-color:var(--theme-btn-outline-primary--border-color--hover);background-color:var(--theme-btn-outline-primary--background--hover);color:var(--theme-btn-outline-primary--color--hover)}.btn-outline-primary.selected.hover,.btn-outline-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle{border-color:var(--theme-btn-outline-primary--border-color--active);background-color:var(--theme-btn-outline-primary--background--active);color:var(--theme-btn-outline-primary--color--active)}.btn-outline-primary.selected:not(:disabled):not(.disabled):active,.btn-outline-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-primary--border-color--disabled);background-color:var(--theme-btn-outline-primary--background--disabled);color:var(--theme-btn-outline-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-primary--color--disabled)}.btn-invisible-primary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-primary,.btn-invisible-primary.focus,.btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}.btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-primary.hover,.btn-invisible-primary:hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}.btn-invisible-primary.selected.hover,.btn-invisible-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-primary:not(:disabled):not(.disabled):active,.btn-invisible-primary:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.dropdown-toggle{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}.btn-invisible-primary.selected:not(:disabled):not(.disabled):active,.btn-invisible-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-primary.disabled,.btn-invisible-primary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-primary--background--disabled);color:var(--theme-btn-invisible-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-primary--color--disabled)}.btn-secondary{border-radius:var(--theme-btn--border-radius)}.btn-secondary,.btn-secondary.focus,.btn-secondary:focus-visible{background-color:var(--theme-btn-secondary--background);color:var(--theme-btn-secondary--color);--ix-button-color:var(--theme-btn-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-secondary--border-color);border-style:solid}.btn-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-secondary.hover,.btn-secondary:hover{border-color:var(--theme-btn-secondary--border-color--hover);background-color:var(--theme-btn-secondary--background--hover);color:var(--theme-btn-secondary--color--hover)}.btn-secondary.selected.hover,.btn-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-secondary:not(:disabled):not(.disabled):active,.btn-secondary:not(:disabled):not(.disabled).active,.show>.btn-secondary.dropdown-toggle{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}.btn-secondary.selected:not(:disabled):not(.disabled):active,.btn-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-secondary.disabled,.btn-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-secondary--border-color--disabled);background-color:var(--theme-btn-secondary--background--disabled);color:var(--theme-btn-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-secondary--color--disabled)}.btn-outline-secondary{border-radius:var(--theme-btn--border-radius)}.btn-outline-secondary,.btn-outline-secondary.focus,.btn-outline-secondary:focus-visible{background-color:var(--theme-btn-outline-secondary--background);color:var(--theme-btn-outline-secondary--color);--ix-button-color:var(--theme-btn-outline-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-secondary--border-color);border-style:solid}.btn-outline-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-secondary.hover,.btn-outline-secondary:hover{border-color:var(--theme-btn-outline-secondary--border-color--hover);background-color:var(--theme-btn-outline-secondary--background--hover);color:var(--theme-btn-outline-secondary--color--hover)}.btn-outline-secondary.selected.hover,.btn-outline-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-secondary:not(:disabled):not(.disabled):active,.btn-outline-secondary:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.dropdown-toggle{border-color:var(--theme-btn-outline-secondary--border-color--active);background-color:var(--theme-btn-outline-secondary--background--active);color:var(--theme-btn-outline-secondary--color--active)}.btn-outline-secondary.selected:not(:disabled):not(.disabled):active,.btn-outline-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-secondary--border-color--disabled);background-color:var(--theme-btn-outline-secondary--background--disabled);color:var(--theme-btn-outline-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-secondary--color--disabled)}.btn-invisible-secondary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-secondary,.btn-invisible-secondary.focus,.btn-invisible-secondary:focus-visible{background-color:var(--theme-btn-invisible-secondary--background);color:var(--theme-btn-invisible-secondary--color);--ix-button-color:var(--theme-btn-invisible-secondary--color);border-color:transparent}.btn-invisible-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-secondary.hover,.btn-invisible-secondary:hover{background-color:var(--theme-btn-invisible-secondary--background--hover);color:var(--theme-btn-invisible-secondary--color--hover)}.btn-invisible-secondary.selected.hover,.btn-invisible-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-secondary:not(:disabled):not(.disabled):active,.btn-invisible-secondary:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.dropdown-toggle{background-color:var(--theme-btn-invisible-secondary--background--active);color:var(--theme-btn-invisible-secondary--color--active)}.btn-invisible-secondary.selected:not(:disabled):not(.disabled):active,.btn-invisible-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-secondary.disabled,.btn-invisible-secondary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-secondary--background--disabled);color:var(--theme-btn-invisible-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-secondary--color--disabled)}.btn-oval,.btn-icon{min-width:2rem;width:2rem}.btn-oval .glyph,.btn-icon .glyph{margin-right:0}.btn-oval{border-radius:6.25rem;width:2rem}.btn-icon-xs,.btn-icon-12{height:1rem;width:1rem;min-width:1rem;min-height:1rem}.btn-icon-s,.btn-icon-16{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}.btn-icon-32{height:2rem;width:2rem;min-width:2rem;min-height:2rem}:host{display:inline-block;width:auto;height:2rem;vertical-align:middle}: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 .btn{width:100%;height:100%}:host button:not(:disabled){cursor:pointer}:host(.disabled){pointer-events:none}";
6
6
  const IxToggleButtonStyle0 = toggleButtonCss;
7
7
 
8
8
  const ToggleButton = class {
@@ -57,9 +57,9 @@ const ToggleButton = class {
57
57
  'aria-pressed': a11yBoolean(this.pressed),
58
58
  },
59
59
  };
60
- return (h(Host, { key: 'f8633f71b51df3509bc679922b432bd5c530d580', class: {
60
+ return (h(Host, { key: 'bec8a150fd761e11ed81ae3803a8e62d6a250ec7', class: {
61
61
  disabled: this.disabled || this.loading,
62
- } }, h(BaseButton, Object.assign({ key: '005a4497d2d37783c6dcf2824c471b56515396ed' }, baseButtonProps), h("slot", { key: '9cafada091aa59fd6b447a2821f58ebd504875cd' }))));
62
+ } }, h(BaseButton, Object.assign({ key: 'b0e6ee7a113ea8d9b417b8de62cf816fb78b49ca' }, baseButtonProps), h("slot", { key: 'ce9fd3a28d4c7048d14618bd7813f4c84a4ac255' }))));
63
63
  }
64
64
  static get watchers() { return {
65
65
  "variant": ["onVariantChange"],
@@ -1 +1 @@
1
- {"file":"ix-toggle-button.entry.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,oxaAAoxa,CAAC;AAC7ya,6BAAe,eAAe;;MC6BjB,YAAY;;;;uBAKU,WAAW;uBAK1B,KAAK;qBAKP,KAAK;wBAKe,KAAK;uBAKd,KAAK;;uBAUd,KAAK;;IAOf,2BAA2B;QACjC,OAAO,IAAI,CAAC,OAAO,KAAK,SAAS,KAAK,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;KACnE;IAEO,gBAAgB;QACtB,OAAO,CAAC,IAAI,CACV,yHAAyH,CAC1H,CAAC;KACH;IAGD,eAAe;QACb,IAAI,IAAI,CAAC,2BAA2B,EAAE,EAAE;YACtC,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;KACF;IAGD,aAAa;QACX,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAGD,eAAe;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAED,gBAAgB;QACd,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAEO,qBAAqB;QAC3B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACxC;IAED,MAAM;QACJ,MAAM,eAAe,GAAoB;YACvC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,IAAI,CAAC,OAAO;YACtB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,MAAM,IAAI,CAAC,qBAAqB,EAAE;YAC3C,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE;gBACd,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC;aAC1C;SACF,CAAC;QAEF,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;aACxC,IAED,EAAC,UAAU,qEAAK,eAAe,GAC7B,8DAAa,CACF,CACR,EACP;KACH;;;;;;;;;;;","names":[],"sources":["src/components/toggle-button/toggle-button.scss?tag=ix-toggle-button&encapsulation=shadow","src/components/toggle-button/toggle-button.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 'legacy/components/buttons';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-block;\n width: auto;\n height: $x-large-space;\n vertical-align: middle;\n\n .btn {\n width: 100%;\n height: 100%;\n }\n\n button:not(:disabled) {\n cursor: pointer;\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { BaseButton, BaseButtonProps } from '../button/base-button';\nimport { ButtonVariant } from '../button/button';\nimport { a11yBoolean } from '../utils/a11y';\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-toggle-button',\n shadow: true,\n styleUrl: './toggle-button.scss',\n})\nexport class ToggleButton {\n /**\n * Button variant.\n * Important: Variant 'primary' can only be combined with either outline or ghost.\n */\n @Prop() variant: ButtonVariant = 'secondary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = false;\n\n /**\n * Disable the button\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Loading button\n */\n @Prop() loading: boolean = false;\n\n /**\n * Icon name\n */\n @Prop() icon: string;\n\n /**\n * Show button as pressed\n */\n @Prop() pressed = false;\n\n /**\n * Pressed change event\n */\n @Event() pressedChange: EventEmitter<boolean>;\n\n private isIllegalToggleButtonConfig() {\n return this.variant === 'primary' && (this.outline || this.ghost);\n }\n\n private logIllegalConfig() {\n console.warn(\n 'iX toggle button with illegal configuration detected. Variant \"primary\" can only be combined with \"outline\" or \"ghost\".'\n );\n }\n\n @Watch('variant')\n onVariantChange() {\n if (this.isIllegalToggleButtonConfig()) {\n this.logIllegalConfig();\n }\n }\n\n @Watch('ghost')\n onGhostChange() {\n this.onVariantChange();\n }\n\n @Watch('outline')\n onOutlineChange() {\n this.onVariantChange();\n }\n\n componentDidLoad() {\n this.onVariantChange();\n }\n\n private dispatchPressedChange() {\n this.pressedChange.emit(!this.pressed);\n }\n\n render() {\n const baseButtonProps: BaseButtonProps = {\n variant: this.variant,\n outline: this.outline,\n ghost: this.ghost,\n iconOnly: false,\n iconOval: false,\n selected: this.pressed,\n disabled: this.disabled || this.loading,\n icon: this.icon,\n loading: this.loading,\n onClick: () => this.dispatchPressedChange(),\n type: 'button',\n ariaAttributes: {\n 'aria-pressed': a11yBoolean(this.pressed),\n },\n };\n\n return (\n <Host\n class={{\n disabled: this.disabled || this.loading,\n }}\n >\n <BaseButton {...baseButtonProps}>\n <slot></slot>\n </BaseButton>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-toggle-button.entry.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,g7aAAg7a,CAAC;AACz8a,6BAAe,eAAe;;MC6BjB,YAAY;;;;uBAKU,WAAW;uBAK1B,KAAK;qBAKP,KAAK;wBAKe,KAAK;uBAKd,KAAK;;uBAUd,KAAK;;IAOf,2BAA2B;QACjC,OAAO,IAAI,CAAC,OAAO,KAAK,SAAS,KAAK,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;KACnE;IAEO,gBAAgB;QACtB,OAAO,CAAC,IAAI,CACV,yHAAyH,CAC1H,CAAC;KACH;IAGD,eAAe;QACb,IAAI,IAAI,CAAC,2BAA2B,EAAE,EAAE;YACtC,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;KACF;IAGD,aAAa;QACX,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAGD,eAAe;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAED,gBAAgB;QACd,IAAI,CAAC,eAAe,EAAE,CAAC;KACxB;IAEO,qBAAqB;QAC3B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACxC;IAED,MAAM;QACJ,MAAM,eAAe,GAAoB;YACvC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,IAAI,CAAC,OAAO;YACtB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;YACvC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,MAAM,IAAI,CAAC,qBAAqB,EAAE;YAC3C,IAAI,EAAE,QAAQ;YACd,cAAc,EAAE;gBACd,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC;aAC1C;SACF,CAAC;QAEF,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;aACxC,IAED,EAAC,UAAU,qEAAK,eAAe,GAC7B,8DAAa,CACF,CACR,EACP;KACH;;;;;;;;;;;","names":[],"sources":["src/components/toggle-button/toggle-button.scss?tag=ix-toggle-button&encapsulation=shadow","src/components/toggle-button/toggle-button.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 'legacy/components/buttons';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-block;\n width: auto;\n height: $x-large-space;\n vertical-align: middle;\n\n .btn {\n width: 100%;\n height: 100%;\n }\n\n button:not(:disabled) {\n cursor: pointer;\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n Watch,\n} from '@stencil/core';\nimport { BaseButton, BaseButtonProps } from '../button/base-button';\nimport { ButtonVariant } from '../button/button';\nimport { a11yBoolean } from '../utils/a11y';\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-toggle-button',\n shadow: true,\n styleUrl: './toggle-button.scss',\n})\nexport class ToggleButton {\n /**\n * Button variant.\n * Important: Variant 'primary' can only be combined with either outline or ghost.\n */\n @Prop() variant: ButtonVariant = 'secondary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = false;\n\n /**\n * Disable the button\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Loading button\n */\n @Prop() loading: boolean = false;\n\n /**\n * Icon name\n */\n @Prop() icon: string;\n\n /**\n * Show button as pressed\n */\n @Prop() pressed = false;\n\n /**\n * Pressed change event\n */\n @Event() pressedChange: EventEmitter<boolean>;\n\n private isIllegalToggleButtonConfig() {\n return this.variant === 'primary' && (this.outline || this.ghost);\n }\n\n private logIllegalConfig() {\n console.warn(\n 'iX toggle button with illegal configuration detected. Variant \"primary\" can only be combined with \"outline\" or \"ghost\".'\n );\n }\n\n @Watch('variant')\n onVariantChange() {\n if (this.isIllegalToggleButtonConfig()) {\n this.logIllegalConfig();\n }\n }\n\n @Watch('ghost')\n onGhostChange() {\n this.onVariantChange();\n }\n\n @Watch('outline')\n onOutlineChange() {\n this.onVariantChange();\n }\n\n componentDidLoad() {\n this.onVariantChange();\n }\n\n private dispatchPressedChange() {\n this.pressedChange.emit(!this.pressed);\n }\n\n render() {\n const baseButtonProps: BaseButtonProps = {\n variant: this.variant,\n outline: this.outline,\n ghost: this.ghost,\n iconOnly: false,\n iconOval: false,\n selected: this.pressed,\n disabled: this.disabled || this.loading,\n icon: this.icon,\n loading: this.loading,\n onClick: () => this.dispatchPressedChange(),\n type: 'button',\n ariaAttributes: {\n 'aria-pressed': a11yBoolean(this.pressed),\n },\n };\n\n return (\n <Host\n class={{\n disabled: this.disabled || this.loading,\n }}\n >\n <BaseButton {...baseButtonProps}>\n <slot></slot>\n </BaseButton>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-f18c5ad1.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-5429f20b.js';
2
2
  import { a as a11yBoolean } from './a11y-d5444a76.js';
3
3
 
4
- const toggleCss = ":host{display:inline-flex;position:relative;height:2rem;justify-content:flex-start;align-items:center;margin-right:0.25rem;cursor:pointer}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .switch{position:relative;display:inline-block;width:3rem;min-width:3rem;max-width:3rem;height:1.5rem;margin-right:0.25rem}:host .switch input{opacity:0;width:0;height:0}:host .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--theme-switch-off--background);transition:var(--theme-default-time);border-radius:1.5rem}:host .slider:before{position:absolute;content:\"\";height:1.125rem;width:1.125rem;left:4px;bottom:3px;background-color:var(--theme-switch-thumb-off--background);transition:var(--theme-default-time);border-radius:50%}:host input{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}:host input:focus-visible+.switch>.slider{outline:1px solid var(--theme-color-focus-bdr);outline-offset:1px}:host input:checked+.switch>.slider{background-color:var(--theme-switch-on--background)}:host input:checked+.switch>.slider::before{background-color:var(--theme-switch-thumb-on--background);transform:translateX(1.35rem)}:host input+.switch:hover>.slider{background-color:var(--theme-switch-off--background--hover)}:host input+.switch:hover>.slider:before{background-color:var(--theme-switch-thumb-off--background--hover)}:host input+.switch:active>.slider{background-color:var(--theme-switch-off--background--active)}:host input+.switch:active>.slider:before{background-color:var(--theme-switch-thumb-off--background--active)}:host input:checked+.switch:hover>.slider{background-color:var(--theme-switch-on--background--hover)}:host input:checked+.switch:hover>.slider:before{background-color:var(--theme-switch-thumb-on--background--hover)}:host input:checked+.switch:active>.slider{background-color:var(--theme-switch-on--background--active)}:host input:checked+.switch:active>.slider:before{background-color:var(--theme-switch-thumb-on--background--active)}:host input:indeterminate+.switch>.slider::before{transform:translateX(0.7rem)}:host .toggle-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(.disabled){pointer-events:none}:host(.disabled) input+.switch{opacity:0.5}:host(.disabled) input+.switch>.slider{background-color:var(--theme-switch-off--background--disabled)}:host(.disabled) input+.switch>.slider:before{background-color:var(--theme-switch-thumb-off--background--disabled)}:host(.disabled) input:checked+.switch>.slider{background-color:var(--theme-switch-on--background--disabled)}:host(.disabled) input:checked+.switch>.slider:before{background-color:var(--theme-switch-thumb-on--background--disabled)}:host(.disabled) .toggle-text{color:var(--theme-color-weak-text)}";
4
+ const toggleCss = ":host{display:inline-flex;position:relative;height:2rem;justify-content:flex-start;align-items:center;margin-right:0.25rem;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 .switch{position:relative;display:inline-block;width:3rem;min-width:3rem;max-width:3rem;height:1.5rem;margin-right:0.25rem}:host .switch input{opacity:0;width:0;height:0}:host .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--theme-switch-off--background);transition:var(--theme-default-time);border-radius:1.5rem}:host .slider:before{position:absolute;content:\"\";height:1.125rem;width:1.125rem;left:4px;bottom:3px;background-color:var(--theme-switch-thumb-off--background);transition:var(--theme-default-time);border-radius:50%}:host input{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}:host input:focus-visible+.switch>.slider{outline:1px solid var(--theme-color-focus-bdr);outline-offset:1px}:host input:checked+.switch>.slider{background-color:var(--theme-switch-on--background)}:host input:checked+.switch>.slider::before{background-color:var(--theme-switch-thumb-on--background);transform:translateX(1.35rem)}:host input+.switch:hover>.slider{background-color:var(--theme-switch-off--background--hover)}:host input+.switch:hover>.slider:before{background-color:var(--theme-switch-thumb-off--background--hover)}:host input+.switch:active>.slider{background-color:var(--theme-switch-off--background--active)}:host input+.switch:active>.slider:before{background-color:var(--theme-switch-thumb-off--background--active)}:host input:checked+.switch:hover>.slider{background-color:var(--theme-switch-on--background--hover)}:host input:checked+.switch:hover>.slider:before{background-color:var(--theme-switch-thumb-on--background--hover)}:host input:checked+.switch:active>.slider{background-color:var(--theme-switch-on--background--active)}:host input:checked+.switch:active>.slider:before{background-color:var(--theme-switch-thumb-on--background--active)}:host input:indeterminate+.switch>.slider::before{transform:translateX(0.7rem)}:host .toggle-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(.disabled){pointer-events:none}:host(.disabled) input+.switch{opacity:0.5}:host(.disabled) input+.switch>.slider{background-color:var(--theme-switch-off--background--disabled)}:host(.disabled) input+.switch>.slider:before{background-color:var(--theme-switch-thumb-off--background--disabled)}:host(.disabled) input:checked+.switch>.slider{background-color:var(--theme-switch-on--background--disabled)}:host(.disabled) input:checked+.switch>.slider:before{background-color:var(--theme-switch-thumb-on--background--disabled)}:host(.disabled) .toggle-text{color:var(--theme-color-weak-text)}";
5
5
  const IxToggleStyle0 = toggleCss;
6
6
 
7
7
  const Toggle = class {
@@ -24,9 +24,9 @@ const Toggle = class {
24
24
  this.checkedChange.emit(this.checked);
25
25
  }
26
26
  render() {
27
- return (h(Host, { key: 'ffc42b6828208dcf6483abfda90ae88dd43ee408', class: {
27
+ return (h(Host, { key: '46cf23f4ae6803763da9344dfd9374aa2e307e14', class: {
28
28
  disabled: this.disabled,
29
- }, onClick: () => this.onCheckedChange(!this.checked) }, h("input", { key: '35954eafdb6301bb6e7063a8978f2bfcc7076de0', disabled: this.disabled, indeterminate: this.indeterminate, checked: this.checked, role: "switch", tabindex: 0, type: "checkbox", "aria-checked": a11yBoolean(this.checked), onChange: (event) => this.onCheckedChange(event.target.checked) }), h("label", { key: '0aed058713bc742c3408accee2e3551313a1ad31', class: "switch", tabIndex: -1 }, h("span", { key: '62fbfca9e3adb625006e981f4ae655d2989d9aef', class: "slider" })), !this.hideText ? (h(Fragment, null, !this.indeterminate ? (h("span", { class: 'toggle-text', "aria-hidden": a11yBoolean(true) }, this.checked ? this.textOn : this.textOff)) : (h("span", { class: 'toggle-text', "aria-hidden": a11yBoolean(true) }, this.textIndeterminate)))) : null));
29
+ }, onClick: () => this.onCheckedChange(!this.checked) }, h("input", { key: '3e85c5ebee51ea769bce59bf215a050e8196cc02', disabled: this.disabled, indeterminate: this.indeterminate, checked: this.checked, role: "switch", tabindex: 0, type: "checkbox", "aria-checked": a11yBoolean(this.checked), onChange: (event) => this.onCheckedChange(event.target.checked) }), h("label", { key: 'd09e1342cbb63f4e5b0f18d2071260b47405eaa4', class: "switch", tabIndex: -1 }, h("span", { key: '94d1afb922bd8da6aa62dec9aa94bf350d507bc7', class: "slider" })), !this.hideText ? (h(Fragment, null, !this.indeterminate ? (h("span", { class: 'toggle-text', "aria-hidden": a11yBoolean(true) }, this.checked ? this.textOn : this.textOff)) : (h("span", { class: 'toggle-text', "aria-hidden": a11yBoolean(true) }, this.textIndeterminate)))) : null));
30
30
  }
31
31
  get hostElement() { return getElement(this); }
32
32
  };
@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AO,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CACrC,KAEP,YAAM,KAAK,EAAE,aAAa,iBAAe,WAAW,CAAC,IAAI,CAAC,IACvD,IAAI,CAAC,iBAAiB,CAClB,CACR,CACQ,IACT,IAAI,CACH,EACP;KACH;;;;;;;","names":[],"sources":["src/components/toggle/toggle.scss?tag=ix-toggle&encapsulation=shadow","src/components/toggle/toggle.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 'mixins/hover';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-flex;\n position: relative;\n height: 2rem;\n justify-content: flex-start;\n align-items: center;\n margin-right: 0.25rem;\n\n cursor: pointer;\n\n .switch {\n position: relative;\n display: inline-block;\n width: 3rem;\n min-width: 3rem;\n max-width: 3rem;\n height: 1.5rem;\n margin-right: 0.25rem;\n }\n\n .switch input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n .slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: var(--theme-switch-off--background);\n transition: var(--theme-default-time);\n border-radius: 1.5rem;\n }\n\n .slider:before {\n position: absolute;\n content: '';\n height: 1.125rem;\n width: 1.125rem;\n left: 4px;\n bottom: 3px;\n background-color: var(--theme-switch-thumb-off--background);\n transition: var(--theme-default-time);\n border-radius: 50%;\n }\n\n input {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n\n input:focus-visible + .switch > .slider {\n outline: 1px solid var(--theme-color-focus-bdr);\n outline-offset: 1px;\n }\n\n input:checked + .switch > .slider {\n background-color: var(--theme-switch-on--background);\n }\n\n input:checked + .switch > .slider::before {\n background-color: var(--theme-switch-thumb-on--background);\n transform: translateX(1.35rem);\n }\n\n // Toggle NOT checked\n input + .switch:hover > .slider {\n background-color: var(--theme-switch-off--background--hover);\n }\n\n input + .switch:hover > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--hover);\n }\n\n input + .switch:active > .slider {\n background-color: var(--theme-switch-off--background--active);\n }\n\n input + .switch:active > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--active);\n }\n\n // Toggle checked\n input:checked + .switch:hover > .slider {\n background-color: var(--theme-switch-on--background--hover);\n }\n\n input:checked + .switch:hover > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--hover);\n }\n\n input:checked + .switch:active > .slider {\n background-color: var(--theme-switch-on--background--active);\n }\n\n input:checked + .switch:active > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--active);\n }\n\n input:indeterminate + .switch > .slider::before {\n transform: translateX(0.7rem);\n }\n\n .toggle-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n\n input + .switch {\n opacity: 0.5;\n }\n\n input + .switch > .slider {\n background-color: var(--theme-switch-off--background--disabled);\n }\n\n input + .switch > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--disabled);\n }\n\n input:checked + .switch > .slider {\n background-color: var(--theme-switch-on--background--disabled);\n }\n\n input:checked + .switch > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--disabled);\n }\n\n .toggle-text {\n color: var(--theme-color-weak-text);\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 Fragment,\n h,\n Host,\n Prop,\n} from '@stencil/core';\nimport { a11yBoolean } from '../utils/a11y';\n\n@Component({\n tag: 'ix-toggle',\n styleUrl: 'toggle.scss',\n shadow: true,\n})\nexport class Toggle {\n @Element() hostElement!: HTMLIxToggleElement;\n\n /**\n * Whether the slide-toggle element is checked or not.\n */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /**\n * Whether the slide-toggle element is disabled or not.\n */\n @Prop() disabled = false;\n\n /**\n * If true the control is in indeterminate state\n */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /**\n * Text for on state\n */\n @Prop() textOn = 'On';\n\n /**\n * Text for off state\n */\n @Prop() textOff = 'Off';\n\n /**\n * Text for indeterminate state\n */\n @Prop() textIndeterminate = 'Mixed';\n\n /**\n * Hide `on` and `off` text\n */\n @Prop() hideText = false;\n\n /**\n * An event will be dispatched each time the slide-toggle changes its value.\n */\n @Event() checkedChange: EventEmitter<boolean>;\n\n onCheckedChange(newChecked: boolean) {\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n this.checked = newChecked;\n this.checkedChange.emit(this.checked);\n }\n\n render() {\n return (\n <Host\n class={{\n disabled: this.disabled,\n }}\n onClick={() => this.onCheckedChange(!this.checked)}\n >\n <input\n disabled={this.disabled}\n indeterminate={this.indeterminate}\n checked={this.checked}\n role=\"switch\"\n tabindex={0}\n type=\"checkbox\"\n aria-checked={a11yBoolean(this.checked)}\n onChange={(event) =>\n this.onCheckedChange((event.target as any).checked)\n }\n ></input>\n <label class=\"switch\" tabIndex={-1}>\n <span class=\"slider\"></span>\n </label>\n {!this.hideText ? (\n <Fragment>\n {!this.indeterminate ? (\n <span class={'toggle-text'} aria-hidden={a11yBoolean(true)}>\n {this.checked ? this.textOn : this.textOff}\n </span>\n ) : (\n <span class={'toggle-text'} aria-hidden={a11yBoolean(true)}>\n {this.textIndeterminate}\n </span>\n )}\n </Fragment>\n ) : null}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-toggle.entry.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,27GAA27G,CAAC;AAC98G,uBAAe,SAAS;;MCyBX,MAAM;;;;uBAMiC,KAAK;wBAKpC,KAAK;6BAKgC,KAAK;sBAK5C,IAAI;uBAKH,KAAK;iCAKK,OAA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src/components/toggle/toggle.scss?tag=ix-toggle&encapsulation=shadow","src/components/toggle/toggle.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 'mixins/hover';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-flex;\n position: relative;\n height: 2rem;\n justify-content: flex-start;\n align-items: center;\n margin-right: 0.25rem;\n\n cursor: pointer;\n\n .switch {\n position: relative;\n display: inline-block;\n width: 3rem;\n min-width: 3rem;\n max-width: 3rem;\n height: 1.5rem;\n margin-right: 0.25rem;\n }\n\n .switch input {\n opacity: 0;\n width: 0;\n height: 0;\n }\n\n .slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: var(--theme-switch-off--background);\n transition: var(--theme-default-time);\n border-radius: 1.5rem;\n }\n\n .slider:before {\n position: absolute;\n content: '';\n height: 1.125rem;\n width: 1.125rem;\n left: 4px;\n bottom: 3px;\n background-color: var(--theme-switch-thumb-off--background);\n transition: var(--theme-default-time);\n border-radius: 50%;\n }\n\n input {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n }\n\n input:focus-visible + .switch > .slider {\n outline: 1px solid var(--theme-color-focus-bdr);\n outline-offset: 1px;\n }\n\n input:checked + .switch > .slider {\n background-color: var(--theme-switch-on--background);\n }\n\n input:checked + .switch > .slider::before {\n background-color: var(--theme-switch-thumb-on--background);\n transform: translateX(1.35rem);\n }\n\n // Toggle NOT checked\n input + .switch:hover > .slider {\n background-color: var(--theme-switch-off--background--hover);\n }\n\n input + .switch:hover > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--hover);\n }\n\n input + .switch:active > .slider {\n background-color: var(--theme-switch-off--background--active);\n }\n\n input + .switch:active > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--active);\n }\n\n // Toggle checked\n input:checked + .switch:hover > .slider {\n background-color: var(--theme-switch-on--background--hover);\n }\n\n input:checked + .switch:hover > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--hover);\n }\n\n input:checked + .switch:active > .slider {\n background-color: var(--theme-switch-on--background--active);\n }\n\n input:checked + .switch:active > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--active);\n }\n\n input:indeterminate + .switch > .slider::before {\n transform: translateX(0.7rem);\n }\n\n .toggle-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n}\n\n:host(.disabled) {\n pointer-events: none;\n\n input + .switch {\n opacity: 0.5;\n }\n\n input + .switch > .slider {\n background-color: var(--theme-switch-off--background--disabled);\n }\n\n input + .switch > .slider:before {\n background-color: var(--theme-switch-thumb-off--background--disabled);\n }\n\n input:checked + .switch > .slider {\n background-color: var(--theme-switch-on--background--disabled);\n }\n\n input:checked + .switch > .slider:before {\n background-color: var(--theme-switch-thumb-on--background--disabled);\n }\n\n .toggle-text {\n color: var(--theme-color-weak-text);\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 Fragment,\n h,\n Host,\n Prop,\n} from '@stencil/core';\nimport { a11yBoolean } from '../utils/a11y';\n\n@Component({\n tag: 'ix-toggle',\n styleUrl: 'toggle.scss',\n shadow: true,\n})\nexport class Toggle {\n @Element() hostElement!: HTMLIxToggleElement;\n\n /**\n * Whether the slide-toggle element is checked or not.\n */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /**\n * Whether the slide-toggle element is disabled or not.\n */\n @Prop() disabled = false;\n\n /**\n * If true the control is in indeterminate state\n */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /**\n * Text for on state\n */\n @Prop() textOn = 'On';\n\n /**\n * Text for off state\n */\n @Prop() textOff = 'Off';\n\n /**\n * Text for indeterminate state\n */\n @Prop() textIndeterminate = 'Mixed';\n\n /**\n * Hide `on` and `off` text\n */\n @Prop() hideText = false;\n\n /**\n * An event will be dispatched each time the slide-toggle changes its value.\n */\n @Event() checkedChange: EventEmitter<boolean>;\n\n onCheckedChange(newChecked: boolean) {\n if (this.indeterminate) {\n this.indeterminate = false;\n }\n this.checked = newChecked;\n this.checkedChange.emit(this.checked);\n }\n\n render() {\n return (\n <Host\n class={{\n disabled: this.disabled,\n }}\n onClick={() => this.onCheckedChange(!this.checked)}\n >\n <input\n disabled={this.disabled}\n indeterminate={this.indeterminate}\n checked={this.checked}\n role=\"switch\"\n tabindex={0}\n type=\"checkbox\"\n aria-checked={a11yBoolean(this.checked)}\n onChange={(event) =>\n this.onCheckedChange((event.target as any).checked)\n }\n ></input>\n <label class=\"switch\" tabIndex={-1}>\n <span class=\"slider\"></span>\n </label>\n {!this.hideText ? (\n <Fragment>\n {!this.indeterminate ? (\n <span class={'toggle-text'} aria-hidden={a11yBoolean(true)}>\n {this.checked ? this.textOn : this.textOff}\n </span>\n ) : (\n <span class={'toggle-text'} aria-hidden={a11yBoolean(true)}>\n {this.textIndeterminate}\n </span>\n )}\n </Fragment>\n ) : null}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-f18c5ad1.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-5429f20b.js';
2
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-6e7c098f.js';
3
- import { O as OnListener } from './listener-b87c1f3d.js';
3
+ import { O as OnListener } from './listener-4f3baab5.js';
4
4
 
5
5
  class OverlayController {
6
6
  constructor() {
@@ -46,7 +46,7 @@ class TooltipController extends OverlayController {
46
46
  }
47
47
  const tooltipController = new TooltipController();
48
48
 
49
- 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:8px;height:8px;background:inherit}:host(.visible) .arrow{visibility:hidden}:host(.visible) .arrow::before{visibility:visible;content:\"\";transform:rotate(45deg);background-color:var(--theme-tootlip--background)}";
49
+ 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
50
  const IxTooltipStyle0 = tooltipCss;
51
51
 
52
52
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -113,19 +113,19 @@ const Tooltip = class {
113
113
  }
114
114
  if (placement.startsWith('right')) {
115
115
  return {
116
- left: numberToPixel(-4),
116
+ left: numberToPixel(-6),
117
117
  top: numberToPixel(y),
118
118
  };
119
119
  }
120
120
  if (placement.startsWith('bottom')) {
121
121
  return {
122
122
  left: numberToPixel(x),
123
- top: numberToPixel(-4),
123
+ top: numberToPixel(-6),
124
124
  };
125
125
  }
126
126
  if (placement.startsWith('left')) {
127
127
  return {
128
- right: numberToPixel(-4),
128
+ right: numberToPixel(-6),
129
129
  top: numberToPixel(y),
130
130
  };
131
131
  }
@@ -136,7 +136,7 @@ const Tooltip = class {
136
136
  placement: this.placement,
137
137
  middleware: [
138
138
  shift(),
139
- offset(8),
139
+ offset(12),
140
140
  arrow({
141
141
  element: this.arrowElement,
142
142
  }),
@@ -277,9 +277,9 @@ const Tooltip = class {
277
277
  this.visible = false;
278
278
  }
279
279
  render() {
280
- return (h(Host, { key: 'f26ba1b387c00ee08b9bd1a0f349671dde354ea4', class: {
280
+ return (h(Host, { key: '990726c5c0bfdbdb0d5d1678ec54b5902d41d1cd', class: {
281
281
  visible: this.visible,
282
- }, role: "tooltip" }, h("div", { key: '6d94a940c16fd0bbca2f531dcd412fbdc8c80cd6', class: 'tooltip-title' }, h("slot", { key: '81012c3982cdf02f5e0130972b8cbeecc072dbb3', name: "title-icon" }), h("ix-typography", { key: '1f5303639c99042bb8ec7f0f801c87c36996d86b', variant: "default-title" }, this.titleContent, h("slot", { key: '6ec924a47b244905fa411cfb018bc2d4f976e094', name: "title-content" }))), h("div", { key: 'e6bedd511e59aa803691b84972990455286814a8', class: 'tooltip-content' }, h("slot", { key: '3f84016bb9abef8990e58268c693b29607e400dc' })), h("div", { key: '9600795f8fef998dd95663cfbf9684b54ed9f915', class: "arrow" })));
282
+ }, role: "tooltip" }, h("div", { key: 'ecab668bf3f4010329c611b3d44a8103080d185e', class: 'tooltip-title' }, h("slot", { key: '016c833df9a38916cbd805756c48098d491f5846', name: "title-icon" }), h("ix-typography", { key: 'fe0a3fe4e2c9735207e22befc6006700859df2fc', variant: "default-title" }, this.titleContent, h("slot", { key: '6fcb3c9a2534922477aeb8b833f4e806d4010b84', name: "title-content" }))), h("div", { key: 'fcc689886a4d9651b0f7f23fb71e7d738558fde7', class: 'tooltip-content' }, h("slot", { key: '610c6bc179044892c550fbfa71313a1d27ee917a' })), h("div", { key: 'faf7c2a5d6b6347bd5c4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IAAI;SACd,CAAC,CAAC;QAEH,IAAI,CAAC,uBAAuB,EAAE,CAAC;KAChC;IAED,iBAAiB;QACf,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;KACnC;IAED,oBAAoB;;QAClB,MAAA,IAAI,CAAC,QAAQ,0CAAE,UAAU,EAAE,CAAC;QAC5B,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,iBAAiB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;KACtC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,OAAO,CAAC;KACrB;IAED,OAAO;QACL,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;KACrB;IAED,OAAO;QACL,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;KACtB;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: 8px;\n height: 8px;\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: any) {\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(-4),\n top: numberToPixel(y),\n };\n }\n\n if (placement.startsWith('bottom')) {\n return {\n left: numberToPixel(x),\n top: numberToPixel(-4),\n };\n }\n\n if (placement.startsWith('left')) {\n return {\n right: numberToPixel(-4),\n top: numberToPixel(y),\n };\n }\n }\n\n private async computeTooltipPosition(target: Element) {\n const computeResponse = await computePosition(target, this.hostElement, {\n strategy: 'fixed',\n placement: this.placement,\n middleware: [\n shift(),\n offset(8),\n arrow({\n element: this.arrowElement,\n }),\n flip({\n fallbackStrategy: 'initialPlacement',\n padding: 10,\n }),\n ],\n });\n return computeResponse;\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.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":"ix-tooltip.entry.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,WAA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AC,OAAO,GAAG,KAAK,CAAC;KACtB;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: any) {\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 const computeResponse = await 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 return computeResponse;\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.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,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-f18c5ad1.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-5429f20b.js';
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}: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{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)}";
4
4
  const IxTreeItemStyle0 = treeItemCss;
5
5
 
6
6
  const TreeItem = class {
@@ -14,16 +14,16 @@ const TreeItem = class {
14
14
  }
15
15
  render() {
16
16
  var _a, _b, _c;
17
- return (h(Host, { key: 'ba0c464b633cb3ca1ed0c5690245c1a69612e7fb', class: {
17
+ return (h(Host, { key: '5f5481c56072db6ae30c67a9c9ed8a709679d55b', class: {
18
18
  selected: (_a = this.context) === null || _a === void 0 ? void 0 : _a.isSelected,
19
- } }, h("div", { key: 'b94962dfd5d8be52ae6dab6b209d7f235dc2fc97', class: "icon-toggle-container", onClick: (e) => {
19
+ } }, h("div", { key: '1d36c65d8c44ce04347888c1a43532717b9f7e54', class: "icon-toggle-container", onClick: (e) => {
20
20
  e.preventDefault();
21
21
  this.toggle.emit();
22
22
  } }, this.hasChildren ? (h("ix-icon", { name: 'chevron-right', size: "16", class: {
23
23
  ['icon-toggle-down']: (_b = this.context) === null || _b === void 0 ? void 0 : _b.isExpanded,
24
- }, color: `color-${((_c = this.context) === null || _c === void 0 ? void 0 : _c.isExpanded) ? 'primary' : 'std-text'}` })) : null), h("div", { key: 'ec90acd5573bbb23978666fc9e43e4c107d35ce1', class: "tree-node-container", onClick: () => {
24
+ }, 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
25
  this.itemClick.emit();
26
- } }, this.text, h("slot", { key: 'd70e947ceceeb7ecef901da3bc48ba58f898d419' }))));
26
+ } }, this.text, h("slot", { key: '4f0556708349c484f97f3f687ab1f0974c4ef35e' }))));
27
27
  }
28
28
  };
29
29
  TreeItem.style = IxTreeItemStyle0;
@@ -1 +1 @@
1
- {"file":"ix-tree-item.entry.js","mappings":";;AAAA,MAAM,WAAW,GAAG,osDAAosD,CAAC;AACztD,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":"ix-tree-item.entry.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,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f18c5ad1.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5429f20b.js';
2
2
  import { c as commonjsRequire, g as getDefaultExportFromCjs } from './_commonjsHelpers-e557d4a5.js';
3
3
  import { r as renderDefaultItem } from './default-tree-item-25091766.js';
4
4
 
@@ -688,7 +688,7 @@ const Tree = class {
688
688
  this.hyperlist = new Hyperlist(this.hostElement, config);
689
689
  }
690
690
  render() {
691
- return (h(Host, { key: '5e3f0e8bbd14073590ed9ae548fa51abb50bd52b' }, h("slot", { key: '9e05d42472878f4791cce2033271e1918d40c38f' })));
691
+ return (h(Host, { key: 'c663df76252b24029b33792151c943519a7c3be1' }, h("slot", { key: 'cfd96717be68c7c4e4c0b9e344ecd4c48481e1e0' })));
692
692
  }
693
693
  get hostElement() { return getElement(this); }
694
694
  static get watchers() { return {