@siemens/ix 2.3.0 → 2.4.1

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 (738) hide show
  1. package/components/application-header.js +17 -11
  2. package/components/application-header.js.map +1 -1
  3. package/components/avatar.js +1 -1
  4. package/components/avatar.js.map +1 -1
  5. package/components/card-content.js +1 -1
  6. package/components/card-title.js +1 -1
  7. package/components/date-picker.js +4 -4
  8. package/components/date-time-card.js +1 -1
  9. package/components/divider.js +1 -1
  10. package/components/dropdown-item.js +3 -3
  11. package/components/dropdown.js +13 -6
  12. package/components/dropdown.js.map +1 -1
  13. package/components/filter-chip.js +1 -1
  14. package/components/group-context-menu.js +1 -1
  15. package/components/group-item.js +4 -8
  16. package/components/group-item.js.map +1 -1
  17. package/components/icon-button.js +1 -1
  18. package/components/ix-application-sidebar.js +1 -1
  19. package/components/ix-application-switch-modal.js +1 -1
  20. package/components/ix-application-switch-modal.js.map +1 -1
  21. package/components/ix-application.js +3 -3
  22. package/components/ix-basic-navigation.js +18 -12
  23. package/components/ix-basic-navigation.js.map +1 -1
  24. package/components/ix-breadcrumb.js +2 -2
  25. package/components/ix-card-list.js +4 -4
  26. package/components/ix-category-filter.js +3 -3
  27. package/components/ix-chip.js +4 -4
  28. package/components/ix-content.js +3 -3
  29. package/components/ix-css-grid-item.js +1 -1
  30. package/components/ix-date-dropdown.js +3 -3
  31. package/components/ix-date-dropdown.js.map +1 -1
  32. package/components/ix-datetime-picker.js +1 -1
  33. package/components/ix-drawer.js +2 -2
  34. package/components/ix-dropdown-button.js +2 -2
  35. package/components/ix-dropdown-header.js +1 -1
  36. package/components/ix-dropdown-quick-actions.js +1 -1
  37. package/components/ix-empty-state.js +1 -1
  38. package/components/ix-empty-state.js.map +1 -1
  39. package/components/ix-event-list-item.js +4 -4
  40. package/components/ix-event-list-item.js.map +1 -1
  41. package/components/ix-event-list.js +2 -2
  42. package/components/ix-expanding-search.js +4 -4
  43. package/components/ix-flip-tile-content.js +1 -1
  44. package/components/ix-flip-tile.js +4 -4
  45. package/components/ix-form-field.js +1 -1
  46. package/components/ix-group.js +29 -24
  47. package/components/ix-group.js.map +1 -1
  48. package/components/ix-icon-toggle-button.js +1 -1
  49. package/components/ix-input-group.js +1 -1
  50. package/components/ix-key-value-list.js +1 -1
  51. package/components/ix-key-value.js +1 -1
  52. package/components/ix-key-value.js.map +1 -1
  53. package/components/ix-kpi.js +3 -3
  54. package/components/ix-link-button.js +3 -3
  55. package/components/ix-map-navigation.js +20 -14
  56. package/components/ix-map-navigation.js.map +1 -1
  57. package/components/ix-menu-about-item.js +1 -1
  58. package/components/ix-menu-about-news.js +4 -4
  59. package/components/ix-menu-about.js +1 -1
  60. package/components/ix-menu-avatar.js +2 -2
  61. package/components/ix-menu-category.js +5 -5
  62. package/components/ix-menu-settings-item.js +1 -1
  63. package/components/ix-menu.js +11 -11
  64. package/components/ix-menu.js.map +1 -1
  65. package/components/ix-message-bar.js +1 -1
  66. package/components/ix-modal-example.js +1 -1
  67. package/components/ix-modal-footer.js +1 -1
  68. package/components/ix-modal-loading.js +1 -1
  69. package/components/ix-modal.js +3 -3
  70. package/components/ix-pagination.js +3 -3
  71. package/components/ix-pagination.js.map +1 -1
  72. package/components/ix-pane-layout.js +1 -1
  73. package/components/ix-pane.js +6 -6
  74. package/components/ix-pill.js +4 -4
  75. package/components/ix-playground-internal.js +1 -1
  76. package/components/ix-push-card.js +1 -1
  77. package/components/ix-slider.js +20 -13
  78. package/components/ix-slider.js.map +1 -1
  79. package/components/ix-split-button-item.js +1 -1
  80. package/components/ix-split-button.js +1 -1
  81. package/components/ix-tile.js +4 -4
  82. package/components/ix-toast-container.js +2 -2
  83. package/components/ix-toggle-button.js +2 -2
  84. package/components/ix-toggle.js +2 -2
  85. package/components/ix-tree.js +1 -1
  86. package/components/ix-upload.js +3 -3
  87. package/components/ix-validation-tooltip.js +2 -2
  88. package/components/ix-workflow-step.js +3 -3
  89. package/components/ix-workflow-steps.js +1 -1
  90. package/components/layout-grid.js +2 -2
  91. package/components/map-navigation-overlay.js +2 -2
  92. package/components/menu-avatar-item.js +1 -1
  93. package/components/menu-expand-icon.js +1 -1
  94. package/components/menu-item.js +3 -3
  95. package/components/menu-item.js.map +1 -1
  96. package/components/menu-tabs-fc.js +1 -1
  97. package/components/modal-content.js +1 -1
  98. package/components/modal-header.js +1 -1
  99. package/components/row.js +1 -1
  100. package/components/select-item.js +1 -1
  101. package/components/select.js +33 -17
  102. package/components/select.js.map +1 -1
  103. package/components/service.js +2 -2
  104. package/components/service.js.map +1 -1
  105. package/components/spinner.js +1 -1
  106. package/components/tab-item.js +3 -3
  107. package/components/tab-item.js.map +1 -1
  108. package/components/tabs.js +77 -43
  109. package/components/tabs.js.map +1 -1
  110. package/components/time-picker.js +3 -3
  111. package/components/toast.js +2 -2
  112. package/components/tooltip.js +4 -4
  113. package/components/tooltip.js.map +1 -1
  114. package/components/tree-item.js +4 -4
  115. package/dist/cjs/{base-button-bf6a6f0c.js → base-button-3735b8c2.js} +2 -2
  116. package/dist/cjs/{base-button-bf6a6f0c.js.map → base-button-3735b8c2.js.map} +1 -1
  117. package/dist/cjs/{base-icon-button-e95a232c.js → base-icon-button-44c72bc8.js} +3 -3
  118. package/dist/cjs/{base-icon-button-e95a232c.js.map → base-icon-button-44c72bc8.js.map} +1 -1
  119. package/dist/cjs/index-529f21c1.js +2122 -0
  120. package/dist/cjs/index-529f21c1.js.map +1 -0
  121. package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
  122. package/dist/cjs/ix-application-header.cjs.entry.js +5 -5
  123. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  124. package/dist/cjs/ix-application-sidebar.cjs.entry.js +2 -2
  125. package/dist/cjs/ix-application-switch-modal.cjs.entry.js +2 -2
  126. package/dist/cjs/ix-application-switch-modal.cjs.entry.js.map +1 -1
  127. package/dist/cjs/ix-application.cjs.entry.js +5 -5
  128. package/dist/cjs/ix-avatar_2.cjs.entry.js +4 -4
  129. package/dist/cjs/ix-avatar_2.cjs.entry.js.map +1 -1
  130. package/dist/cjs/ix-basic-navigation.cjs.entry.js +4 -4
  131. package/dist/cjs/ix-blind.cjs.entry.js +1 -1
  132. package/dist/cjs/ix-breadcrumb-item.cjs.entry.js +2 -2
  133. package/dist/cjs/ix-breadcrumb.cjs.entry.js +3 -3
  134. package/dist/cjs/ix-button.cjs.entry.js +2 -2
  135. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +2 -2
  136. package/dist/cjs/ix-card-list.cjs.entry.js +5 -5
  137. package/dist/cjs/ix-card_2.cjs.entry.js +2 -2
  138. package/dist/cjs/ix-category-filter.cjs.entry.js +5 -5
  139. package/dist/cjs/ix-chip.cjs.entry.js +5 -5
  140. package/dist/cjs/ix-col_4.cjs.entry.js +9 -9
  141. package/dist/cjs/ix-content-header.cjs.entry.js +1 -1
  142. package/dist/cjs/ix-content.cjs.entry.js +4 -4
  143. package/dist/cjs/ix-css-grid-item.cjs.entry.js +2 -2
  144. package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
  145. package/dist/cjs/ix-date-dropdown.cjs.entry.js +4 -4
  146. package/dist/cjs/ix-date-dropdown.cjs.entry.js.map +1 -1
  147. package/dist/cjs/ix-date-time-card.cjs.entry.js +2 -2
  148. package/dist/cjs/ix-datetime-picker.cjs.entry.js +2 -2
  149. package/dist/cjs/ix-divider.cjs.entry.js +2 -2
  150. package/dist/cjs/ix-drawer.cjs.entry.js +3 -3
  151. package/dist/cjs/ix-dropdown-button.cjs.entry.js +3 -3
  152. package/dist/cjs/ix-dropdown-header.cjs.entry.js +2 -2
  153. package/dist/cjs/ix-dropdown-item.cjs.entry.js +4 -4
  154. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +2 -2
  155. package/dist/cjs/ix-dropdown.cjs.entry.js +14 -7
  156. package/dist/cjs/ix-dropdown.cjs.entry.js.map +1 -1
  157. package/dist/cjs/ix-empty-state.cjs.entry.js +2 -2
  158. package/dist/cjs/ix-empty-state.cjs.entry.js.map +1 -1
  159. package/dist/cjs/ix-event-list-item.cjs.entry.js +5 -5
  160. package/dist/cjs/ix-event-list-item.cjs.entry.js.map +1 -1
  161. package/dist/cjs/ix-event-list.cjs.entry.js +3 -3
  162. package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -5
  163. package/dist/cjs/ix-filter-chip_2.cjs.entry.js +3 -3
  164. package/dist/cjs/ix-flip-tile-content.cjs.entry.js +2 -2
  165. package/dist/cjs/ix-flip-tile.cjs.entry.js +5 -5
  166. package/dist/cjs/ix-form-field.cjs.entry.js +2 -2
  167. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js +6 -10
  168. package/dist/cjs/ix-group-context-menu_2.cjs.entry.js.map +1 -1
  169. package/dist/cjs/ix-group.cjs.entry.js +30 -24
  170. package/dist/cjs/ix-group.cjs.entry.js.map +1 -1
  171. package/dist/cjs/ix-icon-button_2.cjs.entry.js +5 -5
  172. package/dist/cjs/ix-icon-toggle-button.cjs.entry.js +4 -4
  173. package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
  174. package/dist/cjs/ix-key-value-list.cjs.entry.js +2 -2
  175. package/dist/cjs/ix-key-value.cjs.entry.js +2 -2
  176. package/dist/cjs/ix-key-value.cjs.entry.js.map +1 -1
  177. package/dist/cjs/ix-kpi.cjs.entry.js +4 -4
  178. package/dist/cjs/ix-link-button.cjs.entry.js +4 -4
  179. package/dist/cjs/ix-map-navigation-overlay.cjs.entry.js +3 -3
  180. package/dist/cjs/ix-map-navigation.cjs.entry.js +3 -3
  181. package/dist/cjs/ix-menu-about-item.cjs.entry.js +2 -2
  182. package/dist/cjs/ix-menu-about-news.cjs.entry.js +5 -5
  183. package/dist/cjs/ix-menu-about.cjs.entry.js +3 -3
  184. package/dist/cjs/ix-menu-avatar.cjs.entry.js +3 -3
  185. package/dist/cjs/ix-menu-category.cjs.entry.js +6 -6
  186. package/dist/cjs/ix-menu-expand-icon.cjs.entry.js +3 -3
  187. package/dist/cjs/ix-menu-item.cjs.entry.js +4 -4
  188. package/dist/cjs/ix-menu-item.cjs.entry.js.map +1 -1
  189. package/dist/cjs/ix-menu-settings-item.cjs.entry.js +2 -2
  190. package/dist/cjs/ix-menu-settings.cjs.entry.js +2 -2
  191. package/dist/cjs/ix-menu.cjs.entry.js +13 -13
  192. package/dist/cjs/ix-menu.cjs.entry.js.map +1 -1
  193. package/dist/cjs/ix-message-bar.cjs.entry.js +2 -2
  194. package/dist/cjs/ix-modal-content_2.cjs.entry.js +3 -3
  195. package/dist/cjs/ix-modal-example.cjs.entry.js +2 -2
  196. package/dist/cjs/ix-modal-footer.cjs.entry.js +2 -2
  197. package/dist/cjs/ix-modal-loading.cjs.entry.js +2 -2
  198. package/dist/cjs/ix-modal.cjs.entry.js +5 -5
  199. package/dist/cjs/ix-pagination.cjs.entry.js +5 -5
  200. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  201. package/dist/cjs/ix-pane-layout.cjs.entry.js +3 -3
  202. package/dist/cjs/ix-pane.cjs.entry.js +8 -8
  203. package/dist/cjs/ix-pill.cjs.entry.js +5 -5
  204. package/dist/cjs/ix-playground-internal.cjs.entry.js +2 -2
  205. package/dist/cjs/ix-push-card.cjs.entry.js +2 -2
  206. package/dist/cjs/ix-select.cjs.entry.js +35 -19
  207. package/dist/cjs/ix-select.cjs.entry.js.map +1 -1
  208. package/dist/cjs/ix-slider.cjs.entry.js +22 -15
  209. package/dist/cjs/ix-slider.cjs.entry.js.map +1 -1
  210. package/dist/cjs/ix-split-button-item.cjs.entry.js +2 -2
  211. package/dist/cjs/ix-split-button.cjs.entry.js +2 -2
  212. package/dist/cjs/ix-tab-item_2.cjs.entry.js +75 -45
  213. package/dist/cjs/ix-tab-item_2.cjs.entry.js.map +1 -1
  214. package/dist/cjs/ix-tile.cjs.entry.js +5 -5
  215. package/dist/cjs/ix-time-picker.cjs.entry.js +4 -4
  216. package/dist/cjs/ix-toast-container.cjs.entry.js +3 -3
  217. package/dist/cjs/ix-toast.cjs.entry.js +3 -3
  218. package/dist/cjs/ix-toggle-button.cjs.entry.js +4 -4
  219. package/dist/cjs/ix-toggle.cjs.entry.js +3 -3
  220. package/dist/cjs/ix-tooltip.cjs.entry.js +6 -6
  221. package/dist/cjs/ix-tooltip.cjs.entry.js.map +1 -1
  222. package/dist/cjs/ix-tree-item.cjs.entry.js +5 -5
  223. package/dist/cjs/ix-tree.cjs.entry.js +2 -2
  224. package/dist/cjs/ix-typography.cjs.entry.js +1 -1
  225. package/dist/cjs/ix-upload.cjs.entry.js +4 -4
  226. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +3 -3
  227. package/dist/cjs/ix-workflow-step.cjs.entry.js +4 -4
  228. package/dist/cjs/ix-workflow-steps.cjs.entry.js +2 -2
  229. package/dist/cjs/{listener-86a645ec.js → listener-bc3e7c0c.js} +2 -2
  230. package/dist/cjs/{listener-86a645ec.js.map → listener-bc3e7c0c.js.map} +1 -1
  231. package/dist/cjs/loader.cjs.js +2 -2
  232. package/dist/cjs/{menu-tabs-fc-a06afb9a.js → menu-tabs-fc-df53f176.js} +3 -3
  233. package/dist/cjs/{menu-tabs-fc-a06afb9a.js.map → menu-tabs-fc-df53f176.js.map} +1 -1
  234. package/dist/cjs/{service-a42add5f.js → service-39a8e5fe.js} +3 -3
  235. package/dist/cjs/service-39a8e5fe.js.map +1 -0
  236. package/dist/cjs/siemens-ix.cjs.js +10 -10
  237. package/dist/cjs/siemens-ix.cjs.js.map +1 -1
  238. package/dist/collection/collection-manifest.json +2 -2
  239. package/dist/collection/components/application/application.js +3 -3
  240. package/dist/collection/components/application-header/application-header.js +4 -4
  241. package/dist/collection/components/application-header/application-header.js.map +1 -1
  242. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js +1 -1
  243. package/dist/collection/components/application-header/application-switch-modal/application-switch-modal.js.map +1 -1
  244. package/dist/collection/components/application-sidebar/application-sidebar.js +1 -1
  245. package/dist/collection/components/avatar/avatar.css +42 -0
  246. package/dist/collection/components/basic-navigation/basic-navigation.js +2 -2
  247. package/dist/collection/components/breadcrumb/breadcrumb.js +2 -2
  248. package/dist/collection/components/card-content/card-content.js +1 -1
  249. package/dist/collection/components/card-list/card-list.js +4 -4
  250. package/dist/collection/components/card-title/card-title.js +1 -1
  251. package/dist/collection/components/category-filter/category-filter.js +3 -3
  252. package/dist/collection/components/chip/chip.js +4 -4
  253. package/dist/collection/components/content/content.js +3 -3
  254. package/dist/collection/components/css-grid/css-grid-item.js +1 -1
  255. package/dist/collection/components/date-dropdown/date-dropdown.js +3 -3
  256. package/dist/collection/components/date-dropdown/date-dropdown.js.map +1 -1
  257. package/dist/collection/components/date-picker/date-picker.js +4 -4
  258. package/dist/collection/components/date-time-card/date-time-card.js +1 -1
  259. package/dist/collection/components/datetime-picker/datetime-picker.js +1 -1
  260. package/dist/collection/components/divider/divider.js +1 -1
  261. package/dist/collection/components/drawer/drawer.js +2 -2
  262. package/dist/collection/components/dropdown/dropdown.js +13 -6
  263. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  264. package/dist/collection/components/dropdown-button/dropdown-button.ct.js +28 -0
  265. package/dist/collection/components/dropdown-button/dropdown-button.ct.js.map +1 -1
  266. package/dist/collection/components/dropdown-button/dropdown-button.js +2 -2
  267. package/dist/collection/components/dropdown-header/dropdown-header.js +1 -1
  268. package/dist/collection/components/dropdown-item/dropdown-item.js +3 -3
  269. package/dist/collection/components/dropdown-quick-actions/dropdown-quick-actions.js +1 -1
  270. package/dist/collection/components/empty-state/empty-state.js +1 -1
  271. package/dist/collection/components/empty-state/empty-state.js.map +1 -1
  272. package/dist/collection/components/event-list/event-list.js +2 -2
  273. package/dist/collection/components/event-list-item/event-list-item.js +4 -4
  274. package/dist/collection/components/event-list-item/event-list-item.js.map +1 -1
  275. package/dist/collection/components/expanding-search/expanding-search.js +4 -4
  276. package/dist/collection/components/filter-chip/filter-chip.js +1 -1
  277. package/dist/collection/components/flip-tile/flip-tile.js +4 -4
  278. package/dist/collection/components/flip-tile-content/flip-tile-content.js +1 -1
  279. package/dist/collection/components/form-field/form-field.js +1 -1
  280. package/dist/collection/components/grid/layout-grid.js +2 -2
  281. package/dist/collection/components/group/group-context-menu.js +1 -1
  282. package/dist/collection/components/group/group.js +34 -28
  283. package/dist/collection/components/group/group.js.map +1 -1
  284. package/dist/collection/components/group/test/group.ct.js +39 -1
  285. package/dist/collection/components/group/test/group.ct.js.map +1 -1
  286. package/dist/collection/components/group-item/group-item.css +0 -4
  287. package/dist/collection/components/group-item/group-item.js +9 -12
  288. package/dist/collection/components/group-item/group-item.js.map +1 -1
  289. package/dist/collection/components/icon-button/icon-button.js +1 -1
  290. package/dist/collection/components/icon-toggle-button/icon-toggle-button.js +1 -1
  291. package/dist/collection/components/input-group/input-group.js +1 -1
  292. package/dist/collection/components/key-value/key-value.js +1 -1
  293. package/dist/collection/components/key-value/key-value.js.map +1 -1
  294. package/dist/collection/components/key-value-list/key-value-list.js +1 -1
  295. package/dist/collection/components/kpi/kpi.js +3 -3
  296. package/dist/collection/components/link-button/link-button.js +3 -3
  297. package/dist/collection/components/map-navigation/map-navigation.js +2 -2
  298. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +2 -2
  299. package/dist/collection/components/menu/menu-expand-icon.js +1 -1
  300. package/dist/collection/components/menu/menu.js +11 -11
  301. package/dist/collection/components/menu/menu.js.map +1 -1
  302. package/dist/collection/components/menu-about/menu-about.js +1 -1
  303. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  304. package/dist/collection/components/menu-about-news/menu-about-news.js +4 -4
  305. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -2
  306. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +1 -1
  307. package/dist/collection/components/menu-category/menu-category.js +5 -5
  308. package/dist/collection/components/menu-item/menu-item.js +3 -3
  309. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  310. package/dist/collection/components/menu-settings/menu-settings.js +1 -1
  311. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  312. package/dist/collection/components/message-bar/message-bar.js +1 -1
  313. package/dist/collection/components/modal/modal.js +3 -3
  314. package/dist/collection/components/modal-content/modal-content.js +1 -1
  315. package/dist/collection/components/modal-footer/modal-footer.js +1 -1
  316. package/dist/collection/components/modal-header/modal-header.js +1 -1
  317. package/dist/collection/components/modal-loading/modal-loading.js +1 -1
  318. package/dist/collection/components/pagination/pagination.js +5 -4
  319. package/dist/collection/components/pagination/pagination.js.map +1 -1
  320. package/dist/collection/components/pane/pane.js +6 -6
  321. package/dist/collection/components/pane-layout/pane-layout.js +1 -1
  322. package/dist/collection/components/pill/pill.js +4 -4
  323. package/dist/collection/components/playground/example-modal.js +1 -1
  324. package/dist/collection/components/playground/playground.js +1 -1
  325. package/dist/collection/components/push-card/push-card.js +1 -1
  326. package/dist/collection/components/row/row.js +1 -1
  327. package/dist/collection/components/select/select.js +33 -17
  328. package/dist/collection/components/select/select.js.map +1 -1
  329. package/dist/collection/components/select/test/select.ct.js +107 -36
  330. package/dist/collection/components/select/test/select.ct.js.map +1 -1
  331. package/dist/collection/components/select-item/select-item.js +1 -1
  332. package/dist/collection/components/slider/slider.css +1 -1
  333. package/dist/collection/components/slider/slider.js +23 -15
  334. package/dist/collection/components/slider/slider.js.map +1 -1
  335. package/dist/collection/components/slider/test/slider.ct.js +15 -6
  336. package/dist/collection/components/slider/test/slider.ct.js.map +1 -1
  337. package/dist/collection/components/spinner/spinner.js +1 -1
  338. package/dist/collection/components/split-button/split-button.js +1 -1
  339. package/dist/collection/components/split-button-item/split-button-item.js +1 -1
  340. package/dist/collection/components/tab-item/tab-item.js +5 -5
  341. package/dist/collection/components/tab-item/tab-item.js.map +1 -1
  342. package/dist/collection/components/tabs/tabs.js +77 -42
  343. package/dist/collection/components/tabs/tabs.js.map +1 -1
  344. package/dist/collection/components/tabs/test/tabs.ct.js +35 -9
  345. package/dist/collection/components/tabs/test/tabs.ct.js.map +1 -1
  346. package/dist/collection/components/tile/tile.js +4 -4
  347. package/dist/collection/components/time-picker/time-picker.js +3 -3
  348. package/dist/collection/components/toast/toast-container.js +2 -2
  349. package/dist/collection/components/toast/toast.js +2 -2
  350. package/dist/collection/components/toggle/toggle.js +2 -2
  351. package/dist/collection/components/toggle-button/toggle-button.js +2 -2
  352. package/dist/collection/components/tooltip/tooltip.js +13 -8
  353. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  354. package/dist/collection/components/tree/tree.js +1 -1
  355. package/dist/collection/components/tree-item/tree-item.js +4 -4
  356. package/dist/collection/components/upload/upload.js +3 -3
  357. package/dist/collection/components/utils/application-layout/service.js +2 -2
  358. package/dist/collection/components/utils/application-layout/service.js.map +1 -1
  359. package/dist/collection/components/validation-tooltip/validation-tooltip.js +2 -2
  360. package/dist/collection/components/workflow-step/workflow-step.js +3 -3
  361. package/dist/collection/components/workflow-steps/workflow-steps.js +1 -1
  362. package/dist/collection/tests/avatar/avatar.e2e.js +6 -0
  363. package/dist/collection/tests/avatar/avatar.e2e.js.map +1 -1
  364. package/dist/collection/tests/slider/slider.e2e.js +14 -0
  365. package/dist/collection/tests/slider/slider.e2e.js.map +1 -1
  366. package/dist/collection/tests/tabs/tabs.e2e.js +1 -1
  367. package/dist/collection/tests/tabs/tabs.e2e.js.map +1 -1
  368. package/dist/esm/{base-button-a1f04cd1.js → base-button-1b40b11d.js} +2 -2
  369. package/dist/esm/{base-button-a1f04cd1.js.map → base-button-1b40b11d.js.map} +1 -1
  370. package/dist/esm/{base-icon-button-368f0241.js → base-icon-button-bc1dabe0.js} +3 -3
  371. package/dist/esm/{base-icon-button-368f0241.js.map → base-icon-button-bc1dabe0.js.map} +1 -1
  372. package/dist/esm/index-5429f20b.js +2090 -0
  373. package/dist/esm/index-5429f20b.js.map +1 -0
  374. package/dist/esm/ix-action-card.entry.js +1 -1
  375. package/dist/esm/ix-application-header.entry.js +5 -5
  376. package/dist/esm/ix-application-header.entry.js.map +1 -1
  377. package/dist/esm/ix-application-sidebar.entry.js +2 -2
  378. package/dist/esm/ix-application-switch-modal.entry.js +2 -2
  379. package/dist/esm/ix-application-switch-modal.entry.js.map +1 -1
  380. package/dist/esm/ix-application.entry.js +5 -5
  381. package/dist/esm/ix-avatar_2.entry.js +4 -4
  382. package/dist/esm/ix-avatar_2.entry.js.map +1 -1
  383. package/dist/esm/ix-basic-navigation.entry.js +4 -4
  384. package/dist/esm/ix-blind.entry.js +1 -1
  385. package/dist/esm/ix-breadcrumb-item.entry.js +2 -2
  386. package/dist/esm/ix-breadcrumb.entry.js +3 -3
  387. package/dist/esm/ix-button.entry.js +2 -2
  388. package/dist/esm/ix-card-accordion_2.entry.js +2 -2
  389. package/dist/esm/ix-card-list.entry.js +5 -5
  390. package/dist/esm/ix-card_2.entry.js +2 -2
  391. package/dist/esm/ix-category-filter.entry.js +5 -5
  392. package/dist/esm/ix-chip.entry.js +5 -5
  393. package/dist/esm/ix-col_4.entry.js +9 -9
  394. package/dist/esm/ix-content-header.entry.js +1 -1
  395. package/dist/esm/ix-content.entry.js +4 -4
  396. package/dist/esm/ix-css-grid-item.entry.js +2 -2
  397. package/dist/esm/ix-css-grid.entry.js +1 -1
  398. package/dist/esm/ix-date-dropdown.entry.js +4 -4
  399. package/dist/esm/ix-date-dropdown.entry.js.map +1 -1
  400. package/dist/esm/ix-date-time-card.entry.js +2 -2
  401. package/dist/esm/ix-datetime-picker.entry.js +2 -2
  402. package/dist/esm/ix-divider.entry.js +2 -2
  403. package/dist/esm/ix-drawer.entry.js +3 -3
  404. package/dist/esm/ix-dropdown-button.entry.js +3 -3
  405. package/dist/esm/ix-dropdown-header.entry.js +2 -2
  406. package/dist/esm/ix-dropdown-item.entry.js +4 -4
  407. package/dist/esm/ix-dropdown-quick-actions.entry.js +2 -2
  408. package/dist/esm/ix-dropdown.entry.js +14 -7
  409. package/dist/esm/ix-dropdown.entry.js.map +1 -1
  410. package/dist/esm/ix-empty-state.entry.js +2 -2
  411. package/dist/esm/ix-empty-state.entry.js.map +1 -1
  412. package/dist/esm/ix-event-list-item.entry.js +5 -5
  413. package/dist/esm/ix-event-list-item.entry.js.map +1 -1
  414. package/dist/esm/ix-event-list.entry.js +3 -3
  415. package/dist/esm/ix-expanding-search.entry.js +5 -5
  416. package/dist/esm/ix-filter-chip_2.entry.js +3 -3
  417. package/dist/esm/ix-flip-tile-content.entry.js +2 -2
  418. package/dist/esm/ix-flip-tile.entry.js +5 -5
  419. package/dist/esm/ix-form-field.entry.js +2 -2
  420. package/dist/esm/ix-group-context-menu_2.entry.js +6 -10
  421. package/dist/esm/ix-group-context-menu_2.entry.js.map +1 -1
  422. package/dist/esm/ix-group.entry.js +30 -24
  423. package/dist/esm/ix-group.entry.js.map +1 -1
  424. package/dist/esm/ix-icon-button_2.entry.js +5 -5
  425. package/dist/esm/ix-icon-toggle-button.entry.js +4 -4
  426. package/dist/esm/ix-input-group.entry.js +2 -2
  427. package/dist/esm/ix-key-value-list.entry.js +2 -2
  428. package/dist/esm/ix-key-value.entry.js +2 -2
  429. package/dist/esm/ix-key-value.entry.js.map +1 -1
  430. package/dist/esm/ix-kpi.entry.js +4 -4
  431. package/dist/esm/ix-link-button.entry.js +4 -4
  432. package/dist/esm/ix-map-navigation-overlay.entry.js +3 -3
  433. package/dist/esm/ix-map-navigation.entry.js +3 -3
  434. package/dist/esm/ix-menu-about-item.entry.js +2 -2
  435. package/dist/esm/ix-menu-about-news.entry.js +5 -5
  436. package/dist/esm/ix-menu-about.entry.js +3 -3
  437. package/dist/esm/ix-menu-avatar.entry.js +3 -3
  438. package/dist/esm/ix-menu-category.entry.js +6 -6
  439. package/dist/esm/ix-menu-expand-icon.entry.js +3 -3
  440. package/dist/esm/ix-menu-item.entry.js +4 -4
  441. package/dist/esm/ix-menu-item.entry.js.map +1 -1
  442. package/dist/esm/ix-menu-settings-item.entry.js +2 -2
  443. package/dist/esm/ix-menu-settings.entry.js +2 -2
  444. package/dist/esm/ix-menu.entry.js +13 -13
  445. package/dist/esm/ix-menu.entry.js.map +1 -1
  446. package/dist/esm/ix-message-bar.entry.js +2 -2
  447. package/dist/esm/ix-modal-content_2.entry.js +3 -3
  448. package/dist/esm/ix-modal-example.entry.js +2 -2
  449. package/dist/esm/ix-modal-footer.entry.js +2 -2
  450. package/dist/esm/ix-modal-loading.entry.js +2 -2
  451. package/dist/esm/ix-modal.entry.js +5 -5
  452. package/dist/esm/ix-pagination.entry.js +5 -5
  453. package/dist/esm/ix-pagination.entry.js.map +1 -1
  454. package/dist/esm/ix-pane-layout.entry.js +3 -3
  455. package/dist/esm/ix-pane.entry.js +8 -8
  456. package/dist/esm/ix-pill.entry.js +5 -5
  457. package/dist/esm/ix-playground-internal.entry.js +2 -2
  458. package/dist/esm/ix-push-card.entry.js +2 -2
  459. package/dist/esm/ix-select.entry.js +35 -19
  460. package/dist/esm/ix-select.entry.js.map +1 -1
  461. package/dist/esm/ix-slider.entry.js +22 -15
  462. package/dist/esm/ix-slider.entry.js.map +1 -1
  463. package/dist/esm/ix-split-button-item.entry.js +2 -2
  464. package/dist/esm/ix-split-button.entry.js +2 -2
  465. package/dist/esm/ix-tab-item_2.entry.js +75 -45
  466. package/dist/esm/ix-tab-item_2.entry.js.map +1 -1
  467. package/dist/esm/ix-tile.entry.js +5 -5
  468. package/dist/esm/ix-time-picker.entry.js +4 -4
  469. package/dist/esm/ix-toast-container.entry.js +3 -3
  470. package/dist/esm/ix-toast.entry.js +3 -3
  471. package/dist/esm/ix-toggle-button.entry.js +4 -4
  472. package/dist/esm/ix-toggle.entry.js +3 -3
  473. package/dist/esm/ix-tooltip.entry.js +6 -6
  474. package/dist/esm/ix-tooltip.entry.js.map +1 -1
  475. package/dist/esm/ix-tree-item.entry.js +5 -5
  476. package/dist/esm/ix-tree.entry.js +2 -2
  477. package/dist/esm/ix-typography.entry.js +1 -1
  478. package/dist/esm/ix-upload.entry.js +4 -4
  479. package/dist/esm/ix-validation-tooltip.entry.js +3 -3
  480. package/dist/esm/ix-workflow-step.entry.js +4 -4
  481. package/dist/esm/ix-workflow-steps.entry.js +2 -2
  482. package/dist/esm/{listener-2d09646e.js → listener-4f3baab5.js} +2 -2
  483. package/dist/esm/{listener-2d09646e.js.map → listener-4f3baab5.js.map} +1 -1
  484. package/dist/esm/loader.js +3 -3
  485. package/dist/esm/{menu-tabs-fc-60ff0221.js → menu-tabs-fc-d9a7dd06.js} +3 -3
  486. package/dist/esm/{menu-tabs-fc-60ff0221.js.map → menu-tabs-fc-d9a7dd06.js.map} +1 -1
  487. package/dist/esm/{service-02cc9011.js → service-c7fc628b.js} +3 -3
  488. package/dist/esm/service-c7fc628b.js.map +1 -0
  489. package/dist/esm/siemens-ix.js +11 -11
  490. package/dist/esm/siemens-ix.js.map +1 -1
  491. package/dist/siemens-ix/{p-fbb851f3.entry.js → p-052340f9.entry.js} +2 -2
  492. package/dist/siemens-ix/{p-064172e5.entry.js → p-0653a145.entry.js} +2 -2
  493. package/dist/siemens-ix/{p-064172e5.entry.js.map → p-0653a145.entry.js.map} +1 -1
  494. package/dist/siemens-ix/p-0b4e3779.entry.js +2 -0
  495. package/dist/siemens-ix/p-0b4e3779.entry.js.map +1 -0
  496. package/dist/siemens-ix/{p-193f7439.entry.js → p-0b4e398e.entry.js} +2 -2
  497. package/dist/siemens-ix/{p-d6cef0ad.js → p-0c8a98cd.js} +2 -2
  498. package/dist/siemens-ix/p-0d2a6886.entry.js +2 -0
  499. package/dist/siemens-ix/{p-8d836d6f.entry.js → p-0f7ef743.entry.js} +2 -2
  500. package/dist/siemens-ix/{p-d57ab230.entry.js → p-113cc793.entry.js} +2 -2
  501. package/dist/siemens-ix/{p-442f750a.entry.js → p-14a41c8c.entry.js} +2 -2
  502. package/dist/siemens-ix/{p-5231ebe9.entry.js → p-15b3c17e.entry.js} +2 -2
  503. package/dist/siemens-ix/p-16b923e9.entry.js +2 -0
  504. package/dist/siemens-ix/{p-d6690de0.entry.js → p-1a122c76.entry.js} +2 -2
  505. package/dist/siemens-ix/{p-072cb3c7.entry.js → p-1cff59db.entry.js} +2 -2
  506. package/dist/siemens-ix/{p-719a3a11.js → p-1d581190.js} +2 -2
  507. package/dist/siemens-ix/{p-c50cdde4.js → p-1db6be55.js} +2 -2
  508. package/dist/siemens-ix/{p-8c126c50.entry.js → p-1f4b8463.entry.js} +2 -2
  509. package/dist/siemens-ix/{p-a419c1a8.entry.js → p-24a8737a.entry.js} +2 -2
  510. package/dist/siemens-ix/{p-7a337fdb.entry.js → p-2908cacd.entry.js} +2 -2
  511. package/dist/siemens-ix/{p-9ad52791.entry.js → p-2946fd70.entry.js} +2 -2
  512. package/dist/siemens-ix/{p-d80c0aff.entry.js → p-2c4c03d4.entry.js} +2 -2
  513. package/dist/siemens-ix/{p-e42a3069.entry.js → p-2ebfd4fd.entry.js} +2 -2
  514. package/dist/siemens-ix/{p-5f364337.entry.js → p-2ec7f841.entry.js} +2 -2
  515. package/dist/siemens-ix/{p-5f364337.entry.js.map → p-2ec7f841.entry.js.map} +1 -1
  516. package/dist/siemens-ix/{p-f7b91326.entry.js → p-309ac3ad.entry.js} +2 -2
  517. package/dist/siemens-ix/p-32375ddb.entry.js +2 -0
  518. package/dist/siemens-ix/p-32d4ed3b.entry.js +2 -0
  519. package/dist/siemens-ix/{p-1befce78.entry.js → p-427676f4.entry.js} +2 -2
  520. package/dist/siemens-ix/{p-da9e539d.entry.js → p-4430117a.entry.js} +2 -2
  521. package/dist/siemens-ix/{p-da9e539d.entry.js.map → p-4430117a.entry.js.map} +1 -1
  522. package/dist/siemens-ix/p-44db3646.entry.js +2 -0
  523. package/dist/siemens-ix/{p-47e3439b.entry.js → p-453fa360.entry.js} +2 -2
  524. package/dist/siemens-ix/p-4b3facea.entry.js +2 -0
  525. package/dist/siemens-ix/p-4df0cdd7.entry.js +2 -0
  526. package/dist/siemens-ix/p-4df0cdd7.entry.js.map +1 -0
  527. package/dist/siemens-ix/{p-d72cb8db.entry.js → p-52857629.entry.js} +2 -2
  528. package/dist/siemens-ix/p-52857629.entry.js.map +1 -0
  529. package/dist/siemens-ix/{p-ef378dca.entry.js → p-53352bfb.entry.js} +2 -2
  530. package/dist/siemens-ix/{p-880526bf.entry.js → p-5696bb62.entry.js} +2 -2
  531. package/dist/siemens-ix/{p-7cffddcf.entry.js → p-5aa0b93c.entry.js} +2 -2
  532. package/dist/siemens-ix/{p-955fa8ca.entry.js → p-5b135f6b.entry.js} +2 -2
  533. package/dist/siemens-ix/{p-955fa8ca.entry.js.map → p-5b135f6b.entry.js.map} +1 -1
  534. package/dist/siemens-ix/{p-e5bdd91f.entry.js → p-5c673ae9.entry.js} +2 -2
  535. package/dist/siemens-ix/{p-ec0662b9.entry.js → p-5f25e7fd.entry.js} +2 -2
  536. package/dist/siemens-ix/{p-ddd91a5b.entry.js → p-6227e62b.entry.js} +2 -2
  537. package/dist/siemens-ix/p-68532fa2.js +2 -0
  538. package/dist/siemens-ix/{p-13141e58.entry.js → p-68644ee1.entry.js} +2 -2
  539. package/dist/siemens-ix/{p-b4dfda02.entry.js → p-6af4415c.entry.js} +2 -2
  540. package/dist/siemens-ix/{p-075ec277.entry.js → p-6fd7ecd0.entry.js} +2 -2
  541. package/dist/siemens-ix/{p-fd68d6ed.entry.js → p-7076210b.entry.js} +2 -2
  542. package/dist/siemens-ix/{p-e14472c8.entry.js → p-71315e2e.entry.js} +2 -2
  543. package/dist/siemens-ix/p-71315e2e.entry.js.map +1 -0
  544. package/dist/siemens-ix/{p-8345c55f.entry.js → p-713828ed.entry.js} +2 -2
  545. package/dist/siemens-ix/{p-42157ecd.entry.js → p-7bfd6cd2.entry.js} +2 -2
  546. package/dist/siemens-ix/p-7faa148f.entry.js +2 -0
  547. package/dist/siemens-ix/{p-4cb9cc30.entry.js → p-85423643.entry.js} +2 -2
  548. package/dist/siemens-ix/{p-29be2b67.entry.js → p-8629db91.entry.js} +2 -2
  549. package/dist/siemens-ix/p-87e692d9.entry.js +2 -0
  550. package/dist/siemens-ix/p-882a0233.entry.js +2 -0
  551. package/dist/siemens-ix/{p-c62d3f80.entry.js → p-8d0758c1.entry.js} +2 -2
  552. package/dist/siemens-ix/{p-6f006293.entry.js → p-8d599677.entry.js} +2 -2
  553. package/dist/siemens-ix/{p-4ca27bd7.entry.js → p-90440046.entry.js} +2 -2
  554. package/dist/siemens-ix/p-92a18c10.entry.js +2 -0
  555. package/dist/siemens-ix/{p-3de94029.entry.js → p-9ebc4fc3.entry.js} +2 -2
  556. package/dist/siemens-ix/{p-ed693de7.entry.js → p-a0138163.entry.js} +2 -2
  557. package/dist/siemens-ix/{p-ed693de7.entry.js.map → p-a0138163.entry.js.map} +1 -1
  558. package/dist/siemens-ix/{p-de186f5c.entry.js → p-a0a44a2b.entry.js} +2 -2
  559. package/dist/siemens-ix/{p-5bd709a5.entry.js → p-a8d291fa.entry.js} +2 -2
  560. package/dist/siemens-ix/{p-5bd709a5.entry.js.map → p-a8d291fa.entry.js.map} +1 -1
  561. package/dist/siemens-ix/{p-ed8e1d4f.entry.js → p-af099ca4.entry.js} +2 -2
  562. package/dist/siemens-ix/p-b3b23af7.entry.js +2 -0
  563. package/dist/siemens-ix/{p-37c9f425.entry.js → p-b4ce366d.entry.js} +2 -2
  564. package/dist/siemens-ix/{p-a73efc31.entry.js → p-b663ca16.entry.js} +2 -2
  565. package/dist/siemens-ix/{p-42d156d6.entry.js → p-b804b8c5.entry.js} +2 -2
  566. package/dist/siemens-ix/{p-42d156d6.entry.js.map → p-b804b8c5.entry.js.map} +1 -1
  567. package/dist/siemens-ix/{p-e66fb590.entry.js → p-bc2c74c5.entry.js} +2 -2
  568. package/dist/siemens-ix/{p-b1c8c6f1.entry.js → p-bea7c748.entry.js} +2 -2
  569. package/dist/siemens-ix/{p-65a19457.entry.js → p-bf14c60b.entry.js} +2 -2
  570. package/dist/siemens-ix/p-c1222581.entry.js +2 -0
  571. package/dist/siemens-ix/{p-a0be36ad.entry.js → p-c1968b80.entry.js} +2 -2
  572. package/dist/siemens-ix/{p-b7fa2c5a.entry.js → p-c33cee36.entry.js} +2 -2
  573. package/dist/siemens-ix/{p-bc49e7ff.entry.js → p-d03df401.entry.js} +2 -2
  574. package/dist/siemens-ix/{p-dddd4a76.entry.js → p-d14024d3.entry.js} +2 -2
  575. package/dist/siemens-ix/{p-822fcb6c.entry.js → p-d1f49940.entry.js} +2 -2
  576. package/dist/siemens-ix/p-d331216f.entry.js +2 -0
  577. package/dist/siemens-ix/p-d331216f.entry.js.map +1 -0
  578. package/dist/siemens-ix/p-d8790ff5.entry.js +2 -0
  579. package/dist/siemens-ix/p-d8790ff5.entry.js.map +1 -0
  580. package/dist/siemens-ix/p-d950c3a8.entry.js +2 -0
  581. package/dist/siemens-ix/p-d950c3a8.entry.js.map +1 -0
  582. package/dist/siemens-ix/{p-06cba04a.entry.js → p-d95cbd1f.entry.js} +2 -2
  583. package/dist/siemens-ix/{p-127f6463.entry.js → p-d998415f.entry.js} +2 -2
  584. package/dist/siemens-ix/{p-d4fdbc68.entry.js → p-dbe8f5e6.entry.js} +2 -2
  585. package/dist/siemens-ix/p-dbe8f5e6.entry.js.map +1 -0
  586. package/dist/siemens-ix/p-dcb3e5be.entry.js +2 -0
  587. package/dist/siemens-ix/{p-f237ec25.entry.js.map → p-dcb3e5be.entry.js.map} +1 -1
  588. package/dist/siemens-ix/{p-bbacfd34.entry.js → p-dde7eb80.entry.js} +2 -2
  589. package/dist/siemens-ix/{p-73b070cc.entry.js → p-e30ed20a.entry.js} +2 -2
  590. package/dist/siemens-ix/{p-d6d48f1d.entry.js → p-e8d3cf35.entry.js} +2 -2
  591. package/dist/siemens-ix/p-e9a3f58a.entry.js +2 -0
  592. package/dist/siemens-ix/{p-ea0c0738.entry.js.map → p-e9a3f58a.entry.js.map} +1 -1
  593. package/dist/siemens-ix/p-eb6268a6.entry.js +2 -0
  594. package/dist/siemens-ix/{p-010d6f32.entry.js.map → p-eb6268a6.entry.js.map} +1 -1
  595. package/dist/siemens-ix/{p-c6234df9.entry.js → p-ebb277f0.entry.js} +2 -2
  596. package/dist/siemens-ix/{p-34891297.entry.js → p-f318140c.entry.js} +2 -2
  597. package/dist/siemens-ix/p-f318140c.entry.js.map +1 -0
  598. package/dist/siemens-ix/{p-0f8a55ee.entry.js → p-f78246bd.entry.js} +2 -2
  599. package/dist/siemens-ix/p-f87cd962.js +3 -0
  600. package/dist/siemens-ix/p-f87cd962.js.map +1 -0
  601. package/dist/siemens-ix/{p-07f815fa.entry.js → p-fb2b78f7.entry.js} +2 -2
  602. package/dist/siemens-ix/{p-644433de.entry.js → p-fb47546b.entry.js} +2 -2
  603. package/dist/siemens-ix/p-fb4c79c6.entry.js +2 -0
  604. package/dist/siemens-ix/{p-702f9349.js → p-fbe017b7.js} +2 -2
  605. package/dist/siemens-ix/p-fbe017b7.js.map +1 -0
  606. package/dist/siemens-ix/{p-b7a104cd.entry.js → p-fc5814df.entry.js} +2 -2
  607. package/dist/siemens-ix/{p-b7a104cd.entry.js.map → p-fc5814df.entry.js.map} +1 -1
  608. package/dist/siemens-ix/{p-45139de2.entry.js → p-feac09bc.entry.js} +2 -2
  609. package/dist/siemens-ix/{p-733c69fa.entry.js → p-ff1ac5b3.entry.js} +2 -2
  610. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  611. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  612. package/dist/types/components/application-header/application-header.d.ts +1 -1
  613. package/dist/types/components/dropdown/dropdown.d.ts +1 -0
  614. package/dist/types/components/group/group.d.ts +3 -4
  615. package/dist/types/components/group-item/group-item.d.ts +4 -4
  616. package/dist/types/components/slider/slider.d.ts +3 -3
  617. package/dist/types/components/tab-item/tab-item.d.ts +2 -2
  618. package/dist/types/components/tabs/tabs.d.ts +7 -4
  619. package/dist/types/components/tooltip/tooltip.d.ts +7 -7
  620. package/dist/types/components.d.ts +17 -15
  621. package/hydrate/index.d.ts +1 -1
  622. package/hydrate/index.js +38479 -32296
  623. package/package.json +2 -2
  624. package/dist/cjs/index-2d325c82.js +0 -2967
  625. package/dist/cjs/index-2d325c82.js.map +0 -1
  626. package/dist/cjs/service-a42add5f.js.map +0 -1
  627. package/dist/esm/index-06024ae7.js +0 -2935
  628. package/dist/esm/index-06024ae7.js.map +0 -1
  629. package/dist/esm/service-02cc9011.js.map +0 -1
  630. package/dist/siemens-ix/p-010d6f32.entry.js +0 -2
  631. package/dist/siemens-ix/p-31af865e.entry.js +0 -2
  632. package/dist/siemens-ix/p-34891297.entry.js.map +0 -1
  633. package/dist/siemens-ix/p-36f903fb.entry.js +0 -2
  634. package/dist/siemens-ix/p-36f903fb.entry.js.map +0 -1
  635. package/dist/siemens-ix/p-5c367ce7.entry.js +0 -2
  636. package/dist/siemens-ix/p-6a4545be.entry.js +0 -2
  637. package/dist/siemens-ix/p-6c368289.entry.js +0 -2
  638. package/dist/siemens-ix/p-702f9349.js.map +0 -1
  639. package/dist/siemens-ix/p-77b15444.entry.js +0 -2
  640. package/dist/siemens-ix/p-7cb1dcf0.entry.js +0 -2
  641. package/dist/siemens-ix/p-867ce59b.entry.js +0 -2
  642. package/dist/siemens-ix/p-8b3cb8c0.entry.js +0 -2
  643. package/dist/siemens-ix/p-8b3cb8c0.entry.js.map +0 -1
  644. package/dist/siemens-ix/p-9d0c9f9f.entry.js +0 -2
  645. package/dist/siemens-ix/p-a55105d1.entry.js +0 -2
  646. package/dist/siemens-ix/p-a55105d1.entry.js.map +0 -1
  647. package/dist/siemens-ix/p-a61b35a8.entry.js +0 -2
  648. package/dist/siemens-ix/p-ac552df3.js +0 -3
  649. package/dist/siemens-ix/p-ac552df3.js.map +0 -1
  650. package/dist/siemens-ix/p-af2ee1e2.entry.js +0 -2
  651. package/dist/siemens-ix/p-b331622d.entry.js +0 -2
  652. package/dist/siemens-ix/p-ba68b58c.entry.js +0 -2
  653. package/dist/siemens-ix/p-c6902b79.entry.js +0 -2
  654. package/dist/siemens-ix/p-c6902b79.entry.js.map +0 -1
  655. package/dist/siemens-ix/p-d4fdbc68.entry.js.map +0 -1
  656. package/dist/siemens-ix/p-d6116286.entry.js +0 -2
  657. package/dist/siemens-ix/p-d72cb8db.entry.js.map +0 -1
  658. package/dist/siemens-ix/p-e14472c8.entry.js.map +0 -1
  659. package/dist/siemens-ix/p-ea0c0738.entry.js +0 -2
  660. package/dist/siemens-ix/p-f237ec25.entry.js +0 -2
  661. package/dist/siemens-ix/p-f74280b3.entry.js +0 -2
  662. package/dist/siemens-ix/p-f74280b3.entry.js.map +0 -1
  663. package/dist/siemens-ix/p-fa3283ea.js +0 -2
  664. /package/dist/siemens-ix/{p-fbb851f3.entry.js.map → p-052340f9.entry.js.map} +0 -0
  665. /package/dist/siemens-ix/{p-193f7439.entry.js.map → p-0b4e398e.entry.js.map} +0 -0
  666. /package/dist/siemens-ix/{p-d6cef0ad.js.map → p-0c8a98cd.js.map} +0 -0
  667. /package/dist/siemens-ix/{p-867ce59b.entry.js.map → p-0d2a6886.entry.js.map} +0 -0
  668. /package/dist/siemens-ix/{p-8d836d6f.entry.js.map → p-0f7ef743.entry.js.map} +0 -0
  669. /package/dist/siemens-ix/{p-d57ab230.entry.js.map → p-113cc793.entry.js.map} +0 -0
  670. /package/dist/siemens-ix/{p-442f750a.entry.js.map → p-14a41c8c.entry.js.map} +0 -0
  671. /package/dist/siemens-ix/{p-5231ebe9.entry.js.map → p-15b3c17e.entry.js.map} +0 -0
  672. /package/dist/siemens-ix/{p-7cb1dcf0.entry.js.map → p-16b923e9.entry.js.map} +0 -0
  673. /package/dist/siemens-ix/{p-d6690de0.entry.js.map → p-1a122c76.entry.js.map} +0 -0
  674. /package/dist/siemens-ix/{p-072cb3c7.entry.js.map → p-1cff59db.entry.js.map} +0 -0
  675. /package/dist/siemens-ix/{p-719a3a11.js.map → p-1d581190.js.map} +0 -0
  676. /package/dist/siemens-ix/{p-c50cdde4.js.map → p-1db6be55.js.map} +0 -0
  677. /package/dist/siemens-ix/{p-8c126c50.entry.js.map → p-1f4b8463.entry.js.map} +0 -0
  678. /package/dist/siemens-ix/{p-a419c1a8.entry.js.map → p-24a8737a.entry.js.map} +0 -0
  679. /package/dist/siemens-ix/{p-7a337fdb.entry.js.map → p-2908cacd.entry.js.map} +0 -0
  680. /package/dist/siemens-ix/{p-9ad52791.entry.js.map → p-2946fd70.entry.js.map} +0 -0
  681. /package/dist/siemens-ix/{p-d80c0aff.entry.js.map → p-2c4c03d4.entry.js.map} +0 -0
  682. /package/dist/siemens-ix/{p-e42a3069.entry.js.map → p-2ebfd4fd.entry.js.map} +0 -0
  683. /package/dist/siemens-ix/{p-f7b91326.entry.js.map → p-309ac3ad.entry.js.map} +0 -0
  684. /package/dist/siemens-ix/{p-a61b35a8.entry.js.map → p-32375ddb.entry.js.map} +0 -0
  685. /package/dist/siemens-ix/{p-b331622d.entry.js.map → p-32d4ed3b.entry.js.map} +0 -0
  686. /package/dist/siemens-ix/{p-1befce78.entry.js.map → p-427676f4.entry.js.map} +0 -0
  687. /package/dist/siemens-ix/{p-af2ee1e2.entry.js.map → p-44db3646.entry.js.map} +0 -0
  688. /package/dist/siemens-ix/{p-47e3439b.entry.js.map → p-453fa360.entry.js.map} +0 -0
  689. /package/dist/siemens-ix/{p-9d0c9f9f.entry.js.map → p-4b3facea.entry.js.map} +0 -0
  690. /package/dist/siemens-ix/{p-ef378dca.entry.js.map → p-53352bfb.entry.js.map} +0 -0
  691. /package/dist/siemens-ix/{p-880526bf.entry.js.map → p-5696bb62.entry.js.map} +0 -0
  692. /package/dist/siemens-ix/{p-7cffddcf.entry.js.map → p-5aa0b93c.entry.js.map} +0 -0
  693. /package/dist/siemens-ix/{p-e5bdd91f.entry.js.map → p-5c673ae9.entry.js.map} +0 -0
  694. /package/dist/siemens-ix/{p-ec0662b9.entry.js.map → p-5f25e7fd.entry.js.map} +0 -0
  695. /package/dist/siemens-ix/{p-ddd91a5b.entry.js.map → p-6227e62b.entry.js.map} +0 -0
  696. /package/dist/siemens-ix/{p-fa3283ea.js.map → p-68532fa2.js.map} +0 -0
  697. /package/dist/siemens-ix/{p-13141e58.entry.js.map → p-68644ee1.entry.js.map} +0 -0
  698. /package/dist/siemens-ix/{p-b4dfda02.entry.js.map → p-6af4415c.entry.js.map} +0 -0
  699. /package/dist/siemens-ix/{p-075ec277.entry.js.map → p-6fd7ecd0.entry.js.map} +0 -0
  700. /package/dist/siemens-ix/{p-fd68d6ed.entry.js.map → p-7076210b.entry.js.map} +0 -0
  701. /package/dist/siemens-ix/{p-8345c55f.entry.js.map → p-713828ed.entry.js.map} +0 -0
  702. /package/dist/siemens-ix/{p-42157ecd.entry.js.map → p-7bfd6cd2.entry.js.map} +0 -0
  703. /package/dist/siemens-ix/{p-ba68b58c.entry.js.map → p-7faa148f.entry.js.map} +0 -0
  704. /package/dist/siemens-ix/{p-4cb9cc30.entry.js.map → p-85423643.entry.js.map} +0 -0
  705. /package/dist/siemens-ix/{p-29be2b67.entry.js.map → p-8629db91.entry.js.map} +0 -0
  706. /package/dist/siemens-ix/{p-6a4545be.entry.js.map → p-87e692d9.entry.js.map} +0 -0
  707. /package/dist/siemens-ix/{p-31af865e.entry.js.map → p-882a0233.entry.js.map} +0 -0
  708. /package/dist/siemens-ix/{p-c62d3f80.entry.js.map → p-8d0758c1.entry.js.map} +0 -0
  709. /package/dist/siemens-ix/{p-6f006293.entry.js.map → p-8d599677.entry.js.map} +0 -0
  710. /package/dist/siemens-ix/{p-4ca27bd7.entry.js.map → p-90440046.entry.js.map} +0 -0
  711. /package/dist/siemens-ix/{p-d6116286.entry.js.map → p-92a18c10.entry.js.map} +0 -0
  712. /package/dist/siemens-ix/{p-3de94029.entry.js.map → p-9ebc4fc3.entry.js.map} +0 -0
  713. /package/dist/siemens-ix/{p-de186f5c.entry.js.map → p-a0a44a2b.entry.js.map} +0 -0
  714. /package/dist/siemens-ix/{p-ed8e1d4f.entry.js.map → p-af099ca4.entry.js.map} +0 -0
  715. /package/dist/siemens-ix/{p-5c367ce7.entry.js.map → p-b3b23af7.entry.js.map} +0 -0
  716. /package/dist/siemens-ix/{p-37c9f425.entry.js.map → p-b4ce366d.entry.js.map} +0 -0
  717. /package/dist/siemens-ix/{p-a73efc31.entry.js.map → p-b663ca16.entry.js.map} +0 -0
  718. /package/dist/siemens-ix/{p-e66fb590.entry.js.map → p-bc2c74c5.entry.js.map} +0 -0
  719. /package/dist/siemens-ix/{p-b1c8c6f1.entry.js.map → p-bea7c748.entry.js.map} +0 -0
  720. /package/dist/siemens-ix/{p-65a19457.entry.js.map → p-bf14c60b.entry.js.map} +0 -0
  721. /package/dist/siemens-ix/{p-6c368289.entry.js.map → p-c1222581.entry.js.map} +0 -0
  722. /package/dist/siemens-ix/{p-a0be36ad.entry.js.map → p-c1968b80.entry.js.map} +0 -0
  723. /package/dist/siemens-ix/{p-b7fa2c5a.entry.js.map → p-c33cee36.entry.js.map} +0 -0
  724. /package/dist/siemens-ix/{p-bc49e7ff.entry.js.map → p-d03df401.entry.js.map} +0 -0
  725. /package/dist/siemens-ix/{p-dddd4a76.entry.js.map → p-d14024d3.entry.js.map} +0 -0
  726. /package/dist/siemens-ix/{p-822fcb6c.entry.js.map → p-d1f49940.entry.js.map} +0 -0
  727. /package/dist/siemens-ix/{p-06cba04a.entry.js.map → p-d95cbd1f.entry.js.map} +0 -0
  728. /package/dist/siemens-ix/{p-127f6463.entry.js.map → p-d998415f.entry.js.map} +0 -0
  729. /package/dist/siemens-ix/{p-bbacfd34.entry.js.map → p-dde7eb80.entry.js.map} +0 -0
  730. /package/dist/siemens-ix/{p-73b070cc.entry.js.map → p-e30ed20a.entry.js.map} +0 -0
  731. /package/dist/siemens-ix/{p-d6d48f1d.entry.js.map → p-e8d3cf35.entry.js.map} +0 -0
  732. /package/dist/siemens-ix/{p-c6234df9.entry.js.map → p-ebb277f0.entry.js.map} +0 -0
  733. /package/dist/siemens-ix/{p-0f8a55ee.entry.js.map → p-f78246bd.entry.js.map} +0 -0
  734. /package/dist/siemens-ix/{p-07f815fa.entry.js.map → p-fb2b78f7.entry.js.map} +0 -0
  735. /package/dist/siemens-ix/{p-644433de.entry.js.map → p-fb47546b.entry.js.map} +0 -0
  736. /package/dist/siemens-ix/{p-77b15444.entry.js.map → p-fb4c79c6.entry.js.map} +0 -0
  737. /package/dist/siemens-ix/{p-45139de2.entry.js.map → p-feac09bc.entry.js.map} +0 -0
  738. /package/dist/siemens-ix/{p-733c69fa.entry.js.map → p-ff1ac5b3.entry.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const groupItemCss = ":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(.suppress-selection){pointer-events:none}: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)}";
3
+ const groupItemCss = ":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)}";
4
4
  const IxGroupItemStyle0 = groupItemCss;
5
5
 
6
6
  const GroupItem = /*@__PURE__*/ proxyCustomElement(class GroupItem extends HTMLElement {
@@ -13,21 +13,17 @@ const GroupItem = /*@__PURE__*/ proxyCustomElement(class GroupItem extends HTMLE
13
13
  this.text = undefined;
14
14
  this.secondaryText = undefined;
15
15
  this.suppressSelection = false;
16
- this.selected = undefined;
16
+ this.selected = false;
17
17
  this.focusable = true;
18
18
  this.index = undefined;
19
19
  }
20
20
  clickListen() {
21
- if (this.suppressSelection) {
22
- return;
23
- }
24
21
  this.selectedChanged.emit(this.hostElement);
25
22
  }
26
23
  render() {
27
- return (h(Host, { key: 'ec30959a56062acbad4443b9ca91fb8c99125b03', class: {
24
+ return (h(Host, { key: 'ae51a9df7d4b27336b05017a18300c5ee91473c7', class: {
28
25
  selected: this.selected && !this.suppressSelection,
29
- 'suppress-selection': this.suppressSelection,
30
- } }, h("button", { key: 'e29e098d709f657d5109ff840d54e84b7c645d28', tabindex: this.focusable ? 0 : -1 }, h("div", { key: 'd82048e82f3a9de77f1acb19f9500c475f400147', class: "group-entry-selection-indicator" }), this.icon ? h("ix-icon", { size: "16", name: this.icon }) : null, this.text ? (h("span", { class: "group-entry-text" }, h("span", { title: this.text }, this.text))) : null, this.secondaryText ? (h("span", { class: "group-entry-text-secondary" }, h("span", { title: this.secondaryText }, this.secondaryText))) : null, h("slot", { key: '1cde0aba243ca5f3537ce589be9e44d3ba9e2494' }))));
26
+ } }, h("button", { key: 'd70ce085f9deb507c5365c4d4c3c75dac4864560', tabindex: this.focusable ? 0 : -1 }, h("div", { key: '194d910fb5b1dc94e27b504568ef9b5d774fcaca', class: "group-entry-selection-indicator" }), this.icon ? h("ix-icon", { size: "16", name: this.icon }) : null, this.text ? (h("span", { class: "group-entry-text" }, h("span", { title: this.text }, this.text))) : null, this.secondaryText ? (h("span", { class: "group-entry-text-secondary" }, h("span", { title: this.secondaryText }, this.secondaryText))) : null, h("slot", { key: '4934b9729052b030c04ea695d23abde6634eaf10' }))));
31
27
  }
32
28
  get hostElement() { return this; }
33
29
  static get style() { return IxGroupItemStyle0; }
@@ -1 +1 @@
1
- {"file":"group-item.js","mappings":";;AAAA,MAAM,YAAY,GAAG,gtFAAgtF,CAAC;AACtuF,0BAAe,YAAY;;MCwBd,SAAS;;;;;;;;;iCAqBQ,KAAK;;yBAWb,IAAI;;;IAaxB,WAAW;QACT,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAC1B,OAAO;SACR;QACD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KAC7C;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,iBAAiB;gBAClD,oBAAoB,EAAE,IAAI,CAAC,iBAAiB;aAC7C,IAED,+DAAQ,QAAQ,EAAE,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,IACvC,4DAAK,KAAK,EAAC,iCAAiC,GAAO,EAClD,IAAI,CAAC,IAAI,GAAG,eAAS,IAAI,EAAC,IAAI,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAY,GAAG,IAAI,EACjE,IAAI,CAAC,IAAI,IACR,YAAM,KAAK,EAAC,kBAAkB,IAC5B,YAAM,KAAK,EAAE,IAAI,CAAC,IAAI,IAAG,IAAI,CAAC,IAAI,CAAQ,CACrC,IACL,IAAI,EACP,IAAI,CAAC,aAAa,IACjB,YAAM,KAAK,EAAC,4BAA4B,IACtC,YAAM,KAAK,EAAE,IAAI,CAAC,aAAa,IAAG,IAAI,CAAC,aAAa,CAAQ,CACvD,IACL,IAAI,EACR,8DAAa,CACN,CACJ,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/group-item/group-item.scss?tag=ix-group-item&encapsulation=shadow","src/components/group-item/group-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 '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(.suppress-selection) {\n pointer-events: none;\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;\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 if (this.suppressSelection) {\n return;\n }\n this.selectedChanged.emit(this.hostElement);\n }\n\n render() {\n return (\n <Host\n class={{\n selected: this.selected && !this.suppressSelection,\n 'suppress-selection': 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"],"version":3}
1
+ {"file":"group-item.js","mappings":";;AAAA,MAAM,YAAY,GAAG,iqFAAiqF,CAAC;AACvrF,0BAAe,YAAY;;MCwBd,SAAS;;;;;;;;;iCAqBQ,KAAK;wBAKL,KAAK;yBAMb,IAAI;;;IAaxB,WAAW;QACT,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KAC7C;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,iBAAiB;aACnD,IAED,+DAAQ,QAAQ,EAAE,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC,IACvC,4DAAK,KAAK,EAAC,iCAAiC,GAAO,EAClD,IAAI,CAAC,IAAI,GAAG,eAAS,IAAI,EAAC,IAAI,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAY,GAAG,IAAI,EACjE,IAAI,CAAC,IAAI,IACR,YAAM,KAAK,EAAC,kBAAkB,IAC5B,YAAM,KAAK,EAAE,IAAI,CAAC,IAAI,IAAG,IAAI,CAAC,IAAI,CAAQ,CACrC,IACL,IAAI,EACP,IAAI,CAAC,aAAa,IACjB,YAAM,KAAK,EAAC,4BAA4B,IACtC,YAAM,KAAK,EAAE,IAAI,CAAC,aAAa,IAAG,IAAI,CAAC,aAAa,CAAQ,CACvD,IACL,IAAI,EACR,8DAAa,CACN,CACJ,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/group-item/group-item.scss?tag=ix-group-item&encapsulation=shadow","src/components/group-item/group-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 '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"],"version":3}
@@ -69,7 +69,7 @@ const IconButton = /*@__PURE__*/ proxyCustomElement(class IconButton extends HTM
69
69
  type: this.type,
70
70
  extraClasses: this.getIconSizeClass(),
71
71
  };
72
- return (h(Host, { key: '0de06c10c66ae48a19a61794482353383007175d', class: Object.assign(Object.assign({}, this.getIconSizeClass()), { disabled: this.disabled || this.loading }) }, h(BaseIconButton, Object.assign({ key: '151dac878b35e83b8cca149e8b68c28f1198d5db' }, baseButtonProps))));
72
+ return (h(Host, { key: '3936b4cb8d9419a0be9618949383a20e91d26b24', class: Object.assign(Object.assign({}, this.getIconSizeClass()), { disabled: this.disabled || this.loading }) }, h(BaseIconButton, Object.assign({ key: '44c24801e0082622aa94c3ac213b633c6da00d61' }, baseButtonProps))));
73
73
  }
