@siemens/ix 0.0.0-pr-1974-20250627114851 → 0.0.0-pr-1974-20250627115746

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 (485) hide show
  1. package/components/custom-elements.d.ts +11 -0
  2. package/components/index.d.ts +33 -0
  3. package/components/index.js +122 -0
  4. package/components/index.js.map +1 -0
  5. package/components/ix-action-card.d.ts +11 -0
  6. package/components/ix-action-card.js +72 -0
  7. package/components/ix-action-card.js.map +1 -0
  8. package/components/ix-application-header.d.ts +11 -0
  9. package/components/ix-application-header.js +9 -0
  10. package/components/ix-application-header.js.map +1 -0
  11. package/components/ix-application-sidebar.d.ts +11 -0
  12. package/components/ix-application-sidebar.js +64 -0
  13. package/components/ix-application-sidebar.js.map +1 -0
  14. package/components/ix-application-switch-modal.d.ts +11 -0
  15. package/components/ix-application-switch-modal.js +106 -0
  16. package/components/ix-application-switch-modal.js.map +1 -0
  17. package/components/ix-application.d.ts +11 -0
  18. package/components/ix-application.js +148 -0
  19. package/components/ix-application.js.map +1 -0
  20. package/components/ix-avatar.d.ts +11 -0
  21. package/components/ix-avatar.js +9 -0
  22. package/components/ix-avatar.js.map +1 -0
  23. package/components/ix-basic-navigation.d.ts +11 -0
  24. package/components/ix-basic-navigation.js +154 -0
  25. package/components/ix-basic-navigation.js.map +1 -0
  26. package/components/ix-blind.d.ts +11 -0
  27. package/components/ix-blind.js +130 -0
  28. package/components/ix-blind.js.map +1 -0
  29. package/components/ix-breadcrumb-item.d.ts +11 -0
  30. package/components/ix-breadcrumb-item.js +9 -0
  31. package/components/ix-breadcrumb-item.js.map +1 -0
  32. package/components/ix-breadcrumb.d.ts +11 -0
  33. package/components/ix-breadcrumb.js +169 -0
  34. package/components/ix-breadcrumb.js.map +1 -0
  35. package/components/ix-button.d.ts +11 -0
  36. package/components/ix-button.js +9 -0
  37. package/components/ix-button.js.map +1 -0
  38. package/components/ix-card-accordion.d.ts +11 -0
  39. package/components/ix-card-accordion.js +9 -0
  40. package/components/ix-card-accordion.js.map +1 -0
  41. package/components/ix-card-content.d.ts +11 -0
  42. package/components/ix-card-content.js +9 -0
  43. package/components/ix-card-content.js.map +1 -0
  44. package/components/ix-card-list.d.ts +11 -0
  45. package/components/ix-card-list.js +256 -0
  46. package/components/ix-card-list.js.map +1 -0
  47. package/components/ix-card-title.d.ts +11 -0
  48. package/components/ix-card-title.js +9 -0
  49. package/components/ix-card-title.js.map +1 -0
  50. package/components/ix-card.d.ts +11 -0
  51. package/components/ix-card.js +9 -0
  52. package/components/ix-card.js.map +1 -0
  53. package/components/ix-category-filter.d.ts +11 -0
  54. package/components/ix-category-filter.js +600 -0
  55. package/components/ix-category-filter.js.map +1 -0
  56. package/components/ix-checkbox-group.d.ts +11 -0
  57. package/components/ix-checkbox-group.js +158 -0
  58. package/components/ix-checkbox-group.js.map +1 -0
  59. package/components/ix-checkbox.d.ts +11 -0
  60. package/components/ix-checkbox.js +163 -0
  61. package/components/ix-checkbox.js.map +1 -0
  62. package/components/ix-chip.d.ts +11 -0
  63. package/components/ix-chip.js +154 -0
  64. package/components/ix-chip.js.map +1 -0
  65. package/components/ix-col.d.ts +11 -0
  66. package/components/ix-col.js +9 -0
  67. package/components/ix-col.js.map +1 -0
  68. package/components/ix-content-header.d.ts +11 -0
  69. package/components/ix-content-header.js +73 -0
  70. package/components/ix-content-header.js.map +1 -0
  71. package/components/ix-content.d.ts +11 -0
  72. package/components/ix-content.js +49 -0
  73. package/components/ix-content.js.map +1 -0
  74. package/components/ix-css-grid-item.d.ts +11 -0
  75. package/components/ix-css-grid-item.js +40 -0
  76. package/components/ix-css-grid-item.js.map +1 -0
  77. package/components/ix-css-grid.d.ts +11 -0
  78. package/components/ix-css-grid.js +117 -0
  79. package/components/ix-css-grid.js.map +1 -0
  80. package/components/ix-custom-field.d.ts +11 -0
  81. package/components/ix-custom-field.js +112 -0
  82. package/components/ix-custom-field.js.map +1 -0
  83. package/components/ix-date-dropdown.d.ts +11 -0
  84. package/components/ix-date-dropdown.js +368 -0
  85. package/components/ix-date-dropdown.js.map +1 -0
  86. package/components/ix-date-input.d.ts +11 -0
  87. package/components/ix-date-input.js +393 -0
  88. package/components/ix-date-input.js.map +1 -0
  89. package/components/ix-date-picker.d.ts +11 -0
  90. package/components/ix-date-picker.js +9 -0
  91. package/components/ix-date-picker.js.map +1 -0
  92. package/components/ix-date-time-card.d.ts +11 -0
  93. package/components/ix-date-time-card.js +9 -0
  94. package/components/ix-date-time-card.js.map +1 -0
  95. package/components/ix-datetime-picker.d.ts +11 -0
  96. package/components/ix-datetime-picker.js +204 -0
  97. package/components/ix-datetime-picker.js.map +1 -0
  98. package/components/ix-divider.d.ts +11 -0
  99. package/components/ix-divider.js +9 -0
  100. package/components/ix-divider.js.map +1 -0
  101. package/components/ix-drawer.d.ts +11 -0
  102. package/components/ix-drawer.js +200 -0
  103. package/components/ix-drawer.js.map +1 -0
  104. package/components/ix-dropdown-button.d.ts +11 -0
  105. package/components/ix-dropdown-button.js +106 -0
  106. package/components/ix-dropdown-button.js.map +1 -0
  107. package/components/ix-dropdown-header.d.ts +11 -0
  108. package/components/ix-dropdown-header.js +44 -0
  109. package/components/ix-dropdown-header.js.map +1 -0
  110. package/components/ix-dropdown-item.d.ts +11 -0
  111. package/components/ix-dropdown-item.js +9 -0
  112. package/components/ix-dropdown-item.js.map +1 -0
  113. package/components/ix-dropdown-quick-actions.d.ts +11 -0
  114. package/components/ix-dropdown-quick-actions.js +36 -0
  115. package/components/ix-dropdown-quick-actions.js.map +1 -0
  116. package/components/ix-dropdown.d.ts +11 -0
  117. package/components/ix-dropdown.js +9 -0
  118. package/components/ix-dropdown.js.map +1 -0
  119. package/components/ix-empty-state.d.ts +11 -0
  120. package/components/ix-empty-state.js +65 -0
  121. package/components/ix-empty-state.js.map +1 -0
  122. package/components/ix-event-list-item.d.ts +11 -0
  123. package/components/ix-event-list-item.js +72 -0
  124. package/components/ix-event-list-item.js.map +1 -0
  125. package/components/ix-event-list.d.ts +11 -0
  126. package/components/ix-event-list.js +173 -0
  127. package/components/ix-event-list.js.map +1 -0
  128. package/components/ix-expanding-search.d.ts +11 -0
  129. package/components/ix-expanding-search.js +145 -0
  130. package/components/ix-expanding-search.js.map +1 -0
  131. package/components/ix-field-label.d.ts +11 -0
  132. package/components/ix-field-label.js +9 -0
  133. package/components/ix-field-label.js.map +1 -0
  134. package/components/ix-field-wrapper.d.ts +11 -0
  135. package/components/ix-field-wrapper.js +9 -0
  136. package/components/ix-field-wrapper.js.map +1 -0
  137. package/components/ix-filter-chip.d.ts +11 -0
  138. package/components/ix-filter-chip.js +9 -0
  139. package/components/ix-filter-chip.js.map +1 -0
  140. package/components/ix-flip-tile-content.d.ts +11 -0
  141. package/components/ix-flip-tile-content.js +44 -0
  142. package/components/ix-flip-tile-content.js.map +1 -0
  143. package/components/ix-flip-tile.d.ts +11 -0
  144. package/components/ix-flip-tile.js +153 -0
  145. package/components/ix-flip-tile.js.map +1 -0
  146. package/components/ix-group-context-menu.d.ts +11 -0
  147. package/components/ix-group-context-menu.js +9 -0
  148. package/components/ix-group-context-menu.js.map +1 -0
  149. package/components/ix-group-item.d.ts +11 -0
  150. package/components/ix-group-item.js +9 -0
  151. package/components/ix-group-item.js.map +1 -0
  152. package/components/ix-group.d.ts +11 -0
  153. package/components/ix-group.js +221 -0
  154. package/components/ix-group.js.map +1 -0
  155. package/components/ix-helper-text.d.ts +11 -0
  156. package/components/ix-helper-text.js +95 -0
  157. package/components/ix-helper-text.js.map +1 -0
  158. package/components/ix-icon-button.d.ts +11 -0
  159. package/components/ix-icon-button.js +9 -0
  160. package/components/ix-icon-button.js.map +1 -0
  161. package/components/ix-icon-toggle-button.d.ts +11 -0
  162. package/components/ix-icon-toggle-button.js +149 -0
  163. package/components/ix-icon-toggle-button.js.map +1 -0
  164. package/components/ix-input-group.d.ts +11 -0
  165. package/components/ix-input-group.js +152 -0
  166. package/components/ix-input-group.js.map +1 -0
  167. package/components/ix-input.d.ts +11 -0
  168. package/components/ix-input.js +248 -0
  169. package/components/ix-input.js.map +1 -0
  170. package/components/ix-key-value-list.d.ts +11 -0
  171. package/components/ix-key-value-list.js +42 -0
  172. package/components/ix-key-value-list.js.map +1 -0
  173. package/components/ix-key-value.d.ts +11 -0
  174. package/components/ix-key-value.js +48 -0
  175. package/components/ix-key-value.js.map +1 -0
  176. package/components/ix-kpi.d.ts +11 -0
  177. package/components/ix-kpi.js +74 -0
  178. package/components/ix-kpi.js.map +1 -0
  179. package/components/ix-layout-auto.d.ts +11 -0
  180. package/components/ix-layout-auto.js +113 -0
  181. package/components/ix-layout-auto.js.map +1 -0
  182. package/components/ix-layout-grid.d.ts +11 -0
  183. package/components/ix-layout-grid.js +9 -0
  184. package/components/ix-layout-grid.js.map +1 -0
  185. package/components/ix-link-button.d.ts +11 -0
  186. package/components/ix-link-button.js +57 -0
  187. package/components/ix-link-button.js.map +1 -0
  188. package/components/ix-map-navigation-overlay.d.ts +11 -0
  189. package/components/ix-map-navigation-overlay.js +9 -0
  190. package/components/ix-map-navigation-overlay.js.map +1 -0
  191. package/components/ix-map-navigation.d.ts +11 -0
  192. package/components/ix-map-navigation.js +240 -0
  193. package/components/ix-map-navigation.js.map +1 -0
  194. package/components/ix-menu-about-item.d.ts +11 -0
  195. package/components/ix-menu-about-item.js +51 -0
  196. package/components/ix-menu-about-item.js.map +1 -0
  197. package/components/ix-menu-about-news.d.ts +11 -0
  198. package/components/ix-menu-about-news.js +93 -0
  199. package/components/ix-menu-about-news.js.map +1 -0
  200. package/components/ix-menu-about.d.ts +11 -0
  201. package/components/ix-menu-about.js +89 -0
  202. package/components/ix-menu-about.js.map +1 -0
  203. package/components/ix-menu-avatar-item.d.ts +11 -0
  204. package/components/ix-menu-avatar-item.js +9 -0
  205. package/components/ix-menu-avatar-item.js.map +1 -0
  206. package/components/ix-menu-avatar.d.ts +11 -0
  207. package/components/ix-menu-avatar.js +115 -0
  208. package/components/ix-menu-avatar.js.map +1 -0
  209. package/components/ix-menu-category.d.ts +11 -0
  210. package/components/ix-menu-category.js +284 -0
  211. package/components/ix-menu-category.js.map +1 -0
  212. package/components/ix-menu-expand-icon.d.ts +11 -0
  213. package/components/ix-menu-expand-icon.js +9 -0
  214. package/components/ix-menu-expand-icon.js.map +1 -0
  215. package/components/ix-menu-item.d.ts +11 -0
  216. package/components/ix-menu-item.js +9 -0
  217. package/components/ix-menu-item.js.map +1 -0
  218. package/components/ix-menu-settings-item.d.ts +11 -0
  219. package/components/ix-menu-settings-item.js +51 -0
  220. package/components/ix-menu-settings-item.js.map +1 -0
  221. package/components/ix-menu-settings.d.ts +11 -0
  222. package/components/ix-menu-settings.js +9 -0
  223. package/components/ix-menu-settings.js.map +1 -0
  224. package/components/ix-menu.d.ts +11 -0
  225. package/components/ix-menu.js +590 -0
  226. package/components/ix-menu.js.map +1 -0
  227. package/components/ix-message-bar.d.ts +11 -0
  228. package/components/ix-message-bar.js +103 -0
  229. package/components/ix-message-bar.js.map +1 -0
  230. package/components/ix-modal-content.d.ts +11 -0
  231. package/components/ix-modal-content.js +9 -0
  232. package/components/ix-modal-content.js.map +1 -0
  233. package/components/ix-modal-footer.d.ts +11 -0
  234. package/components/ix-modal-footer.js +36 -0
  235. package/components/ix-modal-footer.js.map +1 -0
  236. package/components/ix-modal-header.d.ts +11 -0
  237. package/components/ix-modal-header.js +9 -0
  238. package/components/ix-modal-header.js.map +1 -0
  239. package/components/ix-modal-loading.d.ts +11 -0
  240. package/components/ix-modal-loading.js +42 -0
  241. package/components/ix-modal-loading.js.map +1 -0
  242. package/components/ix-modal.d.ts +11 -0
  243. package/components/ix-modal.js +241 -0
  244. package/components/ix-modal.js.map +1 -0
  245. package/components/ix-number-input.d.ts +11 -0
  246. package/components/ix-number-input.js +241 -0
  247. package/components/ix-number-input.js.map +1 -0
  248. package/components/ix-pagination.d.ts +11 -0
  249. package/components/ix-pagination.js +261 -0
  250. package/components/ix-pagination.js.map +1 -0
  251. package/components/ix-pane-layout.d.ts +11 -0
  252. package/components/ix-pane-layout.js +311 -0
  253. package/components/ix-pane-layout.js.map +1 -0
  254. package/components/ix-pane.d.ts +11 -0
  255. package/components/ix-pane.js +568 -0
  256. package/components/ix-pane.js.map +1 -0
  257. package/components/ix-pill.d.ts +11 -0
  258. package/components/ix-pill.js +127 -0
  259. package/components/ix-pill.js.map +1 -0
  260. package/components/ix-progress-indicator.d.ts +11 -0
  261. package/components/ix-progress-indicator.js +193 -0
  262. package/components/ix-progress-indicator.js.map +1 -0
  263. package/components/ix-push-card.d.ts +11 -0
  264. package/components/ix-push-card.js +82 -0
  265. package/components/ix-push-card.js.map +1 -0
  266. package/components/ix-radio-group.d.ts +11 -0
  267. package/components/ix-radio-group.js +195 -0
  268. package/components/ix-radio-group.js.map +1 -0
  269. package/components/ix-radio.d.ts +11 -0
  270. package/components/ix-radio.js +145 -0
  271. package/components/ix-radio.js.map +1 -0
  272. package/components/ix-row.d.ts +11 -0
  273. package/components/ix-row.js +9 -0
  274. package/components/ix-row.js.map +1 -0
  275. package/components/ix-select-item.d.ts +11 -0
  276. package/components/ix-select-item.js +9 -0
  277. package/components/ix-select-item.js.map +1 -0
  278. package/components/ix-select.d.ts +11 -0
  279. package/components/ix-select.js +9 -0
  280. package/components/ix-select.js.map +1 -0
  281. package/components/ix-slider.d.ts +11 -0
  282. package/components/ix-slider.js +255 -0
  283. package/components/ix-slider.js.map +1 -0
  284. package/components/ix-spinner.d.ts +11 -0
  285. package/components/ix-spinner.js +9 -0
  286. package/components/ix-spinner.js.map +1 -0
  287. package/components/ix-split-button.d.ts +11 -0
  288. package/components/ix-split-button.js +117 -0
  289. package/components/ix-split-button.js.map +1 -0
  290. package/components/ix-tab-item.d.ts +11 -0
  291. package/components/ix-tab-item.js +9 -0
  292. package/components/ix-tab-item.js.map +1 -0
  293. package/components/ix-tabs.d.ts +11 -0
  294. package/components/ix-tabs.js +9 -0
  295. package/components/ix-tabs.js.map +1 -0
  296. package/components/ix-textarea.d.ts +11 -0
  297. package/components/ix-textarea.js +192 -0
  298. package/components/ix-textarea.js.map +1 -0
  299. package/components/ix-tile.d.ts +11 -0
  300. package/components/ix-tile.js +63 -0
  301. package/components/ix-tile.js.map +1 -0
  302. package/components/ix-time-input.d.ts +11 -0
  303. package/components/ix-time-input.js +442 -0
  304. package/components/ix-time-input.js.map +1 -0
  305. package/components/ix-time-picker.d.ts +11 -0
  306. package/components/ix-time-picker.js +9 -0
  307. package/components/ix-time-picker.js.map +1 -0
  308. package/components/ix-toast-container.d.ts +11 -0
  309. package/components/ix-toast-container.js +143 -0
  310. package/components/ix-toast-container.js.map +1 -0
  311. package/components/ix-toast.d.ts +11 -0
  312. package/components/ix-toast.js +9 -0
  313. package/components/ix-toast.js.map +1 -0
  314. package/components/ix-toggle-button.d.ts +11 -0
  315. package/components/ix-toggle-button.js +128 -0
  316. package/components/ix-toggle-button.js.map +1 -0
  317. package/components/ix-toggle.d.ts +11 -0
  318. package/components/ix-toggle.js +188 -0
  319. package/components/ix-toggle.js.map +1 -0
  320. package/components/ix-tooltip.d.ts +11 -0
  321. package/components/ix-tooltip.js +9 -0
  322. package/components/ix-tooltip.js.map +1 -0
  323. package/components/ix-tree-item.d.ts +11 -0
  324. package/components/ix-tree-item.js +9 -0
  325. package/components/ix-tree-item.js.map +1 -0
  326. package/components/ix-tree.d.ts +11 -0
  327. package/components/ix-tree.js +610 -0
  328. package/components/ix-tree.js.map +1 -0
  329. package/components/ix-typography.d.ts +11 -0
  330. package/components/ix-typography.js +9 -0
  331. package/components/ix-typography.js.map +1 -0
  332. package/components/ix-upload.d.ts +11 -0
  333. package/components/ix-upload.js +234 -0
  334. package/components/ix-upload.js.map +1 -0
  335. package/components/ix-validation-tooltip.d.ts +11 -0
  336. package/components/ix-validation-tooltip.js +182 -0
  337. package/components/ix-validation-tooltip.js.map +1 -0
  338. package/components/ix-workflow-step.d.ts +11 -0
  339. package/components/ix-workflow-step.js +147 -0
  340. package/components/ix-workflow-step.js.map +1 -0
  341. package/components/ix-workflow-steps.d.ts +11 -0
  342. package/components/ix-workflow-steps.js +112 -0
  343. package/components/ix-workflow-steps.js.map +1 -0
  344. package/components/p--2LOMK-5.js +105 -0
  345. package/components/p--2LOMK-5.js.map +1 -0
  346. package/components/p-5uA5ifmT.js +72 -0
  347. package/components/p-5uA5ifmT.js.map +1 -0
  348. package/components/p-9dLpp1OQ.js +71 -0
  349. package/components/p-9dLpp1OQ.js.map +1 -0
  350. package/components/p-B1Gzt08S.js +51 -0
  351. package/components/p-B1Gzt08S.js.map +1 -0
  352. package/components/p-B3duqvjW.js +33 -0
  353. package/components/p-B3duqvjW.js.map +1 -0
  354. package/components/p-B6e7P4xT.js +42 -0
  355. package/components/p-B6e7P4xT.js.map +1 -0
  356. package/components/p-BGzrnl_l.js +21 -0
  357. package/components/p-BGzrnl_l.js.map +1 -0
  358. package/components/p-BH3f5fa3.js +37 -0
  359. package/components/p-BH3f5fa3.js.map +1 -0
  360. package/components/p-BJcX2_-N.js +110 -0
  361. package/components/p-BJcX2_-N.js.map +1 -0
  362. package/components/p-BMU8AlMD.js +107 -0
  363. package/components/p-BMU8AlMD.js.map +1 -0
  364. package/components/p-BNu7ac9R.js +79 -0
  365. package/components/p-BNu7ac9R.js.map +1 -0
  366. package/components/p-BP-8cvOJ.js +90 -0
  367. package/components/p-BP-8cvOJ.js.map +1 -0
  368. package/components/p-BQ6999e5.js +22 -0
  369. package/components/p-BQ6999e5.js.map +1 -0
  370. package/components/p-BXjBChze.js +130 -0
  371. package/components/p-BXjBChze.js.map +1 -0
  372. package/components/p-Bb7pDeaQ.js +144 -0
  373. package/components/p-Bb7pDeaQ.js.map +1 -0
  374. package/components/p-BcGAKMQ_.js +76 -0
  375. package/components/p-BcGAKMQ_.js.map +1 -0
  376. package/components/p-BdCnOrqW.js +47 -0
  377. package/components/p-BdCnOrqW.js.map +1 -0
  378. package/components/p-BedSAVZh.js +90 -0
  379. package/components/p-BedSAVZh.js.map +1 -0
  380. package/components/p-BhLbU_vK.js +129 -0
  381. package/components/p-BhLbU_vK.js.map +1 -0
  382. package/components/p-Bi1VyG64.js +46 -0
  383. package/components/p-Bi1VyG64.js.map +1 -0
  384. package/components/p-BkWbk29R.js +75 -0
  385. package/components/p-BkWbk29R.js.map +1 -0
  386. package/components/p-BmmgJGNd.js +64 -0
  387. package/components/p-BmmgJGNd.js.map +1 -0
  388. package/components/p-Bu-j8wxy.js +162 -0
  389. package/components/p-Bu-j8wxy.js.map +1 -0
  390. package/components/p-BuJ6BWIi.js +2042 -0
  391. package/components/p-BuJ6BWIi.js.map +1 -0
  392. package/components/p-Bvsx56zn.js +203 -0
  393. package/components/p-Bvsx56zn.js.map +1 -0
  394. package/components/p-BygLxZIM.js +54 -0
  395. package/components/p-BygLxZIM.js.map +1 -0
  396. package/components/p-Bzyt4nTL.js +110 -0
  397. package/components/p-Bzyt4nTL.js.map +1 -0
  398. package/components/p-C6o-AByw.js +33 -0
  399. package/components/p-C6o-AByw.js.map +1 -0
  400. package/components/p-CAqtPJ4-.js +1786 -0
  401. package/components/p-CAqtPJ4-.js.map +1 -0
  402. package/components/p-CGwHQeMX.js +54 -0
  403. package/components/p-CGwHQeMX.js.map +1 -0
  404. package/components/p-CKkTXQiw.js +164 -0
  405. package/components/p-CKkTXQiw.js.map +1 -0
  406. package/components/p-CX81WQtk.js +14 -0
  407. package/components/p-CX81WQtk.js.map +1 -0
  408. package/components/p-Cb-eBcUF.js +61 -0
  409. package/components/p-Cb-eBcUF.js.map +1 -0
  410. package/components/p-Cp5J1RZq.js +765 -0
  411. package/components/p-Cp5J1RZq.js.map +1 -0
  412. package/components/p-Cpxz1Kcs.js +19 -0
  413. package/components/p-Cpxz1Kcs.js.map +1 -0
  414. package/components/p-Cs8DEpjh.js +611 -0
  415. package/components/p-Cs8DEpjh.js.map +1 -0
  416. package/components/p-Cut5OrRw.js +461 -0
  417. package/components/p-Cut5OrRw.js.map +1 -0
  418. package/components/p-CvvOe8xV.js +151 -0
  419. package/components/p-CvvOe8xV.js.map +1 -0
  420. package/components/p-CyFFBc_G.js +100 -0
  421. package/components/p-CyFFBc_G.js.map +1 -0
  422. package/components/p-D3Aowo70.js +113 -0
  423. package/components/p-D3Aowo70.js.map +1 -0
  424. package/components/p-D3K9vmFp.js +157 -0
  425. package/components/p-D3K9vmFp.js.map +1 -0
  426. package/components/p-D6vSVaHq.js +26 -0
  427. package/components/p-D6vSVaHq.js.map +1 -0
  428. package/components/p-D9LaIICQ.js +118 -0
  429. package/components/p-D9LaIICQ.js.map +1 -0
  430. package/components/p-DCx3-1oU.js +310 -0
  431. package/components/p-DCx3-1oU.js.map +1 -0
  432. package/components/p-DDHkNPby.js +79 -0
  433. package/components/p-DDHkNPby.js.map +1 -0
  434. package/components/p-DJ7U7oUq.js +89 -0
  435. package/components/p-DJ7U7oUq.js.map +1 -0
  436. package/components/p-DMlmNp-B.js +33 -0
  437. package/components/p-DMlmNp-B.js.map +1 -0
  438. package/components/p-DWO4uklL.js +146 -0
  439. package/components/p-DWO4uklL.js.map +1 -0
  440. package/components/p-DaztMgDr.js +757 -0
  441. package/components/p-DaztMgDr.js.map +1 -0
  442. package/components/p-DbR-LZrk.js +33 -0
  443. package/components/p-DbR-LZrk.js.map +1 -0
  444. package/components/p-DfbCO042.js +207 -0
  445. package/components/p-DfbCO042.js.map +1 -0
  446. package/components/p-DkGdSI6e.js +103 -0
  447. package/components/p-DkGdSI6e.js.map +1 -0
  448. package/components/p-DojBQCbP.js +55 -0
  449. package/components/p-DojBQCbP.js.map +1 -0
  450. package/components/p-Dp15M30K.js +20 -0
  451. package/components/p-Dp15M30K.js.map +1 -0
  452. package/components/p-Dp4RJcgZ.js +125 -0
  453. package/components/p-Dp4RJcgZ.js.map +1 -0
  454. package/components/p-DyHdZRT0.js +359 -0
  455. package/components/p-DyHdZRT0.js.map +1 -0
  456. package/components/p-DyMgW0fR.js +65 -0
  457. package/components/p-DyMgW0fR.js.map +1 -0
  458. package/components/p-G0biE2Kx.js +33 -0
  459. package/components/p-G0biE2Kx.js.map +1 -0
  460. package/components/p-JJddxCCh.js +42 -0
  461. package/components/p-JJddxCCh.js.map +1 -0
  462. package/components/p-Ooq8eqJM.js +33 -0
  463. package/components/p-Ooq8eqJM.js.map +1 -0
  464. package/components/p-Ou74PMQs.js +1313 -0
  465. package/components/p-Ou74PMQs.js.map +1 -0
  466. package/components/p-PxA_udyJ.js +254 -0
  467. package/components/p-PxA_udyJ.js.map +1 -0
  468. package/components/p-TNoCM8Wi.js +83 -0
  469. package/components/p-TNoCM8Wi.js.map +1 -0
  470. package/components/p-UQa1aROL.js +23 -0
  471. package/components/p-UQa1aROL.js.map +1 -0
  472. package/components/p-bDicGJUN.js +7697 -0
  473. package/components/p-bDicGJUN.js.map +1 -0
  474. package/components/p-bcj7UEIC.js +24 -0
  475. package/components/p-bcj7UEIC.js.map +1 -0
  476. package/components/p-kY0vP3rC.js +122 -0
  477. package/components/p-kY0vP3rC.js.map +1 -0
  478. package/components/p-qauH9Ci4.js +54 -0
  479. package/components/p-qauH9Ci4.js.map +1 -0
  480. package/components/p-r63hglsv.js +90 -0
  481. package/components/p-r63hglsv.js.map +1 -0
  482. package/components/p-tH4n038Z.js +48 -0
  483. package/components/p-tH4n038Z.js.map +1 -0
  484. package/components/package.json +9 -0
  485. package/package.json +2 -1
