@finsemble/finsemble-ui 6.2.0 → 6.3.0-beta.20211008

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 (705) hide show
  1. package/package.json +17 -16
  2. package/react/actions/smartDesktopDesignerActions.d.ts +7 -8
  3. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  4. package/react/actions/toolbarActions.d.ts +2 -3
  5. package/react/actions/toolbarActions.js.map +1 -1
  6. package/react/assets/css/notificationsCenter.css +4 -2
  7. package/react/assets/css/userPreferences.css +1 -0
  8. package/react/assets/css/windowTitleBar.css +33 -1
  9. package/react/components/FinsembleProvider.js +1 -1
  10. package/react/components/FinsembleProvider.js.map +1 -1
  11. package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
  12. package/react/components/appCatalog/components/AppList.d.ts +7 -1
  13. package/react/components/appCatalog/components/AppList.js +1 -1
  14. package/react/components/appCatalog/components/AppList.js.map +1 -1
  15. package/react/components/appCatalog/components/AppResults.d.ts +10 -8
  16. package/react/components/appCatalog/components/AppResults.js +1 -1
  17. package/react/components/appCatalog/components/AppResults.js.map +1 -1
  18. package/react/components/appCatalog/components/Carousel.js +1 -1
  19. package/react/components/appCatalog/components/Carousel.js.map +1 -1
  20. package/react/components/appCatalog/components/EmptyResults.d.ts +2 -1
  21. package/react/components/appCatalog/components/EmptyResults.js +2 -4
  22. package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
  23. package/react/components/appCatalog/components/Hero.d.ts +24 -4
  24. package/react/components/appCatalog/components/Hero.js +2 -1
  25. package/react/components/appCatalog/components/Hero.js.map +1 -1
  26. package/react/components/appCatalog/components/Home.d.ts +18 -4
  27. package/react/components/appCatalog/components/Home.js.map +1 -1
  28. package/react/components/appCatalog/components/SearchBar.d.ts +20 -7
  29. package/react/components/appCatalog/components/SearchBar.js +4 -7
  30. package/react/components/appCatalog/components/SearchBar.js.map +1 -1
  31. package/react/components/appCatalog/components/Showcase/AppDescription.d.ts +5 -3
  32. package/react/components/appCatalog/components/Showcase/AppDescription.js +4 -6
  33. package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
  34. package/react/components/appCatalog/components/Showcase/AppDevNotes.d.ts +5 -4
  35. package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
  36. package/react/components/appCatalog/components/Showcase/AppShowcase.js +1 -1
  37. package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
  38. package/react/components/appCatalog/components/Showcase/Header.d.ts +13 -5
  39. package/react/components/appCatalog/components/Showcase/Header.js +2 -2
  40. package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
  41. package/react/components/appCatalog/components/Showcase/Modal.d.ts +7 -4
  42. package/react/components/appCatalog/components/Showcase/Modal.js +6 -6
  43. package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
  44. package/react/components/appCatalog/components/Showcase/defaults.d.ts +3 -3
  45. package/react/components/appCatalog/components/Showcase/defaults.js.map +1 -1
  46. package/react/components/appCatalog/components/Tag.d.ts +6 -4
  47. package/react/components/appCatalog/components/Tag.js.map +1 -1
  48. package/react/components/appCatalog/components/Toast.d.ts +5 -3
  49. package/react/components/appCatalog/components/Toast.js +5 -4
  50. package/react/components/appCatalog/components/Toast.js.map +1 -1
  51. package/react/components/appCatalog/modules/AppDirectory.d.ts +5 -1
  52. package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
  53. package/react/components/appCatalog/modules/FDC3.d.ts +12 -11
  54. package/react/components/appCatalog/modules/FDC3.js +20 -18
  55. package/react/components/appCatalog/modules/FDC3.js.map +1 -1
  56. package/react/components/appCatalog/stores/appStore.d.ts +9 -2
  57. package/react/components/appCatalog/stores/appStore.js +10 -4
  58. package/react/components/appCatalog/stores/appStore.js.map +1 -1
  59. package/react/components/appCatalog/stores/storeActions.js.map +1 -1
  60. package/react/components/common/Button.d.ts +4 -4
  61. package/react/components/common/Button.js +1 -1
  62. package/react/components/common/Button.js.map +1 -1
  63. package/react/components/common/ButtonIcon.js +1 -1
  64. package/react/components/common/ButtonIcon.js.map +1 -1
  65. package/react/components/common/ColorPicker.js +1 -1
  66. package/react/components/common/ColorPicker.js.map +1 -1
  67. package/react/components/common/DropZone.d.ts +0 -5
  68. package/react/components/common/DropZone.js.map +1 -1
  69. package/react/components/common/DropdownButton.js +1 -1
  70. package/react/components/common/DropdownButton.js.map +1 -1
  71. package/react/components/common/FileInput.d.ts +0 -5
  72. package/react/components/common/FileInput.js +7 -9
  73. package/react/components/common/FileInput.js.map +1 -1
  74. package/react/components/common/FinsembleIcon.d.ts +2 -2
  75. package/react/components/common/FinsembleIcon.js.map +1 -1
  76. package/react/components/common/FinsembleSelect.js +2 -5
  77. package/react/components/common/FinsembleSelect.js.map +1 -1
  78. package/react/components/common/FinsembleToggle.js +2 -2
  79. package/react/components/common/FinsembleToggle.js.map +1 -1
  80. package/react/components/common/FontSizeSelector.js +2 -2
  81. package/react/components/common/FontSizeSelector.js.map +1 -1
  82. package/react/components/common/ImagePreview.js +2 -2
  83. package/react/components/common/ImagePreview.js.map +1 -1
  84. package/react/components/common/Tab.js +2 -1
  85. package/react/components/common/Tab.js.map +1 -1
  86. package/react/components/common/file_helpers.js +3 -2
  87. package/react/components/common/file_helpers.js.map +1 -1
  88. package/react/components/common/helpers.js +8 -10
  89. package/react/components/common/helpers.js.map +1 -1
  90. package/react/components/common/stories/Button.stories.js +1 -1
  91. package/react/components/common/stories/Button.stories.js.map +1 -1
  92. package/react/components/common/stories/ButtonIcon.stories.js +1 -1
  93. package/react/components/common/stories/ButtonIcon.stories.js.map +1 -1
  94. package/react/components/common/stories/ButtonRow.stories.js +2 -2
  95. package/react/components/common/stories/ButtonRow.stories.js.map +1 -1
  96. package/react/components/common/stories/ButtonTile.stories.js +1 -1
  97. package/react/components/common/stories/ButtonTile.stories.js.map +1 -1
  98. package/react/components/common/stories/Checkbox.stories.js +1 -1
  99. package/react/components/common/stories/Checkbox.stories.js.map +1 -1
  100. package/react/components/common/stories/ColorPicker.stories.js +1 -1
  101. package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
  102. package/react/components/common/stories/DropZone.stories.js +1 -1
  103. package/react/components/common/stories/DropZone.stories.js.map +1 -1
  104. package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
  105. package/react/components/common/stories/FinsembleSelect.stories.js +1 -1
  106. package/react/components/common/stories/FinsembleSelect.stories.js.map +1 -1
  107. package/react/components/common/stories/FinsembleToggle.stories.js +3 -1
  108. package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
  109. package/react/components/common/stories/FontSizeSelector.stories.js +1 -1
  110. package/react/components/common/stories/FontSizeSelector.stories.js.map +1 -1
  111. package/react/components/common/stories/Header.stories.js +1 -1
  112. package/react/components/common/stories/Header.stories.js.map +1 -1
  113. package/react/components/common/tests/Checkbox.spec.js +4 -4
  114. package/react/components/common/tests/Checkbox.spec.js.map +1 -1
  115. package/react/components/common/tests/ColorPicker.spec.js +6 -6
  116. package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
  117. package/react/components/common/tests/DropZone.spec.js +4 -4
  118. package/react/components/common/tests/DropZone.spec.js.map +1 -1
  119. package/react/components/common/tests/FileInput.spec.js +5 -5
  120. package/react/components/common/tests/FileInput.spec.js.map +1 -1
  121. package/react/components/common/tests/FinsembleSelect.spec.js +12 -11
  122. package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
  123. package/react/components/common/tests/FinsembleToggle.spec.js +8 -2
  124. package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
  125. package/react/components/common/tests/Header.spec.js +3 -3
  126. package/react/components/common/tests/Header.spec.js.map +1 -1
  127. package/react/components/common/tests/ImagePreview.spec.js +8 -8
  128. package/react/components/common/tests/ImagePreview.spec.js.map +1 -1
  129. package/react/components/common/tests/Tab.spec.js +3 -3
  130. package/react/components/common/tests/Tab.spec.js.map +1 -1
  131. package/react/components/common/tests/Tooltip.spec.js +5 -5
  132. package/react/components/common/tests/Tooltip.spec.js.map +1 -1
  133. package/react/components/favorites/FavoriteMaker.d.ts +0 -5
  134. package/react/components/favorites/FavoriteMaker.js +1 -1
  135. package/react/components/favorites/FavoriteMaker.js.map +1 -1
  136. package/react/components/favorites/FavoritesShell.js +1 -1
  137. package/react/components/favorites/FavoritesShell.js.map +1 -1
  138. package/react/components/favorites/FavoritesShell.spec.js +7 -7
  139. package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
  140. package/react/components/favorites/FavoritesShell.stories.js +5 -4
  141. package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
  142. package/react/components/fdc3Resolver/ResolverContainer.js +2 -1
  143. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  144. package/react/components/fdc3Resolver/ResolverDialog.js +13 -13
  145. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  146. package/react/components/fdc3Resolver/ResolverDialog.spec.js +5 -5
  147. package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
  148. package/react/components/fdc3Resolver/ResolverDialog.stories.js +1 -1
  149. package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
  150. package/react/components/icon/Icon.js +5 -4
  151. package/react/components/icon/Icon.js.map +1 -1
  152. package/react/components/legacyControls/FinsembleDialogButton.d.ts +1 -1
  153. package/react/components/legacyControls/FinsembleDialogButton.js +4 -3
  154. package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
  155. package/react/components/legacyControls/FinsembleDialogQuestion.js +2 -1
  156. package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
  157. package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +1 -1
  158. package/react/components/legacyControls/FinsembleDialogTextInput.js +8 -5
  159. package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
  160. package/react/components/legacyControls/FinsembleDnDContext.js +18 -17
  161. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  162. package/react/components/legacyControls/FinsembleDraggable.js +3 -3
  163. package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
  164. package/react/components/legacyControls/FinsembleHoverDetector.js +2 -1
  165. package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
  166. package/react/components/legacyControls/FinsembleMenuSection.js +6 -3
  167. package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
  168. package/react/components/legacyControls/stories/FinsembleDialog.stories.js +1 -1
  169. package/react/components/legacyControls/stories/FinsembleDialog.stories.js.map +1 -1
  170. package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js +1 -1
  171. package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js.map +1 -1
  172. package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js +1 -1
  173. package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js.map +1 -1
  174. package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js +1 -1
  175. package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js.map +1 -1
  176. package/react/components/legacyControls/tests/FinsembleDialog.spec.js +1 -1
  177. package/react/components/legacyControls/tests/FinsembleDialog.spec.js.map +1 -1
  178. package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js +8 -7
  179. package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
  180. package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js +7 -5
  181. package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js.map +1 -1
  182. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js +13 -12
  183. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
  184. package/react/components/linker/LinkerMenu.js +4 -3
  185. package/react/components/linker/LinkerMenu.js.map +1 -1
  186. package/react/components/linker/LinkerMenuDeprecated.js +1 -1
  187. package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
  188. package/react/components/linker/remoteRedux.d.ts +10 -42
  189. package/react/components/linker/remoteRedux.js.map +1 -1
  190. package/react/components/menu/Menu.d.ts +1 -1
  191. package/react/components/menu/Menu.js +1 -1
  192. package/react/components/menu/Menu.js.map +1 -1
  193. package/react/components/menu/MenuAutoResizer.js.map +1 -1
  194. package/react/components/menu/MenuPortal.js +7 -6
  195. package/react/components/menu/MenuPortal.js.map +1 -1
  196. package/react/components/menu/keyboardNavigation.js +14 -15
  197. package/react/components/menu/keyboardNavigation.js.map +1 -1
  198. package/react/components/notifications/components/NoNotifications.js +2 -4
  199. package/react/components/notifications/components/NoNotifications.js.map +1 -1
  200. package/react/components/notifications/components/drawer/Drawer.js +2 -4
  201. package/react/components/notifications/components/drawer/Drawer.js.map +1 -1
  202. package/react/components/notifications/components/drawer/DrawerControls.js +2 -4
  203. package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
  204. package/react/components/notifications/components/drawer/DrawerHeader.js +1 -4
  205. package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
  206. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +28 -43
  207. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  208. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +10 -9
  209. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  210. package/react/components/notifications/components/shared/CheckButton.d.ts +2 -2
  211. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  212. package/react/components/notifications/components/shared/IconButton.js +3 -5
  213. package/react/components/notifications/components/shared/IconButton.js.map +1 -1
  214. package/react/components/notifications/components/shared/NotificationCardShell.d.ts +3 -2
  215. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  216. package/react/components/notifications/components/shared/OverflowMenu.d.ts +2 -1
  217. package/react/components/notifications/components/shared/OverflowMenu.js +6 -5
  218. package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
  219. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +3 -2
  220. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js +1 -1
  221. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
  222. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +3 -2
  223. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  224. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +3 -2
  225. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js +2 -4
  226. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
  227. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +3 -2
  228. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  229. package/react/components/notifications/components/views/CardView.js +15 -24
  230. package/react/components/notifications/components/views/CardView.js.map +1 -1
  231. package/react/components/notifications/components/views/ListView.d.ts +2 -2
  232. package/react/components/notifications/components/views/ListView.js +9 -9
  233. package/react/components/notifications/components/views/ListView.js.map +1 -1
  234. package/react/components/notifications/components/views/NotificationDetailsView.d.ts +2 -2
  235. package/react/components/notifications/components/views/NotificationDetailsView.js +2 -6
  236. package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
  237. package/react/components/notifications/types.d.ts +7 -6
  238. package/react/components/notifications/types.js.map +1 -1
  239. package/react/components/notifications/utils.d.ts +6 -4
  240. package/react/components/notifications/utils.js +26 -32
  241. package/react/components/notifications/utils.js.map +1 -1
  242. package/react/components/processMonitor/ProcessMonitor.d.ts +3 -1
  243. package/react/components/processMonitor/ProcessMonitor.js +17 -10
  244. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  245. package/react/components/processMonitor/ProcessMonitorTypes.d.ts +33 -0
  246. package/react/components/processMonitor/ProcessMonitorTypes.js +6 -0
  247. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -0
  248. package/react/components/processMonitor/components/ChildWindow.d.ts +10 -3
  249. package/react/components/processMonitor/components/ChildWindow.js +19 -10
  250. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  251. package/react/components/processMonitor/components/ListHeader.d.ts +17 -4
  252. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  253. package/react/components/processMonitor/components/ProcessStatistics.d.ts +11 -3
  254. package/react/components/processMonitor/components/ProcessStatistics.js +25 -18
  255. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  256. package/react/components/processMonitor/constants.d.ts +11 -16
  257. package/react/components/processMonitor/constants.js +3 -1
  258. package/react/components/processMonitor/constants.js.map +1 -1
  259. package/react/components/processMonitor/helpers.d.ts +25 -5
  260. package/react/components/processMonitor/helpers.js +28 -20
  261. package/react/components/processMonitor/helpers.js.map +1 -1
  262. package/react/components/processMonitor/helpers.spec.d.ts +1 -0
  263. package/react/components/processMonitor/helpers.spec.js +44 -0
  264. package/react/components/processMonitor/helpers.spec.js.map +1 -0
  265. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +30 -15
  266. package/react/components/processMonitor/stores/ProcessMonitorStore.js +101 -86
  267. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  268. package/react/components/quickComponentForm/QuickComponentForm.d.ts +4 -1
  269. package/react/components/quickComponentForm/QuickComponentForm.js +13 -14
  270. package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
  271. package/react/components/search/Highlight.js +2 -2
  272. package/react/components/search/Highlight.js.map +1 -1
  273. package/react/components/search/Highlight.spec.js +3 -3
  274. package/react/components/search/Highlight.spec.js.map +1 -1
  275. package/react/components/search/Highlight.stories.js +1 -1
  276. package/react/components/search/Highlight.stories.js.map +1 -1
  277. package/react/components/search/Search.js +17 -8
  278. package/react/components/search/Search.js.map +1 -1
  279. package/react/components/search/SearchBestMatch.js +2 -1
  280. package/react/components/search/SearchBestMatch.js.map +1 -1
  281. package/react/components/search/SearchProviderResults.js +4 -5
  282. package/react/components/search/SearchProviderResults.js.map +1 -1
  283. package/react/components/search/SearchResult.js +3 -2
  284. package/react/components/search/SearchResult.js.map +1 -1
  285. package/react/components/search/SearchResults.js +1 -1
  286. package/react/components/search/SearchResults.js.map +1 -1
  287. package/react/components/shared/Button.js +2 -4
  288. package/react/components/shared/Button.js.map +1 -1
  289. package/react/components/shared/DefaultDropdownButton.js +1 -1
  290. package/react/components/shared/DefaultDropdownButton.js.map +1 -1
  291. package/react/components/shared/NavigationButton.js +9 -11
  292. package/react/components/shared/NavigationButton.js.map +1 -1
  293. package/react/components/shared/Tag.d.ts +11 -1
  294. package/react/components/shared/Tag.js.map +1 -1
  295. package/react/components/shared/TagsMenu.d.ts +26 -6
  296. package/react/components/shared/TagsMenu.js.map +1 -1
  297. package/react/components/shared/linkerUtil.d.ts +3 -1
  298. package/react/components/shared/linkerUtil.js.map +1 -1
  299. package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
  300. package/react/components/singleInputDialog/SingleInputDialog.spec.js +6 -6
  301. package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
  302. package/react/components/singleInputDialog/SingleInputDialog.stories.js +1 -1
  303. package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
  304. package/react/components/smartDesktopDesigner/AppEditAccess.d.ts +1 -1
  305. package/react/components/smartDesktopDesigner/AppEditAccess.js +17 -34
  306. package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
  307. package/react/components/smartDesktopDesigner/AppEditPage.d.ts +4 -4
  308. package/react/components/smartDesktopDesigner/AppEditPage.js +2 -2
  309. package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
  310. package/react/components/smartDesktopDesigner/Appearance.js +3 -5
  311. package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
  312. package/react/components/smartDesktopDesigner/Application.d.ts +4 -4
  313. package/react/components/smartDesktopDesigner/Application.js +84 -92
  314. package/react/components/smartDesktopDesigner/Application.js.map +1 -1
  315. package/react/components/smartDesktopDesigner/ApplicationEdit.d.ts +1 -1
  316. package/react/components/smartDesktopDesigner/ApplicationEdit.js +68 -51
  317. package/react/components/smartDesktopDesigner/ApplicationEdit.js.map +1 -1
  318. package/react/components/smartDesktopDesigner/ApplicationList.d.ts +4 -2
  319. package/react/components/smartDesktopDesigner/ApplicationList.js +23 -20
  320. package/react/components/smartDesktopDesigner/ApplicationList.js.map +1 -1
  321. package/react/components/smartDesktopDesigner/ApplicationSetup.d.ts +4 -3
  322. package/react/components/smartDesktopDesigner/ApplicationSetup.js +8 -20
  323. package/react/components/smartDesktopDesigner/ApplicationSetup.js.map +1 -1
  324. package/react/components/smartDesktopDesigner/Applications.d.ts +0 -1
  325. package/react/components/smartDesktopDesigner/Applications.js +73 -62
  326. package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
  327. package/react/components/smartDesktopDesigner/Authentication.js +2 -8
  328. package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
  329. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js +1 -8
  330. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
  331. package/react/components/smartDesktopDesigner/Content.js.map +1 -1
  332. package/react/components/smartDesktopDesigner/CurrentView.js +1 -1
  333. package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
  334. package/react/components/smartDesktopDesigner/Export.js +3 -3
  335. package/react/components/smartDesktopDesigner/Export.js.map +1 -1
  336. package/react/components/smartDesktopDesigner/ExportCloud.js +1 -1
  337. package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
  338. package/react/components/smartDesktopDesigner/ExportDeployInfo.js +1 -1
  339. package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +1 -1
  340. package/react/components/smartDesktopDesigner/ExportZip.js +0 -1
  341. package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
  342. package/react/components/smartDesktopDesigner/GettingStarted.d.ts +1 -1
  343. package/react/components/smartDesktopDesigner/GettingStarted.js +1 -1
  344. package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
  345. package/react/components/smartDesktopDesigner/ProjectHeader.d.ts +1 -1
  346. package/react/components/smartDesktopDesigner/ProjectHeader.js +1 -1
  347. package/react/components/smartDesktopDesigner/ProjectHeader.js.map +1 -1
  348. package/react/components/smartDesktopDesigner/Publish.js +1 -1
  349. package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
  350. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +0 -11
  351. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +11 -24
  352. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  353. package/react/components/smartDesktopDesigner/Themes.js +2 -8
  354. package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
  355. package/react/components/smartDesktopDesigner/View.js.map +1 -1
  356. package/react/components/smartDesktopDesigner/common/getCSSVars.d.ts +1 -1
  357. package/react/components/smartDesktopDesigner/common/getCSSVars.js +2 -1
  358. package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +1 -1
  359. package/react/components/smartDesktopDesigner/common/views.d.ts +1 -1
  360. package/react/components/smartDesktopDesigner/common/views.js +4 -14
  361. package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
  362. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js +4 -4
  363. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js.map +1 -1
  364. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js +2 -2
  365. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js.map +1 -1
  366. package/react/components/smartDesktopDesigner/fixtures/applicationsProps.js +2 -3
  367. package/react/components/smartDesktopDesigner/fixtures/applicationsProps.js.map +1 -1
  368. package/react/components/smartDesktopDesigner/fixtures/apps.d.ts +4 -70
  369. package/react/components/smartDesktopDesigner/fixtures/apps.js +9 -20
  370. package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
  371. package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
  372. package/react/components/smartDesktopDesigner/fixtures/publishProgress.d.ts +2 -1
  373. package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
  374. package/react/components/smartDesktopDesigner/fixtures/views.js +4 -4
  375. package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
  376. package/react/components/smartDesktopDesigner/sdd_helpers.js +2 -1
  377. package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
  378. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.d.ts +3 -4
  379. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js +8 -8
  380. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
  381. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js +7 -7
  382. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +1 -1
  383. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js +3 -7
  384. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js.map +1 -1
  385. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js +9 -2
  386. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +1 -1
  387. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js +3 -10
  388. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js.map +1 -1
  389. package/react/components/smartDesktopDesigner/stories/Applications.stories.js +1 -1
  390. package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +1 -1
  391. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js +7 -14
  392. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +1 -1
  393. package/react/components/smartDesktopDesigner/stories/Export.stories.js +2 -2
  394. package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +1 -1
  395. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js +2 -2
  396. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
  397. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js +5 -11
  398. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
  399. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.d.ts +1 -1
  400. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js +1 -1
  401. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +1 -1
  402. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js +1 -1
  403. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +1 -1
  404. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js +2 -4
  405. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +1 -1
  406. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.d.ts +1 -1
  407. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js +1 -1
  408. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js.map +1 -1
  409. package/react/components/smartDesktopDesigner/stories/Publish.stories.js +13 -28
  410. package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +1 -1
  411. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js +1 -1
  412. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +1 -1
  413. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js +3 -3
  414. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
  415. package/react/components/smartDesktopDesigner/stories/Themes.stories.js +1 -1
  416. package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +1 -1
  417. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +32 -32
  418. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
  419. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js +6 -5
  420. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js.map +1 -1
  421. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js +11 -11
  422. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +1 -1
  423. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js +9 -7
  424. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js.map +1 -1
  425. package/react/components/smartDesktopDesigner/tests/Applications.spec.js +35 -35
  426. package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
  427. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js +6 -18
  428. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +1 -1
  429. package/react/components/smartDesktopDesigner/tests/Export.spec.js +14 -22
  430. package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
  431. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js +2 -6
  432. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
  433. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js +2 -2
  434. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +1 -1
  435. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js +2 -2
  436. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
  437. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js +2 -2
  438. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js.map +1 -1
  439. package/react/components/smartDesktopDesigner/tests/Publish.spec.js +3 -10
  440. package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +1 -1
  441. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js +2 -6
  442. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +1 -1
  443. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js +3 -3
  444. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
  445. package/react/components/smartDesktopDesigner/tests/Themes.spec.js +7 -7
  446. package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +1 -1
  447. package/react/components/smartDesktopDesigner/tests/a11y_helper.js +2 -1
  448. package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +1 -1
  449. package/react/components/system/System.spec.js +1 -1
  450. package/react/components/system/System.spec.js.map +1 -1
  451. package/react/components/system/SystemTrayComponentShell.js +1 -1
  452. package/react/components/system/SystemTrayComponentShell.js.map +1 -1
  453. package/react/components/toolbar/MinimizeAll.spec.js +5 -5
  454. package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
  455. package/react/components/toolbar/NotificationControl.js +3 -2
  456. package/react/components/toolbar/NotificationControl.js.map +1 -1
  457. package/react/components/toolbar/RevealAll.spec.js +5 -5
  458. package/react/components/toolbar/RevealAll.spec.js.map +1 -1
  459. package/react/components/toolbar/ToolbarIcon.js +14 -2
  460. package/react/components/toolbar/ToolbarIcon.js.map +1 -1
  461. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +22 -5
  462. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js +11 -6
  463. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
  464. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js +21 -9
  465. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
  466. package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.d.ts +33 -10
  467. package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js +24 -3
  468. package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
  469. package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.d.ts +3 -3
  470. package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js +0 -3
  471. package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
  472. package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.d.ts +24 -8
  473. package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js +4 -2
  474. package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
  475. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.d.ts +18 -4
  476. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js +5 -4
  477. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  478. package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.d.ts +14 -6
  479. package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js +2 -2
  480. package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js.map +1 -1
  481. package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +34 -13
  482. package/react/components/toolbar/advancedAppLauncher/components/Content.js +23 -29
  483. package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
  484. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.d.ts +15 -5
  485. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js +4 -3
  486. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
  487. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +38 -21
  488. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js +13 -8
  489. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
  490. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.d.ts +18 -3
  491. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js +7 -3
  492. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
  493. package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.d.ts +10 -3
  494. package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js +1 -3
  495. package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js.map +1 -1
  496. package/react/components/toolbar/advancedAppLauncher/components/SearchBox.d.ts +15 -6
  497. package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js +11 -6
  498. package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
  499. package/react/components/toolbar/advancedAppLauncher/components/SortBy.d.ts +11 -4
  500. package/react/components/toolbar/advancedAppLauncher/components/SortBy.js +3 -2
  501. package/react/components/toolbar/advancedAppLauncher/components/SortBy.js.map +1 -1
  502. package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +18 -6
  503. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js +2 -2
  504. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
  505. package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.d.ts +20 -4
  506. package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js +2 -4
  507. package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
  508. package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.d.ts +5 -1
  509. package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
  510. package/react/components/toolbar/advancedAppLauncher/modules/FDC3.d.ts +15 -10
  511. package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
  512. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +5 -2
  513. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js +1 -1
  514. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
  515. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js +5 -4
  516. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  517. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.d.ts +7 -6
  518. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js +11 -13
  519. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
  520. package/react/components/toolbar/appLauncher/AppLauncherMenu.d.ts +3 -3
  521. package/react/components/toolbar/appLauncher/AppLauncherMenu.js +1 -1
  522. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  523. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +1 -1
  524. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +25 -3
  525. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js +3 -10
  526. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
  527. package/react/components/toolbar/appLauncher/components/componentList.d.ts +34 -6
  528. package/react/components/toolbar/appLauncher/components/componentList.js +24 -21
  529. package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
  530. package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +32 -32
  531. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +37 -55
  532. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
  533. package/react/components/toolbar/dashbar/Dashbar.js +2 -3
  534. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  535. package/react/components/toolbar/dashbar/DashbarItem.js +1 -1
  536. package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
  537. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +28 -5
  538. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js +17 -23
  539. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  540. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +25 -3
  541. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  542. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts +13 -8
  543. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js +2 -2
  544. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
  545. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +16 -8
  546. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js +0 -3
  547. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  548. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +65 -11
  549. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +95 -145
  550. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  551. package/react/components/userPreferences/UserPreferenceTypes.d.ts +5 -0
  552. package/react/components/userPreferences/UserPreferenceTypes.js +2 -0
  553. package/react/components/userPreferences/UserPreferenceTypes.js.map +1 -0
  554. package/react/components/userPreferences/UserPreferencesBase.js +2 -2
  555. package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
  556. package/react/components/userPreferences/UserPreferencesWrapper.js +1 -1
  557. package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
  558. package/react/components/userPreferences/components/ContentSection.js +2 -1
  559. package/react/components/userPreferences/components/ContentSection.js.map +1 -1
  560. package/react/components/userPreferences/components/LeftNav.d.ts +1 -1
  561. package/react/components/userPreferences/components/LeftNav.js +1 -1
  562. package/react/components/userPreferences/components/LeftNav.js.map +1 -1
  563. package/react/components/userPreferences/components/content/DashbarEditor.js +1 -1
  564. package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
  565. package/react/components/userPreferences/components/content/Notifications.js +2 -0
  566. package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
  567. package/react/components/userPreferences/components/content/Workspaces.js +21 -10
  568. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  569. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js +48 -51
  570. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
  571. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js +9 -9
  572. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  573. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js +4 -6
  574. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
  575. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js +6 -6
  576. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
  577. package/react/components/userPreferences/components/general/ScheduledRestart.js +0 -1
  578. package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
  579. package/react/components/userPreferences/components/workspaces/WorkspaceButton.d.ts +3 -4
  580. package/react/components/userPreferences/components/workspaces/WorkspaceButton.js +5 -1
  581. package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
  582. package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js +8 -5
  583. package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js.map +1 -1
  584. package/react/components/userPreferences/components/workspaces/WorkspaceItem.js +15 -8
  585. package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
  586. package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js +16 -2
  587. package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
  588. package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +12 -12
  589. package/react/components/userPreferences/stores/UserPreferencesStore.js +9 -16
  590. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  591. package/react/components/userPreferences/stories/DashbarEditor.stories.js +1 -1
  592. package/react/components/userPreferences/stories/DashbarEditor.stories.js.map +1 -1
  593. package/react/components/userPreferences/stories/DashbarEditorItem.stories.js +1 -1
  594. package/react/components/userPreferences/stories/DashbarEditorItem.stories.js.map +1 -1
  595. package/react/components/userPreferences/stories/General.stories.js.map +1 -1
  596. package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js +1 -1
  597. package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js.map +1 -1
  598. package/react/components/userPreferences/stories/NotificationsSources.stories.js +1 -1
  599. package/react/components/userPreferences/stories/NotificationsSources.stories.js.map +1 -1
  600. package/react/components/userPreferences/stories/UserPreferences.stories.d.ts +1 -1
  601. package/react/components/userPreferences/stories/UserPreferences.stories.js +1 -1
  602. package/react/components/userPreferences/stories/UserPreferences.stories.js.map +1 -1
  603. package/react/components/userPreferences/stories/WorkspaceButton.stories.d.ts +5 -9
  604. package/react/components/userPreferences/stories/WorkspaceButton.stories.js +10 -3
  605. package/react/components/userPreferences/stories/WorkspaceButton.stories.js.map +1 -1
  606. package/react/components/userPreferences/stories/WorkspaceItem.stories.js +2 -2
  607. package/react/components/userPreferences/stories/WorkspaceItem.stories.js.map +1 -1
  608. package/react/components/userPreferences/stories/WorkspaceItemList.stories.js.map +1 -1
  609. package/react/components/userPreferences/stories/Workspaces.stories.js +1 -1
  610. package/react/components/userPreferences/stories/Workspaces.stories.js.map +1 -1
  611. package/react/components/userPreferences/tests/ContentSection.spec.js.map +1 -1
  612. package/react/components/userPreferences/tests/DashbarEditor.spec.js.map +1 -1
  613. package/react/components/userPreferences/tests/DashbarEditorItem.spec.js.map +1 -1
  614. package/react/components/userPreferences/tests/General.spec.js.map +1 -1
  615. package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
  616. package/react/components/userPreferences/tests/NotificationSourceTypes.spec.js.map +1 -1
  617. package/react/components/userPreferences/tests/Notifications.spec.js.map +1 -1
  618. package/react/components/userPreferences/tests/NotificationsPreferencesHome.spec.js.map +1 -1
  619. package/react/components/userPreferences/tests/NotificationsSourcesPreferences.spec.js.map +1 -1
  620. package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
  621. package/react/components/userPreferences/tests/WorkspaceButton.spec.js +17 -3
  622. package/react/components/userPreferences/tests/WorkspaceButton.spec.js.map +1 -1
  623. package/react/components/userPreferences/tests/WorkspaceComponents.spec.js +1 -1
  624. package/react/components/userPreferences/tests/WorkspaceComponents.spec.js.map +1 -1
  625. package/react/components/userPreferences/tests/WorkspaceItem.spec.js.map +1 -1
  626. package/react/components/userPreferences/tests/WorkspaceItemList.spec.js.map +1 -1
  627. package/react/components/utils.js +1 -1
  628. package/react/components/utils.js.map +1 -1
  629. package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +58 -31
  630. package/react/components/windowTitleBar/WindowTitleBarShell.js +47 -50
  631. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  632. package/react/components/windowTitleBar/components/center/Tab.d.ts +27 -7
  633. package/react/components/windowTitleBar/components/center/Tab.js +2 -2
  634. package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
  635. package/react/components/windowTitleBar/components/center/TabList.d.ts +43 -30
  636. package/react/components/windowTitleBar/components/center/TabList.js +111 -37
  637. package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
  638. package/react/components/windowTitleBar/components/left/LinkerButton.js +5 -4
  639. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  640. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +1 -21
  641. package/react/components/windowTitleBar/components/left/LinkerGroups.js +6 -8
  642. package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
  643. package/react/components/windowTitleBar/components/left/ShareButton.d.ts +1 -21
  644. package/react/components/windowTitleBar/components/right/CloseButton.d.ts +12 -25
  645. package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
  646. package/react/components/windowTitleBar/components/right/GroupingButton.d.ts +17 -26
  647. package/react/components/windowTitleBar/components/right/GroupingButton.js +2 -2
  648. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
  649. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +1 -21
  650. package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts +12 -25
  651. package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
  652. package/react/components/windowTitleBar/components/windowTitle.js +11 -6
  653. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  654. package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +51 -44
  655. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +63 -56
  656. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  657. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts +42 -44
  658. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +1 -1
  659. package/react/components/windowTitleBar/windowTitleBarContext.d.ts +9 -9
  660. package/react/components/windowTitleBar/windowTitleBarContext.js +2 -4
  661. package/react/components/windowTitleBar/windowTitleBarContext.js.map +1 -1
  662. package/react/components/yesNoDialog/Timer.spec.js +2 -2
  663. package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
  664. package/react/components/yesNoDialog/Timer.stories.js +1 -1
  665. package/react/components/yesNoDialog/Timer.stories.js.map +1 -1
  666. package/react/components/yesNoDialog/YesNoDialog.spec.js +5 -5
  667. package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
  668. package/react/components/yesNoDialog/YesNoDialog.stories.js +1 -1
  669. package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
  670. package/react/hooks/useFavoritesShell.js.map +1 -1
  671. package/react/hooks/useLinker.js +1 -1
  672. package/react/hooks/useLinker.js.map +1 -1
  673. package/react/hooks/useMenu.js +1 -1
  674. package/react/hooks/useMenu.js.map +1 -1
  675. package/react/hooks/useNotifications.d.ts +6 -6
  676. package/react/hooks/useNotifications.js +16 -17
  677. package/react/hooks/useNotifications.js.map +1 -1
  678. package/react/hooks/useSearch.js +1 -1
  679. package/react/hooks/useSearch.js.map +1 -1
  680. package/react/hooks/useToolbar.js.map +1 -1
  681. package/react/hooks/useWorkspace.js +1 -1
  682. package/react/hooks/useWorkspace.js.map +1 -1
  683. package/react/reducers/favoriteReducer.js +1 -1
  684. package/react/reducers/favoriteReducer.js.map +1 -1
  685. package/react/reducers/rootReducer.d.ts +3 -4
  686. package/react/reducers/toolbarReducer.js +1 -1
  687. package/react/reducers/toolbarReducer.js.map +1 -1
  688. package/react/store.d.ts +6 -7
  689. package/react/types/advancedAppLauncherTypes.d.ts +28 -1
  690. package/react/types/advancedAppLauncherTypes.js.map +1 -1
  691. package/react/types/favoriteTypes.d.ts +1 -1
  692. package/react/types/favoriteTypes.js.map +1 -1
  693. package/react/types/fdc3.d.ts +22 -0
  694. package/react/types/fdc3.js.map +1 -1
  695. package/react/types/smartDesktopDesignerTypes.d.ts +11 -9
  696. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
  697. package/react/types/windowTitleBar.d.ts +46 -0
  698. package/react/types/windowTitleBar.js +2 -0
  699. package/react/types/windowTitleBar.js.map +1 -0
  700. package/react/components/processMonitor/components/ChildWindows.d.ts +0 -4
  701. package/react/components/processMonitor/components/ChildWindows.js +0 -11
  702. package/react/components/processMonitor/components/ChildWindows.js.map +0 -1
  703. package/react/components/toolbar/advancedAppLauncher/components/LeftNav.d.ts +0 -4
  704. package/react/components/toolbar/advancedAppLauncher/components/LeftNav.js +0 -14
  705. package/react/components/toolbar/advancedAppLauncher/components/LeftNav.js.map +0 -1
