@siemens/ix 2.6.0 → 2.7.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 (1228) hide show
  1. package/components/a11y.js.map +1 -1
  2. package/components/application-header.js +20 -11
  3. package/components/application-header.js.map +1 -1
  4. package/components/avatar.js.map +1 -1
  5. package/components/breadcrumb-item.js.map +1 -1
  6. package/components/button.js +7 -2
  7. package/components/button.js.map +1 -1
  8. package/components/card-content.js +2 -2
  9. package/components/card-content.js.map +1 -1
  10. package/components/card-title.js +2 -2
  11. package/components/card-title.js.map +1 -1
  12. package/components/card.js +1 -1
  13. package/components/card.js.map +1 -1
  14. package/components/date-picker.js +4 -4
  15. package/components/date-picker.js.map +1 -1
  16. package/components/divider.js +1 -1
  17. package/components/dropdown-item.js +4 -4
  18. package/components/dropdown-item.js.map +1 -1
  19. package/components/dropdown.js +2 -2
  20. package/components/field-label.js +1 -1
  21. package/components/field-label.js.map +1 -1
  22. package/components/field-wrapper.js +2 -2
  23. package/components/field-wrapper.js.map +1 -1
  24. package/components/filter-chip.js +2 -2
  25. package/components/filter-chip.js.map +1 -1
  26. package/components/group-context-menu.js +1 -1
  27. package/components/group-context-menu.js.map +1 -1
  28. package/components/group-item.js +2 -2
  29. package/components/icon-button.js +4 -4
  30. package/components/icon-button.js.map +1 -1
  31. package/components/index.js +4 -0
  32. package/components/index.js.map +1 -1
  33. package/components/index2.js +4 -0
  34. package/components/index2.js.map +1 -1
  35. package/components/index3.js +2 -1
  36. package/components/index3.js.map +1 -1
  37. package/components/input.util.js +30 -10
  38. package/components/input.util.js.map +1 -1
  39. package/components/ix-application-switch-modal.js +1 -1
  40. package/components/ix-application-switch-modal.js.map +1 -1
  41. package/components/ix-application.js +7 -3
  42. package/components/ix-application.js.map +1 -1
  43. package/components/ix-basic-navigation.js +2 -2
  44. package/components/ix-basic-navigation.js.map +1 -1
  45. package/components/ix-card-list.js +6 -6
  46. package/components/ix-card-list.js.map +1 -1
  47. package/components/ix-category-filter.js +4 -4
  48. package/components/ix-category-filter.js.map +1 -1
  49. package/components/ix-checkbox-group.js +2 -2
  50. package/components/ix-checkbox.js +5 -4
  51. package/components/ix-checkbox.js.map +1 -1
  52. package/components/ix-chip.js +5 -5
  53. package/components/ix-chip.js.map +1 -1
  54. package/components/ix-content.js +3 -3
  55. package/components/ix-css-grid-item.js +1 -1
  56. package/components/ix-css-grid-item.js.map +1 -1
  57. package/components/ix-custom-field.js +1 -1
  58. package/components/ix-date-dropdown.js +13 -5
  59. package/components/ix-date-dropdown.js.map +1 -1
  60. package/components/ix-date-input.js +12 -13
  61. package/components/ix-date-input.js.map +1 -1
  62. package/components/ix-drawer.js +2 -2
  63. package/components/ix-dropdown-header.js +1 -1
  64. package/components/ix-dropdown-header.js.map +1 -1
  65. package/components/ix-dropdown-quick-actions.js +1 -1
  66. package/components/ix-empty-state.js +1 -1
  67. package/components/ix-empty-state.js.map +1 -1
  68. package/components/ix-event-list-item.js +4 -4
  69. package/components/ix-event-list.js +2 -2
  70. package/components/ix-expanding-search.js +10 -4
  71. package/components/ix-expanding-search.js.map +1 -1
  72. package/components/ix-flip-tile-content.js +1 -1
  73. package/components/ix-flip-tile.js +6 -5
  74. package/components/ix-flip-tile.js.map +1 -1
  75. package/components/ix-group.js +8 -8
  76. package/components/ix-group.js.map +1 -1
  77. package/components/ix-helper-text.js +1 -1
  78. package/components/ix-icon-toggle-button.js +1 -1
  79. package/components/ix-icon-toggle-button.js.map +1 -1
  80. package/components/ix-input-group.js +1 -1
  81. package/components/ix-input-group.js.map +1 -1
  82. package/components/ix-input.js +12 -7
  83. package/components/ix-input.js.map +1 -1
  84. package/components/ix-key-value-list.js +2 -2
  85. package/components/ix-key-value-list.js.map +1 -1
  86. package/components/ix-key-value.js +1 -1
  87. package/components/ix-key-value.js.map +1 -1
  88. package/components/ix-kpi.js +3 -3
  89. package/components/ix-kpi.js.map +1 -1
  90. package/components/ix-layout-auto.js +1 -1
  91. package/components/ix-link-button.js +3 -3
  92. package/components/ix-link-button.js.map +1 -1
  93. package/components/ix-map-navigation.js +4 -4
  94. package/components/ix-map-navigation.js.map +1 -1
  95. package/components/ix-menu-about-item.js +1 -1
  96. package/components/ix-menu-about-item.js.map +1 -1
  97. package/components/ix-menu-about-news.js +4 -4
  98. package/components/ix-menu-about-news.js.map +1 -1
  99. package/components/ix-menu-about.js +1 -1
  100. package/components/ix-menu-about.js.map +1 -1
  101. package/components/ix-menu-avatar.js +2 -2
  102. package/components/ix-menu-avatar.js.map +1 -1
  103. package/components/ix-menu-category.js +28 -13
  104. package/components/ix-menu-category.js.map +1 -1
  105. package/components/ix-menu-settings-item.js +1 -1
  106. package/components/ix-menu-settings-item.js.map +1 -1
  107. package/components/ix-menu.js +24 -16
  108. package/components/ix-menu.js.map +1 -1
  109. package/components/ix-message-bar.js +4 -2
  110. package/components/ix-message-bar.js.map +1 -1
  111. package/components/ix-modal-footer.js +1 -1
  112. package/components/ix-modal-loading.js +1 -1
  113. package/components/ix-modal.js +3 -3
  114. package/components/ix-modal.js.map +1 -1
  115. package/components/ix-number-input.js +14 -9
  116. package/components/ix-number-input.js.map +1 -1
  117. package/components/ix-pagination.js +8 -5
  118. package/components/ix-pagination.js.map +1 -1
  119. package/components/ix-pane-layout.js +1 -1
  120. package/components/ix-pill.js +19 -8
  121. package/components/ix-pill.js.map +1 -1
  122. package/components/ix-push-card.js +1 -1
  123. package/components/ix-push-card.js.map +1 -1
  124. package/components/ix-radio-group.js +2 -2
  125. package/components/ix-radio.js +6 -5
  126. package/components/ix-radio.js.map +1 -1
  127. package/components/ix-split-button-item.js +1 -1
  128. package/components/ix-split-button-item.js.map +1 -1
  129. package/components/ix-split-button.js +1 -1
  130. package/components/ix-split-button.js.map +1 -1
  131. package/components/ix-textarea.js +3 -3
  132. package/components/ix-textarea.js.map +1 -1
  133. package/components/ix-tile.js +4 -4
  134. package/components/ix-tile.js.map +1 -1
  135. package/components/ix-toast-container.js +10 -6
  136. package/components/ix-toast-container.js.map +1 -1
  137. package/components/ix-toggle-button.js +2 -2
  138. package/components/ix-toggle-button.js.map +1 -1
  139. package/components/ix-toggle.js +25 -5
  140. package/components/ix-toggle.js.map +1 -1
  141. package/components/ix-tree.js +330 -496
  142. package/components/ix-tree.js.map +1 -1
  143. package/components/ix-upload.js +3 -3
  144. package/components/ix-validation-tooltip.js +5 -2
  145. package/components/ix-validation-tooltip.js.map +1 -1
  146. package/components/ix-workflow-step.js +4 -3
  147. package/components/ix-workflow-step.js.map +1 -1
  148. package/components/ix-workflow-steps.js +1 -1
  149. package/components/ix-workflow-steps.js.map +1 -1
  150. package/components/layout-grid.js +2 -2
  151. package/components/make-ref.js.map +1 -1
  152. package/components/map-navigation-overlay.js +2 -2
  153. package/components/map-navigation-overlay.js.map +1 -1
  154. package/components/menu-avatar-item.js +1 -1
  155. package/components/menu-avatar-item.js.map +1 -1
  156. package/components/menu-expand-icon.js +1 -1
  157. package/components/menu-expand-icon.js.map +1 -1
  158. package/components/menu-item.js +3 -3
  159. package/components/menu-tabs-fc.js +10 -3
  160. package/components/menu-tabs-fc.js.map +1 -1
  161. package/components/modal-content.js +1 -1
  162. package/components/modal-header.js +1 -1
  163. package/components/modal.js +6 -0
  164. package/components/modal.js.map +1 -1
  165. package/components/row.js +1 -1
  166. package/components/select-item.js +1 -1
  167. package/components/select.js +95 -57
  168. package/components/select.js.map +1 -1
  169. package/components/shadow-dom.js.map +1 -1
  170. package/components/spinner.js +1 -1
  171. package/components/tabs.js +2 -2
  172. package/components/time-picker.js +1 -1
  173. package/components/time-picker.js.map +1 -1
  174. package/components/toast.js +2 -2
  175. package/components/toast.js.map +1 -1
  176. package/components/tooltip.js +2 -2
  177. package/components/tree-item.js +6 -5
  178. package/components/tree-item.js.map +1 -1
  179. package/components/validation.js +1 -7
  180. package/components/validation.js.map +1 -1
  181. package/dist/cjs/a11y-ae470f01.js.map +1 -1
  182. package/dist/cjs/{app-globals-3c9c6a50.js → app-globals-ca59f3ec.js} +2 -2
  183. package/dist/cjs/{app-globals-3c9c6a50.js.map → app-globals-ca59f3ec.js.map} +1 -1
  184. package/dist/cjs/core-js-b22adfab.js +26 -0
  185. package/dist/cjs/core-js-b22adfab.js.map +1 -0
  186. package/dist/cjs/{helper-text-util-3192e78f.js → helper-text-util-635a1877.js} +2 -2
  187. package/dist/cjs/{helper-text-util-3192e78f.js.map → helper-text-util-635a1877.js.map} +1 -1
  188. package/dist/cjs/{index-74904d8b.js → index-12d386cf.js} +6 -2
  189. package/dist/cjs/index-12d386cf.js.map +1 -0
  190. package/dist/cjs/{index-d2117dc0.js → index-b44a6617.js} +3 -1
  191. package/dist/cjs/index-b44a6617.js.map +1 -0
  192. package/dist/cjs/index.cjs.js +6 -2
  193. package/dist/cjs/index.cjs.js.map +1 -1
  194. package/dist/cjs/{index.es2017-0c2b80b6.js → index.es2017-805b5876.js} +3 -3
  195. package/dist/cjs/{index.es2017-0c2b80b6.js.map → index.es2017-805b5876.js.map} +1 -1
  196. package/dist/cjs/{input.util-1c2fa43d.js → input.util-dee6616a.js} +32 -11
  197. package/dist/cjs/input.util-dee6616a.js.map +1 -0
  198. package/dist/cjs/ix-application-header.cjs.entry.js +22 -13
  199. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  200. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
  201. package/dist/cjs/ix-application-switch-modal.cjs.entry.js.map +1 -1
  202. package/dist/cjs/ix-application.cjs.entry.js +7 -3
  203. package/dist/cjs/ix-application.cjs.entry.js.map +1 -1
  204. package/dist/cjs/ix-avatar_2.cjs.entry.js +1 -1
  205. package/dist/cjs/ix-avatar_2.cjs.entry.js.map +1 -1
  206. package/dist/cjs/ix-basic-navigation.cjs.entry.js +2 -2
  207. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  208. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
  209. package/dist/cjs/ix-button.cjs.entry.js +7 -2
  210. package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
  211. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +2 -2
  212. package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
  213. package/dist/cjs/ix-card-list.cjs.entry.js +6 -6
  214. package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -1
  215. package/dist/cjs/ix-card_2.cjs.entry.js +3 -3
  216. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
  217. package/dist/cjs/ix-category-filter.cjs.entry.js +4 -4
  218. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  219. package/dist/cjs/ix-checkbox-group.cjs.entry.js +3 -3
  220. package/dist/cjs/ix-checkbox.cjs.entry.js +6 -5
  221. package/dist/cjs/ix-checkbox.cjs.entry.js.map +1 -1
  222. package/dist/cjs/ix-chip.cjs.entry.js +5 -5
  223. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  224. package/dist/cjs/ix-col_4.cjs.entry.js +8 -8
  225. package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
  226. package/dist/cjs/ix-content.cjs.entry.js +3 -3
  227. package/dist/cjs/ix-css-grid-item.cjs.entry.js +1 -1
  228. package/dist/cjs/ix-css-grid-item.cjs.entry.js.map +1 -1
  229. package/dist/cjs/ix-custom-field.cjs.entry.js +2 -2
  230. package/dist/cjs/ix-date-dropdown.cjs.entry.js +9 -5
  231. package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
  232. package/dist/cjs/ix-date-input.cjs.entry.js +13 -13
  233. package/dist/cjs/ix-date-input.cjs.entry.js.map +1 -1
  234. package/dist/cjs/ix-divider.cjs.entry.js +1 -1
  235. package/dist/cjs/ix-drawer.cjs.entry.js +2 -2
  236. package/dist/cjs/ix-dropdown-header.cjs.entry.js +1 -1
  237. package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -1
  238. package/dist/cjs/ix-dropdown-item.cjs.entry.js +4 -4
  239. package/dist/cjs/ix-dropdown-item.cjs.entry.js.map +1 -1
  240. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
  241. package/dist/cjs/ix-dropdown.cjs.entry.js +2 -2
  242. package/dist/cjs/ix-empty-state.cjs.entry.js +1 -1
  243. package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
  244. package/dist/cjs/ix-event-list-item.cjs.entry.js +4 -4
  245. package/dist/cjs/ix-event-list.cjs.entry.js +2 -2
  246. package/dist/cjs/ix-expanding-search.cjs.entry.js +7 -4
  247. package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
  248. package/dist/cjs/ix-field-label_3.cjs.entry.js +8 -8
  249. package/dist/cjs/ix-field-label_3.cjs.entry.js.map +1 -1
  250. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +3 -3
  251. package/dist/cjs/ix-filter-chip_2.cjs.entry.js.map +1 -1
  252. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +1 -1
  253. package/dist/cjs/ix-flip-tile.cjs.entry.js +6 -5
  254. package/dist/cjs/ix-flip-tile.cjs.entry.js.map +1 -1
  255. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +3 -3
  256. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  257. package/dist/cjs/ix-group.cjs.entry.js +8 -8
  258. package/dist/cjs/ix-group.cjs.entry.js.map +1 -1
  259. package/dist/cjs/ix-helper-text.cjs.entry.js +4 -4
  260. package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -5
  261. package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
  262. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +1 -1
  263. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js.map +1 -1
  264. package/dist/cjs/{ix-icon.entry-e95ddded.js → ix-icon.entry-e33446e2.js} +2 -2
  265. package/dist/cjs/{ix-icon.entry-e95ddded.js.map → ix-icon.entry-e33446e2.js.map} +1 -1
  266. package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
  267. package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
  268. package/dist/cjs/ix-input.cjs.entry.js +15 -9
  269. package/dist/cjs/ix-input.cjs.entry.js.map +1 -1
  270. package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
  271. package/dist/cjs/ix-key-value-list.cjs.entry.js.map +1 -1
  272. package/dist/cjs/ix-key-value.cjs.entry.js +1 -1
  273. package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
  274. package/dist/cjs/ix-kpi.cjs.entry.js +3 -3
  275. package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
  276. package/dist/cjs/ix-layout-auto.cjs.entry.js +1 -1
  277. package/dist/cjs/ix-link-button.cjs.entry.js +3 -3
  278. package/dist/cjs/ix-link-button.cjs.entry.js.map +1 -1
  279. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +2 -2
  280. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js.map +1 -1
  281. package/dist/cjs/ix-map-navigation.cjs.entry.js +4 -4
  282. package/dist/cjs/ix-map-navigation.cjs.entry.js.map +1 -1
  283. package/dist/cjs/ix-menu-about-item.cjs.entry.js +1 -1
  284. package/dist/cjs/ix-menu-about-item.cjs.entry.js.map +1 -1
  285. package/dist/cjs/ix-menu-about-news.cjs.entry.js +4 -4
  286. package/dist/cjs/ix-menu-about-news.cjs.entry.js.map +1 -1
  287. package/dist/cjs/ix-menu-about.cjs.entry.js +2 -2
  288. package/dist/cjs/ix-menu-about.cjs.entry.js.map +1 -1
  289. package/dist/cjs/ix-menu-avatar.cjs.entry.js +2 -2
  290. package/dist/cjs/ix-menu-avatar.cjs.entry.js.map +1 -1
  291. package/dist/cjs/ix-menu-category.cjs.entry.js +28 -13
  292. package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -1
  293. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +1 -1
  294. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js.map +1 -1
  295. package/dist/cjs/ix-menu-item.cjs.entry.js +3 -3
  296. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +1 -1
  297. package/dist/cjs/ix-menu-settings-item.cjs.entry.js.map +1 -1
  298. package/dist/cjs/ix-menu-settings.cjs.entry.js +1 -1
  299. package/dist/cjs/ix-menu.cjs.entry.js +26 -18
  300. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  301. package/dist/cjs/ix-message-bar.cjs.entry.js +4 -2
  302. package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -1
  303. package/dist/cjs/ix-modal-content_2.cjs.entry.js +2 -2
  304. package/dist/cjs/ix-modal-footer.cjs.entry.js +1 -1
  305. package/dist/cjs/ix-modal-loading.cjs.entry.js +1 -1
  306. package/dist/cjs/ix-modal.cjs.entry.js +3 -3
  307. package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
  308. package/dist/cjs/ix-number-input.cjs.entry.js +17 -11
  309. package/dist/cjs/ix-number-input.cjs.entry.js.map +1 -1
  310. package/dist/cjs/ix-pagination.cjs.entry.js +8 -5
  311. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  312. package/dist/cjs/ix-pane-layout.cjs.entry.js +1 -1
  313. package/dist/cjs/ix-pill.cjs.entry.js +17 -7
  314. package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
  315. package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
  316. package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -1
  317. package/dist/cjs/ix-radio-group.cjs.entry.js +3 -3
  318. package/dist/cjs/ix-radio.cjs.entry.js +6 -5
  319. package/dist/cjs/ix-radio.cjs.entry.js.map +1 -1
  320. package/dist/cjs/ix-select.cjs.entry.js +93 -57
  321. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  322. package/dist/cjs/ix-split-button-item.cjs.entry.js +1 -1
  323. package/dist/cjs/ix-split-button-item.cjs.entry.js.map +1 -1
  324. package/dist/cjs/ix-split-button.cjs.entry.js +1 -1
  325. package/dist/cjs/ix-split-button.cjs.entry.js.map +1 -1
  326. package/dist/cjs/ix-tab-item_2.cjs.entry.js +2 -2
  327. package/dist/cjs/ix-textarea.cjs.entry.js +6 -5
  328. package/dist/cjs/ix-textarea.cjs.entry.js.map +1 -1
  329. package/dist/cjs/ix-tile.cjs.entry.js +4 -4
  330. package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
  331. package/dist/cjs/ix-time-picker.cjs.entry.js +2 -2
  332. package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
  333. package/dist/cjs/ix-toast-container.cjs.entry.js +10 -6
  334. package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
  335. package/dist/cjs/ix-toast.cjs.entry.js +2 -2
  336. package/dist/cjs/ix-toast.cjs.entry.js.map +1 -1
  337. package/dist/cjs/ix-toggle-button.cjs.entry.js +2 -2
  338. package/dist/cjs/ix-toggle-button.cjs.entry.js.map +1 -1
  339. package/dist/cjs/ix-toggle.cjs.entry.js +17 -3
  340. package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
  341. package/dist/cjs/ix-tree-item.cjs.entry.js +6 -5
  342. package/dist/cjs/ix-tree-item.cjs.entry.js.map +1 -1
  343. package/dist/cjs/ix-tree.cjs.entry.js +330 -489
  344. package/dist/cjs/ix-tree.cjs.entry.js.map +1 -1
  345. package/dist/cjs/ix-upload.cjs.entry.js +3 -3
  346. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +5 -2
  347. package/dist/cjs/ix-validation-tooltip.cjs.entry.js.map +1 -1
  348. package/dist/cjs/ix-workflow-step.cjs.entry.js +4 -3
  349. package/dist/cjs/ix-workflow-step.cjs.entry.js.map +1 -1
  350. package/dist/cjs/ix-workflow-steps.cjs.entry.js +1 -1
  351. package/dist/cjs/ix-workflow-steps.cjs.entry.js.map +1 -1
  352. package/dist/cjs/loader.cjs.js +3 -3
  353. package/dist/cjs/make-ref-499e1e41.js.map +1 -1
  354. package/dist/cjs/{menu-tabs-fc-eb899b0d.js → menu-tabs-fc-a9f928f5.js} +11 -4
  355. package/dist/cjs/menu-tabs-fc-a9f928f5.js.map +1 -0
  356. package/dist/cjs/{modal-a49409aa.js → modal-923c83a6.js} +7 -1
  357. package/dist/cjs/modal-923c83a6.js.map +1 -0
  358. package/dist/cjs/{setup-86b7d543.js → setup-49660b91.js} +13 -3
  359. package/dist/cjs/setup-49660b91.js.map +1 -0
  360. package/dist/cjs/shadow-dom-454acc38.js.map +1 -1
  361. package/dist/cjs/siemens-ix.cjs.js +3 -3
  362. package/dist/cjs/{validation-1e3dd5ee.js → validation-cb884b13.js} +2 -8
  363. package/dist/cjs/validation-cb884b13.js.map +1 -0
  364. package/dist/collection/components/action-card/action-card.js +3 -3
  365. package/dist/collection/components/application/application.js +12 -8
  366. package/dist/collection/components/application/application.js.map +1 -1
  367. package/dist/collection/components/application-header/application-header.js +39 -13
  368. package/dist/collection/components/application-header/application-header.js.map +1 -1
  369. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +3 -3
  370. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js.map +1 -1
  371. package/dist/collection/components/application-header/test/application-header.ct.js +2 -2
  372. package/dist/collection/components/application-header/test/application-header.ct.js.map +1 -1
  373. package/dist/collection/components/avatar/avatar.js +4 -4
  374. package/dist/collection/components/avatar/avatar.js.map +1 -1
  375. package/dist/collection/components/basic-navigation/basic-navigation.js +5 -5
  376. package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
  377. package/dist/collection/components/blind/blind.js +3 -3
  378. package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +4 -4
  379. package/dist/collection/components/breadcrumb-item/breadcrumb-item.js.map +1 -1
  380. package/dist/collection/components/button/button-component.js +2 -0
  381. package/dist/collection/components/button/button-component.js.map +1 -0
  382. package/dist/collection/components/button/button.js +8 -3
  383. package/dist/collection/components/button/button.js.map +1 -1
  384. package/dist/collection/components/button/test/button.spec.js.map +1 -1
  385. package/dist/collection/components/card/card.css +7 -0
  386. package/dist/collection/components/card-content/card-content.css +13 -5
  387. package/dist/collection/components/card-content/card-content.js +1 -1
  388. package/dist/collection/components/card-content/card-content.js.map +1 -1
  389. package/dist/collection/components/card-list/card-list.css +1 -0
  390. package/dist/collection/components/card-list/card-list.js +7 -7
  391. package/dist/collection/components/card-list/card-list.js.map +1 -1
  392. package/dist/collection/components/card-title/card-title.css +2 -2
  393. package/dist/collection/components/card-title/card-title.js +1 -1
  394. package/dist/collection/components/category-filter/category-filter.css +3 -3
  395. package/dist/collection/components/category-filter/category-filter.js +9 -9
  396. package/dist/collection/components/category-filter/filter-state.js +4 -0
  397. package/dist/collection/components/category-filter/filter-state.js.map +1 -1
  398. package/dist/collection/components/checkbox/checkbox.css +216 -91
  399. package/dist/collection/components/checkbox/checkbox.js +7 -6
  400. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  401. package/dist/collection/components/checkbox/tests/checkbox.ct.js +20 -0
  402. package/dist/collection/components/checkbox/tests/checkbox.ct.js.map +1 -1
  403. package/dist/collection/components/checkbox-group/checkbox-group.js +8 -8
  404. package/dist/collection/components/chip/chip.js +10 -10
  405. package/dist/collection/components/chip/chip.js.map +1 -1
  406. package/dist/collection/components/chip/test/chip.ct.js +4 -2
  407. package/dist/collection/components/chip/test/chip.ct.js.map +1 -1
  408. package/dist/collection/components/col/col.js +4 -4
  409. package/dist/collection/components/content/content.js +3 -3
  410. package/dist/collection/components/content-header/content-header.js +2 -2
  411. package/dist/collection/components/css-grid/css-grid-item.js +2 -2
  412. package/dist/collection/components/css-grid/css-grid-item.js.map +1 -1
  413. package/dist/collection/components/css-grid/css-grid.js +1 -1
  414. package/dist/collection/components/custom-field/custom-field.js +8 -8
  415. package/dist/collection/components/date-dropdown/date-dropdown.js +88 -6
  416. package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
  417. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js +1 -0
  418. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js.map +1 -1
  419. package/dist/collection/components/date-input/date-input.css +6 -6
  420. package/dist/collection/components/date-input/date-input.js +27 -26
  421. package/dist/collection/components/date-input/date-input.js.map +1 -1
  422. package/dist/collection/components/date-picker/date-picker.js +9 -9
  423. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  424. package/dist/collection/components/date-time-card/date-time-card.js +1 -1
  425. package/dist/collection/components/datetime-picker/datetime-picker.js +8 -8
  426. package/dist/collection/components/divider/divider.js +1 -1
  427. package/dist/collection/components/drawer/drawer.js +3 -3
  428. package/dist/collection/components/dropdown/dropdown.js +7 -7
  429. package/dist/collection/components/dropdown/test/dropdown.ct.js.map +1 -1
  430. package/dist/collection/components/dropdown-button/dropdown-button.js +3 -3
  431. package/dist/collection/components/dropdown-header/dropdown-header.js +3 -3
  432. package/dist/collection/components/dropdown-header/dropdown-header.js.map +1 -1
  433. package/dist/collection/components/dropdown-item/dropdown-item.css +0 -3
  434. package/dist/collection/components/dropdown-item/dropdown-item.js +5 -5
  435. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  436. package/dist/collection/components/empty-state/empty-state.js +7 -7
  437. package/dist/collection/components/empty-state/empty-state.js.map +1 -1
  438. package/dist/collection/components/event-list/event-list.js +2 -2
  439. package/dist/collection/components/event-list-item/event-list-item.js +6 -6
  440. package/dist/collection/components/expanding-search/expanding-search.js +67 -4
  441. package/dist/collection/components/expanding-search/expanding-search.js.map +1 -1
  442. package/dist/collection/components/expanding-search/test/expanding-search.spec.js +5 -4
  443. package/dist/collection/components/expanding-search/test/expanding-search.spec.js.map +1 -1
  444. package/dist/collection/components/field-label/field-label.js +15 -7
  445. package/dist/collection/components/field-label/field-label.js.map +1 -1
  446. package/dist/collection/components/field-label/tests/field-label.ct.js +2 -2
  447. package/dist/collection/components/field-label/tests/field-label.ct.js.map +1 -1
  448. package/dist/collection/components/field-wrapper/field-wrapper.js +19 -11
  449. package/dist/collection/components/field-wrapper/field-wrapper.js.map +1 -1
  450. package/dist/collection/components/filter-chip/filter-chip.js +2 -2
  451. package/dist/collection/components/filter-chip/filter-chip.js.map +1 -1
  452. package/dist/collection/components/flip-tile/flip-tile.js +8 -7
  453. package/dist/collection/components/flip-tile/flip-tile.js.map +1 -1
  454. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  455. package/dist/collection/components/group/group-context-menu.js +1 -1
  456. package/dist/collection/components/group/group-context-menu.js.map +1 -1
  457. package/dist/collection/components/group/group.js +11 -11
  458. package/dist/collection/components/group/group.js.map +1 -1
  459. package/dist/collection/components/group-item/group-item.js +6 -6
  460. package/dist/collection/components/helper-text/helper-text.js +7 -7
  461. package/dist/collection/components/icon-button/icon-button.js +18 -15
  462. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  463. package/dist/collection/components/icon-button/test/icon-button.spec.js +16 -33
  464. package/dist/collection/components/icon-button/test/icon-button.spec.js.map +1 -1
  465. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +3 -3
  466. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js.map +1 -1
  467. package/dist/collection/components/input/input.css +6 -6
  468. package/dist/collection/components/input/input.fc.js +4 -8
  469. package/dist/collection/components/input/input.fc.js.map +1 -1
  470. package/dist/collection/components/input/input.js +27 -20
  471. package/dist/collection/components/input/input.js.map +1 -1
  472. package/dist/collection/components/input/input.util.js +25 -1
  473. package/dist/collection/components/input/input.util.js.map +1 -1
  474. package/dist/collection/components/input/number-input.css +3 -3
  475. package/dist/collection/components/input/number-input.js +31 -24
  476. package/dist/collection/components/input/number-input.js.map +1 -1
  477. package/dist/collection/components/input/tests/validation.ct.js +21 -0
  478. package/dist/collection/components/input/tests/validation.ct.js.map +1 -0
  479. package/dist/collection/components/input/textarea.css +3 -3
  480. package/dist/collection/components/input/textarea.js +18 -18
  481. package/dist/collection/components/input/textarea.js.map +1 -1
  482. package/dist/collection/components/input-group/input-group.js +1 -1
  483. package/dist/collection/components/input-group/input-group.js.map +1 -1
  484. package/dist/collection/components/key-value/key-value.js +5 -5
  485. package/dist/collection/components/key-value/key-value.js.map +1 -1
  486. package/dist/collection/components/key-value-list/key-value-list.js +4 -3
  487. package/dist/collection/components/key-value-list/key-value-list.js.map +1 -1
  488. package/dist/collection/components/kpi/kpi.js +9 -9
  489. package/dist/collection/components/kpi/kpi.js.map +1 -1
  490. package/dist/collection/components/layout-auto/layout-auto.js +1 -1
  491. package/dist/collection/components/layout-grid/layout-grid.js +2 -2
  492. package/dist/collection/components/link-button/link-button.js +5 -5
  493. package/dist/collection/components/link-button/link-button.js.map +1 -1
  494. package/dist/collection/components/map-navigation/map-navigation.js +11 -11
  495. package/dist/collection/components/map-navigation/map-navigation.js.map +1 -1
  496. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +10 -10
  497. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js.map +1 -1
  498. package/dist/collection/components/menu/menu-expand-icon.js +3 -3
  499. package/dist/collection/components/menu/menu-expand-icon.js.map +1 -1
  500. package/dist/collection/components/menu/menu.js +44 -19
  501. package/dist/collection/components/menu/menu.js.map +1 -1
  502. package/dist/collection/components/menu-about/menu-about.js +3 -3
  503. package/dist/collection/components/menu-about/menu-about.js.map +1 -1
  504. package/dist/collection/components/menu-about-item/menu-about-item.js +3 -3
  505. package/dist/collection/components/menu-about-item/menu-about-item.js.map +1 -1
  506. package/dist/collection/components/menu-about-news/menu-about-news.js +8 -8
  507. package/dist/collection/components/menu-about-news/menu-about-news.js.map +1 -1
  508. package/dist/collection/components/menu-avatar/menu-avatar.js +10 -10
  509. package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
  510. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +5 -5
  511. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js.map +1 -1
  512. package/dist/collection/components/menu-category/menu-category.js +34 -19
  513. package/dist/collection/components/menu-category/menu-category.js.map +1 -1
  514. package/dist/collection/components/menu-item/menu-item.js +7 -7
  515. package/dist/collection/components/menu-settings/menu-settings.js +3 -3
  516. package/dist/collection/components/menu-settings/menu-settings.js.map +1 -1
  517. package/dist/collection/components/menu-settings-item/menu-settings-item.js +3 -3
  518. package/dist/collection/components/menu-settings-item/menu-settings-item.js.map +1 -1
  519. package/dist/collection/components/message-bar/message-bar.js +4 -2
  520. package/dist/collection/components/message-bar/message-bar.js.map +1 -1
  521. package/dist/collection/components/message-bar/test/message-bar.spec.js.map +1 -1
  522. package/dist/collection/components/modal/modal.js +6 -6
  523. package/dist/collection/components/modal/modal.js.map +1 -1
  524. package/dist/collection/components/modal/test/modal.ct.js +57 -65
  525. package/dist/collection/components/modal/test/modal.ct.js.map +1 -1
  526. package/dist/collection/components/modal-content/modal-content.js +1 -1
  527. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  528. package/dist/collection/components/modal-header/modal-header.js +3 -3
  529. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  530. package/dist/collection/components/pagination/pagination.js +10 -6
  531. package/dist/collection/components/pagination/pagination.js.map +1 -1
  532. package/dist/collection/components/pagination/test/pagination.ct.js +1 -1
  533. package/dist/collection/components/pagination/test/pagination.ct.js.map +1 -1
  534. package/dist/collection/components/pagination/test/pagination.spec.js.map +1 -1
  535. package/dist/collection/components/pane/pane.js +2 -2
  536. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  537. package/dist/collection/components/pill/pill.css +14 -1
  538. package/dist/collection/components/pill/pill.js +25 -10
  539. package/dist/collection/components/pill/pill.js.map +1 -1
  540. package/dist/collection/components/pill/tests/pill.ct.js +23 -0
  541. package/dist/collection/components/pill/tests/pill.ct.js.map +1 -0
  542. package/dist/collection/components/push-card/push-card.css +8 -1
  543. package/dist/collection/components/push-card/push-card.js +4 -4
  544. package/dist/collection/components/radio/radio.css +0 -16
  545. package/dist/collection/components/radio/radio.js +9 -8
  546. package/dist/collection/components/radio/radio.js.map +1 -1
  547. package/dist/collection/components/radio/test/radio.ct.js +19 -0
  548. package/dist/collection/components/radio/test/radio.ct.js.map +1 -1
  549. package/dist/collection/components/radio-group/radio-group.js +10 -10
  550. package/dist/collection/components/row/row.js +1 -1
  551. package/dist/collection/components/select/select.css +3 -0
  552. package/dist/collection/components/select/select.js +142 -66
  553. package/dist/collection/components/select/select.js.map +1 -1
  554. package/dist/collection/components/select/test/select-keyboard.ct.js +379 -0
  555. package/dist/collection/components/select/test/select-keyboard.ct.js.map +1 -0
  556. package/dist/collection/components/select/test/select.ct.js +128 -308
  557. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  558. package/dist/collection/components/select-item/select-item.js +3 -3
  559. package/dist/collection/components/select-item/test/select-item.spec.js +3 -6
  560. package/dist/collection/components/select-item/test/select-item.spec.js.map +1 -1
  561. package/dist/collection/components/slider/slider.js +2 -2
  562. package/dist/collection/components/spinner/spinner.js +1 -1
  563. package/dist/collection/components/split-button/split-button.js +3 -3
  564. package/dist/collection/components/split-button/split-button.js.map +1 -1
  565. package/dist/collection/components/split-button-item/split-button-item.js +5 -5
  566. package/dist/collection/components/split-button-item/split-button-item.js.map +1 -1
  567. package/dist/collection/components/tab-item/tab-item.js +1 -1
  568. package/dist/collection/components/tabs/tabs.js +2 -2
  569. package/dist/collection/components/tile/tile.js +4 -4
  570. package/dist/collection/components/tile/tile.js.map +1 -1
  571. package/dist/collection/components/time-picker/time-picker.css +3 -3
  572. package/dist/collection/components/time-picker/time-picker.js +4 -4
  573. package/dist/collection/components/toast/toast-container.js +10 -6
  574. package/dist/collection/components/toast/toast-container.js.map +1 -1
  575. package/dist/collection/components/toast/toast.js +8 -8
  576. package/dist/collection/components/toast/toast.js.map +1 -1
  577. package/dist/collection/components/toggle/toggle.css +376 -161
  578. package/dist/collection/components/toggle/toggle.js +19 -5
  579. package/dist/collection/components/toggle/toggle.js.map +1 -1
  580. package/dist/collection/components/toggle-button/toggle-button.js +4 -4
  581. package/dist/collection/components/toggle-button/toggle-button.js.map +1 -1
  582. package/dist/collection/components/tooltip/tooltip.js +4 -4
  583. package/dist/collection/components/tree/test/tree.ct.js.map +1 -1
  584. package/dist/collection/components/tree/tree.js +7 -4
  585. package/dist/collection/components/tree/tree.js.map +1 -1
  586. package/dist/collection/components/tree-item/tree-item.js +8 -7
  587. package/dist/collection/components/tree-item/tree-item.js.map +1 -1
  588. package/dist/collection/components/typography/typography.js +3 -3
  589. package/dist/collection/components/upload/upload.js +4 -4
  590. package/dist/collection/components/utils/a11y.js.map +1 -1
  591. package/dist/collection/components/utils/app-switch/index.js +4 -0
  592. package/dist/collection/components/utils/app-switch/index.js.map +1 -1
  593. package/dist/collection/components/utils/input/validation.js +1 -7
  594. package/dist/collection/components/utils/input/validation.js.map +1 -1
  595. package/dist/collection/components/utils/lazy-list/index.js +2 -0
  596. package/dist/collection/components/utils/lazy-list/index.js.map +1 -0
  597. package/dist/collection/components/utils/lazy-list/lazy.js +343 -0
  598. package/dist/collection/components/utils/lazy-list/lazy.js.map +1 -0
  599. package/dist/collection/components/utils/make-ref.js.map +1 -1
  600. package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js +5 -1
  601. package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js.map +1 -1
  602. package/dist/collection/components/utils/menu-tabs/menu-tabs-utils.js +4 -1
  603. package/dist/collection/components/utils/menu-tabs/menu-tabs-utils.js.map +1 -1
  604. package/dist/collection/components/utils/modal/modal.js +6 -0
  605. package/dist/collection/components/utils/modal/modal.js.map +1 -1
  606. package/dist/collection/components/utils/shadow-dom.js.map +1 -1
  607. package/dist/collection/components/validation-tooltip/validation-tooltip.js +7 -4
  608. package/dist/collection/components/validation-tooltip/validation-tooltip.js.map +1 -1
  609. package/dist/collection/components/workflow-step/workflow-step.js +4 -3
  610. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  611. package/dist/collection/components/workflow-steps/test/workflow-steps.spec.js.map +1 -1
  612. package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
  613. package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
  614. package/dist/collection/setup.ct.js +18 -0
  615. package/dist/collection/setup.ct.js.map +1 -0
  616. package/dist/collection/setup.js +11 -1
  617. package/dist/collection/setup.js.map +1 -1
  618. package/dist/collection/tests/application-header/application-header.e2e.js.map +1 -1
  619. package/dist/collection/tests/button/button.e2e.js.map +1 -1
  620. package/dist/collection/tests/card/card.e2e.js +6 -0
  621. package/dist/collection/tests/card/card.e2e.js.map +1 -1
  622. package/dist/collection/tests/date-dropdown/date-dropdown.e2e.js +3 -3
  623. package/dist/collection/tests/date-dropdown/date-dropdown.e2e.js.map +1 -1
  624. package/dist/collection/tests/date-input/date-input.e2e.js +17 -0
  625. package/dist/collection/tests/date-input/date-input.e2e.js.map +1 -0
  626. package/dist/collection/tests/expanding-search/expanding-search.e2e.js +1 -1
  627. package/dist/collection/tests/expanding-search/expanding-search.e2e.js.map +1 -1
  628. package/dist/collection/tests/html-tags/html-tags.e2e.js +17 -0
  629. package/dist/collection/tests/html-tags/html-tags.e2e.js.map +1 -0
  630. package/dist/collection/tests/icon-toggle-button/toggle-button.e2e.js.map +1 -1
  631. package/dist/collection/tests/input-common/input-common.e2e.js +27 -0
  632. package/dist/collection/tests/input-common/input-common.e2e.js.map +1 -0
  633. package/dist/collection/tests/menu/menu.e2e.js +11 -0
  634. package/dist/collection/tests/menu/menu.e2e.js.map +1 -1
  635. package/dist/collection/tests/push-card/push-card.e2e.js +6 -0
  636. package/dist/collection/tests/push-card/push-card.e2e.js.map +1 -1
  637. package/dist/collection/tests/toggle-button/toggle-button.e2e.js.map +1 -1
  638. package/dist/collection/tests/upload/upload.e2e.js +1 -1
  639. package/dist/collection/tests/upload/upload.e2e.js.map +1 -1
  640. package/dist/collection/tests/utils/test/page.js +37 -5
  641. package/dist/collection/tests/utils/test/page.js.map +1 -1
  642. package/dist/collection/tests/workflow-steps/workflow-steps.e2e.js +4 -3
  643. package/dist/collection/tests/workflow-steps/workflow-steps.e2e.js.map +1 -1
  644. package/dist/esm/a11y-b10c12e0.js.map +1 -1
  645. package/dist/esm/app-globals-c85c7809.js +7 -0
  646. package/dist/esm/{app-globals-ae0ca705.js.map → app-globals-c85c7809.js.map} +1 -1
  647. package/dist/esm/{core-js-78b486a8.js → core-js-4a847feb.js} +2 -2
  648. package/dist/esm/{core-js-78b486a8.js.map → core-js-4a847feb.js.map} +1 -1
  649. package/dist/esm/{helper-text-util-10896253.js → helper-text-util-e47b864d.js} +2 -2
  650. package/dist/esm/{helper-text-util-10896253.js.map → helper-text-util-e47b864d.js.map} +1 -1
  651. package/dist/esm/{index-ad2af369.js → index-2b76ea55.js} +3 -2
  652. package/dist/esm/index-2b76ea55.js.map +1 -0
  653. package/dist/esm/{index-60d17930.js → index-f8425403.js} +6 -2
  654. package/dist/esm/index-f8425403.js.map +1 -0
  655. package/dist/esm/{index.es2017-93ac816c.js → index.es2017-4e6fdf77.js} +3 -3
  656. package/dist/esm/{index.es2017-93ac816c.js.map → index.es2017-4e6fdf77.js.map} +1 -1
  657. package/dist/esm/index.js +7 -3
  658. package/dist/esm/index.js.map +1 -1
  659. package/dist/esm/{input.util-715860e3.js → input.util-deca1217.js} +32 -12
  660. package/dist/esm/input.util-deca1217.js.map +1 -0
  661. package/dist/esm/ix-application-header.entry.js +22 -13
  662. package/dist/esm/ix-application-header.entry.js.map +1 -1
  663. package/dist/esm/ix-application-switch-modal.entry.js +2 -2
  664. package/dist/esm/ix-application-switch-modal.entry.js.map +1 -1
  665. package/dist/esm/ix-application.entry.js +7 -3
  666. package/dist/esm/ix-application.entry.js.map +1 -1
  667. package/dist/esm/ix-avatar_2.entry.js +1 -1
  668. package/dist/esm/ix-avatar_2.entry.js.map +1 -1
  669. package/dist/esm/ix-basic-navigation.entry.js +2 -2
  670. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  671. package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
  672. package/dist/esm/ix-button.entry.js +7 -2
  673. package/dist/esm/ix-button.entry.js.map +1 -1
  674. package/dist/esm/ix-card-accordion_2.entry.js +2 -2
  675. package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
  676. package/dist/esm/ix-card-list.entry.js +6 -6
  677. package/dist/esm/ix-card-list.entry.js.map +1 -1
  678. package/dist/esm/ix-card_2.entry.js +3 -3
  679. package/dist/esm/ix-card_2.entry.js.map +1 -1
  680. package/dist/esm/ix-category-filter.entry.js +4 -4
  681. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  682. package/dist/esm/ix-checkbox-group.entry.js +3 -3
  683. package/dist/esm/ix-checkbox.entry.js +6 -5
  684. package/dist/esm/ix-checkbox.entry.js.map +1 -1
  685. package/dist/esm/ix-chip.entry.js +5 -5
  686. package/dist/esm/ix-chip.entry.js.map +1 -1
  687. package/dist/esm/ix-col_4.entry.js +8 -8
  688. package/dist/esm/ix-col_4.entry.js.map +1 -1
  689. package/dist/esm/ix-content.entry.js +3 -3
  690. package/dist/esm/ix-css-grid-item.entry.js +1 -1
  691. package/dist/esm/ix-css-grid-item.entry.js.map +1 -1
  692. package/dist/esm/ix-custom-field.entry.js +2 -2
  693. package/dist/esm/ix-date-dropdown.entry.js +9 -5
  694. package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
  695. package/dist/esm/ix-date-input.entry.js +13 -13
  696. package/dist/esm/ix-date-input.entry.js.map +1 -1
  697. package/dist/esm/ix-divider.entry.js +1 -1
  698. package/dist/esm/ix-drawer.entry.js +2 -2
  699. package/dist/esm/ix-dropdown-header.entry.js +1 -1
  700. package/dist/esm/ix-dropdown-header.entry.js.map +1 -1
  701. package/dist/esm/ix-dropdown-item.entry.js +4 -4
  702. package/dist/esm/ix-dropdown-item.entry.js.map +1 -1
  703. package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
  704. package/dist/esm/ix-dropdown.entry.js +2 -2
  705. package/dist/esm/ix-empty-state.entry.js +1 -1
  706. package/dist/esm/ix-empty-state.entry.js.map +1 -1
  707. package/dist/esm/ix-event-list-item.entry.js +4 -4
  708. package/dist/esm/ix-event-list.entry.js +2 -2
  709. package/dist/esm/ix-expanding-search.entry.js +7 -4
  710. package/dist/esm/ix-expanding-search.entry.js.map +1 -1
  711. package/dist/esm/ix-field-label_3.entry.js +8 -8
  712. package/dist/esm/ix-field-label_3.entry.js.map +1 -1
  713. package/dist/esm/ix-filter-chip_2.entry.js +3 -3
  714. package/dist/esm/ix-filter-chip_2.entry.js.map +1 -1
  715. package/dist/esm/ix-flip-tile-content.entry.js +1 -1
  716. package/dist/esm/ix-flip-tile.entry.js +6 -5
  717. package/dist/esm/ix-flip-tile.entry.js.map +1 -1
  718. package/dist/esm/ix-group-context-menu_2.entry.js +3 -3
  719. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  720. package/dist/esm/ix-group.entry.js +8 -8
  721. package/dist/esm/ix-group.entry.js.map +1 -1
  722. package/dist/esm/ix-helper-text.entry.js +4 -4
  723. package/dist/esm/ix-icon-button_2.entry.js +5 -5
  724. package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
  725. package/dist/esm/ix-icon-toggle-button.entry.js +1 -1
  726. package/dist/esm/ix-icon-toggle-button.entry.js.map +1 -1
  727. package/dist/esm/{ix-icon.entry-621b700a.js → ix-icon.entry-f5f7c268.js} +2 -2
  728. package/dist/esm/{ix-icon.entry-621b700a.js.map → ix-icon.entry-f5f7c268.js.map} +1 -1
  729. package/dist/esm/ix-input-group.entry.js +1 -1
  730. package/dist/esm/ix-input-group.entry.js.map +1 -1
  731. package/dist/esm/ix-input.entry.js +15 -9
  732. package/dist/esm/ix-input.entry.js.map +1 -1
  733. package/dist/esm/ix-key-value-list.entry.js +2 -2
  734. package/dist/esm/ix-key-value-list.entry.js.map +1 -1
  735. package/dist/esm/ix-key-value.entry.js +1 -1
  736. package/dist/esm/ix-key-value.entry.js.map +1 -1
  737. package/dist/esm/ix-kpi.entry.js +3 -3
  738. package/dist/esm/ix-kpi.entry.js.map +1 -1
  739. package/dist/esm/ix-layout-auto.entry.js +1 -1
  740. package/dist/esm/ix-link-button.entry.js +3 -3
  741. package/dist/esm/ix-link-button.entry.js.map +1 -1
  742. package/dist/esm/ix-map-navigation-overlay.entry.js +2 -2
  743. package/dist/esm/ix-map-navigation-overlay.entry.js.map +1 -1
  744. package/dist/esm/ix-map-navigation.entry.js +4 -4
  745. package/dist/esm/ix-map-navigation.entry.js.map +1 -1
  746. package/dist/esm/ix-menu-about-item.entry.js +1 -1
  747. package/dist/esm/ix-menu-about-item.entry.js.map +1 -1
  748. package/dist/esm/ix-menu-about-news.entry.js +4 -4
  749. package/dist/esm/ix-menu-about-news.entry.js.map +1 -1
  750. package/dist/esm/ix-menu-about.entry.js +2 -2
  751. package/dist/esm/ix-menu-about.entry.js.map +1 -1
  752. package/dist/esm/ix-menu-avatar.entry.js +2 -2
  753. package/dist/esm/ix-menu-avatar.entry.js.map +1 -1
  754. package/dist/esm/ix-menu-category.entry.js +28 -13
  755. package/dist/esm/ix-menu-category.entry.js.map +1 -1
  756. package/dist/esm/ix-menu-expand-icon.entry.js +1 -1
  757. package/dist/esm/ix-menu-expand-icon.entry.js.map +1 -1
  758. package/dist/esm/ix-menu-item.entry.js +3 -3
  759. package/dist/esm/ix-menu-settings-item.entry.js +1 -1
  760. package/dist/esm/ix-menu-settings-item.entry.js.map +1 -1
  761. package/dist/esm/ix-menu-settings.entry.js +1 -1
  762. package/dist/esm/ix-menu.entry.js +26 -18
  763. package/dist/esm/ix-menu.entry.js.map +1 -1
  764. package/dist/esm/ix-message-bar.entry.js +4 -2
  765. package/dist/esm/ix-message-bar.entry.js.map +1 -1
  766. package/dist/esm/ix-modal-content_2.entry.js +2 -2
  767. package/dist/esm/ix-modal-footer.entry.js +1 -1
  768. package/dist/esm/ix-modal-loading.entry.js +1 -1
  769. package/dist/esm/ix-modal.entry.js +3 -3
  770. package/dist/esm/ix-modal.entry.js.map +1 -1
  771. package/dist/esm/ix-number-input.entry.js +17 -11
  772. package/dist/esm/ix-number-input.entry.js.map +1 -1
  773. package/dist/esm/ix-pagination.entry.js +8 -5
  774. package/dist/esm/ix-pagination.entry.js.map +1 -1
  775. package/dist/esm/ix-pane-layout.entry.js +1 -1
  776. package/dist/esm/ix-pill.entry.js +17 -7
  777. package/dist/esm/ix-pill.entry.js.map +1 -1
  778. package/dist/esm/ix-push-card.entry.js +1 -1
  779. package/dist/esm/ix-push-card.entry.js.map +1 -1
  780. package/dist/esm/ix-radio-group.entry.js +3 -3
  781. package/dist/esm/ix-radio.entry.js +6 -5
  782. package/dist/esm/ix-radio.entry.js.map +1 -1
  783. package/dist/esm/ix-select.entry.js +93 -57
  784. package/dist/esm/ix-select.entry.js.map +1 -1
  785. package/dist/esm/ix-split-button-item.entry.js +1 -1
  786. package/dist/esm/ix-split-button-item.entry.js.map +1 -1
  787. package/dist/esm/ix-split-button.entry.js +1 -1
  788. package/dist/esm/ix-split-button.entry.js.map +1 -1
  789. package/dist/esm/ix-tab-item_2.entry.js +2 -2
  790. package/dist/esm/ix-textarea.entry.js +6 -5
  791. package/dist/esm/ix-textarea.entry.js.map +1 -1
  792. package/dist/esm/ix-tile.entry.js +4 -4
  793. package/dist/esm/ix-tile.entry.js.map +1 -1
  794. package/dist/esm/ix-time-picker.entry.js +2 -2
  795. package/dist/esm/ix-time-picker.entry.js.map +1 -1
  796. package/dist/esm/ix-toast-container.entry.js +10 -6
  797. package/dist/esm/ix-toast-container.entry.js.map +1 -1
  798. package/dist/esm/ix-toast.entry.js +2 -2
  799. package/dist/esm/ix-toast.entry.js.map +1 -1
  800. package/dist/esm/ix-toggle-button.entry.js +2 -2
  801. package/dist/esm/ix-toggle-button.entry.js.map +1 -1
  802. package/dist/esm/ix-toggle.entry.js +18 -4
  803. package/dist/esm/ix-toggle.entry.js.map +1 -1
  804. package/dist/esm/ix-tree-item.entry.js +6 -5
  805. package/dist/esm/ix-tree-item.entry.js.map +1 -1
  806. package/dist/esm/ix-tree.entry.js +330 -489
  807. package/dist/esm/ix-tree.entry.js.map +1 -1
  808. package/dist/esm/ix-upload.entry.js +3 -3
  809. package/dist/esm/ix-validation-tooltip.entry.js +5 -2
  810. package/dist/esm/ix-validation-tooltip.entry.js.map +1 -1
  811. package/dist/esm/ix-workflow-step.entry.js +4 -3
  812. package/dist/esm/ix-workflow-step.entry.js.map +1 -1
  813. package/dist/esm/ix-workflow-steps.entry.js +1 -1
  814. package/dist/esm/ix-workflow-steps.entry.js.map +1 -1
  815. package/dist/esm/loader.js +3 -3
  816. package/dist/esm/make-ref-4b76e9b5.js.map +1 -1
  817. package/dist/esm/{menu-tabs-fc-563a74d9.js → menu-tabs-fc-43b4155d.js} +11 -4
  818. package/dist/esm/menu-tabs-fc-43b4155d.js.map +1 -0
  819. package/dist/esm/{modal-101eef04.js → modal-4b3f8800.js} +7 -1
  820. package/dist/{cjs/modal-a49409aa.js.map → esm/modal-4b3f8800.js.map} +1 -1
  821. package/dist/esm/{setup-d88021f8.js → setup-3a3f57db.js} +13 -3
  822. package/dist/esm/setup-3a3f57db.js.map +1 -0
  823. package/dist/esm/shadow-dom-cc0bc152.js.map +1 -1
  824. package/dist/esm/siemens-ix.js +3 -3
  825. package/dist/esm/{validation-45aa490c.js → validation-54137eaa.js} +2 -8
  826. package/dist/esm/validation-54137eaa.js.map +1 -0
  827. package/dist/siemens-ix/index.esm.js +1 -1
  828. package/dist/siemens-ix/index.esm.js.map +1 -1
  829. package/dist/siemens-ix/{p-bd4c1a44.entry.js → p-03136fc0.entry.js} +2 -2
  830. package/dist/siemens-ix/p-03136fc0.entry.js.map +1 -0
  831. package/dist/siemens-ix/p-060d5c58.entry.js +2 -0
  832. package/dist/siemens-ix/p-060d5c58.entry.js.map +1 -0
  833. package/dist/siemens-ix/{p-475ac85f.entry.js → p-08168e53.entry.js} +2 -2
  834. package/dist/siemens-ix/{p-475ac85f.entry.js.map → p-08168e53.entry.js.map} +1 -1
  835. package/dist/siemens-ix/p-088ad2da.entry.js +2 -0
  836. package/dist/siemens-ix/p-088ad2da.entry.js.map +1 -0
  837. package/dist/siemens-ix/p-0c8a6f43.entry.js +2 -0
  838. package/dist/siemens-ix/{p-0be907d4.entry.js.map → p-0c8a6f43.entry.js.map} +1 -1
  839. package/dist/siemens-ix/{p-8457d846.entry.js → p-0cb18eff.entry.js} +2 -2
  840. package/dist/siemens-ix/p-0cb18eff.entry.js.map +1 -0
  841. package/dist/siemens-ix/{p-2a34a0c2.entry.js → p-0f44ccd1.entry.js} +2 -2
  842. package/dist/siemens-ix/{p-2a34a0c2.entry.js.map → p-0f44ccd1.entry.js.map} +1 -1
  843. package/dist/siemens-ix/p-14d038c6.entry.js +2 -0
  844. package/dist/siemens-ix/p-14d038c6.entry.js.map +1 -0
  845. package/dist/siemens-ix/{p-6722bcff.entry.js → p-16055d56.entry.js} +2 -2
  846. package/dist/siemens-ix/{p-6722bcff.entry.js.map → p-16055d56.entry.js.map} +1 -1
  847. package/dist/siemens-ix/p-177268f7.entry.js +2 -0
  848. package/dist/siemens-ix/p-177268f7.entry.js.map +1 -0
  849. package/dist/siemens-ix/{p-f97a15c4.js → p-186a1f30.js} +2 -2
  850. package/dist/siemens-ix/p-186a1f30.js.map +1 -0
  851. package/dist/siemens-ix/{p-175599e4.entry.js → p-19d1c463.entry.js} +2 -2
  852. package/dist/siemens-ix/{p-2d3a6d29.entry.js → p-1bff0a1f.entry.js} +2 -2
  853. package/dist/siemens-ix/{p-8da941cd.entry.js → p-1c74bd8b.entry.js} +2 -2
  854. package/dist/siemens-ix/{p-8da941cd.entry.js.map → p-1c74bd8b.entry.js.map} +1 -1
  855. package/dist/siemens-ix/{p-0c89cbcc.entry.js → p-1d545640.entry.js} +2 -2
  856. package/dist/siemens-ix/p-1d545640.entry.js.map +1 -0
  857. package/dist/siemens-ix/p-21a8aeaf.js +2 -0
  858. package/dist/siemens-ix/p-21a8aeaf.js.map +1 -0
  859. package/dist/siemens-ix/p-227b0ddd.entry.js +2 -0
  860. package/dist/siemens-ix/p-227b0ddd.entry.js.map +1 -0
  861. package/dist/siemens-ix/{p-63dd987f.entry.js → p-22fc61c9.entry.js} +2 -2
  862. package/dist/siemens-ix/p-22fc61c9.entry.js.map +1 -0
  863. package/dist/siemens-ix/{p-ede52531.entry.js → p-2396b68a.entry.js} +2 -2
  864. package/dist/siemens-ix/p-2396b68a.entry.js.map +1 -0
  865. package/dist/siemens-ix/{p-b2a06e46.entry.js → p-27befdd7.entry.js} +2 -2
  866. package/dist/siemens-ix/p-27befdd7.entry.js.map +1 -0
  867. package/dist/siemens-ix/{p-286feb7e.entry.js → p-297cd68a.entry.js} +2 -2
  868. package/dist/siemens-ix/{p-6bae4e9b.entry.js → p-2f29e208.entry.js} +2 -2
  869. package/dist/siemens-ix/{p-6bae4e9b.entry.js.map → p-2f29e208.entry.js.map} +1 -1
  870. package/dist/siemens-ix/p-309b82ec.entry.js +2 -0
  871. package/dist/siemens-ix/{p-4ec6ddfb.entry.js → p-30a24560.entry.js} +2 -2
  872. package/dist/siemens-ix/p-30a24560.entry.js.map +1 -0
  873. package/dist/siemens-ix/{p-37af7117.entry.js → p-327a1655.entry.js} +2 -2
  874. package/dist/siemens-ix/p-327a1655.entry.js.map +1 -0
  875. package/dist/siemens-ix/p-345e1c73.js.map +1 -1
  876. package/dist/siemens-ix/{p-6624076c.entry.js → p-353f081a.entry.js} +2 -2
  877. package/dist/siemens-ix/p-37eadb06.entry.js +2 -0
  878. package/dist/siemens-ix/{p-ffca56d6.entry.js.map → p-37eadb06.entry.js.map} +1 -1
  879. package/dist/siemens-ix/{p-dfb181c1.entry.js → p-37f1d0ed.entry.js} +2 -2
  880. package/dist/siemens-ix/p-37f1d0ed.entry.js.map +1 -0
  881. package/dist/siemens-ix/{p-5c1b136c.entry.js → p-388b9368.entry.js} +2 -2
  882. package/dist/siemens-ix/{p-5c1b136c.entry.js.map → p-388b9368.entry.js.map} +1 -1
  883. package/dist/siemens-ix/p-38d9d569.js +2 -0
  884. package/dist/siemens-ix/p-38d9d569.js.map +1 -0
  885. package/dist/siemens-ix/{p-d929f23d.entry.js → p-3fd2bacd.entry.js} +2 -2
  886. package/dist/siemens-ix/{p-d929f23d.entry.js.map → p-3fd2bacd.entry.js.map} +1 -1
  887. package/dist/siemens-ix/{p-e9a37b3f.entry.js → p-40da22b1.entry.js} +2 -2
  888. package/dist/siemens-ix/p-40da22b1.entry.js.map +1 -0
  889. package/dist/siemens-ix/{p-4cc79e8f.entry.js → p-44425604.entry.js} +2 -2
  890. package/dist/siemens-ix/p-44fa005c.js +4 -0
  891. package/dist/siemens-ix/{p-a2200306.js.map → p-44fa005c.js.map} +1 -1
  892. package/dist/siemens-ix/{p-05839c77.entry.js → p-48d6554c.entry.js} +2 -2
  893. package/dist/siemens-ix/p-49ca9211.entry.js +2 -0
  894. package/dist/siemens-ix/{p-f39048a2.entry.js.map → p-49ca9211.entry.js.map} +1 -1
  895. package/dist/siemens-ix/{p-0dbc970e.entry.js → p-4cb35508.entry.js} +2 -2
  896. package/dist/siemens-ix/p-4e51d716.entry.js.map +1 -1
  897. package/dist/siemens-ix/p-559cdf73.js +2 -0
  898. package/dist/siemens-ix/p-559cdf73.js.map +1 -0
  899. package/dist/siemens-ix/p-5767345b.entry.js +2 -0
  900. package/dist/siemens-ix/p-5b86301e.js +2 -0
  901. package/dist/siemens-ix/p-5b86301e.js.map +1 -0
  902. package/dist/siemens-ix/p-5fe87e71.js.map +1 -1
  903. package/dist/siemens-ix/{p-cbfca958.entry.js → p-617b3d78.entry.js} +2 -2
  904. package/dist/siemens-ix/{p-654f91f2.entry.js → p-623297ef.entry.js} +2 -2
  905. package/dist/siemens-ix/p-623297ef.entry.js.map +1 -0
  906. package/dist/siemens-ix/p-637df471.entry.js +2 -0
  907. package/dist/siemens-ix/p-637df471.entry.js.map +1 -0
  908. package/dist/siemens-ix/p-6635972c.entry.js +2 -0
  909. package/dist/siemens-ix/p-6635972c.entry.js.map +1 -0
  910. package/dist/siemens-ix/{p-48718dc1.entry.js → p-67209151.entry.js} +2 -2
  911. package/dist/siemens-ix/p-67209151.entry.js.map +1 -0
  912. package/dist/siemens-ix/{p-1c5ebea3.entry.js → p-676a4bd0.entry.js} +2 -2
  913. package/dist/siemens-ix/{p-1c5ebea3.entry.js.map → p-676a4bd0.entry.js.map} +1 -1
  914. package/dist/siemens-ix/{p-3205726a.entry.js → p-6af64cf4.entry.js} +2 -2
  915. package/dist/siemens-ix/{p-3205726a.entry.js.map → p-6af64cf4.entry.js.map} +1 -1
  916. package/dist/siemens-ix/{p-392b4297.entry.js → p-6b84501c.entry.js} +2 -2
  917. package/dist/siemens-ix/{p-392b4297.entry.js.map → p-6b84501c.entry.js.map} +1 -1
  918. package/dist/siemens-ix/{p-484aa96b.js → p-6ccf39dd.js} +2 -2
  919. package/dist/siemens-ix/p-6ccf39dd.js.map +1 -0
  920. package/dist/siemens-ix/{p-66178fe6.entry.js → p-6f3b0a66.entry.js} +2 -2
  921. package/dist/siemens-ix/{p-66178fe6.entry.js.map → p-6f3b0a66.entry.js.map} +1 -1
  922. package/dist/siemens-ix/{p-edc1d44a.entry.js → p-6f970ba4.entry.js} +2 -2
  923. package/dist/siemens-ix/p-6f970ba4.entry.js.map +1 -0
  924. package/dist/siemens-ix/p-71a4590c.entry.js +2 -0
  925. package/dist/siemens-ix/p-71a4590c.entry.js.map +1 -0
  926. package/dist/siemens-ix/{p-1f6df0c6.js → p-738c2d1f.js} +2 -2
  927. package/dist/siemens-ix/{p-be860121.entry.js → p-790709c5.entry.js} +2 -2
  928. package/dist/siemens-ix/p-790709c5.entry.js.map +1 -0
  929. package/dist/siemens-ix/{p-68bb2a09.entry.js → p-7b65535a.entry.js} +2 -2
  930. package/dist/siemens-ix/p-7b65535a.entry.js.map +1 -0
  931. package/dist/siemens-ix/{p-e7ac5657.entry.js → p-7e91e565.entry.js} +2 -2
  932. package/dist/siemens-ix/p-7e91e565.entry.js.map +1 -0
  933. package/dist/siemens-ix/p-8039ec6b.entry.js +2 -0
  934. package/dist/siemens-ix/p-8039ec6b.entry.js.map +1 -0
  935. package/dist/siemens-ix/p-8964b303.entry.js +2 -0
  936. package/dist/siemens-ix/p-8964b303.entry.js.map +1 -0
  937. package/dist/siemens-ix/p-89734934.js +2 -0
  938. package/dist/siemens-ix/{p-50096707.js.map → p-89734934.js.map} +1 -1
  939. package/dist/siemens-ix/{p-b74a8cdc.entry.js → p-8a6d403c.entry.js} +2 -2
  940. package/dist/siemens-ix/p-8a6d403c.entry.js.map +1 -0
  941. package/dist/siemens-ix/{p-a3364116.entry.js → p-8df3318f.entry.js} +2 -2
  942. package/dist/siemens-ix/p-8df3318f.entry.js.map +1 -0
  943. package/dist/siemens-ix/p-8efd9181.entry.js +2 -0
  944. package/dist/siemens-ix/p-8efd9181.entry.js.map +1 -0
  945. package/dist/siemens-ix/{p-d0b38ae2.entry.js → p-9213afda.entry.js} +2 -2
  946. package/dist/siemens-ix/{p-d0b38ae2.entry.js.map → p-9213afda.entry.js.map} +1 -1
  947. package/dist/siemens-ix/{p-f35386ec.js → p-93d4d3c9.js} +2 -2
  948. package/dist/siemens-ix/p-93fab3c7.entry.js +2 -0
  949. package/dist/siemens-ix/{p-c236cf18.entry.js.map → p-93fab3c7.entry.js.map} +1 -1
  950. package/dist/siemens-ix/{p-b62f8f62.entry.js → p-988ca463.entry.js} +2 -2
  951. package/dist/siemens-ix/{p-83da8f11.entry.js → p-9c63869a.entry.js} +2 -2
  952. package/dist/siemens-ix/p-9dd344d4.entry.js +2 -0
  953. package/dist/siemens-ix/{p-2643f32a.entry.js.map → p-9dd344d4.entry.js.map} +1 -1
  954. package/dist/siemens-ix/{p-815699d1.entry.js → p-9df683f8.entry.js} +2 -2
  955. package/dist/siemens-ix/p-9df683f8.entry.js.map +1 -0
  956. package/dist/siemens-ix/p-a36ee7b7.entry.js +2 -0
  957. package/dist/siemens-ix/p-a36ee7b7.entry.js.map +1 -0
  958. package/dist/siemens-ix/{p-fe87443e.js → p-a6af13b0.js} +2 -2
  959. package/dist/siemens-ix/p-aac089f0.entry.js +2 -0
  960. package/dist/siemens-ix/p-aac089f0.entry.js.map +1 -0
  961. package/dist/siemens-ix/p-ac9bb8be.entry.js +2 -0
  962. package/dist/siemens-ix/{p-6a4a2064.entry.js → p-af565741.entry.js} +2 -2
  963. package/dist/siemens-ix/p-af565741.entry.js.map +1 -0
  964. package/dist/siemens-ix/p-b00f255c.entry.js +2 -0
  965. package/dist/siemens-ix/{p-a36ad7c7.entry.js → p-b8b7aa8e.entry.js} +2 -2
  966. package/dist/siemens-ix/{p-9948574f.entry.js → p-ba1aeecb.entry.js} +2 -2
  967. package/dist/siemens-ix/p-ba1aeecb.entry.js.map +1 -0
  968. package/dist/siemens-ix/{p-df7060ae.entry.js → p-ba60132f.entry.js} +2 -2
  969. package/dist/siemens-ix/{p-54efe56b.entry.js → p-bb33784f.entry.js} +2 -2
  970. package/dist/siemens-ix/{p-2d7ea063.entry.js → p-bb99415f.entry.js} +2 -2
  971. package/dist/siemens-ix/p-bb99415f.entry.js.map +1 -0
  972. package/dist/siemens-ix/{p-2db63240.entry.js → p-bc05aafe.entry.js} +2 -2
  973. package/dist/siemens-ix/p-bc05aafe.entry.js.map +1 -0
  974. package/dist/siemens-ix/{p-d19b52bd.entry.js → p-bf01468d.entry.js} +2 -2
  975. package/dist/siemens-ix/{p-8c2b62c3.entry.js → p-c272dbbd.entry.js} +2 -2
  976. package/dist/siemens-ix/p-c272dbbd.entry.js.map +1 -0
  977. package/dist/siemens-ix/p-c4b75f38.entry.js +2 -0
  978. package/dist/siemens-ix/{p-caf49e00.entry.js → p-c7c8e52b.entry.js} +2 -2
  979. package/dist/siemens-ix/{p-57e60a06.entry.js → p-ca95654f.entry.js} +2 -2
  980. package/dist/siemens-ix/{p-57e60a06.entry.js.map → p-ca95654f.entry.js.map} +1 -1
  981. package/dist/siemens-ix/p-ce563a48.js.map +1 -1
  982. package/dist/siemens-ix/{p-3f367d44.entry.js → p-d489e0b3.entry.js} +2 -2
  983. package/dist/siemens-ix/{p-3f367d44.entry.js.map → p-d489e0b3.entry.js.map} +1 -1
  984. package/dist/siemens-ix/p-d70eb520.entry.js +2 -0
  985. package/dist/siemens-ix/p-d70eb520.entry.js.map +1 -0
  986. package/dist/siemens-ix/p-d8c93983.entry.js +2 -0
  987. package/dist/siemens-ix/p-d8c93983.entry.js.map +1 -0
  988. package/dist/siemens-ix/{p-9d323232.entry.js → p-d9b3c267.entry.js} +2 -2
  989. package/dist/siemens-ix/{p-9d323232.entry.js.map → p-d9b3c267.entry.js.map} +1 -1
  990. package/dist/siemens-ix/p-dcc76d47.entry.js +2 -0
  991. package/dist/siemens-ix/p-dcc76d47.entry.js.map +1 -0
  992. package/dist/siemens-ix/{p-0f2bf43d.entry.js → p-e09995d4.entry.js} +2 -2
  993. package/dist/siemens-ix/{p-2b226409.entry.js → p-e1e48602.entry.js} +2 -2
  994. package/dist/siemens-ix/p-e1e48602.entry.js.map +1 -0
  995. package/dist/siemens-ix/p-ebfaeb95.entry.js +2 -0
  996. package/dist/siemens-ix/{p-c6796e64.entry.js.map → p-ebfaeb95.entry.js.map} +1 -1
  997. package/dist/siemens-ix/{p-4c9b7548.entry.js → p-f023b24b.entry.js} +2 -2
  998. package/dist/siemens-ix/p-f023b24b.entry.js.map +1 -0
  999. package/dist/siemens-ix/p-f5ccceb6.entry.js +2 -0
  1000. package/dist/siemens-ix/p-f5ccceb6.entry.js.map +1 -0
  1001. package/dist/siemens-ix/p-f815f96e.entry.js +2 -0
  1002. package/dist/siemens-ix/p-f815f96e.entry.js.map +1 -0
  1003. package/dist/siemens-ix/p-fe158b99.js +2 -0
  1004. package/dist/siemens-ix/p-fe158b99.js.map +1 -0
  1005. package/dist/siemens-ix/siemens-ix-core.css +1 -1
  1006. package/dist/siemens-ix/siemens-ix.css +3 -3
  1007. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  1008. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  1009. package/dist/types/components/application/application.d.ts +4 -4
  1010. package/dist/types/components/application-header/application-header.d.ts +8 -2
  1011. package/dist/types/components/application-header/application-switch-modal/application-switch-modal.d.ts +1 -1
  1012. package/dist/types/components/application-sidebar/events.d.ts +2 -2
  1013. package/dist/types/components/basic-navigation/basic-navigation.d.ts +3 -3
  1014. package/dist/types/components/blind/blind.d.ts +1 -1
  1015. package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +2 -2
  1016. package/dist/types/components/button/base-button.d.ts +1 -1
  1017. package/dist/types/components/button/button-component.d.ts +31 -0
  1018. package/dist/types/components/button/button.d.ts +3 -1
  1019. package/dist/types/components/card-accordion/card-accordion.d.ts +1 -1
  1020. package/dist/types/components/category-filter/category-filter.d.ts +1 -1
  1021. package/dist/types/components/chip/chip.d.ts +2 -2
  1022. package/dist/types/components/date-dropdown/date-dropdown.d.ts +19 -1
  1023. package/dist/types/components/date-input/date-input.d.ts +3 -1
  1024. package/dist/types/components/date-picker/date-picker.d.ts +2 -2
  1025. package/dist/types/components/dropdown/dropdown-controller.d.ts +2 -2
  1026. package/dist/types/components/dropdown/dropdown.d.ts +1 -1
  1027. package/dist/types/components/dropdown-header/dropdown-header.d.ts +1 -1
  1028. package/dist/types/components/empty-state/empty-state.d.ts +3 -3
  1029. package/dist/types/components/expanding-search/expanding-search.d.ts +15 -1
  1030. package/dist/types/components/field-label/field-label.d.ts +1 -1
  1031. package/dist/types/components/field-wrapper/field-wrapper.d.ts +1 -1
  1032. package/dist/types/components/field-wrapper/helper-text-util.d.ts +1 -1
  1033. package/dist/types/components/filter-chip/filter-chip.d.ts +1 -1
  1034. package/dist/types/components/flip-tile/flip-tile.d.ts +2 -2
  1035. package/dist/types/components/group/group.d.ts +1 -1
  1036. package/dist/types/components/icon-button/icon-button.d.ts +4 -4
  1037. package/dist/types/components/icon-toggle-button/icon-toggle-button.d.ts +1 -1
  1038. package/dist/types/components/input/input.d.ts +5 -1
  1039. package/dist/types/components/input/input.util.d.ts +2 -0
  1040. package/dist/types/components/input/number-input.d.ts +5 -1
  1041. package/dist/types/components/input/tests/validation.ct.d.ts +1 -0
  1042. package/dist/types/components/input-group/input-group.d.ts +1 -1
  1043. package/dist/types/components/key-value/key-value.d.ts +2 -2
  1044. package/dist/types/components/kpi/kpi.d.ts +3 -3
  1045. package/dist/types/components/link-button/link-button.d.ts +1 -1
  1046. package/dist/types/components/map-navigation/map-navigation.d.ts +2 -2
  1047. package/dist/types/components/map-navigation-overlay/map-navigation-overlay.d.ts +4 -4
  1048. package/dist/types/components/menu/menu-expand-icon.d.ts +1 -1
  1049. package/dist/types/components/menu/menu.d.ts +12 -5
  1050. package/dist/types/components/menu-about/menu-about.d.ts +1 -1
  1051. package/dist/types/components/menu-about-item/menu-about-item.d.ts +1 -1
  1052. package/dist/types/components/menu-about-news/menu-about-news.d.ts +2 -2
  1053. package/dist/types/components/menu-avatar/menu-avatar.d.ts +4 -4
  1054. package/dist/types/components/menu-avatar-item/menu-avatar-item.d.ts +3 -3
  1055. package/dist/types/components/menu-category/menu-category.d.ts +6 -6
  1056. package/dist/types/components/menu-settings/menu-settings.d.ts +1 -1
  1057. package/dist/types/components/menu-settings-item/menu-settings-item.d.ts +1 -1
  1058. package/dist/types/components/message-bar/message-bar.d.ts +2 -2
  1059. package/dist/types/components/modal/modal.d.ts +2 -2
  1060. package/dist/types/components/modal/test/modal.ct.d.ts +2 -1
  1061. package/dist/types/components/pane/pane.d.ts +1 -1
  1062. package/dist/types/components/pill/pill.d.ts +6 -2
  1063. package/dist/types/components/pill/tests/pill.ct.d.ts +1 -0
  1064. package/dist/types/components/select/select.d.ts +25 -9
  1065. package/dist/types/components/select/test/select-keyboard.ct.d.ts +1 -0
  1066. package/dist/types/components/select-item/select-item.d.ts +1 -1
  1067. package/dist/types/components/slider/slider.d.ts +1 -1
  1068. package/dist/types/components/split-button/split-button.d.ts +3 -3
  1069. package/dist/types/components/split-button-item/split-button-item.d.ts +2 -2
  1070. package/dist/types/components/tabs/tabs.d.ts +1 -1
  1071. package/dist/types/components/time-picker/time-picker.d.ts +1 -1
  1072. package/dist/types/components/toast/toast.d.ts +3 -3
  1073. package/dist/types/components/toggle-button/toggle-button.d.ts +1 -1
  1074. package/dist/types/components/tree/tree.d.ts +1 -1
  1075. package/dist/types/components/utils/a11y.d.ts +1 -1
  1076. package/dist/types/components/utils/application-layout/context.d.ts +3 -3
  1077. package/dist/types/components/utils/application-layout/service.d.ts +1 -1
  1078. package/dist/types/components/utils/context.d.ts +2 -2
  1079. package/dist/types/components/utils/find-element.d.ts +1 -1
  1080. package/dist/types/components/utils/lazy-list/index.d.ts +2 -0
  1081. package/dist/types/components/utils/lazy-list/lazy.d.ts +51 -0
  1082. package/dist/types/components/utils/make-ref.d.ts +1 -1
  1083. package/dist/types/components/utils/menu-service/menu-service.d.ts +1 -1
  1084. package/dist/types/components/utils/modal/message.d.ts +5 -5
  1085. package/dist/types/components/utils/shadow-dom.d.ts +2 -2
  1086. package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +7 -7
  1087. package/dist/types/components/workflow-steps/workflow-steps.d.ts +1 -1
  1088. package/dist/types/components.d.ts +156 -62
  1089. package/dist/types/setup.ct.d.ts +1 -0
  1090. package/dist/types/setup.d.ts +1 -0
  1091. package/dist/types/tests/utils/test/index.d.ts +1 -1
  1092. package/dist/types/tests/utils/test/page.d.ts +12 -2
  1093. package/hydrate/index.js +879 -867
  1094. package/package.json +3 -5
  1095. package/scss/components/form/_input.scss +4 -1
  1096. package/dist/cjs/_commonjsHelpers-0192c5b3.js +0 -17
  1097. package/dist/cjs/_commonjsHelpers-0192c5b3.js.map +0 -1
  1098. package/dist/cjs/core-js-2fc351ee.js +0 -26
  1099. package/dist/cjs/core-js-2fc351ee.js.map +0 -1
  1100. package/dist/cjs/index-74904d8b.js.map +0 -1
  1101. package/dist/cjs/index-d2117dc0.js.map +0 -1
  1102. package/dist/cjs/input.util-1c2fa43d.js.map +0 -1
  1103. package/dist/cjs/menu-tabs-fc-eb899b0d.js.map +0 -1
  1104. package/dist/cjs/setup-86b7d543.js.map +0 -1
  1105. package/dist/cjs/validation-1e3dd5ee.js.map +0 -1
  1106. package/dist/esm/_commonjsHelpers-e557d4a5.js +0 -13
  1107. package/dist/esm/_commonjsHelpers-e557d4a5.js.map +0 -1
  1108. package/dist/esm/app-globals-ae0ca705.js +0 -7
  1109. package/dist/esm/index-60d17930.js.map +0 -1
  1110. package/dist/esm/index-ad2af369.js.map +0 -1
  1111. package/dist/esm/input.util-715860e3.js.map +0 -1
  1112. package/dist/esm/menu-tabs-fc-563a74d9.js.map +0 -1
  1113. package/dist/esm/modal-101eef04.js.map +0 -1
  1114. package/dist/esm/setup-d88021f8.js.map +0 -1
  1115. package/dist/esm/validation-45aa490c.js.map +0 -1
  1116. package/dist/siemens-ix/p-044c2a7b.entry.js +0 -2
  1117. package/dist/siemens-ix/p-044c2a7b.entry.js.map +0 -1
  1118. package/dist/siemens-ix/p-08463669.entry.js +0 -2
  1119. package/dist/siemens-ix/p-08463669.entry.js.map +0 -1
  1120. package/dist/siemens-ix/p-0be907d4.entry.js +0 -2
  1121. package/dist/siemens-ix/p-0c89cbcc.entry.js.map +0 -1
  1122. package/dist/siemens-ix/p-0f0e7e14.entry.js +0 -2
  1123. package/dist/siemens-ix/p-0f0e7e14.entry.js.map +0 -1
  1124. package/dist/siemens-ix/p-23a4b81f.js +0 -2
  1125. package/dist/siemens-ix/p-23a4b81f.js.map +0 -1
  1126. package/dist/siemens-ix/p-2643f32a.entry.js +0 -2
  1127. package/dist/siemens-ix/p-2b226409.entry.js.map +0 -1
  1128. package/dist/siemens-ix/p-2b367b12.entry.js +0 -2
  1129. package/dist/siemens-ix/p-2b367b12.entry.js.map +0 -1
  1130. package/dist/siemens-ix/p-2b9c5f59.entry.js +0 -2
  1131. package/dist/siemens-ix/p-2d7ea063.entry.js.map +0 -1
  1132. package/dist/siemens-ix/p-2db63240.entry.js.map +0 -1
  1133. package/dist/siemens-ix/p-37af7117.entry.js.map +0 -1
  1134. package/dist/siemens-ix/p-40dc610f.entry.js +0 -2
  1135. package/dist/siemens-ix/p-40dc610f.entry.js.map +0 -1
  1136. package/dist/siemens-ix/p-424e8092.entry.js +0 -2
  1137. package/dist/siemens-ix/p-424e8092.entry.js.map +0 -1
  1138. package/dist/siemens-ix/p-45840cb9.js +0 -2
  1139. package/dist/siemens-ix/p-4624a772.entry.js +0 -2
  1140. package/dist/siemens-ix/p-4624a772.entry.js.map +0 -1
  1141. package/dist/siemens-ix/p-484aa96b.js.map +0 -1
  1142. package/dist/siemens-ix/p-48718dc1.entry.js.map +0 -1
  1143. package/dist/siemens-ix/p-4a631d9c.entry.js +0 -2
  1144. package/dist/siemens-ix/p-4a631d9c.entry.js.map +0 -1
  1145. package/dist/siemens-ix/p-4a9330a5.entry.js +0 -2
  1146. package/dist/siemens-ix/p-4a9330a5.entry.js.map +0 -1
  1147. package/dist/siemens-ix/p-4c9b7548.entry.js.map +0 -1
  1148. package/dist/siemens-ix/p-4ec6ddfb.entry.js.map +0 -1
  1149. package/dist/siemens-ix/p-50096707.js +0 -2
  1150. package/dist/siemens-ix/p-52928e21.entry.js +0 -2
  1151. package/dist/siemens-ix/p-52928e21.entry.js.map +0 -1
  1152. package/dist/siemens-ix/p-5682e985.js +0 -2
  1153. package/dist/siemens-ix/p-5682e985.js.map +0 -1
  1154. package/dist/siemens-ix/p-5db5a0b5.entry.js +0 -2
  1155. package/dist/siemens-ix/p-5db5a0b5.entry.js.map +0 -1
  1156. package/dist/siemens-ix/p-63dd987f.entry.js.map +0 -1
  1157. package/dist/siemens-ix/p-654f91f2.entry.js.map +0 -1
  1158. package/dist/siemens-ix/p-66559451.entry.js +0 -2
  1159. package/dist/siemens-ix/p-68bb2a09.entry.js.map +0 -1
  1160. package/dist/siemens-ix/p-6a4a2064.entry.js.map +0 -1
  1161. package/dist/siemens-ix/p-6e3f1de3.entry.js +0 -2
  1162. package/dist/siemens-ix/p-6e3f1de3.entry.js.map +0 -1
  1163. package/dist/siemens-ix/p-792e1c52.entry.js +0 -2
  1164. package/dist/siemens-ix/p-792e1c52.entry.js.map +0 -1
  1165. package/dist/siemens-ix/p-79bb0d39.js +0 -2
  1166. package/dist/siemens-ix/p-79bb0d39.js.map +0 -1
  1167. package/dist/siemens-ix/p-7aa07d9b.entry.js +0 -2
  1168. package/dist/siemens-ix/p-7af324e9.entry.js +0 -2
  1169. package/dist/siemens-ix/p-7af324e9.entry.js.map +0 -1
  1170. package/dist/siemens-ix/p-815699d1.entry.js.map +0 -1
  1171. package/dist/siemens-ix/p-8457d846.entry.js.map +0 -1
  1172. package/dist/siemens-ix/p-857f99c8.entry.js +0 -2
  1173. package/dist/siemens-ix/p-857f99c8.entry.js.map +0 -1
  1174. package/dist/siemens-ix/p-8c2b62c3.entry.js.map +0 -1
  1175. package/dist/siemens-ix/p-9948574f.entry.js.map +0 -1
  1176. package/dist/siemens-ix/p-9fe2759f.entry.js +0 -2
  1177. package/dist/siemens-ix/p-9fe2759f.entry.js.map +0 -1
  1178. package/dist/siemens-ix/p-a2200306.js +0 -4
  1179. package/dist/siemens-ix/p-a3364116.entry.js.map +0 -1
  1180. package/dist/siemens-ix/p-a427e6a2.js +0 -2
  1181. package/dist/siemens-ix/p-a427e6a2.js.map +0 -1
  1182. package/dist/siemens-ix/p-a61ed462.entry.js +0 -2
  1183. package/dist/siemens-ix/p-a61ed462.entry.js.map +0 -1
  1184. package/dist/siemens-ix/p-b2a06e46.entry.js.map +0 -1
  1185. package/dist/siemens-ix/p-b74a8cdc.entry.js.map +0 -1
  1186. package/dist/siemens-ix/p-bd4c1a44.entry.js.map +0 -1
  1187. package/dist/siemens-ix/p-bded112a.entry.js +0 -2
  1188. package/dist/siemens-ix/p-bded112a.entry.js.map +0 -1
  1189. package/dist/siemens-ix/p-be860121.entry.js.map +0 -1
  1190. package/dist/siemens-ix/p-c236cf18.entry.js +0 -2
  1191. package/dist/siemens-ix/p-c6796e64.entry.js +0 -2
  1192. package/dist/siemens-ix/p-d01f05cf.entry.js +0 -2
  1193. package/dist/siemens-ix/p-d7aa00d6.js +0 -2
  1194. package/dist/siemens-ix/p-d7aa00d6.js.map +0 -1
  1195. package/dist/siemens-ix/p-dfb181c1.entry.js.map +0 -1
  1196. package/dist/siemens-ix/p-e7ac5657.entry.js.map +0 -1
  1197. package/dist/siemens-ix/p-e9a37b3f.entry.js.map +0 -1
  1198. package/dist/siemens-ix/p-edc1d44a.entry.js.map +0 -1
  1199. package/dist/siemens-ix/p-ede52531.entry.js.map +0 -1
  1200. package/dist/siemens-ix/p-f39048a2.entry.js +0 -2
  1201. package/dist/siemens-ix/p-f7618d1d.entry.js +0 -2
  1202. package/dist/siemens-ix/p-f7618d1d.entry.js.map +0 -1
  1203. package/dist/siemens-ix/p-f97a15c4.js.map +0 -1
  1204. package/dist/siemens-ix/p-ffca56d6.entry.js +0 -2
  1205. /package/dist/siemens-ix/{p-175599e4.entry.js.map → p-19d1c463.entry.js.map} +0 -0
  1206. /package/dist/siemens-ix/{p-2d3a6d29.entry.js.map → p-1bff0a1f.entry.js.map} +0 -0
  1207. /package/dist/siemens-ix/{p-286feb7e.entry.js.map → p-297cd68a.entry.js.map} +0 -0
  1208. /package/dist/siemens-ix/{p-2b9c5f59.entry.js.map → p-309b82ec.entry.js.map} +0 -0
  1209. /package/dist/siemens-ix/{p-6624076c.entry.js.map → p-353f081a.entry.js.map} +0 -0
  1210. /package/dist/siemens-ix/{p-4cc79e8f.entry.js.map → p-44425604.entry.js.map} +0 -0
  1211. /package/dist/siemens-ix/{p-05839c77.entry.js.map → p-48d6554c.entry.js.map} +0 -0
  1212. /package/dist/siemens-ix/{p-0dbc970e.entry.js.map → p-4cb35508.entry.js.map} +0 -0
  1213. /package/dist/siemens-ix/{p-45840cb9.js.map → p-5767345b.entry.js.map} +0 -0
  1214. /package/dist/siemens-ix/{p-cbfca958.entry.js.map → p-617b3d78.entry.js.map} +0 -0
  1215. /package/dist/siemens-ix/{p-1f6df0c6.js.map → p-738c2d1f.js.map} +0 -0
  1216. /package/dist/siemens-ix/{p-f35386ec.js.map → p-93d4d3c9.js.map} +0 -0
  1217. /package/dist/siemens-ix/{p-b62f8f62.entry.js.map → p-988ca463.entry.js.map} +0 -0
  1218. /package/dist/siemens-ix/{p-83da8f11.entry.js.map → p-9c63869a.entry.js.map} +0 -0
  1219. /package/dist/siemens-ix/{p-fe87443e.js.map → p-a6af13b0.js.map} +0 -0
  1220. /package/dist/siemens-ix/{p-7aa07d9b.entry.js.map → p-ac9bb8be.entry.js.map} +0 -0
  1221. /package/dist/siemens-ix/{p-d01f05cf.entry.js.map → p-b00f255c.entry.js.map} +0 -0
  1222. /package/dist/siemens-ix/{p-a36ad7c7.entry.js.map → p-b8b7aa8e.entry.js.map} +0 -0
  1223. /package/dist/siemens-ix/{p-df7060ae.entry.js.map → p-ba60132f.entry.js.map} +0 -0
  1224. /package/dist/siemens-ix/{p-54efe56b.entry.js.map → p-bb33784f.entry.js.map} +0 -0
  1225. /package/dist/siemens-ix/{p-d19b52bd.entry.js.map → p-bf01468d.entry.js.map} +0 -0
  1226. /package/dist/siemens-ix/{p-66559451.entry.js.map → p-c4b75f38.entry.js.map} +0 -0
  1227. /package/dist/siemens-ix/{p-caf49e00.entry.js.map → p-c7c8e52b.entry.js.map} +0 -0
  1228. /package/dist/siemens-ix/{p-0f2bf43d.entry.js.map → p-e09995d4.entry.js.map} +0 -0
