@gen3/frontend 0.10.80 → 0.10.81

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 (504) hide show
  1. package/dist/cjs/index.js +3850 -3180
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/api/auth/credentialsLogin.d.ts.map +1 -1
  4. package/dist/dts/api/auth/credentialsLogin.js +36 -11
  5. package/dist/dts/api/auth/credentialsLogin.js.map +1 -1
  6. package/dist/dts/api/auth/credentialsLogout.d.ts.map +1 -1
  7. package/dist/dts/api/auth/credentialsLogout.js.map +1 -1
  8. package/dist/dts/api/auth/errorHandler.d.ts +19 -0
  9. package/dist/dts/api/auth/errorHandler.d.ts.map +1 -0
  10. package/dist/dts/api/auth/errorHandler.js +71 -0
  11. package/dist/dts/api/auth/errorHandler.js.map +1 -0
  12. package/dist/dts/api/auth/index.d.ts +3 -0
  13. package/dist/dts/api/auth/index.d.ts.map +1 -0
  14. package/dist/dts/api/auth/index.js +3 -0
  15. package/dist/dts/api/auth/index.js.map +1 -0
  16. package/dist/dts/api/auth/sessionLogout.d.ts.map +1 -1
  17. package/dist/dts/api/auth/sessionLogout.js +1 -1
  18. package/dist/dts/api/auth/sessionLogout.js.map +1 -1
  19. package/dist/dts/api/auth/sessionToken.d.ts +1 -1
  20. package/dist/dts/api/auth/sessionToken.d.ts.map +1 -1
  21. package/dist/dts/api/auth/sessionToken.js +42 -17
  22. package/dist/dts/api/auth/sessionToken.js.map +1 -1
  23. package/dist/dts/api/auth/utils.d.ts +13 -0
  24. package/dist/dts/api/auth/utils.d.ts.map +1 -0
  25. package/dist/dts/api/auth/utils.js +70 -0
  26. package/dist/dts/api/auth/utils.js.map +1 -0
  27. package/dist/dts/components/Buttons/ActionButton.d.ts.map +1 -1
  28. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts +1 -0
  29. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts.map +1 -1
  30. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js +3 -3
  31. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js.map +1 -1
  32. package/dist/dts/components/Buttons/DropdownButtons/DropdownButton.d.ts.map +1 -1
  33. package/dist/dts/components/Buttons/index.d.ts +6 -0
  34. package/dist/dts/components/Buttons/index.d.ts.map +1 -0
  35. package/dist/dts/components/Buttons/index.js +8 -0
  36. package/dist/dts/components/Buttons/index.js.map +1 -0
  37. package/dist/dts/components/Content/ContactWithEmailContent.d.ts.map +1 -1
  38. package/dist/dts/components/Content/LandingPageContent.d.ts.map +1 -1
  39. package/dist/dts/components/Content/ResearchPageContent.d.ts.map +1 -1
  40. package/dist/dts/components/Content/ResourcePageContent.d.ts.map +1 -1
  41. package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
  42. package/dist/dts/components/Details/DefaultDetailsPanel.d.ts.map +1 -1
  43. package/dist/dts/components/Details/DetailsDrawer.d.ts.map +1 -1
  44. package/dist/dts/components/Details/DetailsModal.d.ts.map +1 -1
  45. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts.map +1 -1
  46. package/dist/dts/components/Layout/CardGrid.d.ts.map +1 -1
  47. package/dist/dts/components/Layout/TexturedSidePanel.d.ts.map +1 -1
  48. package/dist/dts/components/Login/CredentialsLogin.d.ts.map +1 -1
  49. package/dist/dts/components/Login/CredentialsLogin.js +59 -55
  50. package/dist/dts/components/Login/CredentialsLogin.js.map +1 -1
  51. package/dist/dts/components/Login/LoginAccountButton.d.ts.map +1 -1
  52. package/dist/dts/components/Login/LoginButton.d.ts.map +1 -1
  53. package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
  54. package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
  55. package/dist/dts/components/MessagePanel.d.ts.map +1 -1
  56. package/dist/dts/components/Modals/BaseModal.d.ts.map +1 -1
  57. package/dist/dts/components/Modals/CreateCredentialsAPIKeyModal.d.ts.map +1 -1
  58. package/dist/dts/components/Modals/FirstTimeModal.d.ts.map +1 -1
  59. package/dist/dts/components/Modals/Gen3ModalsProvider.d.ts.map +1 -1
  60. package/dist/dts/components/Modals/GeneralErrorModal.d.ts.map +1 -1
  61. package/dist/dts/components/Modals/NoAccessModal.d.ts.map +1 -1
  62. package/dist/dts/components/Modals/SessionExpiredModal.d.ts.map +1 -1
  63. package/dist/dts/components/OverflowTooltippedLabel.d.ts.map +1 -1
  64. package/dist/dts/components/Profile/ProfileProvider.d.ts.map +1 -1
  65. package/dist/dts/components/Profile/ResourcesFilters.d.ts.map +1 -1
  66. package/dist/dts/components/Profile/ResourcesProvider.d.ts.map +1 -1
  67. package/dist/dts/components/Profile/ResourcesTable.d.ts.map +1 -1
  68. package/dist/dts/components/Profile/utils.d.ts.map +1 -1
  69. package/dist/dts/components/Protected/ProtectedContent.d.ts.map +1 -1
  70. package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
  71. package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
  72. package/dist/dts/components/Providers/ResourceMonitor.d.ts +1 -1
  73. package/dist/dts/components/Providers/ResourceMonitor.d.ts.map +1 -1
  74. package/dist/dts/components/Providers/ResourceMonitor.js +6 -4
  75. package/dist/dts/components/Providers/ResourceMonitor.js.map +1 -1
  76. package/dist/dts/components/Tables/CellRenderFactory.d.ts.map +1 -1
  77. package/dist/dts/components/Tables/utils.d.ts.map +1 -1
  78. package/dist/dts/components/Text/MultiPartText.d.ts.map +1 -1
  79. package/dist/dts/components/charts/BarChart.d.ts.map +1 -1
  80. package/dist/dts/components/charts/Charts.d.ts.map +1 -1
  81. package/dist/dts/components/charts/Charts.js +4 -2
  82. package/dist/dts/components/charts/Charts.js.map +1 -1
  83. package/dist/dts/components/charts/EnumFacetChart.d.ts.map +1 -1
  84. package/dist/dts/components/charts/PieChart.d.ts.map +1 -1
  85. package/dist/dts/components/charts/createChart.d.ts.map +1 -1
  86. package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
  87. package/dist/dts/components/charts/echarts/DonutChart.d.ts.map +1 -1
  88. package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts.map +1 -1
  89. package/dist/dts/components/charts/echarts/PieChart.d.ts.map +1 -1
  90. package/dist/dts/components/charts/echarts/ReactECharts.d.ts.map +1 -1
  91. package/dist/dts/components/charts/echarts/ReactECharts.js +4 -2
  92. package/dist/dts/components/charts/echarts/ReactECharts.js.map +1 -1
  93. package/dist/dts/components/charts/echarts/VerticalBarChart.d.ts.map +1 -1
  94. package/dist/dts/components/charts/utils.d.ts.map +1 -1
  95. package/dist/dts/components/counts/CountsValue.d.ts.map +1 -1
  96. package/dist/dts/components/facets/EnumFacet.d.ts +1 -1
  97. package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
  98. package/dist/dts/components/facets/EnumFacet.js +15 -7
  99. package/dist/dts/components/facets/EnumFacet.js.map +1 -1
  100. package/dist/dts/components/facets/ExactValueFacet.d.ts +1 -0
  101. package/dist/dts/components/facets/ExactValueFacet.d.ts.map +1 -1
  102. package/dist/dts/components/facets/ExactValueFacet.js +20 -11
  103. package/dist/dts/components/facets/ExactValueFacet.js.map +1 -1
  104. package/dist/dts/components/facets/FacetControlsHeader.d.ts +7 -2
  105. package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
  106. package/dist/dts/components/facets/FacetControlsHeader.js +15 -4
  107. package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
  108. package/dist/dts/components/facets/FacetEnumList.d.ts +3 -0
  109. package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
  110. package/dist/dts/components/facets/FacetEnumList.js +36 -17
  111. package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
  112. package/dist/dts/components/facets/MultiSelectValueFacet.d.ts +1 -0
  113. package/dist/dts/components/facets/MultiSelectValueFacet.d.ts.map +1 -1
  114. package/dist/dts/components/facets/MultiSelectValueFacet.js +17 -10
  115. package/dist/dts/components/facets/MultiSelectValueFacet.js.map +1 -1
  116. package/dist/dts/components/facets/RangeFacet.d.ts +1 -1
  117. package/dist/dts/components/facets/RangeFacet.d.ts.map +1 -1
  118. package/dist/dts/components/facets/RangeFacet.js +12 -15
  119. package/dist/dts/components/facets/RangeFacet.js.map +1 -1
  120. package/dist/dts/components/facets/components.js +1 -1
  121. package/dist/dts/components/facets/components.js.map +1 -1
  122. package/dist/dts/components/facets/createFacetCard.d.ts.map +1 -1
  123. package/dist/dts/components/facets/createFacetCard.js +4 -4
  124. package/dist/dts/components/facets/createFacetCard.js.map +1 -1
  125. package/dist/dts/components/facets/hooks.d.ts +1 -0
  126. package/dist/dts/components/facets/hooks.d.ts.map +1 -1
  127. package/dist/dts/components/facets/hooks.js +13 -2
  128. package/dist/dts/components/facets/hooks.js.map +1 -1
  129. package/dist/dts/components/facets/types.d.ts +12 -2
  130. package/dist/dts/components/facets/types.d.ts.map +1 -1
  131. package/dist/dts/components/facets/types.js.map +1 -1
  132. package/dist/dts/components/facets/utils.d.ts +55 -4
  133. package/dist/dts/components/facets/utils.d.ts.map +1 -1
  134. package/dist/dts/components/facets/utils.js +142 -21
  135. package/dist/dts/components/facets/utils.js.map +1 -1
  136. package/dist/dts/features/Analysis/AnalysisCenter.d.ts.map +1 -1
  137. package/dist/dts/features/Analysis/TextDescription.d.ts.map +1 -1
  138. package/dist/dts/features/Authz/Gen3Authz.d.ts.map +1 -1
  139. package/dist/dts/features/Authz/Policies/PoliciesTable.d.ts.map +1 -1
  140. package/dist/dts/features/Authz/Provider.d.ts.map +1 -1
  141. package/dist/dts/features/Authz/Roles/PermissionnDetailsRow.d.ts.map +1 -1
  142. package/dist/dts/features/Authz/Users/Cards/UserDetails.d.ts.map +1 -1
  143. package/dist/dts/features/Authz/Users/Inputs.d.ts.map +1 -1
  144. package/dist/dts/features/Authz/Users/NewUserPanel.d.ts.map +1 -1
  145. package/dist/dts/features/Authz/Users/UserDetailsPanel.d.ts.map +1 -1
  146. package/dist/dts/features/Authz/Users/UserTable.d.ts.map +1 -1
  147. package/dist/dts/features/Authz/utils.d.ts.map +1 -1
  148. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +2 -2
  149. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
  150. package/dist/dts/features/CohortBuilder/CohortBuilder.js +26 -8
  151. package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
  152. package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +1 -1
  153. package/dist/dts/features/CohortBuilder/CohortManager.js +2 -11
  154. package/dist/dts/features/CohortBuilder/CohortManager.js.map +1 -1
  155. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  156. package/dist/dts/features/CohortBuilder/CohortPanel.js +42 -37
  157. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  158. package/dist/dts/features/CohortBuilder/DownloadsPanel.d.ts.map +1 -1
  159. package/dist/dts/features/CohortBuilder/ExplorerTable/CellRenderers.d.ts.map +1 -1
  160. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
  161. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/RowTableDetailsPanel.d.ts.map +1 -1
  162. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
  163. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +4 -4
  164. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
  165. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTableCellRenderers.d.ts.map +1 -1
  166. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts.map +1 -1
  167. package/dist/dts/features/CohortBuilder/FiltersPanel.d.ts.map +1 -1
  168. package/dist/dts/features/CohortBuilder/FiltersPanel.js +8 -2
  169. package/dist/dts/features/CohortBuilder/FiltersPanel.js.map +1 -1
  170. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +1 -1
  171. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -1
  172. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +34 -7
  173. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -1
  174. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -1
  175. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +27 -7
  176. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -1
  177. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -1
  178. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +6 -0
  179. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +1 -0
  180. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +106 -0
  181. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +1 -0
  182. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +16 -0
  183. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +1 -0
  184. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +43 -0
  185. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +1 -0
  186. package/dist/dts/features/CohortBuilder/{QueryExpressionSection.d.ts → QueryExpression/QueryExpressionSection.d.ts} +1 -4
  187. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.d.ts.map +1 -0
  188. package/dist/dts/features/CohortBuilder/{QueryExpressionSection.js → QueryExpression/QueryExpressionSection.js} +30 -29
  189. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -0
  190. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map +1 -0
  191. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map +1 -0
  192. package/dist/dts/features/CohortBuilder/{QueryRepresentation.d.ts → QueryExpression/QueryRepresentation.d.ts} +1 -1
  193. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +1 -0
  194. package/dist/dts/features/CohortBuilder/{QueryRepresentation.js → QueryExpression/QueryRepresentation.js} +22 -30
  195. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +1 -0
  196. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.d.ts.map +1 -0
  197. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.js.map +1 -0
  198. package/dist/dts/features/CohortBuilder/QueryExpression/index.d.ts +3 -0
  199. package/dist/dts/features/CohortBuilder/QueryExpression/index.d.ts.map +1 -0
  200. package/dist/dts/features/CohortBuilder/QueryExpression/index.js +4 -0
  201. package/dist/dts/features/CohortBuilder/QueryExpression/index.js.map +1 -0
  202. package/dist/dts/features/CohortBuilder/downloads/CohortActionButton.d.ts.map +1 -1
  203. package/dist/dts/features/CohortBuilder/downloads/CohortDropdownActionButton.d.ts.map +1 -1
  204. package/dist/dts/features/CohortBuilder/downloads/actions/downloadManifest.d.ts.map +1 -1
  205. package/dist/dts/features/CohortBuilder/downloads/actions/downloadToFile.d.ts.map +1 -1
  206. package/dist/dts/features/CohortBuilder/downloads/actions/registeredActions.d.ts.map +1 -1
  207. package/dist/dts/features/CohortBuilder/downloads/actions/utils.d.ts.map +1 -1
  208. package/dist/dts/features/CohortBuilder/downloads/downloadActionHook.d.ts.map +1 -1
  209. package/dist/dts/features/CohortBuilder/hooks.d.ts +6 -1
  210. package/dist/dts/features/CohortBuilder/hooks.d.ts.map +1 -1
  211. package/dist/dts/features/CohortBuilder/hooks.js +28 -1
  212. package/dist/dts/features/CohortBuilder/hooks.js.map +1 -1
  213. package/dist/dts/features/CohortBuilder/index.d.ts +3 -3
  214. package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
  215. package/dist/dts/features/CohortBuilder/index.js +1 -1
  216. package/dist/dts/features/CohortBuilder/index.js.map +1 -1
  217. package/dist/dts/features/CohortBuilder/style.d.ts.map +1 -1
  218. package/dist/dts/features/CohortBuilder/types.d.ts +24 -12
  219. package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
  220. package/dist/dts/features/CohortBuilder/types.js.map +1 -1
  221. package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
  222. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -1
  223. package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -1
  224. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
  225. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -1
  226. package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
  227. package/dist/dts/features/CohortDiscovery/utils.d.ts.map +1 -1
  228. package/dist/dts/features/CohortSimilarity/CohortSimilarityApp.d.ts.map +1 -1
  229. package/dist/dts/features/CohortSimilarity/charts/ChartCard.d.ts.map +1 -1
  230. package/dist/dts/features/CohortSimilarity/charts/utils.d.ts.map +1 -1
  231. package/dist/dts/features/CohortSimilarity/statistics/data/data.d.ts.map +1 -1
  232. package/dist/dts/features/CohortSimilarity/statistics/data/utils.d.ts.map +1 -1
  233. package/dist/dts/features/CohortSimilarity/statistics/queries.d.ts.map +1 -1
  234. package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts.map +1 -1
  235. package/dist/dts/features/Crosswalk/CrosswalkTable.d.ts.map +1 -1
  236. package/dist/dts/features/DataLibrary/DataLibrary.d.ts.map +1 -1
  237. package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
  238. package/dist/dts/features/DataLibrary/QueryDetails.d.ts.map +1 -1
  239. package/dist/dts/features/DataLibrary/QueryDetails.js +2 -2
  240. package/dist/dts/features/DataLibrary/QueryDetails.js.map +1 -1
  241. package/dist/dts/features/DataLibrary/modals/SelectedItemsModal.d.ts.map +1 -1
  242. package/dist/dts/features/DataLibrary/modals/SelectedItemsModal.js +0 -2
  243. package/dist/dts/features/DataLibrary/modals/SelectedItemsModal.js.map +1 -1
  244. package/dist/dts/features/DataLibrary/selection/SelectionContext.d.ts.map +1 -1
  245. package/dist/dts/features/DataLibrary/selection/registeredActions.d.ts.map +1 -1
  246. package/dist/dts/features/DataLibrary/selection/selectedItemActions.d.ts.map +1 -1
  247. package/dist/dts/features/DataLibrary/selection/selection.d.ts.map +1 -1
  248. package/dist/dts/features/DataLibrary/selection/utils.d.ts.map +1 -1
  249. package/dist/dts/features/DataLibrary/tables/AdditionalDataTable.d.ts.map +1 -1
  250. package/dist/dts/features/DataLibrary/tables/DatasetContentsTable.d.ts.map +1 -1
  251. package/dist/dts/features/DataLibrary/tables/FilesTable.d.ts.map +1 -1
  252. package/dist/dts/features/DataLibrary/tables/QueriesTable.d.ts.map +1 -1
  253. package/dist/dts/features/DataLibrary/tables/tableSettings.d.ts.map +1 -1
  254. package/dist/dts/features/DataLibrary/utils.d.ts.map +1 -1
  255. package/dist/dts/features/Dictionary/CategoryAccordionLabel.d.ts.map +1 -1
  256. package/dist/dts/features/Dictionary/CategoryPanel.d.ts.map +1 -1
  257. package/dist/dts/features/Dictionary/Cell.d.ts.map +1 -1
  258. package/dist/dts/features/Dictionary/DictionaryProvider.d.ts.map +1 -1
  259. package/dist/dts/features/Dictionary/DictionaryWithContext.d.ts.map +1 -1
  260. package/dist/dts/features/Dictionary/ResultCard.d.ts.map +1 -1
  261. package/dist/dts/features/Dictionary/ResultList.d.ts.map +1 -1
  262. package/dist/dts/features/Dictionary/TableSearch.d.ts.map +1 -1
  263. package/dist/dts/features/Dictionary/ViewSelector.d.ts.map +1 -1
  264. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts.map +1 -1
  265. package/dist/dts/features/Dictionary/utils.d.ts.map +1 -1
  266. package/dist/dts/features/Discovery/ActionBar/ActionBar.d.ts.map +1 -1
  267. package/dist/dts/features/Discovery/ActionBar/DownloadAsZipButton.d.ts.map +1 -1
  268. package/dist/dts/features/Discovery/ActionBar/DownloadManifestButton.d.ts.map +1 -1
  269. package/dist/dts/features/Discovery/Charts/ChartsPanel.d.ts.map +1 -1
  270. package/dist/dts/features/Discovery/DataLoaders/AggMDSServer/DataLoader.d.ts.map +1 -1
  271. package/dist/dts/features/Discovery/DataLoaders/IndexedMetadata/DataLoader.d.ts.map +1 -1
  272. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.d.ts.map +1 -1
  273. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByAdvSearch.d.ts.map +1 -1
  274. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.d.ts.map +1 -1
  275. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/searchFilterSort.d.ts.map +1 -1
  276. package/dist/dts/features/Discovery/DataLoaders/registeredDataLoaders.d.ts.map +1 -1
  277. package/dist/dts/features/Discovery/DataLoaders/utils.d.ts.map +1 -1
  278. package/dist/dts/features/Discovery/Discovery.d.ts.map +1 -1
  279. package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
  280. package/dist/dts/features/Discovery/DiscoveryProvider.d.ts.map +1 -1
  281. package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
  282. package/dist/dts/features/Discovery/Search/AdvancedSearch.d.ts.map +1 -1
  283. package/dist/dts/features/Discovery/Search/AdvancedSearchPanel.d.ts.map +1 -1
  284. package/dist/dts/features/Discovery/Search/AiSearch.d.ts.map +1 -1
  285. package/dist/dts/features/Discovery/Search/SearchFilters.d.ts.map +1 -1
  286. package/dist/dts/features/Discovery/Search/SearchInput.d.ts.map +1 -1
  287. package/dist/dts/features/Discovery/Search/SearchInputWithSuggestions.d.ts.map +1 -1
  288. package/dist/dts/features/Discovery/Search/utils.d.ts.map +1 -1
  289. package/dist/dts/features/Discovery/Statistics/SummaryStatisticPanel.d.ts.map +1 -1
  290. package/dist/dts/features/Discovery/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -1
  291. package/dist/dts/features/Discovery/StudyDetails/RendererFactory.d.ts.map +1 -1
  292. package/dist/dts/features/Discovery/StudyDetails/SinglePageStudyDetailsPanel.d.ts.map +1 -1
  293. package/dist/dts/features/Discovery/StudyDetails/StudyDetailsPanel.d.ts.map +1 -1
  294. package/dist/dts/features/Discovery/StudyDetails/StudyGroup.d.ts.map +1 -1
  295. package/dist/dts/features/Discovery/StudyDetails/StudyGroupPanel.d.ts.map +1 -1
  296. package/dist/dts/features/Discovery/StudyDetails/StudyItems.d.ts.map +1 -1
  297. package/dist/dts/features/Discovery/StudyPage/DownloadLinksPanel.d.ts.map +1 -1
  298. package/dist/dts/features/Discovery/StudyPage/StudyPage.d.ts.map +1 -1
  299. package/dist/dts/features/Discovery/StudyPage/StudyPageGroup.d.ts.map +1 -1
  300. package/dist/dts/features/Discovery/TableRenderers/CellRendererFactory.d.ts.map +1 -1
  301. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
  302. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
  303. package/dist/dts/features/Discovery/types.d.ts.map +1 -1
  304. package/dist/dts/features/Discovery/utils/processDataAccess.d.ts.map +1 -1
  305. package/dist/dts/features/Discovery/utils/processDownloadData.d.ts.map +1 -1
  306. package/dist/dts/features/Discovery/utils.d.ts.map +1 -1
  307. package/dist/dts/features/Navigation/ActionMenu.d.ts.map +1 -1
  308. package/dist/dts/features/Navigation/Footer/Footer.d.ts.map +1 -1
  309. package/dist/dts/features/Navigation/Gen3Link.d.ts.map +1 -1
  310. package/dist/dts/features/Navigation/Header.d.ts.map +1 -1
  311. package/dist/dts/features/Navigation/HorizontalClean/HorizontalNavigationBar.d.ts.map +1 -1
  312. package/dist/dts/features/Navigation/HoverLink.d.ts.map +1 -1
  313. package/dist/dts/features/Navigation/NavPageLayout.d.ts.map +1 -1
  314. package/dist/dts/features/Navigation/NavigationBar.d.ts.map +1 -1
  315. package/dist/dts/features/Navigation/NavigationBarButton.d.ts.map +1 -1
  316. package/dist/dts/features/Navigation/NavigationButton.d.ts.map +1 -1
  317. package/dist/dts/features/Navigation/NavigationLogo.d.ts.map +1 -1
  318. package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
  319. package/dist/dts/features/Navigation/Vertical/LeftSidePanel.d.ts.map +1 -1
  320. package/dist/dts/features/Navigation/Vertical/VerticalTopBar.d.ts.map +1 -1
  321. package/dist/dts/features/Navigation/utils.d.ts.map +1 -1
  322. package/dist/dts/features/Profile/Profile.d.ts.map +1 -1
  323. package/dist/dts/features/Query/GqlQueryEditor.d.ts.map +1 -1
  324. package/dist/dts/features/Query/QueryPanel.d.ts.map +1 -1
  325. package/dist/dts/features/Submission/SubmissionPanel.d.ts.map +1 -1
  326. package/dist/dts/features/Submission/Tables/ProjectTable.d.ts.map +1 -1
  327. package/dist/dts/features/Submission/utils.d.ts.map +1 -1
  328. package/dist/dts/features/Workspace/NotebookCard.d.ts.map +1 -1
  329. package/dist/dts/features/Workspace/Workspace.d.ts.map +1 -1
  330. package/dist/dts/features/Workspace/WorkspaceProvider.d.ts.map +1 -1
  331. package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts.map +1 -1
  332. package/dist/dts/features/Workspace/admin/WorkspaceEditorContext.d.ts.map +1 -1
  333. package/dist/dts/features/Workspace/calculateLaunchSteps.d.ts.map +1 -1
  334. package/dist/dts/features/Workspace/utils.d.ts.map +1 -1
  335. package/dist/dts/features/authorization/utils.d.ts.map +1 -1
  336. package/dist/dts/index.d.ts +4 -3
  337. package/dist/dts/index.d.ts.map +1 -1
  338. package/dist/dts/index.js +8 -2
  339. package/dist/dts/index.js.map +1 -1
  340. package/dist/dts/lib/session/hooks.d.ts +21 -13
  341. package/dist/dts/lib/session/hooks.d.ts.map +1 -1
  342. package/dist/dts/lib/session/hooks.js +41 -8
  343. package/dist/dts/lib/session/hooks.js.map +1 -1
  344. package/dist/dts/lib/session/session.d.ts +1 -1
  345. package/dist/dts/lib/session/session.d.ts.map +1 -1
  346. package/dist/dts/lib/session/session.js +15 -7
  347. package/dist/dts/lib/session/session.js.map +1 -1
  348. package/dist/dts/lib/session/types.d.ts +4 -1
  349. package/dist/dts/lib/session/types.d.ts.map +1 -1
  350. package/dist/dts/lib/session/utils.d.ts.map +1 -1
  351. package/dist/dts/pages/AiSearch/AiSearch.d.ts.map +1 -1
  352. package/dist/dts/pages/Analysis/Analysis.d.ts.map +1 -1
  353. package/dist/dts/pages/Crosswalk/Crosswalk.d.ts.map +1 -1
  354. package/dist/dts/pages/DataDictionary/DataDictionary.d.ts.map +1 -1
  355. package/dist/dts/pages/DataLibrary/DataLibrary.d.ts.map +1 -1
  356. package/dist/dts/pages/Discovery/Discovery.d.ts.map +1 -1
  357. package/dist/dts/pages/Explorer/Explorer.d.ts +1 -1
  358. package/dist/dts/pages/Explorer/Explorer.d.ts.map +1 -1
  359. package/dist/dts/pages/Explorer/Explorer.js +2 -2
  360. package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
  361. package/dist/dts/pages/Explorer/data.d.ts +3 -1
  362. package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
  363. package/dist/dts/pages/Explorer/data.js +125 -17
  364. package/dist/dts/pages/Explorer/data.js.map +1 -1
  365. package/dist/dts/pages/Explorer/index.d.ts +1 -1
  366. package/dist/dts/pages/Explorer/index.d.ts.map +1 -1
  367. package/dist/dts/pages/Explorer/index.js +1 -1
  368. package/dist/dts/pages/Explorer/index.js.map +1 -1
  369. package/dist/dts/pages/Explorer/types.d.ts +2 -2
  370. package/dist/dts/pages/Explorer/types.d.ts.map +1 -1
  371. package/dist/dts/pages/Landing/Landing.d.ts.map +1 -1
  372. package/dist/dts/pages/Landing/about-us.d.ts.map +1 -1
  373. package/dist/dts/pages/Landing/contact.d.ts.map +1 -1
  374. package/dist/dts/pages/Landing/resource.d.ts.map +1 -1
  375. package/dist/dts/pages/Login/Login.d.ts.map +1 -1
  376. package/dist/dts/pages/NotebookLite/NotebookLite.d.ts.map +1 -1
  377. package/dist/dts/pages/Profile/Profile.d.ts.map +1 -1
  378. package/dist/dts/pages/Query/Query.d.ts.map +1 -1
  379. package/dist/dts/pages/Submission/Submission.d.ts.map +1 -1
  380. package/dist/dts/pages/Theme/Colors.d.ts.map +1 -1
  381. package/dist/dts/pages/Workspace/Workspace.d.ts.map +1 -1
  382. package/dist/dts/pages/Workspace/WorkspaceNoAccess.d.ts.map +1 -1
  383. package/dist/dts/pages/admin/Workspace/WorkspaceNotebooks.d.ts.map +1 -1
  384. package/dist/dts/pages/admin/Workspace/data.d.ts.map +1 -1
  385. package/dist/dts/pages/admin/analysis/Analysis.d.ts.map +1 -1
  386. package/dist/dts/pages/admin/authz/Authz.d.ts.map +1 -1
  387. package/dist/dts/pages/external/footer.d.ts.map +1 -1
  388. package/dist/dts/pages/index.d.ts.map +1 -1
  389. package/dist/dts/types/common.d.ts +4 -0
  390. package/dist/dts/types/common.d.ts.map +1 -1
  391. package/dist/dts/utils/authMapping.d.ts.map +1 -1
  392. package/dist/dts/utils/colors.d.ts.map +1 -1
  393. package/dist/dts/utils/download.d.ts.map +1 -1
  394. package/dist/dts/utils/isType.d.ts.map +1 -1
  395. package/dist/dts/utils/labels.d.ts.map +1 -1
  396. package/dist/dts/utils/mergeDefaultTailwindClassnames.d.ts.map +1 -1
  397. package/dist/dts/utils/strings.d.ts.map +1 -1
  398. package/dist/dts/utils/tailwindConfig.d.ts.map +1 -1
  399. package/dist/dts/utils/time.d.ts.map +1 -1
  400. package/dist/dts/utils/useTraceUpdate.d.ts.map +1 -1
  401. package/dist/dts/utils/values.d.ts.map +1 -1
  402. package/dist/esm/index.js +3852 -3189
  403. package/dist/esm/index.js.map +1 -1
  404. package/dist/index.d.ts +80 -18
  405. package/dist/tsconfig.tsbuildinfo +1 -1
  406. package/package.json +5 -6
  407. package/LICENSE +0 -201
  408. package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +0 -1
  409. package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +0 -1
  410. package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.d.ts.map +0 -1
  411. package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.js.map +0 -1
  412. package/dist/dts/features/CohortBuilder/QueryRepresentation.d.ts.map +0 -1
  413. package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +0 -1
  414. package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.d.ts.map +0 -1
  415. package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.js.map +0 -1
  416. package/dist/dts/features/CohortDistance/CohortDistanceApp.d.ts +0 -4
  417. package/dist/dts/features/CohortDistance/CohortDistanceApp.d.ts.map +0 -1
  418. package/dist/dts/features/CohortDistance/CohortDistanceApp.js +0 -54
  419. package/dist/dts/features/CohortDistance/CohortDistanceApp.js.map +0 -1
  420. package/dist/dts/features/CohortDistance/ComnparisonCard.d.ts +0 -15
  421. package/dist/dts/features/CohortDistance/ComnparisonCard.d.ts.map +0 -1
  422. package/dist/dts/features/CohortDistance/ComnparisonCard.js +0 -32
  423. package/dist/dts/features/CohortDistance/ComnparisonCard.js.map +0 -1
  424. package/dist/dts/features/CohortDistance/ComparisonCards.d.ts +0 -15
  425. package/dist/dts/features/CohortDistance/ComparisonCards.d.ts.map +0 -1
  426. package/dist/dts/features/CohortDistance/ComparisonCards.js +0 -14
  427. package/dist/dts/features/CohortDistance/ComparisonCards.js.map +0 -1
  428. package/dist/dts/features/CohortDistance/appApi.d.ts +0 -8
  429. package/dist/dts/features/CohortDistance/appApi.d.ts.map +0 -1
  430. package/dist/dts/features/CohortDistance/appApi.js +0 -4
  431. package/dist/dts/features/CohortDistance/appApi.js.map +0 -1
  432. package/dist/dts/features/CohortDistance/charts/BarComparison.d.ts +0 -5
  433. package/dist/dts/features/CohortDistance/charts/BarComparison.d.ts.map +0 -1
  434. package/dist/dts/features/CohortDistance/charts/BarComparison.js +0 -70
  435. package/dist/dts/features/CohortDistance/charts/BarComparison.js.map +0 -1
  436. package/dist/dts/features/CohortDistance/charts/ChartCard.d.ts +0 -16
  437. package/dist/dts/features/CohortDistance/charts/ChartCard.d.ts.map +0 -1
  438. package/dist/dts/features/CohortDistance/charts/ChartCard.js +0 -45
  439. package/dist/dts/features/CohortDistance/charts/ChartCard.js.map +0 -1
  440. package/dist/dts/features/CohortDistance/charts/ComparisonCharts.d.ts +0 -13
  441. package/dist/dts/features/CohortDistance/charts/ComparisonCharts.d.ts.map +0 -1
  442. package/dist/dts/features/CohortDistance/charts/ComparisonCharts.js +0 -18
  443. package/dist/dts/features/CohortDistance/charts/ComparisonCharts.js.map +0 -1
  444. package/dist/dts/features/CohortDistance/charts/RadarComparison.d.ts +0 -5
  445. package/dist/dts/features/CohortDistance/charts/RadarComparison.d.ts.map +0 -1
  446. package/dist/dts/features/CohortDistance/charts/RadarComparison.js +0 -90
  447. package/dist/dts/features/CohortDistance/charts/RadarComparison.js.map +0 -1
  448. package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.d.ts +0 -6
  449. package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.d.ts.map +0 -1
  450. package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.js +0 -24
  451. package/dist/dts/features/CohortDistance/charts/cohortDistanceChartsFactory.js.map +0 -1
  452. package/dist/dts/features/CohortDistance/charts/types.d.ts +0 -12
  453. package/dist/dts/features/CohortDistance/charts/types.d.ts.map +0 -1
  454. package/dist/dts/features/CohortDistance/charts/types.js +0 -2
  455. package/dist/dts/features/CohortDistance/charts/types.js.map +0 -1
  456. package/dist/dts/features/CohortDistance/charts/utils.d.ts +0 -2
  457. package/dist/dts/features/CohortDistance/charts/utils.d.ts.map +0 -1
  458. package/dist/dts/features/CohortDistance/charts/utils.js +0 -4
  459. package/dist/dts/features/CohortDistance/charts/utils.js.map +0 -1
  460. package/dist/dts/features/CohortDistance/cohortDistanceApi.d.ts +0 -141
  461. package/dist/dts/features/CohortDistance/cohortDistanceApi.d.ts.map +0 -1
  462. package/dist/dts/features/CohortDistance/cohortDistanceApi.js +0 -14
  463. package/dist/dts/features/CohortDistance/cohortDistanceApi.js.map +0 -1
  464. package/dist/dts/features/CohortDistance/registerApp.d.ts +0 -3
  465. package/dist/dts/features/CohortDistance/registerApp.d.ts.map +0 -1
  466. package/dist/dts/features/CohortDistance/registerApp.js +0 -19
  467. package/dist/dts/features/CohortDistance/registerApp.js.map +0 -1
  468. package/dist/dts/features/CohortDistance/statistics/StatisticsCard.d.ts +0 -9
  469. package/dist/dts/features/CohortDistance/statistics/StatisticsCard.d.ts.map +0 -1
  470. package/dist/dts/features/CohortDistance/statistics/StatisticsCard.js +0 -68
  471. package/dist/dts/features/CohortDistance/statistics/StatisticsCard.js.map +0 -1
  472. package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.d.ts +0 -13
  473. package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.d.ts.map +0 -1
  474. package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.js +0 -16
  475. package/dist/dts/features/CohortDistance/statistics/StatisticsPanel.js.map +0 -1
  476. package/dist/dts/features/CohortDistance/statistics/data/data.d.ts +0 -2
  477. package/dist/dts/features/CohortDistance/statistics/data/data.d.ts.map +0 -1
  478. package/dist/dts/features/CohortDistance/statistics/data/data.js +0 -50
  479. package/dist/dts/features/CohortDistance/statistics/data/data.js.map +0 -1
  480. package/dist/dts/features/CohortDistance/statistics/data/tests/distanceResponse.json +0 -228
  481. package/dist/dts/features/CohortDistance/statistics/data/tests/processHistogramResponse.unit.test.d.ts +0 -2
  482. package/dist/dts/features/CohortDistance/statistics/data/tests/processHistogramResponse.unit.test.d.ts.map +0 -1
  483. package/dist/dts/features/CohortDistance/statistics/data/tests/processHistogramResponse.unit.test.js +0 -365
  484. package/dist/dts/features/CohortDistance/statistics/data/tests/processHistogramResponse.unit.test.js.map +0 -1
  485. package/dist/dts/features/CohortDistance/statistics/data/utils.d.ts +0 -49
  486. package/dist/dts/features/CohortDistance/statistics/data/utils.d.ts.map +0 -1
  487. package/dist/dts/features/CohortDistance/statistics/data/utils.js +0 -146
  488. package/dist/dts/features/CohortDistance/statistics/data/utils.js.map +0 -1
  489. package/dist/dts/features/CohortDistance/statistics/queries.d.ts +0 -6
  490. package/dist/dts/features/CohortDistance/statistics/queries.d.ts.map +0 -1
  491. package/dist/dts/features/CohortDistance/statistics/queries.js +0 -24
  492. package/dist/dts/features/CohortDistance/statistics/queries.js.map +0 -1
  493. package/dist/dts/features/CohortDistance/types.d.ts +0 -26
  494. package/dist/dts/features/CohortDistance/types.d.ts.map +0 -1
  495. package/dist/dts/features/CohortDistance/types.js +0 -2
  496. package/dist/dts/features/CohortDistance/types.js.map +0 -1
  497. package/dist/dts/features/Discovery/ActionBar/registeredActions.d.ts +0 -1
  498. package/dist/dts/features/Discovery/ActionBar/registeredActions.d.ts.map +0 -1
  499. package/dist/dts/features/Discovery/ActionBar/registeredActions.js +0 -46
  500. package/dist/dts/features/Discovery/ActionBar/registeredActions.js.map +0 -1
  501. /package/dist/dts/features/CohortBuilder/{QueryExpressionsExpandedContext.d.ts → QueryExpression/QueryExpressionsExpandedContext.d.ts} +0 -0
  502. /package/dist/dts/features/CohortBuilder/{QueryExpressionsExpandedContext.js → QueryExpression/QueryExpressionsExpandedContext.js} +0 -0
  503. /package/dist/dts/features/CohortBuilder/{QueryRepresentationLabel.d.ts → QueryExpression/QueryRepresentationLabel.d.ts} +0 -0
  504. /package/dist/dts/features/CohortBuilder/{QueryRepresentationLabel.js → QueryExpression/QueryRepresentationLabel.js} +0 -0
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { selectIndexedFilterByName, isOperationWithField, updateCohortFilter, useCoreDispatch, useCoreSelector, fieldNameToTitle, } from '@gen3/core';
12
+ import { isUnion, selectIndexedFilterByName, isOperationWithField, updateCohortFilter, useCoreDispatch, useCoreSelector, fieldNameToTitle, extractEnumFilterValue, isOperatorWithFieldAndArrayOfOperands, selectShouldShareFilters, selectSharedFilters, } from '@gen3/core';
13
13
  import { isArray } from 'lodash';
