@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.
Files changed (393) hide show
  1. package/dist/@types/mui.d.ts +1 -1
  2. package/dist/@types/{ui-casedb.d.ts → ui-client-casedb.d.ts} +1 -1
  3. package/dist/_chunks/AddCasesToEventDialog.js +74 -74
  4. package/dist/_chunks/AddCasesToEventDialog.js.map +1 -1
  5. package/dist/_chunks/CaseContentForm.js +2 -2
  6. package/dist/_chunks/CaseContentForm.js.map +1 -1
  7. package/dist/_chunks/CaseDbDownloadUtil.js +40 -35
  8. package/dist/_chunks/CaseDbDownloadUtil.js.map +1 -1
  9. package/dist/_chunks/CaseInfoDialog.js +195 -195
  10. package/dist/_chunks/CaseInfoDialog.js.map +1 -1
  11. package/dist/_chunks/CaseSetInfoDialog.js +131 -131
  12. package/dist/_chunks/CaseSetInfoDialog.js.map +1 -1
  13. package/dist/_chunks/CaseTypeInfoDialog.js +63 -61
  14. package/dist/_chunks/CaseTypeInfoDialog.js.map +1 -1
  15. package/dist/_chunks/CasesAlreadyInCaseSetWarning.js +6 -6
  16. package/dist/_chunks/CasesAlreadyInCaseSetWarning.js.map +1 -1
  17. package/dist/_chunks/CompletCaseTypeLoader.js +3 -3
  18. package/dist/_chunks/CompletCaseTypeLoader.js.map +1 -1
  19. package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js +1 -1
  20. package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js.map +1 -1
  21. package/dist/_chunks/CustomTabPanel.js.map +1 -1
  22. package/dist/_chunks/Dashboard.js +399 -386
  23. package/dist/_chunks/Dashboard.js.map +1 -1
  24. package/dist/_chunks/DashboardStoreLoader.js +5 -5
  25. package/dist/_chunks/DashboardStoreLoader.js.map +1 -1
  26. package/dist/_chunks/DataCollectionAccessInfo.js +21 -21
  27. package/dist/_chunks/DataCollectionAccessInfo.js.map +1 -1
  28. package/dist/_chunks/EpiCurveUtil.js +4 -4
  29. package/dist/_chunks/EpiCurveUtil.js.map +1 -1
  30. package/dist/_chunks/EpiCurveWidget.js +189 -183
  31. package/dist/_chunks/EpiCurveWidget.js.map +1 -1
  32. package/dist/_chunks/FilterUtil.js +103 -101
  33. package/dist/_chunks/FilterUtil.js.map +1 -1
  34. package/dist/_chunks/FindSimilarCasesDialog.js +16 -16
  35. package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -1
  36. package/dist/_chunks/FindSimilarCasesUtil.js +9 -9
  37. package/dist/_chunks/FindSimilarCasesUtil.js.map +1 -1
  38. package/dist/_chunks/HomePageTrends.js +8 -8
  39. package/dist/_chunks/HomePageTrends.js.map +1 -1
  40. package/dist/_chunks/LegendaItem.js +3 -3
  41. package/dist/_chunks/LegendaItem.js.map +1 -1
  42. package/dist/_chunks/LineListWidget.js +23 -21
  43. package/dist/_chunks/LineListWidget.js.map +1 -1
  44. package/dist/_chunks/PanelSeparator.js +374 -384
  45. package/dist/_chunks/PanelSeparator.js.map +1 -1
  46. package/dist/_chunks/Upload.js +222 -207
  47. package/dist/_chunks/Upload.js.map +1 -1
  48. package/dist/_chunks/UploadUtil.js +1970 -841
  49. package/dist/_chunks/UploadUtil.js.map +1 -1
  50. package/dist/_chunks/UserRightsDialog.js +12 -12
  51. package/dist/_chunks/UserRightsDialog.js.map +1 -1
  52. package/dist/_chunks/_MapCache.js +2 -2
  53. package/dist/_chunks/_baseGet.js +1 -1
  54. package/dist/_chunks/_baseGet.js.map +1 -1
  55. package/dist/_chunks/_baseIteratee.js +1 -1
  56. package/dist/_chunks/_baseIteratee.js.map +1 -1
  57. package/dist/_chunks/_setToString.js.map +1 -1
  58. package/dist/_chunks/{chunk-KS7C4IRE.js → chunk-BV7QT456.js} +330 -495
  59. package/dist/_chunks/chunk-BV7QT456.js.map +1 -0
  60. package/dist/_chunks/cloneDeep.js +11 -9
  61. package/dist/_chunks/cloneDeep.js.map +1 -1
  62. package/dist/_chunks/dashboardStore.js +259 -261
  63. package/dist/_chunks/dashboardStore.js.map +1 -1
  64. package/dist/_chunks/esm.js +2900 -2868
  65. package/dist/_chunks/esm.js.map +1 -1
  66. package/dist/_chunks/format.js +8 -8
  67. package/dist/_chunks/format.js.map +1 -1
  68. package/dist/_chunks/index.esm.js +919 -796
  69. package/dist/_chunks/index.esm.js.map +1 -1
  70. package/dist/_chunks/index.module.js +1 -1
  71. package/dist/_chunks/index.module.js.map +1 -1
  72. package/dist/_chunks/protectedTokens.js +79 -81
  73. package/dist/_chunks/protectedTokens.js.map +1 -1
  74. package/dist/_chunks/react.js +1 -1
  75. package/dist/_chunks/react.js.map +1 -1
  76. package/dist/_chunks/round.js +1 -1
  77. package/dist/_chunks/round.js.map +1 -1
  78. package/dist/_chunks/shallow.js +2 -2
  79. package/dist/_chunks/shallow.js.map +1 -1
  80. package/dist/_chunks/sync.js +198 -161
  81. package/dist/_chunks/sync.js.map +1 -1
  82. package/dist/_chunks/toDate.js +1 -1
  83. package/dist/_chunks/toDate.js.map +1 -1
  84. package/dist/_chunks/toString.js +1 -1
  85. package/dist/_chunks/toString.js.map +1 -1
  86. package/dist/_chunks/useUnit.js.map +1 -1
  87. package/dist/_chunks/vanilla.js +1 -1
  88. package/dist/_chunks/vanilla.js.map +1 -1
  89. package/dist/_chunks/yup.js +5 -5
  90. package/dist/_chunks/yup.js.map +1 -1
  91. package/dist/classes/filters/SelectionFilter.d.ts +2 -2
  92. package/dist/classes/filters/TreeFilter.d.ts +2 -2
  93. package/dist/classes/services/DataService/index.js +3 -3
  94. package/dist/classes/services/DataService/index.js.map +1 -1
  95. package/dist/classes/services/EventBusService/EventBusService.d.ts +1 -1
  96. package/dist/classes/services/EventBusService/index.js.map +1 -1
  97. package/dist/classes/services/LineListService/LineListServiceAbstract/index.js +1 -1
  98. package/dist/classes/services/LineListService/LineListServiceAbstract/index.js.map +1 -1
  99. package/dist/components/app/CaseDbApp/index.js +8 -5
  100. package/dist/components/app/CaseDbApp/index.js.map +1 -1
  101. package/dist/components/form/fields/ArrangementEditor/index.js +83 -83
  102. package/dist/components/form/fields/ArrangementEditor/index.js.map +1 -1
  103. package/dist/components/ui/AddCasesToEventDialog/AddCasesToEventDialog.d.ts +2 -2
  104. package/dist/components/ui/CaseContentFormDialog/CaseContentFormDialog.d.ts +2 -2
  105. package/dist/components/ui/CaseContentFormDialog/index.js +1 -1
  106. package/dist/components/ui/CaseContentFormDialog/index.js.map +1 -1
  107. package/dist/components/ui/CaseInfoDialog/CaseInfoDialog.d.ts +2 -2
  108. package/dist/components/ui/CaseSetInfoDialog/CaseSetInfoDialog.d.ts +2 -2
  109. package/dist/components/ui/CaseSummary/index.js +1 -1
  110. package/dist/components/ui/CaseSummary/index.js.map +1 -1
  111. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialog.d.ts +2 -2
  112. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogContent.d.ts +1 -1
  113. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogWithLoader.d.ts +2 -2
  114. package/dist/components/ui/ContextMenu/index.js.map +1 -1
  115. package/dist/components/ui/CreateEventDialog/CreateEventDialog.d.ts +2 -2
  116. package/dist/components/ui/CreateEventDialog/index.js +9 -9
  117. package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
  118. package/dist/components/ui/Dashboard/DashboardDownloadSidebarItem.d.ts +1 -1
  119. package/dist/components/ui/Dashboard/DashboardSettingsSidebarItem.d.ts +1 -1
  120. package/dist/components/ui/Dashboard/DashboardWidget.d.ts +1 -1
  121. package/dist/components/ui/DashboardEditCases/index.js +1 -1
  122. package/dist/components/ui/DashboardEditCases/index.js.map +1 -1
  123. package/dist/components/ui/FileSelector/index.js +46 -46
  124. package/dist/components/ui/FileSelector/index.js.map +1 -1
  125. package/dist/components/ui/FindSimilarCasesDialog/FindSimilarCasesDialog.d.ts +2 -2
  126. package/dist/components/ui/Grouping/index.js +50 -50
  127. package/dist/components/ui/Grouping/index.js.map +1 -1
  128. package/dist/components/ui/HistogramWidget/index.js +1 -1
  129. package/dist/components/ui/HistogramWidget/index.js.map +1 -1
  130. package/dist/components/ui/MapWidget/index.js +7 -3
  131. package/dist/components/ui/MapWidget/index.js.map +1 -1
  132. package/dist/components/ui/RemoveCasesFromEventDialog/RemoveCasesFromEventDialog.d.ts +2 -2
  133. package/dist/components/ui/RemoveCasesFromEventDialog/index.js +6 -6
  134. package/dist/components/ui/RemoveCasesFromEventDialog/index.js.map +1 -1
  135. package/dist/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.d.ts +2 -2
  136. package/dist/components/ui/SequenceDownloadDialog/SequenceDownloadDialog.d.ts +2 -2
  137. package/dist/components/ui/SequenceDownloadDialog/index.js +22 -22
  138. package/dist/components/ui/SequenceDownloadDialog/index.js.map +1 -1
  139. package/dist/components/ui/TreeDescription/index.js.map +1 -1
  140. package/dist/components/ui/TreeWidget/index.js +11 -11
  141. package/dist/components/ui/TreeWidget/index.js.map +1 -1
  142. package/dist/components/ui/Upload/UploadCaseResultTable.d.ts +2 -2
  143. package/dist/components/ui/Upload/UploadEditColumnValuesDialog.d.ts +2 -2
  144. package/dist/components/ui/UserRightsDialog/UserRightsDialog.d.ts +2 -2
  145. package/dist/components/ui/UsersEffectiveRightsDetailsDialog/UsersEffectiveRightsDetailsDialog.d.ts +2 -2
  146. package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js +25 -11
  147. package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js.map +1 -1
  148. package/dist/components/ui/Warning/index.js.map +1 -1
  149. package/dist/components/ui/WidgetHeaderIconButton/index.js.map +1 -1
  150. package/dist/components/ui/WidgetMenu/WidgetMenu.d.ts +1 -1
  151. package/dist/components/ui/WidgetMenu/index.js +2 -2
  152. package/dist/components/ui/WidgetMenu/index.js.map +1 -1
  153. package/dist/components/ui/WidgetUnavailable/index.js.map +1 -1
  154. package/dist/constants/query.d.ts +1 -1
  155. package/dist/constants/query.js +1 -1
  156. package/dist/constants/query.js.map +1 -1
  157. package/dist/context/caseAbac/CaseAbacContext.d.ts +1 -1
  158. package/dist/dataHooks/useAssemblyProtocolsQuery/index.js +3 -3
  159. package/dist/dataHooks/useAssemblyProtocolsQuery/index.js.map +1 -1
  160. package/dist/dataHooks/useAssemblyProtocolsQuery/useAssemblyProtocolsQuery.d.ts +1 -1
  161. package/dist/dataHooks/useCaseRightsQuery/index.js +2 -2
  162. package/dist/dataHooks/useCaseRightsQuery/index.js.map +1 -1
  163. package/dist/dataHooks/useCaseSetCategoriesQuery/index.js +3 -3
  164. package/dist/dataHooks/useCaseSetCategoriesQuery/index.js.map +1 -1
  165. package/dist/dataHooks/useCaseSetCategoriesQuery/useCaseSetCategoriesQuery.d.ts +1 -1
  166. package/dist/dataHooks/useCaseSetRightsQuery/index.js +2 -2
  167. package/dist/dataHooks/useCaseSetRightsQuery/index.js.map +1 -1
  168. package/dist/dataHooks/useCaseSetStatsQuery/index.js +3 -3
  169. package/dist/dataHooks/useCaseSetStatsQuery/index.js.map +1 -1
  170. package/dist/dataHooks/useCaseSetStatsQuery/useCaseSetStatsQuery.d.ts +1 -1
  171. package/dist/dataHooks/useCaseSetStatusesQuery/index.js +3 -3
  172. package/dist/dataHooks/useCaseSetStatusesQuery/index.js.map +1 -1
  173. package/dist/dataHooks/useCaseSetStatusesQuery/useCaseSetStatusesQuery.d.ts +1 -1
  174. package/dist/dataHooks/useCaseSetsQuery/index.js +3 -3
  175. package/dist/dataHooks/useCaseSetsQuery/index.js.map +1 -1
  176. package/dist/dataHooks/useCaseSetsQuery/useCaseSetsQuery.d.ts +1 -1
  177. package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js +3 -3
  178. package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js.map +1 -1
  179. package/dist/dataHooks/useCaseTypeSetCategoriesQuery/useCaseTypeSetCategoriesQuery.d.ts +1 -1
  180. package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.js.map +1 -1
  181. package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/useCaseTypeSetCategoryPurposeQuery.d.ts +1 -1
  182. package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js +2 -2
  183. package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js.map +1 -1
  184. package/dist/dataHooks/useCaseTypeSetsQuery/index.js +3 -3
  185. package/dist/dataHooks/useCaseTypeSetsQuery/index.js.map +1 -1
  186. package/dist/dataHooks/useCaseTypeSetsQuery/useCaseTypeSetsQuery.d.ts +1 -1
  187. package/dist/dataHooks/useCaseTypeStatsQuery/index.js +2 -2
  188. package/dist/dataHooks/useCaseTypeStatsQuery/index.js.map +1 -1
  189. package/dist/dataHooks/useCaseTypesQuery/index.js +3 -3
  190. package/dist/dataHooks/useCaseTypesQuery/index.js.map +1 -1
  191. package/dist/dataHooks/useCaseTypesQuery/useCaseTypesQuery.d.ts +1 -1
  192. package/dist/dataHooks/useColSetMembersQuery/index.js +2 -2
  193. package/dist/dataHooks/useColSetMembersQuery/index.js.map +1 -1
  194. package/dist/dataHooks/useColSetsQuery/index.js +3 -3
  195. package/dist/dataHooks/useColSetsQuery/index.js.map +1 -1
  196. package/dist/dataHooks/useColSetsQuery/useColSetsQuery.d.ts +1 -1
  197. package/dist/dataHooks/useColTypesQuery/index.js.map +1 -1
  198. package/dist/dataHooks/useColTypesQuery/useColTypesQuery.d.ts +1 -1
  199. package/dist/dataHooks/useColsQuery/index.js +3 -3
  200. package/dist/dataHooks/useColsQuery/index.js.map +1 -1
  201. package/dist/dataHooks/useColsQuery/useColsQuery.d.ts +1 -1
  202. package/dist/dataHooks/useConceptQuery/index.js +3 -3
  203. package/dist/dataHooks/useConceptQuery/index.js.map +1 -1
  204. package/dist/dataHooks/useConceptQuery/useConceptQuery.d.ts +1 -1
  205. package/dist/dataHooks/useConceptRelationTypeQuery/index.js.map +1 -1
  206. package/dist/dataHooks/useConceptRelationTypeQuery/useConceptRelationTypeQuery.d.ts +1 -1
  207. package/dist/dataHooks/useConceptSetTypeQuery/index.js.map +1 -1
  208. package/dist/dataHooks/useConceptSetTypeQuery/useConceptSetTypeQuery.d.ts +1 -1
  209. package/dist/dataHooks/useConceptSetsQuery/index.js +3 -3
  210. package/dist/dataHooks/useConceptSetsQuery/index.js.map +1 -1
  211. package/dist/dataHooks/useConceptSetsQuery/useConceptSetsQuery.d.ts +1 -1
  212. package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js +2 -2
  213. package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js.map +1 -1
  214. package/dist/dataHooks/useDataCollectionsQuery/index.js +3 -3
  215. package/dist/dataHooks/useDataCollectionsQuery/index.js.map +1 -1
  216. package/dist/dataHooks/useDataCollectionsQuery/useDataCollectionsQuery.d.ts +1 -1
  217. package/dist/dataHooks/useDimTypesQuery/index.js.map +1 -1
  218. package/dist/dataHooks/useDimTypesQuery/useDimTypesQuery.d.ts +1 -1
  219. package/dist/dataHooks/useDimsQuery/index.js +3 -3
  220. package/dist/dataHooks/useDimsQuery/index.js.map +1 -1
  221. package/dist/dataHooks/useDimsQuery/useDimsQuery.d.ts +1 -1
  222. package/dist/dataHooks/useDiseasesQuery/index.js +3 -3
  223. package/dist/dataHooks/useDiseasesQuery/index.js.map +1 -1
  224. package/dist/dataHooks/useDiseasesQuery/useDiseasesQuery.d.ts +1 -1
  225. package/dist/dataHooks/useEtiologicalAgentsQuery/index.js +3 -3
  226. package/dist/dataHooks/useEtiologicalAgentsQuery/index.js.map +1 -1
  227. package/dist/dataHooks/useEtiologicalAgentsQuery/useEtiologicalAgentsQuery.d.ts +1 -1
  228. package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js +3 -3
  229. package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js.map +1 -1
  230. package/dist/dataHooks/useGeneticDistanceProtocolsQuery/useGeneticDistanceProtocolsQuery.d.ts +1 -1
  231. package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js +2 -2
  232. package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js.map +1 -1
  233. package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js +2 -2
  234. package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js.map +1 -1
  235. package/dist/dataHooks/useRefColsQuery/index.js +3 -3
  236. package/dist/dataHooks/useRefColsQuery/index.js.map +1 -1
  237. package/dist/dataHooks/useRefColsQuery/useRefColsQuery.d.ts +1 -1
  238. package/dist/dataHooks/useRefColsValidationRulesQuery/index.js +2 -2
  239. package/dist/dataHooks/useRefColsValidationRulesQuery/index.js.map +1 -1
  240. package/dist/dataHooks/useRefDimsQuery/index.js +3 -3
  241. package/dist/dataHooks/useRefDimsQuery/index.js.map +1 -1
  242. package/dist/dataHooks/useRefDimsQuery/useRefDimsQuery.d.ts +1 -1
  243. package/dist/dataHooks/useRegionQuery/index.js +3 -3
  244. package/dist/dataHooks/useRegionQuery/index.js.map +1 -1
  245. package/dist/dataHooks/useRegionQuery/useRegionQuery.d.ts +1 -1
  246. package/dist/dataHooks/useRegionRelationTypeQuery/index.js.map +1 -1
  247. package/dist/dataHooks/useRegionRelationTypeQuery/useRegionRelationTypeQuery.d.ts +1 -1
  248. package/dist/dataHooks/useRegionSetsQuery/index.js +3 -3
  249. package/dist/dataHooks/useRegionSetsQuery/index.js.map +1 -1
  250. package/dist/dataHooks/useRegionSetsQuery/useRegionSetsQuery.d.ts +1 -1
  251. package/dist/dataHooks/useSequencingProtocolsQuery/index.js +3 -3
  252. package/dist/dataHooks/useSequencingProtocolsQuery/index.js.map +1 -1
  253. package/dist/dataHooks/useSequencingProtocolsQuery/useSequencingProtocolsQuery.d.ts +1 -1
  254. package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.js.map +1 -1
  255. package/dist/dataHooks/useTreeAlgorithmCodesQuery/useTreeAlgorithmCodesQuery.d.ts +1 -1
  256. package/dist/dataHooks/useUnitQuery/useUnit.d.ts +1 -1
  257. package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js +2 -2
  258. package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js.map +1 -1
  259. package/dist/dataHooks/useUserEffectiveRightsQuery/index.js +3 -3
  260. package/dist/dataHooks/useUserEffectiveRightsQuery/index.js.map +1 -1
  261. package/dist/dataHooks/useUserEffectiveRightsQuery/useUserEffectiveRightsQuery.d.ts +1 -1
  262. package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js +2 -2
  263. package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js.map +1 -1
  264. package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js +2 -2
  265. package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js.map +1 -1
  266. package/dist/hooks/useOrganizationCasePolicyNameFactory/useOrganizationCasePolicyNameFactory.d.ts +1 -1
  267. package/dist/hooks/useUserCasePolicyNameFactory/index.js +3 -3
  268. package/dist/hooks/useUserCasePolicyNameFactory/index.js.map +1 -1
  269. package/dist/hooks/useUserCasePolicyNameFactory/useUserCasePolicyNameFactory.d.ts +1 -1
  270. package/dist/locale/nl.json +1 -1
  271. package/dist/models/config.d.ts +1 -1
  272. package/dist/models/dashboard.d.ts +1 -1
  273. package/dist/models/dashboard.js.map +1 -1
  274. package/dist/models/theme.d.ts +2 -2
  275. package/dist/pages/CaseDbUsersAdminPage/index.js +5 -5
  276. package/dist/pages/CaseDbUsersAdminPage/index.js.map +1 -1
  277. package/dist/pages/CaseSetCategoryAdminPage/index.js +4 -4
  278. package/dist/pages/CaseSetCategoryAdminPage/index.js.map +1 -1
  279. package/dist/pages/CaseSetStatusAdminPage/index.js +4 -4
  280. package/dist/pages/CaseSetStatusAdminPage/index.js.map +1 -1
  281. package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js +4 -4
  282. package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js.map +1 -1
  283. package/dist/pages/CaseTypeSetsAdminPage/index.js +6 -6
  284. package/dist/pages/CaseTypeSetsAdminPage/index.js.map +1 -1
  285. package/dist/pages/CaseTypesAdminPage/index.js +5 -5
  286. package/dist/pages/CaseTypesAdminPage/index.js.map +1 -1
  287. package/dist/pages/CasesDetailPage/index.js +5 -5
  288. package/dist/pages/CasesDetailPage/index.js.map +1 -1
  289. package/dist/pages/CasesPage/index.js +10 -10
  290. package/dist/pages/CasesPage/index.js.map +1 -1
  291. package/dist/pages/ColSetsAdminPage/index.js +6 -6
  292. package/dist/pages/ColSetsAdminPage/index.js.map +1 -1
  293. package/dist/pages/ColsAdminPage/index.js +5 -5
  294. package/dist/pages/ColsAdminPage/index.js.map +1 -1
  295. package/dist/pages/ConceptRelationsAdminPage/index.js +19 -19
  296. package/dist/pages/ConceptRelationsAdminPage/index.js.map +1 -1
  297. package/dist/pages/ConceptSetsAdminPage/index.js +5 -5
  298. package/dist/pages/ConceptSetsAdminPage/index.js.map +1 -1
  299. package/dist/pages/ConceptsAdminPage/index.js +5 -5
  300. package/dist/pages/ConceptsAdminPage/index.js.map +1 -1
  301. package/dist/pages/DataCollectionSetsAdminPage/index.js +12 -12
  302. package/dist/pages/DataCollectionSetsAdminPage/index.js.map +1 -1
  303. package/dist/pages/DataCollectionVisualizationPage/index.js +4 -4
  304. package/dist/pages/DataCollectionVisualizationPage/index.js.map +1 -1
  305. package/dist/pages/DataCollectionsAdminPage/index.js +4 -4
  306. package/dist/pages/DataCollectionsAdminPage/index.js.map +1 -1
  307. package/dist/pages/DimsAdminPage/index.js +6 -6
  308. package/dist/pages/DimsAdminPage/index.js.map +1 -1
  309. package/dist/pages/DiseasesAdminPage/index.js +4 -4
  310. package/dist/pages/DiseasesAdminPage/index.js.map +1 -1
  311. package/dist/pages/EtiologicalAgentsAdminPage/index.js +4 -4
  312. package/dist/pages/EtiologicalAgentsAdminPage/index.js.map +1 -1
  313. package/dist/pages/EtiologiesAdminPage/index.js +3 -3
  314. package/dist/pages/EtiologiesAdminPage/index.js.map +1 -1
  315. package/dist/pages/EventsDetailPage/index.js +5 -5
  316. package/dist/pages/EventsDetailPage/index.js.map +1 -1
  317. package/dist/pages/EventsPage/index.js +11 -11
  318. package/dist/pages/EventsPage/index.js.map +1 -1
  319. package/dist/pages/HomePage/index.js +2 -2
  320. package/dist/pages/HomePage/index.js.map +1 -1
  321. package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +4 -4
  322. package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -1
  323. package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js +4 -4
  324. package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js.map +1 -1
  325. package/dist/pages/RefColsAdminPage/index.js +7 -7
  326. package/dist/pages/RefColsAdminPage/index.js.map +1 -1
  327. package/dist/pages/RefDimsAdminPage/index.js +5 -5
  328. package/dist/pages/RefDimsAdminPage/index.js.map +1 -1
  329. package/dist/pages/RegionRelationsAdminPage/index.js +3 -3
  330. package/dist/pages/RegionRelationsAdminPage/index.js.map +1 -1
  331. package/dist/pages/RegionSetShapesAdminPage/index.js +4 -4
  332. package/dist/pages/RegionSetShapesAdminPage/index.js.map +1 -1
  333. package/dist/pages/RegionSetsAdminPage/index.js +5 -5
  334. package/dist/pages/RegionSetsAdminPage/index.js.map +1 -1
  335. package/dist/pages/RegionsAdminPage/index.js +5 -5
  336. package/dist/pages/RegionsAdminPage/index.js.map +1 -1
  337. package/dist/pages/TrendsPage/index.js +1 -1
  338. package/dist/pages/TrendsPage/index.js.map +1 -1
  339. package/dist/pages/UploadPage/index.js +1 -1
  340. package/dist/pages/UploadPage/index.js.map +1 -1
  341. package/dist/pages/UserAccessCasePoliciesAdminPage/index.js +4 -4
  342. package/dist/pages/UserAccessCasePoliciesAdminPage/index.js.map +1 -1
  343. package/dist/pages/UserEffectiveRightsAdminPage/index.js +12 -12
  344. package/dist/pages/UserEffectiveRightsAdminPage/index.js.map +1 -1
  345. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +8 -8
  346. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
  347. package/dist/pages/UserShareCasePoliciesAdminPage/index.js +4 -4
  348. package/dist/pages/UserShareCasePoliciesAdminPage/index.js.map +1 -1
  349. package/dist/routes/adminRoutes.d.ts +1 -1
  350. package/dist/routes/index.js +11 -8
  351. package/dist/routes/index.js.map +1 -1
  352. package/dist/routes/routes.d.ts +1 -1
  353. package/dist/setup/setup.js +5 -5
  354. package/dist/setup/setup.js.map +1 -1
  355. package/dist/stores/dashboardStore/dashboardStore.d.ts +1 -1
  356. package/dist/stores/uploadStore/index.js +2 -2
  357. package/dist/stores/uploadStore/index.js.map +1 -1
  358. package/dist/stores/uploadStore/uploadStore.d.ts +1 -1
  359. package/dist/stores/userProfileStore/index.js +2 -2
  360. package/dist/stores/userProfileStore/index.js.map +1 -1
  361. package/dist/theme/demoTheme/index.js +2 -2
  362. package/dist/theme/demoTheme/index.js.map +1 -1
  363. package/dist/utils/CaseDbDataUtil/CaseDbDataUtil.d.ts +1 -1
  364. package/dist/utils/CaseDbDataUtil/index.js +1 -1
  365. package/dist/utils/CaseDbDataUtil/index.js.map +1 -1
  366. package/dist/utils/CaseDbStandardConfigUtil/index.js +2488 -1408
  367. package/dist/utils/CaseDbStandardConfigUtil/index.js.map +1 -1
  368. package/dist/utils/CaseDbTableUtil/CaseDbTableUtil.d.ts +1 -1
  369. package/dist/utils/CaseDbTableUtil/index.js +1 -1
  370. package/dist/utils/CaseDbTableUtil/index.js.map +1 -1
  371. package/dist/utils/CaseSelectionUtil/index.js.map +1 -1
  372. package/dist/utils/CaseTypeFormUtil/CaseTypeFormUtil.d.ts +1 -1
  373. package/dist/utils/CaseTypeFormUtil/index.js +7 -10
  374. package/dist/utils/CaseTypeFormUtil/index.js.map +1 -1
  375. package/dist/utils/CaseTypeUtil/index.js +1 -1
  376. package/dist/utils/CaseTypeUtil/index.js.map +1 -1
  377. package/dist/utils/CaseUtil/index.js +3 -3
  378. package/dist/utils/CaseUtil/index.js.map +1 -1
  379. package/dist/utils/DashboardUtil/index.js +1 -1
  380. package/dist/utils/DashboardUtil/index.js.map +1 -1
  381. package/dist/utils/DataSetUtil/index.js.map +1 -1
  382. package/dist/utils/FileUtil/index.js +1 -1
  383. package/dist/utils/FileUtil/index.js.map +1 -1
  384. package/dist/utils/FilterUtil/FilterUtil.d.ts +2 -2
  385. package/dist/utils/HistogramUtil/index.js +1 -1
  386. package/dist/utils/HistogramUtil/index.js.map +1 -1
  387. package/dist/utils/MapUtil/index.js +1 -1
  388. package/dist/utils/MapUtil/index.js.map +1 -1
  389. package/dist/utils/StratificationUtil/index.js +3 -2
  390. package/dist/utils/StratificationUtil/index.js.map +1 -1
  391. package/dist/utils/UploadUtil/UploadUtil.d.ts +1 -1
  392. package/package.json +19 -11
  393. 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 { f as u, l as d } from "./protectedTokens.js";
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 M } from "./CaseDbDownloadUtil.js";
24
- import { n as N } from "./LegendaItem.js";
25
- import { t as ae } from "./Dashboard.js";
26
- import { t as oe } from "./userProfileStoreContext.js";
27
- import { CaseDbDimType as P } from "@gen-epix/api-casedb";
28
- import { DATE_FORMAT as F } from "@gen-epix/ui-core/constants/date";
29
- import { Box as se, ListItemIcon as ce, ListItemText as le, MenuItem as ue, useTheme as I } from "@mui/material";
30
- import de from "@mui/icons-material/Leaderboard";
31
- import fe from "@mui/icons-material/AreaChart";
32
- import { use as L, useCallback as R, useEffect as z, useMemo as B, useRef as V, useState as H } from "react";
33
- import { useTranslation as pe } from "react-i18next";
34
- import me from "@mui/icons-material/FilterAlt";
35
- import { jsx as U, jsxs as W } from "react/jsx-runtime";
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 G(e, t) {
38
- let n = u(), 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);
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 he(e, t) {
44
- return G(e, {
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 ge(e, t) {
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 K = /* @__PURE__ */ n(((e, n) => {
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
- })), _e = /* @__PURE__ */ e(v(), 1), q = /* @__PURE__ */ e(K(), 1), J = /* @__PURE__ */ e(a(), 1), ve = ({ chartRef: e, echarts: t, getXAxisLabel: n, items: r, onCaseIdsChange: i, onChartReady: a, onPointMouseUp: o, stratification: s, xAxisIntervals: c }) => {
64
- let u = I(), d = V(null), f = L(N), p = B(() => l.getBarChartSeriesData(r, c, n, s, 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
- z(() => {
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
- (0, J.default)(JSON.parse(t[2]), e.caseIds).length && n.push({
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 = R((e) => {
101
+ let m = L((e) => {
101
102
  d.current = e, a?.(e);
102
- }, [a]), h = R(() => ({
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
- return /* @__PURE__ */ U(A, {
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: B(() => {
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
- }, ye = ({ chartRef: e, echarts: t, getXAxisLabel: n, includeMissingValues: r, items: i, onCaseIdsChange: a, onChartReady: o, onPointMouseUp: s, stratification: c, xAxisIntervals: u }) => {
179
- let d = I(), f = V(null), p = V(null), m = L(N), h = B(() => l.getAreaChartSeriesData(i, u, n, r, c), [
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 = B(() => {
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 = B(() => h.series?.length ? h.series.map((e) => {
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 = R((e, t) => {
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, q.default)(n[2]) ? JSON.parse(n[2]) : [];
197
- }, [h]), x = R((e) => {
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
- return n ? g[t[n]] ?? e : e;
203
- }, [g, c]), S = R(() => ({
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 = R((e) => {
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
- return z(() => {
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
- (0, J.default)(JSON.parse(t[2]), e.caseIds).length && n.push({
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]), /* @__PURE__ */ U(A, {
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: R((e) => {
290
- p.current = e, o?.(e);
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
- }, be = {
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 Y = () => {
355
- let { t: e } = pe(), [t, n] = H(null), [r, i] = H("bar"), a = V(null), o = L(N), u = L(oe), _ = L(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 = B(() => g.getDims(C, [P.TIME]), [C]), ee = j(u, (e) => e.dashboardWidgetSettings[b.EPI_CURVE].isIncludeMissingValuesInAreaChartEnabled), [k, A] = H(null), [I, G] = H(null), K = I?.label ?? "", J = R(() => {
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
- }, []), Y = B(() => y.getCaseCount(S), [S]);
358
- z(() => {
363
+ }, []), J = z(() => y.getCaseCount(S), [S]);
364
+ R(() => {
359
365
  !v && r === "area" && i("bar");
360
366
  }, [v, r]);
361
- let xe = B(() => [{
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__ */ U(de, {})
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__ */ U(fe, {})
381
+ leftIcon: /* @__PURE__ */ H(pe, {})
376
382
  }], [
377
383
  e,
378
384
  r,
379
385
  v
380
- ]), Se = B(() => {
386
+ ]), Ce = z(() => {
381
387
  let t;
382
- t = I ? e("Epi curve: {{label}}", { label: I.label }) : e`Epi curve`;
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: I ? C.ref_cols[I.ref_col_id].description : void 0
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 === P.TIME).forEach((e) => {
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 === I?.id,
398
+ active: e.id === F?.id,
393
399
  callback: () => {
394
- w(b.EPI_CURVE, { columnId: e.id }), G(e);
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
- I,
408
+ F,
403
409
  C,
404
410
  e,
405
411
  O.length,
406
412
  w
407
413
  ]);
408
- z(() => {
409
- I || O.length && (T.columnId ? G(g.getCols(C).find((e) => e.id === T.columnId)) : S.length && G(l.getPreferredTimeColumn(C, S, g.getCols(C, C.case_date_dim_id))));
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
- I,
417
+ F,
412
418
  C,
413
419
  T.columnId,
414
420
  O,
415
421
  S
416
422
  ]);
417
- let X = B(() => I ? l.getSortedItems(C, S, [I]) : [], [
418
- I,
423
+ let Y = z(() => F ? l.getSortedItems(C, S, [F]) : [], [
424
+ F,
419
425
  S,
420
426
  C
421
- ]), Z = B(() => X.reduce((e, t) => e + t.value, 0) ?? 0, [X]), Ce = R((e) => I ? l.getXAxisLabel(C.ref_cols[I.ref_col_id].col_type, e) : null, [I, C.ref_cols]), we = B(() => I ? l.getXAxisIntervals(C.ref_cols[I.ref_col_id].col_type, X) : [], [
422
- I,
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
- X
425
- ]), Te = R((e) => {
430
+ Y
431
+ ]), Ee = L((e) => {
426
432
  o.highlight({
427
433
  caseIds: e,
428
434
  origin: b.EPI_CURVE
429
435
  });
430
- }, [o]), Ee = R((e) => {
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
- }, []), De = R((t) => {
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: K })), n?.setAttribute("role", "img");
442
- }, [K, e]), Oe = R(async (e) => {
443
- if (!(0, q.default)(k) || !I?.id) {
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(I.id)).preferredFilterId, n, r;
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, F.YEAR, /* @__PURE__ */ new Date());
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, F.YEAR_MONTH, /* @__PURE__ */ new Date());
453
- n = m(e), r = ge(e);
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, F.DATE, /* @__PURE__ */ new Date());
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, F.YEAR_WEEK, /* @__PURE__ */ new Date(), { useAdditionalWeekYearTokens: !0 });
459
- n = d(e), r = he(e);
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, F.YEAR_QUARTER, /* @__PURE__ */ new Date());
462
- n = c(e), r = p(e);
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
- I,
473
+ F,
468
474
  D,
469
475
  E
470
- ]), ke = R((t) => k ? /* @__PURE__ */ W(ue, {
476
+ ]), ke = L((t) => k ? /* @__PURE__ */ U(de, {
471
477
  divider: !0,
472
- onClick: async () => await Oe(t),
473
- children: [/* @__PURE__ */ U(ce, { children: /* @__PURE__ */ U(me, { fontSize: "small" }) }), /* @__PURE__ */ U(le, { children: e("Filter (show only {{date}})", { date: k }) })]
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
- Oe,
482
+ Z,
477
483
  e
478
- ]), Q = Y - Z, Ae = Q > 0 ? (0, _e.default)(Q / Y * 100, 1) : 0, $ = Z > 0 && O.length > 0, je = B(() => {
479
- if (!$) return O.length ? Y ? I ? Z ? 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.`;
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
- I,
483
- Z,
484
- Y,
488
+ F,
489
+ X,
490
+ J,
485
491
  e,
486
492
  O.length
487
493
  ]);
488
- return z(() => {
494
+ return R(() => {
489
495
  let t = () => {
490
496
  ie.getInstance().emit("onDownloadOptionsChanged", {
491
497
  disabled: !$,
492
498
  items: [{
493
- callback: () => M.downloadEchartsImage(e`Epi curve`, a.current.getEchartsInstance(), "png", C, e),
499
+ callback: () => ae.downloadEchartsImage(e`Epi curve`, a.current.getEchartsInstance(), "png", C, e),
494
500
  label: e`Save as PNG`
495
501
  }, {
496
- callback: () => M.downloadEchartsImage(e`Epi curve`, a.current.getEchartsInstance(), "jpeg", C, e),
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__ */ W(ae, {
522
+ ]), /* @__PURE__ */ U(oe, {
517
523
  expandDisabled: !$,
518
524
  isLoading: x,
519
- primaryMenu: xe,
520
- title: Se,
521
- warningMessage: $ && Z > 0 && Q > 0 ? e("Missing cases: {{missingCasesCount}} ({{missingCasesPercentage}}%)", {
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__ */ U(re, {
532
+ children: [!$ && /* @__PURE__ */ H(re, {
527
533
  reason: je,
528
534
  widgetLabel: e`epi curve`
529
- }), $ && /* @__PURE__ */ W(se, {
535
+ }), $ && /* @__PURE__ */ U(ce, {
530
536
  sx: {
531
537
  height: "100%",
532
538
  position: "relative"
533
539
  },
534
540
  children: [
535
- X?.length > 0 && r === "bar" && /* @__PURE__ */ U(ve, {
541
+ Y?.length > 0 && r === "bar" && /* @__PURE__ */ H(ye, {
536
542
  chartRef: a,
537
- echarts: be,
538
- getXAxisLabel: Ce,
539
- items: X,
540
- onCaseIdsChange: Te,
541
- onChartReady: De,
542
- onPointMouseUp: Ee,
543
+ echarts: xe,
544
+ getXAxisLabel: we,
545
+ items: Y,
546
+ onCaseIdsChange: Ee,
547
+ onChartReady: Oe,
548
+ onPointMouseUp: De,
543
549
  stratification: v,
544
- xAxisIntervals: we
550
+ xAxisIntervals: Te
545
551
  }),
546
- X?.length > 0 && r === "area" && /* @__PURE__ */ U(ye, {
552
+ Y?.length > 0 && r === "area" && /* @__PURE__ */ H(be, {
547
553
  chartRef: a,
548
- echarts: be,
549
- getXAxisLabel: Ce,
554
+ echarts: xe,
555
+ getXAxisLabel: we,
550
556
  includeMissingValues: ee,
551
- items: X,
552
- onCaseIdsChange: Te,
553
- onChartReady: De,
554
- onPointMouseUp: Ee,
557
+ items: Y,
558
+ onCaseIdsChange: Ee,
559
+ onChartReady: Oe,
560
+ onPointMouseUp: De,
555
561
  stratification: v,
556
- xAxisIntervals: we
562
+ xAxisIntervals: Te
557
563
  }),
558
- /* @__PURE__ */ U(ne, {
564
+ /* @__PURE__ */ H(ne, {
559
565
  config: t,
560
566
  getExtraItems: ke,
561
- onMenuClose: J
567
+ onMenuClose: q
562
568
  })
563
569
  ]
564
570
  })]
565
571
  });
566
572
  };
567
573
  //#endregion
568
- export { Y as t };
574
+ export { J as t };
569
575
 
570
576
  //# sourceMappingURL=EpiCurveWidget.js.map