@siemens/ix 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (588) hide show
  1. package/dist/cjs/icon-c65f0901.js +106 -0
  2. package/dist/cjs/icon-c65f0901.js.map +1 -0
  3. package/dist/cjs/{index-931d1fb5.js → index-c978628a.js} +53 -5
  4. package/dist/cjs/index-c978628a.js.map +1 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/index.cjs.js.map +1 -1
  7. package/dist/cjs/ix-action-card.cjs.entry.js +28 -0
  8. package/dist/cjs/ix-action-card.cjs.entry.js.map +1 -0
  9. package/dist/cjs/ix-animated-tab_2.cjs.entry.js +1 -1
  10. package/dist/cjs/ix-application-header.cjs.entry.js +1 -1
  11. package/dist/cjs/ix-basic-navigation.cjs.entry.js +2 -2
  12. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ix-blind.cjs.entry.js +4 -7
  14. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
  16. package/dist/cjs/ix-burger-menu.cjs.entry.js +1 -1
  17. package/dist/cjs/ix-button.cjs.entry.js +2 -2
  18. package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +74 -0
  20. package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -0
  21. package/dist/cjs/ix-card-list.cjs.entry.js +164 -0
  22. package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -0
  23. package/dist/cjs/{ix-typography.cjs.entry.js → ix-card_3.cjs.entry.js} +37 -3
  24. package/dist/cjs/ix-card_3.cjs.entry.js.map +1 -0
  25. package/dist/cjs/ix-category-filter.cjs.entry.js +1 -1
  26. package/dist/cjs/ix-chip.cjs.entry.js +1 -1
  27. package/dist/cjs/ix-content-header.cjs.entry.js +26 -0
  28. package/dist/cjs/ix-content-header.cjs.entry.js.map +1 -0
  29. package/dist/cjs/ix-counter-pill.cjs.entry.js +1 -1
  30. package/dist/cjs/ix-css-grid-item.cjs.entry.js +24 -0
  31. package/dist/cjs/ix-css-grid-item.cjs.entry.js.map +1 -0
  32. package/dist/cjs/ix-css-grid.cjs.entry.js +96 -0
  33. package/dist/cjs/ix-css-grid.cjs.entry.js.map +1 -0
  34. package/dist/cjs/ix-date-picker_2.cjs.entry.js +103 -19
  35. package/dist/cjs/ix-date-picker_2.cjs.entry.js.map +1 -1
  36. package/dist/cjs/ix-date-time-card.cjs.entry.js +1 -1
  37. package/dist/cjs/ix-datetime-picker.cjs.entry.js +1 -1
  38. package/dist/cjs/ix-divider.cjs.entry.js +1 -1
  39. package/dist/cjs/ix-drawer.cjs.entry.js +4 -4
  40. package/dist/cjs/ix-drawer.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ix-dropdown-button.cjs.entry.js +1 -1
  42. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
  43. package/dist/cjs/ix-dropdown_2.cjs.entry.js +1 -1
  44. package/dist/cjs/ix-empty-state.cjs.entry.js +27 -0
  45. package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -0
  46. package/dist/cjs/ix-event-list_2.cjs.entry.js +1 -1
  47. package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -2
  48. package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ix-filter-chip.cjs.entry.js +1 -1
  50. package/dist/cjs/ix-flip-tile_2.cjs.entry.js +1 -1
  51. package/dist/cjs/ix-group-context-menu.cjs.entry.js +1 -1
  52. package/dist/cjs/ix-group_3.cjs.entry.js +1 -1
  53. package/dist/cjs/ix-icon-button.cjs.entry.js +11 -4
  54. package/dist/cjs/ix-icon-button.cjs.entry.js.map +1 -1
  55. package/dist/cjs/ix-icon.cjs.entry.js +3 -29
  56. package/dist/cjs/ix-icon.cjs.entry.js.map +1 -1
  57. package/dist/cjs/ix-index-button.cjs.entry.js +1 -1
  58. package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
  59. package/dist/cjs/ix-key-value-list.cjs.entry.js +22 -0
  60. package/dist/cjs/ix-key-value-list.cjs.entry.js.map +1 -0
  61. package/dist/cjs/ix-key-value.cjs.entry.js +28 -0
  62. package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -0
  63. package/dist/cjs/ix-kpi.cjs.entry.js +2 -2
  64. package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
  65. package/dist/cjs/ix-map-navigation_2.cjs.entry.js +11 -5
  66. package/dist/cjs/ix-map-navigation_2.cjs.entry.js.map +1 -1
  67. package/dist/cjs/ix-menu_9.cjs.entry.js +24 -15
  68. package/dist/cjs/ix-menu_9.cjs.entry.js.map +1 -1
  69. package/dist/cjs/ix-message-bar.cjs.entry.js +2 -2
  70. package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -1
  71. package/dist/cjs/ix-modal-example.cjs.entry.js +1 -1
  72. package/dist/cjs/ix-modal_2.cjs.entry.js +2 -2
  73. package/dist/cjs/ix-modal_2.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ix-pagination.cjs.entry.js +1 -1
  75. package/dist/cjs/ix-pill.cjs.entry.js +1 -1
  76. package/dist/cjs/ix-push-card.cjs.entry.js +27 -0
  77. package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -0
  78. package/dist/cjs/ix-select_2.cjs.entry.js +3 -3
  79. package/dist/cjs/ix-select_2.cjs.entry.js.map +1 -1
  80. package/dist/cjs/ix-spinner.cjs.entry.js +2 -2
  81. package/dist/cjs/ix-spinner.cjs.entry.js.map +1 -1
  82. package/dist/cjs/ix-split-button_2.cjs.entry.js +1 -1
  83. package/dist/cjs/ix-tab-item.cjs.entry.js +1 -1
  84. package/dist/cjs/ix-tabs.cjs.entry.js +1 -1
  85. package/dist/cjs/ix-tile.cjs.entry.js +1 -1
  86. package/dist/cjs/ix-toast_2.cjs.entry.js +8 -26
  87. package/dist/cjs/ix-toast_2.cjs.entry.js.map +1 -1
  88. package/dist/cjs/ix-toggle.cjs.entry.js +1 -1
  89. package/dist/cjs/ix-tooltip.cjs.entry.js +1 -1
  90. package/dist/cjs/ix-tree_2.cjs.entry.js +1 -1
  91. package/dist/cjs/ix-upload.cjs.entry.js +1 -1
  92. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +1 -1
  93. package/dist/cjs/ix-workflow-step_2.cjs.entry.js +1 -1
  94. package/dist/cjs/loader.cjs.js +2 -2
  95. package/dist/cjs/my-component.cjs.entry.js +2 -2
  96. package/dist/cjs/my-component.cjs.entry.js.map +1 -1
  97. package/dist/cjs/siemens-ix.cjs.js +2 -2
  98. package/dist/collection/collection-manifest.json +32 -3
  99. package/dist/collection/components/action-card/action-card.css +161 -0
  100. package/dist/collection/components/action-card/action-card.js +136 -0
  101. package/dist/collection/components/action-card/action-card.js.map +1 -0
  102. package/dist/collection/components/basic-navigation/basic-navigation.css +1 -1
  103. package/dist/collection/components/blind/blind.css +5 -5
  104. package/dist/collection/components/blind/blind.js +3 -6
  105. package/dist/collection/components/blind/blind.js.map +1 -1
  106. package/dist/collection/components/button/button.css +359 -0
  107. package/dist/collection/components/button/button.js +2 -2
  108. package/dist/collection/components/button/button.js.map +1 -1
  109. package/dist/collection/components/card/card.css +92 -0
  110. package/dist/collection/components/card/card.js +53 -0
  111. package/dist/collection/components/card/card.js.map +1 -0
  112. package/dist/collection/components/card-accordion/card-accordion.css +121 -0
  113. package/dist/collection/components/card-accordion/card-accordion.js +94 -0
  114. package/dist/collection/components/card-accordion/card-accordion.js.map +1 -0
  115. package/dist/collection/components/card-content/card-content.css +29 -0
  116. package/dist/collection/components/card-content/card-content.js +22 -0
  117. package/dist/collection/components/card-content/card-content.js.map +1 -0
  118. package/dist/collection/components/card-list/card-list.css +127 -0
  119. package/dist/collection/components/card-list/card-list.js +387 -0
  120. package/dist/collection/components/card-list/card-list.js.map +1 -0
  121. package/dist/collection/components/card-title/card-title.css +30 -0
  122. package/dist/collection/components/card-title/card-title.js +24 -0
  123. package/dist/collection/components/card-title/card-title.js.map +1 -0
  124. package/dist/collection/components/content-header/content-header.css +28 -0
  125. package/dist/collection/components/content-header/content-header.js +131 -0
  126. package/dist/collection/components/content-header/content-header.js.map +1 -0
  127. package/dist/collection/components/drawer/drawer.css +20 -12
  128. package/dist/collection/components/drawer/drawer.js +5 -5
  129. package/dist/collection/components/drawer/drawer.js.map +1 -1
  130. package/dist/collection/components/empty-state/empty-state.css +100 -0
  131. package/dist/collection/components/empty-state/empty-state.js +150 -0
  132. package/dist/collection/components/empty-state/empty-state.js.map +1 -0
  133. package/dist/collection/components/expanding-search/expanding-search.css +8 -0
  134. package/dist/collection/components/expanding-search/expanding-search.js +24 -0
  135. package/dist/collection/components/expanding-search/expanding-search.js.map +1 -1
  136. package/dist/collection/components/icon-button/icon-button.css +362 -0
  137. package/dist/collection/components/icon-button/icon-button.js +10 -3
  138. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  139. package/dist/collection/components/key-value/key-value.css +56 -0
  140. package/dist/collection/components/key-value/key-value.js +119 -0
  141. package/dist/collection/components/key-value/key-value.js.map +1 -0
  142. package/dist/collection/components/key-value-list/key-value-list.css +7 -0
  143. package/dist/collection/components/key-value-list/key-value-list.js +54 -0
  144. package/dist/collection/components/key-value-list/key-value-list.js.map +1 -0
  145. package/dist/collection/components/kpi/kpi.css +25 -11
  146. package/dist/collection/components/kpi/kpi.js +1 -1
  147. package/dist/collection/components/kpi/kpi.js.map +1 -1
  148. package/dist/collection/components/layout/css-grid/builder.js +20 -0
  149. package/dist/collection/components/layout/css-grid/builder.js.map +1 -0
  150. package/dist/collection/components/layout/css-grid/css-grid-item.css +16 -0
  151. package/dist/collection/components/layout/css-grid/css-grid-item.js +56 -0
  152. package/dist/collection/components/layout/css-grid/css-grid-item.js.map +1 -0
  153. package/dist/collection/components/{icon/icon.css → layout/css-grid/css-grid.css} +5 -23
  154. package/dist/collection/components/layout/css-grid/css-grid.js +123 -0
  155. package/dist/collection/components/layout/css-grid/css-grid.js.map +1 -0
  156. package/dist/collection/components/map-navigation/map-navigation.css +1 -1
  157. package/dist/collection/components/map-navigation/map-navigation.js +37 -3
  158. package/dist/collection/components/map-navigation/map-navigation.js.map +1 -1
  159. package/dist/collection/components/menu/menu.css +4 -4
  160. package/dist/collection/components/menu/menu.js +1 -1
  161. package/dist/collection/components/menu/menu.js.map +1 -1
  162. package/dist/collection/components/menu-about-news/menu-about-news.css +2 -2
  163. package/dist/collection/components/menu-avatar/menu-avatar.css +2 -2
  164. package/dist/collection/components/menu-avatar/menu-avatar.js +1 -1
  165. package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
  166. package/dist/collection/components/menu-item/menu-item.css +47 -23
  167. package/dist/collection/components/menu-item/menu-item.js +19 -10
  168. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  169. package/dist/collection/components/message-bar/message-bar.css +19 -11
  170. package/dist/collection/components/message-bar/message-bar.js +1 -1
  171. package/dist/collection/components/message-bar/message-bar.js.map +1 -1
  172. package/dist/collection/components/modal/modal.css +1 -0
  173. package/dist/collection/components/my-component/my-component.css +1 -0
  174. package/dist/collection/components/my-component/my-component.js.map +1 -1
  175. package/dist/collection/components/push-card/push-card.css +74 -0
  176. package/dist/collection/components/push-card/push-card.js +134 -0
  177. package/dist/collection/components/push-card/push-card.js.map +1 -0
  178. package/dist/collection/components/select/select.css +20 -2
  179. package/dist/collection/components/select/select.js +1 -1
  180. package/dist/collection/components/select/select.js.map +1 -1
  181. package/dist/collection/components/spinner/spinner.css +13 -0
  182. package/dist/collection/components/spinner/spinner.js +1 -1
  183. package/dist/collection/components/spinner/spinner.js.map +1 -1
  184. package/dist/collection/components/time-picker/time-picker.css +23 -17
  185. package/dist/collection/components/time-picker/time-picker.js +102 -18
  186. package/dist/collection/components/time-picker/time-picker.js.map +1 -1
  187. package/dist/collection/components/toast/toast.css +0 -10
  188. package/dist/collection/components/toast/toast.js +6 -25
  189. package/dist/collection/components/toast/toast.js.map +1 -1
  190. package/dist/collection/components/typography/{types.js → type-mapping.js} +1 -1
  191. package/dist/collection/components/typography/type-mapping.js.map +1 -0
  192. package/dist/collection/components/typography/typography.js +34 -6
  193. package/dist/collection/components/typography/typography.js.map +1 -1
  194. package/dist/collection/index.js +1 -0
  195. package/dist/collection/index.js.map +1 -1
  196. package/dist/components/button.js +3 -2
  197. package/dist/components/button.js.map +1 -1
  198. package/dist/components/card-accordion.js +80 -0
  199. package/dist/components/card-accordion.js.map +1 -0
  200. package/dist/components/card-content.js +32 -0
  201. package/dist/components/card-content.js.map +1 -0
  202. package/dist/components/card-title.js +32 -0
  203. package/dist/components/card-title.js.map +1 -0
  204. package/dist/components/card.js +36 -0
  205. package/dist/components/card.js.map +1 -0
  206. package/dist/components/icon-button.js +12 -4
  207. package/dist/components/icon-button.js.map +1 -1
  208. package/dist/components/icon.js +87 -14
  209. package/dist/components/icon.js.map +1 -1
  210. package/dist/components/ix-action-card.d.ts +11 -0
  211. package/dist/components/ix-action-card.js +72 -0
  212. package/dist/components/ix-action-card.js.map +1 -0
  213. package/dist/components/ix-basic-navigation.js +1 -1
  214. package/dist/components/ix-basic-navigation.js.map +1 -1
  215. package/dist/components/ix-blind.js +5 -7
  216. package/dist/components/ix-blind.js.map +1 -1
  217. package/dist/components/ix-card-accordion.d.ts +11 -0
  218. package/dist/components/ix-card-accordion.js +8 -0
  219. package/dist/components/ix-card-accordion.js.map +1 -0
  220. package/dist/components/ix-card-content.d.ts +11 -0
  221. package/dist/components/ix-card-content.js +8 -0
  222. package/dist/components/ix-card-content.js.map +1 -0
  223. package/dist/components/ix-card-list.d.ts +11 -0
  224. package/dist/components/ix-card-list.js +228 -0
  225. package/dist/components/ix-card-list.js.map +1 -0
  226. package/dist/components/ix-card-title.d.ts +11 -0
  227. package/dist/components/ix-card-title.js +8 -0
  228. package/dist/components/ix-card-title.js.map +1 -0
  229. package/dist/components/{ix-icon.d.ts → ix-card.d.ts} +4 -4
  230. package/dist/components/ix-card.js +8 -0
  231. package/dist/components/ix-card.js.map +1 -0
  232. package/dist/components/ix-content-header.d.ts +11 -0
  233. package/dist/components/ix-content-header.js +63 -0
  234. package/dist/components/ix-content-header.js.map +1 -0
  235. package/dist/components/ix-css-grid-item.d.ts +11 -0
  236. package/dist/components/ix-css-grid-item.js +40 -0
  237. package/dist/components/ix-css-grid-item.js.map +1 -0
  238. package/dist/components/ix-css-grid.d.ts +11 -0
  239. package/dist/components/ix-css-grid.js +113 -0
  240. package/dist/components/ix-css-grid.js.map +1 -0
  241. package/dist/components/ix-drawer.js +6 -5
  242. package/dist/components/ix-drawer.js.map +1 -1
  243. package/dist/components/ix-empty-state.d.ts +11 -0
  244. package/dist/components/ix-empty-state.js +65 -0
  245. package/dist/components/ix-empty-state.js.map +1 -0
  246. package/dist/components/ix-expanding-search.js +5 -1
  247. package/dist/components/ix-expanding-search.js.map +1 -1
  248. package/dist/components/ix-key-value-list.d.ts +11 -0
  249. package/dist/components/ix-key-value-list.js +38 -0
  250. package/dist/components/ix-key-value-list.js.map +1 -0
  251. package/dist/components/ix-key-value.d.ts +11 -0
  252. package/dist/components/ix-key-value.js +53 -0
  253. package/dist/components/ix-key-value.js.map +1 -0
  254. package/dist/components/ix-kpi.js +3 -2
  255. package/dist/components/ix-kpi.js.map +1 -1
  256. package/dist/components/ix-map-navigation.js +11 -4
  257. package/dist/components/ix-map-navigation.js.map +1 -1
  258. package/dist/components/ix-menu-about-news.js +1 -1
  259. package/dist/components/ix-menu-about-news.js.map +1 -1
  260. package/dist/components/ix-menu-avatar.js +2 -2
  261. package/dist/components/ix-menu-avatar.js.map +1 -1
  262. package/dist/components/ix-menu.js +12 -6
  263. package/dist/components/ix-menu.js.map +1 -1
  264. package/dist/components/ix-message-bar.js +3 -2
  265. package/dist/components/ix-message-bar.js.map +1 -1
  266. package/dist/components/ix-push-card.d.ts +11 -0
  267. package/dist/components/ix-push-card.js +83 -0
  268. package/dist/components/ix-push-card.js.map +1 -0
  269. package/dist/components/menu-item.js +27 -11
  270. package/dist/components/menu-item.js.map +1 -1
  271. package/dist/components/modal.js +1 -1
  272. package/dist/components/modal.js.map +1 -1
  273. package/dist/components/my-component.js +1 -1
  274. package/dist/components/my-component.js.map +1 -1
  275. package/dist/components/select.js +2 -2
  276. package/dist/components/select.js.map +1 -1
  277. package/dist/components/spinner.js +3 -2
  278. package/dist/components/spinner.js.map +1 -1
  279. package/dist/components/time-picker.js +103 -19
  280. package/dist/components/time-picker.js.map +1 -1
  281. package/dist/components/toast.js +7 -26
  282. package/dist/components/toast.js.map +1 -1
  283. package/dist/components/typography.js +9 -2
  284. package/dist/components/typography.js.map +1 -1
  285. package/dist/esm/icon-21211f80.js +104 -0
  286. package/dist/esm/icon-21211f80.js.map +1 -0
  287. package/dist/esm/{index-57424926.js → index-8ddfb6d8.js} +53 -5
  288. package/dist/esm/index-8ddfb6d8.js.map +1 -0
  289. package/dist/esm/index.js +2 -0
  290. package/dist/esm/index.js.map +1 -1
  291. package/dist/esm/ix-action-card.entry.js +24 -0
  292. package/dist/esm/ix-action-card.entry.js.map +1 -0
  293. package/dist/esm/ix-animated-tab_2.entry.js +1 -1
  294. package/dist/esm/ix-application-header.entry.js +1 -1
  295. package/dist/esm/ix-basic-navigation.entry.js +2 -2
  296. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  297. package/dist/esm/ix-blind.entry.js +4 -7
  298. package/dist/esm/ix-blind.entry.js.map +1 -1
  299. package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
  300. package/dist/esm/ix-burger-menu.entry.js +1 -1
  301. package/dist/esm/ix-button.entry.js +2 -2
  302. package/dist/esm/ix-button.entry.js.map +1 -1
  303. package/dist/esm/ix-card-accordion_2.entry.js +69 -0
  304. package/dist/esm/ix-card-accordion_2.entry.js.map +1 -0
  305. package/dist/esm/ix-card-list.entry.js +160 -0
  306. package/dist/esm/ix-card-list.entry.js.map +1 -0
  307. package/dist/esm/{ix-typography.entry.js → ix-card_3.entry.js} +36 -4
  308. package/dist/esm/ix-card_3.entry.js.map +1 -0
  309. package/dist/esm/ix-category-filter.entry.js +1 -1
  310. package/dist/esm/ix-chip.entry.js +1 -1
  311. package/dist/esm/ix-content-header.entry.js +22 -0
  312. package/dist/esm/ix-content-header.entry.js.map +1 -0
  313. package/dist/esm/ix-counter-pill.entry.js +1 -1
  314. package/dist/esm/ix-css-grid-item.entry.js +20 -0
  315. package/dist/esm/ix-css-grid-item.entry.js.map +1 -0
  316. package/dist/esm/ix-css-grid.entry.js +92 -0
  317. package/dist/esm/ix-css-grid.entry.js.map +1 -0
  318. package/dist/esm/ix-date-picker_2.entry.js +103 -19
  319. package/dist/esm/ix-date-picker_2.entry.js.map +1 -1
  320. package/dist/esm/ix-date-time-card.entry.js +1 -1
  321. package/dist/esm/ix-datetime-picker.entry.js +1 -1
  322. package/dist/esm/ix-divider.entry.js +1 -1
  323. package/dist/esm/ix-drawer.entry.js +4 -4
  324. package/dist/esm/ix-drawer.entry.js.map +1 -1
  325. package/dist/esm/ix-dropdown-button.entry.js +1 -1
  326. package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
  327. package/dist/esm/ix-dropdown_2.entry.js +1 -1
  328. package/dist/esm/ix-empty-state.entry.js +23 -0
  329. package/dist/esm/ix-empty-state.entry.js.map +1 -0
  330. package/dist/esm/ix-event-list_2.entry.js +1 -1
  331. package/dist/esm/ix-expanding-search.entry.js +5 -2
  332. package/dist/esm/ix-expanding-search.entry.js.map +1 -1
  333. package/dist/esm/ix-filter-chip.entry.js +1 -1
  334. package/dist/esm/ix-flip-tile_2.entry.js +1 -1
  335. package/dist/esm/ix-group-context-menu.entry.js +1 -1
  336. package/dist/esm/ix-group_3.entry.js +1 -1
  337. package/dist/esm/ix-icon-button.entry.js +11 -4
  338. package/dist/esm/ix-icon-button.entry.js.map +1 -1
  339. package/dist/esm/ix-icon.entry.js +2 -32
  340. package/dist/esm/ix-icon.entry.js.map +1 -1
  341. package/dist/esm/ix-index-button.entry.js +1 -1
  342. package/dist/esm/ix-input-group.entry.js +1 -1
  343. package/dist/esm/ix-key-value-list.entry.js +18 -0
  344. package/dist/esm/ix-key-value-list.entry.js.map +1 -0
  345. package/dist/esm/ix-key-value.entry.js +24 -0
  346. package/dist/esm/ix-key-value.entry.js.map +1 -0
  347. package/dist/esm/ix-kpi.entry.js +2 -2
  348. package/dist/esm/ix-kpi.entry.js.map +1 -1
  349. package/dist/esm/ix-map-navigation_2.entry.js +11 -5
  350. package/dist/esm/ix-map-navigation_2.entry.js.map +1 -1
  351. package/dist/esm/ix-menu_9.entry.js +24 -15
  352. package/dist/esm/ix-menu_9.entry.js.map +1 -1
  353. package/dist/esm/ix-message-bar.entry.js +2 -2
  354. package/dist/esm/ix-message-bar.entry.js.map +1 -1
  355. package/dist/esm/ix-modal-example.entry.js +1 -1
  356. package/dist/esm/ix-modal_2.entry.js +2 -2
  357. package/dist/esm/ix-modal_2.entry.js.map +1 -1
  358. package/dist/esm/ix-pagination.entry.js +1 -1
  359. package/dist/esm/ix-pill.entry.js +1 -1
  360. package/dist/esm/ix-push-card.entry.js +23 -0
  361. package/dist/esm/ix-push-card.entry.js.map +1 -0
  362. package/dist/esm/ix-select_2.entry.js +3 -3
  363. package/dist/esm/ix-select_2.entry.js.map +1 -1
  364. package/dist/esm/ix-spinner.entry.js +2 -2
  365. package/dist/esm/ix-spinner.entry.js.map +1 -1
  366. package/dist/esm/ix-split-button_2.entry.js +1 -1
  367. package/dist/esm/ix-tab-item.entry.js +1 -1
  368. package/dist/esm/ix-tabs.entry.js +1 -1
  369. package/dist/esm/ix-tile.entry.js +1 -1
  370. package/dist/esm/ix-toast_2.entry.js +8 -26
  371. package/dist/esm/ix-toast_2.entry.js.map +1 -1
  372. package/dist/esm/ix-toggle.entry.js +1 -1
  373. package/dist/esm/ix-tooltip.entry.js +1 -1
  374. package/dist/esm/ix-tree_2.entry.js +1 -1
  375. package/dist/esm/ix-upload.entry.js +1 -1
  376. package/dist/esm/ix-validation-tooltip.entry.js +1 -1
  377. package/dist/esm/ix-workflow-step_2.entry.js +1 -1
  378. package/dist/esm/loader.js +3 -3
  379. package/dist/esm/my-component.entry.js +2 -2
  380. package/dist/esm/my-component.entry.js.map +1 -1
  381. package/dist/esm/siemens-ix.js +3 -3
  382. package/dist/siemens-ix/index.esm.js +1 -1
  383. package/dist/siemens-ix/index.esm.js.map +1 -1
  384. package/dist/siemens-ix/{p-2850e6b1.entry.js → p-003e9355.entry.js} +2 -2
  385. package/dist/siemens-ix/p-07c932da.entry.js +2 -0
  386. package/dist/siemens-ix/p-07c932da.entry.js.map +1 -0
  387. package/dist/siemens-ix/{p-f20dc192.entry.js → p-1331a920.entry.js} +2 -2
  388. package/dist/siemens-ix/p-13bda5ea.entry.js +2 -0
  389. package/dist/siemens-ix/p-13bda5ea.entry.js.map +1 -0
  390. package/dist/siemens-ix/p-1abcd6ba.js +2 -0
  391. package/dist/siemens-ix/p-1abcd6ba.js.map +1 -0
  392. package/dist/siemens-ix/{p-57a5d3d0.js → p-1c64b073.js} +3 -3
  393. package/dist/siemens-ix/p-1c64b073.js.map +1 -0
  394. package/dist/siemens-ix/{p-f2355beb.entry.js → p-1e8ee4af.entry.js} +2 -2
  395. package/dist/siemens-ix/{p-729c8d31.entry.js → p-3172249b.entry.js} +2 -2
  396. package/dist/siemens-ix/p-3f4a9e1f.entry.js +2 -0
  397. package/dist/siemens-ix/p-3f4a9e1f.entry.js.map +1 -0
  398. package/dist/siemens-ix/{p-3b4c5e4b.entry.js → p-40982e21.entry.js} +2 -2
  399. package/dist/siemens-ix/{p-7cdbc92b.entry.js → p-4597dd77.entry.js} +2 -2
  400. package/dist/siemens-ix/p-46ced516.entry.js +2 -0
  401. package/dist/siemens-ix/p-46ced516.entry.js.map +1 -0
  402. package/dist/siemens-ix/p-47422d47.entry.js +2 -0
  403. package/dist/siemens-ix/p-47422d47.entry.js.map +1 -0
  404. package/dist/siemens-ix/{p-d985e147.entry.js → p-4e851aa3.entry.js} +2 -2
  405. package/dist/siemens-ix/{p-1c1dd6d6.entry.js → p-51c81a20.entry.js} +2 -2
  406. package/dist/siemens-ix/p-55b54a81.entry.js +2 -0
  407. package/dist/siemens-ix/p-55b54a81.entry.js.map +1 -0
  408. package/dist/siemens-ix/p-5ec38498.entry.js +2 -0
  409. package/dist/siemens-ix/p-5ec38498.entry.js.map +1 -0
  410. package/dist/siemens-ix/{p-b54c8bba.entry.js → p-6124d173.entry.js} +2 -2
  411. package/dist/siemens-ix/{p-7f7657ec.entry.js → p-626fbee2.entry.js} +2 -2
  412. package/dist/siemens-ix/{p-15335e01.entry.js → p-652ba2c1.entry.js} +2 -2
  413. package/dist/siemens-ix/p-67be3720.entry.js +2 -0
  414. package/dist/siemens-ix/p-67be3720.entry.js.map +1 -0
  415. package/dist/siemens-ix/p-6acce5c9.entry.js +2 -0
  416. package/dist/siemens-ix/p-6acce5c9.entry.js.map +1 -0
  417. package/dist/siemens-ix/p-6c033b08.entry.js +2 -0
  418. package/dist/siemens-ix/p-6c033b08.entry.js.map +1 -0
  419. package/dist/siemens-ix/{p-f7f07386.entry.js → p-821ca55e.entry.js} +2 -2
  420. package/dist/siemens-ix/p-85f01dba.entry.js +2 -0
  421. package/dist/siemens-ix/p-85f01dba.entry.js.map +1 -0
  422. package/dist/siemens-ix/{p-46e468af.entry.js → p-8719eeff.entry.js} +2 -2
  423. package/dist/siemens-ix/{p-de1e7c64.entry.js → p-94ab7c1c.entry.js} +2 -2
  424. package/dist/siemens-ix/{p-9da2881b.entry.js → p-9a82921b.entry.js} +2 -2
  425. package/dist/siemens-ix/{p-908afbed.entry.js → p-a08e1bbc.entry.js} +2 -2
  426. package/dist/siemens-ix/p-a422c64a.entry.js +2 -0
  427. package/dist/siemens-ix/p-a422c64a.entry.js.map +1 -0
  428. package/dist/siemens-ix/p-a7212f01.entry.js +2 -0
  429. package/dist/siemens-ix/p-a7212f01.entry.js.map +1 -0
  430. package/dist/siemens-ix/{p-e4f9db28.entry.js → p-a73580a5.entry.js} +2 -2
  431. package/dist/siemens-ix/p-a89a1fa5.entry.js +2 -0
  432. package/dist/siemens-ix/p-a89a1fa5.entry.js.map +1 -0
  433. package/dist/siemens-ix/{p-2ecb0ffd.entry.js → p-b5c40bb3.entry.js} +2 -2
  434. package/dist/siemens-ix/p-b60bd26c.entry.js +2 -0
  435. package/dist/siemens-ix/p-b60bd26c.entry.js.map +1 -0
  436. package/dist/siemens-ix/p-b9c2e7d9.entry.js +2 -0
  437. package/dist/siemens-ix/p-b9c2e7d9.entry.js.map +1 -0
  438. package/dist/siemens-ix/{p-0dd51d53.entry.js → p-bd24f35f.entry.js} +2 -2
  439. package/dist/siemens-ix/p-c349b266.entry.js +2 -0
  440. package/dist/siemens-ix/p-c349b266.entry.js.map +1 -0
  441. package/dist/siemens-ix/p-c5124f7b.entry.js +2 -0
  442. package/dist/siemens-ix/p-c5124f7b.entry.js.map +1 -0
  443. package/dist/siemens-ix/{p-bbda3133.entry.js → p-c7109071.entry.js} +2 -2
  444. package/dist/siemens-ix/p-c724bb65.entry.js +2 -0
  445. package/dist/siemens-ix/p-c724bb65.entry.js.map +1 -0
  446. package/dist/siemens-ix/p-ca4d28fb.entry.js +2 -0
  447. package/dist/siemens-ix/p-ca4d28fb.entry.js.map +1 -0
  448. package/dist/siemens-ix/p-cd3cfc78.entry.js +2 -0
  449. package/dist/siemens-ix/p-cd3cfc78.entry.js.map +1 -0
  450. package/dist/siemens-ix/p-cd4e3593.entry.js +2 -0
  451. package/dist/siemens-ix/p-cd4e3593.entry.js.map +1 -0
  452. package/dist/siemens-ix/p-cd75b455.entry.js +2 -0
  453. package/dist/siemens-ix/p-cd75b455.entry.js.map +1 -0
  454. package/dist/siemens-ix/{p-ae29d220.entry.js → p-cf2717c1.entry.js} +2 -2
  455. package/dist/siemens-ix/{p-2149ce72.entry.js → p-d2225fc2.entry.js} +2 -2
  456. package/dist/siemens-ix/{p-925b7d63.entry.js → p-d5302336.entry.js} +2 -2
  457. package/dist/siemens-ix/{p-c11ebe2f.entry.js → p-d784a04b.entry.js} +2 -2
  458. package/dist/siemens-ix/{p-9a4a825a.entry.js → p-d7e23a1f.entry.js} +2 -2
  459. package/dist/siemens-ix/p-d848739e.entry.js +2 -0
  460. package/dist/siemens-ix/p-d848739e.entry.js.map +1 -0
  461. package/dist/siemens-ix/p-dbcec49e.entry.js +2 -0
  462. package/dist/siemens-ix/p-dbcec49e.entry.js.map +1 -0
  463. package/dist/siemens-ix/{p-dae58ef8.entry.js → p-dc98d3f4.entry.js} +2 -2
  464. package/dist/siemens-ix/{p-63663ccd.entry.js → p-df138b2a.entry.js} +2 -2
  465. package/dist/siemens-ix/p-ea55afa3.entry.js +2 -0
  466. package/dist/siemens-ix/p-ea55afa3.entry.js.map +1 -0
  467. package/dist/siemens-ix/{p-77c1e1e7.entry.js → p-eccc2475.entry.js} +2 -2
  468. package/dist/siemens-ix/{p-c4b1210b.entry.js → p-ecd1145b.entry.js} +2 -2
  469. package/dist/siemens-ix/{p-a36c0c05.entry.js → p-f207e578.entry.js} +2 -2
  470. package/dist/siemens-ix/p-f207e578.entry.js.map +1 -0
  471. package/dist/siemens-ix/{p-272b771c.entry.js → p-f48b706b.entry.js} +2 -2
  472. package/dist/siemens-ix/{p-65d38367.entry.js → p-f50697b9.entry.js} +2 -2
  473. package/dist/siemens-ix/p-f6ae45fb.entry.js +2 -0
  474. package/dist/siemens-ix/p-f6ae45fb.entry.js.map +1 -0
  475. package/dist/siemens-ix/{p-0fcfac90.entry.js → p-f74c7692.entry.js} +2 -2
  476. package/dist/siemens-ix/{p-7ed22ba1.entry.js → p-feb8c2c4.entry.js} +2 -2
  477. package/dist/siemens-ix/siemens-ix.css +32 -14
  478. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  479. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  480. package/dist/types/components/action-card/action-card.d.ts +28 -0
  481. package/dist/types/components/button/button.d.ts +1 -1
  482. package/dist/types/components/card/card.d.ts +12 -0
  483. package/dist/types/components/card-accordion/card-accordion.d.ts +20 -0
  484. package/dist/types/components/card-content/card-content.d.ts +6 -0
  485. package/dist/types/components/card-list/card-list.d.ts +78 -0
  486. package/dist/types/components/card-title/card-title.d.ts +8 -0
  487. package/dist/types/components/content-header/content-header.d.ts +25 -0
  488. package/dist/types/components/drawer/drawer.d.ts +1 -1
  489. package/dist/types/components/empty-state/empty-state.d.ts +32 -0
  490. package/dist/types/components/expanding-search/expanding-search.d.ts +5 -0
  491. package/dist/types/components/icon-button/icon-button.d.ts +1 -0
  492. package/dist/types/components/key-value/key-value.d.ts +25 -0
  493. package/dist/types/components/key-value-list/key-value-list.d.ts +10 -0
  494. package/dist/types/components/layout/css-grid/builder.d.ts +1 -0
  495. package/dist/types/components/layout/css-grid/css-grid-item.d.ts +10 -0
  496. package/dist/types/components/layout/css-grid/css-grid.d.ts +18 -0
  497. package/dist/types/components/map-navigation/map-navigation.d.ts +7 -1
  498. package/dist/types/components/menu-item/menu-item.d.ts +5 -3
  499. package/dist/types/components/push-card/push-card.d.ts +28 -0
  500. package/dist/types/components/time-picker/time-picker.d.ts +7 -0
  501. package/dist/types/components/toast/toast.d.ts +0 -1
  502. package/dist/types/components/typography/typography.d.ts +7 -2
  503. package/dist/types/components.d.ts +654 -46
  504. package/dist/types/index.d.ts +12 -0
  505. package/package.json +2 -2
  506. package/scss/components/_buttons.scss +3 -6
  507. package/scss/components/_forms.scss +18 -12
  508. package/scss/mixins/shadow-dom/_component.scss +15 -0
  509. package/scss/mixins/shadow-dom/_hover.scss +19 -0
  510. package/scss/theme/classic-dark/_borderRadius.scss +1 -1
  511. package/dist/cjs/index-931d1fb5.js.map +0 -1
  512. package/dist/cjs/ix-typography.cjs.entry.js.map +0 -1
  513. package/dist/collection/components/icon/icon.js +0 -101
  514. package/dist/collection/components/icon/icon.js.map +0 -1
  515. package/dist/collection/components/typography/types.js.map +0 -1
  516. package/dist/esm/index-57424926.js.map +0 -1
  517. package/dist/esm/ix-typography.entry.js.map +0 -1
  518. package/dist/siemens-ix/p-091accfc.entry.js +0 -2
  519. package/dist/siemens-ix/p-091accfc.entry.js.map +0 -1
  520. package/dist/siemens-ix/p-189cdc59.entry.js +0 -2
  521. package/dist/siemens-ix/p-189cdc59.entry.js.map +0 -1
  522. package/dist/siemens-ix/p-2206924a.entry.js +0 -2
  523. package/dist/siemens-ix/p-2206924a.entry.js.map +0 -1
  524. package/dist/siemens-ix/p-2e2fca5f.entry.js +0 -2
  525. package/dist/siemens-ix/p-2e2fca5f.entry.js.map +0 -1
  526. package/dist/siemens-ix/p-57a5d3d0.js.map +0 -1
  527. package/dist/siemens-ix/p-69c4d72b.entry.js +0 -2
  528. package/dist/siemens-ix/p-69c4d72b.entry.js.map +0 -1
  529. package/dist/siemens-ix/p-75045a73.entry.js +0 -2
  530. package/dist/siemens-ix/p-75045a73.entry.js.map +0 -1
  531. package/dist/siemens-ix/p-89b7ae4c.entry.js +0 -2
  532. package/dist/siemens-ix/p-89b7ae4c.entry.js.map +0 -1
  533. package/dist/siemens-ix/p-8cf56736.entry.js +0 -2
  534. package/dist/siemens-ix/p-8cf56736.entry.js.map +0 -1
  535. package/dist/siemens-ix/p-93d6bfe1.entry.js +0 -2
  536. package/dist/siemens-ix/p-93d6bfe1.entry.js.map +0 -1
  537. package/dist/siemens-ix/p-9c2ae88d.entry.js +0 -2
  538. package/dist/siemens-ix/p-9c2ae88d.entry.js.map +0 -1
  539. package/dist/siemens-ix/p-a36c0c05.entry.js.map +0 -1
  540. package/dist/siemens-ix/p-a6e443df.entry.js +0 -2
  541. package/dist/siemens-ix/p-a6e443df.entry.js.map +0 -1
  542. package/dist/siemens-ix/p-af533e73.entry.js +0 -2
  543. package/dist/siemens-ix/p-af533e73.entry.js.map +0 -1
  544. package/dist/siemens-ix/p-b46713aa.entry.js +0 -2
  545. package/dist/siemens-ix/p-b46713aa.entry.js.map +0 -1
  546. package/dist/siemens-ix/p-bdaae206.entry.js +0 -2
  547. package/dist/siemens-ix/p-bdaae206.entry.js.map +0 -1
  548. package/dist/siemens-ix/p-c29d31ea.entry.js +0 -2
  549. package/dist/siemens-ix/p-c29d31ea.entry.js.map +0 -1
  550. package/dist/siemens-ix/p-d57afc21.entry.js +0 -2
  551. package/dist/siemens-ix/p-d57afc21.entry.js.map +0 -1
  552. package/dist/siemens-ix/p-f72d10e6.entry.js +0 -2
  553. package/dist/siemens-ix/p-f72d10e6.entry.js.map +0 -1
  554. package/dist/types/components/icon/icon.d.ts +0 -15
  555. /package/dist/siemens-ix/{p-2850e6b1.entry.js.map → p-003e9355.entry.js.map} +0 -0
  556. /package/dist/siemens-ix/{p-f20dc192.entry.js.map → p-1331a920.entry.js.map} +0 -0
  557. /package/dist/siemens-ix/{p-f2355beb.entry.js.map → p-1e8ee4af.entry.js.map} +0 -0
  558. /package/dist/siemens-ix/{p-729c8d31.entry.js.map → p-3172249b.entry.js.map} +0 -0
  559. /package/dist/siemens-ix/{p-3b4c5e4b.entry.js.map → p-40982e21.entry.js.map} +0 -0
  560. /package/dist/siemens-ix/{p-7cdbc92b.entry.js.map → p-4597dd77.entry.js.map} +0 -0
  561. /package/dist/siemens-ix/{p-d985e147.entry.js.map → p-4e851aa3.entry.js.map} +0 -0
  562. /package/dist/siemens-ix/{p-1c1dd6d6.entry.js.map → p-51c81a20.entry.js.map} +0 -0
  563. /package/dist/siemens-ix/{p-b54c8bba.entry.js.map → p-6124d173.entry.js.map} +0 -0
  564. /package/dist/siemens-ix/{p-7f7657ec.entry.js.map → p-626fbee2.entry.js.map} +0 -0
  565. /package/dist/siemens-ix/{p-15335e01.entry.js.map → p-652ba2c1.entry.js.map} +0 -0
  566. /package/dist/siemens-ix/{p-f7f07386.entry.js.map → p-821ca55e.entry.js.map} +0 -0
  567. /package/dist/siemens-ix/{p-46e468af.entry.js.map → p-8719eeff.entry.js.map} +0 -0
  568. /package/dist/siemens-ix/{p-de1e7c64.entry.js.map → p-94ab7c1c.entry.js.map} +0 -0
  569. /package/dist/siemens-ix/{p-9da2881b.entry.js.map → p-9a82921b.entry.js.map} +0 -0
  570. /package/dist/siemens-ix/{p-908afbed.entry.js.map → p-a08e1bbc.entry.js.map} +0 -0
  571. /package/dist/siemens-ix/{p-e4f9db28.entry.js.map → p-a73580a5.entry.js.map} +0 -0
  572. /package/dist/siemens-ix/{p-2ecb0ffd.entry.js.map → p-b5c40bb3.entry.js.map} +0 -0
  573. /package/dist/siemens-ix/{p-0dd51d53.entry.js.map → p-bd24f35f.entry.js.map} +0 -0
  574. /package/dist/siemens-ix/{p-bbda3133.entry.js.map → p-c7109071.entry.js.map} +0 -0
  575. /package/dist/siemens-ix/{p-ae29d220.entry.js.map → p-cf2717c1.entry.js.map} +0 -0
  576. /package/dist/siemens-ix/{p-2149ce72.entry.js.map → p-d2225fc2.entry.js.map} +0 -0
  577. /package/dist/siemens-ix/{p-925b7d63.entry.js.map → p-d5302336.entry.js.map} +0 -0
  578. /package/dist/siemens-ix/{p-c11ebe2f.entry.js.map → p-d784a04b.entry.js.map} +0 -0
  579. /package/dist/siemens-ix/{p-9a4a825a.entry.js.map → p-d7e23a1f.entry.js.map} +0 -0
  580. /package/dist/siemens-ix/{p-dae58ef8.entry.js.map → p-dc98d3f4.entry.js.map} +0 -0
  581. /package/dist/siemens-ix/{p-63663ccd.entry.js.map → p-df138b2a.entry.js.map} +0 -0
  582. /package/dist/siemens-ix/{p-77c1e1e7.entry.js.map → p-eccc2475.entry.js.map} +0 -0
  583. /package/dist/siemens-ix/{p-c4b1210b.entry.js.map → p-ecd1145b.entry.js.map} +0 -0
  584. /package/dist/siemens-ix/{p-272b771c.entry.js.map → p-f48b706b.entry.js.map} +0 -0
  585. /package/dist/siemens-ix/{p-65d38367.entry.js.map → p-f50697b9.entry.js.map} +0 -0
  586. /package/dist/siemens-ix/{p-0fcfac90.entry.js.map → p-f74c7692.entry.js.map} +0 -0
  587. /package/dist/siemens-ix/{p-7ed22ba1.entry.js.map → p-feb8c2c4.entry.js.map} +0 -0
  588. /package/dist/types/components/typography/{types.d.ts → type-mapping.d.ts} +0 -0
