@finsemble/finsemble-ui 10.0.0-iocd.9 → 10.0.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FEA.d.ts +1440 -1430
- package/FEA.d.ts.map +1 -1
- package/FEA.js +10 -10
- package/FEA.js.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.d.ts +235 -233
- package/clients/Interop/FinsembleDesktopAgent.d.ts.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.js +1331 -1308
- package/clients/Interop/FinsembleDesktopAgent.js.map +1 -1
- package/clients/Interop/InteropAdmin.d.ts +29 -29
- package/clients/Interop/InteropAdmin.js +98 -98
- package/clients/Interop/InteropAdmin.js.map +1 -1
- package/clients/Interop/index.d.ts +1 -1
- package/clients/Interop/index.js +2 -2
- package/clients/Interop/types.d.ts +445 -443
- package/clients/Interop/types.d.ts.map +1 -1
- package/clients/Interop/types.js +45 -45
- package/clients/Interop/types.js.map +1 -1
- package/clients/Startup/FSBLDesktop.d.ts +157 -157
- package/clients/Startup/FSBLDesktop.d.ts.map +1 -1
- package/clients/Startup/FSBLDesktop.js +447 -430
- package/clients/Startup/FSBLDesktop.js.map +1 -1
- package/clients/Startup/FSBLFreestanding.d.ts +27 -27
- package/clients/Startup/FSBLFreestanding.js +129 -129
- package/clients/Startup/FSBLFreestanding.js.map +1 -1
- package/clients/Startup/FSBLService.d.ts +7 -7
- package/clients/Startup/FSBLService.js +57 -57
- package/clients/Startup/RouterConfig.d.ts +37 -37
- package/clients/Startup/RouterConfig.d.ts.map +1 -1
- package/clients/Startup/RouterConfig.js +124 -115
- package/clients/Startup/RouterConfig.js.map +1 -1
- package/clients/Startup/SDDListeners.d.ts +11 -11
- package/clients/Startup/SDDListeners.d.ts.map +1 -1
- package/clients/Startup/SDDListeners.js +96 -96
- package/clients/Startup/SDDListeners.js.map +1 -1
- package/clients/Startup/Startup.d.ts +58 -58
- package/clients/Startup/Startup.js +101 -101
- package/clients/Startup/Startup.js.map +1 -1
- package/clients/Startup/index.d.ts +1 -1
- package/clients/Startup/index.js +2 -2
- package/clients/Startup/types.d.ts +81 -81
- package/clients/Startup/types.d.ts.map +1 -1
- package/clients/Startup/types.js +1 -1
- package/clients/Startup/unhandledErrors.d.ts +6 -6
- package/clients/Startup/unhandledErrors.d.ts.map +1 -1
- package/clients/Startup/unhandledErrors.js +77 -75
- package/clients/Startup/unhandledErrors.js.map +1 -1
- package/clients/Startup/windowStartup.d.ts +17 -17
- package/clients/Startup/windowStartup.d.ts.map +1 -1
- package/clients/Startup/windowStartup.js +491 -478
- package/clients/Startup/windowStartup.js.map +1 -1
- package/clients/StoreModel.d.ts +394 -394
- package/clients/StoreModel.d.ts.map +1 -1
- package/clients/StoreModel.js +906 -906
- package/clients/StoreModel.js.map +1 -1
- package/clients/appsClient.d.ts +618 -476
- package/clients/appsClient.d.ts.map +1 -1
- package/clients/appsClient.js +729 -710
- package/clients/appsClient.js.map +1 -1
- package/clients/authenticationClient.d.ts +190 -190
- package/clients/authenticationClient.d.ts.map +1 -1
- package/clients/authenticationClient.js +247 -247
- package/clients/authenticationClient.js.map +1 -1
- package/clients/configClient.d.ts +638 -638
- package/clients/configClient.d.ts.map +1 -1
- package/clients/configClient.js +969 -969
- package/clients/configClient.js.map +1 -1
- package/clients/controller/DialogManagerClientController.d.ts +77 -77
- package/clients/controller/DialogManagerClientController.js +215 -215
- package/clients/controller/DialogManagerClientController.js.map +1 -1
- package/clients/dialogManagerClient.d.ts +186 -186
- package/clients/dialogManagerClient.d.ts.map +1 -1
- package/clients/dialogManagerClient.js +479 -475
- package/clients/dialogManagerClient.js.map +1 -1
- package/clients/distributedStoreClient.d.ts +150 -151
- package/clients/distributedStoreClient.d.ts.map +1 -1
- package/clients/distributedStoreClient.js +256 -253
- package/clients/distributedStoreClient.js.map +1 -1
- package/clients/hotkeyClient.d.ts +128 -128
- package/clients/hotkeyClient.d.ts.map +1 -1
- package/clients/hotkeyClient.js +648 -648
- package/clients/hotkeyClient.js.map +1 -1
- package/clients/index.d.ts +16 -16
- package/clients/index.js +18 -18
- package/clients/launcherClient.d.ts +123 -123
- package/clients/launcherClient.d.ts.map +1 -1
- package/clients/launcherClient.js +64 -64
- package/clients/logger.d.ts +363 -363
- package/clients/logger.d.ts.map +1 -1
- package/clients/logger.js +940 -931
- package/clients/logger.js.map +1 -1
- package/clients/notificationClient.d.ts +310 -310
- package/clients/notificationClient.d.ts.map +1 -1
- package/clients/notificationClient.js +557 -557
- package/clients/notificationClient.js.map +1 -1
- package/clients/routerClient.d.ts +520 -520
- package/clients/routerClient.d.ts.map +1 -1
- package/clients/routerClient.js +1448 -1416
- package/clients/routerClient.js.map +1 -1
- package/clients/searchClient.d.ts +156 -156
- package/clients/searchClient.d.ts.map +1 -1
- package/clients/searchClient.js +282 -282
- package/clients/searchClient.js.map +1 -1
- package/clients/storageClient.d.ts +235 -235
- package/clients/storageClient.d.ts.map +1 -1
- package/clients/storageClient.js +308 -308
- package/clients/storageClient.js.map +1 -1
- package/clients/windowClient.d.ts +714 -712
- package/clients/windowClient.d.ts.map +1 -1
- package/clients/windowClient.js +1072 -1070
- package/clients/windowClient.js.map +1 -1
- package/clients/workspaceClient.d.ts +511 -511
- package/clients/workspaceClient.d.ts.map +1 -1
- package/clients/workspaceClient.js +758 -750
- package/clients/workspaceClient.js.map +1 -1
- package/common/Desktop.d.ts +56 -56
- package/common/Desktop.d.ts.map +1 -1
- package/common/Desktop.js +109 -97
- package/common/Desktop.js.map +1 -1
- package/common/FinsembleWindow.d.ts +823 -813
- package/common/FinsembleWindow.d.ts.map +1 -1
- package/common/FinsembleWindow.js +1458 -1416
- package/common/FinsembleWindow.js.map +1 -1
- package/common/Globals.d.ts +96 -96
- package/common/Globals.d.ts.map +1 -1
- package/common/Globals.js +29 -29
- package/common/Monitors.d.ts +160 -155
- package/common/Monitors.d.ts.map +1 -1
- package/common/Monitors.js +504 -447
- package/common/Monitors.js.map +1 -1
- package/common/Performance.d.ts +6 -6
- package/common/Performance.js +12 -12
- package/common/REST.d.ts +16 -16
- package/common/REST.js +84 -84
- package/common/REST.js.map +1 -1
- package/common/Singleton.d.ts +74 -72
- package/common/Singleton.d.ts.map +1 -1
- package/common/Singleton.js +95 -95
- package/common/Singleton.js.map +1 -1
- package/common/configUtil.d.ts +58 -58
- package/common/configUtil.d.ts.map +1 -1
- package/common/configUtil.js +347 -347
- package/common/configUtil.js.map +1 -1
- package/common/constants.d.ts +101 -101
- package/common/constants.js +171 -171
- package/common/dependencyManager.d.ts +170 -171
- package/common/dependencyManager.d.ts.map +1 -1
- package/common/dependencyManager.js +383 -383
- package/common/dependencyManager.js.map +1 -1
- package/common/events/FinsembleEvent.d.ts +29 -29
- package/common/events/FinsembleEvent.d.ts.map +1 -1
- package/common/events/FinsembleEvent.js +71 -71
- package/common/events/FinsembleEvent.js.map +1 -1
- package/common/events/PublicEventManager.d.ts +69 -68
- package/common/events/PublicEventManager.d.ts.map +1 -1
- package/common/events/PublicEventManager.js +192 -192
- package/common/events/PublicEventManager.js.map +1 -1
- package/common/index.d.ts +3 -3
- package/common/index.js +5 -5
- package/common/redux/getRemoteStore.d.ts +53 -53
- package/common/redux/getRemoteStore.d.ts.map +1 -1
- package/common/redux/getRemoteStore.js +50 -50
- package/common/redux/remoteReduxEnhancer.d.ts +28 -28
- package/common/redux/remoteReduxEnhancer.d.ts.map +1 -1
- package/common/redux/remoteReduxEnhancer.js +228 -218
- package/common/redux/remoteReduxEnhancer.js.map +1 -1
- package/common/redux/types.d.ts +26 -26
- package/common/redux/types.d.ts.map +1 -1
- package/common/redux/types.js +1 -1
- package/common/system.d.ts +328 -308
- package/common/system.d.ts.map +1 -1
- package/common/system.js +559 -545
- package/common/system.js.map +1 -1
- package/common/systemManagerClient.d.ts +91 -91
- package/common/systemManagerClient.d.ts.map +1 -1
- package/common/systemManagerClient.js +189 -189
- package/common/systemManagerClient.js.map +1 -1
- package/common/testPoint.d.ts +56 -56
- package/common/testPoint.js +105 -105
- package/common/testPoint.js.map +1 -1
- package/common/toast.d.ts +35 -35
- package/common/toast.d.ts.map +1 -1
- package/common/toast.js +93 -87
- package/common/toast.js.map +1 -1
- package/common/util.d.ts +141 -136
- package/common/util.d.ts.map +1 -1
- package/common/util.js +458 -445
- package/common/util.js.map +1 -1
- package/deprecated/SmartDesktopClient.d.ts +18 -18
- package/deprecated/SmartDesktopClient.js +18 -18
- package/deprecated/baseClient.d.ts +87 -87
- package/deprecated/baseClient.d.ts.map +1 -1
- package/deprecated/baseClient.js +123 -123
- package/deprecated/baseClient.js.map +1 -1
- package/deprecated/deprecatedFunctions.d.ts +44 -44
- package/deprecated/deprecatedFunctions.d.ts.map +1 -1
- package/deprecated/deprecatedFunctions.js +199 -199
- package/deprecated/deprecatedFunctions.js.map +1 -1
- package/deprecated/deprecatedlauncherClient.d.ts +162 -162
- package/deprecated/deprecatedlauncherClient.d.ts.map +1 -1
- package/deprecated/deprecatedlauncherClient.js +285 -285
- package/deprecated/deprecatedlauncherClient.js.map +1 -1
- package/deprecated/dragAndDropClient.d.ts +288 -288
- package/deprecated/dragAndDropClient.d.ts.map +1 -1
- package/deprecated/dragAndDropClient.js +753 -698
- package/deprecated/dragAndDropClient.js.map +1 -1
- package/deprecated/index.d.ts +1 -1
- package/deprecated/index.d.ts.map +1 -1
- package/deprecated/index.js +1 -1
- package/deprecated/legacyUIComponentNames.d.ts +23 -23
- package/deprecated/legacyUIComponentNames.js +23 -23
- package/deprecated/linkerClient.d.ts +422 -422
- package/deprecated/linkerClient.d.ts.map +1 -1
- package/deprecated/linkerClient.js +892 -892
- package/deprecated/linkerClient.js.map +1 -1
- package/index.d.ts +65 -70
- package/index.d.ts.map +1 -1
- package/index.js +3 -5
- package/index.js.map +1 -1
- package/main.d.ts +725 -862
- package/main.d.ts.map +1 -1
- package/main.js +85 -85
- package/package.json +10 -14
- package/platform/preloads/BloombergBridgeClient.d.ts +453 -453
- package/platform/preloads/BloombergBridgeClient.d.ts.map +1 -1
- package/platform/preloads/BloombergBridgeClient.js +568 -568
- package/platform/preloads/BloombergBridgeClient.js.map +1 -1
- package/platform/services/Interop/AuthSignVerify.d.ts +50 -50
- package/platform/services/Interop/AuthSignVerify.js +283 -283
- package/platform/services/Interop/AuthSignVerify.js.map +1 -1
- package/platform/services/Interop/modules/actions.d.ts +16 -16
- package/platform/services/Interop/modules/actions.js +10 -10
- package/platform/services/Interop/modules/types.d.ts +182 -182
- package/platform/services/Interop/modules/types.d.ts.map +1 -1
- package/platform/services/Interop/modules/types.js +1 -1
- package/platform/services/Interop/types.d.ts +634 -632
- package/platform/services/Interop/types.d.ts.map +1 -1
- package/platform/services/Interop/types.js +25 -25
- package/platform/services/Interop/types.js.map +1 -1
- package/platform/services/baseService.d.ts +82 -82
- package/platform/services/baseService.d.ts.map +1 -1
- package/platform/services/baseService.js +300 -300
- package/platform/services/baseService.js.map +1 -1
- package/platform/services/bloombergBridge/lib/types.d.ts +108 -108
- package/platform/services/bloombergBridge/lib/types.d.ts.map +1 -1
- package/platform/services/bloombergBridge/lib/types.js +39 -39
- package/platform/services/config/types.d.ts +42 -42
- package/platform/services/config/types.d.ts.map +1 -1
- package/platform/services/config/types.js +1 -1
- package/platform/services/distributedStore/storeUtils.d.ts +67 -67
- package/platform/services/distributedStore/storeUtils.d.ts.map +1 -1
- package/platform/services/distributedStore/storeUtils.js +238 -238
- package/platform/services/distributedStore/storeUtils.js.map +1 -1
- package/platform/services/index.d.ts +5 -5
- package/platform/services/index.js +9 -9
- package/platform/services/logger/types.d.ts +78 -78
- package/platform/services/logger/types.d.ts.map +1 -1
- package/platform/services/logger/types.js +1 -1
- package/platform/services/notification/index.d.ts +1 -1
- package/platform/services/notification/index.js +2 -2
- package/platform/services/notification/types/Action.d.ts +12 -12
- package/platform/services/notification/types/Action.js +7 -7
- package/platform/services/notification/types/ActionTypes.d.ts +16 -16
- package/platform/services/notification/types/ActionTypes.js +18 -18
- package/platform/services/notification/types/Callbacks.d.ts +7 -7
- package/platform/services/notification/types/Callbacks.js +1 -1
- package/platform/services/notification/types/Filter.d.ts +22 -22
- package/platform/services/notification/types/Filter.js +19 -19
- package/platform/services/notification/types/IAction.d.ts +51 -51
- package/platform/services/notification/types/IAction.js +1 -1
- package/platform/services/notification/types/IFilter.d.ts +24 -24
- package/platform/services/notification/types/IFilter.js +1 -1
- package/platform/services/notification/types/ILastIssued.d.ts +8 -8
- package/platform/services/notification/types/ILastIssued.js +1 -1
- package/platform/services/notification/types/IMuteFilter.d.ts +7 -7
- package/platform/services/notification/types/IMuteFilter.js +4 -4
- package/platform/services/notification/types/INotification.d.ts +100 -100
- package/platform/services/notification/types/INotification.d.ts.map +1 -1
- package/platform/services/notification/types/INotification.js +1 -1
- package/platform/services/notification/types/INotificationClient.d.ts +94 -94
- package/platform/services/notification/types/INotificationClient.js +1 -1
- package/platform/services/notification/types/INotificationHistoryOptions.d.ts +18 -18
- package/platform/services/notification/types/INotificationHistoryOptions.d.ts.map +1 -1
- package/platform/services/notification/types/INotificationHistoryOptions.js +1 -1
- package/platform/services/notification/types/INotificationService.d.ts +57 -57
- package/platform/services/notification/types/INotificationService.js +1 -1
- package/platform/services/notification/types/IPerformedAction.d.ts +9 -9
- package/platform/services/notification/types/IPerformedAction.js +1 -1
- package/platform/services/notification/types/ISnoozeTimer.d.ts +13 -13
- package/platform/services/notification/types/ISnoozeTimer.js +9 -9
- package/platform/services/notification/types/ISubscription.d.ts +15 -15
- package/platform/services/notification/types/ISubscription.js +1 -1
- package/platform/services/notification/types/LastIssued.d.ts +10 -10
- package/platform/services/notification/types/LastIssued.js +6 -6
- package/platform/services/notification/types/Meta.d.ts +12 -12
- package/platform/services/notification/types/Meta.js +6 -6
- package/platform/services/notification/types/Notification.d.ts +29 -29
- package/platform/services/notification/types/Notification.js +16 -16
- package/platform/services/notification/types/NotificationConfig.d.ts +21 -21
- package/platform/services/notification/types/NotificationConfig.js +1 -1
- package/platform/services/notification/types/NotificationHookTypes.d.ts +6 -6
- package/platform/services/notification/types/NotificationHookTypes.js +1 -1
- package/platform/services/notification/types/PerformedAction.d.ts +10 -10
- package/platform/services/notification/types/PerformedAction.js +7 -7
- package/platform/services/notification/types/SnoozeTimer.d.ts +7 -7
- package/platform/services/notification/types/SnoozeTimer.js +2 -2
- package/platform/services/notification/types/Subscription.d.ts +13 -13
- package/platform/services/notification/types/Subscription.js +14 -14
- package/platform/services/notification/types/index.d.ts +45 -45
- package/platform/services/notification/types/index.d.ts.map +1 -1
- package/platform/services/notification/types/index.js +23 -23
- package/platform/services/router/routerTransport.d.ts +80 -80
- package/platform/services/router/routerTransport.d.ts.map +1 -1
- package/platform/services/router/routerTransport.js +486 -476
- package/platform/services/router/routerTransport.js.map +1 -1
- package/platform/services/router/types.d.ts +214 -212
- package/platform/services/router/types.d.ts.map +1 -1
- package/platform/services/router/types.js +1 -1
- package/platform/services/search/index.d.ts +1 -1
- package/platform/services/search/index.js +2 -2
- package/platform/services/search/types.d.ts +29 -29
- package/platform/services/search/types.d.ts.map +1 -1
- package/platform/services/search/types.js +1 -1
- package/platform/services/storage/adapters/base.d.ts +3 -3
- package/platform/services/storage/adapters/base.js +63 -63
- package/platform/services/storage/adapters/base.js.map +1 -1
- package/platform/services/storage/adapters/types.d.ts +21 -21
- package/platform/services/storage/adapters/types.d.ts.map +1 -1
- package/platform/services/storage/adapters/types.js +1 -1
- package/platform/services/systemManager/_constants.d.ts +9 -9
- package/platform/services/systemManager/_constants.js +22 -22
- package/platform/services/systemManager/common.d.ts +13 -13
- package/platform/services/systemManager/common.js +19 -19
- package/platform/services/systemManager/types.d.ts +49 -48
- package/platform/services/systemManager/types.d.ts.map +1 -1
- package/platform/services/systemManager/types.js +11 -11
- package/platform/services/types.d.ts +10 -10
- package/platform/services/types.d.ts.map +1 -1
- package/platform/services/types.js +9 -9
- package/platform/services/window/index.d.ts +1 -1
- package/platform/services/window/index.js +2 -2
- package/platform/services/window/modules/actions.d.ts +76 -70
- package/platform/services/window/modules/actions.d.ts.map +1 -1
- package/platform/services/window/modules/actions.js +67 -62
- package/platform/services/window/modules/actions.js.map +1 -1
- package/platform/services/window/types.d.ts +1211 -1194
- package/platform/services/window/types.d.ts.map +1 -1
- package/platform/services/window/types.js +6 -1
- package/platform/services/window/types.js.map +1 -1
- package/platform/services/workspace/index.d.ts +1 -1
- package/platform/services/workspace/index.js +2 -2
- package/platform/services/workspace/types.d.ts +78 -78
- package/platform/services/workspace/types.d.ts.map +1 -1
- package/platform/services/workspace/types.js +1 -1
- package/platform/services/workspace/workspaceAdminAPI.d.ts +26 -26
- package/platform/services/workspace/workspaceAdminAPI.d.ts.map +1 -1
- package/platform/services/workspace/workspaceAdminAPI.js +44 -44
- package/platform/services/workspace/workspaceAdminAPI.js.map +1 -1
- package/react/actions/favoriteActions.d.ts +21 -21
- package/react/actions/favoriteActions.d.ts.map +1 -1
- package/react/actions/favoriteActions.js +8 -8
- package/react/actions/linkerActions.d.ts +48 -48
- package/react/actions/linkerActions.d.ts.map +1 -1
- package/react/actions/linkerActions.js +8 -8
- package/react/actions/menuActions.d.ts +16 -16
- package/react/actions/menuActions.d.ts.map +1 -1
- package/react/actions/menuActions.js +9 -9
- package/react/actions/rootActions.d.ts +9 -9
- package/react/actions/rootActions.d.ts.map +1 -1
- package/react/actions/rootActions.js +2 -2
- package/react/actions/searchActions.d.ts +12 -12
- package/react/actions/searchActions.d.ts.map +1 -1
- package/react/actions/searchActions.js +7 -7
- package/react/actions/smartDesktopDesignerActions.d.ts +56 -56
- package/react/actions/smartDesktopDesignerActions.d.ts.map +1 -1
- package/react/actions/smartDesktopDesignerActions.js +27 -27
- package/react/actions/toolbarActions.d.ts +61 -61
- package/react/actions/toolbarActions.d.ts.map +1 -1
- package/react/actions/toolbarActions.js +24 -24
- package/react/actions/workspaceActions.d.ts +11 -11
- package/react/actions/workspaceActions.d.ts.map +1 -1
- package/react/actions/workspaceActions.js +6 -6
- package/react/assets/css/advancedAppLauncher.css +1 -1
- package/react/assets/css/appCatalog.css +4 -4
- package/react/assets/css/dialogs.css +2 -6
- package/react/assets/css/favorites.css +1 -3
- package/react/assets/css/finsemble.css +0 -1
- package/react/assets/css/font-finance.css +4 -282
- package/react/assets/css/menus.css +5 -1
- package/react/assets/css/search.css +1 -2
- package/react/assets/css/toolbar.css +9 -1
- package/react/assets/css/userPreferences.css +1 -1
- package/react/components/FinsembleCSS.d.ts +17 -17
- package/react/components/FinsembleCSS.d.ts.map +1 -1
- package/react/components/FinsembleCSS.js +27 -26
- package/react/components/FinsembleCSS.js.map +1 -1
- package/react/components/FinsembleProvider.d.ts +28 -28
- package/react/components/FinsembleProvider.d.ts.map +1 -1
- package/react/components/FinsembleProvider.js +33 -33
- package/react/components/appCatalog/AppCatalog.d.ts +13 -13
- package/react/components/appCatalog/AppCatalog.d.ts.map +1 -1
- package/react/components/appCatalog/AppCatalog.js +33 -33
- package/react/components/appCatalog/AppCatalogComponent.d.ts +98 -98
- package/react/components/appCatalog/AppCatalogComponent.d.ts.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.js +307 -307
- package/react/components/appCatalog/AppCatalogComponent.js.map +1 -1
- package/react/components/appCatalog/components/AppCard.d.ts +64 -64
- package/react/components/appCatalog/components/AppCard.d.ts.map +1 -1
- package/react/components/appCatalog/components/AppCard.js +200 -200
- package/react/components/appCatalog/components/AppCard.js.map +1 -1
- package/react/components/appCatalog/components/AppList.d.ts +8 -8
- package/react/components/appCatalog/components/AppList.d.ts.map +1 -1
- package/react/components/appCatalog/components/AppList.js +25 -25
- package/react/components/appCatalog/components/AppList.js.map +1 -1
- package/react/components/appCatalog/components/AppResults.d.ts +25 -21
- package/react/components/appCatalog/components/AppResults.d.ts.map +1 -1
- package/react/components/appCatalog/components/AppResults.js +71 -71
- package/react/components/appCatalog/components/AppResults.js.map +1 -1
- package/react/components/appCatalog/components/Carousel.d.ts +42 -42
- package/react/components/appCatalog/components/Carousel.d.ts.map +1 -1
- package/react/components/appCatalog/components/Carousel.js +126 -126
- package/react/components/appCatalog/components/Carousel.js.map +1 -1
- package/react/components/appCatalog/components/EmptyResults.d.ts +11 -7
- package/react/components/appCatalog/components/EmptyResults.d.ts.map +1 -1
- package/react/components/appCatalog/components/EmptyResults.js +12 -12
- package/react/components/appCatalog/components/Hero.d.ts +42 -42
- package/react/components/appCatalog/components/Hero.d.ts.map +1 -1
- package/react/components/appCatalog/components/Hero.js +83 -83
- package/react/components/appCatalog/components/Hero.js.map +1 -1
- package/react/components/appCatalog/components/Home.d.ts +29 -21
- package/react/components/appCatalog/components/Home.d.ts.map +1 -1
- package/react/components/appCatalog/components/Home.js +28 -28
- package/react/components/appCatalog/components/SearchBar.d.ts +57 -57
- package/react/components/appCatalog/components/SearchBar.js +107 -107
- package/react/components/appCatalog/components/SearchBar.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDescription.d.ts +15 -11
- package/react/components/appCatalog/components/Showcase/AppDescription.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDescription.js +15 -15
- package/react/components/appCatalog/components/Showcase/AppDevNotes.d.ts +18 -14
- package/react/components/appCatalog/components/Showcase/AppDevNotes.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppDevNotes.js +30 -30
- package/react/components/appCatalog/components/Showcase/AppShowcase.d.ts +37 -37
- package/react/components/appCatalog/components/Showcase/AppShowcase.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/AppShowcase.js +128 -128
- package/react/components/appCatalog/components/Showcase/AppShowcase.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/Header.d.ts +21 -21
- package/react/components/appCatalog/components/Showcase/Header.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/Header.js +58 -58
- package/react/components/appCatalog/components/Showcase/Header.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/ImageCarousel.d.ts +14 -13
- package/react/components/appCatalog/components/Showcase/ImageCarousel.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/ImageCarousel.js +25 -25
- package/react/components/appCatalog/components/Showcase/Modal.d.ts +18 -18
- package/react/components/appCatalog/components/Showcase/Modal.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/Modal.js +23 -23
- package/react/components/appCatalog/components/Showcase/Modal.js.map +1 -1
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.d.ts +10 -9
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/ReleaseNotes.js +18 -18
- package/react/components/appCatalog/components/Showcase/SupportNotes.d.ts +12 -11
- package/react/components/appCatalog/components/Showcase/SupportNotes.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/SupportNotes.js +26 -26
- package/react/components/appCatalog/components/Showcase/VersionNotes.d.ts +10 -9
- package/react/components/appCatalog/components/Showcase/VersionNotes.d.ts.map +1 -1
- package/react/components/appCatalog/components/Showcase/VersionNotes.js +21 -21
- package/react/components/appCatalog/components/Showcase/defaults.d.ts +3 -3
- package/react/components/appCatalog/components/Showcase/defaults.js +3 -3
- package/react/components/appCatalog/components/Toast.d.ts +15 -11
- package/react/components/appCatalog/components/Toast.d.ts.map +1 -1
- package/react/components/appCatalog/components/Toast.js +38 -38
- package/react/components/appCatalog/components/Toast.js.map +1 -1
- package/react/components/appCatalog/components/helpers.d.ts +2 -2
- package/react/components/appCatalog/components/helpers.js +33 -33
- package/react/components/appCatalog/components/helpers.js.map +1 -1
- package/react/components/appCatalog/index.d.ts +1 -1
- package/react/components/appCatalog/index.js +1 -1
- package/react/components/appCatalog/modules/AppDirectory.d.ts +12 -12
- package/react/components/appCatalog/modules/AppDirectory.d.ts.map +1 -1
- package/react/components/appCatalog/modules/AppDirectory.js +10 -10
- package/react/components/appCatalog/modules/FDC3.d.ts +51 -51
- package/react/components/appCatalog/modules/FDC3.js +146 -146
- package/react/components/appCatalog/modules/FDC3.js.map +1 -1
- package/react/components/appCatalog/stores/appStore.d.ts +9 -9
- package/react/components/appCatalog/stores/appStore.js +47 -47
- package/react/components/appCatalog/stores/appStore.js.map +1 -1
- package/react/components/appCatalog/stores/storeActions.d.ts +145 -145
- package/react/components/appCatalog/stores/storeActions.d.ts.map +1 -1
- package/react/components/appCatalog/stores/storeActions.js +423 -423
- package/react/components/appCatalog/stores/storeActions.js.map +1 -1
- package/react/components/bloomberg/BloombergFDC3.d.ts +3 -3
- package/react/components/bloomberg/BloombergFDC3.d.ts.map +1 -1
- package/react/components/bloomberg/BloombergFDC3.js +71 -71
- package/react/components/bloomberg/BloombergFDC3.js.map +1 -1
- package/react/components/bloomberg/BloombergLink.d.ts +11 -11
- package/react/components/bloomberg/BloombergLink.d.ts.map +1 -1
- package/react/components/bloomberg/BloombergLink.js +48 -48
- package/react/components/bloomberg/BloombergLink.js.map +1 -1
- package/react/components/bloomberg/BloombergRelay.d.ts +9 -9
- package/react/components/bloomberg/BloombergRelay.d.ts.map +1 -1
- package/react/components/bloomberg/BloombergRelay.js +74 -68
- package/react/components/bloomberg/BloombergRelay.js.map +1 -1
- package/react/components/common/Button.d.ts +35 -35
- package/react/components/common/Button.js +21 -21
- package/react/components/common/Button.js.map +1 -1
- package/react/components/common/ButtonIcon.d.ts +4 -4
- package/react/components/common/ButtonIcon.js +11 -11
- package/react/components/common/ButtonIcon.js.map +1 -1
- package/react/components/common/ButtonRow.d.ts +15 -15
- package/react/components/common/ButtonRow.js +24 -24
- package/react/components/common/ButtonRow.js.map +1 -1
- package/react/components/common/Checkbox.d.ts +12 -12
- package/react/components/common/Checkbox.js +19 -19
- package/react/components/common/Checkbox.js.map +1 -1
- package/react/components/common/ContextMenu.d.ts +13 -13
- package/react/components/common/ContextMenu.d.ts.map +1 -1
- package/react/components/common/ContextMenu.js +62 -62
- package/react/components/common/ContextMenu.js.map +1 -1
- package/react/components/common/Dropdown.d.ts +14 -14
- package/react/components/common/Dropdown.d.ts.map +1 -1
- package/react/components/common/Dropdown.js +82 -82
- package/react/components/common/Dropdown.js.map +1 -1
- package/react/components/common/DropdownButton.d.ts +10 -10
- package/react/components/common/DropdownButton.d.ts.map +1 -1
- package/react/components/common/DropdownButton.js +52 -52
- package/react/components/common/DropdownButton.js.map +1 -1
- package/react/components/common/ErrorBoundary.d.ts +35 -35
- package/react/components/common/ErrorBoundary.d.ts.map +1 -1
- package/react/components/common/ErrorBoundary.js +43 -43
- package/react/components/common/ErrorBoundary.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +20 -20
- package/react/components/common/FinsembleIcon.d.ts.map +1 -1
- package/react/components/common/FinsembleIcon.js +150 -150
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleToggle.d.ts +9 -9
- package/react/components/common/FinsembleToggle.d.ts.map +1 -1
- package/react/components/common/FinsembleToggle.js +11 -11
- package/react/components/common/FinsembleToggleButtonBar.d.ts +15 -15
- package/react/components/common/FinsembleToggleButtonBar.d.ts.map +1 -1
- package/react/components/common/FinsembleToggleButtonBar.js +39 -39
- package/react/components/common/FinsembleToggleButtonBar.js.map +1 -1
- package/react/components/common/Header.d.ts +13 -13
- package/react/components/common/Header.d.ts.map +1 -1
- package/react/components/common/Header.js +20 -20
- package/react/components/common/Header.js.map +1 -1
- package/react/components/common/TimeSelect.d.ts +16 -16
- package/react/components/common/TimeSelect.d.ts.map +1 -1
- package/react/components/common/TimeSelect.js +173 -173
- package/react/components/common/TimeSelect.js.map +1 -1
- package/react/components/common/css/icon.css +0 -2
- package/react/components/common/loadCSSAsStyle.d.ts +3 -0
- package/react/components/common/loadCSSAsStyle.d.ts.map +1 -0
- package/react/components/common/loadCSSAsStyle.js +18 -0
- package/react/components/common/loadCSSAsStyle.js.map +1 -0
- package/react/components/downloadManager/DownloadItem.d.ts +14 -14
- package/react/components/downloadManager/DownloadItem.d.ts.map +1 -1
- package/react/components/downloadManager/DownloadItem.js +76 -76
- package/react/components/downloadManager/DownloadItem.js.map +1 -1
- package/react/components/downloadManager/DownloadManager.d.ts +9 -9
- package/react/components/downloadManager/DownloadManager.d.ts.map +1 -1
- package/react/components/downloadManager/DownloadManager.js +39 -39
- package/react/components/downloadManager/DownloadManager.js.map +1 -1
- package/react/components/downloadManager/index.d.ts +1 -1
- package/react/components/downloadManager/index.js +1 -1
- package/react/components/favorites/FavoriteMaker.d.ts +17 -17
- package/react/components/favorites/FavoriteMaker.d.ts.map +1 -1
- package/react/components/favorites/FavoriteMaker.js +41 -41
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/favorites/FavoritesShell.d.ts +7 -7
- package/react/components/favorites/FavoritesShell.d.ts.map +1 -1
- package/react/components/favorites/FavoritesShell.js +40 -40
- package/react/components/favorites/FavoritesShell.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.d.ts +12 -8
- package/react/components/fdc3Resolver/ResolverContainer.d.ts.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js +98 -98
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.d.ts +31 -31
- package/react/components/fdc3Resolver/ResolverDialog.d.ts.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.js +167 -164
- package/react/components/fdc3Resolver/ResolverDialog.js.map +1 -1
- package/react/components/fdc3Resolver/index.d.ts +1 -1
- package/react/components/fdc3Resolver/index.js +1 -1
- package/react/components/icon/Icon.d.ts +21 -21
- package/react/components/icon/Icon.d.ts.map +1 -1
- package/react/components/icon/Icon.js +102 -102
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/icon/index.d.ts +1 -1
- package/react/components/icon/index.js +1 -1
- package/react/components/index.d.ts +28 -28
- package/react/components/index.js +28 -28
- package/react/components/legacyControls/FinsembleDialog.d.ts +18 -18
- package/react/components/legacyControls/FinsembleDialog.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDialog.js +47 -47
- package/react/components/legacyControls/FinsembleDialog.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.d.ts +16 -16
- package/react/components/legacyControls/FinsembleDialogButton.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDialogButton.js +21 -21
- package/react/components/legacyControls/FinsembleDialogButton.js.map +1 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.d.ts +14 -14
- package/react/components/legacyControls/FinsembleDialogQuestion.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDialogQuestion.js +16 -16
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts +22 -22
- package/react/components/legacyControls/FinsembleDialogTextInput.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDialogTextInput.js +64 -64
- package/react/components/legacyControls/FinsembleDialogTextInput.js.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.d.ts +46 -46
- package/react/components/legacyControls/FinsembleDnDContext.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.js +308 -308
- package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.d.ts +15 -15
- package/react/components/legacyControls/FinsembleDraggable.d.ts.map +1 -1
- package/react/components/legacyControls/FinsembleDraggable.js +21 -21
- package/react/components/legacyControls/FinsembleDraggable.js.map +1 -1
- package/react/components/linker/LinkerMenu.d.ts +10 -6
- package/react/components/linker/LinkerMenu.d.ts.map +1 -1
- package/react/components/linker/LinkerMenu.js +155 -155
- package/react/components/linker/LinkerMenu.js.map +1 -1
- package/react/components/linker/LinkerMenuDeprecated.d.ts +13 -7
- package/react/components/linker/LinkerMenuDeprecated.d.ts.map +1 -1
- package/react/components/linker/LinkerMenuDeprecated.js +38 -38
- package/react/components/linker/LinkerMenuDeprecated.js.map +1 -1
- package/react/components/linker/index.d.ts +1 -1
- package/react/components/linker/index.js +1 -1
- package/react/components/linker/remoteRedux.d.ts +3 -3
- package/react/components/linker/remoteRedux.d.ts.map +1 -1
- package/react/components/linker/remoteRedux.js +10 -9
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/menu/Menu.d.ts +29 -29
- package/react/components/menu/Menu.d.ts.map +1 -1
- package/react/components/menu/Menu.js +25 -25
- package/react/components/menu/Menu.js.map +1 -1
- package/react/components/menu/MenuAutoResizer.d.ts +19 -18
- package/react/components/menu/MenuAutoResizer.d.ts.map +1 -1
- package/react/components/menu/MenuAutoResizer.js +125 -67
- package/react/components/menu/MenuAutoResizer.js.map +1 -1
- package/react/components/menu/MenuContent.d.ts +11 -11
- package/react/components/menu/MenuContent.d.ts.map +1 -1
- package/react/components/menu/MenuContent.js +14 -14
- package/react/components/menu/MenuHotKey.d.ts +20 -20
- package/react/components/menu/MenuHotKey.d.ts.map +1 -1
- package/react/components/menu/MenuHotKey.js +45 -45
- package/react/components/menu/MenuHotKey.js.map +1 -1
- package/react/components/menu/MenuItem.d.ts +19 -19
- package/react/components/menu/MenuItem.d.ts.map +1 -1
- package/react/components/menu/MenuItem.js +28 -21
- package/react/components/menu/MenuItem.js.map +1 -1
- package/react/components/menu/MenuPortal.d.ts +7 -7
- package/react/components/menu/MenuPortal.d.ts.map +1 -1
- package/react/components/menu/MenuPortal.js +321 -245
- package/react/components/menu/MenuPortal.js.map +1 -1
- package/react/components/menu/MenuShell.d.ts +31 -31
- package/react/components/menu/MenuShell.d.ts.map +1 -1
- package/react/components/menu/MenuShell.js +47 -47
- package/react/components/menu/MenuToggle.d.ts +7 -7
- package/react/components/menu/MenuToggle.d.ts.map +1 -1
- package/react/components/menu/MenuToggle.js +19 -18
- package/react/components/menu/MenuToggle.js.map +1 -1
- package/react/components/menu/index.d.ts +5 -5
- package/react/components/menu/index.js +5 -5
- package/react/components/menu/keyboardNavigation.d.ts +13 -13
- package/react/components/menu/keyboardNavigation.d.ts.map +1 -1
- package/react/components/menu/keyboardNavigation.js +197 -195
- package/react/components/menu/keyboardNavigation.js.map +1 -1
- package/react/components/menu/menuContext.d.ts +16 -17
- package/react/components/menu/menuContext.d.ts.map +1 -1
- package/react/components/menu/menuContext.js +8 -8
- package/react/components/menu/menuHelpers.d.ts +32 -32
- package/react/components/menu/menuHelpers.d.ts.map +1 -1
- package/react/components/menu/menuHelpers.js +112 -112
- package/react/components/menu/menuHelpers.js.map +1 -1
- package/react/components/notifications/components/NoNotifications.d.ts +3 -3
- package/react/components/notifications/components/NoNotifications.d.ts.map +1 -1
- package/react/components/notifications/components/NoNotifications.js +4 -4
- package/react/components/notifications/components/notificationsCenter/NotificationCenterUtils.d.ts +18 -18
- package/react/components/notifications/components/notificationsCenter/NotificationCenterUtils.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationCenterUtils.js +83 -83
- package/react/components/notifications/components/notificationsCenter/NotificationCenterUtils.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.d.ts +5 -5
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js +44 -44
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/CardView.d.ts +4 -4
- package/react/components/notifications/components/notificationsCenter/components/CardView.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/CardView.js +91 -91
- package/react/components/notifications/components/notificationsCenter/components/CardView.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/Drawer.d.ts +7 -7
- package/react/components/notifications/components/notificationsCenter/components/Drawer.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/Drawer.js +4 -4
- package/react/components/notifications/components/notificationsCenter/components/DrawerControls.d.ts +3 -3
- package/react/components/notifications/components/notificationsCenter/components/DrawerControls.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/DrawerControls.js +93 -93
- package/react/components/notifications/components/notificationsCenter/components/DrawerControls.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/DrawerHeader.d.ts +7 -7
- package/react/components/notifications/components/notificationsCenter/components/DrawerHeader.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/DrawerHeader.js +80 -77
- package/react/components/notifications/components/notificationsCenter/components/DrawerHeader.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/ListView.d.ts +14 -14
- package/react/components/notifications/components/notificationsCenter/components/ListView.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/ListView.js +150 -150
- package/react/components/notifications/components/notificationsCenter/components/ListView.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationCenterMainView.d.ts +18 -18
- package/react/components/notifications/components/notificationsCenter/components/NotificationCenterMainView.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationCenterMainView.js +68 -68
- package/react/components/notifications/components/notificationsCenter/components/NotificationCenterMainView.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationDetailsView.d.ts +6 -6
- package/react/components/notifications/components/notificationsCenter/components/NotificationDetailsView.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationDetailsView.js +63 -63
- package/react/components/notifications/components/notificationsCenter/components/NotificationDetailsView.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationsCenterWindow.d.ts +9 -9
- package/react/components/notifications/components/notificationsCenter/components/NotificationsCenterWindow.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsCenter/components/NotificationsCenterWindow.js +312 -303
- package/react/components/notifications/components/notificationsCenter/components/NotificationsCenterWindow.js.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.d.ts +4 -4
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.d.ts.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js +220 -220
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.d.ts +5 -5
- package/react/components/notifications/components/shared/CheckButton.d.ts.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.js +38 -38
- package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
- package/react/components/notifications/components/shared/IconButton.d.ts +10 -10
- package/react/components/notifications/components/shared/IconButton.d.ts.map +1 -1
- package/react/components/notifications/components/shared/IconButton.js +10 -10
- package/react/components/notifications/components/shared/IconButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts +20 -20
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.js +92 -92
- package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +5 -5
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js +31 -31
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.d.ts +4 -4
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyContentLogo.js +6 -6
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +8 -8
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js +12 -12
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +13 -13
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js +149 -149
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.d.ts +4 -4
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderLogo.js +7 -7
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +10 -10
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js +18 -18
- package/react/components/notifications/constants.d.ts +9 -9
- package/react/components/notifications/constants.js +11 -11
- package/react/components/notifications/css/notification-card.css +1 -1
- package/react/components/notifications/icons/EnvelopeClose.d.ts +2 -2
- package/react/components/notifications/icons/EnvelopeClose.d.ts.map +1 -1
- package/react/components/notifications/icons/EnvelopeClose.js +11 -11
- package/react/components/notifications/icons/EnvelopeOpen.d.ts +2 -2
- package/react/components/notifications/icons/EnvelopeOpen.d.ts.map +1 -1
- package/react/components/notifications/icons/EnvelopeOpen.js +10 -10
- package/react/components/notifications/icons/SnoozeIcon.d.ts +2 -2
- package/react/components/notifications/icons/SnoozeIcon.d.ts.map +1 -1
- package/react/components/notifications/icons/SnoozeIcon.js +12 -12
- package/react/components/notifications/index.d.ts +8 -8
- package/react/components/notifications/index.js +8 -8
- package/react/components/notifications/notificationsContext.d.ts +6 -7
- package/react/components/notifications/notificationsContext.d.ts.map +1 -1
- package/react/components/notifications/notificationsContext.js +6 -6
- package/react/components/notifications/types.d.ts +90 -90
- package/react/components/notifications/types.d.ts.map +1 -1
- package/react/components/notifications/types.js +1 -1
- package/react/components/notifications/utils.d.ts +12 -12
- package/react/components/notifications/utils.js +70 -70
- package/react/components/notifications/utils.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.d.ts +6 -6
- package/react/components/processMonitor/ProcessMonitor.d.ts.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.js +64 -64
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts +22 -22
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.js +1 -1
- package/react/components/processMonitor/components/ChildWindow.d.ts +11 -11
- package/react/components/processMonitor/components/ChildWindow.d.ts.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.js +32 -32
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.d.ts +8 -8
- package/react/components/processMonitor/components/ListHeader.d.ts.map +1 -1
- package/react/components/processMonitor/components/ListHeader.js +50 -50
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/Process.d.ts +9 -9
- package/react/components/processMonitor/components/Process.d.ts.map +1 -1
- package/react/components/processMonitor/components/Process.js +10 -10
- package/react/components/processMonitor/components/ProcessStatistics.d.ts +10 -10
- package/react/components/processMonitor/components/ProcessStatistics.d.ts.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js +64 -64
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.d.ts +8 -8
- package/react/components/processMonitor/constants.js +23 -23
- package/react/components/processMonitor/helpers.d.ts +17 -17
- package/react/components/processMonitor/helpers.js +48 -48
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/index.d.ts +1 -1
- package/react/components/processMonitor/index.js +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +58 -58
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +264 -264
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/quickComponentForm/QuickComponentForm.d.ts +7 -7
- package/react/components/quickComponentForm/QuickComponentForm.d.ts.map +1 -1
- package/react/components/quickComponentForm/QuickComponentForm.js +123 -123
- package/react/components/quickComponentForm/QuickComponentForm.js.map +1 -1
- package/react/components/quickComponentForm/index.d.ts +1 -1
- package/react/components/quickComponentForm/index.js +1 -1
- package/react/components/search/Highlight.d.ts +12 -12
- package/react/components/search/Highlight.d.ts.map +1 -1
- package/react/components/search/Highlight.js +41 -41
- package/react/components/search/Highlight.js.map +1 -1
- package/react/components/search/Search.d.ts +5 -5
- package/react/components/search/Search.d.ts.map +1 -1
- package/react/components/search/Search.js +19 -27
- package/react/components/search/Search.js.map +1 -1
- package/react/components/search/SearchBestMatch.d.ts +6 -6
- package/react/components/search/SearchBestMatch.d.ts.map +1 -1
- package/react/components/search/SearchBestMatch.js +38 -38
- package/react/components/search/SearchBestMatch.js.map +1 -1
- package/react/components/search/SearchInput.d.ts +6 -6
- package/react/components/search/SearchInput.d.ts.map +1 -1
- package/react/components/search/SearchInput.js +26 -26
- package/react/components/search/SearchInput.js.map +1 -1
- package/react/components/search/SearchProviderResults.d.ts +5 -5
- package/react/components/search/SearchProviderResults.d.ts.map +1 -1
- package/react/components/search/SearchProviderResults.js +26 -26
- package/react/components/search/SearchResult.d.ts +12 -12
- package/react/components/search/SearchResult.d.ts.map +1 -1
- package/react/components/search/SearchResult.js +52 -47
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/search/SearchResults.d.ts +3 -3
- package/react/components/search/SearchResults.d.ts.map +1 -1
- package/react/components/search/SearchResults.js +21 -21
- package/react/components/search/SearchResults.js.map +1 -1
- package/react/components/search/index.d.ts +1 -1
- package/react/components/search/index.js +1 -1
- package/react/components/shared/BellIcon.d.ts +3 -3
- package/react/components/shared/BellIcon.d.ts.map +1 -1
- package/react/components/shared/BellIcon.js +7 -7
- package/react/components/shared/BellIconCrossed.d.ts +3 -3
- package/react/components/shared/BellIconCrossed.d.ts.map +1 -1
- package/react/components/shared/BellIconCrossed.js +9 -9
- package/react/components/shared/Button.d.ts +9 -9
- package/react/components/shared/Button.d.ts.map +1 -1
- package/react/components/shared/Button.js +5 -5
- package/react/components/shared/ConditionalWrapper.d.ts +8 -8
- package/react/components/shared/ConditionalWrapper.d.ts.map +1 -1
- package/react/components/shared/ConditionalWrapper.js +5 -5
- package/react/components/shared/DefaultDropdownButton.d.ts +18 -18
- package/react/components/shared/DefaultDropdownButton.d.ts.map +1 -1
- package/react/components/shared/DefaultDropdownButton.js +117 -117
- package/react/components/shared/DefaultDropdownButton.js.map +1 -1
- package/react/components/shared/Tag.d.ts +16 -8
- package/react/components/shared/Tag.d.ts.map +1 -1
- package/react/components/shared/Tag.js +22 -22
- package/react/components/shared/TagsMenu.d.ts +36 -36
- package/react/components/shared/TagsMenu.js +77 -77
- package/react/components/shared/TagsMenu.js.map +1 -1
- package/react/components/shared/addProtocolToValidURL.d.ts +7 -7
- package/react/components/shared/addProtocolToValidURL.js +11 -11
- package/react/components/shared/openQuitConfirmationDialog.d.ts +1 -1
- package/react/components/shared/openQuitConfirmationDialog.d.ts.map +1 -1
- package/react/components/shared/openQuitConfirmationDialog.js +73 -71
- package/react/components/shared/openQuitConfirmationDialog.js.map +1 -1
- package/react/components/shared/validateURL.d.ts +19 -19
- package/react/components/shared/validateURL.js +29 -29
- package/react/components/singleInputDialog/SingleInputDialog.d.ts +12 -8
- package/react/components/singleInputDialog/SingleInputDialog.d.ts.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.js +112 -112
- package/react/components/singleInputDialog/SingleInputDialog.js.map +1 -1
- package/react/components/singleInputDialog/index.d.ts +1 -1
- package/react/components/singleInputDialog/index.js +1 -1
- package/react/components/system/System.d.ts +34 -34
- package/react/components/system/System.d.ts.map +1 -1
- package/react/components/system/System.js +92 -93
- package/react/components/system/System.js.map +1 -1
- package/react/components/system/SystemTrayComponentShell.d.ts +14 -14
- package/react/components/system/SystemTrayComponentShell.d.ts.map +1 -1
- package/react/components/system/SystemTrayComponentShell.js +47 -45
- package/react/components/system/SystemTrayComponentShell.js.map +1 -1
- package/react/components/system/index.d.ts +2 -2
- package/react/components/system/index.js +2 -2
- package/react/components/toolbar/AlwaysOnTop.d.ts +10 -10
- package/react/components/toolbar/AlwaysOnTop.d.ts.map +1 -1
- package/react/components/toolbar/AlwaysOnTop.js +95 -78
- package/react/components/toolbar/AlwaysOnTop.js.map +1 -1
- package/react/components/toolbar/AutoArrange.d.ts +12 -12
- package/react/components/toolbar/AutoArrange.d.ts.map +1 -1
- package/react/components/toolbar/AutoArrange.js +36 -36
- package/react/components/toolbar/AutoArrange.js.map +1 -1
- package/react/components/toolbar/DownloadButton.d.ts +10 -10
- package/react/components/toolbar/DownloadButton.d.ts.map +1 -1
- package/react/components/toolbar/DownloadButton.js +43 -46
- package/react/components/toolbar/DownloadButton.js.map +1 -1
- package/react/components/toolbar/DragHandle.d.ts +11 -11
- package/react/components/toolbar/DragHandle.d.ts.map +1 -1
- package/react/components/toolbar/DragHandle.js +49 -49
- package/react/components/toolbar/MinimizeAll.d.ts +11 -11
- package/react/components/toolbar/MinimizeAll.d.ts.map +1 -1
- package/react/components/toolbar/MinimizeAll.js +24 -24
- package/react/components/toolbar/MinimizeAll.js.map +1 -1
- package/react/components/toolbar/NotificationControl.d.ts +12 -12
- package/react/components/toolbar/NotificationControl.d.ts.map +1 -1
- package/react/components/toolbar/NotificationControl.js +85 -79
- package/react/components/toolbar/NotificationControl.js.map +1 -1
- package/react/components/toolbar/RevealAll.d.ts +11 -11
- package/react/components/toolbar/RevealAll.d.ts.map +1 -1
- package/react/components/toolbar/RevealAll.js +26 -26
- package/react/components/toolbar/RevealAll.js.map +1 -1
- package/react/components/toolbar/SddButton.d.ts +6 -6
- package/react/components/toolbar/SddButton.d.ts.map +1 -1
- package/react/components/toolbar/SddButton.js +27 -27
- package/react/components/toolbar/SddButton.js.map +1 -1
- package/react/components/toolbar/ToolbarIcon.d.ts +6 -6
- package/react/components/toolbar/ToolbarIcon.d.ts.map +1 -1
- package/react/components/toolbar/ToolbarIcon.js +29 -41
- package/react/components/toolbar/ToolbarIcon.js.map +1 -1
- package/react/components/toolbar/ToolbarSection.d.ts +16 -16
- package/react/components/toolbar/ToolbarSection.d.ts.map +1 -1
- package/react/components/toolbar/ToolbarSection.js +41 -41
- package/react/components/toolbar/ToolbarSection.js.map +1 -1
- package/react/components/toolbar/ToolbarShell.d.ts +20 -20
- package/react/components/toolbar/ToolbarShell.d.ts.map +1 -1
- package/react/components/toolbar/ToolbarShell.js +35 -35
- package/react/components/toolbar/ToolbarShell.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.d.ts +10 -10
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js +26 -33
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/AdvancedAppLauncher.d.ts +43 -42
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/AdvancedAppLauncher.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/AdvancedAppLauncher.js +97 -89
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AddNewAppForm.d.ts +93 -93
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AddNewAppForm.js +334 -333
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AddNewAppForm.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AddNewFolder.d.ts +10 -10
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AddNewFolder.js +15 -15
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppActionsMenu.d.ts +56 -56
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppActionsMenu.js +175 -175
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppActionsMenu.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppDefinition.d.ts +33 -33
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppDefinition.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppDefinition.js +53 -53
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppTagsList.d.ts +16 -16
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppTagsList.js +43 -43
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/AppTagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/Content.d.ts +38 -38
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/Content.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/Content.js +172 -171
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FilterSort.d.ts +20 -20
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FilterSort.js +52 -52
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FilterSort.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FoldersList.d.ts +59 -59
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FoldersList.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FoldersList.js +308 -295
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/LeftNavBottomLinks.d.ts +25 -25
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/LeftNavBottomLinks.js +103 -103
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/NoAppsFound.d.ts +11 -11
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/NoAppsFound.js +9 -9
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/SearchBox.d.ts +18 -18
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/SearchBox.js +51 -51
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/SortBy.d.ts +13 -13
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/SortBy.js +34 -34
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/TagsList.d.ts +19 -19
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/TagsList.js +38 -38
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/ToggleFavoriteDropdown.d.ts +8 -8
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/ToggleFavoriteDropdown.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/ToggleFavoriteDropdown.js +26 -26
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/components/ToggleFavoriteDropdown.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/AppDirectory.d.ts +8 -8
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/AppDirectory.js +10 -10
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/FDC3.d.ts +55 -55
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/FDC3.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/FDC3.js +145 -145
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/modules/FDC3.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/LauncherStore.d.ts +5 -5
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/LauncherStore.js +21 -21
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/LauncherStore.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/StoreActions.d.ts +96 -96
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/StoreActions.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/StoreActions.js +548 -546
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/utils/sort-functions.d.ts +18 -18
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/utils/sort-functions.js +55 -55
- package/react/components/toolbar/advancedAppLauncher/finsembleAdvancedAppLauncher/utils/sort-functions.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.d.ts +16 -16
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.js +279 -240
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AddNewAppForm.d.ts +96 -96
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AddNewAppForm.js +329 -328
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AddNewAppForm.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.d.ts +40 -40
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.js +61 -61
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppTagsList.d.ts +17 -17
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppTagsList.js +42 -42
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/AppTagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.d.ts +18 -18
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.js +114 -114
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.d.ts +62 -62
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.js +260 -271
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.d.ts +9 -9
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.js +36 -37
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/LeftNavBottomLinks.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/NoAppsFound.d.ts +11 -11
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/NoAppsFound.js +9 -9
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SearchBox.d.ts +12 -12
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SearchBox.js +23 -23
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.d.ts +12 -12
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.js +16 -16
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/SortBy.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/TagsList.d.ts +11 -11
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/components/TagsList.js +15 -15
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/constants.d.ts +4 -4
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/constants.js +4 -4
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/initializeStore.d.ts +26 -26
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/initializeStore.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/initializeStore.js +44 -42
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/initializeStore.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/types.d.ts +19 -19
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/types.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/types.js +1 -1
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/utils/sort-functions.d.ts +16 -16
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/utils/sort-functions.js +46 -46
- package/react/components/toolbar/advancedAppLauncher/iocdAdvancedAppLauncher/utils/sort-functions.js.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.d.ts +28 -28
- package/react/components/toolbar/appLauncher/AppLauncherMenu.d.ts.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js +48 -48
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts +29 -29
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.d.ts.map +1 -1
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js +54 -48
- package/react/components/toolbar/appLauncher/StaticAppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/appLauncher.css +0 -6
- package/react/components/toolbar/appLauncher/components/componentList.d.ts +14 -7
- package/react/components/toolbar/appLauncher/components/componentList.d.ts.map +1 -1
- package/react/components/toolbar/appLauncher/components/componentList.js +133 -133
- package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +44 -44
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js +274 -259
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
- package/react/components/toolbar/bloomberg/BloombergStatus.d.ts +4 -4
- package/react/components/toolbar/bloomberg/BloombergStatus.d.ts.map +1 -1
- package/react/components/toolbar/bloomberg/BloombergStatus.js +109 -109
- package/react/components/toolbar/bloomberg/BloombergStatus.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.d.ts +4 -4
- package/react/components/toolbar/dashbar/Dashbar.d.ts.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +441 -449
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.d.ts +17 -17
- package/react/components/toolbar/dashbar/DashbarItem.d.ts.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.js +58 -58
- package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
- package/react/components/toolbar/index.d.ts +18 -18
- package/react/components/toolbar/index.js +18 -18
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +21 -21
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js +62 -56
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +23 -23
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js +76 -76
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts +8 -3
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js +50 -50
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +14 -9
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js +24 -24
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +136 -136
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +684 -684
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/userPreferences/NotificationsPreferencesContext.d.ts +14 -15
- package/react/components/userPreferences/NotificationsPreferencesContext.d.ts.map +1 -1
- package/react/components/userPreferences/NotificationsPreferencesContext.js +6 -6
- package/react/components/userPreferences/UserPreferenceTypes.d.ts +9 -9
- package/react/components/userPreferences/UserPreferenceTypes.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferenceTypes.js +1 -1
- package/react/components/userPreferences/UserPreferences.d.ts +20 -16
- package/react/components/userPreferences/UserPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferences.js +27 -24
- package/react/components/userPreferences/UserPreferences.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.d.ts +3 -11
- package/react/components/userPreferences/UserPreferencesBase.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferencesBase.js +101 -101
- package/react/components/userPreferences/UserPreferencesBase.js.map +1 -1
- package/react/components/userPreferences/UserPreferencesWrapper.d.ts +4 -4
- package/react/components/userPreferences/UserPreferencesWrapper.d.ts.map +1 -1
- package/react/components/userPreferences/UserPreferencesWrapper.js +32 -28
- package/react/components/userPreferences/UserPreferencesWrapper.js.map +1 -1
- package/react/components/userPreferences/components/ContentSection.d.ts +23 -12
- package/react/components/userPreferences/components/ContentSection.d.ts.map +1 -1
- package/react/components/userPreferences/components/ContentSection.js +21 -21
- package/react/components/userPreferences/components/ContentSection.js.map +1 -1
- package/react/components/userPreferences/components/LeftNav.d.ts +14 -14
- package/react/components/userPreferences/components/LeftNav.d.ts.map +1 -1
- package/react/components/userPreferences/components/LeftNav.js +31 -31
- package/react/components/userPreferences/components/LeftNav.js.map +1 -1
- package/react/components/userPreferences/components/content/BloombergPreferences.d.ts +3 -3
- package/react/components/userPreferences/components/content/BloombergPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/BloombergPreferences.js +58 -58
- package/react/components/userPreferences/components/content/BloombergPreferences.js.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditor.d.ts +8 -8
- package/react/components/userPreferences/components/content/DashbarEditor.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditor.js +129 -129
- package/react/components/userPreferences/components/content/DashbarEditor.js.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditorItem.d.ts +10 -10
- package/react/components/userPreferences/components/content/DashbarEditorItem.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/DashbarEditorItem.js +10 -10
- package/react/components/userPreferences/components/content/General.d.ts +3 -4
- package/react/components/userPreferences/components/content/General.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/General.js +48 -29
- package/react/components/userPreferences/components/content/General.js.map +1 -1
- package/react/components/userPreferences/components/content/Notifications.d.ts +11 -11
- package/react/components/userPreferences/components/content/Notifications.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/Notifications.js +39 -35
- package/react/components/userPreferences/components/content/Notifications.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.d.ts +88 -88
- package/react/components/userPreferences/components/content/Workspaces.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.js +546 -529
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.d.ts +3 -3
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js +220 -211
- package/react/components/userPreferences/components/content/notificationViews/NotificationsPreferencesHome.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.d.ts +3 -3
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js +134 -134
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.d.ts +3 -3
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js +79 -79
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourcesPreferences.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.d.ts +4 -4
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js +39 -39
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
- package/react/components/userPreferences/components/general/DownloadPreferences.d.ts +9 -9
- package/react/components/userPreferences/components/general/DownloadPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/general/DownloadPreferences.js +119 -111
- package/react/components/userPreferences/components/general/DownloadPreferences.js.map +1 -1
- package/react/components/userPreferences/components/general/ResetPreferences.d.ts +3 -4
- package/react/components/userPreferences/components/general/ResetPreferences.d.ts.map +1 -1
- package/react/components/userPreferences/components/general/ResetPreferences.js +42 -36
- package/react/components/userPreferences/components/general/ResetPreferences.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledClose.d.ts +10 -10
- package/react/components/userPreferences/components/general/ScheduledClose.d.ts.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledClose.js +133 -76
- package/react/components/userPreferences/components/general/ScheduledClose.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.d.ts +8 -8
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.d.ts.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js +8 -8
- package/react/components/userPreferences/components/workspaces/WorkspaceButton.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.d.ts +6 -6
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.d.ts.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceComponents.js +10 -10
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.d.ts +36 -35
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.d.ts.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js +85 -86
- package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.d.ts +8 -8
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.d.ts.map +1 -1
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js +6 -20
- package/react/components/userPreferences/components/workspaces/WorkspaceItemList.js.map +1 -1
- package/react/components/userPreferences/index.d.ts +6 -6
- package/react/components/userPreferences/index.js +6 -6
- package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +39 -39
- package/react/components/userPreferences/stores/UserPreferencesStore.js +140 -140
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/utils.d.ts +49 -49
- package/react/components/utils.d.ts.map +1 -1
- package/react/components/utils.js +59 -59
- package/react/components/utils.js.map +1 -1
- package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts +8 -8
- package/react/components/windowTitleBar/AlwaysOnTopButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/AlwaysOnTopButton.js +28 -28
- package/react/components/windowTitleBar/CloneButton.d.ts +2 -2
- package/react/components/windowTitleBar/CloneButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/CloneButton.js +22 -22
- package/react/components/windowTitleBar/CloneButton.js.map +1 -1
- package/react/components/windowTitleBar/CloseButton.d.ts +2 -2
- package/react/components/windowTitleBar/CloseButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/CloseButton.js +21 -21
- package/react/components/windowTitleBar/CloseButton.js.map +1 -1
- package/react/components/windowTitleBar/GroupingButton.d.ts +2 -2
- package/react/components/windowTitleBar/GroupingButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/GroupingButton.js +24 -24
- package/react/components/windowTitleBar/LinkerButton.d.ts +10 -6
- package/react/components/windowTitleBar/LinkerButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/LinkerButton.js +116 -116
- package/react/components/windowTitleBar/LinkerButton.js.map +1 -1
- package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts +10 -6
- package/react/components/windowTitleBar/LinkerButtonDeprecated.d.ts.map +1 -1
- package/react/components/windowTitleBar/LinkerButtonDeprecated.js +62 -62
- package/react/components/windowTitleBar/LinkerButtonDeprecated.js.map +1 -1
- package/react/components/windowTitleBar/LinkerGroups.d.ts +6 -2
- package/react/components/windowTitleBar/LinkerGroups.d.ts.map +1 -1
- package/react/components/windowTitleBar/LinkerGroups.js +20 -20
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts +6 -2
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.d.ts.map +1 -1
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.js +34 -34
- package/react/components/windowTitleBar/LinkerGroupsDeprecated.js.map +1 -1
- package/react/components/windowTitleBar/MaximizeButton.d.ts +2 -2
- package/react/components/windowTitleBar/MaximizeButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/MaximizeButton.js +17 -17
- package/react/components/windowTitleBar/MinimizeButton.d.ts +2 -2
- package/react/components/windowTitleBar/MinimizeButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/MinimizeButton.js +20 -20
- package/react/components/windowTitleBar/ShareButton.d.ts +2 -2
- package/react/components/windowTitleBar/ShareButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/ShareButton.js +23 -23
- package/react/components/windowTitleBar/TabRegion.d.ts +30 -30
- package/react/components/windowTitleBar/TabRegion.d.ts.map +1 -1
- package/react/components/windowTitleBar/TabRegion.js +502 -490
- package/react/components/windowTitleBar/TabRegion.js.map +1 -1
- package/react/components/windowTitleBar/TabTitle.d.ts +7 -7
- package/react/components/windowTitleBar/TabTitle.d.ts.map +1 -1
- package/react/components/windowTitleBar/TabTitle.js +16 -16
- package/react/components/windowTitleBar/TabTitle.js.map +1 -1
- package/react/components/windowTitleBar/TitleEdit.d.ts +9 -9
- package/react/components/windowTitleBar/TitleEdit.d.ts.map +1 -1
- package/react/components/windowTitleBar/TitleEdit.js +30 -29
- package/react/components/windowTitleBar/TitleEdit.js.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarContext.d.ts +10 -11
- package/react/components/windowTitleBar/WindowTitleBarContext.d.ts.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarContext.js +2 -2
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +16 -16
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.js +46 -45
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/getOrCreateWindowTitleBarContainer.d.ts +9 -9
- package/react/components/windowTitleBar/getOrCreateWindowTitleBarContainer.js +22 -22
- package/react/components/windowTitleBar/index.d.ts +12 -12
- package/react/components/windowTitleBar/index.js +12 -12
- package/react/components/windowTitleBar/useKeyboardNavigation.d.ts +6 -6
- package/react/components/windowTitleBar/useKeyboardNavigation.js +56 -56
- package/react/components/windowTitleBar/useKeyboardNavigation.js.map +1 -1
- package/react/components/windowTitleBar/useMaximize.d.ts +4 -4
- package/react/components/windowTitleBar/useMaximize.js +22 -22
- package/react/components/yesNoDialog/YesNoDialog.d.ts +11 -7
- package/react/components/yesNoDialog/YesNoDialog.d.ts.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.js +154 -154
- package/react/components/yesNoDialog/YesNoDialog.js.map +1 -1
- package/react/components/yesNoDialog/index.d.ts +1 -1
- package/react/components/yesNoDialog/index.js +1 -1
- package/react/components/yesNoDialog/timer.d.ts +15 -16
- package/react/components/yesNoDialog/timer.d.ts.map +1 -1
- package/react/components/yesNoDialog/timer.js +32 -32
- package/react/components/yesNoDialog/timer.js.map +1 -1
- package/react/hooks/index.d.ts +4 -4
- package/react/hooks/index.js +4 -4
- package/react/hooks/useAuth.d.ts +10 -10
- package/react/hooks/useAuth.d.ts.map +1 -1
- package/react/hooks/useAuth.js +26 -26
- package/react/hooks/useDashbar.d.ts +8 -8
- package/react/hooks/useDashbar.d.ts.map +1 -1
- package/react/hooks/useDashbar.js +115 -115
- package/react/hooks/useDashbar.js.map +1 -1
- package/react/hooks/useDeepEffect.d.ts +5 -5
- package/react/hooks/useDeepEffect.js +33 -33
- package/react/hooks/useDeepEffect.js.map +1 -1
- package/react/hooks/useDownloadItems.d.ts +23 -23
- package/react/hooks/useDownloadItems.d.ts.map +1 -1
- package/react/hooks/useDownloadItems.js +67 -67
- package/react/hooks/useDownloadItems.js.map +1 -1
- package/react/hooks/useDragRegion.d.ts +25 -26
- package/react/hooks/useDragRegion.d.ts.map +1 -1
- package/react/hooks/useDragRegion.js +73 -73
- package/react/hooks/useDragRegion.js.map +1 -1
- package/react/hooks/useFavorites.d.ts +24 -24
- package/react/hooks/useFavorites.d.ts.map +1 -1
- package/react/hooks/useFavorites.js +23 -23
- package/react/hooks/useFavoritesShell.d.ts +14 -14
- package/react/hooks/useFavoritesShell.d.ts.map +1 -1
- package/react/hooks/useFavoritesShell.js +76 -83
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/react/hooks/useFloatingFocus.d.ts +15 -15
- package/react/hooks/useFloatingFocus.d.ts.map +1 -1
- package/react/hooks/useFloatingFocus.js +36 -35
- package/react/hooks/useFloatingFocus.js.map +1 -1
- package/react/hooks/useHotkey.d.ts +8 -8
- package/react/hooks/useHotkey.js +24 -24
- package/react/hooks/useInjectedTitleBar.d.ts +2 -2
- package/react/hooks/useInjectedTitleBar.js +436 -436
- package/react/hooks/useInjectedTitleBar.js.map +1 -1
- package/react/hooks/useLinker.d.ts +4 -4
- package/react/hooks/useLinker.js +111 -111
- package/react/hooks/useLinker.js.map +1 -1
- package/react/hooks/useMenu.d.ts +39 -39
- package/react/hooks/useMenu.d.ts.map +1 -1
- package/react/hooks/useMenu.js +51 -51
- package/react/hooks/useNotifications.d.ts +76 -76
- package/react/hooks/useNotifications.d.ts.map +1 -1
- package/react/hooks/useNotifications.js +457 -434
- package/react/hooks/useNotifications.js.map +1 -1
- package/react/hooks/useOAuth.d.ts +16 -16
- package/react/hooks/useOAuth.d.ts.map +1 -1
- package/react/hooks/useOAuth.js +115 -115
- package/react/hooks/useOAuth.js.map +1 -1
- package/react/hooks/useOutsideClickDetector.d.ts +5 -5
- package/react/hooks/useOutsideClickDetector.d.ts.map +1 -1
- package/react/hooks/useOutsideClickDetector.js +17 -17
- package/react/hooks/useOutsideClickDetector.js.map +1 -1
- package/react/hooks/usePubSub.d.ts +21 -21
- package/react/hooks/usePubSub.js +38 -38
- package/react/hooks/usePubSub.js.map +1 -1
- package/react/hooks/useSearch.d.ts +14 -14
- package/react/hooks/useSearch.d.ts.map +1 -1
- package/react/hooks/useSearch.js +76 -72
- package/react/hooks/useSearch.js.map +1 -1
- package/react/hooks/useTitle.d.ts +17 -17
- package/react/hooks/useTitle.d.ts.map +1 -1
- package/react/hooks/useTitle.js +28 -28
- package/react/hooks/useTitle.js.map +1 -1
- package/react/hooks/useToolbar.d.ts +11 -11
- package/react/hooks/useToolbar.js +162 -162
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/index.d.ts +2 -2
- package/react/index.js +2 -2
- package/react/reducers/favoriteReducer.d.ts +11 -11
- package/react/reducers/favoriteReducer.d.ts.map +1 -1
- package/react/reducers/favoriteReducer.js +27 -27
- package/react/reducers/linkerReducer.d.ts +13 -13
- package/react/reducers/linkerReducer.d.ts.map +1 -1
- package/react/reducers/linkerReducer.js +43 -43
- package/react/reducers/linkerReducer.js.map +1 -1
- package/react/reducers/menuReducer.d.ts +36 -36
- package/react/reducers/menuReducer.d.ts.map +1 -1
- package/react/reducers/menuReducer.js +65 -65
- package/react/reducers/rootReducer.d.ts +239 -239
- package/react/reducers/rootReducer.d.ts.map +1 -1
- package/react/reducers/rootReducer.js +20 -20
- package/react/reducers/searchReducer.d.ts +15 -15
- package/react/reducers/searchReducer.d.ts.map +1 -1
- package/react/reducers/searchReducer.js +27 -27
- package/react/reducers/smartDesktopDesignerReducer.d.ts +5 -5
- package/react/reducers/smartDesktopDesignerReducer.js +190 -190
- package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
- package/react/reducers/toolbarReducer.d.ts +10 -10
- package/react/reducers/toolbarReducer.d.ts.map +1 -1
- package/react/reducers/toolbarReducer.js +29 -29
- package/react/reducers/workspaceReducer.d.ts +10 -10
- package/react/reducers/workspaceReducer.d.ts.map +1 -1
- package/react/reducers/workspaceReducer.js +26 -26
- package/react/reducers/workspaceReducer.js.map +1 -1
- package/react/store.d.ts +450 -450
- package/react/store.d.ts.map +1 -1
- package/react/store.js +17 -17
- package/react/types/advancedAppLauncherTypes.d.ts +44 -44
- package/react/types/advancedAppLauncherTypes.d.ts.map +1 -1
- package/react/types/advancedAppLauncherTypes.js +1 -1
- package/react/types/dashbarTypes.d.ts +44 -41
- package/react/types/dashbarTypes.d.ts.map +1 -1
- package/react/types/dashbarTypes.js +1 -1
- package/react/types/favoriteTypes.d.ts +8 -8
- package/react/types/favoriteTypes.d.ts.map +1 -1
- package/react/types/favoriteTypes.js +1 -1
- package/react/types/fdc3.d.ts +27 -29
- package/react/types/fdc3.d.ts.map +1 -1
- package/react/types/fdc3.js +6 -6
- package/react/types/hotkeyTypes.d.ts +1 -1
- package/react/types/hotkeyTypes.d.ts.map +1 -1
- package/react/types/hotkeyTypes.js +1 -1
- package/react/types/linkerTypes.d.ts +27 -27
- package/react/types/linkerTypes.d.ts.map +1 -1
- package/react/types/linkerTypes.js +2 -2
- package/react/types/smartDesktopDesignerTypes.d.ts +227 -227
- package/react/types/smartDesktopDesignerTypes.d.ts.map +1 -1
- package/react/types/smartDesktopDesignerTypes.js +19 -19
- package/react/types/workspaceTypes.d.ts +30 -30
- package/react/types/workspaceTypes.d.ts.map +1 -1
- package/react/types/workspaceTypes.js +1 -1
- package/services/index.d.ts +6 -0
- package/services/index.d.ts.map +1 -0
- package/services/index.js +6 -0
- package/services/index.js.map +1 -0
- package/services/logger/types.d.ts +2 -0
- package/services/logger/types.d.ts.map +1 -0
- package/services/logger/types.js +2 -0
- package/services/logger/types.js.map +1 -0
- package/services/search/types.d.ts +2 -0
- package/services/search/types.d.ts.map +1 -0
- package/services/search/types.js +2 -0
- package/services/search/types.js.map +1 -0
- package/services/storage/adapters/types.d.ts +2 -0
- package/services/storage/adapters/types.d.ts.map +1 -0
- package/services/storage/adapters/types.js +2 -0
- package/services/storage/adapters/types.js.map +1 -0
- package/services/window/types.d.ts +2 -0
- package/services/window/types.d.ts.map +1 -0
- package/services/window/types.js +2 -0
- package/services/window/types.js.map +1 -0
- package/services/workspace/types.d.ts +2 -0
- package/services/workspace/types.d.ts.map +1 -0
- package/services/workspace/types.js +2 -0
- package/services/workspace/types.js.map +1 -0
- package/typedoc-types.d.ts +8 -8
- package/typedoc-types.d.ts.map +1 -1
- package/typedoc-types.js +5 -5
- package/types.d.ts +15 -16
- package/types.d.ts.map +1 -1
- package/types.js +4 -7
- package/types.js.map +1 -1
- package/react/components/userPreferences/FinsembleUserPreferences.d.ts +0 -17
- package/react/components/userPreferences/FinsembleUserPreferences.d.ts.map +0 -1
- package/react/components/userPreferences/FinsembleUserPreferences.js +0 -28
- package/react/components/userPreferences/FinsembleUserPreferences.js.map +0 -1
- package/react/components/userPreferences/iocdUserPreferences.d.ts +0 -17
- package/react/components/userPreferences/iocdUserPreferences.d.ts.map +0 -1
- package/react/components/userPreferences/iocdUserPreferences.js +0 -49
- package/react/components/userPreferences/iocdUserPreferences.js.map +0 -1
- package/react/components/userPreferences/utils.d.ts +0 -3
- package/react/components/userPreferences/utils.d.ts.map +0 -1
- package/react/components/userPreferences/utils.js +0 -11
- package/react/components/userPreferences/utils.js.map +0 -1
- package/typedefs/FDC3/api/AppIdentifier.d.ts +0 -22
- package/typedefs/FDC3/api/AppIdentifier.d.ts.map +0 -1
- package/typedefs/FDC3/api/AppIdentifier.js +0 -6
- package/typedefs/FDC3/api/AppIdentifier.js.map +0 -1
- package/typedefs/FDC3/api/AppIntent.d.ts +0 -16
- package/typedefs/FDC3/api/AppIntent.d.ts.map +0 -1
- package/typedefs/FDC3/api/AppIntent.js +0 -6
- package/typedefs/FDC3/api/AppIntent.js.map +0 -1
- package/typedefs/FDC3/api/AppMetadata.d.ts +0 -41
- package/typedefs/FDC3/api/AppMetadata.d.ts.map +0 -1
- package/typedefs/FDC3/api/AppMetadata.js +0 -6
- package/typedefs/FDC3/api/AppMetadata.js.map +0 -1
- package/typedefs/FDC3/api/Channel.d.ts +0 -73
- package/typedefs/FDC3/api/Channel.d.ts.map +0 -1
- package/typedefs/FDC3/api/Channel.js +0 -6
- package/typedefs/FDC3/api/Channel.js.map +0 -1
- package/typedefs/FDC3/api/ContextMetadata.d.ts +0 -19
- package/typedefs/FDC3/api/ContextMetadata.d.ts.map +0 -1
- package/typedefs/FDC3/api/ContextMetadata.js +0 -6
- package/typedefs/FDC3/api/ContextMetadata.js.map +0 -1
- package/typedefs/FDC3/api/DesktopAgent.d.ts +0 -549
- package/typedefs/FDC3/api/DesktopAgent.d.ts.map +0 -1
- package/typedefs/FDC3/api/DesktopAgent.js +0 -6
- package/typedefs/FDC3/api/DesktopAgent.js.map +0 -1
- package/typedefs/FDC3/api/DisplayMetadata.d.ts +0 -24
- package/typedefs/FDC3/api/DisplayMetadata.d.ts.map +0 -1
- package/typedefs/FDC3/api/DisplayMetadata.js +0 -6
- package/typedefs/FDC3/api/DisplayMetadata.js.map +0 -1
- package/typedefs/FDC3/api/Errors.d.ts +0 -67
- package/typedefs/FDC3/api/Errors.d.ts.map +0 -1
- package/typedefs/FDC3/api/Errors.js +0 -72
- package/typedefs/FDC3/api/Errors.js.map +0 -1
- package/typedefs/FDC3/api/Icon.d.ts +0 -13
- package/typedefs/FDC3/api/Icon.d.ts.map +0 -1
- package/typedefs/FDC3/api/Icon.js +0 -6
- package/typedefs/FDC3/api/Icon.js.map +0 -1
- package/typedefs/FDC3/api/Image.d.ts +0 -15
- package/typedefs/FDC3/api/Image.d.ts.map +0 -1
- package/typedefs/FDC3/api/Image.js +0 -6
- package/typedefs/FDC3/api/Image.js.map +0 -1
- package/typedefs/FDC3/api/ImplementationMetadata.d.ts +0 -36
- package/typedefs/FDC3/api/ImplementationMetadata.d.ts.map +0 -1
- package/typedefs/FDC3/api/ImplementationMetadata.js +0 -6
- package/typedefs/FDC3/api/ImplementationMetadata.js.map +0 -1
- package/typedefs/FDC3/api/IntentMetadata.d.ts +0 -18
- package/typedefs/FDC3/api/IntentMetadata.d.ts.map +0 -1
- package/typedefs/FDC3/api/IntentMetadata.js +0 -6
- package/typedefs/FDC3/api/IntentMetadata.js.map +0 -1
- package/typedefs/FDC3/api/IntentResolution.d.ts +0 -68
- package/typedefs/FDC3/api/IntentResolution.d.ts.map +0 -1
- package/typedefs/FDC3/api/IntentResolution.js +0 -6
- package/typedefs/FDC3/api/IntentResolution.js.map +0 -1
- package/typedefs/FDC3/api/Listener.d.ts +0 -11
- package/typedefs/FDC3/api/Listener.d.ts.map +0 -1
- package/typedefs/FDC3/api/Listener.js +0 -6
- package/typedefs/FDC3/api/Listener.js.map +0 -1
- package/typedefs/FDC3/api/Methods.d.ts +0 -72
- package/typedefs/FDC3/api/Methods.d.ts.map +0 -1
- package/typedefs/FDC3/api/Methods.js +0 -199
- package/typedefs/FDC3/api/Methods.js.map +0 -1
- package/typedefs/FDC3/api/PrivateChannel.d.ts +0 -54
- package/typedefs/FDC3/api/PrivateChannel.d.ts.map +0 -1
- package/typedefs/FDC3/api/PrivateChannel.js +0 -6
- package/typedefs/FDC3/api/PrivateChannel.js.map +0 -1
- package/typedefs/FDC3/api/RecommendedChannels.d.ts +0 -14
- package/typedefs/FDC3/api/RecommendedChannels.d.ts.map +0 -1
- package/typedefs/FDC3/api/RecommendedChannels.js +0 -80
- package/typedefs/FDC3/api/RecommendedChannels.js.map +0 -1
- package/typedefs/FDC3/api/Types.d.ts +0 -30
- package/typedefs/FDC3/api/Types.d.ts.map +0 -1
- package/typedefs/FDC3/api/Types.js +0 -6
- package/typedefs/FDC3/api/Types.js.map +0 -1
- package/typedefs/FDC3/bridging/BridgingTypes.d.ts +0 -3967
- package/typedefs/FDC3/bridging/BridgingTypes.d.ts.map +0 -1
- package/typedefs/FDC3/bridging/BridgingTypes.js +0 -1857
- package/typedefs/FDC3/bridging/BridgingTypes.js.map +0 -1
- package/typedefs/FDC3/context/ContextType.d.ts +0 -41
- package/typedefs/FDC3/context/ContextType.d.ts.map +0 -1
- package/typedefs/FDC3/context/ContextType.js +0 -30
- package/typedefs/FDC3/context/ContextType.js.map +0 -1
- package/typedefs/FDC3/context/ContextTypes.d.ts +0 -2000
- package/typedefs/FDC3/context/ContextTypes.d.ts.map +0 -1
- package/typedefs/FDC3/context/ContextTypes.js +0 -873
- package/typedefs/FDC3/context/ContextTypes.js.map +0 -1
- package/typedefs/FDC3/index.d.ts +0 -34
- package/typedefs/FDC3/index.d.ts.map +0 -1
- package/typedefs/FDC3/index.js +0 -30
- package/typedefs/FDC3/index.js.map +0 -1
- package/typedefs/FDC3/intents/Intents.d.ts +0 -36
- package/typedefs/FDC3/intents/Intents.d.ts.map +0 -1
- package/typedefs/FDC3/intents/Intents.js +0 -29
- package/typedefs/FDC3/intents/Intents.js.map +0 -1
- package/typedefs/FDC3/internal/contextConfiguration.d.ts +0 -2
- package/typedefs/FDC3/internal/contextConfiguration.d.ts.map +0 -1
- package/typedefs/FDC3/internal/contextConfiguration.js +0 -5
- package/typedefs/FDC3/internal/contextConfiguration.js.map +0 -1
- package/typedefs/FDC3/internal/intentConfiguration.d.ts +0 -2
- package/typedefs/FDC3/internal/intentConfiguration.d.ts.map +0 -1
- package/typedefs/FDC3/internal/intentConfiguration.js +0 -5
- package/typedefs/FDC3/internal/intentConfiguration.js.map +0 -1
- package/typedefs/FDC3/internal/typeHelpers.d.ts +0 -7
- package/typedefs/FDC3/internal/typeHelpers.d.ts.map +0 -1
- package/typedefs/FDC3/internal/typeHelpers.js +0 -5
- package/typedefs/FDC3/internal/typeHelpers.js.map +0 -1
- package/typedefs/index.d.ts +0 -2
- package/typedefs/index.d.ts.map +0 -1
- package/typedefs/index.js +0 -3
- package/typedefs/index.js.map +0 -1
package/clients/windowClient.js
CHANGED
|
@@ -1,1071 +1,1073 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* WindowClient is primarily responsible for managing window state (the window's location and size) and app state (data inside of your app).
|
|
7
|
-
* @module WindowClient
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
This is how we want our API to work going forward, the way the world does it: import { processAndSet } from "configClient"
|
|
11
|
-
```
|
|
12
|
-
export const processAndSet = () => { ... }
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
This module's single exported object gives us backward compatibility when our core code does this: import { ConfigClient } from "configClient"
|
|
16
|
-
and provides the object that is attached to FSBL.Clients. This export should be kept as clean and simple as possible.
|
|
17
|
-
```
|
|
18
|
-
export const ConfigClient = {
|
|
19
|
-
processAndSet
|
|
20
|
-
}
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
The default export gives us backward compatibility where our core code does this: import ConfigClient from "configClient"
|
|
24
|
-
This can be eliminated when our core core is converted to normal imports as in the first example.
|
|
25
|
-
```
|
|
26
|
-
export default ConfigClient;
|
|
27
|
-
```
|
|
28
|
-
*/
|
|
29
|
-
import { System } from "../common/system";
|
|
30
|
-
import { Logger } from "./logger";
|
|
31
|
-
import { RouterClient } from "./routerClient";
|
|
32
|
-
import { FEAGlobals } from "../common/Globals";
|
|
33
|
-
import { getDesktopBoundingBox as getDesktopBoundingBoxFromUtil, isPointInBox as isPointInBoxFromUtil, isMouseOverDOMElement as isMouseOverDOMElementFromUtil, } from "../common/util";
|
|
34
|
-
import { getMonitor, getWhichMonitorClientSide } from "../common/Monitors";
|
|
35
|
-
import { deprecatedSetActive, deprecatedGetWindowNameForDocking } from "../deprecated/deprecatedFunctions";
|
|
36
|
-
import { cacheInitialBounds as cacheInitialBoundsFromStartup } from "./Startup/windowStartup";
|
|
37
|
-
import { singleton } from "../common/Singleton";
|
|
38
|
-
import SystemManagerClient from "../common/systemManagerClient";
|
|
39
|
-
import { FinsembleWindow } from "../common/FinsembleWindow";
|
|
40
|
-
import { actions, emptyStore } from "../platform/services/window/modules/actions";
|
|
41
|
-
import { getRemoteStoreAsSingleton, getRemoteState } from "../common/redux/getRemoteStore";
|
|
42
|
-
/**
|
|
43
|
-
* Add a local hot key for reloading; apps with BrowserView title bars will not refresh
|
|
44
|
-
* if the focus is on the web content and the user presses control-r.
|
|
45
|
-
*/
|
|
46
|
-
const modifyReload = () => {
|
|
47
|
-
// This is a workaround for correct content reloading on CTRL+R.
|
|
48
|
-
// The Electron build-in reloading for CTRL+R happens faster than the local hotkey will be triggered.
|
|
49
|
-
// Only add if this is a web content which has a BrowserView title bar
|
|
50
|
-
if (!FEAGlobals.fin.isTitlebarWindow() && FEAGlobals.fin.isBrowserView()) {
|
|
51
|
-
document.addEventListener("keydown", (e) => {
|
|
52
|
-
if (e.ctrlKey && e.key.toLowerCase() === "r") {
|
|
53
|
-
e.preventDefault();
|
|
54
|
-
e.stopPropagation();
|
|
55
|
-
FEAGlobals.finsembleWindow.reload();
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* The WindowClientController is a singleton which serves as the backing for the WindowClient export. Even though WindowClient
|
|
62
|
-
* is exported, there can still be more than one instance when running with an FEA preload. In these circumstances, the singleton
|
|
63
|
-
* nature of the controller ensures that both instances have access to the same static data, and that there are only ever
|
|
64
|
-
* one set of router messages/event listeners.
|
|
65
|
-
*
|
|
66
|
-
* WindowClient accesses the WindowClientController's internal objects using getters and setters. This allows multiple copies
|
|
67
|
-
* of WindowClient to each maintain a reference to the singleton's members, guaranteeing consistency.
|
|
68
|
-
*
|
|
69
|
-
* The WindowClientController must be started from an entry point (FSBLDesktop or FSBLService).
|
|
70
|
-
*/
|
|
71
|
-
class WindowClientController {
|
|
72
|
-
constructor() {
|
|
73
|
-
this.options = {};
|
|
74
|
-
this.title = null;
|
|
75
|
-
this.windowGroups = [];
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Handler for group updates from the window service. Stores the groups that this window is in,
|
|
79
|
-
* if any.
|
|
80
|
-
* @param err the error, if any
|
|
81
|
-
* @param res the received updated group data
|
|
82
|
-
*/
|
|
83
|
-
groupUpdateHandler(err, res) {
|
|
84
|
-
if (err) {
|
|
85
|
-
Logger.error(err);
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
if (!res.data || !res.data.groupData)
|
|
89
|
-
return;
|
|
90
|
-
this.windowGroups = Object.values(res.data.groupData).filter((group) => group.windowNames.includes(deprecatedGetWindowNameForDocking(FEAGlobals.finsembleWindow)));
|
|
91
|
-
}
|
|
92
|
-
setStartupData(systemStartupData) {
|
|
93
|
-
this.options = systemStartupData;
|
|
94
|
-
}
|
|
95
|
-
async start() {
|
|
96
|
-
await SystemManagerClient.waitForStartup("windowService");
|
|
97
|
-
RouterClient.subscribe("Finsemble.WorkspaceService.groupUpdate", (groupUpdateSubscribeErr, res) => this.groupUpdateHandler(groupUpdateSubscribeErr, res));
|
|
98
|
-
// On Blur remove the border from window
|
|
99
|
-
FEAGlobals.finsembleWindow.addEventListener("blurred", () => {
|
|
100
|
-
deprecatedSetActive(false);
|
|
101
|
-
});
|
|
102
|
-
// On focus add a border to the window
|
|
103
|
-
FEAGlobals.finsembleWindow.addEventListener("focused", () => {
|
|
104
|
-
deprecatedSetActive(true);
|
|
105
|
-
});
|
|
106
|
-
// Add reload handlers for non-titlebar instances
|
|
107
|
-
// The reload handler was moved to windowStartup and also made to only
|
|
108
|
-
// work with titlebars; this was probably an oversight.
|
|
109
|
-
modifyReload();
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* @ignore
|
|
114
|
-
*/
|
|
115
|
-
export const getControllerInstance = () => singleton("WindowClient", WindowClientController);
|
|
116
|
-
/**
|
|
117
|
-
* @deprecated
|
|
118
|
-
* Returns a list of the groups this window is in, if any.
|
|
119
|
-
*/
|
|
120
|
-
const getWindowGroups = () => {
|
|
121
|
-
Logger.deprecated("getWindowGroups() is deprecated and will be removed in a future release.");
|
|
122
|
-
const controller = getControllerInstance();
|
|
123
|
-
return controller.windowGroups;
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* @language javascript, java, dotnet
|
|
127
|
-
* Closes window. Defaults are to remove the window from the workspace if the user presses the X button, but not if the window is closed via an app-level request (e.g., switching workspaces, so all windows need to close).
|
|
128
|
-
*
|
|
129
|
-
* @deprecated - Use of parameters has been deprecated, and will be removed in an upcoming version.
|
|
130
|
-
*
|
|
131
|
-
* ```javascript
|
|
132
|
-
* //Close window and remove from workspace (e.g., user closes the window).
|
|
133
|
-
* FSBL.Clients.WindowClient.close({ removeFromWorkspace: true, closeWindow: true });
|
|
134
|
-
* //Close window and keep in workspace (e.g., application requests that all windows close themselves).
|
|
135
|
-
* FSBL.Clients.WindowClient.close({ removeFromWorkspace: false, closeWindow: false });
|
|
136
|
-
* ```
|
|
137
|
-
* @param {object} params
|
|
138
|
-
* @param {boolean} params.removeFromWorkspace Whether to remove the window from the workspace.
|
|
139
|
-
* @param {boolean} params.closeWindow Whether to close the window. On shutdown this method is called, but the Window Service actually closes the window.
|
|
140
|
-
* @param {boolean} params.userInitiated Whether the user clicked the X, or if the system asked the window to close.
|
|
141
|
-
* @param {function} cb The callback to be invoked after the method completes successfully.
|
|
142
|
-
*/
|
|
143
|
-
export const close = (params, cb) => {
|
|
144
|
-
if (!params) {
|
|
145
|
-
params = { removeFromWorkspace: true, closeWindow: true };
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
// Note: It has been deprecated to use parameters. Normally, we would use Logger.deprecate() here, but the parameters are currently being used internally.
|
|
149
|
-
// If we were to include Logger.deprecate(), we would flood the central logger. So, we're just going to document it as deprecated. The parameters will be
|
|
150
|
-
// unnecessary for internal usage once we move to io.CD.
|
|
151
|
-
}
|
|
152
|
-
return FEAGlobals.finsembleWindow.close(params, cb);
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* @language javascript, java, dotnet
|
|
156
|
-
* Retrieves the window's title.
|
|
157
|
-
*
|
|
158
|
-
* ```javascript
|
|
159
|
-
* // Get the current window's title
|
|
160
|
-
* await FSBL.Clients.WindowClient.getWindowTitle();
|
|
161
|
-
*
|
|
162
|
-
* // Get a different window's title
|
|
163
|
-
* await FSBL.Clients.WindowClient.getWindowTitle("windowName-foo-bar");
|
|
164
|
-
* ```
|
|
165
|
-
*
|
|
166
|
-
* @param windowName
|
|
167
|
-
* @returns {Promise<String|null>} title
|
|
168
|
-
*/
|
|
169
|
-
export const getWindowTitle = async (windowName) => {
|
|
170
|
-
var _a, _b, _c;
|
|
171
|
-
windowName = windowName || ((_a = FEAGlobals.finsembleWindow) === null || _a === void 0 ? void 0 : _a.name) || window.name;
|
|
172
|
-
const state = (await getRemoteState({
|
|
173
|
-
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
174
|
-
slice: "windowTitleBar",
|
|
175
|
-
}));
|
|
176
|
-
return (_c = (_b = state.windowTitleBar.windows[windowName]) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : null;
|
|
177
|
-
};
|
|
178
|
-
/**
|
|
179
|
-
* This function retrieves the dimensions of the monitor that the window is on. It's currently used in the <a href="/docs/reference/typedocs/modules/LauncherClient">LauncherClient</a>.
|
|
180
|
-
* @param {function} callback
|
|
181
|
-
*/
|
|
182
|
-
const retrieveMonitorDimensions = async (cb) => {
|
|
183
|
-
Logger.deprecated("WindowClient.retrieveMonitorDimensions() is deprecated and will be removed in a future release.");
|
|
184
|
-
const monitorInfo = await getMonitor();
|
|
185
|
-
FEAGlobals.finsembleWindow.updateOptions({
|
|
186
|
-
options: { monitorDimensions: monitorInfo.monitorRect },
|
|
187
|
-
});
|
|
188
|
-
cb === null || cb === void 0 ? void 0 : cb(monitorInfo.monitorRect);
|
|
189
|
-
};
|
|
190
|
-
/**
|
|
191
|
-
* Gets the bounds for the window on startup and saves them to the workspace.
|
|
192
|
-
*/
|
|
193
|
-
const cacheInitialBounds = async () => {
|
|
194
|
-
Logger.deprecated("WindowClient.cacheInitialBounds() is deprecated and will be removed in a future version.");
|
|
195
|
-
cacheInitialBoundsFromStartup();
|
|
196
|
-
};
|
|
197
|
-
/**
|
|
198
|
-
* @deprecated
|
|
199
|
-
* Returns windowBounds as of the last save.
|
|
200
|
-
* @returns {object}
|
|
201
|
-
* @todo deprecate and remove from linkerClient
|
|
202
|
-
*/
|
|
203
|
-
const getWindowBounds = () => {
|
|
204
|
-
Logger.deprecated("WindowClient.getWindowBounds() is deprecated and will be removed in a future version.");
|
|
205
|
-
return {
|
|
206
|
-
top: FEAGlobals.finsembleWindow.windowOptions.defaultTop,
|
|
207
|
-
left: FEAGlobals.finsembleWindow.windowOptions.defaultLeft,
|
|
208
|
-
width: FEAGlobals.finsembleWindow.windowOptions.defaultWidth,
|
|
209
|
-
height: FEAGlobals.finsembleWindow.windowOptions.defaultHeight,
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
* Saves the window's state. Rarely called manually, as it's called every time your window moves.
|
|
215
|
-
*
|
|
216
|
-
* The code below is the bulk of our listener for the <code>bounds-changed</code> event from the window. Every time the <code>bounds-changed</code> event is fired (when the window is resized or moved), we save the window's state. The first few lines just prevent the window from being dropped behind the toolbar.
|
|
217
|
-
* ```javascript
|
|
218
|
-
* finWindow.addEventListener('disabled-frame-bounds-changed', function (bounds) {
|
|
219
|
-
* if (bounds.top < 45) {
|
|
220
|
-
* finWindow.moveTo(bounds.left, 45);
|
|
221
|
-
* return;
|
|
222
|
-
* }
|
|
223
|
-
* self.saveWindowBounds(bounds);
|
|
224
|
-
* ```
|
|
225
|
-
* @param {Object} bounds optional param.
|
|
226
|
-
* @param {boolean} setActiveWorkspaceDirty
|
|
227
|
-
*});
|
|
228
|
-
*/
|
|
229
|
-
const saveWindowBounds = (bounds, setActiveWorkspaceDirty) => {
|
|
230
|
-
Logger.system.debug("WINDOW LIFECYCLE:SavingBounds:", bounds, "setActiveWorkspaceDirty", setActiveWorkspaceDirty);
|
|
231
|
-
if (typeof setActiveWorkspaceDirty === "undefined") {
|
|
232
|
-
setActiveWorkspaceDirty = false;
|
|
233
|
-
}
|
|
234
|
-
if (!bounds) {
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
FEAGlobals.finsembleWindow.updateOptions({
|
|
238
|
-
options: {
|
|
239
|
-
top: Math.round(bounds.top),
|
|
240
|
-
defaultTop: Math.round(bounds.top),
|
|
241
|
-
left: Math.round(bounds.left),
|
|
242
|
-
defaultLeft: Math.round(bounds.left),
|
|
243
|
-
width: Math.round(bounds.width),
|
|
244
|
-
defaultWidth: Math.round(bounds.width),
|
|
245
|
-
height: Math.round(bounds.height),
|
|
246
|
-
defaultHeight: Math.round(bounds.height),
|
|
247
|
-
},
|
|
248
|
-
});
|
|
249
|
-
try {
|
|
250
|
-
if (!FEAGlobals.finsembleWindow.windowOptions.customData.foreign.components["Window Manager"].persistWindowState) {
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
catch (e) {
|
|
254
|
-
// prop doesn't exist.
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
/**
|
|
258
|
-
* @language javascript, java, dotnet
|
|
259
|
-
* Maximizes the window taking into account any claimed space on the monitor.
|
|
260
|
-
*
|
|
261
|
-
* ```javascript
|
|
262
|
-
* FSBL.Clients.WindowClient.maximize();
|
|
263
|
-
* ```
|
|
264
|
-
* @param {function} cb Optional callback to be invoked after the method completes successfully.
|
|
265
|
-
*/
|
|
266
|
-
export const maximize = (cb) => FEAGlobals.finsembleWindow.maximize(null, cb);
|
|
267
|
-
/**
|
|
268
|
-
* @language javascript, java, dotnet
|
|
269
|
-
* Minimizes window.
|
|
270
|
-
*
|
|
271
|
-
* ```javascript
|
|
272
|
-
* FSBL.Clients.WindowClient.minimize();
|
|
273
|
-
* ```
|
|
274
|
-
* @param {function} cb Optional callback to be invoked after the method completes successfully.
|
|
275
|
-
*/
|
|
276
|
-
export const minimize = (cb) => FEAGlobals.finsembleWindow.minimize(null, cb);
|
|
277
|
-
/**
|
|
278
|
-
* @language javascript, java
|
|
279
|
-
* Brings the window to the top of all other windows.
|
|
280
|
-
*
|
|
281
|
-
* ```javascript
|
|
282
|
-
* FSBL.Clients.WindowClient.bringToFront();
|
|
283
|
-
* ```
|
|
284
|
-
*/
|
|
285
|
-
export const bringToFront = (cb) => FEAGlobals.finsembleWindow.bringToFront({ forceFocus: true }, cb);
|
|
286
|
-
/**
|
|
287
|
-
* @language javascript, java, dotnet
|
|
288
|
-
* @deprecated Use [`bringToFront()`](#bringtofront) instead, which returns a promise.
|
|
289
|
-
*
|
|
290
|
-
* Brings the window to the top of all other windows
|
|
291
|
-
*
|
|
292
|
-
* This is a non-promise version for backward compatibility. Please use WindowClient.bringToFront()
|
|
293
|
-
*
|
|
294
|
-
* @deprecated Use `bringToFront()` instead, which returns a promise.
|
|
295
|
-
*/
|
|
296
|
-
export const bringWindowToFront = (cb) => {
|
|
297
|
-
Logger.system.deprecated("WindowClient.bringWindowToFront() has been deprecated. Please use WindowClient.bringToFront() which returns a promise.");
|
|
298
|
-
FEAGlobals.finsembleWindow.bringToFront({ forceFocus: true }, cb);
|
|
299
|
-
};
|
|
300
|
-
/**
|
|
301
|
-
* @language javascript, java, dotnet
|
|
302
|
-
* Sets whether window is always on top. By default, this is false.
|
|
303
|
-
*
|
|
304
|
-
* ```javascript
|
|
305
|
-
* FSBL.Clients.WindowClient.setAlwaysOnTop(true);
|
|
306
|
-
* ```
|
|
307
|
-
* @param {boolean} alwaysOnTop The new mode for the window's alwaysOnTop option to be set to.
|
|
308
|
-
* @param {function} cb Optional callback to be invoked after the method completes successfully.
|
|
309
|
-
*/
|
|
310
|
-
export const setAlwaysOnTop = (alwaysOnTop, cb) => FEAGlobals.finsembleWindow.setAlwaysOnTop({ alwaysOnTop }, cb);
|
|
311
|
-
/**
|
|
312
|
-
* @language javascript, java, dotnet
|
|
313
|
-
* Restores window from a maximized or minimized state.
|
|
314
|
-
*
|
|
315
|
-
* ```javascript
|
|
316
|
-
* FSBL.Clients.WindowClient.restore();
|
|
317
|
-
* ```
|
|
318
|
-
* @param {function} cb Optional callback to be invoked after the method completes successfully.
|
|
319
|
-
*/
|
|
320
|
-
export const restore = (cb) => FEAGlobals.finsembleWindow.restore(null, cb);
|
|
321
|
-
/**
|
|
322
|
-
* @language javascript, java
|
|
323
|
-
* :::tip Important
|
|
324
|
-
* _This feature is experimental. The signature may change in the future._
|
|
325
|
-
* :::
|
|
326
|
-
*
|
|
327
|
-
* Sets an overlay image on the MS Windows taskbar, for instance to indicate activity.
|
|
328
|
-
* (This is sometimes referred to as a "badge").
|
|
329
|
-
*
|
|
330
|
-
* The url must point to a 16x16 png image. Images of other sizes or types will not display.
|
|
331
|
-
*
|
|
332
|
-
* :::note
|
|
333
|
-
* MacOS does not support taskbar overlay images. This function is safe to call
|
|
334
|
-
* on MacOS but will not perform any function.
|
|
335
|
-
* :::
|
|
336
|
-
*
|
|
337
|
-
* @param url - The url of the icon to use. Pass null to remove the overlay icon.
|
|
338
|
-
*/
|
|
339
|
-
export const setTaskbarIconOverlay = (url) => {
|
|
340
|
-
FEAGlobals.fin.desktop.Window.setTaskbarIconOverlay({ iconURL: url });
|
|
341
|
-
};
|
|
342
|
-
/**
|
|
343
|
-
* This function injects the header bar into all windows without frames that request it. This should only be used if you've decided not to use the provided <code>WindowClient.start()</code> method.
|
|
344
|
-
*
|
|
345
|
-
* **NOTE:** If you are using the Finsemble window title bar component, you do not need to call this function.
|
|
346
|
-
*/
|
|
347
|
-
const injectDOM = (headerHeight) => {
|
|
348
|
-
Logger.system.deprecated("WindowClient.injectDOM() has been deprecated and will be removed in a future release");
|
|
349
|
-
// for the aesthetics.
|
|
350
|
-
if (document.getElementById("FSBLHeader")) {
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
// On slow loading components, the end user might have the opportunity to scroll the page before the window title bar is injected.
|
|
354
|
-
// This triggers a chromium bug related to elements with position:fixed. Chromium loses track of where that element actually is on
|
|
355
|
-
// the browser page. Chromium *thinks* the title bar is lower than it actually is, by the amount of pixels scrolled by the user.
|
|
356
|
-
// The fix is to force the scroll position back to zero before we inject this fixed element.
|
|
357
|
-
window.scrollTo(0, 0);
|
|
358
|
-
// Now inject the window title bar
|
|
359
|
-
const template = document.createElement("div");
|
|
360
|
-
const style = headerHeight ? ` style=height:${headerHeight}` : "";
|
|
361
|
-
template.innerHTML = `<div id="FSBLHeader"${style}></div>`;
|
|
362
|
-
if (template.firstChild) {
|
|
363
|
-
document.body.insertBefore(template.firstChild, document.body.firstChild);
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
|
-
// returns Finsemble Window Object of current element or of element specified in given params
|
|
367
|
-
const getElementFinsembleWindow = async (params) => {
|
|
368
|
-
if ((params === null || params === void 0 ? void 0 : params.windowName) && (params === null || params === void 0 ? void 0 : params.windowName.length) > 0) {
|
|
369
|
-
const { wrap } = await FinsembleWindow.getInstance({ name: params.windowName });
|
|
370
|
-
return wrap;
|
|
371
|
-
}
|
|
372
|
-
return FEAGlobals.finsembleWindow;
|
|
373
|
-
};
|
|
374
|
-
/**
|
|
375
|
-
* @language javascript, java, dotnet
|
|
376
|
-
* Given a field, this function retrieves app state. If no params are given, returns the full state.
|
|
377
|
-
*
|
|
378
|
-
* Here's how to retrieve data to restore the layout of our charts.
|
|
379
|
-
* ```javascript
|
|
380
|
-
* FSBL.Clients.WindowClient.getComponentState({
|
|
381
|
-
* field: 'myChartLayout',
|
|
382
|
-
* }, function (err, state) {
|
|
383
|
-
* importLayout(state);
|
|
384
|
-
* });
|
|
385
|
-
*
|
|
386
|
-
* FSBL.Clients.WindowClient.getComponentState({
|
|
387
|
-
* fields: ['myChartLayout', 'chartType'],
|
|
388
|
-
* }, function (err, state) {
|
|
389
|
-
* let chartType = state['chartType'];
|
|
390
|
-
* let myChartLayout = state['myChartLayout'];
|
|
391
|
-
* });
|
|
392
|
-
* ```
|
|
393
|
-
* @param {object} params
|
|
394
|
-
* @param {string} params.field Field to retrieve.
|
|
395
|
-
* @param {Array.<string>} params.fields Fields to retrieve.
|
|
396
|
-
* @param {string} params.windowName Window whose component state you are retrieving. If null, defaults to the calling window.
|
|
397
|
-
* @param {function} cb The callback to be invoked after the method completes successfully.
|
|
398
|
-
*/
|
|
399
|
-
export const getComponentState = async (params, cb) => new Promise(async (resolve) => {
|
|
400
|
-
if (!params) {
|
|
401
|
-
params = {};
|
|
402
|
-
}
|
|
403
|
-
if (params.fields && !Array.isArray(params.fields)) {
|
|
404
|
-
params.fields = [params.fields];
|
|
405
|
-
}
|
|
406
|
-
const elementFinsembleWindow = await getElementFinsembleWindow(params);
|
|
407
|
-
elementFinsembleWindow.getComponentState(params, (err, data) => {
|
|
408
|
-
cb === null || cb === void 0 ? void 0 : cb(err, data);
|
|
409
|
-
resolve({ err, data });
|
|
410
|
-
});
|
|
411
|
-
});
|
|
412
|
-
/**
|
|
413
|
-
* @language javascript, java, dotnet
|
|
414
|
-
* Given a field, this function sets and persists app state.
|
|
415
|
-
*
|
|
416
|
-
* Here is how to save the chart layout when it changes.
|
|
417
|
-
* ```javascript
|
|
418
|
-
* let s = stx.exportLayout(true);
|
|
419
|
-
* //saving layout'
|
|
420
|
-
* FSBL.Clients.WindowClient.setComponentState({ field: 'myChartLayout', value: s });
|
|
421
|
-
* FSBL.Clients.WindowClient.setComponentState({ fields: [
|
|
422
|
-
* {field:'myChartLayout', value: s },
|
|
423
|
-
* {field:'chartType', value: 'mountain'}
|
|
424
|
-
* ]});
|
|
425
|
-
* ```
|
|
426
|
-
* @param {object} params Object of data to be saved
|
|
427
|
-
* @param {string} params.field The key name of the field to be saved. Required if not using `fields`.
|
|
428
|
-
* @param {Array.<object>} params.fields An array of objects with `field` and `value` keys to be saved.
|
|
429
|
-
* @param {string} params.windowName Name of the component whose state you are setting. Defaults to the calling window.
|
|
430
|
-
* @param {any} params.value Value of the data being saved. Required if not using `fields`.
|
|
431
|
-
* @param {function} cb The callback to be invoked after the method completes successfully.
|
|
432
|
-
*/
|
|
433
|
-
export const setComponentState = async (params, cb) => new Promise(async (resolve) => {
|
|
434
|
-
const elementFinsembleWindow = await getElementFinsembleWindow(params);
|
|
435
|
-
elementFinsembleWindow.setComponentState(params, (err) => {
|
|
436
|
-
cb === null || cb === void 0 ? void 0 : cb(err);
|
|
437
|
-
resolve({ err });
|
|
438
|
-
});
|
|
439
|
-
});
|
|
440
|
-
/**
|
|
441
|
-
* @language javascript, java, dotnet
|
|
442
|
-
* Given a field, this function removes it from app state.
|
|
443
|
-
*
|
|
444
|
-
* The example below shows how we would remove our chart layout when it no longer needed.
|
|
445
|
-
* ```javascript
|
|
446
|
-
* // remove unused state value
|
|
447
|
-
* FSBL.Clients.WindowClient.removeComponentState({ field: 'myChartLayout'});
|
|
448
|
-
* FSBL.Clients.WindowClient.removeComponentState({ fields: [{field:'myChartLayout'}, {field:'chartType'}]});
|
|
449
|
-
* ```
|
|
450
|
-
* @param {object} params Object of data to be removed
|
|
451
|
-
* @param {string} params.field The key name of the field to be saved. Required if not using `fields`.
|
|
452
|
-
* @param {Array.<object>} params.fields An array of objects with `field` keys to be removed.
|
|
453
|
-
* @param {string} params.windowName The name of the window to remove component state from
|
|
454
|
-
* @param {function} cb The callback to be invoked after the method completes successfully.
|
|
455
|
-
*/
|
|
456
|
-
export const removeComponentState = async (params, cb) => new Promise(async (resolve) => {
|
|
457
|
-
const elementFinsembleWindow = await getElementFinsembleWindow(params);
|
|
458
|
-
elementFinsembleWindow.removeComponentState(params, (err) => {
|
|
459
|
-
cb === null || cb === void 0 ? void 0 : cb(err);
|
|
460
|
-
resolve({ err });
|
|
461
|
-
});
|
|
462
|
-
});
|
|
463
|
-
/**
|
|
464
|
-
* @language javascript
|
|
465
|
-
* Gets the window name of current window. The code that manages window movement will not see a child window if it's part of a stacked window. This function will return the window name that the Window Service cares about for window movement.
|
|
466
|
-
* @deprecated
|
|
467
|
-
*
|
|
468
|
-
* Gets the window name of current window or the parent, if tabbed. The code that manages window movement will not see a child window if it's part of a stacked window. This function will return the window name that the Window Service cares about for window movement.
|
|
469
|
-
*/
|
|
470
|
-
export const getWindowNameForDocking = () => {
|
|
471
|
-
Logger.deprecated("WindowClient.getWindowNameForDocking is deprecated and will be removed");
|
|
472
|
-
return deprecatedGetWindowNameForDocking(FEAGlobals.finsembleWindow);
|
|
473
|
-
};
|
|
474
|
-
/**
|
|
475
|
-
* @language javascript
|
|
476
|
-
* @deprecated
|
|
477
|
-
* Forms a group with any window that is touching the border of this window.
|
|
478
|
-
*/
|
|
479
|
-
export const formGroup = () => {
|
|
480
|
-
Logger.system.deprecated("WindowClient.formGroup() is deprecated.");
|
|
481
|
-
FEAGlobals.finsembleWindow.formGroup();
|
|
482
|
-
};
|
|
483
|
-
/**
|
|
484
|
-
* Adds finsembleWindow listeners for the command channel to the WindowTitleBar.
|
|
485
|
-
*
|
|
486
|
-
* These listeners are auto-cleaning when a window closes, so there is no need to manually close
|
|
487
|
-
* them during destruction.
|
|
488
|
-
*/
|
|
489
|
-
const addListeners = () => {
|
|
490
|
-
Logger.deprecated("Do not call WindowClient.addListeners() directly");
|
|
491
|
-
};
|
|
492
|
-
/**
|
|
493
|
-
* @language javascript
|
|
494
|
-
* @deprecated
|
|
495
|
-
* Ejects the window from the docking group
|
|
496
|
-
*/
|
|
497
|
-
export const ejectFromGroup = () => {
|
|
498
|
-
Logger.system.deprecated("WindowClient.ejectFromGroup() is deprecated.");
|
|
499
|
-
FEAGlobals.finsembleWindow.ejectFromGroup();
|
|
500
|
-
};
|
|
501
|
-
/**
|
|
502
|
-
* @language javascript, java, dotnet
|
|
503
|
-
* This method overrides the app title that displays in the app's title bar or tab. This will take precedence over
|
|
504
|
-
* the document.title or title that is set in the app's config. This will however be overridden by an user edited title.
|
|
505
|
-
* @param title Window title.
|
|
506
|
-
*/
|
|
507
|
-
const setWindowTitle = (title) => {
|
|
508
|
-
const store = getRemoteStoreAsSingleton({
|
|
509
|
-
singletonName: "WindowClient::setWindowTitle",
|
|
510
|
-
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
511
|
-
slice: "windowTitleBar",
|
|
512
|
-
emptyStore,
|
|
513
|
-
dispatchOnly: true,
|
|
514
|
-
});
|
|
515
|
-
store.dispatch(actions.setAPITitle({
|
|
516
|
-
title,
|
|
517
|
-
}));
|
|
518
|
-
};
|
|
519
|
-
/**
|
|
520
|
-
* @language javascript, java, dotnet
|
|
521
|
-
* Retrieves data that was set with <a href="/docs/reference/typedocs/modules/LauncherClient#spawn">LauncherClient.spawn</a>.
|
|
522
|
-
* @returns The spawnData that was passed to calls to LauncherClient.spawn, or an empty object.
|
|
523
|
-
*/
|
|
524
|
-
export const getSpawnData = () => {
|
|
525
|
-
var _a, _b, _c;
|
|
526
|
-
const controller = getControllerInstance();
|
|
527
|
-
return (_c = (_b = (_a = controller.options) === null || _a === void 0 ? void 0 : _a.customData) === null || _b === void 0 ? void 0 : _b.spawnData) !== null && _c !== void 0 ? _c : {};
|
|
528
|
-
};
|
|
529
|
-
/**
|
|
530
|
-
* @language javascript, java, dotnet
|
|
531
|
-
* @deprecated Use `FSBL.System.Window.getCurrent()`
|
|
532
|
-
*
|
|
533
|
-
* Returns a reference to the current FEAWindow for the component.
|
|
534
|
-
* @returns {finWindow}
|
|
535
|
-
*/
|
|
536
|
-
export const getCurrentWindow = () => {
|
|
537
|
-
// getCurrentWindow() is still being used by e2e tests and the zoom.js preload. Don't change this to
|
|
538
|
-
// Logger.deprecated() until those systems are refactored to use FSBL.System.Window.
|
|
539
|
-
Logger.system.deprecated("WindowClient.getCurrentWindow() is no longer supported and will likely go away in the future. Use FSBL.System.Window.getCurrent() instead.");
|
|
540
|
-
Logger.log("WindowClient.getCurrentWindow() is deprecated and will be removed in a future release.");
|
|
541
|
-
return System.Window.getCurrent();
|
|
542
|
-
};
|
|
543
|
-
/**
|
|
544
|
-
* For the DOM element that has been passed in, this function returns a bounding box that is relative
|
|
545
|
-
* to the virtual monitor space. That is, it returns the position of the DOM element on the desktop.
|
|
546
|
-
* @param {HTMLElement|string} element A selector or HTMLElement
|
|
547
|
-
*/
|
|
548
|
-
const getDesktopBoundingBox = async (element) => {
|
|
549
|
-
Logger.deprecated("WindowClient.getDesktopBoundingBox() is deprecated and will be removed in a future release.");
|
|
550
|
-
return getDesktopBoundingBoxFromUtil(element);
|
|
551
|
-
};
|
|
552
|
-
/**
|
|
553
|
-
* @deprecated This code will be moved into finsemble-ui
|
|
554
|
-
*/
|
|
555
|
-
const isPointInBox = (point, box) => {
|
|
556
|
-
Logger.deprecated("WindowClient.isPointInBox() is deprecated and will be removed in a future release.");
|
|
557
|
-
return isPointInBoxFromUtil(point, box);
|
|
558
|
-
};
|
|
559
|
-
/**
|
|
560
|
-
* Returns (via callback) true if the mouse is currently located (hovering) over the requested element.
|
|
561
|
-
* @param {HTMLElement|string} element The element, or a selector, to check
|
|
562
|
-
* @param {function} cb A function that returns a boolean
|
|
563
|
-
*/
|
|
564
|
-
const isMouseOverDOMElement = (element, cb) => {
|
|
565
|
-
Logger.deprecated("WindowClient.isMouseOverDOMElement() is deprecated and will be removed in a future release.");
|
|
566
|
-
return isMouseOverDOMElementFromUtil(element, cb);
|
|
567
|
-
};
|
|
568
|
-
/**
|
|
569
|
-
* @language javascript, java, dotnet
|
|
570
|
-
* Returns the window identifier for the current component.
|
|
571
|
-
* @returns {WindowIdentifier}
|
|
572
|
-
*/
|
|
573
|
-
export const getWindowIdentifier = () => {
|
|
574
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
575
|
-
const controller = getControllerInstance();
|
|
576
|
-
return {
|
|
577
|
-
windowName: (_b = (_a = FEAGlobals.finsembleWindow) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : window.name,
|
|
578
|
-
uuid: (_d = (_c = FEAGlobals.finsembleWindow) === null || _c === void 0 ? void 0 : _c.uuid) !== null && _d !== void 0 ? _d : undefined,
|
|
579
|
-
componentType: (_h = (_g = (_f = (_e = controller.options) === null || _e === void 0 ? void 0 : _e.customData) === null || _f === void 0 ? void 0 : _f.component) === null || _g === void 0 ? void 0 : _g.type) !== null && _h !== void 0 ? _h : null,
|
|
580
|
-
};
|
|
581
|
-
};
|
|
582
|
-
/**
|
|
583
|
-
* @deprecated
|
|
584
|
-
* Highlights the window as active by creating a border around the window.
|
|
585
|
-
*
|
|
586
|
-
* @param {boolean} active Set to false to turn off activity
|
|
587
|
-
*/
|
|
588
|
-
const setActive = (active) => {
|
|
589
|
-
Logger.deprecated("WindowClient.setActive is deprecated and will be removed");
|
|
590
|
-
deprecatedSetActive(active);
|
|
591
|
-
};
|
|
592
|
-
/**
|
|
593
|
-
* @language javascript, java, dotnet
|
|
594
|
-
* Returns the object defining bounds for the current window including the position of the left and right edges measured in pixels from the left edge of the monitor, the top and bottom edges measured in pixels from the top edge, and the width and height of the component in pixels.
|
|
595
|
-
* Please note that this method differs from the right and bottom coordinates passed to LauncherClient.spawn(); those are measured from the right and bottom edges of the screen.
|
|
596
|
-
* @param {StandardCallback} cb The callback to be invoked after the method completes successfully.
|
|
597
|
-
*/
|
|
598
|
-
export const getBounds = (cb) => FEAGlobals.finsembleWindow.getBounds(cb);
|
|
599
|
-
/**
|
|
600
|
-
* @language javascript
|
|
601
|
-
* @deprecated
|
|
602
|
-
* Defines areas of the window that will be displayed and clickable. All other areas of the window will be transparent.
|
|
603
|
-
* Can be used to create click-through areas of a window.
|
|
604
|
-
*
|
|
605
|
-
* @param params Optional. Takes an array of rectangle Objects for the areas of the window that will be displayed and clickable.
|
|
606
|
-
* Passing in an empty array or omitting this parameter will cause the full area of the window to be displayed and clickable.
|
|
607
|
-
* A rectangle is defined as: {
|
|
608
|
-
* x: x coordinate for the origin of the rectangle (integer)
|
|
609
|
-
* y: x coordinate for the origin of the rectangle (integer)
|
|
610
|
-
* width: width of the rectangle (integer)
|
|
611
|
-
* height: height of the rectangle (integer)
|
|
612
|
-
* }
|
|
613
|
-
* @param callback: Function = Function.prototype
|
|
614
|
-
*/
|
|
615
|
-
export const setShape = (params, callback = Function.prototype) => {
|
|
616
|
-
Logger.system.deprecated("WindowClient.setShape() is deprecated.");
|
|
617
|
-
FEAGlobals.finsembleWindow.setShape(params, callback);
|
|
618
|
-
};
|
|
619
|
-
/**
|
|
620
|
-
* @language javascript
|
|
621
|
-
* This is used by the Finsemble window title bar when a tab is dragged for tiling or tabbing.
|
|
622
|
-
* @param {*} params - <code>params.windowIdentifier</code> is required.
|
|
623
|
-
* @param {WindowIdentifier} params.windowIdentifier The Finsemble identifier for the target window.
|
|
624
|
-
* @param {*} cb The callback to be invoked after the method completes successfully.
|
|
625
|
-
* @deprecated This code will be moved into finsemble-ui
|
|
626
|
-
*/
|
|
627
|
-
export const startTilingOrTabbing = (params, cb) => {
|
|
628
|
-
Logger.deprecated("WindowClient.startTilingOrTabbing is deprecated and will be removed");
|
|
629
|
-
RouterClient.transmit("DockingService.startTilingOrTabbing", params);
|
|
630
|
-
cb === null || cb === void 0 ? void 0 : cb();
|
|
631
|
-
};
|
|
632
|
-
/**
|
|
633
|
-
* @language javascript
|
|
634
|
-
* @deprecated
|
|
635
|
-
* Begin programmatically moving the window; the first parameter is a mouse event. Until `stopMovingWindow` is invoked, the window will follow the user's mouse. This should be invoked inside of a `mouseDown` event handler.
|
|
636
|
-
*/
|
|
637
|
-
export const startMovingWindow = (event) => {
|
|
638
|
-
const currentWindow = System.Window.getCurrent();
|
|
639
|
-
currentWindow.startMovingWindow(event);
|
|
640
|
-
};
|
|
641
|
-
/**
|
|
642
|
-
* @language javascript
|
|
643
|
-
* @deprecated
|
|
644
|
-
* Stops moving a window that was set in motion via `startMovingWindow`.
|
|
645
|
-
*/
|
|
646
|
-
export const stopMovingWindow = () => {
|
|
647
|
-
const currentWindow = System.Window.getCurrent();
|
|
648
|
-
currentWindow.stopMovingWindow();
|
|
649
|
-
};
|
|
650
|
-
/**
|
|
651
|
-
* @language javascript
|
|
652
|
-
* This is used to cancel a tabbing or tiling operation.
|
|
653
|
-
*
|
|
654
|
-
* @param {object} params
|
|
655
|
-
* @param {WindowIdentifier} params.windowIdentifier The Finsemble identifier for the window.
|
|
656
|
-
* @param {Function} cb - The callback to be invoked after the method completes successfully.
|
|
657
|
-
* @deprecated This code will be moved into finsemble-ui
|
|
658
|
-
*/
|
|
659
|
-
export const cancelTilingOrTabbing = (params, cb) => {
|
|
660
|
-
Logger.deprecated("WindowClient.cancelTilingOrTabbing is deprecated and will be removed");
|
|
661
|
-
console.debug("CancelTilingOrTabbing");
|
|
662
|
-
RouterClient.transmit("DockingService.cancelTilingOrTabbing", params);
|
|
663
|
-
cb === null || cb === void 0 ? void 0 : cb();
|
|
664
|
-
};
|
|
665
|
-
/**
|
|
666
|
-
* @language javascript, java
|
|
667
|
-
* This function is used by the Finsemble window title bar to end tiling or tabbing.
|
|
668
|
-
* @param {*} params
|
|
669
|
-
* @param {object} params.mousePosition Where the pointer is on the screen
|
|
670
|
-
* @param {number} params.mousePosition.x X position of the pointer
|
|
671
|
-
* @param {number} params.mousePosition.y Y position of the pointer
|
|
672
|
-
* @param {boolean} params.allowDropOnSelf Determines whether a tab can be dropped on the window where the drag originated.
|
|
673
|
-
* @param {*} cb - The callback to be invoked after the method completes successfully.
|
|
674
|
-
* @deprecated This code will be moved into finsemble-ui
|
|
675
|
-
*/
|
|
676
|
-
export const stopTilingOrTabbing = (params, cb) => {
|
|
677
|
-
Logger.deprecated("WindowClient.stopTilingOrTabbing is deprecated and will be removed");
|
|
678
|
-
// We both transmit and query because no stack operation should happen until this is done and there are a lot of listeners around.
|
|
679
|
-
const transmitAndQueryStop = () => {
|
|
680
|
-
RouterClient.query("DockingService.stopTilingOrTabbing", params, () => {
|
|
681
|
-
cb === null || cb === void 0 ? void 0 : cb();
|
|
682
|
-
});
|
|
683
|
-
RouterClient.transmit("DockingService.stopTilingOrTabbing", params);
|
|
684
|
-
};
|
|
685
|
-
// Get the mouse position if not passed through for transmit to the router,
|
|
686
|
-
// If allowDropOnSelf is true, it came from a tab/window drop event. Run the callback.
|
|
687
|
-
if (!params.mousePosition) {
|
|
688
|
-
System.getMousePosition((err, position) => {
|
|
689
|
-
params.mousePosition = position;
|
|
690
|
-
transmitAndQueryStop();
|
|
691
|
-
if (!params.allowDropOnSelf)
|
|
692
|
-
cb === null || cb === void 0 ? void 0 : cb();
|
|
693
|
-
});
|
|
694
|
-
return;
|
|
695
|
-
}
|
|
696
|
-
transmitAndQueryStop();
|
|
697
|
-
if (!params.allowDropOnSelf)
|
|
698
|
-
cb === null || cb === void 0 ? void 0 : cb();
|
|
699
|
-
};
|
|
700
|
-
/**
|
|
701
|
-
*
|
|
702
|
-
*/
|
|
703
|
-
const getMonitorInfo = async (params = {}, cb) => {
|
|
704
|
-
Logger.deprecated("WindowClient.getMonitorInfo() is deprecated and will be removed. Please use LauncherClient.getMonitorInfo()");
|
|
705
|
-
return getWhichMonitorClientSide(RouterClient, params, cb);
|
|
706
|
-
};
|
|
707
|
-
/**
|
|
708
|
-
* @language javascript, java, dotnet
|
|
709
|
-
* Moves the window so that it's centered above the user's mouse.
|
|
710
|
-
*/
|
|
711
|
-
export const showAtMousePosition = () => {
|
|
712
|
-
RouterClient.transmit("DockingService.showAtMousePosition", getWindowIdentifier());
|
|
713
|
-
};
|
|
714
|
-
/**
|
|
715
|
-
* @language javascript
|
|
716
|
-
* Resize the window to fit the contents of the window's DOM, with optional padding.
|
|
717
|
-
*
|
|
718
|
-
* @param [params] optional parameters
|
|
719
|
-
* @param [params.padding] allow for padding around to DOM contents
|
|
720
|
-
* @param {number} [params.padding.height] extra pixels to add to the total height of the window. Default is 0
|
|
721
|
-
* @param {number} [params.padding.width] extra pixels to add to the total width of the window. Default is 0
|
|
722
|
-
* @param {number} [params.maxHeight] the maximum height to size the window to
|
|
723
|
-
* @param {number} [params.maxWidth] the maximum width to size the window to
|
|
724
|
-
* @param [cb] The callback to be invoked after the method completes successfully.
|
|
725
|
-
*/
|
|
726
|
-
export const fitToDOM = async (params, cb) => {
|
|
727
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
728
|
-
if (typeof params === "function") {
|
|
729
|
-
cb = params;
|
|
730
|
-
params = null;
|
|
731
|
-
}
|
|
732
|
-
const paddingHeight = (_b = (_a = params === null || params === void 0 ? void 0 : params.padding) === null || _a === void 0 ? void 0 : _a.height) !== null && _b !== void 0 ? _b : 0;
|
|
733
|
-
const paddingWidth = (_d = (_c = params === null || params === void 0 ? void 0 : params.padding) === null || _c === void 0 ? void 0 : _c.width) !== null && _d !== void 0 ? _d : 0;
|
|
734
|
-
const { data: bounds } = await FEAGlobals.finsembleWindow.getBounds();
|
|
735
|
-
if (!bounds)
|
|
736
|
-
return;
|
|
737
|
-
/*
|
|
738
|
-
// Injected title bars monkey with the body height by setting a calc() in the css
|
|
739
|
-
// We have to remove this to get the necessary calculations to fit to the DOM
|
|
740
|
-
if(document.body.style.height?.includes("calc"))
|
|
741
|
-
document.body.style.height = "auto";
|
|
742
|
-
*/
|
|
743
|
-
// The window will never be set larger than the monitor
|
|
744
|
-
const { data: monitorInfo } = await getWhichMonitorClientSide(RouterClient, {});
|
|
745
|
-
const monitorHeight = (_f = (_e = monitorInfo === null || monitorInfo === void 0 ? void 0 : monitorInfo.availableRect) === null || _e === void 0 ? void 0 : _e.height) !== null && _f !== void 0 ? _f : Infinity;
|
|
746
|
-
const monitorWidth = (_h = (_g = monitorInfo === null || monitorInfo === void 0 ? void 0 : monitorInfo.availableRect) === null || _g === void 0 ? void 0 : _g.width) !== null && _h !== void 0 ? _h : Infinity;
|
|
747
|
-
// The titlebar takes up additional height when we're in a browserview.
|
|
748
|
-
// This will calculate that extra height so that we can add it to the overall calculation
|
|
749
|
-
const titlebarHeight = bounds.height - window.innerHeight;
|
|
750
|
-
const verticalScrollbarWidth = window.innerWidth - document.getElementsByTagName("html")[0].clientWidth;
|
|
751
|
-
const horizontalScrollbarHeight = window.innerHeight - document.getElementsByTagName("html")[0].clientHeight;
|
|
752
|
-
// When the horizontal scrollbar is present we need one extra pixel of height to eliminate the vertical scrollbar
|
|
753
|
-
const maybeExtraPixel = horizontalScrollbarHeight ? 1 : 0;
|
|
754
|
-
// offsetHeight is the height of the content, including a horizontal scrollbar if it exists
|
|
755
|
-
const calculatedHeight = document.documentElement.offsetHeight + paddingHeight + titlebarHeight + maybeExtraPixel;
|
|
756
|
-
// We add the verticalScrollbarWidth to prevent the window width from shrinking when we eliminate a vertical
|
|
757
|
-
// scrollbar. We use scrollWidth to ensure that the width expands to cover any hidden horizontal content.
|
|
758
|
-
const calculatedWidth = document.documentElement.scrollWidth + paddingWidth + verticalScrollbarWidth;
|
|
759
|
-
// The end result is the lesser of: calculated size, requested maximum size, and monitor size
|
|
760
|
-
const newHeight = Math.min(calculatedHeight, (_j = params === null || params === void 0 ? void 0 : params.maxHeight) !== null && _j !== void 0 ? _j : calculatedHeight, monitorHeight);
|
|
761
|
-
const newWidth = Math.min(calculatedWidth, (_k = params === null || params === void 0 ? void 0 : params.maxWidth) !== null && _k !== void 0 ? _k : calculatedWidth, monitorWidth);
|
|
762
|
-
Logger.system.debug("WindowClient.FitToDOM:newHeight:newWidth", newHeight, newWidth, params);
|
|
763
|
-
if (bounds.width != newWidth || bounds.height != newHeight) {
|
|
764
|
-
await FEAGlobals.finsembleWindow.setBounds({
|
|
765
|
-
bounds: {
|
|
766
|
-
left: bounds.left,
|
|
767
|
-
top: bounds.top,
|
|
768
|
-
width: newWidth,
|
|
769
|
-
height: newHeight,
|
|
770
|
-
},
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
cb === null || cb === void 0 ? void 0 : cb();
|
|
774
|
-
};
|
|
775
|
-
/**
|
|
776
|
-
* @language javascript, dotnet
|
|
777
|
-
* Forms a tab collection from a list of _existing_ windows. (See [LauncherClient.spawnTabCollection()](./LauncherClient#spawnTabCollection) to form a tab
|
|
778
|
-
* collection from non-existing windows.)
|
|
779
|
-
*
|
|
780
|
-
* ```javascript
|
|
781
|
-
* await FSBL.Clients.WindowClient.createTabCollection({
|
|
782
|
-
* windowNames: ["MyApp-3443-fdf-343-fdfdf","MyOtherApp-dfdf-sdsd-dfdf-sdsd"],
|
|
783
|
-
* promotedTab: "MyOtherApp-dfdf-sdsd-dfdf-sdsd"
|
|
784
|
-
* })
|
|
785
|
-
* ```
|
|
786
|
-
* @param __namedParameters.windowNames - An array of window names to put in the collection. The tabs will retain the ordering of this array.
|
|
787
|
-
* @param __namedParameters.promotedTab - The name of the tab to be promoted. If not set then the first window will be promoted.
|
|
788
|
-
*/
|
|
789
|
-
export const createTabCollection = async ({ windowNames, promotedTab, }) => {
|
|
790
|
-
const store = getRemoteStoreAsSingleton({
|
|
791
|
-
singletonName: "WindowClient::tabCollection",
|
|
792
|
-
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
793
|
-
slice: "api",
|
|
794
|
-
emptyStore,
|
|
795
|
-
dispatchOnly: true,
|
|
796
|
-
});
|
|
797
|
-
store.dispatch(actions.createTabCollection({
|
|
798
|
-
windowNames,
|
|
799
|
-
promotedWindowName: promotedTab,
|
|
800
|
-
}));
|
|
801
|
-
};
|
|
802
|
-
/**
|
|
803
|
-
* @language javascript, dotnet
|
|
804
|
-
* Adds one or more windows to an existing tab collection.
|
|
805
|
-
*
|
|
806
|
-
* ```javascript
|
|
807
|
-
* await FSBL.Clients.WindowClient.addToTabCollection({
|
|
808
|
-
* tabCollectionId: ["StackedWindow-sdsd-343-dsds"],
|
|
809
|
-
* windowNames: ["MyApp-3443-fdf-343-fdfdf","MyOtherApp-dfdf-sdsd-dfdf-sdsd"],
|
|
810
|
-
* position: 2,
|
|
811
|
-
* promotedTab: "MyOtherApp-dfdf-sdsd-dfdf-sdsd"
|
|
812
|
-
* })
|
|
813
|
-
* ```
|
|
814
|
-
* @param __namedParameters.windowNames - An array of window names to be added to the collection.
|
|
815
|
-
* @param __namedParameters.tabCollectionId - ID of the tabCollection to join.
|
|
816
|
-
* @param __namedParameters.position - Specifies where in the collection to add the new tabs. If not set then they will be appended to the end of the collection.
|
|
817
|
-
* @param __namedParameters.promotedTab - Tab to be promoted. If not set then the promoted tab will not be changed.
|
|
818
|
-
*/
|
|
819
|
-
export const addToTabCollection = async ({ windowNames, tabCollectionId, position, promotedTab, }) => {
|
|
820
|
-
const store = getRemoteStoreAsSingleton({
|
|
821
|
-
singletonName: "WindowClient::tabCollection",
|
|
822
|
-
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
823
|
-
slice: "api",
|
|
824
|
-
emptyStore,
|
|
825
|
-
dispatchOnly: true,
|
|
826
|
-
});
|
|
827
|
-
store.dispatch(actions.addTabsToTabCollection({
|
|
828
|
-
windowNames,
|
|
829
|
-
tabCollectionId,
|
|
830
|
-
position,
|
|
831
|
-
promotedWindowName: promotedTab,
|
|
832
|
-
}));
|
|
833
|
-
};
|
|
834
|
-
/**
|
|
835
|
-
* @language javascript, dotnet
|
|
836
|
-
* Removes one or more tabs from their tab collection(s). The tab collection is identified automatically.
|
|
837
|
-
* Tab collections with fewer than two tabs are removed from the system. If the tab collection is maximized then
|
|
838
|
-
* windows that are removed will be restored to their previous unmaximized position and size.
|
|
839
|
-
*
|
|
840
|
-
* ```javascript
|
|
841
|
-
* await FSBL.Clients.WindowClient.removeFromTabCollection({
|
|
842
|
-
* windowNames: ["MyApp-3443-fdf-343-fdfdf","MyOtherApp-dfdf-sdsd-dfdf-sdsd"],
|
|
843
|
-
* })
|
|
844
|
-
* ```
|
|
845
|
-
* @param __namedParameters.windowNames - The array of window names to be removed.
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
*
|
|
865
|
-
* ```
|
|
866
|
-
*
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
*
|
|
884
|
-
*
|
|
885
|
-
*
|
|
886
|
-
*
|
|
887
|
-
* }
|
|
888
|
-
*
|
|
889
|
-
*
|
|
890
|
-
*
|
|
891
|
-
*
|
|
892
|
-
* @
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
*
|
|
915
|
-
*
|
|
916
|
-
*
|
|
917
|
-
*
|
|
918
|
-
* }
|
|
919
|
-
*
|
|
920
|
-
*
|
|
921
|
-
*
|
|
922
|
-
*
|
|
923
|
-
* @
|
|
924
|
-
*
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
*
|
|
950
|
-
*
|
|
951
|
-
*
|
|
952
|
-
*
|
|
953
|
-
* }
|
|
954
|
-
*
|
|
955
|
-
*
|
|
956
|
-
*
|
|
957
|
-
*
|
|
958
|
-
* @
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
*
|
|
982
|
-
*
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
*
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2017 - 2020 by ChartIQ, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* WindowClient is primarily responsible for managing window state (the window's location and size) and app state (data inside of your app).
|
|
7
|
+
* @module WindowClient
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
This is how we want our API to work going forward, the way the world does it: import { processAndSet } from "configClient"
|
|
11
|
+
```
|
|
12
|
+
export const processAndSet = () => { ... }
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This module's single exported object gives us backward compatibility when our core code does this: import { ConfigClient } from "configClient"
|
|
16
|
+
and provides the object that is attached to FSBL.Clients. This export should be kept as clean and simple as possible.
|
|
17
|
+
```
|
|
18
|
+
export const ConfigClient = {
|
|
19
|
+
processAndSet
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The default export gives us backward compatibility where our core code does this: import ConfigClient from "configClient"
|
|
24
|
+
This can be eliminated when our core core is converted to normal imports as in the first example.
|
|
25
|
+
```
|
|
26
|
+
export default ConfigClient;
|
|
27
|
+
```
|
|
28
|
+
*/
|
|
29
|
+
import { System } from "../common/system";
|
|
30
|
+
import { Logger } from "./logger";
|
|
31
|
+
import { RouterClient } from "./routerClient";
|
|
32
|
+
import { FEAGlobals } from "../common/Globals";
|
|
33
|
+
import { getDesktopBoundingBox as getDesktopBoundingBoxFromUtil, isPointInBox as isPointInBoxFromUtil, isMouseOverDOMElement as isMouseOverDOMElementFromUtil, } from "../common/util";
|
|
34
|
+
import { getMonitor, getWhichMonitorClientSide } from "../common/Monitors";
|
|
35
|
+
import { deprecatedSetActive, deprecatedGetWindowNameForDocking } from "../deprecated/deprecatedFunctions";
|
|
36
|
+
import { cacheInitialBounds as cacheInitialBoundsFromStartup } from "./Startup/windowStartup";
|
|
37
|
+
import { singleton } from "../common/Singleton";
|
|
38
|
+
import SystemManagerClient from "../common/systemManagerClient";
|
|
39
|
+
import { FinsembleWindow } from "../common/FinsembleWindow";
|
|
40
|
+
import { actions, emptyStore } from "../platform/services/window/modules/actions";
|
|
41
|
+
import { getRemoteStoreAsSingleton, getRemoteState } from "../common/redux/getRemoteStore";
|
|
42
|
+
/**
|
|
43
|
+
* Add a local hot key for reloading; apps with BrowserView title bars will not refresh
|
|
44
|
+
* if the focus is on the web content and the user presses control-r.
|
|
45
|
+
*/
|
|
46
|
+
const modifyReload = () => {
|
|
47
|
+
// This is a workaround for correct content reloading on CTRL+R.
|
|
48
|
+
// The Electron build-in reloading for CTRL+R happens faster than the local hotkey will be triggered.
|
|
49
|
+
// Only add if this is a web content which has a BrowserView title bar
|
|
50
|
+
if (!FEAGlobals.fin.isTitlebarWindow() && FEAGlobals.fin.isBrowserView()) {
|
|
51
|
+
document.addEventListener("keydown", (e) => {
|
|
52
|
+
if (e.ctrlKey && e.key.toLowerCase() === "r") {
|
|
53
|
+
e.preventDefault();
|
|
54
|
+
e.stopPropagation();
|
|
55
|
+
FEAGlobals.finsembleWindow.reload();
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* The WindowClientController is a singleton which serves as the backing for the WindowClient export. Even though WindowClient
|
|
62
|
+
* is exported, there can still be more than one instance when running with an FEA preload. In these circumstances, the singleton
|
|
63
|
+
* nature of the controller ensures that both instances have access to the same static data, and that there are only ever
|
|
64
|
+
* one set of router messages/event listeners.
|
|
65
|
+
*
|
|
66
|
+
* WindowClient accesses the WindowClientController's internal objects using getters and setters. This allows multiple copies
|
|
67
|
+
* of WindowClient to each maintain a reference to the singleton's members, guaranteeing consistency.
|
|
68
|
+
*
|
|
69
|
+
* The WindowClientController must be started from an entry point (FSBLDesktop or FSBLService).
|
|
70
|
+
*/
|
|
71
|
+
class WindowClientController {
|
|
72
|
+
constructor() {
|
|
73
|
+
this.options = {};
|
|
74
|
+
this.title = null;
|
|
75
|
+
this.windowGroups = [];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Handler for group updates from the window service. Stores the groups that this window is in,
|
|
79
|
+
* if any.
|
|
80
|
+
* @param err the error, if any
|
|
81
|
+
* @param res the received updated group data
|
|
82
|
+
*/
|
|
83
|
+
groupUpdateHandler(err, res) {
|
|
84
|
+
if (err) {
|
|
85
|
+
Logger.error(err);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (!res.data || !res.data.groupData)
|
|
89
|
+
return;
|
|
90
|
+
this.windowGroups = Object.values(res.data.groupData).filter((group) => group.windowNames.includes(deprecatedGetWindowNameForDocking(FEAGlobals.finsembleWindow)));
|
|
91
|
+
}
|
|
92
|
+
setStartupData(systemStartupData) {
|
|
93
|
+
this.options = systemStartupData;
|
|
94
|
+
}
|
|
95
|
+
async start() {
|
|
96
|
+
await SystemManagerClient.waitForStartup("windowService");
|
|
97
|
+
RouterClient.subscribe("Finsemble.WorkspaceService.groupUpdate", (groupUpdateSubscribeErr, res) => this.groupUpdateHandler(groupUpdateSubscribeErr, res));
|
|
98
|
+
// On Blur remove the border from window
|
|
99
|
+
FEAGlobals.finsembleWindow.addEventListener("blurred", () => {
|
|
100
|
+
deprecatedSetActive(false);
|
|
101
|
+
});
|
|
102
|
+
// On focus add a border to the window
|
|
103
|
+
FEAGlobals.finsembleWindow.addEventListener("focused", () => {
|
|
104
|
+
deprecatedSetActive(true);
|
|
105
|
+
});
|
|
106
|
+
// Add reload handlers for non-titlebar instances
|
|
107
|
+
// The reload handler was moved to windowStartup and also made to only
|
|
108
|
+
// work with titlebars; this was probably an oversight.
|
|
109
|
+
modifyReload();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @ignore
|
|
114
|
+
*/
|
|
115
|
+
export const getControllerInstance = () => singleton("WindowClient", WindowClientController);
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated
|
|
118
|
+
* Returns a list of the groups this window is in, if any.
|
|
119
|
+
*/
|
|
120
|
+
const getWindowGroups = () => {
|
|
121
|
+
Logger.deprecated("getWindowGroups() is deprecated and will be removed in a future release.");
|
|
122
|
+
const controller = getControllerInstance();
|
|
123
|
+
return controller.windowGroups;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* @language javascript, java, dotnet
|
|
127
|
+
* Closes window. Defaults are to remove the window from the workspace if the user presses the X button, but not if the window is closed via an app-level request (e.g., switching workspaces, so all windows need to close).
|
|
128
|
+
*
|
|
129
|
+
* @deprecated - Use of parameters has been deprecated, and will be removed in an upcoming version.
|
|
130
|
+
*
|
|
131
|
+
* ```javascript
|
|
132
|
+
* //Close window and remove from workspace (e.g., user closes the window).
|
|
133
|
+
* FSBL.Clients.WindowClient.close({ removeFromWorkspace: true, closeWindow: true });
|
|
134
|
+
* //Close window and keep in workspace (e.g., application requests that all windows close themselves).
|
|
135
|
+
* FSBL.Clients.WindowClient.close({ removeFromWorkspace: false, closeWindow: false });
|
|
136
|
+
* ```
|
|
137
|
+
* @param {object} params
|
|
138
|
+
* @param {boolean} params.removeFromWorkspace Whether to remove the window from the workspace.
|
|
139
|
+
* @param {boolean} params.closeWindow Whether to close the window. On shutdown this method is called, but the Window Service actually closes the window.
|
|
140
|
+
* @param {boolean} params.userInitiated Whether the user clicked the X, or if the system asked the window to close.
|
|
141
|
+
* @param {function} cb The callback to be invoked after the method completes successfully.
|
|
142
|
+
*/
|
|
143
|
+
export const close = (params, cb) => {
|
|
144
|
+
if (!params) {
|
|
145
|
+
params = { removeFromWorkspace: true, closeWindow: true };
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
// Note: It has been deprecated to use parameters. Normally, we would use Logger.deprecate() here, but the parameters are currently being used internally.
|
|
149
|
+
// If we were to include Logger.deprecate(), we would flood the central logger. So, we're just going to document it as deprecated. The parameters will be
|
|
150
|
+
// unnecessary for internal usage once we move to io.CD.
|
|
151
|
+
}
|
|
152
|
+
return FEAGlobals.finsembleWindow.close(params, cb);
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* @language javascript, java, dotnet
|
|
156
|
+
* Retrieves the window's title.
|
|
157
|
+
*
|
|
158
|
+
* ```javascript
|
|
159
|
+
* // Get the current window's title
|
|
160
|
+
* await FSBL.Clients.WindowClient.getWindowTitle();
|
|
161
|
+
*
|
|
162
|
+
* // Get a different window's title
|
|
163
|
+
* await FSBL.Clients.WindowClient.getWindowTitle("windowName-foo-bar");
|
|
164
|
+
* ```
|
|
165
|
+
*
|
|
166
|
+
* @param windowName
|
|
167
|
+
* @returns {Promise<String|null>} title
|
|
168
|
+
*/
|
|
169
|
+
export const getWindowTitle = async (windowName) => {
|
|
170
|
+
var _a, _b, _c;
|
|
171
|
+
windowName = windowName || ((_a = FEAGlobals.finsembleWindow) === null || _a === void 0 ? void 0 : _a.name) || window.name;
|
|
172
|
+
const state = (await getRemoteState({
|
|
173
|
+
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
174
|
+
slice: "windowTitleBar",
|
|
175
|
+
}));
|
|
176
|
+
return (_c = (_b = state.windowTitleBar.windows[windowName]) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : null;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* This function retrieves the dimensions of the monitor that the window is on. It's currently used in the <a href="/docs/reference/typedocs/modules/LauncherClient">LauncherClient</a>.
|
|
180
|
+
* @param {function} callback
|
|
181
|
+
*/
|
|
182
|
+
const retrieveMonitorDimensions = async (cb) => {
|
|
183
|
+
Logger.deprecated("WindowClient.retrieveMonitorDimensions() is deprecated and will be removed in a future release.");
|
|
184
|
+
const monitorInfo = await getMonitor();
|
|
185
|
+
FEAGlobals.finsembleWindow.updateOptions({
|
|
186
|
+
options: { monitorDimensions: monitorInfo.monitorRect },
|
|
187
|
+
});
|
|
188
|
+
cb === null || cb === void 0 ? void 0 : cb(monitorInfo.monitorRect);
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Gets the bounds for the window on startup and saves them to the workspace.
|
|
192
|
+
*/
|
|
193
|
+
const cacheInitialBounds = async () => {
|
|
194
|
+
Logger.deprecated("WindowClient.cacheInitialBounds() is deprecated and will be removed in a future version.");
|
|
195
|
+
cacheInitialBoundsFromStartup();
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* @deprecated
|
|
199
|
+
* Returns windowBounds as of the last save.
|
|
200
|
+
* @returns {object}
|
|
201
|
+
* @todo deprecate and remove from linkerClient
|
|
202
|
+
*/
|
|
203
|
+
const getWindowBounds = () => {
|
|
204
|
+
Logger.deprecated("WindowClient.getWindowBounds() is deprecated and will be removed in a future version.");
|
|
205
|
+
return {
|
|
206
|
+
top: FEAGlobals.finsembleWindow.windowOptions.defaultTop,
|
|
207
|
+
left: FEAGlobals.finsembleWindow.windowOptions.defaultLeft,
|
|
208
|
+
width: FEAGlobals.finsembleWindow.windowOptions.defaultWidth,
|
|
209
|
+
height: FEAGlobals.finsembleWindow.windowOptions.defaultHeight,
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* Saves the window's state. Rarely called manually, as it's called every time your window moves.
|
|
215
|
+
*
|
|
216
|
+
* The code below is the bulk of our listener for the <code>bounds-changed</code> event from the window. Every time the <code>bounds-changed</code> event is fired (when the window is resized or moved), we save the window's state. The first few lines just prevent the window from being dropped behind the toolbar.
|
|
217
|
+
* ```javascript
|
|
218
|
+
* finWindow.addEventListener('disabled-frame-bounds-changed', function (bounds) {
|
|
219
|
+
* if (bounds.top < 45) {
|
|
220
|
+
* finWindow.moveTo(bounds.left, 45);
|
|
221
|
+
* return;
|
|
222
|
+
* }
|
|
223
|
+
* self.saveWindowBounds(bounds);
|
|
224
|
+
* ```
|
|
225
|
+
* @param {Object} bounds optional param.
|
|
226
|
+
* @param {boolean} setActiveWorkspaceDirty
|
|
227
|
+
*});
|
|
228
|
+
*/
|
|
229
|
+
const saveWindowBounds = (bounds, setActiveWorkspaceDirty) => {
|
|
230
|
+
Logger.system.debug("WINDOW LIFECYCLE:SavingBounds:", bounds, "setActiveWorkspaceDirty", setActiveWorkspaceDirty);
|
|
231
|
+
if (typeof setActiveWorkspaceDirty === "undefined") {
|
|
232
|
+
setActiveWorkspaceDirty = false;
|
|
233
|
+
}
|
|
234
|
+
if (!bounds) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
FEAGlobals.finsembleWindow.updateOptions({
|
|
238
|
+
options: {
|
|
239
|
+
top: Math.round(bounds.top),
|
|
240
|
+
defaultTop: Math.round(bounds.top),
|
|
241
|
+
left: Math.round(bounds.left),
|
|
242
|
+
defaultLeft: Math.round(bounds.left),
|
|
243
|
+
width: Math.round(bounds.width),
|
|
244
|
+
defaultWidth: Math.round(bounds.width),
|
|
245
|
+
height: Math.round(bounds.height),
|
|
246
|
+
defaultHeight: Math.round(bounds.height),
|
|
247
|
+
},
|
|
248
|
+
});
|
|
249
|
+
try {
|
|
250
|
+
if (!FEAGlobals.finsembleWindow.windowOptions.customData.foreign.components["Window Manager"].persistWindowState) {
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
catch (e) {
|
|
254
|
+
// prop doesn't exist.
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* @language javascript, java, dotnet
|
|
259
|
+
* Maximizes the window taking into account any claimed space on the monitor.
|
|
260
|
+
*
|
|
261
|
+
* ```javascript
|
|
262
|
+
* FSBL.Clients.WindowClient.maximize();
|
|
263
|
+
* ```
|
|
264
|
+
* @param {function} cb Optional callback to be invoked after the method completes successfully.
|
|
265
|
+
*/
|
|
266
|
+
export const maximize = (cb) => FEAGlobals.finsembleWindow.maximize(null, cb);
|
|
267
|
+
/**
|
|
268
|
+
* @language javascript, java, dotnet
|
|
269
|
+
* Minimizes window.
|
|
270
|
+
*
|
|
271
|
+
* ```javascript
|
|
272
|
+
* FSBL.Clients.WindowClient.minimize();
|
|
273
|
+
* ```
|
|
274
|
+
* @param {function} cb Optional callback to be invoked after the method completes successfully.
|
|
275
|
+
*/
|
|
276
|
+
export const minimize = (cb) => FEAGlobals.finsembleWindow.minimize(null, cb);
|
|
277
|
+
/**
|
|
278
|
+
* @language javascript, java
|
|
279
|
+
* Brings the window to the top of all other windows.
|
|
280
|
+
*
|
|
281
|
+
* ```javascript
|
|
282
|
+
* FSBL.Clients.WindowClient.bringToFront();
|
|
283
|
+
* ```
|
|
284
|
+
*/
|
|
285
|
+
export const bringToFront = (cb) => FEAGlobals.finsembleWindow.bringToFront({ forceFocus: true }, cb);
|
|
286
|
+
/**
|
|
287
|
+
* @language javascript, java, dotnet
|
|
288
|
+
* @deprecated Use [`bringToFront()`](#bringtofront) instead, which returns a promise.
|
|
289
|
+
*
|
|
290
|
+
* Brings the window to the top of all other windows
|
|
291
|
+
*
|
|
292
|
+
* This is a non-promise version for backward compatibility. Please use WindowClient.bringToFront()
|
|
293
|
+
*
|
|
294
|
+
* @deprecated Use `bringToFront()` instead, which returns a promise.
|
|
295
|
+
*/
|
|
296
|
+
export const bringWindowToFront = (cb) => {
|
|
297
|
+
Logger.system.deprecated("WindowClient.bringWindowToFront() has been deprecated. Please use WindowClient.bringToFront() which returns a promise.");
|
|
298
|
+
FEAGlobals.finsembleWindow.bringToFront({ forceFocus: true }, cb);
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* @language javascript, java, dotnet
|
|
302
|
+
* Sets whether window is always on top. By default, this is false.
|
|
303
|
+
*
|
|
304
|
+
* ```javascript
|
|
305
|
+
* FSBL.Clients.WindowClient.setAlwaysOnTop(true);
|
|
306
|
+
* ```
|
|
307
|
+
* @param {boolean} alwaysOnTop The new mode for the window's alwaysOnTop option to be set to.
|
|
308
|
+
* @param {function} cb Optional callback to be invoked after the method completes successfully.
|
|
309
|
+
*/
|
|
310
|
+
export const setAlwaysOnTop = (alwaysOnTop, cb) => FEAGlobals.finsembleWindow.setAlwaysOnTop({ alwaysOnTop }, cb);
|
|
311
|
+
/**
|
|
312
|
+
* @language javascript, java, dotnet
|
|
313
|
+
* Restores window from a maximized or minimized state.
|
|
314
|
+
*
|
|
315
|
+
* ```javascript
|
|
316
|
+
* FSBL.Clients.WindowClient.restore();
|
|
317
|
+
* ```
|
|
318
|
+
* @param {function} cb Optional callback to be invoked after the method completes successfully.
|
|
319
|
+
*/
|
|
320
|
+
export const restore = (cb) => FEAGlobals.finsembleWindow.restore(null, cb);
|
|
321
|
+
/**
|
|
322
|
+
* @language javascript, java
|
|
323
|
+
* :::tip Important
|
|
324
|
+
* _This feature is experimental. The signature may change in the future._
|
|
325
|
+
* :::
|
|
326
|
+
*
|
|
327
|
+
* Sets an overlay image on the MS Windows taskbar, for instance to indicate activity.
|
|
328
|
+
* (This is sometimes referred to as a "badge").
|
|
329
|
+
*
|
|
330
|
+
* The url must point to a 16x16 png image. Images of other sizes or types will not display.
|
|
331
|
+
*
|
|
332
|
+
* :::note
|
|
333
|
+
* MacOS does not support taskbar overlay images. This function is safe to call
|
|
334
|
+
* on MacOS but will not perform any function.
|
|
335
|
+
* :::
|
|
336
|
+
*
|
|
337
|
+
* @param url - The url of the icon to use. Pass null to remove the overlay icon.
|
|
338
|
+
*/
|
|
339
|
+
export const setTaskbarIconOverlay = (url) => {
|
|
340
|
+
FEAGlobals.fin.desktop.Window.setTaskbarIconOverlay({ iconURL: url });
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* This function injects the header bar into all windows without frames that request it. This should only be used if you've decided not to use the provided <code>WindowClient.start()</code> method.
|
|
344
|
+
*
|
|
345
|
+
* **NOTE:** If you are using the Finsemble window title bar component, you do not need to call this function.
|
|
346
|
+
*/
|
|
347
|
+
const injectDOM = (headerHeight) => {
|
|
348
|
+
Logger.system.deprecated("WindowClient.injectDOM() has been deprecated and will be removed in a future release");
|
|
349
|
+
// for the aesthetics.
|
|
350
|
+
if (document.getElementById("FSBLHeader")) {
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
// On slow loading components, the end user might have the opportunity to scroll the page before the window title bar is injected.
|
|
354
|
+
// This triggers a chromium bug related to elements with position:fixed. Chromium loses track of where that element actually is on
|
|
355
|
+
// the browser page. Chromium *thinks* the title bar is lower than it actually is, by the amount of pixels scrolled by the user.
|
|
356
|
+
// The fix is to force the scroll position back to zero before we inject this fixed element.
|
|
357
|
+
window.scrollTo(0, 0);
|
|
358
|
+
// Now inject the window title bar
|
|
359
|
+
const template = document.createElement("div");
|
|
360
|
+
const style = headerHeight ? ` style=height:${headerHeight}` : "";
|
|
361
|
+
template.innerHTML = `<div id="FSBLHeader"${style}></div>`;
|
|
362
|
+
if (template.firstChild) {
|
|
363
|
+
document.body.insertBefore(template.firstChild, document.body.firstChild);
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
// returns Finsemble Window Object of current element or of element specified in given params
|
|
367
|
+
const getElementFinsembleWindow = async (params) => {
|
|
368
|
+
if ((params === null || params === void 0 ? void 0 : params.windowName) && (params === null || params === void 0 ? void 0 : params.windowName.length) > 0) {
|
|
369
|
+
const { wrap } = await FinsembleWindow.getInstance({ name: params.windowName });
|
|
370
|
+
return wrap;
|
|
371
|
+
}
|
|
372
|
+
return FEAGlobals.finsembleWindow;
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* @language javascript, java, dotnet
|
|
376
|
+
* Given a field, this function retrieves app state. If no params are given, returns the full state.
|
|
377
|
+
*
|
|
378
|
+
* Here's how to retrieve data to restore the layout of our charts.
|
|
379
|
+
* ```javascript
|
|
380
|
+
* FSBL.Clients.WindowClient.getComponentState({
|
|
381
|
+
* field: 'myChartLayout',
|
|
382
|
+
* }, function (err, state) {
|
|
383
|
+
* importLayout(state);
|
|
384
|
+
* });
|
|
385
|
+
*
|
|
386
|
+
* FSBL.Clients.WindowClient.getComponentState({
|
|
387
|
+
* fields: ['myChartLayout', 'chartType'],
|
|
388
|
+
* }, function (err, state) {
|
|
389
|
+
* let chartType = state['chartType'];
|
|
390
|
+
* let myChartLayout = state['myChartLayout'];
|
|
391
|
+
* });
|
|
392
|
+
* ```
|
|
393
|
+
* @param {object} params
|
|
394
|
+
* @param {string} params.field Field to retrieve.
|
|
395
|
+
* @param {Array.<string>} params.fields Fields to retrieve.
|
|
396
|
+
* @param {string} params.windowName Window whose component state you are retrieving. If null, defaults to the calling window.
|
|
397
|
+
* @param {function} cb The callback to be invoked after the method completes successfully.
|
|
398
|
+
*/
|
|
399
|
+
export const getComponentState = async (params, cb) => new Promise(async (resolve) => {
|
|
400
|
+
if (!params) {
|
|
401
|
+
params = {};
|
|
402
|
+
}
|
|
403
|
+
if (params.fields && !Array.isArray(params.fields)) {
|
|
404
|
+
params.fields = [params.fields];
|
|
405
|
+
}
|
|
406
|
+
const elementFinsembleWindow = await getElementFinsembleWindow(params);
|
|
407
|
+
elementFinsembleWindow.getComponentState(params, (err, data) => {
|
|
408
|
+
cb === null || cb === void 0 ? void 0 : cb(err, data);
|
|
409
|
+
resolve({ err, data });
|
|
410
|
+
});
|
|
411
|
+
});
|
|
412
|
+
/**
|
|
413
|
+
* @language javascript, java, dotnet
|
|
414
|
+
* Given a field, this function sets and persists app state.
|
|
415
|
+
*
|
|
416
|
+
* Here is how to save the chart layout when it changes.
|
|
417
|
+
* ```javascript
|
|
418
|
+
* let s = stx.exportLayout(true);
|
|
419
|
+
* //saving layout'
|
|
420
|
+
* FSBL.Clients.WindowClient.setComponentState({ field: 'myChartLayout', value: s });
|
|
421
|
+
* FSBL.Clients.WindowClient.setComponentState({ fields: [
|
|
422
|
+
* {field:'myChartLayout', value: s },
|
|
423
|
+
* {field:'chartType', value: 'mountain'}
|
|
424
|
+
* ]});
|
|
425
|
+
* ```
|
|
426
|
+
* @param {object} params Object of data to be saved
|
|
427
|
+
* @param {string} params.field The key name of the field to be saved. Required if not using `fields`.
|
|
428
|
+
* @param {Array.<object>} params.fields An array of objects with `field` and `value` keys to be saved.
|
|
429
|
+
* @param {string} params.windowName Name of the component whose state you are setting. Defaults to the calling window.
|
|
430
|
+
* @param {any} params.value Value of the data being saved. Required if not using `fields`.
|
|
431
|
+
* @param {function} cb The callback to be invoked after the method completes successfully.
|
|
432
|
+
*/
|
|
433
|
+
export const setComponentState = async (params, cb) => new Promise(async (resolve) => {
|
|
434
|
+
const elementFinsembleWindow = await getElementFinsembleWindow(params);
|
|
435
|
+
elementFinsembleWindow.setComponentState(params, (err) => {
|
|
436
|
+
cb === null || cb === void 0 ? void 0 : cb(err);
|
|
437
|
+
resolve({ err });
|
|
438
|
+
});
|
|
439
|
+
});
|
|
440
|
+
/**
|
|
441
|
+
* @language javascript, java, dotnet
|
|
442
|
+
* Given a field, this function removes it from app state.
|
|
443
|
+
*
|
|
444
|
+
* The example below shows how we would remove our chart layout when it no longer needed.
|
|
445
|
+
* ```javascript
|
|
446
|
+
* // remove unused state value
|
|
447
|
+
* FSBL.Clients.WindowClient.removeComponentState({ field: 'myChartLayout'});
|
|
448
|
+
* FSBL.Clients.WindowClient.removeComponentState({ fields: [{field:'myChartLayout'}, {field:'chartType'}]});
|
|
449
|
+
* ```
|
|
450
|
+
* @param {object} params Object of data to be removed
|
|
451
|
+
* @param {string} params.field The key name of the field to be saved. Required if not using `fields`.
|
|
452
|
+
* @param {Array.<object>} params.fields An array of objects with `field` keys to be removed.
|
|
453
|
+
* @param {string} params.windowName The name of the window to remove component state from
|
|
454
|
+
* @param {function} cb The callback to be invoked after the method completes successfully.
|
|
455
|
+
*/
|
|
456
|
+
export const removeComponentState = async (params, cb) => new Promise(async (resolve) => {
|
|
457
|
+
const elementFinsembleWindow = await getElementFinsembleWindow(params);
|
|
458
|
+
elementFinsembleWindow.removeComponentState(params, (err) => {
|
|
459
|
+
cb === null || cb === void 0 ? void 0 : cb(err);
|
|
460
|
+
resolve({ err });
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
/**
|
|
464
|
+
* @language javascript
|
|
465
|
+
* Gets the window name of current window. The code that manages window movement will not see a child window if it's part of a stacked window. This function will return the window name that the Window Service cares about for window movement.
|
|
466
|
+
* @deprecated
|
|
467
|
+
*
|
|
468
|
+
* Gets the window name of current window or the parent, if tabbed. The code that manages window movement will not see a child window if it's part of a stacked window. This function will return the window name that the Window Service cares about for window movement.
|
|
469
|
+
*/
|
|
470
|
+
export const getWindowNameForDocking = () => {
|
|
471
|
+
Logger.deprecated("WindowClient.getWindowNameForDocking is deprecated and will be removed");
|
|
472
|
+
return deprecatedGetWindowNameForDocking(FEAGlobals.finsembleWindow);
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* @language javascript
|
|
476
|
+
* @deprecated
|
|
477
|
+
* Forms a group with any window that is touching the border of this window.
|
|
478
|
+
*/
|
|
479
|
+
export const formGroup = () => {
|
|
480
|
+
Logger.system.deprecated("WindowClient.formGroup() is deprecated.");
|
|
481
|
+
FEAGlobals.finsembleWindow.formGroup();
|
|
482
|
+
};
|
|
483
|
+
/**
|
|
484
|
+
* Adds finsembleWindow listeners for the command channel to the WindowTitleBar.
|
|
485
|
+
*
|
|
486
|
+
* These listeners are auto-cleaning when a window closes, so there is no need to manually close
|
|
487
|
+
* them during destruction.
|
|
488
|
+
*/
|
|
489
|
+
const addListeners = () => {
|
|
490
|
+
Logger.deprecated("Do not call WindowClient.addListeners() directly");
|
|
491
|
+
};
|
|
492
|
+
/**
|
|
493
|
+
* @language javascript
|
|
494
|
+
* @deprecated
|
|
495
|
+
* Ejects the window from the docking group
|
|
496
|
+
*/
|
|
497
|
+
export const ejectFromGroup = () => {
|
|
498
|
+
Logger.system.deprecated("WindowClient.ejectFromGroup() is deprecated.");
|
|
499
|
+
FEAGlobals.finsembleWindow.ejectFromGroup();
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* @language javascript, java, dotnet
|
|
503
|
+
* This method overrides the app title that displays in the app's title bar or tab. This will take precedence over
|
|
504
|
+
* the document.title or title that is set in the app's config. This will however be overridden by an user edited title.
|
|
505
|
+
* @param title Window title.
|
|
506
|
+
*/
|
|
507
|
+
const setWindowTitle = (title) => {
|
|
508
|
+
const store = getRemoteStoreAsSingleton({
|
|
509
|
+
singletonName: "WindowClient::setWindowTitle",
|
|
510
|
+
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
511
|
+
slice: "windowTitleBar",
|
|
512
|
+
emptyStore,
|
|
513
|
+
dispatchOnly: true,
|
|
514
|
+
});
|
|
515
|
+
store.dispatch(actions.setAPITitle({
|
|
516
|
+
title,
|
|
517
|
+
}));
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* @language javascript, java, dotnet
|
|
521
|
+
* Retrieves data that was set with <a href="/docs/reference/typedocs/modules/LauncherClient#spawn">LauncherClient.spawn</a>.
|
|
522
|
+
* @returns The spawnData that was passed to calls to LauncherClient.spawn, or an empty object.
|
|
523
|
+
*/
|
|
524
|
+
export const getSpawnData = () => {
|
|
525
|
+
var _a, _b, _c;
|
|
526
|
+
const controller = getControllerInstance();
|
|
527
|
+
return (_c = (_b = (_a = controller.options) === null || _a === void 0 ? void 0 : _a.customData) === null || _b === void 0 ? void 0 : _b.spawnData) !== null && _c !== void 0 ? _c : {};
|
|
528
|
+
};
|
|
529
|
+
/**
|
|
530
|
+
* @language javascript, java, dotnet
|
|
531
|
+
* @deprecated Use `FSBL.System.Window.getCurrent()`
|
|
532
|
+
*
|
|
533
|
+
* Returns a reference to the current FEAWindow for the component.
|
|
534
|
+
* @returns {finWindow}
|
|
535
|
+
*/
|
|
536
|
+
export const getCurrentWindow = () => {
|
|
537
|
+
// getCurrentWindow() is still being used by e2e tests and the zoom.js preload. Don't change this to
|
|
538
|
+
// Logger.deprecated() until those systems are refactored to use FSBL.System.Window.
|
|
539
|
+
Logger.system.deprecated("WindowClient.getCurrentWindow() is no longer supported and will likely go away in the future. Use FSBL.System.Window.getCurrent() instead.");
|
|
540
|
+
Logger.log("WindowClient.getCurrentWindow() is deprecated and will be removed in a future release.");
|
|
541
|
+
return System.Window.getCurrent();
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* For the DOM element that has been passed in, this function returns a bounding box that is relative
|
|
545
|
+
* to the virtual monitor space. That is, it returns the position of the DOM element on the desktop.
|
|
546
|
+
* @param {HTMLElement|string} element A selector or HTMLElement
|
|
547
|
+
*/
|
|
548
|
+
const getDesktopBoundingBox = async (element) => {
|
|
549
|
+
Logger.deprecated("WindowClient.getDesktopBoundingBox() is deprecated and will be removed in a future release.");
|
|
550
|
+
return getDesktopBoundingBoxFromUtil(element);
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
* @deprecated This code will be moved into finsemble-ui
|
|
554
|
+
*/
|
|
555
|
+
const isPointInBox = (point, box) => {
|
|
556
|
+
Logger.deprecated("WindowClient.isPointInBox() is deprecated and will be removed in a future release.");
|
|
557
|
+
return isPointInBoxFromUtil(point, box);
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* Returns (via callback) true if the mouse is currently located (hovering) over the requested element.
|
|
561
|
+
* @param {HTMLElement|string} element The element, or a selector, to check
|
|
562
|
+
* @param {function} cb A function that returns a boolean
|
|
563
|
+
*/
|
|
564
|
+
const isMouseOverDOMElement = (element, cb) => {
|
|
565
|
+
Logger.deprecated("WindowClient.isMouseOverDOMElement() is deprecated and will be removed in a future release.");
|
|
566
|
+
return isMouseOverDOMElementFromUtil(element, cb);
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* @language javascript, java, dotnet
|
|
570
|
+
* Returns the window identifier for the current component.
|
|
571
|
+
* @returns {WindowIdentifier}
|
|
572
|
+
*/
|
|
573
|
+
export const getWindowIdentifier = () => {
|
|
574
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
575
|
+
const controller = getControllerInstance();
|
|
576
|
+
return {
|
|
577
|
+
windowName: (_b = (_a = FEAGlobals.finsembleWindow) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : window.name,
|
|
578
|
+
uuid: (_d = (_c = FEAGlobals.finsembleWindow) === null || _c === void 0 ? void 0 : _c.uuid) !== null && _d !== void 0 ? _d : undefined,
|
|
579
|
+
componentType: (_h = (_g = (_f = (_e = controller.options) === null || _e === void 0 ? void 0 : _e.customData) === null || _f === void 0 ? void 0 : _f.component) === null || _g === void 0 ? void 0 : _g.type) !== null && _h !== void 0 ? _h : null,
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* @deprecated
|
|
584
|
+
* Highlights the window as active by creating a border around the window.
|
|
585
|
+
*
|
|
586
|
+
* @param {boolean} active Set to false to turn off activity
|
|
587
|
+
*/
|
|
588
|
+
const setActive = (active) => {
|
|
589
|
+
Logger.deprecated("WindowClient.setActive is deprecated and will be removed");
|
|
590
|
+
deprecatedSetActive(active);
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* @language javascript, java, dotnet
|
|
594
|
+
* Returns the object defining bounds for the current window including the position of the left and right edges measured in pixels from the left edge of the monitor, the top and bottom edges measured in pixels from the top edge, and the width and height of the component in pixels.
|
|
595
|
+
* Please note that this method differs from the right and bottom coordinates passed to LauncherClient.spawn(); those are measured from the right and bottom edges of the screen.
|
|
596
|
+
* @param {StandardCallback} cb The callback to be invoked after the method completes successfully.
|
|
597
|
+
*/
|
|
598
|
+
export const getBounds = (cb) => FEAGlobals.finsembleWindow.getBounds(cb);
|
|
599
|
+
/**
|
|
600
|
+
* @language javascript
|
|
601
|
+
* @deprecated
|
|
602
|
+
* Defines areas of the window that will be displayed and clickable. All other areas of the window will be transparent.
|
|
603
|
+
* Can be used to create click-through areas of a window.
|
|
604
|
+
*
|
|
605
|
+
* @param params Optional. Takes an array of rectangle Objects for the areas of the window that will be displayed and clickable.
|
|
606
|
+
* Passing in an empty array or omitting this parameter will cause the full area of the window to be displayed and clickable.
|
|
607
|
+
* A rectangle is defined as: {
|
|
608
|
+
* x: x coordinate for the origin of the rectangle (integer)
|
|
609
|
+
* y: x coordinate for the origin of the rectangle (integer)
|
|
610
|
+
* width: width of the rectangle (integer)
|
|
611
|
+
* height: height of the rectangle (integer)
|
|
612
|
+
* }
|
|
613
|
+
* @param callback: Function = Function.prototype
|
|
614
|
+
*/
|
|
615
|
+
export const setShape = (params, callback = Function.prototype) => {
|
|
616
|
+
Logger.system.deprecated("WindowClient.setShape() is deprecated.");
|
|
617
|
+
FEAGlobals.finsembleWindow.setShape(params, callback);
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* @language javascript
|
|
621
|
+
* This is used by the Finsemble window title bar when a tab is dragged for tiling or tabbing.
|
|
622
|
+
* @param {*} params - <code>params.windowIdentifier</code> is required.
|
|
623
|
+
* @param {WindowIdentifier} params.windowIdentifier The Finsemble identifier for the target window.
|
|
624
|
+
* @param {*} cb The callback to be invoked after the method completes successfully.
|
|
625
|
+
* @deprecated This code will be moved into finsemble-ui
|
|
626
|
+
*/
|
|
627
|
+
export const startTilingOrTabbing = (params, cb) => {
|
|
628
|
+
Logger.deprecated("WindowClient.startTilingOrTabbing is deprecated and will be removed");
|
|
629
|
+
RouterClient.transmit("DockingService.startTilingOrTabbing", params);
|
|
630
|
+
cb === null || cb === void 0 ? void 0 : cb();
|
|
631
|
+
};
|
|
632
|
+
/**
|
|
633
|
+
* @language javascript
|
|
634
|
+
* @deprecated
|
|
635
|
+
* Begin programmatically moving the window; the first parameter is a mouse event. Until `stopMovingWindow` is invoked, the window will follow the user's mouse. This should be invoked inside of a `mouseDown` event handler.
|
|
636
|
+
*/
|
|
637
|
+
export const startMovingWindow = (event) => {
|
|
638
|
+
const currentWindow = System.Window.getCurrent();
|
|
639
|
+
currentWindow.startMovingWindow(event);
|
|
640
|
+
};
|
|
641
|
+
/**
|
|
642
|
+
* @language javascript
|
|
643
|
+
* @deprecated
|
|
644
|
+
* Stops moving a window that was set in motion via `startMovingWindow`.
|
|
645
|
+
*/
|
|
646
|
+
export const stopMovingWindow = () => {
|
|
647
|
+
const currentWindow = System.Window.getCurrent();
|
|
648
|
+
currentWindow.stopMovingWindow();
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* @language javascript
|
|
652
|
+
* This is used to cancel a tabbing or tiling operation.
|
|
653
|
+
*
|
|
654
|
+
* @param {object} params
|
|
655
|
+
* @param {WindowIdentifier} params.windowIdentifier The Finsemble identifier for the window.
|
|
656
|
+
* @param {Function} cb - The callback to be invoked after the method completes successfully.
|
|
657
|
+
* @deprecated This code will be moved into finsemble-ui
|
|
658
|
+
*/
|
|
659
|
+
export const cancelTilingOrTabbing = (params, cb) => {
|
|
660
|
+
Logger.deprecated("WindowClient.cancelTilingOrTabbing is deprecated and will be removed");
|
|
661
|
+
console.debug("CancelTilingOrTabbing");
|
|
662
|
+
RouterClient.transmit("DockingService.cancelTilingOrTabbing", params);
|
|
663
|
+
cb === null || cb === void 0 ? void 0 : cb();
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* @language javascript, java
|
|
667
|
+
* This function is used by the Finsemble window title bar to end tiling or tabbing.
|
|
668
|
+
* @param {*} params
|
|
669
|
+
* @param {object} params.mousePosition Where the pointer is on the screen
|
|
670
|
+
* @param {number} params.mousePosition.x X position of the pointer
|
|
671
|
+
* @param {number} params.mousePosition.y Y position of the pointer
|
|
672
|
+
* @param {boolean} params.allowDropOnSelf Determines whether a tab can be dropped on the window where the drag originated.
|
|
673
|
+
* @param {*} cb - The callback to be invoked after the method completes successfully.
|
|
674
|
+
* @deprecated This code will be moved into finsemble-ui
|
|
675
|
+
*/
|
|
676
|
+
export const stopTilingOrTabbing = (params, cb) => {
|
|
677
|
+
Logger.deprecated("WindowClient.stopTilingOrTabbing is deprecated and will be removed");
|
|
678
|
+
// We both transmit and query because no stack operation should happen until this is done and there are a lot of listeners around.
|
|
679
|
+
const transmitAndQueryStop = () => {
|
|
680
|
+
RouterClient.query("DockingService.stopTilingOrTabbing", params, () => {
|
|
681
|
+
cb === null || cb === void 0 ? void 0 : cb();
|
|
682
|
+
});
|
|
683
|
+
RouterClient.transmit("DockingService.stopTilingOrTabbing", params);
|
|
684
|
+
};
|
|
685
|
+
// Get the mouse position if not passed through for transmit to the router,
|
|
686
|
+
// If allowDropOnSelf is true, it came from a tab/window drop event. Run the callback.
|
|
687
|
+
if (!params.mousePosition) {
|
|
688
|
+
System.getMousePosition((err, position) => {
|
|
689
|
+
params.mousePosition = position;
|
|
690
|
+
transmitAndQueryStop();
|
|
691
|
+
if (!params.allowDropOnSelf)
|
|
692
|
+
cb === null || cb === void 0 ? void 0 : cb();
|
|
693
|
+
});
|
|
694
|
+
return;
|
|
695
|
+
}
|
|
696
|
+
transmitAndQueryStop();
|
|
697
|
+
if (!params.allowDropOnSelf)
|
|
698
|
+
cb === null || cb === void 0 ? void 0 : cb();
|
|
699
|
+
};
|
|
700
|
+
/**
|
|
701
|
+
*
|
|
702
|
+
*/
|
|
703
|
+
const getMonitorInfo = async (params = {}, cb) => {
|
|
704
|
+
Logger.deprecated("WindowClient.getMonitorInfo() is deprecated and will be removed. Please use LauncherClient.getMonitorInfo()");
|
|
705
|
+
return getWhichMonitorClientSide(RouterClient, params, cb);
|
|
706
|
+
};
|
|
707
|
+
/**
|
|
708
|
+
* @language javascript, java, dotnet
|
|
709
|
+
* Moves the window so that it's centered above the user's mouse.
|
|
710
|
+
*/
|
|
711
|
+
export const showAtMousePosition = () => {
|
|
712
|
+
RouterClient.transmit("DockingService.showAtMousePosition", getWindowIdentifier());
|
|
713
|
+
};
|
|
714
|
+
/**
|
|
715
|
+
* @language javascript
|
|
716
|
+
* Resize the window to fit the contents of the window's DOM, with optional padding.
|
|
717
|
+
*
|
|
718
|
+
* @param [params] optional parameters
|
|
719
|
+
* @param [params.padding] allow for padding around to DOM contents
|
|
720
|
+
* @param {number} [params.padding.height] extra pixels to add to the total height of the window. Default is 0
|
|
721
|
+
* @param {number} [params.padding.width] extra pixels to add to the total width of the window. Default is 0
|
|
722
|
+
* @param {number} [params.maxHeight] the maximum height to size the window to
|
|
723
|
+
* @param {number} [params.maxWidth] the maximum width to size the window to
|
|
724
|
+
* @param [cb] The callback to be invoked after the method completes successfully.
|
|
725
|
+
*/
|
|
726
|
+
export const fitToDOM = async (params, cb) => {
|
|
727
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
728
|
+
if (typeof params === "function") {
|
|
729
|
+
cb = params;
|
|
730
|
+
params = null;
|
|
731
|
+
}
|
|
732
|
+
const paddingHeight = (_b = (_a = params === null || params === void 0 ? void 0 : params.padding) === null || _a === void 0 ? void 0 : _a.height) !== null && _b !== void 0 ? _b : 0;
|
|
733
|
+
const paddingWidth = (_d = (_c = params === null || params === void 0 ? void 0 : params.padding) === null || _c === void 0 ? void 0 : _c.width) !== null && _d !== void 0 ? _d : 0;
|
|
734
|
+
const { data: bounds } = await FEAGlobals.finsembleWindow.getBounds();
|
|
735
|
+
if (!bounds)
|
|
736
|
+
return;
|
|
737
|
+
/*
|
|
738
|
+
// Injected title bars monkey with the body height by setting a calc() in the css
|
|
739
|
+
// We have to remove this to get the necessary calculations to fit to the DOM
|
|
740
|
+
if(document.body.style.height?.includes("calc"))
|
|
741
|
+
document.body.style.height = "auto";
|
|
742
|
+
*/
|
|
743
|
+
// The window will never be set larger than the monitor
|
|
744
|
+
const { data: monitorInfo } = await getWhichMonitorClientSide(RouterClient, {});
|
|
745
|
+
const monitorHeight = (_f = (_e = monitorInfo === null || monitorInfo === void 0 ? void 0 : monitorInfo.availableRect) === null || _e === void 0 ? void 0 : _e.height) !== null && _f !== void 0 ? _f : Infinity;
|
|
746
|
+
const monitorWidth = (_h = (_g = monitorInfo === null || monitorInfo === void 0 ? void 0 : monitorInfo.availableRect) === null || _g === void 0 ? void 0 : _g.width) !== null && _h !== void 0 ? _h : Infinity;
|
|
747
|
+
// The titlebar takes up additional height when we're in a browserview.
|
|
748
|
+
// This will calculate that extra height so that we can add it to the overall calculation
|
|
749
|
+
const titlebarHeight = bounds.height - window.innerHeight;
|
|
750
|
+
const verticalScrollbarWidth = window.innerWidth - document.getElementsByTagName("html")[0].clientWidth;
|
|
751
|
+
const horizontalScrollbarHeight = window.innerHeight - document.getElementsByTagName("html")[0].clientHeight;
|
|
752
|
+
// When the horizontal scrollbar is present we need one extra pixel of height to eliminate the vertical scrollbar
|
|
753
|
+
const maybeExtraPixel = horizontalScrollbarHeight ? 1 : 0;
|
|
754
|
+
// offsetHeight is the height of the content, including a horizontal scrollbar if it exists
|
|
755
|
+
const calculatedHeight = document.documentElement.offsetHeight + paddingHeight + titlebarHeight + maybeExtraPixel;
|
|
756
|
+
// We add the verticalScrollbarWidth to prevent the window width from shrinking when we eliminate a vertical
|
|
757
|
+
// scrollbar. We use scrollWidth to ensure that the width expands to cover any hidden horizontal content.
|
|
758
|
+
const calculatedWidth = document.documentElement.scrollWidth + paddingWidth + verticalScrollbarWidth;
|
|
759
|
+
// The end result is the lesser of: calculated size, requested maximum size, and monitor size
|
|
760
|
+
const newHeight = Math.min(calculatedHeight, (_j = params === null || params === void 0 ? void 0 : params.maxHeight) !== null && _j !== void 0 ? _j : calculatedHeight, monitorHeight);
|
|
761
|
+
const newWidth = Math.min(calculatedWidth, (_k = params === null || params === void 0 ? void 0 : params.maxWidth) !== null && _k !== void 0 ? _k : calculatedWidth, monitorWidth);
|
|
762
|
+
Logger.system.debug("WindowClient.FitToDOM:newHeight:newWidth", newHeight, newWidth, params);
|
|
763
|
+
if (bounds.width != newWidth || bounds.height != newHeight) {
|
|
764
|
+
await FEAGlobals.finsembleWindow.setBounds({
|
|
765
|
+
bounds: {
|
|
766
|
+
left: bounds.left,
|
|
767
|
+
top: bounds.top,
|
|
768
|
+
width: newWidth,
|
|
769
|
+
height: newHeight,
|
|
770
|
+
},
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
cb === null || cb === void 0 ? void 0 : cb();
|
|
774
|
+
};
|
|
775
|
+
/**
|
|
776
|
+
* @language javascript, dotnet
|
|
777
|
+
* Forms a tab collection from a list of _existing_ windows. (See [LauncherClient.spawnTabCollection()](./LauncherClient#spawnTabCollection) to form a tab
|
|
778
|
+
* collection from non-existing windows.)
|
|
779
|
+
*
|
|
780
|
+
* ```javascript
|
|
781
|
+
* await FSBL.Clients.WindowClient.createTabCollection({
|
|
782
|
+
* windowNames: ["MyApp-3443-fdf-343-fdfdf","MyOtherApp-dfdf-sdsd-dfdf-sdsd"],
|
|
783
|
+
* promotedTab: "MyOtherApp-dfdf-sdsd-dfdf-sdsd"
|
|
784
|
+
* })
|
|
785
|
+
* ```
|
|
786
|
+
* @param __namedParameters.windowNames - An array of window names to put in the collection. The tabs will retain the ordering of this array.
|
|
787
|
+
* @param __namedParameters.promotedTab - The name of the tab to be promoted. If not set then the first window will be promoted.
|
|
788
|
+
*/
|
|
789
|
+
export const createTabCollection = async ({ windowNames, promotedTab, }) => {
|
|
790
|
+
const store = getRemoteStoreAsSingleton({
|
|
791
|
+
singletonName: "WindowClient::tabCollection",
|
|
792
|
+
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
793
|
+
slice: "api",
|
|
794
|
+
emptyStore,
|
|
795
|
+
dispatchOnly: true,
|
|
796
|
+
});
|
|
797
|
+
store.dispatch(actions.createTabCollection({
|
|
798
|
+
windowNames,
|
|
799
|
+
promotedWindowName: promotedTab,
|
|
800
|
+
}));
|
|
801
|
+
};
|
|
802
|
+
/**
|
|
803
|
+
* @language javascript, dotnet
|
|
804
|
+
* Adds one or more windows to an existing tab collection.
|
|
805
|
+
*
|
|
806
|
+
* ```javascript
|
|
807
|
+
* await FSBL.Clients.WindowClient.addToTabCollection({
|
|
808
|
+
* tabCollectionId: ["StackedWindow-sdsd-343-dsds"],
|
|
809
|
+
* windowNames: ["MyApp-3443-fdf-343-fdfdf","MyOtherApp-dfdf-sdsd-dfdf-sdsd"],
|
|
810
|
+
* position: 2,
|
|
811
|
+
* promotedTab: "MyOtherApp-dfdf-sdsd-dfdf-sdsd"
|
|
812
|
+
* })
|
|
813
|
+
* ```
|
|
814
|
+
* @param __namedParameters.windowNames - An array of window names to be added to the collection.
|
|
815
|
+
* @param __namedParameters.tabCollectionId - ID of the tabCollection to join.
|
|
816
|
+
* @param __namedParameters.position - Specifies where in the collection to add the new tabs. If not set then they will be appended to the end of the collection.
|
|
817
|
+
* @param __namedParameters.promotedTab - Tab to be promoted. If not set then the promoted tab will not be changed.
|
|
818
|
+
*/
|
|
819
|
+
export const addToTabCollection = async ({ windowNames, tabCollectionId, position, promotedTab, }) => {
|
|
820
|
+
const store = getRemoteStoreAsSingleton({
|
|
821
|
+
singletonName: "WindowClient::tabCollection",
|
|
822
|
+
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
823
|
+
slice: "api",
|
|
824
|
+
emptyStore,
|
|
825
|
+
dispatchOnly: true,
|
|
826
|
+
});
|
|
827
|
+
store.dispatch(actions.addTabsToTabCollection({
|
|
828
|
+
windowNames,
|
|
829
|
+
tabCollectionId,
|
|
830
|
+
position,
|
|
831
|
+
promotedWindowName: promotedTab,
|
|
832
|
+
}));
|
|
833
|
+
};
|
|
834
|
+
/**
|
|
835
|
+
* @language javascript, dotnet
|
|
836
|
+
* Removes one or more tabs from their tab collection(s). The tab collection is identified automatically.
|
|
837
|
+
* Tab collections with fewer than two tabs are removed from the system. If the tab collection is maximized then
|
|
838
|
+
* windows that are removed will be restored to their previous unmaximized position and size.
|
|
839
|
+
*
|
|
840
|
+
* ```javascript
|
|
841
|
+
* await FSBL.Clients.WindowClient.removeFromTabCollection({
|
|
842
|
+
* windowNames: ["MyApp-3443-fdf-343-fdfdf","MyOtherApp-dfdf-sdsd-dfdf-sdsd"],
|
|
843
|
+
* })
|
|
844
|
+
* ```
|
|
845
|
+
* @param __namedParameters.windowNames - The array of window names to be removed.
|
|
846
|
+
* @param __namedParameters.visibility - An optional parameter to indicate whether the removed windows should be made visible after they are removed.
|
|
847
|
+
*/
|
|
848
|
+
export const removeFromTabCollection = async ({ windowNames, visibility, }) => {
|
|
849
|
+
const store = getRemoteStoreAsSingleton({
|
|
850
|
+
singletonName: "WindowClient::tabCollection",
|
|
851
|
+
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
852
|
+
slice: "api",
|
|
853
|
+
emptyStore,
|
|
854
|
+
dispatchOnly: true,
|
|
855
|
+
});
|
|
856
|
+
store.dispatch(actions.removeTabsFromTabCollection({
|
|
857
|
+
windowNames,
|
|
858
|
+
visibility: visibility !== null && visibility !== void 0 ? visibility : true,
|
|
859
|
+
}));
|
|
860
|
+
};
|
|
861
|
+
/**
|
|
862
|
+
* @language javascript, dotnet
|
|
863
|
+
* Changes the visible tab in a tab collection. (The tab collection is identified automatically.)
|
|
864
|
+
*
|
|
865
|
+
* ```javascript
|
|
866
|
+
* await FSBL.Clients.WindowClient.promoteTab("MyApp-3443-fdf-343-fdfdf");
|
|
867
|
+
* ```
|
|
868
|
+
* @param windowName - The name of the tab to be promoted.
|
|
869
|
+
*/
|
|
870
|
+
export const promoteTab = async (windowName) => {
|
|
871
|
+
const store = getRemoteStoreAsSingleton({
|
|
872
|
+
singletonName: "WindowClient::tabCollection",
|
|
873
|
+
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
874
|
+
slice: "windowTitleBar",
|
|
875
|
+
emptyStore,
|
|
876
|
+
dispatchOnly: true,
|
|
877
|
+
});
|
|
878
|
+
store.dispatch(actions.promoteTab({
|
|
879
|
+
targetWindowName: windowName,
|
|
880
|
+
}));
|
|
881
|
+
};
|
|
882
|
+
/**
|
|
883
|
+
* @language javascript, dotnet
|
|
884
|
+
* Gets the name of the promoted tab for a given tab collection.
|
|
885
|
+
*
|
|
886
|
+
* ```javascript
|
|
887
|
+
* const {err, data: windowName } = await FSBL.Clients.WindowClient.getPromotedTab({
|
|
888
|
+
* tabCollectionId: ["StackedWindow-dfdf-sdsd-dfdfdf-343434"]
|
|
889
|
+
* });
|
|
890
|
+
* if(windowName) console.log(`The promoted window is ${windowName}`)
|
|
891
|
+
* ```
|
|
892
|
+
* @param __namedParameters.tabCollectionId - ID of the tab collection.
|
|
893
|
+
* @param cb - Optional callback to be invoked after the method completes successfully.
|
|
894
|
+
* @return - Resolves to a tuple containing an error message and the name of the promoted tab in the collection.
|
|
895
|
+
*/
|
|
896
|
+
export const getPromotedTab = async ({ tabCollectionId }, cb) => {
|
|
897
|
+
var _a, _b, _c;
|
|
898
|
+
const state = (await getRemoteState({
|
|
899
|
+
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
900
|
+
slice: "windowTitleBar",
|
|
901
|
+
}));
|
|
902
|
+
const promotedTab = (_c = (_b = (_a = state === null || state === void 0 ? void 0 : state.windowTitleBar) === null || _a === void 0 ? void 0 : _a.tabCollections) === null || _b === void 0 ? void 0 : _b[tabCollectionId]) === null || _c === void 0 ? void 0 : _c.promotedWindowName;
|
|
903
|
+
if (!promotedTab) {
|
|
904
|
+
const err = `No promoted tab found for tab collection ${tabCollectionId}`;
|
|
905
|
+
cb === null || cb === void 0 ? void 0 : cb(err);
|
|
906
|
+
return { err };
|
|
907
|
+
}
|
|
908
|
+
else {
|
|
909
|
+
cb === null || cb === void 0 ? void 0 : cb(null, promotedTab);
|
|
910
|
+
return { err: null, data: promotedTab };
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
/**
|
|
914
|
+
* @language javascript, dotnet
|
|
915
|
+
* Gets the tabCollectionId for a given window, if it is a member of a tab collection.
|
|
916
|
+
*
|
|
917
|
+
* ```javascript
|
|
918
|
+
* const {err, data } = await FSBL.Clients.WindowClient.getTabCollectionForWindow({
|
|
919
|
+
* windowName: "MyApp-dfdf-sdsd-dfdfdf-343434"
|
|
920
|
+
* });
|
|
921
|
+
* if(data) console.log(`The tab collection ${data.id} contains these windows: ${data.windows}`);
|
|
922
|
+
* ```
|
|
923
|
+
* @param __namedParameters.windowName - The name of a window that should be in a tab collection.
|
|
924
|
+
* @param cb - Optional callback to be invoked after the method completes.
|
|
925
|
+
* @return - Resolves to a tuple with error message and object containing the tabCollectionId and a list of the windows in that collection.
|
|
926
|
+
* An error will result if the window is not a member of any tab collection.
|
|
927
|
+
*/
|
|
928
|
+
export const getTabCollectionForWindow = async ({ windowName }, cb) => {
|
|
929
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
930
|
+
const state = (await getRemoteState({
|
|
931
|
+
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
932
|
+
slice: "windowTitleBar",
|
|
933
|
+
}));
|
|
934
|
+
const id = (_c = (_b = (_a = state === null || state === void 0 ? void 0 : state.windowTitleBar) === null || _a === void 0 ? void 0 : _a.windows) === null || _b === void 0 ? void 0 : _b[windowName]) === null || _c === void 0 ? void 0 : _c.tabCollectionId;
|
|
935
|
+
if (!id) {
|
|
936
|
+
const err = id ? null : `No tab collection found for window ${windowName}`;
|
|
937
|
+
cb === null || cb === void 0 ? void 0 : cb(err);
|
|
938
|
+
return { err };
|
|
939
|
+
}
|
|
940
|
+
const data = {
|
|
941
|
+
id,
|
|
942
|
+
windows: (_e = (_d = state === null || state === void 0 ? void 0 : state.windowTitleBar) === null || _d === void 0 ? void 0 : _d.tabCollections[id]) === null || _e === void 0 ? void 0 : _e.tabs,
|
|
943
|
+
promotedWindowName: (_g = (_f = state === null || state === void 0 ? void 0 : state.windowTitleBar) === null || _f === void 0 ? void 0 : _f.tabCollections[id]) === null || _g === void 0 ? void 0 : _g.promotedWindowName,
|
|
944
|
+
};
|
|
945
|
+
cb === null || cb === void 0 ? void 0 : cb(null, data);
|
|
946
|
+
return { err: null, data };
|
|
947
|
+
};
|
|
948
|
+
/**
|
|
949
|
+
* @language javascript, dotnet
|
|
950
|
+
* Gets names of all the windows that are part of a tab collection.
|
|
951
|
+
*
|
|
952
|
+
* ```javascript
|
|
953
|
+
* const {err, data } = await FSBL.Clients.WindowClient.getTabCollection({
|
|
954
|
+
* id: "StackedWindow-dfdf-sdsd-dfdfdf-343434"
|
|
955
|
+
* });
|
|
956
|
+
* if(data) console.log(`The tab collection contains these windows: ${data.windows}`);
|
|
957
|
+
* ```
|
|
958
|
+
* @param __namedParameters.collectionId - The name of the tab collection.
|
|
959
|
+
* @param cb - Optional callback to be invoked after the method completes.
|
|
960
|
+
* @return - Resolves to a tuple with error message and object containing the list of the windows in that collection and the currently promoted window.
|
|
961
|
+
*/
|
|
962
|
+
export const getTabCollection = async ({ id }, cb) => {
|
|
963
|
+
const state = (await getRemoteState({
|
|
964
|
+
server: "@@finsemble/remoteRedux/WindowServiceStore",
|
|
965
|
+
slice: "windowTitleBar",
|
|
966
|
+
}));
|
|
967
|
+
const collection = state.windowTitleBar.tabCollections[id];
|
|
968
|
+
if (!collection) {
|
|
969
|
+
const err = `No tab collection "${id}" found.`;
|
|
970
|
+
cb === null || cb === void 0 ? void 0 : cb(err);
|
|
971
|
+
return { err };
|
|
972
|
+
}
|
|
973
|
+
const data = {
|
|
974
|
+
windows: collection.tabs,
|
|
975
|
+
promotedWindowName: collection.promotedWindowName,
|
|
976
|
+
};
|
|
977
|
+
cb === null || cb === void 0 ? void 0 : cb(null, data);
|
|
978
|
+
return { err: null, data };
|
|
979
|
+
};
|
|
980
|
+
/**
|
|
981
|
+
* @ignore
|
|
982
|
+
*
|
|
983
|
+
* Getters and setters are used to map `options`,`title`,`windowGroups` and `commandChannel` to the WindowClientController
|
|
984
|
+
* singleton. See its comments for a more complete discussion.
|
|
985
|
+
*/
|
|
986
|
+
export const WindowClient = {
|
|
987
|
+
/**
|
|
988
|
+
* @deprecated
|
|
989
|
+
* @private
|
|
990
|
+
*/
|
|
991
|
+
initialize: () => {
|
|
992
|
+
Logger.deprecated("There is no need to call WindowClient.initialize().");
|
|
993
|
+
},
|
|
994
|
+
/**
|
|
995
|
+
* For backward compatibility
|
|
996
|
+
* @private
|
|
997
|
+
* @deprecated
|
|
998
|
+
*/
|
|
999
|
+
onReady: (cb) => {
|
|
1000
|
+
Logger.system.deprecated("It is no longer necessary to call WindowClient.onReady()");
|
|
1001
|
+
cb === null || cb === void 0 ? void 0 : cb();
|
|
1002
|
+
},
|
|
1003
|
+
addListeners,
|
|
1004
|
+
addToTabCollection,
|
|
1005
|
+
bringToFront,
|
|
1006
|
+
bringWindowToFront,
|
|
1007
|
+
cacheInitialBounds,
|
|
1008
|
+
cancelTilingOrTabbing,
|
|
1009
|
+
close,
|
|
1010
|
+
createTabCollection,
|
|
1011
|
+
ejectFromGroup,
|
|
1012
|
+
fitToDOM,
|
|
1013
|
+
formGroup,
|
|
1014
|
+
getBounds,
|
|
1015
|
+
getComponentState,
|
|
1016
|
+
getCurrentWindow,
|
|
1017
|
+
getDesktopBoundingBox,
|
|
1018
|
+
getMonitorInfo,
|
|
1019
|
+
getPromotedTab,
|
|
1020
|
+
getSpawnData,
|
|
1021
|
+
getTabCollection,
|
|
1022
|
+
getTabCollectionForWindow,
|
|
1023
|
+
getWindowTitle,
|
|
1024
|
+
getWindowBounds,
|
|
1025
|
+
getWindowGroups,
|
|
1026
|
+
getWindowNameForDocking,
|
|
1027
|
+
getWindowIdentifier,
|
|
1028
|
+
injectDOM,
|
|
1029
|
+
isMouseOverDOMElement,
|
|
1030
|
+
isPointInBox,
|
|
1031
|
+
maximize,
|
|
1032
|
+
minimize,
|
|
1033
|
+
promoteTab,
|
|
1034
|
+
removeComponentState,
|
|
1035
|
+
removeFromTabCollection,
|
|
1036
|
+
restore,
|
|
1037
|
+
retrieveMonitorDimensions,
|
|
1038
|
+
saveWindowBounds,
|
|
1039
|
+
setActive,
|
|
1040
|
+
setAlwaysOnTop,
|
|
1041
|
+
setComponentState,
|
|
1042
|
+
setShape,
|
|
1043
|
+
setTaskbarIconOverlay,
|
|
1044
|
+
setWindowTitle,
|
|
1045
|
+
showAtMousePosition,
|
|
1046
|
+
stopTilingOrTabbing,
|
|
1047
|
+
startMovingWindow,
|
|
1048
|
+
startTilingOrTabbing,
|
|
1049
|
+
stopMovingWindow,
|
|
1050
|
+
get options() {
|
|
1051
|
+
return getControllerInstance().options;
|
|
1052
|
+
},
|
|
1053
|
+
set options(newOptions) {
|
|
1054
|
+
getControllerInstance().options = newOptions;
|
|
1055
|
+
},
|
|
1056
|
+
get title() {
|
|
1057
|
+
return getControllerInstance().title;
|
|
1058
|
+
},
|
|
1059
|
+
set title(replacement) {
|
|
1060
|
+
getControllerInstance().title = replacement;
|
|
1061
|
+
},
|
|
1062
|
+
get windowGroups() {
|
|
1063
|
+
return getControllerInstance().windowGroups;
|
|
1064
|
+
},
|
|
1065
|
+
set windowGroups(replacement) {
|
|
1066
|
+
getControllerInstance().windowGroups = replacement;
|
|
1067
|
+
},
|
|
1068
|
+
};
|
|
1069
|
+
/**
|
|
1070
|
+
* @ignore
|
|
1071
|
+
*/
|
|
1072
|
+
export default WindowClient;
|
|
1071
1073
|
//# sourceMappingURL=windowClient.js.map
|