14
14
  export var getAllFieldsFromFilterConfigs = function (filterTabConfigs) {
15
15
  return filterTabConfigs.reduce(function (acc, cur) { return acc.concat(cur.fields); }, []);
@@ -42,16 +42,23 @@ export var processRangeData = function (data) {
42
42
  * @param updateFacetFilters - the function to update the facet filters
43
43
  * @param clearFilters
44
44
  */
45
- export var updateFacetEnum = function (fieldName, values, updateFacetFilters, clearFilters) {
45
+ export var updateFacetEnum = function (fieldName, values, updateFacetFilters, clearFilters, combineMode) {
46
+ if (combineMode === void 0) { combineMode = 'or'; }
46
47
  if (values === undefined)
47
48
  return;
48
49
  if (values.length > 0) {
49
50
  // TODO: Assuming Includes by default but this might change to Include|Excludes
50
- updateFacetFilters(fieldName, {
51
- operator: 'in',
52
- field: fieldName,
53
- operands: values,
54
- });
51
+ updateFacetFilters(fieldName, combineMode === 'and'
52
+ ? addIntersectionToIncludes({
53
+ operator: 'in',
54
+ field: fieldName,
55
+ operands: values,
56
+ })
57
+ : {
58
+ operator: 'in',
59
+ field: fieldName,
60
+ operands: values,
61
+ });
55
62
  }
56
63
  // no values remove the filter
57
64
  else {
@@ -59,7 +66,7 @@ export var updateFacetEnum = function (fieldName, values, updateFacetFilters, cl
59
66
  }
60
67
  };
61
68
  // Process facets to determine if they are enum, exact, or range
62
- export var classifyFacets = function (data, index, fieldMapping, facetDefinitionsFromConfig) {
69
+ export var classifyFacets = function (data, index, fieldMapping, facetDefinitionsFromConfig, sharedFieldMapping) {
63
70
  if (fieldMapping === void 0) { fieldMapping = []; }
64
71
  if (facetDefinitionsFromConfig === void 0) { facetDefinitionsFromConfig = {}; }
65
72
  if (typeof data !== 'object' || data === null)
@@ -67,7 +74,7 @@ export var classifyFacets = function (data, index, fieldMapping, facetDefinition
67
74
  // otherwise enum facet
68
75
  return Object.entries(data).reduce(function (acc, _a) {
69
76
  var _b;
70
- var _c, _d, _e, _f, _g, _h, _j, _k, _l;
77
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
71
78
  var fieldKey = _a[0], value = _a[1];
72
79
  if (!value)
73
80
  return acc; // return if no data, which prevents an application crash
@@ -85,7 +92,10 @@ export var classifyFacets = function (data, index, fieldMapping, facetDefinition
85
92
  description: (_j = facetDef.description) !== null && _j !== void 0 ? _j : 'Not Available',
86
93
  label: (_k = facetDef.label) !== null && _k !== void 0 ? _k : facetName,
87
94
  // assumption is that the initial data has the min and max values
88
- range: ((_l = facetDef.range) !== null && _l !== void 0 ? _l : type === 'range')
95
+ sharedWithIndices: (_l = (sharedFieldMapping &&
96
+ fieldKey in sharedFieldMapping &&
97
+ sharedFieldMapping[fieldKey].filter(function (x) { return x.index !== index; }))) !== null && _l !== void 0 ? _l : undefined,
98
+ range: ((_m = facetDef.range) !== null && _m !== void 0 ? _m : type === 'range')
89
99
  ? {
90
100
  minimum: Math.floor(Number(value[0].key[0])),
91
101
  maximum: Math.ceil(Number(value[0].key[1])),
@@ -94,6 +104,17 @@ export var classifyFacets = function (data, index, fieldMapping, facetDefinition
94
104
  }, _b));
95
105
  }, {});
96
106
  };
107
+ /**
108
+ * Constructs a nested operation object based on the provided field and leaf operand.
109
+ * If the field does not contain a dot '.', it either assigns the field to the leaf operand (if applicable)
110
+ * or returns the leaf operand as is. When the field contains dots, it splits the field into parts,
111
+ * creates a "nested" operation for the root field, and recursively constructs the nested structure
112
+ * for the remaining portion of the field.
113
+ *
114
+ * @param {string} field - The hierarchical field path, with segments separated by dots (e.g., "root.child").
115
+ * @param {Operation} leafOperand - The operation to be nested within the specified path.
116
+ * @returns {Operation} A nested operation object that represents the structured path and operand.
117
+ */
97
118
  export var buildNested = function (field, leafOperand) {
98
119
  if (!field.includes('.')) {
99
120
  if (isOperationWithField(leafOperand))
@@ -117,21 +138,36 @@ export var buildNested = function (field, leafOperand) {
117
138
  export var useUpdateFilters = function (index) {
118
139
  var dispatch = useCoreDispatch();
119
140
  // update the filter for this facet
141
+ var shouldShareFilters = useCoreSelector(function (state) {
142
+ return selectShouldShareFilters(state);
143
+ });
144
+ var sharedFilters = useCoreSelector(function (state) { return selectSharedFilters(state); });
120
145
  return function (field, filter) {
121
- dispatch(updateCohortFilter({
122
- index: index,
123
- field: field,
124
- filter: buildNested(field, filter),
125
- }));
146
+ if (shouldShareFilters && field in sharedFilters) {
147
+ sharedFilters[field].forEach(function (x) {
148
+ dispatch(updateCohortFilter({
149
+ index: x.index,
150
+ field: x.field,
151
+ filter: buildNested(x.field, filter),
152
+ }));
153
+ });
154
+ }
155
+ else {
156
+ dispatch(updateCohortFilter({
157
+ index: index,
158
+ field: field,
159
+ filter: buildNested(field, filter),
160
+ }));
161
+ }
126
162
  };
127
163
  };
128
164
  export var useGetFacetFilters = function (index, field) {
129
- return useCoreSelector(function (state) {
130
- var _a;
131
- return (_a = selectIndexedFilterByName(state, index, field)) !== null && _a !== void 0 ? _a : {
132
- operator: 'and',
133
- operands: [],
134
- };
165
+ var _a;
166
+ return ((_a = useCoreSelector(function (state) {
167
+ return selectIndexedFilterByName(state, index, field);
168
+ })) !== null && _a !== void 0 ? _a : {
169
+ operator: 'and',
170
+ operands: [],
135
171
  });
136
172
  };
137
173
  /**
@@ -169,4 +205,89 @@ export var extractRangeValues = function (filter) {
169
205
  }
170
206
  };
171
207
  export var convertToStringArray = function (inputArray) { return inputArray.map(String); };
208
+ /**
209
+ * This function creates a new operation by combining the provided filter
210
+ * with an 'and' logical operator. The resulting operation contains the filter
211
+ * as its sole operand initially.
212
+ *
213
+ * @param {Operation} filter - The operation to be added as the first operand.
214
+ * @returns {Operation} A new operation object with an 'and' operator and the given filter as its operand.
215
+ */
216
+ export var addUnion = function (filter) {
217
+ return {
218
+ operator: 'and',
219
+ operands: [filter],
220
+ };
221
+ };
222
+ /**
223
+ * Removes a union operation and returns the sole operand if the union
224
+ * operation contains only one operand. If the union operation has multiple
225
+ * operands or if the input is not a union, returns undefined.
226
+ *
227
+ * @param {Operation} filter - The operation to evaluate and possibly modify, expected to be a union.
228
+ * @returns {Operation | undefined} The sole operand of the union if it contains only one, or undefined otherwise.
229
+ */
230
+ export var removeUnion = function (filter) {
231
+ if (isUnion(filter) && filter.operands.length === 1) {
232
+ return filter.operands[0];
233
+ }
234
+ return undefined;
235
+ };
236
+ /**
237
+ * Represents a function that adds an intersection filter operation.
238
+ *
239
+ * @param {Operation} filter - The filter operation to be intersected with.
240
+ * @returns {Operation} An object representing a new operation that combines
241
+ * the provided filter with an "and" logical operator.
242
+ */
243
+ export var addIntersectionToIncludes = function (filter) {
244
+ if (!isOperatorWithFieldAndArrayOfOperands(filter))
245
+ return filter;
246
+ var values = extractEnumFilterValue(filter);
247
+ // if (!values || values.length === 0) return filter;
248
+ return {
249
+ operator: 'and',
250
+ operands: values.map(function (x) {
251
+ return {
252
+ operator: filter.operator,
253
+ operands: [x],
254
+ field: filter.field,
255
+ };
256
+ }),
257
+ };
258
+ };
259
+ /**
260
+ * Removes the intersection from a filter operation if the intersection contains only one operand.
261
+ *
262
+ * @param {Operation} filter - The filter operation to be evaluated.
263
+ * @returns {Operation|undefined} The single operand of the intersection if the intersection has only one operand, otherwise undefined.
264
+ */
265
+ export var removeIntersectionFromEnum = function (filter) {
266
+ if (filter.operands.length === 0)
267
+ return undefined;
268
+ if (!filter.operands.every(function (x) { return isOperationWithField(x); }))
269
+ return undefined;
270
+ var values = filter.operands.reduce(function (acc, x) {
271
+ extractEnumFilterValue(x).map(function (y) { return acc.push(y); });
272
+ return acc;
273
+ }, []);
274
+ return {
275
+ operator: filter.operands[0].operator,
276
+ field: filter.operands[0].field,
277
+ operands: values,
278
+ };
279
+ };
280
+ /**
281
+ * Maps a facet sort type to a corresponding sort type.
282
+ *
283
+ * @param {FacetSortType} facetSort - The facet sort type represented as a string in the format "type-direction".
284
+ * @returns {SortType} - The mapped sort type object containing type and direction.
285
+ */
286
+ export var mapFacetSortToSortType = function (facetSort) {
287
+ var _a = facetSort.split('-'), type = _a[0], direction = _a[1];
288
+ return {
289
+ type: type === 'label' ? 'alpha' : 'value',
290
+ direction: direction,
291
+ };
292
+ };
172
293
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/facets/utils.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAOL,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,gBAAgB,GAGjB,MAAM,YAAY,CAAC;AAOpB,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGjC,MAAM,CAAC,IAAM,6BAA6B,GAAG,UAC3C,gBAA0C;IAE1C,OAAA,gBAAgB,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,GAAG,IAAK,OAAA,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAtB,CAAsB,EAAE,EAAc,CAAC;AAA7E,CAA6E,CAAC;AAKhF,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAC/B,IAAyB;IAEzB,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAErB,OAAO,IAAI,CAAC,MAAM,CAChB,UAAC,GAA2B,EAAE,IAAmB;QAC/C,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,GAAG,CAAC,CAAC,qDAAqD;QACxF,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAC3B,OAAO,GAAG,CAAC;IACb,CAAC,EACD,EAA4B,CAC7B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAC9B,IAAyB;IAEzB,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAErB,OAAO,IAAI,CAAC,MAAM,CAChB,UAAC,GAA2B,EAAE,IAAmB;;QAC/C,kDAAkD;QAClD,GAAG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QAC/B,QAAQ,EAAE,MAAM;KACsB,CAAC;AAC3C,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,IAAM,sBAAsB,GAAG,UAAC,SAAwB;IACvD,IAAA,KAAoB,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,EAAvC,IAAI,QAAA,EAAE,SAAS,QAAwB,CAAC;IAC/C,OAAO;QACL,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;QAC1C,SAAS,EAAE,SAA0B;KACtC,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnalysisCenter.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisCenter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAMtD,QAAA,MAAM,cAAc,kCAGjB,2BAA2B,KAAG,YAwJhC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"AnalysisCenter.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/AnalysisCenter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAMtD,QAAA,MAAM,cAAc,GAAI,+BAGrB,2BAA2B,KAAG,YAwJhC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextDescription.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/TextDescription.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,YAAY,EAAE,MAAM,OAAO,CAAC;AAM/C,UAAU,oBAAoB;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,qBAElB,oBAAoB,KAAG,YAqBzB,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"TextDescription.d.ts","sourceRoot":"","sources":["../../../../src/features/Analysis/TextDescription.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,YAAY,EAAE,MAAM,OAAO,CAAC;AAM/C,UAAU,oBAAoB;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,GAAI,kBAEtB,oBAAoB,KAAG,YAqBzB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Gen3Authz.d.ts","sourceRoot":"","sources":["../../../../src/features/Authz/Gen3Authz.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMhC,UAAU,cAAc;IACtB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,QAAA,MAAM,SAAS,cAAe,cAAc,4CA8B3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Gen3Authz.d.ts","sourceRoot":"","sources":["../../../../src/features/Authz/Gen3Authz.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMhC,UAAU,cAAc;IACtB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,QAAA,MAAM,SAAS,GAAI,WAAW,cAAc,4CA8B3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PoliciesTable.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Policies/PoliciesTable.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAU,QAAQ,EAAE,MAAM,UAAU,CAAC;AAK5C,eAAO,MAAM,kBAAkB,aAAc,QAAQ,4BAAsB,MAAM,EAAE,KAAQ,MAAM,EAahG,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,aAAa,+CAkElB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"PoliciesTable.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Policies/PoliciesTable.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAU,QAAQ,EAAE,MAAM,UAAU,CAAC;AAK5C,eAAO,MAAM,kBAAkB,GAAI,UAAU,QAAQ,EAAE,eAAU,EAAE,SAAQ,MAAM,EAAO,KAAG,MAAM,EAahG,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,aAAa,+CAkElB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/features/Authz/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EACR,YAAY,EAEb,MAAM,OAAO,CAAC;AACf,OAAO,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,MAAM,EACN,UAAU,EACV,QAAQ,EACR,IAAI,EACL,MAAM,SAAS,CAAC;AAEjB,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,SAAS,GAAG,YAAY,CAAC;IAC/B,OAAO,EAAE;QACP,IAAI,CAAC,EAAE,IAAI,CAAC;QACZ,IAAI,CAAC,EAAE,IAAI,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,KAAK,UAAU,kBAAkB;;;;;;;;;;;;;CAoBpE,CAAC;AAEF,eAAO,MAAM,YAAY;WAChB,KAAK;cACF,QAAQ,CAAC,kBAAkB,CAAC;EAUtC,CAAC;AAEH,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,YAAY,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,eAAO,MAAM,aAAa,yBASvB,kBAAkB,4CAOpB,CAAC;AAEF,eAAO,MAAM,eAAe;WApCnB,KAAK;cACF,QAAQ,CAAC,kBAAkB,CAAC;CAmCqB,CAAC"}
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/features/Authz/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EACR,YAAY,EAEb,MAAM,OAAO,CAAC;AACf,OAAO,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,MAAM,EACN,UAAU,EACV,QAAQ,EACR,IAAI,EACL,MAAM,SAAS,CAAC;AAEjB,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,SAAS,GAAG,YAAY,CAAC;IAC/B,OAAO,EAAE;QACP,IAAI,CAAC,EAAE,IAAI,CAAC;QACZ,IAAI,CAAC,EAAE,IAAI,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,KAAK,EAAE,QAAQ,kBAAkB;;;;;;;;;;;;;CAoBpE,CAAC;AAEF,eAAO,MAAM,YAAY;WAChB,KAAK;cACF,QAAQ,CAAC,kBAAkB,CAAC;EAUtC,CAAC;AAEH,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,YAAY,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,eAAO,MAAM,aAAa,GAAI,sBAS3B,kBAAkB,4CAOpB,CAAC;AAEF,eAAO,MAAM,eAAe;WApCnB,KAAK;cACF,QAAQ,CAAC,kBAAkB,CAAC;CAmCqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PermissionnDetailsRow.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Roles/PermissionnDetailsRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,eAAO,MAAM,YAAY,aAAc;IAAE,IAAI,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAA;CAAE,4CAE7E,CAAC;AACF,eAAO,MAAM,WAAW,aAEK;IAC3B,IAAI,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CACrC,4CAEA,CAAC;AACF,eAAO,MAAM,YAAY,aAEK;IAC5B,IAAI,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CACrC,4CAEA,CAAC;AAGF,QAAA,MAAM,mBAAmB,mBAAoB;IAAE,UAAU,EAAE,UAAU,CAAA;CAAE,4CAWtE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"PermissionnDetailsRow.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Roles/PermissionnDetailsRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,eAAO,MAAM,YAAY,GAAI,UAAU;IAAE,IAAI,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAA;CAAE,4CAE7E,CAAC;AACF,eAAO,MAAM,WAAW,GAAI,UAEC;IAC3B,IAAI,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CACrC,4CAEA,CAAC;AACF,eAAO,MAAM,YAAY,GAAI,UAEC;IAC5B,IAAI,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CACrC,4CAEA,CAAC;AAGF,QAAA,MAAM,mBAAmB,GAAI,gBAAgB;IAAE,UAAU,EAAE,UAAU,CAAA;CAAE,4CAWtE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Authz/Users/Cards/UserDetails.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,UAAU,gBAAgB;IACxB,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,QAAA,MAAM,WAAW,aAAc,gBAAgB,4CAgB9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"UserDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/features/Authz/Users/Cards/UserDetails.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,UAAU,gBAAgB;IACxB,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,QAAA,MAAM,WAAW,GAAI,UAAU,gBAAgB,4CAgB9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Inputs.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Users/Inputs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGlD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,MAAM,aAAc;IAAE,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;CAAE,4CAE9E,CAAC;AACF,eAAO,MAAM,SAAS,aAEnB;IACD,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAC5C,4CAEA,CAAC;AACF,eAAO,MAAM,UAAU,aAEpB;IACD,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAC5C,4CAEA,CAAC;AAEF,eAAO,MAAM,YAAY,aAEtB;IACD,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAC5C,4CAEA,CAAC"}
1
+ {"version":3,"file":"Inputs.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Users/Inputs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGlD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,MAAM,GAAI,UAAU;IAAE,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;CAAE,4CAE9E,CAAC;AACF,eAAO,MAAM,SAAS,GAAI,UAEvB;IACD,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAC5C,4CAEA,CAAC;AACF,eAAO,MAAM,UAAU,GAAI,UAExB;IACD,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAC5C,4CAEA,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAE1B;IACD,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAC5C,4CAEA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewUserPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Users/NewUserPanel.tsx"],"names":[],"mappings":"AAKA,UAAU,iBAAiB;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,QAAA,MAAM,YAAY,mBAAoB,iBAAiB,4CA2CtD,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"NewUserPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Users/NewUserPanel.tsx"],"names":[],"mappings":"AAKA,UAAU,iBAAiB;IACzB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,QAAA,MAAM,YAAY,GAAI,gBAAgB,iBAAiB,4CA2CtD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserDetailsPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Users/UserDetailsPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhC,UAAU,qBAAqB;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,QAAA,MAAM,gBAAgB,yBAAwB,qBAAqB,4CAwBlE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"UserDetailsPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Users/UserDetailsPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhC,UAAU,qBAAqB;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,QAAA,MAAM,gBAAgB,GAAI,sBAAoB,qBAAqB,4CAwBlE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UserTable.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Users/UserTable.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIhC,UAAU,cAAc;IACtB,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACrC,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,QAAA,MAAM,SAAS,8CAGZ,cAAc,4CAmEhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"UserTable.d.ts","sourceRoot":"","sources":["../../../../../src/features/Authz/Users/UserTable.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIhC,UAAU,cAAc;IACtB,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACrC,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,QAAA,MAAM,SAAS,GAAI,2CAGhB,cAAc,4CAmEhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/features/Authz/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,sBAAsB,aAAc,QAAQ,KAAI,KAS5D,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/features/Authz/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,sBAAsB,GAAI,UAAU,QAAQ,KAAI,KAS5D,CAAC"}
@@ -1,3 +1,3 @@
1
- import { CohortBuilderConfiguration } from './types';
2
- export declare const CohortBuilder: ({ explorerConfig, }: CohortBuilderConfiguration) => import("react/jsx-runtime").JSX.Element;
1
+ import { CohortBuilderProps } from './types';
2
+ export declare const CohortBuilder: ({ explorerConfig, sharedFiltersMap, tabsLayout, }: CohortBuilderProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=CohortBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CohortBuilder.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortBuilder.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAKxE,eAAO,MAAM,aAAa,wBAEvB,0BAA0B,4CA2C5B,CAAC"}
1
+ {"version":3,"file":"CohortBuilder.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortBuilder.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA2BhE,eAAO,MAAM,aAAa,GAAI,mDAI3B,kBAAkB,4CAyCpB,CAAC"}
@@ -11,15 +11,33 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { createElement as _createElement } from "react";
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- import { Center, Loader, Tabs } from '@mantine/core';
14
+ import { Tabs } from '@mantine/core';
15
15
  import { CohortPanel } from './CohortPanel';
16
- import { useGetCSRFQuery } from '@gen3/core';
17
- export var CohortBuilder = function (_a) {
18
- var explorerConfig = _a.explorerConfig;
19
- var isLoading = useGetCSRFQuery().isLoading;
20
- if (isLoading) {
21
- return (_jsx(Center, { maw: 400, h: 100, mx: "auto", children: _jsx(Loader, { variant: "dots" }) }));
16
+ import { useCoreDispatch, useGetCSRFQuery, setSharedFilters } from '@gen3/core';
17
+ var TabsLayoutToComponentProp = function (tabsLayout) {
18
+ if (!tabsLayout) {
19
+ return 'flex-start';
20
+ }
21
+ switch (tabsLayout) {
22
+ case 'left': {
23
+ return 'flex-start';
24
+ }
25
+ case 'right': {
26
+ return 'flex-end';
27
+ }
28
+ case 'center': {
29
+ return 'center';
30
+ }
31
+ default: {
32
+ return 'flex-start';
33
+ }
22
34
  }
23
- return (_jsx("div", { className: "w-full", children: _jsxs(Tabs, { color: "primary.4", keepMounted: false, defaultValue: explorerConfig[0].tabTitle, children: [_jsx(Tabs.List, { children: explorerConfig.map(function (panelConfig) { return (_jsx(Tabs.Tab, { value: panelConfig.tabTitle, children: panelConfig.tabTitle }, "".concat(panelConfig.tabTitle, "-tabList"))); }) }), explorerConfig.map(function (panelConfig) { return (_jsx(Tabs.Panel, { value: panelConfig.tabTitle, children: _createElement(CohortPanel, __assign({}, panelConfig, { key: "".concat(panelConfig.tabTitle, "-CohortPanel") })) }, "".concat(panelConfig.tabTitle, "-tabPanel"))); })] }) }));
35
+ };
36
+ export var CohortBuilder = function (_a) {
37
+ var explorerConfig = _a.explorerConfig, _b = _a.sharedFiltersMap, sharedFiltersMap = _b === void 0 ? null : _b, _c = _a.tabsLayout, tabsLayout = _c === void 0 ? 'left' : _c;
38
+ var isFetching = useGetCSRFQuery().isFetching;
39
+ var dispatch = useCoreDispatch();
40
+ dispatch(setSharedFilters(sharedFiltersMap !== null && sharedFiltersMap !== void 0 ? sharedFiltersMap : {}));
41
+ return (_jsx("div", { className: "w-full", children: _jsxs(Tabs, { color: "primary.4", keepMounted: true, defaultValue: explorerConfig[0].tabTitle, children: [_jsx(Tabs.List, { className: "w-full", justify: TabsLayoutToComponentProp(tabsLayout), children: explorerConfig.map(function (panelConfig) { return (_jsx(Tabs.Tab, { value: panelConfig.tabTitle, children: panelConfig.tabTitle }, "".concat(panelConfig.tabTitle, "-tabList"))); }) }), explorerConfig.map(function (panelConfig) { return (_jsx(Tabs.Panel, { value: panelConfig.tabTitle, children: _createElement(CohortPanel, __assign({}, panelConfig, { key: "".concat(panelConfig.tabTitle, "-CohortPanel") })) }, "".concat(panelConfig.tabTitle, "-tabPanel"))); })] }) }));
24
42
  };
25
43
  //# sourceMappingURL=CohortBuilder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CohortBuilder.js","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortBuilder.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,EAED;QAD3B,cAAc,oBAAA;IAEN,IAAA,SAAS,GAAK,eAAe,EAAE,UAAtB,CAAuB;IAExC,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CACL,KAAC,MAAM,IAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAC,MAAM,YACjC,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,GAAG,GAClB,CACV,CAAC;IACJ,CAAC;IAED,OAAO,CACL,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AE,UAAG,WAAW,CAAC,QAAQ,iBAAc,IAC1C,IALG,UAAG,WAAW,CAAC,QAAQ,cAAW,CAM5B,CACd,EAVuD,CAUvD,CAAC,IACG,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CohortManager.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortManager.tsx"],"names":[],"mappings":"AAWA,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,aAAa,cAAe,kBAAkB,4CAmBnD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"CohortManager.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortManager.tsx"],"names":[],"mappings":"AAEA,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,aAAa,GAAI,WAAW,kBAAkB,4CAMnD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,17 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useCoreSelector, selectCurrentCohortId, selectCurrentCohortName, } from '@gen3/core';
3
- import { useCohortFacetFilters } from './hooks';
4
- import QueryExpressionSection from './QueryExpressionSection';
2
+ import QueryExpression from './QueryExpression';
5
3
  var CohortManager = function (_a) {
6
4
  var index = _a.index;
7
- var currentCohortId = useCoreSelector(function (state) {
8
- return selectCurrentCohortId(state);
9
- });
10
- var currentCohortName = useCoreSelector(function (state) {
11
- return selectCurrentCohortName(state);
12
- });
13
- var filters = useCohortFacetFilters(index);
14
- return (_jsx("div", { className: "mb-2", children: _jsx(QueryExpressionSection, { index: index, filters: filters, currentCohortName: currentCohortName, currentCohortId: currentCohortId }) }));
5
+ return (_jsx("div", { className: "mb-2", children: _jsx(QueryExpression, { index: index }) }));
15
6
  };
16
7
  export default CohortManager;
17
8
  //# sourceMappingURL=CohortManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CohortManager.js","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortManager.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,uBAAuB,GAExB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAO9D,IAAM,aAAa,GAAG,UAAC,EAA6B;QAA3B,KAAK,WAAA;IAC5B,IAAM,eAAe,GAAG,eAAe,CAAC,UAAC,KAAgB;QACvD,OAAA,qBAAqB,CAAC,KAAK,CAAC;IAA5B,CAA4B,CAC7B,CAAC;IACF,IAAM,iBAAiB,GAAG,eAAe,CAAC,UAAC,KAAgB;QACzD,OAAA,uBAAuB,CAAC,KAAK,CAAC;IAA9B,CAA8B,CAC/B,CAAC;IACF,IAAM,OAAO,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;IAE7C,OAAO,CACL,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,sBAAsB,IACrB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,GAChC,GACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"CohortManager.js","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortManager.tsx"],"names":[],"mappings":";AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAMhD,IAAM,aAAa,GAAG,UAAC,EAA6B;QAA3B,KAAK,WAAA;IAC5B,OAAO,CACL,cAAK,SAAS,EAAC,MAAM,YACnB,KAAC,eAAe,IAAC,KAAK,EAAE,KAAK,GAAI,GAC7B,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CohortPanel.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,iBAAiB,EAA8B,MAAM,SAAS,CAAC;AA2G7E;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,6FASrB,iBAAiB,KAAG,GAAG,CAAC,OA+N1B,CAAC"}
1
+ {"version":3,"file":"CohortPanel.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortPanel.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA0CjD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GAAI,0FASzB,iBAAiB,KAAG,GAAG,CAAC,OA4Q1B,CAAC"}
@@ -9,25 +9,14 @@ 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
- import { LoadingOverlay, Tabs } from '@mantine/core';
24
14
  import { partial } from 'lodash';
25
- import { selectIndexFilters, useCoreSelector, useGetAggsQuery, extractEnumFilterValue, useGetCountsQuery, } from '@gen3/core';
15
+ import { extractEnumFilterValue, isIntersection, selectIndexFilters, useCoreSelector, useGetAggsQuery, useGetCountsQuery, selectSharedFilters, useGetAggsNoFilterSelfQuery, } from '@gen3/core';
26
16
  import { ErrorCard } from '../../components/MessageCards';
27
17
  import { useMediaQuery } from '@mantine/hooks';
28
- import { classifyFacets, extractRangeValues, getAllFieldsFromFilterConfigs, processBucketData, processRangeData, useGetFacetFilters, useUpdateFilters, } from '../../components/facets/utils';
18
+ import { classifyFacets, extractRangeValues, getAllFieldsFromFilterConfigs, processBucketData, processRangeData, removeIntersectionFromEnum, useGetFacetFilters, useUpdateFilters, } from '../../components/facets/utils';
29
19
  import { useClearFilters } from '../../components/facets/hooks';
30
- import { FiltersPanel } from './FiltersPanel';
31
20
  import CohortManager from './CohortManager';
32
21
  import { Charts } from '../../components/charts';
33
22
  import ExplorerTable from './ExplorerTable/ExplorerTable';
@@ -35,24 +24,9 @@ import CountsValue from '../../components/counts/CountsValue';
35
24
  import DownloadsPanel from './DownloadsPanel';
36
25
  import { useDeepCompareCallback, useDeepCompareEffect, useDeepCompareMemo, } from 'use-deep-compare';
37
26
  import { toDisplayName } from '../../utils';
27
+ import { useCohortFilterCombineState, useFilterExpandedState, useSetCohortFilterCombineState, useToggleExpandFilter, } from './hooks';
28
+ import DropdownPanel from './Panels/DropdownPanel';
38
29
  var EmptyData = {};
39
- var TabbedPanel = function (_a) {
40
- var _b;
41
- var filters = _a.filters, tabTitle = _a.tabTitle, facetDefinitions = _a.facetDefinitions, facetDataHooks = _a.facetDataHooks;
42
- return (_jsx("div", { children: _jsxs(Tabs, { variant: "pills", orientation: "vertical", keepMounted: false, defaultValue: (_b = filters === null || filters === void 0 ? void 0 : filters.tabs[0].title) !== null && _b !== void 0 ? _b : 'Filters', children: [_jsx(Tabs.List, { children: filters.tabs.map(function (tab) {
43
- return (_jsx(Tabs.Tab, { value: tab.title, children: tab.title }, "".concat(tab.title, "-tab")));
44
- }) }), filters.tabs.map(function (tab) {
45
- return (_jsx(Tabs.Panel, { value: tab.title, className: "w-1/4", children: Object.keys(facetDefinitions).length > 0 ? (_jsx(FiltersPanel, { fields: tab.fields.reduce(function (acc, field) {
46
- return __spreadArray(__spreadArray([], acc, true), [facetDefinitions[field]], false);
47
- }, []), dataFunctions: facetDataHooks, valueLabel: tabTitle })) : null }, "filter-".concat(tab.title, "-tabPanel")));
48
- })] }) }));
49
- };
50
- var SinglePanel = function (_a) {
51
- var filters = _a.filters, tabTitle = _a.tabTitle, facetDefinitions = _a.facetDefinitions, facetDataHooks = _a.facetDataHooks;
52
- return (_jsx("div", { children: Object.keys(facetDefinitions).length > 0 ? (_jsx(FiltersPanel, { fields: filters.tabs[0].fields.reduce(function (acc, field) {
53
- return __spreadArray(__spreadArray([], acc, true), [facetDefinitions[field]], false);
54
- }, []), dataFunctions: facetDataHooks, valueLabel: tabTitle })) : null }));
55
- };
56
30
  /**
57
31
  * The main component that houses the charts, tabs, modals
58
32
  * filters, tables, buttons of the exploration page.
@@ -67,6 +41,9 @@ export var CohortPanel = function (_a) {
67
41
  var isSm = useMediaQuery('(min-width: 639px)');
68
42
  var isMd = useMediaQuery('(min-width: 1373px)');
69
43
  var isXl = useMediaQuery('(min-width: 1600px)');
44
+ var sharedFiltersMap = useCoreSelector(function (state) {
45
+ return selectSharedFilters(state);
46
+ });
70
47
  var numCols = 3;
71
48
  if (isSm)
72
49
  numCols = 1;
@@ -86,12 +63,30 @@ export var CohortPanel = function (_a) {
86
63
  fields: fields,
87
64
  filters: cohortFilters,
88
65
  }), data = _f.data, isSuccess = _f.isSuccess, isAggsQueryFetching = _f.isFetching, isAggsQueryError = _f.isError;
66
+ var _g = useGetAggsNoFilterSelfQuery({
67
+ type: index,
68
+ fields: Object.keys(charts),
69
+ filters: cohortFilters,
70
+ }), chartData = _g.data, isChartSuccess = _g.isSuccess, isChartFetching = _g.isFetching, isChartError = _g.isError;
89
71
  var getEnumFacetData = useDeepCompareCallback(function (field) {
72
+ var filters = undefined;
73
+ var combineMode = 'or';
74
+ if (field in cohortFilters.root) {
75
+ if (isIntersection(cohortFilters.root[field])) {
76
+ var intersectionFilters = removeIntersectionFromEnum(cohortFilters.root[field]);
77
+ if (intersectionFilters) {
78
+ filters = extractEnumFilterValue(intersectionFilters);
79
+ combineMode = 'and';
80
+ }
81
+ }
82
+ else {
83
+ filters = extractEnumFilterValue(cohortFilters.root[field]);
84
+ }
85
+ }
90
86
  return {
91
87
  data: processBucketData(data === null || data === void 0 ? void 0 : data[field]),
92
- enumFilters: field in cohortFilters.root
93
- ? extractEnumFilterValue(cohortFilters.root[field])
94
- : undefined,
88
+ enumFilters: filters,
89
+ combineMode: combineMode,
95
90
  isSuccess: isSuccess,
96
91
  };
97
92
  }, [cohortFilters, data, isSuccess]);
@@ -113,6 +108,10 @@ export var CohortPanel = function (_a) {
113
108
  useUpdateFacetFilters: partial(useUpdateFilters, index),
114
109
  useGetFacetFilters: partial(useGetFacetFilters, index),
115
110
  useClearFilter: partial(useClearFilters, index),
111
+ useFilterExpanded: partial(useFilterExpandedState, index),
112
+ useToggleExpandFilter: partial(useToggleExpandFilter, index),
113
+ useGetCombineMode: partial(useCohortFilterCombineState, index),
114
+ useSetCombineMode: partial(useSetCohortFilterCombineState, index),
116
115
  useTotalCounts: undefined,
117
116
  },
118
117
  exact: {
@@ -120,6 +119,8 @@ export var CohortPanel = function (_a) {
120
119
  useUpdateFacetFilters: partial(useUpdateFilters, index),
121
120
  useGetFacetFilters: partial(useGetFacetFilters, index),
122
121
  useClearFilter: partial(useClearFilters, index),
122
+ useFilterExpanded: partial(useFilterExpandedState, index),
123
+ useToggleExpandFilter: partial(useToggleExpandFilter, index),
123
124
  useTotalCounts: undefined,
124
125
  },
125
126
  multiselect: {
@@ -127,6 +128,8 @@ export var CohortPanel = function (_a) {
127
128
  useUpdateFacetFilters: partial(useUpdateFilters, index),
128
129
  useGetFacetFilters: partial(useGetFacetFilters, index),
129
130
  useClearFilter: partial(useClearFilters, index),
131
+ useFilterExpanded: partial(useFilterExpandedState, index),
132
+ useToggleExpandFilter: partial(useToggleExpandFilter, index),
130
133
  useTotalCounts: undefined,
131
134
  },
132
135
  range: {
@@ -134,6 +137,8 @@ export var CohortPanel = function (_a) {
134
137
  useUpdateFacetFilters: partial(useUpdateFilters, index),
135
138
  useGetFacetFilters: partial(useGetFacetFilters, index),
136
139
  useClearFilter: partial(useClearFilters, index),
140
+ useFilterExpanded: partial(useFilterExpandedState, index),
141
+ useToggleExpandFilter: partial(useToggleExpandFilter, index),
137
142
  useTotalCounts: undefined,
138
143
  },
139
144
  };
@@ -145,7 +150,7 @@ export var CohortPanel = function (_a) {
145
150
  var configFacetDefs = filters === null || filters === void 0 ? void 0 : filters.tabs.reduce(function (acc, tab) {
146
151
  return __assign(__assign({}, tab.fieldsConfig), acc);
147
152
  }, {});
148
- var facetDefs_1 = classifyFacets(data, index, (_a = guppyConfig === null || guppyConfig === void 0 ? void 0 : guppyConfig.fieldMapping) !== null && _a !== void 0 ? _a : [], configFacetDefs !== null && configFacetDefs !== void 0 ? configFacetDefs : {});
153
+ var facetDefs_1 = classifyFacets(data, index, (_a = guppyConfig === null || guppyConfig === void 0 ? void 0 : guppyConfig.fieldMapping) !== null && _a !== void 0 ? _a : [], configFacetDefs !== null && configFacetDefs !== void 0 ? configFacetDefs : {}, sharedFiltersMap);
149
154
  setFacetDefinitions(facetDefs_1);
150
155
  // setup summary charts since nested fields can be listed by the split field name
151
156
  var summaryCharts_1 = Object.keys(charts).reduce(function (acc, field) {
@@ -171,13 +176,13 @@ export var CohortPanel = function (_a) {
171
176
  guppyConfig.fieldMapping,
172
177
  charts,
173
178
  ]);
174
- var _g = useGetCountsQuery({
179
+ var _h = useGetCountsQuery({
175
180
  type: index,
176
181
  filters: cohortFilters,
177
- }), counts = _g.data, isCountSuccess = _g.isSuccess, isError = _g.isError;
182
+ }), counts = _h.data, isCountSuccess = _h.isSuccess, isError = _h.isError;
178
183
  if (isError || isAggsQueryError) {
179
184
  return _jsx(ErrorCard, { message: "Unable to fetch data from server" }); // TODO: replace with configurable message
180
185
  }
181
- return (_jsxs("div", { className: "flex mt-3 relative", children: [_jsx(LoadingOverlay, { visible: isAggsQueryFetching }), _jsx("div", { children: (filters === null || filters === void 0 ? void 0 : filters.tabs) === undefined ? null : (filters === null || filters === void 0 ? void 0 : filters.tabs.length) > 1 ? (_jsx(TabbedPanel, { filters: filters, tabTitle: tabTitle, facetDefinitions: facetDefinitions, facetDataHooks: facetDataHooks })) : (_jsx(SinglePanel, { filters: filters, tabTitle: tabTitle, facetDefinitions: facetDefinitions, facetDataHooks: facetDataHooks })) }), _jsx("div", { className: "w-full relative", children: _jsxs("div", { className: "flex flex-col", children: [_jsx(CohortManager, { index: index }), _jsxs("div", { className: "flex justify-between mb-2 ml-2", children: [_jsx(DownloadsPanel, { dropdowns: dropdowns !== null && dropdowns !== void 0 ? dropdowns : {}, buttons: buttons !== null && buttons !== void 0 ? buttons : [], loginForDownload: loginForDownload, index: index, totalCount: counts !== null && counts !== void 0 ? counts : 0, fields: (_b = table === null || table === void 0 ? void 0 : table.fields) !== null && _b !== void 0 ? _b : [], filter: cohortFilters }), _jsx(CountsValue, { label: (guppyConfig === null || guppyConfig === void 0 ? void 0 : guppyConfig.nodeCountTitle) || toDisplayName(index), counts: counts, isSuccess: isCountSuccess })] }), _jsx(Charts, { charts: summaryCharts, data: data !== null && data !== void 0 ? data : EmptyData, counts: counts, isSuccess: isSuccess, numCols: numCols }), (table === null || table === void 0 ? void 0 : table.enabled) ? (_jsx("div", { className: "mt-2 flex flex-col", children: _jsx("div", { className: "grid", children: _jsx(ExplorerTable, { index: index, tableConfig: table }) }) })) : (false)] }) })] }));
186
+ return (_jsxs("div", { className: "flex flex-col mt-3 relative px-4 bg-base-light w-full", children: [_jsx(CohortManager, { index: index }), _jsxs("div", { className: "flex w-full", children: [_jsx("div", { id: "cohort-builder-filters", className: "flex-shrink-0 md:w-1/4 lg:w-1/5", children: (filters === null || filters === void 0 ? void 0 : filters.tabs) && (_jsx(DropdownPanel, { index: index, filters: filters, tabTitle: tabTitle, facetDefinitions: facetDefinitions, facetDataHooks: facetDataHooks })) }), _jsxs("div", { id: "cohort-builder-content", className: "flex flex-col md:w-3/4 lg:w-4/5 pl-4", children: [_jsxs("div", { className: "flex justify-between mb-2 ml-2", children: [_jsx(DownloadsPanel, { dropdowns: dropdowns !== null && dropdowns !== void 0 ? dropdowns : {}, buttons: buttons !== null && buttons !== void 0 ? buttons : [], loginForDownload: loginForDownload, index: index, totalCount: counts !== null && counts !== void 0 ? counts : 0, fields: (_b = table === null || table === void 0 ? void 0 : table.fields) !== null && _b !== void 0 ? _b : [], filter: cohortFilters }), _jsx(CountsValue, { label: (guppyConfig === null || guppyConfig === void 0 ? void 0 : guppyConfig.nodeCountTitle) || toDisplayName(index), counts: counts, isSuccess: isCountSuccess })] }), _jsx(Charts, { charts: summaryCharts, data: chartData !== null && chartData !== void 0 ? chartData : EmptyData, counts: counts, isSuccess: isChartSuccess, numCols: numCols }), (table === null || table === void 0 ? void 0 : table.enabled) && (_jsx("div", { className: "mt-2 flex flex-col", children: _jsx("div", { className: "grid", children: _jsx(ExplorerTable, { index: index, tableConfig: table }) }) }))] })] })] }));
182
187
  };
183
188
  //# sourceMappingURL=CohortPanel.js.map