@siemens/ix 1.6.2 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1110) hide show
  1. package/dist/cjs/a11y-fa9abd92.js +82 -0
  2. package/dist/cjs/a11y-fa9abd92.js.map +1 -0
  3. package/dist/cjs/base-button-497db257.js.map +1 -1
  4. package/dist/cjs/context-2ce9a350.js +26 -0
  5. package/dist/cjs/context-2ce9a350.js.map +1 -0
  6. package/dist/cjs/{flip-tile-state-b5ff5ea0.js → flip-tile-state-183236a1.js} +6 -6
  7. package/dist/cjs/{flip-tile-state-b5ff5ea0.js.map → flip-tile-state-183236a1.js.map} +1 -1
  8. package/dist/cjs/{floating-ui.dom.esm-01fe5abe.js → floating-ui.dom.esm-b79b633f.js} +1 -103
  9. package/dist/cjs/floating-ui.dom.esm-b79b633f.js.map +1 -0
  10. package/dist/cjs/{icon-4c954853.js → icon-eeb2940a.js} +2 -2
  11. package/dist/cjs/{icon-4c954853.js.map → icon-eeb2940a.js.map} +1 -1
  12. package/dist/cjs/{index-c978628a.js → index-e56a1d39.js} +77 -21
  13. package/dist/cjs/index-e56a1d39.js.map +1 -0
  14. package/dist/cjs/index.cjs.js +46 -7
  15. package/dist/cjs/index.cjs.js.map +1 -1
  16. package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
  17. package/dist/cjs/ix-animated-tab_2.cjs.entry.js +1 -1
  18. package/dist/cjs/ix-application-header.cjs.entry.js +21 -18
  19. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ix-avatar.cjs.entry.js +39 -0
  21. package/dist/cjs/ix-avatar.cjs.entry.js.map +1 -0
  22. package/dist/cjs/ix-basic-navigation.cjs.entry.js +13 -15
  23. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ix-blind.cjs.entry.js +3 -12
  25. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
  27. package/dist/cjs/ix-burger-menu.cjs.entry.js +7 -3
  28. package/dist/cjs/ix-burger-menu.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ix-button.cjs.entry.js +22 -4
  30. package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +1 -1
  32. package/dist/cjs/ix-card-list.cjs.entry.js +1 -1
  33. package/dist/cjs/ix-card_2.cjs.entry.js +36 -0
  34. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -0
  35. package/dist/cjs/ix-category-filter.cjs.entry.js +2 -2
  36. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ix-chip.cjs.entry.js +23 -15
  38. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ix-content-header.cjs.entry.js +3 -3
  40. package/dist/cjs/ix-content-header.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ix-css-grid-item.cjs.entry.js +1 -1
  42. package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
  43. package/dist/cjs/ix-date-picker_2.cjs.entry.js +8 -9
  44. package/dist/cjs/ix-date-picker_2.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ix-date-time-card.cjs.entry.js +2 -3
  46. package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ix-datetime-picker.cjs.entry.js +2 -2
  48. package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ix-divider.cjs.entry.js +1 -1
  50. package/dist/cjs/ix-drawer.cjs.entry.js +4 -1
  51. package/dist/cjs/ix-drawer.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ix-dropdown-button.cjs.entry.js +7 -6
  53. package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ix-dropdown-header.cjs.entry.js +22 -0
  55. package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -0
  56. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
  57. package/dist/cjs/ix-dropdown_2.cjs.entry.js +67 -33
  58. package/dist/cjs/ix-dropdown_2.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ix-empty-state.cjs.entry.js +1 -1
  60. package/dist/cjs/ix-event-list_2.cjs.entry.js +44 -25
  61. package/dist/cjs/ix-event-list_2.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -8
  63. package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ix-filter-chip.cjs.entry.js +3 -3
  65. package/dist/cjs/ix-filter-chip.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ix-flip-tile_2.cjs.entry.js +3 -3
  67. package/dist/cjs/ix-flip-tile_2.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ix-group-context-menu.cjs.entry.js +26 -14
  69. package/dist/cjs/ix-group-context-menu.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ix-group_2.cjs.entry.js +159 -0
  71. package/dist/cjs/ix-group_2.cjs.entry.js.map +1 -0
  72. package/dist/cjs/ix-icon-button.cjs.entry.js +26 -5
  73. package/dist/cjs/ix-icon-button.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ix-icon.cjs.entry.js +2 -2
  75. package/dist/cjs/ix-index-button.cjs.entry.js +4 -4
  76. package/dist/cjs/ix-index-button.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
  78. package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ix-key-value-list.cjs.entry.js +1 -1
  80. package/dist/cjs/ix-key-value.cjs.entry.js +1 -1
  81. package/dist/cjs/ix-kpi.cjs.entry.js +1 -1
  82. package/dist/cjs/ix-link-button.cjs.entry.js +30 -0
  83. package/dist/cjs/ix-link-button.cjs.entry.js.map +1 -0
  84. package/dist/cjs/ix-map-navigation_2.cjs.entry.js +17 -7
  85. package/dist/cjs/ix-map-navigation_2.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ix-menu-category.cjs.entry.js +138 -0
  87. package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -0
  88. package/dist/cjs/ix-menu_9.cjs.entry.js +252 -339
  89. package/dist/cjs/ix-menu_9.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ix-message-bar.cjs.entry.js +1 -1
  91. package/dist/cjs/ix-modal-content.cjs.entry.js +21 -0
  92. package/dist/cjs/ix-modal-content.cjs.entry.js.map +1 -0
  93. package/dist/cjs/ix-modal-example.cjs.entry.js +6 -4
  94. package/dist/cjs/ix-modal-example.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ix-modal-footer.cjs.entry.js +21 -0
  96. package/dist/cjs/ix-modal-footer.cjs.entry.js.map +1 -0
  97. package/dist/cjs/ix-modal-header.cjs.entry.js +48 -0
  98. package/dist/cjs/ix-modal-header.cjs.entry.js.map +1 -0
  99. package/dist/cjs/ix-modal-loading.cjs.entry.js +21 -0
  100. package/dist/cjs/ix-modal-loading.cjs.entry.js.map +1 -0
  101. package/dist/cjs/ix-modal.cjs.entry.js +130 -0
  102. package/dist/cjs/ix-modal.cjs.entry.js.map +1 -0
  103. package/dist/cjs/ix-pagination.cjs.entry.js +4 -4
  104. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  105. package/dist/cjs/ix-pill.cjs.entry.js +28 -10
  106. package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
  107. package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
  108. package/dist/cjs/ix-select_2.cjs.entry.js +20 -8
  109. package/dist/cjs/ix-select_2.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ix-spinner.cjs.entry.js +10 -3
  111. package/dist/cjs/ix-spinner.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ix-split-button_2.cjs.entry.js +15 -11
  113. package/dist/cjs/ix-split-button_2.cjs.entry.js.map +1 -1
  114. package/dist/cjs/ix-tab-item.cjs.entry.js +2 -2
  115. package/dist/cjs/ix-tab-item.cjs.entry.js.map +1 -1
  116. package/dist/cjs/ix-tabs.cjs.entry.js +14 -6
  117. package/dist/cjs/ix-tabs.cjs.entry.js.map +1 -1
  118. package/dist/cjs/ix-tile.cjs.entry.js +18 -3
  119. package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
  120. package/dist/cjs/ix-toast_2.cjs.entry.js +6 -7
  121. package/dist/cjs/ix-toast_2.cjs.entry.js.map +1 -1
  122. package/dist/cjs/ix-toggle.cjs.entry.js +11 -30
  123. package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
  124. package/dist/cjs/ix-tooltip.cjs.entry.js +2 -2
  125. package/dist/cjs/ix-tree_2.cjs.entry.js +1 -1
  126. package/dist/cjs/ix-typography.cjs.entry.js +46 -0
  127. package/dist/cjs/ix-typography.cjs.entry.js.map +1 -0
  128. package/dist/cjs/ix-upload.cjs.entry.js +19 -7
  129. package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
  130. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +6 -19
  131. package/dist/cjs/ix-validation-tooltip.cjs.entry.js.map +1 -1
  132. package/dist/cjs/ix-workflow-step_2.cjs.entry.js +14 -18
  133. package/dist/cjs/ix-workflow-step_2.cjs.entry.js.map +1 -1
  134. package/dist/cjs/loader.cjs.js +2 -2
  135. package/dist/cjs/menu-service-d1b87142.js +80 -0
  136. package/dist/cjs/menu-service-d1b87142.js.map +1 -0
  137. package/dist/cjs/modal-26ae4715.js +253 -0
  138. package/dist/cjs/modal-26ae4715.js.map +1 -0
  139. package/dist/cjs/my-component.cjs.entry.js +1 -1
  140. package/dist/cjs/my-component.cjs.entry.js.map +1 -1
  141. package/dist/cjs/service-0e27b06b.js +145 -0
  142. package/dist/cjs/service-0e27b06b.js.map +1 -0
  143. package/dist/cjs/shadow-dom-f9b90696.js +21 -0
  144. package/dist/cjs/shadow-dom-f9b90696.js.map +1 -0
  145. package/dist/cjs/siemens-ix.cjs.js +2 -2
  146. package/dist/collection/collection-manifest.json +18 -20
  147. package/dist/collection/components/application-header/application-header.css +2 -2
  148. package/dist/collection/components/application-header/application-header.js +43 -16
  149. package/dist/collection/components/application-header/application-header.js.map +1 -1
  150. package/dist/collection/components/avatar/avatar.css +70 -0
  151. package/dist/collection/components/avatar/avatar.js +80 -0
  152. package/dist/collection/components/avatar/avatar.js.map +1 -0
  153. package/dist/collection/components/basic-navigation/basic-navigation.css +32 -4
  154. package/dist/collection/components/basic-navigation/basic-navigation.js +11 -13
  155. package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
  156. package/dist/collection/components/button/base-button.js.map +1 -1
  157. package/dist/collection/components/button/button.css +31 -2
  158. package/dist/collection/components/button/button.js +60 -4
  159. package/dist/collection/components/button/button.js.map +1 -1
  160. package/dist/collection/components/button/test/button.ct.js +36 -0
  161. package/dist/collection/components/button/test/button.ct.js.map +1 -0
  162. package/dist/collection/components/category-filter/category-filter.js +1 -1
  163. package/dist/collection/components/category-filter/category-filter.js.map +1 -1
  164. package/dist/collection/components/chip/chip.css +149 -149
  165. package/dist/collection/components/chip/chip.js +22 -14
  166. package/dist/collection/components/chip/chip.js.map +1 -1
  167. package/dist/collection/components/content-header/content-header.js +4 -4
  168. package/dist/collection/components/content-header/content-header.js.map +1 -1
  169. package/dist/collection/components/date-picker/date-picker.css +12 -2
  170. package/dist/collection/components/date-picker/date-picker.js +4 -4
  171. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  172. package/dist/collection/components/date-time-card/date-time-card.css +28 -8
  173. package/dist/collection/components/date-time-card/date-time-card.js +1 -2
  174. package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
  175. package/dist/collection/components/datetime-picker/datetime-picker.css +16 -6
  176. package/dist/collection/components/datetime-picker/datetime-picker.js +1 -1
  177. package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
  178. package/dist/collection/components/drawer/drawer.js +3 -0
  179. package/dist/collection/components/drawer/drawer.js.map +1 -1
  180. package/dist/collection/components/drawer/test/drawer.ct.js +47 -0
  181. package/dist/collection/components/drawer/test/drawer.ct.js.map +1 -0
  182. package/dist/collection/components/dropdown/dropdown.css +16 -471
  183. package/dist/collection/components/dropdown/dropdown.js +77 -63
  184. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  185. package/dist/collection/components/dropdown/placement.js.map +1 -1
  186. package/dist/collection/components/dropdown-button/dropdown-button.css +16 -2
  187. package/dist/collection/components/dropdown-button/dropdown-button.js +13 -9
  188. package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -1
  189. package/dist/collection/components/dropdown-header/dropdown-header.css +32 -0
  190. package/dist/collection/components/{group-dropdown-item/group-dropdown-item.js → dropdown-header/dropdown-header.js} +11 -26
  191. package/dist/collection/components/dropdown-header/dropdown-header.js.map +1 -0
  192. package/dist/collection/components/dropdown-item/dropdown-item.css +85 -37
  193. package/dist/collection/components/dropdown-item/dropdown-item.js +57 -12
  194. package/dist/collection/components/dropdown-item/dropdown-item.js.map +1 -1
  195. package/dist/collection/components/event-list/event-list.css +20 -35
  196. package/dist/collection/components/event-list/event-list.js +35 -16
  197. package/dist/collection/components/event-list/event-list.js.map +1 -1
  198. package/dist/collection/components/event-list-item/event-list-item.css +62 -35
  199. package/dist/collection/components/event-list-item/event-list-item.js +17 -10
  200. package/dist/collection/components/event-list-item/event-list-item.js.map +1 -1
  201. package/dist/collection/components/expanding-search/expanding-search.css +262 -8
  202. package/dist/collection/components/expanding-search/expanding-search.js +4 -7
  203. package/dist/collection/components/expanding-search/expanding-search.js.map +1 -1
  204. package/dist/collection/components/expanding-search/test/expanding-search.ct.js +56 -0
  205. package/dist/collection/components/expanding-search/test/expanding-search.ct.js.map +1 -0
  206. package/dist/collection/components/filter-chip/filter-chip.css +39 -26
  207. package/dist/collection/components/filter-chip/filter-chip.js +2 -2
  208. package/dist/collection/components/filter-chip/filter-chip.js.map +1 -1
  209. package/dist/collection/components/flip-tile/flip-tile-state.js +5 -5
  210. package/dist/collection/components/flip-tile/flip-tile-state.js.map +1 -1
  211. package/dist/collection/components/flip-tile/flip-tile.js +1 -1
  212. package/dist/collection/components/flip-tile/flip-tile.js.map +1 -1
  213. package/dist/collection/components/group/group-context-menu.css +2 -3
  214. package/dist/collection/components/group/group-context-menu.js +27 -15
  215. package/dist/collection/components/group/group-context-menu.js.map +1 -1
  216. package/dist/collection/components/group/group.css +6 -0
  217. package/dist/collection/components/group/group.js +29 -48
  218. package/dist/collection/components/group/group.js.map +1 -1
  219. package/dist/collection/components/group-item/group-item.css +59 -33
  220. package/dist/collection/components/group-item/group-item.js +2 -2
  221. package/dist/collection/components/group-item/group-item.js.map +1 -1
  222. package/dist/collection/components/icon-button/icon-button.css +34 -3
  223. package/dist/collection/components/icon-button/icon-button.js +52 -7
  224. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  225. package/dist/collection/components/icon-button/test/icon-button.ct.js +26 -0
  226. package/dist/collection/components/icon-button/test/icon-button.ct.js.map +1 -0
  227. package/dist/collection/components/index-button/index-button.js +5 -5
  228. package/dist/collection/components/index-button/index-button.js.map +1 -1
  229. package/dist/collection/components/input-group/input-group.css +2 -0
  230. package/dist/collection/components/link-button/link-button.css +440 -0
  231. package/dist/collection/components/link-button/link-button.js +98 -0
  232. package/dist/collection/components/link-button/link-button.js.map +1 -0
  233. package/dist/collection/components/map-navigation/map-navigation.css +17 -1
  234. package/dist/collection/components/map-navigation/map-navigation.js +18 -7
  235. package/dist/collection/components/map-navigation/map-navigation.js.map +1 -1
  236. package/dist/collection/components/menu/burger-menu.css +388 -5
  237. package/dist/collection/components/menu/burger-menu.js +42 -2
  238. package/dist/collection/components/menu/burger-menu.js.map +1 -1
  239. package/dist/collection/components/menu/menu.css +1727 -24
  240. package/dist/collection/components/menu/menu.js +319 -335
  241. package/dist/collection/components/menu/menu.js.map +1 -1
  242. package/dist/collection/components/menu/test/menu.ct.js +164 -0
  243. package/dist/collection/components/menu/test/menu.ct.js.map +1 -0
  244. package/dist/collection/components/menu-about/menu-about.js +8 -7
  245. package/dist/collection/components/menu-about/menu-about.js.map +1 -1
  246. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  247. package/dist/collection/components/menu-about-item/menu-about-item.js.map +1 -1
  248. package/dist/collection/components/menu-about-news/menu-about-news.css +21 -6
  249. package/dist/collection/components/menu-about-news/menu-about-news.js +3 -3
  250. package/dist/collection/components/menu-about-news/menu-about-news.js.map +1 -1
  251. package/dist/collection/components/menu-avatar/menu-avatar.css +13 -1
  252. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -9
  253. package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
  254. package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +13 -1
  255. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +2 -2
  256. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js.map +1 -1
  257. package/dist/collection/components/menu-category/menu-category.css +63 -0
  258. package/dist/collection/components/menu-category/menu-category.js +212 -0
  259. package/dist/collection/components/menu-category/menu-category.js.map +1 -0
  260. package/dist/collection/components/menu-category/test/menu-category.ct.js +107 -0
  261. package/dist/collection/components/menu-category/test/menu-category.ct.js.map +1 -0
  262. package/dist/collection/components/menu-item/menu-item.css +6 -10
  263. package/dist/collection/components/menu-item/menu-item.js +40 -7
  264. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  265. package/dist/collection/components/menu-settings/menu-settings.css +13 -0
  266. package/dist/collection/components/menu-settings/menu-settings.js +9 -8
  267. package/dist/collection/components/menu-settings/menu-settings.js.map +1 -1
  268. package/dist/collection/components/menu-settings-item/menu-settings-item.css +0 -1
  269. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  270. package/dist/collection/components/menu-settings-item/menu-settings-item.js.map +1 -1
  271. package/dist/collection/components/modal/modal.css +58 -75
  272. package/dist/collection/components/modal/modal.js +143 -312
  273. package/dist/collection/components/modal/modal.js.map +1 -1
  274. package/dist/collection/components/modal-content/modal-content.css +27 -0
  275. package/dist/collection/components/modal-content/modal-content.js +30 -0
  276. package/dist/collection/components/modal-content/modal-content.js.map +1 -0
  277. package/dist/collection/components/modal-footer/modal-footer.css +30 -0
  278. package/dist/collection/components/modal-footer/modal-footer.js +30 -0
  279. package/dist/collection/components/modal-footer/modal-footer.js.map +1 -0
  280. package/dist/collection/components/modal-header/modal-header.css +34 -0
  281. package/dist/collection/components/modal-header/modal-header.js +139 -0
  282. package/dist/collection/components/modal-header/modal-header.js.map +1 -0
  283. package/dist/collection/components/modal-loading/modal-loading.css +22 -0
  284. package/dist/collection/components/modal-loading/modal-loading.js +30 -0
  285. package/dist/collection/components/modal-loading/modal-loading.js.map +1 -0
  286. package/dist/collection/components/my-component/example-modal.js +1 -1
  287. package/dist/collection/components/my-component/example-modal.js.map +1 -1
  288. package/dist/collection/components/my-component/my-component.js.map +1 -1
  289. package/dist/collection/components/pagination/pagination.js +3 -3
  290. package/dist/collection/components/pagination/pagination.js.map +1 -1
  291. package/dist/collection/components/pill/pill.css +102 -166
  292. package/dist/collection/components/pill/pill.js +27 -9
  293. package/dist/collection/components/pill/pill.js.map +1 -1
  294. package/dist/collection/components/select/select.css +4 -1
  295. package/dist/collection/components/select/select.js +32 -5
  296. package/dist/collection/components/select/select.js.map +1 -1
  297. package/dist/collection/components/select/test/select.ct.js +115 -0
  298. package/dist/collection/components/select/test/select.ct.js.map +1 -0
  299. package/dist/collection/components/select-item/select-item.css +12 -0
  300. package/dist/collection/components/select-item/select-item.js +3 -1
  301. package/dist/collection/components/select-item/select-item.js.map +1 -1
  302. package/dist/collection/components/spinner/spinner.css +428 -23
  303. package/dist/collection/components/spinner/spinner.js +33 -5
  304. package/dist/collection/components/spinner/spinner.js.map +1 -1
  305. package/dist/collection/components/split-button/split-button.css +40 -2
  306. package/dist/collection/components/split-button/split-button.js +18 -35
  307. package/dist/collection/components/split-button/split-button.js.map +1 -1
  308. package/dist/collection/components/split-button-item/split-button-item.css +1 -1
  309. package/dist/collection/components/split-button-item/split-button-item.js +2 -2
  310. package/dist/collection/components/split-button-item/split-button-item.js.map +1 -1
  311. package/dist/collection/components/tab-item/tab-item.css +115 -82
  312. package/dist/collection/components/tab-item/tab-item.js +1 -0
  313. package/dist/collection/components/tab-item/tab-item.js.map +1 -1
  314. package/dist/collection/components/tabs/tabs.css +37 -19
  315. package/dist/collection/components/tabs/tabs.js +13 -4
  316. package/dist/collection/components/tabs/tabs.js.map +1 -1
  317. package/dist/collection/components/tile/tile.css +57 -27
  318. package/dist/collection/components/tile/tile.js +23 -2
  319. package/dist/collection/components/tile/tile.js.map +1 -1
  320. package/dist/collection/components/time-picker/time-picker.css +253 -30
  321. package/dist/collection/components/time-picker/time-picker.js +3 -4
  322. package/dist/collection/components/time-picker/time-picker.js.map +1 -1
  323. package/dist/collection/components/toast/toast-container.js +2 -3
  324. package/dist/collection/components/toast/toast-container.js.map +1 -1
  325. package/dist/collection/components/toast/toast.css +37 -0
  326. package/dist/collection/components/toast/toast.js +5 -5
  327. package/dist/collection/components/toast/toast.js.map +1 -1
  328. package/dist/collection/components/toggle/test/toggle.ct.js +52 -0
  329. package/dist/collection/components/toggle/test/toggle.ct.js.map +1 -0
  330. package/dist/collection/components/toggle/toggle.css +72 -153
  331. package/dist/collection/components/toggle/toggle.js +11 -60
  332. package/dist/collection/components/toggle/toggle.js.map +1 -1
  333. package/dist/collection/components/typography/typography.css +53 -14
  334. package/dist/collection/components/typography/typography.js +2 -2
  335. package/dist/collection/components/typography/typography.js.map +1 -1
  336. package/dist/collection/components/upload/upload.css +24 -3
  337. package/dist/collection/components/upload/upload.js +18 -6
  338. package/dist/collection/components/upload/upload.js.map +1 -1
  339. package/dist/collection/components/utils/a11y.js +66 -0
  340. package/dist/collection/components/utils/a11y.js.map +1 -1
  341. package/dist/collection/components/utils/delegate.js +29 -0
  342. package/dist/collection/components/utils/delegate.js.map +1 -0
  343. package/dist/collection/components/utils/menu-service/menu-service.js +25 -0
  344. package/dist/collection/components/utils/menu-service/menu-service.js.map +1 -1
  345. package/dist/collection/components/{modal-container/modal-container.css → utils/modal/index.js} +4 -6
  346. package/dist/collection/components/utils/modal/index.js.map +1 -0
  347. package/dist/collection/components/utils/modal/loading.js +35 -0
  348. package/dist/collection/components/utils/modal/loading.js.map +1 -0
  349. package/dist/collection/components/utils/modal/message.js +138 -0
  350. package/dist/collection/components/utils/modal/message.js.map +1 -0
  351. package/dist/collection/components/utils/modal/modal.js +77 -0
  352. package/dist/collection/components/utils/modal/modal.js.map +1 -0
  353. package/dist/collection/components/utils/screen/context.js +4 -0
  354. package/dist/collection/components/utils/screen/context.js.map +1 -1
  355. package/dist/collection/components/utils/screen/mode.js +57 -9
  356. package/dist/collection/components/utils/screen/mode.js.map +1 -1
  357. package/dist/collection/components/utils/screen/service.js +26 -4
  358. package/dist/collection/components/utils/screen/service.js.map +1 -1
  359. package/dist/collection/components/utils/shadow-dom.js +19 -0
  360. package/dist/collection/components/utils/shadow-dom.js.map +1 -0
  361. package/dist/collection/components/validation-tooltip/validation-tooltip.js +29 -12
  362. package/dist/collection/components/validation-tooltip/validation-tooltip.js.map +1 -1
  363. package/dist/collection/components/workflow-step/workflow-step.css +13 -0
  364. package/dist/collection/components/workflow-step/workflow-step.js +3 -12
  365. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  366. package/dist/collection/components/workflow-steps/workflow-steps.css +13 -0
  367. package/dist/collection/components/workflow-steps/workflow-steps.js +19 -14
  368. package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
  369. package/dist/collection/index.js +2 -1
  370. package/dist/collection/index.js.map +1 -1
  371. package/dist/collection/tests/utils/test/page.js +12 -5
  372. package/dist/collection/tests/utils/test/page.js.map +1 -1
  373. package/dist/components/a11y.js +79 -0
  374. package/dist/components/a11y.js.map +1 -0
  375. package/dist/components/application-header.js +40 -18
  376. package/dist/components/application-header.js.map +1 -1
  377. package/dist/components/avatar.js +53 -0
  378. package/dist/components/avatar.js.map +1 -0
  379. package/dist/components/base-button.js.map +1 -1
  380. package/dist/components/burger-menu.js +28 -4
  381. package/dist/components/burger-menu.js.map +1 -1
  382. package/dist/components/button.js +37 -5
  383. package/dist/components/button.js.map +1 -1
  384. package/dist/components/context.js +22 -0
  385. package/dist/components/context.js.map +1 -0
  386. package/dist/components/date-picker.js +22 -15
  387. package/dist/components/date-picker.js.map +1 -1
  388. package/dist/components/date-time-card.js +3 -3
  389. package/dist/components/date-time-card.js.map +1 -1
  390. package/dist/components/divider.js +32 -0
  391. package/dist/components/divider.js.map +1 -0
  392. package/dist/components/dropdown-item.js +21 -13
  393. package/dist/components/dropdown-item.js.map +1 -1
  394. package/dist/components/dropdown.js +50 -22
  395. package/dist/components/dropdown.js.map +1 -1
  396. package/dist/components/filter-chip.js +18 -5
  397. package/dist/components/filter-chip.js.map +1 -1
  398. package/dist/components/flip-tile-state.js +5 -5
  399. package/dist/components/flip-tile-state.js.map +1 -1
  400. package/dist/components/floating-ui.dom.esm.js +1 -102
  401. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  402. package/dist/components/group-context-menu.js +52 -19
  403. package/dist/components/group-context-menu.js.map +1 -1
  404. package/dist/components/group-item.js +4 -3
  405. package/dist/components/group-item.js.map +1 -1
  406. package/dist/components/icon-button.js +35 -7
  407. package/dist/components/icon-button.js.map +1 -1
  408. package/dist/components/index-button.js +3 -3
  409. package/dist/components/index-button.js.map +1 -1
  410. package/dist/components/index.js +37 -2
  411. package/dist/components/index.js.map +1 -1
  412. package/dist/components/{ix-group-dropdown-item.d.ts → ix-avatar.d.ts} +4 -4
  413. package/dist/components/ix-avatar.js +8 -0
  414. package/dist/components/ix-avatar.js.map +1 -0
  415. package/dist/components/ix-basic-navigation.js +35 -18
  416. package/dist/components/ix-basic-navigation.js.map +1 -1
  417. package/dist/components/ix-blind.js +1 -10
  418. package/dist/components/ix-blind.js.map +1 -1
  419. package/dist/components/ix-card-list.js +16 -10
  420. package/dist/components/ix-card-list.js.map +1 -1
  421. package/dist/components/ix-category-filter.js +15 -9
  422. package/dist/components/ix-category-filter.js.map +1 -1
  423. package/dist/components/ix-chip.js +38 -17
  424. package/dist/components/ix-chip.js.map +1 -1
  425. package/dist/components/ix-content-header.js +12 -6
  426. package/dist/components/ix-content-header.js.map +1 -1
  427. package/dist/components/ix-datetime-picker.js +21 -14
  428. package/dist/components/ix-datetime-picker.js.map +1 -1
  429. package/dist/components/ix-divider.js +1 -28
  430. package/dist/components/ix-divider.js.map +1 -1
  431. package/dist/components/ix-drawer.js +13 -4
  432. package/dist/components/ix-drawer.js.map +1 -1
  433. package/dist/components/ix-dropdown-button.js +22 -14
  434. package/dist/components/ix-dropdown-button.js.map +1 -1
  435. package/dist/components/{ix-modal-container.d.ts → ix-dropdown-header.d.ts} +4 -4
  436. package/dist/components/ix-dropdown-header.js +44 -0
  437. package/dist/components/ix-dropdown-header.js.map +1 -0
  438. package/dist/components/ix-empty-state.js +10 -4
  439. package/dist/components/ix-empty-state.js.map +1 -1
  440. package/dist/components/ix-event-list-item.js +21 -11
  441. package/dist/components/ix-event-list-item.js.map +1 -1
  442. package/dist/components/ix-event-list.js +34 -17
  443. package/dist/components/ix-event-list.js.map +1 -1
  444. package/dist/components/ix-expanding-search.js +16 -12
  445. package/dist/components/ix-expanding-search.js.map +1 -1
  446. package/dist/components/ix-flip-tile.js +11 -5
  447. package/dist/components/ix-flip-tile.js.map +1 -1
  448. package/dist/components/ix-group.js +50 -49
  449. package/dist/components/ix-group.js.map +1 -1
  450. package/dist/components/ix-input-group.js +1 -1
  451. package/dist/components/ix-input-group.js.map +1 -1
  452. package/dist/components/ix-link-button.d.ts +11 -0
  453. package/dist/components/ix-link-button.js +54 -0
  454. package/dist/components/ix-link-button.js.map +1 -0
  455. package/dist/components/ix-map-navigation.js +35 -17
  456. package/dist/components/ix-map-navigation.js.map +1 -1
  457. package/dist/components/ix-menu-about-item.js +3 -2
  458. package/dist/components/ix-menu-about-item.js.map +1 -1
  459. package/dist/components/ix-menu-about-news.js +27 -8
  460. package/dist/components/ix-menu-about-news.js.map +1 -1
  461. package/dist/components/ix-menu-about.js +18 -10
  462. package/dist/components/ix-menu-about.js.map +1 -1
  463. package/dist/components/ix-menu-avatar.js +11 -19
  464. package/dist/components/ix-menu-avatar.js.map +1 -1
  465. package/dist/components/ix-menu-category.d.ts +11 -0
  466. package/dist/components/ix-menu-category.js +196 -0
  467. package/dist/components/ix-menu-category.js.map +1 -0
  468. package/dist/components/ix-menu-settings-item.js +3 -2
  469. package/dist/components/ix-menu-settings-item.js.map +1 -1
  470. package/dist/components/ix-menu-settings.js +19 -11
  471. package/dist/components/ix-menu-settings.js.map +1 -1
  472. package/dist/components/ix-menu.js +238 -315
  473. package/dist/components/ix-menu.js.map +1 -1
  474. package/dist/components/ix-message-bar.js +10 -4
  475. package/dist/components/ix-message-bar.js.map +1 -1
  476. package/dist/components/ix-modal-content.d.ts +11 -0
  477. package/dist/components/ix-modal-content.js +35 -0
  478. package/dist/components/ix-modal-content.js.map +1 -0
  479. package/dist/components/ix-modal-example.js +10 -15
  480. package/dist/components/ix-modal-example.js.map +1 -1
  481. package/dist/components/{ix-counter-pill.d.ts → ix-modal-footer.d.ts} +4 -4
  482. package/dist/components/ix-modal-footer.js +35 -0
  483. package/dist/components/ix-modal-footer.js.map +1 -0
  484. package/dist/components/ix-modal-header.d.ts +11 -0
  485. package/dist/components/ix-modal-header.js +90 -0
  486. package/dist/components/ix-modal-header.js.map +1 -0
  487. package/dist/components/ix-modal-loading.d.ts +11 -0
  488. package/dist/components/ix-modal-loading.js +41 -0
  489. package/dist/components/ix-modal-loading.js.map +1 -0
  490. package/dist/components/ix-modal.js +148 -1
  491. package/dist/components/ix-modal.js.map +1 -1
  492. package/dist/components/ix-pagination.js +25 -19
  493. package/dist/components/ix-pagination.js.map +1 -1
  494. package/dist/components/ix-pill.js +29 -10
  495. package/dist/components/ix-pill.js.map +1 -1
  496. package/dist/components/ix-split-button-item.js +4 -3
  497. package/dist/components/ix-split-button-item.js.map +1 -1
  498. package/dist/components/ix-split-button.js +36 -14
  499. package/dist/components/ix-split-button.js.map +1 -1
  500. package/dist/components/ix-tile.js +22 -4
  501. package/dist/components/ix-tile.js.map +1 -1
  502. package/dist/components/ix-toast-container.js +12 -6
  503. package/dist/components/ix-toast-container.js.map +1 -1
  504. package/dist/components/ix-toggle.js +15 -34
  505. package/dist/components/ix-toggle.js.map +1 -1
  506. package/dist/components/ix-upload.js +28 -10
  507. package/dist/components/ix-upload.js.map +1 -1
  508. package/dist/components/ix-validation-tooltip.js +6 -18
  509. package/dist/components/ix-validation-tooltip.js.map +1 -1
  510. package/dist/components/ix-workflow-step.js +6 -5
  511. package/dist/components/ix-workflow-step.js.map +1 -1
  512. package/dist/components/ix-workflow-steps.js +13 -16
  513. package/dist/components/ix-workflow-steps.js.map +1 -1
  514. package/dist/components/map-navigation-overlay.js +10 -4
  515. package/dist/components/map-navigation-overlay.js.map +1 -1
  516. package/dist/components/menu-avatar-item.js +3 -2
  517. package/dist/components/menu-avatar-item.js.map +1 -1
  518. package/dist/components/menu-item.js +17 -3
  519. package/dist/components/menu-item.js.map +1 -1
  520. package/dist/components/menu-service.js +78 -0
  521. package/dist/components/menu-service.js.map +1 -0
  522. package/dist/components/modal.js +225 -165
  523. package/dist/components/modal.js.map +1 -1
  524. package/dist/components/my-component.js.map +1 -1
  525. package/dist/components/select-item.js +4 -2
  526. package/dist/components/select-item.js.map +1 -1
  527. package/dist/components/select.js +33 -17
  528. package/dist/components/select.js.map +1 -1
  529. package/dist/components/service.js +83 -81
  530. package/dist/components/service.js.map +1 -1
  531. package/dist/components/spinner.js +11 -3
  532. package/dist/components/spinner.js.map +1 -1
  533. package/dist/components/tab-item.js +3 -2
  534. package/dist/components/tab-item.js.map +1 -1
  535. package/dist/components/tabs.js +22 -7
  536. package/dist/components/tabs.js.map +1 -1
  537. package/dist/components/time-picker.js +19 -13
  538. package/dist/components/time-picker.js.map +1 -1
  539. package/dist/components/toast.js +17 -10
  540. package/dist/components/toast.js.map +1 -1
  541. package/dist/components/typography.js +3 -3
  542. package/dist/components/typography.js.map +1 -1
  543. package/dist/esm/a11y-aa83c2d1.js +79 -0
  544. package/dist/esm/a11y-aa83c2d1.js.map +1 -0
  545. package/dist/esm/base-button-5bfeb71c.js.map +1 -1
  546. package/dist/esm/context-381170ae.js +22 -0
  547. package/dist/esm/context-381170ae.js.map +1 -0
  548. package/dist/esm/{flip-tile-state-051bb2fd.js → flip-tile-state-db31345f.js} +6 -6
  549. package/dist/esm/{flip-tile-state-051bb2fd.js.map → flip-tile-state-db31345f.js.map} +1 -1
  550. package/dist/esm/{floating-ui.dom.esm-3130eda0.js → floating-ui.dom.esm-9b203a02.js} +2 -103
  551. package/dist/esm/floating-ui.dom.esm-9b203a02.js.map +1 -0
  552. package/dist/esm/{icon-c659fc0f.js → icon-4ac90a6d.js} +2 -2
  553. package/dist/esm/{icon-c659fc0f.js.map → icon-4ac90a6d.js.map} +1 -1
  554. package/dist/esm/{index-8ddfb6d8.js → index-7334ee80.js} +77 -22
  555. package/dist/esm/index-7334ee80.js.map +1 -0
  556. package/dist/esm/index.js +40 -5
  557. package/dist/esm/index.js.map +1 -1
  558. package/dist/esm/ix-action-card.entry.js +1 -1
  559. package/dist/esm/ix-animated-tab_2.entry.js +1 -1
  560. package/dist/esm/ix-application-header.entry.js +20 -17
  561. package/dist/esm/ix-application-header.entry.js.map +1 -1
  562. package/dist/esm/ix-avatar.entry.js +35 -0
  563. package/dist/esm/ix-avatar.entry.js.map +1 -0
  564. package/dist/esm/ix-basic-navigation.entry.js +13 -15
  565. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  566. package/dist/esm/ix-blind.entry.js +2 -11
  567. package/dist/esm/ix-blind.entry.js.map +1 -1
  568. package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
  569. package/dist/esm/ix-burger-menu.entry.js +7 -3
  570. package/dist/esm/ix-burger-menu.entry.js.map +1 -1
  571. package/dist/esm/ix-button.entry.js +22 -4
  572. package/dist/esm/ix-button.entry.js.map +1 -1
  573. package/dist/esm/ix-card-accordion_2.entry.js +1 -1
  574. package/dist/esm/ix-card-list.entry.js +1 -1
  575. package/dist/esm/ix-card_2.entry.js +31 -0
  576. package/dist/esm/ix-card_2.entry.js.map +1 -0
  577. package/dist/esm/ix-category-filter.entry.js +2 -2
  578. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  579. package/dist/esm/ix-chip.entry.js +23 -15
  580. package/dist/esm/ix-chip.entry.js.map +1 -1
  581. package/dist/esm/ix-content-header.entry.js +3 -3
  582. package/dist/esm/ix-content-header.entry.js.map +1 -1
  583. package/dist/esm/ix-css-grid-item.entry.js +1 -1
  584. package/dist/esm/ix-css-grid.entry.js +1 -1
  585. package/dist/esm/ix-date-picker_2.entry.js +8 -9
  586. package/dist/esm/ix-date-picker_2.entry.js.map +1 -1
  587. package/dist/esm/ix-date-time-card.entry.js +2 -3
  588. package/dist/esm/ix-date-time-card.entry.js.map +1 -1
  589. package/dist/esm/ix-datetime-picker.entry.js +2 -2
  590. package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
  591. package/dist/esm/ix-divider.entry.js +1 -1
  592. package/dist/esm/ix-drawer.entry.js +4 -1
  593. package/dist/esm/ix-drawer.entry.js.map +1 -1
  594. package/dist/esm/ix-dropdown-button.entry.js +7 -6
  595. package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
  596. package/dist/esm/ix-dropdown-header.entry.js +18 -0
  597. package/dist/esm/ix-dropdown-header.entry.js.map +1 -0
  598. package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
  599. package/dist/esm/ix-dropdown_2.entry.js +67 -33
  600. package/dist/esm/ix-dropdown_2.entry.js.map +1 -1
  601. package/dist/esm/ix-empty-state.entry.js +1 -1
  602. package/dist/esm/ix-event-list_2.entry.js +44 -25
  603. package/dist/esm/ix-event-list_2.entry.js.map +1 -1
  604. package/dist/esm/ix-expanding-search.entry.js +5 -8
  605. package/dist/esm/ix-expanding-search.entry.js.map +1 -1
  606. package/dist/esm/ix-filter-chip.entry.js +3 -3
  607. package/dist/esm/ix-filter-chip.entry.js.map +1 -1
  608. package/dist/esm/ix-flip-tile_2.entry.js +3 -3
  609. package/dist/esm/ix-flip-tile_2.entry.js.map +1 -1
  610. package/dist/esm/ix-group-context-menu.entry.js +26 -14
  611. package/dist/esm/ix-group-context-menu.entry.js.map +1 -1
  612. package/dist/esm/ix-group_2.entry.js +154 -0
  613. package/dist/esm/ix-group_2.entry.js.map +1 -0
  614. package/dist/esm/ix-icon-button.entry.js +26 -5
  615. package/dist/esm/ix-icon-button.entry.js.map +1 -1
  616. package/dist/esm/ix-icon.entry.js +2 -2
  617. package/dist/esm/ix-index-button.entry.js +4 -4
  618. package/dist/esm/ix-index-button.entry.js.map +1 -1
  619. package/dist/esm/ix-input-group.entry.js +2 -2
  620. package/dist/esm/ix-input-group.entry.js.map +1 -1
  621. package/dist/esm/ix-key-value-list.entry.js +1 -1
  622. package/dist/esm/ix-key-value.entry.js +1 -1
  623. package/dist/esm/ix-kpi.entry.js +1 -1
  624. package/dist/esm/ix-link-button.entry.js +26 -0
  625. package/dist/esm/ix-link-button.entry.js.map +1 -0
  626. package/dist/esm/ix-map-navigation_2.entry.js +17 -7
  627. package/dist/esm/ix-map-navigation_2.entry.js.map +1 -1
  628. package/dist/esm/ix-menu-category.entry.js +134 -0
  629. package/dist/esm/ix-menu-category.entry.js.map +1 -0
  630. package/dist/esm/ix-menu_9.entry.js +251 -338
  631. package/dist/esm/ix-menu_9.entry.js.map +1 -1
  632. package/dist/esm/ix-message-bar.entry.js +1 -1
  633. package/dist/esm/ix-modal-content.entry.js +17 -0
  634. package/dist/esm/ix-modal-content.entry.js.map +1 -0
  635. package/dist/esm/ix-modal-example.entry.js +4 -2
  636. package/dist/esm/ix-modal-example.entry.js.map +1 -1
  637. package/dist/esm/ix-modal-footer.entry.js +17 -0
  638. package/dist/esm/ix-modal-footer.entry.js.map +1 -0
  639. package/dist/esm/ix-modal-header.entry.js +44 -0
  640. package/dist/esm/ix-modal-header.entry.js.map +1 -0
  641. package/dist/esm/ix-modal-loading.entry.js +17 -0
  642. package/dist/esm/ix-modal-loading.entry.js.map +1 -0
  643. package/dist/esm/ix-modal.entry.js +126 -0
  644. package/dist/esm/ix-modal.entry.js.map +1 -0
  645. package/dist/esm/ix-pagination.entry.js +4 -4
  646. package/dist/esm/ix-pagination.entry.js.map +1 -1
  647. package/dist/esm/ix-pill.entry.js +28 -10
  648. package/dist/esm/ix-pill.entry.js.map +1 -1
  649. package/dist/esm/ix-push-card.entry.js +1 -1
  650. package/dist/esm/ix-select_2.entry.js +20 -8
  651. package/dist/esm/ix-select_2.entry.js.map +1 -1
  652. package/dist/esm/ix-spinner.entry.js +10 -3
  653. package/dist/esm/ix-spinner.entry.js.map +1 -1
  654. package/dist/esm/ix-split-button_2.entry.js +15 -11
  655. package/dist/esm/ix-split-button_2.entry.js.map +1 -1
  656. package/dist/esm/ix-tab-item.entry.js +2 -2
  657. package/dist/esm/ix-tab-item.entry.js.map +1 -1
  658. package/dist/esm/ix-tabs.entry.js +14 -6
  659. package/dist/esm/ix-tabs.entry.js.map +1 -1
  660. package/dist/esm/ix-tile.entry.js +18 -3
  661. package/dist/esm/ix-tile.entry.js.map +1 -1
  662. package/dist/esm/ix-toast_2.entry.js +6 -7
  663. package/dist/esm/ix-toast_2.entry.js.map +1 -1
  664. package/dist/esm/ix-toggle.entry.js +11 -30
  665. package/dist/esm/ix-toggle.entry.js.map +1 -1
  666. package/dist/esm/ix-tooltip.entry.js +2 -2
  667. package/dist/esm/ix-tree_2.entry.js +1 -1
  668. package/dist/esm/ix-typography.entry.js +42 -0
  669. package/dist/esm/ix-typography.entry.js.map +1 -0
  670. package/dist/esm/ix-upload.entry.js +19 -7
  671. package/dist/esm/ix-upload.entry.js.map +1 -1
  672. package/dist/esm/ix-validation-tooltip.entry.js +6 -19
  673. package/dist/esm/ix-validation-tooltip.entry.js.map +1 -1
  674. package/dist/esm/ix-workflow-step_2.entry.js +14 -18
  675. package/dist/esm/ix-workflow-step_2.entry.js.map +1 -1
  676. package/dist/esm/loader.js +3 -3
  677. package/dist/esm/menu-service-b3076949.js +78 -0
  678. package/dist/esm/menu-service-b3076949.js.map +1 -0
  679. package/dist/esm/modal-68c6d3f6.js +245 -0
  680. package/dist/esm/modal-68c6d3f6.js.map +1 -0
  681. package/dist/esm/my-component.entry.js +1 -1
  682. package/dist/esm/my-component.entry.js.map +1 -1
  683. package/dist/esm/service-586129b5.js +143 -0
  684. package/dist/esm/service-586129b5.js.map +1 -0
  685. package/dist/esm/shadow-dom-6860b1c4.js +18 -0
  686. package/dist/esm/shadow-dom-6860b1c4.js.map +1 -0
  687. package/dist/esm/siemens-ix.js +3 -3
  688. package/dist/siemens-ix/index.esm.js +1 -1
  689. package/dist/siemens-ix/index.esm.js.map +1 -1
  690. package/dist/siemens-ix/{p-d848739e.entry.js → p-00f74fc9.entry.js} +2 -2
  691. package/dist/siemens-ix/p-01c37ebe.entry.js +2 -0
  692. package/dist/siemens-ix/p-01c37ebe.entry.js.map +1 -0
  693. package/dist/siemens-ix/{p-6acce5c9.entry.js → p-02f01e39.entry.js} +2 -2
  694. package/dist/siemens-ix/p-0574cf88.entry.js +2 -0
  695. package/dist/siemens-ix/p-0574cf88.entry.js.map +1 -0
  696. package/dist/siemens-ix/p-06603826.entry.js +2 -0
  697. package/dist/siemens-ix/p-06603826.entry.js.map +1 -0
  698. package/dist/siemens-ix/p-06fcaee3.entry.js +2 -0
  699. package/dist/siemens-ix/p-06fcaee3.entry.js.map +1 -0
  700. package/dist/siemens-ix/{p-07c932da.entry.js → p-07a0b330.entry.js} +2 -2
  701. package/dist/siemens-ix/{p-3f4a9e1f.entry.js → p-09ce5f12.entry.js} +2 -2
  702. package/dist/siemens-ix/p-0b71cde4.js +2 -0
  703. package/dist/siemens-ix/p-0b71cde4.js.map +1 -0
  704. package/dist/siemens-ix/{p-f74c7692.entry.js → p-0c9ead45.entry.js} +2 -2
  705. package/dist/siemens-ix/{p-f74c7692.entry.js.map → p-0c9ead45.entry.js.map} +1 -1
  706. package/dist/siemens-ix/p-0dea55bf.entry.js +2 -0
  707. package/dist/siemens-ix/p-0dea55bf.entry.js.map +1 -0
  708. package/dist/siemens-ix/p-0e86b47b.entry.js +2 -0
  709. package/dist/siemens-ix/p-0e86b47b.entry.js.map +1 -0
  710. package/dist/siemens-ix/{p-13bda5ea.entry.js → p-0fab8cae.entry.js} +2 -2
  711. package/dist/siemens-ix/p-157f7ec0.entry.js +2 -0
  712. package/dist/siemens-ix/p-157f7ec0.entry.js.map +1 -0
  713. package/dist/siemens-ix/p-15996fa7.entry.js +2 -0
  714. package/dist/siemens-ix/p-15996fa7.entry.js.map +1 -0
  715. package/dist/siemens-ix/p-1b1bc523.entry.js +2 -0
  716. package/dist/siemens-ix/p-1b1bc523.entry.js.map +1 -0
  717. package/dist/siemens-ix/p-1b227e9a.js +2 -0
  718. package/dist/siemens-ix/{p-15bebd8a.js.map → p-1b227e9a.js.map} +1 -1
  719. package/dist/siemens-ix/{p-003e9355.entry.js → p-20aa7350.entry.js} +2 -2
  720. package/dist/siemens-ix/p-2ea3d53a.entry.js +2 -0
  721. package/dist/siemens-ix/p-2ea3d53a.entry.js.map +1 -0
  722. package/dist/siemens-ix/p-303b8c2f.entry.js +2 -0
  723. package/dist/siemens-ix/p-303b8c2f.entry.js.map +1 -0
  724. package/dist/siemens-ix/{p-f6ae45fb.entry.js → p-33670e98.entry.js} +2 -2
  725. package/dist/siemens-ix/p-34633470.entry.js +2 -0
  726. package/dist/siemens-ix/p-34633470.entry.js.map +1 -0
  727. package/dist/siemens-ix/{p-3ec2368b.entry.js → p-34807901.entry.js} +2 -2
  728. package/dist/siemens-ix/{p-3ec2368b.entry.js.map → p-34807901.entry.js.map} +1 -1
  729. package/dist/siemens-ix/p-38e69215.entry.js +2 -0
  730. package/dist/siemens-ix/p-38e69215.entry.js.map +1 -0
  731. package/dist/siemens-ix/p-3a99b0c8.entry.js +2 -0
  732. package/dist/siemens-ix/p-3a99b0c8.entry.js.map +1 -0
  733. package/dist/siemens-ix/p-45738e84.js +2 -0
  734. package/dist/siemens-ix/p-45738e84.js.map +1 -0
  735. package/dist/siemens-ix/{p-a89a1fa5.entry.js → p-4d194d55.entry.js} +2 -2
  736. package/dist/siemens-ix/{p-652ba2c1.entry.js → p-56a27b34.entry.js} +2 -2
  737. package/dist/siemens-ix/{p-652ba2c1.entry.js.map → p-56a27b34.entry.js.map} +1 -1
  738. package/dist/siemens-ix/p-5b39e04e.js.map +1 -1
  739. package/dist/siemens-ix/p-5fedb19b.entry.js +2 -0
  740. package/dist/siemens-ix/p-5fedb19b.entry.js.map +1 -0
  741. package/dist/siemens-ix/p-627148db.entry.js +2 -0
  742. package/dist/siemens-ix/p-627148db.entry.js.map +1 -0
  743. package/dist/siemens-ix/p-62f4db99.entry.js +2 -0
  744. package/dist/siemens-ix/p-62f4db99.entry.js.map +1 -0
  745. package/dist/siemens-ix/{p-626fbee2.entry.js → p-63b82e40.entry.js} +2 -2
  746. package/dist/siemens-ix/{p-626fbee2.entry.js.map → p-63b82e40.entry.js.map} +1 -1
  747. package/dist/siemens-ix/p-68c44614.entry.js +2 -0
  748. package/dist/siemens-ix/p-68c44614.entry.js.map +1 -0
  749. package/dist/siemens-ix/p-7021c2d1.entry.js +2 -0
  750. package/dist/siemens-ix/p-7021c2d1.entry.js.map +1 -0
  751. package/dist/siemens-ix/{p-d2225fc2.entry.js → p-709d38fe.entry.js} +2 -2
  752. package/dist/siemens-ix/p-785726e8.entry.js +2 -0
  753. package/dist/siemens-ix/p-785726e8.entry.js.map +1 -0
  754. package/dist/siemens-ix/p-7d2aec76.entry.js +2 -0
  755. package/dist/siemens-ix/{p-f207e578.entry.js.map → p-7d2aec76.entry.js.map} +1 -1
  756. package/dist/siemens-ix/{p-1331a920.entry.js → p-81333042.entry.js} +2 -2
  757. package/dist/siemens-ix/p-8c14a4a3.entry.js +2 -0
  758. package/dist/siemens-ix/p-8c14a4a3.entry.js.map +1 -0
  759. package/dist/siemens-ix/p-8ce73af1.entry.js +2 -0
  760. package/dist/siemens-ix/p-8ce73af1.entry.js.map +1 -0
  761. package/dist/siemens-ix/{p-85f01dba.entry.js → p-904aa275.entry.js} +2 -2
  762. package/dist/siemens-ix/{p-cd3cfc78.entry.js → p-918450cd.entry.js} +2 -2
  763. package/dist/siemens-ix/p-9547706d.entry.js +2 -0
  764. package/dist/siemens-ix/p-9547706d.entry.js.map +1 -0
  765. package/dist/siemens-ix/p-9903e755.entry.js +2 -0
  766. package/dist/siemens-ix/p-9903e755.entry.js.map +1 -0
  767. package/dist/siemens-ix/p-9c030990.js +2 -0
  768. package/dist/siemens-ix/p-9c030990.js.map +1 -0
  769. package/dist/siemens-ix/p-9d264ca8.entry.js +2 -0
  770. package/dist/siemens-ix/p-9d264ca8.entry.js.map +1 -0
  771. package/dist/siemens-ix/p-a64d88de.entry.js +2 -0
  772. package/dist/siemens-ix/p-a64d88de.entry.js.map +1 -0
  773. package/dist/siemens-ix/p-a8e8a942.entry.js +2 -0
  774. package/dist/siemens-ix/p-a8e8a942.entry.js.map +1 -0
  775. package/dist/siemens-ix/p-a9619a92.entry.js +2 -0
  776. package/dist/siemens-ix/p-a9619a92.entry.js.map +1 -0
  777. package/dist/siemens-ix/{p-a7212f01.entry.js → p-b21bc31c.entry.js} +2 -2
  778. package/dist/siemens-ix/p-b6d52b6f.entry.js +2 -0
  779. package/dist/siemens-ix/p-b6d52b6f.entry.js.map +1 -0
  780. package/dist/siemens-ix/{p-6c033b08.entry.js → p-b89172b4.entry.js} +2 -2
  781. package/dist/siemens-ix/p-b899b25b.js +3 -0
  782. package/dist/siemens-ix/p-b899b25b.js.map +1 -0
  783. package/dist/siemens-ix/p-bf019e35.entry.js +2 -0
  784. package/dist/siemens-ix/p-bf019e35.entry.js.map +1 -0
  785. package/dist/siemens-ix/p-c0345859.entry.js +2 -0
  786. package/dist/siemens-ix/p-c0345859.entry.js.map +1 -0
  787. package/dist/siemens-ix/{p-55b54a81.entry.js → p-c4ea8815.entry.js} +2 -2
  788. package/dist/siemens-ix/p-c4ea8815.entry.js.map +1 -0
  789. package/dist/siemens-ix/p-c84a43ef.entry.js +2 -0
  790. package/dist/siemens-ix/p-c84a43ef.entry.js.map +1 -0
  791. package/dist/siemens-ix/p-d0a8aa6f.entry.js +2 -0
  792. package/dist/siemens-ix/p-d43bf856.js +2 -0
  793. package/dist/siemens-ix/p-d43bf856.js.map +1 -0
  794. package/dist/siemens-ix/{p-b60bd26c.entry.js → p-d48d74af.entry.js} +2 -2
  795. package/dist/siemens-ix/{p-b60bd26c.entry.js.map → p-d48d74af.entry.js.map} +1 -1
  796. package/dist/siemens-ix/p-d737ad96.js +2 -0
  797. package/dist/siemens-ix/p-d737ad96.js.map +1 -0
  798. package/dist/siemens-ix/p-d7e8417d.entry.js +2 -0
  799. package/dist/siemens-ix/p-d7e8417d.entry.js.map +1 -0
  800. package/dist/siemens-ix/p-d81d0f62.entry.js +2 -0
  801. package/dist/siemens-ix/p-d81d0f62.entry.js.map +1 -0
  802. package/dist/siemens-ix/p-d991a3d6.entry.js +2 -0
  803. package/dist/siemens-ix/p-d991a3d6.entry.js.map +1 -0
  804. package/dist/siemens-ix/{p-b1db27a3.js → p-db74796e.js} +2 -2
  805. package/dist/siemens-ix/p-dbca4dd5.entry.js +2 -0
  806. package/dist/siemens-ix/p-dbca4dd5.entry.js.map +1 -0
  807. package/dist/siemens-ix/p-e1c92dcb.entry.js +2 -0
  808. package/dist/siemens-ix/p-e1c92dcb.entry.js.map +1 -0
  809. package/dist/siemens-ix/p-e275814e.js +2 -0
  810. package/dist/siemens-ix/p-e275814e.js.map +1 -0
  811. package/dist/siemens-ix/p-e3db25ef.entry.js +2 -0
  812. package/dist/siemens-ix/p-e3db25ef.entry.js.map +1 -0
  813. package/dist/siemens-ix/p-e8f2e141.entry.js +2 -0
  814. package/dist/siemens-ix/p-e8f2e141.entry.js.map +1 -0
  815. package/dist/siemens-ix/p-eca0b89c.entry.js +2 -0
  816. package/dist/siemens-ix/p-eca0b89c.entry.js.map +1 -0
  817. package/dist/siemens-ix/p-ef73f7e3.entry.js +2 -0
  818. package/dist/siemens-ix/p-ef73f7e3.entry.js.map +1 -0
  819. package/dist/siemens-ix/{p-bd24f35f.entry.js → p-f0219d7a.entry.js} +2 -2
  820. package/dist/siemens-ix/p-f22423c2.js +2 -0
  821. package/dist/siemens-ix/p-f22423c2.js.map +1 -0
  822. package/dist/siemens-ix/{p-1e8ee4af.entry.js → p-f38e7420.entry.js} +2 -2
  823. package/dist/siemens-ix/p-f4d634f5.entry.js +2 -0
  824. package/dist/siemens-ix/p-f4d634f5.entry.js.map +1 -0
  825. package/dist/siemens-ix/{p-94ab7c1c.entry.js → p-fafe1aeb.entry.js} +2 -2
  826. package/dist/siemens-ix/{p-94ab7c1c.entry.js.map → p-fafe1aeb.entry.js.map} +1 -1
  827. package/dist/siemens-ix/p-fe073f2a.entry.js +2 -0
  828. package/dist/siemens-ix/p-fe073f2a.entry.js.map +1 -0
  829. package/dist/siemens-ix/{p-6124d173.entry.js → p-ff17104c.entry.js} +2 -2
  830. package/dist/siemens-ix/siemens-ix-core.css +12289 -0
  831. package/dist/siemens-ix/siemens-ix.css +941 -875
  832. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  833. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  834. package/dist/siemens-ix/theme/classic-dark.css +1062 -0
  835. package/dist/siemens-ix/theme/classic-light.css +1062 -0
  836. package/dist/siemens-ix/theme/legacy-classic-dark.css +1061 -0
  837. package/dist/siemens-ix/theme/legacy-classic-light.css +1061 -0
  838. package/dist/types/components/application-header/application-header.d.ts +5 -1
  839. package/dist/types/components/avatar/avatar.d.ts +17 -0
  840. package/dist/types/components/basic-navigation/basic-navigation.d.ts +2 -3
  841. package/dist/types/components/button/base-button.d.ts +2 -1
  842. package/dist/types/components/button/button.d.ts +18 -1
  843. package/dist/types/components/button/test/button.ct.d.ts +1 -0
  844. package/dist/types/components/content-header/content-header.d.ts +1 -1
  845. package/dist/types/components/date-time-card/date-time-card.d.ts +0 -1
  846. package/dist/types/components/drawer/drawer.d.ts +1 -0
  847. package/dist/types/components/drawer/test/drawer.ct.d.ts +1 -0
  848. package/dist/types/components/dropdown/dropdown.d.ts +10 -13
  849. package/dist/types/components/dropdown/placement.d.ts +3 -4
  850. package/dist/types/components/dropdown-button/dropdown-button.d.ts +3 -1
  851. package/dist/types/components/dropdown-header/dropdown-header.d.ts +10 -0
  852. package/dist/types/components/dropdown-item/dropdown-item.d.ts +9 -0
  853. package/dist/types/components/event-list/event-list.d.ts +3 -1
  854. package/dist/types/components/event-list-item/event-list-item.d.ts +4 -2
  855. package/dist/types/components/expanding-search/test/expanding-search.ct.d.ts +1 -0
  856. package/dist/types/components/flip-tile/flip-tile-state.d.ts +5 -5
  857. package/dist/types/components/group/group-context-menu.d.ts +3 -4
  858. package/dist/types/components/group/group.d.ts +7 -8
  859. package/dist/types/components/icon-button/icon-button.d.ts +16 -1
  860. package/dist/types/components/icon-button/test/icon-button.ct.d.ts +1 -0
  861. package/dist/types/components/link-button/link-button.d.ts +20 -0
  862. package/dist/types/components/map-navigation/map-navigation.d.ts +3 -1
  863. package/dist/types/components/menu/burger-menu.d.ts +9 -1
  864. package/dist/types/components/menu/menu.d.ts +45 -34
  865. package/dist/types/components/menu/test/menu.ct.d.ts +1 -0
  866. package/dist/types/components/menu-about/menu-about.d.ts +4 -1
  867. package/dist/types/components/menu-category/menu-category.d.ts +37 -0
  868. package/dist/types/components/menu-category/test/menu-category.ct.d.ts +1 -0
  869. package/dist/types/components/menu-item/menu-item.d.ts +9 -2
  870. package/dist/types/components/menu-settings/menu-settings.d.ts +4 -1
  871. package/dist/types/components/modal/modal.d.ts +35 -66
  872. package/dist/types/components/modal-content/modal-content.d.ts +6 -0
  873. package/dist/types/components/modal-footer/modal-footer.d.ts +6 -0
  874. package/dist/types/components/modal-header/modal-header.d.ts +28 -0
  875. package/dist/types/components/modal-loading/modal-loading.d.ts +6 -0
  876. package/dist/types/components/select/select.d.ts +9 -1
  877. package/dist/types/components/select/test/select.ct.d.ts +1 -0
  878. package/dist/types/components/spinner/spinner.d.ts +7 -2
  879. package/dist/types/components/split-button/split-button.d.ts +3 -9
  880. package/dist/types/components/tile/tile.d.ts +5 -0
  881. package/dist/types/components/time-picker/time-picker.d.ts +0 -1
  882. package/dist/types/components/toast/toast-container.d.ts +0 -1
  883. package/dist/types/components/toast/toast.d.ts +1 -1
  884. package/dist/types/components/toggle/test/toggle.ct.d.ts +1 -0
  885. package/dist/types/components/toggle/toggle.d.ts +3 -10
  886. package/dist/types/components/utils/a11y.d.ts +7 -0
  887. package/dist/types/components/utils/delegate.d.ts +15 -0
  888. package/dist/types/components/utils/menu-service/menu-service.d.ts +3 -0
  889. package/dist/types/components/utils/modal/index.d.ts +3 -0
  890. package/dist/types/components/utils/modal/loading.d.ts +4 -0
  891. package/dist/types/components/utils/modal/message.d.ts +41 -0
  892. package/dist/types/components/utils/modal/modal.d.ts +25 -0
  893. package/dist/types/components/utils/screen/context.d.ts +1 -0
  894. package/dist/types/components/utils/screen/mode.d.ts +5 -2
  895. package/dist/types/components/utils/screen/service.d.ts +5 -0
  896. package/dist/types/components/utils/shadow-dom.d.ts +3 -0
  897. package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +8 -2
  898. package/dist/types/components/workflow-step/workflow-step.d.ts +1 -1
  899. package/dist/types/components/workflow-steps/workflow-steps.d.ts +1 -1
  900. package/dist/types/components.d.ts +466 -265
  901. package/dist/types/index.d.ts +2 -1
  902. package/package.json +7 -6
  903. package/scss/components/_buttons.scss +4 -0
  904. package/scss/components/_dropdown.scss +1 -0
  905. package/scss/components/_forms.scss +1 -0
  906. package/scss/components/_links.scss +24 -0
  907. package/scss/ix-core.scss +84 -0
  908. package/scss/mixins/_hover.scss +32 -0
  909. package/{dist/collection/components/group-dropdown-item/group-dropdown-item.css → scss/mixins/shadow-dom/_host-disabled.scss} +6 -3
  910. package/scss/mixins/shadow-dom/_hover.scss +26 -0
  911. package/scss/theme/classic-dark/_borderRadius.scss +5 -5
  912. package/scss/theme/classic-dark/_borderWidth.scss +5 -5
  913. package/scss/theme/classic-dark/_boxShadow.scss +7 -7
  914. package/scss/theme/classic-dark/_color.scss +423 -418
  915. package/scss/theme/classic-dark/_other.scss +4 -4
  916. package/scss/theme/classic-dark/_sizing.scss +1 -1
  917. package/scss/theme/classic-light/_borderRadius.scss +4 -4
  918. package/scss/theme/classic-light/_borderWidth.scss +5 -5
  919. package/scss/theme/classic-light/_boxShadow.scss +7 -7
  920. package/scss/theme/classic-light/_color.scss +420 -415
  921. package/scss/theme/classic-light/_other.scss +4 -4
  922. package/scss/theme/classic-light/_sizing.scss +1 -1
  923. package/scss/theme/legacy-classic-dark/_border.scss +35 -0
  924. package/scss/theme/legacy-classic-dark/_borderRadius.scss +24 -0
  925. package/scss/theme/legacy-classic-dark/_borderWidth.scss +18 -0
  926. package/scss/theme/legacy-classic-dark/_boxShadow.scss +19 -0
  927. package/scss/theme/legacy-classic-dark/_color.scss +864 -0
  928. package/scss/theme/legacy-classic-dark/_fontFamilies.scss +8 -0
  929. package/scss/theme/legacy-classic-dark/_fontSizes.scss +13 -0
  930. package/scss/theme/legacy-classic-dark/_fontWeights.scss +9 -0
  931. package/scss/theme/legacy-classic-dark/_index.scss +16 -0
  932. package/scss/theme/legacy-classic-dark/_lineHeights.scss +18 -0
  933. package/scss/theme/legacy-classic-dark/_other.scss +16 -0
  934. package/scss/theme/legacy-classic-dark/_sizing.scss +16 -0
  935. package/scss/theme/legacy-classic-dark/_spacing.scss +9 -0
  936. package/scss/theme/legacy-classic-dark/_typography.scss +23 -0
  937. package/scss/theme/legacy-classic-light/_border.scss +35 -0
  938. package/scss/theme/legacy-classic-light/_borderRadius.scss +24 -0
  939. package/scss/theme/legacy-classic-light/_borderWidth.scss +18 -0
  940. package/scss/theme/legacy-classic-light/_boxShadow.scss +19 -0
  941. package/scss/theme/legacy-classic-light/_color.scss +864 -0
  942. package/scss/theme/legacy-classic-light/_fontFamilies.scss +8 -0
  943. package/scss/theme/legacy-classic-light/_fontSizes.scss +13 -0
  944. package/scss/theme/legacy-classic-light/_fontWeights.scss +9 -0
  945. package/scss/theme/legacy-classic-light/_index.scss +16 -0
  946. package/scss/theme/legacy-classic-light/_lineHeights.scss +18 -0
  947. package/scss/theme/legacy-classic-light/_other.scss +16 -0
  948. package/scss/theme/legacy-classic-light/_sizing.scss +16 -0
  949. package/scss/theme/legacy-classic-light/_spacing.scss +9 -0
  950. package/scss/theme/legacy-classic-light/_typography.scss +23 -0
  951. package/dist/cjs/context-a0900b95.js +0 -77
  952. package/dist/cjs/context-a0900b95.js.map +0 -1
  953. package/dist/cjs/floating-ui.dom.esm-01fe5abe.js.map +0 -1
  954. package/dist/cjs/index-c978628a.js.map +0 -1
  955. package/dist/cjs/ix-card_3.cjs.entry.js +0 -74
  956. package/dist/cjs/ix-card_3.cjs.entry.js.map +0 -1
  957. package/dist/cjs/ix-counter-pill.cjs.entry.js +0 -35
  958. package/dist/cjs/ix-counter-pill.cjs.entry.js.map +0 -1
  959. package/dist/cjs/ix-group_3.cjs.entry.js +0 -181
  960. package/dist/cjs/ix-group_3.cjs.entry.js.map +0 -1
  961. package/dist/cjs/ix-modal_2.cjs.entry.js +0 -227
  962. package/dist/cjs/ix-modal_2.cjs.entry.js.map +0 -1
  963. package/dist/cjs/modal-utils-b645989b.js +0 -44
  964. package/dist/cjs/modal-utils-b645989b.js.map +0 -1
  965. package/dist/cjs/service-18dc5907.js +0 -75
  966. package/dist/cjs/service-18dc5907.js.map +0 -1
  967. package/dist/collection/components/counter-pill/counter-pill.css +0 -323
  968. package/dist/collection/components/counter-pill/counter-pill.js +0 -135
  969. package/dist/collection/components/counter-pill/counter-pill.js.map +0 -1
  970. package/dist/collection/components/dropdown/alignment.js +0 -10
  971. package/dist/collection/components/dropdown/alignment.js.map +0 -1
  972. package/dist/collection/components/group-dropdown-item/group-dropdown-item.js.map +0 -1
  973. package/dist/collection/components/modal/modal-utils.js +0 -37
  974. package/dist/collection/components/modal/modal-utils.js.map +0 -1
  975. package/dist/collection/components/modal-container/modal-container.js +0 -126
  976. package/dist/collection/components/modal-container/modal-container.js.map +0 -1
  977. package/dist/components/ix-counter-pill.js +0 -54
  978. package/dist/components/ix-counter-pill.js.map +0 -1
  979. package/dist/components/ix-group-dropdown-item.js +0 -51
  980. package/dist/components/ix-group-dropdown-item.js.map +0 -1
  981. package/dist/components/ix-modal-container.js +0 -8
  982. package/dist/components/ix-modal-container.js.map +0 -1
  983. package/dist/components/modal-container.js +0 -109
  984. package/dist/components/modal-container.js.map +0 -1
  985. package/dist/components/modal-utils.js +0 -40
  986. package/dist/components/modal-utils.js.map +0 -1
  987. package/dist/esm/context-f6a2b727.js +0 -73
  988. package/dist/esm/context-f6a2b727.js.map +0 -1
  989. package/dist/esm/floating-ui.dom.esm-3130eda0.js.map +0 -1
  990. package/dist/esm/index-8ddfb6d8.js.map +0 -1
  991. package/dist/esm/ix-card_3.entry.js +0 -68
  992. package/dist/esm/ix-card_3.entry.js.map +0 -1
  993. package/dist/esm/ix-counter-pill.entry.js +0 -31
  994. package/dist/esm/ix-counter-pill.entry.js.map +0 -1
  995. package/dist/esm/ix-group_3.entry.js +0 -175
  996. package/dist/esm/ix-group_3.entry.js.map +0 -1
  997. package/dist/esm/ix-modal_2.entry.js +0 -222
  998. package/dist/esm/ix-modal_2.entry.js.map +0 -1
  999. package/dist/esm/modal-utils-aecbcba5.js +0 -40
  1000. package/dist/esm/modal-utils-aecbcba5.js.map +0 -1
  1001. package/dist/esm/service-fc436c5b.js +0 -73
  1002. package/dist/esm/service-fc436c5b.js.map +0 -1
  1003. package/dist/siemens-ix/p-1572aab3.js +0 -2
  1004. package/dist/siemens-ix/p-1572aab3.js.map +0 -1
  1005. package/dist/siemens-ix/p-15bebd8a.js +0 -2
  1006. package/dist/siemens-ix/p-1c64b073.js +0 -3
  1007. package/dist/siemens-ix/p-1c64b073.js.map +0 -1
  1008. package/dist/siemens-ix/p-3172249b.entry.js +0 -2
  1009. package/dist/siemens-ix/p-3172249b.entry.js.map +0 -1
  1010. package/dist/siemens-ix/p-3ddf017b.entry.js +0 -2
  1011. package/dist/siemens-ix/p-40982e21.entry.js +0 -2
  1012. package/dist/siemens-ix/p-40982e21.entry.js.map +0 -1
  1013. package/dist/siemens-ix/p-4597dd77.entry.js +0 -2
  1014. package/dist/siemens-ix/p-4597dd77.entry.js.map +0 -1
  1015. package/dist/siemens-ix/p-46ced516.entry.js +0 -2
  1016. package/dist/siemens-ix/p-46ced516.entry.js.map +0 -1
  1017. package/dist/siemens-ix/p-47422d47.entry.js +0 -2
  1018. package/dist/siemens-ix/p-47422d47.entry.js.map +0 -1
  1019. package/dist/siemens-ix/p-4851ea38.entry.js +0 -2
  1020. package/dist/siemens-ix/p-4851ea38.entry.js.map +0 -1
  1021. package/dist/siemens-ix/p-4e851aa3.entry.js +0 -2
  1022. package/dist/siemens-ix/p-4e851aa3.entry.js.map +0 -1
  1023. package/dist/siemens-ix/p-51c81a20.entry.js +0 -2
  1024. package/dist/siemens-ix/p-51c81a20.entry.js.map +0 -1
  1025. package/dist/siemens-ix/p-529d7530.js +0 -2
  1026. package/dist/siemens-ix/p-529d7530.js.map +0 -1
  1027. package/dist/siemens-ix/p-55b54a81.entry.js.map +0 -1
  1028. package/dist/siemens-ix/p-67be3720.entry.js +0 -2
  1029. package/dist/siemens-ix/p-67be3720.entry.js.map +0 -1
  1030. package/dist/siemens-ix/p-821ca55e.entry.js +0 -2
  1031. package/dist/siemens-ix/p-821ca55e.entry.js.map +0 -1
  1032. package/dist/siemens-ix/p-8719eeff.entry.js +0 -2
  1033. package/dist/siemens-ix/p-8719eeff.entry.js.map +0 -1
  1034. package/dist/siemens-ix/p-9a82921b.entry.js +0 -2
  1035. package/dist/siemens-ix/p-9a82921b.entry.js.map +0 -1
  1036. package/dist/siemens-ix/p-a08e1bbc.entry.js +0 -2
  1037. package/dist/siemens-ix/p-a08e1bbc.entry.js.map +0 -1
  1038. package/dist/siemens-ix/p-a422c64a.entry.js +0 -2
  1039. package/dist/siemens-ix/p-a422c64a.entry.js.map +0 -1
  1040. package/dist/siemens-ix/p-a73580a5.entry.js +0 -2
  1041. package/dist/siemens-ix/p-a73580a5.entry.js.map +0 -1
  1042. package/dist/siemens-ix/p-b14308ed.js +0 -2
  1043. package/dist/siemens-ix/p-b14308ed.js.map +0 -1
  1044. package/dist/siemens-ix/p-b5c40bb3.entry.js +0 -2
  1045. package/dist/siemens-ix/p-b5c40bb3.entry.js.map +0 -1
  1046. package/dist/siemens-ix/p-c5124f7b.entry.js +0 -2
  1047. package/dist/siemens-ix/p-c5124f7b.entry.js.map +0 -1
  1048. package/dist/siemens-ix/p-c7109071.entry.js +0 -2
  1049. package/dist/siemens-ix/p-c7109071.entry.js.map +0 -1
  1050. package/dist/siemens-ix/p-c724bb65.entry.js +0 -2
  1051. package/dist/siemens-ix/p-c724bb65.entry.js.map +0 -1
  1052. package/dist/siemens-ix/p-ca4d28fb.entry.js +0 -2
  1053. package/dist/siemens-ix/p-ca4d28fb.entry.js.map +0 -1
  1054. package/dist/siemens-ix/p-cd4e3593.entry.js +0 -2
  1055. package/dist/siemens-ix/p-cd4e3593.entry.js.map +0 -1
  1056. package/dist/siemens-ix/p-cd75b455.entry.js +0 -2
  1057. package/dist/siemens-ix/p-cd75b455.entry.js.map +0 -1
  1058. package/dist/siemens-ix/p-cf2717c1.entry.js +0 -2
  1059. package/dist/siemens-ix/p-cf2717c1.entry.js.map +0 -1
  1060. package/dist/siemens-ix/p-d5302336.entry.js +0 -2
  1061. package/dist/siemens-ix/p-d5302336.entry.js.map +0 -1
  1062. package/dist/siemens-ix/p-d784a04b.entry.js +0 -2
  1063. package/dist/siemens-ix/p-d784a04b.entry.js.map +0 -1
  1064. package/dist/siemens-ix/p-d7e23a1f.entry.js +0 -2
  1065. package/dist/siemens-ix/p-d7e23a1f.entry.js.map +0 -1
  1066. package/dist/siemens-ix/p-dbcec49e.entry.js +0 -2
  1067. package/dist/siemens-ix/p-dbcec49e.entry.js.map +0 -1
  1068. package/dist/siemens-ix/p-dc98d3f4.entry.js +0 -2
  1069. package/dist/siemens-ix/p-dc98d3f4.entry.js.map +0 -1
  1070. package/dist/siemens-ix/p-df138b2a.entry.js +0 -2
  1071. package/dist/siemens-ix/p-df138b2a.entry.js.map +0 -1
  1072. package/dist/siemens-ix/p-ea55afa3.entry.js +0 -2
  1073. package/dist/siemens-ix/p-ea55afa3.entry.js.map +0 -1
  1074. package/dist/siemens-ix/p-eccc2475.entry.js +0 -2
  1075. package/dist/siemens-ix/p-eccc2475.entry.js.map +0 -1
  1076. package/dist/siemens-ix/p-ecd1145b.entry.js +0 -2
  1077. package/dist/siemens-ix/p-ecd1145b.entry.js.map +0 -1
  1078. package/dist/siemens-ix/p-f207e578.entry.js +0 -2
  1079. package/dist/siemens-ix/p-f34a16c6.js +0 -2
  1080. package/dist/siemens-ix/p-f34a16c6.js.map +0 -1
  1081. package/dist/siemens-ix/p-f48b706b.entry.js +0 -2
  1082. package/dist/siemens-ix/p-f48b706b.entry.js.map +0 -1
  1083. package/dist/siemens-ix/p-f50697b9.entry.js +0 -2
  1084. package/dist/siemens-ix/p-f50697b9.entry.js.map +0 -1
  1085. package/dist/siemens-ix/p-feb8c2c4.entry.js +0 -2
  1086. package/dist/siemens-ix/p-feb8c2c4.entry.js.map +0 -1
  1087. package/dist/types/components/counter-pill/counter-pill.d.ts +0 -24
  1088. package/dist/types/components/dropdown/alignment.d.ts +0 -2
  1089. package/dist/types/components/group-dropdown-item/group-dropdown-item.d.ts +0 -11
  1090. package/dist/types/components/modal/modal-utils.d.ts +0 -29
  1091. package/dist/types/components/modal-container/modal-container.d.ts +0 -12
  1092. /package/dist/siemens-ix/{p-d848739e.entry.js.map → p-00f74fc9.entry.js.map} +0 -0
  1093. /package/dist/siemens-ix/{p-6acce5c9.entry.js.map → p-02f01e39.entry.js.map} +0 -0
  1094. /package/dist/siemens-ix/{p-07c932da.entry.js.map → p-07a0b330.entry.js.map} +0 -0
  1095. /package/dist/siemens-ix/{p-3f4a9e1f.entry.js.map → p-09ce5f12.entry.js.map} +0 -0
  1096. /package/dist/siemens-ix/{p-13bda5ea.entry.js.map → p-0fab8cae.entry.js.map} +0 -0
  1097. /package/dist/siemens-ix/{p-003e9355.entry.js.map → p-20aa7350.entry.js.map} +0 -0
  1098. /package/dist/siemens-ix/{p-f6ae45fb.entry.js.map → p-33670e98.entry.js.map} +0 -0
  1099. /package/dist/siemens-ix/{p-a89a1fa5.entry.js.map → p-4d194d55.entry.js.map} +0 -0
  1100. /package/dist/siemens-ix/{p-d2225fc2.entry.js.map → p-709d38fe.entry.js.map} +0 -0
  1101. /package/dist/siemens-ix/{p-1331a920.entry.js.map → p-81333042.entry.js.map} +0 -0
  1102. /package/dist/siemens-ix/{p-85f01dba.entry.js.map → p-904aa275.entry.js.map} +0 -0
  1103. /package/dist/siemens-ix/{p-cd3cfc78.entry.js.map → p-918450cd.entry.js.map} +0 -0
  1104. /package/dist/siemens-ix/{p-a7212f01.entry.js.map → p-b21bc31c.entry.js.map} +0 -0
  1105. /package/dist/siemens-ix/{p-6c033b08.entry.js.map → p-b89172b4.entry.js.map} +0 -0
  1106. /package/dist/siemens-ix/{p-3ddf017b.entry.js.map → p-d0a8aa6f.entry.js.map} +0 -0
  1107. /package/dist/siemens-ix/{p-b1db27a3.js.map → p-db74796e.js.map} +0 -0
  1108. /package/dist/siemens-ix/{p-bd24f35f.entry.js.map → p-f0219d7a.entry.js.map} +0 -0
  1109. /package/dist/siemens-ix/{p-1e8ee4af.entry.js.map → p-f38e7420.entry.js.map} +0 -0
  1110. /package/dist/siemens-ix/{p-6124d173.entry.js.map → p-ff17104c.entry.js.map} +0 -0
