@finsemble/finsemble-ui 6.3.0 → 6.4.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (745) hide show
  1. package/README.md +28 -28
  2. package/package.json +21 -33
  3. package/react/actions/favoriteActions.js.map +1 -1
  4. package/react/actions/linkerActions.js.map +1 -1
  5. package/react/actions/menuActions.js.map +1 -1
  6. package/react/actions/rootActions.js.map +1 -1
  7. package/react/actions/searchActions.js.map +1 -1
  8. package/react/actions/smartDesktopDesignerActions.d.ts +1 -3
  9. package/react/actions/smartDesktopDesignerActions.js +0 -1
  10. package/react/actions/smartDesktopDesignerActions.js.map +1 -1
  11. package/react/actions/toolbarActions.js.map +1 -1
  12. package/react/actions/workspaceActions.js.map +1 -1
  13. package/react/assets/css/advancedAppLauncher.css +636 -636
  14. package/react/assets/css/appCatalog.css +1069 -1069
  15. package/react/assets/css/authentication.css +78 -78
  16. package/react/assets/css/button.css +220 -220
  17. package/react/assets/css/core/formElements.css +23 -23
  18. package/react/assets/css/core/icons.css +69 -69
  19. package/react/assets/css/core/notifications.css +75 -75
  20. package/react/assets/css/core/windowFrame.css +36 -36
  21. package/react/assets/css/dashbar.css +78 -78
  22. package/react/assets/css/defaultTheme.css +356 -356
  23. package/react/assets/css/dialogs.css +158 -158
  24. package/react/assets/css/favorites.css +101 -101
  25. package/react/assets/css/finsemble.css +38 -38
  26. package/react/assets/css/focus.css +4 -4
  27. package/react/assets/css/font-finance.css +385 -385
  28. package/react/assets/css/fonts/Open_Sans/LICENSE.txt +202 -202
  29. package/react/assets/css/fonts/Open_Sans/OpenSans-Definition.css +118 -118
  30. package/react/assets/css/fonts/font-finance.svg +124 -124
  31. package/react/assets/css/fonts/icons-reference.html +1174 -1174
  32. package/react/assets/css/linkerWindow.css +124 -124
  33. package/react/assets/css/menus.css +195 -195
  34. package/react/assets/css/notificationsCenter.css +597 -597
  35. package/react/assets/css/processMonitor.css +213 -213
  36. package/react/assets/css/search.css +128 -128
  37. package/react/assets/css/shared/animations.css +99 -99
  38. package/react/assets/css/tags.css +136 -136
  39. package/react/assets/css/toolbar.css +413 -413
  40. package/react/assets/css/userPreferences.css +538 -568
  41. package/react/assets/css/windowTitleBar.css +653 -652
  42. package/react/assets/icons/always-on-top.svg +20 -0
  43. package/react/assets/icons/caret.svg +7 -0
  44. package/react/assets/icons/check-square.svg +5 -5
  45. package/react/assets/icons/check.svg +3 -3
  46. package/react/assets/icons/chevron-left.svg +3 -3
  47. package/react/assets/icons/chevron-right.svg +3 -3
  48. package/react/assets/icons/close.svg +11 -0
  49. package/react/assets/icons/copy.svg +10 -10
  50. package/react/assets/icons/documentation.svg +20 -0
  51. package/react/assets/icons/exclamation-circle.svg +4 -4
  52. package/react/assets/icons/external-link.svg +12 -12
  53. package/react/assets/icons/flag.svg +10 -10
  54. package/react/assets/icons/folder.svg +3 -3
  55. package/react/assets/icons/font.svg +3 -3
  56. package/react/assets/icons/globe.svg +3 -3
  57. package/react/assets/icons/hdd.svg +9 -9
  58. package/react/assets/icons/key.svg +10 -10
  59. package/react/assets/icons/life-ring.svg +3 -3
  60. package/react/assets/icons/linker.svg +18 -0
  61. package/react/assets/icons/lock.svg +5 -5
  62. package/react/assets/icons/magic.svg +15 -15
  63. package/react/assets/icons/maximize.svg +16 -0
  64. package/react/assets/icons/minimize.svg +15 -0
  65. package/react/assets/icons/moon.svg +10 -10
  66. package/react/assets/icons/paint-roller.svg +3 -3
  67. package/react/assets/icons/pencil.svg +10 -10
  68. package/react/assets/icons/plus.svg +3 -3
  69. package/react/assets/icons/question-circle.svg +5 -5
  70. package/react/assets/icons/search.svg +3 -3
  71. package/react/assets/icons/sun.svg +9 -9
  72. package/react/assets/icons/times.svg +3 -3
  73. package/react/assets/icons/toggle-off.svg +6 -6
  74. package/react/assets/icons/toggle-on.svg +6 -6
  75. package/react/assets/icons/toolbar.svg +12 -0
  76. package/react/assets/icons/tools.svg +3 -3
  77. package/react/assets/icons/trash.svg +12 -12
  78. package/react/assets/icons/upload.svg +10 -10
  79. package/react/assets/icons/window.svg +3 -3
  80. package/react/assets/img/finsemble-display.png +0 -0
  81. package/react/componentTemplateGenerator.js +85 -85
  82. package/react/componentTemplateGenerator.js.map +1 -1
  83. package/react/components/FinsembleProvider.js.map +1 -1
  84. package/react/components/appCatalog/AppCatalog.js.map +1 -1
  85. package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
  86. package/react/components/appCatalog/components/AppCard.js.map +1 -1
  87. package/react/components/appCatalog/components/AppList.js.map +1 -1
  88. package/react/components/appCatalog/components/AppResults.js.map +1 -1
  89. package/react/components/appCatalog/components/Carousel.js.map +1 -1
  90. package/react/components/appCatalog/components/EmptyResults.js.map +1 -1
  91. package/react/components/appCatalog/components/Hero.js.map +1 -1
  92. package/react/components/appCatalog/components/Home.js.map +1 -1
  93. package/react/components/appCatalog/components/SearchBar.js.map +1 -1
  94. package/react/components/appCatalog/components/Showcase/AppDescription.js.map +1 -1
  95. package/react/components/appCatalog/components/Showcase/AppDevNotes.js.map +1 -1
  96. package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
  97. package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
  98. package/react/components/appCatalog/components/Showcase/ImageCarousel.js.map +1 -1
  99. package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
  100. package/react/components/appCatalog/components/Showcase/ReleaseNotes.js.map +1 -1
  101. package/react/components/appCatalog/components/Showcase/SupportNotes.js.map +1 -1
  102. package/react/components/appCatalog/components/Showcase/VersionNotes.js.map +1 -1
  103. package/react/components/appCatalog/components/Showcase/defaults.js.map +1 -1
  104. package/react/components/appCatalog/components/Tag.js.map +1 -1
  105. package/react/components/appCatalog/components/Toast.js.map +1 -1
  106. package/react/components/appCatalog/components/helpers.js.map +1 -1
  107. package/react/components/appCatalog/index.js.map +1 -1
  108. package/react/components/appCatalog/modules/AppDirectory.js.map +1 -1
  109. package/react/components/appCatalog/modules/FDC3.js.map +1 -1
  110. package/react/components/appCatalog/stores/appStore.js.map +1 -1
  111. package/react/components/appCatalog/stores/storeActions.js.map +1 -1
  112. package/react/components/common/Accordion.d.ts +11 -0
  113. package/react/components/common/Accordion.js +20 -0
  114. package/react/components/common/Accordion.js.map +1 -0
  115. package/react/components/common/Button.js.map +1 -1
  116. package/react/components/common/ButtonIcon.js.map +1 -1
  117. package/react/components/common/ButtonRow.js.map +1 -1
  118. package/react/components/common/ButtonTile.js.map +1 -1
  119. package/react/components/common/Checkbox.d.ts +1 -0
  120. package/react/components/common/Checkbox.js +3 -1
  121. package/react/components/common/Checkbox.js.map +1 -1
  122. package/react/components/common/ColorPicker.js.map +1 -1
  123. package/react/components/common/DropZone.js.map +1 -1
  124. package/react/components/common/DropdownButton.js.map +1 -1
  125. package/react/components/common/FileInput.d.ts +2 -1
  126. package/react/components/common/FileInput.js +9 -4
  127. package/react/components/common/FileInput.js.map +1 -1
  128. package/react/components/common/FinsembleIcon.d.ts +1 -1
  129. package/react/components/common/FinsembleIcon.js +16 -0
  130. package/react/components/common/FinsembleIcon.js.map +1 -1
  131. package/react/components/common/FinsembleSelect.js.map +1 -1
  132. package/react/components/common/FinsembleToggle.js.map +1 -1
  133. package/react/components/common/Header.js +1 -1
  134. package/react/components/common/Header.js.map +1 -1
  135. package/react/components/common/ImagePreview.js.map +1 -1
  136. package/react/components/common/InputTable.d.ts +11 -0
  137. package/react/components/common/InputTable.js +50 -0
  138. package/react/components/common/InputTable.js.map +1 -0
  139. package/react/components/common/LoadingSpinner.js.map +1 -1
  140. package/react/components/common/Tab.js.map +1 -1
  141. package/react/components/common/Tooltip.js.map +1 -1
  142. package/react/components/common/css/accordion.css +99 -0
  143. package/react/components/common/css/application-edit-page.css +324 -117
  144. package/react/components/common/css/application-list.css +49 -47
  145. package/react/components/common/css/button.css +166 -164
  146. package/react/components/common/css/checkbox.css +30 -0
  147. package/react/components/common/css/color-picker.css +52 -52
  148. package/react/components/common/css/drop-zone.css +17 -17
  149. package/react/components/common/css/file-input.css +65 -49
  150. package/react/components/common/css/header.css +30 -43
  151. package/react/components/common/css/icon.css +13 -13
  152. package/react/components/common/css/image-preview.css +57 -57
  153. package/react/components/common/css/loading-spinner.css +39 -39
  154. package/react/components/common/css/selector.css +51 -51
  155. package/react/components/common/css/styles.css +127 -128
  156. package/react/components/common/css/tab.css +56 -56
  157. package/react/components/common/css/toggle.css +32 -32
  158. package/react/components/common/css/tooltip.css +78 -78
  159. package/react/components/common/file_helpers.js.map +1 -1
  160. package/react/components/common/fixtures/FinsembleIcon.css +4 -4
  161. package/react/components/common/helpers.js.map +1 -1
  162. package/react/components/common/stories/Accordion.stories.d.ts +14 -0
  163. package/react/components/common/stories/Accordion.stories.js +42 -0
  164. package/react/components/common/stories/Accordion.stories.js.map +1 -0
  165. package/react/components/common/stories/Button.stories.js.map +1 -1
  166. package/react/components/common/stories/ButtonIcon.stories.js.map +1 -1
  167. package/react/components/common/stories/ButtonRow.stories.js.map +1 -1
  168. package/react/components/common/stories/ButtonTile.stories.js.map +1 -1
  169. package/react/components/common/stories/Checkbox.stories.js.map +1 -1
  170. package/react/components/common/stories/ColorPicker.stories.js.map +1 -1
  171. package/react/components/common/stories/DropZone.stories.js.map +1 -1
  172. package/react/components/common/stories/DropdownButton.stories.d.ts +11 -0
  173. package/react/components/common/stories/DropdownButton.stories.js +12 -0
  174. package/react/components/common/stories/DropdownButton.stories.js.map +1 -1
  175. package/react/components/common/stories/FileInput.stories.d.ts +2 -1
  176. package/react/components/common/stories/FileInput.stories.js +6 -0
  177. package/react/components/common/stories/FileInput.stories.js.map +1 -1
  178. package/react/components/common/stories/FinsembleIcon.stories.js +1 -0
  179. package/react/components/common/stories/FinsembleIcon.stories.js.map +1 -1
  180. package/react/components/common/stories/FinsembleSelect.stories.js.map +1 -1
  181. package/react/components/common/stories/FinsembleToggle.stories.js.map +1 -1
  182. package/react/components/common/stories/Header.stories.js.map +1 -1
  183. package/react/components/common/stories/ImagePreview.stories.js.map +1 -1
  184. package/react/components/common/stories/InputTable.stories.d.ts +12 -0
  185. package/react/components/common/stories/InputTable.stories.js +35 -0
  186. package/react/components/common/stories/InputTable.stories.js.map +1 -0
  187. package/react/components/common/stories/LoadingSpinner.stories.js.map +1 -1
  188. package/react/components/common/stories/Tab.stories.js.map +1 -1
  189. package/react/components/common/stories/Tooltip.stories.js.map +1 -1
  190. package/react/components/{smartDesktopDesigner/tests/ApplicationEdit.spec.d.ts → common/tests/Accordion.spec.d.ts} +0 -0
  191. package/react/components/common/tests/Accordion.spec.js +53 -0
  192. package/react/components/common/tests/Accordion.spec.js.map +1 -0
  193. package/react/components/common/tests/ButtonRow.spec.js.map +1 -1
  194. package/react/components/common/tests/Checkbox.spec.js +5 -3
  195. package/react/components/common/tests/Checkbox.spec.js.map +1 -1
  196. package/react/components/common/tests/ColorPicker.spec.js.map +1 -1
  197. package/react/components/common/tests/DropZone.spec.js.map +1 -1
  198. package/react/components/common/tests/FileInput.spec.js +20 -5
  199. package/react/components/common/tests/FileInput.spec.js.map +1 -1
  200. package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
  201. package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
  202. package/react/components/common/tests/Header.spec.js +6 -2
  203. package/react/components/common/tests/Header.spec.js.map +1 -1
  204. package/react/components/common/tests/ImagePreview.spec.js.map +1 -1
  205. package/react/components/{smartDesktopDesigner/tests/ApplicationSetup.spec.d.ts → common/tests/InputTable.spec.d.ts} +0 -0
  206. package/react/components/common/tests/InputTable.spec.js +166 -0
  207. package/react/components/common/tests/InputTable.spec.js.map +1 -0
  208. package/react/components/common/tests/Tab.spec.js.map +1 -1
  209. package/react/components/common/tests/Tooltip.spec.js.map +1 -1
  210. package/react/components/favorites/FavoriteMaker.js.map +1 -1
  211. package/react/components/favorites/FavoritesShell.js.map +1 -1
  212. package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
  213. package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
  214. package/react/components/favorites/index.js.map +1 -1
  215. package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
  216. package/react/components/fdc3Resolver/ResolverDialog.css +126 -126
  217. package/react/components/fdc3Resolver/ResolverDialog.js +1 -1
  218. package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
  219. package/react/components/fdc3Resolver/ResolverDialog.spec.js +1 -1
  220. package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
  221. package/react/components/fdc3Resolver/ResolverDialog.stories.js +13 -0
  222. package/react/components/fdc3Resolver/ResolverDialog.stories.js.map +1 -1
  223. package/react/components/icon/Icon.js.map +1 -1
  224. package/react/components/icon/index.js.map +1 -1
  225. package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
  226. package/react/components/legacyControls/FinsembleDialogButton.js +1 -1
  227. package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
  228. package/react/components/legacyControls/FinsembleDialogQuestion.js.map +1 -1
  229. package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
  230. package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
  231. package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
  232. package/react/components/legacyControls/FinsembleHoverDetector.js.map +1 -1
  233. package/react/components/legacyControls/FinsembleMenuSection.js.map +1 -1
  234. package/react/components/legacyControls/stories/FinsembleDialog.stories.js.map +1 -1
  235. package/react/components/legacyControls/stories/FinsembleDialogButton.stories.js.map +1 -1
  236. package/react/components/legacyControls/stories/FinsembleDialogQuestion.stories.js.map +1 -1
  237. package/react/components/legacyControls/stories/FinsembleDialogTextInput.stories.js.map +1 -1
  238. package/react/components/legacyControls/tests/FinsembleDialog.spec.js.map +1 -1
  239. package/react/components/legacyControls/tests/FinsembleDialogButton.spec.js.map +1 -1
  240. package/react/components/legacyControls/tests/FinsembleDialogQuestion.spec.js.map +1 -1
  241. package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
  242. package/react/components/linker/LinkerMenu.js.map +1 -1
  243. package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
  244. package/react/components/linker/index.js.map +1 -1
  245. package/react/components/linker/remoteRedux.js.map +1 -1
  246. package/react/components/menu/Menu.d.ts +1 -0
  247. package/react/components/menu/Menu.js.map +1 -1
  248. package/react/components/menu/MenuAutoResizer.d.ts +2 -1
  249. package/react/components/menu/MenuAutoResizer.js +4 -3
  250. package/react/components/menu/MenuAutoResizer.js.map +1 -1
  251. package/react/components/menu/MenuContent.js.map +1 -1
  252. package/react/components/menu/MenuHotKey.js.map +1 -1
  253. package/react/components/menu/MenuItem.js.map +1 -1
  254. package/react/components/menu/MenuPortal.js +99 -92
  255. package/react/components/menu/MenuPortal.js.map +1 -1
  256. package/react/components/menu/MenuShell.d.ts +1 -0
  257. package/react/components/menu/MenuShell.js +3 -2
  258. package/react/components/menu/MenuShell.js.map +1 -1
  259. package/react/components/menu/MenuToggle.js.map +1 -1
  260. package/react/components/menu/index.js.map +1 -1
  261. package/react/components/menu/keyboardNavigation.js.map +1 -1
  262. package/react/components/menu/menuContext.d.ts +1 -0
  263. package/react/components/menu/menuContext.js.map +1 -1
  264. package/react/components/menu/menuHelpers.d.ts +1 -1
  265. package/react/components/menu/menuHelpers.js +2 -2
  266. package/react/components/menu/menuHelpers.js.map +1 -1
  267. package/react/components/notifications/components/NoNotifications.js.map +1 -1
  268. package/react/components/notifications/components/drawer/Drawer.js.map +1 -1
  269. package/react/components/notifications/components/drawer/DrawerControls.js +30 -6
  270. package/react/components/notifications/components/drawer/DrawerControls.js.map +1 -1
  271. package/react/components/notifications/components/drawer/DrawerHeader.js.map +1 -1
  272. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +2 -0
  273. package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
  274. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +20 -27
  275. package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
  276. package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
  277. package/react/components/notifications/components/shared/IconButton.js +5 -1
  278. package/react/components/notifications/components/shared/IconButton.js.map +1 -1
  279. package/react/components/notifications/components/shared/NotificationCardShell.js +1 -1
  280. package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
  281. package/react/components/notifications/components/shared/OverflowMenu.js +5 -1
  282. package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
  283. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
  284. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.js.map +1 -1
  285. package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
  286. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
  287. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.js.map +1 -1
  288. package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
  289. package/react/components/notifications/components/views/CardView.js.map +1 -1
  290. package/react/components/notifications/components/views/ListView.js +1 -1
  291. package/react/components/notifications/components/views/ListView.js.map +1 -1
  292. package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
  293. package/react/components/notifications/constants.js.map +1 -1
  294. package/react/components/notifications/icons/Card.js.map +1 -1
  295. package/react/components/notifications/icons/Chevron.js.map +1 -1
  296. package/react/components/notifications/icons/CloseIcon.js.map +1 -1
  297. package/react/components/notifications/icons/EnvelopeClose.js.map +1 -1
  298. package/react/components/notifications/icons/EnvelopeOpen.js.map +1 -1
  299. package/react/components/notifications/icons/SnoozeIcon.js.map +1 -1
  300. package/react/components/notifications/index.js.map +1 -1
  301. package/react/components/notifications/notificationsContext.js.map +1 -1
  302. package/react/components/notifications/types.js.map +1 -1
  303. package/react/components/notifications/utils.js.map +1 -1
  304. package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
  305. package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
  306. package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
  307. package/react/components/processMonitor/components/ListHeader.js.map +1 -1
  308. package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
  309. package/react/components/processMonitor/constants.js.map +1 -1
  310. package/react/components/processMonitor/helpers.js.map +1 -1
  311. package/react/components/processMonitor/helpers.spec.js.map +1 -1
  312. package/react/components/processMonitor/index.js.map +1 -1
  313. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +1 -0
  314. package/react/components/processMonitor/stores/ProcessMonitorStore.js +51 -50
  315. package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
  316. package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
  317. package/react/components/quickComponentForm/index.js.map +1 -1
  318. package/react/components/quickComponentForm/quickComponent.css +3 -3
  319. package/react/components/search/Highlight.js.map +1 -1
  320. package/react/components/search/Highlight.spec.js.map +1 -1
  321. package/react/components/search/Highlight.stories.js.map +1 -1
  322. package/react/components/search/Search.js.map +1 -1
  323. package/react/components/search/SearchBestMatch.js.map +1 -1
  324. package/react/components/search/SearchInput.js.map +1 -1
  325. package/react/components/search/SearchProviderResults.js.map +1 -1
  326. package/react/components/search/SearchResult.js.map +1 -1
  327. package/react/components/search/SearchResults.js.map +1 -1
  328. package/react/components/search/index.js.map +1 -1
  329. package/react/components/shared/Animate.js.map +1 -1
  330. package/react/components/shared/BellIcon.js.map +1 -1
  331. package/react/components/shared/BellIconCrossed.js.map +1 -1
  332. package/react/components/shared/Button.js.map +1 -1
  333. package/react/components/shared/ConditionalWrapper.js.map +1 -1
  334. package/react/components/shared/DefaultDropdownButton.js +1 -1
  335. package/react/components/shared/DefaultDropdownButton.js.map +1 -1
  336. package/react/components/shared/NavigationButton.js.map +1 -1
  337. package/react/components/shared/Tag.js.map +1 -1
  338. package/react/components/shared/TagsMenu.js.map +1 -1
  339. package/react/components/shared/addProtocolToValidURL.js.map +1 -1
  340. package/react/components/shared/linkerUtil.js.map +1 -1
  341. package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
  342. package/react/components/shared/tests/DefaultDropdownButton.spec.js.map +1 -1
  343. package/react/components/shared/tests/addProtocolToValidURL.spec.js.map +1 -1
  344. package/react/components/shared/validateURL.js.map +1 -1
  345. package/react/components/shared/validateURL.spec.js.map +1 -1
  346. package/react/components/singleInputDialog/SingleInputDialog.css +3 -3
  347. package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
  348. package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
  349. package/react/components/singleInputDialog/SingleInputDialog.stories.js.map +1 -1
  350. package/react/components/singleInputDialog/index.js.map +1 -1
  351. package/react/components/smartDesktopDesigner/AddApp.d.ts +14 -0
  352. package/react/components/smartDesktopDesigner/AddApp.js +60 -0
  353. package/react/components/smartDesktopDesigner/AddApp.js.map +1 -0
  354. package/react/components/smartDesktopDesigner/AppEditAccess.js +16 -32
  355. package/react/components/smartDesktopDesigner/AppEditAccess.js.map +1 -1
  356. package/react/components/smartDesktopDesigner/AppEditPage.d.ts +5 -19
  357. package/react/components/smartDesktopDesigner/AppEditPage.js +548 -59
  358. package/react/components/smartDesktopDesigner/AppEditPage.js.map +1 -1
  359. package/react/components/smartDesktopDesigner/Appearance.css +27 -94
  360. package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +1 -1
  361. package/react/components/smartDesktopDesigner/Appearance.js +1 -1
  362. package/react/components/smartDesktopDesigner/Appearance.js.map +1 -1
  363. package/react/components/smartDesktopDesigner/Application.d.ts +1 -0
  364. package/react/components/smartDesktopDesigner/Application.js +151 -93
  365. package/react/components/smartDesktopDesigner/Application.js.map +1 -1
  366. package/react/components/smartDesktopDesigner/ApplicationList.d.ts +2 -1
  367. package/react/components/smartDesktopDesigner/ApplicationList.js +7 -3
  368. package/react/components/smartDesktopDesigner/ApplicationList.js.map +1 -1
  369. package/react/components/smartDesktopDesigner/Applications.d.ts +0 -3
  370. package/react/components/smartDesktopDesigner/Applications.js +52 -102
  371. package/react/components/smartDesktopDesigner/Applications.js.map +1 -1
  372. package/react/components/smartDesktopDesigner/AssetsPage.css +26 -26
  373. package/react/components/smartDesktopDesigner/AssetsPage.js.map +1 -1
  374. package/react/components/smartDesktopDesigner/Authentication.js +2 -9
  375. package/react/components/smartDesktopDesigner/Authentication.js.map +1 -1
  376. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js +8 -1
  377. package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +1 -1
  378. package/react/components/smartDesktopDesigner/Content.js.map +1 -1
  379. package/react/components/smartDesktopDesigner/ContentHeader.d.ts +5 -0
  380. package/react/components/smartDesktopDesigner/ContentHeader.js +10 -0
  381. package/react/components/smartDesktopDesigner/ContentHeader.js.map +1 -0
  382. package/react/components/smartDesktopDesigner/CurrentView.js +2 -1
  383. package/react/components/smartDesktopDesigner/CurrentView.js.map +1 -1
  384. package/react/components/smartDesktopDesigner/Export.d.ts +1 -0
  385. package/react/components/smartDesktopDesigner/Export.js +40 -9
  386. package/react/components/smartDesktopDesigner/Export.js.map +1 -1
  387. package/react/components/smartDesktopDesigner/ExportCloud.d.ts +3 -1
  388. package/react/components/smartDesktopDesigner/ExportCloud.js +4 -6
  389. package/react/components/smartDesktopDesigner/ExportCloud.js.map +1 -1
  390. package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +1 -1
  391. package/react/components/smartDesktopDesigner/ExportZip.d.ts +3 -1
  392. package/react/components/smartDesktopDesigner/ExportZip.js +8 -3
  393. package/react/components/smartDesktopDesigner/ExportZip.js.map +1 -1
  394. package/react/components/smartDesktopDesigner/GettingStarted.d.ts +1 -0
  395. package/react/components/smartDesktopDesigner/GettingStarted.js +11 -25
  396. package/react/components/smartDesktopDesigner/GettingStarted.js.map +1 -1
  397. package/react/components/smartDesktopDesigner/Navigation.d.ts +2 -2
  398. package/react/components/smartDesktopDesigner/Navigation.js +17 -15
  399. package/react/components/smartDesktopDesigner/Navigation.js.map +1 -1
  400. package/react/components/smartDesktopDesigner/ProjectErrors.js.map +1 -1
  401. package/react/components/smartDesktopDesigner/Publish.js.map +1 -1
  402. package/react/components/smartDesktopDesigner/PublishProgress.js.map +1 -1
  403. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +3 -3
  404. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +11 -17
  405. package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
  406. package/react/components/smartDesktopDesigner/ThemePage.css +109 -110
  407. package/react/components/smartDesktopDesigner/ThemePage.js +0 -7
  408. package/react/components/smartDesktopDesigner/ThemePage.js.map +1 -1
  409. package/react/components/smartDesktopDesigner/Themes.js +0 -2
  410. package/react/components/smartDesktopDesigner/Themes.js.map +1 -1
  411. package/react/components/smartDesktopDesigner/Toolbar.d.ts +15 -0
  412. package/react/components/smartDesktopDesigner/Toolbar.js +123 -0
  413. package/react/components/smartDesktopDesigner/Toolbar.js.map +1 -0
  414. package/react/components/smartDesktopDesigner/View.js +1 -1
  415. package/react/components/smartDesktopDesigner/View.js.map +1 -1
  416. package/react/components/smartDesktopDesigner/common/fsbl_functions.d.ts +1 -1
  417. package/react/components/smartDesktopDesigner/common/fsbl_functions.js +2 -2
  418. package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +1 -1
  419. package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +1 -1
  420. package/react/components/smartDesktopDesigner/common/views.d.ts +2 -36
  421. package/react/components/smartDesktopDesigner/common/views.js +150 -111
  422. package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
  423. package/react/components/smartDesktopDesigner/css/appearance.css +18 -10
  424. package/react/components/smartDesktopDesigner/css/applications.css +167 -127
  425. package/react/components/smartDesktopDesigner/css/authentication.css +119 -125
  426. package/react/components/smartDesktopDesigner/css/buttons.css +12 -12
  427. package/react/components/smartDesktopDesigner/css/export.css +176 -163
  428. package/react/components/smartDesktopDesigner/css/getting-started.css +28 -6
  429. package/react/components/smartDesktopDesigner/css/nav.css +120 -93
  430. package/react/components/smartDesktopDesigner/css/project-errors.css +15 -15
  431. package/react/components/smartDesktopDesigner/css/project-header.css +124 -121
  432. package/react/components/smartDesktopDesigner/css/styles.css +178 -179
  433. package/react/components/smartDesktopDesigner/css/views.css +23 -16
  434. package/react/components/smartDesktopDesigner/fixtures/apps.d.ts +2 -0
  435. package/react/components/smartDesktopDesigner/fixtures/apps.js +41 -6
  436. package/react/components/smartDesktopDesigner/fixtures/apps.js.map +1 -1
  437. package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +1 -1
  438. package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +1 -1
  439. package/react/components/smartDesktopDesigner/fixtures/exportProps.js +3 -0
  440. package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +1 -1
  441. package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +1 -1
  442. package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +1 -1
  443. package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +1 -1
  444. package/react/components/smartDesktopDesigner/fixtures/views.d.ts +2 -2
  445. package/react/components/smartDesktopDesigner/fixtures/views.js +58 -26
  446. package/react/components/smartDesktopDesigner/fixtures/views.js.map +1 -1
  447. package/react/components/smartDesktopDesigner/sdd_helpers.d.ts +1 -1
  448. package/react/components/smartDesktopDesigner/sdd_helpers.js +4 -3
  449. package/react/components/smartDesktopDesigner/sdd_helpers.js.map +1 -1
  450. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.d.ts +3 -1
  451. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js +12 -33
  452. package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +1 -1
  453. package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +1 -1
  454. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.d.ts +2 -1
  455. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js +8 -1
  456. package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +1 -1
  457. package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +1 -1
  458. package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +1 -1
  459. package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +1 -1
  460. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.d.ts +10 -0
  461. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js +13 -0
  462. package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js.map +1 -0
  463. package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +1 -1
  464. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.d.ts +1 -1
  465. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js +1 -1
  466. package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +1 -1
  467. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.d.ts +1 -1
  468. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js +1 -1
  469. package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +1 -1
  470. package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +1 -1
  471. package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +1 -1
  472. package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +1 -1
  473. package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +1 -1
  474. package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +1 -1
  475. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js +7 -1
  476. package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +1 -1
  477. package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +1 -1
  478. package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +1 -1
  479. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.d.ts +14 -0
  480. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js +38 -0
  481. package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js.map +1 -0
  482. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +73 -122
  483. package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +1 -1
  484. package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +1 -1
  485. package/react/components/smartDesktopDesigner/tests/Applications.spec.d.ts +1 -1
  486. package/react/components/smartDesktopDesigner/tests/Applications.spec.js +61 -560
  487. package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +1 -1
  488. package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +1 -1
  489. package/react/components/smartDesktopDesigner/tests/{ProjectHeader.spec.d.ts → ContentHeader.spec.d.ts} +0 -0
  490. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js +31 -0
  491. package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js.map +1 -0
  492. package/react/components/smartDesktopDesigner/tests/Export.spec.js +129 -0
  493. package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +1 -1
  494. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js +7 -0
  495. package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +1 -1
  496. package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +1 -1
  497. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js +3 -14
  498. package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +1 -1
  499. package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +1 -1
  500. package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +1 -1
  501. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js +2 -31
  502. package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +1 -1
  503. package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +1 -1
  504. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.d.ts +1 -0
  505. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js +203 -0
  506. package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js.map +1 -0
  507. package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +1 -1
  508. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.d.ts +1 -0
  509. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js +18 -0
  510. package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js.map +1 -0
  511. package/react/components/smartDesktopDesigner/themeDefinitions.js.map +1 -1
  512. package/react/components/system/System.js.map +1 -1
  513. package/react/components/system/System.spec.js.map +1 -1
  514. package/react/components/system/System.stories.js.map +1 -1
  515. package/react/components/system/SystemTrayComponentShell.js.map +1 -1
  516. package/react/components/system/index.js.map +1 -1
  517. package/react/components/toolbar/AutoArrange.js.map +1 -1
  518. package/react/components/toolbar/DragHandle.js.map +1 -1
  519. package/react/components/toolbar/MinimizeAll.js.map +1 -1
  520. package/react/components/toolbar/MinimizeAll.spec.js.map +1 -1
  521. package/react/components/toolbar/MinimizeAll.stories.js.map +1 -1
  522. package/react/components/toolbar/NotificationControl.js.map +1 -1
  523. package/react/components/toolbar/RevealAll.js.map +1 -1
  524. package/react/components/toolbar/RevealAll.spec.js.map +1 -1
  525. package/react/components/toolbar/RevealAll.stories.js.map +1 -1
  526. package/react/components/toolbar/ToolbarIcon.js.map +1 -1
  527. package/react/components/toolbar/ToolbarSection.js.map +1 -1
  528. package/react/components/toolbar/ToolbarShell.js.map +1 -1
  529. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
  530. package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
  531. package/react/components/toolbar/advancedAppLauncher/components/AddNewAppForm.js.map +1 -1
  532. package/react/components/toolbar/advancedAppLauncher/components/AddNewFolder.js.map +1 -1
  533. package/react/components/toolbar/advancedAppLauncher/components/AppActionsMenu.js.map +1 -1
  534. package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
  535. package/react/components/toolbar/advancedAppLauncher/components/AppTagsList.js.map +1 -1
  536. package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
  537. package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
  538. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js +47 -45
  539. package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
  540. package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
  541. package/react/components/toolbar/advancedAppLauncher/components/NoAppsFound.js.map +1 -1
  542. package/react/components/toolbar/advancedAppLauncher/components/SearchBox.js.map +1 -1
  543. package/react/components/toolbar/advancedAppLauncher/components/SortBy.js.map +1 -1
  544. package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
  545. package/react/components/toolbar/advancedAppLauncher/components/TagsMenu.js.map +1 -1
  546. package/react/components/toolbar/advancedAppLauncher/components/ToggleFavoriteDropdown.js.map +1 -1
  547. package/react/components/toolbar/advancedAppLauncher/modules/AppDirectory.js.map +1 -1
  548. package/react/components/toolbar/advancedAppLauncher/modules/FDC3.js.map +1 -1
  549. package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
  550. package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
  551. package/react/components/toolbar/advancedAppLauncher/utils/sort-functions.js.map +1 -1
  552. package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
  553. package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +1 -1
  554. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +1 -0
  555. package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
  556. package/react/components/toolbar/appLauncher/appLauncher.css +30 -30
  557. package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
  558. package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +1 -0
  559. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +17 -34
  560. package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
  561. package/react/components/toolbar/dashbar/Dashbar.js +3 -1
  562. package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
  563. package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
  564. package/react/components/toolbar/index.js.map +1 -1
  565. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +1 -1
  566. package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
  567. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
  568. package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
  569. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
  570. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
  571. package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
  572. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +1 -1
  573. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
  574. package/react/components/toolbar/workspaceManagementMenu/workspaceManagementMenu.css +90 -90
  575. package/react/components/userPreferences/NotificationsPreferencesContext.js.map +1 -1
  576. package/react/components/userPreferences/UserPreferenceTypes.js.map +1 -1
  577. package/react/components/userPreferences/UserPreferences.js.map +1 -1
  578. package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
  579. package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
  580. package/react/components/userPreferences/components/ContentSection.js.map +1 -1
  581. package/react/components/userPreferences/components/LeftNav.js.map +1 -1
  582. package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
  583. package/react/components/userPreferences/components/content/DashbarEditorItem.js.map +1 -1
  584. package/react/components/userPreferences/components/content/General.js.map +1 -1
  585. package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
  586. package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
  587. package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
  588. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
  589. package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
  590. package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
  591. package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
  592. package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
  593. package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js.map +1 -1
  594. package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
  595. package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
  596. package/react/components/userPreferences/index.js.map +1 -1
  597. package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
  598. package/react/components/userPreferences/stories/DashbarEditor.stories.js.map +1 -1
  599. package/react/components/userPreferences/stories/DashbarEditorItem.stories.js.map +1 -1
  600. package/react/components/userPreferences/stories/General.stories.js.map +1 -1
  601. package/react/components/userPreferences/stories/Notifications.stories.js.map +1 -1
  602. package/react/components/userPreferences/stories/NotificationsSourceTypes.stories.js.map +1 -1
  603. package/react/components/userPreferences/stories/NotificationsSources.stories.js.map +1 -1
  604. package/react/components/userPreferences/stories/UserPreferences.stories.js.map +1 -1
  605. package/react/components/userPreferences/stories/WorkspaceButton.stories.js.map +1 -1
  606. package/react/components/userPreferences/stories/WorkspaceComponents.stories.js.map +1 -1
  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.map +1 -1
  610. package/react/components/userPreferences/tests/ContentSection.spec.js.map +1 -1
  611. package/react/components/userPreferences/tests/DashbarEditor.spec.js.map +1 -1
  612. package/react/components/userPreferences/tests/DashbarEditorItem.spec.js.map +1 -1
  613. package/react/components/userPreferences/tests/General.spec.js.map +1 -1
  614. package/react/components/userPreferences/tests/LeftNav.spec.js.map +1 -1
  615. package/react/components/userPreferences/tests/NotificationSourceTypes.spec.js.map +1 -1
  616. package/react/components/userPreferences/tests/Notifications.spec.js.map +1 -1
  617. package/react/components/userPreferences/tests/NotificationsPreferencesHome.spec.js.map +1 -1
  618. package/react/components/userPreferences/tests/NotificationsSourcesPreferences.spec.js.map +1 -1
  619. package/react/components/userPreferences/tests/ScheduledRestart.spec.js +1 -1
  620. package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
  621. package/react/components/userPreferences/tests/WorkspaceButton.spec.js.map +1 -1
  622. package/react/components/userPreferences/tests/WorkspaceComponents.spec.js.map +1 -1
  623. package/react/components/userPreferences/tests/WorkspaceItem.spec.js.map +1 -1
  624. package/react/components/userPreferences/tests/WorkspaceItemList.spec.js.map +1 -1
  625. package/react/components/utils.js.map +1 -1
  626. package/react/components/windowTitleBar/WindowTitleBarShell.js +8 -1
  627. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  628. package/react/components/windowTitleBar/components/center/Tab.d.ts +0 -1
  629. package/react/components/windowTitleBar/components/center/Tab.js +2 -2
  630. package/react/components/windowTitleBar/components/center/Tab.js.map +1 -1
  631. package/react/components/windowTitleBar/components/center/TabList.d.ts +0 -1
  632. package/react/components/windowTitleBar/components/center/TabList.js +16 -79
  633. package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
  634. package/react/components/windowTitleBar/components/center/TabRegion.js.map +1 -1
  635. package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
  636. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +1 -1
  637. package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +1 -1
  638. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +1 -1
  639. package/react/components/windowTitleBar/components/left/ShareButton.js.map +1 -1
  640. package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +1 -1
  641. package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
  642. package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
  643. package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +7 -0
  644. package/react/components/windowTitleBar/components/right/MaximizeButton.js +11 -1
  645. package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
  646. package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +1 -1
  647. package/react/components/windowTitleBar/components/windowTitle.d.ts +5 -4
  648. package/react/components/windowTitleBar/components/windowTitle.js +102 -39
  649. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  650. package/react/components/windowTitleBar/index.js.map +1 -1
  651. package/react/components/windowTitleBar/stores/windowTitleBarStore.js +5 -1
  652. package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
  653. package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +1 -1
  654. package/react/components/windowTitleBar/windowTitleBarContext.js.map +1 -1
  655. package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
  656. package/react/components/yesNoDialog/Timer.stories.js.map +1 -1
  657. package/react/components/yesNoDialog/YesNoDialog.css +3 -3
  658. package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
  659. package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
  660. package/react/components/yesNoDialog/YesNoDialog.stories.js.map +1 -1
  661. package/react/components/yesNoDialog/index.js.map +1 -1
  662. package/react/components/yesNoDialog/timer.js.map +1 -1
  663. package/react/enzymeSetup.js +1 -1
  664. package/react/enzymeSetup.js.map +1 -1
  665. package/react/hooks/index.js.map +1 -1
  666. package/react/hooks/useAuth.js.map +1 -1
  667. package/react/hooks/useDashbar.d.ts +8 -0
  668. package/react/hooks/useDashbar.js +104 -0
  669. package/react/hooks/useDashbar.js.map +1 -0
  670. package/react/hooks/useDeepEffect.js.map +1 -1
  671. package/react/hooks/useFavorites.js.map +1 -1
  672. package/react/hooks/useFavoritesShell.js.map +1 -1
  673. package/react/hooks/useHotkey.js.map +1 -1
  674. package/react/hooks/useLinker.js.map +1 -1
  675. package/react/hooks/useMenu.js.map +1 -1
  676. package/react/hooks/useNotifications.js.map +1 -1
  677. package/react/hooks/useOutsideClickDetector.js.map +1 -1
  678. package/react/hooks/usePubSub.js.map +1 -1
  679. package/react/hooks/useSearch.js.map +1 -1
  680. package/react/hooks/useToolbar.d.ts +0 -6
  681. package/react/hooks/useToolbar.js +0 -101
  682. package/react/hooks/useToolbar.js.map +1 -1
  683. package/react/hooks/useWorkspace.js.map +1 -1
  684. package/react/reducers/favoriteReducer.js.map +1 -1
  685. package/react/reducers/linkerReducer.js.map +1 -1
  686. package/react/reducers/menuReducer.js.map +1 -1
  687. package/react/reducers/rootReducer.d.ts +0 -4
  688. package/react/reducers/rootReducer.js.map +1 -1
  689. package/react/reducers/searchReducer.js.map +1 -1
  690. package/react/reducers/smartDesktopDesignerReducer.js +0 -3
  691. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  692. package/react/reducers/toolbarReducer.js.map +1 -1
  693. package/react/reducers/workspaceReducer.js.map +1 -1
  694. package/react/store.d.ts +0 -8
  695. package/react/store.js.map +1 -1
  696. package/react/types/advancedAppLauncherTypes.js.map +1 -1
  697. package/react/types/dashbarTypes.js.map +1 -1
  698. package/react/types/favoriteTypes.js.map +1 -1
  699. package/react/types/fdc3.d.ts +7 -35
  700. package/react/types/fdc3.js.map +1 -1
  701. package/react/types/hotkeyTypes.js.map +1 -1
  702. package/react/types/iconTypes.js.map +1 -1
  703. package/react/types/linkerTypes.js.map +1 -1
  704. package/react/types/searchTypes.js.map +1 -1
  705. package/react/types/smartDesktopDesignerTypes.d.ts +45 -5
  706. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
  707. package/react/types/windowTitleBar.d.ts +3 -2
  708. package/react/types/windowTitleBar.js.map +1 -1
  709. package/react/types/workspaceTypes.js.map +1 -1
  710. package/react/components/common/FontSizeSelector.d.ts +0 -7
  711. package/react/components/common/FontSizeSelector.js +0 -42
  712. package/react/components/common/FontSizeSelector.js.map +0 -1
  713. package/react/components/common/stories/FontSizeSelector.stories.d.ts +0 -12
  714. package/react/components/common/stories/FontSizeSelector.stories.js +0 -24
  715. package/react/components/common/stories/FontSizeSelector.stories.js.map +0 -1
  716. package/react/components/smartDesktopDesigner/ApplicationEdit.d.ts +0 -25
  717. package/react/components/smartDesktopDesigner/ApplicationEdit.js +0 -103
  718. package/react/components/smartDesktopDesigner/ApplicationEdit.js.map +0 -1
  719. package/react/components/smartDesktopDesigner/ApplicationSetup.d.ts +0 -23
  720. package/react/components/smartDesktopDesigner/ApplicationSetup.js +0 -73
  721. package/react/components/smartDesktopDesigner/ApplicationSetup.js.map +0 -1
  722. package/react/components/smartDesktopDesigner/ProjectHeader.d.ts +0 -14
  723. package/react/components/smartDesktopDesigner/ProjectHeader.js +0 -70
  724. package/react/components/smartDesktopDesigner/ProjectHeader.js.map +0 -1
  725. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.d.ts +0 -4
  726. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js +0 -45
  727. package/react/components/smartDesktopDesigner/fixtures/applicationEditProps.js.map +0 -1
  728. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.d.ts +0 -3
  729. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js +0 -29
  730. package/react/components/smartDesktopDesigner/fixtures/applicationSetupProps.js.map +0 -1
  731. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.d.ts +0 -12
  732. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js +0 -21
  733. package/react/components/smartDesktopDesigner/stories/ApplicationEdit.stories.js.map +0 -1
  734. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.d.ts +0 -12
  735. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js +0 -28
  736. package/react/components/smartDesktopDesigner/stories/ApplicationSetup.stories.js.map +0 -1
  737. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.d.ts +0 -10
  738. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js +0 -19
  739. package/react/components/smartDesktopDesigner/stories/ProjectHeader.stories.js.map +0 -1
  740. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js +0 -66
  741. package/react/components/smartDesktopDesigner/tests/ApplicationEdit.spec.js.map +0 -1
  742. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js +0 -41
  743. package/react/components/smartDesktopDesigner/tests/ApplicationSetup.spec.js.map +0 -1
  744. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js +0 -27
  745. package/react/components/smartDesktopDesigner/tests/ProjectHeader.spec.js.map +0 -1