@@ -0,0 +1,765 @@
1
+ import { p as proxyCustomElement, H, e as createEvent, h, d as Host } from './p-BuJ6BWIi.js';
2
+ import { L as iconPlus, e as iconClear, v as iconChevronDownSmall } from './p-CGwHQeMX.js';
3
+ import { a as a11yBoolean } from './p-Bb7pDeaQ.js';
4
+ import { A as ArrowFocusController, d as defineCustomElement$a } from './p-Cut5OrRw.js';
5
+ import { H as HookValidationLifecycle } from './p-D9LaIICQ.js';
6
+ import { O as OnListener } from './p-BcGAKMQ_.js';
7
+ import { m as makeRef } from './p-bcj7UEIC.js';
8
+ import { c as createMutationObserver } from './p-CX81WQtk.js';
9
+ import { d as defineCustomElement$9 } from './p-TNoCM8Wi.js';
10
+ import { d as defineCustomElement$8 } from './p-Bu-j8wxy.js';
11
+ import { d as defineCustomElement$7 } from './p-BMU8AlMD.js';
12
+ import { d as defineCustomElement$6 } from './p-BmmgJGNd.js';
13
+ import { d as defineCustomElement$5 } from './p-BXjBChze.js';
14
+ import { d as defineCustomElement$4 } from './p-BhLbU_vK.js';
15
+ import { d as defineCustomElement$3 } from './p-BygLxZIM.js';
16
+ import { d as defineCustomElement$2 } from './p-DyHdZRT0.js';
17
+ import { d as defineCustomElement$1 } from './p-DyMgW0fR.js';
18
+
19
+ const selectCss = ":host{display:inline-block;position:relative;min-height:2rem;height:auto;border-radius:var(--theme-input--border-radius)}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}@-moz-document url-prefix(){:host *{scrollbar-color:var(--theme-scrollbar-thumb--background) var(--theme-scrollbar-track--background);scrollbar-width:thin}}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .display-none{display:none}:host .select{position:relative;display:flex;align-items:center;width:100%;background-color:var(--theme-input--background);border:var(--theme-input--border-thickness) solid var(--theme-input--border-color);border-radius:var(--theme-input--border-radius);padding:0 0 0 0.5rem;box-shadow:var(--theme-inset-shadow-1) !important}:host .select:not(.disabled):not(:disabled){cursor:pointer}:host .select:not(.disabled):not(:disabled):hover,:host .select:not(.disabled):not(:disabled).hover{background-color:var(--theme-input--background--hover);border-color:var(--theme-input--border-color--hover)}:host .select:focus-within{background-color:var(--theme-input--background--focus);border-color:var(--theme-input--border-color--focus);outline:1px solid #119fff;outline-offset:var(--theme-input--focus--outline-offset)}:host .select.readonly,:host .select.disabled{box-shadow:none !important;border:none;border-radius:0;cursor:pointer}:host .select.readonly,:host .select.readonly:hover,:host .select.readonly:active,:host .select.disabled,:host .select.disabled:hover,:host .select.disabled:active{background-color:transparent !important}:host .select.readonly:focus,:host .select.readonly:focus-within,:host .select.readonly:focus-visible,:host .select.disabled:focus,:host .select.disabled:focus-within,:host .select.disabled:focus-visible{outline:none}:host .select.readonly input:focus,:host .select.readonly input:focus-visible,:host .select.disabled input:focus,:host .select.disabled input:focus-visible{outline:none}:host .select.disabled{border-bottom:var(--theme-input--border-thickness) solid var(--theme-color-weak-bdr)}:host .select.disabled input{color:var(--theme-color-weak-text)}:host .select.readonly{border-bottom:var(--theme-input--border-thickness) solid var(--theme-color-soft-bdr)}:host .select.readonly input{color:var(--theme-color-std-text)}:host .hidden{display:none !important}:host .trigger{display:flex;align-items:center;flex-grow:1;height:100%}:host .input-container{display:flex;position:relative;align-items:flex-start;width:100%;height:100%}:host .input-container .chips{position:relative;display:flex;align-items:center;flex-wrap:wrap;height:100%;max-height:3.5rem;flex-grow:1;overflow-y:auto}:host .input-container .chips>ix-filter-chip{margin:0.1rem}:host .input-container ix-icon-button{height:1.875rem;width:1.875rem;min-height:1.875rem;min-width:1.875rem}:host .input-container input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text);background:transparent;height:1.75rem;width:100%}:host .input-container input,:host .input-container input:hover,:host .input-container input:focus-visible{border:none;outline:none}:host .input-container input::-moz-placeholder{color:var(--theme-input-select-icon--color)}:host .input-container input::placeholder{color:var(--theme-input-select-icon--color)}:host .input-container input.hide-placeholder::-moz-placeholder{opacity:0}:host .input-container input.hide-placeholder::placeholder{opacity:0}:host ix-dropdown{max-width:100%}:host .dropdown-visible{--ix-icon-button-color:var(--theme-color-dynamic--hover)}:host .add-item{display:flex;justify-content:flex-start;align-items:center;position:relative;width:100%}:host .select-list-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;height:2rem;color:var(--theme-select-list-item-hint--color);margin:0 0.5rem 0 1rem}:host(.ix-info:not(.disabled):not(:disabled):not([disabled])) .select{border-color:var(--theme-input--border-color--info)}:host(.ix-info:not(.disabled):not(:disabled):not([disabled])) .select:hover{border-color:var(--theme-input--border-color--info--hover) !important}:host(.ix-info:not(.disabled):not(:disabled):not([disabled])) .select:active{border-color:var(--theme-input--border-color--info--active) !important}:host(.ix-warning:not(.disabled):not(:disabled):not([disabled])) .select{border-color:var(--theme-input--border-color--warning)}:host(.ix-warning:not(.disabled):not(:disabled):not([disabled])) .select:hover{border-color:var(--theme-input--border-color--warning--hover) !important}:host(.ix-warning:not(.disabled):not(:disabled):not([disabled])) .select:active{border-color:var(--theme-input--border-color--warning--active) !important}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) .select,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) .select{border-color:var(--theme-input--border-color--invalid);background-color:var(--theme-input--background--invalid);box-shadow:none}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) .select:hover,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) .select:hover{border-color:var(--theme-input--border-color--invalid--hover) !important}:host([class*=ix-invalid]:not(.disabled):not(:disabled):not([disabled])) .select:active,:host(.ix-invalid--required:not(.disabled):not(:disabled):not([disabled])) .select:active{border-color:var(--theme-input--border-color--invalid--active) !important}";
20
+
21
+ /*
22
+ * SPDX-FileCopyrightText: 2023 Siemens AG
23
+ *
24
+ * SPDX-License-Identifier: MIT
25
+ *
26
+ * This source code is licensed under the MIT license found in the
27
+ * LICENSE file in the root directory of this source tree.
28
+ */
29
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
30
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
31
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
32
+ r = Reflect.decorate(decorators, target, key, desc);
33
+ else
34
+ for (var i = decorators.length - 1; i >= 0; i--)
35
+ if (d = decorators[i])
36
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
37
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
38
+ };
39
+ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends H {
40
+ constructor() {
41
+ super();
42
+ this.__registerHost();
43
+ this.__attachShadow();
44
+ this.valueChange = createEvent(this, "valueChange", 7);
45
+ this.inputChange = createEvent(this, "inputChange", 7);
46
+ this.addItem = createEvent(this, "addItem", 7);
47
+ this.ixBlur = createEvent(this, "ixBlur", 7);
48
+ this.formInternals = this.attachInternals();
49
+ /**
50
+ * A Boolean attribute indicating that an option with a non-empty string value must be selected
51
+ */
52
+ this.required = false;
53
+ /**
54
+ * Current selected value.
55
+ * This corresponds to the value property of ix-select-items
56
+ */
57
+ this.value = [];
58
+ /**
59
+ * Show clear button
60
+ */
61
+ this.allowClear = false;
62
+ /**
63
+ * Selection mode
64
+ */
65
+ this.mode = 'single';
66
+ /**
67
+ * Select is extendable
68
+ */
69
+ this.editable = false;
70
+ /**
71
+ * If true the select will be in disabled state
72
+ */
73
+ this.disabled = false;
74
+ /**
75
+ * If true the select will be in readonly mode
76
+ */
77
+ this.readonly = false;
78
+ /**
79
+ * Input field placeholder
80
+ */
81
+ this.i18nPlaceholder = 'Select an option';
82
+ /**
83
+ * Input field placeholder for editable select
84
+ */
85
+ this.i18nPlaceholderEditable = 'Type of select option';
86
+ /**
87
+ * Select list header
88
+ */
89
+ this.i18nSelectListHeader = 'Select an option';
90
+ /**
91
+ * Information inside of dropdown if no items where found with current filter text
92
+ */
93
+ this.i18nNoMatches = 'No matches';
94
+ /**
95
+ * Hide list header
96
+ */
97
+ this.hideListHeader = false;
98
+ this.dropdownShow = false;
99
+ this.selectedLabels = [];
100
+ this.isDropdownEmpty = false;
101
+ this.inputFilterText = '';
102
+ this.inputValue = '';
103
+ this.isInvalid = false;
104
+ this.isValid = false;
105
+ this.isInfo = false;
106
+ this.isWarning = false;
107
+ this.dropdownWrapperRef = makeRef();
108
+ this.dropdownAnchorRef = makeRef();
109
+ this.inputRef = makeRef();
110
+ this.touched = false;
111
+ this.itemObserver = createMutationObserver(() => {
112
+ if (!this.arrowFocusController) {
113
+ return;
114
+ }
115
+ this.arrowFocusController.items = this.visibleNonShadowItems;
116
+ });
117
+ this.focusControllerCallbackBind = this.focusDropdownItem.bind(this);
118
+ }
119
+ get nonShadowItems() {
120
+ return Array.from(this.hostElement.querySelectorAll('ix-select-item'));
121
+ }
122
+ get visibleNonShadowItems() {
123
+ return this.nonShadowItems.filter((item) => !item.classList.contains('display-none'));
124
+ }
125
+ get shadowItems() {
126
+ return Array.from(this.hostElement.shadowRoot.querySelectorAll('ix-select-item'));
127
+ }
128
+ get visibleShadowItems() {
129
+ return this.shadowItems.filter((item) => !item.classList.contains('display-none'));
130
+ }
131
+ get items() {
132
+ return [...this.nonShadowItems, ...this.shadowItems];
133
+ }
134
+ get visibleItems() {
135
+ return this.items.filter((item) => !item.classList.contains('display-none'));
136
+ }
137
+ get selectedItems() {
138
+ return this.items.filter((item) => item.selected);
139
+ }
140
+ get addItemButton() {
141
+ return this.hostElement.shadowRoot.querySelector('.add-item');
142
+ }
143
+ get isSingleMode() {
144
+ return this.mode === 'single';
145
+ }
146
+ get isMultipleMode() {
147
+ return this.mode === 'multiple';
148
+ }
149
+ get isEveryDropdownItemHidden() {
150
+ return this.items.every((item) => item.classList.contains('display-none'));
151
+ }
152
+ watchValue(value) {
153
+ this.value = value;
154
+ this.updateSelection();
155
+ }
156
+ watchDropdownShow(show) {
157
+ if (show && this.dropdownElement) {
158
+ this.itemObserver.observe(this.dropdownElement, {
159
+ childList: true,
160
+ subtree: true,
161
+ });
162
+ }
163
+ else {
164
+ this.cleanupResources();
165
+ }
166
+ }
167
+ cleanupResources() {
168
+ var _a, _b;
169
+ (_a = this.arrowFocusController) === null || _a === void 0 ? void 0 : _a.disconnect();
170
+ this.arrowFocusController = undefined;
171
+ (_b = this.itemObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
172
+ }
173
+ onItemClicked(event) {
174
+ const newId = event.detail;
175
+ this.itemClick(newId);
176
+ }
177
+ updateFormInternalValue(value) {
178
+ if (Array.isArray(value)) {
179
+ this.formInternals.setFormValue(value.join(','));
180
+ }
181
+ else {
182
+ this.formInternals.setFormValue(value);
183
+ }
184
+ }
185
+ /** @internal */
186
+ async hasValidValue() {
187
+ return this.required && !!this.hasValue();
188
+ }
189
+ hasValue() {
190
+ if (Array.isArray(this.value)) {
191
+ return !!this.value.length;
192
+ }
193
+ return !!this.value;
194
+ }
195
+ focusDropdownItem(index) {
196
+ var _a, _b;
197
+ this.navigationItem = undefined;
198
+ if (index < this.visibleNonShadowItems.length) {
199
+ const nestedDropdownItem = (_b = (_a = this.visibleNonShadowItems[index]) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('ix-dropdown-item');
200
+ if (!nestedDropdownItem) {
201
+ return;
202
+ }
203
+ requestAnimationFrame(() => {
204
+ var _a, _b;
205
+ (_b = (_a = nestedDropdownItem === null || nestedDropdownItem === void 0 ? void 0 : nestedDropdownItem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button')) === null || _b === void 0 ? void 0 : _b.focus();
206
+ });
207
+ }
208
+ }
209
+ itemClick(newId) {
210
+ const oldValue = this.value;
211
+ const value = this.toggleValue(newId);
212
+ this.value = value;
213
+ const defaultPrevented = this.emitValueChange(value);
214
+ if (defaultPrevented) {
215
+ this.value = oldValue;
216
+ return;
217
+ }
218
+ this.updateSelection();
219
+ }
220
+ emitAddItem(value) {
221
+ var _a;
222
+ if (value === undefined || value.trim() === '') {
223
+ return false;
224
+ }
225
+ const { defaultPrevented } = this.addItem.emit(value);
226
+ if (defaultPrevented) {
227
+ return true;
228
+ }
229
+ const newItem = document.createElement('ix-select-item');
230
+ newItem.value = value;
231
+ newItem.label = value;
232
+ (_a = this.customItemsContainerElement) === null || _a === void 0 ? void 0 : _a.appendChild(newItem);
233
+ this.clearInput();
234
+ this.itemClick(value);
235
+ return false;
236
+ }
237
+ toggleValue(itemValue) {
238
+ if (!this.isMultipleMode) {
239
+ return itemValue;
240
+ }
241
+ if (!this.value) {
242
+ return [itemValue];
243
+ }
244
+ let value = this.value;
245
+ if (!Array.isArray(value)) {
246
+ value = [value];
247
+ }
248
+ if (value.includes(itemValue)) {
249
+ return value.filter((value) => value !== itemValue);
250
+ }
251
+ else {
252
+ return [...value, itemValue];
253
+ }
254
+ }
255
+ updateSelection() {
256
+ var _a, _b;
257
+ let ids = [];
258
+ if (this.value) {
259
+ ids = Array.isArray(this.value) ? [...this.value] : [this.value];
260
+ }
261
+ this.items.forEach((item) => {
262
+ item.selected = ids.some((i) => {
263
+ if (typeof i !== typeof item.value) {
264
+ return i.toString() === item.value.toString();
265
+ }
266
+ else {
267
+ return i === item.value;
268
+ }
269
+ });
270
+ });
271
+ this.selectedLabels = this.selectedItems.map((item) => item.label);
272
+ if (((_a = this.selectedLabels) === null || _a === void 0 ? void 0 : _a.length) && this.isSingleMode) {
273
+ this.inputValue = (_b = this.selectedLabels[0]) !== null && _b !== void 0 ? _b : '';
274
+ }
275
+ else {
276
+ this.inputValue = '';
277
+ }
278
+ this.inputElement && (this.inputElement.value = this.inputValue);
279
+ }
280
+ emitValueChange(value) {
281
+ const { defaultPrevented } = this.valueChange.emit(value);
282
+ if (defaultPrevented) {
283
+ return true;
284
+ }
285
+ this.updateFormInternalValue(value);
286
+ return false;
287
+ }
288
+ componentDidLoad() {
289
+ var _a;
290
+ (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.addEventListener('input', () => {
291
+ var _a;
292
+ this.dropdownShow = true;
293
+ this.inputChange.emit((_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value);
294
+ });
295
+ }
296
+ componentWillLoad() {
297
+ this.updateSelection();
298
+ this.updateFormInternalValue(this.value);
299
+ }
300
+ componentDidRender() {
301
+ if (!this.dropdownShow ||
302
+ this.arrowFocusController ||
303
+ !this.dropdownElement) {
304
+ return;
305
+ }
306
+ this.arrowFocusController = new ArrowFocusController(this.visibleNonShadowItems, this.dropdownElement, this.focusControllerCallbackBind);
307
+ this.arrowFocusController.wrap =
308
+ !this.isAddItemVisible() && !this.visibleShadowItems.length;
309
+ }
310
+ onLabelChange(event) {
311
+ event.preventDefault();
312
+ event.stopImmediatePropagation();
313
+ this.updateSelection();
314
+ }
315
+ disconnectedCallback() {
316
+ this.cleanupResources();
317
+ }
318
+ itemExists(item) {
319
+ return this.items.find((i) => i.label === item);
320
+ }
321
+ dropdownVisibilityChanged(event) {
322
+ var _a, _b;
323
+ this.dropdownShow = event.detail;
324
+ if (event.detail) {
325
+ (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus();
326
+ (_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.select();
327
+ this.removeHiddenFromItems();
328
+ this.isDropdownEmpty = this.isEveryDropdownItemHidden;
329
+ }
330
+ else {
331
+ this.navigationItem = undefined;
332
+ this.updateSelection();
333
+ this.inputFilterText = '';
334
+ }
335
+ }
336
+ async onKeyDown(event) {
337
+ if (event.code === 'ArrowDown' || event.code === 'ArrowUp') {
338
+ await this.onArrowNavigation(event, event.code);
339
+ }
340
+ if (!this.dropdownShow) {
341
+ return;
342
+ }
343
+ if (event.code === 'Enter' || event.code === 'NumpadEnter') {
344
+ await this.onEnterNavigation(event.target);
345
+ }
346
+ if (event.code === 'Escape') {
347
+ this.dropdownShow = false;
348
+ }
349
+ }
350
+ async onEnterNavigation(el) {
351
+ if (this.isMultipleMode) {
352
+ return;
353
+ }
354
+ const itemLabel = el === null || el === void 0 ? void 0 : el.label;
355
+ const item = this.itemExists(this.inputFilterText);
356
+ if (item) {
357
+ this.itemClick(item.value);
358
+ }
359
+ else if (this.editable && !this.itemExists(itemLabel)) {
360
+ const defaultPrevented = this.emitAddItem(this.inputFilterText);
361
+ if (defaultPrevented) {
362
+ return;
363
+ }
364
+ }
365
+ this.dropdownShow = false;
366
+ this.updateSelection();
367
+ }
368
+ async onArrowNavigation(event, key) {
369
+ var _a;
370
+ if (event.defaultPrevented) {
371
+ return;
372
+ }
373
+ event.preventDefault();
374
+ event.stopPropagation();
375
+ this.dropdownShow = true;
376
+ if (!this.navigationItem && document.activeElement === this.hostElement) {
377
+ if (this.visibleItems.length) {
378
+ this.applyFocusTo(this.visibleItems.shift());
379
+ }
380
+ else if (this.isAddItemVisible()) {
381
+ this.focusAddItemButton();
382
+ }
383
+ return;
384
+ }
385
+ const moveUp = key === 'ArrowUp';
386
+ const indexNonShadow = document.activeElement
387
+ ? this.visibleNonShadowItems.indexOf(document.activeElement)
388
+ : -1;
389
+ // Slotted select items
390
+ if (indexNonShadow === 0) {
391
+ if (!this.visibleShadowItems.length && this.isAddItemVisible()) {
392
+ this.focusAddItemButton();
393
+ }
394
+ else {
395
+ this.applyFocusTo(this.visibleShadowItems.pop());
396
+ }
397
+ return;
398
+ }
399
+ else if (indexNonShadow !== -1 &&
400
+ indexNonShadow === this.visibleNonShadowItems.length - 1) {
401
+ if (this.visibleShadowItems.length) {
402
+ this.applyFocusTo(this.visibleShadowItems.shift());
403
+ }
404
+ else if (this.isAddItemVisible()) {
405
+ this.focusAddItemButton();
406
+ }
407
+ return;
408
+ }
409
+ if (!this.navigationItem) {
410
+ return;
411
+ }
412
+ if (this.isAddItemVisible() &&
413
+ ((_a = this.addItemElement) === null || _a === void 0 ? void 0 : _a.contains(await this.navigationItem.getDropdownItemElement()))) {
414
+ if (moveUp) {
415
+ this.applyFocusTo(this.visibleItems.pop());
416
+ }
417
+ else if (this.visibleItems.length) {
418
+ this.applyFocusTo(this.visibleItems.shift());
419
+ }
420
+ return;
421
+ }
422
+ // Custom select items
423
+ const indexShadow = this.visibleShadowItems.indexOf(this.navigationItem);
424
+ if (moveUp) {
425
+ if (indexShadow === 0) {
426
+ if (this.visibleNonShadowItems.length) {
427
+ this.applyFocusTo(this.visibleNonShadowItems.pop());
428
+ }
429
+ else if (this.isAddItemVisible()) {
430
+ this.focusAddItemButton();
431
+ }
432
+ }
433
+ else {
434
+ this.applyFocusTo(this.visibleShadowItems[indexShadow - 1]);
435
+ }
436
+ }
437
+ else {
438
+ if (indexShadow === this.visibleShadowItems.length - 1) {
439
+ if (this.isAddItemVisible()) {
440
+ this.focusAddItemButton();
441
+ }
442
+ else {
443
+ this.applyFocusTo(this.visibleItems.shift());
444
+ }
445
+ }
446
+ else {
447
+ this.applyFocusTo(this.visibleShadowItems[indexShadow + 1]);
448
+ }
449
+ }
450
+ }
451
+ applyFocusTo(element) {
452
+ if (!element) {
453
+ return;
454
+ }
455
+ this.navigationItem = element;
456
+ setTimeout(() => {
457
+ var _a, _b, _c, _d;
458
+ (_d = (_c = (_b = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('ix-dropdown-item')) === null || _b === void 0 ? void 0 : _b.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('button')) === null || _d === void 0 ? void 0 : _d.focus();
459
+ });
460
+ }
461
+ focusAddItemButton() {
462
+ var _a, _b;
463
+ if (this.addItemButton) {
464
+ (_b = (_a = this.addItemButton.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button')) === null || _b === void 0 ? void 0 : _b.focus();
465
+ this.navigationItem = this.addItemElement;
466
+ }
467
+ }
468
+ filterItemsWithTypeahead() {
469
+ var _a, _b;
470
+ this.inputFilterText = (_b = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value.trim()) !== null && _b !== void 0 ? _b : '';
471
+ if (this.isSingleMode && this.inputFilterText === this.selectedLabels[0]) {
472
+ return;
473
+ }
474
+ if (this.inputFilterText) {
475
+ this.items.forEach((item) => {
476
+ var _a;
477
+ item.classList.remove('display-none');
478
+ if (!((_a = item.label) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(this.inputFilterText.toLowerCase()))) {
479
+ item.classList.add('display-none');
480
+ }
481
+ });
482
+ }
483
+ else {
484
+ this.removeHiddenFromItems();
485
+ }
486
+ if (this.arrowFocusController) {
487
+ this.arrowFocusController.items = this.visibleNonShadowItems;
488
+ }
489
+ this.isDropdownEmpty = this.isEveryDropdownItemHidden;
490
+ }
491
+ removeHiddenFromItems() {
492
+ this.items.forEach((item) => {
493
+ item.classList.remove('display-none');
494
+ });
495
+ }
496
+ clearInput() {
497
+ if (this.inputElement) {
498
+ this.inputElement.value = '';
499
+ }
500
+ this.inputFilterText = '';
501
+ }
502
+ clear() {
503
+ this.clearInput();
504
+ this.selectedLabels = [];
505
+ this.value = [];
506
+ this.emitValueChange([]);
507
+ this.dropdownShow = false;
508
+ }
509
+ onInputBlur(event) {
510
+ this.ixBlur.emit();
511
+ this.touched = true;
512
+ if (this.editable) {
513
+ return;
514
+ }
515
+ if (this.isSingleMode) {
516
+ return;
517
+ }
518
+ const target = event.target;
519
+ if (!this.dropdownShow && this.mode !== 'multiple') {
520
+ target.value = this.selectedLabels.toString();
521
+ }
522
+ }
523
+ placeholderValue() {
524
+ if (this.disabled) {
525
+ return '';
526
+ }
527
+ if (this.readonly) {
528
+ return '';
529
+ }
530
+ if (this.editable) {
531
+ return this.i18nPlaceholderEditable;
532
+ }
533
+ return this.i18nPlaceholder;
534
+ }
535
+ isAddItemVisible() {
536
+ return (!this.itemExists(this.inputFilterText) &&
537
+ this.editable &&
538
+ this.inputFilterText);
539
+ }
540
+ onValidationChange({ isInvalid, isInvalidByRequired, isValid, isInfo, isWarning, }) {
541
+ this.isInvalid = isInvalid || isInvalidByRequired;
542
+ this.isValid = isValid;
543
+ this.isWarning = isWarning;
544
+ this.isInfo = isInfo;
545
+ }
546
+ /** @internal */
547
+ async getAssociatedFormElement() {
548
+ return this.formInternals.form;
549
+ }
550
+ /**
551
+ * Returns the native input element used in the component.
552
+ */
553
+ getNativeInputElement() {
554
+ if (this.inputElement) {
555
+ return Promise.resolve(this.inputElement);
556
+ }
557
+ else {
558
+ return Promise.reject(new Error('Input element not found'));
559
+ }
560
+ }
561
+ /**
562
+ * Focuses the input field
563
+ */
564
+ async focusInput() {
565
+ const inputElement = await this.getNativeInputElement();
566
+ if (inputElement) {
567
+ inputElement.focus();
568
+ }
569
+ }
570
+ /**
571
+ * Check if the input field has been touched.
572
+ * @internal
573
+ * */
574
+ isTouched() {
575
+ return Promise.resolve(this.touched);
576
+ }
577
+ render() {
578
+ var _a, _b, _c, _d;
579
+ return (h(Host, { key: '52c08e1231ca8e0215e7cce2aa1bd6234c0236e0', "aria-disabled": a11yBoolean(this.disabled), class: {
580
+ disabled: this.disabled,
581
+ } }, h("ix-field-wrapper", { key: 'bb0b4abdc8a1840db5ebfead204b5be03ead8bef', 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: '313cd7b0eb6348d6216faee466e4e0e7b19ea14a', class: {
582
+ select: true,
583
+ disabled: this.disabled,
584
+ readonly: this.readonly,
585
+ }, ref: (ref) => {
586
+ this.dropdownAnchorRef(ref);
587
+ if (!this.editable)
588
+ this.dropdownWrapperRef(ref);
589
+ } }, h("div", { key: '2c2f94a15cd29d0b1770009d07d71ca4ce7b6793', class: "input-container" }, h("div", { key: '9b2553820b924ce956937746a5989514f9440798', class: "chips" }, this.isMultipleMode
590
+ ? (_a = this.selectedItems) === null || _a === void 0 ? void 0 : _a.map((item) => (h("ix-filter-chip", { disabled: this.disabled || this.readonly, key: item.value, onCloseClick: (e) => {
591
+ e.preventDefault();
592
+ e.stopPropagation();
593
+ this.itemClick(item.value);
594
+ } }, item.label)))
595
+ : '', h("div", { key: 'd468fc7e69768a4963ed9d06b5c7e1d2717c630a', class: "trigger" }, h("input", { key: '440ed97c1957ec869d980c8c5aa4c27d84467ef2', autocomplete: "off", "data-testid": "input", disabled: this.disabled, readOnly: this.readonly, required: this.required, type: "text", class: {
596
+ 'allow-clear': this.allowClear && !!((_b = this.selectedLabels) === null || _b === void 0 ? void 0 : _b.length),
597
+ }, placeholder: this.placeholderValue(), value: (_c = this.inputValue) !== null && _c !== void 0 ? _c : '', ref: (ref) => {
598
+ this.inputElement = ref;
599
+ this.inputRef(ref);
600
+ }, onBlur: (e) => this.onInputBlur(e), onFocus: () => {
601
+ this.navigationItem = undefined;
602
+ }, onInput: () => this.filterItemsWithTypeahead(), onKeyDown: (e) => this.onKeyDown(e) }), this.allowClear &&
603
+ !this.disabled &&
604
+ !this.readonly &&
605
+ (((_d = this.selectedLabels) === null || _d === void 0 ? void 0 : _d.length) || this.inputFilterText) ? (h("ix-icon-button", { key: "clear", class: "clear", icon: iconClear, ghost: true, oval: true, size: "16", onClick: (e) => {
606
+ e.preventDefault();
607
+ e.stopPropagation();
608
+ this.clear();
609
+ } })) : null, this.disabled || this.readonly ? null : (h("ix-icon-button", { "data-select-dropdown": true, key: "dropdown", class: { 'dropdown-visible': this.dropdownShow }, icon: iconChevronDownSmall, ghost: true, ref: (ref) => {
610
+ if (this.editable)
611
+ this.dropdownWrapperRef(ref);
612
+ } }))))))), h("ix-dropdown", { key: '8ec6fe3981cc7c82d7759e0c6f77c3ab8a2a4c71', ref: (ref) => (this.dropdownElement = ref), show: this.dropdownShow, closeBehavior: this.isMultipleMode ? 'outside' : 'both', class: {
613
+ 'display-none': this.disabled || this.readonly,
614
+ }, anchor: this.dropdownAnchorRef.waitForCurrent(), trigger: this.dropdownWrapperRef.waitForCurrent(), onShowChanged: (e) => this.dropdownVisibilityChanged(e), placement: "bottom-start", overwriteDropdownStyle: async () => {
615
+ var _a, _b;
616
+ const styleOverwrites = {};
617
+ const minWidth = (_b = (_a = this.hostElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.select')) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().width;
618
+ if (minWidth) {
619
+ styleOverwrites.minWidth = `${minWidth}px`;
620
+ }
621
+ if (this.dropdownWidth) {
622
+ styleOverwrites.width = `min(${this.dropdownWidth}, 100%)`;
623
+ }
624
+ if (this.dropdownMaxWidth) {
625
+ styleOverwrites.maxWidth = `min(${this.dropdownMaxWidth}, 100%)`;
626
+ }
627
+ return styleOverwrites;
628
+ } }, h("div", { key: 'c489337865d7e47b71b0642bffd5a184c0d1a5d3', class: {
629
+ 'select-list-header': true,
630
+ hidden: this.hideListHeader || this.isDropdownEmpty,
631
+ }, title: this.i18nSelectListHeader, onClick: (e) => e.preventDefault() }, this.i18nSelectListHeader), h("slot", { key: '335fc13ac07a12aeb0ab4efdc5b265f337cb82c4', onSlotchange: () => {
632
+ this.updateSelection();
633
+ } }), h("div", { key: '0651a940c3d45486403b3c10530b73f294a99c25', ref: (ref) => (this.customItemsContainerElement = ref) }), this.isAddItemVisible() ? (h("ix-dropdown-item", { "data-testid": "add-item", icon: iconPlus, class: {
634
+ 'add-item': true,
635
+ }, label: this.inputFilterText, onItemClick: (e) => {
636
+ e.preventDefault();
637
+ e.stopPropagation();
638
+ this.emitAddItem(this.inputFilterText);
639
+ }, onFocus: () => (this.navigationItem = this.addItemElement), ref: (ref) => {
640
+ this.addItemElement = ref;
641
+ } })) : null, this.isDropdownEmpty && !this.editable ? (h("div", { class: "select-list-header" }, this.i18nNoMatches)) : (''))));
642
+ }
643
+ static get formAssociated() { return true; }
644
+ get hostElement() { return this; }
645
+ static get watchers() { return {
646
+ "value": ["watchValue"],
647
+ "dropdownShow": ["watchDropdownShow"]
648
+ }; }
649
+ static get style() { return selectCss; }
650
+ }, [65, "ix-select", {
651
+ "name": [513],
652
+ "required": [516],
653
+ "label": [1],
654
+ "warningText": [1, "warning-text"],
655
+ "infoText": [1, "info-text"],
656
+ "invalidText": [1, "invalid-text"],
657
+ "validText": [1, "valid-text"],
658
+ "helperText": [1, "helper-text"],
659
+ "showTextAsTooltip": [4, "show-text-as-tooltip"],
660
+ "value": [1025],
661
+ "allowClear": [4, "allow-clear"],
662
+ "mode": [1],
663
+ "editable": [4],
664
+ "disabled": [4],
665
+ "readonly": [4],
666
+ "i18nPlaceholder": [1, "i-1-8n-placeholder"],
667
+ "i18nPlaceholderEditable": [1, "i-1-8n-placeholder-editable"],
668
+ "i18nSelectListHeader": [1, "i-1-8n-select-list-header"],
669
+ "i18nNoMatches": [1, "i-1-8n-no-matches"],
670
+ "hideListHeader": [4, "hide-list-header"],
671
+ "dropdownWidth": [1, "dropdown-width"],
672
+ "dropdownMaxWidth": [1, "dropdown-max-width"],
673
+ "dropdownShow": [32],
674
+ "selectedLabels": [32],
675
+ "isDropdownEmpty": [32],
676
+ "navigationItem": [32],
677
+ "inputFilterText": [32],
678
+ "inputValue": [32],
679
+ "isInvalid": [32],
680
+ "isValid": [32],
681
+ "isInfo": [32],
682
+ "isWarning": [32],
683
+ "hasValidValue": [64],
684
+ "getAssociatedFormElement": [64],
685
+ "getNativeInputElement": [64],
686
+ "focusInput": [64],
687
+ "isTouched": [64]
688
+ }, [[0, "itemClick", "onItemClicked"], [0, "ix-select-item:valueChange", "onLabelChange"], [0, "ix-select-item:labelChange", "onLabelChange"]], {
689
+ "value": ["watchValue"],
690
+ "dropdownShow": ["watchDropdownShow"]
691
+ }]);
692
+ __decorate([
693
+ OnListener('keydown', (self) => self.dropdownShow)
694
+ ], Select.prototype, "onKeyDown", null);
695
+ __decorate([
696
+ HookValidationLifecycle()
697
+ ], Select.prototype, "onValidationChange", null);
698
+ function defineCustomElement() {
699
+ if (typeof customElements === "undefined") {
700
+ return;
701
+ }
702
+ const components = ["ix-select", "ix-dropdown", "ix-dropdown-item", "ix-field-label", "ix-field-wrapper", "ix-filter-chip", "ix-icon-button", "ix-select-item", "ix-spinner", "ix-tooltip", "ix-typography"];
703
+ components.forEach(tagName => { switch (tagName) {
704
+ case "ix-select":
705
+ if (!customElements.get(tagName)) {
706
+ customElements.define(tagName, Select);
707
+ }
708
+ break;
709
+ case "ix-dropdown":
710
+ if (!customElements.get(tagName)) {
711
+ defineCustomElement$a();
712
+ }
713
+ break;
714
+ case "ix-dropdown-item":
715
+ if (!customElements.get(tagName)) {
716
+ defineCustomElement$9();
717
+ }
718
+ break;
719
+ case "ix-field-label":
720
+ if (!customElements.get(tagName)) {
721
+ defineCustomElement$8();
722
+ }
723
+ break;
724
+ case "ix-field-wrapper":
725
+ if (!customElements.get(tagName)) {
726
+ defineCustomElement$7();
727
+ }
728
+ break;
729
+ case "ix-filter-chip":
730
+ if (!customElements.get(tagName)) {
731
+ defineCustomElement$6();
732
+ }
733
+ break;
734
+ case "ix-icon-button":
735
+ if (!customElements.get(tagName)) {
736
+ defineCustomElement$5();
737
+ }
738
+ break;
739
+ case "ix-select-item":
740
+ if (!customElements.get(tagName)) {
741
+ defineCustomElement$4();
742
+ }
743
+ break;
744
+ case "ix-spinner":
745
+ if (!customElements.get(tagName)) {
746
+ defineCustomElement$3();
747
+ }
748
+ break;
749
+ case "ix-tooltip":
750
+ if (!customElements.get(tagName)) {
751
+ defineCustomElement$2();
752
+ }
753
+ break;
754
+ case "ix-typography":
755
+ if (!customElements.get(tagName)) {
756
+ defineCustomElement$1();
757
+ }
758
+ break;
759
+ } });
760
+ }
761
+
762
+ export { Select as S, defineCustomElement as d };
763
+ //# sourceMappingURL=p-Cp5J1RZq.js.map
764
+
765
+ //# sourceMappingURL=p-Cp5J1RZq.js.map