@finsemble/finsemble-ui 6.4.0 → 6.6.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +31 -28
- package/react/actions/smartDesktopDesignerActions.d.ts +6 -2
- package/react/actions/smartDesktopDesignerActions.js +2 -0
- package/react/actions/smartDesktopDesignerActions.js.map +1 -1
- package/react/assets/css/finsemble.css +0 -1
- package/react/assets/css/userPreferences.css +6 -0
- package/react/assets/icons/code-block.svg +15 -0
- package/react/componentTemplateGenerator.js +1 -1
- package/react/componentTemplateGenerator.js.map +1 -1
- package/react/components/FinsembleProvider.js.map +1 -1
- package/react/components/appCatalog/AppCatalogComponent.d.ts +1 -1
- package/react/components/appCatalog/components/Showcase/ImageCarousel.d.ts +3 -3
- package/react/components/appCatalog/components/Showcase/SupportNotes.d.ts +1 -1
- package/react/components/appCatalog/modules/FDC3.d.ts +1 -1
- package/react/components/appCatalog/modules/FDC3.js.map +1 -1
- package/react/components/appCatalog/stores/appStore.d.ts +2 -2
- package/react/components/appCatalog/stores/appStore.js.map +1 -1
- package/react/components/appCatalog/stores/storeActions.d.ts +1 -1
- package/react/components/common/Checkbox.js +1 -1
- package/react/components/common/Checkbox.js.map +1 -1
- package/react/components/common/DropZone.js +3 -1
- package/react/components/common/DropZone.js.map +1 -1
- package/react/components/common/FileInput.d.ts +2 -1
- package/react/components/common/FileInput.js +2 -2
- package/react/components/common/FileInput.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +1 -1
- package/react/components/common/FinsembleIcon.js +2 -0
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/FinsembleSelect.js +1 -1
- package/react/components/common/FinsembleSelect.js.map +1 -1
- package/react/components/common/ImagePreview.js +1 -1
- package/react/components/common/ImagePreview.js.map +1 -1
- package/react/components/common/Tooltip.js +3 -1
- package/react/components/common/Tooltip.js.map +1 -1
- package/react/components/common/css/application-edit-page.css +4 -1
- package/react/components/common/css/application-list.css +4 -0
- package/react/components/common/css/preload-edit-page.css +37 -0
- package/react/components/common/helpers.js +1 -0
- package/react/components/common/helpers.js.map +1 -1
- package/react/components/common/stories/FileInput.stories.d.ts +2 -1
- package/react/components/common/stories/FileInput.stories.js +6 -0
- package/react/components/common/stories/FileInput.stories.js.map +1 -1
- package/react/components/common/tests/Accordion.spec.js +1 -1
- package/react/components/common/tests/Accordion.spec.js.map +1 -1
- package/react/components/common/tests/FileInput.spec.js +8 -1
- package/react/components/common/tests/FileInput.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleSelect.spec.js +1 -1
- package/react/components/common/tests/FinsembleSelect.spec.js.map +1 -1
- package/react/components/common/tests/FinsembleToggle.spec.js +2 -2
- package/react/components/common/tests/FinsembleToggle.spec.js.map +1 -1
- package/react/components/favorites/FavoriteMaker.js.map +1 -1
- package/react/components/favorites/FavoritesShell.spec.js +1 -1
- package/react/components/favorites/FavoritesShell.spec.js.map +1 -1
- package/react/components/favorites/FavoritesShell.stories.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverContainer.js.map +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.spec.js +1 -1
- package/react/components/fdc3Resolver/ResolverDialog.spec.js.map +1 -1
- package/react/components/icon/Icon.d.ts +4 -3
- package/react/components/icon/Icon.js +22 -12
- package/react/components/icon/Icon.js.map +1 -1
- package/react/components/legacyControls/FinsembleDnDContext.d.ts +2 -1
- package/react/components/legacyControls/FinsembleDnDContext.js +8 -6
- package/react/components/legacyControls/FinsembleDnDContext.js.map +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js +1 -1
- package/react/components/legacyControls/tests/FinsembleDialogTextInput.spec.js.map +1 -1
- package/react/components/linker/LinkerMenu.js.map +1 -1
- package/react/components/linker/remoteRedux.d.ts +1 -1
- package/react/components/linker/remoteRedux.js.map +1 -1
- package/react/components/menu/MenuAutoResizer.js.map +1 -1
- package/react/components/menu/MenuPortal.js +20 -1
- package/react/components/menu/MenuPortal.js.map +1 -1
- package/react/components/notifications/components/notificationsCenter/NotificationsCenter.js.map +1 -1
- package/react/components/notifications/components/notificationsToasts/NotificationsToasts.js.map +1 -1
- package/react/components/notifications/components/shared/CheckButton.d.ts +1 -1
- package/react/components/notifications/components/shared/CheckButton.js.map +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.d.ts +1 -1
- package/react/components/notifications/components/shared/NotificationCardShell.js.map +1 -1
- package/react/components/notifications/components/shared/OverflowMenu.d.ts +1 -1
- package/react/components/notifications/components/shared/OverflowMenu.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyActions.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardBodyShell.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderControls.js.map +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.d.ts +1 -1
- package/react/components/notifications/components/shared/notificationCard/NotificationCardHeaderShell.js.map +1 -1
- package/react/components/notifications/components/views/CardView.js.map +1 -1
- package/react/components/notifications/components/views/ListView.d.ts +1 -1
- package/react/components/notifications/components/views/ListView.js.map +1 -1
- package/react/components/notifications/components/views/NotificationDetailsView.d.ts +1 -1
- package/react/components/notifications/components/views/NotificationDetailsView.js.map +1 -1
- package/react/components/notifications/types.d.ts +1 -1
- package/react/components/notifications/types.js.map +1 -1
- package/react/components/notifications/utils.d.ts +1 -1
- package/react/components/notifications/utils.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitorTypes.d.ts +4 -11
- package/react/components/processMonitor/ProcessMonitorTypes.js.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.js +5 -10
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.d.ts +1 -1
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js +8 -10
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/processMonitor/constants.d.ts +0 -2
- package/react/components/processMonitor/constants.js +0 -2
- package/react/components/processMonitor/constants.js.map +1 -1
- package/react/components/processMonitor/helpers.d.ts +0 -11
- package/react/components/processMonitor/helpers.js +1 -9
- package/react/components/processMonitor/helpers.js.map +1 -1
- package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +6 -14
- package/react/components/processMonitor/stores/ProcessMonitorStore.js +22 -62
- package/react/components/processMonitor/stores/ProcessMonitorStore.js.map +1 -1
- package/react/components/{smartDesktopDesigner → sdd}/AddApp.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/AddApp.js +0 -0
- package/react/components/sdd/AddApp.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/AppEditAccess.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/AppEditAccess.js +0 -0
- package/react/components/sdd/AppEditAccess.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/AppEditPage.d.ts +2 -1
- package/react/components/{smartDesktopDesigner → sdd}/AppEditPage.js +77 -73
- package/react/components/sdd/AppEditPage.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Appearance.css +8 -0
- package/react/components/{smartDesktopDesigner → sdd}/Appearance.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Appearance.helpers.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Appearance.helpers.js +0 -0
- package/react/components/sdd/Appearance.helpers.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Appearance.js +0 -0
- package/react/components/sdd/Appearance.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Application.d.ts +10 -3
- package/react/components/sdd/Application.js +220 -0
- package/react/components/sdd/Application.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Applications.d.ts +2 -0
- package/react/components/{smartDesktopDesigner → sdd}/Applications.js +17 -7
- package/react/components/sdd/Applications.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/AssetsPage.js +0 -0
- package/react/components/sdd/AssetsPage.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Authentication.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Authentication.js +1 -1
- package/react/components/sdd/Authentication.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/AuthenticationProviderConfig.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/AuthenticationProviderConfig.js +0 -0
- package/react/components/sdd/AuthenticationProviderConfig.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Content.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Content.js +0 -0
- package/react/components/sdd/Content.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ContentHeader.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ContentHeader.js +0 -0
- package/react/components/sdd/ContentHeader.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/CurrentView.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/CurrentView.js +0 -0
- package/react/components/sdd/CurrentView.js.map +1 -0
- package/react/components/sdd/EditPreload.d.ts +14 -0
- package/react/components/sdd/EditPreload.js +169 -0
- package/react/components/sdd/EditPreload.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Export.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Export.js +0 -0
- package/react/components/sdd/Export.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportCloud.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportCloud.js +0 -0
- package/react/components/sdd/ExportCloud.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportDeployInfo.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportDeployInfo.js +0 -0
- package/react/components/sdd/ExportDeployInfo.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportZip.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ExportZip.js +0 -0
- package/react/components/sdd/ExportZip.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/GettingStarted.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/GettingStarted.js +0 -0
- package/react/components/sdd/GettingStarted.js.map +1 -0
- package/react/components/sdd/ItemList.d.ts +17 -0
- package/react/components/sdd/ItemList.js +58 -0
- package/react/components/sdd/ItemList.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Navigation.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Navigation.js +0 -0
- package/react/components/sdd/Navigation.js.map +1 -0
- package/react/components/sdd/OptionalSettingsView.d.ts +11 -0
- package/react/components/sdd/OptionalSettingsView.js +71 -0
- package/react/components/sdd/OptionalSettingsView.js.map +1 -0
- package/react/components/sdd/Preloads.d.ts +8 -0
- package/react/components/sdd/Preloads.js +26 -0
- package/react/components/sdd/Preloads.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ProjectErrors.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ProjectErrors.js +0 -0
- package/react/components/sdd/ProjectErrors.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Publish.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Publish.js +0 -0
- package/react/components/sdd/Publish.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/PublishProgress.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/PublishProgress.js +0 -0
- package/react/components/sdd/PublishProgress.js.map +1 -0
- package/react/components/sdd/SmartDesktopDesigner.d.ts +28 -0
- package/react/components/sdd/SmartDesktopDesigner.js +121 -0
- package/react/components/sdd/SmartDesktopDesigner.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/ThemePage.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ThemePage.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/ThemePage.js +0 -0
- package/react/components/sdd/ThemePage.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Themes.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Themes.js +0 -0
- package/react/components/sdd/Themes.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/Toolbar.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/Toolbar.js +13 -11
- package/react/components/sdd/Toolbar.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/View.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/View.js +0 -0
- package/react/components/sdd/View.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/common/fsbl_functions.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/common/fsbl_functions.js +0 -0
- package/react/components/sdd/common/fsbl_functions.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/common/getCSSVars.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/common/getCSSVars.js +0 -0
- package/react/components/sdd/common/getCSSVars.js.map +1 -0
- package/react/components/{smartDesktopDesigner/fixtures → sdd/common}/views.d.ts +0 -0
- package/react/components/sdd/common/views.js +204 -0
- package/react/components/sdd/common/views.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/appearance.css +3 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/applications.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/authentication.css +5 -1
- package/react/components/{smartDesktopDesigner → sdd}/css/buttons.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/export.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/getting-started.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/nav.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/project-errors.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/project-header.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/styles.css +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/css/views.css +0 -1
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/apps.d.ts +1 -1
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/apps.js +27 -5
- package/react/components/sdd/fixtures/apps.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/authenticationProps.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/authenticationProps.js +0 -0
- package/react/components/sdd/fixtures/authenticationProps.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/configTemplate.d.ts +1 -1
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/configTemplate.js +1 -1
- package/react/components/sdd/fixtures/configTemplate.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/exportProps.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/exportProps.js +0 -0
- package/react/components/sdd/fixtures/exportProps.js.map +1 -0
- package/react/components/sdd/fixtures/preloads.d.ts +22 -0
- package/react/components/sdd/fixtures/preloads.js +40 -0
- package/react/components/sdd/fixtures/preloads.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/projectErrorsProps.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/projectErrorsProps.js +0 -0
- package/react/components/sdd/fixtures/projectErrorsProps.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/publishProgress.d.ts +1 -1
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/publishProgress.js +0 -0
- package/react/components/sdd/fixtures/publishProgress.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/themeProps.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/themeProps.js +0 -0
- package/react/components/sdd/fixtures/themeProps.js.map +1 -0
- package/react/components/sdd/fixtures/views.d.ts +3 -0
- package/react/components/{smartDesktopDesigner → sdd}/fixtures/views.js +9 -0
- package/react/components/sdd/fixtures/views.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/sdd_helpers.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/sdd_helpers.js +0 -0
- package/react/components/sdd/sdd_helpers.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/AppEditPage.stories.d.ts +1 -1
- package/react/components/{smartDesktopDesigner → sdd}/stories/AppEditPage.stories.js +1 -0
- package/react/components/sdd/stories/AppEditPage.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Appearance.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Appearance.stories.js +0 -0
- package/react/components/sdd/stories/Appearance.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Applications.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Applications.stories.js +0 -0
- package/react/components/sdd/stories/Applications.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/AssetsPage.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/AssetsPage.stories.js +0 -0
- package/react/components/sdd/stories/AssetsPage.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Authentication.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Authentication.stories.js +0 -0
- package/react/components/sdd/stories/Authentication.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ContentHeader.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ContentHeader.stories.js +0 -0
- package/react/components/sdd/stories/ContentHeader.stories.js.map +1 -0
- package/react/components/sdd/stories/EditPreload.stories.d.ts +11 -0
- package/react/components/sdd/stories/EditPreload.stories.js +35 -0
- package/react/components/sdd/stories/EditPreload.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Export.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Export.stories.js +0 -0
- package/react/components/sdd/stories/Export.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ExportCloud.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ExportCloud.stories.js +0 -0
- package/react/components/sdd/stories/ExportCloud.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ExportZip.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ExportZip.stories.js +0 -0
- package/react/components/sdd/stories/ExportZip.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/GettingStarted.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/GettingStarted.stories.js +0 -0
- package/react/components/sdd/stories/GettingStarted.stories.js.map +1 -0
- package/react/components/sdd/stories/ItemList.stories.d.ts +16 -0
- package/react/components/{smartDesktopDesigner/stories/ApplicationList.stories.js → sdd/stories/ItemList.stories.js} +26 -26
- package/react/components/sdd/stories/ItemList.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Navigation.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Navigation.stories.js +0 -0
- package/react/components/sdd/stories/Navigation.stories.js.map +1 -0
- package/react/components/sdd/stories/OptionalSettingsView.stories.d.ts +11 -0
- package/react/components/sdd/stories/OptionalSettingsView.stories.js +28 -0
- package/react/components/sdd/stories/OptionalSettingsView.stories.js.map +1 -0
- package/react/components/sdd/stories/Preloads.stories.d.ts +11 -0
- package/react/components/sdd/stories/Preloads.stories.js +31 -0
- package/react/components/sdd/stories/Preloads.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ProjectErrors.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ProjectErrors.stories.js +0 -0
- package/react/components/sdd/stories/ProjectErrors.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Publish.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Publish.stories.js +0 -0
- package/react/components/sdd/stories/Publish.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/PublishProgress.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/PublishProgress.stories.js +0 -0
- package/react/components/sdd/stories/PublishProgress.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/SmartDesktopDesigner.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/SmartDesktopDesigner.stories.js +0 -0
- package/react/components/sdd/stories/SmartDesktopDesigner.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ThemePage.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/ThemePage.stories.js +0 -0
- package/react/components/sdd/stories/ThemePage.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Themes.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Themes.stories.js +0 -0
- package/react/components/sdd/stories/Themes.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Toolbar.stories.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/stories/Toolbar.stories.js +0 -0
- package/react/components/sdd/stories/Toolbar.stories.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/AppEditPage.spec.d.ts +0 -0
- package/react/components/sdd/tests/AppEditPage.spec.js +1151 -0
- package/react/components/sdd/tests/AppEditPage.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.d.ts → sdd/tests/Application.spec.d.ts} +0 -0
- package/react/components/sdd/tests/Application.spec.js +1478 -0
- package/react/components/sdd/tests/Application.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Applications.spec.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Applications.spec.js +3 -3
- package/react/components/sdd/tests/Applications.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Authentication.spec.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Authentication.spec.js +0 -0
- package/react/components/sdd/tests/Authentication.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/ContentHeader.spec.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/ContentHeader.spec.js +0 -0
- package/react/components/sdd/tests/ContentHeader.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/Export.spec.d.ts → sdd/tests/EditPreload.spec.d.ts} +0 -0
- package/react/components/sdd/tests/EditPreload.spec.js +61 -0
- package/react/components/sdd/tests/EditPreload.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/ExportZip.spec.d.ts → sdd/tests/Export.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Export.spec.js +0 -0
- package/react/components/sdd/tests/Export.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/Navigation.spec.d.ts → sdd/tests/ExportZip.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/ExportZip.spec.js +0 -0
- package/react/components/sdd/tests/ExportZip.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/ProjectErrors.spec.d.ts → sdd/tests/ItemList.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner/tests/ApplicationList.spec.js → sdd/tests/ItemList.spec.js} +8 -8
- package/react/components/sdd/tests/ItemList.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/Publish.spec.d.ts → sdd/tests/Navigation.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Navigation.spec.js +0 -0
- package/react/components/sdd/tests/Navigation.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/PublishProgess.spec.d.ts → sdd/tests/Preloads.spec.d.ts} +0 -0
- package/react/components/sdd/tests/Preloads.spec.js +47 -0
- package/react/components/sdd/tests/Preloads.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/SmartDesktopDesigner.spec.d.ts → sdd/tests/ProjectErrors.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/ProjectErrors.spec.js +0 -0
- package/react/components/sdd/tests/ProjectErrors.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/Themes.spec.d.ts → sdd/tests/Publish.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Publish.spec.js +0 -0
- package/react/components/sdd/tests/Publish.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner/tests/sdd_helpers.spec.d.ts → sdd/tests/PublishProgess.spec.d.ts} +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/PublishProgess.spec.js +0 -0
- package/react/components/sdd/tests/PublishProgess.spec.js.map +1 -0
- package/react/components/sdd/tests/SmartDesktopDesigner.spec.d.ts +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/SmartDesktopDesigner.spec.js +6 -0
- package/react/components/sdd/tests/SmartDesktopDesigner.spec.js.map +1 -0
- package/react/components/sdd/tests/Themes.spec.d.ts +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Themes.spec.js +0 -0
- package/react/components/sdd/tests/Themes.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Toolbar.spec.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/Toolbar.spec.js +0 -0
- package/react/components/sdd/tests/Toolbar.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/a11y_helper.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/a11y_helper.js +0 -0
- package/react/components/sdd/tests/a11y_helper.js.map +1 -0
- package/react/components/sdd/tests/sdd_helpers.spec.d.ts +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/tests/sdd_helpers.spec.js +0 -0
- package/react/components/sdd/tests/sdd_helpers.spec.js.map +1 -0
- package/react/components/{smartDesktopDesigner → sdd}/themeDefinitions.d.ts +0 -0
- package/react/components/{smartDesktopDesigner → sdd}/themeDefinitions.js +0 -0
- package/react/components/sdd/themeDefinitions.js.map +1 -0
- package/react/components/search/SearchBestMatch.js.map +1 -1
- package/react/components/search/SearchProviderResults.d.ts +3 -1
- package/react/components/search/SearchProviderResults.js.map +1 -1
- package/react/components/search/SearchResult.d.ts +3 -1
- package/react/components/search/SearchResult.js +11 -8
- package/react/components/search/SearchResult.js.map +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.spec.js +1 -1
- package/react/components/singleInputDialog/SingleInputDialog.spec.js.map +1 -1
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.d.ts +0 -11
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js +2 -116
- package/react/components/smartDesktopDesigner/SmartDesktopDesigner.js.map +1 -1
- package/react/components/smartDesktopDesigner/common/views.js +1 -185
- package/react/components/smartDesktopDesigner/common/views.js.map +1 -1
- package/react/components/toolbar/AutoArrange.js +1 -1
- package/react/components/toolbar/AutoArrange.js.map +1 -1
- package/react/components/toolbar/AutoArrange.spec.d.ts +1 -0
- package/react/components/toolbar/AutoArrange.spec.js +48 -0
- package/react/components/toolbar/AutoArrange.spec.js.map +1 -0
- package/react/components/toolbar/AutoArrange.stories.d.ts +11 -0
- package/react/components/toolbar/AutoArrange.stories.js +21 -0
- package/react/components/toolbar/AutoArrange.stories.js.map +1 -0
- package/react/components/toolbar/DragHandle.spec.d.ts +1 -0
- package/react/components/toolbar/DragHandle.spec.js +31 -0
- package/react/components/toolbar/DragHandle.spec.js.map +1 -0
- package/react/components/toolbar/DragHandle.stories.d.ts +13 -0
- package/react/components/toolbar/DragHandle.stories.js +39 -0
- package/react/components/toolbar/DragHandle.stories.js.map +1 -0
- package/react/components/toolbar/SddButton.d.ts +2 -0
- package/react/components/toolbar/SddButton.js +23 -0
- package/react/components/toolbar/SddButton.js.map +1 -0
- package/react/components/toolbar/ToolbarShell.js +4 -1
- package/react/components/toolbar/ToolbarShell.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/AdvancedAppLauncher.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.d.ts +3 -2
- package/react/components/toolbar/advancedAppLauncher/components/AppDefinition.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/Content.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/Content.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FilterSort.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/FoldersList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.d.ts +1 -1
- package/react/components/toolbar/advancedAppLauncher/components/TagsList.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.d.ts +2 -2
- package/react/components/toolbar/advancedAppLauncher/stores/LauncherStore.js.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js +15 -4
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/appLauncher/components/componentList.d.ts +2 -2
- package/react/components/toolbar/appLauncher/components/componentList.js +3 -4
- package/react/components/toolbar/appLauncher/components/componentList.js.map +1 -1
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +2 -2
- package/react/components/toolbar/appLauncher/stores/appLauncherStore.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +11 -12
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.d.ts +2 -2
- package/react/components/toolbar/workspaceManagementMenu/WorkspaceManagementMenu.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/Workspace.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.d.ts +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceList.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +4 -4
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js +72 -13
- package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.js.map +1 -1
- package/react/components/userPreferences/components/content/Workspaces.d.ts +6 -1
- package/react/components/userPreferences/components/content/Workspaces.js +59 -18
- package/react/components/userPreferences/components/content/Workspaces.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/NotificationsSourceTypes.js.map +1 -1
- package/react/components/userPreferences/components/content/notificationViews/notificationViewsUtils.js.map +1 -1
- package/react/components/userPreferences/components/general/ScheduledRestart.d.ts +2 -0
- package/react/components/userPreferences/components/general/ScheduledRestart.js +10 -2
- package/react/components/userPreferences/components/general/ScheduledRestart.js.map +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +2 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.js +10 -0
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/userPreferences/tests/ScheduledRestart.spec.js +6 -6
- package/react/components/userPreferences/tests/ScheduledRestart.spec.js.map +1 -1
- package/react/components/windowTitleBar/WindowTitleBarShell.d.ts +5 -2
- package/react/components/windowTitleBar/WindowTitleBarShell.js +70 -59
- package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
- package/react/components/windowTitleBar/components/center/TabList.d.ts +2 -2
- package/react/components/windowTitleBar/components/center/TabList.js +5 -2
- package/react/components/windowTitleBar/components/center/TabList.js.map +1 -1
- package/react/components/windowTitleBar/components/left/LinkerButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/GroupingButton.js.map +1 -1
- package/react/components/windowTitleBar/components/right/MaximizeButton.js.map +1 -1
- package/react/components/windowTitleBar/components/windowTitle.d.ts +5 -2
- package/react/components/windowTitleBar/components/windowTitle.js +99 -94
- package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
- package/react/components/windowTitleBar/stores/windowTitleBarStore.d.ts +3 -3
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js +218 -219
- package/react/components/windowTitleBar/stores/windowTitleBarStore.js.map +1 -1
- package/react/components/yesNoDialog/Timer.spec.js +1 -1
- package/react/components/yesNoDialog/Timer.spec.js.map +1 -1
- package/react/components/yesNoDialog/YesNoDialog.spec.js +1 -1
- package/react/components/yesNoDialog/YesNoDialog.spec.js.map +1 -1
- package/react/hooks/useDashbar.js.map +1 -1
- package/react/hooks/useFavoritesShell.js.map +1 -1
- package/react/hooks/useNotifications.d.ts +1 -1
- package/react/hooks/useNotifications.js.map +1 -1
- package/react/hooks/useSearch.d.ts +2 -1
- package/react/hooks/useSearch.js.map +1 -1
- package/react/hooks/useToolbar.js +6 -0
- package/react/hooks/useToolbar.js.map +1 -1
- package/react/reducers/rootReducer.d.ts +11 -3
- package/react/reducers/smartDesktopDesignerReducer.js +8 -0
- package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
- package/react/store.d.ts +22 -6
- package/react/types/advancedAppLauncherTypes.d.ts +5 -3
- package/react/types/advancedAppLauncherTypes.js.map +1 -1
- package/react/types/favoriteTypes.d.ts +4 -2
- package/react/types/favoriteTypes.js.map +1 -1
- package/react/types/fdc3.d.ts +2 -2
- package/react/types/fdc3.js.map +1 -1
- package/react/types/smartDesktopDesignerTypes.d.ts +8 -2
- package/react/types/smartDesktopDesignerTypes.js.map +1 -1
- package/react/types/windowTitleBar.d.ts +1 -1
- package/react/types/windowTitleBar.js.map +1 -1
- package/react/components/smartDesktopDesigner/AddApp.js.map +0 -1
- package/react/components/smartDesktopDesigner/AppEditAccess.js.map +0 -1
- package/react/components/smartDesktopDesigner/AppEditPage.js.map +0 -1
- package/react/components/smartDesktopDesigner/Appearance.helpers.js.map +0 -1
- package/react/components/smartDesktopDesigner/Appearance.js.map +0 -1
- package/react/components/smartDesktopDesigner/Application.js +0 -228
- package/react/components/smartDesktopDesigner/Application.js.map +0 -1
- package/react/components/smartDesktopDesigner/ApplicationList.d.ts +0 -16
- package/react/components/smartDesktopDesigner/ApplicationList.js +0 -60
- package/react/components/smartDesktopDesigner/ApplicationList.js.map +0 -1
- package/react/components/smartDesktopDesigner/Applications.js.map +0 -1
- package/react/components/smartDesktopDesigner/AssetsPage.js.map +0 -1
- package/react/components/smartDesktopDesigner/Authentication.js.map +0 -1
- package/react/components/smartDesktopDesigner/AuthenticationProviderConfig.js.map +0 -1
- package/react/components/smartDesktopDesigner/Content.js.map +0 -1
- package/react/components/smartDesktopDesigner/ContentHeader.js.map +0 -1
- package/react/components/smartDesktopDesigner/CurrentView.js.map +0 -1
- package/react/components/smartDesktopDesigner/Export.js.map +0 -1
- package/react/components/smartDesktopDesigner/ExportCloud.js.map +0 -1
- package/react/components/smartDesktopDesigner/ExportDeployInfo.js.map +0 -1
- package/react/components/smartDesktopDesigner/ExportZip.js.map +0 -1
- package/react/components/smartDesktopDesigner/GettingStarted.js.map +0 -1
- package/react/components/smartDesktopDesigner/Navigation.js.map +0 -1
- package/react/components/smartDesktopDesigner/ProjectErrors.js.map +0 -1
- package/react/components/smartDesktopDesigner/Publish.js.map +0 -1
- package/react/components/smartDesktopDesigner/PublishProgress.js.map +0 -1
- package/react/components/smartDesktopDesigner/ThemePage.js.map +0 -1
- package/react/components/smartDesktopDesigner/Themes.js.map +0 -1
- package/react/components/smartDesktopDesigner/Toolbar.js.map +0 -1
- package/react/components/smartDesktopDesigner/View.js.map +0 -1
- package/react/components/smartDesktopDesigner/common/fsbl_functions.js.map +0 -1
- package/react/components/smartDesktopDesigner/common/getCSSVars.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/apps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/authenticationProps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/configTemplate.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/exportProps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/projectErrorsProps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/publishProgress.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/themeProps.js.map +0 -1
- package/react/components/smartDesktopDesigner/fixtures/views.js.map +0 -1
- package/react/components/smartDesktopDesigner/sdd_helpers.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/AppEditPage.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Appearance.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.d.ts +0 -16
- package/react/components/smartDesktopDesigner/stories/ApplicationList.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Applications.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/AssetsPage.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Authentication.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ContentHeader.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Export.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ExportCloud.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ExportZip.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/GettingStarted.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Navigation.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ProjectErrors.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Publish.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/PublishProgress.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/SmartDesktopDesigner.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/ThemePage.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Themes.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/stories/Toolbar.stories.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js +0 -310
- package/react/components/smartDesktopDesigner/tests/AppEditPage.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ApplicationList.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Applications.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Authentication.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ContentHeader.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Export.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ExportZip.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Navigation.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/ProjectErrors.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Publish.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/PublishProgess.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/SmartDesktopDesigner.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Themes.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/Toolbar.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/a11y_helper.js.map +0 -1
- package/react/components/smartDesktopDesigner/tests/sdd_helpers.spec.js.map +0 -1
- package/react/components/smartDesktopDesigner/themeDefinitions.js.map +0 -1
- package/react/components/toolbar/appLauncher/DynamicAppLauncher.d.ts +0 -6
- package/react/components/toolbar/appLauncher/DynamicAppLauncher.js +0 -23
- package/react/components/toolbar/appLauncher/DynamicAppLauncher.js.map +0 -1
- package/react/hooks/useWorkspace.d.ts +0 -5
- package/react/hooks/useWorkspace.js +0 -26
- package/react/hooks/useWorkspace.js.map +0 -1
- package/react/types/iconTypes.d.ts +0 -11
- package/react/types/iconTypes.js +0 -2
- package/react/types/iconTypes.js.map +0 -1
- package/react/types/searchTypes.d.ts +0 -29
- package/react/types/searchTypes.js +0 -2
- package/react/types/searchTypes.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabList.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/center/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAIxC,IAAI,SAAS,GAAG,GAAG,CAAC;AAEpB,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B,MAAM,mBAAmB,GAAG,CAC3B,MAOC,EACD,EAAe,EACd,EAAE;IACH,MAAM,oBAAoB,GAAG,GAAG,EAAE;QAEjC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,oCAAoC,EAAE,MAAM,EAAE,GAAG,EAAE;YAClF,EAAE,aAAF,EAAE,uBAAF,EAAE,EAAI,CAAC;QACR,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,oCAAoC,EAAE,MAAM,CAAC,CAAC;IAClF,CAAC,CAAC;IAEF,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE;QAC1B,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,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GAAG,EAAE;gBACb,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC,EACD,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE;gBAC9B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;gBAC1E,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;YAC/B,CAAC,EACD,MAAM,EAAE,IAAI,CAAC,IAAI,EACjB,SAAS,EAAE,IAAI,CAAC,QAAQ,EACxB,UAAU,EAAE,GAAG,EAAE;gBAChB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACvB,CAAC,EACD,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAC/C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,GACpB,CACF,CAAC,CAAC;IACJ,CAAC;CACD","sourcesContent":["import * as React from \"react\";\nimport { StandardError } from \"@finsemble/finsemble-core/types/types\";\nimport Tab from \"./Tab\";\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\nimport { Store, Actions } from \"../../stores/windowTitleBarStore\";\nimport { Title } from \"../windowTitle\";\nimport _throttle from \"lodash/throttle\";\nimport { TabListProps, TabListState, GetTabWidthParams, TabProperties } from \"../../../../types/windowTitleBar\";\nimport { WindowIdentifier } from \"@finsemble/finsemble-core\";\n\nlet TAB_WIDTH = 300;\n// Next two items are for calculating how large the title should be within a tab.\nconst ICON_AREA = 16;\nconst CLOSE_BUTTON_MARGIN = 12;\nconst MINIMUM_TAB_SIZE = 100;\n\nconst stopTilingOrTabbing = (\n\tparams: {\n\t\tmousePosition?: {\n\t\t\tx: number;\n\t\t\ty: number;\n\t\t};\n\t\taction?: string;\n\t\tallowDropOnSelf?: boolean;\n\t},\n\tcb?: () => void\n) => {\n\tconst transmitAndQueryStop = () => {\n\t\t// docking service has a responder for the query\n\t\tFSBL.Clients.RouterClient.query(\"DockingService.stopTilingOrTabbing\", params, () => {\n\t\t\tcb?.();\n\t\t});\n\t\t// WindowTitleBarShell is listening for transmit events so that it knows when tiling/tabbing has stopped\n\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.stopTilingOrTabbing\", params);\n\t};\n\t// Get the mouse position if not passed in.\n\tif (!params.mousePosition) {\n\t\tfin.desktop.System.getMousePosition((position) => {\n\t\t\tparams.mousePosition = position;\n\t\t\ttransmitAndQueryStop();\n\t\t\t// If allowDropOnSelf is true, it came from a tab/window drop event. Run the callback.\n\t\t\tif (!params.allowDropOnSelf) cb?.();\n\t\t});\n\t} else {\n\t\ttransmitAndQueryStop();\n\t\t// If allowDropOnSelf is true, it came from a tab/window drop event. Run the callback.\n\t\tif (!params.allowDropOnSelf) cb?.();\n\t}\n};\n\nconst isPointInBox = (\n\tpoint: {\n\t\tx: number;\n\t\ty: number;\n\t},\n\tbox: {\n\t\ttop: number;\n\t\tleft: number;\n\t\tbottom?: number;\n\t\tright?: number;\n\t\twidth: number;\n\t\theight: number;\n\t}\n): boolean => {\n\tif (!box.bottom) box.bottom = box.top + box.height;\n\tif (!box.right) box.right = box.left + box.width;\n\treturn point.x > box.left && point.x < box.right && point.y < box.bottom && point.y > box.top;\n};\n\nexport class TabList extends React.Component<TabListProps, TabListState> {\n\tmousePositionOnDragEnd: { x: number; y: number };\n\n\tonWindowResizeThrottled: (this: Window, ev: UIEvent) => any;\n\n\tconstructor(props: TabListProps) {\n\t\tsuper(props);\n\t\tlet initialState = Store.getValues([\"activeTab\", \"tabs\"]);\n\t\tlet activeIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\n\n\t\tif (activeIdentifier) {\n\t\t\tactiveIdentifier.title = finsembleWindow.windowOptions.title;\n\t\t}\n\t\tthis.state = {\n\t\t\ttranslateX: 0,\n\t\t\ttabs: initialState.tabs,\n\t\t\tactiveTab: activeIdentifier as TabProperties,\n\t\t\tboundingBox: {\n\t\t\t\tright: 0,\n\t\t\t\tleft: 0,\n\t\t\t\ttop: 0,\n\t\t\t\tbottom: 0,\n\t\t\t\theight: 0,\n\t\t\t\twidth: 0,\n\t\t\t},\n\t\t\tiAmDragging: false,\n\t\t\thoverState: \"false\",\n\t\t\ttabWidth: TAB_WIDTH,\n\t\t\thoveredTabIndex: undefined,\n\t\t};\n\t\tthis.onWindowResizeThrottled = () => {};\n\t\tthis.bindCorrectContext();\n\t\tthis.mousePositionOnDragEnd = {\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t};\n\t}\n\n\t/**\n\t * Make sure that _this_ is correct inside of our event handlers.\n\t */\n\tbindCorrectContext() {\n\t\tthis.startDrag = this.startDrag.bind(this);\n\t\tthis.stopDrag = this.stopDrag.bind(this);\n\t\tthis.cancelTabbing = this.cancelTabbing.bind(this);\n\t\tthis.drop = this.drop.bind(this);\n\t\tthis.dragOver = this.dragOver.bind(this);\n\t\tthis.dragLeave = this.dragLeave.bind(this);\n\t\tthis.onMouseWheel = this.onMouseWheel.bind(this);\n\t\tthis.renderTitle = this.renderTitle.bind(this);\n\t\tthis.renderTabs = this.renderTabs.bind(this);\n\t\tthis.findTabIndex = this.findTabIndex.bind(this);\n\t\tthis.setActiveTab = this.setActiveTab.bind(this);\n\t\tthis.onTabAdded = this.onTabAdded.bind(this);\n\t\tthis.onTabClosed = this.onTabClosed.bind(this);\n\t\tthis.setActiveTab = this.setActiveTab.bind(this);\n\t\tthis.onTabsChanged = this.onTabsChanged.bind(this);\n\t\tthis.onTabDraggedOver = this.onTabDraggedOver.bind(this);\n\t\tthis.isTabRegionOverflowing = this.isTabRegionOverflowing.bind(this);\n\t\tthis.onWindowResize = this.onWindowResize.bind(this);\n\t\tthis.onWindowResizeThrottled = _throttle(this.onWindowResize, 100);\n\t\tthis.getTabWidth = this.getTabWidth.bind(this);\n\t\tthis.setTabListTranslateX = this.setTabListTranslateX.bind(this);\n\t\tthis.onTabListTranslateChanged = this.onTabListTranslateChanged.bind(this);\n\t}\n\n\tgetTabWidth(params: GetTabWidthParams = {}) {\n\t\tlet { boundingBox, tabList } = params;\n\t\tif (typeof tabList === \"undefined\") {\n\t\t\ttabList = this.state.tabs;\n\t\t}\n\t\tif (typeof boundingBox === \"undefined\") {\n\t\t\tboundingBox = (this.refs.Me as HTMLElement).getBoundingClientRect();\n\t\t}\n\t\tif (typeof boundingBox.right === \"undefined\") {\n\t\t\treturn TAB_WIDTH;\n\t\t}\n\t\tlet containerWidth = boundingBox.right - boundingBox.left;\n\t\tlet newTabWidth = containerWidth / tabList.length;\n\n\t\treturn newTabWidth < MINIMUM_TAB_SIZE ? MINIMUM_TAB_SIZE : newTabWidth;\n\t}\n\n\t/**\n\t * Resize handler. Calculates the space that the center-region is taking up. May be used to scale tabs proportionally.\n\t */\n\tonWindowResize() {\n\t\tlet bounds = (this.refs.Me as HTMLElement).getBoundingClientRect();\n\t\tthis.setState({\n\t\t\tboundingBox: bounds,\n\t\t\ttabWidth: this.getTabWidth(),\n\t\t});\n\t}\n\n\tfindTabIndex(tab: TabProperties) {\n\t\treturn this.state.tabs.findIndex((el) => tab.windowName === el.windowName && tab.uuid === el.uuid);\n\t}\n\n\t/**\n\t *\n\t * Function that's called when this component fires the onDragStart event, this will start the tiling or tabbing process\n\t *\n\t * @param e The SyntheticEvent created by React when the startdrag event is called\n\t * @memberof windowTitleBar\n\t */\n\tstartDrag(e: React.DragEvent<HTMLDivElement>, windowIdentifier: WindowIdentifier) {\n\t\tthis.setState({\n\t\t\tiAmDragging: true,\n\t\t});\n\t\te.dataTransfer.setData(\"application/fsbl-tab-data\", JSON.stringify(windowIdentifier));\n\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.startTilingOrTabbing\", {\n\t\t\twindowIdentifier,\n\t\t});\n\t}\n\n\t/**\n\t * Called when the react component detects a drop (or stop drag, which is equivalent)\n\t *\n\t * @param e The SyntheticEvent created by React when the stopdrag event is called\n\t * @memberof windowTitleBar\n\t */\n\tstopDrag(e: React.DragEvent<HTMLDivElement>) {\n\t\t// We don't want onDropHandler() in windowTitleBarComponent.jsx\n\t\t// to handle this drop event, so we call event.stopPropagation().\n\t\te.stopPropagation();\n\t\tFSBL.Clients.Logger.system.debug(\"Tab stopDrag.\");\n\t\tthis.mousePositionOnDragEnd = {\n\t\t\tx: e.nativeEvent.screenX,\n\t\t\ty: e.nativeEvent.screenY,\n\t\t};\n\n\t\tconst { boundingBox } = this.state;\n\t\tfinsembleWindow.getBounds((err, bounds) => {\n\t\t\t// We ONLY want to know if we're in the tab region!\n\t\t\tconst tabRegion = {\n\t\t\t\ttop: boundingBox.top + (bounds?.top ?? 0),\n\t\t\t\tbottom: boundingBox.bottom + (bounds?.top ?? 0),\n\t\t\t\tleft: boundingBox.left + (bounds?.left ?? 0),\n\t\t\t\tright: boundingBox.right + (bounds?.left ?? 0),\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t};\n\t\t\tif (!isPointInBox(this.mousePositionOnDragEnd, tabRegion)) {\n\t\t\t\t// allow for a 50ms delay so this message goes after a drop message from a target window if tabbing\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tstopTilingOrTabbing({\n\t\t\t\t\t\tmousePosition: this.mousePositionOnDragEnd,\n\t\t\t\t\t});\n\t\t\t\t}, 50);\n\t\t\t\tthis.setState({\n\t\t\t\t\tiAmDragging: false,\n\t\t\t\t});\n\t\t\t\tthis.onWindowResize();\n\t\t\t} else {\n\t\t\t\t// sometimes a tab gets dropped in a bad spot where no action gets taken and we get stuck in tiling mode\n\t\t\t\t// to make sure nothing bad happens, call cancel after a similar 50ms delay\n\t\t\t\t// If some action was taken, this will be ignored by Finsemble\n\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.cancelTilingOrTabbing\", {\n\t\t\t\t\t\twindowIdentifier: this.state.activeTab,\n\t\t\t\t\t});\n\t\t\t\t}, 50);\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Helper function that will pull data from a drop event, parse it, and return it.\n\t * @param {event} e\n\t */\n\textractWindowIdentifier(e: React.DragEvent<HTMLElement>) {\n\t\ttry {\n\t\t\tlet identifier = JSON.parse(e.dataTransfer.getData(\"application/fsbl-tab-data\"));\n\t\t\t// If the \"identifier\" is formed properly, it'll have this properly. Otherwise, it's something else (e.g., share data, image, etc).\n\t\t\tif (typeof identifier.windowName !== \"undefined\") {\n\t\t\t\treturn identifier;\n\t\t\t} else if (identifier.waitForIdentifier) {\n\t\t\t\treturn identifier;\n\t\t\t} else {\n\t\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\t\"Malformed drop object detected in windowTitleBar. Check tab dropping code. Expected windowIdentifier, got \",\n\t\t\t\t\tidentifier\n\t\t\t\t);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (e2) {\n\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\"Error in 'extractWindowIdentifier'. Check TabRegion.jsx. Either there was no data in the event, or it was a circular object that caused JSON.parse to fail. Javascript Error:\",\n\t\t\t\te2\n\t\t\t);\n\t\t\treturn null;\n\t\t}\n\t}\n\n\t/**\n\t * Called when a drop event occurs on the tab region. We (hope) that this came from a tab. Could be a share icon, an image, something else - that's why we check to see if the identifier exists before doing anything.\n\t * @param {event} e\n\t */\n\tdrop(e?: React.DragEvent<HTMLElement>) {\n\t\tlet identifier: any;\n\t\tif (e) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t\tidentifier = this.extractWindowIdentifier(e);\n\t\t}\n\t\tFSBL.Clients.Logger.system.debug(\"Tab drag drop.\");\n\t\tif (!identifier) return; // the dropped item is not a tab\n\t\tif (this.state.tabs.length === 1 && identifier.windowName === finsembleWindow.name) {\n\t\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.cancelTilingOrTabbing\", {\n\t\t\t\twindowIdentifier: this.state.activeTab,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\n\t\tstopTilingOrTabbing({ allowDropOnSelf: true, action: \"tabbing\" }, () => {\n\t\t\tFSBL.Clients.RouterClient.transmit(\"tabbingDragEnd\", { success: true });\n\t\t\tif (identifier && identifier.windowName) {\n\t\t\t\t// Calls a method defined inside of windowTitleBar.jsx.\n\t\t\t\tthis.onTabAdded(identifier, this.state.hoveredTabIndex);\n\t\t\t} else if (identifier && identifier.waitForIdentifier) {\n\t\t\t\tlet subscribeId: { subscribeID: string; topic: string };\n\t\t\t\tlet tabIdentifierSubscriber = (err: StandardError, response: { data: TabProperties }) => {\n\t\t\t\t\tif (!response.data.windowName) return;\n\t\t\t\t\tFSBL.Clients.RouterClient.unsubscribe(subscribeId);\n\t\t\t\t\tthis.onTabAdded(response.data, this.state.hoveredTabIndex);\n\t\t\t\t};\n\t\t\t\tsubscribeId = FSBL.Clients.RouterClient.subscribe(`Finsemble.${identifier.guid}`, tabIdentifierSubscriber);\n\t\t\t} else {\n\t\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\t\"Unexpected drop event on window title bar. Check the 'drop' method on TabRegion.jsx.\"\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\t}\n\n\tisTabRegionOverflowing() {\n\t\tlet lastTab = {\n\t\t\tright: this.state.tabs.length * this.state.tabWidth,\n\t\t};\n\t\treturn lastTab.right + this.state.translateX > this.state.boundingBox.right - this.state.boundingBox.left;\n\t}\n\n\t/**\n\t * Event handler for when a user wheels inside of the tab region. We translate the deltaY that the event provides into horizontal movement. The translateX value that we return will be used in the render method below.\n\t * @param {event} e\n\t * This should probably be refactored into separate handlers for scroll and mousewheel to account for the differences in event properties.\n\t */\n\tonMouseWheel(e: React.WheelEvent) {\n\t\te.preventDefault();\n\t\tlet numTabs = this.state.tabs.length;\n\t\tlet translateX = 0;\n\t\t// If there's more than one tab, do some calculations, otherwise we aren't going to scroll this region, no matter how much the user wants us to.\n\t\tif (numTabs > 1) {\n\t\t\tlet currentX = (this.refs.Me as HTMLElement).scrollLeft;\n\t\t\tlet { boundingBox } = this.state;\n\t\t\t// Figure out position of first tab and last tab.\n\t\t\tlet firstTab = {\n\t\t\t\tleft: 0 + boundingBox.left,\n\t\t\t};\n\t\t\tlet lastTab = {\n\t\t\t\tright: numTabs * this.state.tabWidth,\n\t\t\t};\n\t\t\tlet deltaX = this.state.tabWidth / 3;\n\t\t\tif (e.nativeEvent.deltaY < 0) {\n\t\t\t\tdeltaX = 0 - deltaX;\n\t\t\t}\n\t\t\t// Mouses with high sensitivity will cause massive scroll amounts. We don't want to scroll more than one tab's width in a single mouse wheel, otherwise you risk missing a tab.\n\t\t\tif (Math.abs(deltaX) > this.state.tabWidth) {\n\t\t\t\tlet isNegative = false;\n\t\t\t\tif (deltaX < 0) {\n\t\t\t\t\tisNegative = true;\n\t\t\t\t}\n\t\t\t\tdeltaX = isNegative ? 0 - this.state.tabWidth : this.state.tabWidth;\n\t\t\t}\n\n\t\t\t// when we set scrollLeft on the element, this event fires. But there's no actual event. so stop.\n\t\t\tif (!e.nativeEvent.deltaY) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet originalDeltaY = e.nativeEvent.deltaY;\n\t\t\tlet deltaY = originalDeltaY;\n\t\t\tif (Math.abs(originalDeltaY) > this.state.tabWidth / 3) {\n\t\t\t\tdeltaY = this.state.tabWidth / 3;\n\t\t\t\tif (originalDeltaY < 0) {\n\t\t\t\t\tdeltaY = 0 - deltaY;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttranslateX = deltaY + currentX;\n\t\t\tlet newRightForLastTab = lastTab.right + translateX;\n\t\t\tlet newLeftForFirstTab = firstTab.left + translateX;\n\t\t\t// Do not let the left of the first tab move to the right of the left edge of the bounding box.\n\t\t\tif (newLeftForFirstTab < 0) {\n\t\t\t\treturn this.scrollToFirstTab();\n\t\t\t} else if (e.nativeEvent.deltaY < 0 && newRightForLastTab <= boundingBox.right) {\n\t\t\t\t// ONLY IF the user is scrolling from right-to-left (deltaY will be negative). IF they try to do that, do not allow the right edge of the last tab to detach.\n\t\t\t\treturn this.scrollToLastTab();\n\t\t\t}\n\t\t\t// Else, the translation is okay. We're in the middle of our list and the first and last tabs aren't being rendered improperly.\n\t\t\ttranslateX < 0 ? (translateX = 0) : translateX;\n\t\t\tthis.setState({ translateX });\n\t\t}\n\t}\n\n\t/**\n\t * Scrolls to our active tab.\n\t */\n\tscrollToActiveTab() {\n\t\tthis.scrollToTab(this.state.activeTab);\n\t}\n\n\t/**\n\t * Scrolls to the first tab in our list of tabs.\n\t */\n\tscrollToFirstTab() {\n\t\tlet firstTab = this.state.tabs[0];\n\t\tthis.scrollToTab(firstTab);\n\t}\n\n\t/**\n\t * Scrolls to the last tab in our list of tabs\n\t */\n\tscrollToLastTab() {\n\t\tlet lastTab = this.state.tabs[this.state.tabs.length - 1];\n\t\tthis.scrollToTab(lastTab);\n\t}\n\n\t/**\n\t * Function that will horizontally scroll the tab region so that the right edge of the tab lines up with the right edge of the tab region.\n\t * @param {} tab\n\t */\n\tscrollToTab(tab: TabProperties) {\n\t\t// 'BoundingBox' is just the boundingClientRect of the tab region. It is, in essence, the center part of the windowTitleBar.\n\t\tlet { boundingBox } = this.state;\n\n\t\tlet tabIndex = this.state.tabs.findIndex((el) => el.windowName === tab.windowName && el.uuid === tab.uuid);\n\t\tif (tabIndex > -1) {\n\t\t\tlet leftEdgeOfTab = tabIndex * this.state.tabWidth;\n\t\t\tlet rightEdgeOfTab = leftEdgeOfTab + this.state.tabWidth;\n\t\t\tlet translateX = rightEdgeOfTab;\n\t\t\t// Our translation is this: Take the right edge of the bounding box, and subtract the left edge. This gives us the 0 point for the box. Then, we subtract the right edge of the tab. The result is a number that we use to shift the entire element and align the right edge of the tab with the right edge of the bounding box. We also account for the 30 px region on the right.\n\n\t\t\t// If there's no overflow, we don't scroll.\n\t\t\tif (rightEdgeOfTab < boundingBox.right) {\n\t\t\t\ttranslateX = 0;\n\t\t\t} else {\n\t\t\t\t// Our translation is this: Take the right edge of the bounding box, and subtract the left edge. This gives us the 0 point for the box. Then, we subtract the right edge of the tab. The result is a number that we use to shift the entire element and align the right edge of the tab with the right edge of the bounding box.\n\t\t\t\ttranslateX = boundingBox.right - boundingBox.left - rightEdgeOfTab;\n\t\t\t\t// If there's no overflow, we don't scroll.\n\t\t\t\tif (rightEdgeOfTab < boundingBox.right) {\n\t\t\t\t\ttranslateX = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.setTabListTranslateX(translateX);\n\t\t}\n\t}\n\n\tsetTabListTranslateX(translateX: number) {\n\t\tActions.setTabListScrollPosition(translateX);\n\t}\n\n\t/**\n\t * Someone is dragging _something_ over the tab region. We respond by rendering the ghost tab.\n\t * @param {event} e\n\t */\n\tdragOver(e: React.DragEvent) {\n\t\te.preventDefault();\n\t}\n\n\t/**\n\t * Triggered when the user moves their mouse out of the tabRegion after a dragOver event happens. When they leave, we hide our placeholder tab.\n\t * @param {event} e\n\t */\n\tdragLeave(e: React.DragEvent<HTMLDivElement>) {\n\t\tlet boundingRect = this.state.boundingBox;\n\t\tif (!isPointInBox({ x: e.screenX, y: e.screenY }, boundingRect)) {\n\t\t\tthis.setState({\n\t\t\t\thoveredTabIndex: undefined,\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Set to a timeout. An event is sent to the RouterClient which will be handled by the drop handler on the window.\n\t * In the event that a drop handler never fires to stop tiling or tabbing, this will take care of it.\n\t *\n\t * @memberof windowTitleBar\n\t */\n\tcancelTabbing() {\n\t\tstopTilingOrTabbing({ allowDropOnSelf: true });\n\t\tthis.onWindowResize();\n\t}\n\n\t/**\n\t * Basically exists just to keep the render method clean. Gives conditional classes to the active tab.\n\t * @param {tab} tab\n\t */\n\tgetTabClasses(tab: TabProperties) {\n\t\tlet classes = \"fsbl-tab\";\n\t\tlet tabIndex = this.findTabIndex(tab);\n\t\tif (tabIndex === this.state.hoveredTabIndex) classes = `${classes} ghost-tab`;\n\t\tif (this.state.activeTab && tab.windowName === this.state.activeTab.windowName) {\n\t\t\tclasses = `${classes} fsbl-active-tab`;\n\t\t}\n\t\treturn classes;\n\t}\n\n\tonTabDraggedOver(e: React.DragEvent<HTMLElement>, tabDraggedOver: TabProperties) {\n\t\te.preventDefault();\n\t\t// Find index of tab.\n\t\tlet tabIndex = this.findTabIndex(tabDraggedOver);\n\t\tthis.setState({\n\t\t\thoveredTabIndex: tabIndex,\n\t\t});\n\t}\n\n\t/**\n\t * OnClick handler for the close button on individual tabs.\n\t * @PLACEHOLDER will interact with tabbing API\n\t * @param {*} tab\n\t */\n\tonTabClosed(identifier: TabProperties) {\n\t\tActions.closeTab(identifier);\n\t}\n\n\t/**\n\t * drop handler for the tab region.\n\t * @param {*} tab\n\t */\n\tonTabAdded(identifier: TabProperties, newIndex: number | undefined) {\n\t\tif (newIndex === -1) {\n\t\t\tnewIndex = undefined;\n\t\t}\n\n\t\tlet myIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\n\t\tif (myIdentifier) {\n\t\t\tmyIdentifier.title = finsembleWindow.windowOptions.title;\n\t\t}\n\t\tif (this.state.tabs.length === 1 && identifier.windowName == myIdentifier.windowName) {\n\t\t\treturn;\n\t\t}\n\t\tif (typeof newIndex === \"number\") {\n\t\t\tActions.reorderTab(identifier, newIndex);\n\t\t}\n\t\tthis.setState({\n\t\t\thoveredTabIndex: undefined,\n\t\t});\n\t}\n\n\t/**\n\t * OnClick handler for individual tabs.\n\t * @PLACEHOLDER will interact with tabbing API\n\t * @param {*} tab\n\t */\n\tsetActiveTab(tab: TabProperties) {\n\t\tActions.setActiveTab(tab);\n\t}\n\n\tonTabsChanged(err: StandardError, response: { value: TabProperties[] }) {\n\t\tlet { value } = response;\n\t\tthis.setState({\n\t\t\ttabs: value,\n\t\t\ttabWidth: this.getTabWidth({ tabList: value }),\n\t\t});\n\t}\n\n\tonTabListTranslateChanged(err: StandardError, response: { value: number }) {\n\t\tlet { value } = response;\n\t\tthis.setState({\n\t\t\ttranslateX: value,\n\t\t});\n\t}\n\n\tUNSAFE_componentWillMount() {\n\t\t// Store.addListener({ field: \"activeTab\" }, this.onActiveTabChanged);\n\t\tStore.addListener({ field: \"tabs\" }, this.onTabsChanged);\n\t\tStore.addListener({ field: \"tabListTranslateX\" }, this.onTabListTranslateChanged);\n\t}\n\n\tcomponentDidMount() {\n\t\twindow.addEventListener(\"resize\", this.onWindowResizeThrottled);\n\t\tlet boundingBox = (this.refs.Me as HTMLElement).getBoundingClientRect();\n\t\tthis.setState({\n\t\t\tboundingBox: boundingBox,\n\t\t\ttabWidth: this.getTabWidth({ boundingBox }),\n\t\t});\n\t}\n\n\tcomponentWillUnmount() {\n\t\t// Store.removeListener({ field: \"activeTab\" }, this.onActiveTabChanged);\n\t\tStore.removeListener({ field: \"tabs\" }, this.onTabsChanged);\n\t\tStore.removeListener({ field: \"tabListTranslateX\" }, this.onTabListTranslateChanged);\n\t\twindow.removeEventListener(\"resize\", this.onWindowResizeThrottled);\n\t}\n\n\thoverAction(newHoverState: string) {\n\t\tthis.setState({ hoverState: newHoverState });\n\t}\n\n\trender() {\n\t\tlet { translateX } = this.state;\n\t\ttranslateX = Math.abs(translateX);\n\t\t// If we have just 1 tab, we render the title. Unless someone is dragging a tab around - in that case, we will render the tab view, even though we only have 1.\n\n\t\tlet componentToRender = \"title\";\n\t\tif (this.state.tabs.length === 1 && this.props.listenForDragOver && !this.state.iAmDragging) {\n\t\t\tcomponentToRender = \"tabs\";\n\t\t}\n\t\tif (this.state.tabs.length > 1) {\n\t\t\tcomponentToRender = \"tabs\";\n\t\t}\n\t\t// Cleanup in case we were translated before closing the second to last tab. This left-aligns the title.\n\t\tif (componentToRender === \"title\") {\n\t\t\ttranslateX = 0;\n\t\t}\n\n\t\tif (this.refs.Me) {\n\t\t\t(this.refs.Me as HTMLElement).scrollLeft = translateX;\n\t\t}\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref=\"Me\"\n\t\t\t\tonDragLeave={this.dragLeave}\n\t\t\t\tclassName={this.props.className}\n\t\t\t\tonWheel={this.onMouseWheel}\n\t\t\t\tonScroll={(e) => {\n\t\t\t\t\tthis.onMouseWheel(e as unknown as React.WheelEvent);\n\t\t\t\t}}\n\t\t\t\tonDrop={this.drop}\n\t\t\t\tonDragOver={this.dragOver}\n\t\t\t>\n\t\t\t\t<div className=\"tab-region-wrapper\">\n\t\t\t\t\t{componentToRender === \"title\" && this.renderTitle()}\n\t\t\t\t\t{componentToRender === \"tabs\" && this.renderTabs()}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t/**\n\t * Function to render the title. Helps keep the render code clean.\n\t */\n\trenderTitle() {\n\t\tconst windowIdentifier: WindowIdentifier = {\n\t\t\twindowName: finsembleWindow.name,\n\t\t\tuuid: finsembleWindow.uuid,\n\t\t};\n\t\treturn (\n\t\t\t<div\n\t\t\t\tdraggable=\"true\"\n\t\t\t\tonDragStart={(e) => {\n\t\t\t\t\tFSBL.Clients.Logger.system.debug(\"Tab drag start - TITLE\");\n\t\t\t\t\tlet activeIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\n\t\t\t\t\tactiveIdentifier.title = finsembleWindow.windowOptions.title;\n\t\t\t\t\tthis.startDrag(e, activeIdentifier);\n\t\t\t\t}}\n\t\t\t\tonDragEnd={this.stopDrag}\n\t\t\t\tdata-hover={this.state.hoverState}\n\t\t\t\tclassName={\"fsbl-header-title\"}\n\t\t\t>\n\t\t\t\t<FinsembleHoverDetector edge=\"top\" hoverAction={this.hoverAction.bind(this)} />\n\t\t\t\t<Title onUpdate={this.props.onTitleUpdated} windowIdentifier={windowIdentifier}></Title>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t/**\n\t * Renders the array of tabs.\n\t * @param {*} props\n\t */\n\trenderTabs() {\n\t\tlet titleWidth = this.state.tabWidth - ICON_AREA - CLOSE_BUTTON_MARGIN;\n\n\t\treturn this.state.tabs.map((tab) => (\n\t\t\t<Tab\n\t\t\t\tdraggable=\"true\"\n\t\t\t\tkey={tab.windowName} // this is a unique identifier for React so it knows when to update the DOM\n\t\t\t\tclassName={this.getTabClasses(tab)}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tthis.setActiveTab(tab);\n\t\t\t\t}}\n\t\t\t\tonDragStart={(e, identifier) => {\n\t\t\t\t\tFSBL.Clients.Logger.system.debug(\"Tab drag - TAB\", identifier.windowName);\n\t\t\t\t\tthis.startDrag(e, identifier);\n\t\t\t\t}}\n\t\t\t\tonDrop={this.drop}\n\t\t\t\tonDragEnd={this.stopDrag}\n\t\t\t\tonTabClose={() => {\n\t\t\t\t\tthis.onTabClosed(tab);\n\t\t\t\t}}\n\t\t\t\tonTabDraggedOver={this.onTabDraggedOver}\n\t\t\t\tlistenForDragOver={this.props.listenForDragOver}\n\t\t\t\ttabWidth={this.state.tabWidth}\n\t\t\t\ttitleWidth={titleWidth}\n\t\t\t\twindowIdentifier={tab}\n\t\t\t/>\n\t\t));\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"TabList.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/center/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAIxC,IAAI,SAAS,GAAG,GAAG,CAAC;AAEpB,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B,MAAM,mBAAmB,GAAG,CAC3B,MAOC,EACD,E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AAc,EAAE,gBAAgB,EAAE,gBAAgB,GAAU,CACnF,CACN,CAAC;IACH,CAAC;IAMD,UAAU;QACT,IAAI,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,SAAS,GAAG,mBAAmB,CAAC;QAEvE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACnC,oBAAC,GAAG,IACH,SAAS,EAAC,MAAM,EAChB,GAAG,EAAE,GAAG,CAAC,UAAU,EACnB,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAClC,OAAO,EAAE,GAAG,EAAE;gBACb,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC,EACD,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE;gBAC9B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;gBAC1E,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;YAC/B,CAAC,EACD,MAAM,EAAE,IAAI,CAAC,IAAI,EACjB,SAAS,EAAE,IAAI,CAAC,QAAQ,EACxB,UAAU,EAAE,GAAG,EAAE;gBAChB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACvB,CAAC,EACD,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAC/C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC7B,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,GAAG,GACpB,CACF,CAAC,CAAC;IACJ,CAAC;CACD","sourcesContent":["import * as React from \"react\";\nimport { StandardError } from \"@finsemble/finsemble-api/types/types\";\nimport Tab from \"./Tab\";\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\nimport { Store, Actions } from \"../../stores/windowTitleBarStore\";\nimport { Title } from \"../windowTitle\";\nimport _throttle from \"lodash/throttle\";\nimport { TabListProps, TabListState, GetTabWidthParams, TabProperties } from \"../../../../types/windowTitleBar\";\nimport { WindowIdentifier } from \"@finsemble/finsemble-api\";\n\nlet TAB_WIDTH = 300;\n// Next two items are for calculating how large the title should be within a tab.\nconst ICON_AREA = 16;\nconst CLOSE_BUTTON_MARGIN = 12;\nconst MINIMUM_TAB_SIZE = 100;\n\nconst stopTilingOrTabbing = (\n\tparams: {\n\t\tmousePosition?: {\n\t\t\tx: number;\n\t\t\ty: number;\n\t\t};\n\t\taction?: string;\n\t\tallowDropOnSelf?: boolean;\n\t},\n\tcb?: () => void\n) => {\n\tconst transmitAndQueryStop = () => {\n\t\t// docking service has a responder for the query\n\t\tFSBL.Clients.RouterClient.query(\"DockingService.stopTilingOrTabbing\", params, () => {\n\t\t\tcb?.();\n\t\t});\n\t\t// WindowTitleBarShell is listening for transmit events so that it knows when tiling/tabbing has stopped\n\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.stopTilingOrTabbing\", params);\n\t};\n\t// Get the mouse position if not passed in.\n\tif (!params.mousePosition) {\n\t\tfin.desktop.System.getMousePosition((position) => {\n\t\t\tparams.mousePosition = position;\n\t\t\ttransmitAndQueryStop();\n\t\t\t// If allowDropOnSelf is true, it came from a tab/window drop event. Run the callback.\n\t\t\tif (!params.allowDropOnSelf) cb?.();\n\t\t});\n\t} else {\n\t\ttransmitAndQueryStop();\n\t\t// If allowDropOnSelf is true, it came from a tab/window drop event. Run the callback.\n\t\tif (!params.allowDropOnSelf) cb?.();\n\t}\n};\n\nconst isPointInBox = (\n\tpoint: {\n\t\tx: number;\n\t\ty: number;\n\t},\n\tbox: {\n\t\ttop: number;\n\t\tleft: number;\n\t\tbottom?: number;\n\t\tright?: number;\n\t\twidth: number;\n\t\theight: number;\n\t}\n): boolean => {\n\tif (!box.bottom) box.bottom = box.top + box.height;\n\tif (!box.right) box.right = box.left + box.width;\n\treturn point.x > box.left && point.x < box.right && point.y < box.bottom && point.y > box.top;\n};\n\nexport class TabList extends React.Component<TabListProps, TabListState> {\n\tmousePositionOnDragEnd: { x: number; y: number };\n\n\tonWindowResizeThrottled: (this: Window, ev: UIEvent) => any;\n\n\tconstructor(props: TabListProps) {\n\t\tsuper(props);\n\t\tlet initialState = Store.getValues([\"activeTab\", \"tabs\"]);\n\t\tlet activeIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\n\n\t\tif (activeIdentifier) {\n\t\t\tactiveIdentifier.title = finsembleWindow.windowOptions.title;\n\t\t}\n\t\tthis.state = {\n\t\t\ttranslateX: 0,\n\t\t\ttabs: initialState.tabs,\n\t\t\tactiveTab: activeIdentifier as TabProperties,\n\t\t\tboundingBox: {\n\t\t\t\tright: 0,\n\t\t\t\tleft: 0,\n\t\t\t\ttop: 0,\n\t\t\t\tbottom: 0,\n\t\t\t\theight: 0,\n\t\t\t\twidth: 0,\n\t\t\t},\n\t\t\tiAmDragging: false,\n\t\t\thoverState: \"false\",\n\t\t\ttabWidth: TAB_WIDTH,\n\t\t\thoveredTabIndex: undefined,\n\t\t};\n\t\tthis.onWindowResizeThrottled = () => {};\n\t\tthis.bindCorrectContext();\n\t\tthis.mousePositionOnDragEnd = {\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t};\n\t}\n\n\t/**\n\t * Make sure that _this_ is correct inside of our event handlers.\n\t */\n\tbindCorrectContext() {\n\t\tthis.startDrag = this.startDrag.bind(this);\n\t\tthis.stopDrag = this.stopDrag.bind(this);\n\t\tthis.cancelTabbing = this.cancelTabbing.bind(this);\n\t\tthis.drop = this.drop.bind(this);\n\t\tthis.dragOver = this.dragOver.bind(this);\n\t\tthis.dragLeave = this.dragLeave.bind(this);\n\t\tthis.onMouseWheel = this.onMouseWheel.bind(this);\n\t\tthis.renderTitle = this.renderTitle.bind(this);\n\t\tthis.renderTabs = this.renderTabs.bind(this);\n\t\tthis.findTabIndex = this.findTabIndex.bind(this);\n\t\tthis.setActiveTab = this.setActiveTab.bind(this);\n\t\tthis.onTabAdded = this.onTabAdded.bind(this);\n\t\tthis.onTabClosed = this.onTabClosed.bind(this);\n\t\tthis.setActiveTab = this.setActiveTab.bind(this);\n\t\tthis.onTabsChanged = this.onTabsChanged.bind(this);\n\t\tthis.onTabDraggedOver = this.onTabDraggedOver.bind(this);\n\t\tthis.isTabRegionOverflowing = this.isTabRegionOverflowing.bind(this);\n\t\tthis.onWindowResize = this.onWindowResize.bind(this);\n\t\tthis.onWindowResizeThrottled = _throttle(this.onWindowResize, 100);\n\t\tthis.getTabWidth = this.getTabWidth.bind(this);\n\t\tthis.setTabListTranslateX = this.setTabListTranslateX.bind(this);\n\t\tthis.onTabListTranslateChanged = this.onTabListTranslateChanged.bind(this);\n\t}\n\n\tgetTabWidth(params: GetTabWidthParams = {}) {\n\t\tlet { boundingBox, tabList } = params;\n\t\tif (typeof tabList === \"undefined\") {\n\t\t\ttabList = this.state.tabs;\n\t\t}\n\t\tif (typeof boundingBox === \"undefined\") {\n\t\t\tboundingBox = (this.refs.Me as HTMLElement).getBoundingClientRect();\n\t\t}\n\t\tif (typeof boundingBox.right === \"undefined\") {\n\t\t\treturn TAB_WIDTH;\n\t\t}\n\t\tlet containerWidth = boundingBox.right - boundingBox.left;\n\t\tlet newTabWidth = containerWidth / tabList.length;\n\n\t\treturn newTabWidth < MINIMUM_TAB_SIZE ? MINIMUM_TAB_SIZE : newTabWidth;\n\t}\n\n\t/**\n\t * Resize handler. Calculates the space that the center-region is taking up. May be used to scale tabs proportionally.\n\t */\n\tonWindowResize() {\n\t\tlet bounds = (this.refs.Me as HTMLElement).getBoundingClientRect();\n\t\tthis.setState({\n\t\t\tboundingBox: bounds,\n\t\t\ttabWidth: this.getTabWidth(),\n\t\t});\n\t}\n\n\tfindTabIndex(tab: TabProperties) {\n\t\treturn this.state.tabs.findIndex((el) => tab.windowName === el.windowName);\n\t}\n\n\t/**\n\t *\n\t * Function that's called when this component fires the onDragStart event, this will start the tiling or tabbing process\n\t *\n\t * @param e The SyntheticEvent created by React when the startdrag event is called\n\t * @memberof windowTitleBar\n\t */\n\tstartDrag(e: React.DragEvent<HTMLDivElement>, windowIdentifier: WindowIdentifier) {\n\t\tthis.setState({\n\t\t\tiAmDragging: true,\n\t\t});\n\t\te.dataTransfer.setData(\"application/fsbl-tab-data\", JSON.stringify(windowIdentifier));\n\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.startTilingOrTabbing\", {\n\t\t\twindowIdentifier,\n\t\t});\n\t}\n\n\t/**\n\t * Called when the react component detects a drop (or stop drag, which is equivalent)\n\t *\n\t * @param e The SyntheticEvent created by React when the stopdrag event is called\n\t * @memberof windowTitleBar\n\t */\n\tstopDrag(e: React.DragEvent<HTMLDivElement>) {\n\t\t// We don't want onDropHandler() in windowTitleBarComponent.jsx\n\t\t// to handle this drop event, so we call event.stopPropagation().\n\t\te.stopPropagation();\n\t\tFSBL.Clients.Logger.system.debug(\"Tab stopDrag.\");\n\t\tthis.mousePositionOnDragEnd = {\n\t\t\tx: e.nativeEvent.screenX,\n\t\t\ty: e.nativeEvent.screenY,\n\t\t};\n\n\t\tconst { boundingBox } = this.state;\n\t\tfinsembleWindow.getBounds((err, bounds) => {\n\t\t\t// We ONLY want to know if we're in the tab region!\n\t\t\tconst tabRegion = {\n\t\t\t\ttop: boundingBox.top + (bounds?.top ?? 0),\n\t\t\t\tbottom: boundingBox.bottom + (bounds?.top ?? 0),\n\t\t\t\tleft: boundingBox.left + (bounds?.left ?? 0),\n\t\t\t\tright: boundingBox.right + (bounds?.left ?? 0),\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t};\n\t\t\tif (!isPointInBox(this.mousePositionOnDragEnd, tabRegion)) {\n\t\t\t\t// allow for a 50ms delay so this message goes after a drop message from a target window if tabbing\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tstopTilingOrTabbing({\n\t\t\t\t\t\tmousePosition: this.mousePositionOnDragEnd,\n\t\t\t\t\t});\n\t\t\t\t}, 50);\n\t\t\t\tthis.setState({\n\t\t\t\t\tiAmDragging: false,\n\t\t\t\t});\n\t\t\t\tthis.onWindowResize();\n\t\t\t} else {\n\t\t\t\t// sometimes a tab gets dropped in a bad spot where no action gets taken and we get stuck in tiling mode\n\t\t\t\t// to make sure nothing bad happens, call cancel after a similar 50ms delay\n\t\t\t\t// If some action was taken, this will be ignored by Finsemble\n\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.cancelTilingOrTabbing\", {\n\t\t\t\t\t\twindowIdentifier: this.state.activeTab,\n\t\t\t\t\t});\n\t\t\t\t}, 50);\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Helper function that will pull data from a drop event, parse it, and return it.\n\t * @param {event} e\n\t */\n\textractWindowIdentifier(e: React.DragEvent<HTMLElement>) {\n\t\ttry {\n\t\t\tlet identifier = JSON.parse(e.dataTransfer.getData(\"application/fsbl-tab-data\"));\n\t\t\t// If the \"identifier\" is formed properly, it'll have this properly. Otherwise, it's something else (e.g., share data, image, etc).\n\t\t\tif (typeof identifier.windowName !== \"undefined\") {\n\t\t\t\treturn identifier;\n\t\t\t} else if (identifier.waitForIdentifier) {\n\t\t\t\treturn identifier;\n\t\t\t} else {\n\t\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\t\"Malformed drop object detected in windowTitleBar. Check tab dropping code. Expected windowIdentifier, got \",\n\t\t\t\t\tidentifier\n\t\t\t\t);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (e2) {\n\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\"Error in 'extractWindowIdentifier'. Check TabRegion.jsx. Either there was no data in the event, or it was a circular object that caused JSON.parse to fail. Javascript Error:\",\n\t\t\t\te2\n\t\t\t);\n\t\t\treturn null;\n\t\t}\n\t}\n\n\t/**\n\t * Called when a drop event occurs on the tab region. We (hope) that this came from a tab. Could be a share icon, an image, something else - that's why we check to see if the identifier exists before doing anything.\n\t * @param {event} e\n\t */\n\tdrop(e?: React.DragEvent<HTMLElement>) {\n\t\tlet identifier: any;\n\t\tif (e) {\n\t\t\te.preventDefault();\n\t\t\te.stopPropagation();\n\t\t\tidentifier = this.extractWindowIdentifier(e);\n\t\t}\n\t\tFSBL.Clients.Logger.system.debug(\"Tab drag drop.\");\n\t\tif (!identifier) return; // the dropped item is not a tab\n\t\tif (this.state.tabs.length === 1 && identifier.windowName === finsembleWindow.name) {\n\t\t\t// The source and destination tabs are the same\n\t\t\t//\n\t\t\t// Cancel the tabbing event\n\t\t\tFSBL.Clients.RouterClient.transmit(\"DockingService.cancelTilingOrTabbing\", {\n\t\t\t\twindowIdentifier: this.state.activeTab,\n\t\t\t});\n\t\t\t// But also set \"iAmDragging\" to false in order to allow other tabs to be dragged in here\n\t\t\tthis.setState({\n\t\t\t\tiAmDragging: false,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\n\t\tstopTilingOrTabbing({ allowDropOnSelf: true, action: \"tabbing\" }, () => {\n\t\t\tFSBL.Clients.RouterClient.transmit(\"tabbingDragEnd\", { success: true });\n\t\t\tif (identifier && identifier.windowName) {\n\t\t\t\t// Calls a method defined inside of windowTitleBar.jsx.\n\t\t\t\tthis.onTabAdded(identifier, this.state.hoveredTabIndex);\n\t\t\t} else if (identifier && identifier.waitForIdentifier) {\n\t\t\t\tlet subscribeId: { subscribeID: string; topic: string };\n\t\t\t\tlet tabIdentifierSubscriber = (err: StandardError, response: { data: TabProperties }) => {\n\t\t\t\t\tif (!response.data.windowName) return;\n\t\t\t\t\tFSBL.Clients.RouterClient.unsubscribe(subscribeId);\n\t\t\t\t\tthis.onTabAdded(response.data, this.state.hoveredTabIndex);\n\t\t\t\t};\n\t\t\t\tsubscribeId = FSBL.Clients.RouterClient.subscribe(`Finsemble.${identifier.guid}`, tabIdentifierSubscriber);\n\t\t\t} else {\n\t\t\t\tFSBL.Clients.Logger.system.error(\n\t\t\t\t\t\"Unexpected drop event on window title bar. Check the 'drop' method on TabRegion.jsx.\"\n\t\t\t\t);\n\t\t\t}\n\t\t});\n\t}\n\n\tisTabRegionOverflowing() {\n\t\tlet lastTab = {\n\t\t\tright: this.state.tabs.length * this.state.tabWidth,\n\t\t};\n\t\treturn lastTab.right + this.state.translateX > this.state.boundingBox.right - this.state.boundingBox.left;\n\t}\n\n\t/**\n\t * Event handler for when a user wheels inside of the tab region. We translate the deltaY that the event provides into horizontal movement. The translateX value that we return will be used in the render method below.\n\t * @param {event} e\n\t * This should probably be refactored into separate handlers for scroll and mousewheel to account for the differences in event properties.\n\t */\n\tonMouseWheel(e: React.WheelEvent) {\n\t\te.preventDefault();\n\t\tlet numTabs = this.state.tabs.length;\n\t\tlet translateX = 0;\n\t\t// If there's more than one tab, do some calculations, otherwise we aren't going to scroll this region, no matter how much the user wants us to.\n\t\tif (numTabs > 1) {\n\t\t\tlet currentX = (this.refs.Me as HTMLElement).scrollLeft;\n\t\t\tlet { boundingBox } = this.state;\n\t\t\t// Figure out position of first tab and last tab.\n\t\t\tlet firstTab = {\n\t\t\t\tleft: 0 + boundingBox.left,\n\t\t\t};\n\t\t\tlet lastTab = {\n\t\t\t\tright: numTabs * this.state.tabWidth,\n\t\t\t};\n\t\t\tlet deltaX = this.state.tabWidth / 3;\n\t\t\tif (e.nativeEvent.deltaY < 0) {\n\t\t\t\tdeltaX = 0 - deltaX;\n\t\t\t}\n\t\t\t// Mouses with high sensitivity will cause massive scroll amounts. We don't want to scroll more than one tab's width in a single mouse wheel, otherwise you risk missing a tab.\n\t\t\tif (Math.abs(deltaX) > this.state.tabWidth) {\n\t\t\t\tlet isNegative = false;\n\t\t\t\tif (deltaX < 0) {\n\t\t\t\t\tisNegative = true;\n\t\t\t\t}\n\t\t\t\tdeltaX = isNegative ? 0 - this.state.tabWidth : this.state.tabWidth;\n\t\t\t}\n\n\t\t\t// when we set scrollLeft on the element, this event fires. But there's no actual event. so stop.\n\t\t\tif (!e.nativeEvent.deltaY) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet originalDeltaY = e.nativeEvent.deltaY;\n\t\t\tlet deltaY = originalDeltaY;\n\t\t\tif (Math.abs(originalDeltaY) > this.state.tabWidth / 3) {\n\t\t\t\tdeltaY = this.state.tabWidth / 3;\n\t\t\t\tif (originalDeltaY < 0) {\n\t\t\t\t\tdeltaY = 0 - deltaY;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttranslateX = deltaY + currentX;\n\t\t\tlet newRightForLastTab = lastTab.right + translateX;\n\t\t\tlet newLeftForFirstTab = firstTab.left + translateX;\n\t\t\t// Do not let the left of the first tab move to the right of the left edge of the bounding box.\n\t\t\tif (newLeftForFirstTab < 0) {\n\t\t\t\treturn this.scrollToFirstTab();\n\t\t\t} else if (e.nativeEvent.deltaY < 0 && newRightForLastTab <= boundingBox.right) {\n\t\t\t\t// ONLY IF the user is scrolling from right-to-left (deltaY will be negative). IF they try to do that, do not allow the right edge of the last tab to detach.\n\t\t\t\treturn this.scrollToLastTab();\n\t\t\t}\n\t\t\t// Else, the translation is okay. We're in the middle of our list and the first and last tabs aren't being rendered improperly.\n\t\t\ttranslateX < 0 ? (translateX = 0) : translateX;\n\t\t\tthis.setState({ translateX });\n\t\t}\n\t}\n\n\t/**\n\t * Scrolls to our active tab.\n\t */\n\tscrollToActiveTab() {\n\t\tthis.scrollToTab(this.state.activeTab);\n\t}\n\n\t/**\n\t * Scrolls to the first tab in our list of tabs.\n\t */\n\tscrollToFirstTab() {\n\t\tlet firstTab = this.state.tabs[0];\n\t\tthis.scrollToTab(firstTab);\n\t}\n\n\t/**\n\t * Scrolls to the last tab in our list of tabs\n\t */\n\tscrollToLastTab() {\n\t\tlet lastTab = this.state.tabs[this.state.tabs.length - 1];\n\t\tthis.scrollToTab(lastTab);\n\t}\n\n\t/**\n\t * Function that will horizontally scroll the tab region so that the right edge of the tab lines up with the right edge of the tab region.\n\t * @param {} tab\n\t */\n\tscrollToTab(tab: TabProperties) {\n\t\t// 'BoundingBox' is just the boundingClientRect of the tab region. It is, in essence, the center part of the windowTitleBar.\n\t\tlet { boundingBox } = this.state;\n\n\t\tlet tabIndex = this.state.tabs.findIndex((el) => el.windowName === tab.windowName);\n\t\tif (tabIndex > -1) {\n\t\t\tlet leftEdgeOfTab = tabIndex * this.state.tabWidth;\n\t\t\tlet rightEdgeOfTab = leftEdgeOfTab + this.state.tabWidth;\n\t\t\tlet translateX = rightEdgeOfTab;\n\t\t\t// Our translation is this: Take the right edge of the bounding box, and subtract the left edge. This gives us the 0 point for the box. Then, we subtract the right edge of the tab. The result is a number that we use to shift the entire element and align the right edge of the tab with the right edge of the bounding box. We also account for the 30 px region on the right.\n\n\t\t\t// If there's no overflow, we don't scroll.\n\t\t\tif (rightEdgeOfTab < boundingBox.right) {\n\t\t\t\ttranslateX = 0;\n\t\t\t} else {\n\t\t\t\t// Our translation is this: Take the right edge of the bounding box, and subtract the left edge. This gives us the 0 point for the box. Then, we subtract the right edge of the tab. The result is a number that we use to shift the entire element and align the right edge of the tab with the right edge of the bounding box.\n\t\t\t\ttranslateX = boundingBox.right - boundingBox.left - rightEdgeOfTab;\n\t\t\t\t// If there's no overflow, we don't scroll.\n\t\t\t\tif (rightEdgeOfTab < boundingBox.right) {\n\t\t\t\t\ttranslateX = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.setTabListTranslateX(translateX);\n\t\t}\n\t}\n\n\tsetTabListTranslateX(translateX: number) {\n\t\tActions.setTabListScrollPosition(translateX);\n\t}\n\n\t/**\n\t * Someone is dragging _something_ over the tab region. We respond by rendering the ghost tab.\n\t * @param {event} e\n\t */\n\tdragOver(e: React.DragEvent) {\n\t\te.preventDefault();\n\t}\n\n\t/**\n\t * Triggered when the user moves their mouse out of the tabRegion after a dragOver event happens. When they leave, we hide our placeholder tab.\n\t * @param {event} e\n\t */\n\tdragLeave(e: React.DragEvent<HTMLDivElement>) {\n\t\tlet boundingRect = this.state.boundingBox;\n\t\tif (!isPointInBox({ x: e.screenX, y: e.screenY }, boundingRect)) {\n\t\t\tthis.setState({\n\t\t\t\thoveredTabIndex: undefined,\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * Set to a timeout. An event is sent to the RouterClient which will be handled by the drop handler on the window.\n\t * In the event that a drop handler never fires to stop tiling or tabbing, this will take care of it.\n\t *\n\t * @memberof windowTitleBar\n\t */\n\tcancelTabbing() {\n\t\tstopTilingOrTabbing({ allowDropOnSelf: true });\n\t\tthis.onWindowResize();\n\t}\n\n\t/**\n\t * Basically exists just to keep the render method clean. Gives conditional classes to the active tab.\n\t * @param {tab} tab\n\t */\n\tgetTabClasses(tab: TabProperties) {\n\t\tlet classes = \"fsbl-tab\";\n\t\tlet tabIndex = this.findTabIndex(tab);\n\t\tif (tabIndex === this.state.hoveredTabIndex) classes = `${classes} ghost-tab`;\n\t\tif (this.state.activeTab && tab.windowName === this.state.activeTab.windowName) {\n\t\t\tclasses = `${classes} fsbl-active-tab`;\n\t\t}\n\t\treturn classes;\n\t}\n\n\tonTabDraggedOver(e: React.DragEvent<HTMLElement>, tabDraggedOver: TabProperties) {\n\t\te.preventDefault();\n\t\t// Find index of tab.\n\t\tlet tabIndex = this.findTabIndex(tabDraggedOver);\n\t\tthis.setState({\n\t\t\thoveredTabIndex: tabIndex,\n\t\t});\n\t}\n\n\t/**\n\t * OnClick handler for the close button on individual tabs.\n\t * @PLACEHOLDER will interact with tabbing API\n\t * @param {*} tab\n\t */\n\tonTabClosed(identifier: TabProperties) {\n\t\tActions.closeTab(identifier);\n\t}\n\n\t/**\n\t * drop handler for the tab region.\n\t * @param {*} tab\n\t */\n\tonTabAdded(identifier: TabProperties, newIndex: number | undefined) {\n\t\tif (newIndex === -1) {\n\t\t\tnewIndex = undefined;\n\t\t}\n\n\t\tlet myIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\n\t\tif (myIdentifier) {\n\t\t\tmyIdentifier.title = finsembleWindow.windowOptions.title;\n\t\t}\n\t\tif (this.state.tabs.length === 1 && identifier.windowName == myIdentifier.windowName) {\n\t\t\treturn;\n\t\t}\n\t\tif (typeof newIndex === \"number\") {\n\t\t\tActions.reorderTab(identifier, newIndex);\n\t\t}\n\t\tthis.setState({\n\t\t\thoveredTabIndex: undefined,\n\t\t});\n\t}\n\n\t/**\n\t * OnClick handler for individual tabs.\n\t * @PLACEHOLDER will interact with tabbing API\n\t * @param {*} tab\n\t */\n\tsetActiveTab(tab: TabProperties) {\n\t\tActions.setActiveTab(tab);\n\t}\n\n\tonTabsChanged(err: StandardError, response: { value: TabProperties[] }) {\n\t\tlet { value } = response;\n\t\tthis.setState({\n\t\t\ttabs: value,\n\t\t\ttabWidth: this.getTabWidth({ tabList: value }),\n\t\t});\n\t}\n\n\tonTabListTranslateChanged(err: StandardError, response: { value: number }) {\n\t\tlet { value } = response;\n\t\tthis.setState({\n\t\t\ttranslateX: value,\n\t\t});\n\t}\n\n\tUNSAFE_componentWillMount() {\n\t\t// Store.addListener({ field: \"activeTab\" }, this.onActiveTabChanged);\n\t\tStore.addListener({ field: \"tabs\" }, this.onTabsChanged);\n\t\tStore.addListener({ field: \"tabListTranslateX\" }, this.onTabListTranslateChanged);\n\t}\n\n\tcomponentDidMount() {\n\t\twindow.addEventListener(\"resize\", this.onWindowResizeThrottled);\n\t\tlet boundingBox = (this.refs.Me as HTMLElement).getBoundingClientRect();\n\t\tthis.setState({\n\t\t\tboundingBox: boundingBox,\n\t\t\ttabWidth: this.getTabWidth({ boundingBox }),\n\t\t});\n\t}\n\n\tcomponentWillUnmount() {\n\t\t// Store.removeListener({ field: \"activeTab\" }, this.onActiveTabChanged);\n\t\tStore.removeListener({ field: \"tabs\" }, this.onTabsChanged);\n\t\tStore.removeListener({ field: \"tabListTranslateX\" }, this.onTabListTranslateChanged);\n\t\twindow.removeEventListener(\"resize\", this.onWindowResizeThrottled);\n\t}\n\n\thoverAction(newHoverState: string) {\n\t\tthis.setState({ hoverState: newHoverState });\n\t}\n\n\trender() {\n\t\tlet { translateX } = this.state;\n\t\ttranslateX = Math.abs(translateX);\n\t\t// If we have just 1 tab, we render the title. Unless someone is dragging a tab around - in that case, we will render the tab view, even though we only have 1.\n\n\t\tlet componentToRender = \"title\";\n\t\tif (this.state.tabs.length === 1 && this.props.listenForDragOver && !this.state.iAmDragging) {\n\t\t\tcomponentToRender = \"tabs\";\n\t\t}\n\t\tif (this.state.tabs.length > 1) {\n\t\t\tcomponentToRender = \"tabs\";\n\t\t}\n\t\t// Cleanup in case we were translated before closing the second to last tab. This left-aligns the title.\n\t\tif (componentToRender === \"title\") {\n\t\t\ttranslateX = 0;\n\t\t}\n\n\t\tif (this.refs.Me) {\n\t\t\t(this.refs.Me as HTMLElement).scrollLeft = translateX;\n\t\t}\n\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref=\"Me\"\n\t\t\t\tonDragLeave={this.dragLeave}\n\t\t\t\tclassName={this.props.className}\n\t\t\t\tonWheel={this.onMouseWheel}\n\t\t\t\tonScroll={(e) => {\n\t\t\t\t\tthis.onMouseWheel(e as unknown as React.WheelEvent);\n\t\t\t\t}}\n\t\t\t\tonDrop={this.drop}\n\t\t\t\tonDragOver={this.dragOver}\n\t\t\t>\n\t\t\t\t<div className=\"tab-region-wrapper\">\n\t\t\t\t\t{componentToRender === \"title\" && this.renderTitle()}\n\t\t\t\t\t{componentToRender === \"tabs\" && this.renderTabs()}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t/**\n\t * Function to render the title. Helps keep the render code clean.\n\t */\n\trenderTitle() {\n\t\tconst windowIdentifier: WindowIdentifier = {\n\t\t\twindowName: finsembleWindow.name,\n\t\t\tuuid: finsembleWindow.uuid,\n\t\t};\n\t\treturn (\n\t\t\t<div\n\t\t\t\tdraggable=\"true\"\n\t\t\t\tonDragStart={(e) => {\n\t\t\t\t\tFSBL.Clients.Logger.system.debug(\"Tab drag start - TITLE\");\n\t\t\t\t\tlet activeIdentifier = finsembleWindow.identifier as typeof finsembleWindow.identifier & { title: string };\n\t\t\t\t\tactiveIdentifier.title = finsembleWindow.windowOptions.title;\n\t\t\t\t\tthis.startDrag(e, activeIdentifier);\n\t\t\t\t}}\n\t\t\t\tonDragEnd={this.stopDrag}\n\t\t\t\tdata-hover={this.state.hoverState}\n\t\t\t\tclassName={\"fsbl-header-title\"}\n\t\t\t>\n\t\t\t\t<FinsembleHoverDetector edge=\"top\" hoverAction={this.hoverAction.bind(this)} />\n\t\t\t\t<Title onUpdate={this.props.onTitleUpdated} windowIdentifier={windowIdentifier}></Title>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t/**\n\t * Renders the array of tabs.\n\t * @param {*} props\n\t */\n\trenderTabs() {\n\t\tlet titleWidth = this.state.tabWidth - ICON_AREA - CLOSE_BUTTON_MARGIN;\n\n\t\treturn this.state.tabs.map((tab) => (\n\t\t\t<Tab\n\t\t\t\tdraggable=\"true\"\n\t\t\t\tkey={tab.windowName} // this is a unique identifier for React so it knows when to update the DOM\n\t\t\t\tclassName={this.getTabClasses(tab)}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tthis.setActiveTab(tab);\n\t\t\t\t}}\n\t\t\t\tonDragStart={(e, identifier) => {\n\t\t\t\t\tFSBL.Clients.Logger.system.debug(\"Tab drag - TAB\", identifier.windowName);\n\t\t\t\t\tthis.startDrag(e, identifier);\n\t\t\t\t}}\n\t\t\t\tonDrop={this.drop}\n\t\t\t\tonDragEnd={this.stopDrag}\n\t\t\t\tonTabClose={() => {\n\t\t\t\t\tthis.onTabClosed(tab);\n\t\t\t\t}}\n\t\t\t\tonTabDraggedOver={this.onTabDraggedOver}\n\t\t\t\tlistenForDragOver={this.props.listenForDragOver}\n\t\t\t\ttabWidth={this.state.tabWidth}\n\t\t\t\ttitleWidth={titleWidth}\n\t\t\t\twindowIdentifier={tab}\n\t\t\t/>\n\t\t));\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"L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ef, useEffect } from \"react\";\nimport { LinkerGroups } from \"./LinkerGroups\";\nimport { useDispatch, useSelector, Provider } from \"react-redux\";\nimport { actions, LinkerStore, store } from \"../../../linker/remoteRedux\";\nimport { LinkerButton as LinkerButtonDeprecated } from \"./LinkerButtonDeprecated\";\nimport { services, ShowWindowParams } from \"@finsemble/finsemble-
|
|
1
|
+
{"version":3,"file":"LinkerButton.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/left/LinkerButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,OAAO,EAAe,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,YAAY,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAKlF,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,CAC9B,6BACC,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B,EAClC,UAAU,EAAC,8BAA8B;IAEzC,4CAAqB;IACrB;QACC,8BACC,EAAE,EAAC,WAAW,EACd,CAAC,EAAC,yMAAyM,GAC1M;QACF,gCAAQ,EAAE,EAAC,WAAW,EAAC,CAAC,EAAC,QAAQ,EAAC,CAAC,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ,EAAC,MAAM,EAAC,QAAQ;YACzE,kCAAU,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,aAAa,EAAC,MAAM,EAAC,oBAAoB,GAAG;YAChE,wCAAgB,EAAE,EAAC,oBAAoB,EAAC,MAAM,EAAC,kBAAkB,EAAC,YAAY,EAAC,IAAI,GAAG;YACtF,uCAAe,EAAE,E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X;QACA,WAAW,KAAK,yBAAyB,IAAI,oBAAC,sBAAsB,OAAG,CACtE,CACH,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAA4B,GAAG,EAAE,CAAC,oBAAC,WAAW,OAAG,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport React, { useRef, useEffect } from \"react\";\nimport { LinkerGroups } from \"./LinkerGroups\";\nimport { useDispatch, useSelector, Provider } from \"react-redux\";\nimport { actions, LinkerStore, store } from \"../../../linker/remoteRedux\";\nimport { LinkerButton as LinkerButtonDeprecated } from \"./LinkerButtonDeprecated\";\nimport { services, ShowWindowParams } from \"@finsemble/finsemble-api\";\n\ntype SpawnParams = services.window.types.SpawnParams;\n\nconst LinkerButtonIcon = () => (\n\t<svg\n\t\twidth=\"15px\"\n\t\theight=\"15px\"\n\t\tviewBox=\"2 1 13 13\"\n\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\txmlnsXlink=\"http://www.w3.org/1999/xlink\"\n\t>\n\t\t<title>Linker</title>\n\t\t<defs>\n\t\t\t<path\n\t\t\t\tid=\"prefix__b\"\n\t\t\t\td=\"M17.925 15.425h-1v-2.5a2.5 2.5 0 0 0-5 0v2.5h-1v-2.5a3.5 3.5 0 1 1 7 0v2.5zm0 2v2.5a3.5 3.5 0 1 1-7 0v-2.5h1v2.5a2.5 2.5 0 0 0 5 0v-2.5h1zm-3.5-4a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0v-5a.5.5 0 0 1 .5-.5z\"\n\t\t\t/>\n\t\t\t<filter id=\"prefix__a\" x=\"-28.6%\" y=\"-7.1%\" width=\"157.1%\" height=\"128.6%\">\n\t\t\t\t<feOffset dy=\"1\" in=\"SourceAlpha\" result=\"shadowOffsetOuter1\" />\n\t\t\t\t<feGaussianBlur in=\"shadowOffsetOuter1\" result=\"shadowBlurOuter1\" stdDeviation=\".5\" />\n\t\t\t\t<feColorMatrix in=\"shadowBlurOuter1\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0\" />\n\t\t\t</filter>\n\t\t</defs>\n\t\t<g transform=\"rotate(45 22.289 4.682)\" fillRule=\"nonzero\" fill=\"none\">\n\t\t\t<use filter=\"url(#prefix__a)\" xlinkHref=\"#prefix__b\" />\n\t\t\t<use xlinkHref=\"#prefix__b\" />\n\t\t</g>\n\t</svg>\n);\n\nconst LinkerButtonRedux: React.FunctionComponent = () => {\n\tconst dispatch = useDispatch();\n\tconst state: LinkerStore = useSelector((currentState: any) => currentState);\n\tconst buttonRef = useRef(null);\n\n\tconst showLinkerWindow = () => {\n\t\t// These action creators can now be imported from finsemble-api\n\t\tdispatch(\n\t\t\tactions.setActiveWindow({\n\t\t\t\ttype: \"linker/setActiveWindow\",\n\t\t\t\tpayload: {\n\t\t\t\t\twindowName: finsembleWindow.name,\n\t\t\t\t},\n\t\t\t})\n\t\t);\n\n\t\t// The offset parent is needed so that the menu isn't shown relative to the icon.\n\t\t// The HTMLElement.offsetParent read-only property returns a reference to the object which is the closest (nearest in the containment hierarchy) positioned containing element.\n\t\t// Necessary to cast because refs are type \"Element\" (which could be an SVGElement...)\n\n\t\tconst linkerButton = buttonRef.current;\n\t\tif (linkerButton) {\n\t\t\tconst linkerButtonDiv = linkerButton as HTMLElement;\n\t\t\tconst linkerParent = (linkerButtonDiv.offsetParent ?? linkerButtonDiv.parentElement) as HTMLElement;\n\n\t\t\tconst params: ShowWindowParams = {\n\t\t\t\tposition: \"relative\",\n\t\t\t\tleft: linkerParent?.offsetLeft ?? 0,\n\t\t\t\ttop: linkerParent?.offsetHeight ?? 0,\n\t\t\t\tforceOntoMonitor: true,\n\t\t\t\tspawnIfNotFound: false,\n\t\t\t};\n\t\t\tconst wi = {\n\t\t\t\tcomponentType: \"linkerWindow\",\n\t\t\t};\n\t\t\tFSBL.Clients.LauncherClient.toggleWindowOnClick(linkerButtonDiv, wi, params);\n\t\t}\n\t};\n\n\t// If this window is in the list of linker clients then display this button\n\tconst displayMe = state.clients[finsembleWindow.name] !== undefined;\n\n\t// Add keyboard shortcut to launch the Linker Menu\n\t// Using `addBrowserHotkey` so that the linker menu is only launched when the user is focused on the titlebar\n\t// If we had used `addGlobalHotkey`, it would cause a lot of intermittent errors (linker menu would think it\n\t// was launched from the Notifications Center component for some reason, and would display incorrect channel\n\t// information, or float the linker menu in the wrong location. Lots of flakiness.)\n\tFSBL.Clients.HotkeyClient.addBrowserHotkey([\"CommandOrControl\", \"l\"], showLinkerWindow);\n\n\treturn (\n\t\t<>\n\t\t\t{displayMe && (\n\t\t\t\t<div ref={buttonRef} title=\"Link Data\" className=\"linkerSection\">\n\t\t\t\t\t<div className=\"fsbl-icon fsbl-linker\" onClick={showLinkerWindow}>\n\t\t\t\t\t\t<LinkerButtonIcon />\n\t\t\t\t\t</div>\n\t\t\t\t\t<LinkerGroups />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\n/**\n * Picks whether to display the current or deprecated LinkerElement.\n * If config `finsemble.servicesConfig.linker.enabled` is set to true then the deprecated version will be used.\n *\n * This code should be removed once the linkerClient is removed from Finsemble.\n */\nconst WhichLinker = () => {\n\tconst [whichLinker, setWhichLinker] = React.useState(\"\");\n\n\tuseEffect(() => {\n\t\t(async () => {\n\t\t\tconst { data } = await FSBL.Clients.ConfigClient.getValue({\n\t\t\t\tfield: \"finsemble.servicesConfig.linker.enabled\",\n\t\t\t});\n\t\t\tif (data) {\n\t\t\t\tsetWhichLinker(\"LinkerElementDeprecated\");\n\t\t\t} else {\n\t\t\t\tsetWhichLinker(\"LinkerElement\");\n\t\t\t}\n\t\t})();\n\t}, []);\n\n\treturn (\n\t\t<>\n\t\t\t{whichLinker === \"LinkerElement\" && (\n\t\t\t\t<Provider store={store}>\n\t\t\t\t\t<LinkerButtonRedux />\n\t\t\t\t</Provider>\n\t\t\t)}\n\t\t\t{whichLinker === \"LinkerElementDeprecated\" && <LinkerButtonDeprecated />}\n\t\t</>\n\t);\n};\n\nexport const LinkerButton: React.FunctionComponent = () => <WhichLinker />;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupingButton.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/right/GroupingButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtF,IAAI,mBAA+B,CAAC;AASpC,MAAM,OAAO,cAAe,SAAQ,KAAK,CAAC,SAAyB;IAGlE,YAAY,KAAa;QACxB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAIzB,mBAAmB,GAAG,QAAQ,EAAE,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG;YACZ,kBAAkB,EAAE,KAAK;YACzB,WAAW,EAAE,mBAAmB,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC;YACxE,UAAU,EAAE,OAAO;SACnB,CAAC;IACH,CAAC;IAMD,iBAAiB;QAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IAMD,yBAAyB;QACxB,mBAAmB,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IACrF,CAAC;IAMD,o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CAAC;;AAvGM,0BAAW,GAAG,qBAAqB,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport * as React from \"react\";\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\nimport { WindowTitleBarContext } from \"../../windowTitleBarContext\";\nimport { getStore, Actions as HeaderActions } from \"../../stores/windowTitleBarStore\";\nimport StoreModel from \"@finsemble/finsemble-
|
|
1
|
+
{"version":3,"file":"GroupingButton.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/right/GroupingButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtF,IAAI,mBAA+B,CAAC;AASpC,MAAM,OAAO,cAAe,SAAQ,KAAK,CAAC,SAAyB;IAGlE,YAAY,KAAa;QACxB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAIzB,mBAAmB,GAAG,QAAQ,EAAE,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG;YACZ,kBAAkB,EAAE,KAAK;YACzB,WAAW,EAAE,mBAAmB,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC;YACxE,UAAU,EAAE,OAAO;SACnB,CAAC;IACH,CAAC;IAMD,iBAAiB;QAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,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C,OAAO,EAAE,IAAI,CAAC,OAAO;YAErB,oBAAC,sBAAsB,IAAC,IAAI,EAAC,KAAK,EAAC,WAAW,EAAE,IAAI,CAAC,WAAW,GAAI;YACpE,2BAAG,SAAS,EAAE,SAAS,GAAM,CACxB,CACN,CACC,CACH,CAAC;IACH,CAAC;;AAvGM,0BAAW,GAAG,qBAAqB,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport * as React from \"react\";\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\nimport { WindowTitleBarContext } from \"../../windowTitleBarContext\";\nimport { getStore, Actions as HeaderActions } from \"../../stores/windowTitleBarStore\";\nimport StoreModel from \"@finsemble/finsemble-api/types/clients/StoreModel\";\nlet windowTitleBarStore: StoreModel;\n\ninterface IProps {}\ninterface IState {\n\tshowDockingTooltip: boolean;\n\tdockingIcon: string | false;\n\thoverState: string;\n}\n\nexport class GroupingButton extends React.Component<IProps, IState> {\n\tstatic contextType = WindowTitleBarContext;\n\n\tconstructor(props: IProps) {\n\t\tsuper(props);\n\t\tthis.bindEventHandlers();\n\t\t/**\n\t\t * We assign in the constructor instead of via a require at the top of the file because the store is initialized asynchronously.\n\t\t */\n\t\twindowTitleBarStore = getStore();\n\t\tthis.state = {\n\t\t\tshowDockingTooltip: false,\n\t\t\tdockingIcon: windowTitleBarStore.getValue({ field: \"Main.dockingIcon\" }),\n\t\t\thoverState: \"false\",\n\t\t};\n\t}\n\n\t/**\n\t * This is necessary to make sure that the `this` inside of the callback is correct.\n\t *\n\t */\n\tbindEventHandlers() {\n\t\tthis.onClick = this.onClick.bind(this);\n\t\tthis.onStoreChanged = this.onStoreChanged.bind(this);\n\t\tthis.hoverAction = this.hoverAction.bind(this);\n\t}\n\n\t/**\n\t * Add listeners to the store.\n\t *\n\t */\n\tUNSAFE_componentWillMount() {\n\t\twindowTitleBarStore.addListener({ field: \"Main.dockingIcon\" }, this.onStoreChanged);\n\t}\n\n\t/**\n\t * Remove listeners from the store.\n\t *\n\t */\n\tcomponentWillUnmount() {\n\t\twindowTitleBarStore.removeListener({ field: \"Main.dockingIcon\" }, this.onStoreChanged);\n\t}\n\n\t/**\n\t * Invoked when the store emits a change event. The icon will change. If we're grouped, we show the button that denotes group membership. If we're just snapped, we show the button that will group attached windows.\n\t *\n\t * @param {any} err\n\t * @param {any} response\n\t */\n\tonStoreChanged(err: any, response: any) {\n\t\tthis.setState({ dockingIcon: response.value });\n\t}\n\n\t/**\n\t * When your mouse enters/leaves the hoverDetector, this function is invoked.\n\t *\n\t * @param {any} newHoverState\n\t * @memberof LinkerButton\n\t */\n\thoverAction(newHoverState: string) {\n\t\tthis.setState({ hoverState: newHoverState });\n\t}\n\n\t/**\n\t * Invoked when the user clicks the docking button.\n\t *\n\t */\n\n\tonClick() {\n\t\tHeaderActions.toggleGroup();\n\t}\n\n\t/**\n\t * Render method\n\t *\n\t * @returns\n\t */\n\trender() {\n\t\tlet iconClass = \"ff-\";\n\t\tlet wrapClasses = \"fsbl-icon fsbl-icon-bordered docking-control\";\n\n\t\ticonClass = iconClass + (this.state.dockingIcon === \"ejector\" ? \"attached\" : \"detached\");\n\t\tlet toolTip = this.state.dockingIcon === \"ejector\" ? \"Detach Window\" : \"Attach Windows\";\n\n\t\tif (iconClass === \"ff-attached\") {\n\t\t\twrapClasses = `${wrapClasses} fsbl-icon-highlighted`;\n\t\t}\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{this.context.showDockingButton && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={wrapClasses}\n\t\t\t\t\t\tid=\"fsbl-window-ejector\"\n\t\t\t\t\t\ttitle={toolTip}\n\t\t\t\t\t\tdata-hover={this.state.hoverState}\n\t\t\t\t\t\tonClick={this.onClick}\n\t\t\t\t\t>\n\t\t\t\t\t\t<FinsembleHoverDetector edge=\"top\" hoverAction={this.hoverAction} />\n\t\t\t\t\t\t<i className={iconClass}></i>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</>\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaximizeButton.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/right/MaximizeButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAKtF,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACtB,iDAAU,CAAA;IACV,6EAAwB,CAAA;IACxB,uDAAa,CAAA;IACb,mFAA2B,CAAA;IAC3B,+DAAiB,CAAA;AAClB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AACD,IAAI,mBAA+B,CAAC;AAWpC,MAAM,OAAO,cAAe,SAAQ,KAAK,CAAC,SAAyB;IAGlE,YAAY,KAAa;QACxB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAI1B,mBAAmB,GAAG,QAAQ,EAAE,CAAC;QAEjC,MAAM,WAAW,GAAG,eAAe,CAAC,aAAa,CAAC,WAAW,KAAK,WAAW,CAAC,SAAS,CAAC;QACxF,mBAAmB,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC;QAClF,IAAI,CAAC,KAAK,GAAG;YACZ,SAAS,EAAE,WAAW;YACtB,UAAU,EAAE,OAAO;SACnB,CAAC;IACH,CAAC;IAOD,kBAAkB;QACjB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC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AC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;QAExG,OAAO,CACN,0CACE,IAAI,CAAC,OAAO,CAAC,kBAAkB,IAAI,CACnC,6BACC,SAAS,EAAE,WAAW,EACtB,EAAE,EAAC,qBAAqB,EACxB,KAAK,EAAE,OAAO,gBACF,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,OAAO,EAAE,IAAI,CAAC,OAAO;YAErB,oBAAC,sBAAsB,IAAC,IAAI,EAAC,KAAK,EAAC,WAAW,EAAE,IAAI,CAAC,WAAW,GAAI;YACpE,2BAAG,SAAS,EAAE,WAAW,GAAM,CAC1B,CACN,CACC,CACH,CAAC;IACH,CAAC;;AAjHM,0BAAW,GAAG,qBAAqB,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport * as React from \"react\";\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\nimport { WindowTitleBarContext } from \"../../windowTitleBarContext\";\nimport { getStore, Actions as HeaderActions } from \"../../stores/windowTitleBarStore\";\nimport StoreModel from \"@finsemble/finsemble-
|
|
1
|
+
{"version":3,"file":"MaximizeButton.js","sourceRoot":"","sources":["../../../../../src/components/windowTitleBar/components/right/MaximizeButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAKtF,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACtB,iDAAU,CAAA;IACV,6EAAwB,CAAA;IACxB,uDAAa,CAAA;IACb,mFAA2B,CAAA;IAC3B,+DAAiB,CAAA;AAClB,CAAC,EANW,WAAW,KAAX,WA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C,UAAU,CAAC,CAAC;IAC3D,CAAC;IAOD,oBAAoB;QACnB,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAC/D,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9D,CAAC;IAQD,WAAW,CAAC,aAAqB;QAChC,IAAI,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAAC;IAC9C,CAAC;IAQD,MAAM;QACL,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;QAG9D,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC;QAExE,MAAM,WAAW,GAAG,2BAA2B,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;QAExG,OAAO,CACN,0CACE,IAAI,CAAC,OAAO,CAAC,kBAAkB,IAAI,CACnC,6BACC,SAAS,EAAE,WAAW,EACtB,EAAE,EAAC,qBAAqB,EACxB,KAAK,EAAE,OAAO,gBACF,IAAI,CAAC,KAAK,CAAC,UAAU,EACjC,OAAO,EAAE,IAAI,CAAC,OAAO;YAErB,oBAAC,sBAAsB,IAAC,IAAI,EAAC,KAAK,EAAC,WAAW,EAAE,IAAI,CAAC,WAAW,GAAI;YACpE,2BAAG,SAAS,EAAE,WAAW,GAAM,CAC1B,CACN,CACC,CACH,CAAC;IACH,CAAC;;AAjHM,0BAAW,GAAG,qBAAqB,CAAC","sourcesContent":["/*!\n * Copyright 2017 by ChartIQ, Inc.\n * All rights reserved.\n */\nimport * as React from \"react\";\nimport { FinsembleHoverDetector } from \"../../../legacyControls/FinsembleHoverDetector\";\nimport { WindowTitleBarContext } from \"../../windowTitleBarContext\";\nimport { getStore, Actions as HeaderActions } from \"../../stores/windowTitleBarStore\";\nimport StoreModel from \"@finsemble/finsemble-api/types/clients/StoreModel\";\n// Re-enable this import once load time for finsemble-core has been eliminated (e.g. tree shaking)\n//import { constants } from \"@finsemble/finsemble-api/\";\n//const { WINDOWSTATE } = constants;\nexport enum WINDOWSTATE {\n\tNORMAL = 0,\n\tMINIMIZED_WAS_NORMAL = 1,\n\tMAXIMIZED = 2,\n\tMINIMIZED_WAS_MAXIMIZED = 3,\n\tTRANSITIONING = 4,\n}\nlet windowTitleBarStore: StoreModel;\n\ninterface IProps {}\ninterface IState {\n\tmaximized: boolean;\n\thoverState: string;\n}\n\n/**\n * Maximize button. This button is hidden when the window is maximized. In its place is the restore button.\n */\nexport class MaximizeButton extends React.Component<IProps, IState> {\n\tstatic contextType = WindowTitleBarContext;\n\n\tconstructor(props: IProps) {\n\t\tsuper(props);\n\t\tthis.bindCorrectContext();\n\t\t/**\n\t\t * We assign in the constructor instead of via a require at the top of the file because the store is initialized asynchronously.\n\t\t */\n\t\twindowTitleBarStore = getStore();\n\n\t\tconst isMaximized = finsembleWindow.windowOptions.windowState === WINDOWSTATE.MAXIMIZED;\n\t\twindowTitleBarStore.setValue({ field: \"Maximize.maximized\", value: isMaximized });\n\t\tthis.state = {\n\t\t\tmaximized: isMaximized,\n\t\t\thoverState: \"false\",\n\t\t};\n\t}\n\n\t/**\n\t * This is necessary to make sure that the `this` inside of the callback is correct.\n\t *\n\t * @memberof MaximizeButton\n\t */\n\tbindCorrectContext() {\n\t\tthis.onMaximized = this.onMaximized.bind(this);\n\t\tthis.onRestored = this.onRestored.bind(this);\n\t\tthis.hoverAction = this.hoverAction.bind(this);\n\t}\n\n\t/**\n\t * When the state changes, this listener is invoked. There are two states: Not maximized, and maximized. When the window is maximized, the button changes to an icon that denotes \"Restore to previous size.\"\n\t *\n\t * @param {any} err\n\t * @param {any} response\n\t * @memberof MaximizeButton\n\t */\n\tonRestored() {\n\t\tthis.setState({ maximized: false });\n\t}\n\n\tonMaximized() {\n\t\tthis.setState({ maximized: true });\n\t}\n\n\t/**\n\t * Invoked when the user clicks the button.\n\t *\n\t * @memberof MaximizeButton\n\t */\n\tonClick() {\n\t\tHeaderActions.clickMaximize();\n\t}\n\n\t/**\n\t * Add listeners to the store.\n\t *\n\t * @memberof MaximizeButton\n\t */\n\tUNSAFE_componentWillMount() {\n\t\tfinsembleWindow?.addListener(\"maximized\", this.onMaximized);\n\t\tfinsembleWindow?.addListener(\"restored\", this.onRestored);\n\t}\n\n\t/**\n\t * Remove listeners from the store.\n\t *\n\t * @memberof MaximizeButton\n\t */\n\tcomponentWillUnmount() {\n\t\tfinsembleWindow?.removeListener(\"maximized\", this.onMaximized);\n\t\tfinsembleWindow?.removeListener(\"restored\", this.onRestored);\n\t}\n\n\t/**\n\t * When your mouse enters/leaves the hoverDetector, this function is invoked.\n\t *\n\t * @param {any} newHoverState\n\t * @memberof LinkerButton\n\t */\n\thoverAction(newHoverState: string) {\n\t\tthis.setState({ hoverState: newHoverState });\n\t}\n\n\t/**\n\t * Render method.\n\t *\n\t * @returns\n\t * @memberof MaximizeButton\n\t */\n\trender() {\n\t\tconst tooltip = this.state.maximized ? \"Restore\" : \"Maximize\";\n\n\t\t// Classes for the maximize button.\n\t\tconst iconClasses = this.state.maximized ? \"ff-restore\" : \"ff-maximize\";\n\t\t// Classes for the wrap\n\t\tconst wrapClasses = `fsbl-icon fsbl-maximize ${this.state.maximized ? \"window-restore\" : \"window-max\"}`;\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{this.context.showMaximizeButton && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={wrapClasses}\n\t\t\t\t\t\tid=\"fsbl-window-restore\"\n\t\t\t\t\t\ttitle={tooltip}\n\t\t\t\t\t\tdata-hover={this.state.hoverState}\n\t\t\t\t\t\tonClick={this.onClick}\n\t\t\t\t\t>\n\t\t\t\t\t\t<FinsembleHoverDetector edge=\"top\" hoverAction={this.hoverAction} />\n\t\t\t\t\t\t<i className={iconClasses}></i>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</>\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { WindowIdentifier } from "@finsemble/finsemble-
|
|
1
|
+
import { WindowIdentifier } from "@finsemble/finsemble-api";
|
|
2
|
+
import { ListenerFunction } from "@finsemble/finsemble-api/types/clients/StoreModel";
|
|
2
3
|
import { Component } from "react";
|
|
3
4
|
declare type TitleProps = {
|
|
4
5
|
windowIdentifier: WindowIdentifier;
|
|
@@ -12,7 +13,9 @@ declare type TitleState = {
|
|
|
12
13
|
windowName?: string;
|
|
13
14
|
};
|
|
14
15
|
export declare class Title extends Component<TitleProps, TitleState> {
|
|
15
|
-
|
|
16
|
+
#private;
|
|
17
|
+
tabTitleChangedStoreListener: ListenerFunction;
|
|
18
|
+
_mounted: boolean;
|
|
16
19
|
constructor(props: TitleProps);
|
|
17
20
|
updateTitle(): Promise<void>;
|
|
18
21
|
componentDidMount(): void;
|
|
@@ -1,55 +1,47 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
+
};
|
|
6
|
+
var _Title_instances, _Title_setWindowTitle, _Title_setTabTitle, _Title_addListeners, _Title_removeListeners;
|
|
1
7
|
import React, { Component } from "react";
|
|
2
8
|
import { Icon } from "../../icon/Icon";
|
|
3
|
-
import { iconFromConfig } from "../../icon/Icon";
|
|
4
9
|
import { Store } from "../stores/windowTitleBarStore";
|
|
5
10
|
const WINDOW_TAB_TITLE_STORE = "window-tab-title";
|
|
6
11
|
const FIELD_NAME_PERSISTED_TITLE = "persistedTitle";
|
|
7
|
-
const getWindowTabNameStore =
|
|
8
|
-
FSBL.Clients.DistributedStoreClient.createGlobalStore({ store: WINDOW_TAB_TITLE_STORE }
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
resolve(store);
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
const getCorrespondingFinsembleWindow = async (windowIdentifier) => (await FSBL.FinsembleWindow.getInstance(windowIdentifier)).wrap;
|
|
12
|
+
const getWindowTabNameStore = async () => {
|
|
13
|
+
let { data: store } = await FSBL.Clients.DistributedStoreClient.createGlobalStore({ store: WINDOW_TAB_TITLE_STORE });
|
|
14
|
+
return store;
|
|
15
|
+
};
|
|
18
16
|
function EditTab(props) {
|
|
19
17
|
const [editingTitle, setEditingTitle] = React.useState(false);
|
|
20
18
|
const [clickTimeout, setClickTimeout] = React.useState(undefined);
|
|
21
19
|
const inputEl = React.useRef(null);
|
|
22
|
-
const updateTabTitle = (e) => {
|
|
20
|
+
const updateTabTitle = async (e) => {
|
|
23
21
|
const title = e.target.value;
|
|
24
|
-
getWindowTabNameStore()
|
|
25
|
-
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
resolve(res);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}))
|
|
38
|
-
.catch((err) => FSBL.Clients.Logger.error("Error persisting tab title via EditTab", err))
|
|
39
|
-
.finally(() => setEditingTitle(false));
|
|
22
|
+
let store = await getWindowTabNameStore();
|
|
23
|
+
if (!store) {
|
|
24
|
+
FSBL.Clients.Logger.warn("Error persisting tab title via EditTab: the store was not found");
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
store.setValue({ field: props.windowIdentifier.windowName, value: title });
|
|
28
|
+
const { wrap: win } = await FSBL.FinsembleWindow.getInstance(props.windowIdentifier);
|
|
29
|
+
FSBL.Clients.Logger.debug(`Setting component state "${FIELD_NAME_PERSISTED_TITLE}" with value "${title}"`);
|
|
30
|
+
await win.setComponentState({ field: FIELD_NAME_PERSISTED_TITLE, value: title });
|
|
31
|
+
setEditingTitle(false);
|
|
40
32
|
};
|
|
41
33
|
const beginEditing = async () => {
|
|
42
34
|
var _a, _b;
|
|
43
35
|
await setEditingTitle(true);
|
|
44
|
-
|
|
36
|
+
(_a = inputEl === null || inputEl === void 0 ? void 0 : inputEl.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
45
37
|
if (inputEl === null || inputEl === void 0 ? void 0 : inputEl.current) {
|
|
46
38
|
inputEl.current.value = (_b = props.title) !== null && _b !== void 0 ? _b : "";
|
|
47
39
|
}
|
|
48
40
|
};
|
|
49
41
|
const clickHandler = () => {
|
|
50
|
-
const
|
|
42
|
+
const allowWindowTitleRenaming = Store.getValue("allowWindowTitleRenaming");
|
|
51
43
|
if (clickTimeout) {
|
|
52
|
-
if (
|
|
44
|
+
if (allowWindowTitleRenaming) {
|
|
53
45
|
beginEditing();
|
|
54
46
|
}
|
|
55
47
|
}
|
|
@@ -80,71 +72,37 @@ export class Title extends Component {
|
|
|
80
72
|
constructor(props) {
|
|
81
73
|
var _a, _b;
|
|
82
74
|
super(props);
|
|
75
|
+
_Title_instances.add(this);
|
|
76
|
+
this.tabTitleChangedStoreListener = (err, response) => {
|
|
77
|
+
if (!!err) {
|
|
78
|
+
FSBL.Clients.Logger.warn(`Listener error for store "${WINDOW_TAB_TITLE_STORE}" for field "${this.props.windowIdentifier.windowName}"`, err);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
FSBL.Clients.Logger.debug(`Store "${WINDOW_TAB_TITLE_STORE}" notified of new title "${response.value}" for window "${response.field}"`);
|
|
82
|
+
this.updateTitle();
|
|
83
|
+
};
|
|
84
|
+
this._mounted = false;
|
|
83
85
|
this.state = {
|
|
84
86
|
title: ((_a = props.windowIdentifier) === null || _a === void 0 ? void 0 : _a.windowName) || document.title,
|
|
85
87
|
icon: null,
|
|
86
88
|
windowName: (_b = props.windowIdentifier) === null || _b === void 0 ? void 0 : _b.windowName,
|
|
87
89
|
};
|
|
88
90
|
this.updateTitle = this.updateTitle.bind(this);
|
|
89
|
-
this.updateTitle();
|
|
90
91
|
}
|
|
91
92
|
async updateTitle() {
|
|
92
|
-
|
|
93
|
-
if (!
|
|
93
|
+
const store = await getWindowTabNameStore();
|
|
94
|
+
if (!store) {
|
|
95
|
+
FSBL.Clients.Logger.warn("Error setting the tab title: the store was not found");
|
|
94
96
|
return;
|
|
95
97
|
}
|
|
96
|
-
|
|
97
|
-
store.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
FSBL.Clients.Logger.error(`Error getting the tab name from the store "${WINDOW_TAB_TITLE_STORE}" for the window "${this.props.windowIdentifier.windowName}"`, err);
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
const tabWindow = await getCorrespondingFinsembleWindow(this.props.windowIdentifier);
|
|
104
|
-
const { data } = await tabWindow.getOptions();
|
|
105
|
-
let title = res;
|
|
106
|
-
if (!title) {
|
|
107
|
-
FSBL.Clients.Logger.debug(`No stored tab tile for "${this.props.windowIdentifier.windowName}"; falling back to code-based derivation`);
|
|
108
|
-
const { options } = FSBL.Clients.WindowClient;
|
|
109
|
-
const windowTitleBarConfig = (_b = (_a = options === null || options === void 0 ? void 0 : options.customData) === null || _a === void 0 ? void 0 : _a.foreign) === null || _b === void 0 ? void 0 : _b.components["Window Manager"];
|
|
110
|
-
const displayName = ((_f = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.customData) === null || _c === void 0 ? void 0 : _c.appDConfig) === null || _d === void 0 ? void 0 : _d.manifest) === null || _e === void 0 ? void 0 : _e.component) === null || _f === void 0 ? void 0 : _f.displayName) ||
|
|
111
|
-
((_h = (_g = data === null || data === void 0 ? void 0 : data.customData) === null || _g === void 0 ? void 0 : _g.component) === null || _h === void 0 ? void 0 : _h.displayName);
|
|
112
|
-
title = displayName || FSBL.Clients.WindowClient.title || (windowTitleBarConfig === null || windowTitleBarConfig === void 0 ? void 0 : windowTitleBarConfig.title) || tabWindow.name || "";
|
|
113
|
-
}
|
|
114
|
-
const icon = iconFromConfig((_l = (_k = (_j = data === null || data === void 0 ? void 0 : data.customData) === null || _j === void 0 ? void 0 : _j.foreign) === null || _k === void 0 ? void 0 : _k.components) === null || _l === void 0 ? void 0 : _l.Toolbar, title);
|
|
115
|
-
tabWindow.getComponentState({ field: FIELD_NAME_PERSISTED_TITLE }, (error, persistedTitle) => {
|
|
116
|
-
if (persistedTitle) {
|
|
117
|
-
title = persistedTitle;
|
|
118
|
-
}
|
|
119
|
-
FSBL.Clients.Logger.debug(`Setting tab title ${title} for window ${this.props.windowIdentifier.windowName}`);
|
|
120
|
-
this.setState({
|
|
121
|
-
title: title,
|
|
122
|
-
icon: icon,
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
});
|
|
98
|
+
const { data: windowTitle } = await store.getGlobalValue(finsembleWindow.thisWindowName);
|
|
99
|
+
const { data: tabTitle } = await store.getGlobalValue(this.props.windowIdentifier.windowName);
|
|
100
|
+
__classPrivateFieldGet(this, _Title_instances, "m", _Title_setTabTitle).call(this, tabTitle);
|
|
101
|
+
__classPrivateFieldGet(this, _Title_instances, "m", _Title_setWindowTitle).call(this, windowTitle);
|
|
126
102
|
}
|
|
127
103
|
componentDidMount() {
|
|
128
|
-
this.
|
|
129
|
-
|
|
130
|
-
getWindowTabNameStore().then((store) => {
|
|
131
|
-
this.tabTitleChangedStoreSubscription = (err, res) => {
|
|
132
|
-
if (!!err) {
|
|
133
|
-
FSBL.Clients.Logger.warn(`Listener error for store "${WINDOW_TAB_TITLE_STORE}" for field "${this.props.windowIdentifier.windowName}"`, err);
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
FSBL.Clients.Logger.debug(`Store "${WINDOW_TAB_TITLE_STORE}" notified of new title "${res.name}" for window "${res.field}"`);
|
|
137
|
-
this.updateTitle();
|
|
138
|
-
};
|
|
139
|
-
store.addListener({ field: this.props.windowIdentifier.windowName }, this.tabTitleChangedStoreSubscription, (subErr, subRes) => {
|
|
140
|
-
if (!!subErr) {
|
|
141
|
-
FSBL.Clients.Logger.warn(`Could not add listener to store "${WINDOW_TAB_TITLE_STORE}" for field "${this.props.windowIdentifier.windowName}"`, subErr);
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
FSBL.Clients.Logger.debug(`Added listener to store "${WINDOW_TAB_TITLE_STORE}" for field "${this.props.windowIdentifier.windowName}"`);
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
}
|
|
104
|
+
this._mounted = true;
|
|
105
|
+
__classPrivateFieldGet(this, _Title_instances, "m", _Title_addListeners).call(this);
|
|
148
106
|
}
|
|
149
107
|
componentDidUpdate() {
|
|
150
108
|
if (typeof this.props.onUpdate === "function") {
|
|
@@ -152,15 +110,8 @@ export class Title extends Component {
|
|
|
152
110
|
}
|
|
153
111
|
}
|
|
154
112
|
componentWillUnmount() {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
if (!!subErr) {
|
|
158
|
-
FSBL.Clients.Logger.warn(`Could not remove listener from store "${WINDOW_TAB_TITLE_STORE}" for field "${this.props.windowIdentifier.windowName}"`, subErr);
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
FSBL.Clients.Logger.debug(`Removed listener to store "${WINDOW_TAB_TITLE_STORE}" for field "${this.props.windowIdentifier.windowName}"`);
|
|
162
|
-
});
|
|
163
|
-
});
|
|
113
|
+
this._mounted = false;
|
|
114
|
+
__classPrivateFieldGet(this, _Title_instances, "m", _Title_removeListeners).call(this);
|
|
164
115
|
}
|
|
165
116
|
render() {
|
|
166
117
|
var _a;
|
|
@@ -172,4 +123,58 @@ export class Title extends Component {
|
|
|
172
123
|
React.createElement("div", { className: "title-text" }, this.state.title))));
|
|
173
124
|
}
|
|
174
125
|
}
|
|
126
|
+
_Title_instances = new WeakSet(), _Title_setWindowTitle = function _Title_setWindowTitle(title) {
|
|
127
|
+
document.title = title;
|
|
128
|
+
}, _Title_setTabTitle = async function _Title_setTabTitle(title) {
|
|
129
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
130
|
+
const { wrap: tabWindow } = await FSBL.FinsembleWindow.getInstance(this.props.windowIdentifier);
|
|
131
|
+
const { data: tabWindowOptions } = await tabWindow.getOptions();
|
|
132
|
+
if (!title) {
|
|
133
|
+
FSBL.Clients.Logger.debug(`No stored tab tile for "${this.props.windowIdentifier.windowName}"; falling back to code-based derivation`);
|
|
134
|
+
const { options: windowClientOptions } = FSBL.Clients.WindowClient;
|
|
135
|
+
const windowTitleBarConfig = (_b = (_a = windowClientOptions === null || windowClientOptions === void 0 ? void 0 : windowClientOptions.customData) === null || _a === void 0 ? void 0 : _a.foreign) === null || _b === void 0 ? void 0 : _b.components["Window Manager"];
|
|
136
|
+
const displayName = ((_f = (_e = (_d = (_c = tabWindowOptions === null || tabWindowOptions === void 0 ? void 0 : tabWindowOptions.customData) === null || _c === void 0 ? void 0 : _c.appDConfig) === null || _d === void 0 ? void 0 : _d.manifest) === null || _e === void 0 ? void 0 : _e.component) === null || _f === void 0 ? void 0 : _f.displayName) ||
|
|
137
|
+
((_h = (_g = tabWindowOptions === null || tabWindowOptions === void 0 ? void 0 : tabWindowOptions.customData) === null || _g === void 0 ? void 0 : _g.component) === null || _h === void 0 ? void 0 : _h.displayName);
|
|
138
|
+
title = displayName || FSBL.Clients.WindowClient.title || (windowTitleBarConfig === null || windowTitleBarConfig === void 0 ? void 0 : windowTitleBarConfig.title) || tabWindow.name || "";
|
|
139
|
+
}
|
|
140
|
+
const icon = (_l = (_k = (_j = tabWindowOptions) === null || _j === void 0 ? void 0 : _j.icons) === null || _k === void 0 ? void 0 : _k.titleBarIcon) !== null && _l !== void 0 ? _l : {
|
|
141
|
+
imageType: "initials",
|
|
142
|
+
name: title,
|
|
143
|
+
};
|
|
144
|
+
tabWindow.getComponentState({ field: FIELD_NAME_PERSISTED_TITLE }, (error, persistedTitle) => {
|
|
145
|
+
if (!this._mounted) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (persistedTitle) {
|
|
149
|
+
title = persistedTitle;
|
|
150
|
+
}
|
|
151
|
+
FSBL.Clients.Logger.debug(`Setting tab title ${title} for window ${this.props.windowIdentifier.windowName}`);
|
|
152
|
+
this.setState({
|
|
153
|
+
title,
|
|
154
|
+
icon: Object.assign(Object.assign({}, icon), { category: "Application" }),
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
}, _Title_addListeners = async function _Title_addListeners() {
|
|
158
|
+
const store = await getWindowTabNameStore();
|
|
159
|
+
if (!store) {
|
|
160
|
+
FSBL.Clients.Logger.warn("Error adding a tab title listener: the store was not found");
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
store.addListener({ field: this.props.windowIdentifier.windowName }, this.tabTitleChangedStoreListener, () => {
|
|
164
|
+
FSBL.Clients.Logger.debug(`Added listener to store "${WINDOW_TAB_TITLE_STORE}" for field "${this.props.windowIdentifier.windowName}"`);
|
|
165
|
+
});
|
|
166
|
+
}, _Title_removeListeners = async function _Title_removeListeners() {
|
|
167
|
+
const store = await getWindowTabNameStore();
|
|
168
|
+
if (!store) {
|
|
169
|
+
FSBL.Clients.Logger.warn("Error removing a tab title listener: the store was not found");
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
store.removeListener({ field: this.props.windowIdentifier.windowName }, this.tabTitleChangedStoreListener, (err, response) => {
|
|
173
|
+
if (!!err) {
|
|
174
|
+
FSBL.Clients.Logger.warn(`Could not remove listener from store "${WINDOW_TAB_TITLE_STORE}" for field "${this.props.windowIdentifier.windowName}"`, err);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
FSBL.Clients.Logger.debug(`Removed listener to store "${WINDOW_TAB_TITLE_STORE}" for field "${this.props.windowIdentifier.windowName}"`);
|
|
178
|
+
});
|
|
179
|
+
};
|
|
175
180
|
//# sourceMappingURL=windowTitle.js.map
|