@@ -9,8 +9,7 @@ import { FavoriteMaker } from "../../../favorites/FavoriteMaker";
9
9
  import { useFavorites } from "../../../../hooks/useFavorites";
10
10
  import { iconFromConfig } from "../../../icon/Icon";
11
11
  let appLauncherStore;
12
- const DeleteComponent = (props) => {
13
- const { name } = props;
12
+ const DeleteComponent = ({ name }) => {
14
13
  const { isFavorited, removeFavorite } = useFavorites();
15
14
  const doDeleteComponent = (e) => {
16
15
  e.preventDefault();
@@ -26,17 +25,19 @@ const DeleteComponent = (props) => {
26
25
  };
27
26
  export default class appLauncherContainer extends React.Component {
28
27
  constructor(props) {
28
+ var _a;
29
29
  super(props);
30
30
  this.state = {
31
31
  componentList: {},
32
- filteredListOfComponents: props.componentFilter ?? [],
32
+ filteredListOfComponents: (_a = props.componentFilter) !== null && _a !== void 0 ? _a : [],
33
33
  };
34
34
  this.bindCorrectContext();
35
35
  }
36
36
  componentDidUpdate(prevProps) {
37
+ var _a;
37
38
  if (this.props.componentFilter !== prevProps.componentFilter) {
38
39
  this.setState({
39
- filteredListOfComponents: this.props.componentFilter ?? [],
40
+ filteredListOfComponents: (_a = this.props.componentFilter) !== null && _a !== void 0 ? _a : [],
40
41
  });
41
42
  }
42
43
  }
@@ -52,25 +53,27 @@ export default class appLauncherContainer extends React.Component {
52
53
  }
53
54
  setInitialState() {
54
55
  let self = this;
55
- appLauncherStore.getValue({ field: "componentList" }, (err, data) => {
56
- self.setState({
57
- componentList: data,
58
- });
56
+ appLauncherStore === null || appLauncherStore === void 0 ? void 0 : appLauncherStore.getValue({ field: "componentList" }, (err, data) => {
57
+ if (typeof data !== "undefined") {
58
+ self.setState({
59
+ componentList: data,
60
+ });
61
+ }
59
62
  });
60
63
  }
61
64
  componentDidMount() {
62
65
  appLauncherStore = getStore();
63
66
  this.setInitialState();
64
- appLauncherStore.addListener({ field: "componentList" }, this.onComponentListUpdate);
67
+ appLauncherStore === null || appLauncherStore === void 0 ? void 0 : appLauncherStore.addListener({ field: "componentList" }, this.onComponentListUpdate);
65
68
  }
66
69
  componentWillUnmount() {
67
- appLauncherStore.removeListener({ field: "componentList" }, this.onComponentListUpdate);
70
+ appLauncherStore === null || appLauncherStore === void 0 ? void 0 : appLauncherStore.removeListener({ field: "componentList" }, this.onComponentListUpdate);
68
71
  }
69
72
  launchComponent(component, params, cb) {
70
73
  if (component.group) {
71
74
  for (let i of Object.keys(component.list)) {
72
- let cloneParams = Object.assign({}, params);
73
- let c = component.list[i];
75
+ const cloneParams = Object.assign({}, params);
76
+ const c = component.list[i];
74
77
  if (c.component.windowGroup) {
75
78
  cloneParams.groupName = c.component.windowGroup;
76
79
  }
@@ -85,8 +88,9 @@ export default class appLauncherContainer extends React.Component {
85
88
  }
86
89
  }
87
90
  buildComponentItem(params) {
91
+ var _a, _b, _c, _d, _e, _f;
88
92
  const { key, isUserDefined } = params;
89
- const config = this.state.componentList[key];
93
+ const config = (_a = this.state.componentList) === null || _a === void 0 ? void 0 : _a[key];
90
94
  let displayName = key;
91
95
  if ((!config ||
92
96
  !config.window ||
@@ -94,28 +98,27 @@ export default class appLauncherContainer extends React.Component {
94
98
  !config.foreign.components ||
95
99
  !config.foreign.components["App Launcher"] ||
96
100
  !config.foreign.components["App Launcher"].launchableByUser) &&
97
- !config.group) {
101
+ !(config === null || config === void 0 ? void 0 : config.group)) {
98
102
  return;
99
103
  }
100
- if (config?.appDConfig?.manifest?.temporary) {
104
+ if ((_c = (_b = config.appDConfig) === null || _b === void 0 ? void 0 : _b.manifest) === null || _c === void 0 ? void 0 : _c.temporary) {
101
105
  return;
102
106
  }
103
107
  if (config.component && config.component.displayName) {
104
108
  ({ displayName } = config.component);
105
109
  }
106
- const iconObject = iconFromConfig(config?.foreign?.components?.Toolbar, displayName);
107
- return (React.createElement(MenuItem, { key: key, onClick: () => this.launchComponent(config, {}), onKeyDown: (e) => {
108
- console.log(e);
109
- } },
110
+ const iconObject = iconFromConfig((_e = (_d = config.foreign) === null || _d === void 0 ? void 0 : _d.components) === null || _e === void 0 ? void 0 : _e.Toolbar, displayName);
111
+ return (React.createElement(MenuItem, { key: key, onClick: () => this.launchComponent(config, {}) },
110
112
  React.createElement("div", { className: "menu-item-row" },
111
113
  React.createElement("span", { className: "app-name", title: displayName }, displayName),
112
114
  React.createElement("span", { className: "menu-item-row-push-right" },
113
115
  isUserDefined && React.createElement(DeleteComponent, { name: displayName }),
114
- !this.props.suppressFavorites && (React.createElement(FavoriteMaker, { id: config?.component?.type, category: "Application", name: displayName, icon: iconObject, className: "menu-item-icon" }))))));
116
+ !this.props.suppressFavorites && (React.createElement(FavoriteMaker, { id: (_f = config === null || config === void 0 ? void 0 : config.component) === null || _f === void 0 ? void 0 : _f.type, category: "Application", name: displayName, icon: iconObject, className: "menu-item-icon" }))))));
115
117
  }
116
118
  renderComponentsList() {
119
+ var _a;
117
120
  const { state } = this;
118
- const components = Object.keys(state.componentList).filter((componentType) => {
121
+ const components = Object.keys((_a = state.componentList) !== null && _a !== void 0 ? _a : {}).filter((componentType) => {
119
122
  if (state.filteredListOfComponents.length) {
120
123
  return state.filteredListOfComponents.includes(componentType);
121
124
  }
@@ -1 +1 @@
1
- {"version":3,"file":"componentList.js","sourceRoot":"","sources":["../../../../../src/components/toolbar/appLauncher/components/componentList.jsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAA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1C,OAAO,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;aAC9D;YACD,OAAO,IAAI,CAAC;QACb,CAAC,CAAC,CAAC;QAGH,MAAM,aAAa,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YAC/C,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;YAC/C,MAAM,aAAa,GAAG,OAAO,CAAC,SAAS,IAAI,SAAS,CAAC,aAAa,CAAC,CAAC;YACpE,OAAO,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;QACH,OAAO,CACN,6BAAK,SAAS,EAAC,mBAAmB,IAChC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CACvB,aAAa,CACb,CAAC,CAAC,CAAC,CACH;YACE,GAAG;8HAGD,CACJ,CACI,CACN,CAAC;IACH,CAAC;IAED,MAAM;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC,gCAAW,CAAC;IAC7E,CAAC;CACD","sourcesContent":["/*!\r\n * Copyright 2017 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n/**\r\n * This is the list of all components in the appLauncher.\r\n */\r\nimport React from \"react\";\r\nimport { getStore, Actions as appLauncherActions } from \"../stores/appLauncherStore\";\r\nimport { MenuItem } from \"../../../menu/MenuItem\";\r\nimport { FavoriteMaker } from \"../../../favorites/FavoriteMaker\";\r\nimport { useFavorites } from \"../../../../hooks/useFavorites\";\r\nimport { iconFromConfig } from \"../../../icon/Icon\";\r\n\r\nlet appLauncherStore;\r\n\r\n/**\r\n * Handles deleting a component and removing it from favorites if necessary\r\n * @param {} props\r\n */\r\nconst DeleteComponent = (props) => {\r\n\tconst { name } = props;\r\n\tconst { isFavorited, removeFavorite } = useFavorites();\r\n\tconst doDeleteComponent = (e) => {\r\n\t\te.preventDefault();\r\n\t\te.stopPropagation();\r\n\t\tappLauncherActions.handleRemoveCustomComponent(name, (wasDeleted) => {\r\n\t\t\tif (wasDeleted && isFavorited(name)) {\r\n\t\t\t\tremoveFavorite(name);\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\treturn (\r\n\t\t<span onClick={doDeleteComponent} className=\"menu-item-icon\">\r\n\t\t\t<i className=\"ff-adp-trash-outline\" title=\"Delete\"></i>\r\n\t\t</span>\r\n\t);\r\n};\r\n\r\nexport default class appLauncherContainer extends React.Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tcomponentList: {},\r\n\t\t\t// list of components to display instead of all components\r\n\t\t\tfilteredListOfComponents: props.componentFilter ?? [],\r\n\t\t};\r\n\t\tthis.bindCorrectContext();\r\n\t}\r\n\r\n\tcomponentDidUpdate(prevProps) {\r\n\t\tif (this.props.componentFilter !== prevProps.componentFilter) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tfilteredListOfComponents: this.props.componentFilter ?? [],\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tbindCorrectContext() {\r\n\t\tthis.onComponentListUpdate = this.onComponentListUpdate.bind(this);\r\n\t\tthis.buildComponentItem = this.buildComponentItem.bind(this);\r\n\t}\r\n\r\n\tonComponentListUpdate(err, data) {\r\n\t\tFSBL.Clients.Logger.debug(\"appLauncher onComponentListUpdate\");\r\n\t\tthis.setState({\r\n\t\t\tcomponentList: data.value,\r\n\t\t});\r\n\t}\r\n\r\n\tsetInitialState() {\r\n\t\tlet self = this;\r\n\t\tappLauncherStore.getValue({ field: \"componentList\" }, (err, data) => {\r\n\t\t\tself.setState({\r\n\t\t\t\tcomponentList: data,\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tappLauncherStore = getStore();\r\n\t\tthis.setInitialState();\r\n\t\tappLauncherStore.addListener({ field: \"componentList\" }, this.onComponentListUpdate);\r\n\t}\r\n\r\n\tcomponentWillUnmount() {\r\n\t\tappLauncherStore.removeListener({ field: \"componentList\" }, this.onComponentListUpdate);\r\n\t}\r\n\r\n\tlaunchComponent(component, params, cb) {\r\n\t\t// If we are launching a group\r\n\t\tif (component.group) {\r\n\t\t\tfor (let i of Object.keys(component.list)) {\r\n\t\t\t\tlet cloneParams = Object.assign({}, params);\r\n\t\t\t\tlet c = component.list[i];\r\n\t\t\t\tif (c.component.windowGroup) {\r\n\t\t\t\t\tcloneParams.groupName = c.component.windowGroup;\r\n\t\t\t\t}\r\n\t\t\t\tappLauncherActions.launchComponent(component.list[i], params, cb);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (component.component.windowGroup) {\r\n\t\t\t\tparams.groupName = component.component.windowGroup;\r\n\t\t\t}\r\n\t\t\tappLauncherActions.launchComponent(component, params, cb);\r\n\t\t}\r\n\t}\r\n\r\n\tbuildComponentItem(params) {\r\n\t\tconst { key, isUserDefined } = params;\r\n\t\tconst config = this.state.componentList[key];\r\n\t\tlet displayName = key;\r\n\r\n\t\t// If the app isn't launchable by the user, don't show it\r\n\t\tif (\r\n\t\t\t(!config ||\r\n\t\t\t\t!config.window ||\r\n\t\t\t\t!config.foreign ||\r\n\t\t\t\t!config.foreign.components ||\r\n\t\t\t\t!config.foreign.components[\"App Launcher\"] ||\r\n\t\t\t\t!config.foreign.components[\"App Launcher\"].launchableByUser) &&\r\n\t\t\t!config.group\r\n\t\t) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// If the app is temporary (actively being configured in the Smart Desktop Designer), don't show it\r\n\t\tif (config?.appDConfig?.manifest?.temporary) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Component developers can define a display name that will show instead of the component's type.\r\n\t\tif (config.component && config.component.displayName) {\r\n\t\t\t({ displayName } = config.component);\r\n\t\t}\r\n\t\tconst iconObject = iconFromConfig(config?.foreign?.components?.Toolbar, displayName);\r\n\t\treturn (\r\n\t\t\t<MenuItem\r\n\t\t\t\tkey={key}\r\n\t\t\t\tonClick={() => this.launchComponent(config, {})}\r\n\t\t\t\tonKeyDown={(e) => {\r\n\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t<div className=\"menu-item-row\">\r\n\t\t\t\t\t<span className=\"app-name\" title={displayName}>\r\n\t\t\t\t\t\t{displayName}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<span className=\"menu-item-row-push-right\">\r\n\t\t\t\t\t\t{isUserDefined && <DeleteComponent name={displayName} />}\r\n\t\t\t\t\t\t{!this.props.suppressFavorites && (\r\n\t\t\t\t\t\t\t<FavoriteMaker\r\n\t\t\t\t\t\t\t\tid={config?.component?.type}\r\n\t\t\t\t\t\t\t\tcategory=\"Application\"\r\n\t\t\t\t\t\t\t\tname={displayName}\r\n\t\t\t\t\t\t\t\ticon={iconObject}\r\n\t\t\t\t\t\t\t\tclassName=\"menu-item-icon\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t</div>\r\n\t\t\t</MenuItem>\r\n\t\t);\r\n\t}\r\n\r\n\trenderComponentsList() {\r\n\t\tconst { state } = this;\r\n\t\tconst components = Object.keys(state.componentList).filter((componentType) => {\r\n\t\t\tif (state.filteredListOfComponents.length) {\r\n\t\t\t\treturn state.filteredListOfComponents.includes(componentType);\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t});\r\n\t\t// if this is greater than 0, we don't show a note telling the user to check their configs.\r\n\t\t// iterate through componentList and render a componentItem for each one.\r\n\t\tconst componentList = components.map((key, i) => {\r\n\t\t\tconst { component } = state.componentList[key];\r\n\t\t\tconst isUserDefined = Boolean(component && component.isUserDefined);\r\n\t\t\treturn this.buildComponentItem({ i, key, isUserDefined });\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t<div className=\"app-launcher-list\">\r\n\t\t\t\t{componentList.length ? (\r\n\t\t\t\t\tcomponentList\r\n\t\t\t\t) : (\r\n\t\t\t\t\t<p>\r\n\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\tNo components loaded. Make sure to check ./src/components.json to make sure you&apos;ve set everything up\r\n\t\t\t\t\t\tcorrectly.\r\n\t\t\t\t\t</p>\r\n\t\t\t\t)}\r\n\t\t\t</div>\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn this.state.componentList ? this.renderComponentsList() : <div></div>;\r\n\t}\r\n}\r\n"]}
1
+ {"version":3,"file":"componentList.js","sourceRoot":"","sources":["../../../../../src/components/toolbar/appLauncher/components/componentList.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD,IAAI,gBAAwC,CAAC;AAU7C,MAAM,eAAe,GAAG,CAAC,EAAE,IAAI,EAAwB,EAAE,EAAE;IAC1D,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,YAAY,EAAE,CAAC;IACvD,MAAM,iBAAiB,GAAG,CAAC,CAAoC,EAAE,EAAE;QAClE,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,kBAAkB,CAAC,2BAA2B,CAAC,IAAI,EAAE,CAAC,UAAmB,EAAE,EAAE;YAC5E,IAAI,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE;gBACpC,cAAc,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AC,EAAE,CAAC,EAAE,GAAG,EAAE,aAAa,EAAE,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;QACH,OAAO,CACN,6BAAK,SAAS,EAAC,mBAAmB,IAChC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CACvB,aAAa,CACb,CAAC,CAAC,CAAC,CACH;YACE,GAAG;8HAGD,CACJ,CACI,CACN,CAAC;IACH,CAAC;IAED,MAAM;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC,gCAAW,CAAC;IAC7E,CAAC;CACD","sourcesContent":["/*!\r\n * Copyright 2017 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n/**\r\n * This is the list of all components in the appLauncher.\r\n */\r\nimport React from \"react\";\r\nimport { getStore, Actions as appLauncherActions } from \"../stores/appLauncherStore\";\r\nimport { MenuItem } from \"../../../menu/MenuItem\";\r\nimport { FavoriteMaker } from \"../../../favorites/FavoriteMaker\";\r\nimport { useFavorites } from \"../../../../hooks/useFavorites\";\r\nimport { iconFromConfig } from \"../../../icon/Icon\";\r\nimport StoreModel from \"@finsemble/finsemble-core/types/clients/StoreModel\";\r\nimport { StandardError } from \"@finsemble/finsemble-core/types/types\";\r\nimport { WindowIdentifier } from \"@finsemble/finsemble-core\";\r\n\r\nlet appLauncherStore: StoreModel | undefined;\r\n\r\ntype DeleteComponentProps = {\r\n\tname: string;\r\n};\r\n\r\n/**\r\n * Handles deleting a component and removing it from favorites if necessary\r\n * @param {} props\r\n */\r\nconst DeleteComponent = ({ name }: DeleteComponentProps) => {\r\n\tconst { isFavorited, removeFavorite } = useFavorites();\r\n\tconst doDeleteComponent = (e: React.MouseEvent<HTMLSpanElement>) => {\r\n\t\te.preventDefault();\r\n\t\te.stopPropagation();\r\n\t\tappLauncherActions.handleRemoveCustomComponent(name, (wasDeleted: boolean) => {\r\n\t\t\tif (wasDeleted && isFavorited(name)) {\r\n\t\t\t\tremoveFavorite(name);\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\treturn (\r\n\t\t<span onClick={doDeleteComponent} className=\"menu-item-icon\">\r\n\t\t\t<i className=\"ff-adp-trash-outline\" title=\"Delete\"></i>\r\n\t\t</span>\r\n\t);\r\n};\r\n\r\ntype AppLauncherContainerProps = {\r\n\tcomponentFilter?: string[];\r\n\tsuppressFavorites?: boolean;\r\n};\r\ntype ComponentDescriptor = Record<string, any>;\r\ntype ComponentList = Record<string, ComponentDescriptor>;\r\n\r\ninterface IState {\r\n\tcomponentList: ComponentList;\r\n\tfilteredListOfComponents: string[];\r\n}\r\n\r\nexport default class appLauncherContainer extends React.Component<AppLauncherContainerProps, IState> {\r\n\tconstructor(props: AppLauncherContainerProps) {\r\n\t\tsuper(props);\r\n\r\n\t\tthis.state = {\r\n\t\t\tcomponentList: {},\r\n\t\t\t// list of components to display instead of all components\r\n\t\t\tfilteredListOfComponents: props.componentFilter ?? [],\r\n\t\t};\r\n\t\tthis.bindCorrectContext();\r\n\t}\r\n\r\n\tcomponentDidUpdate(prevProps: AppLauncherContainerProps) {\r\n\t\tif (this.props.componentFilter !== prevProps.componentFilter) {\r\n\t\t\tthis.setState({\r\n\t\t\t\tfilteredListOfComponents: this.props.componentFilter ?? [],\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tbindCorrectContext() {\r\n\t\tthis.onComponentListUpdate = this.onComponentListUpdate.bind(this);\r\n\t\tthis.buildComponentItem = this.buildComponentItem.bind(this);\r\n\t}\r\n\r\n\tonComponentListUpdate(err: StandardError, data: { field: string; value: ComponentList }) {\r\n\t\tFSBL.Clients.Logger.debug(\"appLauncher onComponentListUpdate\");\r\n\t\tthis.setState({\r\n\t\t\tcomponentList: data.value,\r\n\t\t});\r\n\t}\r\n\r\n\tsetInitialState() {\r\n\t\tlet self = this;\r\n\t\tappLauncherStore?.getValue({ field: \"componentList\" }, (err: StandardError, data?: ComponentList) => {\r\n\t\t\tif (typeof data !== \"undefined\") {\r\n\t\t\t\tself.setState({\r\n\t\t\t\t\tcomponentList: data,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tappLauncherStore = getStore();\r\n\t\tthis.setInitialState();\r\n\t\tappLauncherStore?.addListener({ field: \"componentList\" }, this.onComponentListUpdate);\r\n\t}\r\n\r\n\tcomponentWillUnmount() {\r\n\t\tappLauncherStore?.removeListener({ field: \"componentList\" }, this.onComponentListUpdate);\r\n\t}\r\n\r\n\tlaunchComponent(component: any, params: any, cb?: (win?: WindowIdentifier) => void) {\r\n\t\t// If we are launching a group\r\n\t\tif (component.group) {\r\n\t\t\tfor (let i of Object.keys(component.list)) {\r\n\t\t\t\tconst cloneParams = Object.assign({}, params);\r\n\t\t\t\tconst c = component.list[i];\r\n\t\t\t\tif (c.component.windowGroup) {\r\n\t\t\t\t\tcloneParams.groupName = c.component.windowGroup;\r\n\t\t\t\t}\r\n\t\t\t\tappLauncherActions.launchComponent(component.list[i], params, cb);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (component.component.windowGroup) {\r\n\t\t\t\tparams.groupName = component.component.windowGroup;\r\n\t\t\t}\r\n\t\t\tappLauncherActions.launchComponent(component, params, cb);\r\n\t\t}\r\n\t}\r\n\r\n\tbuildComponentItem(params: { i: number; key: string; isUserDefined: boolean }) {\r\n\t\tconst { key, isUserDefined } = params;\r\n\t\tconst config = this.state.componentList?.[key];\r\n\t\tlet displayName = key;\r\n\r\n\t\t// If the app isn't launchable by the user, don't show it\r\n\t\tif (\r\n\t\t\t(!config ||\r\n\t\t\t\t!config.window ||\r\n\t\t\t\t!config.foreign ||\r\n\t\t\t\t!config.foreign.components ||\r\n\t\t\t\t!config.foreign.components[\"App Launcher\"] ||\r\n\t\t\t\t!config.foreign.components[\"App Launcher\"].launchableByUser) &&\r\n\t\t\t!config?.group\r\n\t\t) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// If the app is temporary (actively being configured in the Smart Desktop Designer), don't show it\r\n\t\tif (config.appDConfig?.manifest?.temporary) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Component developers can define a display name that will show instead of the component's type.\r\n\t\tif (config.component && config.component.displayName) {\r\n\t\t\t({ displayName } = config.component);\r\n\t\t}\r\n\t\tconst iconObject = iconFromConfig(config.foreign?.components?.Toolbar, displayName);\r\n\t\treturn (\r\n\t\t\t<MenuItem key={key} onClick={() => this.launchComponent(config, {})}>\r\n\t\t\t\t<div className=\"menu-item-row\">\r\n\t\t\t\t\t<span className=\"app-name\" title={displayName}>\r\n\t\t\t\t\t\t{displayName}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<span className=\"menu-item-row-push-right\">\r\n\t\t\t\t\t\t{isUserDefined && <DeleteComponent name={displayName} />}\r\n\t\t\t\t\t\t{!this.props.suppressFavorites && (\r\n\t\t\t\t\t\t\t<FavoriteMaker\r\n\t\t\t\t\t\t\t\tid={config?.component?.type}\r\n\t\t\t\t\t\t\t\tcategory=\"Application\"\r\n\t\t\t\t\t\t\t\tname={displayName}\r\n\t\t\t\t\t\t\t\ticon={iconObject}\r\n\t\t\t\t\t\t\t\tclassName=\"menu-item-icon\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t</span>\r\n\t\t\t\t</div>\r\n\t\t\t</MenuItem>\r\n\t\t);\r\n\t}\r\n\r\n\trenderComponentsList() {\r\n\t\tconst { state } = this;\r\n\t\tconst components = Object.keys(state.componentList ?? {}).filter((componentType) => {\r\n\t\t\tif (state.filteredListOfComponents.length) {\r\n\t\t\t\treturn state.filteredListOfComponents.includes(componentType);\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t});\r\n\t\t// if this is greater than 0, we don't show a note telling the user to check their configs.\r\n\t\t// iterate through componentList and render a componentItem for each one.\r\n\t\tconst componentList = components.map((key, i) => {\r\n\t\t\tconst { component } = state.componentList[key];\r\n\t\t\tconst isUserDefined = Boolean(component && component.isUserDefined);\r\n\t\t\treturn this.buildComponentItem({ i, key, isUserDefined });\r\n\t\t});\r\n\t\treturn (\r\n\t\t\t<div className=\"app-launcher-list\">\r\n\t\t\t\t{componentList.length ? (\r\n\t\t\t\t\tcomponentList\r\n\t\t\t\t) : (\r\n\t\t\t\t\t<p>\r\n\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\tNo components loaded. Make sure to check ./src/components.json to make sure you&apos;ve set everything up\r\n\t\t\t\t\t\tcorrectly.\r\n\t\t\t\t\t</p>\r\n\t\t\t\t)}\r\n\t\t\t</div>\r\n\t\t);\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn this.state.componentList ? this.renderComponentsList() : <div></div>;\r\n\t}\r\n}\r\n"]}
@@ -1,37 +1,37 @@
1
- export const storeManager: StoreManager;
2
- export function initialize(cb: any): void;
3
- declare let appLauncherStore: any;
4
- export namespace Actions {
5
- function initialize(cb: any): void;
6
- function getComponentList(cb: any): void;
7
- function getComponentList(cb: any): void;
8
- function initializeComponentList(cb: any): void;
9
- function initializeComponentList(cb: any): void;
10
- function getUserDefinedComponentList(cb: any): any;
11
- function getUserDefinedComponentList(cb: any): any;
12
- function saveCustomComponents(): void;
13
- function saveCustomComponents(): void;
14
- function filterComponents(components: any): void;
15
- function filterComponents(components: any): void;
16
- function handleRemoveCustomComponent(componentName: any, cb?: Function): void;
17
- function handleRemoveCustomComponent(componentName: any, cb?: Function): void;
18
- function removeCustomComponent(componentName: any): void;
19
- function removeCustomComponent(componentName: any): void;
20
- function hideWindow(): void;
21
- function hideWindow(): void;
22
- function launchComponent(config: any, params: any, cb: any): void;
23
- function launchComponent(config: any, params: any, cb: any): void;
24
- function createNewWindowGroup(groupPrefix: any, cb: any): void;
25
- function createNewWindowGroup(groupPrefix: any, cb: any): void;
26
- }
27
- export function getStore(): any;
1
+ /*!
2
+ * Copyright 2017 by ChartIQ, Inc.
3
+ * All rights reserved.
4
+ */
5
+ import StoreModel from "@finsemble/finsemble-core/types/clients/StoreModel";
6
+ import { WindowIdentifier } from "@finsemble/finsemble-core";
7
+ declare let appLauncherStore: StoreModel | undefined;
8
+ declare type VoidCallback = () => void;
9
+ declare type ComponentDescriptor = Record<string, any>;
10
+ declare type ComponentList = Record<string, ComponentDescriptor>;
11
+ declare const Actions: {
12
+ componentList: ComponentList;
13
+ initialize: (cb: VoidCallback) => void;
14
+ getComponentList(cb?: VoidCallback | undefined): void;
15
+ initializeComponentList(cb: VoidCallback): void;
16
+ getUserDefinedComponentList(cb: VoidCallback): void;
17
+ saveCustomComponents(): void;
18
+ filterComponents(components?: ComponentList): void;
19
+ handleRemoveCustomComponent(componentName: string, cb?: (wasDeconsted: boolean) => void): void;
20
+ removeCustomComponent(componentName: string): void;
21
+ hideWindow(): void;
22
+ launchComponent(config: any, params: any, cb?: ((win?: WindowIdentifier | undefined) => void) | undefined): void;
23
+ };
24
+ declare function initialize(cb: (store?: StoreModel) => void): void;
25
+ declare const getStore: () => StoreModel | undefined;
28
26
  declare class StoreManager {
29
27
  initialized: boolean;
30
28
  initializing: boolean;
31
- callbacks: any[];
32
- store: any;
29
+ callbacks: Function[];
30
+ store: StoreModel | undefined | null;
31
+ constructor();
33
32
  initialize(): void;
34
- addInitializedListener(cb: any): any;
35
- removeInitializedListener(cb: any): void;
33
+ addInitializedListener(cb: (store: StoreModel) => void): void;
34
+ removeInitializedListener(cb: Function): void;
36
35
  }
37
- export { appLauncherStore as Store };
36
+ declare const storeManager: StoreManager;
37
+ export { storeManager, initialize, appLauncherStore as Store, Actions, getStore };
@@ -5,8 +5,9 @@
5
5
  import async from "async";
6
6
  let appLauncherStore;
7
7
  let windowGroupStore;
8
- var COMPONENT_UPDATE_CHANNEL;
9
- var Actions = {
8
+ let COMPONENT_UPDATE_CHANNEL;
9
+ const Actions = {
10
+ componentList: {},
10
11
  initialize: function (cb) {
11
12
  async.parallel([
12
13
  Actions.initializeComponentList,
@@ -22,7 +23,7 @@ var Actions = {
22
23
  },
23
24
  getComponentList(cb) {
24
25
  FSBL.Clients.LauncherClient.getComponentList((err, response) => {
25
- if (err) {
26
+ if (typeof err === "string") {
26
27
  throw new Error(err);
27
28
  }
28
29
  FSBL.Clients.Logger.debug("getComponentList from LauncherClient", response);
@@ -33,9 +34,9 @@ var Actions = {
33
34
  });
34
35
  },
35
36
  initializeComponentList(cb) {
36
- var self = Actions;
37
- var firstTime = true;
38
- FSBL.Clients.RouterClient.subscribe(COMPONENT_UPDATE_CHANNEL, (err, response) => {
37
+ const self = Actions;
38
+ let firstTime = true;
39
+ FSBL.Clients.RouterClient.subscribe(COMPONENT_UPDATE_CHANNEL, (_err, response) => {
39
40
  if (!FSBL.Clients.WindowClient.options.customData.spawnData) {
40
41
  FSBL.Clients.WindowClient.options.customData.spawnData = {};
41
42
  }
@@ -57,10 +58,10 @@ var Actions = {
57
58
  return cb();
58
59
  },
59
60
  saveCustomComponents() {
60
- var UDCs = {};
61
- var components = Object.keys(Actions.componentList);
62
- for (var i = 0; i < components.length; i++) {
63
- var config = Actions.componentList[components[i]];
61
+ const UDCs = {};
62
+ const components = Object.keys(Actions.componentList);
63
+ for (let i = 0; i < components.length; i++) {
64
+ const config = Actions.componentList[components[i]];
64
65
  if (config.component && config.component.isUserDefined) {
65
66
  UDCs[config.component.type] = config;
66
67
  }
@@ -71,11 +72,11 @@ var Actions = {
71
72
  value: UDCs,
72
73
  });
73
74
  },
74
- filterComponents(components) {
75
- var self = this;
76
- var settings = FSBL.Clients.WindowClient.getSpawnData();
77
- var componentList = {};
78
- var keys = Object.keys(components);
75
+ filterComponents(components = {}) {
76
+ const self = this;
77
+ let settings = FSBL.Clients.WindowClient.getSpawnData();
78
+ let componentList = {};
79
+ const keys = Object.keys(components);
79
80
  if (!settings) {
80
81
  settings = {};
81
82
  FSBL.Clients.Logger.system.warn("appLauncherStore.js: `settings` is null or undefined");
@@ -85,13 +86,13 @@ var Actions = {
85
86
  settings.mode = [settings.mode];
86
87
  }
87
88
  keys.forEach((componentType) => {
88
- var config = components[componentType];
89
- var componentMode = config.component && config.component.mode ? config.component.mode : "";
89
+ const config = components[componentType];
90
+ let componentMode = config.component && config.component.mode ? config.component.mode : "";
90
91
  if (componentMode || componentMode === "") {
91
92
  if (componentMode.constructor !== Array) {
92
93
  componentMode = [componentMode];
93
94
  }
94
- let commonModes = componentMode.filter((n) => settings.mode.indexOf(n) !== -1);
95
+ const commonModes = componentMode.filter((n) => settings.mode.indexOf(n) !== -1);
95
96
  if (commonModes.length) {
96
97
  componentList[componentType] = components[componentType];
97
98
  }
@@ -99,7 +100,7 @@ var Actions = {
99
100
  });
100
101
  }
101
102
  if (settings.list) {
102
- var commonItems = settings.list.filter((n) => keys.indexOf(n) !== -1);
103
+ const commonItems = settings.list.filter((n) => keys.indexOf(n) !== -1);
103
104
  for (let i = 0; i < commonItems.length; i++) {
104
105
  componentList[commonItems[i]] = components[commonItems[i]];
105
106
  }
@@ -109,7 +110,7 @@ var Actions = {
109
110
  }
110
111
  else {
111
112
  for (let i = 0; i < keys.length; i++) {
112
- let component = components[keys[i]];
113
+ const component = components[keys[i]];
113
114
  if (component.component.isUserDefined) {
114
115
  componentList[keys[i]] = component;
115
116
  }
@@ -117,14 +118,14 @@ var Actions = {
117
118
  }
118
119
  self.componentList = componentList;
119
120
  FSBL.Clients.Logger.debug("appLauncher filterComponents", self.componentList, "settings", settings, "customData", FSBL.Clients.WindowClient.options.customData);
120
- appLauncherStore.setValue({
121
+ appLauncherStore === null || appLauncherStore === void 0 ? void 0 : appLauncherStore.setValue({
121
122
  field: "componentList",
122
123
  value: self.componentList,
123
124
  });
124
125
  self.saveCustomComponents();
125
126
  },
126
- handleRemoveCustomComponent(componentName, cb = Function.prototype) {
127
- var self = this;
127
+ handleRemoveCustomComponent(componentName, cb = (wasDeconsted) => { }) {
128
+ const self = this;
128
129
  FSBL.Clients.DialogManager.open("yesNo", {
129
130
  title: "Delete this App?",
130
131
  question: `Are you sure you would like to delete "${componentName}"?`,
@@ -154,8 +155,7 @@ var Actions = {
154
155
  finsembleWindow.hide();
155
156
  },
156
157
  launchComponent(config, params, cb) {
157
- console.log("launchComponent");
158
- let defaultParams = {
158
+ const defaultParams = {
159
159
  addToWorkspace: true,
160
160
  monitor: "mine",
161
161
  options: { customData: {} },
@@ -170,39 +170,25 @@ var Actions = {
170
170
  if (config.component.windowGroup) {
171
171
  params.groupName = config.component.windowGroup;
172
172
  }
173
- FSBL.Clients.LauncherClient.spawn(config.component.type, params, (err, windowInfo) => {
173
+ FSBL.Clients.LauncherClient.spawn(config.component.type, params, (_err, windowInfo) => {
174
174
  if (cb) {
175
- cb(windowInfo.windowIdentifier);
175
+ cb(windowInfo === null || windowInfo === void 0 ? void 0 : windowInfo.windowIdentifier);
176
176
  }
177
177
  });
178
178
  },
179
- createNewWindowGroup(groupPrefix, cb) {
180
- windowGroupStore.getValue({ field: groupPrefix }, (err, value) => {
181
- var currentGroup = 1;
182
- if (value) {
183
- currentGroup = Math.max(...Object.keys(value)) + 1;
184
- }
185
- let groupName = `${groupPrefix}.${currentGroup}`;
186
- FSBL.Clients.LauncherClient.createWindowGroup({
187
- groupName: groupName,
188
- }, () => {
189
- cb(groupName);
190
- });
191
- });
192
- },
193
179
  };
194
180
  function createLocalStore(done) {
195
- let defaultData = {
181
+ const defaultData = {
196
182
  componentList: {},
197
183
  monitorDimensions: {},
198
184
  };
199
- FSBL.Clients.DistributedStoreClient.createStore({ store: "Finsemble-AppLauncher-Local-Store", values: defaultData }, (err, store) => {
185
+ FSBL.Clients.DistributedStoreClient.createStore({ store: "Finsemble-AppLauncher-Local-Store", values: defaultData }, (_err, store) => {
200
186
  appLauncherStore = store;
201
187
  done();
202
188
  });
203
189
  }
204
190
  function getWindowGroupStore(done) {
205
- FSBL.Clients.DistributedStoreClient.getStore({ global: true, store: "Finsemble-WindowGroups" }, (err, store) => {
191
+ FSBL.Clients.DistributedStoreClient.createStore({ global: true, store: "Finsemble-WindowGroups" }, (_err, store) => {
206
192
  windowGroupStore = store;
207
193
  done();
208
194
  });
@@ -218,20 +204,20 @@ function initialize(cb) {
218
204
  cb(appLauncherStore);
219
205
  });
220
206
  }
221
- var keys = {};
207
+ const keys = {};
222
208
  function setupHotkeys(cb) {
223
- FSBL.Clients.RouterClient.subscribe("humanInterface.keydown", (err, response) => {
209
+ FSBL.Clients.RouterClient.subscribe("humanInterface.keydown", (_err, response) => {
224
210
  if (!keys[response.data.key]) {
225
211
  keys[response.data.key] = {};
226
212
  }
227
213
  keys[response.data.key] = true;
228
214
  if (keys[160] && keys[162] && keys[68]) {
229
215
  if (Actions.componentList["Advanced Chart"]) {
230
- FSBL.Clients.LauncherClient.spawn("Advanced Chart", { addToWorkspace: true }, { monitor: "mine" });
216
+ FSBL.Clients.LauncherClient.spawn("Advanced Chart", { addToWorkspace: true, monitor: "mine" });
231
217
  }
232
218
  }
233
219
  });
234
- FSBL.Clients.RouterClient.subscribe("humanInterface.keyup", (err, response) => {
220
+ FSBL.Clients.RouterClient.subscribe("humanInterface.keyup", (_err, response) => {
235
221
  if (!keys[response.data.key]) {
236
222
  keys[response.data.key] = {};
237
223
  }
@@ -239,7 +225,7 @@ function setupHotkeys(cb) {
239
225
  });
240
226
  return cb();
241
227
  }
242
- let getStore = () => appLauncherStore;
228
+ const getStore = () => appLauncherStore;
243
229
  class StoreManager {
244
230
  constructor() {
245
231
  this.initialized = false;
@@ -258,7 +244,7 @@ class StoreManager {
258
244
  });
259
245
  }
260
246
  addInitializedListener(cb) {
261
- if (this.initialized)
247
+ if (this.initialized && this.store)
262
248
  return cb(this.store);
263
249
  this.callbacks.push(cb);
264
250
  }
@@ -267,9 +253,5 @@ class StoreManager {
267
253
  }
268
254
  }
269
255
  const storeManager = new StoreManager();
270
- export { storeManager };
271
- export { initialize };
272
- export { appLauncherStore as Store };
273
- export { Actions };
274
- export { getStore };
256
+ export { storeManager, initialize, appLauncherStore as Store, Actions, getStore };
275
257
  //# sourceMappingURL=appLauncherStore.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"appLauncherStore.js","sourceRoot":"","sources":["../../../../../src/components/toolbar/appLauncher/stores/appLauncherStore.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,IAAI,gBAAgB,CAAC;AACrB,IAAI,gBAAgB,CAAC;AACrB,IAAI,wBAAwB,CAAC;AAE7B,IAAI,OAAO,GAAG;IACb,UAAU,EAAE,UAAU,EAAE;QACvB,KAAK,CAAC,QAAQ,CACb;YACC,OAAO,CAAC,uBAAuB;YAC/B,OAAO,CAAC,2BAA2B;YAEnC,YAAY;SACZ,EACD,CAAC,GAAG,EAAE,EAAE;YACP,IAAI,GAAG,EAAE;gBACR,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aACnB;YACD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;YACrD,EAAE,EAAE,CAAC;QACN,CAAC,CACD,CAAC;IACH,CAAC;IACD,gBAAgB,CAAC,EAAE;QAClB,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE;YAC9D,IAAI,GAAG,EAAE;gBACR,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;aACrB;YAED,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,sCAAsC,EAAE,QAAQ,CAAC,CAAC;YAC5E,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;YACnC,IAAI,EAAE,EAAE;gBACP,EAAE,EAAE,CAAC;aACL;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,uBAAuB,CAAC,EAAE;QACzB,IAAI,IAAI,GAAG,OAAO,CAAC;QACnB,IAAI,SAAS,GAAG,IAAI,CAAC;QAGrB,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,wBAAwB,EAAE,CAAC,GAAG,EAAE,QA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AI,YAAY,EAAE,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,OAAO,EAAE,gBAAgB,IAAI,KAAK,EAAE,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n\r\nimport async from \"async\";\r\nlet appLauncherStore;\r\nlet windowGroupStore;\r\nvar COMPONENT_UPDATE_CHANNEL;\r\n\r\nvar Actions = {\r\n\tinitialize: function (cb) {\r\n\t\tasync.parallel(\r\n\t\t\t[\r\n\t\t\t\tActions.initializeComponentList,\r\n\t\t\t\tActions.getUserDefinedComponentList,\r\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-use-before-define\r\n\t\t\t\tsetupHotkeys,\r\n\t\t\t],\r\n\t\t\t(err) => {\r\n\t\t\t\tif (err) {\r\n\t\t\t\t\tconsole.error(err);\r\n\t\t\t\t}\r\n\t\t\t\tFSBL.Clients.Logger.debug(\"Actions.initialize done\");\r\n\t\t\t\tcb();\r\n\t\t\t}\r\n\t\t);\r\n\t},\r\n\tgetComponentList(cb) {\r\n\t\tFSBL.Clients.LauncherClient.getComponentList((err, response) => {\r\n\t\t\tif (err) {\r\n\t\t\t\tthrow new Error(err);\r\n\t\t\t}\r\n\t\t\t// Each AppLauncher\r\n\t\t\tFSBL.Clients.Logger.debug(\"getComponentList from LauncherClient\", response);\r\n\t\t\tActions.filterComponents(response);\r\n\t\t\tif (cb) {\r\n\t\t\t\tcb();\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\tinitializeComponentList(cb) {\r\n\t\tvar self = Actions;\r\n\t\tvar firstTime = true;\r\n\r\n\t\t// When an app launcher button is clicked, it sends over the types of components that the app launcher can spawn. We assign that data to an object in the windowClient, and then use that to render the app launcher.\r\n\t\tFSBL.Clients.RouterClient.subscribe(COMPONENT_UPDATE_CHANNEL, (err, response) => {\r\n\t\t\tif (!FSBL.Clients.WindowClient.options.customData.spawnData) {\r\n\t\t\t\tFSBL.Clients.WindowClient.options.customData.spawnData = {};\r\n\t\t\t}\r\n\t\t\tObject.assign(FSBL.Clients.WindowClient.options.customData.spawnData, response.data);\r\n\t\t\tif (firstTime) {\r\n\t\t\t\t// only update component list the first time to eliminate re-rendering the menu\r\n\t\t\t\tActions.getComponentList(cb);\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Whenever we add or remove a component, this event is fired. We get a list of all components, then filter it out to include only the ones that this particular launcher is capable of spawning.\r\n\t\tFSBL.Clients.RouterClient.subscribe(\"Launcher.update\", (err, response) => {\r\n\t\t\tFSBL.Clients.Logger.debug(\"list updated\", err, response);\r\n\t\t\tif (err) {\r\n\t\t\t\treturn console.error(err);\r\n\t\t\t}\r\n\t\t\tself.filterComponents(response.data.componentList);\r\n\t\t});\r\n\t},\r\n\t// get quick components that the user created from storage.\r\n\tgetUserDefinedComponentList(cb) {\r\n\t\treturn cb();\r\n\t},\r\n\t// saves quick components\r\n\tsaveCustomComponents() {\r\n\t\tvar UDCs = {};\r\n\t\tvar components = Object.keys(Actions.componentList);\r\n\t\tfor (var i = 0; i < components.length; i++) {\r\n\t\t\tvar config = Actions.componentList[components[i]];\r\n\t\t\tif (config.component && config.component.isUserDefined) {\r\n\t\t\t\tUDCs[config.component.type] = config;\r\n\t\t\t}\r\n\t\t}\r\n\t\tFSBL.Clients.StorageClient.save({\r\n\t\t\ttopic: \"finsemble\",\r\n\t\t\tkey: \"userDefinedComponents\",\r\n\t\t\tvalue: UDCs,\r\n\t\t});\r\n\t},\r\n\t// This filters components based on the mode and list settings in customData\r\n\t// Available settings are list - where you list specific individual component Types, mode - which piggybacks on config.mode and lists all components where the mode matches\r\n\t// If neither mode not list are set, all components are shown\r\n\t// Custom Components are always shown @TODO - make this a setting\r\n\tfilterComponents(components) {\r\n\t\tvar self = this;\r\n\t\tvar settings = FSBL.Clients.WindowClient.getSpawnData();\r\n\t\tvar componentList = {};\r\n\t\tvar keys = Object.keys(components);\r\n\t\tif (!settings) {\r\n\t\t\tsettings = {};\r\n\t\t\tFSBL.Clients.Logger.system.warn(\"appLauncherStore.js: `settings` is null or undefined\");\r\n\t\t}\r\n\t\tif (settings.mode) {\r\n\t\t\tif (!Array.isArray(settings.mode)) {\r\n\t\t\t\tsettings.mode = [settings.mode];\r\n\t\t\t}\r\n\t\t\tkeys.forEach((componentType) => {\r\n\t\t\t\tvar config = components[componentType];\r\n\t\t\t\tvar componentMode = config.component && config.component.mode ? config.component.mode : \"\";\r\n\r\n\t\t\t\tif (componentMode || componentMode === \"\") {\r\n\t\t\t\t\t// component.mode can either be a string or an array of strings. So rationalize it to an array.\r\n\t\t\t\t\tif (componentMode.constructor !== Array) {\r\n\t\t\t\t\t\tcomponentMode = [componentMode];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tlet commonModes = componentMode.filter((n) => settings.mode.indexOf(n) !== -1);\r\n\r\n\t\t\t\t\t// If the current mode isn't in the list of modes for the component then don't include it in our list\r\n\t\t\t\t\tif (commonModes.length) {\r\n\t\t\t\t\t\tcomponentList[componentType] = components[componentType];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (settings.list) {\r\n\t\t\tvar commonItems = settings.list.filter((n) => keys.indexOf(n) !== -1);\r\n\r\n\t\t\tfor (let i = 0; i < commonItems.length; i++) {\r\n\t\t\t\tcomponentList[commonItems[i]] = components[commonItems[i]];\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!settings.mode && !settings.list) {\r\n\t\t\tcomponentList = components;\r\n\t\t} else {\r\n\t\t\tfor (let i = 0; i < keys.length; i++) {\r\n\t\t\t\tlet component = components[keys[i]];\r\n\t\t\t\tif (component.component.isUserDefined) {\r\n\t\t\t\t\tcomponentList[keys[i]] = component;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tself.componentList = componentList;\r\n\r\n\t\tFSBL.Clients.Logger.debug(\r\n\t\t\t\"appLauncher filterComponents\",\r\n\t\t\tself.componentList,\r\n\t\t\t\"settings\",\r\n\t\t\tsettings,\r\n\t\t\t\"customData\",\r\n\t\t\tFSBL.Clients.WindowClient.options.customData\r\n\t\t);\r\n\t\tappLauncherStore.setValue({\r\n\t\t\tfield: \"componentList\",\r\n\t\t\tvalue: self.componentList,\r\n\t\t});\r\n\t\tself.saveCustomComponents();\r\n\t},\r\n\t// Handler for when the user wants to remove a quick component.\r\n\thandleRemoveCustomComponent(componentName, cb = Function.prototype) {\r\n\t\tvar self = this;\r\n\t\tFSBL.Clients.DialogManager.open(\r\n\t\t\t\"yesNo\",\r\n\t\t\t{\r\n\t\t\t\ttitle: \"Delete this App?\",\r\n\t\t\t\tquestion: `Are you sure you would like to delete \"${componentName}\"?`,\r\n\t\t\t\taffirmativeResponseLabel: \"Delete\",\r\n\t\t\t\tshowNegativeButton: false,\r\n\t\t\t},\r\n\t\t\t(err, response) => {\r\n\t\t\t\t// If the user chooses \"affirmative\" then delete the component.\r\n\t\t\t\t// We should never get an error, but if we do then go ahead and delete the component too.\r\n\t\t\t\tif (err || response.choice === \"affirmative\") {\r\n\t\t\t\t\tcb(true);\r\n\t\t\t\t\tself.removeCustomComponent(componentName);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcb(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t},\r\n\t// Remove the component, notify others.\r\n\tremoveCustomComponent(componentName) {\r\n\t\tFSBL.Clients.LauncherClient.removeUserDefinedComponent(\r\n\t\t\t{\r\n\t\t\t\tname: componentName,\r\n\t\t\t},\r\n\t\t\t(err) => {\r\n\t\t\t\tif (err) {\r\n\t\t\t\t\treturn console.error(err);\r\n\t\t\t\t}\r\n\t\t\t\tActions.getComponentList();\r\n\t\t\t}\r\n\t\t);\r\n\t},\r\n\t// Hide the window.\r\n\thideWindow() {\r\n\t\tfinsembleWindow.hide();\r\n\t},\r\n\t// Spawn a component.\r\n\tlaunchComponent(config, params, cb) {\r\n\t\t// Actions.hideWindow();\r\n\t\tconsole.log(\"launchComponent\");\r\n\t\tlet defaultParams = {\r\n\t\t\taddToWorkspace: true,\r\n\t\t\tmonitor: \"mine\",\r\n\t\t\toptions: { customData: {} },\r\n\t\t};\r\n\t\tparams = Object.assign(defaultParams, params);\r\n\t\tif (!params.options.customData) {\r\n\t\t\tparams.options.customData = {};\r\n\t\t}\r\n\t\tif (!params.options.customData.component) {\r\n\t\t\tparams.options.customData.component = {};\r\n\t\t}\r\n\t\tif (config.component.windowGroup) {\r\n\t\t\tparams.groupName = config.component.windowGroup;\r\n\t\t}\r\n\t\tFSBL.Clients.LauncherClient.spawn(config.component.type, params, (err, windowInfo) => {\r\n\t\t\tif (cb) {\r\n\t\t\t\tcb(windowInfo.windowIdentifier);\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\tcreateNewWindowGroup(groupPrefix, cb) {\r\n\t\twindowGroupStore.getValue({ field: groupPrefix }, (err, value) => {\r\n\t\t\tvar currentGroup = 1;\r\n\t\t\tif (value) {\r\n\t\t\t\tcurrentGroup = Math.max(...Object.keys(value)) + 1;\r\n\t\t\t}\r\n\t\t\tlet groupName = `${groupPrefix}.${currentGroup}`;\r\n\t\t\tFSBL.Clients.LauncherClient.createWindowGroup(\r\n\t\t\t\t{\r\n\t\t\t\t\tgroupName: groupName,\r\n\t\t\t\t},\r\n\t\t\t\t() => {\r\n\t\t\t\t\tcb(groupName);\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\t});\r\n\t},\r\n};\r\n\r\nfunction createLocalStore(done) {\r\n\tlet defaultData = {\r\n\t\tcomponentList: {},\r\n\t\tmonitorDimensions: {},\r\n\t};\r\n\r\n\tFSBL.Clients.DistributedStoreClient.createStore(\r\n\t\t{ store: \"Finsemble-AppLauncher-Local-Store\", values: defaultData },\r\n\t\t(err, store) => {\r\n\t\t\tappLauncherStore = store;\r\n\t\t\tdone();\r\n\t\t}\r\n\t);\r\n}\r\n\r\nfunction getWindowGroupStore(done) {\r\n\tFSBL.Clients.DistributedStoreClient.getStore({ global: true, store: \"Finsemble-WindowGroups\" }, (err, store) => {\r\n\t\twindowGroupStore = store;\r\n\t\tdone();\r\n\t});\r\n}\r\n\r\nfunction initialize(cb) {\r\n\tCOMPONENT_UPDATE_CHANNEL = `${finsembleWindow.name}.ComponentsToRender`;\r\n\tFSBL.Clients.RouterClient.addPubSubResponder(COMPONENT_UPDATE_CHANNEL, {});\r\n\tasync.parallel([createLocalStore, getWindowGroupStore, Actions.initialize], (err) => {\r\n\t\tif (err) {\r\n\t\t\tconsole.error(err);\r\n\t\t}\r\n\t\tFSBL.Clients.Logger.debug(\"appLauncherstore init done\");\r\n\t\tcb(appLauncherStore);\r\n\t});\r\n}\r\nvar keys = {};\r\nfunction setupHotkeys(cb) {\r\n\tFSBL.Clients.RouterClient.subscribe(\"humanInterface.keydown\", (err, response) => {\r\n\t\tif (!keys[response.data.key]) {\r\n\t\t\tkeys[response.data.key] = {};\r\n\t\t}\r\n\t\tkeys[response.data.key] = true;\r\n\t\tif (keys[160] && keys[162] && keys[68]) {\r\n\t\t\tif (Actions.componentList[\"Advanced Chart\"]) {\r\n\t\t\t\tFSBL.Clients.LauncherClient.spawn(\"Advanced Chart\", { addToWorkspace: true }, { monitor: \"mine\" });\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tFSBL.Clients.RouterClient.subscribe(\"humanInterface.keyup\", (err, response) => {\r\n\t\tif (!keys[response.data.key]) {\r\n\t\t\tkeys[response.data.key] = {};\r\n\t\t}\r\n\t\tkeys[response.data.key] = false;\r\n\t});\r\n\r\n\treturn cb();\r\n}\r\nlet getStore = () => appLauncherStore;\r\n\r\n/**\r\n * This is a quick little initialization manager that Terry hacked up.\r\n * Ultimately everything in this file should be rewritten in hooks/redux pattern.\r\n */\r\nclass StoreManager {\r\n\tconstructor() {\r\n\t\tthis.initialized = false;\r\n\t\tthis.initializing = false;\r\n\t\tthis.callbacks = [];\r\n\t\tthis.store = null;\r\n\t}\r\n\r\n\tinitialize() {\r\n\t\tif (this.initializing) return;\r\n\t\tthis.initializing = true;\r\n\t\tinitialize((store) => {\r\n\t\t\tthis.initialized = true;\r\n\t\t\tthis.store = store;\r\n\t\t\tthis.callbacks.forEach((cb) => cb(store));\r\n\t\t});\r\n\t}\r\n\r\n\taddInitializedListener(cb) {\r\n\t\tif (this.initialized) return cb(this.store);\r\n\t\tthis.callbacks.push(cb);\r\n\t}\r\n\r\n\tremoveInitializedListener(cb) {\r\n\t\tthis.callbacks = this.callbacks.filter((entry) => entry !== cb);\r\n\t}\r\n}\r\nconst storeManager = new StoreManager();\r\n\r\nexport { storeManager };\r\nexport { initialize };\r\nexport { appLauncherStore as Store };\r\nexport { Actions };\r\nexport { getStore };\r\n"]}
1
+ {"version":3,"file":"appLauncherStore.js","sourceRoot":"","sources":["../../../../../src/components/toolbar/appLauncher/stores/appLauncherStore.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,IAAI,gBAAwC,CAAC;AAC7C,IAAI,gBAAwC,CAAC;AAC7C,IAAI,wBAAgC,CAAC;AAMrC,MAAM,OAAO,GAAG;IACf,aAAa,EAAE,EAAmB;IAClC,UAAU,EAAE,UAAU,EAAgB;QACrC,KAAK,CAAC,QAAQ,CACb;YACC,OAAO,CAAC,uBAAuB;YAC/B,OAAO,CAAC,2BAA2B;YAEnC,YAAY;SACZ,EACD,CAAC,GAAG,EAAE,EAAE;YACP,IAAI,GAAG,EAAE;gBACR,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aACnB;YACD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;YACrD,EAAE,EAAE,CAAC;QACN,CAAC,CACD,CAAC;IACH,CAAC;IACD,gBAAgB,CAAC,EAA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,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC;IACjE,CAAC;CACD;AACD,MAAM,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,IAAI,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n\r\nimport StoreModel from \"@finsemble/finsemble-core/types/clients/StoreModel\";\r\nimport { SpawnResponse } from \"@finsemble/finsemble-core/types/clients/launcherClient\";\r\nimport { StandardError } from \"@finsemble/finsemble-core/types/types\";\r\nimport async from \"async\";\r\nimport { WindowIdentifier } from \"@finsemble/finsemble-core\";\r\nlet appLauncherStore: StoreModel | undefined;\r\nlet windowGroupStore: StoreModel | undefined;\r\nlet COMPONENT_UPDATE_CHANNEL: string;\r\n\r\ntype VoidCallback = () => void;\r\ntype ComponentDescriptor = Record<string, any>;\r\ntype ComponentList = Record<string, ComponentDescriptor>;\r\n\r\nconst Actions = {\r\n\tcomponentList: {} as ComponentList,\r\n\tinitialize: function (cb: VoidCallback) {\r\n\t\tasync.parallel(\r\n\t\t\t[\r\n\t\t\t\tActions.initializeComponentList,\r\n\t\t\t\tActions.getUserDefinedComponentList,\r\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-use-before-define\r\n\t\t\t\tsetupHotkeys,\r\n\t\t\t],\r\n\t\t\t(err) => {\r\n\t\t\t\tif (err) {\r\n\t\t\t\t\tconsole.error(err);\r\n\t\t\t\t}\r\n\t\t\t\tFSBL.Clients.Logger.debug(\"Actions.initialize done\");\r\n\t\t\t\tcb();\r\n\t\t\t}\r\n\t\t);\r\n\t},\r\n\tgetComponentList(cb?: VoidCallback) {\r\n\t\tFSBL.Clients.LauncherClient.getComponentList((err: StandardError, response) => {\r\n\t\t\tif (typeof err === \"string\") {\r\n\t\t\t\tthrow new Error(err);\r\n\t\t\t}\r\n\t\t\t// Each AppLauncher\r\n\t\t\tFSBL.Clients.Logger.debug(\"getComponentList from LauncherClient\", response);\r\n\t\t\tActions.filterComponents(response);\r\n\t\t\tif (cb) {\r\n\t\t\t\tcb();\r\n\t\t\t}\r\n\t\t});\r\n\t},\r\n\tinitializeComponentList(cb: VoidCallback) {\r\n\t\tconst self = Actions;\r\n\t\tlet firstTime = true;\r\n\r\n\t\t// When an app launcher button is clicked, it sends over the types of components that the app launcher can spawn. We assign that data to an object in the windowClient, and then use that to render the app launcher.\r\n\t\tFSBL.Clients.RouterClient.subscribe(COMPONENT_UPDATE_CHANNEL, (_err, response) => {\r\n\t\t\tif (!FSBL.Clients.WindowClient.options.customData.spawnData) {\r\n\t\t\t\tFSBL.Clients.WindowClient.options.customData.spawnData = {};\r\n\t\t\t}\r\n\t\t\tObject.assign(FSBL.Clients.WindowClient.options.customData.spawnData, response.data);\r\n\t\t\tif (firstTime) {\r\n\t\t\t\t// only update component list the first time to eliminate re-rendering the menu\r\n\t\t\t\tActions.getComponentList(cb);\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Whenever we add or remove a component, this event is fired. We get a list of all components, then filter it out to include only the ones that this particular launcher is capable of spawning.\r\n\t\tFSBL.Clients.RouterClient.subscribe(\"Launcher.update\", (err, response) => {\r\n\t\t\tFSBL.Clients.Logger.debug(\"list updated\", err, response);\r\n\t\t\tif (err) {\r\n\t\t\t\treturn console.error(err);\r\n\t\t\t}\r\n\t\t\tself.filterComponents(response.data.componentList);\r\n\t\t});\r\n\t},\r\n\t// get quick components that the user created from storage.\r\n\tgetUserDefinedComponentList(cb: VoidCallback) {\r\n\t\treturn cb();\r\n\t},\r\n\t// saves quick components\r\n\tsaveCustomComponents() {\r\n\t\tconst UDCs: { [key: string]: any } = {};\r\n\t\tconst components = Object.keys(Actions.componentList);\r\n\t\tfor (let i = 0; i < components.length; i++) {\r\n\t\t\tconst config = Actions.componentList[components[i]];\r\n\t\t\tif (config.component && config.component.isUserDefined) {\r\n\t\t\t\tUDCs[config.component.type] = config;\r\n\t\t\t}\r\n\t\t}\r\n\t\tFSBL.Clients.StorageClient.save({\r\n\t\t\ttopic: \"finsemble\",\r\n\t\t\tkey: \"userDefinedComponents\",\r\n\t\t\tvalue: UDCs,\r\n\t\t});\r\n\t},\r\n\t// This filters components based on the mode and list settings in customData\r\n\t// Available settings are list - where you list specific individual component Types, mode - which piggybacks on config.mode and lists all components where the mode matches\r\n\t// If neither mode not list are set, all components are shown\r\n\t// Custom Components are always shown @TODO - make this a setting\r\n\tfilterComponents(components: ComponentList = {}) {\r\n\t\tconst self = this;\r\n\t\tlet settings: any = FSBL.Clients.WindowClient.getSpawnData();\r\n\t\tlet componentList: ComponentList = {};\r\n\t\tconst keys = Object.keys(components);\r\n\t\tif (!settings) {\r\n\t\t\tsettings = {};\r\n\t\t\tFSBL.Clients.Logger.system.warn(\"appLauncherStore.js: `settings` is null or undefined\");\r\n\t\t}\r\n\t\tif (settings.mode) {\r\n\t\t\tif (!Array.isArray(settings.mode)) {\r\n\t\t\t\tsettings.mode = [settings.mode];\r\n\t\t\t}\r\n\t\t\tkeys.forEach((componentType) => {\r\n\t\t\t\tconst config = components[componentType];\r\n\t\t\t\tlet componentMode = config.component && config.component.mode ? config.component.mode : \"\";\r\n\r\n\t\t\t\tif (componentMode || componentMode === \"\") {\r\n\t\t\t\t\t// component.mode can either be a string or an array of strings. So rationalize it to an array.\r\n\t\t\t\t\tif (componentMode.constructor !== Array) {\r\n\t\t\t\t\t\tcomponentMode = [componentMode];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tconst commonModes = componentMode.filter((n: ComponentDescriptor) => settings.mode.indexOf(n) !== -1);\r\n\r\n\t\t\t\t\t// If the current mode isn't in the list of modes for the component then don't include it in our list\r\n\t\t\t\t\tif (commonModes.length) {\r\n\t\t\t\t\t\tcomponentList[componentType] = components[componentType];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tif (settings.list) {\r\n\t\t\tconst commonItems = settings.list.filter((n: any) => keys.indexOf(n) !== -1);\r\n\r\n\t\t\tfor (let i = 0; i < commonItems.length; i++) {\r\n\t\t\t\tcomponentList[commonItems[i]] = components[commonItems[i]];\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!settings.mode && !settings.list) {\r\n\t\t\tcomponentList = components;\r\n\t\t} else {\r\n\t\t\tfor (let i = 0; i < keys.length; i++) {\r\n\t\t\t\tconst component = components[keys[i]];\r\n\t\t\t\tif (component.component.isUserDefined) {\r\n\t\t\t\t\tcomponentList[keys[i]] = component;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tself.componentList = componentList;\r\n\r\n\t\tFSBL.Clients.Logger.debug(\r\n\t\t\t\"appLauncher filterComponents\",\r\n\t\t\tself.componentList,\r\n\t\t\t\"settings\",\r\n\t\t\tsettings,\r\n\t\t\t\"customData\",\r\n\t\t\tFSBL.Clients.WindowClient.options.customData\r\n\t\t);\r\n\t\tappLauncherStore?.setValue({\r\n\t\t\tfield: \"componentList\",\r\n\t\t\tvalue: self.componentList,\r\n\t\t});\r\n\t\tself.saveCustomComponents();\r\n\t},\r\n\t// Handler for when the user wants to remove a quick component.\r\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n\thandleRemoveCustomComponent(componentName: string, cb = (wasDeconsted: boolean) => {}) {\r\n\t\tconst self = this;\r\n\t\tFSBL.Clients.DialogManager.open(\r\n\t\t\t\"yesNo\",\r\n\t\t\t{\r\n\t\t\t\ttitle: \"Delete this App?\",\r\n\t\t\t\tquestion: `Are you sure you would like to delete \"${componentName}\"?`,\r\n\t\t\t\taffirmativeResponseLabel: \"Delete\",\r\n\t\t\t\tshowNegativeButton: false,\r\n\t\t\t},\r\n\t\t\t(err, response) => {\r\n\t\t\t\t// If the user chooses \"affirmative\" then delete the component.\r\n\t\t\t\t// We should never get an error, but if we do then go ahead and delete the component too.\r\n\t\t\t\tif (err || response.choice === \"affirmative\") {\r\n\t\t\t\t\tcb(true);\r\n\t\t\t\t\tself.removeCustomComponent(componentName);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcb(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t},\r\n\t// Remove the component, notify others.\r\n\tremoveCustomComponent(componentName: string) {\r\n\t\tFSBL.Clients.LauncherClient.removeUserDefinedComponent(\r\n\t\t\t{\r\n\t\t\t\tname: componentName,\r\n\t\t\t},\r\n\t\t\t(err) => {\r\n\t\t\t\tif (err) {\r\n\t\t\t\t\treturn console.error(err);\r\n\t\t\t\t}\r\n\t\t\t\tActions.getComponentList();\r\n\t\t\t}\r\n\t\t);\r\n\t},\r\n\t// Hide the window.\r\n\thideWindow() {\r\n\t\tfinsembleWindow.hide();\r\n\t},\r\n\t// Spawn a component.\r\n\tlaunchComponent(config: any, params: any, cb?: (win?: WindowIdentifier) => void) {\r\n\t\t// Actions.hideWindow();\r\n\t\tconst defaultParams = {\r\n\t\t\taddToWorkspace: true,\r\n\t\t\tmonitor: \"mine\",\r\n\t\t\toptions: { customData: {} },\r\n\t\t};\r\n\t\tparams = Object.assign(defaultParams, params);\r\n\t\tif (!params.options.customData) {\r\n\t\t\tparams.options.customData = {};\r\n\t\t}\r\n\t\tif (!params.options.customData.component) {\r\n\t\t\tparams.options.customData.component = {};\r\n\t\t}\r\n\t\tif (config.component.windowGroup) {\r\n\t\t\tparams.groupName = config.component.windowGroup;\r\n\t\t}\r\n\t\tFSBL.Clients.LauncherClient.spawn(\r\n\t\t\tconfig.component.type,\r\n\t\t\tparams,\r\n\t\t\t(_err: StandardError, windowInfo?: SpawnResponse) => {\r\n\t\t\t\tif (cb) {\r\n\t\t\t\t\tcb(windowInfo?.windowIdentifier);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t},\r\n};\r\n\r\nfunction createLocalStore(done: VoidCallback) {\r\n\tconst defaultData = {\r\n\t\tcomponentList: {},\r\n\t\tmonitorDimensions: {},\r\n\t};\r\n\r\n\tFSBL.Clients.DistributedStoreClient.createStore(\r\n\t\t{ store: \"Finsemble-AppLauncher-Local-Store\", values: defaultData },\r\n\t\t(_err, store) => {\r\n\t\t\tappLauncherStore = store;\r\n\t\t\tdone();\r\n\t\t}\r\n\t);\r\n}\r\n\r\nfunction getWindowGroupStore(done: VoidCallback) {\r\n\tFSBL.Clients.DistributedStoreClient.createStore({ global: true, store: \"Finsemble-WindowGroups\" }, (_err, store) => {\r\n\t\twindowGroupStore = store;\r\n\t\tdone();\r\n\t});\r\n}\r\n\r\nfunction initialize(cb: (store?: StoreModel) => void) {\r\n\tCOMPONENT_UPDATE_CHANNEL = `${finsembleWindow.name}.ComponentsToRender`;\r\n\tFSBL.Clients.RouterClient.addPubSubResponder(COMPONENT_UPDATE_CHANNEL, {});\r\n\tasync.parallel([createLocalStore, getWindowGroupStore, Actions.initialize], (err) => {\r\n\t\tif (err) {\r\n\t\t\tconsole.error(err);\r\n\t\t}\r\n\t\tFSBL.Clients.Logger.debug(\"appLauncherstore init done\");\r\n\t\tcb(appLauncherStore);\r\n\t});\r\n}\r\n\r\nconst keys: { [key: string]: any } = {};\r\nfunction setupHotkeys(cb: VoidCallback) {\r\n\tFSBL.Clients.RouterClient.subscribe(\"humanInterface.keydown\", (_err, response) => {\r\n\t\tif (!keys[response.data.key]) {\r\n\t\t\tkeys[response.data.key] = {};\r\n\t\t}\r\n\t\tkeys[response.data.key] = true;\r\n\t\tif (keys[160] && keys[162] && keys[68]) {\r\n\t\t\tif (Actions.componentList[\"Advanced Chart\"]) {\r\n\t\t\t\tFSBL.Clients.LauncherClient.spawn(\"Advanced Chart\", { addToWorkspace: true, monitor: \"mine\" });\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tFSBL.Clients.RouterClient.subscribe(\"humanInterface.keyup\", (_err, response) => {\r\n\t\tif (!keys[response.data.key]) {\r\n\t\t\tkeys[response.data.key] = {};\r\n\t\t}\r\n\t\tkeys[response.data.key] = false;\r\n\t});\r\n\r\n\treturn cb();\r\n}\r\n\r\nconst getStore = () => appLauncherStore;\r\n\r\nclass StoreManager {\r\n\tinitialized: boolean;\r\n\r\n\tinitializing: boolean;\r\n\r\n\tcallbacks: Function[];\r\n\r\n\tstore: StoreModel | undefined | null;\r\n\r\n\tconstructor() {\r\n\t\tthis.initialized = false;\r\n\t\tthis.initializing = false;\r\n\t\tthis.callbacks = [];\r\n\t\tthis.store = null;\r\n\t}\r\n\r\n\tinitialize() {\r\n\t\tif (this.initializing) return;\r\n\t\tthis.initializing = true;\r\n\t\tinitialize((store?: StoreModel) => {\r\n\t\t\tthis.initialized = true;\r\n\t\t\tthis.store = store;\r\n\t\t\tthis.callbacks.forEach((cb) => cb(store));\r\n\t\t});\r\n\t}\r\n\r\n\taddInitializedListener(cb: (store: StoreModel) => void) {\r\n\t\tif (this.initialized && this.store) return cb(this.store);\r\n\t\tthis.callbacks.push(cb);\r\n\t}\r\n\r\n\tremoveInitializedListener(cb: Function) {\r\n\t\tthis.callbacks = this.callbacks.filter((entry) => entry !== cb);\r\n\t}\r\n}\r\nconst storeManager = new StoreManager();\r\n\r\nexport { storeManager, initialize, appLauncherStore as Store, Actions, getStore };\r\n"]}
@@ -26,7 +26,7 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
26
26
  return (React.createElement("div", { ref: titleRef, onClick: () => handleWidgetTitleClick() },
27
27
  React.createElement("span", { dangerouslySetInnerHTML: { __html: widget.title } })));
28
28
  };
29
- const titleGenerator = widgetTitleGenerator ?? defaultWidgetTitleGenerator;
29
+ const titleGenerator = widgetTitleGenerator !== null && widgetTitleGenerator !== void 0 ? widgetTitleGenerator : defaultWidgetTitleGenerator;
30
30
  const reorderItems = ({ oldIndex, newIndex }) => {
31
31
  movingIndex = null;
32
32
  titleGrabPosition = null;
@@ -56,8 +56,7 @@ export const Dashbar = ({ className, children, widgetTitleGenerator }) => {
56
56
  const [leftButtonTooltip, setLeftButtonTooltip] = useState("");
57
57
  const [rightButtonTooltip, setRightButtonTooltip] = useState("");
58
58
  const setWidgetsPositions = (isCalledFromDashbar) => {
59
- const fsblWindow = FSBL.Clients.WindowClient.getCurrentWindow();
60
- fsblWindow.getBounds((bounds) => {
59
+ finsembleWindow.getBounds((bounds) => {
61
60
  const toolbarWidth = bounds.width ? bounds.width : 0;
62
61
  const elements = document.getElementsByClassName("dashbar-item-frame");
63
62
  let tempLeft = 0;