@gen-epix/ui-casedb 2.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/dist/index.d.ts +2 -2412
  2. package/dist/index.js +15603 -15632
  3. package/dist/index.js.map +1 -1
  4. package/dist/src/classes/errors/UploadError.d.ts +5 -0
  5. package/dist/src/classes/errors/index.d.ts +1 -0
  6. package/dist/src/classes/filters/SelectionFilter.d.ts +10 -0
  7. package/dist/src/classes/filters/TreeFilter.d.ts +10 -0
  8. package/dist/src/classes/managers/EpiDataManager/EpiDataManager.d.ts +14 -0
  9. package/dist/src/classes/managers/EpiDataManager/index.d.ts +1 -0
  10. package/dist/src/classes/managers/EpiEventBusManager/EpiEventBusManager.d.ts +48 -0
  11. package/dist/src/classes/managers/EpiEventBusManager/index.d.ts +1 -0
  12. package/dist/src/classes/managers/EpiHighlightingManager/EpiHighlightingManager.d.ts +9 -0
  13. package/dist/src/classes/managers/EpiHighlightingManager/index.d.ts +1 -0
  14. package/dist/src/classes/managers/EpiLineListCaseSetMembersManager/EpiListsCaseSetMembersManager.d.ts +11 -0
  15. package/dist/src/classes/managers/EpiLineListCaseSetMembersManager/index.d.ts +1 -0
  16. package/dist/src/components/epi/EpiAddCasesToEventDialog/EpiAddCasesToEventDialog.d.ts +11 -0
  17. package/dist/src/components/epi/EpiAddCasesToEventDialog/EpiAddCasesToEventDialogSuccessNotificationMessage.d.ts +6 -0
  18. package/dist/src/components/epi/EpiAddCasesToEventDialog/index.d.ts +1 -0
  19. package/dist/src/components/epi/EpiBulkEditCaseDialog/EpiBulkEditCaseDialog.d.ts +10 -0
  20. package/dist/src/components/epi/EpiBulkEditCaseDialog/index.d.ts +1 -0
  21. package/dist/src/components/epi/EpiCaseInfoDialog/EpiCaseCaseSetInfo.d.ts +6 -0
  22. package/dist/src/components/epi/EpiCaseInfoDialog/EpiCaseContent.d.ts +6 -0
  23. package/dist/src/components/epi/EpiCaseInfoDialog/EpiCaseForm.d.ts +9 -0
  24. package/dist/src/components/epi/EpiCaseInfoDialog/EpiCaseInfoDialog.d.ts +10 -0
  25. package/dist/src/components/epi/EpiCaseInfoDialog/EpiCaseSharingForm.d.ts +9 -0
  26. package/dist/src/components/epi/EpiCaseInfoDialog/EpiCaseSharingInfo.d.ts +3 -0
  27. package/dist/src/components/epi/EpiCaseInfoDialog/EpiReadOnlyCaseContent.d.ts +6 -0
  28. package/dist/src/components/epi/EpiCaseInfoDialog/index.d.ts +1 -0
  29. package/dist/src/components/epi/EpiCaseSetInfoDialog/EpiCaseSetContent.d.ts +6 -0
  30. package/dist/src/components/epi/EpiCaseSetInfoDialog/EpiCaseSetDescription.d.ts +6 -0
  31. package/dist/src/components/epi/EpiCaseSetInfoDialog/EpiCaseSetForm.d.ts +8 -0
  32. package/dist/src/components/epi/EpiCaseSetInfoDialog/EpiCaseSetInfoDialog.d.ts +11 -0
  33. package/dist/src/components/epi/EpiCaseSetInfoDialog/EpiCaseSetSharingForm.d.ts +10 -0
  34. package/dist/src/components/epi/EpiCaseSetInfoDialog/EpiCaseSetSharingInfo.d.ts +3 -0
  35. package/dist/src/components/epi/EpiCaseSetInfoDialog/index.d.ts +1 -0
  36. package/dist/src/components/epi/EpiCaseSummary/EpiCaseSummary.d.ts +5 -0
  37. package/dist/src/components/epi/EpiCaseSummary/index.d.ts +1 -0
  38. package/dist/src/components/epi/EpiCaseTypeInfoDialog/EpiCaseTypeInfoAccessRights.d.ts +5 -0
  39. package/dist/src/components/epi/EpiCaseTypeInfoDialog/EpiCaseTypeInfoColAccessRights.d.ts +4 -0
  40. package/dist/src/components/epi/EpiCaseTypeInfoDialog/EpiCaseTypeInfoData.d.ts +5 -0
  41. package/dist/src/components/epi/EpiCaseTypeInfoDialog/EpiCaseTypeInfoDialog.d.ts +8 -0
  42. package/dist/src/components/epi/EpiCaseTypeInfoDialog/EpiCaseTypeInfoDialogContent.d.ts +3 -0
  43. package/dist/src/components/epi/EpiCaseTypeInfoDialog/EpiCaseTypeInfoDialogWithLoader.d.ts +9 -0
  44. package/dist/src/components/epi/EpiCaseTypeInfoDialog/EpiCaseTypeInfoRegions.d.ts +5 -0
  45. package/dist/src/components/epi/EpiCaseTypeInfoDialog/EpiCaseTypeInfoTrees.d.ts +5 -0
  46. package/dist/src/components/epi/EpiCaseTypeInfoDialog/EpiCaseTypeInfoValues.d.ts +5 -0
  47. package/dist/src/components/epi/EpiCaseTypeInfoDialog/EpiCaseTypeInfoVariableDetails.d.ts +6 -0
  48. package/dist/src/components/epi/EpiCaseTypeInfoDialog/index.d.ts +10 -0
  49. package/dist/src/components/epi/EpiCasesAlreadyInCaseSetWarning/EpiCasesAlreadyInCaseSetWarning.d.ts +5 -0
  50. package/dist/src/components/epi/EpiCasesAlreadyInCaseSetWarning/EpiCasesAlreadyInCaseSetWarningCaseSetLink.d.ts +5 -0
  51. package/dist/src/components/epi/EpiCasesAlreadyInCaseSetWarning/index.d.ts +1 -0
  52. package/dist/src/components/epi/EpiCompletCaseTypeLoader/EpiCompletCaseTypeLoader.d.ts +7 -0
  53. package/dist/src/components/epi/EpiCompletCaseTypeLoader/index.d.ts +1 -0
  54. package/dist/src/components/epi/EpiContextMenu/EpiContextMenu.d.ts +20 -0
  55. package/dist/src/components/epi/EpiContextMenu/index.d.ts +1 -0
  56. package/dist/src/components/epi/EpiCreateEventDialog/EpiCreateEventDialog.d.ts +11 -0
  57. package/dist/src/components/epi/EpiCreateEventDialog/EpiCreateEventDialogSuccessNotificationMessage.d.ts +6 -0
  58. package/dist/src/components/epi/EpiCreateEventDialog/index.d.ts +1 -0
  59. package/dist/src/components/epi/EpiCurveWidget/EpiCurveWidget.d.ts +1 -0
  60. package/dist/src/components/epi/EpiCurveWidget/index.d.ts +1 -0
  61. package/dist/src/components/epi/EpiCustomTabPanel/EpiCustomTabPanel.d.ts +6 -0
  62. package/dist/src/components/epi/EpiCustomTabPanel/index.d.ts +1 -0
  63. package/dist/src/components/epi/EpiDashboard/EpiDashboard.d.ts +8 -0
  64. package/dist/src/components/epi/EpiDashboard/EpiDashboardDownloadSidebarItem.d.ts +8 -0
  65. package/dist/src/components/epi/EpiDashboard/EpiDashboardGeneralSettingsForm.d.ts +4 -0
  66. package/dist/src/components/epi/EpiDashboard/EpiDashboardLayoutRenderer.d.ts +13 -0
  67. package/dist/src/components/epi/EpiDashboard/EpiDashboardLayoutSettingsForm.d.ts +4 -0
  68. package/dist/src/components/epi/EpiDashboard/EpiDashboardSettingsSidebarItem.d.ts +10 -0
  69. package/dist/src/components/epi/EpiDashboard/EpiDashboardTreeSettingsForm.d.ts +4 -0
  70. package/dist/src/components/epi/EpiDashboard/index.d.ts +1 -0
  71. package/dist/src/components/epi/EpiDashboardStoreLoader/EpiDashboardStoreLoader.d.ts +7 -0
  72. package/dist/src/components/epi/EpiDashboardStoreLoader/EpiDashboardStoreLoaderContent.d.ts +8 -0
  73. package/dist/src/components/epi/EpiDashboardStoreLoader/index.d.ts +2 -0
  74. package/dist/src/components/epi/EpiDashboardStoreLoader/withEpiDashboardStore.d.ts +4 -0
  75. package/dist/src/components/epi/EpiDataCollectionAccessInfo/EpiDataCollectionAccessInfo.d.ts +1 -0
  76. package/dist/src/components/epi/EpiDataCollectionAccessInfo/index.d.ts +1 -0
  77. package/dist/src/components/epi/EpiFindSimilarCasesDialog/EpiFindSimilarCasesDialog.d.ts +12 -0
  78. package/dist/src/components/epi/EpiFindSimilarCasesDialog/index.d.ts +1 -0
  79. package/dist/src/components/epi/EpiLegendaItem/EpiLegendaItem.d.ts +10 -0
  80. package/dist/src/components/epi/EpiLegendaItem/index.d.ts +1 -0
  81. package/dist/src/components/epi/EpiLineListWidget/EpiLineListWidget.d.ts +10 -0
  82. package/dist/src/components/epi/EpiLineListWidget/EpiLineListWidgetPrimaryMenu.d.ts +5 -0
  83. package/dist/src/components/epi/EpiLineListWidget/EpiLineListWidgetSecondaryMenu.d.ts +4 -0
  84. package/dist/src/components/epi/EpiLineListWidget/EpiLineListWidgetTitle.d.ts +1 -0
  85. package/dist/src/components/epi/EpiLineListWidget/index.d.ts +1 -0
  86. package/dist/src/components/epi/EpiLineListWidget/useEpiLineListWidgetEmitDownloadOptions.d.ts +1 -0
  87. package/dist/src/components/epi/EpiMapWidget/EpiMapWidget.d.ts +1 -0
  88. package/dist/src/components/epi/EpiMapWidget/index.d.ts +1 -0
  89. package/dist/src/components/epi/EpiRemoveCasesFromEventDialog/EpiRemoveCasesFromEventDialog.d.ts +11 -0
  90. package/dist/src/components/epi/EpiRemoveCasesFromEventDialog/index.d.ts +1 -0
  91. package/dist/src/components/epi/EpiRemoveFindSimilarCasesResultDialog/EpiRemoveFindSimilarCasesResultDialog.d.ts +10 -0
  92. package/dist/src/components/epi/EpiSequenceDownloadDialog/EpiSequenceDownloadDialog.d.ts +11 -0
  93. package/dist/src/components/epi/EpiSequenceDownloadDialog/index.d.ts +1 -0
  94. package/dist/src/components/epi/EpiStratification/EpiStratification.d.ts +1 -0
  95. package/dist/src/components/epi/EpiStratification/index.d.ts +1 -0
  96. package/dist/src/components/epi/EpiTreeDescription/EpiTreeDescription.d.ts +5 -0
  97. package/dist/src/components/epi/EpiTreeDescription/index.d.ts +1 -0
  98. package/dist/src/components/epi/EpiTreeWidget/EpiTreeWidget.d.ts +14 -0
  99. package/dist/src/components/epi/EpiTreeWidget/index.d.ts +1 -0
  100. package/dist/src/components/epi/EpiUpload/EpiUpload.d.ts +1 -0
  101. package/dist/src/components/epi/EpiUpload/EpiUploadCaseResultTable.d.ts +13 -0
  102. package/dist/src/components/epi/EpiUpload/EpiUploadCreateCases.d.ts +1 -0
  103. package/dist/src/components/epi/EpiUpload/EpiUploadMapColumns.d.ts +1 -0
  104. package/dist/src/components/epi/EpiUpload/EpiUploadMapSequences.d.ts +1 -0
  105. package/dist/src/components/epi/EpiUpload/EpiUploadNavigation.d.ts +10 -0
  106. package/dist/src/components/epi/EpiUpload/EpiUploadSelectFile.d.ts +2 -0
  107. package/dist/src/components/epi/EpiUpload/EpiUploadSelectSequenceFiles.d.ts +1 -0
  108. package/dist/src/components/epi/EpiUpload/EpiUploadValidate.d.ts +2 -0
  109. package/dist/src/components/epi/EpiUpload/EpiUploadValidateNavigation.d.ts +5 -0
  110. package/dist/src/components/epi/EpiUpload/index.d.ts +1 -0
  111. package/dist/src/components/epi/EpiUserRightsDialog/EpiUserRightsDialog.d.ts +10 -0
  112. package/dist/src/components/epi/EpiUserRightsDialog/EpiUserRightsDialogCaseAccessPolicy.d.ts +5 -0
  113. package/dist/src/components/epi/EpiUserRightsDialog/index.d.ts +1 -0
  114. package/dist/src/components/epi/EpiWarning/EpiWarning.d.ts +4 -0
  115. package/dist/src/components/epi/EpiWarning/index.d.ts +1 -0
  116. package/dist/src/components/epi/EpiWidget/EpiWidget.d.ts +13 -0
  117. package/dist/src/components/epi/EpiWidget/index.d.ts +1 -0
  118. package/dist/src/components/epi/EpiWidgetHeaderIconButton/EpiWidgetHeaderIconButton.d.ts +5 -0
  119. package/dist/src/components/epi/EpiWidgetHeaderIconButton/index.d.ts +1 -0
  120. package/dist/src/components/epi/EpiWidgetMenu/EpiWidgetMenu.d.ts +6 -0
  121. package/dist/src/components/epi/EpiWidgetMenu/index.d.ts +1 -0
  122. package/dist/src/components/epi/EpiWidgetUnavailable/EpiWidgetUnavailable.d.ts +6 -0
  123. package/dist/src/components/epi/EpiWidgetUnavailable/index.d.ts +1 -0
  124. package/dist/src/components/ui/FileSelector/FileSelector.d.ts +7 -0
  125. package/dist/src/components/ui/FileSelector/index.d.ts +1 -0
  126. package/dist/src/components/ui/HomePageTrends/HomePageTrendCard.d.ts +9 -0
  127. package/dist/src/components/ui/HomePageTrends/HomePageTrends.d.ts +4 -0
  128. package/dist/src/components/ui/HomePageTrends/index.d.ts +1 -0
  129. package/dist/src/components/ui/PhylogeneticTreeComponent/PhylogeneticTreeComponent.d.ts +41 -0
  130. package/dist/src/components/ui/PhylogeneticTreeComponent/index.d.ts +1 -0
  131. package/dist/src/components/ui/UsersEffectiveRightsDetailsDialog/UsersEffectiveRightsDetailsDialog.d.ts +14 -0
  132. package/dist/src/components/ui/UsersEffectiveRightsDetailsDialog/index.d.ts +1 -0
  133. package/dist/src/context/caseAbac/CaseAbacContext.d.ts +15 -0
  134. package/dist/src/context/caseAbac/CaseAbacContextProvider.d.ts +6 -0
  135. package/dist/src/context/caseAbac/index.d.ts +3 -0
  136. package/dist/src/context/caseAbac/useCaseAbacContext.d.ts +2 -0
  137. package/dist/src/context/caseTypeAbac/CaseTypeAbacContext.d.ts +15 -0
  138. package/dist/src/context/caseTypeAbac/CaseTypeAbacContextProvider.d.ts +6 -0
  139. package/dist/src/context/caseTypeAbac/index.d.ts +3 -0
  140. package/dist/src/context/caseTypeAbac/useCaseTypeAbacContext.d.ts +2 -0
  141. package/dist/src/data/query.d.ts +61 -0
  142. package/dist/src/dataHooks/useAssemblyProtocolsQuery/index.d.ts +1 -0
  143. package/dist/src/dataHooks/useAssemblyProtocolsQuery/useAssemblyProtocolsQuery.d.ts +6 -0
  144. package/dist/src/dataHooks/useCaseRightsQuery/index.d.ts +1 -0
  145. package/dist/src/dataHooks/useCaseRightsQuery/useCaseRightsQuery.d.ts +3 -0
  146. package/dist/src/dataHooks/useCaseSetCategoriesQuery/index.d.ts +1 -0
  147. package/dist/src/dataHooks/useCaseSetCategoriesQuery/useCaseSetCategoriesQuery.d.ts +6 -0
  148. package/dist/src/dataHooks/useCaseSetRightsQuery/index.d.ts +1 -0
  149. package/dist/src/dataHooks/useCaseSetRightsQuery/useCaseSetRightsQuery.d.ts +3 -0
  150. package/dist/src/dataHooks/useCaseSetStatsQuery/index.d.ts +1 -0
  151. package/dist/src/dataHooks/useCaseSetStatsQuery/useCaseSetStatsQuery.d.ts +5 -0
  152. package/dist/src/dataHooks/useCaseSetStatusesQuery/index.d.ts +1 -0
  153. package/dist/src/dataHooks/useCaseSetStatusesQuery/useCaseSetStatusesQuery.d.ts +6 -0
  154. package/dist/src/dataHooks/useCaseSetsQuery/index.d.ts +1 -0
  155. package/dist/src/dataHooks/useCaseSetsQuery/useCaseSetsQuery.d.ts +6 -0
  156. package/dist/src/dataHooks/useCaseTypeSetCategoriesQuery/index.d.ts +1 -0
  157. package/dist/src/dataHooks/useCaseTypeSetCategoriesQuery/useCaseTypeSetCategoriesQuery.d.ts +6 -0
  158. package/dist/src/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.d.ts +1 -0
  159. package/dist/src/dataHooks/useCaseTypeSetCategoryPurposeQuery/useCaseTypeSetCategoryPurposeQuery.d.ts +4 -0
  160. package/dist/src/dataHooks/useCaseTypeSetMembersQuery/index.d.ts +1 -0
  161. package/dist/src/dataHooks/useCaseTypeSetMembersQuery/useCaseTypeSetMembersQuery.d.ts +3 -0
  162. package/dist/src/dataHooks/useCaseTypeSetsQuery/index.d.ts +1 -0
  163. package/dist/src/dataHooks/useCaseTypeSetsQuery/useCaseTypeSetsQuery.d.ts +7 -0
  164. package/dist/src/dataHooks/useCaseTypeStatsQuery/index.d.ts +1 -0
  165. package/dist/src/dataHooks/useCaseTypeStatsQuery/useCaseTypeStatsQuery.d.ts +3 -0
  166. package/dist/src/dataHooks/useCaseTypesQuery/index.d.ts +1 -0
  167. package/dist/src/dataHooks/useCaseTypesQuery/useCaseTypesQuery.d.ts +9 -0
  168. package/dist/src/dataHooks/useColSetMembersQuery/index.d.ts +1 -0
  169. package/dist/src/dataHooks/useColSetMembersQuery/useColSetMembersQuery.d.ts +3 -0
  170. package/dist/src/dataHooks/useColSetsQuery/index.d.ts +1 -0
  171. package/dist/src/dataHooks/useColSetsQuery/useColSetsQuery.d.ts +6 -0
  172. package/dist/src/dataHooks/useColTypesQuery/index.d.ts +1 -0
  173. package/dist/src/dataHooks/useColTypesQuery/useColTypesQuery.d.ts +4 -0
  174. package/dist/src/dataHooks/useColsQuery/index.d.ts +1 -0
  175. package/dist/src/dataHooks/useColsQuery/useColsQuery.d.ts +7 -0
  176. package/dist/src/dataHooks/useConceptQuery/index.d.ts +1 -0
  177. package/dist/src/dataHooks/useConceptQuery/useConceptQuery.d.ts +7 -0
  178. package/dist/src/dataHooks/useConceptRelationTypeQuery/index.d.ts +1 -0
  179. package/dist/src/dataHooks/useConceptRelationTypeQuery/useConceptRelationTypeQuery.d.ts +4 -0
  180. package/dist/src/dataHooks/useConceptSetTypeQuery/index.d.ts +1 -0
  181. package/dist/src/dataHooks/useConceptSetTypeQuery/useConceptSetTypeQuery.d.ts +4 -0
  182. package/dist/src/dataHooks/useConceptSetsQuery/index.d.ts +1 -0
  183. package/dist/src/dataHooks/useConceptSetsQuery/useConceptSetsQuery.d.ts +6 -0
  184. package/dist/src/dataHooks/useDataCollectionSetMembersQuery/index.d.ts +1 -0
  185. package/dist/src/dataHooks/useDataCollectionSetMembersQuery/useDataCollectionSetMembersQuery.d.ts +3 -0
  186. package/dist/src/dataHooks/useDataCollectionsQuery/index.d.ts +1 -0
  187. package/dist/src/dataHooks/useDataCollectionsQuery/useDataCollectionsQuery.d.ts +6 -0
  188. package/dist/src/dataHooks/useDimTypesQuery/index.d.ts +1 -0
  189. package/dist/src/dataHooks/useDimTypesQuery/useDimTypesQuery.d.ts +4 -0
  190. package/dist/src/dataHooks/useDimsQuery/index.d.ts +1 -0
  191. package/dist/src/dataHooks/useDimsQuery/useDimsQuery.d.ts +7 -0
  192. package/dist/src/dataHooks/useDiseasesQuery/index.d.ts +1 -0
  193. package/dist/src/dataHooks/useDiseasesQuery/useDiseasesQuery.d.ts +6 -0
  194. package/dist/src/dataHooks/useEtiologicalAgentsQuery/index.d.ts +1 -0
  195. package/dist/src/dataHooks/useEtiologicalAgentsQuery/useEtiologicalAgentsQuery.d.ts +6 -0
  196. package/dist/src/dataHooks/useGeneticDistanceProtocolsQuery/index.d.ts +1 -0
  197. package/dist/src/dataHooks/useGeneticDistanceProtocolsQuery/useGeneticDistanceProtocolsQuery.d.ts +5 -0
  198. package/dist/src/dataHooks/useOrganizationAccessCasePoliciesQuery/index.d.ts +1 -0
  199. package/dist/src/dataHooks/useOrganizationAccessCasePoliciesQuery/useOrganizationAccessCasePoliciesQuery.d.ts +3 -0
  200. package/dist/src/dataHooks/useOrganizationShareCasePoliciesQuery/index.d.ts +1 -0
  201. package/dist/src/dataHooks/useOrganizationShareCasePoliciesQuery/useOrganizationShareCasePoliciesQuery.d.ts +3 -0
  202. package/dist/src/dataHooks/useRefColsQuery/index.d.ts +1 -0
  203. package/dist/src/dataHooks/useRefColsQuery/useRefColsQuery.d.ts +6 -0
  204. package/dist/src/dataHooks/useRefColsValidationRulesQuery/index.d.ts +1 -0
  205. package/dist/src/dataHooks/useRefColsValidationRulesQuery/useRefColsValidationRulesQuery.d.ts +3 -0
  206. package/dist/src/dataHooks/useRefDimsQuery/index.d.ts +1 -0
  207. package/dist/src/dataHooks/useRefDimsQuery/useRefDimsQuery.d.ts +6 -0
  208. package/dist/src/dataHooks/useRegionQuery/index.d.ts +1 -0
  209. package/dist/src/dataHooks/useRegionQuery/useRegionQuery.d.ts +7 -0
  210. package/dist/src/dataHooks/useRegionRelationTypeQuery/index.d.ts +1 -0
  211. package/dist/src/dataHooks/useRegionRelationTypeQuery/useRegionRelationTypeQuery.d.ts +4 -0
  212. package/dist/src/dataHooks/useRegionSetsQuery/index.d.ts +1 -0
  213. package/dist/src/dataHooks/useRegionSetsQuery/useRegionSetsQuery.d.ts +6 -0
  214. package/dist/src/dataHooks/useSequencingProtocolsQuery/index.d.ts +1 -0
  215. package/dist/src/dataHooks/useSequencingProtocolsQuery/useSequencingProtocolsQuery.d.ts +6 -0
  216. package/dist/src/dataHooks/useTreeAlgorithmCodesQuery/index.d.ts +1 -0
  217. package/dist/src/dataHooks/useTreeAlgorithmCodesQuery/useTreeAlgorithmCodesQuery.d.ts +4 -0
  218. package/dist/src/dataHooks/useUserAccessCasePoliciesQuery/index.d.ts +1 -0
  219. package/dist/src/dataHooks/useUserAccessCasePoliciesQuery/useUserAccessCasePoliciesQuery.d.ts +3 -0
  220. package/dist/src/dataHooks/useUserEffectiveRightsQuery/index.d.ts +1 -0
  221. package/dist/src/dataHooks/useUserEffectiveRightsQuery/useUserEffectiveRightsQuery.d.ts +16 -0
  222. package/dist/src/dataHooks/useUserShareCasePoliciesQuery/index.d.ts +1 -0
  223. package/dist/src/dataHooks/useUserShareCasePoliciesQuery/useUserShareCasePoliciesQuery.d.ts +3 -0
  224. package/dist/src/hooks/useOrganizationCasePolicyNameFactory/index.d.ts +1 -0
  225. package/dist/src/hooks/useOrganizationCasePolicyNameFactory/useOrganizationCasePolicyNameFactory.d.ts +3 -0
  226. package/dist/src/hooks/useUserCasePolicyNameFactory/index.d.ts +1 -0
  227. package/dist/src/hooks/useUserCasePolicyNameFactory/useUserCasePolicyNameFactory.d.ts +3 -0
  228. package/dist/src/index.d.ts +154 -0
  229. package/dist/src/models/caseAccess.d.ts +15 -0
  230. package/dist/src/models/config.d.ts +54 -0
  231. package/dist/src/models/epi.d.ts +185 -0
  232. package/dist/src/models/theme.d.ts +17 -0
  233. package/dist/src/models/tree.d.ts +55 -0
  234. package/dist/src/pages/CaseDbUsersAdminPage/CaseDbUsersAdminPage.d.ts +1 -0
  235. package/dist/src/pages/CaseDbUsersAdminPage/index.d.ts +1 -0
  236. package/dist/src/pages/CaseSetCategoryAdminPage/CaseSetCategoryAdminPage.d.ts +1 -0
  237. package/dist/src/pages/CaseSetCategoryAdminPage/index.d.ts +1 -0
  238. package/dist/src/pages/CaseSetStatusAdminPage/CaseSetStatusAdminPage.d.ts +1 -0
  239. package/dist/src/pages/CaseSetStatusAdminPage/index.d.ts +1 -0
  240. package/dist/src/pages/CaseTypeSetCategoriesAdminPage/CaseTypeSetCategoriesAdminPage.d.ts +1 -0
  241. package/dist/src/pages/CaseTypeSetCategoriesAdminPage/index.d.ts +1 -0
  242. package/dist/src/pages/CaseTypeSetsAdminPage/CaseTypeSetsAdminPage.d.ts +1 -0
  243. package/dist/src/pages/CaseTypeSetsAdminPage/index.d.ts +1 -0
  244. package/dist/src/pages/CaseTypesAdminPage/CaseTypesAdminPage.d.ts +1 -0
  245. package/dist/src/pages/CaseTypesAdminPage/index.d.ts +1 -0
  246. package/dist/src/pages/CasesDetailPage/CasesDetailPage.d.ts +1 -0
  247. package/dist/src/pages/CasesDetailPage/index.d.ts +1 -0
  248. package/dist/src/pages/CasesPage/CasesPage.d.ts +1 -0
  249. package/dist/src/pages/CasesPage/index.d.ts +1 -0
  250. package/dist/src/pages/ColSetsAdminPage/ColSetsAdminPage.d.ts +1 -0
  251. package/dist/src/pages/ColSetsAdminPage/index.d.ts +1 -0
  252. package/dist/src/pages/ColsAdminPage/ColsAdminPage.d.ts +1 -0
  253. package/dist/src/pages/ColsAdminPage/index.d.ts +1 -0
  254. package/dist/src/pages/ConceptRelationsAdminPage/ConceptRelationsAdminPage.d.ts +1 -0
  255. package/dist/src/pages/ConceptRelationsAdminPage/index.d.ts +1 -0
  256. package/dist/src/pages/ConceptSetsAdminPage/ConceptSetsAdminPage.d.ts +1 -0
  257. package/dist/src/pages/ConceptSetsAdminPage/index.d.ts +1 -0
  258. package/dist/src/pages/ConceptsAdminPage/ConceptsAdminPage.d.ts +1 -0
  259. package/dist/src/pages/ConceptsAdminPage/index.d.ts +1 -0
  260. package/dist/src/pages/DataCollectionSetsAdminPage/DataCollectionSetsAdminPage.d.ts +1 -0
  261. package/dist/src/pages/DataCollectionSetsAdminPage/index.d.ts +1 -0
  262. package/dist/src/pages/DataCollectionVisualizationPage/DataCollectionVisualizationPage.d.ts +1 -0
  263. package/dist/src/pages/DataCollectionVisualizationPage/index.d.ts +1 -0
  264. package/dist/src/pages/DataCollectionsAdminPage/DataCollectionsAdminPage.d.ts +1 -0
  265. package/dist/src/pages/DataCollectionsAdminPage/index.d.ts +1 -0
  266. package/dist/src/pages/DimsAdminPage/DimsAdminPage.d.ts +1 -0
  267. package/dist/src/pages/DimsAdminPage/index.d.ts +1 -0
  268. package/dist/src/pages/DiseasesAdminPage/DiseasesAdminPage.d.ts +1 -0
  269. package/dist/src/pages/DiseasesAdminPage/index.d.ts +1 -0
  270. package/dist/src/pages/EtiologicalAgentsAdminPage/EtiologicalAgentsAdminPage.d.ts +1 -0
  271. package/dist/src/pages/EtiologicalAgentsAdminPage/index.d.ts +1 -0
  272. package/dist/src/pages/EtiologiesAdminPage/EtiologiesAdminPage.d.ts +1 -0
  273. package/dist/src/pages/EtiologiesAdminPage/index.d.ts +1 -0
  274. package/dist/src/pages/EventsDetailPage/EventsDetailPage.d.ts +1 -0
  275. package/dist/src/pages/EventsDetailPage/index.d.ts +1 -0
  276. package/dist/src/pages/EventsPage/EventsPage.d.ts +1 -0
  277. package/dist/src/pages/EventsPage/index.d.ts +1 -0
  278. package/dist/src/pages/HomePage/HomePage.d.ts +1 -0
  279. package/dist/src/pages/HomePage/index.d.ts +1 -0
  280. package/dist/src/pages/OrganizationAccessCasePoliciesAdminPage/OrganizationAccessCasePoliciesAdminPage.d.ts +1 -0
  281. package/dist/src/pages/OrganizationAccessCasePoliciesAdminPage/index.d.ts +1 -0
  282. package/dist/src/pages/OrganizationShareCasePoliciesAdminPage/OrganizationShareCasePoliciesAdminPage.d.ts +1 -0
  283. package/dist/src/pages/OrganizationShareCasePoliciesAdminPage/index.d.ts +1 -0
  284. package/dist/src/pages/RefColsAdminPage/RefColsAdminPage.d.ts +1 -0
  285. package/dist/src/pages/RefColsAdminPage/index.d.ts +1 -0
  286. package/dist/src/pages/RefDimsAdminPage/RefDimsAdminPage.d.ts +1 -0
  287. package/dist/src/pages/RefDimsAdminPage/index.d.ts +1 -0
  288. package/dist/src/pages/RegionRelationsAdminPage/RegionRelationsAdminPage.d.ts +1 -0
  289. package/dist/src/pages/RegionRelationsAdminPage/index.d.ts +1 -0
  290. package/dist/src/pages/RegionSetShapesAdminPage/RegionSetShapesAdminPage.d.ts +1 -0
  291. package/dist/src/pages/RegionSetShapesAdminPage/index.d.ts +1 -0
  292. package/dist/src/pages/RegionSetsAdminPage/RegionSetsAdminPage.d.ts +1 -0
  293. package/dist/src/pages/RegionSetsAdminPage/index.d.ts +1 -0
  294. package/dist/src/pages/RegionsAdminPage/RegionsAdminPage.d.ts +1 -0
  295. package/dist/src/pages/RegionsAdminPage/index.d.ts +1 -0
  296. package/dist/src/pages/TrendsPage/TrendsPage.d.ts +1 -0
  297. package/dist/src/pages/TrendsPage/index.d.ts +1 -0
  298. package/dist/src/pages/UploadPage/UploadPage.d.ts +1 -0
  299. package/dist/src/pages/UploadPage/index.d.ts +1 -0
  300. package/dist/src/pages/UserAccessCasePoliciesAdminPage/UserAccessCasePoliciesAdminPage.d.ts +1 -0
  301. package/dist/src/pages/UserAccessCasePoliciesAdminPage/index.d.ts +1 -0
  302. package/dist/src/pages/UserEffectiveRightsAdminPage/UserEffectiveRightsAdminPage.d.ts +1 -0
  303. package/dist/src/pages/UserEffectiveRightsAdminPage/index.d.ts +1 -0
  304. package/dist/src/pages/UserEffectiveRightsTesterAdminPage/UserEffectiveRightsTesterAdminPage.d.ts +1 -0
  305. package/dist/src/pages/UserEffectiveRightsTesterAdminPage/index.d.ts +1 -0
  306. package/dist/src/pages/UserShareCasePoliciesAdminPage/UserShareCasePoliciesAdminPage.d.ts +1 -0
  307. package/dist/src/pages/UserShareCasePoliciesAdminPage/index.d.ts +1 -0
  308. package/dist/src/routes/adminRoutes.d.ts +6 -0
  309. package/dist/src/routes/index.d.ts +2 -0
  310. package/dist/src/routes/routes.d.ts +6 -0
  311. package/dist/src/setup/index.d.ts +1 -0
  312. package/dist/src/setup/setup.d.ts +1 -0
  313. package/dist/src/stores/epiDashboardStore/epiDashboardStore.d.ts +99 -0
  314. package/dist/src/stores/epiDashboardStore/epiDashboardStoreContext.d.ts +4 -0
  315. package/dist/src/stores/epiDashboardStore/index.d.ts +2 -0
  316. package/dist/src/stores/epiUploadStore/epiUploadStore.d.ts +57 -0
  317. package/dist/src/stores/epiUploadStore/epiUploadStoreContext.d.ts +4 -0
  318. package/dist/src/stores/epiUploadStore/index.d.ts +2 -0
  319. package/dist/src/stores/userProfileStore/index.d.ts +1 -0
  320. package/dist/src/stores/userProfileStore/userProfileStore.d.ts +42 -0
  321. package/dist/src/test/lib/CaseDbDemoConfigUtil.d.ts +4 -0
  322. package/dist/src/test/lib/index.d.ts +1 -0
  323. package/dist/src/theme/demoTheme/index.d.ts +2 -0
  324. package/dist/src/utils/AbacUtil/AbacUtil.d.ts +7 -0
  325. package/dist/src/utils/AbacUtil/index.d.ts +1 -0
  326. package/dist/src/utils/CaseDbDataUtil/CaseDbDataUtil.d.ts +30 -0
  327. package/dist/src/utils/CaseDbDataUtil/index.d.ts +1 -0
  328. package/dist/src/utils/CaseDbDownloadUtil/CaseDbDownloadUtil.d.ts +17 -0
  329. package/dist/src/utils/CaseDbDownloadUtil/index.d.ts +1 -0
  330. package/dist/src/utils/CaseDbTableUtil/CaseDbTableUtil.d.ts +6 -0
  331. package/dist/src/utils/CaseDbTableUtil/index.d.ts +1 -0
  332. package/dist/src/utils/CaseSelectionUtil/CaseSelectionUtil.d.ts +8 -0
  333. package/dist/src/utils/CaseSelectionUtil/index.d.ts +1 -0
  334. package/dist/src/utils/CaseSetUtil/CaseSetUtil.d.ts +4 -0
  335. package/dist/src/utils/CaseSetUtil/index.d.ts +1 -0
  336. package/dist/src/utils/CaseTypeUtil/CaseTypeUtil.d.ts +38 -0
  337. package/dist/src/utils/CaseTypeUtil/index.d.ts +1 -0
  338. package/dist/src/utils/CaseUtil/CaseUtil.d.ts +25 -0
  339. package/dist/src/utils/CaseUtil/index.d.ts +1 -0
  340. package/dist/src/utils/DashboardUtil/DashboardUtil.d.ts +9 -0
  341. package/dist/src/utils/DashboardUtil/index.d.ts +1 -0
  342. package/dist/src/utils/DataSetUtil/DataSetUtil.d.ts +17 -0
  343. package/dist/src/utils/DataSetUtil/index.d.ts +1 -0
  344. package/dist/src/utils/EffectiveRightsUtil/EffectiveRightsUtil.d.ts +29 -0
  345. package/dist/src/utils/EffectiveRightsUtil/index.d.ts +1 -0
  346. package/dist/src/utils/EpiCurveUtil/EpiCurveUtil.d.ts +28 -0
  347. package/dist/src/utils/EpiCurveUtil/index.d.ts +1 -0
  348. package/dist/src/utils/EpiFilterUtil/EpiFilterUtil.d.ts +9 -0
  349. package/dist/src/utils/EpiFilterUtil/index.d.ts +1 -0
  350. package/dist/src/utils/EpiLineListUtil/EpiLineListUtil.d.ts +5 -0
  351. package/dist/src/utils/EpiLineListUtil/index.d.ts +1 -0
  352. package/dist/src/utils/EpiMapUtil/EpiMapUtil.d.ts +25 -0
  353. package/dist/src/utils/EpiMapUtil/index.d.ts +1 -0
  354. package/dist/src/utils/EpiTreeUtil/EpiTreeUtil.d.ts +481 -0
  355. package/dist/src/utils/EpiTreeUtil/index.d.ts +1 -0
  356. package/dist/src/utils/EpiUploadUtil/EpiUploadUtil.d.ts +110 -0
  357. package/dist/src/utils/EpiUploadUtil/index.d.ts +1 -0
  358. package/dist/src/utils/FileUtil/FileUtil.d.ts +5 -0
  359. package/dist/src/utils/FileUtil/index.d.ts +1 -0
  360. package/dist/src/utils/NewickUtil/NewickUtil.d.ts +5 -0
  361. package/dist/src/utils/NewickUtil/index.d.ts +1 -0
  362. package/package.json +45 -45
