@siemens/ix 1.1.0-beta.2 → 1.1.0-beta.4

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 (609) hide show
  1. package/dist/cjs/_commonjsHelpers-1a0c346f.js +23 -0
  2. package/dist/cjs/animation-dfe01edc.js +19 -0
  3. package/dist/cjs/anime.es-8822f296.js +1311 -0
  4. package/dist/cjs/base-button-eb1d47db.js +33 -0
  5. package/dist/cjs/default-tree-item-4597cd84.js +22 -0
  6. package/dist/cjs/flip-tile-state-c95639e5.js +18 -0
  7. package/dist/cjs/index-1e4a348f.js +1849 -0
  8. package/dist/cjs/index.cjs.js +96 -0
  9. package/dist/cjs/ix-animated-tab_2.cjs.entry.js +217 -0
  10. package/dist/cjs/ix-application-header.cjs.entry.js +30 -0
  11. package/dist/cjs/ix-basic-navigation.cjs.entry.js +44 -0
  12. package/dist/cjs/ix-blind.cjs.entry.js +89 -0
  13. package/dist/cjs/ix-breadcrumb_2.cjs.entry.js +155 -0
  14. package/dist/cjs/ix-button.cjs.entry.js +50 -0
  15. package/dist/cjs/ix-category-filter.cjs.entry.js +399 -0
  16. package/dist/cjs/ix-chip.cjs.entry.js +47 -0
  17. package/dist/cjs/ix-counter-pill.cjs.entry.js +40 -0
  18. package/dist/cjs/ix-date-picker_2.cjs.entry.js +9039 -0
  19. package/dist/cjs/ix-date-time-card.cjs.entry.js +36 -0
  20. package/dist/cjs/ix-datetime-picker.cjs.entry.js +113 -0
  21. package/dist/cjs/ix-drawer.cjs.entry.js +122 -0
  22. package/dist/cjs/ix-dropdown_2.cjs.entry.js +203 -0
  23. package/dist/cjs/ix-event-list_2.cjs.entry.js +151 -0
  24. package/dist/cjs/ix-expanding-search.cjs.entry.js +92 -0
  25. package/dist/cjs/ix-filter-chip.cjs.entry.js +30 -0
  26. package/dist/cjs/ix-flip-tile_2.cjs.entry.js +79 -0
  27. package/dist/cjs/ix-group_3.cjs.entry.js +174 -0
  28. package/dist/cjs/ix-icon-button.cjs.entry.js +40 -0
  29. package/dist/cjs/ix-icon.cjs.entry.js +33 -0
  30. package/dist/cjs/ix-input-group.cjs.entry.js +40 -0
  31. package/dist/cjs/ix-kpi.cjs.entry.js +50 -0
  32. package/dist/cjs/ix-map-navigation_2.cjs.entry.js +165 -0
  33. package/dist/cjs/ix-menu_9.cjs.entry.js +888 -0
  34. package/dist/cjs/ix-message-bar.cjs.entry.js +58 -0
  35. package/dist/cjs/ix-modal-example.cjs.entry.js +24 -0
  36. package/dist/cjs/ix-modal_2.cjs.entry.js +14 -0
  37. package/dist/cjs/ix-pill.cjs.entry.js +40 -0
  38. package/dist/cjs/ix-select_2.cjs.entry.js +309 -0
  39. package/dist/cjs/ix-spinner.cjs.entry.js +30 -0
  40. package/dist/cjs/ix-split-button_2.cjs.entry.js +114 -0
  41. package/dist/cjs/ix-tab-item.cjs.entry.js +67 -0
  42. package/dist/cjs/ix-tabs.cjs.entry.js +187 -0
  43. package/dist/cjs/ix-tile.cjs.entry.js +27 -0
  44. package/dist/cjs/ix-toast_2.cjs.entry.js +159 -0
  45. package/dist/cjs/ix-toggle.cjs.entry.js +82 -0
  46. package/dist/cjs/ix-tree_2.cjs.entry.js +690 -0
  47. package/dist/cjs/ix-upload.cjs.entry.js +139 -0
  48. package/dist/cjs/ix-validation-tooltip.cjs.entry.js +107 -0
  49. package/dist/cjs/ix-workflow-step_2.cjs.entry.js +191 -0
  50. package/dist/cjs/loader.cjs.js +21 -0
  51. package/dist/cjs/logical-filter-operator-467e2faf.js +35 -0
  52. package/dist/cjs/modal-5be2b1a3.js +221 -0
  53. package/dist/cjs/modal-utils-5d7bb217.js +42 -0
  54. package/dist/cjs/mutation-observer-29bedada.js +13 -0
  55. package/dist/cjs/my-component.cjs.entry.js +19 -0
  56. package/dist/cjs/popper-d7a0f999.js +1801 -0
  57. package/dist/cjs/rwd.util-482d41d4.js +42 -0
  58. package/dist/cjs/siemens-ix.cjs.js +19 -0
  59. package/dist/cjs/typed-event-8f5a32a2.js +46 -0
  60. package/dist/cjs/upload-file-state-923b2c65.js +17 -0
  61. package/dist/collection/collection-manifest.json +264 -0
  62. package/dist/collection/components/animated-tab/animated-tab.css +14 -0
  63. package/dist/collection/components/animated-tab/animated-tab.js +59 -0
  64. package/dist/collection/components/animated-tabs/animated-tabs.css +158 -0
  65. package/dist/collection/components/animated-tabs/animated-tabs.js +303 -0
  66. package/dist/collection/components/application-header/application-header.css +30 -0
  67. package/dist/collection/components/application-header/application-header.js +56 -0
  68. package/dist/collection/components/basic-navigation/basic-navigation.css +29 -0
  69. package/dist/collection/components/basic-navigation/basic-navigation.js +91 -0
  70. package/dist/collection/components/blind/blind.css +146 -0
  71. package/dist/collection/components/blind/blind.js +152 -0
  72. package/dist/collection/components/breadcrumb/breadcrumb.css +228 -0
  73. package/dist/collection/components/breadcrumb/breadcrumb.js +252 -0
  74. package/dist/collection/components/breadcrumb-item/breadcrumb-item.css +11 -0
  75. package/dist/collection/components/breadcrumb-item/breadcrumb-item.js +59 -0
  76. package/dist/collection/components/button/base-button.js +29 -0
  77. package/dist/collection/components/button/button.css +15 -0
  78. package/dist/collection/components/button/button.js +192 -0
  79. package/dist/collection/components/category-filter/category-filter.css +188 -0
  80. package/dist/collection/components/category-filter/category-filter.js +704 -0
  81. package/dist/collection/components/category-filter/filter-state.js +10 -0
  82. package/dist/collection/components/category-filter/input-state.js +17 -0
  83. package/dist/collection/components/category-filter/logical-filter-operator.js +13 -0
  84. package/dist/collection/components/chip/chip.css +475 -0
  85. package/dist/collection/components/chip/chip.js +197 -0
  86. package/dist/collection/components/counter-pill/counter-pill.css +313 -0
  87. package/dist/collection/components/counter-pill/counter-pill.js +137 -0
  88. package/dist/collection/components/date-picker/date-picker.css +224 -0
  89. package/dist/collection/components/date-picker/date-picker.js +679 -0
  90. package/dist/collection/components/date-picker/events.js +1 -0
  91. package/dist/collection/components/date-time-card/date-time-card.css +51 -0
  92. package/dist/collection/components/date-time-card/date-time-card.js +89 -0
  93. package/dist/collection/components/datetime-picker/datetime-picker.css +44 -0
  94. package/dist/collection/components/datetime-picker/datetime-picker.js +501 -0
  95. package/dist/collection/components/datetime-picker/event.js +9 -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 +126 -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 +127 -0
  107. package/dist/collection/components/expanding-search/expanding-search.js +178 -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 +328 -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 +988 -0
  134. package/dist/collection/components/menu-about/menu-about.css +207 -0
  135. package/dist/collection/components/menu-about/menu-about.js +167 -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 +143 -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 +431 -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 +237 -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 +86 -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 +236 -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 +15 -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 +43 -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 +385 -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 +184 -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 +124 -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 +182 -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 +120 -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 +619 -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-avatar-item.js +46 -0
  364. package/dist/components/menu-item.js +65 -0
  365. package/dist/components/modal-container.js +99 -0
  366. package/dist/components/modal-utils.js +38 -0
  367. package/dist/components/modal.js +189 -0
  368. package/dist/components/mutation-observer.js +11 -0
  369. package/dist/components/my-component.d.ts +11 -0
  370. package/dist/components/my-component.js +32 -0
  371. package/dist/components/popover.util.js +36 -0
  372. package/dist/components/popper.js +1799 -0
  373. package/dist/components/rwd.util.js +39 -0
  374. package/dist/components/select-item.js +71 -0
  375. package/dist/components/spinner.js +43 -0
  376. package/dist/components/tab-item.js +86 -0
  377. package/dist/components/tabs.js +207 -0
  378. package/dist/components/time-picker.js +193 -0
  379. package/dist/components/toast.js +123 -0
  380. package/dist/components/tree-item.js +52 -0
  381. package/dist/components/typed-event.js +44 -0
  382. package/dist/components/upload-file-state.js +17 -0
  383. package/dist/esm/_commonjsHelpers-4bc7200a.js +19 -0
  384. package/dist/esm/animation-b667a4c4.js +17 -0
  385. package/dist/esm/anime.es-185e9087.js +1309 -0
  386. package/dist/esm/base-button-7bfb747f.js +31 -0
  387. package/dist/esm/default-tree-item-638c435a.js +20 -0
  388. package/dist/esm/flip-tile-state-28a1f8ce.js +18 -0
  389. package/dist/esm/index-55cfd20d.js +1819 -0
  390. package/dist/esm/index.js +64 -0
  391. package/dist/esm/ix-animated-tab_2.entry.js +212 -0
  392. package/dist/esm/ix-application-header.entry.js +26 -0
  393. package/dist/esm/ix-basic-navigation.entry.js +40 -0
  394. package/dist/esm/ix-blind.entry.js +85 -0
  395. package/dist/esm/ix-breadcrumb_2.entry.js +150 -0
  396. package/dist/esm/ix-button.entry.js +46 -0
  397. package/dist/esm/ix-category-filter.entry.js +395 -0
  398. package/dist/esm/ix-chip.entry.js +43 -0
  399. package/dist/esm/ix-counter-pill.entry.js +36 -0
  400. package/dist/esm/ix-date-picker_2.entry.js +9034 -0
  401. package/dist/esm/ix-date-time-card.entry.js +32 -0
  402. package/dist/esm/ix-datetime-picker.entry.js +109 -0
  403. package/dist/esm/ix-drawer.entry.js +118 -0
  404. package/dist/esm/ix-dropdown_2.entry.js +198 -0
  405. package/dist/esm/ix-event-list_2.entry.js +146 -0
  406. package/dist/esm/ix-expanding-search.entry.js +88 -0
  407. package/dist/esm/ix-filter-chip.entry.js +26 -0
  408. package/dist/esm/ix-flip-tile_2.entry.js +74 -0
  409. package/dist/esm/ix-group_3.entry.js +168 -0
  410. package/dist/esm/ix-icon-button.entry.js +36 -0
  411. package/dist/esm/ix-icon.entry.js +29 -0
  412. package/dist/esm/ix-input-group.entry.js +36 -0
  413. package/dist/esm/ix-kpi.entry.js +46 -0
  414. package/dist/esm/ix-map-navigation_2.entry.js +160 -0
  415. package/dist/esm/ix-menu_9.entry.js +876 -0
  416. package/dist/esm/ix-message-bar.entry.js +54 -0
  417. package/dist/esm/ix-modal-example.entry.js +20 -0
  418. package/dist/esm/ix-modal_2.entry.js +5 -0
  419. package/dist/esm/ix-pill.entry.js +36 -0
  420. package/dist/esm/ix-select_2.entry.js +304 -0
  421. package/dist/esm/ix-spinner.entry.js +26 -0
  422. package/dist/esm/ix-split-button_2.entry.js +109 -0
  423. package/dist/esm/ix-tab-item.entry.js +63 -0
  424. package/dist/esm/ix-tabs.entry.js +183 -0
  425. package/dist/esm/ix-tile.entry.js +23 -0
  426. package/dist/esm/ix-toast_2.entry.js +154 -0
  427. package/dist/esm/ix-toggle.entry.js +78 -0
  428. package/dist/esm/ix-tree_2.entry.js +685 -0
  429. package/dist/esm/ix-upload.entry.js +135 -0
  430. package/dist/esm/ix-validation-tooltip.entry.js +103 -0
  431. package/dist/esm/ix-workflow-step_2.entry.js +186 -0
  432. package/dist/esm/loader.js +17 -0
  433. package/dist/esm/logical-filter-operator-1bf83315.js +33 -0
  434. package/dist/esm/modal-8ed87a6c.js +218 -0
  435. package/dist/esm/modal-utils-ec39c1bc.js +38 -0
  436. package/dist/esm/mutation-observer-379959bb.js +11 -0
  437. package/dist/esm/my-component.entry.js +15 -0
  438. package/dist/esm/polyfills/core-js.js +11 -0
  439. package/dist/esm/polyfills/css-shim.js +1 -0
  440. package/dist/esm/polyfills/dom.js +79 -0
  441. package/dist/esm/polyfills/es5-html-element.js +1 -0
  442. package/dist/esm/polyfills/index.js +34 -0
  443. package/dist/esm/polyfills/system.js +6 -0
  444. package/dist/esm/popper-42db9fbd.js +1799 -0
  445. package/dist/esm/rwd.util-33a69d24.js +39 -0
  446. package/dist/esm/siemens-ix.js +17 -0
  447. package/dist/esm/typed-event-dd6c83dd.js +44 -0
  448. package/dist/esm/upload-file-state-631bb8a2.js +17 -0
  449. package/dist/index.cjs.js +1 -0
  450. package/dist/index.js +1 -0
  451. package/dist/siemens-ix/index.esm.js +1 -0
  452. package/dist/siemens-ix/p-02501b64.entry.js +1 -0
  453. package/dist/siemens-ix/p-03ef9fe5.entry.js +1 -0
  454. package/dist/siemens-ix/p-0a12b3df.js +1 -0
  455. package/dist/siemens-ix/p-0bf04780.js +1 -0
  456. package/dist/siemens-ix/p-0e315bd7.entry.js +1 -0
  457. package/dist/siemens-ix/p-1c82637e.js +1 -0
  458. package/dist/siemens-ix/p-1d30454e.js +1 -0
  459. package/dist/siemens-ix/p-1d56d9b6.entry.js +1 -0
  460. package/dist/siemens-ix/p-235606b2.entry.js +1 -0
  461. package/dist/siemens-ix/p-2b7ed5d4.entry.js +1 -0
  462. package/dist/siemens-ix/p-301ddeb7.js +1 -0
  463. package/dist/siemens-ix/p-334b7d5c.entry.js +1 -0
  464. package/dist/siemens-ix/p-37417714.js +1 -0
  465. package/dist/siemens-ix/p-3f809fb3.entry.js +1 -0
  466. package/dist/siemens-ix/p-4287bd7e.entry.js +1 -0
  467. package/dist/siemens-ix/p-47ea9884.js +1 -0
  468. package/dist/siemens-ix/p-52d99490.entry.js +1 -0
  469. package/dist/siemens-ix/p-5a1dcc74.js +1 -0
  470. package/dist/siemens-ix/p-5f9f25ef.entry.js +1 -0
  471. package/dist/siemens-ix/p-5fed62f8.entry.js +1 -0
  472. package/dist/siemens-ix/p-6726f740.entry.js +1 -0
  473. package/dist/siemens-ix/p-67c2bca6.entry.js +1 -0
  474. package/dist/siemens-ix/p-6f625f0e.js +1 -0
  475. package/dist/siemens-ix/p-71de6498.entry.js +1 -0
  476. package/dist/siemens-ix/p-77823732.entry.js +1 -0
  477. package/dist/siemens-ix/p-78df1e46.entry.js +1 -0
  478. package/dist/siemens-ix/p-7d667916.entry.js +1 -0
  479. package/dist/siemens-ix/p-7f5a2e3c.entry.js +1 -0
  480. package/dist/siemens-ix/p-810b5232.js +1 -0
  481. package/dist/siemens-ix/p-81e46337.entry.js +1 -0
  482. package/dist/siemens-ix/p-8239c3a1.entry.js +1 -0
  483. package/dist/siemens-ix/p-893b7bf6.entry.js +1 -0
  484. package/dist/siemens-ix/p-94b86dec.entry.js +1 -0
  485. package/dist/siemens-ix/p-a49005f3.entry.js +1 -0
  486. package/dist/siemens-ix/p-a8396077.entry.js +1 -0
  487. package/dist/siemens-ix/p-ab715295.entry.js +1 -0
  488. package/dist/siemens-ix/p-b4003026.entry.js +1 -0
  489. package/dist/siemens-ix/p-b93c2fab.entry.js +1 -0
  490. package/dist/siemens-ix/p-bd15d8ca.entry.js +1 -0
  491. package/dist/siemens-ix/p-bdd294d2.js +1 -0
  492. package/dist/siemens-ix/p-be1ec062.entry.js +1 -0
  493. package/dist/siemens-ix/p-bf5513a0.entry.js +1 -0
  494. package/dist/siemens-ix/p-c0c9fb81.entry.js +1 -0
  495. package/dist/siemens-ix/p-c3738ffc.entry.js +1 -0
  496. package/dist/siemens-ix/p-c792adb4.entry.js +1 -0
  497. package/dist/siemens-ix/p-c9a5d942.entry.js +1 -0
  498. package/dist/siemens-ix/p-cb6e62ff.entry.js +1 -0
  499. package/dist/siemens-ix/p-cbd0f8a7.entry.js +1 -0
  500. package/dist/siemens-ix/p-d23706a7.js +1 -0
  501. package/dist/siemens-ix/p-d2fc562a.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-f2636faf.entry.js +1 -0
  505. package/dist/siemens-ix/p-f86fcdf4.js +1 -0
  506. package/dist/siemens-ix/p-fa44655a.entry.js +1 -0
  507. package/dist/siemens-ix/p-fbe40498.js +1 -0
  508. package/dist/siemens-ix/p-fe5db4d1.entry.js +1 -0
  509. package/dist/siemens-ix/siemens-ix.css +19249 -0
  510. package/dist/siemens-ix/siemens-ix.esm.js +1 -0
  511. package/dist/types/components/animated-tab/animated-tab.d.ts +11 -0
  512. package/dist/types/components/animated-tabs/animated-tabs.d.ts +44 -0
  513. package/dist/types/components/application-header/application-header.d.ts +10 -0
  514. package/dist/types/components/basic-navigation/basic-navigation.d.ts +16 -0
  515. package/dist/types/components/blind/blind.d.ts +26 -0
  516. package/dist/types/components/breadcrumb/breadcrumb.d.ts +48 -0
  517. package/dist/types/components/breadcrumb-item/breadcrumb-item.d.ts +11 -0
  518. package/dist/types/components/button/base-button.d.ts +13 -0
  519. package/dist/types/components/button/button.d.ts +34 -0
  520. package/dist/types/components/category-filter/category-filter.d.ts +129 -0
  521. package/dist/types/components/category-filter/filter-state.d.ts +9 -0
  522. package/dist/types/components/category-filter/input-state.d.ts +6 -0
  523. package/dist/types/components/category-filter/logical-filter-operator.d.ts +4 -0
  524. package/dist/types/components/chip/chip.d.ts +38 -0
  525. package/dist/types/components/counter-pill/counter-pill.d.ts +24 -0
  526. package/dist/types/components/date-picker/date-picker.d.ts +136 -0
  527. package/dist/types/components/date-picker/events.d.ts +5 -0
  528. package/dist/types/components/date-time-card/date-time-card.d.ts +14 -0
  529. package/dist/types/components/datetime-picker/datetime-picker.d.ts +128 -0
  530. package/dist/types/components/datetime-picker/event.d.ts +5 -0
  531. package/dist/types/components/drawer/drawer.d.ts +49 -0
  532. package/dist/types/components/dropdown/dropdown.d.ts +70 -0
  533. package/dist/types/components/dropdown-item/dropdown-item.d.ts +33 -0
  534. package/dist/types/components/event-list/event-list.d.ts +31 -0
  535. package/dist/types/components/event-list-item/event-list-item.d.ts +34 -0
  536. package/dist/types/components/expanding-search/expanding-search.d.ts +31 -0
  537. package/dist/types/components/filter-chip/filter-chip.d.ts +14 -0
  538. package/dist/types/components/flip-tile/flip-tile-state.d.ts +7 -0
  539. package/dist/types/components/flip-tile/flip-tile.d.ts +22 -0
  540. package/dist/types/components/flip-tile-content/flip-tile-content.d.ts +3 -0
  541. package/dist/types/components/group/group.d.ts +59 -0
  542. package/dist/types/components/group-dropdown-item/group-dropdown-item.d.ts +11 -0
  543. package/dist/types/components/group-item/group-item.d.ts +39 -0
  544. package/dist/types/components/icon/icon.d.ts +15 -0
  545. package/dist/types/components/icon-button/icon-button.d.ts +51 -0
  546. package/dist/types/components/input-group/input-group.d.ts +5 -0
  547. package/dist/types/components/kpi/kpi.d.ts +25 -0
  548. package/dist/types/components/map-navigation/map-navigation.d.ts +51 -0
  549. package/dist/types/components/map-navigation-overlay/map-navigation-overlay.d.ts +20 -0
  550. package/dist/types/components/menu/menu.d.ts +145 -0
  551. package/dist/types/components/menu-about/menu-about.d.ts +31 -0
  552. package/dist/types/components/menu-about-item/menu-about-item.d.ts +7 -0
  553. package/dist/types/components/menu-about-news/menu-about-news.d.ts +36 -0
  554. package/dist/types/components/menu-avatar/menu-avatar.d.ts +26 -0
  555. package/dist/types/components/menu-avatar-item/menu-avatar-item.d.ts +17 -0
  556. package/dist/types/components/menu-item/menu-item.d.ts +31 -0
  557. package/dist/types/components/menu-settings/menu-settings.d.ts +27 -0
  558. package/dist/types/components/menu-settings-item/menu-settings-item.d.ts +7 -0
  559. package/dist/types/components/message-bar/message-bar.d.ts +23 -0
  560. package/dist/types/components/modal/modal-utils.d.ts +26 -0
  561. package/dist/types/components/modal/modal.d.ts +99 -0
  562. package/dist/types/components/modal-container/modal-container.d.ts +15 -0
  563. package/dist/types/components/my-component/example-modal.d.ts +6 -0
  564. package/dist/types/components/my-component/my-component.d.ts +3 -0
  565. package/dist/types/components/pill/pill.d.ts +28 -0
  566. package/dist/types/components/select/select.d.ts +83 -0
  567. package/dist/types/components/select-item/select-item.d.ts +31 -0
  568. package/dist/types/components/spinner/spinner.d.ts +11 -0
  569. package/dist/types/components/split-button/split-button.d.ts +57 -0
  570. package/dist/types/components/split-button-item/split-button-item.d.ts +17 -0
  571. package/dist/types/components/tab-item/tab-item.d.ts +36 -0
  572. package/dist/types/components/tabs/tabs.d.ts +46 -0
  573. package/dist/types/components/tile/tile.d.ts +7 -0
  574. package/dist/types/components/time-picker/time-picker.d.ts +80 -0
  575. package/dist/types/components/toast/toast-container.d.ts +25 -0
  576. package/dist/types/components/toast/toast-utils.d.ts +33 -0
  577. package/dist/types/components/toast/toast.d.ts +39 -0
  578. package/dist/types/components/toggle/toggle.d.ts +45 -0
  579. package/dist/types/components/tree/tree-model.d.ts +17 -0
  580. package/dist/types/components/tree/tree.d.ts +44 -0
  581. package/dist/types/components/tree-item/default-tree-item.d.ts +6 -0
  582. package/dist/types/components/tree-item/tree-item.d.ts +25 -0
  583. package/dist/types/components/upload/upload-file-state.d.ts +6 -0
  584. package/dist/types/components/upload/upload.d.ts +70 -0
  585. package/dist/types/components/utils/animation.d.ts +7 -0
  586. package/dist/types/components/utils/button-variants.d.ts +1 -0
  587. package/dist/types/components/utils/mutation-observer.d.ts +1 -0
  588. package/dist/types/components/utils/notification-color.d.ts +4 -0
  589. package/dist/types/components/utils/popover.util.d.ts +9 -0
  590. package/dist/types/components/utils/rwd.util.d.ts +2 -0
  591. package/dist/types/components/utils/toggle-theme.d.ts +1 -0
  592. package/dist/types/components/utils/typed-event.d.ts +15 -0
  593. package/dist/types/components/validation-tooltip/validation-tooltip.d.ts +31 -0
  594. package/dist/types/components/workflow-step/workflow-step.d.ts +35 -0
  595. package/dist/types/components/workflow-steps/workflow-steps.d.ts +29 -0
  596. package/dist/types/components.d.ts +3689 -0
  597. package/dist/types/env.d.ts +1 -0
  598. package/dist/types/exports.d.ts +7 -0
  599. package/dist/types/index.d.ts +11 -0
  600. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  601. package/dist/types/utils/test/index.d.ts +1 -0
  602. package/dist/types/utils/test/page.d.ts +3 -0
  603. package/loader/cdn.js +3 -0
  604. package/loader/index.cjs.js +3 -0
  605. package/loader/index.d.ts +12 -0
  606. package/loader/index.es2017.js +3 -0
  607. package/loader/index.js +4 -0
  608. package/loader/package.json +10 -0
  609. package/package.json +1 -1