@@ -0,0 +1,387 @@
1
+ import { h, Host, } from '@stencil/core';
2
+ import { createMutationObserver } from '../utils/mutation-observer';
3
+ function CardListTitle(props) {
4
+ if (props.label === '') {
5
+ return null;
6
+ }
7
+ return (h("div", { class: "CardList_Title" }, h("ix-icon-button", { ghost: true, icon: "chevron-down", onClick: props.onClick, color: "color-primary", class: {
8
+ CardList__Title__Button: true,
9
+ CardList__Title__Button__Collapsed: props.isCollapsed,
10
+ } }), h("ix-typography", { variant: "large-single" }, props.label), h("ix-button", { class: "CardList__Title__Show__All", ghost: true, onClick: props.onShowAllClick }, h("span", null, props.showAllLabel), h("span", null, !isNaN(props.showAllCounter) ? ` (${props.showAllCounter})` : null))));
11
+ }
12
+ /**
13
+ * @since 1.6.0
14
+ */
15
+ export class CardList {
16
+ constructor() {
17
+ this.label = undefined;
18
+ this.collapse = false;
19
+ this.listStyle = 'stack';
20
+ this.maxVisibleCards = 12;
21
+ this.showAllCount = undefined;
22
+ this.suppressOverflowHandling = false;
23
+ this.i18nShowAll = 'Show all';
24
+ this.i18nMoreCards = 'There are more cards available';
25
+ this.hasOverflowingElements = false;
26
+ this.numberOfOverflowingElements = 0;
27
+ this.numberOfAllChildElements = 0;
28
+ this.leftScrollDistance = 0;
29
+ this.rightScrollDistance = 0;
30
+ }
31
+ onCardListVisibilityToggle() {
32
+ this.collapse = !this.collapse;
33
+ this.collapseChanged.emit(this.collapse);
34
+ }
35
+ onShowAllClick(event) {
36
+ this.showAllClick.emit({
37
+ nativeEvent: event,
38
+ });
39
+ }
40
+ getListChildren() {
41
+ const slot = this.hostElement.shadowRoot.querySelector('.CardList__Content > slot');
42
+ return slot.assignedElements({ flatten: true });
43
+ }
44
+ changeVisibilityOfSlotChildren() {
45
+ const childElements = this.getListChildren();
46
+ childElements.forEach((element, index) => {
47
+ if (element instanceof HTMLElement) {
48
+ if (index > this.maxVisibleCards - 1) {
49
+ element.classList.add('d-none');
50
+ return;
51
+ }
52
+ element.classList.remove('d-none');
53
+ }
54
+ });
55
+ this.hasOverflowingElements = childElements.length > this.maxVisibleCards;
56
+ this.numberOfOverflowingElements =
57
+ childElements.length - this.maxVisibleCards;
58
+ this.numberOfAllChildElements = childElements.length;
59
+ this.detectOverflow();
60
+ }
61
+ registerOverflowHandler() {
62
+ this.observer = createMutationObserver(() => {
63
+ this.changeVisibilityOfSlotChildren();
64
+ });
65
+ this.observer.observe(this.hostElement.shadowRoot.querySelector('.CardList__Content'), {
66
+ childList: true,
67
+ subtree: true,
68
+ });
69
+ requestAnimationFrame(() => {
70
+ this.changeVisibilityOfSlotChildren();
71
+ });
72
+ }
73
+ shouldHandleOverflow() {
74
+ if (this.suppressOverflowHandling) {
75
+ return false;
76
+ }
77
+ if (this.listStyle === 'stack' || this.listStyle === 'scroll') {
78
+ return true;
79
+ }
80
+ }
81
+ get listElement() {
82
+ return this.hostElement.shadowRoot.querySelector('.CardList__Content');
83
+ }
84
+ onCardListScroll() {
85
+ this.detectOverflow();
86
+ }
87
+ isShowMoreCardVisible() {
88
+ return (this.suppressOverflowHandling === false && this.hasOverflowingElements);
89
+ }
90
+ getOpacityFromScrollDistance(distance) {
91
+ if (!this.listElement) {
92
+ return 0;
93
+ }
94
+ if (distance === 0) {
95
+ return 0;
96
+ }
97
+ if (distance > 100) {
98
+ return 1;
99
+ }
100
+ return distance / 100;
101
+ }
102
+ computeMaskLayer() {
103
+ const maxOverflowWidth = 80;
104
+ const maskLayer = `linear-gradient(
105
+ 90deg,
106
+ transparent 0px,
107
+ black ${maxOverflowWidth *
108
+ (this.getOpacityFromScrollDistance(this.leftScrollDistance) > 0 ? 1 : 0)}px,
109
+ black calc(100% - ${maxOverflowWidth *
110
+ (this.getOpacityFromScrollDistance(this.rightScrollDistance) > 0
111
+ ? 1
112
+ : 0)}px),
113
+ transparent 100%
114
+ )`;
115
+ return {
116
+ '--ix-card-list-overflow': maskLayer,
117
+ };
118
+ }
119
+ detectOverflow() {
120
+ const { clientWidth, scrollWidth, scrollLeft } = this.listElement;
121
+ this.leftScrollDistance = scrollLeft;
122
+ this.rightScrollDistance = scrollWidth - scrollLeft - clientWidth;
123
+ }
124
+ componentDidLoad() {
125
+ if (this.shouldHandleOverflow()) {
126
+ this.registerOverflowHandler();
127
+ }
128
+ }
129
+ disconnectedCallback() {
130
+ if (this.observer) {
131
+ this.observer.disconnect();
132
+ }
133
+ }
134
+ render() {
135
+ return (h(Host, null, h(CardListTitle, { isCollapsed: this.collapse, label: this.label, showAllLabel: this.i18nShowAll, showAllCounter: this.showAllCount === undefined
136
+ ? this.numberOfAllChildElements
137
+ : this.showAllCount, onClick: () => this.onCardListVisibilityToggle(), onShowAllClick: (e) => this.onShowAllClick(e) }), h("div", { class: {
138
+ CardList__Overflow: true,
139
+ }, style: this.computeMaskLayer() }, h("div", { class: {
140
+ CardList__Content: true,
141
+ CardList__Content__Collapsed: this.collapse,
142
+ CardList__Style__Flexbox__Scroll: this.listStyle === 'stack',
143
+ CardList__Style__Infinite__Scroll: this.listStyle === 'scroll',
144
+ }, onScroll: () => this.onCardListScroll() }, h("slot", { onSlotchange: () => this.changeVisibilityOfSlotChildren() }), this.isShowMoreCardVisible() ? (h("ix-card", { class: {
145
+ Show__All__Card: true,
146
+ }, onClick: (event) => this.showMoreCardClick.emit({
147
+ nativeEvent: event,
148
+ }) }, h("ix-card-content", { class: "Show__All__Card__Content" }, h("ix-icon", { name: "more-menu", size: '32', class: 'Show__All__Card__Icon' }), h("span", { class: "Show__All__Card__Text" }, this.i18nMoreCards, " (", this.numberOfOverflowingElements, ")")))) : null))));
149
+ }
150
+ static get is() { return "ix-card-list"; }
151
+ static get encapsulation() { return "shadow"; }
152
+ static get originalStyleUrls() {
153
+ return {
154
+ "$": ["card-list.scss"]
155
+ };
156
+ }
157
+ static get styleUrls() {
158
+ return {
159
+ "$": ["card-list.css"]
160
+ };
161
+ }
162
+ static get properties() {
163
+ return {
164
+ "label": {
165
+ "type": "string",
166
+ "mutable": false,
167
+ "complexType": {
168
+ "original": "string",
169
+ "resolved": "string",
170
+ "references": {}
171
+ },
172
+ "required": false,
173
+ "optional": false,
174
+ "docs": {
175
+ "tags": [],
176
+ "text": "Name the card list"
177
+ },
178
+ "attribute": "label",
179
+ "reflect": false
180
+ },
181
+ "collapse": {
182
+ "type": "boolean",
183
+ "mutable": true,
184
+ "complexType": {
185
+ "original": "boolean",
186
+ "resolved": "boolean",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": false,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": "Collapse the list"
194
+ },
195
+ "attribute": "collapse",
196
+ "reflect": false,
197
+ "defaultValue": "false"
198
+ },
199
+ "listStyle": {
200
+ "type": "string",
201
+ "mutable": false,
202
+ "complexType": {
203
+ "original": "'stack' | 'scroll'",
204
+ "resolved": "\"scroll\" | \"stack\"",
205
+ "references": {}
206
+ },
207
+ "required": false,
208
+ "optional": false,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": "List style"
212
+ },
213
+ "attribute": "list-style",
214
+ "reflect": false,
215
+ "defaultValue": "'stack'"
216
+ },
217
+ "maxVisibleCards": {
218
+ "type": "number",
219
+ "mutable": false,
220
+ "complexType": {
221
+ "original": "number",
222
+ "resolved": "number",
223
+ "references": {}
224
+ },
225
+ "required": false,
226
+ "optional": false,
227
+ "docs": {
228
+ "tags": [{
229
+ "name": "internal",
230
+ "text": undefined
231
+ }],
232
+ "text": "Maximal visible cards"
233
+ },
234
+ "attribute": "max-visible-cards",
235
+ "reflect": false,
236
+ "defaultValue": "12"
237
+ },
238
+ "showAllCount": {
239
+ "type": "number",
240
+ "mutable": false,
241
+ "complexType": {
242
+ "original": "number | undefined",
243
+ "resolved": "number",
244
+ "references": {}
245
+ },
246
+ "required": false,
247
+ "optional": false,
248
+ "docs": {
249
+ "tags": [],
250
+ "text": "Overwrite the default show all count."
251
+ },
252
+ "attribute": "show-all-count",
253
+ "reflect": false
254
+ },
255
+ "suppressOverflowHandling": {
256
+ "type": "boolean",
257
+ "mutable": false,
258
+ "complexType": {
259
+ "original": "boolean",
260
+ "resolved": "boolean",
261
+ "references": {}
262
+ },
263
+ "required": false,
264
+ "optional": false,
265
+ "docs": {
266
+ "tags": [],
267
+ "text": "Suppress the overflow handling of child elements"
268
+ },
269
+ "attribute": "suppress-overflow-handling",
270
+ "reflect": false,
271
+ "defaultValue": "false"
272
+ },
273
+ "i18nShowAll": {
274
+ "type": "string",
275
+ "mutable": false,
276
+ "complexType": {
277
+ "original": "string",
278
+ "resolved": "string",
279
+ "references": {}
280
+ },
281
+ "required": false,
282
+ "optional": false,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": "i18n Show all button"
286
+ },
287
+ "attribute": "i-1-8n-show-all",
288
+ "reflect": false,
289
+ "defaultValue": "'Show all'"
290
+ },
291
+ "i18nMoreCards": {
292
+ "type": "string",
293
+ "mutable": false,
294
+ "complexType": {
295
+ "original": "string",
296
+ "resolved": "string",
297
+ "references": {}
298
+ },
299
+ "required": false,
300
+ "optional": false,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": "i18n More cards available"
304
+ },
305
+ "attribute": "i-1-8n-more-cards",
306
+ "reflect": false,
307
+ "defaultValue": "'There are more cards available'"
308
+ }
309
+ };
310
+ }
311
+ static get states() {
312
+ return {
313
+ "hasOverflowingElements": {},
314
+ "numberOfOverflowingElements": {},
315
+ "numberOfAllChildElements": {},
316
+ "leftScrollDistance": {},
317
+ "rightScrollDistance": {}
318
+ };
319
+ }
320
+ static get events() {
321
+ return [{
322
+ "method": "collapseChanged",
323
+ "name": "collapseChanged",
324
+ "bubbles": true,
325
+ "cancelable": true,
326
+ "composed": true,
327
+ "docs": {
328
+ "tags": [],
329
+ "text": "Fire event when the collapse state is changed by the user"
330
+ },
331
+ "complexType": {
332
+ "original": "boolean",
333
+ "resolved": "boolean",
334
+ "references": {}
335
+ }
336
+ }, {
337
+ "method": "showAllClick",
338
+ "name": "showAllClick",
339
+ "bubbles": true,
340
+ "cancelable": true,
341
+ "composed": true,
342
+ "docs": {
343
+ "tags": [],
344
+ "text": "Fire event when the collapse state is changed by the user"
345
+ },
346
+ "complexType": {
347
+ "original": "{\n nativeEvent: MouseEvent;\n }",
348
+ "resolved": "{ nativeEvent: MouseEvent; }",
349
+ "references": {
350
+ "MouseEvent": {
351
+ "location": "global"
352
+ }
353
+ }
354
+ }
355
+ }, {
356
+ "method": "showMoreCardClick",
357
+ "name": "showMoreCardClick",
358
+ "bubbles": true,
359
+ "cancelable": true,
360
+ "composed": true,
361
+ "docs": {
362
+ "tags": [],
363
+ "text": "Fire event when the show more card is clicked."
364
+ },
365
+ "complexType": {
366
+ "original": "{\n nativeEvent: MouseEvent;\n }",
367
+ "resolved": "{ nativeEvent: MouseEvent; }",
368
+ "references": {
369
+ "MouseEvent": {
370
+ "location": "global"
371
+ }
372
+ }
373
+ }
374
+ }];
375
+ }
376
+ static get elementRef() { return "hostElement"; }
377
+ static get listeners() {
378
+ return [{
379
+ "name": "resize",
380
+ "method": "detectOverflow",
381
+ "target": "window",
382
+ "capture": false,
383
+ "passive": true
384
+ }];
385
+ }
386
+ }
387
+ //# sourceMappingURL=card-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-list.js","sourceRoot":"","sources":["../../../src/components/card-list/card-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,SAAS,aAAa,CAAC,KAOtB;EACC,IAAI,KAAK,CAAC,KAAK,KAAK,EAAE,EAAE;IACtB,OAAO,IAAI,CAAC;GACb;EAED,OAAO,CACL,WAAK,KAAK,EAAC,gBAAgB;IACzB,sBACE,KAAK,QACL,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,KAAK,EAAC,eAAe,EACr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I,CAAC;cAC1B,WAAW,EAAE,KAAK;aACnB,CAAC;YAGJ,uBAAiB,KAAK,EAAC,0BAA0B;cAC/C,eACE,IAAI,EAAC,WAAW,EAChB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,uBAAuB,GACrB;cACX,YAAM,KAAK,EAAC,uBAAuB;gBAChC,IAAI,CAAC,aAAa;;gBAAI,IAAI,CAAC,2BAA2B;oBAClD,CACS,CACV,CACX,CAAC,CAAC,CAAC,IAAI,CACJ,CACF,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n State,\n} from '@stencil/core';\nimport { createMutationObserver } from '../utils/mutation-observer';\n\nfunction CardListTitle(props: {\n label: string;\n isCollapsed: boolean;\n onClick: (e: MouseEvent) => void;\n onShowAllClick: (e: MouseEvent) => void;\n showAllLabel: string;\n showAllCounter: number;\n}) {\n if (props.label === '') {\n return null;\n }\n\n return (\n <div class=\"CardList_Title\">\n <ix-icon-button\n ghost\n icon=\"chevron-down\"\n onClick={props.onClick}\n color=\"color-primary\"\n class={{\n CardList__Title__Button: true,\n CardList__Title__Button__Collapsed: props.isCollapsed,\n }}\n ></ix-icon-button>\n <ix-typography variant=\"large-single\">{props.label}</ix-typography>\n <ix-button\n class=\"CardList__Title__Show__All\"\n ghost\n onClick={props.onShowAllClick}\n >\n <span>{props.showAllLabel}</span>\n <span>\n {!isNaN(props.showAllCounter) ? ` (${props.showAllCounter})` : null}\n </span>\n </ix-button>\n </div>\n );\n}\n\n/**\n * @since 1.6.0\n */\n@Component({\n tag: 'ix-card-list',\n styleUrl: 'card-list.scss',\n shadow: true,\n})\nexport class CardList {\n /**\n * Name the card list\n */\n @Prop() label: string;\n\n /**\n * Collapse the list\n */\n @Prop({ mutable: true }) collapse = false;\n\n /**\n * List style\n */\n @Prop() listStyle: 'stack' | 'scroll' = 'stack';\n\n /**\n * Maximal visible cards\n *\n * @internal\n */\n @Prop() maxVisibleCards = 12;\n\n /**\n * Overwrite the default show all count.\n * */\n @Prop() showAllCount: number | undefined;\n\n /**\n * Suppress the overflow handling of child elements\n */\n @Prop() suppressOverflowHandling = false;\n\n /**\n * i18n Show all button\n */\n @Prop() i18nShowAll = 'Show all';\n\n /**\n * i18n More cards available\n */\n @Prop() i18nMoreCards = 'There are more cards available';\n\n /**\n * Fire event when the collapse state is changed by the user\n */\n @Event() collapseChanged: EventEmitter<boolean>;\n\n /**\n * Fire event when the collapse state is changed by the user\n */\n @Event() showAllClick: EventEmitter<{\n nativeEvent: MouseEvent;\n }>;\n\n /**\n * Fire event when the show more card is clicked.\n */\n @Event() showMoreCardClick: EventEmitter<{\n nativeEvent: MouseEvent;\n }>;\n\n @Element() hostElement: HTMLIxCardListElement;\n\n @State() private hasOverflowingElements = false;\n @State() private numberOfOverflowingElements = 0;\n @State() private numberOfAllChildElements = 0;\n @State() private leftScrollDistance = 0;\n @State() private rightScrollDistance = 0;\n\n private observer: MutationObserver;\n\n private onCardListVisibilityToggle() {\n this.collapse = !this.collapse;\n this.collapseChanged.emit(this.collapse);\n }\n\n private onShowAllClick(event: MouseEvent) {\n this.showAllClick.emit({\n nativeEvent: event,\n });\n }\n\n private getListChildren() {\n const slot = this.hostElement.shadowRoot.querySelector(\n '.CardList__Content > slot'\n ) as HTMLSlotElement;\n return slot.assignedElements({ flatten: true });\n }\n\n private changeVisibilityOfSlotChildren() {\n const childElements = this.getListChildren();\n childElements.forEach((element, index) => {\n if (element instanceof HTMLElement) {\n if (index > this.maxVisibleCards - 1) {\n element.classList.add('d-none');\n return;\n }\n element.classList.remove('d-none');\n }\n });\n this.hasOverflowingElements = childElements.length > this.maxVisibleCards;\n this.numberOfOverflowingElements =\n childElements.length - this.maxVisibleCards;\n\n this.numberOfAllChildElements = childElements.length;\n this.detectOverflow();\n }\n\n private registerOverflowHandler() {\n this.observer = createMutationObserver(() => {\n this.changeVisibilityOfSlotChildren();\n });\n\n this.observer.observe(\n this.hostElement.shadowRoot.querySelector('.CardList__Content'),\n {\n childList: true,\n subtree: true,\n }\n );\n\n requestAnimationFrame(() => {\n this.changeVisibilityOfSlotChildren();\n });\n }\n\n private shouldHandleOverflow() {\n if (this.suppressOverflowHandling) {\n return false;\n }\n if (this.listStyle === 'stack' || this.listStyle === 'scroll') {\n return true;\n }\n }\n\n private get listElement() {\n return this.hostElement.shadowRoot.querySelector('.CardList__Content');\n }\n\n private onCardListScroll() {\n this.detectOverflow();\n }\n\n private isShowMoreCardVisible() {\n return (\n this.suppressOverflowHandling === false && this.hasOverflowingElements\n );\n }\n\n private getOpacityFromScrollDistance(distance: number) {\n if (!this.listElement) {\n return 0;\n }\n\n if (distance === 0) {\n return 0;\n }\n\n if (distance > 100) {\n return 1;\n }\n\n return distance / 100;\n }\n\n private computeMaskLayer() {\n const maxOverflowWidth = 80;\n const maskLayer = `linear-gradient(\n 90deg,\n transparent 0px,\n black ${\n maxOverflowWidth *\n (this.getOpacityFromScrollDistance(this.leftScrollDistance) > 0 ? 1 : 0)\n }px,\n black calc(100% - ${\n maxOverflowWidth *\n (this.getOpacityFromScrollDistance(this.rightScrollDistance) > 0\n ? 1\n : 0)\n }px),\n transparent 100%\n )`;\n return {\n '--ix-card-list-overflow': maskLayer,\n };\n }\n\n @Listen('resize', { target: 'window' })\n private detectOverflow() {\n const { clientWidth, scrollWidth, scrollLeft } = this.listElement;\n\n this.leftScrollDistance = scrollLeft;\n this.rightScrollDistance = scrollWidth - scrollLeft - clientWidth;\n }\n\n componentDidLoad() {\n if (this.shouldHandleOverflow()) {\n this.registerOverflowHandler();\n }\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n return (\n <Host>\n <CardListTitle\n isCollapsed={this.collapse}\n label={this.label}\n showAllLabel={this.i18nShowAll}\n showAllCounter={\n this.showAllCount === undefined\n ? this.numberOfAllChildElements\n : this.showAllCount\n }\n onClick={() => this.onCardListVisibilityToggle()}\n onShowAllClick={(e) => this.onShowAllClick(e)}\n ></CardListTitle>\n <div\n class={{\n CardList__Overflow: true,\n }}\n style={this.computeMaskLayer()}\n >\n <div\n class={{\n CardList__Content: true,\n CardList__Content__Collapsed: this.collapse,\n CardList__Style__Flexbox__Scroll: this.listStyle === 'stack',\n CardList__Style__Infinite__Scroll: this.listStyle === 'scroll',\n }}\n onScroll={() => this.onCardListScroll()}\n >\n <slot\n onSlotchange={() => this.changeVisibilityOfSlotChildren()}\n ></slot>\n {this.isShowMoreCardVisible() ? (\n <ix-card\n class={{\n Show__All__Card: true,\n }}\n onClick={(event) =>\n this.showMoreCardClick.emit({\n nativeEvent: event,\n })\n }\n >\n <ix-card-content class=\"Show__All__Card__Content\">\n <ix-icon\n name=\"more-menu\"\n size={'32'}\n class={'Show__All__Card__Icon'}\n ></ix-icon>\n <span class=\"Show__All__Card__Text\">\n {this.i18nMoreCards} ({this.numberOfOverflowingElements})\n </span>\n </ix-card-content>\n </ix-card>\n ) : null}\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2023 Siemens AG
3
+ *
4
+ * SPDX-License-Identifier: MIT
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ /* Dimensions */
10
+ /* Font sizes */
11
+ /* Line heights */
12
+ /* Animation timings */
13
+ :host {
14
+ display: flex;
15
+ position: relative;
16
+ flex-direction: row;
17
+ align-items: center;
18
+ padding: 0px;
19
+ margin-bottom: 0.5rem;
20
+ gap: 1rem;
21
+ width: 100%;
22
+ }
23
+ :host .title-actions {
24
+ display: flex;
25
+ position: relative;
26
+ flex-direction: row;
27
+ gap: 0.25rem;
28
+ margin-left: auto;
29
+ margin-right: 0px;
30
+ }
@@ -0,0 +1,24 @@
1
+ import { h, Host } from '@stencil/core';
2
+ /**
3
+ * @slot title-actions - Place additional actions inside title
4
+ *
5
+ * @since 1.6.0
6
+ */
7
+ export class CardHeader {
8
+ render() {
9
+ return (h(Host, null, h("slot", null), h("div", { class: "title-actions" }, h("slot", { name: "title-actions" }))));
10
+ }
11
+ static get is() { return "ix-card-title"; }
12
+ static get encapsulation() { return "shadow"; }
13
+ static get originalStyleUrls() {
14
+ return {
15
+ "$": ["card-title.scss"]
16
+ };
17
+ }
18
+ static get styleUrls() {
19
+ return {
20
+ "$": ["card-title.css"]
21
+ };
22
+ }
23
+ }
24
+ //# sourceMappingURL=card-title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-title.js","sourceRoot":"","sources":["../../../src/components/card-title/card-title.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;GAIG;AAMH,MAAM,OAAO,UAAU;EACrB,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,eAAa;MACb,WAAK,KAAK,EAAC,eAAe;QACxB,YAAM,IAAI,EAAC,eAAe,GAAQ,CAC9B,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host } from '@stencil/core';\n\n/**\n * @slot title-actions - Place additional actions inside title\n *\n * @since 1.6.0\n */\n@Component({\n tag: 'ix-card-title',\n styleUrl: 'card-title.scss',\n shadow: true,\n})\nexport class CardHeader {\n render() {\n return (\n <Host>\n <slot></slot>\n <div class=\"title-actions\">\n <slot name=\"title-actions\"></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,28 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2023 Siemens AG
3
+ *
4
+ * SPDX-License-Identifier: MIT
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ :host {
10
+ display: flex;
11
+ flex-direction: row;
12
+ align-items: flex-start;
13
+ padding: 0px;
14
+ }
15
+ :host .titleGroup {
16
+ display: flex;
17
+ flex-direction: column;
18
+ flex: 1 1 0%;
19
+ }
20
+ :host .subtitle {
21
+ margin-top: 0.5rem;
22
+ }
23
+ :host .backButton {
24
+ margin-right: 0.5rem;
25
+ }
26
+ :host .buttons {
27
+ flex: 0 0 auto;
28
+ }
@@ -0,0 +1,131 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2023 Siemens AG
3
+ *
4
+ * SPDX-License-Identifier: MIT
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { h, Host } from '@stencil/core';
10
+ export class ContentHeader {
11
+ constructor() {
12
+ this.variant = 'Primary';
13
+ this.headerTitle = undefined;
14
+ this.headerSubtitle = undefined;
15
+ this.hasBackButton = false;
16
+ }
17
+ render() {
18
+ return (h(Host, null, this.hasBackButton ? (h("ix-icon-button", { class: 'backButton', variant: "Primary", icon: "arrow-left", ghost: true, onClick: () => this.backButtonClick.emit() })) : null, h("div", { class: "titleGroup" }, h("ix-typography", { variant: this.variant === 'Secondary' ? 'large-single' : 'h2' }, this.headerTitle), this.headerSubtitle !== undefined ? (h("ix-typography", { variant: 'caption', color: 'soft', class: "subtitle" }, this.headerSubtitle)) : null), h("div", { class: "buttons" }, h("slot", null))));
19
+ }
20
+ static get is() { return "ix-content-header"; }
21
+ static get encapsulation() { return "shadow"; }
22
+ static get originalStyleUrls() {
23
+ return {
24
+ "$": ["content-header.scss"]
25
+ };
26
+ }
27
+ static get styleUrls() {
28
+ return {
29
+ "$": ["content-header.css"]
30
+ };
31
+ }
32
+ static get properties() {
33
+ return {
34
+ "variant": {
35
+ "type": "string",
36
+ "mutable": false,
37
+ "complexType": {
38
+ "original": "ContentHeaderVariant",
39
+ "resolved": "\"Primary\" | \"Secondary\"",
40
+ "references": {
41
+ "ContentHeaderVariant": {
42
+ "location": "local",
43
+ "path": "/__w/ix/ix/packages/core/src/components/content-header/content-header.tsx"
44
+ }
45
+ }
46
+ },
47
+ "required": false,
48
+ "optional": false,
49
+ "docs": {
50
+ "tags": [],
51
+ "text": "Variant of content header"
52
+ },
53
+ "attribute": "variant",
54
+ "reflect": false,
55
+ "defaultValue": "'Primary'"
56
+ },
57
+ "headerTitle": {
58
+ "type": "string",
59
+ "mutable": false,
60
+ "complexType": {
61
+ "original": "string",
62
+ "resolved": "string",
63
+ "references": {}
64
+ },
65
+ "required": false,
66
+ "optional": false,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": "Title of Header"
70
+ },
71
+ "attribute": "header-title",
72
+ "reflect": false
73
+ },
74
+ "headerSubtitle": {
75
+ "type": "string",
76
+ "mutable": false,
77
+ "complexType": {
78
+ "original": "string | undefined",
79
+ "resolved": "string",
80
+ "references": {}
81
+ },
82
+ "required": false,
83
+ "optional": false,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": "Subtitle of Header"
87
+ },
88
+ "attribute": "header-subtitle",
89
+ "reflect": false,
90
+ "defaultValue": "undefined"
91
+ },
92
+ "hasBackButton": {
93
+ "type": "boolean",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "boolean",
97
+ "resolved": "boolean",
98
+ "references": {}
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": "Display a back button"
105
+ },
106
+ "attribute": "has-back-button",
107
+ "reflect": false,
108
+ "defaultValue": "false"
109
+ }
110
+ };
111
+ }
112
+ static get events() {
113
+ return [{
114
+ "method": "backButtonClick",
115
+ "name": "backButtonClick",
116
+ "bubbles": true,
117
+ "cancelable": true,
118
+ "composed": true,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": "Triggered when back button is clicked"
122
+ },
123
+ "complexType": {
124
+ "original": "void",
125
+ "resolved": "void",
126
+ "references": {}
127
+ }
128
+ }];
129
+ }
130
+ }
131
+ //# sourceMappingURL=content-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-header.js","sourceRoot":"","sources":["../../../src/components/content-header/content-header.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAS9E,MAAM,OAAO,aAAa;;mBAIgB,SAAS;;0BAUJ,SAAS;yBAKrB,KAAK;;EAOtC,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACF,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CACpB,sBACE,KAAK,EAAE,YAAY,EACnB,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,YAAY,EACjB,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,GAC1B,CACnB,CAAC,CAAC,CAAC,IAAI;MAER,WAAK,KAAK,EAAC,YAAY;QACrB,qBACE,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,IAE5D,IAAI,CAAC,WAAW,CACH;QACf,IAAI,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,CACnC,qBAAe,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAC,UAAU,IAC/D,IAAI,CAAC,cAAc,CACN,CACjB,CAAC,CAAC,CAAC,IAAI,CACJ;MACN,WAAK,KAAK,EAAC,SAAS;QAClB,eAAQ,CACJ,CACD,CACR,CAAC;EACJ,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 { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\n\nexport type ContentHeaderVariant = 'Primary' | 'Secondary';\n\n@Component({\n tag: 'ix-content-header',\n styleUrl: 'content-header.scss',\n shadow: true,\n})\nexport class ContentHeader {\n /**\n * Variant of content header\n */\n @Prop() variant: ContentHeaderVariant = 'Primary';\n\n /**\n * Title of Header\n */\n @Prop() headerTitle: string;\n\n /**\n * Subtitle of Header\n */\n @Prop() headerSubtitle: string | undefined = undefined;\n\n /**\n * Display a back button\n */\n @Prop() hasBackButton: boolean = false;\n\n /**\n * Triggered when back button is clicked\n */\n @Event() backButtonClick: EventEmitter<void>;\n\n render() {\n return (\n <Host>\n {this.hasBackButton ? (\n <ix-icon-button\n class={'backButton'}\n variant=\"Primary\"\n icon=\"arrow-left\"\n ghost={true}\n onClick={() => this.backButtonClick.emit()}\n ></ix-icon-button>\n ) : null}\n\n <div class=\"titleGroup\">\n <ix-typography\n variant={this.variant === 'Secondary' ? 'large-single' : 'h2'}\n >\n {this.headerTitle}\n </ix-typography>\n {this.headerSubtitle !== undefined ? (\n <ix-typography variant={'caption'} color={'soft'} class=\"subtitle\">\n {this.headerSubtitle}\n </ix-typography>\n ) : null}\n </div>\n <div class=\"buttons\">\n <slot />\n </div>\n </Host>\n );\n }\n}\n"]}