@gen3/frontend 0.10.46 → 0.10.48

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 (275) hide show
  1. package/dist/cjs/index.js +5636 -3526
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
  4. package/dist/dts/components/Login/LoginPanel.js +2 -1
  5. package/dist/dts/components/Login/LoginPanel.js.map +1 -1
  6. package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
  7. package/dist/dts/components/Providers/Gen3Provider.js +9 -0
  8. package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
  9. package/dist/dts/components/charts/Charts.d.ts +3 -2
  10. package/dist/dts/components/charts/Charts.d.ts.map +1 -1
  11. package/dist/dts/components/charts/Charts.js +67 -15
  12. package/dist/dts/components/charts/Charts.js.map +1 -1
  13. package/dist/dts/components/charts/echarts/ReactECharts.d.ts.map +1 -1
  14. package/dist/dts/components/charts/echarts/ReactECharts.js +9 -14
  15. package/dist/dts/components/charts/echarts/ReactECharts.js.map +1 -1
  16. package/dist/dts/components/charts/tests/utils.unit.test.js +5 -5
  17. package/dist/dts/components/charts/tests/utils.unit.test.js.map +1 -1
  18. package/dist/dts/components/charts/types.d.ts +3 -2
  19. package/dist/dts/components/charts/types.d.ts.map +1 -1
  20. package/dist/dts/components/charts/utils.d.ts +2 -3
  21. package/dist/dts/components/charts/utils.d.ts.map +1 -1
  22. package/dist/dts/components/charts/utils.js +2 -3
  23. package/dist/dts/components/charts/utils.js.map +1 -1
  24. package/dist/dts/components/counts/CountsValue.js +1 -1
  25. package/dist/dts/components/counts/CountsValue.js.map +1 -1
  26. package/dist/dts/components/facets/EnumFacet.d.ts +3 -3
  27. package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
  28. package/dist/dts/components/facets/EnumFacet.js +8 -233
  29. package/dist/dts/components/facets/EnumFacet.js.map +1 -1
  30. package/dist/dts/components/facets/ExactValueFacet.js +4 -4
  31. package/dist/dts/components/facets/ExactValueFacet.js.map +1 -1
  32. package/dist/dts/components/facets/FacetControlsHeader.d.ts +24 -0
  33. package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -0
  34. package/dist/dts/components/facets/FacetControlsHeader.js +53 -0
  35. package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -0
  36. package/dist/dts/components/facets/FacetEnumList.d.ts +16 -0
  37. package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -0
  38. package/dist/dts/components/facets/FacetEnumList.js +234 -0
  39. package/dist/dts/components/facets/FacetEnumList.js.map +1 -0
  40. package/dist/dts/components/facets/FacetExpander.d.ts.map +1 -1
  41. package/dist/dts/components/facets/FacetExpander.js +2 -2
  42. package/dist/dts/components/facets/FacetExpander.js.map +1 -1
  43. package/dist/dts/components/facets/FacetSelector.d.ts +13 -0
  44. package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -0
  45. package/dist/dts/components/facets/FacetSelector.js +58 -0
  46. package/dist/dts/components/facets/FacetSelector.js.map +1 -0
  47. package/dist/dts/components/facets/MultiSelectValueFacet.js +5 -5
  48. package/dist/dts/components/facets/MultiSelectValueFacet.js.map +1 -1
  49. package/dist/dts/components/facets/RangeFacet.d.ts +4 -5
  50. package/dist/dts/components/facets/RangeFacet.d.ts.map +1 -1
  51. package/dist/dts/components/facets/RangeFacet.js +4 -4
  52. package/dist/dts/components/facets/RangeFacet.js.map +1 -1
  53. package/dist/dts/components/facets/components.d.ts +1 -1
  54. package/dist/dts/components/facets/components.d.ts.map +1 -1
  55. package/dist/dts/components/facets/components.js +3 -3
  56. package/dist/dts/components/facets/components.js.map +1 -1
  57. package/dist/dts/components/facets/constants.d.ts +1 -0
  58. package/dist/dts/components/facets/constants.d.ts.map +1 -1
  59. package/dist/dts/components/facets/constants.js +1 -0
  60. package/dist/dts/components/facets/constants.js.map +1 -1
  61. package/dist/dts/components/facets/createFacetCard.js +4 -4
  62. package/dist/dts/components/facets/createFacetCard.js.map +1 -1
  63. package/dist/dts/components/facets/index.d.ts +5 -0
  64. package/dist/dts/components/facets/index.d.ts.map +1 -0
  65. package/dist/dts/components/facets/index.js +5 -0
  66. package/dist/dts/components/facets/index.js.map +1 -0
  67. package/dist/dts/components/facets/types.d.ts +29 -13
  68. package/dist/dts/components/facets/types.d.ts.map +1 -1
  69. package/dist/dts/components/facets/types.js.map +1 -1
  70. package/dist/dts/components/facets/utils.d.ts +2 -2
  71. package/dist/dts/components/facets/utils.d.ts.map +1 -1
  72. package/dist/dts/components/facets/utils.js +11 -5
  73. package/dist/dts/components/facets/utils.js.map +1 -1
  74. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  75. package/dist/dts/features/CohortBuilder/CohortPanel.js +4 -2
  76. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  77. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/RowTableDetailsPanel.js.map +1 -1
  78. package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +1 -1
  79. package/dist/dts/features/CohortBuilder/QueryExpressionSection.js +21 -9
  80. package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +1 -1
  81. package/dist/dts/features/CohortBuilder/QueryRepresentation.js +2 -2
  82. package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +1 -1
  83. package/dist/dts/features/CohortBuilder/types.d.ts +6 -4
  84. package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
  85. package/dist/dts/features/CohortBuilder/types.js.map +1 -1
  86. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts +3 -0
  87. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts.map +1 -0
  88. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js +13 -0
  89. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js.map +1 -0
  90. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts +16 -0
  91. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -0
  92. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +70 -0
  93. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -0
  94. package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts +4 -0
  95. package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -0
  96. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +17 -0
  97. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -0
  98. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts +12 -0
  99. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts.map +1 -0
  100. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js +26 -0
  101. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js.map +1 -0
  102. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts +11 -0
  103. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -0
  104. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js +34 -0
  105. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js.map +1 -0
  106. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts +16 -0
  107. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts.map +1 -0
  108. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js +22 -0
  109. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js.map +1 -0
  110. package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.d.ts +8 -0
  111. package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.d.ts.map +1 -0
  112. package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.js +8 -0
  113. package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.js.map +1 -0
  114. package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts +5 -0
  115. package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -0
  116. package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.js +10 -0
  117. package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.js.map +1 -0
  118. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts +4 -0
  119. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -0
  120. package/dist/dts/features/CohortDiscovery/IndexPanel.js +96 -0
  121. package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -0
  122. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts +14 -0
  123. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -0
  124. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js +56 -0
  125. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js.map +1 -0
  126. package/dist/dts/features/CohortDiscovery/appApi.d.ts +19 -0
  127. package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -0
  128. package/dist/dts/features/CohortDiscovery/appApi.js +27 -0
  129. package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -0
  130. package/dist/dts/features/CohortDiscovery/hooks.d.ts +4 -0
  131. package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -0
  132. package/dist/dts/features/CohortDiscovery/hooks.js +17 -0
  133. package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -0
  134. package/dist/dts/features/CohortDiscovery/registerApp.d.ts +3 -0
  135. package/dist/dts/features/CohortDiscovery/registerApp.d.ts.map +1 -0
  136. package/dist/dts/features/CohortDiscovery/registerApp.js +17 -0
  137. package/dist/dts/features/CohortDiscovery/registerApp.js.map +1 -0
  138. package/dist/dts/features/CohortDiscovery/types.d.ts +12 -0
  139. package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -0
  140. package/dist/dts/features/CohortDiscovery/types.js +2 -0
  141. package/dist/dts/features/CohortDiscovery/types.js.map +1 -0
  142. package/dist/dts/features/CohortDiscovery/utils.d.ts +3 -0
  143. package/dist/dts/features/CohortDiscovery/utils.d.ts.map +1 -0
  144. package/dist/dts/features/CohortDiscovery/utils.js +10 -0
  145. package/dist/dts/features/CohortDiscovery/utils.js.map +1 -0
  146. package/dist/dts/features/CohortDiversity/CohortDiversityApp.d.ts +4 -0
  147. package/dist/dts/features/CohortDiversity/CohortDiversityApp.d.ts.map +1 -0
  148. package/dist/dts/features/CohortDiversity/CohortDiversityApp.js +54 -0
  149. package/dist/dts/features/CohortDiversity/CohortDiversityApp.js.map +1 -0
  150. package/dist/dts/features/CohortDiversity/ComnparisonCard.d.ts +15 -0
  151. package/dist/dts/features/CohortDiversity/ComnparisonCard.d.ts.map +1 -0
  152. package/dist/dts/features/CohortDiversity/ComnparisonCard.js +32 -0
  153. package/dist/dts/features/CohortDiversity/ComnparisonCard.js.map +1 -0
  154. package/dist/dts/features/CohortDiversity/ComparisonCards.d.ts +15 -0
  155. package/dist/dts/features/CohortDiversity/ComparisonCards.d.ts.map +1 -0
  156. package/dist/dts/features/CohortDiversity/ComparisonCards.js +14 -0
  157. package/dist/dts/features/CohortDiversity/ComparisonCards.js.map +1 -0
  158. package/dist/dts/features/CohortDiversity/appApi.d.ts +8 -0
  159. package/dist/dts/features/CohortDiversity/appApi.d.ts.map +1 -0
  160. package/dist/dts/features/CohortDiversity/appApi.js +4 -0
  161. package/dist/dts/features/CohortDiversity/appApi.js.map +1 -0
  162. package/dist/dts/features/CohortDiversity/charts/BarComparison.d.ts +5 -0
  163. package/dist/dts/features/CohortDiversity/charts/BarComparison.d.ts.map +1 -0
  164. package/dist/dts/features/CohortDiversity/charts/BarComparison.js +70 -0
  165. package/dist/dts/features/CohortDiversity/charts/BarComparison.js.map +1 -0
  166. package/dist/dts/features/CohortDiversity/charts/ChartCard.d.ts +16 -0
  167. package/dist/dts/features/CohortDiversity/charts/ChartCard.d.ts.map +1 -0
  168. package/dist/dts/features/CohortDiversity/charts/ChartCard.js +45 -0
  169. package/dist/dts/features/CohortDiversity/charts/ChartCard.js.map +1 -0
  170. package/dist/dts/features/CohortDiversity/charts/ComparisonCharts.d.ts +13 -0
  171. package/dist/dts/features/CohortDiversity/charts/ComparisonCharts.d.ts.map +1 -0
  172. package/dist/dts/features/CohortDiversity/charts/ComparisonCharts.js +18 -0
  173. package/dist/dts/features/CohortDiversity/charts/ComparisonCharts.js.map +1 -0
  174. package/dist/dts/features/CohortDiversity/charts/RadarComparison.d.ts +5 -0
  175. package/dist/dts/features/CohortDiversity/charts/RadarComparison.d.ts.map +1 -0
  176. package/dist/dts/features/CohortDiversity/charts/RadarComparison.js +90 -0
  177. package/dist/dts/features/CohortDiversity/charts/RadarComparison.js.map +1 -0
  178. package/dist/dts/features/CohortDiversity/charts/diversityChartsFactory.d.ts +6 -0
  179. package/dist/dts/features/CohortDiversity/charts/diversityChartsFactory.d.ts.map +1 -0
  180. package/dist/dts/features/CohortDiversity/charts/diversityChartsFactory.js +24 -0
  181. package/dist/dts/features/CohortDiversity/charts/diversityChartsFactory.js.map +1 -0
  182. package/dist/dts/features/CohortDiversity/charts/types.d.ts +12 -0
  183. package/dist/dts/features/CohortDiversity/charts/types.d.ts.map +1 -0
  184. package/dist/dts/features/CohortDiversity/charts/types.js +2 -0
  185. package/dist/dts/features/CohortDiversity/charts/types.js.map +1 -0
  186. package/dist/dts/features/CohortDiversity/charts/utils.d.ts +2 -0
  187. package/dist/dts/features/CohortDiversity/charts/utils.d.ts.map +1 -0
  188. package/dist/dts/features/CohortDiversity/charts/utils.js +4 -0
  189. package/dist/dts/features/CohortDiversity/charts/utils.js.map +1 -0
  190. package/dist/dts/features/CohortDiversity/diversityApi.d.ts +141 -0
  191. package/dist/dts/features/CohortDiversity/diversityApi.d.ts.map +1 -0
  192. package/dist/dts/features/CohortDiversity/diversityApi.js +14 -0
  193. package/dist/dts/features/CohortDiversity/diversityApi.js.map +1 -0
  194. package/dist/dts/features/CohortDiversity/registerApp.d.ts +3 -0
  195. package/dist/dts/features/CohortDiversity/registerApp.d.ts.map +1 -0
  196. package/dist/dts/features/CohortDiversity/registerApp.js +19 -0
  197. package/dist/dts/features/CohortDiversity/registerApp.js.map +1 -0
  198. package/dist/dts/features/CohortDiversity/statistics/StatisticsCard.d.ts +9 -0
  199. package/dist/dts/features/CohortDiversity/statistics/StatisticsCard.d.ts.map +1 -0
  200. package/dist/dts/features/CohortDiversity/statistics/StatisticsCard.js +68 -0
  201. package/dist/dts/features/CohortDiversity/statistics/StatisticsCard.js.map +1 -0
  202. package/dist/dts/features/CohortDiversity/statistics/StatisticsPanel.d.ts +13 -0
  203. package/dist/dts/features/CohortDiversity/statistics/StatisticsPanel.d.ts.map +1 -0
  204. package/dist/dts/features/CohortDiversity/statistics/StatisticsPanel.js +16 -0
  205. package/dist/dts/features/CohortDiversity/statistics/StatisticsPanel.js.map +1 -0
  206. package/dist/dts/features/CohortDiversity/statistics/data/data.d.ts +2 -0
  207. package/dist/dts/features/CohortDiversity/statistics/data/data.d.ts.map +1 -0
  208. package/dist/dts/features/CohortDiversity/statistics/data/data.js +50 -0
  209. package/dist/dts/features/CohortDiversity/statistics/data/data.js.map +1 -0
  210. package/dist/dts/features/CohortDiversity/statistics/data/tests/diversityResponse.json +228 -0
  211. package/dist/dts/features/CohortDiversity/statistics/data/tests/processHistogramResponse.unit.test.d.ts +2 -0
  212. package/dist/dts/features/CohortDiversity/statistics/data/tests/processHistogramResponse.unit.test.d.ts.map +1 -0
  213. package/dist/dts/features/CohortDiversity/statistics/data/tests/processHistogramResponse.unit.test.js +365 -0
  214. package/dist/dts/features/CohortDiversity/statistics/data/tests/processHistogramResponse.unit.test.js.map +1 -0
  215. package/dist/dts/features/CohortDiversity/statistics/data/utils.d.ts +49 -0
  216. package/dist/dts/features/CohortDiversity/statistics/data/utils.d.ts.map +1 -0
  217. package/dist/dts/features/CohortDiversity/statistics/data/utils.js +146 -0
  218. package/dist/dts/features/CohortDiversity/statistics/data/utils.js.map +1 -0
  219. package/dist/dts/features/CohortDiversity/statistics/queries.d.ts +6 -0
  220. package/dist/dts/features/CohortDiversity/statistics/queries.d.ts.map +1 -0
  221. package/dist/dts/features/CohortDiversity/statistics/queries.js +24 -0
  222. package/dist/dts/features/CohortDiversity/statistics/queries.js.map +1 -0
  223. package/dist/dts/features/CohortDiversity/types.d.ts +26 -0
  224. package/dist/dts/features/CohortDiversity/types.d.ts.map +1 -0
  225. package/dist/dts/features/CohortDiversity/types.js +2 -0
  226. package/dist/dts/features/CohortDiversity/types.js.map +1 -0
  227. package/dist/dts/features/Discovery/Charts/ChartsPanel.d.ts +6 -0
  228. package/dist/dts/features/Discovery/Charts/ChartsPanel.d.ts.map +1 -0
  229. package/dist/dts/features/Discovery/Charts/ChartsPanel.js +135 -0
  230. package/dist/dts/features/Discovery/Charts/ChartsPanel.js.map +1 -0
  231. package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
  232. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +14 -14
  233. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
  234. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
  235. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.js +1 -1
  236. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.js.map +1 -1
  237. package/dist/dts/features/Discovery/types.d.ts +13 -0
  238. package/dist/dts/features/Discovery/types.d.ts.map +1 -1
  239. package/dist/dts/features/Discovery/types.js.map +1 -1
  240. package/dist/dts/features/Navigation/NavigationBar.d.ts.map +1 -1
  241. package/dist/dts/features/Navigation/NavigationBar.js +1 -1
  242. package/dist/dts/features/Navigation/NavigationBar.js.map +1 -1
  243. package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
  244. package/dist/dts/features/Navigation/TopBar.js +1 -1
  245. package/dist/dts/features/Navigation/TopBar.js.map +1 -1
  246. package/dist/dts/index.d.ts +3 -1
  247. package/dist/dts/index.d.ts.map +1 -1
  248. package/dist/dts/index.js +3 -1
  249. package/dist/dts/index.js.map +1 -1
  250. package/dist/dts/lib/common/staticProps.js +1 -1
  251. package/dist/dts/lib/common/staticProps.js.map +1 -1
  252. package/dist/dts/lib/content/types.d.ts +6 -0
  253. package/dist/dts/lib/content/types.d.ts.map +1 -1
  254. package/dist/dts/lib/session/session.js.map +1 -1
  255. package/dist/dts/pages/admin/authz/data.d.ts.map +1 -1
  256. package/dist/dts/pages/admin/authz/data.js +5 -2
  257. package/dist/dts/pages/admin/authz/data.js.map +1 -1
  258. package/dist/dts/types/common.d.ts +5 -0
  259. package/dist/dts/types/common.d.ts.map +1 -0
  260. package/dist/dts/types/common.js +2 -0
  261. package/dist/dts/types/common.js.map +1 -0
  262. package/dist/dts/types/index.d.ts +1 -0
  263. package/dist/dts/types/index.d.ts.map +1 -1
  264. package/dist/dts/types/index.js +1 -0
  265. package/dist/dts/types/index.js.map +1 -1
  266. package/dist/dts/utils/isType.d.ts.map +1 -1
  267. package/dist/dts/utils/strings.d.ts +4 -0
  268. package/dist/dts/utils/strings.d.ts.map +1 -1
  269. package/dist/dts/utils/strings.js +15 -3
  270. package/dist/dts/utils/strings.js.map +1 -1
  271. package/dist/esm/index.js +7957 -5851
  272. package/dist/esm/index.js.map +1 -1
  273. package/dist/index.d.ts +60 -31
  274. package/dist/tsconfig.tsbuildinfo +1 -1
  275. package/package.json +5 -3
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React$1, { ReactElement, PropsWithChildren, ReactNode, CSSProperties } from 'react';
2
+ import * as React$1 from 'react';
3
+ import React__default, { ReactElement, PropsWithChildren, ReactNode, CSSProperties } from 'react';
3
4
  import { ButtonProps, TitleOrder } from '@mantine/core';
