@gen-epix/ui-client-casedb 4.0.0
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/LICENSE +287 -0
- package/README.md +101 -0
- package/dist/@types/mui.d.ts +12 -0
- package/dist/@types/ui-casedb.d.ts +3 -0
- package/dist/@types/vite-env.d.ts +3 -0
- package/dist/_chunks/AddCasesToEventDialog.js +246 -0
- package/dist/_chunks/AddCasesToEventDialog.js.map +1 -0
- package/dist/_chunks/CaseContentForm.js +43 -0
- package/dist/_chunks/CaseContentForm.js.map +1 -0
- package/dist/_chunks/CaseDbDownloadUtil.js +2307 -0
- package/dist/_chunks/CaseDbDownloadUtil.js.map +1 -0
- package/dist/_chunks/CaseInfoDialog.js +509 -0
- package/dist/_chunks/CaseInfoDialog.js.map +1 -0
- package/dist/_chunks/CaseSetInfoDialog.js +479 -0
- package/dist/_chunks/CaseSetInfoDialog.js.map +1 -0
- package/dist/_chunks/CaseTypeInfoDialog.js +470 -0
- package/dist/_chunks/CaseTypeInfoDialog.js.map +1 -0
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js +123 -0
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js.map +1 -0
- package/dist/_chunks/CollectionIcon.js +18 -0
- package/dist/_chunks/CollectionIcon.js.map +1 -0
- package/dist/_chunks/CompletCaseTypeLoader.js +53 -0
- package/dist/_chunks/CompletCaseTypeLoader.js.map +1 -0
- package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js +18 -0
- package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js.map +1 -0
- package/dist/_chunks/CustomTabPanel.js +21 -0
- package/dist/_chunks/CustomTabPanel.js.map +1 -0
- package/dist/_chunks/Dashboard.js +2582 -0
- package/dist/_chunks/Dashboard.js.map +1 -0
- package/dist/_chunks/DashboardStoreLoader.js +67 -0
- package/dist/_chunks/DashboardStoreLoader.js.map +1 -0
- package/dist/_chunks/DataCollectionAccessInfo.js +66 -0
- package/dist/_chunks/DataCollectionAccessInfo.js.map +1 -0
- package/dist/_chunks/EpiCurveUtil.js +378 -0
- package/dist/_chunks/EpiCurveUtil.js.map +1 -0
- package/dist/_chunks/EpiCurveWidget.js +570 -0
- package/dist/_chunks/EpiCurveWidget.js.map +1 -0
- package/dist/_chunks/FilterUtil.js +1537 -0
- package/dist/_chunks/FilterUtil.js.map +1 -0
- package/dist/_chunks/FindSimilarCasesDialog.js +439 -0
- package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -0
- package/dist/_chunks/FindSimilarCasesUtil.js +100 -0
- package/dist/_chunks/FindSimilarCasesUtil.js.map +1 -0
- package/dist/_chunks/HomePageTrends.js +276 -0
- package/dist/_chunks/HomePageTrends.js.map +1 -0
- package/dist/_chunks/LegendaItem.js +325 -0
- package/dist/_chunks/LegendaItem.js.map +1 -0
- package/dist/_chunks/LineListWidget.js +702 -0
- package/dist/_chunks/LineListWidget.js.map +1 -0
- package/dist/_chunks/PanelSeparator.js +1676 -0
- package/dist/_chunks/PanelSeparator.js.map +1 -0
- package/dist/_chunks/Upload.js +1506 -0
- package/dist/_chunks/Upload.js.map +1 -0
- package/dist/_chunks/UploadUtil.js +1976 -0
- package/dist/_chunks/UploadUtil.js.map +1 -0
- package/dist/_chunks/UserRightsDialog.js +152 -0
- package/dist/_chunks/UserRightsDialog.js.map +1 -0
- package/dist/_chunks/_MapCache.js +274 -0
- package/dist/_chunks/_MapCache.js.map +1 -0
- package/dist/_chunks/_Set.js +9 -0
- package/dist/_chunks/_Set.js.map +1 -0
- package/dist/_chunks/_arrayIncludesWith.js +42 -0
- package/dist/_chunks/_arrayIncludesWith.js.map +1 -0
- package/dist/_chunks/_baseClone.js +262 -0
- package/dist/_chunks/_baseClone.js.map +1 -0
- package/dist/_chunks/_baseFlatten.js +26 -0
- package/dist/_chunks/_baseFlatten.js.map +1 -0
- package/dist/_chunks/_baseGet.js +246 -0
- package/dist/_chunks/_baseGet.js.map +1 -0
- package/dist/_chunks/_baseIteratee.js +246 -0
- package/dist/_chunks/_baseIteratee.js.map +1 -0
- package/dist/_chunks/_cacheHas.js +29 -0
- package/dist/_chunks/_cacheHas.js.map +1 -0
- package/dist/_chunks/_defineProperty.js +15 -0
- package/dist/_chunks/_defineProperty.js.map +1 -0
- package/dist/_chunks/_setToArray.js +15 -0
- package/dist/_chunks/_setToArray.js.map +1 -0
- package/dist/_chunks/_setToString.js +64 -0
- package/dist/_chunks/_setToString.js.map +1 -0
- package/dist/_chunks/chunk-KS7C4IRE.js +1327 -0
- package/dist/_chunks/chunk-KS7C4IRE.js.map +1 -0
- package/dist/_chunks/cloneDeep.js +119 -0
- package/dist/_chunks/cloneDeep.js.map +1 -0
- package/dist/_chunks/dashboardStore.js +743 -0
- package/dist/_chunks/dashboardStore.js.map +1 -0
- package/dist/_chunks/eachYearOfInterval.js +104 -0
- package/dist/_chunks/eachYearOfInterval.js.map +1 -0
- package/dist/_chunks/esm.js +46335 -0
- package/dist/_chunks/esm.js.map +1 -0
- package/dist/_chunks/format.js +504 -0
- package/dist/_chunks/format.js.map +1 -0
- package/dist/_chunks/hasIn.js +34 -0
- package/dist/_chunks/hasIn.js.map +1 -0
- package/dist/_chunks/index.esm.js +1342 -0
- package/dist/_chunks/index.esm.js.map +1 -0
- package/dist/_chunks/index.module.js +72 -0
- package/dist/_chunks/index.module.js.map +1 -0
- package/dist/_chunks/intersection.js +58 -0
- package/dist/_chunks/intersection.js.map +1 -0
- package/dist/_chunks/isArguments.js +27 -0
- package/dist/_chunks/isArguments.js.map +1 -0
- package/dist/_chunks/isArray.js +9 -0
- package/dist/_chunks/isArray.js.map +1 -0
- package/dist/_chunks/isArrayLike.js +30 -0
- package/dist/_chunks/isArrayLike.js.map +1 -0
- package/dist/_chunks/isObjectLike.js +18 -0
- package/dist/_chunks/isObjectLike.js.map +1 -0
- package/dist/_chunks/isValid.js +14 -0
- package/dist/_chunks/isValid.js.map +1 -0
- package/dist/_chunks/last.js +13 -0
- package/dist/_chunks/last.js.map +1 -0
- package/dist/_chunks/noop.js +10 -0
- package/dist/_chunks/noop.js.map +1 -0
- package/dist/_chunks/omit.js +81 -0
- package/dist/_chunks/omit.js.map +1 -0
- package/dist/_chunks/parseISO.js +117 -0
- package/dist/_chunks/parseISO.js.map +1 -0
- package/dist/_chunks/protectedTokens.js +630 -0
- package/dist/_chunks/protectedTokens.js.map +1 -0
- package/dist/_chunks/react.js +11 -0
- package/dist/_chunks/react.js.map +1 -0
- package/dist/_chunks/round.js +64 -0
- package/dist/_chunks/round.js.map +1 -0
- package/dist/_chunks/shallow.js +31 -0
- package/dist/_chunks/shallow.js.map +1 -0
- package/dist/_chunks/sync.js +3796 -0
- package/dist/_chunks/sync.js.map +1 -0
- package/dist/_chunks/toDate.js +18 -0
- package/dist/_chunks/toDate.js.map +1 -0
- package/dist/_chunks/toString.js +31 -0
- package/dist/_chunks/toString.js.map +1 -0
- package/dist/_chunks/useUnit.js +30 -0
- package/dist/_chunks/useUnit.js.map +1 -0
- package/dist/_chunks/userProfileStoreContext.js +7 -0
- package/dist/_chunks/userProfileStoreContext.js.map +1 -0
- package/dist/_chunks/vanilla.js +20 -0
- package/dist/_chunks/vanilla.js.map +1 -0
- package/dist/_chunks/yup.js +73 -0
- package/dist/_chunks/yup.js.map +1 -0
- package/dist/classes/errors/UploadError.d.ts +5 -0
- package/dist/classes/errors/index.d.ts +1 -0
- package/dist/classes/errors/index.js +11 -0
- package/dist/classes/errors/index.js.map +1 -0
- package/dist/classes/filters/SelectionFilter.d.ts +11 -0
- package/dist/classes/filters/TreeFilter.d.ts +11 -0
- package/dist/classes/services/DataService/DataService.d.ts +13 -0
- package/dist/classes/services/DataService/index.d.ts +1 -0
- package/dist/classes/services/DataService/index.js +83 -0
- package/dist/classes/services/DataService/index.js.map +1 -0
- package/dist/classes/services/EventBusService/EventBusService.d.ts +49 -0
- package/dist/classes/services/EventBusService/index.d.ts +1 -0
- package/dist/classes/services/EventBusService/index.js +16 -0
- package/dist/classes/services/EventBusService/index.js.map +1 -0
- package/dist/classes/services/LineListService/LineListCaseSetMembersService/LineListCaseSetMembersService.d.ts +9 -0
- package/dist/classes/services/LineListService/LineListCaseSetMembersService/index.d.ts +1 -0
- package/dist/classes/services/LineListService/LineListCaseSetMembersService/index.js +27 -0
- package/dist/classes/services/LineListService/LineListCaseSetMembersService/index.js.map +1 -0
- package/dist/classes/services/LineListService/LineListIsOwnCaseService/LineListIsOwnCaseService.d.ts +9 -0
- package/dist/classes/services/LineListService/LineListIsOwnCaseService/index.d.ts +1 -0
- package/dist/classes/services/LineListService/LineListIsOwnCaseService/index.js +30 -0
- package/dist/classes/services/LineListService/LineListIsOwnCaseService/index.js.map +1 -0
- package/dist/classes/services/LineListService/LineListServiceAbstract/LineListServiceAbstract.d.ts +11 -0
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.d.ts +1 -0
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.js +55 -0
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.js.map +1 -0
- package/dist/components/app/CaseDbApp/CaseDbApp.d.ts +1 -0
- package/dist/components/app/CaseDbApp/index.d.ts +1 -0
- package/dist/components/app/CaseDbApp/index.js +14 -0
- package/dist/components/app/CaseDbApp/index.js.map +1 -0
- package/dist/components/form/fields/ArrangementEditor/ArrangementEditor.d.ts +17 -0
- package/dist/components/form/fields/ArrangementEditor/index.d.ts +1 -0
- package/dist/components/form/fields/ArrangementEditor/index.js +130 -0
- package/dist/components/form/fields/ArrangementEditor/index.js.map +1 -0
- package/dist/components/ui/AddCasesToEventDialog/AddCasesToEventDialog.d.ts +10 -0
- package/dist/components/ui/AddCasesToEventDialog/AddCasesToEventDialogSuccessNotificationMessage.d.ts +6 -0
- package/dist/components/ui/AddCasesToEventDialog/index.d.ts +1 -0
- package/dist/components/ui/AddCasesToEventDialog/index.js +2 -0
- package/dist/components/ui/CaseContentForm/CaseContentForm.d.ts +10 -0
- package/dist/components/ui/CaseContentForm/index.d.ts +1 -0
- package/dist/components/ui/CaseContentForm/index.js +2 -0
- package/dist/components/ui/CaseContentFormDialog/CaseContentFormDialog.d.ts +9 -0
- package/dist/components/ui/CaseContentFormDialog/index.d.ts +1 -0
- package/dist/components/ui/CaseContentFormDialog/index.js +57 -0
- package/dist/components/ui/CaseContentFormDialog/index.js.map +1 -0
- package/dist/components/ui/CaseInfoDialog/CaseCaseSetInfo.d.ts +6 -0
- package/dist/components/ui/CaseInfoDialog/CaseContent.d.ts +6 -0
- package/dist/components/ui/CaseInfoDialog/CaseInfoDialog.d.ts +15 -0
- package/dist/components/ui/CaseInfoDialog/CaseInfoForm.d.ts +10 -0
- package/dist/components/ui/CaseInfoDialog/CaseSharingForm.d.ts +9 -0
- package/dist/components/ui/CaseInfoDialog/CaseSharingInfo.d.ts +3 -0
- package/dist/components/ui/CaseInfoDialog/ReadOnlyCaseContent.d.ts +6 -0
- package/dist/components/ui/CaseInfoDialog/index.d.ts +1 -0
- package/dist/components/ui/CaseInfoDialog/index.js +2 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetContent.d.ts +6 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetDescription.d.ts +6 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetForm.d.ts +8 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetInfoDialog.d.ts +10 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetSharingForm.d.ts +10 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetSharingInfo.d.ts +3 -0
- package/dist/components/ui/CaseSetInfoDialog/index.d.ts +1 -0
- package/dist/components/ui/CaseSetInfoDialog/index.js +2 -0
- package/dist/components/ui/CaseSummary/CaseSummary.d.ts +5 -0
- package/dist/components/ui/CaseSummary/index.d.ts +1 -0
- package/dist/components/ui/CaseSummary/index.js +92 -0
- package/dist/components/ui/CaseSummary/index.js.map +1 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoAccessRights.d.ts +5 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoColAccessRights.d.ts +4 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoData.d.ts +5 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialog.d.ts +7 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogContent.d.ts +3 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogWithLoader.d.ts +8 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoRegions.d.ts +5 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoTrees.d.ts +5 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoValues.d.ts +5 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoVariableDetails.d.ts +6 -0
- package/dist/components/ui/CaseTypeInfoDialog/index.d.ts +10 -0
- package/dist/components/ui/CaseTypeInfoDialog/index.js +2 -0
- package/dist/components/ui/CasesAlreadyInCaseSetWarning/CasesAlreadyInCaseSetWarning.d.ts +5 -0
- package/dist/components/ui/CasesAlreadyInCaseSetWarning/CasesAlreadyInCaseSetWarningCaseSetLink.d.ts +5 -0
- package/dist/components/ui/CasesAlreadyInCaseSetWarning/index.d.ts +1 -0
- package/dist/components/ui/CasesAlreadyInCaseSetWarning/index.js +2 -0
- package/dist/components/ui/CompletCaseTypeLoader/CompletCaseTypeLoader.d.ts +7 -0
- package/dist/components/ui/CompletCaseTypeLoader/index.d.ts +1 -0
- package/dist/components/ui/CompletCaseTypeLoader/index.js +2 -0
- package/dist/components/ui/CompletCaseTypeLoader/withEpiCompleteCaseTypeLoader.d.ts +4 -0
- package/dist/components/ui/ContextMenu/ContextMenu.d.ts +20 -0
- package/dist/components/ui/ContextMenu/index.d.ts +1 -0
- package/dist/components/ui/ContextMenu/index.js +96 -0
- package/dist/components/ui/ContextMenu/index.js.map +1 -0
- package/dist/components/ui/CreateEventDialog/CreateEventDialog.d.ts +10 -0
- package/dist/components/ui/CreateEventDialog/CreateEventDialogSuccessNotificationMessage.d.ts +6 -0
- package/dist/components/ui/CreateEventDialog/index.d.ts +1 -0
- package/dist/components/ui/CreateEventDialog/index.js +278 -0
- package/dist/components/ui/CreateEventDialog/index.js.map +1 -0
- package/dist/components/ui/CustomTabPanel/CustomTabPanel.d.ts +6 -0
- package/dist/components/ui/CustomTabPanel/index.d.ts +1 -0
- package/dist/components/ui/CustomTabPanel/index.js +2 -0
- package/dist/components/ui/Dashboard/Dashboard.d.ts +1 -0
- package/dist/components/ui/Dashboard/DashboardContent.d.ts +6 -0
- package/dist/components/ui/Dashboard/DashboardDownloadSidebarItem.d.ts +6 -0
- package/dist/components/ui/Dashboard/DashboardGeneralSettingsForm.d.ts +1 -0
- package/dist/components/ui/Dashboard/DashboardLayoutRenderer.d.ts +9 -0
- package/dist/components/ui/Dashboard/DashboardLayoutSettingsForm.d.ts +4 -0
- package/dist/components/ui/Dashboard/DashboardSearch.d.ts +1 -0
- package/dist/components/ui/Dashboard/DashboardSearchSettings.d.ts +10 -0
- package/dist/components/ui/Dashboard/DashboardSettingsSidebarItem.d.ts +8 -0
- package/dist/components/ui/Dashboard/DashboardWidget.d.ts +12 -0
- package/dist/components/ui/Dashboard/DashboardWidgetPlaceHolder.d.ts +1 -0
- package/dist/components/ui/Dashboard/DashboardWidgetSettingsForm.d.ts +4 -0
- package/dist/components/ui/Dashboard/DashboardZoneContext.d.ts +1 -0
- package/dist/components/ui/Dashboard/context/DashboardContext.d.ts +12 -0
- package/dist/components/ui/Dashboard/context/DashboardContextProvider.d.ts +6 -0
- package/dist/components/ui/Dashboard/index.d.ts +2 -0
- package/dist/components/ui/Dashboard/index.js +2 -0
- package/dist/components/ui/DashboardEditCases/DashboardEditCases.d.ts +6 -0
- package/dist/components/ui/DashboardEditCases/index.d.ts +1 -0
- package/dist/components/ui/DashboardEditCases/index.js +70 -0
- package/dist/components/ui/DashboardEditCases/index.js.map +1 -0
- package/dist/components/ui/DashboardStoreLoader/DashboardStoreLoader.d.ts +7 -0
- package/dist/components/ui/DashboardStoreLoader/DashboardStoreLoaderContent.d.ts +8 -0
- package/dist/components/ui/DashboardStoreLoader/index.d.ts +2 -0
- package/dist/components/ui/DashboardStoreLoader/index.js +2 -0
- package/dist/components/ui/DashboardStoreLoader/withEpiDashboardStore.d.ts +4 -0
- package/dist/components/ui/DataCollectionAccessInfo/DataCollectionAccessInfo.d.ts +1 -0
- package/dist/components/ui/DataCollectionAccessInfo/index.d.ts +1 -0
- package/dist/components/ui/DataCollectionAccessInfo/index.js +2 -0
- package/dist/components/ui/EpiCurveWidget/EpiCurveBarChart.d.ts +21 -0
- package/dist/components/ui/EpiCurveWidget/EpiCurveStackedAreaChart.d.ts +22 -0
- package/dist/components/ui/EpiCurveWidget/EpiCurveWidget.d.ts +2 -0
- package/dist/components/ui/EpiCurveWidget/index.d.ts +1 -0
- package/dist/components/ui/EpiCurveWidget/index.js +2 -0
- package/dist/components/ui/FileSelector/FileSelector.d.ts +7 -0
- package/dist/components/ui/FileSelector/index.d.ts +1 -0
- package/dist/components/ui/FileSelector/index.js +206 -0
- package/dist/components/ui/FileSelector/index.js.map +1 -0
- package/dist/components/ui/FindSimilarCasesDialog/FindSimilarCasesDialog.d.ts +11 -0
- package/dist/components/ui/FindSimilarCasesDialog/FindSimilarCasesDialogDateRangeChart.d.ts +11 -0
- package/dist/components/ui/FindSimilarCasesDialog/index.d.ts +1 -0
- package/dist/components/ui/FindSimilarCasesDialog/index.js +2 -0
- package/dist/components/ui/Grouping/Grouping.d.ts +1 -0
- package/dist/components/ui/Grouping/index.d.ts +1 -0
- package/dist/components/ui/Grouping/index.js +102 -0
- package/dist/components/ui/Grouping/index.js.map +1 -0
- package/dist/components/ui/HistogramWidget/HistogramWidget.d.ts +1 -0
- package/dist/components/ui/HistogramWidget/index.d.ts +1 -0
- package/dist/components/ui/HistogramWidget/index.js +333 -0
- package/dist/components/ui/HistogramWidget/index.js.map +1 -0
- package/dist/components/ui/HomePageTrends/HomePageTrendCard.d.ts +9 -0
- package/dist/components/ui/HomePageTrends/HomePageTrends.d.ts +4 -0
- package/dist/components/ui/HomePageTrends/index.d.ts +1 -0
- package/dist/components/ui/HomePageTrends/index.js +2 -0
- package/dist/components/ui/LegendaItem/LegendaItem.d.ts +10 -0
- package/dist/components/ui/LegendaItem/index.d.ts +1 -0
- package/dist/components/ui/LegendaItem/index.js +2 -0
- package/dist/components/ui/LineListWidget/LineListWidget.d.ts +1 -0
- package/dist/components/ui/LineListWidget/LineListWidgetIsInEventCell.d.ts +6 -0
- package/dist/components/ui/LineListWidget/LineListWidgetIsOwnCaseCell.d.ts +6 -0
- package/dist/components/ui/LineListWidget/LineListWidgetPrimaryMenu.d.ts +5 -0
- package/dist/components/ui/LineListWidget/LineListWidgetSecondaryMenu.d.ts +1 -0
- package/dist/components/ui/LineListWidget/LineListWidgetTitle.d.ts +1 -0
- package/dist/components/ui/LineListWidget/index.d.ts +1 -0
- package/dist/components/ui/LineListWidget/index.js +2 -0
- package/dist/components/ui/LineListWidget/useEpiLineListWidgetEmitDownloadOptions.d.ts +1 -0
- package/dist/components/ui/MapWidget/MapWidget.d.ts +1 -0
- package/dist/components/ui/MapWidget/index.d.ts +1 -0
- package/dist/components/ui/MapWidget/index.js +302 -0
- package/dist/components/ui/MapWidget/index.js.map +1 -0
- package/dist/components/ui/PanelSeparator/PanelSeparatorHorizontal.d.ts +2 -0
- package/dist/components/ui/PanelSeparator/PanelSeparatorVertical.d.ts +2 -0
- package/dist/components/ui/PanelSeparator/index.d.ts +2 -0
- package/dist/components/ui/PanelSeparator/index.js +2 -0
- package/dist/components/ui/RemoveCasesFromEventDialog/RemoveCasesFromEventDialog.d.ts +10 -0
- package/dist/components/ui/RemoveCasesFromEventDialog/index.d.ts +1 -0
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js +111 -0
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js.map +1 -0
- package/dist/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.d.ts +9 -0
- package/dist/components/ui/SequenceDownloadDialog/SequenceDownloadDialog.d.ts +10 -0
- package/dist/components/ui/SequenceDownloadDialog/index.d.ts +1 -0
- package/dist/components/ui/SequenceDownloadDialog/index.js +89 -0
- package/dist/components/ui/SequenceDownloadDialog/index.js.map +1 -0
- package/dist/components/ui/TreeDescription/TreeDescription.d.ts +5 -0
- package/dist/components/ui/TreeDescription/index.d.ts +1 -0
- package/dist/components/ui/TreeDescription/index.js +40 -0
- package/dist/components/ui/TreeDescription/index.js.map +1 -0
- package/dist/components/ui/TreeWidget/TreeWidget.d.ts +1 -0
- package/dist/components/ui/TreeWidget/index.d.ts +1 -0
- package/dist/components/ui/TreeWidget/index.js +404 -0
- package/dist/components/ui/TreeWidget/index.js.map +1 -0
- package/dist/components/ui/Upload/Upload.d.ts +1 -0
- package/dist/components/ui/Upload/UploadCaseResultTable.d.ts +18 -0
- package/dist/components/ui/Upload/UploadCreateCases.d.ts +1 -0
- package/dist/components/ui/Upload/UploadEditColumnValuesDialog.d.ts +12 -0
- package/dist/components/ui/Upload/UploadMapColumns.d.ts +1 -0
- package/dist/components/ui/Upload/UploadMapSequences.d.ts +1 -0
- package/dist/components/ui/Upload/UploadNavigation.d.ts +10 -0
- package/dist/components/ui/Upload/UploadPreview.d.ts +4 -0
- package/dist/components/ui/Upload/UploadPreviewNavigation.d.ts +5 -0
- package/dist/components/ui/Upload/UploadSelectFile.d.ts +1 -0
- package/dist/components/ui/Upload/UploadSelectSequenceFiles.d.ts +1 -0
- package/dist/components/ui/Upload/index.d.ts +1 -0
- package/dist/components/ui/Upload/index.js +2 -0
- package/dist/components/ui/UserRightsDialog/UserRightsDialog.d.ts +9 -0
- package/dist/components/ui/UserRightsDialog/UserRightsDialogCaseAccessPolicy.d.ts +5 -0
- package/dist/components/ui/UserRightsDialog/index.d.ts +1 -0
- package/dist/components/ui/UserRightsDialog/index.js +2 -0
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/UsersEffectiveRightsDetailsDialog.d.ts +13 -0
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.d.ts +1 -0
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js +373 -0
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js.map +1 -0
- package/dist/components/ui/Warning/Warning.d.ts +4 -0
- package/dist/components/ui/Warning/index.d.ts +1 -0
- package/dist/components/ui/Warning/index.js +29 -0
- package/dist/components/ui/Warning/index.js.map +1 -0
- package/dist/components/ui/WidgetHeaderIconButton/WidgetHeaderIconButton.d.ts +5 -0
- package/dist/components/ui/WidgetHeaderIconButton/index.d.ts +1 -0
- package/dist/components/ui/WidgetHeaderIconButton/index.js +24 -0
- package/dist/components/ui/WidgetHeaderIconButton/index.js.map +1 -0
- package/dist/components/ui/WidgetMenu/WidgetMenu.d.ts +6 -0
- package/dist/components/ui/WidgetMenu/index.d.ts +1 -0
- package/dist/components/ui/WidgetMenu/index.js +26 -0
- package/dist/components/ui/WidgetMenu/index.js.map +1 -0
- package/dist/components/ui/WidgetUnavailable/WidgetUnavailable.d.ts +6 -0
- package/dist/components/ui/WidgetUnavailable/index.d.ts +1 -0
- package/dist/components/ui/WidgetUnavailable/index.js +18 -0
- package/dist/components/ui/WidgetUnavailable/index.js.map +1 -0
- package/dist/constants/dashboard.d.ts +9 -0
- package/dist/constants/dashboard.js +14 -0
- package/dist/constants/dashboard.js.map +1 -0
- package/dist/constants/query.d.ts +62 -0
- package/dist/constants/query.js +163 -0
- package/dist/constants/query.js.map +1 -0
- package/dist/context/caseAbac/CaseAbacContext.d.ts +14 -0
- package/dist/context/caseAbac/CaseAbacContextProvider.d.ts +6 -0
- package/dist/context/caseAbac/index.d.ts +3 -0
- package/dist/context/caseAbac/useCaseAbacContext.d.ts +2 -0
- package/dist/context/caseTypeAbac/CaseTypeAbacContext.d.ts +14 -0
- package/dist/context/caseTypeAbac/CaseTypeAbacContextProvider.d.ts +6 -0
- package/dist/context/caseTypeAbac/index.d.ts +3 -0
- package/dist/context/caseTypeAbac/useCaseTypeAbacContext.d.ts +2 -0
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.js +21 -0
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.js.map +1 -0
- package/dist/dataHooks/useAssemblyProtocolsQuery/useAssemblyProtocolsQuery.d.ts +6 -0
- package/dist/dataHooks/useCaseRightsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseRightsQuery/index.js +17 -0
- package/dist/dataHooks/useCaseRightsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseRightsQuery/useCaseRightsQuery.d.ts +3 -0
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.js +22 -0
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseSetCategoriesQuery/useCaseSetCategoriesQuery.d.ts +6 -0
- package/dist/dataHooks/useCaseSetRightsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseSetRightsQuery/index.js +13 -0
- package/dist/dataHooks/useCaseSetRightsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseSetRightsQuery/useCaseSetRightsQuery.d.ts +3 -0
- package/dist/dataHooks/useCaseSetStatsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseSetStatsQuery/index.js +19 -0
- package/dist/dataHooks/useCaseSetStatsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseSetStatsQuery/useCaseSetStatsQuery.d.ts +5 -0
- package/dist/dataHooks/useCaseSetStatusesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseSetStatusesQuery/index.js +22 -0
- package/dist/dataHooks/useCaseSetStatusesQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseSetStatusesQuery/useCaseSetStatusesQuery.d.ts +6 -0
- package/dist/dataHooks/useCaseSetsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseSetsQuery/index.js +22 -0
- package/dist/dataHooks/useCaseSetsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseSetsQuery/useCaseSetsQuery.d.ts +6 -0
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js +22 -0
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/useCaseTypeSetCategoriesQuery.d.ts +6 -0
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.js +21 -0
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/useCaseTypeSetCategoryPurposeQuery.d.ts +4 -0
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js +13 -0
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypeSetMembersQuery/useCaseTypeSetMembersQuery.d.ts +3 -0
- package/dist/dataHooks/useCaseTypeSetsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypeSetsQuery/index.js +25 -0
- package/dist/dataHooks/useCaseTypeSetsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypeSetsQuery/useCaseTypeSetsQuery.d.ts +7 -0
- package/dist/dataHooks/useCaseTypeStatsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypeStatsQuery/index.js +13 -0
- package/dist/dataHooks/useCaseTypeStatsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypeStatsQuery/useCaseTypeStatsQuery.d.ts +3 -0
- package/dist/dataHooks/useCaseTypesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypesQuery/index.js +24 -0
- package/dist/dataHooks/useCaseTypesQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypesQuery/useCaseTypesQuery.d.ts +9 -0
- package/dist/dataHooks/useColSetMembersQuery/index.d.ts +1 -0
- package/dist/dataHooks/useColSetMembersQuery/index.js +13 -0
- package/dist/dataHooks/useColSetMembersQuery/index.js.map +1 -0
- package/dist/dataHooks/useColSetMembersQuery/useColSetMembersQuery.d.ts +3 -0
- package/dist/dataHooks/useColSetsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useColSetsQuery/index.js +21 -0
- package/dist/dataHooks/useColSetsQuery/index.js.map +1 -0
- package/dist/dataHooks/useColSetsQuery/useColSetsQuery.d.ts +6 -0
- package/dist/dataHooks/useColTypesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useColTypesQuery/index.js +51 -0
- package/dist/dataHooks/useColTypesQuery/index.js.map +1 -0
- package/dist/dataHooks/useColTypesQuery/useColTypesQuery.d.ts +4 -0
- package/dist/dataHooks/useColsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useColsQuery/index.js +27 -0
- package/dist/dataHooks/useColsQuery/index.js.map +1 -0
- package/dist/dataHooks/useColsQuery/useColsQuery.d.ts +7 -0
- package/dist/dataHooks/useConceptQuery/index.d.ts +1 -0
- package/dist/dataHooks/useConceptQuery/index.js +26 -0
- package/dist/dataHooks/useConceptQuery/index.js.map +1 -0
- package/dist/dataHooks/useConceptQuery/useConceptQuery.d.ts +7 -0
- package/dist/dataHooks/useConceptRelationTypeQuery/index.d.ts +1 -0
- package/dist/dataHooks/useConceptRelationTypeQuery/index.js +15 -0
- package/dist/dataHooks/useConceptRelationTypeQuery/index.js.map +1 -0
- package/dist/dataHooks/useConceptRelationTypeQuery/useConceptRelationTypeQuery.d.ts +4 -0
- package/dist/dataHooks/useConceptSetTypeQuery/index.d.ts +1 -0
- package/dist/dataHooks/useConceptSetTypeQuery/index.js +22 -0
- package/dist/dataHooks/useConceptSetTypeQuery/index.js.map +1 -0
- package/dist/dataHooks/useConceptSetTypeQuery/useConceptSetTypeQuery.d.ts +4 -0
- package/dist/dataHooks/useConceptSetsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useConceptSetsQuery/index.js +21 -0
- package/dist/dataHooks/useConceptSetsQuery/index.js.map +1 -0
- package/dist/dataHooks/useConceptSetsQuery/useConceptSetsQuery.d.ts +6 -0
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.d.ts +1 -0
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js +13 -0
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js.map +1 -0
- package/dist/dataHooks/useDataCollectionSetMembersQuery/useDataCollectionSetMembersQuery.d.ts +3 -0
- package/dist/dataHooks/useDataCollectionsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useDataCollectionsQuery/index.js +22 -0
- package/dist/dataHooks/useDataCollectionsQuery/index.js.map +1 -0
- package/dist/dataHooks/useDataCollectionsQuery/useDataCollectionsQuery.d.ts +6 -0
- package/dist/dataHooks/useDimTypesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useDimTypesQuery/index.js +26 -0
- package/dist/dataHooks/useDimTypesQuery/index.js.map +1 -0
- package/dist/dataHooks/useDimTypesQuery/useDimTypesQuery.d.ts +4 -0
- package/dist/dataHooks/useDimsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useDimsQuery/index.js +26 -0
- package/dist/dataHooks/useDimsQuery/index.js.map +1 -0
- package/dist/dataHooks/useDimsQuery/useDimsQuery.d.ts +7 -0
- package/dist/dataHooks/useDiseasesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useDiseasesQuery/index.js +21 -0
- package/dist/dataHooks/useDiseasesQuery/index.js.map +1 -0
- package/dist/dataHooks/useDiseasesQuery/useDiseasesQuery.d.ts +6 -0
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.js +21 -0
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.js.map +1 -0
- package/dist/dataHooks/useEtiologicalAgentsQuery/useEtiologicalAgentsQuery.d.ts +6 -0
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js +18 -0
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js.map +1 -0
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/useGeneticDistanceProtocolsQuery.d.ts +5 -0
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js +14 -0
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/useOrganizationAccessCasePoliciesQuery.d.ts +3 -0
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js +14 -0
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/useOrganizationShareCasePoliciesQuery.d.ts +3 -0
- package/dist/dataHooks/useRefColsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRefColsQuery/index.js +22 -0
- package/dist/dataHooks/useRefColsQuery/index.js.map +1 -0
- package/dist/dataHooks/useRefColsQuery/useRefColsQuery.d.ts +6 -0
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.js +13 -0
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.js.map +1 -0
- package/dist/dataHooks/useRefColsValidationRulesQuery/useRefColsValidationRulesQuery.d.ts +3 -0
- package/dist/dataHooks/useRefDimsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRefDimsQuery/index.js +22 -0
- package/dist/dataHooks/useRefDimsQuery/index.js.map +1 -0
- package/dist/dataHooks/useRefDimsQuery/useRefDimsQuery.d.ts +6 -0
- package/dist/dataHooks/useRegionQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRegionQuery/index.js +25 -0
- package/dist/dataHooks/useRegionQuery/index.js.map +1 -0
- package/dist/dataHooks/useRegionQuery/useRegionQuery.d.ts +7 -0
- package/dist/dataHooks/useRegionRelationTypeQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRegionRelationTypeQuery/index.js +20 -0
- package/dist/dataHooks/useRegionRelationTypeQuery/index.js.map +1 -0
- package/dist/dataHooks/useRegionRelationTypeQuery/useRegionRelationTypeQuery.d.ts +4 -0
- package/dist/dataHooks/useRegionSetsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRegionSetsQuery/index.js +21 -0
- package/dist/dataHooks/useRegionSetsQuery/index.js.map +1 -0
- package/dist/dataHooks/useRegionSetsQuery/useRegionSetsQuery.d.ts +6 -0
- package/dist/dataHooks/useSequencingProtocolsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useSequencingProtocolsQuery/index.js +21 -0
- package/dist/dataHooks/useSequencingProtocolsQuery/index.js.map +1 -0
- package/dist/dataHooks/useSequencingProtocolsQuery/useSequencingProtocolsQuery.d.ts +6 -0
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.js +42 -0
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.js.map +1 -0
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/useTreeAlgorithmCodesQuery.d.ts +4 -0
- package/dist/dataHooks/useUnitQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUnitQuery/index.js +2 -0
- package/dist/dataHooks/useUnitQuery/useUnit.d.ts +4 -0
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js +14 -0
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/useUserAccessCasePoliciesQuery.d.ts +3 -0
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.js +83 -0
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.js.map +1 -0
- package/dist/dataHooks/useUserEffectiveRightsQuery/useUserEffectiveRightsQuery.d.ts +16 -0
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js +14 -0
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useUserShareCasePoliciesQuery/useUserShareCasePoliciesQuery.d.ts +3 -0
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.d.ts +1 -0
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js +25 -0
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js.map +1 -0
- package/dist/hooks/useOrganizationCasePolicyNameFactory/useOrganizationCasePolicyNameFactory.d.ts +3 -0
- package/dist/hooks/useUserCasePolicyNameFactory/index.d.ts +1 -0
- package/dist/hooks/useUserCasePolicyNameFactory/index.js +28 -0
- package/dist/hooks/useUserCasePolicyNameFactory/index.js.map +1 -0
- package/dist/hooks/useUserCasePolicyNameFactory/useUserCasePolicyNameFactory.d.ts +3 -0
- package/dist/locale/en.json +676 -0
- package/dist/locale/nl.json +676 -0
- package/dist/models/caseAccess.d.ts +15 -0
- package/dist/models/caseAccess.js +0 -0
- package/dist/models/caseDb.d.ts +96 -0
- package/dist/models/caseDb.js +8 -0
- package/dist/models/caseDb.js.map +1 -0
- package/dist/models/config.d.ts +70 -0
- package/dist/models/config.js +0 -0
- package/dist/models/dashboard.d.ts +91 -0
- package/dist/models/dashboard.js +10 -0
- package/dist/models/dashboard.js.map +1 -0
- package/dist/models/stratification.d.ts +40 -0
- package/dist/models/stratification.js +12 -0
- package/dist/models/stratification.js.map +1 -0
- package/dist/models/theme.d.ts +17 -0
- package/dist/models/theme.js +0 -0
- package/dist/models/upload.d.ts +51 -0
- package/dist/models/upload.js +8 -0
- package/dist/models/upload.js.map +1 -0
- package/dist/pages/CaseDbUsersAdminPage/CaseDbUsersAdminPage.d.ts +1 -0
- package/dist/pages/CaseDbUsersAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseDbUsersAdminPage/index.js +67 -0
- package/dist/pages/CaseDbUsersAdminPage/index.js.map +1 -0
- package/dist/pages/CaseSetCategoryAdminPage/CaseSetCategoryAdminPage.d.ts +1 -0
- package/dist/pages/CaseSetCategoryAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseSetCategoryAdminPage/index.js +69 -0
- package/dist/pages/CaseSetCategoryAdminPage/index.js.map +1 -0
- package/dist/pages/CaseSetStatusAdminPage/CaseSetStatusAdminPage.d.ts +1 -0
- package/dist/pages/CaseSetStatusAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseSetStatusAdminPage/index.js +69 -0
- package/dist/pages/CaseSetStatusAdminPage/index.js.map +1 -0
- package/dist/pages/CaseTypeSetCategoriesAdminPage/CaseTypeSetCategoriesAdminPage.d.ts +1 -0
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js +92 -0
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js.map +1 -0
- package/dist/pages/CaseTypeSetsAdminPage/CaseTypeSetsAdminPage.d.ts +1 -0
- package/dist/pages/CaseTypeSetsAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseTypeSetsAdminPage/index.js +148 -0
- package/dist/pages/CaseTypeSetsAdminPage/index.js.map +1 -0
- package/dist/pages/CaseTypesAdminPage/CaseTypesAdminPage.d.ts +1 -0
- package/dist/pages/CaseTypesAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseTypesAdminPage/index.js +288 -0
- package/dist/pages/CaseTypesAdminPage/index.js.map +1 -0
- package/dist/pages/CasesDetailPage/CasesDetailPage.d.ts +1 -0
- package/dist/pages/CasesDetailPage/index.d.ts +1 -0
- package/dist/pages/CasesDetailPage/index.js +41 -0
- package/dist/pages/CasesDetailPage/index.js.map +1 -0
- package/dist/pages/CasesPage/CasesPage.d.ts +1 -0
- package/dist/pages/CasesPage/index.d.ts +1 -0
- package/dist/pages/CasesPage/index.js +229 -0
- package/dist/pages/CasesPage/index.js.map +1 -0
- package/dist/pages/ColSetsAdminPage/ColSetsAdminPage.d.ts +1 -0
- package/dist/pages/ColSetsAdminPage/index.d.ts +1 -0
- package/dist/pages/ColSetsAdminPage/index.js +109 -0
- package/dist/pages/ColSetsAdminPage/index.js.map +1 -0
- package/dist/pages/ColsAdminPage/ColsAdminPage.d.ts +1 -0
- package/dist/pages/ColsAdminPage/index.d.ts +1 -0
- package/dist/pages/ColsAdminPage/index.js +315 -0
- package/dist/pages/ColsAdminPage/index.js.map +1 -0
- package/dist/pages/ConceptRelationsAdminPage/ConceptRelationsAdminPage.d.ts +1 -0
- package/dist/pages/ConceptRelationsAdminPage/index.d.ts +1 -0
- package/dist/pages/ConceptRelationsAdminPage/index.js +103 -0
- package/dist/pages/ConceptRelationsAdminPage/index.js.map +1 -0
- package/dist/pages/ConceptSetsAdminPage/ConceptSetsAdminPage.d.ts +1 -0
- package/dist/pages/ConceptSetsAdminPage/index.d.ts +1 -0
- package/dist/pages/ConceptSetsAdminPage/index.js +112 -0
- package/dist/pages/ConceptSetsAdminPage/index.js.map +1 -0
- package/dist/pages/ConceptsAdminPage/ConceptsAdminPage.d.ts +1 -0
- package/dist/pages/ConceptsAdminPage/index.d.ts +1 -0
- package/dist/pages/ConceptsAdminPage/index.js +94 -0
- package/dist/pages/ConceptsAdminPage/index.js.map +1 -0
- package/dist/pages/DataCollectionSetsAdminPage/DataCollectionSetsAdminPage.d.ts +1 -0
- package/dist/pages/DataCollectionSetsAdminPage/index.d.ts +1 -0
- package/dist/pages/DataCollectionSetsAdminPage/index.js +99 -0
- package/dist/pages/DataCollectionSetsAdminPage/index.js.map +1 -0
- package/dist/pages/DataCollectionVisualizationPage/DataCollectionVisualizationPage.d.ts +1 -0
- package/dist/pages/DataCollectionVisualizationPage/index.d.ts +1 -0
- package/dist/pages/DataCollectionVisualizationPage/index.js +494 -0
- package/dist/pages/DataCollectionVisualizationPage/index.js.map +1 -0
- package/dist/pages/DataCollectionsAdminPage/DataCollectionsAdminPage.d.ts +1 -0
- package/dist/pages/DataCollectionsAdminPage/index.d.ts +1 -0
- package/dist/pages/DataCollectionsAdminPage/index.js +54 -0
- package/dist/pages/DataCollectionsAdminPage/index.js.map +1 -0
- package/dist/pages/DimsAdminPage/DimsAdminPage.d.ts +1 -0
- package/dist/pages/DimsAdminPage/index.d.ts +1 -0
- package/dist/pages/DimsAdminPage/index.js +146 -0
- package/dist/pages/DimsAdminPage/index.js.map +1 -0
- package/dist/pages/DiseasesAdminPage/DiseasesAdminPage.d.ts +1 -0
- package/dist/pages/DiseasesAdminPage/index.d.ts +1 -0
- package/dist/pages/DiseasesAdminPage/index.js +57 -0
- package/dist/pages/DiseasesAdminPage/index.js.map +1 -0
- package/dist/pages/EtiologicalAgentsAdminPage/EtiologicalAgentsAdminPage.d.ts +1 -0
- package/dist/pages/EtiologicalAgentsAdminPage/index.d.ts +1 -0
- package/dist/pages/EtiologicalAgentsAdminPage/index.js +54 -0
- package/dist/pages/EtiologicalAgentsAdminPage/index.js.map +1 -0
- package/dist/pages/EtiologiesAdminPage/EtiologiesAdminPage.d.ts +1 -0
- package/dist/pages/EtiologiesAdminPage/index.d.ts +1 -0
- package/dist/pages/EtiologiesAdminPage/index.js +76 -0
- package/dist/pages/EtiologiesAdminPage/index.js.map +1 -0
- package/dist/pages/EventsDetailPage/EventsDetailPage.d.ts +1 -0
- package/dist/pages/EventsDetailPage/index.d.ts +1 -0
- package/dist/pages/EventsDetailPage/index.js +56 -0
- package/dist/pages/EventsDetailPage/index.js.map +1 -0
- package/dist/pages/EventsPage/EventsPage.d.ts +1 -0
- package/dist/pages/EventsPage/index.d.ts +1 -0
- package/dist/pages/EventsPage/index.js +221 -0
- package/dist/pages/EventsPage/index.js.map +1 -0
- package/dist/pages/HomePage/HomePage.d.ts +1 -0
- package/dist/pages/HomePage/index.d.ts +1 -0
- package/dist/pages/HomePage/index.js +35 -0
- package/dist/pages/HomePage/index.js.map +1 -0
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/OrganizationAccessCasePoliciesAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +216 -0
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/OrganizationShareCasePoliciesAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js +170 -0
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js.map +1 -0
- package/dist/pages/RefColsAdminPage/RefColsAdminPage.d.ts +1 -0
- package/dist/pages/RefColsAdminPage/index.d.ts +1 -0
- package/dist/pages/RefColsAdminPage/index.js +302 -0
- package/dist/pages/RefColsAdminPage/index.js.map +1 -0
- package/dist/pages/RefDimsAdminPage/RefDimsAdminPage.d.ts +1 -0
- package/dist/pages/RefDimsAdminPage/index.d.ts +1 -0
- package/dist/pages/RefDimsAdminPage/index.js +110 -0
- package/dist/pages/RefDimsAdminPage/index.js.map +1 -0
- package/dist/pages/RegionRelationsAdminPage/RegionRelationsAdminPage.d.ts +1 -0
- package/dist/pages/RegionRelationsAdminPage/index.d.ts +1 -0
- package/dist/pages/RegionRelationsAdminPage/index.js +102 -0
- package/dist/pages/RegionRelationsAdminPage/index.js.map +1 -0
- package/dist/pages/RegionSetShapesAdminPage/RegionSetShapesAdminPage.d.ts +1 -0
- package/dist/pages/RegionSetShapesAdminPage/index.d.ts +1 -0
- package/dist/pages/RegionSetShapesAdminPage/index.js +73 -0
- package/dist/pages/RegionSetShapesAdminPage/index.js.map +1 -0
- package/dist/pages/RegionSetsAdminPage/RegionSetsAdminPage.d.ts +1 -0
- package/dist/pages/RegionSetsAdminPage/index.d.ts +1 -0
- package/dist/pages/RegionSetsAdminPage/index.js +101 -0
- package/dist/pages/RegionSetsAdminPage/index.js.map +1 -0
- package/dist/pages/RegionsAdminPage/RegionsAdminPage.d.ts +1 -0
- package/dist/pages/RegionsAdminPage/index.d.ts +1 -0
- package/dist/pages/RegionsAdminPage/index.js +99 -0
- package/dist/pages/RegionsAdminPage/index.js.map +1 -0
- package/dist/pages/TrendsPage/TrendsPage.d.ts +1 -0
- package/dist/pages/TrendsPage/index.d.ts +1 -0
- package/dist/pages/TrendsPage/index.js +17 -0
- package/dist/pages/TrendsPage/index.js.map +1 -0
- package/dist/pages/UploadPage/UploadPage.d.ts +1 -0
- package/dist/pages/UploadPage/index.d.ts +1 -0
- package/dist/pages/UploadPage/index.js +31 -0
- package/dist/pages/UploadPage/index.js.map +1 -0
- package/dist/pages/UserAccessCasePoliciesAdminPage/UserAccessCasePoliciesAdminPage.d.ts +1 -0
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.js +206 -0
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.js.map +1 -0
- package/dist/pages/UserEffectiveRightsAdminPage/UserEffectiveRightsAdminPage.d.ts +1 -0
- package/dist/pages/UserEffectiveRightsAdminPage/index.d.ts +1 -0
- package/dist/pages/UserEffectiveRightsAdminPage/index.js +246 -0
- package/dist/pages/UserEffectiveRightsAdminPage/index.js.map +1 -0
- package/dist/pages/UserEffectiveRightsTesterAdminPage/UserEffectiveRightsTesterAdminPage.d.ts +1 -0
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.d.ts +1 -0
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +195 -0
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -0
- package/dist/pages/UserShareCasePoliciesAdminPage/UserShareCasePoliciesAdminPage.d.ts +1 -0
- package/dist/pages/UserShareCasePoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/UserShareCasePoliciesAdminPage/index.js +169 -0
- package/dist/pages/UserShareCasePoliciesAdminPage/index.js.map +1 -0
- package/dist/routes/adminRoutes.d.ts +6 -0
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/index.js +1110 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/routes.d.ts +6 -0
- package/dist/setup/setup.d.ts +1 -0
- package/dist/setup/setup.js +28 -0
- package/dist/setup/setup.js.map +1 -0
- package/dist/stores/dashboardStore/dashboardStore.d.ts +80 -0
- package/dist/stores/dashboardStore/dashboardStoreContext.d.ts +3 -0
- package/dist/stores/dashboardStore/index.d.ts +2 -0
- package/dist/stores/dashboardStore/index.js +2 -0
- package/dist/stores/uploadStore/index.d.ts +2 -0
- package/dist/stores/uploadStore/index.js +185 -0
- package/dist/stores/uploadStore/index.js.map +1 -0
- package/dist/stores/uploadStore/uploadStore.d.ts +80 -0
- package/dist/stores/uploadStore/uploadStoreContext.d.ts +3 -0
- package/dist/stores/userProfileStore/index.d.ts +1 -0
- package/dist/stores/userProfileStore/index.js +81 -0
- package/dist/stores/userProfileStore/index.js.map +1 -0
- package/dist/stores/userProfileStore/userProfileStore.d.ts +38 -0
- package/dist/stores/userProfileStore/userProfileStoreContext.d.ts +3 -0
- package/dist/theme/demoTheme/demoTheme.d.ts +3 -0
- package/dist/theme/demoTheme/index.d.ts +1 -0
- package/dist/theme/demoTheme/index.js +20 -0
- package/dist/theme/demoTheme/index.js.map +1 -0
- package/dist/utils/AbacUtil/AbacUtil.d.ts +7 -0
- package/dist/utils/AbacUtil/index.d.ts +1 -0
- package/dist/utils/AbacUtil/index.js +31 -0
- package/dist/utils/AbacUtil/index.js.map +1 -0
- package/dist/utils/CaseDbDataUtil/CaseDbDataUtil.d.ts +31 -0
- package/dist/utils/CaseDbDataUtil/index.d.ts +1 -0
- package/dist/utils/CaseDbDataUtil/index.js +43 -0
- package/dist/utils/CaseDbDataUtil/index.js.map +1 -0
- package/dist/utils/CaseDbDownloadUtil/CaseDbDownloadUtil.d.ts +17 -0
- package/dist/utils/CaseDbDownloadUtil/index.d.ts +1 -0
- package/dist/utils/CaseDbDownloadUtil/index.js +2 -0
- package/dist/utils/CaseDbStandardConfigUtil/CaseDbStandardConfigUtil.d.ts +7 -0
- package/dist/utils/CaseDbStandardConfigUtil/index.d.ts +1 -0
- package/dist/utils/CaseDbStandardConfigUtil/index.js +4778 -0
- package/dist/utils/CaseDbStandardConfigUtil/index.js.map +1 -0
- package/dist/utils/CaseDbTableUtil/CaseDbTableUtil.d.ts +6 -0
- package/dist/utils/CaseDbTableUtil/index.d.ts +1 -0
- package/dist/utils/CaseDbTableUtil/index.js +41 -0
- package/dist/utils/CaseDbTableUtil/index.js.map +1 -0
- package/dist/utils/CaseSelectionUtil/CaseSelectionUtil.d.ts +8 -0
- package/dist/utils/CaseSelectionUtil/index.d.ts +1 -0
- package/dist/utils/CaseSelectionUtil/index.js +29 -0
- package/dist/utils/CaseSelectionUtil/index.js.map +1 -0
- package/dist/utils/CaseSetUtil/CaseSetUtil.d.ts +4 -0
- package/dist/utils/CaseSetUtil/index.d.ts +1 -0
- package/dist/utils/CaseSetUtil/index.js +13 -0
- package/dist/utils/CaseSetUtil/index.js.map +1 -0
- package/dist/utils/CaseTypeFormUtil/CaseTypeFormUtil.d.ts +20 -0
- package/dist/utils/CaseTypeFormUtil/index.d.ts +1 -0
- package/dist/utils/CaseTypeFormUtil/index.js +199 -0
- package/dist/utils/CaseTypeFormUtil/index.js.map +1 -0
- package/dist/utils/CaseTypeUtil/CaseTypeUtil.d.ts +39 -0
- package/dist/utils/CaseTypeUtil/index.d.ts +1 -0
- package/dist/utils/CaseTypeUtil/index.js +135 -0
- package/dist/utils/CaseTypeUtil/index.js.map +1 -0
- package/dist/utils/CaseUtil/CaseUtil.d.ts +18 -0
- package/dist/utils/CaseUtil/index.d.ts +1 -0
- package/dist/utils/CaseUtil/index.js +138 -0
- package/dist/utils/CaseUtil/index.js.map +1 -0
- package/dist/utils/DashboardUtil/DashboardUtil.d.ts +29 -0
- package/dist/utils/DashboardUtil/index.d.ts +1 -0
- package/dist/utils/DashboardUtil/index.js +152 -0
- package/dist/utils/DashboardUtil/index.js.map +1 -0
- package/dist/utils/DataSetUtil/DataSetUtil.d.ts +17 -0
- package/dist/utils/DataSetUtil/index.d.ts +1 -0
- package/dist/utils/DataSetUtil/index.js +43 -0
- package/dist/utils/DataSetUtil/index.js.map +1 -0
- package/dist/utils/EffectiveRightsUtil/EffectiveRightsUtil.d.ts +29 -0
- package/dist/utils/EffectiveRightsUtil/index.d.ts +1 -0
- package/dist/utils/EffectiveRightsUtil/index.js +118 -0
- package/dist/utils/EffectiveRightsUtil/index.js.map +1 -0
- package/dist/utils/EpiCurveUtil/EpiCurveUtil.d.ts +96 -0
- package/dist/utils/EpiCurveUtil/index.d.ts +1 -0
- package/dist/utils/EpiCurveUtil/index.js +2 -0
- package/dist/utils/FileUtil/FileUtil.d.ts +5 -0
- package/dist/utils/FileUtil/index.d.ts +1 -0
- package/dist/utils/FileUtil/index.js +15 -0
- package/dist/utils/FileUtil/index.js.map +1 -0
- package/dist/utils/FilterUtil/FilterUtil.d.ts +11 -0
- package/dist/utils/FilterUtil/index.d.ts +1 -0
- package/dist/utils/FilterUtil/index.js +2 -0
- package/dist/utils/FindSimilarCasesUtil/FindSimilarCasesUtil.d.ts +7 -0
- package/dist/utils/FindSimilarCasesUtil/index.d.ts +1 -0
- package/dist/utils/FindSimilarCasesUtil/index.js +2 -0
- package/dist/utils/HistogramUtil/HistogramUtil.d.ts +78 -0
- package/dist/utils/HistogramUtil/index.d.ts +1 -0
- package/dist/utils/HistogramUtil/index.js +145 -0
- package/dist/utils/HistogramUtil/index.js.map +1 -0
- package/dist/utils/MapUtil/MapUtil.d.ts +38 -0
- package/dist/utils/MapUtil/index.d.ts +1 -0
- package/dist/utils/MapUtil/index.js +210 -0
- package/dist/utils/MapUtil/index.js.map +1 -0
- package/dist/utils/StratificationUtil/StratificationUtil.d.ts +25 -0
- package/dist/utils/StratificationUtil/index.d.ts +1 -0
- package/dist/utils/StratificationUtil/index.js +198 -0
- package/dist/utils/StratificationUtil/index.js.map +1 -0
- package/dist/utils/TreeWidgetUtil/TreeWidgetUtil.d.ts +7 -0
- package/dist/utils/TreeWidgetUtil/index.d.ts +1 -0
- package/dist/utils/TreeWidgetUtil/index.js +35 -0
- package/dist/utils/TreeWidgetUtil/index.js.map +1 -0
- package/dist/utils/UploadUtil/UploadUtil.d.ts +106 -0
- package/dist/utils/UploadUtil/index.d.ts +1 -0
- package/dist/utils/UploadUtil/index.js +2 -0
- package/package.json +784 -0
|
@@ -0,0 +1,1506 @@
|
|
|
1
|
+
import { h as e } from "./_MapCache.js";
|
|
2
|
+
import { t } from "./UploadUtil.js";
|
|
3
|
+
import { CaseTypeUtil as n, t as r } from "../utils/CaseTypeUtil/index.js";
|
|
4
|
+
import { CASEDB_QUERY_KEY as i } from "../constants/query.js";
|
|
5
|
+
import { CaseUtil as a, t as o } from "../utils/CaseUtil/index.js";
|
|
6
|
+
import { UploadError as s } from "../classes/errors/index.js";
|
|
7
|
+
import { CaseTypeFormUtil as c } from "../utils/CaseTypeFormUtil/index.js";
|
|
8
|
+
import { t as l } from "./react.js";
|
|
9
|
+
import { t as u } from "./CompletCaseTypeLoader.js";
|
|
10
|
+
import { t as d } from "./shallow.js";
|
|
11
|
+
import { UPLOAD_STEP as f } from "../models/upload.js";
|
|
12
|
+
import { UploadStoreContext as p } from "../stores/uploadStore/index.js";
|
|
13
|
+
import { c as m, o as h } from "./index.esm.js";
|
|
14
|
+
import { t as g } from "./yup.js";
|
|
15
|
+
import { useCaseTypeOptionsQuery as _, useCaseTypesQuery as v } from "../dataHooks/useCaseTypesQuery/index.js";
|
|
16
|
+
import { useDataCollectionOptionsQuery as y } from "../dataHooks/useDataCollectionsQuery/index.js";
|
|
17
|
+
import { useColMapQuery as b, useColsQuery as x } from "../dataHooks/useColsQuery/index.js";
|
|
18
|
+
import { CaseContentFormDialog as S } from "../components/ui/CaseContentFormDialog/index.js";
|
|
19
|
+
import { FileSelector as C } from "../components/ui/FileSelector/index.js";
|
|
20
|
+
import { useSequencingProtocolOptionsQuery as w } from "../dataHooks/useSequencingProtocolsQuery/index.js";
|
|
21
|
+
import { useAssemblyProtocolOptionsQuery as T } from "../dataHooks/useAssemblyProtocolsQuery/index.js";
|
|
22
|
+
import { mixed as E, object as D, string as O } from "yup";
|
|
23
|
+
import { CaseDbCaseApi as k, CaseDbDataIssueType as A, CaseDbEtlStatus as j, CaseDbUploadAction as M } from "@gen-epix/api-casedb";
|
|
24
|
+
import { QueryClientService as ee } from "@gen-epix/ui/classes/services/QueryClientService";
|
|
25
|
+
import { ObjectUtil as N } from "@gen-epix/ui-core/utils/ObjectUtil";
|
|
26
|
+
import { FORM_FIELD_DEFINITION_TYPE as P } from "@gen-epix/ui-form/models/form";
|
|
27
|
+
import { ConfigService as te } from "@gen-epix/ui/classes/services/ConfigService";
|
|
28
|
+
import { Alert as F, AlertTitle as I, Autocomplete as ne, Box as L, Button as R, Container as re, ListItemIcon as z, ListItemText as B, MenuItem as ie, Table as V, TableBody as H, TableCell as U, TableHead as ae, TableRow as oe, TextField as se, Tooltip as ce, Typography as le, useTheme as ue } from "@mui/material";
|
|
29
|
+
import { use as W, useCallback as G, useEffect as K, useId as de, useMemo as q, useRef as J, useState as Y } from "react";
|
|
30
|
+
import { useTranslation as X } from "react-i18next";
|
|
31
|
+
import { TableStoreContextProvider as fe, createTableStore as pe, useTableStoreContext as me } from "@gen-epix/ui/stores/tableStore";
|
|
32
|
+
import { Fragment as Z, jsx as Q, jsxs as $ } from "react/jsx-runtime";
|
|
33
|
+
import { ResponseHandler as he } from "@gen-epix/ui/components/ui/ResponseHandler";
|
|
34
|
+
import { useItemQuery as ge } from "@gen-epix/ui/hooks/useItemQuery";
|
|
35
|
+
import { useArray as _e } from "@gen-epix/ui-core/hooks/useArray";
|
|
36
|
+
import ve from "@mui/material/Box";
|
|
37
|
+
import { Stepper as ye } from "@gen-epix/ui/components/ui/Stepper";
|
|
38
|
+
import { GenericForm as be } from "@gen-epix/ui-form/components/helpers/GenericForm";
|
|
39
|
+
import { useQueryMemo as xe } from "@gen-epix/ui/hooks/useQueryMemo";
|
|
40
|
+
import { useIdentifierIssuerOwnOrganizationOptionsQuery as Se } from "@gen-epix/ui/dataHooks/useIdentifierIssuerOwnOrganizationQuery";
|
|
41
|
+
import { Select as Ce } from "@gen-epix/ui-form/components/fields/Select";
|
|
42
|
+
import { BackdropSpinner as we } from "@gen-epix/ui/components/ui/BackdropSpinner";
|
|
43
|
+
import { Confirmation as Te } from "@gen-epix/ui/components/ui/Confirmation";
|
|
44
|
+
import Ee from "@mui/icons-material/Edit";
|
|
45
|
+
import De from "@mui/icons-material/ErrorOutlined";
|
|
46
|
+
import Oe from "@mui/icons-material/Add";
|
|
47
|
+
import { Table as ke, TableMenu as Ae } from "@gen-epix/ui/components/ui/Table";
|
|
48
|
+
import { TABLE_COLUMN_FROZEN as je } from "@gen-epix/ui/models/table";
|
|
49
|
+
import { TableUtil as Me } from "@gen-epix/ui/utils/TableUtil";
|
|
50
|
+
import { useInitializeTableStore as Ne } from "@gen-epix/ui/hooks/useInitializeTableStore";
|
|
51
|
+
import { withDialog as Pe } from "@gen-epix/ui/hoc/withDialog";
|
|
52
|
+
import { TestIdUtil as Fe } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
53
|
+
import { FormUtil as Ie } from "@gen-epix/ui-form/utils/FormUtil";
|
|
54
|
+
import { GenericErrorMessage as Le } from "@gen-epix/ui/components/ui/GenericErrorMessage";
|
|
55
|
+
import { InactivityService as Re } from "@gen-epix/ui/classes/services/InactivityService";
|
|
56
|
+
import { LinearProgressWithLabel as ze } from "@gen-epix/ui/components/ui/LinearProgressWithLabel";
|
|
57
|
+
import { RouterService as Be } from "@gen-epix/ui/classes/services/RouterService";
|
|
58
|
+
//#region src/components/ui/Upload/UploadNavigation.tsx
|
|
59
|
+
var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proceedDisabled: r, proceedLabel: i }) => {
|
|
60
|
+
let { t: a } = X(), o = W(p), s = l(o, (e) => e.stepOrder), c = l(o, (e) => e.activeStep), u = l(o, (e) => e.goBackFromFirstStepCallback), d = l(o, (e) => e.goBackFromFirstStepLabel), f = c === s[0], m = f ? u ?? t : t;
|
|
61
|
+
return /* @__PURE__ */ $(L, {
|
|
62
|
+
sx: {
|
|
63
|
+
borderTop: (e) => `1px solid ${e.palette.divider}`,
|
|
64
|
+
display: "flex",
|
|
65
|
+
gap: 2,
|
|
66
|
+
justifyContent: "flex-end",
|
|
67
|
+
marginTop: 1,
|
|
68
|
+
paddingTop: 1
|
|
69
|
+
},
|
|
70
|
+
children: [m && /* @__PURE__ */ Q(R, {
|
|
71
|
+
onClick: m,
|
|
72
|
+
variant: "outlined",
|
|
73
|
+
children: (f ? d ?? e : e) ?? a`Go back`
|
|
74
|
+
}), n && /* @__PURE__ */ Q(R, {
|
|
75
|
+
color: "secondary",
|
|
76
|
+
disabled: r,
|
|
77
|
+
onClick: n,
|
|
78
|
+
variant: "contained",
|
|
79
|
+
children: i ?? a`Next`
|
|
80
|
+
})]
|
|
81
|
+
});
|
|
82
|
+
}, He = () => {
|
|
83
|
+
let { t: e } = X(), n = v(), r = _(), a = y(), o = x(), s = de(), c = W(p), u = l(c, (e) => e.caseTypeId), d = l(c, (e) => e.fileList), f = l(c, (e) => e.fileName), m = l(c, (e) => e.fileParsingError), b = l(c, (e) => e.goToNextStep), S = l(c, (e) => e.createdInDataCollectionOptions), C = l(c, (e) => e.rawData), w = l(c, (e) => e.setCols), T = l(c, (e) => e.setCaseTypeId), A = l(c, (e) => e.setCompleteCaseType), j = l(c, (e) => e.setCreatedInDataCollectionId), M = l(c, (e) => e.setFileList), ee = l(c, (e) => e.setSheet), N = l(c, (e) => e.setDataCollectionOptions), te = l(c, (e) => e.sheet), ne = l(c, (e) => e.sheetOptions), L = q(() => D().shape({
|
|
84
|
+
caseTypeId: O().uuid4().required(),
|
|
85
|
+
createdInDataCollectionId: O().uuid4().required(),
|
|
86
|
+
fileList: E().required(e`File is required`),
|
|
87
|
+
sheet: O().required(e`Sheet is required`)
|
|
88
|
+
}), [e]), R = h({
|
|
89
|
+
defaultValues: {
|
|
90
|
+
caseTypeId: null,
|
|
91
|
+
createdInDataCollectionId: null,
|
|
92
|
+
fileList: null,
|
|
93
|
+
sheet: null
|
|
94
|
+
},
|
|
95
|
+
resolver: g(L),
|
|
96
|
+
values: {
|
|
97
|
+
caseTypeId: c.getState().caseTypeId ?? null,
|
|
98
|
+
createdInDataCollectionId: c.getState().createdInDataCollectionId ?? null,
|
|
99
|
+
fileList: c.getState().fileList ?? null,
|
|
100
|
+
sheet: c.getState().sheet ?? null
|
|
101
|
+
}
|
|
102
|
+
}), { handleSubmit: z, setError: B, setValue: ie } = R;
|
|
103
|
+
K(() => {
|
|
104
|
+
Array.isArray(o?.data) && w(o.data);
|
|
105
|
+
}, [o.data, w]), K(() => {
|
|
106
|
+
a?.options?.length && N(a.options);
|
|
107
|
+
}, [a?.options, N]);
|
|
108
|
+
let { data: V, error: H, isLoading: U } = ge({
|
|
109
|
+
baseQueryKey: i.COMPLETE_CASE_TYPES,
|
|
110
|
+
itemId: u,
|
|
111
|
+
useQueryOptions: {
|
|
112
|
+
enabled: !!u,
|
|
113
|
+
queryFn: async ({ signal: e }) => (await k.getInstance().completeCaseTypesGetOne(u, { signal: e })).data
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
K(() => {
|
|
117
|
+
V && A(V);
|
|
118
|
+
}, [V, A]);
|
|
119
|
+
let ae = G(async (e) => {
|
|
120
|
+
await M(e);
|
|
121
|
+
}, [M]), oe = G(async (e) => {
|
|
122
|
+
await ee(e);
|
|
123
|
+
}, [ee]), se = G((e) => {
|
|
124
|
+
T(e);
|
|
125
|
+
}, [T]), ce = G((e) => {
|
|
126
|
+
j(e);
|
|
127
|
+
}, [j]), ue = q(() => {
|
|
128
|
+
let n = [{
|
|
129
|
+
accept: ".csv,.tsv,.txt,.xlsx",
|
|
130
|
+
definition: P.FILE,
|
|
131
|
+
label: e`File`,
|
|
132
|
+
name: "fileList",
|
|
133
|
+
onChange: ae
|
|
134
|
+
}];
|
|
135
|
+
return t.isXlsxFile(f) && n.push({
|
|
136
|
+
definition: P.SELECT,
|
|
137
|
+
label: e`Sheet`,
|
|
138
|
+
name: "sheet",
|
|
139
|
+
onChange: oe,
|
|
140
|
+
options: ne
|
|
141
|
+
}), n.push({
|
|
142
|
+
definition: P.AUTOCOMPLETE,
|
|
143
|
+
disabled: !d,
|
|
144
|
+
label: e`Case type`,
|
|
145
|
+
loading: r.isLoading,
|
|
146
|
+
name: "caseTypeId",
|
|
147
|
+
onChange: se,
|
|
148
|
+
options: r.options
|
|
149
|
+
}, {
|
|
150
|
+
definition: P.SELECT,
|
|
151
|
+
disabled: !d || !u,
|
|
152
|
+
label: e`Create in data collection`,
|
|
153
|
+
loading: a.isLoading || U,
|
|
154
|
+
name: "createdInDataCollectionId",
|
|
155
|
+
onChange: ce,
|
|
156
|
+
options: S
|
|
157
|
+
}), n;
|
|
158
|
+
}, [
|
|
159
|
+
e,
|
|
160
|
+
ae,
|
|
161
|
+
f,
|
|
162
|
+
r.options,
|
|
163
|
+
r.isLoading,
|
|
164
|
+
d,
|
|
165
|
+
se,
|
|
166
|
+
S,
|
|
167
|
+
a.isLoading,
|
|
168
|
+
U,
|
|
169
|
+
u,
|
|
170
|
+
ce,
|
|
171
|
+
ne,
|
|
172
|
+
oe
|
|
173
|
+
]);
|
|
174
|
+
K(() => {
|
|
175
|
+
m ? B("fileList", {
|
|
176
|
+
message: m,
|
|
177
|
+
type: "manual"
|
|
178
|
+
}) : B("fileList", void 0);
|
|
179
|
+
}, [
|
|
180
|
+
m,
|
|
181
|
+
B,
|
|
182
|
+
ie
|
|
183
|
+
]);
|
|
184
|
+
let J = G(async () => {
|
|
185
|
+
await b();
|
|
186
|
+
}, [b]), Y = _e([
|
|
187
|
+
n,
|
|
188
|
+
r,
|
|
189
|
+
a,
|
|
190
|
+
o
|
|
191
|
+
]), fe = G(async () => {
|
|
192
|
+
await z(J)();
|
|
193
|
+
}, [z, J]), pe = q(() => !(o.isLoading === !1 && o.data?.length === 0 || r.isLoading === !1 && r.options?.length === 0 || a.isLoading === !1 && a.options?.length === 0), [
|
|
194
|
+
o.data?.length,
|
|
195
|
+
o.isLoading,
|
|
196
|
+
r.isLoading,
|
|
197
|
+
r.options?.length,
|
|
198
|
+
a.isLoading,
|
|
199
|
+
a.options?.length
|
|
200
|
+
]);
|
|
201
|
+
return /* @__PURE__ */ Q(he, {
|
|
202
|
+
error: H,
|
|
203
|
+
inlineSpinner: !0,
|
|
204
|
+
loadables: Y,
|
|
205
|
+
children: /* @__PURE__ */ $(re, {
|
|
206
|
+
maxWidth: "lg",
|
|
207
|
+
children: [!pe && /* @__PURE__ */ Q(F, {
|
|
208
|
+
severity: "warning",
|
|
209
|
+
sx: { mb: 2 },
|
|
210
|
+
children: e("Upload is disabled because you have insufficient data access to proceed. Contact your organization administrator for assistance.")
|
|
211
|
+
}), pe && /* @__PURE__ */ $(Z, { children: [
|
|
212
|
+
C && C.length > 0 && /* @__PURE__ */ $(F, {
|
|
213
|
+
severity: "info",
|
|
214
|
+
sx: { mb: 2 },
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ Q(I, { children: e("{{fileName}} loaded successfully", { fileName: f }) }),
|
|
217
|
+
te && /* @__PURE__ */ Q(le, { children: e("Sheet name: {{sheet}}", { sheet: te || "" }) }),
|
|
218
|
+
/* @__PURE__ */ Q(le, { children: e("Number of columns: {{columnCount}}", { columnCount: C[0].length }) }),
|
|
219
|
+
/* @__PURE__ */ Q(le, { children: e("Number of data rows: {{rowCount}}", { rowCount: C.length - 1 }) })
|
|
220
|
+
]
|
|
221
|
+
}),
|
|
222
|
+
/* @__PURE__ */ Q(be, {
|
|
223
|
+
formFieldDefinitions: ue,
|
|
224
|
+
formId: s,
|
|
225
|
+
formMethods: R,
|
|
226
|
+
onSubmit: z(J),
|
|
227
|
+
schema: L
|
|
228
|
+
}),
|
|
229
|
+
/* @__PURE__ */ Q(Ve, { onProceedButtonClick: fe })
|
|
230
|
+
] })]
|
|
231
|
+
})
|
|
232
|
+
});
|
|
233
|
+
}, Ue = /* @__PURE__ */ e(r(), 1), We = /* @__PURE__ */ e(o(), 1), Ge = () => {
|
|
234
|
+
let { t: e } = X(), n = b(), r = Se(), i = W(p), a = l(i, (e) => e.completeCaseType), o = l(i, (e) => e.rawData), s = l(i, (e) => e.fileName), c = l(i, (e) => e.goToNextStep), u = l(i, (e) => e.goToPreviousStep), d = l(i, (e) => e.setMappedColumns), f = _e([n, r]), _ = de(), v = q(() => t.getColumnMappingSchema(o, a), [a, o]), y = q(() => t.getDefaultColumnMappingFormValues(o[0], i.getState().mappedColumns, r.options), [
|
|
235
|
+
o,
|
|
236
|
+
i,
|
|
237
|
+
r.options
|
|
238
|
+
]), x = h({
|
|
239
|
+
defaultValues: { ...y },
|
|
240
|
+
resolver: g(v),
|
|
241
|
+
values: { ...y }
|
|
242
|
+
}), { clearErrors: S, control: C, handleSubmit: w } = x, T = m({ control: C }), E = q(() => t.getColumnMappingFormFieldDefinitions(a, o[0], s).map((e) => ({
|
|
243
|
+
...e,
|
|
244
|
+
onChange: () => S()
|
|
245
|
+
})), [
|
|
246
|
+
a,
|
|
247
|
+
o,
|
|
248
|
+
s,
|
|
249
|
+
S
|
|
250
|
+
]);
|
|
251
|
+
K(() => {
|
|
252
|
+
(async () => {
|
|
253
|
+
await d(t.getMappedColumnsFromFormData(T, o, n.map, a));
|
|
254
|
+
})();
|
|
255
|
+
}, [
|
|
256
|
+
d,
|
|
257
|
+
T,
|
|
258
|
+
o,
|
|
259
|
+
n.map,
|
|
260
|
+
a
|
|
261
|
+
]);
|
|
262
|
+
let D = q(() => (0, We.default)(o[0].map((e, t) => t), t.getMappedColumnsFromFormData(T, o, n.map, a).map((e) => e.originalIndex)).map((e) => ({
|
|
263
|
+
originalIndex: e,
|
|
264
|
+
originalLabel: o[0][e]
|
|
265
|
+
})), [
|
|
266
|
+
n.map,
|
|
267
|
+
o,
|
|
268
|
+
T,
|
|
269
|
+
a
|
|
270
|
+
]), O = G(async (e) => {
|
|
271
|
+
await d(t.getMappedColumnsFromFormData(e, o, n.map, a)), await c();
|
|
272
|
+
}, [
|
|
273
|
+
o,
|
|
274
|
+
n.map,
|
|
275
|
+
c,
|
|
276
|
+
d,
|
|
277
|
+
a
|
|
278
|
+
]), k = q(() => t.getSampleIdColIds(a), [a]), A = G((t, n) => {
|
|
279
|
+
let i = parseInt(t.name, 10), a = (0, Ue.default)(o.slice(1).map((e) => e[i] ?? "")).filter((e) => !!e).slice(0, 5).join(", ").trim() || e("<no data>"), s = n, c = T[t.name];
|
|
280
|
+
return k.includes(c) && (s = /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(L, { children: n }), /* @__PURE__ */ Q(L, {
|
|
281
|
+
sx: { marginTop: 1 },
|
|
282
|
+
children: /* @__PURE__ */ Q(Ce, {
|
|
283
|
+
label: e("{{columnLabel}}: Identifier issuer", { columnLabel: t.label }),
|
|
284
|
+
loading: r.isLoading,
|
|
285
|
+
name: c,
|
|
286
|
+
options: r.options
|
|
287
|
+
})
|
|
288
|
+
})] })), /* @__PURE__ */ $(oe, { children: [
|
|
289
|
+
/* @__PURE__ */ Q(U, { children: t.label }),
|
|
290
|
+
/* @__PURE__ */ Q(U, { children: s }),
|
|
291
|
+
/* @__PURE__ */ Q(U, { children: a })
|
|
292
|
+
] }, t.name);
|
|
293
|
+
}, [
|
|
294
|
+
T,
|
|
295
|
+
r.isLoading,
|
|
296
|
+
r.options,
|
|
297
|
+
o,
|
|
298
|
+
k,
|
|
299
|
+
e
|
|
300
|
+
]), j = G((t) => /* @__PURE__ */ $(V, {
|
|
301
|
+
size: "small",
|
|
302
|
+
children: [/* @__PURE__ */ Q(ae, {
|
|
303
|
+
sx: {
|
|
304
|
+
backgroundColor: (e) => e.palette.background.paper,
|
|
305
|
+
position: "sticky",
|
|
306
|
+
top: 0,
|
|
307
|
+
zIndex: (e) => e.zIndex.appBar - 1
|
|
308
|
+
},
|
|
309
|
+
children: /* @__PURE__ */ $(oe, { children: [
|
|
310
|
+
/* @__PURE__ */ Q(U, {
|
|
311
|
+
sx: { width: "33%" },
|
|
312
|
+
children: e`Source`
|
|
313
|
+
}),
|
|
314
|
+
/* @__PURE__ */ Q(U, {
|
|
315
|
+
sx: { width: "33%" },
|
|
316
|
+
children: te.getInstance().config.applicationName
|
|
317
|
+
}),
|
|
318
|
+
/* @__PURE__ */ Q(U, {
|
|
319
|
+
sx: { width: "34%" },
|
|
320
|
+
children: e`Data preview (first 5 unique values)`
|
|
321
|
+
})
|
|
322
|
+
] })
|
|
323
|
+
}), /* @__PURE__ */ Q(H, { children: t })]
|
|
324
|
+
}), [e]), M = G(async () => {
|
|
325
|
+
await w(O)();
|
|
326
|
+
}, [w, O]), ee = G(() => {
|
|
327
|
+
u();
|
|
328
|
+
}, [u]);
|
|
329
|
+
return /* @__PURE__ */ Q(he, {
|
|
330
|
+
loadables: f,
|
|
331
|
+
children: /* @__PURE__ */ $(L, {
|
|
332
|
+
sx: {
|
|
333
|
+
display: "grid",
|
|
334
|
+
gridTemplateRows: "max-content auto max-content",
|
|
335
|
+
height: "100%"
|
|
336
|
+
},
|
|
337
|
+
children: [
|
|
338
|
+
/* @__PURE__ */ Q(re, {
|
|
339
|
+
maxWidth: "lg",
|
|
340
|
+
sx: { marginBottom: 2 },
|
|
341
|
+
children: /* @__PURE__ */ $(F, {
|
|
342
|
+
severity: D.length === 0 ? "info" : "warning",
|
|
343
|
+
children: [
|
|
344
|
+
/* @__PURE__ */ Q(I, { children: D.length === 0 ? e("All columns in {{fileName}} have been mapped to known columns in {{applicationName}}", {
|
|
345
|
+
applicationName: te.getInstance().config.applicationName,
|
|
346
|
+
fileName: s
|
|
347
|
+
}) : e("{{numUnmappedColumns}} column(s) in {{fileName}} are not mapped", {
|
|
348
|
+
fileName: s,
|
|
349
|
+
numUnmappedColumns: D.length
|
|
350
|
+
}) }),
|
|
351
|
+
D.map((t) => /* @__PURE__ */ Q(L, { children: e("The column \"{{columnName}}\" (column {{columnIndex}}) has not been mapped.", {
|
|
352
|
+
columnIndex: t.originalIndex + 1,
|
|
353
|
+
columnName: t.originalLabel
|
|
354
|
+
}) }, t.originalIndex)),
|
|
355
|
+
D.length === 0 && e("You can proceed to the next step.")
|
|
356
|
+
]
|
|
357
|
+
})
|
|
358
|
+
}),
|
|
359
|
+
/* @__PURE__ */ Q(L, {
|
|
360
|
+
sx: {
|
|
361
|
+
overflowY: "auto",
|
|
362
|
+
position: "relative"
|
|
363
|
+
},
|
|
364
|
+
children: /* @__PURE__ */ Q(L, {
|
|
365
|
+
sx: {
|
|
366
|
+
bottom: 0,
|
|
367
|
+
left: 0,
|
|
368
|
+
position: "absolute",
|
|
369
|
+
right: 0,
|
|
370
|
+
top: 0
|
|
371
|
+
},
|
|
372
|
+
children: /* @__PURE__ */ Q(re, { children: /* @__PURE__ */ Q(be, {
|
|
373
|
+
formFieldDefinitions: E,
|
|
374
|
+
formId: _,
|
|
375
|
+
formMethods: x,
|
|
376
|
+
onSubmit: w(O),
|
|
377
|
+
renderField: A,
|
|
378
|
+
schema: v,
|
|
379
|
+
wrapForm: j
|
|
380
|
+
}) })
|
|
381
|
+
})
|
|
382
|
+
}),
|
|
383
|
+
/* @__PURE__ */ Q(L, { children: /* @__PURE__ */ Q(Ve, {
|
|
384
|
+
onGoBackButtonClick: ee,
|
|
385
|
+
onProceedButtonClick: M
|
|
386
|
+
}) })
|
|
387
|
+
]
|
|
388
|
+
})
|
|
389
|
+
});
|
|
390
|
+
}, Ke = (e) => (t) => {
|
|
391
|
+
let [n, r] = Y(!1), i = G(() => {
|
|
392
|
+
r(!0);
|
|
393
|
+
}, []);
|
|
394
|
+
return /* @__PURE__ */ Q(u, {
|
|
395
|
+
caseTypeId: t.caseTypeId,
|
|
396
|
+
onCompleteCaseTypeLoaded: i,
|
|
397
|
+
children: n && /* @__PURE__ */ Q(e, { ...t })
|
|
398
|
+
});
|
|
399
|
+
}, qe = Pe(({ onActionsChange: e, onClose: t, onSubmit: n, onTitleChange: r, openProps: i }) => {
|
|
400
|
+
let { t: a } = X(), o = de(), s = q(() => i.completeCaseType.cols[i.colId], [i.completeCaseType.cols, i.colId]);
|
|
401
|
+
K(() => {
|
|
402
|
+
r(a("Edit values for {{colLabel}} (for selected rows)", { colLabel: s.label }));
|
|
403
|
+
}, [
|
|
404
|
+
r,
|
|
405
|
+
s.label,
|
|
406
|
+
a
|
|
407
|
+
]);
|
|
408
|
+
let l = q(() => c.createYupSchema({
|
|
409
|
+
completeCaseType: i.completeCaseType,
|
|
410
|
+
includedColIds: [i.colId]
|
|
411
|
+
}), [i.completeCaseType, i.colId]), u = h({ resolver: g(l) }), { handleSubmit: d } = u, { fieldDefinitions: f } = q(() => c.createFormDefinitions({
|
|
412
|
+
completeCaseType: i.completeCaseType,
|
|
413
|
+
includedColIds: [i.colId]
|
|
414
|
+
}), [i.completeCaseType, i.colId]), p = G((e) => {
|
|
415
|
+
n(Ie.createStringValuesFromFormValues(f, e)), t();
|
|
416
|
+
}, [
|
|
417
|
+
f,
|
|
418
|
+
t,
|
|
419
|
+
n
|
|
420
|
+
]);
|
|
421
|
+
return K(() => {
|
|
422
|
+
e([{
|
|
423
|
+
...Fe.createAttributes("UploadEditColumnValuesDialog-submitButton"),
|
|
424
|
+
color: "primary",
|
|
425
|
+
form: o,
|
|
426
|
+
label: a`Save and revalidate`,
|
|
427
|
+
type: "submit",
|
|
428
|
+
variant: "contained"
|
|
429
|
+
}]);
|
|
430
|
+
}, [
|
|
431
|
+
o,
|
|
432
|
+
e,
|
|
433
|
+
a
|
|
434
|
+
]), /* @__PURE__ */ $(L, { children: [i.shouldShowRightsWarning && /* @__PURE__ */ Q(L, {
|
|
435
|
+
sx: { marginBottom: 2 },
|
|
436
|
+
children: /* @__PURE__ */ $(F, {
|
|
437
|
+
severity: "warning",
|
|
438
|
+
children: [/* @__PURE__ */ Q(I, { children: a`You do not have the necessary rights to edit all rows in this column.` }), a`Only the cases that you have write access to for this column will be updated. Please review the changes carefully before submitting.`]
|
|
439
|
+
})
|
|
440
|
+
}), /* @__PURE__ */ Q(be, {
|
|
441
|
+
formFieldDefinitions: f,
|
|
442
|
+
formId: o,
|
|
443
|
+
formMethods: u,
|
|
444
|
+
onSubmit: d(p),
|
|
445
|
+
schema: l
|
|
446
|
+
})] });
|
|
447
|
+
}, {
|
|
448
|
+
defaultTitle: "",
|
|
449
|
+
fullWidth: !0,
|
|
450
|
+
maxWidth: "md",
|
|
451
|
+
testId: "UploadEditColumnValuesDialog"
|
|
452
|
+
}), Je = ({ caseRightsColMap: e, caseUploadResults: t, completeCaseType: n, getOriginalCellValue: r, onCaseContentEditSubmit: i, onColContentEditSubmit: o, tableStore: s }) => {
|
|
453
|
+
let c = ue(), { t: l } = X(), u = J(null), d = J(null), f = q(() => [
|
|
454
|
+
A.UNAUTHORIZED,
|
|
455
|
+
A.INVALID,
|
|
456
|
+
A.CONFLICT,
|
|
457
|
+
A.MISSING,
|
|
458
|
+
A.DERIVED,
|
|
459
|
+
A.TRANSFORMED
|
|
460
|
+
], []), p = q(() => [A.UNAUTHORIZED, A.INVALID], []), m = q(() => [A.MISSING, A.CONFLICT], []), h = G((r) => {
|
|
461
|
+
d.current?.open({
|
|
462
|
+
colId: r.column.id,
|
|
463
|
+
completeCaseType: n,
|
|
464
|
+
shouldShowRightsWarning: e?.[r.column.id]?.length !== t?.length
|
|
465
|
+
});
|
|
466
|
+
}, [
|
|
467
|
+
n,
|
|
468
|
+
e,
|
|
469
|
+
t
|
|
470
|
+
]), g = G((e, t) => {
|
|
471
|
+
i(e, t);
|
|
472
|
+
}, [i]), _ = G((t) => {
|
|
473
|
+
let n = {};
|
|
474
|
+
Object.keys(t).forEach((r) => {
|
|
475
|
+
(e?.[r] ?? []).forEach((e) => {
|
|
476
|
+
n[e] = {
|
|
477
|
+
...n[e] ?? {},
|
|
478
|
+
[r]: t[r]
|
|
479
|
+
};
|
|
480
|
+
});
|
|
481
|
+
}), o(n);
|
|
482
|
+
}, [o, e]), v = G((e) => {
|
|
483
|
+
let t = [];
|
|
484
|
+
return e.forEach((e) => {
|
|
485
|
+
let r = `${n.cols[e.col_id].label}: ${e.message}`;
|
|
486
|
+
t.push({
|
|
487
|
+
key: `${e.col_id}-${e.data_issue_type}-${e.code}`,
|
|
488
|
+
message: r
|
|
489
|
+
});
|
|
490
|
+
}), t;
|
|
491
|
+
}, [n.cols]), y = G((e) => /* @__PURE__ */ Q(Z, { children: v(e).map(({ key: e, message: t }, n) => /* @__PURE__ */ Q(L, {
|
|
492
|
+
sx: { marginTop: +(n > 0) },
|
|
493
|
+
children: t
|
|
494
|
+
}, e)) }), [v]), b = G((e) => v(e).map((e) => e.message).join(", "), [v]), x = G((e, t, n) => t.filter((t) => !(t.col_id !== e || t.data_issue_type === A.TRANSFORMED && t.original_value === n)).sort((e, t) => f.indexOf(e.data_issue_type) - f.indexOf(t.data_issue_type)), [f]), C = G(() => /* @__PURE__ */ Q(ce, {
|
|
495
|
+
"aria-hidden": !1,
|
|
496
|
+
arrow: !0,
|
|
497
|
+
title: l("Indicates if there are any issues with the case"),
|
|
498
|
+
children: /* @__PURE__ */ Q(De, { fontSize: "small" })
|
|
499
|
+
}), [l]), w = G(({ row: e }) => {
|
|
500
|
+
let t = e.data_issues.filter((e) => e.data_issue_type === A.INVALID || e.data_issue_type === A.UNAUTHORIZED);
|
|
501
|
+
if (t.length > 0) return /* @__PURE__ */ Q(ce, {
|
|
502
|
+
"aria-hidden": !1,
|
|
503
|
+
"aria-label": b(t),
|
|
504
|
+
arrow: !0,
|
|
505
|
+
title: y(t),
|
|
506
|
+
children: /* @__PURE__ */ Q(De, {
|
|
507
|
+
fontSize: "small",
|
|
508
|
+
sx: {
|
|
509
|
+
color: c.palette.error.main,
|
|
510
|
+
marginTop: "5px"
|
|
511
|
+
}
|
|
512
|
+
})
|
|
513
|
+
});
|
|
514
|
+
}, [
|
|
515
|
+
y,
|
|
516
|
+
b,
|
|
517
|
+
c.palette.error.main
|
|
518
|
+
]), T = G(() => /* @__PURE__ */ Q(ce, {
|
|
519
|
+
"aria-hidden": !1,
|
|
520
|
+
arrow: !0,
|
|
521
|
+
title: l("Indicates if case is new (will be created)"),
|
|
522
|
+
children: /* @__PURE__ */ Q(Oe, { fontSize: "small" })
|
|
523
|
+
}), [l]), E = G(({ row: e }) => e.id ? null : /* @__PURE__ */ Q(Oe, {
|
|
524
|
+
"aria-hidden": !1,
|
|
525
|
+
"aria-label": l`This case does not have an ID and will be created`,
|
|
526
|
+
fontSize: "small",
|
|
527
|
+
sx: {
|
|
528
|
+
marginTop: "5px",
|
|
529
|
+
position: "absolute"
|
|
530
|
+
}
|
|
531
|
+
}), [l]), D = G(({ id: e, row: t }) => {
|
|
532
|
+
let r = a.getRowValue(t.validated_content, n.cols[e], n).long, i = x(e, t.data_issues, r);
|
|
533
|
+
if (i.length === 0) return /* @__PURE__ */ Q(Z, { children: r });
|
|
534
|
+
let o = c.palette.info.main;
|
|
535
|
+
p.includes(i[0].data_issue_type) ? o = c.palette.error.main : m.includes(i[0].data_issue_type) && (o = c.palette.warning.main);
|
|
536
|
+
let s = i.find((e) => e.original_value)?.original_value || "", l = /* @__PURE__ */ $(Z, { children: [s && r && s !== r && /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("s", { children: s }), "\xA0"] }), r && /* @__PURE__ */ Q(Z, { children: r })] });
|
|
537
|
+
return /* @__PURE__ */ $(L, {
|
|
538
|
+
sx: {
|
|
539
|
+
alignItems: "center",
|
|
540
|
+
display: "flex"
|
|
541
|
+
},
|
|
542
|
+
children: [/* @__PURE__ */ Q(L, {
|
|
543
|
+
sx: {
|
|
544
|
+
height: c.spacing(2),
|
|
545
|
+
marginRight: c.spacing(1),
|
|
546
|
+
minHeight: c.spacing(2),
|
|
547
|
+
minWidth: c.spacing(2),
|
|
548
|
+
position: "relative",
|
|
549
|
+
width: c.spacing(2)
|
|
550
|
+
},
|
|
551
|
+
children: /* @__PURE__ */ Q(ce, {
|
|
552
|
+
arrow: !0,
|
|
553
|
+
title: y(i),
|
|
554
|
+
children: /* @__PURE__ */ Q(De, {
|
|
555
|
+
fontSize: "small",
|
|
556
|
+
sx: {
|
|
557
|
+
color: o,
|
|
558
|
+
marginTop: "-2px",
|
|
559
|
+
position: "absolute"
|
|
560
|
+
}
|
|
561
|
+
})
|
|
562
|
+
})
|
|
563
|
+
}), /* @__PURE__ */ Q(L, {
|
|
564
|
+
sx: {
|
|
565
|
+
overflow: "hidden",
|
|
566
|
+
textOverflow: "ellipsis",
|
|
567
|
+
whiteSpace: "nowrap"
|
|
568
|
+
},
|
|
569
|
+
children: l
|
|
570
|
+
})]
|
|
571
|
+
});
|
|
572
|
+
}, [
|
|
573
|
+
n,
|
|
574
|
+
p,
|
|
575
|
+
x,
|
|
576
|
+
y,
|
|
577
|
+
c,
|
|
578
|
+
m
|
|
579
|
+
]);
|
|
580
|
+
return Ne({
|
|
581
|
+
columns: q(() => {
|
|
582
|
+
let i = [];
|
|
583
|
+
if (!t?.length) return i;
|
|
584
|
+
i.push(Me.createReadableIndexColumn()), i.push(Me.createSelectableColumn()), i.push({
|
|
585
|
+
disableEllipsis: !0,
|
|
586
|
+
frozen: je.LEFT,
|
|
587
|
+
headerName: "",
|
|
588
|
+
hideInFilter: !0,
|
|
589
|
+
id: "gen-epix-ui-issue",
|
|
590
|
+
isInitiallyVisible: !0,
|
|
591
|
+
renderCell: w,
|
|
592
|
+
renderHeader: C,
|
|
593
|
+
resizable: !1,
|
|
594
|
+
type: "text",
|
|
595
|
+
valueGetter: () => "",
|
|
596
|
+
widthPx: 38
|
|
597
|
+
}), i.push({
|
|
598
|
+
disableEllipsis: !0,
|
|
599
|
+
frozen: je.LEFT,
|
|
600
|
+
headerName: "",
|
|
601
|
+
hideInFilter: !0,
|
|
602
|
+
id: "gen-epix-ui-id",
|
|
603
|
+
isInitiallyVisible: !0,
|
|
604
|
+
renderCell: E,
|
|
605
|
+
renderHeader: T,
|
|
606
|
+
resizable: !1,
|
|
607
|
+
type: "text",
|
|
608
|
+
valueGetter: () => "",
|
|
609
|
+
widthPx: 38
|
|
610
|
+
});
|
|
611
|
+
let o = /* @__PURE__ */ new Set();
|
|
612
|
+
return t.forEach((e) => {
|
|
613
|
+
Object.keys(e.validated_content || {}).forEach((e) => o.add(e)), e.data_issues.forEach((e) => o.add(e.col_id));
|
|
614
|
+
}), n.ordered_col_ids.forEach((s) => {
|
|
615
|
+
if (!o.has(s)) return;
|
|
616
|
+
let c = n.cols[s], u = t.flatMap((e) => e.data_issues.filter((e) => e.col_id === c.id)), d = u.length === 0 || u.some((e) => e.data_issue_type !== A.DERIVED), f = e[c.id]?.length;
|
|
617
|
+
c && i.push({
|
|
618
|
+
cellTitleGetter: (e) => {
|
|
619
|
+
let t = e.row.data_issues.find((e) => e.col_id === c.id);
|
|
620
|
+
return !t && r ? l("{{value}} (original value: \"{{originalValue}}\")", {
|
|
621
|
+
originalValue: r(c, e, t) ?? "",
|
|
622
|
+
value: a.getRowValue(e.row.validated_content, c, n).short
|
|
623
|
+
}) : "";
|
|
624
|
+
},
|
|
625
|
+
customHeaderIcon: f ? {
|
|
626
|
+
iconElement: /* @__PURE__ */ Q(Ee, { fontSize: "inherit" }),
|
|
627
|
+
label: l("Edit values for {{colLabel}} (for selected rows)", { colLabel: c.label }),
|
|
628
|
+
onClick: h
|
|
629
|
+
} : void 0,
|
|
630
|
+
headerName: c.code,
|
|
631
|
+
hideInFilter: !0,
|
|
632
|
+
id: c.id,
|
|
633
|
+
isInitiallyVisible: d,
|
|
634
|
+
renderCell: D,
|
|
635
|
+
type: "text",
|
|
636
|
+
valueGetter: (e) => a.getRowValue(e.row.validated_content, c, n).short,
|
|
637
|
+
widthPx: 250
|
|
638
|
+
});
|
|
639
|
+
}), t.some((e) => e.id) && i.push({
|
|
640
|
+
headerName: l("case_id"),
|
|
641
|
+
hideInFilter: !0,
|
|
642
|
+
id: "case_id",
|
|
643
|
+
isInitiallyVisible: !0,
|
|
644
|
+
type: "text",
|
|
645
|
+
valueGetter: (e) => e.row.id || "",
|
|
646
|
+
widthPx: 250
|
|
647
|
+
}), i.push(Me.createActionsColumn({
|
|
648
|
+
getActions: (e) => {
|
|
649
|
+
let t = [];
|
|
650
|
+
return t.push(/* @__PURE__ */ $(ie, {
|
|
651
|
+
onClick: () => {
|
|
652
|
+
u.current?.open({
|
|
653
|
+
caseContent: e.row.validated_content,
|
|
654
|
+
caseId: e.row.id,
|
|
655
|
+
completeCaseType: n,
|
|
656
|
+
enabledColIds: n.ordered_col_ids,
|
|
657
|
+
formId: "edit-case-form"
|
|
658
|
+
});
|
|
659
|
+
},
|
|
660
|
+
children: [/* @__PURE__ */ Q(z, { children: /* @__PURE__ */ Q(Ee, {}) }), /* @__PURE__ */ Q(B, { children: l`Edit` })]
|
|
661
|
+
}, "editCase")), t;
|
|
662
|
+
},
|
|
663
|
+
t: l
|
|
664
|
+
})), i;
|
|
665
|
+
}, [
|
|
666
|
+
t,
|
|
667
|
+
w,
|
|
668
|
+
C,
|
|
669
|
+
E,
|
|
670
|
+
T,
|
|
671
|
+
n,
|
|
672
|
+
l,
|
|
673
|
+
e,
|
|
674
|
+
h,
|
|
675
|
+
D,
|
|
676
|
+
r
|
|
677
|
+
]),
|
|
678
|
+
createFiltersFromColumns: !0,
|
|
679
|
+
rows: t,
|
|
680
|
+
store: s
|
|
681
|
+
}), /* @__PURE__ */ $(Z, { children: [
|
|
682
|
+
/* @__PURE__ */ Q(L, { children: /* @__PURE__ */ Q(Ae, { ContainerProps: { sx: {
|
|
683
|
+
display: "inline-block",
|
|
684
|
+
float: "right"
|
|
685
|
+
} } }) }),
|
|
686
|
+
/* @__PURE__ */ Q(ke, { font: c["gen-epix-ui-casedb"].lineList.font }),
|
|
687
|
+
/* @__PURE__ */ Q(S, {
|
|
688
|
+
onSubmit: g,
|
|
689
|
+
ref: u
|
|
690
|
+
}),
|
|
691
|
+
/* @__PURE__ */ Q(qe, {
|
|
692
|
+
onSubmit: _,
|
|
693
|
+
ref: d
|
|
694
|
+
})
|
|
695
|
+
] });
|
|
696
|
+
}, Ye = ({ onGoBackButtonClick: e, onProceedButtonClick: t }) => {
|
|
697
|
+
let { t: n } = X(), r = me(), i = l(W(p), (e) => e.completeCaseType), a = l(r, (e) => e.selectedIds);
|
|
698
|
+
return /* @__PURE__ */ Q(Ve, {
|
|
699
|
+
onGoBackButtonClick: e,
|
|
700
|
+
onProceedButtonClick: t,
|
|
701
|
+
proceedDisabled: !a.length || a.length > i.props.create_max_n_cases,
|
|
702
|
+
proceedLabel: a.length ? n("Proceed with {{count}} selected cases", { count: a.length }) : n("Proceed")
|
|
703
|
+
});
|
|
704
|
+
}, Xe = Ke(({ caseTypeId: e }) => {
|
|
705
|
+
let { t } = X(), n = W(p), r = l(n, (e) => e.goToNextStep), i = l(n, (e) => e.goToPreviousStep), o = l(n, (e) => e.completeCaseType), s = l(n, (e) => e.casesForVerificationFromSourceData), c = l(n, (e) => e.createdInDataCollectionId), u = l(n, (e) => e.validateCasesQueryKey), f = l(n, (e) => e.caseRightsColMap), [m, h] = Y(!1), [g, _] = Y(!1), [v, y] = Y(null), b = J([]), x = J(null), S = J(null), C = G((e, t, n) => s[t.rowIndex]?.case?.content[e.id] ?? "", [s]), w = xe({
|
|
706
|
+
enabled: s.length > 0,
|
|
707
|
+
gcTime: Infinity,
|
|
708
|
+
queryFn: async ({ signal: t }) => (await k.getInstance().uploadCases(N.deepNullifyEmptyStrings({
|
|
709
|
+
case_batch: { cases: s },
|
|
710
|
+
case_type_id: e,
|
|
711
|
+
default_created_in_data_collection_id: c ?? void 0,
|
|
712
|
+
on_exists: M.UPDATE,
|
|
713
|
+
verify_only: !0
|
|
714
|
+
}), { signal: t })).data,
|
|
715
|
+
queryKey: u,
|
|
716
|
+
select: (e) => e.cases.map((e, t) => ({
|
|
717
|
+
...e,
|
|
718
|
+
id: s[t].id
|
|
719
|
+
})),
|
|
720
|
+
staleTime: Infinity
|
|
721
|
+
}), T = _e([w]), E = q(() => pe({ idSelectorCallback: (e) => e.id }), []), D = l(E, d((e) => e.setSelectedIds)), O = G(async (t) => {
|
|
722
|
+
_(!0);
|
|
723
|
+
try {
|
|
724
|
+
let n = (await k.getInstance().uploadCases(N.deepNullifyEmptyStrings({
|
|
725
|
+
case_batch: { cases: t.map(({ content: e, row: t }, n) => {
|
|
726
|
+
let r = s.find((e) => e.id === t.id);
|
|
727
|
+
return { case: {
|
|
728
|
+
case_type_id: o.id,
|
|
729
|
+
content: Object.fromEntries(Object.entries(e).map(([t]) => {
|
|
730
|
+
let n = o.cols[t];
|
|
731
|
+
if (!n) return [t, e[t]];
|
|
732
|
+
let r = a.getRowValue(e, n, o);
|
|
733
|
+
return [t, r.isMissing ? "" : r.long];
|
|
734
|
+
})),
|
|
735
|
+
created_in_data_collection_id: r?.case?.created_in_data_collection_id ?? c,
|
|
736
|
+
id: t.id ?? s[n].id
|
|
737
|
+
} };
|
|
738
|
+
}) },
|
|
739
|
+
case_type_id: e,
|
|
740
|
+
default_created_in_data_collection_id: c ?? void 0,
|
|
741
|
+
on_exists: M.UPDATE,
|
|
742
|
+
verify_only: !0
|
|
743
|
+
}))).data, r = new Map(t.map(({ row: e }, t) => [e.id, n.cases[t]]));
|
|
744
|
+
ee.getInstance().queryClient.setQueryData(u, { cases: w.data.map((e) => {
|
|
745
|
+
let t = r.get(e.id);
|
|
746
|
+
return t ? {
|
|
747
|
+
...t,
|
|
748
|
+
id: e.id
|
|
749
|
+
} : e;
|
|
750
|
+
}) });
|
|
751
|
+
let i = [];
|
|
752
|
+
if (t.forEach(({ row: e }, t) => {
|
|
753
|
+
let r = n.cases[t];
|
|
754
|
+
r.status !== j.SKIPPED && r.status !== j.SUCCESS && r.status !== j.UPDATED && (b.current.includes(e.id) || (b.current.push(e.id), i.push(e.id)));
|
|
755
|
+
}), i.length > 0) {
|
|
756
|
+
let e = E.getState().selectedIds, t = i.filter((t) => !e.includes(t));
|
|
757
|
+
t.length > 0 && D([...e, ...t]);
|
|
758
|
+
}
|
|
759
|
+
} catch (e) {
|
|
760
|
+
y(e);
|
|
761
|
+
} finally {
|
|
762
|
+
_(!1);
|
|
763
|
+
}
|
|
764
|
+
}, [
|
|
765
|
+
e,
|
|
766
|
+
w.data,
|
|
767
|
+
s,
|
|
768
|
+
o,
|
|
769
|
+
c,
|
|
770
|
+
D,
|
|
771
|
+
E,
|
|
772
|
+
u
|
|
773
|
+
]), P = G(async (e) => {
|
|
774
|
+
let t = E.getState().selectedIds;
|
|
775
|
+
await O(w.data.filter((e) => t.includes(e.id)).map((t) => ({
|
|
776
|
+
content: {
|
|
777
|
+
...t.validated_content,
|
|
778
|
+
...e[t.id]
|
|
779
|
+
},
|
|
780
|
+
row: t
|
|
781
|
+
})));
|
|
782
|
+
}, [
|
|
783
|
+
w.data,
|
|
784
|
+
O,
|
|
785
|
+
E
|
|
786
|
+
]), te = G(async (e, t) => {
|
|
787
|
+
await O([{
|
|
788
|
+
content: t,
|
|
789
|
+
row: w.data.find((t) => t.id === e)
|
|
790
|
+
}]);
|
|
791
|
+
}, [w.data, O]);
|
|
792
|
+
K(() => {
|
|
793
|
+
let e = E.subscribe((e, t) => {
|
|
794
|
+
e.selectedIds !== t.selectedIds && (b.current = e.selectedIds, h(e.selectedIds.length > o.props.create_max_n_cases));
|
|
795
|
+
});
|
|
796
|
+
return () => {
|
|
797
|
+
e();
|
|
798
|
+
};
|
|
799
|
+
}, [o.props.create_max_n_cases, E]), K(() => {
|
|
800
|
+
D((w.data ?? []).filter((e) => !e.data_issues.some((e) => e.data_issue_type === A.INVALID || e.data_issue_type === A.UNAUTHORIZED)).map((e) => e.id));
|
|
801
|
+
}, [w.data, D]);
|
|
802
|
+
let ne = G(async () => {
|
|
803
|
+
let e = E.getState().selectedIds, t = w.data.filter((t) => e.includes(t.id) && !t.data_issues.some((e) => e.data_issue_type === A.INVALID));
|
|
804
|
+
n.setState((e) => ({
|
|
805
|
+
...e,
|
|
806
|
+
selectedIdsForUpload: t.map((e) => e.id),
|
|
807
|
+
validatedCases: w.data
|
|
808
|
+
})), await r();
|
|
809
|
+
}, [
|
|
810
|
+
w.data,
|
|
811
|
+
r,
|
|
812
|
+
n,
|
|
813
|
+
E
|
|
814
|
+
]), R = G(async () => {
|
|
815
|
+
n.setState((e) => ({
|
|
816
|
+
...e,
|
|
817
|
+
selectedIdsForUpload: b.current,
|
|
818
|
+
validatedCases: w.data
|
|
819
|
+
})), await r();
|
|
820
|
+
}, [
|
|
821
|
+
r,
|
|
822
|
+
w.data,
|
|
823
|
+
n
|
|
824
|
+
]), re = G(async () => {
|
|
825
|
+
if (w.data.some((e) => E.getState().selectedIds.includes(e.id) && (e.data_issues.some((e) => e.data_issue_type === A.INVALID) || e.status === j.FAILED))) {
|
|
826
|
+
x.current?.open();
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
829
|
+
if (w.data.some((e) => !E.getState().selectedIds.includes(e.id) && !e.data_issues.some((e) => e.data_issue_type === A.INVALID))) {
|
|
830
|
+
S.current?.open();
|
|
831
|
+
return;
|
|
832
|
+
}
|
|
833
|
+
await R();
|
|
834
|
+
}, [
|
|
835
|
+
w.data,
|
|
836
|
+
R,
|
|
837
|
+
E
|
|
838
|
+
]), z = G(() => {
|
|
839
|
+
i();
|
|
840
|
+
}, [i]);
|
|
841
|
+
return /* @__PURE__ */ $(L, {
|
|
842
|
+
sx: {
|
|
843
|
+
display: "grid",
|
|
844
|
+
gridTemplateRows: `${m ? "max-content" : ""} max-content auto max-content`,
|
|
845
|
+
height: "100%",
|
|
846
|
+
position: "relative",
|
|
847
|
+
width: "100%"
|
|
848
|
+
},
|
|
849
|
+
children: [
|
|
850
|
+
/* @__PURE__ */ Q(fe, {
|
|
851
|
+
store: E,
|
|
852
|
+
children: /* @__PURE__ */ $(he, {
|
|
853
|
+
error: v,
|
|
854
|
+
inlineSpinner: !0,
|
|
855
|
+
loadables: T,
|
|
856
|
+
loadingMessage: t("Validating cases"),
|
|
857
|
+
takingLongerTimeoutMs: 1e4,
|
|
858
|
+
children: [
|
|
859
|
+
m && /* @__PURE__ */ Q(L, {
|
|
860
|
+
sx: { marginY: 2 },
|
|
861
|
+
children: /* @__PURE__ */ Q(F, {
|
|
862
|
+
severity: "error",
|
|
863
|
+
children: /* @__PURE__ */ Q(I, { children: t("You have exceeded the maximum number of {{maxCases}} cases for this case type. Please reduce the number of selected cases before proceeding.", { maxCases: o.props.create_max_n_cases }) })
|
|
864
|
+
})
|
|
865
|
+
}),
|
|
866
|
+
/* @__PURE__ */ Q(Je, {
|
|
867
|
+
caseRightsColMap: f,
|
|
868
|
+
caseUploadResults: w.data || [],
|
|
869
|
+
completeCaseType: o,
|
|
870
|
+
getOriginalCellValue: C,
|
|
871
|
+
onCaseContentEditSubmit: te,
|
|
872
|
+
onColContentEditSubmit: P,
|
|
873
|
+
tableStore: E
|
|
874
|
+
}),
|
|
875
|
+
/* @__PURE__ */ Q(Ye, {
|
|
876
|
+
onGoBackButtonClick: z,
|
|
877
|
+
onProceedButtonClick: re
|
|
878
|
+
})
|
|
879
|
+
]
|
|
880
|
+
})
|
|
881
|
+
}),
|
|
882
|
+
/* @__PURE__ */ Q(we, {
|
|
883
|
+
label: t("Revalidating cases"),
|
|
884
|
+
open: g
|
|
885
|
+
}),
|
|
886
|
+
/* @__PURE__ */ Q(Te, {
|
|
887
|
+
body: t`Some of the selected cases contain issues. If you proceed, these cases will be excluded. Are you sure you want to proceed without them?`,
|
|
888
|
+
cancelLabel: t`Cancel`,
|
|
889
|
+
confirmLabel: t`Proceed`,
|
|
890
|
+
onConfirm: ne,
|
|
891
|
+
ref: x,
|
|
892
|
+
title: t`Issues found with selected cases`
|
|
893
|
+
}),
|
|
894
|
+
/* @__PURE__ */ Q(Te, {
|
|
895
|
+
body: t`Not all cases are selected. Do you want to proceed without them?`,
|
|
896
|
+
cancelLabel: t`Cancel`,
|
|
897
|
+
confirmLabel: t`Proceed`,
|
|
898
|
+
onConfirm: R,
|
|
899
|
+
ref: S,
|
|
900
|
+
title: t`Not all cases are selected.`
|
|
901
|
+
})
|
|
902
|
+
]
|
|
903
|
+
});
|
|
904
|
+
}), Ze = () => {
|
|
905
|
+
let { t: e } = X(), r = W(p), i = l(r, (e) => e.reset), a = l(r, (e) => e.goToPreviousStep), o = l(r, (e) => e.sequenceMapping), c = l(r, (e) => e.sequenceFilesDataTransfer), u = l(r, (e) => e.validatedCases), d = l(r, (e) => e.selectedIdsForUpload), f = l(r, (e) => e.casesForVerificationFromSourceData), m = l(r, (e) => e.uploadCompleteButtonCallback), h = l(r, (e) => e.uploadCompleteButtonLabel), g = l(r, (e) => e.onUploadComplete), _ = l(r, (e) => e.completeCaseType), [v, y] = Y(0), [b, x] = Y(""), [S, C] = Y(!1), [w, T] = Y(!1), [E, D] = Y(void 0), O = q(() => t.getSequenceMappingStats(o, c), [c, o]), k = q(() => u.filter((e) => d.includes(e.id)), [u, d]);
|
|
906
|
+
K(() => {
|
|
907
|
+
let e = new AbortController(), { signal: n } = e, i = () => {
|
|
908
|
+
e.abort(), Re.getInstance().resume();
|
|
909
|
+
};
|
|
910
|
+
return S ? (Re.getInstance().pause(), (async () => {
|
|
911
|
+
let e = await t.createCasesAndUploadFiles({
|
|
912
|
+
assemblyProtocolId: r.getState().assemblyProtocolId,
|
|
913
|
+
casesForVerificationFromSourceData: f,
|
|
914
|
+
completeCaseType: r.getState().completeCaseType,
|
|
915
|
+
createdInDataCollectionId: r.getState().createdInDataCollectionId,
|
|
916
|
+
mappedColumns: r.getState().mappedColumns,
|
|
917
|
+
onComplete: () => {
|
|
918
|
+
T(!0);
|
|
919
|
+
},
|
|
920
|
+
onError: (e) => {
|
|
921
|
+
D(e);
|
|
922
|
+
},
|
|
923
|
+
onProgress: (e, t) => {
|
|
924
|
+
y(e), x(t);
|
|
925
|
+
},
|
|
926
|
+
sampleIdColId: r.getState().sampleIdColId,
|
|
927
|
+
selectedValidatedCases: k,
|
|
928
|
+
sequenceFilesDataTransfer: c,
|
|
929
|
+
sequenceMapping: o,
|
|
930
|
+
sequencingProtocolId: r.getState().sequencingProtocolId,
|
|
931
|
+
signal: n
|
|
932
|
+
});
|
|
933
|
+
g && await g(e);
|
|
934
|
+
})().catch((e) => {
|
|
935
|
+
n.aborted || D(e);
|
|
936
|
+
}), i) : i;
|
|
937
|
+
}, [
|
|
938
|
+
S,
|
|
939
|
+
c,
|
|
940
|
+
o,
|
|
941
|
+
r,
|
|
942
|
+
e,
|
|
943
|
+
k,
|
|
944
|
+
f,
|
|
945
|
+
g
|
|
946
|
+
]);
|
|
947
|
+
let A = G(async () => {
|
|
948
|
+
await i();
|
|
949
|
+
}, [i]), j = G(() => {
|
|
950
|
+
C(!0);
|
|
951
|
+
}, []), M = G(() => {
|
|
952
|
+
a();
|
|
953
|
+
}, [a]), ee = G(async () => {
|
|
954
|
+
let e = n.createCaseTypeLink(_);
|
|
955
|
+
await Be.getInstance().router.navigate(e);
|
|
956
|
+
}, [_]), N;
|
|
957
|
+
return N = E ? /* @__PURE__ */ $(L, { children: [E instanceof s && /* @__PURE__ */ $(F, {
|
|
958
|
+
severity: "error",
|
|
959
|
+
children: [/* @__PURE__ */ Q(I, { children: e("Failed to create cases during upload.") }), e("An error occurred while creating cases. Please try again or contact support if the issue persists. Cases may have been partially created. No files were uploaded.")]
|
|
960
|
+
}), /* @__PURE__ */ Q(Le, { error: E })] }) : w ? /* @__PURE__ */ $(L, { children: [/* @__PURE__ */ Q(L, { children: /* @__PURE__ */ Q(F, {
|
|
961
|
+
severity: "success",
|
|
962
|
+
children: /* @__PURE__ */ Q(I, { children: e("Upload completed.") })
|
|
963
|
+
}) }), /* @__PURE__ */ Q(L, {
|
|
964
|
+
sx: {
|
|
965
|
+
display: "flex",
|
|
966
|
+
gap: 2,
|
|
967
|
+
justifyContent: "flex-end",
|
|
968
|
+
marginBottom: 1,
|
|
969
|
+
marginTop: 2
|
|
970
|
+
},
|
|
971
|
+
children: m && h ? /* @__PURE__ */ Q(R, {
|
|
972
|
+
onClick: m,
|
|
973
|
+
variant: "contained",
|
|
974
|
+
children: h
|
|
975
|
+
}) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(R, {
|
|
976
|
+
onClick: A,
|
|
977
|
+
variant: "outlined",
|
|
978
|
+
children: e("Upload more cases")
|
|
979
|
+
}), /* @__PURE__ */ Q(R, {
|
|
980
|
+
onClick: ee,
|
|
981
|
+
variant: "contained",
|
|
982
|
+
children: e("View uploaded cases")
|
|
983
|
+
})] })
|
|
984
|
+
})] }) : S ? /* @__PURE__ */ $(L, { children: [
|
|
985
|
+
/* @__PURE__ */ Q(L, {
|
|
986
|
+
sx: { marginBottom: 4 },
|
|
987
|
+
children: /* @__PURE__ */ $(F, {
|
|
988
|
+
severity: "info",
|
|
989
|
+
children: [/* @__PURE__ */ Q(I, { children: e("Uploading cases and files.") }), e("Please wait while the cases and associated files are being uploaded. This may take a while depending on the number and size of the files being uploaded.")]
|
|
990
|
+
})
|
|
991
|
+
}),
|
|
992
|
+
/* @__PURE__ */ Q(L, {
|
|
993
|
+
sx: {
|
|
994
|
+
marginBottom: 2,
|
|
995
|
+
marginTop: 4
|
|
996
|
+
},
|
|
997
|
+
children: /* @__PURE__ */ Q(ze, { value: v })
|
|
998
|
+
}),
|
|
999
|
+
/* @__PURE__ */ Q(L, {
|
|
1000
|
+
sx: { fontWeight: 700 },
|
|
1001
|
+
children: b
|
|
1002
|
+
})
|
|
1003
|
+
] }) : /* @__PURE__ */ $(L, { children: [/* @__PURE__ */ $(L, { children: [
|
|
1004
|
+
/* @__PURE__ */ Q(L, {
|
|
1005
|
+
sx: { marginY: 2 },
|
|
1006
|
+
children: /* @__PURE__ */ Q(F, {
|
|
1007
|
+
severity: "info",
|
|
1008
|
+
children: /* @__PURE__ */ Q(I, { children: e("{{numCases}} cases are ready to be uploaded.", { numCases: k.length }) })
|
|
1009
|
+
})
|
|
1010
|
+
}),
|
|
1011
|
+
O.mappedSequenceFiles.length > 0 && /* @__PURE__ */ Q(L, {
|
|
1012
|
+
sx: { marginY: 2 },
|
|
1013
|
+
children: /* @__PURE__ */ Q(F, {
|
|
1014
|
+
severity: "info",
|
|
1015
|
+
children: /* @__PURE__ */ Q(I, { children: e("{{numSequenceFiles}} genome files are ready to be uploaded.", { numSequenceFiles: O.mappedSequenceFiles.length }) })
|
|
1016
|
+
})
|
|
1017
|
+
}),
|
|
1018
|
+
O.mappedReadsFiles.length > 0 && /* @__PURE__ */ Q(L, {
|
|
1019
|
+
sx: { marginY: 2 },
|
|
1020
|
+
children: /* @__PURE__ */ Q(F, {
|
|
1021
|
+
severity: "info",
|
|
1022
|
+
children: /* @__PURE__ */ Q(I, { children: e("{{numReadsFiles}} reads files are ready to be uploaded.", { numReadsFiles: O.mappedReadsFiles.length }) })
|
|
1023
|
+
})
|
|
1024
|
+
}),
|
|
1025
|
+
u.length - k.length > 0 && /* @__PURE__ */ Q(L, {
|
|
1026
|
+
sx: { marginY: 2 },
|
|
1027
|
+
children: /* @__PURE__ */ Q(F, {
|
|
1028
|
+
severity: "warning",
|
|
1029
|
+
children: /* @__PURE__ */ Q(I, { children: e("{{numCases}} cases were not selected and will not be uploaded.", { numCases: u.length - k.length }) })
|
|
1030
|
+
})
|
|
1031
|
+
}),
|
|
1032
|
+
O.unmappedSequenceFiles.length > 0 && /* @__PURE__ */ Q(L, {
|
|
1033
|
+
sx: { marginY: 2 },
|
|
1034
|
+
children: /* @__PURE__ */ Q(F, {
|
|
1035
|
+
severity: "warning",
|
|
1036
|
+
children: /* @__PURE__ */ Q(I, { children: e("{{unmappedSequenceFiles}} unmapped genome files will not be uploaded.", { unmappedSequenceFiles: O.unmappedSequenceFiles.length }) })
|
|
1037
|
+
})
|
|
1038
|
+
}),
|
|
1039
|
+
O.unmappedReadsFiles.length > 0 && /* @__PURE__ */ Q(L, {
|
|
1040
|
+
sx: { marginY: 2 },
|
|
1041
|
+
children: /* @__PURE__ */ Q(F, {
|
|
1042
|
+
severity: "warning",
|
|
1043
|
+
children: /* @__PURE__ */ Q(I, { children: e("{{unmappedReadsFiles}} unmapped reads files will not be uploaded.", { unmappedReadsFiles: O.unmappedReadsFiles.length }) })
|
|
1044
|
+
})
|
|
1045
|
+
})
|
|
1046
|
+
] }), /* @__PURE__ */ Q(Ve, {
|
|
1047
|
+
onGoBackButtonClick: M,
|
|
1048
|
+
onProceedButtonClick: j,
|
|
1049
|
+
proceedLabel: "Start upload"
|
|
1050
|
+
})] }), /* @__PURE__ */ Q(re, {
|
|
1051
|
+
maxWidth: "xl",
|
|
1052
|
+
sx: { height: "100%" },
|
|
1053
|
+
children: N
|
|
1054
|
+
});
|
|
1055
|
+
}, Qe = (e) => Array.from(e?.files ?? []), $e = ({ hasGenomeFiles: e, hasReadsFiles: t, hasSelectedFiles: n }) => D().shape({
|
|
1056
|
+
assemblyProtocolId: e ? O().uuid4().required() : O().nullable().notRequired(),
|
|
1057
|
+
sampleIdColId: n ? O().uuid4().required() : O().nullable().notRequired(),
|
|
1058
|
+
sequencingProtocolId: t ? O().uuid4().required() : O().nullable().notRequired()
|
|
1059
|
+
}), et = () => {
|
|
1060
|
+
let { t: e } = X(), n = ue(), r = W(p), i = l(r, (e) => e.completeCaseType), a = l(r, (e) => e.mappedColumns), o = l(r, (e) => e.validatedCases), s = l(r, (e) => e.goToNextStep), c = l(r, (e) => e.goToPreviousStep), u = l(r, (e) => e.setSequenceFilesDataTransfer), d = l(r, (e) => e.sampleIdColId), f = l(r, (e) => e.sequenceFilesDataTransfer), [m, _] = Y(f), v = de(), y = w(), b = T(), x = _e([y, b]), S = q(() => a.filter((e) => e.isSampleIdColumn).map((e) => ({
|
|
1061
|
+
label: e.col.label,
|
|
1062
|
+
value: e.col.id
|
|
1063
|
+
})), [a]), E = q(() => Qe(m), [m]), D = E.length > 0, O = q(() => E.some((e) => t.isGenomeFile(e.name)), [E]), k = q(() => E.some((e) => t.isReadsFile(e.name)), [E]), A = q(() => $e({
|
|
1064
|
+
hasGenomeFiles: O,
|
|
1065
|
+
hasReadsFiles: k,
|
|
1066
|
+
hasSelectedFiles: D
|
|
1067
|
+
}), [
|
|
1068
|
+
O,
|
|
1069
|
+
k,
|
|
1070
|
+
D
|
|
1071
|
+
]), j = q(() => ({
|
|
1072
|
+
assemblyProtocolId: r.getState().assemblyProtocolId ?? null,
|
|
1073
|
+
sampleIdColId: r.getState().sampleIdColId ?? null,
|
|
1074
|
+
sequencingProtocolId: r.getState().sequencingProtocolId ?? null
|
|
1075
|
+
}), [r]), M = h({
|
|
1076
|
+
defaultValues: j,
|
|
1077
|
+
resolver: g(A),
|
|
1078
|
+
values: j
|
|
1079
|
+
}), { handleSubmit: ee, setValue: N } = M;
|
|
1080
|
+
K(() => {
|
|
1081
|
+
y.isLoading || b.isLoading || (r.getState().sequencingProtocolId || (N("sequencingProtocolId", y.options[0]?.value || null), r.setState({ sequencingProtocolId: y.options[0]?.value || null })), r.getState().assemblyProtocolId || (N("assemblyProtocolId", b.options[0]?.value || null), r.setState({ assemblyProtocolId: b.options[0]?.value || null })), r.getState().sampleIdColId || (N("sampleIdColId", S[0]?.value || null), r.setState({ sampleIdColId: S[0]?.value || null })));
|
|
1082
|
+
}, [
|
|
1083
|
+
b.isLoading,
|
|
1084
|
+
b.options,
|
|
1085
|
+
y.isLoading,
|
|
1086
|
+
y.options,
|
|
1087
|
+
N,
|
|
1088
|
+
r,
|
|
1089
|
+
S
|
|
1090
|
+
]);
|
|
1091
|
+
let te = G((e) => {
|
|
1092
|
+
r.setState({ sequencingProtocolId: e });
|
|
1093
|
+
}, [r]), ne = G((e) => {
|
|
1094
|
+
r.setState({ assemblyProtocolId: e });
|
|
1095
|
+
}, [r]), R = G((e) => {
|
|
1096
|
+
r.setState({ sampleIdColId: e });
|
|
1097
|
+
}, [r]), re = q(() => [
|
|
1098
|
+
{
|
|
1099
|
+
definition: P.SELECT,
|
|
1100
|
+
label: e`Genome files: assembly protocol`,
|
|
1101
|
+
loading: b.isLoading,
|
|
1102
|
+
name: "assemblyProtocolId",
|
|
1103
|
+
onChange: ne,
|
|
1104
|
+
options: b.options
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
definition: P.SELECT,
|
|
1108
|
+
label: e`Reads files: sequencing protocol`,
|
|
1109
|
+
loading: y.isLoading,
|
|
1110
|
+
name: "sequencingProtocolId",
|
|
1111
|
+
onChange: te,
|
|
1112
|
+
options: y.options
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
definition: P.SELECT,
|
|
1116
|
+
label: e`Sample ID column`,
|
|
1117
|
+
name: "sampleIdColId",
|
|
1118
|
+
onChange: R,
|
|
1119
|
+
options: S
|
|
1120
|
+
}
|
|
1121
|
+
], [
|
|
1122
|
+
b.isLoading,
|
|
1123
|
+
b.options,
|
|
1124
|
+
ne,
|
|
1125
|
+
R,
|
|
1126
|
+
te,
|
|
1127
|
+
S,
|
|
1128
|
+
y.isLoading,
|
|
1129
|
+
y.options,
|
|
1130
|
+
e
|
|
1131
|
+
]), z = q(() => a.some((e) => e.isSampleIdColumn && e.sampleIdentifierIssuerId), [a]), B = q(() => d ? o.some((e) => e.validated_content[d]?.trim().length > 0) : !1, [d, o]), ie = q(() => t.getCompleteCaseTypeColStats(i), [i]), V = q(() => ie.sequenceColumns.length > 0, [ie]), H = q(() => ie.readsColumns.length > 0, [ie]), U = q(() => z && B && (V || H), [
|
|
1132
|
+
z,
|
|
1133
|
+
B,
|
|
1134
|
+
V,
|
|
1135
|
+
H
|
|
1136
|
+
]), ae = q(() => {
|
|
1137
|
+
let e = "";
|
|
1138
|
+
return V && (e += ".fa,.fasta,.fa.gz,.fasta.gz,"), H && (e += ".fq,.fastq,.fq.gz,.fastq.gz,"), e;
|
|
1139
|
+
}, [H, V]), oe = G(async () => {
|
|
1140
|
+
u(U ? m : new DataTransfer()), await ee(async () => {
|
|
1141
|
+
await s();
|
|
1142
|
+
})();
|
|
1143
|
+
}, [
|
|
1144
|
+
U,
|
|
1145
|
+
m,
|
|
1146
|
+
s,
|
|
1147
|
+
ee,
|
|
1148
|
+
u
|
|
1149
|
+
]), se = G(() => {
|
|
1150
|
+
c();
|
|
1151
|
+
}, [c]), ce = G((e) => {
|
|
1152
|
+
_(e), u(e);
|
|
1153
|
+
}, [u]), le = G((e) => /* @__PURE__ */ Q(L, {
|
|
1154
|
+
sx: {
|
|
1155
|
+
display: "grid",
|
|
1156
|
+
gap: n.spacing(1),
|
|
1157
|
+
gridTemplateColumns: "1fr 1fr 1fr"
|
|
1158
|
+
},
|
|
1159
|
+
children: e
|
|
1160
|
+
}), [n]), J = q(() => z ? B ? H ? V ? null : {
|
|
1161
|
+
message: e`The selected case type does not support uploading sequence files.`,
|
|
1162
|
+
title: e("Uploading of sequence files is disabled.")
|
|
1163
|
+
} : {
|
|
1164
|
+
message: e`The selected case type does not support uploading read files.`,
|
|
1165
|
+
title: e("Uploading of read files is disabled.")
|
|
1166
|
+
} : {
|
|
1167
|
+
message: e`No rows have a sample ID filled for the selected sample ID column.`,
|
|
1168
|
+
title: e("Uploading of files is disabled.")
|
|
1169
|
+
} : {
|
|
1170
|
+
message: e`No columns have been mapped as writable sample ID column with selected identifier issuer provider.`,
|
|
1171
|
+
title: e("Uploading of files is disabled.")
|
|
1172
|
+
}, [
|
|
1173
|
+
H,
|
|
1174
|
+
V,
|
|
1175
|
+
B,
|
|
1176
|
+
z,
|
|
1177
|
+
e
|
|
1178
|
+
]), fe = G(() => {}, []);
|
|
1179
|
+
return /* @__PURE__ */ Q(he, {
|
|
1180
|
+
loadables: x,
|
|
1181
|
+
children: /* @__PURE__ */ $(L, {
|
|
1182
|
+
sx: {
|
|
1183
|
+
display: "grid",
|
|
1184
|
+
gridTemplateRows: `${U ? "" : "max-content "}max-content auto max-content`,
|
|
1185
|
+
height: "100%",
|
|
1186
|
+
position: "relative"
|
|
1187
|
+
},
|
|
1188
|
+
children: [
|
|
1189
|
+
!U && /* @__PURE__ */ Q(L, {
|
|
1190
|
+
sx: { marginBottom: 2 },
|
|
1191
|
+
children: /* @__PURE__ */ $(F, {
|
|
1192
|
+
severity: "error",
|
|
1193
|
+
children: [/* @__PURE__ */ Q(I, { children: J.title }), J.message]
|
|
1194
|
+
})
|
|
1195
|
+
}),
|
|
1196
|
+
/* @__PURE__ */ $(L, {
|
|
1197
|
+
sx: { borderBottom: `1px solid ${n.palette.divider}` },
|
|
1198
|
+
children: [
|
|
1199
|
+
/* @__PURE__ */ Q(L, {
|
|
1200
|
+
sx: { maxWidth: n.spacing(128) },
|
|
1201
|
+
children: /* @__PURE__ */ Q(be, {
|
|
1202
|
+
formFieldDefinitions: re,
|
|
1203
|
+
formId: v,
|
|
1204
|
+
formMethods: M,
|
|
1205
|
+
onSubmit: fe,
|
|
1206
|
+
schema: A,
|
|
1207
|
+
wrapForm: le
|
|
1208
|
+
})
|
|
1209
|
+
}),
|
|
1210
|
+
!V && /* @__PURE__ */ Q(L, {
|
|
1211
|
+
sx: { marginY: 1 },
|
|
1212
|
+
children: /* @__PURE__ */ $(F, {
|
|
1213
|
+
severity: "info",
|
|
1214
|
+
children: [/* @__PURE__ */ Q(I, { children: e("Uploading of sequences has been disabled.") }), /* @__PURE__ */ Q(L, { children: e("Uploading of sequences is not supported for the selected case type.") })]
|
|
1215
|
+
})
|
|
1216
|
+
}),
|
|
1217
|
+
!H && /* @__PURE__ */ Q(L, {
|
|
1218
|
+
sx: { marginY: 1 },
|
|
1219
|
+
children: /* @__PURE__ */ $(F, {
|
|
1220
|
+
severity: "info",
|
|
1221
|
+
children: [/* @__PURE__ */ Q(I, { children: e("Uploading of read files has been disabled.") }), /* @__PURE__ */ Q(L, { children: e("Uploading of read files is not supported for the selected case type.") })]
|
|
1222
|
+
})
|
|
1223
|
+
})
|
|
1224
|
+
]
|
|
1225
|
+
}),
|
|
1226
|
+
/* @__PURE__ */ Q(L, {
|
|
1227
|
+
sx: { position: "relative" },
|
|
1228
|
+
children: /* @__PURE__ */ Q(L, {
|
|
1229
|
+
sx: {
|
|
1230
|
+
bottom: 0,
|
|
1231
|
+
height: "100%",
|
|
1232
|
+
left: 0,
|
|
1233
|
+
position: "absolute",
|
|
1234
|
+
right: 0,
|
|
1235
|
+
top: 0
|
|
1236
|
+
},
|
|
1237
|
+
children: U && /* @__PURE__ */ Q(C, {
|
|
1238
|
+
accept: ae,
|
|
1239
|
+
initialDataTransfer: f,
|
|
1240
|
+
numFilesAllowed: Infinity,
|
|
1241
|
+
onDataTransferChange: ce
|
|
1242
|
+
})
|
|
1243
|
+
})
|
|
1244
|
+
}),
|
|
1245
|
+
/* @__PURE__ */ Q(Ve, {
|
|
1246
|
+
onGoBackButtonClick: se,
|
|
1247
|
+
onProceedButtonClick: oe,
|
|
1248
|
+
proceedLabel: U ? void 0 : e`Proceed`
|
|
1249
|
+
})
|
|
1250
|
+
]
|
|
1251
|
+
})
|
|
1252
|
+
});
|
|
1253
|
+
}, tt = () => {
|
|
1254
|
+
let { t: e } = X(), n = ue(), r = W(p), i = l(r, (e) => e.goToNextStep), o = l(r, (e) => e.goToPreviousStep), s = l(r, (e) => e.completeCaseType), c = l(r, (e) => e.sampleIdColId), u = l(r, (e) => e.sequenceFilesDataTransfer), f = l(r, d((e) => {
|
|
1255
|
+
let t = e.selectedIdsForUpload;
|
|
1256
|
+
return e.validatedCases.filter((e) => t.includes(e.id));
|
|
1257
|
+
})), m = l(r, (e) => e.setSequenceMapping), h = q(() => t.getCompleteCaseTypeColStats(s), [s]), g = de(), _ = de(), v = J(r.getState().sequenceMapping), y = G(async () => {
|
|
1258
|
+
m(v.current), await i();
|
|
1259
|
+
}, [m, i]), b = G(() => {
|
|
1260
|
+
o();
|
|
1261
|
+
}, [o]), x = G(() => {
|
|
1262
|
+
let n = document.getElementById(g), r = document.getElementById(_);
|
|
1263
|
+
if (!n || !r) return;
|
|
1264
|
+
let { mappedFiles: i, numberOfFilesToMap: a, unmappedFileNames: o } = t.getSequenceMappingStats(v.current, u);
|
|
1265
|
+
n.innerHTML = a === i.length ? e("All {{numberOfFilesToMap}} files are mapped", { numberOfFilesToMap: a }) : e("{{mappedFilesLength}} of {{numberOfFilesToMap}} files mapped", {
|
|
1266
|
+
mappedFilesLength: i.length,
|
|
1267
|
+
numberOfFilesToMap: a
|
|
1268
|
+
}), r.innerHTML = a === i.length ? "" : e("Unmapped files: {{unmappedFileNames}}", { unmappedFileNames: o.join(", ") });
|
|
1269
|
+
}, [
|
|
1270
|
+
_,
|
|
1271
|
+
g,
|
|
1272
|
+
u,
|
|
1273
|
+
e
|
|
1274
|
+
]);
|
|
1275
|
+
K(() => {
|
|
1276
|
+
x();
|
|
1277
|
+
}, [x]);
|
|
1278
|
+
let S = q(() => pe({ idSelectorCallback: (e) => e.id }), []), C = G((e, t) => e.some((e) => {
|
|
1279
|
+
let n = a.getRowValue(e.validated_content, t, s);
|
|
1280
|
+
return n && !n?.isMissing;
|
|
1281
|
+
}), [s]), w = q(() => Array.from(u.files).map((e) => e.name).filter((e) => e.endsWith(".fasta") || e.endsWith(".fa") || e.endsWith(".fa.gz") || e.endsWith(".fasta.gz")), [u.files]), T = q(() => Array.from(u.files).map((e) => e.name).filter((e) => e.endsWith(".fastq") || e.endsWith(".fq") || e.endsWith(".fq.gz") || e.endsWith(".fastaq.gz")), [u.files]), E = G((e) => {
|
|
1282
|
+
let { dropDownOptions: t, dropDownValue: n, label: r, onChange: i } = e;
|
|
1283
|
+
return /* @__PURE__ */ Q(ne, {
|
|
1284
|
+
freeSolo: !0,
|
|
1285
|
+
fullWidth: !0,
|
|
1286
|
+
onChange: (e, t) => {
|
|
1287
|
+
i(t), m(v.current), x();
|
|
1288
|
+
},
|
|
1289
|
+
options: t,
|
|
1290
|
+
renderInput: (e) => /* @__PURE__ */ Q(se, {
|
|
1291
|
+
...e,
|
|
1292
|
+
label: r,
|
|
1293
|
+
size: "small"
|
|
1294
|
+
}),
|
|
1295
|
+
sx: { lineHeight: "initial" },
|
|
1296
|
+
value: n
|
|
1297
|
+
});
|
|
1298
|
+
}, [m, x]), D = G((e) => {
|
|
1299
|
+
let t = s.cols[e.id], n = e.row.id;
|
|
1300
|
+
return /* @__PURE__ */ Q(L, {
|
|
1301
|
+
sx: {
|
|
1302
|
+
alignItems: "center",
|
|
1303
|
+
display: "flex",
|
|
1304
|
+
flexDirection: "column",
|
|
1305
|
+
height: "100%",
|
|
1306
|
+
justifyContent: "center"
|
|
1307
|
+
},
|
|
1308
|
+
children: E({
|
|
1309
|
+
dropDownOptions: w,
|
|
1310
|
+
dropDownValue: v.current?.[e.row.id]?.sequenceFileNames[t.id] || "",
|
|
1311
|
+
label: t.label,
|
|
1312
|
+
onChange: (e) => {
|
|
1313
|
+
e ? v.current[n].sequenceFileNames[t.id] = e : delete v.current?.[n]?.sequenceFileNames[t.id];
|
|
1314
|
+
}
|
|
1315
|
+
})
|
|
1316
|
+
});
|
|
1317
|
+
}, [
|
|
1318
|
+
s,
|
|
1319
|
+
E,
|
|
1320
|
+
w
|
|
1321
|
+
]), O = G((e) => {
|
|
1322
|
+
let t = s.cols[e.id], n = h.sequenceColumns.includes(t), r = e.row.id, i = v.current?.[r]?.readsFileNames?.[t.id]?.fwd || "", a = v.current?.[r]?.readsFileNames?.[t.id]?.rev || "";
|
|
1323
|
+
return /* @__PURE__ */ $(L, {
|
|
1324
|
+
sx: {
|
|
1325
|
+
alignItems: "center",
|
|
1326
|
+
display: "flex",
|
|
1327
|
+
flexDirection: "row",
|
|
1328
|
+
gap: 1,
|
|
1329
|
+
height: "100%",
|
|
1330
|
+
justifyContent: "center"
|
|
1331
|
+
},
|
|
1332
|
+
children: [E({
|
|
1333
|
+
dropDownOptions: n ? w : T,
|
|
1334
|
+
dropDownValue: i,
|
|
1335
|
+
label: `${t.label} FWD`,
|
|
1336
|
+
onChange: (e) => {
|
|
1337
|
+
e ? v.current[r].readsFileNames[t.id].fwd = e : delete v.current?.[r]?.readsFileNames?.[t.id]?.fwd;
|
|
1338
|
+
}
|
|
1339
|
+
}), E({
|
|
1340
|
+
dropDownOptions: n ? w : T,
|
|
1341
|
+
dropDownValue: a,
|
|
1342
|
+
label: `${t.label} REV`,
|
|
1343
|
+
onChange: (e) => {
|
|
1344
|
+
e ? v.current[r].readsFileNames[t.id].rev = e : delete v.current?.[r]?.readsFileNames?.[t.id]?.rev;
|
|
1345
|
+
}
|
|
1346
|
+
})]
|
|
1347
|
+
});
|
|
1348
|
+
}, [
|
|
1349
|
+
s,
|
|
1350
|
+
h.sequenceColumns,
|
|
1351
|
+
E,
|
|
1352
|
+
w,
|
|
1353
|
+
T
|
|
1354
|
+
]);
|
|
1355
|
+
return Ne({
|
|
1356
|
+
columns: q(() => {
|
|
1357
|
+
let e = [];
|
|
1358
|
+
e.push(Me.createReadableIndexColumn());
|
|
1359
|
+
let t = [
|
|
1360
|
+
...h.sampleIdColumns,
|
|
1361
|
+
...h.sequenceColumns,
|
|
1362
|
+
...h.readsColumns
|
|
1363
|
+
], n = h.sampleIdColumns.find((e) => e.id === c);
|
|
1364
|
+
n && C(f, n) && e.push({
|
|
1365
|
+
headerName: n.label,
|
|
1366
|
+
hideInFilter: !0,
|
|
1367
|
+
id: n.id,
|
|
1368
|
+
isInitiallyVisible: !0,
|
|
1369
|
+
type: "text",
|
|
1370
|
+
valueGetter: (e) => a.getRowValue(e.row.validated_content, n, s).short,
|
|
1371
|
+
widthPx: 300
|
|
1372
|
+
}), h.sequenceColumns.forEach((t) => {
|
|
1373
|
+
e.push({
|
|
1374
|
+
cellTitleGetter: () => null,
|
|
1375
|
+
headerName: t.label,
|
|
1376
|
+
hideInFilter: !0,
|
|
1377
|
+
id: t.id,
|
|
1378
|
+
isInitiallyVisible: !0,
|
|
1379
|
+
renderCell: D,
|
|
1380
|
+
type: "text",
|
|
1381
|
+
valueGetter: (e) => a.getRowValue(e.row.validated_content, t, s).short,
|
|
1382
|
+
widthPx: 400
|
|
1383
|
+
});
|
|
1384
|
+
}), h.readsColumns.forEach((t) => {
|
|
1385
|
+
e.push({
|
|
1386
|
+
cellTitleGetter: () => null,
|
|
1387
|
+
headerName: t.label,
|
|
1388
|
+
hideInFilter: !0,
|
|
1389
|
+
id: t.id,
|
|
1390
|
+
isInitiallyVisible: !0,
|
|
1391
|
+
renderCell: O,
|
|
1392
|
+
type: "text",
|
|
1393
|
+
valueGetter: (e) => a.getRowValue(e.row.validated_content, t, s).short,
|
|
1394
|
+
widthPx: 800
|
|
1395
|
+
});
|
|
1396
|
+
});
|
|
1397
|
+
let r = /* @__PURE__ */ new Set();
|
|
1398
|
+
f.forEach((e) => {
|
|
1399
|
+
Object.keys(e.validated_content || {}).forEach((e) => r.add(e));
|
|
1400
|
+
});
|
|
1401
|
+
let i = [
|
|
1402
|
+
...h.sequenceColumns.map((e) => e.id),
|
|
1403
|
+
...h.readsColumns.map((e) => e.id),
|
|
1404
|
+
n?.id
|
|
1405
|
+
];
|
|
1406
|
+
return s.ordered_col_ids.forEach((n) => {
|
|
1407
|
+
if (i.includes(n) || !r.has(n) || t.find((e) => e.id === n)) return;
|
|
1408
|
+
let o = s.cols[n];
|
|
1409
|
+
o && e.push({
|
|
1410
|
+
headerName: o.code,
|
|
1411
|
+
hideInFilter: !0,
|
|
1412
|
+
id: o.id,
|
|
1413
|
+
isInitiallyVisible: !0,
|
|
1414
|
+
type: "text",
|
|
1415
|
+
valueGetter: (e) => a.getRowValue(e.row.validated_content, o, s).short,
|
|
1416
|
+
widthPx: 250
|
|
1417
|
+
});
|
|
1418
|
+
}), e;
|
|
1419
|
+
}, [
|
|
1420
|
+
C,
|
|
1421
|
+
s,
|
|
1422
|
+
h.readsColumns,
|
|
1423
|
+
h.sampleIdColumns,
|
|
1424
|
+
h.sequenceColumns,
|
|
1425
|
+
O,
|
|
1426
|
+
D,
|
|
1427
|
+
c,
|
|
1428
|
+
f
|
|
1429
|
+
]),
|
|
1430
|
+
createFiltersFromColumns: !0,
|
|
1431
|
+
rows: f,
|
|
1432
|
+
store: S
|
|
1433
|
+
}), /* @__PURE__ */ $(L, {
|
|
1434
|
+
sx: {
|
|
1435
|
+
display: "grid",
|
|
1436
|
+
gridTemplateRows: "max-content auto max-content",
|
|
1437
|
+
height: "100%"
|
|
1438
|
+
},
|
|
1439
|
+
children: [/* @__PURE__ */ Q(L, {
|
|
1440
|
+
sx: { paddingBottom: 1 },
|
|
1441
|
+
children: /* @__PURE__ */ $(F, {
|
|
1442
|
+
severity: "info",
|
|
1443
|
+
children: [/* @__PURE__ */ Q(I, { id: g }), /* @__PURE__ */ Q(L, { id: _ })]
|
|
1444
|
+
})
|
|
1445
|
+
}), /* @__PURE__ */ $(fe, {
|
|
1446
|
+
store: S,
|
|
1447
|
+
children: [/* @__PURE__ */ Q(ke, {
|
|
1448
|
+
font: n["gen-epix-ui-casedb"].lineList.font,
|
|
1449
|
+
rowHeight: 7
|
|
1450
|
+
}), /* @__PURE__ */ Q(Ve, {
|
|
1451
|
+
onGoBackButtonClick: b,
|
|
1452
|
+
onProceedButtonClick: y
|
|
1453
|
+
})]
|
|
1454
|
+
})]
|
|
1455
|
+
});
|
|
1456
|
+
}, nt = () => {
|
|
1457
|
+
let { t: e } = X(), t = ue(), n = W(p), r = l(n, (e) => e.completeCaseType), i = l(n, (e) => e.activeStep), a = l(n, (e) => e.stepOrder), o = q(() => ({
|
|
1458
|
+
[f.CREATE_CASES]: e`Submit`,
|
|
1459
|
+
[f.MAP_COLUMNS]: e`Map columns`,
|
|
1460
|
+
[f.MAP_SEQUENCES]: e`Map sequences`,
|
|
1461
|
+
[f.PREVIEW]: e`Preview`,
|
|
1462
|
+
[f.SELECT_FILE]: e`Select file`,
|
|
1463
|
+
[f.SELECT_SEQUENCE_FILES]: e`Select sequence files`
|
|
1464
|
+
}), [e]), s = q(() => [f.SELECT_SEQUENCE_FILES, f.MAP_SEQUENCES], []), c = q(() => a.map((e) => ({
|
|
1465
|
+
key: String(e),
|
|
1466
|
+
label: o[e],
|
|
1467
|
+
optional: s.includes(e)
|
|
1468
|
+
})), [
|
|
1469
|
+
s,
|
|
1470
|
+
o,
|
|
1471
|
+
a
|
|
1472
|
+
]);
|
|
1473
|
+
return /* @__PURE__ */ $(ve, {
|
|
1474
|
+
sx: {
|
|
1475
|
+
display: "grid",
|
|
1476
|
+
gridTemplateRows: "max-content auto",
|
|
1477
|
+
height: "100%",
|
|
1478
|
+
position: "relative",
|
|
1479
|
+
width: "100%"
|
|
1480
|
+
},
|
|
1481
|
+
children: [/* @__PURE__ */ Q(re, { children: /* @__PURE__ */ Q(ye, {
|
|
1482
|
+
activeStep: String(i),
|
|
1483
|
+
steps: c,
|
|
1484
|
+
sx: { marginY: 2 }
|
|
1485
|
+
}) }), /* @__PURE__ */ $(ve, {
|
|
1486
|
+
sx: {
|
|
1487
|
+
height: `calc(100% - ${t.spacing(4)})`,
|
|
1488
|
+
marginBottom: 2,
|
|
1489
|
+
marginTop: 2,
|
|
1490
|
+
position: "relative"
|
|
1491
|
+
},
|
|
1492
|
+
children: [
|
|
1493
|
+
i === f.SELECT_FILE && /* @__PURE__ */ Q(He, {}),
|
|
1494
|
+
i === f.MAP_COLUMNS && /* @__PURE__ */ Q(Ge, {}),
|
|
1495
|
+
i === f.PREVIEW && /* @__PURE__ */ Q(Xe, { caseTypeId: r.id }),
|
|
1496
|
+
i === f.SELECT_SEQUENCE_FILES && /* @__PURE__ */ Q(et, {}),
|
|
1497
|
+
i === f.MAP_SEQUENCES && /* @__PURE__ */ Q(tt, {}),
|
|
1498
|
+
i === f.CREATE_CASES && /* @__PURE__ */ Q(Ze, {})
|
|
1499
|
+
]
|
|
1500
|
+
})]
|
|
1501
|
+
});
|
|
1502
|
+
};
|
|
1503
|
+
//#endregion
|
|
1504
|
+
export { nt as t };
|
|
1505
|
+
|
|
1506
|
+
//# sourceMappingURL=Upload.js.map
|