@siemens/ix 0.0.0-20240419081748 → 0.0.0-20240522073858

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 (838) hide show
  1. package/components/base-button.js +26 -3
  2. package/components/base-button.js.map +1 -1
  3. package/components/breadcrumb-item.js +1 -1
  4. package/components/breadcrumb-item.js.map +1 -1
  5. package/components/button.js +3 -3
  6. package/components/button.js.map +1 -1
  7. package/components/date-picker.js +4 -4
  8. package/components/date-picker.js.map +1 -1
  9. package/components/dropdown.js +139 -19
  10. package/components/dropdown.js.map +1 -1
  11. package/components/group-context-menu.js +1 -1
  12. package/components/group-context-menu.js.map +1 -1
  13. package/components/group-item.js +3 -3
  14. package/components/group-item.js.map +1 -1
  15. package/components/icon-button.js +2 -2
  16. package/components/icon-button.js.map +1 -1
  17. package/components/ix-blind.js +1 -1
  18. package/components/ix-blind.js.map +1 -1
  19. package/components/ix-category-filter.js +34 -10
  20. package/components/ix-category-filter.js.map +1 -1
  21. package/components/ix-date-dropdown.js +14 -5
  22. package/components/ix-date-dropdown.js.map +1 -1
  23. package/components/ix-event-list-item.js +5 -4
  24. package/components/ix-event-list-item.js.map +1 -1
  25. package/components/ix-event-list.js +26 -25
  26. package/components/ix-event-list.js.map +1 -1
  27. package/components/ix-form-field.js +1 -1
  28. package/components/ix-form-field.js.map +1 -1
  29. package/components/ix-group.js +16 -9
  30. package/components/ix-group.js.map +1 -1
  31. package/components/ix-icon-toggle-button.js +2 -2
  32. package/components/ix-icon-toggle-button.js.map +1 -1
  33. package/components/ix-input-group.js +1 -1
  34. package/components/ix-key-value-list.js +1 -1
  35. package/components/ix-kpi.js +3 -3
  36. package/components/ix-link-button.js +3 -3
  37. package/components/ix-map-navigation.js +2 -2
  38. package/components/ix-menu-about-item.js +1 -1
  39. package/components/ix-menu-about-news.js +4 -4
  40. package/components/ix-menu-about.js +1 -1
  41. package/components/ix-menu-about.js.map +1 -1
  42. package/components/ix-menu-avatar.js +2 -2
  43. package/components/ix-menu-category.js +5 -5
  44. package/components/ix-menu-settings-item.js +1 -1
  45. package/components/ix-menu.js +11 -11
  46. package/components/ix-menu.js.map +1 -1
  47. package/components/ix-message-bar.js +1 -1
  48. package/components/ix-modal-example.js +1 -1
  49. package/components/ix-modal-footer.js +1 -1
  50. package/components/ix-modal-loading.js +1 -1
  51. package/components/ix-pagination.js +3 -3
  52. package/components/ix-pagination.js.map +1 -1
  53. package/components/ix-pane-layout.js +1 -1
  54. package/components/ix-pill.js +4 -4
  55. package/components/ix-playground-internal.js +1 -1
  56. package/components/ix-split-button-item.js +1 -1
  57. package/components/ix-tile.js +4 -4
  58. package/components/ix-toggle-button.js +2 -2
  59. package/components/ix-toggle.js +2 -2
  60. package/components/ix-tree.js +1 -1
  61. package/components/ix-upload.js +3 -3
  62. package/components/ix-validation-tooltip.js +2 -2
  63. package/components/ix-workflow-step.js +4 -4
  64. package/components/ix-workflow-step.js.map +1 -1
  65. package/components/ix-workflow-steps.js +2 -2
  66. package/components/ix-workflow-steps.js.map +1 -1
  67. package/components/map-navigation-overlay.js +2 -2
  68. package/components/menu-avatar-item.js +1 -1
  69. package/components/menu-expand-icon.js +1 -1
  70. package/components/menu-item.js +2 -2
  71. package/components/modal-content.js +1 -1
  72. package/components/modal-header.js +1 -1
  73. package/components/row.js +1 -1
  74. package/components/select-item.js +9 -1
  75. package/components/select-item.js.map +1 -1
  76. package/components/select.js +161 -42
  77. package/components/select.js.map +1 -1
  78. package/components/spinner.js +1 -1
  79. package/components/tabs.js +2 -2
  80. package/components/time-picker.js +1 -1
  81. package/components/time-picker.js.map +1 -1
  82. package/components/toast.js +2 -2
  83. package/components/tooltip.js +5 -2
  84. package/components/tooltip.js.map +1 -1
  85. package/components/tree-item.js +4 -4
  86. package/dist/cjs/{app-globals-7ea20f68.js → app-globals-5cfdf2a0.js} +2 -2
  87. package/dist/cjs/{app-globals-7ea20f68.js.map → app-globals-5cfdf2a0.js.map} +1 -1
  88. package/dist/cjs/{base-button-2f74b19d.js → base-button-7c45a6c4.js} +27 -4
  89. package/dist/cjs/base-button-7c45a6c4.js.map +1 -0
  90. package/dist/cjs/{base-icon-button-848c77f2.js → base-icon-button-ac2fcf4b.js} +2 -2
  91. package/dist/cjs/{base-icon-button-848c77f2.js.map → base-icon-button-ac2fcf4b.js.map} +1 -1
  92. package/dist/cjs/{core-js-a890bac8.js → core-js-2fc351ee.js} +1 -1
  93. package/dist/cjs/{core-js-a890bac8.js.map → core-js-2fc351ee.js.map} +1 -1
  94. package/dist/cjs/dom-83fb07d8.js.map +1 -1
  95. package/dist/cjs/focus-9c8ffbb0.js +65 -0
  96. package/dist/cjs/focus-9c8ffbb0.js.map +1 -0
  97. package/dist/cjs/{index.es2017-0db94b91.js → index.es2017-0c2b80b6.js} +3 -3
  98. package/dist/cjs/{index.es2017-0db94b91.js.map → index.es2017-0c2b80b6.js.map} +1 -1
  99. package/dist/cjs/ix-avatar_2.cjs.entry.js +2 -2
  100. package/dist/cjs/ix-blind.cjs.entry.js +1 -1
  101. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  102. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +2 -2
  103. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
  104. package/dist/cjs/ix-button.cjs.entry.js +4 -4
  105. package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
  106. package/dist/cjs/ix-category-filter.cjs.entry.js +34 -11
  107. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  108. package/dist/cjs/ix-col_4.cjs.entry.js +5 -5
  109. package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ix-date-dropdown.cjs.entry.js +11 -4
  111. package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ix-dropdown.cjs.entry.js +78 -18
  113. package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
  114. package/dist/cjs/ix-event-list-item.cjs.entry.js +5 -4
  115. package/dist/cjs/ix-event-list-item.cjs.entry.js.map +1 -1
  116. package/dist/cjs/ix-event-list.cjs.entry.js +26 -25
  117. package/dist/cjs/ix-event-list.cjs.entry.js.map +1 -1
  118. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +8 -1
  119. package/dist/cjs/ix-filter-chip_2.cjs.entry.js.map +1 -1
  120. package/dist/cjs/ix-form-field.cjs.entry.js +1 -1
  121. package/dist/cjs/ix-form-field.cjs.entry.js.map +1 -1
  122. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +4 -4
  123. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  124. package/dist/cjs/ix-group.cjs.entry.js +13 -7
  125. package/dist/cjs/ix-group.cjs.entry.js.map +1 -1
  126. package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -5
  127. package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
  128. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +4 -4
  129. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js.map +1 -1
  130. package/dist/cjs/ix-icon.entry-e95ddded.js +1533 -0
  131. package/dist/cjs/ix-icon.entry-e95ddded.js.map +1 -0
  132. package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
  133. package/dist/cjs/ix-key-value-list.cjs.entry.js +1 -1
  134. package/dist/cjs/ix-kpi.cjs.entry.js +3 -3
  135. package/dist/cjs/ix-link-button.cjs.entry.js +3 -3
  136. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +2 -2
  137. package/dist/cjs/ix-map-navigation.cjs.entry.js +2 -2
  138. package/dist/cjs/ix-menu-about-item.cjs.entry.js +1 -1
  139. package/dist/cjs/ix-menu-about-news.cjs.entry.js +4 -4
  140. package/dist/cjs/ix-menu-about.cjs.entry.js +1 -1
  141. package/dist/cjs/ix-menu-about.cjs.entry.js.map +1 -1
  142. package/dist/cjs/ix-menu-avatar.cjs.entry.js +2 -2
  143. package/dist/cjs/ix-menu-category.cjs.entry.js +5 -5
  144. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +2 -2
  145. package/dist/cjs/ix-menu-item.cjs.entry.js +2 -2
  146. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +1 -1
  147. package/dist/cjs/ix-menu.cjs.entry.js +11 -11
  148. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  149. package/dist/cjs/ix-message-bar.cjs.entry.js +1 -1
  150. package/dist/cjs/ix-modal-content_2.cjs.entry.js +2 -2
  151. package/dist/cjs/ix-modal-example.cjs.entry.js +1 -1
  152. package/dist/cjs/ix-modal-footer.cjs.entry.js +1 -1
  153. package/dist/cjs/ix-modal-loading.cjs.entry.js +1 -1
  154. package/dist/cjs/ix-pagination.cjs.entry.js +4 -4
  155. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  156. package/dist/cjs/ix-pane-layout.cjs.entry.js +1 -1
  157. package/dist/cjs/ix-pill.cjs.entry.js +4 -4
  158. package/dist/cjs/ix-playground-internal.cjs.entry.js +1 -1
  159. package/dist/cjs/ix-select.cjs.entry.js +159 -39
  160. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  161. package/dist/cjs/ix-split-button-item.cjs.entry.js +1 -1
  162. package/dist/cjs/ix-tab-item_2.cjs.entry.js +2 -2
  163. package/dist/cjs/ix-tile.cjs.entry.js +4 -4
  164. package/dist/cjs/ix-time-picker.cjs.entry.js +1 -1
  165. package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
  166. package/dist/cjs/ix-toast.cjs.entry.js +2 -2
  167. package/dist/cjs/ix-toggle-button.cjs.entry.js +3 -3
  168. package/dist/cjs/ix-toggle.cjs.entry.js +2 -2
  169. package/dist/cjs/ix-tooltip.cjs.entry.js +5 -2
  170. package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -1
  171. package/dist/cjs/ix-tree-item.cjs.entry.js +4 -4
  172. package/dist/cjs/ix-tree.cjs.entry.js +1 -1
  173. package/dist/cjs/ix-upload.cjs.entry.js +3 -3
  174. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +2 -2
  175. package/dist/cjs/ix-workflow-step.cjs.entry.js +4 -4
  176. package/dist/cjs/ix-workflow-step.cjs.entry.js.map +1 -1
  177. package/dist/cjs/ix-workflow-steps.cjs.entry.js +2 -2
  178. package/dist/cjs/ix-workflow-steps.cjs.entry.js.map +1 -1
  179. package/dist/cjs/loader.cjs.js +2 -2
  180. package/dist/cjs/siemens-ix.cjs.js +2 -2
  181. package/dist/collection/components/action-card/action-card.js.map +1 -1
  182. package/dist/collection/components/application/application.js.map +1 -1
  183. package/dist/collection/components/application-header/application-header.js.map +1 -1
  184. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js.map +1 -1
  185. package/dist/collection/components/application-header/test/application-header.ct.js.map +1 -1
  186. package/dist/collection/components/application-sidebar/application-sidebar.js.map +1 -1
  187. package/dist/collection/components/application-sidebar/events.js.map +1 -1
  188. package/dist/collection/components/avatar/avatar.js.map +1 -1
  189. package/dist/collection/components/avatar/test/avatar.ct.js.map +1 -1
  190. package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
  191. package/dist/collection/components/blind/blind.css +1 -1
  192. package/dist/collection/components/blind/blind.js.map +1 -1
  193. package/dist/collection/components/blind/test/blind.ct.js.map +1 -1
  194. package/dist/collection/components/breadcrumb/breadcrumb.js.map +1 -1
  195. package/dist/collection/components/breadcrumb/test/breadcrumb.ct.js.map +1 -1
  196. package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +181 -0
  197. package/dist/collection/components/breadcrumb-item/breadcrumb-item.js.map +1 -1
  198. package/dist/collection/components/button/base-button.js +25 -2
  199. package/dist/collection/components/button/base-button.js.map +1 -1
  200. package/dist/collection/components/button/button.css +181 -0
  201. package/dist/collection/components/button/button.js +7 -4
  202. package/dist/collection/components/button/button.js.map +1 -1
  203. package/dist/collection/components/button/test/button.ct.js +11 -0
  204. package/dist/collection/components/button/test/button.ct.js.map +1 -1
  205. package/dist/collection/components/button/test/button.spec.js.map +1 -1
  206. package/dist/collection/components/card/card.js.map +1 -1
  207. package/dist/collection/components/card-accordion/card-accordion.js.map +1 -1
  208. package/dist/collection/components/card-content/card-content.js.map +1 -1
  209. package/dist/collection/components/card-list/card-list.js.map +1 -1
  210. package/dist/collection/components/card-title/card-title.js.map +1 -1
  211. package/dist/collection/components/category-filter/category-filter.css +241 -24
  212. package/dist/collection/components/category-filter/category-filter.js +58 -9
  213. package/dist/collection/components/category-filter/category-filter.js.map +1 -1
  214. package/dist/collection/components/category-filter/filter-state.js.map +1 -1
  215. package/dist/collection/components/category-filter/input-state.js.map +1 -1
  216. package/dist/collection/components/category-filter/logical-filter-operator.js.map +1 -1
  217. package/dist/collection/components/chip/chip.js.map +1 -1
  218. package/dist/collection/components/col/col.js.map +1 -1
  219. package/dist/collection/components/content/content.js.map +1 -1
  220. package/dist/collection/components/content-header/content-header.js.map +1 -1
  221. package/dist/collection/components/css-grid/builder.js.map +1 -1
  222. package/dist/collection/components/css-grid/css-grid-item.js.map +1 -1
  223. package/dist/collection/components/css-grid/css-grid.js.map +1 -1
  224. package/dist/collection/components/date-dropdown/date-dropdown.js +33 -3
  225. package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
  226. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js +43 -0
  227. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js.map +1 -1
  228. package/dist/collection/components/date-picker/date-picker.js +4 -4
  229. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  230. package/dist/collection/components/date-picker/test/date-picker.ct.js.map +1 -1
  231. package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
  232. package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
  233. package/dist/collection/components/datetime-picker/test/datetime-picker.ct.js.map +1 -1
  234. package/dist/collection/components/divider/divider.js.map +1 -1
  235. package/dist/collection/components/drawer/drawer.js.map +1 -1
  236. package/dist/collection/components/drawer/test/drawer.ct.js.map +1 -1
  237. package/dist/collection/components/drawer/test/drawer.spec.js.map +1 -1
  238. package/dist/collection/components/dropdown/dropdown-controller.js +19 -6
  239. package/dist/collection/components/dropdown/dropdown-controller.js.map +1 -1
  240. package/dist/collection/components/dropdown/dropdown.js +80 -12
  241. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  242. package/dist/collection/components/dropdown/placement.js.map +1 -1
  243. package/dist/collection/components/dropdown/test/dropdown-controller.spec.js.map +1 -1
  244. package/dist/collection/components/dropdown/test/dropdown.ct.js +42 -0
  245. package/dist/collection/components/dropdown/test/dropdown.ct.js.map +1 -1
  246. package/dist/collection/components/dropdown-button/dropdown-button.js +1 -1
  247. package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -1
  248. package/dist/collection/components/dropdown-header/dropdown-header.js.map +1 -1
  249. package/dist/collection/components/dropdown-item/dropdown-item.js.map +1 -1
  250. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js.map +1 -1
  251. package/dist/collection/components/empty-state/empty-state.js.map +1 -1
  252. package/dist/collection/components/event-list/event-list.js +26 -25
  253. package/dist/collection/components/event-list/event-list.js.map +1 -1
  254. package/dist/collection/components/event-list/test/event-list.ct.js +61 -0
  255. package/dist/collection/components/event-list/test/event-list.ct.js.map +1 -0
  256. package/dist/collection/components/event-list/test/event-list.spec.js +0 -47
  257. package/dist/collection/components/event-list/test/event-list.spec.js.map +1 -1
  258. package/dist/collection/components/event-list-item/event-list-item.js +5 -4
  259. package/dist/collection/components/event-list-item/event-list-item.js.map +1 -1
  260. package/dist/collection/components/event-list-item/test/event-list-item.spec.js.map +1 -1
  261. package/dist/collection/components/expanding-search/expanding-search.js.map +1 -1
  262. package/dist/collection/components/expanding-search/test/expanding-search.ct.js.map +1 -1
  263. package/dist/collection/components/expanding-search/test/expanding-search.spec.js.map +1 -1
  264. package/dist/collection/components/filter-chip/filter-chip.js.map +1 -1
  265. package/dist/collection/components/flip-tile/flip-tile-state.js.map +1 -1
  266. package/dist/collection/components/flip-tile/flip-tile.js.map +1 -1
  267. package/dist/collection/components/flip-tile/test/flip-tile.ct.js.map +1 -1
  268. package/dist/collection/components/flip-tile-content/flip-tile-content.js.map +1 -1
  269. package/dist/collection/components/form-field/form-field.css +30 -12
  270. package/dist/collection/components/form-field/form-field.js.map +1 -1
  271. package/dist/collection/components/grid/layout-grid.js.map +1 -1
  272. package/dist/collection/components/group/group-context-menu.css +3 -0
  273. package/dist/collection/components/group/group-context-menu.js.map +1 -1
  274. package/dist/collection/components/group/group.js +16 -9
  275. package/dist/collection/components/group/group.js.map +1 -1
  276. package/dist/collection/components/group/test/group.ct.js +47 -0
  277. package/dist/collection/components/group/test/group.ct.js.map +1 -0
  278. package/dist/collection/components/group-item/group-item.css +9 -4
  279. package/dist/collection/components/group-item/group-item.js +2 -2
  280. package/dist/collection/components/group-item/group-item.js.map +1 -1
  281. package/dist/collection/components/icon-button/base-icon-button.js.map +1 -1
  282. package/dist/collection/components/icon-button/icon-button.css +181 -0
  283. package/dist/collection/components/icon-button/icon-button.js +6 -3
  284. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  285. package/dist/collection/components/icon-button/test/icon-button.ct.js.map +1 -1
  286. package/dist/collection/components/icon-button/test/icon-button.spec.js.map +1 -1
  287. package/dist/collection/components/icon-toggle-button/icon-toggle-button.css +181 -0
  288. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +2 -2
  289. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js.map +1 -1
  290. package/dist/collection/components/input-group/input-group.js +1 -1
  291. package/dist/collection/components/input-group/input-group.js.map +1 -1
  292. package/dist/collection/components/input-group/tests/input-group.ct.js.map +1 -1
  293. package/dist/collection/components/key-value/key-value.js.map +1 -1
  294. package/dist/collection/components/key-value-list/key-value-list.js +1 -1
  295. package/dist/collection/components/key-value-list/key-value-list.js.map +1 -1
  296. package/dist/collection/components/kpi/kpi.js +3 -3
  297. package/dist/collection/components/kpi/kpi.js.map +1 -1
  298. package/dist/collection/components/link-button/link-button.js +3 -3
  299. package/dist/collection/components/link-button/link-button.js.map +1 -1
  300. package/dist/collection/components/map-navigation/map-navigation.js +2 -2
  301. package/dist/collection/components/map-navigation/map-navigation.js.map +1 -1
  302. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
  303. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js.map +1 -1
  304. package/dist/collection/components/menu/menu-expand-icon.js +1 -1
  305. package/dist/collection/components/menu/menu-expand-icon.js.map +1 -1
  306. package/dist/collection/components/menu/menu.js +11 -11
  307. package/dist/collection/components/menu/menu.js.map +1 -1
  308. package/dist/collection/components/menu/test/menu.ct.js.map +1 -1
  309. package/dist/collection/components/menu-about/menu-about.js +2 -2
  310. package/dist/collection/components/menu-about/menu-about.js.map +1 -1
  311. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  312. package/dist/collection/components/menu-about-item/menu-about-item.js.map +1 -1
  313. package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
  314. package/dist/collection/components/menu-about-news/menu-about-news.js.map +1 -1
  315. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
  316. package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
  317. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
  318. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js.map +1 -1
  319. package/dist/collection/components/menu-avatar-item/test/menu-avatar-item.ct.js.map +1 -1
  320. package/dist/collection/components/menu-category/enter-leave.js.map +1 -1
  321. package/dist/collection/components/menu-category/menu-category.js +5 -5
  322. package/dist/collection/components/menu-category/menu-category.js.map +1 -1
  323. package/dist/collection/components/menu-category/test/menu-category.ct.js.map +1 -1
  324. package/dist/collection/components/menu-item/menu-item.js +2 -2
  325. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  326. package/dist/collection/components/menu-item/test/menu-item.ct.js.map +1 -1
  327. package/dist/collection/components/menu-settings/menu-settings.js.map +1 -1
  328. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  329. package/dist/collection/components/menu-settings-item/menu-settings-item.js.map +1 -1
  330. package/dist/collection/components/message-bar/message-bar.js +1 -1
  331. package/dist/collection/components/message-bar/message-bar.js.map +1 -1
  332. package/dist/collection/components/message-bar/test/message-bar.spec.js.map +1 -1
  333. package/dist/collection/components/modal/modal.js.map +1 -1
  334. package/dist/collection/components/modal/test/modal.ct.js.map +1 -1
  335. package/dist/collection/components/modal-content/modal-content.js +1 -1
  336. package/dist/collection/components/modal-content/modal-content.js.map +1 -1
  337. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  338. package/dist/collection/components/modal-footer/modal-footer.js.map +1 -1
  339. package/dist/collection/components/modal-header/modal-header.js +1 -1
  340. package/dist/collection/components/modal-header/modal-header.js.map +1 -1
  341. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  342. package/dist/collection/components/modal-loading/modal-loading.js.map +1 -1
  343. package/dist/collection/components/pagination/pagination.css +181 -0
  344. package/dist/collection/components/pagination/pagination.js +2 -2
  345. package/dist/collection/components/pagination/pagination.js.map +1 -1
  346. package/dist/collection/components/pagination/test/pagination.ct.js.map +1 -1
  347. package/dist/collection/components/pagination/test/pagination.spec.js.map +1 -1
  348. package/dist/collection/components/pane/pane.js.map +1 -1
  349. package/dist/collection/components/pane/test/panes.ct.js.map +1 -1
  350. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  351. package/dist/collection/components/pane-layout/pane-layout.js.map +1 -1
  352. package/dist/collection/components/pane-layout/test/pane-layout.ct.js.map +1 -1
  353. package/dist/collection/components/pill/pill.js +4 -4
  354. package/dist/collection/components/pill/pill.js.map +1 -1
  355. package/dist/collection/components/playground/example-modal.js +1 -1
  356. package/dist/collection/components/playground/example-modal.js.map +1 -1
  357. package/dist/collection/components/playground/playground.js +1 -1
  358. package/dist/collection/components/playground/playground.js.map +1 -1
  359. package/dist/collection/components/push-card/push-card.js.map +1 -1
  360. package/dist/collection/components/row/row.js +1 -1
  361. package/dist/collection/components/row/row.js.map +1 -1
  362. package/dist/collection/components/select/select.css +27 -9
  363. package/dist/collection/components/select/select.js +159 -38
  364. package/dist/collection/components/select/select.js.map +1 -1
  365. package/dist/collection/components/select/test/select.ct.js +342 -0
  366. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  367. package/dist/collection/components/select-item/events.js.map +1 -1
  368. package/dist/collection/components/select-item/select-item.js +32 -1
  369. package/dist/collection/components/select-item/select-item.js.map +1 -1
  370. package/dist/collection/components/select-item/test/select-item.spec.js.map +1 -1
  371. package/dist/collection/components/slider/slider.js.map +1 -1
  372. package/dist/collection/components/slider/test/slider.ct.js.map +1 -1
  373. package/dist/collection/components/spinner/spinner.js +1 -1
  374. package/dist/collection/components/spinner/spinner.js.map +1 -1
  375. package/dist/collection/components/split-button/split-button.js +1 -1
  376. package/dist/collection/components/split-button/split-button.js.map +1 -1
  377. package/dist/collection/components/split-button-item/split-button-item.js +1 -1
  378. package/dist/collection/components/split-button-item/split-button-item.js.map +1 -1
  379. package/dist/collection/components/tab-item/tab-item.js.map +1 -1
  380. package/dist/collection/components/tabs/tabs.js +2 -2
  381. package/dist/collection/components/tabs/tabs.js.map +1 -1
  382. package/dist/collection/components/tabs/test/tabs.ct.js.map +1 -1
  383. package/dist/collection/components/tile/tile.js +4 -4
  384. package/dist/collection/components/tile/tile.js.map +1 -1
  385. package/dist/collection/components/time-picker/test/time-picker.ct.js.map +1 -1
  386. package/dist/collection/components/time-picker/time-picker.css +30 -12
  387. package/dist/collection/components/time-picker/time-picker.js.map +1 -1
  388. package/dist/collection/components/toast/toast-container.js.map +1 -1
  389. package/dist/collection/components/toast/toast-utils.js.map +1 -1
  390. package/dist/collection/components/toast/toast.js +2 -2
  391. package/dist/collection/components/toast/toast.js.map +1 -1
  392. package/dist/collection/components/toggle/test/toggle.ct.js.map +1 -1
  393. package/dist/collection/components/toggle/toggle.js +2 -2
  394. package/dist/collection/components/toggle/toggle.js.map +1 -1
  395. package/dist/collection/components/toggle-button/toggle-button.js +3 -3
  396. package/dist/collection/components/toggle-button/toggle-button.js.map +1 -1
  397. package/dist/collection/components/tooltip/test/tooltip.ct.js.map +1 -1
  398. package/dist/collection/components/tooltip/tooltip-controller.js.map +1 -1
  399. package/dist/collection/components/tooltip/tooltip.js +5 -2
  400. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  401. package/dist/collection/components/tree/test/tree.ct.js.map +1 -1
  402. package/dist/collection/components/tree/tree-model.js.map +1 -1
  403. package/dist/collection/components/tree/tree.js +1 -1
  404. package/dist/collection/components/tree/tree.js.map +1 -1
  405. package/dist/collection/components/tree-item/default-tree-item.js.map +1 -1
  406. package/dist/collection/components/tree-item/tree-item.js +4 -4
  407. package/dist/collection/components/tree-item/tree-item.js.map +1 -1
  408. package/dist/collection/components/typography/test/ix-typography.spec.js.map +1 -1
  409. package/dist/collection/components/typography/type-mapping.js.map +1 -1
  410. package/dist/collection/components/typography/typography.js.map +1 -1
  411. package/dist/collection/components/upload/upload-file-state.js.map +1 -1
  412. package/dist/collection/components/upload/upload.js +3 -3
  413. package/dist/collection/components/upload/upload.js.map +1 -1
  414. package/dist/collection/components/utils/a11y.js.map +1 -1
  415. package/dist/collection/components/utils/animation.js.map +1 -1
  416. package/dist/collection/components/utils/app-switch/index.js.map +1 -1
  417. package/dist/collection/components/utils/application-layout/context.js.map +1 -1
  418. package/dist/collection/components/utils/application-layout/index.js.map +1 -1
  419. package/dist/collection/components/utils/application-layout/service.js.map +1 -1
  420. package/dist/collection/components/utils/breakpoints.js.map +1 -1
  421. package/dist/collection/components/utils/condition-checks.js.map +1 -1
  422. package/dist/collection/components/utils/context.js.map +1 -1
  423. package/dist/collection/components/utils/debounce.js.map +1 -1
  424. package/dist/collection/components/utils/delegate.js.map +1 -1
  425. package/dist/collection/components/utils/focus.js +60 -0
  426. package/dist/collection/components/utils/focus.js.map +1 -0
  427. package/dist/collection/components/utils/internal/component.js.map +1 -1
  428. package/dist/collection/components/utils/internal/index.js.map +1 -1
  429. package/dist/collection/components/utils/listener.js.map +1 -1
  430. package/dist/collection/components/utils/make-ref.js.map +1 -1
  431. package/dist/collection/components/utils/menu-service/menu-service.js.map +1 -1
  432. package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js.map +1 -1
  433. package/dist/collection/components/utils/menu-tabs/menu-tabs-utils.js.map +1 -1
  434. package/dist/collection/components/utils/modal/index.js.map +1 -1
  435. package/dist/collection/components/utils/modal/loading.js.map +1 -1
  436. package/dist/collection/components/utils/modal/message.js.map +1 -1
  437. package/dist/collection/components/utils/modal/modal.js.map +1 -1
  438. package/dist/collection/components/utils/mutation-observer.js.map +1 -1
  439. package/dist/collection/components/utils/notification-color.js.map +1 -1
  440. package/dist/collection/components/utils/overlay.js.map +1 -1
  441. package/dist/collection/components/utils/requestAnimationFrame.js.map +1 -1
  442. package/dist/collection/components/utils/rwd.util.js.map +1 -1
  443. package/dist/collection/components/utils/shadow-dom.js.map +1 -1
  444. package/dist/collection/components/utils/theme-switcher.js.map +1 -1
  445. package/dist/collection/components/utils/typed-event.js.map +1 -1
  446. package/dist/collection/components/utils/waitForElement.js.map +1 -1
  447. package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
  448. package/dist/collection/components/validation-tooltip/validation-tooltip.js.map +1 -1
  449. package/dist/collection/components/workflow-step/workflow-step.css +27 -7
  450. package/dist/collection/components/workflow-step/workflow-step.js +3 -3
  451. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  452. package/dist/collection/components/workflow-steps/test/workflow-steps.ct.js.map +1 -1
  453. package/dist/collection/components/workflow-steps/test/workflow-steps.spec.js.map +1 -1
  454. package/dist/collection/components/workflow-steps/workflow-steps.css +9 -1
  455. package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
  456. package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
  457. package/dist/collection/index.js.map +1 -1
  458. package/dist/collection/setup.js.map +1 -1
  459. package/dist/collection/tests/action-card/action-card.e2e.js.map +1 -1
  460. package/dist/collection/tests/application/application.e2e.js.map +1 -1
  461. package/dist/collection/tests/application-header/application-header.e2e.js.map +1 -1
  462. package/dist/collection/tests/avatar/avatar.e2e.js.map +1 -1
  463. package/dist/collection/tests/basic-navigation/basic-navigation.e2e.js.map +1 -1
  464. package/dist/collection/tests/blind/blind.e2e.js.map +1 -1
  465. package/dist/collection/tests/breadcrumb/breadcrumb.e2e.js.map +1 -1
  466. package/dist/collection/tests/button/button.e2e.js.map +1 -1
  467. package/dist/collection/tests/card/card.e2e.js.map +1 -1
  468. package/dist/collection/tests/card-list/card-list.e2e.js.map +1 -1
  469. package/dist/collection/tests/category-filter/category-filter.e2e.js +30 -0
  470. package/dist/collection/tests/category-filter/category-filter.e2e.js.map +1 -1
  471. package/dist/collection/tests/checkbox/checkbox.e2e.js.map +1 -1
  472. package/dist/collection/tests/chip/chip.e2e.js.map +1 -1
  473. package/dist/collection/tests/content-header/content-header.e2e.js.map +1 -1
  474. package/dist/collection/tests/date-dropdown/date-dropdown.e2e.js.map +1 -1
  475. package/dist/collection/tests/date-picker/date-picker.e2e.js.map +1 -1
  476. package/dist/collection/tests/date-picker-rework/date-picker-rework.e2e.js.map +1 -1
  477. package/dist/collection/tests/datetime-picker/datetime-picker.e2e.js.map +1 -1
  478. package/dist/collection/tests/datetime-picker-rework/datetime-picker-rework.e2e.js.map +1 -1
  479. package/dist/collection/tests/divider/divider.e2e.js.map +1 -1
  480. package/dist/collection/tests/drawer/drawer.e2e.js.map +1 -1
  481. package/dist/collection/tests/dropdown/dropdown.e2e.js.map +1 -1
  482. package/dist/collection/tests/dropdown-button/dropdown-button.e2e.js.map +1 -1
  483. package/dist/collection/tests/dropdown-quick-actions/dropdown-quick-actions.e2e.js.map +1 -1
  484. package/dist/collection/tests/empty-state/empty-state.e2e.js.map +1 -1
  485. package/dist/collection/tests/event-list/event-list.e2e.js.map +1 -1
  486. package/dist/collection/tests/expanding-search/expanding-search.e2e.js.map +1 -1
  487. package/dist/collection/tests/flip-tile/flip-tile.e2e.js.map +1 -1
  488. package/dist/collection/tests/fonts/fonts.e2e.js.map +1 -1
  489. package/dist/collection/tests/group/group.e2e.js.map +1 -1
  490. package/dist/collection/tests/html-table/html-table.e2e.js.map +1 -1
  491. package/dist/collection/tests/icon/icon.e2e.js.map +1 -1
  492. package/dist/collection/tests/icon-button/icon-button.e2e.js +34 -2
  493. package/dist/collection/tests/icon-button/icon-button.e2e.js.map +1 -1
  494. package/dist/collection/tests/icon-toggle-button/toggle-button.e2e.js.map +1 -1
  495. package/dist/collection/tests/input/input.e2e.js.map +1 -1
  496. package/dist/collection/tests/input-group/input-group.e2e.js.map +1 -1
  497. package/dist/collection/tests/key-value/key-value.e2e.js.map +1 -1
  498. package/dist/collection/tests/key-value-list/key-value-list.e2e.js.map +1 -1
  499. package/dist/collection/tests/kpi/kpi.e2e.js.map +1 -1
  500. package/dist/collection/tests/layout-grid/layout-grid.e2e.js.map +1 -1
  501. package/dist/collection/tests/link-button/link-button.e2e.js.map +1 -1
  502. package/dist/collection/tests/map-navigation/map-navigation.e2e.js.map +1 -1
  503. package/dist/collection/tests/map-navigation-overlay/map-navigation.e2e.js.map +1 -1
  504. package/dist/collection/tests/menu/menu.e2e.js.map +1 -1
  505. package/dist/collection/tests/menu-about/menu-about.e2e.js.map +1 -1
  506. package/dist/collection/tests/menu-about-news/menu-about-news.e2e.js.map +1 -1
  507. package/dist/collection/tests/menu-avatar/menu-avatar.e2e.js.map +1 -1
  508. package/dist/collection/tests/menu-settings/menu-settings.e2e.js.map +1 -1
  509. package/dist/collection/tests/message-bar/message-bar.e2e.js.map +1 -1
  510. package/dist/collection/tests/modal/modal.e2e.js.map +1 -1
  511. package/dist/collection/tests/pagination/pagination.e2e.js.map +1 -1
  512. package/dist/collection/tests/panes/panes.e2e.js.map +1 -1
  513. package/dist/collection/tests/pill/pill.e2e.js.map +1 -1
  514. package/dist/collection/tests/push-card/push-card.e2e.js.map +1 -1
  515. package/dist/collection/tests/radiobutton/radiobutton.e2e.js.map +1 -1
  516. package/dist/collection/tests/select/select.e2e.js +21 -0
  517. package/dist/collection/tests/select/select.e2e.js.map +1 -1
  518. package/dist/collection/tests/slider/slider.e2e.js.map +1 -1
  519. package/dist/collection/tests/spinner/spinner.e2e.js.map +1 -1
  520. package/dist/collection/tests/split-button/split-button.e2e.js.map +1 -1
  521. package/dist/collection/tests/tabs/tabs.e2e.js.map +1 -1
  522. package/dist/collection/tests/textarea/textarea.e2e.js.map +1 -1
  523. package/dist/collection/tests/tile/tile.e2e.js.map +1 -1
  524. package/dist/collection/tests/time-picker-rework/time-picker-rework.e2e.js.map +1 -1
  525. package/dist/collection/tests/toast/toast.e2e.js.map +1 -1
  526. package/dist/collection/tests/toggle/toggle.e2e.js.map +1 -1
  527. package/dist/collection/tests/toggle-button/toggle-button.e2e.js.map +1 -1
  528. package/dist/collection/tests/tooltip/tooltip.e2e.js.map +1 -1
  529. package/dist/collection/tests/tree/tree.e2e.js.map +1 -1
  530. package/dist/collection/tests/typography/typography.e2e.js.map +1 -1
  531. package/dist/collection/tests/upload/upload.e2e.js.map +1 -1
  532. package/dist/collection/tests/utils/test/index.js.map +1 -1
  533. package/dist/collection/tests/utils/test/page.js.map +1 -1
  534. package/dist/collection/tests/workflow-steps/workflow-steps.e2e.js.map +1 -1
  535. package/dist/esm/{app-globals-bdfc5499.js → app-globals-0cd07cd9.js} +2 -2
  536. package/dist/esm/{app-globals-bdfc5499.js.map → app-globals-0cd07cd9.js.map} +1 -1
  537. package/dist/esm/{base-button-37b915d6.js → base-button-3ac703a7.js} +27 -4
  538. package/dist/esm/base-button-3ac703a7.js.map +1 -0
  539. package/dist/esm/{base-icon-button-976ef0f6.js → base-icon-button-59eb1fe5.js} +2 -2
  540. package/dist/esm/{base-icon-button-976ef0f6.js.map → base-icon-button-59eb1fe5.js.map} +1 -1
  541. package/dist/esm/{core-js-1c33b685.js → core-js-78b486a8.js} +1 -1
  542. package/dist/esm/{core-js-1c33b685.js.map → core-js-78b486a8.js.map} +1 -1
  543. package/dist/esm/dom-64ac48b5.js.map +1 -1
  544. package/dist/esm/focus-d4d3abaf.js +63 -0
  545. package/dist/esm/focus-d4d3abaf.js.map +1 -0
  546. package/dist/esm/{index.es2017-45304832.js → index.es2017-93ac816c.js} +3 -3
  547. package/dist/esm/{index.es2017-45304832.js.map → index.es2017-93ac816c.js.map} +1 -1
  548. package/dist/esm/ix-avatar_2.entry.js +2 -2
  549. package/dist/esm/ix-blind.entry.js +1 -1
  550. package/dist/esm/ix-blind.entry.js.map +1 -1
  551. package/dist/esm/ix-breadcrumb-item.entry.js +2 -2
  552. package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
  553. package/dist/esm/ix-button.entry.js +4 -4
  554. package/dist/esm/ix-button.entry.js.map +1 -1
  555. package/dist/esm/ix-category-filter.entry.js +34 -11
  556. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  557. package/dist/esm/ix-col_4.entry.js +5 -5
  558. package/dist/esm/ix-col_4.entry.js.map +1 -1
  559. package/dist/esm/ix-date-dropdown.entry.js +11 -4
  560. package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
  561. package/dist/esm/ix-dropdown.entry.js +78 -18
  562. package/dist/esm/ix-dropdown.entry.js.map +1 -1
  563. package/dist/esm/ix-event-list-item.entry.js +5 -4
  564. package/dist/esm/ix-event-list-item.entry.js.map +1 -1
  565. package/dist/esm/ix-event-list.entry.js +26 -25
  566. package/dist/esm/ix-event-list.entry.js.map +1 -1
  567. package/dist/esm/ix-filter-chip_2.entry.js +8 -1
  568. package/dist/esm/ix-filter-chip_2.entry.js.map +1 -1
  569. package/dist/esm/ix-form-field.entry.js +1 -1
  570. package/dist/esm/ix-form-field.entry.js.map +1 -1
  571. package/dist/esm/ix-group-context-menu_2.entry.js +4 -4
  572. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  573. package/dist/esm/ix-group.entry.js +14 -8
  574. package/dist/esm/ix-group.entry.js.map +1 -1
  575. package/dist/esm/ix-icon-button_2.entry.js +5 -5
  576. package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
  577. package/dist/esm/ix-icon-toggle-button.entry.js +4 -4
  578. package/dist/esm/ix-icon-toggle-button.entry.js.map +1 -1
  579. package/dist/esm/ix-icon.entry-621b700a.js +1531 -0
  580. package/dist/esm/ix-icon.entry-621b700a.js.map +1 -0
  581. package/dist/esm/ix-input-group.entry.js +1 -1
  582. package/dist/esm/ix-key-value-list.entry.js +1 -1
  583. package/dist/esm/ix-kpi.entry.js +3 -3
  584. package/dist/esm/ix-link-button.entry.js +3 -3
  585. package/dist/esm/ix-map-navigation-overlay.entry.js +2 -2
  586. package/dist/esm/ix-map-navigation.entry.js +2 -2
  587. package/dist/esm/ix-menu-about-item.entry.js +1 -1
  588. package/dist/esm/ix-menu-about-news.entry.js +4 -4
  589. package/dist/esm/ix-menu-about.entry.js +1 -1
  590. package/dist/esm/ix-menu-about.entry.js.map +1 -1
  591. package/dist/esm/ix-menu-avatar.entry.js +2 -2
  592. package/dist/esm/ix-menu-category.entry.js +5 -5
  593. package/dist/esm/ix-menu-expand-icon.entry.js +2 -2
  594. package/dist/esm/ix-menu-item.entry.js +2 -2
  595. package/dist/esm/ix-menu-settings-item.entry.js +1 -1
  596. package/dist/esm/ix-menu.entry.js +11 -11
  597. package/dist/esm/ix-menu.entry.js.map +1 -1
  598. package/dist/esm/ix-message-bar.entry.js +1 -1
  599. package/dist/esm/ix-modal-content_2.entry.js +2 -2
  600. package/dist/esm/ix-modal-example.entry.js +1 -1
  601. package/dist/esm/ix-modal-footer.entry.js +1 -1
  602. package/dist/esm/ix-modal-loading.entry.js +1 -1
  603. package/dist/esm/ix-pagination.entry.js +4 -4
  604. package/dist/esm/ix-pagination.entry.js.map +1 -1
  605. package/dist/esm/ix-pane-layout.entry.js +1 -1
  606. package/dist/esm/ix-pill.entry.js +4 -4
  607. package/dist/esm/ix-playground-internal.entry.js +1 -1
  608. package/dist/esm/ix-select.entry.js +159 -39
  609. package/dist/esm/ix-select.entry.js.map +1 -1
  610. package/dist/esm/ix-split-button-item.entry.js +1 -1
  611. package/dist/esm/ix-tab-item_2.entry.js +2 -2
  612. package/dist/esm/ix-tile.entry.js +4 -4
  613. package/dist/esm/ix-time-picker.entry.js +1 -1
  614. package/dist/esm/ix-time-picker.entry.js.map +1 -1
  615. package/dist/esm/ix-toast.entry.js +2 -2
  616. package/dist/esm/ix-toggle-button.entry.js +3 -3
  617. package/dist/esm/ix-toggle.entry.js +2 -2
  618. package/dist/esm/ix-tooltip.entry.js +5 -2
  619. package/dist/esm/ix-tooltip.entry.js.map +1 -1
  620. package/dist/esm/ix-tree-item.entry.js +4 -4
  621. package/dist/esm/ix-tree.entry.js +1 -1
  622. package/dist/esm/ix-upload.entry.js +3 -3
  623. package/dist/esm/ix-validation-tooltip.entry.js +2 -2
  624. package/dist/esm/ix-workflow-step.entry.js +4 -4
  625. package/dist/esm/ix-workflow-step.entry.js.map +1 -1
  626. package/dist/esm/ix-workflow-steps.entry.js +2 -2
  627. package/dist/esm/ix-workflow-steps.entry.js.map +1 -1
  628. package/dist/esm/loader.js +2 -2
  629. package/dist/esm/siemens-ix.js +2 -2
  630. package/dist/siemens-ix/p-01b8b98c.entry.js +2 -0
  631. package/dist/siemens-ix/{p-9fcf9dcd.entry.js.map → p-01b8b98c.entry.js.map} +1 -1
  632. package/dist/siemens-ix/{p-d2ee87ae.entry.js → p-0a1bfcfc.entry.js} +2 -2
  633. package/dist/siemens-ix/p-0fee2dd5.entry.js +2 -0
  634. package/dist/siemens-ix/p-0fee2dd5.entry.js.map +1 -0
  635. package/dist/siemens-ix/{p-9c03b231.entry.js → p-114bb49b.entry.js} +2 -2
  636. package/dist/siemens-ix/p-18a1c4dd.entry.js +2 -0
  637. package/dist/siemens-ix/p-18a1c4dd.entry.js.map +1 -0
  638. package/dist/siemens-ix/p-18a27007.entry.js +2 -0
  639. package/dist/siemens-ix/p-18a27007.entry.js.map +1 -0
  640. package/dist/siemens-ix/{p-84430d2c.js → p-1f6df0c6.js} +2 -2
  641. package/dist/siemens-ix/{p-84430d2c.js.map → p-1f6df0c6.js.map} +1 -1
  642. package/dist/siemens-ix/p-213f16d5.entry.js +2 -0
  643. package/dist/siemens-ix/p-213f16d5.entry.js.map +1 -0
  644. package/dist/siemens-ix/{p-7702a8c2.js → p-235c14ca.js} +2 -2
  645. package/dist/siemens-ix/p-2459f98f.entry.js +2 -0
  646. package/dist/siemens-ix/p-2459f98f.entry.js.map +1 -0
  647. package/dist/siemens-ix/p-2c14670e.entry.js +2 -0
  648. package/dist/siemens-ix/p-2c14670e.entry.js.map +1 -0
  649. package/dist/siemens-ix/{p-d76ee9ff.entry.js → p-306c5ab2.entry.js} +2 -2
  650. package/dist/siemens-ix/{p-f2856faf.entry.js → p-30e8a26a.entry.js} +2 -2
  651. package/dist/siemens-ix/{p-1450ba99.entry.js → p-3b8e4fe5.entry.js} +2 -2
  652. package/dist/siemens-ix/{p-96615442.entry.js → p-418959d3.entry.js} +2 -2
  653. package/dist/siemens-ix/{p-96615442.entry.js.map → p-418959d3.entry.js.map} +1 -1
  654. package/dist/siemens-ix/p-4290098e.entry.js +2 -0
  655. package/dist/siemens-ix/{p-cb1c0d63.entry.js.map → p-4290098e.entry.js.map} +1 -1
  656. package/dist/siemens-ix/p-43a58a77.entry.js +2 -0
  657. package/dist/siemens-ix/{p-7289b0be.entry.js.map → p-43a58a77.entry.js.map} +1 -1
  658. package/dist/siemens-ix/{p-ca838b5c.entry.js → p-493cb880.entry.js} +2 -2
  659. package/dist/siemens-ix/p-493cb880.entry.js.map +1 -0
  660. package/dist/siemens-ix/{p-f17e4cce.entry.js → p-4cf6e817.entry.js} +2 -2
  661. package/dist/siemens-ix/p-4fd11865.entry.js +2 -0
  662. package/dist/siemens-ix/p-56bbdae4.entry.js +2 -0
  663. package/dist/siemens-ix/p-5d43cae8.js.map +1 -1
  664. package/dist/siemens-ix/{p-0d268489.entry.js → p-5f08da2c.entry.js} +2 -2
  665. package/dist/siemens-ix/{p-26789c86.entry.js → p-601cfc6a.entry.js} +2 -2
  666. package/dist/siemens-ix/p-678d821f.entry.js +2 -0
  667. package/dist/siemens-ix/{p-b1ec7f32.entry.js → p-6ea6396e.entry.js} +2 -2
  668. package/dist/siemens-ix/{p-7c1fd9a0.entry.js → p-6eb4eefc.entry.js} +2 -2
  669. package/dist/siemens-ix/{p-af46164c.entry.js → p-784fe260.entry.js} +2 -2
  670. package/dist/siemens-ix/p-8362e966.js +2 -0
  671. package/dist/siemens-ix/p-8362e966.js.map +1 -0
  672. package/dist/siemens-ix/{p-d77fa665.entry.js → p-90c55341.entry.js} +2 -2
  673. package/dist/siemens-ix/p-90c55341.entry.js.map +1 -0
  674. package/dist/siemens-ix/p-96d2d21f.entry.js +2 -0
  675. package/dist/siemens-ix/p-96d2d21f.entry.js.map +1 -0
  676. package/dist/siemens-ix/{p-c5762d6c.entry.js → p-9dabe2f7.entry.js} +2 -2
  677. package/dist/siemens-ix/p-a147b152.entry.js +2 -0
  678. package/dist/siemens-ix/p-a147b152.entry.js.map +1 -0
  679. package/dist/siemens-ix/{p-b5c53faf.js → p-a2200306.js} +1 -1
  680. package/dist/siemens-ix/{p-b5c53faf.js.map → p-a2200306.js.map} +1 -1
  681. package/dist/siemens-ix/p-a35d02ea.entry.js +2 -0
  682. package/dist/siemens-ix/{p-31cc5367.entry.js → p-a3ad98bc.entry.js} +2 -2
  683. package/dist/siemens-ix/p-a6fbea5b.entry.js +2 -0
  684. package/dist/siemens-ix/p-a6fbea5b.entry.js.map +1 -0
  685. package/dist/siemens-ix/p-a8838a77.js +2 -0
  686. package/dist/siemens-ix/p-a9d1ab94.entry.js +2 -0
  687. package/dist/siemens-ix/{p-080653aa.entry.js.map → p-a9d1ab94.entry.js.map} +1 -1
  688. package/dist/siemens-ix/p-aa58d9d7.entry.js +2 -0
  689. package/dist/siemens-ix/p-aa58d9d7.entry.js.map +1 -0
  690. package/dist/siemens-ix/p-abb29515.entry.js +2 -0
  691. package/dist/siemens-ix/p-abb29515.entry.js.map +1 -0
  692. package/dist/siemens-ix/p-add5b76c.entry.js +2 -0
  693. package/dist/siemens-ix/{p-33e903e1.entry.js.map → p-add5b76c.entry.js.map} +1 -1
  694. package/dist/siemens-ix/p-b32c2183.entry.js +2 -0
  695. package/dist/siemens-ix/{p-d0cf522c.entry.js.map → p-b32c2183.entry.js.map} +1 -1
  696. package/dist/siemens-ix/{p-6f056fc6.entry.js → p-bc5d33ce.entry.js} +2 -2
  697. package/dist/siemens-ix/p-bd576793.entry.js +2 -0
  698. package/dist/siemens-ix/p-bd576793.entry.js.map +1 -0
  699. package/dist/siemens-ix/p-bdc57334.entry.js +2 -0
  700. package/dist/siemens-ix/{p-f7e82b50.entry.js.map → p-bdc57334.entry.js.map} +1 -1
  701. package/dist/siemens-ix/p-c09553f3.js +2 -0
  702. package/dist/siemens-ix/p-c09553f3.js.map +1 -0
  703. package/dist/siemens-ix/{p-30f449bc.entry.js → p-ca65a043.entry.js} +2 -2
  704. package/dist/siemens-ix/{p-4bbae41b.entry.js → p-cbbe9dee.entry.js} +2 -2
  705. package/dist/siemens-ix/p-ccf1bd22.entry.js +2 -0
  706. package/dist/siemens-ix/{p-c2f6aaae.entry.js → p-cf546284.entry.js} +2 -2
  707. package/dist/siemens-ix/p-cf546284.entry.js.map +1 -0
  708. package/dist/siemens-ix/{p-47017ce7.entry.js → p-d08cbeaf.entry.js} +2 -2
  709. package/dist/siemens-ix/p-d600ea55.entry.js +2 -0
  710. package/dist/siemens-ix/p-d600ea55.entry.js.map +1 -0
  711. package/dist/siemens-ix/{p-1255e76b.entry.js → p-d6a094cf.entry.js} +2 -2
  712. package/dist/siemens-ix/{p-f6635bfc.entry.js → p-def8b3a4.entry.js} +2 -2
  713. package/dist/siemens-ix/{p-f6635bfc.entry.js.map → p-def8b3a4.entry.js.map} +1 -1
  714. package/dist/siemens-ix/{p-177f9a5c.entry.js → p-e2464e13.entry.js} +2 -2
  715. package/dist/siemens-ix/p-e4e24f59.entry.js +2 -0
  716. package/dist/siemens-ix/{p-c89a070a.entry.js.map → p-e4e24f59.entry.js.map} +1 -1
  717. package/dist/siemens-ix/{p-d9d5389b.entry.js → p-e678bfc5.entry.js} +2 -2
  718. package/dist/siemens-ix/{p-c8e0563a.entry.js → p-ec741c06.entry.js} +2 -2
  719. package/dist/siemens-ix/{p-ca658a19.entry.js → p-ed2ec72f.entry.js} +2 -2
  720. package/dist/siemens-ix/{p-d9370972.entry.js → p-f2a81e70.entry.js} +2 -2
  721. package/dist/siemens-ix/{p-32fa185a.entry.js → p-fb55854a.entry.js} +2 -2
  722. package/dist/siemens-ix/p-fe87443e.js +2 -0
  723. package/dist/siemens-ix/p-fe87443e.js.map +1 -0
  724. package/dist/siemens-ix/siemens-ix-core.css +1 -1
  725. package/dist/siemens-ix/siemens-ix.css +102 -12
  726. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  727. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  728. package/dist/siemens-ix/theme/classic-dark.css +1 -1
  729. package/dist/siemens-ix/theme/classic-light.css +1 -1
  730. package/dist/types/components/button/base-button.d.ts +3 -0
  731. package/dist/types/components/button/button.d.ts +2 -1
  732. package/dist/types/components/category-filter/category-filter.d.ts +10 -0
  733. package/dist/types/components/date-dropdown/date-dropdown.d.ts +7 -0
  734. package/dist/types/components/dropdown/dropdown-controller.d.ts +2 -2
  735. package/dist/types/components/dropdown/dropdown.d.ts +9 -1
  736. package/dist/types/components/event-list/test/event-list.ct.d.ts +1 -0
  737. package/dist/types/components/group/group.d.ts +1 -0
  738. package/dist/types/components/group/test/group.ct.d.ts +1 -0
  739. package/dist/types/components/icon-button/icon-button.d.ts +1 -0
  740. package/dist/types/components/menu-about/menu-about.d.ts +1 -1
  741. package/dist/types/components/select/select.d.ts +15 -3
  742. package/dist/types/components/select-item/select-item.d.ts +5 -1
  743. package/dist/types/components/utils/focus.d.ts +10 -0
  744. package/dist/types/components.d.ts +30 -2
  745. package/package.json +1 -1
  746. package/scss/components/form/_input.scss +11 -8
  747. package/scss/theme/classic-dark/_color.scss +36 -0
  748. package/scss/theme/classic-light/_color.scss +36 -0
  749. package/dist/cjs/base-button-2f74b19d.js.map +0 -1
  750. package/dist/cjs/ix-icon.entry-01b3822b.js +0 -1487
  751. package/dist/cjs/ix-icon.entry-01b3822b.js.map +0 -1
  752. package/dist/esm/base-button-37b915d6.js.map +0 -1
  753. package/dist/esm/ix-icon.entry-9fafcf35.js +0 -1485
  754. package/dist/esm/ix-icon.entry-9fafcf35.js.map +0 -1
  755. package/dist/playwright-ct.config.js +0 -23
  756. package/dist/playwright-ct.config.js.map +0 -1
  757. package/dist/playwright.config.js +0 -75
  758. package/dist/playwright.config.js.map +0 -1
  759. package/dist/siemens-ix/p-080653aa.entry.js +0 -2
  760. package/dist/siemens-ix/p-08bedeaa.entry.js +0 -2
  761. package/dist/siemens-ix/p-16826ff7.js +0 -2
  762. package/dist/siemens-ix/p-16d378f3.js +0 -2
  763. package/dist/siemens-ix/p-16d378f3.js.map +0 -1
  764. package/dist/siemens-ix/p-1ad7fd83.entry.js +0 -2
  765. package/dist/siemens-ix/p-1ad7fd83.entry.js.map +0 -1
  766. package/dist/siemens-ix/p-2a9673f3.entry.js +0 -2
  767. package/dist/siemens-ix/p-2a9673f3.entry.js.map +0 -1
  768. package/dist/siemens-ix/p-33e903e1.entry.js +0 -2
  769. package/dist/siemens-ix/p-37e4df76.entry.js +0 -2
  770. package/dist/siemens-ix/p-37e4df76.entry.js.map +0 -1
  771. package/dist/siemens-ix/p-3e4e3b23.entry.js +0 -2
  772. package/dist/siemens-ix/p-3e4e3b23.entry.js.map +0 -1
  773. package/dist/siemens-ix/p-6f097cae.entry.js +0 -2
  774. package/dist/siemens-ix/p-6f097cae.entry.js.map +0 -1
  775. package/dist/siemens-ix/p-7289b0be.entry.js +0 -2
  776. package/dist/siemens-ix/p-7b5ed355.entry.js +0 -2
  777. package/dist/siemens-ix/p-87fe9d5f.entry.js +0 -2
  778. package/dist/siemens-ix/p-87fe9d5f.entry.js.map +0 -1
  779. package/dist/siemens-ix/p-8a06a632.entry.js +0 -2
  780. package/dist/siemens-ix/p-96f2c71a.entry.js +0 -2
  781. package/dist/siemens-ix/p-96f2c71a.entry.js.map +0 -1
  782. package/dist/siemens-ix/p-9fcf9dcd.entry.js +0 -2
  783. package/dist/siemens-ix/p-9fd3ae7f.entry.js +0 -2
  784. package/dist/siemens-ix/p-a4e489ea.js +0 -2
  785. package/dist/siemens-ix/p-a4e489ea.js.map +0 -1
  786. package/dist/siemens-ix/p-a93df5f2.entry.js +0 -2
  787. package/dist/siemens-ix/p-a93df5f2.entry.js.map +0 -1
  788. package/dist/siemens-ix/p-ab446f83.entry.js +0 -2
  789. package/dist/siemens-ix/p-ab446f83.entry.js.map +0 -1
  790. package/dist/siemens-ix/p-acdeb192.entry.js +0 -2
  791. package/dist/siemens-ix/p-acdeb192.entry.js.map +0 -1
  792. package/dist/siemens-ix/p-b78fd38b.entry.js +0 -2
  793. package/dist/siemens-ix/p-b78fd38b.entry.js.map +0 -1
  794. package/dist/siemens-ix/p-c2f6aaae.entry.js.map +0 -1
  795. package/dist/siemens-ix/p-c49701a0.entry.js +0 -2
  796. package/dist/siemens-ix/p-c4d3f089.entry.js +0 -2
  797. package/dist/siemens-ix/p-c4d3f089.entry.js.map +0 -1
  798. package/dist/siemens-ix/p-c89a070a.entry.js +0 -2
  799. package/dist/siemens-ix/p-ca838b5c.entry.js.map +0 -1
  800. package/dist/siemens-ix/p-cb1c0d63.entry.js +0 -2
  801. package/dist/siemens-ix/p-d0cf522c.entry.js +0 -2
  802. package/dist/siemens-ix/p-d48a746d.entry.js +0 -2
  803. package/dist/siemens-ix/p-d48a746d.entry.js.map +0 -1
  804. package/dist/siemens-ix/p-d77fa665.entry.js.map +0 -1
  805. package/dist/siemens-ix/p-f7e82b50.entry.js +0 -2
  806. package/dist/types/Users/daniel/dev/oss/ix/packages/core/.stencil/playwright-ct.config.d.ts +0 -7
  807. package/dist/types/Users/daniel/dev/oss/ix/packages/core/.stencil/playwright.config.d.ts +0 -7
  808. /package/dist/siemens-ix/{p-d2ee87ae.entry.js.map → p-0a1bfcfc.entry.js.map} +0 -0
  809. /package/dist/siemens-ix/{p-9c03b231.entry.js.map → p-114bb49b.entry.js.map} +0 -0
  810. /package/dist/siemens-ix/{p-7702a8c2.js.map → p-235c14ca.js.map} +0 -0
  811. /package/dist/siemens-ix/{p-d76ee9ff.entry.js.map → p-306c5ab2.entry.js.map} +0 -0
  812. /package/dist/siemens-ix/{p-f2856faf.entry.js.map → p-30e8a26a.entry.js.map} +0 -0
  813. /package/dist/siemens-ix/{p-1450ba99.entry.js.map → p-3b8e4fe5.entry.js.map} +0 -0
  814. /package/dist/siemens-ix/{p-f17e4cce.entry.js.map → p-4cf6e817.entry.js.map} +0 -0
  815. /package/dist/siemens-ix/{p-c49701a0.entry.js.map → p-4fd11865.entry.js.map} +0 -0
  816. /package/dist/siemens-ix/{p-9fd3ae7f.entry.js.map → p-56bbdae4.entry.js.map} +0 -0
  817. /package/dist/siemens-ix/{p-0d268489.entry.js.map → p-5f08da2c.entry.js.map} +0 -0
  818. /package/dist/siemens-ix/{p-26789c86.entry.js.map → p-601cfc6a.entry.js.map} +0 -0
  819. /package/dist/siemens-ix/{p-7b5ed355.entry.js.map → p-678d821f.entry.js.map} +0 -0
  820. /package/dist/siemens-ix/{p-b1ec7f32.entry.js.map → p-6ea6396e.entry.js.map} +0 -0
  821. /package/dist/siemens-ix/{p-7c1fd9a0.entry.js.map → p-6eb4eefc.entry.js.map} +0 -0
  822. /package/dist/siemens-ix/{p-af46164c.entry.js.map → p-784fe260.entry.js.map} +0 -0
  823. /package/dist/siemens-ix/{p-c5762d6c.entry.js.map → p-9dabe2f7.entry.js.map} +0 -0
  824. /package/dist/siemens-ix/{p-08bedeaa.entry.js.map → p-a35d02ea.entry.js.map} +0 -0
  825. /package/dist/siemens-ix/{p-31cc5367.entry.js.map → p-a3ad98bc.entry.js.map} +0 -0
  826. /package/dist/siemens-ix/{p-16826ff7.js.map → p-a8838a77.js.map} +0 -0
  827. /package/dist/siemens-ix/{p-6f056fc6.entry.js.map → p-bc5d33ce.entry.js.map} +0 -0
  828. /package/dist/siemens-ix/{p-30f449bc.entry.js.map → p-ca65a043.entry.js.map} +0 -0
  829. /package/dist/siemens-ix/{p-4bbae41b.entry.js.map → p-cbbe9dee.entry.js.map} +0 -0
  830. /package/dist/siemens-ix/{p-8a06a632.entry.js.map → p-ccf1bd22.entry.js.map} +0 -0
  831. /package/dist/siemens-ix/{p-47017ce7.entry.js.map → p-d08cbeaf.entry.js.map} +0 -0
  832. /package/dist/siemens-ix/{p-1255e76b.entry.js.map → p-d6a094cf.entry.js.map} +0 -0
  833. /package/dist/siemens-ix/{p-177f9a5c.entry.js.map → p-e2464e13.entry.js.map} +0 -0
  834. /package/dist/siemens-ix/{p-d9d5389b.entry.js.map → p-e678bfc5.entry.js.map} +0 -0
  835. /package/dist/siemens-ix/{p-c8e0563a.entry.js.map → p-ec741c06.entry.js.map} +0 -0
  836. /package/dist/siemens-ix/{p-ca658a19.entry.js.map → p-ed2ec72f.entry.js.map} +0 -0
  837. /package/dist/siemens-ix/{p-d9370972.entry.js.map → p-f2a81e70.entry.js.map} +0 -0
  838. /package/dist/siemens-ix/{p-32fa185a.entry.js.map → p-fb55854a.entry.js.map} +0 -0
