@siemens/ix 2.6.1 → 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 (1128) 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 +2 -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 +3 -3
  18. package/components/dropdown.js +2 -2
  19. package/components/field-label.js +1 -1
  20. package/components/field-wrapper.js +2 -2
  21. package/components/filter-chip.js +2 -2
  22. package/components/filter-chip.js.map +1 -1
  23. package/components/group-context-menu.js +1 -1
  24. package/components/group-context-menu.js.map +1 -1
  25. package/components/group-item.js +2 -2
  26. package/components/icon-button.js +4 -4
  27. package/components/icon-button.js.map +1 -1
  28. package/components/index.js +4 -0
  29. package/components/index.js.map +1 -1
  30. package/components/index2.js +4 -0
  31. package/components/index2.js.map +1 -1
  32. package/components/input.util.js +26 -2
  33. package/components/input.util.js.map +1 -1
  34. package/components/ix-application-switch-modal.js +1 -1
  35. package/components/ix-application-switch-modal.js.map +1 -1
  36. package/components/ix-application.js +7 -3
  37. package/components/ix-application.js.map +1 -1
  38. package/components/ix-basic-navigation.js +2 -2
  39. package/components/ix-basic-navigation.js.map +1 -1
  40. package/components/ix-card-list.js +6 -6
  41. package/components/ix-card-list.js.map +1 -1
  42. package/components/ix-category-filter.js +4 -4
  43. package/components/ix-category-filter.js.map +1 -1
  44. package/components/ix-checkbox-group.js +2 -2
  45. package/components/ix-checkbox.js +5 -4
  46. package/components/ix-checkbox.js.map +1 -1
  47. package/components/ix-chip.js +5 -5
  48. package/components/ix-chip.js.map +1 -1
  49. package/components/ix-content.js +3 -3
  50. package/components/ix-css-grid-item.js +1 -1
  51. package/components/ix-css-grid-item.js.map +1 -1
  52. package/components/ix-custom-field.js +1 -1
  53. package/components/ix-date-dropdown.js +13 -5
  54. package/components/ix-date-dropdown.js.map +1 -1
  55. package/components/ix-date-input.js +10 -11
  56. package/components/ix-date-input.js.map +1 -1
  57. package/components/ix-drawer.js +2 -2
  58. package/components/ix-dropdown-header.js +1 -1
  59. package/components/ix-dropdown-header.js.map +1 -1
  60. package/components/ix-dropdown-quick-actions.js +1 -1
  61. package/components/ix-empty-state.js +1 -1
  62. package/components/ix-empty-state.js.map +1 -1
  63. package/components/ix-event-list-item.js +4 -4
  64. package/components/ix-event-list.js +2 -2
  65. package/components/ix-expanding-search.js +10 -4
  66. package/components/ix-expanding-search.js.map +1 -1
  67. package/components/ix-flip-tile-content.js +1 -1
  68. package/components/ix-flip-tile.js +6 -5
  69. package/components/ix-flip-tile.js.map +1 -1
  70. package/components/ix-group.js +8 -8
  71. package/components/ix-group.js.map +1 -1
  72. package/components/ix-helper-text.js +1 -1
  73. package/components/ix-icon-toggle-button.js +1 -1
  74. package/components/ix-icon-toggle-button.js.map +1 -1
  75. package/components/ix-input-group.js +1 -1
  76. package/components/ix-input-group.js.map +1 -1
  77. package/components/ix-input.js +12 -7
  78. package/components/ix-input.js.map +1 -1
  79. package/components/ix-key-value-list.js +2 -2
  80. package/components/ix-key-value-list.js.map +1 -1
  81. package/components/ix-key-value.js +1 -1
  82. package/components/ix-key-value.js.map +1 -1
  83. package/components/ix-kpi.js +3 -3
  84. package/components/ix-kpi.js.map +1 -1
  85. package/components/ix-layout-auto.js +1 -1
  86. package/components/ix-link-button.js +3 -3
  87. package/components/ix-link-button.js.map +1 -1
  88. package/components/ix-map-navigation.js +4 -4
  89. package/components/ix-map-navigation.js.map +1 -1
  90. package/components/ix-menu-about-item.js +1 -1
  91. package/components/ix-menu-about-item.js.map +1 -1
  92. package/components/ix-menu-about-news.js +4 -4
  93. package/components/ix-menu-about-news.js.map +1 -1
  94. package/components/ix-menu-about.js +1 -1
  95. package/components/ix-menu-about.js.map +1 -1
  96. package/components/ix-menu-avatar.js +2 -2
  97. package/components/ix-menu-avatar.js.map +1 -1
  98. package/components/ix-menu-category.js +28 -13
  99. package/components/ix-menu-category.js.map +1 -1
  100. package/components/ix-menu-settings-item.js +1 -1
  101. package/components/ix-menu-settings-item.js.map +1 -1
  102. package/components/ix-menu.js +24 -16
  103. package/components/ix-menu.js.map +1 -1
  104. package/components/ix-message-bar.js +4 -2
  105. package/components/ix-message-bar.js.map +1 -1
  106. package/components/ix-modal-footer.js +1 -1
  107. package/components/ix-modal-loading.js +1 -1
  108. package/components/ix-modal.js +3 -3
  109. package/components/ix-modal.js.map +1 -1
  110. package/components/ix-number-input.js +14 -9
  111. package/components/ix-number-input.js.map +1 -1
  112. package/components/ix-pagination.js +8 -5
  113. package/components/ix-pagination.js.map +1 -1
  114. package/components/ix-pane-layout.js +1 -1
  115. package/components/ix-pill.js +19 -8
  116. package/components/ix-pill.js.map +1 -1
  117. package/components/ix-push-card.js +1 -1
  118. package/components/ix-push-card.js.map +1 -1
  119. package/components/ix-radio-group.js +2 -2
  120. package/components/ix-radio.js +6 -5
  121. package/components/ix-radio.js.map +1 -1
  122. package/components/ix-split-button-item.js +1 -1
  123. package/components/ix-split-button-item.js.map +1 -1
  124. package/components/ix-split-button.js +1 -1
  125. package/components/ix-split-button.js.map +1 -1
  126. package/components/ix-textarea.js +1 -1
  127. package/components/ix-textarea.js.map +1 -1
  128. package/components/ix-tile.js +4 -4
  129. package/components/ix-tile.js.map +1 -1
  130. package/components/ix-toast-container.js +10 -6
  131. package/components/ix-toast-container.js.map +1 -1
  132. package/components/ix-toggle-button.js +2 -2
  133. package/components/ix-toggle-button.js.map +1 -1
  134. package/components/ix-toggle.js +3 -3
  135. package/components/ix-tree.js +1 -1
  136. package/components/ix-tree.js.map +1 -1
  137. package/components/ix-upload.js +3 -3
  138. package/components/ix-validation-tooltip.js +5 -2
  139. package/components/ix-validation-tooltip.js.map +1 -1
  140. package/components/ix-workflow-step.js +4 -3
  141. package/components/ix-workflow-step.js.map +1 -1
  142. package/components/ix-workflow-steps.js +1 -1
  143. package/components/ix-workflow-steps.js.map +1 -1
  144. package/components/layout-grid.js +2 -2
  145. package/components/make-ref.js.map +1 -1
  146. package/components/map-navigation-overlay.js +2 -2
  147. package/components/map-navigation-overlay.js.map +1 -1
  148. package/components/menu-avatar-item.js +1 -1
  149. package/components/menu-avatar-item.js.map +1 -1
  150. package/components/menu-expand-icon.js +1 -1
  151. package/components/menu-expand-icon.js.map +1 -1
  152. package/components/menu-item.js +3 -3
  153. package/components/menu-tabs-fc.js +10 -3
  154. package/components/menu-tabs-fc.js.map +1 -1
  155. package/components/modal-content.js +1 -1
  156. package/components/modal-header.js +1 -1
  157. package/components/row.js +1 -1
  158. package/components/select-item.js +1 -1
  159. package/components/select.js +39 -17
  160. package/components/select.js.map +1 -1
  161. package/components/shadow-dom.js.map +1 -1
  162. package/components/spinner.js +1 -1
  163. package/components/tabs.js +2 -2
  164. package/components/time-picker.js +1 -1
  165. package/components/time-picker.js.map +1 -1
  166. package/components/toast.js +2 -2
  167. package/components/toast.js.map +1 -1
  168. package/components/tooltip.js +2 -2
  169. package/components/tree-item.js +4 -4
  170. package/components/validation.js +1 -7
  171. package/components/validation.js.map +1 -1
  172. package/dist/cjs/a11y-ae470f01.js.map +1 -1
  173. package/dist/cjs/{app-globals-4d8f1524.js → app-globals-ca59f3ec.js} +2 -2
  174. package/dist/cjs/{app-globals-4d8f1524.js.map → app-globals-ca59f3ec.js.map} +1 -1
  175. package/dist/cjs/{index-492e6488.js → index-12d386cf.js} +5 -1
  176. package/dist/cjs/index-12d386cf.js.map +1 -0
  177. package/dist/cjs/index.cjs.js +5 -1
  178. package/dist/cjs/index.cjs.js.map +1 -1
  179. package/dist/cjs/{input.util-54d161e6.js → input.util-dee6616a.js} +28 -3
  180. package/dist/cjs/input.util-dee6616a.js.map +1 -0
  181. package/dist/cjs/ix-application-header.cjs.entry.js +21 -12
  182. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  183. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +1 -1
  184. package/dist/cjs/ix-application-switch-modal.cjs.entry.js.map +1 -1
  185. package/dist/cjs/ix-application.cjs.entry.js +7 -3
  186. package/dist/cjs/ix-application.cjs.entry.js.map +1 -1
  187. package/dist/cjs/ix-avatar_2.cjs.entry.js +1 -1
  188. package/dist/cjs/ix-avatar_2.cjs.entry.js.map +1 -1
  189. package/dist/cjs/ix-basic-navigation.cjs.entry.js +2 -2
  190. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  191. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js.map +1 -1
  192. package/dist/cjs/ix-button.cjs.entry.js +2 -2
  193. package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
  194. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +2 -2
  195. package/dist/cjs/ix-card-accordion_2.cjs.entry.js.map +1 -1
  196. package/dist/cjs/ix-card-list.cjs.entry.js +6 -6
  197. package/dist/cjs/ix-card-list.cjs.entry.js.map +1 -1
  198. package/dist/cjs/ix-card_2.cjs.entry.js +3 -3
  199. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -1
  200. package/dist/cjs/ix-category-filter.cjs.entry.js +4 -4
  201. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  202. package/dist/cjs/ix-checkbox-group.cjs.entry.js +3 -3
  203. package/dist/cjs/ix-checkbox.cjs.entry.js +6 -5
  204. package/dist/cjs/ix-checkbox.cjs.entry.js.map +1 -1
  205. package/dist/cjs/ix-chip.cjs.entry.js +5 -5
  206. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  207. package/dist/cjs/ix-col_4.cjs.entry.js +7 -7
  208. package/dist/cjs/ix-col_4.cjs.entry.js.map +1 -1
  209. package/dist/cjs/ix-content.cjs.entry.js +3 -3
  210. package/dist/cjs/ix-css-grid-item.cjs.entry.js +1 -1
  211. package/dist/cjs/ix-css-grid-item.cjs.entry.js.map +1 -1
  212. package/dist/cjs/ix-custom-field.cjs.entry.js +2 -2
  213. package/dist/cjs/ix-date-dropdown.cjs.entry.js +9 -5
  214. package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
  215. package/dist/cjs/ix-date-input.cjs.entry.js +12 -12
  216. package/dist/cjs/ix-date-input.cjs.entry.js.map +1 -1
  217. package/dist/cjs/ix-divider.cjs.entry.js +1 -1
  218. package/dist/cjs/ix-drawer.cjs.entry.js +2 -2
  219. package/dist/cjs/ix-dropdown-header.cjs.entry.js +1 -1
  220. package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -1
  221. package/dist/cjs/ix-dropdown-item.cjs.entry.js +3 -3
  222. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
  223. package/dist/cjs/ix-dropdown.cjs.entry.js +2 -2
  224. package/dist/cjs/ix-empty-state.cjs.entry.js +1 -1
  225. package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
  226. package/dist/cjs/ix-event-list-item.cjs.entry.js +4 -4
  227. package/dist/cjs/ix-event-list.cjs.entry.js +2 -2
  228. package/dist/cjs/ix-expanding-search.cjs.entry.js +7 -4
  229. package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
  230. package/dist/cjs/ix-field-label_3.cjs.entry.js +6 -6
  231. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +3 -3
  232. package/dist/cjs/ix-filter-chip_2.cjs.entry.js.map +1 -1
  233. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +1 -1
  234. package/dist/cjs/ix-flip-tile.cjs.entry.js +6 -5
  235. package/dist/cjs/ix-flip-tile.cjs.entry.js.map +1 -1
  236. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +3 -3
  237. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  238. package/dist/cjs/ix-group.cjs.entry.js +8 -8
  239. package/dist/cjs/ix-group.cjs.entry.js.map +1 -1
  240. package/dist/cjs/ix-helper-text.cjs.entry.js +2 -2
  241. package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -5
  242. package/dist/cjs/ix-icon-button_2.cjs.entry.js.map +1 -1
  243. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +1 -1
  244. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js.map +1 -1
  245. package/dist/cjs/ix-input-group.cjs.entry.js +1 -1
  246. package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
  247. package/dist/cjs/ix-input.cjs.entry.js +14 -8
  248. package/dist/cjs/ix-input.cjs.entry.js.map +1 -1
  249. package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
  250. package/dist/cjs/ix-key-value-list.cjs.entry.js.map +1 -1
  251. package/dist/cjs/ix-key-value.cjs.entry.js +1 -1
  252. package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
  253. package/dist/cjs/ix-kpi.cjs.entry.js +3 -3
  254. package/dist/cjs/ix-kpi.cjs.entry.js.map +1 -1
  255. package/dist/cjs/ix-layout-auto.cjs.entry.js +1 -1
  256. package/dist/cjs/ix-link-button.cjs.entry.js +3 -3
  257. package/dist/cjs/ix-link-button.cjs.entry.js.map +1 -1
  258. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +2 -2
  259. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js.map +1 -1
  260. package/dist/cjs/ix-map-navigation.cjs.entry.js +4 -4
  261. package/dist/cjs/ix-map-navigation.cjs.entry.js.map +1 -1
  262. package/dist/cjs/ix-menu-about-item.cjs.entry.js +1 -1
  263. package/dist/cjs/ix-menu-about-item.cjs.entry.js.map +1 -1
  264. package/dist/cjs/ix-menu-about-news.cjs.entry.js +4 -4
  265. package/dist/cjs/ix-menu-about-news.cjs.entry.js.map +1 -1
  266. package/dist/cjs/ix-menu-about.cjs.entry.js +2 -2
  267. package/dist/cjs/ix-menu-about.cjs.entry.js.map +1 -1
  268. package/dist/cjs/ix-menu-avatar.cjs.entry.js +2 -2
  269. package/dist/cjs/ix-menu-avatar.cjs.entry.js.map +1 -1
  270. package/dist/cjs/ix-menu-category.cjs.entry.js +28 -13
  271. package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -1
  272. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +1 -1
  273. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js.map +1 -1
  274. package/dist/cjs/ix-menu-item.cjs.entry.js +3 -3
  275. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +1 -1
  276. package/dist/cjs/ix-menu-settings-item.cjs.entry.js.map +1 -1
  277. package/dist/cjs/ix-menu-settings.cjs.entry.js +1 -1
  278. package/dist/cjs/ix-menu.cjs.entry.js +25 -17
  279. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  280. package/dist/cjs/ix-message-bar.cjs.entry.js +4 -2
  281. package/dist/cjs/ix-message-bar.cjs.entry.js.map +1 -1
  282. package/dist/cjs/ix-modal-content_2.cjs.entry.js +2 -2
  283. package/dist/cjs/ix-modal-footer.cjs.entry.js +1 -1
  284. package/dist/cjs/ix-modal-loading.cjs.entry.js +1 -1
  285. package/dist/cjs/ix-modal.cjs.entry.js +3 -3
  286. package/dist/cjs/ix-modal.cjs.entry.js.map +1 -1
  287. package/dist/cjs/ix-number-input.cjs.entry.js +16 -10
  288. package/dist/cjs/ix-number-input.cjs.entry.js.map +1 -1
  289. package/dist/cjs/ix-pagination.cjs.entry.js +8 -5
  290. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  291. package/dist/cjs/ix-pane-layout.cjs.entry.js +1 -1
  292. package/dist/cjs/ix-pill.cjs.entry.js +17 -7
  293. package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
  294. package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
  295. package/dist/cjs/ix-push-card.cjs.entry.js.map +1 -1
  296. package/dist/cjs/ix-radio-group.cjs.entry.js +3 -3
  297. package/dist/cjs/ix-radio.cjs.entry.js +6 -5
  298. package/dist/cjs/ix-radio.cjs.entry.js.map +1 -1
  299. package/dist/cjs/ix-select.cjs.entry.js +38 -18
  300. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  301. package/dist/cjs/ix-split-button-item.cjs.entry.js +1 -1
  302. package/dist/cjs/ix-split-button-item.cjs.entry.js.map +1 -1
  303. package/dist/cjs/ix-split-button.cjs.entry.js +1 -1
  304. package/dist/cjs/ix-split-button.cjs.entry.js.map +1 -1
  305. package/dist/cjs/ix-tab-item_2.cjs.entry.js +2 -2
  306. package/dist/cjs/ix-textarea.cjs.entry.js +4 -3
  307. package/dist/cjs/ix-textarea.cjs.entry.js.map +1 -1
  308. package/dist/cjs/ix-tile.cjs.entry.js +4 -4
  309. package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
  310. package/dist/cjs/ix-time-picker.cjs.entry.js +1 -1
  311. package/dist/cjs/ix-time-picker.cjs.entry.js.map +1 -1
  312. package/dist/cjs/ix-toast-container.cjs.entry.js +10 -6
  313. package/dist/cjs/ix-toast-container.cjs.entry.js.map +1 -1
  314. package/dist/cjs/ix-toast.cjs.entry.js +2 -2
  315. package/dist/cjs/ix-toast.cjs.entry.js.map +1 -1
  316. package/dist/cjs/ix-toggle-button.cjs.entry.js +2 -2
  317. package/dist/cjs/ix-toggle-button.cjs.entry.js.map +1 -1
  318. package/dist/cjs/ix-toggle.cjs.entry.js +3 -3
  319. package/dist/cjs/ix-tree-item.cjs.entry.js +4 -4
  320. package/dist/cjs/ix-tree.cjs.entry.js +1 -1
  321. package/dist/cjs/ix-tree.cjs.entry.js.map +1 -1
  322. package/dist/cjs/ix-upload.cjs.entry.js +3 -3
  323. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +5 -2
  324. package/dist/cjs/ix-validation-tooltip.cjs.entry.js.map +1 -1
  325. package/dist/cjs/ix-workflow-step.cjs.entry.js +4 -3
  326. package/dist/cjs/ix-workflow-step.cjs.entry.js.map +1 -1
  327. package/dist/cjs/ix-workflow-steps.cjs.entry.js +1 -1
  328. package/dist/cjs/ix-workflow-steps.cjs.entry.js.map +1 -1
  329. package/dist/cjs/loader.cjs.js +3 -3
  330. package/dist/cjs/make-ref-499e1e41.js.map +1 -1
  331. package/dist/cjs/{menu-tabs-fc-eb899b0d.js → menu-tabs-fc-a9f928f5.js} +11 -4
  332. package/dist/cjs/menu-tabs-fc-a9f928f5.js.map +1 -0
  333. package/dist/cjs/{setup-cc07fbfc.js → setup-49660b91.js} +12 -2
  334. package/dist/cjs/setup-49660b91.js.map +1 -0
  335. package/dist/cjs/shadow-dom-454acc38.js.map +1 -1
  336. package/dist/cjs/siemens-ix.cjs.js +3 -3
  337. package/dist/cjs/{validation-1e3dd5ee.js → validation-cb884b13.js} +2 -8
  338. package/dist/cjs/validation-cb884b13.js.map +1 -0
  339. package/dist/collection/components/action-card/action-card.js +3 -3
  340. package/dist/collection/components/application/application.js +12 -8
  341. package/dist/collection/components/application/application.js.map +1 -1
  342. package/dist/collection/components/application-header/application-header.js +39 -13
  343. package/dist/collection/components/application-header/application-header.js.map +1 -1
  344. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +3 -3
  345. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js.map +1 -1
  346. package/dist/collection/components/application-header/test/application-header.ct.js +2 -2
  347. package/dist/collection/components/application-header/test/application-header.ct.js.map +1 -1
  348. package/dist/collection/components/avatar/avatar.js +4 -4
  349. package/dist/collection/components/avatar/avatar.js.map +1 -1
  350. package/dist/collection/components/basic-navigation/basic-navigation.js +5 -5
  351. package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
  352. package/dist/collection/components/blind/blind.js +3 -3
  353. package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +4 -4
  354. package/dist/collection/components/breadcrumb-item/breadcrumb-item.js.map +1 -1
  355. package/dist/collection/components/button/button-component.js +2 -0
  356. package/dist/collection/components/button/button-component.js.map +1 -0
  357. package/dist/collection/components/button/button.js +3 -3
  358. package/dist/collection/components/button/button.js.map +1 -1
  359. package/dist/collection/components/button/test/button.spec.js.map +1 -1
  360. package/dist/collection/components/card/card.css +7 -0
  361. package/dist/collection/components/card-content/card-content.css +13 -5
  362. package/dist/collection/components/card-content/card-content.js +1 -1
  363. package/dist/collection/components/card-content/card-content.js.map +1 -1
  364. package/dist/collection/components/card-list/card-list.css +1 -0
  365. package/dist/collection/components/card-list/card-list.js +7 -7
  366. package/dist/collection/components/card-list/card-list.js.map +1 -1
  367. package/dist/collection/components/card-title/card-title.css +2 -2
  368. package/dist/collection/components/card-title/card-title.js +1 -1
  369. package/dist/collection/components/category-filter/category-filter.css +3 -3
  370. package/dist/collection/components/category-filter/category-filter.js +9 -9
  371. package/dist/collection/components/category-filter/filter-state.js +4 -0
  372. package/dist/collection/components/category-filter/filter-state.js.map +1 -1
  373. package/dist/collection/components/checkbox/checkbox.css +216 -91
  374. package/dist/collection/components/checkbox/checkbox.js +7 -6
  375. package/dist/collection/components/checkbox/checkbox.js.map +1 -1
  376. package/dist/collection/components/checkbox/tests/checkbox.ct.js +20 -0
  377. package/dist/collection/components/checkbox/tests/checkbox.ct.js.map +1 -1
  378. package/dist/collection/components/checkbox-group/checkbox-group.js +8 -8
  379. package/dist/collection/components/chip/chip.js +10 -10
  380. package/dist/collection/components/chip/chip.js.map +1 -1
  381. package/dist/collection/components/chip/test/chip.ct.js +4 -2
  382. package/dist/collection/components/chip/test/chip.ct.js.map +1 -1
  383. package/dist/collection/components/col/col.js +4 -4
  384. package/dist/collection/components/content/content.js +3 -3
  385. package/dist/collection/components/content-header/content-header.js +2 -2
  386. package/dist/collection/components/css-grid/css-grid-item.js +2 -2
  387. package/dist/collection/components/css-grid/css-grid-item.js.map +1 -1
  388. package/dist/collection/components/css-grid/css-grid.js +1 -1
  389. package/dist/collection/components/custom-field/custom-field.js +8 -8
  390. package/dist/collection/components/date-dropdown/date-dropdown.js +88 -6
  391. package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
  392. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js +1 -0
  393. package/dist/collection/components/date-dropdown/test/date-dropdown.ct.js.map +1 -1
  394. package/dist/collection/components/date-input/date-input.css +6 -6
  395. package/dist/collection/components/date-input/date-input.js +22 -23
  396. package/dist/collection/components/date-input/date-input.js.map +1 -1
  397. package/dist/collection/components/date-picker/date-picker.js +9 -9
  398. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  399. package/dist/collection/components/date-time-card/date-time-card.js +1 -1
  400. package/dist/collection/components/datetime-picker/datetime-picker.js +8 -8
  401. package/dist/collection/components/divider/divider.js +1 -1
  402. package/dist/collection/components/drawer/drawer.js +3 -3
  403. package/dist/collection/components/dropdown/dropdown.js +7 -7
  404. package/dist/collection/components/dropdown/test/dropdown.ct.js.map +1 -1
  405. package/dist/collection/components/dropdown-button/dropdown-button.js +3 -3
  406. package/dist/collection/components/dropdown-header/dropdown-header.js +3 -3
  407. package/dist/collection/components/dropdown-header/dropdown-header.js.map +1 -1
  408. package/dist/collection/components/dropdown-item/dropdown-item.js +5 -5
  409. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  410. package/dist/collection/components/empty-state/empty-state.js +7 -7
  411. package/dist/collection/components/empty-state/empty-state.js.map +1 -1
  412. package/dist/collection/components/event-list/event-list.js +2 -2
  413. package/dist/collection/components/event-list-item/event-list-item.js +6 -6
  414. package/dist/collection/components/expanding-search/expanding-search.js +67 -4
  415. package/dist/collection/components/expanding-search/expanding-search.js.map +1 -1
  416. package/dist/collection/components/expanding-search/test/expanding-search.spec.js +5 -4
  417. package/dist/collection/components/expanding-search/test/expanding-search.spec.js.map +1 -1
  418. package/dist/collection/components/field-label/field-label.js +4 -4
  419. package/dist/collection/components/field-label/tests/field-label.ct.js +2 -2
  420. package/dist/collection/components/field-label/tests/field-label.ct.js.map +1 -1
  421. package/dist/collection/components/field-wrapper/field-wrapper.js +10 -10
  422. package/dist/collection/components/filter-chip/filter-chip.js +2 -2
  423. package/dist/collection/components/filter-chip/filter-chip.js.map +1 -1
  424. package/dist/collection/components/flip-tile/flip-tile.js +8 -7
  425. package/dist/collection/components/flip-tile/flip-tile.js.map +1 -1
  426. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  427. package/dist/collection/components/group/group-context-menu.js +1 -1
  428. package/dist/collection/components/group/group-context-menu.js.map +1 -1
  429. package/dist/collection/components/group/group.js +11 -11
  430. package/dist/collection/components/group/group.js.map +1 -1
  431. package/dist/collection/components/group-item/group-item.js +6 -6
  432. package/dist/collection/components/helper-text/helper-text.js +7 -7
  433. package/dist/collection/components/icon-button/icon-button.js +18 -15
  434. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  435. package/dist/collection/components/icon-button/test/icon-button.spec.js +16 -33
  436. package/dist/collection/components/icon-button/test/icon-button.spec.js.map +1 -1
  437. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +3 -3
  438. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js.map +1 -1
  439. package/dist/collection/components/input/input.css +6 -6
  440. package/dist/collection/components/input/input.js +25 -20
  441. package/dist/collection/components/input/input.js.map +1 -1
  442. package/dist/collection/components/input/input.util.js +25 -1
  443. package/dist/collection/components/input/input.util.js.map +1 -1
  444. package/dist/collection/components/input/number-input.css +3 -3
  445. package/dist/collection/components/input/number-input.js +29 -24
  446. package/dist/collection/components/input/number-input.js.map +1 -1
  447. package/dist/collection/components/input/tests/validation.ct.js +21 -0
  448. package/dist/collection/components/input/tests/validation.ct.js.map +1 -0
  449. package/dist/collection/components/input/textarea.css +3 -3
  450. package/dist/collection/components/input/textarea.js +16 -16
  451. package/dist/collection/components/input-group/input-group.js +1 -1
  452. package/dist/collection/components/input-group/input-group.js.map +1 -1
  453. package/dist/collection/components/key-value/key-value.js +5 -5
  454. package/dist/collection/components/key-value/key-value.js.map +1 -1
  455. package/dist/collection/components/key-value-list/key-value-list.js +4 -3
  456. package/dist/collection/components/key-value-list/key-value-list.js.map +1 -1
  457. package/dist/collection/components/kpi/kpi.js +9 -9
  458. package/dist/collection/components/kpi/kpi.js.map +1 -1
  459. package/dist/collection/components/layout-auto/layout-auto.js +1 -1
  460. package/dist/collection/components/layout-grid/layout-grid.js +2 -2
  461. package/dist/collection/components/link-button/link-button.js +5 -5
  462. package/dist/collection/components/link-button/link-button.js.map +1 -1
  463. package/dist/collection/components/map-navigation/map-navigation.js +11 -11
  464. package/dist/collection/components/map-navigation/map-navigation.js.map +1 -1
  465. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +10 -10
  466. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js.map +1 -1
  467. package/dist/collection/components/menu/menu-expand-icon.js +3 -3
  468. package/dist/collection/components/menu/menu-expand-icon.js.map +1 -1
  469. package/dist/collection/components/menu/menu.js +44 -19
  470. package/dist/collection/components/menu/menu.js.map +1 -1
  471. package/dist/collection/components/menu-about/menu-about.js +3 -3
  472. package/dist/collection/components/menu-about/menu-about.js.map +1 -1
  473. package/dist/collection/components/menu-about-item/menu-about-item.js +3 -3
  474. package/dist/collection/components/menu-about-item/menu-about-item.js.map +1 -1
  475. package/dist/collection/components/menu-about-news/menu-about-news.js +8 -8
  476. package/dist/collection/components/menu-about-news/menu-about-news.js.map +1 -1
  477. package/dist/collection/components/menu-avatar/menu-avatar.js +10 -10
  478. package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
  479. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +5 -5
  480. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js.map +1 -1
  481. package/dist/collection/components/menu-category/menu-category.js +34 -19
  482. package/dist/collection/components/menu-category/menu-category.js.map +1 -1
  483. package/dist/collection/components/menu-item/menu-item.js +7 -7
  484. package/dist/collection/components/menu-settings/menu-settings.js +3 -3
  485. package/dist/collection/components/menu-settings/menu-settings.js.map +1 -1
  486. package/dist/collection/components/menu-settings-item/menu-settings-item.js +3 -3
  487. package/dist/collection/components/menu-settings-item/menu-settings-item.js.map +1 -1
  488. package/dist/collection/components/message-bar/message-bar.js +4 -2
  489. package/dist/collection/components/message-bar/message-bar.js.map +1 -1
  490. package/dist/collection/components/message-bar/test/message-bar.spec.js.map +1 -1
  491. package/dist/collection/components/modal/modal.js +6 -6
  492. package/dist/collection/components/modal/modal.js.map +1 -1
  493. package/dist/collection/components/modal-content/modal-content.js +1 -1
  494. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  495. package/dist/collection/components/modal-header/modal-header.js +3 -3
  496. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  497. package/dist/collection/components/pagination/pagination.js +10 -6
  498. package/dist/collection/components/pagination/pagination.js.map +1 -1
  499. package/dist/collection/components/pagination/test/pagination.ct.js +1 -1
  500. package/dist/collection/components/pagination/test/pagination.ct.js.map +1 -1
  501. package/dist/collection/components/pagination/test/pagination.spec.js.map +1 -1
  502. package/dist/collection/components/pane/pane.js +2 -2
  503. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  504. package/dist/collection/components/pill/pill.css +14 -1
  505. package/dist/collection/components/pill/pill.js +25 -10
  506. package/dist/collection/components/pill/pill.js.map +1 -1
  507. package/dist/collection/components/pill/tests/pill.ct.js +23 -0
  508. package/dist/collection/components/pill/tests/pill.ct.js.map +1 -0
  509. package/dist/collection/components/push-card/push-card.css +8 -1
  510. package/dist/collection/components/push-card/push-card.js +4 -4
  511. package/dist/collection/components/radio/radio.css +0 -16
  512. package/dist/collection/components/radio/radio.js +9 -8
  513. package/dist/collection/components/radio/radio.js.map +1 -1
  514. package/dist/collection/components/radio/test/radio.ct.js +19 -0
  515. package/dist/collection/components/radio/test/radio.ct.js.map +1 -1
  516. package/dist/collection/components/radio-group/radio-group.js +10 -10
  517. package/dist/collection/components/row/row.js +1 -1
  518. package/dist/collection/components/select/select.css +3 -0
  519. package/dist/collection/components/select/select.js +86 -26
  520. package/dist/collection/components/select/select.js.map +1 -1
  521. package/dist/collection/components/select/test/select-keyboard.ct.js +379 -0
  522. package/dist/collection/components/select/test/select-keyboard.ct.js.map +1 -0
  523. package/dist/collection/components/select/test/select.ct.js +106 -258
  524. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  525. package/dist/collection/components/select-item/select-item.js +3 -3
  526. package/dist/collection/components/select-item/test/select-item.spec.js +3 -6
  527. package/dist/collection/components/select-item/test/select-item.spec.js.map +1 -1
  528. package/dist/collection/components/slider/slider.js +2 -2
  529. package/dist/collection/components/spinner/spinner.js +1 -1
  530. package/dist/collection/components/split-button/split-button.js +3 -3
  531. package/dist/collection/components/split-button/split-button.js.map +1 -1
  532. package/dist/collection/components/split-button-item/split-button-item.js +5 -5
  533. package/dist/collection/components/split-button-item/split-button-item.js.map +1 -1
  534. package/dist/collection/components/tab-item/tab-item.js +1 -1
  535. package/dist/collection/components/tabs/tabs.js +2 -2
  536. package/dist/collection/components/tile/tile.js +4 -4
  537. package/dist/collection/components/tile/tile.js.map +1 -1
  538. package/dist/collection/components/time-picker/time-picker.css +3 -3
  539. package/dist/collection/components/time-picker/time-picker.js +4 -4
  540. package/dist/collection/components/toast/toast-container.js +10 -6
  541. package/dist/collection/components/toast/toast-container.js.map +1 -1
  542. package/dist/collection/components/toast/toast.js +8 -8
  543. package/dist/collection/components/toast/toast.js.map +1 -1
  544. package/dist/collection/components/toggle/toggle.js +5 -5
  545. package/dist/collection/components/toggle-button/toggle-button.js +4 -4
  546. package/dist/collection/components/toggle-button/toggle-button.js.map +1 -1
  547. package/dist/collection/components/tooltip/tooltip.js +4 -4
  548. package/dist/collection/components/tree/test/tree.ct.js.map +1 -1
  549. package/dist/collection/components/tree/tree.js +2 -2
  550. package/dist/collection/components/tree/tree.js.map +1 -1
  551. package/dist/collection/components/tree-item/tree-item.js +6 -6
  552. package/dist/collection/components/typography/typography.js +3 -3
  553. package/dist/collection/components/upload/upload.js +4 -4
  554. package/dist/collection/components/utils/a11y.js.map +1 -1
  555. package/dist/collection/components/utils/app-switch/index.js +4 -0
  556. package/dist/collection/components/utils/app-switch/index.js.map +1 -1
  557. package/dist/collection/components/utils/input/validation.js +1 -7
  558. package/dist/collection/components/utils/input/validation.js.map +1 -1
  559. package/dist/collection/components/utils/lazy-list/lazy.js.map +1 -1
  560. package/dist/collection/components/utils/make-ref.js.map +1 -1
  561. package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js +5 -1
  562. package/dist/collection/components/utils/menu-tabs/menu-tabs-fc.js.map +1 -1
  563. package/dist/collection/components/utils/menu-tabs/menu-tabs-utils.js +4 -1
  564. package/dist/collection/components/utils/menu-tabs/menu-tabs-utils.js.map +1 -1
  565. package/dist/collection/components/utils/shadow-dom.js.map +1 -1
  566. package/dist/collection/components/validation-tooltip/validation-tooltip.js +7 -4
  567. package/dist/collection/components/validation-tooltip/validation-tooltip.js.map +1 -1
  568. package/dist/collection/components/workflow-step/workflow-step.js +4 -3
  569. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  570. package/dist/collection/components/workflow-steps/test/workflow-steps.spec.js.map +1 -1
  571. package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
  572. package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
  573. package/dist/collection/setup.ct.js +18 -0
  574. package/dist/collection/setup.ct.js.map +1 -0
  575. package/dist/collection/setup.js +11 -1
  576. package/dist/collection/setup.js.map +1 -1
  577. package/dist/collection/tests/application-header/application-header.e2e.js.map +1 -1
  578. package/dist/collection/tests/button/button.e2e.js.map +1 -1
  579. package/dist/collection/tests/card/card.e2e.js +6 -0
  580. package/dist/collection/tests/card/card.e2e.js.map +1 -1
  581. package/dist/collection/tests/date-dropdown/date-dropdown.e2e.js +3 -3
  582. package/dist/collection/tests/date-dropdown/date-dropdown.e2e.js.map +1 -1
  583. package/dist/collection/tests/date-input/date-input.e2e.js +17 -0
  584. package/dist/collection/tests/date-input/date-input.e2e.js.map +1 -0
  585. package/dist/collection/tests/expanding-search/expanding-search.e2e.js +1 -1
  586. package/dist/collection/tests/expanding-search/expanding-search.e2e.js.map +1 -1
  587. package/dist/collection/tests/icon-toggle-button/toggle-button.e2e.js.map +1 -1
  588. package/dist/collection/tests/input-common/input-common.e2e.js +27 -0
  589. package/dist/collection/tests/input-common/input-common.e2e.js.map +1 -0
  590. package/dist/collection/tests/menu/menu.e2e.js +11 -0
  591. package/dist/collection/tests/menu/menu.e2e.js.map +1 -1
  592. package/dist/collection/tests/push-card/push-card.e2e.js +6 -0
  593. package/dist/collection/tests/push-card/push-card.e2e.js.map +1 -1
  594. package/dist/collection/tests/toggle-button/toggle-button.e2e.js.map +1 -1
  595. package/dist/collection/tests/upload/upload.e2e.js +1 -1
  596. package/dist/collection/tests/upload/upload.e2e.js.map +1 -1
  597. package/dist/collection/tests/utils/test/page.js +37 -5
  598. package/dist/collection/tests/utils/test/page.js.map +1 -1
  599. package/dist/collection/tests/workflow-steps/workflow-steps.e2e.js +4 -3
  600. package/dist/collection/tests/workflow-steps/workflow-steps.e2e.js.map +1 -1
  601. package/dist/esm/a11y-b10c12e0.js.map +1 -1
  602. package/dist/esm/app-globals-c85c7809.js +7 -0
  603. package/dist/esm/{app-globals-40082a83.js.map → app-globals-c85c7809.js.map} +1 -1
  604. package/dist/esm/{index-7421df0c.js → index-f8425403.js} +5 -1
  605. package/dist/esm/index-f8425403.js.map +1 -0
  606. package/dist/esm/index.js +5 -1
  607. package/dist/esm/index.js.map +1 -1
  608. package/dist/esm/{input.util-c855b2ed.js → input.util-deca1217.js} +28 -4
  609. package/dist/esm/input.util-deca1217.js.map +1 -0
  610. package/dist/esm/ix-application-header.entry.js +21 -12
  611. package/dist/esm/ix-application-header.entry.js.map +1 -1
  612. package/dist/esm/ix-application-switch-modal.entry.js +1 -1
  613. package/dist/esm/ix-application-switch-modal.entry.js.map +1 -1
  614. package/dist/esm/ix-application.entry.js +7 -3
  615. package/dist/esm/ix-application.entry.js.map +1 -1
  616. package/dist/esm/ix-avatar_2.entry.js +1 -1
  617. package/dist/esm/ix-avatar_2.entry.js.map +1 -1
  618. package/dist/esm/ix-basic-navigation.entry.js +2 -2
  619. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  620. package/dist/esm/ix-breadcrumb-item.entry.js.map +1 -1
  621. package/dist/esm/ix-button.entry.js +2 -2
  622. package/dist/esm/ix-button.entry.js.map +1 -1
  623. package/dist/esm/ix-card-accordion_2.entry.js +2 -2
  624. package/dist/esm/ix-card-accordion_2.entry.js.map +1 -1
  625. package/dist/esm/ix-card-list.entry.js +6 -6
  626. package/dist/esm/ix-card-list.entry.js.map +1 -1
  627. package/dist/esm/ix-card_2.entry.js +3 -3
  628. package/dist/esm/ix-card_2.entry.js.map +1 -1
  629. package/dist/esm/ix-category-filter.entry.js +4 -4
  630. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  631. package/dist/esm/ix-checkbox-group.entry.js +3 -3
  632. package/dist/esm/ix-checkbox.entry.js +6 -5
  633. package/dist/esm/ix-checkbox.entry.js.map +1 -1
  634. package/dist/esm/ix-chip.entry.js +5 -5
  635. package/dist/esm/ix-chip.entry.js.map +1 -1
  636. package/dist/esm/ix-col_4.entry.js +7 -7
  637. package/dist/esm/ix-col_4.entry.js.map +1 -1
  638. package/dist/esm/ix-content.entry.js +3 -3
  639. package/dist/esm/ix-css-grid-item.entry.js +1 -1
  640. package/dist/esm/ix-css-grid-item.entry.js.map +1 -1
  641. package/dist/esm/ix-custom-field.entry.js +2 -2
  642. package/dist/esm/ix-date-dropdown.entry.js +9 -5
  643. package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
  644. package/dist/esm/ix-date-input.entry.js +12 -12
  645. package/dist/esm/ix-date-input.entry.js.map +1 -1
  646. package/dist/esm/ix-divider.entry.js +1 -1
  647. package/dist/esm/ix-drawer.entry.js +2 -2
  648. package/dist/esm/ix-dropdown-header.entry.js +1 -1
  649. package/dist/esm/ix-dropdown-header.entry.js.map +1 -1
  650. package/dist/esm/ix-dropdown-item.entry.js +3 -3
  651. package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
  652. package/dist/esm/ix-dropdown.entry.js +2 -2
  653. package/dist/esm/ix-empty-state.entry.js +1 -1
  654. package/dist/esm/ix-empty-state.entry.js.map +1 -1
  655. package/dist/esm/ix-event-list-item.entry.js +4 -4
  656. package/dist/esm/ix-event-list.entry.js +2 -2
  657. package/dist/esm/ix-expanding-search.entry.js +7 -4
  658. package/dist/esm/ix-expanding-search.entry.js.map +1 -1
  659. package/dist/esm/ix-field-label_3.entry.js +6 -6
  660. package/dist/esm/ix-filter-chip_2.entry.js +3 -3
  661. package/dist/esm/ix-filter-chip_2.entry.js.map +1 -1
  662. package/dist/esm/ix-flip-tile-content.entry.js +1 -1
  663. package/dist/esm/ix-flip-tile.entry.js +6 -5
  664. package/dist/esm/ix-flip-tile.entry.js.map +1 -1
  665. package/dist/esm/ix-group-context-menu_2.entry.js +3 -3
  666. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  667. package/dist/esm/ix-group.entry.js +8 -8
  668. package/dist/esm/ix-group.entry.js.map +1 -1
  669. package/dist/esm/ix-helper-text.entry.js +2 -2
  670. package/dist/esm/ix-icon-button_2.entry.js +5 -5
  671. package/dist/esm/ix-icon-button_2.entry.js.map +1 -1
  672. package/dist/esm/ix-icon-toggle-button.entry.js +1 -1
  673. package/dist/esm/ix-icon-toggle-button.entry.js.map +1 -1
  674. package/dist/esm/ix-input-group.entry.js +1 -1
  675. package/dist/esm/ix-input-group.entry.js.map +1 -1
  676. package/dist/esm/ix-input.entry.js +14 -8
  677. package/dist/esm/ix-input.entry.js.map +1 -1
  678. package/dist/esm/ix-key-value-list.entry.js +2 -2
  679. package/dist/esm/ix-key-value-list.entry.js.map +1 -1
  680. package/dist/esm/ix-key-value.entry.js +1 -1
  681. package/dist/esm/ix-key-value.entry.js.map +1 -1
  682. package/dist/esm/ix-kpi.entry.js +3 -3
  683. package/dist/esm/ix-kpi.entry.js.map +1 -1
  684. package/dist/esm/ix-layout-auto.entry.js +1 -1
  685. package/dist/esm/ix-link-button.entry.js +3 -3
  686. package/dist/esm/ix-link-button.entry.js.map +1 -1
  687. package/dist/esm/ix-map-navigation-overlay.entry.js +2 -2
  688. package/dist/esm/ix-map-navigation-overlay.entry.js.map +1 -1
  689. package/dist/esm/ix-map-navigation.entry.js +4 -4
  690. package/dist/esm/ix-map-navigation.entry.js.map +1 -1
  691. package/dist/esm/ix-menu-about-item.entry.js +1 -1
  692. package/dist/esm/ix-menu-about-item.entry.js.map +1 -1
  693. package/dist/esm/ix-menu-about-news.entry.js +4 -4
  694. package/dist/esm/ix-menu-about-news.entry.js.map +1 -1
  695. package/dist/esm/ix-menu-about.entry.js +2 -2
  696. package/dist/esm/ix-menu-about.entry.js.map +1 -1
  697. package/dist/esm/ix-menu-avatar.entry.js +2 -2
  698. package/dist/esm/ix-menu-avatar.entry.js.map +1 -1
  699. package/dist/esm/ix-menu-category.entry.js +28 -13
  700. package/dist/esm/ix-menu-category.entry.js.map +1 -1
  701. package/dist/esm/ix-menu-expand-icon.entry.js +1 -1
  702. package/dist/esm/ix-menu-expand-icon.entry.js.map +1 -1
  703. package/dist/esm/ix-menu-item.entry.js +3 -3
  704. package/dist/esm/ix-menu-settings-item.entry.js +1 -1
  705. package/dist/esm/ix-menu-settings-item.entry.js.map +1 -1
  706. package/dist/esm/ix-menu-settings.entry.js +1 -1
  707. package/dist/esm/ix-menu.entry.js +25 -17
  708. package/dist/esm/ix-menu.entry.js.map +1 -1
  709. package/dist/esm/ix-message-bar.entry.js +4 -2
  710. package/dist/esm/ix-message-bar.entry.js.map +1 -1
  711. package/dist/esm/ix-modal-content_2.entry.js +2 -2
  712. package/dist/esm/ix-modal-footer.entry.js +1 -1
  713. package/dist/esm/ix-modal-loading.entry.js +1 -1
  714. package/dist/esm/ix-modal.entry.js +3 -3
  715. package/dist/esm/ix-modal.entry.js.map +1 -1
  716. package/dist/esm/ix-number-input.entry.js +16 -10
  717. package/dist/esm/ix-number-input.entry.js.map +1 -1
  718. package/dist/esm/ix-pagination.entry.js +8 -5
  719. package/dist/esm/ix-pagination.entry.js.map +1 -1
  720. package/dist/esm/ix-pane-layout.entry.js +1 -1
  721. package/dist/esm/ix-pill.entry.js +17 -7
  722. package/dist/esm/ix-pill.entry.js.map +1 -1
  723. package/dist/esm/ix-push-card.entry.js +1 -1
  724. package/dist/esm/ix-push-card.entry.js.map +1 -1
  725. package/dist/esm/ix-radio-group.entry.js +3 -3
  726. package/dist/esm/ix-radio.entry.js +6 -5
  727. package/dist/esm/ix-radio.entry.js.map +1 -1
  728. package/dist/esm/ix-select.entry.js +38 -18
  729. package/dist/esm/ix-select.entry.js.map +1 -1
  730. package/dist/esm/ix-split-button-item.entry.js +1 -1
  731. package/dist/esm/ix-split-button-item.entry.js.map +1 -1
  732. package/dist/esm/ix-split-button.entry.js +1 -1
  733. package/dist/esm/ix-split-button.entry.js.map +1 -1
  734. package/dist/esm/ix-tab-item_2.entry.js +2 -2
  735. package/dist/esm/ix-textarea.entry.js +4 -3
  736. package/dist/esm/ix-textarea.entry.js.map +1 -1
  737. package/dist/esm/ix-tile.entry.js +4 -4
  738. package/dist/esm/ix-tile.entry.js.map +1 -1
  739. package/dist/esm/ix-time-picker.entry.js +1 -1
  740. package/dist/esm/ix-time-picker.entry.js.map +1 -1
  741. package/dist/esm/ix-toast-container.entry.js +10 -6
  742. package/dist/esm/ix-toast-container.entry.js.map +1 -1
  743. package/dist/esm/ix-toast.entry.js +2 -2
  744. package/dist/esm/ix-toast.entry.js.map +1 -1
  745. package/dist/esm/ix-toggle-button.entry.js +2 -2
  746. package/dist/esm/ix-toggle-button.entry.js.map +1 -1
  747. package/dist/esm/ix-toggle.entry.js +3 -3
  748. package/dist/esm/ix-tree-item.entry.js +4 -4
  749. package/dist/esm/ix-tree.entry.js +1 -1
  750. package/dist/esm/ix-tree.entry.js.map +1 -1
  751. package/dist/esm/ix-upload.entry.js +3 -3
  752. package/dist/esm/ix-validation-tooltip.entry.js +5 -2
  753. package/dist/esm/ix-validation-tooltip.entry.js.map +1 -1
  754. package/dist/esm/ix-workflow-step.entry.js +4 -3
  755. package/dist/esm/ix-workflow-step.entry.js.map +1 -1
  756. package/dist/esm/ix-workflow-steps.entry.js +1 -1
  757. package/dist/esm/ix-workflow-steps.entry.js.map +1 -1
  758. package/dist/esm/loader.js +3 -3
  759. package/dist/esm/make-ref-4b76e9b5.js.map +1 -1
  760. package/dist/esm/{menu-tabs-fc-563a74d9.js → menu-tabs-fc-43b4155d.js} +11 -4
  761. package/dist/esm/menu-tabs-fc-43b4155d.js.map +1 -0
  762. package/dist/esm/{setup-9c5fe321.js → setup-3a3f57db.js} +12 -2
  763. package/dist/esm/setup-3a3f57db.js.map +1 -0
  764. package/dist/esm/shadow-dom-cc0bc152.js.map +1 -1
  765. package/dist/esm/siemens-ix.js +3 -3
  766. package/dist/esm/{validation-45aa490c.js → validation-54137eaa.js} +2 -8
  767. package/dist/esm/validation-54137eaa.js.map +1 -0
  768. package/dist/siemens-ix/index.esm.js +1 -1
  769. package/dist/siemens-ix/index.esm.js.map +1 -1
  770. package/dist/siemens-ix/{p-bd4c1a44.entry.js → p-03136fc0.entry.js} +2 -2
  771. package/dist/siemens-ix/p-03136fc0.entry.js.map +1 -0
  772. package/dist/siemens-ix/{p-22cba43a.entry.js → p-060d5c58.entry.js} +2 -2
  773. package/dist/siemens-ix/{p-475ac85f.entry.js → p-08168e53.entry.js} +2 -2
  774. package/dist/siemens-ix/{p-475ac85f.entry.js.map → p-08168e53.entry.js.map} +1 -1
  775. package/dist/siemens-ix/p-088ad2da.entry.js +2 -0
  776. package/dist/siemens-ix/p-088ad2da.entry.js.map +1 -0
  777. package/dist/siemens-ix/p-0c8a6f43.entry.js +2 -0
  778. package/dist/siemens-ix/{p-0be907d4.entry.js.map → p-0c8a6f43.entry.js.map} +1 -1
  779. package/dist/siemens-ix/{p-8457d846.entry.js → p-0cb18eff.entry.js} +2 -2
  780. package/dist/siemens-ix/p-0cb18eff.entry.js.map +1 -0
  781. package/dist/siemens-ix/{p-2a34a0c2.entry.js → p-0f44ccd1.entry.js} +2 -2
  782. package/dist/siemens-ix/{p-2a34a0c2.entry.js.map → p-0f44ccd1.entry.js.map} +1 -1
  783. package/dist/siemens-ix/p-14d038c6.entry.js +2 -0
  784. package/dist/siemens-ix/p-14d038c6.entry.js.map +1 -0
  785. package/dist/siemens-ix/{p-6722bcff.entry.js → p-16055d56.entry.js} +2 -2
  786. package/dist/siemens-ix/{p-6722bcff.entry.js.map → p-16055d56.entry.js.map} +1 -1
  787. package/dist/siemens-ix/p-177268f7.entry.js +2 -0
  788. package/dist/siemens-ix/p-177268f7.entry.js.map +1 -0
  789. package/dist/siemens-ix/{p-f97a15c4.js → p-186a1f30.js} +2 -2
  790. package/dist/siemens-ix/p-186a1f30.js.map +1 -0
  791. package/dist/siemens-ix/{p-42320fb3.entry.js → p-19d1c463.entry.js} +2 -2
  792. package/dist/siemens-ix/{p-2d3a6d29.entry.js → p-1bff0a1f.entry.js} +2 -2
  793. package/dist/siemens-ix/{p-8da941cd.entry.js → p-1c74bd8b.entry.js} +2 -2
  794. package/dist/siemens-ix/{p-8da941cd.entry.js.map → p-1c74bd8b.entry.js.map} +1 -1
  795. package/dist/siemens-ix/{p-a4dc6824.entry.js → p-1d545640.entry.js} +2 -2
  796. package/dist/siemens-ix/p-1d545640.entry.js.map +1 -0
  797. package/dist/siemens-ix/p-21a8aeaf.js +2 -0
  798. package/dist/siemens-ix/p-21a8aeaf.js.map +1 -0
  799. package/dist/siemens-ix/p-227b0ddd.entry.js +2 -0
  800. package/dist/siemens-ix/p-227b0ddd.entry.js.map +1 -0
  801. package/dist/siemens-ix/{p-63dd987f.entry.js → p-22fc61c9.entry.js} +2 -2
  802. package/dist/siemens-ix/p-22fc61c9.entry.js.map +1 -0
  803. package/dist/siemens-ix/{p-ede52531.entry.js → p-2396b68a.entry.js} +2 -2
  804. package/dist/siemens-ix/p-2396b68a.entry.js.map +1 -0
  805. package/dist/siemens-ix/{p-b2a06e46.entry.js → p-27befdd7.entry.js} +2 -2
  806. package/dist/siemens-ix/p-27befdd7.entry.js.map +1 -0
  807. package/dist/siemens-ix/{p-286feb7e.entry.js → p-297cd68a.entry.js} +2 -2
  808. package/dist/siemens-ix/{p-6bae4e9b.entry.js → p-2f29e208.entry.js} +2 -2
  809. package/dist/siemens-ix/{p-6bae4e9b.entry.js.map → p-2f29e208.entry.js.map} +1 -1
  810. package/dist/siemens-ix/p-309b82ec.entry.js +2 -0
  811. package/dist/siemens-ix/{p-4ec6ddfb.entry.js → p-30a24560.entry.js} +2 -2
  812. package/dist/siemens-ix/p-30a24560.entry.js.map +1 -0
  813. package/dist/siemens-ix/{p-37af7117.entry.js → p-327a1655.entry.js} +2 -2
  814. package/dist/siemens-ix/p-327a1655.entry.js.map +1 -0
  815. package/dist/siemens-ix/p-345e1c73.js.map +1 -1
  816. package/dist/siemens-ix/{p-6624076c.entry.js → p-353f081a.entry.js} +2 -2
  817. package/dist/siemens-ix/p-37eadb06.entry.js +2 -0
  818. package/dist/siemens-ix/{p-ffca56d6.entry.js.map → p-37eadb06.entry.js.map} +1 -1
  819. package/dist/siemens-ix/{p-dfb181c1.entry.js → p-37f1d0ed.entry.js} +2 -2
  820. package/dist/siemens-ix/p-37f1d0ed.entry.js.map +1 -0
  821. package/dist/siemens-ix/{p-5c1b136c.entry.js → p-388b9368.entry.js} +2 -2
  822. package/dist/siemens-ix/{p-5c1b136c.entry.js.map → p-388b9368.entry.js.map} +1 -1
  823. package/dist/siemens-ix/{p-d929f23d.entry.js → p-3fd2bacd.entry.js} +2 -2
  824. package/dist/siemens-ix/{p-d929f23d.entry.js.map → p-3fd2bacd.entry.js.map} +1 -1
  825. package/dist/siemens-ix/{p-ee0645f8.entry.js → p-40da22b1.entry.js} +2 -2
  826. package/dist/siemens-ix/p-40da22b1.entry.js.map +1 -0
  827. package/dist/siemens-ix/{p-4cc79e8f.entry.js → p-44425604.entry.js} +2 -2
  828. package/dist/siemens-ix/{p-05839c77.entry.js → p-48d6554c.entry.js} +2 -2
  829. package/dist/siemens-ix/p-49ca9211.entry.js +2 -0
  830. package/dist/siemens-ix/{p-fe396297.entry.js.map → p-49ca9211.entry.js.map} +1 -1
  831. package/dist/siemens-ix/{p-0b2f0536.entry.js → p-4cb35508.entry.js} +2 -2
  832. package/dist/siemens-ix/p-4e51d716.entry.js.map +1 -1
  833. package/dist/siemens-ix/p-559cdf73.js +2 -0
  834. package/dist/siemens-ix/p-559cdf73.js.map +1 -0
  835. package/dist/siemens-ix/p-5767345b.entry.js +2 -0
  836. package/dist/siemens-ix/p-5b86301e.js +2 -0
  837. package/dist/siemens-ix/p-5b86301e.js.map +1 -0
  838. package/dist/siemens-ix/p-5fe87e71.js.map +1 -1
  839. package/dist/siemens-ix/{p-cbfca958.entry.js → p-617b3d78.entry.js} +2 -2
  840. package/dist/siemens-ix/{p-654f91f2.entry.js → p-623297ef.entry.js} +2 -2
  841. package/dist/siemens-ix/p-623297ef.entry.js.map +1 -0
  842. package/dist/siemens-ix/p-637df471.entry.js +2 -0
  843. package/dist/siemens-ix/p-637df471.entry.js.map +1 -0
  844. package/dist/siemens-ix/p-6635972c.entry.js +2 -0
  845. package/dist/siemens-ix/p-6635972c.entry.js.map +1 -0
  846. package/dist/siemens-ix/{p-48718dc1.entry.js → p-67209151.entry.js} +2 -2
  847. package/dist/siemens-ix/p-67209151.entry.js.map +1 -0
  848. package/dist/siemens-ix/{p-1c5ebea3.entry.js → p-676a4bd0.entry.js} +2 -2
  849. package/dist/siemens-ix/{p-1c5ebea3.entry.js.map → p-676a4bd0.entry.js.map} +1 -1
  850. package/dist/siemens-ix/{p-bfe469e4.entry.js → p-6af64cf4.entry.js} +2 -2
  851. package/dist/siemens-ix/{p-bfe469e4.entry.js.map → p-6af64cf4.entry.js.map} +1 -1
  852. package/dist/siemens-ix/{p-392b4297.entry.js → p-6b84501c.entry.js} +2 -2
  853. package/dist/siemens-ix/{p-392b4297.entry.js.map → p-6b84501c.entry.js.map} +1 -1
  854. package/dist/siemens-ix/{p-484aa96b.js → p-6ccf39dd.js} +2 -2
  855. package/dist/siemens-ix/p-6ccf39dd.js.map +1 -0
  856. package/dist/siemens-ix/{p-66178fe6.entry.js → p-6f3b0a66.entry.js} +2 -2
  857. package/dist/siemens-ix/{p-66178fe6.entry.js.map → p-6f3b0a66.entry.js.map} +1 -1
  858. package/dist/siemens-ix/{p-edc1d44a.entry.js → p-6f970ba4.entry.js} +2 -2
  859. package/dist/siemens-ix/p-6f970ba4.entry.js.map +1 -0
  860. package/dist/siemens-ix/{p-af7c4b16.entry.js → p-71a4590c.entry.js} +2 -2
  861. package/dist/siemens-ix/{p-be860121.entry.js → p-790709c5.entry.js} +2 -2
  862. package/dist/siemens-ix/p-790709c5.entry.js.map +1 -0
  863. package/dist/siemens-ix/{p-d9b654af.entry.js → p-7b65535a.entry.js} +2 -2
  864. package/dist/siemens-ix/p-7b65535a.entry.js.map +1 -0
  865. package/dist/siemens-ix/{p-e7ac5657.entry.js → p-7e91e565.entry.js} +2 -2
  866. package/dist/siemens-ix/p-7e91e565.entry.js.map +1 -0
  867. package/dist/siemens-ix/p-8039ec6b.entry.js +2 -0
  868. package/dist/siemens-ix/p-8039ec6b.entry.js.map +1 -0
  869. package/dist/siemens-ix/p-8964b303.entry.js +2 -0
  870. package/dist/siemens-ix/p-8964b303.entry.js.map +1 -0
  871. package/dist/siemens-ix/p-89734934.js +2 -0
  872. package/dist/siemens-ix/{p-d2f21544.js.map → p-89734934.js.map} +1 -1
  873. package/dist/siemens-ix/{p-b74a8cdc.entry.js → p-8a6d403c.entry.js} +2 -2
  874. package/dist/siemens-ix/p-8a6d403c.entry.js.map +1 -0
  875. package/dist/siemens-ix/{p-afb4565c.entry.js → p-8df3318f.entry.js} +2 -2
  876. package/dist/siemens-ix/p-8df3318f.entry.js.map +1 -0
  877. package/dist/siemens-ix/p-8efd9181.entry.js +2 -0
  878. package/dist/siemens-ix/p-8efd9181.entry.js.map +1 -0
  879. package/dist/siemens-ix/{p-d0b38ae2.entry.js → p-9213afda.entry.js} +2 -2
  880. package/dist/siemens-ix/{p-d0b38ae2.entry.js.map → p-9213afda.entry.js.map} +1 -1
  881. package/dist/siemens-ix/p-93fab3c7.entry.js +2 -0
  882. package/dist/siemens-ix/{p-c236cf18.entry.js.map → p-93fab3c7.entry.js.map} +1 -1
  883. package/dist/siemens-ix/{p-b62f8f62.entry.js → p-988ca463.entry.js} +2 -2
  884. package/dist/siemens-ix/{p-83da8f11.entry.js → p-9c63869a.entry.js} +2 -2
  885. package/dist/siemens-ix/p-9dd344d4.entry.js +2 -0
  886. package/dist/siemens-ix/{p-2643f32a.entry.js.map → p-9dd344d4.entry.js.map} +1 -1
  887. package/dist/siemens-ix/{p-815699d1.entry.js → p-9df683f8.entry.js} +2 -2
  888. package/dist/siemens-ix/p-9df683f8.entry.js.map +1 -0
  889. package/dist/siemens-ix/{p-c530de51.entry.js → p-a36ee7b7.entry.js} +2 -2
  890. package/dist/siemens-ix/p-a36ee7b7.entry.js.map +1 -0
  891. package/dist/siemens-ix/p-aac089f0.entry.js +2 -0
  892. package/dist/siemens-ix/p-aac089f0.entry.js.map +1 -0
  893. package/dist/siemens-ix/p-ac9bb8be.entry.js +2 -0
  894. package/dist/siemens-ix/{p-9f960c0b.entry.js → p-af565741.entry.js} +2 -2
  895. package/dist/siemens-ix/p-af565741.entry.js.map +1 -0
  896. package/dist/siemens-ix/p-b00f255c.entry.js +2 -0
  897. package/dist/siemens-ix/{p-a36ad7c7.entry.js → p-b8b7aa8e.entry.js} +2 -2
  898. package/dist/siemens-ix/{p-97d4b3bd.entry.js → p-ba1aeecb.entry.js} +2 -2
  899. package/dist/siemens-ix/p-ba1aeecb.entry.js.map +1 -0
  900. package/dist/siemens-ix/{p-df7060ae.entry.js → p-ba60132f.entry.js} +2 -2
  901. package/dist/siemens-ix/{p-54efe56b.entry.js → p-bb33784f.entry.js} +2 -2
  902. package/dist/siemens-ix/{p-2d7ea063.entry.js → p-bb99415f.entry.js} +2 -2
  903. package/dist/siemens-ix/p-bb99415f.entry.js.map +1 -0
  904. package/dist/siemens-ix/{p-2db63240.entry.js → p-bc05aafe.entry.js} +2 -2
  905. package/dist/siemens-ix/p-bc05aafe.entry.js.map +1 -0
  906. package/dist/siemens-ix/{p-d19b52bd.entry.js → p-bf01468d.entry.js} +2 -2
  907. package/dist/siemens-ix/{p-8c2b62c3.entry.js → p-c272dbbd.entry.js} +2 -2
  908. package/dist/siemens-ix/p-c272dbbd.entry.js.map +1 -0
  909. package/dist/siemens-ix/p-c4b75f38.entry.js +2 -0
  910. package/dist/siemens-ix/{p-caf49e00.entry.js → p-c7c8e52b.entry.js} +2 -2
  911. package/dist/siemens-ix/{p-57e60a06.entry.js → p-ca95654f.entry.js} +2 -2
  912. package/dist/siemens-ix/{p-57e60a06.entry.js.map → p-ca95654f.entry.js.map} +1 -1
  913. package/dist/siemens-ix/p-ce563a48.js.map +1 -1
  914. package/dist/siemens-ix/{p-3f367d44.entry.js → p-d489e0b3.entry.js} +2 -2
  915. package/dist/siemens-ix/{p-3f367d44.entry.js.map → p-d489e0b3.entry.js.map} +1 -1
  916. package/dist/siemens-ix/p-d70eb520.entry.js +2 -0
  917. package/dist/siemens-ix/p-d70eb520.entry.js.map +1 -0
  918. package/dist/siemens-ix/p-d8c93983.entry.js +2 -0
  919. package/dist/siemens-ix/{p-243e8b32.entry.js.map → p-d8c93983.entry.js.map} +1 -1
  920. package/dist/siemens-ix/{p-9d323232.entry.js → p-d9b3c267.entry.js} +2 -2
  921. package/dist/siemens-ix/{p-9d323232.entry.js.map → p-d9b3c267.entry.js.map} +1 -1
  922. package/dist/siemens-ix/{p-5fbdff13.entry.js → p-dcc76d47.entry.js} +2 -2
  923. package/dist/siemens-ix/{p-0f2bf43d.entry.js → p-e09995d4.entry.js} +2 -2
  924. package/dist/siemens-ix/{p-0b5c9f33.entry.js → p-e1e48602.entry.js} +2 -2
  925. package/dist/siemens-ix/p-ebfaeb95.entry.js +2 -0
  926. package/dist/siemens-ix/{p-c6796e64.entry.js.map → p-ebfaeb95.entry.js.map} +1 -1
  927. package/dist/siemens-ix/{p-bc272f75.entry.js → p-f023b24b.entry.js} +2 -2
  928. package/dist/siemens-ix/p-f023b24b.entry.js.map +1 -0
  929. package/dist/siemens-ix/p-f5ccceb6.entry.js +2 -0
  930. package/dist/siemens-ix/p-f5ccceb6.entry.js.map +1 -0
  931. package/dist/siemens-ix/p-f815f96e.entry.js +2 -0
  932. package/dist/siemens-ix/p-f815f96e.entry.js.map +1 -0
  933. package/dist/siemens-ix/siemens-ix-core.css +1 -1
  934. package/dist/siemens-ix/siemens-ix.css +3 -3
  935. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  936. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  937. package/dist/types/components/application/application.d.ts +4 -4
  938. package/dist/types/components/application-header/application-header.d.ts +8 -2
  939. package/dist/types/components/application-header/application-switch-modal/application-switch-modal.d.ts +1 -1
  940. package/dist/types/components/application-sidebar/events.d.ts +2 -2
  941. package/dist/types/components/basic-navigation/basic-navigation.d.ts +3 -3
  942. package/dist/types/components/blind/blind.d.ts +1 -1
  943. package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +2 -2
  944. package/dist/types/components/button/base-button.d.ts +1 -1
  945. package/dist/types/components/button/button-component.d.ts +31 -0
  946. package/dist/types/components/button/button.d.ts +2 -1
  947. package/dist/types/components/card-accordion/card-accordion.d.ts +1 -1
  948. package/dist/types/components/category-filter/category-filter.d.ts +1 -1
  949. package/dist/types/components/chip/chip.d.ts +2 -2
  950. package/dist/types/components/date-dropdown/date-dropdown.d.ts +19 -1
  951. package/dist/types/components/date-input/date-input.d.ts +1 -1
  952. package/dist/types/components/date-picker/date-picker.d.ts +2 -2
  953. package/dist/types/components/dropdown/dropdown-controller.d.ts +2 -2
  954. package/dist/types/components/dropdown/dropdown.d.ts +1 -1
  955. package/dist/types/components/dropdown-header/dropdown-header.d.ts +1 -1
  956. package/dist/types/components/empty-state/empty-state.d.ts +3 -3
  957. package/dist/types/components/expanding-search/expanding-search.d.ts +15 -1
  958. package/dist/types/components/field-wrapper/helper-text-util.d.ts +1 -1
  959. package/dist/types/components/filter-chip/filter-chip.d.ts +1 -1
  960. package/dist/types/components/flip-tile/flip-tile.d.ts +2 -2
  961. package/dist/types/components/group/group.d.ts +1 -1
  962. package/dist/types/components/icon-button/icon-button.d.ts +4 -4
  963. package/dist/types/components/icon-toggle-button/icon-toggle-button.d.ts +1 -1
  964. package/dist/types/components/input/input.d.ts +3 -1
  965. package/dist/types/components/input/input.util.d.ts +2 -0
  966. package/dist/types/components/input/number-input.d.ts +3 -1
  967. package/dist/types/components/input/tests/validation.ct.d.ts +1 -0
  968. package/dist/types/components/input-group/input-group.d.ts +1 -1
  969. package/dist/types/components/key-value/key-value.d.ts +2 -2
  970. package/dist/types/components/kpi/kpi.d.ts +3 -3
  971. package/dist/types/components/link-button/link-button.d.ts +1 -1
  972. package/dist/types/components/map-navigation/map-navigation.d.ts +2 -2
  973. package/dist/types/components/map-navigation-overlay/map-navigation-overlay.d.ts +4 -4
  974. package/dist/types/components/menu/menu-expand-icon.d.ts +1 -1
  975. package/dist/types/components/menu/menu.d.ts +12 -5
  976. package/dist/types/components/menu-about/menu-about.d.ts +1 -1
  977. package/dist/types/components/menu-about-item/menu-about-item.d.ts +1 -1
  978. package/dist/types/components/menu-about-news/menu-about-news.d.ts +2 -2
  979. package/dist/types/components/menu-avatar/menu-avatar.d.ts +4 -4
  980. package/dist/types/components/menu-avatar-item/menu-avatar-item.d.ts +3 -3
  981. package/dist/types/components/menu-category/menu-category.d.ts +6 -6
  982. package/dist/types/components/menu-settings/menu-settings.d.ts +1 -1
  983. package/dist/types/components/menu-settings-item/menu-settings-item.d.ts +1 -1
  984. package/dist/types/components/message-bar/message-bar.d.ts +2 -2
  985. package/dist/types/components/modal/modal.d.ts +2 -2
  986. package/dist/types/components/pane/pane.d.ts +1 -1
  987. package/dist/types/components/pill/pill.d.ts +6 -2
  988. package/dist/types/components/pill/tests/pill.ct.d.ts +1 -0
  989. package/dist/types/components/select/select.d.ts +16 -1
  990. package/dist/types/components/select/test/select-keyboard.ct.d.ts +1 -0
  991. package/dist/types/components/select-item/select-item.d.ts +1 -1
  992. package/dist/types/components/slider/slider.d.ts +1 -1
  993. package/dist/types/components/split-button/split-button.d.ts +3 -3
  994. package/dist/types/components/split-button-item/split-button-item.d.ts +2 -2
  995. package/dist/types/components/tabs/tabs.d.ts +1 -1
  996. package/dist/types/components/time-picker/time-picker.d.ts +1 -1
  997. package/dist/types/components/toast/toast.d.ts +3 -3
  998. package/dist/types/components/toggle-button/toggle-button.d.ts +1 -1
  999. package/dist/types/components/tree/tree.d.ts +1 -1
  1000. package/dist/types/components/utils/a11y.d.ts +1 -1
  1001. package/dist/types/components/utils/application-layout/context.d.ts +3 -3
  1002. package/dist/types/components/utils/application-layout/service.d.ts +1 -1
  1003. package/dist/types/components/utils/context.d.ts +2 -2
  1004. package/dist/types/components/utils/find-element.d.ts +1 -1
  1005. package/dist/types/components/utils/lazy-list/lazy.d.ts +1 -1
  1006. package/dist/types/components/utils/make-ref.d.ts +1 -1
  1007. package/dist/types/components/utils/menu-service/menu-service.d.ts +1 -1
  1008. package/dist/types/components/utils/modal/message.d.ts +5 -5
  1009. package/dist/types/components/utils/shadow-dom.d.ts +2 -2
  1010. package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +7 -7
  1011. package/dist/types/components/workflow-steps/workflow-steps.d.ts +1 -1
  1012. package/dist/types/components.d.ts +147 -59
  1013. package/dist/types/setup.ct.d.ts +1 -0
  1014. package/dist/types/setup.d.ts +1 -0
  1015. package/dist/types/tests/utils/test/index.d.ts +1 -1
  1016. package/dist/types/tests/utils/test/page.d.ts +12 -2
  1017. package/hydrate/index.js +429 -295
  1018. package/package.json +3 -4
  1019. package/scss/components/form/_input.scss +4 -1
  1020. package/dist/cjs/index-492e6488.js.map +0 -1
  1021. package/dist/cjs/input.util-54d161e6.js.map +0 -1
  1022. package/dist/cjs/menu-tabs-fc-eb899b0d.js.map +0 -1
  1023. package/dist/cjs/setup-cc07fbfc.js.map +0 -1
  1024. package/dist/cjs/validation-1e3dd5ee.js.map +0 -1
  1025. package/dist/esm/app-globals-40082a83.js +0 -7
  1026. package/dist/esm/index-7421df0c.js.map +0 -1
  1027. package/dist/esm/input.util-c855b2ed.js.map +0 -1
  1028. package/dist/esm/menu-tabs-fc-563a74d9.js.map +0 -1
  1029. package/dist/esm/setup-9c5fe321.js.map +0 -1
  1030. package/dist/esm/validation-45aa490c.js.map +0 -1
  1031. package/dist/siemens-ix/p-08463669.entry.js +0 -2
  1032. package/dist/siemens-ix/p-08463669.entry.js.map +0 -1
  1033. package/dist/siemens-ix/p-0be907d4.entry.js +0 -2
  1034. package/dist/siemens-ix/p-18542846.entry.js +0 -2
  1035. package/dist/siemens-ix/p-18542846.entry.js.map +0 -1
  1036. package/dist/siemens-ix/p-20938f73.entry.js +0 -2
  1037. package/dist/siemens-ix/p-20938f73.entry.js.map +0 -1
  1038. package/dist/siemens-ix/p-243e8b32.entry.js +0 -2
  1039. package/dist/siemens-ix/p-2643f32a.entry.js +0 -2
  1040. package/dist/siemens-ix/p-2b367b12.entry.js +0 -2
  1041. package/dist/siemens-ix/p-2b367b12.entry.js.map +0 -1
  1042. package/dist/siemens-ix/p-2b9c5f59.entry.js +0 -2
  1043. package/dist/siemens-ix/p-2d7ea063.entry.js.map +0 -1
  1044. package/dist/siemens-ix/p-2db63240.entry.js.map +0 -1
  1045. package/dist/siemens-ix/p-37af7117.entry.js.map +0 -1
  1046. package/dist/siemens-ix/p-3aaecbd9.js +0 -2
  1047. package/dist/siemens-ix/p-3aaecbd9.js.map +0 -1
  1048. package/dist/siemens-ix/p-40dc610f.entry.js +0 -2
  1049. package/dist/siemens-ix/p-40dc610f.entry.js.map +0 -1
  1050. package/dist/siemens-ix/p-451551d1.js +0 -2
  1051. package/dist/siemens-ix/p-451551d1.js.map +0 -1
  1052. package/dist/siemens-ix/p-484aa96b.js.map +0 -1
  1053. package/dist/siemens-ix/p-48718dc1.entry.js.map +0 -1
  1054. package/dist/siemens-ix/p-4a631d9c.entry.js +0 -2
  1055. package/dist/siemens-ix/p-4a631d9c.entry.js.map +0 -1
  1056. package/dist/siemens-ix/p-4a9330a5.entry.js +0 -2
  1057. package/dist/siemens-ix/p-4a9330a5.entry.js.map +0 -1
  1058. package/dist/siemens-ix/p-4ec6ddfb.entry.js.map +0 -1
  1059. package/dist/siemens-ix/p-52928e21.entry.js +0 -2
  1060. package/dist/siemens-ix/p-52928e21.entry.js.map +0 -1
  1061. package/dist/siemens-ix/p-53fd545a.entry.js +0 -2
  1062. package/dist/siemens-ix/p-53fd545a.entry.js.map +0 -1
  1063. package/dist/siemens-ix/p-63dd987f.entry.js.map +0 -1
  1064. package/dist/siemens-ix/p-654f91f2.entry.js.map +0 -1
  1065. package/dist/siemens-ix/p-66559451.entry.js +0 -2
  1066. package/dist/siemens-ix/p-6e3f1de3.entry.js +0 -2
  1067. package/dist/siemens-ix/p-6e3f1de3.entry.js.map +0 -1
  1068. package/dist/siemens-ix/p-7aa07d9b.entry.js +0 -2
  1069. package/dist/siemens-ix/p-7af324e9.entry.js +0 -2
  1070. package/dist/siemens-ix/p-7af324e9.entry.js.map +0 -1
  1071. package/dist/siemens-ix/p-815699d1.entry.js.map +0 -1
  1072. package/dist/siemens-ix/p-8457d846.entry.js.map +0 -1
  1073. package/dist/siemens-ix/p-897c8e5b.entry.js +0 -2
  1074. package/dist/siemens-ix/p-897c8e5b.entry.js.map +0 -1
  1075. package/dist/siemens-ix/p-8c2b62c3.entry.js.map +0 -1
  1076. package/dist/siemens-ix/p-97d4b3bd.entry.js.map +0 -1
  1077. package/dist/siemens-ix/p-9f960c0b.entry.js.map +0 -1
  1078. package/dist/siemens-ix/p-a4dc6824.entry.js.map +0 -1
  1079. package/dist/siemens-ix/p-a61ed462.entry.js +0 -2
  1080. package/dist/siemens-ix/p-afb4565c.entry.js.map +0 -1
  1081. package/dist/siemens-ix/p-b2a06e46.entry.js.map +0 -1
  1082. package/dist/siemens-ix/p-b74a8cdc.entry.js.map +0 -1
  1083. package/dist/siemens-ix/p-bc272f75.entry.js.map +0 -1
  1084. package/dist/siemens-ix/p-bd4c1a44.entry.js.map +0 -1
  1085. package/dist/siemens-ix/p-be860121.entry.js.map +0 -1
  1086. package/dist/siemens-ix/p-c07557b0.entry.js +0 -2
  1087. package/dist/siemens-ix/p-c07557b0.entry.js.map +0 -1
  1088. package/dist/siemens-ix/p-c236cf18.entry.js +0 -2
  1089. package/dist/siemens-ix/p-c3ca17fc.js +0 -2
  1090. package/dist/siemens-ix/p-c3ca17fc.js.map +0 -1
  1091. package/dist/siemens-ix/p-c530de51.entry.js.map +0 -1
  1092. package/dist/siemens-ix/p-c6796e64.entry.js +0 -2
  1093. package/dist/siemens-ix/p-d01f05cf.entry.js +0 -2
  1094. package/dist/siemens-ix/p-d2f21544.js +0 -2
  1095. package/dist/siemens-ix/p-d9b654af.entry.js.map +0 -1
  1096. package/dist/siemens-ix/p-dfb181c1.entry.js.map +0 -1
  1097. package/dist/siemens-ix/p-e7ac5657.entry.js.map +0 -1
  1098. package/dist/siemens-ix/p-edc1d44a.entry.js.map +0 -1
  1099. package/dist/siemens-ix/p-ede52531.entry.js.map +0 -1
  1100. package/dist/siemens-ix/p-ee0645f8.entry.js.map +0 -1
  1101. package/dist/siemens-ix/p-f97a15c4.js.map +0 -1
  1102. package/dist/siemens-ix/p-fe396297.entry.js +0 -2
  1103. package/dist/siemens-ix/p-ffca56d6.entry.js +0 -2
  1104. /package/dist/siemens-ix/{p-22cba43a.entry.js.map → p-060d5c58.entry.js.map} +0 -0
  1105. /package/dist/siemens-ix/{p-42320fb3.entry.js.map → p-19d1c463.entry.js.map} +0 -0
  1106. /package/dist/siemens-ix/{p-2d3a6d29.entry.js.map → p-1bff0a1f.entry.js.map} +0 -0
  1107. /package/dist/siemens-ix/{p-286feb7e.entry.js.map → p-297cd68a.entry.js.map} +0 -0
  1108. /package/dist/siemens-ix/{p-2b9c5f59.entry.js.map → p-309b82ec.entry.js.map} +0 -0
  1109. /package/dist/siemens-ix/{p-6624076c.entry.js.map → p-353f081a.entry.js.map} +0 -0
  1110. /package/dist/siemens-ix/{p-4cc79e8f.entry.js.map → p-44425604.entry.js.map} +0 -0
  1111. /package/dist/siemens-ix/{p-05839c77.entry.js.map → p-48d6554c.entry.js.map} +0 -0
  1112. /package/dist/siemens-ix/{p-0b2f0536.entry.js.map → p-4cb35508.entry.js.map} +0 -0
  1113. /package/dist/siemens-ix/{p-a61ed462.entry.js.map → p-5767345b.entry.js.map} +0 -0
  1114. /package/dist/siemens-ix/{p-cbfca958.entry.js.map → p-617b3d78.entry.js.map} +0 -0
  1115. /package/dist/siemens-ix/{p-af7c4b16.entry.js.map → p-71a4590c.entry.js.map} +0 -0
  1116. /package/dist/siemens-ix/{p-b62f8f62.entry.js.map → p-988ca463.entry.js.map} +0 -0
  1117. /package/dist/siemens-ix/{p-83da8f11.entry.js.map → p-9c63869a.entry.js.map} +0 -0
  1118. /package/dist/siemens-ix/{p-7aa07d9b.entry.js.map → p-ac9bb8be.entry.js.map} +0 -0
  1119. /package/dist/siemens-ix/{p-d01f05cf.entry.js.map → p-b00f255c.entry.js.map} +0 -0
  1120. /package/dist/siemens-ix/{p-a36ad7c7.entry.js.map → p-b8b7aa8e.entry.js.map} +0 -0
  1121. /package/dist/siemens-ix/{p-df7060ae.entry.js.map → p-ba60132f.entry.js.map} +0 -0
  1122. /package/dist/siemens-ix/{p-54efe56b.entry.js.map → p-bb33784f.entry.js.map} +0 -0
  1123. /package/dist/siemens-ix/{p-d19b52bd.entry.js.map → p-bf01468d.entry.js.map} +0 -0
  1124. /package/dist/siemens-ix/{p-66559451.entry.js.map → p-c4b75f38.entry.js.map} +0 -0
  1125. /package/dist/siemens-ix/{p-caf49e00.entry.js.map → p-c7c8e52b.entry.js.map} +0 -0
  1126. /package/dist/siemens-ix/{p-5fbdff13.entry.js.map → p-dcc76d47.entry.js.map} +0 -0
  1127. /package/dist/siemens-ix/{p-0f2bf43d.entry.js.map → p-e09995d4.entry.js.map} +0 -0
  1128. /package/dist/siemens-ix/{p-0b5c9f33.entry.js.map → p-e1e48602.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,f as o,h as s,g as i,H as n}from"./p-5806df2b.js";const a=".text-xs{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text)}.text-s{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text)}.text-default{-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)}.text-default-single{-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.143em;color:var(--theme-color-std-text)}.text-default-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}.text-l{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text)}.text-l-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text)}.text-h2{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text)}.text-xl{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text)}a{color:var(--theme-color-primary)}:host{display:block;background-color:var(--theme-nav-overlay--background);padding:0.75rem 1rem 1rem 2rem;flex-grow:1;position:absolute;width:100%;height:100%}: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 .settings-header{display:flex;justify-content:space-between;flex-direction:row;align-items:center;height:2rem;margin-bottom:0.5rem}:host .settings-header h2{color:var(--theme-nav-overlay-header--color);margin-bottom:1rem}:host ix-tabs{margin-bottom:1.5rem}:host .settings-tabs{margin-bottom:1.5rem}";const r=a;const l=class{constructor(o){t(this,o);this.close=e(this,"close",7);this.activeTabLabel=undefined;this.label="Settings";this.show=false;this.items=undefined}updateTab(t){h(this,t)}componentWillLoad(){c(this)}componentDidLoad(){o(this.el)}render(){return s(g,{key:"9ec0ad1f36b3faf9e1c688489b26e10b8cf0c982",context:this})}get el(){return i(this)}static get watchers(){return{activeTabLabel:["updateTab"]}}};l.style=r;function m(t){return Array.from(t.el.querySelectorAll(t instanceof l?"ix-menu-settings-item":"ix-menu-about-item"))}function h(t,e){t.activeTabLabel=e;t.items.forEach((e=>{e.style.display="none";if(e.label===t.activeTabLabel){e.style.display="block"}}))}function c(t){t.items=m(t);if(t.items.length){h(t,t.activeTabLabel||t.items[0].label)}t.items.forEach((e=>{e.addEventListener("labelChange",(e=>{t.items=m(t);if(e.detail.oldLabel===t.activeTabLabel){t.activeTabLabel=e.detail.newLabel}}))}))}const f=t=>t.items.map((({label:e})=>s("ix-tab-item",{selected:e===t.activeTabLabel,onClick:()=>h(t,e)},e)));const g=({context:t})=>{const e=t.items.findIndex((e=>e.label===t.activeTabLabel));return s(n,{slot:t instanceof l?"ix-menu-settings":"ix-menu-about",class:{show:t.show}},s("div",{class:t instanceof l?"settings-header":"about-header"},s("h2",{class:"text-h2"},t.label),s("ix-icon-button",{ghost:true,size:"24",icon:"close",onClick:e=>t.close.emit({name:t instanceof l?"ix-menu-settings":"ix-menu-about",nativeEvent:e})})),s("ix-tabs",{selected:e!==-1?e:0},f(t)),s("slot",null))};export{g as M,l as a,c as i,h as s};
