@siemens/ix 1.6.2 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1110) hide show
  1. package/dist/cjs/a11y-fa9abd92.js +82 -0
  2. package/dist/cjs/a11y-fa9abd92.js.map +1 -0
  3. package/dist/cjs/base-button-497db257.js.map +1 -1
  4. package/dist/cjs/context-2ce9a350.js +26 -0
  5. package/dist/cjs/context-2ce9a350.js.map +1 -0
  6. package/dist/cjs/{flip-tile-state-b5ff5ea0.js → flip-tile-state-183236a1.js} +6 -6
  7. package/dist/cjs/{flip-tile-state-b5ff5ea0.js.map → flip-tile-state-183236a1.js.map} +1 -1
  8. package/dist/cjs/{floating-ui.dom.esm-01fe5abe.js → floating-ui.dom.esm-b79b633f.js} +1 -103
  9. package/dist/cjs/floating-ui.dom.esm-b79b633f.js.map +1 -0
  10. package/dist/cjs/{icon-4c954853.js → icon-eeb2940a.js} +2 -2
  11. package/dist/cjs/{icon-4c954853.js.map → icon-eeb2940a.js.map} +1 -1
  12. package/dist/cjs/{index-c978628a.js → index-e56a1d39.js} +77 -21
  13. package/dist/cjs/index-e56a1d39.js.map +1 -0
  14. package/dist/cjs/index.cjs.js +46 -7
  15. package/dist/cjs/index.cjs.js.map +1 -1
  16. package/dist/cjs/ix-action-card.cjs.entry.js +1 -1
  17. package/dist/cjs/ix-animated-tab_2.cjs.entry.js +1 -1
  18. package/dist/cjs/ix-application-header.cjs.entry.js +21 -18
  19. package/dist/cjs/ix-application-header.cjs.entry.js.map +1 -1
  20. package/dist/cjs/ix-avatar.cjs.entry.js +39 -0
  21. package/dist/cjs/ix-avatar.cjs.entry.js.map +1 -0
  22. package/dist/cjs/ix-basic-navigation.cjs.entry.js +13 -15
  23. package/dist/cjs/ix-basic-navigation.cjs.entry.js.map +1 -1
  24. package/dist/cjs/ix-blind.cjs.entry.js +3 -12
  25. package/dist/cjs/ix-blind.cjs.entry.js.map +1 -1
  26. package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +1 -1
  27. package/dist/cjs/ix-burger-menu.cjs.entry.js +7 -3
  28. package/dist/cjs/ix-burger-menu.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ix-button.cjs.entry.js +22 -4
  30. package/dist/cjs/ix-button.cjs.entry.js.map +1 -1
  31. package/dist/cjs/ix-card-accordion_2.cjs.entry.js +1 -1
  32. package/dist/cjs/ix-card-list.cjs.entry.js +1 -1
  33. package/dist/cjs/ix-card_2.cjs.entry.js +36 -0
  34. package/dist/cjs/ix-card_2.cjs.entry.js.map +1 -0
  35. package/dist/cjs/ix-category-filter.cjs.entry.js +2 -2
  36. package/dist/cjs/ix-category-filter.cjs.entry.js.map +1 -1
  37. package/dist/cjs/ix-chip.cjs.entry.js +23 -15
  38. package/dist/cjs/ix-chip.cjs.entry.js.map +1 -1
  39. package/dist/cjs/ix-content-header.cjs.entry.js +3 -3
  40. package/dist/cjs/ix-content-header.cjs.entry.js.map +1 -1
  41. package/dist/cjs/ix-css-grid-item.cjs.entry.js +1 -1
  42. package/dist/cjs/ix-css-grid.cjs.entry.js +1 -1
  43. package/dist/cjs/ix-date-picker_2.cjs.entry.js +8 -9
  44. package/dist/cjs/ix-date-picker_2.cjs.entry.js.map +1 -1
  45. package/dist/cjs/ix-date-time-card.cjs.entry.js +2 -3
  46. package/dist/cjs/ix-date-time-card.cjs.entry.js.map +1 -1
  47. package/dist/cjs/ix-datetime-picker.cjs.entry.js +2 -2
  48. package/dist/cjs/ix-datetime-picker.cjs.entry.js.map +1 -1
  49. package/dist/cjs/ix-divider.cjs.entry.js +1 -1
  50. package/dist/cjs/ix-drawer.cjs.entry.js +4 -1
  51. package/dist/cjs/ix-drawer.cjs.entry.js.map +1 -1
  52. package/dist/cjs/ix-dropdown-button.cjs.entry.js +7 -6
  53. package/dist/cjs/ix-dropdown-button.cjs.entry.js.map +1 -1
  54. package/dist/cjs/ix-dropdown-header.cjs.entry.js +22 -0
  55. package/dist/cjs/ix-dropdown-header.cjs.entry.js.map +1 -0
  56. package/dist/cjs/ix-dropdown-quick-actions.cjs.entry.js +1 -1
  57. package/dist/cjs/ix-dropdown_2.cjs.entry.js +67 -33
  58. package/dist/cjs/ix-dropdown_2.cjs.entry.js.map +1 -1
  59. package/dist/cjs/ix-empty-state.cjs.entry.js +1 -1
  60. package/dist/cjs/ix-event-list_2.cjs.entry.js +44 -25
  61. package/dist/cjs/ix-event-list_2.cjs.entry.js.map +1 -1
  62. package/dist/cjs/ix-expanding-search.cjs.entry.js +5 -8
  63. package/dist/cjs/ix-expanding-search.cjs.entry.js.map +1 -1
  64. package/dist/cjs/ix-filter-chip.cjs.entry.js +3 -3
  65. package/dist/cjs/ix-filter-chip.cjs.entry.js.map +1 -1
  66. package/dist/cjs/ix-flip-tile_2.cjs.entry.js +3 -3
  67. package/dist/cjs/ix-flip-tile_2.cjs.entry.js.map +1 -1
  68. package/dist/cjs/ix-group-context-menu.cjs.entry.js +26 -14
  69. package/dist/cjs/ix-group-context-menu.cjs.entry.js.map +1 -1
  70. package/dist/cjs/ix-group_2.cjs.entry.js +159 -0
  71. package/dist/cjs/ix-group_2.cjs.entry.js.map +1 -0
  72. package/dist/cjs/ix-icon-button.cjs.entry.js +26 -5
  73. package/dist/cjs/ix-icon-button.cjs.entry.js.map +1 -1
  74. package/dist/cjs/ix-icon.cjs.entry.js +2 -2
  75. package/dist/cjs/ix-index-button.cjs.entry.js +4 -4
  76. package/dist/cjs/ix-index-button.cjs.entry.js.map +1 -1
  77. package/dist/cjs/ix-input-group.cjs.entry.js +2 -2
  78. package/dist/cjs/ix-input-group.cjs.entry.js.map +1 -1
  79. package/dist/cjs/ix-key-value-list.cjs.entry.js +1 -1
  80. package/dist/cjs/ix-key-value.cjs.entry.js +1 -1
  81. package/dist/cjs/ix-kpi.cjs.entry.js +1 -1
  82. package/dist/cjs/ix-link-button.cjs.entry.js +30 -0
  83. package/dist/cjs/ix-link-button.cjs.entry.js.map +1 -0
  84. package/dist/cjs/ix-map-navigation_2.cjs.entry.js +17 -7
  85. package/dist/cjs/ix-map-navigation_2.cjs.entry.js.map +1 -1
  86. package/dist/cjs/ix-menu-category.cjs.entry.js +138 -0
  87. package/dist/cjs/ix-menu-category.cjs.entry.js.map +1 -0
  88. package/dist/cjs/ix-menu_9.cjs.entry.js +252 -339
  89. package/dist/cjs/ix-menu_9.cjs.entry.js.map +1 -1
  90. package/dist/cjs/ix-message-bar.cjs.entry.js +1 -1
  91. package/dist/cjs/ix-modal-content.cjs.entry.js +21 -0
  92. package/dist/cjs/ix-modal-content.cjs.entry.js.map +1 -0
  93. package/dist/cjs/ix-modal-example.cjs.entry.js +6 -4
  94. package/dist/cjs/ix-modal-example.cjs.entry.js.map +1 -1
  95. package/dist/cjs/ix-modal-footer.cjs.entry.js +21 -0
  96. package/dist/cjs/ix-modal-footer.cjs.entry.js.map +1 -0
  97. package/dist/cjs/ix-modal-header.cjs.entry.js +48 -0
  98. package/dist/cjs/ix-modal-header.cjs.entry.js.map +1 -0
  99. package/dist/cjs/ix-modal-loading.cjs.entry.js +21 -0
  100. package/dist/cjs/ix-modal-loading.cjs.entry.js.map +1 -0
  101. package/dist/cjs/ix-modal.cjs.entry.js +130 -0
  102. package/dist/cjs/ix-modal.cjs.entry.js.map +1 -0
  103. package/dist/cjs/ix-pagination.cjs.entry.js +4 -4
  104. package/dist/cjs/ix-pagination.cjs.entry.js.map +1 -1
  105. package/dist/cjs/ix-pill.cjs.entry.js +28 -10
  106. package/dist/cjs/ix-pill.cjs.entry.js.map +1 -1
  107. package/dist/cjs/ix-push-card.cjs.entry.js +1 -1
  108. package/dist/cjs/ix-select_2.cjs.entry.js +20 -8
  109. package/dist/cjs/ix-select_2.cjs.entry.js.map +1 -1
  110. package/dist/cjs/ix-spinner.cjs.entry.js +10 -3
  111. package/dist/cjs/ix-spinner.cjs.entry.js.map +1 -1
  112. package/dist/cjs/ix-split-button_2.cjs.entry.js +15 -11
  113. package/dist/cjs/ix-split-button_2.cjs.entry.js.map +1 -1
  114. package/dist/cjs/ix-tab-item.cjs.entry.js +2 -2
  115. package/dist/cjs/ix-tab-item.cjs.entry.js.map +1 -1
  116. package/dist/cjs/ix-tabs.cjs.entry.js +14 -6
  117. package/dist/cjs/ix-tabs.cjs.entry.js.map +1 -1
  118. package/dist/cjs/ix-tile.cjs.entry.js +18 -3
  119. package/dist/cjs/ix-tile.cjs.entry.js.map +1 -1
  120. package/dist/cjs/ix-toast_2.cjs.entry.js +6 -7
  121. package/dist/cjs/ix-toast_2.cjs.entry.js.map +1 -1
  122. package/dist/cjs/ix-toggle.cjs.entry.js +11 -30
  123. package/dist/cjs/ix-toggle.cjs.entry.js.map +1 -1
  124. package/dist/cjs/ix-tooltip.cjs.entry.js +2 -2
  125. package/dist/cjs/ix-tree_2.cjs.entry.js +1 -1
  126. package/dist/cjs/ix-typography.cjs.entry.js +46 -0
  127. package/dist/cjs/ix-typography.cjs.entry.js.map +1 -0
  128. package/dist/cjs/ix-upload.cjs.entry.js +19 -7
  129. package/dist/cjs/ix-upload.cjs.entry.js.map +1 -1
  130. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +6 -19
  131. package/dist/cjs/ix-validation-tooltip.cjs.entry.js.map +1 -1
  132. package/dist/cjs/ix-workflow-step_2.cjs.entry.js +14 -18
  133. package/dist/cjs/ix-workflow-step_2.cjs.entry.js.map +1 -1
  134. package/dist/cjs/loader.cjs.js +2 -2
  135. package/dist/cjs/menu-service-d1b87142.js +80 -0
  136. package/dist/cjs/menu-service-d1b87142.js.map +1 -0
  137. package/dist/cjs/modal-26ae4715.js +253 -0
  138. package/dist/cjs/modal-26ae4715.js.map +1 -0
  139. package/dist/cjs/my-component.cjs.entry.js +1 -1
  140. package/dist/cjs/my-component.cjs.entry.js.map +1 -1
  141. package/dist/cjs/service-0e27b06b.js +145 -0
  142. package/dist/cjs/service-0e27b06b.js.map +1 -0
  143. package/dist/cjs/shadow-dom-f9b90696.js +21 -0
  144. package/dist/cjs/shadow-dom-f9b90696.js.map +1 -0
  145. package/dist/cjs/siemens-ix.cjs.js +2 -2
  146. package/dist/collection/collection-manifest.json +18 -20
  147. package/dist/collection/components/application-header/application-header.css +2 -2
  148. package/dist/collection/components/application-header/application-header.js +43 -16
  149. package/dist/collection/components/application-header/application-header.js.map +1 -1
  150. package/dist/collection/components/avatar/avatar.css +70 -0
  151. package/dist/collection/components/avatar/avatar.js +80 -0
  152. package/dist/collection/components/avatar/avatar.js.map +1 -0
  153. package/dist/collection/components/basic-navigation/basic-navigation.css +32 -4
  154. package/dist/collection/components/basic-navigation/basic-navigation.js +11 -13
  155. package/dist/collection/components/basic-navigation/basic-navigation.js.map +1 -1
  156. package/dist/collection/components/button/base-button.js.map +1 -1
  157. package/dist/collection/components/button/button.css +31 -2
  158. package/dist/collection/components/button/button.js +60 -4
  159. package/dist/collection/components/button/button.js.map +1 -1
  160. package/dist/collection/components/button/test/button.ct.js +36 -0
  161. package/dist/collection/components/button/test/button.ct.js.map +1 -0
  162. package/dist/collection/components/category-filter/category-filter.js +1 -1
  163. package/dist/collection/components/category-filter/category-filter.js.map +1 -1
  164. package/dist/collection/components/chip/chip.css +149 -149
  165. package/dist/collection/components/chip/chip.js +22 -14
  166. package/dist/collection/components/chip/chip.js.map +1 -1
  167. package/dist/collection/components/content-header/content-header.js +4 -4
  168. package/dist/collection/components/content-header/content-header.js.map +1 -1
  169. package/dist/collection/components/date-picker/date-picker.css +12 -2
  170. package/dist/collection/components/date-picker/date-picker.js +4 -4
  171. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  172. package/dist/collection/components/date-time-card/date-time-card.css +28 -8
  173. package/dist/collection/components/date-time-card/date-time-card.js +1 -2
  174. package/dist/collection/components/date-time-card/date-time-card.js.map +1 -1
  175. package/dist/collection/components/datetime-picker/datetime-picker.css +16 -6
  176. package/dist/collection/components/datetime-picker/datetime-picker.js +1 -1
  177. package/dist/collection/components/datetime-picker/datetime-picker.js.map +1 -1
  178. package/dist/collection/components/drawer/drawer.js +3 -0
  179. package/dist/collection/components/drawer/drawer.js.map +1 -1
  180. package/dist/collection/components/drawer/test/drawer.ct.js +47 -0
  181. package/dist/collection/components/drawer/test/drawer.ct.js.map +1 -0
  182. package/dist/collection/components/dropdown/dropdown.css +16 -471
  183. package/dist/collection/components/dropdown/dropdown.js +77 -63
  184. package/dist/collection/components/dropdown/dropdown.js.map +1 -1
  185. package/dist/collection/components/dropdown/placement.js.map +1 -1
  186. package/dist/collection/components/dropdown-button/dropdown-button.css +16 -2
  187. package/dist/collection/components/dropdown-button/dropdown-button.js +13 -9
  188. package/dist/collection/components/dropdown-button/dropdown-button.js.map +1 -1
  189. package/dist/collection/components/dropdown-header/dropdown-header.css +32 -0
  190. package/dist/collection/components/{group-dropdown-item/group-dropdown-item.js → dropdown-header/dropdown-header.js} +11 -26
  191. package/dist/collection/components/dropdown-header/dropdown-header.js.map +1 -0
  192. package/dist/collection/components/dropdown-item/dropdown-item.css +85 -37
  193. package/dist/collection/components/dropdown-item/dropdown-item.js +57 -12
  194. package/dist/collection/components/dropdown-item/dropdown-item.js.map +1 -1
  195. package/dist/collection/components/event-list/event-list.css +20 -35
  196. package/dist/collection/components/event-list/event-list.js +35 -16
  197. package/dist/collection/components/event-list/event-list.js.map +1 -1
  198. package/dist/collection/components/event-list-item/event-list-item.css +62 -35
  199. package/dist/collection/components/event-list-item/event-list-item.js +17 -10
  200. package/dist/collection/components/event-list-item/event-list-item.js.map +1 -1
  201. package/dist/collection/components/expanding-search/expanding-search.css +262 -8
  202. package/dist/collection/components/expanding-search/expanding-search.js +4 -7
  203. package/dist/collection/components/expanding-search/expanding-search.js.map +1 -1
  204. package/dist/collection/components/expanding-search/test/expanding-search.ct.js +56 -0
  205. package/dist/collection/components/expanding-search/test/expanding-search.ct.js.map +1 -0
  206. package/dist/collection/components/filter-chip/filter-chip.css +39 -26
  207. package/dist/collection/components/filter-chip/filter-chip.js +2 -2
  208. package/dist/collection/components/filter-chip/filter-chip.js.map +1 -1
  209. package/dist/collection/components/flip-tile/flip-tile-state.js +5 -5
  210. package/dist/collection/components/flip-tile/flip-tile-state.js.map +1 -1
  211. package/dist/collection/components/flip-tile/flip-tile.js +1 -1
  212. package/dist/collection/components/flip-tile/flip-tile.js.map +1 -1
  213. package/dist/collection/components/group/group-context-menu.css +2 -3
  214. package/dist/collection/components/group/group-context-menu.js +27 -15
  215. package/dist/collection/components/group/group-context-menu.js.map +1 -1
  216. package/dist/collection/components/group/group.css +6 -0
  217. package/dist/collection/components/group/group.js +29 -48
  218. package/dist/collection/components/group/group.js.map +1 -1
  219. package/dist/collection/components/group-item/group-item.css +59 -33
  220. package/dist/collection/components/group-item/group-item.js +2 -2
  221. package/dist/collection/components/group-item/group-item.js.map +1 -1
  222. package/dist/collection/components/icon-button/icon-button.css +34 -3
  223. package/dist/collection/components/icon-button/icon-button.js +52 -7
  224. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  225. package/dist/collection/components/icon-button/test/icon-button.ct.js +26 -0
  226. package/dist/collection/components/icon-button/test/icon-button.ct.js.map +1 -0
  227. package/dist/collection/components/index-button/index-button.js +5 -5
  228. package/dist/collection/components/index-button/index-button.js.map +1 -1
  229. package/dist/collection/components/input-group/input-group.css +2 -0
  230. package/dist/collection/components/link-button/link-button.css +440 -0
  231. package/dist/collection/components/link-button/link-button.js +98 -0
  232. package/dist/collection/components/link-button/link-button.js.map +1 -0
  233. package/dist/collection/components/map-navigation/map-navigation.css +17 -1
  234. package/dist/collection/components/map-navigation/map-navigation.js +18 -7
  235. package/dist/collection/components/map-navigation/map-navigation.js.map +1 -1
  236. package/dist/collection/components/menu/burger-menu.css +388 -5
  237. package/dist/collection/components/menu/burger-menu.js +42 -2
  238. package/dist/collection/components/menu/burger-menu.js.map +1 -1
  239. package/dist/collection/components/menu/menu.css +1727 -24
  240. package/dist/collection/components/menu/menu.js +319 -335
  241. package/dist/collection/components/menu/menu.js.map +1 -1
  242. package/dist/collection/components/menu/test/menu.ct.js +164 -0
  243. package/dist/collection/components/menu/test/menu.ct.js.map +1 -0
  244. package/dist/collection/components/menu-about/menu-about.js +8 -7
  245. package/dist/collection/components/menu-about/menu-about.js.map +1 -1
  246. package/dist/collection/components/menu-about-item/menu-about-item.js +1 -1
  247. package/dist/collection/components/menu-about-item/menu-about-item.js.map +1 -1
  248. package/dist/collection/components/menu-about-news/menu-about-news.css +21 -6
  249. package/dist/collection/components/menu-about-news/menu-about-news.js +3 -3
  250. package/dist/collection/components/menu-about-news/menu-about-news.js.map +1 -1
  251. package/dist/collection/components/menu-avatar/menu-avatar.css +13 -1
  252. package/dist/collection/components/menu-avatar/menu-avatar.js +2 -9
  253. package/dist/collection/components/menu-avatar/menu-avatar.js.map +1 -1
  254. package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +13 -1
  255. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +2 -2
  256. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js.map +1 -1
  257. package/dist/collection/components/menu-category/menu-category.css +63 -0
  258. package/dist/collection/components/menu-category/menu-category.js +212 -0
  259. package/dist/collection/components/menu-category/menu-category.js.map +1 -0
  260. package/dist/collection/components/menu-category/test/menu-category.ct.js +107 -0
  261. package/dist/collection/components/menu-category/test/menu-category.ct.js.map +1 -0
  262. package/dist/collection/components/menu-item/menu-item.css +6 -10
  263. package/dist/collection/components/menu-item/menu-item.js +40 -7
  264. package/dist/collection/components/menu-item/menu-item.js.map +1 -1
  265. package/dist/collection/components/menu-settings/menu-settings.css +13 -0
  266. package/dist/collection/components/menu-settings/menu-settings.js +9 -8
  267. package/dist/collection/components/menu-settings/menu-settings.js.map +1 -1
  268. package/dist/collection/components/menu-settings-item/menu-settings-item.css +0 -1
  269. package/dist/collection/components/menu-settings-item/menu-settings-item.js +1 -1
  270. package/dist/collection/components/menu-settings-item/menu-settings-item.js.map +1 -1
  271. package/dist/collection/components/modal/modal.css +58 -75
  272. package/dist/collection/components/modal/modal.js +143 -312
  273. package/dist/collection/components/modal/modal.js.map +1 -1
  274. package/dist/collection/components/modal-content/modal-content.css +27 -0
  275. package/dist/collection/components/modal-content/modal-content.js +30 -0
  276. package/dist/collection/components/modal-content/modal-content.js.map +1 -0
  277. package/dist/collection/components/modal-footer/modal-footer.css +30 -0
  278. package/dist/collection/components/modal-footer/modal-footer.js +30 -0
  279. package/dist/collection/components/modal-footer/modal-footer.js.map +1 -0
  280. package/dist/collection/components/modal-header/modal-header.css +34 -0
  281. package/dist/collection/components/modal-header/modal-header.js +139 -0
  282. package/dist/collection/components/modal-header/modal-header.js.map +1 -0
  283. package/dist/collection/components/modal-loading/modal-loading.css +22 -0
  284. package/dist/collection/components/modal-loading/modal-loading.js +30 -0
  285. package/dist/collection/components/modal-loading/modal-loading.js.map +1 -0
  286. package/dist/collection/components/my-component/example-modal.js +1 -1
  287. package/dist/collection/components/my-component/example-modal.js.map +1 -1
  288. package/dist/collection/components/my-component/my-component.js.map +1 -1
  289. package/dist/collection/components/pagination/pagination.js +3 -3
  290. package/dist/collection/components/pagination/pagination.js.map +1 -1
  291. package/dist/collection/components/pill/pill.css +102 -166
  292. package/dist/collection/components/pill/pill.js +27 -9
  293. package/dist/collection/components/pill/pill.js.map +1 -1
  294. package/dist/collection/components/select/select.css +4 -1
  295. package/dist/collection/components/select/select.js +32 -5
  296. package/dist/collection/components/select/select.js.map +1 -1
  297. package/dist/collection/components/select/test/select.ct.js +115 -0
  298. package/dist/collection/components/select/test/select.ct.js.map +1 -0
  299. package/dist/collection/components/select-item/select-item.css +12 -0
  300. package/dist/collection/components/select-item/select-item.js +3 -1
  301. package/dist/collection/components/select-item/select-item.js.map +1 -1
  302. package/dist/collection/components/spinner/spinner.css +428 -23
  303. package/dist/collection/components/spinner/spinner.js +33 -5
  304. package/dist/collection/components/spinner/spinner.js.map +1 -1
  305. package/dist/collection/components/split-button/split-button.css +40 -2
  306. package/dist/collection/components/split-button/split-button.js +18 -35
  307. package/dist/collection/components/split-button/split-button.js.map +1 -1
  308. package/dist/collection/components/split-button-item/split-button-item.css +1 -1
  309. package/dist/collection/components/split-button-item/split-button-item.js +2 -2
  310. package/dist/collection/components/split-button-item/split-button-item.js.map +1 -1
  311. package/dist/collection/components/tab-item/tab-item.css +115 -82
  312. package/dist/collection/components/tab-item/tab-item.js +1 -0
  313. package/dist/collection/components/tab-item/tab-item.js.map +1 -1
  314. package/dist/collection/components/tabs/tabs.css +37 -19
  315. package/dist/collection/components/tabs/tabs.js +13 -4
  316. package/dist/collection/components/tabs/tabs.js.map +1 -1
  317. package/dist/collection/components/tile/tile.css +57 -27
  318. package/dist/collection/components/tile/tile.js +23 -2
  319. package/dist/collection/components/tile/tile.js.map +1 -1
  320. package/dist/collection/components/time-picker/time-picker.css +253 -30
  321. package/dist/collection/components/time-picker/time-picker.js +3 -4
  322. package/dist/collection/components/time-picker/time-picker.js.map +1 -1
  323. package/dist/collection/components/toast/toast-container.js +2 -3
  324. package/dist/collection/components/toast/toast-container.js.map +1 -1
  325. package/dist/collection/components/toast/toast.css +37 -0
  326. package/dist/collection/components/toast/toast.js +5 -5
  327. package/dist/collection/components/toast/toast.js.map +1 -1
  328. package/dist/collection/components/toggle/test/toggle.ct.js +52 -0
  329. package/dist/collection/components/toggle/test/toggle.ct.js.map +1 -0
  330. package/dist/collection/components/toggle/toggle.css +72 -153
  331. package/dist/collection/components/toggle/toggle.js +11 -60
  332. package/dist/collection/components/toggle/toggle.js.map +1 -1
  333. package/dist/collection/components/typography/typography.css +53 -14
  334. package/dist/collection/components/typography/typography.js +2 -2
  335. package/dist/collection/components/typography/typography.js.map +1 -1
  336. package/dist/collection/components/upload/upload.css +24 -3
  337. package/dist/collection/components/upload/upload.js +18 -6
  338. package/dist/collection/components/upload/upload.js.map +1 -1
  339. package/dist/collection/components/utils/a11y.js +66 -0
  340. package/dist/collection/components/utils/a11y.js.map +1 -1
  341. package/dist/collection/components/utils/delegate.js +29 -0
  342. package/dist/collection/components/utils/delegate.js.map +1 -0
  343. package/dist/collection/components/utils/menu-service/menu-service.js +25 -0
  344. package/dist/collection/components/utils/menu-service/menu-service.js.map +1 -1
  345. package/dist/collection/components/{modal-container/modal-container.css → utils/modal/index.js} +4 -6
  346. package/dist/collection/components/utils/modal/index.js.map +1 -0
  347. package/dist/collection/components/utils/modal/loading.js +35 -0
  348. package/dist/collection/components/utils/modal/loading.js.map +1 -0
  349. package/dist/collection/components/utils/modal/message.js +138 -0
  350. package/dist/collection/components/utils/modal/message.js.map +1 -0
  351. package/dist/collection/components/utils/modal/modal.js +77 -0
  352. package/dist/collection/components/utils/modal/modal.js.map +1 -0
  353. package/dist/collection/components/utils/screen/context.js +4 -0
  354. package/dist/collection/components/utils/screen/context.js.map +1 -1
  355. package/dist/collection/components/utils/screen/mode.js +57 -9
  356. package/dist/collection/components/utils/screen/mode.js.map +1 -1
  357. package/dist/collection/components/utils/screen/service.js +26 -4
  358. package/dist/collection/components/utils/screen/service.js.map +1 -1
  359. package/dist/collection/components/utils/shadow-dom.js +19 -0
  360. package/dist/collection/components/utils/shadow-dom.js.map +1 -0
  361. package/dist/collection/components/validation-tooltip/validation-tooltip.js +29 -12
  362. package/dist/collection/components/validation-tooltip/validation-tooltip.js.map +1 -1
  363. package/dist/collection/components/workflow-step/workflow-step.css +13 -0
  364. package/dist/collection/components/workflow-step/workflow-step.js +3 -12
  365. package/dist/collection/components/workflow-step/workflow-step.js.map +1 -1
  366. package/dist/collection/components/workflow-steps/workflow-steps.css +13 -0
  367. package/dist/collection/components/workflow-steps/workflow-steps.js +19 -14
  368. package/dist/collection/components/workflow-steps/workflow-steps.js.map +1 -1
  369. package/dist/collection/index.js +2 -1
  370. package/dist/collection/index.js.map +1 -1
  371. package/dist/collection/tests/utils/test/page.js +12 -5
  372. package/dist/collection/tests/utils/test/page.js.map +1 -1
  373. package/dist/components/a11y.js +79 -0
  374. package/dist/components/a11y.js.map +1 -0
  375. package/dist/components/application-header.js +40 -18
  376. package/dist/components/application-header.js.map +1 -1
  377. package/dist/components/avatar.js +53 -0
  378. package/dist/components/avatar.js.map +1 -0
  379. package/dist/components/base-button.js.map +1 -1
  380. package/dist/components/burger-menu.js +28 -4
  381. package/dist/components/burger-menu.js.map +1 -1
  382. package/dist/components/button.js +37 -5
  383. package/dist/components/button.js.map +1 -1
  384. package/dist/components/context.js +22 -0
  385. package/dist/components/context.js.map +1 -0
  386. package/dist/components/date-picker.js +22 -15
  387. package/dist/components/date-picker.js.map +1 -1
  388. package/dist/components/date-time-card.js +3 -3
  389. package/dist/components/date-time-card.js.map +1 -1
  390. package/dist/components/divider.js +32 -0
  391. package/dist/components/divider.js.map +1 -0
  392. package/dist/components/dropdown-item.js +21 -13
  393. package/dist/components/dropdown-item.js.map +1 -1
  394. package/dist/components/dropdown.js +50 -22
  395. package/dist/components/dropdown.js.map +1 -1
  396. package/dist/components/filter-chip.js +18 -5
  397. package/dist/components/filter-chip.js.map +1 -1
  398. package/dist/components/flip-tile-state.js +5 -5
  399. package/dist/components/flip-tile-state.js.map +1 -1
  400. package/dist/components/floating-ui.dom.esm.js +1 -102
  401. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  402. package/dist/components/group-context-menu.js +52 -19
  403. package/dist/components/group-context-menu.js.map +1 -1
  404. package/dist/components/group-item.js +4 -3
  405. package/dist/components/group-item.js.map +1 -1
  406. package/dist/components/icon-button.js +35 -7
  407. package/dist/components/icon-button.js.map +1 -1
  408. package/dist/components/index-button.js +3 -3
  409. package/dist/components/index-button.js.map +1 -1
  410. package/dist/components/index.js +37 -2
  411. package/dist/components/index.js.map +1 -1
  412. package/dist/components/{ix-group-dropdown-item.d.ts → ix-avatar.d.ts} +4 -4
  413. package/dist/components/ix-avatar.js +8 -0
  414. package/dist/components/ix-avatar.js.map +1 -0
  415. package/dist/components/ix-basic-navigation.js +35 -18
  416. package/dist/components/ix-basic-navigation.js.map +1 -1
  417. package/dist/components/ix-blind.js +1 -10
  418. package/dist/components/ix-blind.js.map +1 -1
  419. package/dist/components/ix-card-list.js +16 -10
  420. package/dist/components/ix-card-list.js.map +1 -1
  421. package/dist/components/ix-category-filter.js +15 -9
  422. package/dist/components/ix-category-filter.js.map +1 -1
  423. package/dist/components/ix-chip.js +38 -17
  424. package/dist/components/ix-chip.js.map +1 -1
  425. package/dist/components/ix-content-header.js +12 -6
  426. package/dist/components/ix-content-header.js.map +1 -1
  427. package/dist/components/ix-datetime-picker.js +21 -14
  428. package/dist/components/ix-datetime-picker.js.map +1 -1
  429. package/dist/components/ix-divider.js +1 -28
  430. package/dist/components/ix-divider.js.map +1 -1
  431. package/dist/components/ix-drawer.js +13 -4
  432. package/dist/components/ix-drawer.js.map +1 -1
  433. package/dist/components/ix-dropdown-button.js +22 -14
  434. package/dist/components/ix-dropdown-button.js.map +1 -1
  435. package/dist/components/{ix-modal-container.d.ts → ix-dropdown-header.d.ts} +4 -4
  436. package/dist/components/ix-dropdown-header.js +44 -0
  437. package/dist/components/ix-dropdown-header.js.map +1 -0
  438. package/dist/components/ix-empty-state.js +10 -4
  439. package/dist/components/ix-empty-state.js.map +1 -1
  440. package/dist/components/ix-event-list-item.js +21 -11
  441. package/dist/components/ix-event-list-item.js.map +1 -1
  442. package/dist/components/ix-event-list.js +34 -17
  443. package/dist/components/ix-event-list.js.map +1 -1
  444. package/dist/components/ix-expanding-search.js +16 -12
  445. package/dist/components/ix-expanding-search.js.map +1 -1
  446. package/dist/components/ix-flip-tile.js +11 -5
  447. package/dist/components/ix-flip-tile.js.map +1 -1
  448. package/dist/components/ix-group.js +50 -49
  449. package/dist/components/ix-group.js.map +1 -1
  450. package/dist/components/ix-input-group.js +1 -1
  451. package/dist/components/ix-input-group.js.map +1 -1
  452. package/dist/components/ix-link-button.d.ts +11 -0
  453. package/dist/components/ix-link-button.js +54 -0
  454. package/dist/components/ix-link-button.js.map +1 -0
  455. package/dist/components/ix-map-navigation.js +35 -17
  456. package/dist/components/ix-map-navigation.js.map +1 -1
  457. package/dist/components/ix-menu-about-item.js +3 -2
  458. package/dist/components/ix-menu-about-item.js.map +1 -1
  459. package/dist/components/ix-menu-about-news.js +27 -8
  460. package/dist/components/ix-menu-about-news.js.map +1 -1
  461. package/dist/components/ix-menu-about.js +18 -10
  462. package/dist/components/ix-menu-about.js.map +1 -1
  463. package/dist/components/ix-menu-avatar.js +11 -19
  464. package/dist/components/ix-menu-avatar.js.map +1 -1
  465. package/dist/components/ix-menu-category.d.ts +11 -0
  466. package/dist/components/ix-menu-category.js +196 -0
  467. package/dist/components/ix-menu-category.js.map +1 -0
  468. package/dist/components/ix-menu-settings-item.js +3 -2
  469. package/dist/components/ix-menu-settings-item.js.map +1 -1
  470. package/dist/components/ix-menu-settings.js +19 -11
  471. package/dist/components/ix-menu-settings.js.map +1 -1
  472. package/dist/components/ix-menu.js +238 -315
  473. package/dist/components/ix-menu.js.map +1 -1
  474. package/dist/components/ix-message-bar.js +10 -4
  475. package/dist/components/ix-message-bar.js.map +1 -1
  476. package/dist/components/ix-modal-content.d.ts +11 -0
  477. package/dist/components/ix-modal-content.js +35 -0
  478. package/dist/components/ix-modal-content.js.map +1 -0
  479. package/dist/components/ix-modal-example.js +10 -15
  480. package/dist/components/ix-modal-example.js.map +1 -1
  481. package/dist/components/{ix-counter-pill.d.ts → ix-modal-footer.d.ts} +4 -4
  482. package/dist/components/ix-modal-footer.js +35 -0
  483. package/dist/components/ix-modal-footer.js.map +1 -0
  484. package/dist/components/ix-modal-header.d.ts +11 -0
  485. package/dist/components/ix-modal-header.js +90 -0
  486. package/dist/components/ix-modal-header.js.map +1 -0
  487. package/dist/components/ix-modal-loading.d.ts +11 -0
  488. package/dist/components/ix-modal-loading.js +41 -0
  489. package/dist/components/ix-modal-loading.js.map +1 -0
  490. package/dist/components/ix-modal.js +148 -1
  491. package/dist/components/ix-modal.js.map +1 -1
  492. package/dist/components/ix-pagination.js +25 -19
  493. package/dist/components/ix-pagination.js.map +1 -1
  494. package/dist/components/ix-pill.js +29 -10
  495. package/dist/components/ix-pill.js.map +1 -1
  496. package/dist/components/ix-split-button-item.js +4 -3
  497. package/dist/components/ix-split-button-item.js.map +1 -1
  498. package/dist/components/ix-split-button.js +36 -14
  499. package/dist/components/ix-split-button.js.map +1 -1
  500. package/dist/components/ix-tile.js +22 -4
  501. package/dist/components/ix-tile.js.map +1 -1
  502. package/dist/components/ix-toast-container.js +12 -6
  503. package/dist/components/ix-toast-container.js.map +1 -1
  504. package/dist/components/ix-toggle.js +15 -34
  505. package/dist/components/ix-toggle.js.map +1 -1
  506. package/dist/components/ix-upload.js +28 -10
  507. package/dist/components/ix-upload.js.map +1 -1
  508. package/dist/components/ix-validation-tooltip.js +6 -18
  509. package/dist/components/ix-validation-tooltip.js.map +1 -1
  510. package/dist/components/ix-workflow-step.js +6 -5
  511. package/dist/components/ix-workflow-step.js.map +1 -1
  512. package/dist/components/ix-workflow-steps.js +13 -16
  513. package/dist/components/ix-workflow-steps.js.map +1 -1
  514. package/dist/components/map-navigation-overlay.js +10 -4
  515. package/dist/components/map-navigation-overlay.js.map +1 -1
  516. package/dist/components/menu-avatar-item.js +3 -2
  517. package/dist/components/menu-avatar-item.js.map +1 -1
  518. package/dist/components/menu-item.js +17 -3
  519. package/dist/components/menu-item.js.map +1 -1
  520. package/dist/components/menu-service.js +78 -0
  521. package/dist/components/menu-service.js.map +1 -0
  522. package/dist/components/modal.js +225 -165
  523. package/dist/components/modal.js.map +1 -1
  524. package/dist/components/my-component.js.map +1 -1
  525. package/dist/components/select-item.js +4 -2
  526. package/dist/components/select-item.js.map +1 -1
  527. package/dist/components/select.js +33 -17
  528. package/dist/components/select.js.map +1 -1
  529. package/dist/components/service.js +83 -81
  530. package/dist/components/service.js.map +1 -1
  531. package/dist/components/spinner.js +11 -3
  532. package/dist/components/spinner.js.map +1 -1
  533. package/dist/components/tab-item.js +3 -2
  534. package/dist/components/tab-item.js.map +1 -1
  535. package/dist/components/tabs.js +22 -7
  536. package/dist/components/tabs.js.map +1 -1
  537. package/dist/components/time-picker.js +19 -13
  538. package/dist/components/time-picker.js.map +1 -1
  539. package/dist/components/toast.js +17 -10
  540. package/dist/components/toast.js.map +1 -1
  541. package/dist/components/typography.js +3 -3
  542. package/dist/components/typography.js.map +1 -1
  543. package/dist/esm/a11y-aa83c2d1.js +79 -0
  544. package/dist/esm/a11y-aa83c2d1.js.map +1 -0
  545. package/dist/esm/base-button-5bfeb71c.js.map +1 -1
  546. package/dist/esm/context-381170ae.js +22 -0
  547. package/dist/esm/context-381170ae.js.map +1 -0
  548. package/dist/esm/{flip-tile-state-051bb2fd.js → flip-tile-state-db31345f.js} +6 -6
  549. package/dist/esm/{flip-tile-state-051bb2fd.js.map → flip-tile-state-db31345f.js.map} +1 -1
  550. package/dist/esm/{floating-ui.dom.esm-3130eda0.js → floating-ui.dom.esm-9b203a02.js} +2 -103
  551. package/dist/esm/floating-ui.dom.esm-9b203a02.js.map +1 -0
  552. package/dist/esm/{icon-c659fc0f.js → icon-4ac90a6d.js} +2 -2
  553. package/dist/esm/{icon-c659fc0f.js.map → icon-4ac90a6d.js.map} +1 -1
  554. package/dist/esm/{index-8ddfb6d8.js → index-7334ee80.js} +77 -22
  555. package/dist/esm/index-7334ee80.js.map +1 -0
  556. package/dist/esm/index.js +40 -5
  557. package/dist/esm/index.js.map +1 -1
  558. package/dist/esm/ix-action-card.entry.js +1 -1
  559. package/dist/esm/ix-animated-tab_2.entry.js +1 -1
  560. package/dist/esm/ix-application-header.entry.js +20 -17
  561. package/dist/esm/ix-application-header.entry.js.map +1 -1
  562. package/dist/esm/ix-avatar.entry.js +35 -0
  563. package/dist/esm/ix-avatar.entry.js.map +1 -0
  564. package/dist/esm/ix-basic-navigation.entry.js +13 -15
  565. package/dist/esm/ix-basic-navigation.entry.js.map +1 -1
  566. package/dist/esm/ix-blind.entry.js +2 -11
  567. package/dist/esm/ix-blind.entry.js.map +1 -1
  568. package/dist/esm/ix-breadcrumb_2.entry.js +1 -1
  569. package/dist/esm/ix-burger-menu.entry.js +7 -3
  570. package/dist/esm/ix-burger-menu.entry.js.map +1 -1
  571. package/dist/esm/ix-button.entry.js +22 -4
  572. package/dist/esm/ix-button.entry.js.map +1 -1
  573. package/dist/esm/ix-card-accordion_2.entry.js +1 -1
  574. package/dist/esm/ix-card-list.entry.js +1 -1
  575. package/dist/esm/ix-card_2.entry.js +31 -0
  576. package/dist/esm/ix-card_2.entry.js.map +1 -0
  577. package/dist/esm/ix-category-filter.entry.js +2 -2
  578. package/dist/esm/ix-category-filter.entry.js.map +1 -1
  579. package/dist/esm/ix-chip.entry.js +23 -15
  580. package/dist/esm/ix-chip.entry.js.map +1 -1
  581. package/dist/esm/ix-content-header.entry.js +3 -3
  582. package/dist/esm/ix-content-header.entry.js.map +1 -1
  583. package/dist/esm/ix-css-grid-item.entry.js +1 -1
  584. package/dist/esm/ix-css-grid.entry.js +1 -1
  585. package/dist/esm/ix-date-picker_2.entry.js +8 -9
  586. package/dist/esm/ix-date-picker_2.entry.js.map +1 -1
  587. package/dist/esm/ix-date-time-card.entry.js +2 -3
  588. package/dist/esm/ix-date-time-card.entry.js.map +1 -1
  589. package/dist/esm/ix-datetime-picker.entry.js +2 -2
  590. package/dist/esm/ix-datetime-picker.entry.js.map +1 -1
  591. package/dist/esm/ix-divider.entry.js +1 -1
  592. package/dist/esm/ix-drawer.entry.js +4 -1
  593. package/dist/esm/ix-drawer.entry.js.map +1 -1
  594. package/dist/esm/ix-dropdown-button.entry.js +7 -6
  595. package/dist/esm/ix-dropdown-button.entry.js.map +1 -1
  596. package/dist/esm/ix-dropdown-header.entry.js +18 -0
  597. package/dist/esm/ix-dropdown-header.entry.js.map +1 -0
  598. package/dist/esm/ix-dropdown-quick-actions.entry.js +1 -1
  599. package/dist/esm/ix-dropdown_2.entry.js +67 -33
  600. package/dist/esm/ix-dropdown_2.entry.js.map +1 -1
  601. package/dist/esm/ix-empty-state.entry.js +1 -1
  602. package/dist/esm/ix-event-list_2.entry.js +44 -25
  603. package/dist/esm/ix-event-list_2.entry.js.map +1 -1
  604. package/dist/esm/ix-expanding-search.entry.js +5 -8
  605. package/dist/esm/ix-expanding-search.entry.js.map +1 -1
  606. package/dist/esm/ix-filter-chip.entry.js +3 -3
  607. package/dist/esm/ix-filter-chip.entry.js.map +1 -1
  608. package/dist/esm/ix-flip-tile_2.entry.js +3 -3
  609. package/dist/esm/ix-flip-tile_2.entry.js.map +1 -1
  610. package/dist/esm/ix-group-context-menu.entry.js +26 -14
  611. package/dist/esm/ix-group-context-menu.entry.js.map +1 -1
  612. package/dist/esm/ix-group_2.entry.js +154 -0
  613. package/dist/esm/ix-group_2.entry.js.map +1 -0
  614. package/dist/esm/ix-icon-button.entry.js +26 -5
  615. package/dist/esm/ix-icon-button.entry.js.map +1 -1
  616. package/dist/esm/ix-icon.entry.js +2 -2
  617. package/dist/esm/ix-index-button.entry.js +4 -4
  618. package/dist/esm/ix-index-button.entry.js.map +1 -1
  619. package/dist/esm/ix-input-group.entry.js +2 -2
  620. package/dist/esm/ix-input-group.entry.js.map +1 -1
  621. package/dist/esm/ix-key-value-list.entry.js +1 -1
  622. package/dist/esm/ix-key-value.entry.js +1 -1
  623. package/dist/esm/ix-kpi.entry.js +1 -1
  624. package/dist/esm/ix-link-button.entry.js +26 -0
  625. package/dist/esm/ix-link-button.entry.js.map +1 -0
  626. package/dist/esm/ix-map-navigation_2.entry.js +17 -7
  627. package/dist/esm/ix-map-navigation_2.entry.js.map +1 -1
  628. package/dist/esm/ix-menu-category.entry.js +134 -0
  629. package/dist/esm/ix-menu-category.entry.js.map +1 -0
  630. package/dist/esm/ix-menu_9.entry.js +251 -338
  631. package/dist/esm/ix-menu_9.entry.js.map +1 -1
  632. package/dist/esm/ix-message-bar.entry.js +1 -1
  633. package/dist/esm/ix-modal-content.entry.js +17 -0
  634. package/dist/esm/ix-modal-content.entry.js.map +1 -0
  635. package/dist/esm/ix-modal-example.entry.js +4 -2
  636. package/dist/esm/ix-modal-example.entry.js.map +1 -1
  637. package/dist/esm/ix-modal-footer.entry.js +17 -0
  638. package/dist/esm/ix-modal-footer.entry.js.map +1 -0
  639. package/dist/esm/ix-modal-header.entry.js +44 -0
  640. package/dist/esm/ix-modal-header.entry.js.map +1 -0
  641. package/dist/esm/ix-modal-loading.entry.js +17 -0
  642. package/dist/esm/ix-modal-loading.entry.js.map +1 -0
  643. package/dist/esm/ix-modal.entry.js +126 -0
  644. package/dist/esm/ix-modal.entry.js.map +1 -0
  645. package/dist/esm/ix-pagination.entry.js +4 -4
  646. package/dist/esm/ix-pagination.entry.js.map +1 -1
  647. package/dist/esm/ix-pill.entry.js +28 -10
  648. package/dist/esm/ix-pill.entry.js.map +1 -1
  649. package/dist/esm/ix-push-card.entry.js +1 -1
  650. package/dist/esm/ix-select_2.entry.js +20 -8
  651. package/dist/esm/ix-select_2.entry.js.map +1 -1
  652. package/dist/esm/ix-spinner.entry.js +10 -3
  653. package/dist/esm/ix-spinner.entry.js.map +1 -1
  654. package/dist/esm/ix-split-button_2.entry.js +15 -11
  655. package/dist/esm/ix-split-button_2.entry.js.map +1 -1
  656. package/dist/esm/ix-tab-item.entry.js +2 -2
  657. package/dist/esm/ix-tab-item.entry.js.map +1 -1
  658. package/dist/esm/ix-tabs.entry.js +14 -6
  659. package/dist/esm/ix-tabs.entry.js.map +1 -1
  660. package/dist/esm/ix-tile.entry.js +18 -3
  661. package/dist/esm/ix-tile.entry.js.map +1 -1
  662. package/dist/esm/ix-toast_2.entry.js +6 -7
  663. package/dist/esm/ix-toast_2.entry.js.map +1 -1
  664. package/dist/esm/ix-toggle.entry.js +11 -30
  665. package/dist/esm/ix-toggle.entry.js.map +1 -1
  666. package/dist/esm/ix-tooltip.entry.js +2 -2
  667. package/dist/esm/ix-tree_2.entry.js +1 -1
  668. package/dist/esm/ix-typography.entry.js +42 -0
  669. package/dist/esm/ix-typography.entry.js.map +1 -0
  670. package/dist/esm/ix-upload.entry.js +19 -7
  671. package/dist/esm/ix-upload.entry.js.map +1 -1
  672. package/dist/esm/ix-validation-tooltip.entry.js +6 -19
  673. package/dist/esm/ix-validation-tooltip.entry.js.map +1 -1
  674. package/dist/esm/ix-workflow-step_2.entry.js +14 -18
  675. package/dist/esm/ix-workflow-step_2.entry.js.map +1 -1
  676. package/dist/esm/loader.js +3 -3
  677. package/dist/esm/menu-service-b3076949.js +78 -0
  678. package/dist/esm/menu-service-b3076949.js.map +1 -0
  679. package/dist/esm/modal-68c6d3f6.js +245 -0
  680. package/dist/esm/modal-68c6d3f6.js.map +1 -0
  681. package/dist/esm/my-component.entry.js +1 -1
  682. package/dist/esm/my-component.entry.js.map +1 -1
  683. package/dist/esm/service-586129b5.js +143 -0
  684. package/dist/esm/service-586129b5.js.map +1 -0
  685. package/dist/esm/shadow-dom-6860b1c4.js +18 -0
  686. package/dist/esm/shadow-dom-6860b1c4.js.map +1 -0
  687. package/dist/esm/siemens-ix.js +3 -3
  688. package/dist/siemens-ix/index.esm.js +1 -1
  689. package/dist/siemens-ix/index.esm.js.map +1 -1
  690. package/dist/siemens-ix/{p-d848739e.entry.js → p-00f74fc9.entry.js} +2 -2
  691. package/dist/siemens-ix/p-01c37ebe.entry.js +2 -0
  692. package/dist/siemens-ix/p-01c37ebe.entry.js.map +1 -0
  693. package/dist/siemens-ix/{p-6acce5c9.entry.js → p-02f01e39.entry.js} +2 -2
  694. package/dist/siemens-ix/p-0574cf88.entry.js +2 -0
  695. package/dist/siemens-ix/p-0574cf88.entry.js.map +1 -0
  696. package/dist/siemens-ix/p-06603826.entry.js +2 -0
  697. package/dist/siemens-ix/p-06603826.entry.js.map +1 -0
  698. package/dist/siemens-ix/p-06fcaee3.entry.js +2 -0
  699. package/dist/siemens-ix/p-06fcaee3.entry.js.map +1 -0
  700. package/dist/siemens-ix/{p-07c932da.entry.js → p-07a0b330.entry.js} +2 -2
  701. package/dist/siemens-ix/{p-3f4a9e1f.entry.js → p-09ce5f12.entry.js} +2 -2
  702. package/dist/siemens-ix/p-0b71cde4.js +2 -0
  703. package/dist/siemens-ix/p-0b71cde4.js.map +1 -0
  704. package/dist/siemens-ix/{p-f74c7692.entry.js → p-0c9ead45.entry.js} +2 -2
  705. package/dist/siemens-ix/{p-f74c7692.entry.js.map → p-0c9ead45.entry.js.map} +1 -1
  706. package/dist/siemens-ix/p-0dea55bf.entry.js +2 -0
  707. package/dist/siemens-ix/p-0dea55bf.entry.js.map +1 -0
  708. package/dist/siemens-ix/p-0e86b47b.entry.js +2 -0
  709. package/dist/siemens-ix/p-0e86b47b.entry.js.map +1 -0
  710. package/dist/siemens-ix/{p-13bda5ea.entry.js → p-0fab8cae.entry.js} +2 -2
  711. package/dist/siemens-ix/p-157f7ec0.entry.js +2 -0
  712. package/dist/siemens-ix/p-157f7ec0.entry.js.map +1 -0
  713. package/dist/siemens-ix/p-15996fa7.entry.js +2 -0
  714. package/dist/siemens-ix/p-15996fa7.entry.js.map +1 -0
  715. package/dist/siemens-ix/p-1b1bc523.entry.js +2 -0
  716. package/dist/siemens-ix/p-1b1bc523.entry.js.map +1 -0
  717. package/dist/siemens-ix/p-1b227e9a.js +2 -0
  718. package/dist/siemens-ix/{p-15bebd8a.js.map → p-1b227e9a.js.map} +1 -1
  719. package/dist/siemens-ix/{p-003e9355.entry.js → p-20aa7350.entry.js} +2 -2
  720. package/dist/siemens-ix/p-2ea3d53a.entry.js +2 -0
  721. package/dist/siemens-ix/p-2ea3d53a.entry.js.map +1 -0
  722. package/dist/siemens-ix/p-303b8c2f.entry.js +2 -0
  723. package/dist/siemens-ix/p-303b8c2f.entry.js.map +1 -0
  724. package/dist/siemens-ix/{p-f6ae45fb.entry.js → p-33670e98.entry.js} +2 -2
  725. package/dist/siemens-ix/p-34633470.entry.js +2 -0
  726. package/dist/siemens-ix/p-34633470.entry.js.map +1 -0
  727. package/dist/siemens-ix/{p-3ec2368b.entry.js → p-34807901.entry.js} +2 -2
  728. package/dist/siemens-ix/{p-3ec2368b.entry.js.map → p-34807901.entry.js.map} +1 -1
  729. package/dist/siemens-ix/p-38e69215.entry.js +2 -0
  730. package/dist/siemens-ix/p-38e69215.entry.js.map +1 -0
  731. package/dist/siemens-ix/p-3a99b0c8.entry.js +2 -0
  732. package/dist/siemens-ix/p-3a99b0c8.entry.js.map +1 -0
  733. package/dist/siemens-ix/p-45738e84.js +2 -0
  734. package/dist/siemens-ix/p-45738e84.js.map +1 -0
  735. package/dist/siemens-ix/{p-a89a1fa5.entry.js → p-4d194d55.entry.js} +2 -2
  736. package/dist/siemens-ix/{p-652ba2c1.entry.js → p-56a27b34.entry.js} +2 -2
  737. package/dist/siemens-ix/{p-652ba2c1.entry.js.map → p-56a27b34.entry.js.map} +1 -1
  738. package/dist/siemens-ix/p-5b39e04e.js.map +1 -1
  739. package/dist/siemens-ix/p-5fedb19b.entry.js +2 -0
  740. package/dist/siemens-ix/p-5fedb19b.entry.js.map +1 -0
  741. package/dist/siemens-ix/p-627148db.entry.js +2 -0
  742. package/dist/siemens-ix/p-627148db.entry.js.map +1 -0
  743. package/dist/siemens-ix/p-62f4db99.entry.js +2 -0
  744. package/dist/siemens-ix/p-62f4db99.entry.js.map +1 -0
  745. package/dist/siemens-ix/{p-626fbee2.entry.js → p-63b82e40.entry.js} +2 -2
  746. package/dist/siemens-ix/{p-626fbee2.entry.js.map → p-63b82e40.entry.js.map} +1 -1
  747. package/dist/siemens-ix/p-68c44614.entry.js +2 -0
  748. package/dist/siemens-ix/p-68c44614.entry.js.map +1 -0
  749. package/dist/siemens-ix/p-7021c2d1.entry.js +2 -0
  750. package/dist/siemens-ix/p-7021c2d1.entry.js.map +1 -0
  751. package/dist/siemens-ix/{p-d2225fc2.entry.js → p-709d38fe.entry.js} +2 -2
  752. package/dist/siemens-ix/p-785726e8.entry.js +2 -0
  753. package/dist/siemens-ix/p-785726e8.entry.js.map +1 -0
  754. package/dist/siemens-ix/p-7d2aec76.entry.js +2 -0
  755. package/dist/siemens-ix/{p-f207e578.entry.js.map → p-7d2aec76.entry.js.map} +1 -1
  756. package/dist/siemens-ix/{p-1331a920.entry.js → p-81333042.entry.js} +2 -2
  757. package/dist/siemens-ix/p-8c14a4a3.entry.js +2 -0
  758. package/dist/siemens-ix/p-8c14a4a3.entry.js.map +1 -0
  759. package/dist/siemens-ix/p-8ce73af1.entry.js +2 -0
  760. package/dist/siemens-ix/p-8ce73af1.entry.js.map +1 -0
  761. package/dist/siemens-ix/{p-85f01dba.entry.js → p-904aa275.entry.js} +2 -2
  762. package/dist/siemens-ix/{p-cd3cfc78.entry.js → p-918450cd.entry.js} +2 -2
  763. package/dist/siemens-ix/p-9547706d.entry.js +2 -0
  764. package/dist/siemens-ix/p-9547706d.entry.js.map +1 -0
  765. package/dist/siemens-ix/p-9903e755.entry.js +2 -0
  766. package/dist/siemens-ix/p-9903e755.entry.js.map +1 -0
  767. package/dist/siemens-ix/p-9c030990.js +2 -0
  768. package/dist/siemens-ix/p-9c030990.js.map +1 -0
  769. package/dist/siemens-ix/p-9d264ca8.entry.js +2 -0
  770. package/dist/siemens-ix/p-9d264ca8.entry.js.map +1 -0
  771. package/dist/siemens-ix/p-a64d88de.entry.js +2 -0
  772. package/dist/siemens-ix/p-a64d88de.entry.js.map +1 -0
  773. package/dist/siemens-ix/p-a8e8a942.entry.js +2 -0
  774. package/dist/siemens-ix/p-a8e8a942.entry.js.map +1 -0
  775. package/dist/siemens-ix/p-a9619a92.entry.js +2 -0
  776. package/dist/siemens-ix/p-a9619a92.entry.js.map +1 -0
  777. package/dist/siemens-ix/{p-a7212f01.entry.js → p-b21bc31c.entry.js} +2 -2
  778. package/dist/siemens-ix/p-b6d52b6f.entry.js +2 -0
  779. package/dist/siemens-ix/p-b6d52b6f.entry.js.map +1 -0
  780. package/dist/siemens-ix/{p-6c033b08.entry.js → p-b89172b4.entry.js} +2 -2
  781. package/dist/siemens-ix/p-b899b25b.js +3 -0
  782. package/dist/siemens-ix/p-b899b25b.js.map +1 -0
  783. package/dist/siemens-ix/p-bf019e35.entry.js +2 -0
  784. package/dist/siemens-ix/p-bf019e35.entry.js.map +1 -0
  785. package/dist/siemens-ix/p-c0345859.entry.js +2 -0
  786. package/dist/siemens-ix/p-c0345859.entry.js.map +1 -0
  787. package/dist/siemens-ix/{p-55b54a81.entry.js → p-c4ea8815.entry.js} +2 -2
  788. package/dist/siemens-ix/p-c4ea8815.entry.js.map +1 -0
  789. package/dist/siemens-ix/p-c84a43ef.entry.js +2 -0
  790. package/dist/siemens-ix/p-c84a43ef.entry.js.map +1 -0
  791. package/dist/siemens-ix/p-d0a8aa6f.entry.js +2 -0
  792. package/dist/siemens-ix/p-d43bf856.js +2 -0
  793. package/dist/siemens-ix/p-d43bf856.js.map +1 -0
  794. package/dist/siemens-ix/{p-b60bd26c.entry.js → p-d48d74af.entry.js} +2 -2
  795. package/dist/siemens-ix/{p-b60bd26c.entry.js.map → p-d48d74af.entry.js.map} +1 -1
  796. package/dist/siemens-ix/p-d737ad96.js +2 -0
  797. package/dist/siemens-ix/p-d737ad96.js.map +1 -0
  798. package/dist/siemens-ix/p-d7e8417d.entry.js +2 -0
  799. package/dist/siemens-ix/p-d7e8417d.entry.js.map +1 -0
  800. package/dist/siemens-ix/p-d81d0f62.entry.js +2 -0
  801. package/dist/siemens-ix/p-d81d0f62.entry.js.map +1 -0
  802. package/dist/siemens-ix/p-d991a3d6.entry.js +2 -0
  803. package/dist/siemens-ix/p-d991a3d6.entry.js.map +1 -0
  804. package/dist/siemens-ix/{p-b1db27a3.js → p-db74796e.js} +2 -2
  805. package/dist/siemens-ix/p-dbca4dd5.entry.js +2 -0
  806. package/dist/siemens-ix/p-dbca4dd5.entry.js.map +1 -0
  807. package/dist/siemens-ix/p-e1c92dcb.entry.js +2 -0
  808. package/dist/siemens-ix/p-e1c92dcb.entry.js.map +1 -0
  809. package/dist/siemens-ix/p-e275814e.js +2 -0
  810. package/dist/siemens-ix/p-e275814e.js.map +1 -0
  811. package/dist/siemens-ix/p-e3db25ef.entry.js +2 -0
  812. package/dist/siemens-ix/p-e3db25ef.entry.js.map +1 -0
  813. package/dist/siemens-ix/p-e8f2e141.entry.js +2 -0
  814. package/dist/siemens-ix/p-e8f2e141.entry.js.map +1 -0
  815. package/dist/siemens-ix/p-eca0b89c.entry.js +2 -0
  816. package/dist/siemens-ix/p-eca0b89c.entry.js.map +1 -0
  817. package/dist/siemens-ix/p-ef73f7e3.entry.js +2 -0
  818. package/dist/siemens-ix/p-ef73f7e3.entry.js.map +1 -0
  819. package/dist/siemens-ix/{p-bd24f35f.entry.js → p-f0219d7a.entry.js} +2 -2
  820. package/dist/siemens-ix/p-f22423c2.js +2 -0
  821. package/dist/siemens-ix/p-f22423c2.js.map +1 -0
  822. package/dist/siemens-ix/{p-1e8ee4af.entry.js → p-f38e7420.entry.js} +2 -2
  823. package/dist/siemens-ix/p-f4d634f5.entry.js +2 -0
  824. package/dist/siemens-ix/p-f4d634f5.entry.js.map +1 -0
  825. package/dist/siemens-ix/{p-94ab7c1c.entry.js → p-fafe1aeb.entry.js} +2 -2
  826. package/dist/siemens-ix/{p-94ab7c1c.entry.js.map → p-fafe1aeb.entry.js.map} +1 -1
  827. package/dist/siemens-ix/p-fe073f2a.entry.js +2 -0
  828. package/dist/siemens-ix/p-fe073f2a.entry.js.map +1 -0
  829. package/dist/siemens-ix/{p-6124d173.entry.js → p-ff17104c.entry.js} +2 -2
  830. package/dist/siemens-ix/siemens-ix-core.css +12289 -0
  831. package/dist/siemens-ix/siemens-ix.css +941 -875
  832. package/dist/siemens-ix/siemens-ix.esm.js +1 -1
  833. package/dist/siemens-ix/siemens-ix.esm.js.map +1 -1
  834. package/dist/siemens-ix/theme/classic-dark.css +1062 -0
  835. package/dist/siemens-ix/theme/classic-light.css +1062 -0
  836. package/dist/siemens-ix/theme/legacy-classic-dark.css +1061 -0
  837. package/dist/siemens-ix/theme/legacy-classic-light.css +1061 -0
  838. package/dist/types/components/application-header/application-header.d.ts +5 -1
  839. package/dist/types/components/avatar/avatar.d.ts +17 -0
  840. package/dist/types/components/basic-navigation/basic-navigation.d.ts +2 -3
  841. package/dist/types/components/button/base-button.d.ts +2 -1
  842. package/dist/types/components/button/button.d.ts +18 -1
  843. package/dist/types/components/button/test/button.ct.d.ts +1 -0
  844. package/dist/types/components/content-header/content-header.d.ts +1 -1
  845. package/dist/types/components/date-time-card/date-time-card.d.ts +0 -1
  846. package/dist/types/components/drawer/drawer.d.ts +1 -0
  847. package/dist/types/components/drawer/test/drawer.ct.d.ts +1 -0
  848. package/dist/types/components/dropdown/dropdown.d.ts +10 -13
  849. package/dist/types/components/dropdown/placement.d.ts +3 -4
  850. package/dist/types/components/dropdown-button/dropdown-button.d.ts +3 -1
  851. package/dist/types/components/dropdown-header/dropdown-header.d.ts +10 -0
  852. package/dist/types/components/dropdown-item/dropdown-item.d.ts +9 -0
  853. package/dist/types/components/event-list/event-list.d.ts +3 -1
  854. package/dist/types/components/event-list-item/event-list-item.d.ts +4 -2
  855. package/dist/types/components/expanding-search/test/expanding-search.ct.d.ts +1 -0
  856. package/dist/types/components/flip-tile/flip-tile-state.d.ts +5 -5
  857. package/dist/types/components/group/group-context-menu.d.ts +3 -4
  858. package/dist/types/components/group/group.d.ts +7 -8
  859. package/dist/types/components/icon-button/icon-button.d.ts +16 -1
  860. package/dist/types/components/icon-button/test/icon-button.ct.d.ts +1 -0
  861. package/dist/types/components/link-button/link-button.d.ts +20 -0
  862. package/dist/types/components/map-navigation/map-navigation.d.ts +3 -1
  863. package/dist/types/components/menu/burger-menu.d.ts +9 -1
  864. package/dist/types/components/menu/menu.d.ts +45 -34
  865. package/dist/types/components/menu/test/menu.ct.d.ts +1 -0
  866. package/dist/types/components/menu-about/menu-about.d.ts +4 -1
  867. package/dist/types/components/menu-category/menu-category.d.ts +37 -0
  868. package/dist/types/components/menu-category/test/menu-category.ct.d.ts +1 -0
  869. package/dist/types/components/menu-item/menu-item.d.ts +9 -2
  870. package/dist/types/components/menu-settings/menu-settings.d.ts +4 -1
  871. package/dist/types/components/modal/modal.d.ts +35 -66
  872. package/dist/types/components/modal-content/modal-content.d.ts +6 -0
  873. package/dist/types/components/modal-footer/modal-footer.d.ts +6 -0
  874. package/dist/types/components/modal-header/modal-header.d.ts +28 -0
  875. package/dist/types/components/modal-loading/modal-loading.d.ts +6 -0
  876. package/dist/types/components/select/select.d.ts +9 -1
  877. package/dist/types/components/select/test/select.ct.d.ts +1 -0
  878. package/dist/types/components/spinner/spinner.d.ts +7 -2
  879. package/dist/types/components/split-button/split-button.d.ts +3 -9
  880. package/dist/types/components/tile/tile.d.ts +5 -0
  881. package/dist/types/components/time-picker/time-picker.d.ts +0 -1
  882. package/dist/types/components/toast/toast-container.d.ts +0 -1
  883. package/dist/types/components/toast/toast.d.ts +1 -1
  884. package/dist/types/components/toggle/test/toggle.ct.d.ts +1 -0
  885. package/dist/types/components/toggle/toggle.d.ts +3 -10
  886. package/dist/types/components/utils/a11y.d.ts +7 -0
  887. package/dist/types/components/utils/delegate.d.ts +15 -0
  888. package/dist/types/components/utils/menu-service/menu-service.d.ts +3 -0
  889. package/dist/types/components/utils/modal/index.d.ts +3 -0
  890. package/dist/types/components/utils/modal/loading.d.ts +4 -0
  891. package/dist/types/components/utils/modal/message.d.ts +41 -0
  892. package/dist/types/components/utils/modal/modal.d.ts +25 -0
  893. package/dist/types/components/utils/screen/context.d.ts +1 -0
  894. package/dist/types/components/utils/screen/mode.d.ts +5 -2
  895. package/dist/types/components/utils/screen/service.d.ts +5 -0
  896. package/dist/types/components/utils/shadow-dom.d.ts +3 -0
  897. package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +8 -2
  898. package/dist/types/components/workflow-step/workflow-step.d.ts +1 -1
  899. package/dist/types/components/workflow-steps/workflow-steps.d.ts +1 -1
  900. package/dist/types/components.d.ts +466 -265
  901. package/dist/types/index.d.ts +2 -1
  902. package/package.json +7 -6
  903. package/scss/components/_buttons.scss +4 -0
  904. package/scss/components/_dropdown.scss +1 -0
  905. package/scss/components/_forms.scss +1 -0
  906. package/scss/components/_links.scss +24 -0
  907. package/scss/ix-core.scss +84 -0
  908. package/scss/mixins/_hover.scss +32 -0
  909. package/{dist/collection/components/group-dropdown-item/group-dropdown-item.css → scss/mixins/shadow-dom/_host-disabled.scss} +6 -3
  910. package/scss/mixins/shadow-dom/_hover.scss +26 -0
  911. package/scss/theme/classic-dark/_borderRadius.scss +5 -5
  912. package/scss/theme/classic-dark/_borderWidth.scss +5 -5
  913. package/scss/theme/classic-dark/_boxShadow.scss +7 -7
  914. package/scss/theme/classic-dark/_color.scss +423 -418
  915. package/scss/theme/classic-dark/_other.scss +4 -4
  916. package/scss/theme/classic-dark/_sizing.scss +1 -1
  917. package/scss/theme/classic-light/_borderRadius.scss +4 -4
  918. package/scss/theme/classic-light/_borderWidth.scss +5 -5
  919. package/scss/theme/classic-light/_boxShadow.scss +7 -7
  920. package/scss/theme/classic-light/_color.scss +420 -415
  921. package/scss/theme/classic-light/_other.scss +4 -4
  922. package/scss/theme/classic-light/_sizing.scss +1 -1
  923. package/scss/theme/legacy-classic-dark/_border.scss +35 -0
  924. package/scss/theme/legacy-classic-dark/_borderRadius.scss +24 -0
  925. package/scss/theme/legacy-classic-dark/_borderWidth.scss +18 -0
  926. package/scss/theme/legacy-classic-dark/_boxShadow.scss +19 -0
  927. package/scss/theme/legacy-classic-dark/_color.scss +864 -0
  928. package/scss/theme/legacy-classic-dark/_fontFamilies.scss +8 -0
  929. package/scss/theme/legacy-classic-dark/_fontSizes.scss +13 -0
  930. package/scss/theme/legacy-classic-dark/_fontWeights.scss +9 -0
  931. package/scss/theme/legacy-classic-dark/_index.scss +16 -0
  932. package/scss/theme/legacy-classic-dark/_lineHeights.scss +18 -0
  933. package/scss/theme/legacy-classic-dark/_other.scss +16 -0
  934. package/scss/theme/legacy-classic-dark/_sizing.scss +16 -0
  935. package/scss/theme/legacy-classic-dark/_spacing.scss +9 -0
  936. package/scss/theme/legacy-classic-dark/_typography.scss +23 -0
  937. package/scss/theme/legacy-classic-light/_border.scss +35 -0
  938. package/scss/theme/legacy-classic-light/_borderRadius.scss +24 -0
  939. package/scss/theme/legacy-classic-light/_borderWidth.scss +18 -0
  940. package/scss/theme/legacy-classic-light/_boxShadow.scss +19 -0
  941. package/scss/theme/legacy-classic-light/_color.scss +864 -0
  942. package/scss/theme/legacy-classic-light/_fontFamilies.scss +8 -0
  943. package/scss/theme/legacy-classic-light/_fontSizes.scss +13 -0
  944. package/scss/theme/legacy-classic-light/_fontWeights.scss +9 -0
  945. package/scss/theme/legacy-classic-light/_index.scss +16 -0
  946. package/scss/theme/legacy-classic-light/_lineHeights.scss +18 -0
  947. package/scss/theme/legacy-classic-light/_other.scss +16 -0
  948. package/scss/theme/legacy-classic-light/_sizing.scss +16 -0
  949. package/scss/theme/legacy-classic-light/_spacing.scss +9 -0
  950. package/scss/theme/legacy-classic-light/_typography.scss +23 -0
  951. package/dist/cjs/context-a0900b95.js +0 -77
  952. package/dist/cjs/context-a0900b95.js.map +0 -1
  953. package/dist/cjs/floating-ui.dom.esm-01fe5abe.js.map +0 -1
  954. package/dist/cjs/index-c978628a.js.map +0 -1
  955. package/dist/cjs/ix-card_3.cjs.entry.js +0 -74
  956. package/dist/cjs/ix-card_3.cjs.entry.js.map +0 -1
  957. package/dist/cjs/ix-counter-pill.cjs.entry.js +0 -35
  958. package/dist/cjs/ix-counter-pill.cjs.entry.js.map +0 -1
  959. package/dist/cjs/ix-group_3.cjs.entry.js +0 -181
  960. package/dist/cjs/ix-group_3.cjs.entry.js.map +0 -1
  961. package/dist/cjs/ix-modal_2.cjs.entry.js +0 -227
  962. package/dist/cjs/ix-modal_2.cjs.entry.js.map +0 -1
  963. package/dist/cjs/modal-utils-b645989b.js +0 -44
  964. package/dist/cjs/modal-utils-b645989b.js.map +0 -1
  965. package/dist/cjs/service-18dc5907.js +0 -75
  966. package/dist/cjs/service-18dc5907.js.map +0 -1
  967. package/dist/collection/components/counter-pill/counter-pill.css +0 -323
  968. package/dist/collection/components/counter-pill/counter-pill.js +0 -135
  969. package/dist/collection/components/counter-pill/counter-pill.js.map +0 -1
  970. package/dist/collection/components/dropdown/alignment.js +0 -10
  971. package/dist/collection/components/dropdown/alignment.js.map +0 -1
  972. package/dist/collection/components/group-dropdown-item/group-dropdown-item.js.map +0 -1
  973. package/dist/collection/components/modal/modal-utils.js +0 -37
  974. package/dist/collection/components/modal/modal-utils.js.map +0 -1
  975. package/dist/collection/components/modal-container/modal-container.js +0 -126
  976. package/dist/collection/components/modal-container/modal-container.js.map +0 -1
  977. package/dist/components/ix-counter-pill.js +0 -54
  978. package/dist/components/ix-counter-pill.js.map +0 -1
  979. package/dist/components/ix-group-dropdown-item.js +0 -51
  980. package/dist/components/ix-group-dropdown-item.js.map +0 -1
  981. package/dist/components/ix-modal-container.js +0 -8
  982. package/dist/components/ix-modal-container.js.map +0 -1
  983. package/dist/components/modal-container.js +0 -109
  984. package/dist/components/modal-container.js.map +0 -1
  985. package/dist/components/modal-utils.js +0 -40
  986. package/dist/components/modal-utils.js.map +0 -1
  987. package/dist/esm/context-f6a2b727.js +0 -73
  988. package/dist/esm/context-f6a2b727.js.map +0 -1
  989. package/dist/esm/floating-ui.dom.esm-3130eda0.js.map +0 -1
  990. package/dist/esm/index-8ddfb6d8.js.map +0 -1
  991. package/dist/esm/ix-card_3.entry.js +0 -68
  992. package/dist/esm/ix-card_3.entry.js.map +0 -1
  993. package/dist/esm/ix-counter-pill.entry.js +0 -31
  994. package/dist/esm/ix-counter-pill.entry.js.map +0 -1
  995. package/dist/esm/ix-group_3.entry.js +0 -175
  996. package/dist/esm/ix-group_3.entry.js.map +0 -1
  997. package/dist/esm/ix-modal_2.entry.js +0 -222
  998. package/dist/esm/ix-modal_2.entry.js.map +0 -1
  999. package/dist/esm/modal-utils-aecbcba5.js +0 -40
  1000. package/dist/esm/modal-utils-aecbcba5.js.map +0 -1
  1001. package/dist/esm/service-fc436c5b.js +0 -73
  1002. package/dist/esm/service-fc436c5b.js.map +0 -1
  1003. package/dist/siemens-ix/p-1572aab3.js +0 -2
  1004. package/dist/siemens-ix/p-1572aab3.js.map +0 -1
  1005. package/dist/siemens-ix/p-15bebd8a.js +0 -2
  1006. package/dist/siemens-ix/p-1c64b073.js +0 -3
  1007. package/dist/siemens-ix/p-1c64b073.js.map +0 -1
  1008. package/dist/siemens-ix/p-3172249b.entry.js +0 -2
  1009. package/dist/siemens-ix/p-3172249b.entry.js.map +0 -1
  1010. package/dist/siemens-ix/p-3ddf017b.entry.js +0 -2
  1011. package/dist/siemens-ix/p-40982e21.entry.js +0 -2
  1012. package/dist/siemens-ix/p-40982e21.entry.js.map +0 -1
  1013. package/dist/siemens-ix/p-4597dd77.entry.js +0 -2
  1014. package/dist/siemens-ix/p-4597dd77.entry.js.map +0 -1
  1015. package/dist/siemens-ix/p-46ced516.entry.js +0 -2
  1016. package/dist/siemens-ix/p-46ced516.entry.js.map +0 -1
  1017. package/dist/siemens-ix/p-47422d47.entry.js +0 -2
  1018. package/dist/siemens-ix/p-47422d47.entry.js.map +0 -1
  1019. package/dist/siemens-ix/p-4851ea38.entry.js +0 -2
  1020. package/dist/siemens-ix/p-4851ea38.entry.js.map +0 -1
  1021. package/dist/siemens-ix/p-4e851aa3.entry.js +0 -2
  1022. package/dist/siemens-ix/p-4e851aa3.entry.js.map +0 -1
  1023. package/dist/siemens-ix/p-51c81a20.entry.js +0 -2
  1024. package/dist/siemens-ix/p-51c81a20.entry.js.map +0 -1
  1025. package/dist/siemens-ix/p-529d7530.js +0 -2
  1026. package/dist/siemens-ix/p-529d7530.js.map +0 -1
  1027. package/dist/siemens-ix/p-55b54a81.entry.js.map +0 -1
  1028. package/dist/siemens-ix/p-67be3720.entry.js +0 -2
  1029. package/dist/siemens-ix/p-67be3720.entry.js.map +0 -1
  1030. package/dist/siemens-ix/p-821ca55e.entry.js +0 -2
  1031. package/dist/siemens-ix/p-821ca55e.entry.js.map +0 -1
  1032. package/dist/siemens-ix/p-8719eeff.entry.js +0 -2
  1033. package/dist/siemens-ix/p-8719eeff.entry.js.map +0 -1
  1034. package/dist/siemens-ix/p-9a82921b.entry.js +0 -2
  1035. package/dist/siemens-ix/p-9a82921b.entry.js.map +0 -1
  1036. package/dist/siemens-ix/p-a08e1bbc.entry.js +0 -2
  1037. package/dist/siemens-ix/p-a08e1bbc.entry.js.map +0 -1
  1038. package/dist/siemens-ix/p-a422c64a.entry.js +0 -2
  1039. package/dist/siemens-ix/p-a422c64a.entry.js.map +0 -1
  1040. package/dist/siemens-ix/p-a73580a5.entry.js +0 -2
  1041. package/dist/siemens-ix/p-a73580a5.entry.js.map +0 -1
  1042. package/dist/siemens-ix/p-b14308ed.js +0 -2
  1043. package/dist/siemens-ix/p-b14308ed.js.map +0 -1
  1044. package/dist/siemens-ix/p-b5c40bb3.entry.js +0 -2
  1045. package/dist/siemens-ix/p-b5c40bb3.entry.js.map +0 -1
  1046. package/dist/siemens-ix/p-c5124f7b.entry.js +0 -2
  1047. package/dist/siemens-ix/p-c5124f7b.entry.js.map +0 -1
  1048. package/dist/siemens-ix/p-c7109071.entry.js +0 -2
  1049. package/dist/siemens-ix/p-c7109071.entry.js.map +0 -1
  1050. package/dist/siemens-ix/p-c724bb65.entry.js +0 -2
  1051. package/dist/siemens-ix/p-c724bb65.entry.js.map +0 -1
  1052. package/dist/siemens-ix/p-ca4d28fb.entry.js +0 -2
  1053. package/dist/siemens-ix/p-ca4d28fb.entry.js.map +0 -1
  1054. package/dist/siemens-ix/p-cd4e3593.entry.js +0 -2
  1055. package/dist/siemens-ix/p-cd4e3593.entry.js.map +0 -1
  1056. package/dist/siemens-ix/p-cd75b455.entry.js +0 -2
  1057. package/dist/siemens-ix/p-cd75b455.entry.js.map +0 -1
  1058. package/dist/siemens-ix/p-cf2717c1.entry.js +0 -2
  1059. package/dist/siemens-ix/p-cf2717c1.entry.js.map +0 -1
  1060. package/dist/siemens-ix/p-d5302336.entry.js +0 -2
  1061. package/dist/siemens-ix/p-d5302336.entry.js.map +0 -1
  1062. package/dist/siemens-ix/p-d784a04b.entry.js +0 -2
  1063. package/dist/siemens-ix/p-d784a04b.entry.js.map +0 -1
  1064. package/dist/siemens-ix/p-d7e23a1f.entry.js +0 -2
  1065. package/dist/siemens-ix/p-d7e23a1f.entry.js.map +0 -1
  1066. package/dist/siemens-ix/p-dbcec49e.entry.js +0 -2
  1067. package/dist/siemens-ix/p-dbcec49e.entry.js.map +0 -1
  1068. package/dist/siemens-ix/p-dc98d3f4.entry.js +0 -2
  1069. package/dist/siemens-ix/p-dc98d3f4.entry.js.map +0 -1
  1070. package/dist/siemens-ix/p-df138b2a.entry.js +0 -2
  1071. package/dist/siemens-ix/p-df138b2a.entry.js.map +0 -1
  1072. package/dist/siemens-ix/p-ea55afa3.entry.js +0 -2
  1073. package/dist/siemens-ix/p-ea55afa3.entry.js.map +0 -1
  1074. package/dist/siemens-ix/p-eccc2475.entry.js +0 -2
  1075. package/dist/siemens-ix/p-eccc2475.entry.js.map +0 -1
  1076. package/dist/siemens-ix/p-ecd1145b.entry.js +0 -2
  1077. package/dist/siemens-ix/p-ecd1145b.entry.js.map +0 -1
  1078. package/dist/siemens-ix/p-f207e578.entry.js +0 -2
  1079. package/dist/siemens-ix/p-f34a16c6.js +0 -2
  1080. package/dist/siemens-ix/p-f34a16c6.js.map +0 -1
  1081. package/dist/siemens-ix/p-f48b706b.entry.js +0 -2
  1082. package/dist/siemens-ix/p-f48b706b.entry.js.map +0 -1
  1083. package/dist/siemens-ix/p-f50697b9.entry.js +0 -2
  1084. package/dist/siemens-ix/p-f50697b9.entry.js.map +0 -1
  1085. package/dist/siemens-ix/p-feb8c2c4.entry.js +0 -2
  1086. package/dist/siemens-ix/p-feb8c2c4.entry.js.map +0 -1
  1087. package/dist/types/components/counter-pill/counter-pill.d.ts +0 -24
  1088. package/dist/types/components/dropdown/alignment.d.ts +0 -2
  1089. package/dist/types/components/group-dropdown-item/group-dropdown-item.d.ts +0 -11
  1090. package/dist/types/components/modal/modal-utils.d.ts +0 -29
  1091. package/dist/types/components/modal-container/modal-container.d.ts +0 -12
  1092. /package/dist/siemens-ix/{p-d848739e.entry.js.map → p-00f74fc9.entry.js.map} +0 -0
  1093. /package/dist/siemens-ix/{p-6acce5c9.entry.js.map → p-02f01e39.entry.js.map} +0 -0
  1094. /package/dist/siemens-ix/{p-07c932da.entry.js.map → p-07a0b330.entry.js.map} +0 -0
  1095. /package/dist/siemens-ix/{p-3f4a9e1f.entry.js.map → p-09ce5f12.entry.js.map} +0 -0
  1096. /package/dist/siemens-ix/{p-13bda5ea.entry.js.map → p-0fab8cae.entry.js.map} +0 -0
  1097. /package/dist/siemens-ix/{p-003e9355.entry.js.map → p-20aa7350.entry.js.map} +0 -0
  1098. /package/dist/siemens-ix/{p-f6ae45fb.entry.js.map → p-33670e98.entry.js.map} +0 -0
  1099. /package/dist/siemens-ix/{p-a89a1fa5.entry.js.map → p-4d194d55.entry.js.map} +0 -0
  1100. /package/dist/siemens-ix/{p-d2225fc2.entry.js.map → p-709d38fe.entry.js.map} +0 -0
  1101. /package/dist/siemens-ix/{p-1331a920.entry.js.map → p-81333042.entry.js.map} +0 -0
  1102. /package/dist/siemens-ix/{p-85f01dba.entry.js.map → p-904aa275.entry.js.map} +0 -0
  1103. /package/dist/siemens-ix/{p-cd3cfc78.entry.js.map → p-918450cd.entry.js.map} +0 -0
  1104. /package/dist/siemens-ix/{p-a7212f01.entry.js.map → p-b21bc31c.entry.js.map} +0 -0
  1105. /package/dist/siemens-ix/{p-6c033b08.entry.js.map → p-b89172b4.entry.js.map} +0 -0
  1106. /package/dist/siemens-ix/{p-3ddf017b.entry.js.map → p-d0a8aa6f.entry.js.map} +0 -0
  1107. /package/dist/siemens-ix/{p-b1db27a3.js.map → p-db74796e.js.map} +0 -0
  1108. /package/dist/siemens-ix/{p-bd24f35f.entry.js.map → p-f0219d7a.entry.js.map} +0 -0
  1109. /package/dist/siemens-ix/{p-1e8ee4af.entry.js.map → p-f38e7420.entry.js.map} +0 -0
  1110. /package/dist/siemens-ix/{p-6124d173.entry.js.map → p-ff17104c.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as i,H as r,g as n}from"./p-1c64b073.js";import{c as s,g as o,a as h}from"./p-37417714.js";import{r as a}from"./p-56ed024b.js";var c=s((function(t,e){(function(e){{t.exports=e()}})((function(){return function(){function t(e,i,r){function n(o,a){if(!i[o]){if(!e[o]){var c="function"==typeof h&&h;if(!a&&c)return c(o,!0);if(s)return s(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=i[o]={exports:{}};e[o][0].call(u.exports,(function(t){var i=e[o][1][t];return n(i||t)}),u,u.exports,t,e,i,r)}return i[o].exports}for(var s="function"==typeof h&&h,o=0;o<r.length;o++)n(r[o]);return n}return t}()({1:[function(t,e,i){Object.defineProperty(i,"__esModule",{value:true});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}return function(e,i,r){if(i)t(e.prototype,i);if(r)t(e,r);return e}}();function n(t,e,i){if(e in t){Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true})}else{t[e]=i}return t}function s(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}var o={width:"100%",height:"100%"};var h=function t(e){return Number(e)===Number(e)};var a="classList"in document.documentElement?function(t,e){t.classList.add(e)}:function(t,e){var i=t.getAttribute("class")||"";t.setAttribute("class",i+" "+e)};var c=function(){r(t,null,[{key:"create",value:function e(i,r){return new t(i,r)}},{key:"mergeStyle",value:function t(e,i){for(var r in i){if(e.style[r]!==i[r]){e.style[r]=i[r]}}}},{key:"getMaxBrowserHeight",value:function e(){var i=document.createElement("div");var r=document.createElement("div");t.mergeStyle(i,{position:"absolute",height:"1px",opacity:0});t.mergeStyle(r,{height:"1e7px"});i.appendChild(r);document.body.appendChild(i);var n=r.offsetHeight;document.body.removeChild(i);return n}}]);function t(e,i){var r=this;s(this,t);this._config={};this._lastRepaint=null;this._maxElementHeight=t.getMaxBrowserHeight();this.refresh(e,i);var n=this._config;var o=function t(){var e=r._getScrollPosition();var i=r._lastRepaint;r._renderAnimationFrame=window.requestAnimationFrame(t);if(e===i){return}var s=i?e-i:0;if(!i||s<0||s>r._averageHeight){var o=r._renderChunk();r._lastRepaint=e;if(o!==false&&typeof n.afterRender==="function"){n.afterRender()}}};o()}r(t,[{key:"destroy",value:function t(){window.cancelAnimationFrame(this._renderAnimationFrame)}},{key:"refresh",value:function e(i,r){var s;Object.assign(this._config,o,r);if(!i||i.nodeType!==1){throw new Error("HyperList requires a valid DOM Node container")}this._element=i;var a=this._config;var c=this._scroller||a.scroller||document.createElement(a.scrollerTagName||"tr");if(typeof a.useFragment!=="boolean"){this._config.useFragment=true}if(!a.generate){throw new Error("Missing required `generate` function")}if(!h(a.total)){throw new Error("Invalid required `total` value, expected number")}if(!Array.isArray(a.itemHeight)&&!h(a.itemHeight)){throw new Error("\n Invalid required `itemHeight` value, expected number or array\n ".trim())}else if(h(a.itemHeight)){this._itemHeights=Array(a.total).fill(a.itemHeight)}else{this._itemHeights=a.itemHeight}Object.keys(o).filter((function(t){return t in a})).forEach((function(t){var e=a[t];var i=h(e);if(e&&typeof e!=="string"&&typeof e!=="number"){var r="Invalid optional `"+t+"`, expected string or number";throw new Error(r)}else if(i){a[t]=e+"px"}}));var l=Boolean(a.horizontal);var u=a[l?"width":"height"];if(u){var d=h(u);var f=d?false:u.slice(-1)==="%";var v=d?u:parseInt(u.replace(/px|%/,""),10);var m=window[l?"innerWidth":"innerHeight"];if(f){this._containerSize=m*v/100}else{this._containerSize=h(u)?u:v}}var g=a.scrollContainer;var p=a.itemHeight*a.total;var b=this._maxElementHeight;if(p>b){console.warn(["HyperList: The maximum element height",b+"px has","been exceeded; please reduce your item height."].join(" "))}var x={width:""+a.width,height:g?p+"px":""+a.height,overflow:g?"none":"auto",position:"relative"};t.mergeStyle(i,x);if(g){t.mergeStyle(a.scrollContainer,{overflow:"auto"})}var w=(s={opacity:"0",position:"absolute"},n(s,l?"height":"width","1px"),n(s,l?"width":"height",p+"px"),s);t.mergeStyle(c,w);if(!this._scroller){i.appendChild(c)}var y=this._computeScrollPadding();this._scrollPaddingBottom=y.bottom;this._scrollPaddingTop=y.top;this._scroller=c;this._scrollHeight=this._computeScrollHeight();this._itemPositions=this._itemPositions||Array(a.total).fill(0);this._computePositions(0);this._renderChunk(this._lastRepaint!==null);if(typeof a.afterRender==="function"){a.afterRender()}}},{key:"_getRow",value:function e(i){var r=this._config;var s=r.generate(i);var o=s.height;if(o!==undefined&&h(o)){s=s.element;if(o!==this._itemHeights[i]){this._itemHeights[i]=o;this._computePositions(i);this._scrollHeight=this._computeScrollHeight(i)}}else{o=this._itemHeights[i]}if(!s||s.nodeType!==1){throw new Error("Generator did not return a DOM Node for index: "+i)}a(s,r.rowClassName||"vrow");var c=this._itemPositions[i]+this._scrollPaddingTop;t.mergeStyle(s,n({position:"absolute"},r.horizontal?"left":"top",c+"px"));return s}},{key:"_getScrollPosition",value:function t(){var e=this._config;if(typeof e.overrideScrollPosition==="function"){return e.overrideScrollPosition()}return this._element[e.horizontal?"scrollLeft":"scrollTop"]}},{key:"_renderChunk",value:function t(e){var i=this._config;var r=this._element;var n=this._getScrollPosition();var s=i.total;var o=i.reverse?this._getReverseFrom(n):this._getFrom(n)-1;if(o<0||o-this._screenItemsLen<0){o=0}if(!e&&this._lastFrom===o){return false}this._lastFrom=o;var h=o+this._cachedItemsLen;if(h>s||h+this._cachedItemsLen>s){h=s}var a=i.useFragment?document.createDocumentFragment():[];var c=this._scroller;a[i.useFragment?"appendChild":"push"](c);for(var l=o;l<h;l++){var u=this._getRow(l);a[i.useFragment?"appendChild":"push"](u)}if(i.applyPatch){return i.applyPatch(r,a)}r.innerHTML="";r.appendChild(a)}},{key:"_computePositions",value:function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;var i=this._config;var r=i.total;var n=i.reverse;if(e<1&&!n){e=1}for(var s=e;s<r;s++){if(n){if(s===0){this._itemPositions[0]=this._scrollHeight-this._itemHeights[0]}else{this._itemPositions[s]=this._itemPositions[s-1]-this._itemHeights[s]}}else{this._itemPositions[s]=this._itemHeights[s-1]+this._itemPositions[s-1]}}}},{key:"_computeScrollHeight",value:function e(){var i,r=this;var s=this._config;var o=Boolean(s.horizontal);var h=s.total;var a=this._itemHeights.reduce((function(t,e){return t+e}),0)+this._scrollPaddingBottom+this._scrollPaddingTop;t.mergeStyle(this._scroller,(i={opacity:0,position:"absolute",top:"0px"},n(i,o?"height":"width","1px"),n(i,o?"width":"height",a+"px"),i));var c=this._itemHeights.slice(0).sort((function(t,e){return t-e}));var l=Math.floor(h/2);var u=h%2===0?(c[l]+c[l-1])/2:c[l];var d=o?"clientWidth":"clientHeight";var f=s.scrollContainer?s.scrollContainer:this._element;var v=f[d]?f[d]:this._containerSize;this._screenItemsLen=Math.ceil(v/u);this._containerSize=v;this._cachedItemsLen=Math.max(this._cachedItemsLen||0,this._screenItemsLen*3);this._averageHeight=u;if(s.reverse){window.requestAnimationFrame((function(){if(o){r._element.scrollLeft=a}else{r._element.scrollTop=a}}))}return a}},{key:"_computeScrollPadding",value:function t(){var e=this._config;var i=Boolean(e.horizontal);var r=e.reverse;var n=window.getComputedStyle(this._element);var s=function t(e){var i=n.getPropertyValue("padding-"+e);return parseInt(i,10)||0};if(i&&r){return{bottom:s("left"),top:s("right")}}else if(i){return{bottom:s("right"),top:s("left")}}else if(r){return{bottom:s("top"),top:s("bottom")}}else{return{bottom:s("bottom"),top:s("top")}}}},{key:"_getFrom",value:function t(e){var i=0;while(this._itemPositions[i]<e){i++}return i}},{key:"_getReverseFrom",value:function t(e){var i=this._config.total-1;while(i>0&&this._itemPositions[i]<e+this._containerSize){i--}return i}}]);return t}();i.default=c;e.exports=i["default"]},{}]},{},[1])(1)}))}));const l=o(c);const u=".sc-ix-tree-h{display:block}";const d=class{constructor(i){t(this,i);this.contextChange=e(this,"contextChange",7);this.nodeToggled=e(this,"nodeToggled",7);this.nodeClicked=e(this,"nodeClicked",7);this.nodeRemoved=e(this,"nodeRemoved",7);this.toggleListener=new Map;this.itemClickListener=new Map;this.updates=new Map;this.hasFirstRender=false;this.root=undefined;this.model=undefined;this.renderItem=undefined;this.context={}}getVirtualizerOptions(){const t=this.buildTreeList(this.model[this.root]);let e=(e,i,r)=>{if(e.hasChildren&&!this.toggleListener.has(i)){const n=i=>{i.preventDefault();i.stopPropagation();const n=this.getContext(t[r].id);n.isExpanded=!n.isExpanded;this.nodeToggled.emit({id:e.id,isExpaned:n.isExpanded});this.setContext(e.id,n)};i.addEventListener("toggle",n);this.toggleListener.set(i,n)}};return{itemHeight:32,total:t.length,generate:i=>{const r=t[i];const n=this.host.querySelector(`[data-tree-node-id="${r.id}"]`);const s=this.getContext(r.id);if(n){n.hasChildren=r.hasChildren;n.context=Object.assign({},s);e(r,n,i);if(this.updates.has(r.id)){const t=this.updates.get(r.id);t(r,Object.assign({},this.context))}return n}const o=t=>{this.updates.set(r.id,t)};let h=null;if(this.renderItem){h=this.renderItem(i,r,t,Object.assign({},this.context),o)}if(h===null){h=a(r,s,o)}const c=h;c.setAttribute("data-tree-node-id",r.id);c.style.paddingLeft=r.level+"rem";c.style.paddingRight="1rem";if(!this.itemClickListener.has(c)){const t=t=>{t.preventDefault();t.stopPropagation();Object.values(this.context).forEach((t=>t.isSelected=false));const e=this.getContext(r.id);e.isSelected=true;this.setContext(r.id,e);this.nodeClicked.emit(r.id)};c.addEventListener("itemClick",t);this.itemClickListener.set(c,t)}e(r,c,i);return c}}}setContext(t,e){this.context=Object.assign(Object.assign({},this.context),{[t]:e});this.contextChange.emit(this.context)}getContext(t){if(!this.context){return{isExpanded:false,isSelected:false}}if(!this.context[t]){this.context[t]={isExpanded:false,isSelected:false}}return this.context[t]}buildTreeList(t,e=0){const i=[];if(t===null||t===void 0?void 0:t.hasChildren){const r=e+1;t.children.forEach((t=>{const n=this.model[t];const s=this.getContext(t);i.push(Object.assign(Object.assign({},n),{level:e}));if(n.hasChildren&&s.isExpanded){i.push(...this.buildTreeList(n,r))}}))}return i}componentDidLoad(){this.initList();this.observer=new MutationObserver((t=>{let e=[];t.forEach((t=>{e=[...e,...Array.from(t.removedNodes)];t.addedNodes.forEach((t=>{const i=e.indexOf(t);if(i>=0){e.splice(i,1)}}))}));this.nodeRemoved.emit(e)}));this.observer.observe(this.host,{childList:true})}componentWillRender(){this.hasFirstRender=true;if(this.isListInitialized()){this.refreshList()}else{this.initList()}}disconnectedCallback(){this.hyperlist.destroy();this.observer.disconnect()}modelChange(){if(this.hasFirstRender&&!this.isListInitialized()){this.initList()}}isListInitialized(){var t;const e=(t=this.hyperlist)===null||t===void 0?void 0:t._itemPositions;return e!==undefined&&e.length&&!(e===null||e===void 0?void 0:e.some((t=>t===undefined||Number.isNaN(t))))}refreshList(){if(this.hyperlist){this.hyperlist.refresh(this.host,this.getVirtualizerOptions())}}initList(){var t;(t=this.hyperlist)===null||t===void 0?void 0:t.destroy();const e=this.getVirtualizerOptions();this.hyperlist=new l(this.host,e)}render(){return i(r,null,i("slot",null))}get host(){return n(this)}static get watchers(){return{model:["modelChange"]}}};d.style=u;const f=".sc-ix-tree-item-h{display:flex;align-items:center;height:32px;width:100%;cursor:pointer}.sc-ix-tree-item-h:not(.disabled):not(:disabled):not(.selected).hover,.sc-ix-tree-item-h:not(.disabled):not(:disabled):not(.selected):hover{background-color:var(--theme-tree-item--background--hover)}.sc-ix-tree-item-h:not(.disabled):not(:disabled):not(.selected).active,.sc-ix-tree-item-h:not(.disabled):not(:disabled):not(.selected):active{background-color:var(--theme-tree-item--background--active)}.selected.sc-ix-tree-item-h{background-color:var(--theme-tree-item--background--selected)}.selected.hover.sc-ix-tree-item-h,.selected.sc-ix-tree-item-h:hover{background-color:var(--theme-tree-item--background--selected-hover)}.selected.active.sc-ix-tree-item-h,.selected.sc-ix-tree-item-h:active{background-color:var(--theme-tree-item--background--selected-active)}.sc-ix-tree-item-h .tree-node-container.sc-ix-tree-item{display:flex;align-items:center;height:2rem;flex-grow:1;align-items:center}.sc-ix-tree-item-h .icon-toggle-container.sc-ix-tree-item{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem}.sc-ix-tree-item-h .icon-toggle-container.sc-ix-tree-item ix-icon.sc-ix-tree-item{transition:transform 150ms ease-in-out}.sc-ix-tree-item-h .icon-toggle-container.sc-ix-tree-item ix-icon.icon-toggle-down.sc-ix-tree-item{transform:rotate(90deg)}";const v=class{constructor(i){t(this,i);this.toggle=e(this,"toggle",7);this.itemClick=e(this,"itemClick",7);this.text=undefined;this.hasChildren=undefined;this.context=undefined}render(){var t,e,n;return i(r,{class:{selected:(t=this.context)===null||t===void 0?void 0:t.isSelected}},i("div",{class:"icon-toggle-container",onClick:t=>{t.preventDefault();this.toggle.emit()}},this.hasChildren?i("ix-icon",{name:"chevron-right",size:"16",class:{["icon-toggle-down"]:(e=this.context)===null||e===void 0?void 0:e.isExpanded},color:`color-${((n=this.context)===null||n===void 0?void 0:n.isExpanded)?"primary":"std-text"}`}):null),i("div",{class:"tree-node-container",onClick:()=>{this.itemClick.emit()}},this.text,i("slot",null)))}};v.style=f;export{d as ix_tree,v as ix_tree_item};