@@ -1,24 +1,42 @@
1
- import { r as registerInstance, h, H as Host } from './index-8ddfb6d8.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-7334ee80.js';
2
2
  import { g as getButtonClasses } from './base-button-5bfeb71c.js';
3
3
 
4
- const buttonCss = ".btn{display:inline-flex;align-items:center;justify-content:center;height:2rem;font-size:0.875rem;font-weight:700;transition:150ms;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);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-btn-primary--background--selected)}.btn-primary.hover,.btn-primary:hover{border-color:var(--theme-btn-primary--border-color--hover) !important;background-color:var(--theme-btn-primary--background--hover) !important;color:var(--theme-btn-primary--color--hover) !important}.btn-primary.selected.hover,.btn-primary.selected:hover{background-color:var(--theme-btn-primary--background--selected-hover);color:var(--theme-btn-primary--color--selected-hover)}.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) !important;background-color:var(--theme-btn-primary--background--active) !important;color:var(--theme-btn-primary--color--active) !important}.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-btn-primary--background--selected-active);color:var(--theme-btn-primary--color--selected-active)}.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}.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);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-btn-outline-primary--background--selected)}.btn-outline-primary.hover,.btn-outline-primary:hover{border-color:var(--theme-btn-outline-primary--border-color--hover) !important;background-color:var(--theme-btn-outline-primary--background--hover) !important;color:var(--theme-btn-outline-primary--color--hover) !important}.btn-outline-primary.selected.hover,.btn-outline-primary.selected:hover{background-color:var(--theme-btn-outline-primary--background--selected-hover);color:var(--theme-btn-outline-primary--color--selected-hover)}.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) !important;background-color:var(--theme-btn-outline-primary--background--active) !important;color:var(--theme-btn-outline-primary--color--active) !important}.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-btn-outline-primary--background--selected-active);color:var(--theme-btn-outline-primary--color--selected-active)}.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}.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);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-btn-invisible-primary--background--selected)}.btn-invisible-primary.hover,.btn-invisible-primary:hover{background-color:var(--theme-btn-invisible-primary--background--hover) !important;color:var(--theme-btn-invisible-primary--color--hover) !important}.btn-invisible-primary.selected.hover,.btn-invisible-primary.selected:hover{background-color:var(--theme-btn-invisible-primary--background--selected-hover);color:var(--theme-btn-invisible-primary--color--selected-hover)}.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) !important;color:var(--theme-btn-invisible-primary--color--active) !important}.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-btn-invisible-primary--background--selected-active);color:var(--theme-btn-invisible-primary--color--selected-active)}.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}.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);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-btn-secondary--background--selected)}.btn-secondary.hover,.btn-secondary:hover{border-color:var(--theme-btn-secondary--border-color--hover) !important;background-color:var(--theme-btn-secondary--background--hover) !important;color:var(--theme-btn-secondary--color--hover) !important}.btn-secondary.selected.hover,.btn-secondary.selected:hover{background-color:var(--theme-btn-secondary--background--selected-hover);color:var(--theme-btn-secondary--color--selected-hover)}.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) !important;background-color:var(--theme-btn-secondary--background--active) !important;color:var(--theme-btn-secondary--color--active) !important}.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-btn-secondary--background--selected-active);color:var(--theme-btn-secondary--color--selected-active)}.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}.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);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-btn-outline-secondary--background--selected)}.btn-outline-secondary.hover,.btn-outline-secondary:hover{border-color:var(--theme-btn-outline-secondary--border-color--hover) !important;background-color:var(--theme-btn-outline-secondary--background--hover) !important;color:var(--theme-btn-outline-secondary--color--hover) !important}.btn-outline-secondary.selected.hover,.btn-outline-secondary.selected:hover{background-color:var(--theme-btn-outline-secondary--background--selected-hover);color:var(--theme-btn-outline-secondary--color--selected-hover)}.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) !important;background-color:var(--theme-btn-outline-secondary--background--active) !important;color:var(--theme-btn-outline-secondary--color--active) !important}.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-btn-outline-secondary--background--selected-active);color:var(--theme-btn-outline-secondary--color--selected-active)}.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}.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);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-btn-invisible-secondary--background--selected)}.btn-invisible-secondary.hover,.btn-invisible-secondary:hover{background-color:var(--theme-btn-invisible-secondary--background--hover) !important;color:var(--theme-btn-invisible-secondary--color--hover) !important}.btn-invisible-secondary.selected.hover,.btn-invisible-secondary.selected:hover{background-color:var(--theme-btn-invisible-secondary--background--selected-hover);color:var(--theme-btn-invisible-secondary--color--selected-hover)}.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) !important;color:var(--theme-btn-invisible-secondary--color--active) !important}.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-btn-invisible-secondary--background--selected-active);color:var(--theme-btn-invisible-secondary--color--selected-active)}.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}.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.disabled{pointer-events:none}:host .btn{width:100%;height:100%}:host button:not(:disabled){cursor:pointer}";
4
+ const buttonCss = ".btn{display:inline-flex;align-items:center;justify-content:center;height:2rem;font-size:0.875rem;font-weight:700;transition:150ms;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-btn-primary--background--selected)}.btn-primary.hover,.btn-primary:hover{border-color:var(--theme-btn-primary--border-color--hover) !important;background-color:var(--theme-btn-primary--background--hover) !important;color:var(--theme-btn-primary--color--hover) !important}.btn-primary.selected.hover,.btn-primary.selected:hover{background-color:var(--theme-btn-primary--background--selected-hover);color:var(--theme-btn-primary--color--selected-hover)}.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) !important;background-color:var(--theme-btn-primary--background--active) !important;color:var(--theme-btn-primary--color--active) !important}.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-btn-primary--background--selected-active);color:var(--theme-btn-primary--color--selected-active)}.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-btn-outline-primary--background--selected)}.btn-outline-primary.hover,.btn-outline-primary:hover{border-color:var(--theme-btn-outline-primary--border-color--hover) !important;background-color:var(--theme-btn-outline-primary--background--hover) !important;color:var(--theme-btn-outline-primary--color--hover) !important}.btn-outline-primary.selected.hover,.btn-outline-primary.selected:hover{background-color:var(--theme-btn-outline-primary--background--selected-hover);color:var(--theme-btn-outline-primary--color--selected-hover)}.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) !important;background-color:var(--theme-btn-outline-primary--background--active) !important;color:var(--theme-btn-outline-primary--color--active) !important}.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-btn-outline-primary--background--selected-active);color:var(--theme-btn-outline-primary--color--selected-active)}.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-btn-invisible-primary--background--selected)}.btn-invisible-primary.hover,.btn-invisible-primary:hover{background-color:var(--theme-btn-invisible-primary--background--hover) !important;color:var(--theme-btn-invisible-primary--color--hover) !important}.btn-invisible-primary.selected.hover,.btn-invisible-primary.selected:hover{background-color:var(--theme-btn-invisible-primary--background--selected-hover);color:var(--theme-btn-invisible-primary--color--selected-hover)}.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) !important;color:var(--theme-btn-invisible-primary--color--active) !important}.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-btn-invisible-primary--background--selected-active);color:var(--theme-btn-invisible-primary--color--selected-active)}.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-btn-secondary--background--selected)}.btn-secondary.hover,.btn-secondary:hover{border-color:var(--theme-btn-secondary--border-color--hover) !important;background-color:var(--theme-btn-secondary--background--hover) !important;color:var(--theme-btn-secondary--color--hover) !important}.btn-secondary.selected.hover,.btn-secondary.selected:hover{background-color:var(--theme-btn-secondary--background--selected-hover);color:var(--theme-btn-secondary--color--selected-hover)}.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) !important;background-color:var(--theme-btn-secondary--background--active) !important;color:var(--theme-btn-secondary--color--active) !important}.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-btn-secondary--background--selected-active);color:var(--theme-btn-secondary--color--selected-active)}.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-btn-outline-secondary--background--selected)}.btn-outline-secondary.hover,.btn-outline-secondary:hover{border-color:var(--theme-btn-outline-secondary--border-color--hover) !important;background-color:var(--theme-btn-outline-secondary--background--hover) !important;color:var(--theme-btn-outline-secondary--color--hover) !important}.btn-outline-secondary.selected.hover,.btn-outline-secondary.selected:hover{background-color:var(--theme-btn-outline-secondary--background--selected-hover);color:var(--theme-btn-outline-secondary--color--selected-hover)}.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) !important;background-color:var(--theme-btn-outline-secondary--background--active) !important;color:var(--theme-btn-outline-secondary--color--active) !important}.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-btn-outline-secondary--background--selected-active);color:var(--theme-btn-outline-secondary--color--selected-active)}.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-btn-invisible-secondary--background--selected)}.btn-invisible-secondary.hover,.btn-invisible-secondary:hover{background-color:var(--theme-btn-invisible-secondary--background--hover) !important;color:var(--theme-btn-invisible-secondary--color--hover) !important}.btn-invisible-secondary.selected.hover,.btn-invisible-secondary.selected:hover{background-color:var(--theme-btn-invisible-secondary--background--selected-hover);color:var(--theme-btn-invisible-secondary--color--selected-hover)}.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) !important;color:var(--theme-btn-invisible-secondary--color--active) !important}.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-btn-invisible-secondary--background--selected-active);color:var(--theme-btn-invisible-secondary--color--selected-active)}.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 .btn{width:100%;height:100%}:host button:not(:disabled){cursor:pointer}:host ix-spinner{margin-right:0.25rem}:host(.disabled){pointer-events:none}";
5
5
 
