synapse-react-client 4.0.25 → 4.0.27
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/dist/SWC.index.d.ts +3 -2
- package/dist/SWC.index.d.ts.map +1 -1
- package/dist/SWC.index.js +4 -3
- package/dist/SWC.index.js.map +1 -1
- package/dist/assets/icons/FileCopy.d.ts +5 -0
- package/dist/assets/icons/FileCopy.d.ts.map +1 -0
- package/dist/assets/icons/FileCopy.js +13 -0
- package/dist/assets/icons/FileCopy.js.map +1 -0
- package/dist/assets/icons/NIHIcon.d.ts +4 -0
- package/dist/assets/icons/NIHIcon.d.ts.map +1 -0
- package/dist/assets/icons/NIHIcon.js +14 -0
- package/dist/assets/icons/NIHIcon.js.map +1 -0
- package/dist/assets/icons/fileCopy.svg +8 -0
- package/dist/assets/icons/fileCopy2.js +33 -0
- package/dist/assets/icons/fileCopy2.js.map +1 -0
- package/dist/assets/icons/nih.js +35 -0
- package/dist/assets/icons/nih.js.map +1 -0
- package/dist/assets/icons/nih.svg +9 -0
- package/dist/assets/illustrations/compute_illustration.js +485 -0
- package/dist/assets/illustrations/compute_illustration.js.map +1 -0
- package/dist/assets/illustrations/compute_illustration.svg +204 -0
- package/dist/assets/illustrations/curate_data_illustration.js +479 -0
- package/dist/assets/illustrations/curate_data_illustration.js.map +1 -0
- package/dist/assets/illustrations/curate_data_illustration.svg +91 -0
- package/dist/components/AccountLevelBadges/useRevokeCertificationUI.js +1 -1
- package/dist/components/AcknowledgementsPage/AcknowledgementsDialog.js +1 -1
- package/dist/components/Authentication/AuthenticationMethodSelection.d.ts +1 -0
- package/dist/components/Authentication/AuthenticationMethodSelection.d.ts.map +1 -1
- package/dist/components/Authentication/AuthenticationMethodSelection.js +17 -10
- package/dist/components/Authentication/AuthenticationMethodSelection.js.map +1 -1
- package/dist/components/Authentication/LastLoginInfo.d.ts +2 -2
- package/dist/components/Authentication/LoginForm.d.ts +1 -0
- package/dist/components/Authentication/LoginForm.d.ts.map +1 -1
- package/dist/components/Authentication/LoginForm.js +3 -2
- package/dist/components/Authentication/LoginForm.js.map +1 -1
- package/dist/components/Authentication/LoginMethod.d.ts +2 -2
- package/dist/components/Authentication/LoginMethod.d.ts.map +1 -1
- package/dist/components/Authentication/LoginMethod.js +10 -8
- package/dist/components/Authentication/LoginMethod.js.map +1 -1
- package/dist/components/Authentication/StandaloneLoginForm.d.ts +1 -0
- package/dist/components/Authentication/StandaloneLoginForm.d.ts.map +1 -1
- package/dist/components/Authentication/StandaloneLoginForm.js +16 -15
- package/dist/components/Authentication/StandaloneLoginForm.js.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +24 -30
- package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/ChallengeDataDownload/ChallengeDataDownload.js +1 -1
- package/dist/components/ChallengeDetailPage/ChallengeDetailPage.js +1 -1
- package/dist/components/ChallengeSubmission/ChallengeSubmissionStepper.js +1 -1
- package/dist/components/ChangePassword/ChangePassword.js +1 -1
- package/dist/components/CopyToClipboardString/CopyToClipboardString.d.ts +3 -2
- package/dist/components/CopyToClipboardString/CopyToClipboardString.d.ts.map +1 -1
- package/dist/components/CopyToClipboardString/CopyToClipboardString.js +27 -18
- package/dist/components/CopyToClipboardString/CopyToClipboardString.js.map +1 -1
- package/dist/components/DataExplorer/DataExplorer.css +1 -1
- package/dist/components/DataExplorer/DataExplorer.d.ts +16 -2
- package/dist/components/DataExplorer/DataExplorer.d.ts.map +1 -1
- package/dist/components/DataExplorer/DataExplorer.js +82 -75
- package/dist/components/DataExplorer/DataExplorer.js.map +1 -1
- package/dist/components/DataExplorer/DataExplorer.module.js +16 -16
- package/dist/components/DataExplorer/DataExplorer.module.js.map +1 -1
- package/dist/components/DataExplorer/DataExplorer.module.scss +1 -1
- package/dist/components/DataGrid/SynapseGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.js +2 -5
- package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
- package/dist/components/DataGrid/SyncGridWithSourceButton.d.ts +35 -0
- package/dist/components/DataGrid/SyncGridWithSourceButton.d.ts.map +1 -0
- package/dist/components/DataGrid/SyncGridWithSourceButton.js +115 -0
- package/dist/components/DataGrid/SyncGridWithSourceButton.js.map +1 -0
- package/dist/components/DataGrid/components/ColumnHeaderWithTooltip.d.ts.map +1 -1
- package/dist/components/DataGrid/components/ColumnHeaderWithTooltip.js +14 -1
- package/dist/components/DataGrid/components/ColumnHeaderWithTooltip.js.map +1 -1
- package/dist/components/DataGrid/useMergeGridWithRecordSet.d.ts +2 -0
- package/dist/components/DataGrid/useMergeGridWithRecordSet.d.ts.map +1 -1
- package/dist/components/DataGrid/useMergeGridWithRecordSet.js.map +1 -1
- package/dist/components/DataGrid/useMergeGridWithSource.d.ts +12 -7
- package/dist/components/DataGrid/useMergeGridWithSource.d.ts.map +1 -1
- package/dist/components/DataGrid/useMergeGridWithSource.js +31 -25
- package/dist/components/DataGrid/useMergeGridWithSource.js.map +1 -1
- package/dist/components/DataGrid/utils/columnFactory.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/columnFactory.js +15 -19
- package/dist/components/DataGrid/utils/columnFactory.js.map +1 -1
- package/dist/components/DownloadCart/DownloadListTable.js +1 -1
- package/dist/components/DynamicForm/DynamicForm.js +1 -1
- package/dist/components/EntityAclEditor/EntityAclEditorModal.js +1 -1
- package/dist/components/EntityAclEditor/useNotifyNewACLUsers.js +1 -1
- package/dist/components/EntityDownloadButton/EntityDownloadButton.js +1 -1
- package/dist/components/EntityFinder/EntityIdTextField.d.ts +1 -0
- package/dist/components/EntityFinder/EntityIdTextField.d.ts.map +1 -1
- package/dist/components/EntityFinder/EntityIdTextField.js +7 -6
- package/dist/components/EntityFinder/EntityIdTextField.js.map +1 -1
- package/dist/components/EntityFinder/details/view/table/AddToDownloadListCell.js +1 -1
- package/dist/components/EntityFinder/details/view/table/FileEntityMD5Cell.js +1 -1
- package/dist/components/EntitySidebar/EntitySidebar.css +1 -1
- package/dist/components/EntitySidebar/EntitySidebar.d.ts.map +1 -1
- package/dist/components/EntitySidebar/EntitySidebar.js +47 -39
- package/dist/components/EntitySidebar/EntitySidebar.js.map +1 -1
- package/dist/components/EntitySidebar/EntitySidebar.module.js +11 -11
- package/dist/components/EntitySidebar/EntitySidebar.module.js.map +1 -1
- package/dist/components/EntitySidebar/EntitySidebar.module.scss +6 -6
- package/dist/components/FieldDescription/FieldDescription.css +1 -0
- package/dist/components/FieldDescription/FieldDescription.d.ts +15 -0
- package/dist/components/FieldDescription/FieldDescription.d.ts.map +1 -0
- package/dist/components/FieldDescription/FieldDescription.js +13 -0
- package/dist/components/FieldDescription/FieldDescription.js.map +1 -0
- package/dist/components/FieldDescription/FieldDescription.module.js +5 -0
- package/dist/components/FieldDescription/FieldDescription.module.js.map +1 -0
- package/dist/components/FieldDescription/FieldDescription.module.scss +8 -0
- package/dist/components/FieldDescription/index.d.ts +3 -0
- package/dist/components/FieldDescription/index.d.ts.map +1 -0
- package/dist/components/FieldDescription/index.js +2 -0
- package/dist/components/GenericCard/TableRowGenericCard.d.ts +2 -1
- package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.js +3 -2
- package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
- package/dist/components/HeaderCard.d.ts.map +1 -1
- package/dist/components/HeaderCard.js +4 -0
- package/dist/components/HeaderCard.js.map +1 -1
- package/dist/components/HexGrid/HexGrid.d.ts +2 -1
- package/dist/components/HexGrid/HexGrid.d.ts.map +1 -1
- package/dist/components/HexGrid/HexGrid.js +13 -13
- package/dist/components/HexGrid/HexGrid.js.map +1 -1
- package/dist/components/IconSvg/IconSvg.d.ts +1 -1
- package/dist/components/IconSvg/IconSvg.d.ts.map +1 -1
- package/dist/components/IconSvg/IconSvg.js +216 -212
- package/dist/components/IconSvg/IconSvg.js.map +1 -1
- package/dist/components/OAuthClientAclEditor/OAuthAclEditorModal.js +1 -1
- package/dist/components/OAuthClientManagement/OAuthManagement.js +1 -1
- package/dist/components/PortalAclEditor/PortalAclEditorModal.js +1 -1
- package/dist/components/PortalList/CreatePortalModal.js +1 -1
- package/dist/components/PortalList/PortalCard.js +1 -1
- package/dist/components/ProjectInfo/ProjectInfo.css +1 -0
- package/dist/components/ProjectInfo/ProjectInfo.d.ts +5 -0
- package/dist/components/ProjectInfo/ProjectInfo.d.ts.map +1 -0
- package/dist/components/ProjectInfo/ProjectInfo.js +50 -0
- package/dist/components/ProjectInfo/ProjectInfo.js.map +1 -0
- package/dist/components/ProjectInfo/ProjectInfo.module.js +11 -0
- package/dist/components/ProjectInfo/ProjectInfo.module.js.map +1 -0
- package/dist/components/ProjectInfo/ProjectInfo.module.scss +35 -0
- package/dist/components/ProjectInfo/ProjectInfoPopover.d.ts +10 -0
- package/dist/components/ProjectInfo/ProjectInfoPopover.d.ts.map +1 -0
- package/dist/components/ProjectInfo/ProjectInfoPopover.js +94 -0
- package/dist/components/ProjectInfo/ProjectInfoPopover.js.map +1 -0
- package/dist/components/ProjectStorage/ProjectDataAvailability.d.ts +2 -1
- package/dist/components/ProjectStorage/ProjectDataAvailability.d.ts.map +1 -1
- package/dist/components/ProjectStorage/ProjectDataAvailability.js +67 -75
- package/dist/components/ProjectStorage/ProjectDataAvailability.js.map +1 -1
- package/dist/components/ProvenanceGraph/ProvenanceGraph.d.ts +3 -0
- package/dist/components/ProvenanceGraph/ProvenanceGraph.d.ts.map +1 -1
- package/dist/components/ProvenanceGraph/ProvenanceGraph.js +140 -85
- package/dist/components/ProvenanceGraph/ProvenanceGraph.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +3 -3
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -1
- package/dist/components/StorybookComponentWrapper.js +1 -1
- package/dist/components/SynapseChat/SynapseChat.js +1 -1
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.css +1 -1
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.js +9 -8
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.js.map +1 -1
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.scss +4 -1
- package/dist/components/SynapseHomepageV2/WordPressNews.d.ts +2 -1
- package/dist/components/SynapseHomepageV2/WordPressNews.d.ts.map +1 -1
- package/dist/components/SynapseHomepageV2/WordPressNews.js +8 -7
- package/dist/components/SynapseHomepageV2/WordPressNews.js.map +1 -1
- package/dist/components/SynapseHomepageV2/WordPressNewsItem.d.ts +5 -1
- package/dist/components/SynapseHomepageV2/WordPressNewsItem.d.ts.map +1 -1
- package/dist/components/SynapseHomepageV2/WordPressNewsItem.js +19 -11
- package/dist/components/SynapseHomepageV2/WordPressNewsItem.js.map +1 -1
- package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js +1 -1
- package/dist/components/SynapseTable/table-top/DownloadOptions.js +1 -1
- package/dist/components/SynapseTable/table-top/DownloadOptions.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/ImportTableColumnsButton.js +1 -1
- package/dist/components/TextField/TextField.css +1 -1
- package/dist/components/TextField/TextField.d.ts.map +1 -1
- package/dist/components/TextField/TextField.js +27 -25
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/TextField.module.js +3 -3
- package/dist/components/TextField/TextField.module.js.map +1 -1
- package/dist/components/TextField/TextField.module.scss +2 -5
- package/dist/components/Webhook/WebhookVerificationDialog.js +1 -1
- package/dist/components/WordPress/useWordPressPosts.js +1 -1
- package/dist/components/WordPress/useWordPressPosts.js.map +1 -1
- package/dist/components/dataaccess/SubmissionPage/ApproveSubmissionConfirmationModal.js +1 -1
- package/dist/components/dataaccess/SubmissionPage/CancelDataAccessRequestConfirmationModal.js +1 -1
- package/dist/components/dataaccess/SubmissionPage/SubmissionPage.js +1 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.d.ts.map +1 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.js +66 -49
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.js.map +1 -1
- package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js +1 -1
- package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js.map +1 -1
- package/dist/components/error/SendMessageToEntityOwnerDialog.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/menu/ComplexMenu.d.ts.map +1 -1
- package/dist/components/menu/ComplexMenu.js +1 -4
- package/dist/components/menu/ComplexMenu.js.map +1 -1
- package/dist/features/curator/GridPage/components/UpdateGridPageSearchParamsForm.js +1 -1
- package/dist/features/curator/GridPage/components/UpdateGridPageSearchParamsForm.js.map +1 -1
- package/dist/features/curator/dashboard/CuratorDashboard.d.ts +1 -1
- package/dist/features/curator/dashboard/CuratorDashboard.d.ts.map +1 -1
- package/dist/features/curator/dashboard/CuratorDashboard.js +36 -35
- package/dist/features/curator/dashboard/CuratorDashboard.js.map +1 -1
- package/dist/features/curator/dashboard/CuratorDashboardRouter.d.ts +13 -0
- package/dist/features/curator/dashboard/CuratorDashboardRouter.d.ts.map +1 -0
- package/dist/features/curator/dashboard/CuratorDashboardRouter.js +37 -0
- package/dist/features/curator/dashboard/CuratorDashboardRouter.js.map +1 -0
- package/dist/features/curator/dashboard/components/CurationTaskCard.css +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.d.ts +3 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.d.ts.map +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.js +26 -157
- package/dist/features/curator/dashboard/components/CurationTaskCard.js.map +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.module.js +10 -6
- package/dist/features/curator/dashboard/components/CurationTaskCard.module.js.map +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.module.scss +31 -0
- package/dist/features/curator/dashboard/components/CurationTaskCardLayout.d.ts +25 -0
- package/dist/features/curator/dashboard/components/CurationTaskCardLayout.d.ts.map +1 -0
- package/dist/features/curator/dashboard/components/CurationTaskCardLayout.js +134 -0
- package/dist/features/curator/dashboard/components/CurationTaskCardLayout.js.map +1 -0
- package/dist/features/curator/dashboard/components/ExecutableTaskCard.d.ts +10 -0
- package/dist/features/curator/dashboard/components/ExecutableTaskCard.d.ts.map +1 -0
- package/dist/features/curator/dashboard/components/ExecutableTaskCard.js +51 -0
- package/dist/features/curator/dashboard/components/ExecutableTaskCard.js.map +1 -0
- package/dist/features/curator/dashboard/components/GridTaskCard.d.ts +10 -0
- package/dist/features/curator/dashboard/components/GridTaskCard.d.ts.map +1 -0
- package/dist/features/curator/dashboard/components/GridTaskCard.js +35 -0
- package/dist/features/curator/dashboard/components/GridTaskCard.js.map +1 -0
- package/dist/features/curator/dashboard/components/NextStepButton.css +1 -1
- package/dist/features/curator/dashboard/components/NextStepButton.d.ts +3 -0
- package/dist/features/curator/dashboard/components/NextStepButton.d.ts.map +1 -1
- package/dist/features/curator/dashboard/components/NextStepButton.js +56 -26
- package/dist/features/curator/dashboard/components/NextStepButton.js.map +1 -1
- package/dist/features/curator/dashboard/components/NextStepButton.module.js +6 -5
- package/dist/features/curator/dashboard/components/NextStepButton.module.js.map +1 -1
- package/dist/features/curator/dashboard/components/NextStepButton.module.scss +28 -0
- package/dist/features/curator/dashboard/components/getExecutableTaskButtonState.d.ts +31 -0
- package/dist/features/curator/dashboard/components/getExecutableTaskButtonState.d.ts.map +1 -0
- package/dist/features/curator/dashboard/components/getExecutableTaskButtonState.js +32 -0
- package/dist/features/curator/dashboard/components/getExecutableTaskButtonState.js.map +1 -0
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js +213 -204
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.d.ts +0 -1
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js +19 -39
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.d.ts +9 -3
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.js +37 -46
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksPageRouter.d.ts +17 -0
- package/dist/features/entity/metadata-task/components/MetadataTasksPageRouter.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/components/MetadataTasksPageRouter.js +43 -0
- package/dist/features/entity/metadata-task/components/MetadataTasksPageRouter.js.map +1 -0
- package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.js +27 -26
- package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.js.map +1 -1
- package/dist/features/entity/metadata-task/create-task/CommonTaskFields.d.ts +16 -0
- package/dist/features/entity/metadata-task/create-task/CommonTaskFields.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/CommonTaskFields.js +64 -0
- package/dist/features/entity/metadata-task/create-task/CommonTaskFields.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/ComputeTaskForm.d.ts +41 -0
- package/dist/features/entity/metadata-task/create-task/ComputeTaskForm.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/ComputeTaskForm.js +165 -0
- package/dist/features/entity/metadata-task/create-task/ComputeTaskForm.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/CreateCurationTaskFlow.d.ts +18 -0
- package/dist/features/entity/metadata-task/create-task/CreateCurationTaskFlow.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/CreateCurationTaskFlow.js +78 -0
- package/dist/features/entity/metadata-task/create-task/CreateCurationTaskFlow.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/CreateTaskCategoryPicker.d.ts +10 -0
- package/dist/features/entity/metadata-task/create-task/CreateTaskCategoryPicker.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/CreateTaskCategoryPicker.js +40 -0
- package/dist/features/entity/metadata-task/create-task/CreateTaskCategoryPicker.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/CreateTaskConfirmation.d.ts +13 -0
- package/dist/features/entity/metadata-task/create-task/CreateTaskConfirmation.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/CreateTaskConfirmation.js +35 -0
- package/dist/features/entity/metadata-task/create-task/CreateTaskConfirmation.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/CurateTaskForm.d.ts +41 -0
- package/dist/features/entity/metadata-task/create-task/CurateTaskForm.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/CurateTaskForm.js +198 -0
- package/dist/features/entity/metadata-task/create-task/CurateTaskForm.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/EditCurationTaskPage.d.ts +8 -0
- package/dist/features/entity/metadata-task/create-task/EditCurationTaskPage.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/EditCurationTaskPage.js +29 -0
- package/dist/features/entity/metadata-task/create-task/EditCurationTaskPage.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/FileBasedFields.d.ts +13 -0
- package/dist/features/entity/metadata-task/create-task/FileBasedFields.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/FileBasedFields.js +65 -0
- package/dist/features/entity/metadata-task/create-task/FileBasedFields.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/ProjectSelectorField.d.ts +11 -0
- package/dist/features/entity/metadata-task/create-task/ProjectSelectorField.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/ProjectSelectorField.js +33 -0
- package/dist/features/entity/metadata-task/create-task/ProjectSelectorField.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/RecordBasedFields.d.ts +13 -0
- package/dist/features/entity/metadata-task/create-task/RecordBasedFields.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/RecordBasedFields.js +38 -0
- package/dist/features/entity/metadata-task/create-task/RecordBasedFields.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/RecordSetFields.d.ts +13 -0
- package/dist/features/entity/metadata-task/create-task/RecordSetFields.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/RecordSetFields.js +72 -0
- package/dist/features/entity/metadata-task/create-task/RecordSetFields.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/SampleSheetFields.d.ts +11 -0
- package/dist/features/entity/metadata-task/create-task/SampleSheetFields.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/SampleSheetFields.js +42 -0
- package/dist/features/entity/metadata-task/create-task/SampleSheetFields.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/TaskCategoryCard.d.ts +17 -0
- package/dist/features/entity/metadata-task/create-task/TaskCategoryCard.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/TaskCategoryCard.js +70 -0
- package/dist/features/entity/metadata-task/create-task/TaskCategoryCard.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/TaskFormActions.d.ts +23 -0
- package/dist/features/entity/metadata-task/create-task/TaskFormActions.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/TaskFormActions.js +68 -0
- package/dist/features/entity/metadata-task/create-task/TaskFormActions.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/TaskFormHeader.d.ts +17 -0
- package/dist/features/entity/metadata-task/create-task/TaskFormHeader.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/TaskFormHeader.js +33 -0
- package/dist/features/entity/metadata-task/create-task/TaskFormHeader.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/useCurationTaskFormState.d.ts +50 -0
- package/dist/features/entity/metadata-task/create-task/useCurationTaskFormState.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/useCurationTaskFormState.js +76 -0
- package/dist/features/entity/metadata-task/create-task/useCurationTaskFormState.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/utils/buildComputeTaskPayload.d.ts +36 -0
- package/dist/features/entity/metadata-task/create-task/utils/buildComputeTaskPayload.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/utils/buildComputeTaskPayload.js +31 -0
- package/dist/features/entity/metadata-task/create-task/utils/buildComputeTaskPayload.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/utils/buildCurateTaskPayload.d.ts +32 -0
- package/dist/features/entity/metadata-task/create-task/utils/buildCurateTaskPayload.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/utils/buildCurateTaskPayload.js +33 -0
- package/dist/features/entity/metadata-task/create-task/utils/buildCurateTaskPayload.js.map +1 -0
- package/dist/features/entity/metadata-task/create-task/utils/taskIdValidation.d.ts +10 -0
- package/dist/features/entity/metadata-task/create-task/utils/taskIdValidation.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/create-task/utils/taskIdValidation.js +13 -0
- package/dist/features/entity/metadata-task/create-task/utils/taskIdValidation.js.map +1 -0
- package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.js +24 -24
- package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.js.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask_legacy.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask_legacy.js +2 -2
- package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask_legacy.js.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useMetadataTaskTable.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useMetadataTaskTable.js +33 -32
- package/dist/features/entity/metadata-task/hooks/useMetadataTaskTable.js.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.js +24 -21
- package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.js.map +1 -1
- package/dist/features/entity/metadata-task/utils/constants.d.ts +84 -15
- package/dist/features/entity/metadata-task/utils/constants.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/utils/constants.js +47 -3
- package/dist/features/entity/metadata-task/utils/constants.js.map +1 -1
- package/dist/features/entity/metadata-task/utils/dueDate.d.ts +22 -0
- package/dist/features/entity/metadata-task/utils/dueDate.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/utils/dueDate.js +24 -0
- package/dist/features/entity/metadata-task/utils/dueDate.js.map +1 -0
- package/dist/features/entity/metadata-task/utils/getCreateGridRequestForMetadataTask.d.ts +2 -2
- package/dist/features/entity/metadata-task/utils/getCreateGridRequestForMetadataTask.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/utils/getCreateGridRequestForMetadataTask.js +5 -6
- package/dist/features/entity/metadata-task/utils/getCreateGridRequestForMetadataTask.js.map +1 -1
- package/dist/features/entity/metadata-task/utils/getGridSourceIdForTask.d.ts +4 -4
- package/dist/features/entity/metadata-task/utils/getGridSourceIdForTask.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/utils/getGridSourceIdForTask.js +5 -6
- package/dist/features/entity/metadata-task/utils/getGridSourceIdForTask.js.map +1 -1
- package/dist/features/entity/metadata-task/utils/types.d.ts +12 -0
- package/dist/features/entity/metadata-task/utils/types.d.ts.map +1 -0
- package/dist/features/entity/metadata-task/utils/types.js +18 -0
- package/dist/features/entity/metadata-task/utils/types.js.map +1 -0
- package/dist/mocks/curation/mockCurationTask.d.ts +6 -0
- package/dist/mocks/curation/mockCurationTask.d.ts.map +1 -1
- package/dist/mocks/curation/mockCurationTask.js +20 -3
- package/dist/mocks/curation/mockCurationTask.js.map +1 -1
- package/dist/mocks/msw/handlers/curationTaskExecutionHandlers.d.ts +16 -0
- package/dist/mocks/msw/handlers/curationTaskExecutionHandlers.d.ts.map +1 -0
- package/dist/mocks/msw/handlers/curationTaskExecutionHandlers.js +24 -0
- package/dist/mocks/msw/handlers/curationTaskExecutionHandlers.js.map +1 -0
- package/dist/style/components/_data-grid-extra.css +1 -1
- package/dist/style/components/_data-grid-extra.scss +0 -6
- package/dist/synapse-client/SynapseClient.d.ts +7 -1
- package/dist/synapse-client/SynapseClient.d.ts.map +1 -1
- package/dist/synapse-client/SynapseClient.js +493 -482
- package/dist/synapse-client/SynapseClient.js.map +1 -1
- package/dist/synapse-client/index.js +3 -3
- package/dist/synapse-queries/curation/task/useCurationTask.d.ts +8 -1
- package/dist/synapse-queries/curation/task/useCurationTask.d.ts.map +1 -1
- package/dist/synapse-queries/curation/task/useCurationTask.js +48 -34
- package/dist/synapse-queries/curation/task/useCurationTask.js.map +1 -1
- package/dist/theme/palette/Palettes.js +2 -2
- package/dist/theme/palette/Palettes.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/AppUtils/session/useSessionManager.d.ts.map +1 -1
- package/dist/utils/AppUtils/session/useSessionManager.js +50 -48
- package/dist/utils/AppUtils/session/useSessionManager.js.map +1 -1
- package/dist/utils/SynapseConstants.d.ts +4 -1
- package/dist/utils/SynapseConstants.d.ts.map +1 -1
- package/dist/utils/SynapseConstants.js +86 -83
- package/dist/utils/SynapseConstants.js.map +1 -1
- package/dist/utils/featureflag/FeatureFlags.d.ts +2 -2
- package/dist/utils/featureflag/FeatureFlags.d.ts.map +1 -1
- package/dist/utils/featureflag/FeatureFlags.js +1 -1
- package/dist/utils/featureflag/FeatureFlags.js.map +1 -1
- package/dist/utils/hooks/useDetectSSOCode.d.ts.map +1 -1
- package/dist/utils/hooks/useDetectSSOCode.js +37 -27
- package/dist/utils/hooks/useDetectSSOCode.js.map +1 -1
- package/package.json +6 -6
- package/dist/components/DataGrid/MergeGridWithSourceTableButton.d.ts +0 -8
- package/dist/components/DataGrid/MergeGridWithSourceTableButton.d.ts.map +0 -1
- package/dist/components/DataGrid/MergeGridWithSourceTableButton.js +0 -64
- package/dist/components/DataGrid/MergeGridWithSourceTableButton.js.map +0 -1
|
@@ -1,97 +1,89 @@
|
|
|
1
1
|
import { spreadSx as e } from "../../theme/spreadSx.js";
|
|
2
|
-
import {
|
|
3
|
-
import { calculateFriendlyFileSize as n } from "../../utils/functions/calculateFriendlyFileSize.js";
|
|
2
|
+
import { calculateFriendlyFileSize as t } from "../../utils/functions/calculateFriendlyFileSize.js";
|
|
4
3
|
import "../../synapse-client/SynapseClient.js";
|
|
5
4
|
import "../../synapse-client/index.js";
|
|
6
|
-
import { useSynapseContext as
|
|
5
|
+
import { useSynapseContext as n } from "../../utils/context/SynapseContext.js";
|
|
7
6
|
import "../../utils/index.js";
|
|
8
|
-
import { useProjectStorageUsage as
|
|
7
|
+
import { useProjectStorageUsage as r } from "../../synapse-queries/entity/useProjectStorage.js";
|
|
9
8
|
import "../../synapse-queries/index.js";
|
|
10
|
-
import a from "../HelpPopover/index.js";
|
|
11
9
|
import "react";
|
|
12
|
-
import { Box as
|
|
13
|
-
import { Fragment as
|
|
10
|
+
import { Box as i, Divider as a, Tooltip as o, Typography as s } from "@mui/material";
|
|
11
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
14
12
|
//#region src/components/ProjectStorage/ProjectDataAvailability.tsx
|
|
15
|
-
var f =
|
|
16
|
-
function
|
|
17
|
-
let { isAuthenticated:
|
|
18
|
-
if (!
|
|
19
|
-
let { sumFileBytes:
|
|
20
|
-
if (
|
|
21
|
-
let
|
|
22
|
-
return /* @__PURE__ */
|
|
13
|
+
var d = "#576077", f = "#DEE0E5", p = "#38756A", m = .5;
|
|
14
|
+
function h({ projectId: h, sx: g, showBottomDivider: _ = !1 }) {
|
|
15
|
+
let { isAuthenticated: v } = n(), { data: y } = r(h, { enabled: !!h && v }), b = y?.locations.filter((e) => e.storageLocationId == 1), x = b?.length == 1 ? b[0] : void 0;
|
|
16
|
+
if (!x) return /* @__PURE__ */ l(c, {});
|
|
17
|
+
let { sumFileBytes: S = 0, maxAllowedFileBytes: C = 0 } = x;
|
|
18
|
+
if (C == 0) return /* @__PURE__ */ l(c, {});
|
|
19
|
+
let w = S / C * 100, T = Math.min(w, 100), E = S === 0 ? "0%" : w < 1 ? "<1%" : `${Math.round(w)}%`, D = S === 0 ? 0 : Math.max(T, m), O = t(S, 1), k = t(C, 1).replace(/\.0\s/, " ");
|
|
20
|
+
return /* @__PURE__ */ u(i, {
|
|
23
21
|
sx: e({
|
|
24
22
|
display: "flex",
|
|
25
23
|
flexDirection: "column",
|
|
26
|
-
width: "
|
|
24
|
+
width: "100%",
|
|
27
25
|
fontFamily: "DM Sans",
|
|
28
|
-
color:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
sx: {
|
|
33
|
-
display: "flex",
|
|
34
|
-
flexDirection: "row",
|
|
35
|
-
gap: "5px"
|
|
36
|
-
},
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ d(c, {
|
|
39
|
-
sx: {
|
|
40
|
-
fontWeight: 700,
|
|
41
|
-
fontSize: "16px"
|
|
42
|
-
},
|
|
43
|
-
children: ["Data Availability", " "]
|
|
44
|
-
}),
|
|
45
|
-
" ",
|
|
46
|
-
/* @__PURE__ */ u(a, {
|
|
47
|
-
containerSx: { fontSize: "12px" },
|
|
48
|
-
markdownText: "Hosting Plan Options:\n- Basic Plan: Free, for sharing small datasets (<100GB) with self-service setup. No direct support.\n- Self-Managed Plan: Ideal for data longevity, FAIR principles, and NIH compliance. Includes consultation services and data access management tools.\n- Data Coordination Plan: For large, multi-institutional projects, with personalized consulting, data curation, and a custom data portal.",
|
|
49
|
-
helpUrl: t
|
|
50
|
-
})
|
|
51
|
-
]
|
|
52
|
-
}), v.maxAllowedFileBytes && /* @__PURE__ */ u(s, {
|
|
53
|
-
title: `Using ${S} out of ${C}`,
|
|
54
|
-
children: /* @__PURE__ */ d(o, {
|
|
26
|
+
color: d
|
|
27
|
+
}, g),
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ l(i, {
|
|
55
30
|
sx: {
|
|
56
31
|
display: "flex",
|
|
57
32
|
flexDirection: "row",
|
|
58
|
-
|
|
59
|
-
alignItems: "center"
|
|
33
|
+
marginBottom: "10px"
|
|
60
34
|
},
|
|
61
|
-
children:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
} })
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ u(c, {
|
|
82
|
-
variant: "body1",
|
|
35
|
+
children: /* @__PURE__ */ u(s, {
|
|
36
|
+
sx: {
|
|
37
|
+
fontWeight: 500,
|
|
38
|
+
fontSize: "12px",
|
|
39
|
+
textTransform: "uppercase"
|
|
40
|
+
},
|
|
41
|
+
children: ["Data Availability", " "]
|
|
42
|
+
})
|
|
43
|
+
}),
|
|
44
|
+
x.maxAllowedFileBytes && /* @__PURE__ */ l(o, {
|
|
45
|
+
title: `Using ${O} out of ${k}`,
|
|
46
|
+
children: /* @__PURE__ */ u(i, {
|
|
47
|
+
sx: {
|
|
48
|
+
display: "flex",
|
|
49
|
+
flexDirection: "column",
|
|
50
|
+
gap: "8px"
|
|
51
|
+
},
|
|
52
|
+
children: [/* @__PURE__ */ l(i, {
|
|
83
53
|
sx: {
|
|
84
|
-
|
|
85
|
-
|
|
54
|
+
display: "flex",
|
|
55
|
+
flexDirection: "row",
|
|
56
|
+
alignItems: "center"
|
|
86
57
|
},
|
|
87
|
-
children:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
58
|
+
children: /* @__PURE__ */ l(i, {
|
|
59
|
+
sx: {
|
|
60
|
+
width: "100%",
|
|
61
|
+
height: "6px",
|
|
62
|
+
backgroundColor: f,
|
|
63
|
+
borderRadius: "50px"
|
|
64
|
+
},
|
|
65
|
+
children: /* @__PURE__ */ l(i, { sx: {
|
|
66
|
+
width: `${D}%`,
|
|
67
|
+
height: "6px",
|
|
68
|
+
backgroundColor: p,
|
|
69
|
+
borderRadius: "50px"
|
|
70
|
+
} })
|
|
71
|
+
})
|
|
72
|
+
}), /* @__PURE__ */ l(s, {
|
|
73
|
+
variant: "body2",
|
|
74
|
+
sx: { color: d },
|
|
75
|
+
children: `${E} of ${k}`
|
|
76
|
+
})]
|
|
77
|
+
})
|
|
78
|
+
}),
|
|
79
|
+
_ && /* @__PURE__ */ l(a, { sx: {
|
|
80
|
+
mt: "16px",
|
|
81
|
+
borderColor: "rgba(226, 228, 234, 0.50)"
|
|
82
|
+
} })
|
|
83
|
+
]
|
|
92
84
|
});
|
|
93
85
|
}
|
|
94
86
|
//#endregion
|
|
95
|
-
export {
|
|
87
|
+
export { h as ProjectDataAvailability, h as default };
|
|
96
88
|
|
|
97
89
|
//# sourceMappingURL=ProjectDataAvailability.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectDataAvailability.js","names":[],"sources":["../../../src/components/ProjectStorage/ProjectDataAvailability.tsx"],"sourcesContent":["import { SYNAPSE_STORAGE_LOCATION_ID } from '@/synapse-client'\nimport { useProjectStorageUsage } from '@/synapse-queries'\nimport { spreadSx } from '@/theme/spreadSx'\nimport { useSynapseContext } from '@/utils'\nimport { calculateFriendlyFileSize } from '@/utils/functions/calculateFriendlyFileSize'\nimport {
|
|
1
|
+
{"version":3,"file":"ProjectDataAvailability.js","names":[],"sources":["../../../src/components/ProjectStorage/ProjectDataAvailability.tsx"],"sourcesContent":["import { SYNAPSE_STORAGE_LOCATION_ID } from '@/synapse-client'\nimport { useProjectStorageUsage } from '@/synapse-queries'\nimport { spreadSx } from '@/theme/spreadSx'\nimport { useSynapseContext } from '@/utils'\nimport { calculateFriendlyFileSize } from '@/utils/functions/calculateFriendlyFileSize'\nimport { Box, SxProps, Tooltip, Typography, Divider } from '@mui/material'\nimport React from 'react'\n\nexport type ProjectDataAvailabilityProps = {\n projectId?: string\n sx?: SxProps\n showBottomDivider?: boolean\n}\nconst textColor = '#576077'\nconst trackColor = '#DEE0E5'\nconst fillColor = '#38756A'\nconst MIN_VISIBLE_USAGE_PERCENT = 0.5\n\nexport function ProjectDataAvailability({\n projectId,\n sx,\n showBottomDivider = false,\n}: ProjectDataAvailabilityProps): React.ReactNode {\n const { isAuthenticated } = useSynapseContext()\n const { data } = useProjectStorageUsage(projectId!, {\n enabled: !!projectId && isAuthenticated,\n })\n const projectDataUsageArray = data?.locations.filter(\n v => v.storageLocationId == SYNAPSE_STORAGE_LOCATION_ID,\n )\n const synapseStorageUsage =\n projectDataUsageArray?.length == 1 ? projectDataUsageArray[0] : undefined\n if (!synapseStorageUsage) {\n return <></>\n }\n const { sumFileBytes = 0, maxAllowedFileBytes = 0 } = synapseStorageUsage\n if (maxAllowedFileBytes == 0) {\n return <></>\n }\n const rawUsagePercent = (sumFileBytes / maxAllowedFileBytes) * 100\n const boundedUsagePercent = Math.min(rawUsagePercent, 100)\n\n const usagePercentLabel =\n sumFileBytes === 0\n ? '0%'\n : rawUsagePercent < 1\n ? '<1%'\n : `${Math.round(rawUsagePercent)}%`\n\n const usageBarPercent =\n sumFileBytes === 0\n ? 0\n : Math.max(boundedUsagePercent, MIN_VISIBLE_USAGE_PERCENT)\n\n const friendlySumFileBytes = calculateFriendlyFileSize(sumFileBytes, 1)\n const friendlyMaxAllowedFileBytes = calculateFriendlyFileSize(\n maxAllowedFileBytes,\n 1,\n ).replace(/\\.0\\s/, ' ') // SWC-7183: remove '.0 ' from the string if it exists\n return (\n <Box\n sx={spreadSx(\n {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n fontFamily: 'DM Sans',\n color: textColor,\n },\n sx,\n )}\n >\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'row',\n marginBottom: '10px',\n }}\n >\n <Typography\n sx={{\n // match current styles in Project metadata\n fontWeight: 500,\n fontSize: '12px',\n textTransform: 'uppercase',\n }}\n >\n Data Availability{' '}\n </Typography>\n </Box>\n {synapseStorageUsage.maxAllowedFileBytes && (\n <Tooltip\n title={`Using ${friendlySumFileBytes} out of ${friendlyMaxAllowedFileBytes}`}\n >\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'column',\n gap: '8px',\n }}\n >\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n }}\n >\n {/* Progress Bar */}\n <Box\n sx={{\n width: '100%',\n height: '6px',\n backgroundColor: trackColor,\n borderRadius: '50px',\n }}\n >\n <Box\n sx={{\n width: `${usageBarPercent}%`,\n height: '6px',\n backgroundColor: fillColor,\n borderRadius: '50px',\n }}\n ></Box>\n </Box>\n </Box>\n <Typography\n variant=\"body2\"\n sx={{\n color: textColor,\n }}\n >\n {`${usagePercentLabel} of ${friendlyMaxAllowedFileBytes}`}\n </Typography>\n </Box>\n </Tooltip>\n )}\n {showBottomDivider && (\n <Divider\n sx={{\n mt: '16px',\n borderColor: 'rgba(226, 228, 234, 0.50)',\n }}\n />\n )}\n </Box>\n )\n}\n\nexport default ProjectDataAvailability\n"],"mappings":";;;;;;;;;;;;AAaA,IAAM,IAAY,WACZ,IAAa,WACb,IAAY,WACZ,IAA4B;AAElC,SAAgB,EAAwB,EACtC,cACA,OACA,uBAAoB,MAC4B;CAChD,IAAM,EAAE,uBAAoB,EAAkB,GACxC,EAAE,YAAS,EAAuB,GAAY,EAClD,SAAS,CAAC,CAAC,KAAa,EAC1B,CAAC,GACK,IAAwB,GAAM,UAAU,QAC5C,MAAK,EAAE,qBAAA,CACT,GACM,IACJ,GAAuB,UAAU,IAAI,EAAsB,KAAK,KAAA;CAClE,IAAI,CAAC,GACH,OAAO,kBAAA,GAAA,CAAI,CAAA;CAEb,IAAM,EAAE,kBAAe,GAAG,yBAAsB,MAAM;CACtD,IAAI,KAAuB,GACzB,OAAO,kBAAA,GAAA,CAAI,CAAA;CAEb,IAAM,IAAmB,IAAe,IAAuB,KACzD,IAAsB,KAAK,IAAI,GAAiB,GAAG,GAEnD,IACJ,MAAiB,IACb,OACA,IAAkB,IAChB,QACA,GAAG,KAAK,MAAM,CAAe,EAAE,IAEjC,IACJ,MAAiB,IACb,IACA,KAAK,IAAI,GAAqB,CAAyB,GAEvD,IAAuB,EAA0B,GAAc,CAAC,GAChE,IAA8B,EAClC,GACA,CACF,EAAE,QAAQ,SAAS,GAAG;CACtB,OACE,kBAAC,GAAD;EACE,IAAI,EACF;GACE,SAAS;GACT,eAAe;GACf,OAAO;GACP,YAAY;GACZ,OAAO;EACT,GACA,CACF;YAVF;GAYE,kBAAC,GAAD;IACE,IAAI;KACF,SAAS;KACT,eAAe;KACf,cAAc;IAChB;cAEA,kBAAC,GAAD;KACE,IAAI;MAEF,YAAY;MACZ,UAAU;MACV,eAAe;KACjB;eANF,CAOC,qBACmB,GACR;;GACT,CAAA;GACJ,EAAoB,uBACnB,kBAAC,GAAD;IACE,OAAO,SAAS,EAAqB,UAAU;cAE/C,kBAAC,GAAD;KACE,IAAI;MACF,SAAS;MACT,eAAe;MACf,KAAK;KACP;eALF,CAOE,kBAAC,GAAD;MACE,IAAI;OACF,SAAS;OACT,eAAe;OACf,YAAY;MACd;gBAGA,kBAAC,GAAD;OACE,IAAI;QACF,OAAO;QACP,QAAQ;QACR,iBAAiB;QACjB,cAAc;OAChB;iBAEA,kBAAC,GAAD,EACE,IAAI;QACF,OAAO,GAAG,EAAgB;QAC1B,QAAQ;QACR,iBAAiB;QACjB,cAAc;OAChB,EACI,CAAA;MACH,CAAA;KACF,CAAA,GACL,kBAAC,GAAD;MACE,SAAQ;MACR,IAAI,EACF,OAAO,EACT;gBAEC,GAAG,EAAkB,MAAM;KAClB,CAAA,CACT;;GACE,CAAA;GAEV,KACC,kBAAC,GAAD,EACE,IAAI;IACF,IAAI;IACJ,aAAa;GACf,EACD,CAAA;EAEA;;AAET"}
|
|
@@ -8,7 +8,10 @@ export type ProvenanceProps = {
|
|
|
8
8
|
initialEdges?: Edge[];
|
|
9
9
|
onNodesChangedListener?: (nodes: Node[]) => void;
|
|
10
10
|
onEdgesChangedListener?: (edges: Edge[]) => void;
|
|
11
|
+
onEditProvenanceClicked?: () => void;
|
|
11
12
|
};
|
|
13
|
+
export declare const EDIT_PROVENANCE_TEXT = "Edit Provenance";
|
|
14
|
+
export declare const NO_PROVENANCE_TITLE = "No provenance data";
|
|
12
15
|
declare const ProvenanceGraph: (props: ProvenanceProps) => React.ReactNode;
|
|
13
16
|
export default ProvenanceGraph;
|
|
14
17
|
//# sourceMappingURL=ProvenanceGraph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProvenanceGraph.d.ts","sourceRoot":"","sources":["../../../src/components/ProvenanceGraph/ProvenanceGraph.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProvenanceGraph.d.ts","sourceRoot":"","sources":["../../../src/components/ProvenanceGraph/ProvenanceGraph.tsx"],"names":[],"mappings":"AAQA,OAAO,EAGL,aAAa,EAKd,MAAM,iCAAiC,CAAA;AAGxC,OAAkB,EAEhB,IAAI,EAEJ,IAAI,EAKL,MAAM,WAAW,CAAA;AAoBlB,OAAO,0BAA0B,CAAA;AAEjC,MAAM,MAAM,eAAe,GAAG;IAE5B,UAAU,EAAE,aAAa,CAAA;IACzB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAA;IACrB,YAAY,CAAC,EAAE,IAAI,EAAE,CAAA;IACrB,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IAChD,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IAChD,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAA;CACrC,CAAA;AAID,eAAO,MAAM,oBAAoB,oBAAoB,CAAA;AACrD,eAAO,MAAM,mBAAmB,uBAAuB,CAAA;AAscvD,QAAA,MAAM,eAAe,GAAI,OAAO,eAAe,KAAG,KAAK,CAAC,SAQvD,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1,96 +1,102 @@
|
|
|
1
1
|
import { displayToast as e } from "../ToastMessage/ToastMessage.js";
|
|
2
2
|
import t from "../../synapse-client/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { entityTypeToFriendlyName as n, getEntityTypeFromHeader as r } from "../../utils/functions/EntityTypeUtils.js";
|
|
4
|
+
import { SynapseErrorBoundary as i } from "../error/ErrorBanner.js";
|
|
5
|
+
import { useSynapseContext as a } from "../../utils/context/SynapseContext.js";
|
|
6
|
+
import { useGetEntityHeaders as o } from "../../synapse-queries/entity/useGetEntityHeaders.js";
|
|
6
7
|
import "../../synapse-queries/index.js";
|
|
7
|
-
import { NodeType as
|
|
8
|
-
import { addActivityNode as
|
|
9
|
-
import { useCallback as
|
|
10
|
-
import { CircularProgress as
|
|
11
|
-
import { jsx as
|
|
12
|
-
import { USED_ENTITY_CONCRETE_TYPE_VALUE as
|
|
13
|
-
import { useErrorHandler as
|
|
14
|
-
import
|
|
8
|
+
import { NodeType as s, getLayoutedElements as ee, isArrayEqual as c } from "./ProvenanceUtils.js";
|
|
9
|
+
import { addActivityNode as te, addEntityNode as ne, addEntityPlaceholderNode as re, addExpandNode as l, addExternalNode as u, addUndefinedNode as ie, findEntityNode as ae, isRootEntity as d } from "./ProvenanceGraphUtils.js";
|
|
10
|
+
import { useCallback as f, useEffect as p, useState as m } from "react";
|
|
11
|
+
import { Button as h, CircularProgress as g, Stack as _, Typography as v } from "@mui/material";
|
|
12
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
13
|
+
import { USED_ENTITY_CONCRETE_TYPE_VALUE as x } from "@sage-bionetworks/synapse-types";
|
|
14
|
+
import { useErrorHandler as S } from "react-error-boundary";
|
|
15
|
+
import C, { Controls as oe, ReactFlowProvider as w, getConnectedEdges as se, useEdgesState as ce, useNodesState as le, useReactFlow as ue } from "reactflow";
|
|
15
16
|
import "reactflow/dist/style.css";
|
|
16
17
|
//#region src/components/ProvenanceGraph/ProvenanceGraph.tsx
|
|
17
|
-
var
|
|
18
|
-
let { entityRefs:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
var T = 400, E = .85, D = "Edit Provenance", O = "No provenance data", de = (e) => `We don’t have any provenance information for this ${e} yet.`, k = "#3B4046", fe = "#F9F9FA", pe = "#4D535A", me = "#9EAAB7", he = "rgba(255, 255, 255, 0.60)", A = (i) => {
|
|
19
|
+
let { entityRefs: w, containerHeight: D = "200px", initialNodes: A = [], initialEdges: j = [], onNodesChangedListener: M, onEdgesChangedListener: N, onEditProvenanceClicked: P } = i, { accessToken: F } = a(), [I, L] = m(A), [R, z] = m(j), [B, V] = le([]), [H, U] = ce([]), [W, G] = m(), [ge, _e] = m(!1), K = S(), { data: q, isSuccess: ve } = o(w, { throwOnError: !0 }), J = [
|
|
20
|
+
s.ENTITY_PLACEHOLDER,
|
|
21
|
+
s.EXTERNAL,
|
|
22
|
+
s.ACTIVITY,
|
|
23
|
+
s.EXPAND
|
|
24
|
+
], ye = B.some((e) => J.includes(e.data.type)), be = ge && !ye;
|
|
25
|
+
ve && q && q.totalNumberOfResults == 0 && K(`Unable to load provenance for the given Synapse IDs: ${w.map((e) => e.targetId).join(",")}`);
|
|
26
|
+
let Y = q?.results, xe = Y?.[0] ? n(r(Y[0])).toLowerCase() : "entity", [X, Se] = m(!1), Z = ue(), Ce = f((e, t) => {
|
|
27
|
+
G(t);
|
|
28
|
+
}, []), Q = f(async (e) => {
|
|
23
29
|
let { entityHeader: n, nodesCopy: r, edgesCopy: i, usedInActivity: a } = e;
|
|
24
|
-
|
|
30
|
+
ne({
|
|
25
31
|
entityHeader: n,
|
|
26
32
|
activity: a,
|
|
27
33
|
nodesCopy: r,
|
|
28
34
|
edgesCopy: i
|
|
29
35
|
});
|
|
30
36
|
try {
|
|
31
|
-
let e = await t.getActivityForEntity(n.id, n.versionNumber,
|
|
32
|
-
(!
|
|
37
|
+
let e = await t.getActivityForEntity(n.id, n.versionNumber, F);
|
|
38
|
+
(!d({
|
|
33
39
|
entityHeader: n,
|
|
34
|
-
rootEntityHeaders:
|
|
35
|
-
}) || e.used && e.used.length >=
|
|
40
|
+
rootEntityHeaders: Y
|
|
41
|
+
}) || e.used && e.used.length >= T) && l({
|
|
36
42
|
entityHeader: n,
|
|
37
43
|
itemCount: e.used?.length,
|
|
38
44
|
nodesCopy: r,
|
|
39
45
|
edgesCopy: i
|
|
40
46
|
});
|
|
41
47
|
} catch (e) {
|
|
42
|
-
console.error(e),
|
|
48
|
+
console.error(e), d({
|
|
43
49
|
entityHeader: n,
|
|
44
|
-
rootEntityHeaders:
|
|
45
|
-
}) &&
|
|
50
|
+
rootEntityHeaders: Y
|
|
51
|
+
}) && ie({
|
|
46
52
|
entityHeader: n,
|
|
47
53
|
nodesCopy: r,
|
|
48
54
|
edgesCopy: i
|
|
49
55
|
});
|
|
50
56
|
}
|
|
51
|
-
}, [
|
|
52
|
-
|
|
53
|
-
!
|
|
54
|
-
if (
|
|
55
|
-
let e =
|
|
57
|
+
}, [F, Y]);
|
|
58
|
+
p(() => {
|
|
59
|
+
!X && B.length > 0 && setTimeout(() => {
|
|
60
|
+
if (Y) {
|
|
61
|
+
let e = ae(Y[0], B);
|
|
56
62
|
if (e) {
|
|
57
|
-
let t = Z.getZoom(), n = t >
|
|
63
|
+
let t = Z.getZoom(), n = t > E ? E : t;
|
|
58
64
|
Z?.setCenter(e.position.x + 150, e.position.y - 30, {
|
|
59
65
|
zoom: n,
|
|
60
66
|
duration: 0
|
|
61
67
|
});
|
|
62
68
|
}
|
|
63
|
-
|
|
69
|
+
Se(!0);
|
|
64
70
|
}
|
|
65
71
|
});
|
|
66
72
|
}, [
|
|
67
|
-
|
|
68
|
-
|
|
73
|
+
X,
|
|
74
|
+
B,
|
|
69
75
|
Z,
|
|
70
|
-
|
|
76
|
+
Y
|
|
71
77
|
]);
|
|
72
|
-
let $ =
|
|
78
|
+
let $ = f(async (e) => {
|
|
73
79
|
let { entityHeader: n, nodesCopy: r, edgesCopy: i } = e;
|
|
74
80
|
try {
|
|
75
|
-
let e = await t.getActivityForEntity(n.id, n.versionNumber,
|
|
76
|
-
if (
|
|
81
|
+
let e = await t.getActivityForEntity(n.id, n.versionNumber, F);
|
|
82
|
+
if (te({
|
|
77
83
|
activity: e,
|
|
78
84
|
entityHeader: n,
|
|
79
85
|
nodesCopy: r,
|
|
80
86
|
edgesCopy: i
|
|
81
|
-
}), e.used && e.used.length <
|
|
87
|
+
}), e.used && e.used.length < T) {
|
|
82
88
|
let n = [];
|
|
83
89
|
e.used.forEach((t) => {
|
|
84
|
-
t.concreteType ==
|
|
90
|
+
t.concreteType == x ? n.push(t.reference) : u({
|
|
85
91
|
usedURL: t,
|
|
86
92
|
activity: e,
|
|
87
93
|
nodesCopy: r,
|
|
88
94
|
edgesCopy: i
|
|
89
95
|
});
|
|
90
96
|
});
|
|
91
|
-
let { results: a } = await t.getEntityHeaders(n,
|
|
97
|
+
let { results: a } = await t.getEntityHeaders(n, F);
|
|
92
98
|
n.filter((e) => a.find((t) => t.id == e.targetId) == null).forEach((t) => {
|
|
93
|
-
|
|
99
|
+
re({
|
|
94
100
|
ref: t,
|
|
95
101
|
activity: e,
|
|
96
102
|
nodesCopy: r,
|
|
@@ -110,11 +116,11 @@ var D = 400, O = .85, k = (n) => {
|
|
|
110
116
|
} catch (e) {
|
|
111
117
|
console.error(e);
|
|
112
118
|
}
|
|
113
|
-
}, [
|
|
114
|
-
|
|
115
|
-
if (
|
|
116
|
-
let e = [...
|
|
117
|
-
|
|
119
|
+
}, [F, Q]);
|
|
120
|
+
p(() => {
|
|
121
|
+
if (Y && I.length == 0) {
|
|
122
|
+
let e = [...I], t = [...R], n = [];
|
|
123
|
+
Y.forEach((r) => {
|
|
118
124
|
let i = Q({
|
|
119
125
|
entityHeader: r,
|
|
120
126
|
nodesCopy: e,
|
|
@@ -128,86 +134,135 @@ var D = 400, O = .85, k = (n) => {
|
|
|
128
134
|
});
|
|
129
135
|
n.push(a);
|
|
130
136
|
}), Promise.allSettled(n).finally(() => {
|
|
131
|
-
|
|
137
|
+
L(e), z(t), _e(!0);
|
|
132
138
|
});
|
|
133
139
|
}
|
|
134
140
|
}, [
|
|
135
141
|
Q,
|
|
136
|
-
|
|
142
|
+
K,
|
|
137
143
|
$,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
]),
|
|
143
|
-
let t =
|
|
144
|
-
if (
|
|
144
|
+
Y,
|
|
145
|
+
w,
|
|
146
|
+
R,
|
|
147
|
+
I
|
|
148
|
+
]), p(() => {
|
|
149
|
+
let t = W?.data;
|
|
150
|
+
if (W && t?.type == s.EXPAND) {
|
|
145
151
|
let n = t.props;
|
|
146
|
-
if (n.itemCount >
|
|
152
|
+
if (n.itemCount > T) {
|
|
147
153
|
e("Web visualization does not support expanding this many items at this time.", "danger");
|
|
148
154
|
return;
|
|
149
155
|
} else {
|
|
150
|
-
t.label = /* @__PURE__ */
|
|
151
|
-
let e =
|
|
156
|
+
t.label = /* @__PURE__ */ y(g, { size: 30 });
|
|
157
|
+
let e = I.filter((e) => e.id != W.id), r = se([W], R)[0], i = R.filter((e) => e != r);
|
|
152
158
|
$({
|
|
153
159
|
entityHeader: n.entityHeader,
|
|
154
160
|
nodesCopy: e,
|
|
155
161
|
edgesCopy: i
|
|
156
162
|
}).finally(() => {
|
|
157
|
-
|
|
163
|
+
L(e), z(i);
|
|
158
164
|
});
|
|
159
165
|
}
|
|
160
|
-
|
|
166
|
+
G(void 0);
|
|
161
167
|
}
|
|
162
168
|
}, [
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
169
|
+
W,
|
|
170
|
+
I,
|
|
171
|
+
R,
|
|
166
172
|
$
|
|
167
|
-
]),
|
|
168
|
-
let { nodes: e, edges: t } =
|
|
169
|
-
|
|
173
|
+
]), p(() => {
|
|
174
|
+
let { nodes: e, edges: t } = ee(I, R, "TB");
|
|
175
|
+
c(e, B) || (V(e), M && M(e)), c(t, H) || (U(t), N && N(t));
|
|
170
176
|
}, [
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
z,
|
|
174
|
-
V,
|
|
177
|
+
I,
|
|
178
|
+
R,
|
|
175
179
|
B,
|
|
176
180
|
H,
|
|
177
|
-
|
|
181
|
+
V,
|
|
182
|
+
U,
|
|
183
|
+
X,
|
|
178
184
|
Z,
|
|
179
|
-
|
|
185
|
+
w,
|
|
180
186
|
M,
|
|
181
187
|
N
|
|
182
188
|
]);
|
|
183
|
-
let
|
|
189
|
+
let we = f((e) => {
|
|
184
190
|
e && e.deltaX !== void 0 && e.deltaY !== void 0 && window.scrollTo(window.scrollX + e.deltaX, window.scrollY + e.deltaY);
|
|
185
191
|
}, []);
|
|
186
|
-
return /* @__PURE__ */
|
|
192
|
+
return /* @__PURE__ */ y("div", {
|
|
187
193
|
className: "ProvenanceWidget",
|
|
188
194
|
role: "graphics-doc",
|
|
189
195
|
style: {
|
|
190
196
|
width: "100%",
|
|
191
|
-
height:
|
|
197
|
+
height: D,
|
|
198
|
+
backgroundColor: fe,
|
|
199
|
+
padding: "15px"
|
|
192
200
|
},
|
|
193
|
-
children: /* @__PURE__ */ _
|
|
201
|
+
children: be ? /* @__PURE__ */ b(_, {
|
|
202
|
+
sx: {
|
|
203
|
+
display: "flex",
|
|
204
|
+
height: "100%",
|
|
205
|
+
alignItems: "center",
|
|
206
|
+
justifyContent: "center",
|
|
207
|
+
textAlign: "center"
|
|
208
|
+
},
|
|
209
|
+
children: [
|
|
210
|
+
/* @__PURE__ */ y(v, {
|
|
211
|
+
sx: {
|
|
212
|
+
color: k,
|
|
213
|
+
fontSize: "16px",
|
|
214
|
+
lineHeight: "24px",
|
|
215
|
+
fontWeight: 540,
|
|
216
|
+
marginBottom: "12px"
|
|
217
|
+
},
|
|
218
|
+
children: O
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ y(v, {
|
|
221
|
+
sx: {
|
|
222
|
+
color: k,
|
|
223
|
+
fontSize: "14px",
|
|
224
|
+
lineHeight: "20px",
|
|
225
|
+
fontWeight: 440
|
|
226
|
+
},
|
|
227
|
+
children: de(xe)
|
|
228
|
+
}),
|
|
229
|
+
P && /* @__PURE__ */ y(h, {
|
|
230
|
+
variant: "outlined",
|
|
231
|
+
sx: {
|
|
232
|
+
borderRadius: "6px",
|
|
233
|
+
border: "1px solid",
|
|
234
|
+
borderColor: me,
|
|
235
|
+
background: he,
|
|
236
|
+
color: pe,
|
|
237
|
+
fontWeight: 540,
|
|
238
|
+
lineHeight: "12px",
|
|
239
|
+
letterSpacing: "-0.24px",
|
|
240
|
+
marginTop: "20px",
|
|
241
|
+
height: "28px",
|
|
242
|
+
padding: "8px"
|
|
243
|
+
},
|
|
244
|
+
onClick: P,
|
|
245
|
+
children: "Edit Provenance"
|
|
246
|
+
})
|
|
247
|
+
]
|
|
248
|
+
}) : /* @__PURE__ */ y(C, {
|
|
194
249
|
defaultViewport: {
|
|
195
250
|
x: 0,
|
|
196
251
|
y: 0,
|
|
197
|
-
zoom:
|
|
252
|
+
zoom: E
|
|
198
253
|
},
|
|
199
|
-
nodes:
|
|
200
|
-
edges:
|
|
201
|
-
onNodeClick:
|
|
254
|
+
nodes: B,
|
|
255
|
+
edges: H,
|
|
256
|
+
onNodeClick: Ce,
|
|
202
257
|
attributionPosition: "bottom-right",
|
|
203
258
|
onConnect: void 0,
|
|
204
259
|
zoomOnScroll: !1,
|
|
205
|
-
onPaneScroll:
|
|
206
|
-
children: /* @__PURE__ */
|
|
260
|
+
onPaneScroll: we,
|
|
261
|
+
children: /* @__PURE__ */ y(oe, {})
|
|
207
262
|
})
|
|
208
263
|
});
|
|
209
|
-
},
|
|
264
|
+
}, j = (e) => /* @__PURE__ */ y(i, { children: /* @__PURE__ */ y(w, { children: /* @__PURE__ */ y(A, { ...e }) }) });
|
|
210
265
|
//#endregion
|
|
211
|
-
export {
|
|
266
|
+
export { D as EDIT_PROVENANCE_TEXT, O as NO_PROVENANCE_TITLE, j as default };
|
|
212
267
|
|
|
213
268
|
//# sourceMappingURL=ProvenanceGraph.js.map
|