@@ -0,0 +1,988 @@
1
+ /*
2
+ * SPDX-FileCopyrightText: 2022 Siemens AG
3
+ *
4
+ * SPDX-License-Identifier: MIT
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { Component, Element, Event, h, Host, Listen, Method, Prop, State, } from '@stencil/core';
10
+ import { Popover } from '../utils/popover.util';
11
+ import { convertToRemString } from '../utils/rwd.util';
12
+ import { toggleVariant } from '../utils/toggle-theme';
13
+ export class Menu {
14
+ constructor() {
15
+ /**
16
+ * Is settings tab visible
17
+ */
18
+ this.showSettings = false;
19
+ /**
20
+ * Is about tab visible
21
+ */
22
+ this.showAbout = false;
23
+ /**
24
+ * Show toggle between light and dark variant. Only if the provided theme have implemented both!
25
+ */
26
+ this.enableToggleTheme = false;
27
+ /**
28
+ * Is settings tab is visible
29
+ */
30
+ this.enableSettings = true;
31
+ /**
32
+ * Internal
33
+ */
34
+ this.enableMapExpand = false;
35
+ /**
36
+ * Should only be set if you use ix-menu standalone
37
+ */
38
+ this.applicationDescription = '';
39
+ /**
40
+ * Maximum number of menu items to show in case enough vertical space is available.
41
+ * Extra menu items will be collapsed to 'show more' menu item.
42
+ */
43
+ this.maxVisibleMenuItems = 9;
44
+ /**
45
+ */
46
+ this.i18nLegal = 'About & legal information';
47
+ /**
48
+ */
49
+ this.i18nSettings = 'Settings';
50
+ /**
51
+ */
52
+ this.i18nToggleTheme = 'Toggle theme';
53
+ /**
54
+ */
55
+ this.i18nExpand = ' Expand';
56
+ /**
57
+ */
58
+ this.i18nCollapse = 'Collapse';
59
+ /**
60
+ */
61
+ this.i18nMore = 'More…';
62
+ /**
63
+ * Expand menu
64
+ */
65
+ this.expand = false;
66
+ this.showMoreItems = false;
67
+ this.visibleMenuItems = 0;
68
+ this.countMoreNotifications = 0;
69
+ this.mapExpand = true;
70
+ this.isMoreTabEmpty = false;
71
+ this.domObserver = new MutationObserver(this.onDomChange.bind(this));
72
+ // FBC IAM workaround #488
73
+ this.isVisible = (elm) => {
74
+ var _a, _b;
75
+ return (elm.style.display !== 'none' &&
76
+ ((_b = (_a = elm.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.style.display) !== 'none');
77
+ };
78
+ }
79
+ onWindowResize() {
80
+ this.visibleMenuItems = this.getMaxTabCount();
81
+ }
82
+ handleNodeMutation(node) {
83
+ if (!(node instanceof HTMLElement)) {
84
+ return;
85
+ }
86
+ if (node.matches('.tab')) {
87
+ this.onWindowResize();
88
+ }
89
+ if (node.matches('ix-menu-about') && this.menu.contains(node)) {
90
+ this.appendAbout();
91
+ }
92
+ if (node.matches('ix-menu-settings') && this.menu.contains(node)) {
93
+ this.appendSettings();
94
+ }
95
+ }
96
+ onDomChange(mutations) {
97
+ mutations.forEach((mutationRecord) => {
98
+ mutationRecord.addedNodes.forEach(this.handleNodeMutation.bind(this));
99
+ mutationRecord.removedNodes.forEach(this.handleNodeMutation.bind(this));
100
+ });
101
+ }
102
+ get popoverArea() {
103
+ return this.hostElement.querySelector('#popover-area');
104
+ }
105
+ get overlayContainer() {
106
+ return this.hostElement.querySelector('.menu-overlay');
107
+ }
108
+ get invisibleContainer() {
109
+ return this.hostElement.querySelector('.menu-overlay-invisible');
110
+ }
111
+ get menu() {
112
+ return this.hostElement.querySelector('.menu');
113
+ }
114
+ get menuItems() {
115
+ return Array.from(this.hostElement.querySelectorAll('ix-menu-item:not(.internal-tab):not(.home-tab):not(.bottom-tab)')).filter(this.isVisible);
116
+ }
117
+ get menuBottomItems() {
118
+ return Array.from(this.hostElement.querySelectorAll('ix-menu-item.bottom-tab:not(.internal-tab):not(.home-tab)')).filter(this.isVisible);
119
+ }
120
+ get homeTab() {
121
+ return this.hostElement.querySelector('ix-menu-item.home-tab');
122
+ }
123
+ get moreItemsDropdown() {
124
+ return this.hostElement.querySelector('.internal-tab ix-dropdown');
125
+ }
126
+ get isMoreItemsDropdownEmpty() {
127
+ return (this.hostElement.querySelectorAll('.internal-tab ix-dropdown .appended')
128
+ .length === 0);
129
+ }
130
+ get moreItemsDropdownItems() {
131
+ return this.hostElement.querySelectorAll('.internal-tab ix-dropdown ix-menu-item');
132
+ }
133
+ get activeMoreTabContainer() {
134
+ return this.hostElement.querySelector('.active-more-tab');
135
+ }
136
+ get activeMoreTab() {
137
+ return this.hostElement.querySelector('.active-more-tab ix-menu-item');
138
+ }
139
+ get aboutPopoverContainer() {
140
+ return this.hostElement.querySelector('.about-news');
141
+ }
142
+ get aboutPopover() {
143
+ return document.querySelector('ix-menu-about-news');
144
+ }
145
+ get aboutTab() {
146
+ return this.hostElement.querySelector('#aboutAndLegal');
147
+ }
148
+ get about() {
149
+ return this.hostElement.querySelector('ix-menu-about');
150
+ }
151
+ get settings() {
152
+ return this.hostElement.querySelector('ix-menu-settings');
153
+ }
154
+ get isSettingsEmpty() {
155
+ return (Array.from(this.hostElement.querySelectorAll('ix-menu-settings-item'))
156
+ .length === 0);
157
+ }
158
+ get avatarItem() {
159
+ return this.hostElement.querySelector('ix-menu-avatar');
160
+ }
161
+ get tabsContainer() {
162
+ return this.hostElement.querySelector('#menu-tabs');
163
+ }
164
+ showTab(index) {
165
+ return index + 1 <= this.visibleMenuItems;
166
+ }
167
+ componentDidLoad() {
168
+ var _a, _b, _c, _d;
169
+ const anchor = this.hostElement.querySelector('#more-tab');
170
+ this.popoverListener = new Popover(anchor, this.moreItemsDropdown, () => {
171
+ this.showMoreItems = false;
172
+ });
173
+ (_a = this.settings) === null || _a === void 0 ? void 0 : _a.addEventListener('close', () => {
174
+ this.showSettings = false;
175
+ this.settings.show = this.showSettings;
176
+ });
177
+ (_b = this.settings) === null || _b === void 0 ? void 0 : _b.addEventListener('animationend', () => {
178
+ if (!this.showSettings) {
179
+ this.settings.classList.add('d-none');
180
+ this.overlayContainer.classList.add('d-none');
181
+ }
182
+ });
183
+ (_c = this.about) === null || _c === void 0 ? void 0 : _c.addEventListener('close', () => {
184
+ this.showAbout = false;
185
+ this.about.show = this.showAbout;
186
+ });
187
+ (_d = this.about) === null || _d === void 0 ? void 0 : _d.addEventListener('animationend', () => {
188
+ if (!this.showAbout) {
189
+ this.about.classList.add('d-none');
190
+ this.overlayContainer.classList.add('d-none');
191
+ }
192
+ });
193
+ this.overlayContainer.classList.add('d-none');
194
+ this.onWindowResize();
195
+ this.domObserver.observe(this.hostElement, {
196
+ attributes: false,
197
+ childList: true,
198
+ subtree: true,
199
+ });
200
+ }
201
+ disconnectedCallback() {
202
+ var _a;
203
+ (_a = this.popoverListener) === null || _a === void 0 ? void 0 : _a.destroy();
204
+ }
205
+ componentWillRender() {
206
+ this.appendTabs();
207
+ }
208
+ componentDidRender() {
209
+ this.visibleMenuItems = this.getMaxTabCount();
210
+ this.appendFragments();
211
+ }
212
+ appendFragments() {
213
+ this.appendAvatar();
214
+ this.appendAbout();
215
+ this.appendSettings();
216
+ this.appendAboutNewsPopover();
217
+ // This lead to none infinite-loops and other bugs.
218
+ this.isMoreTabEmpty = this.isMoreItemsDropdownEmpty;
219
+ this.countMoreNotifications = this.getMoreNotificationsCount();
220
+ }
221
+ resetActiveTab() {
222
+ this.activeTab = null;
223
+ }
224
+ isMenuItemActive(item) {
225
+ return item.active || item.classList.contains('active');
226
+ }
227
+ appendTabs() {
228
+ this.activeTab = null;
229
+ if (this.homeTab) {
230
+ this.hostElement.querySelector('.tabs-top').appendChild(this.homeTab);
231
+ this.homeTab.addEventListener('click', this.resetOverlay);
232
+ }
233
+ this.menuItems.forEach((item, index) => {
234
+ var _a;
235
+ if (this.showTab(index)) {
236
+ item.classList.remove('d-none');
237
+ }
238
+ else {
239
+ item.classList.add('d-none');
240
+ if (this.isMenuItemActive(item)) {
241
+ this.activeTab = item;
242
+ }
243
+ }
244
+ // TODO: Find better solution to handle home tab
245
+ (_a = this.homeTab) === null || _a === void 0 ? void 0 : _a.classList.remove('d-none');
246
+ item.addEventListener('click', this.resetOverlay);
247
+ });
248
+ }
249
+ appendAvatar() {
250
+ var _a;
251
+ const avatar = this.avatarItem;
252
+ if (avatar) {
253
+ avatar.style.marginBottom = '1rem';
254
+ (_a = this.hostElement
255
+ .querySelector('#avatar-tab-placeholder')) === null || _a === void 0 ? void 0 : _a.appendChild(avatar);
256
+ }
257
+ }
258
+ getAboutPopoverVerticalPosition() {
259
+ const heightArrow = 12;
260
+ const offsetArrow = 6;
261
+ const rectAbout = this.aboutTab.getBoundingClientRect();
262
+ const offset = window.innerHeight -
263
+ (rectAbout.bottom - rectAbout.height / 2 + heightArrow / 2 + offsetArrow);
264
+ return convertToRemString(offset);
265
+ }
266
+ appendAboutNewsPopover() {
267
+ var _a;
268
+ if (!this.aboutPopover) {
269
+ return;
270
+ }
271
+ this.aboutPopover.style.bottom = this.getAboutPopoverVerticalPosition();
272
+ if (!((_a = this.popoverArea) === null || _a === void 0 ? void 0 : _a.contains(this.aboutPopover))) {
273
+ const showMore = () => {
274
+ var _a;
275
+ if ((_a = this.aboutPopover) === null || _a === void 0 ? void 0 : _a.aboutItemLabel) {
276
+ this.about.activeTabLabel = this.aboutPopover.aboutItemLabel;
277
+ this.toggleAbout(true);
278
+ }
279
+ };
280
+ this.aboutPopover.addEventListener('showMore', showMore.bind(this));
281
+ document.body.appendChild(this.aboutPopover);
282
+ }
283
+ }
284
+ appendSettings() {
285
+ if (this.settings) {
286
+ this.overlayContainer.appendChild(this.settings);
287
+ }
288
+ }
289
+ appendAbout() {
290
+ if (this.about) {
291
+ this.overlayContainer.appendChild(this.about);
292
+ }
293
+ }
294
+ getMoreNotificationsCount() {
295
+ var _a;
296
+ const moreTabs = (_a = this.moreItemsDropdown) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.appended');
297
+ let count = 0;
298
+ moreTabs === null || moreTabs === void 0 ? void 0 : moreTabs.forEach((tab) => {
299
+ if (tab['notifications']) {
300
+ count += tab['notifications'];
301
+ }
302
+ });
303
+ return count;
304
+ }
305
+ getAvailableHeight() {
306
+ const heightBurgerMenu = 60;
307
+ const heightHome = 72;
308
+ const heightAvatar = 56;
309
+ const heightBottomTab = 36;
310
+ let availableHeight = this.hostElement.clientHeight;
311
+ availableHeight -= heightBurgerMenu;
312
+ if (this.avatarItem) {
313
+ availableHeight -= heightAvatar;
314
+ }
315
+ if (this.homeTab) {
316
+ availableHeight -= heightHome;
317
+ }
318
+ if (this.showAbout) {
319
+ availableHeight -= heightBottomTab;
320
+ }
321
+ if (this.showSettings) {
322
+ availableHeight -= heightBottomTab;
323
+ }
324
+ if (this.menuBottomItems.length) {
325
+ availableHeight -= this.menuBottomItems.length * heightBottomTab;
326
+ }
327
+ if (this.enableMapExpand) {
328
+ availableHeight -= heightBottomTab;
329
+ }
330
+ // Subtract height of imprint and theme toggle tabs
331
+ availableHeight -= 2 * heightBottomTab;
332
+ // Subtract bottom margin of bottom tabs
333
+ availableHeight -= 16;
334
+ return availableHeight;
335
+ }
336
+ getMaxTabCount() {
337
+ const heightTab = 48;
338
+ const availableHeight = this.getAvailableHeight();
339
+ const visibleCount = Math.floor(availableHeight / heightTab);
340
+ const menuItemCount = this.menuItems.length;
341
+ if (menuItemCount === 1) {
342
+ return 1;
343
+ }
344
+ if (menuItemCount < this.maxVisibleMenuItems) {
345
+ if (visibleCount > menuItemCount) {
346
+ return menuItemCount;
347
+ }
348
+ return Math.min(visibleCount - 2, menuItemCount);
349
+ }
350
+ if (menuItemCount === this.maxVisibleMenuItems) {
351
+ if (visibleCount < this.maxVisibleMenuItems) {
352
+ return visibleCount - 2;
353
+ }
354
+ if (visibleCount === this.maxVisibleMenuItems) {
355
+ return this.maxVisibleMenuItems - 2;
356
+ }
357
+ return Math.min(visibleCount, this.maxVisibleMenuItems);
358
+ }
359
+ if (visibleCount === this.maxVisibleMenuItems) {
360
+ return this.maxVisibleMenuItems - 2;
361
+ }
362
+ if (visibleCount >= this.maxVisibleMenuItems) {
363
+ return this.maxVisibleMenuItems - 1;
364
+ }
365
+ return Math.min(visibleCount - 2, this.maxVisibleMenuItems);
366
+ }
367
+ toggleShowMoreDropdown() {
368
+ if (this.moreItemsDropdown.querySelectorAll('.appended').length === 0) {
369
+ return;
370
+ }
371
+ this.popoverListener.open();
372
+ this.showMoreItems = !this.showMoreItems;
373
+ }
374
+ /**
375
+ * Toggle map sidebar expand
376
+ * @param show
377
+ */
378
+ async toggleMapExpand(show) {
379
+ this.skipAllOverlayAnimations();
380
+ if (show !== undefined) {
381
+ this.mapExpand = show;
382
+ }
383
+ else {
384
+ this.mapExpand = !this.mapExpand;
385
+ }
386
+ }
387
+ skipAllOverlayAnimations() {
388
+ if (this.about) {
389
+ this.skipOverlayAnimationFor(this.about);
390
+ }
391
+ if (this.settings) {
392
+ this.skipOverlayAnimationFor(this.settings);
393
+ }
394
+ }
395
+ skipOverlayAnimationFor(element) {
396
+ const animateClass = 'animate__animated';
397
+ element === null || element === void 0 ? void 0 : element.classList.remove(animateClass);
398
+ setTimeout(() => {
399
+ element === null || element === void 0 ? void 0 : element.classList.add(animateClass);
400
+ }, 300);
401
+ }
402
+ /**
403
+ * Toggle menu
404
+ * @param show
405
+ */
406
+ async toggleMenu(show) {
407
+ this.skipAllOverlayAnimations();
408
+ if (show !== undefined) {
409
+ this.expand = show;
410
+ }
411
+ else {
412
+ this.expand = !this.expand;
413
+ }
414
+ if (this.aboutPopover) {
415
+ this.aboutPopover.expanded = this.expand;
416
+ }
417
+ this.expandChange.emit(this.expand);
418
+ }
419
+ /**
420
+ * Toggle Settings tabs
421
+ * @param show
422
+ */
423
+ async toggleSettings(show) {
424
+ var _a;
425
+ if (this.showAbout) {
426
+ this.skipAllOverlayAnimations();
427
+ }
428
+ else {
429
+ this.skipOverlayAnimationFor(this.about);
430
+ }
431
+ (_a = this.about) === null || _a === void 0 ? void 0 : _a.classList.add('d-none');
432
+ this.resetOverlay();
433
+ this.showSettings = show;
434
+ this.settings.show = this.showSettings;
435
+ this.settings.classList.remove('d-none');
436
+ this.overlayContainer.classList.remove('d-none');
437
+ }
438
+ /**
439
+ * Toggle About tabs
440
+ * @param show
441
+ */
442
+ async toggleAbout(show) {
443
+ var _a;
444
+ if (this.showSettings) {
445
+ this.skipAllOverlayAnimations();
446
+ }
447
+ else {
448
+ this.skipOverlayAnimationFor(this.settings);
449
+ }
450
+ (_a = this.settings) === null || _a === void 0 ? void 0 : _a.classList.add('d-none');
451
+ this.resetOverlay();
452
+ this.showAbout = show;
453
+ this.about.show = this.showAbout;
454
+ this.about.classList.remove('d-none');
455
+ this.overlayContainer.classList.remove('d-none');
456
+ }
457
+ resetOverlay() {
458
+ this.showSettings = false;
459
+ this.showAbout = false;
460
+ if (this.settings) {
461
+ this.settings.show = this.showSettings;
462
+ }
463
+ if (this.about) {
464
+ this.about.show = this.showAbout;
465
+ }
466
+ }
467
+ showMoreButton() {
468
+ const menuItemCount = this.menuItems.length;
469
+ if (menuItemCount === 1) {
470
+ return false;
471
+ }
472
+ if (menuItemCount < this.maxVisibleMenuItems) {
473
+ return this.visibleMenuItems < menuItemCount;
474
+ }
475
+ if (menuItemCount > this.maxVisibleMenuItems) {
476
+ return this.visibleMenuItems < this.maxVisibleMenuItems;
477
+ }
478
+ return this.visibleMenuItems <= this.maxVisibleMenuItems - 2;
479
+ }
480
+ getCollapseText() {
481
+ return this.mapExpand ? this.i18nCollapse : this.i18nExpand;
482
+ }
483
+ getCollapseIcon() {
484
+ return this.mapExpand ? 'double-chevron-left' : 'double-chevron-right';
485
+ }
486
+ isMenuItemClicked(event) {
487
+ const path = event.composedPath();
488
+ const menuItems = path
489
+ .filter((element) => element.id !== 'more-tab')
490
+ .filter((element) => {
491
+ return element.tagName === 'IX-MENU-ITEM';
492
+ });
493
+ return menuItems.some((menu) => this.tabsContainer.contains(menu));
494
+ }
495
+ render() {
496
+ return (h(Host, { class: {
497
+ expanded: this.expand,
498
+ } },
499
+ h("div", { class: {
500
+ menu: true,
501
+ expanded: this.expand,
502
+ }, onClick: () => {
503
+ this.resetActiveTab();
504
+ } },
505
+ h("div", { onClick: async () => this.toggleMenu(), class: {
506
+ 'burger-menu-button': true,
507
+ expanded: this.expand,
508
+ } },
509
+ h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "32", height: "32" },
510
+ h("rect", { class: "line line-1", x: "5", y: "9.5", width: "22", height: "2" }),
511
+ h("rect", { class: "line line-2", x: "5", y: "15.5", width: "22", height: "2" }),
512
+ h("rect", { class: "line line-3", x: "5", y: "21.5", width: "22", height: "2" }))),
513
+ h("div", { id: "avatar-tab-placeholder" }),
514
+ h("div", { id: "menu-tabs", style: {
515
+ display: 'contents',
516
+ }, onClick: (event) => {
517
+ if (this.isMenuItemClicked(event)) {
518
+ this.resetOverlay();
519
+ }
520
+ } },
521
+ h("div", { class: "tabs-top" }),
522
+ h("slot", null),
523
+ 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),
524
+ h("ix-menu-item", { id: "more-tab", tabIcon: "more-menu", class: {
525
+ 'internal-tab': true,
526
+ }, style: {
527
+ display: this.showMoreButton() ? 'block' : 'none',
528
+ }, title: "Show more", notifications: this.countMoreNotifications, onClick: () => this.toggleShowMoreDropdown() },
529
+ this.i18nMore,
530
+ h("ix-dropdown", { show: this.showMoreItems }, this.menuItems
531
+ .filter((elm, index) => !this.showTab(index) &&
532
+ !this.isMenuItemActive(elm) &&
533
+ this.isVisible(elm))
534
+ .map((e) => {
535
+ return (h("ix-menu-item", { tabIcon: e.tabIcon, active: e.active, class: "internal-tab appended", onClick: () => e.dispatchEvent(new CustomEvent('click')) }, e.innerText));
536
+ })))),
537
+ h("div", { class: "bottom-tab-divider" }),
538
+ this.enableSettings && !this.isSettingsEmpty ? (h("ix-menu-item", { id: "settings", class: {
539
+ 'internal-tab': true,
540
+ 'bottom-tab': true,
541
+ active: this.showSettings,
542
+ }, tabIcon: "cogwheel", onClick: async () => this.toggleSettings(!this.showSettings) }, this.i18nSettings)) : null,
543
+ h("slot", { name: "bottom" }),
544
+ h("div", { id: "popover-area" }),
545
+ this.about ? (h("ix-menu-item", { id: "aboutAndLegal", class: {
546
+ 'internal-tab': true,
547
+ 'bottom-tab': true,
548
+ active: this.showAbout,
549
+ }, tabIcon: "info", onClick: async () => this.toggleAbout(!this.showAbout) }, this.i18nLegal)) : null,
550
+ this.enableToggleTheme ? (h("ix-menu-item", { id: "toggleTheme", onClick: () => toggleVariant(), class: "internal-tab bottom-tab", tabIcon: "bulb" }, this.i18nToggleTheme)) : null,
551
+ 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),
552
+ h("div", { class: {
553
+ 'menu-overlay': true,
554
+ expanded: this.expand,
555
+ 'd-block': this.showAbout || this.showSettings,
556
+ }, style: {
557
+ opacity: this.showAbout || this.showSettings ? '1' : '0',
558
+ } }),
559
+ h("div", { class: "menu-overlay-invisible" })));
560
+ }
561
+ static get is() { return "ix-menu"; }
562
+ static get originalStyleUrls() { return {
563
+ "$": ["menu.scss"]
564
+ }; }
565
+ static get styleUrls() { return {
566
+ "$": ["menu.css"]
567
+ }; }
568
+ static get properties() { return {
569
+ "showSettings": {
570
+ "type": "boolean",
571
+ "mutable": true,
572
+ "complexType": {
573
+ "original": "boolean",
574
+ "resolved": "boolean",
575
+ "references": {}
576
+ },
577
+ "required": false,
578
+ "optional": false,
579
+ "docs": {
580
+ "tags": [],
581
+ "text": "Is settings tab visible"
582
+ },
583
+ "attribute": "show-settings",
584
+ "reflect": false,
585
+ "defaultValue": "false"
586
+ },
587
+ "showAbout": {
588
+ "type": "boolean",
589
+ "mutable": true,
590
+ "complexType": {
591
+ "original": "boolean",
592
+ "resolved": "boolean",
593
+ "references": {}
594
+ },
595
+ "required": false,
596
+ "optional": false,
597
+ "docs": {
598
+ "tags": [],
599
+ "text": "Is about tab visible"
600
+ },
601
+ "attribute": "show-about",
602
+ "reflect": false,
603
+ "defaultValue": "false"
604
+ },
605
+ "enableToggleTheme": {
606
+ "type": "boolean",
607
+ "mutable": false,
608
+ "complexType": {
609
+ "original": "boolean",
610
+ "resolved": "boolean",
611
+ "references": {}
612
+ },
613
+ "required": false,
614
+ "optional": false,
615
+ "docs": {
616
+ "tags": [],
617
+ "text": "Show toggle between light and dark variant. Only if the provided theme have implemented both!"
618
+ },
619
+ "attribute": "enable-toggle-theme",
620
+ "reflect": false,
621
+ "defaultValue": "false"
622
+ },
623
+ "enableSettings": {
624
+ "type": "boolean",
625
+ "mutable": false,
626
+ "complexType": {
627
+ "original": "boolean",
628
+ "resolved": "boolean",
629
+ "references": {}
630
+ },
631
+ "required": false,
632
+ "optional": false,
633
+ "docs": {
634
+ "tags": [],
635
+ "text": "Is settings tab is visible"
636
+ },
637
+ "attribute": "enable-settings",
638
+ "reflect": false,
639
+ "defaultValue": "true"
640
+ },
641
+ "enableMapExpand": {
642
+ "type": "boolean",
643
+ "mutable": false,
644
+ "complexType": {
645
+ "original": "boolean",
646
+ "resolved": "boolean",
647
+ "references": {}
648
+ },
649
+ "required": false,
650
+ "optional": false,
651
+ "docs": {
652
+ "tags": [],
653
+ "text": "Internal"
654
+ },
655
+ "attribute": "enable-map-expand",
656
+ "reflect": false,
657
+ "defaultValue": "false"
658
+ },
659
+ "applicationName": {
660
+ "type": "string",
661
+ "mutable": false,
662
+ "complexType": {
663
+ "original": "string",
664
+ "resolved": "string",
665
+ "references": {}
666
+ },
667
+ "required": false,
668
+ "optional": false,
669
+ "docs": {
670
+ "tags": [],
671
+ "text": "Should only be set if you use ix-menu standalone"
672
+ },
673
+ "attribute": "application-name",
674
+ "reflect": false
675
+ },
676
+ "applicationDescription": {
677
+ "type": "string",
678
+ "mutable": false,
679
+ "complexType": {
680
+ "original": "string",
681
+ "resolved": "string",
682
+ "references": {}
683
+ },
684
+ "required": false,
685
+ "optional": false,
686
+ "docs": {
687
+ "tags": [],
688
+ "text": "Should only be set if you use ix-menu standalone"
689
+ },
690
+ "attribute": "application-description",
691
+ "reflect": false,
692
+ "defaultValue": "''"
693
+ },
694
+ "maxVisibleMenuItems": {
695
+ "type": "number",
696
+ "mutable": false,
697
+ "complexType": {
698
+ "original": "number",
699
+ "resolved": "number",
700
+ "references": {}
701
+ },
702
+ "required": false,
703
+ "optional": false,
704
+ "docs": {
705
+ "tags": [],
706
+ "text": "Maximum number of menu items to show in case enough vertical space is available.\nExtra menu items will be collapsed to 'show more' menu item."
707
+ },
708
+ "attribute": "max-visible-menu-items",
709
+ "reflect": false,
710
+ "defaultValue": "9"
711
+ },
712
+ "i18nLegal": {
713
+ "type": "string",
714
+ "mutable": false,
715
+ "complexType": {
716
+ "original": "string",
717
+ "resolved": "string",
718
+ "references": {}
719
+ },
720
+ "required": false,
721
+ "optional": false,
722
+ "docs": {
723
+ "tags": [],
724
+ "text": ""
725
+ },
726
+ "attribute": "i-1-8n-legal",
727
+ "reflect": false,
728
+ "defaultValue": "'About & legal information'"
729
+ },
730
+ "i18nSettings": {
731
+ "type": "string",
732
+ "mutable": false,
733
+ "complexType": {
734
+ "original": "string",
735
+ "resolved": "string",
736
+ "references": {}
737
+ },
738
+ "required": false,
739
+ "optional": false,
740
+ "docs": {
741
+ "tags": [],
742
+ "text": ""
743
+ },
744
+ "attribute": "i-1-8n-settings",
745
+ "reflect": false,
746
+ "defaultValue": "'Settings'"
747
+ },
748
+ "i18nToggleTheme": {
749
+ "type": "string",
750
+ "mutable": false,
751
+ "complexType": {
752
+ "original": "string",
753
+ "resolved": "string",
754
+ "references": {}
755
+ },
756
+ "required": false,
757
+ "optional": false,
758
+ "docs": {
759
+ "tags": [],
760
+ "text": ""
761
+ },
762
+ "attribute": "i-1-8n-toggle-theme",
763
+ "reflect": false,
764
+ "defaultValue": "'Toggle theme'"
765
+ },
766
+ "i18nExpand": {
767
+ "type": "string",
768
+ "mutable": false,
769
+ "complexType": {
770
+ "original": "string",
771
+ "resolved": "string",
772
+ "references": {}
773
+ },
774
+ "required": false,
775
+ "optional": false,
776
+ "docs": {
777
+ "tags": [],
778
+ "text": ""
779
+ },
780
+ "attribute": "i-1-8n-expand",
781
+ "reflect": false,
782
+ "defaultValue": "' Expand'"
783
+ },
784
+ "i18nCollapse": {
785
+ "type": "string",
786
+ "mutable": false,
787
+ "complexType": {
788
+ "original": "string",
789
+ "resolved": "string",
790
+ "references": {}
791
+ },
792
+ "required": false,
793
+ "optional": false,
794
+ "docs": {
795
+ "tags": [],
796
+ "text": ""
797
+ },
798
+ "attribute": "i-1-8n-collapse",
799
+ "reflect": false,
800
+ "defaultValue": "'Collapse'"
801
+ },
802
+ "i18nMore": {
803
+ "type": "string",
804
+ "mutable": false,
805
+ "complexType": {
806
+ "original": "string",
807
+ "resolved": "string",
808
+ "references": {}
809
+ },
810
+ "required": false,
811
+ "optional": false,
812
+ "docs": {
813
+ "tags": [],
814
+ "text": ""
815
+ },
816
+ "attribute": "i-1-8n-more",
817
+ "reflect": false,
818
+ "defaultValue": "'More\u2026'"
819
+ },
820
+ "expand": {
821
+ "type": "boolean",
822
+ "mutable": true,
823
+ "complexType": {
824
+ "original": "boolean",
825
+ "resolved": "boolean",
826
+ "references": {}
827
+ },
828
+ "required": false,
829
+ "optional": false,
830
+ "docs": {
831
+ "tags": [],
832
+ "text": "Expand menu"
833
+ },
834
+ "attribute": "expand",
835
+ "reflect": true,
836
+ "defaultValue": "false"
837
+ }
838
+ }; }
839
+ static get states() { return {
840
+ "showMoreItems": {},
841
+ "visibleMenuItems": {},
842
+ "countMoreNotifications": {},
843
+ "mapExpand": {},
844
+ "activeTab": {},
845
+ "isMoreTabEmpty": {}
846
+ }; }
847
+ static get events() { return [{
848
+ "method": "expandChange",
849
+ "name": "expandChange",
850
+ "bubbles": true,
851
+ "cancelable": true,
852
+ "composed": true,
853
+ "docs": {
854
+ "tags": [],
855
+ "text": "Menu expanded"
856
+ },
857
+ "complexType": {
858
+ "original": "boolean",
859
+ "resolved": "boolean",
860
+ "references": {}
861
+ }
862
+ }, {
863
+ "method": "mapExpandChange",
864
+ "name": "mapExpandChange",
865
+ "bubbles": true,
866
+ "cancelable": true,
867
+ "composed": true,
868
+ "docs": {
869
+ "tags": [],
870
+ "text": "Map Sidebar expanded"
871
+ },
872
+ "complexType": {
873
+ "original": "boolean",
874
+ "resolved": "boolean",
875
+ "references": {}
876
+ }
877
+ }]; }
878
+ static get methods() { return {
879
+ "toggleMapExpand": {
880
+ "complexType": {
881
+ "signature": "(show?: boolean) => Promise<void>",
882
+ "parameters": [{
883
+ "tags": [{
884
+ "name": "param",
885
+ "text": "show"
886
+ }],
887
+ "text": ""
888
+ }],
889
+ "references": {
890
+ "Promise": {
891
+ "location": "global"
892
+ }
893
+ },
894
+ "return": "Promise<void>"
895
+ },
896
+ "docs": {
897
+ "text": "Toggle map sidebar expand",
898
+ "tags": [{
899
+ "name": "param",
900
+ "text": "show"
901
+ }]
902
+ }
903
+ },
904
+ "toggleMenu": {
905
+ "complexType": {
906
+ "signature": "(show?: boolean) => Promise<void>",
907
+ "parameters": [{
908
+ "tags": [{
909
+ "name": "param",
910
+ "text": "show"
911
+ }],
912
+ "text": ""
913
+ }],
914
+ "references": {
915
+ "Promise": {
916
+ "location": "global"
917
+ }
918
+ },
919
+ "return": "Promise<void>"
920
+ },
921
+ "docs": {
922
+ "text": "Toggle menu",
923
+ "tags": [{
924
+ "name": "param",
925
+ "text": "show"
926
+ }]
927
+ }
928
+ },
929
+ "toggleSettings": {
930
+ "complexType": {
931
+ "signature": "(show: boolean) => Promise<void>",
932
+ "parameters": [{
933
+ "tags": [{
934
+ "name": "param",
935
+ "text": "show"
936
+ }],
937
+ "text": ""
938
+ }],
939
+ "references": {
940
+ "Promise": {
941
+ "location": "global"
942
+ }
943
+ },
944
+ "return": "Promise<void>"
945
+ },
946
+ "docs": {
947
+ "text": "Toggle Settings tabs",
948
+ "tags": [{
949
+ "name": "param",
950
+ "text": "show"
951
+ }]
952
+ }
953
+ },
954
+ "toggleAbout": {
955
+ "complexType": {
956
+ "signature": "(show: boolean) => Promise<void>",
957
+ "parameters": [{
958
+ "tags": [{
959
+ "name": "param",
960
+ "text": "show"
961
+ }],
962
+ "text": ""
963
+ }],
964
+ "references": {
965
+ "Promise": {
966
+ "location": "global"
967
+ }
968
+ },
969
+ "return": "Promise<void>"
970
+ },
971
+ "docs": {
972
+ "text": "Toggle About tabs",
973
+ "tags": [{
974
+ "name": "param",
975
+ "text": "show"
976
+ }]
977
+ }
978
+ }
979
+ }; }
980
+ static get elementRef() { return "hostElement"; }
981
+ static get listeners() { return [{
982
+ "name": "resize",
983
+ "method": "onWindowResize",
984
+ "target": "window",
985
+ "capture": false,
986
+ "passive": true
987
+ }]; }
988
+ }