@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
|
@@ -6,7 +6,7 @@ import { t as o } from "./toDate.js";
|
|
|
6
6
|
import { i as s } from "./FilterUtil.js";
|
|
7
7
|
import { r as c } from "./eachYearOfInterval.js";
|
|
8
8
|
import { t as l } from "./EpiCurveUtil.js";
|
|
9
|
-
import {
|
|
9
|
+
import { d as u, p as d } from "./protectedTokens.js";
|
|
10
10
|
import { n as f } from "./format.js";
|
|
11
11
|
import { i as p, n as m, r as h } from "./FindSimilarCasesUtil.js";
|
|
12
12
|
import { CaseTypeUtil as g } from "../utils/CaseTypeUtil/index.js";
|
|
@@ -20,55 +20,55 @@ import { t as te } from "./dashboardStore.js";
|
|
|
20
20
|
import { ContextMenu as ne } from "../components/ui/ContextMenu/index.js";
|
|
21
21
|
import { WidgetUnavailable as re } from "../components/ui/WidgetUnavailable/index.js";
|
|
22
22
|
import { EventBusService as ie } from "../classes/services/EventBusService/index.js";
|
|
23
|
-
import { t as
|
|
24
|
-
import { n as
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { CaseDbDimType as
|
|
28
|
-
import { DATE_FORMAT as
|
|
29
|
-
import { Box as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import { use as
|
|
33
|
-
import { useTranslation as
|
|
34
|
-
import
|
|
35
|
-
import { jsx as
|
|
23
|
+
import { t as ae } from "./CaseDbDownloadUtil.js";
|
|
24
|
+
import { n as M } from "./LegendaItem.js";
|
|
25
|
+
import { t as oe } from "./Dashboard.js";
|
|
26
|
+
import { t as se } from "./userProfileStoreContext.js";
|
|
27
|
+
import { CaseDbDimType as N } from "@gen-epix/api-casedb";
|
|
28
|
+
import { DATE_FORMAT as P } from "@gen-epix/ui-core/constants/date";
|
|
29
|
+
import { Box as ce, ListItemIcon as le, ListItemText as ue, MenuItem as de, useTheme as F } from "@mui/material";
|
|
30
|
+
import fe from "@mui/icons-material/Leaderboard";
|
|
31
|
+
import pe from "@mui/icons-material/AreaChart";
|
|
32
|
+
import { use as I, useCallback as L, useEffect as R, useMemo as z, useRef as B, useState as V } from "react";
|
|
33
|
+
import { useTranslation as me } from "react-i18next";
|
|
34
|
+
import he from "@mui/icons-material/FilterAlt";
|
|
35
|
+
import { jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
36
36
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
|
|
37
|
-
function
|
|
38
|
-
let n =
|
|
37
|
+
function W(e, t) {
|
|
38
|
+
let n = d(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = o(e, t?.in), a = i.getDay(), s = (a < r ? -7 : 0) + 6 - (a - r);
|
|
39
39
|
return i.setDate(i.getDate() + s), i.setHours(23, 59, 59, 999), i;
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfISOWeek.js
|
|
43
|
-
function
|
|
44
|
-
return
|
|
43
|
+
function ge(e, t) {
|
|
44
|
+
return W(e, {
|
|
45
45
|
...t,
|
|
46
46
|
weekStartsOn: 1
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/lastDayOfMonth.js
|
|
51
|
-
function
|
|
51
|
+
function _e(e, t) {
|
|
52
52
|
let n = o(e, t?.in), r = n.getMonth();
|
|
53
53
|
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(0, 0, 0, 0), o(n, t?.in);
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
56
|
//#region ../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isString.js
|
|
57
|
-
var
|
|
57
|
+
var G = /* @__PURE__ */ n(((e, n) => {
|
|
58
58
|
var a = t(), o = i(), s = r(), c = "[object String]";
|
|
59
59
|
function l(e) {
|
|
60
60
|
return typeof e == "string" || !o(e) && s(e) && a(e) == c;
|
|
61
61
|
}
|
|
62
62
|
n.exports = l;
|
|
63
|
-
})),
|
|
64
|
-
let u =
|
|
63
|
+
})), ve = /* @__PURE__ */ e(v(), 1), K = /* @__PURE__ */ e(G(), 1), q = /* @__PURE__ */ e(a(), 1), ye = ({ chartRef: e, echarts: t, getXAxisLabel: n, items: r, onCaseIdsChange: i, onChartReady: a, onPointMouseUp: o, stratification: s, xAxisIntervals: c }) => {
|
|
64
|
+
let u = F(), d = B(null), f = I(M), p = z(() => l.getBarChartSeriesData(r, c, n, s, u), [
|
|
65
65
|
r,
|
|
66
66
|
c,
|
|
67
67
|
n,
|
|
68
68
|
s,
|
|
69
69
|
u
|
|
70
70
|
]);
|
|
71
|
-
|
|
71
|
+
R(() => {
|
|
72
72
|
let e = f.highlightSubject.subscribe((e) => {
|
|
73
73
|
if (e.origin === b.EPI_CURVE) return;
|
|
74
74
|
let t = d.current;
|
|
@@ -80,7 +80,8 @@ var K = /* @__PURE__ */ n(((e, n) => {
|
|
|
80
80
|
let n = [];
|
|
81
81
|
p.series?.forEach((t, r) => {
|
|
82
82
|
t.data?.forEach((t, i) => {
|
|
83
|
-
|
|
83
|
+
let a = JSON.parse(t[2]);
|
|
84
|
+
(0, q.default)(a, e.caseIds).length && n.push({
|
|
84
85
|
dataIndex: i,
|
|
85
86
|
seriesIndex: r
|
|
86
87
|
});
|
|
@@ -97,9 +98,9 @@ var K = /* @__PURE__ */ n(((e, n) => {
|
|
|
97
98
|
e();
|
|
98
99
|
};
|
|
99
100
|
}, [f, p]);
|
|
100
|
-
let m =
|
|
101
|
+
let m = L((e) => {
|
|
101
102
|
d.current = e, a?.(e);
|
|
102
|
-
}, [a]), h =
|
|
103
|
+
}, [a]), h = L(() => ({
|
|
103
104
|
grid: {
|
|
104
105
|
bottom: 64,
|
|
105
106
|
left: 48,
|
|
@@ -140,33 +141,33 @@ var K = /* @__PURE__ */ n(((e, n) => {
|
|
|
140
141
|
p.max,
|
|
141
142
|
c,
|
|
142
143
|
n
|
|
143
|
-
])
|
|
144
|
-
|
|
144
|
+
]), g = z(() => {
|
|
145
|
+
let e = (e) => {
|
|
146
|
+
let t = e?.data?.[2];
|
|
147
|
+
return (0, K.default)(t) ? JSON.parse(t) : [];
|
|
148
|
+
};
|
|
149
|
+
return {
|
|
150
|
+
mouseout: () => {
|
|
151
|
+
i?.([]);
|
|
152
|
+
},
|
|
153
|
+
mouseover: (t) => {
|
|
154
|
+
i?.(e(t));
|
|
155
|
+
},
|
|
156
|
+
mouseup: (t) => {
|
|
157
|
+
let n = t?.event?.event;
|
|
158
|
+
o?.({
|
|
159
|
+
caseIds: e(t),
|
|
160
|
+
focussedDate: t?.name,
|
|
161
|
+
mouseEvent: n
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
}, [i, o]);
|
|
166
|
+
return /* @__PURE__ */ H(A, {
|
|
145
167
|
echarts: t,
|
|
146
168
|
notMerge: !0,
|
|
147
169
|
onChartReady: m,
|
|
148
|
-
onEvents:
|
|
149
|
-
let e = (e) => {
|
|
150
|
-
let t = e?.data?.[2];
|
|
151
|
-
return (0, q.default)(t) ? JSON.parse(t) : [];
|
|
152
|
-
};
|
|
153
|
-
return {
|
|
154
|
-
mouseout: () => {
|
|
155
|
-
i?.([]);
|
|
156
|
-
},
|
|
157
|
-
mouseover: (t) => {
|
|
158
|
-
i?.(e(t));
|
|
159
|
-
},
|
|
160
|
-
mouseup: (t) => {
|
|
161
|
-
let n = t?.event?.event;
|
|
162
|
-
o?.({
|
|
163
|
-
caseIds: e(t),
|
|
164
|
-
focussedDate: t?.name,
|
|
165
|
-
mouseEvent: n
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
}, [i, o]),
|
|
170
|
+
onEvents: g,
|
|
170
171
|
option: h(),
|
|
171
172
|
ref: e,
|
|
172
173
|
style: {
|
|
@@ -175,32 +176,34 @@ var K = /* @__PURE__ */ n(((e, n) => {
|
|
|
175
176
|
width: "100%"
|
|
176
177
|
}
|
|
177
178
|
});
|
|
178
|
-
},
|
|
179
|
-
let d =
|
|
179
|
+
}, be = ({ chartRef: e, echarts: t, getXAxisLabel: n, includeMissingValues: r, items: i, onCaseIdsChange: a, onChartReady: o, onPointMouseUp: s, stratification: c, xAxisIntervals: u }) => {
|
|
180
|
+
let d = F(), f = B(null), p = B(null), m = I(M), h = z(() => l.getAreaChartSeriesData(i, u, n, r, c), [
|
|
180
181
|
i,
|
|
181
182
|
u,
|
|
182
183
|
n,
|
|
183
184
|
r,
|
|
184
185
|
c
|
|
185
|
-
]), g =
|
|
186
|
+
]), g = z(() => {
|
|
186
187
|
let e = {}, t = c?.caseIdColors ?? {};
|
|
187
188
|
return Object.entries(t).forEach(([t, n]) => {
|
|
188
189
|
e[n] || (e[n] = []), e[n].push(t);
|
|
189
190
|
}), e;
|
|
190
|
-
}, [c]), v =
|
|
191
|
+
}, [c]), v = z(() => h.series?.length ? h.series.map((e) => {
|
|
191
192
|
let t = e.color;
|
|
192
193
|
return typeof t == "string" ? g[t] ?? [] : [];
|
|
193
|
-
}) : [], [g, h]), y =
|
|
194
|
+
}) : [], [g, h]), y = L((e, t) => {
|
|
194
195
|
if (!h.series || e < 0 || t < 0) return [];
|
|
195
196
|
let n = h.series?.[e]?.data?.[t];
|
|
196
|
-
return n?.[2] && (0,
|
|
197
|
-
}, [h]), x =
|
|
197
|
+
return n?.[2] && (0, K.default)(n[2]) ? JSON.parse(n[2]) : [];
|
|
198
|
+
}, [h]), x = L((e) => {
|
|
198
199
|
if (!e.length) return [];
|
|
199
200
|
let t = c?.caseIdColors;
|
|
200
201
|
if (!t) return e;
|
|
201
202
|
let n = e.find((e) => !!t[e]);
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
if (!n) return e;
|
|
204
|
+
let r = t[n];
|
|
205
|
+
return g[r] ?? e;
|
|
206
|
+
}, [g, c]), S = L(() => ({
|
|
204
207
|
color: _.getEchartsColors(c, d),
|
|
205
208
|
grid: {
|
|
206
209
|
bottom: 64,
|
|
@@ -248,14 +251,14 @@ var K = /* @__PURE__ */ n(((e, n) => {
|
|
|
248
251
|
h.max,
|
|
249
252
|
u,
|
|
250
253
|
n
|
|
251
|
-
]), C =
|
|
254
|
+
]), C = L((e) => {
|
|
252
255
|
let t = p.current;
|
|
253
256
|
t && (t.dispatchAction({ type: "downplay" }), typeof e == "number" && e >= 0 && t.dispatchAction({
|
|
254
257
|
seriesIndex: e,
|
|
255
258
|
type: "highlight"
|
|
256
259
|
}));
|
|
257
260
|
}, []);
|
|
258
|
-
|
|
261
|
+
R(() => {
|
|
259
262
|
let e = m.highlightSubject.subscribe((e) => {
|
|
260
263
|
if (e.origin === b.EPI_CURVE) return;
|
|
261
264
|
let t = p.current;
|
|
@@ -267,7 +270,8 @@ var K = /* @__PURE__ */ n(((e, n) => {
|
|
|
267
270
|
let n = [];
|
|
268
271
|
h.series?.forEach((t, r) => {
|
|
269
272
|
t.data?.forEach((t, i) => {
|
|
270
|
-
|
|
273
|
+
let a = JSON.parse(t[2]);
|
|
274
|
+
(0, q.default)(a, e.caseIds).length && n.push({
|
|
271
275
|
dataIndex: i,
|
|
272
276
|
seriesIndex: r
|
|
273
277
|
});
|
|
@@ -283,53 +287,55 @@ var K = /* @__PURE__ */ n(((e, n) => {
|
|
|
283
287
|
return () => {
|
|
284
288
|
e();
|
|
285
289
|
};
|
|
286
|
-
}, [m, h])
|
|
290
|
+
}, [m, h]);
|
|
291
|
+
let w = L((e) => {
|
|
292
|
+
p.current = e, o?.(e);
|
|
293
|
+
}, [o]), T = z(() => {
|
|
294
|
+
let e = (e) => {
|
|
295
|
+
let t = e;
|
|
296
|
+
if (typeof t.seriesIndex == "number" && t.seriesIndex >= 0) return v[t.seriesIndex] ?? [];
|
|
297
|
+
let n = t?.data?.[2];
|
|
298
|
+
return (0, K.default)(n) ? x(JSON.parse(n)) : typeof t.seriesIndex == "number" && typeof t.dataIndex == "number" && t.seriesIndex >= 0 && t.dataIndex >= 0 ? x(y(t.seriesIndex, t.dataIndex)) : [];
|
|
299
|
+
};
|
|
300
|
+
return {
|
|
301
|
+
globalout: () => {
|
|
302
|
+
f.current = null, C(null), a?.([]);
|
|
303
|
+
},
|
|
304
|
+
mouseout: () => {
|
|
305
|
+
f.current = null, C(null), a?.([]);
|
|
306
|
+
},
|
|
307
|
+
mouseover: (t) => {
|
|
308
|
+
let n = t;
|
|
309
|
+
f.current = typeof n.seriesIndex == "number" ? n.seriesIndex : null, C(f.current);
|
|
310
|
+
let r = e(t);
|
|
311
|
+
r.length && a?.(r);
|
|
312
|
+
},
|
|
313
|
+
mouseup: (t) => {
|
|
314
|
+
let n = t?.event?.event;
|
|
315
|
+
s?.({
|
|
316
|
+
caseIds: e(t),
|
|
317
|
+
focussedDate: t?.name,
|
|
318
|
+
mouseEvent: n
|
|
319
|
+
});
|
|
320
|
+
},
|
|
321
|
+
updateAxisPointer: (e) => {
|
|
322
|
+
let t = e.seriesDataIndices?.[0]?.seriesIndex;
|
|
323
|
+
typeof t == "number" && (f.current = t), C(f.current);
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
}, [
|
|
327
|
+
v,
|
|
328
|
+
x,
|
|
329
|
+
y,
|
|
330
|
+
a,
|
|
331
|
+
s,
|
|
332
|
+
C
|
|
333
|
+
]);
|
|
334
|
+
return /* @__PURE__ */ H(A, {
|
|
287
335
|
echarts: t,
|
|
288
336
|
notMerge: !0,
|
|
289
|
-
onChartReady:
|
|
290
|
-
|
|
291
|
-
}, [o]),
|
|
292
|
-
onEvents: B(() => {
|
|
293
|
-
let e = (e) => {
|
|
294
|
-
let t = e;
|
|
295
|
-
if (typeof t.seriesIndex == "number" && t.seriesIndex >= 0) return v[t.seriesIndex] ?? [];
|
|
296
|
-
let n = t?.data?.[2];
|
|
297
|
-
return (0, q.default)(n) ? x(JSON.parse(n)) : typeof t.seriesIndex == "number" && typeof t.dataIndex == "number" && t.seriesIndex >= 0 && t.dataIndex >= 0 ? x(y(t.seriesIndex, t.dataIndex)) : [];
|
|
298
|
-
};
|
|
299
|
-
return {
|
|
300
|
-
globalout: () => {
|
|
301
|
-
f.current = null, C(null), a?.([]);
|
|
302
|
-
},
|
|
303
|
-
mouseout: () => {
|
|
304
|
-
f.current = null, C(null), a?.([]);
|
|
305
|
-
},
|
|
306
|
-
mouseover: (t) => {
|
|
307
|
-
let n = t;
|
|
308
|
-
f.current = typeof n.seriesIndex == "number" ? n.seriesIndex : null, C(f.current);
|
|
309
|
-
let r = e(t);
|
|
310
|
-
r.length && a?.(r);
|
|
311
|
-
},
|
|
312
|
-
mouseup: (t) => {
|
|
313
|
-
let n = t?.event?.event;
|
|
314
|
-
s?.({
|
|
315
|
-
caseIds: e(t),
|
|
316
|
-
focussedDate: t?.name,
|
|
317
|
-
mouseEvent: n
|
|
318
|
-
});
|
|
319
|
-
},
|
|
320
|
-
updateAxisPointer: (e) => {
|
|
321
|
-
let t = e.seriesDataIndices?.[0]?.seriesIndex;
|
|
322
|
-
typeof t == "number" && (f.current = t), C(f.current);
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
}, [
|
|
326
|
-
v,
|
|
327
|
-
x,
|
|
328
|
-
y,
|
|
329
|
-
a,
|
|
330
|
-
s,
|
|
331
|
-
C
|
|
332
|
-
]),
|
|
337
|
+
onChartReady: w,
|
|
338
|
+
onEvents: T,
|
|
333
339
|
option: S(),
|
|
334
340
|
ref: e,
|
|
335
341
|
style: {
|
|
@@ -338,7 +344,7 @@ var K = /* @__PURE__ */ n(((e, n) => {
|
|
|
338
344
|
width: "100%"
|
|
339
345
|
}
|
|
340
346
|
});
|
|
341
|
-
},
|
|
347
|
+
}, xe = {
|
|
342
348
|
dispose: ee,
|
|
343
349
|
getInstanceByDom: E,
|
|
344
350
|
init: w
|
|
@@ -351,20 +357,20 @@ C([
|
|
|
351
357
|
O,
|
|
352
358
|
D
|
|
353
359
|
]);
|
|
354
|
-
var
|
|
355
|
-
let { t: e } =
|
|
360
|
+
var J = () => {
|
|
361
|
+
let { t: e } = me(), [t, n] = V(null), [r, i] = V("bar"), a = B(null), o = I(M), d = I(se), _ = I(te), v = j(_, (e) => e.stratification), x = j(_, (e) => e.isDataLoading), S = j(_, (e) => e.sortedData), C = j(_, (e) => e.completeCaseType), w = j(_, (e) => e.updateWidgetData), T = j(_, (e) => e.getWidgetData(b.EPI_CURVE)), E = j(_, (e) => e.setFilterValue), D = j(_, (e) => e.filterDimensions), O = z(() => g.getDims(C, [N.TIME]), [C]), ee = j(d, (e) => e.dashboardWidgetSettings[b.EPI_CURVE].isIncludeMissingValuesInAreaChartEnabled), [k, A] = V(null), [F, W] = V(null), G = F?.label ?? "", q = L(() => {
|
|
356
362
|
n(null), A(null);
|
|
357
|
-
}, []),
|
|
358
|
-
|
|
363
|
+
}, []), J = z(() => y.getCaseCount(S), [S]);
|
|
364
|
+
R(() => {
|
|
359
365
|
!v && r === "area" && i("bar");
|
|
360
366
|
}, [v, r]);
|
|
361
|
-
let
|
|
367
|
+
let Se = z(() => [{
|
|
362
368
|
active: r === "bar",
|
|
363
369
|
callback: () => {
|
|
364
370
|
i("bar");
|
|
365
371
|
},
|
|
366
372
|
label: e`Bar chart`,
|
|
367
|
-
leftIcon: /* @__PURE__ */
|
|
373
|
+
leftIcon: /* @__PURE__ */ H(fe, {})
|
|
368
374
|
}, {
|
|
369
375
|
active: r === "area",
|
|
370
376
|
callback: () => {
|
|
@@ -372,26 +378,26 @@ var Y = () => {
|
|
|
372
378
|
},
|
|
373
379
|
disabled: !v,
|
|
374
380
|
label: e`Normalized stacked area chart`,
|
|
375
|
-
leftIcon: /* @__PURE__ */
|
|
381
|
+
leftIcon: /* @__PURE__ */ H(pe, {})
|
|
376
382
|
}], [
|
|
377
383
|
e,
|
|
378
384
|
r,
|
|
379
385
|
v
|
|
380
|
-
]),
|
|
386
|
+
]), Ce = z(() => {
|
|
381
387
|
let t;
|
|
382
|
-
t =
|
|
388
|
+
t = F ? e("Epi curve: {{label}}", { label: F.label }) : e`Epi curve`;
|
|
383
389
|
let n = {
|
|
384
390
|
disabled: !O.length,
|
|
385
391
|
items: [],
|
|
386
392
|
label: t,
|
|
387
|
-
tooltip:
|
|
393
|
+
tooltip: F ? C.ref_cols[F.ref_col_id].description : void 0
|
|
388
394
|
};
|
|
389
|
-
return C.ordered_dim_ids.map((e) => C.dims[e]).filter((e) => C.ref_dims[e.ref_dim_id].dim_type ===
|
|
395
|
+
return C.ordered_dim_ids.map((e) => C.dims[e]).filter((e) => C.ref_dims[e.ref_dim_id].dim_type === N.TIME).forEach((e) => {
|
|
390
396
|
n.items.length && (n.items.at(-1).divider = !0), C.ordered_col_ids_by_dim[e.id].map((e) => C.cols[e]).forEach((e) => {
|
|
391
397
|
n.items.push({
|
|
392
|
-
active: e.id ===
|
|
398
|
+
active: e.id === F?.id,
|
|
393
399
|
callback: () => {
|
|
394
|
-
w(b.EPI_CURVE, { columnId: e.id }),
|
|
400
|
+
w(b.EPI_CURVE, { columnId: e.id }), W(e);
|
|
395
401
|
},
|
|
396
402
|
label: e.label,
|
|
397
403
|
tooltip: e.description
|
|
@@ -399,35 +405,35 @@ var Y = () => {
|
|
|
399
405
|
});
|
|
400
406
|
}), n;
|
|
401
407
|
}, [
|
|
402
|
-
|
|
408
|
+
F,
|
|
403
409
|
C,
|
|
404
410
|
e,
|
|
405
411
|
O.length,
|
|
406
412
|
w
|
|
407
413
|
]);
|
|
408
|
-
|
|
409
|
-
|
|
414
|
+
R(() => {
|
|
415
|
+
F || O.length && (T.columnId ? W(g.getCols(C).find((e) => e.id === T.columnId)) : S.length && W(l.getPreferredTimeColumn(C, S, g.getCols(C, C.case_date_dim_id))));
|
|
410
416
|
}, [
|
|
411
|
-
|
|
417
|
+
F,
|
|
412
418
|
C,
|
|
413
419
|
T.columnId,
|
|
414
420
|
O,
|
|
415
421
|
S
|
|
416
422
|
]);
|
|
417
|
-
let
|
|
418
|
-
|
|
423
|
+
let Y = z(() => F ? l.getSortedItems(C, S, [F]) : [], [
|
|
424
|
+
F,
|
|
419
425
|
S,
|
|
420
426
|
C
|
|
421
|
-
]),
|
|
422
|
-
|
|
427
|
+
]), X = z(() => Y.reduce((e, t) => e + t.value, 0) ?? 0, [Y]), we = L((e) => F ? l.getXAxisLabel(C.ref_cols[F.ref_col_id].col_type, e) : null, [F, C.ref_cols]), Te = z(() => F ? l.getXAxisIntervals(C.ref_cols[F.ref_col_id].col_type, Y) : [], [
|
|
428
|
+
F,
|
|
423
429
|
C.ref_cols,
|
|
424
|
-
|
|
425
|
-
]),
|
|
430
|
+
Y
|
|
431
|
+
]), Ee = L((e) => {
|
|
426
432
|
o.highlight({
|
|
427
433
|
caseIds: e,
|
|
428
434
|
origin: b.EPI_CURVE
|
|
429
435
|
});
|
|
430
|
-
}, [o]),
|
|
436
|
+
}, [o]), De = L((e) => {
|
|
431
437
|
A(e.focussedDate), n({
|
|
432
438
|
caseIds: e.caseIds,
|
|
433
439
|
mouseEvent: e.mouseEvent,
|
|
@@ -436,64 +442,64 @@ var Y = () => {
|
|
|
436
442
|
top: e.mouseEvent?.clientY
|
|
437
443
|
}
|
|
438
444
|
});
|
|
439
|
-
}, []),
|
|
445
|
+
}, []), Oe = L((t) => {
|
|
440
446
|
let n = t.getDom();
|
|
441
|
-
n?.setAttribute("aria-label", e("Epidemiological curve showing the number of cases over time ({{label}})", { label:
|
|
442
|
-
}, [
|
|
443
|
-
if (!(0,
|
|
447
|
+
n?.setAttribute("aria-label", e("Epidemiological curve showing the number of cases over time ({{label}})", { label: G })), n?.setAttribute("role", "img");
|
|
448
|
+
}, [G, e]), Z = L(async (e) => {
|
|
449
|
+
if (!(0, K.default)(k) || !F?.id) {
|
|
444
450
|
e();
|
|
445
451
|
return;
|
|
446
452
|
}
|
|
447
|
-
let t = D.find((e) => e.filterIds.includes(
|
|
453
|
+
let t = D.find((e) => e.filterIds.includes(F.id)).preferredFilterId, n, r;
|
|
448
454
|
if (k.match(/^\d{4}$/)) {
|
|
449
|
-
let e = s(k,
|
|
455
|
+
let e = s(k, P.YEAR, /* @__PURE__ */ new Date());
|
|
450
456
|
n = f(e), r = h(e);
|
|
451
457
|
} else if (k.match(/^\d{4}-\d{2}$/)) {
|
|
452
|
-
let e = s(k,
|
|
453
|
-
n =
|
|
458
|
+
let e = s(k, P.YEAR_MONTH, /* @__PURE__ */ new Date());
|
|
459
|
+
n = p(e), r = _e(e);
|
|
454
460
|
} else if (k.match(/^\d{4}-\d{2}-\d{2}$/)) {
|
|
455
|
-
let e = s(k,
|
|
461
|
+
let e = s(k, P.DATE, /* @__PURE__ */ new Date());
|
|
456
462
|
n = e, r = e;
|
|
457
463
|
} else if (k.match(/^\d{4}-W\d{2}$/)) {
|
|
458
|
-
let e = s(k,
|
|
459
|
-
n =
|
|
464
|
+
let e = s(k, P.YEAR_WEEK, /* @__PURE__ */ new Date(), { useAdditionalWeekYearTokens: !0 });
|
|
465
|
+
n = u(e), r = ge(e);
|
|
460
466
|
} else if (k.match(/^\d{4}-Q\d$/)) {
|
|
461
|
-
let e = s(k,
|
|
462
|
-
n = c(e), r =
|
|
467
|
+
let e = s(k, P.YEAR_QUARTER, /* @__PURE__ */ new Date());
|
|
468
|
+
n = c(e), r = m(e);
|
|
463
469
|
}
|
|
464
470
|
n && r && await E(t, [n, r]), e();
|
|
465
471
|
}, [
|
|
466
472
|
k,
|
|
467
|
-
|
|
473
|
+
F,
|
|
468
474
|
D,
|
|
469
475
|
E
|
|
470
|
-
]), ke =
|
|
476
|
+
]), ke = L((t) => k ? /* @__PURE__ */ U(de, {
|
|
471
477
|
divider: !0,
|
|
472
|
-
onClick: async () => await
|
|
473
|
-
children: [/* @__PURE__ */
|
|
478
|
+
onClick: async () => await Z(t),
|
|
479
|
+
children: [/* @__PURE__ */ H(le, { children: /* @__PURE__ */ H(he, { fontSize: "small" }) }), /* @__PURE__ */ H(ue, { children: e("Filter (show only {{date}})", { date: k }) })]
|
|
474
480
|
}) : null, [
|
|
475
481
|
k,
|
|
476
|
-
|
|
482
|
+
Z,
|
|
477
483
|
e
|
|
478
|
-
]), Q =
|
|
479
|
-
if (!$) return O.length ?
|
|
484
|
+
]), Q = J - X, Ae = Q > 0 ? (0, ve.default)(Q / J * 100, 1) : 0, $ = X > 0 && O.length > 0, je = z(() => {
|
|
485
|
+
if (!$) return O.length ? J ? F ? X ? null : e`No cases with valid date- / time information found for the selected column.` : e`No time column selected.` : e`No cases found.` : e`No time column found.`;
|
|
480
486
|
}, [
|
|
481
487
|
$,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
488
|
+
F,
|
|
489
|
+
X,
|
|
490
|
+
J,
|
|
485
491
|
e,
|
|
486
492
|
O.length
|
|
487
493
|
]);
|
|
488
|
-
return
|
|
494
|
+
return R(() => {
|
|
489
495
|
let t = () => {
|
|
490
496
|
ie.getInstance().emit("onDownloadOptionsChanged", {
|
|
491
497
|
disabled: !$,
|
|
492
498
|
items: [{
|
|
493
|
-
callback: () =>
|
|
499
|
+
callback: () => ae.downloadEchartsImage(e`Epi curve`, a.current.getEchartsInstance(), "png", C, e),
|
|
494
500
|
label: e`Save as PNG`
|
|
495
501
|
}, {
|
|
496
|
-
callback: () =>
|
|
502
|
+
callback: () => ae.downloadEchartsImage(e`Epi curve`, a.current.getEchartsInstance(), "jpeg", C, e),
|
|
497
503
|
label: e`Save as JPEG`
|
|
498
504
|
}],
|
|
499
505
|
zone: b.EPI_CURVE,
|
|
@@ -513,58 +519,58 @@ var Y = () => {
|
|
|
513
519
|
C,
|
|
514
520
|
$,
|
|
515
521
|
e
|
|
516
|
-
]), /* @__PURE__ */
|
|
522
|
+
]), /* @__PURE__ */ U(oe, {
|
|
517
523
|
expandDisabled: !$,
|
|
518
524
|
isLoading: x,
|
|
519
|
-
primaryMenu:
|
|
520
|
-
title:
|
|
521
|
-
warningMessage: $ &&
|
|
525
|
+
primaryMenu: Se,
|
|
526
|
+
title: Ce,
|
|
527
|
+
warningMessage: $ && X > 0 && Q > 0 ? e("Missing cases: {{missingCasesCount}} ({{missingCasesPercentage}}%)", {
|
|
522
528
|
missingCasesCount: Q,
|
|
523
529
|
missingCasesPercentage: Ae
|
|
524
530
|
}) : void 0,
|
|
525
531
|
widgetName: b.EPI_CURVE,
|
|
526
|
-
children: [!$ && /* @__PURE__ */
|
|
532
|
+
children: [!$ && /* @__PURE__ */ H(re, {
|
|
527
533
|
reason: je,
|
|
528
534
|
widgetLabel: e`epi curve`
|
|
529
|
-
}), $ && /* @__PURE__ */
|
|
535
|
+
}), $ && /* @__PURE__ */ U(ce, {
|
|
530
536
|
sx: {
|
|
531
537
|
height: "100%",
|
|
532
538
|
position: "relative"
|
|
533
539
|
},
|
|
534
540
|
children: [
|
|
535
|
-
|
|
541
|
+
Y?.length > 0 && r === "bar" && /* @__PURE__ */ H(ye, {
|
|
536
542
|
chartRef: a,
|
|
537
|
-
echarts:
|
|
538
|
-
getXAxisLabel:
|
|
539
|
-
items:
|
|
540
|
-
onCaseIdsChange:
|
|
541
|
-
onChartReady:
|
|
542
|
-
onPointMouseUp:
|
|
543
|
+
echarts: xe,
|
|
544
|
+
getXAxisLabel: we,
|
|
545
|
+
items: Y,
|
|
546
|
+
onCaseIdsChange: Ee,
|
|
547
|
+
onChartReady: Oe,
|
|
548
|
+
onPointMouseUp: De,
|
|
543
549
|
stratification: v,
|
|
544
|
-
xAxisIntervals:
|
|
550
|
+
xAxisIntervals: Te
|
|
545
551
|
}),
|
|
546
|
-
|
|
552
|
+
Y?.length > 0 && r === "area" && /* @__PURE__ */ H(be, {
|
|
547
553
|
chartRef: a,
|
|
548
|
-
echarts:
|
|
549
|
-
getXAxisLabel:
|
|
554
|
+
echarts: xe,
|
|
555
|
+
getXAxisLabel: we,
|
|
550
556
|
includeMissingValues: ee,
|
|
551
|
-
items:
|
|
552
|
-
onCaseIdsChange:
|
|
553
|
-
onChartReady:
|
|
554
|
-
onPointMouseUp:
|
|
557
|
+
items: Y,
|
|
558
|
+
onCaseIdsChange: Ee,
|
|
559
|
+
onChartReady: Oe,
|
|
560
|
+
onPointMouseUp: De,
|
|
555
561
|
stratification: v,
|
|
556
|
-
xAxisIntervals:
|
|
562
|
+
xAxisIntervals: Te
|
|
557
563
|
}),
|
|
558
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ H(ne, {
|
|
559
565
|
config: t,
|
|
560
566
|
getExtraItems: ke,
|
|
561
|
-
onMenuClose:
|
|
567
|
+
onMenuClose: q
|
|
562
568
|
})
|
|
563
569
|
]
|
|
564
570
|
})]
|
|
565
571
|
});
|
|
566
572
|
};
|
|
567
573
|
//#endregion
|
|
568
|
-
export {
|
|
574
|
+
export { J as t };
|
|
569
575
|
|
|
570
576
|
//# sourceMappingURL=EpiCurveWidget.js.map
|