@finsemble/finsemble-ui 8.3.0-beta.8 → 8.3.1
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.
- package/FEA.d.ts +102 -28
- package/FEA.d.ts.map +1 -1
- package/FEA.js.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.d.ts +1 -0
- package/clients/Interop/FinsembleDesktopAgent.d.ts.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.js +17 -16
- package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
- package/clients/Interop/types.d.ts +1 -0
- package/clients/Interop/types.d.ts.map +1 -1
- package/clients/Startup/FSBLDesktop.d.ts +2 -8
- package/clients/Startup/FSBLDesktop.d.ts.map +1 -1
- package/clients/Startup/FSBLDesktop.js +2 -4
- package/clients/Startup/FSBLDesktop.js.map +1 -1
- package/clients/Startup/unhandledErrors.d.ts.map +1 -1
- package/clients/Startup/unhandledErrors.js +6 -4
- package/clients/Startup/unhandledErrors.js.map +1 -1
- package/clients/Startup/windowStartup.d.ts.map +1 -1
- package/clients/Startup/windowStartup.js +125 -112
- package/clients/Startup/windowStartup.js.map +1 -1
- package/clients/StoreModel.d.ts +8 -8
- package/clients/StoreModel.js +9 -9
- package/clients/StoreModel.js.map +1 -1
- package/clients/appsClient.d.ts +463 -0
- package/clients/appsClient.d.ts.map +1 -0
- package/clients/appsClient.js +696 -0
- package/clients/appsClient.js.map +1 -0
- package/clients/authenticationClient.d.ts +36 -27
- package/clients/authenticationClient.d.ts.map +1 -1
- package/clients/authenticationClient.js +18 -15
- package/clients/authenticationClient.js.map +1 -1
- package/clients/configClient.d.ts +189 -71
- package/clients/configClient.d.ts.map +1 -1
- package/clients/configClient.js +185 -114
- package/clients/configClient.js.map +1 -1
- package/clients/controller/DialogManagerClientController.d.ts +78 -0
- package/clients/controller/DialogManagerClientController.d.ts.map +1 -0
- package/clients/controller/DialogManagerClientController.js +213 -0
- package/clients/controller/DialogManagerClientController.js.map +1 -0
- package/clients/dialogManagerClient.d.ts +11 -75
- package/clients/dialogManagerClient.d.ts.map +1 -1
- package/clients/dialogManagerClient.js +11 -208
- package/clients/dialogManagerClient.js.map +1 -1
- package/clients/distributedStoreClient.d.ts +4 -0
- package/clients/distributedStoreClient.d.ts.map +1 -1
- package/clients/distributedStoreClient.js +4 -0
- package/clients/distributedStoreClient.js.map +1 -1
- package/clients/hotkeyClient.d.ts +23 -9
- package/clients/hotkeyClient.d.ts.map +1 -1
- package/clients/hotkeyClient.js +35 -14
- package/clients/hotkeyClient.js.map +1 -1
- package/clients/index.d.ts +2 -0
- package/clients/index.d.ts.map +1 -1
- package/clients/index.js +2 -0
- package/clients/index.js.map +1 -1
- package/clients/launcherClient.d.ts +55 -209
- package/clients/launcherClient.d.ts.map +1 -1
- package/clients/launcherClient.js +37 -422
- package/clients/launcherClient.js.map +1 -1
- package/clients/logger.d.ts +6 -0
- package/clients/logger.d.ts.map +1 -1
- package/clients/logger.js +49 -41
- package/clients/logger.js.map +1 -1
- package/clients/notificationClient.d.ts +32 -8
- package/clients/notificationClient.d.ts.map +1 -1
- package/clients/notificationClient.js +32 -8
- package/clients/notificationClient.js.map +1 -1
- package/clients/routerClient.d.ts +39 -21
- package/clients/routerClient.d.ts.map +1 -1
- package/clients/routerClient.js +38 -20
- package/clients/routerClient.js.map +1 -1
- package/clients/searchClient.d.ts +7 -2
- package/clients/searchClient.d.ts.map +1 -1
- package/clients/searchClient.js +7 -2
- package/clients/searchClient.js.map +1 -1
- package/clients/storageClient.d.ts +19 -6
- package/clients/storageClient.d.ts.map +1 -1
- package/clients/storageClient.js +18 -6
- package/clients/storageClient.js.map +1 -1
- package/clients/windowClient.d.ts +207 -80
- package/clients/windowClient.d.ts.map +1 -1
- package/clients/windowClient.js +291 -139
- package/clients/windowClient.js.map +1 -1
- package/clients/workspaceClient.d.ts +45 -18
- package/clients/workspaceClient.d.ts.map +1 -1
- package/clients/workspaceClient.js +41 -13
- package/clients/workspaceClient.js.map +1 -1
- package/common/Desktop.d.ts +12 -50
- package/common/Desktop.d.ts.map +1 -1
- package/common/Desktop.js +14 -64
- package/common/Desktop.js.map +1 -1
- package/common/FinsembleWindow.d.ts +5 -108
- package/common/FinsembleWindow.d.ts.map +1 -1
- package/common/FinsembleWindow.js +28 -349
- package/common/FinsembleWindow.js.map +1 -1
- package/common/Monitors.d.ts +30 -18
- package/common/Monitors.d.ts.map +1 -1
- package/common/Monitors.js +45 -80
- package/common/Monitors.js.map +1 -1
- package/common/Singleton.d.ts +7 -1
- package/common/Singleton.d.ts.map +1 -1
- package/common/Singleton.js +24 -11
- package/common/Singleton.js.map +1 -1
- package/common/constants.d.ts +3 -9
- package/common/constants.d.ts.map +1 -1
- package/common/constants.js +3 -14
- package/common/constants.js.map +1 -1
- package/common/events/FinsembleEvent.d.ts +1 -1
- package/common/events/FinsembleEvent.d.ts.map +1 -1
- package/common/redux/getRemoteStore.d.ts +53 -0
- package/common/redux/getRemoteStore.d.ts.map +1 -0
- package/common/redux/getRemoteStore.js +50 -0
- package/common/redux/getRemoteStore.js.map +1 -0
- package/common/redux/remoteReduxEnhancer.d.ts +7 -7
- package/common/redux/remoteReduxEnhancer.d.ts.map +1 -1
- package/common/redux/remoteReduxEnhancer.js +35 -20
- package/common/redux/remoteReduxEnhancer.js.map +1 -1
- package/common/redux/types.d.ts +14 -1
- package/common/redux/types.d.ts.map +1 -1
- package/common/systemManagerClient.d.ts +11 -5
- package/common/systemManagerClient.d.ts.map +1 -1
- package/common/systemManagerClient.js +25 -8
- package/common/systemManagerClient.js.map +1 -1
- package/common/util.d.ts +1 -7
- package/common/util.d.ts.map +1 -1
- package/common/util.js +1 -14
- package/common/util.js.map +1 -1
- package/deprecated/deprecatedFunctions.d.ts +1 -1
- package/deprecated/deprecatedFunctions.d.ts.map +1 -1
- package/deprecated/deprecatedFunctions.js +3 -4
- package/deprecated/deprecatedFunctions.js.map +1 -1
- package/deprecated/deprecatedlauncherClient.d.ts +1 -1
- package/deprecated/deprecatedlauncherClient.d.ts.map +1 -1
- package/deprecated/deprecatedlauncherClient.js.map +1 -1
- package/deprecated/dragAndDropClient.d.ts +4 -3
- package/deprecated/dragAndDropClient.d.ts.map +1 -1
- package/deprecated/dragAndDropClient.js +15 -4
- package/deprecated/dragAndDropClient.js.map +1 -1
- package/deprecated/linkerClient.d.ts +1 -1
- package/deprecated/linkerClient.d.ts.map +1 -1
- package/main.d.ts +289 -171
- package/main.d.ts.map +1 -1
- package/main.js +3 -1
- package/main.js.map +1 -1
- package/package.json +4 -4
- package/platform/services/Interop/modules/types.d.ts +2 -0
- package/platform/services/Interop/modules/types.d.ts.map +1 -1
- package/platform/services/Interop/types.d.ts +24 -2
- package/platform/services/Interop/types.d.ts.map +1 -1
- package/platform/services/Interop/types.js.map +1 -1
- package/platform/services/router/types.d.ts +5 -6
- package/platform/services/router/types.d.ts.map +1 -1
- package/platform/services/systemManager/_constants.d.ts +1 -0
- package/platform/services/systemManager/_constants.d.ts.map +1 -1
- package/platform/services/systemManager/_constants.js +2 -0
- package/platform/services/systemManager/_constants.js.map +1 -1
- package/platform/services/systemManager/types.d.ts +1 -1
- package/platform/services/systemManager/types.d.ts.map +1 -1
- package/platform/services/systemManager/types.js.map +1 -1
- package/platform/services/window/modules/actions.d.ts +68 -0
- package/platform/services/window/modules/actions.d.ts.map +1 -0
- package/platform/services/window/modules/actions.js +60 -0
- package/platform/services/window/modules/actions.js.map +1 -0
- package/platform/services/window/types.d.ts +275 -51
- package/platform/services/window/types.d.ts.map +1 -1
- package/platform/services/workspace/types.d.ts +4 -3
- package/platform/services/workspace/types.d.ts.map +1 -1
- package/react/actions/smartDesktopDesignerActions.d.ts +7 -1
- package/react/actions/smartDesktopDesignerActions.d.ts.map +1 -1
- package/react/actions/smartDesktopDesignerActions.js +3 -0
- package/react/actions/smartDesktopDesignerActions.js.map +1 -1
- package/react/assets/css/core/icons.css +0 -5
- package/react/assets/css/dialogs.css +2 -1
- package/react/assets/css/fonts/icons-reference.html +1 -1
- package/react/assets/css/processMonitor.css +9 -4
- package/react/assets/css/userPreferences.css +1 -1
- package/react/assets/css/windowTitleBar.css +101 -285
- package/react/assets/icons/chevron-down.svg +1 -0
- package/react/assets/icons/chevron-up.svg +1 -0
- package/react/components/appCatalog/AppCatalog.d.ts +3 -0
- package/react/components/appCatalog/AppCatalog.d.ts.map +1 -1
- package/react/components/appCatalog/AppCatalog.js +3 -0
- package/react/components/appCatalog/AppCatalog.js.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.d.ts +4 -0
- package/react/components/appCatalog/AppCatalogComponent.d.ts.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.js +6 -2
- package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
- package/react/components/common/ButtonRow.d.ts.map +1 -1
- package/react/components/common/ButtonRow.js +4 -9
- package/react/components/common/ButtonRow.js.map +1 -1
- package/react/components/common/Checkbox.d.ts +1 -0
- package/react/components/common/Checkbox.d.ts.map +1 -1
- package/react/components/common/Checkbox.js +14 -2
- package/react/components/common/Checkbox.js.map +1 -1
- package/react/components/common/ContextMenu.d.ts.map +1 -1
- package/react/components/common/ContextMenu.js +5 -11
- package/react/components/common/ContextMenu.js.map +1 -1
- package/react/components/common/DropdownButton.d.ts.map +1 -1
- package/react/components/common/DropdownButton.js +11 -24
- package/react/components/common/DropdownButton.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +1 -1
- package/react/components/common/FinsembleIcon.d.ts.map +1 -1
- package/react/components/common/FinsembleIcon.js +6 -4
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleLink.d.ts +7 -0
- package/react/components/common/FinsembleLink.d.ts.map +1 -0
- package/react/components/common/FinsembleLink.js +13 -0
- package/react/components/common/FinsembleLink.js.map +1 -0
- package/react/components/common/Header.d.ts +1 -0
- package/react/components/common/Header.d.ts.map +1 -1
- package/react/components/common/Header.js +4 -2
- package/react/components/common/Header.js.map +1 -1
- package/react/components/common/css/accordion.css +9 -21
- package/react/components/common/css/application-edit-page.css +0 -15
- package/react/components/common/css/application-list.css +54 -23
- package/react/components/common/css/button.css +20 -0
- package/react/components/common/css/selector.css +3 -1
- package/react/components/downloadManager/DownloadManager.d.ts +1 -1
- package/react/components/downloadManager/DownloadManager.d.ts.map +1 -1
- package/react/components/downloadManager/DownloadManager.js +2 -4
- package/react/components/downloadManager/DownloadManager.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.d.ts +6 -0
- package/react/components/fdc3Resolver/ResolverContainer.d.ts.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js +37 -89
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.d.ts +10 -1
- package/react/components/fdc3Resolver/ResolverDialog.d.ts.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.js +78 -66
- package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
- package/react/components/icon/Icon.js +1 -1
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts.map +1 -1
- package/react/components/linker/remoteRedux.d.ts +2 -9
- package/react/components/linker/remoteRedux.d.ts.map +1 -1
- package/react/components/linker/remoteRedux.js +2 -22
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/notifications/components/shared/IconButton.d.ts +1 -1
- package/react/components/notifications/components/shared/IconButton.d.ts.map +1 -1
- package/react/components/notifications/components/shared/IconButton.js +2 -2
- package/react/components/notifications/components/shared/IconButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts.map +1 -1
- package/react/components/notifications/css/notification-center.css +2 -0
- package/react/components/processMonitor/ProcessMonitor.d.ts.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.js +14 -36
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts +0 -4
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.js +1 -5
- package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.d.ts +2 -3
- package/react/components/processMonitor/components/ChildWindow.d.ts.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.js +5 -9
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.d.ts +1 -5
- package/react/components/processMonitor/components/ListHeader.d.ts.map +1 -1
- package/react/components/processMonitor/components/ListHeader.js +3 -2
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/Process.d.ts +10 -0
- package/react/components/processMonitor/components/Process.d.ts.map +1 -0
- package/react/components/processMonitor/components/Process.js +11 -0
- package/react/components/processMonitor/components/Process.js.map +1 -0
- package/react/components/processMonitor/components/ProcessStatistics.d.ts +5 -4
- package/react/components/processMonitor/components/ProcessStatistics.d.ts.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js +10 -7
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.d.ts +1 -2
- package/react/components/processMonitor/constants.d.ts.map +1 -1
- package/react/components/processMonitor/constants.js +2 -8
- package/react/components/processMonitor/constants.js.map +1 -1
- package/react/components/processMonitor/helpers.d.ts +0 -1
- package/react/components/processMonitor/helpers.d.ts.map +1 -1
- package/react/components/processMonitor/helpers.js +2 -9
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +0 -4
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +0 -29
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/sdd/Content.d.ts +9 -0
- package/react/components/sdd/Content.d.ts.map +1 -0
- package/react/components/sdd/Content.js +7 -0
- package/react/components/sdd/Content.js.map +1 -0
- package/react/components/sdd/Dashboard.d.ts +20 -0
- package/react/components/sdd/Dashboard.d.ts.map +1 -0
- package/react/components/sdd/Dashboard.js +103 -0
- package/react/components/sdd/Dashboard.js.map +1 -0
- package/react/components/sdd/Export.d.ts +24 -0
- package/react/components/sdd/Export.d.ts.map +1 -0
- package/react/components/sdd/Export.js +133 -0
- package/react/components/sdd/Export.js.map +1 -0
- package/react/components/sdd/ExportCloud.d.ts +7 -0
- package/react/components/sdd/ExportCloud.d.ts.map +1 -0
- package/react/components/sdd/ExportCloud.js +38 -0
- package/react/components/sdd/ExportCloud.js.map +1 -0
- package/react/components/sdd/ExportDeployInfo.d.ts +3 -0
- package/react/components/sdd/ExportDeployInfo.d.ts.map +1 -0
- package/react/components/sdd/ExportDeployInfo.js +18 -0
- package/react/components/sdd/ExportDeployInfo.js.map +1 -0
- package/react/components/sdd/ExportZip.d.ts +7 -0
- package/react/components/sdd/ExportZip.d.ts.map +1 -0
- package/react/components/sdd/ExportZip.js +43 -0
- package/react/components/sdd/ExportZip.js.map +1 -0
- package/react/components/sdd/ProjectErrors.d.ts +12 -0
- package/react/components/sdd/ProjectErrors.d.ts.map +1 -0
- package/react/components/sdd/ProjectErrors.js +26 -0
- package/react/components/sdd/ProjectErrors.js.map +1 -0
- package/react/components/sdd/ProjectMasonry.d.ts +13 -0
- package/react/components/sdd/ProjectMasonry.d.ts.map +1 -0
- package/react/components/sdd/ProjectMasonry.js +22 -0
- package/react/components/sdd/ProjectMasonry.js.map +1 -0
- package/react/components/sdd/Publish.d.ts +9 -0
- package/react/components/sdd/Publish.d.ts.map +1 -0
- package/react/components/sdd/Publish.js +113 -0
- package/react/components/sdd/Publish.js.map +1 -0
- package/react/components/sdd/PublishProgress.d.ts +10 -0
- package/react/components/sdd/PublishProgress.d.ts.map +1 -0
- package/react/components/sdd/PublishProgress.js +24 -0
- package/react/components/sdd/PublishProgress.js.map +1 -0
- package/react/components/sdd/View.d.ts +9 -0
- package/react/components/sdd/View.d.ts.map +1 -0
- package/react/components/sdd/View.js +7 -0
- package/react/components/sdd/View.js.map +1 -0
- package/react/components/sdd/css/addApp.css +62 -8
- package/react/components/sdd/css/appD.css +81 -0
- package/react/components/sdd/css/appDViewer.css +93 -0
- package/react/components/sdd/css/applications.css +53 -15
- package/react/components/sdd/css/exportAppD.css +31 -0
- package/react/components/sdd/css/horizontalScroll.css +9 -0
- package/react/components/sdd/css/project-header.css +2 -1
- package/react/components/sdd/css/views.css +3 -0
- package/react/components/sdd/smartDesktopClient.d.ts +627 -0
- package/react/components/sdd/smartDesktopClient.d.ts.map +1 -0
- package/react/components/sdd/smartDesktopClient.js +1222 -0
- package/react/components/sdd/smartDesktopClient.js.map +1 -0
- package/react/components/sdd/types.d.ts +9 -0
- package/react/components/sdd/types.d.ts.map +1 -0
- package/react/components/sdd/types.js +2 -0
- package/react/components/sdd/types.js.map +1 -0
- package/react/components/search/SearchInput.d.ts +1 -2
- package/react/components/search/SearchInput.d.ts.map +1 -1
- package/react/components/search/SearchInput.js +11 -13
- package/react/components/search/SearchInput.js.map +1 -1
- package/react/components/search/SearchResults.d.ts.map +1 -1
- package/react/components/search/SearchResults.js +6 -6
- package/react/components/search/SearchResults.js.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.d.ts.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.js +31 -4
- package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.d.ts.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.js +83 -100
- package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
- package/react/components/toolbar/DownloadButton.d.ts +1 -1
- package/react/components/toolbar/DownloadButton.d.ts.map +1 -1
- package/react/components/toolbar/DownloadButton.js +3 -6
- package/react/components/toolbar/DownloadButton.js.map +1 -1
- package/react/components/toolbar/DragHandle.d.ts.map +1 -1
- package/react/components/toolbar/DragHandle.js +8 -5
- package/react/components/toolbar/DragHandle.js.map +1 -1
- package/react/components/toolbar/ToolbarIcon.d.ts.map +1 -1
- package/react/components/toolbar/ToolbarIcon.js +10 -1
- package/react/components/toolbar/ToolbarIcon.js.map +1 -1
- package/react/components/toolbar/ToolbarShell.d.ts +1 -0
- package/react/components/toolbar/ToolbarShell.d.ts.map +1 -1
- package/react/components/toolbar/ToolbarShell.js +3 -2
- package/react/components/toolbar/ToolbarShell.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js +3 -0
- package/react/components/toolbar/advancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.d.ts +5 -0
- package/react/components/userPreferences/components/content/Workspaces.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js +14 -1
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
- package/react/components/utils.d.ts +50 -0
- package/react/components/utils.d.ts.map +1 -0
- package/react/components/utils.js +60 -0
- package/react/components/utils.js.map +1 -0
- package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts +9 -0
- package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/AlwaysOnTopButton.js +29 -0
- package/react/components/windowTitleBar/AlwaysOnTopButton.js.map +1 -0
- package/react/components/windowTitleBar/CloseButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/CloseButton.js +22 -0
- package/react/components/windowTitleBar/CloseButton.js.map +1 -0
- package/react/components/windowTitleBar/GroupingButton.d.ts +3 -0
- package/react/components/windowTitleBar/GroupingButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/GroupingButton.js +25 -0
- package/react/components/windowTitleBar/GroupingButton.js.map +1 -0
- package/react/components/windowTitleBar/LinkerButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/{components/left/LinkerButton.js → LinkerButton.js} +4 -4
- package/react/components/windowTitleBar/LinkerButton.js.map +1 -0
- package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts +11 -0
- package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts.map +1 -0
- package/react/components/windowTitleBar/LinkerButtonDeprecated.js +63 -0
- package/react/components/windowTitleBar/LinkerButtonDeprecated.js.map +1 -0
- package/react/components/windowTitleBar/LinkerGroups.d.ts.map +1 -0
- package/react/components/windowTitleBar/{components/left/LinkerGroups.js → LinkerGroups.js} +2 -3
- package/react/components/windowTitleBar/LinkerGroups.js.map +1 -0
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts +7 -0
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts.map +1 -0
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.js +35 -0
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.js.map +1 -0
- package/react/components/windowTitleBar/MaximizeButton.d.ts +3 -0
- package/react/components/windowTitleBar/MaximizeButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/MaximizeButton.js +18 -0
- package/react/components/windowTitleBar/MaximizeButton.js.map +1 -0
- package/react/components/windowTitleBar/MinimizeButton.d.ts +3 -0
- package/react/components/windowTitleBar/MinimizeButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/MinimizeButton.js +21 -0
- package/react/components/windowTitleBar/MinimizeButton.js.map +1 -0
- package/react/components/windowTitleBar/ShareButton.d.ts +3 -0
- package/react/components/windowTitleBar/ShareButton.d.ts.map +1 -0
- package/react/components/windowTitleBar/ShareButton.js +24 -0
- package/react/components/windowTitleBar/ShareButton.js.map +1 -0
- package/react/components/windowTitleBar/TabRegion.d.ts +7 -0
- package/react/components/windowTitleBar/TabRegion.d.ts.map +1 -0
- package/react/components/windowTitleBar/TabRegion.js +479 -0
- package/react/components/windowTitleBar/TabRegion.js.map +1 -0
- package/react/components/windowTitleBar/TabTitle.d.ts +8 -0
- package/react/components/windowTitleBar/TabTitle.d.ts.map +1 -0
- package/react/components/windowTitleBar/TabTitle.js +17 -0
- package/react/components/windowTitleBar/TabTitle.js.map +1 -0
- package/react/components/windowTitleBar/TitleEdit.d.ts +10 -0
- package/react/components/windowTitleBar/TitleEdit.d.ts.map +1 -0
- package/react/components/windowTitleBar/TitleEdit.js +30 -0
- package/react/components/windowTitleBar/TitleEdit.js.map +1 -0
- package/react/components/windowTitleBar/WindowTitleBarContext.d.ts +12 -0
- package/react/components/windowTitleBar/WindowTitleBarContext.d.ts.map +1 -0
- package/react/components/windowTitleBar/WindowTitleBarContext.js +3 -0
- package/react/components/windowTitleBar/WindowTitleBarContext.js.map +1 -0
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +14 -272
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.js +41 -929
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/index.d.ts +9 -8
- package/react/components/windowTitleBar/index.d.ts.map +1 -1
- package/react/components/windowTitleBar/index.js +9 -8
- package/react/components/windowTitleBar/index.js.map +1 -1
- package/react/components/windowTitleBar/useKeyboardNavigation.d.ts +7 -0
- package/react/components/windowTitleBar/useKeyboardNavigation.d.ts.map +1 -0
- package/react/components/windowTitleBar/useKeyboardNavigation.js +57 -0
- package/react/components/windowTitleBar/useKeyboardNavigation.js.map +1 -0
- package/react/components/windowTitleBar/useMaximize.d.ts +5 -0
- package/react/components/windowTitleBar/useMaximize.d.ts.map +1 -0
- package/react/components/windowTitleBar/useMaximize.js +23 -0
- package/react/components/windowTitleBar/useMaximize.js.map +1 -0
- package/react/components/yesNoDialog/timer.js +2 -1
- package/react/components/yesNoDialog/timer.js.map +1 -1
- package/react/hooks/useDashbar.d.ts.map +1 -1
- package/react/hooks/useDashbar.js.map +1 -1
- package/react/hooks/useDragRegion.d.ts +27 -0
- package/react/hooks/useDragRegion.d.ts.map +1 -0
- package/react/hooks/useDragRegion.js +74 -0
- package/react/hooks/useDragRegion.js.map +1 -0
- package/react/hooks/useInjectedTitleBar.d.ts +3 -0
- package/react/hooks/useInjectedTitleBar.d.ts.map +1 -0
- package/react/hooks/useInjectedTitleBar.js +437 -0
- package/react/hooks/useInjectedTitleBar.js.map +1 -0
- package/react/hooks/useNotifications.d.ts +1 -1
- package/react/hooks/useToolbar.d.ts +1 -0
- package/react/hooks/useToolbar.d.ts.map +1 -1
- package/react/hooks/useToolbar.js +13 -3
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/reducers/rootReducer.d.ts +12 -0
- package/react/reducers/rootReducer.d.ts.map +1 -1
- package/react/reducers/smartDesktopDesignerReducer.d.ts.map +1 -1
- package/react/reducers/smartDesktopDesignerReducer.js +12 -0
- package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
- package/react/store.d.ts +24 -0
- package/react/store.d.ts.map +1 -1
- package/react/types/smartDesktopDesignerTypes.d.ts +42 -1
- package/react/types/smartDesktopDesignerTypes.d.ts.map +1 -1
- package/react/types/smartDesktopDesignerTypes.js.map +1 -1
- package/typedefs/FDC3/api/AppMetadata.d.ts +1 -0
- package/typedefs/FDC3/api/AppMetadata.d.ts.map +1 -1
- package/typedoc-types.d.ts +9 -0
- package/typedoc-types.d.ts.map +1 -0
- package/typedoc-types.js +6 -0
- package/typedoc-types.js.map +1 -0
- package/types.d.ts +5 -11
- package/types.d.ts.map +1 -1
- package/types.js +2 -0
- package/types.js.map +1 -1
- package/common/events/PrivateEventManager.d.ts +0 -95
- package/common/events/PrivateEventManager.d.ts.map +0 -1
- package/common/events/PrivateEventManager.js +0 -295
- package/common/events/PrivateEventManager.js.map +0 -1
- package/common/events/PrivateFinsembleEvent.d.ts +0 -30
- package/common/events/PrivateFinsembleEvent.d.ts.map +0 -1
- package/common/events/PrivateFinsembleEvent.js +0 -65
- package/common/events/PrivateFinsembleEvent.js.map +0 -1
- package/common/redux/createReducer.d.ts +0 -128
- package/common/redux/createReducer.d.ts.map +0 -1
- package/common/redux/createReducer.js +0 -298
- package/common/redux/createReducer.js.map +0 -1
- package/common/redux/index.d.ts +0 -3
- package/common/redux/index.d.ts.map +0 -1
- package/common/redux/index.js +0 -3
- package/common/redux/index.js.map +0 -1
- package/platform/services/window/Common/Pools/ObjectPool.d.ts +0 -11
- package/platform/services/window/Common/Pools/ObjectPool.d.ts.map +0 -1
- package/platform/services/window/Common/Pools/ObjectPool.js +0 -43
- package/platform/services/window/Common/Pools/ObjectPool.js.map +0 -1
- package/platform/services/window/Common/Pools/PoolSingletons.d.ts +0 -10
- package/platform/services/window/Common/Pools/PoolSingletons.d.ts.map +0 -1
- package/platform/services/window/Common/Pools/PoolSingletons.js +0 -10
- package/platform/services/window/Common/Pools/PoolSingletons.js.map +0 -1
- package/platform/services/window/Common/Pools/WindowPool.d.ts +0 -7
- package/platform/services/window/Common/Pools/WindowPool.d.ts.map +0 -1
- package/platform/services/window/Common/Pools/WindowPool.js +0 -16
- package/platform/services/window/Common/Pools/WindowPool.js.map +0 -1
- package/platform/services/window/Docking/boxMath.d.ts +0 -144
- package/platform/services/window/Docking/boxMath.d.ts.map +0 -1
- package/platform/services/window/Docking/boxMath.js +0 -511
- package/platform/services/window/Docking/boxMath.js.map +0 -1
- package/platform/services/window/Docking/constants.d.ts +0 -29
- package/platform/services/window/Docking/constants.d.ts.map +0 -1
- package/platform/services/window/Docking/constants.js +0 -29
- package/platform/services/window/Docking/constants.js.map +0 -1
- package/platform/services/window/Docking/dockableBox.d.ts +0 -117
- package/platform/services/window/Docking/dockableBox.d.ts.map +0 -1
- package/platform/services/window/Docking/dockableBox.js +0 -525
- package/platform/services/window/Docking/dockableBox.js.map +0 -1
- package/platform/services/window/Docking/dockableGroup.d.ts +0 -252
- package/platform/services/window/Docking/dockableGroup.d.ts.map +0 -1
- package/platform/services/window/Docking/dockableGroup.js +0 -1054
- package/platform/services/window/Docking/dockableGroup.js.map +0 -1
- package/platform/services/window/Docking/dockableMonitor.d.ts +0 -99
- package/platform/services/window/Docking/dockableMonitor.d.ts.map +0 -1
- package/platform/services/window/Docking/dockableMonitor.js +0 -427
- package/platform/services/window/Docking/dockableMonitor.js.map +0 -1
- package/platform/services/window/Docking/dockableWindow.d.ts +0 -272
- package/platform/services/window/Docking/dockableWindow.d.ts.map +0 -1
- package/platform/services/window/Docking/dockableWindow.js +0 -1239
- package/platform/services/window/Docking/dockableWindow.js.map +0 -1
- package/platform/services/window/Docking/dockingCalculator.d.ts +0 -741
- package/platform/services/window/Docking/dockingCalculator.d.ts.map +0 -1
- package/platform/services/window/Docking/dockingCalculator.js +0 -3438
- package/platform/services/window/Docking/dockingCalculator.js.map +0 -1
- package/platform/services/window/Docking/dockingMain.d.ts +0 -349
- package/platform/services/window/Docking/dockingMain.d.ts.map +0 -1
- package/platform/services/window/Docking/dockingMain.js +0 -2541
- package/platform/services/window/Docking/dockingMain.js.map +0 -1
- package/platform/services/window/Docking/maskBoundsCalculator.d.ts +0 -28
- package/platform/services/window/Docking/maskBoundsCalculator.d.ts.map +0 -1
- package/platform/services/window/Docking/maskBoundsCalculator.js +0 -67
- package/platform/services/window/Docking/maskBoundsCalculator.js.map +0 -1
- package/platform/services/window/Docking/monitorUpdateHandler.d.ts +0 -32
- package/platform/services/window/Docking/monitorUpdateHandler.d.ts.map +0 -1
- package/platform/services/window/Docking/monitorUpdateHandler.js +0 -117
- package/platform/services/window/Docking/monitorUpdateHandler.js.map +0 -1
- package/platform/services/window/Docking/types.d.ts +0 -334
- package/platform/services/window/Docking/types.d.ts.map +0 -1
- package/platform/services/window/Docking/types.js +0 -12
- package/platform/services/window/Docking/types.js.map +0 -1
- package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts +0 -90
- package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts.map +0 -1
- package/platform/services/window/MultiWindowFeatures/autoArrange.js +0 -510
- package/platform/services/window/MultiWindowFeatures/autoArrange.js.map +0 -1
- package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts +0 -411
- package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts.map +0 -1
- package/platform/services/window/StackedWindowManager/stackedWindowManager.js +0 -1641
- package/platform/services/window/StackedWindowManager/stackedWindowManager.js.map +0 -1
- package/platform/services/window/WindowAbstractions/BaseWindow.d.ts +0 -469
- package/platform/services/window/WindowAbstractions/BaseWindow.d.ts.map +0 -1
- package/platform/services/window/WindowAbstractions/BaseWindow.js +0 -1347
- package/platform/services/window/WindowAbstractions/BaseWindow.js.map +0 -1
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts +0 -9
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts.map +0 -1
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js +0 -23
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js.map +0 -1
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts +0 -227
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts.map +0 -1
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.js +0 -1168
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.js.map +0 -1
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts +0 -121
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts.map +0 -1
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.js +0 -591
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.js.map +0 -1
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts +0 -194
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts.map +0 -1
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js +0 -680
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js.map +0 -1
- package/platform/services/window/windowGroup.d.ts +0 -86
- package/platform/services/window/windowGroup.d.ts.map +0 -1
- package/platform/services/window/windowGroup.js +0 -323
- package/platform/services/window/windowGroup.js.map +0 -1
- package/platform/services/workspace/windowStorageManager.d.ts +0 -180
- package/platform/services/workspace/windowStorageManager.d.ts.map +0 -1
- package/platform/services/workspace/windowStorageManager.js +0 -195
- package/platform/services/workspace/windowStorageManager.js.map +0 -1
- package/react/assets/icons/question-circle.svg +0 -6
- package/react/components/legacyControls/FinsembleHoverDetector.d.ts +0 -23
- package/react/components/legacyControls/FinsembleHoverDetector.d.ts.map +0 -1
- package/react/components/legacyControls/FinsembleHoverDetector.js +0 -57
- package/react/components/legacyControls/FinsembleHoverDetector.js.map +0 -1
- package/react/components/sdd/Appearance.helpers.d.ts +0 -2
- package/react/components/sdd/Appearance.helpers.d.ts.map +0 -1
- package/react/components/sdd/Appearance.helpers.js +0 -2
- package/react/components/sdd/Appearance.helpers.js.map +0 -1
- package/react/components/shared/linkerUtil.d.ts +0 -4
- package/react/components/shared/linkerUtil.d.ts.map +0 -1
- package/react/components/shared/linkerUtil.js +0 -10
- package/react/components/shared/linkerUtil.js.map +0 -1
- package/react/components/windowTitleBar/components/center/Tab.d.ts +0 -31
- package/react/components/windowTitleBar/components/center/Tab.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/center/Tab.js +0 -58
- package/react/components/windowTitleBar/components/center/Tab.js.map +0 -1
- package/react/components/windowTitleBar/components/center/TabList.d.ts +0 -138
- package/react/components/windowTitleBar/components/center/TabList.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/center/TabList.js +0 -614
- package/react/components/windowTitleBar/components/center/TabList.js.map +0 -1
- package/react/components/windowTitleBar/components/center/TabRegion.d.ts +0 -3
- package/react/components/windowTitleBar/components/center/TabRegion.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/center/TabRegion.js +0 -13
- package/react/components/windowTitleBar/components/center/TabRegion.js.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +0 -85
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js +0 -172
- package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.js.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerGroups.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerGroups.js.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts +0 -50
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js +0 -120
- package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.js.map +0 -1
- package/react/components/windowTitleBar/components/left/ShareButton.d.ts +0 -42
- package/react/components/windowTitleBar/components/left/ShareButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/left/ShareButton.js +0 -82
- package/react/components/windowTitleBar/components/left/ShareButton.js.map +0 -1
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.d.ts +0 -3
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js +0 -15
- package/react/components/windowTitleBar/components/right/AlwaysOnTopButton.js.map +0 -1
- package/react/components/windowTitleBar/components/right/CloseButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/right/CloseButton.js +0 -16
- package/react/components/windowTitleBar/components/right/CloseButton.js.map +0 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.d.ts +0 -50
- package/react/components/windowTitleBar/components/right/GroupingButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.js +0 -82
- package/react/components/windowTitleBar/components/right/GroupingButton.js.map +0 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts +0 -59
- package/react/components/windowTitleBar/components/right/MaximizeButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.js +0 -96
- package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +0 -1
- package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts +0 -26
- package/react/components/windowTitleBar/components/right/MinimizeButton.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/right/MinimizeButton.js +0 -32
- package/react/components/windowTitleBar/components/right/MinimizeButton.js.map +0 -1
- package/react/components/windowTitleBar/components/windowTitle.d.ts +0 -67
- package/react/components/windowTitleBar/components/windowTitle.d.ts.map +0 -1
- package/react/components/windowTitleBar/components/windowTitle.js +0 -382
- package/react/components/windowTitleBar/components/windowTitle.js.map +0 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +0 -69
- package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts.map +0 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js +0 -610
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +0 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts +0 -44
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.d.ts.map +0 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js +0 -43
- package/react/components/windowTitleBar/stores/windowTitleBarStoreDefaults.js.map +0 -1
- package/react/components/windowTitleBar/windowTitleBarContext.d.ts +0 -23
- package/react/components/windowTitleBar/windowTitleBarContext.d.ts.map +0 -1
- package/react/components/windowTitleBar/windowTitleBarContext.js +0 -22
- package/react/components/windowTitleBar/windowTitleBarContext.js.map +0 -1
- package/react/types/windowTitleBar.d.ts +0 -49
- package/react/types/windowTitleBar.d.ts.map +0 -1
- package/react/types/windowTitleBar.js +0 -2
- package/react/types/windowTitleBar.js.map +0 -1
- /package/react/components/windowTitleBar/{components/right/CloseButton.d.ts → CloseButton.d.ts} +0 -0
- /package/react/components/windowTitleBar/{components/left/LinkerButton.d.ts → LinkerButton.d.ts} +0 -0
- /package/react/components/windowTitleBar/{components/left/LinkerGroups.d.ts → LinkerGroups.d.ts} +0 -0
|
@@ -1,680 +0,0 @@
|
|
|
1
|
-
import { RouterClient } from "../../../../clients/routerClient";
|
|
2
|
-
import { Logger } from "../../../../clients/logger";
|
|
3
|
-
import * as util from "../../../../common/util";
|
|
4
|
-
import { BaseWindow } from "./BaseWindow";
|
|
5
|
-
import { WINDOWSTATE } from "../../../../common/constants";
|
|
6
|
-
import StackedWindowManager from "../StackedWindowManager/stackedWindowManager";
|
|
7
|
-
class StackedWindow extends BaseWindow {
|
|
8
|
-
constructor(params) {
|
|
9
|
-
super(params);
|
|
10
|
-
this.params = params;
|
|
11
|
-
this.windowState = WINDOWSTATE.NORMAL;
|
|
12
|
-
this._listeners = {};
|
|
13
|
-
this.bindAllFunctions();
|
|
14
|
-
this.addListeners();
|
|
15
|
-
}
|
|
16
|
-
removeListeners() {
|
|
17
|
-
Logger.system.debug("removeListeners not implemented");
|
|
18
|
-
}
|
|
19
|
-
_setResizable() {
|
|
20
|
-
Logger.system.error("_setResizable not implemented");
|
|
21
|
-
}
|
|
22
|
-
addListeners() {
|
|
23
|
-
this.addEventListener("minimized", () => {
|
|
24
|
-
// we set the new windowState based on whether the current windowState is maximized or normal.
|
|
25
|
-
// if it is not either of those things, that means it is already in a minimized state, so we don't do anything.
|
|
26
|
-
if (this.windowState === WINDOWSTATE.MAXIMIZED) {
|
|
27
|
-
this.windowState = WINDOWSTATE.MINIMIZED_WAS_MAXIMIZED;
|
|
28
|
-
this.windowOptions.windowState = WINDOWSTATE.MINIMIZED_WAS_MAXIMIZED;
|
|
29
|
-
}
|
|
30
|
-
else if (this.windowState === WINDOWSTATE.NORMAL) {
|
|
31
|
-
this.windowState = WINDOWSTATE.MINIMIZED_WAS_NORMAL;
|
|
32
|
-
this.windowOptions.windowState = WINDOWSTATE.MINIMIZED_WAS_NORMAL;
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
Logger.system.warn("Invalid window state received listening to window minimize", this.windowState);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
this.addEventListener("restored", () => {
|
|
39
|
-
this.windowState = WINDOWSTATE.NORMAL;
|
|
40
|
-
this.windowOptions.windowState = WINDOWSTATE.NORMAL;
|
|
41
|
-
});
|
|
42
|
-
this.addEventListener("maximized", () => {
|
|
43
|
-
this.windowState = WINDOWSTATE.MAXIMIZED;
|
|
44
|
-
this.windowOptions.windowState = WINDOWSTATE.MAXIMIZED;
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
_addEventListener(params, handler = Function.prototype) {
|
|
48
|
-
const { eventName } = params;
|
|
49
|
-
this.addEventListener(eventName, handler);
|
|
50
|
-
}
|
|
51
|
-
addEventListener(event, handler = Function.prototype) {
|
|
52
|
-
super.addEventListener(event, handler);
|
|
53
|
-
// ..need to add a listener on the child window...
|
|
54
|
-
}
|
|
55
|
-
_removeEventListener(params, handler = Function.prototype) {
|
|
56
|
-
const { eventName } = params;
|
|
57
|
-
this.removeEventListener(eventName, handler);
|
|
58
|
-
}
|
|
59
|
-
removeEventListener(event, handler = Function.prototype) {
|
|
60
|
-
super.removeEventListener(event, handler);
|
|
61
|
-
// ..need to add a listener on the child window...
|
|
62
|
-
}
|
|
63
|
-
eventChannelName(channelTopic) {
|
|
64
|
-
return `StackedWindow-${this.name}-${channelTopic}`;
|
|
65
|
-
}
|
|
66
|
-
bindAllFunctions() {
|
|
67
|
-
const self = this;
|
|
68
|
-
for (const name of Object.getOwnPropertyNames(Object.getPrototypeOf(self))) {
|
|
69
|
-
if (self[name] instanceof Function) {
|
|
70
|
-
self[name] = self[name].bind(self); // only bind function properties
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
// wrapper function to listen to bounds changing, but need a better/generalized solution
|
|
75
|
-
listenForBoundsChanging() {
|
|
76
|
-
const eventHandler = (err, message) => {
|
|
77
|
-
Logger.system.debug("StackedWindow incoming transmit", this.eventChannelName("bounds-change-request"), message.data);
|
|
78
|
-
// bounds changing will come in from the child window. We need to overwrite the name so that docking thinks it's the stack being moved, not the child.
|
|
79
|
-
message.data.name = this.name;
|
|
80
|
-
this.eventManager.trigger("bounds-change-request", message.data);
|
|
81
|
-
};
|
|
82
|
-
RouterClient.addListener(this.eventChannelName("bounds-change-request"), eventHandler);
|
|
83
|
-
}
|
|
84
|
-
// ////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
85
|
-
// Housekeeping function for private window methods
|
|
86
|
-
// ////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
87
|
-
/**
|
|
88
|
-
* Handles common housekeeping checks and modifications on params at the beginning of each private window function
|
|
89
|
-
*
|
|
90
|
-
* @param {string} methodName method name (e.g. "minimize", "maximize")
|
|
91
|
-
* @param {object} params
|
|
92
|
-
* @memberof StackedWindow
|
|
93
|
-
* @private
|
|
94
|
-
*/
|
|
95
|
-
_privatePreface(methodName, params) {
|
|
96
|
-
if (!params || typeof params === "function") {
|
|
97
|
-
// if function then assume callback was passed in with no params
|
|
98
|
-
params = {};
|
|
99
|
-
}
|
|
100
|
-
const fullParams = util.clone(params); // clone so params from calling function won't be modified (and cause other problems)
|
|
101
|
-
fullParams.stackedWindowIdentifier = {
|
|
102
|
-
windowName: this.identifier.windowName,
|
|
103
|
-
windowType: this.identifier.windowType,
|
|
104
|
-
}; // add this window's identifier
|
|
105
|
-
Logger.system.debug(`StackedWindow.${methodName} _privatePreface`, fullParams);
|
|
106
|
-
const eventBlackList = ["_saveWindowOptions", "_setBounds"];
|
|
107
|
-
if (eventBlackList.includes(methodName)) {
|
|
108
|
-
// if method in event blacklist, then set parameter to skip sending event
|
|
109
|
-
fullParams.doNotTransmitEvent = true;
|
|
110
|
-
}
|
|
111
|
-
return fullParams;
|
|
112
|
-
}
|
|
113
|
-
// ////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
114
|
-
// Private window functions, fulfilled through requests to "super" and Stacked Window Manager Module
|
|
115
|
-
// ////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
116
|
-
_minimize(params, callback = Function.prototype) {
|
|
117
|
-
const promiseResolver = (resolve) => {
|
|
118
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
119
|
-
params = this._privatePreface("_minimize", params);
|
|
120
|
-
super._minimize(params, (err, response) => {
|
|
121
|
-
if (!err && response.shouldContinue) {
|
|
122
|
-
StackedWindowManager.minimize(params, (minimizeErr, minimizeResponse) => {
|
|
123
|
-
callback(minimizeErr, minimizeResponse);
|
|
124
|
-
resolve({ minimizeErr, data: minimizeResponse });
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
callback(err, response);
|
|
129
|
-
resolve({ err, data: response });
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
return new Promise(promiseResolver);
|
|
134
|
-
}
|
|
135
|
-
_maximize(params, callback = Function.prototype) {
|
|
136
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
137
|
-
if (this.windowState === WINDOWSTATE.MAXIMIZED) {
|
|
138
|
-
callback();
|
|
139
|
-
return Promise.resolve();
|
|
140
|
-
}
|
|
141
|
-
const promiseResolver = (resolve) => {
|
|
142
|
-
params = this._privatePreface("_maximize", params);
|
|
143
|
-
StackedWindowManager.maximize({
|
|
144
|
-
stackedWindowIdentifier: Object.assign({}, this.identifier),
|
|
145
|
-
windowIdentifier: this.identifier,
|
|
146
|
-
invokedByParent: false,
|
|
147
|
-
}, (maximizeErr, maximizeResponse) => {
|
|
148
|
-
this.windowState = WINDOWSTATE.MAXIMIZED;
|
|
149
|
-
this.eventManager.trigger("maximized");
|
|
150
|
-
callback(maximizeErr, maximizeResponse);
|
|
151
|
-
resolve({ maximizeErr, data: maximizeResponse });
|
|
152
|
-
});
|
|
153
|
-
};
|
|
154
|
-
return new Promise(promiseResolver);
|
|
155
|
-
}
|
|
156
|
-
async _restore(params, cb) {
|
|
157
|
-
if (this.windowState === WINDOWSTATE.MINIMIZED_WAS_MAXIMIZED) {
|
|
158
|
-
await this._maximize(params);
|
|
159
|
-
cb === null || cb === void 0 ? void 0 : cb(null, { shouldContinue: true });
|
|
160
|
-
return { data: { shouldContinue: true } };
|
|
161
|
-
}
|
|
162
|
-
const promiseResolver = (resolve) => {
|
|
163
|
-
params = this._privatePreface("_restore", params);
|
|
164
|
-
StackedWindowManager.restore({
|
|
165
|
-
stackedWindowIdentifier: Object.assign({}, this.identifier),
|
|
166
|
-
windowIdentifier: this.identifier,
|
|
167
|
-
invokedByParent: false,
|
|
168
|
-
windowState: this.windowState,
|
|
169
|
-
checkMinimize: false,
|
|
170
|
-
}, (restoreErr, restoreResponse) => {
|
|
171
|
-
Logger.system.debug("StackedWindowManager.restore callback", restoreErr, restoreResponse);
|
|
172
|
-
this.windowState = WINDOWSTATE.NORMAL;
|
|
173
|
-
this.eventManager.trigger("restored");
|
|
174
|
-
cb === null || cb === void 0 ? void 0 : cb(restoreErr, restoreResponse);
|
|
175
|
-
resolve({ restoreErr, data: restoreResponse });
|
|
176
|
-
});
|
|
177
|
-
};
|
|
178
|
-
return new Promise(promiseResolver);
|
|
179
|
-
}
|
|
180
|
-
_focus(params, callback = Function.prototype) {
|
|
181
|
-
const promiseResolver = (resolve) => {
|
|
182
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
183
|
-
params = this._privatePreface("_focus", params);
|
|
184
|
-
super._focus(params, (err, response) => {
|
|
185
|
-
if (!err && response.shouldContinue) {
|
|
186
|
-
StackedWindowManager.focus(params, (focusErr, focusResponse) => {
|
|
187
|
-
Logger.system.debug("StackedWindowManager.focus callback", focusErr, focusResponse);
|
|
188
|
-
callback(focusErr, focusResponse);
|
|
189
|
-
resolve({ focusErr, data: focusResponse });
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
callback(err, response);
|
|
194
|
-
resolve({ err, data: response });
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
return new Promise(promiseResolver);
|
|
199
|
-
}
|
|
200
|
-
_bringToFront(params, callback = Function.prototype) {
|
|
201
|
-
const promiseResolver = (resolve) => {
|
|
202
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
203
|
-
params = this._privatePreface("_bringToFront", params);
|
|
204
|
-
super._bringToFront(params, (err, response) => {
|
|
205
|
-
if (!err && response.shouldContinue) {
|
|
206
|
-
StackedWindowManager.bringToFront(params, (bringToFrontErr, bringToFrontResponse) => {
|
|
207
|
-
Logger.system.debug("StackedWindowManager.bringToFront callback", bringToFrontErr, bringToFrontResponse);
|
|
208
|
-
callback(bringToFrontErr, bringToFrontResponse);
|
|
209
|
-
resolve({ bringToFrontErr, data: bringToFrontResponse });
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
callback(err, response);
|
|
214
|
-
resolve({ err, data: response });
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
};
|
|
218
|
-
return new Promise(promiseResolver);
|
|
219
|
-
}
|
|
220
|
-
_saveWindowOptions(params, callback = Function.prototype) {
|
|
221
|
-
const promiseResolver = (resolve) => {
|
|
222
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
223
|
-
params = this._privatePreface("_saveWindowOptions", params);
|
|
224
|
-
super._saveWindowOptions(params, (err, response) => {
|
|
225
|
-
if (!err && response.shouldContinue) {
|
|
226
|
-
StackedWindowManager.saveWindowOptions({ closing: false }, this, (saveWindowOptionsErr, saveWindowOptionsResponse) => {
|
|
227
|
-
Logger.system.debug("StackedWindowManager.saveWindowOptions callback", saveWindowOptionsErr, saveWindowOptionsResponse);
|
|
228
|
-
callback(saveWindowOptionsErr, saveWindowOptionsResponse);
|
|
229
|
-
resolve({
|
|
230
|
-
saveWindowOptionsErr,
|
|
231
|
-
data: saveWindowOptionsResponse,
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
callback(err, response);
|
|
237
|
-
resolve({ err, data: response });
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
return new Promise(promiseResolver);
|
|
242
|
-
}
|
|
243
|
-
_setBounds(params, callback = Function.prototype) {
|
|
244
|
-
const promiseResolver = (resolve) => {
|
|
245
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
246
|
-
params = this._privatePreface("_setBounds", params);
|
|
247
|
-
super._setBounds(params, (err, response) => {
|
|
248
|
-
if (!err && response.shouldContinue) {
|
|
249
|
-
StackedWindowManager.setBounds(params, (setBoundsErr, setBoundsResponse) => {
|
|
250
|
-
Logger.system.debug("StackedWindowManager.setBounds callback", setBoundsErr, setBoundsResponse);
|
|
251
|
-
callback(setBoundsErr, setBoundsResponse);
|
|
252
|
-
resolve({ setBoundsErr, data: setBoundsResponse });
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
callback(err, response);
|
|
257
|
-
resolve({ err, data: response });
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
};
|
|
261
|
-
return new Promise(promiseResolver);
|
|
262
|
-
}
|
|
263
|
-
_getBoundsFromSystem(params, callback = Function.prototype) {
|
|
264
|
-
const promiseResolver = (resolve) => {
|
|
265
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
266
|
-
params = this._privatePreface("_getBoundsFromSystem", params);
|
|
267
|
-
super._getBoundsFromSystem(params, (err, response) => {
|
|
268
|
-
if (!err && response.shouldContinue) {
|
|
269
|
-
StackedWindowManager.getBoundsFromSystem(params, (innerErr, innerResponse) => {
|
|
270
|
-
Logger.system.debug("StackedWindowManager.getBoundsFromSystem callback", innerErr, innerResponse);
|
|
271
|
-
callback(innerErr, innerResponse);
|
|
272
|
-
resolve({ innerErr, data: innerResponse });
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
callback(err, response);
|
|
277
|
-
resolve({ err, data: response });
|
|
278
|
-
}
|
|
279
|
-
});
|
|
280
|
-
};
|
|
281
|
-
return new Promise(promiseResolver);
|
|
282
|
-
}
|
|
283
|
-
_getBounds(params, cb) {
|
|
284
|
-
const promiseResolver = (resolve) => {
|
|
285
|
-
cb = typeof params === "function" ? params : cb; // if callback is the only argument
|
|
286
|
-
params = this._privatePreface("_getBounds", params);
|
|
287
|
-
super._getBounds(params, (err, response) => {
|
|
288
|
-
if (!err && response.shouldContinue) {
|
|
289
|
-
StackedWindowManager.getBounds(params, (setBoundsErr, setBoundsResponse) => {
|
|
290
|
-
Logger.system.debug("StackedWindowManager.getBounds callback", setBoundsErr, setBoundsResponse);
|
|
291
|
-
cb === null || cb === void 0 ? void 0 : cb(setBoundsErr, setBoundsResponse);
|
|
292
|
-
resolve({ setBoundsErr, data: setBoundsResponse });
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
else {
|
|
296
|
-
cb === null || cb === void 0 ? void 0 : cb(err, response);
|
|
297
|
-
resolve({ err, data: response });
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
};
|
|
301
|
-
return new Promise(promiseResolver);
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Is Window Visible?
|
|
305
|
-
* @param {*} params Currently unused
|
|
306
|
-
* @param {*} callback returns true in response if showing, false otherwise
|
|
307
|
-
*/
|
|
308
|
-
_isShowing(params, callback = Function.prototype) {
|
|
309
|
-
const promiseResolver = (resolve) => {
|
|
310
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
311
|
-
params = this._privatePreface("_isShowing", params);
|
|
312
|
-
super._isShowing(params, (err, response) => {
|
|
313
|
-
if (!err && response.shouldContinue) {
|
|
314
|
-
StackedWindowManager.isStackShowing(params, (isShowingErr, isShowingResponse) => {
|
|
315
|
-
Logger.system.debug("StackedWindowManager.getBounds callback", isShowingErr, isShowingResponse);
|
|
316
|
-
callback(isShowingErr, isShowingResponse);
|
|
317
|
-
resolve({ isShowingErr, data: isShowingResponse });
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
else {
|
|
321
|
-
callback(err, response);
|
|
322
|
-
resolve({ err, data: response });
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
};
|
|
326
|
-
return new Promise(promiseResolver);
|
|
327
|
-
}
|
|
328
|
-
_updateOptions(params, callback = Function.prototype) {
|
|
329
|
-
const promiseResolver = (resolve) => {
|
|
330
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
331
|
-
params = this._privatePreface("_updateOptions", params);
|
|
332
|
-
super._updateOptions(params, (err, response) => {
|
|
333
|
-
if (!err && response.shouldContinue) {
|
|
334
|
-
StackedWindowManager.updateOptions(params, (updateOptionsErr, updateOptionsResponse) => {
|
|
335
|
-
Logger.system.debug("StackedWindowManager.updateOptions callback", updateOptionsErr, updateOptionsResponse);
|
|
336
|
-
callback(updateOptionsErr, updateOptionsResponse);
|
|
337
|
-
resolve({ updateOptionsErr, data: updateOptionsResponse });
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
else {
|
|
341
|
-
callback(err, response);
|
|
342
|
-
resolve({ err, data: response });
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
};
|
|
346
|
-
return new Promise(promiseResolver);
|
|
347
|
-
}
|
|
348
|
-
_hide(params, callback = Function.prototype) {
|
|
349
|
-
const promiseResolver = (resolve) => {
|
|
350
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
351
|
-
params = this._privatePreface("_hide", params);
|
|
352
|
-
super._hide(params, (err, response) => {
|
|
353
|
-
if (!err && response.shouldContinue) {
|
|
354
|
-
StackedWindowManager.hide(params, (hideErr, hideResponse) => {
|
|
355
|
-
Logger.system.debug("StackedWindowManager.hide callback", hideErr, hideResponse);
|
|
356
|
-
callback(hideErr, hideResponse);
|
|
357
|
-
resolve({ hideErr, data: hideResponse });
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
else {
|
|
361
|
-
callback(err, response);
|
|
362
|
-
resolve({ err, data: response });
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
};
|
|
366
|
-
return new Promise(promiseResolver);
|
|
367
|
-
}
|
|
368
|
-
async _show(params, cb) {
|
|
369
|
-
const fullParams = this._privatePreface("_show", params);
|
|
370
|
-
const { err, data } = await super._show(fullParams);
|
|
371
|
-
if (!err && (data === null || data === void 0 ? void 0 : data.shouldContinue)) {
|
|
372
|
-
const { err: showErr, data: showResponse } = await StackedWindowManager.show(fullParams);
|
|
373
|
-
Logger.system.debug("StackedWindowManager.show callback", showErr, showResponse);
|
|
374
|
-
cb === null || cb === void 0 ? void 0 : cb(showErr, showResponse);
|
|
375
|
-
return { err: showErr, data: showResponse };
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
cb === null || cb === void 0 ? void 0 : cb(err, data);
|
|
379
|
-
return { err, data };
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
_showAt(params, callback = Function.prototype) {
|
|
383
|
-
const promiseResolver = (resolve) => {
|
|
384
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
385
|
-
params = this._privatePreface("_showAt", params);
|
|
386
|
-
super._showAt(params, (err, response) => {
|
|
387
|
-
callback(err, response);
|
|
388
|
-
resolve({ err, data: response });
|
|
389
|
-
});
|
|
390
|
-
};
|
|
391
|
-
return new Promise(promiseResolver);
|
|
392
|
-
}
|
|
393
|
-
_close(params = {}, cb) {
|
|
394
|
-
return new Promise((resolve) => {
|
|
395
|
-
cb = typeof params === "function" ? params : cb; // if callback is the only argument
|
|
396
|
-
params = this._privatePreface("_close", params);
|
|
397
|
-
super._close(params, (err, response) => {
|
|
398
|
-
if (!err && (response === null || response === void 0 ? void 0 : response.shouldContinue)) {
|
|
399
|
-
StackedWindowManager.close(params, (closeErr, closeResponse = {}) => {
|
|
400
|
-
Logger.system.debug("StackedWindowManager.close callback", closeErr, closeResponse);
|
|
401
|
-
cb === null || cb === void 0 ? void 0 : cb(closeErr, {
|
|
402
|
-
shouldContinue: closeResponse.shouldContinue || false,
|
|
403
|
-
});
|
|
404
|
-
resolve({
|
|
405
|
-
err: closeErr,
|
|
406
|
-
data: { shouldContinue: closeResponse.shouldContinue || false },
|
|
407
|
-
});
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
else {
|
|
411
|
-
cb === null || cb === void 0 ? void 0 : cb(err, { shouldContinue: false });
|
|
412
|
-
resolve({ err, data: { shouldContinue: false } });
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
_alwaysOnTop(params, callback = Function.prototype) {
|
|
418
|
-
const promiseResolver = (resolve) => {
|
|
419
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
420
|
-
params = this._privatePreface("_alwaysOnTop", params);
|
|
421
|
-
super._alwaysOnTop(params, (err, response) => {
|
|
422
|
-
if (!err && response.shouldContinue) {
|
|
423
|
-
StackedWindowManager.setAlwaysOnTop(params, (alwaysOnTopErr, alwaysOnTopResponse) => {
|
|
424
|
-
Logger.system.debug("StackedWindowManager.alwaysOnTop callback", alwaysOnTopErr, alwaysOnTopResponse);
|
|
425
|
-
callback(alwaysOnTopErr, alwaysOnTopResponse);
|
|
426
|
-
resolve({ alwaysOnTopErr, data: alwaysOnTopResponse });
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
430
|
-
callback(err, response);
|
|
431
|
-
resolve({ err, data: response });
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
};
|
|
435
|
-
return new Promise(promiseResolver);
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
*
|
|
439
|
-
* Returns true if the window is always on top. False otherwise.
|
|
440
|
-
*
|
|
441
|
-
* Disable eslint below because params is undefined, but we don't want to refactor the other calls to expect the 1st param to equal the callback.
|
|
442
|
-
*/
|
|
443
|
-
_isAlwaysOnTop(params = {}, callback = Function.prototype) {
|
|
444
|
-
// eslint-disable-line
|
|
445
|
-
this.alwaysOnTop = Boolean(this.alwaysOnTop);
|
|
446
|
-
callback(null, this.alwaysOnTop);
|
|
447
|
-
return this.alwaysOnTop;
|
|
448
|
-
}
|
|
449
|
-
_setOpacity(params, callback = Function.prototype) {
|
|
450
|
-
const promiseResolver = (resolve) => {
|
|
451
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
452
|
-
params = this._privatePreface("_setOpacity", params);
|
|
453
|
-
super._setOpacity(params, (err, response) => {
|
|
454
|
-
if (!err && response.shouldContinue) {
|
|
455
|
-
StackedWindowManager.setOpacity(params, (setOpacityErr, setOpacityResponse) => {
|
|
456
|
-
Logger.system.debug("StackedWindowManager.setOpacity callback", setOpacityErr, setOpacityResponse);
|
|
457
|
-
callback(setOpacityErr, setOpacityResponse);
|
|
458
|
-
resolve({ setOpacityErr, data: setOpacityResponse });
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
else {
|
|
462
|
-
callback(err, response);
|
|
463
|
-
resolve({ err, data: response });
|
|
464
|
-
}
|
|
465
|
-
});
|
|
466
|
-
};
|
|
467
|
-
return new Promise(promiseResolver);
|
|
468
|
-
}
|
|
469
|
-
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
470
|
-
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
471
|
-
// CLEANUP NOTE:
|
|
472
|
-
//
|
|
473
|
-
// WHEN NEW TABBING INTERFACE IS PROVIDED TO PRESENTATION COMPONENTS, THEN ALL THE BELOW FUNCTIONS WILL BE REMOVED - THEY BECOME INTERNAL TO WINDOW SERVICE
|
|
474
|
-
//
|
|
475
|
-
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
476
|
-
// ////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
477
|
-
// Housekeeping function for window management methods
|
|
478
|
-
// ////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
479
|
-
/**
|
|
480
|
-
* Handles common housekeeping checks and modifications on params at the beginning of each private window-management function
|
|
481
|
-
*
|
|
482
|
-
* @param {string} methodName method name (e.g. "minimize", "maximize")
|
|
483
|
-
* @param {object} params
|
|
484
|
-
* @memberof StackedWindow
|
|
485
|
-
* @private
|
|
486
|
-
*/
|
|
487
|
-
_privateManagementPreface(methodName, params) {
|
|
488
|
-
if (typeof params === "function") {
|
|
489
|
-
Logger.system.error("StackedWindowWrapper.wrapPreface bad params", params);
|
|
490
|
-
}
|
|
491
|
-
params = params || {};
|
|
492
|
-
params.stackedWindowIdentifier = {
|
|
493
|
-
windowName: this.identifier.windowName,
|
|
494
|
-
windowType: this.identifier.windowType,
|
|
495
|
-
}; // add this window's identifier
|
|
496
|
-
Logger.system.debug(`StackedWindow.${methodName} _privateManagementPreface`, params);
|
|
497
|
-
return params;
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* Temporary function until more cleanup done. Handles common housekeeping checks and modifications on params at the beginning of each private window-management function
|
|
501
|
-
*
|
|
502
|
-
* @param {string} methodName method name (e.g. "minimize", "maximize")
|
|
503
|
-
* @param {object} params
|
|
504
|
-
* @memberof StackedWindow
|
|
505
|
-
* @private
|
|
506
|
-
*/
|
|
507
|
-
_newPrivateManagementPreface(methodName, params) {
|
|
508
|
-
if (typeof params === "function") {
|
|
509
|
-
Logger.system.error("StackedWindowWrapper.wrapPreface bad params", params);
|
|
510
|
-
}
|
|
511
|
-
params = params || {};
|
|
512
|
-
params.stackedWindowIdentifier = {
|
|
513
|
-
windowName: this.identifier.windowName,
|
|
514
|
-
windowType: this.identifier.windowType,
|
|
515
|
-
}; // add this window's identifier
|
|
516
|
-
Logger.system.debug(`StackedWindow.${methodName} _newPrivateManagementPreface`, params);
|
|
517
|
-
return params;
|
|
518
|
-
}
|
|
519
|
-
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
520
|
-
// Below are the stackedWindow management functions (again fulfilled through requests to the Stacked Window Manager
|
|
521
|
-
// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
522
|
-
// temporarily need to support both private and public management function -- later only window service will invoke (i.e. no public interfaces)
|
|
523
|
-
_removeWindow(params, callback = Function.prototype) {
|
|
524
|
-
const promiseResolver = (resolve) => {
|
|
525
|
-
callback = typeof params === "function" ? params : callback; // if callback is the only argument
|
|
526
|
-
params = this._newPrivateManagementPreface("_removeWindow", params);
|
|
527
|
-
StackedWindowManager.removeWindow(params, (err, response) => {
|
|
528
|
-
Logger.system.debug("StackedWindowManager.removeWindow callback", err, response);
|
|
529
|
-
callback(err, response);
|
|
530
|
-
resolve({ err, data: response });
|
|
531
|
-
});
|
|
532
|
-
};
|
|
533
|
-
return new Promise(promiseResolver);
|
|
534
|
-
}
|
|
535
|
-
/**
|
|
536
|
-
* Adds window as a child to a stacked window. Adds to the top of the stack, or if specified to a specific location in the stack;
|
|
537
|
-
*
|
|
538
|
-
* @param {object=} params
|
|
539
|
-
* @param {object} params.stackedWindowIdentifier stacked window to operate on stacked window to operate on
|
|
540
|
-
* @param {object} params.windowIdentifier window to add
|
|
541
|
-
* @param {number=} params.position the location in the stack to push the window. Location 0 is the bottom of the stack. Defaults to the top of stack.
|
|
542
|
-
* @param {boolean=} params.noSave if true then don't save the store after updating it (will be saved by caller)
|
|
543
|
-
* @param {function=} callback function(err)
|
|
544
|
-
* @memberof StackedWindow
|
|
545
|
-
*/
|
|
546
|
-
addWindow(params, callback = Function.prototype) {
|
|
547
|
-
params = this._privateManagementPreface("addWindow", params);
|
|
548
|
-
const promiseResolver = (resolve) => {
|
|
549
|
-
RouterClient.query("StackedWindow.addWindow", params, (err, queryResponseMessage) => {
|
|
550
|
-
Logger.system.debug("StackedWindow.addWindow callback", err, queryResponseMessage);
|
|
551
|
-
callback(err, queryResponseMessage.data);
|
|
552
|
-
resolve({ err, data: queryResponseMessage.data });
|
|
553
|
-
});
|
|
554
|
-
};
|
|
555
|
-
return new Promise(promiseResolver);
|
|
556
|
-
}
|
|
557
|
-
/**
|
|
558
|
-
* Removes a child window from a stacked window. If removed window was visible, then the bottom child window (position 0) in stack will be made visible.
|
|
559
|
-
*
|
|
560
|
-
* @param {object} params
|
|
561
|
-
. * @param {object} params.stackedWindowIdentifier stacked window to operate on
|
|
562
|
-
* @param {object} params.windowIdentifier window to remove
|
|
563
|
-
* @param {boolean=} params.noDocking if true then do not register removed window with docking (the workspace is unaffected)
|
|
564
|
-
* @param {function=} callback function(err)
|
|
565
|
-
* @memberof StackedWindow
|
|
566
|
-
*/
|
|
567
|
-
removeWindow(params, callback = Function.prototype) {
|
|
568
|
-
params = this._privateManagementPreface("removeWindow", params);
|
|
569
|
-
const promiseResolver = (resolve) => {
|
|
570
|
-
RouterClient.query("StackedWindow.removeWindow", params, (err, queryResponseMessage) => {
|
|
571
|
-
Logger.system.debug("StackedWindow.removeWindow callback", err, queryResponseMessage);
|
|
572
|
-
callback(err, queryResponseMessage.data);
|
|
573
|
-
resolve({ err, data: queryResponseMessage.data });
|
|
574
|
-
});
|
|
575
|
-
};
|
|
576
|
-
return new Promise(promiseResolver);
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* Removes a window from the stack then closes it. If removed window was visible, then the bottom child window (position 0) in stack will be made visible.
|
|
580
|
-
*
|
|
581
|
-
* @param {object} params
|
|
582
|
-
. * @param {object} params.stackedWindowIdentifier stacked window to operate on
|
|
583
|
-
* @param {object} params.windowIdentifier window to delete
|
|
584
|
-
* @param {function=} callback function(err)
|
|
585
|
-
* @memberof StackedWindow
|
|
586
|
-
*/
|
|
587
|
-
deleteWindow(params, callback = Function.prototype) {
|
|
588
|
-
params = this._privateManagementPreface("deleteWindow", params);
|
|
589
|
-
const promiseResolver = (resolve) => {
|
|
590
|
-
RouterClient.query("StackedWindow.deleteWindow", params, (err, queryResponseMessage) => {
|
|
591
|
-
Logger.system.debug("StackedWindow.deleteWindow callback", err, queryResponseMessage);
|
|
592
|
-
callback(err, queryResponseMessage.data);
|
|
593
|
-
resolve({ err, data: queryResponseMessage.data });
|
|
594
|
-
});
|
|
595
|
-
};
|
|
596
|
-
return new Promise(promiseResolver);
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* Sets the visible window within the stack. The previously visible window in stack will be automatically hidden.
|
|
600
|
-
*
|
|
601
|
-
* @param {object} params
|
|
602
|
-
. * @param {object} params.stackedWindowIdentifier stacked window to operate on
|
|
603
|
-
* @param {object} params.windowIdentifier
|
|
604
|
-
* @param {function=} callback function(err)
|
|
605
|
-
* @memberof StackedWindow
|
|
606
|
-
*/
|
|
607
|
-
setVisibleWindow(params, callback = Function.prototype) {
|
|
608
|
-
params = this._privateManagementPreface("setVisibleWindow", params);
|
|
609
|
-
const promiseResolver = (resolve) => {
|
|
610
|
-
RouterClient.query("StackedWindow.setVisibleWindow", params, (err, queryResponseMessage) => {
|
|
611
|
-
Logger.system.debug("StackedWindow.setVisibleWindow callback", err, queryResponseMessage);
|
|
612
|
-
callback(err, queryResponseMessage.data);
|
|
613
|
-
resolve({ err, data: queryResponseMessage.data });
|
|
614
|
-
});
|
|
615
|
-
};
|
|
616
|
-
return new Promise(promiseResolver);
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* Reorders the stack, but odes not affect visibility
|
|
620
|
-
*
|
|
621
|
-
* @param {object} params
|
|
622
|
-
. * @param {object} params.stackedWindowIdentifier stacked window to operate on
|
|
623
|
-
* @param {array} params.windowIdentifiers array of windowIdentifiers which provides the new order
|
|
624
|
-
* @param {function=} callback function(err)
|
|
625
|
-
* @memberof StackedWindow
|
|
626
|
-
*/
|
|
627
|
-
reorder(params, callback = Function.prototype) {
|
|
628
|
-
params = this._privateManagementPreface("reorder", params);
|
|
629
|
-
const promiseResolver = (resolve) => {
|
|
630
|
-
RouterClient.query("StackedWindow.reorder", params, (err, queryResponseMessage) => {
|
|
631
|
-
Logger.system.debug("StackedWindow.reorder callback", err, queryResponseMessage);
|
|
632
|
-
callback(err, queryResponseMessage.data);
|
|
633
|
-
resolve({ err, data: queryResponseMessage.data });
|
|
634
|
-
});
|
|
635
|
-
};
|
|
636
|
-
return new Promise(promiseResolver);
|
|
637
|
-
}
|
|
638
|
-
/**
|
|
639
|
-
* Reorders the stack, but odes not affect visibility
|
|
640
|
-
*
|
|
641
|
-
* @param {object} params
|
|
642
|
-
. * @param {object} params.stackedWindowIdentifier stacked window to operate on
|
|
643
|
-
* @param {array} params.windowIdentifiers array of windowIdentifiers which provides the new order
|
|
644
|
-
* @param {function=} callback function(err)
|
|
645
|
-
* @memberof StackedWindow
|
|
646
|
-
*/
|
|
647
|
-
stopMove(params = {}, callback = Function.prototype) {
|
|
648
|
-
params = this._privateManagementPreface("stopMove", params);
|
|
649
|
-
const promiseResolver = (resolve) => {
|
|
650
|
-
RouterClient.query("StackedWindow.stopMove", params, (err, queryResponseMessage) => {
|
|
651
|
-
Logger.system.debug("StackedWindow.stopMove callback", err, queryResponseMessage);
|
|
652
|
-
callback(err, queryResponseMessage.data);
|
|
653
|
-
resolve({ err, data: queryResponseMessage.data });
|
|
654
|
-
});
|
|
655
|
-
};
|
|
656
|
-
return new Promise(promiseResolver);
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* Reorders the stack, but odes not affect visibility
|
|
660
|
-
*
|
|
661
|
-
* @param {object} params
|
|
662
|
-
. * @param {object} params.stackedWindowIdentifier stacked window to operate on
|
|
663
|
-
* @param {array} params.windowIdentifiers array of windowIdentifiers which provides the new order
|
|
664
|
-
* @param {function=} callback function(err)
|
|
665
|
-
* @memberof StackedWindow
|
|
666
|
-
*/
|
|
667
|
-
startMove(params = {}, callback = Function.prototype) {
|
|
668
|
-
params = this._privateManagementPreface("startMove", params);
|
|
669
|
-
const promiseResolver = (resolve) => {
|
|
670
|
-
RouterClient.query("StackedWindow.startMove", params, (err, queryResponseMessage) => {
|
|
671
|
-
Logger.system.debug("StackedWindow.startMove callback", err, queryResponseMessage);
|
|
672
|
-
callback(err, queryResponseMessage.data);
|
|
673
|
-
resolve({ err, data: queryResponseMessage.data });
|
|
674
|
-
});
|
|
675
|
-
};
|
|
676
|
-
return new Promise(promiseResolver);
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
export default StackedWindow;
|
|
680
|
-
//# sourceMappingURL=stackedWindowWrapper.js.map
|