synapse-react-client 4.0.46 → 4.0.47
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.js +1 -1
- package/dist/aridhia-queries/useSubmitAridhiaDar.js +2 -2
- package/dist/aridhia-queries/useSubmitAridhiaDar.js.map +1 -1
- package/dist/components/AccessTokenPage/CreateAccessTokenModal.js +1 -1
- package/dist/components/AccessTokenPage/CreateAccessTokenModal.js.map +1 -1
- package/dist/components/AccountLevelBadges/AccountLevelBadges.js +1 -1
- package/dist/components/AccountLevelBadges/AccountLevelBadges.js.map +1 -1
- package/dist/components/AclEditor/AclEditor.test-utils.js +3 -5
- package/dist/components/AclEditor/AclEditor.test-utils.js.map +1 -1
- package/dist/components/Aridhia/AridhiaAccessStatus.d.ts.map +1 -1
- package/dist/components/Aridhia/AridhiaAccessStatus.js +43 -30
- package/dist/components/Aridhia/AridhiaAccessStatus.js.map +1 -1
- package/dist/components/Aridhia/AridhiaDarStatusPopover.d.ts +6 -2
- package/dist/components/Aridhia/AridhiaDarStatusPopover.d.ts.map +1 -1
- package/dist/components/Aridhia/AridhiaDarStatusPopover.js +101 -31
- package/dist/components/Aridhia/AridhiaDarStatusPopover.js.map +1 -1
- package/dist/components/Aridhia/aridhiaAccessStatusUtils.d.ts +11 -9
- package/dist/components/Aridhia/aridhiaAccessStatusUtils.d.ts.map +1 -1
- package/dist/components/Aridhia/aridhiaAccessStatusUtils.js +24 -13
- package/dist/components/Aridhia/aridhiaAccessStatusUtils.js.map +1 -1
- package/dist/components/Authentication/LastLoginInfo.js +2 -2
- package/dist/components/Authentication/LastLoginInfo.js.map +1 -1
- package/dist/components/Authentication/RecoveryCodeForm.js +1 -1
- package/dist/components/Authentication/RecoveryCodeForm.js.map +1 -1
- package/dist/components/Authentication/RecoveryCodeGrid.js.map +1 -1
- package/dist/components/Authentication/TOTPForm.d.ts.map +1 -1
- package/dist/components/Authentication/TOTPForm.js +3 -3
- package/dist/components/Authentication/TOTPForm.js.map +1 -1
- package/dist/components/Authentication/index.d.ts +6 -6
- package/dist/components/Authentication/index.d.ts.map +1 -1
- package/dist/components/CannedRejectionDialog/CannedRejectionDialog.js +1 -1
- package/dist/components/CannedRejectionDialog/CannedRejectionDialog.js.map +1 -1
- package/dist/components/CardContainer/CardContainer.js +7 -7
- package/dist/components/CardContainer/CardContainer.js.map +1 -1
- package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.js +1 -1
- package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.js.map +1 -1
- package/dist/components/ChallengeSubmission/ChallengeSubmission.d.ts.map +1 -1
- package/dist/components/ChallengeSubmission/ChallengeSubmission.js +1 -1
- package/dist/components/ChallengeSubmission/ChallengeSubmission.js.map +1 -1
- package/dist/components/ChallengeTeamWizard/SelectChallengeTeam.js +1 -1
- package/dist/components/ChallengeTeamWizard/SelectChallengeTeam.js.map +1 -1
- package/dist/components/CitationPopover/CitationPopoverUtils.js +2 -2
- package/dist/components/CitationPopover/CitationPopoverUtils.js.map +1 -1
- package/dist/components/CohortBuilder/CohortBuilder.css +1 -0
- package/dist/components/CohortBuilder/CohortBuilder.d.ts +35 -0
- package/dist/components/CohortBuilder/CohortBuilder.d.ts.map +1 -0
- package/dist/components/CohortBuilder/CohortBuilder.js +108 -0
- package/dist/components/CohortBuilder/CohortBuilder.js.map +1 -0
- package/dist/components/CohortBuilder/CohortBuilder.module.js +10 -0
- package/dist/components/CohortBuilder/CohortBuilder.module.js.map +1 -0
- package/dist/components/CohortBuilder/CohortBuilder.module.scss +20 -0
- package/dist/components/CohortBuilder/CohortFilesPanel.d.ts +16 -0
- package/dist/components/CohortBuilder/CohortFilesPanel.d.ts.map +1 -0
- package/dist/components/CohortBuilder/CohortFilesPanel.js +124 -0
- package/dist/components/CohortBuilder/CohortFilesPanel.js.map +1 -0
- package/dist/components/CohortBuilder/cohortHandOff.d.ts +25 -0
- package/dist/components/CohortBuilder/cohortHandOff.d.ts.map +1 -0
- package/dist/components/CohortBuilder/cohortHandOff.js +26 -0
- package/dist/components/CohortBuilder/cohortHandOff.js.map +1 -0
- package/dist/components/ColumnFilter/ColumnFilter.d.ts.map +1 -1
- package/dist/components/ColumnFilter/ColumnFilter.js +14 -13
- package/dist/components/ColumnFilter/ColumnFilter.js.map +1 -1
- package/dist/components/DataExplorer/DataExplorer.d.ts.map +1 -1
- package/dist/components/DataExplorer/DataExplorer.js.map +1 -1
- package/dist/components/DataGrid/columns/AutocompleteColumn.d.ts +11 -2
- package/dist/components/DataGrid/columns/AutocompleteColumn.d.ts.map +1 -1
- package/dist/components/DataGrid/columns/AutocompleteColumn.js +115 -109
- package/dist/components/DataGrid/columns/AutocompleteColumn.js.map +1 -1
- package/dist/components/DataGrid/columns/NumberColumn.js +1 -1
- package/dist/components/DataGrid/columns/NumberColumn.js.map +1 -1
- package/dist/components/DataGrid/columns/NumberOrEnumColumn.d.ts +20 -0
- package/dist/components/DataGrid/columns/NumberOrEnumColumn.d.ts.map +1 -0
- package/dist/components/DataGrid/columns/NumberOrEnumColumn.js +18 -0
- package/dist/components/DataGrid/columns/NumberOrEnumColumn.js.map +1 -0
- package/dist/components/DataGrid/components/contextMenu.js +3 -3
- package/dist/components/DataGrid/components/contextMenu.js.map +1 -1
- package/dist/components/DataGrid/hooks/useGridUndoRedo.d.ts.map +1 -1
- package/dist/components/DataGrid/hooks/useGridUndoRedo.js +9 -7
- package/dist/components/DataGrid/hooks/useGridUndoRedo.js.map +1 -1
- package/dist/components/DataGrid/hooks/useStack.d.ts +1 -1
- package/dist/components/DataGrid/hooks/useStack.js +2 -2
- package/dist/components/DataGrid/hooks/useStack.js.map +1 -1
- package/dist/components/DataGrid/utils/columnFactory.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/columnFactory.js +47 -42
- package/dist/components/DataGrid/utils/columnFactory.js.map +1 -1
- package/dist/components/DataGrid/utils/extractColumnValidationMessages.js +7 -7
- package/dist/components/DataGrid/utils/extractColumnValidationMessages.js.map +1 -1
- package/dist/components/DataGrid/utils/json-rx/JsonRx.js +2 -2
- package/dist/components/DataGrid/utils/json-rx/JsonRx.js.map +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js.map +1 -1
- package/dist/components/DownloadCart/MeetAccessRequirementCard.js +1 -1
- package/dist/components/DownloadCart/MeetAccessRequirementCard.js.map +1 -1
- package/dist/components/EntityDownloadConfirmation/EntityDownloadConfirmation.js +5 -5
- package/dist/components/EntityDownloadConfirmation/EntityDownloadConfirmation.js.map +1 -1
- package/dist/components/EntityFinder/details/view/DetailsView.d.ts.map +1 -1
- package/dist/components/EntityFinder/details/view/DetailsView.js +4 -4
- package/dist/components/EntityFinder/details/view/DetailsView.js.map +1 -1
- package/dist/components/EntityHeaderTable/EntityHeaderTable.js +4 -4
- package/dist/components/EntityHeaderTable/Filter.d.ts.map +1 -1
- package/dist/components/EntityHeaderTable/Filter.js +1 -1
- package/dist/components/EntityHeaderTable/Filter.js.map +1 -1
- package/dist/components/Evaluation/EvaluationRoundEditor.js.map +1 -1
- package/dist/components/FeaturedDataTabs/FacetPlotsCard.d.ts.map +1 -1
- package/dist/components/FeaturedDataTabs/FacetPlotsCard.js +80 -84
- package/dist/components/FeaturedDataTabs/FacetPlotsCard.js.map +1 -1
- package/dist/components/FormTemplateEditor/FormStructurePanel.js +7 -7
- package/dist/components/FormTemplateEditor/StepCard.js +9 -9
- package/dist/components/FormTemplateEditor/schemaFieldUtils.js +2 -2
- package/dist/components/FormTemplateEditor/schemaFieldUtils.js.map +1 -1
- package/dist/components/FullTextSearch/FullTextSearch.js +8 -8
- package/dist/components/GenericCard/CardUtils.js.map +1 -1
- package/dist/components/GenericCard/DuoTermTags/DuoTermTags.js +1 -1
- package/dist/components/GenericCard/DuoTermTags/DuoTermTags.js.map +1 -1
- package/dist/components/GenericCard/DuoTermTags/duoTerms.js +1 -1
- package/dist/components/GenericCard/DuoTermTags/duoTerms.js.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.js +37 -37
- package/dist/components/GoalsV3/GoalsV3.js +1 -1
- package/dist/components/GoalsV3/GoalsV3.js.map +1 -1
- package/dist/components/HexGrid/HexGrid.d.ts +3 -1
- package/dist/components/HexGrid/HexGrid.d.ts.map +1 -1
- package/dist/components/HexGrid/HexGrid.js +14 -13
- package/dist/components/HexGrid/HexGrid.js.map +1 -1
- package/dist/components/IconSvg/index.d.ts +1 -1
- package/dist/components/IconSvg/index.d.ts.map +1 -1
- package/dist/components/IconSvg/index.js.map +1 -1
- package/dist/components/JsonSchemaForm/templates/BaseInputTemplate.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/templates/BaseInputTemplate.js +3 -3
- package/dist/components/JsonSchemaForm/templates/BaseInputTemplate.js.map +1 -1
- package/dist/components/Markdown/MarkdownEditor.js +1 -1
- package/dist/components/Markdown/MarkdownEditor.js.map +1 -1
- package/dist/components/Markdown/widget/index.d.ts +1 -1
- package/dist/components/Markdown/widget/index.d.ts.map +1 -1
- package/dist/components/ModalDownload/ModalDownload.d.ts.map +1 -1
- package/dist/components/ModalDownload/ModalDownload.js +2 -1
- package/dist/components/ModalDownload/ModalDownload.js.map +1 -1
- package/dist/components/Plot/BarPlot.js +1 -1
- package/dist/components/Plot/BarPlot.js.map +1 -1
- package/dist/components/Plot/PlotPanelHeader.d.ts +3 -2
- package/dist/components/Plot/PlotPanelHeader.d.ts.map +1 -1
- package/dist/components/Plot/PlotPanelHeader.js.map +1 -1
- package/dist/components/ProgrammaticTableDownload/ProgrammaticTableDownload.js +1 -1
- package/dist/components/ProgrammaticTableDownload/ProgrammaticTableDownload.js.map +1 -1
- package/dist/components/ProvenanceGraph/ProvenanceExternalIcon.js +1 -1
- package/dist/components/ProvenanceGraph/ProvenanceExternalIcon.js.map +1 -1
- package/dist/components/ProvenanceGraph/ProvenanceGraph.d.ts.map +1 -1
- package/dist/components/ProvenanceGraph/ProvenanceGraph.js +3 -3
- package/dist/components/ProvenanceGraph/ProvenanceGraph.js.map +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.d.ts.map +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.js +28 -27
- package/dist/components/QueryBuilder/FilterConditionRow.js.map +1 -1
- package/dist/components/QueryBuilder/FilterGroupNode.d.ts.map +1 -1
- package/dist/components/QueryBuilder/FilterGroupNode.js +91 -75
- package/dist/components/QueryBuilder/FilterGroupNode.js.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderControls.css +1 -1
- package/dist/components/QueryBuilder/QueryBuilderControls.d.ts.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderControls.js +91 -79
- package/dist/components/QueryBuilder/QueryBuilderControls.js.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderControls.module.js +11 -11
- package/dist/components/QueryBuilder/QueryBuilderControls.module.js.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderControls.module.scss +2 -0
- package/dist/components/QueryBuilder/QueryBuilderInternalContext.d.ts +2 -0
- package/dist/components/QueryBuilder/QueryBuilderInternalContext.d.ts.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderInternalContext.js.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderLimits.d.ts +18 -0
- package/dist/components/QueryBuilder/queryBuilderLimits.d.ts.map +1 -0
- package/dist/components/QueryBuilder/queryBuilderLimits.js +38 -0
- package/dist/components/QueryBuilder/queryBuilderLimits.js.map +1 -0
- package/dist/components/QueryBuilder/queryBuilderMetadata.d.ts +0 -8
- package/dist/components/QueryBuilder/queryBuilderMetadata.d.ts.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderMetadata.js +6 -9
- package/dist/components/QueryBuilder/queryBuilderMetadata.js.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderTranslation.d.ts +5 -4
- package/dist/components/QueryBuilder/queryBuilderTranslation.d.ts.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderTranslation.js +58 -33
- package/dist/components/QueryBuilder/queryBuilderTranslation.js.map +1 -1
- package/dist/components/QueryBuilder/useQBCombinedSql.d.ts.map +1 -1
- package/dist/components/QueryBuilder/useQBCombinedSql.js +4 -4
- package/dist/components/QueryBuilder/useQBCombinedSql.js.map +1 -1
- package/dist/components/QueryBuilder/useQBValueDisplayName.d.ts.map +1 -1
- package/dist/components/QueryBuilder/useQBValueDisplayName.js +5 -5
- package/dist/components/QueryBuilder/useQBValueDisplayName.js.map +1 -1
- package/dist/components/QuerySortSelector.js +5 -5
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js +21 -21
- package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js.map +1 -1
- package/dist/components/QueryWrapper/AggregateQueryErrorNotice.d.ts +20 -0
- package/dist/components/QueryWrapper/AggregateQueryErrorNotice.d.ts.map +1 -0
- package/dist/components/QueryWrapper/AggregateQueryErrorNotice.js +50 -0
- package/dist/components/QueryWrapper/AggregateQueryErrorNotice.js.map +1 -0
- package/dist/components/QueryWrapper/TableQueryUseQueryOptions.d.ts +5 -3
- package/dist/components/QueryWrapper/TableQueryUseQueryOptions.d.ts.map +1 -1
- package/dist/components/QueryWrapper/TableQueryUseQueryOptions.js +7 -3
- package/dist/components/QueryWrapper/TableQueryUseQueryOptions.js.map +1 -1
- package/dist/components/QueryWrapper/downloadListFiles.d.ts +25 -0
- package/dist/components/QueryWrapper/downloadListFiles.d.ts.map +1 -0
- package/dist/components/QueryWrapper/downloadListFiles.js +39 -0
- package/dist/components/QueryWrapper/downloadListFiles.js.map +1 -0
- package/dist/components/QueryWrapper/useAddSelectedRowsToDownloadList.d.ts +16 -0
- package/dist/components/QueryWrapper/useAddSelectedRowsToDownloadList.d.ts.map +1 -0
- package/dist/components/QueryWrapper/useAddSelectedRowsToDownloadList.js +50 -0
- package/dist/components/QueryWrapper/useAddSelectedRowsToDownloadList.js.map +1 -0
- package/dist/components/QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.d.ts +4 -1
- package/dist/components/QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.d.ts.map +1 -1
- package/dist/components/QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.js +15 -28
- package/dist/components/QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.js.map +1 -1
- package/dist/components/QueryWrapper/useOnQueryDataChange.d.ts.map +1 -1
- package/dist/components/QueryWrapper/useOnQueryDataChange.js +7 -6
- package/dist/components/QueryWrapper/useOnQueryDataChange.js.map +1 -1
- package/dist/components/QueryWrapperErrorBoundary.d.ts +3 -1
- package/dist/components/QueryWrapperErrorBoundary.d.ts.map +1 -1
- package/dist/components/QueryWrapperErrorBoundary.js +26 -21
- package/dist/components/QueryWrapperErrorBoundary.js.map +1 -1
- package/dist/components/QueryWrapperPlotNav/LastUpdatedOn.js +7 -7
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +2 -2
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +34 -32
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperSynapsePlot.js +7 -7
- package/dist/components/QueryWrapperPlotNav/UseRowSet.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/UseRowSet.js +12 -12
- package/dist/components/QueryWrapperPlotNav/UseRowSet.js.map +1 -1
- package/dist/components/RowDataTable/CategorizedRowDataTable.css +1 -0
- package/dist/components/RowDataTable/CategorizedRowDataTable.d.ts +33 -0
- package/dist/components/RowDataTable/CategorizedRowDataTable.d.ts.map +1 -0
- package/dist/components/RowDataTable/CategorizedRowDataTable.js +64 -0
- package/dist/components/RowDataTable/CategorizedRowDataTable.js.map +1 -0
- package/dist/components/RowDataTable/CategorizedRowDataTable.module.js +8 -0
- package/dist/components/RowDataTable/CategorizedRowDataTable.module.js.map +1 -0
- package/dist/components/RowDataTable/CategorizedRowDataTable.module.scss +18 -0
- package/dist/components/RowDataTable/RowDataTable.d.ts +13 -0
- package/dist/components/RowDataTable/RowDataTable.d.ts.map +1 -1
- package/dist/components/RowDataTable/RowDataTable.js +25 -8
- package/dist/components/RowDataTable/RowDataTable.js.map +1 -1
- package/dist/components/RssFeedCards/RssFeedCards.js +1 -1
- package/dist/components/RssFeedCards/RssFeedCards.js.map +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/field/AdditionalPropertiesSchemaField.d.ts.map +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/field/AdditionalPropertiesSchemaField.js +2 -2
- package/dist/components/SchemaDrivenAnnotationEditor/field/AdditionalPropertiesSchemaField.js.map +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/template/ObjectFieldTemplate.js +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/template/ObjectFieldTemplate.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts +17 -9
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +39 -30
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -1
- package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.js +24 -24
- package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.js.map +1 -1
- package/dist/components/StandaloneQueryWrapper/StandaloneQueryWrapper.js +8 -8
- package/dist/components/SynapseChat/SynapseChatMessage.js +1 -1
- package/dist/components/SynapseChat/SynapseChatMessage.js.map +1 -1
- package/dist/components/SynapseForm/NavButtons.js.map +1 -1
- package/dist/components/SynapseForm/StepsSideNav.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/HighlightedTypography.js +1 -1
- package/dist/components/SynapseSearchPageResults/HighlightedTypography.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/SearchFacetPanel/SearchFacetPanelUtils.d.ts.map +1 -1
- package/dist/components/SynapseSearchPageResults/SearchFacetPanel/SearchFacetPanelUtils.js +3 -3
- package/dist/components/SynapseSearchPageResults/SearchFacetPanel/SearchFacetPanelUtils.js.map +1 -1
- package/dist/components/SynapseTable/RowSelection/RowSelectionControls.d.ts.map +1 -1
- package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js +38 -44
- package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js.map +1 -1
- package/dist/components/SynapseTable/RowSelection/RowSelectionUI.js +4 -4
- package/dist/components/SynapseTable/SqlEditor.js +7 -7
- package/dist/components/SynapseTable/SynapseTable.js +8 -8
- package/dist/components/SynapseTable/SynapseTable.js.map +1 -1
- package/dist/components/SynapseTable/SynapseTableRenderers.d.ts.map +1 -1
- package/dist/components/SynapseTable/SynapseTableRenderers.js +73 -72
- package/dist/components/SynapseTable/SynapseTableRenderers.js.map +1 -1
- package/dist/components/SynapseTable/SynapseTableUtils.js +1 -1
- package/dist/components/SynapseTable/SynapseTableUtils.js.map +1 -1
- package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.d.ts.map +1 -1
- package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.js +44 -45
- package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.js.map +1 -1
- package/dist/components/SynapseTable/datasets/DatasetEditorVersionCell.js +1 -1
- package/dist/components/SynapseTable/datasets/DatasetEditorVersionCell.js.map +1 -1
- package/dist/components/SynapseTable/datasets/DatasetItemsEditor.d.ts.map +1 -1
- package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js +142 -142
- package/dist/components/SynapseTable/datasets/DatasetItemsEditor.js.map +1 -1
- package/dist/components/SynapseTable/export/ExportToAnalysisPlatformDialog.js +4 -4
- package/dist/components/SynapseTable/export/ExternalPlatformActionsRequiredPrecheck.js +12 -12
- package/dist/components/SynapseTable/export/ExternalPlatformActionsRequiredPrecheck.js.map +1 -1
- package/dist/components/SynapseTable/table-top/ColumnSelection.js +6 -6
- package/dist/components/SynapseTable/table-top/DownloadOptions.d.ts +0 -1
- package/dist/components/SynapseTable/table-top/DownloadOptions.d.ts.map +1 -1
- package/dist/components/SynapseTable/table-top/DownloadOptions.js +64 -57
- package/dist/components/SynapseTable/table-top/DownloadOptions.js.map +1 -1
- package/dist/components/SynapseTable/usePrefetchTableData.d.ts.map +1 -1
- package/dist/components/SynapseTable/usePrefetchTableData.js +3 -3
- package/dist/components/SynapseTable/usePrefetchTableData.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/ColumnModelForm.js +1 -1
- package/dist/components/TableColumnSchemaEditor/ColumnModelForm.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaEditorTestUtils.js +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaEditorTestUtils.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaEditorUtils.js +2 -2
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaEditorUtils.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaForm.js +60 -60
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaForm.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/Validators/DatetimeSchema.js +1 -1
- package/dist/components/TableColumnSchemaEditor/Validators/DatetimeSchema.js.map +1 -1
- package/dist/components/TanStackTable/ColumnHeaderEnumFilter.js +1 -1
- package/dist/components/TanStackTable/ColumnHeaderEnumFilter.js.map +1 -1
- package/dist/components/TanStackTable/StyledTanStackTable.d.ts.map +1 -1
- package/dist/components/TanStackTable/StyledTanStackTable.js +1 -4
- package/dist/components/TanStackTable/StyledTanStackTable.js.map +1 -1
- package/dist/components/TermsAndConditions/TermsAndConditions.js.map +1 -1
- package/dist/components/TotalQueryResults.js +14 -14
- package/dist/components/Webhook/WebhookDashboard.d.ts.map +1 -1
- package/dist/components/Webhook/WebhookDashboard.js +2 -2
- package/dist/components/Webhook/WebhookDashboard.js.map +1 -1
- package/dist/components/download_list/DownloadConfirmationUtils.d.ts +5 -1
- package/dist/components/download_list/DownloadConfirmationUtils.d.ts.map +1 -1
- package/dist/components/download_list/DownloadConfirmationUtils.js +2 -2
- package/dist/components/download_list/DownloadConfirmationUtils.js.map +1 -1
- package/dist/components/error/ErrorBanner.d.ts.map +1 -1
- package/dist/components/error/ErrorBanner.js +49 -46
- package/dist/components/error/ErrorBanner.js.map +1 -1
- package/dist/components/file/upload/MultiFileUploadProgress.js +5 -5
- package/dist/components/row_renderers/Dataset.d.ts.map +1 -1
- package/dist/components/row_renderers/Dataset.js +6 -6
- package/dist/components/row_renderers/Dataset.js.map +1 -1
- package/dist/components/row_renderers/Funder.js +1 -1
- package/dist/components/row_renderers/Funder.js.map +1 -1
- package/dist/components/widgets/ElementWithTooltip.d.ts +6 -1
- package/dist/components/widgets/ElementWithTooltip.d.ts.map +1 -1
- package/dist/components/widgets/ElementWithTooltip.js +22 -14
- package/dist/components/widgets/ElementWithTooltip.js.map +1 -1
- package/dist/components/widgets/RangeSlider/RangeSlider.d.ts.map +1 -1
- package/dist/components/widgets/RangeSlider/RangeSlider.js +1 -1
- package/dist/components/widgets/RangeSlider/RangeSlider.js.map +1 -1
- package/dist/components/widgets/SynapseImage.js +1 -1
- package/dist/components/widgets/SynapseImage.js.map +1 -1
- package/dist/components/widgets/facet-nav/FacetNavPanel.d.ts +16 -5
- package/dist/components/widgets/facet-nav/FacetNavPanel.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/FacetNavPanel.js +115 -102
- package/dist/components/widgets/facet-nav/FacetNavPanel.js.map +1 -1
- package/dist/components/widgets/facet-nav/FacetPlotLegendList.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/FacetPlotLegendList.js +4 -2
- package/dist/components/widgets/facet-nav/FacetPlotLegendList.js.map +1 -1
- package/dist/components/widgets/facet-nav/FacetPlotLegendTable.js +1 -1
- package/dist/components/widgets/facet-nav/FacetPlotLegendTable.js.map +1 -1
- package/dist/components/widgets/facet-nav/FacetPlotLegendUtils.d.ts +2 -0
- package/dist/components/widgets/facet-nav/FacetPlotLegendUtils.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/FacetPlotLegendUtils.js.map +1 -1
- package/dist/components/widgets/facet-nav/PlotsContainer.d.ts +7 -0
- package/dist/components/widgets/facet-nav/PlotsContainer.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/PlotsContainer.js +47 -45
- package/dist/components/widgets/facet-nav/PlotsContainer.js.map +1 -1
- package/dist/components/widgets/facet-nav/SelectionCriteriaPills.js +4 -4
- package/dist/components/widgets/facet-nav/useFacetPlots.d.ts +3 -2
- package/dist/components/widgets/facet-nav/useFacetPlots.d.ts.map +1 -1
- package/dist/components/widgets/facet-nav/useFacetPlots.js +16 -15
- package/dist/components/widgets/facet-nav/useFacetPlots.js.map +1 -1
- package/dist/components/widgets/query-filter/CombinedRangeFacetFilter.js +4 -4
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.d.ts +2 -2
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.js +62 -60
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.js.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.d.ts +2 -0
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.js +10 -10
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.js.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.d.ts +1 -0
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.js +2 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.js.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUtils.d.ts +3 -2
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUtils.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUtils.js.map +1 -1
- package/dist/components/widgets/query-filter/FacetFilterControls.d.ts +3 -2
- package/dist/components/widgets/query-filter/FacetFilterControls.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/FacetFilterControls.js +63 -62
- package/dist/components/widgets/query-filter/FacetFilterControls.js.map +1 -1
- package/dist/components/widgets/query-filter/JsonColumnFacetFilters.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/JsonColumnFacetFilters.js +30 -29
- package/dist/components/widgets/query-filter/JsonColumnFacetFilters.js.map +1 -1
- package/dist/components/widgets/query-filter/RangeFacetFilter.js +5 -5
- package/dist/mocks/cohortBuilder/cohortBuilderMockProfiles.d.ts +53 -0
- package/dist/mocks/cohortBuilder/cohortBuilderMockProfiles.d.ts.map +1 -0
- package/dist/mocks/cohortBuilder/cohortBuilderMockProfiles.js +391 -0
- package/dist/mocks/cohortBuilder/cohortBuilderMockProfiles.js.map +1 -0
- package/dist/mocks/cohortBuilder/cohortBuilderMockQueryEngine.d.ts +41 -0
- package/dist/mocks/cohortBuilder/cohortBuilderMockQueryEngine.d.ts.map +1 -0
- package/dist/mocks/cohortBuilder/cohortBuilderMockQueryEngine.js +379 -0
- package/dist/mocks/cohortBuilder/cohortBuilderMockQueryEngine.js.map +1 -0
- package/dist/mocks/cohortBuilder/cohortBuilderSyntheticData.d.ts +26 -0
- package/dist/mocks/cohortBuilder/cohortBuilderSyntheticData.d.ts.map +1 -0
- package/dist/mocks/cohortBuilder/cohortBuilderSyntheticData.js +112 -0
- package/dist/mocks/cohortBuilder/cohortBuilderSyntheticData.js.map +1 -0
- package/dist/mocks/mockAnnotationColumns.d.ts.map +1 -1
- package/dist/mocks/mockAnnotationColumns.js +1 -1
- package/dist/mocks/mockAnnotationColumns.js.map +1 -1
- package/dist/mocks/msw/handlers/aridhiaHandlers.d.ts +9 -0
- package/dist/mocks/msw/handlers/aridhiaHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/aridhiaHandlers.js +24 -15
- package/dist/mocks/msw/handlers/aridhiaHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/asyncJobHandlers.d.ts +21 -2
- package/dist/mocks/msw/handlers/asyncJobHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/asyncJobHandlers.js +30 -22
- package/dist/mocks/msw/handlers/asyncJobHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/cohortBuilderHandlers.d.ts +27 -0
- package/dist/mocks/msw/handlers/cohortBuilderHandlers.d.ts.map +1 -0
- package/dist/mocks/msw/handlers/cohortBuilderHandlers.js +158 -0
- package/dist/mocks/msw/handlers/cohortBuilderHandlers.js.map +1 -0
- package/dist/mocks/msw/handlers/subscriptionHandlers.js +1 -1
- package/dist/mocks/msw/handlers/subscriptionHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/userProfileHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/userProfileHandlers.js +2 -2
- package/dist/mocks/msw/handlers/userProfileHandlers.js.map +1 -1
- package/dist/mocks/query/mockColumnCategoryTable.d.ts +19 -0
- package/dist/mocks/query/mockColumnCategoryTable.d.ts.map +1 -0
- package/dist/mocks/query/mockColumnCategoryTable.js +188 -0
- package/dist/mocks/query/mockColumnCategoryTable.js.map +1 -0
- package/dist/stories/ColorPaletteInspector.d.ts.map +1 -1
- package/dist/stories/ColorPaletteInspector.js +2 -2
- package/dist/stories/ColorPaletteInspector.js.map +1 -1
- package/dist/style/components/facet_nav/_facet-nav-panel.scss +8 -0
- package/dist/style/main.css +1 -1
- package/dist/synapse-queries/auth/useOIDC.js +2 -2
- package/dist/synapse-queries/auth/useOIDC.js.map +1 -1
- package/dist/synapse-queries/auth/useUnbindOAuthProviderIdentity.js +2 -2
- package/dist/synapse-queries/auth/useUnbindOAuthProviderIdentity.js.map +1 -1
- package/dist/synapse-queries/challenge/useChallenge.js +2 -2
- package/dist/synapse-queries/challenge/useChallenge.js.map +1 -1
- package/dist/synapse-queries/chat/useChat.js +8 -8
- package/dist/synapse-queries/chat/useChat.js.map +1 -1
- package/dist/synapse-queries/curation/task/useCurationTask.js +10 -10
- package/dist/synapse-queries/curation/task/useCurationTask.js.map +1 -1
- package/dist/synapse-queries/dataaccess/useAccessRequirements.js +24 -24
- package/dist/synapse-queries/dataaccess/useAccessRequirements.js.map +1 -1
- package/dist/synapse-queries/dataaccess/useDataAccessSubmission.js +4 -4
- package/dist/synapse-queries/dataaccess/useDataAccessSubmission.js.map +1 -1
- package/dist/synapse-queries/dataaccess/useEDuc.js +6 -6
- package/dist/synapse-queries/dataaccess/useEDuc.js.map +1 -1
- package/dist/synapse-queries/dataaccess/useFormTemplate.js +4 -4
- package/dist/synapse-queries/dataaccess/useFormTemplate.js.map +1 -1
- package/dist/synapse-queries/download/index.js +2 -2
- package/dist/synapse-queries/download/useDownloadList.d.ts +5 -0
- package/dist/synapse-queries/download/useDownloadList.d.ts.map +1 -1
- package/dist/synapse-queries/download/useDownloadList.js +14 -13
- package/dist/synapse-queries/download/useDownloadList.js.map +1 -1
- package/dist/synapse-queries/entity/useEntity.d.ts.map +1 -1
- package/dist/synapse-queries/entity/useEntity.js +20 -20
- package/dist/synapse-queries/entity/useEntity.js.map +1 -1
- package/dist/synapse-queries/entity/useExportToADWorkbench.d.ts.map +1 -1
- package/dist/synapse-queries/entity/useExportToADWorkbench.js +2 -1
- package/dist/synapse-queries/entity/useExportToADWorkbench.js.map +1 -1
- package/dist/synapse-queries/entity/useExportToCavatica.d.ts.map +1 -1
- package/dist/synapse-queries/entity/useExportToCavatica.js +3 -2
- package/dist/synapse-queries/entity/useExportToCavatica.js.map +1 -1
- package/dist/synapse-queries/entity/useExportToPluto.d.ts.map +1 -1
- package/dist/synapse-queries/entity/useExportToPluto.js +2 -1
- package/dist/synapse-queries/entity/useExportToPluto.js.map +1 -1
- package/dist/synapse-queries/entity/useGetQueryResultBundle.d.ts.map +1 -1
- package/dist/synapse-queries/entity/useGetQueryResultBundle.js +4 -7
- package/dist/synapse-queries/entity/useGetQueryResultBundle.js.map +1 -1
- package/dist/synapse-queries/forum/useReply.js +6 -6
- package/dist/synapse-queries/forum/useReply.js.map +1 -1
- package/dist/synapse-queries/forum/useThread.js +14 -14
- package/dist/synapse-queries/forum/useThread.js.map +1 -1
- package/dist/synapse-queries/grid/useEstablishWebsocketConnection.js +1 -1
- package/dist/synapse-queries/grid/useEstablishWebsocketConnection.js.map +1 -1
- package/dist/synapse-queries/grid/useGridSession.js +4 -4
- package/dist/synapse-queries/grid/useGridSession.js.map +1 -1
- package/dist/synapse-queries/index.js +177 -176
- package/dist/synapse-queries/oauth/useOAuthClient.js +9 -9
- package/dist/synapse-queries/oauth/useOAuthClient.js.map +1 -1
- package/dist/synapse-queries/portal/usePortal.js +7 -7
- package/dist/synapse-queries/portal/usePortal.js.map +1 -1
- package/dist/synapse-queries/subscription/useSubscription.js +4 -4
- package/dist/synapse-queries/subscription/useSubscription.js.map +1 -1
- package/dist/synapse-queries/table/useTableUpdateTransaction.js +2 -2
- package/dist/synapse-queries/table/useTableUpdateTransaction.js.map +1 -1
- package/dist/synapse-queries/team/useTeam.js +2 -2
- package/dist/synapse-queries/team/useTeam.js.map +1 -1
- package/dist/synapse-queries/team/useTeamList.d.ts.map +1 -1
- package/dist/synapse-queries/team/useTeamList.js +3 -3
- package/dist/synapse-queries/team/useTeamList.js.map +1 -1
- package/dist/synapse-queries/team/useTeamMembers.js +8 -8
- package/dist/synapse-queries/team/useTeamMembers.js.map +1 -1
- package/dist/synapse-queries/termsOfService/useTermsOfService.js +2 -2
- package/dist/synapse-queries/termsOfService/useTermsOfService.js.map +1 -1
- package/dist/synapse-queries/trash/useTrashCan.js +4 -4
- package/dist/synapse-queries/trash/useTrashCan.js.map +1 -1
- package/dist/synapse-queries/user/useCertificationQuiz.js +2 -2
- package/dist/synapse-queries/user/useCertificationQuiz.js.map +1 -1
- package/dist/synapse-queries/user/useFavorites.js +4 -4
- package/dist/synapse-queries/user/useFavorites.js.map +1 -1
- package/dist/synapse-queries/user/useRevokeCertification.js +2 -2
- package/dist/synapse-queries/user/useRevokeCertification.js.map +1 -1
- package/dist/synapse-queries/wiki/useWiki.js +10 -10
- package/dist/synapse-queries/wiki/useWiki.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/ContentTypeUtils.js +4 -4
- package/dist/utils/ContentTypeUtils.js.map +1 -1
- package/dist/utils/PermissionLevelToAccessType.js +1 -1
- package/dist/utils/PermissionLevelToAccessType.js.map +1 -1
- package/dist/utils/analytics/useGoogleAnalytics.js +1 -1
- package/dist/utils/analytics/useGoogleAnalytics.js.map +1 -1
- package/dist/utils/context/DocumentMetadataContext.js +1 -1
- package/dist/utils/context/DocumentMetadataContext.js.map +1 -1
- package/dist/utils/functions/AccessControlListUtils.d.ts.map +1 -1
- package/dist/utils/functions/AccessControlListUtils.js +3 -3
- package/dist/utils/functions/AccessControlListUtils.js.map +1 -1
- package/dist/utils/functions/ArrayUtils.js +2 -2
- package/dist/utils/functions/ArrayUtils.js.map +1 -1
- package/dist/utils/functions/FileHandleUtils.js +1 -1
- package/dist/utils/functions/FileHandleUtils.js.map +1 -1
- package/dist/utils/functions/RegularExpressions.js +1 -1
- package/dist/utils/functions/RegularExpressions.js.map +1 -1
- package/dist/utils/functions/StringUtils.d.ts.map +1 -1
- package/dist/utils/functions/StringUtils.js +1 -2
- package/dist/utils/functions/StringUtils.js.map +1 -1
- package/dist/utils/functions/deepLinkingUtils.js +2 -2
- package/dist/utils/functions/deepLinkingUtils.js.map +1 -1
- package/dist/utils/functions/enumerationFacet.d.ts +26 -0
- package/dist/utils/functions/enumerationFacet.d.ts.map +1 -0
- package/dist/utils/functions/enumerationFacet.js +27 -0
- package/dist/utils/functions/enumerationFacet.js.map +1 -0
- package/dist/utils/functions/facetCountUtils.d.ts +12 -0
- package/dist/utils/functions/facetCountUtils.d.ts.map +1 -0
- package/dist/utils/functions/facetCountUtils.js +9 -0
- package/dist/utils/functions/facetCountUtils.js.map +1 -0
- package/dist/utils/functions/getEndpoint.js.map +1 -1
- package/dist/utils/functions/getUserData.js +1 -1
- package/dist/utils/functions/getUserData.js.map +1 -1
- package/dist/utils/functions/queryUtils.d.ts +1 -1
- package/dist/utils/functions/queryUtils.d.ts.map +1 -1
- package/dist/utils/functions/queryUtils.js +26 -22
- package/dist/utils/functions/queryUtils.js.map +1 -1
- package/dist/utils/functions/testDownloadSpeed.d.ts.map +1 -1
- package/dist/utils/functions/testDownloadSpeed.js +17 -26
- package/dist/utils/functions/testDownloadSpeed.js.map +1 -1
- package/dist/utils/functions/unCamelCase.js +1 -1
- package/dist/utils/functions/unCamelCase.js.map +1 -1
- package/dist/utils/hooks/useGetInfoFromIds.js +5 -5
- package/dist/utils/hooks/useGetInfoFromIds.js.map +1 -1
- package/dist/utils/hooks/useImmutableTableQuery/TableQueryReducerActions.js +1 -1
- package/dist/utils/hooks/useImmutableTableQuery/TableQueryReducerActions.js.map +1 -1
- package/dist/utils/hooks/useLogin.d.ts.map +1 -1
- package/dist/utils/hooks/useLogin.js +5 -5
- package/dist/utils/hooks/useLogin.js.map +1 -1
- package/dist/utils/hooks/useUploadFileEntity/useCreateFolderPath.js.map +1 -1
- package/dist/utils/jsonschema/collectTopLevelProperties.d.ts +6 -0
- package/dist/utils/jsonschema/collectTopLevelProperties.d.ts.map +1 -1
- package/dist/utils/jsonschema/collectTopLevelProperties.js +1 -1
- package/dist/utils/jsonschema/collectTopLevelProperties.js.map +1 -1
- package/dist/utils/jsonschema/getNumberOrEnumInfo.d.ts +22 -0
- package/dist/utils/jsonschema/getNumberOrEnumInfo.d.ts.map +1 -0
- package/dist/utils/jsonschema/getNumberOrEnumInfo.js +39 -0
- package/dist/utils/jsonschema/getNumberOrEnumInfo.js.map +1 -0
- package/dist/utils/jsonschema/getOnlyNonNullOneOfOption.d.ts +1 -0
- package/dist/utils/jsonschema/getOnlyNonNullOneOfOption.d.ts.map +1 -1
- package/dist/utils/jsonschema/getOnlyNonNullOneOfOption.js +1 -1
- package/dist/utils/jsonschema/getOnlyNonNullOneOfOption.js.map +1 -1
- package/dist/utils/jsonschema/getSchemaPropertyInfo.d.ts +5 -0
- package/dist/utils/jsonschema/getSchemaPropertyInfo.d.ts.map +1 -1
- package/dist/utils/jsonschema/getSchemaPropertyInfo.js +30 -15
- package/dist/utils/jsonschema/getSchemaPropertyInfo.js.map +1 -1
- package/dist/utils/jsonschema/submissionContext.js +2 -2
- package/dist/utils/jsonschema/submissionContext.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { QueryVisualizationContext as e } from "../QueryVisualizationWrapper/QueryVisualizationContext.js";
|
|
2
|
+
import { useContext as t } from "react";
|
|
3
|
+
import { Box as n, Typography as r } from "@mui/material";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { SynapseClientError as o } from "@sage-bionetworks/synapse-client/util/SynapseClientError";
|
|
6
|
+
import { instanceOfBelowThresholdErrorResponse as s } from "@sage-bionetworks/synapse-client/generated/models/BelowThresholdErrorResponse";
|
|
7
|
+
import { instanceOfRowSuppressionErrorResponse as c } from "@sage-bionetworks/synapse-client/generated/models/RowSuppressionErrorResponse";
|
|
8
|
+
import l from "pluralize";
|
|
9
|
+
//#region src/components/QueryWrapper/AggregateQueryErrorNotice.tsx
|
|
10
|
+
function u(e) {
|
|
11
|
+
if (!(e instanceof o) || !e.errorResponse) return;
|
|
12
|
+
let t = e.errorResponse;
|
|
13
|
+
return s(t) || c(t) ? t : void 0;
|
|
14
|
+
}
|
|
15
|
+
function d(e, t) {
|
|
16
|
+
if (s(e)) {
|
|
17
|
+
let n = e.suppressionThreshold;
|
|
18
|
+
return {
|
|
19
|
+
title: n === void 0 ? `Too few ${t} match these filters` : `A minimum of ${n.toLocaleString()} ${t} is required`,
|
|
20
|
+
description: `Broaden your filters to include more ${t}.`
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
title: "Individual records are not available",
|
|
25
|
+
description: "Your access to this data is limited to counts and charts, so individual records cannot be shown."
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function f(o) {
|
|
29
|
+
let s = t(e)?.unitDescription ?? "result", { title: c, description: u } = d(o.error, o.pluralUnitDescription ?? l(s));
|
|
30
|
+
return /* @__PURE__ */ a(n, {
|
|
31
|
+
role: "status",
|
|
32
|
+
sx: {
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
py: 4
|
|
35
|
+
},
|
|
36
|
+
children: [/* @__PURE__ */ i(r, {
|
|
37
|
+
variant: "headline3",
|
|
38
|
+
component: "p",
|
|
39
|
+
children: c
|
|
40
|
+
}), /* @__PURE__ */ i(r, {
|
|
41
|
+
variant: "body1",
|
|
42
|
+
sx: { mt: 1 },
|
|
43
|
+
children: u
|
|
44
|
+
})]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { f as AggregateQueryErrorNotice, u as getAggregateQueryError };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=AggregateQueryErrorNotice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AggregateQueryErrorNotice.js","names":[],"sources":["../../../src/components/QueryWrapper/AggregateQueryErrorNotice.tsx"],"sourcesContent":["import { Box, Typography } from '@mui/material'\nimport {\n BelowThresholdErrorResponse,\n instanceOfBelowThresholdErrorResponse,\n} from '@sage-bionetworks/synapse-client/generated/models/BelowThresholdErrorResponse'\nimport {\n instanceOfRowSuppressionErrorResponse,\n RowSuppressionErrorResponse,\n} from '@sage-bionetworks/synapse-client/generated/models/RowSuppressionErrorResponse'\nimport { SynapseClientError } from '@sage-bionetworks/synapse-client/util/SynapseClientError'\nimport pluralize from 'pluralize'\nimport { useContext } from 'react'\nimport { QueryVisualizationContext } from '../QueryVisualizationWrapper/QueryVisualizationContext'\n\nexport type AggregateQueryError =\n | BelowThresholdErrorResponse\n | RowSuppressionErrorResponse\n\n/**\n * Returns the server's error body when a table query was withheld because the caller has aggregate-only access: the\n * number of matching rows was below the suppression threshold (BELOW_THRESHOLD), or row results were requested\n * (ROW_SUPPRESSED). Returns undefined for any other error.\n */\nexport function getAggregateQueryError(\n error: unknown,\n): AggregateQueryError | undefined {\n if (!(error instanceof SynapseClientError) || !error.errorResponse) {\n return undefined\n }\n const body: object = error.errorResponse\n return instanceOfBelowThresholdErrorResponse(body) ||\n instanceOfRowSuppressionErrorResponse(body)\n ? body\n : undefined\n}\n\nfunction getNoticeText(error: AggregateQueryError, units: string) {\n if (instanceOfBelowThresholdErrorResponse(error)) {\n const threshold = error.suppressionThreshold\n return {\n title:\n threshold === undefined\n ? `Too few ${units} match these filters`\n : `A minimum of ${threshold.toLocaleString()} ${units} is required`,\n description: `Broaden your filters to include more ${units}.`,\n }\n }\n return {\n title: 'Individual records are not available',\n description:\n 'Your access to this data is limited to counts and charts, so individual records cannot be shown.',\n }\n}\n\nexport type AggregateQueryErrorNoticeProps = {\n error: AggregateQueryError\n /** What the queried rows are, in the plural (e.g. \"files and datasets\"). Defaults to the pluralized unitDescription. */\n pluralUnitDescription?: string\n}\n\n/**\n * Explains a table query result that the server withheld from a caller with aggregate-only access. It is a normal\n * state, not an error: the query is valid, and the caller can adjust it.\n */\nexport function AggregateQueryErrorNotice(\n props: AggregateQueryErrorNoticeProps,\n) {\n // Read the context directly: the notice can render outside a QueryVisualizationWrapper (e.g. from an ErrorBanner).\n const unitDescription =\n useContext(QueryVisualizationContext)?.unitDescription ?? 'result'\n const { title, description } = getNoticeText(\n props.error,\n props.pluralUnitDescription ?? pluralize(unitDescription),\n )\n return (\n <Box role=\"status\" sx={{ textAlign: 'center', py: 4 }}>\n <Typography variant=\"headline3\" component=\"p\">\n {title}\n </Typography>\n <Typography variant=\"body1\" sx={{ mt: 1 }}>\n {description}\n </Typography>\n </Box>\n )\n}\n"],"mappings":";;;;;;;;;AAuBA,SAAgB,EACd,GACiC;CACjC,IAAI,EAAE,aAAiB,MAAuB,CAAC,EAAM,eACnD;CAEF,IAAM,IAAe,EAAM;CAC3B,OAAO,EAAsC,CAAI,KAC/C,EAAsC,CAAI,IACxC,IACA,KAAA;AACN;AAEA,SAAS,EAAc,GAA4B,GAAe;CAChE,IAAI,EAAsC,CAAK,GAAG;EAChD,IAAM,IAAY,EAAM;EACxB,OAAO;GACL,OACE,MAAc,KAAA,IACV,WAAW,EAAM,wBACjB,gBAAgB,EAAU,eAAe,EAAE,GAAG,EAAM;GAC1D,aAAa,wCAAwC,EAAM;EAC7D;CACF;CACA,OAAO;EACL,OAAO;EACP,aACE;CACJ;AACF;AAYA,SAAgB,EACd,GACA;CAEA,IAAM,IACJ,EAAW,CAAyB,GAAG,mBAAmB,UACtD,EAAE,UAAO,mBAAgB,EAC7B,EAAM,OACN,EAAM,yBAAyB,EAAU,CAAe,CAC1D;CACA,OACE,kBAAC,GAAD;EAAK,MAAK;EAAS,IAAI;GAAE,WAAW;GAAU,IAAI;EAAE;YAApD,CACE,kBAAC,GAAD;GAAY,SAAQ;GAAY,WAAU;aACvC;EACS,CAAA,GACZ,kBAAC,GAAD;GAAY,SAAQ;GAAQ,IAAI,EAAE,IAAI,EAAE;aACrC;EACS,CAAA,CACT;;AAET"}
|
|
@@ -2,14 +2,16 @@ import { KeyFactory } from '@/synapse-queries';
|
|
|
2
2
|
import { LockedColumn } from '@/utils/types/LockedColumn';
|
|
3
3
|
import { SynapseClientError } from '@sage-bionetworks/synapse-client';
|
|
4
4
|
import { AsynchronousJobStatus, QueryBundleRequest, QueryResultBundle, RowSet } from '@sage-bionetworks/synapse-types';
|
|
5
|
-
import { InfiniteData, QueryKey, UseInfiniteQueryOptions, UseSuspenseQueryOptions } from '@tanstack/react-query';
|
|
5
|
+
import { InfiniteData, QueryKey, UseInfiniteQueryOptions, UseQueryOptions, UseSuspenseQueryOptions } from '@tanstack/react-query';
|
|
6
6
|
export type TableQueryUseQueryOptions = {
|
|
7
|
-
|
|
7
|
+
/** Disabled when the request's partMask does not include BUNDLE_MASK_QUERY_RESULTS. */
|
|
8
|
+
rowDataQueryOptions: UseQueryOptions<AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>, SynapseClientError, RowSet | undefined>;
|
|
9
|
+
/** Disabled when the request's partMask does not include BUNDLE_MASK_QUERY_RESULTS. */
|
|
8
10
|
rowDataInfiniteQueryOptions: UseInfiniteQueryOptions<AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>, SynapseClientError, InfiniteData<AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>>, QueryKey, string | number | undefined>;
|
|
9
11
|
queryMetadataQueryOptions: UseSuspenseQueryOptions<AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>, SynapseClientError, Omit<QueryResultBundle, 'queryResult'>>;
|
|
10
12
|
};
|
|
11
13
|
export declare function getTableQueryUseQueryOptions(queryBundleRequest: QueryBundleRequest, lockedColumn: LockedColumn | undefined, keyFactory: KeyFactory, accessToken: string | undefined): {
|
|
12
|
-
rowDataQueryOptions:
|
|
14
|
+
rowDataQueryOptions: UseQueryOptions<AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>, SynapseClientError, RowSet | undefined, readonly unknown[]>;
|
|
13
15
|
rowDataInfiniteQueryOptions: UseInfiniteQueryOptions<AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>, SynapseClientError, InfiniteData<AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>, unknown>, readonly unknown[], string | number | undefined>;
|
|
14
16
|
queryMetadataQueryOptions: UseSuspenseQueryOptions<AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>, SynapseClientError, Omit<QueryResultBundle, "queryResult">, readonly unknown[]>;
|
|
15
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableQueryUseQueryOptions.d.ts","sourceRoot":"","sources":["../../../src/components/QueryWrapper/TableQueryUseQueryOptions.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EAEX,MAAM,mBAAmB,CAAA;AAM1B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,uBAAuB,CAAA;AAI9B,MAAM,MAAM,yBAAyB,GAAG;IACtC,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"TableQueryUseQueryOptions.d.ts","sourceRoot":"","sources":["../../../src/components/QueryWrapper/TableQueryUseQueryOptions.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EAEX,MAAM,mBAAmB,CAAA;AAM1B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AACrE,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,uBAAuB,EACvB,eAAe,EACf,uBAAuB,EACxB,MAAM,uBAAuB,CAAA;AAI9B,MAAM,MAAM,yBAAyB,GAAG;IACtC,uFAAuF;IACvF,mBAAmB,EAAE,eAAe,CAClC,qBAAqB,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,EAC5D,kBAAkB,EAClB,MAAM,GAAG,SAAS,CACnB,CAAA;IAED,uFAAuF;IACvF,2BAA2B,EAAE,uBAAuB,CAClD,qBAAqB,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,EAC5D,kBAAkB,EAClB,YAAY,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,CAAC,EAC1E,QAAQ,EACR,MAAM,GAAG,MAAM,GAAG,SAAS,CAC5B,CAAA;IAED,yBAAyB,EAAE,uBAAuB,CAChD,qBAAqB,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,EAC5D,kBAAkB,EAClB,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,CACvC,CAAA;CACF,CAAA;AAED,wBAAgB,4BAA4B,CAC1C,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,YAAY,GAAG,SAAS,EACtC,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,MAAM,GAAG,SAAS;;;;EAqDhC;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,CAAC,EAAE,YAAY,GAC1B,yBAAyB,CAa3B"}
|
|
@@ -7,15 +7,19 @@ import { useMemo as o } from "react";
|
|
|
7
7
|
import { omit as s } from "lodash-es";
|
|
8
8
|
//#region src/components/QueryWrapper/TableQueryUseQueryOptions.ts
|
|
9
9
|
function c(t, o, c, l) {
|
|
10
|
-
let { rowDataRequest: u, queryMetadataRequest: d } = n(t);
|
|
10
|
+
let { rowDataRequest: u, queryMetadataRequest: d } = n(t), f = u.partMask > 0;
|
|
11
11
|
return {
|
|
12
12
|
rowDataQueryOptions: {
|
|
13
13
|
...a,
|
|
14
14
|
queryKey: c.getEntityTableQueryResultWithAsyncStatusQueryKey(u, !1),
|
|
15
15
|
queryFn: () => e(u, l),
|
|
16
|
-
select: (e) => e.responseBody?.queryResult?.queryResults
|
|
16
|
+
select: (e) => e.responseBody?.queryResult?.queryResults,
|
|
17
|
+
enabled: f
|
|
18
|
+
},
|
|
19
|
+
rowDataInfiniteQueryOptions: {
|
|
20
|
+
...i(u, c, l),
|
|
21
|
+
enabled: f
|
|
17
22
|
},
|
|
18
|
-
rowDataInfiniteQueryOptions: { ...i(u, c, l) },
|
|
19
23
|
queryMetadataQueryOptions: {
|
|
20
24
|
...a,
|
|
21
25
|
queryKey: c.getEntityTableQueryResultWithAsyncStatusQueryKey(d, !1),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableQueryUseQueryOptions.js","names":[],"sources":["../../../src/components/QueryWrapper/TableQueryUseQueryOptions.ts"],"sourcesContent":["import * as SynapseClient from '@/synapse-client/SynapseClient'\nimport {\n getInfiniteQueryResultBundleOptions,\n KeyFactory,\n tableQueryUseQueryDefaults,\n} from '@/synapse-queries'\nimport { useSynapseContext } from '@/utils/context/SynapseContext'\nimport {\n partitionQueryBundleRequestIntoRowsAndMetadata,\n removeLockedColumnFromFacetData,\n} from '@/utils/functions/queryUtils'\nimport { LockedColumn } from '@/utils/types/LockedColumn'\nimport { SynapseClientError } from '@sage-bionetworks/synapse-client'\nimport {\n AsynchronousJobStatus,\n QueryBundleRequest,\n QueryResultBundle,\n RowSet,\n} from '@sage-bionetworks/synapse-types'\nimport {\n InfiniteData,\n QueryKey,\n UseInfiniteQueryOptions,\n UseSuspenseQueryOptions,\n} from '@tanstack/react-query'\nimport { omit } from 'lodash-es'\nimport { useMemo } from 'react'\n\nexport type TableQueryUseQueryOptions = {\n rowDataQueryOptions:
|
|
1
|
+
{"version":3,"file":"TableQueryUseQueryOptions.js","names":[],"sources":["../../../src/components/QueryWrapper/TableQueryUseQueryOptions.ts"],"sourcesContent":["import * as SynapseClient from '@/synapse-client/SynapseClient'\nimport {\n getInfiniteQueryResultBundleOptions,\n KeyFactory,\n tableQueryUseQueryDefaults,\n} from '@/synapse-queries'\nimport { useSynapseContext } from '@/utils/context/SynapseContext'\nimport {\n partitionQueryBundleRequestIntoRowsAndMetadata,\n removeLockedColumnFromFacetData,\n} from '@/utils/functions/queryUtils'\nimport { LockedColumn } from '@/utils/types/LockedColumn'\nimport { SynapseClientError } from '@sage-bionetworks/synapse-client'\nimport {\n AsynchronousJobStatus,\n QueryBundleRequest,\n QueryResultBundle,\n RowSet,\n} from '@sage-bionetworks/synapse-types'\nimport {\n InfiniteData,\n QueryKey,\n UseInfiniteQueryOptions,\n UseQueryOptions,\n UseSuspenseQueryOptions,\n} from '@tanstack/react-query'\nimport { omit } from 'lodash-es'\nimport { useMemo } from 'react'\n\nexport type TableQueryUseQueryOptions = {\n /** Disabled when the request's partMask does not include BUNDLE_MASK_QUERY_RESULTS. */\n rowDataQueryOptions: UseQueryOptions<\n AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>,\n SynapseClientError,\n RowSet | undefined\n >\n\n /** Disabled when the request's partMask does not include BUNDLE_MASK_QUERY_RESULTS. */\n rowDataInfiniteQueryOptions: UseInfiniteQueryOptions<\n AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>,\n SynapseClientError,\n InfiniteData<AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>>,\n QueryKey,\n string | number | undefined\n >\n\n queryMetadataQueryOptions: UseSuspenseQueryOptions<\n AsynchronousJobStatus<QueryBundleRequest, QueryResultBundle>,\n SynapseClientError,\n Omit<QueryResultBundle, 'queryResult'>\n >\n}\n\nexport function getTableQueryUseQueryOptions(\n queryBundleRequest: QueryBundleRequest,\n lockedColumn: LockedColumn | undefined,\n keyFactory: KeyFactory,\n accessToken: string | undefined,\n) {\n const { rowDataRequest, queryMetadataRequest } =\n partitionQueryBundleRequestIntoRowsAndMetadata(queryBundleRequest)\n const isRowDataRequested = rowDataRequest.partMask > 0\n const rowDataQueryOptions: TableQueryUseQueryOptions['rowDataQueryOptions'] =\n {\n ...tableQueryUseQueryDefaults,\n queryKey: keyFactory.getEntityTableQueryResultWithAsyncStatusQueryKey(\n rowDataRequest,\n false,\n ),\n queryFn: () =>\n SynapseClient.getQueryTableAsyncJobResults(rowDataRequest, accessToken),\n select: data => data.responseBody?.queryResult?.queryResults,\n enabled: isRowDataRequested,\n }\n\n const rowDataInfiniteQueryOptions: TableQueryUseQueryOptions['rowDataInfiniteQueryOptions'] =\n {\n ...getInfiniteQueryResultBundleOptions(\n rowDataRequest,\n keyFactory,\n accessToken,\n ),\n enabled: isRowDataRequested,\n }\n\n const queryMetadataQueryOptions: TableQueryUseQueryOptions['queryMetadataQueryOptions'] =\n {\n ...tableQueryUseQueryDefaults,\n queryKey: keyFactory.getEntityTableQueryResultWithAsyncStatusQueryKey(\n queryMetadataRequest,\n false,\n ),\n queryFn: () =>\n SynapseClient.getQueryTableAsyncJobResults(\n queryMetadataRequest,\n accessToken,\n ),\n\n select: data =>\n omit(\n removeLockedColumnFromFacetData(data.responseBody, lockedColumn),\n 'queryResults',\n ),\n }\n\n return {\n rowDataQueryOptions,\n rowDataInfiniteQueryOptions,\n queryMetadataQueryOptions,\n }\n}\n\n/**\n * Return the UseQueryOptions used to retrieve a table query's row data and query metadata.\n * @param queryBundleRequest\n * @param lockedColumn - remove a particular facet name (e.g. study) and all possible values based on the parameter\n * specified in the url this is to remove the facet from the charts, search and filter.\n */\nexport function useTableQueryUseQueryOptions(\n queryBundleRequest: QueryBundleRequest,\n lockedColumn?: LockedColumn,\n): TableQueryUseQueryOptions {\n const { keyFactory, accessToken } = useSynapseContext()\n\n return useMemo(\n () =>\n getTableQueryUseQueryOptions(\n queryBundleRequest,\n lockedColumn,\n keyFactory,\n accessToken,\n ),\n [keyFactory, accessToken, queryBundleRequest, lockedColumn],\n )\n}\n"],"mappings":";;;;;;;;AAqDA,SAAgB,EACd,GACA,GACA,GACA,GACA;CACA,IAAM,EAAE,mBAAgB,4BACtB,EAA+C,CAAkB,GAC7D,IAAqB,EAAe,WAAW;CA4CrD,OAAO;EACL,qBAAA;GA1CE,GAAG;GACH,UAAU,EAAW,iDACnB,GACA,EACF;GACA,eACE,EAA2C,GAAgB,CAAW;GACxE,SAAQ,MAAQ,EAAK,cAAc,aAAa;GAChD,SAAS;EAkCX;EACA,6BAAA;GA9BE,GAAG,EACD,GACA,GACA,CACF;GACA,SAAS;EAyBX;EACA,2BAAA;GArBE,GAAG;GACH,UAAU,EAAW,iDACnB,GACA,EACF;GACA,eACE,EACE,GACA,CACF;GAEF,SAAQ,MACN,EACE,EAAgC,EAAK,cAAc,CAAY,GAC/D,cACF;EAMJ;CACF;AACF;AAQA,SAAgB,EACd,GACA,GAC2B;CAC3B,IAAM,EAAE,eAAY,mBAAgB,EAAkB;CAEtD,OAAO,QAEH,EACE,GACA,GACA,GACA,CACF,GACF;EAAC;EAAY;EAAa;EAAoB;CAAY,CAC5D;AACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ColumnModel, DownloadListItem, Row, SelectColumn, Table } from '@sage-bionetworks/synapse-types';
|
|
2
|
+
/** Where the files of a query's rows are, for adding them to the Download List. */
|
|
3
|
+
export type DownloadListFileColumns = {
|
|
4
|
+
/** The column with each row's file or dataset: `fileIdColumnName`, else the table's file column. */
|
|
5
|
+
fileColumn?: ColumnModel;
|
|
6
|
+
/** The column with each row's file version, when `fileVersionColumnName` names one. */
|
|
7
|
+
fileVersionColumn?: ColumnModel;
|
|
8
|
+
/**
|
|
9
|
+
* True for views and datasets, whose rows are the entities themselves. Without a file column a row's ID is its file,
|
|
10
|
+
* and without a version column its row version is the file version. The server reads other tables' files at their
|
|
11
|
+
* current version unless a version column is named.
|
|
12
|
+
*/
|
|
13
|
+
rowsAreEntities: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Finds the file and version columns of a query, so that adding the whole result and adding selected rows pick the
|
|
17
|
+
* same files.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getDownloadListFileColumns(table: Table | undefined, columnModels: ColumnModel[] | undefined, fileIdColumnName: string | undefined, fileVersionColumnName: string | undefined): DownloadListFileColumns;
|
|
20
|
+
/**
|
|
21
|
+
* The Download List items for some rows of a query: each row's file or dataset at its version (see
|
|
22
|
+
* DownloadListFileColumns). Rows without a file are skipped, and an item in several rows is listed once.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getDownloadListItems(rows: readonly Row[], selectColumns: readonly SelectColumn[] | undefined, columns: DownloadListFileColumns): DownloadListItem[];
|
|
25
|
+
//# sourceMappingURL=downloadListFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloadListFiles.d.ts","sourceRoot":"","sources":["../../../src/components/QueryWrapper/downloadListFiles.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,GAAG,EACH,YAAY,EACZ,KAAK,EACN,MAAM,iCAAiC,CAAA;AAExC,mFAAmF;AACnF,MAAM,MAAM,uBAAuB,GAAG;IACpC,oGAAoG;IACpG,UAAU,CAAC,EAAE,WAAW,CAAA;IACxB,uFAAuF;IACvF,iBAAiB,CAAC,EAAE,WAAW,CAAA;IAC/B;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAA;CACzB,CAAA;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,YAAY,EAAE,WAAW,EAAE,GAAG,SAAS,EACvC,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,qBAAqB,EAAE,MAAM,GAAG,SAAS,GACxC,uBAAuB,CAezB;AA8BD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,SAAS,GAAG,EAAE,EACpB,aAAa,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,EAClD,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,EAAE,CAsBpB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { isDataset as e, isEntityView as t } from "../../utils/functions/EntityTypeUtils.js";
|
|
2
|
+
import { getFileColumnModelId as n } from "../SynapseTable/SynapseTableUtils.js";
|
|
3
|
+
//#region src/components/QueryWrapper/downloadListFiles.ts
|
|
4
|
+
function r(r, i, a, o) {
|
|
5
|
+
let s = n(i);
|
|
6
|
+
return {
|
|
7
|
+
fileColumn: i?.find((e) => a === void 0 ? e.id === s : e.name === a),
|
|
8
|
+
fileVersionColumn: o === void 0 ? void 0 : i?.find((e) => e.name === o),
|
|
9
|
+
rowsAreEntities: r !== void 0 && (t(r) || e(r))
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function i(e, t, n, r) {
|
|
13
|
+
let i = t >= 0 ? e.values[t] : r && e.rowId != null ? `syn${e.rowId}` : null;
|
|
14
|
+
if (i) {
|
|
15
|
+
if (n >= 0) {
|
|
16
|
+
let t = e.values[n];
|
|
17
|
+
return {
|
|
18
|
+
fileEntityId: i,
|
|
19
|
+
versionNumber: t == null ? void 0 : Number(t)
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
fileEntityId: i,
|
|
24
|
+
versionNumber: r ? e.versionNumber : void 0
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function a(e, t, n) {
|
|
29
|
+
let r = (e) => e === void 0 ? -1 : (t ?? []).findIndex((t) => t.name === e.name), a = r(n.fileColumn), o = r(n.fileVersionColumn), s = /* @__PURE__ */ new Map();
|
|
30
|
+
for (let t of e) {
|
|
31
|
+
let e = i(t, a, o, n.rowsAreEntities);
|
|
32
|
+
e && s.set(`${e.fileEntityId}.${e.versionNumber ?? ""}`, e);
|
|
33
|
+
}
|
|
34
|
+
return [...s.values()];
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { r as getDownloadListFileColumns, a as getDownloadListItems };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=downloadListFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloadListFiles.js","names":[],"sources":["../../../src/components/QueryWrapper/downloadListFiles.ts"],"sourcesContent":["import { getFileColumnModelId } from '@/components/SynapseTable/SynapseTableUtils'\nimport { isDataset, isEntityView } from '@/utils/functions/EntityTypeUtils'\nimport {\n ColumnModel,\n DownloadListItem,\n Row,\n SelectColumn,\n Table,\n} from '@sage-bionetworks/synapse-types'\n\n/** Where the files of a query's rows are, for adding them to the Download List. */\nexport type DownloadListFileColumns = {\n /** The column with each row's file or dataset: `fileIdColumnName`, else the table's file column. */\n fileColumn?: ColumnModel\n /** The column with each row's file version, when `fileVersionColumnName` names one. */\n fileVersionColumn?: ColumnModel\n /**\n * True for views and datasets, whose rows are the entities themselves. Without a file column a row's ID is its file,\n * and without a version column its row version is the file version. The server reads other tables' files at their\n * current version unless a version column is named.\n */\n rowsAreEntities: boolean\n}\n\n/**\n * Finds the file and version columns of a query, so that adding the whole result and adding selected rows pick the\n * same files.\n */\nexport function getDownloadListFileColumns(\n table: Table | undefined,\n columnModels: ColumnModel[] | undefined,\n fileIdColumnName: string | undefined,\n fileVersionColumnName: string | undefined,\n): DownloadListFileColumns {\n const defaultFileColumnId = getFileColumnModelId(columnModels)\n return {\n fileColumn: columnModels?.find(column =>\n fileIdColumnName === undefined\n ? column.id === defaultFileColumnId\n : column.name === fileIdColumnName,\n ),\n fileVersionColumn:\n fileVersionColumnName === undefined\n ? undefined\n : columnModels?.find(column => column.name === fileVersionColumnName),\n rowsAreEntities:\n table !== undefined && (isEntityView(table) || isDataset(table)),\n }\n}\n\nfunction getDownloadListItem(\n row: Row,\n fileColumnIndex: number,\n versionColumnIndex: number,\n rowsAreEntities: boolean,\n): DownloadListItem | undefined {\n const fileEntityId =\n fileColumnIndex >= 0\n ? row.values[fileColumnIndex]\n : rowsAreEntities && row.rowId != null\n ? `syn${row.rowId}`\n : null\n if (!fileEntityId) {\n return undefined\n }\n if (versionColumnIndex >= 0) {\n const version = row.values[versionColumnIndex]\n return {\n fileEntityId,\n versionNumber: version == null ? undefined : Number(version),\n }\n }\n return {\n fileEntityId,\n versionNumber: rowsAreEntities ? row.versionNumber : undefined,\n }\n}\n\n/**\n * The Download List items for some rows of a query: each row's file or dataset at its version (see\n * DownloadListFileColumns). Rows without a file are skipped, and an item in several rows is listed once.\n */\nexport function getDownloadListItems(\n rows: readonly Row[],\n selectColumns: readonly SelectColumn[] | undefined,\n columns: DownloadListFileColumns,\n): DownloadListItem[] {\n const columnIndex = (column: ColumnModel | undefined) =>\n column === undefined\n ? -1\n : (selectColumns ?? []).findIndex(\n selectColumn => selectColumn.name === column.name,\n )\n const fileColumnIndex = columnIndex(columns.fileColumn)\n const versionColumnIndex = columnIndex(columns.fileVersionColumn)\n const items = new Map<string, DownloadListItem>()\n for (const row of rows) {\n const item = getDownloadListItem(\n row,\n fileColumnIndex,\n versionColumnIndex,\n columns.rowsAreEntities,\n )\n if (item) {\n items.set(`${item.fileEntityId}.${item.versionNumber ?? ''}`, item)\n }\n }\n return [...items.values()]\n}\n"],"mappings":";;;AA4BA,SAAgB,EACd,GACA,GACA,GACA,GACyB;CACzB,IAAM,IAAsB,EAAqB,CAAY;CAC7D,OAAO;EACL,YAAY,GAAc,MAAK,MAC7B,MAAqB,KAAA,IACjB,EAAO,OAAO,IACd,EAAO,SAAS,CACtB;EACA,mBACE,MAA0B,KAAA,IACtB,KAAA,IACA,GAAc,MAAK,MAAU,EAAO,SAAS,CAAqB;EACxE,iBACE,MAAU,KAAA,MAAc,EAAa,CAAK,KAAK,EAAU,CAAK;CAClE;AACF;AAEA,SAAS,EACP,GACA,GACA,GACA,GAC8B;CAC9B,IAAM,IACJ,KAAmB,IACf,EAAI,OAAO,KACX,KAAmB,EAAI,SAAS,OAC9B,MAAM,EAAI,UACV;CACH,OAGL;MAAI,KAAsB,GAAG;GAC3B,IAAM,IAAU,EAAI,OAAO;GAC3B,OAAO;IACL;IACA,eAAe,KAAW,OAAO,KAAA,IAAY,OAAO,CAAO;GAC7D;EACF;EACA,OAAO;GACL;GACA,eAAe,IAAkB,EAAI,gBAAgB,KAAA;EACvD;CAJA;AAKF;AAMA,SAAgB,EACd,GACA,GACA,GACoB;CACpB,IAAM,KAAe,MACnB,MAAW,KAAA,IACP,MACC,KAAiB,CAAC,GAAG,WACpB,MAAgB,EAAa,SAAS,EAAO,IAC/C,GACA,IAAkB,EAAY,EAAQ,UAAU,GAChD,IAAqB,EAAY,EAAQ,iBAAiB,GAC1D,oBAAQ,IAAI,IAA8B;CAChD,KAAK,IAAM,KAAO,GAAM;EACtB,IAAM,IAAO,EACX,GACA,GACA,GACA,EAAQ,eACV;EACA,AAAI,KACF,EAAM,IAAI,GAAG,EAAK,aAAa,GAAG,EAAK,iBAAiB,MAAM,CAAI;CAEtE;CACA,OAAO,CAAC,GAAG,EAAM,OAAO,CAAC;AAC3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const NO_FILES_IN_SELECTED_ROWS_MESSAGE = "The selected rows have no files to add to your Download List.";
|
|
2
|
+
export declare const TOO_MANY_SELECTED_ROWS_MESSAGE: string;
|
|
3
|
+
export declare const NO_NEW_FILES_ADDED_MESSAGE = "No new files were added to your Download List.";
|
|
4
|
+
/**
|
|
5
|
+
* Adds the files and datasets of the selected rows of the current query to the Download List in one request, without
|
|
6
|
+
* a confirmation step, and reports how many files the server added in a toast. The request is all or nothing, so at
|
|
7
|
+
* most MAX_DOWNLOAD_LIST_BATCH_SIZE items can be added at once.
|
|
8
|
+
*
|
|
9
|
+
* Each row's item is chosen as for adding the whole result; see `getDownloadListFileColumns` and
|
|
10
|
+
* `getDownloadListItems`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useAddSelectedRowsToDownloadList(): {
|
|
13
|
+
addSelectedRowsToDownloadList: () => Promise<void>;
|
|
14
|
+
isPending: boolean;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useAddSelectedRowsToDownloadList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAddSelectedRowsToDownloadList.d.ts","sourceRoot":"","sources":["../../../src/components/QueryWrapper/useAddSelectedRowsToDownloadList.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,iCAAiC,kEACmB,CAAA;AACjE,eAAO,MAAM,8BAA8B,QAA6H,CAAA;AACxK,eAAO,MAAM,0BAA0B,mDACW,CAAA;AAElD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC;;;EAwE/C"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { displayToast as e } from "../ToastMessage/ToastMessage.js";
|
|
2
|
+
import { useSynapseContext as t } from "../../utils/context/SynapseContext.js";
|
|
3
|
+
import "../../utils/index.js";
|
|
4
|
+
import { MAX_DOWNLOAD_LIST_BATCH_SIZE as n, useAddFileBatchToDownloadList as r } from "../../synapse-queries/download/useDownloadList.js";
|
|
5
|
+
import { useGetEntityQueryOptions as i } from "../../synapse-queries/entity/useEntity.js";
|
|
6
|
+
import "../../synapse-queries/index.js";
|
|
7
|
+
import { displayFilesWereAddedToDownloadListSuccess as a } from "../download_list/DownloadConfirmationUtils.js";
|
|
8
|
+
import { useQueryContext as o } from "../QueryContext/QueryContext.js";
|
|
9
|
+
import "../QueryContext/index.js";
|
|
10
|
+
import { useSelectedRowsAtomValue as s } from "./TableRowSelectionState.js";
|
|
11
|
+
import { getDownloadListFileColumns as c, getDownloadListItems as l } from "./downloadListFiles.js";
|
|
12
|
+
import { useCallback as u } from "react";
|
|
13
|
+
import { SynapseClientError as d } from "@sage-bionetworks/synapse-client";
|
|
14
|
+
import { useQueryClient as f } from "@tanstack/react-query";
|
|
15
|
+
//#region src/components/QueryWrapper/useAddSelectedRowsToDownloadList.ts
|
|
16
|
+
var p = "The selected rows have no files to add to your Download List.", m = `Select at most ${n.toLocaleString()} files and datasets to add to your Download List at once.`, h = "No new files were added to your Download List.";
|
|
17
|
+
function g() {
|
|
18
|
+
let { entityId: n, versionNumber: g, fileIdColumnName: _, fileVersionColumnName: v, queryMetadataQueryOptions: y } = o(), { downloadCartPageUrl: b } = t(), x = f(), S = i(), C = s(), { mutate: w, isPending: T } = r({
|
|
19
|
+
onSuccess: ({ numberOfFilesAdded: t }) => t > 0 ? a(b, t) : e(h, "warning"),
|
|
20
|
+
onError: (t) => e(t.reason, "danger")
|
|
21
|
+
});
|
|
22
|
+
return {
|
|
23
|
+
addSelectedRowsToDownloadList: u(async () => {
|
|
24
|
+
let t;
|
|
25
|
+
try {
|
|
26
|
+
let [e, r] = await Promise.all([x.ensureQueryData(S(n, g)), x.ensureQueryData(y)]), { columnModels: i, selectColumns: a } = r.responseBody ?? {};
|
|
27
|
+
t = l(C, a, c(e, i, _, v));
|
|
28
|
+
} catch (t) {
|
|
29
|
+
e(t instanceof d ? t.reason : String(t), "danger");
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
t.length === 0 ? e(p, "warning") : t.length > 1e3 ? e(m, "warning") : w(t);
|
|
33
|
+
}, [
|
|
34
|
+
n,
|
|
35
|
+
_,
|
|
36
|
+
v,
|
|
37
|
+
S,
|
|
38
|
+
w,
|
|
39
|
+
x,
|
|
40
|
+
y,
|
|
41
|
+
C,
|
|
42
|
+
g
|
|
43
|
+
]),
|
|
44
|
+
isPending: T
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { p as NO_FILES_IN_SELECTED_ROWS_MESSAGE, h as NO_NEW_FILES_ADDED_MESSAGE, m as TOO_MANY_SELECTED_ROWS_MESSAGE, g as useAddSelectedRowsToDownloadList };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=useAddSelectedRowsToDownloadList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAddSelectedRowsToDownloadList.js","names":[],"sources":["../../../src/components/QueryWrapper/useAddSelectedRowsToDownloadList.ts"],"sourcesContent":["import { useQueryContext } from '@/components/QueryContext'\nimport { useSelectedRowsAtomValue } from '@/components/QueryWrapper/TableRowSelectionState'\nimport { displayFilesWereAddedToDownloadListSuccess } from '@/components/download_list/DownloadConfirmationUtils'\nimport { displayToast } from '@/components/ToastMessage/ToastMessage'\nimport { useGetEntityQueryOptions } from '@/synapse-queries'\nimport {\n MAX_DOWNLOAD_LIST_BATCH_SIZE,\n useAddFileBatchToDownloadList,\n} from '@/synapse-queries/download/useDownloadList'\nimport { useSynapseContext } from '@/utils'\nimport { SynapseClientError } from '@sage-bionetworks/synapse-client'\nimport { Table } from '@sage-bionetworks/synapse-types'\nimport { useQueryClient } from '@tanstack/react-query'\nimport { useCallback } from 'react'\nimport {\n getDownloadListFileColumns,\n getDownloadListItems,\n} from './downloadListFiles'\n\nexport const NO_FILES_IN_SELECTED_ROWS_MESSAGE =\n 'The selected rows have no files to add to your Download List.'\nexport const TOO_MANY_SELECTED_ROWS_MESSAGE = `Select at most ${MAX_DOWNLOAD_LIST_BATCH_SIZE.toLocaleString()} files and datasets to add to your Download List at once.`\nexport const NO_NEW_FILES_ADDED_MESSAGE =\n 'No new files were added to your Download List.'\n\n/**\n * Adds the files and datasets of the selected rows of the current query to the Download List in one request, without\n * a confirmation step, and reports how many files the server added in a toast. The request is all or nothing, so at\n * most MAX_DOWNLOAD_LIST_BATCH_SIZE items can be added at once.\n *\n * Each row's item is chosen as for adding the whole result; see `getDownloadListFileColumns` and\n * `getDownloadListItems`.\n */\nexport function useAddSelectedRowsToDownloadList() {\n const {\n entityId,\n versionNumber,\n fileIdColumnName,\n fileVersionColumnName,\n queryMetadataQueryOptions,\n } = useQueryContext()\n const { downloadCartPageUrl } = useSynapseContext()\n const queryClient = useQueryClient()\n const getEntityQueryOptions = useGetEntityQueryOptions<Table>()\n const selectedRows = useSelectedRowsAtomValue()\n\n const { mutate, isPending } = useAddFileBatchToDownloadList({\n onSuccess: ({ numberOfFilesAdded }) =>\n numberOfFilesAdded > 0\n ? displayFilesWereAddedToDownloadListSuccess(\n downloadCartPageUrl,\n numberOfFilesAdded,\n )\n : displayToast(NO_NEW_FILES_ADDED_MESSAGE, 'warning'),\n onError: error => displayToast(error.reason, 'danger'),\n })\n\n const addSelectedRowsToDownloadList = useCallback(async () => {\n let items\n try {\n // The table and its columns decide which file each row holds, so they are loaded if not already cached.\n const [table, queryMetadata] = await Promise.all([\n queryClient.ensureQueryData(\n getEntityQueryOptions(entityId, versionNumber),\n ),\n queryClient.ensureQueryData(queryMetadataQueryOptions),\n ])\n const { columnModels, selectColumns } = queryMetadata.responseBody ?? {}\n items = getDownloadListItems(\n selectedRows,\n selectColumns,\n getDownloadListFileColumns(\n table,\n columnModels,\n fileIdColumnName,\n fileVersionColumnName,\n ),\n )\n } catch (error) {\n displayToast(\n error instanceof SynapseClientError ? error.reason : String(error),\n 'danger',\n )\n return\n }\n if (items.length === 0) {\n displayToast(NO_FILES_IN_SELECTED_ROWS_MESSAGE, 'warning')\n } else if (items.length > MAX_DOWNLOAD_LIST_BATCH_SIZE) {\n displayToast(TOO_MANY_SELECTED_ROWS_MESSAGE, 'warning')\n } else {\n mutate(items)\n }\n }, [\n entityId,\n fileIdColumnName,\n fileVersionColumnName,\n getEntityQueryOptions,\n mutate,\n queryClient,\n queryMetadataQueryOptions,\n selectedRows,\n versionNumber,\n ])\n\n return { addSelectedRowsToDownloadList, isPending }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,IAAa,IACX,iEACW,IAAiC,kBAAkB,EAA6B,eAAe,EAAE,4DACjG,IACX;AAUF,SAAgB,IAAmC;CACjD,IAAM,EACJ,aACA,kBACA,qBACA,0BACA,iCACE,EAAgB,GACd,EAAE,2BAAwB,EAAkB,GAC5C,IAAc,EAAe,GAC7B,IAAwB,EAAgC,GACxD,IAAe,EAAyB,GAExC,EAAE,WAAQ,iBAAc,EAA8B;EAC1D,YAAY,EAAE,4BACZ,IAAqB,IACjB,EACE,GACA,CACF,IACA,EAAa,GAA4B,SAAS;EACxD,UAAS,MAAS,EAAa,EAAM,QAAQ,QAAQ;CACvD,CAAC;CAiDD,OAAO;EAAE,+BA/C6B,EAAY,YAAY;GAC5D,IAAI;GACJ,IAAI;IAEF,IAAM,CAAC,GAAO,KAAiB,MAAM,QAAQ,IAAI,CAC/C,EAAY,gBACV,EAAsB,GAAU,CAAa,CAC/C,GACA,EAAY,gBAAgB,CAAyB,CACvD,CAAC,GACK,EAAE,iBAAc,qBAAkB,EAAc,gBAAgB,CAAC;IACvE,IAAQ,EACN,GACA,GACA,EACE,GACA,GACA,GACA,CACF,CACF;GACF,SAAS,GAAO;IACd,EACE,aAAiB,IAAqB,EAAM,SAAS,OAAO,CAAK,GACjE,QACF;IACA;GACF;GACA,AAAI,EAAM,WAAW,IACnB,EAAa,GAAmC,SAAS,IAChD,EAAM,SAAA,MACf,EAAa,GAAgC,SAAS,IAEtD,EAAO,CAAK;EAEhB,GAAG;GACD;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF,CAES;EAA+B;CAAU;AACpD"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { AddToDownloadListRequest } from '@sage-bionetworks/synapse-client';
|
|
2
2
|
/**
|
|
3
3
|
* Returns an AddToDownloadListRequest object configured to add the current fileview/dataset result set to the download list
|
|
4
|
-
* (loads data using QueryWrapper)
|
|
4
|
+
* (loads data using QueryWrapper). Selected rows are not considered; see `useAddSelectedRowsToDownloadList`.
|
|
5
|
+
*
|
|
6
|
+
* Files are read from `fileIdColumnName` (else the table's file column) at the version in `fileVersionColumnName`, else
|
|
7
|
+
* at the row version for views and datasets, else at their current version.
|
|
5
8
|
*/
|
|
6
9
|
export declare function useGetAddToDownloadListRequestForCurrentQuery(): AddToDownloadListRequest;
|
|
7
10
|
//# sourceMappingURL=useGetAddToDownloadListRequestForCurrentQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetAddToDownloadListRequestForCurrentQuery.d.ts","sourceRoot":"","sources":["../../../src/components/QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useGetAddToDownloadListRequestForCurrentQuery.d.ts","sourceRoot":"","sources":["../../../src/components/QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,wBAAwB,EAEzB,MAAM,kCAAkC,CAAA;AAKzC;;;;;;GAMG;AACH,wBAAgB,6CAA6C,IAAI,wBAAwB,CA+CxF"}
|
|
@@ -1,42 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useGetEntity as e } from "../../synapse-queries/entity/useEntity.js";
|
|
2
|
+
import "../../synapse-queries/index.js";
|
|
2
3
|
import { useQueryContext as t } from "../QueryContext/QueryContext.js";
|
|
3
4
|
import "../QueryContext/index.js";
|
|
4
5
|
import { useSuspenseGetQueryMetadata as n } from "./useGetQueryMetadata.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useMemo as s } from "react";
|
|
6
|
+
import { getDownloadListFileColumns as r } from "./downloadListFiles.js";
|
|
7
|
+
import { useMemo as i } from "react";
|
|
8
8
|
//#region src/components/QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.ts
|
|
9
|
-
function
|
|
10
|
-
let { getCurrentQueryRequest:
|
|
11
|
-
return
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
let e = d.columnModels?.find((e) => e.name == l), n = d.columnModels?.find((e) => e.name == u);
|
|
15
|
-
t.selectFileColumn = e ? Number(e.id) : void 0, t.selectFileVersionColumn = n ? Number(n.id) : void 0;
|
|
16
|
-
} else {
|
|
17
|
-
let n = e(d.columnModels);
|
|
18
|
-
n && (t.selectFileColumn = Number(n));
|
|
19
|
-
}
|
|
20
|
-
if (f && m && d.selectColumns) {
|
|
21
|
-
let e = o(m, p, d.selectColumns);
|
|
22
|
-
t.additionalFilters = [...t.additionalFilters || [], e];
|
|
23
|
-
}
|
|
24
|
-
return {
|
|
9
|
+
function a() {
|
|
10
|
+
let { entityId: a, versionNumber: o, getCurrentQueryRequest: s, fileIdColumnName: c, fileVersionColumnName: l } = t(), { data: u } = e(a, o), { data: d } = n();
|
|
11
|
+
return i(() => {
|
|
12
|
+
let e = s().query, { fileColumn: t, fileVersionColumn: n, rowsAreEntities: i } = r(u, d.columnModels, c, l);
|
|
13
|
+
return t && (e.selectFileColumn = Number(t.id)), n && (e.selectFileVersionColumn = Number(n.id)), {
|
|
25
14
|
concreteType: "org.sagebionetworks.repo.model.download.AddToDownloadListRequest",
|
|
26
|
-
query:
|
|
15
|
+
query: e,
|
|
16
|
+
...n === void 0 && u !== void 0 && !i ? { useVersionNumber: !1 } : {}
|
|
27
17
|
};
|
|
28
18
|
}, [
|
|
19
|
+
u,
|
|
29
20
|
d.columnModels,
|
|
30
|
-
|
|
21
|
+
s,
|
|
31
22
|
c,
|
|
32
|
-
|
|
33
|
-
m,
|
|
34
|
-
p,
|
|
35
|
-
l,
|
|
36
|
-
u
|
|
23
|
+
l
|
|
37
24
|
]);
|
|
38
25
|
}
|
|
39
26
|
//#endregion
|
|
40
|
-
export {
|
|
27
|
+
export { a as useGetAddToDownloadListRequestForCurrentQuery };
|
|
41
28
|
|
|
42
29
|
//# sourceMappingURL=useGetAddToDownloadListRequestForCurrentQuery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetAddToDownloadListRequestForCurrentQuery.js","names":[],"sources":["../../../src/components/QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.ts"],"sourcesContent":["import { useQueryContext } from '@/components/QueryContext'\nimport {
|
|
1
|
+
{"version":3,"file":"useGetAddToDownloadListRequestForCurrentQuery.js","names":[],"sources":["../../../src/components/QueryWrapper/useGetAddToDownloadListRequestForCurrentQuery.ts"],"sourcesContent":["import { useQueryContext } from '@/components/QueryContext'\nimport { useSuspenseGetQueryMetadata } from '@/components/QueryWrapper/useGetQueryMetadata'\nimport { useGetEntity } from '@/synapse-queries'\nimport {\n AddToDownloadListRequest,\n TableQuery,\n} from '@sage-bionetworks/synapse-client'\nimport { Table } from '@sage-bionetworks/synapse-types'\nimport { useMemo } from 'react'\nimport { getDownloadListFileColumns } from './downloadListFiles'\n\n/**\n * Returns an AddToDownloadListRequest object configured to add the current fileview/dataset result set to the download list\n * (loads data using QueryWrapper). Selected rows are not considered; see `useAddSelectedRowsToDownloadList`.\n *\n * Files are read from `fileIdColumnName` (else the table's file column) at the version in `fileVersionColumnName`, else\n * at the row version for views and datasets, else at their current version.\n */\nexport function useGetAddToDownloadListRequestForCurrentQuery(): AddToDownloadListRequest {\n const {\n entityId,\n versionNumber,\n getCurrentQueryRequest,\n fileIdColumnName,\n fileVersionColumnName,\n } = useQueryContext()\n const { data: entity } = useGetEntity<Table>(entityId, versionNumber)\n const { data: originalQueryMetadata } = useSuspenseGetQueryMetadata()\n\n return useMemo(() => {\n const query = getCurrentQueryRequest().query\n const { fileColumn, fileVersionColumn, rowsAreEntities } =\n getDownloadListFileColumns(\n entity,\n originalQueryMetadata.columnModels,\n fileIdColumnName,\n fileVersionColumnName,\n )\n if (fileColumn) {\n query.selectFileColumn = Number(fileColumn.id)\n }\n if (fileVersionColumn) {\n query.selectFileVersionColumn = Number(fileVersionColumn.id)\n }\n\n // The server infers the file version only for views and datasets (from the row version); other tables must name\n // a version column or add the current version.\n const addsCurrentVersion =\n fileVersionColumn === undefined &&\n entity !== undefined &&\n !rowsAreEntities\n\n return {\n concreteType:\n 'org.sagebionetworks.repo.model.download.AddToDownloadListRequest',\n query: query as TableQuery,\n ...(addsCurrentVersion ? { useVersionNumber: false } : {}),\n }\n }, [\n entity,\n originalQueryMetadata.columnModels,\n getCurrentQueryRequest,\n fileIdColumnName,\n fileVersionColumnName,\n ])\n}\n"],"mappings":";;;;;;;;AAkBA,SAAgB,IAA0E;CACxF,IAAM,EACJ,aACA,kBACA,2BACA,qBACA,6BACE,EAAgB,GACd,EAAE,MAAM,MAAW,EAAoB,GAAU,CAAa,GAC9D,EAAE,MAAM,MAA0B,EAA4B;CAEpE,OAAO,QAAc;EACnB,IAAM,IAAQ,EAAuB,EAAE,OACjC,EAAE,eAAY,sBAAmB,uBACrC,EACE,GACA,EAAsB,cACtB,GACA,CACF;EAeF,OAdI,MACF,EAAM,mBAAmB,OAAO,EAAW,EAAE,IAE3C,MACF,EAAM,0BAA0B,OAAO,EAAkB,EAAE,IAUtD;GACL,cACE;GACK;GACP,GARA,MAAsB,KAAA,KACtB,MAAW,KAAA,KACX,CAAC,IAMwB,EAAE,kBAAkB,GAAM,IAAI,CAAC;EAC1D;CACF,GAAG;EACD;EACA,EAAsB;EACtB;EACA;EACA;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOnQueryDataChange.d.ts","sourceRoot":"","sources":["../../../src/components/QueryWrapper/useOnQueryDataChange.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,iCAAiC,CAAA;AAIxC,KAAK,2BAA2B,GAAG;IACjC,kBAAkB,EAAE,kBAAkB,CAAA;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAA;CAC5C,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,OAAO,EAAE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"useOnQueryDataChange.d.ts","sourceRoot":"","sources":["../../../src/components/QueryWrapper/useOnQueryDataChange.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,iCAAiC,CAAA;AAIxC,KAAK,2BAA2B,GAAG;IACjC,kBAAkB,EAAE,kBAAkB,CAAA;IACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAA;CAC5C,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,OAAO,EAAE,2BAA2B,QAmDrC"}
|
|
@@ -7,22 +7,23 @@ function o(o) {
|
|
|
7
7
|
let { queryBundleRequest: s, onChange: c } = o, { rowDataQueryOptions: l, queryMetadataQueryOptions: u } = e(s), { data: d, isLoading: f } = i({
|
|
8
8
|
...l,
|
|
9
9
|
select: (e) => e.responseBody
|
|
10
|
-
}), { data: p, isLoading: m } = i(u),
|
|
10
|
+
}), { data: p, isLoading: m } = i(u), h = l.enabled !== !1, [g, _] = r();
|
|
11
11
|
t(() => {
|
|
12
|
-
d && p && !f && !m &&
|
|
12
|
+
(d || !h) && p && !f && !m && _({
|
|
13
13
|
...p,
|
|
14
14
|
...d
|
|
15
15
|
});
|
|
16
16
|
}, [
|
|
17
|
+
h,
|
|
17
18
|
p,
|
|
18
19
|
m,
|
|
19
20
|
d,
|
|
20
21
|
f
|
|
21
22
|
]);
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, [
|
|
23
|
+
let v = n(c);
|
|
24
|
+
v.current = c, a(() => {
|
|
25
|
+
g && v.current(g);
|
|
26
|
+
}, [g]);
|
|
26
27
|
}
|
|
27
28
|
//#endregion
|
|
28
29
|
export { o as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOnQueryDataChange.js","names":[],"sources":["../../../src/components/QueryWrapper/useOnQueryDataChange.ts"],"sourcesContent":["import { useDeepCompareEffectNoCheck } from 'use-deep-compare-effect'\nimport { useQuery } from '@tanstack/react-query'\nimport {\n QueryBundleRequest,\n QueryResultBundle,\n} from '@sage-bionetworks/synapse-types'\nimport { useTableQueryUseQueryOptions } from './TableQueryUseQueryOptions'\nimport { useEffect, useRef, useState } from 'react'\n\ntype UseOnQueryDataChangeOptions = {\n queryBundleRequest: QueryBundleRequest\n onChange: (data: QueryResultBundle) => void\n}\n\n/**\n * Calls the onChange callback with the current QueryResultBundle when the data for the passed query changes\n * @param options\n */\nexport default function useOnQueryDataChange(\n options: UseOnQueryDataChangeOptions,\n) {\n const { queryBundleRequest, onChange } = options\n const { rowDataQueryOptions, queryMetadataQueryOptions } =\n useTableQueryUseQueryOptions(queryBundleRequest)\n\n const { data: rowData, isLoading: rowDataIsLoading } = useQuery({\n ...rowDataQueryOptions,\n select: asyncJobResponse => asyncJobResponse.responseBody,\n })\n const { data: queryMetadata, isLoading: queryMetadataIsLoading } = useQuery(\n queryMetadataQueryOptions,\n )\n\n // SWC requires the entire QueryResultBundle to enable editing table data, so merge the data back into one object before\n // passing it to the onChange callback\n const [mergedData, setMergedData] = useState<QueryResultBundle>()\n useEffect(() => {\n if (\n rowData &&\n queryMetadata &&\n !rowDataIsLoading &&\n !queryMetadataIsLoading\n ) {\n setMergedData({\n ...queryMetadata,\n ...rowData,\n })\n }\n }, [queryMetadata
|
|
1
|
+
{"version":3,"file":"useOnQueryDataChange.js","names":[],"sources":["../../../src/components/QueryWrapper/useOnQueryDataChange.ts"],"sourcesContent":["import { useDeepCompareEffectNoCheck } from 'use-deep-compare-effect'\nimport { useQuery } from '@tanstack/react-query'\nimport {\n QueryBundleRequest,\n QueryResultBundle,\n} from '@sage-bionetworks/synapse-types'\nimport { useTableQueryUseQueryOptions } from './TableQueryUseQueryOptions'\nimport { useEffect, useRef, useState } from 'react'\n\ntype UseOnQueryDataChangeOptions = {\n queryBundleRequest: QueryBundleRequest\n onChange: (data: QueryResultBundle) => void\n}\n\n/**\n * Calls the onChange callback with the current QueryResultBundle when the data for the passed query changes\n * @param options\n */\nexport default function useOnQueryDataChange(\n options: UseOnQueryDataChangeOptions,\n) {\n const { queryBundleRequest, onChange } = options\n const { rowDataQueryOptions, queryMetadataQueryOptions } =\n useTableQueryUseQueryOptions(queryBundleRequest)\n\n const { data: rowData, isLoading: rowDataIsLoading } = useQuery({\n ...rowDataQueryOptions,\n select: asyncJobResponse => asyncJobResponse.responseBody,\n })\n const { data: queryMetadata, isLoading: queryMetadataIsLoading } = useQuery(\n queryMetadataQueryOptions,\n )\n\n // SWC requires the entire QueryResultBundle to enable editing table data, so merge the data back into one object before\n // passing it to the onChange callback. A request without rows produces a metadata-only bundle.\n const isRowDataRequested = rowDataQueryOptions.enabled !== false\n const [mergedData, setMergedData] = useState<QueryResultBundle>()\n useEffect(() => {\n if (\n (rowData || !isRowDataRequested) &&\n queryMetadata &&\n !rowDataIsLoading &&\n !queryMetadataIsLoading\n ) {\n setMergedData({\n ...queryMetadata,\n ...rowData,\n })\n }\n }, [\n isRowDataRequested,\n queryMetadata,\n queryMetadataIsLoading,\n rowData,\n rowDataIsLoading,\n ])\n\n // Use a ref so we always call the latest onChange without including it in the\n // effect dependency array. Including a frequently-recreated callback in deps\n // causes the effect to re-fire on every render, creating an infinite loop when\n // the parent updates state inside the callback.\n const onChangeRef = useRef(onChange)\n onChangeRef.current = onChange\n\n // mergedData is sometimes undefined, which useDeepCompareEffect doesn't like, so use useDeepCompareEffectNoCheck instead\n useDeepCompareEffectNoCheck(() => {\n if (mergedData) {\n onChangeRef.current(mergedData)\n }\n }, [mergedData])\n}\n"],"mappings":";;;;;AAkBA,SAAwB,EACtB,GACA;CACA,IAAM,EAAE,uBAAoB,gBAAa,GACnC,EAAE,wBAAqB,iCAC3B,EAA6B,CAAkB,GAE3C,EAAE,MAAM,GAAS,WAAW,MAAqB,EAAS;EAC9D,GAAG;EACH,SAAQ,MAAoB,EAAiB;CAC/C,CAAC,GACK,EAAE,MAAM,GAAe,WAAW,MAA2B,EACjE,CACF,GAIM,IAAqB,EAAoB,YAAY,IACrD,CAAC,GAAY,KAAiB,EAA4B;CAChE,QAAgB;EACd,CACG,KAAW,CAAC,MACb,KACA,CAAC,KACD,CAAC,KAED,EAAc;GACZ,GAAG;GACH,GAAG;EACL,CAAC;CAEL,GAAG;EACD;EACA;EACA;EACA;EACA;CACF,CAAC;CAMD,IAAM,IAAc,EAAO,CAAQ;CAInC,AAHA,EAAY,UAAU,GAGtB,QAAkC;EAChC,AAAI,KACF,EAAY,QAAQ,CAAU;CAElC,GAAG,CAAC,CAAU,CAAC;AACjB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* Error boundary that automatically pulls the error from QueryContext.
|
|
3
|
+
* Error boundary that automatically pulls the error from QueryContext. Shows a notice when an aggregate-only result
|
|
4
|
+
* was withheld (BELOW_THRESHOLD / ROW_SUPPRESSED), entity actions required for other 403s, and otherwise an error
|
|
5
|
+
* banner. Resets when the current query changes.
|
|
4
6
|
*/
|
|
5
7
|
export declare function QueryWrapperErrorBoundary({ children, }: PropsWithChildren<Record<never, never>>): import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
//# sourceMappingURL=QueryWrapperErrorBoundary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryWrapperErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/components/QueryWrapperErrorBoundary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"QueryWrapperErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/components/QueryWrapperErrorBoundary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAA;AAc/D;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,GACT,EAAE,iBAAiB,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,2CA6CzC"}
|
|
@@ -1,27 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { AggregateQueryErrorNotice as e, getAggregateQueryError as t } from "./QueryWrapper/AggregateQueryErrorNotice.js";
|
|
2
|
+
import { ErrorBanner as n } from "./error/ErrorBanner.js";
|
|
3
|
+
import { useSynapseContext as r } from "../utils/context/SynapseContext.js";
|
|
4
|
+
import { SynapseClientError as i } from "../utils/index.js";
|
|
5
|
+
import { useQueryContext as a } from "./QueryContext/QueryContext.js";
|
|
6
|
+
import { EntityActionsRequired as o } from "./AccessRequirement/EntityActionsRequired.js";
|
|
7
|
+
import { SqlEditor as s } from "./SynapseTable/SqlEditor.js";
|
|
8
|
+
import { useCallback as c, useMemo as l } from "react";
|
|
9
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
|
+
import { ErrorBoundary as f } from "react-error-boundary";
|
|
10
11
|
//#region src/components/QueryWrapperErrorBoundary.tsx
|
|
11
|
-
function
|
|
12
|
-
let { getCurrentQueryRequest:
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
FallbackComponent:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
function p({ children: p }) {
|
|
13
|
+
let { getCurrentQueryRequest: m, currentQueryRequest: h } = a(), { entityId: g } = l(() => m(), [m]), { isAuthenticated: _ } = r();
|
|
14
|
+
return /* @__PURE__ */ u(f, {
|
|
15
|
+
FallbackComponent: c((r) => {
|
|
16
|
+
let a = t(r.error);
|
|
17
|
+
return a ? /* @__PURE__ */ u(e, { error: a }) : r.error instanceof i && r.error.status === 403 && _ ? /* @__PURE__ */ u("div", {
|
|
18
|
+
className: "ErrorBannerWrapper",
|
|
19
|
+
children: /* @__PURE__ */ u(o, { entityId: g })
|
|
20
|
+
}) : /* @__PURE__ */ d("div", {
|
|
21
|
+
className: "ErrorBannerWrapper",
|
|
22
|
+
children: [/* @__PURE__ */ u(s, { resetErrorBoundary: r.resetErrorBoundary }), /* @__PURE__ */ u(n, { ...r })]
|
|
23
|
+
});
|
|
24
|
+
}, [g, _]),
|
|
25
|
+
resetKeys: [h],
|
|
26
|
+
children: p
|
|
22
27
|
});
|
|
23
28
|
}
|
|
24
29
|
//#endregion
|
|
25
|
-
export {
|
|
30
|
+
export { p as QueryWrapperErrorBoundary };
|
|
26
31
|
|
|
27
32
|
//# sourceMappingURL=QueryWrapperErrorBoundary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryWrapperErrorBoundary.js","names":[],"sources":["../../src/components/QueryWrapperErrorBoundary.tsx"],"sourcesContent":["import { SynapseClientError, useSynapseContext } from '@/utils'\nimport { PropsWithChildren, useCallback, useMemo } from 'react'\nimport {\n ErrorBoundary,\n ErrorBoundaryPropsWithComponent,\n} from 'react-error-boundary'\nimport { EntityActionsRequired } from './AccessRequirement/EntityActionsRequired'\nimport { ErrorBanner } from './error/ErrorBanner'\nimport { useQueryContext } from './QueryContext/QueryContext'\nimport SqlEditor from './SynapseTable/SqlEditor'\n\n/**\n * Error boundary that automatically pulls the error from QueryContext.
|
|
1
|
+
{"version":3,"file":"QueryWrapperErrorBoundary.js","names":[],"sources":["../../src/components/QueryWrapperErrorBoundary.tsx"],"sourcesContent":["import { SynapseClientError, useSynapseContext } from '@/utils'\nimport { PropsWithChildren, useCallback, useMemo } from 'react'\nimport {\n ErrorBoundary,\n ErrorBoundaryPropsWithComponent,\n} from 'react-error-boundary'\nimport { EntityActionsRequired } from './AccessRequirement/EntityActionsRequired'\nimport { ErrorBanner } from './error/ErrorBanner'\nimport { useQueryContext } from './QueryContext/QueryContext'\nimport {\n AggregateQueryErrorNotice,\n getAggregateQueryError,\n} from './QueryWrapper/AggregateQueryErrorNotice'\nimport SqlEditor from './SynapseTable/SqlEditor'\n\n/**\n * Error boundary that automatically pulls the error from QueryContext. Shows a notice when an aggregate-only result\n * was withheld (BELOW_THRESHOLD / ROW_SUPPRESSED), entity actions required for other 403s, and otherwise an error\n * banner. Resets when the current query changes.\n */\nexport function QueryWrapperErrorBoundary({\n children,\n}: PropsWithChildren<Record<never, never>>) {\n const { getCurrentQueryRequest, currentQueryRequest } = useQueryContext()\n const { entityId } = useMemo(\n () => getCurrentQueryRequest(),\n [getCurrentQueryRequest],\n )\n const { isAuthenticated } = useSynapseContext()\n\n const FallbackComponent: ErrorBoundaryPropsWithComponent['FallbackComponent'] =\n useCallback(\n props => {\n // These errors are also 403s, so they must be checked before the access-requirement branch.\n const aggregateQueryError = getAggregateQueryError(props.error)\n if (aggregateQueryError) {\n return <AggregateQueryErrorNotice error={aggregateQueryError} />\n }\n if (\n props.error instanceof SynapseClientError &&\n props.error.status === 403 &&\n isAuthenticated\n ) {\n return (\n <div className={`ErrorBannerWrapper`}>\n <EntityActionsRequired entityId={entityId} />\n </div>\n )\n }\n return (\n <div className={`ErrorBannerWrapper`}>\n <SqlEditor resetErrorBoundary={props.resetErrorBoundary} />\n <ErrorBanner {...props} />\n </div>\n )\n },\n [entityId, isAuthenticated],\n )\n\n return (\n <ErrorBoundary\n FallbackComponent={FallbackComponent}\n resetKeys={[currentQueryRequest]}\n >\n {children}\n </ErrorBoundary>\n )\n}\n"],"mappings":";;;;;;;;;;;AAoBA,SAAgB,EAA0B,EACxC,eAC0C;CAC1C,IAAM,EAAE,2BAAwB,2BAAwB,EAAgB,GAClE,EAAE,gBAAa,QACb,EAAuB,GAC7B,CAAC,CAAsB,CACzB,GACM,EAAE,uBAAoB,EAAkB;CA+B9C,OACE,kBAAC,GAAD;EACqB,mBA9BrB,GACE,MAAS;GAEP,IAAM,IAAsB,EAAuB,EAAM,KAAK;GAe9D,OAdI,IACK,kBAAC,GAAD,EAA2B,OAAO,EAAsB,CAAA,IAG/D,EAAM,iBAAiB,KACvB,EAAM,MAAM,WAAW,OACvB,IAGE,kBAAC,OAAD;IAAK,WAAW;cACd,kBAAC,GAAD,EAAiC,YAAW,CAAA;GACzC,CAAA,IAIP,kBAAC,OAAD;IAAK,WAAW;cAAhB,CACE,kBAAC,GAAD,EAAW,oBAAoB,EAAM,mBAAqB,CAAA,GAC1D,kBAAC,GAAD,EAAa,GAAI,EAAQ,CAAA,CACtB;;EAET,GACA,CAAC,GAAU,CAAe,CAKP;EACnB,WAAW,CAAC,CAAmB;EAE9B;CACY,CAAA;AAEnB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useQueryVisualizationContext as e } from "../QueryVisualizationWrapper/QueryVisualizationContext.js";
|
|
2
|
+
import { formatDate as t } from "../../utils/functions/DateFormatter.js";
|
|
3
|
+
import { useSuspenseGetQueryMetadata as n } from "../QueryWrapper/useGetQueryMetadata.js";
|
|
4
4
|
import "../QueryVisualizationWrapper/index.js";
|
|
5
5
|
import { Suspense as r } from "react";
|
|
6
6
|
import { Skeleton as i, Typography as a } from "@mui/material";
|
|
@@ -8,7 +8,7 @@ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
|
8
8
|
import l from "dayjs";
|
|
9
9
|
//#region src/components/QueryWrapperPlotNav/LastUpdatedOn.tsx
|
|
10
10
|
function u() {
|
|
11
|
-
let { showLastUpdatedOn: r } =
|
|
11
|
+
let { showLastUpdatedOn: r } = e(), { data: i } = n();
|
|
12
12
|
return r && i?.lastUpdatedOn ? /* @__PURE__ */ s("div", {
|
|
13
13
|
style: {
|
|
14
14
|
display: "flex",
|
|
@@ -17,13 +17,13 @@ function u() {
|
|
|
17
17
|
},
|
|
18
18
|
children: /* @__PURE__ */ c(a, {
|
|
19
19
|
variant: "body1Italic",
|
|
20
|
-
children: ["Last updated on ",
|
|
20
|
+
children: ["Last updated on ", t(l(i.lastUpdatedOn))]
|
|
21
21
|
})
|
|
22
22
|
}) : /* @__PURE__ */ s(o, {});
|
|
23
23
|
}
|
|
24
24
|
function d() {
|
|
25
|
-
let { showLastUpdatedOn:
|
|
26
|
-
return
|
|
25
|
+
let { showLastUpdatedOn: t } = e();
|
|
26
|
+
return t ? /* @__PURE__ */ s(r, {
|
|
27
27
|
fallback: /* @__PURE__ */ s(i, { width: 100 }),
|
|
28
28
|
children: /* @__PURE__ */ s(u, {})
|
|
29
29
|
}) : /* @__PURE__ */ s(o, {});
|