6
6
  const Button = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
- this.variant = 'Primary';
9
+ this.variant = 'primary';
10
10
  this.outline = false;
11
11
  this.invisible = false;
12
12
  this.ghost = false;
13
13
  this.selected = false;
14
14
  this.disabled = false;
15
15
  this.type = 'button';
16
+ this.loading = false;
17
+ this.icon = undefined;
18
+ }
19
+ componentDidLoad() {
20
+ if (this.type === 'submit') {
21
+ const submitButton = document.createElement('button');
22
+ submitButton.style.display = 'none';
23
+ submitButton.type = 'submit';
24
+ submitButton.tabIndex = -1;
25
+ this.hostElement.appendChild(submitButton);
26
+ this.submitButtonElement = submitButton;
27
+ }
28
+ }
29
+ dispatchFormEvents() {
30
+ if (this.type === 'submit' && this.submitButtonElement) {
31
+ this.submitButtonElement.click();
32
+ }
16
33
  }
17
34
  render() {
18
35
  return (h(Host, { class: {
19
36
  disabled: this.disabled,
20
- } }, h("button", { type: this.type, class: getButtonClasses(this.variant, this.outline, this.ghost || this.invisible, false, false, this.selected, this.disabled) }, h("slot", null))));
37
+ } }, h("button", { onClick: () => this.dispatchFormEvents(), type: this.type, class: getButtonClasses(this.variant, this.outline, this.ghost || this.invisible, false, false, this.selected, this.disabled || this.loading) }, this.loading ? (h("ix-spinner", { size: "small", hideTrack: true })) : null, this.icon && !this.loading ? (h("ix-icon", { name: this.icon })) : null, h("slot", null))));
21
38
  }
