@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
@@ -15,36 +15,36 @@ import { useCaseSetStatusMapQuery as b, useCaseSetStatusOptionsQuery as x } from
15
15
  import { array as S, boolean as C, object as w, string as T } from "yup";
16
16
  import { t as E } from "i18next";
17
17
  import { CaseDbCaseApi as D } from "@gen-epix/api-casedb";
18
- import { QueryClientService as O } from "@gen-epix/ui/classes/services/QueryClientService";
19
- import { FORM_FIELD_DEFINITION_TYPE as k } from "@gen-epix/ui-form/models/form";
18
+ import { QueryClientService as O } from "@gen-epix/ui-client-common/classes/services/QueryClientService";
19
+ import { FORM_FIELD_DEFINITION_TYPE as k } from "@gen-epix/ui-core-form/models/form";
20
20
  import { DATE_FORMAT as A } from "@gen-epix/ui-core/constants/date";
21
- import { NotificationService as j } from "@gen-epix/ui/classes/services/NotificationService";
22
- import { Box as M, Table as ee, TableBody as te, TableCell as N, TableHead as P, TableRow as F, Typography as I } from "@mui/material";
21
+ import { NotificationService as j } from "@gen-epix/ui-client-common/classes/services/NotificationService";
22
+ import { Box as M, Table as N, TableBody as ee, TableCell as P, TableHead as te, TableRow as F, Typography as I } from "@mui/material";
23
23
  import { useCallback as L, useEffect as R, useId as ne, useMemo as z, useRef as re, useState as B } from "react";
24
24
  import { useTranslation as V } from "react-i18next";
25
25
  import { Fragment as ie, jsx as H, jsxs as U } from "react/jsx-runtime";
26
- import { ResponseHandler as ae } from "@gen-epix/ui/components/ui/ResponseHandler";
27
- import { useItemQuery as oe } from "@gen-epix/ui/hooks/useItemQuery";
26
+ import { ResponseHandler as ae } from "@gen-epix/ui-client-common/components/ui/ResponseHandler";
27
+ import { useItemQuery as oe } from "@gen-epix/ui-client-common/hooks/useItemQuery";
28
28
  import { useArray as se } from "@gen-epix/ui-core/hooks/useArray";
29
- import { GenericForm as W } from "@gen-epix/ui-form/components/helpers/GenericForm";
30
- import { useQueryMemo as ce } from "@gen-epix/ui/hooks/useQueryMemo";
31
- import { Confirmation as le } from "@gen-epix/ui/components/ui/Confirmation";
29
+ import { GenericForm as W } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
30
+ import { useQueryMemo as ce } from "@gen-epix/ui-client-common/hooks/useQueryMemo";
31
+ import { Confirmation as le } from "@gen-epix/ui-core-components/components/Confirmation";
32
32
  import ue from "@mui/icons-material/Edit";
33
- import { withDialog as de } from "@gen-epix/ui/hoc/withDialog";
33
+ import { withDialog as de } from "@gen-epix/ui-core-components/hoc/withDialog";
34
34
  import { TestIdUtil as G } from "@gen-epix/ui-core/utils/TestIdUtil";
35
35
  import fe from "@mui/icons-material/Save";
36
- import { FormUtil as K } from "@gen-epix/ui-form/utils/FormUtil";
37
- import { RouterService as pe } from "@gen-epix/ui/classes/services/RouterService";
36
+ import { FormUtil as K } from "@gen-epix/ui-core-form/utils/FormUtil";
37
+ import { RouterService as pe } from "@gen-epix/ui-client-common/classes/services/RouterService";
38
38
  import me from "@mui/icons-material/Delete";
39
39
  import he from "@mui/icons-material/Share";
40
40
  import ge from "@mui/icons-material/ArrowLeft";
41
- import { Spinner as q } from "@gen-epix/ui/components/ui/Spinner";
42
- import { useDeleteMutation as _e } from "@gen-epix/ui/hooks/useDeleteMutation";
43
- import { RichTextEditorContent as J } from "@gen-epix/ui-form/components/fields/RichTextEditor";
44
- import { useEditMutation as ve } from "@gen-epix/ui/hooks/useEditMutation";
45
- import { SchemaUtil as Y } from "@gen-epix/ui-form/utils/SchemaUtil";
41
+ import { Spinner as q } from "@gen-epix/ui-core-components/components/Spinner";
42
+ import { useDeleteMutation as _e } from "@gen-epix/ui-client-common/hooks/useDeleteMutation";
43
+ import { RichTextEditorContent as J } from "@gen-epix/ui-core-form/components/fields/RichTextEditor";
44
+ import { useEditMutation as Y } from "@gen-epix/ui-client-common/hooks/useEditMutation";
45
+ import { SchemaUtil as X } from "@gen-epix/ui-core-form/utils/SchemaUtil";
46
46
  //#region src/components/ui/CaseSetInfoDialog/CaseSetDescription.tsx