@@ -4,40 +4,151 @@
4
4
  */
5
5
  import React from "react";
6
6
  import { useSelector, useDispatch } from "../../store";
7
+ import { CircularLoadingSpinner } from "../common/LoadingSpinner";
8
+ import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
7
9
  import { View } from "./View";
8
10
  import { Header } from "../common/Header";
9
11
  import { Content } from "./Content";
10
- import { ApplicationEdit } from "./ApplicationEdit";
11
- import { ApplicationSetup } from "./ApplicationSetup";
12
- import { ButtonTile } from "../common/ButtonTile";
13
- import { CircularLoadingSpinner } from "../common/LoadingSpinner";
14
- import { SmartDesktopDesignerActions } from "../../actions/smartDesktopDesignerActions";
15
- import { ApplicationSetupType } from "../../types/smartDesktopDesignerTypes";
12
+ import { AppEditPage } from "./AppEditPage";
13
+ import { generateDefaultConfig } from "./sdd_helpers";
16
14
  import { launchTutorialLink } from "./common/fsbl_functions";
15
+ const abstractPositionLookup = [
16
+ "",
17
+ "0-0-undefined-undefined",
18
+ "0-center-undefined-undefined",
19
+ "0-undefined-undefined-0",
20
+ "center-0-undefined-undefined",
21
+ "center-center-undefined-undefined",
22
+ "center-undefined-undefined-0",
23
+ "undefined-0-0-undefined",
24
+ "undefined-center-0-undefined",
25
+ "undefined-undefined-0-0",
26
+ ];
27
+ const genAbstractPositionFromAppConfig = (appConfig) => {
28
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
29
+ const position = (_b = (_a = appConfig.manifest) === null || _a === void 0 ? void 0 : _a.window) === null || _b === void 0 ? void 0 : _b.position;
30
+ const left = (_d = (_c = appConfig.manifest) === null || _c === void 0 ? void 0 : _c.window) === null || _d === void 0 ? void 0 : _d.left;
31
+ const right = (_f = (_e = appConfig.manifest) === null || _e === void 0 ? void 0 : _e.window) === null || _f === void 0 ? void 0 : _f.right;
32
+ const top = (_h = (_g = appConfig.manifest) === null || _g === void 0 ? void 0 : _g.window) === null || _h === void 0 ? void 0 : _h.top;
33
+ const bottom = (_k = (_j = appConfig.manifest) === null || _j === void 0 ? void 0 : _j.window) === null || _k === void 0 ? void 0 : _k.bottom;
34
+ if (position === undefined) {
35
+ return 0;
36
+ }
37
+ return abstractPositionLookup.indexOf(`${top}-${left}-${bottom}-${right}`);
38
+ };
39
+ const genWindowParamsFromAbstractPosition = (abstractPosition) => {
40
+ if (abstractPosition <= 0) {
41
+ return {};
42
+ }
43
+ const [top, left, bottom, right] = abstractPositionLookup[abstractPosition].split("-");
44
+ const params = {
45
+ position: "monitor",
46
+ top,
47
+ left,
48
+ bottom,
49
+ right,
50
+ };
51
+ for (let key in params) {
52
+ if (params[key] === "undefined") {
53
+ delete params[key];
54
+ }
55
+ }
56
+ return params;
57
+ };
17
58
  export function appConfigToAppData(appConfig) {
18
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
59
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110;
19
60
  return {
20
61
  name: appConfig.name || ((_b = (_a = appConfig.manifest) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.displayName),
21
62
  description: appConfig.description || "",
22
63
  url: (_d = (_c = appConfig.manifest) === null || _c === void 0 ? void 0 : _c.window) === null || _d === void 0 ? void 0 : _d.url,
23
64
  path: (_f = (_e = appConfig.manifest) === null || _e === void 0 ? void 0 : _e.window) === null || _f === void 0 ? void 0 : _f.path,
24
- width: (_h = (_g = appConfig.manifest) === null || _g === void 0 ? void 0 : _g.window) === null || _h === void 0 ? void 0 : _h.width,
25
- height: (_k = (_j = appConfig.manifest) === null || _j === void 0 ? void 0 : _j.window) === null || _k === void 0 ? void 0 : _k.height,
26
- rules: (_m = (_l = appConfig.manifest) === null || _l === void 0 ? void 0 : _l.interop) === null || _m === void 0 ? void 0 : _m.selectConnect,
65
+ appArguments: (_h = (_g = appConfig.manifest) === null || _g === void 0 ? void 0 : _g.window) === null || _h === void 0 ? void 0 : _h.arguments,
66
+ appType: (_k = (_j = appConfig.manifest) === null || _j === void 0 ? void 0 : _j.window) === null || _k === void 0 ? void 0 : _k.windowType,
67
+ width: (_m = (_l = appConfig.manifest) === null || _l === void 0 ? void 0 : _l.window) === null || _m === void 0 ? void 0 : _m.width,
68
+ height: (_p = (_o = appConfig.manifest) === null || _o === void 0 ? void 0 : _o.window) === null || _p === void 0 ? void 0 : _p.height,
69
+ iconURL: (_t = (_s = (_r = (_q = appConfig.manifest) === null || _q === void 0 ? void 0 : _q.foreign) === null || _r === void 0 ? void 0 : _r.components) === null || _s === void 0 ? void 0 : _s.Toolbar) === null || _t === void 0 ? void 0 : _t.iconURL,
70
+ rules: (_v = (_u = appConfig.manifest) === null || _u === void 0 ? void 0 : _u.interop) === null || _v === void 0 ? void 0 : _v.selectConnect,
71
+ intents: (_w = appConfig.intents) !== null && _w !== void 0 ? _w : [],
72
+ persistPath: (_0 = (_z = (_y = (_x = appConfig.manifest) === null || _x === void 0 ? void 0 : _x.foreign) === null || _y === void 0 ? void 0 : _y.services) === null || _z === void 0 ? void 0 : _z.workspace) === null || _0 === void 0 ? void 0 : _0.persistPath,
73
+ persistURL: (_4 = (_3 = (_2 = (_1 = appConfig.manifest) === null || _1 === void 0 ? void 0 : _1.foreign) === null || _2 === void 0 ? void 0 : _2.services) === null || _3 === void 0 ? void 0 : _3.workspace) === null || _4 === void 0 ? void 0 : _4.persistURL,
74
+ addToWorkspace: (_7 = (_6 = (_5 = appConfig.manifest) === null || _5 === void 0 ? void 0 : _5.window) === null || _6 === void 0 ? void 0 : _6.addToWorkspace) !== null && _7 !== void 0 ? _7 : true,
75
+ allowAutoArrange: (_12 = (_11 = (_10 = (_9 = (_8 = appConfig.manifest) === null || _8 === void 0 ? void 0 : _8.foreign) === null || _9 === void 0 ? void 0 : _9.services) === null || _10 === void 0 ? void 0 : _10.windowService) === null || _11 === void 0 ? void 0 : _11.allowAutoArrange) !== null && _12 !== void 0 ? _12 : true,
76
+ allowGrouping: (_17 = (_16 = (_15 = (_14 = (_13 = appConfig.manifest) === null || _13 === void 0 ? void 0 : _13.foreign) === null || _14 === void 0 ? void 0 : _14.services) === null || _15 === void 0 ? void 0 : _15.windowService) === null || _16 === void 0 ? void 0 : _16.allowGrouping) !== null && _17 !== void 0 ? _17 : true,
77
+ allowMaximize: (_22 = (_21 = (_20 = (_19 = (_18 = appConfig.manifest) === null || _18 === void 0 ? void 0 : _18.foreign) === null || _19 === void 0 ? void 0 : _19.services) === null || _20 === void 0 ? void 0 : _20.windowService) === null || _21 === void 0 ? void 0 : _21.allowMaximize) !== null && _22 !== void 0 ? _22 : true,
78
+ allowMinimize: (_27 = (_26 = (_25 = (_24 = (_23 = appConfig.manifest) === null || _23 === void 0 ? void 0 : _23.foreign) === null || _24 === void 0 ? void 0 : _24.services) === null || _25 === void 0 ? void 0 : _25.windowService) === null || _26 === void 0 ? void 0 : _26.allowMinimize) !== null && _27 !== void 0 ? _27 : true,
79
+ allowSnapping: (_32 = (_31 = (_30 = (_29 = (_28 = appConfig.manifest) === null || _28 === void 0 ? void 0 : _28.foreign) === null || _29 === void 0 ? void 0 : _29.services) === null || _30 === void 0 ? void 0 : _30.windowService) === null || _31 === void 0 ? void 0 : _31.allowSnapping) !== null && _32 !== void 0 ? _32 : true,
80
+ allowTabbing: (_37 = (_36 = (_35 = (_34 = (_33 = appConfig.manifest) === null || _33 === void 0 ? void 0 : _33.foreign) === null || _34 === void 0 ? void 0 : _34.services) === null || _35 === void 0 ? void 0 : _35.windowService) === null || _36 === void 0 ? void 0 : _36.allowTabbing) !== null && _37 !== void 0 ? _37 : true,
81
+ allowTiling: (_42 = (_41 = (_40 = (_39 = (_38 = appConfig.manifest) === null || _38 === void 0 ? void 0 : _38.foreign) === null || _39 === void 0 ? void 0 : _39.services) === null || _40 === void 0 ? void 0 : _40.windowService) === null || _41 === void 0 ? void 0 : _41.allowTiling) !== null && _42 !== void 0 ? _42 : true,
82
+ enableAOT: (_47 = (_46 = (_45 = (_44 = (_43 = appConfig.manifest) === null || _43 === void 0 ? void 0 : _43.foreign) === null || _44 === void 0 ? void 0 : _44.components) === null || _45 === void 0 ? void 0 : _45["Window Manager"]) === null || _46 === void 0 ? void 0 : _46.alwaysOnTopIcon) !== null && _47 !== void 0 ? _47 : false,
83
+ enableTitleBar: ((_51 = (_50 = (_49 = (_48 = appConfig.manifest) === null || _48 === void 0 ? void 0 : _48.foreign) === null || _49 === void 0 ? void 0 : _49.components) === null || _50 === void 0 ? void 0 : _50["Window Manager"]) === null || _51 === void 0 ? void 0 : _51.FSBLHeader) !== false,
84
+ hideClose: (_57 = (_56 = (_55 = (_54 = (_53 = (_52 = appConfig.manifest) === null || _52 === void 0 ? void 0 : _52.foreign) === null || _53 === void 0 ? void 0 : _53.components) === null || _54 === void 0 ? void 0 : _54["Window Manager"]) === null || _55 === void 0 ? void 0 : _55.FSBLHeader) === null || _56 === void 0 ? void 0 : _56.hideClose) !== null && _57 !== void 0 ? _57 : false,
85
+ hideMaximize: (_63 = (_62 = (_61 = (_60 = (_59 = (_58 = appConfig.manifest) === null || _58 === void 0 ? void 0 : _58.foreign) === null || _59 === void 0 ? void 0 : _59.components) === null || _60 === void 0 ? void 0 : _60["Window Manager"]) === null || _61 === void 0 ? void 0 : _61.FSBLHeader) === null || _62 === void 0 ? void 0 : _62.hideMaximize) !== null && _63 !== void 0 ? _63 : false,
86
+ hideMinimize: (_69 = (_68 = (_67 = (_66 = (_65 = (_64 = appConfig.manifest) === null || _64 === void 0 ? void 0 : _64.foreign) === null || _65 === void 0 ? void 0 : _65.components) === null || _66 === void 0 ? void 0 : _66["Window Manager"]) === null || _67 === void 0 ? void 0 : _67.FSBLHeader) === null || _68 === void 0 ? void 0 : _68.hideMinimize) !== null && _69 !== void 0 ? _69 : false,
87
+ autoConnect: (_72 = (_71 = (_70 = appConfig.manifest) === null || _70 === void 0 ? void 0 : _70.interop) === null || _71 === void 0 ? void 0 : _71.autoConnect) !== null && _72 !== void 0 ? _72 : true,
88
+ abstractPosition: genAbstractPositionFromAppConfig(appConfig),
89
+ alwaysOnTop: (_76 = (_75 = (_74 = (_73 = appConfig.manifest) === null || _73 === void 0 ? void 0 : _73.window) === null || _74 === void 0 ? void 0 : _74.options) === null || _75 === void 0 ? void 0 : _75.alwaysOnTop) !== null && _76 !== void 0 ? _76 : false,
90
+ opacity: (_80 = (_79 = (_78 = (_77 = appConfig.manifest) === null || _77 === void 0 ? void 0 : _77.window) === null || _78 === void 0 ? void 0 : _78.options) === null || _79 === void 0 ? void 0 : _79.opacity) !== null && _80 !== void 0 ? _80 : 1,
91
+ resizable: (_84 = (_83 = (_82 = (_81 = appConfig.manifest) === null || _81 === void 0 ? void 0 : _81.window) === null || _82 === void 0 ? void 0 : _82.options) === null || _83 === void 0 ? void 0 : _83.resizable) !== null && _84 !== void 0 ? _84 : true,
92
+ singleton: (_87 = (_86 = (_85 = appConfig.manifest) === null || _85 === void 0 ? void 0 : _85.component) === null || _86 === void 0 ? void 0 : _86.singleton) !== null && _87 !== void 0 ? _87 : false,
93
+ spawnOnStartup: (_90 = (_89 = (_88 = appConfig.manifest) === null || _88 === void 0 ? void 0 : _88.component) === null || _89 === void 0 ? void 0 : _89.spawnOnStartup) !== null && _90 !== void 0 ? _90 : false,
94
+ launchableByUser: (_95 = (_94 = (_93 = (_92 = (_91 = appConfig.manifest) === null || _91 === void 0 ? void 0 : _91.foreign) === null || _92 === void 0 ? void 0 : _92.components) === null || _93 === void 0 ? void 0 : _93["App Launcher"]) === null || _94 === void 0 ? void 0 : _94.launchableByUser) !== null && _95 !== void 0 ? _95 : true,
95
+ grpc: (_98 = (_97 = (_96 = appConfig.manifest) === null || _96 === void 0 ? void 0 : _96.component) === null || _97 === void 0 ? void 0 : _97.enableGrpc) !== null && _98 !== void 0 ? _98 : false,
96
+ security: (_102 = (_101 = (_100 = (_99 = appConfig.manifest) === null || _99 === void 0 ? void 0 : _99.window) === null || _100 === void 0 ? void 0 : _100.options) === null || _101 === void 0 ? void 0 : _101.securityPolicy) !== null && _102 !== void 0 ? _102 : "trusted",
97
+ isEvergreen: (_106 = (_105 = (_104 = (_103 = appConfig.manifest) === null || _103 === void 0 ? void 0 : _103.window) === null || _104 === void 0 ? void 0 : _104.options) === null || _105 === void 0 ? void 0 : _105.isEvergreen) !== null && _106 !== void 0 ? _106 : false,
98
+ native_windowSpawnTimeout: (_110 = (_109 = (_108 = (_107 = appConfig.manifest) === null || _107 === void 0 ? void 0 : _107.window) === null || _108 === void 0 ? void 0 : _108.options) === null || _109 === void 0 ? void 0 : _109.windowSpawnTimeout) !== null && _110 !== void 0 ? _110 : 30,
27
99
  };
28
100
  }
101
+ export function appDataToAppConfig(currentAppConfig, data, appId) {
102
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
103
+ let windowParams = currentAppConfig.manifest
104
+ ? Object.assign(Object.assign({}, currentAppConfig.manifest.window), { options: Object.assign(Object.assign({}, (_a = currentAppConfig.manifest.window) === null || _a === void 0 ? void 0 : _a.options), { securityPolicy: data.security, isEvergreen: data.isEvergreen, windowSpawnTimeout: data.native_windowSpawnTimeout }) }) : {};
105
+ if (data.appType != "web") {
106
+ windowParams.windowType = data.appType == "native" ? data.appType : "assimilation";
107
+ windowParams.path = data.path;
108
+ windowParams.arguments = (_b = data.appArguments) === null || _b === void 0 ? void 0 : _b.trim();
109
+ delete windowParams.url;
110
+ }
111
+ else {
112
+ delete windowParams.windowType;
113
+ delete windowParams.path;
114
+ delete windowParams.arguments;
115
+ windowParams.url = data.url;
116
+ }
117
+ windowParams.width = data.width;
118
+ windowParams.height = data.height;
119
+ windowParams.addToWorkspace = data.addToWorkspace;
120
+ delete windowParams.position;
121
+ delete windowParams.left;
122
+ delete windowParams.right;
123
+ delete windowParams.top;
124
+ delete windowParams.bottom;
125
+ let appConfig = Object.assign(Object.assign({}, currentAppConfig), { appId, name: data.name, description: data.description, manifest: Object.assign(Object.assign({}, currentAppConfig.manifest), { window: Object.assign(Object.assign(Object.assign({}, windowParams), genWindowParamsFromAbstractPosition(data.abstractPosition)), { options: Object.assign(Object.assign({}, windowParams === null || windowParams === void 0 ? void 0 : windowParams.options), { alwaysOnTop: data.alwaysOnTop, opacity: data.opacity, resizable: data.resizable }) }), component: Object.assign(Object.assign({}, (_c = currentAppConfig.manifest) === null || _c === void 0 ? void 0 : _c.component), { singleton: data.singleton, spawnOnStartup: data.spawnOnStartup, enableGrpc: data.grpc }), interop: Object.assign(Object.assign({}, (_d = currentAppConfig.manifest) === null || _d === void 0 ? void 0 : _d.interop), { selectConnect: data.rules, autoConnect: data.autoConnect }), foreign: Object.assign(Object.assign({}, (_e = currentAppConfig.manifest) === null || _e === void 0 ? void 0 : _e.foreign), { components: Object.assign(Object.assign({}, (_g = (_f = currentAppConfig === null || currentAppConfig === void 0 ? void 0 : currentAppConfig.manifest) === null || _f === void 0 ? void 0 : _f.foreign) === null || _g === void 0 ? void 0 : _g.components), { "App Launcher": Object.assign(Object.assign({}, (_k = (_j = (_h = currentAppConfig === null || currentAppConfig === void 0 ? void 0 : currentAppConfig.manifest) === null || _h === void 0 ? void 0 : _h.foreign) === null || _j === void 0 ? void 0 : _j.components) === null || _k === void 0 ? void 0 : _k["App Launcher"]), { launchableByUser: data.launchableByUser }), Toolbar: Object.assign(Object.assign({}, (_o = (_m = (_l = currentAppConfig === null || currentAppConfig === void 0 ? void 0 : currentAppConfig.manifest) === null || _l === void 0 ? void 0 : _l.foreign) === null || _m === void 0 ? void 0 : _m.components) === null || _o === void 0 ? void 0 : _o.Toolbar), { iconURL: data.iconURL }), "Window Manager": Object.assign(Object.assign({}, (_r = (_q = (_p = currentAppConfig === null || currentAppConfig === void 0 ? void 0 : currentAppConfig.manifest) === null || _p === void 0 ? void 0 : _p.foreign) === null || _q === void 0 ? void 0 : _q.components) === null || _r === void 0 ? void 0 : _r["Window Manager"]), { alwaysOnTopIcon: data.enableAOT || !data.alwaysOnTop, FSBLHeader: data.enableTitleBar
126
+ ? {
127
+ hideClose: data.hideClose,
128
+ hideMaximize: data.hideMaximize || !data.allowMaximize,
129
+ hideMinimize: data.hideMinimize || !data.allowMinimize,
130
+ }
131
+ : false }) }), services: Object.assign(Object.assign({}, (_t = (_s = currentAppConfig.manifest) === null || _s === void 0 ? void 0 : _s.foreign) === null || _t === void 0 ? void 0 : _t.services), { workspace: Object.assign(Object.assign({}, (_w = (_v = (_u = currentAppConfig.manifest) === null || _u === void 0 ? void 0 : _u.foreign) === null || _v === void 0 ? void 0 : _v.services) === null || _w === void 0 ? void 0 : _w.workspace), { persistPath: data.persistPath, persistURL: data.persistURL }), windowService: Object.assign(Object.assign({}, (_z = (_y = (_x = currentAppConfig.manifest) === null || _x === void 0 ? void 0 : _x.foreign) === null || _y === void 0 ? void 0 : _y.services) === null || _z === void 0 ? void 0 : _z.windowService), { allowAutoArrange: data.allowAutoArrange, allowGrouping: data.allowGrouping, allowMinimize: data.allowMinimize, allowMaximize: data.allowMaximize, allowSnapping: data.allowSnapping, allowTabbing: data.allowTabbing, allowTiling: data.allowTiling }) }) }) }), intents: data.intents });
132
+ (_0 = appConfig.manifest) === null || _0 === void 0 ? true : delete _0.temporary;
133
+ if (data.iconURL === "") {
134
+ (_2 = (_1 = appConfig.manifest) === null || _1 === void 0 ? void 0 : _1.foreign) === null || _2 === void 0 ? true : delete _2.components.Toolbar.iconURL;
135
+ }
136
+ return appConfig;
137
+ }
29
138
  export var ApplicationCloseReason;
30
139
  (function (ApplicationCloseReason) {
31
140
  ApplicationCloseReason[ApplicationCloseReason["SUCCESS"] = 0] = "SUCCESS";
32
141
  ApplicationCloseReason[ApplicationCloseReason["CANCEL"] = 1] = "CANCEL";
33
142
  ApplicationCloseReason[ApplicationCloseReason["NEW"] = 2] = "NEW";
34
143
  })(ApplicationCloseReason || (ApplicationCloseReason = {}));
144
+ const validateURL = (url) => FSBL.Clients.SmartDesktopClient.checkValidURL(url);
145
+ const helpFunction = () => {
146
+ launchTutorialLink("SDD-02-ManageApps");
147
+ };
35
148
  export const Application = (props) => {
36
149
  const dispatch = useDispatch();
37
150
  const currentAppID = props.id;
38
151
  const currentAppConfig = useSelector((state) => state.smartDesktopDesigner.apps.find((app) => app.appId === currentAppID));
39
- const currentSetupType = useSelector((state) => state.smartDesktopDesigner.currentAppSetupType);
40
- const isGettingStarted = useSelector((state) => state.smartDesktopDesigner.isGettingStarted);
41
152
  if (!currentAppConfig) {
42
153
  props.getAppConfigTemplate().then((response) => {
43
154
  props.deleteApp(currentAppID).then(() => {
@@ -52,29 +163,11 @@ export const Application = (props) => {
52
163
  React.createElement("div", { style: { marginTop: "43vh" } },
53
164
  React.createElement(CircularLoadingSpinner, null)))));
54
165
  }
55
- const isEditMode = currentSetupType === ApplicationSetupType.APP_EDIT_ADVANCED ||
56
- currentSetupType === ApplicationSetupType.APP_EDIT_SIMPLE;
57
166
  const onSaveData = (data) => new Promise((resolve, reject) => {
58
- var _a, _b;
59
167
  if (!currentAppID) {
60
168
  return reject(new Error("no app ID specified"));
61
169
  }
62
- let windowParams = currentAppConfig.manifest
63
- ? Object.assign({}, currentAppConfig.manifest.window) : {};
64
- if (data.appType == "native") {
65
- windowParams.windowType = "assimilation";
66
- windowParams.path = data.path;
67
- delete windowParams.url;
68
- }
69
- else {
70
- delete windowParams.windowType;
71
- delete windowParams.path;
72
- windowParams.url = data.url;
73
- }
74
- windowParams.width = data.width;
75
- windowParams.height = data.height;
76
- let appConfig = Object.assign(Object.assign({}, currentAppConfig), { appId: currentAppID, name: data.name, description: data.description, manifest: Object.assign(Object.assign({}, currentAppConfig.manifest), { window: windowParams, interop: Object.assign(Object.assign({}, (_a = currentAppConfig.manifest) === null || _a === void 0 ? void 0 : _a.interop), { selectConnect: data.rules }) }) });
77
- (_b = appConfig.manifest) === null || _b === void 0 ? true : delete _b.temporary;
170
+ const appConfig = appDataToAppConfig(currentAppConfig, data, currentAppID);
78
171
  props.deleteApp(currentAppID).then(({ err }) => {
79
172
  if (err) {
80
173
  alert(err);
@@ -83,43 +176,13 @@ export const Application = (props) => {
83
176
  .addApp(currentAppID, appConfig)
84
177
  .then((response) => {
85
178
  resolve(response);
179
+ props.onClose(ApplicationCloseReason.SUCCESS);
86
180
  })
87
181
  .catch((e) => {
88
182
  reject(e);
89
183
  });
90
184
  });
91
185
  });
92
- const onClickBackButton = () => {
93
- if (!isEditMode) {
94
- if (currentSetupType === null) {
95
- props.onClose(ApplicationCloseReason.CANCEL);
96
- }
97
- else {
98
- dispatch(SmartDesktopDesignerActions.set_current_app_setup_type(null));
99
- }
100
- }
101
- else {
102
- props.onClose(ApplicationCloseReason.CANCEL);
103
- }
104
- };
105
- const setCurrentSetupType = (type) => {
106
- dispatch(SmartDesktopDesignerActions.set_current_app_setup_type(type));
107
- };
108
- const backFunction = () => {
109
- props.onClose(ApplicationCloseReason.CANCEL);
110
- if (isGettingStarted) {
111
- dispatch(SmartDesktopDesignerActions.change_view("getting-started"));
112
- }
113
- };
114
- const clickWizard = () => {
115
- dispatch(SmartDesktopDesignerActions.set_current_app_setup_type(ApplicationSetupType.APP_ADD_SIMPLE));
116
- };
117
- const clickManual = () => {
118
- dispatch(SmartDesktopDesignerActions.set_current_app_setup_type(ApplicationSetupType.APP_ADD_ADVANCED));
119
- };
120
- const helpFunction = () => {
121
- launchTutorialLink("adding-applications");
122
- };
123
186
  const setCurrentComponentID = (id) => {
124
187
  if (id === "new") {
125
188
  props.onClose(ApplicationCloseReason.NEW);
@@ -128,43 +191,38 @@ export const Application = (props) => {
128
191
  props.onClose(ApplicationCloseReason.SUCCESS);
129
192
  }
130
193
  };
131
- const applicationEditProps = {
132
- id: currentAppID,
133
- data: appConfigToAppData(currentAppConfig),
134
- apps: props.apps,
135
- isSetupWizard: false,
136
- isEditMode,
137
- removeAppID: props.deleteApp,
138
- setCurrentComponentID,
139
- onClickBackButton,
140
- onSaveData,
141
- addApp: props.addApp,
142
- isInboundInteropAuthorized: props.isInboundInteropAuthorized,
143
- isOutboundInteropAuthorized: props.isOutboundInteropAuthorized,
194
+ const removeApplicationFn = () => {
195
+ props.deleteApp(currentAppID);
196
+ setCurrentComponentID("");
144
197
  };
145
- const applicationSetupProps = {
146
- id: currentAppID,
147
- data: appConfigToAppData(currentAppConfig),
148
- apps: props.apps,
149
- backFunction: () => {
150
- setCurrentSetupType(null);
198
+ const appData = appConfigToAppData(currentAppConfig);
199
+ const { displayName, windowURL, nativePath, currentAppType } = generateDefaultConfig(appData);
200
+ const appEditPageProps = {
201
+ startingDisplayName: displayName,
202
+ startingAppType: currentAppType,
203
+ startingWindowURL: windowURL,
204
+ startingNativePath: nativePath,
205
+ appData,
206
+ validateURL,
207
+ removeApplicationFn,
208
+ cancelFn: () => {
209
+ setCurrentComponentID(null);
210
+ },
211
+ submitFn: (data) => {
212
+ onSaveData === null || onSaveData === void 0 ? void 0 : onSaveData(Object.assign(Object.assign({}, data), { tags: appData.tags }));
151
213
  },
152
- removeAppID: props.deleteApp,
153
- setCurrentComponentID,
154
- onClickBackButton,
155
- onSaveData,
156
214
  addApp: props.addApp,
157
215
  isInboundInteropAuthorized: props.isInboundInteropAuthorized,
158
216
  isOutboundInteropAuthorized: props.isOutboundInteropAuthorized,
159
217
  };
160
- return (React.createElement(React.Fragment, null, currentSetupType === null ? (React.createElement("div", { className: "setup-type-container" },
218
+ return (React.createElement("div", { className: "app-edit" },
161
219
  React.createElement(View, null,
162
- React.createElement(Header, { helpFunction: helpFunction, backFunction: backFunction }, "Add an app"),
163
- React.createElement(Content, null,
164
- React.createElement("h2", { className: "setup-type-heading" }, "Choose a method to add an app"),
165
- React.createElement("div", { className: "tile-type-buttons" },
166
- React.createElement(ButtonTile, { className: "icon-wizard", icon: "magic", text: "App wizard", onClick: clickWizard }),
167
- React.createElement(ButtonTile, { className: "icon-manual", icon: "tools", text: "Manual setup (advanced)", onClick: clickManual })))))) : currentSetupType === ApplicationSetupType.APP_EDIT_ADVANCED ||
168
- currentSetupType === ApplicationSetupType.APP_ADD_ADVANCED ? (React.createElement(ApplicationEdit, Object.assign({}, applicationEditProps))) : (React.createElement(ApplicationSetup, Object.assign({}, applicationSetupProps)))));
220
+ React.createElement("div", null,
221
+ React.createElement("form", { onSubmit: (e) => e.preventDefault() },
222
+ React.createElement("fieldset", { className: "app-edit-fieldset" },
223
+ React.createElement("legend", null,
224
+ React.createElement(Header, { helpFunction: helpFunction }, "Edit app")),
225
+ React.createElement(Content, null,
226
+ React.createElement(AppEditPage, Object.assign({}, appEditPageProps)))))))));
169
227
  };
170
228
  //# sourceMappingURL=Application.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Application.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/Application.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,WAAW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- 2020 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n\r\nimport React from \"react\";\r\nimport { useSelector, useDispatch } from \"../../store\";\r\nimport { View } from \"./View\";\r\nimport { Header } from \"../common/Header\";\r\nimport { Content } from \"./Content\";\r\nimport { ApplicationEdit } from \"./ApplicationEdit\";\r\nimport { ApplicationSetup } from \"./ApplicationSetup\";\r\nimport { ButtonTile } from \"../common/ButtonTile\";\r\nimport { CircularLoadingSpinner } from \"../common/LoadingSpinner\";\r\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\r\nimport { ApplicationSetupType } from \"../../types/smartDesktopDesignerTypes\";\r\nimport { RootState } from \"../../reducers/rootReducer\";\r\nimport { launchTutorialLink } from \"./common/fsbl_functions\";\r\nimport * as Types from \"../../types/smartDesktopDesignerTypes\";\r\nimport { ApplicationEditProps } from \"./ApplicationEdit\";\r\nimport { ApplicationSetupProps } from \"./ApplicationSetup\";\r\nimport { services } from \"@finsemble/finsemble-core\";\r\n\r\ntype AppDefinition = services.Interop.types.AppDefinition;\r\n// Get the type of the window object within an AppD manifest. Use Required<> to resolve the ?:\r\ntype ManifestWindow = Required<AppDefinition>[\"manifest\"][\"window\"];\r\n\r\nexport function appConfigToAppData(appConfig: AppDefinition): Types.ApplicationSaveData {\r\n\treturn {\r\n\t\tname: appConfig.name || appConfig.manifest?.component?.displayName,\r\n\t\tdescription: appConfig.description || \"\",\r\n\t\turl: appConfig.manifest?.window?.url,\r\n\t\tpath: appConfig.manifest?.window?.path,\r\n\t\twidth: appConfig.manifest?.window?.width,\r\n\t\theight: appConfig.manifest?.window?.height,\r\n\t\trules: appConfig.manifest?.interop?.selectConnect,\r\n\t};\r\n}\r\n\r\nexport enum ApplicationCloseReason {\r\n\tSUCCESS,\r\n\tCANCEL,\r\n\tNEW,\r\n}\r\n\r\nexport type ApplicationProps = {\r\n\tid: string;\r\n\tapps: AppDefinition[];\r\n\taddApp: (appId: string, config: AppDefinition) => Promise<{ err: null }>;\r\n\tdeleteApp: typeof FSBL.Clients.SmartDesktopClient.prototype.deleteApp;\r\n\tgetAppConfigTemplate: typeof FSBL.Clients.SmartDesktopClient.prototype.getAppConfigTemplate;\r\n\tonClose: (reason: ApplicationCloseReason) => void;\r\n\tsetCurrentAppID: (id: string | null) => void;\r\n\tisInboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isInboundInteropAuthorized;\r\n\tisOutboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isOutboundInteropAuthorized;\r\n};\r\n\r\nexport const Application = (props: ApplicationProps) => {\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst currentAppID = props.id;\r\n\r\n\tconst currentAppConfig = useSelector((state: RootState) =>\r\n\t\tstate.smartDesktopDesigner.apps.find((app: AppDefinition) => app.appId === currentAppID)\r\n\t);\r\n\r\n\tconst currentSetupType = useSelector((state: RootState) => state.smartDesktopDesigner.currentAppSetupType);\r\n\r\n\tconst isGettingStarted = useSelector((state: RootState) => state.smartDesktopDesigner.isGettingStarted);\r\n\r\n\tif (!currentAppConfig) {\r\n\t\tprops.getAppConfigTemplate().then((response: any) => {\r\n\t\t\tprops.deleteApp(currentAppID).then(() => {\r\n\t\t\t\tconst config: AppDefinition = {\r\n\t\t\t\t\t...response.config,\r\n\t\t\t\t\tappId: currentAppID,\r\n\t\t\t\t\tmanifest: {\r\n\t\t\t\t\t\t...response.config.manifest,\r\n\t\t\t\t\t\t// Apps that are flagged temporary will be removed if the user cancels out of adding an app\r\n\t\t\t\t\t\ttemporary: true,\r\n\t\t\t\t\t},\r\n\t\t\t\t};\r\n\r\n\t\t\t\tprops.addApp(currentAppID, config).then(() => {\r\n\t\t\t\t\tdispatch(SmartDesktopDesignerActions.update_app(config));\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t<div style={{ overflow: \"hidden\" }}>\r\n\t\t\t\t\t<div style={{ marginTop: \"43vh\" }}>\r\n\t\t\t\t\t\t<CircularLoadingSpinner />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</>\r\n\t\t);\r\n\t}\r\n\r\n\tconst isEditMode =\r\n\t\tcurrentSetupType === ApplicationSetupType.APP_EDIT_ADVANCED ||\r\n\t\tcurrentSetupType === ApplicationSetupType.APP_EDIT_SIMPLE;\r\n\r\n\tconst onSaveData = (data: Types.ApplicationSaveData) =>\r\n\t\tnew Promise<any>((resolve, reject) => {\r\n\t\t\tif (!currentAppID) {\r\n\t\t\t\treturn reject(new Error(\"no app ID specified\"));\r\n\t\t\t}\r\n\r\n\t\t\tlet windowParams: ManifestWindow = currentAppConfig.manifest\r\n\t\t\t\t? {\r\n\t\t\t\t\t\t...currentAppConfig.manifest.window,\r\n\t\t\t\t }\r\n\t\t\t\t: {};\r\n\r\n\t\t\tif (data.appType == \"native\") {\r\n\t\t\t\twindowParams.windowType = \"assimilation\";\r\n\t\t\t\twindowParams.path = data.path;\r\n\t\t\t\tdelete windowParams.url;\r\n\t\t\t} else {\r\n\t\t\t\tdelete windowParams.windowType;\r\n\t\t\t\tdelete windowParams.path;\r\n\t\t\t\twindowParams.url = data.url;\r\n\t\t\t}\r\n\r\n\t\t\twindowParams.width = data.width;\r\n\t\t\twindowParams.height = data.height;\r\n\r\n\t\t\tlet appConfig: AppDefinition = {\r\n\t\t\t\t...currentAppConfig,\r\n\t\t\t\tappId: currentAppID,\r\n\t\t\t\tname: data.name,\r\n\t\t\t\tdescription: data.description,\r\n\t\t\t\tmanifest: {\r\n\t\t\t\t\t...currentAppConfig.manifest,\r\n\t\t\t\t\twindow: windowParams,\r\n\t\t\t\t\tinterop: {\r\n\t\t\t\t\t\t...currentAppConfig.manifest?.interop,\r\n\t\t\t\t\t\tselectConnect: data.rules,\r\n\t\t\t\t\t},\r\n\t\t\t\t},\r\n\t\t\t};\r\n\t\t\tdelete appConfig.manifest?.temporary;\r\n\r\n\t\t\t// Always remove and replace component\r\n\t\t\tprops.deleteApp(currentAppID).then(({ err }: { err: string }) => {\r\n\t\t\t\tif (err) {\r\n\t\t\t\t\talert(err);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tprops\r\n\t\t\t\t\t.addApp(currentAppID, appConfig)\r\n\t\t\t\t\t.then((response: any) => {\r\n\t\t\t\t\t\tresolve(response);\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch((e: any) => {\r\n\t\t\t\t\t\treject(e);\r\n\t\t\t\t\t});\r\n\t\t\t});\r\n\t\t});\r\n\r\n\tconst onClickBackButton = () => {\r\n\t\tif (!isEditMode) {\r\n\t\t\tif (currentSetupType === null) {\r\n\t\t\t\tprops.onClose(ApplicationCloseReason.CANCEL);\r\n\t\t\t} else {\r\n\t\t\t\tdispatch(SmartDesktopDesignerActions.set_current_app_setup_type(null));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tprops.onClose(ApplicationCloseReason.CANCEL);\r\n\t\t}\r\n\t};\r\n\r\n\tconst setCurrentSetupType = (type: ApplicationSetupType | null) => {\r\n\t\tdispatch(SmartDesktopDesignerActions.set_current_app_setup_type(type));\r\n\t};\r\n\r\n\tconst backFunction = () => {\r\n\t\tprops.onClose(ApplicationCloseReason.CANCEL);\r\n\r\n\t\tif (isGettingStarted) {\r\n\t\t\tdispatch(SmartDesktopDesignerActions.change_view(\"getting-started\"));\r\n\t\t}\r\n\t};\r\n\r\n\tconst clickWizard = () => {\r\n\t\tdispatch(SmartDesktopDesignerActions.set_current_app_setup_type(ApplicationSetupType.APP_ADD_SIMPLE));\r\n\t};\r\n\r\n\tconst clickManual = () => {\r\n\t\tdispatch(SmartDesktopDesignerActions.set_current_app_setup_type(ApplicationSetupType.APP_ADD_ADVANCED));\r\n\t};\r\n\r\n\tconst helpFunction = () => {\r\n\t\tlaunchTutorialLink(\"adding-applications\");\r\n\t};\r\n\r\n\tconst setCurrentComponentID = (id: string | null) => {\r\n\t\tif (id === \"new\") {\r\n\t\t\tprops.onClose(ApplicationCloseReason.NEW);\r\n\t\t} else {\r\n\t\t\tprops.onClose(ApplicationCloseReason.SUCCESS);\r\n\t\t}\r\n\t};\r\n\r\n\tconst applicationEditProps: ApplicationEditProps = {\r\n\t\tid: currentAppID,\r\n\t\tdata: appConfigToAppData(currentAppConfig) as Types.ApplicationSaveData,\r\n\t\tapps: props.apps,\r\n\t\tisSetupWizard: false,\r\n\t\tisEditMode,\r\n\t\tremoveAppID: props.deleteApp,\r\n\t\tsetCurrentComponentID,\r\n\t\tonClickBackButton,\r\n\t\tonSaveData,\r\n\t\taddApp: props.addApp,\r\n\t\tisInboundInteropAuthorized: props.isInboundInteropAuthorized,\r\n\t\tisOutboundInteropAuthorized: props.isOutboundInteropAuthorized,\r\n\t};\r\n\r\n\tconst applicationSetupProps: ApplicationSetupProps = {\r\n\t\tid: currentAppID,\r\n\t\tdata: appConfigToAppData(currentAppConfig) as Types.ApplicationSaveData,\r\n\t\tapps: props.apps,\r\n\t\tbackFunction: () => {\r\n\t\t\tsetCurrentSetupType(null);\r\n\t\t},\r\n\t\tremoveAppID: props.deleteApp,\r\n\t\tsetCurrentComponentID,\r\n\t\tonClickBackButton,\r\n\t\tonSaveData,\r\n\t\taddApp: props.addApp,\r\n\t\tisInboundInteropAuthorized: props.isInboundInteropAuthorized,\r\n\t\tisOutboundInteropAuthorized: props.isOutboundInteropAuthorized,\r\n\t};\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{currentSetupType === null ? (\r\n\t\t\t\t<div className=\"setup-type-container\">\r\n\t\t\t\t\t<View>\r\n\t\t\t\t\t\t<Header helpFunction={helpFunction} backFunction={backFunction}>\r\n\t\t\t\t\t\t\tAdd an app\r\n\t\t\t\t\t\t</Header>\r\n\r\n\t\t\t\t\t\t<Content>\r\n\t\t\t\t\t\t\t<h2 className=\"setup-type-heading\">Choose a method to add an app</h2>\r\n\t\t\t\t\t\t\t<div className=\"tile-type-buttons\">\r\n\t\t\t\t\t\t\t\t<ButtonTile className=\"icon-wizard\" icon=\"magic\" text=\"App wizard\" onClick={clickWizard} />\r\n\t\t\t\t\t\t\t\t<ButtonTile className=\"icon-manual\" icon=\"tools\" text=\"Manual setup (advanced)\" onClick={clickManual} />\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</Content>\r\n\t\t\t\t\t</View>\r\n\t\t\t\t</div>\r\n\t\t\t) : currentSetupType === ApplicationSetupType.APP_EDIT_ADVANCED ||\r\n\t\t\t currentSetupType === ApplicationSetupType.APP_ADD_ADVANCED ? (\r\n\t\t\t\t<ApplicationEdit {...applicationEditProps} />\r\n\t\t\t) : (\r\n\t\t\t\t// else \"application setup wizard\"\r\n\t\t\t\t<ApplicationSetup {...applicationSetupProps} />\r\n\t\t\t)}\r\n\t\t</>\r\n\t);\r\n};\r\n"]}
1
+ {"version":3,"file":"Application.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/Application.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAIxF,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAQ7D,MAAM,sBAAsB,GAAG;IAE9B,EAAE;IACF,yBAAyB;IACzB,8BAA8B;IAC9B,yBAAyB;IACzB,8BAA8B;IAC9B,mCAAmC;IACnC,8BAA8B;IAC9B,yBAAyB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E,WAAW;QAChC,eAAe,EAAE,cAAc;QAC/B,iBAAiB,EAAE,SAAS;QAC5B,kBAAkB,EAAE,UAAU;QAC9B,OAAO;QACP,WAAW;QACX,mBAAmB;QACnB,QAAQ,EAAE,GAAG,EAAE;YACd,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;QACD,QAAQ,EAAE,CAAC,IAA+B,EAAE,EAAE;YAC7C,UAAU,aAAV,UAAU,uBAAV,UAAU,iCACN,IAAI,KACP,IAAI,EAAE,OAAO,CAAC,IAAI,IACjB,CAAC;QACJ,CAAC;QACD,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,0BAA0B,EAAE,KAAK,CAAC,0BAA0B;QAC5D,2BAA2B,EAAE,KAAK,CAAC,2BAA2B;KAC9D,CAAC;IAEF,OAAO,CACN,6BAAK,SAAS,EAAC,UAAU;QACxB,oBAAC,IAAI;YACJ;gBACC,8BAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE;oBACxC,kCAAU,SAAS,EAAC,mBAAmB;wBACtC;4BACC,oBAAC,MAAM,IAAC,YAAY,EAAE,YAAY,eAAmB,CAC7C;wBAET,oBAAC,OAAO;4BACP,oBAAC,WAAW,oBAAK,gBAAgB,EAAI,CAC5B,CACA,CACL,CACF,CACA,CACF,CACN,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*!\n * Copyright 2017 - 2020 by ChartIQ, Inc.\n * All rights reserved.\n */\n\nimport React from \"react\";\nimport { useSelector, useDispatch } from \"../../store\";\nimport { CircularLoadingSpinner } from \"../common/LoadingSpinner\";\nimport { SmartDesktopDesignerActions } from \"../../actions/smartDesktopDesignerActions\";\nimport { RootState } from \"../../reducers/rootReducer\";\nimport * as Types from \"../../types/smartDesktopDesignerTypes\";\nimport { services } from \"@finsemble/finsemble-core\";\nimport { View } from \"./View\";\nimport { Header } from \"../common/Header\";\nimport { Content } from \"./Content\";\nimport { AppEditPage } from \"./AppEditPage\";\nimport { generateDefaultConfig } from \"./sdd_helpers\";\nimport { launchTutorialLink } from \"./common/fsbl_functions\";\nimport { AppEditPageProps } from \"./AppEditPage\";\nimport { PositionTypes } from \"@finsemble/finsemble-core/types/services/window/types\";\n\ntype AppDefinition = services.Interop.types.AppDefinition;\n// Get the type of the window object within an AppD manifest. Use Required<> to resolve the ?:\ntype ManifestWindow = Required<AppDefinition>[\"manifest\"][\"window\"];\n\nconst abstractPositionLookup = [\n\t// `${top}-${left}-${bottom}-${right}`\n\t\"\",\n\t\"0-0-undefined-undefined\",\n\t\"0-center-undefined-undefined\",\n\t\"0-undefined-undefined-0\",\n\t\"center-0-undefined-undefined\",\n\t\"center-center-undefined-undefined\",\n\t\"center-undefined-undefined-0\",\n\t\"undefined-0-0-undefined\",\n\t\"undefined-center-0-undefined\",\n\t\"undefined-undefined-0-0\",\n];\n\nconst genAbstractPositionFromAppConfig = (appConfig: AppDefinition): number => {\n\tconst position = appConfig.manifest?.window?.position;\n\tconst left = appConfig.manifest?.window?.left;\n\tconst right = appConfig.manifest?.window?.right;\n\tconst top = appConfig.manifest?.window?.top;\n\tconst bottom = appConfig.manifest?.window?.bottom;\n\n\t// No position is defined\n\tif (position === undefined) {\n\t\treturn 0;\n\t}\n\n\treturn abstractPositionLookup.indexOf(`${top}-${left}-${bottom}-${right}`);\n};\nconst genWindowParamsFromAbstractPosition = (abstractPosition: number): ManifestWindow => {\n\tif (abstractPosition <= 0) {\n\t\treturn {};\n\t}\n\tconst [top, left, bottom, right] = abstractPositionLookup[abstractPosition].split(\"-\");\n\tconst params = {\n\t\tposition: \"monitor\" as PositionTypes,\n\t\ttop,\n\t\tleft,\n\t\tbottom,\n\t\tright,\n\t};\n\n\tfor (let key in params) {\n\t\tif (params[key as keyof typeof params] === \"undefined\") {\n\t\t\tdelete params[key as keyof typeof params];\n\t\t}\n\t}\n\n\treturn params;\n};\n\nexport function appConfigToAppData(appConfig: AppDefinition): Types.ApplicationSaveData {\n\treturn {\n\t\tname: appConfig.name || appConfig.manifest?.component?.displayName,\n\t\tdescription: appConfig.description || \"\",\n\t\turl: appConfig.manifest?.window?.url,\n\t\tpath: appConfig.manifest?.window?.path,\n\t\tappArguments: appConfig.manifest?.window?.arguments,\n\t\tappType: appConfig.manifest?.window?.windowType,\n\t\twidth: appConfig.manifest?.window?.width,\n\t\theight: appConfig.manifest?.window?.height,\n\t\ticonURL: appConfig.manifest?.foreign?.components?.Toolbar?.iconURL,\n\t\trules: appConfig.manifest?.interop?.selectConnect,\n\t\tintents: appConfig.intents ?? [],\n\t\tpersistPath: appConfig.manifest?.foreign?.services?.workspace?.persistPath,\n\t\tpersistURL: appConfig.manifest?.foreign?.services?.workspace?.persistURL,\n\t\taddToWorkspace: appConfig.manifest?.window?.addToWorkspace ?? true,\n\t\tallowAutoArrange: appConfig.manifest?.foreign?.services?.windowService?.allowAutoArrange ?? true,\n\t\tallowGrouping: appConfig.manifest?.foreign?.services?.windowService?.allowGrouping ?? true,\n\t\tallowMaximize: appConfig.manifest?.foreign?.services?.windowService?.allowMaximize ?? true,\n\t\tallowMinimize: appConfig.manifest?.foreign?.services?.windowService?.allowMinimize ?? true,\n\t\tallowSnapping: appConfig.manifest?.foreign?.services?.windowService?.allowSnapping ?? true,\n\t\tallowTabbing: appConfig.manifest?.foreign?.services?.windowService?.allowTabbing ?? true,\n\t\tallowTiling: appConfig.manifest?.foreign?.services?.windowService?.allowTiling ?? true,\n\t\tenableAOT: appConfig.manifest?.foreign?.components?.[\"Window Manager\"]?.alwaysOnTopIcon ?? false,\n\t\tenableTitleBar: appConfig.manifest?.foreign?.components?.[\"Window Manager\"]?.FSBLHeader !== false,\n\t\thideClose: appConfig.manifest?.foreign?.components?.[\"Window Manager\"]?.FSBLHeader?.hideClose ?? false,\n\t\thideMaximize: appConfig.manifest?.foreign?.components?.[\"Window Manager\"]?.FSBLHeader?.hideMaximize ?? false,\n\t\thideMinimize: appConfig.manifest?.foreign?.components?.[\"Window Manager\"]?.FSBLHeader?.hideMinimize ?? false,\n\t\tautoConnect: appConfig.manifest?.interop?.autoConnect ?? true,\n\t\tabstractPosition: genAbstractPositionFromAppConfig(appConfig),\n\t\talwaysOnTop: appConfig.manifest?.window?.options?.alwaysOnTop ?? false,\n\t\topacity: appConfig.manifest?.window?.options?.opacity ?? 1,\n\t\tresizable: appConfig.manifest?.window?.options?.resizable ?? true,\n\t\tsingleton: appConfig.manifest?.component?.singleton ?? false,\n\t\tspawnOnStartup: appConfig.manifest?.component?.spawnOnStartup ?? false,\n\t\tlaunchableByUser: appConfig.manifest?.foreign?.components?.[\"App Launcher\"]?.launchableByUser ?? true,\n\t\tgrpc: appConfig.manifest?.component?.enableGrpc ?? false,\n\t\tsecurity: appConfig.manifest?.window?.options?.securityPolicy ?? \"trusted\",\n\t\tisEvergreen: appConfig.manifest?.window?.options?.isEvergreen ?? false,\n\t\tnative_windowSpawnTimeout: appConfig.manifest?.window?.options?.windowSpawnTimeout ?? 30,\n\t};\n}\n\nexport function appDataToAppConfig(\n\tcurrentAppConfig: AppDefinition,\n\tdata: Types.ApplicationSaveData,\n\tappId: string\n): AppDefinition {\n\tlet windowParams: ManifestWindow = currentAppConfig.manifest\n\t\t? {\n\t\t\t\t...currentAppConfig.manifest.window,\n\t\t\t\toptions: {\n\t\t\t\t\t...currentAppConfig.manifest.window?.options,\n\t\t\t\t\tsecurityPolicy: data.security,\n\t\t\t\t\tisEvergreen: data.isEvergreen,\n\t\t\t\t\twindowSpawnTimeout: data.native_windowSpawnTimeout,\n\t\t\t\t},\n\t\t }\n\t\t: {};\n\n\tif (data.appType != \"web\") {\n\t\twindowParams.windowType = data.appType == \"native\" ? data.appType : \"assimilation\";\n\t\twindowParams.path = data.path;\n\t\twindowParams.arguments = data.appArguments?.trim();\n\t\tdelete windowParams.url;\n\t} else {\n\t\tdelete windowParams.windowType;\n\t\tdelete windowParams.path;\n\t\tdelete windowParams.arguments;\n\t\twindowParams.url = data.url;\n\t}\n\n\twindowParams.width = data.width;\n\twindowParams.height = data.height;\n\twindowParams.addToWorkspace = data.addToWorkspace;\n\n\tdelete windowParams.position;\n\tdelete windowParams.left;\n\tdelete windowParams.right;\n\tdelete windowParams.top;\n\tdelete windowParams.bottom;\n\n\tlet appConfig: AppDefinition = {\n\t\t...currentAppConfig,\n\t\tappId,\n\t\tname: data.name,\n\t\tdescription: data.description,\n\t\tmanifest: {\n\t\t\t...currentAppConfig.manifest,\n\t\t\twindow: {\n\t\t\t\t...windowParams,\n\t\t\t\t...genWindowParamsFromAbstractPosition(data.abstractPosition),\n\t\t\t\toptions: {\n\t\t\t\t\t...windowParams?.options,\n\t\t\t\t\talwaysOnTop: data.alwaysOnTop,\n\t\t\t\t\topacity: data.opacity,\n\t\t\t\t\tresizable: data.resizable,\n\t\t\t\t},\n\t\t\t},\n\t\t\tcomponent: {\n\t\t\t\t...currentAppConfig.manifest?.component,\n\t\t\t\tsingleton: data.singleton,\n\t\t\t\tspawnOnStartup: data.spawnOnStartup,\n\t\t\t\tenableGrpc: data.grpc,\n\t\t\t},\n\t\t\tinterop: {\n\t\t\t\t...currentAppConfig.manifest?.interop,\n\t\t\t\tselectConnect: data.rules,\n\t\t\t\tautoConnect: data.autoConnect,\n\t\t\t},\n\t\t\tforeign: {\n\t\t\t\t...currentAppConfig.manifest?.foreign,\n\t\t\t\tcomponents: {\n\t\t\t\t\t...currentAppConfig?.manifest?.foreign?.components,\n\t\t\t\t\t\"App Launcher\": {\n\t\t\t\t\t\t...currentAppConfig?.manifest?.foreign?.components?.[\"App Launcher\"],\n\t\t\t\t\t\tlaunchableByUser: data.launchableByUser,\n\t\t\t\t\t},\n\t\t\t\t\tToolbar: {\n\t\t\t\t\t\t...currentAppConfig?.manifest?.foreign?.components?.Toolbar,\n\t\t\t\t\t\ticonURL: data.iconURL,\n\t\t\t\t\t},\n\t\t\t\t\t\"Window Manager\": {\n\t\t\t\t\t\t...currentAppConfig?.manifest?.foreign?.components?.[\"Window Manager\"],\n\t\t\t\t\t\talwaysOnTopIcon: data.enableAOT || !data.alwaysOnTop,\n\t\t\t\t\t\tFSBLHeader: data.enableTitleBar\n\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\thideClose: data.hideClose,\n\t\t\t\t\t\t\t\t\thideMaximize: data.hideMaximize || !data.allowMaximize,\n\t\t\t\t\t\t\t\t\thideMinimize: data.hideMinimize || !data.allowMinimize,\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t: false,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tservices: {\n\t\t\t\t\t...currentAppConfig.manifest?.foreign?.services,\n\t\t\t\t\tworkspace: {\n\t\t\t\t\t\t...currentAppConfig.manifest?.foreign?.services?.workspace,\n\t\t\t\t\t\tpersistPath: data.persistPath,\n\t\t\t\t\t\tpersistURL: data.persistURL,\n\t\t\t\t\t},\n\t\t\t\t\twindowService: {\n\t\t\t\t\t\t...currentAppConfig.manifest?.foreign?.services?.windowService,\n\t\t\t\t\t\tallowAutoArrange: data.allowAutoArrange,\n\t\t\t\t\t\tallowGrouping: data.allowGrouping,\n\t\t\t\t\t\tallowMinimize: data.allowMinimize,\n\t\t\t\t\t\tallowMaximize: data.allowMaximize,\n\t\t\t\t\t\tallowSnapping: data.allowSnapping,\n\t\t\t\t\t\tallowTabbing: data.allowTabbing,\n\t\t\t\t\t\tallowTiling: data.allowTiling,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tintents: data.intents,\n\t};\n\n\tdelete appConfig.manifest?.temporary;\n\tif (data.iconURL === \"\") {\n\t\tdelete appConfig.manifest?.foreign?.components.Toolbar.iconURL;\n\t}\n\treturn appConfig;\n}\n\nexport enum ApplicationCloseReason {\n\tSUCCESS,\n\tCANCEL,\n\tNEW,\n}\n\nexport type ApplicationProps = {\n\tid: string;\n\tapps: AppDefinition[];\n\taddApp: (appId: string, config: AppDefinition) => Promise<{ err: null }>;\n\tdeleteApp: typeof FSBL.Clients.SmartDesktopClient.prototype.deleteApp;\n\tgetAppConfigTemplate: typeof FSBL.Clients.SmartDesktopClient.prototype.getAppConfigTemplate;\n\tonClose: (reason: ApplicationCloseReason) => void;\n\tsetCurrentAppID: (id: string | null) => void;\n\tisInboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isInboundInteropAuthorized;\n\tisOutboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isOutboundInteropAuthorized;\n};\n\nconst validateURL = (url: string) => FSBL.Clients.SmartDesktopClient.checkValidURL(url);\n\nconst helpFunction = () => {\n\tlaunchTutorialLink(\"SDD-02-ManageApps\");\n};\n\nexport const Application = (props: ApplicationProps) => {\n\tconst dispatch = useDispatch();\n\n\tconst currentAppID = props.id;\n\n\tconst currentAppConfig = useSelector((state: RootState) =>\n\t\tstate.smartDesktopDesigner.apps.find((app: AppDefinition) => app.appId === currentAppID)\n\t);\n\n\tif (!currentAppConfig) {\n\t\tprops.getAppConfigTemplate().then((response: any) => {\n\t\t\tprops.deleteApp(currentAppID).then(() => {\n\t\t\t\tconst config: AppDefinition = {\n\t\t\t\t\t...response.config,\n\t\t\t\t\tappId: currentAppID,\n\t\t\t\t\tmanifest: {\n\t\t\t\t\t\t...response.config.manifest,\n\t\t\t\t\t\t// Apps that are flagged temporary will be removed if the user cancels out of adding an app\n\t\t\t\t\t\ttemporary: true,\n\t\t\t\t\t},\n\t\t\t\t};\n\n\t\t\t\tprops.addApp(currentAppID, config).then(() => {\n\t\t\t\t\tdispatch(SmartDesktopDesignerActions.update_app(config));\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div style={{ overflow: \"hidden\" }}>\n\t\t\t\t\t<div style={{ marginTop: \"43vh\" }}>\n\t\t\t\t\t\t<CircularLoadingSpinner />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</>\n\t\t);\n\t}\n\n\tconst onSaveData = (data: Types.ApplicationSaveData) =>\n\t\tnew Promise<any>((resolve, reject) => {\n\t\t\tif (!currentAppID) {\n\t\t\t\treturn reject(new Error(\"no app ID specified\"));\n\t\t\t}\n\n\t\t\tconst appConfig = appDataToAppConfig(currentAppConfig, data, currentAppID);\n\n\t\t\t// Always remove and replace component\n\t\t\tprops.deleteApp(currentAppID).then(({ err }: { err: string }) => {\n\t\t\t\tif (err) {\n\t\t\t\t\talert(err);\n\t\t\t\t}\n\n\t\t\t\tprops\n\t\t\t\t\t.addApp(currentAppID, appConfig)\n\t\t\t\t\t.then((response: any) => {\n\t\t\t\t\t\tresolve(response);\n\t\t\t\t\t\tprops.onClose(ApplicationCloseReason.SUCCESS);\n\t\t\t\t\t})\n\t\t\t\t\t.catch((e: any) => {\n\t\t\t\t\t\treject(e);\n\t\t\t\t\t});\n\t\t\t});\n\t\t});\n\n\tconst setCurrentComponentID = (id: string | null) => {\n\t\tif (id === \"new\") {\n\t\t\tprops.onClose(ApplicationCloseReason.NEW);\n\t\t} else {\n\t\t\tprops.onClose(ApplicationCloseReason.SUCCESS);\n\t\t}\n\t};\n\n\tconst removeApplicationFn = () => {\n\t\tprops.deleteApp(currentAppID);\n\t\tsetCurrentComponentID(\"\");\n\t};\n\n\tconst appData = appConfigToAppData(currentAppConfig) as Types.ApplicationSaveData;\n\tconst { displayName, windowURL, nativePath, currentAppType } = generateDefaultConfig(appData);\n\n\tconst appEditPageProps: AppEditPageProps = {\n\t\tstartingDisplayName: displayName,\n\t\tstartingAppType: currentAppType,\n\t\tstartingWindowURL: windowURL,\n\t\tstartingNativePath: nativePath,\n\t\tappData,\n\t\tvalidateURL,\n\t\tremoveApplicationFn,\n\t\tcancelFn: () => {\n\t\t\tsetCurrentComponentID(null);\n\t\t},\n\t\tsubmitFn: (data: Types.ApplicationSaveData) => {\n\t\t\tonSaveData?.({\n\t\t\t\t...data,\n\t\t\t\ttags: appData.tags,\n\t\t\t});\n\t\t},\n\t\taddApp: props.addApp,\n\t\tisInboundInteropAuthorized: props.isInboundInteropAuthorized,\n\t\tisOutboundInteropAuthorized: props.isOutboundInteropAuthorized,\n\t};\n\n\treturn (\n\t\t<div className=\"app-edit\">\n\t\t\t<View>\n\t\t\t\t<div>\n\t\t\t\t\t<form onSubmit={(e) => e.preventDefault()}>\n\t\t\t\t\t\t<fieldset className=\"app-edit-fieldset\">\n\t\t\t\t\t\t\t<legend>\n\t\t\t\t\t\t\t\t<Header helpFunction={helpFunction}>Edit app</Header>\n\t\t\t\t\t\t\t</legend>\n\n\t\t\t\t\t\t\t<Content>\n\t\t\t\t\t\t\t\t<AppEditPage {...appEditPageProps} />\n\t\t\t\t\t\t\t</Content>\n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\t\t\t</View>\n\t\t</div>\n\t);\n};\n"]}
@@ -10,6 +10,7 @@ export declare type ApplicationListProps = {
10
10
  apps: AppDefinition[];
11
11
  clickApp: (s: string) => void;
12
12
  deleteApp: (s: string) => void;
13
+ editApp?: (s: string) => void;
13
14
  };
14
- export declare const ApplicationList: ({ apps, clickApp, deleteApp }: ApplicationListProps) => JSX.Element;
15
+ export declare const ApplicationList: ({ apps, clickApp, deleteApp, editApp }: ApplicationListProps) => JSX.Element;
15
16
  export {};
@@ -5,8 +5,7 @@
5
5
  import React from "react";
6
6
  import { ButtonIcon } from "../common/ButtonIcon";
7
7
  import "../common/css/application-list.css";
8
- import { Tooltip } from "../common/Tooltip";
9
- export const ApplicationList = ({ apps, clickApp, deleteApp }) => (React.createElement(React.Fragment, null, apps.length < 1 ? (React.createElement("div", { className: "app-list-empty" },
8
+ export const ApplicationList = ({ apps, clickApp, deleteApp, editApp }) => (React.createElement(React.Fragment, null, apps.length < 1 ? (React.createElement("div", { className: "app-list-empty" },
10
9
  "There\u2019s nothing here!",
11
10
  React.createElement("br", null),
12
11
  "Click the Add button to add apps.")) : (React.createElement("div", { className: "app-list-table", role: "list" }, apps
@@ -26,6 +25,11 @@ export const ApplicationList = ({ apps, clickApp, deleteApp }) => (React.createE
26
25
  clickApp(appID);
27
26
  e.preventDefault();
28
27
  };
28
+ const editAppEventHandler = (e) => {
29
+ e.stopPropagation();
30
+ editApp === null || editApp === void 0 ? void 0 : editApp(appID);
31
+ e.preventDefault();
32
+ };
29
33
  const deleteAppEventHandler = (e) => {
30
34
  e.stopPropagation();
31
35
  deleteApp(appID);
@@ -50,7 +54,7 @@ export const ApplicationList = ({ apps, clickApp, deleteApp }) => (React.createE
50
54
  return (React.createElement("div", { key: appID, id: `app-list-row-${appID}`, className: "app-list-row", role: "listitem", tabIndex: 0, onClick: openAppEventHandler, onKeyDown: keyDownHandler },
51
55
  React.createElement("span", { className: "app-name" }, displayName),
52
56
  React.createElement("div", { className: "icon-bar" },
53
- appDEntry.icons ? (React.createElement(Tooltip, { altClassName: "icon-warning", position: "left" }, "This app group is empty.")) : (""),
57
+ editApp && (React.createElement(ButtonIcon, { className: "icon-edit", icon: "pencil", text: "Edit", onClick: editAppEventHandler })),
54
58
  React.createElement(ButtonIcon, { tabIndex: -1, className: "icon-delete", icon: "trash", text: "Delete", onClick: deleteAppEventHandler }))));
55
59
  })))));
56
60
  //# sourceMappingURL=ApplicationList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationList.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/ApplicationList.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAW5C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAwB,EAAE,EAAE,CAAC,CACvF,0CACE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAClB,6BAAK,SAAS,EAAC,gBAAgB;;IAE9B,+BAAM;wCAED,CACN,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS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AAE,gBAAgB,KAAK,EAAE,EAC3B,SAAS,EAAC,cAAc,EACxB,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,cAAc;QAEzB,8BAAM,SAAS,EAAC,UAAU,IAAE,WAAW,CAAQ;QAC/C,6BAAK,SAAS,EAAC,UAAU;YACvB,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAClB,oBAAC,OAAO,IAAC,YAAY,EAAC,cAAc,EAAC,QAAQ,EAAC,MAAM,+BAE1C,CACV,CAAC,CAAC,CAAC,CACH,EAAE,CACF;YACD,oBAAC,UAAU,IACV,QAAQ,EAAE,CAAC,CAAC,EACZ,SAAS,EAAC,aAAa,EACvB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,qBAAqB,GAC7B,CACG,CACD,CACN,CAAC;AACH,CAAC,CAAC,CACE,CACN,CACC,CACH,CAAC","sourcesContent":["/*!\r\n * Copyright 2017 - 2020 by ChartIQ, Inc.\r\n * All rights reserved.\r\n */\r\n\r\nimport React from \"react\";\r\nimport { ButtonIcon } from \"../common/ButtonIcon\";\r\nimport \"../common/css/application-list.css\";\r\nimport { Tooltip } from \"../common/Tooltip\";\r\nimport { services } from \"@finsemble/finsemble-core\";\r\n\r\ntype AppDefinition = services.Interop.types.AppDefinition;\r\n\r\nexport type ApplicationListProps = {\r\n\tapps: AppDefinition[];\r\n\tclickApp: (s: string) => void;\r\n\tdeleteApp: (s: string) => void;\r\n};\r\n\r\nexport const ApplicationList = ({ apps, clickApp, deleteApp }: ApplicationListProps) => (\r\n\t<>\r\n\t\t{apps.length < 1 ? (\r\n\t\t\t<div className=\"app-list-empty\">\r\n\t\t\t\tThere’s nothing here!\r\n\t\t\t\t<br />\r\n\t\t\t\tClick the Add button to add apps.\r\n\t\t\t</div>\r\n\t\t) : (\r\n\t\t\t<div className=\"app-list-table\" role=\"list\">\r\n\t\t\t\t{apps\r\n\t\t\t\t\t.sort((a, b) => {\r\n\t\t\t\t\t\tif (a.name > b.name) {\r\n\t\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t\t} else if (b.name > a.name) {\r\n\t\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.map((appDEntry: AppDefinition) => {\r\n\t\t\t\t\t\tconst appID = appDEntry.appId;\r\n\r\n\t\t\t\t\t\tconst openAppEventHandler = (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>) => {\r\n\t\t\t\t\t\t\tclickApp(appID);\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tconst deleteAppEventHandler = (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>) => {\r\n\t\t\t\t\t\t\te.stopPropagation();\r\n\t\t\t\t\t\t\tdeleteApp(appID);\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t\tconst keyDownHandler = (e: React.KeyboardEvent<HTMLDivElement>) => {\r\n\t\t\t\t\t\t\tswitch (e.key) {\r\n\t\t\t\t\t\t\t\tcase \"Enter\": {\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcase \" \": {\r\n\t\t\t\t\t\t\t\t\topenAppEventHandler(e);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcase \"Delete\": {\r\n\t\t\t\t\t\t\t\t\tdeleteAppEventHandler(e);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tdefault: {\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tconst displayName = appDEntry.manifest?.component?.displayName || appDEntry.name || appID;\r\n\r\n\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\tkey={appID}\r\n\t\t\t\t\t\t\t\tid={`app-list-row-${appID}`}\r\n\t\t\t\t\t\t\t\tclassName=\"app-list-row\"\r\n\t\t\t\t\t\t\t\trole=\"listitem\"\r\n\t\t\t\t\t\t\t\ttabIndex={0}\r\n\t\t\t\t\t\t\t\tonClick={openAppEventHandler}\r\n\t\t\t\t\t\t\t\tonKeyDown={keyDownHandler}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<span className=\"app-name\">{displayName}</span>\r\n\t\t\t\t\t\t\t\t<div className=\"icon-bar\">\r\n\t\t\t\t\t\t\t\t\t{appDEntry.icons ? (\r\n\t\t\t\t\t\t\t\t\t\t<Tooltip altClassName=\"icon-warning\" position=\"left\">\r\n\t\t\t\t\t\t\t\t\t\t\tThis app group is empty.\r\n\t\t\t\t\t\t\t\t\t\t</Tooltip>\r\n\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t<ButtonIcon\r\n\t\t\t\t\t\t\t\t\t\ttabIndex={-1}\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"icon-delete\"\r\n\t\t\t\t\t\t\t\t\t\ticon=\"trash\"\r\n\t\t\t\t\t\t\t\t\t\ttext=\"Delete\"\r\n\t\t\t\t\t\t\t\t\t\tonClick={deleteAppEventHandler}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t})}\r\n\t\t\t</div>\r\n\t\t)}\r\n\t</>\r\n);\r\n"]}
1
+ {"version":3,"file":"ApplicationList.js","sourceRoot":"","sources":["../../../src/components/smartDesktopDesigner/ApplicationList.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;A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nimport { ButtonIcon } from \"../common/ButtonIcon\";\nimport \"../common/css/application-list.css\";\nimport { Tooltip } from \"../common/Tooltip\";\nimport { services } from \"@finsemble/finsemble-core\";\n\ntype AppDefinition = services.Interop.types.AppDefinition;\n\nexport type ApplicationListProps = {\n\tapps: AppDefinition[];\n\tclickApp: (s: string) => void;\n\tdeleteApp: (s: string) => void;\n\teditApp?: (s: string) => void;\n};\n\nexport const ApplicationList = ({ apps, clickApp, deleteApp, editApp }: ApplicationListProps) => (\n\t<>\n\t\t{apps.length < 1 ? (\n\t\t\t<div className=\"app-list-empty\">\n\t\t\t\tThere’s nothing here!\n\t\t\t\t<br />\n\t\t\t\tClick the Add button to add apps.\n\t\t\t</div>\n\t\t) : (\n\t\t\t<div className=\"app-list-table\" role=\"list\">\n\t\t\t\t{apps\n\t\t\t\t\t.sort((a, b) => {\n\t\t\t\t\t\tif (a.name > b.name) {\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t} else if (b.name > a.name) {\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t})\n\t\t\t\t\t.map((appDEntry: AppDefinition) => {\n\t\t\t\t\t\tconst appID = appDEntry.appId;\n\n\t\t\t\t\t\tconst openAppEventHandler = (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>) => {\n\t\t\t\t\t\t\tclickApp(appID);\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t};\n\t\t\t\t\t\tconst editAppEventHandler = (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\teditApp?.(appID);\n\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t};\n\t\t\t\t\t\tconst deleteAppEventHandler = (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>) => {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\tdeleteApp(appID);\n\t\t\t\t\t\t};\n\t\t\t\t\t\tconst keyDownHandler = (e: React.KeyboardEvent<HTMLDivElement>) => {\n\t\t\t\t\t\t\tswitch (e.key) {\n\t\t\t\t\t\t\t\tcase \"Enter\": {\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase \" \": {\n\t\t\t\t\t\t\t\t\topenAppEventHandler(e);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase \"Delete\": {\n\t\t\t\t\t\t\t\t\tdeleteAppEventHandler(e);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tconst displayName = appDEntry.manifest?.component?.displayName || appDEntry.name || appID;\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tkey={appID}\n\t\t\t\t\t\t\t\tid={`app-list-row-${appID}`}\n\t\t\t\t\t\t\t\tclassName=\"app-list-row\"\n\t\t\t\t\t\t\t\trole=\"listitem\"\n\t\t\t\t\t\t\t\ttabIndex={0}\n\t\t\t\t\t\t\t\tonClick={openAppEventHandler}\n\t\t\t\t\t\t\t\tonKeyDown={keyDownHandler}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span className=\"app-name\">{displayName}</span>\n\t\t\t\t\t\t\t\t<div className=\"icon-bar\">\n\t\t\t\t\t\t\t\t\t{editApp && (\n\t\t\t\t\t\t\t\t\t\t<ButtonIcon className=\"icon-edit\" icon=\"pencil\" text=\"Edit\" onClick={editAppEventHandler} />\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t<ButtonIcon\n\t\t\t\t\t\t\t\t\t\ttabIndex={-1}\n\t\t\t\t\t\t\t\t\t\tclassName=\"icon-delete\"\n\t\t\t\t\t\t\t\t\t\ticon=\"trash\"\n\t\t\t\t\t\t\t\t\t\ttext=\"Delete\"\n\t\t\t\t\t\t\t\t\t\tonClick={deleteAppEventHandler}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t</div>\n\t\t)}\n\t</>\n);\n"]}
@@ -11,9 +11,6 @@ export declare type ApplicationsProps = {
11
11
  getMenus: typeof FSBL.Clients.SmartDesktopClient.prototype.getMenus;
12
12
  addMenu: typeof FSBL.Clients.SmartDesktopClient.prototype.addMenu;
13
13
  updateMenu: typeof FSBL.Clients.SmartDesktopClient.prototype.updateMenu;
14
- deleteMenu: (value: string) => Promise<{
15
- err: any;
16
- }>;
17
14
  isInboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isInboundInteropAuthorized;
18
15
  isOutboundInteropAuthorized: typeof FSBL.Clients.SmartDesktopClient.isOutboundInteropAuthorized;
19
16
  };