@@ -0,0 +1,99 @@
1
+ import { CaseDbCase, CaseDbCol, CaseDbCompleteCaseType, CaseDbPhylogeneticTree } from '@gen-epix/api-casedb';
2
+ import { CreateTableStoreInitialStateKwArgs, CreateTableStoreKwArgs, TableStoreActions, TableStoreState } from '@gen-epix/ui';
3
+ import { EPI_ZONE, FindSimilarCasesResult, Stratification, TreeConfiguration, STRATIFICATION_MODE } from '../../models/epi';
4
+ import { TreeNode } from '../../models/tree';
5
+ import { StoreApi } from 'zustand';
6
+ import { PersistOptions } from 'zustand/middleware';
7
+ export interface CreateEpiDashboardStoreInitialStateKwArgs extends CreateTableStoreInitialStateKwArgs<CaseDbCase, CaseDbCompleteCaseType> {
8
+ caseSetId: string;
9
+ completeCaseType: CaseDbCompleteCaseType;
10
+ }
11
+ export type CreateEpiDashboardStoreKwArgs = {
12
+ caseSetId: string;
13
+ completeCaseType: CaseDbCompleteCaseType;
14
+ } & CreateTableStoreKwArgs<CaseDbCase, CaseDbCompleteCaseType>;
15
+ export type EpiDashboardStore = EpiDashboardStoreActions & EpiDashboardStoreState;
16
+ interface EpiCurveWidgetData extends WidgetData {
17
+ columnId: string;
18
+ dimensionId: string;
19
+ }
20
+ interface EpiDashboardStoreActions extends TableStoreActions<CaseDbCase, CaseDbCompleteCaseType> {
21
+ addTreeFilter: (nodeId: string) => Promise<void>;
22
+ destroy: () => void;
23
+ expandZone: (zone: EPI_ZONE) => void;
24
+ mutateCachedCase: (caseId: string, item: CaseDbCase) => void;
25
+ reloadStratification: () => void;
26
+ reloadStratifyableColumns: () => void;
27
+ reloadTree: () => void;
28
+ removeTreeFilter: () => Promise<void>;
29
+ resetTreeAddresses: () => void;
30
+ setFindSimilarCasesResults: (findSimilarCasesResults: FindSimilarCasesResult[]) => Promise<void>;
31
+ setNumVisibleAttributesInSummary: (numVisibleAttributesInSummary: number) => void;
32
+ setPhylogeneticTreeResponse: (phylogeneticTree: CaseDbPhylogeneticTree) => void;
33
+ stratify: (mode: STRATIFICATION_MODE, col?: CaseDbCol) => void;
34
+ treeFilterStepOut: () => Promise<void>;
35
+ updateEpiCurveWidgetData: (data: Partial<EpiCurveWidgetData>) => void;
36
+ updateEpiListWidgetData: (data: Partial<EpiListWidgetData>) => void;
37
+ updateEpiMapWidgetData: (data: Partial<EpiMapWidgetData>) => void;
38
+ updateEpiTreeWidgetData: (data: Partial<EpiTreeWidgetData>) => void;
39
+ }
40
+ interface EpiDashboardStoreState extends TableStoreState<CaseDbCase, CaseDbCompleteCaseType> {
41
+ caseSetId: string;
42
+ completeCaseType: CaseDbCompleteCaseType;
43
+ epiCurveWidgetData: EpiCurveWidgetData;
44
+ epiListWidgetData: EpiListWidgetData;
45
+ epiMapWidgetData: EpiMapWidgetData;
46
+ epiTreeWidgetData: EpiTreeWidgetData;
47
+ expandedZone: EPI_ZONE;
48
+ findSimilarCasesResults: FindSimilarCasesResult[];
49
+ isMaxResultsExceeded: boolean;
50
+ isMaxResultsExceededDismissed: boolean;
51
+ newick: string;
52
+ numVisibleAttributesInSummary: number;
53
+ stratification: Stratification;
54
+ stratifyableColumns: StratifiableColumn[];
55
+ tree: TreeNode;
56
+ treeAddresses: {
57
+ [key: string]: {
58
+ addresses: {
59
+ [key: string]: string;
60
+ };
61
+ algorithmCode: string;
62
+ };
63
+ };
64
+ treeResponse: TreeNode;
65
+ }
66
+ interface EpiListWidgetData extends WidgetData {
67
+ visibleItemItemIndex: number;
68
+ }
69
+ interface EpiMapWidgetData extends WidgetData {
70
+ columnId: string;
71
+ dimensionId: string;
72
+ }
73
+ interface EpiTreeWidgetData extends WidgetData {
74
+ horizontalScrollPosition: number;
75
+ treeConfiguration: TreeConfiguration;
76
+ verticalScrollPosition: number;
77
+ zoomLevel: number;
78
+ }
79
+ interface StratifiableColumn {
80
+ col: CaseDbCol;
81
+ enabled: boolean;
82
+ }
83
+ interface WidgetData {
84
+ isUnavailable: boolean;
85
+ }
86
+ export declare const createEpiDashboardStore: (kwArgs: CreateEpiDashboardStoreKwArgs) => Omit< StoreApi<EpiDashboardStore>, "persist" | "setState"> & {
87
+ setState(partial: EpiDashboardStore | Partial<EpiDashboardStore> | ((state: EpiDashboardStore) => EpiDashboardStore | Partial<EpiDashboardStore>), replace?: false): unknown;
88
+ setState(state: EpiDashboardStore | ((state: EpiDashboardStore) => EpiDashboardStore), replace: true): unknown;
89
+ persist: {
90
+ setOptions: (options: Partial< PersistOptions<EpiDashboardStore, EpiDashboardStore, unknown>>) => void;
91
+ clearStorage: () => void;
92
+ rehydrate: () => Promise<void> | void;
93
+ hasHydrated: () => boolean;
94
+ onHydrate: (fn: (state: EpiDashboardStore) => void) => () => void;
95
+ onFinishHydration: (fn: (state: EpiDashboardStore) => void) => () => void;
96
+ getOptions: () => Partial< PersistOptions<EpiDashboardStore, EpiDashboardStore, unknown>>;
97
+ };
98
+ };
99
+ export {};
@@ -0,0 +1,4 @@
1
+ import { StoreApi } from 'zustand';
2
+ import { EpiDashboardStore } from './epiDashboardStore';
3
+ import { Context } from 'react';
4
+ export declare const EpiDashboardStoreContext: Context<StoreApi<EpiDashboardStore>>;
@@ -0,0 +1,2 @@
1
+ export * from './epiDashboardStore';
2
+ export * from './epiDashboardStoreContext';
@@ -0,0 +1,57 @@
1
+ import { CaseDbCaseUploadResult, CaseDbCol, CaseDbCompleteCaseType } from '@gen-epix/api-casedb';
2
+ import { AutoCompleteOption, OptionBase } from '@gen-epix/ui';
3
+ import { CaseUploadResultWithGeneratedId, EpiUploadMappedColumn, EpiUploadSequenceMapping, EPI_UPLOAD_STEP } from '../../models/epi';
4
+ import { StoreApi } from 'zustand';
5
+ export declare const STEP_ORDER: EPI_UPLOAD_STEP[];
6
+ export type EpiUploadStore = EpiUploadStoreActions & EpiUploadStoreState;
7
+ export interface EpiUploadStoreActions {
8
+ destroy: () => Promise<void>;
9
+ findNextStep: (currentStep: EPI_UPLOAD_STEP) => EPI_UPLOAD_STEP;
10
+ findPreviousStep: (currentStep: EPI_UPLOAD_STEP) => EPI_UPLOAD_STEP;
11
+ goToNextStep: () => Promise<void>;
12
+ goToPreviousStep: () => void;
13
+ invalidateCaseValidationQuery: () => Promise<void>;
14
+ reset: () => Promise<void>;
15
+ setCaseTypeId: (caseTypeId: string) => void;
16
+ setCols: (cols: CaseDbCol[]) => void;
17
+ setCompleteCaseType: (completeCaseType: CaseDbCompleteCaseType) => void;
18
+ setCreatedInDataCollectionId: (createdInDataCollectionId: string) => void;
19
+ setDataCollectionOptions: (options: OptionBase<string>[]) => void;
20
+ setFileList: (fileList: FileList) => Promise<void>;
21
+ setMappedColumns: (mappedColumns: EpiUploadMappedColumn[]) => Promise<void>;
22
+ setRawData: (rawData: string[][]) => Promise<void>;
23
+ setSequenceFilesDataTransfer: (dataTransfer: DataTransfer) => void;
24
+ setSequenceMapping: (sequenceMapping: EpiUploadSequenceMapping) => void;
25
+ setSheet: (sheet: string) => Promise<void>;
26
+ setSheetOptions: (sheetOptions: AutoCompleteOption<string>[]) => Promise<void>;
27
+ setValidatedCases: (validatedCases: CaseDbCaseUploadResult[]) => void;
28
+ }
29
+ export interface EpiUploadStoreState {
30
+ activeStep: EPI_UPLOAD_STEP;
31
+ assemblyProtocolId: string;
32
+ caseTypeId: string;
33
+ cols: CaseDbCol[];
34
+ completeCaseType: CaseDbCompleteCaseType;
35
+ createdInDataCollectionId: string;
36
+ createdInDataCollectionOptions: AutoCompleteOption<string>[];
37
+ dataCollectionOptions: OptionBase<string>[];
38
+ fileList: FileList;
39
+ fileName: string;
40
+ fileParsingError: string;
41
+ initError: unknown;
42
+ isInitLoading: boolean;
43
+ mappedColumns: EpiUploadMappedColumn[];
44
+ rawData: string[][];
45
+ sampleIdColId: string;
46
+ sequenceFilesDataTransfer: DataTransfer;
47
+ sequenceMapping: EpiUploadSequenceMapping;
48
+ sequencingProtocolId: string;
49
+ sheet: string;
50
+ sheetOptions: AutoCompleteOption<string>[];
51
+ shouldResetColumnMapping: boolean;
52
+ shouldResetSequenceMapping: boolean;
53
+ validateCasesQueryKey: string[];
54
+ validatedCases: CaseDbCaseUploadResult[];
55
+ validatedCasesWithGeneratedId: CaseUploadResultWithGeneratedId[];
56
+ }
57
+ export declare const createEpiUploadStore: () => StoreApi<EpiUploadStore>;
@@ -0,0 +1,4 @@
1
+ import { StoreApi } from 'zustand';
2
+ import { EpiUploadStore } from './epiUploadStore';
3
+ import { Context } from 'react';
4
+ export declare const EpiUploadStoreContext: Context<StoreApi<EpiUploadStore>>;
@@ -0,0 +1,2 @@
1
+ export * from './epiUploadStore';
2
+ export * from './epiUploadStoreContext';
@@ -0,0 +1 @@
1
+ export * from './userProfileStore';
@@ -0,0 +1,42 @@
1
+ import { EpiDashboardLayoutUserConfig } from '../../models/epi';
2
+ import { StoreApi } from 'zustand';
3
+ import { PersistOptions } from 'zustand/middleware';
4
+ export type EpiDashboardGeneralSettings = {
5
+ isHighlightingEnabled: boolean;
6
+ };
7
+ export type EpiDashboardTreeSettings = {
8
+ isShowDistancesEnabled: boolean;
9
+ isShowSupportLinesWhenUnlinkedEnabled?: boolean;
10
+ };
11
+ export type UserProfileStore = UserProfileStoreActions & UserProfileStoreState;
12
+ export interface UserProfileStoreActions {
13
+ resetEpiDashboardGeneralSettings: () => void;
14
+ resetEpiDashboardLayout: () => void;
15
+ resetEpiDashboardTreeSettings: () => void;
16
+ setEpiDashboardGeneralSettings: (settings: EpiDashboardGeneralSettings) => void;
17
+ setEpiDashboardLayoutUserConfig: (config: EpiDashboardLayoutUserConfig) => void;
18
+ setEpiDashboardPanelConfiguration: (id: string, configuration: string) => void;
19
+ setEpiDashboardTreeSettings: (settings: EpiDashboardTreeSettings) => void;
20
+ }
21
+ export interface UserProfileStoreState {
22
+ epiDashboardGeneralSettings: EpiDashboardGeneralSettings;
23
+ epiDashboardLayoutUserConfig: EpiDashboardLayoutUserConfig;
24
+ epiDashboardPanels: {
25
+ [key: string]: string;
26
+ };
27
+ epiDashboardTreeSettings: EpiDashboardTreeSettings;
28
+ }
29
+ export declare const createUserProfileStoreInitialState: () => UserProfileStoreState;
30
+ export declare const userProfileStore: Omit< StoreApi<UserProfileStore>, "persist" | "setState"> & {
31
+ setState(partial: UserProfileStore | Partial<UserProfileStore> | ((state: UserProfileStore) => UserProfileStore | Partial<UserProfileStore>), replace?: false): unknown;
32
+ setState(state: UserProfileStore | ((state: UserProfileStore) => UserProfileStore), replace: true): unknown;
33
+ persist: {
34
+ setOptions: (options: Partial< PersistOptions<UserProfileStore, unknown, unknown>>) => void;
35
+ clearStorage: () => void;
36
+ rehydrate: () => Promise<void> | void;
37
+ hasHydrated: () => boolean;
38
+ onHydrate: (fn: (state: UserProfileStore) => void) => () => void;
39
+ onFinishHydration: (fn: (state: UserProfileStore) => void) => () => void;
40
+ getOptions: () => Partial< PersistOptions<UserProfileStore, unknown, unknown>>;
41
+ };
42
+ };
@@ -0,0 +1,4 @@
1
+ import { CaseDbConfig } from '../../models/config';
2
+ export declare class CaseDbDemoConfigUtil {
3
+ static createConfig(): CaseDbConfig;
4
+ }
@@ -0,0 +1 @@
1
+ export * from './CaseDbDemoConfigUtil';
@@ -0,0 +1,2 @@
1
+ import { PaletteMode, Theme } from '@mui/material';
2
+ export declare const createCaseDbDemoTheme: (paletteMode: PaletteMode) => Theme;
@@ -0,0 +1,7 @@
1
+ import { CaseDbCaseTypeAccessAbac } from '@gen-epix/api-casedb';
2
+ export declare class AbacUtil {
3
+ static createEffectieveColumnAccessRights(caseTypeAccessAbacs: CaseDbCaseTypeAccessAbac[]): Map<string, {
4
+ read: boolean;
5
+ write: boolean;
6
+ }>;
7
+ }
@@ -0,0 +1 @@
1
+ export * from './AbacUtil';
@@ -0,0 +1,30 @@
1
+ import { CaseDbCaseSet, CaseDbCol, CaseDbDim, CaseDbRefCol, CaseDbRefColValidationRulesResponseBody, CaseDbRefDim } from '@gen-epix/api-casedb';
2
+ import { OptionBase } from '@gen-epix/ui';
3
+ export declare class CaseDbDataUtil {
4
+ static getCaseSetName(caseSet: CaseDbCaseSet): string;
5
+ static getColTypeOptionsForRefDimId(kwArgs: {
6
+ colsValidationRules: CaseDbRefColValidationRulesResponseBody['valid_col_types_by_dim_type'];
7
+ colTypeOptions: OptionBase<string>[];
8
+ refDimId: string;
9
+ refDimMap: Map<string, CaseDbRefDim>;
10
+ }): OptionBase<string>[];
11
+ static getDimOptionsForCaseTypeId(kwArgs: {
12
+ caseTypeId: string;
13
+ dimMap: Map<string, CaseDbDim>;
14
+ dimOptions: OptionBase<string>[];
15
+ }): OptionBase<string>[];
16
+ static getGeneticSequenceColOptionsForCaseTypeId(kwArgs: {
17
+ caseTypeId: string;
18
+ colMap: Map<string, CaseDbCol>;
19
+ colOptions: OptionBase<string>[];
20
+ refColMap: Map<string, CaseDbRefCol>;
21
+ }): OptionBase<string>[];
22
+ static getRefColOptionsForDimId(kwArgs: {
23
+ colsValidationRules: CaseDbRefColValidationRulesResponseBody['valid_col_types_by_dim_type'];
24
+ dimId: string;
25
+ dimMap: Map<string, CaseDbDim>;
26
+ refColMap: Map<string, CaseDbRefCol>;
27
+ refColOptions: OptionBase<string>[];
28
+ refDimMap: Map<string, CaseDbRefDim>;
29
+ }): OptionBase<string>[];
30
+ }
@@ -0,0 +1 @@
1
+ export * from './CaseDbDataUtil';
@@ -0,0 +1,17 @@
1
+ import { TFunction } from 'i18next';
2
+ import { ECharts } from 'echarts';
3
+ import { CaseDbCase, CaseDbCompleteCaseType } from '@gen-epix/api-casedb';
4
+ export declare class CaseDbDownloadUtil {
5
+ static downloadAsCsv(cases: CaseDbCase[], colIds: string[], completeCaseType: CaseDbCompleteCaseType, t: TFunction<'translation', undefined>): void;
6
+ static downloadAsExcel(cases: CaseDbCase[], colIds: string[], completeCaseType: CaseDbCompleteCaseType, t: TFunction<'translation', undefined>): Promise<void>;
7
+ static downloadCanvasImage(baseName: string, canvas: HTMLCanvasElement, type: 'jpeg' | 'png', completeCaseType: CaseDbCompleteCaseType, t: TFunction<'translation', undefined>): void;
8
+ static downloadEchartsImage(baseName: string, instance: ECharts, type: 'jpeg' | 'png', completeCaseType: CaseDbCompleteCaseType, t: TFunction<'translation', undefined>): void;
9
+ static downloadExcelTemplate(caseTypeId: string, t: TFunction<'translation', undefined>): Promise<void>;
10
+ static downloadNewick(baseName: string, newick: string, completeCaseType: CaseDbCompleteCaseType, t: TFunction<'translation', undefined>): void;
11
+ static getExportFileName(baseName: string, completeCaseType: CaseDbCompleteCaseType, t: TFunction<'translation', undefined>): string;
12
+ static getTemplateFileName(completeCaseType: CaseDbCompleteCaseType): string;
13
+ private static getColsForImportExport;
14
+ private static getColumnHeadersForExport;
15
+ private static getColumnHeadersForImport;
16
+ private static getRowsForExport;
17
+ }
@@ -0,0 +1 @@
1
+ export * from './CaseDbDownloadUtil';
@@ -0,0 +1,6 @@
1
+ import { CaseDbCase, CaseDbCol, CaseDbCompleteCaseType } from '@gen-epix/api-casedb';
2
+ import { GetTableCellRowComparatorProps, GetTableCellValueProps, TableColumnText } from '@gen-epix/ui';
3
+ export declare class CaseDbTableUtil {
4
+ static createCaseTypeCellRowComperator({ column, dataContext, direction }: GetTableCellRowComparatorProps<TableColumnText<CaseDbCase, CaseDbCompleteCaseType, CaseDbCol>, CaseDbCompleteCaseType>): (a: CaseDbCase, b: CaseDbCase) => number;
5
+ static getTableCaseTypeCellValue<TRowData>({ column, dataContext, row, rowIndex }: GetTableCellValueProps<TRowData, TableColumnText<TRowData, CaseDbCompleteCaseType, CaseDbCol>, CaseDbCompleteCaseType>): string;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './CaseDbTableUtil';
@@ -0,0 +1,8 @@
1
+ export declare class CaseSelectionUtil {
2
+ static addComponentCaseIdsToSelection(componentCaseIds: string[], selectedIds: string[]): string[];
3
+ static canAddToSelection(componentCaseIds: string[], selectedIds: string[]): boolean;
4
+ static canRefineSelection(componentCaseIds: string[], selectedIds: string[]): boolean;
5
+ static canRemoveFromSelection(componentCaseIds: string[], selectedIds: string[]): boolean;
6
+ static refineSelectionWithComponentCaseIds(componentCaseIds: string[], selectedIds: string[]): string[];
7
+ static removeComponentCaseIdsFromSelection(componentCaseIds: string[], selectedIds: string[]): string[];
8
+ }
@@ -0,0 +1 @@
1
+ export * from './CaseSelectionUtil';
@@ -0,0 +1,4 @@
1
+ import { CaseDbCaseSet } from '@gen-epix/api-casedb';
2
+ export declare class CaseSetUtil {
3
+ static createCaseSetLink(caseSet: CaseDbCaseSet, full?: boolean): string;
4
+ }
@@ -0,0 +1 @@
1
+ export * from './CaseSetUtil';
@@ -0,0 +1,38 @@
1
+ import { CaseDbCaseType, CaseDbCol, CaseDbCompleteCaseType, CaseDbDim, CaseDbRefCol, CaseDbRefDim, CaseDbColType, CaseDbDimType } from '@gen-epix/api-casedb';
2
+ export declare const SELECTION_FILTER_GROUP = "selection";
3
+ export declare const TREE_FILTER_GROUP = "tree";
4
+ export declare class CaseTypeUtil {
5
+ static createCaseTypeLink(caseType: CaseDbCaseType | CaseDbCompleteCaseType, full?: boolean): string;
6
+ /**
7
+ * Find paired FWD/REV columns in the same dimension.
8
+ * @param completeCaseType The complete case type object.
9
+ * @returns An array of paired FWD/REV columns.
10
+ */
11
+ static findPairedReadsCols(completeCaseType: CaseDbCompleteCaseType): {
12
+ fwd: CaseDbCol;
13
+ rev: CaseDbCol;
14
+ }[];
15
+ /**
16
+ * Find a unique column by its column ID or column ID.
17
+ * @param completeCaseType The complete case type object.
18
+ * @param id The ID of the column or column.
19
+ * @returns The unique column if found, otherwise null.
20
+ */
21
+ static findUniqueColByColIdRefOrColId(completeCaseType: CaseDbCompleteCaseType, id: string): CaseDbCol;
22
+ static getCols(completeCaseType: CaseDbCompleteCaseType, dimId?: string): CaseDbCol[];
23
+ /**
24
+ * Get columns by their column type.
25
+ * @param completeCaseType The complete case type object.
26
+ * @param colType The column type to filter by.
27
+ * @returns An array of columns matching the specified column type.
28
+ */
29
+ static getColsByType(completeCaseType: CaseDbCompleteCaseType, colType: CaseDbColType[]): CaseDbCol[];
30
+ static getDimLabel(completeCaseType: CaseDbCompleteCaseType, dimId: string): string;
31
+ static getDims(completeCaseType: CaseDbCompleteCaseType, dimTypes?: CaseDbDimType[]): CaseDbDim[];
32
+ static getInitialVisibleColIds(completeCaseType: CaseDbCompleteCaseType): string[];
33
+ static getPreferredColInDimHavingHighestRank(cols: CaseDbCol[], completeCaseType: CaseDbCompleteCaseType): CaseDbCol;
34
+ static getPreferredGEOCol(cols: CaseDbCol[]): CaseDbCol;
35
+ static getWritableColIds(completeCaseType: CaseDbCompleteCaseType): string[];
36
+ static getWritableImportExportColIds(completeCaseType: CaseDbCompleteCaseType): string[];
37
+ static isGeneticDistanceDim(refDim: CaseDbRefDim, refCols: CaseDbRefCol[]): boolean;
38
+ }
@@ -0,0 +1 @@
1
+ export * from './CaseTypeUtil';
@@ -0,0 +1,25 @@
1
+ import { ObjectSchema } from 'yup';
2
+ import { UseQueryResult } from '@tanstack/react-query';
3
+ import { CaseDbCase, CaseDbCol, CaseDbCompleteCaseType, CaseDbOrganization } from '@gen-epix/api-casedb';
4
+ import { FormFieldDefinition } from '@gen-epix/ui';
5
+ import { CaseTypeRowValue } from '../../models/epi';
6
+ export declare class CaseUtil {
7
+ static applyDataCollectionLinks(kwArgs: {
8
+ caseIds?: string[];
9
+ caseSetDataCollectionIds: string[];
10
+ caseSetId?: string;
11
+ caseTypeId: string;
12
+ }): Promise<void>;
13
+ static createFormFieldDefinitions(completeCaseType: CaseDbCompleteCaseType, organizationsQueryResult: UseQueryResult<CaseDbOrganization[]>): FormFieldDefinition<CaseDbCase['content']>[];
14
+ static createYupSchema(completeCaseType: CaseDbCompleteCaseType): ObjectSchema<{
15
+ [key: string]: string;
16
+ }>;
17
+ static getMappedValue(raw: string, col: CaseDbCol, completeCaseType: CaseDbCompleteCaseType, machineReadable?: boolean): CaseTypeRowValue;
18
+ static getMissingRowValue(raw: string, machineReadable?: boolean): CaseTypeRowValue;
19
+ static getRowValue(content: {
20
+ [key: string]: string;
21
+ }, col: CaseDbCol, completeCaseType: CaseDbCompleteCaseType, machineReadable?: boolean): CaseTypeRowValue;
22
+ private static getConceptMappedValue;
23
+ private static getOrganizationMappedValue;
24
+ private static getRegionMappedValue;
25
+ }
@@ -0,0 +1 @@
1
+ export * from './CaseUtil';
@@ -0,0 +1,9 @@
1
+ import { EpiDashboardLayout, EpiDashboardLayoutConfig, EpiDashboardLayoutUserConfig, EPI_ZONE } from '../../models/epi';
2
+ export declare class DashboardUtil {
3
+ static readonly dashboardLayoutStorageKey = "GENEPIX-EpiDashboard-Layout-v1.3";
4
+ static createDashboardLayoutUserConfigInitialState(): EpiDashboardLayoutUserConfig;
5
+ static getDashboardLayout(userConfig: EpiDashboardLayoutUserConfig): EpiDashboardLayout;
6
+ static getDashboardLayoutConfig(userConfig: EpiDashboardLayoutUserConfig): EpiDashboardLayoutConfig;
7
+ static getEnabledZones(userConfig: EpiDashboardLayoutUserConfig): EPI_ZONE[];
8
+ static isSingleWidget(userConfig: EpiDashboardLayoutUserConfig, zone: EPI_ZONE): boolean;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './DashboardUtil';
@@ -0,0 +1,17 @@
1
+ export declare class DataSetUtil {
2
+ static getCategorizedSetMembers(kwArgs: {
3
+ childMemberIds: string[];
4
+ mappedSetMembers: Map<string, string[]>;
5
+ parentMemberIds: string[];
6
+ parentSetId: string;
7
+ }): {
8
+ categorizedMemberIds: string[];
9
+ setIds: string[];
10
+ uncategorizedMemberIds: string[];
11
+ };
12
+ static getMappedSetMembers<T>(kwArgs: {
13
+ items: T[];
14
+ memberProperty: keyof T & string;
15
+ setProperty: keyof T & string;
16
+ }): Map<string, string[]>;
17
+ }
@@ -0,0 +1 @@
1
+ export * from './DataSetUtil';
@@ -0,0 +1,29 @@
1
+ import { CaseDbCaseTypeSetMember, CaseDbColSetMember, CaseDbOrganizationAccessCasePolicy, CaseDbOrganizationShareCasePolicy, CaseDbUser, CaseDbUserAccessCasePolicy, CaseDbUserShareCasePolicy } from '@gen-epix/api-casedb';
2
+ import { UserEffectiveRight } from '../../models/caseAccess';
3
+ export type OrganizationPolicyGroup = {
4
+ access_case_policies: CaseDbOrganizationAccessCasePolicy[];
5
+ data_collection_id: string;
6
+ organization_id: string;
7
+ share_case_policies: CaseDbOrganizationShareCasePolicy[];
8
+ };
9
+ type AssembleUserEffectiveRightsKwArgs = {
10
+ caseTypeSetMembers: CaseDbCaseTypeSetMember[];
11
+ colSetMembers: CaseDbColSetMember[];
12
+ organizationAccessCasePolicies: CaseDbOrganizationAccessCasePolicy[];
13
+ organizationShareCasePolicies: CaseDbOrganizationShareCasePolicy[];
14
+ user: CaseDbUser;
15
+ userAccessCasePolicies: CaseDbUserAccessCasePolicy[];
16
+ userShareCasePolicies: CaseDbUserShareCasePolicy[];
17
+ };
18
+ type GetOrganizationPolicyGroupsKwArgs = Pick<AssembleUserEffectiveRightsKwArgs, 'organizationAccessCasePolicies' | 'organizationShareCasePolicies'>;
19
+ export declare class EffectiveRightsUtil {
20
+ static assembleUserEffectiveRights({ caseTypeSetMembers, colSetMembers, organizationAccessCasePolicies, organizationShareCasePolicies, user, userAccessCasePolicies, userShareCasePolicies, }: AssembleUserEffectiveRightsKwArgs): UserEffectiveRight[];
21
+ static getMatchingOrganizationShareCasePolicies(params: {
22
+ dataCollectionId: string;
23
+ organizationId: string;
24
+ organizationShareCasePolicies: CaseDbOrganizationShareCasePolicy[];
25
+ }): CaseDbOrganizationShareCasePolicy[];
26
+ static getOrganizationPolicyGroups({ organizationAccessCasePolicies, organizationShareCasePolicies, }: GetOrganizationPolicyGroupsKwArgs): OrganizationPolicyGroup[];
27
+ private static getOrganizationDataCollectionKey;
28
+ }
29
+ export {};
@@ -0,0 +1 @@
1
+ export * from './EffectiveRightsUtil';
@@ -0,0 +1,28 @@
1
+ import { CaseDbCase, CaseDbCol, CaseDbCompleteCaseType, CaseDbColType } from '@gen-epix/api-casedb';
2
+ interface Item {
3
+ date: Date;
4
+ row: CaseDbCase;
5
+ value: number;
6
+ }
7
+ export declare class EpiCurveUtil {
8
+ static getItemsWithinInterval(items: Item[], intervals: Date[], index: number): Item[];
9
+ /**
10
+ * Finds the initial column (resolution) for the given dimensionId in the given lineList
11
+ * @param completeCaseType
12
+ * @param lineList
13
+ * @param cols
14
+ * @returns
15
+ */
16
+ static getPreferredTimeColumn(completeCaseType: CaseDbCompleteCaseType, cases: CaseDbCase[], cols: CaseDbCol[]): CaseDbCol;
17
+ /**
18
+ * Gets rows sorted by time
19
+ * @param completeCaseType
20
+ * @param lineList
21
+ * @param cols
22
+ * @returns
23
+ */
24
+ static getSortedItems(completeCaseType: CaseDbCompleteCaseType, cases: CaseDbCase[], cols: CaseDbCol[]): Item[];
25
+ static getXAxisIntervals(colType: CaseDbColType, items: Item[]): Date[];
26
+ static getXAxisLabel(colType: CaseDbColType, value: Date): string;
27
+ }
28
+ export {};
@@ -0,0 +1 @@
1
+ export * from './EpiCurveUtil';
@@ -0,0 +1,9 @@
1
+ import { CaseDbCol, CaseDbCompleteCaseType, CaseDbRefCol } from '@gen-epix/api-casedb';
2
+ import { FilterDimension, Filters, MultiSelectFilter, TextFilter } from '@gen-epix/ui';
3
+ export declare class EpiFilterUtil {
4
+ private static readonly colTypeBlackList;
5
+ static createCategoricalFilter(col: CaseDbCol, dimId: string, completeCaseType: CaseDbCompleteCaseType): MultiSelectFilter | TextFilter;
6
+ static createFilterDimensions(completeCaseType: CaseDbCompleteCaseType): FilterDimension[];
7
+ static createFilters(completeCaseType: CaseDbCompleteCaseType): Filters;
8
+ static getDateParser(refCol: CaseDbRefCol): (date: string) => Date;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './EpiFilterUtil';
@@ -0,0 +1,5 @@
1
+ import { CaseDbCase } from '@gen-epix/api-casedb';
2
+ export declare class EpiLineListUtil {
3
+ static getCaseCount(cases: CaseDbCase[]): number;
4
+ static getSelectedRows(cases: CaseDbCase[], selectedIds: string[]): CaseDbCase[];
5
+ }
@@ -0,0 +1 @@
1
+ export * from './EpiLineListUtil';
@@ -0,0 +1,25 @@
1
+ import { CaseDbCase, CaseDbRegion } from '@gen-epix/api-casedb';
2
+ export type RegionStatistics = {
3
+ maxNumCases: number;
4
+ minNumCases: number;
5
+ numCases: number;
6
+ statisticsPerRegion: Record<string, {
7
+ numCases: number;
8
+ region: CaseDbRegion;
9
+ rows: CaseDbCase[];
10
+ }>;
11
+ };
12
+ export declare class EpiMapUtil {
13
+ static getGeoJsonAspectScale(geoJson: string): number;
14
+ static getPieChartRadius(numCases: number, maxPieChartArea: number, statistics: RegionStatistics): number;
15
+ static getRegionStatistics(cases: CaseDbCase[], columnId: string, regions: CaseDbRegion[]): RegionStatistics;
16
+ private static createEmptyBounds;
17
+ private static expandBoundsFromCoordinates;
18
+ private static expandBoundsFromFeature;
19
+ private static expandBoundsFromGeometry;
20
+ private static getGeoJsonBounds;
21
+ private static getGeoJsonObjectBounds;
22
+ private static hasBounds;
23
+ private static mergeBounds;
24
+ private static normalizeBounds;
25
+ }
@@ -0,0 +1 @@
1
+ export * from './EpiMapUtil';