synapse-react-client 4.0.35 → 4.0.37
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 +38 -0
- package/dist/aridhia-queries/useAridhiaQuery.d.ts.map +1 -0
- package/dist/aridhia-queries/useAridhiaQuery.js +78 -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/emailWithNotification.js +15 -15
- package/dist/assets/icons/emailWithNotification.js.map +1 -1
- package/dist/assets/icons/emailWithNotification.svg +13 -13
- 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.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementList.js +65 -57
- package/dist/components/AccessRequirementList/AccessRequirementList.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm/DataAccessRequestAccessorsFilesForm.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm/DataAccessRequestAccessorsFilesForm.js +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm/DataAccessRequestAccessorsFilesForm.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 -57
- 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 +33 -32
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js.map +1 -1
- package/dist/components/Aridhia/AridhiaAccessStatus.d.ts.map +1 -1
- package/dist/components/Aridhia/AridhiaAccessStatus.js +39 -18
- package/dist/components/Aridhia/AridhiaAccessStatus.js.map +1 -1
- package/dist/components/Aridhia/DarWizard/AridhiaDarWizard.d.ts +32 -0
- package/dist/components/Aridhia/DarWizard/AridhiaDarWizard.d.ts.map +1 -0
- package/dist/components/Aridhia/DarWizard/AridhiaDarWizard.js +285 -0
- package/dist/components/Aridhia/DarWizard/AridhiaDarWizard.js.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarAboutStep.d.ts +4 -0
- package/dist/components/Aridhia/DarWizard/DarAboutStep.d.ts.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarAboutStep.js +17 -0
- package/dist/components/Aridhia/DarWizard/DarAboutStep.js.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarCompleteStep.d.ts +27 -0
- package/dist/components/Aridhia/DarWizard/DarCompleteStep.d.ts.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarCompleteStep.js +96 -0
- package/dist/components/Aridhia/DarWizard/DarCompleteStep.js.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarDestinationStep.d.ts +28 -0
- package/dist/components/Aridhia/DarWizard/DarDestinationStep.d.ts.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarDestinationStep.js +128 -0
- package/dist/components/Aridhia/DarWizard/DarDestinationStep.js.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarProjectStep.d.ts +4 -0
- package/dist/components/Aridhia/DarWizard/DarProjectStep.d.ts.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarProjectStep.js +17 -0
- package/dist/components/Aridhia/DarWizard/DarProjectStep.js.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarSectionForm.d.ts +13 -0
- package/dist/components/Aridhia/DarWizard/DarSectionForm.d.ts.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarSectionForm.js +23 -0
- package/dist/components/Aridhia/DarWizard/DarSectionForm.js.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.d.ts +11 -0
- package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.d.ts.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.js +47 -0
- package/dist/components/Aridhia/DarWizard/DarSubmittedPanel.js.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarWorkspaceStep.d.ts +16 -0
- package/dist/components/Aridhia/DarWizard/DarWorkspaceStep.d.ts.map +1 -0
- package/dist/components/Aridhia/DarWizard/DarWorkspaceStep.js +33 -0
- package/dist/components/Aridhia/DarWizard/DarWorkspaceStep.js.map +1 -0
- package/dist/components/Aridhia/DarWizard/useDarDraft.d.ts +32 -0
- package/dist/components/Aridhia/DarWizard/useDarDraft.d.ts.map +1 -0
- package/dist/components/Aridhia/DarWizard/useDarDraft.js +44 -0
- package/dist/components/Aridhia/DarWizard/useDarDraft.js.map +1 -0
- package/dist/components/Aridhia/FairLabelField.d.ts +8 -0
- package/dist/components/Aridhia/FairLabelField.d.ts.map +1 -0
- package/dist/components/Aridhia/FairLabelField.js +13 -0
- package/dist/components/Aridhia/FairLabelField.js.map +1 -0
- 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/Aridhia/fairFormToRjsf.d.ts +36 -0
- package/dist/components/Aridhia/fairFormToRjsf.d.ts.map +1 -0
- package/dist/components/Aridhia/fairFormToRjsf.js +137 -0
- package/dist/components/Aridhia/fairFormToRjsf.js.map +1 -0
- package/dist/components/CannedRejectionDialog/CannedRejectionDialog.d.ts.map +1 -1
- package/dist/components/CannedRejectionDialog/CannedRejectionDialog.js +2 -2
- package/dist/components/CannedRejectionDialog/CannedRejectionDialog.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/CardContainer/CardContainer.d.ts.map +1 -1
- package/dist/components/CardContainer/CardContainer.js +1 -1
- package/dist/components/CardContainer/CardContainer.js.map +1 -1
- package/dist/components/ChallengeSubmission/ChallengeSubmission.d.ts.map +1 -1
- package/dist/components/ChallengeSubmission/ChallengeSubmission.js +2 -2
- package/dist/components/ChallengeSubmission/ChallengeSubmission.js.map +1 -1
- package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.d.ts.map +1 -1
- package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.js +3 -3
- package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.js.map +1 -1
- package/dist/components/ChallengeTeamWizard/CreateChallengeTeam.js +1 -1
- package/dist/components/ChallengeTeamWizard/CreateChallengeTeam.js.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/CreateTableViewWizard.js +2 -2
- package/dist/components/CreateTableViewWizard/CreateTableViewWizard.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/SynapseGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.js +121 -117
- package/dist/components/DataGrid/SynapseGrid.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/columns/DateTimeColumn.d.ts +21 -1
- package/dist/components/DataGrid/columns/DateTimeColumn.d.ts.map +1 -1
- package/dist/components/DataGrid/columns/DateTimeColumn.js +73 -29
- package/dist/components/DataGrid/columns/DateTimeColumn.js.map +1 -1
- package/dist/components/DataGrid/columns/NumberColumn.d.ts +31 -0
- package/dist/components/DataGrid/columns/NumberColumn.d.ts.map +1 -0
- package/dist/components/DataGrid/columns/NumberColumn.js +27 -0
- package/dist/components/DataGrid/columns/NumberColumn.js.map +1 -0
- package/dist/components/DataGrid/components/ReorderColumnsButton.d.ts +1 -0
- package/dist/components/DataGrid/components/ReorderColumnsButton.d.ts.map +1 -1
- package/dist/components/DataGrid/components/ReorderColumnsButton.js +17 -16
- package/dist/components/DataGrid/components/ReorderColumnsButton.js.map +1 -1
- package/dist/components/DataGrid/components/ReorderColumnsDialog.d.ts +2 -0
- package/dist/components/DataGrid/components/ReorderColumnsDialog.d.ts.map +1 -1
- package/dist/components/DataGrid/components/ReorderColumnsDialog.js +104 -65
- package/dist/components/DataGrid/components/ReorderColumnsDialog.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/useDataGridWebsocket.js +1 -1
- package/dist/components/DataGrid/useDataGridWebsocket.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/DataGrid/utils/columnFactory.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/columnFactory.js +55 -51
- package/dist/components/DataGrid/utils/columnFactory.js.map +1 -1
- package/dist/components/DataGrid/utils/computeDefaultColumnOrder.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/computeDefaultColumnOrder.js +9 -8
- package/dist/components/DataGrid/utils/computeDefaultColumnOrder.js.map +1 -1
- package/dist/components/DatasetHosting/DatasetDownloadButton.d.ts +40 -0
- package/dist/components/DatasetHosting/DatasetDownloadButton.d.ts.map +1 -0
- package/dist/components/DatasetHosting/DatasetDownloadButton.js +124 -0
- package/dist/components/DatasetHosting/DatasetDownloadButton.js.map +1 -0
- package/dist/components/DatasetHosting/DatasetHosting.d.ts +97 -0
- package/dist/components/DatasetHosting/DatasetHosting.d.ts.map +1 -0
- package/dist/components/DatasetHosting/DatasetHosting.js +64 -0
- package/dist/components/DatasetHosting/DatasetHosting.js.map +1 -0
- package/dist/components/DatasetHosting/DatasetHostingAdornment.d.ts +15 -0
- package/dist/components/DatasetHosting/DatasetHostingAdornment.d.ts.map +1 -0
- package/dist/components/DatasetHosting/DatasetHostingAdornment.js +23 -0
- package/dist/components/DatasetHosting/DatasetHostingAdornment.js.map +1 -0
- package/dist/components/DatasetHosting/index.d.ts +7 -0
- package/dist/components/DatasetHosting/index.d.ts.map +1 -0
- package/dist/components/DatasetHosting/index.js +4 -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/DropdownSelect/DropdownSelect.d.ts.map +1 -1
- package/dist/components/DropdownSelect/DropdownSelect.js +1 -1
- package/dist/components/DropdownSelect/DropdownSelect.js.map +1 -1
- package/dist/components/EntityFinder/tree/EntityTree.d.ts.map +1 -1
- package/dist/components/EntityFinder/tree/EntityTree.js +1 -1
- package/dist/components/EntityFinder/tree/EntityTree.js.map +1 -1
- package/dist/components/EntityFinder/tree/VirtualizedTree.js +1 -1
- package/dist/components/EntityFinder/tree/VirtualizedTree.js.map +1 -1
- package/dist/components/FeaturedDataTabs/FacetPlotsCard.js +1 -1
- package/dist/components/FeaturedDataTabs/FacetPlotsCard.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 +158 -137
- 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/CustomFormContext.d.ts +9 -0
- package/dist/components/JsonSchemaForm/CustomFormContext.d.ts.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 +15 -13
- 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/JsonSchemaForm/templates/ArrayFieldTemplate.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/templates/ArrayFieldTemplate.js +1 -1
- package/dist/components/JsonSchemaForm/templates/ArrayFieldTemplate.js.map +1 -1
- package/dist/components/JsonSchemaForm/templates/FieldTemplate.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/templates/FieldTemplate.js +6 -6
- package/dist/components/JsonSchemaForm/templates/FieldTemplate.js.map +1 -1
- package/dist/components/JsonSchemaForm/widgets/DateWidget.d.ts +9 -0
- package/dist/components/JsonSchemaForm/widgets/DateWidget.d.ts.map +1 -0
- package/dist/components/JsonSchemaForm/widgets/DateWidget.js +23 -0
- package/dist/components/JsonSchemaForm/widgets/DateWidget.js.map +1 -0
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.css +1 -1
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.d.ts +3 -2
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.d.ts.map +1 -1
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.js +10 -12
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.js.map +1 -1
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.module.js +8 -7
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.module.js.map +1 -1
- package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.module.scss +12 -2
- package/dist/components/Markdown/MarkdownEditor.js +1 -1
- package/dist/components/Markdown/MarkdownEditor.js.map +1 -1
- package/dist/components/ProvenanceGraph/ProvenanceGraph.d.ts.map +1 -1
- package/dist/components/ProvenanceGraph/ProvenanceGraph.js +46 -46
- package/dist/components/ProvenanceGraph/ProvenanceGraph.js.map +1 -1
- 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/LastUpdatedOn.js +1 -1
- package/dist/components/QueryWrapperPlotNav/LastUpdatedOn.js.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +1 -2
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +27 -25
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/AnnotationEditorUtils.d.ts +0 -9
- package/dist/components/SchemaDrivenAnnotationEditor/AnnotationEditorUtils.d.ts.map +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/AnnotationEditorUtils.js +23 -31
- package/dist/components/SchemaDrivenAnnotationEditor/AnnotationEditorUtils.js.map +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/SchemaDrivenAnnotationEditor.d.ts.map +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/SchemaDrivenAnnotationEditor.js +126 -125
- package/dist/components/SchemaDrivenAnnotationEditor/SchemaDrivenAnnotationEditor.js.map +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/field/SynapseAnnotationsRJSFObjectField.d.ts.map +1 -1
- package/dist/components/SchemaDrivenAnnotationEditor/field/SynapseAnnotationsRJSFObjectField.js +6 -5
- package/dist/components/SchemaDrivenAnnotationEditor/field/SynapseAnnotationsRJSFObjectField.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts +2 -0
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +18 -13
- 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/StatisticsPlot.d.ts.map +1 -1
- package/dist/components/StatisticsPlot.js +1 -1
- package/dist/components/StatisticsPlot.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/SynapseForm/SynapseFormWrapper.js +1 -1
- package/dist/components/SynapseForm/SynapseFormWrapper.js.map +1 -1
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.css +1 -1
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.js +9 -9
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.js.map +1 -1
- package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.scss +14 -0
- package/dist/components/SynapseHomepageV2/SynapseHomepageChatSearch.js +1 -1
- package/dist/components/SynapseHomepageV2/SynapseHomepageChatSearch.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchPage.js +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchPage.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/SynapseTableRenderers.d.ts.map +1 -1
- package/dist/components/SynapseTable/SynapseTableRenderers.js +1 -1
- package/dist/components/SynapseTable/SynapseTableRenderers.js.map +1 -1
- package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.d.ts +4 -0
- package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.d.ts.map +1 -1
- package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.js +71 -69
- package/dist/components/SynapseTable/TopLevelControls/TopLevelControls.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/SynapseTable/table-top/DownloadOptions.d.ts +4 -0
- package/dist/components/SynapseTable/table-top/DownloadOptions.d.ts.map +1 -1
- package/dist/components/SynapseTable/table-top/DownloadOptions.js +14 -13
- package/dist/components/SynapseTable/table-top/DownloadOptions.js.map +1 -1
- package/dist/components/SynapseTable/usePrefetchTableData.js +1 -1
- package/dist/components/SynapseTable/usePrefetchTableData.js.map +1 -1
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaFormReducer.js +4 -4
- package/dist/components/TableColumnSchemaEditor/TableColumnSchemaFormReducer.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/TableCellRenderer.d.ts.map +1 -1
- package/dist/components/TanStackTable/TableCellRenderer.js +1 -1
- package/dist/components/TanStackTable/TableCellRenderer.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/TermsAndConditions/TermsAndConditions.js +1 -1
- package/dist/components/TermsAndConditions/TermsAndConditions.js.map +1 -1
- package/dist/components/Webhook/CreateWebhookModal.d.ts.map +1 -1
- package/dist/components/Webhook/CreateWebhookModal.js +1 -1
- package/dist/components/Webhook/CreateWebhookModal.js.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js +172 -61
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/RouteConstants.d.ts +3 -0
- package/dist/components/dataaccess/UserAccessRequestHistory/RouteConstants.d.ts.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/RouteConstants.js +2 -2
- package/dist/components/dataaccess/UserAccessRequestHistory/RouteConstants.js.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPage.d.ts.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPage.js +11 -9
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPage.js.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPlace.d.ts.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPlace.js +74 -43
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryPlace.js.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryTable.d.ts.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryTable.js +2 -2
- package/dist/components/dataaccess/UserAccessRequestHistory/UserAccessRequestHistoryTable.js.map +1 -1
- package/dist/components/doi/CreateOrUpdateDoiModal.d.ts.map +1 -1
- package/dist/components/doi/CreateOrUpdateDoiModal.js +15 -18
- package/dist/components/doi/CreateOrUpdateDoiModal.js.map +1 -1
- package/dist/components/entity/metadata/EntityModal.js +1 -1
- package/dist/components/entity/metadata/EntityModal.js.map +1 -1
- package/dist/components/entity/page/action_menu/EntityActionMenu.js +2 -2
- package/dist/components/entity/page/action_menu/EntityActionMenu.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 +144 -140
- package/dist/components/menu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/menu/DropdownMenu.js +7 -7
- package/dist/components/menu/DropdownMenu.js.map +1 -1
- package/dist/components/row_renderers/Dataset.js +1 -1
- package/dist/components/row_renderers/Dataset.js.map +1 -1
- package/dist/components/styled/LeftRightPanel.d.ts +8 -0
- package/dist/components/styled/LeftRightPanel.d.ts.map +1 -1
- package/dist/components/styled/LeftRightPanel.js +10 -1
- package/dist/components/styled/LeftRightPanel.js.map +1 -1
- package/dist/components/widgets/facet-nav/FacetNavPanel.js +1 -1
- package/dist/components/widgets/facet-nav/FacetNavPanel.js.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.d.ts.map +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.js +1 -1
- package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.js.map +1 -1
- package/dist/components/widgets/query-filter/FacetFilterControls.js +1 -1
- package/dist/components/widgets/query-filter/FacetFilterControls.js.map +1 -1
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js +1 -1
- package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksPage.js +5 -5
- package/dist/index.js +174 -171
- package/dist/index.js.map +1 -1
- package/dist/mocks/msw/handlers/aridhiaHandlers.d.ts +73 -0
- package/dist/mocks/msw/handlers/aridhiaHandlers.d.ts.map +1 -0
- package/dist/mocks/msw/handlers/aridhiaHandlers.js +119 -0
- package/dist/mocks/msw/handlers/aridhiaHandlers.js.map +1 -0
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.js +31 -27
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/entityHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/entityHandlers.js +4 -4
- package/dist/mocks/msw/handlers/entityHandlers.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 +6 -2
- package/dist/mocks/msw/handlers/userProfileHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers.js +72 -69
- package/dist/mocks/msw/handlers.js.map +1 -1
- package/dist/style/components/_all.scss +0 -1
- package/dist/style/components/_cards.scss +4 -2
- package/dist/style/components/_terms-and-conditions.scss +25 -3
- package/dist/style/main.css +1 -1
- package/dist/synapse-queries/KeyFactory.d.ts +1 -0
- package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
- package/dist/synapse-queries/KeyFactory.js +3 -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 +7 -0
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/useEDuc.js +11 -3
- package/dist/synapse-queries/dataaccess/useEDuc.js.map +1 -1
- package/dist/synapse-queries/index.js +190 -189
- package/dist/testutils/RjsfFormTestUtils.js +12 -0
- package/dist/testutils/RjsfFormTestUtils.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/APIConstants.d.ts +1 -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/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/QueryFilterUtils.js +1 -1
- package/dist/utils/functions/QueryFilterUtils.js.map +1 -1
- package/dist/utils/functions/RegularExpressions.d.ts +10 -0
- package/dist/utils/functions/RegularExpressions.d.ts.map +1 -1
- package/dist/utils/functions/RegularExpressions.js +7 -1
- 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 +20 -4
- package/dist/utils/functions/SqlFunctions.js.map +1 -1
- package/dist/utils/functions/queryUtils.js +1 -1
- package/dist/utils/functions/queryUtils.js.map +1 -1
- package/dist/utils/hooks/useDetectSSOCode.d.ts.map +1 -1
- package/dist/utils/hooks/useDetectSSOCode.js +1 -1
- package/dist/utils/hooks/useDetectSSOCode.js.map +1 -1
- package/dist/utils/hooks/useImmutableTableQuery/useImmutableTableQuery.js +1 -1
- package/dist/utils/hooks/useImmutableTableQuery/useImmutableTableQuery.js.map +1 -1
- package/dist/utils/index.js +16 -16
- package/dist/utils/jsonschema/SchemaAnnotationUtils.js +1 -1
- package/dist/utils/jsonschema/SchemaAnnotationUtils.js.map +1 -1
- package/dist/utils/jsonschema/collectTopLevelProperties.d.ts +22 -0
- package/dist/utils/jsonschema/collectTopLevelProperties.d.ts.map +1 -0
- package/dist/utils/jsonschema/collectTopLevelProperties.js +31 -0
- package/dist/utils/jsonschema/collectTopLevelProperties.js.map +1 -0
- package/dist/utils/jsonschema/getSchemaPropertyInfo.d.ts.map +1 -1
- package/dist/utils/jsonschema/getSchemaPropertyInfo.js +1 -1
- package/dist/utils/jsonschema/getSchemaPropertyInfo.js.map +1 -1
- 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 +5 -5
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarCompleteStep.js","names":[],"sources":["../../../../src/components/Aridhia/DarWizard/DarCompleteStep.tsx"],"sourcesContent":["import {\n Alert,\n Checkbox,\n FormControlLabel,\n Link as MuiLink,\n Stack,\n Table,\n TableBody,\n TableCell,\n TableRow,\n Typography,\n} from '@mui/material'\nimport { useGetAridhiaDatasetCatalogue } from '@/aridhia-queries/useGetAridhiaDatasetCatalogue'\nimport { AnsweredField } from '@/components/Aridhia/fairFormToRjsf'\nimport { TransferType } from './AridhiaDarWizard'\n\nconst RDCA_DAP_DUA_URL = 'https://portal.rdca.c-path.org/data-use-agreement'\nconst TABLE_CELL_SX = { typography: 'body1' } as const\n\nexport type DarCompleteStepProps = {\n datasetCode: string\n datasetName?: string\n selectedDictionaryNames: string[]\n /** RDCA-DAP's own UI treats an empty table selection as \"every table\" (see `DarDestinationStep`). */\n allTablesSelected: boolean\n workspaceRequested: boolean\n workspaceName?: string\n workspaceReference?: string\n /** The Destination step only prompts for transfer type when more than one is allowed;\n * showing it here otherwise would present an answer to a question the user was never asked. */\n showTransferType: boolean\n transferType: TransferType\n aboutAnswers: AnsweredField[]\n projectAnswers: AnsweredField[]\n termsAccepted: boolean\n onTermsAcceptedChange: (accepted: boolean) => void\n}\n\n/**\n * Summary of the assembled request plus the terms-of-use gate (D-Complete step). The upstream\n * FAIR `DatasetCatalogue` schema has no `rights` property despite the plan of record describing\n * one, so this always links the RDCA-DAP data use agreement rather than a per-dataset URL.\n */\nexport function DarCompleteStep(props: DarCompleteStepProps) {\n const {\n datasetCode,\n datasetName,\n selectedDictionaryNames,\n allTablesSelected,\n workspaceRequested,\n workspaceName,\n workspaceReference,\n showTransferType,\n transferType,\n aboutAnswers,\n projectAnswers,\n termsAccepted,\n onTermsAcceptedChange,\n } = props\n\n const catalogueQuery = useGetAridhiaDatasetCatalogue(datasetCode)\n const displayName = datasetName ?? catalogueQuery.data?.title ?? datasetCode\n\n return (\n <Stack spacing={2}>\n <Typography variant=\"h6\">Review & submit</Typography>\n <Table>\n <TableBody>\n <TableRow>\n <TableCell sx={TABLE_CELL_SX}>Dataset</TableCell>\n <TableCell sx={TABLE_CELL_SX}>{displayName}</TableCell>\n </TableRow>\n <TableRow>\n <TableCell sx={TABLE_CELL_SX}>Tables</TableCell>\n <TableCell sx={TABLE_CELL_SX}>\n {allTablesSelected\n ? 'All tables'\n : selectedDictionaryNames.join(', ')}\n </TableCell>\n </TableRow>\n <TableRow>\n <TableCell sx={TABLE_CELL_SX}>Workspace</TableCell>\n <TableCell sx={TABLE_CELL_SX}>\n {workspaceRequested\n ? 'A new workspace will be provisioned'\n : (workspaceName ?? 'Existing workspace')}\n </TableCell>\n </TableRow>\n {workspaceRequested && (\n <TableRow>\n <TableCell sx={TABLE_CELL_SX}>Reference</TableCell>\n <TableCell sx={TABLE_CELL_SX}>{workspaceReference}</TableCell>\n </TableRow>\n )}\n {showTransferType && (\n <TableRow>\n <TableCell sx={TABLE_CELL_SX}>Transfer type</TableCell>\n <TableCell sx={TABLE_CELL_SX}>{transferType}</TableCell>\n </TableRow>\n )}\n {projectAnswers.map(answer => (\n <TableRow key={`project-${answer.label}`}>\n <TableCell sx={TABLE_CELL_SX}>{answer.label}</TableCell>\n <TableCell sx={TABLE_CELL_SX}>{answer.value}</TableCell>\n </TableRow>\n ))}\n {aboutAnswers.map(answer => (\n <TableRow key={`about-${answer.label}`}>\n <TableCell sx={TABLE_CELL_SX}>{answer.label}</TableCell>\n <TableCell sx={TABLE_CELL_SX}>{answer.value}</TableCell>\n </TableRow>\n ))}\n </TableBody>\n </Table>\n <FormControlLabel\n control={\n <Checkbox\n checked={termsAccepted}\n onChange={(_, checked) => onTermsAcceptedChange(checked)}\n />\n }\n label={\n <Typography variant=\"body1\">\n I accept{' '}\n <MuiLink\n href={RDCA_DAP_DUA_URL}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n the RDCA-DAP data use agreement\n </MuiLink>\n .\n </Typography>\n }\n />\n {!termsAccepted && (\n <Alert severity=\"info\">\n Accept the data use agreement to submit this request.\n </Alert>\n )}\n </Stack>\n )\n}\n"],"mappings":";;;;AAgBA,IAAM,IAAmB,qDACnB,IAAgB,EAAE,YAAY,QAAQ;AA0B5C,SAAgB,EAAgB,GAA6B;CAC3D,IAAM,EACJ,gBACA,gBACA,4BACA,sBACA,uBACA,kBACA,uBACA,qBACA,iBACA,iBACA,mBACA,kBACA,6BACE,GAEE,IAAiB,EAA8B,CAAW,GAC1D,IAAc,KAAe,EAAe,MAAM,SAAS;CAEjE,OACE,kBAAC,GAAD;EAAO,SAAS;YAAhB;GACE,kBAAC,GAAD;IAAY,SAAQ;cAAK;GAA+B,CAAA;GACxD,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAA,UAAA;IACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;KAAW,IAAI;eAAe;IAAkB,CAAA,GAChD,kBAAC,GAAD;KAAW,IAAI;eAAgB;IAAuB,CAAA,CAC9C,EAAA,CAAA;IACV,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;KAAW,IAAI;eAAe;IAAiB,CAAA,GAC/C,kBAAC,GAAD;KAAW,IAAI;eACZ,IACG,eACA,EAAwB,KAAK,IAAI;IAC5B,CAAA,CACH,EAAA,CAAA;IACV,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;KAAW,IAAI;eAAe;IAAoB,CAAA,GAClD,kBAAC,GAAD;KAAW,IAAI;eACZ,IACG,wCACC,KAAiB;IACb,CAAA,CACH,EAAA,CAAA;IACT,KACC,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;KAAW,IAAI;eAAe;IAAoB,CAAA,GAClD,kBAAC,GAAD;KAAW,IAAI;eAAgB;IAA8B,CAAA,CACrD,EAAA,CAAA;IAEX,KACC,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;KAAW,IAAI;eAAe;IAAwB,CAAA,GACtD,kBAAC,GAAD;KAAW,IAAI;eAAgB;IAAwB,CAAA,CAC/C,EAAA,CAAA;IAEX,EAAe,KAAI,MAClB,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;KAAW,IAAI;eAAgB,EAAO;IAAiB,CAAA,GACvD,kBAAC,GAAD;KAAW,IAAI;eAAgB,EAAO;IAAiB,CAAA,CAC/C,EAAA,GAHK,WAAW,EAAO,OAGvB,CACX;IACA,EAAa,KAAI,MAChB,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD;KAAW,IAAI;eAAgB,EAAO;IAAiB,CAAA,GACvD,kBAAC,GAAD;KAAW,IAAI;eAAgB,EAAO;IAAiB,CAAA,CAC/C,EAAA,GAHK,SAAS,EAAO,OAGrB,CACX;GACQ,EAAA,CAAA,EACN,CAAA;GACP,kBAAC,GAAD;IACE,SACE,kBAAC,GAAD;KACE,SAAS;KACT,WAAW,GAAG,MAAY,EAAsB,CAAO;IACxD,CAAA;IAEH,OACE,kBAAC,GAAD;KAAY,SAAQ;eAApB;MAA4B;MACjB;MACT,kBAAC,GAAD;OACE,MAAM;OACN,QAAO;OACP,KAAI;iBACL;MAEQ,CAAA;MAAC;KAEA;;GAEf,CAAA;GACA,CAAC,KACA,kBAAC,GAAD;IAAO,UAAS;cAAO;GAEhB,CAAA;EAEJ;;AAEX"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TransferType } from './AridhiaDarWizard';
|
|
2
|
+
export type DarDestinationStepProps = {
|
|
3
|
+
datasetCode: string;
|
|
4
|
+
allowedTransferTypes: TransferType[];
|
|
5
|
+
selectedDictionaryCodes: string[];
|
|
6
|
+
onSelectedDictionaryCodesChange: (codes: string[]) => void;
|
|
7
|
+
workspaceRequested: boolean;
|
|
8
|
+
workspaceLocation: string | undefined;
|
|
9
|
+
workspaceUuid: string | undefined;
|
|
10
|
+
onWorkspaceChange: (change: {
|
|
11
|
+
workspaceRequested: boolean;
|
|
12
|
+
workspaceLocation: string | undefined;
|
|
13
|
+
workspaceUuid: string | undefined;
|
|
14
|
+
}) => void;
|
|
15
|
+
transferType: TransferType;
|
|
16
|
+
onTransferTypeChange: (transferType: TransferType) => void;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Aridhia DAR step to facilitate
|
|
20
|
+
* - Selection of tables for which the user is requesting access
|
|
21
|
+
* - Selection of workspace destination
|
|
22
|
+
* - If applicable, transfer type
|
|
23
|
+
*
|
|
24
|
+
* RDCA-DAP's UI calls these "Tables"; the API/Aridhia calls them "dictionaries".
|
|
25
|
+
* Copy matches RDCA-DAP.
|
|
26
|
+
*/
|
|
27
|
+
export declare function DarDestinationStep(props: DarDestinationStepProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=DarDestinationStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarDestinationStep.d.ts","sourceRoot":"","sources":["../../../../src/components/Aridhia/DarWizard/DarDestinationStep.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AASjD,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,YAAY,EAAE,CAAA;IACpC,uBAAuB,EAAE,MAAM,EAAE,CAAA;IACjC,+BAA+B,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC1D,kBAAkB,EAAE,OAAO,CAAA;IAC3B,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,iBAAiB,EAAE,CAAC,MAAM,EAAE;QAC1B,kBAAkB,EAAE,OAAO,CAAA;QAC3B,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAA;QACrC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;KAClC,KAAK,IAAI,CAAA;IACV,YAAY,EAAE,YAAY,CAAA;IAC1B,oBAAoB,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAA;CAC3D,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CA4JhE"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { useGetAridhiaDictionaries as e } from "../../../aridhia-queries/useGetAridhiaDictionaries.js";
|
|
2
|
+
import { useGetAridhiaWorkspaceLocations as t } from "../../../aridhia-queries/useGetAridhiaWorkspaceLocations.js";
|
|
3
|
+
import { useGetAridhiaWorkspaces as n } from "../../../aridhia-queries/useGetAridhiaWorkspaces.js";
|
|
4
|
+
import { Alert as r, Autocomplete as i, FormControlLabel as a, MenuItem as o, Radio as s, RadioGroup as c, Skeleton as l, Stack as u, TextField as d, Typography as f } from "@mui/material";
|
|
5
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/Aridhia/DarWizard/DarDestinationStep.tsx
|
|
7
|
+
var h = "__request_new_workspace__", g = {
|
|
8
|
+
clear: "Clear (identifiable) data",
|
|
9
|
+
pseudonymised: "Pseudonymised data",
|
|
10
|
+
manual: "Manual review"
|
|
11
|
+
};
|
|
12
|
+
function _(_) {
|
|
13
|
+
let { datasetCode: v, allowedTransferTypes: y, selectedDictionaryCodes: b, onSelectedDictionaryCodesChange: x, workspaceRequested: S, workspaceLocation: C, workspaceUuid: w, onWorkspaceChange: T, transferType: E, onTransferTypeChange: D } = _, O = e(v), k = t(v), A = n(v, C), j = O.data?.items ?? [], M = k.data?.items ?? [], N = A.data?.items ?? [], P = j.filter((e) => !!e.code), F = P.filter((e) => b.includes(e.code));
|
|
14
|
+
return /* @__PURE__ */ m(u, {
|
|
15
|
+
spacing: 4,
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ m(u, {
|
|
18
|
+
spacing: 1,
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ p(f, {
|
|
21
|
+
variant: "h6",
|
|
22
|
+
children: "Tables"
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ p(f, {
|
|
25
|
+
variant: "subtitle1",
|
|
26
|
+
color: "text.secondary",
|
|
27
|
+
children: "Choose specific tables to include in your request, or leave this empty to request access to every table. Once approved, each included table will be transferred to your workspace."
|
|
28
|
+
}),
|
|
29
|
+
O.isLoading && /* @__PURE__ */ p(l, { height: 56 }),
|
|
30
|
+
O.isError && /* @__PURE__ */ p(r, {
|
|
31
|
+
severity: "error",
|
|
32
|
+
children: "Unable to load tables."
|
|
33
|
+
}),
|
|
34
|
+
!O.isLoading && !O.isError && /* @__PURE__ */ p(i, {
|
|
35
|
+
multiple: !0,
|
|
36
|
+
disableCloseOnSelect: !0,
|
|
37
|
+
options: P,
|
|
38
|
+
getOptionLabel: (e) => e.name,
|
|
39
|
+
isOptionEqualToValue: (e, t) => e.code === t.code,
|
|
40
|
+
value: F,
|
|
41
|
+
onChange: (e, t) => x(t.map((e) => e.code)),
|
|
42
|
+
renderInput: (e) => /* @__PURE__ */ p(d, {
|
|
43
|
+
...e,
|
|
44
|
+
label: "Tables",
|
|
45
|
+
placeholder: b.length === 0 ? "All tables" : ""
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
]
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ m(u, {
|
|
51
|
+
spacing: 1,
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ p(f, {
|
|
54
|
+
variant: "h6",
|
|
55
|
+
children: "Workspace destination"
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ p(f, {
|
|
58
|
+
variant: "subtitle1",
|
|
59
|
+
color: "text.secondary",
|
|
60
|
+
children: "Choose an existing workspace, or request a new one as part of this request."
|
|
61
|
+
}),
|
|
62
|
+
k.isLoading && /* @__PURE__ */ p(l, { height: 56 }),
|
|
63
|
+
k.isError && /* @__PURE__ */ p(r, {
|
|
64
|
+
severity: "error",
|
|
65
|
+
children: "Unable to load workspace locations."
|
|
66
|
+
}),
|
|
67
|
+
!k.isLoading && /* @__PURE__ */ p(d, {
|
|
68
|
+
select: !0,
|
|
69
|
+
label: "Location",
|
|
70
|
+
value: C ?? "",
|
|
71
|
+
onChange: (e) => T({
|
|
72
|
+
workspaceRequested: S,
|
|
73
|
+
workspaceLocation: e.target.value || void 0,
|
|
74
|
+
workspaceUuid: void 0
|
|
75
|
+
}),
|
|
76
|
+
children: M.map((e) => /* @__PURE__ */ p(o, {
|
|
77
|
+
value: e.value,
|
|
78
|
+
children: e.description ?? e.value
|
|
79
|
+
}, e.value))
|
|
80
|
+
}),
|
|
81
|
+
C && /* @__PURE__ */ m(d, {
|
|
82
|
+
select: !0,
|
|
83
|
+
label: "Workspace",
|
|
84
|
+
value: S ? h : w ?? "",
|
|
85
|
+
onChange: (e) => {
|
|
86
|
+
let t = e.target.value;
|
|
87
|
+
T(t === h ? {
|
|
88
|
+
workspaceRequested: !0,
|
|
89
|
+
workspaceLocation: C,
|
|
90
|
+
workspaceUuid: void 0
|
|
91
|
+
} : {
|
|
92
|
+
workspaceRequested: !1,
|
|
93
|
+
workspaceLocation: C,
|
|
94
|
+
workspaceUuid: t || void 0
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
children: [N.map((e) => /* @__PURE__ */ p(o, {
|
|
98
|
+
value: e.uuid,
|
|
99
|
+
children: e.name ?? e.uuid
|
|
100
|
+
}, e.uuid)), /* @__PURE__ */ p(o, {
|
|
101
|
+
value: h,
|
|
102
|
+
children: "Request a new workspace"
|
|
103
|
+
})]
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
}),
|
|
107
|
+
y.length > 1 && /* @__PURE__ */ m(u, {
|
|
108
|
+
spacing: 1,
|
|
109
|
+
children: [/* @__PURE__ */ p(f, {
|
|
110
|
+
variant: "h6",
|
|
111
|
+
children: "Transfer type"
|
|
112
|
+
}), /* @__PURE__ */ p(c, {
|
|
113
|
+
value: E,
|
|
114
|
+
onChange: (e) => D(e.target.value),
|
|
115
|
+
children: y.map((e) => /* @__PURE__ */ p(a, {
|
|
116
|
+
value: e,
|
|
117
|
+
control: /* @__PURE__ */ p(s, {}),
|
|
118
|
+
label: g[e]
|
|
119
|
+
}, e))
|
|
120
|
+
})]
|
|
121
|
+
})
|
|
122
|
+
]
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
126
|
+
export { _ as DarDestinationStep };
|
|
127
|
+
|
|
128
|
+
//# sourceMappingURL=DarDestinationStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarDestinationStep.js","names":[],"sources":["../../../../src/components/Aridhia/DarWizard/DarDestinationStep.tsx"],"sourcesContent":["import {\n Alert,\n Autocomplete,\n FormControlLabel,\n MenuItem,\n Radio,\n RadioGroup,\n Skeleton,\n Stack,\n TextField,\n Typography,\n} from '@mui/material'\nimport { useGetAridhiaDictionaries } from '@/aridhia-queries/useGetAridhiaDictionaries'\nimport { useGetAridhiaWorkspaceLocations } from '@/aridhia-queries/useGetAridhiaWorkspaceLocations'\nimport { useGetAridhiaWorkspaces } from '@/aridhia-queries/useGetAridhiaWorkspaces'\nimport { TransferType } from './AridhiaDarWizard'\n\nconst NEW_WORKSPACE_VALUE = '__request_new_workspace__'\nconst TRANSFER_TYPE_LABELS: Record<TransferType, string> = {\n clear: 'Clear (identifiable) data',\n pseudonymised: 'Pseudonymised data',\n manual: 'Manual review',\n}\n\nexport type DarDestinationStepProps = {\n datasetCode: string\n allowedTransferTypes: TransferType[]\n selectedDictionaryCodes: string[]\n onSelectedDictionaryCodesChange: (codes: string[]) => void\n workspaceRequested: boolean\n workspaceLocation: string | undefined\n workspaceUuid: string | undefined\n onWorkspaceChange: (change: {\n workspaceRequested: boolean\n workspaceLocation: string | undefined\n workspaceUuid: string | undefined\n }) => void\n transferType: TransferType\n onTransferTypeChange: (transferType: TransferType) => void\n}\n\n/**\n * Aridhia DAR step to facilitate\n * - Selection of tables for which the user is requesting access\n * - Selection of workspace destination\n * - If applicable, transfer type\n *\n * RDCA-DAP's UI calls these \"Tables\"; the API/Aridhia calls them \"dictionaries\".\n * Copy matches RDCA-DAP.\n */\nexport function DarDestinationStep(props: DarDestinationStepProps) {\n const {\n datasetCode,\n allowedTransferTypes,\n selectedDictionaryCodes,\n onSelectedDictionaryCodesChange,\n workspaceRequested,\n workspaceLocation,\n workspaceUuid,\n onWorkspaceChange,\n transferType,\n onTransferTypeChange,\n } = props\n\n const dictionariesQuery = useGetAridhiaDictionaries(datasetCode)\n const locationsQuery = useGetAridhiaWorkspaceLocations(datasetCode)\n const workspacesQuery = useGetAridhiaWorkspaces(\n datasetCode,\n workspaceLocation,\n )\n\n const dictionaries = dictionariesQuery.data?.items ?? []\n const locations = locationsQuery.data?.items ?? []\n const workspaces = workspacesQuery.data?.items ?? []\n\n const dictionariesWithCode = dictionaries.filter(\n (dictionary): dictionary is { code: string; name: string } =>\n !!dictionary.code,\n )\n const selectedDictionaries = dictionariesWithCode.filter(dictionary =>\n selectedDictionaryCodes.includes(dictionary.code),\n )\n\n return (\n <Stack spacing={4}>\n <Stack spacing={1}>\n <Typography variant=\"h6\">Tables</Typography>\n <Typography variant=\"subtitle1\" color=\"text.secondary\">\n Choose specific tables to include in your request, or leave this empty\n to request access to every table. Once approved, each included table\n will be transferred to your workspace.\n </Typography>\n {dictionariesQuery.isLoading && <Skeleton height={56} />}\n {dictionariesQuery.isError && (\n <Alert severity=\"error\">Unable to load tables.</Alert>\n )}\n {!dictionariesQuery.isLoading && !dictionariesQuery.isError && (\n <Autocomplete\n multiple\n disableCloseOnSelect\n options={dictionariesWithCode}\n getOptionLabel={dictionary => dictionary.name}\n isOptionEqualToValue={(option, value) => option.code === value.code}\n value={selectedDictionaries}\n onChange={(_, value) =>\n onSelectedDictionaryCodesChange(value.map(v => v.code))\n }\n renderInput={params => (\n <TextField\n {...params}\n label=\"Tables\"\n placeholder={\n selectedDictionaryCodes.length === 0 ? 'All tables' : ''\n }\n />\n )}\n />\n )}\n </Stack>\n\n <Stack spacing={1}>\n <Typography variant=\"h6\">Workspace destination</Typography>\n <Typography variant=\"subtitle1\" color=\"text.secondary\">\n Choose an existing workspace, or request a new one as part of this\n request.\n </Typography>\n {locationsQuery.isLoading && <Skeleton height={56} />}\n {locationsQuery.isError && (\n <Alert severity=\"error\">Unable to load workspace locations.</Alert>\n )}\n {!locationsQuery.isLoading && (\n <TextField\n select\n label=\"Location\"\n value={workspaceLocation ?? ''}\n onChange={e =>\n onWorkspaceChange({\n workspaceRequested,\n workspaceLocation: e.target.value || undefined,\n workspaceUuid: undefined,\n })\n }\n >\n {locations.map(location => (\n <MenuItem key={location.value} value={location.value}>\n {location.description ?? location.value}\n </MenuItem>\n ))}\n </TextField>\n )}\n {workspaceLocation && (\n <TextField\n select\n label=\"Workspace\"\n value={\n workspaceRequested ? NEW_WORKSPACE_VALUE : (workspaceUuid ?? '')\n }\n onChange={e => {\n const value = e.target.value\n onWorkspaceChange(\n value === NEW_WORKSPACE_VALUE\n ? {\n workspaceRequested: true,\n workspaceLocation,\n workspaceUuid: undefined,\n }\n : {\n workspaceRequested: false,\n workspaceLocation,\n workspaceUuid: value || undefined,\n },\n )\n }}\n >\n {workspaces.map(workspace => (\n <MenuItem key={workspace.uuid} value={workspace.uuid}>\n {workspace.name ?? workspace.uuid}\n </MenuItem>\n ))}\n <MenuItem value={NEW_WORKSPACE_VALUE}>\n Request a new workspace\n </MenuItem>\n </TextField>\n )}\n </Stack>\n\n {allowedTransferTypes.length > 1 && (\n <Stack spacing={1}>\n <Typography variant=\"h6\">Transfer type</Typography>\n <RadioGroup\n value={transferType}\n onChange={e => onTransferTypeChange(e.target.value as TransferType)}\n >\n {allowedTransferTypes.map(type => (\n <FormControlLabel\n key={type}\n value={type}\n control={<Radio />}\n label={TRANSFER_TYPE_LABELS[type]}\n />\n ))}\n </RadioGroup>\n </Stack>\n )}\n </Stack>\n )\n}\n"],"mappings":";;;;;;AAiBA,IAAM,IAAsB,6BACtB,IAAqD;CACzD,OAAO;CACP,eAAe;CACf,QAAQ;AACV;AA4BA,SAAgB,EAAmB,GAAgC;CACjE,IAAM,EACJ,gBACA,yBACA,4BACA,oCACA,uBACA,sBACA,kBACA,sBACA,iBACA,4BACE,GAEE,IAAoB,EAA0B,CAAW,GACzD,IAAiB,EAAgC,CAAW,GAC5D,IAAkB,EACtB,GACA,CACF,GAEM,IAAe,EAAkB,MAAM,SAAS,CAAC,GACjD,IAAY,EAAe,MAAM,SAAS,CAAC,GAC3C,IAAa,EAAgB,MAAM,SAAS,CAAC,GAE7C,IAAuB,EAAa,QACvC,MACC,CAAC,CAAC,EAAW,IACjB,GACM,IAAuB,EAAqB,QAAO,MACvD,EAAwB,SAAS,EAAW,IAAI,CAClD;CAEA,OACE,kBAAC,GAAD;EAAO,SAAS;YAAhB;GACE,kBAAC,GAAD;IAAO,SAAS;cAAhB;KACE,kBAAC,GAAD;MAAY,SAAQ;gBAAK;KAAkB,CAAA;KAC3C,kBAAC,GAAD;MAAY,SAAQ;MAAY,OAAM;gBAAiB;KAI3C,CAAA;KACX,EAAkB,aAAa,kBAAC,GAAD,EAAU,QAAQ,GAAK,CAAA;KACtD,EAAkB,WACjB,kBAAC,GAAD;MAAO,UAAS;gBAAQ;KAA6B,CAAA;KAEtD,CAAC,EAAkB,aAAa,CAAC,EAAkB,WAClD,kBAAC,GAAD;MACE,UAAA;MACA,sBAAA;MACA,SAAS;MACT,iBAAgB,MAAc,EAAW;MACzC,uBAAuB,GAAQ,MAAU,EAAO,SAAS,EAAM;MAC/D,OAAO;MACP,WAAW,GAAG,MACZ,EAAgC,EAAM,KAAI,MAAK,EAAE,IAAI,CAAC;MAExD,cAAa,MACX,kBAAC,GAAD;OACE,GAAI;OACJ,OAAM;OACN,aACE,EAAwB,WAAW,IAAI,eAAe;MAEzD,CAAA;KAEJ,CAAA;IAEE;;GAEP,kBAAC,GAAD;IAAO,SAAS;cAAhB;KACE,kBAAC,GAAD;MAAY,SAAQ;gBAAK;KAAiC,CAAA;KAC1D,kBAAC,GAAD;MAAY,SAAQ;MAAY,OAAM;gBAAiB;KAG3C,CAAA;KACX,EAAe,aAAa,kBAAC,GAAD,EAAU,QAAQ,GAAK,CAAA;KACnD,EAAe,WACd,kBAAC,GAAD;MAAO,UAAS;gBAAQ;KAA0C,CAAA;KAEnE,CAAC,EAAe,aACf,kBAAC,GAAD;MACE,QAAA;MACA,OAAM;MACN,OAAO,KAAqB;MAC5B,WAAU,MACR,EAAkB;OAChB;OACA,mBAAmB,EAAE,OAAO,SAAS,KAAA;OACrC,eAAe,KAAA;MACjB,CAAC;gBAGF,EAAU,KAAI,MACb,kBAAC,GAAD;OAA+B,OAAO,EAAS;iBAC5C,EAAS,eAAe,EAAS;MAC1B,GAFK,EAAS,KAEd,CACX;KACQ,CAAA;KAEZ,KACC,kBAAC,GAAD;MACE,QAAA;MACA,OAAM;MACN,OACE,IAAqB,IAAuB,KAAiB;MAE/D,WAAU,MAAK;OACb,IAAM,IAAQ,EAAE,OAAO;OACvB,EACE,MAAU,IACN;QACE,oBAAoB;QACpB;QACA,eAAe,KAAA;OACjB,IACA;QACE,oBAAoB;QACpB;QACA,eAAe,KAAS,KAAA;OAC1B,CACN;MACF;gBArBF,CAuBG,EAAW,KAAI,MACd,kBAAC,GAAD;OAA+B,OAAO,EAAU;iBAC7C,EAAU,QAAQ,EAAU;MACrB,GAFK,EAAU,IAEf,CACX,GACD,kBAAC,GAAD;OAAU,OAAO;iBAAqB;MAE5B,CAAA,CACD;;IAER;;GAEN,EAAqB,SAAS,KAC7B,kBAAC,GAAD;IAAO,SAAS;cAAhB,CACE,kBAAC,GAAD;KAAY,SAAQ;eAAK;IAAyB,CAAA,GAClD,kBAAC,GAAD;KACE,OAAO;KACP,WAAU,MAAK,EAAqB,EAAE,OAAO,KAAqB;eAEjE,EAAqB,KAAI,MACxB,kBAAC,GAAD;MAEE,OAAO;MACP,SAAS,kBAAC,GAAD,CAAQ,CAAA;MACjB,OAAO,EAAqB;KAC7B,GAJM,CAIN,CACF;IACS,CAAA,CACP;;EAEJ;;AAEX"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DarFormSectionStepProps } from './DarSectionForm';
|
|
2
|
+
/** Renders the workflow's `project` section via `fairFormToRjsf` + `JsonSchemaForm`. */
|
|
3
|
+
export declare function DarProjectStep(props: DarFormSectionStepProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=DarProjectStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarProjectStep.d.ts","sourceRoot":"","sources":["../../../../src/components/Aridhia/DarWizard/DarProjectStep.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAkB,MAAM,kBAAkB,CAAA;AAE1E,wFAAwF;AACxF,wBAAgB,cAAc,CAAC,KAAK,EAAE,uBAAuB,2CAO5D"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DarSectionForm as e } from "./DarSectionForm.js";
|
|
2
|
+
import { Stack as t, Typography as n } from "@mui/material";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/Aridhia/DarWizard/DarProjectStep.tsx
|
|
5
|
+
function a(a) {
|
|
6
|
+
return /* @__PURE__ */ i(t, {
|
|
7
|
+
spacing: 1,
|
|
8
|
+
children: [/* @__PURE__ */ r(n, {
|
|
9
|
+
variant: "h6",
|
|
10
|
+
children: "Your project"
|
|
11
|
+
}), /* @__PURE__ */ r(e, { ...a })]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { a as DarProjectStep };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=DarProjectStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarProjectStep.js","names":[],"sources":["../../../../src/components/Aridhia/DarWizard/DarProjectStep.tsx"],"sourcesContent":["import { Stack, Typography } from '@mui/material'\nimport { DarFormSectionStepProps, DarSectionForm } from './DarSectionForm'\n\n/** Renders the workflow's `project` section via `fairFormToRjsf` + `JsonSchemaForm`. */\nexport function DarProjectStep(props: DarFormSectionStepProps) {\n return (\n <Stack spacing={1}>\n <Typography variant=\"h6\">Your project</Typography>\n <DarSectionForm {...props} />\n </Stack>\n )\n}\n"],"mappings":";;;;AAIA,SAAgB,EAAe,GAAgC;CAC7D,OACE,kBAAC,GAAD;EAAO,SAAS;YAAhB,CACE,kBAAC,GAAD;GAAY,SAAQ;aAAK;EAAwB,CAAA,GACjD,kBAAC,GAAD,EAAgB,GAAI,EAAQ,CAAA,CACvB;;AAEX"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RJSFSchema, UiSchema } from '@rjsf/utils';
|
|
2
|
+
export type DarFormSectionStepProps = {
|
|
3
|
+
schema: RJSFSchema;
|
|
4
|
+
uiSchema: UiSchema;
|
|
5
|
+
formData: Record<string, unknown>;
|
|
6
|
+
onChange: (formData: Record<string, unknown>) => void;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Renders one `fairSectionToRjsf` schema/uiSchema pair via `JsonSchemaForm`, with the shared
|
|
10
|
+
* `JsonSchemaForm` customizations needed for the Aridhia DAR flow.
|
|
11
|
+
*/
|
|
12
|
+
export declare function DarSectionForm(props: DarFormSectionStepProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=DarSectionForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarSectionForm.d.ts","sourceRoot":"","sources":["../../../../src/components/Aridhia/DarWizard/DarSectionForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAKlD,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,UAAU,CAAA;IAClB,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;CACtD,CAAA;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,uBAAuB,2CAiB5D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { JsonSchemaForm as e } from "../../JsonSchemaForm/JsonSchemaForm.js";
|
|
2
|
+
import { DateWidget as t } from "../../JsonSchemaForm/widgets/DateWidget.js";
|
|
3
|
+
import n from "../FairLabelField.js";
|
|
4
|
+
import { Fragment as r, jsx as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/Aridhia/DarWizard/DarSectionForm.tsx
|
|
6
|
+
function a(a) {
|
|
7
|
+
let { schema: o, uiSchema: s, formData: c, onChange: l } = a;
|
|
8
|
+
return /* @__PURE__ */ i(e, {
|
|
9
|
+
schema: o,
|
|
10
|
+
uiSchema: s,
|
|
11
|
+
formData: c,
|
|
12
|
+
fields: { fairLabel: n },
|
|
13
|
+
widgets: { DateWidget: t },
|
|
14
|
+
formContext: { booleanWidget: "checkbox" },
|
|
15
|
+
onChange: ({ formData: e }) => l(e ?? {}),
|
|
16
|
+
showErrorList: !1,
|
|
17
|
+
children: /* @__PURE__ */ i(r, {})
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { a as DarSectionForm };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=DarSectionForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarSectionForm.js","names":[],"sources":["../../../../src/components/Aridhia/DarWizard/DarSectionForm.tsx"],"sourcesContent":["import { RJSFSchema, UiSchema } from '@rjsf/utils'\nimport { JsonSchemaForm } from '@/components/JsonSchemaForm/JsonSchemaForm'\nimport { DateWidget } from '@/components/JsonSchemaForm/widgets/DateWidget'\nimport FairLabelField from '@/components/Aridhia/FairLabelField'\n\nexport type DarFormSectionStepProps = {\n schema: RJSFSchema\n uiSchema: UiSchema\n formData: Record<string, unknown>\n onChange: (formData: Record<string, unknown>) => void\n}\n\n/**\n * Renders one `fairSectionToRjsf` schema/uiSchema pair via `JsonSchemaForm`, with the shared\n * `JsonSchemaForm` customizations needed for the Aridhia DAR flow.\n */\nexport function DarSectionForm(props: DarFormSectionStepProps) {\n const { schema, uiSchema, formData, onChange } = props\n return (\n <JsonSchemaForm<Record<string, unknown>>\n schema={schema}\n uiSchema={uiSchema}\n formData={formData}\n fields={{ fairLabel: FairLabelField }}\n widgets={{ DateWidget: DateWidget }}\n formContext={{ booleanWidget: 'checkbox' }}\n onChange={({ formData: next }) => onChange(next ?? {})}\n showErrorList={false}\n >\n {/* Suppress the built-in submit button; the wizard owns navigation. */}\n <></>\n </JsonSchemaForm>\n )\n}\n"],"mappings":";;;;;AAgBA,SAAgB,EAAe,GAAgC;CAC7D,IAAM,EAAE,WAAQ,aAAU,aAAU,gBAAa;CACjD,OACE,kBAAC,GAAD;EACU;EACE;EACA;EACV,QAAQ,EAAE,WAAW,EAAe;EACpC,SAAS,EAAc,cAAW;EAClC,aAAa,EAAE,eAAe,WAAW;EACzC,WAAW,EAAE,UAAU,QAAW,EAAS,KAAQ,CAAC,CAAC;EACrD,eAAe;YAGf,kBAAA,GAAA,CAAI,CAAA;CACU,CAAA;AAEpB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type DarSubmittedPanelProps = {
|
|
2
|
+
requestCode: string;
|
|
3
|
+
status?: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Confirmation panel shown after a successful `POST /fair/requests/`. Mirrors the guidance
|
|
7
|
+
* RDCA-DAP's own post-submission screen gives — timeline, the DUA step, and where to check
|
|
8
|
+
* status — since this wizard has no equivalent "My Requests" view of its own.
|
|
9
|
+
*/
|
|
10
|
+
export declare function DarSubmittedPanel(props: DarSubmittedPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=DarSubmittedPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarSubmittedPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Aridhia/DarWizard/DarSubmittedPanel.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAmC9D"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Alert as e, Link as t, Stack as n, Typography as r } from "@mui/material";
|
|
2
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/Aridhia/DarWizard/DarSubmittedPanel.tsx
|
|
4
|
+
var s = "https://portal.rdca.c-path.org/", c = "vtheurercrider@c-path.org";
|
|
5
|
+
function l(l) {
|
|
6
|
+
let { requestCode: u, status: d } = l;
|
|
7
|
+
return /* @__PURE__ */ o(n, {
|
|
8
|
+
spacing: 2,
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ a(e, {
|
|
11
|
+
severity: "success",
|
|
12
|
+
children: "Your data access request was submitted."
|
|
13
|
+
}),
|
|
14
|
+
/* @__PURE__ */ o(r, { children: [
|
|
15
|
+
"Request code: ",
|
|
16
|
+
/* @__PURE__ */ a("strong", { children: u }),
|
|
17
|
+
d && /* @__PURE__ */ o(i, { children: [" — status: ", d] })
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ a(r, { children: "Thank you for your request. The information you've provided will be shared with the appropriate reviewing committee. The review process is usually completed within 2-3 business weeks." }),
|
|
20
|
+
/* @__PURE__ */ o(r, { children: [
|
|
21
|
+
"If approved, the signatory listed in your submission will receive a required Data Use Agreement (DUA) for review and execution. You will be notified via email when the DUA has been signed and the remaining processing is complete, or you can check the status of your request at any time by logging in to",
|
|
22
|
+
" ",
|
|
23
|
+
/* @__PURE__ */ a(t, {
|
|
24
|
+
href: s,
|
|
25
|
+
target: "_blank",
|
|
26
|
+
rel: "noopener noreferrer",
|
|
27
|
+
children: "RDCA-DAP"
|
|
28
|
+
}),
|
|
29
|
+
" ",
|
|
30
|
+
"and clicking Access > My Requests."
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ o(r, { children: [
|
|
33
|
+
"If you have any questions about your request, please contact C-Path's administrator at",
|
|
34
|
+
" ",
|
|
35
|
+
/* @__PURE__ */ a(t, {
|
|
36
|
+
href: `mailto:${c}`,
|
|
37
|
+
children: c
|
|
38
|
+
}),
|
|
39
|
+
"."
|
|
40
|
+
] })
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { l as DarSubmittedPanel };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=DarSubmittedPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarSubmittedPanel.js","names":[],"sources":["../../../../src/components/Aridhia/DarWizard/DarSubmittedPanel.tsx"],"sourcesContent":["import { Alert, Link as MuiLink, Stack, Typography } from '@mui/material'\n\nconst RDCA_DAP_URL = 'https://portal.rdca.c-path.org/'\nconst C_PATH_ADMIN_EMAIL = 'vtheurercrider@c-path.org'\n\nexport type DarSubmittedPanelProps = {\n requestCode: string\n status?: string\n}\n\n/**\n * Confirmation panel shown after a successful `POST /fair/requests/`. Mirrors the guidance\n * RDCA-DAP's own post-submission screen gives — timeline, the DUA step, and where to check\n * status — since this wizard has no equivalent \"My Requests\" view of its own.\n */\nexport function DarSubmittedPanel(props: DarSubmittedPanelProps) {\n const { requestCode, status } = props\n return (\n <Stack spacing={2}>\n <Alert severity=\"success\">Your data access request was submitted.</Alert>\n <Typography>\n Request code: <strong>{requestCode}</strong>\n {status && <> — status: {status}</>}\n </Typography>\n <Typography>\n Thank you for your request. The information you've provided will be\n shared with the appropriate reviewing committee. The review process is\n usually completed within 2-3 business weeks.\n </Typography>\n <Typography>\n If approved, the signatory listed in your submission will receive a\n required Data Use Agreement (DUA) for review and execution. You will be\n notified via email when the DUA has been signed and the remaining\n processing is complete, or you can check the status of your request at\n any time by logging in to{' '}\n <MuiLink href={RDCA_DAP_URL} target=\"_blank\" rel=\"noopener noreferrer\">\n RDCA-DAP\n </MuiLink>{' '}\n and clicking Access > My Requests.\n </Typography>\n <Typography>\n If you have any questions about your request, please contact\n C-Path's administrator at{' '}\n <MuiLink href={`mailto:${C_PATH_ADMIN_EMAIL}`}>\n {C_PATH_ADMIN_EMAIL}\n </MuiLink>\n .\n </Typography>\n </Stack>\n )\n}\n"],"mappings":";;;AAEA,IAAM,IAAe,mCACf,IAAqB;AAY3B,SAAgB,EAAkB,GAA+B;CAC/D,IAAM,EAAE,gBAAa,cAAW;CAChC,OACE,kBAAC,GAAD;EAAO,SAAS;YAAhB;GACE,kBAAC,GAAD;IAAO,UAAS;cAAU;GAA8C,CAAA;GACxE,kBAAC,GAAD,EAAA,UAAA;IAAY;IACI,kBAAC,UAAD,EAAA,UAAS,EAAoB,CAAA;IAC1C,KAAU,kBAAA,GAAA,EAAA,UAAA,CAAE,eAAkB,CAAS,EAAA,CAAA;GAC9B,EAAA,CAAA;GACZ,kBAAC,GAAD,EAAA,UAAY,0LAIA,CAAA;GACZ,kBAAC,GAAD,EAAA,UAAA;IAAY;IAKgB;IAC1B,kBAAC,GAAD;KAAS,MAAM;KAAc,QAAO;KAAS,KAAI;eAAsB;IAE9D,CAAA;IAAE;IAAI;GAEL,EAAA,CAAA;GACZ,kBAAC,GAAD,EAAA,UAAA;IAAY;IAEqB;IAC/B,kBAAC,GAAD;KAAS,MAAM,UAAU;eACtB;IACM,CAAA;IAAC;GAEA,EAAA,CAAA;EACP;;AAEX"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DarFormSectionStepProps } from './DarSectionForm';
|
|
2
|
+
export type DarWorkspaceStepProps = DarFormSectionStepProps & {
|
|
3
|
+
/** RDCA-DAP's "Reference" field: a free-text identifier for the new workspace. Sent as
|
|
4
|
+
* `RequestPost.workspace_reference` — a sibling of the DAR submission, not part of the
|
|
5
|
+
* dynamic `workspace_request` form's answers, so it's tracked separately from `formData`. */
|
|
6
|
+
reference: string;
|
|
7
|
+
onReferenceChange: (reference: string) => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Renders the FAIR `workspace_request` form: shown only when the user asked for a new
|
|
11
|
+
* workspace instead of picking an existing one. Its answers merge into the same flat `fields`
|
|
12
|
+
* map as every other section on submit. The leading "Reference" field is not part of that
|
|
13
|
+
* dynamic form (see `DarWorkspaceStepProps.reference`).
|
|
14
|
+
*/
|
|
15
|
+
export declare function DarWorkspaceStep(props: DarWorkspaceStepProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=DarWorkspaceStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarWorkspaceStep.d.ts","sourceRoot":"","sources":["../../../../src/components/Aridhia/DarWizard/DarWorkspaceStep.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAkB,MAAM,kBAAkB,CAAA;AAE1E,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,GAAG;IAC5D;;iGAE6F;IAC7F,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CAkB5D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DarSectionForm as e } from "./DarSectionForm.js";
|
|
2
|
+
import { Stack as t, TextField as n, Typography as r } from "@mui/material";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/Aridhia/DarWizard/DarWorkspaceStep.tsx
|
|
5
|
+
function o(o) {
|
|
6
|
+
let { reference: s, onReferenceChange: c, ...l } = o;
|
|
7
|
+
return /* @__PURE__ */ a(t, {
|
|
8
|
+
spacing: 1,
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ i(r, {
|
|
11
|
+
variant: "h6",
|
|
12
|
+
children: "New workspace details"
|
|
13
|
+
}),
|
|
14
|
+
/* @__PURE__ */ i(r, {
|
|
15
|
+
variant: "subtitle1",
|
|
16
|
+
color: "text.secondary",
|
|
17
|
+
children: "Tell us about the workspace you'd like to provision in RDCA-DAP."
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ i(n, {
|
|
20
|
+
label: "Reference",
|
|
21
|
+
placeholder: "Enter a reference that you can use to identify this workspace",
|
|
22
|
+
value: s,
|
|
23
|
+
onChange: (e) => c(e.target.value),
|
|
24
|
+
required: !0
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ i(e, { ...l })
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { o as DarWorkspaceStep };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=DarWorkspaceStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarWorkspaceStep.js","names":[],"sources":["../../../../src/components/Aridhia/DarWizard/DarWorkspaceStep.tsx"],"sourcesContent":["import { Stack, TextField, Typography } from '@mui/material'\nimport { DarFormSectionStepProps, DarSectionForm } from './DarSectionForm'\n\nexport type DarWorkspaceStepProps = DarFormSectionStepProps & {\n /** RDCA-DAP's \"Reference\" field: a free-text identifier for the new workspace. Sent as\n * `RequestPost.workspace_reference` — a sibling of the DAR submission, not part of the\n * dynamic `workspace_request` form's answers, so it's tracked separately from `formData`. */\n reference: string\n onReferenceChange: (reference: string) => void\n}\n\n/**\n * Renders the FAIR `workspace_request` form: shown only when the user asked for a new\n * workspace instead of picking an existing one. Its answers merge into the same flat `fields`\n * map as every other section on submit. The leading \"Reference\" field is not part of that\n * dynamic form (see `DarWorkspaceStepProps.reference`).\n */\nexport function DarWorkspaceStep(props: DarWorkspaceStepProps) {\n const { reference, onReferenceChange, ...sectionProps } = props\n return (\n <Stack spacing={1}>\n <Typography variant=\"h6\">New workspace details</Typography>\n <Typography variant=\"subtitle1\" color=\"text.secondary\">\n Tell us about the workspace you'd like to provision in RDCA-DAP.\n </Typography>\n <TextField\n label=\"Reference\"\n placeholder=\"Enter a reference that you can use to identify this workspace\"\n value={reference}\n onChange={e => onReferenceChange(e.target.value)}\n required\n />\n <DarSectionForm {...sectionProps} />\n </Stack>\n )\n}\n"],"mappings":";;;;AAiBA,SAAgB,EAAiB,GAA8B;CAC7D,IAAM,EAAE,cAAW,sBAAmB,GAAG,MAAiB;CAC1D,OACE,kBAAC,GAAD;EAAO,SAAS;YAAhB;GACE,kBAAC,GAAD;IAAY,SAAQ;cAAK;GAAiC,CAAA;GAC1D,kBAAC,GAAD;IAAY,SAAQ;IAAY,OAAM;cAAiB;GAE3C,CAAA;GACZ,kBAAC,GAAD;IACE,OAAM;IACN,aAAY;IACZ,OAAO;IACP,WAAU,MAAK,EAAkB,EAAE,OAAO,KAAK;IAC/C,UAAA;GACD,CAAA;GACD,kBAAC,GAAD,EAAgB,GAAI,EAAe,CAAA;EAC9B;;AAEX"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TransferType } from './AridhiaDarWizard';
|
|
2
|
+
export type DarDraft = {
|
|
3
|
+
/** Client-generated, stable across the wizard session. */
|
|
4
|
+
code: string;
|
|
5
|
+
step: number;
|
|
6
|
+
/** Flat answer map across every section (About ∪ Project ∪ Workspace-when-requested). */
|
|
7
|
+
values: Record<string, unknown>;
|
|
8
|
+
selectedDictionaryCodes: string[];
|
|
9
|
+
workspaceRequested: boolean;
|
|
10
|
+
/** Required when `workspaceRequested` is true — the free-text identifier RDCA-DAP calls
|
|
11
|
+
* "Reference"; sent as `RequestPost.workspace_reference`. Not part of the dynamic
|
|
12
|
+
* `workspace_request` form fetched from `/workspaces-forms/{code}` — the FAIR API treats it
|
|
13
|
+
* as a sibling field of the overall DAR submission, not a form answer. */
|
|
14
|
+
workspaceReference?: string;
|
|
15
|
+
workspaceLocation?: string;
|
|
16
|
+
workspaceUuid?: string;
|
|
17
|
+
transferType?: TransferType;
|
|
18
|
+
termsAccepted: boolean;
|
|
19
|
+
};
|
|
20
|
+
/** Exported so tests assert against the same key the wizard writes. */
|
|
21
|
+
export declare function draftStorageKey(datasetCode: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Persists the wizard's in-progress draft to `sessionStorage`: survives refresh and
|
|
24
|
+
* accidental back-navigation, but never outlives the tab, since this form collects a name,
|
|
25
|
+
* institutional email, phone number, and street address.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useDarDraft(datasetCode: string): {
|
|
28
|
+
draft: DarDraft;
|
|
29
|
+
setDraft: (updater: DarDraft | ((previous: DarDraft) => DarDraft)) => void;
|
|
30
|
+
clearDraft: () => void;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=useDarDraft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDarDraft.d.ts","sourceRoot":"","sources":["../../../../src/components/Aridhia/DarWizard/useDarDraft.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,MAAM,QAAQ,GAAG;IACrB,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,yFAAyF;IACzF,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,uBAAuB,EAAE,MAAM,EAAE,CAAA;IACjC,kBAAkB,EAAE,OAAO,CAAA;IAC3B;;;8EAG0E;IAC1E,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,aAAa,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,uEAAuE;AACvE,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE3D;AA4BD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM;;wBAMjC,QAAQ,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,QAAQ,CAAC;;EAkB1D"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { useCallback as e, useState as t } from "react";
|
|
2
|
+
//#region src/components/Aridhia/DarWizard/useDarDraft.ts
|
|
3
|
+
function n(e) {
|
|
4
|
+
return `ampals-dar-draft:${e}`;
|
|
5
|
+
}
|
|
6
|
+
function r(e) {
|
|
7
|
+
return `ampals-${e}-${crypto.randomUUID().replaceAll("-", "").slice(0, 8)}`;
|
|
8
|
+
}
|
|
9
|
+
function i(e) {
|
|
10
|
+
let t = sessionStorage.getItem(n(e));
|
|
11
|
+
if (t) try {
|
|
12
|
+
return {
|
|
13
|
+
...JSON.parse(t),
|
|
14
|
+
step: 0
|
|
15
|
+
};
|
|
16
|
+
} catch {}
|
|
17
|
+
return {
|
|
18
|
+
code: r(e),
|
|
19
|
+
step: 0,
|
|
20
|
+
values: {},
|
|
21
|
+
selectedDictionaryCodes: [],
|
|
22
|
+
workspaceRequested: !1,
|
|
23
|
+
termsAccepted: !1
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function a(r) {
|
|
27
|
+
let [a, o] = t(() => i(r));
|
|
28
|
+
return {
|
|
29
|
+
draft: a,
|
|
30
|
+
setDraft: e((e) => {
|
|
31
|
+
o((t) => {
|
|
32
|
+
let i = typeof e == "function" ? e(t) : e;
|
|
33
|
+
return sessionStorage.setItem(n(r), JSON.stringify(i)), i;
|
|
34
|
+
});
|
|
35
|
+
}, [r]),
|
|
36
|
+
clearDraft: e(() => {
|
|
37
|
+
sessionStorage.removeItem(n(r));
|
|
38
|
+
}, [r])
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { n as draftStorageKey, a as useDarDraft };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=useDarDraft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDarDraft.js","names":[],"sources":["../../../../src/components/Aridhia/DarWizard/useDarDraft.ts"],"sourcesContent":["import { useCallback, useState } from 'react'\nimport { TransferType } from './AridhiaDarWizard'\n\nexport type DarDraft = {\n /** Client-generated, stable across the wizard session. */\n code: string\n step: number\n /** Flat answer map across every section (About ∪ Project ∪ Workspace-when-requested). */\n values: Record<string, unknown>\n selectedDictionaryCodes: string[]\n workspaceRequested: boolean\n /** Required when `workspaceRequested` is true — the free-text identifier RDCA-DAP calls\n * \"Reference\"; sent as `RequestPost.workspace_reference`. Not part of the dynamic\n * `workspace_request` form fetched from `/workspaces-forms/{code}` — the FAIR API treats it\n * as a sibling field of the overall DAR submission, not a form answer. */\n workspaceReference?: string\n workspaceLocation?: string\n workspaceUuid?: string\n transferType?: TransferType\n termsAccepted: boolean\n}\n\n/** Exported so tests assert against the same key the wizard writes. */\nexport function draftStorageKey(datasetCode: string): string {\n return `ampals-dar-draft:${datasetCode}`\n}\n\n/** `ampals-{datasetCode}-{8 lowercase hex}` — the only idempotency lever FAIR offers. */\nfunction generateRequestCode(datasetCode: string): string {\n const hex = crypto.randomUUID().replaceAll('-', '').slice(0, 8)\n return `ampals-${datasetCode}-${hex}`\n}\n\nfunction loadOrCreateDraft(datasetCode: string): DarDraft {\n const stored = sessionStorage.getItem(draftStorageKey(datasetCode))\n if (stored) {\n try {\n // Resuming always re-enters at the first step.\n return { ...(JSON.parse(stored) as DarDraft), step: 0 }\n } catch {\n // Corrupt/old-shape draft — fall through to a fresh one rather than crashing the wizard.\n }\n }\n return {\n code: generateRequestCode(datasetCode),\n step: 0,\n values: {},\n selectedDictionaryCodes: [],\n workspaceRequested: false,\n termsAccepted: false,\n }\n}\n\n/**\n * Persists the wizard's in-progress draft to `sessionStorage`: survives refresh and\n * accidental back-navigation, but never outlives the tab, since this form collects a name,\n * institutional email, phone number, and street address.\n */\nexport function useDarDraft(datasetCode: string) {\n const [draft, setDraftState] = useState<DarDraft>(() =>\n loadOrCreateDraft(datasetCode),\n )\n\n const setDraft = useCallback(\n (updater: DarDraft | ((previous: DarDraft) => DarDraft)) => {\n setDraftState(previous => {\n const next = typeof updater === 'function' ? updater(previous) : updater\n sessionStorage.setItem(\n draftStorageKey(datasetCode),\n JSON.stringify(next),\n )\n return next\n })\n },\n [datasetCode],\n )\n\n const clearDraft = useCallback(() => {\n sessionStorage.removeItem(draftStorageKey(datasetCode))\n }, [datasetCode])\n\n return { draft, setDraft, clearDraft }\n}\n"],"mappings":";;AAuBA,SAAgB,EAAgB,GAA6B;CAC3D,OAAO,oBAAoB;AAC7B;AAGA,SAAS,EAAoB,GAA6B;CAExD,OAAO,UAAU,EAAY,GADjB,OAAO,WAAW,EAAE,WAAW,KAAK,EAAE,EAAE,MAAM,GAAG,CAC7B;AAClC;AAEA,SAAS,EAAkB,GAA+B;CACxD,IAAM,IAAS,eAAe,QAAQ,EAAgB,CAAW,CAAC;CAClE,IAAI,GACF,IAAI;EAEF,OAAO;GAAE,GAAI,KAAK,MAAM,CAAM;GAAgB,MAAM;EAAE;CACxD,QAAQ,CAER;CAEF,OAAO;EACL,MAAM,EAAoB,CAAW;EACrC,MAAM;EACN,QAAQ,CAAC;EACT,yBAAyB,CAAC;EAC1B,oBAAoB;EACpB,eAAe;CACjB;AACF;AAOA,SAAgB,EAAY,GAAqB;CAC/C,IAAM,CAAC,GAAO,KAAiB,QAC7B,EAAkB,CAAW,CAC/B;CAoBA,OAAO;EAAE;EAAO,UAlBC,GACd,MAA2D;GAC1D,GAAc,MAAY;IACxB,IAAM,IAAO,OAAO,KAAY,aAAa,EAAQ,CAAQ,IAAI;IAKjE,OAJA,eAAe,QACb,EAAgB,CAAW,GAC3B,KAAK,UAAU,CAAI,CACrB,GACO;GACT,CAAC;EACH,GACA,CAAC,CAAW,CAOE;EAAU,YAJP,QAAkB;GACnC,eAAe,WAAW,EAAgB,CAAW,CAAC;EACxD,GAAG,CAAC,CAAW,CAEW;CAAW;AACvC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
|
+
/**
|
|
3
|
+
* Renders a FAIR `label` field (a section subheading) as an MUI subheading.
|
|
4
|
+
* Registered on `JsonSchemaForm` via `fields={{ fairLabel: FairLabelField }}` and selected per
|
|
5
|
+
* field with `ui:field: 'fairLabel'` (see `fairFormToRjsf.ts`).
|
|
6
|
+
*/
|
|
7
|
+
export default function FairLabelField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: FieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=FairLabelField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FairLabelField.d.ts","sourceRoot":"","sources":["../../../src/components/Aridhia/FairLabelField.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,eAAe,EACf,UAAU,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAA;AAGpB;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,2CAE3B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Typography as e } from "@mui/material";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/Aridhia/FairLabelField.tsx
|
|
4
|
+
function n(n) {
|
|
5
|
+
return /* @__PURE__ */ t(e, {
|
|
6
|
+
variant: "subtitle1",
|
|
7
|
+
children: n.schema.title
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as default };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=FairLabelField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FairLabelField.js","names":[],"sources":["../../../src/components/Aridhia/FairLabelField.tsx"],"sourcesContent":["import {\n FieldProps,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n} from '@rjsf/utils'\nimport { Typography } from '@mui/material'\n\n/**\n * Renders a FAIR `label` field (a section subheading) as an MUI subheading.\n * Registered on `JsonSchemaForm` via `fields={{ fairLabel: FairLabelField }}` and selected per\n * field with `ui:field: 'fairLabel'` (see `fairFormToRjsf.ts`).\n */\nexport default function FairLabelField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldProps<T, S, F>) {\n return <Typography variant=\"subtitle1\">{props.schema.title}</Typography>\n}\n"],"mappings":";;;AAaA,SAAwB,EAItB,GAA4B;CAC5B,OAAO,kBAAC,GAAD;EAAY,SAAQ;YAAa,EAAM,OAAO;CAAkB,CAAA;AACzE"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RestrictionUiType } from '../HasAccess/AccessIcon';
|
|
2
|
-
import {
|
|
2
|
+
import { RequestListItem } from '@sage-bionetworks/aridhia-client/generated/models';
|
|
3
3
|
/**
|
|
4
4
|
* Maps an Aridhia request status to the appropriate RestrictionUiType for display.
|
|
5
5
|
*
|
|
6
6
|
* @param request - The Aridhia request object, or undefined if no request exists
|
|
7
7
|
* @returns The appropriate RestrictionUiType based on the request status
|
|
8
8
|
*/
|
|
9
|
-
export declare function getRestrictionUiTypeFromAridhiaRequest(request:
|
|
9
|
+
export declare function getRestrictionUiTypeFromAridhiaRequest(request: RequestListItem | undefined): RestrictionUiType;
|
|
10
10
|
/**
|
|
11
11
|
* Finds the Aridhia request for a specific dataset from a list of requests.
|
|
12
12
|
* If multiple requests match, returns the most recently updated one.
|
|
@@ -15,5 +15,5 @@ export declare function getRestrictionUiTypeFromAridhiaRequest(request: Request
|
|
|
15
15
|
* @param datasetCode - The dataset code to search for
|
|
16
16
|
* @returns The most recently updated request that contains the specified dataset, or undefined if not found
|
|
17
17
|
*/
|
|
18
|
-
export declare function findRequestForDataset(requests:
|
|
18
|
+
export declare function findRequestForDataset(requests: RequestListItem[], datasetCode: string): RequestListItem | undefined;
|
|
19
19
|
//# sourceMappingURL=aridhiaAccessStatusUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aridhiaAccessStatusUtils.d.ts","sourceRoot":"","sources":["../../../src/components/Aridhia/aridhiaAccessStatusUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"aridhiaAccessStatusUtils.d.ts","sourceRoot":"","sources":["../../../src/components/Aridhia/aridhiaAccessStatusUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAA;AAEnF;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,eAAe,GAAG,SAAS,GACnC,iBAAiB,CAkBnB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,eAAe,EAAE,EAC3B,WAAW,EAAE,MAAM,GAClB,eAAe,GAAG,SAAS,CAmB7B"}
|
|
@@ -11,7 +11,7 @@ function t(t) {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
function n(e, t) {
|
|
14
|
-
let n = e.filter((e) => e.datasets?.
|
|
14
|
+
let n = e.filter((e) => e.datasets?.code === t);
|
|
15
15
|
if (n.length !== 0) return n.reduce((e, t) => e.updated_at ? t.updated_at && t.updated_at > e.updated_at ? t : e : t);
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aridhiaAccessStatusUtils.js","names":[],"sources":["../../../src/components/Aridhia/aridhiaAccessStatusUtils.ts"],"sourcesContent":["import { RestrictionUiType } from '../HasAccess/AccessIcon'\nimport {
|
|
1
|
+
{"version":3,"file":"aridhiaAccessStatusUtils.js","names":[],"sources":["../../../src/components/Aridhia/aridhiaAccessStatusUtils.ts"],"sourcesContent":["import { RestrictionUiType } from '../HasAccess/AccessIcon'\nimport { RequestListItem } from '@sage-bionetworks/aridhia-client/generated/models'\n\n/**\n * Maps an Aridhia request status to the appropriate RestrictionUiType for display.\n *\n * @param request - The Aridhia request object, or undefined if no request exists\n * @returns The appropriate RestrictionUiType based on the request status\n */\nexport function getRestrictionUiTypeFromAridhiaRequest(\n request: RequestListItem | undefined,\n): RestrictionUiType {\n if (!request) {\n // No request found - user needs to request access\n return RestrictionUiType.AccessBlockedByRestriction\n }\n\n switch (request.status) {\n case 'approved':\n return RestrictionUiType.Accessible\n case 'pending':\n return RestrictionUiType.AccessBlockedByRestrictionWithPendingRDCADAPRequest\n case 'denied':\n return RestrictionUiType.AccessBlockedByRestrictionWithRejectedRDCADAPRequest\n case 'error':\n return RestrictionUiType.AccessBlockedByACL\n default:\n return RestrictionUiType.AccessBlockedByRestriction\n }\n}\n\n/**\n * Finds the Aridhia request for a specific dataset from a list of requests.\n * If multiple requests match, returns the most recently updated one.\n *\n * @param requests - Array of Aridhia requests\n * @param datasetCode - The dataset code to search for\n * @returns The most recently updated request that contains the specified dataset, or undefined if not found\n */\nexport function findRequestForDataset(\n requests: RequestListItem[],\n datasetCode: string,\n): RequestListItem | undefined {\n const matchingRequests = requests.filter(\n request => request.datasets?.code === datasetCode,\n )\n\n if (matchingRequests.length === 0) {\n return undefined\n }\n\n // Return the most recently updated request\n return matchingRequests.reduce((mostRecent, current) => {\n if (!mostRecent.updated_at) {\n return current\n }\n if (!current.updated_at) {\n return mostRecent\n }\n return current.updated_at > mostRecent.updated_at ? current : mostRecent\n })\n}\n"],"mappings":";;AASA,SAAgB,EACd,GACmB;CACnB,IAAI,CAAC,GAEH,OAAO,EAAkB;CAG3B,QAAQ,EAAQ,QAAhB;EACE,KAAK,YACH,OAAO,EAAkB;EAC3B,KAAK,WACH,OAAO,EAAkB;EAC3B,KAAK,UACH,OAAO,EAAkB;EAC3B,KAAK,SACH,OAAO,EAAkB;EAC3B,SACE,OAAO,EAAkB;CAC7B;AACF;AAUA,SAAgB,EACd,GACA,GAC6B;CAC7B,IAAM,IAAmB,EAAS,QAChC,MAAW,EAAQ,UAAU,SAAS,CACxC;CAEI,MAAiB,WAAW,GAKhC,OAAO,EAAiB,QAAQ,GAAY,MACrC,EAAW,aAGX,EAAQ,cAGN,EAAQ,aAAa,EAAW,aAAa,IAAU,IALrD,CAMV;AACH"}
|