2
- //# sourceMappingURL=p-484aa96b.js.map
1
+ import{r as t,c as e,f as o,h as s,g as i,H as n}from"./p-5806df2b.js";const a=".text-xs{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text)}.text-s{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text)}.text-default{-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)}.text-default-single{-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.143em;color:var(--theme-color-std-text)}.text-default-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}.text-l{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text)}.text-l-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text)}.text-h2{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text)}.text-xl{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text)}a{color:var(--theme-color-primary)}:host{display:block;background-color:var(--theme-nav-overlay--background);padding:0.75rem 1rem 1rem 2rem;flex-grow:1;position:absolute;width:100%;height:100%}: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 .settings-header{display:flex;justify-content:space-between;flex-direction:row;align-items:center;height:2rem;margin-bottom:0.5rem}:host .settings-header h2{color:var(--theme-nav-overlay-header--color);margin-bottom:1rem}:host ix-tabs{margin-bottom:1.5rem}:host .settings-tabs{margin-bottom:1.5rem}";const r=a;const l=class{constructor(o){t(this,o);this.close=e(this,"close",7);this.activeTabLabel=undefined;this.label="Settings";this.show=false;this.items=undefined}updateTab(t){h(this,t)}componentWillLoad(){c(this)}componentDidLoad(){o(this.el)}render(){return s(g,{key:"e5a0d1cc238a2c88d9a0c572fbfecefd3a589c38",context:this})}get el(){return i(this)}static get watchers(){return{activeTabLabel:["updateTab"]}}};l.style=r;function m(t){return Array.from(t.el.querySelectorAll(t instanceof l?"ix-menu-settings-item":"ix-menu-about-item"))}function h(t,e){t.activeTabLabel=e;t.items.forEach((e=>{e.style.display="none";if(e.label===t.activeTabLabel){e.style.display="block"}}))}function c(t){t.items=m(t);if(t.items.length){const e=t.activeTabLabel||t.items[0].label;if(e){h(t,e)}}t.items.forEach((e=>{e.addEventListener("labelChange",(e=>{t.items=m(t);if(e.detail.oldLabel===t.activeTabLabel){t.activeTabLabel=e.detail.newLabel}}))}))}const f=t=>t.items.map((({label:e})=>s("ix-tab-item",{selected:e===t.activeTabLabel,onClick:()=>{if(e){h(t,e)}}},e)));const g=({context:t})=>{const e=t.items.findIndex((e=>e.label===t.activeTabLabel));return s(n,{slot:t instanceof l?"ix-menu-settings":"ix-menu-about",class:{show:t.show}},s("div",{class:t instanceof l?"settings-header":"about-header"},s("h2",{class:"text-h2"},t.label),s("ix-icon-button",{ghost:true,size:"24",icon:"close",onClick:e=>t.close.emit({name:t instanceof l?"ix-menu-settings":"ix-menu-about",nativeEvent:e})})),s("ix-tabs",{selected:e!==-1?e:0},f(t)),s("slot",null))};export{g as M,l as a,c as i,h as s};
2
+ //# sourceMappingURL=p-6ccf39dd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["menuSettingsCss","IxMenuSettingsStyle0","MenuSettings","updateTab","label","setTab","this","componentWillLoad","initialize","componentDidLoad","forceUpdate","el","render","h","MenuTabs","key","context","getItems","Array","from","querySelectorAll","activeTabLabel","items","forEach","i","style","display","length","selectedLabel","item","addEventListener","e","detail","oldLabel","newLabel","getTabItems","map","selected","onClick","selectedIndex","findIndex","Host","slot","class","show","ghost","size","icon","close","emit","name","nativeEvent"],"sources":["src/components/menu-settings/menu-settings.scss?tag=ix-menu-settings&encapsulation=shadow","src/components/menu-settings/menu-settings.tsx","src/components/utils/menu-tabs/menu-tabs-utils.ts","src/components/utils/menu-tabs/menu-tabs-fc.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'legacy/fonts';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: block;\n background-color: var(--theme-nav-overlay--background);\n padding: $medium-space $default-space $default-space $x-large-space;\n flex-grow: 1;\n position: absolute;\n width: 100%;\n height: 100%;\n\n .settings-header {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n align-items: center;\n height: $x-large-space;\n margin-bottom: $small-space;\n\n h2 {\n color: var(--theme-nav-overlay-header--color);\n margin-bottom: 1rem;\n }\n }\n\n ix-tabs {\n margin-bottom: 1.5rem;\n }\n\n .settings-tabs {\n margin-bottom: $large-space;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n forceUpdate,\n h,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { MenuTabs } from '../utils/menu-tabs/menu-tabs-fc';\nimport {\n CustomCloseEvent,\n initialize,\n setTab,\n} from '../utils/menu-tabs/menu-tabs-utils';\n\n@Component({\n tag: 'ix-menu-settings',\n styleUrl: 'menu-settings.scss',\n shadow: true,\n})\nexport class MenuSettings {\n @Element() el!: HTMLIxMenuSettingsElement;\n\n /**\n * Active tab\n */\n // eslint-disable-next-line @stencil-community/strict-mutable\n @Prop({ mutable: true }) activeTabLabel?: string;\n\n /**\n * Label of first tab\n */\n @Prop() label = 'Settings';\n\n /**\n * Internal\n */\n @Prop() show = false;\n\n /**\n * Popover closed\n */\n @Event() close!: EventEmitter<CustomCloseEvent>;\n\n @State() items!: HTMLIxMenuSettingsItemElement[];\n\n @Watch('activeTabLabel')\n updateTab(label: string) {\n setTab(this, label);\n }\n\n componentWillLoad() {\n initialize(this);\n }\n\n componentDidLoad() {\n forceUpdate(this.el);\n }\n\n render() {\n return <MenuTabs context={this} />;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { MenuAbout } from '../../menu-about/menu-about';\nimport { MenuSettings } from '../../menu-settings/menu-settings';\n\nfunction getItems(\n context: MenuSettings | MenuAbout\n): HTMLIxMenuSettingsItemElement[] | HTMLIxMenuAboutItemElement[] {\n return Array.from(\n context.el.querySelectorAll(\n context instanceof MenuSettings\n ? 'ix-menu-settings-item'\n : 'ix-menu-about-item'\n )\n );\n}\n\nexport function setTab(context: MenuSettings | MenuAbout, label: string) {\n context.activeTabLabel = label;\n context.items.forEach((i) => {\n i.style.display = 'none';\n if (i.label === context.activeTabLabel) {\n i.style.display = 'block';\n }\n });\n}\n\nexport function initialize(context: MenuSettings | MenuAbout) {\n context.items = getItems(context);\n\n if (context.items.length) {\n const selectedLabel = context.activeTabLabel || context.items[0].label;\n if (selectedLabel) {\n setTab(context, selectedLabel);\n }\n }\n\n context.items.forEach((item) => {\n item.addEventListener('labelChange', (e: CustomEvent) => {\n context.items = getItems(context);\n\n if (e.detail.oldLabel === context.activeTabLabel) {\n context.activeTabLabel = e.detail.newLabel;\n }\n });\n });\n}\n\nexport interface CustomLabelChangeEvent {\n name: string;\n oldLabel: string;\n newLabel: string;\n}\n\nexport interface CustomCloseEvent {\n nativeEvent: MouseEvent;\n name: string;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { FunctionalComponent, h, Host } from '@stencil/core';\nimport { setTab } from './menu-tabs-utils';\nimport { MenuAbout } from '../../menu-about/menu-about';\nimport { MenuSettings } from '../../menu-settings/menu-settings';\n\ninterface MenuTabsProps {\n context: MenuSettings | MenuAbout;\n}\n\nconst getTabItems = (context: MenuSettings | MenuAbout) => {\n return context.items.map(({ label }) => {\n return (\n <ix-tab-item\n selected={label === context.activeTabLabel}\n onClick={() => {\n if (label) {\n setTab(context, label);\n }\n }}\n >\n {label}\n </ix-tab-item>\n );\n });\n};\n\nexport const MenuTabs: FunctionalComponent<MenuTabsProps> = ({ context }) => {\n const selectedIndex = context.items.findIndex(\n (item) => item.label === context.activeTabLabel\n );\n return (\n <Host\n slot={\n context instanceof MenuSettings ? 'ix-menu-settings' : 'ix-menu-about'\n }\n class={{\n show: context.show,\n }}\n >\n <div\n class={\n context instanceof MenuSettings ? 'settings-header' : 'about-header'\n }\n >\n <h2 class=\"text-h2\">{context.label}</h2>\n <ix-icon-button\n ghost\n size=\"24\"\n icon={'close'}\n onClick={(e) =>\n context.close.emit({\n name:\n context instanceof MenuSettings\n ? 'ix-menu-settings'\n : 'ix-menu-about',\n nativeEvent: e,\n })\n }\n ></ix-icon-button>\n </div>\n <ix-tabs selected={selectedIndex !== -1 ? selectedIndex : 0}>\n {getTabItems(context)}\n </ix-tabs>\n <slot></slot>\n </Host>\n );\n};\n"],"mappings":"uEAAA,MAAMA,EAAkB,ujIACxB,MAAAC,EAAeD,E,MC+BFE,EAAY,M,+FAYP,W,UAKD,M,qBAUf,SAAAC,CAAUC,GACRC,EAAOC,KAAMF,E,CAGf,iBAAAG,GACEC,EAAWF,K,CAGb,gBAAAG,GACEC,EAAYJ,KAAKK,G,CAGnB,MAAAC,GACE,OAAOC,EAACC,EAAQ,CAAAC,IAAA,2CAACC,QAASV,M,gGC5D9B,SAASW,EACPD,GAEA,OAAOE,MAAMC,KACXH,EAAQL,GAAGS,iBACTJ,aAAmBd,EACf,wBACA,sBAGV,C,SAEgBG,EAAOW,EAAmCZ,GACxDY,EAAQK,eAAiBjB,EACzBY,EAAQM,MAAMC,SAASC,IACrBA,EAAEC,MAAMC,QAAU,OAClB,GAAIF,EAAEpB,QAAUY,EAAQK,eAAgB,CACtCG,EAAEC,MAAMC,QAAU,O,IAGxB,C,SAEgBlB,EAAWQ,GACzBA,EAAQM,MAAQL,EAASD,GAEzB,GAAIA,EAAQM,MAAMK,OAAQ,CACxB,MAAMC,EAAgBZ,EAAQK,gBAAkBL,EAAQM,MAAM,GAAGlB,MACjE,GAAIwB,EAAe,CACjBvB,EAAOW,EAASY,E,EAIpBZ,EAAQM,MAAMC,SAASM,IACrBA,EAAKC,iBAAiB,eAAgBC,IACpCf,EAAQM,MAAQL,EAASD,GAEzB,GAAIe,EAAEC,OAAOC,WAAajB,EAAQK,eAAgB,CAChDL,EAAQK,eAAiBU,EAAEC,OAAOE,Q,IAEpC,GAEN,CCnCA,MAAMC,EAAenB,GACZA,EAAQM,MAAMc,KAAI,EAAGhC,WAExBS,EAAA,eACEwB,SAAUjC,IAAUY,EAAQK,eAC5BiB,QAAS,KACP,GAAIlC,EAAO,CACTC,EAAOW,EAASZ,E,IAInBA,K,MAMIU,EAA+C,EAAGE,cAC7D,MAAMuB,EAAgBvB,EAAQM,MAAMkB,WACjCX,GAASA,EAAKzB,QAAUY,EAAQK,iBAEnC,OACER,EAAC4B,EAAI,CACHC,KACE1B,aAAmBd,EAAe,mBAAqB,gBAEzDyC,MAAO,CACLC,KAAM5B,EAAQ4B,OAGhB/B,EAAA,OACE8B,MACE3B,aAAmBd,EAAe,kBAAoB,gBAGxDW,EAAA,MAAI8B,MAAM,WAAW3B,EAAQZ,OAC7BS,EAAA,kBACEgC,MAAK,KACLC,KAAK,KACLC,KAAM,QACNT,QAAUP,GACRf,EAAQgC,MAAMC,KAAK,CACjBC,KACElC,aAAmBd,EACf,mBACA,gBACNiD,YAAapB,OAKrBlB,EAAA,WAASwB,SAAUE,KAAmB,EAAIA,EAAgB,GACvDJ,EAAYnB,IAEfH,EAAA,aACK,S"}
@@ -1,2 +1,2 @@
1
- import{r as t,d as r,h as e,F as a,H as o,g as i,c as s}from"./p-5806df2b.js";import{B as n}from"./p-35e14912.js";import{c as l,h as c}from"./p-345e1c73.js";import{m as d}from"./p-ce563a48.js";const b=":host{display:flex;position:relative;width:-moz-fit-content;width:fit-content}: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 .avatar{display:flex;align-items:center}:host .avatar>.avatar-image{height:2rem;width:2rem;min-height:2rem;min-width:2rem;border-radius:100px}:host .avatar>.avatar-initials{display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;min-height:2rem;min-width:2rem;border-radius:100px;background-color:var(--theme-avatar--background);color:var(--theme-avatar--color)}:host .avatar #avatar-path-background{fill:var(--theme-avatar--background)}:host .avatar #avatar-path-person{fill:var(--theme-avatar--color)}:host .user-info{display:flex;flex-direction:row;position:relative;height:2.5rem;padding:1rem;width:12.75rem;min-width:12.75rem;max-width:12.75rem;gap:1rem}:host .user-info .avatar{width:2rem;pointer-events:none}:host .user-info .user{display:flex;position:relative;flex-direction:column;justify-content:center;max-width:10rem;width:100%;overflow:hidden}:host .user-info .username{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .user-info .extra{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host(.avatar-button) button{all:unset;box-sizing:border-box;display:inline-flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;align-items:center;justify-content:center;width:100%;height:100%;padding:0 0.5rem;padding:0px;border-radius:100px !important}:host(.avatar-button) .btn-invisible-primary{border-radius:var(--theme-btn--border-radius)}:host(.avatar-button) .btn-invisible-primary,:host(.avatar-button) .btn-invisible-primary.focus,:host(.avatar-button) .btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host(.avatar-button) .btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host(.avatar-button) .btn-invisible-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host(.avatar-button) .btn-invisible-primary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host(.avatar-button) .btn-invisible-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host(.avatar-button) .btn-invisible-primary.selected:not(.disabled):not(:disabled):active,:host(.avatar-button) .btn-invisible-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled){cursor:pointer}:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled):hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled){cursor:pointer}:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled):active,:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}:host(.avatar-button) .avatar{transform:scale(0.8)}";const h=b;function v(t){const{initials:r}=t;if(r){return e("div",{class:"avatar-initials"},r)}return e("svg",{class:"avatar-image",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},e("g",{fill:"none","fill-rule":"evenodd"},e("path",{id:"avatar-path-background",d:"M16 0C7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163\n 16-16c0-4.243-1.686-8.313-4.686-11.314C24.314 1.686 20.244 0 16 0z"}),e("path",{id:"avatar-path-person",d:"M17.897 17.91c3.8-.018 7.358 1.875 9.485 5.046-2.417 3.999-6.734 6.434-11.382\n 6.42-4.648.014-8.965-2.421-11.382-6.42 2.127-3.171 5.685-5.064\n 9.485-5.045h3.794zM15.821 2.129c3.682 0 6.667 2.984 6.667 6.666 0 3.682-2.985\n 6.667-6.667 6.667s-6.667-2.985-6.667-6.667 2.985-6.666 6.667-6.666z"})))}function u(t){return e("div",{class:"avatar"},t.image?e("img",{src:t.image,class:"avatar-image"}):e(v,{initials:t.initials}))}function m(t){return e(a,null,e("div",{class:"user-info",onClick:t=>t.preventDefault()},e(u,{image:t.image,initials:t.initials}),e("div",{class:"user"},e("div",{class:"username"},t.userName),t.extra&&e("ix-typography",{class:"extra",color:"soft"},t.extra))))}const p=class{constructor(r){t(this,r);this.image=undefined;this.initials=undefined;this.username=undefined;this.extra=undefined;this.isClosestApplicationHeader=false;this.hasSlottedElements=false}componentWillLoad(){const t=l("ix-application-header",this.hostElement);this.isClosestApplicationHeader=t!==null}slottedChanged(){this.hasSlottedElements=c(this.slotElement)}resolveAvatarTrigger(){return new Promise(((t,e)=>{r((()=>{const r=this.hostElement.shadowRoot.querySelector("button");if(r){t(r)}else{e(new Error("ix-avatar - trigger element not found"))}}))}))}onDropdownClick(t){if(t.target===this.dropdownElement){t.preventDefault()}}render(){if(this.isClosestApplicationHeader){return e(o,{slot:"ix-application-header-avatar",class:"avatar-button"},e(n,{disabled:false,ghost:true,iconOval:false,icon:undefined,iconOnly:false,loading:false,outline:false,selected:false,type:"button",variant:"primary"},e(u,{image:this.image,initials:this.initials})),e("ix-dropdown",{ref:t=>this.dropdownElement=t,trigger:this.resolveAvatarTrigger(),class:"avatar-dropdown",onClick:t=>this.onDropdownClick(t)},this.username&&e(a,null,e(m,{extra:this.extra,image:this.image,initials:this.initials,userName:this.username}),this.hasSlottedElements&&e("ix-divider",{onClick:t=>t.preventDefault()})),e("slot",{onSlotchange:()=>this.slottedChanged(),ref:t=>this.slotElement=t})))}return e(o,null,e(u,{image:this.image,initials:this.initials}))}get hostElement(){return i(this)}};p.style=h;const g=":host{display:block;color:var(--theme-color-std-text)}: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}";const f=g;const k=class{constructor(r){t(this,r);this.itemClick=s(this,"itemClick",7);this.dropdownItemRef=d();this.icon=undefined;this.label=undefined}async getDropdownItemElement(){return this.dropdownItemRef.waitForCurrent()}render(){return e("ix-dropdown-item",{key:"c4025c590bebeebd3a3bdf90cd2fd5a0cb1472a4",ref:this.dropdownItemRef,icon:this.icon,label:this.label,onClick:t=>this.itemClick.emit(t)})}get hostElement(){return i(this)}};k.style=f;export{p as ix_avatar,k as ix_menu_avatar_item};
2
- //# sourceMappingURL=p-66178fe6.entry.js.map
1
+ import{r as t,d as r,h as a,F as e,H as o,g as i,c as s}from"./p-5806df2b.js";import{B as n}from"./p-35e14912.js";import{c as l,h as d}from"./p-345e1c73.js";import{m as c}from"./p-ce563a48.js";const b=":host{display:flex;position:relative;width:-moz-fit-content;width:fit-content}: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 .avatar{display:flex;align-items:center}:host .avatar>.avatar-image{height:2rem;width:2rem;min-height:2rem;min-width:2rem;border-radius:100px}:host .avatar>.avatar-initials{display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;min-height:2rem;min-width:2rem;border-radius:100px;background-color:var(--theme-avatar--background);color:var(--theme-avatar--color)}:host .avatar #avatar-path-background{fill:var(--theme-avatar--background)}:host .avatar #avatar-path-person{fill:var(--theme-avatar--color)}:host .user-info{display:flex;flex-direction:row;position:relative;height:2.5rem;padding:1rem;width:12.75rem;min-width:12.75rem;max-width:12.75rem;gap:1rem}:host .user-info .avatar{width:2rem;pointer-events:none}:host .user-info .user{display:flex;position:relative;flex-direction:column;justify-content:center;max-width:10rem;width:100%;overflow:hidden}:host .user-info .username{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .user-info .extra{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host(.avatar-button) button{all:unset;box-sizing:border-box;display:inline-flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;align-items:center;justify-content:center;width:100%;height:100%;padding:0 0.5rem;padding:0px;border-radius:100px !important}:host(.avatar-button) .btn-invisible-primary{border-radius:var(--theme-btn--border-radius)}:host(.avatar-button) .btn-invisible-primary,:host(.avatar-button) .btn-invisible-primary.focus,:host(.avatar-button) .btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host(.avatar-button) .btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host(.avatar-button) .btn-invisible-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host(.avatar-button) .btn-invisible-primary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host(.avatar-button) .btn-invisible-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host(.avatar-button) .btn-invisible-primary.selected:not(.disabled):not(:disabled):active,:host(.avatar-button) .btn-invisible-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled){cursor:pointer}:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled):hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled){cursor:pointer}:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled):active,:host(.avatar-button) .btn-invisible-primary:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}:host(.avatar-button) .avatar{transform:scale(0.8)}";const h=b;function v(t){const{initials:r}=t;if(r){return a("div",{class:"avatar-initials"},r)}return a("svg",{class:"avatar-image",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},a("g",{fill:"none","fill-rule":"evenodd"},a("path",{id:"avatar-path-background",d:"M16 0C7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163\n 16-16c0-4.243-1.686-8.313-4.686-11.314C24.314 1.686 20.244 0 16 0z"}),a("path",{id:"avatar-path-person",d:"M17.897 17.91c3.8-.018 7.358 1.875 9.485 5.046-2.417 3.999-6.734 6.434-11.382\n 6.42-4.648.014-8.965-2.421-11.382-6.42 2.127-3.171 5.685-5.064\n 9.485-5.045h3.794zM15.821 2.129c3.682 0 6.667 2.984 6.667 6.666 0 3.682-2.985\n 6.667-6.667 6.667s-6.667-2.985-6.667-6.667 2.985-6.666 6.667-6.666z"})))}function u(t){return a("div",{class:"avatar"},t.image?a("img",{src:t.image,class:"avatar-image"}):a(v,{initials:t.initials}))}function m(t){return a(e,null,a("div",{class:"user-info",onClick:t=>t.preventDefault()},a(u,{image:t.image,initials:t.initials}),a("div",{class:"user"},a("div",{class:"username"},t.userName),t.extra&&a("ix-typography",{class:"extra",color:"soft"},t.extra))))}const p=class{constructor(r){t(this,r);this.image=undefined;this.initials=undefined;this.username=undefined;this.extra=undefined;this.isClosestApplicationHeader=false;this.hasSlottedElements=false}componentWillLoad(){const t=l("ix-application-header",this.hostElement);this.isClosestApplicationHeader=t!==null}slottedChanged(){this.hasSlottedElements=d(this.slotElement)}resolveAvatarTrigger(){return new Promise(((t,a)=>{r((()=>{const r=this.hostElement.shadowRoot.querySelector("button");if(r){t(r)}else{a(new Error("ix-avatar - trigger element not found"))}}))}))}onDropdownClick(t){if(t.target===this.dropdownElement){t.preventDefault()}}render(){if(this.isClosestApplicationHeader){return a(o,{slot:"ix-application-header-avatar",class:"avatar-button"},a(n,{disabled:false,ghost:true,iconOval:false,icon:undefined,iconOnly:false,loading:false,outline:false,selected:false,type:"button",variant:"primary"},a(u,{image:this.image,initials:this.initials})),a("ix-dropdown",{ref:t=>this.dropdownElement=t,trigger:this.resolveAvatarTrigger(),class:"avatar-dropdown",onClick:t=>this.onDropdownClick(t)},this.username&&a(e,null,a(m,{extra:this.extra,image:this.image,initials:this.initials,userName:this.username}),this.hasSlottedElements&&a("ix-divider",{onClick:t=>t.preventDefault()})),a("slot",{onSlotchange:()=>this.slottedChanged(),ref:t=>this.slotElement=t})))}return a(o,null,a(u,{image:this.image,initials:this.initials}))}get hostElement(){return i(this)}};p.style=h;const g=":host{display:block;color:var(--theme-color-std-text)}: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}";const f=g;const k=class{constructor(r){t(this,r);this.itemClick=s(this,"itemClick",7);this.dropdownItemRef=c();this.icon=undefined;this.label=undefined}async getDropdownItemElement(){return this.dropdownItemRef.waitForCurrent()}render(){return a("ix-dropdown-item",{key:"ab0a400a5c753a7dd76b30b28cf1db867b97773a",ref:this.dropdownItemRef,icon:this.icon,label:this.label,onClick:t=>this.itemClick.emit(t)})}get hostElement(){return i(this)}};k.style=f;export{p as ix_avatar,k as ix_menu_avatar_item};
2
+ //# sourceMappingURL=p-6f3b0a66.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["avatarCss","IxAvatarStyle0","DefaultAvatar","props","initials","h","class","xmlns","width","height","viewBox","fill","id","d","AvatarImage","image","src","UserInfo","Fragment","onClick","event","preventDefault","userName","extra","color","Avatar","componentWillLoad","closest","closestElement","this","hostElement","isClosestApplicationHeader","slottedChanged","hasSlottedElements","slotElement","resolveAvatarTrigger","Promise","resolve","reject","readTask","button","shadowRoot","querySelector","Error","onDropdownClick","target","dropdownElement","render","Host","slot","BaseButton","disabled","ghost","iconOval","icon","undefined","iconOnly","loading","outline","selected","type","variant","ref","trigger","e","username","onSlotchange","menuAvatarItemCss","IxMenuAvatarItemStyle0","MenuAvatarItem","dropdownItemRef","makeRef","getDropdownItemElement","waitForCurrent","key","label","itemClick","emit"],"sources":["src/components/avatar/avatar.scss?tag=ix-avatar&encapsulation=shadow","src/components/avatar/avatar.tsx","src/components/menu-avatar-item/menu-avatar-item.scss?tag=ix-menu-avatar-item&encapsulation=shadow","src/components/menu-avatar-item/menu-avatar-item.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'mixins/text-truncation';\n@import 'mixins/hover';\n@import './../button/button-mixin';\n@import 'mixins/scrollbar';\n\n:host {\n @include scrollbar();\n display: flex;\n position: relative;\n width: fit-content;\n\n .avatar {\n display: flex;\n align-items: center;\n\n > .avatar-image {\n height: 2rem;\n width: 2rem;\n min-height: 2rem;\n min-width: 2rem;\n border-radius: 100px;\n }\n\n > .avatar-initials {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 2rem;\n width: 2rem;\n min-height: 2rem;\n min-width: 2rem;\n border-radius: 100px;\n background-color: var(--theme-avatar--background);\n color: var(--theme-avatar--color);\n }\n\n #avatar-path-background {\n fill: var(--theme-avatar--background);\n }\n\n #avatar-path-person {\n fill:var(--theme-avatar--color);\n }\n }\n}\n\n:host {\n .user-info {\n display: flex;\n flex-direction: row;\n position: relative;\n height: 2.5rem;\n padding: 1rem;\n width: 12.75rem;\n min-width: 12.75rem;\n max-width: 12.75rem;\n\n gap: 1rem;\n\n .avatar {\n width: 2rem;\n pointer-events: none;\n }\n\n .user {\n display: flex;\n position: relative;\n flex-direction: column;\n justify-content: center;\n max-width: 10rem;\n width: 100%;\n overflow: hidden;\n }\n\n .username {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .extra {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n }\n}\n\n:host(.avatar-button) {\n button {\n @include btn-base;\n padding: 0px;\n\n border-radius: 100px !important;\n }\n\n @include btn-base-variant('invisible-primary', false);\n\n .avatar {\n transform: scale(0.8);\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Fragment,\n h,\n Host,\n Prop,\n readTask,\n State,\n} from '@stencil/core';\nimport { BaseButton } from '../button/base-button';\nimport { closestElement, hasSlottedElements } from '../utils/shadow-dom';\n\nfunction DefaultAvatar(props: { initials?: string }) {\n const { initials } = props;\n\n if (initials) {\n return <div class={'avatar-initials'}>{initials}</div>;\n }\n\n return (\n <svg\n class={'avatar-image'}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n >\n <g fill=\"none\" fill-rule=\"evenodd\">\n <path\n id=\"avatar-path-background\"\n d=\"M16 0C7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163\n 16-16c0-4.243-1.686-8.313-4.686-11.314C24.314 1.686 20.244 0 16 0z\"\n />\n <path\n id=\"avatar-path-person\"\n d=\"M17.897 17.91c3.8-.018 7.358 1.875 9.485 5.046-2.417 3.999-6.734 6.434-11.382\n 6.42-4.648.014-8.965-2.421-11.382-6.42 2.127-3.171 5.685-5.064\n 9.485-5.045h3.794zM15.821 2.129c3.682 0 6.667 2.984 6.667 6.666 0 3.682-2.985\n 6.667-6.667 6.667s-6.667-2.985-6.667-6.667 2.985-6.666 6.667-6.666z\"\n />\n </g>\n </svg>\n );\n}\n\nfunction AvatarImage(props: { image?: string; initials?: string }) {\n return (\n <div class=\"avatar\">\n {props.image ? (\n <img src={props.image} class=\"avatar-image\"></img>\n ) : (\n <DefaultAvatar initials={props.initials} />\n )}\n </div>\n );\n}\n\nfunction UserInfo(props: {\n image?: string;\n initials?: string;\n userName: string;\n extra?: string;\n}) {\n return (\n <Fragment>\n <div class=\"user-info\" onClick={(event) => event.preventDefault()}>\n <AvatarImage image={props.image} initials={props.initials} />\n <div class=\"user\">\n <div class=\"username\">{props.userName}</div>\n {props.extra && (\n <ix-typography class=\"extra\" color={'soft'}>\n {props.extra}\n </ix-typography>\n )}\n </div>\n </div>\n </Fragment>\n );\n}\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-avatar',\n styleUrl: 'avatar.scss',\n shadow: true,\n})\nexport class Avatar {\n @Element() hostElement!: HTMLIxAvatarElement;\n\n /**\n * Display an avatar image\n *\n */\n @Prop() image?: string;\n\n /**\n * Display the initials of the user. Will be overwritten by image\n *\n */\n @Prop() initials?: string;\n\n /**\n * If set an info card displaying the username will be placed inside the dropdown.\n * Note: Only working if avatar is part of the ix-application-header\n *\n * @since 2.1.0\n */\n @Prop() username?: string;\n\n /**\n * Optional description text that will be displayed underneath the username.\n * Note: Only working if avatar is part of the ix-application-header\n *\n * @since 2.1.0\n */\n @Prop() extra?: string;\n\n @State() isClosestApplicationHeader = false;\n @State() hasSlottedElements = false;\n\n private slotElement?: HTMLSlotElement;\n private dropdownElement?: HTMLIxDropdownElement;\n\n componentWillLoad() {\n const closest = closestElement('ix-application-header', this.hostElement);\n this.isClosestApplicationHeader = closest !== null;\n }\n\n private slottedChanged() {\n this.hasSlottedElements = hasSlottedElements(this.slotElement);\n }\n\n private resolveAvatarTrigger() {\n return new Promise<HTMLElement>((resolve, reject) => {\n readTask(() => {\n const button = this.hostElement.shadowRoot!.querySelector('button');\n if (button) {\n resolve(button);\n } else {\n reject(new Error('ix-avatar - trigger element not found'));\n }\n });\n });\n }\n\n private onDropdownClick(event: MouseEvent) {\n if (event.target === this.dropdownElement) {\n event.preventDefault();\n }\n }\n\n render() {\n if (this.isClosestApplicationHeader) {\n return (\n <Host slot=\"ix-application-header-avatar\" class={'avatar-button'}>\n <BaseButton\n disabled={false}\n ghost={true}\n iconOval={false}\n icon={undefined}\n iconOnly={false}\n loading={false}\n outline={false}\n selected={false}\n type=\"button\"\n variant=\"primary\"\n >\n <AvatarImage image={this.image} initials={this.initials} />\n </BaseButton>\n <ix-dropdown\n ref={(ref: HTMLIxDropdownElement) => (this.dropdownElement = ref)}\n trigger={this.resolveAvatarTrigger()}\n class=\"avatar-dropdown\"\n onClick={(e) => this.onDropdownClick(e)}\n >\n {this.username && (\n <Fragment>\n <UserInfo\n extra={this.extra}\n image={this.image}\n initials={this.initials}\n userName={this.username}\n />\n {this.hasSlottedElements && (\n <ix-divider onClick={(e) => e.preventDefault()}></ix-divider>\n )}\n </Fragment>\n )}\n <slot\n onSlotchange={() => this.slottedChanged()}\n ref={(ref: HTMLSlotElement) => (this.slotElement = ref)}\n ></slot>\n </ix-dropdown>\n </Host>\n );\n }\n\n return (\n <Host>\n <AvatarImage image={this.image} initials={this.initials} />\n </Host>\n );\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: block;\n color: var(--theme-color-std-text);\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Method,\n Prop,\n} from '@stencil/core';\nimport { DropdownItemWrapper } from '../dropdown/dropdown-controller';\nimport { makeRef } from '../utils/make-ref';\n\n@Component({\n tag: 'ix-menu-avatar-item',\n styleUrl: 'menu-avatar-item.scss',\n shadow: true,\n})\nexport class MenuAvatarItem implements DropdownItemWrapper {\n /**\n * Avatar dropdown icon\n */\n @Prop() icon: string;\n\n /**\n * Avatar dropdown label\n */\n @Prop() label: string;\n\n /**\n * Avatar dropdown item clicked\n */\n @Event() itemClick: EventEmitter<MouseEvent>;\n\n @Element() hostElement: HTMLIxMenuAvatarItemElement;\n\n private dropdownItemRef = makeRef<HTMLIxDropdownItemElement>();\n\n /** @internal */\n @Method()\n async getDropdownItemElement() {\n return this.dropdownItemRef.waitForCurrent();\n }\n\n render() {\n return (\n <ix-dropdown-item\n ref={this.dropdownItemRef}\n icon={this.icon}\n label={this.label}\n onClick={(e) => this.itemClick.emit(e)}\n ></ix-dropdown-item>\n );\n }\n}\n"],"mappings":"iMAAA,MAAMA,EAAY,spIAClB,MAAAC,EAAeD,ECqBf,SAASE,EAAcC,GACrB,MAAMC,SAAEA,GAAaD,EAErB,GAAIC,EAAU,CACZ,OAAOC,EAAA,OAAKC,MAAO,mBAAoBF,E,CAGzC,OACEC,EAAA,OACEC,MAAO,eACPC,MAAM,6BACNC,MAAM,KACNC,OAAO,KACPC,QAAQ,aAERL,EAAA,KAAGM,KAAK,OAAM,YAAW,WACvBN,EAAA,QACEO,GAAG,yBACHC,EAAE,qIAGJR,EAAA,QACEO,GAAG,qBACHC,EAAE,+TAQZ,CAEA,SAASC,EAAYX,GACnB,OACEE,EAAA,OAAKC,MAAM,UACRH,EAAMY,MACLV,EAAA,OAAKW,IAAKb,EAAMY,MAAOT,MAAM,iBAE7BD,EAACH,EAAa,CAACE,SAAUD,EAAMC,WAIvC,CAEA,SAASa,EAASd,GAMhB,OACEE,EAACa,EAAQ,KACPb,EAAA,OAAKC,MAAM,YAAYa,QAAUC,GAAUA,EAAMC,kBAC/ChB,EAACS,EAAW,CAACC,MAAOZ,EAAMY,MAAOX,SAAUD,EAAMC,WACjDC,EAAA,OAAKC,MAAM,QACTD,EAAA,OAAKC,MAAM,YAAYH,EAAMmB,UAC5BnB,EAAMoB,OACLlB,EAAA,iBAAeC,MAAM,QAAQkB,MAAO,QACjCrB,EAAMoB,SAOrB,C,MAUaE,EAAM,M,mJA+BqB,M,wBACR,K,CAK9B,iBAAAC,GACE,MAAMC,EAAUC,EAAe,wBAAyBC,KAAKC,aAC7DD,KAAKE,2BAA6BJ,IAAY,I,CAGxC,cAAAK,GACNH,KAAKI,mBAAqBA,EAAmBJ,KAAKK,Y,CAG5C,oBAAAC,GACN,OAAO,IAAIC,SAAqB,CAACC,EAASC,KACxCC,GAAS,KACP,MAAMC,EAASX,KAAKC,YAAYW,WAAYC,cAAc,UAC1D,GAAIF,EAAQ,CACVH,EAAQG,E,KACH,CACLF,EAAO,IAAIK,MAAM,yC,IAEnB,G,CAIE,eAAAC,CAAgBxB,GACtB,GAAIA,EAAMyB,SAAWhB,KAAKiB,gBAAiB,CACzC1B,EAAMC,gB,EAIV,MAAA0B,GACE,GAAIlB,KAAKE,2BAA4B,CACnC,OACE1B,EAAC2C,EAAI,CAACC,KAAK,+BAA+B3C,MAAO,iBAC/CD,EAAC6C,EAAU,CACTC,SAAU,MACVC,MAAO,KACPC,SAAU,MACVC,KAAMC,UACNC,SAAU,MACVC,QAAS,MACTC,QAAS,MACTC,SAAU,MACVC,KAAK,SACLC,QAAQ,WAERxD,EAACS,EAAW,CAACC,MAAOc,KAAKd,MAAOX,SAAUyB,KAAKzB,YAEjDC,EAAA,eACEyD,IAAMA,GAAgCjC,KAAKiB,gBAAkBgB,EAC7DC,QAASlC,KAAKM,uBACd7B,MAAM,kBACNa,QAAU6C,GAAMnC,KAAKe,gBAAgBoB,IAEpCnC,KAAKoC,UACJ5D,EAACa,EAAQ,KACPb,EAACY,EAAQ,CACPM,MAAOM,KAAKN,MACZR,MAAOc,KAAKd,MACZX,SAAUyB,KAAKzB,SACfkB,SAAUO,KAAKoC,WAEhBpC,KAAKI,oBACJ5B,EAAA,cAAYc,QAAU6C,GAAMA,EAAE3C,oBAIpChB,EAAA,QACE6D,aAAc,IAAMrC,KAAKG,iBACzB8B,IAAMA,GAA0BjC,KAAKK,YAAc4B,K,CAO7D,OACEzD,EAAC2C,EAAI,KACH3C,EAACS,EAAW,CAACC,MAAOc,KAAKd,MAAOX,SAAUyB,KAAKzB,W,8CCnNvD,MAAM+D,EAAoB,izBAC1B,MAAAC,EAAeD,E,MCyBFE,EAAc,M,8DAkBjBxC,KAAAyC,gBAAkBC,I,yCAI1B,4BAAMC,GACJ,OAAO3C,KAAKyC,gBAAgBG,gB,CAG9B,MAAA1B,GACE,OACE1C,EAAA,oBAAAqE,IAAA,2CACEZ,IAAKjC,KAAKyC,gBACVhB,KAAMzB,KAAKyB,KACXqB,MAAO9C,KAAK8C,MACZxD,QAAU6C,GAAMnC,KAAK+C,UAAUC,KAAKb,I"}
1
+ {"version":3,"names":["avatarCss","IxAvatarStyle0","DefaultAvatar","props","initials","h","class","xmlns","width","height","viewBox","fill","id","d","AvatarImage","image","src","UserInfo","Fragment","onClick","event","preventDefault","userName","extra","color","Avatar","componentWillLoad","closest","closestElement","this","hostElement","isClosestApplicationHeader","slottedChanged","hasSlottedElements","slotElement","resolveAvatarTrigger","Promise","resolve","reject","readTask","button","shadowRoot","querySelector","Error","onDropdownClick","target","dropdownElement","render","Host","slot","BaseButton","disabled","ghost","iconOval","icon","undefined","iconOnly","loading","outline","selected","type","variant","ref","trigger","e","username","onSlotchange","menuAvatarItemCss","IxMenuAvatarItemStyle0","MenuAvatarItem","dropdownItemRef","makeRef","getDropdownItemElement","waitForCurrent","key","label","itemClick","emit"],"sources":["src/components/avatar/avatar.scss?tag=ix-avatar&encapsulation=shadow","src/components/avatar/avatar.tsx","src/components/menu-avatar-item/menu-avatar-item.scss?tag=ix-menu-avatar-item&encapsulation=shadow","src/components/menu-avatar-item/menu-avatar-item.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'mixins/text-truncation';\n@import 'mixins/hover';\n@import './../button/button-mixin';\n@import 'mixins/scrollbar';\n\n:host {\n @include scrollbar();\n display: flex;\n position: relative;\n width: fit-content;\n\n .avatar {\n display: flex;\n align-items: center;\n\n > .avatar-image {\n height: 2rem;\n width: 2rem;\n min-height: 2rem;\n min-width: 2rem;\n border-radius: 100px;\n }\n\n > .avatar-initials {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 2rem;\n width: 2rem;\n min-height: 2rem;\n min-width: 2rem;\n border-radius: 100px;\n background-color: var(--theme-avatar--background);\n color: var(--theme-avatar--color);\n }\n\n #avatar-path-background {\n fill: var(--theme-avatar--background);\n }\n\n #avatar-path-person {\n fill:var(--theme-avatar--color);\n }\n }\n}\n\n:host {\n .user-info {\n display: flex;\n flex-direction: row;\n position: relative;\n height: 2.5rem;\n padding: 1rem;\n width: 12.75rem;\n min-width: 12.75rem;\n max-width: 12.75rem;\n\n gap: 1rem;\n\n .avatar {\n width: 2rem;\n pointer-events: none;\n }\n\n .user {\n display: flex;\n position: relative;\n flex-direction: column;\n justify-content: center;\n max-width: 10rem;\n width: 100%;\n overflow: hidden;\n }\n\n .username {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .extra {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n }\n}\n\n:host(.avatar-button) {\n button {\n @include btn-base;\n padding: 0px;\n\n border-radius: 100px !important;\n }\n\n @include btn-base-variant('invisible-primary', false);\n\n .avatar {\n transform: scale(0.8);\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Fragment,\n h,\n Host,\n Prop,\n readTask,\n State,\n} from '@stencil/core';\nimport { BaseButton } from '../button/base-button';\nimport { closestElement, hasSlottedElements } from '../utils/shadow-dom';\n\nfunction DefaultAvatar(props: { initials?: string }) {\n const { initials } = props;\n\n if (initials) {\n return <div class={'avatar-initials'}>{initials}</div>;\n }\n\n return (\n <svg\n class={'avatar-image'}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n >\n <g fill=\"none\" fill-rule=\"evenodd\">\n <path\n id=\"avatar-path-background\"\n d=\"M16 0C7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163\n 16-16c0-4.243-1.686-8.313-4.686-11.314C24.314 1.686 20.244 0 16 0z\"\n />\n <path\n id=\"avatar-path-person\"\n d=\"M17.897 17.91c3.8-.018 7.358 1.875 9.485 5.046-2.417 3.999-6.734 6.434-11.382\n 6.42-4.648.014-8.965-2.421-11.382-6.42 2.127-3.171 5.685-5.064\n 9.485-5.045h3.794zM15.821 2.129c3.682 0 6.667 2.984 6.667 6.666 0 3.682-2.985\n 6.667-6.667 6.667s-6.667-2.985-6.667-6.667 2.985-6.666 6.667-6.666z\"\n />\n </g>\n </svg>\n );\n}\n\nfunction AvatarImage(props: { image?: string; initials?: string }) {\n return (\n <div class=\"avatar\">\n {props.image ? (\n <img src={props.image} class=\"avatar-image\"></img>\n ) : (\n <DefaultAvatar initials={props.initials} />\n )}\n </div>\n );\n}\n\nfunction UserInfo(props: {\n image?: string;\n initials?: string;\n userName: string;\n extra?: string;\n}) {\n return (\n <Fragment>\n <div class=\"user-info\" onClick={(event) => event.preventDefault()}>\n <AvatarImage image={props.image} initials={props.initials} />\n <div class=\"user\">\n <div class=\"username\">{props.userName}</div>\n {props.extra && (\n <ix-typography class=\"extra\" color={'soft'}>\n {props.extra}\n </ix-typography>\n )}\n </div>\n </div>\n </Fragment>\n );\n}\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-avatar',\n styleUrl: 'avatar.scss',\n shadow: true,\n})\nexport class Avatar {\n @Element() hostElement!: HTMLIxAvatarElement;\n\n /**\n * Display an avatar image\n *\n */\n @Prop() image?: string;\n\n /**\n * Display the initials of the user. Will be overwritten by image\n *\n */\n @Prop() initials?: string;\n\n /**\n * If set an info card displaying the username will be placed inside the dropdown.\n * Note: Only working if avatar is part of the ix-application-header\n *\n * @since 2.1.0\n */\n @Prop() username?: string;\n\n /**\n * Optional description text that will be displayed underneath the username.\n * Note: Only working if avatar is part of the ix-application-header\n *\n * @since 2.1.0\n */\n @Prop() extra?: string;\n\n @State() isClosestApplicationHeader = false;\n @State() hasSlottedElements = false;\n\n private slotElement?: HTMLSlotElement;\n private dropdownElement?: HTMLIxDropdownElement;\n\n componentWillLoad() {\n const closest = closestElement('ix-application-header', this.hostElement);\n this.isClosestApplicationHeader = closest !== null;\n }\n\n private slottedChanged() {\n this.hasSlottedElements = hasSlottedElements(this.slotElement);\n }\n\n private resolveAvatarTrigger() {\n return new Promise<HTMLElement>((resolve, reject) => {\n readTask(() => {\n const button = this.hostElement.shadowRoot!.querySelector('button');\n if (button) {\n resolve(button);\n } else {\n reject(new Error('ix-avatar - trigger element not found'));\n }\n });\n });\n }\n\n private onDropdownClick(event: MouseEvent) {\n if (event.target === this.dropdownElement) {\n event.preventDefault();\n }\n }\n\n render() {\n if (this.isClosestApplicationHeader) {\n return (\n <Host slot=\"ix-application-header-avatar\" class={'avatar-button'}>\n <BaseButton\n disabled={false}\n ghost={true}\n iconOval={false}\n icon={undefined}\n iconOnly={false}\n loading={false}\n outline={false}\n selected={false}\n type=\"button\"\n variant=\"primary\"\n >\n <AvatarImage image={this.image} initials={this.initials} />\n </BaseButton>\n <ix-dropdown\n ref={(ref) => (this.dropdownElement = ref as HTMLIxDropdownElement)}\n trigger={this.resolveAvatarTrigger()}\n class=\"avatar-dropdown\"\n onClick={(e) => this.onDropdownClick(e)}\n >\n {this.username && (\n <Fragment>\n <UserInfo\n extra={this.extra}\n image={this.image}\n initials={this.initials}\n userName={this.username}\n />\n {this.hasSlottedElements && (\n <ix-divider onClick={(e) => e.preventDefault()}></ix-divider>\n )}\n </Fragment>\n )}\n <slot\n onSlotchange={() => this.slottedChanged()}\n ref={(ref) => (this.slotElement = ref as HTMLSlotElement)}\n ></slot>\n </ix-dropdown>\n </Host>\n );\n }\n\n return (\n <Host>\n <AvatarImage image={this.image} initials={this.initials} />\n </Host>\n );\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: block;\n color: var(--theme-color-std-text);\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Method,\n Prop,\n} from '@stencil/core';\nimport { DropdownItemWrapper } from '../dropdown/dropdown-controller';\nimport { makeRef } from '../utils/make-ref';\n\n@Component({\n tag: 'ix-menu-avatar-item',\n styleUrl: 'menu-avatar-item.scss',\n shadow: true,\n})\nexport class MenuAvatarItem implements DropdownItemWrapper {\n @Element() hostElement!: HTMLIxMenuAvatarItemElement;\n\n /**\n * Avatar dropdown icon\n */\n @Prop() icon?: string;\n\n /**\n * Avatar dropdown label\n */\n @Prop() label?: string;\n\n /**\n * Avatar dropdown item clicked\n */\n @Event() itemClick!: EventEmitter<MouseEvent>;\n\n private dropdownItemRef = makeRef<HTMLIxDropdownItemElement>();\n\n /** @internal */\n @Method()\n async getDropdownItemElement() {\n return this.dropdownItemRef.waitForCurrent();\n }\n\n render() {\n return (\n <ix-dropdown-item\n ref={this.dropdownItemRef}\n icon={this.icon}\n label={this.label}\n onClick={(e) => this.itemClick.emit(e)}\n ></ix-dropdown-item>\n );\n }\n}\n"],"mappings":"iMAAA,MAAMA,EAAY,spIAClB,MAAAC,EAAeD,ECqBf,SAASE,EAAcC,GACrB,MAAMC,SAAEA,GAAaD,EAErB,GAAIC,EAAU,CACZ,OAAOC,EAAA,OAAKC,MAAO,mBAAoBF,E,CAGzC,OACEC,EAAA,OACEC,MAAO,eACPC,MAAM,6BACNC,MAAM,KACNC,OAAO,KACPC,QAAQ,aAERL,EAAA,KAAGM,KAAK,OAAM,YAAW,WACvBN,EAAA,QACEO,GAAG,yBACHC,EAAE,qIAGJR,EAAA,QACEO,GAAG,qBACHC,EAAE,+TAQZ,CAEA,SAASC,EAAYX,GACnB,OACEE,EAAA,OAAKC,MAAM,UACRH,EAAMY,MACLV,EAAA,OAAKW,IAAKb,EAAMY,MAAOT,MAAM,iBAE7BD,EAACH,EAAa,CAACE,SAAUD,EAAMC,WAIvC,CAEA,SAASa,EAASd,GAMhB,OACEE,EAACa,EAAQ,KACPb,EAAA,OAAKC,MAAM,YAAYa,QAAUC,GAAUA,EAAMC,kBAC/ChB,EAACS,EAAW,CAACC,MAAOZ,EAAMY,MAAOX,SAAUD,EAAMC,WACjDC,EAAA,OAAKC,MAAM,QACTD,EAAA,OAAKC,MAAM,YAAYH,EAAMmB,UAC5BnB,EAAMoB,OACLlB,EAAA,iBAAeC,MAAM,QAAQkB,MAAO,QACjCrB,EAAMoB,SAOrB,C,MAUaE,EAAM,M,mJA+BqB,M,wBACR,K,CAK9B,iBAAAC,GACE,MAAMC,EAAUC,EAAe,wBAAyBC,KAAKC,aAC7DD,KAAKE,2BAA6BJ,IAAY,I,CAGxC,cAAAK,GACNH,KAAKI,mBAAqBA,EAAmBJ,KAAKK,Y,CAG5C,oBAAAC,GACN,OAAO,IAAIC,SAAqB,CAACC,EAASC,KACxCC,GAAS,KACP,MAAMC,EAASX,KAAKC,YAAYW,WAAYC,cAAc,UAC1D,GAAIF,EAAQ,CACVH,EAAQG,E,KACH,CACLF,EAAO,IAAIK,MAAM,yC,IAEnB,G,CAIE,eAAAC,CAAgBxB,GACtB,GAAIA,EAAMyB,SAAWhB,KAAKiB,gBAAiB,CACzC1B,EAAMC,gB,EAIV,MAAA0B,GACE,GAAIlB,KAAKE,2BAA4B,CACnC,OACE1B,EAAC2C,EAAI,CAACC,KAAK,+BAA+B3C,MAAO,iBAC/CD,EAAC6C,EAAU,CACTC,SAAU,MACVC,MAAO,KACPC,SAAU,MACVC,KAAMC,UACNC,SAAU,MACVC,QAAS,MACTC,QAAS,MACTC,SAAU,MACVC,KAAK,SACLC,QAAQ,WAERxD,EAACS,EAAW,CAACC,MAAOc,KAAKd,MAAOX,SAAUyB,KAAKzB,YAEjDC,EAAA,eACEyD,IAAMA,GAASjC,KAAKiB,gBAAkBgB,EACtCC,QAASlC,KAAKM,uBACd7B,MAAM,kBACNa,QAAU6C,GAAMnC,KAAKe,gBAAgBoB,IAEpCnC,KAAKoC,UACJ5D,EAACa,EAAQ,KACPb,EAACY,EAAQ,CACPM,MAAOM,KAAKN,MACZR,MAAOc,KAAKd,MACZX,SAAUyB,KAAKzB,SACfkB,SAAUO,KAAKoC,WAEhBpC,KAAKI,oBACJ5B,EAAA,cAAYc,QAAU6C,GAAMA,EAAE3C,oBAIpChB,EAAA,QACE6D,aAAc,IAAMrC,KAAKG,iBACzB8B,IAAMA,GAASjC,KAAKK,YAAc4B,K,CAO5C,OACEzD,EAAC2C,EAAI,KACH3C,EAACS,EAAW,CAACC,MAAOc,KAAKd,MAAOX,SAAUyB,KAAKzB,W,8CCnNvD,MAAM+D,EAAoB,izBAC1B,MAAAC,EAAeD,E,MCyBFE,EAAc,M,8DAkBjBxC,KAAAyC,gBAAkBC,I,yCAI1B,4BAAMC,GACJ,OAAO3C,KAAKyC,gBAAgBG,gB,CAG9B,MAAA1B,GACE,OACE1C,EAAA,oBAAAqE,IAAA,2CACEZ,IAAKjC,KAAKyC,gBACVhB,KAAMzB,KAAKyB,KACXqB,MAAO9C,KAAK8C,MACZxD,QAAU6C,GAAMnC,KAAK+C,UAAUC,KAAKb,I"}
@@ -1,2 +1,2 @@
1
- import{r as t,c as r,h as o,H as i,g as s}from"./p-5806df2b.js";const e=".btn-group ix-button:first-child .btn{border-top-right-radius:0px;border-bottom-right-radius:0px;border-right:0px}.btn-group ix-button:last-child .btn{border-top-left-radius:0px;border-bottom-left-radius:0px}.btn-group ix-button:not(:first-child):not(:last-child) .btn{border-radius:0px;border-right:0px}:host{display:inline-block}: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 .btn-group{position:relative;display:inline-flex;vertical-align:middle;width:100%}:host .btn-group>ix-button:nth-child(1){width:calc(100% - 2rem)}:host .btn-group>ix-button:nth-child(2){width:2rem}:host .middle-gap{gap:0.125rem}:host .left-button-border{border-top-width:0.125rem;border-right-width:0;border-left-width:0.125rem;border-bottom-width:0.125rem}";const h=e;const b=class{constructor(o){t(this,o);this.buttonClick=r(this,"buttonClick",7);this.variant="primary";this.closeBehavior="both";this.outline=false;this.ghost=false;this.label=undefined;this.icon="";this.splitIcon="context-menu";this.disabled=false;this.placement="bottom-start";this.toggle=false}linkTriggerRef(){if(this.triggerElement&&this.dropdownElement){this.dropdownElement.trigger=this.triggerElement}}componentDidLoad(){this.linkTriggerRef()}render(){const t={variant:this.variant,outline:this.outline,ghost:this.ghost,disabled:this.disabled,class:{"left-button-border":!this.outline}};return o(i,{key:"ef6b9460140253c93d73fcdde4dd2dfd1a585167"},o("div",{key:"084920621d13d2c3f2591a8023792615a5e0328f",class:{"btn-group":true,"middle-gap":!this.outline}},this.label?o("ix-button",Object.assign({},t,{icon:this.icon,onClick:t=>this.buttonClick.emit(t)}),this.label):o("ix-icon-button",Object.assign({},t,{icon:this.icon,onClick:t=>this.buttonClick.emit(t)})),o("ix-icon-button",Object.assign({key:"8912184bad2d9c33c8115860521e29d77093551c"},t,{ref:t=>this.triggerElement=t,class:"anchor",icon:this.splitIcon}))),o("ix-dropdown",{key:"261c7ffd4edc2a34c5314e6649286aa19649815b",ref:t=>this.dropdownElement=t,closeBehavior:this.closeBehavior},o("slot",{key:"092a0646953fccd7118b8d844dd8af12244f87fe"})))}get hostElement(){return s(this)}};b.style=h;export{b as ix_split_button};
2
- //# sourceMappingURL=p-edc1d44a.entry.js.map
1
+ import{r as t,c as r,h as o,H as i,g as e}from"./p-5806df2b.js";const s=".btn-group ix-button:first-child .btn{border-top-right-radius:0px;border-bottom-right-radius:0px;border-right:0px}.btn-group ix-button:last-child .btn{border-top-left-radius:0px;border-bottom-left-radius:0px}.btn-group ix-button:not(:first-child):not(:last-child) .btn{border-radius:0px;border-right:0px}:host{display:inline-block}: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 .btn-group{position:relative;display:inline-flex;vertical-align:middle;width:100%}:host .btn-group>ix-button:nth-child(1){width:calc(100% - 2rem)}:host .btn-group>ix-button:nth-child(2){width:2rem}:host .middle-gap{gap:0.125rem}:host .left-button-border{border-top-width:0.125rem;border-right-width:0;border-left-width:0.125rem;border-bottom-width:0.125rem}";const b=s;const h=class{constructor(o){t(this,o);this.buttonClick=r(this,"buttonClick",7);this.variant="primary";this.closeBehavior="both";this.outline=false;this.ghost=false;this.label=undefined;this.icon="";this.splitIcon="context-menu";this.disabled=false;this.placement="bottom-start";this.toggle=false}linkTriggerRef(){if(this.triggerElement&&this.dropdownElement){this.dropdownElement.trigger=this.triggerElement}}componentDidLoad(){this.linkTriggerRef()}render(){const t={variant:this.variant,outline:this.outline,ghost:this.ghost,disabled:this.disabled,class:{"left-button-border":!this.outline}};return o(i,{key:"816824c8c9642cd1620894baeda6c3227bebb371"},o("div",{key:"251feccf5992525d8544085541fe1eefe455b3ac",class:{"btn-group":true,"middle-gap":!this.outline}},this.label?o("ix-button",Object.assign({},t,{icon:this.icon,onClick:t=>this.buttonClick.emit(t)}),this.label):o("ix-icon-button",Object.assign({},t,{icon:this.icon,onClick:t=>this.buttonClick.emit(t)})),o("ix-icon-button",Object.assign({key:"4cd4ced7be125a33bf978c4a252901ffa2b822eb"},t,{ref:t=>this.triggerElement=t,class:"anchor",icon:this.splitIcon}))),o("ix-dropdown",{key:"a0a01f2b7dd0684ebfc53cfff55fa7c24c595b66",ref:t=>this.dropdownElement=t,closeBehavior:this.closeBehavior},o("slot",{key:"2c653cd56349aa56c269b3e59a63dfea549b4165"})))}get hostElement(){return e(this)}};h.style=b;export{h as ix_split_button};
2
+ //# sourceMappingURL=p-6f970ba4.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["splitButtonCss","IxSplitButtonStyle0","SplitButton","linkTriggerRef","this","triggerElement","dropdownElement","trigger","componentDidLoad","render","buttonAttributes","variant","outline","ghost","disabled","class","h","Host","key","label","Object","assign","icon","onClick","e","buttonClick","emit","ref","r","splitIcon","closeBehavior"],"sources":["src/components/split-button/split-button.scss?tag=ix-split-button&encapsulation=shadow","src/components/split-button/split-button.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n@import 'mixins/shadow-dom/component';\n@import 'legacy/components/button-group';\n\n:host {\n @include ix-component;\n display: inline-block;\n\n .btn-group {\n position: relative;\n display: inline-flex;\n vertical-align: middle;\n width: 100%;\n\n > ix-button:nth-child(1) {\n width: calc(100% - 2rem);\n }\n\n > ix-button:nth-child(2) {\n width: 2rem;\n }\n }\n\n .middle-gap {\n gap: 0.125rem;\n }\n\n .left-button-border {\n border-top-width: 0.125rem;\n border-right-width: 0;\n border-left-width: 0.125rem;\n border-bottom-width: 0.125rem;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { ButtonVariant } from '../button/button';\nimport { AlignedPlacement } from '../dropdown/placement';\nimport { CloseBehavior } from '../dropdown/dropdown-controller';\n\nexport type SplitButtonVariant = ButtonVariant;\n\n@Component({\n tag: 'ix-split-button',\n styleUrl: 'split-button.scss',\n shadow: true,\n})\nexport class SplitButton {\n @Element() hostElement!: HTMLIxSplitButtonElement;\n\n /**\n * Color variant of button\n */\n @Prop() variant: SplitButtonVariant = 'primary';\n\n /**\n * Controls if the dropdown will be closed in response to a click event depending on the position of the event relative to the dropdown.\n * @since 2.3.0\n */\n @Prop() closeBehavior: CloseBehavior = 'both';\n\n /**\n * Button outline variant\n */\n @Prop() outline = false;\n\n /**\n * Button invisible\n */\n @Prop() ghost = false;\n\n /**\n * Button label\n */\n @Prop() label?: string;\n\n /**\n * Button icon\n */\n @Prop() icon = '';\n\n /**\n * Icon of the button on the right\n */\n @Prop() splitIcon = 'context-menu';\n\n /**\n * Disabled\n */\n @Prop() disabled = false;\n\n /**\n * Placement of the dropdown\n */\n @Prop() placement: AlignedPlacement = 'bottom-start';\n\n @State() toggle = false;\n\n /**\n * Button clicked\n */\n @Event() buttonClick!: EventEmitter<MouseEvent>;\n\n private triggerElement?: HTMLElement;\n private dropdownElement?: HTMLIxDropdownElement;\n\n private linkTriggerRef() {\n if (this.triggerElement && this.dropdownElement) {\n this.dropdownElement.trigger = this.triggerElement;\n }\n }\n\n componentDidLoad() {\n this.linkTriggerRef();\n }\n\n render() {\n const buttonAttributes = {\n variant: this.variant,\n outline: this.outline,\n ghost: this.ghost,\n disabled: this.disabled,\n class: {\n 'left-button-border': !this.outline,\n },\n };\n return (\n <Host>\n <div class={{ 'btn-group': true, 'middle-gap': !this.outline }}>\n {this.label ? (\n <ix-button\n {...buttonAttributes}\n icon={this.icon}\n onClick={(e) => this.buttonClick.emit(e)}\n >\n {this.label}\n </ix-button>\n ) : (\n <ix-icon-button\n {...buttonAttributes}\n icon={this.icon}\n onClick={(e) => this.buttonClick.emit(e)}\n ></ix-icon-button>\n )}\n <ix-icon-button\n {...buttonAttributes}\n ref={(r) => (this.triggerElement = r)}\n class={'anchor'}\n icon={this.splitIcon}\n ></ix-icon-button>\n </div>\n\n <ix-dropdown\n ref={(r) => (this.dropdownElement = r)}\n closeBehavior={this.closeBehavior}\n >\n <slot></slot>\n </ix-dropdown>\n </Host>\n );\n }\n}\n"],"mappings":"gEAAA,MAAMA,EAAiB,i7CACvB,MAAAC,EAAeD,E,MC6BFE,EAAW,M,+EAMgB,U,mBAMC,O,aAKrB,M,WAKF,M,+BAUD,G,eAKK,e,cAKD,M,eAKmB,e,YAEpB,K,CAUV,cAAAC,GACN,GAAIC,KAAKC,gBAAkBD,KAAKE,gBAAiB,CAC/CF,KAAKE,gBAAgBC,QAAUH,KAAKC,c,EAIxC,gBAAAG,GACEJ,KAAKD,gB,CAGP,MAAAM,GACE,MAAMC,EAAmB,CACvBC,QAASP,KAAKO,QACdC,QAASR,KAAKQ,QACdC,MAAOT,KAAKS,MACZC,SAAUV,KAAKU,SACfC,MAAO,CACL,sBAAuBX,KAAKQ,UAGhC,OACEI,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKH,MAAO,CAAE,YAAa,KAAM,cAAeX,KAAKQ,UAClDR,KAAKe,MACJH,EAAA,YAAAI,OAAAC,OAAA,GACMX,EAAgB,CACpBY,KAAMlB,KAAKkB,KACXC,QAAUC,GAAMpB,KAAKqB,YAAYC,KAAKF,KAErCpB,KAAKe,OAGRH,EAAA,iBAAAI,OAAAC,OAAA,GACMX,EAAgB,CACpBY,KAAMlB,KAAKkB,KACXC,QAAUC,GAAMpB,KAAKqB,YAAYC,KAAKF,MAG1CR,EAAA,iBAAAI,OAAAC,OAAA,CAAAH,IAAA,4CACMR,EAAgB,CACpBiB,IAAMC,GAAOxB,KAAKC,eAAiBuB,EACnCb,MAAO,SACPO,KAAMlB,KAAKyB,cAIfb,EAAA,eAAAE,IAAA,2CACES,IAAMC,GAAOxB,KAAKE,gBAAkBsB,EACpCE,cAAe1B,KAAK0B,eAEpBd,EAAA,QAAAE,IAAA,8C"}
@@ -1,2 +1,2 @@
1
- import{r as e,c as o,h as t,H as r,g as h}from"./p-5806df2b.js";import{a as i}from"./p-5fe87e71.js";const c=':host{display:inline-flex;flex-direction:row;position:relative;height:1.5rem;margin-block-start:0.25rem;margin-block-end:0.25rem}: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 input[type=checkbox]{display:none}:host .wrapper{display:flex;align-items:flex-start;width:100%;height:100%}:host .label{display:inline-block;white-space:normal;overflow:hidden;text-overflow:ellipsis;margin-block-start:0.125rem;margin-inline-start:0.5625rem}:host .switch{all:unset;position:relative;display:inline-block;width:3rem;min-width:3rem;max-width:3rem;height:1.5rem}:host .slider{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--theme-switch-off--background);transition:var(--theme-default-time);border-radius:1.5rem;border:0.0625rem solid transparent}:host .slider:before{position:absolute;content:"";height:1.125rem;width:1.125rem;left:0.125rem;bottom:0.125rem;background-color:var(--theme-switch-thumb-off--background);transition:var(--theme-default-time);border-radius:50%}:host .switch.checked>.slider::before{background-color:var(--theme-switch-thumb-on--background);transform:translateX(1.5rem)}:host .switch>.slider{border-color:var(--theme-switch-off--border-color)}:host .switch:hover>.slider{background-color:var(--theme-switch-off--background--hover);border-color:var(--theme-switch-off--border-color--hover)}:host .switch:hover>.slider:before{background-color:var(--theme-switch-thumb-off--background--hover)}:host .switch:active>.slider{background-color:var(--theme-switch-off--background--active);border-color:var(--theme-switch-off--border-color--active)}:host .switch:active>.slider:before{background-color:var(--theme-switch-thumb-off--background--active)}:host .switch.checked>.slider{background-color:var(--theme-switch-on--background);border-color:var(--theme-switch-on--border-color)}:host .switch.checked:hover>.slider{background-color:var(--theme-switch-on--background--hover);border-color:var(--theme-switch-on--border-color--hover)}:host .switch.checked:hover>.slider:before{background-color:var(--theme-switch-thumb-on--background--hover)}:host .switch.checked:active>.slider{background-color:var(--theme-switch-on--background--active);border-color:var(--theme-switch-on--border-color--active)}:host .switch.checked:active>.slider:before{background-color:var(--theme-switch-thumb-on--background--active)}:host .switch.indeterminate>.slider::before{transform:translateX(0.75rem)}:host(:not(.disabled)) .wrapper{cursor:pointer}:host(:not(.disabled)) .switch:focus-visible>.slider{outline:0.0625rem solid var(--theme-color-focus-bdr);outline-offset:0.0625rem}:host(.disabled){pointer-events:none}:host(.disabled) .switch{opacity:0.5}:host(.disabled) .switch>.slider{background-color:var(--theme-switch-off--background--disabled)}:host(.disabled) .switch>.slider:before{background-color:var(--theme-switch-thumb-off--background--disabled)}:host(.disabled) .switch.checked>.slider{background-color:var(--theme-switch-on--background--disabled)}:host(.disabled) .switch.checked>.slider:before{background-color:var(--theme-switch-thumb-on--background--disabled)}:host(.disabled) .label{color:var(--theme-color-weak-text)}:host(.ix-info:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--info\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--info--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--info--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--info\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--info--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--info--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--info\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--info--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--info--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--info\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--info--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--info--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--info\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--info--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--info--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--info\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--info--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--info--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--info\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--info--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--info--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--info\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--info--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--info--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--info\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--info--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--info--active\n )}:host(.ix-warning:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--warning\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--warning--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--warning--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--warning\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--warning--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--warning--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--warning\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--warning--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--warning--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--warning\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--warning--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--warning--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--warning\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--warning--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--warning--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--warning\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--warning--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--warning--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--warning\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--warning--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--warning--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--warning\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--warning--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--warning--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--warning\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--warning--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--warning--active\n )}:host(.ix-invalid--required:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--invalid\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--invalid--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--invalid--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--invalid\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--invalid--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--invalid--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--invalid\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--invalid--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--invalid--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--invalid\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--invalid--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--invalid--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--invalid\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--invalid--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--invalid--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--invalid\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--invalid--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--invalid--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--invalid\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--invalid--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--invalid--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--invalid\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--invalid--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--invalid--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--invalid\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--invalid--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--invalid--active\n )}:host(.ix-invalid:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--invalid\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--invalid--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--invalid--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--invalid\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--invalid--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--invalid--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--invalid\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--invalid--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--invalid--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--invalid\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--invalid--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--invalid--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--invalid\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--invalid--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--invalid--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--invalid\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--invalid--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--invalid--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--invalid\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--invalid--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--invalid--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--invalid\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--invalid--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--invalid--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--invalid\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--invalid--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--invalid--active\n )}';const n=c;const a=class{constructor(t){e(this,t);this.checkedChange=o(this,"checkedChange",7);this.valueChange=o(this,"valueChange",7);if(t.$hostElement$["s-ei"]){this.formInternals=t.$hostElement$["s-ei"]}else{this.formInternals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.formInternals}this.name=undefined;this.value="on";this.checked=false;this.disabled=false;this.indeterminate=false;this.textOn="On";this.textOff="Off";this.textIndeterminate="Mixed";this.hideText=false;this.required=false}onCheckedChange(e){if(this.disabled){return}if(this.indeterminate){this.indeterminate=false}this.checked=e;this.checkedChange.emit(this.checked)}componentWillLoad(){this.updateFormInternalValue()}updateFormInternalValue(){if(this.checked){this.formInternals.setFormValue(this.value)}else{this.formInternals.setFormValue(null)}}watchCheckedChange(){this.updateFormInternalValue()}hasValidValue(){return Promise.resolve(this.checked)}getAssociatedFormElement(){return Promise.resolve(this.formInternals.form)}render(){let e=this.textOff;if(this.checked){e=this.textOn}if(this.indeterminate){e=this.textIndeterminate}return t(r,{key:"326e2301e2d731f943233771e66c80680fc77f71",class:{disabled:this.disabled}},t("label",{key:"1498ebf0357541fca93abab9e774c274f2b65702",class:"wrapper"},t("button",{key:"97825608357f5a2fc9b000aa33b7d2a77f540362",role:"switch","aria-checked":i(this.checked),class:{switch:true,checked:this.checked,indeterminate:this.indeterminate},onClick:()=>this.onCheckedChange(!this.checked)},t("div",{key:"644322fb450d6836be5260c1191c8b3ec36ecdaa",class:"slider"})),t("input",{key:"db434f5b8caf0be198cdabca153c6b2308d6df11",type:"checkbox",disabled:this.disabled,indeterminate:this.indeterminate,checked:this.checked,tabindex:0,"aria-hidden":i(true),"aria-checked":i(this.checked),onChange:e=>this.onCheckedChange(e.target.checked)}),!this.hideText&&t("ix-typography",{key:"401fce46a2f766b62e06c13d8a571bfbe931bb42",class:"label"},e)))}static get formAssociated(){return true}get hostElement(){return h(this)}static get watchers(){return{checked:["watchCheckedChange"]}}};a.style=n;export{a as ix_toggle};
2
- //# sourceMappingURL=p-af7c4b16.entry.js.map
1
+ import{r as e,c as o,h as t,H as r,g as h}from"./p-5806df2b.js";import{a as i}from"./p-5fe87e71.js";const c=':host{display:inline-flex;flex-direction:row;position:relative;height:1.5rem;margin-block-start:0.25rem;margin-block-end:0.25rem}: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 input[type=checkbox]{display:none}:host .wrapper{display:flex;align-items:flex-start;width:100%;height:100%}:host .label{display:inline-block;white-space:normal;overflow:hidden;text-overflow:ellipsis;margin-block-start:0.125rem;margin-inline-start:0.5625rem}:host .switch{all:unset;position:relative;display:inline-block;width:3rem;min-width:3rem;max-width:3rem;height:1.5rem}:host .slider{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--theme-switch-off--background);transition:var(--theme-default-time);border-radius:1.5rem;border:0.0625rem solid transparent}:host .slider:before{position:absolute;content:"";height:1.125rem;width:1.125rem;left:0.125rem;bottom:0.125rem;background-color:var(--theme-switch-thumb-off--background);transition:var(--theme-default-time);border-radius:50%}:host .switch.checked>.slider::before{background-color:var(--theme-switch-thumb-on--background);transform:translateX(1.5rem)}:host .switch>.slider{border-color:var(--theme-switch-off--border-color)}:host .switch:hover>.slider{background-color:var(--theme-switch-off--background--hover);border-color:var(--theme-switch-off--border-color--hover)}:host .switch:hover>.slider:before{background-color:var(--theme-switch-thumb-off--background--hover)}:host .switch:active>.slider{background-color:var(--theme-switch-off--background--active);border-color:var(--theme-switch-off--border-color--active)}:host .switch:active>.slider:before{background-color:var(--theme-switch-thumb-off--background--active)}:host .switch.checked>.slider{background-color:var(--theme-switch-on--background);border-color:var(--theme-switch-on--border-color)}:host .switch.checked:hover>.slider{background-color:var(--theme-switch-on--background--hover);border-color:var(--theme-switch-on--border-color--hover)}:host .switch.checked:hover>.slider:before{background-color:var(--theme-switch-thumb-on--background--hover)}:host .switch.checked:active>.slider{background-color:var(--theme-switch-on--background--active);border-color:var(--theme-switch-on--border-color--active)}:host .switch.checked:active>.slider:before{background-color:var(--theme-switch-thumb-on--background--active)}:host .switch.indeterminate>.slider::before{transform:translateX(0.75rem)}:host(:not(.disabled)) .wrapper{cursor:pointer}:host(:not(.disabled)) .switch:focus-visible>.slider{outline:0.0625rem solid var(--theme-color-focus-bdr);outline-offset:0.0625rem}:host(.disabled){pointer-events:none}:host(.disabled) .switch{opacity:0.5}:host(.disabled) .switch>.slider{background-color:var(--theme-switch-off--background--disabled)}:host(.disabled) .switch>.slider:before{background-color:var(--theme-switch-thumb-off--background--disabled)}:host(.disabled) .switch.checked>.slider{background-color:var(--theme-switch-on--background--disabled)}:host(.disabled) .switch.checked>.slider:before{background-color:var(--theme-switch-thumb-on--background--disabled)}:host(.disabled) .label{color:var(--theme-color-weak-text)}:host(.ix-info:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--info\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--info--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--info--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--info\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--info--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--info--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--info\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--info--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--info--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--info\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--info--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--info--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--info\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--info--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--info--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--info\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--info--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--info--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--info\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--info--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--info--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--info\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--info--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--info--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--info\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--info--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--info--active\n )}:host(.ix-warning:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--warning\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--warning--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--warning--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--warning\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--warning--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--warning--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--warning\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--warning--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--warning--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--warning\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--warning--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--warning--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--warning\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--warning--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--warning--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--warning\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--warning--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--warning--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--warning\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--warning--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--warning--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--warning\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--warning--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--warning--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--warning\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--warning--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--warning--active\n )}:host(.ix-invalid--required:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--invalid\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--invalid--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--invalid--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--invalid\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--invalid--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--invalid--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--invalid\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--invalid--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--invalid--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--invalid\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--invalid--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--invalid--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--invalid\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--invalid--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--invalid--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--invalid\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--invalid--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--invalid--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--invalid\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--invalid--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--invalid--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--invalid\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--invalid--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--invalid--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--invalid\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--invalid--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--invalid--active\n )}:host(.ix-invalid:not(.disabled)) .slider{--theme-switch-off--background:var(\n --theme-switch-off--background--invalid\n );--theme-switch-off--background--hover:var(\n --theme-switch-off--background--invalid--hover\n );--theme-switch-off--background--active:var(\n --theme-switch-off--background--invalid--active\n );--theme-switch-thumb-off--background:var(\n --theme-switch-thumb-off--background--invalid\n );--theme-switch-thumb-off--background--hover:var(\n --theme-switch-thumb-off--background--invalid--hover\n );--theme-switch-thumb-off--background--active:var(\n --theme-switch-thumb-off--background--invalid--active\n );--theme-switch-off--border-color:var(\n --theme-switch-off--border-color--invalid\n );--theme-switch-off--border-color--hover:var(\n --theme-switch-off--border-color--invalid--hover\n );--theme-switch-off--border-color--active:var(\n --theme-switch-off--border-color--invalid--active\n );--theme-switch-on--background:var(\n --theme-switch-on--background--invalid\n );--theme-switch-on--background--hover:var(\n --theme-switch-on--background--invalid--hover\n );--theme-switch-on--background--active:var(\n --theme-switch-on--background--invalid--active\n );--theme-switch-thumb-on--background:var(\n --theme-switch-thumb-on--background--invalid\n );--theme-switch-thumb-on--background--hover:var(\n --theme-switch-thumb-on--background--invalid--hover\n );--theme-switch-thumb-on--background--active:var(\n --theme-switch-thumb-on--background--invalid--active\n );--theme-switch-on--border-color:var(\n --theme-switch-on--border-color--invalid\n );--theme-switch-on--border-color--hover:var(\n --theme-switch-on--border-color--invalid--hover\n );--theme-switch-on--border-color--active:var(\n --theme-switch-on--border-color--invalid--active\n );--theme-switch-mixed--background:var(\n --theme-switch-mixed--background--invalid\n );--theme-switch-mixed--background--hover:var(\n --theme-switch-mixed--background--invalid--hover\n );--theme-switch-mixed--background--active:var(\n --theme-switch-mixed--background--invalid--active\n );--theme-switch-thumb-mixed--background:var(\n --theme-switch-thumb-mixed--background--invalid\n );--theme-switch-thumb-mixed--background--hover:var(\n --theme-switch-thumb-mixed--background--invalid--hover\n );--theme-switch-thumb-mixed--background--active:var(\n --theme-switch-thumb-mixed--background--invalid--active\n );--theme-switch-mixed--border-color:var(\n --theme-switch-mixed--border-color--invalid\n );--theme-switch-mixed--border-color--hover:var(\n --theme-switch-mixed--border-color--invalid--hover\n );--theme-switch-mixed--border-color--active:var(\n --theme-switch-mixed--border-color--invalid--active\n )}';const n=c;const a=class{constructor(t){e(this,t);this.checkedChange=o(this,"checkedChange",7);this.valueChange=o(this,"valueChange",7);if(t.$hostElement$["s-ei"]){this.formInternals=t.$hostElement$["s-ei"]}else{this.formInternals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.formInternals}this.name=undefined;this.value="on";this.checked=false;this.disabled=false;this.indeterminate=false;this.textOn="On";this.textOff="Off";this.textIndeterminate="Mixed";this.hideText=false;this.required=false}onCheckedChange(e){if(this.disabled){return}if(this.indeterminate){this.indeterminate=false}this.checked=e;this.checkedChange.emit(this.checked)}componentWillLoad(){this.updateFormInternalValue()}updateFormInternalValue(){if(this.checked){this.formInternals.setFormValue(this.value)}else{this.formInternals.setFormValue(null)}}watchCheckedChange(){this.updateFormInternalValue()}hasValidValue(){return Promise.resolve(this.checked)}getAssociatedFormElement(){return Promise.resolve(this.formInternals.form)}render(){let e=this.textOff;if(this.checked){e=this.textOn}if(this.indeterminate){e=this.textIndeterminate}return t(r,{key:"508fa5cd92f3b3707823b13175a6e243def7d61f",class:{disabled:this.disabled}},t("label",{key:"b01e8a3e4fb781dc979ebf915aa71055a688d0da",class:"wrapper"},t("button",{key:"22301abf1c108d18d8c73d5288f9b6cceb6f4992",role:"switch","aria-checked":i(this.checked),class:{switch:true,checked:this.checked,indeterminate:this.indeterminate},onClick:()=>this.onCheckedChange(!this.checked)},t("div",{key:"2f0a33aa378f39f77f7905028884b93b530e9c5e",class:"slider"})),t("input",{key:"f5bb8b2a44d5881f769d2306b5eeadac9481dc46",type:"checkbox",disabled:this.disabled,indeterminate:this.indeterminate,checked:this.checked,tabindex:0,"aria-hidden":i(true),"aria-checked":i(this.checked),onChange:e=>this.onCheckedChange(e.target.checked)}),!this.hideText&&t("ix-typography",{key:"d631ef3c16f5df85c752534b4f1c798f520678d3",class:"label"},e)))}static get formAssociated(){return true}get hostElement(){return h(this)}static get watchers(){return{checked:["watchCheckedChange"]}}};a.style=n;export{a as ix_toggle};
2
+ //# sourceMappingURL=p-71a4590c.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,h as t,H as o,g as r,c as s}from"./p-5806df2b.js";import{g as i}from"./p-345e1c73.js";const a=":host{display:block;position:relative;height:2rem;width:2rem;margin-block-start:0.3125rem;margin-inline-end:0.3125rem;margin-inline-start:auto}:host .hide{visibility:collapse}:host ::slotted(ix-dropdown){cursor:default}";const n=a;const c=class{constructor(t){e(this,t);this.showContextMenu=false}getTrigger(){return this.hostElement}configureDropdown(e,t){e.positioningStrategy="fixed";e.trigger=t}onSlotChange(){const e=this.hostElement.shadowRoot.querySelector("slot");if(!e){return}const t=i(e);this.showContextMenu=t.length!==0;const o=t.find((e=>e.tagName==="IX-DROPDOWN"));const r=this.getTrigger();if(!r){return}if(!o){return}this.configureDropdown(o,r)}render(){return t(o,{key:"8ca41b44ac2bc8963ddcb6ab826132358064d77f"},t("ix-icon-button",{key:"4fbb61b89a762941489e4c279a5a38f84448d362",class:{hide:!this.showContextMenu},size:"24",ghost:true,icon:"context-menu"}),t("slot",{key:"566ef77c6ed9e9d4281dc28cbb1bfb124335a806",onSlotchange:()=>this.onSlotChange()}))}get hostElement(){return r(this)}};c.style=n;const l=":host{display:flex;min-height:2.25rem;height:2.25rem}: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>button{display:flex;height:100%;width:100%;align-items:center;justify-content:flex-start;position:relative;outline:none;background-color:var(--theme-group-item--background);border:1px solid transparent;color:var(--theme-color-std-text);cursor:pointer;padding-left:2.5rem}:host>button:focus-visible{border:1px solid var(--theme-color-focus-bdr)}:host ix-icon{margin-right:0.25rem;margin-top:-0.125rem}:host .group-entry-selection-indicator{position:absolute;left:-1px;height:calc(100% + 2px);width:0.25rem}:host .group-entry-text{-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);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .group-entry-text-secondary{display:flex;justify-content:flex-end;flex-grow:1;white-space:nowrap;color:var(--theme-color-soft-text)}:host .group-entry-text-secondary,:host .group-entry-text-secondary span{-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);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.selected){border-top-width:0.062rem !important;background-color:var(--theme-color-ghost--selected)}:host(.selected) .group-entry-selection-indicator{background-color:var(--theme-group-item-indicator--background--selected)}:host(:hover){background-color:var(--theme-color-ghost--selected-hover);border-color:var(--theme-group-item--border-color--hover)}:host(.selected:hover){background-color:var(--theme-color-ghost--selected-hover)}:host(:active){background-color:var(--theme-color-ghost--selected-active);border-color:var(--theme-group-item--border-color--active)}:host(.selected:active){background-color:var(--theme-color-ghost--selected-active)}";const h=l;const d=class{constructor(t){e(this,t);this.selectedChanged=s(this,"selectedChanged",7);this.icon=undefined;this.text=undefined;this.secondaryText=undefined;this.suppressSelection=false;this.selected=false;this.focusable=true;this.index=undefined}clickListen(){this.selectedChanged.emit(this.hostElement)}render(){return t(o,{key:"dcd397f79a186587a57fc449ac788f41fa23d10b",class:{selected:this.selected&&!this.suppressSelection}},t("button",{key:"a0f56d039ab36de73b80f60ccca09ec8bb399bc0",tabindex:this.focusable?0:-1},t("div",{key:"b6b2d08cd9b58287baa2bfa37fa04ae70ee87cac",class:"group-entry-selection-indicator"}),this.icon?t("ix-icon",{size:"16",name:this.icon}):null,this.text?t("span",{class:"group-entry-text"},t("span",{title:this.text},this.text)):null,this.secondaryText?t("span",{class:"group-entry-text-secondary"},t("span",{title:this.secondaryText},this.secondaryText)):null,t("slot",{key:"3bde77249566d9242e510dafcac7c57c4f6b2211"})))}get hostElement(){return r(this)}};d.style=h;export{c as ix_group_context_menu,d as ix_group_item};
2
- //# sourceMappingURL=p-be860121.entry.js.map
1
+ import{r as e,h as t,H as o,g as r,c as s}from"./p-5806df2b.js";import{g as i}from"./p-345e1c73.js";const a=":host{display:block;position:relative;height:2rem;width:2rem;margin-block-start:0.3125rem;margin-inline-end:0.3125rem;margin-inline-start:auto}:host .hide{visibility:collapse}:host ::slotted(ix-dropdown){cursor:default}";const n=a;const c=class{constructor(t){e(this,t);this.showContextMenu=false}getTrigger(){return this.hostElement}configureDropdown(e,t){e.positioningStrategy="fixed";e.trigger=t}onSlotChange(){const e=this.hostElement.shadowRoot.querySelector("slot");if(!e){return}const t=i(e);this.showContextMenu=t.length!==0;const o=t.find((e=>e.tagName==="IX-DROPDOWN"));const r=this.getTrigger();if(!r){return}if(!o){return}this.configureDropdown(o,r)}render(){return t(o,{key:"d45b69098ce3f502ce7dd34ae16d83393d4bde9f"},t("ix-icon-button",{key:"5dfb6b0781db8bc095145e77c20fd72fb8ed85af",class:{hide:!this.showContextMenu},size:"24",ghost:true,icon:"context-menu"}),t("slot",{key:"0c0d0b119f95122c5b976f882ea9036f6598381a",onSlotchange:()=>this.onSlotChange()}))}get hostElement(){return r(this)}};c.style=n;const l=":host{display:flex;min-height:2.25rem;height:2.25rem}: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>button{display:flex;height:100%;width:100%;align-items:center;justify-content:flex-start;position:relative;outline:none;background-color:var(--theme-group-item--background);border:1px solid transparent;color:var(--theme-color-std-text);cursor:pointer;padding-left:2.5rem}:host>button:focus-visible{border:1px solid var(--theme-color-focus-bdr)}:host ix-icon{margin-right:0.25rem;margin-top:-0.125rem}:host .group-entry-selection-indicator{position:absolute;left:-1px;height:calc(100% + 2px);width:0.25rem}:host .group-entry-text{-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);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .group-entry-text-secondary{display:flex;justify-content:flex-end;flex-grow:1;white-space:nowrap;color:var(--theme-color-soft-text)}:host .group-entry-text-secondary,:host .group-entry-text-secondary span{-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);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.selected){border-top-width:0.062rem !important;background-color:var(--theme-color-ghost--selected)}:host(.selected) .group-entry-selection-indicator{background-color:var(--theme-group-item-indicator--background--selected)}:host(:hover){background-color:var(--theme-color-ghost--selected-hover);border-color:var(--theme-group-item--border-color--hover)}:host(.selected:hover){background-color:var(--theme-color-ghost--selected-hover)}:host(:active){background-color:var(--theme-color-ghost--selected-active);border-color:var(--theme-group-item--border-color--active)}:host(.selected:active){background-color:var(--theme-color-ghost--selected-active)}";const h=l;const d=class{constructor(t){e(this,t);this.selectedChanged=s(this,"selectedChanged",7);this.icon=undefined;this.text=undefined;this.secondaryText=undefined;this.suppressSelection=false;this.selected=false;this.focusable=true;this.index=undefined}clickListen(){this.selectedChanged.emit(this.hostElement)}render(){return t(o,{key:"bdade798c7b506d739029a27c9b73a90f101bc0e",class:{selected:this.selected&&!this.suppressSelection}},t("button",{key:"aa88b5a436cc197341a9afdf7a5cd0e522fd325a",tabindex:this.focusable?0:-1},t("div",{key:"c5e7c0aeadc32db6a8c6b0deb262620aaaff1fa1",class:"group-entry-selection-indicator"}),this.icon?t("ix-icon",{size:"16",name:this.icon}):null,this.text?t("span",{class:"group-entry-text"},t("span",{title:this.text},this.text)):null,this.secondaryText?t("span",{class:"group-entry-text-secondary"},t("span",{title:this.secondaryText},this.secondaryText)):null,t("slot",{key:"a6fa0189ef24b3ce6c593ee99f2df83263b97053"})))}get hostElement(){return r(this)}};d.style=h;export{c as ix_group_context_menu,d as ix_group_item};
2
+ //# sourceMappingURL=p-790709c5.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["groupContextMenuCss","IxGroupContextMenuStyle0","GroupContextMenu","getTrigger","this","hostElement","configureDropdown","dropdownElement","triggerElement","positioningStrategy","trigger","onSlotChange","slot","shadowRoot","querySelector","elements","getSlottedElements","showContextMenu","length","find","elm","tagName","render","h","Host","key","class","hide","size","ghost","icon","onSlotchange","groupItemCss","IxGroupItemStyle0","GroupItem","clickListen","selectedChanged","emit","selected","suppressSelection","tabindex","focusable","name","text","title","secondaryText"],"sources":["src/components/group/group-context-menu.scss?tag=ix-group-context-menu&encapsulation=shadow","src/components/group/group-context-menu.tsx","src/components/group-item/group-item.scss?tag=ix-group-item&encapsulation=shadow","src/components/group-item/group-item.tsx"],"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:host {\n display: block;\n position: relative;\n\n height: 2rem;\n width: 2rem;\n\n margin-block-start: 0.3125rem;\n margin-inline-end: 0.3125rem;\n margin-inline-start: auto;\n\n .hide {\n visibility: collapse;\n }\n\n ::slotted(ix-dropdown) {\n cursor: default;\n }\n}\n","/*\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 { Component, Element, h, Host, State } from '@stencil/core';\nimport { getSlottedElements } from '../utils/shadow-dom';\n\n@Component({\n tag: 'ix-group-context-menu',\n styleUrl: './group-context-menu.scss',\n shadow: true,\n})\nexport class GroupContextMenu {\n @Element() hostElement!: HTMLIxGroupContextMenuElement;\n\n @State() showContextMenu = false;\n\n private getTrigger() {\n return this.hostElement;\n }\n\n private configureDropdown(\n dropdownElement: HTMLIxDropdownElement,\n triggerElement: HTMLElement\n ) {\n dropdownElement.positioningStrategy = 'fixed';\n dropdownElement.trigger = triggerElement;\n }\n\n private onSlotChange() {\n const slot = this.hostElement.shadowRoot!.querySelector('slot');\n if (!slot) {\n return;\n }\n const elements = getSlottedElements(slot);\n this.showContextMenu = elements.length !== 0;\n\n const dropdownElement = elements.find(\n (elm: Element) => elm.tagName === 'IX-DROPDOWN'\n );\n\n const triggerElement = this.getTrigger();\n\n if (!triggerElement) {\n return;\n }\n\n if (!dropdownElement) {\n return;\n }\n\n this.configureDropdown(dropdownElement, triggerElement);\n }\n\n render() {\n return (\n <Host>\n <ix-icon-button\n class={{ hide: !this.showContextMenu }}\n size=\"24\"\n ghost={true}\n icon={'context-menu'}\n ></ix-icon-button>\n <slot onSlotchange={() => this.onSlotChange()}></slot>\n </Host>\n );\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'legacy/mixins/fonts';\n@import 'mixins/shadow-dom/hover';\n@import 'mixins/shadow-dom/component';\n@import 'mixins/text-truncation';\n\n$focusBorderWidth: 1px;\n\n:host {\n @include ix-component;\n display: flex;\n min-height: 2.25rem;\n height: 2.25rem;\n\n > button {\n display: flex;\n height: 100%;\n width: 100%;\n align-items: center;\n justify-content: flex-start;\n position: relative;\n outline: none;\n background-color: var(--theme-group-item--background);\n border: 1px solid transparent;\n color: var(--theme-color-std-text);\n cursor: pointer;\n\n padding-left: 2.5rem;\n\n &:focus-visible {\n border: $focusBorderWidth solid var(--theme-color-focus-bdr);\n }\n }\n\n ix-icon {\n margin-right: $tiny-space;\n margin-top: -0.125rem;\n }\n\n .group-entry-selection-indicator {\n position: absolute;\n left: -#{$focusBorderWidth};\n height: calc(100% + #{$focusBorderWidth * 2});\n width: $tiny-space;\n }\n\n .group-entry-text {\n @include text-default;\n @include ellipsis();\n }\n\n .group-entry-text-secondary {\n &,\n span {\n @include text-default;\n @include ellipsis;\n }\n\n display: flex;\n justify-content: flex-end;\n flex-grow: 1;\n white-space: nowrap;\n color: var(--theme-color-soft-text);\n }\n}\n\n:host(.selected) {\n border-top-width: 0.062rem !important;\n background-color: var(--theme-color-ghost--selected);\n\n .group-entry-selection-indicator {\n background-color: var(--theme-group-item-indicator--background--selected);\n }\n}\n\n:host(:hover) {\n background-color: var(--theme-color-ghost--selected-hover);\n border-color: var(--theme-group-item--border-color--hover);\n}\n\n:host(.selected:hover) {\n background-color: var(--theme-color-ghost--selected-hover);\n}\n\n:host(:active) {\n background-color: var(--theme-color-ghost--selected-active);\n border-color: var(--theme-group-item--border-color--active);\n}\n\n:host(.selected:active) {\n background-color: var(--theme-color-ghost--selected-active);\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n} from '@stencil/core';\n\n@Component({\n tag: 'ix-group-item',\n styleUrl: 'group-item.scss',\n shadow: true,\n})\nexport class GroupItem {\n @Element() hostElement!: HTMLIxGroupItemElement;\n\n /**\n * Group item icon\n */\n @Prop() icon?: string;\n\n /**\n * Group item text\n */\n @Prop() text?: string;\n\n /**\n * Group item secondary text\n */\n @Prop() secondaryText?: string;\n\n /**\n * Supress the selection of the group\n */\n @Prop() suppressSelection = false;\n\n /**\n * Show selected state\n */\n @Prop() selected: boolean = false;\n\n /**\n * The elements tabindex attribute will get set accordingly.\n * If true tabindex will be 0, -1 otherwise.\n */\n @Prop() focusable = true;\n\n /**\n * Selection changed\n */\n @Event() selectedChanged!: EventEmitter<HTMLIxGroupItemElement>;\n\n /**\n * Index\n */\n @Prop() index?: number;\n\n @Listen('click', { passive: true })\n clickListen() {\n this.selectedChanged.emit(this.hostElement);\n }\n\n render() {\n return (\n <Host\n class={{\n selected: this.selected && !this.suppressSelection,\n }}\n >\n <button tabindex={this.focusable ? 0 : -1}>\n <div class=\"group-entry-selection-indicator\"></div>\n {this.icon ? <ix-icon size=\"16\" name={this.icon}></ix-icon> : null}\n {this.text ? (\n <span class=\"group-entry-text\">\n <span title={this.text}>{this.text}</span>\n </span>\n ) : null}\n {this.secondaryText ? (\n <span class=\"group-entry-text-secondary\">\n <span title={this.secondaryText}>{this.secondaryText}</span>\n </span>\n ) : null}\n <slot></slot>\n </button>\n </Host>\n );\n }\n}\n"],"mappings":"oGAAA,MAAMA,EAAsB,8NAC5B,MAAAC,EAAeD,E,MCgBFE,EAAgB,M,8CAGA,K,CAEnB,UAAAC,GACN,OAAOC,KAAKC,W,CAGN,iBAAAC,CACNC,EACAC,GAEAD,EAAgBE,oBAAsB,QACtCF,EAAgBG,QAAUF,C,CAGpB,YAAAG,GACN,MAAMC,EAAOR,KAAKC,YAAYQ,WAAYC,cAAc,QACxD,IAAKF,EAAM,CACT,M,CAEF,MAAMG,EAAWC,EAAmBJ,GACpCR,KAAKa,gBAAkBF,EAASG,SAAW,EAE3C,MAAMX,EAAkBQ,EAASI,MAC9BC,GAAiBA,EAAIC,UAAY,gBAGpC,MAAMb,EAAiBJ,KAAKD,aAE5B,IAAKK,EAAgB,CACnB,M,CAGF,IAAKD,EAAiB,CACpB,M,CAGFH,KAAKE,kBAAkBC,EAAiBC,E,CAG1C,MAAAc,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,kBAAAE,IAAA,2CACEC,MAAO,CAAEC,MAAOvB,KAAKa,iBACrBW,KAAK,KACLC,MAAO,KACPC,KAAM,iBAERP,EAAA,QAAAE,IAAA,2CAAMM,aAAc,IAAM3B,KAAKO,iB,8CCpEvC,MAAMqB,EAAe,kqFACrB,MAAAC,EAAeD,E,MCwBFE,EAAS,M,sKAqBQ,M,cAKA,M,eAMR,K,qBAapB,WAAAC,GACE/B,KAAKgC,gBAAgBC,KAAKjC,KAAKC,Y,CAGjC,MAAAiB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAO,CACLY,SAAUlC,KAAKkC,WAAalC,KAAKmC,oBAGnChB,EAAA,UAAAE,IAAA,2CAAQe,SAAUpC,KAAKqC,UAAY,GAAK,GACtClB,EAAA,OAAAE,IAAA,2CAAKC,MAAM,oCACVtB,KAAK0B,KAAOP,EAAA,WAASK,KAAK,KAAKc,KAAMtC,KAAK0B,OAAmB,KAC7D1B,KAAKuC,KACJpB,EAAA,QAAMG,MAAM,oBACVH,EAAA,QAAMqB,MAAOxC,KAAKuC,MAAOvC,KAAKuC,OAE9B,KACHvC,KAAKyC,cACJtB,EAAA,QAAMG,MAAM,8BACVH,EAAA,QAAMqB,MAAOxC,KAAKyC,eAAgBzC,KAAKyC,gBAEvC,KACJtB,EAAA,QAAAE,IAAA,8C"}
@@ -1,2 +1,2 @@
1
- import{r as o,h as e,H as t,g as r}from"./p-5806df2b.js";import{B as n}from"./p-35e14912.js";const d=":host{display:inline-block;height:2rem;vertical-align:middle;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}: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 button{all:unset;box-sizing:border-box;display:inline-flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;align-items:center;justify-content:center;width:100%;height:100%;padding:0 0.5rem}:host ix-spinner{margin-right:0.25rem}:host ix-icon{margin-right:0.25rem}:host .content{display:inline-block;position:relative;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host .content-start{width:100%}:host .icon{pointer-events:none}:host(.disabled){cursor:default}:host .btn-danger{border-radius:var(--theme-btn--border-radius)}:host .btn-danger,:host .btn-danger.focus,:host .btn-danger:focus-visible{background-color:var(--theme-btn-danger--background);color:var(--theme-btn-danger--color);--ix-button-color:var(--theme-btn-danger--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-danger--border-color);border-style:solid}:host .btn-danger:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-danger.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger.selected:not(.disabled):not(:disabled):active,:host .btn-danger.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-danger--border-color--hover);background-color:var(--theme-btn-danger--background--hover);color:var(--theme-btn-danger--color--hover)}:host .btn-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger:not(.disabled):not(:disabled):active,:host .btn-danger:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-danger--border-color--active);background-color:var(--theme-btn-danger--background--active);color:var(--theme-btn-danger--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-danger.disabled,:host(.disabled) .btn-danger:disabled{pointer-events:none;border-color:var(--theme-btn-danger--border-color--disabled);background-color:var(--theme-btn-danger--background--disabled);color:var(--theme-btn-danger--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-danger--color--disabled)}:host .btn-outline-danger{border-radius:var(--theme-btn--border-radius)}:host .btn-outline-danger,:host .btn-outline-danger.focus,:host .btn-outline-danger:focus-visible{background-color:var(--theme-btn-outline-danger--background);color:var(--theme-btn-outline-danger--color);--ix-button-color:var(--theme-btn-outline-danger--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-danger--border-color);border-style:solid}:host .btn-outline-danger:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-outline-danger.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-outline-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-danger.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-outline-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-danger.selected:not(.disabled):not(:disabled):active,:host .btn-outline-danger.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-outline-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-danger:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-outline-danger--border-color--hover);background-color:var(--theme-btn-outline-danger--background--hover);color:var(--theme-btn-outline-danger--color--hover)}:host .btn-outline-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-danger:not(.disabled):not(:disabled):active,:host .btn-outline-danger:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-outline-danger--border-color--active);background-color:var(--theme-btn-outline-danger--background--active);color:var(--theme-btn-outline-danger--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-outline-danger.disabled,:host(.disabled) .btn-outline-danger:disabled{pointer-events:none;border-color:var(--theme-btn-outline-danger--border-color--disabled);background-color:var(--theme-btn-outline-danger--background--disabled);color:var(--theme-btn-outline-danger--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-danger--color--disabled)}:host .btn-invisible-danger{border-radius:var(--theme-btn--border-radius)}:host .btn-invisible-danger,:host .btn-invisible-danger.focus,:host .btn-invisible-danger:focus-visible{background-color:var(--theme-btn-invisible-danger--background);color:var(--theme-btn-invisible-danger--color);--ix-button-color:var(--theme-btn-invisible-danger--color);border-color:transparent}:host .btn-invisible-danger:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-invisible-danger.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-invisible-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-danger.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-invisible-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-danger.selected:not(.disabled):not(:disabled):active,:host .btn-invisible-danger.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-invisible-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-danger:not(.disabled):not(:disabled):hover{background-color:var(--theme-btn-invisible-danger--background--hover);color:var(--theme-btn-invisible-danger--color--hover)}:host .btn-invisible-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-danger:not(.disabled):not(:disabled):active,:host .btn-invisible-danger:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-invisible-danger--background--active);color:var(--theme-btn-invisible-danger--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-invisible-danger.disabled,:host(.disabled) .btn-invisible-danger:disabled{pointer-events:none;background-color:var(--theme-btn-invisible-danger--background--disabled);color:var(--theme-btn-invisible-danger--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-danger--color--disabled)}:host .btn-primary{border-radius:var(--theme-btn--border-radius)}:host .btn-primary,:host .btn-primary.focus,:host .btn-primary:focus-visible{background-color:var(--theme-btn-primary--background);color:var(--theme-btn-primary--color);--ix-button-color:var(--theme-btn-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-primary--border-color);border-style:solid}:host .btn-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary.selected:not(.disabled):not(:disabled):active,:host .btn-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-primary--border-color--hover);background-color:var(--theme-btn-primary--background--hover);color:var(--theme-btn-primary--color--hover)}:host .btn-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary:not(.disabled):not(:disabled):active,:host .btn-primary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-primary.disabled,:host(.disabled) .btn-primary:disabled{pointer-events:none;border-color:var(--theme-btn-primary--border-color--disabled);background-color:var(--theme-btn-primary--background--disabled);color:var(--theme-btn-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-primary--color--disabled)}:host .btn-outline-primary{border-radius:var(--theme-btn--border-radius)}:host .btn-outline-primary,:host .btn-outline-primary.focus,:host .btn-outline-primary:focus-visible{background-color:var(--theme-btn-outline-primary--background);color:var(--theme-btn-outline-primary--color);--ix-button-color:var(--theme-btn-outline-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-primary--border-color);border-style:solid}:host .btn-outline-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-outline-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-outline-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-primary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-outline-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-primary.selected:not(.disabled):not(:disabled):active,:host .btn-outline-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-outline-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-primary:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-outline-primary--border-color--hover);background-color:var(--theme-btn-outline-primary--background--hover);color:var(--theme-btn-outline-primary--color--hover)}:host .btn-outline-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-primary:not(.disabled):not(:disabled):active,:host .btn-outline-primary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-outline-primary--border-color--active);background-color:var(--theme-btn-outline-primary--background--active);color:var(--theme-btn-outline-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-outline-primary.disabled,:host(.disabled) .btn-outline-primary:disabled{pointer-events:none;border-color:var(--theme-btn-outline-primary--border-color--disabled);background-color:var(--theme-btn-outline-primary--background--disabled);color:var(--theme-btn-outline-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-primary--color--disabled)}:host .btn-invisible-primary{border-radius:var(--theme-btn--border-radius)}:host .btn-invisible-primary,:host .btn-invisible-primary.focus,:host .btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}:host .btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-invisible-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-primary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-invisible-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-primary.selected:not(.disabled):not(:disabled):active,:host .btn-invisible-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-invisible-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-primary:not(.disabled):not(:disabled):hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}:host .btn-invisible-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-primary:not(.disabled):not(:disabled):active,:host .btn-invisible-primary:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-invisible-primary.disabled,:host(.disabled) .btn-invisible-primary:disabled{pointer-events:none;background-color:var(--theme-btn-invisible-primary--background--disabled);color:var(--theme-btn-invisible-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-primary--color--disabled)}:host .btn-secondary{border-radius:var(--theme-btn--border-radius)}:host .btn-secondary,:host .btn-secondary.focus,:host .btn-secondary:focus-visible{background-color:var(--theme-btn-secondary--background);color:var(--theme-btn-secondary--color);--ix-button-color:var(--theme-btn-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-secondary--border-color);border-style:solid}:host .btn-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-secondary--border-color--hover);background-color:var(--theme-btn-secondary--background--hover);color:var(--theme-btn-secondary--color--hover)}:host .btn-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary:not(.disabled):not(:disabled):active,:host .btn-secondary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-secondary.disabled,:host(.disabled) .btn-secondary:disabled{pointer-events:none;border-color:var(--theme-btn-secondary--border-color--disabled);background-color:var(--theme-btn-secondary--background--disabled);color:var(--theme-btn-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-secondary--color--disabled)}:host .btn-outline-secondary{border-radius:var(--theme-btn--border-radius)}:host .btn-outline-secondary,:host .btn-outline-secondary.focus,:host .btn-outline-secondary:focus-visible{background-color:var(--theme-btn-outline-secondary--background);color:var(--theme-btn-outline-secondary--color);--ix-button-color:var(--theme-btn-outline-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-secondary--border-color);border-style:solid}:host .btn-outline-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-outline-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-outline-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-secondary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-outline-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-outline-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-outline-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-secondary:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-outline-secondary--border-color--hover);background-color:var(--theme-btn-outline-secondary--background--hover);color:var(--theme-btn-outline-secondary--color--hover)}:host .btn-outline-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-secondary:not(.disabled):not(:disabled):active,:host .btn-outline-secondary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-outline-secondary--border-color--active);background-color:var(--theme-btn-outline-secondary--background--active);color:var(--theme-btn-outline-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-outline-secondary.disabled,:host(.disabled) .btn-outline-secondary:disabled{pointer-events:none;border-color:var(--theme-btn-outline-secondary--border-color--disabled);background-color:var(--theme-btn-outline-secondary--background--disabled);color:var(--theme-btn-outline-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-secondary--color--disabled)}:host .btn-invisible-secondary{border-radius:var(--theme-btn--border-radius)}:host .btn-invisible-secondary,:host .btn-invisible-secondary.focus,:host .btn-invisible-secondary:focus-visible{background-color:var(--theme-btn-invisible-secondary--background);color:var(--theme-btn-invisible-secondary--color);--ix-button-color:var(--theme-btn-invisible-secondary--color);border-color:transparent}:host .btn-invisible-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-invisible-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-invisible-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-secondary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-invisible-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-invisible-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-invisible-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-secondary:not(.disabled):not(:disabled):hover{background-color:var(--theme-btn-invisible-secondary--background--hover);color:var(--theme-btn-invisible-secondary--color--hover)}:host .btn-invisible-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-secondary:not(.disabled):not(:disabled):active,:host .btn-invisible-secondary:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-invisible-secondary--background--active);color:var(--theme-btn-invisible-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-invisible-secondary.disabled,:host(.disabled) .btn-invisible-secondary:disabled{pointer-events:none;background-color:var(--theme-btn-invisible-secondary--background--disabled);color:var(--theme-btn-invisible-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-secondary--color--disabled)}:host{min-width:5rem}";const i=d;const a=class{constructor(e){o(this,e);this.variant="primary";this.outline=false;this.ghost=false;this.disabled=false;this.type="button";this.loading=false;this.icon=undefined;this.alignment="center";this.iconSize="24"}handleClick(o){if(this.disabled||this.loading){o.stopPropagation();o.preventDefault()}}componentDidLoad(){if(this.type==="submit"){const o=document.createElement("button");o.style.display="none";o.type="submit";o.tabIndex=-1;this.hostElement.appendChild(o);this.submitButtonElement=o}}dispatchFormEvents(){if(this.type==="submit"&&this.submitButtonElement&&!this.disabled&&!this.loading){this.submitButtonElement.click()}}setFocus(){var o;(o=this.hostElement.shadowRoot.querySelector("button"))===null||o===void 0?void 0:o.focus()}render(){const o={variant:this.variant,outline:this.outline,ghost:this.ghost,iconOnly:false,iconOval:false,selected:false,disabled:this.disabled||this.loading,icon:this.icon,iconSize:this.iconSize,loading:this.loading,onClick:()=>this.dispatchFormEvents(),type:this.type,alignment:this.alignment,tabIndex:this.hostElement.tabIndex};return e(t,{key:"d5ab86ccc3e14d1c70b57f43c56424f933580b63",tabindex:this.disabled?-1:0,class:{disabled:this.disabled||this.loading},onFocus:()=>this.setFocus()},e(n,Object.assign({key:"f7df5bf7cf56a26cd42f8b3af19e94b77395a55b"},o),e("slot",{key:"19fb63277a484ddbd75065f0b0ac78ce510f0847"})))}get hostElement(){return r(this)}};a.style=i;export{a as ix_button};
2
- //# sourceMappingURL=p-d9b654af.entry.js.map
1
+ import{r as o,h as e,H as t,g as r}from"./p-5806df2b.js";import{B as n}from"./p-35e14912.js";const d=":host{display:inline-block;height:2rem;vertical-align:middle;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}: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 button{all:unset;box-sizing:border-box;display:inline-flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;align-items:center;justify-content:center;width:100%;height:100%;padding:0 0.5rem}:host ix-spinner{margin-right:0.25rem}:host ix-icon{margin-right:0.25rem}:host .content{display:inline-block;position:relative;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host .content-start{width:100%}:host .icon{pointer-events:none}:host(.disabled){cursor:default}:host .btn-danger{border-radius:var(--theme-btn--border-radius)}:host .btn-danger,:host .btn-danger.focus,:host .btn-danger:focus-visible{background-color:var(--theme-btn-danger--background);color:var(--theme-btn-danger--color);--ix-button-color:var(--theme-btn-danger--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-danger--border-color);border-style:solid}:host .btn-danger:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-danger.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger.selected:not(.disabled):not(:disabled):active,:host .btn-danger.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-danger--border-color--hover);background-color:var(--theme-btn-danger--background--hover);color:var(--theme-btn-danger--color--hover)}:host .btn-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-danger:not(.disabled):not(:disabled):active,:host .btn-danger:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-danger--border-color--active);background-color:var(--theme-btn-danger--background--active);color:var(--theme-btn-danger--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-danger.disabled,:host(.disabled) .btn-danger:disabled{pointer-events:none;border-color:var(--theme-btn-danger--border-color--disabled);background-color:var(--theme-btn-danger--background--disabled);color:var(--theme-btn-danger--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-danger--color--disabled)}:host .btn-outline-danger{border-radius:var(--theme-btn--border-radius)}:host .btn-outline-danger,:host .btn-outline-danger.focus,:host .btn-outline-danger:focus-visible{background-color:var(--theme-btn-outline-danger--background);color:var(--theme-btn-outline-danger--color);--ix-button-color:var(--theme-btn-outline-danger--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-danger--border-color);border-style:solid}:host .btn-outline-danger:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-outline-danger.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-outline-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-danger.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-outline-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-danger.selected:not(.disabled):not(:disabled):active,:host .btn-outline-danger.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-outline-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-danger:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-outline-danger--border-color--hover);background-color:var(--theme-btn-outline-danger--background--hover);color:var(--theme-btn-outline-danger--color--hover)}:host .btn-outline-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-danger:not(.disabled):not(:disabled):active,:host .btn-outline-danger:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-outline-danger--border-color--active);background-color:var(--theme-btn-outline-danger--background--active);color:var(--theme-btn-outline-danger--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-outline-danger.disabled,:host(.disabled) .btn-outline-danger:disabled{pointer-events:none;border-color:var(--theme-btn-outline-danger--border-color--disabled);background-color:var(--theme-btn-outline-danger--background--disabled);color:var(--theme-btn-outline-danger--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-danger--color--disabled)}:host .btn-invisible-danger{border-radius:var(--theme-btn--border-radius)}:host .btn-invisible-danger,:host .btn-invisible-danger.focus,:host .btn-invisible-danger:focus-visible{background-color:var(--theme-btn-invisible-danger--background);color:var(--theme-btn-invisible-danger--color);--ix-button-color:var(--theme-btn-invisible-danger--color);border-color:transparent}:host .btn-invisible-danger:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-invisible-danger.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-invisible-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-danger.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-invisible-danger.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-danger.selected:not(.disabled):not(:disabled):active,:host .btn-invisible-danger.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-invisible-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-danger:not(.disabled):not(:disabled):hover{background-color:var(--theme-btn-invisible-danger--background--hover);color:var(--theme-btn-invisible-danger--color--hover)}:host .btn-invisible-danger:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-danger:not(.disabled):not(:disabled):active,:host .btn-invisible-danger:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-invisible-danger--background--active);color:var(--theme-btn-invisible-danger--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-invisible-danger.disabled,:host(.disabled) .btn-invisible-danger:disabled{pointer-events:none;background-color:var(--theme-btn-invisible-danger--background--disabled);color:var(--theme-btn-invisible-danger--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-danger--color--disabled)}:host .btn-primary{border-radius:var(--theme-btn--border-radius)}:host .btn-primary,:host .btn-primary.focus,:host .btn-primary:focus-visible{background-color:var(--theme-btn-primary--background);color:var(--theme-btn-primary--color);--ix-button-color:var(--theme-btn-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-primary--border-color);border-style:solid}:host .btn-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary.selected:not(.disabled):not(:disabled):active,:host .btn-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-primary--border-color--hover);background-color:var(--theme-btn-primary--background--hover);color:var(--theme-btn-primary--color--hover)}:host .btn-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-primary:not(.disabled):not(:disabled):active,:host .btn-primary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-primary.disabled,:host(.disabled) .btn-primary:disabled{pointer-events:none;border-color:var(--theme-btn-primary--border-color--disabled);background-color:var(--theme-btn-primary--background--disabled);color:var(--theme-btn-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-primary--color--disabled)}:host .btn-outline-primary{border-radius:var(--theme-btn--border-radius)}:host .btn-outline-primary,:host .btn-outline-primary.focus,:host .btn-outline-primary:focus-visible{background-color:var(--theme-btn-outline-primary--background);color:var(--theme-btn-outline-primary--color);--ix-button-color:var(--theme-btn-outline-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-primary--border-color);border-style:solid}:host .btn-outline-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-outline-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-outline-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-primary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-outline-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-primary.selected:not(.disabled):not(:disabled):active,:host .btn-outline-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-outline-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-primary:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-outline-primary--border-color--hover);background-color:var(--theme-btn-outline-primary--background--hover);color:var(--theme-btn-outline-primary--color--hover)}:host .btn-outline-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-primary:not(.disabled):not(:disabled):active,:host .btn-outline-primary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-outline-primary--border-color--active);background-color:var(--theme-btn-outline-primary--background--active);color:var(--theme-btn-outline-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-outline-primary.disabled,:host(.disabled) .btn-outline-primary:disabled{pointer-events:none;border-color:var(--theme-btn-outline-primary--border-color--disabled);background-color:var(--theme-btn-outline-primary--background--disabled);color:var(--theme-btn-outline-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-primary--color--disabled)}:host .btn-invisible-primary{border-radius:var(--theme-btn--border-radius)}:host .btn-invisible-primary,:host .btn-invisible-primary.focus,:host .btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}:host .btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-invisible-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-primary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-invisible-primary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-primary.selected:not(.disabled):not(:disabled):active,:host .btn-invisible-primary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-invisible-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-primary:not(.disabled):not(:disabled):hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}:host .btn-invisible-primary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-primary:not(.disabled):not(:disabled):active,:host .btn-invisible-primary:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-invisible-primary.disabled,:host(.disabled) .btn-invisible-primary:disabled{pointer-events:none;background-color:var(--theme-btn-invisible-primary--background--disabled);color:var(--theme-btn-invisible-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-primary--color--disabled)}:host .btn-secondary{border-radius:var(--theme-btn--border-radius)}:host .btn-secondary,:host .btn-secondary.focus,:host .btn-secondary:focus-visible{background-color:var(--theme-btn-secondary--background);color:var(--theme-btn-secondary--color);--ix-button-color:var(--theme-btn-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-secondary--border-color);border-style:solid}:host .btn-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-secondary--border-color--hover);background-color:var(--theme-btn-secondary--background--hover);color:var(--theme-btn-secondary--color--hover)}:host .btn-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-secondary:not(.disabled):not(:disabled):active,:host .btn-secondary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-secondary.disabled,:host(.disabled) .btn-secondary:disabled{pointer-events:none;border-color:var(--theme-btn-secondary--border-color--disabled);background-color:var(--theme-btn-secondary--background--disabled);color:var(--theme-btn-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-secondary--color--disabled)}:host .btn-outline-secondary{border-radius:var(--theme-btn--border-radius)}:host .btn-outline-secondary,:host .btn-outline-secondary.focus,:host .btn-outline-secondary:focus-visible{background-color:var(--theme-btn-outline-secondary--background);color:var(--theme-btn-outline-secondary--color);--ix-button-color:var(--theme-btn-outline-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-secondary--border-color);border-style:solid}:host .btn-outline-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-outline-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-outline-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-secondary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-outline-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-outline-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-outline-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-secondary:not(.disabled):not(:disabled):hover{border-color:var(--theme-btn-outline-secondary--border-color--hover);background-color:var(--theme-btn-outline-secondary--background--hover);color:var(--theme-btn-outline-secondary--color--hover)}:host .btn-outline-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-outline-secondary:not(.disabled):not(:disabled):active,:host .btn-outline-secondary:not(.disabled):not(:disabled).active{border-color:var(--theme-btn-outline-secondary--border-color--active);background-color:var(--theme-btn-outline-secondary--background--active);color:var(--theme-btn-outline-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-outline-secondary.disabled,:host(.disabled) .btn-outline-secondary:disabled{pointer-events:none;border-color:var(--theme-btn-outline-secondary--border-color--disabled);background-color:var(--theme-btn-outline-secondary--background--disabled);color:var(--theme-btn-outline-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-secondary--color--disabled)}:host .btn-invisible-secondary{border-radius:var(--theme-btn--border-radius)}:host .btn-invisible-secondary,:host .btn-invisible-secondary.focus,:host .btn-invisible-secondary:focus-visible{background-color:var(--theme-btn-invisible-secondary--background);color:var(--theme-btn-invisible-secondary--color);--ix-button-color:var(--theme-btn-invisible-secondary--color);border-color:transparent}:host .btn-invisible-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}:host .btn-invisible-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}:host .btn-invisible-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-secondary.selected:not(.disabled):not(:disabled):hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}:host .btn-invisible-secondary.selected:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-secondary.selected:not(.disabled):not(:disabled):active,:host .btn-invisible-secondary.selected:not(.disabled):not(:disabled).active{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}:host .btn-invisible-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-secondary:not(.disabled):not(:disabled):hover{background-color:var(--theme-btn-invisible-secondary--background--hover);color:var(--theme-btn-invisible-secondary--color--hover)}:host .btn-invisible-secondary:not(.disabled):not(:disabled){cursor:pointer}:host .btn-invisible-secondary:not(.disabled):not(:disabled):active,:host .btn-invisible-secondary:not(.disabled):not(:disabled).active{background-color:var(--theme-btn-invisible-secondary--background--active);color:var(--theme-btn-invisible-secondary--color--active)}:host(.disabled){pointer-events:none}:host(.disabled) .btn-invisible-secondary.disabled,:host(.disabled) .btn-invisible-secondary:disabled{pointer-events:none;background-color:var(--theme-btn-invisible-secondary--background--disabled);color:var(--theme-btn-invisible-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-secondary--color--disabled)}:host{min-width:5rem}";const i=d;const a=class{constructor(e){o(this,e);this.variant="primary";this.outline=false;this.ghost=false;this.disabled=false;this.type="button";this.loading=false;this.icon=undefined;this.alignment="center";this.iconSize="24"}handleClick(o){if(this.disabled||this.loading){o.stopPropagation();o.preventDefault()}}componentDidLoad(){if(this.type==="submit"){const o=document.createElement("button");o.style.display="none";o.type="submit";o.tabIndex=-1;this.hostElement.appendChild(o);this.submitButtonElement=o}}dispatchFormEvents(){if(this.type==="submit"&&this.submitButtonElement&&!this.disabled&&!this.loading){this.submitButtonElement.click()}}setFocus(){var o;(o=this.hostElement.shadowRoot.querySelector("button"))===null||o===void 0?void 0:o.focus()}render(){const o={variant:this.variant,outline:this.outline,ghost:this.ghost,iconOnly:false,iconOval:false,selected:false,disabled:this.disabled||this.loading,icon:this.icon,iconSize:this.iconSize,loading:this.loading,onClick:()=>this.dispatchFormEvents(),type:this.type,alignment:this.alignment,tabIndex:this.hostElement.tabIndex};return e(t,{key:"dce7bc83febc68f17b995b03bae8313bc984ded9",tabindex:this.disabled?-1:0,class:{disabled:this.disabled||this.loading},onFocus:()=>this.setFocus()},e(n,Object.assign({key:"d7a6db5c7cb1952abcbb2c5192eb22914ba0fe09"},o),e("slot",{key:"5fe5afdd6081641872b63d9a9a9a5909e72d6f0b"})))}get hostElement(){return r(this)}};a.style=i;export{a as ix_button};
2
+ //# sourceMappingURL=p-7b65535a.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["buttonCss","IxButtonStyle0","Button","handleClick","event","this","disabled","loading","stopPropagation","preventDefault","componentDidLoad","type","submitButton","document","createElement","style","display","tabIndex","hostElement","appendChild","submitButtonElement","dispatchFormEvents","click","setFocus","_a","shadowRoot","querySelector","focus","render","baseButtonProps","variant","outline","ghost","iconOnly","iconOval","selected","icon","iconSize","onClick","alignment","h","Host","key","tabindex","class","onFocus","BaseButton","Object","assign"],"sources":["src/components/button/button.scss?tag=ix-button&encapsulation=shadow","src/components/button/button.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n@import './button-mixin';\n\n@include btn;\n$button-categories: (danger, primary, secondary);\n@each $category in $button-categories {\n @include btn-variant($category);\n @include btn-variant('outline-#{$category}');\n @include btn-variant('invisible-#{$category}', false);\n}\n\n:host {\n min-width: 5rem;\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, Element, h, Host, Listen, Prop } from '@stencil/core';\nimport { BaseButton, BaseButtonProps } from './base-button';\nimport { IxButtonComponent } from './button-component';\n\nexport type ButtonVariant = 'danger' | 'primary' | 'secondary';\n\n@Component({\n tag: 'ix-button',\n shadow: true,\n styleUrl: './button.scss',\n})\nexport class Button implements IxButtonComponent {\n /**\n * Button variant\n * @since 2.3.0 - variant danger\n */\n @Prop() variant: ButtonVariant = 'primary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = false;\n\n /**\n * Disable the button\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Type of the button\n */\n @Prop() type: 'button' | 'submit' = 'button';\n\n /**\n * Loading button\n *\n * @since 2.0.0\n */\n @Prop() loading: boolean = false;\n\n /**\n * Icon name\n */\n @Prop() icon?: string;\n\n /** @internal */\n @Prop() alignment: 'center' | 'start' = 'center';\n\n /** @internal */\n @Prop() iconSize: '12' | '16' | '24' = '24';\n\n @Element() hostElement!: HTMLIxButtonElement;\n\n /**\n * Temp. workaround until stencil issue is fixed (https://github.com/ionic-team/stencil/issues/2284)\n */\n submitButtonElement?: HTMLButtonElement;\n\n @Listen('click', { capture: true })\n handleClick(event: Event) {\n if (this.disabled || this.loading) {\n event.stopPropagation();\n event.preventDefault();\n }\n }\n\n componentDidLoad() {\n if (this.type === 'submit') {\n const submitButton = document.createElement('button');\n submitButton.style.display = 'none';\n submitButton.type = 'submit';\n submitButton.tabIndex = -1;\n this.hostElement.appendChild(submitButton);\n\n this.submitButtonElement = submitButton;\n }\n }\n\n dispatchFormEvents() {\n if (\n this.type === 'submit' &&\n this.submitButtonElement &&\n !this.disabled &&\n !this.loading\n ) {\n this.submitButtonElement.click();\n }\n }\n\n setFocus() {\n this.hostElement.shadowRoot!.querySelector('button')?.focus();\n }\n\n render() {\n const baseButtonProps: BaseButtonProps = {\n variant: this.variant,\n outline: this.outline,\n ghost: this.ghost,\n iconOnly: false,\n iconOval: false,\n selected: false,\n disabled: this.disabled || this.loading,\n icon: this.icon,\n iconSize: this.iconSize,\n loading: this.loading,\n onClick: () => this.dispatchFormEvents(),\n type: this.type,\n alignment: this.alignment,\n tabIndex: this.hostElement.tabIndex,\n };\n\n return (\n <Host\n tabindex={this.disabled ? -1 : 0}\n class={{\n disabled: this.disabled || this.loading,\n }}\n onFocus={() => this.setFocus()}\n >\n <BaseButton {...baseButtonProps}>\n <slot></slot>\n </BaseButton>\n </Host>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAY,oyrBAClB,MAAAC,EAAeD,E,MCmBFE,EAAM,M,sCAKgB,U,aAKf,M,WAKF,M,cAKoB,M,UAKA,S,aAOT,M,mCAQa,S,cAGD,I,CAUvC,WAAAC,CAAYC,GACV,GAAIC,KAAKC,UAAYD,KAAKE,QAAS,CACjCH,EAAMI,kBACNJ,EAAMK,gB,EAIV,gBAAAC,GACE,GAAIL,KAAKM,OAAS,SAAU,CAC1B,MAAMC,EAAeC,SAASC,cAAc,UAC5CF,EAAaG,MAAMC,QAAU,OAC7BJ,EAAaD,KAAO,SACpBC,EAAaK,UAAY,EACzBZ,KAAKa,YAAYC,YAAYP,GAE7BP,KAAKe,oBAAsBR,C,EAI/B,kBAAAS,GACE,GACEhB,KAAKM,OAAS,UACdN,KAAKe,sBACJf,KAAKC,WACLD,KAAKE,QACN,CACAF,KAAKe,oBAAoBE,O,EAI7B,QAAAC,G,OACEC,EAAAnB,KAAKa,YAAYO,WAAYC,cAAc,aAAS,MAAAF,SAAA,SAAAA,EAAEG,O,CAGxD,MAAAC,GACE,MAAMC,EAAmC,CACvCC,QAASzB,KAAKyB,QACdC,QAAS1B,KAAK0B,QACdC,MAAO3B,KAAK2B,MACZC,SAAU,MACVC,SAAU,MACVC,SAAU,MACV7B,SAAUD,KAAKC,UAAYD,KAAKE,QAChC6B,KAAM/B,KAAK+B,KACXC,SAAUhC,KAAKgC,SACf9B,QAASF,KAAKE,QACd+B,QAAS,IAAMjC,KAAKgB,qBACpBV,KAAMN,KAAKM,KACX4B,UAAWlC,KAAKkC,UAChBtB,SAAUZ,KAAKa,YAAYD,UAG7B,OACEuB,EAACC,EAAI,CAAAC,IAAA,2CACHC,SAAUtC,KAAKC,UAAY,EAAI,EAC/BsC,MAAO,CACLtC,SAAUD,KAAKC,UAAYD,KAAKE,SAElCsC,QAAS,IAAMxC,KAAKkB,YAEpBiB,EAACM,EAAUC,OAAAC,OAAA,CAAAN,IAAA,4CAAKb,GACdW,EAAA,QAAAE,IAAA,8C"}
@@ -1,2 +1,2 @@
1
- import{r as o,c as t,h as r,H as e}from"./p-5806df2b.js";const n=".form-control,.form-control-plaintext{-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);color:var(--theme-input--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--theme-input--border-radius);height:2rem;min-height:2rem;min-width:2rem;background-color:var(--theme-input--background);border:solid 1px var(--theme-input--border-color);box-shadow:var(--theme-input--box-shadow);padding-inline-start:0.5rem;padding-inline-end:0.5rem}.form-control::-moz-placeholder,.form-control-plaintext::-moz-placeholder{color:var(--theme-input-hint--color)}.form-control::placeholder,.form-control-plaintext::placeholder{color:var(--theme-input-hint--color)}.form-control:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled),.form-control-plaintext:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled){cursor:pointer}.form-control:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled),.form-control-plaintext:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled){cursor:pointer}.form-control:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover,.form-control-plaintext:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover{background-color:var(--theme-input--background--hover);border-color:var(--theme-input--border-color--hover);cursor:auto}.form-control:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover,.form-control-plaintext:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover{background-color:var(--theme-input--background--hover);border-color:var(--theme-input--border-color--hover);cursor:auto}.form-control:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible,.form-control-plaintext:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible{background-color:var(--theme-input--background--focus);border-color:var(--theme-input--border-color--focus);outline-offset:var(--theme-input--focus--outline-offset);box-shadow:var(--theme-input--box-shadow);outline:1px solid var(--theme-color-focus-bdr)}.form-control:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible,.form-control-plaintext:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible{background-color:var(--theme-input--background--focus);border-color:var(--theme-input--border-color--focus);outline-offset:var(--theme-input--focus--outline-offset);box-shadow:var(--theme-input--box-shadow);outline:1px solid var(--theme-color-focus-bdr)}.form-control:focus-visible{color:var(--theme-input--color)}.form-control[type=number]{text-align:right}.form-control[type=number]::-webkit-inner-spin-button{margin-right:-2px;margin-left:2px;display:none}.form-control.readonly,.form-control[readonly]{background:transparent !important;border-block-start:none !important;border-inline-start:none !important;border-inline-end:none !important;border-radius:0rem}.form-control:-moz-read-only{box-shadow:none !important;outline:none !important;border-color:var(--theme-input--border-color);cursor:default !important}.form-control:read-only,.form-control[readonly],.form-control[readOnly],.form-control.readonly{box-shadow:none !important;outline:none !important;border-color:var(--theme-input--border-color);cursor:default !important}.form-control:read-only::-moz-placeholder,.form-control[readonly]::-moz-placeholder,.form-control[readOnly]::-moz-placeholder,.form-control.readonly::-moz-placeholder{color:transparent}.form-control:-moz-read-only::placeholder{color:transparent}.form-control:read-only::placeholder,.form-control[readonly]::placeholder,.form-control[readOnly]::placeholder,.form-control.readonly::placeholder{color:transparent}.form-control:disabled,.form-control.disabled{background:transparent !important;border-block-start:none !important;border-inline-start:none !important;border-inline-end:none !important;border-radius:0rem;color:var(--theme-color-weak-text);border-color:var(--theme-input--border-color-bottom--disabled)}.form-control:disabled::-moz-placeholder,.form-control.disabled::-moz-placeholder{color:transparent}.form-control:disabled::placeholder,.form-control.disabled::placeholder{color:transparent}.form-control-plaintext{outline:0}.form-group{position:relative}.input-wrapper{display:flex;position:relative;align-items:center;flex-wrap:nowrap}.input-wrapper>.glyph{display:block;position:absolute;margin-inline-start:0.312rem;color:var(--theme-color-std-text)}.input-wrapper>input{padding-inline-start:2.2rem}select.form-control{padding:0 0.312rem}textarea.form-control{padding:0.375rem 0.5rem}input.disabled,input:disabled{color:var(--theme-input--color--disabled)}input:-moz-read-only{cursor:default}input:read-only,input.readonly{cursor:default}:host{display:inline-flex;width:auto;height:2rem;align-items:center;justify-content:space-between;position:relative;}: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 .input-container{transition:all var(--theme-medium-time) ease-in-out}:host input{box-shadow:var(--theme-input--box-shadow);cursor:auto !important;width:100%}:host .expanded{width:11.5625rem}:host .expanded.fullWidth{width:100%}:host .collapsed{width:1.5rem;border:none}:host .btn-search-icon{align-self:center;margin:auto;position:relative}:host .btn-search{display:flex;max-width:2rem;max-height:2rem;border-radius:var(--theme-input--border-radius);transition:all var(--theme-default-time) ease-in-out;z-index:1;align-items:center;position:relative;border:none}:host .btn-search:not(.disabled):not(:disabled){cursor:pointer}:host .btn-search:not(.disabled):not(:disabled):hover{border-color:transparent}:host .btn-search:not(.disabled):not(:disabled){cursor:pointer}:host .btn-search:not(.disabled):not(:disabled):active,:host .btn-search:not(.disabled):not(:disabled).active{border-color:transparent}:host .btn-search:not(.disabled):not(:disabled):focus-visible{outline:none}:host .btn-search:not(.disabled):not(:disabled):focus-visible{outline:var(--focus--border-color);outline-width:1px;outline-style:solid}:host .btn-search.btn-search--expanded{margin-left:0.25rem;pointer-events:none}:host .btn-search:active{width:2rem;height:2rem;border-radius:var(--theme-input--border-radius);border:var(--theme-std-bdr-1) !important}:host .input-container{display:flex;position:absolute;align-items:center;flex-wrap:nowrap}:host .btn-clear{position:absolute;border-radius:var(--theme-input--border-radius);right:0px;margin-right:0.25rem}:host .input{padding-left:2rem !important;padding-right:2.5rem !important}:host .opacity-before{opacity:0}:host .opacity-after{opacity:1}:host(.right-position){width:11.5625rem !important}:host(.right-position.fullWidth){width:100% !important}:host(.right-position.fullWidth) .fullWidth{width:100% !important}";const a=n;const i=class{expandInput(){setTimeout(this.focusTextInput,300);this.expanded=true}collapseInput(){if(!this.isFieldChanged&&this.expanded){this.expanded=false}}clearInput(){this.value="";this.isFieldChanged=false}onChange(o){this.value=o.target.value;if(this.isFieldChanged&&this.value===""){this.isFieldChanged=false}else{this.isFieldChanged=true}this.valueChange.emit(this.value)}constructor(r){o(this,r);this.valueChange=t(this,"valueChange",7);this.icon="search";this.placeholder="Enter text here";this.value="";this.fullWidth=false;this.isFieldChanged=false;this.expanded=false;this.hasFocus=false;this.focusTextInput=this.focusTextInput.bind(this)}focusTextInput(){var o;(o=this.textInput)===null||o===void 0?void 0:o.focus()}clearClicked(){var o;this.clearInput();(o=this.textInput)===null||o===void 0?void 0:o.focus();this.valueChange.emit(this.value)}render(){return r(e,{key:"a95e8e89feb4d738194ac5d709ed0e41a06870d0",class:{expanded:this.expanded,"right-position":this.expanded,fullWidth:this.fullWidth}},r("ix-icon-button",{key:"e8640b3f3362adca9b820190a47a91a66cd634e6",size:this.expanded?"16":"24",icon:this.icon,ghost:true,variant:"primary","data-testid":"button",onClick:()=>this.expandInput(),tabindex:this.expanded?-1:0,color:this.hasFocus?"input-search-icon--color--focus":undefined,class:{"btn-search":true,"btn-search--expanded":this.expanded}}),r("div",{key:"5cfe2e19c1e9ffc2e061b530aeb8801c3f52b6aa",class:{expanded:this.expanded,fullWidth:this.fullWidth,collapsed:!this.expanded,"disable-pointer":!this.expanded,"input-container":true},"data-testid":"input-wrapper"},r("input",{key:"ed0e943c5fc6860a0687f4ea950642146be5623f",class:{"form-control":true,input:this.expanded,"disable-pointer":!this.expanded,"opacity-before":!this.expanded,"opacity-after":this.expanded},ref:o=>this.textInput=o,"data-testid":"input",placeholder:this.placeholder,type:"text",value:this.value,onBlur:()=>{this.collapseInput();this.hasFocus=false},onFocus:()=>this.hasFocus=true,onInput:o=>this.onChange(o),tabindex:this.expanded?0:-1}),this.isFieldChanged?r("ix-icon-button",{class:"btn-clear",icon:"clear",ghost:true,size:"16","data-testid":"clear-button",onClick:()=>this.clearClicked()}):null))}};i.style=a;export{i as ix_expanding_search};
2
- //# sourceMappingURL=p-e7ac5657.entry.js.map
1
+ import{r as o,c as t,h as r,H as e}from"./p-5806df2b.js";const n=".form-control,.form-control-plaintext{-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);color:var(--theme-input--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--theme-input--border-radius);height:2rem;min-height:2rem;min-width:2rem;background-color:var(--theme-input--background);border:solid 1px var(--theme-input--border-color);box-shadow:var(--theme-input--box-shadow);padding-inline-start:0.5rem;padding-inline-end:0.5rem}.form-control::-moz-placeholder,.form-control-plaintext::-moz-placeholder{color:var(--theme-input-hint--color)}.form-control::placeholder,.form-control-plaintext::placeholder{color:var(--theme-input-hint--color)}.form-control:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled),.form-control-plaintext:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled){cursor:pointer}.form-control:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled),.form-control-plaintext:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled){cursor:pointer}.form-control:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover,.form-control-plaintext:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover{background-color:var(--theme-input--background--hover);border-color:var(--theme-input--border-color--hover);cursor:auto}.form-control:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover,.form-control-plaintext:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):hover{background-color:var(--theme-input--background--hover);border-color:var(--theme-input--border-color--hover);cursor:auto}.form-control:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible,.form-control-plaintext:not(:-moz-read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible{background-color:var(--theme-input--background--focus);border-color:var(--theme-input--border-color--focus);outline-offset:var(--theme-input--focus--outline-offset);box-shadow:var(--theme-input--box-shadow);outline:1px solid var(--theme-color-focus-bdr)}.form-control:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible,.form-control-plaintext:not(:read-only):not([readonly]):not([readOnly]):not(.readonly):not(.disabled):not(:disabled):focus-visible{background-color:var(--theme-input--background--focus);border-color:var(--theme-input--border-color--focus);outline-offset:var(--theme-input--focus--outline-offset);box-shadow:var(--theme-input--box-shadow);outline:1px solid var(--theme-color-focus-bdr)}.form-control:focus-visible{color:var(--theme-input--color)}.form-control[type=number]{text-align:right}.form-control[type=number]::-webkit-inner-spin-button{margin-right:-2px;margin-left:2px;display:none}.form-control.readonly,.form-control[readonly]{background:transparent !important;border-block-start:none !important;border-inline-start:none !important;border-inline-end:none !important;border-radius:0rem}.form-control:-moz-read-only{box-shadow:none !important;outline:none !important;border-color:var(--theme-input--border-color);cursor:default !important}.form-control:read-only,.form-control[readonly],.form-control[readOnly],.form-control.readonly{box-shadow:none !important;outline:none !important;border-color:var(--theme-input--border-color);cursor:default !important}.form-control:read-only::-moz-placeholder,.form-control[readonly]::-moz-placeholder,.form-control[readOnly]::-moz-placeholder,.form-control.readonly::-moz-placeholder{color:transparent}.form-control:-moz-read-only::placeholder{color:transparent}.form-control:read-only::placeholder,.form-control[readonly]::placeholder,.form-control[readOnly]::placeholder,.form-control.readonly::placeholder{color:transparent}.form-control:disabled,.form-control.disabled{background:transparent !important;border-block-start:none !important;border-inline-start:none !important;border-inline-end:none !important;border-radius:0rem;color:var(--theme-color-weak-text);border-color:var(--theme-input--border-color-bottom--disabled)}.form-control:disabled::-moz-placeholder,.form-control.disabled::-moz-placeholder{color:transparent}.form-control:disabled::placeholder,.form-control.disabled::placeholder{color:transparent}.form-control-plaintext{outline:0}.form-group{position:relative}.input-wrapper{display:flex;position:relative;align-items:center;flex-wrap:nowrap}.input-wrapper>.glyph{display:block;position:absolute;margin-inline-start:0.312rem;color:var(--theme-color-std-text)}.input-wrapper>input{padding-inline-start:2.2rem}select.form-control{padding:0 0.312rem}textarea.form-control{padding:0.375rem 0.5rem}input.disabled,input:disabled{color:var(--theme-input--color--disabled)}input:-moz-read-only{cursor:default}input:read-only,input.readonly{cursor:default}:host{display:inline-flex;width:auto;height:2rem;align-items:center;justify-content:space-between;position:relative;}: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 .input-container{transition:all var(--theme-medium-time) ease-in-out}:host input{box-shadow:var(--theme-input--box-shadow);cursor:auto !important;width:100%}:host .expanded{width:11.5625rem}:host .expanded.fullWidth{width:100%}:host .collapsed{width:1.5rem;border:none}:host .btn-search-icon{align-self:center;margin:auto;position:relative}:host .btn-search{display:flex;max-width:2rem;max-height:2rem;border-radius:var(--theme-input--border-radius);transition:all var(--theme-default-time) ease-in-out;z-index:1;align-items:center;position:relative;border:none}:host .btn-search:not(.disabled):not(:disabled){cursor:pointer}:host .btn-search:not(.disabled):not(:disabled):hover{border-color:transparent}:host .btn-search:not(.disabled):not(:disabled){cursor:pointer}:host .btn-search:not(.disabled):not(:disabled):active,:host .btn-search:not(.disabled):not(:disabled).active{border-color:transparent}:host .btn-search:not(.disabled):not(:disabled):focus-visible{outline:none}:host .btn-search:not(.disabled):not(:disabled):focus-visible{outline:var(--focus--border-color);outline-width:1px;outline-style:solid}:host .btn-search.btn-search--expanded{margin-left:0.25rem;pointer-events:none}:host .btn-search:active{width:2rem;height:2rem;border-radius:var(--theme-input--border-radius);border:var(--theme-std-bdr-1) !important}:host .input-container{display:flex;position:absolute;align-items:center;flex-wrap:nowrap}:host .btn-clear{position:absolute;border-radius:var(--theme-input--border-radius);right:0px;margin-right:0.25rem}:host .input{padding-left:2rem !important;padding-right:2.5rem !important}:host .opacity-before{opacity:0}:host .opacity-after{opacity:1}:host(.right-position){width:11.5625rem !important}:host(.right-position.fullWidth){width:100% !important}:host(.right-position.fullWidth) .fullWidth{width:100% !important}";const a=n;const i=class{expandInput(){setTimeout(this.focusTextInput,300);this.expanded=true}collapseInput(){if(!this.isFieldChanged&&this.expanded){this.expanded=false}}clearInput(){this.value="";this.isFieldChanged=false}onChange(o){this.value=o.target.value;if(this.isFieldChanged&&this.value===""){this.isFieldChanged=false}else{this.isFieldChanged=true}this.valueChange.emit(this.value)}constructor(r){o(this,r);this.valueChange=t(this,"valueChange",7);this.icon="search";this.placeholder="Enter text here";this.value="";this.fullWidth=false;this.variant="primary";this.outline=false;this.ghost=true;this.isFieldChanged=false;this.expanded=false;this.hasFocus=false;this.focusTextInput=this.focusTextInput.bind(this)}focusTextInput(){var o;(o=this.textInput)===null||o===void 0?void 0:o.focus()}clearClicked(){var o;this.clearInput();(o=this.textInput)===null||o===void 0?void 0:o.focus();this.valueChange.emit(this.value)}render(){return r(e,{key:"f1981aaa35a3437b84b131f32ba2c5e5c29e363d",class:{expanded:this.expanded,"right-position":this.expanded,fullWidth:this.fullWidth}},r("ix-icon-button",{key:"e9dab8436d9e74ed8c4e434c689e6b59af4fdf29",size:this.expanded?"16":"24",icon:this.icon,variant:this.expanded?"primary":this.variant,ghost:this.ghost||this.expanded,outline:this.outline&&!this.expanded,"data-testid":"button",onClick:()=>this.expandInput(),tabindex:this.expanded?-1:0,color:this.hasFocus?"input-search-icon--color--focus":undefined,class:{"btn-search":true,"btn-search--expanded":this.expanded}}),r("div",{key:"e5c9c707728595451c33efbdce5973884bfdf81e",class:{expanded:this.expanded,fullWidth:this.fullWidth,collapsed:!this.expanded,"disable-pointer":!this.expanded,"input-container":true},"data-testid":"input-wrapper"},r("input",{key:"93edc9d89807125a7de4ed7d40eaa7945534fd6a",class:{"form-control":true,input:this.expanded,"disable-pointer":!this.expanded,"opacity-before":!this.expanded,"opacity-after":this.expanded},ref:o=>this.textInput=o,"data-testid":"input",placeholder:this.placeholder,type:"text",value:this.value,onBlur:()=>{this.collapseInput();this.hasFocus=false},onFocus:()=>this.hasFocus=true,onInput:o=>this.onChange(o),tabindex:this.expanded?0:-1}),this.isFieldChanged?r("ix-icon-button",{class:"btn-clear",icon:"clear",ghost:true,size:"16","data-testid":"clear-button",onClick:()=>this.clearClicked()}):null))}};i.style=a;export{i as ix_expanding_search};
2
+ //# sourceMappingURL=p-7e91e565.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["expandingSearchCss","IxExpandingSearchStyle0","ExpandingSearch","expandInput","setTimeout","this","focusTextInput","expanded","collapseInput","isFieldChanged","clearInput","value","onChange","e","target","valueChange","emit","constructor","hostRef","bind","_a","textInput","focus","clearClicked","render","h","Host","key","class","fullWidth","size","icon","variant","ghost","outline","onClick","tabindex","color","hasFocus","undefined","collapsed","input","ref","el","placeholder","type","onBlur","onFocus","onInput"],"sources":["src/components/expanding-search/expanding-search.scss?tag=ix-expanding-search&encapsulation=shadow","src/components/expanding-search/expanding-search.tsx"],"sourcesContent":["/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n@import 'common-variables';\n@import 'legacy/components/forms';\n@import 'mixins/shadow-dom/component';\n@import 'mixins/hover';\n@import 'mixins/text-truncation';\n\n$container-width: 11.5625rem;\n\n:host {\n @include ix-component;\n\n display: inline-flex;\n width: auto;\n height: $x-large-space;\n align-items: center;\n justify-content: space-between;\n position: relative;\n\n .input-container {\n transition: all var(--theme-medium-time) ease-in-out;\n }\n\n input {\n box-shadow: var(--theme-input--box-shadow);\n cursor: auto !important;\n width: 100%;\n }\n\n .expanded {\n width: $container-width;\n\n &.fullWidth {\n width: 100%;\n }\n }\n\n .collapsed {\n width: $large-space;\n border: none;\n }\n\n /*collapsed view*/\n .btn-search-icon {\n align-self: center;\n margin: auto;\n position: relative;\n }\n\n .btn-search {\n display: flex;\n max-width: $x-large-space;\n max-height: $x-large-space;\n border-radius: var(--theme-input--border-radius);\n transition: all var(--theme-default-time) ease-in-out;\n z-index: 1;\n align-items: center;\n position: relative;\n border: none;\n\n @include hover {\n border-color: transparent;\n }\n\n @include active {\n border-color: transparent;\n }\n\n @include focus {\n outline: none;\n }\n\n @include focus-visible {\n outline: var(--focus--border-color);\n outline-width: 1px;\n outline-style: solid;\n }\n }\n\n .btn-search.btn-search--expanded {\n margin-left: 0.25rem;\n pointer-events: none;\n }\n\n .btn-search:active {\n width: $x-large-space;\n height: $x-large-space;\n border-radius: var(--theme-input--border-radius);\n border: var(--theme-std-bdr-1) !important;\n }\n\n /*expanded view*/\n .input-container {\n display: flex;\n position: absolute;\n align-items: center;\n flex-wrap: nowrap;\n }\n\n .btn-clear {\n position: absolute;\n border-radius: var(--theme-input--border-radius);\n right: 0px;\n margin-right: 0.25rem;\n }\n\n .input {\n padding-left: $x-large-space !important;\n padding-right: 2.5rem !important;\n }\n\n .opacity-before {\n opacity: 0;\n }\n\n .opacity-after {\n opacity: 1;\n }\n}\n\n:host(.right-position) {\n width: $container-width !important;\n}\n\n:host(.right-position.fullWidth) {\n width: 100% !important;\n\n .fullWidth {\n width: 100% !important;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { ButtonVariant } from '../button/button';\nimport { IxButtonComponent } from '../button/button-component';\n\n@Component({\n tag: 'ix-expanding-search',\n styleUrl: 'expanding-search.scss',\n shadow: true,\n})\nexport class ExpandingSearch\n implements Omit<IxButtonComponent, 'type' | 'icon' | 'disabled' | 'loading'>\n{\n /**\n * Search icon\n */\n @Prop() icon = 'search';\n\n /**\n * Placeholder text\n */\n @Prop() placeholder = 'Enter text here';\n\n /**\n * Default value\n */\n @Prop({ mutable: true }) value = '';\n\n /**\n * If true the search field will fill all available horizontal space of it's parent container when expanded.\n * @since 1.6.0\n */\n @Prop() fullWidth = false;\n\n /**\n * button variant\n */\n @Prop() variant: ButtonVariant = 'primary';\n\n /**\n * Outline button\n */\n @Prop() outline = false;\n\n /**\n * Button with no background or outline\n */\n @Prop() ghost = true;\n\n @State() isFieldChanged = false;\n @State() expanded = false;\n @State() hasFocus = false;\n\n /**\n * Value changed\n */\n @Event() valueChange!: EventEmitter<string>;\n\n private expandInput() {\n setTimeout(this.focusTextInput, 300);\n this.expanded = true;\n }\n\n private collapseInput() {\n if (!this.isFieldChanged && this.expanded) {\n this.expanded = false;\n }\n }\n\n private clearInput() {\n this.value = '';\n this.isFieldChanged = false;\n }\n\n private onChange(e: InputEvent) {\n this.value = (e.target as HTMLInputElement).value;\n if (this.isFieldChanged && this.value === '') {\n this.isFieldChanged = false;\n } else {\n this.isFieldChanged = true;\n }\n\n this.valueChange.emit(this.value);\n }\n\n private textInput?: HTMLInputElement;\n\n constructor() {\n this.focusTextInput = this.focusTextInput.bind(this);\n }\n\n private focusTextInput() {\n this.textInput?.focus();\n }\n\n private clearClicked() {\n this.clearInput();\n this.textInput?.focus();\n this.valueChange.emit(this.value);\n }\n\n render() {\n return (\n <Host\n class={{\n expanded: this.expanded,\n 'right-position': this.expanded,\n fullWidth: this.fullWidth,\n }}\n >\n <ix-icon-button\n size={this.expanded ? '16' : '24'}\n icon={this.icon}\n variant={this.expanded ? 'primary' : this.variant}\n ghost={this.ghost || this.expanded}\n outline={this.outline && !this.expanded}\n data-testid=\"button\"\n onClick={() => this.expandInput()}\n tabindex={this.expanded ? -1 : 0}\n color={this.hasFocus ? 'input-search-icon--color--focus' : undefined}\n class={{\n 'btn-search': true,\n 'btn-search--expanded': this.expanded,\n }}\n ></ix-icon-button>\n\n <div\n class={{\n expanded: this.expanded,\n fullWidth: this.fullWidth,\n collapsed: !this.expanded,\n 'disable-pointer': !this.expanded,\n 'input-container': true,\n }}\n data-testid=\"input-wrapper\"\n >\n <input\n class={{\n 'form-control': true,\n input: this.expanded,\n 'disable-pointer': !this.expanded,\n 'opacity-before': !this.expanded,\n 'opacity-after': this.expanded,\n }}\n ref={(el) => (this.textInput = el)}\n data-testid=\"input\"\n placeholder={this.placeholder}\n type=\"text\"\n value={this.value}\n onBlur={() => {\n this.collapseInput();\n this.hasFocus = false;\n }}\n onFocus={() => (this.hasFocus = true)}\n onInput={(e: InputEvent) => this.onChange(e)}\n tabindex={this.expanded ? 0 : -1}\n />\n\n {this.isFieldChanged ? (\n <ix-icon-button\n class=\"btn-clear\"\n icon={'clear'}\n ghost={true}\n size=\"16\"\n data-testid=\"clear-button\"\n onClick={() => this.clearClicked()}\n />\n ) : null}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAqB,20PAC3B,MAAAC,EAAeD,E,MCyBFE,EAAe,MAgDlB,WAAAC,GACNC,WAAWC,KAAKC,eAAgB,KAChCD,KAAKE,SAAW,I,CAGV,aAAAC,GACN,IAAKH,KAAKI,gBAAkBJ,KAAKE,SAAU,CACzCF,KAAKE,SAAW,K,EAIZ,UAAAG,GACNL,KAAKM,MAAQ,GACbN,KAAKI,eAAiB,K,CAGhB,QAAAG,CAASC,GACfR,KAAKM,MAASE,EAAEC,OAA4BH,MAC5C,GAAIN,KAAKI,gBAAkBJ,KAAKM,QAAU,GAAI,CAC5CN,KAAKI,eAAiB,K,KACjB,CACLJ,KAAKI,eAAiB,I,CAGxBJ,KAAKU,YAAYC,KAAKX,KAAKM,M,CAK7B,WAAAM,CAAAC,G,6DAvEe,S,iBAKO,kB,WAKW,G,eAMb,M,aAKa,U,aAKf,M,WAKF,K,oBAEU,M,cACN,M,cACA,MAqClBb,KAAKC,eAAiBD,KAAKC,eAAea,KAAKd,K,CAGzC,cAAAC,G,OACNc,EAAAf,KAAKgB,aAAS,MAAAD,SAAA,SAAAA,EAAEE,O,CAGV,YAAAC,G,MACNlB,KAAKK,cACLU,EAAAf,KAAKgB,aAAS,MAAAD,SAAA,SAAAA,EAAEE,QAChBjB,KAAKU,YAAYC,KAAKX,KAAKM,M,CAG7B,MAAAa,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAO,CACLrB,SAAUF,KAAKE,SACf,iBAAkBF,KAAKE,SACvBsB,UAAWxB,KAAKwB,YAGlBJ,EAAA,kBAAAE,IAAA,2CACEG,KAAMzB,KAAKE,SAAW,KAAO,KAC7BwB,KAAM1B,KAAK0B,KACXC,QAAS3B,KAAKE,SAAW,UAAYF,KAAK2B,QAC1CC,MAAO5B,KAAK4B,OAAS5B,KAAKE,SAC1B2B,QAAS7B,KAAK6B,UAAY7B,KAAKE,SAAQ,cAC3B,SACZ4B,QAAS,IAAM9B,KAAKF,cACpBiC,SAAU/B,KAAKE,UAAY,EAAI,EAC/B8B,MAAOhC,KAAKiC,SAAW,kCAAoCC,UAC3DX,MAAO,CACL,aAAc,KACd,uBAAwBvB,KAAKE,YAIjCkB,EAAA,OAAAE,IAAA,2CACEC,MAAO,CACLrB,SAAUF,KAAKE,SACfsB,UAAWxB,KAAKwB,UAChBW,WAAYnC,KAAKE,SACjB,mBAAoBF,KAAKE,SACzB,kBAAmB,MACpB,cACW,iBAEZkB,EAAA,SAAAE,IAAA,2CACEC,MAAO,CACL,eAAgB,KAChBa,MAAOpC,KAAKE,SACZ,mBAAoBF,KAAKE,SACzB,kBAAmBF,KAAKE,SACxB,gBAAiBF,KAAKE,UAExBmC,IAAMC,GAAQtC,KAAKgB,UAAYsB,EAAG,cACtB,QACZC,YAAavC,KAAKuC,YAClBC,KAAK,OACLlC,MAAON,KAAKM,MACZmC,OAAQ,KACNzC,KAAKG,gBACLH,KAAKiC,SAAW,KAAK,EAEvBS,QAAS,IAAO1C,KAAKiC,SAAW,KAChCU,QAAUnC,GAAkBR,KAAKO,SAASC,GAC1CuB,SAAU/B,KAAKE,SAAW,GAAK,IAGhCF,KAAKI,eACJgB,EAAA,kBACEG,MAAM,YACNG,KAAM,QACNE,MAAO,KACPH,KAAK,KAAI,cACG,eACZK,QAAS,IAAM9B,KAAKkB,iBAEpB,M"}