39
+ get hostElement() { return getElement(this); }
22
40
  };
23
41
  Button.style = buttonCss;
24
42
 
@@ -1 +1 @@
1
- {"file":"ix-button.entry.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,gwZAAgwZ;;MCmBrwZ,MAAM;;;mBAIgB,SAAS;mBAKxB,KAAK;qBAOH,KAAK;iBAKT,KAAK;oBAKF,KAAK;oBAKY,KAAK;gBAKL,QAAQ;;EAE5C,MAAM;IACJ,QACE,EAAC,IAAI,IACH,KAAK,EAAE;QACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;OACxB,IAED,cACE,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,gBAAgB,CACrB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,SAAS,EAC5B,KAAK,EACL,KAAK,EACL,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,QAAQ,CACd,IAED,eAAa,CACN,CACJ,EACP;GACH;;;;;;","names":[],"sources":["./src/components/button/button.scss?tag=ix-button&encapsulation=shadow","./src/components/button/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 './components/buttons';\n\n:host {\n display: inline-block;\n width: auto;\n height: 2rem;\n vertical-align: middle;\n\n &.disabled {\n pointer-events: none;\n }\n\n .btn {\n width: 100%;\n height: 100%;\n }\n\n button:not(:disabled) {\n cursor: pointer;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host, Prop } from '@stencil/core';\nimport { getButtonClasses } from './base-button';\n\nexport type ButtonVariant = 'Primary' | 'Secondary';\n\n@Component({\n tag: 'ix-button',\n shadow: true,\n styleUrl: './button.scss',\n})\nexport class Button {\n /**\n * Button variant\n */\n @Prop() variant: ButtonVariant = 'Primary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Invisible button\n *\n * @deprecated use ghost property\n */\n @Prop() invisible = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = false;\n\n /**\n * Show button as selected. Should be used with outline or ghost\n */\n @Prop() selected = false;\n\n /**\n * Disable the button\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Type of the button\n */\n @Prop() type: 'button' | 'submit' = 'button';\n\n render() {\n return (\n <Host\n class={{\n disabled: this.disabled,\n }}\n >\n <button\n type={this.type}\n class={getButtonClasses(\n this.variant,\n this.outline,\n this.ghost || this.invisible,\n false,\n false,\n this.selected,\n this.disabled\n )}\n >\n <slot></slot>\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-button.entry.js","mappings":";;;AAAA,MAAM,SAAS,GAAG,6kbAA6kb;;MCmBllb,MAAM;;;mBAIgB,SAAS;mBAKxB,KAAK;qBAOH,KAAK;iBAKT,KAAK;oBAKF,KAAK;oBAKY,KAAK;gBAKL,QAAQ;mBAOjB,KAAK;;;EAchC,gBAAgB;IACd,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;MAC1B,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;MACtD,YAAY,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;MACpC,YAAY,CAAC,IAAI,GAAG,QAAQ,CAAC;MAC7B,YAAY,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;MAC3B,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;MAE3C,IAAI,CAAC,mBAAmB,GAAG,YAAY,CAAC;KACzC;GACF;EAED,kBAAkB;IAChB,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,mBAAmB,EAAE;MACtD,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,CAAC;KAClC;GACF;EAED,MAAM;IACJ,QACE,EAAC,IAAI,IACH,KAAK,EAAE;QACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;OACxB,IAED,cACE,OAAO,EAAE,MAAM,IAAI,CAAC,kBAAkB,EAAE,EACxC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,gBAAgB,CACrB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,SAAS,EAC5B,KAAK,EACL,KAAK,EACL,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,CAC9B,IAEA,IAAI,CAAC,OAAO,IACX,kBAAY,IAAI,EAAC,OAAO,EAAC,SAAS,SAAc,IAC9C,IAAI,EACP,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,IACzB,eAAS,IAAI,EAAE,IAAI,CAAC,IAAI,GAAY,IAClC,IAAI,EACR,eAAa,CACN,CACJ,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/button/button.scss?tag=ix-button&encapsulation=shadow","./src/components/button/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 './components/buttons';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-block;\n width: auto;\n height: 2rem;\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 ix-spinner {\n margin-right: 0.25rem;\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 { Component, Element, h, Host, Prop } from '@stencil/core';\nimport { getButtonClasses } from './base-button';\n\nexport type ButtonVariant = 'primary' | 'secondary';\n\n@Component({\n tag: 'ix-button',\n shadow: true,\n styleUrl: './button.scss',\n})\nexport class Button {\n /**\n * Button variant\n */\n @Prop() variant: ButtonVariant = 'primary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Invisible button\n *\n * @deprecated use ghost property\n */\n @Prop() invisible = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = false;\n\n /**\n * Show button as selected. Should be used with outline or ghost\n */\n @Prop() selected = false;\n\n /**\n * Disable the button\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Type of the button\n */\n @Prop() type: 'button' | 'submit' = 'button';\n\n /**\n * Loading button\n *\n * @since 2.0.0\n */\n @Prop() loading: boolean = false;\n\n /**\n * Icon name\n */\n @Prop() icon: string;\n\n @Element() hostElement: HTMLIxButtonElement;\n\n /**\n * Temp. workaround until stencil issue is fixed (https://github.com/ionic-team/stencil/issues/2284)\n */\n submitButtonElement: HTMLButtonElement;\n\n componentDidLoad() {\n if (this.type === 'submit') {\n const submitButton = document.createElement('button');\n submitButton.style.display = 'none';\n submitButton.type = 'submit';\n submitButton.tabIndex = -1;\n this.hostElement.appendChild(submitButton);\n\n this.submitButtonElement = submitButton;\n }\n }\n\n dispatchFormEvents() {\n if (this.type === 'submit' && this.submitButtonElement) {\n this.submitButtonElement.click();\n }\n }\n\n render() {\n return (\n <Host\n class={{\n disabled: this.disabled,\n }}\n >\n <button\n onClick={() => this.dispatchFormEvents()}\n type={this.type}\n class={getButtonClasses(\n this.variant,\n this.outline,\n this.ghost || this.invisible,\n false,\n false,\n this.selected,\n this.disabled || this.loading\n )}\n >\n {this.loading ? (\n <ix-spinner size=\"small\" hideTrack></ix-spinner>\n ) : null}\n {this.icon && !this.loading ? (\n <ix-icon name={this.icon}></ix-icon>\n ) : null}\n <slot></slot>\n </button>\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-8ddfb6d8.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7334ee80.js';
2
2
 
3
3
  const cardAccordionCss = ":host{display:flex;position:relative;flex-direction:column;width:100%;height:2.5rem;max-height:2.5rem;transition:var(--theme-default-time) ease-in-out}:host *,:host *::after,:host *::before{box-sizing:border-box}:host .expand-action{all:unset;display:flex;position:relative;-webkit-appearance:button;-moz-appearance:button;appearance:button;height:2.5rem;width:100%;background-color:var(--theme-color-component-1);align-items:center;justify-content:flex-start}:host .expand-action:not(.disabled):not(:disabled).hover,:host .expand-action:not(.disabled):not(:disabled):hover{background-color:var(--theme-ghost--background--hover)}:host .expand-action:not(.disabled):not(:disabled).active,:host .expand-action:not(.disabled):not(:disabled):active{background-color:var(--theme-ghost--background--active)}:host .expand-action:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .expand-action::before{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--ix-card-background);z-index:-1}:host .expand-action:not(.show),:host .expand-action:not(.show)::before{border-bottom-left-radius:var(--theme-default-border-radius);border-bottom-right-radius:var(--theme-default-border-radius)}:host .expand-icon{margin-left:0.5rem;transition:var(--theme-default-time) transform ease-in-out}:host .expand-icon.show{transform:rotate(90deg)}:host .expand-content{display:flex;flex-direction:column;opacity:0;position:absolute;top:2.5rem;transition:var(--theme-default-time) ease-in-out;width:100%;height:0;max-height:20rem;background-color:var(--theme-color-component-1)}:host .expand-content.show{height:15rem;opacity:1}:host .expand-content.show .expand-content-body{display:none;overflow:hidden}:host .expand-content.show .expand-content-body{display:block;overflow:auto}:host .expand-content-footer{display:block;position:relative;width:100%;height:1rem;margin-top:auto;margin-bottom:0px;background-color:var(--theme-color-component-1);border-bottom-left-radius:var(--theme-default-border-radius);border-bottom-right-radius:var(--theme-default-border-radius)}:host(.show){height:calc(15rem + 2.5rem);max-height:calc(15rem + 2.5rem)}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8ddfb6d8.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7334ee80.js';
2
2
  import { c as createMutationObserver } from './mutation-observer-7d01bbea.js';
3
3
 
4
4
  const cardListCss = ":host{display:flex;position:relative;flex-direction:column;align-items:flex-start;margin:0.5rem}:host *,:host *::after,:host *::before{box-sizing:border-box}:host .CardList_Title{display:flex;position:relative;height:1.5rem;align-items:center;width:100%;margin-bottom:0.5rem}:host .CardList__Title__Button{margin-right:1rem;transition:var(--theme-default-time) transform ease-in-out}:host .CardList__Title__Button__Collapsed{transform:rotate(-90deg)}:host .CardList__Title__Show__All{align-self:center;margin-left:auto;margin-right:0px}:host .CardList__Content{display:flex;position:relative;height:calc(100% - 1.5rem);width:100%;gap:1.5rem;transition:var(--theme-default-time) ease-in-out;overflow:auto}:host .CardList__Content__Collapsed{min-height:0px;max-height:0px;overflow:hidden;opacity:0}:host .CardList__Style__Flexbox__Scroll{flex-wrap:wrap}:host .CardList__Style__Infinite__Scroll{flex-wrap:nowrap;-ms-overflow-style:none;scrollbar-width:none}:host .CardList__Style__Infinite__Scroll::-webkit-scrollbar{display:none}:host .CardList__Overflow{display:block;position:relative;height:100%;width:100%;pointer-events:all;-webkit-mask-image:var(--ix-card-list-overflow, none);mask-image:var(--ix-card-list-overflow, none)}:host .Show__All__Card{display:flex;position:relative;align-self:flex-start;justify-self:center;max-width:11.25rem;min-width:11.25rem;width:11.25rem;min-height:11.25rem;max-height:11.25rem;height:11.25rem;--ix-card-border-color:var(--theme-color-primary);color:var(--theme-color-primary)}:host .CardList__Style__Infinite__Scroll .Show__All__Card{margin-top:2.375rem}:host .CardList__Style__Flexbox__Scroll .Show__All__Card{margin-bottom:2.375rem}:host .Show__All__Card:hover{background-color:var(--theme-color-ghost--hover)}:host .Show__All__Card:active{background-color:var(--theme-color-ghost--active)}:host .Show__All__Card__Content{display:flex;justify-content:center;align-items:center}:host .Show__All__Card__Icon{display:flex;position:absolute;height:4rem;width:4rem;justify-content:center;align-items:center;transform:scale(2)}:host .Show__All__Card__Text{margin-bottom:0px;margin-top:auto}";
@@ -0,0 +1,31 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-7334ee80.js';
2
+
3
+ const cardCss = ":host{display:flex;position:relative;flex-direction:column;align-items:flex-start;align-self:flex-start;overflow:hidden;width:20rem;border:1px solid var(--ix-card-border-color, var(--theme-color-soft-bdr));border-radius:var(--theme-default-border-radius)}:host *,:host *::after,:host *::before{box-sizing:border-box}:host .card-content{display:block;position:relative;flex-shrink:0;flex-grow:1;width:100%;padding:1rem 1rem;height:calc(100% - 2rem);background-color:var(--ix-card-background, transparent);border-top-left-radius:var(--theme-default-border-radius);border-top-right-radius:var(--theme-default-border-radius)}:host .card-footer{display:flex;position:relative;width:100%}:host(.card-insight){--ix-card-background:transparent;--ix-card-border-color:var(--theme-color-soft-bdr)}:host(.card-notification){--ix-card-background:var(--theme-color-component-1)}:host(.card-alarm){--ix-card-background:var(--theme-color-alarm);color:var(--theme-color-alarm--contrast)}:host(.card-critical){--ix-card-background:var(--theme-color-critical);color:var(--theme-color-critical--contrast)}:host(.card-warning){--ix-card-background:var(--theme-color-warning);color:var(--theme-color-warning--contrast)}:host(.card-success){--ix-card-background:var(--theme-color-success);color:var(--theme-color-success--contrast)}:host(.card-info){--ix-card-background:var(--theme-color-info);color:var(--theme-color-info--contrast)}:host(.card-neutral){--ix-card-background:var(--theme-color-neutral);color:var(--theme-color-neutral--contrast)}:host(:not(.card-insight)){--ix-card-border-color:transparent}";
4
+
5
+ const Card = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.variant = 'insight';
9
+ }
10
+ render() {
11
+ return (h(Host, { class: `card-${this.variant}` }, h("div", { class: "card-content" }, h("slot", null)), h("div", { class: "card-footer" }, h("slot", { name: "card-accordion" }))));
12
+ }
13
+ get hostElement() { return getElement(this); }
14
+ };
15
+ Card.style = cardCss;
16
+
17
+ const cardContentCss = ":host{display:flex;position:relative;flex-direction:column;align-items:flex-start;gap:0.5rem;height:100%}:host *,:host *::after,:host *::before{box-sizing:border-box}";
18
+
19
+ const CardContent = class {
20
+ constructor(hostRef) {
21
+ registerInstance(this, hostRef);
22
+ }
23
+ render() {
24
+ return (h(Host, null, h("slot", null)));
25
+ }
26
+ };
27
+ CardContent.style = cardContentCss;
28
+
29
+ export { Card as ix_card, CardContent as ix_card_content };
30
+
31
+ //# sourceMappingURL=ix-card_2.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"ix-card.ix-card-content.entry.js","mappings":";;AAAA,MAAM,OAAO,GAAG,qjDAAqjD;;MCoBxjD,IAAI;;;mBAMgB,SAAS;;EAExC,MAAM;IACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,QAAQ,IAAI,CAAC,OAAO,EAAE,IACjC,WAAK,KAAK,EAAC,cAAc,IACvB,eAAa,CACT,EACN,WAAK,KAAK,EAAC,aAAa,IACtB,YAAM,IAAI,EAAC,gBAAgB,GAAQ,CAC/B,CACD,EACP;GACH;;;;;ACvCH,MAAM,cAAc,GAAG,wKAAwK;;MCUlL,WAAW;;;;EACtB,MAAM;IACJ,QACE,EAAC,IAAI,QACH,eAAa,CACR,EACP;GACH;;;;;;","names":[],"sources":["./src/components/card/card.scss?tag=ix-card&encapsulation=shadow","./src/components/card/card.tsx","./src/components/card-content/card-content.scss?tag=ix-card-content&encapsulation=shadow","./src/components/card-content/card-content.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@import 'mixins/shadow-dom/component';\n\n$paddingContentLeftRight: 1rem;\n\n:host {\n @include ix-component;\n display: flex;\n position: relative;\n flex-direction: column;\n align-items: flex-start;\n align-self: flex-start;\n overflow: hidden;\n\n width: 20rem;\n\n border: 1px solid var(--ix-card-border-color, var(--theme-color-soft-bdr));\n border-radius: var(--theme-default-border-radius);\n\n .card-content {\n display: block;\n position: relative;\n flex-shrink: 0;\n flex-grow: 1;\n width: 100%;\n padding: 1rem $paddingContentLeftRight;\n // min-height: calc(13.5rem - 2.5rem);\n height: calc(100% - 2rem);\n background-color: var(--ix-card-background, transparent);\n border-top-left-radius: var(--theme-default-border-radius);\n border-top-right-radius: var(--theme-default-border-radius);\n }\n\n .card-footer {\n display: flex;\n position: relative;\n width: 100%;\n }\n}\n\n:host(.card-insight) {\n --ix-card-background: transparent;\n --ix-card-border-color: var(--theme-color-soft-bdr);\n}\n\n:host(.card-notification) {\n --ix-card-background: var(--theme-color-component-1);\n}\n\n:host(.card-alarm) {\n --ix-card-background: var(--theme-color-alarm);\n color: var(--theme-color-alarm--contrast);\n}\n\n:host(.card-critical) {\n --ix-card-background: var(--theme-color-critical);\n color: var(--theme-color-critical--contrast);\n}\n\n:host(.card-warning) {\n --ix-card-background: var(--theme-color-warning);\n color: var(--theme-color-warning--contrast);\n}\n\n:host(.card-success) {\n --ix-card-background: var(--theme-color-success);\n color: var(--theme-color-success--contrast);\n}\n\n:host(.card-info) {\n --ix-card-background: var(--theme-color-info);\n color: var(--theme-color-info--contrast);\n}\n\n:host(.card-neutral) {\n --ix-card-background: var(--theme-color-neutral);\n color: var(--theme-color-neutral--contrast);\n}\n\n:host(:not(.card-insight)) {\n --ix-card-border-color: transparent;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\nexport type CardVariant =\n | 'insight'\n | 'notification'\n | 'alarm'\n | 'critical'\n | 'warning'\n | 'info'\n | 'neutral'\n | 'success';\n\n/**\n * @since 1.6.0\n */\n@Component({\n tag: 'ix-card',\n styleUrl: 'card.scss',\n shadow: true,\n})\nexport class Card {\n @Element() hostElement: HTMLIxCardElement;\n\n /**\n * Card variant\n */\n @Prop() variant: CardVariant = 'insight';\n\n render() {\n return (\n <Host class={`card-${this.variant}`}>\n <div class=\"card-content\">\n <slot></slot>\n </div>\n <div class=\"card-footer\">\n <slot name=\"card-accordion\"></slot>\n </div>\n </Host>\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@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: flex;\n position: relative;\n flex-direction: column;\n align-items: flex-start;\n gap: 0.5rem;\n // min-height: 8rem;\n height: 100%;\n}\n","import { Component, h, Host } from '@stencil/core';\n\n/**\n * @since 1.6.0\n */\n@Component({\n tag: 'ix-card-content',\n styleUrl: 'card-content.scss',\n shadow: true,\n})\nexport class CardContent {\n render() {\n return (\n <Host>\n <slot></slot>\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-8ddfb6d8.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7334ee80.js';
2
2
  import { L as LogicalFilterOperator, I as InputState } from './logical-filter-operator-92531263.js';
