@gen3/frontend 0.10.94 → 0.10.97

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 (612) hide show
  1. package/dist/cjs/index.js +5783 -2696
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/Content/LandingPageContent.d.ts +2 -1
  4. package/dist/dts/components/Content/LandingPageContent.d.ts.map +1 -1
  5. package/dist/dts/components/Content/LandingPageContent.js.map +1 -1
  6. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts +64 -0
  7. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  8. package/dist/dts/components/DropdownMenu/DropdownMenu.js +38 -0
  9. package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +1 -0
  10. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +2 -0
  11. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +1 -0
  12. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +141 -0
  13. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +1 -0
  14. package/dist/dts/components/DropdownMenu/index.d.ts +3 -0
  15. package/dist/dts/components/DropdownMenu/index.d.ts.map +1 -0
  16. package/dist/dts/components/DropdownMenu/index.js +3 -0
  17. package/dist/dts/components/DropdownMenu/index.js.map +1 -0
  18. package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
  19. package/dist/dts/components/Login/LoginPanel.js +1 -0
  20. package/dist/dts/components/Login/LoginPanel.js.map +1 -1
  21. package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
  22. package/dist/dts/components/Login/LoginProvidersPanel.js +1 -1
  23. package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
  24. package/dist/dts/components/Login/types.d.ts +2 -1
  25. package/dist/dts/components/Login/types.d.ts.map +1 -1
  26. package/dist/dts/components/Login/types.js.map +1 -1
  27. package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts +5 -0
  28. package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts.map +1 -0
  29. package/dist/dts/components/MessageCards/EmptyTableMessage.js +9 -0
  30. package/dist/dts/components/MessageCards/EmptyTableMessage.js.map +1 -0
  31. package/dist/dts/components/MessageCards/ErrorMessage.d.ts +7 -0
  32. package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +1 -0
  33. package/dist/dts/components/MessageCards/ErrorMessage.js +8 -0
  34. package/dist/dts/components/MessageCards/ErrorMessage.js.map +1 -0
  35. package/dist/dts/components/MessageCards/index.d.ts +2 -1
  36. package/dist/dts/components/MessageCards/index.d.ts.map +1 -1
  37. package/dist/dts/components/MessageCards/index.js +2 -1
  38. package/dist/dts/components/MessageCards/index.js.map +1 -1
  39. package/dist/dts/components/Profile/types.d.ts +2 -1
  40. package/dist/dts/components/Profile/types.d.ts.map +1 -1
  41. package/dist/dts/components/charts/Charts.d.ts.map +1 -1
  42. package/dist/dts/components/charts/Charts.js +2 -0
  43. package/dist/dts/components/charts/Charts.js.map +1 -1
  44. package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
  45. package/dist/dts/components/charts/echarts/BarChart.js +42 -4
  46. package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
  47. package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts +1 -1
  48. package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts.map +1 -1
  49. package/dist/dts/components/charts/echarts/HorizontalBarChart.js +3 -2
  50. package/dist/dts/components/charts/echarts/HorizontalBarChart.js.map +1 -1
  51. package/dist/dts/components/charts/echarts/ReactECharts.js +1 -1
  52. package/dist/dts/components/charts/echarts/ReactECharts.js.map +1 -1
  53. package/dist/dts/components/charts/types.d.ts +2 -0
  54. package/dist/dts/components/charts/types.d.ts.map +1 -1
  55. package/dist/dts/components/charts/utils.d.ts +1 -1
  56. package/dist/dts/components/charts/utils.d.ts.map +1 -1
  57. package/dist/dts/components/charts/utils.js +2 -4
  58. package/dist/dts/components/charts/utils.js.map +1 -1
  59. package/dist/dts/components/facets/EnumFacet.d.ts +2 -1
  60. package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
  61. package/dist/dts/components/facets/EnumFacet.js.map +1 -1
  62. package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
  63. package/dist/dts/components/facets/FacetControlsHeader.js +1 -1
  64. package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
  65. package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
  66. package/dist/dts/components/facets/FacetEnumList.js +7 -30
  67. package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
  68. package/dist/dts/components/facets/FacetSelector.d.ts +1 -1
  69. package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
  70. package/dist/dts/components/facets/FacetSelector.js +9 -7
  71. package/dist/dts/components/facets/FacetSelector.js.map +1 -1
  72. package/dist/dts/components/facets/types.d.ts +1 -0
  73. package/dist/dts/components/facets/types.d.ts.map +1 -1
  74. package/dist/dts/components/facets/types.js.map +1 -1
  75. package/dist/dts/components/facets/utils.d.ts +4 -2
  76. package/dist/dts/components/facets/utils.d.ts.map +1 -1
  77. package/dist/dts/components/facets/utils.js +27 -1
  78. package/dist/dts/components/facets/utils.js.map +1 -1
  79. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
  80. package/dist/dts/features/Analysis/types.d.ts +2 -1
  81. package/dist/dts/features/Analysis/types.d.ts.map +1 -1
  82. package/dist/dts/features/Analysis/types.js.map +1 -1
  83. package/dist/dts/features/CohortBuilder/AccessLevel.d.ts +8 -0
  84. package/dist/dts/features/CohortBuilder/AccessLevel.d.ts.map +1 -0
  85. package/dist/dts/features/CohortBuilder/AccessLevel.js +20 -0
  86. package/dist/dts/features/CohortBuilder/AccessLevel.js.map +1 -0
  87. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
  88. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
  89. package/dist/dts/features/CohortBuilder/CohortBuilder.js +4 -20
  90. package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
  91. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +20 -0
  92. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
  93. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +37 -0
  94. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
  95. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +18 -0
  96. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
  97. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +149 -0
  98. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
  99. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +9 -0
  100. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +1 -0
  101. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +122 -0
  102. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +1 -0
  103. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +19 -0
  104. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +1 -0
  105. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +52 -0
  106. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +1 -0
  107. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +10 -0
  108. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
  109. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +37 -0
  110. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
  111. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +13 -0
  112. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +1 -0
  113. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +33 -0
  114. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +1 -0
  115. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +7 -0
  116. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +1 -0
  117. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js +80 -0
  118. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +1 -0
  119. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +5 -0
  120. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +1 -0
  121. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +5 -0
  122. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +1 -0
  123. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +5 -0
  124. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +1 -0
  125. package/dist/dts/features/CohortBuilder/CohortManager/index.js +4 -0
  126. package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +1 -0
  127. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +13 -0
  128. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +1 -0
  129. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +15 -0
  130. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +1 -0
  131. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +4 -0
  132. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +1 -0
  133. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +8 -0
  134. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +1 -0
  135. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +32 -0
  136. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
  137. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +190 -0
  138. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
  139. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +2 -0
  140. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +1 -0
  141. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +145 -0
  142. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +1 -0
  143. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
  144. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
  145. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +79 -0
  146. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
  147. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +5 -0
  148. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +1 -0
  149. package/dist/dts/features/CohortBuilder/CohortManager/style.js +21 -0
  150. package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +1 -0
  151. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +49 -0
  152. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +1 -0
  153. package/dist/dts/features/CohortBuilder/CohortManager/types.js +2 -0
  154. package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +1 -0
  155. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts +6 -0
  156. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts.map +1 -0
  157. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js +21 -0
  158. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js.map +1 -0
  159. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +6 -2
  160. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  161. package/dist/dts/features/CohortBuilder/CohortPanel.js +15 -19
  162. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  163. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +8 -1
  164. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -1
  165. package/dist/dts/features/CohortBuilder/CohortSelector.js +51 -10
  166. package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -1
  167. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +6 -0
  168. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -0
  169. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +32 -0
  170. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -0
  171. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts +1 -1
  172. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
  173. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js +1 -1
  174. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -1
  175. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts +2 -0
  176. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts.map +1 -1
  177. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts +3 -2
  178. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
  179. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +56 -60
  180. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
  181. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts +4 -0
  182. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts.map +1 -0
  183. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js +48 -0
  184. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js.map +1 -0
  185. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts +4 -0
  186. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts.map +1 -0
  187. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js +81 -0
  188. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js.map +1 -0
  189. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts +9 -0
  190. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts.map +1 -0
  191. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js +22 -0
  192. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js.map +1 -0
  193. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts +9 -0
  194. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts.map +1 -0
  195. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js +17 -0
  196. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js.map +1 -0
  197. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts +12 -0
  198. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts.map +1 -0
  199. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js +2 -0
  200. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js.map +1 -0
  201. package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts +52 -12
  202. package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts.map +1 -1
  203. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts +4 -1
  204. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts.map +1 -1
  205. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js +70 -0
  206. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js.map +1 -1
  207. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +1 -1
  208. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -1
  209. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +2 -2
  210. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -1
  211. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts +1 -1
  212. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -1
  213. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +5 -4
  214. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -1
  215. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -1
  216. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js +2 -1
  217. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js.map +1 -1
  218. package/dist/dts/features/CohortBuilder/Panels/types.d.ts +4 -1
  219. package/dist/dts/features/CohortBuilder/Panels/types.d.ts.map +1 -1
  220. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js +1 -1
  221. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -1
  222. package/dist/dts/features/CohortBuilder/index.d.ts +5 -2
  223. package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
  224. package/dist/dts/features/CohortBuilder/index.js +4 -1
  225. package/dist/dts/features/CohortBuilder/index.js.map +1 -1
  226. package/dist/dts/features/CohortBuilder/types.d.ts +15 -7
  227. package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
  228. package/dist/dts/features/CohortBuilder/types.js +6 -0
  229. package/dist/dts/features/CohortBuilder/types.js.map +1 -1
  230. package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.d.ts.map +1 -1
  231. package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js +18 -2
  232. package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js.map +1 -1
  233. package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.d.ts.map +1 -1
  234. package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js +10 -4
  235. package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js.map +1 -1
  236. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
  237. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +20 -12
  238. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
  239. package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
  240. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +28 -8
  241. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
  242. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts +9 -0
  243. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts.map +1 -0
  244. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +147 -0
  245. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js.map +1 -0
  246. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts +2 -0
  247. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts.map +1 -0
  248. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js +36 -0
  249. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js.map +1 -0
  250. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts +461 -0
  251. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts.map +1 -0
  252. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js +51 -0
  253. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js.map +1 -0
  254. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts +97 -0
  255. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts.map +1 -0
  256. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js +435 -0
  257. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js.map +1 -0
  258. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +64 -0
  259. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +1 -0
  260. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +572 -0
  261. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +1 -0
  262. package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts +7 -0
  263. package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts.map +1 -0
  264. package/dist/dts/features/CohortDiscovery/CohortManagment/types.js +2 -0
  265. package/dist/dts/features/CohortDiscovery/CohortManagment/types.js.map +1 -0
  266. package/dist/dts/features/CohortDiscovery/CohortQueryExpression.d.ts +6 -0
  267. package/dist/dts/features/CohortDiscovery/CohortQueryExpression.d.ts.map +1 -0
  268. package/dist/dts/features/CohortDiscovery/CohortQueryExpression.js +55 -0
  269. package/dist/dts/features/CohortDiscovery/CohortQueryExpression.js.map +1 -0
  270. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -22
  271. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +1 -1
  272. package/dist/dts/features/CohortDiscovery/CohortSelectors.js +40 -34
  273. package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +1 -1
  274. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -90
  275. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +1 -1
  276. package/dist/dts/features/CohortDiscovery/CohortSlice.js +161 -92
  277. package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +1 -1
  278. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts +1 -1
  279. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts.map +1 -1
  280. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js +1 -1
  281. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js.map +1 -1
  282. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts +1 -1
  283. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -1
  284. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js +1 -1
  285. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js.map +1 -1
  286. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts +2 -1
  287. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts.map +1 -1
  288. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js +25 -7
  289. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js.map +1 -1
  290. package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.js.map +1 -1
  291. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts +1 -1
  292. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
  293. package/dist/dts/features/CohortDiscovery/IndexPanel.js +42 -34
  294. package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
  295. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts +14 -28
  296. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts.map +1 -1
  297. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js +4 -4
  298. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js.map +1 -1
  299. package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.d.ts.map +1 -1
  300. package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js +4 -10
  301. package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js.map +1 -1
  302. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.d.ts.map +1 -1
  303. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js +2 -1
  304. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js.map +1 -1
  305. package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.d.ts.map +1 -1
  306. package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js +76 -13
  307. package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js.map +1 -1
  308. package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts +22 -0
  309. package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts.map +1 -0
  310. package/dist/dts/features/CohortDiscovery/Requests/hooks.js +147 -0
  311. package/dist/dts/features/CohortDiscovery/Requests/hooks.js.map +1 -0
  312. package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.d.ts +9 -0
  313. package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.d.ts.map +1 -0
  314. package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.js +133 -0
  315. package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.js.map +1 -0
  316. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts +1 -0
  317. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +1 -0
  318. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +284 -0
  319. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +1 -0
  320. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts +8 -0
  321. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts.map +1 -0
  322. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js +9 -0
  323. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js.map +1 -0
  324. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts +10 -0
  325. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts.map +1 -0
  326. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js +157 -0
  327. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js.map +1 -0
  328. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts +3 -4
  329. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -1
  330. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js +6 -11
  331. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js.map +1 -1
  332. package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts +9 -0
  333. package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts.map +1 -0
  334. package/dist/dts/features/CohortDiscovery/TabbedIndex.js +15 -0
  335. package/dist/dts/features/CohortDiscovery/TabbedIndex.js.map +1 -0
  336. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +2 -2
  337. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
  338. package/dist/dts/features/CohortDiscovery/appApi.d.ts +17 -3
  339. package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
  340. package/dist/dts/features/CohortDiscovery/appApi.js +13 -3
  341. package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
  342. package/dist/dts/features/CohortDiscovery/hooks.d.ts +12 -0
  343. package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
  344. package/dist/dts/features/CohortDiscovery/hooks.js +40 -1
  345. package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
  346. package/dist/dts/features/CohortDiscovery/queryApi.d.ts.map +1 -1
  347. package/dist/dts/features/CohortDiscovery/queryApi.js.map +1 -1
  348. package/dist/dts/features/CohortDiscovery/registerApp.d.ts.map +1 -1
  349. package/dist/dts/features/CohortDiscovery/registerApp.js +5 -3
  350. package/dist/dts/features/CohortDiscovery/registerApp.js.map +1 -1
  351. package/dist/dts/features/CohortDiscovery/types.d.ts +88 -3
  352. package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -1
  353. package/dist/dts/features/CohortDiscovery/types.js +45 -1
  354. package/dist/dts/features/CohortDiscovery/types.js.map +1 -1
  355. package/dist/dts/features/CohortDiscovery/utils.d.ts +2 -0
  356. package/dist/dts/features/CohortDiscovery/utils.d.ts.map +1 -1
  357. package/dist/dts/features/CohortDiscovery/utils.js +9 -0
  358. package/dist/dts/features/CohortDiscovery/utils.js.map +1 -1
  359. package/dist/dts/features/CohortSimilarity/appApi.d.ts +4 -6
  360. package/dist/dts/features/CohortSimilarity/appApi.d.ts.map +1 -1
  361. package/dist/dts/features/CohortSimilarity/appApi.js +3 -1
  362. package/dist/dts/features/CohortSimilarity/appApi.js.map +1 -1
  363. package/dist/dts/features/CohortSimilarity/registerApp.d.ts.map +1 -1
  364. package/dist/dts/features/CohortSimilarity/registerApp.js +1 -3
  365. package/dist/dts/features/CohortSimilarity/registerApp.js.map +1 -1
  366. package/dist/dts/features/Crosswalk/types.d.ts +2 -1
  367. package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
  368. package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
  369. package/dist/dts/features/DataLibrary/DatasetAccordionControl.js +2 -2
  370. package/dist/dts/features/DataLibrary/DatasetAccordionControl.js.map +1 -1
  371. package/dist/dts/features/DataLibrary/SearchAndActions.js +1 -1
  372. package/dist/dts/features/DataLibrary/SearchAndActions.js.map +1 -1
  373. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.d.ts.map +1 -1
  374. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js +1 -1
  375. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js.map +1 -1
  376. package/dist/dts/features/DataLibrary/tests/utils.unit.test.js +2 -1
  377. package/dist/dts/features/DataLibrary/tests/utils.unit.test.js.map +1 -1
  378. package/dist/dts/features/DataLibrary/utils.d.ts +0 -10
  379. package/dist/dts/features/DataLibrary/utils.d.ts.map +1 -1
  380. package/dist/dts/features/DataLibrary/utils.js +0 -34
  381. package/dist/dts/features/DataLibrary/utils.js.map +1 -1
  382. package/dist/dts/features/Dictionary/CategoryPanel.d.ts.map +1 -1
  383. package/dist/dts/features/Dictionary/CategoryPanel.js +9 -9
  384. package/dist/dts/features/Dictionary/CategoryPanel.js.map +1 -1
  385. package/dist/dts/features/Dictionary/DictionaryWithContext.d.ts.map +1 -1
  386. package/dist/dts/features/Dictionary/DictionaryWithContext.js.map +1 -1
  387. package/dist/dts/features/Dictionary/types.d.ts +5 -1
  388. package/dist/dts/features/Dictionary/types.d.ts.map +1 -1
  389. package/dist/dts/features/Discovery/DataLoaders/IndexedMetadata/DataLoader.js.map +1 -1
  390. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.d.ts.map +1 -1
  391. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js +2 -2
  392. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js.map +1 -1
  393. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.d.ts.map +1 -1
  394. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js +1 -1
  395. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js.map +1 -1
  396. package/dist/dts/features/Discovery/DataLoaders/utils.d.ts.map +1 -1
  397. package/dist/dts/features/Discovery/DataLoaders/utils.js +1 -1
  398. package/dist/dts/features/Discovery/DataLoaders/utils.js.map +1 -1
  399. package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
  400. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +8 -6
  401. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
  402. package/dist/dts/features/Discovery/DiscoveryProvider.d.ts +0 -3
  403. package/dist/dts/features/Discovery/DiscoveryProvider.d.ts.map +1 -1
  404. package/dist/dts/features/Discovery/DiscoveryProvider.js +0 -5
  405. package/dist/dts/features/Discovery/DiscoveryProvider.js.map +1 -1
  406. package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
  407. package/dist/dts/features/Discovery/DiscoveryTable.js +7 -5
  408. package/dist/dts/features/Discovery/DiscoveryTable.js.map +1 -1
  409. package/dist/dts/features/Discovery/StudyDetails/StudyItems.d.ts.map +1 -1
  410. package/dist/dts/features/Discovery/StudyDetails/StudyItems.js +3 -1
  411. package/dist/dts/features/Discovery/StudyDetails/StudyItems.js.map +1 -1
  412. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts +2 -3
  413. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts.map +1 -1
  414. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js +3 -3
  415. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js.map +1 -1
  416. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts +1 -2
  417. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
  418. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js +5 -6
  419. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js.map +1 -1
  420. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts +1 -1
  421. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
  422. package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts +1 -1
  423. package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts.map +1 -1
  424. package/dist/dts/features/Discovery/index.d.ts +2 -4
  425. package/dist/dts/features/Discovery/index.d.ts.map +1 -1
  426. package/dist/dts/features/Discovery/index.js +1 -3
  427. package/dist/dts/features/Discovery/index.js.map +1 -1
  428. package/dist/dts/features/Discovery/types.d.ts +5 -108
  429. package/dist/dts/features/Discovery/types.d.ts.map +1 -1
  430. package/dist/dts/features/Discovery/types.js +0 -16
  431. package/dist/dts/features/Discovery/types.js.map +1 -1
  432. package/dist/dts/features/Discovery/utils.d.ts +2 -8
  433. package/dist/dts/features/Discovery/utils.d.ts.map +1 -1
  434. package/dist/dts/features/Discovery/utils.js +1 -28
  435. package/dist/dts/features/Discovery/utils.js.map +1 -1
  436. package/dist/dts/features/Navigation/Footer/FooterColumn.d.ts.map +1 -1
  437. package/dist/dts/features/Navigation/Footer/FooterColumn.js.map +1 -1
  438. package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
  439. package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
  440. package/dist/dts/features/Navigation/TopBar/AccountButton.js +1 -1
  441. package/dist/dts/features/Navigation/TopBar/AccountButton.js.map +1 -1
  442. package/dist/dts/features/Navigation/TopBar/LoginButton.js +1 -1
  443. package/dist/dts/features/Navigation/TopBar/LoginButton.js.map +1 -1
  444. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts +9 -0
  445. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -0
  446. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js +11 -0
  447. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js.map +1 -0
  448. package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts +19 -0
  449. package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts.map +1 -0
  450. package/dist/dts/features/Study/StudyDetails/RendererFactory.js +56 -0
  451. package/dist/dts/features/Study/StudyDetails/RendererFactory.js.map +1 -0
  452. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts +15 -0
  453. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts.map +1 -0
  454. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js +44 -0
  455. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js.map +1 -0
  456. package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts +10 -0
  457. package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts.map +1 -0
  458. package/dist/dts/features/Study/StudyDetails/StudyDetails.js +36 -0
  459. package/dist/dts/features/Study/StudyDetails/StudyDetails.js.map +1 -0
  460. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts +10 -0
  461. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts.map +1 -0
  462. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js +19 -0
  463. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js.map +1 -0
  464. package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts +8 -0
  465. package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts.map +1 -0
  466. package/dist/dts/features/Study/StudyDetails/StudyGroup.js +31 -0
  467. package/dist/dts/features/Study/StudyDetails/StudyGroup.js.map +1 -0
  468. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts +9 -0
  469. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts.map +1 -0
  470. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js +11 -0
  471. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js.map +1 -0
  472. package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts +5 -0
  473. package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts.map +1 -0
  474. package/dist/dts/features/Study/StudyDetails/StudyItems.js +283 -0
  475. package/dist/dts/features/Study/StudyDetails/StudyItems.js.map +1 -0
  476. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts +10 -0
  477. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts.map +1 -0
  478. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js +45 -0
  479. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js.map +1 -0
  480. package/dist/dts/features/Study/StudyPage/StudyPage.d.ts +10 -0
  481. package/dist/dts/features/Study/StudyPage/StudyPage.d.ts.map +1 -0
  482. package/dist/dts/features/Study/StudyPage/StudyPage.js +11 -0
  483. package/dist/dts/features/Study/StudyPage/StudyPage.js.map +1 -0
  484. package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts +9 -0
  485. package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts.map +1 -0
  486. package/dist/dts/features/Study/StudyPage/StudyPageGroup.js +8 -0
  487. package/dist/dts/features/Study/StudyPage/StudyPageGroup.js.map +1 -0
  488. package/dist/dts/features/Study/StudyProvider.d.ts +12 -0
  489. package/dist/dts/features/Study/StudyProvider.d.ts.map +1 -0
  490. package/dist/dts/features/Study/StudyProvider.js +23 -0
  491. package/dist/dts/features/Study/StudyProvider.js.map +1 -0
  492. package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts +3 -0
  493. package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts.map +1 -0
  494. package/dist/dts/features/Study/TableRenderers/CellRenderers.js +20 -0
  495. package/dist/dts/features/Study/TableRenderers/CellRenderers.js.map +1 -0
  496. package/dist/dts/features/Study/TableRenderers/types.d.ts +14 -0
  497. package/dist/dts/features/Study/TableRenderers/types.d.ts.map +1 -0
  498. package/dist/dts/features/Study/TableRenderers/types.js +2 -0
  499. package/dist/dts/features/Study/TableRenderers/types.js.map +1 -0
  500. package/dist/dts/features/Study/index.d.ts +5 -0
  501. package/dist/dts/features/Study/index.d.ts.map +1 -0
  502. package/dist/dts/features/Study/index.js +4 -0
  503. package/dist/dts/features/Study/index.js.map +1 -0
  504. package/dist/dts/features/Study/types.d.ts +91 -0
  505. package/dist/dts/features/Study/types.d.ts.map +1 -0
  506. package/dist/dts/features/Study/types.js +8 -0
  507. package/dist/dts/features/Study/types.js.map +1 -0
  508. package/dist/dts/features/Study/utils.d.ts +10 -0
  509. package/dist/dts/features/Study/utils.d.ts.map +1 -0
  510. package/dist/dts/features/Study/utils.js +28 -0
  511. package/dist/dts/features/Study/utils.js.map +1 -0
  512. package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.d.ts.map +1 -1
  513. package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.js.map +1 -1
  514. package/dist/dts/features/Workspace/types.d.ts +2 -1
  515. package/dist/dts/features/Workspace/types.d.ts.map +1 -1
  516. package/dist/dts/features/Workspace/types.js.map +1 -1
  517. package/dist/dts/index.d.ts +3 -1
  518. package/dist/dts/index.d.ts.map +1 -1
  519. package/dist/dts/index.js +7 -1
  520. package/dist/dts/index.js.map +1 -1
  521. package/dist/dts/lib/content/types.d.ts +2 -0
  522. package/dist/dts/lib/content/types.d.ts.map +1 -1
  523. package/dist/dts/lib/session/session.d.ts.map +1 -1
  524. package/dist/dts/lib/session/session.js +22 -34
  525. package/dist/dts/lib/session/session.js.map +1 -1
  526. package/dist/dts/pages/Crosswalk/Crosswalk.d.ts.map +1 -1
  527. package/dist/dts/pages/Crosswalk/Crosswalk.js +1 -5
  528. package/dist/dts/pages/Crosswalk/Crosswalk.js.map +1 -1
  529. package/dist/dts/pages/DataDictionary/DataDictionary.d.ts.map +1 -1
  530. package/dist/dts/pages/DataDictionary/DataDictionary.js +12 -5
  531. package/dist/dts/pages/DataDictionary/DataDictionary.js.map +1 -1
  532. package/dist/dts/pages/Discovery/Discovery.d.ts.map +1 -1
  533. package/dist/dts/pages/Discovery/Discovery.js +14 -5
  534. package/dist/dts/pages/Discovery/Discovery.js.map +1 -1
  535. package/dist/dts/pages/Explorer/Explorer.d.ts +1 -1
  536. package/dist/dts/pages/Explorer/Explorer.d.ts.map +1 -1
  537. package/dist/dts/pages/Explorer/Explorer.js +13 -6
  538. package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
  539. package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
  540. package/dist/dts/pages/Explorer/data.js +28 -22
  541. package/dist/dts/pages/Explorer/data.js.map +1 -1
  542. package/dist/dts/pages/Landing/Landing.d.ts.map +1 -1
  543. package/dist/dts/pages/Landing/Landing.js +12 -5
  544. package/dist/dts/pages/Landing/Landing.js.map +1 -1
  545. package/dist/dts/pages/Login/Login.d.ts.map +1 -1
  546. package/dist/dts/pages/Login/Login.js +1 -5
  547. package/dist/dts/pages/Login/Login.js.map +1 -1
  548. package/dist/dts/pages/Profile/Profile.d.ts.map +1 -1
  549. package/dist/dts/pages/Profile/Profile.js +12 -5
  550. package/dist/dts/pages/Profile/Profile.js.map +1 -1
  551. package/dist/dts/pages/Query/Query.d.ts.map +1 -1
  552. package/dist/dts/pages/Query/Query.js +12 -5
  553. package/dist/dts/pages/Query/Query.js.map +1 -1
  554. package/dist/dts/pages/Query/types.d.ts +2 -1
  555. package/dist/dts/pages/Query/types.d.ts.map +1 -1
  556. package/dist/dts/pages/Workspace/Workspace.d.ts.map +1 -1
  557. package/dist/dts/pages/Workspace/Workspace.js +14 -5
  558. package/dist/dts/pages/Workspace/Workspace.js.map +1 -1
  559. package/dist/dts/pages/admin/analysis/Analysis.d.ts +1 -1
  560. package/dist/dts/pages/admin/analysis/Analysis.d.ts.map +1 -1
  561. package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
  562. package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
  563. package/dist/dts/types/icons.d.ts +5 -0
  564. package/dist/dts/types/icons.d.ts.map +1 -0
  565. package/dist/dts/types/icons.js +6 -0
  566. package/dist/dts/types/icons.js.map +1 -0
  567. package/dist/dts/utils/access.d.ts +10 -0
  568. package/dist/dts/utils/access.d.ts.map +1 -0
  569. package/dist/dts/utils/access.js +11 -0
  570. package/dist/dts/utils/access.js.map +1 -0
  571. package/dist/dts/utils/authMapping.d.ts +4 -0
  572. package/dist/dts/utils/authMapping.d.ts.map +1 -1
  573. package/dist/dts/utils/authMapping.js.map +1 -1
  574. package/dist/dts/utils/convertResourcePathsToTree.d.ts +8 -0
  575. package/dist/dts/utils/convertResourcePathsToTree.d.ts.map +1 -0
  576. package/dist/dts/utils/convertResourcePathsToTree.js +43 -0
  577. package/dist/dts/utils/convertResourcePathsToTree.js.map +1 -0
  578. package/dist/dts/utils/dataAuthorization.d.ts +11 -0
  579. package/dist/dts/utils/dataAuthorization.d.ts.map +1 -0
  580. package/dist/dts/utils/dataAuthorization.js +2 -0
  581. package/dist/dts/utils/dataAuthorization.js.map +1 -0
  582. package/dist/dts/utils/date.d.ts +16 -0
  583. package/dist/dts/utils/date.d.ts.map +1 -1
  584. package/dist/dts/utils/date.js +54 -8
  585. package/dist/dts/utils/date.js.map +1 -1
  586. package/dist/dts/utils/index.d.ts +4 -3
  587. package/dist/dts/utils/index.d.ts.map +1 -1
  588. package/dist/dts/utils/index.js +4 -2
  589. package/dist/dts/utils/index.js.map +1 -1
  590. package/dist/dts/utils/layout.d.ts +2 -0
  591. package/dist/dts/utils/layout.d.ts.map +1 -0
  592. package/dist/dts/utils/layout.js +20 -0
  593. package/dist/dts/utils/layout.js.map +1 -0
  594. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts +2 -0
  595. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts.map +1 -0
  596. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js +150 -0
  597. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js.map +1 -0
  598. package/dist/dts/utils/tests/values.test.js +0 -1
  599. package/dist/dts/utils/tests/values.test.js.map +1 -1
  600. package/dist/esm/index.js +5798 -2718
  601. package/dist/esm/index.js.map +1 -1
  602. package/dist/index.d.ts +412 -329
  603. package/dist/tsconfig.tsbuildinfo +1 -1
  604. package/package.json +7 -7
  605. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +0 -1
  606. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +0 -1
  607. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +0 -2
  608. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +0 -1
  609. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts +0 -3
  610. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts.map +0 -1
  611. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js +0 -13
  612. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js.map +0 -1
