@siemens/ix 1.5.0-beta.0 → 1.5.0-beta.2

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 (396) hide show
  1. package/dist/cjs/index-478a4b66.js +8 -0
  2. package/dist/cjs/index-478a4b66.js.map +1 -1
  3. package/dist/cjs/index.cjs.js +12 -0
  4. package/dist/cjs/index.cjs.js.map +1 -1
  5. package/dist/cjs/ix-blind.cjs.entry.js +27 -6
  6. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  7. package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
  8. package/dist/cjs/ix-breadcrumb_2.cjs.entry.js.map +1 -1
  9. package/dist/cjs/ix-category-filter.cjs.entry.js +19 -5
  10. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  11. package/dist/cjs/ix-chip.cjs.entry.js +6 -1
  12. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  13. package/dist/cjs/ix-date-picker_2.cjs.entry.js +62 -43
  14. package/dist/cjs/ix-date-picker_2.cjs.entry.js.map +1 -1
  15. package/dist/cjs/ix-datetime-picker.cjs.entry.js +2 -2
  16. package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -1
  17. package/dist/cjs/ix-dropdown_2.cjs.entry.js +5 -4
  18. package/dist/cjs/ix-dropdown_2.cjs.entry.js.map +1 -1
  19. package/dist/cjs/ix-filter-chip.cjs.entry.js +2 -2
  20. package/dist/cjs/ix-filter-chip.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ix-flip-tile_2.cjs.entry.js +11 -2
  22. package/dist/cjs/ix-flip-tile_2.cjs.entry.js.map +1 -1
  23. package/dist/cjs/ix-group_3.cjs.entry.js +33 -11
  24. package/dist/cjs/ix-group_3.cjs.entry.js.map +1 -1
  25. package/dist/cjs/ix-index-button.cjs.entry.js +28 -0
  26. package/dist/cjs/ix-index-button.cjs.entry.js.map +1 -0
  27. package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
  28. package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ix-menu_9.cjs.entry.js +1 -1
  30. package/dist/cjs/ix-menu_9.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ix-modal_2.cjs.entry.js +17 -5
  32. package/dist/cjs/ix-modal_2.cjs.entry.js.map +1 -1
  33. package/dist/cjs/ix-pagination.cjs.entry.js +123 -0
  34. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -0
  35. package/dist/cjs/ix-select_2.cjs.entry.js +56 -37
  36. package/dist/cjs/ix-select_2.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ix-toast_2.cjs.entry.js +10 -1
  38. package/dist/cjs/ix-toast_2.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ix-toggle.cjs.entry.js +1 -1
  40. package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ix-tooltip.cjs.entry.js +55 -27
  42. package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -1
  43. package/dist/cjs/ix-tree_2.cjs.entry.js +4 -0
  44. package/dist/cjs/ix-tree_2.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ix-upload.cjs.entry.js +8 -23
  46. package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ix-workflow-step_2.cjs.entry.js +51 -36
  48. package/dist/cjs/ix-workflow-step_2.cjs.entry.js.map +1 -1
  49. package/dist/cjs/loader.cjs.js +2 -2
  50. package/dist/cjs/loader.cjs.js.map +1 -1
  51. package/dist/cjs/siemens-ix.cjs.js +2 -2
  52. package/dist/cjs/siemens-ix.cjs.js.map +1 -1
  53. package/dist/cjs/upload-file-state-a79acf2b.js +19 -0
  54. package/dist/cjs/upload-file-state-a79acf2b.js.map +1 -0
  55. package/dist/collection/collection-manifest.json +3 -1
  56. package/dist/collection/components/blind/blind.css +22 -8
  57. package/dist/collection/components/blind/blind.js +35 -5
  58. package/dist/collection/components/blind/blind.js.map +1 -1
  59. package/dist/collection/components/breadcrumb/breadcrumb.css +1 -2
  60. package/dist/collection/components/category-filter/category-filter.js +19 -5
  61. package/dist/collection/components/category-filter/category-filter.js.map +1 -1
  62. package/dist/collection/components/chip/chip.js +27 -2
  63. package/dist/collection/components/chip/chip.js.map +1 -1
  64. package/dist/collection/components/date-picker/date-picker.css +3 -0
  65. package/dist/collection/components/date-picker/date-picker.js +64 -45
  66. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  67. package/dist/collection/components/datetime-picker/datetime-picker.css +6 -5
  68. package/dist/collection/components/datetime-picker/datetime-picker.js +1 -1
  69. package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
  70. package/dist/collection/components/dropdown/dropdown.js +2 -1
  71. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  72. package/dist/collection/components/dropdown-item/dropdown-item.css +0 -1
  73. package/dist/collection/components/dropdown-item/dropdown-item.js +2 -2
  74. package/dist/collection/components/dropdown-item/dropdown-item.js.map +1 -1
  75. package/dist/collection/components/filter-chip/filter-chip.css +14 -7
  76. package/dist/collection/components/filter-chip/filter-chip.js +1 -1
  77. package/dist/collection/components/filter-chip/filter-chip.js.map +1 -1
  78. package/dist/collection/components/flip-tile/flip-tile.css +0 -4
  79. package/dist/collection/components/flip-tile/flip-tile.js +56 -2
  80. package/dist/collection/components/flip-tile/flip-tile.js.map +1 -1
  81. package/dist/collection/components/group/group.css +21 -12
  82. package/dist/collection/components/group/group.js +34 -10
  83. package/dist/collection/components/group/group.js.map +1 -1
  84. package/dist/collection/components/group-item/group-item.css +8 -4
  85. package/dist/collection/components/index-button/index-button.css +31 -0
  86. package/dist/collection/components/index-button/index-button.js +83 -0
  87. package/dist/collection/components/index-button/index-button.js.map +1 -0
  88. package/dist/collection/components/input-group/input-group.css +3 -0
  89. package/dist/collection/components/menu-item/menu-item.css +15 -10
  90. package/dist/collection/components/modal/modal.js +6 -1
  91. package/dist/collection/components/modal/modal.js.map +1 -1
  92. package/dist/collection/components/modal-container/modal-container.js +11 -4
  93. package/dist/collection/components/modal-container/modal-container.js.map +1 -1
  94. package/dist/collection/components/pagination/pagination.css +58 -0
  95. package/dist/collection/components/pagination/pagination.js +311 -0
  96. package/dist/collection/components/pagination/pagination.js.map +1 -0
  97. package/dist/collection/components/select/select.css +4 -1
  98. package/dist/collection/components/select/select.js +98 -36
  99. package/dist/collection/components/select/select.js.map +1 -1
  100. package/dist/collection/components/select-item/select-item.css +0 -3
  101. package/dist/collection/components/select-item/select-item.js +1 -1
  102. package/dist/collection/components/select-item/select-item.js.map +1 -1
  103. package/dist/collection/components/toast/toast-container.js +16 -4
  104. package/dist/collection/components/toast/toast-container.js.map +1 -1
  105. package/dist/collection/components/toast/toast-utils.js +4 -1
  106. package/dist/collection/components/toast/toast-utils.js.map +1 -1
  107. package/dist/collection/components/toggle/toggle.css +7 -4
  108. package/dist/collection/components/tooltip/tooltip.css +8 -7
  109. package/dist/collection/components/tooltip/tooltip.js +76 -27
  110. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  111. package/dist/collection/components/tree/tree.js +38 -0
  112. package/dist/collection/components/tree/tree.js.map +1 -1
  113. package/dist/collection/components/utils/a11y.js +10 -0
  114. package/dist/collection/components/utils/a11y.js.map +1 -0
  115. package/dist/collection/components/workflow-step/workflow-step.css +7 -3
  116. package/dist/collection/components/workflow-step/workflow-step.js +45 -6
  117. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  118. package/dist/collection/components/workflow-steps/workflow-steps.css +0 -3
  119. package/dist/collection/components/workflow-steps/workflow-steps.js +48 -39
  120. package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
  121. package/dist/collection/index.js +1 -0
  122. package/dist/collection/index.js.map +1 -1
  123. package/dist/collection/tests/utils/test/page.js +29 -1
  124. package/dist/collection/tests/utils/test/page.js.map +1 -1
  125. package/dist/components/application-header.js +1 -1
  126. package/dist/components/burger-menu.js +1 -1
  127. package/dist/components/button.js +1 -1
  128. package/dist/components/date-picker.js +63 -44
  129. package/dist/components/date-picker.js.map +1 -1
  130. package/dist/components/date-time-card.js +1 -1
  131. package/dist/components/dropdown-item.js +4 -4
  132. package/dist/components/dropdown-item.js.map +1 -1
  133. package/dist/components/dropdown.js +3 -2
  134. package/dist/components/dropdown.js.map +1 -1
  135. package/dist/components/filter-chip.js +3 -3
  136. package/dist/components/filter-chip.js.map +1 -1
  137. package/dist/components/group-context-menu.js +1 -1
  138. package/dist/components/group-item.js +2 -2
  139. package/dist/components/group-item.js.map +1 -1
  140. package/dist/components/icon-button.js +1 -1
  141. package/dist/components/icon.js +1 -1
  142. package/dist/components/index-button.js +41 -0
  143. package/dist/components/index-button.js.map +1 -0
  144. package/dist/components/index.js +5 -1
  145. package/dist/components/index.js.map +1 -1
  146. package/dist/components/ix-animated-tab.js +1 -1
  147. package/dist/components/ix-animated-tabs.js +1 -1
  148. package/dist/components/ix-basic-navigation.js +1 -1
  149. package/dist/components/ix-blind.js +38 -9
  150. package/dist/components/ix-blind.js.map +1 -1
  151. package/dist/components/ix-breadcrumb-item.js +1 -1
  152. package/dist/components/ix-breadcrumb.js +2 -2
  153. package/dist/components/ix-breadcrumb.js.map +1 -1
  154. package/dist/components/ix-category-filter.js +20 -6
  155. package/dist/components/ix-category-filter.js.map +1 -1
  156. package/dist/components/ix-chip.js +7 -2
  157. package/dist/components/ix-chip.js.map +1 -1
  158. package/dist/components/ix-counter-pill.js +1 -1
  159. package/dist/components/ix-datetime-picker.js +3 -3
  160. package/dist/components/ix-datetime-picker.js.map +1 -1
  161. package/dist/components/ix-divider.js +1 -1
  162. package/dist/components/ix-drawer.js +1 -1
  163. package/dist/components/ix-dropdown-button.js +1 -1
  164. package/dist/components/ix-dropdown-quick-actions.js +1 -1
  165. package/dist/components/ix-event-list-item.js +1 -1
  166. package/dist/components/ix-event-list.js +1 -1
  167. package/dist/components/ix-expanding-search.js +1 -1
  168. package/dist/components/ix-flip-tile-content.js +1 -1
  169. package/dist/components/ix-flip-tile.js +14 -3
  170. package/dist/components/ix-flip-tile.js.map +1 -1
  171. package/dist/components/ix-group-dropdown-item.js +1 -1
  172. package/dist/components/ix-group.js +36 -12
  173. package/dist/components/ix-group.js.map +1 -1
  174. package/dist/components/ix-index-button.d.ts +11 -0
  175. package/dist/components/ix-index-button.js +8 -0
  176. package/dist/components/ix-index-button.js.map +1 -0
  177. package/dist/components/ix-input-group.js +2 -2
  178. package/dist/components/ix-input-group.js.map +1 -1
  179. package/dist/components/ix-kpi.js +1 -1
  180. package/dist/components/ix-map-navigation.js +1 -1
  181. package/dist/components/ix-menu-about-item.js +1 -1
  182. package/dist/components/ix-menu-about-news.js +1 -1
  183. package/dist/components/ix-menu-about.js +1 -1
  184. package/dist/components/ix-menu-avatar.js +1 -1
  185. package/dist/components/ix-menu-settings-item.js +1 -1
  186. package/dist/components/ix-menu-settings.js +1 -1
  187. package/dist/components/ix-menu.js +1 -1
  188. package/dist/components/ix-message-bar.js +1 -1
  189. package/dist/components/ix-modal-example.js +1 -1
  190. package/dist/components/ix-pagination.d.ts +11 -0
  191. package/dist/components/ix-pagination.js +193 -0
  192. package/dist/components/ix-pagination.js.map +1 -0
  193. package/dist/components/ix-pill.js +1 -1
  194. package/dist/components/ix-select.js +1 -341
  195. package/dist/components/ix-select.js.map +1 -1
  196. package/dist/components/ix-split-button-item.js +1 -1
  197. package/dist/components/ix-split-button.js +1 -1
  198. package/dist/components/ix-tile.js +1 -1
  199. package/dist/components/ix-toast-container.js +11 -2
  200. package/dist/components/ix-toast-container.js.map +1 -1
  201. package/dist/components/ix-toggle.js +2 -2
  202. package/dist/components/ix-toggle.js.map +1 -1
  203. package/dist/components/ix-tooltip.js +58 -29
  204. package/dist/components/ix-tooltip.js.map +1 -1
  205. package/dist/components/ix-tree.js +5 -1
  206. package/dist/components/ix-tree.js.map +1 -1
  207. package/dist/components/ix-upload.js +2 -17
  208. package/dist/components/ix-upload.js.map +1 -1
  209. package/dist/components/ix-validation-tooltip.js +1 -1
  210. package/dist/components/ix-workflow-step.js +10 -4
  211. package/dist/components/ix-workflow-step.js.map +1 -1
  212. package/dist/components/ix-workflow-steps.js +45 -36
  213. package/dist/components/ix-workflow-steps.js.map +1 -1
  214. package/dist/components/map-navigation-overlay.js +1 -1
  215. package/dist/components/menu-avatar-item.js +1 -1
  216. package/dist/components/menu-item.js +2 -2
  217. package/dist/components/menu-item.js.map +1 -1
  218. package/dist/components/modal-container.js +12 -5
  219. package/dist/components/modal-container.js.map +1 -1
  220. package/dist/components/modal.js +7 -2
  221. package/dist/components/modal.js.map +1 -1
  222. package/dist/components/my-component.js +1 -1
  223. package/dist/components/select-item.js +3 -3
  224. package/dist/components/select-item.js.map +1 -1
  225. package/dist/components/select.js +366 -0
  226. package/dist/components/select.js.map +1 -0
  227. package/dist/components/spinner.js +1 -1
  228. package/dist/components/tab-item.js +1 -1
  229. package/dist/components/tabs.js +1 -1
  230. package/dist/components/time-picker.js +1 -1
  231. package/dist/components/toast.js +1 -1
  232. package/dist/components/tree-item.js +1 -1
  233. package/dist/components/typography.js +1 -1
  234. package/dist/components/upload-file-state.js +19 -0
  235. package/dist/components/upload-file-state.js.map +1 -0
  236. package/dist/esm/index-3d163acd.js +8 -0
  237. package/dist/esm/index-3d163acd.js.map +1 -1
  238. package/dist/esm/index.js +5 -1
  239. package/dist/esm/index.js.map +1 -1
  240. package/dist/esm/ix-blind.entry.js +27 -6
  241. package/dist/esm/ix-blind.entry.js.map +1 -1
  242. package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
  243. package/dist/esm/ix-breadcrumb_2.entry.js.map +1 -1
  244. package/dist/esm/ix-category-filter.entry.js +19 -5
  245. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  246. package/dist/esm/ix-chip.entry.js +6 -1
  247. package/dist/esm/ix-chip.entry.js.map +1 -1
  248. package/dist/esm/ix-date-picker_2.entry.js +62 -43
  249. package/dist/esm/ix-date-picker_2.entry.js.map +1 -1
  250. package/dist/esm/ix-datetime-picker.entry.js +2 -2
  251. package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
  252. package/dist/esm/ix-dropdown_2.entry.js +5 -4
  253. package/dist/esm/ix-dropdown_2.entry.js.map +1 -1
  254. package/dist/esm/ix-filter-chip.entry.js +2 -2
  255. package/dist/esm/ix-filter-chip.entry.js.map +1 -1
  256. package/dist/esm/ix-flip-tile_2.entry.js +11 -2
  257. package/dist/esm/ix-flip-tile_2.entry.js.map +1 -1
  258. package/dist/esm/ix-group_3.entry.js +33 -11
  259. package/dist/esm/ix-group_3.entry.js.map +1 -1
  260. package/dist/esm/ix-index-button.entry.js +24 -0
  261. package/dist/esm/ix-index-button.entry.js.map +1 -0
  262. package/dist/esm/ix-input-group.entry.js +1 -1
  263. package/dist/esm/ix-input-group.entry.js.map +1 -1
  264. package/dist/esm/ix-menu_9.entry.js +1 -1
  265. package/dist/esm/ix-menu_9.entry.js.map +1 -1
  266. package/dist/esm/ix-modal_2.entry.js +17 -5
  267. package/dist/esm/ix-modal_2.entry.js.map +1 -1
  268. package/dist/esm/ix-pagination.entry.js +119 -0
  269. package/dist/esm/ix-pagination.entry.js.map +1 -0
  270. package/dist/esm/ix-select_2.entry.js +56 -37
  271. package/dist/esm/ix-select_2.entry.js.map +1 -1
  272. package/dist/esm/ix-toast_2.entry.js +10 -1
  273. package/dist/esm/ix-toast_2.entry.js.map +1 -1
  274. package/dist/esm/ix-toggle.entry.js +1 -1
  275. package/dist/esm/ix-toggle.entry.js.map +1 -1
  276. package/dist/esm/ix-tooltip.entry.js +56 -28
  277. package/dist/esm/ix-tooltip.entry.js.map +1 -1
  278. package/dist/esm/ix-tree_2.entry.js +4 -0
  279. package/dist/esm/ix-tree_2.entry.js.map +1 -1
  280. package/dist/esm/ix-upload.entry.js +1 -16
  281. package/dist/esm/ix-upload.entry.js.map +1 -1
  282. package/dist/esm/ix-workflow-step_2.entry.js +52 -37
  283. package/dist/esm/ix-workflow-step_2.entry.js.map +1 -1
  284. package/dist/esm/loader.js +2 -2
  285. package/dist/esm/loader.js.map +1 -1
  286. package/dist/esm/siemens-ix.js +2 -2
  287. package/dist/esm/siemens-ix.js.map +1 -1
  288. package/dist/esm/upload-file-state-532a36d3.js +19 -0
  289. package/dist/esm/upload-file-state-532a36d3.js.map +1 -0
  290. package/dist/siemens-ix/index.esm.js +1 -1
  291. package/dist/siemens-ix/index.esm.js.map +1 -1
  292. package/dist/siemens-ix/p-076c29d1.js +2 -0
  293. package/dist/siemens-ix/p-076c29d1.js.map +1 -0
  294. package/dist/siemens-ix/p-0f864265.entry.js +2 -0
  295. package/dist/siemens-ix/p-0f864265.entry.js.map +1 -0
  296. package/dist/siemens-ix/p-16ec6f50.entry.js +2 -0
  297. package/dist/siemens-ix/p-16ec6f50.entry.js.map +1 -0
  298. package/dist/siemens-ix/p-1701b127.entry.js +2 -0
  299. package/dist/siemens-ix/p-1701b127.entry.js.map +1 -0
  300. package/dist/siemens-ix/{p-41f0a2b2.entry.js → p-2ea2fc07.entry.js} +2 -2
  301. package/dist/siemens-ix/{p-41f0a2b2.entry.js.map → p-2ea2fc07.entry.js.map} +1 -1
  302. package/dist/siemens-ix/p-33160fe4.entry.js +2 -0
  303. package/dist/siemens-ix/p-33160fe4.entry.js.map +1 -0
  304. package/dist/siemens-ix/{p-6790d123.entry.js → p-34e3a10e.entry.js} +2 -2
  305. package/dist/siemens-ix/{p-6790d123.entry.js.map → p-34e3a10e.entry.js.map} +1 -1
  306. package/dist/siemens-ix/p-4c8d5207.entry.js +2 -0
  307. package/dist/siemens-ix/p-4c8d5207.entry.js.map +1 -0
  308. package/dist/siemens-ix/p-53c69375.entry.js +2 -0
  309. package/dist/siemens-ix/p-53c69375.entry.js.map +1 -0
  310. package/dist/siemens-ix/p-55d0fabf.entry.js +2 -0
  311. package/dist/siemens-ix/p-55d0fabf.entry.js.map +1 -0
  312. package/dist/siemens-ix/p-626b3af5.entry.js +2 -0
  313. package/dist/siemens-ix/p-626b3af5.entry.js.map +1 -0
  314. package/dist/siemens-ix/{p-aafd18a8.entry.js → p-62b4d696.entry.js} +2 -2
  315. package/dist/siemens-ix/p-62b4d696.entry.js.map +1 -0
  316. package/dist/siemens-ix/p-663724a8.entry.js +2 -0
  317. package/dist/siemens-ix/p-663724a8.entry.js.map +1 -0
  318. package/dist/siemens-ix/p-7fb5fa79.entry.js +2 -0
  319. package/dist/siemens-ix/p-7fb5fa79.entry.js.map +1 -0
  320. package/dist/siemens-ix/{p-1811d669.entry.js → p-88a47c9b.entry.js} +2 -2
  321. package/dist/siemens-ix/p-88a47c9b.entry.js.map +1 -0
  322. package/dist/siemens-ix/p-8fcd6f85.js.map +1 -1
  323. package/dist/siemens-ix/p-9546cbdd.entry.js +2 -0
  324. package/dist/siemens-ix/p-9546cbdd.entry.js.map +1 -0
  325. package/dist/siemens-ix/{p-5ce07b8b.entry.js → p-afd1f351.entry.js} +2 -2
  326. package/dist/siemens-ix/p-afd1f351.entry.js.map +1 -0
  327. package/dist/siemens-ix/p-b998abe4.entry.js +2 -0
  328. package/dist/siemens-ix/p-b998abe4.entry.js.map +1 -0
  329. package/dist/siemens-ix/p-b9fbd029.entry.js +2 -0
  330. package/dist/siemens-ix/p-b9fbd029.entry.js.map +1 -0
  331. package/dist/siemens-ix/p-c9c9f2b5.entry.js +2 -0
  332. package/dist/siemens-ix/p-c9c9f2b5.entry.js.map +1 -0
  333. package/dist/siemens-ix/p-caae2fa5.entry.js +2 -0
  334. package/dist/siemens-ix/p-caae2fa5.entry.js.map +1 -0
  335. package/dist/siemens-ix/{p-01f9f803.entry.js → p-cdb54f7c.entry.js} +2 -2
  336. package/dist/siemens-ix/p-cdb54f7c.entry.js.map +1 -0
  337. package/dist/siemens-ix/{p-11af475f.entry.js → p-eb799bdd.entry.js} +2 -2
  338. package/dist/siemens-ix/p-eb799bdd.entry.js.map +1 -0
  339. package/dist/siemens-ix/siemens-ix.css +21 -0
  340. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  341. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  342. package/dist/types/components/blind/blind.d.ts +6 -0
  343. package/dist/types/components/category-filter/category-filter.d.ts +1 -0
  344. package/dist/types/components/chip/chip.d.ts +8 -0
  345. package/dist/types/components/date-picker/date-picker.d.ts +4 -3
  346. package/dist/types/components/flip-tile/flip-tile.d.ts +11 -0
  347. package/dist/types/components/group/group.d.ts +4 -0
  348. package/dist/types/components/index-button/index-button.d.ts +16 -0
  349. package/dist/types/components/modal/modal.d.ts +1 -0
  350. package/dist/types/components/modal-container/modal-container.d.ts +1 -0
  351. package/dist/types/components/pagination/pagination.d.ts +57 -0
  352. package/dist/types/components/select/select.d.ts +17 -1
  353. package/dist/types/components/toast/toast-container.d.ts +3 -1
  354. package/dist/types/components/toast/toast-utils.d.ts +3 -0
  355. package/dist/types/components/tooltip/tooltip.d.ts +8 -0
  356. package/dist/types/components/tree/tree.d.ts +13 -0
  357. package/dist/types/components/utils/a11y.d.ts +1 -0
  358. package/dist/types/components/workflow-step/workflow-step.d.ts +9 -1
  359. package/dist/types/components/workflow-steps/workflow-steps.d.ts +6 -2
  360. package/dist/types/components.d.ts +231 -11
  361. package/dist/types/index.d.ts +1 -0
  362. package/dist/types/tests/utils/test/page.d.ts +5 -0
  363. package/loader/index.d.ts +1 -1
  364. package/package.json +7 -6
  365. package/scss/components/_forms.scss +7 -1
  366. package/dist/siemens-ix/p-01f9f803.entry.js.map +0 -1
  367. package/dist/siemens-ix/p-0d15aa1a.entry.js +0 -2
  368. package/dist/siemens-ix/p-0d15aa1a.entry.js.map +0 -1
  369. package/dist/siemens-ix/p-11af475f.entry.js.map +0 -1
  370. package/dist/siemens-ix/p-1259ea24.entry.js +0 -2
  371. package/dist/siemens-ix/p-1259ea24.entry.js.map +0 -1
  372. package/dist/siemens-ix/p-1811d669.entry.js.map +0 -1
  373. package/dist/siemens-ix/p-29bd1814.entry.js +0 -2
  374. package/dist/siemens-ix/p-29bd1814.entry.js.map +0 -1
  375. package/dist/siemens-ix/p-5845a03c.entry.js +0 -2
  376. package/dist/siemens-ix/p-5845a03c.entry.js.map +0 -1
  377. package/dist/siemens-ix/p-5ce07b8b.entry.js.map +0 -1
  378. package/dist/siemens-ix/p-7ce0c0e2.entry.js +0 -2
  379. package/dist/siemens-ix/p-7ce0c0e2.entry.js.map +0 -1
  380. package/dist/siemens-ix/p-967f7d5d.entry.js +0 -2
  381. package/dist/siemens-ix/p-967f7d5d.entry.js.map +0 -1
  382. package/dist/siemens-ix/p-9f55716d.entry.js +0 -2
  383. package/dist/siemens-ix/p-9f55716d.entry.js.map +0 -1
  384. package/dist/siemens-ix/p-a4178e26.entry.js +0 -2
  385. package/dist/siemens-ix/p-a4178e26.entry.js.map +0 -1
  386. package/dist/siemens-ix/p-a92126b5.entry.js +0 -2
  387. package/dist/siemens-ix/p-a92126b5.entry.js.map +0 -1
  388. package/dist/siemens-ix/p-aafd18a8.entry.js.map +0 -1
  389. package/dist/siemens-ix/p-b64e82ce.entry.js +0 -2
  390. package/dist/siemens-ix/p-b64e82ce.entry.js.map +0 -1
  391. package/dist/siemens-ix/p-d7def96c.entry.js +0 -2
  392. package/dist/siemens-ix/p-d7def96c.entry.js.map +0 -1
  393. package/dist/siemens-ix/p-f961c22a.entry.js +0 -2
  394. package/dist/siemens-ix/p-f961c22a.entry.js.map +0 -1
  395. package/dist/siemens-ix/p-fe690347.entry.js +0 -2
  396. package/dist/siemens-ix/p-fe690347.entry.js.map +0 -1
