@gen-epix/ui-client-casedb 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/mui.d.ts +1 -1
- package/dist/@types/{ui-casedb.d.ts → ui-client-casedb.d.ts} +1 -1
- package/dist/_chunks/AddCasesToEventDialog.js +74 -74
- package/dist/_chunks/AddCasesToEventDialog.js.map +1 -1
- package/dist/_chunks/CaseContentForm.js +2 -2
- package/dist/_chunks/CaseContentForm.js.map +1 -1
- package/dist/_chunks/CaseDbDownloadUtil.js +40 -35
- package/dist/_chunks/CaseDbDownloadUtil.js.map +1 -1
- package/dist/_chunks/CaseInfoDialog.js +195 -195
- package/dist/_chunks/CaseInfoDialog.js.map +1 -1
- package/dist/_chunks/CaseSetInfoDialog.js +131 -131
- package/dist/_chunks/CaseSetInfoDialog.js.map +1 -1
- package/dist/_chunks/CaseTypeInfoDialog.js +63 -61
- package/dist/_chunks/CaseTypeInfoDialog.js.map +1 -1
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js +6 -6
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js.map +1 -1
- package/dist/_chunks/CompletCaseTypeLoader.js +3 -3
- package/dist/_chunks/CompletCaseTypeLoader.js.map +1 -1
- package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js +1 -1
- package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js.map +1 -1
- package/dist/_chunks/CustomTabPanel.js.map +1 -1
- package/dist/_chunks/Dashboard.js +399 -386
- package/dist/_chunks/Dashboard.js.map +1 -1
- package/dist/_chunks/DashboardStoreLoader.js +5 -5
- package/dist/_chunks/DashboardStoreLoader.js.map +1 -1
- package/dist/_chunks/DataCollectionAccessInfo.js +21 -21
- package/dist/_chunks/DataCollectionAccessInfo.js.map +1 -1
- package/dist/_chunks/EpiCurveUtil.js +4 -4
- package/dist/_chunks/EpiCurveUtil.js.map +1 -1
- package/dist/_chunks/EpiCurveWidget.js +189 -183
- package/dist/_chunks/EpiCurveWidget.js.map +1 -1
- package/dist/_chunks/FilterUtil.js +103 -101
- package/dist/_chunks/FilterUtil.js.map +1 -1
- package/dist/_chunks/FindSimilarCasesDialog.js +16 -16
- package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -1
- package/dist/_chunks/FindSimilarCasesUtil.js +9 -9
- package/dist/_chunks/FindSimilarCasesUtil.js.map +1 -1
- package/dist/_chunks/HomePageTrends.js +8 -8
- package/dist/_chunks/HomePageTrends.js.map +1 -1
- package/dist/_chunks/LegendaItem.js +3 -3
- package/dist/_chunks/LegendaItem.js.map +1 -1
- package/dist/_chunks/LineListWidget.js +23 -21
- package/dist/_chunks/LineListWidget.js.map +1 -1
- package/dist/_chunks/PanelSeparator.js +374 -384
- package/dist/_chunks/PanelSeparator.js.map +1 -1
- package/dist/_chunks/Upload.js +222 -207
- package/dist/_chunks/Upload.js.map +1 -1
- package/dist/_chunks/UploadUtil.js +1970 -841
- package/dist/_chunks/UploadUtil.js.map +1 -1
- package/dist/_chunks/UserRightsDialog.js +12 -12
- package/dist/_chunks/UserRightsDialog.js.map +1 -1
- package/dist/_chunks/_MapCache.js +2 -2
- package/dist/_chunks/_baseGet.js +1 -1
- package/dist/_chunks/_baseGet.js.map +1 -1
- package/dist/_chunks/_baseIteratee.js +1 -1
- package/dist/_chunks/_baseIteratee.js.map +1 -1
- package/dist/_chunks/_setToString.js.map +1 -1
- package/dist/_chunks/{chunk-KS7C4IRE.js → chunk-BV7QT456.js} +330 -495
- package/dist/_chunks/chunk-BV7QT456.js.map +1 -0
- package/dist/_chunks/cloneDeep.js +11 -9
- package/dist/_chunks/cloneDeep.js.map +1 -1
- package/dist/_chunks/dashboardStore.js +259 -261
- package/dist/_chunks/dashboardStore.js.map +1 -1
- package/dist/_chunks/esm.js +2900 -2868
- package/dist/_chunks/esm.js.map +1 -1
- package/dist/_chunks/format.js +8 -8
- package/dist/_chunks/format.js.map +1 -1
- package/dist/_chunks/index.esm.js +919 -796
- package/dist/_chunks/index.esm.js.map +1 -1
- package/dist/_chunks/index.module.js +1 -1
- package/dist/_chunks/index.module.js.map +1 -1
- package/dist/_chunks/protectedTokens.js +79 -81
- package/dist/_chunks/protectedTokens.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/round.js +1 -1
- package/dist/_chunks/round.js.map +1 -1
- package/dist/_chunks/shallow.js +2 -2
- package/dist/_chunks/shallow.js.map +1 -1
- package/dist/_chunks/sync.js +198 -161
- package/dist/_chunks/sync.js.map +1 -1
- package/dist/_chunks/toDate.js +1 -1
- package/dist/_chunks/toDate.js.map +1 -1
- package/dist/_chunks/toString.js +1 -1
- package/dist/_chunks/toString.js.map +1 -1
- package/dist/_chunks/useUnit.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +5 -5
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/filters/SelectionFilter.d.ts +2 -2
- package/dist/classes/filters/TreeFilter.d.ts +2 -2
- package/dist/classes/services/DataService/index.js +3 -3
- package/dist/classes/services/DataService/index.js.map +1 -1
- package/dist/classes/services/EventBusService/EventBusService.d.ts +1 -1
- package/dist/classes/services/EventBusService/index.js.map +1 -1
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.js +1 -1
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.js.map +1 -1
- package/dist/components/app/CaseDbApp/index.js +8 -5
- package/dist/components/app/CaseDbApp/index.js.map +1 -1
- package/dist/components/form/fields/ArrangementEditor/index.js +83 -83
- package/dist/components/form/fields/ArrangementEditor/index.js.map +1 -1
- package/dist/components/ui/AddCasesToEventDialog/AddCasesToEventDialog.d.ts +2 -2
- package/dist/components/ui/CaseContentFormDialog/CaseContentFormDialog.d.ts +2 -2
- package/dist/components/ui/CaseContentFormDialog/index.js +1 -1
- package/dist/components/ui/CaseContentFormDialog/index.js.map +1 -1
- package/dist/components/ui/CaseInfoDialog/CaseInfoDialog.d.ts +2 -2
- package/dist/components/ui/CaseSetInfoDialog/CaseSetInfoDialog.d.ts +2 -2
- package/dist/components/ui/CaseSummary/index.js +1 -1
- package/dist/components/ui/CaseSummary/index.js.map +1 -1
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialog.d.ts +2 -2
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogContent.d.ts +1 -1
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogWithLoader.d.ts +2 -2
- package/dist/components/ui/ContextMenu/index.js.map +1 -1
- package/dist/components/ui/CreateEventDialog/CreateEventDialog.d.ts +2 -2
- package/dist/components/ui/CreateEventDialog/index.js +9 -9
- package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
- package/dist/components/ui/Dashboard/DashboardDownloadSidebarItem.d.ts +1 -1
- package/dist/components/ui/Dashboard/DashboardSettingsSidebarItem.d.ts +1 -1
- package/dist/components/ui/Dashboard/DashboardWidget.d.ts +1 -1
- package/dist/components/ui/DashboardEditCases/index.js +1 -1
- package/dist/components/ui/DashboardEditCases/index.js.map +1 -1
- package/dist/components/ui/FileSelector/index.js +46 -46
- package/dist/components/ui/FileSelector/index.js.map +1 -1
- package/dist/components/ui/FindSimilarCasesDialog/FindSimilarCasesDialog.d.ts +2 -2
- package/dist/components/ui/Grouping/index.js +50 -50
- package/dist/components/ui/Grouping/index.js.map +1 -1
- package/dist/components/ui/HistogramWidget/index.js +1 -1
- package/dist/components/ui/HistogramWidget/index.js.map +1 -1
- package/dist/components/ui/MapWidget/index.js +7 -3
- package/dist/components/ui/MapWidget/index.js.map +1 -1
- package/dist/components/ui/RemoveCasesFromEventDialog/RemoveCasesFromEventDialog.d.ts +2 -2
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js +6 -6
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js.map +1 -1
- package/dist/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.d.ts +2 -2
- package/dist/components/ui/SequenceDownloadDialog/SequenceDownloadDialog.d.ts +2 -2
- package/dist/components/ui/SequenceDownloadDialog/index.js +22 -22
- package/dist/components/ui/SequenceDownloadDialog/index.js.map +1 -1
- package/dist/components/ui/TreeDescription/index.js.map +1 -1
- package/dist/components/ui/TreeWidget/index.js +11 -11
- package/dist/components/ui/TreeWidget/index.js.map +1 -1
- package/dist/components/ui/Upload/UploadCaseResultTable.d.ts +2 -2
- package/dist/components/ui/Upload/UploadEditColumnValuesDialog.d.ts +2 -2
- package/dist/components/ui/UserRightsDialog/UserRightsDialog.d.ts +2 -2
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/UsersEffectiveRightsDetailsDialog.d.ts +2 -2
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js +25 -11
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js.map +1 -1
- package/dist/components/ui/Warning/index.js.map +1 -1
- package/dist/components/ui/WidgetHeaderIconButton/index.js.map +1 -1
- package/dist/components/ui/WidgetMenu/WidgetMenu.d.ts +1 -1
- package/dist/components/ui/WidgetMenu/index.js +2 -2
- package/dist/components/ui/WidgetMenu/index.js.map +1 -1
- package/dist/components/ui/WidgetUnavailable/index.js.map +1 -1
- package/dist/constants/query.d.ts +1 -1
- package/dist/constants/query.js +1 -1
- package/dist/constants/query.js.map +1 -1
- package/dist/context/caseAbac/CaseAbacContext.d.ts +1 -1
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.js +3 -3
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.js.map +1 -1
- package/dist/dataHooks/useAssemblyProtocolsQuery/useAssemblyProtocolsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseRightsQuery/index.js +2 -2
- package/dist/dataHooks/useCaseRightsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetCategoriesQuery/useCaseSetCategoriesQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseSetRightsQuery/index.js +2 -2
- package/dist/dataHooks/useCaseSetRightsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetStatsQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetStatsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetStatsQuery/useCaseSetStatsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseSetStatusesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetStatusesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetStatusesQuery/useCaseSetStatusesQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseSetsQuery/index.js +3 -3
- package/dist/dataHooks/useCaseSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseSetsQuery/useCaseSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/useCaseTypeSetCategoriesQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/useCaseTypeSetCategoryPurposeQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js +2 -2
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetsQuery/index.js +3 -3
- package/dist/dataHooks/useCaseTypeSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypeSetsQuery/useCaseTypeSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useCaseTypeStatsQuery/index.js +2 -2
- package/dist/dataHooks/useCaseTypeStatsQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypesQuery/index.js +3 -3
- package/dist/dataHooks/useCaseTypesQuery/index.js.map +1 -1
- package/dist/dataHooks/useCaseTypesQuery/useCaseTypesQuery.d.ts +1 -1
- package/dist/dataHooks/useColSetMembersQuery/index.js +2 -2
- package/dist/dataHooks/useColSetMembersQuery/index.js.map +1 -1
- package/dist/dataHooks/useColSetsQuery/index.js +3 -3
- package/dist/dataHooks/useColSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useColSetsQuery/useColSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useColTypesQuery/index.js.map +1 -1
- package/dist/dataHooks/useColTypesQuery/useColTypesQuery.d.ts +1 -1
- package/dist/dataHooks/useColsQuery/index.js +3 -3
- package/dist/dataHooks/useColsQuery/index.js.map +1 -1
- package/dist/dataHooks/useColsQuery/useColsQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptQuery/index.js +3 -3
- package/dist/dataHooks/useConceptQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptQuery/useConceptQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptRelationTypeQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptRelationTypeQuery/useConceptRelationTypeQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptSetTypeQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptSetTypeQuery/useConceptSetTypeQuery.d.ts +1 -1
- package/dist/dataHooks/useConceptSetsQuery/index.js +3 -3
- package/dist/dataHooks/useConceptSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useConceptSetsQuery/useConceptSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js +2 -2
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js.map +1 -1
- package/dist/dataHooks/useDataCollectionsQuery/index.js +3 -3
- package/dist/dataHooks/useDataCollectionsQuery/index.js.map +1 -1
- package/dist/dataHooks/useDataCollectionsQuery/useDataCollectionsQuery.d.ts +1 -1
- package/dist/dataHooks/useDimTypesQuery/index.js.map +1 -1
- package/dist/dataHooks/useDimTypesQuery/useDimTypesQuery.d.ts +1 -1
- package/dist/dataHooks/useDimsQuery/index.js +3 -3
- package/dist/dataHooks/useDimsQuery/index.js.map +1 -1
- package/dist/dataHooks/useDimsQuery/useDimsQuery.d.ts +1 -1
- package/dist/dataHooks/useDiseasesQuery/index.js +3 -3
- package/dist/dataHooks/useDiseasesQuery/index.js.map +1 -1
- package/dist/dataHooks/useDiseasesQuery/useDiseasesQuery.d.ts +1 -1
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.js +3 -3
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.js.map +1 -1
- package/dist/dataHooks/useEtiologicalAgentsQuery/useEtiologicalAgentsQuery.d.ts +1 -1
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js +3 -3
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js.map +1 -1
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/useGeneticDistanceProtocolsQuery.d.ts +1 -1
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefColsQuery/index.js +3 -3
- package/dist/dataHooks/useRefColsQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefColsQuery/useRefColsQuery.d.ts +1 -1
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.js +2 -2
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefDimsQuery/index.js +3 -3
- package/dist/dataHooks/useRefDimsQuery/index.js.map +1 -1
- package/dist/dataHooks/useRefDimsQuery/useRefDimsQuery.d.ts +1 -1
- package/dist/dataHooks/useRegionQuery/index.js +3 -3
- package/dist/dataHooks/useRegionQuery/index.js.map +1 -1
- package/dist/dataHooks/useRegionQuery/useRegionQuery.d.ts +1 -1
- package/dist/dataHooks/useRegionRelationTypeQuery/index.js.map +1 -1
- package/dist/dataHooks/useRegionRelationTypeQuery/useRegionRelationTypeQuery.d.ts +1 -1
- package/dist/dataHooks/useRegionSetsQuery/index.js +3 -3
- package/dist/dataHooks/useRegionSetsQuery/index.js.map +1 -1
- package/dist/dataHooks/useRegionSetsQuery/useRegionSetsQuery.d.ts +1 -1
- package/dist/dataHooks/useSequencingProtocolsQuery/index.js +3 -3
- package/dist/dataHooks/useSequencingProtocolsQuery/index.js.map +1 -1
- package/dist/dataHooks/useSequencingProtocolsQuery/useSequencingProtocolsQuery.d.ts +1 -1
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.js.map +1 -1
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/useTreeAlgorithmCodesQuery.d.ts +1 -1
- package/dist/dataHooks/useUnitQuery/useUnit.d.ts +1 -1
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js.map +1 -1
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.js +3 -3
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.js.map +1 -1
- package/dist/dataHooks/useUserEffectiveRightsQuery/useUserEffectiveRightsQuery.d.ts +1 -1
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js +2 -2
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js.map +1 -1
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js +2 -2
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js.map +1 -1
- package/dist/hooks/useOrganizationCasePolicyNameFactory/useOrganizationCasePolicyNameFactory.d.ts +1 -1
- package/dist/hooks/useUserCasePolicyNameFactory/index.js +3 -3
- package/dist/hooks/useUserCasePolicyNameFactory/index.js.map +1 -1
- package/dist/hooks/useUserCasePolicyNameFactory/useUserCasePolicyNameFactory.d.ts +1 -1
- package/dist/locale/nl.json +1 -1
- package/dist/models/config.d.ts +1 -1
- package/dist/models/dashboard.d.ts +1 -1
- package/dist/models/dashboard.js.map +1 -1
- package/dist/models/theme.d.ts +2 -2
- package/dist/pages/CaseDbUsersAdminPage/index.js +5 -5
- package/dist/pages/CaseDbUsersAdminPage/index.js.map +1 -1
- package/dist/pages/CaseSetCategoryAdminPage/index.js +4 -4
- package/dist/pages/CaseSetCategoryAdminPage/index.js.map +1 -1
- package/dist/pages/CaseSetStatusAdminPage/index.js +4 -4
- package/dist/pages/CaseSetStatusAdminPage/index.js.map +1 -1
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js +4 -4
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js.map +1 -1
- package/dist/pages/CaseTypeSetsAdminPage/index.js +6 -6
- package/dist/pages/CaseTypeSetsAdminPage/index.js.map +1 -1
- package/dist/pages/CaseTypesAdminPage/index.js +5 -5
- package/dist/pages/CaseTypesAdminPage/index.js.map +1 -1
- package/dist/pages/CasesDetailPage/index.js +5 -5
- package/dist/pages/CasesDetailPage/index.js.map +1 -1
- package/dist/pages/CasesPage/index.js +10 -10
- package/dist/pages/CasesPage/index.js.map +1 -1
- package/dist/pages/ColSetsAdminPage/index.js +6 -6
- package/dist/pages/ColSetsAdminPage/index.js.map +1 -1
- package/dist/pages/ColsAdminPage/index.js +5 -5
- package/dist/pages/ColsAdminPage/index.js.map +1 -1
- package/dist/pages/ConceptRelationsAdminPage/index.js +19 -19
- package/dist/pages/ConceptRelationsAdminPage/index.js.map +1 -1
- package/dist/pages/ConceptSetsAdminPage/index.js +5 -5
- package/dist/pages/ConceptSetsAdminPage/index.js.map +1 -1
- package/dist/pages/ConceptsAdminPage/index.js +5 -5
- package/dist/pages/ConceptsAdminPage/index.js.map +1 -1
- package/dist/pages/DataCollectionSetsAdminPage/index.js +12 -12
- package/dist/pages/DataCollectionSetsAdminPage/index.js.map +1 -1
- package/dist/pages/DataCollectionVisualizationPage/index.js +4 -4
- package/dist/pages/DataCollectionVisualizationPage/index.js.map +1 -1
- package/dist/pages/DataCollectionsAdminPage/index.js +4 -4
- package/dist/pages/DataCollectionsAdminPage/index.js.map +1 -1
- package/dist/pages/DimsAdminPage/index.js +6 -6
- package/dist/pages/DimsAdminPage/index.js.map +1 -1
- package/dist/pages/DiseasesAdminPage/index.js +4 -4
- package/dist/pages/DiseasesAdminPage/index.js.map +1 -1
- package/dist/pages/EtiologicalAgentsAdminPage/index.js +4 -4
- package/dist/pages/EtiologicalAgentsAdminPage/index.js.map +1 -1
- package/dist/pages/EtiologiesAdminPage/index.js +3 -3
- package/dist/pages/EtiologiesAdminPage/index.js.map +1 -1
- package/dist/pages/EventsDetailPage/index.js +5 -5
- package/dist/pages/EventsDetailPage/index.js.map +1 -1
- package/dist/pages/EventsPage/index.js +11 -11
- package/dist/pages/EventsPage/index.js.map +1 -1
- package/dist/pages/HomePage/index.js +2 -2
- package/dist/pages/HomePage/index.js.map +1 -1
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/RefColsAdminPage/index.js +7 -7
- package/dist/pages/RefColsAdminPage/index.js.map +1 -1
- package/dist/pages/RefDimsAdminPage/index.js +5 -5
- package/dist/pages/RefDimsAdminPage/index.js.map +1 -1
- package/dist/pages/RegionRelationsAdminPage/index.js +3 -3
- package/dist/pages/RegionRelationsAdminPage/index.js.map +1 -1
- package/dist/pages/RegionSetShapesAdminPage/index.js +4 -4
- package/dist/pages/RegionSetShapesAdminPage/index.js.map +1 -1
- package/dist/pages/RegionSetsAdminPage/index.js +5 -5
- package/dist/pages/RegionSetsAdminPage/index.js.map +1 -1
- package/dist/pages/RegionsAdminPage/index.js +5 -5
- package/dist/pages/RegionsAdminPage/index.js.map +1 -1
- package/dist/pages/TrendsPage/index.js +1 -1
- package/dist/pages/TrendsPage/index.js.map +1 -1
- package/dist/pages/UploadPage/index.js +1 -1
- package/dist/pages/UploadPage/index.js.map +1 -1
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/pages/UserEffectiveRightsAdminPage/index.js +12 -12
- package/dist/pages/UserEffectiveRightsAdminPage/index.js.map +1 -1
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +8 -8
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
- package/dist/pages/UserShareCasePoliciesAdminPage/index.js +4 -4
- package/dist/pages/UserShareCasePoliciesAdminPage/index.js.map +1 -1
- package/dist/routes/adminRoutes.d.ts +1 -1
- package/dist/routes/index.js +11 -8
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/routes.d.ts +1 -1
- package/dist/setup/setup.js +5 -5
- package/dist/setup/setup.js.map +1 -1
- package/dist/stores/dashboardStore/dashboardStore.d.ts +1 -1
- package/dist/stores/uploadStore/index.js +2 -2
- package/dist/stores/uploadStore/index.js.map +1 -1
- package/dist/stores/uploadStore/uploadStore.d.ts +1 -1
- package/dist/stores/userProfileStore/index.js +2 -2
- package/dist/stores/userProfileStore/index.js.map +1 -1
- package/dist/theme/demoTheme/index.js +2 -2
- package/dist/theme/demoTheme/index.js.map +1 -1
- package/dist/utils/CaseDbDataUtil/CaseDbDataUtil.d.ts +1 -1
- package/dist/utils/CaseDbDataUtil/index.js +1 -1
- package/dist/utils/CaseDbDataUtil/index.js.map +1 -1
- package/dist/utils/CaseDbStandardConfigUtil/index.js +2488 -1408
- package/dist/utils/CaseDbStandardConfigUtil/index.js.map +1 -1
- package/dist/utils/CaseDbTableUtil/CaseDbTableUtil.d.ts +1 -1
- package/dist/utils/CaseDbTableUtil/index.js +1 -1
- package/dist/utils/CaseDbTableUtil/index.js.map +1 -1
- package/dist/utils/CaseSelectionUtil/index.js.map +1 -1
- package/dist/utils/CaseTypeFormUtil/CaseTypeFormUtil.d.ts +1 -1
- package/dist/utils/CaseTypeFormUtil/index.js +7 -10
- package/dist/utils/CaseTypeFormUtil/index.js.map +1 -1
- package/dist/utils/CaseTypeUtil/index.js +1 -1
- package/dist/utils/CaseTypeUtil/index.js.map +1 -1
- package/dist/utils/CaseUtil/index.js +3 -3
- package/dist/utils/CaseUtil/index.js.map +1 -1
- package/dist/utils/DashboardUtil/index.js +1 -1
- package/dist/utils/DashboardUtil/index.js.map +1 -1
- package/dist/utils/DataSetUtil/index.js.map +1 -1
- package/dist/utils/FileUtil/index.js +1 -1
- package/dist/utils/FileUtil/index.js.map +1 -1
- package/dist/utils/FilterUtil/FilterUtil.d.ts +2 -2
- package/dist/utils/HistogramUtil/index.js +1 -1
- package/dist/utils/HistogramUtil/index.js.map +1 -1
- package/dist/utils/MapUtil/index.js +1 -1
- package/dist/utils/MapUtil/index.js.map +1 -1
- package/dist/utils/StratificationUtil/index.js +3 -2
- package/dist/utils/StratificationUtil/index.js.map +1 -1
- package/dist/utils/UploadUtil/UploadUtil.d.ts +1 -1
- package/package.json +19 -11
- package/dist/_chunks/chunk-KS7C4IRE.js.map +0 -1
|
@@ -11,49 +11,49 @@ import { t as u } from "./yup.js";
|
|
|
11
11
|
import { useDataCollectionOptionsQuery as d, useDataCollectionsMapQuery as f, useDataCollectionsQuery as p } from "../dataHooks/useDataCollectionsQuery/index.js";
|
|
12
12
|
import { t as m } from "./CaseContentForm.js";
|
|
13
13
|
import { useCaseRightsQuery as h } from "../dataHooks/useCaseRightsQuery/index.js";
|
|
14
|
-
import { n as g, r as _, t as
|
|
15
|
-
import { useCaseSetCategoryMapQuery as
|
|
16
|
-
import { useCaseSetStatusMapQuery as
|
|
14
|
+
import { n as g, r as _, t as ee } from "./DataCollectionAccessInfo.js";
|
|
15
|
+
import { useCaseSetCategoryMapQuery as v } from "../dataHooks/useCaseSetCategoriesQuery/index.js";
|
|
16
|
+
import { useCaseSetStatusMapQuery as y } from "../dataHooks/useCaseSetStatusesQuery/index.js";
|
|
17
17
|
import "../components/ui/CaseContentForm/index.js";
|
|
18
|
-
import { array as
|
|
19
|
-
import { t as
|
|
20
|
-
import { CaseDbCaseApi as
|
|
21
|
-
import { QueryClientService as
|
|
22
|
-
import { FORM_FIELD_DEFINITION_TYPE as
|
|
23
|
-
import { NotificationService as
|
|
24
|
-
import { Box as
|
|
18
|
+
import { array as b, object as te, string as ne } from "yup";
|
|
19
|
+
import { t as x } from "i18next";
|
|
20
|
+
import { CaseDbCaseApi as S, CaseDbColType as C, CaseDbEtlStatus as w, CaseDbUploadAction as re } from "@gen-epix/api-casedb";
|
|
21
|
+
import { QueryClientService as T } from "@gen-epix/ui-client-common/classes/services/QueryClientService";
|
|
22
|
+
import { FORM_FIELD_DEFINITION_TYPE as E } from "@gen-epix/ui-core-form/models/form";
|
|
23
|
+
import { NotificationService as D } from "@gen-epix/ui-client-common/classes/services/NotificationService";
|
|
24
|
+
import { Box as O, Link as k, Table as A, TableBody as j, TableCell as M, TableHead as N, TableRow as P, Typography as F } from "@mui/material";
|
|
25
25
|
import { use as I, useCallback as L, useEffect as ie, useId as ae, useMemo as R, useRef as oe, useState as z } from "react";
|
|
26
26
|
import { useTranslation as B } from "react-i18next";
|
|
27
|
-
import { Fragment as
|
|
28
|
-
import { ResponseHandler as
|
|
29
|
-
import { useItemQuery as
|
|
30
|
-
import { useArray as
|
|
31
|
-
import { GenericForm as
|
|
32
|
-
import { useQueryMemo as K } from "@gen-epix/ui/hooks/useQueryMemo";
|
|
33
|
-
import { Confirmation as le } from "@gen-epix/ui/components/
|
|
27
|
+
import { Fragment as V, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
28
|
+
import { ResponseHandler as W } from "@gen-epix/ui-client-common/components/ui/ResponseHandler";
|
|
29
|
+
import { useItemQuery as se } from "@gen-epix/ui-client-common/hooks/useItemQuery";
|
|
30
|
+
import { useArray as G } from "@gen-epix/ui-core/hooks/useArray";
|
|
31
|
+
import { GenericForm as ce } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
|
|
32
|
+
import { useQueryMemo as K } from "@gen-epix/ui-client-common/hooks/useQueryMemo";
|
|
33
|
+
import { Confirmation as le } from "@gen-epix/ui-core-components/components/Confirmation";
|
|
34
34
|
import ue from "@mui/icons-material/Edit";
|
|
35
|
-
import { withDialog as
|
|
36
|
-
import { TestIdUtil as
|
|
37
|
-
import
|
|
38
|
-
import { FormUtil as
|
|
39
|
-
import { GenericErrorMessage as
|
|
40
|
-
import
|
|
41
|
-
import { EpiContactDetailsDialog as
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import { Spinner as
|
|
45
|
-
import { useDeleteMutation as _e } from "@gen-epix/ui/hooks/useDeleteMutation";
|
|
46
|
-
import { NavLink as ve } from "@gen-epix/ui/components/ui/NavLink";
|
|
35
|
+
import { withDialog as q } from "@gen-epix/ui-core-components/hoc/withDialog";
|
|
36
|
+
import { TestIdUtil as J } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
37
|
+
import de from "@mui/icons-material/Save";
|
|
38
|
+
import { FormUtil as fe } from "@gen-epix/ui-core-form/utils/FormUtil";
|
|
39
|
+
import { GenericErrorMessage as Y } from "@gen-epix/ui-client-common/components/ui/GenericErrorMessage";
|
|
40
|
+
import pe from "@mui/icons-material/Delete";
|
|
41
|
+
import { EpiContactDetailsDialog as X } from "@gen-epix/ui-client-common/components/epi/EpiContactDetailsDialog";
|
|
42
|
+
import me from "@mui/icons-material/Share";
|
|
43
|
+
import he from "@mui/icons-material/ArrowLeft";
|
|
44
|
+
import { Spinner as ge } from "@gen-epix/ui-core-components/components/Spinner";
|
|
45
|
+
import { useDeleteMutation as _e } from "@gen-epix/ui-client-common/hooks/useDeleteMutation";
|
|
46
|
+
import { NavLink as ve } from "@gen-epix/ui-client-common/components/ui/NavLink";
|
|
47
47
|
//#region src/components/ui/CaseInfoDialog/CaseCaseSetInfo.tsx
|
|
48
48
|
var ye = ({ caseDbCase: e, ...t }) => {
|
|
49
|
-
let r =
|
|
49
|
+
let r = v(), i = y(), { t: o } = B(), s = {
|
|
50
50
|
invert: !1,
|
|
51
51
|
key: "case_id",
|
|
52
52
|
members: [e.id],
|
|
53
53
|
type: "UUID_SET"
|
|
54
54
|
}, { data: c, error: l, isLoading: u } = K({
|
|
55
|
-
queryFn: async ({ signal: e }) => (await
|
|
56
|
-
queryKey:
|
|
55
|
+
queryFn: async ({ signal: e }) => (await S.getInstance().caseSetMembersPostQuery(s, null, null, { signal: e })).data,
|
|
56
|
+
queryKey: T.getInstance().getGenericKey(n.CASE_SET_MEMBERS, s)
|
|
57
57
|
}), d = {
|
|
58
58
|
invert: !1,
|
|
59
59
|
key: "id",
|
|
@@ -61,45 +61,45 @@ var ye = ({ caseDbCase: e, ...t }) => {
|
|
|
61
61
|
type: "UUID_SET"
|
|
62
62
|
}, { data: f, error: p, isLoading: m } = K({
|
|
63
63
|
enabled: d.members.length > 0,
|
|
64
|
-
queryFn: async ({ signal: e }) => (await
|
|
65
|
-
queryKey:
|
|
66
|
-
}), h =
|
|
67
|
-
return /* @__PURE__ */
|
|
64
|
+
queryFn: async ({ signal: e }) => (await S.getInstance().caseSetsPostQuery(d, null, null, { signal: e })).data,
|
|
65
|
+
queryKey: T.getInstance().getGenericKey(n.CASE_SETS, d)
|
|
66
|
+
}), h = G([r, i]);
|
|
67
|
+
return /* @__PURE__ */ U(O, {
|
|
68
68
|
...t,
|
|
69
|
-
children: [/* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ H(F, {
|
|
70
70
|
variant: "h6",
|
|
71
71
|
children: o`Events`
|
|
72
|
-
}), /* @__PURE__ */
|
|
72
|
+
}), /* @__PURE__ */ U(W, {
|
|
73
73
|
error: l || p,
|
|
74
74
|
inlineSpinner: !0,
|
|
75
75
|
isLoading: u || m,
|
|
76
76
|
loadables: h,
|
|
77
77
|
shouldHideActionButtons: !0,
|
|
78
|
-
children: [f?.length > 0 && /* @__PURE__ */
|
|
78
|
+
children: [f?.length > 0 && /* @__PURE__ */ U(A, {
|
|
79
79
|
size: "small",
|
|
80
|
-
children: [/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
80
|
+
children: [/* @__PURE__ */ H(N, { children: /* @__PURE__ */ U(P, { children: [
|
|
81
|
+
/* @__PURE__ */ H(M, {
|
|
82
82
|
sx: { width: "calc(100% * 1/3)" },
|
|
83
83
|
children: o`Name`
|
|
84
84
|
}),
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ H(M, {
|
|
86
86
|
sx: { width: "calc(100% * 1/3)" },
|
|
87
87
|
children: o`Category`
|
|
88
88
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ H(M, {
|
|
90
90
|
sx: { width: "calc(100% * 1/3)" },
|
|
91
91
|
children: o`Status`
|
|
92
92
|
})
|
|
93
|
-
] }) }), /* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
93
|
+
] }) }), /* @__PURE__ */ H(j, { children: f?.map((e) => /* @__PURE__ */ U(P, { children: [
|
|
94
|
+
/* @__PURE__ */ H(M, { children: /* @__PURE__ */ H(ve, {
|
|
95
95
|
activeAsText: !0,
|
|
96
96
|
to: a.createCaseSetLink(e),
|
|
97
97
|
children: e.name
|
|
98
98
|
}) }),
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ H(M, { children: r.map.get(e.case_set_category_id)?.name ?? o`Unknown` }),
|
|
100
|
+
/* @__PURE__ */ H(M, { children: i.map.get(e.case_set_status_id)?.name ?? o`Unknown` })
|
|
101
101
|
] }, e.id)) })]
|
|
102
|
-
}), (!f || f?.length === 0) && /* @__PURE__ */
|
|
102
|
+
}), (!f || f?.length === 0) && /* @__PURE__ */ H(O, {
|
|
103
103
|
sx: { fontStyle: "italic" },
|
|
104
104
|
children: o`None`
|
|
105
105
|
})]
|
|
@@ -113,14 +113,14 @@ var ye = ({ caseDbCase: e, ...t }) => {
|
|
|
113
113
|
}), e;
|
|
114
114
|
}, [t]), _ = L((t, r) => {
|
|
115
115
|
h(!0), a(!0), (async () => {
|
|
116
|
-
let o =
|
|
116
|
+
let o = T.getInstance().getQueryKeyDependencies([n.CASES], !0), s = D.getInstance().showNotification({
|
|
117
117
|
isLoading: !0,
|
|
118
|
-
message:
|
|
118
|
+
message: x("Saving case data"),
|
|
119
119
|
severity: "info"
|
|
120
120
|
});
|
|
121
121
|
try {
|
|
122
|
-
await
|
|
123
|
-
let n = (await
|
|
122
|
+
await T.getInstance().cancelQueries(o);
|
|
123
|
+
let n = (await S.getInstance().uploadCases({
|
|
124
124
|
case_batch: { cases: [{ case: {
|
|
125
125
|
case_type_id: d.id,
|
|
126
126
|
content: r,
|
|
@@ -128,14 +128,14 @@ var ye = ({ caseDbCase: e, ...t }) => {
|
|
|
128
128
|
id: t
|
|
129
129
|
} }] },
|
|
130
130
|
case_type_id: d.id,
|
|
131
|
-
on_exists:
|
|
131
|
+
on_exists: re.UPDATE
|
|
132
132
|
})).data;
|
|
133
|
-
if (n.status !==
|
|
134
|
-
f(e.id, e),
|
|
133
|
+
if (n.status !== w.SKIPPED && n.status !== w.SUCCESS && n.status !== w.UPDATED) throw Error("Case upload failed");
|
|
134
|
+
f(e.id, e), D.getInstance().fulfillNotification(s, x("Successfully saved case data."), "success");
|
|
135
135
|
} catch {
|
|
136
|
-
|
|
136
|
+
D.getInstance().fulfillNotification(s, x("Could not save case data."), "error");
|
|
137
137
|
} finally {
|
|
138
|
-
await
|
|
138
|
+
await T.getInstance().invalidateQueryKeys(o), h(!1), a(!1), i();
|
|
139
139
|
}
|
|
140
140
|
})();
|
|
141
141
|
}, [
|
|
@@ -145,15 +145,15 @@ var ye = ({ caseDbCase: e, ...t }) => {
|
|
|
145
145
|
i,
|
|
146
146
|
a
|
|
147
147
|
]);
|
|
148
|
-
return /* @__PURE__ */
|
|
148
|
+
return /* @__PURE__ */ U(O, {
|
|
149
149
|
...l,
|
|
150
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ H(F, {
|
|
151
151
|
variant: "h6",
|
|
152
|
-
children:
|
|
153
|
-
}), /* @__PURE__ */
|
|
152
|
+
children: x`Content`
|
|
153
|
+
}), /* @__PURE__ */ U(O, { children: [p && /* @__PURE__ */ H(ge, {
|
|
154
154
|
inline: !0,
|
|
155
|
-
label:
|
|
156
|
-
}), !p && /* @__PURE__ */
|
|
155
|
+
label: x`Saving case data`
|
|
156
|
+
}), !p && /* @__PURE__ */ H(m, {
|
|
157
157
|
caseContent: e.content,
|
|
158
158
|
caseId: e.id,
|
|
159
159
|
completeCaseType: d,
|
|
@@ -163,114 +163,114 @@ var ye = ({ caseDbCase: e, ...t }) => {
|
|
|
163
163
|
})] })]
|
|
164
164
|
});
|
|
165
165
|
}, xe = ({ caseDbCase: e, ...t }) => {
|
|
166
|
-
let { t: n } = B(), r =
|
|
167
|
-
return /* @__PURE__ */
|
|
166
|
+
let { t: n } = B(), r = f(), i = G([r]);
|
|
167
|
+
return /* @__PURE__ */ U(O, {
|
|
168
168
|
...t,
|
|
169
169
|
children: [
|
|
170
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ H(F, {
|
|
171
171
|
variant: "h6",
|
|
172
172
|
children: n`Read-only content`
|
|
173
173
|
}),
|
|
174
|
-
!e && /* @__PURE__ */
|
|
175
|
-
/* @__PURE__ */
|
|
174
|
+
!e && /* @__PURE__ */ H(Y, { error: /* @__PURE__ */ Error("Case could not be found") }),
|
|
175
|
+
/* @__PURE__ */ H(W, {
|
|
176
176
|
inlineSpinner: !0,
|
|
177
|
-
loadables:
|
|
177
|
+
loadables: i,
|
|
178
178
|
shouldHideActionButtons: !0,
|
|
179
|
-
children: e && /* @__PURE__ */
|
|
179
|
+
children: e && /* @__PURE__ */ U(A, {
|
|
180
180
|
size: "small",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ H(N, { children: /* @__PURE__ */ U(P, { children: [/* @__PURE__ */ H(M, {
|
|
182
182
|
sx: { width: "calc(100% * 1/3)" },
|
|
183
183
|
children: n`Column`
|
|
184
|
-
}), /* @__PURE__ */
|
|
184
|
+
}), /* @__PURE__ */ H(M, {
|
|
185
185
|
sx: { width: "calc(100% * 2/3)" },
|
|
186
186
|
children: n`Value`
|
|
187
|
-
})] }) }), /* @__PURE__ */
|
|
187
|
+
})] }) }), /* @__PURE__ */ H(j, { children: /* @__PURE__ */ U(P, { children: [/* @__PURE__ */ H(M, { children: n`Case id` }), /* @__PURE__ */ H(M, { children: e.id })] }) })]
|
|
188
188
|
})
|
|
189
189
|
})
|
|
190
190
|
]
|
|
191
191
|
});
|
|
192
192
|
}, Se = ({ caseDbCase: e, ...n }) => {
|
|
193
|
-
let { t: i } = B(), a = oe(null), c =
|
|
193
|
+
let { t: i } = B(), a = oe(null), c = I(s), l = o(c, (e) => e.completeCaseType), u = R(() => t.getCols(l), [l]), d = L((e, t) => {
|
|
194
194
|
a.current.open({
|
|
195
195
|
organizationId: e,
|
|
196
196
|
organizationName: t
|
|
197
197
|
});
|
|
198
198
|
}, []);
|
|
199
|
-
return /* @__PURE__ */
|
|
199
|
+
return /* @__PURE__ */ U(O, {
|
|
200
200
|
...n,
|
|
201
201
|
children: [
|
|
202
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ H(F, {
|
|
203
203
|
variant: "h6",
|
|
204
204
|
children: i`Content`
|
|
205
205
|
}),
|
|
206
|
-
!e && /* @__PURE__ */
|
|
207
|
-
e && /* @__PURE__ */
|
|
206
|
+
!e && /* @__PURE__ */ H(Y, { error: /* @__PURE__ */ Error("Case could not be found") }),
|
|
207
|
+
e && /* @__PURE__ */ U(A, {
|
|
208
208
|
size: "small",
|
|
209
|
-
children: [/* @__PURE__ */
|
|
209
|
+
children: [/* @__PURE__ */ H(N, { children: /* @__PURE__ */ U(P, { children: [/* @__PURE__ */ H(M, {
|
|
210
210
|
sx: { width: "calc(100% / 3)" },
|
|
211
211
|
children: i`Column`
|
|
212
|
-
}), /* @__PURE__ */
|
|
212
|
+
}), /* @__PURE__ */ H(M, {
|
|
213
213
|
sx: { width: "calc(100% / 3 * 2)" },
|
|
214
214
|
children: i`Value`
|
|
215
|
-
})] }) }), /* @__PURE__ */
|
|
216
|
-
let n =
|
|
217
|
-
return /* @__PURE__ */
|
|
215
|
+
})] }) }), /* @__PURE__ */ H(j, { children: u.map((t) => {
|
|
216
|
+
let n = l.ref_cols[t.ref_col_id], i = r.getRowValue(e.content, t, l);
|
|
217
|
+
return /* @__PURE__ */ U(P, { children: [/* @__PURE__ */ H(M, {
|
|
218
218
|
sx: { width: "calc(100% / 3)" },
|
|
219
219
|
children: t.label
|
|
220
|
-
}), /* @__PURE__ */
|
|
220
|
+
}), /* @__PURE__ */ U(M, {
|
|
221
221
|
sx: { width: "calc(100% / 3 * 2)" },
|
|
222
|
-
children: [n.col_type ===
|
|
222
|
+
children: [n.col_type === C.ORGANIZATION && !i.isMissing && /* @__PURE__ */ H(k, {
|
|
223
223
|
color: "primary",
|
|
224
224
|
onClick: () => {
|
|
225
|
-
|
|
225
|
+
d(e.content[t.id], i.long);
|
|
226
226
|
},
|
|
227
227
|
sx: { cursor: "pointer" },
|
|
228
228
|
children: i.long
|
|
229
|
-
}), n.col_type !==
|
|
229
|
+
}), n.col_type !== C.ORGANIZATION && /* @__PURE__ */ H(V, { children: i.long })]
|
|
230
230
|
})] }, t.id);
|
|
231
231
|
}) })]
|
|
232
232
|
}),
|
|
233
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ H(X, { ref: a })
|
|
234
234
|
]
|
|
235
235
|
});
|
|
236
236
|
}, Ce = ({ ...e }) => {
|
|
237
237
|
let { t } = B();
|
|
238
|
-
return /* @__PURE__ */
|
|
238
|
+
return /* @__PURE__ */ U(O, {
|
|
239
239
|
...e,
|
|
240
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ H(F, {
|
|
241
241
|
variant: "h6",
|
|
242
242
|
children: t`Shared in`
|
|
243
|
-
}), /* @__PURE__ */
|
|
243
|
+
}), /* @__PURE__ */ H(ee, {})]
|
|
244
244
|
});
|
|
245
245
|
}, we = /* @__PURE__ */ e(i(), 1), Te = ({ caseDbCase: e, formId: t, onFinish: r, onIsSavingChange: i, ...a }) => {
|
|
246
|
-
let { t: o } = B(), [s, c] = z(!1), d = g(), f = R(() =>
|
|
247
|
-
definition:
|
|
246
|
+
let { t: o } = B(), [s, c] = z(!1), d = g(), f = R(() => te().shape({ dataCollectionIds: b().of(ne().uuid4()).required() }), []), p = R(() => [{
|
|
247
|
+
definition: E.AUTOCOMPLETE,
|
|
248
248
|
label: o`Data collections`,
|
|
249
249
|
multiple: !0,
|
|
250
250
|
name: "dataCollectionIds",
|
|
251
251
|
options: d?.itemDataCollectionOptions?.[0] ?? []
|
|
252
|
-
}], [o, d]), m = R(() => ({ dataCollectionIds: d?.rights?.[0]?.shared_in_data_collection_ids ?? [] }), [d]), h = R(() =>
|
|
252
|
+
}], [o, d]), m = R(() => ({ dataCollectionIds: d?.rights?.[0]?.shared_in_data_collection_ids ?? [] }), [d]), h = R(() => fe.createFormValues(p, m), [p, m]), _ = l({
|
|
253
253
|
resolver: u(f),
|
|
254
254
|
values: h
|
|
255
|
-
}), { handleSubmit:
|
|
255
|
+
}), { handleSubmit: ee } = _, v = L(({ dataCollectionIds: t }) => {
|
|
256
256
|
(async () => {
|
|
257
257
|
c(!0), i(!0);
|
|
258
|
-
let a =
|
|
258
|
+
let a = T.getInstance().getQueryKeyDependencies([n.CASE_DATA_COLLECTION_LINKS], !0), s = D.getInstance().showNotification({
|
|
259
259
|
isLoading: !0,
|
|
260
260
|
message: o("Saving case data collections"),
|
|
261
261
|
severity: "info"
|
|
262
262
|
});
|
|
263
263
|
try {
|
|
264
|
-
await
|
|
264
|
+
await T.getInstance().cancelQueries(a);
|
|
265
265
|
let n = d?.rights?.[0], r = (0, we.default)(t, n.shared_in_data_collection_ids), i = (0, we.default)(n.shared_in_data_collection_ids, t);
|
|
266
|
-
r.length > 0 && await
|
|
266
|
+
r.length > 0 && await S.getInstance().caseDataCollectionLinksPostSome(r.map((t) => ({
|
|
267
267
|
case_id: e.id,
|
|
268
268
|
data_collection_id: t
|
|
269
|
-
}))), i.length > 0 && await
|
|
269
|
+
}))), i.length > 0 && await S.getInstance().caseDataCollectionLinksDeleteSome(d.itemDataCollectionLinks[0]?.filter((e) => i.includes(e.data_collection_id)).map((e) => e.id).join(",")), D.getInstance().fulfillNotification(s, o("Successfully saved case data collections."), "success");
|
|
270
270
|
} catch {
|
|
271
|
-
|
|
271
|
+
D.getInstance().fulfillNotification(s, o("Could not save case data collections."), "error");
|
|
272
272
|
} finally {
|
|
273
|
-
await
|
|
273
|
+
await T.getInstance().invalidateQueryKeys(a), c(!1), i(!1), r();
|
|
274
274
|
}
|
|
275
275
|
})();
|
|
276
276
|
}, [
|
|
@@ -280,76 +280,76 @@ var ye = ({ caseDbCase: e, ...t }) => {
|
|
|
280
280
|
i,
|
|
281
281
|
o
|
|
282
282
|
]);
|
|
283
|
-
return s ? /* @__PURE__ */
|
|
283
|
+
return s ? /* @__PURE__ */ H(ge, {
|
|
284
284
|
inline: !0,
|
|
285
285
|
label: o`Saving case data collections`
|
|
286
|
-
}) : /* @__PURE__ */
|
|
286
|
+
}) : /* @__PURE__ */ U(O, {
|
|
287
287
|
...a,
|
|
288
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ H(F, {
|
|
289
289
|
variant: "h6",
|
|
290
290
|
children: o`Data collections`
|
|
291
|
-
}), /* @__PURE__ */
|
|
291
|
+
}), /* @__PURE__ */ H(ce, {
|
|
292
292
|
formFieldDefinitions: p,
|
|
293
293
|
formId: t,
|
|
294
294
|
formMethods: _,
|
|
295
|
-
onSubmit: v
|
|
295
|
+
onSubmit: ee(v),
|
|
296
296
|
schema: f
|
|
297
297
|
})]
|
|
298
298
|
});
|
|
299
|
-
},
|
|
299
|
+
}, Ee = /* @__PURE__ */ function(e) {
|
|
300
300
|
return e.EDIT = "EDIT", e.INFO = "INFO", e.SHARING = "SHARING", e;
|
|
301
|
-
}({}),
|
|
302
|
-
let { t: a } = B(), l = R(() => [i.caseId], [i.caseId]), u = p(), m = f(), g = d(),
|
|
303
|
-
|
|
304
|
-
}, [v]),
|
|
301
|
+
}({}), Z = q(({ onActionsChange: e, onClose: t, onTitleChange: r, openProps: i }) => {
|
|
302
|
+
let { t: a } = B(), l = R(() => [i.caseId], [i.caseId]), u = p(), m = f(), g = d(), ee = I(s), v = o(ee, c((e) => e.fetchData)), [y, b] = z(i.initialTab ?? "INFO"), [te, ne] = z(!1), [x, C] = z(!1), [w, re] = z(!1), E = oe(null), D = ae(), O = ae(), k = L(async () => {
|
|
303
|
+
ne(!1), C(!1), re(!0), b("INFO"), await v(), re(!1);
|
|
304
|
+
}, [v]), A = L(async () => {
|
|
305
305
|
await k(), t();
|
|
306
|
-
}, [t, k]),
|
|
306
|
+
}, [t, k]), j = L(() => {
|
|
307
307
|
t();
|
|
308
|
-
}, [t]), { isMutating:
|
|
309
|
-
associationQueryKeys:
|
|
308
|
+
}, [t]), { isMutating: M, mutate: N } = _e({
|
|
309
|
+
associationQueryKeys: T.getInstance().getQueryKeyDependencies([n.CASES], !0),
|
|
310
310
|
getErrorNotificationMessage: (e) => a("Unable to remove case: {{id}}.", { id: e.id }),
|
|
311
311
|
getProgressNotificationMessage: (e) => a("Deleting case: {{id}}...", { id: e.id }),
|
|
312
312
|
getSuccessNotificationMessage: (e) => a("Case: {{id}}, has been removed.", { id: e.id }),
|
|
313
|
-
onError:
|
|
314
|
-
onSuccess:
|
|
315
|
-
queryFn: async (e) => await
|
|
316
|
-
resourceQueryKey:
|
|
317
|
-
}),
|
|
318
|
-
|
|
313
|
+
onError: j,
|
|
314
|
+
onSuccess: A,
|
|
315
|
+
queryFn: async (e) => await S.getInstance().casesDeleteOne(e.id),
|
|
316
|
+
resourceQueryKey: T.getInstance().getGenericKey(n.CASES)
|
|
317
|
+
}), P = h(l, i.caseTypeId, !M && !w), ce = G([
|
|
318
|
+
P,
|
|
319
319
|
u,
|
|
320
320
|
m,
|
|
321
321
|
g
|
|
322
|
-
]), { data:
|
|
322
|
+
]), { data: q, error: fe, isLoading: Y } = se({
|
|
323
323
|
baseQueryKey: n.CASES_LAZY,
|
|
324
324
|
itemId: i.caseId,
|
|
325
325
|
useQueryOptions: {
|
|
326
|
-
enabled: !
|
|
327
|
-
queryFn: async ({ signal: e }) => (await
|
|
326
|
+
enabled: !M && !w,
|
|
327
|
+
queryFn: async ({ signal: e }) => (await S.getInstance().casesGetOne(i.caseId, { signal: e })).data
|
|
328
328
|
}
|
|
329
|
-
}),
|
|
329
|
+
}), X = R(() => ({
|
|
330
330
|
invert: !1,
|
|
331
331
|
key: "case_id",
|
|
332
|
-
members: [
|
|
332
|
+
members: [q?.id],
|
|
333
333
|
type: "UUID_SET"
|
|
334
|
-
}), [
|
|
335
|
-
enabled: !!
|
|
336
|
-
queryFn: async ({ signal: e }) => (await
|
|
337
|
-
queryKey:
|
|
338
|
-
}), Z = R(() => !!
|
|
334
|
+
}), [q?.id]), { data: ve, error: we, isLoading: Ee } = K({
|
|
335
|
+
enabled: !!q,
|
|
336
|
+
queryFn: async ({ signal: e }) => (await S.getInstance().caseDataCollectionLinksPostQuery(X, null, null, { signal: e })).data,
|
|
337
|
+
queryKey: T.getInstance().getGenericKey(n.CASE_DATA_COLLECTION_LINKS, X)
|
|
338
|
+
}), Z = R(() => !!P.data && P.data.some((e) => e.is_full_access || e.write_col_ids.length), [P.data]), Q = R(() => !!P.data && P.data.some((e) => e.is_full_access || e.remove_data_collection_ids.length || e.add_data_collection_ids.length), [P.data]), De = L(() => !!P.data && P.data.some((e) => e.is_full_access || e.can_delete), [P]), Oe = L(() => {
|
|
339
339
|
b("EDIT");
|
|
340
|
-
}, []), Oe = L(() => {
|
|
341
|
-
b("SHARING");
|
|
342
340
|
}, []), ke = L(() => {
|
|
341
|
+
b("SHARING");
|
|
342
|
+
}, []), Ae = L(() => {
|
|
343
343
|
b("INFO");
|
|
344
|
-
}, []), Ae = L((e) => {
|
|
345
|
-
x(e);
|
|
346
344
|
}, []), je = L((e) => {
|
|
347
|
-
|
|
348
|
-
}, []), Me = L(() => {
|
|
349
|
-
|
|
345
|
+
ne(e);
|
|
346
|
+
}, []), Me = L((e) => {
|
|
347
|
+
C(e);
|
|
350
348
|
}, []), Ne = L(() => {
|
|
351
|
-
|
|
352
|
-
}, [
|
|
349
|
+
E.current.open();
|
|
350
|
+
}, []), Pe = L(() => {
|
|
351
|
+
N(q);
|
|
352
|
+
}, [q, N]), $ = te || x;
|
|
353
353
|
ie(() => {
|
|
354
354
|
r(y === "EDIT" ? a`Case information - Edit` : y === "SHARING" ? a`Case information - Share` : a`Case information`);
|
|
355
355
|
}, [
|
|
@@ -359,76 +359,76 @@ var ye = ({ caseDbCase: e, ...t }) => {
|
|
|
359
359
|
]), ie(() => {
|
|
360
360
|
let t = [];
|
|
361
361
|
(y === "EDIT" || y === "SHARING") && t.push({
|
|
362
|
-
...
|
|
362
|
+
...J.createAttributes("CaseInfoDialog-goBackButton"),
|
|
363
363
|
color: "primary",
|
|
364
364
|
disabled: $,
|
|
365
365
|
label: a`Go back`,
|
|
366
|
-
onClick:
|
|
367
|
-
startIcon: /* @__PURE__ */
|
|
366
|
+
onClick: Ae,
|
|
367
|
+
startIcon: /* @__PURE__ */ H(he, {}),
|
|
368
368
|
variant: "outlined"
|
|
369
369
|
}), y === "EDIT" && Z ? t.push({
|
|
370
|
-
...
|
|
370
|
+
...J.createAttributes("CaseInfoDialog-saveButton"),
|
|
371
371
|
color: "secondary",
|
|
372
372
|
disabled: $,
|
|
373
373
|
form: D,
|
|
374
374
|
label: a`Save`,
|
|
375
|
-
startIcon: /* @__PURE__ */
|
|
375
|
+
startIcon: /* @__PURE__ */ H(de, {}),
|
|
376
376
|
type: "submit",
|
|
377
377
|
variant: "contained"
|
|
378
378
|
}) : y === "SHARING" && Q ? t.push({
|
|
379
|
-
...
|
|
379
|
+
...J.createAttributes("CaseInfoDialog-saveButton"),
|
|
380
380
|
color: "secondary",
|
|
381
381
|
disabled: $,
|
|
382
382
|
form: O,
|
|
383
383
|
label: a`Save`,
|
|
384
|
-
startIcon: /* @__PURE__ */
|
|
384
|
+
startIcon: /* @__PURE__ */ H(de, {}),
|
|
385
385
|
type: "submit",
|
|
386
386
|
variant: "contained"
|
|
387
387
|
}) : y === "INFO" && (t.push({
|
|
388
|
-
...
|
|
388
|
+
...J.createAttributes("CaseSetInfoDialog-deleteButton"),
|
|
389
389
|
color: "primary",
|
|
390
|
-
disabled: !
|
|
390
|
+
disabled: !De(),
|
|
391
391
|
label: a`Delete`,
|
|
392
|
-
onClick:
|
|
393
|
-
startIcon: /* @__PURE__ */
|
|
392
|
+
onClick: Ne,
|
|
393
|
+
startIcon: /* @__PURE__ */ H(pe, {}),
|
|
394
394
|
variant: "outlined"
|
|
395
395
|
}), t.push({
|
|
396
|
-
...
|
|
396
|
+
...J.createAttributes("CaseInfoDialog-editDataCollectionsButton"),
|
|
397
397
|
color: "primary",
|
|
398
398
|
disabled: !Q,
|
|
399
399
|
label: a`Share`,
|
|
400
|
-
onClick:
|
|
401
|
-
startIcon: /* @__PURE__ */
|
|
400
|
+
onClick: ke,
|
|
401
|
+
startIcon: /* @__PURE__ */ H(me, {}),
|
|
402
402
|
variant: "outlined"
|
|
403
403
|
}), t.push({
|
|
404
|
-
...
|
|
404
|
+
...J.createAttributes("CaseInfoDialog-editCaseContentButton"),
|
|
405
405
|
color: "primary",
|
|
406
406
|
disabled: !Z,
|
|
407
407
|
label: a`Edit`,
|
|
408
|
-
onClick:
|
|
409
|
-
startIcon: /* @__PURE__ */
|
|
408
|
+
onClick: Oe,
|
|
409
|
+
startIcon: /* @__PURE__ */ H(ue, {}),
|
|
410
410
|
variant: "outlined"
|
|
411
411
|
})), e(t);
|
|
412
412
|
}, [
|
|
413
413
|
e,
|
|
414
|
-
|
|
414
|
+
Oe,
|
|
415
415
|
a,
|
|
416
416
|
y,
|
|
417
|
+
Ae,
|
|
417
418
|
ke,
|
|
418
|
-
Oe,
|
|
419
419
|
D,
|
|
420
420
|
O,
|
|
421
421
|
t,
|
|
422
422
|
$,
|
|
423
423
|
Q,
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
Ne,
|
|
425
|
+
De,
|
|
426
426
|
Z
|
|
427
427
|
]);
|
|
428
|
-
let
|
|
429
|
-
createdInDataCollection:
|
|
430
|
-
itemDataCollectionLinks: [
|
|
431
|
-
rights:
|
|
428
|
+
let Fe = R(() => ({
|
|
429
|
+
createdInDataCollection: q ? m.map.get(q.created_in_data_collection_id) : void 0,
|
|
430
|
+
itemDataCollectionLinks: [ve],
|
|
431
|
+
rights: P.data,
|
|
432
432
|
userDataCollectionOptions: g.options,
|
|
433
433
|
userDataCollections: u.data,
|
|
434
434
|
userDataCollectionsMap: m.map
|
|
@@ -436,66 +436,66 @@ var ye = ({ caseDbCase: e, ...t }) => {
|
|
|
436
436
|
u.data,
|
|
437
437
|
m.map,
|
|
438
438
|
g.options,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
439
|
+
ve,
|
|
440
|
+
P.data,
|
|
441
|
+
q
|
|
442
442
|
]);
|
|
443
|
-
return w ? /* @__PURE__ */
|
|
443
|
+
return w ? /* @__PURE__ */ H(ge, {
|
|
444
444
|
inline: !0,
|
|
445
445
|
label: a`Refreshing data`
|
|
446
|
-
}) : /* @__PURE__ */
|
|
447
|
-
error:
|
|
446
|
+
}) : /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(W, {
|
|
447
|
+
error: fe || we,
|
|
448
448
|
inlineSpinner: !0,
|
|
449
|
-
isLoading:
|
|
450
|
-
loadables:
|
|
449
|
+
isLoading: Y || Ee,
|
|
450
|
+
loadables: ce,
|
|
451
451
|
shouldHideActionButtons: !0,
|
|
452
|
-
children: /* @__PURE__ */
|
|
453
|
-
caseAbac:
|
|
452
|
+
children: /* @__PURE__ */ U(_, {
|
|
453
|
+
caseAbac: Fe,
|
|
454
454
|
children: [
|
|
455
|
-
/* @__PURE__ */
|
|
456
|
-
caseDbCase:
|
|
455
|
+
/* @__PURE__ */ H(xe, {
|
|
456
|
+
caseDbCase: q,
|
|
457
457
|
sx: { marginBottom: 2 }
|
|
458
458
|
}),
|
|
459
|
-
y === "INFO" && /* @__PURE__ */
|
|
460
|
-
/* @__PURE__ */
|
|
461
|
-
/* @__PURE__ */
|
|
462
|
-
caseDbCase:
|
|
459
|
+
y === "INFO" && /* @__PURE__ */ U(V, { children: [
|
|
460
|
+
/* @__PURE__ */ H(Ce, { sx: { marginBottom: 2 } }),
|
|
461
|
+
/* @__PURE__ */ H(ye, {
|
|
462
|
+
caseDbCase: q,
|
|
463
463
|
sx: { marginBottom: 2 }
|
|
464
464
|
}),
|
|
465
|
-
/* @__PURE__ */
|
|
466
|
-
caseDbCase:
|
|
465
|
+
/* @__PURE__ */ H(Se, {
|
|
466
|
+
caseDbCase: q,
|
|
467
467
|
sx: { marginBottom: 2 }
|
|
468
468
|
})
|
|
469
469
|
] }),
|
|
470
|
-
y === "EDIT" && Z && /* @__PURE__ */
|
|
471
|
-
caseDbCase:
|
|
472
|
-
caseRights:
|
|
470
|
+
y === "EDIT" && Z && /* @__PURE__ */ H(be, {
|
|
471
|
+
caseDbCase: q,
|
|
472
|
+
caseRights: P.data?.[0],
|
|
473
473
|
formId: D,
|
|
474
474
|
onFinish: k,
|
|
475
|
-
onIsSavingChange:
|
|
475
|
+
onIsSavingChange: je
|
|
476
476
|
}),
|
|
477
|
-
y === "EDIT" && !Z && /* @__PURE__ */
|
|
477
|
+
y === "EDIT" && !Z && /* @__PURE__ */ H(F, {
|
|
478
478
|
variant: "body1",
|
|
479
479
|
children: a`You do not have permissions to edit this case.`
|
|
480
480
|
}),
|
|
481
|
-
y === "SHARING" && Q && /* @__PURE__ */
|
|
482
|
-
caseDbCase:
|
|
481
|
+
y === "SHARING" && Q && /* @__PURE__ */ H(Te, {
|
|
482
|
+
caseDbCase: q,
|
|
483
483
|
formId: O,
|
|
484
484
|
onFinish: k,
|
|
485
|
-
onIsSavingChange:
|
|
485
|
+
onIsSavingChange: Me
|
|
486
486
|
}),
|
|
487
|
-
y === "SHARING" && !Q && /* @__PURE__ */
|
|
487
|
+
y === "SHARING" && !Q && /* @__PURE__ */ H(F, {
|
|
488
488
|
variant: "body1",
|
|
489
489
|
children: a`You do not have permissions to share this case.`
|
|
490
490
|
})
|
|
491
491
|
]
|
|
492
492
|
})
|
|
493
|
-
}), /* @__PURE__ */
|
|
493
|
+
}), /* @__PURE__ */ H(le, {
|
|
494
494
|
body: a`Are you sure you want to delete the case?`,
|
|
495
495
|
cancelLabel: a`Cancel`,
|
|
496
496
|
confirmLabel: a`Delete`,
|
|
497
|
-
onConfirm:
|
|
498
|
-
ref:
|
|
497
|
+
onConfirm: Pe,
|
|
498
|
+
ref: E,
|
|
499
499
|
title: a`Delete case?`
|
|
500
500
|
})] });
|
|
501
501
|
}, {
|
|
@@ -504,6 +504,6 @@ var ye = ({ caseDbCase: e, ...t }) => {
|
|
|
504
504
|
testId: "CaseInfoDialog"
|
|
505
505
|
});
|
|
506
506
|
//#endregion
|
|
507
|
-
export {
|
|
507
|
+
export { Z as n, Ee as t };
|
|
508
508
|
|
|
509
509
|
//# sourceMappingURL=CaseInfoDialog.js.map
|