@finsemble/finsemble-ui 8.3.0 → 8.4.0-beta.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 +54 -24
- package/FEA.d.ts.map +1 -1
- package/FEA.js.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.js +2 -2
- package/clients/Interop/FinsembleDesktopAgent.js.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 +77 -116
- package/clients/Startup/windowStartup.js.map +1 -1
- package/clients/StoreModel.d.ts +8 -8
- package/clients/StoreModel.js +8 -8
- package/clients/appsClient.d.ts +90 -0
- package/clients/appsClient.d.ts.map +1 -0
- package/clients/appsClient.js +51 -0
- package/clients/appsClient.js.map +1 -0
- package/clients/authenticationClient.d.ts +29 -27
- package/clients/authenticationClient.d.ts.map +1 -1
- package/clients/authenticationClient.js +11 -15
- package/clients/authenticationClient.js.map +1 -1
- package/clients/configClient.d.ts +134 -70
- package/clients/configClient.d.ts.map +1 -1
- package/clients/configClient.js +129 -112
- 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 +1 -75
- package/clients/dialogManagerClient.d.ts.map +1 -1
- package/clients/dialogManagerClient.js +1 -208
- package/clients/dialogManagerClient.js.map +1 -1
- package/clients/distributedStoreClient.d.ts +1 -0
- package/clients/distributedStoreClient.d.ts.map +1 -1
- package/clients/distributedStoreClient.js +1 -0
- package/clients/distributedStoreClient.js.map +1 -1
- package/clients/hotkeyClient.d.ts +18 -9
- package/clients/hotkeyClient.d.ts.map +1 -1
- package/clients/hotkeyClient.js +30 -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 +157 -47
- package/clients/launcherClient.d.ts.map +1 -1
- package/clients/launcherClient.js +201 -22
- package/clients/launcherClient.js.map +1 -1
- package/clients/logger.d.ts.map +1 -1
- package/clients/logger.js +43 -41
- package/clients/logger.js.map +1 -1
- package/clients/notificationClient.d.ts +2 -2
- package/clients/notificationClient.d.ts.map +1 -1
- package/clients/notificationClient.js +2 -2
- package/clients/notificationClient.js.map +1 -1
- package/clients/routerClient.d.ts +25 -21
- package/clients/routerClient.d.ts.map +1 -1
- package/clients/routerClient.js +24 -20
- package/clients/routerClient.js.map +1 -1
- package/clients/searchClient.d.ts +2 -2
- package/clients/searchClient.js +2 -2
- package/clients/storageClient.d.ts +8 -5
- package/clients/storageClient.d.ts.map +1 -1
- package/clients/storageClient.js +7 -5
- package/clients/storageClient.js.map +1 -1
- package/clients/windowClient.d.ts +160 -79
- package/clients/windowClient.d.ts.map +1 -1
- package/clients/windowClient.js +244 -138
- package/clients/windowClient.js.map +1 -1
- package/clients/workspaceClient.d.ts +19 -14
- package/clients/workspaceClient.d.ts.map +1 -1
- package/clients/workspaceClient.js +15 -9
- package/clients/workspaceClient.js.map +1 -1
- package/common/Desktop.d.ts +9 -50
- package/common/Desktop.d.ts.map +1 -1
- package/common/Desktop.js +11 -64
- package/common/Desktop.js.map +1 -1
- package/common/FinsembleWindow.d.ts +4 -107
- package/common/FinsembleWindow.d.ts.map +1 -1
- package/common/FinsembleWindow.js +21 -342
- 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 +1 -2
- package/deprecated/deprecatedFunctions.js.map +1 -1
- package/deprecated/dragAndDropClient.d.ts +3 -3
- package/deprecated/dragAndDropClient.d.ts.map +1 -1
- 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 -190
- package/main.d.ts.map +1 -1
- package/main.js +3 -1
- package/main.js.map +1 -1
- package/package.json +3 -3
- package/platform/services/Interop/types.d.ts +2 -1
- package/platform/services/Interop/types.d.ts.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 +1 -0
- package/platform/services/systemManager/_constants.js.map +1 -1
- package/platform/services/window/modules/actions.d.ts +59 -0
- package/platform/services/window/modules/actions.d.ts.map +1 -0
- package/platform/services/window/modules/actions.js +57 -0
- package/platform/services/window/modules/actions.js.map +1 -0
- package/platform/services/window/types.d.ts +257 -50
- 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/assets/css/core/icons.css +0 -5
- package/react/assets/css/processMonitor.css +9 -4
- package/react/assets/css/windowTitleBar.css +98 -285
- package/react/assets/icons/chevron-down.svg +1 -0
- package/react/assets/icons/chevron-up.svg +1 -0
- 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/ContextMenu.d.ts.map +1 -1
- package/react/components/common/ContextMenu.js +2 -10
- 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/css/accordion.css +9 -21
- package/react/components/common/css/application-edit-page.css +0 -4
- 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/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/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/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/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 +81 -100
- package/react/components/singleInputDialog/SingleInputDialog.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/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/{components/right/CloseButton.d.ts → CloseButton.d.ts} +0 -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/{components/left/LinkerButton.d.ts → LinkerButton.d.ts} +0 -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/{components/left/LinkerGroups.d.ts → LinkerGroups.d.ts} +0 -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 +453 -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 +365 -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/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
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The useInjectedTitleBar hook is responsible for DOM manipulation of web content in windows where the Finsemble
|
|
3
|
+
* WindowTitleBar has been injected (as opposed to living in an encapsulating parent TitleBarWindow). This hook
|
|
4
|
+
* executes only once, to adjust any fixed content downward to make room for the title bar. It also enables a
|
|
5
|
+
* mutation observer that monitors the entire document.body for newly added nodes with "fixed" position, adjusting
|
|
6
|
+
* their vertical position accordingly when they are discovered.
|
|
7
|
+
*/
|
|
8
|
+
import { useEffect, useState } from "react";
|
|
9
|
+
import { FEAGlobals } from "../../common/Globals";
|
|
10
|
+
// Values for possible zero
|
|
11
|
+
const possibleZeros = ["0", "0px", 0];
|
|
12
|
+
/**
|
|
13
|
+
* Used in bumpFixedElements and bumpAbsoluteElements
|
|
14
|
+
* Calculates value to bump element by. If 'all' return top style plus the header height, if '0Positioned' return just header height
|
|
15
|
+
* @param type Whether all elements are being bumped by the header height and their top style or just header height
|
|
16
|
+
* @param topStyle Element top value
|
|
17
|
+
* @param bumpBy Value to bump element by
|
|
18
|
+
* @returns Top style for element
|
|
19
|
+
*/
|
|
20
|
+
const calculateBumpValue = (type, topStyle, bumpBy) => {
|
|
21
|
+
let topVal = topStyle;
|
|
22
|
+
if (type == "all") {
|
|
23
|
+
topVal = `calc(${topStyle} + ${bumpBy})`;
|
|
24
|
+
}
|
|
25
|
+
else if (type == "0Positioned" && possibleZeros.includes(topStyle)) {
|
|
26
|
+
topVal = bumpBy;
|
|
27
|
+
}
|
|
28
|
+
return topVal;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Used in bumpAbsoluteElements
|
|
32
|
+
*
|
|
33
|
+
* Recursively traverse through the HTML document and return an array of the top level elements
|
|
34
|
+
* and elements with static parents
|
|
35
|
+
* @param {object} element The HTML element
|
|
36
|
+
* @param {array} acc accumulator
|
|
37
|
+
* @returns {array} array top level elements and elements with static parents
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
const traverseHtml = (element, acc = []) => {
|
|
41
|
+
const elements = element.children;
|
|
42
|
+
const len = elements.length;
|
|
43
|
+
if (!len) {
|
|
44
|
+
acc.push(element);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
for (let i = 0; i < len; i++) {
|
|
48
|
+
const style = window.getComputedStyle(elements[i], null);
|
|
49
|
+
if (style.getPropertyValue("position") == "static") {
|
|
50
|
+
acc = traverseHtml(elements[i], acc);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
acc.push(elements[i]);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return acc;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Called from bumpElements
|
|
61
|
+
*
|
|
62
|
+
* Bumps all elements with fixed positioning, that are not in the header, down by the configured amount.
|
|
63
|
+
* @private
|
|
64
|
+
* @param {object} params bumpElements object
|
|
65
|
+
*/
|
|
66
|
+
const bumpFixedElements = (params) => {
|
|
67
|
+
var _a, _b;
|
|
68
|
+
let { fixed, bumpBy } = params;
|
|
69
|
+
const getFixedElements = (selector) => {
|
|
70
|
+
const fixedElements = [];
|
|
71
|
+
const nodes = document.body.querySelectorAll(selector);
|
|
72
|
+
nodes.forEach((node) => {
|
|
73
|
+
const style = window.getComputedStyle(node, null);
|
|
74
|
+
if (style.getPropertyValue("position") == "fixed")
|
|
75
|
+
fixedElements.push(node);
|
|
76
|
+
});
|
|
77
|
+
return fixedElements;
|
|
78
|
+
};
|
|
79
|
+
const selector = "*:not(#FSBLHeader, .fsbl-header)";
|
|
80
|
+
// Get all fixed positioned elements
|
|
81
|
+
const elements = getFixedElements(selector);
|
|
82
|
+
const len = elements.length;
|
|
83
|
+
for (let i = 0; i < len; i++) {
|
|
84
|
+
const style = window.getComputedStyle(elements[i], null);
|
|
85
|
+
const topStyle = style.getPropertyValue("top");
|
|
86
|
+
if (!((_b = (_a = elements[i]) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains("bumped-element"))) {
|
|
87
|
+
elements[i].style.top = calculateBumpValue(fixed, topStyle, bumpBy);
|
|
88
|
+
elements[i].classList.add("bumped-element");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Called from bumpElements
|
|
94
|
+
*
|
|
95
|
+
* Bumps all absolute positioned elements with static parents, that are not in the header, down by the configured amount.
|
|
96
|
+
* @private
|
|
97
|
+
* @param {object} params bumpElements object
|
|
98
|
+
*/
|
|
99
|
+
const bumpAbsoluteElements = (params) => {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
let { absolute, bumpBy } = params;
|
|
102
|
+
const selector = "*:not(#FSBLHeader, .fsbl-header)";
|
|
103
|
+
// Get top level absolute positioned elements and elements who have static parents
|
|
104
|
+
const elements = traverseHtml({ children: document.body.querySelectorAll(`:scope > ${selector}`) });
|
|
105
|
+
const len = elements.length;
|
|
106
|
+
for (let i = 0; i < len; i++) {
|
|
107
|
+
const style = window.getComputedStyle(elements[i], null);
|
|
108
|
+
const topStyle = style.getPropertyValue("top");
|
|
109
|
+
// Target absolute positioned elements
|
|
110
|
+
if (style.getPropertyValue("position") == "absolute" && !((_b = (_a = elements[i]) === null || _a === void 0 ? void 0 : _a.classList) === null || _b === void 0 ? void 0 : _b.contains("bumped-element"))) {
|
|
111
|
+
elements[i].style.top = calculateBumpValue(absolute, topStyle, bumpBy);
|
|
112
|
+
elements[i].classList.add("bumped-element");
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Toggle setting found in `foreign.components.["Window Manager"].FSBLHeader.bumpElements.[bumpBy|fixed|absolute]`
|
|
118
|
+
* Called from beginAdjustment()
|
|
119
|
+
*
|
|
120
|
+
* Calls bumpFixedElements and bumpAbsoluteElements to bump fixed and/or absolute elements by the value of bumpBy if configured to do so.
|
|
121
|
+
* Since absolute and fixed positioned elements are removed from the document flow their positions will not be adjusted when the titlebar
|
|
122
|
+
* is injected and they have a set top style. However, if the element is an absolute positioned element and it's
|
|
123
|
+
* parent container has a position that is not set to static, then it'll adjust relative to the parent. Fixed positioned elements, on the other hand,
|
|
124
|
+
* won't adjust unless their top styles are changed.
|
|
125
|
+
*/
|
|
126
|
+
const bumpElements = (config) => {
|
|
127
|
+
if (!config)
|
|
128
|
+
return;
|
|
129
|
+
if (config.bumpBy !== "0px") {
|
|
130
|
+
if (config.fixed)
|
|
131
|
+
bumpFixedElements(config);
|
|
132
|
+
if (config.absolute)
|
|
133
|
+
bumpAbsoluteElements(config);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* This is used in adjustTopLevelHeight() and adjustContentHeight()
|
|
138
|
+
*
|
|
139
|
+
* Set the max height of each element to be the height of the parent container
|
|
140
|
+
* subtracted by the height of the previous element. This forces the element to either obey its
|
|
141
|
+
* predefined height or stay within the bounds of the max height.
|
|
142
|
+
*
|
|
143
|
+
* @param {object} elem HTML element
|
|
144
|
+
* @param {number} prevHeight height of previous sibling
|
|
145
|
+
* @param {string} maxElemHeight maximum height of the element
|
|
146
|
+
* @param {number} headerHeight the height of the header
|
|
147
|
+
*/
|
|
148
|
+
const adjust = (elem, prevHeight, headerHeight = 25) => {
|
|
149
|
+
var _a;
|
|
150
|
+
if (
|
|
151
|
+
// workaround to fix dnd scrim disappearing
|
|
152
|
+
!((_a = elem.classList) === null || _a === void 0 ? void 0 : _a.contains("fsbl-share-scrim"))) {
|
|
153
|
+
const clientHeight = elem.clientHeight ? elem.clientHeight : 0;
|
|
154
|
+
const offsetHeight = elem.offsetHeight ? elem.offsetHeight : 0;
|
|
155
|
+
const offset = offsetHeight - clientHeight;
|
|
156
|
+
let adjustPrev = prevHeight + offset;
|
|
157
|
+
const elemPosition = window.getComputedStyle(elem, null).getPropertyValue("position");
|
|
158
|
+
if (elemPosition == "fixed" || elemPosition == "absolute")
|
|
159
|
+
adjustPrev = headerHeight + offset;
|
|
160
|
+
elem.style.maxHeight = `calc(100% - ${adjustPrev}px)`;
|
|
161
|
+
elem.classList.add("adjusted-element");
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Adjusts the content view height to be maximum of the parent container (passed in by adjustTopLevelHeight()) height
|
|
166
|
+
* subtracted by the total height of elements above it. The height of the previous elements are added to this calculation
|
|
167
|
+
* if they are not fixed or absolute.
|
|
168
|
+
* @param {object} parentElem parent element
|
|
169
|
+
* @param {number} headerHeight the height of the header
|
|
170
|
+
*/
|
|
171
|
+
const adjustContentHeight = (parentElem, headerHeight) => {
|
|
172
|
+
const { children } = parentElem;
|
|
173
|
+
const len = children.length;
|
|
174
|
+
let prevHeight = 0;
|
|
175
|
+
for (let i = 0; i < len; i++) {
|
|
176
|
+
adjust(children[i], prevHeight, headerHeight);
|
|
177
|
+
// Fixed and absolute positioned elements are ignored since they are removed from the document flow.
|
|
178
|
+
const elemPosition = window.getComputedStyle(children[i], null).getPropertyValue("position");
|
|
179
|
+
if (elemPosition !== "fixed" && elemPosition !== "absolute")
|
|
180
|
+
prevHeight = prevHeight + children[i].offsetHeight;
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Toggle setting found in `foreign.components.["Window Manager"].FSBLHeader.adjustContentHeights`
|
|
185
|
+
* Called from beginAdjustment()
|
|
186
|
+
*
|
|
187
|
+
* Adjusts the top level content max-height to be 100% subtracted by the total height of the previous elements.
|
|
188
|
+
* The height of the previous elements are added to this calculation if they are not fixed or absolute.
|
|
189
|
+
* These top level elements will be passed into adjustContentHeight where their descendants
|
|
190
|
+
* will also have their heights adjusted.
|
|
191
|
+
*
|
|
192
|
+
* Absolute and Fixed positions elements, however, will just have their max-heights set to 100% subtracted by the header height
|
|
193
|
+
* since they are not part of the document flow.
|
|
194
|
+
* Example:
|
|
195
|
+
* In this below situation, the B element extends passed the view because the header is injected. B doesn't have a
|
|
196
|
+
* set height so it'll extend as far as it needs.
|
|
197
|
+
* --------------------
|
|
198
|
+
* |******************|
|
|
199
|
+
* |* Titlebar *|
|
|
200
|
+
* |******************|
|
|
201
|
+
* |******************|
|
|
202
|
+
* |* A *|
|
|
203
|
+
* |* *|
|
|
204
|
+
* |******************|
|
|
205
|
+
* |******************|
|
|
206
|
+
* |* *|
|
|
207
|
+
* |* *|
|
|
208
|
+
* |* B *|
|
|
209
|
+
* |* *|
|
|
210
|
+
* |* *|
|
|
211
|
+
* |* *|
|
|
212
|
+
* --------------------
|
|
213
|
+
* The chain of adjust functions will set the maxHeight of A and B to ensure they both occupy space that the above element doesn't
|
|
214
|
+
* and keep it within the bounds of the view.
|
|
215
|
+
* --------------------
|
|
216
|
+
* |******************|
|
|
217
|
+
* |* Titlebar *|
|
|
218
|
+
* |******************|
|
|
219
|
+
* |******************|
|
|
220
|
+
* |* A *|
|
|
221
|
+
* |* *|
|
|
222
|
+
* |******************|
|
|
223
|
+
* |******************|
|
|
224
|
+
* |* *|
|
|
225
|
+
* |* *|
|
|
226
|
+
* |* B *|
|
|
227
|
+
* |* *|
|
|
228
|
+
* |* *|
|
|
229
|
+
* |******************|
|
|
230
|
+
* --------------------
|
|
231
|
+
* @param {number} headerHeight the height of the header
|
|
232
|
+
*/
|
|
233
|
+
const adjustTopLevelHeight = (headerHeight) => {
|
|
234
|
+
const elements = document.body.querySelectorAll(":scope > *:not(#FSBLHeader, .fsbl-header)");
|
|
235
|
+
let prevHeight = 0;
|
|
236
|
+
// Tags that don't accept max-heights
|
|
237
|
+
const avoidTags = ["svg", "script"];
|
|
238
|
+
elements.forEach((elem) => {
|
|
239
|
+
if (!avoidTags.includes(String(elem.tagName).toLowerCase())) {
|
|
240
|
+
adjust(elem, prevHeight, headerHeight);
|
|
241
|
+
// Heights of fixed and absolute positioned elements are not added to the total heights of previous elements
|
|
242
|
+
// since they are removed from the document flow and can be positioned anywhere in the page.
|
|
243
|
+
if (elem.style.position !== "fixed" && elem.style.position !== "absolute")
|
|
244
|
+
prevHeight = prevHeight + elem.offsetHeight;
|
|
245
|
+
adjustContentHeight(elem, headerHeight);
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Toggle setting found in `foreign.components.["Window Manager"].FSBLHeader.bumpElements.[monitorFixedAdditions]`
|
|
251
|
+
* Called from beginAdjustment()
|
|
252
|
+
*
|
|
253
|
+
* Monitors the DOM for mutations, if the added node has a fixed position with a top style of 0px, it will be bumped by the title bar height.
|
|
254
|
+
* This ensures that if a fixed positioned element is dynamically added to the DOM, for example a pop-up modal, it'll have it's height adjusted
|
|
255
|
+
* by the header height since the initial bumping of elements can happen before this element exists.
|
|
256
|
+
*
|
|
257
|
+
* Element heights are not monitored and adjusted since this would require that all pre-existing elements have their height recalculated each time
|
|
258
|
+
* a new element is dynamically added onto the page. Absolute positioned elements, however, could be monitored and adjusted since all we would
|
|
259
|
+
* need to check for is that it's parent has a static position or not, if it does then it can be adjusted.
|
|
260
|
+
* @param headerHeight the height of the header
|
|
261
|
+
*/
|
|
262
|
+
const monitorFixedPositionedElements = (headerHeight) => {
|
|
263
|
+
const options = {
|
|
264
|
+
childList: true,
|
|
265
|
+
subtree: true,
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* MutationObserver interface provides the ability to watch for
|
|
269
|
+
* changes to the DOM tree using the observe method
|
|
270
|
+
*/
|
|
271
|
+
const mutationObserver = new MutationObserver((mutations) => {
|
|
272
|
+
mutations.forEach((mutation) => {
|
|
273
|
+
mutation.addedNodes.forEach((node) => {
|
|
274
|
+
var _a;
|
|
275
|
+
if (!((_a = node === null || node === void 0 ? void 0 : node.classList) === null || _a === void 0 ? void 0 : _a.contains("bumped-element"))) {
|
|
276
|
+
try {
|
|
277
|
+
const nodeStyle = window.getComputedStyle(node);
|
|
278
|
+
const topStyle = nodeStyle.top;
|
|
279
|
+
// make sure node is fixed, has top style set to 0, and has not been bumped
|
|
280
|
+
if (nodeStyle.position === "fixed" && possibleZeros.includes(topStyle)) {
|
|
281
|
+
node.style.top = calculateBumpValue("0Positioned", topStyle, headerHeight);
|
|
282
|
+
node.classList.add("bumped-element");
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
catch (err) {
|
|
286
|
+
// Expected to error if the node is not an Element e.g text is not of type Element
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
// We observe the body and do not disconnect because there may be other elements that are dynamically loaded, such as a dialogue menu.
|
|
293
|
+
mutationObserver.observe(document.body, options);
|
|
294
|
+
};
|
|
295
|
+
// Hack the window's scrollbar so that it displays underneath the header. html.overflow: hidden body.overflow:auto
|
|
296
|
+
// This is turned on by default. Set "Window Manager.hackScrollbar: false" to turn it off
|
|
297
|
+
const hackScrollbar = () => {
|
|
298
|
+
const header = document.getElementsByClassName("fsbl-header")[0];
|
|
299
|
+
//Add a margin top to the body if there title bar is injected into the component.
|
|
300
|
+
if (header) {
|
|
301
|
+
document.body.style.margin = "0px";
|
|
302
|
+
document.body.style.marginTop = window.getComputedStyle(header, null).getPropertyValue("height");
|
|
303
|
+
}
|
|
304
|
+
const htmlElement = document.querySelector("html");
|
|
305
|
+
if (htmlElement)
|
|
306
|
+
htmlElement.style.overflowY = "hidden";
|
|
307
|
+
const bodyElement = document.querySelector("body");
|
|
308
|
+
if (bodyElement)
|
|
309
|
+
bodyElement.style.overflowY = "auto";
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* Begin adjusting the body and top level elements and their direct descendants by the header height.
|
|
313
|
+
*/
|
|
314
|
+
const beginAdjustment = (bumpElementConfig) => {
|
|
315
|
+
const header = document.getElementsByClassName("fsbl-header")[0];
|
|
316
|
+
if (!header) {
|
|
317
|
+
FEAGlobals.FSBL.Clients.Logger.system.error("WindowTitleBarShell.maybeAdjustWindow:could not find fsbl-header.");
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
const bodyElement = document.querySelector("body");
|
|
321
|
+
const headerHeight = window.getComputedStyle(header, null).getPropertyValue("height");
|
|
322
|
+
if (bodyElement) {
|
|
323
|
+
bodyElement.style.height = `calc(100vh - ${headerHeight})`;
|
|
324
|
+
}
|
|
325
|
+
if (bumpElementConfig.hackScrollbar)
|
|
326
|
+
hackScrollbar();
|
|
327
|
+
if (bumpElementConfig.adjustContentHeights)
|
|
328
|
+
adjustTopLevelHeight(Number.parseInt(headerHeight, 10));
|
|
329
|
+
if (bumpElementConfig.bumpFixedElements) {
|
|
330
|
+
bumpElements(bumpElementConfig);
|
|
331
|
+
if (bumpElementConfig.monitorFixedAdditions)
|
|
332
|
+
monitorFixedPositionedElements(headerHeight);
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* Once document is ready and header is injected into DOM, begin adjusting the height of elements and bump fixed/absolute elements
|
|
337
|
+
*/
|
|
338
|
+
const adjustWindow = (bumpElementConfig) => {
|
|
339
|
+
// don't start pushing stuff down until page is ready. This is needed for preloaded title bars because they can happen before the page is ready.
|
|
340
|
+
if (document.readyState === "complete") {
|
|
341
|
+
beginAdjustment(bumpElementConfig);
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
document.addEventListener("readystatechange", () => {
|
|
345
|
+
if (document.readyState === "complete")
|
|
346
|
+
beginAdjustment(bumpElementConfig);
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
export const useInjectedTitleBar = (bumpConfig) => {
|
|
351
|
+
const [bumped, setBumped] = useState(false);
|
|
352
|
+
// Run the hook when a BumpConfig is available (e.g. loaded from store)
|
|
353
|
+
useEffect(() => {
|
|
354
|
+
var _a;
|
|
355
|
+
// If this isn't an injected title bar window then do nothing
|
|
356
|
+
if ((_a = FEAGlobals === null || FEAGlobals === void 0 ? void 0 : FEAGlobals.fin) === null || _a === void 0 ? void 0 : _a.isTitlebarWindow())
|
|
357
|
+
return;
|
|
358
|
+
// Only run once, when the bumpConfig becomes available
|
|
359
|
+
if (bumpConfig && !bumped) {
|
|
360
|
+
adjustWindow(bumpConfig);
|
|
361
|
+
setBumped(true);
|
|
362
|
+
}
|
|
363
|
+
}, [bumpConfig]);
|
|
364
|
+
};
|
|
365
|
+
//# sourceMappingURL=useInjectedTitleBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInjectedTitleBar.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useInjectedTitleBar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,2BAA2B;AAC3B,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AAEtC;;;;;;;GAOG;AACH,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAE,MAAc,EAAE,EAAE;IAC7E,IAAI,MAAM,GAAG,QAAQ,CAAC;IACtB,IAAI,IAAI,IAAI,KAAK,EAAE;QAClB,MAAM,GAAG,QAAQ,QAAQ,MAAM,MAAM,GAAG,CAAC;KACzC;SAAM,IAAI,IAAI,IAAI,aAAa,IAAI,aAAa,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QACrE,MAAM,GAAG,MAAM,CAAC;KAChB;IACD,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,YAAY,GAAG,CAAC,OAAY,EAAE,MAAa,EAAE,EAAE,EAAE;IACtD,MAAM,QAAQ,GAAQ,OAAO,CAAC,QAAQ,CAAC;IACvC,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC5B,IAAI,CAAC,GAAG,EAAE;QACT,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAClB;SAAM;QACN,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,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D,IAAI,QAAQ,CAAC,UAAU,KAAK,UAAU;gBAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;QAC5E,CAAC,CAAC,CAAC;KACH;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,UAA6B,EAAE,EAAE;IACpE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAC;IACrD,uEAAuE;IACvE,SAAS,CAAC,GAAG,EAAE;;QACd,6DAA6D;QAC7D,IAAI,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,0CAAE,gBAAgB,EAAE;YAAE,OAAO;QAChD,uDAAuD;QACvD,IAAI,UAAU,IAAI,CAAC,MAAM,EAAE;YAC1B,YAAY,CAAC,UAAU,CAAC,CAAC;YACzB,SAAS,CAAC,IAAI,CAAC,CAAC;SAChB;IACF,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare type NotificationUIStatePublish = (state: NotificationServiceState) => v
|
|
|
10
10
|
export declare const useNotificationUI: () => [state: NotificationServiceState, setState: NotificationUIStatePublish];
|
|
11
11
|
export declare const getToolbarMonitor: () => Promise<MonitorInfoDetail | undefined>;
|
|
12
12
|
export declare const moveToToolbarMonitor: () => Promise<void>;
|
|
13
|
-
export declare const getOS: () => "
|
|
13
|
+
export declare const getOS: () => "Windows" | "Linux" | "Mac" | undefined;
|
|
14
14
|
/**
|
|
15
15
|
* Example for setting up button clicks
|
|
16
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToolbar.d.ts","sourceRoot":"","sources":["../../../../src/ui/hooks/useToolbar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useToolbar.d.ts","sourceRoot":"","sources":["../../../../src/ui/hooks/useToolbar.ts"],"names":[],"mappings":"AAoKA,eAAO,MAAM,UAAU;;;;;;;;;iCAlDa,MAAM;CAuEzC,CAAC"}
|
|
@@ -33,7 +33,16 @@ const showToolbar = () => {
|
|
|
33
33
|
bringToolbarToFront({ focus: true });
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Docks the toolbar to the primary monitor
|
|
37
|
+
*/
|
|
38
|
+
const dockToolbar = () => {
|
|
39
|
+
FEAGlobals.FSBL.Clients.RouterClient.transmit("DockingService.dockWindow", {
|
|
40
|
+
windowName: FEAGlobals.finsembleWindow.name,
|
|
41
|
+
uuid: FEAGlobals.finsembleWindow.uuid,
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Minimizes all windows.
|
|
37
46
|
*/
|
|
38
47
|
const minimizeAllWindows = () => {
|
|
39
48
|
FEAGlobals.FSBL.Clients.WorkspaceClient.minimizeAll();
|
|
@@ -49,8 +58,8 @@ const revealAllWindows = () => {
|
|
|
49
58
|
*/
|
|
50
59
|
const toggleAutoArrange = async () => {
|
|
51
60
|
/**
|
|
52
|
-
* Bring windows to front before auto arranging them to ensure
|
|
53
|
-
* This is relies on bringWindowsToFront() restoring
|
|
61
|
+
* Bring windows to front before auto arranging them to ensure maximized windows are included in the action
|
|
62
|
+
* This is relies on bringWindowsToFront() restoring maximized and minimized windows
|
|
54
63
|
*/
|
|
55
64
|
await FEAGlobals.FSBL.Clients.WorkspaceClient.bringWindowsToFront();
|
|
56
65
|
FEAGlobals.FSBL.Clients.WorkspaceClient.autoArrange({}, () => {
|
|
@@ -146,6 +155,7 @@ export const useToolbar = () => {
|
|
|
146
155
|
toggleAutoArrange,
|
|
147
156
|
showToolbar,
|
|
148
157
|
hideToolbar,
|
|
158
|
+
dockToolbar,
|
|
149
159
|
launchPreferences,
|
|
150
160
|
};
|
|
151
161
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToolbar.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useToolbar.ts"],"names":[],"mappings":"AA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,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,qBAAqB,EAAE,GAAG,EAAE;QAC5E,2BAA2B,EAAE,CAAC;IAC/B,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC9B,SAAS,CAAC,GAAG,EAAE;QACd,eAAe,EAAE,CAAC;QAClB,uBAAuB,EAAE,CAAC;QAE1B,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE;YACnC,kBAAkB,EAAE,CAAC;SACrB;IACF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACN,2BAA2B;QAC3B,kBAAkB;QAClB,kBAAkB;QAClB,gBAAgB;QAChB,iBAAiB;QACjB,WAAW;QACX,WAAW;QACX,WAAW;QACX,iBAAiB;KACjB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare type StandardError = Error | string | null | undefined;
|
|
2
|
+
export declare type StandardErrorCallback<R = any> = (err: StandardError, response?: R) => void;
|
|
3
|
+
export declare type StandardPromise<R = any> = Promise<{
|
|
4
|
+
err?: StandardError;
|
|
5
|
+
data?: R;
|
|
6
|
+
}>;
|
|
7
|
+
export declare type StandardCallback<E = StandardError, R = any> = (err: E, response?: R) => void;
|
|
8
|
+
export declare type Manifest = Record<string, any>;
|
|
9
|
+
//# sourceMappingURL=typedoc-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typedoc-types.d.ts","sourceRoot":"","sources":["../../src/typedoc-types.ts"],"names":[],"mappings":"AAOA,oBAAY,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAG9D,oBAAY,qBAAqB,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAGxF,oBAAY,eAAe,CAAC,CAAC,GAAG,GAAG,IAAI,OAAO,CAAC;IAC9C,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,IAAI,CAAC,EAAE,CAAC,CAAC;CACT,CAAC,CAAC;AAGH,oBAAY,gBAAgB,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAG1F,oBAAY,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
package/typedoc-types.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This page lists common types that are used repeatedly by the clients. These types have been isolated
|
|
2
|
+
// into a single entrypoint for TypeDocs to pull into the API docs.
|
|
3
|
+
// These used to live in main.ts or types.ts, but using either of those as entry points pulled a large
|
|
4
|
+
// amount of irrelevant type info into the docs. These have been isolated to keep things clean.
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=typedoc-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typedoc-types.js","sourceRoot":"","sources":["../../src/typedoc-types.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,mEAAmE;AACnE,sGAAsG;AACtG,+FAA+F"}
|
package/types.d.ts
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
|
+
import { StandardError } from "./typedoc-types";
|
|
1
2
|
export { StoreModel } from "./clients/StoreModel";
|
|
2
3
|
export { FDC3 } from "./typedefs";
|
|
3
4
|
export declare type CallbackError = {
|
|
4
5
|
message: string;
|
|
5
6
|
code: string;
|
|
6
7
|
};
|
|
7
|
-
export
|
|
8
|
-
export declare type
|
|
9
|
-
export declare type
|
|
10
|
-
err?: StandardError;
|
|
11
|
-
data?: R;
|
|
12
|
-
}>;
|
|
8
|
+
export { AppDefinition, SelectConnectAppList } from "./platform/services/Interop/types";
|
|
9
|
+
export declare type FinsembleConfig = Record<string, any>;
|
|
10
|
+
export declare type AppConfig = Record<string, any>;
|
|
13
11
|
export declare type StandardResponse<R = any> = {
|
|
14
12
|
err?: StandardError;
|
|
15
13
|
data?: R;
|
|
16
14
|
};
|
|
17
|
-
export
|
|
18
|
-
export declare type Manifest = Record<string, any>;
|
|
19
|
-
export declare type FinsembleConfig = Record<string, any>;
|
|
20
|
-
export declare type AppConfig = Record<string, any>;
|
|
21
|
-
export { AppDefinition, SelectConnectAppList } from "./platform/services/Interop/types";
|
|
15
|
+
export * from "./typedoc-types";
|
|
22
16
|
export * from "./platform/services/config/types";
|
|
23
17
|
//# sourceMappingURL=types.d.ts.map
|
package/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIlD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,oBAAY,aAAa,GAAG;IAE3B,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIlD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,oBAAY,aAAa,GAAG;IAE3B,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAExF,oBAAY,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAElD,oBAAY,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE5C,oBAAY,gBAAgB,CAAC,CAAC,GAAG,GAAG,IAAI;IACvC,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,IAAI,CAAC,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,cAAc,iBAAiB,CAAC;AAChC,cAAc,kCAAkC,CAAC"}
|
package/types.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
// This should be converted to an interface so that StoreModel and it's dependencies aren't exported
|
|
1
2
|
export { StoreModel } from "./clients/StoreModel";
|
|
2
3
|
// This is for backward compatibility only, forcing typedefs to be compiled and packaged.
|
|
3
4
|
// Use @finos/fdc3 instead of typedefs
|
|
4
5
|
export { FDC3 } from "./typedefs";
|
|
6
|
+
export * from "./typedoc-types";
|
|
5
7
|
export * from "./platform/services/config/types";
|
|
6
8
|
//# sourceMappingURL=types.js.map
|
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAEA,oGAAoG;AACpG,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,yFAAyF;AACzF,sCAAsC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAqBlC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kCAAkC,CAAC"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { RouterListenerUnsubscribe } from "../../clients/routerClient";
|
|
2
|
-
import PublicEventManager, { Unsubscriber } from "./PublicEventManager";
|
|
3
|
-
declare type EventOptions = {
|
|
4
|
-
initialQueryTimeout: Number;
|
|
5
|
-
timeout: Number;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* This private Event Manager distributes events to remove event handlers (using the router).
|
|
9
|
-
* It is used within the windowService and workspaceService. Clients use the PublicEventManager
|
|
10
|
-
* in order to register and unregister handlers.
|
|
11
|
-
*
|
|
12
|
-
* The primary use is for FinsembleWindow events. FinsembleWindow is derived from PublicEventManager.
|
|
13
|
-
*
|
|
14
|
-
* The windowService will create multiple PrivateEventManagers, generally one per live window. Each
|
|
15
|
-
* PrivateEventManager maintains its own private store of remote event handlers. Note that event handlers
|
|
16
|
-
* may exist across multiple windows. For instance, a window called "Bobby" may want to know when another
|
|
17
|
-
* window called "Gary" closes. When Bobby registers an event handler ("tell me when Gary closes") then
|
|
18
|
-
* Gary's PrivateEventManager will gain a handler, which is associated with Bobby.
|
|
19
|
-
*
|
|
20
|
-
* In the above scenario, if Bobby (client) closes then Gary's PrivateEventManager will remove all references
|
|
21
|
-
* to remote event handlers. But, if Gary closes then Bobby's references will become orphans - never triggered,
|
|
22
|
-
* which is probably fine for most application logic.
|
|
23
|
-
*
|
|
24
|
-
* For more information on the distrubted event architecture - see https://miro.com/app/board/o9J_kwhN9zo=/
|
|
25
|
-
*
|
|
26
|
-
* Note, this class can also be used as a *local* event manager with the functions.
|
|
27
|
-
*/
|
|
28
|
-
declare class EventManager extends PublicEventManager {
|
|
29
|
-
#private;
|
|
30
|
-
eventList: string[];
|
|
31
|
-
eventInternalHandlerMap: Record<string, string[]>;
|
|
32
|
-
remoteListenerEventMap: Record<string, string[]>;
|
|
33
|
-
windowToGuidsMap: Record<string, string[]>;
|
|
34
|
-
waitList: Record<string, Function>;
|
|
35
|
-
unsubscribes: RouterListenerUnsubscribe[];
|
|
36
|
-
/**
|
|
37
|
-
*Creates an instance of EventManager.
|
|
38
|
-
* @param {*} params
|
|
39
|
-
* @memberof EventManager
|
|
40
|
-
*/
|
|
41
|
-
constructor(params: {
|
|
42
|
-
name: string;
|
|
43
|
-
sourceType?: string;
|
|
44
|
-
});
|
|
45
|
-
/**
|
|
46
|
-
* Removes all listeners associated with a window [that has closed]
|
|
47
|
-
*/
|
|
48
|
-
private removeWindow;
|
|
49
|
-
/**
|
|
50
|
-
* Removes all listeners for a specific remote guid
|
|
51
|
-
*/
|
|
52
|
-
private removeGuid;
|
|
53
|
-
/**
|
|
54
|
-
* Adds an individual remote listener (listenerGuid+event) to this event manager
|
|
55
|
-
*/
|
|
56
|
-
registerRemoteEventHandler(event: string, listenerGuid: string, listenerWindow: string): void;
|
|
57
|
-
/**
|
|
58
|
-
* Removes an individual remote listener (listenerGuid+event) from this event manager
|
|
59
|
-
*/
|
|
60
|
-
unregisterRemoteEventHandler(event: string, listenerGuid: string, listenerWindow: string): void;
|
|
61
|
-
/**
|
|
62
|
-
* We must wait for a remote transit if delayed
|
|
63
|
-
*
|
|
64
|
-
* @memberof EventManager
|
|
65
|
-
*/
|
|
66
|
-
awaitRemoteDelayer(eventGuid: string, listenerGuid: string): Promise<Function>;
|
|
67
|
-
/**
|
|
68
|
-
* Sends a message to a remote listener (PublicEventManager) which will then emit a local Finsemble event.
|
|
69
|
-
*
|
|
70
|
-
* Called by this.trigger().
|
|
71
|
-
*/
|
|
72
|
-
private queryRemoteListener;
|
|
73
|
-
/**
|
|
74
|
-
* Forwards an event to all remote listeners and then waits for them to respond.
|
|
75
|
-
* They may optionally interrupt the event by sending a "cancel" which results in FinsembleEvent throwing
|
|
76
|
-
* an exception. Any individual exception will cause this function to also throw an exception, thus
|
|
77
|
-
* interrupting the event (which occurs upstream, e.g. preventing a window from closing).
|
|
78
|
-
*/
|
|
79
|
-
trigger(event: string, data?: any, options?: EventOptions): Promise<any[] | void>;
|
|
80
|
-
/**
|
|
81
|
-
* Adds a *local* event listener.
|
|
82
|
-
*/
|
|
83
|
-
addEventListener(event: string, handler: Function): Unsubscriber;
|
|
84
|
-
/**
|
|
85
|
-
* Removes a *local* event listener.
|
|
86
|
-
*/
|
|
87
|
-
removeEventListener(event: string, handler: Function): void;
|
|
88
|
-
/**
|
|
89
|
-
* Removes all router listeners and subscriptions. This is called when the windowService terminates this
|
|
90
|
-
* PrivateEventManager (e.g. because the window has closed).
|
|
91
|
-
*/
|
|
92
|
-
cleanup(): void;
|
|
93
|
-
}
|
|
94
|
-
export default EventManager;
|
|
95
|
-
//# sourceMappingURL=PrivateEventManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PrivateEventManager.d.ts","sourceRoot":"","sources":["../../../../src/common/events/PrivateEventManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAErF,OAAO,kBAAkB,EAAE,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKxE,aAAK,YAAY,GAAG;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,cAAM,YAAa,SAAQ,kBAAkB;;IAM5C,SAAS,EAAE,MAAM,EAAE,CAAM;IAEzB,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAM;IAEvD,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAM;IAEtD,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAM;IAEhD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAM;IAExC,YAAY,EAAE,yBAAyB,EAAE,CAAM;IAE/C;;;;OAIG;gBACS,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;IA8BzD;;OAEG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACH,OAAO,CAAC,UAAU;IASlB;;OAEG;IACH,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI;IAM7F;;OAEG;IACH,4BAA4B,CA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