3
3
 
4
4
  const categoryFilterCss = ".sc-ix-category-filter-h{display:block;position:relative}.sc-ix-category-filter-h .focus.sc-ix-category-filter{border-color:var(--theme-color-primary);box-shadow:0 0 0.25rem 0 var(--theme-color-primary) !important}.sc-ix-category-filter-h .reset-button.sc-ix-category-filter{position:absolute;top:0.25rem;right:0.25rem}.sc-ix-category-filter-h .reset-button.hide-reset-button.sc-ix-category-filter{display:none}.sc-ix-category-filter-h .input-container.sc-ix-category-filter{display:flex;height:100%;max-height:3.75rem;padding:1px 1.5rem 1px 2rem}.sc-ix-category-filter-h .input-container.no-icon.sc-ix-category-filter{padding-left:0.25rem}.sc-ix-category-filter-h .token-container.sc-ix-category-filter{flex-grow:1;overflow:hidden}.sc-ix-category-filter-h .text-input.sc-ix-category-filter{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-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);background:transparent;flex-grow:1;height:1.75rem}.sc-ix-category-filter-h .text-input.sc-ix-category-filter,.sc-ix-category-filter-h .text-input.sc-ix-category-filter:hover,.sc-ix-category-filter-h .text-input.sc-ix-category-filter:focus-visible{border:none;outline:none}.sc-ix-category-filter-h .text-input.hide-placeholder.sc-ix-category-filter::-moz-placeholder{opacity:0}.sc-ix-category-filter-h .text-input.hide-placeholder.sc-ix-category-filter::placeholder{opacity:0}.sc-ix-category-filter-h .list-unstyled.sc-ix-category-filter{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:0;overflow-y:auto}.sc-ix-category-filter-h ix-icon.sc-ix-category-filter{position:absolute;top:0.5rem;left:0.5rem}.sc-ix-category-filter-h ix-filter-chip.sc-ix-category-filter{margin-right:0.5rem}.sc-ix-category-filter-h .category-preview.sc-ix-category-filter{display:flex;align-items:center;height:1.5rem;background-color:var(--theme-bg-3);border-top-left-radius:1rem;border-bottom-left-radius:1rem;padding:0.5rem;margin:2px 0}.sc-ix-category-filter-h ul.sc-ix-category-filter{height:100%}.sc-ix-category-filter-h ul.sc-ix-category-filter>li.sc-ix-category-filter,.sc-ix-category-filter-h input.sc-ix-category-filter{padding-top:2px;padding-bottom:2px}.sc-ix-category-filter-h ix-dropdown.sc-ix-category-filter{min-width:10rem !important}.sc-ix-category-filter-h ix-dropdown.sc-ix-category-filter .dropdown-item-container.sc-ix-category-filter{display:flex;flex-direction:column}.sc-ix-category-filter-h ix-dropdown.sc-ix-category-filter .dropdown-item-container.sc-ix-category-filter .dropdown-item.sc-ix-category-filter{-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.143em;color:var(--theme-color-std-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:2.5rem;margin:0.25rem 0.5rem;padding-inline:0.5rem;border-radius:100rem;width:auto}.sc-ix-category-filter-h ix-dropdown.sc-ix-category-filter .dropdown-item-container.sc-ix-category-filter .category-item.sc-ix-category-filter{border-end-end-radius:0;border-start-end-radius:0}.sc-ix-category-filter-h ix-dropdown.sc-ix-category-filter .dropdown-item-container.sc-ix-category-filter .category-item-value.sc-ix-category-filter{border-start-start-radius:0;border-end-start-radius:0}.sc-ix-category-filter-h ix-dropdown.sc-ix-category-filter .btn-toggle-operator.sc-ix-category-filter{margin-inline:0.5rem}";
@@ -337,7 +337,7 @@ const CategoryFilter = class {
337
337
  return (h("ix-icon-button", { onClick: () => this.resetFilter(), class: {
338
338
  'reset-button': true,
339
339
  'hide-reset-button': !this.filterTokens.length && !this.category,
340
- }, variant: "Primary", ghost: true, oval: true, icon: "clear", size: "16", tabindex: "1" }));
340
+ }, variant: "primary", ghost: true, oval: true, icon: "clear", size: "16", tabindex: "1" }));
341
341
  }