@@ -458,6 +458,187 @@ input:read-only, input.readonly {
458
458
  display: none;
459
459
  }
460
460
 
461
+ :host .btn-danger {
462
+ border-radius: var(--theme-btn--border-radius);
463
+ }
464
+ :host .btn-danger, :host .btn-danger.focus, :host .btn-danger:focus-visible {
465
+ background-color: var(--theme-btn-danger--background);
466
+ color: var(--theme-btn-danger--color);
467
+ --ix-button-color: var(--theme-btn-danger--color);
468
+ border-width: var(--theme-btn--border-thickness);
469
+ border-color: var(--theme-btn-danger--border-color);
470
+ border-style: solid;
471
+ }
472
+ :host .btn-danger:not(.disabled):not(:disabled):focus-visible {
473
+ outline: 1px solid var(--theme-color-focus-bdr);
474
+ outline-offset: var(--theme-btn--focus--outline-offset);
475
+ }
476
+ :host .btn-danger.selected {
477
+ background-color: var(--theme-color-ghost--selected);
478
+ color: var(--theme-color-dynamic);
479
+ }
480
+ :host .btn-danger.selected:not(.disabled):not(:disabled) {
481
+ cursor: pointer;
482
+ }
483
+ :host .btn-danger.selected:not(.disabled):not(:disabled):hover, :host .btn-danger.selected:not(.disabled):not(:disabled):hover {
484
+ background-color: var(--theme-color-ghost--selected-hover);
485
+ color: var(--theme-color-dynamic);
486
+ }
487
+ :host .btn-danger.selected:not(.disabled):not(:disabled) {
488
+ cursor: pointer;
489
+ }
490
+ :host .btn-danger.selected:not(.disabled):not(:disabled):active, :host .btn-danger.selected:not(.disabled):not(:disabled).active {
491
+ background-color: var(--theme-color-ghost--selected-active);
492
+ color: var(--theme-color-dynamic);
493
+ }
494
+ :host .btn-danger:not(.disabled):not(:disabled) {
495
+ cursor: pointer;
496
+ }
497
+ :host .btn-danger:not(.disabled):not(:disabled):hover, :host .btn-danger:not(.disabled):not(:disabled):hover {
498
+ border-color: var(--theme-btn-danger--border-color--hover);
499
+ background-color: var(--theme-btn-danger--background--hover);
500
+ color: var(--theme-btn-danger--color--hover);
501
+ }
502
+ :host .btn-danger:not(.disabled):not(:disabled) {
503
+ cursor: pointer;
504
+ }
505
+ :host .btn-danger:not(.disabled):not(:disabled):active, :host .btn-danger:not(.disabled):not(:disabled).active {
506
+ border-color: var(--theme-btn-danger--border-color--active);
507
+ background-color: var(--theme-btn-danger--background--active);
508
+ color: var(--theme-btn-danger--color--active);
509
+ }
510
+
511
+ :host(.disabled) {
512
+ pointer-events: none;
513
+ }
514
+ :host(.disabled) .btn-danger.disabled, :host(.disabled) .btn-danger:disabled {
515
+ pointer-events: none;
516
+ border-color: var(--theme-btn-danger--border-color--disabled);
517
+ background-color: var(--theme-btn-danger--background--disabled);
518
+ color: var(--theme-btn-danger--color--disabled);
519
+ opacity: 1;
520
+ --ix-button-color: var(--theme-btn-danger--color--disabled);
521
+ }
522
+
523
+ :host .btn-outline-danger {
524
+ border-radius: var(--theme-btn--border-radius);
525
+ }
526
+ :host .btn-outline-danger, :host .btn-outline-danger.focus, :host .btn-outline-danger:focus-visible {
527
+ background-color: var(--theme-btn-outline-danger--background);
528
+ color: var(--theme-btn-outline-danger--color);
529
+ --ix-button-color: var(--theme-btn-outline-danger--color);
530
+ border-width: var(--theme-btn--border-thickness);
531
+ border-color: var(--theme-btn-outline-danger--border-color);
532
+ border-style: solid;
533
+ }
534
+ :host .btn-outline-danger:not(.disabled):not(:disabled):focus-visible {
535
+ outline: 1px solid var(--theme-color-focus-bdr);
536
+ outline-offset: var(--theme-btn--focus--outline-offset);
537
+ }
538
+ :host .btn-outline-danger.selected {
539
+ background-color: var(--theme-color-ghost--selected);
540
+ color: var(--theme-color-dynamic);
541
+ }
542
+ :host .btn-outline-danger.selected:not(.disabled):not(:disabled) {
543
+ cursor: pointer;
544
+ }
545
+ :host .btn-outline-danger.selected:not(.disabled):not(:disabled):hover, :host .btn-outline-danger.selected:not(.disabled):not(:disabled):hover {
546
+ background-color: var(--theme-color-ghost--selected-hover);
547
+ color: var(--theme-color-dynamic);
548
+ }
549
+ :host .btn-outline-danger.selected:not(.disabled):not(:disabled) {
550
+ cursor: pointer;
551
+ }
552
+ :host .btn-outline-danger.selected:not(.disabled):not(:disabled):active, :host .btn-outline-danger.selected:not(.disabled):not(:disabled).active {
553
+ background-color: var(--theme-color-ghost--selected-active);
554
+ color: var(--theme-color-dynamic);
555
+ }
556
+ :host .btn-outline-danger:not(.disabled):not(:disabled) {
557
+ cursor: pointer;
558
+ }
559
+ :host .btn-outline-danger:not(.disabled):not(:disabled):hover, :host .btn-outline-danger:not(.disabled):not(:disabled):hover {
560
+ border-color: var(--theme-btn-outline-danger--border-color--hover);
561
+ background-color: var(--theme-btn-outline-danger--background--hover);
562
+ color: var(--theme-btn-outline-danger--color--hover);
563
+ }
564
+ :host .btn-outline-danger:not(.disabled):not(:disabled) {
565
+ cursor: pointer;
566
+ }
567
+ :host .btn-outline-danger:not(.disabled):not(:disabled):active, :host .btn-outline-danger:not(.disabled):not(:disabled).active {
568
+ border-color: var(--theme-btn-outline-danger--border-color--active);
569
+ background-color: var(--theme-btn-outline-danger--background--active);
570
+ color: var(--theme-btn-outline-danger--color--active);
571
+ }
572
+
573
+ :host(.disabled) {
574
+ pointer-events: none;
575
+ }
576
+ :host(.disabled) .btn-outline-danger.disabled, :host(.disabled) .btn-outline-danger:disabled {
577
+ pointer-events: none;
578
+ border-color: var(--theme-btn-outline-danger--border-color--disabled);
579
+ background-color: var(--theme-btn-outline-danger--background--disabled);
580
+ color: var(--theme-btn-outline-danger--color--disabled);
581
+ opacity: 1;
582
+ --ix-button-color: var(--theme-btn-outline-danger--color--disabled);
583
+ }
584
+
585
+ :host .btn-invisible-danger {
586
+ border-radius: var(--theme-btn--border-radius);
587
+ }
588
+ :host .btn-invisible-danger, :host .btn-invisible-danger.focus, :host .btn-invisible-danger:focus-visible {
589
+ background-color: var(--theme-btn-invisible-danger--background);
590
+ color: var(--theme-btn-invisible-danger--color);
591
+ --ix-button-color: var(--theme-btn-invisible-danger--color);
592
+ border-color: transparent;
593
+ }
594
+ :host .btn-invisible-danger:not(.disabled):not(:disabled):focus-visible {
595
+ outline: 1px solid var(--theme-color-focus-bdr);
596
+ outline-offset: var(--theme-btn--focus--outline-offset);
597
+ }
598
+ :host .btn-invisible-danger.selected {
599
+ background-color: var(--theme-color-ghost--selected);
600
+ color: var(--theme-color-dynamic);
601
+ }
602
+ :host .btn-invisible-danger.selected:not(.disabled):not(:disabled) {
603
+ cursor: pointer;
604
+ }
605
+ :host .btn-invisible-danger.selected:not(.disabled):not(:disabled):hover, :host .btn-invisible-danger.selected:not(.disabled):not(:disabled):hover {
606
+ background-color: var(--theme-color-ghost--selected-hover);
607
+ color: var(--theme-color-dynamic);
608
+ }
609
+ :host .btn-invisible-danger.selected:not(.disabled):not(:disabled) {
610
+ cursor: pointer;
611
+ }
612
+ :host .btn-invisible-danger.selected:not(.disabled):not(:disabled):active, :host .btn-invisible-danger.selected:not(.disabled):not(:disabled).active {
613
+ background-color: var(--theme-color-ghost--selected-active);
614
+ color: var(--theme-color-dynamic);
615
+ }
616
+ :host .btn-invisible-danger:not(.disabled):not(:disabled) {
617
+ cursor: pointer;
618
+ }
619
+ :host .btn-invisible-danger:not(.disabled):not(:disabled):hover, :host .btn-invisible-danger:not(.disabled):not(:disabled):hover {
620
+ background-color: var(--theme-btn-invisible-danger--background--hover);
621
+ color: var(--theme-btn-invisible-danger--color--hover);
622
+ }
623
+ :host .btn-invisible-danger:not(.disabled):not(:disabled) {
624
+ cursor: pointer;
625
+ }
626
+ :host .btn-invisible-danger:not(.disabled):not(:disabled):active, :host .btn-invisible-danger:not(.disabled):not(:disabled).active {
627
+ background-color: var(--theme-btn-invisible-danger--background--active);
628
+ color: var(--theme-btn-invisible-danger--color--active);
629
+ }
630
+
631
+ :host(.disabled) {
632
+ pointer-events: none;
633
+ }
634
+ :host(.disabled) .btn-invisible-danger.disabled, :host(.disabled) .btn-invisible-danger:disabled {
635
+ pointer-events: none;
636
+ background-color: var(--theme-btn-invisible-danger--background--disabled);
637
+ color: var(--theme-btn-invisible-danger--color--disabled);
638
+ opacity: 1;
639
+ --ix-button-color: var(--theme-btn-invisible-danger--color--disabled);
640
+ }
641
+
461
642
  :host .btn-primary {
462
643
  border-radius: var(--theme-btn--border-radius);
463
644
  }