@@ -0,0 +1,58 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2022 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
+ /*
10
+ * SPDX-FileCopyrightText: 2023 Siemens AG
11
+ *
12
+ * SPDX-License-Identifier: MIT
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */
17
+ /* Dimensions */
18
+ /* Font sizes */
19
+ /* Line heights */
20
+ /* Animation timings */
21
+ :host,
22
+ :host .advanced-pagination,
23
+ :host .item-count {
24
+ display: inline-flex;
25
+ align-items: center;
26
+ }
27
+ :host .basic-pagination {
28
+ padding: 0 0.125rem;
29
+ }
30
+ :host .advanced-pagination {
31
+ padding: 0 0.75rem;
32
+ }
33
+ :host input {
34
+ width: 4.125rem;
35
+ text-align: center;
36
+ margin: 0 0.5rem;
37
+ }
38
+ :host .page-buttons {
39
+ white-space: nowrap;
40
+ }
41
+ :host .total-count {
42
+ white-space: nowrap;
43
+ }
44
+ :host .item-count {
45
+ flex-grow: 1;
46
+ justify-content: flex-end;
47
+ -webkit-margin-start: 1.5rem;
48
+ margin-inline-start: 1.5rem;
49
+ }
50
+ :host .item-count ix-select {
51
+ width: 4.5rem;
52
+ -webkit-margin-start: 1.5rem;
53
+ margin-inline-start: 1.5rem;
54
+ }
55
+ :host ix-index-button + ix-index-button {
56
+ -webkit-margin-start: 0.125rem;
57
+ margin-inline-start: 0.125rem;
58
+ }
@@ -0,0 +1,311 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2022 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
+ /**
11
+ * @since 1.5.0
12
+ */
13
+ export class Pagination {
14
+ constructor() {
15
+ this.maxCountPages = 7;
16
+ this.advanced = undefined;
17
+ this.itemCount = 15;
18
+ this.showItemCount = true;
19
+ this.count = undefined;
20
+ this.selectedPage = 0;
21
+ this.i18nPage = 'Page';
22
+ this.i18nOf = 'of';
23
+ this.i18nItems = 'Items';
24
+ }
25
+ get pageInput() {
26
+ return this.hostElement.querySelector('.advanced-pagination input.form-control');
27
+ }
28
+ selectPage(index) {
29
+ if (index < 0) {
30
+ this.selectedPage = 0;
31
+ }
32
+ else if (index > this.count - 1) {
33
+ this.selectedPage = this.count - 1;
34
+ }
35
+ else {
36
+ this.selectedPage = index;
37
+ }
38
+ this.pageSelected.emit(this.selectedPage);
39
+ }
40
+ increase() {
41
+ if (this.selectedPage === this.count - 1) {
42
+ return;
43
+ }
44
+ this.selectPage(this.selectedPage + 1);
45
+ }
46
+ decrease() {
47
+ if (this.selectedPage === 0) {
48
+ return;
49
+ }
50
+ this.selectPage(this.selectedPage - 1);
51
+ }
52
+ getPageButton(index) {
53
+ return (h("ix-index-button", { variant: "Primary", onClick: () => {
54
+ this.selectPage(index);
55
+ }, selected: this.selectedPage === index }, index + 1));
56
+ }
57
+ renderPageButtons() {
58
+ const pagesBeforeOverflow = Math.floor(this.maxCountPages / 2);
59
+ const hasOverflow = this.count > this.maxCountPages;
60
+ const hasOverflowStart = hasOverflow && this.selectedPage > pagesBeforeOverflow;
61
+ const hasOverflowEnd = hasOverflow && this.selectedPage < this.count - pagesBeforeOverflow - 1;
62
+ const pageButtons = [];
63
+ let start = 0;
64
+ let end = Math.min(this.count, this.maxCountPages);
65
+ let pageCount = Math.floor((this.maxCountPages - 4) / 2);
66
+ if (hasOverflowStart) {
67
+ pageButtons.push(this.getPageButton(0));
68
+ pageButtons.push(h("ix-index-button", { variant: "Secondary", onClick: () => {
69
+ if (hasOverflowEnd) {
70
+ this.selectPage(this.selectedPage - Math.max(0, 2 * pageCount + 1));
71
+ }
72
+ else {
73
+ this.selectPage(this.count - this.maxCountPages);
74
+ }
75
+ } }, "..."));
76
+ if (hasOverflowEnd) {
77
+ start = this.count - this.maxCountPages + 2;
78
+ }
79
+ else {
80
+ start = this.count - this.maxCountPages + 2;
81
+ end = this.count;
82
+ }
83
+ }
84
+ if (hasOverflowEnd) {
85
+ if (hasOverflowStart) {
86
+ start = this.selectedPage - pageCount;
87
+ end = this.selectedPage + pageCount + 1;
88
+ }
89
+ else {
90
+ end = this.maxCountPages - 2;
91
+ }
92
+ }
93
+ for (let i = start; i < end; i++) {
94
+ pageButtons.push(this.getPageButton(i));
95
+ }
96
+ if (hasOverflowEnd) {
97
+ pageButtons.push(h("ix-index-button", { variant: "Secondary", onClick: () => {
98
+ if (hasOverflowStart) {
99
+ this.selectPage(this.selectedPage + Math.max(0, 2 * pageCount + 1));
100
+ }
101
+ else {
102
+ this.selectPage(this.maxCountPages - 1);
103
+ }
104
+ } }, "..."));
105
+ pageButtons.push(this.getPageButton(this.count - 1));
106
+ }
107
+ return h("span", { class: "page-buttons" }, pageButtons);
108
+ }
109
+ render() {
110
+ return (h(Host, null, h("ix-icon-button", { disabled: this.selectedPage === 0, ghost: true, icon: "chevron-left-small", onClick: () => this.decrease() }), this.advanced ? (h("div", { class: "advanced-pagination" }, this.i18nPage, h("input", { class: "form-control", type: "number", min: "1", max: this.count, value: this.selectedPage + 1, onChange: (e) => {
111
+ const index = Number.parseInt(e.target['value']);
112
+ this.selectPage(index - 1);
113
+ } }), h("span", { class: "total-count" }, this.i18nOf, " ", this.count))) : (h("span", { class: "basic-pagination" }, this.renderPageButtons(), " ")), h("ix-icon-button", { disabled: this.selectedPage === this.count - 1, ghost: true, icon: "chevron-right-small", onClick: () => this.increase() }), this.advanced && this.showItemCount ? (h("span", { class: "item-count" }, this.i18nItems, h("ix-select", { hideListHeader: true, i18nPlaceholder: "", i18nSelectListHeader: "", "selected-indices": this.itemCount, onItemSelectionChange: (e) => {
114
+ const count = Number.parseInt(e.detail[0]);
115
+ this.itemCountChanged.emit(count);
116
+ } }, 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" })))) : ('')));
117
+ }
118
+ static get is() { return "ix-pagination"; }
119
+ static get encapsulation() { return "scoped"; }
120
+ static get originalStyleUrls() {
121
+ return {
122
+ "$": ["pagination.scss"]
123
+ };
124
+ }
125
+ static get styleUrls() {
126
+ return {
127
+ "$": ["pagination.css"]
128
+ };
129
+ }
130
+ static get properties() {
131
+ return {
132
+ "advanced": {
133
+ "type": "boolean",
134
+ "mutable": false,
135
+ "complexType": {
136
+ "original": "boolean",
137
+ "resolved": "boolean",
138
+ "references": {}
139
+ },
140
+ "required": false,
141
+ "optional": false,
142
+ "docs": {
143
+ "tags": [],
144
+ "text": "Advanced mode"
145
+ },
146
+ "attribute": "advanced",
147
+ "reflect": false
148
+ },
149
+ "itemCount": {
150
+ "type": "number",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "number",
154
+ "resolved": "number",
155
+ "references": {}
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": "Number of items shown at once.\nCan only be changed in advaced mode."
162
+ },
163
+ "attribute": "item-count",
164
+ "reflect": false,
165
+ "defaultValue": "15"
166
+ },
167
+ "showItemCount": {
168
+ "type": "boolean",
169
+ "mutable": false,
170
+ "complexType": {
171
+ "original": "boolean",
172
+ "resolved": "boolean",
173
+ "references": {}
174
+ },
175
+ "required": false,
176
+ "optional": false,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": "Show item count in advanced mode"
180
+ },
181
+ "attribute": "show-item-count",
182
+ "reflect": false,
183
+ "defaultValue": "true"
184
+ },
185
+ "count": {
186
+ "type": "number",
187
+ "mutable": false,
188
+ "complexType": {
189
+ "original": "number",
190
+ "resolved": "number",
191
+ "references": {}
192
+ },
193
+ "required": false,
194
+ "optional": false,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": "Total number of pages"
198
+ },
199
+ "attribute": "count",
200
+ "reflect": false
201
+ },
202
+ "selectedPage": {
203
+ "type": "number",
204
+ "mutable": true,
205
+ "complexType": {
206
+ "original": "number",
207
+ "resolved": "number",
208
+ "references": {}
209
+ },
210
+ "required": false,
211
+ "optional": false,
212
+ "docs": {
213
+ "tags": [],
214
+ "text": "Zero based index of currently selected page"
215
+ },
216
+ "attribute": "selected-page",
217
+ "reflect": false,
218
+ "defaultValue": "0"
219
+ },
220
+ "i18nPage": {
221
+ "type": "string",
222
+ "mutable": false,
223
+ "complexType": {
224
+ "original": "string",
225
+ "resolved": "string",
226
+ "references": {}
227
+ },
228
+ "required": false,
229
+ "optional": false,
230
+ "docs": {
231
+ "tags": [],
232
+ "text": "i18n"
233
+ },
234
+ "attribute": "i-1-8n-page",
235
+ "reflect": false,
236
+ "defaultValue": "'Page'"
237
+ },
238
+ "i18nOf": {
239
+ "type": "string",
240
+ "mutable": false,
241
+ "complexType": {
242
+ "original": "string",
243
+ "resolved": "string",
244
+ "references": {}
245
+ },
246
+ "required": false,
247
+ "optional": false,
248
+ "docs": {
249
+ "tags": [],
250
+ "text": "i18n"
251
+ },
252
+ "attribute": "i-1-8n-of",
253
+ "reflect": false,
254
+ "defaultValue": "'of'"
255
+ },
256
+ "i18nItems": {
257
+ "type": "string",
258
+ "mutable": false,
259
+ "complexType": {
260
+ "original": "string",
261
+ "resolved": "string",
262
+ "references": {}
263
+ },
264
+ "required": false,
265
+ "optional": false,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": "/**\n i18n"
269
+ },
270
+ "attribute": "i-1-8n-items",
271
+ "reflect": false,
272
+ "defaultValue": "'Items'"
273
+ }
274
+ };
275
+ }
276
+ static get events() {
277
+ return [{
278
+ "method": "pageSelected",
279
+ "name": "pageSelected",
280
+ "bubbles": true,
281
+ "cancelable": true,
282
+ "composed": true,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": "Page selection event"
286
+ },
287
+ "complexType": {
288
+ "original": "number",
289
+ "resolved": "number",
290
+ "references": {}
291
+ }
292
+ }, {
293
+ "method": "itemCountChanged",
294
+ "name": "itemCountChanged",
295
+ "bubbles": true,
296
+ "cancelable": true,
297
+ "composed": true,
298
+ "docs": {
299
+ "tags": [],
300
+ "text": "Item count change event"
301
+ },
302
+ "complexType": {
303
+ "original": "number",
304
+ "resolved": "number",
305
+ "references": {}
306
+ }
307
+ }];
308
+ }
309
+ static get elementRef() { return "hostElement"; }
310
+ }
311
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","sourceRoot":"","sources":["../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QACf,iBACE,cAAc,QACd,eAAe,EAAC,EAAE,EAClB,oBAAoB,EAAC,EAAE,sBACL,IAAI,CAAC,SAAS,EAChC,qBAAqB,EAAE,CAAC,CAAC,EAAE,EAAE;YAC3B,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YAC3C,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;UACpC,CAAC;UAED,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;UACvD,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;UACvD,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;UACvD,sBAAgB,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAkB;UACvD,sBAAgB,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,GAAkB,CAC/C,CACP,CACR,CAAC,CAAC,CAAC,CACF,EAAE,CACH,CACI,CACR,CAAC;EACJ,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';\n\n/**\n * @since 1.5.0\n */\n@Component({\n tag: 'ix-pagination',\n styleUrl: 'pagination.scss',\n scoped: true,\n})\nexport class Pagination {\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 get pageInput() {\n return this.hostElement.querySelector(\n '.advanced-pagination input.form-control'\n );\n }\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 return (\n <ix-index-button\n variant=\"Primary\"\n onClick={() => {\n this.selectPage(index);\n }}\n selected={this.selectedPage === index}\n >\n {index + 1}\n </ix-index-button>\n );\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 pageButtons.push(this.getPageButton(0));\n pageButtons.push(\n <ix-index-button\n variant=\"Secondary\"\n onClick={() => {\n if (hasOverflowEnd) {\n this.selectPage(\n this.selectedPage - Math.max(0, 2 * pageCount + 1)\n );\n } else {\n this.selectPage(this.count - this.maxCountPages);\n }\n }}\n >\n ...\n </ix-index-button>\n );\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 pageButtons.push(\n <ix-index-button\n variant=\"Secondary\"\n onClick={() => {\n if (hasOverflowStart) {\n this.selectPage(\n this.selectedPage + Math.max(0, 2 * pageCount + 1)\n );\n } else {\n this.selectPage(this.maxCountPages - 1);\n }\n }}\n >\n ...\n </ix-index-button>\n );\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 {this.i18nPage}\n <input\n class=\"form-control\"\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 {this.i18nOf} {this.count}\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 {this.i18nItems}\n <ix-select\n hideListHeader\n i18nPlaceholder=\"\"\n i18nSelectListHeader=\"\"\n selected-indices={this.itemCount}\n onItemSelectionChange={(e) => {\n const count = Number.parseInt(e.detail[0]);\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"]}
@@ -71,6 +71,9 @@
71
71
  outline: 1px solid #119fff !important;
72
72
  outline-offset: var(--theme-input--focus--outline-offset);
73
73
  }
74
+ :host .hidden {
75
+ display: none !important;
76
+ }
74
77
  :host .trigger {
75
78
  display: flex;
76
79
  align-items: center;
@@ -94,7 +97,7 @@
94
97
  overflow-y: auto;
95
98
  }
96
99
  :host .input-container .chips > ix-filter-chip {
97
- margin: 0 0.1rem;
100
+ margin: 0.1rem;
98
101
  }
99
102
  :host .input-container input {
100
103
  overflow: hidden;
@@ -18,6 +18,8 @@ export class Select {
18
18
  this.i18nPlaceholder = 'Select an option';
19
19
  this.i18nPlaceholderEditable = 'Type of select option';
20
20
  this.i18nSelectListHeader = 'Please select an option';
21
+ this.i18nNoMatches = 'No matches';
22
+ this.hideListHeader = false;
21
23
  this.dropdownShow = false;
22
24
  this.value = undefined;
23
25
  this.dropdownWrapperRef = undefined;
@@ -43,6 +45,9 @@ export class Select {
43
45
  get isMultipleMode() {
44
46
  return this.mode === 'multiple';
45
47
  }
48
+ get isEveryDropdownItemHidden() {
49
+ return this.items.every((item) => item.classList.contains('d-none'));
50
+ }
46
51
  watchSelectedIndices(newId) {
47
52
  if (!newId) {
48
53
  this.selectValue([]);
@@ -58,14 +63,6 @@ export class Select {
58
63
  const newId = event.detail;
59
64
  this.emitItemClick(newId);
60
65
  }
61
- watchInputText(newValue) {
62
- if (!this.editable) {
63
- return;
64
- }
65
- if (this.itemExists(newValue)) {
66
- return;
67
- }
68
- }
69
66
  emitItemClick(newId) {
70
67
  if (this.isMultipleMode && Array.isArray(this.selectedIndices)) {
71
68
  if (this.selectedIndices.includes(newId)) {
@@ -85,10 +82,10 @@ export class Select {
85
82
  if (value.trim() === '') {
86
83
  return;
87
84
  }
88
- const test = document.createElement('ix-select-item');
89
- test.value = value;
90
- test.label = value;
91
- this.addItemRef.appendChild(test);
85
+ const newItem = document.createElement('ix-select-item');
86
+ newItem.value = value;
87
+ newItem.label = value;
88
+ this.addItemRef.appendChild(newItem);
92
89
  this.clearInput();
93
90
  this.emitItemClick(value);
94
91
  this.addItem.emit(value);
@@ -129,14 +126,16 @@ export class Select {
129
126
  }
130
127
  dropdownVisibilityChanged(event) {
131
128
  this.dropdownShow = event.detail;
129
+ this.hasFocus = event.detail;
132
130
  if (event.detail) {
133
131
  this.inputRef.focus();
134
132
  this.inputRef.select();
135
- this.navigationItem = this.items[0];
136
- this.setHoverEffectForNavigatedSelectItem();
137
133
  this.removeHiddenFromItems();
134
+ this.isDropdownEmpty = this.isEveryDropdownItemHidden;
135
+ }
136
+ else {
137
+ this.navigationItem = undefined;
138
138
  }
139
- this.hasFocus = event.detail;
140
139
  }
141
140
  async onKeyDown(event) {
142
141
  if (!this.dropdownShow) {
@@ -170,6 +169,8 @@ export class Select {
170
169
  onArrowNavigation(event) {
171
170
  event.stopPropagation();
172
171
  event.preventDefault();
172
+ const focusItem = this.items.find((item) => document.activeElement === item.querySelector('button'));
173
+ this.navigationItem = focusItem;
173
174
  const selectItems = this.items.filter((i) => !i.classList.contains('d-none'));
174
175
  const index = selectItems.indexOf(this.navigationItem);
175
176
  if (event.code === 'ArrowDown' && index < selectItems.length - 1) {
@@ -181,9 +182,8 @@ export class Select {
181
182
  this.setHoverEffectForNavigatedSelectItem();
182
183
  }
183
184
  setHoverEffectForNavigatedSelectItem() {
184
- this.items.forEach((item) => {
185
- item.hover = item === this.navigationItem;
186
- });
185
+ var _a;
186
+ (_a = this.navigationItem) === null || _a === void 0 ? void 0 : _a.querySelector('button').focus();
187
187
  }
188
188
  filterItemsWithTypeahead() {
189
189
  this.inputFilterText = this.inputRef.value;
@@ -198,7 +198,7 @@ export class Select {
198
198
  else {
199
199
  this.removeHiddenFromItems();
200
200
  }
201
- this.isDropdownEmpty = this.items.every((item) => item.classList.contains('d-none'));
201
+ this.isDropdownEmpty = this.isEveryDropdownItemHidden;
202
202
  }
203
203
  removeHiddenFromItems() {
204
204
  this.items.forEach((item) => {
@@ -216,6 +216,28 @@ export class Select {
216
216
  this.itemSelectionChange.emit(null);
217
217
  this.dropdownShow = false;
218
218
  }
219
+ onInputBlur(e) {
220
+ if (this.editable) {
221
+ return;
222
+ }
223
+ if (this.isSingleMode) {
224
+ if (this.dropdownShow && this.isDropdownEmpty) {
225
+ this.dropdownShow = false;
226
+ }
227
+ }
228
+ if (!this.dropdownShow && this.mode !== 'multiple') {
229
+ e.target['value'] = this.value;
230
+ }
231
+ }
232
+ placeholderValue() {
233
+ if (this.editable) {
234
+ return this.i18nPlaceholderEditable;
235
+ }
236
+ if (this.readonly) {
237
+ return '';
238
+ }
239
+ return this.i18nPlaceholder;
240
+ }
219
241
  render() {
220
242
  var _a, _b, _c;
221
243
  return (h(Host, null, h("div", { class: {
@@ -230,18 +252,15 @@ export class Select {
230
252
  if (!this.editable)
231
253
  this.dropdownWrapperRef = ref;
232
254
  } }, h("div", { class: "input-container" }, h("div", { class: "chips" }, this.isMultipleMode
233
- ? (_a = this.selectedItems) === null || _a === void 0 ? void 0 : _a.map((item) => (h("ix-filter-chip", { disabled: this.disabled || this.readonly, onCloseClick: (e) => {
255
+ ? (_a = this.selectedItems) === null || _a === void 0 ? void 0 : _a.map((item) => (h("ix-filter-chip", { disabled: this.disabled || this.readonly, key: item.value, onCloseClick: (e) => {
234
256
  e.preventDefault();
235
257
  e.stopPropagation();
236
258
  this.emitItemClick(item.value);
237
259
  } }, item.label)))
238
260
  : '', h("div", { class: "trigger" }, h("input", { "data-testid": "input", disabled: this.disabled, readOnly: this.readonly, type: "text", class: {
239
261
  'allow-clear': this.allowClear && !!((_b = this.value) === null || _b === void 0 ? void 0 : _b.length),
240
- }, placeholder: this.editable
241
- ? this.i18nPlaceholderEditable
242
- : this.i18nPlaceholder, value: this.inputValue, ref: (ref) => (this.inputRef = ref), onInput: () => this.filterItemsWithTypeahead() }), this.isMultipleMode &&
243
- this.allowClear &&
244
- (((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) || this.inputFilterText) ? (h("ix-icon-button", { class: "clear", icon: "clear", ghost: true, oval: true, size: "24", onClick: (e) => {
262
+ }, placeholder: this.placeholderValue(), value: this.inputValue, ref: (ref) => (this.inputRef = ref), onBlur: (e) => this.onInputBlur(e), onInput: () => this.filterItemsWithTypeahead() }), this.allowClear &&
263
+ (((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) || this.inputFilterText) ? (h("ix-icon-button", { class: "clear", icon: "clear", ghost: true, oval: true, size: "16", onClick: (e) => {
245
264
  e.preventDefault();
246
265
  e.stopPropagation();
247
266
  this.clear();
@@ -249,21 +268,22 @@ export class Select {
249
268
  if (this.editable)
250
269
  this.dropdownWrapperRef = ref;
251
270
  } }, h("ix-icon", { class: "chevron", name: "chevron-down-small" }))))))), h("ix-dropdown", { ref: (ref) => (this.dropdownRef = ref), show: this.dropdownShow, class: {
252
- 'd-none': this.disabled ||
253
- this.readonly ||
254
- (this.isDropdownEmpty && !this.editable),
255
- }, anchor: this.dropdownAnchor, trigger: this.dropdownWrapperRef, onShowChanged: (e) => this.dropdownVisibilityChanged(e), placement: "auto-start", overwriteDropdownStyle: async (delegateConfig) => {
271
+ 'd-none': this.disabled || this.readonly,
272
+ }, anchor: this.dropdownAnchor, trigger: this.dropdownWrapperRef, onShowChanged: (e) => this.dropdownVisibilityChanged(e), placement: "auto-start", overwriteDropdownStyle: async () => {
256
273
  return {
257
- width: `${delegateConfig.triggerRef.clientWidth}px`,
274
+ minWidth: `${this.hostElement.clientWidth}px`,
258
275
  };
259
- } }, h("div", { class: "select-list-header", title: this.i18nSelectListHeader }, this.i18nSelectListHeader), h("slot", null), h("div", { ref: (ref) => (this.addItemRef = ref), class: "d-contents" }), this.itemExists(this.inputFilterText) ? ('') : (h("ix-dropdown-item", { "data-testid": "add-item", icon: "plus", class: {
276
+ } }, h("div", { class: {
277
+ 'select-list-header': true,
278
+ hidden: this.hideListHeader || this.isDropdownEmpty,
279
+ }, title: this.i18nSelectListHeader }, this.i18nSelectListHeader), h("slot", null), h("div", { ref: (ref) => (this.addItemRef = ref), class: "d-contents" }), this.itemExists(this.inputFilterText) ? ('') : (h("ix-dropdown-item", { "data-testid": "add-item", icon: "plus", class: {
260
280
  'add-item': true,
261
281
  'd-none': !(this.editable && this.inputFilterText),
262
282
  }, label: this.inputFilterText, onItemClick: (e) => {
263
283
  e.preventDefault();
264
284
  e.stopPropagation();
265
285
  this.emitAddItem(this.inputFilterText);
266
- } })))));
286
+ } })), this.isDropdownEmpty && !this.editable ? (h("div", { class: "select-list-header" }, this.i18nNoMatches)) : (''))));
267
287
  }
268
288
  static get is() { return "ix-select"; }
269
289
  static get encapsulation() { return "scoped"; }
@@ -291,7 +311,7 @@ export class Select {
291
311
  "optional": false,
292
312
  "docs": {
293
313
  "tags": [],
294
- "text": "Indices of selected items"
314
+ "text": "Indices of selected items\nThis corresponds to the value property of ix-select-items and therefor not neccessarily the indices of the items in the list."
295
315
  },
296
316
  "attribute": "selected-indices",
297
317
  "reflect": false,
@@ -440,6 +460,51 @@ export class Select {
440
460
  "attribute": "i-1-8n-select-list-header",
441
461
  "reflect": false,
442
462
  "defaultValue": "'Please select an option'"
463
+ },
464
+ "i18nNoMatches": {
465
+ "type": "string",
466
+ "mutable": false,
467
+ "complexType": {
468
+ "original": "string",
469
+ "resolved": "string",
470
+ "references": {}
471
+ },
472
+ "required": false,
473
+ "optional": false,
474
+ "docs": {
475
+ "tags": [{
476
+ "name": "since",
477
+ "text": "1.5.0"
478
+ }],
479
+ "text": "Hint inside of dropdown if no items where found with current filter text"
480
+ },
481
+ "attribute": "i-1-8n-no-matches",
482
+ "reflect": false,
483
+ "defaultValue": "'No matches'"
484
+ },
485
+ "hideListHeader": {
486
+ "type": "boolean",
487
+ "mutable": false,
488
+ "complexType": {
489
+ "original": "boolean",
490
+ "resolved": "boolean",
491
+ "references": {}
492
+ },
493
+ "required": false,
494
+ "optional": false,
495
+ "docs": {
496
+ "tags": [{
497
+ "name": "since",
498
+ "text": "1.5.0"
499
+ }, {
500
+ "name": "",
501
+ "text": undefined
502
+ }],
503
+ "text": "Hide list header"
504
+ },
505
+ "attribute": "hide-list-header",
506
+ "reflect": false,
507
+ "defaultValue": "false"
443
508
  }
444
509
  };
445
510
  }
@@ -494,9 +559,6 @@ export class Select {
494
559
  return [{
495
560
  "propName": "selectedIndices",
496
561
  "methodName": "watchSelectedIndices"
497
- }, {
498
- "propName": "inputFilterText",
499
- "methodName": "watchInputText"
500
562
  }];
501
563
  }
502
564
  static get listeners() {