342
342
  render() {
343
343
  var _a;
@@ -1 +1 @@
1
- {"file":"ix-category-filter.entry.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,w8GAAw8G;;MC6Br9G,cAAc;;;;;IACR,2BAAsB,GAAG,wBAAwB,CAAC;;;mCAShC,qBAAqB,CAAC,KAAK;;;wBAOzD,EAAE;;;;;mCAuCH,EAAE;;gBAWS,QAAQ;;4BAcI,IAAI;oCAKI,IAAI;2BAKb,YAAY;yBAKd,gBAAgB;;EAaxC,gBAAgB,CAAC,QAAQ;IACvB,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;GAC/B;EAED,gBAAgB;;IACd,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,EAAE;MACnC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACxC;SAAM,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE;MACzC,UAAU,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;KACzD;IAED,MAAA,IAAI,CAAC,WAAW,0CAAE,gBAAgB,CAChC,SAAS,EACT,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,CACzC,CAAC;IAEF,MAAA,IAAI,CAAC,WAAW,0CAA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D,IAAI,CAAC,UAAU,KAAK,SAAS,IAC5B,EAAE,KAEF,UACE,KAAK,EAAE;QACL,kBAAkB,EAAE,IAAI;QACxB,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ;OACzB,IAEA,MAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,0CAAE,KAAK,CACnC,CACN,EACD,aACE,KAAK,EAAE;QACL,YAAY,EAAE,IAAI;QAClB,kBAAkB,EAAE,IAAI,CAAC,QAAQ,KAAK,SAAS;OAChD,EACD,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC,EAClC,IAAI,EAAC,MAAM,EACX,WAAW,EAAE,IAAI,CAAC,WAAW,GACtB,CACN,CACD,EACL,IAAI,CAAC,cAAc,EAAE,CAClB,CACD,EAEP,mBACE,aAAa,EAAC,SAAS,EACvB,OAAO,EAAE,IAAI,CAAC,SAAS,EACvB,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,EAChC,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,EAChC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAE3C,IAAI,CAAC,qBAAqB,EAAE,CACjB,CACT,EACP;GACH;;;;;;;;;;","names":[],"sources":["./src/components/category-filter/category-filter.scss?tag=ix-category-filter&encapsulation=scoped","./src/components/category-filter/category-filter.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/fonts';\n@import 'mixins/hover';\n@import 'mixins/shadows';\n@import 'mixins/text-truncation';\n\n:host {\n display: block;\n position: relative;\n\n .focus {\n border-color: var(--theme-color-primary);\n box-shadow: 0 0 $tiny-space 0 var(--theme-color-primary) !important;\n }\n\n .reset-button {\n position: absolute;\n top: $tiny-space;\n right: $tiny-space;\n }\n\n .reset-button.hide-reset-button {\n display: none;\n }\n\n .input-container {\n display: flex;\n height: 100%;\n max-height: 3.75rem;\n padding: 1px $large-space 1px $x-large-space;\n\n &.no-icon {\n padding-left: $tiny-space;\n }\n }\n\n .token-container {\n flex-grow: 1;\n overflow: hidden;\n }\n\n .text-input {\n @include ellipsis;\n @include text-default;\n background: transparent;\n flex-grow: 1;\n height: 1.75rem;\n\n &,\n &:hover,\n &:focus-visible {\n border: none;\n outline: none;\n }\n\n &.hide-placeholder::placeholder {\n opacity: 0;\n }\n }\n\n .list-unstyled {\n display: flex;\n flex-wrap: wrap;\n list-style: none;\n padding: 0;\n margin: 0;\n overflow-y: auto;\n }\n\n ix-icon {\n position: absolute;\n top: $small-space;\n left: $small-space;\n }\n\n ix-filter-chip {\n margin-right: $small-space;\n }\n\n .category-preview {\n display: flex;\n align-items: center;\n height: $large-space;\n background-color: var(--theme-bg-3);\n border-top-left-radius: $default-space;\n border-bottom-left-radius: $default-space;\n padding: $small-space;\n margin: 2px 0;\n }\n\n ul {\n height: 100%;\n }\n\n ul > li,\n input {\n padding-top: 2px;\n padding-bottom: 2px;\n }\n\n ix-dropdown {\n min-width: 10rem !important;\n\n .dropdown-item-container {\n display: flex;\n flex-direction: column;\n\n .dropdown-item {\n @include text-default-single;\n @include ellipsis;\n height: $large-control-height;\n margin: $tiny-space $small-space;\n padding-inline: $small-space;\n border-radius: 100rem;\n width: auto;\n }\n\n .category-item {\n border-end-end-radius: 0;\n border-start-end-radius: 0;\n }\n\n .category-item-value {\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n }\n }\n\n .btn-toggle-operator {\n margin-inline: $small-space;\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 Watch,\n} from '@stencil/core';\nimport { FilterState } from './filter-state';\nimport { InputState } from './input-state';\nimport { LogicalFilterOperator } from './logical-filter-operator';\n\n@Component({\n tag: 'ix-category-filter',\n styleUrl: 'category-filter.scss',\n scoped: true,\n})\nexport class CategoryFilter {\n private readonly ID_CUSTOM_FILTER_VALUE = 'CW_CUSTOM_FILTER_VALUE';\n\n @State() private textInput?: HTMLInputElement;\n private formElement?: HTMLFormElement;\n private isScrollStateDirty: boolean;\n\n @Element() hostElement: HTMLIxCategoryFilterElement;\n\n @State() hasFocus: boolean;\n @State() categoryLogicalOperator = LogicalFilterOperator.EQUAL;\n @State() inputValue: string;\n @State() category: string;\n @State() filterTokens: Array<{\n id: string;\n value: string;\n operator: LogicalFilterOperator;\n }> = [];\n\n /**\n * When set this will initially populate the component with the provided search criteria.\n * This will trigger all input events accordingly.\n * @deprecated Will be removed with 2.0.0. Use the member filterState instead.\n */\n @Prop() initialState: FilterState;\n\n /**\n * A set of search criteria to populate the component with.\n */\n @Prop() filterState: FilterState;\n\n /**\n * Placeholder text to be displayed in an empty input field.\n */\n @Prop() placeholder: string;\n\n /**\n * Configuration object hash used to populate the dropwdown menu for typeahead and quick selection functionality.\n * Each ID maps to an object with a label and an array of options to select from.\n */\n @Prop() categories: {\n [id: string]: {\n label: string;\n options: string[];\n };\n };\n\n /**\n * In certain use cases some categories may not be available for selection anymore.\n * To allow proper display of set filters with these categories this ID to label mapping can be populated.\n *\n * Configuration object hash used to supply labels to the filter chips in the input field.\n * Each ID maps to a string representing the label to display.\n */\n @Prop() nonSelectableCategories?: {\n [id: string]: string;\n } = {};\n\n /**\n * A list of strings that will be supplied as typeahead suggestions not tied to any categories.\n */\n @Prop() suggestions: string[];\n\n /**\n * The icon next to the actual text input\n * Defaults to 'search'\n */\n @Prop() icon = 'search';\n\n /**\n * Allows to hide the icon inside the text input.\n * Defaults to false\n */\n @Prop() hideIcon: boolean;\n\n /**\n * If set to true allows that a single category can be set more than once.\n * An already set category will not appear in the category dropdown if set to false.\n *\n * Defaults to true\n */\n @Prop() repeatCategories = true;\n\n /**\n * @internal For debugging purposes only!\n */\n @Prop() tmpDisableScrollIntoView = true;\n\n /**\n * i18n\n */\n @Prop() labelCategories = 'Categories';\n\n /**\n * i18n\n */\n @Prop() i18nPlainText = 'Filter by text';\n\n /**\n * Event dispatched whenever the text input changes.\n */\n @Event() inputChanged: EventEmitter<InputState>;\n\n /**\n * Event dispatched whenever the filter state changes.\n */\n @Event() filterChanged: EventEmitter<FilterState>;\n\n @Watch('filterState')\n watchFilterState(newValue) {\n this.setFilterState(newValue);\n }\n\n componentDidLoad() {\n if (this.initialState !== undefined) {\n this.setFilterState(this.initialState);\n } else if (this.filterState !== undefined) {\n setTimeout(() => this.setFilterState(this.filterState));\n }\n\n this.hostElement?.addEventListener(\n 'keydown',\n this.handleFormElementKeyDown.bind(this)\n );\n\n this.formElement?.addEventListener('submit', (e) => e.preventDefault());\n\n if (this.textInput == null) {\n console.warn(\n 'ix-category-filter - unable to add event listeners to native input element'\n );\n return;\n }\n\n this.textInput.addEventListener('focusin', () => {\n this.hasFocus = true;\n });\n this.textInput.addEventListener('focusout', () => (this.hasFocus = false));\n this.textInput.addEventListener('input', () => {\n this.inputValue = this.textInput.value;\n const inputState = new InputState(this.inputValue, this.category);\n this.inputChanged.emit(inputState);\n });\n this.textInput.addEventListener(\n 'keydown',\n this.handleInputElementKeyDown.bind(this)\n );\n }\n\n private setFilterState(state: FilterState) {\n this.filterTokens = [];\n\n for (const token of state.tokens) {\n this.addToken(\n token,\n this.ID_CUSTOM_FILTER_VALUE,\n this.categoryLogicalOperator,\n false\n );\n }\n\n for (const category of state.categories) {\n this.addToken(category.value, category.id, category.operator, false);\n }\n\n this.emitFilterEvent();\n }\n\n private closeDropdown() {\n this.hostElement.querySelector('ix-dropdown').show = false;\n }\n\n private handleFormElementKeyDown(e: KeyboardEvent) {\n switch (e.code) {\n case 'Enter':\n case 'NumpadEnter':\n if (!document.activeElement.classList.contains('dropdown-item')) {\n return;\n }\n\n const token = document.activeElement.getAttribute('data-id');\n\n if (this.hasCategorySelection()) {\n if (this.category) {\n this.addToken(token, this.category);\n } else if (\n document.activeElement.classList.contains('category-item-id')\n ) {\n this.selectCategory(token);\n }\n } else {\n this.addToken(token);\n }\n\n e.preventDefault();\n break;\n\n case 'ArrowUp':\n this.focusPreviousItem();\n e.preventDefault();\n break;\n\n case 'ArrowDown':\n this.focusNextItem();\n e.preventDefault();\n break;\n\n case 'Escape':\n this.closeDropdown();\n break;\n }\n }\n\n private focusPreviousItem() {\n const sibling = document.activeElement.previousSibling;\n if (sibling instanceof HTMLElement) {\n sibling.focus();\n }\n }\n\n private focusNextItem() {\n const sibling = document.activeElement.nextSibling;\n if (sibling instanceof HTMLElement) {\n sibling.focus();\n }\n }\n\n private handleInputElementKeyDown(e: KeyboardEvent) {\n switch (e.code) {\n case 'ArrowDown':\n const selector = `.category-item-${this.category ? 'value' : 'id'}`;\n let item = this.hostElement.querySelector(selector);\n\n if (item instanceof HTMLElement) {\n item.focus();\n e.stopPropagation();\n } else if (this.suggestions?.length) {\n item = this.hostElement.querySelector('.category-item');\n if (item instanceof HTMLElement) {\n item.focus();\n e.stopPropagation();\n }\n }\n break;\n\n case 'Backspace':\n if (this.textInput.value !== '') {\n return;\n }\n\n if (this.category) {\n this.category = undefined;\n return;\n }\n\n const tokenCount = this.filterTokens.length;\n if (tokenCount > 0) {\n this.removeToken(tokenCount - 1);\n }\n break;\n\n case 'Enter':\n case 'NumpadEnter':\n this.addToken(this.inputValue, this.category);\n e.preventDefault();\n break;\n }\n }\n\n private emitFilterEvent() {\n const tokens = this.filterTokens\n .filter((item) => item.id === this.ID_CUSTOM_FILTER_VALUE)\n .map((item) => item.value);\n const categories = this.filterTokens.filter(\n (item) => item.id !== this.ID_CUSTOM_FILTER_VALUE\n );\n const filterState: FilterState = {\n tokens,\n categories,\n };\n\n this.filterChanged.emit(filterState);\n }\n\n private addToken(\n token: string,\n category: string = this.ID_CUSTOM_FILTER_VALUE,\n operator = this.categoryLogicalOperator,\n emitEvent = true\n ) {\n if (token === undefined || token === null) {\n return;\n }\n\n const newToken = token.trim();\n\n if (newToken === '') {\n return;\n }\n\n if (this.hasToken(newToken)) {\n return;\n }\n\n const pair = { id: category, value: newToken, operator };\n this.filterTokens = [...this.filterTokens, pair];\n this.textInput.value = '';\n this.inputValue = '';\n this.categoryLogicalOperator = LogicalFilterOperator.EQUAL;\n\n if (this.category) {\n this.category = undefined;\n }\n\n this.isScrollStateDirty = true;\n\n this.textInput.focus();\n\n if (emitEvent) {\n this.emitFilterEvent();\n }\n\n this.closeDropdown();\n }\n\n private removeToken(index: number) {\n this.filterTokens = this.filterTokens.filter((_, i) => i !== index);\n this.emitFilterEvent();\n }\n\n private getCategoryIds() {\n const ids = [];\n for (const id in this.categories) {\n if (Object.prototype.hasOwnProperty.call(this.categories, id)) {\n ids.push(id);\n }\n }\n\n return ids;\n }\n\n private selectCategory(category: string) {\n this.category = category;\n this.textInput.value = '';\n this.inputValue = '';\n this.textInput.focus();\n }\n\n private resetFilter() {\n this.closeDropdown();\n this.filterTokens = [];\n this.emitFilterEvent();\n }\n\n private filterMultiples(value: string) {\n if (this.repeatCategories) {\n return true;\n }\n\n const isCategoryAlreadySet = this.filterTokens.find(\n (token) => token.id === value\n );\n\n return !isCategoryAlreadySet;\n }\n\n private hasToken(token: string) {\n return this.filterTokens.some((filterToken) => {\n const hasSameValue = filterToken.value === token;\n\n if (!hasSameValue) {\n return false;\n }\n\n if (this.category) {\n return this.category === filterToken.id;\n }\n\n if (filterToken.id) {\n return filterToken.id === this.ID_CUSTOM_FILTER_VALUE;\n }\n\n return hasSameValue;\n });\n }\n\n private filterDuplicateTokens(value: string) {\n return !this.hasToken(value);\n }\n\n private filterByInput(value: string) {\n if (this.inputValue === undefined || this.inputValue === '') {\n return true;\n }\n\n return value.toLowerCase().indexOf(this.inputValue.toLowerCase()) !== -1;\n }\n\n private toggleCategoryOperator() {\n switch (this.categoryLogicalOperator) {\n case LogicalFilterOperator.EQUAL:\n this.categoryLogicalOperator = LogicalFilterOperator.NOT_EQUAL;\n break;\n\n case LogicalFilterOperator.NOT_EQUAL:\n this.categoryLogicalOperator = LogicalFilterOperator.EQUAL;\n break;\n }\n }\n\n private getFilterChipLabel(value: {\n id: string;\n value: string;\n operator: LogicalFilterOperator;\n }): string {\n if (value.id === this.ID_CUSTOM_FILTER_VALUE) {\n return value.value;\n }\n\n const operatorString =\n value.operator === LogicalFilterOperator.EQUAL ? '=' : '!=';\n const label =\n this.categories[value.id]?.label ??\n this.nonSelectableCategories[value.id] ??\n value.id;\n\n return `${label} ${operatorString} ${value.value}`;\n }\n\n private getFilteredSuggestions() {\n if (!this.suggestions?.length) {\n return [];\n }\n\n return this.suggestions\n ?.filter((value) => this.filterByInput(value))\n .filter((value) => this.filterDuplicateTokens(value));\n }\n\n private hasCategorySelection() {\n return this.categories !== undefined;\n }\n\n private displayDropdown() {\n if (this.hasCategorySelection()) {\n return true;\n }\n\n if (this.suggestions !== undefined) {\n return this.getFilteredSuggestions().length > 0;\n }\n\n return false;\n }\n\n private renderPlainSuggestions() {\n return (\n <div class=\"dropdown-item-container\">\n {this.getFilteredSuggestions().map((suggestion) => (\n <button\n class=\"dropdown-item\"\n data-id={suggestion}\n onClick={() => this.addToken(suggestion)}\n key={suggestion}\n title={suggestion}\n >\n {suggestion}\n </button>\n ))}\n </div>\n );\n }\n\n private renderCategoryValues() {\n return (\n <div class=\"dropdown-item-container\">\n <button\n class=\"btn btn-invisible-secondary btn-icon btn-toggle-operator\"\n onClick={() => this.toggleCategoryOperator()}\n tabindex=\"-1\"\n >\n {this.categoryLogicalOperator === LogicalFilterOperator.NOT_EQUAL\n ? '='\n : '!='}\n </button>\n <div class=\"dropdown-header\">\n {this.categories[this.category]?.label}\n </div>\n {this.categories[this.category]?.options\n .filter((value) => this.filterByInput(value))\n .filter((value) => this.filterDuplicateTokens(value))\n .map((id) => (\n <button\n class=\"dropdown-item category-item-value\"\n data-id={id}\n title={id}\n key={id}\n onClick={() => this.addToken(id, this.category)}\n >\n {`${\n this.categoryLogicalOperator === LogicalFilterOperator.EQUAL\n ? '='\n : '!='\n } ${id}`}\n </button>\n ))}\n </div>\n );\n }\n\n private renderDropdownContent() {\n if (this.hasCategorySelection()) {\n if (this.category) {\n return this.renderCategoryValues();\n } else {\n return this.renderCategorySelection();\n }\n } else return this.renderPlainSuggestions();\n }\n\n private renderCategorySelection() {\n return (\n <div class=\"dropdown-item-container\">\n {this.getCategoryIds()\n ?.filter((id) => this.filterByInput(this.categories[id].label))\n .filter((id) => this.filterMultiples(id))\n .map((id) => (\n <button\n class=\"dropdown-item category-item category-item-id\"\n data-id={id}\n title={this.categories[id].label}\n key={id}\n onClick={() => this.selectCategory(id)}\n tabindex=\"0\"\n >\n {this.categories[id]?.label}\n </button>\n ))}\n </div>\n );\n }\n\n private getDropdownHeader() {\n if (this.categories) {\n if (this.category) {\n return null;\n } else {\n return this.labelCategories;\n }\n }\n\n return this.i18nPlainText;\n }\n\n componentDidRender() {\n if (this.isScrollStateDirty) {\n if (!this.tmpDisableScrollIntoView) {\n this.textInput.scrollIntoView();\n }\n this.isScrollStateDirty = false;\n }\n }\n\n private getResetButton() {\n return (\n <ix-icon-button\n onClick={() => this.resetFilter()}\n class={{\n 'reset-button': true,\n 'hide-reset-button': !this.filterTokens.length && !this.category,\n }}\n variant=\"Primary\"\n ghost\n oval\n icon=\"clear\"\n size=\"16\"\n tabindex=\"1\"\n ></ix-icon-button>\n );\n }\n\n render() {\n return (\n <Host>\n <form ref={(el) => (this.formElement = el)}>\n <div\n class={{\n 'form-control': true,\n 'input-container': true,\n focus: this.hasFocus,\n 'no-icon': this.hideIcon,\n }}\n >\n <ix-icon\n class={{ 'd-none': this.hideIcon }}\n name={this.icon}\n size=\"16\"\n ></ix-icon>\n <div class=\"token-container\">\n <ul class=\"list-unstyled\">\n {this.filterTokens.map((value, index) => (\n <li\n key={value.toString()}\n class={{\n animate__animated: true,\n animate__fadein: true,\n }}\n >\n <ix-filter-chip\n onCloseClick={() => this.removeToken(index)}\n >\n {this.getFilterChipLabel(value)}\n </ix-filter-chip>\n </li>\n ))}\n {this.categories === undefined ? (\n ''\n ) : (\n <li\n class={{\n 'category-preview': true,\n 'd-none': !this.category,\n }}\n >\n {this.categories[this.category]?.label}\n </li>\n )}\n <input\n class={{\n 'text-input': true,\n 'hide-placeholder': this.category !== undefined,\n }}\n ref={(el) => (this.textInput = el)}\n type=\"text\"\n placeholder={this.placeholder}\n ></input>\n </ul>\n </div>\n {this.getResetButton()}\n </div>\n </form>\n\n <ix-dropdown\n closeBehavior=\"outside\"\n trigger={this.textInput}\n triggerEvent={['click', 'focus']}\n header={this.getDropdownHeader()}\n class={{ 'd-none': !this.displayDropdown() }}\n >\n {this.renderDropdownContent()}\n </ix-dropdown>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-category-filter.entry.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,w8GAAw8G;;MC6Br9G,cAAc;;;;;IACR,2BAAsB,GAAG,wBAAwB,CAAC;;;mCAShC,qBAAqB,CAAC,KAAK;;;wBAOzD,EAAE;;;;;mCAuCH,EAAE;;gBAWS,QAAQ;;4BAcI,IAAI;oCAKI,IAAI;2BAKb,YAAY;yBAKd,gBAAgB;;EAaxC,gBAAgB,CAAC,QAAQ;IACvB,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;GAC/B;EAED,gBAAgB;;IACd,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,EAAE;MACnC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACxC;SAAM,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE;MACzC,UAAU,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;KACzD;IAED,MAAA,IAAI,CAAC,WAAW,0CAAE,gBAAgB,CAChC,SAAS,EACT,IA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,WAAW,CAAC,KAAK,CAAC,IAE1C,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAChB,CACd,CACN,CAAC,EACD,IAAI,CAAC,UAAU,KAAK,SAAS,IAC5B,EAAE,KAEF,UACE,KAAK,EAAE;QACL,kBAAkB,EAAE,IAAI;QACxB,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ;OACzB,IAEA,MAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,0CAAE,KAAK,CACnC,CACN,EACD,aACE,KAAK,EAAE;QACL,YAAY,EAAE,IAAI;QAClB,kBAAkB,EAAE,IAAI,CAAC,QAAQ,KAAK,SAAS;OAChD,EACD,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC,EAClC,IAAI,EAAC,MAAM,EACX,WAAW,EAAE,IAAI,CAAC,WAAW,GACtB,CACN,CACD,EACL,IAAI,CAAC,cAAc,EAAE,CAClB,CACD,EAEP,mBACE,aAAa,EAAC,SAAS,EACvB,OAAO,EAAE,IAAI,CAAC,SAAS,EACvB,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,EAChC,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,EAChC,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAE3C,IAAI,CAAC,qBAAqB,EAAE,CACjB,CACT,EACP;GACH;;;;;;;;;;","names":[],"sources":["./src/components/category-filter/category-filter.scss?tag=ix-category-filter&encapsulation=scoped","./src/components/category-filter/category-filter.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/fonts';\n@import 'mixins/hover';\n@import 'mixins/shadows';\n@import 'mixins/text-truncation';\n\n:host {\n display: block;\n position: relative;\n\n .focus {\n border-color: var(--theme-color-primary);\n box-shadow: 0 0 $tiny-space 0 var(--theme-color-primary) !important;\n }\n\n .reset-button {\n position: absolute;\n top: $tiny-space;\n right: $tiny-space;\n }\n\n .reset-button.hide-reset-button {\n display: none;\n }\n\n .input-container {\n display: flex;\n height: 100%;\n max-height: 3.75rem;\n padding: 1px $large-space 1px $x-large-space;\n\n &.no-icon {\n padding-left: $tiny-space;\n }\n }\n\n .token-container {\n flex-grow: 1;\n overflow: hidden;\n }\n\n .text-input {\n @include ellipsis;\n @include text-default;\n background: transparent;\n flex-grow: 1;\n height: 1.75rem;\n\n &,\n &:hover,\n &:focus-visible {\n border: none;\n outline: none;\n }\n\n &.hide-placeholder::placeholder {\n opacity: 0;\n }\n }\n\n .list-unstyled {\n display: flex;\n flex-wrap: wrap;\n list-style: none;\n padding: 0;\n margin: 0;\n overflow-y: auto;\n }\n\n ix-icon {\n position: absolute;\n top: $small-space;\n left: $small-space;\n }\n\n ix-filter-chip {\n margin-right: $small-space;\n }\n\n .category-preview {\n display: flex;\n align-items: center;\n height: $large-space;\n background-color: var(--theme-bg-3);\n border-top-left-radius: $default-space;\n border-bottom-left-radius: $default-space;\n padding: $small-space;\n margin: 2px 0;\n }\n\n ul {\n height: 100%;\n }\n\n ul > li,\n input {\n padding-top: 2px;\n padding-bottom: 2px;\n }\n\n ix-dropdown {\n min-width: 10rem !important;\n\n .dropdown-item-container {\n display: flex;\n flex-direction: column;\n\n .dropdown-item {\n @include text-default-single;\n @include ellipsis;\n height: $large-control-height;\n margin: $tiny-space $small-space;\n padding-inline: $small-space;\n border-radius: 100rem;\n width: auto;\n }\n\n .category-item {\n border-end-end-radius: 0;\n border-start-end-radius: 0;\n }\n\n .category-item-value {\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n }\n }\n\n .btn-toggle-operator {\n margin-inline: $small-space;\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 Watch,\n} from '@stencil/core';\nimport { FilterState } from './filter-state';\nimport { InputState } from './input-state';\nimport { LogicalFilterOperator } from './logical-filter-operator';\n\n@Component({\n tag: 'ix-category-filter',\n styleUrl: 'category-filter.scss',\n scoped: true,\n})\nexport class CategoryFilter {\n private readonly ID_CUSTOM_FILTER_VALUE = 'CW_CUSTOM_FILTER_VALUE';\n\n @State() private textInput?: HTMLInputElement;\n private formElement?: HTMLFormElement;\n private isScrollStateDirty: boolean;\n\n @Element() hostElement: HTMLIxCategoryFilterElement;\n\n @State() hasFocus: boolean;\n @State() categoryLogicalOperator = LogicalFilterOperator.EQUAL;\n @State() inputValue: string;\n @State() category: string;\n @State() filterTokens: Array<{\n id: string;\n value: string;\n operator: LogicalFilterOperator;\n }> = [];\n\n /**\n * When set this will initially populate the component with the provided search criteria.\n * This will trigger all input events accordingly.\n * @deprecated Will be removed with 2.0.0. Use the member filterState instead.\n */\n @Prop() initialState: FilterState;\n\n /**\n * A set of search criteria to populate the component with.\n */\n @Prop() filterState: FilterState;\n\n /**\n * Placeholder text to be displayed in an empty input field.\n */\n @Prop() placeholder: string;\n\n /**\n * Configuration object hash used to populate the dropwdown menu for typeahead and quick selection functionality.\n * Each ID maps to an object with a label and an array of options to select from.\n */\n @Prop() categories: {\n [id: string]: {\n label: string;\n options: string[];\n };\n };\n\n /**\n * In certain use cases some categories may not be available for selection anymore.\n * To allow proper display of set filters with these categories this ID to label mapping can be populated.\n *\n * Configuration object hash used to supply labels to the filter chips in the input field.\n * Each ID maps to a string representing the label to display.\n */\n @Prop() nonSelectableCategories?: {\n [id: string]: string;\n } = {};\n\n /**\n * A list of strings that will be supplied as typeahead suggestions not tied to any categories.\n */\n @Prop() suggestions: string[];\n\n /**\n * The icon next to the actual text input\n * Defaults to 'search'\n */\n @Prop() icon = 'search';\n\n /**\n * Allows to hide the icon inside the text input.\n * Defaults to false\n */\n @Prop() hideIcon: boolean;\n\n /**\n * If set to true allows that a single category can be set more than once.\n * An already set category will not appear in the category dropdown if set to false.\n *\n * Defaults to true\n */\n @Prop() repeatCategories = true;\n\n /**\n * @internal For debugging purposes only!\n */\n @Prop() tmpDisableScrollIntoView = true;\n\n /**\n * i18n\n */\n @Prop() labelCategories = 'Categories';\n\n /**\n * i18n\n */\n @Prop() i18nPlainText = 'Filter by text';\n\n /**\n * Event dispatched whenever the text input changes.\n */\n @Event() inputChanged: EventEmitter<InputState>;\n\n /**\n * Event dispatched whenever the filter state changes.\n */\n @Event() filterChanged: EventEmitter<FilterState>;\n\n @Watch('filterState')\n watchFilterState(newValue) {\n this.setFilterState(newValue);\n }\n\n componentDidLoad() {\n if (this.initialState !== undefined) {\n this.setFilterState(this.initialState);\n } else if (this.filterState !== undefined) {\n setTimeout(() => this.setFilterState(this.filterState));\n }\n\n this.hostElement?.addEventListener(\n 'keydown',\n this.handleFormElementKeyDown.bind(this)\n );\n\n this.formElement?.addEventListener('submit', (e) => e.preventDefault());\n\n if (this.textInput == null) {\n console.warn(\n 'ix-category-filter - unable to add event listeners to native input element'\n );\n return;\n }\n\n this.textInput.addEventListener('focusin', () => {\n this.hasFocus = true;\n });\n this.textInput.addEventListener('focusout', () => (this.hasFocus = false));\n this.textInput.addEventListener('input', () => {\n this.inputValue = this.textInput.value;\n const inputState = new InputState(this.inputValue, this.category);\n this.inputChanged.emit(inputState);\n });\n this.textInput.addEventListener(\n 'keydown',\n this.handleInputElementKeyDown.bind(this)\n );\n }\n\n private setFilterState(state: FilterState) {\n this.filterTokens = [];\n\n for (const token of state.tokens) {\n this.addToken(\n token,\n this.ID_CUSTOM_FILTER_VALUE,\n this.categoryLogicalOperator,\n false\n );\n }\n\n for (const category of state.categories) {\n this.addToken(category.value, category.id, category.operator, false);\n }\n\n this.emitFilterEvent();\n }\n\n private closeDropdown() {\n this.hostElement.querySelector('ix-dropdown').show = false;\n }\n\n private handleFormElementKeyDown(e: KeyboardEvent) {\n switch (e.code) {\n case 'Enter':\n case 'NumpadEnter':\n if (!document.activeElement.classList.contains('dropdown-item')) {\n return;\n }\n\n const token = document.activeElement.getAttribute('data-id');\n\n if (this.hasCategorySelection()) {\n if (this.category) {\n this.addToken(token, this.category);\n } else if (\n document.activeElement.classList.contains('category-item-id')\n ) {\n this.selectCategory(token);\n }\n } else {\n this.addToken(token);\n }\n\n e.preventDefault();\n break;\n\n case 'ArrowUp':\n this.focusPreviousItem();\n e.preventDefault();\n break;\n\n case 'ArrowDown':\n this.focusNextItem();\n e.preventDefault();\n break;\n\n case 'Escape':\n this.closeDropdown();\n break;\n }\n }\n\n private focusPreviousItem() {\n const sibling = document.activeElement.previousSibling;\n if (sibling instanceof HTMLElement) {\n sibling.focus();\n }\n }\n\n private focusNextItem() {\n const sibling = document.activeElement.nextSibling;\n if (sibling instanceof HTMLElement) {\n sibling.focus();\n }\n }\n\n private handleInputElementKeyDown(e: KeyboardEvent) {\n switch (e.code) {\n case 'ArrowDown':\n const selector = `.category-item-${this.category ? 'value' : 'id'}`;\n let item = this.hostElement.querySelector(selector);\n\n if (item instanceof HTMLElement) {\n item.focus();\n e.stopPropagation();\n } else if (this.suggestions?.length) {\n item = this.hostElement.querySelector('.category-item');\n if (item instanceof HTMLElement) {\n item.focus();\n e.stopPropagation();\n }\n }\n break;\n\n case 'Backspace':\n if (this.textInput.value !== '') {\n return;\n }\n\n if (this.category) {\n this.category = undefined;\n return;\n }\n\n const tokenCount = this.filterTokens.length;\n if (tokenCount > 0) {\n this.removeToken(tokenCount - 1);\n }\n break;\n\n case 'Enter':\n case 'NumpadEnter':\n this.addToken(this.inputValue, this.category);\n e.preventDefault();\n break;\n }\n }\n\n private emitFilterEvent() {\n const tokens = this.filterTokens\n .filter((item) => item.id === this.ID_CUSTOM_FILTER_VALUE)\n .map((item) => item.value);\n const categories = this.filterTokens.filter(\n (item) => item.id !== this.ID_CUSTOM_FILTER_VALUE\n );\n const filterState: FilterState = {\n tokens,\n categories,\n };\n\n this.filterChanged.emit(filterState);\n }\n\n private addToken(\n token: string,\n category: string = this.ID_CUSTOM_FILTER_VALUE,\n operator = this.categoryLogicalOperator,\n emitEvent = true\n ) {\n if (token === undefined || token === null) {\n return;\n }\n\n const newToken = token.trim();\n\n if (newToken === '') {\n return;\n }\n\n if (this.hasToken(newToken)) {\n return;\n }\n\n const pair = { id: category, value: newToken, operator };\n this.filterTokens = [...this.filterTokens, pair];\n this.textInput.value = '';\n this.inputValue = '';\n this.categoryLogicalOperator = LogicalFilterOperator.EQUAL;\n\n if (this.category) {\n this.category = undefined;\n }\n\n this.isScrollStateDirty = true;\n\n this.textInput.focus();\n\n if (emitEvent) {\n this.emitFilterEvent();\n }\n\n this.closeDropdown();\n }\n\n private removeToken(index: number) {\n this.filterTokens = this.filterTokens.filter((_, i) => i !== index);\n this.emitFilterEvent();\n }\n\n private getCategoryIds() {\n const ids = [];\n for (const id in this.categories) {\n if (Object.prototype.hasOwnProperty.call(this.categories, id)) {\n ids.push(id);\n }\n }\n\n return ids;\n }\n\n private selectCategory(category: string) {\n this.category = category;\n this.textInput.value = '';\n this.inputValue = '';\n this.textInput.focus();\n }\n\n private resetFilter() {\n this.closeDropdown();\n this.filterTokens = [];\n this.emitFilterEvent();\n }\n\n private filterMultiples(value: string) {\n if (this.repeatCategories) {\n return true;\n }\n\n const isCategoryAlreadySet = this.filterTokens.find(\n (token) => token.id === value\n );\n\n return !isCategoryAlreadySet;\n }\n\n private hasToken(token: string) {\n return this.filterTokens.some((filterToken) => {\n const hasSameValue = filterToken.value === token;\n\n if (!hasSameValue) {\n return false;\n }\n\n if (this.category) {\n return this.category === filterToken.id;\n }\n\n if (filterToken.id) {\n return filterToken.id === this.ID_CUSTOM_FILTER_VALUE;\n }\n\n return hasSameValue;\n });\n }\n\n private filterDuplicateTokens(value: string) {\n return !this.hasToken(value);\n }\n\n private filterByInput(value: string) {\n if (this.inputValue === undefined || this.inputValue === '') {\n return true;\n }\n\n return value.toLowerCase().indexOf(this.inputValue.toLowerCase()) !== -1;\n }\n\n private toggleCategoryOperator() {\n switch (this.categoryLogicalOperator) {\n case LogicalFilterOperator.EQUAL:\n this.categoryLogicalOperator = LogicalFilterOperator.NOT_EQUAL;\n break;\n\n case LogicalFilterOperator.NOT_EQUAL:\n this.categoryLogicalOperator = LogicalFilterOperator.EQUAL;\n break;\n }\n }\n\n private getFilterChipLabel(value: {\n id: string;\n value: string;\n operator: LogicalFilterOperator;\n }): string {\n if (value.id === this.ID_CUSTOM_FILTER_VALUE) {\n return value.value;\n }\n\n const operatorString =\n value.operator === LogicalFilterOperator.EQUAL ? '=' : '!=';\n const label =\n this.categories[value.id]?.label ??\n this.nonSelectableCategories[value.id] ??\n value.id;\n\n return `${label} ${operatorString} ${value.value}`;\n }\n\n private getFilteredSuggestions() {\n if (!this.suggestions?.length) {\n return [];\n }\n\n return this.suggestions\n ?.filter((value) => this.filterByInput(value))\n .filter((value) => this.filterDuplicateTokens(value));\n }\n\n private hasCategorySelection() {\n return this.categories !== undefined;\n }\n\n private displayDropdown() {\n if (this.hasCategorySelection()) {\n return true;\n }\n\n if (this.suggestions !== undefined) {\n return this.getFilteredSuggestions().length > 0;\n }\n\n return false;\n }\n\n private renderPlainSuggestions() {\n return (\n <div class=\"dropdown-item-container\">\n {this.getFilteredSuggestions().map((suggestion) => (\n <button\n class=\"dropdown-item\"\n data-id={suggestion}\n onClick={() => this.addToken(suggestion)}\n key={suggestion}\n title={suggestion}\n >\n {suggestion}\n </button>\n ))}\n </div>\n );\n }\n\n private renderCategoryValues() {\n return (\n <div class=\"dropdown-item-container\">\n <button\n class=\"btn btn-invisible-secondary btn-icon btn-toggle-operator\"\n onClick={() => this.toggleCategoryOperator()}\n tabindex=\"-1\"\n >\n {this.categoryLogicalOperator === LogicalFilterOperator.NOT_EQUAL\n ? '='\n : '!='}\n </button>\n <div class=\"dropdown-header\">\n {this.categories[this.category]?.label}\n </div>\n {this.categories[this.category]?.options\n .filter((value) => this.filterByInput(value))\n .filter((value) => this.filterDuplicateTokens(value))\n .map((id) => (\n <button\n class=\"dropdown-item category-item-value\"\n data-id={id}\n title={id}\n key={id}\n onClick={() => this.addToken(id, this.category)}\n >\n {`${\n this.categoryLogicalOperator === LogicalFilterOperator.EQUAL\n ? '='\n : '!='\n } ${id}`}\n </button>\n ))}\n </div>\n );\n }\n\n private renderDropdownContent() {\n if (this.hasCategorySelection()) {\n if (this.category) {\n return this.renderCategoryValues();\n } else {\n return this.renderCategorySelection();\n }\n } else return this.renderPlainSuggestions();\n }\n\n private renderCategorySelection() {\n return (\n <div class=\"dropdown-item-container\">\n {this.getCategoryIds()\n ?.filter((id) => this.filterByInput(this.categories[id].label))\n .filter((id) => this.filterMultiples(id))\n .map((id) => (\n <button\n class=\"dropdown-item category-item category-item-id\"\n data-id={id}\n title={this.categories[id].label}\n key={id}\n onClick={() => this.selectCategory(id)}\n tabindex=\"0\"\n >\n {this.categories[id]?.label}\n </button>\n ))}\n </div>\n );\n }\n\n private getDropdownHeader() {\n if (this.categories) {\n if (this.category) {\n return null;\n } else {\n return this.labelCategories;\n }\n }\n\n return this.i18nPlainText;\n }\n\n componentDidRender() {\n if (this.isScrollStateDirty) {\n if (!this.tmpDisableScrollIntoView) {\n this.textInput.scrollIntoView();\n }\n this.isScrollStateDirty = false;\n }\n }\n\n private getResetButton() {\n return (\n <ix-icon-button\n onClick={() => this.resetFilter()}\n class={{\n 'reset-button': true,\n 'hide-reset-button': !this.filterTokens.length && !this.category,\n }}\n variant=\"primary\"\n ghost\n oval\n icon=\"clear\"\n size=\"16\"\n tabindex=\"1\"\n ></ix-icon-button>\n );\n }\n\n render() {\n return (\n <Host>\n <form ref={(el) => (this.formElement = el)}>\n <div\n class={{\n 'form-control': true,\n 'input-container': true,\n focus: this.hasFocus,\n 'no-icon': this.hideIcon,\n }}\n >\n <ix-icon\n class={{ 'd-none': this.hideIcon }}\n name={this.icon}\n size=\"16\"\n ></ix-icon>\n <div class=\"token-container\">\n <ul class=\"list-unstyled\">\n {this.filterTokens.map((value, index) => (\n <li\n key={value.toString()}\n class={{\n animate__animated: true,\n animate__fadein: true,\n }}\n >\n <ix-filter-chip\n onCloseClick={() => this.removeToken(index)}\n >\n {this.getFilterChipLabel(value)}\n </ix-filter-chip>\n </li>\n ))}\n {this.categories === undefined ? (\n ''\n ) : (\n <li\n class={{\n 'category-preview': true,\n 'd-none': !this.category,\n }}\n >\n {this.categories[this.category]?.label}\n </li>\n )}\n <input\n class={{\n 'text-input': true,\n 'hide-placeholder': this.category !== undefined,\n }}\n ref={(el) => (this.textInput = el)}\n type=\"text\"\n placeholder={this.placeholder}\n ></input>\n </ul>\n </div>\n {this.getResetButton()}\n </div>\n </form>\n\n <ix-dropdown\n closeBehavior=\"outside\"\n trigger={this.textInput}\n triggerEvent={['click', 'focus']}\n header={this.getDropdownHeader()}\n class={{ 'd-none': !this.displayDropdown() }}\n >\n {this.renderDropdownContent()}\n </ix-dropdown>\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-8ddfb6d8.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7334ee80.js';
2
2
 
3
- const chipCss = ".sc-ix-chip-h{display:inline-flex;width:-moz-fit-content;width:fit-content;position:relative;align-items:center;border-radius:100px;padding:0.5rem 0.75rem;height:2rem;max-height:2rem;cursor:pointer;margin-left:0.25rem}.sc-ix-chip-h .with-icon.sc-ix-chip{margin-right:0.25rem}.sc-ix-chip-h .hidden.sc-ix-chip{width:0px;margin-right:0px}.sc-ix-chip-h .close-button-container.sc-ix-chip{display:inline-flex;flex-grow:1;margin-left:0.75rem}.sc-ix-chip-h .close-button.sc-ix-chip{position:relative;width:1rem;height:1rem;min-width:unset;min-height:unset;margin-left:auto;margin-right:0}[variant=primary].sc-ix-chip-h{background-color:var(--theme-color-primary);color:var(--theme-chip-primary--color)}[variant=primary].sc-ix-chip-h .close-button.sc-ix-chip{color:var(--theme-chip-primary--color);pointer-events:auto}[variant=primary].sc-ix-chip-h:hover{background-color:var(--theme-chip-primary--background--hover)}[variant=primary].sc-ix-chip-h:active{background-color:var(--theme-chip-primary--background--active)}[variant=primary].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=primary].outline.sc-ix-chip-h{color:var(--theme-chip-primary-outline--color);background-color:transparent;border:solid 1px var(--theme-chip-primary-outline--border-color)}[variant=primary].outline.sc-ix-chip-h .close-button.sc-ix-chip{color:var(--theme-chip-primary-outline--color)}[variant=primary].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-primary-outline--background--hover)}[variant=primary].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-primary-outline--background--active)}[variant=alarm].sc-ix-chip-h{color:var(--theme-color-alarm--contrast)}[variant=alarm].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=alarm].active.sc-ix-chip-h::after,[variant=alarm].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=alarm].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-alarm)}[variant=alarm].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-alarm--contrast)}[variant=alarm].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=alarm].sc-ix-chip-h:not(.outline).active::after,[variant=alarm].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=alarm].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-alarm)}[variant=alarm].outline.sc-ix-chip-h:hover::after{display:none}[variant=alarm].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=alarm].outline.active.sc-ix-chip-h::after,[variant=alarm].outline.sc-ix-chip-h:active::after{display:none}[variant=alarm].outline.active.sc-ix-chip-h,[variant=alarm].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=alarm].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=critical].sc-ix-chip-h{color:var(--theme-color-critical--contrast)}[variant=critical].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=critical].active.sc-ix-chip-h::after,[variant=critical].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=critical].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-critical)}[variant=critical].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-critical--contrast)}[variant=critical].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=critical].sc-ix-chip-h:not(.outline).active::after,[variant=critical].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=critical].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-critical)}[variant=critical].outline.sc-ix-chip-h:hover::after{display:none}[variant=critical].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=critical].outline.active.sc-ix-chip-h::after,[variant=critical].outline.sc-ix-chip-h:active::after{display:none}[variant=critical].outline.active.sc-ix-chip-h,[variant=critical].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=critical].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=warning].sc-ix-chip-h{color:var(--theme-color-warning--contrast)}[variant=warning].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=warning].active.sc-ix-chip-h::after,[variant=warning].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=warning].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-warning)}[variant=warning].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-warning--contrast)}[variant=warning].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=warning].sc-ix-chip-h:not(.outline).active::after,[variant=warning].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=warning].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-warning)}[variant=warning].outline.sc-ix-chip-h:hover::after{display:none}[variant=warning].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=warning].outline.active.sc-ix-chip-h::after,[variant=warning].outline.sc-ix-chip-h:active::after{display:none}[variant=warning].outline.active.sc-ix-chip-h,[variant=warning].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=warning].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=info].sc-ix-chip-h{color:var(--theme-color-info--contrast)}[variant=info].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=info].active.sc-ix-chip-h::after,[variant=info].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=info].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-info)}[variant=info].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-info--contrast)}[variant=info].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=info].sc-ix-chip-h:not(.outline).active::after,[variant=info].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=info].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-info)}[variant=info].outline.sc-ix-chip-h:hover::after{display:none}[variant=info].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=info].outline.active.sc-ix-chip-h::after,[variant=info].outline.sc-ix-chip-h:active::after{display:none}[variant=info].outline.active.sc-ix-chip-h,[variant=info].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=info].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=neutral].sc-ix-chip-h{color:var(--theme-color-neutral--contrast)}[variant=neutral].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=neutral].active.sc-ix-chip-h::after,[variant=neutral].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=neutral].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-neutral)}[variant=neutral].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-neutral--contrast)}[variant=neutral].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=neutral].sc-ix-chip-h:not(.outline).active::after,[variant=neutral].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=neutral].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-neutral)}[variant=neutral].outline.sc-ix-chip-h:hover::after{display:none}[variant=neutral].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=neutral].outline.active.sc-ix-chip-h::after,[variant=neutral].outline.sc-ix-chip-h:active::after{display:none}[variant=neutral].outline.active.sc-ix-chip-h,[variant=neutral].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=neutral].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=success].sc-ix-chip-h{color:var(--theme-color-success--contrast)}[variant=success].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}[variant=success].active.sc-ix-chip-h::after,[variant=success].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}[variant=success].sc-ix-chip-h:not(.outline){background-color:var(--theme-color-success)}[variant=success].sc-ix-chip-h:not(.outline) .close-button.sc-ix-chip{color:var(--theme-color-success--contrast)}[variant=success].sc-ix-chip-h:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}[variant=success].sc-ix-chip-h:not(.outline).active::after,[variant=success].sc-ix-chip-h:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}[variant=success].outline.sc-ix-chip-h{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-success)}[variant=success].outline.sc-ix-chip-h:hover::after{display:none}[variant=success].outline.sc-ix-chip-h:hover{background-color:var(--theme-chip-outline--background--hover)}[variant=success].outline.active.sc-ix-chip-h::after,[variant=success].outline.sc-ix-chip-h:active::after{display:none}[variant=success].outline.active.sc-ix-chip-h,[variant=success].outline.sc-ix-chip-h:active{background-color:var(--theme-chip-outline--background--active)}[variant=success].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=custom].sc-ix-chip-h:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, var(--theme-l-hover));left:0;border-radius:100px;pointer-events:none}[variant=custom].active.sc-ix-chip-h::after,[variant=custom].sc-ix-chip-h:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, var(--theme-l-active));left:0;border-radius:100px;pointer-events:none}[variant=custom].sc-ix-chip-h:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}[variant=custom].outline.sc-ix-chip-h{border:solid 1px transparent;background-color:transparent}[variant=custom].outline.sc-ix-chip-h:hover{background-color:rgba(0, 0, 0, var(--theme-l-hover))}[variant=custom].outline.sc-ix-chip-h:active{background-color:rgba(0, 0, 0, var(--theme-l-active))}.sc-ix-chip-h .slot-container.sc-ix-chip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inactive.sc-ix-chip-h{pointer-events:none}";
3
+ const chipCss = ":host{display:inline-block;position:relative;height:2rem;max-height:2rem;margin-left:0.25rem}:host *,:host *::after,:host *::before{box-sizing:border-box}:host(.inactive){pointer-events:none}.container{display:inline-flex;width:inherit;box-sizing:border-box;position:relative;align-items:center;border-radius:100px;padding:0.5rem;height:2rem;max-height:2rem;cursor:pointer}.container .with-icon{margin-right:0.25rem}.container .hidden{width:0px;margin-right:0px}.container .close-button-container{display:inline-flex;margin-left:auto;padding-left:0.5rem}.container .slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container.icon{padding-left:0.75rem;padding-right:0.75rem}.container.closable{padding-right:0.25rem}.container.primary{background-color:var(--theme-color-primary);color:var(--theme-chip-primary--color)}.container.primary .close-button{color:var(--theme-chip-primary--color);--ix-icon-button-color:var(--theme-chip-primary--color);pointer-events:auto}.container.primary:hover{background-color:var(--theme-chip-primary--background--hover)}.container.primary:active{background-color:var(--theme-chip-primary--background--active)}.container.primary:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}.container.primary.outline{color:var(--theme-chip-primary-outline--color);background-color:transparent;border:solid 1px var(--theme-chip-primary-outline--border-color)}.container.primary.outline .close-button{color:var(--theme-chip-primary-outline--color);--ix-icon-button-color:var(--theme-chip-primary-outline--color)}.container.primary.outline:hover{background-color:var(--theme-chip-primary-outline--background--hover)}.container.primary.outline:active{background-color:var(--theme-chip-primary-outline--background--active)}.container.alarm{color:var(--theme-color-alarm--contrast)}.container.alarm:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}.container.alarm.active::after,.container.alarm:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}.container.alarm:not(.outline){background-color:var(--theme-color-alarm)}.container.alarm:not(.outline) .close-button{color:var(--theme-color-alarm--contrast);--ix-icon-button-color:var(--theme-color-alarm--contrast)}.container.alarm:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}.container.alarm:not(.outline).active::after,.container.alarm:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}.container.alarm.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-alarm)}.container.alarm.outline:hover::after{display:none}.container.alarm.outline:hover{background-color:var(--theme-chip-outline--background--hover)}.container.alarm.outline.active::after,.container.alarm.outline:active::after{display:none}.container.alarm.outline.active,.container.alarm.outline:active{background-color:var(--theme-chip-outline--background--active)}.container.alarm:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}.container.critical{color:var(--theme-color-critical--contrast)}.container.critical:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}.container.critical.active::after,.container.critical:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}.container.critical:not(.outline){background-color:var(--theme-color-critical)}.container.critical:not(.outline) .close-button{color:var(--theme-color-critical--contrast);--ix-icon-button-color:var(--theme-color-critical--contrast)}.container.critical:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}.container.critical:not(.outline).active::after,.container.critical:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}.container.critical.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-critical)}.container.critical.outline:hover::after{display:none}.container.critical.outline:hover{background-color:var(--theme-chip-outline--background--hover)}.container.critical.outline.active::after,.container.critical.outline:active::after{display:none}.container.critical.outline.active,.container.critical.outline:active{background-color:var(--theme-chip-outline--background--active)}.container.critical:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}.container.warning{color:var(--theme-color-warning--contrast)}.container.warning:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}.container.warning.active::after,.container.warning:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}.container.warning:not(.outline){background-color:var(--theme-color-warning)}.container.warning:not(.outline) .close-button{color:var(--theme-color-warning--contrast);--ix-icon-button-color:var(--theme-color-warning--contrast)}.container.warning:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}.container.warning:not(.outline).active::after,.container.warning:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}.container.warning.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-warning)}.container.warning.outline:hover::after{display:none}.container.warning.outline:hover{background-color:var(--theme-chip-outline--background--hover)}.container.warning.outline.active::after,.container.warning.outline:active::after{display:none}.container.warning.outline.active,.container.warning.outline:active{background-color:var(--theme-chip-outline--background--active)}.container.warning:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}.container.info{color:var(--theme-color-info--contrast)}.container.info:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}.container.info.active::after,.container.info:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}.container.info:not(.outline){background-color:var(--theme-color-info)}.container.info:not(.outline) .close-button{color:var(--theme-color-info--contrast);--ix-icon-button-color:var(--theme-color-info--contrast)}.container.info:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}.container.info:not(.outline).active::after,.container.info:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}.container.info.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-info)}.container.info.outline:hover::after{display:none}.container.info.outline:hover{background-color:var(--theme-chip-outline--background--hover)}.container.info.outline.active::after,.container.info.outline:active::after{display:none}.container.info.outline.active,.container.info.outline:active{background-color:var(--theme-chip-outline--background--active)}.container.info:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}.container.neutral{color:var(--theme-color-neutral--contrast)}.container.neutral:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}.container.neutral.active::after,.container.neutral:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}.container.neutral:not(.outline){background-color:var(--theme-color-neutral)}.container.neutral:not(.outline) .close-button{color:var(--theme-color-neutral--contrast);--ix-icon-button-color:var(--theme-color-neutral--contrast)}.container.neutral:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}.container.neutral:not(.outline).active::after,.container.neutral:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}.container.neutral.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-neutral)}.container.neutral.outline:hover::after{display:none}.container.neutral.outline:hover{background-color:var(--theme-chip-outline--background--hover)}.container.neutral.outline.active::after,.container.neutral.outline:active::after{display:none}.container.neutral.outline.active,.container.neutral.outline:active{background-color:var(--theme-chip-outline--background--active)}.container.neutral:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}.container.success{color:var(--theme-color-success--contrast)}.container.success:hover::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.05);left:0;border-radius:100px;pointer-events:none}.container.success.active::after,.container.success:active::after{content:\"\";display:block;position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.1);left:0;border-radius:100px;pointer-events:none}.container.success:not(.outline){background-color:var(--theme-color-success)}.container.success:not(.outline) .close-button{color:var(--theme-color-success--contrast);--ix-icon-button-color:var(--theme-color-success--contrast)}.container.success:not(.outline):hover::after{content:\"\";background-color:rgba(0, 0, 0, 0.05)}.container.success:not(.outline).active::after,.container.success:not(.outline):active::after{background-color:rgba(0, 0, 0, 0.1)}.container.success.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-success)}.container.success.outline:hover::after{display:none}.container.success.outline:hover{background-color:var(--theme-chip-outline--background--hover)}.container.success.outline.active::after,.container.success.outline:active::after{display:none}.container.success.outline.active,.container.success.outline:active{background-color:var(--theme-chip-outline--background--active)}.container.success:focus-visible{outline:1px solid #199fff;outline-offset:var(--theme-btn--focus--outline-offset)}";
4
4
 
5
5
  const Chip = class {
6
6
  constructor(hostRef) {
@@ -16,34 +16,42 @@ const Chip = class {
16
16
  this.outline = false;
17
17
  }
18
18
  getCloseButton() {
19
- return (h("div", { class: "close-button-container" }, h("button", { type: "button", class: "btn btn-invisible-secondary btn-icon btn-oval close-button", onClick: (event) => {
19
+ return (h("div", { class: "close-button-container" }, h("ix-icon-button", { type: "button", variant: "secondary", icon: "close-small", class: "close-button", oval: true, size: "16", style: this.variant === 'custom' ? { color: this.color } : {}, ghost: true, onClick: (event) => {
20
20
  this.close.emit(event);
21
21
  this.closeChip.emit(event);
22
22
  event.stopPropagation();
23
- } }, this.variant === 'custom' ? (h("i", { class: "glyph glyph-16 glyph-close-small", style: { color: this.color } })) : (h("ix-icon", { name: 'close-small', size: '16' })))));
23
+ } })));
24
24
  }
25
25
  render() {
26
26
  const isInactive = this.active === false;
27
27
  let customStyle = {};
28
- if (this.variant === 'custom' && this.outline === false) {
28
+ if (this.variant === 'custom') {
29
29
  customStyle = {
30
30
  color: this.color,
31
- backgroundColor: this.background,
31
+ [this.outline ? 'borderColor' : 'backgroundColor']: this.background,
32
32
  };
33
33
  }
34
- if (this.variant === 'custom' && this.outline === true) {
35
- customStyle = {
36
- color: this.color,
37
- borderColor: this.background,
38
- };
39
- }
40
- return (h(Host, { class: {
34
+ return (h(Host, { tabIndex: "-1", title: this.el.textContent, style: this.variant === 'custom'
35
+ ? {
36
+ '--ix-icon-button-color': this.color,
37
+ }
38
+ : {} }, h("div", { style: Object.assign({}, customStyle), class: {
39
+ container: true,
41
40
  outline: this.outline,
42
41
  inactive: isInactive,
43
- }, tabIndex: "-1", title: this.el.textContent, style: Object.assign({}, customStyle) }, h("ix-icon", { class: {
42
+ alarm: this.variant === 'alarm',
43
+ critical: this.variant === 'critical',
44
+ info: this.variant === 'info',
45
+ neutral: this.variant === 'neutral',
46
+ primary: this.variant === 'primary',
47
+ success: this.variant === 'success',
48
+ warning: this.variant === 'warning',
49
+ closable: this.closable,
50
+ icon: !!this.icon,
51
+ } }, h("ix-icon", { class: {
44
52
  'with-icon': true,
45
53
  hidden: this.icon === undefined || this.icon === '',
46
- }, name: this.icon, size: '24' }), h("span", { class: "slot-container" }, h("slot", null)), isInactive === false && this.closable ? this.getCloseButton() : null));
54
+ }, name: this.icon, size: '24' }), h("span", { class: "slot-container" }, h("slot", null)), isInactive === false && this.closable ? this.getCloseButton() : null)));
47
55
  }
48
56
  get el() { return getElement(this); }
49
57
  };
@@ -1 +1 @@
1
- {"file":"ix-chip.entry.js","mappings":";;AAAA,MAAM,OAAO,GAAG,00YAA00Y;;MCwB70Y,IAAI;;;;;mBAcA,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AC,WAAW,EAC1B,KAAK,oBAAO,WAAW,KAEvB,eACE,KAAK,EAAE;QACL,WAAW,EAAE,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,EAAE;OACpD,EACD,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,GACV,EACF,YAAM,KAAK,EAAC,gBAAgB,IAC1B,eAAa,CACR,EACN,UAAU,KAAK,KAAK,IAAI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,GAAG,IAAI,CAChE,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/chip/chip.scss?tag=ix-chip&encapsulation=scoped","./src/components/chip/chip.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 './chip-mixin';\n@import 'common-variables';\n@import 'mixins/text-truncation';\n\n$border-radius: 100px;\n\n:host {\n display: inline-flex;\n width: fit-content;\n position: relative;\n align-items: center;\n border-radius: $border-radius;\n padding: $small-space $medium-space;\n\n height: $default-control-height;\n max-height: $default-control-height;\n\n cursor: pointer;\n\n .with-icon {\n margin-right: $tiny-space;\n }\n\n .hidden {\n width: 0px;\n margin-right: 0px;\n }\n\n margin-left: $tiny-space;\n\n .close-button-container {\n display: inline-flex;\n flex-grow: 1;\n margin-left: $medium-space;\n }\n\n .close-button {\n position: relative;\n width: $default-space;\n height: $default-space;\n min-width: unset;\n min-height: unset;\n margin-left: auto;\n margin-right: 0;\n }\n\n @include chip();\n\n .slot-container {\n @include ellipsis;\n }\n}\n\n:host(.inactive) {\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 Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n} from '@stencil/core';\n\n@Component({\n tag: 'ix-chip',\n styleUrl: 'chip.scss',\n scoped: true,\n})\nexport class Chip {\n @Element() el: HTMLIxChipElement;\n\n /**\n * Chip variant\n */\n @Prop({ reflect: true }) variant:\n | 'primary'\n | 'alarm'\n | 'critical'\n | 'warning'\n | 'info'\n | 'neutral'\n | 'success'\n | 'custom' = 'primary';\n\n /**\n * Determines if the chip is interactive. If false no user input (e.g. mouse states, keyboard navigation)\n * will be possible and also the close button will not be present.\n */\n @Prop() active = true;\n\n /**\n * Show close icon\n */\n @Prop() closable = false;\n\n /**\n * Show icon\n */\n @Prop() icon: string | undefined;\n\n /**\n * Custom color for pill. Only working for `variant='custom'`\n */\n @Prop() background: string | undefined;\n\n /**\n * Custom font color for pill. Only working for `variant='custom'`\n */\n @Prop() color: string | undefined;\n\n /**\n * Show chip with outline style\n */\n @Prop() outline = false;\n\n /**\n * Fire event if close button is clicked\n *\n * @deprecated Will be removed in 2.0.0. Use `closeChip`\n */\n @Event() close: EventEmitter;\n\n /**\n * Fire event if close button is clicked\n *\n * @since 1.5.0\n */\n @Event() closeChip: EventEmitter;\n\n private getCloseButton() {\n return (\n <div class=\"close-button-container\">\n <button\n type=\"button\"\n class=\"btn btn-invisible-secondary btn-icon btn-oval close-button\"\n onClick={(event) => {\n this.close.emit(event);\n this.closeChip.emit(event);\n event.stopPropagation();\n }}\n >\n {this.variant === 'custom' ? (\n <i\n class=\"glyph glyph-16 glyph-close-small\"\n style={{ color: this.color }}\n />\n ) : (\n <ix-icon name={'close-small'} size={'16'} />\n )}\n </button>\n </div>\n );\n }\n\n render() {\n const isInactive = this.active === false;\n\n let customStyle = {};\n\n if (this.variant === 'custom' && this.outline === false) {\n customStyle = {\n color: this.color,\n backgroundColor: this.background,\n };\n }\n\n if (this.variant === 'custom' && this.outline === true) {\n customStyle = {\n color: this.color,\n borderColor: this.background,\n };\n }\n\n return (\n <Host\n class={{\n outline: this.outline,\n inactive: isInactive,\n }}\n tabIndex=\"-1\"\n title={this.el.textContent}\n style={{ ...customStyle }}\n >\n <ix-icon\n class={{\n 'with-icon': true,\n hidden: this.icon === undefined || this.icon === '',\n }}\n name={this.icon}\n size={'24'}\n />\n <span class=\"slot-container\">\n <slot></slot>\n </span>\n {isInactive === false && this.closable ? this.getCloseButton() : null}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-chip.entry.js","mappings":";;AAAA,MAAM,OAAO,GAAG,sjVAAsjV;;MCwBzjV,IAAI;;;;;mBAcA,SAAS;kBAMP,IAAI;oBAKF,KAAK;;;;mBAoBN,KAAK;;EAgBf,cAAc;IACpB,QACE,WAAK,KAAK,EAAC,wBAAwB,IAE/B,sBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,cAAc,EACpB,IAAI,QACJ,IAAI,EAAC,IAAI,EACT,KAAK,EAAE,IAAI,CAAC,OAAO,KAAK,QAAQ,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,EAC7D,KAAK,QACL,OAAO,EAAE,CAAC,KAAK;QACb,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3B,KAAK,CAAC,eAAe,EAAE,CAAC;OACzB,GACe,CAEhB,EACN;GACH;EAED,MAAM;IACJ,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC;IAEzC,IAAI,WAAW,GAAG,EAAE,CAAC;IAErB,IAAI,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;MAC7B,WAAW,GAAG;QACZ,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,CAAC,IAAI,CAAC,OAAO,GAAG,aAAa,GAAG,iBAAiB,GAAG,IAAI,CAAC,UAAU;OACpE,CAAC;KACH;IAED,QACE,EAAC,IAAI,IACH,QAAQ,EAAC,IAAI,EACb,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,WAAW,EAC1B,KAAK,EACH,IAAI,CAAC,OAAO,KAAK,QAAQ;UACrB;UACE,wBAAwB,EAAE,IAAI,CAAC,KAAK;SACrC;UACD,EAAE,IAGR,WACE,KAAK,oBAAO,WAAW,GACvB,KAAK,EAAE;QACL,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;QAC/B,QAAQ,EAAE,IAAI,CAAC,OAAO,KAAK,UAAU;QACrC,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,MAAM;QAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;QACnC,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;QACnC,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;QACnC,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;QACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI;OAClB,IAED,eACE,KAAK,EAAE;QACL,WAAW,EAAE,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,EAAE;OACpD,EACD,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,GACV,EACF,YAAM,KAAK,EAAC,gBAAgB,IAC1B,eAAa,CACR,EACN,UAAU,KAAK,KAAK,IAAI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,GAAG,IAAI,CACjE,CACD,EACP;GACH;;;;;;;","names":[],"sources":["./src/components/chip/chip.scss?tag=ix-chip&encapsulation=shadow","./src/components/chip/chip.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@import 'mixins/shadow-dom/component';\n@import 'common-variables';\n@import 'mixins/text-truncation';\n@import './chip-mixin';\n\n:host {\n @include ix-component;\n display: inline-block;\n position: relative;\n height: 2rem;\n max-height: 2rem;\n margin-left: $tiny-space;\n}\n\n:host(.inactive) {\n pointer-events: none;\n}\n\n@include chip-container;\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} from '@stencil/core';\n\n@Component({\n tag: 'ix-chip',\n styleUrl: 'chip.scss',\n shadow: true,\n})\nexport class Chip {\n @Element() el: HTMLIxChipElement;\n\n /**\n * Chip variant\n */\n @Prop({ reflect: true }) variant:\n | 'primary'\n | 'alarm'\n | 'critical'\n | 'warning'\n | 'info'\n | 'neutral'\n | 'success'\n | 'custom' = 'primary';\n\n /**\n * Determines if the chip is interactive. If false no user input (e.g. mouse states, keyboard navigation)\n * will be possible and also the close button will not be present.\n */\n @Prop() active = true;\n\n /**\n * Show close icon\n */\n @Prop() closable = false;\n\n /**\n * Show icon\n */\n @Prop() icon: string | undefined;\n\n /**\n * Custom color for pill. Only working for `variant='custom'`\n */\n @Prop() background: string | undefined;\n\n /**\n * Custom font color for pill. Only working for `variant='custom'`\n */\n @Prop() color: string | undefined;\n\n /**\n * Show chip with outline style\n */\n @Prop() outline = false;\n\n /**\n * Fire event if close button is clicked\n *\n * @deprecated Will be removed in 2.0.0. Use `closeChip`\n */\n @Event() close: EventEmitter;\n\n /**\n * Fire event if close button is clicked\n *\n * @since 1.5.0\n */\n @Event() closeChip: EventEmitter;\n\n private getCloseButton() {\n return (\n <div class=\"close-button-container\">\n {\n <ix-icon-button\n type=\"button\"\n variant=\"secondary\"\n icon=\"close-small\"\n class=\"close-button\"\n oval\n size=\"16\"\n style={this.variant === 'custom' ? { color: this.color } : {}}\n ghost\n onClick={(event) => {\n this.close.emit(event);\n this.closeChip.emit(event);\n event.stopPropagation();\n }}\n ></ix-icon-button>\n }\n </div>\n );\n }\n\n render() {\n const isInactive = this.active === false;\n\n let customStyle = {};\n\n if (this.variant === 'custom') {\n customStyle = {\n color: this.color,\n [this.outline ? 'borderColor' : 'backgroundColor']: this.background,\n };\n }\n\n return (\n <Host\n tabIndex=\"-1\"\n title={this.el.textContent}\n style={\n this.variant === 'custom'\n ? {\n '--ix-icon-button-color': this.color,\n }\n : {}\n }\n >\n <div\n style={{ ...customStyle }}\n class={{\n container: true,\n outline: this.outline,\n inactive: isInactive,\n alarm: this.variant === 'alarm',\n critical: this.variant === 'critical',\n info: this.variant === 'info',\n neutral: this.variant === 'neutral',\n primary: this.variant === 'primary',\n success: this.variant === 'success',\n warning: this.variant === 'warning',\n closable: this.closable,\n icon: !!this.icon,\n }}\n >\n <ix-icon\n class={{\n 'with-icon': true,\n hidden: this.icon === undefined || this.icon === '',\n }}\n name={this.icon}\n size={'24'}\n />\n <span class=\"slot-container\">\n <slot></slot>\n </span>\n {isInactive === false && this.closable ? this.getCloseButton() : null}\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 } from './index-8ddfb6d8.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-7334ee80.js';
2
2
 
3
3
  const contentHeaderCss = ":host{display:flex;flex-direction:row;align-items:flex-start;padding:0px}:host .titleGroup{display:flex;flex-direction:column;flex:1 1 0%}:host .subtitle{margin-top:0.5rem}:host .backButton{margin-right:0.5rem}:host .buttons{flex:0 0 auto}";
4
4
 
@@ -6,13 +6,13 @@ const ContentHeader = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
8
  this.backButtonClick = createEvent(this, "backButtonClick", 7);
9
- this.variant = 'Primary';
9
+ this.variant = 'primary';
10
10
  this.headerTitle = undefined;
11
11
  this.headerSubtitle = undefined;
12
12
  this.hasBackButton = false;
13
13
  }
14
14
  render() {
15
- return (h(Host, null, this.hasBackButton ? (h("ix-icon-button", { class: 'backButton', variant: "Primary", icon: "arrow-left", ghost: true, onClick: () => this.backButtonClick.emit() })) : null, h("div", { class: "titleGroup" }, h("ix-typography", { variant: this.variant === 'Secondary' ? 'large-single' : 'h2' }, this.headerTitle), this.headerSubtitle !== undefined ? (h("ix-typography", { variant: 'caption', color: 'soft', class: "subtitle" }, this.headerSubtitle)) : null), h("div", { class: "buttons" }, h("slot", null))));
15
+ return (h(Host, null, this.hasBackButton ? (h("ix-icon-button", { class: 'backButton', variant: "primary", icon: "arrow-left", ghost: true, onClick: () => this.backButtonClick.emit() })) : null, h("div", { class: "titleGroup" }, h("ix-typography", { variant: this.variant === 'secondary' ? 'large-single' : 'h2' }, this.headerTitle), this.headerSubtitle !== undefined ? (h("ix-typography", { variant: 'caption', color: 'soft', class: "subtitle" }, this.headerSubtitle)) : null), h("div", { class: "buttons" }, h("slot", null))));
16
16
  }
17
17
  };
18
18
  ContentHeader.style = contentHeaderCss;
@@ -1 +1 @@
1
- {"file":"ix-content-header.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,iPAAiP;;MCkB7P,aAAa;;;;mBAIgB,SAAS;;0BAUJ,SAAS;yBAKrB,KAAK;;EAOtC,MAAM;IACJ,QACE,EAAC,IAAI,QACF,IAAI,CAAC,aAAa,IACjB,sBACE,KAAK,EAAE,YAAY,EACnB,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,YAAY,EACjB,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,GAC1B,IAChB,IAAI,EAER,WAAK,KAAK,EAAC,YAAY,IACrB,qBACE,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW,GAAG,cAAc,GAAG,IAAI,IAE5D,IAAI,CAAC,WAAW,CACH,EACf,IAAI,CAAC,cAAc,KAAK,SAAS,IAChC,qBAAe,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAC,UAAU,IAC/D,IAAI,CAAC,cAAc,CACN,IACd,IAAI,CACJ,EACN,WAAK,KAAK,EAAC,SAAS,IAClB,eAAQ,CACJ,CACD,EACP;GACH;;;;;;","names":[],"sources":["./src/components/content-header/content-header.scss?tag=ix-content-header&encapsulation=shadow","./src/components/content-header/content-header.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:host {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n padding: 0px;\n\n .titleGroup {\n display: flex;\n flex-direction: column;\n flex: 1 1 0%;\n }\n\n .subtitle {\n margin-top: 0.5rem;\n }\n\n .backButton {\n margin-right: 0.5rem;\n }\n\n .buttons {\n flex: 0 0 auto;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\n\nexport type ContentHeaderVariant = 'Primary' | 'Secondary';\n\n@Component({\n tag: 'ix-content-header',\n styleUrl: 'content-header.scss',\n shadow: true,\n})\nexport class ContentHeader {\n /**\n * Variant of content header\n */\n @Prop() variant: ContentHeaderVariant = 'Primary';\n\n /**\n * Title of Header\n */\n @Prop() headerTitle: string;\n\n /**\n * Subtitle of Header\n */\n @Prop() headerSubtitle: string | undefined = undefined;\n\n /**\n * Display a back button\n */\n @Prop() hasBackButton: boolean = false;\n\n /**\n * Triggered when back button is clicked\n */\n @Event() backButtonClick: EventEmitter<void>;\n\n render() {\n return (\n <Host>\n {this.hasBackButton ? (\n <ix-icon-button\n class={'backButton'}\n variant=\"Primary\"\n icon=\"arrow-left\"\n ghost={true}\n onClick={() => this.backButtonClick.emit()}\n ></ix-icon-button>\n ) : null}\n\n <div class=\"titleGroup\">\n <ix-typography\n variant={this.variant === 'Secondary' ? 'large-single' : 'h2'}\n >\n {this.headerTitle}\n </ix-typography>\n {this.headerSubtitle !== undefined ? (\n <ix-typography variant={'caption'} color={'soft'} class=\"subtitle\">\n {this.headerSubtitle}\n </ix-typography>\n ) : null}\n </div>\n <div class=\"buttons\">\n <slot />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-content-header.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,iPAAiP;;MCkB7P,aAAa;;;;mBAIgB,SAAS;;0BAUJ,SAAS;yBAKrB,KAAK;;EAOtC,MAAM;IACJ,QACE,EAAC,IAAI,QACF,IAAI,CAAC,aAAa,IACjB,sBACE,KAAK,EAAE,YAAY,EACnB,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,YAAY,EACjB,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,GAC1B,IAChB,IAAI,EAER,WAAK,KAAK,EAAC,YAAY,IACrB,qBACE,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW,GAAG,cAAc,GAAG,IAAI,IAE5D,IAAI,CAAC,WAAW,CACH,EACf,IAAI,CAAC,cAAc,KAAK,SAAS,IAChC,qBAAe,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAC,UAAU,IAC/D,IAAI,CAAC,cAAc,CACN,IACd,IAAI,CACJ,EACN,WAAK,KAAK,EAAC,SAAS,IAClB,eAAQ,CACJ,CACD,EACP;GACH;;;;;;","names":[],"sources":["./src/components/content-header/content-header.scss?tag=ix-content-header&encapsulation=shadow","./src/components/content-header/content-header.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:host {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n padding: 0px;\n\n .titleGroup {\n display: flex;\n flex-direction: column;\n flex: 1 1 0%;\n }\n\n .subtitle {\n margin-top: 0.5rem;\n }\n\n .backButton {\n margin-right: 0.5rem;\n }\n\n .buttons {\n flex: 0 0 auto;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\n\nexport type ContentHeaderVariant = 'primary' | 'secondary';\n\n@Component({\n tag: 'ix-content-header',\n styleUrl: 'content-header.scss',\n shadow: true,\n})\nexport class ContentHeader {\n /**\n * Variant of content header\n */\n @Prop() variant: ContentHeaderVariant = 'primary';\n\n /**\n * Title of Header\n */\n @Prop() headerTitle: string;\n\n /**\n * Subtitle of Header\n */\n @Prop() headerSubtitle: string | undefined = undefined;\n\n /**\n * Display a back button\n */\n @Prop() hasBackButton: boolean = false;\n\n /**\n * Triggered when back button is clicked\n */\n @Event() backButtonClick: EventEmitter<void>;\n\n render() {\n return (\n <Host>\n {this.hasBackButton ? (\n <ix-icon-button\n class={'backButton'}\n variant=\"primary\"\n icon=\"arrow-left\"\n ghost={true}\n onClick={() => this.backButtonClick.emit()}\n ></ix-icon-button>\n ) : null}\n\n <div class=\"titleGroup\">\n <ix-typography\n variant={this.variant === 'secondary' ? 'large-single' : 'h2'}\n >\n {this.headerTitle}\n </ix-typography>\n {this.headerSubtitle !== undefined ? (\n <ix-typography variant={'caption'} color={'soft'} class=\"subtitle\">\n {this.headerSubtitle}\n </ix-typography>\n ) : null}\n </div>\n <div class=\"buttons\">\n <slot />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}