74
74
  get hostElement() { return this; }
75
75
  static get style() { return IxIconButtonStyle0; }
@@ -33,7 +33,7 @@ const ApplicationSidebar = /*@__PURE__*/ proxyCustomElement(class ApplicationSid
33
33
  anime(animation);
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: 'e05ab4ea0d3e6f05f115616bae74208fef0c701d', slot: "application-sidebar", class: {
36
+ return (h(Host, { key: 'fe0f54c79115877bac6d0032320550ad2e3fe089', slot: "application-sidebar", class: {
37
37
  visible: this.visible,
38
38
  } }, this.visible ? h("slot", null) : null));
39
39
  }
@@ -47,7 +47,7 @@ const ApplicationSwitchModal = /*@__PURE__*/ proxyCustomElement(class Applicatio
47
47
  }
48
48
  render() {
49
49
  var _a, _b, _c, _d;
50
- return (h(Host, { key: 'b92498225544ccc8c436d0395eccd230d2783d49' }, h("ix-modal-header", { key: 'dc41803dc7d4f0b208f7a0da8cf63b105cef723a', icon: "apps" }, ((_a = this.config) === null || _a === void 0 ? void 0 : _a.i18nAppSwitch) || 'Switch to application'), h("ix-modal-content", { key: 'a20d2a49fd3566188df365eed13aae97d84a0c26', class: "content" }, h("div", { key: '560a0c0f9303be6a67fa71937f42aff945c9a0b5', class: "content-apps" }, (!this.config || ((_b = this.config) === null || _b === void 0 ? void 0 : _b.apps.length) === 0) && (h("div", { class: "loading" }, h("ix-spinner", { size: "medium", variant: "primary" }), h("span", null, ((_c = this.config) === null || _c === void 0 ? void 0 : _c.i18nLoadingApps) ||
50
+ return (h(Host, { key: '2c9a4d11f697563924effefae0ca86ca826fa9c1' }, h("ix-modal-header", { key: '09586fc6d884b175ea95e8f4f42e9017c2874ef4', icon: "apps" }, ((_a = this.config) === null || _a === void 0 ? void 0 : _a.i18nAppSwitch) || 'Switch to application'), h("ix-modal-content", { key: '44be3f676830e44c4450ac9a85280829d2570004', class: "content" }, h("div", { key: 'd15e8b91de03f40013cfe94cde3159619b8ee8cc', class: "content-apps" }, (!this.config || ((_b = this.config) === null || _b === void 0 ? void 0 : _b.apps.length) === 0) && (h("div", { key: '5d8cc548c1c7adaa83c89ac329d04be5e6f7a59c', class: "loading" }, h("ix-spinner", { key: '80c9c4adb4546028848d2b47929527b613152651', size: "medium", variant: "primary" }), h("span", { key: 'c06fc0f909d940df03402e360e2a3d64bd9decc4' }, ((_c = this.config) === null || _c === void 0 ? void 0 : _c.i18nLoadingApps) ||
51
51
  'Loading available applications...'))), (_d = this.config) === null || _d === void 0 ? void 0 :
52
52
  _d.apps.map((appEntry) => {
53
53
  var _a;
@@ -1 +1 @@
1
- {"file":"ix-application-switch-modal.js","mappings":";;;;;;;;;AAAA,MAAM,yBAAyB,GAAG,62DAA62D,CAAC;AACh5D,uCAAe,yBAAyB;;ACexC,SAAS,eAAe,CAAC,KAQxB;IACC,SAAS,UAAU,CAAC,MAAoC;QACtD,IACE,MAAM,KAAK,QAAQ;YACnB,MAAM,KAAK,SAAS;YACpB,MAAM,KAAK,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M,0CAAE,IAAI,CAAC,MAAM,MAAK,CAAC,MAC9C,WAAK,KAAK,EAAC,SAAS,IAClB,kBAAY,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,GAAc,EACzD,gBACG,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,eAAe;YAC3B,mCAAmC,CAChC,CACH,CACP,EACA,MAAA,IAAI,CAAC,MAAM;eAAE,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ;;gBAAK,QACnC,EAAC,eAAe,IACd,IAAI,EAAE,IAAI,CAAC,WAAW,EACtB,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,WAAW,EAAE,QAAQ,CAAC,WAAW,EACjC,OAAO,EAAE,QAAQ,CAAC,OAAO,EACzB,MAAM,EAAE,QAAQ,CAAC,MAAM,EACvB,GAAG,EAAE,QAAQ,CAAC,GAAG,EACjB,QAAQ,EAAE,QAAQ,CAAC,EAAE,MAAK,MAAA,IAAI,CAAC,MAAM,0CAAE,YAAY,CAAA,GAClC,EACpB;aAAA,CAAC,CACE,CACW,CACd,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/application-header/application-switch-modal/application-switch-modal.scss?tag=ix-application-switch-modal&encapsulation=shadow","src/components/application-header/application-switch-modal/application-switch-modal.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 'mixins/hover';\n\n:host {\n @include ix-component;\n display: block;\n\n .content {\n padding: 2rem;\n padding-right: 0;\n }\n\n .content-apps {\n display: flex;\n position: relative;\n flex-wrap: wrap;\n justify-content: space-evenly;\n max-height: 50vh;\n margin-right: 0.25rem;\n gap: 1.5rem;\n }\n\n .loading {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n ix-spinner {\n margin-right: 1rem;\n }\n }\n}\n\n:host {\n .AppEntry {\n all: unset;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 1rem;\n padding: 0.5rem;\n flex: 1 1 calc(45%);\n cursor: pointer;\n border: 0.0625rem solid transparent;\n }\n\n .AppEntry.Selected {\n background-color: var(--theme-color-ghost--selected);\n border: var(--theme-dynamic-bdr-1);\n }\n\n .AppEntry {\n @include ghost-hover-pressed;\n }\n\n .AppEntry:focus-visible {\n border: 1px solid var(--theme-color-focus-bdr);\n }\n\n .AppName {\n display: flex;\n flex-direction: column;\n }\n\n .AppName ix-icon {\n margin-left: 1rem;\n }\n\n .AppIcon {\n width: 3rem;\n height: 3rem;\n border-radius: 0.25rem;\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 { Component, Element, h, Host, Prop } from '@stencil/core';\nimport {\n AppSwitchConfiguration,\n AppSwitchConfigurationTarget,\n} from '../../utils/application-layout/context';\nimport { dismissModal } from '../../utils/modal';\n\nfunction ApplicationItem(props: {\n host: HTMLIxApplicationSwitchModalElement;\n name: string;\n description: string;\n iconSrc: string;\n url: string;\n target: AppSwitchConfigurationTarget;\n selected: boolean;\n}) {\n function isExternal(target: AppSwitchConfigurationTarget) {\n if (\n target !== '_blank' &&\n target !== '_parent' &&\n target !== '_self' &&\n target !== '_top'\n ) {\n // Check if its one of the target keywords\n // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a?retiredLocale=de#target\n return true;\n }\n\n if (target === '_blank') {\n return true;\n }\n\n return false;\n }\n\n return (\n <button\n class={{\n AppEntry: true,\n Selected: props.selected,\n }}\n onClick={() => {\n dismissModal(props.host);\n window.open(props.url, props.target);\n }}\n >\n <div>\n <img class=\"AppIcon\" src={props.iconSrc}></img>\n </div>\n <div class=\"AppName\">\n <ix-typography format=\"h4\">\n {props.name}\n {isExternal(props.target) && (\n <ix-icon\n size=\"12\"\n name=\"open-external\"\n color=\"color-soft-text\"\n ></ix-icon>\n )}\n </ix-typography>\n <ix-typography format=\"label-sm\" color=\"soft\">\n {props.description}\n </ix-typography>\n </div>\n </button>\n );\n}\n\n/** @internal */\n@Component({\n tag: 'ix-application-switch-modal',\n styleUrl: 'application-switch-modal.scss',\n shadow: true,\n})\nexport class ApplicationSwitchModal {\n @Element() hostElement!: HTMLIxApplicationSwitchModalElement;\n\n /** @internal */\n @Prop() config: AppSwitchConfiguration;\n\n componentWillLoad() {\n if (!this.config) {\n throw Error('ApplicationConfig not provided');\n }\n }\n\n render() {\n return (\n <Host>\n <ix-modal-header icon=\"apps\">\n {this.config?.i18nAppSwitch || 'Switch to application'}\n </ix-modal-header>\n <ix-modal-content class=\"content\">\n <div class=\"content-apps\">\n {(!this.config || this.config?.apps.length === 0) && (\n <div class=\"loading\">\n <ix-spinner size=\"medium\" variant=\"primary\"></ix-spinner>\n <span>\n {this.config?.i18nLoadingApps ||\n 'Loading available applications...'}\n </span>\n </div>\n )}\n {this.config?.apps.map((appEntry) => (\n <ApplicationItem\n host={this.hostElement}\n name={appEntry.name}\n description={appEntry.description}\n iconSrc={appEntry.iconSrc}\n target={appEntry.target}\n url={appEntry.url}\n selected={appEntry.id === this.config?.currentAppId}\n ></ApplicationItem>\n ))}\n </div>\n </ix-modal-content>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-application-switch-modal.js","mappings":";;;;;;;;;AAAA,MAAM,yBAAyB,GAAG,62DAA62D,CAAC;AACh5D,uCAAe,yBAAyB;;ACexC,SAAS,eAAe,CAAC,KAQxB;IACC,SAAS,UAAU,CAAC,MAAoC;QACtD,IACE,MAAM,KAAK,QAAQ;YACnB,MAAM,KAAK,SAAS;YACpB,MAAM,KAAK,OAAO;YAClB,MAAM,KAAK,MAAM,EACjB;;;YAGA,OAAO,IAAI,CAAC;SACb;QAED,IAAI,MAAM,KAAK,QAAQ,EAAE;YACvB,OA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AAO,EAAC,SAAS,GAAc,EACzD,+DACG,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,eAAe;YAC3B,mCAAmC,CAChC,CACH,CACP,EACA,MAAA,IAAI,CAAC,MAAM;eAAE,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ;;gBAAK,QACnC,EAAC,eAAe,IACd,IAAI,EAAE,IAAI,CAAC,WAAW,EACtB,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,WAAW,EAAE,QAAQ,CAAC,WAAW,EACjC,OAAO,EAAE,QAAQ,CAAC,OAAO,EACzB,MAAM,EAAE,QAAQ,CAAC,MAAM,EACvB,GAAG,EAAE,QAAQ,CAAC,GAAG,EACjB,QAAQ,EAAE,QAAQ,CAAC,EAAE,MAAK,MAAA,IAAI,CAAC,MAAM,0CAAE,YAAY,CAAA,GAClC,EACpB;aAAA,CAAC,CACE,CACW,CACd,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/application-header/application-switch-modal/application-switch-modal.scss?tag=ix-application-switch-modal&encapsulation=shadow","src/components/application-header/application-switch-modal/application-switch-modal.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 'mixins/hover';\n\n:host {\n @include ix-component;\n display: block;\n\n .content {\n padding: 2rem;\n padding-right: 0;\n }\n\n .content-apps {\n display: flex;\n position: relative;\n flex-wrap: wrap;\n justify-content: space-evenly;\n max-height: 50vh;\n margin-right: 0.25rem;\n gap: 1.5rem;\n }\n\n .loading {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n ix-spinner {\n margin-right: 1rem;\n }\n }\n}\n\n:host {\n .AppEntry {\n all: unset;\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 1rem;\n padding: 0.5rem;\n flex: 1 1 calc(45%);\n cursor: pointer;\n border: 0.0625rem solid transparent;\n }\n\n .AppEntry.Selected {\n background-color: var(--theme-color-ghost--selected);\n border: var(--theme-dynamic-bdr-1);\n }\n\n .AppEntry {\n @include ghost-hover-pressed;\n }\n\n .AppEntry:focus-visible {\n border: 1px solid var(--theme-color-focus-bdr);\n }\n\n .AppName {\n display: flex;\n flex-direction: column;\n }\n\n .AppName ix-icon {\n margin-left: 1rem;\n }\n\n .AppIcon {\n width: 3rem;\n height: 3rem;\n border-radius: 0.25rem;\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 { Component, Element, h, Host, Prop } from '@stencil/core';\nimport {\n AppSwitchConfiguration,\n AppSwitchConfigurationTarget,\n} from '../../utils/application-layout/context';\nimport { dismissModal } from '../../utils/modal';\n\nfunction ApplicationItem(props: {\n host: HTMLIxApplicationSwitchModalElement;\n name: string;\n description: string;\n iconSrc: string;\n url: string;\n target: AppSwitchConfigurationTarget;\n selected: boolean;\n}) {\n function isExternal(target: AppSwitchConfigurationTarget) {\n if (\n target !== '_blank' &&\n target !== '_parent' &&\n target !== '_self' &&\n target !== '_top'\n ) {\n // Check if its one of the target keywords\n // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a?retiredLocale=de#target\n return true;\n }\n\n if (target === '_blank') {\n return true;\n }\n\n return false;\n }\n\n return (\n <button\n class={{\n AppEntry: true,\n Selected: props.selected,\n }}\n onClick={() => {\n dismissModal(props.host);\n window.open(props.url, props.target);\n }}\n >\n <div>\n <img class=\"AppIcon\" src={props.iconSrc}></img>\n </div>\n <div class=\"AppName\">\n <ix-typography format=\"h4\">\n {props.name}\n {isExternal(props.target) && (\n <ix-icon\n size=\"12\"\n name=\"open-external\"\n color=\"color-soft-text\"\n ></ix-icon>\n )}\n </ix-typography>\n <ix-typography format=\"label-sm\" color=\"soft\">\n {props.description}\n </ix-typography>\n </div>\n </button>\n );\n}\n\n/** @internal */\n@Component({\n tag: 'ix-application-switch-modal',\n styleUrl: 'application-switch-modal.scss',\n shadow: true,\n})\nexport class ApplicationSwitchModal {\n @Element() hostElement!: HTMLIxApplicationSwitchModalElement;\n\n /** @internal */\n @Prop() config: AppSwitchConfiguration;\n\n componentWillLoad() {\n if (!this.config) {\n throw Error('ApplicationConfig not provided');\n }\n }\n\n render() {\n return (\n <Host>\n <ix-modal-header icon=\"apps\">\n {this.config?.i18nAppSwitch || 'Switch to application'}\n </ix-modal-header>\n <ix-modal-content class=\"content\">\n <div class=\"content-apps\">\n {(!this.config || this.config?.apps.length === 0) && (\n <div class=\"loading\">\n <ix-spinner size=\"medium\" variant=\"primary\"></ix-spinner>\n <span>\n {this.config?.i18nLoadingApps ||\n 'Loading available applications...'}\n </span>\n </div>\n )}\n {this.config?.apps.map((appEntry) => (\n <ApplicationItem\n host={this.hostElement}\n name={appEntry.name}\n description={appEntry.description}\n iconSrc={appEntry.iconSrc}\n target={appEntry.target}\n url={appEntry.url}\n selected={appEntry.id === this.config?.currentAppId}\n ></ApplicationItem>\n ))}\n </div>\n </ix-modal-content>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -88,12 +88,12 @@ const Application = /*@__PURE__*/ proxyCustomElement(class Application extends H
88
88
  });
89
89
  }
90
90
  render() {
91
- return (h(Host, { key: 'bd797967a3e5a578fc1686817aa899c87ef27213', "data-role": "", class: {
91
+ return (h(Host, { key: '4e8314dec7968a3b9b2e00a7852dc53c924d0c53', "data-role": "", class: {
92
92
  [`breakpoint-${this.breakpoint}`]: true,
93
- } }, h("slot", { key: 'ed10b1e05b826dcc5c44af641a10da168ef96756', name: "application-header" }), h("div", { key: '35a64b761c91a52dfbbf7e4dec5e92d427fa207a', class: "application" }, h("slot", { key: '06620e695f06ab2f29edde4b9bac0fd144c3984b', name: "menu" }), h("aside", { key: 'f5e99f9ac341d4ba7a72fda5ed4e47ac951cf259', class: {
93
+ } }, h("slot", { key: '2f4a52a13679af639648164eff165d5dd37ec951', name: "application-header" }), h("div", { key: 'b316ff04f23e4606d54ddcc5531ed884b988e360', class: "application" }, h("slot", { key: '40f4800917fa9f24cdc50c72543e2c7181878775', name: "menu" }), h("aside", { key: '62e0120b64ad942e7dd991b6fe9912b60e36e04f', class: {
94
94
  'application-sidebar': true,
95
95
  slotted: this.applicationSidebarSlotted,
96
- }, onClick: () => this.onContentClick() }, h("slot", { key: '57c20e1184fbc0294aad5d96f1cbafa72bbb8cf5', name: "application-sidebar", onSlotchange: () => (this.applicationSidebarSlotted = hasSlottedElements(this.applicationSidebarSlot)) })), h("main", { key: 'b38951ba5e1544913439ff3de08edebca6421de1', class: "content", onClick: () => this.onContentClick() }, h("slot", { key: '07b9c1db601fdb867a9e5cc1890eb5f20dfaecdb' })))));
96
+ }, onClick: () => this.onContentClick() }, h("slot", { key: '211f35df78de174484e914fa646227ba290fb9ae', name: "application-sidebar", onSlotchange: () => (this.applicationSidebarSlotted = hasSlottedElements(this.applicationSidebarSlot)) })), h("main", { key: 'f58973392fbff54f0aef27ae95560cfb36dbd568', class: "content", onClick: () => this.onContentClick() }, h("slot", { key: 'ac63821ff0fde080c1dd284dcb7df10113cb6477' })))));
97
97
  }
98
98
  get hostElement() { return this; }
99
99
  static get watchers() { return {
@@ -2,11 +2,12 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
2
2
  import { u as useContextProvider, A as ApplicationLayoutContext } from './context.js';
3
3
  import { a as applicationLayoutService } from './service.js';
4
4
  import { m as menuController } from './menu-service.js';
5
- import { d as defineCustomElement$6 } from './application-header.js';
6
- import { d as defineCustomElement$5 } from './dropdown.js';
7
- import { d as defineCustomElement$4 } from './icon-button.js';
8
- import { d as defineCustomElement$3 } from './menu-expand-icon.js';
9
- import { d as defineCustomElement$2 } from './spinner.js';
5
+ import { d as defineCustomElement$7 } from './application-header.js';
6
+ import { d as defineCustomElement$6 } from './dropdown.js';
7
+ import { d as defineCustomElement$5 } from './icon-button.js';
8
+ import { d as defineCustomElement$4 } from './menu-expand-icon.js';
9
+ import { d as defineCustomElement$3 } from './spinner.js';
10
+ import { d as defineCustomElement$2 } from './typography.js';
10
11
 
11
12
  const basicNavigationCss = ":host{display:flex;position:relative;width:100%;height:100%;flex-direction:column}: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 ix-application-header{z-index:calc(var(--theme-z-index-sticky) + 1)}:host .logo-wrapper{display:contents}:host .content{display:flex;height:100%;width:100%;position:relative;margin-left:3.25rem;overflow:auto}:host .navigation-content{display:flex;position:relative;flex-direction:row;height:calc(100% - 2.75rem);width:100%}:host(.hide-header) .navigation-content,:host(.hide-header) .content{height:100%}:host(.breakpoint-lg) .content{margin-left:0rem}:host(.breakpoint-sm) .content{margin-left:0px;width:100%}";
12
13
  const IxBasicNavigationStyle0 = basicNavigationCss;
@@ -75,10 +76,10 @@ const BasicNavigation = /*@__PURE__*/ proxyCustomElement(class BasicNavigation e
75
76
  (_a = this.modeDisposable) === null || _a === void 0 ? void 0 : _a.dispose();
76
77
  }
77
78
  render() {
78
- return (h(Host, { key: '2cf2956b483d753bb1966c9f4546c261add88f2f', "data-role": "", class: {
79
+ return (h(Host, { key: 'f7c1e352f7b85360afaa4aa7302394fbcefaa33a', "data-role": "", class: {
79
80
  'hide-header': this.hideHeader,
80
81
  [`breakpoint-${this.breakpoint}`]: true,
81
- } }, !this.hideHeader ? (h("ix-application-header", { name: this.applicationName }, h("slot", { name: "logo", slot: "logo" }))) : null, h("div", { key: '779599a5b282004c8facd68d15ba5eea32390632', class: "navigation-content" }, h("slot", { key: 'ec656284ec6266b8d620c26723d002839614a016', name: "menu" }), h("div", { key: 'f3bc4ea5a2afc2e67a0abff808659043468baf7b', class: "content", onClick: () => this.onContentClick() }, h("slot", { key: 'a690de1ab1bfc9bacc6828b405772a25280a4be0' })))));
82
+ } }, !this.hideHeader ? (h("ix-application-header", { name: this.applicationName }, h("slot", { name: "logo", slot: "logo" }))) : null, h("div", { key: 'bbd969c401308a804a6b8973a038daca551fc8c4', class: "navigation-content" }, h("slot", { key: '3b09f85c77fda585b91786049d590e94c6bc3717', name: "menu" }), h("div", { key: '05b1eb22f097cf421f0ed0c747364c5b33418190', class: "content", onClick: () => this.onContentClick() }, h("slot", { key: 'e46d1d8ddc56270570e28ea814087506202e7217' })))));
82
83
  }
83
84
  get hostElement() { return this; }
84
85
  static get watchers() { return {
@@ -100,7 +101,7 @@ function defineCustomElement$1() {
100
101
  if (typeof customElements === "undefined") {
101
102
  return;
102
103
  }
103
- const components = ["ix-basic-navigation", "ix-application-header", "ix-dropdown", "ix-icon-button", "ix-menu-expand-icon", "ix-spinner"];
104
+ const components = ["ix-basic-navigation", "ix-application-header", "ix-dropdown", "ix-icon-button", "ix-menu-expand-icon", "ix-spinner", "ix-typography"];
104
105
  components.forEach(tagName => { switch (tagName) {
105
106
  case "ix-basic-navigation":
106
107
  if (!customElements.get(tagName)) {
@@ -109,25 +110,30 @@ function defineCustomElement$1() {
109
110
  break;
110
111
  case "ix-application-header":
111
112
  if (!customElements.get(tagName)) {
112
- defineCustomElement$6();
113
+ defineCustomElement$7();
113
114
  }
114
115
  break;
115
116
  case "ix-dropdown":
116
117
  if (!customElements.get(tagName)) {
117
- defineCustomElement$5();
118
+ defineCustomElement$6();
118
119
  }
119
120
  break;
120
121
  case "ix-icon-button":
121
122
  if (!customElements.get(tagName)) {
122
- defineCustomElement$4();
123
+ defineCustomElement$5();
123
124
  }
124
125
  break;
125
126
  case "ix-menu-expand-icon":
126
127
  if (!customElements.get(tagName)) {
127
- defineCustomElement$3();
128
+ defineCustomElement$4();
128
129
  }
129
130
  break;
130
131
  case "ix-spinner":
132
+ if (!customElements.get(tagName)) {
133
+ defineCustomElement$3();
134
+ }
135
+ break;
136
+ case "ix-typography":
131
137
  if (!customElements.get(tagName)) {
132
138
  defineCustomElement$2();
133
139
  }
@@ -1 +1 @@
1
- {"file":"ix-basic-navigation.js","mappings":";;;;;;;;;;AAAA,MAAM,kBAAkB,GAAG,g1CAAg1C,CAAC;AAC52C,gCAAe,kBAAkB;;MCqBpB,eAAe;;;;;;0BAWL,KAAK;;2BA4BU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;0BAMpB,IAAI;;IAhCtC,kBAAkB;;QAChB,MAAA,IAAI,CAAC,eAAe,0CAAE,IAAI,CAAC;YACzB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,IAAI,EAAE,kBAAkB;SACzB,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,UAAU,CAAC;KACvD;IAMD,iBAAiB,CAAC,OAA+B;QAC/C,IAAI,CAAC,OAAO,EAAE;YACZ,wBAAwB,CAAC,yBAAyB,EAAE,CAAC;YACrD,OAAO;SACR;QAED,wBAAwB,CAAC,0BAA0B,EAAE,CAAC;QACtD,wBAAwB,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KACjD;IAOD,mBAAmB,CAAC,WAAyB;QAC3C,wBAAwB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;KACtD;IAID,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;KAClD;IAKO,cAAc;;QACpB,IAAI,cAAc,CAAC,QAAQ,EAAE;YAC3B,OAAO;SACR;QACD,MA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S,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,cAAc,EAAE,IACvD,8DAAa,CACT,CACF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/basic-navigation/basic-navigation.scss?tag=ix-basic-navigation&encapsulation=shadow","src/components/basic-navigation/basic-navigation.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 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n\n flex-direction: column;\n\n ix-application-header {\n z-index: calc(var(--theme-z-index-sticky) + 1);\n }\n\n .logo-wrapper {\n display: contents;\n }\n\n .content {\n display: flex;\n height: 100%;\n width: 100%;\n position: relative;\n margin-left: 3.25rem;\n overflow: auto;\n }\n\n .navigation-content {\n display: flex;\n position: relative;\n\n flex-direction: row;\n\n height: calc(100% - 2.75rem);\n width: 100%;\n }\n}\n\n:host(.hide-header) {\n .navigation-content,\n .content {\n height: 100%;\n }\n}\n\n:host(.breakpoint-lg) {\n .content {\n margin-left: 0rem;\n }\n}\n\n:host(.breakpoint-sm) {\n .content {\n margin-left: 0px;\n width: 100%;\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 { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { ApplicationLayoutContext } from '../utils/application-layout/context';\nimport { applicationLayoutService } from '../utils/application-layout/service';\nimport { Breakpoint } from '../utils/breakpoints';\nimport { ContextProvider, useContextProvider } from '../utils/context';\nimport { menuController } from '../utils/menu-service/menu-service';\nimport { Disposable } from '../utils/typed-event';\n\n@Component({\n tag: 'ix-basic-navigation',\n styleUrl: 'basic-navigation.scss',\n shadow: true,\n})\nexport class BasicNavigation {\n @Element() hostElement: HTMLIxBasicNavigationElement;\n\n /**\n * Application name\n */\n @Prop() applicationName: string;\n\n /**\n * Hide application header. Will disable responsive feature of basic navigation.\n */\n @Prop() hideHeader = false;\n @Watch('hideHeader')\n onHideHeaderChange() {\n this.contextProvider?.emit({\n hideHeader: this.hideHeader,\n host: 'basic-navigation',\n });\n\n this.breakpoint = applicationLayoutService.breakpoint;\n }\n\n /**\n * Change the responsive layout of the menu structure\n */\n @Prop() forceBreakpoint: Breakpoint | undefined;\n forceLayoutChange(newMode: Breakpoint | undefined) {\n if (!newMode) {\n applicationLayoutService.enableBreakpointDetection();\n return;\n }\n\n applicationLayoutService.disableBreakpointDetection();\n applicationLayoutService.setBreakpoint(newMode);\n }\n\n /**\n * Supported layouts e.g ['sm', 'md']\n */\n @Prop() breakpoints: Breakpoint[] = ['sm', 'md', 'lg'];\n @Watch('breakpoints')\n onBreakpointsChange(breakpoints: Breakpoint[]) {\n applicationLayoutService.setBreakpoints(breakpoints);\n }\n\n @State() breakpoint: Breakpoint = 'lg';\n\n get menu(): HTMLIxMenuElement | null {\n return this.hostElement.querySelector('ix-menu');\n }\n\n private modeDisposable: Disposable;\n private contextProvider: ContextProvider<typeof ApplicationLayoutContext>;\n\n private onContentClick() {\n if (menuController.isPinned) {\n return;\n }\n this.menu?.toggleMenu(false);\n }\n\n componentWillLoad() {\n applicationLayoutService.setBreakpoints(this.breakpoints);\n\n this.contextProvider = useContextProvider(\n this.hostElement,\n ApplicationLayoutContext,\n {\n hideHeader: this.hideHeader,\n host: 'basic-navigation',\n }\n );\n\n this.modeDisposable = applicationLayoutService.onChange.on((mode) => {\n this.breakpoint = mode;\n });\n this.breakpoint = applicationLayoutService.breakpoint;\n\n if (this.forceBreakpoint) {\n this.forceLayoutChange(this.forceBreakpoint);\n }\n }\n\n componentDidRender() {\n if (this.menu) {\n this.menu.applicationName = this.applicationName;\n }\n }\n\n disconnectedCallback() {\n this.modeDisposable?.dispose();\n }\n\n render() {\n return (\n <Host\n data-role=\"\"\n class={{\n 'hide-header': this.hideHeader,\n [`breakpoint-${this.breakpoint}`]: true,\n }}\n >\n {!this.hideHeader ? (\n <ix-application-header name={this.applicationName}>\n <slot name=\"logo\" slot=\"logo\"></slot>\n </ix-application-header>\n ) : null}\n <div class=\"navigation-content\">\n <slot name=\"menu\"></slot>\n <div class=\"content\" onClick={() => this.onContentClick()}>\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-basic-navigation.js","mappings":";;;;;;;;;;;AAAA,MAAM,kBAAkB,GAAG,g1CAAg1C,CAAC;AAC52C,gCAAe,kBAAkB;;MCqBpB,eAAe;;;;;;0BAWL,KAAK;;2BA4BU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;0BAMpB,IAAI;;IAhCtC,kBAAkB;;QAChB,MAAA,IAAI,CAAC,eAAe,0CAAE,IAAI,CAAC;YACzB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,IAAI,EAAE,kBAAkB;SACzB,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,GAAG,wBAAwB,CAAC,UAAU,CAAC;KACvD;IAMD,iBAAiB,CAAC,OAA+B;QAC/C,IAAI,CAAC,OAAO,EAAE;YACZ,wBAAwB,CAAC,yBAAyB,EAAE,CAAC;YACrD,OAAO;SACR;QAED,wBAAwB,CAAC,0BAA0B,EAAE,CAAC;QACtD,wBAAwB,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KACjD;IAOD,mBAAmB,CAAC,WAAyB;QAC3C,wBAAwB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;KACtD;IAID,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;KAClD;IAKO,cAAc;;QACpB,IAAI,cAAc,CAAC,QAAQ,EAAE;YAC3B,OAAO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AK,EAAC,SAAS,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,cAAc,EAAE,IACvD,8DAAa,CACT,CACF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/basic-navigation/basic-navigation.scss?tag=ix-basic-navigation&encapsulation=shadow","src/components/basic-navigation/basic-navigation.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 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n\n flex-direction: column;\n\n ix-application-header {\n z-index: calc(var(--theme-z-index-sticky) + 1);\n }\n\n .logo-wrapper {\n display: contents;\n }\n\n .content {\n display: flex;\n height: 100%;\n width: 100%;\n position: relative;\n margin-left: 3.25rem;\n overflow: auto;\n }\n\n .navigation-content {\n display: flex;\n position: relative;\n\n flex-direction: row;\n\n height: calc(100% - 2.75rem);\n width: 100%;\n }\n}\n\n:host(.hide-header) {\n .navigation-content,\n .content {\n height: 100%;\n }\n}\n\n:host(.breakpoint-lg) {\n .content {\n margin-left: 0rem;\n }\n}\n\n:host(.breakpoint-sm) {\n .content {\n margin-left: 0px;\n width: 100%;\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 { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { ApplicationLayoutContext } from '../utils/application-layout/context';\nimport { applicationLayoutService } from '../utils/application-layout/service';\nimport { Breakpoint } from '../utils/breakpoints';\nimport { ContextProvider, useContextProvider } from '../utils/context';\nimport { menuController } from '../utils/menu-service/menu-service';\nimport { Disposable } from '../utils/typed-event';\n\n@Component({\n tag: 'ix-basic-navigation',\n styleUrl: 'basic-navigation.scss',\n shadow: true,\n})\nexport class BasicNavigation {\n @Element() hostElement: HTMLIxBasicNavigationElement;\n\n /**\n * Application name\n */\n @Prop() applicationName: string;\n\n /**\n * Hide application header. Will disable responsive feature of basic navigation.\n */\n @Prop() hideHeader = false;\n @Watch('hideHeader')\n onHideHeaderChange() {\n this.contextProvider?.emit({\n hideHeader: this.hideHeader,\n host: 'basic-navigation',\n });\n\n this.breakpoint = applicationLayoutService.breakpoint;\n }\n\n /**\n * Change the responsive layout of the menu structure\n */\n @Prop() forceBreakpoint: Breakpoint | undefined;\n forceLayoutChange(newMode: Breakpoint | undefined) {\n if (!newMode) {\n applicationLayoutService.enableBreakpointDetection();\n return;\n }\n\n applicationLayoutService.disableBreakpointDetection();\n applicationLayoutService.setBreakpoint(newMode);\n }\n\n /**\n * Supported layouts e.g ['sm', 'md']\n */\n @Prop() breakpoints: Breakpoint[] = ['sm', 'md', 'lg'];\n @Watch('breakpoints')\n onBreakpointsChange(breakpoints: Breakpoint[]) {\n applicationLayoutService.setBreakpoints(breakpoints);\n }\n\n @State() breakpoint: Breakpoint = 'lg';\n\n get menu(): HTMLIxMenuElement | null {\n return this.hostElement.querySelector('ix-menu');\n }\n\n private modeDisposable: Disposable;\n private contextProvider: ContextProvider<typeof ApplicationLayoutContext>;\n\n private onContentClick() {\n if (menuController.isPinned) {\n return;\n }\n this.menu?.toggleMenu(false);\n }\n\n componentWillLoad() {\n applicationLayoutService.setBreakpoints(this.breakpoints);\n\n this.contextProvider = useContextProvider(\n this.hostElement,\n ApplicationLayoutContext,\n {\n hideHeader: this.hideHeader,\n host: 'basic-navigation',\n }\n );\n\n this.modeDisposable = applicationLayoutService.onChange.on((mode) => {\n this.breakpoint = mode;\n });\n this.breakpoint = applicationLayoutService.breakpoint;\n\n if (this.forceBreakpoint) {\n this.forceLayoutChange(this.forceBreakpoint);\n }\n }\n\n componentDidRender() {\n if (this.menu) {\n this.menu.applicationName = this.applicationName;\n }\n }\n\n disconnectedCallback() {\n this.modeDisposable?.dispose();\n }\n\n render() {\n return (\n <Host\n data-role=\"\"\n class={{\n 'hide-header': this.hideHeader,\n [`breakpoint-${this.breakpoint}`]: true,\n }}\n >\n {!this.hideHeader ? (\n <ix-application-header name={this.applicationName}>\n <slot name=\"logo\" slot=\"logo\"></slot>\n </ix-application-header>\n ) : null}\n <div class=\"navigation-content\">\n <slot name=\"menu\"></slot>\n <div class=\"content\" onClick={() => this.onContentClick()}>\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -74,7 +74,7 @@ const Breadcrumb = /*@__PURE__*/ proxyCustomElement(class Breadcrumb extends HTM
74
74
  render() {
75
75
  var _a, _b, _c, _d;
76
76
  const a11y = a11yHostAttributes(this.hostElement);
77
- return (h(Host, { key: '2aaaac4e884816c159025205021fa3ae168b2f81' }, h("ix-dropdown", { key: 'd532d910af7b09ab13becd697619aa925366ae49', id: this.previousDropdownId, "aria-label": this.ariaLabelPreviousButton, trigger: ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) > this.visibleItemCount
77
+ return (h(Host, { key: '6fd820850cf0fce9b8f4e6d16587ad3458062c48' }, h("ix-dropdown", { key: '46a3b21d0be6c27f8cc5050b5cb420ce1d55c046', id: this.previousDropdownId, "aria-label": this.ariaLabelPreviousButton, trigger: ((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) > this.visibleItemCount
78
78
  ? this.previousButtonRef
79
79
  : null, onShowChanged: ({ detail }) => {
80
80
  this.isPreviousDropdownExpanded = detail;
@@ -91,7 +91,7 @@ const Breadcrumb = /*@__PURE__*/ proxyCustomElement(class Breadcrumb extends HTM
91
91
  return (h("ix-dropdown-item", { label: label, onClick: () => {
92
92
  this.onItemClick(label);
93
93
  }, onItemClick: (event) => event.stopPropagation() }));
94
- })), ((_b = this.items) === null || _b === void 0 ? void 0 : _b.length) > this.visibleItemCount ? (h("ix-breadcrumb-item", { id: this.previousButtonId, ref: (ref) => (this.previousButtonRef = ref), label: "...", tabIndex: 1, onItemClick: (event) => event.stopPropagation(), "aria-describedby": this.previousDropdownId, "aria-controls": this.previousDropdownId, "aria-expanded": a11yBoolean(this.isPreviousDropdownExpanded), class: 'previous-button' })) : null, h("nav", { key: '399d6dcf91ecd9cb5cd7fd9797f28431ef262f78', class: "crumb-items", "aria-label": (_c = a11y['aria-label']) !== null && _c !== void 0 ? _c : 'breadcrumbs' }, h("ol", { key: 'ee7f6ebf18d7c1a699886b704841ccdc7bd4e787' }, h("slot", { key: '7f12ae63b997b9a350ba00b96c85e870a9520d1b' }))), h("ix-dropdown", { key: 'e90bf4b2aedd117179f4a3298f22f49196bd4c62', trigger: this.nextButtonRef }, (_d = this.nextItems) === null || _d === void 0 ? void 0 : _d.map((item) => (h("ix-dropdown-item", { label: item, onClick: (e) => {
94
+ })), ((_b = this.items) === null || _b === void 0 ? void 0 : _b.length) > this.visibleItemCount ? (h("ix-breadcrumb-item", { id: this.previousButtonId, ref: (ref) => (this.previousButtonRef = ref), label: "...", tabIndex: 1, onItemClick: (event) => event.stopPropagation(), "aria-describedby": this.previousDropdownId, "aria-controls": this.previousDropdownId, "aria-expanded": a11yBoolean(this.isPreviousDropdownExpanded), class: 'previous-button' })) : null, h("nav", { key: 'd4ea11b5d3417f434ef2485075cb08c66fe7169e', class: "crumb-items", "aria-label": (_c = a11y['aria-label']) !== null && _c !== void 0 ? _c : 'breadcrumbs' }, h("ol", { key: '97fa52f7ddf3fc18ad7a90b8f28cf561d238146f' }, h("slot", { key: '33b1ce72c69620d9bd7b702c7bf5540c081c687d' }))), h("ix-dropdown", { key: 'e635c5495fdfd8e21f6e233d3ca6b5c444e099dc', trigger: this.nextButtonRef }, (_d = this.nextItems) === null || _d === void 0 ? void 0 : _d.map((item) => (h("ix-dropdown-item", { label: item, onClick: (e) => {
95
95
  this.nextClick.emit({
96
96
  event: e,
97
97
  item,
@@ -146,16 +146,16 @@ const CardList = /*@__PURE__*/ proxyCustomElement(class CardList extends HTMLEle
146
146
  }
147
147
  }
148
148
  render() {
149
- return (h(Host, { key: 'c52ee605d2f81a82788543defb031d99a7629eca' }, h(CardListTitle, { key: '976f9943a705914b148bec2cfbf90d44a63905c3', isCollapsed: this.collapse, label: this.label, showAllLabel: this.i18nShowAll, showAllCounter: this.showAllCount === undefined
149
+ return (h(Host, { key: '59b22287fe21651d515b79a8394b91f600f07a7a' }, h(CardListTitle, { key: '8f81a2633acb901e848c243a51d60752b35e5765', isCollapsed: this.collapse, label: this.label, showAllLabel: this.i18nShowAll, showAllCounter: this.showAllCount === undefined
150
150
  ? this.numberOfAllChildElements
151
- : this.showAllCount, onClick: () => this.onCardListVisibilityToggle(), onShowAllClick: (e) => this.onShowAllClick(e), hideShowAll: this.hideShowAll }), h("div", { key: 'cbf01e7d4cc781ccf3458fcb4e0a3c70e4cea062', class: {
151
+ : this.showAllCount, onClick: () => this.onCardListVisibilityToggle(), onShowAllClick: (e) => this.onShowAllClick(e), hideShowAll: this.hideShowAll }), h("div", { key: 'd53f0dcc4707057dedbc08c3b57f9cde8887f225', class: {
152
152
  CardList__Overflow: true,
153
- }, style: this.computeMaskLayer() }, h("div", { key: '025b916a7b4b979303122302cf33a593ecfca968', class: {
153
+ }, style: this.computeMaskLayer() }, h("div", { key: '74e389bb906687dff585eabb348fd6265af7d401', class: {
154
154
  CardList__Content: true,
155
155
  CardList__Content__Collapsed: this.collapse,
156
156
  CardList__Style__Flexbox__Scroll: this.listStyle === 'stack',
157
157
  CardList__Style__Infinite__Scroll: this.listStyle === 'scroll',
158
- }, onScroll: () => this.onCardListScroll() }, h("slot", { key: 'bf626a7477a10cc184eeec082ed4f357be37d4b0', onSlotchange: () => this.changeVisibilityOfSlotChildren() }), this.isShowMoreCardVisible() ? (h("ix-card", { class: {
158
+ }, onScroll: () => this.onCardListScroll() }, h("slot", { key: '9a2ce4357b2e065c35c93c9fc24ef21c31ca0827', onSlotchange: () => this.changeVisibilityOfSlotChildren() }), this.isShowMoreCardVisible() ? (h("ix-card", { class: {
159
159
  Show__All__Card: true,
160
160
  }, onClick: (event) => this.showMoreCardClick.emit({
161
161
  nativeEvent: event,
@@ -407,19 +407,19 @@ const CategoryFilter = /*@__PURE__*/ proxyCustomElement(class CategoryFilter ext
407
407
  }
408
408
  render() {
409
409
  var _a;
410
- return (h(Host, { key: '93576fddd9689dea711d0949f5beab5e713873c4' }, h("form", { key: '20354467e26b43a4c55a8710763a73705d17e76a', ref: (el) => (this.formElement = el) }, h("div", { key: '198aaaf732a7e5b5f3f2522bf2d5218ebceaf19d', "read-only": this.readonly, class: {
410
+ return (h(Host, { key: '460d61c8d2a83d95445b5cad86e1ea2e2fbbf289' }, h("form", { key: '401290f84df0375dd2d23214e10942382dbc28de', ref: (el) => (this.formElement = el) }, h("div", { key: '06d9f1a58cd4daa32d13509142625a91cc4884f4', "read-only": this.readonly, class: {
411
411
  'input-container': true,
412
412
  disabled: this.disabled,
413
413
  focus: this.hasFocus,
414
414
  readonly: this.readonly,
415
415
  'no-icon': this.hideIcon,
416
- } }, h("ix-icon", { key: '74423d979bcd6abce82ec047fe7dd3d27323590c', color: this.getIconColor(), class: { 'd-none': this.hideIcon }, name: this.icon, size: "16" }), h("div", { key: '62999ed2ef9857d5fa5d542df2973d600c54de8f', class: "token-container" }, h("ul", { key: 'a2696774a36716c37b23cea236bfd96b58bd4f4b', class: "list-unstyled" }, this.filterTokens.map((value, index) => (h("li", { key: value.toString(), class: {
416
+ } }, h("ix-icon", { key: 'b24d1cfd93ac33cb209d2ce516537c72ea0a3010', color: this.getIconColor(), class: { 'd-none': this.hideIcon }, name: this.icon, size: "16" }), h("div", { key: '61ab21b44baf97bc8c65cf7ac65f8ee418210b6e', class: "token-container" }, h("ul", { key: 'd4e318bc1204bbf50d9894b5b735f4b2faa03d11', class: "list-unstyled" }, this.filterTokens.map((value, index) => (h("li", { key: value.toString(), class: {
417
417
  animate__animated: true,
418
418
  animate__fadein: true,
419
419
  } }, h("ix-filter-chip", { disabled: this.disabled, readonly: this.readonly, onClick: (e) => e.stopPropagation(), onCloseClick: () => this.removeToken(index) }, this.getFilterChipLabel(value))))), this.categories === undefined ? ('') : (h("li", { class: {
420
420
  'category-preview': true,
421
421
  'd-none': this.category === undefined,
422
- } }, (_a = this.categories[this.category]) === null || _a === void 0 ? void 0 : _a.label)), h("input", { key: 'a1ef3016b0ddf82e876c83e3e616635aa2016944', class: {
422
+ } }, (_a = this.categories[this.category]) === null || _a === void 0 ? void 0 : _a.label)), h("input", { key: '457dee28a04610b7299aa2939c3e1280eca2f16f', class: {
423
423
  'text-input': true,
424
424
  'hide-placeholder': this.readonly ||
425
425
  this.disabled ||
@@ -39,11 +39,11 @@ const Chip = /*@__PURE__*/ proxyCustomElement(class Chip extends HTMLElement {
39
39
  [this.outline ? 'borderColor' : 'backgroundColor']: this.background,
40
40
  };
41
41
  }
42
- return (h(Host, { key: 'bc9150f9d71eb0d048c778e21ea5afb39a1dc3f9', tabIndex: "-1", title: this.el.textContent, style: this.variant === 'custom'
42
+ return (h(Host, { key: '8ede968301d60515bc378c80141926ad75fab0cd', tabIndex: "-1", title: this.el.textContent, style: this.variant === 'custom'
43
43
  ? {
44
44
  '--ix-icon-button-color': (_b = this.chipColor) !== null && _b !== void 0 ? _b : this.color,
45
45
  }
46
- : {} }, h("div", { key: '82c39bab0cff12de6c830360ad06281993e4dac6', style: Object.assign({}, customStyle), class: {
46
+ : {} }, h("div", { key: 'ff82604fbd0ed7d74cdd753e1f1690f4bf67959f', style: Object.assign({}, customStyle), class: {
47
47
  container: true,
48
48
  outline: this.outline,
49
49
  inactive: isInactive,
@@ -57,10 +57,10 @@ const Chip = /*@__PURE__*/ proxyCustomElement(class Chip extends HTMLElement {
57
57
  custom: this.variant === 'custom',
58
58
  closable: this.closable,
59
59
  icon: !!this.icon,
60
- } }, h("ix-icon", { key: '359b67a50b9c3b438fc7884b7b6dab7027a284c4', class: {
60
+ } }, h("ix-icon", { key: '7e033b4f17e195a9ce75e3fbea992290180feb1f', class: {
61
61
  'with-icon': true,
62
62
  hidden: !this.icon,
63
- }, name: this.icon, size: '24' }), h("span", { key: '800965a9f8c4013009ab1345eed7fea6cb6ae1f2', class: "slot-container" }, h("slot", { key: 'a03c010efbb304e6e70ddb990fb1e91ffa667e0b' })), isInactive === false && this.closable ? this.getCloseButton() : null)));
63
+ }, name: this.icon, size: '24' }), h("span", { key: '0d0bafd87e80596388ff1b74bcb9fa6024f6fe03', class: "slot-container" }, h("slot", { key: '057958812ca98820f4e039b7c5e2f016d27854c6' })), isInactive === false && this.closable ? this.getCloseButton() : null)));
64
64
  }
65
65
  get el() { return this; }
66
66
  static get style() { return IxChipStyle0; }
@@ -15,12 +15,12 @@ const Content = /*@__PURE__*/ proxyCustomElement(class Content extends HTMLEleme
15
15
  return this.hostElement.shadowRoot.querySelector('.content-header slot');
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '7298c4abd09355a3ee73d4a236e7025a72720cf7' }, h("div", { key: 'd7ba3fbc44d66ba0ae4e747a5cc5d77c7388b138', class: {
18
+ return (h(Host, { key: '61f9325ce908e838c83a286da21471c8f081cf7e' }, h("div", { key: '66adfdde8a6f7e4cec46bc8ac3111f9fd344462c', class: {
19
19
  'content-header': true,
20
20
  slotted: this.isContentHeaderSlotted,
21
- } }, h("slot", { key: '233200870318a9276d3e0d5c5d5d03980fbe1793', name: "header", onSlotchange: () => {
21
+ } }, h("slot", { key: '00a1dffb70b39ae24c7ffc7a02649f5c870e95e9', name: "header", onSlotchange: () => {
22
22
  this.isContentHeaderSlotted = hasSlottedElements(this.contentHeaderSlot);
23
- } })), h("div", { key: 'ee7f8ceb237b4c33d578262c74d4eca9bdf36070', class: "content" }, h("slot", { key: 'fbbf86e9c454f04dbe33a9b0456f1cd02ec72c02' }))));
23
+ } })), h("div", { key: 'd27dfeb1305abb6cacdf16a5476e5d7b32d6f3ba', class: "content" }, h("slot", { key: '054a581bc21257f46c3377c53c0e8dbacc4321b5' }))));
24
24
  }
25
25
  get hostElement() { return this; }
26
26
  static get style() { return IxContentStyle0; }
@@ -13,7 +13,7 @@ const CssGridItem = /*@__PURE__*/ proxyCustomElement(class CssGridItem extends H
13
13
  render() {
14
14
  const style = {};
15
15
  style['grid-area'] = this.itemName;
16
- return (h(Host, { key: '7eb12cf19328a03e78db24d81bc88158b37e7e4c', style: style }, h("slot", { key: '123dfc3d9459ae11ed038f5c20db4597f6fb6c42' })));
16
+ return (h(Host, { key: '5e5e54a887244e85620d34eb2759fadf20883dbd', style: style }, h("slot", { key: '14c51da716e0715e205f28181a3d51813ad88027' })));
17
17
  }
18
18
  static get style() { return IxCssGridItemStyle0; }
19
19
  }, [1, "ix-css-grid-item", {
@@ -145,14 +145,14 @@ const DateDropdown = /*@__PURE__*/ proxyCustomElement(class DateDropdown extends
145
145
  this.datePickerTouched) {
146
146
  this.onDateSelect(this.currentRangeValue);
147
147
  }
148
- } }, h("ix-layout-grid", { key: 'b8d09d4ddac4960ee2ea23ed9ec6bf5ecb59c5ae', "no-margin": "true" }, h("ix-row", { key: 'fa9099679383056a268265eec7316ced4cd0085a' }, ((_a = this.dateRangeOptions) === null || _a === void 0 ? void 0 : _a.length) > 1 && (h("ix-col", { class: {
148
+ } }, h("ix-layout-grid", { key: 'b8d09d4ddac4960ee2ea23ed9ec6bf5ecb59c5ae', "no-margin": "true" }, h("ix-row", { key: 'fa9099679383056a268265eec7316ced4cd0085a' }, ((_a = this.dateRangeOptions) === null || _a === void 0 ? void 0 : _a.length) > 1 && (h("ix-col", { key: '9107d5b1053c93d662568b0efa7bb89d60b80ed6', class: {
149
149
  'no-margin': true,
150
150
  'border-right': this.selectedDateRangeId === 'custom',
151
- } }, this.dateRangeOptions.map((dateRangeOption) => (h("ix-dropdown-item", { label: dateRangeOption.label, onClick: () => this.onRangeListSelect(dateRangeOption.id), checked: this.selectedDateRangeId === dateRangeOption.id }))), h("div", { hidden: !this.customRangeAllowed }, h("ix-dropdown-item", { label: this.i18nCustomItem, checked: this.selectedDateRangeId === 'custom', onClick: () => this.onRangeListSelect('custom') })))), h("ix-col", { key: '614659cb9511b4bf5267e9ecb3c5a122d91e103a', class: "no-margin" }, this.selectedDateRangeId === 'custom' && (h(Fragment, null, h("ix-date-picker", { standaloneAppearance: false, onDateChange: (e) => {
151
+ } }, this.dateRangeOptions.map((dateRangeOption) => (h("ix-dropdown-item", { label: dateRangeOption.label, onClick: () => this.onRangeListSelect(dateRangeOption.id), checked: this.selectedDateRangeId === dateRangeOption.id }))), h("div", { key: '0a2993cbe4d995e4dd6345e8f1b4e32cb39997d8', hidden: !this.customRangeAllowed }, h("ix-dropdown-item", { key: '7bddded3f580f85c9222e563df5ef80a6a5470ed', label: this.i18nCustomItem, checked: this.selectedDateRangeId === 'custom', onClick: () => this.onRangeListSelect('custom') })))), h("ix-col", { key: 'fe530809dc0eff3d95e4305ef48d8f46ebaf2a20', class: "no-margin" }, this.selectedDateRangeId === 'custom' && (h(Fragment, { key: '6fb55cd06c7467fa1277476177b8db788fc6e614' }, h("ix-date-picker", { key: 'dac5bfab1baa592aaf0db6aaec80b44592c048f9', standaloneAppearance: false, onDateChange: (e) => {
152
152
  e.stopPropagation();
153
153
  this.currentRangeValue = Object.assign(Object.assign({}, e.detail), { id: 'custom' });
154
154
  this.datePickerTouched = true;
155
- }, onDateRangeChange: (e) => e.stopPropagation(), format: this.format, range: this.range, from: this.from || ((_b = this.currentRangeValue) === null || _b === void 0 ? void 0 : _b.from), to: this.to || ((_c = this.currentRangeValue) === null || _c === void 0 ? void 0 : _c.to), minDate: this.minDate, maxDate: this.maxDate, today: this.today }), h("div", { class: "pull-right" }, h("ix-button", { onClick: () => {
155
+ }, onDateRangeChange: (e) => e.stopPropagation(), format: this.format, range: this.range, from: this.from || ((_b = this.currentRangeValue) === null || _b === void 0 ? void 0 : _b.from), to: this.to || ((_c = this.currentRangeValue) === null || _c === void 0 ? void 0 : _c.to), minDate: this.minDate, maxDate: this.maxDate, today: this.today }), h("div", { key: '613a674664d2b55a8012fc2b869021e8dfeb10b3', class: "pull-right" }, h("ix-button", { key: '9d5470cfb8ddb6e086bb821baaefb25723777337', onClick: () => {
156
156
  this.onDateSelect(this.currentRangeValue);
157
157
  } }, this.i18nDone))))))))));
158
158
  }
@@ -1 +1 @@
1
- {"file":"ix-date-dropdown.js","mappings":";;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,uoCAAuoC,CAAC;AAChqC,6BAAe,eAAe;;MC4CjB,YAAY;;;;;;QAwIf,sBAAiB,GAAG,KAAK,CAAC;wBAhIf,KAAK;sBAMP,YAAY;qBAKb,IAAI;;;;;2BAkCE,QAAQ;kCAqBD,IAAI;gCAegB,EAAE;8BAUO,WAAW;wBAKxB,MAAM;2BAKC,cAAc;qBAGlDA,UAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;;;;;IAvDtC,mBAAmB;QACjB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzC,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE7C,IAAI,CAAC,YAAY,CAAC;YAChB,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI;YACjC,EAAE,EAAE,IAAI,CAAC,iBAAiB,CAAC,EAAE;YAC7B,EAAE,EAAE,IAAI,CAAC,iBAAiB,CAAC,EAAE;SAC9B,CAAC,CAAC;KACJ;IAwBD,wBAAwB;QACtB,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,mBAAmB,EAAE,CAAC;KAC5B;IAqCD,gBAAgB;QACd,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,aAAa,EAAE,CAAC;SACtB;KACF;IAGD,iBAAiB;QACf,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KAC9C;;;;;IAOM,MAA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date-dropdown/date-dropdown.scss?tag=ix-date-dropdown&encapsulation=shadow","src/components/date-dropdown/date-dropdown.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/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-block;\n position: relative;\n\n @media (max-width: 48em) {\n .min-width {\n width: min-content;\n }\n }\n\n @media (min-width: 48em) {\n .border-right {\n border-right: var(--theme-x-weak-bdr-2);\n }\n }\n\n ix-button {\n width: 100%;\n }\n\n .max-height {\n max-height: max-content;\n }\n\n .no-margin {\n margin: 0;\n padding: 0;\n }\n\n .pull-right {\n float: right;\n padding: $tiny-space $default-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 Fragment,\n h,\n Host,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { DateTime } from 'luxon';\n\nexport type DateDropdownOption = {\n id: string;\n label: string;\n from: string;\n to: string;\n};\n\nexport type DateRangeChangeEvent = {\n id: string;\n from: string;\n to: string;\n};\n\n/**\n * @since 2.1.0\n */\n@Component({\n tag: 'ix-date-dropdown',\n styleUrl: 'date-dropdown.scss',\n shadow: true,\n})\nexport class DateDropdown {\n @Element() hostElement: HTMLIxDateDropdownElement;\n\n /**\n * Disable the button that opens the dropdown containing the date picker.\n *\n * @since 2.3.0\n */\n @Prop() disabled = false;\n\n /**\n * Date format string.\n * See @link https://moment.github.io/luxon/#/formatting?id=table-of-tokens for all available tokens.\n */\n @Prop() format = 'yyyy/LL/dd';\n\n /**\n * If true a range of dates can be selected.\n */\n @Prop() range = true;\n\n /**\n * Picker date. If the picker is in range mode this property is the start date.\n * If set to `null` no default start date will be pre-selected.\n *\n * Format is based on `format`\n */\n @Prop() from: string;\n\n /**\n * Picker date. If the picker is in range mode this property is the end date.\n * If the picker is not in range mode leave this value `null`\n *\n * Format is based on `format`\n */\n @Prop() to: string;\n\n /**\n * The earliest date that can be selected by the date picker.\n * If not set there will be no restriction.\n */\n @Prop() minDate: string;\n\n /**\n * The latest date that can be selected by the date picker.\n * If not set there will be no restriction.\n */\n @Prop() maxDate: string;\n\n /**\n * Used to set the initial select date range as well as the button name,\n * if not set or no according date range label is found, nothing will be selected\n */\n @Prop() dateRangeId = 'custom';\n @Watch('dateRangeId')\n @Watch('to')\n @Watch('from')\n onDateRangeIdChange() {\n this.onRangeListSelect(this.dateRangeId);\n this.updateCurrentDate();\n this.setDateRangeSelection(this.dateRangeId);\n\n this.onDateSelect({\n from: this.currentRangeValue.from,\n to: this.currentRangeValue.to,\n id: this.currentRangeValue.id,\n });\n }\n\n /**\n * Controls whether the user is allowed to pick custom date ranges in the component.\n * When set to 'true', the user can select a custom date range using the date picker.\n * When set to 'false', only predefined time date ranges are available for selection.\n */\n @Prop() customRangeAllowed = true;\n\n /**\n * An array of predefined date range options for the date picker.\n * Each option is an object with a label describing the range and a function\n * that returns the start and end dates of the range as a DateRangeOption object.\n *\n * Example format:\n * {\n * id: 'some unique id',\n * label: 'Name of the range',\n * from: undefined, to: '2023/03/29'\n * },\n * // ... other predefined date range options ...\n */\n @Prop() dateRangeOptions: DateDropdownOption[] = [];\n @Watch('dateRangeOptions')\n onDateRangeOptionsChange() {\n this.initialize();\n this.onDateRangeIdChange();\n }\n\n /**\n * Text for custom dropdown item. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-custom-item' }) i18nCustomItem = 'Custom...';\n\n /**\n * Text for the done button. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-done' }) i18nDone = 'Done';\n\n /**\n * Text for the done button. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-no-range' }) i18nNoRange = 'No range set';\n\n /** @internal */\n @Prop() today = DateTime.now().toISO();\n\n /**\n * EventEmitter for date range change events.\n *\n * This event is emitted when the date range changes within the component.\n * The event payload contains information about the selected date range.\n */\n @Event() private dateRangeChange: EventEmitter<DateRangeChangeEvent>;\n\n @State() private selectedDateRangeId: 'custom' | (string & {});\n @State() private currentRangeValue: {\n from: string;\n to: string;\n id: string;\n };\n @State() private triggerRef: HTMLElement;\n\n @Watch('disabled')\n onDisabledChange() {\n if (this.disabled) {\n this.closeDropdown();\n }\n }\n private datePickerTouched = false;\n\n componentWillLoad() {\n this.initialize();\n this.setDateRangeSelection(this.dateRangeId);\n }\n\n /**\n * Retrieves the currently selected date range from the component.\n * This method returns the selected date range as a `DateChangeEvent` object.\n */\n @Method()\n public async getDateRange(): Promise<DateRangeChangeEvent> {\n return this.currentRangeValue;\n }\n\n private initialize() {\n const isCustomRange =\n this.dateRangeId === 'custom' ||\n (!this.dateRangeId && !!this.from && !!this.to);\n\n if (isCustomRange && this.customRangeAllowed) {\n this.selectedDateRangeId = 'custom';\n this.updateCurrentDate();\n\n return;\n }\n const isValidConfiguration = !isCustomRange && !this.from;\n if (!isValidConfiguration) {\n console.warn(\n '\"from\" and \"range-date-id\" is provided this is an invalid combination. Using \"custom\".'\n );\n\n this.selectedDateRangeId = 'custom';\n this.updateCurrentDate();\n\n return;\n }\n }\n\n private updateCurrentDate() {\n this.currentRangeValue = {\n id: this.selectedDateRangeId,\n from: this.from,\n to: this.to,\n };\n }\n\n private onDateSelect(\n rangeValue: { from: string; to: string; id: string },\n preserveDropdown = true\n ) {\n this.dateRangeChange.emit(rangeValue);\n\n if (preserveDropdown) {\n this.closeDropdown();\n }\n\n this.datePickerTouched = false;\n }\n\n private onRangeListSelect(id: string) {\n if (this.setDateRangeSelection(id)) {\n this.onDateSelect(this.currentRangeValue);\n }\n }\n\n private setDateRangeSelection(id: string) {\n this.selectedDateRangeId = id;\n const option = this.dateRangeOptions.find((range) => range.id === id);\n\n if (option) {\n this.currentRangeValue = option;\n }\n\n return option;\n }\n\n private closeDropdown() {\n this.hostElement.shadowRoot.querySelector('ix-dropdown').show = false;\n }\n\n private getButtonLabel() {\n if (this.selectedDateRangeId === 'custom' && this.currentRangeValue?.from) {\n let range = this.currentRangeValue.from;\n\n if (this.currentRangeValue.to) {\n range += ` - ${this.currentRangeValue.to}`;\n }\n\n return range;\n }\n\n if (!this.selectedDateRangeId) {\n return this.i18nNoRange;\n }\n\n if (!this.dateRangeOptions || this.dateRangeOptions?.length === 0) {\n return this.i18nNoRange;\n }\n\n const option = this.dateRangeOptions.find(\n (option) => option.id === this.selectedDateRangeId\n );\n\n if (!option) {\n console.error(\n `Cannot find range option with id ${this.selectedDateRangeId}`\n );\n return this.i18nNoRange;\n }\n\n return option.label;\n }\n\n render() {\n return (\n <Host>\n <ix-button\n data-testid=\"date-dropdown-trigger\"\n data-date-dropdown-trigger\n variant=\"primary\"\n icon=\"history\"\n ref={(ref) => (this.triggerRef = ref)}\n disabled={this.disabled}\n >\n {this.getButtonLabel()}\n </ix-button>\n <ix-dropdown\n data-testid=\"date-dropdown\"\n data-date-dropdown\n class=\"min-width max-height\"\n trigger={this.triggerRef}\n closeBehavior=\"outside\"\n placement=\"bottom-start\"\n onShowChanged={({ detail: show }) => {\n if (\n !show &&\n this.selectedDateRangeId === 'custom' &&\n this.datePickerTouched\n ) {\n this.onDateSelect(this.currentRangeValue);\n }\n }}\n >\n <ix-layout-grid no-margin=\"true\">\n <ix-row>\n {this.dateRangeOptions?.length > 1 && (\n <ix-col\n class={{\n 'no-margin': true,\n 'border-right': this.selectedDateRangeId === 'custom',\n }}\n >\n {this.dateRangeOptions.map((dateRangeOption) => (\n <ix-dropdown-item\n label={dateRangeOption.label}\n onClick={() => this.onRangeListSelect(dateRangeOption.id)}\n checked={this.selectedDateRangeId === dateRangeOption.id}\n ></ix-dropdown-item>\n ))}\n <div hidden={!this.customRangeAllowed}>\n <ix-dropdown-item\n label={this.i18nCustomItem}\n checked={this.selectedDateRangeId === 'custom'}\n onClick={() => this.onRangeListSelect('custom')}\n ></ix-dropdown-item>\n </div>\n </ix-col>\n )}\n <ix-col class=\"no-margin\">\n {this.selectedDateRangeId === 'custom' && (\n <Fragment>\n <ix-date-picker\n standaloneAppearance={false}\n onDateChange={(e) => {\n e.stopPropagation();\n this.currentRangeValue = {\n ...e.detail,\n id: 'custom',\n };\n this.datePickerTouched = true;\n }}\n onDateRangeChange={(e) => e.stopPropagation()}\n format={this.format}\n range={this.range}\n from={this.from || this.currentRangeValue?.from}\n to={this.to || this.currentRangeValue?.to}\n minDate={this.minDate}\n maxDate={this.maxDate}\n today={this.today}\n ></ix-date-picker>\n <div class=\"pull-right\">\n <ix-button\n onClick={() => {\n this.onDateSelect(this.currentRangeValue);\n }}\n >\n {this.i18nDone}\n </ix-button>\n </div>\n </Fragment>\n )}\n </ix-col>\n </ix-row>\n </ix-layout-grid>\n </ix-dropdown>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"ix-date-dropdown.js","mappings":";;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,uoCAAuoC,CAAC;AAChqC,6BAAe,eAAe;;MC4CjB,YAAY;;;;;;QAwIf,sBAAiB,GAAG,KAAK,CAAC;wBAhIf,KAAK;sBAMP,YAAY;qBAKb,IAAI;;;;;2BAkCE,QAAQ;kCAqBD,IAAI;gCAegB,EAAE;8BAUO,WAAW;wBAKxB,MAAM;2BAKC,cAAc;qBAGlDA,UAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;;;;;IAvDtC,mBAAmB;QACjB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzC,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE7C,IAAI,CAAC,YAAY,CAAC;YAChB,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI;YACjC,EAAE,EAAE,IAAI,CAAC,iBAAi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,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,GACD,EAClB,4DAAK,KAAK,EAAC,YAAY,IACrB,kEACE,OAAO,EAAE;gBACP,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;aAC3C,IAEA,IAAI,CAAC,QAAQ,CACJ,CACR,CACG,CACZ,CACM,CACF,CACM,CACL,CACT,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["DateTime"],"sources":["src/components/date-dropdown/date-dropdown.scss?tag=ix-date-dropdown&encapsulation=shadow","src/components/date-dropdown/date-dropdown.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/shadow-dom/component';\n\n:host {\n @include ix-component;\n display: inline-block;\n position: relative;\n\n @media (max-width: 48em) {\n .min-width {\n width: min-content;\n }\n }\n\n @media (min-width: 48em) {\n .border-right {\n border-right: var(--theme-x-weak-bdr-2);\n }\n }\n\n ix-button {\n width: 100%;\n }\n\n .max-height {\n max-height: max-content;\n }\n\n .no-margin {\n margin: 0;\n padding: 0;\n }\n\n .pull-right {\n float: right;\n padding: $tiny-space $default-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 Fragment,\n h,\n Host,\n Method,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\nimport { DateTime } from 'luxon';\n\nexport type DateDropdownOption = {\n id: string;\n label: string;\n from: string;\n to: string;\n};\n\nexport type DateRangeChangeEvent = {\n id: string;\n from: string;\n to: string;\n};\n\n/**\n * @since 2.1.0\n */\n@Component({\n tag: 'ix-date-dropdown',\n styleUrl: 'date-dropdown.scss',\n shadow: true,\n})\nexport class DateDropdown {\n @Element() hostElement: HTMLIxDateDropdownElement;\n\n /**\n * Disable the button that opens the dropdown containing the date picker.\n *\n * @since 2.3.0\n */\n @Prop() disabled = false;\n\n /**\n * Date format string.\n * See @link https://moment.github.io/luxon/#/formatting?id=table-of-tokens for all available tokens.\n */\n @Prop() format = 'yyyy/LL/dd';\n\n /**\n * If true a range of dates can be selected.\n */\n @Prop() range = true;\n\n /**\n * Picker date. If the picker is in range mode this property is the start date.\n * If set to `null` no default start date will be pre-selected.\n *\n * Format is based on `format`\n */\n @Prop() from: string;\n\n /**\n * Picker date. If the picker is in range mode this property is the end date.\n * If the picker is not in range mode leave this value `null`\n *\n * Format is based on `format`\n */\n @Prop() to: string;\n\n /**\n * The earliest date that can be selected by the date picker.\n * If not set there will be no restriction.\n */\n @Prop() minDate: string;\n\n /**\n * The latest date that can be selected by the date picker.\n * If not set there will be no restriction.\n */\n @Prop() maxDate: string;\n\n /**\n * Used to set the initial select date range as well as the button name,\n * if not set or no according date range label is found, nothing will be selected\n */\n @Prop() dateRangeId = 'custom';\n @Watch('dateRangeId')\n @Watch('to')\n @Watch('from')\n onDateRangeIdChange() {\n this.onRangeListSelect(this.dateRangeId);\n this.updateCurrentDate();\n this.setDateRangeSelection(this.dateRangeId);\n\n this.onDateSelect({\n from: this.currentRangeValue.from,\n to: this.currentRangeValue.to,\n id: this.currentRangeValue.id,\n });\n }\n\n /**\n * Controls whether the user is allowed to pick custom date ranges in the component.\n * When set to 'true', the user can select a custom date range using the date picker.\n * When set to 'false', only predefined time date ranges are available for selection.\n */\n @Prop() customRangeAllowed = true;\n\n /**\n * An array of predefined date range options for the date picker.\n * Each option is an object with a label describing the range and a function\n * that returns the start and end dates of the range as a DateRangeOption object.\n *\n * Example format:\n * {\n * id: 'some unique id',\n * label: 'Name of the range',\n * from: undefined, to: '2023/03/29'\n * },\n * // ... other predefined date range options ...\n */\n @Prop() dateRangeOptions: DateDropdownOption[] = [];\n @Watch('dateRangeOptions')\n onDateRangeOptionsChange() {\n this.initialize();\n this.onDateRangeIdChange();\n }\n\n /**\n * Text for custom dropdown item. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-custom-item' }) i18nCustomItem = 'Custom...';\n\n /**\n * Text for the done button. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-done' }) i18nDone = 'Done';\n\n /**\n * Text for the done button. Will be used for translation.\n */\n @Prop({ attribute: 'i18n-no-range' }) i18nNoRange = 'No range set';\n\n /** @internal */\n @Prop() today = DateTime.now().toISO();\n\n /**\n * EventEmitter for date range change events.\n *\n * This event is emitted when the date range changes within the component.\n * The event payload contains information about the selected date range.\n */\n @Event() private dateRangeChange: EventEmitter<DateRangeChangeEvent>;\n\n @State() private selectedDateRangeId: 'custom' | (string & {});\n @State() private currentRangeValue: {\n from: string;\n to: string;\n id: string;\n };\n @State() private triggerRef: HTMLElement;\n\n @Watch('disabled')\n onDisabledChange() {\n if (this.disabled) {\n this.closeDropdown();\n }\n }\n private datePickerTouched = false;\n\n componentWillLoad() {\n this.initialize();\n this.setDateRangeSelection(this.dateRangeId);\n }\n\n /**\n * Retrieves the currently selected date range from the component.\n * This method returns the selected date range as a `DateChangeEvent` object.\n */\n @Method()\n public async getDateRange(): Promise<DateRangeChangeEvent> {\n return this.currentRangeValue;\n }\n\n private initialize() {\n const isCustomRange =\n this.dateRangeId === 'custom' ||\n (!this.dateRangeId && !!this.from && !!this.to);\n\n if (isCustomRange && this.customRangeAllowed) {\n this.selectedDateRangeId = 'custom';\n this.updateCurrentDate();\n\n return;\n }\n const isValidConfiguration = !isCustomRange && !this.from;\n if (!isValidConfiguration) {\n console.warn(\n '\"from\" and \"range-date-id\" is provided this is an invalid combination. Using \"custom\".'\n );\n\n this.selectedDateRangeId = 'custom';\n this.updateCurrentDate();\n\n return;\n }\n }\n\n private updateCurrentDate() {\n this.currentRangeValue = {\n id: this.selectedDateRangeId,\n from: this.from,\n to: this.to,\n };\n }\n\n private onDateSelect(\n rangeValue: { from: string; to: string; id: string },\n preserveDropdown = true\n ) {\n this.dateRangeChange.emit(rangeValue);\n\n if (preserveDropdown) {\n this.closeDropdown();\n }\n\n this.datePickerTouched = false;\n }\n\n private onRangeListSelect(id: string) {\n if (this.setDateRangeSelection(id)) {\n this.onDateSelect(this.currentRangeValue);\n }\n }\n\n private setDateRangeSelection(id: string) {\n this.selectedDateRangeId = id;\n const option = this.dateRangeOptions.find((range) => range.id === id);\n\n if (option) {\n this.currentRangeValue = option;\n }\n\n return option;\n }\n\n private closeDropdown() {\n this.hostElement.shadowRoot.querySelector('ix-dropdown').show = false;\n }\n\n private getButtonLabel() {\n if (this.selectedDateRangeId === 'custom' && this.currentRangeValue?.from) {\n let range = this.currentRangeValue.from;\n\n if (this.currentRangeValue.to) {\n range += ` - ${this.currentRangeValue.to}`;\n }\n\n return range;\n }\n\n if (!this.selectedDateRangeId) {\n return this.i18nNoRange;\n }\n\n if (!this.dateRangeOptions || this.dateRangeOptions?.length === 0) {\n return this.i18nNoRange;\n }\n\n const option = this.dateRangeOptions.find(\n (option) => option.id === this.selectedDateRangeId\n );\n\n if (!option) {\n console.error(\n `Cannot find range option with id ${this.selectedDateRangeId}`\n );\n return this.i18nNoRange;\n }\n\n return option.label;\n }\n\n render() {\n return (\n <Host>\n <ix-button\n data-testid=\"date-dropdown-trigger\"\n data-date-dropdown-trigger\n variant=\"primary\"\n icon=\"history\"\n ref={(ref) => (this.triggerRef = ref)}\n disabled={this.disabled}\n >\n {this.getButtonLabel()}\n </ix-button>\n <ix-dropdown\n data-testid=\"date-dropdown\"\n data-date-dropdown\n class=\"min-width max-height\"\n trigger={this.triggerRef}\n closeBehavior=\"outside\"\n placement=\"bottom-start\"\n onShowChanged={({ detail: show }) => {\n if (\n !show &&\n this.selectedDateRangeId === 'custom' &&\n this.datePickerTouched\n ) {\n this.onDateSelect(this.currentRangeValue);\n }\n }}\n >\n <ix-layout-grid no-margin=\"true\">\n <ix-row>\n {this.dateRangeOptions?.length > 1 && (\n <ix-col\n class={{\n 'no-margin': true,\n 'border-right': this.selectedDateRangeId === 'custom',\n }}\n >\n {this.dateRangeOptions.map((dateRangeOption) => (\n <ix-dropdown-item\n label={dateRangeOption.label}\n onClick={() => this.onRangeListSelect(dateRangeOption.id)}\n checked={this.selectedDateRangeId === dateRangeOption.id}\n ></ix-dropdown-item>\n ))}\n <div hidden={!this.customRangeAllowed}>\n <ix-dropdown-item\n label={this.i18nCustomItem}\n checked={this.selectedDateRangeId === 'custom'}\n onClick={() => this.onRangeListSelect('custom')}\n ></ix-dropdown-item>\n </div>\n </ix-col>\n )}\n <ix-col class=\"no-margin\">\n {this.selectedDateRangeId === 'custom' && (\n <Fragment>\n <ix-date-picker\n standaloneAppearance={false}\n onDateChange={(e) => {\n e.stopPropagation();\n this.currentRangeValue = {\n ...e.detail,\n id: 'custom',\n };\n this.datePickerTouched = true;\n }}\n onDateRangeChange={(e) => e.stopPropagation()}\n format={this.format}\n range={this.range}\n from={this.from || this.currentRangeValue?.from}\n to={this.to || this.currentRangeValue?.to}\n minDate={this.minDate}\n maxDate={this.maxDate}\n today={this.today}\n ></ix-date-picker>\n <div class=\"pull-right\">\n <ix-button\n onClick={() => {\n this.onDateSelect(this.currentRangeValue);\n }}\n >\n {this.i18nDone}\n </ix-button>\n </div>\n </Fragment>\n )}\n </ix-col>\n </ix-row>\n </ix-layout-grid>\n </ix-dropdown>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -66,7 +66,7 @@ const DatetimePicker = /*@__PURE__*/ proxyCustomElement(class DatetimePicker ext
66
66
  this.timeChange.emit(time);
67
67
  }
68
68
  render() {
69
- return (h(Host, { key: 'ced15d6ebee8f55870b7fc36283556fae3cf72fd' }, h("ix-layout-grid", { key: '58e9916ce84c7ee9a3f7b930718a396cb76106f2', class: "no-padding" }, h("ix-row", { key: '593109d02398fd179303b7bc3030b13b5701f769' }, h("ix-col", { key: '4b6a39a1ba04096d522fc7943f72b14901e71006', class: "no-padding" }, h("ix-date-picker", { key: '5ee0c7a5a45749104a23e5f3eeea44e33bd7a815', ref: (ref) => (this.datePickerElement = ref), corners: "left", range: this.range, onDateChange: (event) => this.onDateChange(event), from: this.from, to: this.to, format: this.dateFormat, minDate: this.minDate, maxDate: this.maxDate, weekStartIndex: this.weekStartIndex, standaloneAppearance: false, locale: this.locale })), h("ix-col", { key: '6cbefe036d4a48efaca5a9b1a67ef801feab449f', class: "no-padding" }, h("ix-time-picker", { key: '285d034e938063753075f7f55d4f63a211483f18', class: "min-width", ref: (ref) => (this.timePickerElement = ref), corners: "right", standaloneAppearance: false, showHour: this.showHour, showMinutes: this.showMinutes, showSeconds: this.showSeconds, onTimeChange: (event) => this.onTimeChange(event), format: this.timeFormat, time: this.time }))), h("ix-row", { key: '24ab1e4d0cf246456d34744d14404c6bbb629d06' }, h("ix-col", { key: '26daaa468b4d80e1c124f1776b7b773df4dd9b97' }, h("ix-button", { key: '38f073daffa3f337e26a319d1721f67ee28db729', class: "btn-select-date btn-md-width", onClick: () => this.onDone() }, this.textSelectDate || this.i18nDone))))));
69
+ return (h(Host, { key: '245fa3202c8983bc8eff53d4078c2a6a8daa0810' }, h("ix-layout-grid", { key: '1bc34611a653f3dea08ee0be6a336766da38b914', class: "no-padding" }, h("ix-row", { key: '26eef283266f46fb5a19fcaf1d78f985119cec3a' }, h("ix-col", { key: 'd4ac83db8977067d5c178fb48eac1acc1adca898', class: "no-padding" }, h("ix-date-picker", { key: '967af43189787bc677ff273de023b43d9e3b0019', ref: (ref) => (this.datePickerElement = ref), corners: "left", range: this.range, onDateChange: (event) => this.onDateChange(event), from: this.from, to: this.to, format: this.dateFormat, minDate: this.minDate, maxDate: this.maxDate, weekStartIndex: this.weekStartIndex, standaloneAppearance: false, locale: this.locale })), h("ix-col", { key: '53bbc9d021687f71f211b6d4091e421b7374ae56', class: "no-padding" }, h("ix-time-picker", { key: 'da5a855b94d37b1424de7f10804e707e9d082139', class: "min-width", ref: (ref) => (this.timePickerElement = ref), corners: "right", standaloneAppearance: false, showHour: this.showHour, showMinutes: this.showMinutes, showSeconds: this.showSeconds, onTimeChange: (event) => this.onTimeChange(event), format: this.timeFormat, time: this.time }))), h("ix-row", { key: 'aa564cb9741fda50e046a508cb9e2ad985ed11d7' }, h("ix-col", { key: 'a13d931565a1165e262070e6e3d637fce6da38c6' }, h("ix-button", { key: '6769327a6e405d2b2705c3a64b4b2031e8f80de4', class: "btn-select-date btn-md-width", onClick: () => this.onDone() }, this.textSelectDate || this.i18nDone))))));
70
70
  }
71
71
  static get style() { return IxDatetimePickerStyle0; }
72
72
  }, [1, "ix-datetime-picker", {
@@ -89,7 +89,7 @@ const Drawer = /*@__PURE__*/ proxyCustomElement(class Drawer extends HTMLElement
89
89
  this.onShowChanged(this.show);
90
90
  }
91
91
  render() {
92
- return (h(Host, { key: '48546d54d8c859e184c75935f0729826247e36d5', class: {
92
+ return (h(Host, { key: '4cb0a06786c80cd977ebfbbfef6c23d6e7926d86', class: {
93
93
  'drawer-container': true,
94
94
  toggle: this.show,
95
95
  'full-height': this.fullHeight,
@@ -98,7 +98,7 @@ const Drawer = /*@__PURE__*/ proxyCustomElement(class Drawer extends HTMLElement
98
98
  width: this.width === 'auto' ? this.width : `${this.width}rem`,
99
99
  'min-width': `${this.minWidth}rem`,
100
100
  'max-width': `${this.maxWidth}rem`,
101
- }, ref: (el) => (this.divElement = el), "data-testid": "container", id: "div-container" }, h("div", { key: 'a574087e718559ca1562a41617c457f24dd9fd33', class: "header" }, h("div", { key: '126ab85b1452d7338043cc5457db98b047185d1a', class: "header-content" }, h("slot", { key: '0f62e3434f942f72c268359aacdf11a881553104', name: "header" })), h("ix-icon-button", { key: '42c763a72136811a6e0c5999cd0b7689ef7c9035', class: "close-button", icon: 'close', size: "24", ghost: true, onClick: () => this.onCloseClicked(), "data-testid": "close-button" })), h("div", { key: 'f7e7536dde130c707bf7584a64fae3002ddf3035', class: "content" }, h("slot", { key: '50c5e7afd95802fb9ceb537b788b826a888254df' }))));
101
+ }, ref: (el) => (this.divElement = el), "data-testid": "container", id: "div-container" }, h("div", { key: '63c8952c342a1d412237ab82f96ac063c0a30158', class: "header" }, h("div", { key: '4a8525053f3954b3b83dac4f8b012f005e9725b7', class: "header-content" }, h("slot", { key: '55b887208a3bdc445950c2e5f153cfaa1ba89068', name: "header" })), h("ix-icon-button", { key: '84b5b11f21d4d768c0118450147bf74d6e0a1400', class: "close-button", icon: 'close', size: "24", ghost: true, onClick: () => this.onCloseClicked(), "data-testid": "close-button" })), h("div", { key: '00079cfb6504ed6fa44c23209787add116e72591', class: "content" }, h("slot", { key: '3de3610ac265b9eda7d69eedf28494b47861c7e3' }))));
102
102
  }
103
103
  static get watchers() { return {
104
104
  "show": ["onShowChanged"]