@@ -0,0 +1,435 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
23
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ var __rest = (this && this.__rest) || function (s, e) {
49
+ var t = {};
50
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
+ t[p] = s[p];
52
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
+ t[p[i]] = s[p[i]];
56
+ }
57
+ return t;
58
+ };
59
+ var _a;
60
+ import { createAsyncThunk, createEntityAdapter, createSlice, } from '@reduxjs/toolkit';
61
+ import { newCohort } from '../types';
62
+ import { cohortStorage } from './CohortStorage';
63
+ import { EmptyFilterSet } from './types';
64
+ var isNameUnique = function (state, name, excludeId) {
65
+ var trimmedName = name.trim();
66
+ if (!trimmedName)
67
+ return false;
68
+ return !Object.values(state.entities).some(function (cohort) {
69
+ return cohort &&
70
+ cohort.id !== excludeId &&
71
+ cohort.name.trim().toLowerCase() === trimmedName.toLowerCase();
72
+ });
73
+ };
74
+ var generateUniqueName = function (state, baseName) {
75
+ var trimmedBaseName = baseName.trim();
76
+ // If base name is unique, use it
77
+ if (isNameUnique(state, trimmedBaseName)) {
78
+ return trimmedBaseName;
79
+ }
80
+ // Find a unique name by appending numbers
81
+ var counter = 1;
82
+ var uniqueName;
83
+ do {
84
+ uniqueName = "".concat(trimmedBaseName, " (").concat(counter, ")");
85
+ counter++;
86
+ } while (!isNameUnique(state, uniqueName));
87
+ return uniqueName;
88
+ };
89
+ export var createDefaultCohort = function () {
90
+ return newCohort(DEFAULT_COHORT_NAME, {}, undefined, false);
91
+ };
92
+ // Entity adapter
93
+ export var cohortsAdapter = createEntityAdapter({
94
+ selectId: function (cohort) { return cohort.id; },
95
+ sortComparer: function (a, b) {
96
+ if (a.modifiedDatetime > b.modifiedDatetime)
97
+ return -1;
98
+ if (a.modifiedDatetime < b.modifiedDatetime)
99
+ return 1;
100
+ return 0;
101
+ },
102
+ });
103
+ //const DEFAULT_COHORT_ID = 'default';
104
+ var DEFAULT_COHORT_NAME = 'Default';
105
+ export var loadCohortsFromStorage = createAsyncThunk('cohorts/loadFromStorage', function () { return __awaiter(void 0, void 0, void 0, function () {
106
+ var cohortsMap, error_1;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ _a.trys.push([0, 2, , 3]);
111
+ return [4 /*yield*/, cohortStorage.getAllCohorts()];
112
+ case 1:
113
+ cohortsMap = _a.sent();
114
+ return [2 /*return*/, Object(cohortsMap).values()];
115
+ case 2:
116
+ error_1 = _a.sent();
117
+ console.error('Failed to load cohorts:', error_1);
118
+ return [2 /*return*/, []];
119
+ case 3: return [2 /*return*/];
120
+ }
121
+ });
122
+ }); });
123
+ export var saveCohortToStorage = createAsyncThunk('cohorts/saveToStorage', function (params_1, _a) { return __awaiter(void 0, [params_1, _a], void 0, function (params, _b) {
124
+ var cohortId, cohortName, state, cohort, cohortToSave;
125
+ var getState = _b.getState;
126
+ return __generator(this, function (_c) {
127
+ switch (_c.label) {
128
+ case 0:
129
+ cohortId = params.cohortId, cohortName = params.cohortName;
130
+ state = getState();
131
+ cohort = state.cohorts.entities[cohortId];
132
+ if (!cohort) {
133
+ throw new Error("Cohort with id ".concat(cohortId, " not found"));
134
+ }
135
+ cohortToSave = __assign(__assign({}, cohort), { name: cohortName || cohort.name, saved: true, modified: false, modifiedDatetime: new Date().toISOString() });
136
+ return [4 /*yield*/, cohortStorage.saveCohort(cohortToSave)];
137
+ case 1:
138
+ _c.sent();
139
+ return [2 /*return*/, cohortToSave];
140
+ }
141
+ });
142
+ }); });
143
+ export var autoSaveCohort = createAsyncThunk('cohorts/autoSave', function (cohortId_1, _a) { return __awaiter(void 0, [cohortId_1, _a], void 0, function (cohortId, _b) {
144
+ var state, cohort, cohortToSave;
145
+ var getState = _b.getState;
146
+ return __generator(this, function (_c) {
147
+ switch (_c.label) {
148
+ case 0:
149
+ state = getState();
150
+ cohort = state.cohorts.entities[cohortId];
151
+ if (!cohort || !cohort.saved) {
152
+ throw new Error("Cannot auto-save unsaved cohort ".concat(cohortId));
153
+ }
154
+ cohortToSave = __assign(__assign({}, cohort), { modified: false, modifiedDatetime: new Date().toISOString() });
155
+ return [4 /*yield*/, cohortStorage.saveCohort(cohortToSave)];
156
+ case 1:
157
+ _c.sent();
158
+ return [2 /*return*/, cohortToSave];
159
+ }
160
+ });
161
+ }); });
162
+ export var deleteCohortFromStorage = createAsyncThunk('cohorts/deleteFromStorage', function (cohortId) { return __awaiter(void 0, void 0, void 0, function () {
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0: return [4 /*yield*/, cohortStorage.deleteCohort(cohortId)];
166
+ case 1:
167
+ _a.sent();
168
+ return [2 /*return*/, cohortId];
169
+ }
170
+ });
171
+ }); });
172
+ var emptyInitialState = cohortsAdapter.getInitialState({
173
+ currentCohortId: 'empty',
174
+ loading: false,
175
+ error: null,
176
+ autoSaveInProgress: [],
177
+ });
178
+ var initialState = cohortsAdapter.addOne(emptyInitialState, createDefaultCohort());
179
+ var updateAutoSave = function (cohortId, state) {
180
+ // Add to auto-save queue if not already present
181
+ if (!state.autoSaveInProgress.includes(cohortId)) {
182
+ state.autoSaveInProgress.push(cohortId);
183
+ }
184
+ };
185
+ export var cohortManagerSlice = createSlice({
186
+ name: 'CohortDiscovery/CohortManager',
187
+ initialState: initialState,
188
+ reducers: {
189
+ setCurrentCohortId: function (state, action) {
190
+ if (state.entities[action.payload]) {
191
+ state.currentCohortId = action.payload;
192
+ }
193
+ },
194
+ createNewCohort: function (state, action) {
195
+ var baseName = action.payload.name || "New Cohort";
196
+ var uniqueName = generateUniqueName(state, baseName);
197
+ var cohort = newCohort(uniqueName, action.payload.filters || {}, undefined, false);
198
+ cohortsAdapter.addOne(state, cohort);
199
+ state.currentCohortId = cohort.id;
200
+ },
201
+ removeCohort: function (state, action) {
202
+ var cohortId = action.payload;
203
+ var totalCohorts = Object.keys(state.entities).length;
204
+ if (totalCohorts <= 1) {
205
+ cohortsAdapter.removeAll(state);
206
+ var defaultCohort = createDefaultCohort();
207
+ cohortsAdapter.addOne(state, defaultCohort);
208
+ state.currentCohortId = defaultCohort.id;
209
+ return;
210
+ }
211
+ cohortsAdapter.removeOne(state, cohortId);
212
+ if (state.currentCohortId === cohortId) {
213
+ var remainingIds = Object.keys(state.entities);
214
+ state.currentCohortId = remainingIds[0];
215
+ }
216
+ state.autoSaveInProgress = state.autoSaveInProgress.filter(function (id) { return id !== cohortId; });
217
+ },
218
+ updateCohortName: function (state, action) {
219
+ var _a = action.payload, id = _a.id, name = _a.name;
220
+ var cohort = state.entities[id];
221
+ if (!cohort)
222
+ return;
223
+ var trimmedName = name.trim();
224
+ // Don't update if name is empty
225
+ if (!trimmedName)
226
+ return;
227
+ // Don't update if name hasn't changed
228
+ if (cohort.name === trimmedName)
229
+ return;
230
+ // Check if name is unique (excluding current cohort)
231
+ if (!isNameUnique(state, trimmedName, id)) {
232
+ // Set error for duplicate name
233
+ state.error = "A cohort named \"".concat(trimmedName, "\" already exists. Please choose a different name.");
234
+ return;
235
+ }
236
+ var wasSaved = cohort.saved;
237
+ cohortsAdapter.updateOne(state, {
238
+ id: id,
239
+ changes: {
240
+ name: trimmedName,
241
+ modified: !wasSaved,
242
+ modifiedDatetime: new Date().toISOString(),
243
+ },
244
+ });
245
+ if (wasSaved) {
246
+ // Add to auto-save queue if not already present
247
+ updateAutoSave(id, state);
248
+ }
249
+ },
250
+ updateCohortFilter: function (state, action) {
251
+ var _a, _b;
252
+ var _c, _d, _e, _f, _g, _h;
253
+ var _j = action.payload, index = _j.index, field = _j.field, filter = _j.filter;
254
+ var currentCohort = getCurrentCohort(state);
255
+ var wasSaved = currentCohort.saved;
256
+ cohortsAdapter.updateOne(state, {
257
+ id: currentCohort.id,
258
+ changes: {
259
+ filters: __assign(__assign({}, currentCohort.filters), (_a = {}, _a[index] = {
260
+ mode: (_e = (_d = (_c = currentCohort.filters) === null || _c === void 0 ? void 0 : _c[index]) === null || _d === void 0 ? void 0 : _d.mode) !== null && _e !== void 0 ? _e : 'and',
261
+ root: __assign(__assign({}, ((_h = (_g = (_f = currentCohort.filters) === null || _f === void 0 ? void 0 : _f[index]) === null || _g === void 0 ? void 0 : _g.root) !== null && _h !== void 0 ? _h : {})), (_b = {}, _b[field] = filter, _b)),
262
+ }, _a)),
263
+ modified: !wasSaved,
264
+ modifiedDatetime: new Date().toISOString(),
265
+ },
266
+ });
267
+ if (wasSaved) {
268
+ // Add to auto-save queue if not already present
269
+ updateAutoSave(currentCohort.id, state);
270
+ }
271
+ },
272
+ setCohortFilter: function (state, action) {
273
+ var _a;
274
+ var _b = action.payload, index = _b.index, filters = _b.filters;
275
+ var currentCohort = getCurrentCohort(state);
276
+ var wasSaved = currentCohort.saved;
277
+ cohortsAdapter.updateOne(state, {
278
+ id: currentCohort.id,
279
+ changes: {
280
+ filters: __assign(__assign({}, currentCohort.filters), (_a = {}, _a[index] = filters, _a)),
281
+ modified: !wasSaved,
282
+ modifiedDatetime: new Date().toISOString(),
283
+ },
284
+ });
285
+ if (wasSaved) {
286
+ updateAutoSave(currentCohort.id, state);
287
+ }
288
+ },
289
+ setAllIndexFilters: function (state, action) {
290
+ var currentCohort = getCurrentCohort(state);
291
+ var wasSaved = currentCohort.saved;
292
+ cohortsAdapter.updateOne(state, {
293
+ id: currentCohort.id,
294
+ changes: {
295
+ filters: action.payload,
296
+ modified: !wasSaved,
297
+ modifiedDatetime: new Date().toISOString(),
298
+ },
299
+ });
300
+ if (wasSaved) {
301
+ updateAutoSave(currentCohort.id, state);
302
+ }
303
+ },
304
+ removeCohortFilter: function (state, action) {
305
+ var _a;
306
+ var _b, _c;
307
+ var _d = action.payload, index = _d.index, field = _d.field;
308
+ var currentCohort = getCurrentCohort(state);
309
+ var filters = (_c = (_b = currentCohort.filters) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.root;
310
+ var wasSaved = currentCohort.saved;
311
+ if (!filters)
312
+ return;
313
+ var _e = filters, _f = field, _removed = _e[_f], updated = __rest(_e, [typeof _f === "symbol" ? _f : _f + ""]);
314
+ cohortsAdapter.updateOne(state, {
315
+ id: currentCohort.id,
316
+ changes: {
317
+ filters: __assign(__assign({}, currentCohort.filters), (_a = {}, _a[index] = {
318
+ mode: currentCohort.filters[index].mode,
319
+ root: updated,
320
+ }, _a)),
321
+ modified: !wasSaved,
322
+ modifiedDatetime: new Date().toISOString(),
323
+ },
324
+ });
325
+ if (wasSaved) {
326
+ updateAutoSave(currentCohort.id, state);
327
+ }
328
+ },
329
+ clearCohortFilters: function (state, action) {
330
+ var _a;
331
+ var index = action.payload.index;
332
+ var currentCohort = getCurrentCohort(state);
333
+ var wasSaved = currentCohort.saved;
334
+ cohortsAdapter.updateOne(state, {
335
+ id: currentCohort.id,
336
+ changes: {
337
+ filters: __assign(__assign({}, currentCohort.filters), (_a = {}, _a[index] = EmptyFilterSet, _a)),
338
+ modified: !wasSaved,
339
+ modifiedDatetime: new Date().toISOString(),
340
+ },
341
+ });
342
+ if (wasSaved) {
343
+ updateAutoSave(currentCohort.id, state);
344
+ }
345
+ },
346
+ clearError: function (state) {
347
+ state.error = null;
348
+ },
349
+ },
350
+ extraReducers: function (builder) {
351
+ builder
352
+ .addCase(loadCohortsFromStorage.pending, function (state) {
353
+ state.loading = true;
354
+ state.error = null;
355
+ })
356
+ .addCase(loadCohortsFromStorage.fulfilled, function (state, action) {
357
+ state.loading = false;
358
+ if (action.payload.length > 0) {
359
+ if (Object.keys(state.entities).length === 1) {
360
+ cohortsAdapter.removeOne(state, state.entities[0].id);
361
+ }
362
+ cohortsAdapter.addMany(state, action.payload);
363
+ var sortedCohorts = action.payload.sort(function (a, b) {
364
+ return b.modifiedDatetime.localeCompare(a.modifiedDatetime);
365
+ });
366
+ state.currentCohortId = sortedCohorts[0].id;
367
+ }
368
+ })
369
+ .addCase(loadCohortsFromStorage.rejected, function (state, action) {
370
+ state.loading = false;
371
+ state.error = action.error.message || 'Failed to load cohorts';
372
+ })
373
+ .addCase(saveCohortToStorage.fulfilled, function (state, action) {
374
+ cohortsAdapter.updateOne(state, {
375
+ id: action.payload.id,
376
+ changes: action.payload,
377
+ });
378
+ })
379
+ .addCase(saveCohortToStorage.rejected, function (state, action) {
380
+ state.error = action.error.message || 'Failed to save cohort';
381
+ })
382
+ .addCase(autoSaveCohort.pending, function (state, action) {
383
+ updateAutoSave(action.meta.arg, state);
384
+ })
385
+ .addCase(autoSaveCohort.fulfilled, function (state, action) {
386
+ state.autoSaveInProgress = state.autoSaveInProgress.filter(function (id) { return id !== action.payload.id; });
387
+ cohortsAdapter.updateOne(state, {
388
+ id: action.payload.id,
389
+ changes: action.payload,
390
+ });
391
+ })
392
+ .addCase(autoSaveCohort.rejected, function (state, action) {
393
+ state.autoSaveInProgress = state.autoSaveInProgress.filter(function (id) { return id !== action.meta.arg; });
394
+ console.warn("Auto-save failed for cohort ".concat(action.meta.arg, ":"), action.error.message);
395
+ })
396
+ .addCase(deleteCohortFromStorage.fulfilled, function (state, action) {
397
+ var cohortId = action.payload;
398
+ var totalCohorts = Object.keys(state.entities).length;
399
+ if (totalCohorts <= 1) {
400
+ cohortsAdapter.removeAll(state);
401
+ var defaultCohort = createDefaultCohort();
402
+ cohortsAdapter.addOne(state, defaultCohort);
403
+ state.currentCohortId = defaultCohort.id;
404
+ }
405
+ else {
406
+ cohortsAdapter.removeOne(state, cohortId);
407
+ if (state.currentCohortId === cohortId) {
408
+ var remainingIds = Object.keys(state.entities);
409
+ state.currentCohortId = remainingIds[0];
410
+ }
411
+ }
412
+ state.autoSaveInProgress = state.autoSaveInProgress.filter(function (id) { return id !== cohortId; });
413
+ });
414
+ },
415
+ });
416
+ // Helper function
417
+ var getCurrentCohort = function (state) {
418
+ var cohort = state.entities[state.currentCohortId];
419
+ if (!cohort) {
420
+ return createDefaultCohort();
421
+ }
422
+ return cohort;
423
+ };
424
+ // Actions export
425
+ export var setCurrentCohortId = (_a = cohortManagerSlice.actions, _a.setCurrentCohortId), createNewCohort = _a.createNewCohort, removeCohort = _a.removeCohort, updateCohortName = _a.updateCohortName, updateCohortFilter = _a.updateCohortFilter, setCohortFilter = _a.setCohortFilter, setAllIndexFilters = _a.setAllIndexFilters, removeCohortFilter = _a.removeCohortFilter, clearCohortFilters = _a.clearCohortFilters;
426
+ export var cohortManagerReducer = cohortManagerSlice.reducer;
427
+ export var validateCohortName = function (name, excludeId) { return function (dispatch, getState) {
428
+ var state = getState();
429
+ return isNameUnique(state.cohorts, name, excludeId);
430
+ }; };
431
+ export var generateUniqueNameForCohort = function (baseName) { return function (dispatch, getState) {
432
+ var state = getState();
433
+ return generateUniqueName(state.cohorts, baseName);
434
+ }; };
435
+ //# sourceMappingURL=CohortManagerSlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CohortManagerSlice.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/CohortManagment/CohortManagerSlice.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,GAGZ,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAoB,SAAS,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,IAAM,YAAY,GAAG,UACnB,KAAyD,EACzD,IAAY,EACZ,SAAkB;IAElB,IAAM,WAAW,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAChC,IAAI,CAAC,WAAW;QAAE,OAAO,KAAK,CAAC;IAE/B,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CACxC,UAAC,MAAM;QACL,OAAA,MAAM;YACN,MAAM,CAAC,EAAE,KAAK,SAAS;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,WAAW,CAAC,WAAW,EAAE;IAF9D,CAE8D,CACjE,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,kBAAkB,GAAG,UACzB,KAAyD,EACzD,QAAgB;IAEhB,IAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAExC,iCAAiC;IACjC,IAAI,YAAY,CAAC,KAAK,EAAE,eAAe,CAAC,EAA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e,qBAAA,EACf,kBAAkB,wBAAA,EAClB,kBAAkB,wBAAA,EAClB,kBAAkB,wBAAA,CACW;AAE/B,MAAM,CAAC,IAAM,oBAAoB,GAAG,kBAAkB,CAAC,OAAO,CAAC;AAE/D,MAAM,CAAC,IAAM,kBAAkB,GAC7B,UAAC,IAAY,EAAE,SAAkB,IAAK,OAAA,UAAC,QAAa,EAAE,QAAa;IACjE,IAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,OAAO,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;AACtD,CAAC,EAHqC,CAGrC,CAAC;AAEJ,MAAM,CAAC,IAAM,2BAA2B,GACtC,UAAC,QAAgB,IAAK,OAAA,UAAC,QAAa,EAAE,QAAa;IACjD,IAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,OAAO,kBAAkB,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AACrD,CAAC,EAHqB,CAGrB,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { StorageOperationResults } from '@gen3/core';
2
+ import { Cohort, CohortId } from '../types';
3
+ import { CohortStorageReturnStatus } from './types';
4
+ export declare class CohortStorage {
5
+ private getDb;
6
+ /**
7
+ * Initialize the IndexedDB database with proper schema
8
+ */
9
+ private initializeDB;
10
+ /**
11
+ * Save a single cohort to the database
12
+ */
13
+ saveCohort(cohort: Cohort): Promise<StorageOperationResults>;
14
+ /**
15
+ * Save multiple cohorts in a single transaction (bulk operation)
16
+ */
17
+ saveCohorts(cohorts: Cohort[]): Promise<StorageOperationResults>;
18
+ /**
19
+ * Get a specific cohort by ID
20
+ */
21
+ getCohort(id: CohortId): Promise<CohortStorageReturnStatus<Cohort>>;
22
+ /**
23
+ * Get all cohorts from the database
24
+ */
25
+ getAllCohorts(): Promise<CohortStorageReturnStatus<Record<CohortId, Cohort>>>;
26
+ /**
27
+ * Search cohorts by name (case-insensitive partial match)
28
+ */
29
+ searchCohortsByName(searchTerm: string): Promise<CohortStorageReturnStatus<Record<CohortId, Cohort>>>;
30
+ /**
31
+ * Count total number of cohorts
32
+ */
33
+ getCohortCount(): Promise<CohortStorageReturnStatus<number>>;
34
+ /**
35
+ * Update an existing cohort (full replacement)
36
+ */
37
+ updateCohort(cohort: Cohort): Promise<StorageOperationResults>;
38
+ /**
39
+ * Delete a specific cohort by ID
40
+ */
41
+ deleteCohort(id: CohortId): Promise<StorageOperationResults>;
42
+ /**
43
+ * Delete all cohorts from the database
44
+ */
45
+ deleteAllCohorts(): Promise<StorageOperationResults>;
46
+ /**
47
+ * Check if a cohort exists
48
+ */
49
+ cohortExists(id: CohortId): Promise<CohortStorageReturnStatus<boolean>>;
50
+ /**
51
+ * Export all cohorts as JSON
52
+ */
53
+ exportCohorts(): Promise<CohortStorageReturnStatus<Record<CohortId, Cohort>>>;
54
+ /**
55
+ * Import cohorts from JSON data
56
+ */
57
+ importCohorts(cohorts: Cohort[], overwrite?: boolean): Promise<void | CohortStorageReturnStatus>;
58
+ /**
59
+ * Close the database connection
60
+ */
61
+ close(): Promise<void>;
62
+ }
63
+ export declare const cohortStorage: CohortStorage;
64
+ //# sourceMappingURL=CohortStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CohortStorage.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/CohortManagment/CohortStorage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAgB,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAMpD,qBAAa,aAAa;IACxB,OAAO,CAAC,KAAK;IAkBb;;OAEG;YACW,YAAY;IAsC1B;;OAEG;IACG,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAalE;;OAEG;IACG,WAAW,CAAC,OAAO,EAAE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