@siemens/ix 1.0.0-beta.2

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 (703) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/_commonjsHelpers-1a0c346f.js +23 -0
  3. package/dist/cjs/animation-dfe01edc.js +19 -0
  4. package/dist/cjs/anime.es-8822f296.js +1311 -0
  5. package/dist/cjs/base-button-eb1d47db.js +33 -0
  6. package/dist/cjs/default-tree-item-4597cd84.js +22 -0
  7. package/dist/cjs/flip-tile-state-c95639e5.js +18 -0
  8. package/dist/cjs/index-1e4a348f.js +1849 -0
  9. package/dist/cjs/index.cjs.js +96 -0
  10. package/dist/cjs/ix-animated-tab_2.cjs.entry.js +217 -0
  11. package/dist/cjs/ix-application-header.cjs.entry.js +19 -0
  12. package/dist/cjs/ix-basic-navigation.cjs.entry.js +44 -0
  13. package/dist/cjs/ix-blind.cjs.entry.js +89 -0
  14. package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +155 -0
  15. package/dist/cjs/ix-button.cjs.entry.js +50 -0
  16. package/dist/cjs/ix-category-filter.cjs.entry.js +399 -0
  17. package/dist/cjs/ix-chip.cjs.entry.js +47 -0
  18. package/dist/cjs/ix-counter-pill.cjs.entry.js +40 -0
  19. package/dist/cjs/ix-date-picker_2.cjs.entry.js +8881 -0
  20. package/dist/cjs/ix-date-time-card.cjs.entry.js +36 -0
  21. package/dist/cjs/ix-datetime-picker.cjs.entry.js +44 -0
  22. package/dist/cjs/ix-drawer.cjs.entry.js +122 -0
  23. package/dist/cjs/ix-dropdown_2.cjs.entry.js +203 -0
  24. package/dist/cjs/ix-event-list_2.cjs.entry.js +151 -0
  25. package/dist/cjs/ix-expanding-search.cjs.entry.js +91 -0
  26. package/dist/cjs/ix-filter-chip.cjs.entry.js +30 -0
  27. package/dist/cjs/ix-flip-tile_2.cjs.entry.js +79 -0
  28. package/dist/cjs/ix-group_3.cjs.entry.js +174 -0
  29. package/dist/cjs/ix-icon-button.cjs.entry.js +40 -0
  30. package/dist/cjs/ix-icon.cjs.entry.js +33 -0
  31. package/dist/cjs/ix-input-group.cjs.entry.js +40 -0
  32. package/dist/cjs/ix-kpi.cjs.entry.js +50 -0
  33. package/dist/cjs/ix-map-navigation_2.cjs.entry.js +190 -0
  34. package/dist/cjs/ix-menu_9.cjs.entry.js +872 -0
  35. package/dist/cjs/ix-message-bar.cjs.entry.js +58 -0
  36. package/dist/cjs/ix-modal-example.cjs.entry.js +24 -0
  37. package/dist/cjs/ix-modal_2.cjs.entry.js +14 -0
  38. package/dist/cjs/ix-pill.cjs.entry.js +40 -0
  39. package/dist/cjs/ix-select_2.cjs.entry.js +309 -0
  40. package/dist/cjs/ix-spinner.cjs.entry.js +30 -0
  41. package/dist/cjs/ix-split-button_2.cjs.entry.js +114 -0
  42. package/dist/cjs/ix-tab-item.cjs.entry.js +67 -0
  43. package/dist/cjs/ix-tabs.cjs.entry.js +187 -0
  44. package/dist/cjs/ix-tile.cjs.entry.js +27 -0
  45. package/dist/cjs/ix-toast_2.cjs.entry.js +155 -0
  46. package/dist/cjs/ix-toggle.cjs.entry.js +82 -0
  47. package/dist/cjs/ix-tree_2.cjs.entry.js +690 -0
  48. package/dist/cjs/ix-upload.cjs.entry.js +139 -0
  49. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +107 -0
  50. package/dist/cjs/ix-workflow-step.cjs.entry.js +114 -0
  51. package/dist/cjs/ix-workflow-steps.cjs.entry.js +83 -0
  52. package/dist/cjs/loader.cjs.js +21 -0
  53. package/dist/cjs/logical-filter-operator-467e2faf.js +35 -0
  54. package/dist/cjs/modal-5be2b1a3.js +221 -0
  55. package/dist/cjs/modal-utils-5d7bb217.js +42 -0
  56. package/dist/cjs/mutation-observer-29bedada.js +13 -0
  57. package/dist/cjs/my-component.cjs.entry.js +19 -0
  58. package/dist/cjs/popper-d7a0f999.js +1801 -0
  59. package/dist/cjs/rwd.util-482d41d4.js +42 -0
  60. package/dist/cjs/siemens-ix.cjs.js +19 -0
  61. package/dist/cjs/typed-event-8f5a32a2.js +46 -0
  62. package/dist/cjs/upload-file-state-923b2c65.js +17 -0
  63. package/dist/collection/collection-manifest.json +258 -0
  64. package/dist/collection/components/animated-tab/animated-tab.css +14 -0
  65. package/dist/collection/components/animated-tab/animated-tab.js +59 -0
  66. package/dist/collection/components/animated-tabs/animated-tabs.css +158 -0
  67. package/dist/collection/components/animated-tabs/animated-tabs.js +303 -0
  68. package/dist/collection/components/application-header/application-header.css +29 -0
  69. package/dist/collection/components/application-header/application-header.js +45 -0
  70. package/dist/collection/components/basic-navigation/basic-navigation.css +29 -0
  71. package/dist/collection/components/basic-navigation/basic-navigation.js +91 -0
  72. package/dist/collection/components/blind/blind.css +146 -0
  73. package/dist/collection/components/blind/blind.js +152 -0
  74. package/dist/collection/components/breadcrumb/breadcrumb.css +228 -0
  75. package/dist/collection/components/breadcrumb/breadcrumb.js +252 -0
  76. package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +11 -0
  77. package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +59 -0
  78. package/dist/collection/components/button/base-button.js +29 -0
  79. package/dist/collection/components/button/button.css +12 -0
  80. package/dist/collection/components/button/button.js +192 -0
  81. package/dist/collection/components/category-filter/category-filter.css +189 -0
  82. package/dist/collection/components/category-filter/category-filter.js +704 -0
  83. package/dist/collection/components/category-filter/filter-state.js +10 -0
  84. package/dist/collection/components/category-filter/input-state.js +17 -0
  85. package/dist/collection/components/category-filter/logical-filter-operator.js +13 -0
  86. package/dist/collection/components/chip/chip.css +475 -0
  87. package/dist/collection/components/chip/chip.js +197 -0
  88. package/dist/collection/components/counter-pill/counter-pill.css +313 -0
  89. package/dist/collection/components/counter-pill/counter-pill.js +137 -0
  90. package/dist/collection/components/date-picker/date-picker.css +222 -0
  91. package/dist/collection/components/date-picker/date-picker.js +365 -0
  92. package/dist/collection/components/date-time-card/date-time-card.css +49 -0
  93. package/dist/collection/components/date-time-card/date-time-card.js +89 -0
  94. package/dist/collection/components/datetime-picker/datetime-picker.css +35 -0
  95. package/dist/collection/components/datetime-picker/datetime-picker.js +161 -0
  96. package/dist/collection/components/drawer/drawer.css +78 -0
  97. package/dist/collection/components/drawer/drawer.js +300 -0
  98. package/dist/collection/components/dropdown/dropdown.css +536 -0
  99. package/dist/collection/components/dropdown/dropdown.js +392 -0
  100. package/dist/collection/components/dropdown-item/dropdown-item.css +61 -0
  101. package/dist/collection/components/dropdown-item/dropdown-item.js +187 -0
  102. package/dist/collection/components/event-list/event-list.css +58 -0
  103. package/dist/collection/components/event-list/event-list.js +197 -0
  104. package/dist/collection/components/event-list-item/event-list-item.css +109 -0
  105. package/dist/collection/components/event-list-item/event-list-item.js +162 -0
  106. package/dist/collection/components/expanding-search/expanding-search.css +124 -0
  107. package/dist/collection/components/expanding-search/expanding-search.js +177 -0
  108. package/dist/collection/components/filter-chip/filter-chip.css +82 -0
  109. package/dist/collection/components/filter-chip/filter-chip.js +74 -0
  110. package/dist/collection/components/flip-tile/flip-tile-state.js +16 -0
  111. package/dist/collection/components/flip-tile/flip-tile.css +143 -0
  112. package/dist/collection/components/flip-tile/flip-tile.js +125 -0
  113. package/dist/collection/components/flip-tile-content/flip-tile-content.css +12 -0
  114. package/dist/collection/components/flip-tile-content/flip-tile-content.js +23 -0
  115. package/dist/collection/components/group/group.css +170 -0
  116. package/dist/collection/components/group/group.js +329 -0
  117. package/dist/collection/components/group-dropdown-item/group-dropdown-item.css +11 -0
  118. package/dist/collection/components/group-dropdown-item/group-dropdown-item.js +60 -0
  119. package/dist/collection/components/group-item/group-item.css +116 -0
  120. package/dist/collection/components/group-item/group-item.js +200 -0
  121. package/dist/collection/components/icon/icon.css +45 -0
  122. package/dist/collection/components/icon/icon.js +91 -0
  123. package/dist/collection/components/icon-button/icon-button.js +242 -0
  124. package/dist/collection/components/input-group/input-group.css +27 -0
  125. package/dist/collection/components/input-group/input-group.js +48 -0
  126. package/dist/collection/components/kpi/kpi.css +131 -0
  127. package/dist/collection/components/kpi/kpi.js +151 -0
  128. package/dist/collection/components/map-navigation/map-navigation.css +161 -0
  129. package/dist/collection/components/map-navigation/map-navigation.js +355 -0
  130. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.css +237 -0
  131. package/dist/collection/components/map-navigation-overlay/map-navigation-overlay.js +105 -0
  132. package/dist/collection/components/menu/menu.css +128 -0
  133. package/dist/collection/components/menu/menu.js +969 -0
  134. package/dist/collection/components/menu-about/menu-about.css +207 -0
  135. package/dist/collection/components/menu-about/menu-about.js +188 -0
  136. package/dist/collection/components/menu-about-item/menu-about-item.css +12 -0
  137. package/dist/collection/components/menu-about-item/menu-about-item.js +42 -0
  138. package/dist/collection/components/menu-about-news/menu-about-news.css +99 -0
  139. package/dist/collection/components/menu-about-news/menu-about-news.js +204 -0
  140. package/dist/collection/components/menu-avatar/menu-avatar.css +91 -0
  141. package/dist/collection/components/menu-avatar/menu-avatar.js +136 -0
  142. package/dist/collection/components/menu-avatar-item/menu-avatar-item.css +12 -0
  143. package/dist/collection/components/menu-avatar-item/menu-avatar-item.js +79 -0
  144. package/dist/collection/components/menu-item/menu-item.css +140 -0
  145. package/dist/collection/components/menu-item/menu-item.js +166 -0
  146. package/dist/collection/components/menu-settings/menu-settings.css +204 -0
  147. package/dist/collection/components/menu-settings/menu-settings.js +151 -0
  148. package/dist/collection/components/menu-settings-item/menu-settings-item.css +13 -0
  149. package/dist/collection/components/menu-settings-item/menu-settings-item.js +42 -0
  150. package/dist/collection/components/message-bar/message-bar.css +68 -0
  151. package/dist/collection/components/message-bar/message-bar.js +125 -0
  152. package/dist/collection/components/modal/modal-utils.js +36 -0
  153. package/dist/collection/components/modal/modal.css +96 -0
  154. package/dist/collection/components/modal/modal.js +540 -0
  155. package/dist/collection/components/modal-container/modal-container.css +14 -0
  156. package/dist/collection/components/modal-container/modal-container.js +107 -0
  157. package/dist/collection/components/my-component/example-modal.js +31 -0
  158. package/dist/collection/components/my-component/my-component.css +34 -0
  159. package/dist/collection/components/my-component/my-component.js +22 -0
  160. package/dist/collection/components/pill/pill.css +269 -0
  161. package/dist/collection/components/pill/pill.js +155 -0
  162. package/dist/collection/components/select/select.css +176 -0
  163. package/dist/collection/components/select/select.js +509 -0
  164. package/dist/collection/components/select-item/select-item.css +14 -0
  165. package/dist/collection/components/select-item/select-item.js +169 -0
  166. package/dist/collection/components/spinner/spinner.css +42 -0
  167. package/dist/collection/components/spinner/spinner.js +137 -0
  168. package/dist/collection/components/split-button/split-button.css +11 -0
  169. package/dist/collection/components/split-button/split-button.js +310 -0
  170. package/dist/collection/components/split-button-item/split-button-item.css +12 -0
  171. package/dist/collection/components/split-button-item/split-button-item.js +79 -0
  172. package/dist/collection/components/tab-item/tab-item.css +195 -0
  173. package/dist/collection/components/tab-item/tab-item.js +219 -0
  174. package/dist/collection/components/tabs/tabs.css +84 -0
  175. package/dist/collection/components/tabs/tabs.js +305 -0
  176. package/dist/collection/components/tile/tile.css +92 -0
  177. package/dist/collection/components/tile/tile.js +60 -0
  178. package/dist/collection/components/time-picker/time-picker.css +94 -0
  179. package/dist/collection/components/time-picker/time-picker.js +274 -0
  180. package/dist/collection/components/toast/toast-container.js +170 -0
  181. package/dist/collection/components/toast/toast-utils.js +40 -0
  182. package/dist/collection/components/toast/toast.css +110 -0
  183. package/dist/collection/components/toast/toast.js +232 -0
  184. package/dist/collection/components/toggle/toggle.css +226 -0
  185. package/dist/collection/components/toggle/toggle.js +263 -0
  186. package/dist/collection/components/tree/tree-model.js +9 -0
  187. package/dist/collection/components/tree/tree.css +12 -0
  188. package/dist/collection/components/tree/tree.js +296 -0
  189. package/dist/collection/components/tree-item/default-tree-item.js +18 -0
  190. package/dist/collection/components/tree-item/tree-item.css +80 -0
  191. package/dist/collection/components/tree-item/tree-item.js +124 -0
  192. package/dist/collection/components/upload/upload-file-state.js +15 -0
  193. package/dist/collection/components/upload/upload.css +120 -0
  194. package/dist/collection/components/upload/upload.js +413 -0
  195. package/dist/collection/components/utils/animation.js +15 -0
  196. package/dist/collection/components/utils/button-variants.js +9 -0
  197. package/dist/collection/components/utils/mutation-observer.js +9 -0
  198. package/dist/collection/components/utils/notification-color.js +9 -0
  199. package/dist/collection/components/utils/popover.util.js +33 -0
  200. package/dist/collection/components/utils/rwd.util.js +37 -0
  201. package/dist/collection/components/utils/toggle-theme.js +24 -0
  202. package/dist/collection/components/utils/typed-event.js +42 -0
  203. package/dist/collection/components/validation-tooltip/validation-tooltip.css +235 -0
  204. package/dist/collection/components/validation-tooltip/validation-tooltip.js +167 -0
  205. package/dist/collection/components/workflow-step/workflow-step.css +131 -0
  206. package/dist/collection/components/workflow-step/workflow-step.js +249 -0
  207. package/dist/collection/components/workflow-steps/workflow-steps.css +29 -0
  208. package/dist/collection/components/workflow-steps/workflow-steps.js +182 -0
  209. package/dist/collection/env.js +9 -0
  210. package/dist/collection/exports.js +13 -0
  211. package/dist/collection/index.js +16 -0
  212. package/dist/collection/utils/test/index.js +9 -0
  213. package/dist/collection/utils/test/page.js +29 -0
  214. package/dist/components/_commonjsHelpers.js +19 -0
  215. package/dist/components/animation.js +17 -0
  216. package/dist/components/anime.es.js +1309 -0
  217. package/dist/components/application-header.js +32 -0
  218. package/dist/components/base-button.js +31 -0
  219. package/dist/components/button.js +68 -0
  220. package/dist/components/date-picker.js +268 -0
  221. package/dist/components/date-time-card.js +49 -0
  222. package/dist/components/default-tree-item.js +20 -0
  223. package/dist/components/dropdown-item.js +73 -0
  224. package/dist/components/dropdown.js +181 -0
  225. package/dist/components/filter-chip.js +48 -0
  226. package/dist/components/flip-tile-state.js +18 -0
  227. package/dist/components/group-item.js +63 -0
  228. package/dist/components/icon-button.js +68 -0
  229. package/dist/components/icon.js +47 -0
  230. package/dist/components/index.d.ts +26 -0
  231. package/dist/components/index.js +62 -0
  232. package/dist/components/ix-animated-tab.d.ts +11 -0
  233. package/dist/components/ix-animated-tab.js +35 -0
  234. package/dist/components/ix-animated-tabs.d.ts +11 -0
  235. package/dist/components/ix-animated-tabs.js +229 -0
  236. package/dist/components/ix-application-header.d.ts +11 -0
  237. package/dist/components/ix-application-header.js +6 -0
  238. package/dist/components/ix-basic-navigation.d.ts +11 -0
  239. package/dist/components/ix-basic-navigation.js +66 -0
  240. package/dist/components/ix-blind.d.ts +11 -0
  241. package/dist/components/ix-blind.js +105 -0
  242. package/dist/components/ix-breadcrumb-item.d.ts +11 -0
  243. package/dist/components/ix-breadcrumb-item.js +35 -0
  244. package/dist/components/ix-breadcrumb.d.ts +11 -0
  245. package/dist/components/ix-breadcrumb.js +180 -0
  246. package/dist/components/ix-button.d.ts +11 -0
  247. package/dist/components/ix-button.js +6 -0
  248. package/dist/components/ix-category-filter.d.ts +11 -0
  249. package/dist/components/ix-category-filter.js +447 -0
  250. package/dist/components/ix-chip.d.ts +11 -0
  251. package/dist/components/ix-chip.js +74 -0
  252. package/dist/components/ix-counter-pill.d.ts +11 -0
  253. package/dist/components/ix-counter-pill.js +59 -0
  254. package/dist/components/ix-date-picker.d.ts +11 -0
  255. package/dist/components/ix-date-picker.js +6 -0
  256. package/dist/components/ix-date-time-card.d.ts +11 -0
  257. package/dist/components/ix-date-time-card.js +6 -0
  258. package/dist/components/ix-datetime-picker.d.ts +11 -0
  259. package/dist/components/ix-datetime-picker.js +105 -0
  260. package/dist/components/ix-drawer.d.ts +11 -0
  261. package/dist/components/ix-drawer.js +155 -0
  262. package/dist/components/ix-dropdown-item.d.ts +11 -0
  263. package/dist/components/ix-dropdown-item.js +6 -0
  264. package/dist/components/ix-dropdown.d.ts +11 -0
  265. package/dist/components/ix-dropdown.js +6 -0
  266. package/dist/components/ix-event-list-item.d.ts +11 -0
  267. package/dist/components/ix-event-list-item.js +59 -0
  268. package/dist/components/ix-event-list.d.ts +11 -0
  269. package/dist/components/ix-event-list.js +135 -0
  270. package/dist/components/ix-expanding-search.d.ts +11 -0
  271. package/dist/components/ix-expanding-search.js +123 -0
  272. package/dist/components/ix-filter-chip.d.ts +11 -0
  273. package/dist/components/ix-filter-chip.js +6 -0
  274. package/dist/components/ix-flip-tile-content.d.ts +11 -0
  275. package/dist/components/ix-flip-tile-content.js +33 -0
  276. package/dist/components/ix-flip-tile.d.ts +11 -0
  277. package/dist/components/ix-flip-tile.js +96 -0
  278. package/dist/components/ix-group-dropdown-item.d.ts +11 -0
  279. package/dist/components/ix-group-dropdown-item.js +47 -0
  280. package/dist/components/ix-group-item.d.ts +11 -0
  281. package/dist/components/ix-group-item.js +6 -0
  282. package/dist/components/ix-group.d.ts +11 -0
  283. package/dist/components/ix-group.js +174 -0
  284. package/dist/components/ix-icon-button.d.ts +11 -0
  285. package/dist/components/ix-icon-button.js +6 -0
  286. package/dist/components/ix-icon.d.ts +11 -0
  287. package/dist/components/ix-icon.js +6 -0
  288. package/dist/components/ix-input-group.d.ts +11 -0
  289. package/dist/components/ix-input-group.js +53 -0
  290. package/dist/components/ix-kpi.d.ts +11 -0
  291. package/dist/components/ix-kpi.js +75 -0
  292. package/dist/components/ix-map-navigation-overlay.d.ts +11 -0
  293. package/dist/components/ix-map-navigation-overlay.js +6 -0
  294. package/dist/components/ix-map-navigation.d.ts +11 -0
  295. package/dist/components/ix-map-navigation.js +227 -0
  296. package/dist/components/ix-menu-about-item.d.ts +11 -0
  297. package/dist/components/ix-menu-about-item.js +34 -0
  298. package/dist/components/ix-menu-about-news.d.ts +11 -0
  299. package/dist/components/ix-menu-about-news.js +78 -0
  300. package/dist/components/ix-menu-about.d.ts +11 -0
  301. package/dist/components/ix-menu-about.js +6 -0
  302. package/dist/components/ix-menu-avatar-item.d.ts +11 -0
  303. package/dist/components/ix-menu-avatar-item.js +6 -0
  304. package/dist/components/ix-menu-avatar.d.ts +11 -0
  305. package/dist/components/ix-menu-avatar.js +83 -0
  306. package/dist/components/ix-menu-item.d.ts +11 -0
  307. package/dist/components/ix-menu-item.js +6 -0
  308. package/dist/components/ix-menu-settings-item.d.ts +11 -0
  309. package/dist/components/ix-menu-settings-item.js +34 -0
  310. package/dist/components/ix-menu-settings.d.ts +11 -0
  311. package/dist/components/ix-menu-settings.js +107 -0
  312. package/dist/components/ix-menu.d.ts +11 -0
  313. package/dist/components/ix-menu.js +601 -0
  314. package/dist/components/ix-message-bar.d.ts +11 -0
  315. package/dist/components/ix-message-bar.js +88 -0
  316. package/dist/components/ix-modal-container.d.ts +11 -0
  317. package/dist/components/ix-modal-container.js +6 -0
  318. package/dist/components/ix-modal-example.d.ts +11 -0
  319. package/dist/components/ix-modal-example.js +67 -0
  320. package/dist/components/ix-modal.d.ts +11 -0
  321. package/dist/components/ix-modal.js +6 -0
  322. package/dist/components/ix-pill.d.ts +11 -0
  323. package/dist/components/ix-pill.js +66 -0
  324. package/dist/components/ix-select-item.d.ts +11 -0
  325. package/dist/components/ix-select-item.js +6 -0
  326. package/dist/components/ix-select.d.ts +11 -0
  327. package/dist/components/ix-select.js +339 -0
  328. package/dist/components/ix-spinner.d.ts +11 -0
  329. package/dist/components/ix-spinner.js +6 -0
  330. package/dist/components/ix-split-button-item.d.ts +11 -0
  331. package/dist/components/ix-split-button-item.js +49 -0
  332. package/dist/components/ix-split-button.d.ts +11 -0
  333. package/dist/components/ix-split-button.js +135 -0
  334. package/dist/components/ix-tab-item.d.ts +11 -0
  335. package/dist/components/ix-tab-item.js +6 -0
  336. package/dist/components/ix-tabs.d.ts +11 -0
  337. package/dist/components/ix-tabs.js +6 -0
  338. package/dist/components/ix-tile.d.ts +11 -0
  339. package/dist/components/ix-tile.js +42 -0
  340. package/dist/components/ix-time-picker.d.ts +11 -0
  341. package/dist/components/ix-time-picker.js +6 -0
  342. package/dist/components/ix-toast-container.d.ts +11 -0
  343. package/dist/components/ix-toast-container.js +110 -0
  344. package/dist/components/ix-toast.d.ts +11 -0
  345. package/dist/components/ix-toast.js +6 -0
  346. package/dist/components/ix-toggle.d.ts +11 -0
  347. package/dist/components/ix-toggle.js +104 -0
  348. package/dist/components/ix-tree-item.d.ts +11 -0
  349. package/dist/components/ix-tree-item.js +6 -0
  350. package/dist/components/ix-tree.d.ts +11 -0
  351. package/dist/components/ix-tree.js +694 -0
  352. package/dist/components/ix-upload.d.ts +11 -0
  353. package/dist/components/ix-upload.js +178 -0
  354. package/dist/components/ix-validation-tooltip.d.ts +11 -0
  355. package/dist/components/ix-validation-tooltip.js +124 -0
  356. package/dist/components/ix-workflow-step.d.ts +11 -0
  357. package/dist/components/ix-workflow-step.js +142 -0
  358. package/dist/components/ix-workflow-steps.d.ts +11 -0
  359. package/dist/components/ix-workflow-steps.js +101 -0
  360. package/dist/components/logical-filter-operator.js +33 -0
  361. package/dist/components/luxon.js +8584 -0
  362. package/dist/components/map-navigation-overlay.js +53 -0
  363. package/dist/components/menu-about.js +120 -0
  364. package/dist/components/menu-avatar-item.js +46 -0
  365. package/dist/components/menu-item.js +65 -0
  366. package/dist/components/modal-container.js +99 -0
  367. package/dist/components/modal-utils.js +38 -0
  368. package/dist/components/modal.js +189 -0
  369. package/dist/components/mutation-observer.js +11 -0
  370. package/dist/components/my-component.d.ts +11 -0
  371. package/dist/components/my-component.js +32 -0
  372. package/dist/components/popover.util.js +36 -0
  373. package/dist/components/popper.js +1799 -0
  374. package/dist/components/rwd.util.js +39 -0
  375. package/dist/components/select-item.js +71 -0
  376. package/dist/components/spinner.js +43 -0
  377. package/dist/components/tab-item.js +86 -0
  378. package/dist/components/tabs.js +207 -0
  379. package/dist/components/time-picker.js +140 -0
  380. package/dist/components/toast.js +119 -0
  381. package/dist/components/tree-item.js +52 -0
  382. package/dist/components/typed-event.js +44 -0
  383. package/dist/components/upload-file-state.js +17 -0
  384. package/dist/esm/_commonjsHelpers-4bc7200a.js +19 -0
  385. package/dist/esm/animation-b667a4c4.js +17 -0
  386. package/dist/esm/anime.es-185e9087.js +1309 -0
  387. package/dist/esm/base-button-7bfb747f.js +31 -0
  388. package/dist/esm/default-tree-item-638c435a.js +20 -0
  389. package/dist/esm/flip-tile-state-28a1f8ce.js +18 -0
  390. package/dist/esm/index-55cfd20d.js +1819 -0
  391. package/dist/esm/index.js +64 -0
  392. package/dist/esm/ix-animated-tab_2.entry.js +212 -0
  393. package/dist/esm/ix-application-header.entry.js +15 -0
  394. package/dist/esm/ix-basic-navigation.entry.js +40 -0
  395. package/dist/esm/ix-blind.entry.js +85 -0
  396. package/dist/esm/ix-breadcrumb_2.entry.js +150 -0
  397. package/dist/esm/ix-button.entry.js +46 -0
  398. package/dist/esm/ix-category-filter.entry.js +395 -0
  399. package/dist/esm/ix-chip.entry.js +43 -0
  400. package/dist/esm/ix-counter-pill.entry.js +36 -0
  401. package/dist/esm/ix-date-picker_2.entry.js +8876 -0
  402. package/dist/esm/ix-date-time-card.entry.js +32 -0
  403. package/dist/esm/ix-datetime-picker.entry.js +40 -0
  404. package/dist/esm/ix-drawer.entry.js +118 -0
  405. package/dist/esm/ix-dropdown_2.entry.js +198 -0
  406. package/dist/esm/ix-event-list_2.entry.js +146 -0
  407. package/dist/esm/ix-expanding-search.entry.js +87 -0
  408. package/dist/esm/ix-filter-chip.entry.js +26 -0
  409. package/dist/esm/ix-flip-tile_2.entry.js +74 -0
  410. package/dist/esm/ix-group_3.entry.js +168 -0
  411. package/dist/esm/ix-icon-button.entry.js +36 -0
  412. package/dist/esm/ix-icon.entry.js +29 -0
  413. package/dist/esm/ix-input-group.entry.js +36 -0
  414. package/dist/esm/ix-kpi.entry.js +46 -0
  415. package/dist/esm/ix-map-navigation_2.entry.js +185 -0
  416. package/dist/esm/ix-menu_9.entry.js +860 -0
  417. package/dist/esm/ix-message-bar.entry.js +54 -0
  418. package/dist/esm/ix-modal-example.entry.js +20 -0
  419. package/dist/esm/ix-modal_2.entry.js +5 -0
  420. package/dist/esm/ix-pill.entry.js +36 -0
  421. package/dist/esm/ix-select_2.entry.js +304 -0
  422. package/dist/esm/ix-spinner.entry.js +26 -0
  423. package/dist/esm/ix-split-button_2.entry.js +109 -0
  424. package/dist/esm/ix-tab-item.entry.js +63 -0
  425. package/dist/esm/ix-tabs.entry.js +183 -0
  426. package/dist/esm/ix-tile.entry.js +23 -0
  427. package/dist/esm/ix-toast_2.entry.js +150 -0
  428. package/dist/esm/ix-toggle.entry.js +78 -0
  429. package/dist/esm/ix-tree_2.entry.js +685 -0
  430. package/dist/esm/ix-upload.entry.js +135 -0
  431. package/dist/esm/ix-validation-tooltip.entry.js +103 -0
  432. package/dist/esm/ix-workflow-step.entry.js +110 -0
  433. package/dist/esm/ix-workflow-steps.entry.js +79 -0
  434. package/dist/esm/loader.js +17 -0
  435. package/dist/esm/logical-filter-operator-1bf83315.js +33 -0
  436. package/dist/esm/modal-8ed87a6c.js +218 -0
  437. package/dist/esm/modal-utils-ec39c1bc.js +38 -0
  438. package/dist/esm/mutation-observer-379959bb.js +11 -0
  439. package/dist/esm/my-component.entry.js +15 -0
  440. package/dist/esm/polyfills/core-js.js +11 -0
  441. package/dist/esm/polyfills/css-shim.js +1 -0
  442. package/dist/esm/polyfills/dom.js +79 -0
  443. package/dist/esm/polyfills/es5-html-element.js +1 -0
  444. package/dist/esm/polyfills/index.js +34 -0
  445. package/dist/esm/polyfills/system.js +6 -0
  446. package/dist/esm/popper-42db9fbd.js +1799 -0
  447. package/dist/esm/rwd.util-33a69d24.js +39 -0
  448. package/dist/esm/siemens-ix.js +17 -0
  449. package/dist/esm/typed-event-dd6c83dd.js +44 -0
  450. package/dist/esm/upload-file-state-631bb8a2.js +17 -0
  451. package/dist/index.cjs.js +1 -0
  452. package/dist/index.js +1 -0
  453. package/dist/siemens-ix/index.esm.js +1 -0
  454. package/dist/siemens-ix/p-03d95feb.entry.js +1 -0
  455. package/dist/siemens-ix/p-0a12b3df.js +1 -0
  456. package/dist/siemens-ix/p-0bf04780.js +1 -0
  457. package/dist/siemens-ix/p-0e315bd7.entry.js +1 -0
  458. package/dist/siemens-ix/p-1c82637e.js +1 -0
  459. package/dist/siemens-ix/p-1d30454e.js +1 -0
  460. package/dist/siemens-ix/p-235606b2.entry.js +1 -0
  461. package/dist/siemens-ix/p-240d22b6.entry.js +1 -0
  462. package/dist/siemens-ix/p-2cda7278.entry.js +1 -0
  463. package/dist/siemens-ix/p-2ce29bcd.entry.js +1 -0
  464. package/dist/siemens-ix/p-301ddeb7.js +1 -0
  465. package/dist/siemens-ix/p-3613be96.entry.js +1 -0
  466. package/dist/siemens-ix/p-37417714.js +1 -0
  467. package/dist/siemens-ix/p-3f809fb3.entry.js +1 -0
  468. package/dist/siemens-ix/p-40842bea.entry.js +1 -0
  469. package/dist/siemens-ix/p-47ea9884.js +1 -0
  470. package/dist/siemens-ix/p-4ffec6ae.entry.js +1 -0
  471. package/dist/siemens-ix/p-504927a0.entry.js +1 -0
  472. package/dist/siemens-ix/p-5990f0cb.entry.js +1 -0
  473. package/dist/siemens-ix/p-59c81e2a.entry.js +1 -0
  474. package/dist/siemens-ix/p-5a1dcc74.js +1 -0
  475. package/dist/siemens-ix/p-5f9f25ef.entry.js +1 -0
  476. package/dist/siemens-ix/p-61b032bf.entry.js +1 -0
  477. package/dist/siemens-ix/p-662d756f.entry.js +1 -0
  478. package/dist/siemens-ix/p-6726f740.entry.js +1 -0
  479. package/dist/siemens-ix/p-67c2bca6.entry.js +1 -0
  480. package/dist/siemens-ix/p-6f625f0e.js +1 -0
  481. package/dist/siemens-ix/p-78df1e46.entry.js +1 -0
  482. package/dist/siemens-ix/p-7a4c744e.entry.js +1 -0
  483. package/dist/siemens-ix/p-7d667916.entry.js +1 -0
  484. package/dist/siemens-ix/p-7ec8a00e.entry.js +1 -0
  485. package/dist/siemens-ix/p-7f5a2e3c.entry.js +1 -0
  486. package/dist/siemens-ix/p-810b5232.js +1 -0
  487. package/dist/siemens-ix/p-81e46337.entry.js +1 -0
  488. package/dist/siemens-ix/p-8239c3a1.entry.js +1 -0
  489. package/dist/siemens-ix/p-9d9b8ad1.entry.js +1 -0
  490. package/dist/siemens-ix/p-ab715295.entry.js +1 -0
  491. package/dist/siemens-ix/p-b4003026.entry.js +1 -0
  492. package/dist/siemens-ix/p-bbcee9fb.entry.js +1 -0
  493. package/dist/siemens-ix/p-bd15d8ca.entry.js +1 -0
  494. package/dist/siemens-ix/p-bdd294d2.js +1 -0
  495. package/dist/siemens-ix/p-be1ec062.entry.js +1 -0
  496. package/dist/siemens-ix/p-c3738ffc.entry.js +1 -0
  497. package/dist/siemens-ix/p-ca71538c.entry.js +1 -0
  498. package/dist/siemens-ix/p-caf856f2.entry.js +1 -0
  499. package/dist/siemens-ix/p-cde8f20e.entry.js +1 -0
  500. package/dist/siemens-ix/p-d23706a7.js +1 -0
  501. package/dist/siemens-ix/p-d31bf6db.entry.js +1 -0
  502. package/dist/siemens-ix/p-da2cae32.js +1 -0
  503. package/dist/siemens-ix/p-df43662b.entry.js +1 -0
  504. package/dist/siemens-ix/p-e1f54836.entry.js +1 -0
  505. package/dist/siemens-ix/p-e4d1a964.entry.js +1 -0
  506. package/dist/siemens-ix/p-f2636faf.entry.js +1 -0
  507. package/dist/siemens-ix/p-f6da7e07.entry.js +1 -0
  508. package/dist/siemens-ix/p-f86fcdf4.js +1 -0
  509. package/dist/siemens-ix/p-fbe40498.js +1 -0
  510. package/dist/siemens-ix/p-fe020fa3.entry.js +1 -0
  511. package/dist/siemens-ix/p-fe5db4d1.entry.js +1 -0
  512. package/dist/siemens-ix/siemens-ix.css +19243 -0
  513. package/dist/siemens-ix/siemens-ix.esm.js +1 -0
  514. package/dist/types/components/animated-tab/animated-tab.d.ts +11 -0
  515. package/dist/types/components/animated-tabs/animated-tabs.d.ts +44 -0
  516. package/dist/types/components/application-header/application-header.d.ts +7 -0
  517. package/dist/types/components/basic-navigation/basic-navigation.d.ts +16 -0
  518. package/dist/types/components/blind/blind.d.ts +26 -0
  519. package/dist/types/components/breadcrumb/breadcrumb.d.ts +48 -0
  520. package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +11 -0
  521. package/dist/types/components/button/base-button.d.ts +13 -0
  522. package/dist/types/components/button/button.d.ts +34 -0
  523. package/dist/types/components/category-filter/category-filter.d.ts +129 -0
  524. package/dist/types/components/category-filter/filter-state.d.ts +9 -0
  525. package/dist/types/components/category-filter/input-state.d.ts +6 -0
  526. package/dist/types/components/category-filter/logical-filter-operator.d.ts +4 -0
  527. package/dist/types/components/chip/chip.d.ts +38 -0
  528. package/dist/types/components/counter-pill/counter-pill.d.ts +24 -0
  529. package/dist/types/components/date-picker/date-picker.d.ts +56 -0
  530. package/dist/types/components/date-time-card/date-time-card.d.ts +14 -0
  531. package/dist/types/components/datetime-picker/datetime-picker.d.ts +31 -0
  532. package/dist/types/components/drawer/drawer.d.ts +49 -0
  533. package/dist/types/components/dropdown/dropdown.d.ts +70 -0
  534. package/dist/types/components/dropdown-item/dropdown-item.d.ts +33 -0
  535. package/dist/types/components/event-list/event-list.d.ts +31 -0
  536. package/dist/types/components/event-list-item/event-list-item.d.ts +34 -0
  537. package/dist/types/components/expanding-search/expanding-search.d.ts +31 -0
  538. package/dist/types/components/filter-chip/filter-chip.d.ts +14 -0
  539. package/dist/types/components/flip-tile/flip-tile-state.d.ts +7 -0
  540. package/dist/types/components/flip-tile/flip-tile.d.ts +22 -0
  541. package/dist/types/components/flip-tile-content/flip-tile-content.d.ts +3 -0
  542. package/dist/types/components/group/group.d.ts +59 -0
  543. package/dist/types/components/group-dropdown-item/group-dropdown-item.d.ts +11 -0
  544. package/dist/types/components/group-item/group-item.d.ts +39 -0
  545. package/dist/types/components/icon/icon.d.ts +15 -0
  546. package/dist/types/components/icon-button/icon-button.d.ts +51 -0
  547. package/dist/types/components/input-group/input-group.d.ts +5 -0
  548. package/dist/types/components/kpi/kpi.d.ts +25 -0
  549. package/dist/types/components/map-navigation/map-navigation.d.ts +59 -0
  550. package/dist/types/components/map-navigation-overlay/map-navigation-overlay.d.ts +20 -0
  551. package/dist/types/components/menu/menu.d.ts +143 -0
  552. package/dist/types/components/menu-about/menu-about.d.ts +34 -0
  553. package/dist/types/components/menu-about-item/menu-about-item.d.ts +7 -0
  554. package/dist/types/components/menu-about-news/menu-about-news.d.ts +36 -0
  555. package/dist/types/components/menu-avatar/menu-avatar.d.ts +26 -0
  556. package/dist/types/components/menu-avatar-item/menu-avatar-item.d.ts +17 -0
  557. package/dist/types/components/menu-item/menu-item.d.ts +31 -0
  558. package/dist/types/components/menu-settings/menu-settings.d.ts +27 -0
  559. package/dist/types/components/menu-settings-item/menu-settings-item.d.ts +7 -0
  560. package/dist/types/components/message-bar/message-bar.d.ts +23 -0
  561. package/dist/types/components/modal/modal-utils.d.ts +26 -0
  562. package/dist/types/components/modal/modal.d.ts +99 -0
  563. package/dist/types/components/modal-container/modal-container.d.ts +15 -0
  564. package/dist/types/components/my-component/example-modal.d.ts +6 -0
  565. package/dist/types/components/my-component/my-component.d.ts +3 -0
  566. package/dist/types/components/pill/pill.d.ts +28 -0
  567. package/dist/types/components/select/select.d.ts +83 -0
  568. package/dist/types/components/select-item/select-item.d.ts +31 -0
  569. package/dist/types/components/spinner/spinner.d.ts +11 -0
  570. package/dist/types/components/split-button/split-button.d.ts +57 -0
  571. package/dist/types/components/split-button-item/split-button-item.d.ts +17 -0
  572. package/dist/types/components/tab-item/tab-item.d.ts +36 -0
  573. package/dist/types/components/tabs/tabs.d.ts +46 -0
  574. package/dist/types/components/tile/tile.d.ts +7 -0
  575. package/dist/types/components/time-picker/time-picker.d.ts +46 -0
  576. package/dist/types/components/toast/toast-container.d.ts +25 -0
  577. package/dist/types/components/toast/toast-utils.d.ts +33 -0
  578. package/dist/types/components/toast/toast.d.ts +39 -0
  579. package/dist/types/components/toggle/toggle.d.ts +45 -0
  580. package/dist/types/components/tree/tree-model.d.ts +17 -0
  581. package/dist/types/components/tree/tree.d.ts +44 -0
  582. package/dist/types/components/tree-item/default-tree-item.d.ts +6 -0
  583. package/dist/types/components/tree-item/tree-item.d.ts +25 -0
  584. package/dist/types/components/upload/upload-file-state.d.ts +6 -0
  585. package/dist/types/components/upload/upload.d.ts +70 -0
  586. package/dist/types/components/utils/animation.d.ts +7 -0
  587. package/dist/types/components/utils/button-variants.d.ts +1 -0
  588. package/dist/types/components/utils/mutation-observer.d.ts +1 -0
  589. package/dist/types/components/utils/notification-color.d.ts +4 -0
  590. package/dist/types/components/utils/popover.util.d.ts +9 -0
  591. package/dist/types/components/utils/rwd.util.d.ts +2 -0
  592. package/dist/types/components/utils/toggle-theme.d.ts +1 -0
  593. package/dist/types/components/utils/typed-event.d.ts +15 -0
  594. package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +31 -0
  595. package/dist/types/components/workflow-step/workflow-step.d.ts +35 -0
  596. package/dist/types/components/workflow-steps/workflow-steps.d.ts +29 -0
  597. package/dist/types/components.d.ts +3453 -0
  598. package/dist/types/env.d.ts +1 -0
  599. package/dist/types/exports.d.ts +5 -0
  600. package/dist/types/index.d.ts +11 -0
  601. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  602. package/dist/types/utils/test/index.d.ts +1 -0
  603. package/dist/types/utils/test/page.d.ts +3 -0
  604. package/loader/cdn.js +3 -0
  605. package/loader/index.cjs.js +3 -0
  606. package/loader/index.d.ts +12 -0
  607. package/loader/index.es2017.js +3 -0
  608. package/loader/index.js +4 -0
  609. package/loader/package.json +10 -0
  610. package/package.json +86 -0
  611. package/scss/_common-variables.scss +60 -0
  612. package/scss/_fonts.scss +70 -0
  613. package/scss/_z-index.scss +18 -0
  614. package/scss/components/_button-group.scss +24 -0
  615. package/scss/components/_buttons.scss +150 -0
  616. package/scss/components/_checkboxes.scss +177 -0
  617. package/scss/components/_dropdown.scss +175 -0
  618. package/scss/components/_forms.scss +146 -0
  619. package/scss/components/_input-group.scss +34 -0
  620. package/scss/components/_links.scss +31 -0
  621. package/scss/components/_modal.scss +41 -0
  622. package/scss/components/_radiobuttons.scss +169 -0
  623. package/scss/components/_shadows.scss +35 -0
  624. package/scss/components/_table.scss +27 -0
  625. package/scss/ix.scss +95 -0
  626. package/scss/mixins/_animations.scss +30 -0
  627. package/scss/mixins/_fonts.scss +166 -0
  628. package/scss/mixins/_hover.scss +59 -0
  629. package/scss/mixins/_shadows.scss +12 -0
  630. package/scss/mixins/_text-truncation.scss +14 -0
  631. package/scss/theme/_define-theme-colors.scss +22 -0
  632. package/scss/theme/_define-theme-variable.scss +12 -0
  633. package/scss/theme/_define-theme.scss +36 -0
  634. package/scss/theme/_static-colors.scss +19 -0
  635. package/scss/theme/classic-dark/_sizes.scss +66 -0
  636. package/scss/theme/classic-dark/_variables.scss +827 -0
  637. package/scss/theme/classic-dark/index.scss +15 -0
  638. package/scss/theme/classic-light/_sizes.scss +66 -0
  639. package/scss/theme/classic-light/_variables.scss +830 -0
  640. package/scss/theme/classic-light/index.scss +15 -0
  641. package/src/components/animated-tab/readme.md +24 -0
  642. package/src/components/animated-tabs/readme.md +32 -0
  643. package/src/components/application-header/readme.md +21 -0
  644. package/src/components/basic-navigation/readme.md +22 -0
  645. package/src/components/blind/readme.md +29 -0
  646. package/src/components/breadcrumb/readme.md +33 -0
  647. package/src/components/breadcrumb-item/readme.md +22 -0
  648. package/src/components/button/readme.md +27 -0
  649. package/src/components/category-filter/readme.md +40 -0
  650. package/src/components/chip/readme.md +36 -0
  651. package/src/components/counter-pill/readme.md +25 -0
  652. package/src/components/date-picker/readme.md +32 -0
  653. package/src/components/date-time-card/readme.md +22 -0
  654. package/src/components/datetime-picker/readme.md +32 -0
  655. package/src/components/drawer/readme.md +47 -0
  656. package/src/components/dropdown/readme.md +49 -0
  657. package/src/components/dropdown-item/readme.md +45 -0
  658. package/src/components/event-list/readme.md +24 -0
  659. package/src/components/event-list-item/readme.md +32 -0
  660. package/src/components/expanding-search/readme.md +32 -0
  661. package/src/components/filter-chip/readme.md +30 -0
  662. package/src/components/flip-tile/readme.md +22 -0
  663. package/src/components/flip-tile-content/readme.md +14 -0
  664. package/src/components/group/readme.md +36 -0
  665. package/src/components/group-dropdown-item/readme.md +22 -0
  666. package/src/components/group-item/readme.md +34 -0
  667. package/src/components/icon/readme.md +23 -0
  668. package/src/components/icon-button/readme.md +31 -0
  669. package/src/components/input-group/readme.md +14 -0
  670. package/src/components/kpi/readme.md +27 -0
  671. package/src/components/map-navigation/readme.md +54 -0
  672. package/src/components/map-navigation-overlay/readme.md +30 -0
  673. package/src/components/menu/readme.md +86 -0
  674. package/src/components/menu-about/readme.md +31 -0
  675. package/src/components/menu-about-item/readme.md +21 -0
  676. package/src/components/menu-about-news/readme.md +34 -0
  677. package/src/components/menu-avatar/readme.md +30 -0
  678. package/src/components/menu-avatar-item/readme.md +29 -0
  679. package/src/components/menu-item/readme.md +26 -0
  680. package/src/components/menu-settings/readme.md +30 -0
  681. package/src/components/menu-settings-item/readme.md +21 -0
  682. package/src/components/message-bar/readme.md +31 -0
  683. package/src/components/modal/readme.md +67 -0
  684. package/src/components/modal-container/readme.md +29 -0
  685. package/src/components/my-component/readme.md +16 -0
  686. package/src/components/pill/readme.md +26 -0
  687. package/src/components/select/readme.md +37 -0
  688. package/src/components/select-item/readme.md +44 -0
  689. package/src/components/spinner/readme.md +22 -0
  690. package/src/components/split-button/readme.md +36 -0
  691. package/src/components/split-button-item/readme.md +29 -0
  692. package/src/components/tab-item/readme.md +28 -0
  693. package/src/components/tabs/readme.md +25 -0
  694. package/src/components/tile/readme.md +21 -0
  695. package/src/components/time-picker/readme.md +34 -0
  696. package/src/components/toast/readme.md +36 -0
  697. package/src/components/toggle/readme.md +35 -0
  698. package/src/components/tree/readme.md +32 -0
  699. package/src/components/tree-item/readme.md +31 -0
  700. package/src/components/upload/readme.md +51 -0
  701. package/src/components/validation-tooltip/readme.md +31 -0
  702. package/src/components/workflow-step/readme.md +28 -0
  703. package/src/components/workflow-steps/readme.md +33 -0
