@gen-epix/ui-client-casedb 4.0.0 → 4.0.1

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