@@ -21,11 +21,13 @@ import { Host, h, } from "@stencil/core";
21
21
  import { HookValidationLifecycle, } from "../utils/input";
22
22
  import { makeRef } from "../utils/make-ref";
23
23
  import { InputElement, SlotEnd, SlotStart } from "./input.fc";
24
- import { adjustPaddingForStartAndEnd, checkAllowedKeys, getAriaAttributesForInput, mapValidationResult, onInputBlur, } from "./input.util";
24
+ import { addDisposableChangesAndVisibilityObservers, adjustPaddingForStartAndEnd, checkAllowedKeys, getAriaAttributesForInput, mapValidationResult, onInputBlur, } from "./input.util";
25
25
  let inputIds = 0;
26
26
  /**
27
27
  * @since 2.6.0
28
28
  * @form-ready 2.6.0
29
+ * @slot start - Element will be displayed at the start of the input
30
+ * @slot end - Element will be displayed at the end of the input
29
31
  */
30
32
  export class Input {
31
33
  constructor() {
@@ -68,12 +70,17 @@ export class Input {
68
70
  this.updateFormInternalValue(this.value);
69
71
  this.inputType = this.type;
70
72
  }
71
- componentDidRender() {
72
- this.updatePaddings();
73
+ connectedCallback() {
74
+ this.disposableChangesAndVisibilityObservers =
75
+ addDisposableChangesAndVisibilityObservers(this.hostElement, this.updatePaddings.bind(this));
73
76
  }
74
77
  updatePaddings() {
75
78
  adjustPaddingForStartAndEnd(this.slotStartRef.current, this.slotEndRef.current, this.inputRef.current);
76
79
  }
80
+ disconnectedCallback() {
81
+ var _a;
82
+ (_a = this.disposableChangesAndVisibilityObservers) === null || _a === void 0 ? void 0 : _a.call(this);
83
+ }
77
84
  updateFormInternalValue(value) {
78
85
  this.formInternals.setFormValue(value);
79
86
  this.value = value;
@@ -101,10 +108,10 @@ export class Input {
101
108
  render() {
102
109
  var _a;
103
110
  const inputAria = getAriaAttributesForInput(this);
104
- return (h(Host, { key: '842ff9fc4e182372da40d4bcb4f89653fc1c90fd', class: {
111
+ return (h(Host, { key: 'a6d40be91cda9c61dacb10c47cb3c1de128b595c', class: {
105
112
  disabled: this.disabled,
106
113
  readonly: this.readonly,
107
- } }, h("ix-field-wrapper", { key: '3614d6006a3c55191f6fce25c70c1383b46fec0b', htmlForLabel: this.inputId, required: this.required, label: this.label, helperText: this.helperText, invalidText: this.invalidText, infoText: this.infoText, warningText: this.warningText, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, isInvalid: this.isInvalid, isValid: this.isValid, isInfo: this.isInfo, isWarning: this.isWarning, controlRef: this.inputRef }, h("div", { key: '71ba199ce76ca1ac0135a403827e47aec4c88977', class: "input-wrapper" }, h(SlotStart, { key: 'f6a8ea82539d59e475e6e62d498ea7150de90506', slotStartRef: this.slotStartRef, onSlotChange: () => this.updatePaddings() }), h(InputElement, { key: '4c4ff361edcf9d5b780825142ba64bee79531153', id: this.inputId, readonly: this.readonly, disabled: this.disabled, maxLength: this.maxLength, minLength: this.minLength, pattern: this.pattern, type: this.inputType, isInvalid: this.isInvalid, required: this.required, value: this.value, placeholder: this.placeholder, inputRef: this.inputRef, onKeyPress: (event) => checkAllowedKeys(this, event), valueChange: (value) => this.valueChange.emit(value), updateFormInternalValue: (value) => this.updateFormInternalValue(value), onBlur: () => onInputBlur(this, this.inputRef.current), ariaAttributes: inputAria }), h(SlotEnd, { key: '9b0dab754362fbe7abf36c505209da7063490a52', slotEndRef: this.slotEndRef, onSlotChange: () => this.updatePaddings() }, h("ix-icon-button", { key: '6003d03e3d8efd967c932fc05e2270f83a102ae4', color: "color-weak-text", class: {
114
+ } }, h("ix-field-wrapper", { key: 'e920830918a1b52ae71373c6b09460282840d996', htmlForLabel: this.inputId, required: this.required, label: this.label, helperText: this.helperText, invalidText: this.invalidText, infoText: this.infoText, warningText: this.warningText, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, isInvalid: this.isInvalid, isValid: this.isValid, isInfo: this.isInfo, isWarning: this.isWarning, controlRef: this.inputRef }, h("div", { key: '683a76fa9cf8bdb266d202b3d2977415f7940374', class: "input-wrapper" }, h(SlotStart, { key: '93835b09dd2c87cf4c027afdf8b2e5ac54446ce6', slotStartRef: this.slotStartRef, onSlotChange: () => this.updatePaddings() }), h(InputElement, { key: '9d75e41be3064ed775dc6adea268681d33d4114b', id: this.inputId, readonly: this.readonly, disabled: this.disabled, maxLength: this.maxLength, minLength: this.minLength, pattern: this.pattern, type: this.inputType, isInvalid: this.isInvalid, required: this.required, value: this.value, placeholder: this.placeholder, inputRef: this.inputRef, onKeyPress: (event) => checkAllowedKeys(this, event), valueChange: (value) => this.valueChange.emit(value), updateFormInternalValue: (value) => this.updateFormInternalValue(value), onBlur: () => onInputBlur(this, this.inputRef.current), ariaAttributes: inputAria }), h(SlotEnd, { key: 'edc365019e67448855bd73f2fd6324e6b0784e80', slotEndRef: this.slotEndRef, onSlotChange: () => this.updatePaddings() }, h("ix-icon-button", { key: '22075d37959ab4d9a45e8792c62b0595e02d23d9', color: "color-weak-text", class: {
108
115
  'password-eye': true,
109
116
  'eye-hidden': this.type !== 'password',
110
117
  }, ghost: true, icon: this.inputType === 'password' ? iconEye : iconEyeCancelled, onClick: () => {
@@ -113,7 +120,7 @@ export class Input {
113
120
  return;
114
121
  }
115
122
  this.inputType = 'password';
116
- } }))), !!this.maxLength && this.maxLength > 0 && (h("ix-typography", { key: 'ecb767e15d688a8f93237a2572fcdf2343c087c6', class: "bottom-text", slot: "bottom-right", color: "soft" }, (_a = this.value) === null || _a === void 0 ? void 0 :
123
+ } }))), !!this.maxLength && this.maxLength > 0 && (h("ix-typography", { key: '4b2dab4589a0191a9097db3075e1e10dfcab3476', class: "bottom-text", slot: "bottom-right", color: "soft" }, (_a = this.value) === null || _a === void 0 ? void 0 :
117
124
  _a.length, "/", this.maxLength)))));
118
125
  }
119
126
  static get is() { return "ix-input"; }
@@ -154,7 +161,7 @@ export class Input {
154
161
  "mutable": false,
155
162
  "complexType": {
156
163
  "original": "string",
157
- "resolved": "string",
164
+ "resolved": "string | undefined",
158
165
  "references": {}
159
166
  },
160
167
  "required": false,
@@ -171,7 +178,7 @@ export class Input {
171
178
  "mutable": false,
172
179
  "complexType": {
173
180
  "original": "string",
174
- "resolved": "string",
181
+ "resolved": "string | undefined",
175
182
  "references": {}
176
183
  },
177
184
  "required": false,
@@ -260,7 +267,7 @@ export class Input {
260
267
  "mutable": false,
261
268
  "complexType": {
262
269
  "original": "string",
263
- "resolved": "string",
270
+ "resolved": "string | undefined",
264
271
  "references": {}
265
272
  },
266
273
  "required": false,
@@ -277,7 +284,7 @@ export class Input {
277
284
  "mutable": false,
278
285
  "complexType": {
279
286
  "original": "string",
280
- "resolved": "string",
287
+ "resolved": "string | undefined",
281
288
  "references": {}
282
289
  },
283
290
  "required": false,
@@ -294,7 +301,7 @@ export class Input {
294
301
  "mutable": false,
295
302
  "complexType": {
296
303
  "original": "boolean",
297
- "resolved": "boolean",
304
+ "resolved": "boolean | undefined",
298
305
  "references": {}
299
306
  },
300
307
  "required": false,
@@ -311,7 +318,7 @@ export class Input {
311
318
  "mutable": false,
312
319
  "complexType": {
313
320
  "original": "string",
314
- "resolved": "string",
321
+ "resolved": "string | undefined",
315
322
  "references": {}
316
323
  },
317
324
  "required": false,
@@ -328,7 +335,7 @@ export class Input {
328
335
  "mutable": false,
329
336
  "complexType": {
330
337
  "original": "string",
331
- "resolved": "string",
338
+ "resolved": "string | undefined",
332
339
  "references": {}
333
340
  },
334
341
  "required": false,
@@ -345,7 +352,7 @@ export class Input {
345
352
  "mutable": false,
346
353
  "complexType": {
347
354
  "original": "string",
348
- "resolved": "string",
355
+ "resolved": "string | undefined",
349
356
  "references": {}
350
357
  },
351
358
  "required": false,
@@ -362,7 +369,7 @@ export class Input {
362
369
  "mutable": false,
363
370
  "complexType": {
364
371
  "original": "string",
365
- "resolved": "string",
372
+ "resolved": "string | undefined",
366
373
  "references": {}
367
374
  },
368
375
  "required": false,
@@ -379,7 +386,7 @@ export class Input {
379
386
  "mutable": false,
380
387
  "complexType": {
381
388
  "original": "string",
382
- "resolved": "string",
389
+ "resolved": "string | undefined",
383
390
  "references": {}
384
391
  },
385
392
  "required": false,
@@ -396,7 +403,7 @@ export class Input {
396
403
  "mutable": false,
397
404
  "complexType": {
398
405
  "original": "number",
399
- "resolved": "number",
406
+ "resolved": "number | undefined",
400
407
  "references": {}
401
408
  },
402
409
  "required": false,
@@ -413,7 +420,7 @@ export class Input {
413
420
  "mutable": false,
414
421
  "complexType": {
415
422
  "original": "number",
416
- "resolved": "number",
423
+ "resolved": "number | undefined",
417
424
  "references": {}
418
425
  },
419
426
  "required": false,
@@ -430,7 +437,7 @@ export class Input {
430
437
  "mutable": false,
431
438
  "complexType": {
432
439
  "original": "string",
433
- "resolved": "string",
440
+ "resolved": "string | undefined",
434
441
  "references": {}
435
442
  },
436
443
  "required": false,
@@ -523,7 +530,7 @@ export class Input {
523
530
  "id": "global::HTMLFormElement"
524
531
  }
525
532
  },
526
- "return": "Promise<HTMLFormElement>"
533
+ "return": "Promise<HTMLFormElement | null>"
527
534
  },
528
535
  "docs": {
529
536
  "text": "",
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AAhJC;IADC,uBAAuB,EAAE;gDAGzB","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { iconEye, iconEyeCancelled } from '@siemens/ix-icons/icons';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Method,\n Prop,\n State,\n Watch,\n h,\n} from '@stencil/core';\nimport { A11yAttributes } from '../utils/a11y';\nimport {\n HookValidationLifecycle,\n IxInputFieldComponent,\n ValidationResults,\n} from '../utils/input';\nimport { MakeRef, makeRef } from '../utils/make-ref';\nimport { InputElement, SlotEnd, SlotStart } from './input.fc';\nimport {\n adjustPaddingForStartAndEnd,\n checkAllowedKeys,\n getAriaAttributesForInput,\n mapValidationResult,\n onInputBlur,\n} from './input.util';\n\nlet inputIds = 0;\n\n/**\n * @since 2.6.0\n * @form-ready 2.6.0\n */\n@Component({\n tag: 'ix-input',\n styleUrl: 'input.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class Input implements IxInputFieldComponent<string> {\n @Element() hostElement!: HTMLIxInputElement;\n @AttachInternals() formInternals!: ElementInternals;\n\n /**\n * The type of the text field. Possible values are 'text', 'email', or 'password'.\n */\n @Prop() type: 'text' | 'email' | 'password' | 'tel' | 'url' = 'text';\n\n /**\n * The name of the text field.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * The placeholder text for the text field.\n */\n @Prop({ reflect: true }) placeholder?: string;\n\n /**\n * The value of the text field.\n */\n @Prop({ reflect: true, mutable: true }) value: string = '';\n\n /**\n * Specifies whether the text field is required.\n */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Specifies whether the text field is disabled.\n */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /**\n * Specifies whether the text field is readonly.\n */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /**\n * The helper text for the text field.\n */\n @Prop() helperText?: string;\n\n /**\n * The info text for the text field.\n */\n @Prop() infoText?: string;\n\n /**\n * Specifies whether to show the text as a tooltip.\n */\n @Prop() showTextAsTooltip?: boolean;\n\n /**\n * The valid text for the text field.\n */\n @Prop() validText?: string;\n\n /**\n * The warning text for the text field.\n */\n @Prop() warningText?: string;\n\n /**\n * The label for the text field.\n */\n @Prop({ reflect: true }) label?: string;\n\n /**\n * The error text for the text field.\n */\n @Prop() invalidText?: string;\n\n /**\n * The pattern for the text field.\n */\n @Prop() pattern?: string;\n\n /**\n * The maximum length of the text field.\n */\n @Prop() maxLength?: number;\n\n /**\n * The minimum length of the text field.\n */\n @Prop() minLength?: number;\n\n /**\n * The allowed characters pattern for the text field.\n */\n @Prop() allowedCharactersPattern?: string;\n\n /**\n * Event emitted when the value of the text field changes.\n */\n @Event() valueChange!: EventEmitter<string>;\n\n /**\n * Event emitted when the validity state of the text field changes.\n */\n @Event() validityStateChange!: EventEmitter<ValidityState>;\n\n /**\n * Event emitted when the text field loses focus.\n */\n @Event() ixBlur!: EventEmitter<void>;\n\n @State() isInvalid = false;\n @State() isValid = false;\n @State() isInfo = false;\n @State() isWarning = false;\n @State() isInvalidByRequired = false;\n\n @State() inputType = 'text';\n\n private readonly inputRef = makeRef<HTMLInputElement>();\n private readonly slotEndRef = makeRef<HTMLDivElement>();\n private readonly slotStartRef = makeRef<HTMLDivElement>();\n\n private readonly inputId = `input-${inputIds++}`;\n\n @HookValidationLifecycle()\n updateClassMappings(result: ValidationResults) {\n mapValidationResult(this, result);\n }\n\n @Watch('type')\n updateInputType() {\n this.inputType = this.type;\n }\n\n componentWillLoad() {\n this.updateFormInternalValue(this.value);\n this.inputType = this.type;\n }\n\n componentDidRender() {\n this.updatePaddings();\n }\n\n private updatePaddings() {\n adjustPaddingForStartAndEnd(\n this.slotStartRef.current,\n this.slotEndRef.current,\n this.inputRef.current\n );\n }\n\n updateFormInternalValue(value: string) {\n this.formInternals.setFormValue(value);\n this.value = value;\n }\n\n /** @internal */\n @Method()\n async getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return this.formInternals.form;\n }\n\n /** @internal */\n @Method()\n hasValidValue(): Promise<boolean> {\n return Promise.resolve(!!this.value);\n }\n\n /**\n * Returns the native input element used in the text field.\n */\n @Method()\n getNativeInputElement() {\n return this.inputRef.waitForCurrent();\n }\n\n /**\n * Focuses the input field\n */\n @Method()\n async focusInput(): Promise<void> {\n return (await this.getNativeInputElement()).focus();\n }\n\n render() {\n const inputAria: A11yAttributes = getAriaAttributesForInput(this);\n return (\n <Host\n class={{\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n >\n <ix-field-wrapper\n htmlForLabel={this.inputId}\n required={this.required}\n label={this.label}\n helperText={this.helperText}\n invalidText={this.invalidText}\n infoText={this.infoText}\n warningText={this.warningText}\n validText={this.validText}\n showTextAsTooltip={this.showTextAsTooltip}\n isInvalid={this.isInvalid}\n isValid={this.isValid}\n isInfo={this.isInfo}\n isWarning={this.isWarning}\n controlRef={this.inputRef as unknown as MakeRef<HTMLElement>}\n >\n <div class=\"input-wrapper\">\n <SlotStart\n slotStartRef={this.slotStartRef}\n onSlotChange={() => this.updatePaddings()}\n ></SlotStart>\n <InputElement\n id={this.inputId}\n readonly={this.readonly}\n disabled={this.disabled}\n maxLength={this.maxLength}\n minLength={this.minLength}\n pattern={this.pattern}\n type={this.inputType}\n isInvalid={this.isInvalid}\n required={this.required}\n value={this.value}\n placeholder={this.placeholder}\n inputRef={this.inputRef}\n onKeyPress={(event) => checkAllowedKeys(this, event)}\n valueChange={(value) => this.valueChange.emit(value)}\n updateFormInternalValue={(value) =>\n this.updateFormInternalValue(value)\n }\n onBlur={() => onInputBlur(this, this.inputRef.current)}\n ariaAttributes={inputAria}\n ></InputElement>\n <SlotEnd\n slotEndRef={this.slotEndRef}\n onSlotChange={() => this.updatePaddings()}\n >\n <ix-icon-button\n color=\"color-weak-text\"\n class={{\n 'password-eye': true,\n 'eye-hidden': this.type !== 'password',\n }}\n ghost\n icon={\n this.inputType === 'password' ? iconEye : iconEyeCancelled\n }\n onClick={() => {\n if (this.inputType === 'password') {\n this.inputType = 'text';\n return;\n }\n\n this.inputType = 'password';\n }}\n ></ix-icon-button>\n </SlotEnd>\n </div>\n {!!this.maxLength && this.maxLength > 0 && (\n <ix-typography class=\"bottom-text\" slot=\"bottom-right\" color=\"soft\">\n {this.value?.length}/{this.maxLength}\n </ix-typography>\n )}\n </ix-field-wrapper>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/input/input.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;;;AAEH,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,uBAAuB,GAGxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EACL,0CAA0C,EAC1C,2BAA2B,EAC3B,gBAAgB,EAEhB,yBAAyB,EACzB,mBAAmB,EACnB,WAAW,GACZ,MAAM,cAAc,CAAC;AAEtB,IAAI,QAAQ,GAAG,CAAC,CA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: 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 { iconEye, iconEyeCancelled } from '@siemens/ix-icons/icons';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Method,\n Prop,\n State,\n Watch,\n h,\n} from '@stencil/core';\nimport { A11yAttributes } from '../utils/a11y';\nimport {\n HookValidationLifecycle,\n IxInputFieldComponent,\n ValidationResults,\n} from '../utils/input';\nimport { makeRef } from '../utils/make-ref';\nimport { InputElement, SlotEnd, SlotStart } from './input.fc';\nimport {\n addDisposableChangesAndVisibilityObservers,\n adjustPaddingForStartAndEnd,\n checkAllowedKeys,\n DisposableChangesAndVisibilityObservers,\n getAriaAttributesForInput,\n mapValidationResult,\n onInputBlur,\n} from './input.util';\n\nlet inputIds = 0;\n\n/**\n * @since 2.6.0\n * @form-ready 2.6.0\n * @slot start - Element will be displayed at the start of the input\n * @slot end - Element will be displayed at the end of the input\n */\n@Component({\n tag: 'ix-input',\n styleUrl: 'input.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class Input implements IxInputFieldComponent<string> {\n @Element() hostElement!: HTMLIxInputElement;\n @AttachInternals() formInternals!: ElementInternals;\n\n /**\n * The type of the text field. Possible values are 'text', 'email', or 'password'.\n */\n @Prop() type: 'text' | 'email' | 'password' | 'tel' | 'url' = 'text';\n\n /**\n * The name of the text field.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * The placeholder text for the text field.\n */\n @Prop({ reflect: true }) placeholder?: string;\n\n /**\n * The value of the text field.\n */\n @Prop({ reflect: true, mutable: true }) value: string = '';\n\n /**\n * Specifies whether the text field is required.\n */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Specifies whether the text field is disabled.\n */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /**\n * Specifies whether the text field is readonly.\n */\n @Prop({ reflect: true }) readonly: boolean = false;\n\n /**\n * The helper text for the text field.\n */\n @Prop() helperText?: string;\n\n /**\n * The info text for the text field.\n */\n @Prop() infoText?: string;\n\n /**\n * Specifies whether to show the text as a tooltip.\n */\n @Prop() showTextAsTooltip?: boolean;\n\n /**\n * The valid text for the text field.\n */\n @Prop() validText?: string;\n\n /**\n * The warning text for the text field.\n */\n @Prop() warningText?: string;\n\n /**\n * The label for the text field.\n */\n @Prop({ reflect: true }) label?: string;\n\n /**\n * The error text for the text field.\n */\n @Prop() invalidText?: string;\n\n /**\n * The pattern for the text field.\n */\n @Prop() pattern?: string;\n\n /**\n * The maximum length of the text field.\n */\n @Prop() maxLength?: number;\n\n /**\n * The minimum length of the text field.\n */\n @Prop() minLength?: number;\n\n /**\n * The allowed characters pattern for the text field.\n */\n @Prop() allowedCharactersPattern?: string;\n\n /**\n * Event emitted when the value of the text field changes.\n */\n @Event() valueChange!: EventEmitter<string>;\n\n /**\n * Event emitted when the validity state of the text field changes.\n */\n @Event() validityStateChange!: EventEmitter<ValidityState>;\n\n /**\n * Event emitted when the text field loses focus.\n */\n @Event() ixBlur!: EventEmitter<void>;\n\n @State() isInvalid = false;\n @State() isValid = false;\n @State() isInfo = false;\n @State() isWarning = false;\n @State() isInvalidByRequired = false;\n\n @State() inputType = 'text';\n\n private readonly inputRef = makeRef<HTMLInputElement>();\n private readonly slotEndRef = makeRef<HTMLDivElement>();\n private readonly slotStartRef = makeRef<HTMLDivElement>();\n\n private readonly inputId = `input-${inputIds++}`;\n\n private disposableChangesAndVisibilityObservers?: DisposableChangesAndVisibilityObservers;\n\n @HookValidationLifecycle()\n updateClassMappings(result: ValidationResults) {\n mapValidationResult(this, result);\n }\n\n @Watch('type')\n updateInputType() {\n this.inputType = this.type;\n }\n\n componentWillLoad() {\n this.updateFormInternalValue(this.value);\n this.inputType = this.type;\n }\n\n connectedCallback(): void {\n this.disposableChangesAndVisibilityObservers =\n addDisposableChangesAndVisibilityObservers(\n this.hostElement,\n this.updatePaddings.bind(this)\n );\n }\n\n private updatePaddings() {\n adjustPaddingForStartAndEnd(\n this.slotStartRef.current,\n this.slotEndRef.current,\n this.inputRef.current\n );\n }\n\n disconnectedCallback(): void {\n this.disposableChangesAndVisibilityObservers?.();\n }\n\n updateFormInternalValue(value: string) {\n this.formInternals.setFormValue(value);\n this.value = value;\n }\n\n /** @internal */\n @Method()\n async getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return this.formInternals.form;\n }\n\n /** @internal */\n @Method()\n hasValidValue(): Promise<boolean> {\n return Promise.resolve(!!this.value);\n }\n\n /**\n * Returns the native input element used in the text field.\n */\n @Method()\n getNativeInputElement() {\n return this.inputRef.waitForCurrent();\n }\n\n /**\n * Focuses the input field\n */\n @Method()\n async focusInput(): Promise<void> {\n return (await this.getNativeInputElement()).focus();\n }\n\n render() {\n const inputAria: A11yAttributes = getAriaAttributesForInput(this);\n return (\n <Host\n class={{\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n >\n <ix-field-wrapper\n htmlForLabel={this.inputId}\n required={this.required}\n label={this.label}\n helperText={this.helperText}\n invalidText={this.invalidText}\n infoText={this.infoText}\n warningText={this.warningText}\n validText={this.validText}\n showTextAsTooltip={this.showTextAsTooltip}\n isInvalid={this.isInvalid}\n isValid={this.isValid}\n isInfo={this.isInfo}\n isWarning={this.isWarning}\n controlRef={this.inputRef}\n >\n <div class=\"input-wrapper\">\n <SlotStart\n slotStartRef={this.slotStartRef}\n onSlotChange={() => this.updatePaddings()}\n ></SlotStart>\n <InputElement\n id={this.inputId}\n readonly={this.readonly}\n disabled={this.disabled}\n maxLength={this.maxLength}\n minLength={this.minLength}\n pattern={this.pattern}\n type={this.inputType}\n isInvalid={this.isInvalid}\n required={this.required}\n value={this.value}\n placeholder={this.placeholder}\n inputRef={this.inputRef}\n onKeyPress={(event) => checkAllowedKeys(this, event)}\n valueChange={(value) => this.valueChange.emit(value)}\n updateFormInternalValue={(value) =>\n this.updateFormInternalValue(value)\n }\n onBlur={() => onInputBlur(this, this.inputRef.current)}\n ariaAttributes={inputAria}\n ></InputElement>\n <SlotEnd\n slotEndRef={this.slotEndRef}\n onSlotChange={() => this.updatePaddings()}\n >\n <ix-icon-button\n color=\"color-weak-text\"\n class={{\n 'password-eye': true,\n 'eye-hidden': this.type !== 'password',\n }}\n ghost\n icon={\n this.inputType === 'password' ? iconEye : iconEyeCancelled\n }\n onClick={() => {\n if (this.inputType === 'password') {\n this.inputType = 'text';\n return;\n }\n\n this.inputType = 'password';\n }}\n ></ix-icon-button>\n </SlotEnd>\n </div>\n {!!this.maxLength && this.maxLength > 0 && (\n <ix-typography class=\"bottom-text\" slot=\"bottom-right\" color=\"soft\">\n {this.value?.length}/{this.maxLength}\n </ix-typography>\n )}\n </ix-field-wrapper>\n </Host>\n );\n }\n}\n"]}
@@ -8,6 +8,7 @@
8
8
  */
9
9
  import { a11yBoolean } from "../utils/a11y";
10
10
  import { shouldSuppressInternalValidation, } from "../utils/input";
11
+ import { createMutationObserver } from "../utils/mutation-observer";
11
12
  import { convertToRemString } from "../utils/rwd.util";
12
13
  import { generateUUID } from "../utils/uuid";
13
14
  import { shakeInput } from "./input.animation";
@@ -45,7 +46,7 @@ export async function checkInternalValidity(comp, input) {
45
46
  return;
46
47
  }
47
48
  const { valid } = validityState;
48
- comp.hostElement.classList.toggle('ix-invalid', !valid);
49
+ comp.hostElement.classList.toggle('ix-invalid--validity-invalid', !valid);
49
50
  }
50
51
  export function onInputBlur(comp, input) {
51
52
  comp.ixBlur.emit();
@@ -100,4 +101,27 @@ export function getAriaAttributesForInput(component) {
100
101
  }
101
102
  return inputAria;
102
103
  }
104
+ export const addDisposableChangesAndVisibilityObservers = (element, callback) => {
105
+ const intersectionObserver = observeElementUntilVisible(element, callback);
106
+ const mutationObserver = createMutationObserver(callback);
107
+ mutationObserver.observe(element, {
108
+ subtree: true,
109
+ attributes: true,
110
+ });
111
+ return () => {
112
+ intersectionObserver.disconnect();
113
+ mutationObserver.disconnect();
114
+ };
115
+ };
116
+ function observeElementUntilVisible(hostElement, updateCallback) {
117
+ const intersectionObserver = new IntersectionObserver((entries) => {
118
+ entries.forEach((entry) => {
119
+ if (entry.isIntersecting) {
120
+ updateCallback();
121
+ }
122
+ });
123
+ });
124
+ intersectionObserver.observe(hostElement);
125
+ return intersectionObserver;
126
+ }
103
127
  //# sourceMappingURL=input.util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.util.js","sourceRoot":"","sources":["../../../src/components/input/input.util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAkB,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAIL,gCAAgC,GACjC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,UAAU,mBAAmB,CACjC,OAAwB,EACxB,WAAmB,OAAO;IAE1B,OAAO,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC;QAC/B,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC;QAC5B,CAAC,CAAC,GAAG,QAAQ,IAAI,YAAY,EAAE,EAAE,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,mBAAmB,CACjC,GAA6B,EAC7B,MAAyB;IAEzB,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,mBAAmB,CAAC;IAC/D,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IAC7B,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC3B,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,IAA8B,EAC9B,KAAoB;IAEpB,IAAI,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAClC,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,wBAA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AEF,IAAI,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,WAAW,EAAE,CAAC;QACjD,SAAS,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,WAAW,CAAC;IACzD,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { A11yAttributes, a11yBoolean } from '../utils/a11y';\nimport {\n IxFormComponent,\n IxInputFieldComponent,\n ValidationResults,\n shouldSuppressInternalValidation,\n} from '../utils/input';\nimport { convertToRemString } from '../utils/rwd.util';\nimport { generateUUID } from '../utils/uuid';\nimport { shakeInput } from './input.animation';\n\nexport function createIdIfNotExists(\n element: IxFormComponent,\n idPrefix: string = 'input'\n) {\n return element.hasAttribute('id')\n ? element.getAttribute('id')\n : `${idPrefix}-${generateUUID()}`;\n}\n\nexport function mapValidationResult<T>(\n ref: IxInputFieldComponent<T>,\n result: ValidationResults\n) {\n ref.isInvalid = result.isInvalid || result.isInvalidByRequired;\n ref.isValid = result.isValid;\n ref.isInfo = result.isInfo;\n ref.isWarning = result.isWarning;\n}\n\nexport function checkAllowedKeys<T>(\n comp: IxInputFieldComponent<T>,\n event: KeyboardEvent\n) {\n if (comp.allowedCharactersPattern) {\n const regex = new RegExp(comp.allowedCharactersPattern);\n if (!regex.test(event.key)) {\n event.preventDefault();\n shakeInput(comp.inputRef.current);\n }\n }\n}\n\nexport async function checkInternalValidity<T>(\n comp: IxFormComponent<T>,\n input: HTMLInputElement | HTMLTextAreaElement\n) {\n const validityState = input.validity;\n\n const eventResult = comp.validityStateChange.emit(validityState);\n\n if (eventResult.defaultPrevented) {\n return;\n }\n\n if (!comp.value) {\n return;\n }\n\n const skipValidation = await shouldSuppressInternalValidation(comp);\n if (skipValidation) {\n return;\n }\n\n const { valid } = validityState;\n comp.hostElement.classList.toggle('ix-invalid', !valid);\n}\n\nexport function onInputBlur<T>(\n comp: IxInputFieldComponent<T>,\n input?: HTMLInputElement | HTMLTextAreaElement | null\n) {\n comp.ixBlur.emit();\n\n if (!input) {\n throw new Error('Input element is not available');\n }\n checkInternalValidity(comp, input);\n}\n\nexport function applyPaddingEnd(\n inputElement: HTMLElement | null,\n width: number,\n options: {\n slotEnd: boolean;\n additionalPaddingRight?: string;\n }\n) {\n if (!inputElement) {\n return;\n }\n\n const remInPixels = 16;\n const padding = convertToRemString(width + remInPixels / 2);\n\n if (options.slotEnd) {\n inputElement.style.paddingRight = `calc(${padding} + ${\n options.additionalPaddingRight ?? '0rem'\n })`;\n } else {\n inputElement.style.paddingLeft = padding;\n }\n}\n\nexport function adjustPaddingForStartAndEnd(\n startElement: HTMLElement | null,\n endElement: HTMLElement | null,\n inputElement: HTMLElement | null\n) {\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n if (startElement) {\n const startBoundingRect = startElement.getBoundingClientRect();\n if (startBoundingRect) {\n applyPaddingEnd(inputElement, startBoundingRect.width, {\n slotEnd: false,\n });\n }\n }\n\n if (endElement) {\n const endBoundingRect = endElement.getBoundingClientRect();\n if (endBoundingRect) {\n applyPaddingEnd(inputElement, endBoundingRect.width, {\n slotEnd: true,\n });\n }\n }\n });\n });\n}\n\nexport function getAriaAttributesForInput(\n component: IxInputFieldComponent\n): A11yAttributes {\n const inputAria: A11yAttributes = {\n 'aria-invalid': `${a11yBoolean(component.isInvalid)}`,\n 'aria-required': `${a11yBoolean(component.required)}`,\n };\n\n if (component.isInvalid && component.invalidText) {\n inputAria['aria-errormessage'] = component.invalidText;\n }\n return inputAria;\n}\n"]}
1
+ {"version":3,"file":"input.util.js","sourceRoot":"","sources":["../../../src/components/input/input.util.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAkB,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAIL,gCAAgC,GACjC,MAAM,gBAAgB,CAAC;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AAC,CAAC;IAC3E,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IAE1D,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE;QAChC,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC;IAEH,OAAO,GAAG,EAAE;QACV,oBAAoB,CAAC,UAAU,EAAE,CAAC;QAClC,gBAAgB,CAAC,UAAU,EAAE,CAAC;IAChC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,0BAA0B,CACjC,WAAwB,EACxB,cAA0B;IAE1B,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,CAAC,OAAO,EAAE,EAAE;QAChE,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YACxB,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC;gBACzB,cAAc,EAAE,CAAC;YACnB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,oBAAoB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC1C,OAAO,oBAAoB,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { A11yAttributes, a11yBoolean } from '../utils/a11y';\nimport {\n IxFormComponent,\n IxInputFieldComponent,\n ValidationResults,\n shouldSuppressInternalValidation,\n} from '../utils/input';\nimport { createMutationObserver } from '../utils/mutation-observer';\nimport { convertToRemString } from '../utils/rwd.util';\nimport { generateUUID } from '../utils/uuid';\nimport { shakeInput } from './input.animation';\n\nexport function createIdIfNotExists(\n element: IxFormComponent,\n idPrefix: string = 'input'\n) {\n return element.hasAttribute('id')\n ? element.getAttribute('id')\n : `${idPrefix}-${generateUUID()}`;\n}\n\nexport function mapValidationResult<T>(\n ref: IxInputFieldComponent<T>,\n result: ValidationResults\n) {\n ref.isInvalid = result.isInvalid || result.isInvalidByRequired;\n ref.isValid = result.isValid;\n ref.isInfo = result.isInfo;\n ref.isWarning = result.isWarning;\n}\n\nexport function checkAllowedKeys<T>(\n comp: IxInputFieldComponent<T>,\n event: KeyboardEvent\n) {\n if (comp.allowedCharactersPattern) {\n const regex = new RegExp(comp.allowedCharactersPattern);\n if (!regex.test(event.key)) {\n event.preventDefault();\n shakeInput(comp.inputRef.current);\n }\n }\n}\n\nexport async function checkInternalValidity<T>(\n comp: IxFormComponent<T>,\n input: HTMLInputElement | HTMLTextAreaElement\n) {\n const validityState = input.validity;\n\n const eventResult = comp.validityStateChange.emit(validityState);\n\n if (eventResult.defaultPrevented) {\n return;\n }\n\n if (!comp.value) {\n return;\n }\n\n const skipValidation = await shouldSuppressInternalValidation(comp);\n if (skipValidation) {\n return;\n }\n\n const { valid } = validityState;\n comp.hostElement.classList.toggle('ix-invalid--validity-invalid', !valid);\n}\n\nexport function onInputBlur<T>(\n comp: IxInputFieldComponent<T>,\n input?: HTMLInputElement | HTMLTextAreaElement | null\n) {\n comp.ixBlur.emit();\n\n if (!input) {\n throw new Error('Input element is not available');\n }\n checkInternalValidity(comp, input);\n}\n\nexport function applyPaddingEnd(\n inputElement: HTMLElement | null,\n width: number,\n options: {\n slotEnd: boolean;\n additionalPaddingRight?: string;\n }\n) {\n if (!inputElement) {\n return;\n }\n\n const remInPixels = 16;\n const padding = convertToRemString(width + remInPixels / 2);\n\n if (options.slotEnd) {\n inputElement.style.paddingRight = `calc(${padding} + ${\n options.additionalPaddingRight ?? '0rem'\n })`;\n } else {\n inputElement.style.paddingLeft = padding;\n }\n}\n\nexport function adjustPaddingForStartAndEnd(\n startElement: HTMLElement | null,\n endElement: HTMLElement | null,\n inputElement: HTMLElement | null\n) {\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n if (startElement) {\n const startBoundingRect = startElement.getBoundingClientRect();\n if (startBoundingRect) {\n applyPaddingEnd(inputElement, startBoundingRect.width, {\n slotEnd: false,\n });\n }\n }\n\n if (endElement) {\n const endBoundingRect = endElement.getBoundingClientRect();\n if (endBoundingRect) {\n applyPaddingEnd(inputElement, endBoundingRect.width, {\n slotEnd: true,\n });\n }\n }\n });\n });\n}\n\nexport function getAriaAttributesForInput(\n component: IxInputFieldComponent\n): A11yAttributes {\n const inputAria: A11yAttributes = {\n 'aria-invalid': `${a11yBoolean(component.isInvalid)}`,\n 'aria-required': `${a11yBoolean(component.required)}`,\n };\n\n if (component.isInvalid && component.invalidText) {\n inputAria['aria-errormessage'] = component.invalidText;\n }\n return inputAria;\n}\n\nexport type DisposableChangesAndVisibilityObservers = () => void;\n\nexport const addDisposableChangesAndVisibilityObservers = (\n element: HTMLElement,\n callback: () => void\n): DisposableChangesAndVisibilityObservers => {\n const intersectionObserver = observeElementUntilVisible(element, callback);\n const mutationObserver = createMutationObserver(callback);\n\n mutationObserver.observe(element, {\n subtree: true,\n attributes: true,\n });\n\n return () => {\n intersectionObserver.disconnect();\n mutationObserver.disconnect();\n };\n};\n\nfunction observeElementUntilVisible(\n hostElement: HTMLElement,\n updateCallback: () => void\n): IntersectionObserver {\n const intersectionObserver = new IntersectionObserver((entries) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n updateCallback();\n }\n });\n });\n\n intersectionObserver.observe(hostElement);\n return intersectionObserver;\n}\n"]}
@@ -211,9 +211,6 @@ input[type=number]::-webkit-inner-spin-button {
211
211
  display: none;
212
212
  }
213
213
 
214
- textarea {
215
- padding: 0.375rem 1.25rem 0.375rem 0.5rem;
216
- }
217
214
  textarea {
218
215
  font-feature-settings: "clig" off, "liga" off;
219
216
  font-family: Siemens Sans, Siemens Sans, Arial, Helvetica, sans-serif;
@@ -356,6 +353,9 @@ textarea:disabled::-moz-placeholder, textarea.disabled::-moz-placeholder {
356
353
  textarea:disabled::placeholder, textarea.disabled::placeholder {
357
354
  color: transparent;
358
355
  }
356
+ textarea {
357
+ padding: calc(0.375rem - var(--theme-input--border-thickness)) calc(0.5rem - var(--theme-input--border-thickness));
358
+ }
359
359
 
360
360
  textarea ~ .valid-feedback,
361
361
  textarea ~ .invalid-feedback,
@@ -17,15 +17,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
17
17
  return c > 3 && r && Object.defineProperty(target, key, r), r;
18
18
  };
19
19
  import { iconMinus, iconPlus } from "@siemens/ix-icons/icons";
20
- import { Host, h, } from "@stencil/core";
20
+ import { h, Host, } from "@stencil/core";
21
21
  import { HookValidationLifecycle, } from "../utils/input";
22
22
  import { makeRef } from "../utils/make-ref";
23
23
  import { InputElement, SlotEnd, SlotStart } from "./input.fc";
24
- import { adjustPaddingForStartAndEnd, checkAllowedKeys, checkInternalValidity, mapValidationResult, onInputBlur, } from "./input.util";
24
+ import { addDisposableChangesAndVisibilityObservers, adjustPaddingForStartAndEnd, checkAllowedKeys, checkInternalValidity, mapValidationResult, onInputBlur, } from "./input.util";
25
25
  let numberInputIds = 0;
26
26
  /**
27
27
  * @since 2.6.0
28
28
  * @form-ready 2.6.0
29
+ * @slot start - Element will be displayed at the start of the input
30
+ * @slot end - Element will be displayed at the end of the input
29
31
  */
30
32
  export class NumberInput {
31
33
  constructor() {
@@ -63,8 +65,13 @@ export class NumberInput {
63
65
  componentWillLoad() {
64
66
  this.updateFormInternalValue(this.value);
65
67
  }
66
- componentDidRender() {
67
- this.updatePaddings();
68
+ connectedCallback() {
69
+ this.disposableChangesAndVisibilityObservers =
70
+ addDisposableChangesAndVisibilityObservers(this.hostElement, this.updatePaddings.bind(this));
71
+ }
72
+ disconnectedCallback() {
73
+ var _a;
74
+ (_a = this.disposableChangesAndVisibilityObservers) === null || _a === void 0 ? void 0 : _a.call(this);
68
75
  }
69
76
  updatePaddings() {
70
77
  adjustPaddingForStartAndEnd(this.slotStartRef.current, this.slotEndRef.current, this.inputRef.current);
@@ -95,16 +102,16 @@ export class NumberInput {
95
102
  }
96
103
  render() {
97
104
  const showStepperButtons = this.showStepperButtons && (this.disabled || this.readonly) === false;
98
- return (h(Host, { key: '257156c1c5ec77ef4426b3a8818941f0b28062c6', class: {
105
+ return (h(Host, { key: 'a0f7f1e42f50080a3c68ed8a46415653d8c98db1', class: {
99
106
  disabled: this.disabled,
100
107
  readonly: this.readonly,
101
- } }, h("ix-field-wrapper", { key: 'ab953fa1af86d3f0415b709fff3871e17f00453a', id: this.numberInputId, required: this.required, label: this.label, helperText: this.helperText, invalidText: this.invalidText, infoText: this.infoText, warningText: this.warningText, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, isInvalid: this.isInvalid, isValid: this.isValid, isInfo: this.isInfo, isWarning: this.isWarning, controlRef: this.inputRef }, h("div", { key: '82ab33e39746a47d1c387f953b3862bd47547a4b', class: {
108
+ } }, h("ix-field-wrapper", { key: 'e63d9ee61378d6d25b80f2d8aefa3f572e3a183d', id: this.numberInputId, required: this.required, label: this.label, helperText: this.helperText, invalidText: this.invalidText, infoText: this.infoText, warningText: this.warningText, validText: this.validText, showTextAsTooltip: this.showTextAsTooltip, isInvalid: this.isInvalid, isValid: this.isValid, isInfo: this.isInfo, isWarning: this.isWarning, controlRef: this.inputRef }, h("div", { key: '31b3a31fff69a0b93c652760acef0d555feb0ae9', class: {
102
109
  'input-wrapper': true,
103
110
  'show-stepper-buttons': !!this.showStepperButtons,
104
- } }, h(SlotStart, { key: '252e87d3380c33806b2a1af84b98d672e2f0980f', slotStartRef: this.slotStartRef, onSlotChange: () => this.updatePaddings() }), h(InputElement, { key: 'd2cbab2e83934c970e9b8fce0390d5ad01234646', id: this.numberInputId, readonly: this.readonly, disabled: this.disabled, min: this.min, max: this.max, pattern: this.pattern, type: 'number', isInvalid: this.isInvalid, required: this.required, value: this.value, placeholder: this.placeholder, inputRef: this.inputRef, onKeyPress: (event) => checkAllowedKeys(this, event), valueChange: (value) => this.valueChange.emit(Number(value)), updateFormInternalValue: (value) => this.updateFormInternalValue(Number(value)), onBlur: () => onInputBlur(this, this.inputRef.current) }), h(SlotEnd, { key: '9a9a6de11186692b3707d85315a124256124ad2f', slotEndRef: this.slotEndRef, onSlotChange: () => this.updatePaddings() }, h("div", { key: '97a24bdb25e6a6818038f662eb14a94e4e79d7a0', class: {
111
+ } }, h(SlotStart, { key: 'edb32763f14d9b11605e17cbc16464137eb1ed6a', slotStartRef: this.slotStartRef, onSlotChange: () => this.updatePaddings() }), h(InputElement, { key: 'c48f472ed7f054065b73451bcde40b5e5e02327d', id: this.numberInputId, readonly: this.readonly, disabled: this.disabled, min: this.min, max: this.max, pattern: this.pattern, type: 'number', isInvalid: this.isInvalid, required: this.required, value: this.value, placeholder: this.placeholder, inputRef: this.inputRef, onKeyPress: (event) => checkAllowedKeys(this, event), valueChange: (value) => this.valueChange.emit(Number(value)), updateFormInternalValue: (value) => this.updateFormInternalValue(Number(value)), onBlur: () => onInputBlur(this, this.inputRef.current) }), h(SlotEnd, { key: 'd5ee594714f6c90c1bf26938713945f0f809d289', slotEndRef: this.slotEndRef, onSlotChange: () => this.updatePaddings() }, h("div", { key: '6ac348b7205923bf4063cd58b76a16b6dca456db', class: {
105
112
  'number-stepper-container': true,
106
113
  'container-hidden': !showStepperButtons,
107
- } }, h("ix-icon-button", { key: '89d6c0aea01ea12ad5342cf825f9f43748e5f47a', ghost: true, icon: iconMinus, size: "16", class: "number-stepper-button step-minus", onClick: () => {
114
+ } }, h("ix-icon-button", { key: 'e2e59a1ee82aefb45d330f9ad5a7a74dc86b5fe8', ghost: true, icon: iconMinus, size: "16", class: "number-stepper-button step-minus", onClick: () => {
108
115
  if (!this.inputRef.current) {
109
116
  return;
110
117
  }
@@ -112,7 +119,7 @@ export class NumberInput {
112
119
  checkInternalValidity(this, this.inputRef.current);
113
120
  this.updateFormInternalValue(Number(this.inputRef.current.value));
114
121
  this.valueChange.emit(this.value);
115
- } }), h("ix-icon-button", { key: '7a913f64e5abf65be33268df93eae3635452b51b', ghost: true, icon: iconPlus, size: "16", class: "number-stepper-button step-plus", onClick: () => {
122
+ } }), h("ix-icon-button", { key: '4e7ed976d0248efa798c304b40c85607714c32d7', ghost: true, icon: iconPlus, size: "16", class: "number-stepper-button step-plus", onClick: () => {
116
123
  if (!this.inputRef.current) {
117
124
  return;
118
125
  }
@@ -142,7 +149,7 @@ export class NumberInput {
142
149
  "mutable": false,
143
150
  "complexType": {
144
151
  "original": "string",
145
- "resolved": "string",
152
+ "resolved": "string | undefined",
146
153
  "references": {}
147
154
  },
148
155
  "required": false,
@@ -159,7 +166,7 @@ export class NumberInput {
159
166
  "mutable": false,
160
167
  "complexType": {
161
168
  "original": "string",
162
- "resolved": "string",
169
+ "resolved": "string | undefined",
163
170
  "references": {}
164
171
  },
165
172
  "required": false,
@@ -248,7 +255,7 @@ export class NumberInput {
248
255
  "mutable": false,
249
256
  "complexType": {
250
257
  "original": "string",
251
- "resolved": "string",
258
+ "resolved": "string | undefined",
252
259
  "references": {}
253
260
  },
254
261
  "required": false,
@@ -265,7 +272,7 @@ export class NumberInput {
265
272
  "mutable": false,
266
273
  "complexType": {
267
274
  "original": "string",
268
- "resolved": "string",
275
+ "resolved": "string | undefined",
269
276
  "references": {}
270
277
  },
271
278
  "required": false,
@@ -282,7 +289,7 @@ export class NumberInput {
282
289
  "mutable": false,
283
290
  "complexType": {
284
291
  "original": "boolean",
285
- "resolved": "boolean",
292
+ "resolved": "boolean | undefined",
286
293
  "references": {}
287
294
  },
288
295
  "required": false,
@@ -299,7 +306,7 @@ export class NumberInput {
299
306
  "mutable": false,
300
307
  "complexType": {
301
308
  "original": "string",
302
- "resolved": "string",
309
+ "resolved": "string | undefined",
303
310
  "references": {}
304
311
  },
305
312
  "required": false,
@@ -316,7 +323,7 @@ export class NumberInput {
316
323
  "mutable": false,
317
324
  "complexType": {
318
325
  "original": "string",
319
- "resolved": "string",
326
+ "resolved": "string | undefined",
320
327
  "references": {}
321
328
  },
322
329
  "required": false,
@@ -333,7 +340,7 @@ export class NumberInput {
333
340
  "mutable": false,
334
341
  "complexType": {
335
342
  "original": "string",
336
- "resolved": "string",
343
+ "resolved": "string | undefined",
337
344
  "references": {}
338
345
  },
339
346
  "required": false,
@@ -350,7 +357,7 @@ export class NumberInput {
350
357
  "mutable": false,
351
358
  "complexType": {
352
359
  "original": "string",
353
- "resolved": "string",
360
+ "resolved": "string | undefined",
354
361
  "references": {}
355
362
  },
356
363
  "required": false,
@@ -367,7 +374,7 @@ export class NumberInput {
367
374
  "mutable": false,
368
375
  "complexType": {
369
376
  "original": "string",
370
- "resolved": "string",
377
+ "resolved": "string | undefined",
371
378
  "references": {}
372
379
  },
373
380
  "required": false,
@@ -384,7 +391,7 @@ export class NumberInput {
384
391
  "mutable": false,
385
392
  "complexType": {
386
393
  "original": "string | number",
387
- "resolved": "number | string",
394
+ "resolved": "number | string | undefined",
388
395
  "references": {}
389
396
  },
390
397
  "required": false,
@@ -401,7 +408,7 @@ export class NumberInput {
401
408
  "mutable": false,
402
409
  "complexType": {
403
410
  "original": "string | number",
404
- "resolved": "number | string",
411
+ "resolved": "number | string | undefined",
405
412
  "references": {}
406
413
  },
407
414
  "required": false,
@@ -418,7 +425,7 @@ export class NumberInput {
418
425
  "mutable": false,
419
426
  "complexType": {
420
427
  "original": "string",
421
- "resolved": "string",
428
+ "resolved": "string | undefined",
422
429
  "references": {}
423
430
  },
424
431
  "required": false,
@@ -435,7 +442,7 @@ export class NumberInput {
435
442
  "mutable": false,
436
443
  "complexType": {
437
444
  "original": "boolean",
438
- "resolved": "boolean",
445
+ "resolved": "boolean | undefined",
439
446
  "references": {}
440
447
  },
441
448
  "required": false,
@@ -527,7 +534,7 @@ export class NumberInput {
527
534
  "id": "global::HTMLFormElement"
528
535
  }
529
536
  },
530
- "return": "Promise<HTMLFormElement>"
537
+ "return": "Promise<HTMLFormElement | null>"
531
538
  },
532
539
  "docs": {
533
540
  "text": "",
@@ -1 +1 @@
1
- {"version":3,"file":"number-input.js","sourceRoot":"","sources":["../../../src/components/input/number-input.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;;;AAEH,OAAO,EAAE,SAAS,EA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K,CAAC,CACpC,CAAC;oCACF,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gCACpC,CAAC,GACe,CACd,CACE,CACN,CACW,CACd,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AAjKC;IADC,uBAAuB,EAAE;sDAGzB","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { iconMinus, iconPlus } from '@siemens/ix-icons/icons';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Method,\n Prop,\n State,\n h,\n} from '@stencil/core';\nimport {\n HookValidationLifecycle,\n IxInputFieldComponent,\n ValidationResults,\n} from '../utils/input';\nimport { MakeRef, makeRef } from '../utils/make-ref';\nimport { InputElement, SlotEnd, SlotStart } from './input.fc';\nimport {\n adjustPaddingForStartAndEnd,\n checkAllowedKeys,\n checkInternalValidity,\n mapValidationResult,\n onInputBlur,\n} from './input.util';\n\nlet numberInputIds = 0;\n\n/**\n * @since 2.6.0\n * @form-ready 2.6.0\n */\n@Component({\n tag: 'ix-number-input',\n styleUrl: 'number-input.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class NumberInput implements IxInputFieldComponent<number> {\n @Element() hostElement!: HTMLIxNumberInputElement;\n @AttachInternals() formInternals!: ElementInternals;\n\n /**\n * name of the input element\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * placeholder of the input element\n */\n @Prop({ reflect: true }) placeholder?: string;\n\n /**\n * The value of the input field\n */\n @Prop({ reflect: true, mutable: true }) value: number = 0;\n\n /**\n * Indicates if the field is required\n */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Disables the input field\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Indicates if the field is read-only\n */\n @Prop() readonly: boolean = false;\n\n /**\n * The helper text for the input field\n */\n @Prop() helperText?: string;\n\n /**\n * The info text for the input field\n */\n @Prop() infoText?: string;\n\n /**\n * Indicates if the text should be shown as a tooltip\n */\n @Prop() showTextAsTooltip?: boolean;\n\n /**\n * The valid text for the input field\n */\n @Prop() validText?: string;\n\n /**\n * The warning text for the input field\n */\n @Prop() warningText?: string;\n\n /**\n * The label for the input field\n */\n @Prop({ reflect: true }) label?: string;\n\n /**\n * The error text for the input field\n */\n @Prop() invalidText?: string;\n\n /**\n * The pattern for the input field\n */\n @Prop() pattern?: string;\n\n /**\n * The minimum value for the input field\n */\n @Prop() min?: string | number;\n\n /**\n * The maximum value for the input field\n */\n @Prop() max?: string | number;\n\n /**\n * The allowed characters pattern for the input field\n */\n @Prop() allowedCharactersPattern?: string;\n\n /**\n * Indicates if the stepper buttons should be shown\n */\n @Prop() showStepperButtons?: boolean;\n\n /**\n * Event emitted when the value of the input field changes\n */\n @Event() valueChange!: EventEmitter<number>;\n\n /**\n * Event emitted when the validity state of the input field changes\n */\n @Event() validityStateChange!: EventEmitter<ValidityState>;\n\n /**\n * Event emitted when the input field loses focus\n */\n @Event() ixBlur!: EventEmitter<void>;\n\n @State() isInvalid = false;\n @State() isValid = false;\n @State() isInfo = false;\n @State() isWarning = false;\n @State() isInvalidByRequired = false;\n\n private readonly inputRef = makeRef<HTMLInputElement>();\n private readonly slotEndRef = makeRef<HTMLDivElement>();\n private readonly slotStartRef = makeRef<HTMLDivElement>();\n private readonly numberInputId = `number-input-${numberInputIds++}`;\n\n @HookValidationLifecycle()\n updateClassMappings(result: ValidationResults) {\n mapValidationResult(this, result);\n }\n\n componentWillLoad() {\n this.updateFormInternalValue(this.value);\n }\n\n componentDidRender() {\n this.updatePaddings();\n }\n\n private updatePaddings() {\n adjustPaddingForStartAndEnd(\n this.slotStartRef.current,\n this.slotEndRef.current,\n this.inputRef.current\n );\n }\n\n updateFormInternalValue(value: number) {\n this.formInternals.setFormValue(value.toString());\n this.value = value;\n }\n\n /** @internal */\n @Method()\n async getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return this.formInternals.form;\n }\n\n /** @internal */\n @Method()\n hasValidValue(): Promise<boolean> {\n return Promise.resolve(!!this.value);\n }\n\n /**\n * Returns the native input element used under the hood\n */\n @Method()\n getNativeInputElement(): Promise<HTMLInputElement> {\n return this.inputRef.waitForCurrent();\n }\n\n /**\n * Focuses the input field\n */\n @Method()\n async focusInput(): Promise<void> {\n return (await this.getNativeInputElement()).focus();\n }\n\n render() {\n const showStepperButtons =\n this.showStepperButtons && (this.disabled || this.readonly) === false;\n\n return (\n <Host\n class={{\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n >\n <ix-field-wrapper\n id={this.numberInputId}\n required={this.required}\n label={this.label}\n helperText={this.helperText}\n invalidText={this.invalidText}\n infoText={this.infoText}\n warningText={this.warningText}\n validText={this.validText}\n showTextAsTooltip={this.showTextAsTooltip}\n isInvalid={this.isInvalid}\n isValid={this.isValid}\n isInfo={this.isInfo}\n isWarning={this.isWarning}\n controlRef={this.inputRef as unknown as MakeRef<HTMLElement>}\n >\n <div\n class={{\n 'input-wrapper': true,\n 'show-stepper-buttons': !!this.showStepperButtons,\n }}\n >\n <SlotStart\n slotStartRef={this.slotStartRef}\n onSlotChange={() => this.updatePaddings()}\n ></SlotStart>\n <InputElement\n id={this.numberInputId}\n readonly={this.readonly}\n disabled={this.disabled}\n min={this.min}\n max={this.max}\n pattern={this.pattern}\n type={'number'}\n isInvalid={this.isInvalid}\n required={this.required}\n value={this.value}\n placeholder={this.placeholder}\n inputRef={this.inputRef}\n onKeyPress={(event) => checkAllowedKeys(this, event)}\n valueChange={(value) => this.valueChange.emit(Number(value))}\n updateFormInternalValue={(value) =>\n this.updateFormInternalValue(Number(value))\n }\n onBlur={() => onInputBlur(this, this.inputRef.current)}\n ></InputElement>\n <SlotEnd\n slotEndRef={this.slotEndRef}\n onSlotChange={() => this.updatePaddings()}\n >\n <div\n class={{\n 'number-stepper-container': true,\n 'container-hidden': !showStepperButtons,\n }}\n >\n <ix-icon-button\n ghost\n icon={iconMinus}\n size=\"16\"\n class=\"number-stepper-button step-minus\"\n onClick={() => {\n if (!this.inputRef.current) {\n return;\n }\n this.inputRef.current.stepDown();\n checkInternalValidity(this, this.inputRef.current);\n this.updateFormInternalValue(\n Number(this.inputRef.current.value)\n );\n this.valueChange.emit(this.value);\n }}\n ></ix-icon-button>\n <ix-icon-button\n ghost\n icon={iconPlus}\n size=\"16\"\n class=\"number-stepper-button step-plus\"\n onClick={() => {\n if (!this.inputRef.current) {\n return;\n }\n this.inputRef.current.stepUp();\n checkInternalValidity(this, this.inputRef.current);\n this.updateFormInternalValue(\n Number(this.inputRef.current.value)\n );\n this.valueChange.emit(this.value);\n }}\n ></ix-icon-button>\n </div>\n </SlotEnd>\n </div>\n </ix-field-wrapper>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"number-input.js","sourceRoot":"","sources":["../../../src/components/input/number-input.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;;;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OA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AI,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;oCACnD,IAAI,CAAC,uBAAuB,CAC1B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CACpC,CAAC;oCACF,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gCACpC,CAAC,GACe,CACd,CACE,CACN,CACW,CACd,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AA1KC;IADC,uBAAuB,EAAE;sDAGzB","sourcesContent":["/*\n * SPDX-FileCopyrightText: 2024 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { iconMinus, iconPlus } from '@siemens/ix-icons/icons';\nimport {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n State,\n} from '@stencil/core';\nimport {\n HookValidationLifecycle,\n IxInputFieldComponent,\n ValidationResults,\n} from '../utils/input';\nimport { makeRef } from '../utils/make-ref';\nimport { InputElement, SlotEnd, SlotStart } from './input.fc';\nimport {\n addDisposableChangesAndVisibilityObservers,\n adjustPaddingForStartAndEnd,\n checkAllowedKeys,\n checkInternalValidity,\n DisposableChangesAndVisibilityObservers,\n mapValidationResult,\n onInputBlur,\n} from './input.util';\n\nlet numberInputIds = 0;\n\n/**\n * @since 2.6.0\n * @form-ready 2.6.0\n * @slot start - Element will be displayed at the start of the input\n * @slot end - Element will be displayed at the end of the input\n */\n@Component({\n tag: 'ix-number-input',\n styleUrl: 'number-input.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class NumberInput implements IxInputFieldComponent<number> {\n @Element() hostElement!: HTMLIxNumberInputElement;\n @AttachInternals() formInternals!: ElementInternals;\n\n /**\n * name of the input element\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * placeholder of the input element\n */\n @Prop({ reflect: true }) placeholder?: string;\n\n /**\n * The value of the input field\n */\n @Prop({ reflect: true, mutable: true }) value: number = 0;\n\n /**\n * Indicates if the field is required\n */\n @Prop({ reflect: true }) required: boolean = false;\n\n /**\n * Disables the input field\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Indicates if the field is read-only\n */\n @Prop() readonly: boolean = false;\n\n /**\n * The helper text for the input field\n */\n @Prop() helperText?: string;\n\n /**\n * The info text for the input field\n */\n @Prop() infoText?: string;\n\n /**\n * Indicates if the text should be shown as a tooltip\n */\n @Prop() showTextAsTooltip?: boolean;\n\n /**\n * The valid text for the input field\n */\n @Prop() validText?: string;\n\n /**\n * The warning text for the input field\n */\n @Prop() warningText?: string;\n\n /**\n * The label for the input field\n */\n @Prop({ reflect: true }) label?: string;\n\n /**\n * The error text for the input field\n */\n @Prop() invalidText?: string;\n\n /**\n * The pattern for the input field\n */\n @Prop() pattern?: string;\n\n /**\n * The minimum value for the input field\n */\n @Prop() min?: string | number;\n\n /**\n * The maximum value for the input field\n */\n @Prop() max?: string | number;\n\n /**\n * The allowed characters pattern for the input field\n */\n @Prop() allowedCharactersPattern?: string;\n\n /**\n * Indicates if the stepper buttons should be shown\n */\n @Prop() showStepperButtons?: boolean;\n\n /**\n * Event emitted when the value of the input field changes\n */\n @Event() valueChange!: EventEmitter<number>;\n\n /**\n * Event emitted when the validity state of the input field changes\n */\n @Event() validityStateChange!: EventEmitter<ValidityState>;\n\n /**\n * Event emitted when the input field loses focus\n */\n @Event() ixBlur!: EventEmitter<void>;\n\n @State() isInvalid = false;\n @State() isValid = false;\n @State() isInfo = false;\n @State() isWarning = false;\n @State() isInvalidByRequired = false;\n\n private readonly inputRef = makeRef<HTMLInputElement>();\n private readonly slotEndRef = makeRef<HTMLDivElement>();\n private readonly slotStartRef = makeRef<HTMLDivElement>();\n private readonly numberInputId = `number-input-${numberInputIds++}`;\n\n private disposableChangesAndVisibilityObservers?: DisposableChangesAndVisibilityObservers;\n\n @HookValidationLifecycle()\n updateClassMappings(result: ValidationResults) {\n mapValidationResult(this, result);\n }\n\n componentWillLoad() {\n this.updateFormInternalValue(this.value);\n }\n\n connectedCallback() {\n this.disposableChangesAndVisibilityObservers =\n addDisposableChangesAndVisibilityObservers(\n this.hostElement,\n this.updatePaddings.bind(this)\n );\n }\n\n disconnectedCallback() {\n this.disposableChangesAndVisibilityObservers?.();\n }\n\n private updatePaddings() {\n adjustPaddingForStartAndEnd(\n this.slotStartRef.current,\n this.slotEndRef.current,\n this.inputRef.current\n );\n }\n\n updateFormInternalValue(value: number) {\n this.formInternals.setFormValue(value.toString());\n this.value = value;\n }\n\n /** @internal */\n @Method()\n async getAssociatedFormElement(): Promise<HTMLFormElement | null> {\n return this.formInternals.form;\n }\n\n /** @internal */\n @Method()\n hasValidValue(): Promise<boolean> {\n return Promise.resolve(!!this.value);\n }\n\n /**\n * Returns the native input element used under the hood\n */\n @Method()\n getNativeInputElement(): Promise<HTMLInputElement> {\n return this.inputRef.waitForCurrent();\n }\n\n /**\n * Focuses the input field\n */\n @Method()\n async focusInput(): Promise<void> {\n return (await this.getNativeInputElement()).focus();\n }\n\n render() {\n const showStepperButtons =\n this.showStepperButtons && (this.disabled || this.readonly) === false;\n\n return (\n <Host\n class={{\n disabled: this.disabled,\n readonly: this.readonly,\n }}\n >\n <ix-field-wrapper\n id={this.numberInputId}\n required={this.required}\n label={this.label}\n helperText={this.helperText}\n invalidText={this.invalidText}\n infoText={this.infoText}\n warningText={this.warningText}\n validText={this.validText}\n showTextAsTooltip={this.showTextAsTooltip}\n isInvalid={this.isInvalid}\n isValid={this.isValid}\n isInfo={this.isInfo}\n isWarning={this.isWarning}\n controlRef={this.inputRef}\n >\n <div\n class={{\n 'input-wrapper': true,\n 'show-stepper-buttons': !!this.showStepperButtons,\n }}\n >\n <SlotStart\n slotStartRef={this.slotStartRef}\n onSlotChange={() => this.updatePaddings()}\n ></SlotStart>\n\n <InputElement\n id={this.numberInputId}\n readonly={this.readonly}\n disabled={this.disabled}\n min={this.min}\n max={this.max}\n pattern={this.pattern}\n type={'number'}\n isInvalid={this.isInvalid}\n required={this.required}\n value={this.value}\n placeholder={this.placeholder}\n inputRef={this.inputRef}\n onKeyPress={(event) => checkAllowedKeys(this, event)}\n valueChange={(value) => this.valueChange.emit(Number(value))}\n updateFormInternalValue={(value) =>\n this.updateFormInternalValue(Number(value))\n }\n onBlur={() => onInputBlur(this, this.inputRef.current)}\n ></InputElement>\n <SlotEnd\n slotEndRef={this.slotEndRef}\n onSlotChange={() => this.updatePaddings()}\n >\n <div\n class={{\n 'number-stepper-container': true,\n 'container-hidden': !showStepperButtons,\n }}\n >\n <ix-icon-button\n ghost\n icon={iconMinus}\n size=\"16\"\n class=\"number-stepper-button step-minus\"\n onClick={() => {\n if (!this.inputRef.current) {\n return;\n }\n this.inputRef.current.stepDown();\n checkInternalValidity(this, this.inputRef.current);\n this.updateFormInternalValue(\n Number(this.inputRef.current.value)\n );\n this.valueChange.emit(this.value);\n }}\n ></ix-icon-button>\n <ix-icon-button\n ghost\n icon={iconPlus}\n size=\"16\"\n class=\"number-stepper-button step-plus\"\n onClick={() => {\n if (!this.inputRef.current) {\n return;\n }\n this.inputRef.current.stepUp();\n checkInternalValidity(this, this.inputRef.current);\n this.updateFormInternalValue(\n Number(this.inputRef.current.value)\n );\n this.valueChange.emit(this.value);\n }}\n ></ix-icon-button>\n </div>\n </SlotEnd>\n </div>\n </ix-field-wrapper>\n </Host>\n );\n }\n}\n"]}