synapse-react-client 4.0.34 → 4.0.36
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/AridhiaKeyFactory.d.ts +24 -0
- package/dist/aridhia-queries/AridhiaKeyFactory.d.ts.map +1 -0
- package/dist/aridhia-queries/AridhiaKeyFactory.js +49 -0
- package/dist/aridhia-queries/AridhiaKeyFactory.js.map +1 -0
- package/dist/aridhia-queries/FairFormPayload.d.ts +45 -0
- package/dist/aridhia-queries/FairFormPayload.d.ts.map +1 -0
- package/dist/aridhia-queries/FairFormPayload.js +0 -0
- package/dist/aridhia-queries/TransferType.d.ts +10 -0
- package/dist/aridhia-queries/TransferType.d.ts.map +1 -0
- package/dist/aridhia-queries/TransferType.js +0 -0
- package/dist/aridhia-queries/aridhiaTokenExchange.js +6 -6
- package/dist/aridhia-queries/index.d.ts +12 -0
- package/dist/aridhia-queries/index.d.ts.map +1 -1
- package/dist/aridhia-queries/index.js +12 -2
- package/dist/aridhia-queries/useAridhiaQuery.d.ts +37 -0
- package/dist/aridhia-queries/useAridhiaQuery.d.ts.map +1 -0
- package/dist/aridhia-queries/useAridhiaQuery.js +71 -0
- package/dist/aridhia-queries/useAridhiaQuery.js.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaDatasetCatalogue.d.ts +6 -0
- package/dist/aridhia-queries/useGetAridhiaDatasetCatalogue.d.ts.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaDatasetCatalogue.js +13 -0
- package/dist/aridhia-queries/useGetAridhiaDatasetCatalogue.js.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaDatasetSettings.d.ts +6 -0
- package/dist/aridhia-queries/useGetAridhiaDatasetSettings.d.ts.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaDatasetSettings.js +13 -0
- package/dist/aridhia-queries/useGetAridhiaDatasetSettings.js.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaDictionaries.d.ts +6 -0
- package/dist/aridhia-queries/useGetAridhiaDictionaries.d.ts.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaDictionaries.js +13 -0
- package/dist/aridhia-queries/useGetAridhiaDictionaries.js.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaRequests.d.ts +5 -4
- package/dist/aridhia-queries/useGetAridhiaRequests.d.ts.map +1 -1
- package/dist/aridhia-queries/useGetAridhiaRequests.js +11 -18
- package/dist/aridhia-queries/useGetAridhiaRequests.js.map +1 -1
- package/dist/aridhia-queries/useGetAridhiaWorkflow.d.ts +13 -0
- package/dist/aridhia-queries/useGetAridhiaWorkflow.d.ts.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaWorkflow.js +19 -0
- package/dist/aridhia-queries/useGetAridhiaWorkflow.js.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaceLocations.d.ts +6 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaceLocations.d.ts.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaceLocations.js +13 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaceLocations.js.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaceRequestForm.d.ts +19 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaceRequestForm.d.ts.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaceRequestForm.js +17 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaceRequestForm.js.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaces.d.ts +6 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaces.d.ts.map +1 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaces.js +19 -0
- package/dist/aridhia-queries/useGetAridhiaWorkspaces.js.map +1 -0
- package/dist/aridhia-queries/useSubmitAridhiaDar.d.ts +27 -0
- package/dist/aridhia-queries/useSubmitAridhiaDar.d.ts.map +1 -0
- package/dist/aridhia-queries/useSubmitAridhiaDar.js +38 -0
- package/dist/aridhia-queries/useSubmitAridhiaDar.js.map +1 -0
- package/dist/assets/icons/curie-head.svg +21 -0
- package/dist/components/AccessRequirement/EntityActionsRequired.d.ts +0 -1
- package/dist/components/AccessRequirement/EntityActionsRequired.d.ts.map +1 -1
- package/dist/components/AccessRequirement/EntityActionsRequired.js +3 -6
- package/dist/components/AccessRequirement/EntityActionsRequired.js.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementList.d.ts +24 -2
- package/dist/components/AccessRequirementList/AccessRequirementList.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementList.js +69 -66
- package/dist/components/AccessRequirementList/AccessRequirementList.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js +67 -56
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.d.ts +6 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.js +55 -54
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.js.map +1 -1
- package/dist/components/Aridhia/aridhiaAccessStatusUtils.d.ts +3 -3
- package/dist/components/Aridhia/aridhiaAccessStatusUtils.d.ts.map +1 -1
- package/dist/components/Aridhia/aridhiaAccessStatusUtils.js +1 -1
- package/dist/components/Aridhia/aridhiaAccessStatusUtils.js.map +1 -1
- package/dist/components/CardContainer/CardConfiguration.d.ts +8 -0
- package/dist/components/CardContainer/CardConfiguration.d.ts.map +1 -1
- package/dist/components/ChangePassword/ChangePasswordWithToken.d.ts.map +1 -1
- package/dist/components/ChangePassword/ChangePasswordWithToken.js +58 -23
- package/dist/components/ChangePassword/ChangePasswordWithToken.js.map +1 -1
- package/dist/components/ChangePassword/useChangePasswordFormState.d.ts.map +1 -1
- package/dist/components/ChangePassword/useChangePasswordFormState.js +13 -3
- package/dist/components/ChangePassword/useChangePasswordFormState.js.map +1 -1
- package/dist/components/CreateTableViewWizard/TableNameForm.d.ts.map +1 -1
- package/dist/components/CreateTableViewWizard/TableNameForm.js +11 -14
- package/dist/components/CreateTableViewWizard/TableNameForm.js.map +1 -1
- package/dist/components/DataGrid/SyncGridWithSourceButton.d.ts +1 -1
- package/dist/components/DataGrid/SyncGridWithSourceButton.d.ts.map +1 -1
- package/dist/components/DataGrid/SyncGridWithSourceButton.js +55 -61
- package/dist/components/DataGrid/SyncGridWithSourceButton.js.map +1 -1
- package/dist/components/DataGrid/components/contextMenu.d.ts.map +1 -1
- package/dist/components/DataGrid/components/contextMenu.js +15 -15
- package/dist/components/DataGrid/components/contextMenu.js.map +1 -1
- package/dist/components/DataGrid/useMergeGridWithSource.d.ts +1 -5
- package/dist/components/DataGrid/useMergeGridWithSource.d.ts.map +1 -1
- package/dist/components/DataGrid/useMergeGridWithSource.js +21 -28
- package/dist/components/DataGrid/useMergeGridWithSource.js.map +1 -1
- package/dist/components/DatasetHosting/DatasetDownloadButton.d.ts +35 -0
- package/dist/components/DatasetHosting/DatasetDownloadButton.d.ts.map +1 -0
- package/dist/components/DatasetHosting/DatasetDownloadButton.js +132 -0
- package/dist/components/DatasetHosting/DatasetDownloadButton.js.map +1 -0
- package/dist/components/DatasetHosting/DatasetHosting.d.ts +91 -0
- package/dist/components/DatasetHosting/DatasetHosting.d.ts.map +1 -0
- package/dist/components/DatasetHosting/DatasetHosting.js +58 -0
- package/dist/components/DatasetHosting/DatasetHosting.js.map +1 -0
- package/dist/components/DatasetHosting/index.d.ts +5 -0
- package/dist/components/DatasetHosting/index.d.ts.map +1 -0
- package/dist/components/DatasetHosting/index.js +3 -0
- package/dist/components/DownloadCart/ActionRequiredListItem.d.ts +0 -2
- package/dist/components/DownloadCart/ActionRequiredListItem.d.ts.map +1 -1
- package/dist/components/DownloadCart/ActionRequiredListItem.js +2 -3
- package/dist/components/DownloadCart/ActionRequiredListItem.js.map +1 -1
- package/dist/components/DownloadCart/DownloadCartPage.d.ts +1 -2
- package/dist/components/DownloadCart/DownloadCartPage.d.ts.map +1 -1
- package/dist/components/DownloadCart/DownloadCartPage.js +49 -49
- package/dist/components/DownloadCart/DownloadCartPage.js.map +1 -1
- package/dist/components/DownloadCart/DownloadListActionsRequired.d.ts +1 -5
- package/dist/components/DownloadCart/DownloadListActionsRequired.d.ts.map +1 -1
- package/dist/components/DownloadCart/DownloadListActionsRequired.js +5 -6
- package/dist/components/DownloadCart/DownloadListActionsRequired.js.map +1 -1
- package/dist/components/DownloadCart/RequestDownloadCard.d.ts +0 -2
- package/dist/components/DownloadCart/RequestDownloadCard.d.ts.map +1 -1
- package/dist/components/DownloadCart/RequestDownloadCard.js +28 -32
- package/dist/components/DownloadCart/RequestDownloadCard.js.map +1 -1
- package/dist/components/DownloadCart/TableQueryActionsRequired.d.ts +0 -2
- package/dist/components/DownloadCart/TableQueryActionsRequired.d.ts.map +1 -1
- package/dist/components/DownloadCart/TableQueryActionsRequired.js +7 -8
- package/dist/components/DownloadCart/TableQueryActionsRequired.js.map +1 -1
- package/dist/components/DownloadCart/index.d.ts +1 -2
- package/dist/components/DownloadCart/index.d.ts.map +1 -1
- package/dist/components/DraggableDialog/DraggableDialog.d.ts +2 -1
- package/dist/components/DraggableDialog/DraggableDialog.d.ts.map +1 -1
- package/dist/components/DraggableDialog/DraggableDialog.js +42 -33
- package/dist/components/DraggableDialog/DraggableDialog.js.map +1 -1
- package/dist/components/EntityTreeTable/hooks/useTableColumns.d.ts.map +1 -1
- package/dist/components/EntityTreeTable/hooks/useTableColumns.js +12 -6
- package/dist/components/EntityTreeTable/hooks/useTableColumns.js.map +1 -1
- package/dist/components/ExperimentalMode/ExperimentalMode.js +2 -1
- package/dist/components/ExperimentalMode/ExperimentalMode.js.map +1 -1
- package/dist/components/GenericCard/CardActionButtonStyleContext.d.ts +10 -0
- package/dist/components/GenericCard/CardActionButtonStyleContext.d.ts.map +1 -0
- package/dist/components/GenericCard/CardActionButtonStyleContext.js +10 -0
- package/dist/components/GenericCard/CardActionButtonStyleContext.js.map +1 -0
- package/dist/components/GenericCard/DuoTermTags/DuoTermTags.js +41 -41
- package/dist/components/GenericCard/GenericCardActionButton.d.ts +5 -0
- package/dist/components/GenericCard/GenericCardActionButton.d.ts.map +1 -1
- package/dist/components/GenericCard/GenericCardActionButton.js +28 -11
- package/dist/components/GenericCard/GenericCardActionButton.js.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.d.ts +24 -0
- package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
- package/dist/components/GenericCard/TableRowGenericCard.js +205 -190
- package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
- package/dist/components/JSONArrayEditor/JSONArrayEditor.d.ts.map +1 -1
- package/dist/components/JSONArrayEditor/JSONArrayEditor.js +42 -42
- package/dist/components/JSONArrayEditor/JSONArrayEditor.js.map +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.css +1 -0
- package/dist/components/JsonSchemaForm/JsonSchemaForm.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.js +13 -12
- package/dist/components/JsonSchemaForm/JsonSchemaForm.js.map +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.module.js +5 -0
- package/dist/components/JsonSchemaForm/JsonSchemaForm.module.js.map +1 -0
- package/dist/components/JsonSchemaForm/JsonSchemaForm.module.scss +109 -0
- package/dist/components/QueryBuilder/QueryBuilderTypes.d.ts +39 -0
- package/dist/components/QueryBuilder/QueryBuilderTypes.d.ts.map +1 -0
- package/dist/components/QueryBuilder/QueryBuilderTypes.js +11 -0
- package/dist/components/QueryBuilder/QueryBuilderTypes.js.map +1 -0
- package/dist/components/QueryBuilder/queryBuilderTranslation.d.ts +48 -0
- package/dist/components/QueryBuilder/queryBuilderTranslation.d.ts.map +1 -0
- package/dist/components/QueryBuilder/queryBuilderTranslation.js +256 -0
- package/dist/components/QueryBuilder/queryBuilderTranslation.js.map +1 -0
- package/dist/components/QueryContext/QueryContext.d.ts +0 -1
- package/dist/components/QueryContext/QueryContext.d.ts.map +1 -1
- package/dist/components/QueryContext/QueryContext.js.map +1 -1
- package/dist/components/QueryWrapper/QueryWrapper.d.ts +0 -1
- package/dist/components/QueryWrapper/QueryWrapper.d.ts.map +1 -1
- package/dist/components/QueryWrapper/QueryWrapper.js +52 -53
- package/dist/components/QueryWrapper/QueryWrapper.js.map +1 -1
- package/dist/components/QueryWrapperErrorBoundary.d.ts.map +1 -1
- package/dist/components/QueryWrapperErrorBoundary.js +4 -11
- package/dist/components/QueryWrapperErrorBoundary.js.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +0 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/SchemaDrivenAnnotationEditor.js +123 -123
- package/dist/components/SchemaDrivenAnnotationEditor/SchemaDrivenAnnotationEditor.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +64 -55
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js +0 -1
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js.map +1 -1
- package/dist/components/ShareThisPage/ShareThisPage.js +30 -29
- package/dist/components/ShareThisPage/ShareThisPage.js.map +1 -1
- package/dist/components/StorybookComponentWrapper.d.ts.map +1 -1
- package/dist/components/StorybookComponentWrapper.js +15 -10
- package/dist/components/StorybookComponentWrapper.js.map +1 -1
- package/dist/components/SynapseChat/GridAgentChat.d.ts.map +1 -1
- package/dist/components/SynapseChat/GridAgentChat.js +29 -31
- package/dist/components/SynapseChat/GridAgentChat.js.map +1 -1
- package/dist/components/SynapseChat/SynapseChat.d.ts +2 -1
- package/dist/components/SynapseChat/SynapseChat.d.ts.map +1 -1
- package/dist/components/SynapseChat/SynapseChat.js +118 -74
- package/dist/components/SynapseChat/SynapseChat.js.map +1 -1
- package/dist/components/SynapseChat/SynapseChatInteraction.d.ts +3 -1
- package/dist/components/SynapseChat/SynapseChatInteraction.d.ts.map +1 -1
- package/dist/components/SynapseChat/SynapseChatInteraction.js +21 -21
- package/dist/components/SynapseChat/SynapseChatInteraction.js.map +1 -1
- package/dist/components/SynapseChat/SynapseChatMessage.d.ts +1 -0
- package/dist/components/SynapseChat/SynapseChatMessage.d.ts.map +1 -1
- package/dist/components/SynapseChat/SynapseChatMessage.js +9 -8
- package/dist/components/SynapseChat/SynapseChatMessage.js.map +1 -1
- package/dist/components/SynapseChat/SynapsePortalChatDialog.d.ts.map +1 -1
- package/dist/components/SynapseChat/SynapsePortalChatDialog.js +2 -1
- package/dist/components/SynapseChat/SynapsePortalChatDialog.js.map +1 -1
- package/dist/components/SynapseTable/SynapseTable.d.ts.map +1 -1
- package/dist/components/SynapseTable/SynapseTable.js +2 -1
- package/dist/components/SynapseTable/SynapseTable.js.map +1 -1
- package/dist/components/SynapseTable/export/ExternalPlatformActionsRequiredPrecheck.d.ts.map +1 -1
- package/dist/components/SynapseTable/export/ExternalPlatformActionsRequiredPrecheck.js +29 -30
- package/dist/components/SynapseTable/export/ExternalPlatformActionsRequiredPrecheck.js.map +1 -1
- package/dist/components/TanStackTable/StyledTanStackTable.d.ts +7 -0
- package/dist/components/TanStackTable/StyledTanStackTable.d.ts.map +1 -1
- package/dist/components/TanStackTable/StyledTanStackTable.js +68 -48
- package/dist/components/TanStackTable/StyledTanStackTable.js.map +1 -1
- package/dist/components/TanStackTable/TanStackTableUtils.d.ts.map +1 -1
- package/dist/components/TanStackTable/TanStackTableUtils.js +6 -6
- package/dist/components/TanStackTable/TanStackTableUtils.js.map +1 -1
- package/dist/components/TanStackTable/useSyncedTopScrollbar.d.ts +13 -0
- package/dist/components/TanStackTable/useSyncedTopScrollbar.d.ts.map +1 -0
- package/dist/components/TanStackTable/useSyncedTopScrollbar.js +32 -0
- package/dist/components/TanStackTable/useSyncedTopScrollbar.js.map +1 -0
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts +12 -0
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts.map +1 -0
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js +86 -0
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js.map +1 -0
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPage.d.ts.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPage.js +20 -18
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPage.js.map +1 -1
- package/dist/components/doi/CreateOrUpdateDoiModal.d.ts.map +1 -1
- package/dist/components/doi/CreateOrUpdateDoiModal.js +10 -13
- package/dist/components/doi/CreateOrUpdateDoiModal.js.map +1 -1
- package/dist/components/entity/page/CreatedByModifiedBy.d.ts.map +1 -1
- package/dist/components/entity/page/CreatedByModifiedBy.js +43 -61
- package/dist/components/entity/page/CreatedByModifiedBy.js.map +1 -1
- package/dist/components/entity/page/createdByModifiedByTooltips.d.ts +7 -0
- package/dist/components/entity/page/createdByModifiedByTooltips.d.ts.map +1 -0
- package/dist/components/entity/page/createdByModifiedByTooltips.js +36 -0
- package/dist/components/entity/page/createdByModifiedByTooltips.js.map +1 -0
- package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.d.ts.map +1 -1
- package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js +130 -65
- package/dist/components/entity/page/title_bar/useGetEntityTitleBarProperties.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +143 -140
- package/dist/components/menu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/menu/DropdownMenu.js +6 -6
- package/dist/components/menu/DropdownMenu.js.map +1 -1
- package/dist/components/widgets/Range.js +8 -2
- package/dist/components/widgets/Range.js.map +1 -1
- package/dist/components/widgets/query-filter/RangeFacetFilter.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/RangeFacetFilter.js +2 -1
- package/dist/components/widgets/query-filter/RangeFacetFilter.js.map +1 -1
- package/dist/components/widgets/query-filter/RangeFacetFilterUI.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/RangeFacetFilterUI.js +19 -19
- package/dist/components/widgets/query-filter/RangeFacetFilterUI.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.js +5 -5
- package/dist/index.js +161 -159
- package/dist/index.js.map +1 -1
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.js +30 -26
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/fileHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/fileHandlers.js +22 -22
- package/dist/mocks/msw/handlers/fileHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/resetTwoFactorAuthHandlers.d.ts +1 -0
- package/dist/mocks/msw/handlers/resetTwoFactorAuthHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/resetTwoFactorAuthHandlers.js +7 -1
- package/dist/mocks/msw/handlers/resetTwoFactorAuthHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/userProfileHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/userProfileHandlers.js +40 -36
- package/dist/mocks/msw/handlers/userProfileHandlers.js.map +1 -1
- package/dist/mocks/user/mock_user_profile.d.ts +1 -0
- package/dist/mocks/user/mock_user_profile.d.ts.map +1 -1
- package/dist/mocks/user/mock_user_profile.js +45 -45
- package/dist/mocks/user/mock_user_profile.js.map +1 -1
- package/dist/style/components/_all.scss +0 -1
- package/dist/style/components/_cards.scss +4 -2
- package/dist/style/main.css +1 -1
- package/dist/synapse-queries/KeyFactory.d.ts +2 -0
- package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
- package/dist/synapse-queries/KeyFactory.js +6 -0
- package/dist/synapse-queries/KeyFactory.js.map +1 -1
- package/dist/synapse-queries/dataaccess/index.js +4 -4
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts +20 -1
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/useEDuc.js +75 -49
- package/dist/synapse-queries/dataaccess/useEDuc.js.map +1 -1
- package/dist/synapse-queries/index.js +190 -188
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/APIConstants.d.ts +2 -0
- package/dist/utils/APIConstants.d.ts.map +1 -1
- package/dist/utils/APIConstants.js +2 -2
- package/dist/utils/APIConstants.js.map +1 -1
- package/dist/utils/AppUtils/session/ApplicationSessionManager.d.ts.map +1 -1
- package/dist/utils/AppUtils/session/ApplicationSessionManager.js +20 -19
- package/dist/utils/AppUtils/session/ApplicationSessionManager.js.map +1 -1
- package/dist/utils/featureflag/FeatureFlags.d.ts +2 -4
- package/dist/utils/featureflag/FeatureFlags.d.ts.map +1 -1
- package/dist/utils/featureflag/FeatureFlags.js +1 -1
- package/dist/utils/featureflag/FeatureFlags.js.map +1 -1
- package/dist/utils/functions/RegularExpressions.d.ts +17 -0
- package/dist/utils/functions/RegularExpressions.d.ts.map +1 -1
- package/dist/utils/functions/RegularExpressions.js +11 -4
- package/dist/utils/functions/RegularExpressions.js.map +1 -1
- package/dist/utils/functions/SqlFunctions.d.ts.map +1 -1
- package/dist/utils/functions/SqlFunctions.js +19 -3
- package/dist/utils/functions/SqlFunctions.js.map +1 -1
- package/dist/utils/hooks/useIsHydrated.d.ts +9 -0
- package/dist/utils/hooks/useIsHydrated.d.ts.map +1 -0
- package/dist/utils/hooks/useIsHydrated.js +10 -0
- package/dist/utils/hooks/useIsHydrated.js.map +1 -0
- package/dist/utils/index.js +16 -16
- package/dist/utils/types/IsType.d.ts +4 -1
- package/dist/utils/types/IsType.d.ts.map +1 -1
- package/dist/utils/types/IsType.js +4 -4
- package/dist/utils/types/IsType.js.map +1 -1
- package/dist/utils/types/index.js +2 -2
- package/package.json +7 -7
- package/dist/components/DataGrid/useMergeGridWithRecordSet.d.ts +0 -12
- package/dist/components/DataGrid/useMergeGridWithRecordSet.d.ts.map +0 -1
- package/dist/components/DataGrid/useMergeGridWithRecordSet.js +0 -25
- package/dist/components/DataGrid/useMergeGridWithRecordSet.js.map +0 -1
- package/dist/style/components/_annotations.scss +0 -110
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableQueryActionsRequired.js","names":[],"sources":["../../../src/components/DownloadCart/TableQueryActionsRequired.tsx"],"sourcesContent":["import { Box, Typography } from '@mui/material'\nimport {\n ColumnModel,\n QueryBundleRequest,\n} from '@sage-bionetworks/synapse-types'\nimport { noop, times } from 'lodash-es'\nimport { useEffect } from 'react'\nimport { useGetActionsRequiredForTableQuery } from '../../synapse-queries/entity/useActionsRequiredForTableQuery'\nimport useTrackTransientListItems from '../../utils/hooks/useTrackTransientListItems'\nimport { LoadingActionRequiredCard } from './ActionRequiredCard/ActionRequiredCard'\nimport { ActionRequiredListItem } from './ActionRequiredListItem'\n\nexport type TableQueryActionsRequiredProps = {\n /** The query request to use to select rows to check if actions are required. */\n queryBundleRequest: QueryBundleRequest\n /** The column models of the table */\n columnModels: ColumnModel[]\n /** Invoked when
|
|
1
|
+
{"version":3,"file":"TableQueryActionsRequired.js","names":[],"sources":["../../../src/components/DownloadCart/TableQueryActionsRequired.tsx"],"sourcesContent":["import { Box, Typography } from '@mui/material'\nimport {\n ColumnModel,\n QueryBundleRequest,\n} from '@sage-bionetworks/synapse-types'\nimport { noop, times } from 'lodash-es'\nimport { useEffect } from 'react'\nimport { useGetActionsRequiredForTableQuery } from '../../synapse-queries/entity/useActionsRequiredForTableQuery'\nimport useTrackTransientListItems from '../../utils/hooks/useTrackTransientListItems'\nimport { LoadingActionRequiredCard } from './ActionRequiredCard/ActionRequiredCard'\nimport { ActionRequiredListItem } from './ActionRequiredListItem'\n\nexport type TableQueryActionsRequiredProps = {\n /** The query request to use to select rows to check if actions are required. */\n queryBundleRequest: QueryBundleRequest\n /** The column models of the table */\n columnModels: ColumnModel[]\n /** Invoked when the number of required actions changes. Can be used to set UI state based on if all actions have been fulfilled */\n onNumberOfRequiredActionsChanged?: (actionsRequired: number) => void\n}\n\n/**\n * Displays an interactive list of actions required to take for a user to gain access to Synapse entities referenced in\n * a table query.\n */\nexport function TableQueryActionsRequired(\n props: TableQueryActionsRequiredProps,\n) {\n const {\n queryBundleRequest,\n columnModels,\n onNumberOfRequiredActionsChanged = noop,\n } = props\n\n // This component will track all completed actions, based on which actions are omitted from the ActionsRequiredResponse\n // as the user performs required tasks\n const { data: currentActionsRequired, isLoading } =\n useGetActionsRequiredForTableQuery(queryBundleRequest, columnModels, {\n throwOnError: true,\n })\n\n // PORTALS-2950 - Keep a record of actions that disappear from the server response - i.e. the 'completed' actions\n const allCompleteAndIncompleteActions = useTrackTransientListItems(\n currentActionsRequired,\n )\n\n useEffect(() => {\n if (currentActionsRequired) {\n onNumberOfRequiredActionsChanged(currentActionsRequired.length)\n }\n }, [currentActionsRequired, onNumberOfRequiredActionsChanged])\n\n return (\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n }}\n >\n {/* If no actions were ever required, show a message */}\n {!isLoading && allCompleteAndIncompleteActions.length === 0 && (\n <Typography\n variant={'body1Italic'}\n sx={{ p: 4, textAlign: 'center', color: 'grey.700' }}\n >\n All requirements have been met. No actions are required.\n </Typography>\n )}\n {allCompleteAndIncompleteActions.map((item, index) => (\n <ActionRequiredListItem\n key={index}\n action={item.action}\n count={item.count}\n />\n ))}\n {isLoading && times(3).map(k => <LoadingActionRequiredCard key={k} />)}\n </Box>\n )\n}\n"],"mappings":";;;;;;;;;AAyBA,SAAgB,EACd,GACA;CACA,IAAM,EACJ,uBACA,iBACA,sCAAmC,MACjC,GAIE,EAAE,MAAM,GAAwB,iBACpC,EAAmC,GAAoB,GAAc,EACnE,cAAc,GAChB,CAAC,GAGG,IAAkC,EACtC,CACF;CAQA,OANA,QAAgB;EACd,AAAI,KACF,EAAiC,EAAuB,MAAM;CAElE,GAAG,CAAC,GAAwB,CAAgC,CAAC,GAG3D,kBAAC,GAAD;EACE,IAAI;GACF,SAAS;GACT,eAAe;GACf,KAAK;EACP;YALF;GAQG,CAAC,KAAa,EAAgC,WAAW,KACxD,kBAAC,GAAD;IACE,SAAS;IACT,IAAI;KAAE,GAAG;KAAG,WAAW;KAAU,OAAO;IAAW;cACpD;GAEW,CAAA;GAEb,EAAgC,KAAK,GAAM,MAC1C,kBAAC,GAAD;IAEE,QAAQ,EAAK;IACb,OAAO,EAAK;GACb,GAHM,CAGN,CACF;GACA,KAAa,EAAM,CAAC,EAAE,KAAI,MAAK,kBAAC,GAAD,CAAoC,GAAJ,CAAI,CAAC;EAClE;;AAET"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { DownloadListActionsRequiredProps as DownloadCartPageProps } from './DownloadListActionsRequired';
|
|
2
1
|
import { DownloadCartPage } from './DownloadCartPage';
|
|
3
2
|
import { DownloadIneligibleForPackagingFilesFromListButton } from './DownloadIneligibleForPackagingFilesFromListButton';
|
|
4
3
|
import type { DownloadIneligibleForPackagingFilesFromListButtonProps } from './DownloadIneligibleForPackagingFilesFromListButton';
|
|
5
4
|
import ShowDownloadV2 from './ShowDownloadV2';
|
|
6
5
|
import type { ShowDownloadV2Props } from './ShowDownloadV2';
|
|
7
|
-
export { DownloadCartPage,
|
|
6
|
+
export { DownloadCartPage, DownloadIneligibleForPackagingFilesFromListButton, DownloadIneligibleForPackagingFilesFromListButtonProps, ShowDownloadV2, ShowDownloadV2Props, };
|
|
8
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DownloadCart/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DownloadCart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,iDAAiD,EAAE,MAAM,qDAAqD,CAAA;AACvH,OAAO,KAAK,EAAE,sDAAsD,EAAE,MAAM,qDAAqD,CAAA;AACjI,OAAO,cAAc,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D,OAAO,EACL,gBAAgB,EAChB,iDAAiD,EACjD,sDAAsD,EACtD,cAAc,EACd,mBAAmB,GACpB,CAAA"}
|
|
@@ -4,7 +4,8 @@ type DraggableDialogProps = {
|
|
|
4
4
|
onClose?: () => void;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
title?: ReactNode;
|
|
7
|
+
variant?: 'default' | 'curie';
|
|
7
8
|
};
|
|
8
|
-
export default function DraggableDialog({ open, onClose, title, children, }: DraggableDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export default function DraggableDialog({ open, onClose, title, children, variant, }: DraggableDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
10
|
export {};
|
|
10
11
|
//# sourceMappingURL=DraggableDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableDialog.d.ts","sourceRoot":"","sources":["../../../src/components/DraggableDialog/DraggableDialog.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAU,SAAS,EAAuB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DraggableDialog.d.ts","sourceRoot":"","sources":["../../../src/components/DraggableDialog/DraggableDialog.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAU,SAAS,EAAuB,MAAM,OAAO,CAAA;AAM9D,KAAK,oBAAoB,GAAG;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;CAC9B,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,IAAY,EACZ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,OAAmB,GACpB,EAAE,oBAAoB,kDAwItB"}
|
|
@@ -6,13 +6,14 @@ import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
|
6
6
|
import g from "@mui/icons-material/Close";
|
|
7
7
|
import _ from "react-draggable";
|
|
8
8
|
//#region src/components/DraggableDialog/DraggableDialog.tsx
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
var v = 700;
|
|
10
|
+
function y({ open: y = !1, onClose: b, title: x, children: S, variant: C = "default" }) {
|
|
11
|
+
let w = p(), T = f(w.breakpoints.down("sm")), E = r(null), [D, O] = i(), [k, A] = i({
|
|
11
12
|
x: 100,
|
|
12
|
-
y: 100
|
|
13
|
-
}), { width:
|
|
13
|
+
y: C === "curie" ? 50 : 100
|
|
14
|
+
}), { width: j, height: M, handleResizeStart: N } = e({
|
|
14
15
|
initialWidth: 600,
|
|
15
|
-
initialHeight: 500,
|
|
16
|
+
initialHeight: C === "curie" ? v : 500,
|
|
16
17
|
minWidth: 300,
|
|
17
18
|
minHeight: 200,
|
|
18
19
|
maxWidth: 1200,
|
|
@@ -21,26 +22,26 @@ function v({ open: v = !1, onClose: y, title: b, children: x }) {
|
|
|
21
22
|
if (n(() => {
|
|
22
23
|
function e() {
|
|
23
24
|
let e = {
|
|
24
|
-
left: -(
|
|
25
|
+
left: -(j - 100),
|
|
25
26
|
top: 0,
|
|
26
27
|
right: window.innerWidth - 100,
|
|
27
28
|
bottom: window.innerHeight - 100
|
|
28
29
|
};
|
|
29
|
-
|
|
30
|
+
O(e), A((t) => ({
|
|
30
31
|
x: Math.max(e.left, Math.min(t.x, e.right)),
|
|
31
32
|
y: Math.max(e.top, Math.min(t.y, e.bottom))
|
|
32
33
|
}));
|
|
33
34
|
}
|
|
34
35
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
35
|
-
}, [
|
|
36
|
-
let
|
|
36
|
+
}, [j, M]), !y) return null;
|
|
37
|
+
let P = /* @__PURE__ */ h(l, {
|
|
37
38
|
elevation: 5,
|
|
38
39
|
sx: {
|
|
39
40
|
display: "flex",
|
|
40
41
|
flexDirection: "column",
|
|
41
|
-
height:
|
|
42
|
-
width:
|
|
43
|
-
...
|
|
42
|
+
height: T ? "95vh" : `${M}px`,
|
|
43
|
+
width: T ? "95vw" : `${j}px`,
|
|
44
|
+
...T && { position: "fixed" }
|
|
44
45
|
},
|
|
45
46
|
children: [
|
|
46
47
|
/* @__PURE__ */ h(u, {
|
|
@@ -49,63 +50,71 @@ function v({ open: v = !1, onClose: y, title: b, children: x }) {
|
|
|
49
50
|
gap: "5px",
|
|
50
51
|
className: "drag-handle",
|
|
51
52
|
sx: {
|
|
52
|
-
padding: "20px",
|
|
53
|
+
padding: C === "curie" ? "44px 44px 20px 44px" : "20px",
|
|
53
54
|
cursor: "move"
|
|
54
55
|
},
|
|
55
56
|
children: [
|
|
56
|
-
/* @__PURE__ */ m(d, {
|
|
57
|
+
C !== "curie" && /* @__PURE__ */ m(d, {
|
|
57
58
|
variant: "headline1",
|
|
58
|
-
children:
|
|
59
|
+
children: x
|
|
59
60
|
}),
|
|
60
61
|
/* @__PURE__ */ m(a, { sx: { flexGrow: 1 } }),
|
|
61
62
|
/* @__PURE__ */ m(c, {
|
|
62
|
-
onClick:
|
|
63
|
-
children: /* @__PURE__ */ m(g, {
|
|
63
|
+
onClick: b,
|
|
64
|
+
children: /* @__PURE__ */ m(g, { sx: C === "curie" ? {
|
|
65
|
+
width: "16px",
|
|
66
|
+
height: "16px"
|
|
67
|
+
} : void 0 })
|
|
64
68
|
})
|
|
65
69
|
]
|
|
66
70
|
}),
|
|
67
|
-
/* @__PURE__ */ m(s, { sx: { mx: 2 } }),
|
|
71
|
+
C !== "curie" && /* @__PURE__ */ m(s, { sx: { mx: 2 } }),
|
|
68
72
|
/* @__PURE__ */ m(o, {
|
|
69
73
|
sx: {
|
|
70
74
|
height: "100%",
|
|
71
75
|
maxWidth: "100%",
|
|
72
|
-
padding: "16px"
|
|
76
|
+
padding: "16px",
|
|
77
|
+
...C === "curie" && {
|
|
78
|
+
borderTop: "none",
|
|
79
|
+
borderBottom: "none",
|
|
80
|
+
padding: C === "curie" ? "0 44px 44px 44px" : "44px"
|
|
81
|
+
}
|
|
73
82
|
},
|
|
74
|
-
children:
|
|
83
|
+
children: S
|
|
75
84
|
})
|
|
76
85
|
]
|
|
77
86
|
});
|
|
78
87
|
return /* @__PURE__ */ m(a, {
|
|
79
88
|
sx: {
|
|
80
89
|
position: "fixed",
|
|
81
|
-
zIndex:
|
|
90
|
+
zIndex: w.zIndex.modal,
|
|
82
91
|
top: 0,
|
|
83
92
|
left: 0,
|
|
84
|
-
pointerEvents:
|
|
93
|
+
pointerEvents: T ? "auto" : "none"
|
|
85
94
|
},
|
|
86
|
-
children:
|
|
87
|
-
position:
|
|
88
|
-
onDrag: (e, t) =>
|
|
95
|
+
children: T ? P : /* @__PURE__ */ m(_, {
|
|
96
|
+
position: k,
|
|
97
|
+
onDrag: (e, t) => A({
|
|
89
98
|
x: t.x,
|
|
90
99
|
y: t.y
|
|
91
100
|
}),
|
|
92
|
-
nodeRef:
|
|
93
|
-
bounds:
|
|
101
|
+
nodeRef: E,
|
|
102
|
+
bounds: D,
|
|
94
103
|
handle: ".drag-handle",
|
|
95
104
|
children: /* @__PURE__ */ m(a, {
|
|
96
|
-
ref:
|
|
105
|
+
ref: E,
|
|
97
106
|
sx: { pointerEvents: "auto" },
|
|
98
107
|
children: /* @__PURE__ */ m(t, {
|
|
99
|
-
width:
|
|
100
|
-
height:
|
|
101
|
-
onResizeStart:
|
|
102
|
-
children:
|
|
108
|
+
width: j,
|
|
109
|
+
height: M,
|
|
110
|
+
onResizeStart: N,
|
|
111
|
+
children: P
|
|
103
112
|
})
|
|
104
113
|
})
|
|
105
114
|
})
|
|
106
115
|
});
|
|
107
116
|
}
|
|
108
117
|
//#endregion
|
|
109
|
-
export {
|
|
118
|
+
export { y as default };
|
|
110
119
|
|
|
111
120
|
//# sourceMappingURL=DraggableDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableDialog.js","names":[],"sources":["../../../src/components/DraggableDialog/DraggableDialog.tsx"],"sourcesContent":["import Draggable, { DraggableBounds } from 'react-draggable'\nimport {\n Box,\n IconButton,\n Paper,\n Stack,\n Typography,\n Divider,\n useMediaQuery,\n useTheme,\n DialogContent,\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\nimport { useRef, ReactNode, useEffect, useState } from 'react'\nimport { useResizable } from '../ResizableContainer/hooks/useResizable'\nimport { ResizableContainer } from '../ResizableContainer/ResizableContainer'\n\ntype DraggableDialogProps = {\n open?: boolean\n onClose?: () => void\n children: ReactNode\n title?: ReactNode\n}\n\nexport default function DraggableDialog({\n open = false,\n onClose,\n title,\n children,\n}: DraggableDialogProps) {\n const theme = useTheme()\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'))\n const draggableRef = useRef<HTMLDivElement>(null)\n const [bounds, setBounds] = useState<DraggableBounds>()\n const [position, setPosition] = useState({
|
|
1
|
+
{"version":3,"file":"DraggableDialog.js","names":[],"sources":["../../../src/components/DraggableDialog/DraggableDialog.tsx"],"sourcesContent":["import Draggable, { DraggableBounds } from 'react-draggable'\nimport {\n Box,\n IconButton,\n Paper,\n Stack,\n Typography,\n Divider,\n useMediaQuery,\n useTheme,\n DialogContent,\n} from '@mui/material'\nimport CloseIcon from '@mui/icons-material/Close'\nimport { useRef, ReactNode, useEffect, useState } from 'react'\nimport { useResizable } from '../ResizableContainer/hooks/useResizable'\nimport { ResizableContainer } from '../ResizableContainer/ResizableContainer'\n\nconst CURIE_INITIAL_SIZE = 700\n\ntype DraggableDialogProps = {\n open?: boolean\n onClose?: () => void\n children: ReactNode\n title?: ReactNode\n variant?: 'default' | 'curie'\n}\n\nexport default function DraggableDialog({\n open = false,\n onClose,\n title,\n children,\n variant = 'default',\n}: DraggableDialogProps) {\n const theme = useTheme()\n const isMobile = useMediaQuery(theme.breakpoints.down('sm'))\n const draggableRef = useRef<HTMLDivElement>(null)\n const [bounds, setBounds] = useState<DraggableBounds>()\n const [position, setPosition] = useState({\n x: 100,\n y: variant === 'curie' ? 50 : 100,\n })\n const { width, height, handleResizeStart } = useResizable({\n initialWidth: 600,\n initialHeight: variant === 'curie' ? CURIE_INITIAL_SIZE : 500,\n minWidth: 300,\n minHeight: 200,\n maxWidth: 1200,\n maxHeight: 800,\n })\n\n useEffect(() => {\n // Calculate draggable bounds to keep dialog within viewport with margin\n function updateBounds() {\n const margin = 100\n const dialogWidth = width\n\n const newBounds = {\n left: -(dialogWidth - margin),\n top: 0,\n right: window.innerWidth - margin,\n bottom: window.innerHeight - margin,\n }\n\n setBounds(newBounds)\n\n // Clamp dialog position to new bounds to keep it visible after window resize\n setPosition(prevPosition => ({\n x: Math.max(newBounds.left, Math.min(prevPosition.x, newBounds.right)),\n y: Math.max(newBounds.top, Math.min(prevPosition.y, newBounds.bottom)),\n }))\n }\n updateBounds()\n window.addEventListener('resize', updateBounds)\n return () => window.removeEventListener('resize', updateBounds)\n }, [width, height])\n\n if (!open) {\n return null\n }\n\n const paperContent = (\n <Paper\n elevation={5}\n sx={{\n display: 'flex',\n flexDirection: 'column',\n height: isMobile ? '95vh' : `${height}px`,\n width: isMobile ? '95vw' : `${width}px`,\n ...(isMobile && {\n position: 'fixed',\n }),\n }}\n >\n <Stack\n direction=\"row\"\n alignItems=\"center\"\n gap=\"5px\"\n className=\"drag-handle\"\n sx={{\n padding: variant === 'curie' ? '44px 44px 20px 44px' : '20px',\n cursor: 'move',\n }}\n >\n {variant !== 'curie' && (\n <Typography variant=\"headline1\">{title}</Typography>\n )}\n <Box sx={{ flexGrow: 1 }} />\n <IconButton onClick={onClose}>\n <CloseIcon\n sx={\n variant === 'curie'\n ? { width: '16px', height: '16px' }\n : undefined\n }\n />\n </IconButton>\n </Stack>\n {variant !== 'curie' && <Divider sx={{ mx: 2 }} />}\n <DialogContent\n sx={{\n height: '100%',\n maxWidth: '100%',\n padding: '16px',\n ...(variant === 'curie' && {\n borderTop: 'none',\n borderBottom: 'none',\n padding: variant === 'curie' ? '0 44px 44px 44px' : '44px',\n }),\n }}\n >\n {children}\n </DialogContent>\n </Paper>\n )\n\n return (\n <Box\n sx={{\n position: 'fixed',\n zIndex: theme.zIndex.modal,\n top: 0,\n left: 0,\n pointerEvents: isMobile ? 'auto' : 'none',\n }}\n >\n {isMobile ? (\n paperContent\n ) : (\n <Draggable\n position={position}\n onDrag={(e, data) => setPosition({ x: data.x, y: data.y })}\n nodeRef={draggableRef}\n bounds={bounds}\n handle=\".drag-handle\"\n >\n <Box ref={draggableRef} sx={{ pointerEvents: 'auto' }}>\n <ResizableContainer\n width={width}\n height={height}\n onResizeStart={handleResizeStart}\n >\n {paperContent}\n </ResizableContainer>\n </Box>\n </Draggable>\n )}\n </Box>\n )\n}\n"],"mappings":";;;;;;;;AAiBA,IAAM,IAAqB;AAU3B,SAAwB,EAAgB,EACtC,UAAO,IACP,YACA,UACA,aACA,aAAU,aACa;CACvB,IAAM,IAAQ,EAAS,GACjB,IAAW,EAAc,EAAM,YAAY,KAAK,IAAI,CAAC,GACrD,IAAe,EAAuB,IAAI,GAC1C,CAAC,GAAQ,KAAa,EAA0B,GAChD,CAAC,GAAU,KAAe,EAAS;EACvC,GAAG;EACH,GAAG,MAAY,UAAU,KAAK;CAChC,CAAC,GACK,EAAE,UAAO,WAAQ,yBAAsB,EAAa;EACxD,cAAc;EACd,eAAe,MAAY,UAAU,IAAqB;EAC1D,UAAU;EACV,WAAW;EACX,UAAU;EACV,WAAW;CACb,CAAC;CA4BD,IA1BA,QAAgB;EAEd,SAAS,IAAe;GACtB,IAGM,IAAY;IAChB,MAAM,EAAE,IAAc;IACtB,KAAK;IACL,OAAO,OAAO,aAAa;IAC3B,QAAQ,OAAO,cAAc;GAC/B;GAKA,AAHA,EAAU,CAAS,GAGnB,GAAY,OAAiB;IAC3B,GAAG,KAAK,IAAI,EAAU,MAAM,KAAK,IAAI,EAAa,GAAG,EAAU,KAAK,CAAC;IACrE,GAAG,KAAK,IAAI,EAAU,KAAK,KAAK,IAAI,EAAa,GAAG,EAAU,MAAM,CAAC;GACvE,EAAE;EACJ;EAGA,OAFA,EAAa,GACb,OAAO,iBAAiB,UAAU,CAAY,SACjC,OAAO,oBAAoB,UAAU,CAAY;CAChE,GAAG,CAAC,GAAO,CAAM,CAAC,GAEd,CAAC,GACH,OAAO;CAGT,IAAM,IACJ,kBAAC,GAAD;EACE,WAAW;EACX,IAAI;GACF,SAAS;GACT,eAAe;GACf,QAAQ,IAAW,SAAS,GAAG,EAAO;GACtC,OAAO,IAAW,SAAS,GAAG,EAAM;GACpC,GAAI,KAAY,EACd,UAAU,QACZ;EACF;YAVF;GAYE,kBAAC,GAAD;IACE,WAAU;IACV,YAAW;IACX,KAAI;IACJ,WAAU;IACV,IAAI;KACF,SAAS,MAAY,UAAU,wBAAwB;KACvD,QAAQ;IACV;cARF;KAUG,MAAY,WACX,kBAAC,GAAD;MAAY,SAAQ;gBAAa;KAAkB,CAAA;KAErD,kBAAC,GAAD,EAAK,IAAI,EAAE,UAAU,EAAE,EAAI,CAAA;KAC3B,kBAAC,GAAD;MAAY,SAAS;gBACnB,kBAAC,GAAD,EACE,IACE,MAAY,UACR;OAAE,OAAO;OAAQ,QAAQ;MAAO,IAChC,KAAA,EAEP,CAAA;KACS,CAAA;IACP;;GACN,MAAY,WAAW,kBAAC,GAAD,EAAS,IAAI,EAAE,IAAI,EAAE,EAAI,CAAA;GACjD,kBAAC,GAAD;IACE,IAAI;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,GAAI,MAAY,WAAW;MACzB,WAAW;MACX,cAAc;MACd,SAAS,MAAY,UAAU,qBAAqB;KACtD;IACF;IAEC;GACY,CAAA;EACV;;CAGT,OACE,kBAAC,GAAD;EACE,IAAI;GACF,UAAU;GACV,QAAQ,EAAM,OAAO;GACrB,KAAK;GACL,MAAM;GACN,eAAe,IAAW,SAAS;EACrC;YAEC,IACC,IAEA,kBAAC,GAAD;GACY;GACV,SAAS,GAAG,MAAS,EAAY;IAAE,GAAG,EAAK;IAAG,GAAG,EAAK;GAAE,CAAC;GACzD,SAAS;GACD;GACR,QAAO;aAEP,kBAAC,GAAD;IAAK,KAAK;IAAc,IAAI,EAAE,eAAe,OAAO;cAClD,kBAAC,GAAD;KACS;KACC;KACR,eAAe;eAEd;IACiB,CAAA;GACjB,CAAA;EACI,CAAA;CAEV,CAAA;AAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableColumns.d.ts","sourceRoot":"","sources":["../../../../src/components/EntityTreeTable/hooks/useTableColumns.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAmBpD,eAAO,MAAM,eAAe,GAC1B,eAAe,OAAO,EACtB,4BAA0B,
|
|
1
|
+
{"version":3,"file":"useTableColumns.d.ts","sourceRoot":"","sources":["../../../../src/components/EntityTreeTable/hooks/useTableColumns.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAmBpD,eAAO,MAAM,eAAe,GAC1B,eAAe,OAAO,EACtB,4BAA0B,iCAmH3B,CAAA"}
|
|
@@ -33,40 +33,46 @@ var y = (y, b = !1) => {
|
|
|
33
33
|
header: d,
|
|
34
34
|
cell: e,
|
|
35
35
|
enableSorting: y,
|
|
36
|
-
size:
|
|
36
|
+
size: 600
|
|
37
37
|
}), C && (m.push({
|
|
38
38
|
id: "badges",
|
|
39
39
|
header: "",
|
|
40
40
|
cell: f,
|
|
41
41
|
enableSorting: !1,
|
|
42
|
+
enableResizing: !1,
|
|
42
43
|
size: 120
|
|
43
44
|
}), m.push({
|
|
44
45
|
id: "id",
|
|
45
46
|
header: n,
|
|
46
47
|
cell: t,
|
|
47
|
-
enableSorting: !1
|
|
48
|
+
enableSorting: !1,
|
|
49
|
+
size: 110
|
|
48
50
|
})), S && m.push({
|
|
49
51
|
accessorKey: "entityHeader.createdOn",
|
|
50
52
|
id: "createdOn",
|
|
51
53
|
header: l,
|
|
52
54
|
cell: a,
|
|
53
|
-
enableSorting: y
|
|
55
|
+
enableSorting: y,
|
|
56
|
+
size: 130
|
|
54
57
|
}), C && m.push({
|
|
55
58
|
accessorKey: "entityHeader.modifiedOn",
|
|
56
59
|
id: "modifiedOn",
|
|
57
60
|
header: u,
|
|
58
61
|
cell: r,
|
|
59
|
-
enableSorting: y
|
|
62
|
+
enableSorting: y,
|
|
63
|
+
size: 130
|
|
60
64
|
}), S && m.push({
|
|
61
65
|
id: "modifiedBy",
|
|
62
66
|
header: "Modified By",
|
|
63
67
|
cell: i,
|
|
64
|
-
enableSorting: !1
|
|
68
|
+
enableSorting: !1,
|
|
69
|
+
size: 130
|
|
65
70
|
}), C && m.push({
|
|
66
71
|
id: "size",
|
|
67
72
|
header: "Size",
|
|
68
73
|
cell: o,
|
|
69
|
-
enableSorting: !1
|
|
74
|
+
enableSorting: !1,
|
|
75
|
+
size: 80
|
|
70
76
|
}), S && m.push({
|
|
71
77
|
id: "md5",
|
|
72
78
|
header: "MD5",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableColumns.js","names":[],"sources":["../../../../src/components/EntityTreeTable/hooks/useTableColumns.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { ColumnDef } from '@tanstack/react-table'\nimport { useTheme, useMediaQuery } from '@mui/material'\nimport { EntityBundleRow } from '../EntityTreeTable'\nimport { NameCell } from '../components/EntityNameCell'\nimport { IdCell } from '../components/IdCell'\nimport { IdColumnHeader } from '../components/IdColumnHeader'\nimport { ModifiedOnCell } from '../../EntityFinder/details/view/table/ModifiedOnCell'\nimport { ModifiedByCell } from '../../EntityFinder/details/view/table/ModifiedByCell'\nimport { CreatedOnCell } from '../../EntityFinder/details/view/table/CreatedOnCell'\nimport { FileEntitySizeCell } from '../../EntityFinder/details/view/table/FileEntitySizeCell'\nimport { FileEntityMD5Cell } from '../../EntityFinder/details/view/table/FileEntityMD5Cell'\nimport { AddFileToDownloadListCell } from '../../EntityFinder/details/view/table/AddToDownloadListCell'\nimport {\n NameColumnHeader,\n CreatedOnColumnHeader,\n ModifiedOnColumnHeader,\n} from '../components/ColumnHeaders'\nimport { EntityBadgeIconsCell } from '../components/EntityBadgeIconsCell'\nimport { CheckboxCell } from '../components/CheckboxCell'\nimport PlaylistAddIcon from '@mui/icons-material/PlaylistAdd'\n\nexport const useTableColumns = (\n enableSorting: boolean,\n showCheckboxColumn = false,\n) => {\n // Responsive design hooks\n const theme = useTheme()\n const isXtraLarge = useMediaQuery(theme.breakpoints.up('xl'))\n const isMediumAndUp = useMediaQuery(theme.breakpoints.up('md'))\n\n // Table columns\n const columns = useMemo<ColumnDef<EntityBundleRow>[]>(() => {\n const baseColumns: ColumnDef<EntityBundleRow>[] = []\n\n if (showCheckboxColumn) {\n baseColumns.push({\n id: 'select',\n header: '',\n cell: CheckboxCell,\n enableSorting: false,\n size: 45,\n minSize: 45,\n maxSize: 45,\n })\n }\n\n baseColumns.push({\n accessorKey: 'entityHeader.name',\n id: 'name',\n header: NameColumnHeader,\n cell: NameCell,\n enableSorting: enableSorting,\n size:
|
|
1
|
+
{"version":3,"file":"useTableColumns.js","names":[],"sources":["../../../../src/components/EntityTreeTable/hooks/useTableColumns.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { ColumnDef } from '@tanstack/react-table'\nimport { useTheme, useMediaQuery } from '@mui/material'\nimport { EntityBundleRow } from '../EntityTreeTable'\nimport { NameCell } from '../components/EntityNameCell'\nimport { IdCell } from '../components/IdCell'\nimport { IdColumnHeader } from '../components/IdColumnHeader'\nimport { ModifiedOnCell } from '../../EntityFinder/details/view/table/ModifiedOnCell'\nimport { ModifiedByCell } from '../../EntityFinder/details/view/table/ModifiedByCell'\nimport { CreatedOnCell } from '../../EntityFinder/details/view/table/CreatedOnCell'\nimport { FileEntitySizeCell } from '../../EntityFinder/details/view/table/FileEntitySizeCell'\nimport { FileEntityMD5Cell } from '../../EntityFinder/details/view/table/FileEntityMD5Cell'\nimport { AddFileToDownloadListCell } from '../../EntityFinder/details/view/table/AddToDownloadListCell'\nimport {\n NameColumnHeader,\n CreatedOnColumnHeader,\n ModifiedOnColumnHeader,\n} from '../components/ColumnHeaders'\nimport { EntityBadgeIconsCell } from '../components/EntityBadgeIconsCell'\nimport { CheckboxCell } from '../components/CheckboxCell'\nimport PlaylistAddIcon from '@mui/icons-material/PlaylistAdd'\n\nexport const useTableColumns = (\n enableSorting: boolean,\n showCheckboxColumn = false,\n) => {\n // Responsive design hooks\n const theme = useTheme()\n const isXtraLarge = useMediaQuery(theme.breakpoints.up('xl'))\n const isMediumAndUp = useMediaQuery(theme.breakpoints.up('md'))\n\n // Table columns\n const columns = useMemo<ColumnDef<EntityBundleRow>[]>(() => {\n const baseColumns: ColumnDef<EntityBundleRow>[] = []\n\n if (showCheckboxColumn) {\n baseColumns.push({\n id: 'select',\n header: '',\n cell: CheckboxCell,\n enableSorting: false,\n size: 45,\n minSize: 45,\n maxSize: 45,\n })\n }\n\n baseColumns.push({\n accessorKey: 'entityHeader.name',\n id: 'name',\n header: NameColumnHeader,\n cell: NameCell,\n enableSorting: enableSorting,\n size: 600,\n })\n if (isMediumAndUp) {\n baseColumns.push({\n id: 'badges',\n header: '',\n cell: EntityBadgeIconsCell,\n enableSorting: false,\n enableResizing: false,\n size: 120,\n })\n baseColumns.push({\n id: 'id',\n header: IdColumnHeader,\n cell: IdCell,\n enableSorting: false,\n size: 110,\n })\n }\n if (isXtraLarge) {\n baseColumns.push({\n accessorKey: 'entityHeader.createdOn',\n id: 'createdOn',\n header: CreatedOnColumnHeader,\n cell: CreatedOnCell,\n enableSorting: enableSorting,\n size: 130,\n })\n }\n\n if (isMediumAndUp) {\n baseColumns.push({\n accessorKey: 'entityHeader.modifiedOn',\n id: 'modifiedOn',\n header: ModifiedOnColumnHeader,\n cell: ModifiedOnCell,\n enableSorting: enableSorting,\n size: 130,\n })\n }\n\n if (isXtraLarge) {\n baseColumns.push({\n id: 'modifiedBy',\n header: 'Modified By',\n cell: ModifiedByCell,\n enableSorting: false,\n size: 130,\n })\n }\n\n if (isMediumAndUp) {\n baseColumns.push({\n id: 'size',\n header: 'Size',\n cell: FileEntitySizeCell,\n enableSorting: false,\n size: 80,\n })\n }\n if (isXtraLarge) {\n baseColumns.push({\n id: 'md5',\n header: 'MD5',\n cell: FileEntityMD5Cell,\n enableSorting: false,\n })\n }\n\n baseColumns.push({\n id: 'download',\n header: 'Download',\n cell: props => (\n <AddFileToDownloadListCell\n {...props}\n downloadIcon={<PlaylistAddIcon />}\n />\n ),\n enableSorting: false,\n size: 90,\n })\n\n return baseColumns\n }, [enableSorting, isXtraLarge, isMediumAndUp, showCheckboxColumn])\n\n return columns\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAsBA,IAAa,KACX,GACA,IAAqB,OAClB;CAEH,IAAM,IAAQ,EAAS,GACjB,IAAc,EAAc,EAAM,YAAY,GAAG,IAAI,CAAC,GACtD,IAAgB,EAAc,EAAM,YAAY,GAAG,IAAI,CAAC;CA6G9D,OA1GgB,QAA4C;EAC1D,IAAM,IAA4C,CAAC;EAsGnD,OApGI,KACF,EAAY,KAAK;GACf,IAAI;GACJ,QAAQ;GACR,MAAM;GACN,eAAe;GACf,MAAM;GACN,SAAS;GACT,SAAS;EACX,CAAC,GAGH,EAAY,KAAK;GACf,aAAa;GACb,IAAI;GACJ,QAAQ;GACR,MAAM;GACS;GACf,MAAM;EACR,CAAC,GACG,MACF,EAAY,KAAK;GACf,IAAI;GACJ,QAAQ;GACR,MAAM;GACN,eAAe;GACf,gBAAgB;GAChB,MAAM;EACR,CAAC,GACD,EAAY,KAAK;GACf,IAAI;GACJ,QAAQ;GACR,MAAM;GACN,eAAe;GACf,MAAM;EACR,CAAC,IAEC,KACF,EAAY,KAAK;GACf,aAAa;GACb,IAAI;GACJ,QAAQ;GACR,MAAM;GACS;GACf,MAAM;EACR,CAAC,GAGC,KACF,EAAY,KAAK;GACf,aAAa;GACb,IAAI;GACJ,QAAQ;GACR,MAAM;GACS;GACf,MAAM;EACR,CAAC,GAGC,KACF,EAAY,KAAK;GACf,IAAI;GACJ,QAAQ;GACR,MAAM;GACN,eAAe;GACf,MAAM;EACR,CAAC,GAGC,KACF,EAAY,KAAK;GACf,IAAI;GACJ,QAAQ;GACR,MAAM;GACN,eAAe;GACf,MAAM;EACR,CAAC,GAEC,KACF,EAAY,KAAK;GACf,IAAI;GACJ,QAAQ;GACR,MAAM;GACN,eAAe;EACjB,CAAC,GAGH,EAAY,KAAK;GACf,IAAI;GACJ,QAAQ;GACR,OAAM,MACJ,kBAAC,GAAD;IACE,GAAI;IACJ,cAAc,kBAAC,GAAD,CAAkB,CAAA;GACjC,CAAA;GAEH,eAAe;GACf,MAAM;EACR,CAAC,GAEM;CACT,GAAG;EAAC;EAAe;EAAa;EAAe;CAAkB,CAE1D;AACT"}
|
|
@@ -9,7 +9,8 @@ var d = "experimental-mode", f = "This mode gives you early access to features t
|
|
|
9
9
|
function p({ onExperimentalModeToggle: p }) {
|
|
10
10
|
let m = a(), [h, g, _] = c(e, {
|
|
11
11
|
path: "/",
|
|
12
|
-
domain: (typeof window < "u" ? window.location.hostname.toLowerCase() : "").endsWith(".synapse.org") ? "synapse.org" : void 0
|
|
12
|
+
domain: (typeof window < "u" ? window.location.hostname.toLowerCase() : "").endsWith(".synapse.org") ? "synapse.org" : void 0,
|
|
13
|
+
initializeWithValue: !1
|
|
13
14
|
});
|
|
14
15
|
return /* @__PURE__ */ s(t, {
|
|
15
16
|
sx: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExperimentalMode.js","names":[],"sources":["../../../src/components/ExperimentalMode/ExperimentalMode.tsx"],"sourcesContent":["import { EXPERIMENTAL_MODE_COOKIE } from '@/utils/SynapseConstants'\nimport { InfoOutlined } from '@mui/icons-material'\nimport { Box, IconButton, Tooltip, Typography, useTheme } from '@mui/material'\nimport Switch from 'react-switch'\nimport { useCookieValue } from '@react-hookz/web/useCookieValue/index.js'\n\nconst EXPERIMENTAL_MODE_SWITCH_ID = 'experimental-mode'\nconst experimentalModeText =\n 'This mode gives you early access to features that are still in development. Please note that we do not guarantee an absence of errors, and that the data created using these features may be lost during product upgrade.'\n\nexport type ExperimentalModeProps = {\n onExperimentalModeToggle?: (newValue: boolean) => void\n}\nfunction ExperimentalMode({ onExperimentalModeToggle }: ExperimentalModeProps) {\n const theme = useTheme()\n\n const getExperimentalModeCookieOptions = () => {\n const hostname =\n typeof window !== 'undefined'\n ? window.location.hostname.toLowerCase()\n : ''\n return {\n path: '/',\n domain: hostname.endsWith('.synapse.org') ? 'synapse.org' : undefined,\n }\n }\n\n const [\n experimentalModeCookie,\n setExperimentalModeCookie,\n removeExperimentalModeCookie,\n ] = useCookieValue(\n
|
|
1
|
+
{"version":3,"file":"ExperimentalMode.js","names":[],"sources":["../../../src/components/ExperimentalMode/ExperimentalMode.tsx"],"sourcesContent":["import { EXPERIMENTAL_MODE_COOKIE } from '@/utils/SynapseConstants'\nimport { InfoOutlined } from '@mui/icons-material'\nimport { Box, IconButton, Tooltip, Typography, useTheme } from '@mui/material'\nimport Switch from 'react-switch'\nimport { useCookieValue } from '@react-hookz/web/useCookieValue/index.js'\n\nconst EXPERIMENTAL_MODE_SWITCH_ID = 'experimental-mode'\nconst experimentalModeText =\n 'This mode gives you early access to features that are still in development. Please note that we do not guarantee an absence of errors, and that the data created using these features may be lost during product upgrade.'\n\nexport type ExperimentalModeProps = {\n onExperimentalModeToggle?: (newValue: boolean) => void\n}\nfunction ExperimentalMode({ onExperimentalModeToggle }: ExperimentalModeProps) {\n const theme = useTheme()\n\n const getExperimentalModeCookieOptions = () => {\n const hostname =\n typeof window !== 'undefined'\n ? window.location.hostname.toLowerCase()\n : ''\n return {\n path: '/',\n domain: hostname.endsWith('.synapse.org') ? 'synapse.org' : undefined,\n }\n }\n\n const [\n experimentalModeCookie,\n setExperimentalModeCookie,\n removeExperimentalModeCookie,\n ] = useCookieValue(EXPERIMENTAL_MODE_COOKIE, {\n ...getExperimentalModeCookieOptions(),\n initializeWithValue: false,\n })\n\n const createExperimentalModeCookie = () => {\n setExperimentalModeCookie('true')\n\n if (onExperimentalModeToggle) {\n onExperimentalModeToggle(true)\n }\n }\n\n const deleteExperimentalModeCookie = () => {\n removeExperimentalModeCookie()\n if (onExperimentalModeToggle) {\n onExperimentalModeToggle(false)\n }\n }\n\n return (\n <Box sx={{ display: 'flex', alignItems: 'center' }}>\n <Typography\n component={'label'}\n variant=\"body1\"\n htmlFor={EXPERIMENTAL_MODE_SWITCH_ID}\n >\n Experimental Mode\n </Typography>\n <Tooltip title={experimentalModeText} arrow placement=\"top\">\n <IconButton\n aria-label=\"info\"\n color=\"inherit\"\n sx={{ '&:hover': { backgroundColor: 'transparent' } }}\n >\n <InfoOutlined sx={{ verticalAlign: 'middle' }} />\n </IconButton>\n </Tooltip>\n <Switch\n id={EXPERIMENTAL_MODE_SWITCH_ID}\n width={35}\n height={20}\n onColor={theme.palette.secondary.main}\n checkedIcon={false}\n uncheckedIcon={false}\n checked={experimentalModeCookie === 'true'}\n onChange={\n experimentalModeCookie === 'true'\n ? deleteExperimentalModeCookie\n : createExperimentalModeCookie\n }\n />\n </Box>\n )\n}\n\nexport default ExperimentalMode\n"],"mappings":";;;;;;;AAMA,IAAM,IAA8B,qBAC9B,IACJ;AAKF,SAAS,EAAiB,EAAE,+BAAmD;CAC7E,IAAM,IAAQ,EAAS,GAajB,CACJ,GACA,GACA,KACE,EAAe,GAA0B;EATzC,MAAM;EACN,SALA,OAAO,SAAW,MACd,OAAO,SAAS,SAAS,YAAY,IACrC,IAGa,SAAS,cAAc,IAAI,gBAAgB,KAAA;EAU9D,qBAAqB;CACvB,CAAC;CAiBD,OACE,kBAAC,GAAD;EAAK,IAAI;GAAE,SAAS;GAAQ,YAAY;EAAS;YAAjD;GACE,kBAAC,GAAD;IACE,WAAW;IACX,SAAQ;IACR,SAAS;cACV;GAEW,CAAA;GACZ,kBAAC,GAAD;IAAS,OAAO;IAAsB,OAAA;IAAM,WAAU;cACpD,kBAAC,GAAD;KACE,cAAW;KACX,OAAM;KACN,IAAI,EAAE,WAAW,EAAE,iBAAiB,cAAc,EAAE;eAEpD,kBAAC,GAAD,EAAc,IAAI,EAAE,eAAe,SAAS,EAAI,CAAA;IACtC,CAAA;GACL,CAAA;GACT,kBAAC,GAAD;IACE,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,SAAS,EAAM,QAAQ,UAAU;IACjC,aAAa;IACb,eAAe;IACf,SAAS,MAA2B;IACpC,UACE,MAA2B,eAlCQ;KAEzC,AADA,EAA6B,GACzB,KACF,EAAyB,EAAK;IAElC,UAb2C;KAGzC,AAFA,EAA0B,MAAM,GAE5B,KACF,EAAyB,EAAI;IAEjC;GAwCK,CAAA;EACE;;AAET"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Visual style for a card's action buttons (Download/hosting, Cite As, Croissant,
|
|
3
|
+
* Share). `'button'` (default) renders the compact GenericCardActionButton look;
|
|
4
|
+
* `'chip'` renders pill-shaped chips (the hosting action becomes a colored Chip).
|
|
5
|
+
* Set per card configuration via `actionButtonStyle`.
|
|
6
|
+
*/
|
|
7
|
+
export type CardActionButtonStyle = 'button' | 'chip';
|
|
8
|
+
export declare const CardActionButtonStyleContext: import("react").Context<CardActionButtonStyle>;
|
|
9
|
+
export declare function useCardActionButtonStyle(): CardActionButtonStyle;
|
|
10
|
+
//# sourceMappingURL=CardActionButtonStyleContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardActionButtonStyleContext.d.ts","sourceRoot":"","sources":["../../../src/components/GenericCard/CardActionButtonStyleContext.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,CAAA;AAErD,eAAO,MAAM,4BAA4B,gDACO,CAAA;AAEhD,wBAAgB,wBAAwB,IAAI,qBAAqB,CAEhE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createContext as e, useContext as t } from "react";
|
|
2
|
+
//#region src/components/GenericCard/CardActionButtonStyleContext.tsx
|
|
3
|
+
var n = e("button");
|
|
4
|
+
function r() {
|
|
5
|
+
return t(n);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as CardActionButtonStyleContext, r as useCardActionButtonStyle };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=CardActionButtonStyleContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardActionButtonStyleContext.js","names":[],"sources":["../../../src/components/GenericCard/CardActionButtonStyleContext.tsx"],"sourcesContent":["import { createContext, useContext } from 'react'\n\n/**\n * Visual style for a card's action buttons (Download/hosting, Cite As, Croissant,\n * Share). `'button'` (default) renders the compact GenericCardActionButton look;\n * `'chip'` renders pill-shaped chips (the hosting action becomes a colored Chip).\n * Set per card configuration via `actionButtonStyle`.\n */\nexport type CardActionButtonStyle = 'button' | 'chip'\n\nexport const CardActionButtonStyleContext =\n createContext<CardActionButtonStyle>('button')\n\nexport function useCardActionButtonStyle(): CardActionButtonStyle {\n return useContext(CardActionButtonStyleContext)\n}\n"],"mappings":";;AAUA,IAAa,IACX,EAAqC,QAAQ;AAE/C,SAAgB,IAAkD;CAChE,OAAO,EAAW,CAA4B;AAChD"}
|
|
@@ -3,52 +3,52 @@ import { duoRegistryUrl as t, resolveDuoTerm as n } from "./duoTerms.js";
|
|
|
3
3
|
import r from "../../widgets/facet-nav/FacetValueChip.js";
|
|
4
4
|
import { Box as i, Link as a } from "@mui/material";
|
|
5
5
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
-
import l from "@mui/icons-material/
|
|
7
|
-
import u from "@mui/icons-material/
|
|
8
|
-
import d from "@mui/icons-material/
|
|
9
|
-
import f from "@mui/icons-material/
|
|
10
|
-
import p from "@mui/icons-material/
|
|
11
|
-
import m from "@mui/icons-material/
|
|
12
|
-
import h from "@mui/icons-material/
|
|
13
|
-
import g from "@mui/icons-material/
|
|
14
|
-
import _ from "@mui/icons-material/
|
|
15
|
-
import v from "@mui/icons-material/
|
|
16
|
-
import y from "@mui/icons-material/
|
|
17
|
-
import b from "@mui/icons-material/
|
|
18
|
-
import x from "@mui/icons-material/
|
|
19
|
-
import S from "@mui/icons-material/
|
|
20
|
-
import C from "@mui/icons-material/
|
|
21
|
-
import w from "@mui/icons-material/
|
|
22
|
-
import T from "@mui/icons-material/
|
|
23
|
-
import E from "@mui/icons-material/
|
|
24
|
-
import D from "@mui/icons-material/
|
|
6
|
+
import l from "@mui/icons-material/PublicOutlined";
|
|
7
|
+
import u from "@mui/icons-material/BlockOutlined";
|
|
8
|
+
import d from "@mui/icons-material/ScienceOutlined";
|
|
9
|
+
import f from "@mui/icons-material/MedicalServicesOutlined";
|
|
10
|
+
import p from "@mui/icons-material/CoronavirusOutlined";
|
|
11
|
+
import m from "@mui/icons-material/GroupsOutlined";
|
|
12
|
+
import h from "@mui/icons-material/HealingOutlined";
|
|
13
|
+
import g from "@mui/icons-material/LockOpenOutlined";
|
|
14
|
+
import _ from "@mui/icons-material/MoneyOffOutlined";
|
|
15
|
+
import v from "@mui/icons-material/ArticleOutlined";
|
|
16
|
+
import y from "@mui/icons-material/HandshakeOutlined";
|
|
17
|
+
import b from "@mui/icons-material/GavelOutlined";
|
|
18
|
+
import x from "@mui/icons-material/ReplayOutlined";
|
|
19
|
+
import S from "@mui/icons-material/FormatQuoteOutlined";
|
|
20
|
+
import C from "@mui/icons-material/PersonOutlined";
|
|
21
|
+
import w from "@mui/icons-material/AssignmentOutlined";
|
|
22
|
+
import T from "@mui/icons-material/ApartmentOutlined";
|
|
23
|
+
import E from "@mui/icons-material/ScheduleOutlined";
|
|
24
|
+
import D from "@mui/icons-material/HourglassEmptyOutlined";
|
|
25
25
|
import O from "@mui/icons-material/RuleOutlined";
|
|
26
26
|
import k from "@mui/icons-material/HelpOutline";
|
|
27
27
|
//#region src/components/GenericCard/DuoTermTags/DuoTermTags.tsx
|
|
28
28
|
var A = {
|
|
29
|
-
"DUO:0000042":
|
|
30
|
-
"DUO:0000006":
|
|
31
|
-
"DUO:0000007":
|
|
32
|
-
"DUO:0000011":
|
|
33
|
-
"DUO:0000043":
|
|
34
|
-
"DUO:0000004":
|
|
35
|
-
"DUO:0000046":
|
|
36
|
-
"DUO:0000018":
|
|
37
|
-
"DUO:0000045":
|
|
38
|
-
"DUO:0000019":
|
|
39
|
-
"DUO:0000020":
|
|
40
|
-
"DUO:0000021":
|
|
41
|
-
"DUO:0000029":
|
|
42
|
-
DUOplus7:
|
|
43
|
-
"DUO:0000026":
|
|
44
|
-
"DUO:0000027":
|
|
45
|
-
"DUO:0000028":
|
|
46
|
-
"DUO:0000022":
|
|
47
|
-
"DUO:0000025":
|
|
48
|
-
"DUO:0000024":
|
|
29
|
+
"DUO:0000042": d,
|
|
30
|
+
"DUO:0000006": f,
|
|
31
|
+
"DUO:0000007": p,
|
|
32
|
+
"DUO:0000011": m,
|
|
33
|
+
"DUO:0000043": h,
|
|
34
|
+
"DUO:0000004": g,
|
|
35
|
+
"DUO:0000046": _,
|
|
36
|
+
"DUO:0000018": _,
|
|
37
|
+
"DUO:0000045": _,
|
|
38
|
+
"DUO:0000019": v,
|
|
39
|
+
"DUO:0000020": y,
|
|
40
|
+
"DUO:0000021": b,
|
|
41
|
+
"DUO:0000029": x,
|
|
42
|
+
DUOplus7: S,
|
|
43
|
+
"DUO:0000026": C,
|
|
44
|
+
"DUO:0000027": w,
|
|
45
|
+
"DUO:0000028": T,
|
|
46
|
+
"DUO:0000022": l,
|
|
47
|
+
"DUO:0000025": E,
|
|
48
|
+
"DUO:0000024": D,
|
|
49
49
|
"DUO:0000016": e,
|
|
50
|
-
"DUO:0000015":
|
|
51
|
-
"DUO:0000044":
|
|
50
|
+
"DUO:0000015": u,
|
|
51
|
+
"DUO:0000044": u,
|
|
52
52
|
"DUO:0000012": O
|
|
53
53
|
}, j = (e) => {
|
|
54
54
|
let { term: t } = e;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Button } from '@mui/material';
|
|
2
|
+
/**
|
|
3
|
+
* Action button used across a card's action area (Cite As, Croissant, Share,
|
|
4
|
+
* Download). Its shape follows the nearest `CardActionButtonStyleContext`:
|
|
5
|
+
* compact by default, or pill-shaped when the card opts into `'chip'`.
|
|
6
|
+
*/
|
|
2
7
|
declare const GenericCardActionButton: typeof Button;
|
|
3
8
|
export default GenericCardActionButton;
|
|
4
9
|
//# sourceMappingURL=GenericCardActionButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericCardActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/GenericCard/GenericCardActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"GenericCardActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/GenericCard/GenericCardActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAsCtC;;;;GAIG;AACH,QAAA,MAAM,uBAAuB,EAOvB,OAAO,MAAM,CAAA;AAEnB,eAAe,uBAAuB,CAAA"}
|
|
@@ -1,18 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useCardActionButtonStyle as e } from "./CardActionButtonStyleContext.js";
|
|
2
|
+
import { Button as t } from "@mui/material";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { styled as r } from "@mui/system";
|
|
3
5
|
//#region src/components/GenericCard/GenericCardActionButton.tsx
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
var i = { "& .MuiButton-startIcon": {
|
|
7
|
+
marginRight: "4px",
|
|
8
|
+
marginLeft: 0
|
|
9
|
+
} }, a = "28px", o = "32px", s = r(t)({
|
|
10
|
+
height: a,
|
|
11
|
+
minHeight: a,
|
|
12
|
+
padding: "0 8px",
|
|
7
13
|
borderColor: "grey.400",
|
|
8
14
|
fontWeight: 700,
|
|
9
15
|
lineHeight: "20px",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
whiteSpace: "nowrap",
|
|
17
|
+
...i
|
|
18
|
+
}), c = r(t)({
|
|
19
|
+
height: o,
|
|
20
|
+
minHeight: o,
|
|
21
|
+
borderRadius: "16px",
|
|
22
|
+
padding: "0 12px",
|
|
23
|
+
borderColor: "grey.400",
|
|
24
|
+
fontWeight: 700,
|
|
25
|
+
lineHeight: "20px",
|
|
26
|
+
whiteSpace: "nowrap",
|
|
27
|
+
...i
|
|
28
|
+
}), l = (({ ref: t, ...r }) => /* @__PURE__ */ n(e() === "chip" ? c : s, {
|
|
29
|
+
ref: t,
|
|
30
|
+
...r
|
|
31
|
+
}));
|
|
15
32
|
//#endregion
|
|
16
|
-
export {
|
|
33
|
+
export { l as default };
|
|
17
34
|
|
|
18
35
|
//# sourceMappingURL=GenericCardActionButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericCardActionButton.js","names":[],"sources":["../../../src/components/GenericCard/GenericCardActionButton.tsx"],"sourcesContent":["import { Button } from '@mui/material'\nimport { styled } from '@mui/system'\n\nconst
|
|
1
|
+
{"version":3,"file":"GenericCardActionButton.js","names":[],"sources":["../../../src/components/GenericCard/GenericCardActionButton.tsx"],"sourcesContent":["import { Button } from '@mui/material'\nimport { styled } from '@mui/system'\nimport { useCardActionButtonStyle } from './CardActionButtonStyleContext'\n\nconst startIconStyle = {\n '& .MuiButton-startIcon': { marginRight: '4px', marginLeft: 0 },\n}\n\n// Enforced fixed heights (height + minHeight + border-box) so every action button\n// is the same height regardless of its icon size or label, with content centered.\nconst COMPACT_HEIGHT = '28px'\nconst PILL_HEIGHT = '32px'\n\n/** The default compact style. */\nconst CompactButton = styled(Button)({\n height: COMPACT_HEIGHT,\n minHeight: COMPACT_HEIGHT,\n padding: '0 8px',\n borderColor: 'grey.400',\n fontWeight: 700,\n lineHeight: '20px',\n whiteSpace: 'nowrap',\n ...startIconStyle,\n})\n\n/** Pill style, used when actionButtonStyle === 'chip'. */\nconst PillButton = styled(Button)({\n height: PILL_HEIGHT,\n minHeight: PILL_HEIGHT,\n borderRadius: '16px',\n padding: '0 12px',\n borderColor: 'grey.400',\n fontWeight: 700,\n lineHeight: '20px',\n whiteSpace: 'nowrap',\n ...startIconStyle,\n})\n\n/**\n * Action button used across a card's action area (Cite As, Croissant, Share,\n * Download). Its shape follows the nearest `CardActionButtonStyleContext`:\n * compact by default, or pill-shaped when the card opts into `'chip'`.\n */\nconst GenericCardActionButton = (({\n ref,\n ...props\n}: React.ComponentPropsWithRef<typeof Button>) => {\n const Styled =\n useCardActionButtonStyle() === 'chip' ? PillButton : CompactButton\n return <Styled ref={ref} {...props} />\n}) as typeof Button\n\nexport default GenericCardActionButton\n"],"mappings":";;;;;AAIA,IAAM,IAAiB,EACrB,0BAA0B;CAAE,aAAa;CAAO,YAAY;AAAE,EAChE,GAIM,IAAiB,QACjB,IAAc,QAGd,IAAgB,EAAO,CAAM,EAAE;CACnC,QAAQ;CACR,WAAW;CACX,SAAS;CACT,aAAa;CACb,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,GAAG;AACL,CAAC,GAGK,IAAa,EAAO,CAAM,EAAE;CAChC,QAAQ;CACR,WAAW;CACX,cAAc;CACd,SAAS;CACT,aAAa;CACb,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,GAAG;AACL,CAAC,GAOK,MAA4B,EAChC,QACA,GAAG,QAII,kBADL,EAAyB,MAAM,SAAS,IAAa,GAChD;CAAa;CAAK,GAAI;AAAQ,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CommonCardProps } from '@/components/CardContainer/CardConfiguration';
|
|
2
2
|
import { ColumnModel, SelectColumn } from '@sage-bionetworks/synapse-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { type DatasetHostingType } from '../DatasetHosting/DatasetHosting';
|
|
4
5
|
import { HeaderCardVariant } from '../HeaderCard';
|
|
5
6
|
import { ShareThisPageProps } from '../ShareThisPage/ShareThisPage';
|
|
6
7
|
import { SustainabilityScorecardProps } from '../SustainabilityScorecard/SustainabilityScorecard';
|
|
@@ -93,6 +94,29 @@ export type TableToGenericCardMapping = {
|
|
|
93
94
|
synapseEntityConfig?: SynapseEntityConfig;
|
|
94
95
|
/** The column name whose data contains a synId that can be used to show a button to add the corresponding entity to the download cart. */
|
|
95
96
|
downloadCartSynId?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Opt-in configuration for hosting-aware download/access. When `hostingColumn`
|
|
99
|
+
* is provided, the card's primary action becomes a `DatasetDownloadButton` driven
|
|
100
|
+
* by the row's hosting value: downloadable hosting types show the standard dataset
|
|
101
|
+
* download options, while non-downloadable types (e.g. external-access) swap to a
|
|
102
|
+
* link to the external repository instead. Other portals that don't set this
|
|
103
|
+
* are unaffected.
|
|
104
|
+
*/
|
|
105
|
+
hostingConfig?: {
|
|
106
|
+
/** Column holding the hosting type. Blank/unknown → `synapse`. */
|
|
107
|
+
hostingColumn: string;
|
|
108
|
+
/**
|
|
109
|
+
* Optional map from the column's raw values to hosting types, for columns that
|
|
110
|
+
* use portal-specific labels rather than the canonical vocabulary (e.g. CCKP's
|
|
111
|
+
* `downloadType`: "Synapse Indexed" → `external-download`). Values not in the
|
|
112
|
+
* map fall back to `normalizeHosting` (canonical value, or → `synapse`).
|
|
113
|
+
*/
|
|
114
|
+
hostingValueMap?: Record<string, DatasetHostingType>;
|
|
115
|
+
/** Column holding the free-text external repository name (e.g. "GEO", "dbGaP"). */
|
|
116
|
+
repositoryColumn?: string;
|
|
117
|
+
/** Column holding the external URL used for non-downloadable (external-access) datasets. */
|
|
118
|
+
externalUrlColumn?: string;
|
|
119
|
+
};
|
|
96
120
|
/** Configuration to display a DOI, as well as the ability to create one for users with such permission */
|
|
97
121
|
portalDoiConfiguration?: PortalDOIConfiguration;
|
|
98
122
|
/**
|