@@ -124,10 +124,10 @@ export class Pagination {
124
124
  return h("span", { class: "page-buttons" }, pageButtons);
125
125
  }
126
126
  render() {
127
- return (h(Host, { key: '85e2d8d8a0b65799e17d53eaa18f7ffba858fba3' }, h("ix-icon-button", { key: 'e77de9c81cf24077466ede7211db3f13caa7f256', disabled: this.selectedPage === 0, ghost: true, icon: 'chevron-left-small', onClick: () => this.decrease() }), this.advanced ? (h("div", { class: "advanced-pagination" }, h("ix-typography", { variant: "default" }, this.i18nPage), h("input", { class: "form-control page-selection", type: "number", min: "1", max: this.count, value: this.selectedPage + 1, onChange: (e) => {
127
+ return (h(Host, { key: '0d3ee03dc65b4178ad572d753d2c01f35c853d0e' }, h("ix-icon-button", { key: '58af8c5d7a36d3ddf24f1dde1b39cac9c3c2d929', disabled: this.selectedPage === 0, ghost: true, icon: 'chevron-left-small', onClick: () => this.decrease() }), this.advanced ? (h("div", { class: "advanced-pagination" }, h("ix-typography", { variant: "default" }, this.i18nPage), h("input", { class: "form-control page-selection", type: "number", min: "1", max: this.count, value: this.selectedPage + 1, onChange: (e) => {
128
128
  const index = Number.parseInt(e.target['value']);
129
129
  this.selectPage(index - 1);
130
- } }), h("span", { class: "total-count" }, h("ix-typography", { variant: "default" }, this.i18nOf, " ", this.count)))) : (h("span", { class: "basic-pagination" }, this.renderPageButtons(), " ")), h("ix-icon-button", { key: 'dfa3fcd219a8817e304adfecd8d1a84cce8dd580', disabled: this.selectedPage === this.count - 1, ghost: true, icon: 'chevron-right-small', onClick: () => this.increase() }), this.advanced && this.showItemCount ? (h("span", { class: "item-count" }, h("ix-typography", { variant: "default" }, this.i18nItems), h("ix-select", { hideListHeader: true, i18nPlaceholder: "", i18nSelectListHeader: "", value: `${this.itemCount}`, onValueChange: (e) => {
130
+ } }), h("span", { class: "total-count" }, h("ix-typography", { variant: "default" }, this.i18nOf, " ", this.count)))) : (h("span", { class: "basic-pagination" }, this.renderPageButtons(), " ")), h("ix-icon-button", { key: 'bac7c247befd2262c9c01c95d2feba78dc4dfa12', disabled: this.selectedPage === this.count - 1, ghost: true, icon: 'chevron-right-small', onClick: () => this.increase() }), this.advanced && this.showItemCount ? (h("span", { class: "item-count" }, h("ix-typography", { variant: "default" }, this.i18nItems), h("ix-select", { hideListHeader: true, i18nPlaceholder: "", i18nSelectListHeader: "", value: `${this.itemCount}`, onValueChange: (e) => {
131
131
  const count = Number.parseInt(Array.isArray(e.detail) ? e.detail[0] : e.detail);
132
132
  this.itemCountChanged.emit(count);
133
133
  } }, h("ix-select-item", { label: "10", value: "10" }), h("ix-select-item", { label: "15", value: "15" }), h("ix-select-item", { label: "20", value: "20" }), h("ix-select-item", { label: "40", value: "40" }), h("ix-select-item", { label: "100", value: "100" })))) : ('')));
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../../src/components/pagination/pagination.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;GAEG;AAMH,MAAM,OAAO,UAAU;;QACJ,qBAAgB,GAAoB;YACnD,OAAO,EAAE,WAAW;YACpB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE;gBACZ,CAAC,QAAQ,CAAC,EAAE,IAAI;aACjB;SACF,CAAC;QAEe,kBAAa,GAAG,CAAC,CAAC;;yBAaf,EAAE;6BAKE,IAAI;;4BAUY,CAAC;wBAKtB,MAAM;sBAKR,IAAI;yBAMD,OAAO;;IAYnB,UAAU,CAAC,KAAa;QAC9B,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACd,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC;QACxB,CAAC;aAAM,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;YAClC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACrC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC5B,CAAC;QAED,IAAI,CAAC,YAAY,CAAC,IAAI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B,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAC3B,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CACjD,CAAC;wBAEF,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACpC,CAAC;oBAED,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;oBACvD,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;oBACvD,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;oBACvD,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;oBACvD,sBAAgB,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,GAAkB,CAC/C,CACP,CACR,CAAC,CAAC,CAAC,CACF,EAAE,CACH,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2022 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';\nimport { BaseButton, BaseButtonProps } from '../button/base-button';\nimport { a11yBoolean } from '../utils/a11y';\n\n/**\n * @since 1.5.0\n */\n@Component({\n tag: 'ix-pagination',\n styleUrl: 'pagination.scss',\n shadow: true,\n})\nexport class Pagination {\n private readonly baseButtonConfig: BaseButtonProps = {\n variant: 'secondary',\n outline: false,\n ghost: true,\n iconOnly: true,\n iconOval: false,\n disabled: false,\n icon: '',\n loading: false,\n selected: false,\n type: 'button',\n extraClasses: {\n ['w-auto']: true,\n },\n };\n\n private readonly maxCountPages = 7;\n\n @Element() hostElement!: HTMLIxPaginationElement;\n\n /**\n * Advanced mode\n */\n @Prop() advanced: boolean;\n\n /**\n * Number of items shown at once.\n * Can only be changed in advaced mode.\n */\n @Prop() itemCount = 15;\n\n /**\n * Show item count in advanced mode\n */\n @Prop() showItemCount = true;\n\n /**\n * Total number of pages\n */\n @Prop() count: number;\n\n /**\n * Zero based index of currently selected page\n */\n @Prop({ mutable: true }) selectedPage = 0;\n\n /**\n * i18n\n */\n @Prop() i18nPage = 'Page';\n\n /**\n * i18n\n */\n @Prop() i18nOf = 'of';\n\n /**\n /**\n * i18n\n */\n @Prop() i18nItems = 'Items';\n\n /**\n * Page selection event\n */\n @Event() pageSelected: EventEmitter<number>;\n\n /**\n * Item count change event\n */\n @Event() itemCountChanged: EventEmitter<number>;\n\n private selectPage(index: number) {\n if (index < 0) {\n this.selectedPage = 0;\n } else if (index > this.count - 1) {\n this.selectedPage = this.count - 1;\n } else {\n this.selectedPage = index;\n }\n\n this.pageSelected.emit(this.selectedPage);\n }\n\n private increase() {\n if (this.selectedPage === this.count - 1) {\n return;\n }\n\n this.selectPage(this.selectedPage + 1);\n }\n\n private decrease() {\n if (this.selectedPage === 0) {\n return;\n }\n\n this.selectPage(this.selectedPage - 1);\n }\n\n private getPageButton(index: number) {\n const baseButtonProps: BaseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => this.selectPage(index),\n selected: this.selectedPage === index,\n ariaAttributes: {\n 'aria-pressed': a11yBoolean(this.selectedPage === index),\n },\n };\n\n return <BaseButton {...baseButtonProps}>{index + 1}</BaseButton>;\n }\n\n private renderPageButtons() {\n const pagesBeforeOverflow = Math.floor(this.maxCountPages / 2);\n const hasOverflow = this.count > this.maxCountPages;\n const hasOverflowStart =\n hasOverflow && this.selectedPage > pagesBeforeOverflow;\n const hasOverflowEnd =\n hasOverflow && this.selectedPage < this.count - pagesBeforeOverflow - 1;\n const pageButtons = [];\n\n let start = 0;\n let end = Math.min(this.count, this.maxCountPages);\n let pageCount = Math.floor((this.maxCountPages - 4) / 2);\n\n if (hasOverflowStart) {\n const baseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => {\n if (hasOverflowEnd) {\n this.selectPage(this.selectedPage - Math.max(0, 2 * pageCount + 1));\n } else {\n this.selectPage(this.count - this.maxCountPages);\n }\n },\n };\n pageButtons.push(this.getPageButton(0));\n pageButtons.push(<BaseButton {...baseButtonProps}>...</BaseButton>);\n\n if (hasOverflowEnd) {\n start = this.count - this.maxCountPages + 2;\n } else {\n start = this.count - this.maxCountPages + 2;\n end = this.count;\n }\n }\n\n if (hasOverflowEnd) {\n if (hasOverflowStart) {\n start = this.selectedPage - pageCount;\n end = this.selectedPage + pageCount + 1;\n } else {\n end = this.maxCountPages - 2;\n }\n }\n\n for (let i = start; i < end; i++) {\n pageButtons.push(this.getPageButton(i));\n }\n\n if (hasOverflowEnd) {\n const baseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => {\n if (hasOverflowStart) {\n this.selectPage(this.selectedPage + Math.max(0, 2 * pageCount + 1));\n } else {\n this.selectPage(this.maxCountPages - 1);\n }\n },\n };\n pageButtons.push(<BaseButton {...baseButtonProps}>...</BaseButton>);\n pageButtons.push(this.getPageButton(this.count - 1));\n }\n\n return <span class=\"page-buttons\">{pageButtons}</span>;\n }\n\n render() {\n return (\n <Host>\n <ix-icon-button\n disabled={this.selectedPage === 0}\n ghost\n icon={'chevron-left-small'}\n onClick={() => this.decrease()}\n ></ix-icon-button>\n\n {this.advanced ? (\n <div class=\"advanced-pagination\">\n <ix-typography variant=\"default\">{this.i18nPage}</ix-typography>\n <input\n class=\"form-control page-selection\"\n type=\"number\"\n min=\"1\"\n max={this.count}\n value={this.selectedPage + 1}\n onChange={(e) => {\n const index = Number.parseInt(e.target['value']);\n this.selectPage(index - 1);\n }}\n />\n <span class=\"total-count\">\n <ix-typography variant=\"default\">\n {this.i18nOf} {this.count}\n </ix-typography>\n </span>\n </div>\n ) : (\n <span class=\"basic-pagination\">{this.renderPageButtons()} </span>\n )}\n\n <ix-icon-button\n disabled={this.selectedPage === this.count - 1}\n ghost\n icon={'chevron-right-small'}\n onClick={() => this.increase()}\n ></ix-icon-button>\n\n {this.advanced && this.showItemCount ? (\n <span class=\"item-count\">\n <ix-typography variant=\"default\">{this.i18nItems}</ix-typography>\n <ix-select\n hideListHeader\n i18nPlaceholder=\"\"\n i18nSelectListHeader=\"\"\n value={`${this.itemCount}`}\n onValueChange={(e) => {\n const count = Number.parseInt(\n Array.isArray(e.detail) ? e.detail[0] : e.detail\n );\n\n this.itemCountChanged.emit(count);\n }}\n >\n <ix-select-item label=\"10\" value=\"10\"></ix-select-item>\n <ix-select-item label=\"15\" value=\"15\"></ix-select-item>\n <ix-select-item label=\"20\" value=\"20\"></ix-select-item>\n <ix-select-item label=\"40\" value=\"40\"></ix-select-item>\n <ix-select-item label=\"100\" value=\"100\"></ix-select-item>\n </ix-select>\n </span>\n ) : (\n ''\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/components/pagination/pagination.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;GAEG;AAMH,MAAM,OAAO,UAAU;;QACJ,qBAAgB,GAAoB;YACnD,OAAO,EAAE,WAAW;YACpB,OAAO,EAAE,KAAK;YACd,KAAK,EAA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AC,KAAK,EAAC,IAAI,GAAkB;oBACvD,sBAAgB,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,GAAkB,CAC/C,CACP,CACR,CAAC,CAAC,CAAC,CACF,EAAE,CACH,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2022 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';\nimport { BaseButton, BaseButtonProps } from '../button/base-button';\nimport { a11yBoolean } from '../utils/a11y';\n\n/**\n * @since 1.5.0\n */\n@Component({\n tag: 'ix-pagination',\n styleUrl: 'pagination.scss',\n shadow: true,\n})\nexport class Pagination {\n private readonly baseButtonConfig: BaseButtonProps = {\n variant: 'secondary',\n outline: false,\n ghost: true,\n iconOnly: true,\n iconOval: false,\n disabled: false,\n icon: '',\n loading: false,\n selected: false,\n type: 'button',\n extraClasses: {\n ['w-auto']: true,\n },\n };\n\n private readonly maxCountPages = 7;\n\n @Element() hostElement!: HTMLIxPaginationElement;\n\n /**\n * Advanced mode\n */\n @Prop() advanced: boolean;\n\n /**\n * Number of items shown at once.\n * Can only be changed in advaced mode.\n */\n @Prop() itemCount = 15;\n\n /**\n * Show item count in advanced mode\n */\n @Prop() showItemCount = true;\n\n /**\n * Total number of pages\n */\n @Prop() count: number;\n\n /**\n * Zero based index of currently selected page\n */\n @Prop({ mutable: true }) selectedPage = 0;\n\n /**\n * i18n\n */\n @Prop() i18nPage = 'Page';\n\n /**\n * i18n\n */\n @Prop() i18nOf = 'of';\n\n /**\n /**\n * i18n\n */\n @Prop() i18nItems = 'Items';\n\n /**\n * Page selection event\n */\n @Event() pageSelected: EventEmitter<number>;\n\n /**\n * Item count change event\n */\n @Event() itemCountChanged: EventEmitter<number>;\n\n private selectPage(index: number) {\n if (index < 0) {\n this.selectedPage = 0;\n } else if (index > this.count - 1) {\n this.selectedPage = this.count - 1;\n } else {\n this.selectedPage = index;\n }\n\n this.pageSelected.emit(this.selectedPage);\n }\n\n private increase() {\n if (this.selectedPage === this.count - 1) {\n return;\n }\n\n this.selectPage(this.selectedPage + 1);\n }\n\n private decrease() {\n if (this.selectedPage === 0) {\n return;\n }\n\n this.selectPage(this.selectedPage - 1);\n }\n\n private getPageButton(index: number) {\n const baseButtonProps: BaseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => this.selectPage(index),\n selected: this.selectedPage === index,\n ariaAttributes: {\n 'aria-pressed': a11yBoolean(this.selectedPage === index),\n },\n };\n\n return <BaseButton {...baseButtonProps}>{index + 1}</BaseButton>;\n }\n\n private renderPageButtons() {\n const pagesBeforeOverflow = Math.floor(this.maxCountPages / 2);\n const hasOverflow = this.count > this.maxCountPages;\n const hasOverflowStart =\n hasOverflow && this.selectedPage > pagesBeforeOverflow;\n const hasOverflowEnd =\n hasOverflow && this.selectedPage < this.count - pagesBeforeOverflow - 1;\n const pageButtons = [];\n\n let start = 0;\n let end = Math.min(this.count, this.maxCountPages);\n let pageCount = Math.floor((this.maxCountPages - 4) / 2);\n\n if (hasOverflowStart) {\n const baseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => {\n if (hasOverflowEnd) {\n this.selectPage(this.selectedPage - Math.max(0, 2 * pageCount + 1));\n } else {\n this.selectPage(this.count - this.maxCountPages);\n }\n },\n };\n pageButtons.push(this.getPageButton(0));\n pageButtons.push(<BaseButton {...baseButtonProps}>...</BaseButton>);\n\n if (hasOverflowEnd) {\n start = this.count - this.maxCountPages + 2;\n } else {\n start = this.count - this.maxCountPages + 2;\n end = this.count;\n }\n }\n\n if (hasOverflowEnd) {\n if (hasOverflowStart) {\n start = this.selectedPage - pageCount;\n end = this.selectedPage + pageCount + 1;\n } else {\n end = this.maxCountPages - 2;\n }\n }\n\n for (let i = start; i < end; i++) {\n pageButtons.push(this.getPageButton(i));\n }\n\n if (hasOverflowEnd) {\n const baseButtonProps = {\n ...this.baseButtonConfig,\n onClick: () => {\n if (hasOverflowStart) {\n this.selectPage(this.selectedPage + Math.max(0, 2 * pageCount + 1));\n } else {\n this.selectPage(this.maxCountPages - 1);\n }\n },\n };\n pageButtons.push(<BaseButton {...baseButtonProps}>...</BaseButton>);\n pageButtons.push(this.getPageButton(this.count - 1));\n }\n\n return <span class=\"page-buttons\">{pageButtons}</span>;\n }\n\n render() {\n return (\n <Host>\n <ix-icon-button\n disabled={this.selectedPage === 0}\n ghost\n icon={'chevron-left-small'}\n onClick={() => this.decrease()}\n ></ix-icon-button>\n\n {this.advanced ? (\n <div class=\"advanced-pagination\">\n <ix-typography variant=\"default\">{this.i18nPage}</ix-typography>\n <input\n class=\"form-control page-selection\"\n type=\"number\"\n min=\"1\"\n max={this.count}\n value={this.selectedPage + 1}\n onChange={(e) => {\n const index = Number.parseInt(e.target['value']);\n this.selectPage(index - 1);\n }}\n />\n <span class=\"total-count\">\n <ix-typography variant=\"default\">\n {this.i18nOf} {this.count}\n </ix-typography>\n </span>\n </div>\n ) : (\n <span class=\"basic-pagination\">{this.renderPageButtons()} </span>\n )}\n\n <ix-icon-button\n disabled={this.selectedPage === this.count - 1}\n ghost\n icon={'chevron-right-small'}\n onClick={() => this.increase()}\n ></ix-icon-button>\n\n {this.advanced && this.showItemCount ? (\n <span class=\"item-count\">\n <ix-typography variant=\"default\">{this.i18nItems}</ix-typography>\n <ix-select\n hideListHeader\n i18nPlaceholder=\"\"\n i18nSelectListHeader=\"\"\n value={`${this.itemCount}`}\n onValueChange={(e) => {\n const count = Number.parseInt(\n Array.isArray(e.detail) ? e.detail[0] : e.detail\n );\n\n this.itemCountChanged.emit(count);\n }}\n >\n <ix-select-item label=\"10\" value=\"10\"></ix-select-item>\n <ix-select-item label=\"15\" value=\"15\"></ix-select-item>\n <ix-select-item label=\"20\" value=\"20\"></ix-select-item>\n <ix-select-item label=\"40\" value=\"40\"></ix-select-item>\n <ix-select-item label=\"100\" value=\"100\"></ix-select-item>\n </ix-select>\n </span>\n ) : (\n ''\n )}\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.ct.js","sourceRoot":"","sources":["../../../../../src/components/pagination/test/pagination.ct.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,MAAM,KAAK,CAAC;;;GAGX,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAE9C,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IACzC,MAAM,KAAK,CAAC;;;GAGX,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAExD,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,mCAAmC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IAClE,MAAM,KAAK,CAAC;;;GAGX,CAA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D,MAAM,CAAC,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC","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 */\nimport { expect } from '@playwright/test';\nimport { test } from '@utils/test';\n\ntest('renders', async ({ mount, page }) => {\n await mount(`\n <ix-pagination>\n </ix-pagination>\n `);\n const element = page.locator('ix-pagination');\n\n await expect(element).toHaveClass(/hydrated/);\n});\n\ntest('advanced', async ({ mount, page }) => {\n await mount(`\n <ix-pagination advanced>\n </ix-pagination>\n `);\n const element = page.locator('ix-pagination[advanced]');\n\n await expect(element).toHaveClass(/hydrated/);\n});\n\ntest('open show number of page dropdown', async ({ mount, page }) => {\n await mount(`\n <ix-pagination advanced>\n </ix-pagination>\n `);\n const element = page.locator('ix-pagination[advanced]');\n\n await element.getByRole('button').nth(-1).click();\n\n const dropdown = element.locator('ix-dropdown');\n\n await expect(dropdown).toBeVisible();\n});\n\ntest('should dispatch items count change', async ({ mount, page }) => {\n await mount(`\n <ix-pagination advanced>\n </ix-pagination>\n `);\n const pagination = page.locator('ix-pagination');\n\n const itemChanged = pagination.evaluate((elm) => {\n return new Promise<number>((resolve) => {\n elm.addEventListener('itemCountChanged', (e: CustomEvent) =>\n resolve(e.detail)\n );\n });\n });\n\n await pagination.getByRole('button').nth(-1).click();\n\n await pagination.locator('ix-dropdown-item').nth(3).click();\n await expect(pagination.locator('ix-dropdown')).not.toBeVisible();\n\n await expect(pagination).toHaveClass(/hydrated/);\n expect(await itemChanged).toBe(40);\n});\n"]}
1
+ {"version":3,"file":"pagination.ct.js","sourceRoot":"","sources":["../../../../src/components/pagination/test/pagination.ct.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,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AAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAEjD,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,EAAE;QAC9C,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,EAAE;YACrC,GAAG,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAAc,EAAE,EAAE,CAC1D,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAClB,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;IAErD,MAAM,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;IAC5D,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;IAElE,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IACjD,MAAM,CAAC,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC","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 */\nimport { expect } from '@playwright/test';\nimport { test } from '@utils/test';\n\ntest('renders', async ({ mount, page }) => {\n await mount(`\n <ix-pagination>\n </ix-pagination>\n `);\n const element = page.locator('ix-pagination');\n\n await expect(element).toHaveClass(/hydrated/);\n});\n\ntest('advanced', async ({ mount, page }) => {\n await mount(`\n <ix-pagination advanced>\n </ix-pagination>\n `);\n const element = page.locator('ix-pagination[advanced]');\n\n await expect(element).toHaveClass(/hydrated/);\n});\n\ntest('open show number of page dropdown', async ({ mount, page }) => {\n await mount(`\n <ix-pagination advanced>\n </ix-pagination>\n `);\n const element = page.locator('ix-pagination[advanced]');\n\n await element.getByRole('button').nth(-1).click();\n\n const dropdown = element.locator('ix-dropdown');\n\n await expect(dropdown).toBeVisible();\n});\n\ntest('should dispatch items count change', async ({ mount, page }) => {\n await mount(`\n <ix-pagination advanced>\n </ix-pagination>\n `);\n const pagination = page.locator('ix-pagination');\n\n const itemChanged = pagination.evaluate((elm) => {\n return new Promise<number>((resolve) => {\n elm.addEventListener('itemCountChanged', (e: CustomEvent) =>\n resolve(e.detail)\n );\n });\n });\n\n await pagination.getByRole('button').nth(-1).click();\n\n await pagination.locator('ix-dropdown-item').nth(3).click();\n await expect(pagination.locator('ix-dropdown')).not.toBeVisible();\n\n await expect(pagination).toHaveClass(/hydrated/);\n expect(await itemChanged).toBe(40);\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.spec.js","sourceRoot":"","sources":["../../../../../src/components/pagination/test/pagination.spec.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,4CAA4C;SACnD,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,MAAM,CA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E,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2022 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 { newSpecPage } from '@stencil/core/testing';\nimport { Pagination } from '../pagination';\n\ndescribe('ix-pagination', () => {\n it('overflow end select higher page', async () => {\n const page = await newSpecPage({\n components: [Pagination],\n html: `<ix-pagination count=\"10\"></ix-pagination>`,\n });\n const pagination = page.doc.querySelector('ix-pagination');\n const button = pagination.shadowRoot.querySelectorAll('button')[5];\n button.click();\n expect(pagination.selectedPage).toBe(6);\n });\n\n it('overflow both select higher page', async () => {\n const page = await newSpecPage({\n components: [Pagination],\n html: `<ix-pagination count=\"10\" selected-page=\"4\"></ix-pagination>`,\n });\n const pagination = page.doc.querySelector('ix-pagination');\n const button = pagination.shadowRoot.querySelectorAll('button')[6];\n button.click();\n expect(pagination.selectedPage).toBe(9);\n });\n\n it('overflow both select lower page', async () => {\n const page = await newSpecPage({\n components: [Pagination],\n html: `<ix-pagination count=\"10\" selected-page=\"5\"></ix-pagination>`,\n });\n const pagination = page.doc.querySelector('ix-pagination');\n const button = pagination.shadowRoot.querySelectorAll('button')[1];\n button.click();\n expect(pagination.selectedPage).toBe(2);\n });\n\n it('overflow start select lower page', async () => {\n const page = await newSpecPage({\n components: [Pagination],\n html: `<ix-pagination count=\"10\" selected-page=\"9\"></ix-pagination>`,\n });\n const pagination = page.doc.querySelector('ix-pagination');\n const button = pagination.shadowRoot.querySelectorAll('button')[1];\n button.click();\n expect(pagination.selectedPage).toBe(3);\n });\n});\n"]}
1
+ {"version":3,"file":"pagination.spec.js","sourceRoot":"","sources":["../../../../src/components/pagination/test/pagination.spec.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,4CAA4C;SACnD,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,KAAK,IAAI,EAAE;QAChD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,8DAA8D;SACrE,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,8DAA8D;SACrE,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,KAAK,IAAI,EAAE;QAChD,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,8DAA8D;SACrE,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,MAAM,CAAC,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2022 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 { newSpecPage } from '@stencil/core/testing';\nimport { Pagination } from '../pagination';\n\ndescribe('ix-pagination', () => {\n it('overflow end select higher page', async () => {\n const page = await newSpecPage({\n components: [Pagination],\n html: `<ix-pagination count=\"10\"></ix-pagination>`,\n });\n const pagination = page.doc.querySelector('ix-pagination');\n const button = pagination.shadowRoot.querySelectorAll('button')[5];\n button.click();\n expect(pagination.selectedPage).toBe(6);\n });\n\n it('overflow both select higher page', async () => {\n const page = await newSpecPage({\n components: [Pagination],\n html: `<ix-pagination count=\"10\" selected-page=\"4\"></ix-pagination>`,\n });\n const pagination = page.doc.querySelector('ix-pagination');\n const button = pagination.shadowRoot.querySelectorAll('button')[6];\n button.click();\n expect(pagination.selectedPage).toBe(9);\n });\n\n it('overflow both select lower page', async () => {\n const page = await newSpecPage({\n components: [Pagination],\n html: `<ix-pagination count=\"10\" selected-page=\"5\"></ix-pagination>`,\n });\n const pagination = page.doc.querySelector('ix-pagination');\n const button = pagination.shadowRoot.querySelectorAll('button')[1];\n button.click();\n expect(pagination.selectedPage).toBe(2);\n });\n\n it('overflow start select lower page', async () => {\n const page = await newSpecPage({\n components: [Pagination],\n html: `<ix-pagination count=\"10\" selected-page=\"9\"></ix-pagination>`,\n });\n const pagination = page.doc.querySelector('ix-pagination');\n const button = pagination.shadowRoot.querySelectorAll('button')[1];\n button.click();\n expect(pagination.selectedPage).toBe(3);\n });\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pane.js","sourceRoot":"","sources":["../../../../src/components/pane/pane.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,wBAAwB,E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wBACR,4DAAK,KAAK,EAAC,qBAAqB;4BAC9B,sEAAe,MAAM,EAAC,IAAI,IAAE,IAAI,CAAC,OAAO,CAAiB,CACrD,CACD,CACH;gBACN,4DAAK,KAAK,EAAC,mBAAmB,EAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAW;oBACtD,8DAAa,CACT,CACA,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","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\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport anime from 'animejs';\nimport Animation from '../utils/animation';\nimport { applicationLayoutService } from '../utils/application-layout';\nimport { matchBreakpoint } from '../utils/breakpoints';\n\nexport type Composition = 'top' | 'left' | 'bottom' | 'right';\nexport type ExpandedChangedEvent = {\n slot: string;\n expanded: boolean;\n};\nexport type SlotChangedEvent = {\n slot: string;\n newSlot: string;\n};\nexport type HideOnCollapseChangedEvent = {\n slot: string;\n hideOnCollapse: boolean;\n};\nexport type VariantChangedEvent = {\n slot: string;\n variant: 'floating' | 'inline';\n};\nexport type BorderlessChangedEvent = {\n slot: string;\n borderless: boolean;\n};\n\n/**\n * @since 2.1.0\n */\n@Component({\n tag: 'ix-pane',\n styleUrl: 'pane.scss',\n shadow: true,\n})\nexport class Pane {\n @Element() hostElement: HTMLIxPaneElement;\n\n /**\n * Title of the side panel\n */\n @Prop() heading: string;\n\n /**\n * Variant of the side pane.\n * Defaults to the variant attribute of the pane layout. If used standalone it defaults to inline.\n */\n @Prop() variant: 'floating' | 'inline' = 'inline';\n\n /**\n * Define if the pane should have a collapsed state\n */\n @Prop() hideOnCollapse: boolean = false;\n\n /**\n * The maximum size of the sidebar, when it is expanded\n */\n @Prop() size:\n | '240px'\n | '320px'\n | '360px'\n | '480px'\n | '600px'\n | '33%'\n | '50%' = '240px';\n\n /**\n * Toggle the border of the pane.\n * Defaults to the borderless attribute of the pane layout. If used standalone it defaults to false.\n */\n @Prop() borderless: boolean = false;\n\n /**\n * State of the pane\n */\n @Prop({ mutable: true }) expanded: boolean = false;\n\n /**\n * Defines the position of the pane inside it's container.\n * Inside a pane layout this property will automatically be set to the name of slot the pane is assigned to.\n */\n @Prop({ mutable: true }) composition: Composition = 'top';\n\n /**\n * Name of the icon\n */\n @Prop() icon: string;\n\n /**\n * @internal\n * Prevents overwriting of the variant and borderless property when used inside layout\n */\n @Prop() ignoreLayoutSettings: boolean = false;\n\n /**\n * @internal\n */\n @Prop({ mutable: true }) isMobile: boolean = false;\n\n /**\n * This event is triggered when the pane either expands or contracts\n */\n @Event() expandedChanged: EventEmitter<ExpandedChangedEvent>;\n\n /**\n * This event is triggered when the variant of the pane is changed\n */\n @Event() variantChanged: EventEmitter<VariantChangedEvent>;\n\n /**\n * This event is triggered when the variant of the pane is changed\n */\n @Event() borderlessChanged: EventEmitter<BorderlessChangedEvent>;\n\n /**\n * @internal\n */\n @Event() hideOnCollapseChanged: EventEmitter<HideOnCollapseChangedEvent>;\n\n /**\n * @internal\n */\n @Event() slotChanged: EventEmitter<SlotChangedEvent>;\n\n @State() private expandIcon = '';\n @State() private showContent = false;\n @State() private minimizeIcon = '';\n @State() private floating = false;\n @State() private parentWidthPx = 0;\n @State() private parentHeightPx = 0;\n\n private validPositions = ['top', 'left', 'bottom', 'right'];\n private collapsedPane = '40px';\n private collapsedPaneMobile = '48px';\n private animations: Map<string, anime.AnimeInstance> = new Map();\n private animationCounter = 0;\n\n private mutationObserver: MutationObserver;\n private resizeObserver: ResizeObserver;\n\n get currentSlot() {\n return this.hostElement.getAttribute('slot');\n }\n\n get isBottomTopPane() {\n return this.composition === 'bottom' || this.composition === 'top';\n }\n\n get isLeftRightPane() {\n return this.composition === 'left' || this.composition === 'right';\n }\n\n get isMobileTop() {\n return this.composition === 'top' || this.composition === 'left';\n }\n\n componentWillLoad() {\n this.setIcons();\n\n this.floating = this.variant === 'floating';\n\n if (this.expanded) {\n this.onParentSizeChange();\n }\n\n this.isMobile = matchBreakpoint('sm');\n applicationLayoutService.onChange.on(() => {\n this.isMobile = matchBreakpoint('sm');\n });\n\n this.setPosition(this.currentSlot);\n\n this.mutationObserver = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n if (\n mutation.type === 'attributes' &&\n mutation.attributeName === 'slot'\n ) {\n const newSlot = this.currentSlot;\n const oldSlot = mutation.oldValue;\n\n if (newSlot !== oldSlot) {\n this.slotChanged.emit({\n slot: oldSlot,\n newSlot: newSlot,\n });\n this.setPosition(newSlot);\n }\n }\n });\n });\n this.mutationObserver.observe(this.hostElement, {\n attributes: true,\n attributeOldValue: true,\n });\n\n const parentElement = this.hostElement.parentElement;\n this.resizeObserver = new ResizeObserver((entries) => {\n this.parentWidthPx = entries[0].borderBoxSize[0].inlineSize;\n this.parentHeightPx = entries[0].borderBoxSize[0].blockSize;\n });\n if (parentElement) this.resizeObserver.observe(parentElement);\n }\n\n disconnectedCallback() {\n this.mutationObserver?.disconnect();\n this.resizeObserver?.disconnect();\n }\n\n private setPosition(value: string) {\n if (this.validPositions.includes(value)) {\n this.composition = value as Composition;\n }\n }\n\n private getExpandPaneSize() {\n let expandPaneSize: string;\n\n if (this.isBottomTopPane) {\n if (this.size.includes('px')) {\n const referenceValue = Math.round(this.parentHeightPx / 2);\n const currentValue = Number(this.size.replace('px', ''));\n\n if (referenceValue && referenceValue < currentValue) {\n expandPaneSize = `${referenceValue}px`;\n } else {\n expandPaneSize = `${currentValue}px`;\n }\n } else {\n if (this.size === '50%') {\n expandPaneSize = `${Math.round(this.parentHeightPx / 2)}px`;\n } else {\n expandPaneSize = `${Math.round(this.parentHeightPx / 3)}px`;\n }\n }\n } else {\n if (this.size.includes('px')) {\n const referenceValue = Math.round(this.parentWidthPx / 2);\n const currentValue = Number(this.size.replace('px', ''));\n\n if (referenceValue && referenceValue < currentValue) {\n expandPaneSize = `${referenceValue}px`;\n } else {\n expandPaneSize = `${currentValue}px`;\n }\n } else {\n if (this.size === '50%') {\n expandPaneSize = `${Math.round(this.parentWidthPx / 2)}px`;\n } else {\n expandPaneSize = `${Math.round(this.parentWidthPx / 3)}px`;\n }\n }\n }\n\n return expandPaneSize;\n }\n\n private setIcons() {\n const { expandIcon, minimizeIcon } = this.getIconNames();\n this.expandIcon = expandIcon;\n this.minimizeIcon = minimizeIcon;\n }\n\n private getIconNames(): { expandIcon: string; minimizeIcon: string } {\n let expandIcon = '';\n let minimizeIcon = '';\n\n switch (this.composition) {\n case 'left':\n expandIcon = this.isMobile\n ? 'double-chevron-up'\n : 'double-chevron-left';\n minimizeIcon = this.isMobile\n ? 'double-chevron-down'\n : 'double-chevron-right';\n break;\n case 'right':\n expandIcon = this.isMobile\n ? 'double-chevron-down'\n : 'double-chevron-right';\n minimizeIcon = this.isMobile\n ? 'double-chevron-up'\n : 'double-chevron-left';\n break;\n case 'bottom':\n expandIcon = 'double-chevron-down';\n minimizeIcon = 'double-chevron-up';\n break;\n case 'top':\n expandIcon = 'double-chevron-up';\n minimizeIcon = 'double-chevron-down';\n break;\n }\n\n return { expandIcon, minimizeIcon };\n }\n\n private getKey() {\n return (this.animationCounter++).toString();\n }\n\n private animateVerticalFadeIn(size: string) {\n let key = this.getKey();\n let animation = anime({\n targets: this.hostElement,\n duration: Animation.mediumTime,\n width: size,\n easing: 'easeInOutSine',\n delay: 0,\n begin: () => {\n if (!this.expanded) {\n this.showContent = false;\n this.animateVerticalPadding('0px');\n } else {\n this.animateVerticalPadding('8px');\n }\n },\n complete: () => {\n if (this.expanded) {\n this.showContent = true;\n }\n\n this.animations.delete(key);\n },\n });\n\n this.animations.set(key, animation);\n }\n\n private animateHorizontalFadeIn(size: string) {\n let key = this.getKey();\n let animation = anime({\n targets: this.hostElement,\n duration: Animation.mediumTime,\n height: size,\n easing: 'easeInOutSine',\n delay: 0,\n begin: () => {\n if (!this.expanded) {\n this.showContent = false;\n if (!this.isMobile) this.animateHorizontalPadding('0px');\n } else {\n if (!this.isMobile) this.animateHorizontalPadding('8px');\n }\n },\n complete: () => {\n if (this.expanded) {\n this.showContent = true;\n }\n\n this.animations.delete(key);\n },\n });\n\n this.animations.set(key, animation);\n }\n\n private removePadding() {\n anime({\n targets: this.hostElement.shadowRoot.querySelector('#title-div'),\n duration: 0,\n paddingTop: 0,\n paddingBottom: 0,\n paddingLeft: 0,\n paddingRight: 0,\n delay: 0,\n });\n }\n\n private animateHorizontalPadding(\n size: string,\n duration = Animation.mediumTime\n ) {\n let key = this.getKey();\n let animation = anime({\n targets: this.hostElement.shadowRoot.querySelector('#title-div'),\n duration: duration,\n paddingTop: size,\n paddingBottom: size,\n easing: 'easeInOutSine',\n delay: 0,\n complete: () => {\n this.animations.delete(key);\n },\n });\n\n this.animations.set(key, animation);\n }\n\n private animateVerticalPadding(\n size: string,\n duration = Animation.mediumTime\n ) {\n let key = this.getKey();\n let animation = anime({\n targets: this.hostElement.shadowRoot.querySelector('#title-div'),\n duration: duration,\n paddingLeft: size,\n paddingRight: size,\n easing: 'easeInOutSine',\n delay: 0,\n complete: () => {\n this.animations.delete(key);\n },\n });\n\n this.animations.set(key, animation);\n }\n\n private clearAnimations() {\n this.animations.forEach((animation) => animation.pause());\n this.animations.clear();\n this.animationCounter = 0;\n }\n\n @Watch('isMobile')\n onMobileChange() {\n this.setIcons();\n this.hostElement.style.removeProperty('width');\n this.hostElement.style.removeProperty('height');\n this.hostElement.style.removeProperty('min-height');\n this.onParentSizeChange();\n }\n\n @Watch('composition')\n onPositionChange() {\n this.setIcons();\n this.hostElement.style.removeProperty('width');\n this.hostElement.style.removeProperty('height');\n this.onParentSizeChange();\n }\n\n @Watch('hideOnCollapse')\n onHideOnCollapseChange(value: boolean) {\n this.onParentSizeChange();\n\n this.hideOnCollapseChanged.emit({\n slot: this.currentSlot,\n hideOnCollapse: value,\n });\n }\n\n @Watch('variant')\n onVariantChange(value: 'inline' | 'floating') {\n this.floating = value === 'floating';\n\n this.variantChanged.emit({\n slot: this.currentSlot,\n variant: value,\n });\n }\n\n @Watch('borderless')\n onBorderlessChange(value: boolean) {\n this.borderlessChanged.emit({\n slot: this.currentSlot,\n borderless: value,\n });\n }\n\n @Watch('expanded')\n onExpandedChange() {\n this.onSizeChange();\n\n this.expandedChanged.emit({\n slot: this.currentSlot,\n expanded: this.expanded,\n });\n }\n\n @Watch('parentHeightPx')\n @Watch('parentWidthPx')\n onParentSizeChange() {\n this.clearAnimations();\n this.removePadding();\n\n if (this.expanded) {\n if (this.isMobile) {\n this.hostElement.style.height = '100%';\n } else {\n const expandPaneSize = this.getExpandPaneSize();\n\n if (this.isBottomTopPane) {\n this.hostElement.style.height = expandPaneSize;\n this.animateHorizontalPadding('8px', 0);\n } else {\n this.hostElement.style.width = expandPaneSize;\n this.animateVerticalPadding('8px', 0);\n }\n }\n\n this.showContent = true;\n } else {\n this.showContent = false;\n\n if (this.isMobile) {\n this.hostElement.style.height = this.hideOnCollapse\n ? '0'\n : this.collapsedPaneMobile;\n } else {\n if (this.isBottomTopPane) {\n this.hostElement.style.height = this.hideOnCollapse\n ? '0'\n : this.collapsedPane;\n } else {\n this.hostElement.style.width = this.hideOnCollapse\n ? '0'\n : this.collapsedPane;\n }\n }\n }\n }\n\n @Watch('size')\n onSizeChange() {\n if (this.expanded) {\n if (this.isMobile) {\n this.hostElement.style.minHeight = this.hideOnCollapse\n ? '0'\n : this.collapsedPaneMobile;\n this.animateHorizontalFadeIn('100%');\n } else {\n const expandPaneSize = this.getExpandPaneSize();\n\n if (this.isBottomTopPane) {\n this.hostElement.style.height = this.hideOnCollapse\n ? '0'\n : this.collapsedPane;\n this.animateHorizontalFadeIn(expandPaneSize);\n } else {\n this.hostElement.style.width = this.hideOnCollapse\n ? '0'\n : this.collapsedPane;\n this.animateVerticalFadeIn(expandPaneSize);\n }\n }\n } else {\n this.showContent = false;\n\n if (this.isMobile) {\n this.hostElement.style.height = this.collapsedPaneMobile;\n } else {\n if (this.isBottomTopPane) {\n this.animateHorizontalFadeIn(this.collapsedPane);\n } else {\n this.animateVerticalFadeIn(this.collapsedPane);\n }\n }\n }\n }\n\n render() {\n return (\n <Host\n class={{\n 'inline-color': !this.floating,\n 'mobile-overlay': this.expanded && this.isMobile,\n 'top-expanded': this.expanded && this.isMobileTop && this.isMobile,\n 'bottom-expanded':\n this.expanded && !this.isMobileTop && this.isMobile,\n 'top-bottom-pane': this.isBottomTopPane && !this.isMobile,\n 'left-right-pane': this.isLeftRightPane && !this.isMobile,\n [`${this.composition}-pane-border`]:\n !this.borderless && !this.isMobile && !this.floating,\n 'nav-left-border':\n !this.borderless &&\n !this.isMobile &&\n this.composition !== 'right' &&\n this.floating,\n 'mobile-border-top':\n !this.borderless &&\n this.isMobileTop &&\n this.isMobile &&\n !this.expanded &&\n !this.floating,\n 'mobile-border-bottom':\n !this.borderless &&\n !this.isMobileTop &&\n this.isMobile &&\n !this.expanded &&\n !this.floating,\n 'box-shadow': this.floating,\n 'aria-expanded': this.expanded,\n 'not-visible': this.hideOnCollapse && !this.expanded,\n }}\n >\n <aside\n class={{\n 'top-bottom-pane': this.isBottomTopPane && !this.isMobile,\n 'left-right-pane': this.isLeftRightPane && !this.isMobile,\n 'mobile-pane': this.isMobile,\n expanded: this.expanded,\n }}\n >\n <div\n id=\"title-div\"\n class={{\n title:\n !this.isMobile && !this.hideOnCollapse && !this.showContent,\n 'title-finished':\n !this.isMobile && !this.hideOnCollapse && this.showContent,\n 'title-expanded':\n !this.isMobile && !this.hideOnCollapse && this.expanded,\n 'title-hide-on-collapse': !this.isMobile && this.hideOnCollapse,\n 'title-mobile': this.isMobile,\n 'header-gap': !this.isMobile && !this.hideOnCollapse,\n }}\n >\n <ix-icon-button\n class=\"title-icon\"\n size=\"24\"\n icon={\n this.expanded\n ? this.isMobile || this.hideOnCollapse\n ? 'close'\n : this.expandIcon\n : this.minimizeIcon\n }\n ghost\n onClick={() => {\n this.expanded = !this.expanded;\n }}\n aria-controls={this.composition + 'ToggleButton'}\n />\n <span\n class={{\n 'title-text': true,\n rotate:\n !this.expanded && !this.isMobile && this.isLeftRightPane,\n }}\n >\n {this.icon ? (\n <ix-icon size=\"24\" name={this.icon}></ix-icon>\n ) : null}\n <div class=\"title-text-overflow\">\n <ix-typography format=\"h4\">{this.heading}</ix-typography>\n </div>\n </span>\n </div>\n <div class=\"side-pane-content\" hidden={!this.showContent}>\n <slot></slot>\n </div>\n </aside>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pane.js","sourceRoot":"","sources":["../../../src/components/pane/pane.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAwBvD;;GAEG;AAMH,MAAM,OAAO,IAAI;;QAgGP,mBAAc,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE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AAC,WAAW;oBACtD,8DAAa,CACT,CACA,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","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\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport anime from 'animejs';\nimport Animation from '../utils/animation';\nimport { applicationLayoutService } from '../utils/application-layout';\nimport { matchBreakpoint } from '../utils/breakpoints';\n\nexport type Composition = 'top' | 'left' | 'bottom' | 'right';\nexport type ExpandedChangedEvent = {\n slot: string;\n expanded: boolean;\n};\nexport type SlotChangedEvent = {\n slot: string;\n newSlot: string;\n};\nexport type HideOnCollapseChangedEvent = {\n slot: string;\n hideOnCollapse: boolean;\n};\nexport type VariantChangedEvent = {\n slot: string;\n variant: 'floating' | 'inline';\n};\nexport type BorderlessChangedEvent = {\n slot: string;\n borderless: boolean;\n};\n\n/**\n * @since 2.1.0\n */\n@Component({\n tag: 'ix-pane',\n styleUrl: 'pane.scss',\n shadow: true,\n})\nexport class Pane {\n @Element() hostElement: HTMLIxPaneElement;\n\n /**\n * Title of the side panel\n */\n @Prop() heading: string;\n\n /**\n * Variant of the side pane.\n * Defaults to the variant attribute of the pane layout. If used standalone it defaults to inline.\n */\n @Prop() variant: 'floating' | 'inline' = 'inline';\n\n /**\n * Define if the pane should have a collapsed state\n */\n @Prop() hideOnCollapse: boolean = false;\n\n /**\n * The maximum size of the sidebar, when it is expanded\n */\n @Prop() size:\n | '240px'\n | '320px'\n | '360px'\n | '480px'\n | '600px'\n | '33%'\n | '50%' = '240px';\n\n /**\n * Toggle the border of the pane.\n * Defaults to the borderless attribute of the pane layout. If used standalone it defaults to false.\n */\n @Prop() borderless: boolean = false;\n\n /**\n * State of the pane\n */\n @Prop({ mutable: true }) expanded: boolean = false;\n\n /**\n * Defines the position of the pane inside it's container.\n * Inside a pane layout this property will automatically be set to the name of slot the pane is assigned to.\n */\n @Prop({ mutable: true }) composition: Composition = 'top';\n\n /**\n * Name of the icon\n */\n @Prop() icon: string;\n\n /**\n * @internal\n * Prevents overwriting of the variant and borderless property when used inside layout\n */\n @Prop() ignoreLayoutSettings: boolean = false;\n\n /**\n * @internal\n */\n @Prop({ mutable: true }) isMobile: boolean = false;\n\n /**\n * This event is triggered when the pane either expands or contracts\n */\n @Event() expandedChanged: EventEmitter<ExpandedChangedEvent>;\n\n /**\n * This event is triggered when the variant of the pane is changed\n */\n @Event() variantChanged: EventEmitter<VariantChangedEvent>;\n\n /**\n * This event is triggered when the variant of the pane is changed\n */\n @Event() borderlessChanged: EventEmitter<BorderlessChangedEvent>;\n\n /**\n * @internal\n */\n @Event() hideOnCollapseChanged: EventEmitter<HideOnCollapseChangedEvent>;\n\n /**\n * @internal\n */\n @Event() slotChanged: EventEmitter<SlotChangedEvent>;\n\n @State() private expandIcon = '';\n @State() private showContent = false;\n @State() private minimizeIcon = '';\n @State() private floating = false;\n @State() private parentWidthPx = 0;\n @State() private parentHeightPx = 0;\n\n private validPositions = ['top', 'left', 'bottom', 'right'];\n private collapsedPane = '40px';\n private collapsedPaneMobile = '48px';\n private animations: Map<string, anime.AnimeInstance> = new Map();\n private animationCounter = 0;\n\n private mutationObserver: MutationObserver;\n private resizeObserver: ResizeObserver;\n\n get currentSlot() {\n return this.hostElement.getAttribute('slot');\n }\n\n get isBottomTopPane() {\n return this.composition === 'bottom' || this.composition === 'top';\n }\n\n get isLeftRightPane() {\n return this.composition === 'left' || this.composition === 'right';\n }\n\n get isMobileTop() {\n return this.composition === 'top' || this.composition === 'left';\n }\n\n componentWillLoad() {\n this.setIcons();\n\n this.floating = this.variant === 'floating';\n\n if (this.expanded) {\n this.onParentSizeChange();\n }\n\n this.isMobile = matchBreakpoint('sm');\n applicationLayoutService.onChange.on(() => {\n this.isMobile = matchBreakpoint('sm');\n });\n\n this.setPosition(this.currentSlot);\n\n this.mutationObserver = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n if (\n mutation.type === 'attributes' &&\n mutation.attributeName === 'slot'\n ) {\n const newSlot = this.currentSlot;\n const oldSlot = mutation.oldValue;\n\n if (newSlot !== oldSlot) {\n this.slotChanged.emit({\n slot: oldSlot,\n newSlot: newSlot,\n });\n this.setPosition(newSlot);\n }\n }\n });\n });\n this.mutationObserver.observe(this.hostElement, {\n attributes: true,\n attributeOldValue: true,\n });\n\n const parentElement = this.hostElement.parentElement;\n this.resizeObserver = new ResizeObserver((entries) => {\n this.parentWidthPx = entries[0].borderBoxSize[0].inlineSize;\n this.parentHeightPx = entries[0].borderBoxSize[0].blockSize;\n });\n if (parentElement) this.resizeObserver.observe(parentElement);\n }\n\n disconnectedCallback() {\n this.mutationObserver?.disconnect();\n this.resizeObserver?.disconnect();\n }\n\n private setPosition(value: string) {\n if (this.validPositions.includes(value)) {\n this.composition = value as Composition;\n }\n }\n\n private getExpandPaneSize() {\n let expandPaneSize: string;\n\n if (this.isBottomTopPane) {\n if (this.size.includes('px')) {\n const referenceValue = Math.round(this.parentHeightPx / 2);\n const currentValue = Number(this.size.replace('px', ''));\n\n if (referenceValue && referenceValue < currentValue) {\n expandPaneSize = `${referenceValue}px`;\n } else {\n expandPaneSize = `${currentValue}px`;\n }\n } else {\n if (this.size === '50%') {\n expandPaneSize = `${Math.round(this.parentHeightPx / 2)}px`;\n } else {\n expandPaneSize = `${Math.round(this.parentHeightPx / 3)}px`;\n }\n }\n } else {\n if (this.size.includes('px')) {\n const referenceValue = Math.round(this.parentWidthPx / 2);\n const currentValue = Number(this.size.replace('px', ''));\n\n if (referenceValue && referenceValue < currentValue) {\n expandPaneSize = `${referenceValue}px`;\n } else {\n expandPaneSize = `${currentValue}px`;\n }\n } else {\n if (this.size === '50%') {\n expandPaneSize = `${Math.round(this.parentWidthPx / 2)}px`;\n } else {\n expandPaneSize = `${Math.round(this.parentWidthPx / 3)}px`;\n }\n }\n }\n\n return expandPaneSize;\n }\n\n private setIcons() {\n const { expandIcon, minimizeIcon } = this.getIconNames();\n this.expandIcon = expandIcon;\n this.minimizeIcon = minimizeIcon;\n }\n\n private getIconNames(): { expandIcon: string; minimizeIcon: string } {\n let expandIcon = '';\n let minimizeIcon = '';\n\n switch (this.composition) {\n case 'left':\n expandIcon = this.isMobile\n ? 'double-chevron-up'\n : 'double-chevron-left';\n minimizeIcon = this.isMobile\n ? 'double-chevron-down'\n : 'double-chevron-right';\n break;\n case 'right':\n expandIcon = this.isMobile\n ? 'double-chevron-down'\n : 'double-chevron-right';\n minimizeIcon = this.isMobile\n ? 'double-chevron-up'\n : 'double-chevron-left';\n break;\n case 'bottom':\n expandIcon = 'double-chevron-down';\n minimizeIcon = 'double-chevron-up';\n break;\n case 'top':\n expandIcon = 'double-chevron-up';\n minimizeIcon = 'double-chevron-down';\n break;\n }\n\n return { expandIcon, minimizeIcon };\n }\n\n private getKey() {\n return (this.animationCounter++).toString();\n }\n\n private animateVerticalFadeIn(size: string) {\n let key = this.getKey();\n let animation = anime({\n targets: this.hostElement,\n duration: Animation.mediumTime,\n width: size,\n easing: 'easeInOutSine',\n delay: 0,\n begin: () => {\n if (!this.expanded) {\n this.showContent = false;\n this.animateVerticalPadding('0px');\n } else {\n this.animateVerticalPadding('8px');\n }\n },\n complete: () => {\n if (this.expanded) {\n this.showContent = true;\n }\n\n this.animations.delete(key);\n },\n });\n\n this.animations.set(key, animation);\n }\n\n private animateHorizontalFadeIn(size: string) {\n let key = this.getKey();\n let animation = anime({\n targets: this.hostElement,\n duration: Animation.mediumTime,\n height: size,\n easing: 'easeInOutSine',\n delay: 0,\n begin: () => {\n if (!this.expanded) {\n this.showContent = false;\n if (!this.isMobile) this.animateHorizontalPadding('0px');\n } else {\n if (!this.isMobile) this.animateHorizontalPadding('8px');\n }\n },\n complete: () => {\n if (this.expanded) {\n this.showContent = true;\n }\n\n this.animations.delete(key);\n },\n });\n\n this.animations.set(key, animation);\n }\n\n private removePadding() {\n anime({\n targets: this.hostElement.shadowRoot.querySelector('#title-div'),\n duration: 0,\n paddingTop: 0,\n paddingBottom: 0,\n paddingLeft: 0,\n paddingRight: 0,\n delay: 0,\n });\n }\n\n private animateHorizontalPadding(\n size: string,\n duration = Animation.mediumTime\n ) {\n let key = this.getKey();\n let animation = anime({\n targets: this.hostElement.shadowRoot.querySelector('#title-div'),\n duration: duration,\n paddingTop: size,\n paddingBottom: size,\n easing: 'easeInOutSine',\n delay: 0,\n complete: () => {\n this.animations.delete(key);\n },\n });\n\n this.animations.set(key, animation);\n }\n\n private animateVerticalPadding(\n size: string,\n duration = Animation.mediumTime\n ) {\n let key = this.getKey();\n let animation = anime({\n targets: this.hostElement.shadowRoot.querySelector('#title-div'),\n duration: duration,\n paddingLeft: size,\n paddingRight: size,\n easing: 'easeInOutSine',\n delay: 0,\n complete: () => {\n this.animations.delete(key);\n },\n });\n\n this.animations.set(key, animation);\n }\n\n private clearAnimations() {\n this.animations.forEach((animation) => animation.pause());\n this.animations.clear();\n this.animationCounter = 0;\n }\n\n @Watch('isMobile')\n onMobileChange() {\n this.setIcons();\n this.hostElement.style.removeProperty('width');\n this.hostElement.style.removeProperty('height');\n this.hostElement.style.removeProperty('min-height');\n this.onParentSizeChange();\n }\n\n @Watch('composition')\n onPositionChange() {\n this.setIcons();\n this.hostElement.style.removeProperty('width');\n this.hostElement.style.removeProperty('height');\n this.onParentSizeChange();\n }\n\n @Watch('hideOnCollapse')\n onHideOnCollapseChange(value: boolean) {\n this.onParentSizeChange();\n\n this.hideOnCollapseChanged.emit({\n slot: this.currentSlot,\n hideOnCollapse: value,\n });\n }\n\n @Watch('variant')\n onVariantChange(value: 'inline' | 'floating') {\n this.floating = value === 'floating';\n\n this.variantChanged.emit({\n slot: this.currentSlot,\n variant: value,\n });\n }\n\n @Watch('borderless')\n onBorderlessChange(value: boolean) {\n this.borderlessChanged.emit({\n slot: this.currentSlot,\n borderless: value,\n });\n }\n\n @Watch('expanded')\n onExpandedChange() {\n this.onSizeChange();\n\n this.expandedChanged.emit({\n slot: this.currentSlot,\n expanded: this.expanded,\n });\n }\n\n @Watch('parentHeightPx')\n @Watch('parentWidthPx')\n onParentSizeChange() {\n this.clearAnimations();\n this.removePadding();\n\n if (this.expanded) {\n if (this.isMobile) {\n this.hostElement.style.height = '100%';\n } else {\n const expandPaneSize = this.getExpandPaneSize();\n\n if (this.isBottomTopPane) {\n this.hostElement.style.height = expandPaneSize;\n this.animateHorizontalPadding('8px', 0);\n } else {\n this.hostElement.style.width = expandPaneSize;\n this.animateVerticalPadding('8px', 0);\n }\n }\n\n this.showContent = true;\n } else {\n this.showContent = false;\n\n if (this.isMobile) {\n this.hostElement.style.height = this.hideOnCollapse\n ? '0'\n : this.collapsedPaneMobile;\n } else {\n if (this.isBottomTopPane) {\n this.hostElement.style.height = this.hideOnCollapse\n ? '0'\n : this.collapsedPane;\n } else {\n this.hostElement.style.width = this.hideOnCollapse\n ? '0'\n : this.collapsedPane;\n }\n }\n }\n }\n\n @Watch('size')\n onSizeChange() {\n if (this.expanded) {\n if (this.isMobile) {\n this.hostElement.style.minHeight = this.hideOnCollapse\n ? '0'\n : this.collapsedPaneMobile;\n this.animateHorizontalFadeIn('100%');\n } else {\n const expandPaneSize = this.getExpandPaneSize();\n\n if (this.isBottomTopPane) {\n this.hostElement.style.height = this.hideOnCollapse\n ? '0'\n : this.collapsedPane;\n this.animateHorizontalFadeIn(expandPaneSize);\n } else {\n this.hostElement.style.width = this.hideOnCollapse\n ? '0'\n : this.collapsedPane;\n this.animateVerticalFadeIn(expandPaneSize);\n }\n }\n } else {\n this.showContent = false;\n\n if (this.isMobile) {\n this.hostElement.style.height = this.collapsedPaneMobile;\n } else {\n if (this.isBottomTopPane) {\n this.animateHorizontalFadeIn(this.collapsedPane);\n } else {\n this.animateVerticalFadeIn(this.collapsedPane);\n }\n }\n }\n }\n\n render() {\n return (\n <Host\n class={{\n 'inline-color': !this.floating,\n 'mobile-overlay': this.expanded && this.isMobile,\n 'top-expanded': this.expanded && this.isMobileTop && this.isMobile,\n 'bottom-expanded':\n this.expanded && !this.isMobileTop && this.isMobile,\n 'top-bottom-pane': this.isBottomTopPane && !this.isMobile,\n 'left-right-pane': this.isLeftRightPane && !this.isMobile,\n [`${this.composition}-pane-border`]:\n !this.borderless && !this.isMobile && !this.floating,\n 'nav-left-border':\n !this.borderless &&\n !this.isMobile &&\n this.composition !== 'right' &&\n this.floating,\n 'mobile-border-top':\n !this.borderless &&\n this.isMobileTop &&\n this.isMobile &&\n !this.expanded &&\n !this.floating,\n 'mobile-border-bottom':\n !this.borderless &&\n !this.isMobileTop &&\n this.isMobile &&\n !this.expanded &&\n !this.floating,\n 'box-shadow': this.floating,\n 'aria-expanded': this.expanded,\n 'not-visible': this.hideOnCollapse && !this.expanded,\n }}\n >\n <aside\n class={{\n 'top-bottom-pane': this.isBottomTopPane && !this.isMobile,\n 'left-right-pane': this.isLeftRightPane && !this.isMobile,\n 'mobile-pane': this.isMobile,\n expanded: this.expanded,\n }}\n >\n <div\n id=\"title-div\"\n class={{\n title:\n !this.isMobile && !this.hideOnCollapse && !this.showContent,\n 'title-finished':\n !this.isMobile && !this.hideOnCollapse && this.showContent,\n 'title-expanded':\n !this.isMobile && !this.hideOnCollapse && this.expanded,\n 'title-hide-on-collapse': !this.isMobile && this.hideOnCollapse,\n 'title-mobile': this.isMobile,\n 'header-gap': !this.isMobile && !this.hideOnCollapse,\n }}\n >\n <ix-icon-button\n class=\"title-icon\"\n size=\"24\"\n icon={\n this.expanded\n ? this.isMobile || this.hideOnCollapse\n ? 'close'\n : this.expandIcon\n : this.minimizeIcon\n }\n ghost\n onClick={() => {\n this.expanded = !this.expanded;\n }}\n aria-controls={this.composition + 'ToggleButton'}\n />\n <span\n class={{\n 'title-text': true,\n rotate:\n !this.expanded && !this.isMobile && this.isLeftRightPane,\n }}\n >\n {this.icon ? (\n <ix-icon size=\"24\" name={this.icon}></ix-icon>\n ) : null}\n <div class=\"title-text-overflow\">\n <ix-typography format=\"h4\">{this.heading}</ix-typography>\n </div>\n </span>\n </div>\n <div class=\"side-pane-content\" hidden={!this.showContent}>\n <slot></slot>\n </div>\n </aside>\n </Host>\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"panes.ct.js","sourceRoot":"","sources":["../../../../../src/components/pane/test/panes.ct.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,MAAM,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACnC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACrC,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IACzC,MAAM,KAAK,CAAC;;;;;;;;;GASX,CAAC,CAAC;IAEH,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;AACpC,CAAC,CAAC,CAAC","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\nimport { expect } from '@playwright/test';\nimport { test } from '@utils/test';\n\ntest('renders', async ({ mount, page }) => {\n await mount(`<ix-pane></ix-pane>`);\n const pane = page.locator('ix-pane');\n await expect(pane).toHaveClass(/hydrated/);\n});\n\ntest('expanded', async ({ mount, page }) => {\n await mount(`\n <ix-pane\n heading=\"LEFT\"\n composition=\"left\"\n icon=\"star\"\n expanded=\"true\"\n >\n <h1>Test Heading</h1>\n </ix-pane>\n `);\n\n const title = page.locator('h1');\n await expect(title).toBeVisible();\n});\n"]}
1
+ {"version":3,"file":"panes.ct.js","sourceRoot":"","sources":["../../../../src/components/pane/test/panes.ct.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IACxC,MAAM,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACnC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACrC,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;IACzC,MAAM,KAAK,CAAC;;;;;;;;;GASX,CAAC,CAAC;IAEH,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;AACpC,CAAC,CAAC,CAAC","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\nimport { expect } from '@playwright/test';\nimport { test } from '@utils/test';\n\ntest('renders', async ({ mount, page }) => {\n await mount(`<ix-pane></ix-pane>`);\n const pane = page.locator('ix-pane');\n await expect(pane).toHaveClass(/hydrated/);\n});\n\ntest('expanded', async ({ mount, page }) => {\n await mount(`\n <ix-pane\n heading=\"LEFT\"\n composition=\"left\"\n icon=\"star\"\n expanded=\"true\"\n >\n <h1>Test Heading</h1>\n </ix-pane>\n `);\n\n const title = page.locator('h1');\n await expect(title).toBeVisible();\n});\n"]}
@@ -230,7 +230,7 @@ export class Panes {
230
230
  return pane ? pane.floating : false;
231
231
  }
232
232
  render() {
233
- return (h(Host, { key: '90da4f25bcad07a3a2a4bfc551a129deac824d84' }, !this.isMobile ? (this.layout == 'full-vertical' ? (h("div", { class: "side-panes-wrapper" }, h("div", { class: {
233
+ return (h(Host, { key: '4167dc285dcf1adaf15f0eb3b9f6692e27918b43' }, !this.isMobile ? (this.layout == 'full-vertical' ? (h("div", { class: "side-panes-wrapper" }, h("div", { class: {
234
234
  row: true,
235
235
  'padding-left': this.hasPadding('left'),
236
236
  'padding-right': this.hasPadding('right'),