2
- //# sourceMappingURL=p-1331a920.entry.js.map
1
+ import{r as t,c as e,h as i,H as r,g as n}from"./p-b899b25b.js";import{c as s,g as o,a as h}from"./p-37417714.js";import{r as a}from"./p-56ed024b.js";var c=s((function(t,e){(function(e){{t.exports=e()}})((function(){return function(){function t(e,i,r){function n(o,a){if(!i[o]){if(!e[o]){var c="function"==typeof h&&h;if(!a&&c)return c(o,!0);if(s)return s(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=i[o]={exports:{}};e[o][0].call(u.exports,(function(t){var i=e[o][1][t];return n(i||t)}),u,u.exports,t,e,i,r)}return i[o].exports}for(var s="function"==typeof h&&h,o=0;o<r.length;o++)n(r[o]);return n}return t}()({1:[function(t,e,i){Object.defineProperty(i,"__esModule",{value:true});var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}return function(e,i,r){if(i)t(e.prototype,i);if(r)t(e,r);return e}}();function n(t,e,i){if(e in t){Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true})}else{t[e]=i}return t}function s(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}var o={width:"100%",height:"100%"};var h=function t(e){return Number(e)===Number(e)};var a="classList"in document.documentElement?function(t,e){t.classList.add(e)}:function(t,e){var i=t.getAttribute("class")||"";t.setAttribute("class",i+" "+e)};var c=function(){r(t,null,[{key:"create",value:function e(i,r){return new t(i,r)}},{key:"mergeStyle",value:function t(e,i){for(var r in i){if(e.style[r]!==i[r]){e.style[r]=i[r]}}}},{key:"getMaxBrowserHeight",value:function e(){var i=document.createElement("div");var r=document.createElement("div");t.mergeStyle(i,{position:"absolute",height:"1px",opacity:0});t.mergeStyle(r,{height:"1e7px"});i.appendChild(r);document.body.appendChild(i);var n=r.offsetHeight;document.body.removeChild(i);return n}}]);function t(e,i){var r=this;s(this,t);this._config={};this._lastRepaint=null;this._maxElementHeight=t.getMaxBrowserHeight();this.refresh(e,i);var n=this._config;var o=function t(){var e=r._getScrollPosition();var i=r._lastRepaint;r._renderAnimationFrame=window.requestAnimationFrame(t);if(e===i){return}var s=i?e-i:0;if(!i||s<0||s>r._averageHeight){var o=r._renderChunk();r._lastRepaint=e;if(o!==false&&typeof n.afterRender==="function"){n.afterRender()}}};o()}r(t,[{key:"destroy",value:function t(){window.cancelAnimationFrame(this._renderAnimationFrame)}},{key:"refresh",value:function e(i,r){var s;Object.assign(this._config,o,r);if(!i||i.nodeType!==1){throw new Error("HyperList requires a valid DOM Node container")}this._element=i;var a=this._config;var c=this._scroller||a.scroller||document.createElement(a.scrollerTagName||"tr");if(typeof a.useFragment!=="boolean"){this._config.useFragment=true}if(!a.generate){throw new Error("Missing required `generate` function")}if(!h(a.total)){throw new Error("Invalid required `total` value, expected number")}if(!Array.isArray(a.itemHeight)&&!h(a.itemHeight)){throw new Error("\n Invalid required `itemHeight` value, expected number or array\n ".trim())}else if(h(a.itemHeight)){this._itemHeights=Array(a.total).fill(a.itemHeight)}else{this._itemHeights=a.itemHeight}Object.keys(o).filter((function(t){return t in a})).forEach((function(t){var e=a[t];var i=h(e);if(e&&typeof e!=="string"&&typeof e!=="number"){var r="Invalid optional `"+t+"`, expected string or number";throw new Error(r)}else if(i){a[t]=e+"px"}}));var l=Boolean(a.horizontal);var u=a[l?"width":"height"];if(u){var d=h(u);var f=d?false:u.slice(-1)==="%";var v=d?u:parseInt(u.replace(/px|%/,""),10);var m=window[l?"innerWidth":"innerHeight"];if(f){this._containerSize=m*v/100}else{this._containerSize=h(u)?u:v}}var g=a.scrollContainer;var p=a.itemHeight*a.total;var b=this._maxElementHeight;if(p>b){console.warn(["HyperList: The maximum element height",b+"px has","been exceeded; please reduce your item height."].join(" "))}var x={width:""+a.width,height:g?p+"px":""+a.height,overflow:g?"none":"auto",position:"relative"};t.mergeStyle(i,x);if(g){t.mergeStyle(a.scrollContainer,{overflow:"auto"})}var w=(s={opacity:"0",position:"absolute"},n(s,l?"height":"width","1px"),n(s,l?"width":"height",p+"px"),s);t.mergeStyle(c,w);if(!this._scroller){i.appendChild(c)}var y=this._computeScrollPadding();this._scrollPaddingBottom=y.bottom;this._scrollPaddingTop=y.top;this._scroller=c;this._scrollHeight=this._computeScrollHeight();this._itemPositions=this._itemPositions||Array(a.total).fill(0);this._computePositions(0);this._renderChunk(this._lastRepaint!==null);if(typeof a.afterRender==="function"){a.afterRender()}}},{key:"_getRow",value:function e(i){var r=this._config;var s=r.generate(i);var o=s.height;if(o!==undefined&&h(o)){s=s.element;if(o!==this._itemHeights[i]){this._itemHeights[i]=o;this._computePositions(i);this._scrollHeight=this._computeScrollHeight(i)}}else{o=this._itemHeights[i]}if(!s||s.nodeType!==1){throw new Error("Generator did not return a DOM Node for index: "+i)}a(s,r.rowClassName||"vrow");var c=this._itemPositions[i]+this._scrollPaddingTop;t.mergeStyle(s,n({position:"absolute"},r.horizontal?"left":"top",c+"px"));return s}},{key:"_getScrollPosition",value:function t(){var e=this._config;if(typeof e.overrideScrollPosition==="function"){return e.overrideScrollPosition()}return this._element[e.horizontal?"scrollLeft":"scrollTop"]}},{key:"_renderChunk",value:function t(e){var i=this._config;var r=this._element;var n=this._getScrollPosition();var s=i.total;var o=i.reverse?this._getReverseFrom(n):this._getFrom(n)-1;if(o<0||o-this._screenItemsLen<0){o=0}if(!e&&this._lastFrom===o){return false}this._lastFrom=o;var h=o+this._cachedItemsLen;if(h>s||h+this._cachedItemsLen>s){h=s}var a=i.useFragment?document.createDocumentFragment():[];var c=this._scroller;a[i.useFragment?"appendChild":"push"](c);for(var l=o;l<h;l++){var u=this._getRow(l);a[i.useFragment?"appendChild":"push"](u)}if(i.applyPatch){return i.applyPatch(r,a)}r.innerHTML="";r.appendChild(a)}},{key:"_computePositions",value:function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;var i=this._config;var r=i.total;var n=i.reverse;if(e<1&&!n){e=1}for(var s=e;s<r;s++){if(n){if(s===0){this._itemPositions[0]=this._scrollHeight-this._itemHeights[0]}else{this._itemPositions[s]=this._itemPositions[s-1]-this._itemHeights[s]}}else{this._itemPositions[s]=this._itemHeights[s-1]+this._itemPositions[s-1]}}}},{key:"_computeScrollHeight",value:function e(){var i,r=this;var s=this._config;var o=Boolean(s.horizontal);var h=s.total;var a=this._itemHeights.reduce((function(t,e){return t+e}),0)+this._scrollPaddingBottom+this._scrollPaddingTop;t.mergeStyle(this._scroller,(i={opacity:0,position:"absolute",top:"0px"},n(i,o?"height":"width","1px"),n(i,o?"width":"height",a+"px"),i));var c=this._itemHeights.slice(0).sort((function(t,e){return t-e}));var l=Math.floor(h/2);var u=h%2===0?(c[l]+c[l-1])/2:c[l];var d=o?"clientWidth":"clientHeight";var f=s.scrollContainer?s.scrollContainer:this._element;var v=f[d]?f[d]:this._containerSize;this._screenItemsLen=Math.ceil(v/u);this._containerSize=v;this._cachedItemsLen=Math.max(this._cachedItemsLen||0,this._screenItemsLen*3);this._averageHeight=u;if(s.reverse){window.requestAnimationFrame((function(){if(o){r._element.scrollLeft=a}else{r._element.scrollTop=a}}))}return a}},{key:"_computeScrollPadding",value:function t(){var e=this._config;var i=Boolean(e.horizontal);var r=e.reverse;var n=window.getComputedStyle(this._element);var s=function t(e){var i=n.getPropertyValue("padding-"+e);return parseInt(i,10)||0};if(i&&r){return{bottom:s("left"),top:s("right")}}else if(i){return{bottom:s("right"),top:s("left")}}else if(r){return{bottom:s("top"),top:s("bottom")}}else{return{bottom:s("bottom"),top:s("top")}}}},{key:"_getFrom",value:function t(e){var i=0;while(this._itemPositions[i]<e){i++}return i}},{key:"_getReverseFrom",value:function t(e){var i=this._config.total-1;while(i>0&&this._itemPositions[i]<e+this._containerSize){i--}return i}}]);return t}();i.default=c;e.exports=i["default"]},{}]},{},[1])(1)}))}));const l=o(c);const u=".sc-ix-tree-h{display:block}";const d=class{constructor(i){t(this,i);this.contextChange=e(this,"contextChange",7);this.nodeToggled=e(this,"nodeToggled",7);this.nodeClicked=e(this,"nodeClicked",7);this.nodeRemoved=e(this,"nodeRemoved",7);this.toggleListener=new Map;this.itemClickListener=new Map;this.updates=new Map;this.hasFirstRender=false;this.root=undefined;this.model=undefined;this.renderItem=undefined;this.context={}}getVirtualizerOptions(){const t=this.buildTreeList(this.model[this.root]);let e=(e,i,r)=>{if(e.hasChildren&&!this.toggleListener.has(i)){const n=i=>{i.preventDefault();i.stopPropagation();const n=this.getContext(t[r].id);n.isExpanded=!n.isExpanded;this.nodeToggled.emit({id:e.id,isExpaned:n.isExpanded});this.setContext(e.id,n)};i.addEventListener("toggle",n);this.toggleListener.set(i,n)}};return{itemHeight:32,total:t.length,generate:i=>{const r=t[i];const n=this.host.querySelector(`[data-tree-node-id="${r.id}"]`);const s=this.getContext(r.id);if(n){n.hasChildren=r.hasChildren;n.context=Object.assign({},s);e(r,n,i);if(this.updates.has(r.id)){const t=this.updates.get(r.id);t(r,Object.assign({},this.context))}return n}const o=t=>{this.updates.set(r.id,t)};let h=null;if(this.renderItem){h=this.renderItem(i,r,t,Object.assign({},this.context),o)}if(h===null){h=a(r,s,o)}const c=h;c.setAttribute("data-tree-node-id",r.id);c.style.paddingLeft=r.level+"rem";c.style.paddingRight="1rem";if(!this.itemClickListener.has(c)){const t=t=>{t.preventDefault();t.stopPropagation();Object.values(this.context).forEach((t=>t.isSelected=false));const e=this.getContext(r.id);e.isSelected=true;this.setContext(r.id,e);this.nodeClicked.emit(r.id)};c.addEventListener("itemClick",t);this.itemClickListener.set(c,t)}e(r,c,i);return c}}}setContext(t,e){this.context=Object.assign(Object.assign({},this.context),{[t]:e});this.contextChange.emit(this.context)}getContext(t){if(!this.context){return{isExpanded:false,isSelected:false}}if(!this.context[t]){this.context[t]={isExpanded:false,isSelected:false}}return this.context[t]}buildTreeList(t,e=0){const i=[];if(t===null||t===void 0?void 0:t.hasChildren){const r=e+1;t.children.forEach((t=>{const n=this.model[t];const s=this.getContext(t);i.push(Object.assign(Object.assign({},n),{level:e}));if(n.hasChildren&&s.isExpanded){i.push(...this.buildTreeList(n,r))}}))}return i}componentDidLoad(){this.initList();this.observer=new MutationObserver((t=>{let e=[];t.forEach((t=>{e=[...e,...Array.from(t.removedNodes)];t.addedNodes.forEach((t=>{const i=e.indexOf(t);if(i>=0){e.splice(i,1)}}))}));this.nodeRemoved.emit(e)}));this.observer.observe(this.host,{childList:true})}componentWillRender(){this.hasFirstRender=true;if(this.isListInitialized()){this.refreshList()}else{this.initList()}}disconnectedCallback(){this.hyperlist.destroy();this.observer.disconnect()}modelChange(){if(this.hasFirstRender&&!this.isListInitialized()){this.initList()}}isListInitialized(){var t;const e=(t=this.hyperlist)===null||t===void 0?void 0:t._itemPositions;return e!==undefined&&e.length&&!(e===null||e===void 0?void 0:e.some((t=>t===undefined||Number.isNaN(t))))}refreshList(){if(this.hyperlist){this.hyperlist.refresh(this.host,this.getVirtualizerOptions())}}initList(){var t;(t=this.hyperlist)===null||t===void 0?void 0:t.destroy();const e=this.getVirtualizerOptions();this.hyperlist=new l(this.host,e)}render(){return i(r,null,i("slot",null))}get host(){return n(this)}static get watchers(){return{model:["modelChange"]}}};d.style=u;const f=".sc-ix-tree-item-h{display:flex;align-items:center;height:32px;width:100%;cursor:pointer}.sc-ix-tree-item-h:not(.disabled):not(:disabled):not(.selected).hover,.sc-ix-tree-item-h:not(.disabled):not(:disabled):not(.selected):hover{background-color:var(--theme-tree-item--background--hover)}.sc-ix-tree-item-h:not(.disabled):not(:disabled):not(.selected).active,.sc-ix-tree-item-h:not(.disabled):not(:disabled):not(.selected):active{background-color:var(--theme-tree-item--background--active)}.selected.sc-ix-tree-item-h{background-color:var(--theme-tree-item--background--selected)}.selected.hover.sc-ix-tree-item-h,.selected.sc-ix-tree-item-h:hover{background-color:var(--theme-tree-item--background--selected-hover)}.selected.active.sc-ix-tree-item-h,.selected.sc-ix-tree-item-h:active{background-color:var(--theme-tree-item--background--selected-active)}.sc-ix-tree-item-h .tree-node-container.sc-ix-tree-item{display:flex;align-items:center;height:2rem;flex-grow:1;align-items:center}.sc-ix-tree-item-h .icon-toggle-container.sc-ix-tree-item{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem}.sc-ix-tree-item-h .icon-toggle-container.sc-ix-tree-item ix-icon.sc-ix-tree-item{transition:transform 150ms ease-in-out}.sc-ix-tree-item-h .icon-toggle-container.sc-ix-tree-item ix-icon.icon-toggle-down.sc-ix-tree-item{transform:rotate(90deg)}";const v=class{constructor(i){t(this,i);this.toggle=e(this,"toggle",7);this.itemClick=e(this,"itemClick",7);this.text=undefined;this.hasChildren=undefined;this.context=undefined}render(){var t,e,n;return i(r,{class:{selected:(t=this.context)===null||t===void 0?void 0:t.isSelected}},i("div",{class:"icon-toggle-container",onClick:t=>{t.preventDefault();this.toggle.emit()}},this.hasChildren?i("ix-icon",{name:"chevron-right",size:"16",class:{["icon-toggle-down"]:(e=this.context)===null||e===void 0?void 0:e.isExpanded},color:`color-${((n=this.context)===null||n===void 0?void 0:n.isExpanded)?"primary":"std-text"}`}):null),i("div",{class:"tree-node-container",onClick:()=>{this.itemClick.emit()}},this.text,i("slot",null)))}};v.style=f;export{d as ix_tree,v as ix_tree_item};
2
+ //# sourceMappingURL=p-81333042.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e,h as t,H as i,g as s,c as o}from"./p-b899b25b.js";import{c as r}from"./p-c0454c9a.js";import{a as n}from"./p-21aa3602.js";const a=":host{display:block;position:relative}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ul{list-style:none;padding:0;margin-bottom:0}:host(.item-size-l){--event-list-item-height:6.5rem;--event-list-item-content-white-space:normal}:host(.compact){--event-list-item-border-radius:0;--event-list-item-margin-bottom:0}";const d=class{constructor(t){e(this,t);this.mutationObserver=r(this.onMutation.bind(this));this.itemHeight="S";this.compact=false;this.animated=true;this.chevron=undefined}watchChevron(e){this.handleChevron(e)}componentDidLoad(){if(this.animated){this.triggerFadeIn()}if(!Number.isNaN(Number(this.itemHeight))){const e=n(this.itemHeight);this.hostElement.querySelectorAll("ix-event-list-item").forEach((t=>{this.setCustomHeight(t,e)}))}this.handleChevron(this.chevron);this.mutationObserver.observe(this.hostElement,{childList:true,subtree:true})}onMutation(e){this.triggerFadeOut().then((()=>{if(typeof this.itemHeight==="number"){const t=n(this.itemHeight);e.filter((e=>e.type==="childList")).forEach((e=>e.addedNodes.forEach((e=>{const i=e;this.setCustomHeight(i,t)}))))}this.handleChevron(this.chevron);this.triggerFadeIn()}))}setCustomHeight(e,t){e.style.setProperty("--event-list-item-height",t)}triggerFadeOut(){if(!this.animated){return Promise.resolve()}const e=[{opacity:1,easing:"ease-in"},{opacity:0}];const t=this.hostElement.shadowRoot.querySelector("ul");return t.animate(e,{duration:d.fadeOutDuration}).finished}triggerFadeIn(){if(!this.animated){return}const e=this.hostElement.querySelectorAll("ix-event-list-item");e.forEach(((e,t)=>{const i=t*80;const s=i/(i+d.fadeInDuration);const o=[{opacity:0},{opacity:0,easing:"ease-out",offset:s},{opacity:1}];const r={duration:d.fadeInDuration+i,iterations:1};e.animate(o,r)}))}handleChevron(e){const t=this.hostElement.querySelectorAll("ix-event-list-item");t.forEach((t=>{if(e){t.setAttribute("chevron","true")}else if(e!==undefined){t.removeAttribute("chevron")}}))}render(){return t(i,{class:{"item-size-s":this.itemHeight==="S","item-size-l":this.itemHeight==="L",compact:this.compact}},t("ul",null,t("slot",null)))}get hostElement(){return s(this)}static get watchers(){return{chevron:["watchChevron"]}}};d.fadeOutDuration=50;d.fadeInDuration=150;d.style=a;const l=":host *,:host *::after,:host *::before{box-sizing:border-box}:host .event-list-item{display:flex;align-items:center;position:relative;height:var(--event-list-item-height, 2.5rem);max-height:var(--event-list-item-height, 2.5rem);border-radius:var(--event-list-item-border-radius, 0.25rem);background-color:var(--theme-event-item--background);overflow:hidden;transition:150ms;cursor:pointer;margin-bottom:var(--event-list-item-margin-bottom, 0.5rem)}:host .event-list-item .indicator{height:100%;width:0.5rem;max-width:0.5rem;min-width:0.5rem;border-top-left-radius:var(--event-list-item-border-radius, 0.25rem);border-bottom-left-radius:var(--event-list-item-border-radius, 0.25rem)}:host .event-list-item .indicator-empty{border:var(--theme-weak-bdr-1);border-right:none}:host .event-list-item .event-list-item-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-grow:1;width:calc(100% - (1rem + 0.5rem));height:100%;border:0.062rem solid;border-color:var(--theme-event-item--border);border-top-left-radius:0;border-top-right-radius:var(--event-list-item-border-radius, 0.25rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--event-list-item-border-radius, 0.25rem);border-left:none;padding-left:1rem}:host .event-list-item .event-content{display:flex;align-items:center;width:100%;height:var(--event-list-item-height, 100%);max-height:var(--event-list-item-height, 100%);white-space:var(--event-list-item-content-white-space, inherit);overflow:hidden}:host .event-list-item .chevron-icon{margin-left:auto;margin-right:0.5rem;opacity:0.6;align-self:center}:host .event-list-item:not(.selected):not(.disabled):not(:disabled){cursor:pointer}:host .event-list-item:not(.selected):not(.disabled):not(:disabled):hover{background-color:var(--theme-event-item--background--hover)}:host .event-list-item:not(.selected):not(.disabled):not(:disabled){cursor:pointer}:host .event-list-item:not(.selected):not(.disabled):not(:disabled):active{background-color:var(--theme-event-item--background--active)}:host .event-list-item:not(.selected) .event-list-item-container:not(.disabled):not(:disabled){cursor:pointer}:host .event-list-item:not(.selected) .event-list-item-container:not(.disabled):not(:disabled):hover{border-color:var(--theme-event-item--border--hover)}:host .event-list-item:not(.selected) .event-list-item-container:not(.disabled):not(:disabled){cursor:pointer}:host .event-list-item:not(.selected) .event-list-item-container:not(.disabled):not(:disabled):active{border-color:var(--theme-event-item--border--active)}:host .event-list-item.selected .event-list-item-container{background-color:var(--theme-event-item--background--selected);border-color:var(--theme-event-item--border--selected)}:host .event-list-item[disabled],:host .event-list-item.disabled{pointer-events:none}:host .event-list-item[disabled] .event-list-item-container,:host .event-list-item.disabled .event-list-item-container{background-color:var(--theme-event-item--background--disabled);border-color:var(--theme-event-item--border--disabled)}:host(.disabled){pointer-events:none}";const h=class{constructor(t){e(this,t);this.itemClick=o(this,"itemClick",7);this.color=undefined;this.selected=undefined;this.disabled=undefined;this.chevron=undefined;this.opacity=1}handleItemClick(){this.itemClick.emit()}render(){var e;const s=((e=this.color)===null||e===void 0?void 0:e.startsWith("--theme"))?`var(${this.color})`:`var(--theme-${this.color})`;return t(i,{class:{disabled:this.disabled}},t("div",{class:{"event-list-item":true,selected:this.selected,disabled:this.disabled}},t("div",{class:`indicator ${!this.color?"indicator-empty":""}`,style:{"background-color":this.color?s:"inherit",opacity:`${this.disabled?.4:this.opacity}`}}),t("div",{class:"event-list-item-container"},t("div",{class:"event-content"},t("slot",null)),this.chevron&&t("ix-icon",{name:"chevron-right",size:"16",class:"chevron-icon"}))))}};h.style=l;export{d as ix_event_list,h as ix_event_list_item};
2
+ //# sourceMappingURL=p-8c14a4a3.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["eventListCss","EventList","this","mutationObserver","createMutationObserver","onMutation","bind","watchChevron","chevron","handleChevron","componentDidLoad","animated","triggerFadeIn","Number","isNaN","itemHeight","height","convertToRemString","hostElement","querySelectorAll","forEach","item","setCustomHeight","observe","childList","subtree","mutationRecords","triggerFadeOut","then","filter","mutation","type","addedNodes","itemHtml","style","setProperty","Promise","resolve","keyframes","opacity","easing","listElement","shadowRoot","querySelector","animate","duration","fadeOutDuration","finished","listItems","e","i","delay","offset","fadeInDuration","options","iterations","setAttribute","undefined","removeAttribute","render","h","Host","class","compact","eventListItemCss","EventListItem","handleItemClick","itemClick","emit","color","_a","startsWith","disabled","selected","name","size"],"sources":["./src/components/event-list/event-list.scss?tag=ix-event-list&encapsulation=shadow","./src/components/event-list/event-list.tsx","./src/components/event-list-item/event-list-item.scss?tag=ix-event-list-item&encapsulation=shadow","./src/components/event-list-item/event-list-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 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n display: block;\n position: relative;\n\n ul {\n list-style: none;\n padding: 0;\n margin-bottom: 0;\n }\n}\n\n:host(.item-size-l) {\n --event-list-item-height: 6.5rem;\n --event-list-item-content-white-space: normal;\n}\n\n:host(.compact) {\n --event-list-item-border-radius: 0;\n --event-list-item-margin-bottom: 0;\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, Watch } from '@stencil/core';\nimport { createMutationObserver } from '../utils/mutation-observer';\nimport { convertToRemString } from '../utils/rwd.util';\n\n@Component({\n tag: 'ix-event-list',\n styleUrl: 'event-list.scss',\n shadow: true,\n})\nexport class EventList {\n private readonly mutationObserver = createMutationObserver(\n this.onMutation.bind(this)\n );\n\n private static readonly fadeOutDuration = 50;\n private static readonly fadeInDuration = 150;\n\n @Element() hostElement!: HTMLIxEventListElement;\n\n /**\n * Determines the height of list items.\n * This can either be one of two predefined sizes ('S' or 'L') or an absolute pixel value.\n * In case a number is supplied it will get converted to rem internally.\n * Defaults to 'S'.\n */\n @Prop() itemHeight: 'S' | 'L' | number = 'S';\n\n /**\n * Make event-list items more compact\n */\n @Prop() compact = false;\n\n /**\n * Animate state change transitions. Defaults to 'true'.\n */\n @Prop() animated = true;\n\n /**\n * Display a chevron icon in list items. Defaults to 'false'\n */\n @Prop() chevron: boolean;\n\n @Watch('chevron')\n watchChevron(chevron: boolean | undefined) {\n this.handleChevron(chevron);\n }\n\n componentDidLoad() {\n if (this.animated) {\n this.triggerFadeIn();\n }\n\n if (!Number.isNaN(Number(this.itemHeight))) {\n const height = convertToRemString(this.itemHeight as number);\n this.hostElement\n .querySelectorAll('ix-event-list-item')\n .forEach((item) => {\n this.setCustomHeight(item as HTMLElement, height);\n });\n }\n\n this.handleChevron(this.chevron);\n\n this.mutationObserver.observe(this.hostElement, {\n childList: true,\n subtree: true,\n });\n }\n\n private onMutation(mutationRecords: Array<MutationRecord>) {\n this.triggerFadeOut().then(() => {\n if (typeof this.itemHeight === 'number') {\n const height = convertToRemString(this.itemHeight);\n\n mutationRecords\n .filter((mutation) => mutation.type === 'childList')\n .forEach((mutation) =>\n mutation.addedNodes.forEach((item) => {\n const itemHtml = item as HTMLElement;\n\n this.setCustomHeight(itemHtml, height);\n })\n );\n }\n\n this.handleChevron(this.chevron);\n\n this.triggerFadeIn();\n });\n }\n\n private setCustomHeight(item: HTMLElement, height: string) {\n item.style.setProperty('--event-list-item-height', height);\n }\n\n private triggerFadeOut(): Promise<any> {\n if (!this.animated) {\n return Promise.resolve();\n }\n\n const keyframes = [\n {\n opacity: 1,\n easing: 'ease-in',\n },\n { opacity: 0 },\n ];\n const listElement = this.hostElement.shadowRoot.querySelector('ul');\n return listElement.animate(keyframes, {\n duration: EventList.fadeOutDuration,\n }).finished;\n }\n\n private triggerFadeIn() {\n if (!this.animated) {\n return;\n }\n\n const listItems = this.hostElement.querySelectorAll('ix-event-list-item');\n listItems.forEach((e, i) => {\n const delay = i * 80;\n const offset = delay / (delay + EventList.fadeInDuration);\n const keyframes = [\n { opacity: 0 },\n { opacity: 0, easing: 'ease-out', offset },\n { opacity: 1 },\n ];\n const options = {\n duration: EventList.fadeInDuration + delay,\n iterations: 1,\n };\n e.animate(keyframes, options);\n });\n }\n\n private handleChevron(chevron: boolean | undefined): void {\n const listItems = this.hostElement.querySelectorAll('ix-event-list-item');\n\n listItems.forEach((e) => {\n if (chevron) {\n e.setAttribute('chevron', 'true');\n } else if (chevron !== undefined) {\n e.removeAttribute('chevron');\n }\n });\n }\n\n render() {\n return (\n <Host\n class={{\n 'item-size-s': this.itemHeight === 'S',\n 'item-size-l': this.itemHeight === 'L',\n compact: this.compact,\n }}\n >\n <ul>\n <slot></slot>\n </ul>\n </Host>\n );\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'mixins/text-truncation';\n@import 'mixins/hover';\n@import 'mixins/shadow-dom/component';\n@import 'mixins/shadow-dom/host-disabled';\n@import 'common-variables';\n\n$default-event-list-item-height: 2.5rem;\n\n:host {\n @include ix-component;\n\n .event-list-item {\n display: flex;\n align-items: center;\n position: relative;\n height: var(--event-list-item-height, $default-event-list-item-height);\n max-height: var(--event-list-item-height, $default-event-list-item-height);\n border-radius: var(--event-list-item-border-radius, $default-border-radius);\n background-color: var(--theme-event-item--background);\n overflow: hidden;\n transition: $default-time;\n cursor: pointer;\n margin-bottom: var(--event-list-item-margin-bottom, $small-space);\n\n .indicator {\n height: 100%;\n width: $small-space;\n max-width: $small-space;\n min-width: $small-space;\n border-top-left-radius: var(\n --event-list-item-border-radius,\n $default-border-radius\n );\n border-bottom-left-radius: var(\n --event-list-item-border-radius,\n $default-border-radius\n );\n }\n\n .indicator-empty {\n border: var(--theme-weak-bdr-1);\n border-right: none;\n }\n\n .event-list-item-container {\n @include ellipsis;\n\n display: flex;\n flex-grow: 1;\n width: calc(100% - (#{$default-space} + #{$small-space}));\n height: 100%;\n border: 0.062rem solid;\n border-color: var(--theme-event-item--border);\n border-top-left-radius: 0;\n border-top-right-radius: var(\n --event-list-item-border-radius,\n $default-border-radius\n );\n border-bottom-left-radius: 0;\n border-bottom-right-radius: var(\n --event-list-item-border-radius,\n $default-border-radius\n );\n border-left: none;\n padding-left: $default-space;\n }\n\n .event-content {\n display: flex;\n align-items: center;\n width: 100%;\n height: var(--event-list-item-height, 100%);\n max-height: var(--event-list-item-height, 100%);\n white-space: var(--event-list-item-content-white-space, inherit);\n overflow: hidden;\n }\n\n .chevron-icon {\n margin-left: auto;\n margin-right: $small-space;\n opacity: 0.6;\n align-self: center;\n }\n\n &:not(.selected) {\n @include hover {\n background-color: var(--theme-event-item--background--hover);\n }\n\n @include active {\n background-color: var(--theme-event-item--background--active);\n }\n\n .event-list-item-container {\n @include hover {\n border-color: var(--theme-event-item--border--hover);\n }\n\n @include active {\n border-color: var(--theme-event-item--border--active);\n }\n }\n }\n\n &.selected .event-list-item-container {\n background-color: var(--theme-event-item--background--selected);\n border-color: var(--theme-event-item--border--selected);\n }\n\n &[disabled],\n &.disabled {\n pointer-events: none;\n\n .event-list-item-container {\n background-color: var(--theme-event-item--background--disabled);\n border-color: var(--theme-event-item--border--disabled);\n }\n }\n }\n}\n\n@include host-disabled;\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n} from '@stencil/core';\n\n@Component({\n tag: 'ix-event-list-item',\n styleUrl: 'event-list-item.scss',\n shadow: true,\n})\nexport class EventListItem {\n /**\n * Color of the status indicator.\n * You can find a list of all available colors in our documentation.\n * Example values are `--theme-color-alarm` or `color-alarm`\n *\n * @see https://ix.siemens.io/docs/theming/colors/\n */\n @Prop() color: string;\n\n /**\n * Show event list item as selected\n */\n @Prop() selected: boolean;\n\n /**\n * Disable event list item\n */\n @Prop() disabled: boolean;\n\n /**\n * Show chevron on right side of the event list item\n */\n @Prop() chevron: boolean;\n\n /**\n * Opacity of the status indicator.\n * Defaults to 1.0\n *\n * @deprecated Will be removed in 2.0.0\n */\n @Prop() opacity = 1;\n\n /**\n * Event list item click\n */\n @Event() itemClick: EventEmitter;\n\n @Listen('click', { passive: true })\n handleItemClick() {\n this.itemClick.emit();\n }\n\n render() {\n const color = this.color?.startsWith('--theme')\n ? `var(${this.color})`\n : `var(--theme-${this.color})`;\n\n return (\n <Host\n class={{\n disabled: this.disabled,\n }}\n >\n <div\n class={{\n 'event-list-item': true,\n selected: this.selected,\n disabled: this.disabled,\n }}\n >\n <div\n class={`indicator ${!this.color ? 'indicator-empty' : ''}`}\n style={{\n 'background-color': this.color ? color : 'inherit',\n opacity: `${this.disabled ? 0.4 : this.opacity}`,\n }}\n ></div>\n\n <div class=\"event-list-item-container\">\n <div class=\"event-content\">\n <slot></slot>\n </div>\n {this.chevron && (\n <ix-icon\n name=\"chevron-right\"\n size=\"16\"\n class=\"chevron-icon\"\n ></ix-icon>\n )}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as s,h as o,H as e,g as i}from"./p-b899b25b.js";import{T as n}from"./p-9ee41861.js";const a=":host{display:flex;flex-direction:column;position:relative;min-width:17.5rem;max-width:17.5rem;min-height:3.5rem;pointer-events:all;background-color:var(--theme-toast--background);border:var(--theme-toast--border-thickness) solid var(--theme-toast--border-color);border-radius:var(--theme-toast--border-radius);box-shadow:var(--theme-toast--box-shadow);--animate-duration:300ms}:host *,:host *::after,:host *::before{box-sizing:border-box}:host .toast-body{display:flex;position:relative;width:100%;flex-grow:1}:host .toast-body .toast-icon{display:flex;align-items:flex-start;margin:1rem}:host .toast-body .toast-content{overflow:hidden;text-overflow:ellipsis;min-width:0;width:100%;max-width:10.25rem;margin-top:calc(\n 1rem + var(--theme-toast--border-thickness)\n );margin-bottom:0.75rem}:host .toast-body .toast-content .toast-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}:host .toast-body .toast-content .toast-message{min-width:0;-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)}:host .toast-close{display:flex;position:relative;margin:0.75rem;pointer-events:all}:host .toast-progress-bar{position:absolute;bottom:0;height:0.25rem;width:100%;background-color:var(--theme-toast-timer-value--background);transform-origin:left}:host .toast-progress-bar--animated{animation:trackProgress linear 1 forwards}@keyframes trackProgress{0%{transform:scaleX(1)}100%{transform:scaleX(0)}}";const r=class{constructor(o){t(this,o);this.closeToast=s(this,"closeToast",7);this.type="info";this.toastTitle=undefined;this.autoCloseDelay=5e3;this.autoClose=true;this.icon=undefined;this.iconColor=undefined;this.progress=0;this.touched=false}getIcon(){if(this.icon){return o("ix-icon",{name:this.icon,color:this.iconColor,size:"24"})}switch(this.type){case"info":return o("ix-icon",{name:"info",size:"24",color:"color-std-text"});case"error":return o("ix-icon",{name:"error",size:"24",color:"color-alarm"});case"success":return o("ix-icon",{name:"success",size:"24",color:"color-success"});case"warning":return o("ix-icon",{name:"warning",size:"24",color:"color-warning"});default:return""}}close(){if(this.hostElement){this.hostElement.classList.add("animate__fadeOut")}setTimeout((()=>{this.closeToast.emit()}),250)}render(){let t={};const s=["toast-progress-bar"];t={animationDuration:`${this.autoCloseDelay}ms`,animationPlayState:this.touched?"paused":"running"};s.push("toast-progress-bar--animated");return o(e,{class:"animate__animated animate__fadeIn"},o("div",{class:"toast-body",onPointerLeave:()=>{this.touched=false},onPointerEnter:()=>{this.touched=true}},this.type||this.icon?o("div",{class:"toast-icon"},this.getIcon()):null,o("div",{class:"toast-content"},this.toastTitle?o("div",{class:"toast-title"},this.toastTitle):null,o("div",{class:"toast-message"},o("slot",null))),o("div",{class:"toast-close"},o("ix-icon-button",{icon:"close",size:"24",ghost:true,onClick:()=>this.closeToast.emit()}))),this.autoClose?o("div",{class:s.join(" "),style:t,onAnimationEnd:()=>{this.close()},onTransitionEnd:()=>{if(this.progress===0){this.close()}}}):null)}get hostElement(){return i(this)}};r.style=a;const c=class{constructor(s){t(this,s);this.PREFIX_POSITION_CLASS="toast-container--";this.containerId="toast-container";this.containerClass="toast-container";this.position="bottom-right"}get hostContainer(){return document.getElementById(this.containerId)}componentDidLoad(){if(!document.getElementById(this.containerId)){const t=document.createElement("div");t.id=this.containerId;t.classList.add(this.containerClass);t.classList.add(`${this.PREFIX_POSITION_CLASS}${this.position}`);document.body.appendChild(t)}}onPositionChange(t,s){const o=document.getElementById(this.containerId);o.classList.remove(`${this.PREFIX_POSITION_CLASS}${s}`);o.classList.add(`${this.PREFIX_POSITION_CLASS}${t}`)}async showToast(t){const s=document.createElement("ix-toast");const o=new n;function e(t){s.remove();o.emit(t)}s.toastTitle=t.title;s.type=t.type;s.autoClose=t.autoClose;s.autoCloseDelay=t.autoCloseDelay;s.icon=t.icon;s.iconColor=t.iconColor;s.addEventListener("closeToast",(t=>{const{detail:s}=t;e(s)}));if(typeof t.message==="string"){s.innerText=t.message}else{s.appendChild(t.message)}this.hostContainer.appendChild(s);return{onClose:o,close:t=>{e(t)}}}render(){return o(e,null)}static get watchers(){return{position:["onPositionChange"]}}};export{r as ix_toast,c as ix_toast_container};
2
+ //# sourceMappingURL=p-8ce73af1.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["toastCss","Toast","getIcon","this","icon","h","name","color","iconColor","size","type","close","hostElement","classList","add","setTimeout","closeToast","emit","render","progressBarStyle","progressBarClass","animationDuration","autoCloseDelay","animationPlayState","touched","push","Host","class","onPointerLeave","onPointerEnter","toastTitle","ghost","onClick","autoClose","join","style","onAnimationEnd","onTransitionEnd","progress","ToastContainer","PREFIX_POSITION_CLASS","hostContainer","document","getElementById","containerId","componentDidLoad","toastContainer","createElement","id","containerClass","position","body","appendChild","onPositionChange","newPosition","oldPosition","remove","async","config","toast","onClose","TypedEvent","removeToast","result","title","addEventListener","event","detail","message","innerText"],"sources":["./src/components/toast/toast.scss?tag=ix-toast&encapsulation=shadow","./src/components/toast/toast.tsx","./src/components/toast/toast-container.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/hover';\n@import 'mixins/text-truncation';\n@import 'mixins/shadow-dom/component';\n@import 'mixins/fonts';\n\n:host {\n @include ix-component;\n\n display: flex;\n flex-direction: column;\n position: relative;\n min-width: 17.5rem;\n max-width: 17.5rem;\n min-height: 3.5rem;\n\n pointer-events: all;\n\n background-color: var(--theme-toast--background);\n border: var(--theme-toast--border-thickness) solid\n var(--theme-toast--border-color);\n border-radius: var(--theme-toast--border-radius);\n box-shadow: var(--theme-toast--box-shadow);\n\n --animate-duration: #{$medium-time};\n\n .toast-body {\n display: flex;\n position: relative;\n width: 100%;\n flex-grow: 1;\n\n .toast-icon {\n display: flex;\n align-items: flex-start;\n margin: $default-space;\n }\n\n .toast-content {\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n width: 100%;\n max-width: 10.25rem;\n margin-top: calc(\n #{$default-space} + var(--theme-toast--border-thickness)\n );\n margin-bottom: $medium-space;\n\n .toast-title {\n @include text-default-title-single;\n }\n .toast-message {\n min-width: 0;\n\n @include text-default;\n }\n }\n }\n\n .toast-close {\n display: flex;\n position: relative;\n margin: $medium-space;\n pointer-events: all;\n }\n\n .toast-progress-bar {\n position: absolute;\n bottom: 0;\n height: $tiny-space;\n width: 100%;\n background-color: var(--theme-toast-timer-value--background);\n transform-origin: left;\n\n &--animated {\n animation: trackProgress linear 1 forwards;\n }\n }\n\n @keyframes trackProgress {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { ToastType } from './toast-utils';\n\n@Component({\n tag: 'ix-toast',\n styleUrl: 'toast.scss',\n shadow: true,\n})\nexport class Toast {\n /**\n * Toast type\n */\n @Prop() type: ToastType = 'info';\n\n /**\n * Toast title\n */\n @Prop() toastTitle: string;\n\n /**\n * Autoclose title after delay\n */\n @Prop() autoCloseDelay = 5000;\n\n /**\n * Autoclose behavior\n */\n @Prop() autoClose = true;\n\n /**\n * Icon of toast\n */\n @Prop() icon: string;\n\n /**\n * Icon color of toast\n */\n @Prop() iconColor: string;\n\n /**\n * Toast closed\n */\n @Event() closeToast: EventEmitter;\n\n @State() progress = 0;\n @State() touched = false;\n\n @Element() hostElement!: HTMLIxToastElement;\n\n private getIcon() {\n if (this.icon) {\n return <ix-icon name={this.icon} color={this.iconColor} size=\"24\" />;\n }\n\n switch (this.type) {\n case 'info':\n return <ix-icon name={'info'} size=\"24\" color=\"color-std-text\" />;\n\n case 'error':\n return <ix-icon name={'error'} size=\"24\" color=\"color-alarm\" />;\n\n case 'success':\n return <ix-icon name={'success'} size=\"24\" color=\"color-success\" />;\n\n case 'warning':\n return <ix-icon name={'warning'} size=\"24\" color=\"color-warning\" />;\n\n default:\n return '';\n }\n }\n\n private close() {\n if (this.hostElement) {\n this.hostElement.classList.add('animate__fadeOut');\n }\n setTimeout(() => {\n this.closeToast.emit();\n }, 250);\n }\n\n render() {\n let progressBarStyle: Record<string, string> = {};\n\n const progressBarClass = ['toast-progress-bar'];\n\n progressBarStyle = {\n animationDuration: `${this.autoCloseDelay}ms`,\n animationPlayState: this.touched ? 'paused' : 'running',\n };\n\n progressBarClass.push('toast-progress-bar--animated');\n\n return (\n <Host class=\"animate__animated animate__fadeIn\">\n <div\n class=\"toast-body\"\n onPointerLeave={() => {\n this.touched = false;\n }}\n onPointerEnter={() => {\n this.touched = true;\n }}\n >\n {this.type || this.icon ? (\n <div class=\"toast-icon\">{this.getIcon()}</div>\n ) : null}\n <div class=\"toast-content\">\n {this.toastTitle ? (\n <div class=\"toast-title\">{this.toastTitle}</div>\n ) : null}\n <div class=\"toast-message\">\n <slot></slot>\n </div>\n </div>\n <div class=\"toast-close\">\n <ix-icon-button\n icon=\"close\"\n size=\"24\"\n ghost\n onClick={() => this.closeToast.emit()}\n />\n </div>\n </div>\n {this.autoClose ? (\n <div\n class={progressBarClass.join(' ')}\n style={progressBarStyle}\n onAnimationEnd={() => {\n this.close();\n }}\n onTransitionEnd={() => {\n if (this.progress === 0) {\n this.close();\n }\n }}\n ></div>\n ) : null}\n </Host>\n );\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host, Method, Prop, Watch } from '@stencil/core';\nimport { TypedEvent } from '../utils/typed-event';\nimport { ToastConfig } from './toast-utils';\n\n@Component({\n tag: 'ix-toast-container',\n shadow: true,\n})\nexport class ToastContainer {\n /**\n */\n @Prop() containerId = 'toast-container';\n\n /**\n */\n @Prop() containerClass = 'toast-container';\n\n /**\n */\n @Prop() position: 'bottom-right' | 'top-right' = 'bottom-right';\n\n private readonly PREFIX_POSITION_CLASS = 'toast-container--';\n\n get hostContainer() {\n return document.getElementById(this.containerId);\n }\n\n componentDidLoad() {\n if (!document.getElementById(this.containerId)) {\n const toastContainer = document.createElement('div');\n toastContainer.id = this.containerId;\n toastContainer.classList.add(this.containerClass);\n toastContainer.classList.add(\n `${this.PREFIX_POSITION_CLASS}${this.position}`\n );\n document.body.appendChild(toastContainer);\n }\n }\n\n @Watch('position')\n onPositionChange(newPosition: string, oldPosition: string) {\n const toastContainer = document.getElementById(this.containerId);\n toastContainer.classList.remove(\n `${this.PREFIX_POSITION_CLASS}${oldPosition}`\n );\n toastContainer.classList.add(`${this.PREFIX_POSITION_CLASS}${newPosition}`);\n }\n\n /**\n * Display a toast message\n * @param config\n */\n @Method()\n async showToast(config: ToastConfig) {\n const toast = document.createElement('ix-toast');\n\n const onClose = new TypedEvent<any | undefined>();\n\n function removeToast(result?: any) {\n toast.remove();\n onClose.emit(result);\n }\n\n toast.toastTitle = config.title;\n toast.type = config.type;\n toast.autoClose = config.autoClose;\n toast.autoCloseDelay = config.autoCloseDelay;\n toast.icon = config.icon;\n toast.iconColor = config.iconColor;\n toast.addEventListener(\n 'closeToast',\n (event: CustomEvent<any | undefined>) => {\n const { detail } = event;\n removeToast(detail);\n }\n );\n\n if (typeof config.message === 'string') {\n toast.innerText = config.message;\n } else {\n toast.appendChild(config.message);\n }\n\n this.hostContainer.appendChild(toast);\n\n return {\n onClose,\n close: (result?: any) => {\n removeToast(result);\n },\n };\n }\n\n render() {\n return <Host></Host>;\n }\n}\n"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import{r,h as a,H as c}from"./p-1c64b073.js";const o=":host{display:block;position:relative;min-width:13.375rem;width:13.375rem;height:7.5rem;min-height:7.5rem;cursor:pointer;margin:0.25rem 0}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ix-card{width:100%;height:100%}:host ix-card.card-insight:hover{--ix-card-background:var(--theme-color-ghost--hover)}:host ix-card.card-insight:active{--ix-card-background:var(--theme-color-ghost--active)}:host ix-card.card-notification:hover{--ix-card-background:var(--theme-color-component-1--hover)}:host ix-card.card-notification:active{--ix-card-background:var(--theme-color-component-1--active)}:host ix-card.card-alarm:hover{--ix-card-background:var(--theme-color-alarm--hover)}:host ix-card.card-alarm:active{--ix-card-background:var(--theme-color-alarm--active)}:host ix-card.card-critical:hover{--ix-card-background:var(--theme-color-critical--hover)}:host ix-card.card-critical:active{--ix-card-background:var(--theme-color-critical--active)}:host ix-card.card-warning:hover{--ix-card-background:var(--theme-color-warning--hover)}:host ix-card.card-warning:active{--ix-card-background:var(--theme-color-warning--active)}:host ix-card.card-success:hover{--ix-card-background:var(--theme-color-success--hover)}:host ix-card.card-success:active{--ix-card-background:var(--theme-color-success--active)}:host ix-card.card-info:hover{--ix-card-background:var(--theme-color-info--hover)}:host ix-card.card-info:active{--ix-card-background:var(--theme-color-info--active)}:host ix-card.card-neutral:hover{--ix-card-background:var(--theme-color-neutral--hover)}:host ix-card.card-neutral:active{--ix-card-background:var(--theme-color-neutral--active)}:host(:hover) ix-card.card-insight:hover{--ix-card-background:var(--theme-color-ghost--hover)}:host(:hover) ix-card.card-notification:hover{--ix-card-background:var(--theme-color-component-1--hover)}:host(:hover) ix-card.card-alarm:hover{--ix-card-background:var(--theme-color-alarm--hover)}:host(:hover) ix-card.card-critical:hover{--ix-card-background:var(--theme-color-critical--hover)}:host(:hover) ix-card.card-warning:hover{--ix-card-background:var(--theme-color-warning--hover)}:host(:hover) ix-card.card-success:hover{--ix-card-background:var(--theme-color-success--hover)}:host(:hover) ix-card.card-info:hover{--ix-card-background:var(--theme-color-info--hover)}:host(:hover) ix-card.card-neutral:hover{--ix-card-background:var(--theme-color-neutral--hover)}:host(:active) ix-card.card-insight:active{--ix-card-background:var(--theme-color-ghost--active)}:host(:active) ix-card.card-notification:active{--ix-card-background:var(--theme-color-component-1--active)}:host(:active) ix-card.card-alarm:active{--ix-card-background:var(--theme-color-alarm--active)}:host(:active) ix-card.card-critical:active{--ix-card-background:var(--theme-color-critical--active)}:host(:active) ix-card.card-warning:active{--ix-card-background:var(--theme-color-warning--active)}:host(:active) ix-card.card-success:active{--ix-card-background:var(--theme-color-success--active)}:host(:active) ix-card.card-info:active{--ix-card-background:var(--theme-color-info--active)}:host(:active) ix-card.card-neutral:active{--ix-card-background:var(--theme-color-neutral--active)}:host(.selected) ix-card{--ix-card-border-color:var(--theme-color-dynamic)}:host(.selected) ix-card.card-insight{--ix-card-background:var(--theme-color-ghost--selected)}:host(.selected) ix-card.card-notification{--ix-card-background:var(--theme-color-ghost--selected)}:host(.selected) ix-card.card-alarm{--ix-card-background:var(--theme-color-alarm--active)}:host(.selected) ix-card.card-critical{--ix-card-background:var(--theme-color-critical--active)}:host(.selected) ix-card.card-warning{--ix-card-background:var(--theme-color-warning--active)}:host(.selected) ix-card.card-success{--ix-card-background:var(--theme-color-success--active)}:host(.selected) ix-card.card-info{--ix-card-background:var(--theme-color-info--active)}:host(.selected) ix-card.card-neutral{--ix-card-background:var(--theme-color-neutral--active)}";const e=class{constructor(a){r(this,a);this.variant="insight";this.icon=undefined;this.heading=undefined;this.subheading=undefined;this.selected=false}render(){return a(c,{class:{selected:this.selected}},a("ix-card",{variant:this.variant,class:"pointer"},a("ix-card-content",null,this.icon?a("ix-icon",{class:"icon",name:this.icon,size:"24"}):"",this.heading?a("ix-typography",{variant:"large-title"},this.heading):"",this.subheading?a("ix-typography",{variant:"default-title-single",color:this.variant==="insight"?"soft":undefined},this.subheading):null,a("slot",null))))}};e.style=o;export{e as ix_action_card};
2
- //# sourceMappingURL=p-85f01dba.entry.js.map
1
+ import{r,h as a,H as c}from"./p-b899b25b.js";const o=":host{display:block;position:relative;min-width:13.375rem;width:13.375rem;height:7.5rem;min-height:7.5rem;cursor:pointer;margin:0.25rem 0}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ix-card{width:100%;height:100%}:host ix-card.card-insight:hover{--ix-card-background:var(--theme-color-ghost--hover)}:host ix-card.card-insight:active{--ix-card-background:var(--theme-color-ghost--active)}:host ix-card.card-notification:hover{--ix-card-background:var(--theme-color-component-1--hover)}:host ix-card.card-notification:active{--ix-card-background:var(--theme-color-component-1--active)}:host ix-card.card-alarm:hover{--ix-card-background:var(--theme-color-alarm--hover)}:host ix-card.card-alarm:active{--ix-card-background:var(--theme-color-alarm--active)}:host ix-card.card-critical:hover{--ix-card-background:var(--theme-color-critical--hover)}:host ix-card.card-critical:active{--ix-card-background:var(--theme-color-critical--active)}:host ix-card.card-warning:hover{--ix-card-background:var(--theme-color-warning--hover)}:host ix-card.card-warning:active{--ix-card-background:var(--theme-color-warning--active)}:host ix-card.card-success:hover{--ix-card-background:var(--theme-color-success--hover)}:host ix-card.card-success:active{--ix-card-background:var(--theme-color-success--active)}:host ix-card.card-info:hover{--ix-card-background:var(--theme-color-info--hover)}:host ix-card.card-info:active{--ix-card-background:var(--theme-color-info--active)}:host ix-card.card-neutral:hover{--ix-card-background:var(--theme-color-neutral--hover)}:host ix-card.card-neutral:active{--ix-card-background:var(--theme-color-neutral--active)}:host(:hover) ix-card.card-insight:hover{--ix-card-background:var(--theme-color-ghost--hover)}:host(:hover) ix-card.card-notification:hover{--ix-card-background:var(--theme-color-component-1--hover)}:host(:hover) ix-card.card-alarm:hover{--ix-card-background:var(--theme-color-alarm--hover)}:host(:hover) ix-card.card-critical:hover{--ix-card-background:var(--theme-color-critical--hover)}:host(:hover) ix-card.card-warning:hover{--ix-card-background:var(--theme-color-warning--hover)}:host(:hover) ix-card.card-success:hover{--ix-card-background:var(--theme-color-success--hover)}:host(:hover) ix-card.card-info:hover{--ix-card-background:var(--theme-color-info--hover)}:host(:hover) ix-card.card-neutral:hover{--ix-card-background:var(--theme-color-neutral--hover)}:host(:active) ix-card.card-insight:active{--ix-card-background:var(--theme-color-ghost--active)}:host(:active) ix-card.card-notification:active{--ix-card-background:var(--theme-color-component-1--active)}:host(:active) ix-card.card-alarm:active{--ix-card-background:var(--theme-color-alarm--active)}:host(:active) ix-card.card-critical:active{--ix-card-background:var(--theme-color-critical--active)}:host(:active) ix-card.card-warning:active{--ix-card-background:var(--theme-color-warning--active)}:host(:active) ix-card.card-success:active{--ix-card-background:var(--theme-color-success--active)}:host(:active) ix-card.card-info:active{--ix-card-background:var(--theme-color-info--active)}:host(:active) ix-card.card-neutral:active{--ix-card-background:var(--theme-color-neutral--active)}:host(.selected) ix-card{--ix-card-border-color:var(--theme-color-dynamic)}:host(.selected) ix-card.card-insight{--ix-card-background:var(--theme-color-ghost--selected)}:host(.selected) ix-card.card-notification{--ix-card-background:var(--theme-color-ghost--selected)}:host(.selected) ix-card.card-alarm{--ix-card-background:var(--theme-color-alarm--active)}:host(.selected) ix-card.card-critical{--ix-card-background:var(--theme-color-critical--active)}:host(.selected) ix-card.card-warning{--ix-card-background:var(--theme-color-warning--active)}:host(.selected) ix-card.card-success{--ix-card-background:var(--theme-color-success--active)}:host(.selected) ix-card.card-info{--ix-card-background:var(--theme-color-info--active)}:host(.selected) ix-card.card-neutral{--ix-card-background:var(--theme-color-neutral--active)}";const e=class{constructor(a){r(this,a);this.variant="insight";this.icon=undefined;this.heading=undefined;this.subheading=undefined;this.selected=false}render(){return a(c,{class:{selected:this.selected}},a("ix-card",{variant:this.variant,class:"pointer"},a("ix-card-content",null,this.icon?a("ix-icon",{class:"icon",name:this.icon,size:"24"}):"",this.heading?a("ix-typography",{variant:"large-title"},this.heading):"",this.subheading?a("ix-typography",{variant:"default-title-single",color:this.variant==="insight"?"soft":undefined},this.subheading):null,a("slot",null))))}};e.style=o;export{e as ix_action_card};
2
+ //# sourceMappingURL=p-904aa275.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as s,h as t,H as o}from"./p-1c64b073.js";const i=":host{display:block;position:relative}:host ::slotted(*){height:100%;width:100%}";const e=class{constructor(t){s(this,t);this.itemName=undefined}render(){const s={};s["grid-area"]=this.itemName;return t(o,{style:s},t("slot",null))}};e.style=i;export{e as ix_css_grid_item};
2
- //# sourceMappingURL=p-cd3cfc78.entry.js.map
1
+ import{r as s,h as t,H as o}from"./p-b899b25b.js";const i=":host{display:block;position:relative}:host ::slotted(*){height:100%;width:100%}";const e=class{constructor(t){s(this,t);this.itemName=undefined}render(){const s={};s["grid-area"]=this.itemName;return t(o,{style:s},t("slot",null))}};e.style=i;export{e as ix_css_grid_item};
2
+ //# sourceMappingURL=p-918450cd.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as o,h as r,H as t}from"./p-b899b25b.js";const s=":host{display:block;position:relative;overflow:auto;padding:0.125rem 0.625rem 0.125rem 0.625rem}:host *,:host *::after,:host *::before{box-sizing:border-box}";const e=class{constructor(r){o(this,r)}render(){return r(t,null,r("slot",null))}};e.style=s;export{e as ix_modal_content};
2
+ //# sourceMappingURL=p-9547706d.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["modalContentCss","ModalContent","render","h","Host"],"sources":["./src/components/modal-content/modal-content.scss?tag=ix-modal-content&encapsulation=shadow","./src/components/modal-content/modal-content.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\n:host {\n @include ix-component;\n\n display: block;\n position: relative;\n overflow: auto;\n padding: 0.125rem 0.625rem 0.125rem 0.625rem;\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, h, Host } from '@stencil/core';\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-modal-content',\n styleUrl: 'modal-content.scss',\n shadow: true,\n})\nexport class ModalContent {\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAkB,gK,MCmBXC,EAAY,M,yBACvBC,SACE,OACEC,EAACC,EAAI,KACHD,EAAA,a"}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,H as i,g as o}from"./p-b899b25b.js";import{m as s}from"./p-d43bf856.js";import{s as n}from"./p-f22423c2.js";import"./p-9ee41861.js";const a=":host{display:flex;position:relative;width:100%;height:100%;flex-direction:column}:host *,:host *::after,:host *::before{box-sizing:border-box}: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) .content{height:100%}:host(.mode-large) .content{margin-left:0rem}:host(.mode-small) .content{margin-left:0px;width:100%}";const l=class{constructor(e){t(this,e);this.applicationName=undefined;this.hideHeader=false;this.mode="large"}get menu(){return this.hostElement.querySelector("ix-menu")}onContentClick(){var t;if(s.isPinned){return}(t=this.menu)===null||t===void 0?void 0:t.toggleMenu(false)}componentWillLoad(){if(this.hideHeader===false){this.modeDisposable=n.onChange.on((t=>this.mode=t));this.mode=n.mode}}componentDidRender(){if(this.menu){this.menu.applicationName=this.applicationName}}disconnectedCallback(){var t;(t=this.modeDisposable)===null||t===void 0?void 0:t.dispose()}render(){return e(i,{"data-role":"",class:{"hide-header":this.hideHeader,[`mode-${this.mode}`]:true}},!this.hideHeader?e("ix-application-header",{name:this.applicationName,mode:this.mode},e("slot",{name:"logo",slot:"logo"})):null,e("div",{class:"navigation-content"},e("slot",{name:"menu"}),e("div",{class:"content",onClick:()=>this.onContentClick()},e("slot",null))))}get hostElement(){return o(this)}};l.style=a;export{l as ix_basic_navigation};
2
+ //# sourceMappingURL=p-9903e755.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["basicNavigationCss","BasicNavigation","menu","this","hostElement","querySelector","onContentClick","menuController","isPinned","_a","toggleMenu","componentWillLoad","hideHeader","modeDisposable","screenMode","onChange","on","mode","componentDidRender","applicationName","disconnectedCallback","dispose","render","h","Host","class","name","slot","onClick"],"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 .content {\n height: 100%;\n }\n}\n\n:host(.mode-large) {\n .content {\n margin-left: 0rem;\n }\n}\n\n:host(.mode-small) {\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 } from '@stencil/core';\nimport { menuController } from '../utils/menu-service/menu-service';\nimport { Mode } from '../utils/screen/mode';\nimport { screenMode } from '../utils/screen/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\n @State() mode: Mode = 'large';\n\n get menu(): HTMLIxMenuElement | null {\n return this.hostElement.querySelector('ix-menu');\n }\n\n private modeDisposable: Disposable;\n\n private onContentClick() {\n if (menuController.isPinned) {\n return;\n }\n this.menu?.toggleMenu(false);\n }\n\n componentWillLoad() {\n if (this.hideHeader === false) {\n this.modeDisposable = screenMode.onChange.on(\n (mode) => (this.mode = mode)\n );\n this.mode = screenMode.mode;\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 [`mode-${this.mode}`]: true,\n }}\n >\n {!this.hideHeader ? (\n <ix-application-header name={this.applicationName} mode={this.mode}>\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"],"mappings":"yJAAA,MAAMA,EAAqB,wmB,MCoBdC,EAAe,M,wEAWL,M,UAEC,O,CAElBC,WACF,OAAOC,KAAKC,YAAYC,cAAc,U,CAKhCC,iB,MACN,GAAIC,EAAeC,SAAU,CAC3B,M,EAEFC,EAAAN,KAAKD,QAAI,MAAAO,SAAA,SAAAA,EAAEC,WAAW,M,CAGxBC,oBACE,GAAIR,KAAKS,aAAe,MAAO,CAC7BT,KAAKU,eAAiBC,EAAWC,SAASC,IACvCC,GAAUd,KAAKc,KAAOA,IAEzBd,KAAKc,KAAOH,EAAWG,I,EAI3BC,qBACE,GAAIf,KAAKD,KAAM,CACbC,KAAKD,KAAKiB,gBAAkBhB,KAAKgB,e,EAIrCC,uB,OACEX,EAAAN,KAAKU,kBAAc,MAAAJ,SAAA,SAAAA,EAAEY,S,CAGvBC,SACE,OACEC,EAACC,EAAI,aACO,GACVC,MAAO,CACL,cAAetB,KAAKS,WACpB,CAAC,QAAQT,KAAKc,QAAS,QAGvBd,KAAKS,WACLW,EAAA,yBAAuBG,KAAMvB,KAAKgB,gBAAiBF,KAAMd,KAAKc,MAC5DM,EAAA,QAAMG,KAAK,OAAOC,KAAK,UAEvB,KACJJ,EAAA,OAAKE,MAAM,sBACTF,EAAA,QAAMG,KAAK,SACXH,EAAA,OAAKE,MAAM,UAAUG,QAAS,IAAMzB,KAAKG,kBACvCiB,EAAA,e"}
@@ -0,0 +1,2 @@
1
+ import{T as e}from"./p-9ee41861.js";class o{async attachView(e,o){var t;const n=(t=o===null||o===void 0?void 0:o.parentElement)!==null&&t!==void 0?t:document.body;n.appendChild(e);return e}async removeView(e){e.remove()}}const t=new o;let n=t;function a(e){n=e}const i=()=>n;const s=()=>t;function c(e,o){const t=o.ariaDescribedby;const n=o.ariaLabelledby;delete o["ariaDescribedby"];delete o["ariaLabelledby"];if(t){e.setAttribute("aria-describedby",t)}if(n){e.setAttribute("aria-labelledby",n)}}function l(e,o,t,n){let a=[];if(o!==undefined){a=[...a,{id:"cancel",text:o,type:"cancel",payload:n}]}return[...a,{id:"okay",text:e,type:"okay",payload:t}]}async function r(o){const t=new e;const n=document.createElement("ix-modal");const a=document.createElement("ix-modal-header");const i=document.createElement("ix-modal-content");const l=document.createElement("ix-modal-footer");c(n,o);Object.assign(a,o);Object.assign(i,o);Object.assign(l,o);a.innerText=o.messageTitle;i.innerText=o.message;o.actions.forEach((({id:e,text:o,type:t,payload:a})=>{const i=document.createElement("ix-button");i.innerText=o;l.appendChild(i);if(t==="okay"){i.variant="primary";i.addEventListener("click",(()=>n.closeModal({actionId:e,payload:a})));return}if(t==="cancel"){i.variant="primary";i.outline=true;i.addEventListener("click",(()=>n.dismissModal({actionId:e,payload:a})));return}}));n.appendChild(a);n.appendChild(i);n.appendChild(l);const r=await s().attachView(n);r.addEventListener("dialogClose",(e=>{t.emit(e.detail);r.remove()}));r.addEventListener("dialogDismiss",(e=>{t.emit(e.detail);r.remove()}));r.showModal();return t}r.info=(e,o,t,n,a,i)=>r({message:o,messageTitle:e,icon:"info",actions:l(t,n,a,i)});r.warning=(e,o,t,n,a,i)=>r({message:o,messageTitle:e,icon:"warning",iconColor:"color-warning",actions:l(t,n,a,i)});r.error=(e,o,t,n,a,i)=>r({message:o,messageTitle:e,icon:"error",iconColor:"color-alarm",actions:l(t,n,a,i)});r.success=(e,o,t,n,a,i)=>r({message:o,messageTitle:e,icon:"success",iconColor:"color-success",actions:l(t,n,a,i)});r.question=(e,o,t,n,a,i)=>r({message:o,messageTitle:e,icon:"question",actions:l(t,n,a,i)});function d(e,o){const t=o.ariaDescribedby;const n=o.ariaLabelledby;delete o["ariaDescribedby"];delete o["ariaLabelledby"];if(t){e.setAttribute("aria-describedby",t)}if(n){e.setAttribute("aria-labelledby",n)}}function m(e){return e.closest("ix-modal")}function u(e,o){const t=m(e);if(t){t.closeModal(o);return}}function f(e,o){const t=m(e);if(t){t.dismissModal(o);return}}async function y(o){const t=i();let n;const a=new e;const c=new e;if(typeof o.content==="string"){const e=document.createElement("ix-modal");e.innerText=o.content;n=await s().attachView(e)}if(o.content instanceof HTMLElement&&o.content.tagName!=="IX-MODAL"){const e=document.createElement("ix-modal");e.appendChild(o.content);n=await s().attachView(e)}if(!n){n=await t.attachView(o.content)}d(n,o);Object.assign(n,o);n.setAttribute("ariaDescribedby","Test");n.showModal();n.addEventListener("dialogClose",(async({detail:e})=>{a.emit(e);await t.removeView(n)}));n.addEventListener("dialogDismiss",(async({detail:e})=>{c.emit(e);await t.removeView(n)}));return{htmlElement:n,onClose:a,onDismiss:c}}export{i as a,y as b,u as c,f as d,s as g,a as r,r as s};
2
+ //# sourceMappingURL=p-9c030990.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DefaultFrameworkDelegate","async","view","config","attachToElement","_a","parentElement","document","body","appendChild","remove","coreDelegate","currentDelegate","registerFrameworkDelegate","delegate","resolveDelegate","getCoreDelegate","setA11yAttributes","element","ariaDescribedby","ariaLabelledby","setAttribute","createConfirmButtons","textOkay","textCancel","payloadOkay","payloadCancel","actions","undefined","id","text","type","payload","showMessage","onMessageAction","TypedEvent","dialog","createElement","header","content","footer","Object","assign","innerText","messageTitle","message","forEach","button","variant","addEventListener","closeModal","actionId","outline","dismissModal","dialogRef","attachView","event","emit","detail","showModal","info","title","icon","warning","iconColor","error","success","question","getIxModal","closest","closeResult","dismissResult","onClose","onDismiss","HTMLElement","tagName","removeView","htmlElement"],"sources":["./src/components/utils/delegate.ts","./src/components/utils/modal/message.ts","./src/components/utils/modal/modal.ts"],"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\nexport type DelegateConfig = {\n parentElement?: Element;\n};\n\nexport interface FrameworkDelegate {\n attachView<R = HTMLElement>(view: any, config?: DelegateConfig): Promise<R>;\n removeView(view: any): Promise<void>;\n}\n\nclass DefaultFrameworkDelegate implements FrameworkDelegate {\n async attachView<R = HTMLElement>(\n view: any,\n config?: DelegateConfig\n ): Promise<R> {\n const attachToElement = config?.parentElement ?? document.body;\n attachToElement.appendChild(view);\n return view;\n }\n\n async removeView(view: any) {\n view.remove();\n }\n}\n\nconst coreDelegate = new DefaultFrameworkDelegate();\nlet currentDelegate: FrameworkDelegate = coreDelegate;\n\nexport function registerFrameworkDelegate(delegate: FrameworkDelegate) {\n currentDelegate = delegate;\n}\n\nexport const resolveDelegate = () => {\n return currentDelegate;\n};\n\nexport const getCoreDelegate = () => coreDelegate;\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 { getCoreDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\n\nfunction setA11yAttributes(element: HTMLElement, config: MessageContent) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nfunction createConfirmButtons(\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) {\n let actions = [];\n if (textCancel !== undefined) {\n actions = [\n ...actions,\n {\n id: 'cancel',\n text: textCancel,\n type: 'cancel',\n payload: payloadCancel,\n },\n ];\n }\n return [\n ...actions,\n {\n id: 'okay',\n text: textOkay,\n type: 'okay',\n payload: payloadOkay,\n },\n ];\n}\n\nexport type MessageContent = {\n icon: string;\n iconColor?: string;\n messageTitle: string;\n message: string;\n actions: {\n id: string;\n type: 'button-primary' | 'button-secondary' | 'okay' | 'cancel';\n text: string;\n payload?: any;\n }[];\n ariaLabelledby?: string;\n ariaDescribedby?: string;\n};\n\nexport async function showMessage<T>(config: MessageContent) {\n const onMessageAction = new TypedEvent<{\n actionId: string;\n payload: T;\n }>();\n const dialog = document.createElement('ix-modal');\n const header = document.createElement('ix-modal-header');\n const content = document.createElement('ix-modal-content');\n const footer = document.createElement('ix-modal-footer');\n\n setA11yAttributes(dialog, config);\n\n Object.assign(header, config);\n Object.assign(content, config);\n Object.assign(footer, config);\n\n header.innerText = config.messageTitle;\n content.innerText = config.message;\n\n config.actions.forEach(({ id, text, type, payload }) => {\n const button = document.createElement('ix-button');\n button.innerText = text;\n footer.appendChild(button);\n\n if (type === 'okay') {\n button.variant = 'primary';\n button.addEventListener('click', () =>\n dialog.closeModal({\n actionId: id,\n payload,\n })\n );\n return;\n }\n if (type === 'cancel') {\n button.variant = 'primary';\n button.outline = true;\n button.addEventListener('click', () =>\n dialog.dismissModal({\n actionId: id,\n payload,\n })\n );\n return;\n }\n });\n\n dialog.appendChild(header);\n dialog.appendChild(content);\n dialog.appendChild(footer);\n\n const dialogRef = await getCoreDelegate().attachView<HTMLIxModalElement>(\n dialog\n );\n\n dialogRef.addEventListener(\n 'dialogClose',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n (\n event: CustomEvent<{\n actionId: string;\n payload: T;\n }>\n ) => {\n onMessageAction.emit(event.detail);\n dialogRef.remove();\n }\n );\n\n dialogRef.showModal();\n return onMessageAction;\n}\n\nshowMessage.info = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'info',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.warning = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'warning',\n iconColor: 'color-warning',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.error = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'error',\n iconColor: 'color-alarm',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.success = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'success',\n iconColor: 'color-success',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n\nshowMessage.question = (\n title: string,\n message: string,\n textOkay: string,\n textCancel?: string,\n payloadOkay?: any,\n payloadCancel?: any\n) => {\n return showMessage({\n message,\n messageTitle: title,\n icon: 'question',\n actions: createConfirmButtons(\n textOkay,\n textCancel,\n payloadOkay,\n payloadCancel\n ),\n });\n};\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { IxModalSize } from '../../modal/modal';\nimport { getCoreDelegate, resolveDelegate } from '../delegate';\nimport { TypedEvent } from '../typed-event';\n\nexport function setA11yAttributes(element: HTMLElement, config: ModalConfig) {\n const ariaDescribedby = config.ariaDescribedby;\n const ariaLabelledby = config.ariaLabelledby;\n\n delete config['ariaDescribedby'];\n delete config['ariaLabelledby'];\n\n if (ariaDescribedby) {\n element.setAttribute('aria-describedby', ariaDescribedby);\n }\n\n if (ariaLabelledby) {\n element.setAttribute('aria-labelledby', ariaLabelledby);\n }\n}\n\nexport interface ModalConfig<TReason = any, CONTENT = any> {\n animation?: boolean;\n ariaDescribedby?: string;\n ariaLabelledby?: string;\n backdrop?: boolean;\n closeOnBackdropClick?: boolean;\n beforeDismiss?: (reason?: TReason) => boolean | Promise<boolean>;\n centered?: boolean;\n container?: string | HTMLElement;\n content: CONTENT | string;\n keyboard?: boolean;\n size?: IxModalSize;\n title?: string;\n}\n\nexport interface ModalInstance<TReason = any> {\n htmlElement: HTMLIxModalElement;\n onClose: TypedEvent<TReason>;\n onDismiss: TypedEvent<TReason>;\n}\n\nfunction getIxModal(element: Element) {\n return element.closest('ix-modal');\n}\n\nexport function closeModal<TClose = any>(\n element: Element,\n closeResult: TClose\n) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.closeModal(closeResult);\n return;\n }\n}\n\nexport function dismissModal(element: Element, dismissResult?: any) {\n const dialog = getIxModal(element);\n if (dialog) {\n dialog.dismissModal(dismissResult);\n return;\n }\n}\n\nexport async function showModal<T>(\n config: ModalConfig<T>\n): Promise<ModalInstance<T>> {\n const delegate = resolveDelegate();\n let dialogRef: HTMLIxModalElement;\n const onClose = new TypedEvent<T>();\n const onDismiss = new TypedEvent<T>();\n\n if (typeof config.content === 'string') {\n const dialog = document.createElement('ix-modal');\n dialog.innerText = config.content;\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n\n if (\n config.content instanceof HTMLElement &&\n config.content.tagName !== 'IX-MODAL'\n ) {\n const dialog = document.createElement('ix-modal');\n dialog.appendChild(config.content);\n dialogRef = await getCoreDelegate().attachView(dialog);\n }\n\n if (!dialogRef) {\n dialogRef = await delegate.attachView<HTMLIxModalElement>(config.content);\n }\n\n setA11yAttributes(dialogRef, config);\n Object.assign(dialogRef, config);\n\n dialogRef.setAttribute('ariaDescribedby', 'Test');\n\n dialogRef.showModal();\n dialogRef.addEventListener('dialogClose', async ({ detail }: CustomEvent) => {\n onClose.emit(detail);\n await delegate.removeView(dialogRef);\n });\n\n dialogRef.addEventListener(\n 'dialogDismiss',\n async ({ detail }: CustomEvent) => {\n onDismiss.emit(detail);\n await delegate.removeView(dialogRef);\n }\n );\n\n return {\n htmlElement: dialogRef,\n onClose,\n onDismiss,\n };\n}\n"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ import{r as e,c as t,h as s,F as o,H as r,g as i}from"./p-b899b25b.js";import{c as l}from"./p-c0454c9a.js";const a=":host *,:host *::after,:host *::before{box-sizing:border-box}:host .step{display:flex;flex-direction:column;align-items:center;background-color:var(--theme-workflow-step--background);border-radius:var(--theme-workflow--border-radius);width:auto;padding:1.125rem 0 0.5rem 0;height:4rem;width:12.75rem}:host .step .wrapper{display:flex;width:100%;align-items:center;justify-content:center;position:relative}:host .step .wrapper .line{width:100%;height:0.125rem;background-color:var(--theme-workflow-step-icon-default--color)}:host .step .wrapper .line.first,:host .step .wrapper .line.last{width:50%;margin:0 0 0 auto}:host .step .wrapper .line.last{margin:0 auto 0 0}:host .step .wrapper .line.single{width:0}:host .step .wrapper .line.selected{background-color:var(--theme-workflow-step-icon-default--color--selected)}:host .step .wrapper .line.done{background-color:var(--theme-workflow-step-icon-done--color)}:host .step .wrapper .line.done.selected{background-color:var(--theme-workflow-step-icon-done--color--selected)}:host .step .wrapper .line.warning{background-color:var(--theme-color-warning)}:host .step .wrapper .line.success{background-color:var(--theme-color-success)}:host .step .wrapper .line.error{background-color:var(--theme-color-alarm)}:host .step .wrapper .iconWrapper{display:flex;align-items:center;justify-content:center;position:absolute}:host .step .wrapper .iconWrapper .absolute{position:absolute}:host .step .text{margin-top:1rem;width:auto;padding:0 0.5rem}:host .step.vertical{flex-direction:row;padding:0}:host .step.vertical .wrapper{width:auto;padding-left:1.125rem;height:4rem}:host .step.vertical .wrapper .line{width:0.125rem;height:100%}:host .step.vertical .wrapper .line.first,:host .step.vertical .wrapper .line.last{height:50%;margin:auto 0 0 0}:host .step.vertical .wrapper .line.last{margin:0 0 auto 0}:host .step.vertical .wrapper .line.single{width:0}:host .step.vertical .text{margin-top:0;margin-left:1rem;padding:0}:host .step:hover{background-color:var(--theme-workflow-step--background--hover)}:host .step:active{background-color:var(--theme-workflow-step--background--active)}:host .step:focus-visible{outline:1px solid var(--focus--border-color);border-radius:0}:host .step.selected{background-color:var(--theme-workflow-step--background--selected)}:host .step.disabled{background-color:var(--theme-workflow-step--background--disabled)}:host .step.disabled .line{background-color:var(--theme-workflow-step-icon-default--color--disabled) !important}:host .step.disabled .text{color:var(--theme-workflow-step--color--disabled)}";const c=class{constructor(s){e(this,s);this.selectedChanged=t(this,"selectedChanged",7);this.vertical=false;this.disabled=false;this.status="open";this.clickable=false;this.selected=false;this.position="undefined";this.iconName="circle";this.iconColor="workflow-step-icon-default--color"}select(){if(!this.clickable)return;if(this.disabled)return;this.selected=true;this.selectedHandler()}selectedHandler(){const e=this.selected?"--selected":"";if(this.status==="open"){this.iconName=this.selected?"circle-dot":"circle";this.iconColor=`workflow-step-icon-default--color${e}`}if(this.status==="done"&&!this.disabled){this.iconColor=`workflow-step-icon-done--color${e}`}}watchPropHandler(){switch(this.status){case"open":this.iconName="circle";this.iconColor="workflow-step-icon-default--color";break;case"success":this.iconName="success";this.iconColor="color-success";break;case"done":this.iconName="success";this.iconColor="workflow-step-icon-done--color";break;case"warning":this.iconName="warning";this.iconColor="color-warning";break;case"error":this.iconName="error";this.iconColor="color-alarm";break;default:this.iconName="circle";break}if(this.disabled){this.iconColor="workflow-step-icon-success--color--disabled"}}componentDidLoad(){this.watchPropHandler();this.selectedHandler();this.customIconSlot=!!this.hostElement.querySelector('[slot="custom-icon"]')}onStepClick(){if(!this.disabled&&this.clickable){this.selectedChanged.emit(this.hostElement)}}render(){const e=!this.customIconSlot?s(o,null,s("ix-icon",{color:"color-1",name:this.iconName==="warning"?"triangle-filled":"circle-filled",class:"absolute",size:"24"}),s("ix-icon",{color:this.iconColor,name:this.iconName,class:"absolute",size:"24"})):"";return s(r,{onClick:()=>this.onStepClick()},s("div",{tabIndex:0,onClick:()=>this.select(),class:{step:true,selected:this.selected,vertical:this.vertical,disabled:this.disabled}},s("div",{class:"wrapper"},s("div",{class:{line:true,selected:this.selected,[this.status]:true,[this.position]:true}}),s("div",{class:"iconWrapper"},e,s("slot",{name:"custom-icon"}))),s("div",{class:"text"},s("slot",null))))}get hostElement(){return i(this)}static get watchers(){return{selected:["selectedHandler"],status:["watchPropHandler"]}}};c.style=a;const n=":host *,:host *::after,:host *::before{box-sizing:border-box}:host .steps{display:flex}:host .steps.vertical{display:block}";const h=class{constructor(s){e(this,s);this.stepSelected=t(this,"stepSelected",7);this.vertical=false;this.linear=false;this.clickable=false;this.selectedIndex=0}getSteps(){return Array.from(this.hostElement.querySelectorAll("ix-workflow-step"))}updateSteps(){let e=this.getSteps();e.forEach(((t,s)=>{t.vertical=this.vertical;t.clickable=this.clickable;t.selected=this.selectedIndex===s;if(e.length===1){t.position="single";return}if(s===0){t.position="first"}else if(s===e.length-1){t.position="last"}else{t.position="undefined"}}))}onStepSelectionChanged(e){const t=this.getSteps();t.forEach((t=>{if(t!==e.target){t.selected=false}}))}componentDidLoad(){this.observer=l((e=>{for(let t of e){if(t.type==="childList"){this.updateSteps()}}}));this.observer.observe(this.hostElement,{childList:true})}disconnectedCallback(){if(this.observer){this.observer.disconnect()}}componentDidRender(){this.updateSteps()}render(){return s(r,null,s("div",{class:{steps:true,vertical:this.vertical}},s("slot",null)))}get hostElement(){return i(this)}};h.style=n;export{c as ix_workflow_step,h as ix_workflow_steps};
2
+ //# sourceMappingURL=p-9d264ca8.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["workflowStepCss","WorkflowStep","select","this","clickable","disabled","selected","selectedHandler","selectedStyle","status","iconName","iconColor","watchPropHandler","componentDidLoad","customIconSlot","hostElement","querySelector","onStepClick","selectedChanged","emit","render","icons","h","Fragment","color","name","class","size","Host","onClick","tabIndex","step","vertical","line","position","workflowStepsCss","WorkflowSteps","getSteps","Array","from","querySelectorAll","updateSteps","steps","forEach","element","index","selectedIndex","length","onStepSelectionChanged","event","target","observer","createMutationObserver","mutations","mutation","type","observe","childList","disconnectedCallback","disconnect","componentDidRender"],"sources":["./src/components/workflow-step/workflow-step.scss?tag=ix-workflow-step&encapsulation=shadow","./src/components/workflow-step/workflow-step.tsx","./src/components/workflow-steps/workflow-steps.scss?tag=ix-workflow-steps&encapsulation=shadow","./src/components/workflow-steps/workflow-steps.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\n .step {\n display: flex;\n flex-direction: column;\n align-items: center;\n background-color: var(--theme-workflow-step--background);\n border-radius: var(--theme-workflow--border-radius);\n width: auto;\n padding: 1.125rem 0 $small-space 0;\n height: 4rem;\n width: 12.75rem;\n\n .wrapper {\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n position: relative;\n\n .line {\n width: 100%;\n height: 0.125rem;\n background-color: var(--theme-workflow-step-icon-default--color);\n\n &.first,\n &.last {\n width: 50%;\n margin: 0 0 0 auto;\n }\n\n &.last {\n margin: 0 auto 0 0;\n }\n\n &.single {\n width: 0;\n }\n\n &.selected {\n background-color: var(\n --theme-workflow-step-icon-default--color--selected\n );\n }\n\n &.done {\n background-color: var(--theme-workflow-step-icon-done--color);\n\n &.selected {\n background-color: var(\n --theme-workflow-step-icon-done--color--selected\n );\n }\n }\n\n &.warning {\n background-color: var(--theme-color-warning);\n }\n\n &.success {\n background-color: var(--theme-color-success);\n }\n\n &.error {\n background-color: var(--theme-color-alarm);\n }\n }\n\n .iconWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n\n .absolute {\n position: absolute;\n }\n }\n }\n\n .text {\n margin-top: $default-space;\n width: auto;\n padding: 0 $small-space;\n }\n\n &.vertical {\n flex-direction: row;\n padding: 0;\n\n .wrapper {\n width: auto;\n padding-left: 1.125rem;\n height: 4rem;\n\n .line {\n width: 0.125rem;\n height: 100%;\n\n &.first,\n &.last {\n height: 50%;\n margin: auto 0 0 0;\n }\n\n &.last {\n margin: 0 0 auto 0;\n }\n\n &.single {\n width: 0;\n }\n }\n }\n\n .text {\n margin-top: 0;\n margin-left: $default-space;\n padding: 0;\n }\n }\n\n &:hover {\n background-color: var(--theme-workflow-step--background--hover);\n }\n\n &:active {\n background-color: var(--theme-workflow-step--background--active);\n }\n\n &:focus-visible {\n outline: 1px solid var(--focus--border-color);\n border-radius: 0;\n }\n\n &.selected {\n background-color: var(--theme-workflow-step--background--selected);\n }\n\n &.disabled {\n background-color: var(--theme-workflow-step--background--disabled);\n\n .line {\n background-color: var(\n --theme-workflow-step-icon-default--color--disabled\n ) !important;\n }\n\n .text {\n color: var(--theme-workflow-step--color--disabled);\n }\n }\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n Fragment,\n h,\n Host,\n Prop,\n State,\n Watch,\n} from '@stencil/core';\n\n@Component({\n tag: 'ix-workflow-step',\n styleUrl: 'workflow-step.scss',\n shadow: true,\n})\nexport class WorkflowStep {\n @Element() hostElement: HTMLIxWorkflowStepElement;\n\n /**\n * Select orientation\n */\n @Prop() vertical: boolean = false;\n\n /**\n * Set disabled\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Set status\n */\n @Prop() status: 'open' | 'success' | 'done' | 'warning' | 'error' = 'open';\n\n /**\n * Activate navigation click\n */\n @Prop() clickable: boolean = false;\n\n /**\n * Set selected\n */\n @Prop({ mutable: true }) selected: boolean = false;\n\n /**\n * Activate navigation click\n *\n * @deprecated Will be changed to '@internal' in 2.0.0\n */\n @Prop() position: 'first' | 'last' | 'single' | 'undefined' = 'undefined';\n\n @State() iconName: 'circle' | 'circle-dot' | 'success' | 'warning' | 'error' =\n 'circle';\n @State() iconColor: string = 'workflow-step-icon-default--color';\n\n /**\n * @internal\n */\n @Event() selectedChanged: EventEmitter<HTMLIxWorkflowStepElement>;\n\n private customIconSlot: boolean;\n\n private select() {\n if (!this.clickable) return;\n if (this.disabled) return;\n\n this.selected = true;\n this.selectedHandler();\n }\n\n @Watch('selected')\n selectedHandler() {\n const selectedStyle = this.selected ? '--selected' : '';\n\n if (this.status === 'open') {\n this.iconName = this.selected ? 'circle-dot' : 'circle';\n this.iconColor = `workflow-step-icon-default--color${selectedStyle}`;\n }\n\n if (this.status === 'done' && !this.disabled) {\n this.iconColor = `workflow-step-icon-done--color${selectedStyle}`;\n }\n }\n\n @Watch('status')\n watchPropHandler() {\n switch (this.status) {\n case 'open':\n this.iconName = 'circle';\n this.iconColor = 'workflow-step-icon-default--color';\n break;\n case 'success':\n this.iconName = 'success';\n this.iconColor = 'color-success';\n break;\n case 'done':\n this.iconName = 'success';\n this.iconColor = 'workflow-step-icon-done--color';\n break;\n case 'warning':\n this.iconName = 'warning';\n this.iconColor = 'color-warning';\n break;\n case 'error':\n this.iconName = 'error';\n this.iconColor = 'color-alarm';\n break;\n\n default:\n this.iconName = 'circle';\n break;\n }\n\n if (this.disabled) {\n this.iconColor = 'workflow-step-icon-success--color--disabled';\n }\n }\n\n componentDidLoad() {\n this.watchPropHandler();\n this.selectedHandler();\n\n this.customIconSlot = !!this.hostElement.querySelector(\n '[slot=\"custom-icon\"]'\n );\n }\n\n onStepClick() {\n if (!this.disabled && this.clickable) {\n this.selectedChanged.emit(this.hostElement);\n }\n }\n\n render() {\n const icons = !this.customIconSlot ? (\n <Fragment>\n <ix-icon\n color=\"color-1\"\n name={\n this.iconName === 'warning' ? 'triangle-filled' : 'circle-filled'\n }\n class=\"absolute\"\n size=\"24\"\n ></ix-icon>\n <ix-icon\n color={this.iconColor}\n name={this.iconName}\n class=\"absolute\"\n size=\"24\"\n ></ix-icon>\n </Fragment>\n ) : (\n ''\n );\n\n return (\n <Host onClick={() => this.onStepClick()}>\n <div\n tabIndex={0}\n onClick={() => this.select()}\n class={{\n step: true,\n selected: this.selected,\n vertical: this.vertical,\n disabled: this.disabled,\n }}\n >\n <div class=\"wrapper\">\n <div\n class={{\n line: true,\n selected: this.selected,\n [this.status]: true,\n [this.position]: true,\n }}\n ></div>\n <div class=\"iconWrapper\">\n {icons}\n <slot name=\"custom-icon\"></slot>\n </div>\n </div>\n <div class=\"text\">\n <slot></slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n@import 'common-variables';\n@import 'mixins/shadow-dom/component';\n\n:host {\n @include ix-component;\n\n .steps {\n display: flex;\n\n &.vertical {\n display: block;\n }\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n} from '@stencil/core';\nimport { createMutationObserver } from '../utils/mutation-observer';\n\n@Component({\n tag: 'ix-workflow-steps',\n styleUrl: 'workflow-steps.scss',\n shadow: true,\n})\nexport class WorkflowSteps {\n @Element() hostElement!: HTMLIxWorkflowStepsElement;\n\n /**\n * Select orientation\n */\n @Prop() vertical: boolean = false;\n\n /**\n * Select linear mode\n * @deprecated Has no effect on component. Will get removed in 2.0.0\n */\n @Prop() linear: boolean = false;\n\n /**\n * Activate navigation click\n */\n @Prop() clickable: boolean = false;\n\n /**\n * Activate navigation click\n */\n @Prop() selectedIndex: number = 0;\n\n /**\n * On step selected event\n */\n @Event() stepSelected: EventEmitter<number>;\n\n private getSteps() {\n return Array.from(this.hostElement.querySelectorAll('ix-workflow-step'));\n }\n\n updateSteps() {\n let steps = this.getSteps();\n steps.forEach((element, index) => {\n element.vertical = this.vertical;\n element.clickable = this.clickable;\n element.selected = this.selectedIndex === index;\n\n if (steps.length === 1) {\n element.position = 'single';\n return;\n }\n\n if (index === 0) {\n element.position = 'first';\n } else if (index === steps.length - 1) {\n element.position = 'last';\n } else {\n element.position = 'undefined';\n }\n });\n }\n\n private observer: MutationObserver;\n\n @Listen('selectedChanged')\n onStepSelectionChanged(event: CustomEvent<HTMLIxWorkflowStepElement>) {\n const steps = this.getSteps();\n steps.forEach((element) => {\n if (element !== event.target) {\n element.selected = false;\n }\n });\n }\n\n componentDidLoad() {\n this.observer = createMutationObserver((mutations) => {\n for (let mutation of mutations) {\n if (mutation.type === 'childList') {\n this.updateSteps();\n }\n }\n });\n\n this.observer.observe(this.hostElement, { childList: true });\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n componentDidRender() {\n this.updateSteps();\n }\n\n render() {\n return (\n <Host>\n <div class={{ steps: true, vertical: this.vertical }}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,H as o}from"./p-b899b25b.js";const r=":host{display:flex;align-items:center;position:relative;height:2.5rem;width:auto;padding:0.25rem 1rem;overflow:hidden;cursor:default;color:var(--theme-color-soft-text)}:host *,:host *::after,:host *::before{box-sizing:border-box}";const s=class{constructor(e){t(this,e);this.label=undefined}render(){return e(o,null,e("ix-typography",{class:"category-text",variant:"default-title"},this.label))}};s.style=r;export{s as ix_dropdown_header};
2
+ //# sourceMappingURL=p-a64d88de.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["dropdownHeaderCss","DropdownHeader","render","h","Host","class","variant","this","label"],"sources":["./src/components/dropdown-header/dropdown-header.scss?tag=ix-dropdown-header&encapsulation=shadow","./src/components/dropdown-header/dropdown-header.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\n:host {\n @include ix-component;\n\n display: flex;\n align-items: center;\n position: relative;\n height: 2.5rem;\n width: auto;\n\n padding: 0.25rem 1rem;\n\n overflow: hidden;\n cursor: default;\n\n color: var(--theme-color-soft-text);\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Component, h, Host, Prop } from '@stencil/core';\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-dropdown-header',\n styleUrl: 'dropdown-header.scss',\n shadow: true,\n})\nexport class DropdownHeader {\n /**\n * Display name of the header\n */\n @Prop() label: string;\n\n render() {\n return (\n <Host>\n <ix-typography class={'category-text'} variant={'default-title'}>\n {this.label}\n </ix-typography>\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAoB,wO,MCmBbC,EAAc,M,8CAMzBC,SACE,OACEC,EAACC,EAAI,KACHD,EAAA,iBAAeE,MAAO,gBAAiBC,QAAS,iBAC7CC,KAAKC,O"}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as i,H as e,g as r}from"./p-b899b25b.js";import{g as s}from"./p-d737ad96.js";const n=":host{display:block;position:relative;height:2rem;width:2rem;-webkit-margin-before:0.3125rem;margin-block-start:0.3125rem;-webkit-margin-end:0.3125rem;margin-inline-end:0.3125rem;-webkit-margin-start:auto;margin-inline-start:auto}:host .hide{visibility:collapse}";const o=class{constructor(i){t(this,i);this.showContextMenu=false}getTrigger(){return this.hostElement}configureDropdown(t,i){t.positioningStrategy="fixed";t.trigger=i}onSlotChange(){const t=this.hostElement.shadowRoot.querySelector("slot");if(!t){return}const i=s(t);this.showContextMenu=i.length!==0;const e=i.find((t=>t.tagName==="IX-DROPDOWN"));const r=this.getTrigger();if(!r){return}if(!e){return}this.configureDropdown(e,r)}render(){return i(e,null,i("ix-icon-button",{class:{hide:!this.showContextMenu},size:"24",ghost:true,icon:"context-menu"}),i("slot",{onSlotchange:()=>this.onSlotChange()}))}get hostElement(){return r(this)}};o.style=n;export{o as ix_group_context_menu};
2
+ //# sourceMappingURL=p-a8e8a942.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["groupContextMenuCss","GroupContextMenu","getTrigger","this","hostElement","configureDropdown","dropdownElement","triggerElement","positioningStrategy","trigger","onSlotChange","slot","shadowRoot","querySelector","elements","getSlottedElements","showContextMenu","length","find","elm","tagName","render","h","Host","class","hide","size","ghost","icon","onSlotchange"],"sources":["./src/components/group/group-context-menu.scss?tag=ix-group-context-menu&encapsulation=shadow","./src/components/group/group-context-menu.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:host {\n display: block;\n position: relative;\n\n height: 2rem;\n width: 2rem;\n\n margin-block-start: 0.3125rem;\n margin-inline-end: 0.3125rem;\n margin-inline-start: auto;\n\n .hide {\n visibility: collapse;\n }\n}\n","/*\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, State } from '@stencil/core';\nimport { getSlottedElements } from '../utils/shadow-dom';\n\n@Component({\n tag: 'ix-group-context-menu',\n styleUrl: './group-context-menu.scss',\n shadow: true,\n})\nexport class GroupContextMenu {\n @Element() hostElement!: HTMLIxGroupContextMenuElement;\n\n @State() showContextMenu = false;\n\n private getTrigger() {\n return this.hostElement;\n }\n\n private configureDropdown(\n dropdownElement: HTMLIxDropdownElement,\n triggerElement: HTMLElement\n ) {\n dropdownElement.positioningStrategy = 'fixed';\n dropdownElement.trigger = triggerElement;\n }\n\n private onSlotChange() {\n const slot = this.hostElement.shadowRoot.querySelector('slot');\n if (!slot) {\n return;\n }\n const elements = getSlottedElements(slot);\n this.showContextMenu = elements.length !== 0;\n\n const dropdownElement = elements.find(\n (elm: Element) => elm.tagName === 'IX-DROPDOWN'\n );\n\n const triggerElement = this.getTrigger();\n\n if (!triggerElement) {\n return;\n }\n\n if (!dropdownElement) {\n return;\n }\n\n this.configureDropdown(dropdownElement, triggerElement);\n }\n\n render() {\n return (\n <Host>\n <ix-icon-button\n class={{ hide: !this.showContextMenu }}\n size=\"24\"\n ghost={true}\n icon=\"context-menu\"\n ></ix-icon-button>\n <slot onSlotchange={() => this.onSlotChange()}></slot>\n </Host>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAsB,yQ,MCiBfC,EAAgB,M,8CAGA,K,CAEnBC,aACN,OAAOC,KAAKC,W,CAGNC,kBACNC,EACAC,GAEAD,EAAgBE,oBAAsB,QACtCF,EAAgBG,QAAUF,C,CAGpBG,eACN,MAAMC,EAAOR,KAAKC,YAAYQ,WAAWC,cAAc,QACvD,IAAKF,EAAM,CACT,M,CAEF,MAAMG,EAAWC,EAAmBJ,GACpCR,KAAKa,gBAAkBF,EAASG,SAAW,EAE3C,MAAMX,EAAkBQ,EAASI,MAC9BC,GAAiBA,EAAIC,UAAY,gBAGpC,MAAMb,EAAiBJ,KAAKD,aAE5B,IAAKK,EAAgB,CACnB,M,CAGF,IAAKD,EAAiB,CACpB,M,CAGFH,KAAKE,kBAAkBC,EAAiBC,E,CAG1Cc,SACE,OACEC,EAACC,EAAI,KACHD,EAAA,kBACEE,MAAO,CAAEC,MAAOtB,KAAKa,iBACrBU,KAAK,KACLC,MAAO,KACPC,KAAK,iBAEPN,EAAA,QAAMO,aAAc,IAAM1B,KAAKO,iB"}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as i,h as s,H as o,g as n}from"./p-b899b25b.js";const e=":host{display:flex;padding:2px 16px 16px 10px;align-items:center;align-self:stretch}:host *,:host *::after,:host *::before{box-sizing:border-box}:host .modal-close{margin-left:auto;margin-right:-20px}:host .modal-icon{margin-right:1rem}";const h=class{constructor(s){t(this,s);this.closeClick=i(this,"closeClick",7);this.hideClose=false;this.icon=undefined;this.iconColor=undefined}onIconChange(t){if(t){this.parentDialog.classList.add("with-icon")}else{this.parentDialog.classList.remove("with-icon")}}componentDidLoad(){this.parentDialog=this.hostElement.closest("ix-modal");this.onIconChange(this.icon)}onCloseClick(t){const i=this.closeClick.emit(t);if(i.defaultPrevented||t.defaultPrevented){return}this.parentDialog.dismissModal()}render(){return s(o,null,this.icon?s("ix-icon",{class:"modal-icon",name:this.icon,color:this.iconColor}):null,s("ix-typography",{variant:"default-title"},s("slot",null)),!this.hideClose?s("ix-icon-button",{onClick:t=>this.onCloseClick(t),ghost:true,icon:"close",class:"modal-close"}):null)}get hostElement(){return n(this)}static get watchers(){return{icon:["onIconChange"]}}};h.style=e;export{h as ix_modal_header};
2
+ //# sourceMappingURL=p-a9619a92.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["modalHeaderCss","ModalHeader","onIconChange","icon","this","parentDialog","classList","add","remove","componentDidLoad","hostElement","closest","onCloseClick","event","ce","closeClick","emit","defaultPrevented","dismissModal","render","h","Host","class","name","color","iconColor","variant","hideClose","onClick","ghost"],"sources":["./src/components/modal-header/modal-header.scss?tag=ix-modal-header&encapsulation=shadow","./src/components/modal-header/modal-header.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\n:host {\n @include ix-component;\n display: flex;\n padding: 2px 16px 16px 10px;\n align-items: center;\n align-self: stretch;\n\n .modal-close {\n margin-left: auto;\n margin-right: -20px;\n }\n\n .modal-icon {\n margin-right: 1rem;\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2023 Siemens AG\n *\n * SPDX-License-Identifier: MIT\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n Watch,\n} from '@stencil/core';\n\n/**\n * @since 2.0.0\n */\n@Component({\n tag: 'ix-modal-header',\n styleUrl: 'modal-header.scss',\n shadow: true,\n})\nexport class ModalHeader {\n @Element() hostElement!: HTMLIxModalHeaderElement;\n\n /**\n * Hide the close button\n */\n @Prop() hideClose = false;\n\n /**\n * Icon of the Header\n */\n @Prop() icon: string;\n @Watch('icon')\n onIconChange(icon: string) {\n if (icon) {\n this.parentDialog.classList.add('with-icon');\n } else {\n this.parentDialog.classList.remove('with-icon');\n }\n }\n\n /**\n * Icon color\n */\n @Prop() iconColor: string;\n\n /**\n * Close icon is clicked\n */\n @Event() closeClick: EventEmitter<MouseEvent>;\n\n private parentDialog: HTMLIxModalElement;\n\n componentDidLoad() {\n this.parentDialog = this.hostElement.closest('ix-modal');\n this.onIconChange(this.icon);\n }\n\n private onCloseClick(event: MouseEvent) {\n const ce = this.closeClick.emit(event);\n if (ce.defaultPrevented || event.defaultPrevented) {\n return;\n }\n\n this.parentDialog.dismissModal();\n }\n\n render() {\n return (\n <Host>\n {this.icon ? (\n <ix-icon\n class={'modal-icon'}\n name={this.icon}\n color={this.iconColor}\n ></ix-icon>\n ) : null}\n <ix-typography variant={'default-title'}>\n <slot></slot>\n </ix-typography>\n {!this.hideClose ? (\n <ix-icon-button\n onClick={(event) => this.onCloseClick(event)}\n ghost\n icon=\"close\"\n class={'modal-close'}\n ></ix-icon-button>\n ) : null}\n </Host>\n );\n }\n}\n"],"mappings":"gEAAA,MAAMA,EAAiB,+O,MC4BVC,EAAW,M,+EAMF,M,6CAOpBC,aAAaC,GACX,GAAIA,EAAM,CACRC,KAAKC,aAAaC,UAAUC,IAAI,Y,KAC3B,CACLH,KAAKC,aAAaC,UAAUE,OAAO,Y,EAgBvCC,mBACEL,KAAKC,aAAeD,KAAKM,YAAYC,QAAQ,YAC7CP,KAAKF,aAAaE,KAAKD,K,CAGjBS,aAAaC,GACnB,MAAMC,EAAKV,KAAKW,WAAWC,KAAKH,GAChC,GAAIC,EAAGG,kBAAoBJ,EAAMI,iBAAkB,CACjD,M,CAGFb,KAAKC,aAAaa,c,CAGpBC,SACE,OACEC,EAACC,EAAI,KACFjB,KAAKD,KACJiB,EAAA,WACEE,MAAO,aACPC,KAAMnB,KAAKD,KACXqB,MAAOpB,KAAKqB,YAEZ,KACJL,EAAA,iBAAeM,QAAS,iBACtBN,EAAA,eAEAhB,KAAKuB,UACLP,EAAA,kBACEQ,QAAUf,GAAUT,KAAKQ,aAAaC,GACtCgB,MAAK,KACL1B,KAAK,QACLmB,MAAO,gBAEP,K"}
@@ -1,2 +1,2 @@
1
- import{r as e,c as r,h as s,H as t}from"./p-1c64b073.js";import{a as o}from"./p-810b5232.js";const i=":host *,:host *::after,:host *::before{box-sizing:border-box}:host .message-container{display:flex;flex-direction:row;align-items:flex-start;flex-wrap:nowrap;justify-content:space-between;min-height:3.375rem;margin:0.5rem 0.5rem 0rem 0.5rem;padding:calc(0.75rem - var(--theme-message-bar--border-thickness)) 0.75rem calc(0.75rem - var(--theme-message-bar--border-thickness)) 1rem;border-radius:var(--theme-message-bar--border-radius);background-color:var(--theme-messagebar--background)}:host .danger{border:solid var(--theme-message-bar--border-thickness) var(--theme-color-alarm)}:host .warning{border:solid var(--theme-message-bar--border-thickness) var(--theme-color-warning)}:host .info{border:solid var(--theme-message-bar--border-thickness) var(--theme-color-info)}:host .message-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1;align-self:center;min-height:1.25rem;padding:0 1rem;font-weight:bold;white-space:normal}:host ix-icon{margin-top:0.25rem}";const a=class{constructor(s){e(this,s);this.closedChange=r(this,"closedChange",7);this.type="info";this.dismissible=true;this.icon=undefined;this.color=undefined}componentWillRender(){if(this.type==="danger"){this.icon="error";this.color="color-alarm"}if(this.type==="info"){this.icon="info";this.color="color-info"}if(this.type==="warning"){this.icon="warning";this.color="color-warning"}}closeAlert(e){o({targets:e,duration:a.duration,opacity:[1,0],easing:"easeOutSine",complete:()=>{e.classList.add("d-none")}});this.closedChange.emit()}render(){return s(t,null,s("div",{class:{"message-container":true,[this.type]:true},role:"alert",ref:e=>this.divElement=e},s("ix-icon",{color:this.color,name:this.icon}),s("div",{class:"message-content"},s("slot",null)),this.dismissible?s("ix-icon-button",{icon:"close",size:"24",ghost:true,onClick:()=>{this.closeAlert(this.divElement)},"data-testid":"close-btn"}):""))}};a.duration=300;a.style=i;export{a as ix_message_bar};
2
- //# sourceMappingURL=p-a7212f01.entry.js.map
1
+ import{r as e,c as r,h as s,H as t}from"./p-b899b25b.js";import{a as o}from"./p-810b5232.js";const i=":host *,:host *::after,:host *::before{box-sizing:border-box}:host .message-container{display:flex;flex-direction:row;align-items:flex-start;flex-wrap:nowrap;justify-content:space-between;min-height:3.375rem;margin:0.5rem 0.5rem 0rem 0.5rem;padding:calc(0.75rem - var(--theme-message-bar--border-thickness)) 0.75rem calc(0.75rem - var(--theme-message-bar--border-thickness)) 1rem;border-radius:var(--theme-message-bar--border-radius);background-color:var(--theme-messagebar--background)}:host .danger{border:solid var(--theme-message-bar--border-thickness) var(--theme-color-alarm)}:host .warning{border:solid var(--theme-message-bar--border-thickness) var(--theme-color-warning)}:host .info{border:solid var(--theme-message-bar--border-thickness) var(--theme-color-info)}:host .message-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1;align-self:center;min-height:1.25rem;padding:0 1rem;font-weight:bold;white-space:normal}:host ix-icon{margin-top:0.25rem}";const a=class{constructor(s){e(this,s);this.closedChange=r(this,"closedChange",7);this.type="info";this.dismissible=true;this.icon=undefined;this.color=undefined}componentWillRender(){if(this.type==="danger"){this.icon="error";this.color="color-alarm"}if(this.type==="info"){this.icon="info";this.color="color-info"}if(this.type==="warning"){this.icon="warning";this.color="color-warning"}}closeAlert(e){o({targets:e,duration:a.duration,opacity:[1,0],easing:"easeOutSine",complete:()=>{e.classList.add("d-none")}});this.closedChange.emit()}render(){return s(t,null,s("div",{class:{"message-container":true,[this.type]:true},role:"alert",ref:e=>this.divElement=e},s("ix-icon",{color:this.color,name:this.icon}),s("div",{class:"message-content"},s("slot",null)),this.dismissible?s("ix-icon-button",{icon:"close",size:"24",ghost:true,onClick:()=>{this.closeAlert(this.divElement)},"data-testid":"close-btn"}):""))}};a.duration=300;a.style=i;export{a as ix_message_bar};
2
+ //# sourceMappingURL=p-b21bc31c.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as o,h as r,H as t,g as e}from"./p-b899b25b.js";const n=":host{display:inline-block;position:relative;height:1.25rem;max-height:1.25rem;margin-left:0.25rem}:host *,:host *::after,:host *::before{box-sizing:border-box}.container{display:inline-flex;width:inherit;box-sizing:border-box;position:relative;align-items:center;border-radius:100px;padding:0.5rem;height:2rem;max-height:2rem;cursor:default}.container .with-icon{margin-right:0.25rem}.container .hidden{width:0px;margin-right:0px}.container .close-button-container{display:inline-flex;margin-left:auto;padding-left:0.5rem}.container .slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container.icon{padding-left:0.75rem;padding-right:0.75rem}.container.closable{padding-right:0.25rem}.container.primary{background-color:var(--theme-color-primary);color:var(--theme-chip-primary--color)}.container.primary .close-button{color:var(--theme-chip-primary--color);--ix-icon-button-color:var(--theme-chip-primary--color);pointer-events:auto}.container.primary.outline{color:var(--theme-chip-primary-outline--color);background-color:transparent;border:solid 1px var(--theme-chip-primary-outline--border-color)}.container.primary.outline .close-button{color:var(--theme-chip-primary-outline--color);--ix-icon-button-color:var(--theme-chip-primary-outline--color)}.container.alarm{color:var(--theme-color-alarm--contrast)}.container.alarm:not(.outline){background-color:var(--theme-color-alarm)}.container.alarm:not(.outline) .close-button{color:var(--theme-color-alarm--contrast);--ix-icon-button-color:var(--theme-color-alarm--contrast)}.container.alarm.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-alarm)}.container.critical{color:var(--theme-color-critical--contrast)}.container.critical:not(.outline){background-color:var(--theme-color-critical)}.container.critical:not(.outline) .close-button{color:var(--theme-color-critical--contrast);--ix-icon-button-color:var(--theme-color-critical--contrast)}.container.critical.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-critical)}.container.warning{color:var(--theme-color-warning--contrast)}.container.warning:not(.outline){background-color:var(--theme-color-warning)}.container.warning:not(.outline) .close-button{color:var(--theme-color-warning--contrast);--ix-icon-button-color:var(--theme-color-warning--contrast)}.container.warning.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-warning)}.container.info{color:var(--theme-color-info--contrast)}.container.info:not(.outline){background-color:var(--theme-color-info)}.container.info:not(.outline) .close-button{color:var(--theme-color-info--contrast);--ix-icon-button-color:var(--theme-color-info--contrast)}.container.info.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-info)}.container.neutral{color:var(--theme-color-neutral--contrast)}.container.neutral:not(.outline){background-color:var(--theme-color-neutral)}.container.neutral:not(.outline) .close-button{color:var(--theme-color-neutral--contrast);--ix-icon-button-color:var(--theme-color-neutral--contrast)}.container.neutral.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-neutral)}.container.success{color:var(--theme-color-success--contrast)}.container.success:not(.outline){background-color:var(--theme-color-success)}.container.success:not(.outline) .close-button{color:var(--theme-color-success--contrast);--ix-icon-button-color:var(--theme-color-success--contrast)}.container.success.outline{color:var(--theme-chip-outline--color);border:solid 1px var(--theme-color-success)}:host .container{height:100%;justify-content:center;padding-right:0.5rem}:host(.align-left) .container{justify-content:flex-start}";const i=class{constructor(r){o(this,r);this.variant="primary";this.outline=false;this.icon=undefined;this.background=undefined;this.color=undefined;this.alignLeft=false}render(){let o={};if(this.variant==="custom"){o={color:this.color,[this.outline?"borderColor":"backgroundColor"]:this.background}}return r(t,{style:this.variant==="custom"?{"--ix-icon-button-color":this.color}:{},title:this.el.textContent,class:{"align-left":this.alignLeft}},r("div",{style:Object.assign({},o),class:{container:true,outline:this.outline,inactive:false,alarm:this.variant==="alarm",critical:this.variant==="critical",info:this.variant==="info",neutral:this.variant==="neutral",primary:this.variant==="primary",success:this.variant==="success",warning:this.variant==="warning",closable:false,icon:!!this.icon}},r("ix-icon",{class:{"with-icon":true,hidden:this.icon===undefined||this.icon===""},name:this.icon,size:"16"}),r("span",{class:"slot-container"},r("slot",null))))}get el(){return e(this)}};i.style=n;export{i as ix_pill};
2
+ //# sourceMappingURL=p-b6d52b6f.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pillCss","Pill","render","customStyle","this","variant","color","outline","background","h","Host","style","title","el","textContent","class","alignLeft","Object","assign","container","inactive","alarm","critical","info","neutral","primary","success","warning","closable","icon","hidden","undefined","name","size"],"sources":["./src/components/pill/pill.scss?tag=ix-pill&encapsulation=shadow","./src/components/pill/pill.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\n@import './../chip/chip-mixin';\n@import 'common-variables';\n@import 'mixins/text-truncation';\n\n:host {\n @include ix-component;\n display: inline-block;\n position: relative;\n height: 1.25rem;\n max-height: 1.25rem;\n margin-left: 0.25rem;\n}\n\n@include chip-container(false);\n\n:host {\n .container {\n height: 100%;\n justify-content: center;\n padding-right: 0.5rem;\n }\n}\n\n:host(.align-left) {\n .container {\n justify-content: flex-start;\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';\n\n@Component({\n tag: 'ix-pill',\n styleUrl: 'pill.scss',\n shadow: true,\n})\nexport class Pill {\n @Element() el: HTMLIxPillElement;\n\n /**\n * Pill variant\n */\n @Prop({ reflect: true }) variant:\n | 'primary'\n | 'alarm'\n | 'critical'\n | 'warning'\n | 'info'\n | 'neutral'\n | 'success'\n | 'custom' = 'primary';\n\n /**\n * Show pill as outline\n */\n @Prop() outline = false;\n\n /**\n * Show icon\n */\n @Prop() icon: string | undefined;\n\n /**\n * Custom color for pill. Only working for `variant='custom'`\n */\n @Prop() background: string | undefined;\n\n /**\n * Custom font color for pill. Only working for `variant='custom'`\n */\n @Prop() color: string | undefined;\n\n /**\n * Align pill content left\n */\n @Prop() alignLeft = false;\n\n render() {\n let customStyle = {};\n\n if (this.variant === 'custom') {\n customStyle = {\n color: this.color,\n [this.outline ? 'borderColor' : 'backgroundColor']: this.background,\n };\n }\n return (\n <Host\n style={\n this.variant === 'custom'\n ? {\n '--ix-icon-button-color': this.color,\n }\n : {}\n }\n title={this.el.textContent}\n class={{\n 'align-left': this.alignLeft,\n }}\n >\n <div\n style={{ ...customStyle }}\n class={{\n container: true,\n outline: this.outline,\n inactive: false,\n alarm: this.variant === 'alarm',\n critical: this.variant === 'critical',\n info: this.variant === 'info',\n neutral: this.variant === 'neutral',\n primary: this.variant === 'primary',\n success: this.variant === 'success',\n warning: this.variant === 'warning',\n closable: false,\n icon: !!this.icon,\n }}\n >\n <ix-icon\n class={{\n 'with-icon': true,\n hidden: this.icon === undefined || this.icon === '',\n }}\n name={this.icon}\n size={'16'}\n />\n <span class=\"slot-container\">\n <slot></slot>\n </span>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAU,0rH,MCgBHC,EAAI,M,sCAcA,U,aAKG,M,kFAoBE,K,CAEpBC,SACE,IAAIC,EAAc,GAElB,GAAIC,KAAKC,UAAY,SAAU,CAC7BF,EAAc,CACZG,MAAOF,KAAKE,MACZ,CAACF,KAAKG,QAAU,cAAgB,mBAAoBH,KAAKI,W,CAG7D,OACEC,EAACC,EAAI,CACHC,MACEP,KAAKC,UAAY,SACb,CACE,yBAA0BD,KAAKE,OAEjC,GAENM,MAAOR,KAAKS,GAAGC,YACfC,MAAO,CACL,aAAcX,KAAKY,YAGrBP,EAAA,OACEE,MAAKM,OAAAC,OAAA,GAAOf,GACZY,MAAO,CACLI,UAAW,KACXZ,QAASH,KAAKG,QACda,SAAU,MACVC,MAAOjB,KAAKC,UAAY,QACxBiB,SAAUlB,KAAKC,UAAY,WAC3BkB,KAAMnB,KAAKC,UAAY,OACvBmB,QAASpB,KAAKC,UAAY,UAC1BoB,QAASrB,KAAKC,UAAY,UAC1BqB,QAAStB,KAAKC,UAAY,UAC1BsB,QAASvB,KAAKC,UAAY,UAC1BuB,SAAU,MACVC,OAAQzB,KAAKyB,OAGfpB,EAAA,WACEM,MAAO,CACL,YAAa,KACbe,OAAQ1B,KAAKyB,OAASE,WAAa3B,KAAKyB,OAAS,IAEnDG,KAAM5B,KAAKyB,KACXI,KAAM,OAERxB,EAAA,QAAMM,MAAM,kBACVN,EAAA,e"}
@@ -1,2 +1,2 @@
1
- import{r as t,h as s,H as n}from"./p-1c64b073.js";function e(t){let s="";t.forEach((t=>{s+='"';s=t.reduce(((t,s)=>`${t} ${s}`),s);s+='"\n'}));return s}const i=":host{display:grid;position:relative;row-gap:1.5rem;-moz-column-gap:1.5rem;column-gap:1.5rem}";const o="only screen and (max-width: 576px)";const r="only screen and (max-width: 768px)";const c="only screen and (max-width: 992px)";const h=[{name:"sm",query:o},{name:"md",query:r},{name:"lg",query:c}];const a=class{constructor(s){t(this,s);this.disposeMediaQueryListener=[];this.mediaQueries=[];this.templates=undefined;this.currentTemplate=undefined}componentWillRender(){this.mediaQueries=h.map((t=>{const s=window.matchMedia(t.query);const n=()=>{this.applyTemplate()};this.disposeMediaQueryListener.push(n);s.addEventListener("change",n);return Object.assign(Object.assign({},t),{mediaQuery:s})}));this.applyTemplate()}disconnectedCallback(){this.mediaQueries.forEach(((t,s)=>{t.mediaQuery.removeEventListener("change",this.disposeMediaQueryListener[s])}))}findNextTemplate(t){const s=this.mediaQueries.findIndex((s=>s.name===t));const n=this.templates[this.mediaQueries[s+1].name];if(!n){return this.findNextTemplate(this.mediaQueries[s+1].name)}return n}applyTemplate(){let t=this.mediaQueries.find((t=>t.mediaQuery.matches));if(!t){t=this.mediaQueries[this.mediaQueries.length-1]}const s=this.templates[t.name];if(s){this.currentTemplate=s}else{this.currentTemplate=this.findNextTemplate(t.name)}}render(){var t;const i={};if(((t=this.currentTemplate)===null||t===void 0?void 0:t.length)!==0){i["grid-template-areas"]=e(this.currentTemplate)}return s(n,{style:i},s("slot",null))}};a.style=i;export{a as ix_css_grid};
2
- //# sourceMappingURL=p-6c033b08.entry.js.map
1
+ import{r as t,h as s,H as n}from"./p-b899b25b.js";function e(t){let s="";t.forEach((t=>{s+='"';s=t.reduce(((t,s)=>`${t} ${s}`),s);s+='"\n'}));return s}const i=":host{display:grid;position:relative;row-gap:1.5rem;-moz-column-gap:1.5rem;column-gap:1.5rem}";const o="only screen and (max-width: 576px)";const r="only screen and (max-width: 768px)";const h="only screen and (max-width: 992px)";const c=[{name:"sm",query:o},{name:"md",query:r},{name:"lg",query:h}];const a=class{constructor(s){t(this,s);this.disposeMediaQueryListener=[];this.mediaQueries=[];this.templates=undefined;this.currentTemplate=undefined}componentWillRender(){this.mediaQueries=c.map((t=>{const s=window.matchMedia(t.query);const n=()=>{this.applyTemplate()};this.disposeMediaQueryListener.push(n);s.addEventListener("change",n);return Object.assign(Object.assign({},t),{mediaQuery:s})}));this.applyTemplate()}disconnectedCallback(){this.mediaQueries.forEach(((t,s)=>{t.mediaQuery.removeEventListener("change",this.disposeMediaQueryListener[s])}))}findNextTemplate(t){const s=this.mediaQueries.findIndex((s=>s.name===t));const n=this.templates[this.mediaQueries[s+1].name];if(!n){return this.findNextTemplate(this.mediaQueries[s+1].name)}return n}applyTemplate(){let t=this.mediaQueries.find((t=>t.mediaQuery.matches));if(!t){t=this.mediaQueries[this.mediaQueries.length-1]}const s=this.templates[t.name];if(s){this.currentTemplate=s}else{this.currentTemplate=this.findNextTemplate(t.name)}}render(){var t;const i={};if(((t=this.currentTemplate)===null||t===void 0?void 0:t.length)!==0){i["grid-template-areas"]=e(this.currentTemplate)}return s(n,{style:i},s("slot",null))}};a.style=i;export{a as ix_css_grid};
2
+ //# sourceMappingURL=p-b89172b4.entry.js.map
@@ -0,0 +1,3 @@
1
+ const t="siemens-ix";let e;let n;let s;let l=false;let o=false;let i=false;let c=false;let f=false;const r=(t,e="")=>{{return()=>{}}};const u=(t,e)=>{{return()=>{}}};const a="{visibility:hidden}.hydrated{visibility:inherit}";const d="http://www.w3.org/1999/xlink";const h={};const p="http://www.w3.org/2000/svg";const b="http://www.w3.org/1999/xhtml";const m=t=>t!=null;const y=t=>{t=typeof t;return t==="object"||t==="function"};function w(t){var e,n,s;return(s=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const $=(t,e,...n)=>{let s=null;let l=null;let o=null;let i=false;let c=false;const f=[];const r=e=>{for(let n=0;n<e.length;n++){s=e[n];if(Array.isArray(s)){r(s)}else if(s!=null&&typeof s!=="boolean"){if(i=typeof t!=="function"&&!y(s)){s=String(s)}if(i&&c){f[f.length-1].t+=s}else{f.push(i?v(null,s):s)}c=i}}};r(n);if(e){if(e.key){l=e.key}if(e.name){o=e.name}{const t=e.className||e.class;if(t){e.class=typeof t!=="object"?t:Object.keys(t).filter((e=>t[e])).join(" ")}}}if(typeof t==="function"){return t(e===null?{}:e,f,k)}const u=v(t,null);u.l=e;if(f.length>0){u.o=f}{u.i=l}{u.u=o}return u};const v=(t,e)=>{const n={h:0,p:t,t:e,m:null,o:null};{n.l=null}{n.i=null}{n.u=null}return n};const g={};const j=t=>t&&t.p===g;const k={forEach:(t,e)=>t.map(O).forEach(e),map:(t,e)=>t.map(O).map(e).map(S)};const O=t=>({vattrs:t.l,vchildren:t.o,vkey:t.i,vname:t.u,vtag:t.p,vtext:t.t});const S=t=>{if(typeof t.vtag==="function"){const e=Object.assign({},t.vattrs);if(t.vkey){e.key=t.vkey}if(t.vname){e.name=t.vname}return $(t.vtag,e,...t.vchildren||[])}const e=v(t.vtag,t.vtext);e.l=t.vattrs;e.o=t.vchildren;e.i=t.vkey;e.u=t.vname;return e};const C=(t,e)=>{if(t!=null&&!y(t)){if(e&4){return t==="false"?false:t===""||!!t}if(e&2){return parseFloat(t)}if(e&1){return String(t)}return t}return t};const x=t=>Tt(t).$;const M=(t,e,n)=>{const s=x(t);return{emit:t=>N(s,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:t})}};const N=(t,e,n)=>{const s=Vt.ce(e,n);t.dispatchEvent(s);return s};const R=new WeakMap;const P=(t,e,n)=>{let s=Dt.get(t);if(Bt&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=e}else{s.replaceSync(e)}}else{s=e}Dt.set(t,s)};const E=(t,e,n,s)=>{var l;let o=L(e);const i=Dt.get(o);t=t.nodeType===11?t:qt;if(i){if(typeof i==="string"){t=t.head||t;let e=R.get(t);let n;if(!e){R.set(t,e=new Set)}if(!e.has(o)){{{n=qt.createElement("style");n.innerHTML=i}const e=(l=Vt.v)!==null&&l!==void 0?l:w(qt);if(e!=null){n.setAttribute("nonce",e)}t.insertBefore(n,t.querySelector("link"))}if(e){e.add(o)}}}else if(!t.adoptedStyleSheets.includes(i)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,i]}}return o};const T=t=>{const e=t.g;const n=t.$;const s=e.h;const l=r("attachStyles",e.j);const o=E(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(s&10){n["s-sc"]=o;n.classList.add(o+"-h");if(s&2){n.classList.add(o+"-s")}}l()};const L=(t,e)=>"sc-"+t.j;const U=(t,e,n,s,l,o)=>{if(n!==s){let i=Wt(t,e);let c=e.toLowerCase();if(e==="class"){const e=t.classList;const l=A(n);const o=A(s);e.remove(...l.filter((t=>t&&!o.includes(t))));e.add(...o.filter((t=>t&&!l.includes(t))))}else if(e==="style"){{for(const e in n){if(!s||s[e]==null){if(e.includes("-")){t.style.removeProperty(e)}else{t.style[e]=""}}}}for(const e in s){if(!n||s[e]!==n[e]){if(e.includes("-")){t.style.setProperty(e,s[e])}else{t.style[e]=s[e]}}}}else if(e==="key");else if(e==="ref"){if(s){s(t)}}else if(!i&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(Wt(Ht,c)){e=c.slice(2)}else{e=c[2]+e.slice(3)}if(n){Vt.rel(t,e,n,false)}if(s){Vt.ael(t,e,s,false)}}else{const f=y(s);if((i||f&&s!==null)&&!l){try{if(!t.tagName.includes("-")){const l=s==null?"":s;if(e==="list"){i=false}else if(n==null||t[e]!=l){t[e]=l}}else{t[e]=s}}catch(t){}}let r=false;{if(c!==(c=c.replace(/^xlink\:?/,""))){e=c;r=true}}if(s==null||s===false){if(s!==false||t.getAttribute(e)===""){if(r){t.removeAttributeNS(d,e)}else{t.removeAttribute(e)}}}else if((!i||o&4||l)&&!f){s=s===true?"":s;if(r){t.setAttributeNS(d,e,s)}else{t.setAttribute(e,s)}}}}};const W=/\s/;const A=t=>!t?[]:t.split(W);const F=(t,e,n,s)=>{const l=e.m.nodeType===11&&e.m.host?e.m.host:e.m;const o=t&&t.l||h;const i=e.l||h;{for(s in o){if(!(s in i)){U(l,s,o[s],undefined,n,e.h)}}}for(s in i){U(l,s,o[s],i[s],n,e.h)}};const _=(t,o,f,r)=>{const u=o.o[f];let a=0;let d;let h;let y;if(!l){i=true;if(u.p==="slot"){if(e){r.classList.add(e+"-s")}u.h|=u.o?2:1}}if(u.t!==null){d=u.m=qt.createTextNode(u.t)}else if(u.h&1){d=u.m=qt.createTextNode("")}else{if(!c){c=u.p==="svg"}d=u.m=qt.createElementNS(c?p:b,u.h&2?"slot-fb":u.p);if(c&&u.p==="foreignObject"){c=false}{F(null,u,c)}if(m(e)&&d["s-si"]!==e){d.classList.add(d["s-si"]=e)}if(u.o){for(a=0;a<u.o.length;++a){h=_(t,u,a,d);if(h){d.appendChild(h)}}}{if(u.p==="svg"){c=false}else if(d.tagName==="foreignObject"){c=true}}}{d["s-hn"]=s;if(u.h&(2|1)){d["s-sr"]=true;d["s-cr"]=n;d["s-sn"]=u.u||"";y=t&&t.o&&t.o[f];if(y&&y.p===u.p&&t.m){D(t.m,false)}}}return d};const D=(t,e)=>{Vt.h|=1;const n=t.childNodes;for(let t=n.length-1;t>=0;t--){const l=n[t];if(l["s-hn"]!==s&&l["s-ol"]){B(l).insertBefore(l,z(l));l["s-ol"].remove();l["s-ol"]=undefined;i=true}if(e){D(l,e)}}Vt.h&=~1};const H=(t,e,n,l,o,i)=>{let c=t["s-cr"]&&t["s-cr"].parentNode||t;let f;if(c.shadowRoot&&c.tagName===s){c=c.shadowRoot}for(;o<=i;++o){if(l[o]){f=_(null,n,o,t);if(f){l[o].m=f;c.insertBefore(f,z(e))}}}};const q=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.m;Y(e);if(t){{o=true;if(t["s-ol"]){t["s-ol"].remove()}else{D(t,true)}}t.remove()}}}};const I=(t,e,n,s)=>{let l=0;let o=0;let i=0;let c=0;let f=e.length-1;let r=e[0];let u=e[f];let a=s.length-1;let d=s[0];let h=s[a];let p;let b;while(l<=f&&o<=a){if(r==null){r=e[++l]}else if(u==null){u=e[--f]}else if(d==null){d=s[++o]}else if(h==null){h=s[--a]}else if(V(r,d)){G(r,d);r=e[++l];d=s[++o]}else if(V(u,h)){G(u,h);u=e[--f];h=s[--a]}else if(V(r,h)){if(r.p==="slot"||h.p==="slot"){D(r.m.parentNode,false)}G(r,h);t.insertBefore(r.m,u.m.nextSibling);r=e[++l];h=s[--a]}else if(V(u,d)){if(r.p==="slot"||h.p==="slot"){D(u.m.parentNode,false)}G(u,d);t.insertBefore(u.m,r.m);u=e[--f];d=s[++o]}else{i=-1;{for(c=l;c<=f;++c){if(e[c]&&e[c].i!==null&&e[c].i===d.i){i=c;break}}}if(i>=0){b=e[i];if(b.p!==d.p){p=_(e&&e[o],n,i,t)}else{G(b,d);e[i]=undefined;p=b.m}d=s[++o]}else{p=_(e&&e[o],n,o,t);d=s[++o]}if(p){{B(r.m).insertBefore(p,z(r.m))}}}}if(l>f){H(t,s[a+1]==null?null:s[a+1].m,n,s,o,a)}else if(o>a){q(e,l,f)}};const V=(t,e)=>{if(t.p===e.p){if(t.p==="slot"){return t.u===e.u}{return t.i===e.i}}return false};const z=t=>t&&t["s-ol"]||t;const B=t=>(t["s-ol"]?t["s-ol"]:t).parentNode;const G=(t,e)=>{const n=e.m=t.m;const s=t.o;const l=e.o;const o=e.p;const i=e.t;let f;if(i===null){{c=o==="svg"?true:o==="foreignObject"?false:c}{if(o==="slot");else{F(t,e,c)}}if(s!==null&&l!==null){I(n,s,e,l)}else if(l!==null){if(t.t!==null){n.textContent=""}H(n,null,e,l,0,l.length-1)}else if(s!==null){q(s,0,s.length-1)}if(c&&o==="svg"){c=false}}else if(f=n["s-cr"]){f.parentNode.textContent=i}else if(t.t!==i){n.data=i}};const J=t=>{const e=t.childNodes;let n;let s;let l;let o;let i;let c;for(s=0,l=e.length;s<l;s++){n=e[s];if(n.nodeType===1){if(n["s-sr"]){i=n["s-sn"];n.hidden=false;for(o=0;o<l;o++){c=e[o].nodeType;if(e[o]["s-hn"]!==n["s-hn"]||i!==""){if(c===1&&i===e[o].getAttribute("slot")){n.hidden=true;break}}else{if(c===1||c===3&&e[o].textContent.trim()!==""){n.hidden=true;break}}}}J(n)}}};const K=[];const Q=t=>{let e;let n;let s;let l;let i;let c;let f=0;const r=t.childNodes;const u=r.length;for(;f<u;f++){e=r[f];if(e["s-sr"]&&(n=e["s-cr"])&&n.parentNode){s=n.parentNode.childNodes;l=e["s-sn"];for(c=s.length-1;c>=0;c--){n=s[c];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==e["s-hn"]){if(X(n,l)){i=K.find((t=>t.k===n));o=true;n["s-sn"]=n["s-sn"]||l;if(i){i.O=e}else{K.push({O:e,k:n})}if(n["s-sr"]){K.map((t=>{if(X(t.k,n["s-sn"])){i=K.find((t=>t.k===n));if(i&&!t.O){t.O=i.O}}}))}}else if(!K.some((t=>t.k===n))){K.push({k:n})}}}}if(e.nodeType===1){Q(e)}}};const X=(t,e)=>{if(t.nodeType===1){if(t.getAttribute("slot")===null&&e===""){return true}if(t.getAttribute("slot")===e){return true}return false}if(t["s-sn"]===e){return true}return e===""};const Y=t=>{{t.l&&t.l.ref&&t.l.ref(null);t.o&&t.o.map(Y)}};const Z=(t,c)=>{const f=t.$;const r=t.g;const u=t.S||v(null,null);const a=j(c)?c:$(null,null,c);s=f.tagName;if(r.C){a.l=a.l||{};r.C.map((([t,e])=>a.l[e]=f[t]))}a.p=null;a.h|=4;t.S=a;a.m=u.m=f.shadowRoot||f;{e=f["s-sc"]}{n=f["s-cr"];l=(r.h&1)!==0;o=false}G(u,a);{Vt.h|=1;if(i){Q(a.m);let t;let e;let n;let s;let l;let o;let i=0;for(;i<K.length;i++){t=K[i];e=t.k;if(!e["s-ol"]){n=qt.createTextNode("");n["s-nr"]=e;e.parentNode.insertBefore(e["s-ol"]=n,e)}}for(i=0;i<K.length;i++){t=K[i];e=t.k;if(t.O){s=t.O.parentNode;l=t.O.nextSibling;n=e["s-ol"];while(n=n.previousSibling){o=n["s-nr"];if(o&&o["s-sn"]===e["s-sn"]&&s===o.parentNode){o=o.nextSibling;if(!o||!o["s-nr"]){l=o;break}}}if(!l&&s!==e.parentNode||e.nextSibling!==l){if(e!==l){if(!e["s-hn"]&&e["s-ol"]){e["s-hn"]=e["s-ol"].parentNode.nodeName}s.insertBefore(e,l)}}}else{if(e.nodeType===1){e.hidden=true}}}}if(o){J(a.m)}Vt.h&=~1;K.length=0}};const tt=(t,e)=>{if(e&&!t.M&&e["s-p"]){e["s-p"].push(new Promise((e=>t.M=e)))}};const et=(t,e)=>{{t.h|=16}if(t.h&4){t.h|=512;return}tt(t,t.N);const n=()=>nt(t,e);return Zt(n)};const nt=(t,e)=>{const n=r("scheduleUpdate",t.g.j);const s=t.R;let l;if(e){{t.h|=256;if(t.P){t.P.map((([t,e])=>rt(s,t,e)));t.P=null}}{l=rt(s,"componentWillLoad")}}{l=st(l,(()=>rt(s,"componentWillRender")))}n();return st(l,(()=>lt(t,s,e)))};const st=(t,e)=>t instanceof Promise?t.then(e):e();const lt=async(t,e,n)=>{const s=t.$;const l=r("update",t.g.j);const o=s["s-rc"];if(n){T(t)}const i=r("render",t.g.j);{ot(t,e)}if(o){o.map((t=>t()));s["s-rc"]=undefined}i();l();{const e=s["s-p"];const n=()=>it(t);if(e.length===0){n()}else{Promise.all(e).then(n);t.h|=4;e.length=0}}};const ot=(t,e,n)=>{try{e=e.render();{t.h&=~16}{t.h|=2}{{{Z(t,e)}}}}catch(e){At(e,t.$)}return null};const it=t=>{const e=t.g.j;const n=t.$;const s=r("postUpdate",e);const l=t.R;const o=t.N;{rt(l,"componentDidRender")}if(!(t.h&64)){t.h|=64;{ut(n)}{rt(l,"componentDidLoad")}s();{t.T(n);if(!o){ft()}}}else{s()}{t.L(n)}{if(t.M){t.M();t.M=undefined}if(t.h&512){Yt((()=>et(t,false)))}t.h&=~(4|512)}};const ct=t=>{{const e=Tt(t);const n=e.$.isConnected;if(n&&(e.h&(2|16))===2){et(e,false)}return n}};const ft=e=>{{ut(qt.documentElement)}Yt((()=>N(Ht,"appload",{detail:{namespace:t}})))};const rt=(t,e,n)=>{if(t&&t[e]){try{return t[e](n)}catch(t){At(t)}}return undefined};const ut=t=>t.classList.add("hydrated");const at=(t,e)=>Tt(t).U.get(e);const dt=(t,e,n,s)=>{const l=Tt(t);const o=l.$;const i=l.U.get(e);const c=l.h;const f=l.R;n=C(n,s.W[e][0]);const r=Number.isNaN(i)&&Number.isNaN(n);const u=n!==i&&!r;if((!(c&8)||i===undefined)&&u){l.U.set(e,n);if(f){if(s.A&&c&128){const t=s.A[e];if(t){t.map((t=>{try{f[t](n,i,e)}catch(t){At(t,o)}}))}}if((c&(2|16))===2){et(l,false)}}}};const ht=(t,e,n)=>{if(e.W){if(t.watchers){e.A=t.watchers}const s=Object.entries(e.W);const l=t.prototype;s.map((([t,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(l,t,{get(){return at(this,t)},set(n){dt(this,t,n,e)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(l,t,{value(...e){const n=Tt(this);return n.F.then((()=>n.R[t](...e)))}})}}));if(n&1){const n=new Map;l.attributeChangedCallback=function(t,e,s){Vt.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e)){s=this[e];delete this[e]}else if(l.hasOwnProperty(e)&&typeof this[e]==="number"&&this[e]==s){return}this[e]=s===null&&typeof this[e]==="boolean"?false:s}))};t.observedAttributes=s.filter((([t,e])=>e[0]&15)).map((([t,s])=>{const l=s[1]||t;n.set(l,t);if(s[0]&512){e.C.push([t,l])}return l}))}}return t};const pt=async(t,e,n,s,l)=>{if((e.h&32)===0){e.h|=32;{l=_t(n);if(l.then){const t=u();l=await l;t()}if(!l.isProxied){{n.A=l.watchers}ht(l,n,2);l.isProxied=true}const t=r("createInstance",n.j);{e.h|=8}try{new l(e)}catch(t){At(t)}{e.h&=~8}{e.h|=128}t();bt(e.R)}if(l.style){let t=l.style;const e=L(n);if(!Dt.has(e)){const s=r("registerStyles",n.j);P(e,t,!!(n.h&1));s()}}}const o=e.N;const i=()=>et(e,true);if(o&&o["s-rc"]){o["s-rc"].push(i)}else{i()}};const bt=t=>{{rt(t,"connectedCallback")}};const mt=t=>{if((Vt.h&1)===0){const e=Tt(t);const n=e.g;const s=r("connectedCallback",n.j);if(!(e.h&1)){e.h|=1;{if(n.h&(4|8)){yt(t)}}{let n=t;while(n=n.parentNode||n.host){if(n["s-p"]){tt(e,e.N=n);break}}}if(n.W){Object.entries(n.W).map((([e,[n]])=>{if(n&31&&t.hasOwnProperty(e)){const n=t[e];delete t[e];t[e]=n}}))}{pt(t,e,n)}}else{xt(t,e,n._);bt(e.R)}s()}};const yt=t=>{const e=t["s-cr"]=qt.createComment("");e["s-cn"]=true;t.insertBefore(e,t.firstChild)};const wt=t=>{if((Vt.h&1)===0){const e=Tt(t);const n=e.R;{if(e.D){e.D.map((t=>t()));e.D=undefined}}{rt(n,"disconnectedCallback")}}};const $t=t=>{t.__appendChild=t.appendChild;t.appendChild=function(t){const e=t["s-sn"]=jt(t);const n=kt(this.childNodes,e);if(n){const s=Ot(n,e);const l=s[s.length-1];return l.parentNode.insertBefore(t,l.nextSibling)}return this.__appendChild(t)}};const vt=(t,e)=>{if(e.h&2){const e=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(t,"__textContent",e);Object.defineProperty(t,"textContent",{get(){var t;const e=kt(this.childNodes,"");if(((t=e===null||e===void 0?void 0:e.nextSibling)===null||t===void 0?void 0:t.nodeType)===3){return e.nextSibling.textContent}else if(e){return e.textContent}else{return this.__textContent}},set(t){var e;const n=kt(this.childNodes,"");if(((e=n===null||n===void 0?void 0:n.nextSibling)===null||e===void 0?void 0:e.nodeType)===3){n.nextSibling.textContent=t}else if(n){n.textContent=t}else{this.__textContent=t;const e=this["s-cr"];if(e){this.insertBefore(e,this.firstChild)}}}})}};const gt=(t,e)=>{class n extends Array{item(t){return this[t]}}if(e.h&8){const e=t.__lookupGetter__("childNodes");Object.defineProperty(t,"children",{get(){return this.childNodes.map((t=>t.nodeType===1))}});Object.defineProperty(t,"childElementCount",{get(){return t.children.length}});Object.defineProperty(t,"childNodes",{get(){const t=e.call(this);if((Vt.h&1)===0&&Tt(this).h&2){const e=new n;for(let n=0;n<t.length;n++){const s=t[n]["s-nr"];if(s){e.push(s)}}return e}return n.from(t)}})}};const jt=t=>t["s-sn"]||t.nodeType===1&&t.getAttribute("slot")||"";const kt=(t,e)=>{let n=0;let s;for(;n<t.length;n++){s=t[n];if(s["s-sr"]&&s["s-sn"]===e){return s}s=kt(s.childNodes,e);if(s){return s}}return null};const Ot=(t,e)=>{const n=[t];while((t=t.nextSibling)&&t["s-sn"]===e){n.push(t)}return n};const St=(t,e={})=>{var n;const s=r();const l=[];const o=e.exclude||[];const i=Ht.customElements;const c=qt.head;const f=c.querySelector("meta[charset]");const u=qt.createElement("style");const d=[];let h;let p=true;Object.assign(Vt,e);Vt.H=new URL(e.resourcesUrl||"./",qt.baseURI).href;t.map((t=>{t[1].map((e=>{const n={h:e[0],j:e[1],W:e[2],_:e[3]};{n.W=e[2]}{n._=e[3]}{n.C=[]}{n.A={}}const s=n.j;const c=class extends HTMLElement{constructor(t){super(t);t=this;Ut(t,n);if(n.h&1){{{t.attachShadow({mode:"open"})}}}{gt(t,n)}}connectedCallback(){if(h){clearTimeout(h);h=null}if(p){d.push(this)}else{Vt.jmp((()=>mt(this)))}}disconnectedCallback(){Vt.jmp((()=>wt(this)))}componentOnReady(){return Tt(this).q}};{$t(c.prototype)}{vt(c.prototype,n)}n.I=t[0];if(!o.includes(s)&&!i.get(s)){l.push(s);i.define(s,ht(c,n,1))}}))}));{u.innerHTML=l+a;u.setAttribute("data-styles","");const t=(n=Vt.v)!==null&&n!==void 0?n:w(qt);if(t!=null){u.setAttribute("nonce",t)}c.insertBefore(u,f?f.nextSibling:c.firstChild)}p=false;if(d.length){d.map((t=>t.connectedCallback()))}else{{Vt.jmp((()=>h=setTimeout(ft,30)))}}s()};const Ct=(t,e)=>e;const xt=(t,e,n,s)=>{if(n){n.map((([n,s,l])=>{const o=Nt(t,n);const i=Mt(e,l);const c=Rt(n);Vt.ael(o,s,i,c);(e.D=e.D||[]).push((()=>Vt.rel(o,s,i,c)))}))}};const Mt=(t,e)=>n=>{try{{if(t.h&256){t.R[e](n)}else{(t.P=t.P||[]).push([e,n])}}}catch(t){At(t)}};const Nt=(t,e)=>{if(e&8)return Ht;return t};const Rt=t=>(t&2)!==0;const Pt=t=>Vt.v=t;const Et=new WeakMap;const Tt=t=>Et.get(t);const Lt=(t,e)=>Et.set(e.R=t,e);const Ut=(t,e)=>{const n={h:0,$:t,g:e,U:new Map};{n.F=new Promise((t=>n.L=t))}{n.q=new Promise((t=>n.T=t));t["s-p"]=[];t["s-rc"]=[]}xt(t,n,e._);return Et.set(t,n)};const Wt=(t,e)=>e in t;const At=(t,e)=>(0,console.error)(t,e);const Ft=new Map;const _t=(t,e,n)=>{const s=t.j.replace(/-/g,"_");const l=t.I;const o=Ft.get(l);if(o){return o[s]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((t=>{{Ft.set(l,t)}return t[s]}),At)};const Dt=new Map;const Ht=typeof window!=="undefined"?window:{};const qt=Ht.document||{head:{}};const It=Ht.HTMLElement||class{};const Vt={h:0,H:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)};const zt=t=>Promise.resolve(t);const Bt=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const Gt=[];const Jt=[];const Kt=(t,e)=>n=>{t.push(n);if(!f){f=true;if(e&&Vt.h&4){Yt(Xt)}else{Vt.raf(Xt)}}};const Qt=t=>{for(let e=0;e<t.length;e++){try{t[e](performance.now())}catch(t){At(t)}}t.length=0};const Xt=()=>{Qt(Gt);{Qt(Jt);if(f=Gt.length>0){Vt.raf(Xt)}}};const Yt=t=>zt().then(t);const Zt=Kt(Jt,true);export{Ct as F,g as H,It as a,St as b,M as c,ct as f,x as g,$ as h,zt as p,Lt as r,Pt as s};
3
+ //# sourceMappingURL=p-b899b25b.js.map