47
- var ye = ({ caseSet: e, ...t }) => {
47
+ var ve = ({ caseSet: e, ...t }) => {
48
48
  let { t: n } = V();
49
49
  return /* @__PURE__ */ U(M, {
50
50
  ...t,
@@ -56,7 +56,7 @@ var ye = ({ caseSet: e, ...t }) => {
56
56
  children: n`None`
57
57
  })] })]
58
58
  });
59
- }, X = /* @__PURE__ */ e(i(), 1), be = ({ caseSet: e, caseTypeId: t, formId: i, onFinish: a, onIsSavingChange: c, ...l }) => {
59
+ }, Z = /* @__PURE__ */ e(i(), 1), ye = ({ caseSet: e, caseTypeId: t, formId: i, onFinish: a, onIsSavingChange: c, ...l }) => {
60
60
  let { t: u } = V(), [d, f] = B(!1), m = z(() => w().shape({
61
61
  dataCollectionIds: S().of(T().uuid4()).required(),
62
62
  shouldApplySharingToCases: C().required()
@@ -70,7 +70,7 @@ var ye = ({ caseSet: e, ...t }) => {
70
70
  });
71
71
  try {
72
72
  await O.getInstance().cancelQueries(s);
73
- let t = h?.rights?.[0], n = (0, X.default)(i, t.shared_in_data_collection_ids), r = (0, X.default)(t.shared_in_data_collection_ids, i);
73
+ let t = h?.rights?.[0], n = (0, Z.default)(i, t.shared_in_data_collection_ids), r = (0, Z.default)(t.shared_in_data_collection_ids, i);
74
74
  n.length > 0 && await D.getInstance().caseSetDataCollectionLinksPostSome(n.map((t) => ({
75
75
  case_set_id: e.id,
76
76
  data_collection_id: t
@@ -123,7 +123,7 @@ var ye = ({ caseSet: e, ...t }) => {
123
123
  schema: m
124
124
  })
125
125
  });
126
- }, xe = ({ ...e }) => {
126
+ }, be = ({ ...e }) => {
127
127
  let { t } = V();
128
128
  return /* @__PURE__ */ U(M, {
129
129
  ...e,
@@ -132,14 +132,14 @@ var ye = ({ caseSet: e, ...t }) => {
132
132
  children: t`Shared in`
133
133
  }), /* @__PURE__ */ H(h, {})]
134
134
  });
135
- }, Se = ({ caseSet: e, formId: t, onFinish: r, onIsSavingChange: i }) => {
135
+ }, xe = ({ caseSet: e, formId: t, onFinish: r, onIsSavingChange: i }) => {
136
136
  let a = l(), c = y(), u = x(), d = z(() => w().shape({
137
137
  case_set_category_id: T().uuid4().required(),
138
138
  case_set_status_id: T().uuid4().required(),
139
139
  case_type_id: T().uuid4().required(),
140
- code: Y.code,
141
- description: Y.description,
142
- name: Y.name
140
+ code: X.code,
141
+ description: X.description,
142
+ name: X.name
143
143
  }), []), f = L(() => {
144
144
  r();
145
145
  }, [r]), p = L(() => {
@@ -190,7 +190,7 @@ var ye = ({ caseSet: e, ...t }) => {
190
190
  u.options,
191
191
  a.isLoading,
192
192
  a.options
193
- ]), { isMutating: h, mutate: g, setPreviousItem: v } = ve({
193
+ ]), { isMutating: h, mutate: g, setPreviousItem: v } = Y({
194
194
  getErrorNotificationMessage: (e) => E("Failed to edit event: {{name}}", { name: e.name }),
195
195
  getIntermediateItem: (e, t) => ({
196
196
  ...t,
@@ -229,7 +229,7 @@ var ye = ({ caseSet: e, ...t }) => {
229
229
  onSubmit: A(b),
230
230
  schema: d
231
231
  });
232
- }, Ce = ({ caseSet: e, ...n }) => {
232
+ }, Se = ({ caseSet: e, ...n }) => {
233
233
  let r = v(), i = b(), a = c(), { t: o } = V(), s = se([
234
234
  r,
235
235
  i,
@@ -244,112 +244,112 @@ var ye = ({ caseSet: e, ...t }) => {
244
244
  inlineSpinner: !0,
245
245
  loadables: s,
246
246
  shouldHideActionButtons: !0,
247
- children: /* @__PURE__ */ U(ee, {
247
+ children: /* @__PURE__ */ U(N, {
248
248
  size: "small",
249
- children: [/* @__PURE__ */ H(P, { children: /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(N, {
249
+ children: [/* @__PURE__ */ H(te, { children: /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(P, {
250
250
  sx: { width: "calc(100% * 1/3)" },
251
251
  children: o`Column`
252
- }), /* @__PURE__ */ H(N, {
252
+ }), /* @__PURE__ */ H(P, {
253
253
  sx: { width: "calc(100% * 2/3)" },
254
254
  children: o`Value`
255
- })] }) }), /* @__PURE__ */ U(te, { children: [
256
- /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(N, { children: o`Name` }), /* @__PURE__ */ H(N, { children: e.name })] }),
257
- /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(N, { children: o`Status` }), /* @__PURE__ */ H(N, { children: i.map.get(e.case_set_status_id)?.name })] }),
258
- /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(N, { children: o`Category` }), /* @__PURE__ */ H(N, { children: r.map.get(e.case_set_category_id)?.name })] }),
259
- /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(N, { children: o`Type` }), /* @__PURE__ */ H(N, { children: a.map.get(e.case_type_id)?.name })] }),
260
- /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(N, { children: o`Created at` }), /* @__PURE__ */ H(N, { children: e.case_set_date ? t(e.case_set_date, A.DATE_TIME) : o`Unknown` })] })
255
+ })] }) }), /* @__PURE__ */ U(ee, { children: [
256
+ /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(P, { children: o`Name` }), /* @__PURE__ */ H(P, { children: e.name })] }),
257
+ /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(P, { children: o`Status` }), /* @__PURE__ */ H(P, { children: i.map.get(e.case_set_status_id)?.name })] }),
258
+ /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(P, { children: o`Category` }), /* @__PURE__ */ H(P, { children: r.map.get(e.case_set_category_id)?.name })] }),
259
+ /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(P, { children: o`Type` }), /* @__PURE__ */ H(P, { children: a.map.get(e.case_type_id)?.name })] }),
260
+ /* @__PURE__ */ U(F, { children: [/* @__PURE__ */ H(P, { children: o`Created at` }), /* @__PURE__ */ H(P, { children: e.case_set_date ? t(e.case_set_date, A.DATE_TIME) : o`Unknown` })] })
261
261
  ] })]