4
- import { JSONObject, HistogramDataArray, AggregationsData, EnumFilterValue, FacetDefinition } from '@gen3/core';
5
+ import { HistogramDataArray, JSONObject, AggregationsData, EnumFilterValue, FacetDefinition } from '@gen3/core';
5
6
  import { MRT_RowData, MRT_Cell, MRT_Row } from 'mantine-react-table';
6
7
  import { EChartsOption, SetOptionOpts } from 'echarts';
7
8
  import { GetServerSideProps, GetStaticProps, NextPage, NextApiRequest, NextApiResponse } from 'next';
@@ -13,6 +14,11 @@ type StylingOverrideWithMergeControl = Record<string, string> & {
13
14
  mergeMode?: StylingMergeMode;
14
15
  };
15
16
 
17
+ interface TitleAndDescription {
18
+ title: string;
19
+ description?: string;
20
+ }
21
+
16
22
  interface ColumnLinks {
17
23
  heading: string;
18
24
  items: ReadonlyArray<{
@@ -205,7 +211,7 @@ interface ClassProps {
205
211
  readonly className?: string;
206
212
  }
207
213
  interface HoverLinkProps extends ClassProps {
208
- children?: React$1.ReactNode;
214
+ children?: React__default.ReactNode;
209
215
  readonly href: string;
210
216
  }
211
217
  /**
@@ -231,7 +237,7 @@ declare const HoverLink: ({ className, href, children }: HoverLinkProps) => reac
231
237
  declare const NavigationBar: ({ logo, title, items, classNames, }: NavigationProps) => ReactElement;
232
238
  //# sourceMappingURL=NavigationBar.d.ts.map
233
239
 
234
- type NavigationButtonProps = ButtonProps & React$1.ComponentPropsWithoutRef<'a'> & {
240
+ type NavigationButtonProps = ButtonProps & React__default.ComponentPropsWithoutRef<'a'> & {
235
241
  $selected?: boolean;
236
242
  };
237
243
  declare const NavigationButton: ({ $selected, ...props }: NavigationButtonProps) => react_jsx_runtime.JSX.Element;
@@ -252,6 +258,17 @@ interface SummaryStatisticsConfig {
252
258
  displayFunction?: string;
253
259
  }
254
260
 
261
+ interface SummaryChart extends Partial<TitleAndDescription> {
262
+ readonly chartType: string;
263
+ readonly valueType?: 'count' | 'percent';
264
+ readonly dataLabels?: Record<string, string>;
265
+ }
266
+ interface ChartProps {
267
+ data: HistogramDataArray;
268
+ total: number;
269
+ valueType?: 'count' | 'percent';
270
+ }
271
+
255
272
  interface TagData {
256
273
  name: string;
257
274
  category: string;
@@ -403,6 +420,17 @@ interface TagsConfig {
403
420
  tagCategories: TagCategory[];
404
421
  showUnknownTags?: boolean;
405
422
  }
423
+ interface ChartsSection {
424
+ enabled: boolean;
425
+ title?: string;
426
+ showLegends?: {
427
+ enabled: boolean;
428
+ showSwitch?: boolean;
429
+ };
430
+ charts?: Array<SummaryChart & {
431
+ data: string[];
432
+ }>;
433
+ }
406
434
  interface DiscoveryIndexConfig {
407
435
  guidType?: string;
408
436
  studyField?: string;
@@ -415,6 +443,7 @@ interface DiscoveryIndexConfig {
415
443
  search?: SearchConfig;
416
444
  authorization: DataAuthorization;
417
445
  dataLoader?: DataLoader;
446
+ chartsSection?: ChartsSection;
418
447
  };
419
448
  aggregations: SummaryStatisticsConfig[];
420
449
  tags: TagsConfig;
@@ -502,12 +531,12 @@ declare const registerDiscoveryDefaultStudyPreviewRenderers: () => void;
502
531
 
503
532
  interface DiscoveryProviderValue {
504
533
  discoveryConfig: DiscoveryIndexConfig;
505
- setStudyDetails: React$1.Dispatch<React$1.SetStateAction<JSONObject>>;
534
+ setStudyDetails: React__default.Dispatch<React__default.SetStateAction<JSONObject>>;
506
535
  studyDetails: JSONObject;
507
536
  }
508
537
  declare const useDiscoveryContext: () => DiscoveryProviderValue;
509
538
  declare const DiscoveryProvider: ({ children, discoveryIndexConfig, }: {
510
- children: React$1.ReactNode;
539
+ children: React__default.ReactNode;
511
540
  discoveryIndexConfig: DiscoveryIndexConfig;
512
541
  }) => react_jsx_runtime.JSX.Element;
513
542
  //# sourceMappingURL=DiscoveryProvider.d.ts.map
@@ -549,7 +578,7 @@ interface APICredentials {
549
578
  }
550
579
 
551
580
  declare const ProfileProvider: ({ children, profileConfig, }: {
552
- children: React$1.ReactNode;
581
+ children: React__default.ReactNode;
553
582
  profileConfig: ProfileConfig;
554
583
  }) => react_jsx_runtime.JSX.Element;
555
584
  //# sourceMappingURL=ProfileProvider.d.ts.map
@@ -568,7 +597,7 @@ declare const ResourcesFilters: ({ selectedFilters, setFilters, }: ResourcesFilt
568
597
  //# sourceMappingURL=ResourcesFilters.d.ts.map
569
598
 
570
599
  interface LoginButtonProps {
571
- readonly icon?: React$1.ReactElement | string;
600
+ readonly icon?: React__default.ReactElement | string;
572
601
  readonly hideText?: boolean;
573
602
  className?: string;
574
603
  tooltip?: string;
@@ -659,22 +688,11 @@ declare const NoAccessModal: ({ openModal, }: {
659
688
 
660
689
  interface Gen3StandardModalsProviderProps {
661
690
  config: ModalsConfig;
662
- children: React$1.ReactNode;
691
+ children: React__default.ReactNode;
663
692
  }
664
693
  declare const Gen3ModalsProvider: ({ config, children, }: Gen3StandardModalsProviderProps) => react_jsx_runtime.JSX.Element;
665
694
  //# sourceMappingURL=Gen3ModalsProvider.d.ts.map
666
695
 
667
- interface SummaryChart {
668
- readonly title: string;
669
- readonly chartType: string;
670
- readonly valueType?: 'count' | 'percent';
671
- }
672
- interface ChartProps {
673
- data: HistogramDataArray;
674
- total: number;
675
- valueType?: 'count' | 'percent';
676
- }
677
-
678
696
  declare const capitalize: (original: string) => string;
679
697
  declare const truncateString: (str: string, n: number) => string;
680
698
  declare const removeKey: (key: any, { [key]: _, ...rest }: {
@@ -687,22 +705,23 @@ declare const processRangeKeyLabel: (key: [number, number]) => string;
687
705
  /**
688
706
  * Computes the row span for each item in the charts object.
689
707
  *
690
- * @param { Record<string, SummaryChart>} charts - The charts object containing summary charts.
708
+ * @param { number } numItems - The charts object containing summary charts.
691
709
  * @param {number} [numCols=3] - The number of columns per row.
692
710
  * @returns {number[]} - An array of row spans for each item in the charts object.
693
711
  */
694
- declare const computeRowSpan: (charts: Record<string, SummaryChart>, numCols?: number) => Array<number>;
712
+ declare const computeRowSpan: (numItems: number, numCols?: number) => Array<number>;
695
713
 
696
714
  interface ChartsProps {
697
- index: string;
698
715
  charts: Record<string, SummaryChart>;
699
716
  counts?: number;
700
717
  data: AggregationsData;
701
718
  isSuccess: boolean;
702
719
  isError?: boolean;
703
720
  numCols?: number;
721
+ style?: 'tile' | 'box';
722
+ showLegends?: boolean;
704
723
  }
705
- declare const Charts: ({ index, charts, data, counts, isSuccess, numCols, }: ChartsProps) => react_jsx_runtime.JSX.Element;
724
+ declare const Charts: ({ charts, data, counts, isSuccess, numCols, style, showLegends, }: ChartsProps) => react_jsx_runtime.JSX.Element;
706
725
 
707
726
  interface ReactEChartsProps {
708
727
  option: EChartsOption;
@@ -728,7 +747,7 @@ interface FacetChartProps {
728
747
  readonly maxBins?: number;
729
748
  readonly valueLabel?: string;
730
749
  }
731
- declare const EnumFacetChart: React$1.FC<FacetChartProps>;
750
+ declare const EnumFacetChart: React__default.FC<FacetChartProps>;
732
751
 
733
752
  type RendererFunction<T> = (props: T, ...params: any[]) => ReactNode;
734
753
  interface RendererFunctionCatalogEntry<T> {
@@ -874,14 +893,16 @@ interface ManifestFieldsConfig {
874
893
  }
875
894
  interface DataTypeConfig {
876
895
  dataType: string;
877
- nodeCountTitle: string;
878
- fieldMapping: ReadonlyArray<FieldToName>;
879
- manifestMapping?: ManifestFieldsConfig;
896
+ nodeCountTitle?: string;
880
897
  accessibleFieldCheckList?: string[];
881
898
  accessibleValidationField?: string;
882
899
  tierAccessLevel?: 'libre' | 'regular' | 'private';
883
900
  tierAccessLimit?: number;
884
901
  }
902
+ interface DataTypeConfigWithManifest extends DataTypeConfig {
903
+ manifestMapping?: ManifestFieldsConfig;
904
+ fieldMapping?: ReadonlyArray<FieldToName>;
905
+ }
885
906
  interface DownloadButtonConfig extends DownloadButtonProps {
886
907
  dropdownId?: string;
887
908
  }
@@ -892,7 +913,7 @@ interface DropdownsWithButtonsProps extends DropdownButtonsConfig {
892
913
  dropdownItems: ReadonlyArray<DownloadButtonProps>;
893
914
  }
894
915
  interface CohortPanelConfig {
895
- readonly guppyConfig: DataTypeConfig;
916
+ readonly guppyConfig: DataTypeConfigWithManifest;
896
917
  readonly tabTitle: string;
897
918
  readonly charts?: Record<string, SummaryChart>;
898
919
  readonly table?: SummaryTable;
@@ -968,6 +989,10 @@ declare const userHasMethodForServiceOnResource: (method: string, service: strin
968
989
  declare const focusStyles = "focus-visible:outline-none focus-visible:ring-offset-2 focus:ring-offset-white rounded-md focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-focusColor";
969
990
 
970
991
  declare const stripTrailingSlash: (str: string) => string;
992
+ declare const SPECIAL_CASE_FIELDS: {
993
+ icd_10_code: string;
994
+ };
995
+ declare const toDisplayName: (field: string) => string;
971
996
 
972
997
  declare const isArrayOfString: (value: any) => value is Array<string>;
973
998
  declare const isTextTransform: (value: any) => value is CSSProperties["textTransform"];
@@ -1053,9 +1078,13 @@ interface ErrorCardProps {
1053
1078
  message: string;
1054
1079
  icon?: ReactElement;
1055
1080
  }
1056
- declare const ErrorCard: React$1.FunctionComponent<ErrorCardProps>;
1081
+ declare const ErrorCard: React__default.FunctionComponent<ErrorCardProps>;
1057
1082
  //# sourceMappingURL=ErrorCard.d.ts.map
1058
1083
 
1084
+ declare const registerCohortDiscoveryApp: () => React$1.ReactNode;
1085
+
1086
+ declare const registerCohortDiversityApp: () => React$1.ReactNode;
1087
+
1059
1088
  interface Gen3ProviderProps {
1060
1089
  colors: Record<string, TenStringArray>;
1061
1090
  icons: RegisteredIcons;
@@ -1388,4 +1417,4 @@ declare function export_default$1(req: NextApiRequest, res: NextApiResponse): Pr
1388
1417
 
1389
1418
  declare function export_default(req: NextApiRequest, res: NextApiResponse): Promise<void>;
1390
1419
 
1391
- export { AISearchPageGetServerSideProps, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AuthzPage, type BannerProps, BaseModal, type CellRenderFunctionProps, type CellRendererFunctionProps, type ChartProps, Charts, CohortBuilder, type CohortBuilderConfiguration, ColorThemePage, ColorThemePageGetServerSideProps, ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, type DiscoveryConfig, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, type Fonts, Footer, type FooterProps, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor, Header, type HeaderProps, HoverLink, LandingPage, LandingPageGetStaticProps, LoginButton, type LoginConfig, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, type ModalsConfig, NavPageLayout, type NavPageLayoutProps, NavigationBar, NavigationButton, type NavigationProps, NoAccessModal, type ProfileConfig, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, QueryPage, QueryPageGetServerSideProps, ReactECharts, type ReactEChartsProps, type RegisteredIcons, ResourcesFilters, type RowRenderFunctionParams, type SessionConfiguration, SessionExpiredModal, type StudyDetailsField, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, type SummaryChart, type TableDetailsPanelProps, TagCloud, type TagData, type TagsConfig, TailwindConfig, type TenStringArray, type TopBarProps, User$1 as User, type WorkspaceConfiguration, WorkspacesPage, WorkspacesPageGetServerSideProps, WorkspacesPanel, capitalize, computeRowSpan, create10ColorAccessibleContrast, create10ColorPallet, export_default$1 as credentialsLogin, export_default as credentialsLogout, extractObjectKey, focusStyles, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getParamsValueAsString, getTagInfo, hasOwnProperty, isArrayOfString, isPropertyKey, isTextTransform, processLabel, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, removeKey, resourcePathFromProjectID, export_default$2 as sessionLogout, export_default$3 as sessionToken, stripTrailingSlash, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource };
1420
+ export { AISearchPageGetServerSideProps, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AuthzPage, type BannerProps, BaseModal, type CellRenderFunctionProps, type CellRendererFunctionProps, type ChartProps, Charts, CohortBuilder, type CohortBuilderConfiguration, ColorThemePage, ColorThemePageGetServerSideProps, ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, type DiscoveryConfig, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, type Fonts, Footer, type FooterProps, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor, Header, type HeaderProps, HoverLink, LandingPage, LandingPageGetStaticProps, LoginButton, type LoginConfig, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, type ModalsConfig, NavPageLayout, type NavPageLayoutProps, NavigationBar, NavigationButton, type NavigationProps, NoAccessModal, type ProfileConfig, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, QueryPage, QueryPageGetServerSideProps, ReactECharts, type ReactEChartsProps, type RegisteredIcons, ResourcesFilters, type RowRenderFunctionParams, SPECIAL_CASE_FIELDS, type SessionConfiguration, SessionExpiredModal, type StudyDetailsField, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, type SummaryChart, type TableDetailsPanelProps, TagCloud, type TagData, type TagsConfig, TailwindConfig, type TenStringArray, type TopBarProps, User$1 as User, type WorkspaceConfiguration, WorkspacesPage, WorkspacesPageGetServerSideProps, WorkspacesPanel, capitalize, computeRowSpan, create10ColorAccessibleContrast, create10ColorPallet, export_default$1 as credentialsLogin, export_default as credentialsLogout, extractObjectKey, focusStyles, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getParamsValueAsString, getTagInfo, hasOwnProperty, isArrayOfString, isPropertyKey, isTextTransform, processLabel, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerCohortDiscoveryApp, registerCohortDiversityApp, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, removeKey, resourcePathFromProjectID, export_default$2 as sessionLogout, export_default$3 as sessionToken, stripTrailingSlash, toDisplayName, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource };