@gen3/frontend 0.10.94 → 0.10.95

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 (495) hide show
  1. package/dist/cjs/index.js +5530 -3554
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts +64 -0
  4. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  5. package/dist/dts/components/DropdownMenu/DropdownMenu.js +38 -0
  6. package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +1 -0
  7. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +2 -0
  8. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +1 -0
  9. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +141 -0
  10. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +1 -0
  11. package/dist/dts/components/DropdownMenu/index.d.ts +3 -0
  12. package/dist/dts/components/DropdownMenu/index.d.ts.map +1 -0
  13. package/dist/dts/components/DropdownMenu/index.js +3 -0
  14. package/dist/dts/components/DropdownMenu/index.js.map +1 -0
  15. package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
  16. package/dist/dts/components/Login/LoginProvidersPanel.js +1 -1
  17. package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
  18. package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts +5 -0
  19. package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts.map +1 -0
  20. package/dist/dts/components/MessageCards/EmptyTableMessage.js +9 -0
  21. package/dist/dts/components/MessageCards/EmptyTableMessage.js.map +1 -0
  22. package/dist/dts/components/MessageCards/ErrorMessage.d.ts +7 -0
  23. package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +1 -0
  24. package/dist/dts/components/MessageCards/ErrorMessage.js +8 -0
  25. package/dist/dts/components/MessageCards/ErrorMessage.js.map +1 -0
  26. package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
  27. package/dist/dts/components/charts/echarts/BarChart.js +42 -4
  28. package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
  29. package/dist/dts/components/charts/echarts/ReactECharts.js +1 -1
  30. package/dist/dts/components/charts/echarts/ReactECharts.js.map +1 -1
  31. package/dist/dts/components/charts/utils.d.ts +1 -1
  32. package/dist/dts/components/charts/utils.d.ts.map +1 -1
  33. package/dist/dts/components/charts/utils.js +2 -4
  34. package/dist/dts/components/charts/utils.js.map +1 -1
  35. package/dist/dts/components/facets/EnumFacet.d.ts +2 -1
  36. package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
  37. package/dist/dts/components/facets/EnumFacet.js.map +1 -1
  38. package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
  39. package/dist/dts/components/facets/FacetEnumList.js +7 -30
  40. package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
  41. package/dist/dts/components/facets/FacetSelector.d.ts +1 -1
  42. package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
  43. package/dist/dts/components/facets/FacetSelector.js +3 -1
  44. package/dist/dts/components/facets/FacetSelector.js.map +1 -1
  45. package/dist/dts/components/facets/types.d.ts +1 -0
  46. package/dist/dts/components/facets/types.d.ts.map +1 -1
  47. package/dist/dts/components/facets/types.js.map +1 -1
  48. package/dist/dts/components/facets/utils.d.ts +4 -2
  49. package/dist/dts/components/facets/utils.d.ts.map +1 -1
  50. package/dist/dts/components/facets/utils.js +27 -1
  51. package/dist/dts/components/facets/utils.js.map +1 -1
  52. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
  53. package/dist/dts/features/CohortBuilder/AccessLevel.d.ts +8 -0
  54. package/dist/dts/features/CohortBuilder/AccessLevel.d.ts.map +1 -0
  55. package/dist/dts/features/CohortBuilder/AccessLevel.js +20 -0
  56. package/dist/dts/features/CohortBuilder/AccessLevel.js.map +1 -0
  57. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
  58. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
  59. package/dist/dts/features/CohortBuilder/CohortBuilder.js +4 -19
  60. package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
  61. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +20 -0
  62. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
  63. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +37 -0
  64. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
  65. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +18 -0
  66. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
  67. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +149 -0
  68. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
  69. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +9 -0
  70. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +1 -0
  71. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +122 -0
  72. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +1 -0
  73. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +19 -0
  74. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +1 -0
  75. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +52 -0
  76. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +1 -0
  77. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +10 -0
  78. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
  79. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +37 -0
  80. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
  81. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +13 -0
  82. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +1 -0
  83. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +33 -0
  84. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +1 -0
  85. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +7 -0
  86. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +1 -0
  87. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js +80 -0
  88. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +1 -0
  89. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +5 -0
  90. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +1 -0
  91. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +5 -0
  92. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +1 -0
  93. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +5 -0
  94. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +1 -0
  95. package/dist/dts/features/CohortBuilder/CohortManager/index.js +4 -0
  96. package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +1 -0
  97. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +13 -0
  98. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +1 -0
  99. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +15 -0
  100. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +1 -0
  101. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +4 -0
  102. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +1 -0
  103. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +8 -0
  104. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +1 -0
  105. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +32 -0
  106. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
  107. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +190 -0
  108. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
  109. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +2 -0
  110. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +1 -0
  111. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +145 -0
  112. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +1 -0
  113. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
  114. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
  115. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +79 -0
  116. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
  117. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +5 -0
  118. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +1 -0
  119. package/dist/dts/features/CohortBuilder/CohortManager/style.js +21 -0
  120. package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +1 -0
  121. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +49 -0
  122. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +1 -0
  123. package/dist/dts/features/CohortBuilder/CohortManager/types.js +2 -0
  124. package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +1 -0
  125. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts +6 -0
  126. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts.map +1 -0
  127. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js +21 -0
  128. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js.map +1 -0
  129. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +6 -2
  130. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  131. package/dist/dts/features/CohortBuilder/CohortPanel.js +15 -19
  132. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  133. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +8 -1
  134. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -1
  135. package/dist/dts/features/CohortBuilder/CohortSelector.js +51 -10
  136. package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -1
  137. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +6 -0
  138. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -0
  139. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +32 -0
  140. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -0
  141. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts +1 -1
  142. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
  143. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js +1 -1
  144. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -1
  145. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts +2 -0
  146. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts.map +1 -1
  147. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts +3 -2
  148. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
  149. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +56 -60
  150. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
  151. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts +4 -0
  152. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts.map +1 -0
  153. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js +48 -0
  154. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js.map +1 -0
  155. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts +4 -0
  156. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts.map +1 -0
  157. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js +81 -0
  158. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js.map +1 -0
  159. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts +9 -0
  160. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts.map +1 -0
  161. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js +22 -0
  162. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js.map +1 -0
  163. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts +9 -0
  164. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts.map +1 -0
  165. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js +17 -0
  166. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js.map +1 -0
  167. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts +12 -0
  168. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts.map +1 -0
  169. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js +2 -0
  170. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js.map +1 -0
  171. package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts +52 -12
  172. package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts.map +1 -1
  173. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts +4 -1
  174. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts.map +1 -1
  175. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js +70 -0
  176. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js.map +1 -1
  177. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +1 -1
  178. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -1
  179. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +2 -2
  180. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -1
  181. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts +1 -1
  182. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -1
  183. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +5 -4
  184. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -1
  185. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -1
  186. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js +2 -1
  187. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js.map +1 -1
  188. package/dist/dts/features/CohortBuilder/Panels/types.d.ts +4 -1
  189. package/dist/dts/features/CohortBuilder/Panels/types.d.ts.map +1 -1
  190. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -1
  191. package/dist/dts/features/CohortBuilder/index.d.ts +5 -2
  192. package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
  193. package/dist/dts/features/CohortBuilder/index.js +4 -1
  194. package/dist/dts/features/CohortBuilder/index.js.map +1 -1
  195. package/dist/dts/features/CohortBuilder/types.d.ts +13 -5
  196. package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
  197. package/dist/dts/features/CohortBuilder/types.js +6 -0
  198. package/dist/dts/features/CohortBuilder/types.js.map +1 -1
  199. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
  200. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +19 -11
  201. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
  202. package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
  203. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +23 -8
  204. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
  205. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts +6 -0
  206. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts.map +1 -0
  207. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +71 -0
  208. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js.map +1 -0
  209. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts +2 -0
  210. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts.map +1 -0
  211. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js +36 -0
  212. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js.map +1 -0
  213. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts +417 -0
  214. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts.map +1 -0
  215. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js +45 -0
  216. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js.map +1 -0
  217. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts +95 -0
  218. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts.map +1 -0
  219. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js +388 -0
  220. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js.map +1 -0
  221. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +64 -0
  222. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +1 -0
  223. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +574 -0
  224. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +1 -0
  225. package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts +7 -0
  226. package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts.map +1 -0
  227. package/dist/dts/features/CohortDiscovery/CohortManagment/types.js +2 -0
  228. package/dist/dts/features/CohortDiscovery/CohortManagment/types.js.map +1 -0
  229. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts +1 -1
  230. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts.map +1 -1
  231. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js +1 -1
  232. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js.map +1 -1
  233. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts +1 -1
  234. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -1
  235. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js +1 -1
  236. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js.map +1 -1
  237. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts +2 -1
  238. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts.map +1 -1
  239. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js +22 -6
  240. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js.map +1 -1
  241. package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.js.map +1 -1
  242. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts +1 -1
  243. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
  244. package/dist/dts/features/CohortDiscovery/IndexPanel.js +41 -33
  245. package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
  246. package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts +22 -0
  247. package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts.map +1 -0
  248. package/dist/dts/features/CohortDiscovery/Requests/hooks.js +147 -0
  249. package/dist/dts/features/CohortDiscovery/Requests/hooks.js.map +1 -0
  250. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts +1 -0
  251. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +1 -0
  252. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +284 -0
  253. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +1 -0
  254. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts +8 -0
  255. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts.map +1 -0
  256. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js +9 -0
  257. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js.map +1 -0
  258. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts +10 -0
  259. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts.map +1 -0
  260. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js +231 -0
  261. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js.map +1 -0
  262. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts +3 -4
  263. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -1
  264. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js +6 -11
  265. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js.map +1 -1
  266. package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts +8 -0
  267. package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts.map +1 -0
  268. package/dist/dts/features/CohortDiscovery/TabbedIndex.js +15 -0
  269. package/dist/dts/features/CohortDiscovery/TabbedIndex.js.map +1 -0
  270. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +2 -2
  271. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
  272. package/dist/dts/features/CohortDiscovery/appApi.d.ts +19 -3
  273. package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
  274. package/dist/dts/features/CohortDiscovery/appApi.js +11 -3
  275. package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
  276. package/dist/dts/features/CohortDiscovery/hooks.d.ts +12 -0
  277. package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
  278. package/dist/dts/features/CohortDiscovery/hooks.js +42 -1
  279. package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
  280. package/dist/dts/features/CohortDiscovery/registerApp.d.ts.map +1 -1
  281. package/dist/dts/features/CohortDiscovery/registerApp.js +5 -3
  282. package/dist/dts/features/CohortDiscovery/registerApp.js.map +1 -1
  283. package/dist/dts/features/CohortDiscovery/types.d.ts +57 -0
  284. package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -1
  285. package/dist/dts/features/CohortDiscovery/types.js +35 -1
  286. package/dist/dts/features/CohortDiscovery/types.js.map +1 -1
  287. package/dist/dts/features/CohortSimilarity/appApi.d.ts +4 -6
  288. package/dist/dts/features/CohortSimilarity/appApi.d.ts.map +1 -1
  289. package/dist/dts/features/CohortSimilarity/appApi.js +3 -1
  290. package/dist/dts/features/CohortSimilarity/appApi.js.map +1 -1
  291. package/dist/dts/features/CohortSimilarity/registerApp.d.ts.map +1 -1
  292. package/dist/dts/features/CohortSimilarity/registerApp.js +1 -3
  293. package/dist/dts/features/CohortSimilarity/registerApp.js.map +1 -1
  294. package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
  295. package/dist/dts/features/DataLibrary/DatasetAccordionControl.js +2 -2
  296. package/dist/dts/features/DataLibrary/DatasetAccordionControl.js.map +1 -1
  297. package/dist/dts/features/DataLibrary/SearchAndActions.js +1 -1
  298. package/dist/dts/features/DataLibrary/SearchAndActions.js.map +1 -1
  299. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.d.ts.map +1 -1
  300. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js +1 -1
  301. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js.map +1 -1
  302. package/dist/dts/features/DataLibrary/tests/utils.unit.test.js +2 -1
  303. package/dist/dts/features/DataLibrary/tests/utils.unit.test.js.map +1 -1
  304. package/dist/dts/features/DataLibrary/utils.d.ts +0 -10
  305. package/dist/dts/features/DataLibrary/utils.d.ts.map +1 -1
  306. package/dist/dts/features/DataLibrary/utils.js +0 -34
  307. package/dist/dts/features/DataLibrary/utils.js.map +1 -1
  308. package/dist/dts/features/Dictionary/CategoryPanel.d.ts.map +1 -1
  309. package/dist/dts/features/Dictionary/CategoryPanel.js +9 -9
  310. package/dist/dts/features/Dictionary/CategoryPanel.js.map +1 -1
  311. package/dist/dts/features/Dictionary/DictionaryWithContext.d.ts.map +1 -1
  312. package/dist/dts/features/Dictionary/DictionaryWithContext.js.map +1 -1
  313. package/dist/dts/features/Discovery/DataLoaders/IndexedMetadata/DataLoader.js.map +1 -1
  314. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.d.ts.map +1 -1
  315. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js +2 -2
  316. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js.map +1 -1
  317. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.d.ts.map +1 -1
  318. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js +1 -1
  319. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js.map +1 -1
  320. package/dist/dts/features/Discovery/DataLoaders/utils.d.ts.map +1 -1
  321. package/dist/dts/features/Discovery/DataLoaders/utils.js +1 -1
  322. package/dist/dts/features/Discovery/DataLoaders/utils.js.map +1 -1
  323. package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
  324. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +8 -6
  325. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
  326. package/dist/dts/features/Discovery/DiscoveryProvider.d.ts +0 -3
  327. package/dist/dts/features/Discovery/DiscoveryProvider.d.ts.map +1 -1
  328. package/dist/dts/features/Discovery/DiscoveryProvider.js +0 -5
  329. package/dist/dts/features/Discovery/DiscoveryProvider.js.map +1 -1
  330. package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
  331. package/dist/dts/features/Discovery/DiscoveryTable.js +7 -5
  332. package/dist/dts/features/Discovery/DiscoveryTable.js.map +1 -1
  333. package/dist/dts/features/Discovery/StudyDetails/StudyItems.d.ts.map +1 -1
  334. package/dist/dts/features/Discovery/StudyDetails/StudyItems.js +3 -1
  335. package/dist/dts/features/Discovery/StudyDetails/StudyItems.js.map +1 -1
  336. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts +2 -3
  337. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts.map +1 -1
  338. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js +3 -3
  339. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js.map +1 -1
  340. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts +1 -2
  341. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
  342. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js +5 -6
  343. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js.map +1 -1
  344. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts +1 -1
  345. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
  346. package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts +1 -1
  347. package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts.map +1 -1
  348. package/dist/dts/features/Discovery/index.d.ts +2 -4
  349. package/dist/dts/features/Discovery/index.d.ts.map +1 -1
  350. package/dist/dts/features/Discovery/index.js +1 -3
  351. package/dist/dts/features/Discovery/index.js.map +1 -1
  352. package/dist/dts/features/Discovery/types.d.ts +3 -107
  353. package/dist/dts/features/Discovery/types.d.ts.map +1 -1
  354. package/dist/dts/features/Discovery/types.js +0 -16
  355. package/dist/dts/features/Discovery/types.js.map +1 -1
  356. package/dist/dts/features/Discovery/utils.d.ts +2 -8
  357. package/dist/dts/features/Discovery/utils.d.ts.map +1 -1
  358. package/dist/dts/features/Discovery/utils.js +1 -28
  359. package/dist/dts/features/Discovery/utils.js.map +1 -1
  360. package/dist/dts/features/Navigation/Footer/FooterColumn.d.ts.map +1 -1
  361. package/dist/dts/features/Navigation/Footer/FooterColumn.js.map +1 -1
  362. package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
  363. package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
  364. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts +9 -0
  365. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -0
  366. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js +11 -0
  367. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js.map +1 -0
  368. package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts +19 -0
  369. package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts.map +1 -0
  370. package/dist/dts/features/Study/StudyDetails/RendererFactory.js +56 -0
  371. package/dist/dts/features/Study/StudyDetails/RendererFactory.js.map +1 -0
  372. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts +15 -0
  373. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts.map +1 -0
  374. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js +44 -0
  375. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js.map +1 -0
  376. package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts +10 -0
  377. package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts.map +1 -0
  378. package/dist/dts/features/Study/StudyDetails/StudyDetails.js +36 -0
  379. package/dist/dts/features/Study/StudyDetails/StudyDetails.js.map +1 -0
  380. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts +10 -0
  381. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts.map +1 -0
  382. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js +19 -0
  383. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js.map +1 -0
  384. package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts +8 -0
  385. package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts.map +1 -0
  386. package/dist/dts/features/Study/StudyDetails/StudyGroup.js +31 -0
  387. package/dist/dts/features/Study/StudyDetails/StudyGroup.js.map +1 -0
  388. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts +9 -0
  389. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts.map +1 -0
  390. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js +11 -0
  391. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js.map +1 -0
  392. package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts +5 -0
  393. package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts.map +1 -0
  394. package/dist/dts/features/Study/StudyDetails/StudyItems.js +283 -0
  395. package/dist/dts/features/Study/StudyDetails/StudyItems.js.map +1 -0
  396. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts +10 -0
  397. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts.map +1 -0
  398. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js +45 -0
  399. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js.map +1 -0
  400. package/dist/dts/features/Study/StudyPage/StudyPage.d.ts +10 -0
  401. package/dist/dts/features/Study/StudyPage/StudyPage.d.ts.map +1 -0
  402. package/dist/dts/features/Study/StudyPage/StudyPage.js +11 -0
  403. package/dist/dts/features/Study/StudyPage/StudyPage.js.map +1 -0
  404. package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts +9 -0
  405. package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts.map +1 -0
  406. package/dist/dts/features/Study/StudyPage/StudyPageGroup.js +8 -0
  407. package/dist/dts/features/Study/StudyPage/StudyPageGroup.js.map +1 -0
  408. package/dist/dts/features/Study/StudyProvider.d.ts +12 -0
  409. package/dist/dts/features/Study/StudyProvider.d.ts.map +1 -0
  410. package/dist/dts/features/Study/StudyProvider.js +23 -0
  411. package/dist/dts/features/Study/StudyProvider.js.map +1 -0
  412. package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts +3 -0
  413. package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts.map +1 -0
  414. package/dist/dts/features/Study/TableRenderers/CellRenderers.js +20 -0
  415. package/dist/dts/features/Study/TableRenderers/CellRenderers.js.map +1 -0
  416. package/dist/dts/features/Study/TableRenderers/types.d.ts +14 -0
  417. package/dist/dts/features/Study/TableRenderers/types.d.ts.map +1 -0
  418. package/dist/dts/features/Study/TableRenderers/types.js +2 -0
  419. package/dist/dts/features/Study/TableRenderers/types.js.map +1 -0
  420. package/dist/dts/features/Study/index.d.ts +5 -0
  421. package/dist/dts/features/Study/index.d.ts.map +1 -0
  422. package/dist/dts/features/Study/index.js +4 -0
  423. package/dist/dts/features/Study/index.js.map +1 -0
  424. package/dist/dts/features/Study/types.d.ts +91 -0
  425. package/dist/dts/features/Study/types.d.ts.map +1 -0
  426. package/dist/dts/features/Study/types.js +8 -0
  427. package/dist/dts/features/Study/types.js.map +1 -0
  428. package/dist/dts/features/Study/utils.d.ts +10 -0
  429. package/dist/dts/features/Study/utils.d.ts.map +1 -0
  430. package/dist/dts/features/Study/utils.js +28 -0
  431. package/dist/dts/features/Study/utils.js.map +1 -0
  432. package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.d.ts.map +1 -1
  433. package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.js.map +1 -1
  434. package/dist/dts/index.d.ts +3 -1
  435. package/dist/dts/index.d.ts.map +1 -1
  436. package/dist/dts/index.js +7 -1
  437. package/dist/dts/index.js.map +1 -1
  438. package/dist/dts/lib/session/session.d.ts.map +1 -1
  439. package/dist/dts/lib/session/session.js +16 -32
  440. package/dist/dts/lib/session/session.js.map +1 -1
  441. package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
  442. package/dist/dts/pages/Explorer/data.js +28 -22
  443. package/dist/dts/pages/Explorer/data.js.map +1 -1
  444. package/dist/dts/pages/admin/analysis/Analysis.d.ts +1 -1
  445. package/dist/dts/pages/admin/analysis/Analysis.d.ts.map +1 -1
  446. package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
  447. package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
  448. package/dist/dts/types/icons.d.ts +4 -0
  449. package/dist/dts/types/icons.d.ts.map +1 -0
  450. package/dist/dts/types/icons.js +5 -0
  451. package/dist/dts/types/icons.js.map +1 -0
  452. package/dist/dts/utils/access.d.ts +10 -0
  453. package/dist/dts/utils/access.d.ts.map +1 -0
  454. package/dist/dts/utils/access.js +11 -0
  455. package/dist/dts/utils/access.js.map +1 -0
  456. package/dist/dts/utils/authMapping.d.ts +4 -0
  457. package/dist/dts/utils/authMapping.d.ts.map +1 -1
  458. package/dist/dts/utils/authMapping.js.map +1 -1
  459. package/dist/dts/utils/convertResourcePathsToTree.d.ts +8 -0
  460. package/dist/dts/utils/convertResourcePathsToTree.d.ts.map +1 -0
  461. package/dist/dts/utils/convertResourcePathsToTree.js +43 -0
  462. package/dist/dts/utils/convertResourcePathsToTree.js.map +1 -0
  463. package/dist/dts/utils/dataAuthorization.d.ts +11 -0
  464. package/dist/dts/utils/dataAuthorization.d.ts.map +1 -0
  465. package/dist/dts/utils/dataAuthorization.js +2 -0
  466. package/dist/dts/utils/dataAuthorization.js.map +1 -0
  467. package/dist/dts/utils/date.d.ts +16 -0
  468. package/dist/dts/utils/date.d.ts.map +1 -1
  469. package/dist/dts/utils/date.js +54 -8
  470. package/dist/dts/utils/date.js.map +1 -1
  471. package/dist/dts/utils/index.d.ts +2 -0
  472. package/dist/dts/utils/index.d.ts.map +1 -1
  473. package/dist/dts/utils/index.js +2 -0
  474. package/dist/dts/utils/index.js.map +1 -1
  475. package/dist/dts/utils/layout.d.ts +2 -0
  476. package/dist/dts/utils/layout.d.ts.map +1 -0
  477. package/dist/dts/utils/layout.js +20 -0
  478. package/dist/dts/utils/layout.js.map +1 -0
  479. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts +2 -0
  480. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts.map +1 -0
  481. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js +150 -0
  482. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js.map +1 -0
  483. package/dist/esm/index.js +5935 -3965
  484. package/dist/esm/index.js.map +1 -1
  485. package/dist/index.d.ts +214 -145
  486. package/dist/tsconfig.tsbuildinfo +1 -1
  487. package/package.json +7 -7
  488. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +0 -1
  489. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +0 -1
  490. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +0 -2
  491. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +0 -1
  492. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts +0 -3
  493. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts.map +0 -1
  494. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js +0 -13
  495. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js.map +0 -1