262
262
  })
263
263
  })]
264
264
  });
265
- }, Z = de(({ onActionsChange: e, onClose: t, onPermalinkChange: r, onTitleChange: i, openProps: o, showNavigationButton: s }) => {
266
- let { t: c } = V(), l = g(z(() => [o.caseSetId], [o.caseSetId])), p = f(), h = d(), _ = u(), [v, y] = B(!1), [b, x] = B(!1), [S, C] = B(!1), [w, T] = B(!1), [E, k] = B(!1), A = re(null), j = ne(), M = ne(), ee = se([
267
- l,
265
+ }, Q = de(({ onActionsChange: e, onClose: t, onPermalinkChange: r, onTitleChange: i, openProps: o, showNavigationButton: s }) => {
266
+ let { t: c } = V(), l = z(() => [o.caseSetId], [o.caseSetId]), p = g(l), h = f(), _ = d(), v = u(), [y, b] = B(!1), [x, S] = B(!1), [C, w] = B(!1), [T, E] = B(!1), [k, A] = B(!1), j = re(null), M = ne(), N = ne(), ee = se([
268
267
  p,
269
268
  h,
270
- _
271
- ]), te = L(() => {
269
+ _,
270
+ v
271
+ ]), P = L(() => {
272
272
  t();
273
- }, [t]), N = L(() => {
273
+ }, [t]), te = L(() => {
274
274
  t();
275
- }, [t]), { isMutating: P, mutate: F } = _e({
275
+ }, [t]), { isMutating: F, mutate: I } = _e({
276
276
  associationQueryKeys: O.getInstance().getQueryKeyDependencies([n.CASE_SETS], !0),
277
277
  getErrorNotificationMessage: (e) => c("Unable to remove event: {{name}}.", { name: e.name }),
278
278
  getProgressNotificationMessage: (e) => c("Deleting event: {{name}}...", { name: e.name }),
279
279
  getSuccessNotificationMessage: (e) => c("Event: {{name}}, has been removed.", { name: e.name }),
280
- onError: N,
281
- onSuccess: te,
280
+ onError: te,
281
+ onSuccess: P,
282
282
  queryFn: async (e) => await D.getInstance().caseSetsDeleteOne(e.id),
283
283
  resourceQueryKey: O.getInstance().getGenericKey(n.CASE_SETS)
284
- }), { data: I, error: W, isLoading: de } = oe({
284
+ }), { data: W, error: de, isLoading: K } = oe({
285
285
  baseQueryKey: n.CASE_SETS,
286
286
  itemId: o.caseSetId,
287
287
  useQueryOptions: {
288
- enabled: !P,
288
+ enabled: !F,
289
289
  queryFn: async ({ signal: e }) => (await D.getInstance().caseSetsGetOne(o.caseSetId, { signal: e })).data
290
290
  }
291
- }), K = z(() => ({
291
+ }), J = z(() => ({
292
292
  invert: !1,
293
293
  key: "case_set_id",
294
- members: [I?.id],
294
+ members: [W?.id],
295
295
  type: "UUID_SET"
296
- }), [I?.id]), { data: J, error: ve, isLoading: Y } = ce({
297
- enabled: !!I && !P,
298
- queryFn: async ({ signal: e }) => (await D.getInstance().caseSetDataCollectionLinksPostQuery(K, null, null, { signal: e })).data,
299
- queryKey: O.getInstance().getGenericKey(n.CASE_SET_DATA_COLLECTION_LINKS, K)
300
- }), X = z(() => !!l.data && l.data.some((e) => e.is_full_access || e.write_case_set), [l.data]), Z = z(() => !!l.data && l.data.some((e) => e.is_full_access || e.remove_data_collection_ids.length || e.add_data_collection_ids.length), [l.data]), we = L(() => !!l.data && l.data.some((e) => e.is_full_access || e.can_delete), [l]), Q = L(() => {
301
- y(!0);
302
- }, []), Te = L(() => {
303
- x(!0);
296
+ }), [W?.id]), { data: Y, error: X, isLoading: Z } = ce({
297
+ enabled: !!W && !F,
298
+ queryFn: async ({ signal: e }) => (await D.getInstance().caseSetDataCollectionLinksPostQuery(J, null, null, { signal: e })).data,
299
+ queryKey: O.getInstance().getGenericKey(n.CASE_SET_DATA_COLLECTION_LINKS, J)
300
+ }), Q = z(() => !!p.data && p.data.some((e) => e.is_full_access || e.write_case_set), [p.data]), Ce = z(() => !!p.data && p.data.some((e) => e.is_full_access || e.remove_data_collection_ids.length || e.add_data_collection_ids.length), [p.data]), we = L(() => !!p.data && p.data.some((e) => e.is_full_access || e.can_delete), [p]), Te = L(() => {
301
+ b(!0);
304
302
  }, []), Ee = L(() => {
305
- y(!1), x(!1);
303
+ S(!0);
306
304
  }, []), De = L(() => {
307
- C(!1), T(!1), k(!0), y(!1), x(!1), k(!1);
308
- }, []), Oe = L((e) => {
309
- C(e);
305
+ b(!1), S(!1);
306
+ }, []), Oe = L(() => {
307
+ w(!1), E(!1), A(!0), b(!1), S(!1), A(!1);
310
308
  }, []), ke = L((e) => {
311
- T(e);
312
- }, []), Ae = L(() => {
313
- A.current.open();
309
+ w(e);
310
+ }, []), Ae = L((e) => {
311
+ E(e);
314
312
  }, []), je = L(() => {
315
- F(I);
316
- }, [I, F]), $ = S || w, Me = L(async () => {
317
- await pe.getInstance().router.navigate(a.createCaseSetLink(I));
318
- }, [I]);
313
+ j.current.open();
314
+ }, []), Me = L(() => {
315
+ I(W);
316
+ }, [W, I]), $ = C || T, Ne = L(async () => {
317
+ await pe.getInstance().router.navigate(a.createCaseSetLink(W));
318
+ }, [W]);
319
319
  R(() => {
320
- I && r(a.createCaseSetLink(I, !0));
321
- }, [I, r]), R(() => {
322
- i(I ? v ? c("{{name}} - Edit", { name: I.name }) : b ? c("{{name}} - Share", { name: I.name }) : I?.name : c`Loading`);
320
+ W && r(a.createCaseSetLink(W, !0));
321
+ }, [W, r]), R(() => {
322
+ i(W ? y ? c("{{name}} - Edit", { name: W.name }) : x ? c("{{name}} - Share", { name: W.name }) : W?.name : c`Loading`);
323
323
  }, [
324
- b,
325
- v,
324
+ x,
325
+ y,
326
326
  i,
327
327
  c,
328
- I
328
+ W
329
329
  ]), R(() => {
330
330
  let t = [];
331
- (v || b) && t.push({
331
+ (y || x) && t.push({
332
332
  ...G.createAttributes("CaseSetInfoDialog-goBackButton"),
333
333
  color: "primary",
334
334
  disabled: $,
335
335
  label: c`Go back`,
336
- onClick: Ee,
336
+ onClick: De,
337
337
  startIcon: /* @__PURE__ */ H(ge, {}),
338
338
  variant: "outlined"
339
- }), v ? t.push({
339
+ }), y ? t.push({
340
340
  ...G.createAttributes("CaseSetInfoDialog-saveButton"),
341
341
  color: "secondary",
342
342
  disabled: $,
343
- form: j,
343
+ form: M,
344
344
  label: c`Save`,
345
345
  startIcon: /* @__PURE__ */ H(fe, {}),
346
346
  type: "submit",
347
347
  variant: "contained"
348
- }) : b ? t.push({
348
+ }) : x ? t.push({
349
349
  ...G.createAttributes("CaseSetInfoDialog-saveButton"),
350
350
  color: "secondary",
351
351
  disabled: $,
352
- form: M,
352
+ form: N,
353
353
  label: c`Save`,
354
354
  startIcon: /* @__PURE__ */ H(fe, {}),
355
355
  type: "submit",
@@ -359,23 +359,23 @@ var ye = ({ caseSet: e, ...t }) => {
359
359
  color: "primary",
360
360
  disabled: !we(),
361
361
  label: c`Delete`,
362
- onClick: Ae,
362
+ onClick: je,
363
363
  startIcon: /* @__PURE__ */ H(me, {}),
364
364
  variant: "outlined"
365
365
  }, {
366
366
  ...G.createAttributes("CaseSetInfoDialog-editDataCollectionsButton"),
367
367
  color: "primary",
368
- disabled: !Z,
368
+ disabled: !Ce,
369
369
  label: c`Share`,
370
- onClick: Te,
370
+ onClick: Ee,
371
371
  startIcon: /* @__PURE__ */ H(he, {}),
372
372
  variant: "outlined"
373
373
  }, {
374
374
  ...G.createAttributes("CaseSetInfoDialog-editCaseContentButton"),
375
375
  color: "primary",
376
- disabled: !X,
376
+ disabled: !Q,
377
377
  label: c`Edit`,
378
- onClick: Q,
378
+ onClick: Te,
379
379
  startIcon: /* @__PURE__ */ H(ue, {}),
380
380
  variant: "outlined"
381
381
  }), s && t.push({
@@ -383,79 +383,79 @@ var ye = ({ caseSet: e, ...t }) => {
383
383
  autoFocus: !0,
384
384
  color: "secondary",
385
385
  label: c`Go to event`,
386
- onClick: Me,
386
+ onClick: Ne,
387
387
  variant: "contained"
388
388
  })), e(t);
389
389
  }, [
390
390
  e,
391
391
  s,
392
392
  t,
393
- Me,
393
+ Ne,
394
394
  c,
395
- I,
396
- v,
397
- b,
398
- Ee,
395
+ W,
396
+ y,
397
+ x,
398
+ De,
399
399
  $,
400
- j,
401
400
  M,
401
+ N,
402
+ Ee,
402
403
  Te,
404
+ je,
403
405
  Q,
404
- Ae,
405
- X,
406
- Z,
406
+ Ce,
407
407
  we
408
408
  ]);
409
- let Ne = z(() => ({
410
- createdInDataCollection: I ? h.map.get(I?.created_in_data_collection_id) : void 0,
411
- itemDataCollectionLinks: [J],
412
- rights: l.data,
413
- userDataCollectionOptions: _.options,
414
- userDataCollections: p.data,
415
- userDataCollectionsMap: h.map
409
+ let Pe = z(() => ({
410
+ createdInDataCollection: W ? _.map.get(W?.created_in_data_collection_id) : void 0,
411
+ itemDataCollectionLinks: [Y],
412
+ rights: p.data,
413
+ userDataCollectionOptions: v.options,
414
+ userDataCollections: h.data,
415
+ userDataCollectionsMap: _.map
416
416
  }), [
417
- I,
418
- J,
419
- l.data,
420
- _.options,
421
- h.map,
422
- p.data
417
+ W,
418
+ Y,
419
+ p.data,
420
+ v.options,
421
+ _.map,
422
+ h.data
423
423
  ]);
424
- return E || P ? /* @__PURE__ */ H(q, {
424
+ return k || F ? /* @__PURE__ */ H(q, {
425
425
  inline: !0,
426
426
  label: c`Refreshing data`
427
427
  }) : /* @__PURE__ */ U(ie, { children: [/* @__PURE__ */ H(ae, {
428
- error: W || ve,
428
+ error: de || X,
429
429
  inlineSpinner: !0,
430
- isLoading: de || Y,
430
+ isLoading: K || Z,
431
431
  loadables: ee,
432
432
  shouldHideActionButtons: !0,
433
433
  children: /* @__PURE__ */ U(m, {
434
- caseAbac: Ne,
434
+ caseAbac: Pe,
435
435
  children: [
436
- !v && !b && /* @__PURE__ */ U(ie, { children: [
437
- /* @__PURE__ */ H(Ce, {
438
- caseSet: I,
436
+ !y && !x && /* @__PURE__ */ U(ie, { children: [
437
+ /* @__PURE__ */ H(Se, {
438
+ caseSet: W,
439
439
  sx: { marginBottom: 2 }
440
440
  }),
441
- /* @__PURE__ */ H(xe, { sx: { marginBottom: 2 } }),
442
- /* @__PURE__ */ H(ye, {
443
- caseSet: I,
441
+ /* @__PURE__ */ H(be, { sx: { marginBottom: 2 } }),
442
+ /* @__PURE__ */ H(ve, {
443
+ caseSet: W,
444
444
  sx: { marginBottom: 2 }
445
445
  })
446
446
  ] }),
447
- v && /* @__PURE__ */ H(Se, {
448
- caseSet: I,
449
- formId: j,
450
- onFinish: De,
451
- onIsSavingChange: Oe
452
- }),
453
- b && /* @__PURE__ */ H(be, {
454
- caseSet: I,
455
- caseTypeId: o.caseTypeId,
447
+ y && /* @__PURE__ */ H(xe, {
448
+ caseSet: W,
456
449
  formId: M,
457
- onFinish: De,
450
+ onFinish: Oe,
458
451
  onIsSavingChange: ke
452
+ }),
453
+ x && /* @__PURE__ */ H(ye, {
454
+ caseSet: W,
455
+ caseTypeId: o.caseTypeId,
456
+ formId: N,
457
+ onFinish: Oe,
458
+ onIsSavingChange: Ae
459
459
  })
460
460
  ]
461
461
  })
@@ -463,8 +463,8 @@ var ye = ({ caseSet: e, ...t }) => {
463
463
  body: c`Are you sure you want to delete the event?`,
464
464
  cancelLabel: c`Cancel`,
465
465
  confirmLabel: c`Delete`,
466
- onConfirm: je,
467
- ref: A,
466
+ onConfirm: Me,
467
+ ref: j,
468
468
  title: c`Delete event?`
469
469
  })] });
470
470
  }, {
@@ -474,6 +474,6 @@ var ye = ({ caseSet: e, ...t }) => {
474
474
  titleVariant: "h2"
475
475
  });
476
476
  //#endregion
477
- export { Z as t };
477
+ export { Q as t };
478
478
 
479
479
  //# sourceMappingURL=CaseSetInfoDialog.js.map