@@ -0,0 +1,860 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, f as forceUpdate } from './index-55cfd20d.js';
2
+ import { a as convertToRemString } from './rwd.util-33a69d24.js';
3
+
4
+ /*
5
+ * SPDX-FileCopyrightText: 2022 Siemens AG
6
+ *
7
+ * SPDX-License-Identifier: MIT
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ class Popover {
13
+ constructor(hostElement, popoverElement, outsideCallback) {
14
+ this.hostElement = hostElement;
15
+ this.popoverElement = popoverElement;
16
+ this.outsideCallback = outsideCallback;
17
+ }
18
+ outside(e) {
19
+ var _a;
20
+ if (!((_a = this.hostElement) === null || _a === void 0 ? void 0 : _a.contains(e.target))) {
21
+ this.outsideCallback(e);
22
+ }
23
+ }
24
+ open(maxWidth = 256) {
25
+ this.popoverElement.style.transform = `
26
+ translateX(${this.hostElement.offsetLeft + this.hostElement.offsetWidth}px)
27
+ translateY(-${this.hostElement.offsetHeight}px)
28
+ `;
29
+ this.popoverElement.style.maxWidth = convertToRemString(maxWidth);
30
+ document.body.addEventListener('click', this.outside.bind(this));
31
+ }
32
+ destroy() {
33
+ document.body.removeEventListener('click', this.outside.bind(this));
34
+ }
35
+ }
36
+
37
+ /*
38
+ * SPDX-FileCopyrightText: 2022 Siemens AG
39
+ *
40
+ * SPDX-License-Identifier: MIT
41
+ *
42
+ * This source code is licensed under the MIT license found in the
43
+ * LICENSE file in the root directory of this source tree.
44
+ */
45
+ const toggleVariant = () => {
46
+ let currentTheme = Array.from(document.body.classList).find((className) => className.includes('theme-'));
47
+ if (!currentTheme) {
48
+ currentTheme = 'theme-classic-dark';
49
+ }
50
+ const isDark = currentTheme.endsWith('-dark');
51
+ let newTheme = currentTheme;
52
+ if (isDark) {
53
+ newTheme = currentTheme.replace(/-dark$/g, '-light');
54
+ }
55
+ else {
56
+ newTheme = currentTheme.replace(/-light$/g, '-dark');
57
+ }
58
+ document.body.classList.remove(currentTheme);
59
+ document.body.classList.add(newTheme);
60
+ };
61
+
62
+ const menuCss = "ix-menu{display:flex;flex-direction:row;position:absolute;height:100%;min-height:22.75rem;z-index:var(--theme-z-index-sticky);width:auto}ix-menu .menu{display:flex;flex-direction:column;position:relative;width:4rem;height:100%;background-color:var(--theme-nav--background);transition:width var(--animate-duration)}ix-menu .menu.expanded{box-shadow:var(--theme-navigation--box-shadow)}ix-menu .menu .burger-menu-button{display:flex;justify-content:center;margin-top:0.75rem;margin-left:0.75rem;margin-bottom:1rem;height:2rem;width:2.5rem;border-radius:0.25rem}ix-menu .menu .burger-menu-button:not(.disabled):not(:disabled).hover,ix-menu .menu .burger-menu-button:not(.disabled):not(:disabled):hover{background-color:var(--theme-ghost--background--hover)}ix-menu .menu .burger-menu-button:not(.disabled):not(:disabled).active,ix-menu .menu .burger-menu-button:not(.disabled):not(:disabled):active{background-color:var(--theme-ghost--background--active)}ix-menu .menu .burger-menu-button svg{display:inline-block;fill:var(--theme-menu-btn--color);position:relative}ix-menu .menu .burger-menu-button svg .line{opacity:1;transform:rotate(0) translateY(0) translateX(0);transition:transform 0.3s ease-in-out, opacity 0.2s ease-in-out}ix-menu .menu .burger-menu-button.expanded svg .line-1{transform:translate(0.6875rem, -0.05rem) rotate(45deg)}ix-menu .menu .burger-menu-button.expanded svg .line-2{opacity:0}ix-menu .menu .burger-menu-button.expanded svg .line-3{transform:translate(-0.75625rem, 0.8125rem) rotate(-45deg)}ix-menu .menu-overlay{display:block;position:absolute;width:calc(100vw - 4rem);height:100%;left:4rem;z-index:-1;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem);background-color:var(--theme-sidebar-overlay-blur);transition:all 150ms ease-out}ix-menu .menu-overlay-invisible{display:none}ix-menu :not(.active-more-tab)>.internal-tab:last-child{margin-bottom:1rem}ix-menu .menu.expanded{width:16rem}ix-menu .menu-overlay.expanded{width:calc(100vw - 16rem);left:16rem}ix-menu #avatar-tab-placeholder{max-height:3rem}ix-menu .avatar{margin-bottom:2rem}ix-menu #cui-imprint .cui-imprint-product-name{margin-bottom:1rem}ix-menu #cui-imprint .cui-imprint-product-description{margin-bottom:2rem}ix-menu #cui-imprint .cui-imprint-link-container{display:flex;align-items:center}ix-menu .bottom-tab-divider{margin-top:auto}";
63
+
64
+ const Menu = class {
65
+ constructor(hostRef) {
66
+ registerInstance(this, hostRef);
67
+ this.expandChange = createEvent(this, "expandChange", 7);
68
+ this.mapExpandChange = createEvent(this, "mapExpandChange", 7);
69
+ /**
70
+ * Is settings tab visible
71
+ */
72
+ this.showSettings = false;
73
+ /**
74
+ * Is about tab visible
75
+ */
76
+ this.showAbout = false;
77
+ /**
78
+ * Show toggle between light and dark variant. Only if the provided theme have implemented both!
79
+ */
80
+ this.enableToggleTheme = false;
81
+ /**
82
+ * Is settings tab is visible
83
+ */
84
+ this.enableSettings = true;
85
+ /**
86
+ * Internal
87
+ */
88
+ this.enableMapExpand = false;
89
+ /**
90
+ * Should only be set if you use ix-menu standalone
91
+ */
92
+ this.applicationDescription = '';
93
+ /**
94
+ * Maximum number of menu items to show in case enough vertical space is available.
95
+ * Extra menu items will be collapsed to 'show more' menu item.
96
+ */
97
+ this.maxVisibleMenuItems = 9;
98
+ /**
99
+ */
100
+ this.i18nLegal = 'About & legal information';
101
+ /**
102
+ */
103
+ this.i18nSettings = 'Settings';
104
+ /**
105
+ */
106
+ this.i18nToggleTheme = 'Toggle theme';
107
+ /**
108
+ */
109
+ this.i18nExpand = ' Expand';
110
+ /**
111
+ */
112
+ this.i18nCollapse = 'Collapse';
113
+ /**
114
+ */
115
+ this.i18nMore = 'More…';
116
+ /**
117
+ * Expand menu
118
+ */
119
+ this.expand = false;
120
+ this.showMoreItems = false;
121
+ this.visibleMenuItems = 0;
122
+ this.countMoreNotifications = 0;
123
+ this.mapExpand = true;
124
+ this.isMoreTabEmpty = false;
125
+ this.domObserver = new MutationObserver(this.onDomChange.bind(this));
126
+ // FBC IAM workaround #488
127
+ this.isVisible = (elm) => {
128
+ var _a, _b;
129
+ return (elm.style.display !== 'none' &&
130
+ ((_b = (_a = elm.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.style.display) !== 'none');
131
+ };
132
+ }
133
+ onWindowResize() {
134
+ this.visibleMenuItems = this.getMaxTabCount();
135
+ }
136
+ handleNodeMutation(node) {
137
+ if (!(node instanceof HTMLElement)) {
138
+ return;
139
+ }
140
+ if (node.matches('.tab')) {
141
+ this.onWindowResize();
142
+ }
143
+ if (node.matches('ix-menu-about') && this.menu.contains(node)) {
144
+ this.appendAbout();
145
+ }
146
+ if (node.matches('ix-menu-settings') && this.menu.contains(node)) {
147
+ this.appendSettings();
148
+ }
149
+ }
150
+ onDomChange(mutations) {
151
+ mutations.forEach((mutationRecord) => {
152
+ mutationRecord.addedNodes.forEach(this.handleNodeMutation.bind(this));
153
+ mutationRecord.removedNodes.forEach(this.handleNodeMutation.bind(this));
154
+ });
155
+ }
156
+ get popoverArea() {
157
+ return this.hostElement.querySelector('#popover-area');
158
+ }
159
+ get overlayContainer() {
160
+ return this.hostElement.querySelector('.menu-overlay');
161
+ }
162
+ get invisibleContainer() {
163
+ return this.hostElement.querySelector('.menu-overlay-invisible');
164
+ }
165
+ get menu() {
166
+ return this.hostElement.querySelector('.menu');
167
+ }
168
+ get menuItems() {
169
+ return Array.from(this.hostElement.querySelectorAll('ix-menu-item:not(.internal-tab):not(.home-tab):not(.bottom-tab)')).filter(this.isVisible);
170
+ }
171
+ get menuBottomItems() {
172
+ return Array.from(this.hostElement.querySelectorAll('ix-menu-item.bottom-tab:not(.internal-tab):not(.home-tab)')).filter(this.isVisible);
173
+ }
174
+ get homeTab() {
175
+ return this.hostElement.querySelector('ix-menu-item.home-tab');
176
+ }
177
+ get moreItemsDropdown() {
178
+ return this.hostElement.querySelector('.internal-tab ix-dropdown');
179
+ }
180
+ get isMoreItemsDropdownEmpty() {
181
+ return (this.hostElement.querySelectorAll('.internal-tab ix-dropdown .appended')
182
+ .length === 0);
183
+ }
184
+ get moreItemsDropdownItems() {
185
+ return this.hostElement.querySelectorAll('.internal-tab ix-dropdown ix-menu-item');
186
+ }
187
+ get activeMoreTabContainer() {
188
+ return this.hostElement.querySelector('.active-more-tab');
189
+ }
190
+ get activeMoreTab() {
191
+ return this.hostElement.querySelector('.active-more-tab ix-menu-item');
192
+ }
193
+ get aboutPopoverContainer() {
194
+ return this.hostElement.querySelector('.about-news');
195
+ }
196
+ get aboutPopover() {
197
+ return document.querySelector('ix-menu-about-news');
198
+ }
199
+ get aboutTab() {
200
+ return this.hostElement.querySelector('#aboutAndLegal');
201
+ }
202
+ get about() {
203
+ return this.hostElement.querySelector('ix-menu-about');
204
+ }
205
+ get settings() {
206
+ return this.hostElement.querySelector('ix-menu-settings');
207
+ }
208
+ get isSettingsEmpty() {
209
+ return (Array.from(this.hostElement.querySelectorAll('ix-menu-settings-item'))
210
+ .length === 0);
211
+ }
212
+ get avatarItem() {
213
+ return this.hostElement.querySelector('ix-menu-avatar');
214
+ }
215
+ showTab(index) {
216
+ return index + 1 <= this.visibleMenuItems;
217
+ }
218
+ componentDidLoad() {
219
+ var _a, _b, _c, _d;
220
+ const anchor = this.hostElement.querySelector('#more-tab');
221
+ this.popoverListener = new Popover(anchor, this.moreItemsDropdown, () => {
222
+ this.showMoreItems = false;
223
+ });
224
+ (_a = this.settings) === null || _a === void 0 ? void 0 : _a.addEventListener('close', () => {
225
+ this.showSettings = false;
226
+ this.settings.show = this.showSettings;
227
+ });
228
+ (_b = this.settings) === null || _b === void 0 ? void 0 : _b.addEventListener('animationend', () => {
229
+ if (!this.showSettings) {
230
+ this.settings.classList.add('d-none');
231
+ this.overlayContainer.classList.add('d-none');
232
+ }
233
+ });
234
+ (_c = this.about) === null || _c === void 0 ? void 0 : _c.addEventListener('close', () => {
235
+ this.showAbout = false;
236
+ this.about.show = this.showAbout;
237
+ });
238
+ (_d = this.about) === null || _d === void 0 ? void 0 : _d.addEventListener('animationend', () => {
239
+ if (!this.showAbout) {
240
+ this.about.classList.add('d-none');
241
+ this.overlayContainer.classList.add('d-none');
242
+ }
243
+ });
244
+ this.overlayContainer.classList.add('d-none');
245
+ this.onWindowResize();
246
+ this.domObserver.observe(this.hostElement, {
247
+ attributes: false,
248
+ childList: true,
249
+ subtree: true,
250
+ });
251
+ }
252
+ disconnectedCallback() {
253
+ var _a;
254
+ (_a = this.popoverListener) === null || _a === void 0 ? void 0 : _a.destroy();
255
+ }
256
+ componentWillRender() {
257
+ this.appendTabs();
258
+ }
259
+ componentDidRender() {
260
+ this.visibleMenuItems = this.getMaxTabCount();
261
+ this.appendFragments();
262
+ }
263
+ appendFragments() {
264
+ this.appendAvatar();
265
+ this.appendAbout();
266
+ this.appendSettings();
267
+ this.appendAboutNewsPopover();
268
+ // This lead to none infinite-loops and other bugs.
269
+ this.isMoreTabEmpty = this.isMoreItemsDropdownEmpty;
270
+ this.countMoreNotifications = this.getMoreNotificationsCount();
271
+ }
272
+ resetActiveTab() {
273
+ this.activeTab = null;
274
+ }
275
+ isMenuItemActive(item) {
276
+ return item.active || item.classList.contains('active');
277
+ }
278
+ appendTabs() {
279
+ this.activeTab = null;
280
+ if (this.homeTab) {
281
+ this.hostElement.querySelector('.tabs-top').appendChild(this.homeTab);
282
+ this.homeTab.addEventListener('click', this.resetOverlay);
283
+ }
284
+ this.menuItems.forEach((item, index) => {
285
+ var _a;
286
+ if (this.showTab(index)) {
287
+ item.classList.remove('d-none');
288
+ }
289
+ else {
290
+ item.classList.add('d-none');
291
+ if (this.isMenuItemActive(item)) {
292
+ this.activeTab = item;
293
+ }
294
+ }
295
+ // TODO: Find better solution to handle home tab
296
+ (_a = this.homeTab) === null || _a === void 0 ? void 0 : _a.classList.remove('d-none');
297
+ item.addEventListener('click', this.resetOverlay);
298
+ });
299
+ }
300
+ appendAvatar() {
301
+ var _a;
302
+ const avatar = this.avatarItem;
303
+ if (avatar) {
304
+ avatar.style.marginBottom = '1rem';
305
+ (_a = this.hostElement
306
+ .querySelector('#avatar-tab-placeholder')) === null || _a === void 0 ? void 0 : _a.appendChild(avatar);
307
+ }
308
+ }
309
+ getAboutPopoverVerticalPosition() {
310
+ const heightArrow = 12;
311
+ const offsetArrow = 6;
312
+ const rectAbout = this.aboutTab.getBoundingClientRect();
313
+ const offset = window.innerHeight -
314
+ (rectAbout.bottom - rectAbout.height / 2 + heightArrow / 2 + offsetArrow);
315
+ return convertToRemString(offset);
316
+ }
317
+ appendAboutNewsPopover() {
318
+ var _a;
319
+ if (!this.aboutPopover) {
320
+ return;
321
+ }
322
+ this.aboutPopover.style.bottom = this.getAboutPopoverVerticalPosition();
323
+ if (!((_a = this.popoverArea) === null || _a === void 0 ? void 0 : _a.contains(this.aboutPopover))) {
324
+ const showMore = () => {
325
+ var _a;
326
+ if ((_a = this.aboutPopover) === null || _a === void 0 ? void 0 : _a.aboutItemLabel) {
327
+ this.about.activeTabLabel = this.aboutPopover.aboutItemLabel;
328
+ this.toggleAbout(true);
329
+ }
330
+ };
331
+ this.aboutPopover.addEventListener('showMore', showMore.bind(this));
332
+ document.body.appendChild(this.aboutPopover);
333
+ }
334
+ }
335
+ appendSettings() {
336
+ if (this.settings) {
337
+ this.overlayContainer.appendChild(this.settings);
338
+ }
339
+ }
340
+ appendAbout() {
341
+ if (this.about) {
342
+ this.overlayContainer.appendChild(this.about);
343
+ }
344
+ }
345
+ getMoreNotificationsCount() {
346
+ var _a;
347
+ const moreTabs = (_a = this.moreItemsDropdown) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.appended');
348
+ let count = 0;
349
+ moreTabs === null || moreTabs === void 0 ? void 0 : moreTabs.forEach((tab) => {
350
+ if (tab['notifications']) {
351
+ count += tab['notifications'];
352
+ }
353
+ });
354
+ return count;
355
+ }
356
+ getAvailableHeight() {
357
+ const heightBurgerMenu = 60;
358
+ const heightHome = 72;
359
+ const heightAvatar = 56;
360
+ const heightBottomTab = 36;
361
+ let availableHeight = this.hostElement.clientHeight;
362
+ availableHeight -= heightBurgerMenu;
363
+ if (this.avatarItem) {
364
+ availableHeight -= heightAvatar;
365
+ }
366
+ if (this.homeTab) {
367
+ availableHeight -= heightHome;
368
+ }
369
+ if (this.showAbout) {
370
+ availableHeight -= heightBottomTab;
371
+ }
372
+ if (this.showSettings) {
373
+ availableHeight -= heightBottomTab;
374
+ }
375
+ if (this.menuBottomItems.length) {
376
+ availableHeight -= this.menuBottomItems.length * heightBottomTab;
377
+ }
378
+ if (this.enableMapExpand) {
379
+ availableHeight -= heightBottomTab;
380
+ }
381
+ // Subtract height of imprint and theme toggle tabs
382
+ availableHeight -= 2 * heightBottomTab;
383
+ // Subtract bottom margin of bottom tabs
384
+ availableHeight -= 16;
385
+ return availableHeight;
386
+ }
387
+ getMaxTabCount() {
388
+ const heightTab = 48;
389
+ const availableHeight = this.getAvailableHeight();
390
+ const visibleCount = Math.floor(availableHeight / heightTab);
391
+ const menuItemCount = this.menuItems.length;
392
+ if (menuItemCount === 1) {
393
+ return 1;
394
+ }
395
+ if (menuItemCount < this.maxVisibleMenuItems) {
396
+ if (visibleCount > menuItemCount) {
397
+ return menuItemCount;
398
+ }
399
+ return Math.min(visibleCount - 2, menuItemCount);
400
+ }
401
+ if (menuItemCount === this.maxVisibleMenuItems) {
402
+ if (visibleCount < this.maxVisibleMenuItems) {
403
+ return visibleCount - 2;
404
+ }
405
+ if (visibleCount === this.maxVisibleMenuItems) {
406
+ return this.maxVisibleMenuItems - 2;
407
+ }
408
+ return Math.min(visibleCount, this.maxVisibleMenuItems);
409
+ }
410
+ if (visibleCount === this.maxVisibleMenuItems) {
411
+ return this.maxVisibleMenuItems - 2;
412
+ }
413
+ if (visibleCount >= this.maxVisibleMenuItems) {
414
+ return this.maxVisibleMenuItems - 1;
415
+ }
416
+ return Math.min(visibleCount - 2, this.maxVisibleMenuItems);
417
+ }
418
+ toggleShowMoreDropdown() {
419
+ if (this.moreItemsDropdown.querySelectorAll('.appended').length === 0) {
420
+ return;
421
+ }
422
+ this.popoverListener.open();
423
+ this.showMoreItems = !this.showMoreItems;
424
+ }
425
+ /**
426
+ * Toggle map sidebar expand
427
+ * @param show
428
+ */
429
+ async toggleMapExpand(show) {
430
+ this.skipAllOverlayAnimations();
431
+ if (show !== undefined) {
432
+ this.mapExpand = show;
433
+ }
434
+ else {
435
+ this.mapExpand = !this.mapExpand;
436
+ }
437
+ }
438
+ skipAllOverlayAnimations() {
439
+ if (this.about) {
440
+ this.skipOverlayAnimationFor(this.about);
441
+ }
442
+ if (this.settings) {
443
+ this.skipOverlayAnimationFor(this.settings);
444
+ }
445
+ }
446
+ skipOverlayAnimationFor(element) {
447
+ const animateClass = 'animate__animated';
448
+ element === null || element === void 0 ? void 0 : element.classList.remove(animateClass);
449
+ setTimeout(() => {
450
+ element === null || element === void 0 ? void 0 : element.classList.add(animateClass);
451
+ }, 300);
452
+ }
453
+ /**
454
+ * Toggle menu
455
+ * @param show
456
+ */
457
+ async toggleMenu(show) {
458
+ this.skipAllOverlayAnimations();
459
+ if (show !== undefined) {
460
+ this.expand = show;
461
+ }
462
+ else {
463
+ this.expand = !this.expand;
464
+ }
465
+ if (this.aboutPopover) {
466
+ this.aboutPopover.expanded = this.expand;
467
+ }
468
+ this.expandChange.emit(this.expand);
469
+ }
470
+ /**
471
+ * Toggle Settings tabs
472
+ * @param show
473
+ */
474
+ async toggleSettings(show) {
475
+ var _a;
476
+ if (this.showAbout) {
477
+ this.skipAllOverlayAnimations();
478
+ }
479
+ else {
480
+ this.skipOverlayAnimationFor(this.about);
481
+ }
482
+ (_a = this.about) === null || _a === void 0 ? void 0 : _a.classList.add('d-none');
483
+ this.resetOverlay();
484
+ this.showSettings = show;
485
+ this.settings.show = this.showSettings;
486
+ this.settings.classList.remove('d-none');
487
+ this.overlayContainer.classList.remove('d-none');
488
+ }
489
+ /**
490
+ * Toggle About tabs
491
+ * @param show
492
+ */
493
+ async toggleAbout(show) {
494
+ var _a;
495
+ if (this.showSettings) {
496
+ this.skipAllOverlayAnimations();
497
+ }
498
+ else {
499
+ this.skipOverlayAnimationFor(this.settings);
500
+ }
501
+ (_a = this.settings) === null || _a === void 0 ? void 0 : _a.classList.add('d-none');
502
+ this.resetOverlay();
503
+ this.showAbout = show;
504
+ this.about.show = this.showAbout;
505
+ this.about.classList.remove('d-none');
506
+ this.overlayContainer.classList.remove('d-none');
507
+ }
508
+ resetOverlay() {
509
+ this.showSettings = false;
510
+ this.showAbout = false;
511
+ if (this.settings) {
512
+ this.settings.show = this.showSettings;
513
+ }
514
+ if (this.about) {
515
+ this.about.show = this.showAbout;
516
+ }
517
+ }
518
+ showMoreButton() {
519
+ const menuItemCount = this.menuItems.length;
520
+ if (menuItemCount === 1) {
521
+ return false;
522
+ }
523
+ if (menuItemCount < this.maxVisibleMenuItems) {
524
+ return this.visibleMenuItems < menuItemCount;
525
+ }
526
+ if (menuItemCount > this.maxVisibleMenuItems) {
527
+ return this.visibleMenuItems < this.maxVisibleMenuItems;
528
+ }
529
+ return this.visibleMenuItems <= this.maxVisibleMenuItems - 2;
530
+ }
531
+ getCollapseText() {
532
+ return this.mapExpand ? this.i18nCollapse : this.i18nExpand;
533
+ }
534
+ getCollapseIcon() {
535
+ return this.mapExpand ? 'double-chevron-left' : 'double-chevron-right';
536
+ }
537
+ render() {
538
+ return (h(Host, { class: {
539
+ expanded: this.expand,
540
+ } }, h("div", { class: {
541
+ menu: true,
542
+ expanded: this.expand,
543
+ }, onClick: () => {
544
+ this.resetActiveTab();
545
+ } }, h("div", { onClick: async () => this.toggleMenu(), class: {
546
+ 'burger-menu-button': true,
547
+ expanded: this.expand,
548
+ } }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "32", height: "32" }, h("rect", { class: "line line-1", x: "5", y: "9.5", width: "22", height: "2" }), h("rect", { class: "line line-2", x: "5", y: "15.5", width: "22", height: "2" }), h("rect", { class: "line line-3", x: "5", y: "21.5", width: "22", height: "2" }))), h("div", { id: "avatar-tab-placeholder" }), h("div", { class: "tabs-top" }), h("slot", null), h("div", { class: "active-more-tab" }, this.activeTab ? (h("ix-menu-item", { class: "internal-tab", active: true, tabIcon: this.activeTab.tabIcon }, this.activeTab.innerText)) : null), h("ix-menu-item", { id: "more-tab", tabIcon: "more-menu", class: {
549
+ 'internal-tab': true,
550
+ }, style: {
551
+ display: this.showMoreButton() ? 'block' : 'none',
552
+ }, title: "Show more", notifications: this.countMoreNotifications, onClick: () => this.toggleShowMoreDropdown() }, this.i18nMore, h("ix-dropdown", { show: this.showMoreItems }, this.menuItems
553
+ .filter((elm, index) => !this.showTab(index) &&
554
+ !this.isMenuItemActive(elm) &&
555
+ this.isVisible(elm))
556
+ .map((e) => {
557
+ return (h("ix-menu-item", { tabIcon: e.tabIcon, active: e.active, class: "internal-tab appended", onClick: () => e.dispatchEvent(new CustomEvent('click')) }, e.innerText));
558
+ }))), h("div", { class: "bottom-tab-divider" }), this.enableSettings && !this.isSettingsEmpty ? (h("ix-menu-item", { class: {
559
+ 'internal-tab': true,
560
+ 'bottom-tab': true,
561
+ active: this.showSettings,
562
+ }, tabIcon: "cogwheel", onClick: async () => this.toggleSettings(!this.showSettings) }, this.i18nSettings)) : null, h("slot", { name: "bottom" }), h("div", { id: "popover-area" }), this.about ? (h("ix-menu-item", { id: "aboutAndLegal", class: {
563
+ 'internal-tab': true,
564
+ 'bottom-tab': true,
565
+ active: this.showAbout,
566
+ }, tabIcon: "info", onClick: async () => this.toggleAbout(!this.showAbout) }, this.i18nLegal)) : null, this.enableToggleTheme ? (h("ix-menu-item", { id: "toggleTheme", onClick: () => toggleVariant(), class: "internal-tab bottom-tab", tabIcon: "bulb" }, this.i18nToggleTheme)) : null, this.enableMapExpand ? (h("ix-menu-item", { id: "menu-collapse", onClick: () => this.mapExpandChange.emit(this.mapExpand), class: "internal-tab bottom-tab", tabIcon: `${this.getCollapseIcon()}` }, this.getCollapseText())) : null), h("div", { class: {
567
+ 'menu-overlay': true,
568
+ expanded: this.expand,
569
+ 'd-block': this.showAbout || this.showSettings,
570
+ }, style: {
571
+ opacity: this.showAbout || this.showSettings ? '1' : '0',
572
+ } }), h("div", { class: "menu-overlay-invisible" })));
573
+ }
574
+ get hostElement() { return getElement(this); }
575
+ };
576
+ Menu.style = menuCss;
577
+
578
+ const menuAboutCss = ".text-xs.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text)}.text-s.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption-single.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text)}.text-default.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-single.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text)}.text-default-title.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-title-single.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}.text-l.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-single.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text)}.text-l-title.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-title-single.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text)}.text-h2.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text)}.text-xl.sc-ix-menu-about{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text)}a.sc-ix-menu-about{color:var(--theme-color-primary)}.sc-ix-menu-about-h{display:block;background-color:var(--theme-nav-overlay--background);padding:0.75rem 1rem 1rem 2rem;flex-grow:1;position:absolute;width:100%;height:100%}.sc-ix-menu-about-h .about-header.sc-ix-menu-about{display:flex;justify-content:space-between;flex-direction:row;align-items:center;height:2rem;margin-bottom:0.5rem}.sc-ix-menu-about-h .about-header.sc-ix-menu-about h2.sc-ix-menu-about{color:var(--theme-nav-overlay-header--color);margin-bottom:0}.sc-ix-menu-about-h .about-tabs.sc-ix-menu-about{margin-bottom:1.5rem}.sc-ix-menu-about-h ix-menu-about-item.sc-ix-menu-about{display:none}";
579
+
580
+ const MenuAbout$1 = class {
581
+ constructor(hostRef) {
582
+ registerInstance(this, hostRef);
583
+ this.close = createEvent(this, "close", 7);
584
+ /**
585
+ *
586
+ */
587
+ this.i18nImprintLabel = 'Imprint';
588
+ /**
589
+ * Active tab
590
+ */
591
+ this.activeTabLabel = this.i18nImprintLabel;
592
+ /**
593
+ * Label of first tab
594
+ */
595
+ this.label = 'About & legal information';
596
+ /**
597
+ * Internal
598
+ */
599
+ this.show = false;
600
+ this.labels = [];
601
+ }
602
+ get aboutItems() {
603
+ return Array.from(this.el.querySelectorAll('ix-menu-about-item'));
604
+ }
605
+ setTab(label) {
606
+ this.activeTabLabel = label;
607
+ this.aboutItems.forEach((i) => {
608
+ i.style.display = 'none';
609
+ if (i.label === this.activeTabLabel) {
610
+ i.style.display = 'block';
611
+ }
612
+ });
613
+ }
614
+ componentWillLoad() {
615
+ var _a;
616
+ this.setTab(this.activeTabLabel || ((_a = this.aboutItems[0]) === null || _a === void 0 ? void 0 : _a.label));
617
+ }
618
+ componentDidLoad() {
619
+ var _a;
620
+ this.setTab(this.activeTabLabel || ((_a = this.aboutItems[0]) === null || _a === void 0 ? void 0 : _a.label));
621
+ forceUpdate(this.el);
622
+ }
623
+ componentWillRender() {
624
+ this.updateLabels();
625
+ }
626
+ updateLabels() {
627
+ this.labels = this.aboutItems.map((i) => i.label);
628
+ }
629
+ watchActiveTabLabel(value) {
630
+ // Wait a DOM render cycle to get changed labels
631
+ setTimeout(() => this.setTab(value));
632
+ }
633
+ getSelectedTabIndex(label) {
634
+ const selectedItem = this.aboutItems.find((item) => item.label === label);
635
+ return this.aboutItems.indexOf(selectedItem);
636
+ }
637
+ render() {
638
+ return (h(Host, { class: {
639
+ animate__animated: true,
640
+ animate__fadeInLeft: this.show,
641
+ animate__fadeOutLeft: !this.show,
642
+ } }, h("div", { class: "about-header" }, h("h2", { class: "text-h2" }, this.label), h("ix-icon-button", { ghost: true, size: "24", icon: "close", onClick: (e) => this.close.emit(e) })), h("ix-tabs", { selected: this.getSelectedTabIndex(this.activeTabLabel), class: "about-tabs" }, this.labels.map((label) => (h("ix-tab-item", { onClick: () => this.setTab(label) }, label)))), h("div", { class: "about-items" }, h("slot", null))));
643
+ }
644
+ get el() { return getElement(this); }
645
+ static get watchers() { return {
646
+ "activeTabLabel": ["watchActiveTabLabel"]
647
+ }; }
648
+ };
649
+ MenuAbout$1.style = menuAboutCss;
650
+
651
+ const menuAboutItemCss = ".sc-ix-menu-about-item-h{display:block}";
652
+
653
+ const MenuAboutItem = class {
654
+ constructor(hostRef) {
655
+ registerInstance(this, hostRef);
656
+ }
657
+ render() {
658
+ return (h(Host, null, h("slot", null)));
659
+ }
660
+ };
661
+ MenuAboutItem.style = menuAboutItemCss;
662
+
663
+ const menuAboutNewsCss = ".sc-ix-menu-about-news-h{display:block;position:fixed;width:20rem;height:auto;background-color:var(--theme-color-1);border:var(--theme-weak-bdr-1);border-radius:0.25rem;padding:1rem;left:4rem;z-index:10000;transition:left var(--animate-duration);margin-left:0.5rem !important;box-shadow:var(--theme-box-shadow-level-2)}.expanded.sc-ix-menu-about-news-h{left:calc(4rem + 12rem)}.show.sc-ix-menu-about-news-h{display:none}.sc-ix-menu-about-news-h .banner-container.sc-ix-menu-about-news{position:absolute;top:0.0625rem;left:1rem}.sc-ix-menu-about-news-h .banner-container.sc-ix-menu-about-news svg.sc-ix-menu-about-news{position:absolute;height:3.625rem;width:3rem}.sc-ix-menu-about-news-h .banner-container.sc-ix-menu-about-news svg.sc-ix-menu-about-news polygon.sc-ix-menu-about-news{fill:var(--theme-color-primary)}.sc-ix-menu-about-news-h .banner-container.sc-ix-menu-about-news ix-icon.sc-ix-menu-about-news{margin:0.5rem;position:absolute;z-index:1}.sc-ix-menu-about-news-h .cui-popover-news-header.sc-ix-menu-about-news{margin-bottom:2rem;margin-left:4rem;margin-top:-0.25rem}.sc-ix-menu-about-news-h .popover-body.sc-ix-menu-about-news{color:var(--theme-color-std-text)}.sc-ix-menu-about-news-h .cui-popover-news-footer.sc-ix-menu-about-news{display:flex;justify-content:flex-end;margin-top:1rem}.sc-ix-menu-about-news-h #arrow.sc-ix-menu-about-news{bottom:14px;position:relative;left:-10px}.sc-ix-menu-about-news-h ix-icon-button.sc-ix-menu-about-news{top:0.5rem;right:0.5rem;position:absolute}.sc-ix-menu-about-news-h svg#arrow.sc-ix-menu-about-news{position:absolute;left:-0.5rem;bottom:0.4rem}.sc-ix-menu-about-news-h svg#arrow.sc-ix-menu-about-news path.sc-ix-menu-about-news{fill:var(--theme-color-1);stroke:var(--theme-color-weak-bdr-1)}";
664
+
665
+ const MenuAboutNews = class {
666
+ constructor(hostRef) {
667
+ registerInstance(this, hostRef);
668
+ this.showMore = createEvent(this, "showMore", 7);
669
+ this.closePopover = createEvent(this, "closePopover", 7);
670
+ /**
671
+ * Show about news
672
+ */
673
+ this.show = false;
674
+ /**
675
+ *
676
+ */
677
+ this.i18nShowMore = 'Show more';
678
+ /**
679
+ * Bottom offset
680
+ */
681
+ this.offsetBottom = 0;
682
+ /**
683
+ * Internal
684
+ */
685
+ this.expanded = false;
686
+ }
687
+ render() {
688
+ return (h(Host, { class: {
689
+ expanded: this.expanded,
690
+ show: !this.show,
691
+ } }, h("div", { class: "banner-container" }, h("ix-icon", { color: "color-inv-contrast-text", name: "shout", size: "32" }), h("svg", { viewBox: "0 0 48 56", xmlns: "http://www.w3.org/2000/svg" }, h("polygon", { points: "0 0 48 0 48 56 24 48 0 56" }))), h("div", { class: "cui-popover-news-header" }, h("span", { class: "text-l-title" }, this.label)), h("ix-icon-button", { size: "24", icon: "close-small", ghost: true, onClick: () => {
692
+ this.show = false;
693
+ this.closePopover.emit();
694
+ } }), h("slot", null), this.aboutItemLabel ? (h("div", { class: "cui-popover-news-footer" }, h("button", { class: "btn btn-primary", onClick: (e) => {
695
+ this.show = false;
696
+ this.showMore.emit(e);
697
+ } }, this.i18nShowMore))) : null, h("svg", { id: "arrow", xmlns: "http://www.w3.org/2000/svg", width: "8", height: "12", viewBox: "0 0 8 12" }, h("path", { d: "M8 0 L0 6 L8 12" }))));
698
+ }
699
+ };
700
+ MenuAboutNews.style = menuAboutNewsCss;
701
+
702
+ const menuAvatarCss = ".sc-ix-menu-avatar-h{display:block;position:relative;margin-bottom:0.5rem}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar{display:flex;align-items:center;height:2.5rem;max-height:2.5rem;padding-left:0.25rem;margin-left:0.75rem;margin-right:0.75rem;transition:0.15s;border-radius:1.25rem}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar>svg.sc-ix-menu-avatar{height:2rem;width:2rem;min-height:2rem;min-width:2rem}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar #avatar-path-background.sc-ix-menu-avatar{fill:var(--theme-avatar--background)}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar #avatar-path-person.sc-ix-menu-avatar{fill:var(--theme-avatar--person)}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar .avatar-name.sc-ix-menu-avatar{display:flex;flex-direction:column;overflow:hidden;white-space:nowrap;margin-left:1rem;line-height:1.14}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar .avatar-name.sc-ix-menu-avatar .text-default-single.sc-ix-menu-avatar{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar:not(.disabled):not(:disabled):hover{background-color:var(--theme-avatar-btn--background--hover);color:var(--theme-avatar-btn--color--hover)}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar:not(.disabled):not(:disabled){cursor:pointer}.sc-ix-menu-avatar-h .avatar.sc-ix-menu-avatar:not(.disabled):not(:disabled):active{background-color:var(--theme-avatar-btn--background--active);color:var(--theme-avatar-btn--color--active)}";
703
+
704
+ const MenuAvatar = class {
705
+ constructor(hostRef) {
706
+ registerInstance(this, hostRef);
707
+ this.logoutClick = createEvent(this, "logoutClick", 7);
708
+ /**
709
+ *
710
+ */
711
+ this.i18nLogout = 'Logout';
712
+ }
713
+ toggleMenu() {
714
+ this.outsideListener.open();
715
+ this.displayMenu = !this.displayMenu;
716
+ }
717
+ componentDidLoad() {
718
+ this.outsideListener = new Popover(this.hostElement, this.hostElement.querySelector('ix-dropdown'), () => {
719
+ this.displayMenu = false;
720
+ });
721
+ }
722
+ disconnectedCallback() {
723
+ var _a;
724
+ (_a = this.outsideListener) === null || _a === void 0 ? void 0 : _a.destroy();
725
+ }
726
+ render() {
727
+ return (h(Host, null, h("li", { class: "nav-item top-item avatar no-hover", title: this.top }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", viewBox: "0 0 32 32" }, h("g", { fill: "none", "fill-rule": "evenodd" }, h("path", { id: "avatar-path-background", d: "M16 0C7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163\n 16-16c0-4.243-1.686-8.313-4.686-11.314C24.314 1.686 20.244 0 16 0z" }), h("path", { id: "avatar-path-person", d: "M17.897 17.91c3.8-.018 7.358 1.875 9.485 5.046-2.417 3.999-6.734 6.434-11.382\n 6.42-4.648.014-8.965-2.421-11.382-6.42 2.127-3.171 5.685-5.064\n 9.485-5.045h3.794zM15.821 2.129c3.682 0 6.667 2.984 6.667 6.666 0 3.682-2.985\n 6.667-6.667 6.667s-6.667-2.985-6.667-6.667 2.985-6.666 6.667-6.666z" }))), h("div", { class: "avatar-name" }, h("span", { class: "text-default-single", title: this.top }, this.top), h("span", { class: "text-default-single", title: this.bottom }, this.bottom))), h("ix-dropdown", { show: this.displayMenu }, h("slot", null), h("ix-menu-avatar-item", { label: this.i18nLogout, icon: "log-out", onClick: (e) => {
728
+ this.logoutClick.emit(e);
729
+ } }))));
730
+ }
731
+ get hostElement() { return getElement(this); }
732
+ };
733
+ MenuAvatar.style = menuAvatarCss;
734
+
735
+ const menuAvatarItemCss = ".sc-ix-menu-avatar-item-h{display:block}";
736
+
737
+ const MenuAvatarItem = class {
738
+ constructor(hostRef) {
739
+ registerInstance(this, hostRef);
740
+ this.itemClick = createEvent(this, "itemClick", 7);
741
+ }
742
+ render() {
743
+ return (h("ix-dropdown-item", { icon: this.icon, label: this.label, onClick: (e) => this.itemClick.emit(e) }));
744
+ }
745
+ get hostElement() { return getElement(this); }
746
+ };
747
+ MenuAvatarItem.style = menuAvatarItemCss;
748
+
749
+ const menuItemCss = "ix-menu-item{position:relative;display:block}ix-menu-item .tab{display:flex;position:relative;align-items:center;height:3rem;z-index:500;padding-left:1.25rem}ix-menu-item .tab:not(.selected){cursor:pointer}ix-menu-item .tab:not(.selected):not(.disabled):not(:disabled).hover,ix-menu-item .tab:not(.selected):not(.disabled):not(:disabled):hover{background-color:var(--theme-ghost--background--hover)}ix-menu-item .tab:not(.selected):not(.disabled):not(:disabled).active,ix-menu-item .tab:not(.selected):not(.disabled):not(:disabled):active{background-color:var(--theme-ghost--background--active)}ix-menu-item i.glyph{color:var(--theme-nav-item-primary-icon--color);position:relative}ix-menu-item .tab:focus{outline:none}ix-menu-item:focus{outline:none}ix-menu-item .tab:not(:last-child){margin-bottom:0.5rem}ix-menu-item .notification{display:inline-flex;position:absolute;top:-0.5rem;right:-50%}ix-menu-item .notification .pill{display:inline-flex;justify-content:center;align-items:center;height:1rem;min-width:1rem;position:relative;border-radius:6.25rem;background-color:var(--theme-color-primary);border-radius:6.25rem;font-size:0.75rem;font-weight:bold;line-height:1;font-family:Siemens Sans, Arial, sans-serif;color:var(--theme-color-primary--contrast);padding:0.25rem}ix-menu-item .tab-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--theme-nav-item-primary--color);margin:0 1.25rem}ix-menu-item.active .tab,ix-menu-item.selected .tab{background-color:var(--theme-nav-item-primary--background--selected)}ix-menu-item.active .tab::before,ix-menu-item.selected .tab::before{content:\"\";background-color:var(--theme-nav-item-primary--border-color--selected);height:3rem;width:0.25rem;left:0;position:absolute}ix-menu-item.active .tab>.glyph,ix-menu-item.selected .tab>.glyph{color:var(--theme-nav-item-primary-icon--color--selected)}ix-menu-item.disabled{color:var(--theme-color-weak-text);pointer-events:none;cursor:default}ix-menu-item.disabled .tab>.glyph{color:var(--theme-color-weak-text)}ix-menu-item.disabled .tab-text{color:var(--theme-color-weak-text)}ix-menu-item.home-tab,ix-menu-item[slot=home]{margin-bottom:1.5rem}ix-menu-item.bottom-tab,ix-menu-item[slot=bottom]{height:2.25rem}ix-menu-item.bottom-tab .tab,ix-menu-item[slot=bottom] .tab{height:2.25rem}ix-menu-item.bottom-tab .tab::before,ix-menu-item[slot=bottom] .tab::before{height:2.25rem}ix-menu-item.bottom-tab.active .tab,ix-menu-item.bottom-tab.selected .tab,ix-menu-item[slot=bottom].active .tab,ix-menu-item[slot=bottom].selected .tab{background-color:var(--theme-color-1)}";
750
+
751
+ const MenuItem = class {
752
+ constructor(hostRef) {
753
+ registerInstance(this, hostRef);
754
+ /**
755
+ * Move the Tab to a top position.
756
+ */
757
+ this.home = false;
758
+ /**
759
+ * Place tab on bottom
760
+ */
761
+ this.bottom = false;
762
+ /**
763
+ * Icon name from @siemens/ix-icons
764
+ */
765
+ this.tabIcon = 'document';
766
+ }
767
+ get tabLabel() {
768
+ return this.hostElement.querySelector('.tab-text');
769
+ }
770
+ componentDidRender() {
771
+ const spanElement = this.tabLabel;
772
+ const newTitle = spanElement.innerHTML.replace('&amp;', '&');
773
+ if (this.title !== newTitle) {
774
+ this.title = newTitle;
775
+ }
776
+ }
777
+ render() {
778
+ return (h(Host, { class: {
779
+ disabled: this.disabled,
780
+ 'home-tab': this.home,
781
+ 'bottom-tab': this.bottom,
782
+ active: this.active,
783
+ } }, h("li", { class: "tab", title: this.title }, h("i", { class: `glyph glyph-${this.tabIcon}` }, h("div", { class: "notification" }, this.notifications ? (h("div", { class: "pill" }, this.notifications)) : null)), h("span", { class: "tab-text text-default" }, h("slot", null)))));
784
+ }
785
+ get hostElement() { return getElement(this); }
786
+ };
787
+ MenuItem.style = menuItemCss;
788
+
789
+ const menuSettingsCss = ".text-xs.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text)}.text-s.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption-single.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text)}.text-default.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-single.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text)}.text-default-title.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-title-single.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}.text-l.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-single.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text)}.text-l-title.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-title-single.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text)}.text-h2.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text)}.text-xl.sc-ix-menu-settings{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text)}a.sc-ix-menu-settings{color:var(--theme-color-primary)}.sc-ix-menu-settings-h{display:block;background-color:var(--theme-nav-overlay--background);padding:0.75rem 1rem 1rem 2rem;flex-grow:1;position:absolute;width:100%;height:100%}.sc-ix-menu-settings-h .settings-header.sc-ix-menu-settings{display:flex;justify-content:space-between;flex-direction:row;align-items:center;height:2rem;margin-bottom:0.5rem}.sc-ix-menu-settings-h .settings-header.sc-ix-menu-settings h2.sc-ix-menu-settings{color:var(--theme-nav-overlay-header--color);margin-bottom:0}.sc-ix-menu-settings-h .settings-tabs.sc-ix-menu-settings{margin-bottom:1.5rem}";
790
+
791
+ const MenuAbout = class {
792
+ constructor(hostRef) {
793
+ registerInstance(this, hostRef);
794
+ this.close = createEvent(this, "close", 7);
795
+ /**
796
+ * Label
797
+ */
798
+ this.label = 'Settings';
799
+ /**
800
+ * Internal
801
+ */
802
+ this.show = false;
803
+ }
804
+ get settingsItems() {
805
+ return Array.from(this.el.querySelectorAll('ix-menu-settings-item'));
806
+ }
807
+ setTab(label) {
808
+ this.activeTabLabel = label;
809
+ this.settingsItems.forEach((i) => {
810
+ i.style.display = 'none';
811
+ if (i.label === this.activeTabLabel) {
812
+ i.style.display = 'block';
813
+ }
814
+ });
815
+ }
816
+ componentWillLoad() {
817
+ if (this.settingsItems.length) {
818
+ this.setTab(this.activeTabLabel || this.settingsItems[0].label);
819
+ }
820
+ }
821
+ componentDidLoad() {
822
+ forceUpdate(this.el);
823
+ }
824
+ watchActiveTabLabel(value) {
825
+ this.setTab(value);
826
+ }
827
+ getTabItems() {
828
+ return this.settingsItems.map(({ label }) => {
829
+ return (h("ix-tab-item", { class: {
830
+ active: label === this.activeTabLabel,
831
+ }, onClick: () => this.setTab(label) }, label));
832
+ });
833
+ }
834
+ render() {
835
+ return (h(Host, { class: {
836
+ animate__animated: true,
837
+ animate__fadeInLeft: this.show,
838
+ animate__fadeOutLeft: !this.show,
839
+ } }, h("div", { class: "settings-header" }, h("h2", { class: "text-h2" }, this.label), h("ix-icon-button", { ghost: true, size: "24", icon: "close", onClick: (e) => this.close.emit(e) })), h("ix-tabs", null, this.getTabItems()), h("slot", null)));
840
+ }
841
+ get el() { return getElement(this); }
842
+ static get watchers() { return {
843
+ "activeTabLabel": ["watchActiveTabLabel"]
844
+ }; }
845
+ };
846
+ MenuAbout.style = menuSettingsCss;
847
+
848
+ const menuSettingsItemCss = ".sc-ix-menu-settings-item-h{display:block}";
849
+
850
+ const MenuSettingsItem = class {
851
+ constructor(hostRef) {
852
+ registerInstance(this, hostRef);
853
+ }
854
+ render() {
855
+ return (h(Host, null, h("slot", null)));
856
+ }
857
+ };
858
+ MenuSettingsItem.style = menuSettingsItemCss;
859
+
860
+ export { Menu as ix_menu, MenuAbout$1 as ix_menu_about, MenuAboutItem as ix_menu_about_item, MenuAboutNews as ix_menu_about_news, MenuAvatar as ix_menu_avatar, MenuAvatarItem as ix_menu_avatar_item, MenuItem as ix_menu_item, MenuAbout as ix_menu_settings, MenuSettingsItem as ix_menu_settings_item };