@@ -13,7 +13,7 @@ var _a;
13
13
  import { createSlice } from '@reduxjs/toolkit';
14
14
  var initialState = {};
15
15
  var expandSlice = createSlice({
16
- name: 'CohortDiscovery/filterExpand',
16
+ name: 'CohortDiscovery/expandedCategory',
17
17
  initialState: initialState,
18
18
  reducers: {
19
19
  toggleCategoryFilter: function (state, action) {
@@ -1 +1 @@
1
- {"version":3,"file":"FilterExpandSlice.js","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/FilterExpandSlice.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,kBAAkB,CAAC;AAK9D,IAAM,YAAY,GAAyB,EAAE,CAAC;AAE9C,IAAM,WAAW,GAAG,WAAW,CAAC;IAC9B,IAAI,EAAE,8BAA8B;IACpC,YAAY,EAAE,YAAY;IAC1B,QAAQ,EAAE;QACR,oBAAoB,EAAE,UACpB,KAAK,EACL,MAA2D;;YAE3D,6BACK,KAAK,gBACP,MAAM,CAAC,OAAO,CAAC,KAAK,IAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,OAC/C;QACJ,CAAC;QACD,gBAAgB,EAAE,UAAC,KAAK,EAAE,MAA8B;YACtD,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,E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AA,CAAC,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,EAAnB,CAAmB,CAAC,CACnD,CAAC;QACJ,CAAC;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC;AAE1D,MAAM,CAAS,IAAA,oBAAoB,IAAtB,KAA6C,WAAW,CAAC,OAAO,0BAA1C,EAAE,gBAAgB,sBAAA,CAAyB;AAE9E,MAAM,CAAC,IAAM,oBAAoB,GAAG,UAAC,KAAe,EAAE,KAAa,YACjE,OAAA,MAAA,KAAK,CAAC,oBAAoB,0CAAG,KAAK,CAAC,CAAA,EAAA,CAAC;AAEtC,MAAM,CAAC,IAAM,yBAAyB,GAAG,UAAC,KAAe;IACvD,OAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,KAAK,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,EAAF,CAAE,CAAC;AAA1D,CAA0D,CAAC"}
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { FacetDataHooks, GetEnumFacetDataFunction } from '../../../components/facets';
2
+ import { EnumFacetDataChangedFunction, FacetDataHooks, GetEnumFacetDataFunction } from '../../../components/facets';
3
3
  import { FacetDefinition } from '@gen3/core';
4
4
  export interface EnumFacetPanelDataHooks extends FacetDataHooks {
5
5
  useGetFacetData: GetEnumFacetDataFunction;
6
+ updateVisibleValues?: EnumFacetDataChangedFunction;
6
7
  }
7
8
  interface EnumFacetPanelProps {
8
9
  facet: FacetDefinition;
@@ -1 +1 @@
1
- {"version":3,"file":"EnumFacetPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/FilterPanels/EnumFacetPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,cAAc,EACd,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,eAAe,EAAoB,MAAM,YAAY,CAAC;AAG/D,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,eAAe,EAAE,wBAAwB,CAAC;CAC3C;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,eAAe,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,uBAAuB,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwCjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"EnumFacetPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/FilterPanels/EnumFacetPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,eAAe,EAAmC,MAAM,YAAY,CAAC;AAG9E,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,eAAe,EAAE,wBAAwB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,4BAA4B,CAAC;CACpD;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,eAAe,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,uBAAuB,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsDjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,22 +1,38 @@
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
+ };
1
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useMemo } from 'react';
13
+ import { useCallback, useMemo, useState } from 'react';
3
14
  import { Text } from '@mantine/core';
4
15
  import { createChart } from '../../../components/charts/createChart';
5
- import { EnumFacetToHistogramArray } from '../utils';
6
- import FacetPanelDataHeader from './FacetPanelDataHeader';
7
16
  import { fieldNameToTitle } from '@gen3/core';
8
17
  import FacetEnumList from '../../../components/facets/FacetEnumList';
9
18
  var EnumFacetPanel = function (_a) {
10
19
  var facet = _a.facet, hooks = _a.hooks, valueLabel = _a.valueLabel, _b = _a.showTotals, showTotals = _b === void 0 ? false : _b, _c = _a.chartType, chartType = _c === void 0 ? 'bar' : _c;
11
20
  var field = facet.field, label = facet.label;
21
+ var _d = useState([]), visibleData = _d[0], setVisibleData = _d[1];
22
+ var updateVisibleItems = useCallback(function (data) {
23
+ setVisibleData(data.reduce(function (acc, elm) {
24
+ acc.push({ key: String(elm[0]), count: elm[1] });
25
+ return acc;
26
+ }, []));
27
+ }, []);
12
28
  var facetName = useMemo(function () { return label !== null && label !== void 0 ? label : fieldNameToTitle(field); }, [label, field]);
13
- var data = hooks.useGetFacetData(field).data;
29
+ //const { data } = hooks.useGetFacetData(field);
14
30
  var chart = createChart(chartType, {
15
- data: EnumFacetToHistogramArray(data),
31
+ data: visibleData,
16
32
  total: 1,
17
33
  valueType: 'count',
18
34
  });
19
- return (_jsxs("div", { className: "flex flex-col bg-base-max relative border-base border-1 rounded-b-md transition", children: [_jsxs("div", { className: "flex justify-between px-4 py-2 bg-base-lightest border-b-1 border-base", children: [_jsx(Text, { size: "sm", fw: 600, children: facetName }), showTotals ? _jsx(Text, { children: "Todo" }) : null] }), _jsx("div", { className: "px-4 pb-4 pt-8", children: chart }), _jsx(FacetPanelDataHeader, { label: facetName, valueLabel: valueLabel }), _jsx("div", { className: "p-4 pt-2 pb-2", children: _jsx(FacetEnumList, { field: field, valueLabel: valueLabel, hooks: hooks, showSorting: false }) })] }));
35
+ return (_jsxs("div", { className: "flex flex-col bg-base-max relative border-base border-1 rounded-b-md transition", children: [_jsxs("div", { className: "flex justify-between px-4 py-2 bg-base-lightest border-b-1 border-base", children: [_jsx(Text, { size: "sm", fw: 600, children: facetName }), showTotals ? _jsx(Text, { children: "Todo" }) : null] }), _jsx("div", { className: "px-4 pb-4 pt-8", children: chart }), _jsx("div", { className: "p-4 pt-2 pb-2", children: _jsx(FacetEnumList, { field: field, valueLabel: valueLabel, hooks: __assign(__assign({}, hooks), { updateVisibleValues: updateVisibleItems }), showSorting: true }) })] }));
20
36
  };
21
37
  export default EnumFacetPanel;
22
38
  //# sourceMappingURL=EnumFacetPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnumFacetPanel.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/FilterPanels/EnumFacetPanel.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAKrC,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAmB,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,aAAa,MAAM,0CAA0C,CAAC;AAcrE,IAAM,cAAc,GAAkC,UAAC,EAMtD;QALC,KAAK,WAAA,EACL,KAAK,WAAA,EACL,UAAU,gBAAA,EACV,kBAAkB,EAAlB,UAAU,mBAAG,KAAK,KAAA,EAClB,iBAAiB,EAAjB,SAAS,mBAAG,KAAK,KAAA;IAET,IAAA,KAAK,GAAY,KAAK,MAAjB,EAAE,KAAK,GAAK,KAAK,MAAV,CAAW;IAC/B,IAAM,SAAS,GAAG,OAAO,CACvB,cAAM,OAAA,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,gBAAgB,CAAC,KAAK,CAAC,EAAhC,CAAgC,EACtC,CAAC,KAAK,EAAE,KAAK,CAAC,CACf,CAAC;IACM,IAAA,IAAI,GAAK,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,KAAjC,CAAkC;IAE9C,IAAM,KAAK,GAAG,WAAW,CAAC,SAAS,EAAE;QACnC,IAAI,EAAE,yBAAyB,CAAC,IAAI,CAAC;QACrC,KAAK,EAAE,CAAC;QACR,SAAS,EAAE,OAAO;KACnB,CAAC,CAAC;IAEH,OAAO,CACL,eAAK,SAAS,EAAC,iFAAiF,aAC9F,eAAK,SAAS,EAAC,wEAAwE,aACrF,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,EAAE,EAAE,GAAG,YACpB,SAAS,GACL,EACN,UAAU,CAAC,CAAC,CAAC,KAAC,IAAI,uBAAY,CAAC,CAAC,CAAC,IAAI,IAClC,EACN,cAAK,SAAS,EAAC,gBAAgB,YAAE,KAAK,GAAO,EAC7C,KAAC,oBAAoB,IAAC,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,GAAI,EAClE,cAAK,SAAS,EAAC,eAAe,YAC5B,KAAC,aAAa,IACZ,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,KAAK,GAClB,GACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"EnumFacetPanel.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/FilterPanels/EnumFacetPanel.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAMrC,OAA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AAS,EAAC,wEAAwE,aACrF,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,EAAE,EAAE,GAAG,YACpB,SAAS,GACL,EACN,UAAU,CAAC,CAAC,CAAC,KAAC,IAAI,uBAAY,CAAC,CAAC,CAAC,IAAI,IAClC,EACN,cAAK,SAAS,EAAC,gBAAgB,YAAE,KAAK,GAAO,EAC7C,cAAK,SAAS,EAAC,eAAe,YAC5B,KAAC,aAAa,IACZ,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,KAAK,wBAAO,KAAK,KAAE,mBAAmB,EAAE,kBAAkB,KAC1D,WAAW,EAAE,IAAI,GACjB,GACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FacetPanelDataHeader.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAY,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOtD,IAAM,oBAAoB,GAAwC,UAAC,EAGlE;QAFC,KAAK,WAAA,EACL,UAAU,gBAAA;IAEV,OAAO,CACL,MAAC,KAAK,IAAC,OAAO,EAAC,eAAe,EAAC,SAAS,EAAC,+BAA+B,aACtE,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,EAAE,EAAE,GAAG,YACpB,KAAK,GACD,GACH,EACN,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,EAAE,EAAE,GAAG,YACpB,UAAU,GACN,IACD,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"FacetPanelDataHeader.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAO5C,IAAM,oBAAoB,GAAwC,UAAC,EAGlE;QAFC,KAAK,WAAA,EACL,UAAU,gBAAA;IAEV,OAAO,CACL,MAAC,KAAK,IAAC,OAAO,EAAC,eAAe,EAAC,SAAS,EAAC,+BAA+B,aACtE,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,EAAE,EAAE,GAAG,YACpB,KAAK,GACD,GACH,EACN,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,EAAC,EAAE,EAAE,GAAG,YACpB,UAAU,GACN,IACD,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { CohortDiscoveryGroup } from './types';
2
- declare const IndexPanel: ({ dataConfig, tabs, tabTitle }: CohortDiscoveryGroup) => import("react/jsx-runtime").JSX.Element;
2
+ declare const IndexPanel: ({ dataConfig, tabs, tabTitle, emptySelection, }: CohortDiscoveryGroup) => import("react/jsx-runtime").JSX.Element;
3
3
  export default IndexPanel;
4
4
  //# sourceMappingURL=IndexPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IndexPanel.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/IndexPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAW/C,QAAA,MAAM,UAAU,GAAI,gCAAgC,oBAAoB,4CAgHvE,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"IndexPanel.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/IndexPanel.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAmB/C,QAAA,MAAM,UAAU,GAAI,iDAKjB,oBAAoB,4CAoJtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -9,58 +9,66 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
- if (ar || !(i in from)) {
15
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
- ar[i] = from[i];
17
- }
18
- }
19
- return to.concat(ar || Array.prototype.slice.call(from));
20
- };
21
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
13
  import { useMemo, useState } from 'react';
23
14
  import { useDeepCompareCallback, useDeepCompareEffect } from 'use-deep-compare';
24
- import { Flex, Stack } from '@mantine/core';
15
+ import { Flex, Stack, Center, Box, Title, Text } from '@mantine/core';
25
16
  import FacetSelectionPanel from './FacetSelectionPanel';
26
17
  import { useFilterExpandedState, useToggleExpandFilter } from './hooks';
27
- import { selectIndexFilters, useCoreSelector, useGetAggsQuery, } from '@gen3/core';
18
+ import { selectIndexFilters } from './CohortSelectors';
28
19
  import { getAllFieldsFromFilterConfigs, classifyFacets, } from '../../components/facets';
29
20
  import { ErrorCard } from '../../components/MessageCards';
30
21
  import ChartsAndFacetsPanel from './ChartsAndFacetsPanel';
31
- import ActionButtonGroup from './ActionButtonGroup';
32
- import CohortManager from '../CohortBuilder/CohortManager';
22
+ import ActionButtonGroup from './ActionButtons/ActionButtonGroup';
23
+ import CohortManager from '../CohortDiscovery/CohortManager';
24
+ import { useAppSelector, useAppDispatch } from './appApi';
25
+ import Image from 'next/image';
26
+ import { selectSelectedFacetsFromIndex, removeFacetSelection, addFacetSelection, } from './SelectedFacetsSlice';
27
+ import { useRoundedAggsQuery } from './queryApi';
33
28
  var IndexPanel = function (_a) {
34
- var dataConfig = _a.dataConfig, tabs = _a.tabs, tabTitle = _a.tabTitle;
35
- var _b = useState([]), activeFieldDefinitions = _b[0], setActiveFieldDefinitions = _b[1];
29
+ var _b;
30
+ var dataConfig = _a.dataConfig, tabs = _a.tabs, tabTitle = _a.tabTitle, emptySelection = _a.emptySelection;
31
+ var _c = useState([]), activeFieldDefinitions = _c[0], setActiveFieldDefinitions = _c[1];
32
+ var appDispatch = useAppDispatch();
36
33
  var index = dataConfig.dataType;
37
34
  var fields = useMemo(function () { return getAllFieldsFromFilterConfigs(tabs !== null && tabs !== void 0 ? tabs : []); }, [tabs]);
38
- var _c = useState({}), facetDefinitions = _c[0], setFacetDefinitions = _c[1];
39
- var _d = useState([]), categories = _d[0], setCategories = _d[1];
40
- var cohortFilters = useCoreSelector(function (state) {
35
+ var _d = useState({}), facetDefinitions = _d[0], setFacetDefinitions = _d[1];
36
+ var _e = useState([]), categories = _e[0], setCategories = _e[1];
37
+ var selectedFacets = (_b = useAppSelector(function (state) {
38
+ return selectSelectedFacetsFromIndex(state, index);
39
+ })) !== null && _b !== void 0 ? _b : [];
40
+ /**
41
+ * When selection changes, update active list of FacetDefinitions
42
+ * This will be changed to use a facet dictionary once that feature is implemented
43
+ */
44
+ useDeepCompareEffect(function () {
45
+ var selectFacetDefinitions = selectedFacets.reduce(function (acc, field) {
46
+ if (field in facetDefinitions) {
47
+ acc.push(facetDefinitions[field]);
48
+ }
49
+ return acc;
50
+ }, []);
51
+ setActiveFieldDefinitions(selectFacetDefinitions);
52
+ }, [selectedFacets, facetDefinitions]);
53
+ var cohortFilters = useAppSelector(function (state) {
41
54
  return selectIndexFilters(state, index);
42
55
  });
43
56
  var queryFields = categories.length === 0
44
57
  ? fields
45
58
  : activeFieldDefinitions.map(function (x) { return x.field; });
46
- var _e = useGetAggsQuery({
59
+ var _f = useRoundedAggsQuery({
47
60
  type: index,
48
61
  fields: queryFields,
49
62
  filters: cohortFilters,
50
- }, { skip: queryFields.length === 0 }), data = _e.data, isSuccess = _e.isSuccess, isAggsQueryError = _e.isError;
51
- var updateFields = useDeepCompareCallback(function (field) {
52
- if (activeFieldDefinitions.some(function (facetDef) { return facetDef.field === field; })) {
53
- setActiveFieldDefinitions(function (prevState) {
54
- return prevState.filter(function (f) { return f.field !== field; });
55
- });
63
+ }, { skip: queryFields.length === 0 }), data = _f.data, isSuccess = _f.isSuccess, isAggsQueryError = _f.isError;
64
+ var updateFields = useDeepCompareCallback(function (field, checked) {
65
+ if (!checked) {
66
+ appDispatch(removeFacetSelection({ index: index, field: field }));
56
67
  }
57
- else {
58
- setActiveFieldDefinitions(function (prevState) { return __spreadArray(__spreadArray([], prevState, true), [
59
- facetDefinitions[field],
60
- ], false); });
68
+ if (checked) {
69
+ appDispatch(addFacetSelection({ index: index, field: field }));
61
70
  }
62
- }, [activeFieldDefinitions, facetDefinitions]);
63
- // Set the facet definitions based on the data only the first time the data is loaded
71
+ }, [selectedFacets, index, appDispatch]);
64
72
  useDeepCompareEffect(function () {
65
73
  if (isSuccess && Object.keys(facetDefinitions).length === 0) {
66
74
  var configFacetDefs = tabs.reduce(function (acc, tab) {
@@ -86,11 +94,11 @@ var IndexPanel = function (_a) {
86
94
  if (isAggsQueryError) {
87
95
  return _jsx(ErrorCard, { message: "Unable to fetch data from server" });
88
96
  }
89
- return (_jsxs(Stack, { children: [_jsx(CohortManager, { index: index }), _jsxs(Flex, { className: "w-full h-full bg-base-light", children: [_jsx(FacetSelectionPanel, { categories: categories, selectedFields: activeFieldDefinitions.map(function (x) { return x.field; }), updateSelectedField: updateFields, hooks: {
97
+ return (_jsxs(Stack, { children: [_jsx(CohortManager, { index: index }), _jsxs(Flex, { className: "flex h-full bg-base-light pb-4 ml-4", children: [_jsx(FacetSelectionPanel, { categories: categories, selectedFields: selectedFacets, updateSelectedField: updateFields, hooks: {
90
98
  useClearFilter: function () { return function (field) { return null; }; },
91
99
  useToggleExpandFilter: useToggleExpandFilter,
92
100
  useFilterExpanded: useFilterExpandedState,
93
- } }), _jsxs(Stack, { className: "w-full", children: [_jsx(ActionButtonGroup, {}), _jsx(ChartsAndFacetsPanel, { index: index, facets: activeFieldDefinitions })] })] })] }));
101
+ } }), _jsxs(Stack, { className: "w-2/3 mr-2 min-h-[500px]", children: [_jsx(ActionButtonGroup, { index: index }), selectedFacets.length > 0 ? (_jsx(ChartsAndFacetsPanel, { index: index, facets: activeFieldDefinitions })) : (_jsx(Center, { className: "h-full mx-2 bg-base-max", children: _jsxs(Box, { className: "text-center m-4", children: [_jsx(Image, { src: "/images/apps/".concat(emptySelection.image), alt: emptySelection.imageAlt, width: 240, height: 240, className: "inline-block mb-4" }), _jsx(Title, { order: 3, children: emptySelection.title || '' }), _jsx(Text, { children: emptySelection.subHead || '' })] }) }))] })] })] }));
94
102
  };
95
103
  export default IndexPanel;
96
104
  //# sourceMappingURL=IndexPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IndexPanel.js","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/IndexPanel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAExE,OAAO,EAGL,kBAAkB,EAClB,eAAe,EACf,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,6BAA6B,EAC7B,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAE3D,IAAM,UAAU,GAAG,UAAC,EAAoD;QAAlD,UAAU,gBAAA,EAAE,IAAI,UAAA,EAAE,QAAQ,cAAA;IACxC,IAAA,KAAsD,QAAQ,C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,EACZ,MAAM,EAAE,sBAAsB,GAC9B,CACH,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,IAAC,SAAS,EAAC,yBAAyB,YACzC,MAAC,GAAG,IAAC,SAAS,EAAC,iBAAiB,aAC9B,KAAC,KAAK,IACJ,GAAG,EAAE,uBAAgB,cAAc,CAAC,KAAK,CAAE,EAC3C,GAAG,EAAE,cAAc,CAAC,QAAQ,EAC5B,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,SAAS,EAAC,mBAAmB,GAC7B,EAEF,KAAC,KAAK,IAAC,KAAK,EAAE,CAAC,YAAG,cAAc,CAAC,KAAK,IAAI,EAAE,GAAS,EACrD,KAAC,IAAI,cAAE,cAAc,CAAC,OAAO,IAAI,EAAE,GAAQ,IACvC,GACC,CACV,IACK,IACH,IACD,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { IndexResourceField } from '../types';
2
+ import { IndexedFilterSet, useLazyGetAggsNoFilterSelfQuery } from '@gen3/core';
3
+ export declare class QueryAllIndexedError extends Error {
4
+ constructor(message: string);
5
+ }
6
+ type LazyQueryHookResult = ReturnType<typeof useLazyGetAggsNoFilterSelfQuery>;
7
+ type TriggerFunctionType = LazyQueryHookResult[0];
8
+ /**
9
+ * Queries all resources based on the provided filters and resource fields, executing an aggregation query for each resource type.
10
+ *
11
+ * @async
12
+ * @function
13
+ * @param {IndexedFilterSet} filters - A set of filters indexed by resource types, used to refine the query results for each resource type.
14
+ * @param {IndexResourceField} resourceFields - A mapping of resource types to their respective field configurations, including resource paths and field details.
15
+ * @param {TriggerFunctionType} triggerAggsQuery - A function that triggers the aggregation query for a specific resource type and its associated fields.
16
+ * @param {string[]} [excludeList=['', 'no data']] - An optional list of strings to exclude from the results, with default values set to an empty string and "no data".
17
+ * @returns {Promise<string[]>} A promise that resolves to an array of resource paths for all queried and processed resources.
18
+ * @throws {QueryAllIndexedError} Throws an error if the query operation fails or an unknown error occurs during execution.
19
+ */
20
+ export declare const queryAllResources: (filters: IndexedFilterSet, resourceFields: IndexResourceField, triggerAggsQuery: TriggerFunctionType, excludeList?: string[]) => Promise<string[]>;
21
+ export {};
22
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/Requests/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAEL,gBAAgB,EAChB,+BAA+B,EAChC,MAAM,YAAY,CAAC;AAQpB,qBAAa,oBAAqB,SAAQ,KAAK;gBACjC,OAAO,EAAE,MAAM;CAI5B;AAGD,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAE9E,KAAK,mBAAmB,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,GAC5B,SAAS,gBAAgB,EACzB,gBAAgB,kBAAkB,EAClC,kBAAkB,mBAAmB,EACrC,sBAA6B,sBAoD9B,CAAC"}
@@ -0,0 +1,147 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
+ return new (P || (P = Promise))(function (resolve, reject) {
19
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
23
+ });
24
+ };
25
+ var __generator = (this && this.__generator) || function (thisArg, body) {
26
+ 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);
27
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
28
+ function verb(n) { return function (v) { return step([n, v]); }; }
29
+ function step(op) {
30
+ if (f) throw new TypeError("Generator is already executing.");
31
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
32
+ 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;
33
+ if (y = 0, t) op = [op[0] & 2, t.value];
34
+ switch (op[0]) {
35
+ case 0: case 1: t = op; break;
36
+ case 4: _.label++; return { value: op[1], done: false };
37
+ case 5: _.label++; y = op[1]; op = [0]; continue;
38
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
39
+ default:
40
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
42
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
43
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
44
+ if (t[2]) _.ops.pop();
45
+ _.trys.pop(); continue;
46
+ }
47
+ op = body.call(thisArg, _);
48
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
49
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
50
+ }
51
+ };
52
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
53
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
54
+ if (ar || !(i in from)) {
55
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
56
+ ar[i] = from[i];
57
+ }
58
+ }
59
+ return to.concat(ar || Array.prototype.slice.call(from));
60
+ };
61
+ import { Accessibility, } from '@gen3/core';
62
+ var QueryAllIndexedError = /** @class */ (function (_super) {
63
+ __extends(QueryAllIndexedError, _super);
64
+ function QueryAllIndexedError(message) {
65
+ var _this = _super.call(this, message) || this;
66
+ _this.name = 'QueryAllIndexedError';
67
+ return _this;
68
+ }
69
+ return QueryAllIndexedError;
70
+ }(Error));
71
+ export { QueryAllIndexedError };
72
+ /**
73
+ * Queries all resources based on the provided filters and resource fields, executing an aggregation query for each resource type.
74
+ *
75
+ * @async
76
+ * @function
77
+ * @param {IndexedFilterSet} filters - A set of filters indexed by resource types, used to refine the query results for each resource type.
78
+ * @param {IndexResourceField} resourceFields - A mapping of resource types to their respective field configurations, including resource paths and field details.
79
+ * @param {TriggerFunctionType} triggerAggsQuery - A function that triggers the aggregation query for a specific resource type and its associated fields.
80
+ * @param {string[]} [excludeList=['', 'no data']] - An optional list of strings to exclude from the results, with default values set to an empty string and "no data".
81
+ * @returns {Promise<string[]>} A promise that resolves to an array of resource paths for all queried and processed resources.
82
+ * @throws {QueryAllIndexedError} Throws an error if the query operation fails or an unknown error occurs during execution.
83
+ */
84
+ export var queryAllResources = function (filters_1, resourceFields_1, triggerAggsQuery_1) {
85
+ var args_1 = [];
86
+ for (var _i = 3; _i < arguments.length; _i++) {
87
+ args_1[_i - 3] = arguments[_i];
88
+ }
89
+ return __awaiter(void 0, __spreadArray([filters_1, resourceFields_1, triggerAggsQuery_1], args_1, true), void 0, function (filters, resourceFields, triggerAggsQuery, excludeList) {
90
+ var promises, resources, resultsByIndex, error_1;
91
+ if (excludeList === void 0) { excludeList = ['', 'no data']; }
92
+ return __generator(this, function (_a) {
93
+ switch (_a.label) {
94
+ case 0:
95
+ _a.trys.push([0, 2, , 3]);
96
+ promises = Object.entries(resourceFields).map(function (_a) {
97
+ var index = _a[0], fieldConfig = _a[1];
98
+ return triggerAggsQuery({
99
+ filters: filters[index],
100
+ type: index,
101
+ fields: [fieldConfig.resourceField],
102
+ accessibility: Accessibility.ALL,
103
+ })
104
+ .unwrap()
105
+ .then(function (result) { return ({ index: index, result: result }); });
106
+ });
107
+ return [4 /*yield*/, Promise.all(promises)];
108
+ case 1:
109
+ resources = _a.sent();
110
+ resultsByIndex = resources.reduce(function (acc, resource) {
111
+ var filteredResults = Object.values(resource.result)
112
+ .map(function (hist) { return hist.map(function (h) { return h.key; }); })
113
+ .flat()
114
+ .filter(function (x) {
115
+ return typeof x === 'string' && !excludeList.includes(x);
116
+ });
117
+ var uniqueResults = new Set(filteredResults);
118
+ var stringResults = Array.from(uniqueResults);
119
+ acc[resource.index] = stringResults;
120
+ return acc;
121
+ }, {});
122
+ return [2 /*return*/, Object.entries(resultsByIndex).reduce(function (acc, _a) {
123
+ var index = _a[0], results = _a[1];
124
+ var resourcePath = resourceFields[index].resourcePath;
125
+ if (resourcePath) {
126
+ acc.push.apply(acc, results.map(function (x) { return "".concat(resourcePath, "/").concat(x); }));
127
+ }
128
+ else {
129
+ acc.push.apply(acc, results.map(function (x) { return "/".concat(x); }));
130
+ }
131
+ return acc;
132
+ }, [])];
133
+ case 2:
134
+ error_1 = _a.sent();
135
+ if (error_1 instanceof Error) {
136
+ throw new QueryAllIndexedError(error_1.message);
137
+ }
138
+ else {
139
+ throw new QueryAllIndexedError('Unknown error');
140
+ }
141
+ return [3 /*break*/, 3];
142
+ case 3: return [2 /*return*/];
143
+ }
144
+ });
145
+ });
146
+ };
147
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/Requests/hooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EACL,aAAa,GAGd,MAAM,YAAY,CAAC;AAQpB;IAA0C,wCAAK;IAC7C,8BAAY,OAAe;QACzB,YAAA,MAAK,YAAC,OAAO,CAAC,SAAC;QACf,KAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;;IACrC,CAAC;IACH,2BAAC;AAAD,CAAC,AALD,CAA0C,KAAK,GAK9C;;AAOD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,IAAM,iBAAiB,GAAG;;;;;+HAC/B,OAAyB,EACzB,cAAkC,EAClC,gBAAqC,EACrC,WAA6B;;QAA7B,4BAAA,EAAA,eAAe,EAAE,EAAE,SAAS,CAAC;;;;;oBAGrB,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,GAAG,CACjD,UAAC,EAAoB;4BAAnB,KAAK,QAAA,EAAE,WAAW,QAAA;wBAClB,OAAA,gBAAgB,CAAC;4BACf,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;4BACvB,IAAI,EAAE,KAAK;4BACX,MAAM,EAAE,CAAC,WAAW,CAAC,aAAa,CAAC;4BACnC,aAAa,EAAE,aAAa,CAAC,GAAG;yBACjC,CAAC;6BACC,MAAM,EAAE;6BACR,IAAI,CAAC,UAAC,MAAM,IAAK,OAAA,CAAC,EAAE,KAAK,OAAA,EAAE,MAAM,QAAA,EAAE,CAAC,EAAnB,CAAmB,CAAC;oBAPxC,CAOwC,CAC3C,CAAC;oBAEgB,qBAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAA;;oBAAvC,SAAS,GAAG,SAA2B;oBACvC,cAAc,GAAG,SAAS,CAAC,MAAM,CAC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O,GAAG,CAAC;wBACb,CAAC,EACD,EAAE,CACH,EAAC;;;oBAEF,IAAI,OAAK,YAAY,KAAK,EAAE,CAAC;wBAC3B,MAAM,IAAI,oBAAoB,CAAC,OAAK,CAAC,OAAO,CAAC,CAAC;oBAChD,CAAC;yBAAM,CAAC;wBACN,MAAM,IAAI,oBAAoB,CAAC,eAAe,CAAC,CAAC;oBAClD,CAAC;;;;;;CAEJ,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=SavedCohortManagerSlice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SavedCohortManagerSlice.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/SavedCohortManagerSlice.ts"],"names":[],"mappings":""}