@gen3/frontend 0.10.97 → 0.10.99

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 (337) hide show
  1. package/dist/cjs/index.js +9307 -8667
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/api/staticNotebook/index.d.ts +4 -0
  4. package/dist/dts/api/staticNotebook/index.d.ts.map +1 -0
  5. package/dist/dts/api/staticNotebook/index.js +118 -0
  6. package/dist/dts/api/staticNotebook/index.js.map +1 -0
  7. package/dist/dts/api/staticNotebooks/index.d.ts +4 -0
  8. package/dist/dts/api/staticNotebooks/index.d.ts.map +1 -0
  9. package/dist/dts/api/staticNotebooks/index.js +118 -0
  10. package/dist/dts/api/staticNotebooks/index.js.map +1 -0
  11. package/dist/dts/components/Login/LoginPanel.js +0 -1
  12. package/dist/dts/components/Login/LoginPanel.js.map +1 -1
  13. package/dist/dts/components/Protected/ProtectedContent.d.ts.map +1 -1
  14. package/dist/dts/components/Protected/ProtectedContent.js +9 -4
  15. package/dist/dts/components/Protected/ProtectedContent.js.map +1 -1
  16. package/dist/dts/components/SegmentedControl.d.ts +8 -0
  17. package/dist/dts/components/SegmentedControl.d.ts.map +1 -0
  18. package/dist/dts/components/SegmentedControl.js +23 -0
  19. package/dist/dts/components/SegmentedControl.js.map +1 -0
  20. package/dist/dts/components/charts/CollapsableCharts.d.ts +12 -0
  21. package/dist/dts/components/charts/CollapsableCharts.d.ts.map +1 -0
  22. package/dist/dts/components/charts/CollapsableCharts.js +24 -0
  23. package/dist/dts/components/charts/CollapsableCharts.js.map +1 -0
  24. package/dist/dts/components/charts/index.d.ts +2 -1
  25. package/dist/dts/components/charts/index.d.ts.map +1 -1
  26. package/dist/dts/components/charts/index.js +2 -1
  27. package/dist/dts/components/charts/index.js.map +1 -1
  28. package/dist/dts/components/charts/types.d.ts +9 -0
  29. package/dist/dts/components/charts/types.d.ts.map +1 -1
  30. package/dist/dts/components/facets/EnumFacet.js +2 -2
  31. package/dist/dts/components/facets/EnumFacet.js.map +1 -1
  32. package/dist/dts/components/facets/ExactValueFacet.d.ts.map +1 -1
  33. package/dist/dts/components/facets/ExactValueFacet.js +3 -3
  34. package/dist/dts/components/facets/ExactValueFacet.js.map +1 -1
  35. package/dist/dts/components/facets/FacetSelectionModal.d.ts +22 -0
  36. package/dist/dts/components/facets/FacetSelectionModal.d.ts.map +1 -0
  37. package/dist/dts/components/facets/FacetSelectionModal.js +77 -0
  38. package/dist/dts/components/facets/FacetSelectionModal.js.map +1 -0
  39. package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
  40. package/dist/dts/components/facets/FacetSelector.js +7 -4
  41. package/dist/dts/components/facets/FacetSelector.js.map +1 -1
  42. package/dist/dts/components/facets/FacetTabs.d.ts +38 -0
  43. package/dist/dts/components/facets/FacetTabs.d.ts.map +1 -0
  44. package/dist/dts/components/facets/FacetTabs.js +166 -0
  45. package/dist/dts/components/facets/FacetTabs.js.map +1 -0
  46. package/dist/dts/components/facets/MultiSelectValueFacet.d.ts.map +1 -1
  47. package/dist/dts/components/facets/MultiSelectValueFacet.js +3 -3
  48. package/dist/dts/components/facets/MultiSelectValueFacet.js.map +1 -1
  49. package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.d.ts +5 -0
  50. package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.d.ts.map +1 -0
  51. package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.js +29 -0
  52. package/dist/dts/components/facets/NumericRangeFacet/DaysOrYears.js.map +1 -0
  53. package/dist/dts/components/facets/NumericRangeFacet/FromTo.d.ts +32 -0
  54. package/dist/dts/components/facets/NumericRangeFacet/FromTo.d.ts.map +1 -0
  55. package/dist/dts/components/facets/NumericRangeFacet/FromTo.js +168 -0
  56. package/dist/dts/components/facets/NumericRangeFacet/FromTo.js.map +1 -0
  57. package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.d.ts +5 -0
  58. package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.d.ts.map +1 -0
  59. package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.js +30 -0
  60. package/dist/dts/components/facets/NumericRangeFacet/NumericRangePanel.js.map +1 -0
  61. package/dist/dts/components/facets/NumericRangeFacet/PercentRange.d.ts +5 -0
  62. package/dist/dts/components/facets/NumericRangeFacet/PercentRange.d.ts.map +1 -0
  63. package/dist/dts/components/facets/NumericRangeFacet/PercentRange.js +11 -0
  64. package/dist/dts/components/facets/NumericRangeFacet/PercentRange.js.map +1 -0
  65. package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.d.ts +12 -0
  66. package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.d.ts.map +1 -0
  67. package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.js +113 -0
  68. package/dist/dts/components/facets/NumericRangeFacet/RangeInputWithPrefixedRanges.js.map +1 -0
  69. package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.d.ts +26 -0
  70. package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.d.ts.map +1 -0
  71. package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.js +63 -0
  72. package/dist/dts/components/facets/NumericRangeFacet/RangeValueSelector.js.map +1 -0
  73. package/dist/dts/components/facets/NumericRangeFacet/Year.d.ts +5 -0
  74. package/dist/dts/components/facets/NumericRangeFacet/Year.d.ts.map +1 -0
  75. package/dist/dts/components/facets/NumericRangeFacet/Year.js +23 -0
  76. package/dist/dts/components/facets/NumericRangeFacet/Year.js.map +1 -0
  77. package/dist/dts/components/facets/NumericRangeFacet/Years.d.ts +5 -0
  78. package/dist/dts/components/facets/NumericRangeFacet/Years.d.ts.map +1 -0
  79. package/dist/dts/components/facets/NumericRangeFacet/Years.js +24 -0
  80. package/dist/dts/components/facets/NumericRangeFacet/Years.js.map +1 -0
  81. package/dist/dts/components/facets/NumericRangeFacet/index.d.ts +19 -0
  82. package/dist/dts/components/facets/NumericRangeFacet/index.d.ts.map +1 -0
  83. package/dist/dts/components/facets/NumericRangeFacet/index.js +65 -0
  84. package/dist/dts/components/facets/NumericRangeFacet/index.js.map +1 -0
  85. package/dist/dts/components/facets/NumericRangeFacet/types.d.ts +27 -0
  86. package/dist/dts/components/facets/NumericRangeFacet/types.d.ts.map +1 -0
  87. package/dist/dts/components/facets/NumericRangeFacet/types.js +2 -0
  88. package/dist/dts/components/facets/NumericRangeFacet/types.js.map +1 -0
  89. package/dist/dts/components/facets/NumericRangeFacet/utils.d.ts +52 -0
  90. package/dist/dts/components/facets/NumericRangeFacet/utils.d.ts.map +1 -0
  91. package/dist/dts/components/facets/NumericRangeFacet/utils.js +288 -0
  92. package/dist/dts/components/facets/NumericRangeFacet/utils.js.map +1 -0
  93. package/dist/dts/components/facets/RangeFacet.d.ts +1 -6
  94. package/dist/dts/components/facets/RangeFacet.d.ts.map +1 -1
  95. package/dist/dts/components/facets/RangeFacet.js +3 -3
  96. package/dist/dts/components/facets/RangeFacet.js.map +1 -1
  97. package/dist/dts/components/facets/constants.d.ts +1 -0
  98. package/dist/dts/components/facets/constants.d.ts.map +1 -1
  99. package/dist/dts/components/facets/constants.js +1 -0
  100. package/dist/dts/components/facets/constants.js.map +1 -1
  101. package/dist/dts/components/facets/createFacetCard.d.ts +16 -2
  102. package/dist/dts/components/facets/createFacetCard.d.ts.map +1 -1
  103. package/dist/dts/components/facets/createFacetCard.js +13 -10
  104. package/dist/dts/components/facets/createFacetCard.js.map +1 -1
  105. package/dist/dts/components/facets/createFacetCards.d.ts +10 -0
  106. package/dist/dts/components/facets/createFacetCards.d.ts.map +1 -0
  107. package/dist/dts/components/facets/createFacetCards.js +19 -0
  108. package/dist/dts/components/facets/createFacetCards.js.map +1 -0
  109. package/dist/dts/components/facets/hooks.d.ts +1 -0
  110. package/dist/dts/components/facets/hooks.d.ts.map +1 -1
  111. package/dist/dts/components/facets/hooks.js +10 -1
  112. package/dist/dts/components/facets/hooks.js.map +1 -1
  113. package/dist/dts/components/facets/index.d.ts +11 -1
  114. package/dist/dts/components/facets/index.d.ts.map +1 -1
  115. package/dist/dts/components/facets/index.js +11 -1
  116. package/dist/dts/components/facets/index.js.map +1 -1
  117. package/dist/dts/components/facets/types.d.ts +97 -3
  118. package/dist/dts/components/facets/types.d.ts.map +1 -1
  119. package/dist/dts/components/facets/types.js.map +1 -1
  120. package/dist/dts/features/Analysis/AnalysisBreadcrumbs.d.ts +11 -0
  121. package/dist/dts/features/Analysis/AnalysisBreadcrumbs.d.ts.map +1 -0
  122. package/dist/dts/features/Analysis/AnalysisBreadcrumbs.js +20 -0
  123. package/dist/dts/features/Analysis/AnalysisBreadcrumbs.js.map +1 -0
  124. package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.d.ts +3 -0
  125. package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.d.ts.map +1 -0
  126. package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.js +78 -0
  127. package/dist/dts/features/Analysis/AnalysisBreadcrumbs.unit.test.js.map +1 -0
  128. package/dist/dts/features/Analysis/AnalysisCard.d.ts.map +1 -1
  129. package/dist/dts/features/Analysis/AnalysisCard.js +6 -4
  130. package/dist/dts/features/Analysis/AnalysisCard.js.map +1 -1
  131. package/dist/dts/features/Analysis/AnalysisCard.stories.d.ts +34 -0
  132. package/dist/dts/features/Analysis/AnalysisCard.stories.d.ts.map +1 -0
  133. package/dist/dts/features/Analysis/AnalysisCard.stories.js +25 -0
  134. package/dist/dts/features/Analysis/AnalysisCard.stories.js.map +1 -0
  135. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +22 -10
  136. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts.map +1 -1
  137. package/dist/dts/features/Analysis/AnalysisCenter.js +2 -2
  138. package/dist/dts/features/Analysis/AnalysisCenter.js.map +1 -1
  139. package/dist/dts/features/Analysis/AnalysisPanel.stories.d.ts +22 -0
  140. package/dist/dts/features/Analysis/AnalysisPanel.stories.d.ts.map +1 -0
  141. package/dist/dts/features/Analysis/AnalysisPanel.stories.js +28 -0
  142. package/dist/dts/features/Analysis/AnalysisPanel.stories.js.map +1 -0
  143. package/dist/dts/features/Analysis/AnalysisWorkspace.d.ts +29 -0
  144. package/dist/dts/features/Analysis/AnalysisWorkspace.d.ts.map +1 -0
  145. package/dist/dts/features/Analysis/AnalysisWorkspace.js +37 -0
  146. package/dist/dts/features/Analysis/AnalysisWorkspace.js.map +1 -0
  147. package/dist/dts/features/Analysis/TextDescription.js +1 -1
  148. package/dist/dts/features/Analysis/context.d.ts +29 -0
  149. package/dist/dts/features/Analysis/context.d.ts.map +1 -0
  150. package/dist/dts/features/Analysis/context.js +34 -0
  151. package/dist/dts/features/Analysis/context.js.map +1 -0
  152. package/dist/dts/features/Analysis/types.d.ts +6 -0
  153. package/dist/dts/features/Analysis/types.d.ts.map +1 -1
  154. package/dist/dts/features/Analysis/types.js.map +1 -1
  155. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +22 -3
  156. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  157. package/dist/dts/features/CohortBuilder/CohortPanel.js +53 -19
  158. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  159. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -1
  160. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +0 -4
  161. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -1
  162. package/dist/dts/features/CohortBuilder/FiltersPanel.d.ts.map +1 -1
  163. package/dist/dts/features/CohortBuilder/FiltersPanel.js +9 -1
  164. package/dist/dts/features/CohortBuilder/FiltersPanel.js.map +1 -1
  165. package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.d.ts +16 -0
  166. package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.d.ts.map +1 -0
  167. package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.js +185 -0
  168. package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.js.map +1 -0
  169. package/dist/dts/features/CohortBuilder/index.d.ts +3 -2
  170. package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
  171. package/dist/dts/features/CohortBuilder/index.js +3 -2
  172. package/dist/dts/features/CohortBuilder/index.js.map +1 -1
  173. package/dist/dts/features/CohortBuilder/types.d.ts +2 -1
  174. package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
  175. package/dist/dts/features/CohortBuilder/types.js.map +1 -1
  176. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
  177. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +5 -1
  178. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
  179. package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
  180. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +10 -9
  181. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
  182. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
  183. package/dist/dts/features/CohortDiscovery/IndexPanel.js +5 -4
  184. package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
  185. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.d.ts.map +1 -1
  186. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js +1 -2
  187. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js.map +1 -1
  188. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.d.ts.map +1 -1
  189. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +1 -0
  190. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
  191. package/dist/dts/features/CohortDiscovery/queryApi.js +0 -380
  192. package/dist/dts/features/CohortDiscovery/queryApi.js.map +1 -1
  193. package/dist/dts/features/Dictionary/types.d.ts +3 -3
  194. package/dist/dts/features/Dictionary/types.d.ts.map +1 -1
  195. package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.d.ts +9 -0
  196. package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.d.ts.map +1 -0
  197. package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.js +24 -0
  198. package/dist/dts/features/Discovery/Charts/CollapsableChartsPanel.js.map +1 -0
  199. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +2 -2
  200. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
  201. package/dist/dts/features/Discovery/types.d.ts +4 -16
  202. package/dist/dts/features/Discovery/types.d.ts.map +1 -1
  203. package/dist/dts/features/Discovery/types.js.map +1 -1
  204. package/dist/dts/features/Navigation/Header.js +1 -1
  205. package/dist/dts/features/Navigation/Header.js.map +1 -1
  206. package/dist/dts/features/Navigation/NavPageLayout.d.ts +3 -3
  207. package/dist/dts/features/Navigation/NavPageLayout.d.ts.map +1 -1
  208. package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
  209. package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
  210. package/dist/dts/features/Navigation/TopBar/TopBar.d.ts.map +1 -1
  211. package/dist/dts/features/Navigation/TopBar/TopBar.js +3 -2
  212. package/dist/dts/features/Navigation/TopBar/TopBar.js.map +1 -1
  213. package/dist/dts/features/Navigation/index.d.ts +2 -2
  214. package/dist/dts/features/Navigation/index.d.ts.map +1 -1
  215. package/dist/dts/features/Navigation/index.js +2 -1
  216. package/dist/dts/features/Navigation/index.js.map +1 -1
  217. package/dist/dts/features/Navigation/types.d.ts +7 -1
  218. package/dist/dts/features/Navigation/types.d.ts.map +1 -1
  219. package/dist/dts/features/Navigation/types.js +19 -1
  220. package/dist/dts/features/Navigation/types.js.map +1 -1
  221. package/dist/dts/features/StaticNotebook/StaticNotebook.d.ts +4 -0
  222. package/dist/dts/features/StaticNotebook/StaticNotebook.d.ts.map +1 -0
  223. package/dist/dts/features/StaticNotebook/StaticNotebook.js +79 -0
  224. package/dist/dts/features/StaticNotebook/StaticNotebook.js.map +1 -0
  225. package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.d.ts +6 -0
  226. package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.d.ts.map +1 -0
  227. package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.js +10 -0
  228. package/dist/dts/features/StaticNotebook/StaticNotebookIFrame.js.map +1 -0
  229. package/dist/dts/features/StaticNotebook/StaticNotebookViewer.d.ts +6 -0
  230. package/dist/dts/features/StaticNotebook/StaticNotebookViewer.d.ts.map +1 -0
  231. package/dist/dts/features/StaticNotebook/StaticNotebookViewer.js +91 -0
  232. package/dist/dts/features/StaticNotebook/StaticNotebookViewer.js.map +1 -0
  233. package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.d.ts +4 -0
  234. package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.d.ts.map +1 -0
  235. package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.js +129 -0
  236. package/dist/dts/features/StaticNotebook/api/staticNotebookAPI.js.map +1 -0
  237. package/dist/dts/features/StaticNotebook/constants.d.ts +4 -0
  238. package/dist/dts/features/StaticNotebook/constants.d.ts.map +1 -0
  239. package/dist/dts/features/StaticNotebook/constants.js +5 -0
  240. package/dist/dts/features/StaticNotebook/constants.js.map +1 -0
  241. package/dist/dts/features/StaticNotebook/index.d.ts +4 -0
  242. package/dist/dts/features/StaticNotebook/index.d.ts.map +1 -0
  243. package/dist/dts/features/StaticNotebook/index.js +4 -0
  244. package/dist/dts/features/StaticNotebook/index.js.map +1 -0
  245. package/dist/dts/index.d.ts +8 -3
  246. package/dist/dts/index.d.ts.map +1 -1
  247. package/dist/dts/index.js +8 -3
  248. package/dist/dts/index.js.map +1 -1
  249. package/dist/dts/lib/common/staticProps.d.ts.map +1 -1
  250. package/dist/dts/lib/common/staticProps.js +28 -8
  251. package/dist/dts/lib/common/staticProps.js.map +1 -1
  252. package/dist/dts/lib/content/types.d.ts +2 -2
  253. package/dist/dts/lib/content/types.d.ts.map +1 -1
  254. package/dist/dts/lib/notebooks/index.d.ts +3 -0
  255. package/dist/dts/lib/notebooks/index.d.ts.map +1 -0
  256. package/dist/dts/lib/notebooks/index.js +96 -0
  257. package/dist/dts/lib/notebooks/index.js.map +1 -0
  258. package/dist/dts/pages/AiSearch/AiSearch.js +1 -1
  259. package/dist/dts/pages/AiSearch/AiSearch.js.map +1 -1
  260. package/dist/dts/pages/AiSearch/data.js +1 -1
  261. package/dist/dts/pages/AiSearch/data.js.map +1 -1
  262. package/dist/dts/pages/Analysis/Analysis.js +1 -1
  263. package/dist/dts/pages/Analysis/Analysis.js.map +1 -1
  264. package/dist/dts/pages/Crosswalk/Crosswalk.js +1 -1
  265. package/dist/dts/pages/Crosswalk/Crosswalk.js.map +1 -1
  266. package/dist/dts/pages/DataDictionary/DataDictionary.js +1 -1
  267. package/dist/dts/pages/DataDictionary/DataDictionary.js.map +1 -1
  268. package/dist/dts/pages/DataLibrary/DataLibrary.js +1 -1
  269. package/dist/dts/pages/DataLibrary/DataLibrary.js.map +1 -1
  270. package/dist/dts/pages/Discovery/Discovery.js +1 -1
  271. package/dist/dts/pages/Discovery/Discovery.js.map +1 -1
  272. package/dist/dts/pages/Explorer/Explorer.js +1 -1
  273. package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
  274. package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
  275. package/dist/dts/pages/Explorer/data.js +17 -4
  276. package/dist/dts/pages/Explorer/data.js.map +1 -1
  277. package/dist/dts/pages/Landing/Landing.js +1 -1
  278. package/dist/dts/pages/Landing/Landing.js.map +1 -1
  279. package/dist/dts/pages/Landing/about-us.js +1 -1
  280. package/dist/dts/pages/Landing/about-us.js.map +1 -1
  281. package/dist/dts/pages/Landing/contact.js +1 -1
  282. package/dist/dts/pages/Landing/contact.js.map +1 -1
  283. package/dist/dts/pages/Landing/resource.js +1 -1
  284. package/dist/dts/pages/Landing/resource.js.map +1 -1
  285. package/dist/dts/pages/Login/Login.js +1 -1
  286. package/dist/dts/pages/Login/Login.js.map +1 -1
  287. package/dist/dts/pages/NotebookLite/NotebookLite.js +1 -1
  288. package/dist/dts/pages/NotebookLite/NotebookLite.js.map +1 -1
  289. package/dist/dts/pages/Profile/Profile.js +1 -1
  290. package/dist/dts/pages/Profile/Profile.js.map +1 -1
  291. package/dist/dts/pages/Query/Query.js +1 -1
  292. package/dist/dts/pages/Query/Query.js.map +1 -1
  293. package/dist/dts/pages/Submission/Submission.js +1 -1
  294. package/dist/dts/pages/Submission/Submission.js.map +1 -1
  295. package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.d.ts +4 -0
  296. package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.d.ts.map +1 -0
  297. package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js +24 -0
  298. package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js.map +1 -0
  299. package/dist/dts/pages/TabbedCohortBuilder/data.d.ts +4 -0
  300. package/dist/dts/pages/TabbedCohortBuilder/data.d.ts.map +1 -0
  301. package/dist/dts/pages/TabbedCohortBuilder/data.js +81 -0
  302. package/dist/dts/pages/TabbedCohortBuilder/data.js.map +1 -0
  303. package/dist/dts/pages/TabbedCohortBuilder/index.d.ts +3 -0
  304. package/dist/dts/pages/TabbedCohortBuilder/index.d.ts.map +1 -0
  305. package/dist/dts/pages/TabbedCohortBuilder/index.js +3 -0
  306. package/dist/dts/pages/TabbedCohortBuilder/index.js.map +1 -0
  307. package/dist/dts/pages/TabbedCohortBuilder/types.d.ts +6 -0
  308. package/dist/dts/pages/TabbedCohortBuilder/types.d.ts.map +1 -0
  309. package/dist/dts/pages/TabbedCohortBuilder/types.js +2 -0
  310. package/dist/dts/pages/TabbedCohortBuilder/types.js.map +1 -0
  311. package/dist/dts/pages/Theme/Colors.js +1 -1
  312. package/dist/dts/pages/Theme/Colors.js.map +1 -1
  313. package/dist/dts/pages/Workspace/Workspace.js +1 -1
  314. package/dist/dts/pages/Workspace/Workspace.js.map +1 -1
  315. package/dist/dts/pages/Workspace/WorkspaceNoAccess.js +1 -1
  316. package/dist/dts/pages/Workspace/WorkspaceNoAccess.js.map +1 -1
  317. package/dist/dts/pages/admin/Workspace/WorkspaceNotebooks.js +1 -1
  318. package/dist/dts/pages/admin/Workspace/WorkspaceNotebooks.js.map +1 -1
  319. package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
  320. package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
  321. package/dist/dts/pages/admin/analysis/data.d.ts +1 -1
  322. package/dist/dts/pages/admin/authz/Authz.js +1 -1
  323. package/dist/dts/pages/admin/authz/Authz.js.map +1 -1
  324. package/dist/dts/pages/admin/authz/data.d.ts +1 -1
  325. package/dist/dts/types/icons.d.ts +5 -3
  326. package/dist/dts/types/icons.d.ts.map +1 -1
  327. package/dist/dts/types/icons.js +5 -3
  328. package/dist/dts/types/icons.js.map +1 -1
  329. package/dist/dts/utils/useScrollToHash.d.ts +8 -0
  330. package/dist/dts/utils/useScrollToHash.d.ts.map +1 -0
  331. package/dist/dts/utils/useScrollToHash.js +25 -0
  332. package/dist/dts/utils/useScrollToHash.js.map +1 -0
  333. package/dist/esm/index.js +9267 -8671
  334. package/dist/esm/index.js.map +1 -1
  335. package/dist/index.d.ts +738 -254
  336. package/dist/tsconfig.tsbuildinfo +1 -1
  337. package/package.json +4 -3
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { JSONObject, HistogramDataArray, AggregationsData, EnumFilterValue, ServiceAndMethod, DataLibraryStoreMode, ExportDatasetFields, Accessibility, SharedFieldMapping, FacetDefinition, Operation, FilterSet, CohortItem, FileItem } from '@gen3/core';
2
+ import { JSONObject, HistogramDataArray, AggregationsData, EnumFilterValue, FacetDefinition, IndexAndField, Operation, CombineMode, DataFetchingResult, Accessibility, SharedFieldMapping, Includes, Intersection, OperatorWithFieldAndArrayOfOperands, ServiceAndMethod, DataLibraryStoreMode, ExportDatasetFields, FilterSet, CohortItem, FileItem } from '@gen3/core';
3
3
  import * as React$1 from 'react';
4
- import React__default, { ReactElement, ReactNode, CSSProperties, PropsWithChildren, RefObject } from 'react';
4
+ import React__default, { ReactElement, ReactNode, CSSProperties, ComponentType, RefObject, PropsWithChildren } from 'react';
5
5
  import { EChartsOption, SetOptionOpts } from 'echarts';
6
+ import { MRT_Row, MRT_RowData, MRT_Cell, MRT_Column, MRT_TableInstance } from 'mantine-react-table';
6
7
  import * as _mantine_core from '@mantine/core';
7
8
  import { ButtonProps, BoxProps, TitleOrder } from '@mantine/core';
8
- import { MRT_RowData, MRT_Cell, MRT_Row, MRT_Column, MRT_TableInstance } from 'mantine-react-table';
9
9
  import * as tailwind_styled_components_dist_tailwind from 'tailwind-styled-components/dist/tailwind';
10
10
  import * as type_fest_source_partial_deep from 'type-fest/source/partial-deep';
11
11
  import { GetServerSideProps, NextPage, GetStaticProps, NextApiRequest, NextApiResponse } from 'next';
@@ -127,11 +127,17 @@ interface NavigationProps {
127
127
  readonly loginIcon?: ReactElement | string;
128
128
  readonly classNames?: StylingOverrideWithMergeControl;
129
129
  }
130
- interface HeaderData {
130
+ interface HeaderMetadata {
131
131
  title: string;
132
132
  content: string;
133
133
  key: string;
134
134
  }
135
+ /**
136
+ * Type guard to check if an object is of type HeaderMetadata
137
+ * @param obj - The object to check
138
+ * @returns True if the object is a valid HeaderMetadata
139
+ */
140
+ declare const isHeaderMetadata: (obj: unknown) => obj is HeaderMetadata;
135
141
  /**
136
142
  * Sitewide props that can be passed to Pages
137
143
  */
@@ -183,7 +189,7 @@ interface Gen3AppConfigData {
183
189
  version?: string;
184
190
  description?: string;
185
191
  schema?: JSONObject;
186
- headerMetadata?: HeaderData;
192
+ headerMetadata?: HeaderMetadata;
187
193
  }
188
194
 
189
195
  interface ServiceColorAndLabel {
@@ -363,6 +369,15 @@ interface ChartProps {
363
369
  };
364
370
  showLegendInChart?: boolean;
365
371
  }
372
+ interface CollapsableChartsPanelConfiguration {
373
+ enabled: boolean;
374
+ title?: string;
375
+ showLegends?: {
376
+ enabled: boolean;
377
+ showSwitch?: boolean;
378
+ };
379
+ charts?: Record<string, SummaryChart>;
380
+ }
366
381
 
367
382
  interface ChartsProps {
368
383
  charts: Record<string, SummaryChart>;
@@ -377,6 +392,16 @@ interface ChartsProps {
377
392
  declare const Charts: ({ charts, data, counts, isSuccess, numCols, style, showLegends, }: ChartsProps) => react_jsx_runtime.JSX.Element;
378
393
  //# sourceMappingURL=Charts.d.ts.map
379
394
 
395
+ interface ChartsPanelProps {
396
+ config: CollapsableChartsPanelConfiguration;
397
+ data: AggregationsData;
398
+ isFetching?: boolean;
399
+ isSuccess?: boolean;
400
+ isError?: boolean;
401
+ }
402
+ declare const CollapsableCharts: ({ config, data }: ChartsPanelProps) => react_jsx_runtime.JSX.Element;
403
+ //# sourceMappingURL=CollapsableCharts.d.ts.map
404
+
380
405
  interface ReactEChartsProps {
381
406
  option: EChartsOption;
382
407
  style?: CSSProperties;
@@ -401,7 +426,664 @@ interface FacetChartProps {
401
426
  readonly maxBins?: number;
402
427
  readonly valueLabel?: string;
403
428
  }
404
- declare const EnumFacetChart: React__default.FC<FacetChartProps>;
429
+ declare const EnumFacetChart: React__default.FC<FacetChartProps>;
430
+
431
+ interface NumericFromTo {
432
+ readonly from: number;
433
+ readonly to: number;
434
+ }
435
+
436
+ type QueryOptions = Record<string, unknown>;
437
+ interface FacetCardProps<T extends FacetCommonHooks> {
438
+ readonly field: string;
439
+ readonly hooks: T;
440
+ readonly valueLabel: string;
441
+ readonly description?: string;
442
+ readonly facetName?: string;
443
+ readonly facetBtnToolTip?: string;
444
+ readonly showSearch?: boolean;
445
+ readonly showFlip?: boolean;
446
+ readonly showSettings?: boolean;
447
+ readonly isFacetView?: boolean;
448
+ readonly showPercent?: boolean;
449
+ readonly startShowingData?: boolean;
450
+ readonly hideIfEmpty?: boolean;
451
+ readonly width?: string;
452
+ readonly dismissCallback?: (arg0: string) => void;
453
+ readonly sharedWithIndices?: Array<IndexAndField>;
454
+ readonly Chart?: React__default.FC<EnumChartProps>;
455
+ readonly queryOptions?: QueryOptions;
456
+ readonly header?: {
457
+ readonly Panel: ComponentType<{
458
+ children: ReactNode;
459
+ }>;
460
+ readonly Label: ComponentType<{
461
+ children: ReactNode;
462
+ }>;
463
+ readonly iconStyle?: string;
464
+ };
465
+ }
466
+ type FacetType = 'enum' | 'exact' | 'range' | 'age' | 'year' | 'years' | 'days' | 'percent' | 'datetime' | 'toggle' | 'multiselect';
467
+ type ClearFacetFunction = (field: string) => void;
468
+ type ClearIndexedFacetFunction = (index: string, field: string) => void;
469
+ type GetTotalCountsFunction = () => number;
470
+ type UpdateFacetFilterFunction = (field: string, filter: Operation) => void;
471
+ type SelectFacetFilterFunction = (field: string) => Operation;
472
+ interface EnumFacetData {
473
+ readonly data?: Record<string, number>;
474
+ readonly isSuccess: boolean;
475
+ readonly enumValues?: Array<string>;
476
+ }
477
+ type ClearFacetHook = () => ClearFacetFunction;
478
+ type UpdateFacetFilterHook = () => UpdateFacetFilterFunction;
479
+ type GetFacetDataFunction = (field: string) => EnumFacetResponse | RangeFacetResponse;
480
+ type GetEnumFacetDataFunction = (field: string) => EnumFacetResponse;
481
+ type GetRangeFacetDataFunction = (field: string) => RangeFacetResponse;
482
+ type GetRangeFacetWithDefinedRangesDataFunction = (field: string, ranges: ReadonlyArray<NumericFromTo>) => RangeFacetResponse;
483
+ type FieldNameToTitleFunction = (field: string, sections?: number) => string;
484
+ type GetFacetCombineModeFunction = (field: string) => CombineMode;
485
+ type SetFacetCombineModeFunction = (field: string, combineMode: CombineMode) => void;
486
+ type EnumOperandValue = ReadonlyArray<string | number>;
487
+ type EnumFacetDataChangedFunction = (data: Array<[string | number, number]>) => void;
488
+ interface FacetCommonHooks {
489
+ useClearFilter: ClearFacetHook;
490
+ /**
491
+ * Hook that takes the API field and returns a human readable field name
492
+ */
493
+ useFieldNameToTitle: () => (field: string, sections?: number) => string;
494
+ useToggleExpandFilter?: () => (field: string, expanded: boolean) => void;
495
+ useFilterExpanded?: (field: string) => boolean;
496
+ usePopulateFacetData?: (facets: FacetDefinition[], queryOptions?: QueryOptions) => void;
497
+ }
498
+ interface FacetDataHooks extends FacetCommonHooks {
499
+ useUpdateFacetFilters: UpdateFacetFilterHook;
500
+ useGetFacetFilters: SelectFacetFilterFunction;
501
+ useGetFacetData: GetFacetDataFunction;
502
+ useTotalCounts?: GetTotalCountsFunction;
503
+ }
504
+ interface EnumFacetDataHooks extends FacetDataHooks {
505
+ useGetCombineMode: GetFacetCombineModeFunction;
506
+ useUpdateCombineMode: SetFacetCombineModeFunction;
507
+ }
508
+ interface RangeFacetHooks extends FacetCommonHooks {
509
+ useUpdateFacetFilters: UpdateFacetFilterHook;
510
+ useGetFacetData: GetRangeFacetDataFunction;
511
+ }
512
+ type AdvancedRangeFacetHooks = FacetCommonHooks & {
513
+ /**
514
+ * Hook that returns range values and counts
515
+ */
516
+ useGetRangeFacetData: GetRangeFacetDataFunction;
517
+ /**
518
+ * Hook that returns the currently selected filters
519
+ */
520
+ useGetFacetFilters: SelectFacetFilterFunction;
521
+ };
522
+ interface CustomFacetHooks {
523
+ /**
524
+ * Hook that returns a list of a user's currently selected custom facets
525
+ */
526
+ readonly useCustomFacets: () => DataFetchingResult<FacetDefinition[]>;
527
+ /**
528
+ * Hook that returns facets available for a user to add to their custom facets, option to return only facets
529
+ * with data
530
+ */
531
+ readonly useAvailableCustomFacets: (usedFacets: readonly string[], onlyFiltersWithValues: boolean, queryOptions?: QueryOptions) => {
532
+ data: Record<string, FacetDefinition>;
533
+ };
534
+ /**
535
+ * Hook to add a custom filter to a user's panel
536
+ */
537
+ readonly useAddCustomFilter: () => (filter: string) => void;
538
+ /**
539
+ * Hook to remove a custom filter to a user's panel
540
+ */
541
+ readonly useRemoveCustomFilter: () => (filter: string) => void;
542
+ }
543
+ interface FacetResponse {
544
+ readonly data?: Record<string, number>;
545
+ readonly isSuccess: boolean;
546
+ readonly isFetching: boolean;
547
+ readonly error?: unknown;
548
+ }
549
+ interface EnumFacetResponse extends FacetResponse {
550
+ readonly enumFilters?: EnumFilterValue;
551
+ readonly combineMode?: CombineMode;
552
+ }
553
+ declare function isEnumFacetResponse(facetResponse: FacetResponse): facetResponse is EnumFacetResponse;
554
+ interface RangeFacetResponse extends FacetResponse {
555
+ readonly rangeFilters?: FromToRange<number>;
556
+ }
557
+ type RangeFromOp = '>' | '>=';
558
+ type RangeToOp = '<' | '<=';
559
+ interface FromToRangeValues<T> {
560
+ readonly from?: T;
561
+ readonly to?: T;
562
+ }
563
+ interface FromToRange<T> extends FromToRangeValues<T> {
564
+ readonly fromOp?: RangeFromOp;
565
+ readonly toOp?: RangeToOp;
566
+ }
567
+ interface FieldToName {
568
+ readonly field: string;
569
+ readonly name: string;
570
+ }
571
+ type NumericRangeFacetHooks = FacetDataHooks & {
572
+ /**
573
+ * Hook that returns range values and counts
574
+ */
575
+ useGetRangeFacetData: GetRangeFacetWithDefinedRangesDataFunction;
576
+ /**
577
+ * Hook that returns the currently selected filters
578
+ */
579
+ useGetFacetFilters: SelectFacetFilterFunction;
580
+ };
581
+ type NumericFacetCardProps = FacetCardProps<NumericRangeFacetHooks> & {
582
+ readonly rangeDatatype?: string;
583
+ readonly minimum: number | undefined;
584
+ readonly maximum: number | undefined;
585
+ readonly clearValues?: boolean;
586
+ };
587
+ type FacetSortType = 'value-asc' | 'value-dsc' | 'label-asc' | 'label-desc';
588
+ /**
589
+ * Sort type for enum buckets
590
+ */
591
+ interface SortType {
592
+ type: 'value' | 'alpha';
593
+ direction: 'asc' | 'dsc';
594
+ }
595
+ interface SelectedFields$1 {
596
+ category: string;
597
+ fields: Array<FacetDefinition>;
598
+ selectedFields: Array<string>;
599
+ updateSelectedField: (facet: string) => void;
600
+ }
601
+ interface AllowableRange {
602
+ readonly minimum: number;
603
+ readonly maximum: number;
604
+ }
605
+ interface CohortBuilderCategoryConfig {
606
+ readonly label: string;
607
+ readonly facets: ReadonlyArray<string>;
608
+ readonly queryOptions?: QueryOptions;
609
+ }
610
+ type FacetRequiredHooks = EnumFacetDataHooks | RangeFacetHooks;
611
+ interface EnumChartProps {
612
+ readonly field: string;
613
+ readonly data: Record<string, number>;
614
+ readonly selectedEnums: readonly string[];
615
+ readonly isSuccess: boolean;
616
+ readonly showTitle: boolean;
617
+ readonly maxBins: number;
618
+ readonly height: number;
619
+ readonly valueLabel?: string;
620
+ }
621
+ interface EnumChartProps {
622
+ readonly field: string;
623
+ readonly data: Record<string, number>;
624
+ readonly selectedEnums: readonly string[];
625
+ readonly isSuccess: boolean;
626
+ readonly showTitle: boolean;
627
+ readonly maxBins: number;
628
+ readonly height: number;
629
+ readonly valueLabel?: string;
630
+ }
631
+
632
+ type RendererFunction<T> = (props: T, ...params: any[]) => ReactNode;
633
+ interface RendererFunctionCatalogEntry<T> {
634
+ [key: string]: RendererFunction<T>;
635
+ }
636
+ interface RendererFactoryInterface<T> {
637
+ getRenderer(type: string, functionName: string): RendererFunction<T>;
638
+ registerRenderer(type: string, functionName: string, func: RendererFunction<T>): void;
639
+ registerRendererCatalog(catalog: Record<string, RendererFunctionCatalogEntry<T>>): void;
640
+ }
641
+ declare class RenderFactoryTypedInstance<T> implements RendererFactoryInterface<T> {
642
+ private catalog;
643
+ private defaultRenderer;
644
+ constructor();
645
+ /**
646
+ * Sets the default renderer function for the specified type.
647
+ *
648
+ * @param {RendererFunction<T>} func - The renderer function to set as the default.
649
+ * @return {void}
650
+ */
651
+ setDefaultRenderer(func: RendererFunction<T>): void;
652
+ getRenderer(type: string, functionName: string): RendererFunction<T>;
653
+ /**
654
+ * Check if a renderer exists for a given type and function name
655
+ * @param type
656
+ * @param functionName
657
+ * @returns boolean indicating if the renderer exists
658
+ */
659
+ rendererExists(type: string, functionName: string): boolean;
660
+ /**
661
+ * Registers a renderer function for a given type and function name.
662
+ *
663
+ * @param {string} type - The type of the renderer function.
664
+ * @param {string} functionName - The name of the renderer function.
665
+ * @param {RendererFunction<T>} func - The renderer function to register.
666
+ * @returns {boolean} - True if the registration is successful, false otherwise.
667
+ * @throws {Error} - If any of the input parameters are missing or if the renderer function already exists.
668
+ */
669
+ registerRenderer(type: string, functionName: string, func: RendererFunction<T>): boolean;
670
+ /**
671
+ * Registers a renderer catalog.
672
+ *
673
+ * @param {Record<string, RendererFunctionCatalogEntry<T>>} catalog - The catalog object containing the renderers.
674
+ * @returns {boolean} - True if the catalog was registered successfully, otherwise false.
675
+ */
676
+ registerRendererCatalog(catalog: Record<string, RendererFunctionCatalogEntry<T>>): boolean;
677
+ }
678
+
679
+ interface DetailsPanelComponentProps extends Record<string, unknown> {
680
+ id?: string;
681
+ onClose?: (id?: string) => void;
682
+ row?: MRT_Row<Record<string, any>>;
683
+ }
684
+
685
+ interface TableDetailsPanelProps extends DetailsPanelComponentProps {
686
+ index: string;
687
+ tableConfig: SummaryTable;
688
+ accessibility: Accessibility;
689
+ }
690
+ /**
691
+ * Represents the configuration for the Explorer details.
692
+ *
693
+ * @interface ExplorerDetailsConfig
694
+ * @property {('click' | 'doubleclick' | 'expand')} [mode] - The interaction mode for the Explorer details. Default is 'click'.
695
+ * @property {string} [title] - The title of the Explorer details.
696
+ * @property {string} panel - The panel name for the Explorer details that has been registered with the appropriate factory
697
+ * @property {Record<string, unknown>} [params] - Additional parameters for the Explorer details panel.
698
+ * @property {Record<string, string>} [classNames] - Additional CSS class names for the Explorer modal | drawer.
699
+ * @property {string} [idField] - The field used as an identifier for the Explorer details.
700
+ */
701
+ interface ExplorerDetailsConfig {
702
+ mode?: 'click' | 'doubleclick' | 'expand';
703
+ title?: string;
704
+ panel: string;
705
+ params?: Record<string, unknown>;
706
+ classNames?: Record<string, string>;
707
+ idField?: string;
708
+ }
709
+
710
+ declare const ExplorerTableCellRendererFactory: () => RenderFactoryTypedInstance<CellRendererFunctionProps>;
711
+ declare const registerExplorerDefaultCellRenderers: () => void;
712
+
713
+ type SummaryTableColumnType = 'string' | 'number' | 'date' | 'array' | 'link' | 'boolean' | 'paragraphs';
714
+ interface SummaryTableColumn {
715
+ field: string;
716
+ title: string;
717
+ accessorPath?: string;
718
+ type?: SummaryTableColumnType;
719
+ cellRenderFunction?: string;
720
+ params?: Record<string, any>;
721
+ width?: number;
722
+ sortable?: boolean;
723
+ visible?: boolean;
724
+ }
725
+ interface SummaryTablePageLimit {
726
+ limit?: number;
727
+ label?: string;
728
+ }
729
+ interface TableColumnsAndFields {
730
+ fields: ReadonlyArray<string>;
731
+ columns: Record<string, SummaryTableColumn>;
732
+ }
733
+ interface FieldSubtableClassnames extends Record<string, string> {
734
+ header: string;
735
+ columnLabel: string;
736
+ }
737
+ interface FieldSubtable extends TableColumnsAndFields {
738
+ root: string;
739
+ label: string;
740
+ classNames?: Partial<FieldSubtableClassnames>;
741
+ }
742
+ interface SummaryTable extends TableColumnsAndFields {
743
+ enabled: boolean;
744
+ subTables?: ReadonlyArray<FieldSubtable>;
745
+ pageLimit?: SummaryTablePageLimit;
746
+ detailsConfig?: ExplorerDetailsConfig;
747
+ selectableRows?: boolean;
748
+ }
749
+ /**
750
+ * Represents the props required for a cell renderer function.
751
+ */
752
+ interface CellRendererFunctionProps<T extends MRT_RowData = JSONObject> {
753
+ cell: MRT_Cell<T>;
754
+ renderedCellValue: ReactNode;
755
+ column: MRT_Column<T>;
756
+ row: MRT_Row<T>;
757
+ rowRef?: RefObject<HTMLTableRowElement> | undefined;
758
+ table: MRT_TableInstance<T>;
759
+ params?: Record<string, unknown>;
760
+ }
761
+
762
+ interface DownloadButtonProps {
763
+ enabled?: boolean;
764
+ type?: string;
765
+ title: string;
766
+ actionTitle?: string;
767
+ leftIcon?: string;
768
+ rightIcon?: string;
769
+ tooltipText?: string;
770
+ action?: string;
771
+ actionArgs?: Record<string, string>;
772
+ classNames?: StylingOverride;
773
+ }
774
+ interface DropdownButtonProps extends Omit<DownloadButtonProps, 'action' | 'actionArgs'> {
775
+ dropdownItems: ReadonlyArray<Partial<DownloadButtonProps>>;
776
+ }
777
+
778
+ declare const DropdownButton: ({ title, dropdownItems, }: DropdownButtonProps) => JSX.Element;
779
+ //# sourceMappingURL=DropdownButton.d.ts.map
780
+
781
+ interface TabConfig {
782
+ title: string;
783
+ fields: ReadonlyArray<string>;
784
+ fieldsConfig: Record<string, FacetDefinition>;
785
+ classNames?: StylingOverride;
786
+ defaultSort?: FacetSortType;
787
+ }
788
+ interface TabsConfig {
789
+ readonly tabs: ReadonlyArray<TabConfig>;
790
+ }
791
+ interface ManifestFieldsConfig {
792
+ resourceIndexType: string;
793
+ resourceIdField: string;
794
+ referenceIdFieldInResourceIndex: string;
795
+ referenceIdFieldInDataIndex: string;
796
+ }
797
+ interface DataTypeConfig {
798
+ dataType: string;
799
+ nodeCountTitle?: string;
800
+ accessibleFieldCheckList?: string[];
801
+ accessibleValidationField?: string;
802
+ tierAccessLevel?: 'libre' | 'regular' | 'private';
803
+ tierAccessLimit?: number;
804
+ }
805
+ interface DataTypeConfigWithManifest extends DataTypeConfig {
806
+ manifestMapping?: ManifestFieldsConfig;
807
+ fieldMapping?: ReadonlyArray<FieldToName>;
808
+ }
809
+ interface DownloadButtonConfig extends DownloadButtonProps {
810
+ dropdownId?: string;
811
+ }
812
+ interface DropdownButtonsConfig {
813
+ readonly title: string;
814
+ }
815
+ interface DropdownsWithButtonsProps extends DropdownButtonsConfig {
816
+ dropdownItems: ReadonlyArray<DownloadButtonProps>;
817
+ }
818
+ interface CohortPanelConfiguration {
819
+ guppyConfig: DataTypeConfigWithManifest;
820
+ tabTitle: string;
821
+ chartsSection?: CollapsableChartsPanelConfiguration;
822
+ charts?: Record<string, SummaryChart>;
823
+ table?: SummaryTable;
824
+ filters?: TabsConfig;
825
+ dropdowns?: Record<string, DropdownsWithButtonsProps>;
826
+ buttons?: ReadonlyArray<DownloadButtonConfig>;
827
+ loginForDownload?: boolean;
828
+ sharedFiltersMap?: SharedFieldMapping;
829
+ }
830
+ interface SharedFieldConfiguration {
831
+ defined?: SharedFieldMapping;
832
+ autoCreate?: boolean;
833
+ }
834
+ declare enum GuppyDataAccessMode {
835
+ REGULAR = "regular",
836
+ LIBRE = "libre",
837
+ PRIVATE = "private"
838
+ }
839
+ interface AccessControlConfiguration {
840
+ dataMode: GuppyDataAccessMode;
841
+ tierLimit?: number;
842
+ showAccessLevelControl?: boolean;
843
+ }
844
+ interface CohortBuilderConfiguration extends Gen3AppConfigData {
845
+ tabsLayout?: 'left' | 'right' | 'center';
846
+ sharedFilters?: SharedFieldConfiguration;
847
+ explorerConfig: Array<CohortPanelConfiguration>;
848
+ accessControl?: AccessControlConfiguration;
849
+ }
850
+ interface CohortBuilderProps extends Omit<CohortBuilderConfiguration, 'sharedFilters'> {
851
+ sharedFiltersMap: SharedFieldMapping | null;
852
+ }
853
+
854
+ declare const getAllFieldsFromFilterConfigs: (filterTabConfigs: ReadonlyArray<TabConfig>) => string[];
855
+ declare const processBucketData: (data?: HistogramDataArray) => Record<string, number>;
856
+ declare const processRangeData: (data?: HistogramDataArray) => Record<string, number>;
857
+ /**
858
+ * Update the facet filter for an enumeration facet
859
+ * @param fieldName - the name of the field
860
+ * @param values - the values to filter on
861
+ * @param updateFacetFilters - the function to update the facet filters
862
+ * @param clearFilters
863
+ */
864
+ declare const updateFacetEnum: (fieldName: string, values: EnumFilterValue, updateFacetFilters: UpdateFacetFilterFunction, clearFilters: ClearFacetFunction, combineMode?: CombineMode) => void;
865
+ declare const classifyFacets: (data: AggregationsData, index: string, fieldMapping?: ReadonlyArray<FieldToName>, facetDefinitionsFromConfig?: Record<string, FacetDefinition>, sharedFieldMapping?: SharedFieldMapping) => Record<string, FacetDefinition>;
866
+ /**
867
+ * Constructs a nested operation object based on the provided field and leaf operand.
868
+ * If the field does not contain a dot '.', it either assigns the field to the leaf operand (if applicable)
869
+ * or returns the leaf operand as is. When the field contains dots, it splits the field into parts,
870
+ * creates a "nested" operation for the root field, and recursively constructs the nested structure
871
+ * for the remaining portion of the field.
872
+ *
873
+ * @param {string} field - The hierarchical field path, with segments separated by dots (e.g., "root.child").
874
+ * @param {Operation} leafOperand - The operation to be nested within the specified path.
875
+ * @returns {Operation} A nested operation object that represents the structured path and operand.
876
+ */
877
+ declare const buildNested: (field: string, leafOperand: Operation) => Operation;
878
+ /**
879
+ * Update Guppy filters: process nested fields and have the final
880
+ * leaf be filtered
881
+ * @param index
882
+ */
883
+ declare const useUpdateFilters: (index: string) => (field: string, filter: Operation) => void;
884
+ declare const useGetFacetFilters: (index: string, field: string) => Operation;
885
+ /**
886
+ * Given an operation, determine if range is open or closed and extract
887
+ * the range values and operands as a NumericRange
888
+ * @param filter - operation to test
889
+ */
890
+ declare const extractRangeValues: <T extends string | number>(filter?: Operation) => FromToRange<T> | undefined;
891
+ declare const convertToStringArray: (inputArray: (string | number)[]) => string[];
892
+ /**
893
+ * This function creates a new operation by combining the provided filter
894
+ * with an 'and' logical operator. The resulting operation contains the filter
895
+ * as its sole operand initially.
896
+ *
897
+ * @param {Operation} filter - The operation to be added as the first operand.
898
+ * @returns {Operation} A new operation object with an 'and' operator and the given filter as its operand.
899
+ */
900
+ declare const addUnion: (filter: Operation) => Operation;
901
+ /**
902
+ * Removes a union operation and returns the sole operand if the union
903
+ * operation contains only one operand. If the union operation has multiple
904
+ * operands or if the input is not a union, returns undefined.
905
+ *
906
+ * @param {Operation} filter - The operation to evaluate and possibly modify, expected to be a union.
907
+ * @returns {Operation | undefined} The sole operand of the union if it contains only one, or undefined otherwise.
908
+ */
909
+ declare const removeUnion: (filter: Operation) => Operation | undefined;
910
+ /**
911
+ * Represents a function that adds an intersection filter operation.
912
+ *
913
+ * @param {Operation} filter - The filter operation to be intersected with.
914
+ * @returns {Operation} An object representing a new operation that combines
915
+ * the provided filter with an "and" logical operator.
916
+ */
917
+ declare const addIntersectionToIncludes: (filter: Includes) => Operation;
918
+ /**
919
+ * Removes the intersection from a filter operation if the intersection contains only one operand.
920
+ *
921
+ * @param {Operation} filter - The filter operation to be evaluated.
922
+ * @returns {Operation|undefined} The single operand of the intersection if the intersection has only one operand, otherwise undefined.
923
+ */
924
+ declare const removeIntersectionFromEnum: (filter: Intersection) => OperatorWithFieldAndArrayOfOperands | undefined;
925
+ /**
926
+ * Maps a facet sort type to a corresponding sort type.
927
+ *
928
+ * @param {FacetSortType} facetSort - The facet sort type represented as a string in the format "type-direction".
929
+ * @returns {SortType} - The mapped sort type object containing type and direction.
930
+ */
931
+ declare const mapFacetSortToSortType: (facetSort: FacetSortType) => SortType;
932
+ declare const compareKeysAscending: (a: string | number, b: string | number) => number;
933
+ declare const compareKeysDescending: (a: string | number, b: string | number) => number;
934
+
935
+ declare const useClearFilters: (index: string) => (field: string) => void;
936
+ /**
937
+ * Selector for the facet values (if any) from the current cohort
938
+ * @param index - index of filter
939
+ * @param field - field name to find filter for
940
+ * @return Value of Filters or undefined
941
+ */
942
+ declare const useExtractEnumFilterValues: (index: string, field: string) => EnumFilterValue;
943
+ declare const useExtractRangeFilterValues: (index: string, field: string) => FromToRange<string | number> | undefined;
944
+ declare const useFieldNameToTitle: () => (field: string, sections?: number) => string;
945
+
946
+ declare const DEFAULT_VISIBLE_ITEMS = 6;
947
+ declare const DEFAULT_MINIMUM = 0;
948
+ declare const DEFAULT_MAXIMUM = 100;
949
+ declare const BAD_DATA_MESSAGE = "No data for this field";
950
+ declare const DAYS_IN_YEAR = 365.25;
951
+
952
+ interface EnumFacetHooks extends FacetDataHooks {
953
+ useGetFacetData: GetEnumFacetDataFunction;
954
+ updateVisibleValues?: EnumFacetDataChangedFunction;
955
+ }
956
+ declare const EnumFacet: ({ field, hooks, valueLabel, description, facetName, showPercent, hideIfEmpty, showSearch, showFlip, showSettings, startShowingData, dismissCallback, width, sharedWithIndices, header, }: FacetCardProps<EnumFacetHooks>) => react_jsx_runtime.JSX.Element;
957
+
958
+ type ExactValueProps$1 = Omit<FacetCardProps<FacetDataHooks>, 'showSearch' | 'showFlip' | 'showPercent' | 'valueLabel'>;
959
+ /**
960
+ * Exact value facet component
961
+ * @param field - field to facet on
962
+ * @param description - description of the facet
963
+ * @param facetName - name of the facet
964
+ * @param dismissCallback - callback function to dismiss the facet
965
+ * @param width - width of the facet
966
+ * @param hooks - hooks to use for the facet
967
+ * @param header - header components
968
+ * @category Facets
969
+ */
970
+ declare const ExactValueFacet: React__default.FC<ExactValueProps$1>;
971
+ //# sourceMappingURL=ExactValueFacet.d.ts.map
972
+
973
+ interface RangeFacetCardProps extends FacetCardProps<RangeFacetHooks> {
974
+ minimum?: number;
975
+ maximum?: number;
976
+ }
977
+ declare const RangeFacet: ({ field, hooks, valueLabel, description, facetName, minimum, maximum, showSearch, showFlip, showSettings, dismissCallback, width, header, }: RangeFacetCardProps) => react_jsx_runtime.JSX.Element;
978
+
979
+ type ExactValueProps = Omit<FacetCardProps<FacetDataHooks>, 'showSearch' | 'showFlip' | 'showPercent' | 'valueLabel'>;
980
+ /**
981
+ * Exact value facet component
982
+ * @param field - field to facet on
983
+ * @param description - description of the facet
984
+ * @param facetName - name of the facet
985
+ * @param dismissCallback - callback function to dismiss the facet
986
+ * @param width - width of the facet
987
+ * @param hooks - hooks to use for the facet
988
+ * @param header - header components
989
+ * @category Facets
990
+ */
991
+ declare const MultiSelectValueFacet: React__default.FC<ExactValueProps>;
992
+ //# sourceMappingURL=MultiSelectValueFacet.d.ts.map
993
+
994
+ type FacetTabProps = {
995
+ readonly activeTab: string | null | undefined;
996
+ readonly setActiveTab: (tab: string | null) => void;
997
+ hooks: Record<FacetType, FacetDataHooks>;
998
+ readonly facetDefinitions: Record<string, FacetDefinition>;
999
+ readonly tabsConfig: Record<string, CohortBuilderCategoryConfig>;
1000
+ readonly usedFacets: string[];
1001
+ readonly customFacetHooks?: CustomFacetHooks;
1002
+ readonly getFacetLabel: (queryOptions?: QueryOptions) => string;
1003
+ readonly cardScrollMargin?: number;
1004
+ readonly Chart?: React__default.FC<EnumChartProps>;
1005
+ readonly useFieldNameToTitle: () => (field: string, sections?: number) => string;
1006
+ };
1007
+ /**
1008
+ * Component for rendering a tabbed facet selection view
1009
+ * @param activeTab - which tab is currently active
1010
+ * @param setActiveTab - function to set the active tab
1011
+ * @param hooks - Hooks for retrieving data, modifying cohort, etc. for the various facet types
1012
+ * @param facetDefinitions - Description of facets and their properties
1013
+ * @param tabsConfig - Configuration for tab sections, which fields they contain and any additional fields needed to query data for that tab
1014
+ * @param customFacetHooks - Hooks for custom facet selection
1015
+ * @param getFacetLabel - Callback for determining the data label
1016
+ * @param cardScrollMargin - Scroll margin for cards, used for positioning cards on the page when scrolled to
1017
+ * @param Chart - Component for rendering a Chart view of the data
1018
+ */
1019
+ declare const FacetTabs: React__default.FC<FacetTabProps>;
1020
+
1021
+ interface SelectedFields {
1022
+ category: string;
1023
+ fields: Array<FacetDefinition>;
1024
+ selectedFields: Array<string>;
1025
+ updateSelectedField: (facet: string, checked: boolean) => void;
1026
+ }
1027
+ type FacetSelectorCardProps = Omit<FacetCardProps<FacetCommonHooks>, 'field' | 'valueLabel'> & SelectedFields;
1028
+ declare const FacetSelector: React__default.FC<FacetSelectorCardProps>;
1029
+ //# sourceMappingURL=FacetSelector.d.ts.map
1030
+
1031
+ type FacetHeaderProps = Pick<FacetCardProps<FacetCommonHooks>, 'field' | 'description' | 'hooks' | 'facetName' | 'showSearch' | 'showFlip' | 'dismissCallback' | 'isFacetView' | 'header' | 'sharedWithIndices'> & {
1032
+ showSettings?: boolean;
1033
+ showClearSelection?: boolean;
1034
+ toggleFlip?: () => void;
1035
+ toggleSearch?: () => void;
1036
+ toggleSettings?: () => void;
1037
+ };
1038
+ /**
1039
+ * Component for the common controls on the header of different type facet cards
1040
+ * @param field - filter this FacetCard manages
1041
+ * @param description - describes information about the facet
1042
+ * @param hooks - object defining the hooks required by this facet component
1043
+ * @param facetName - name of the Facet in human-readable form
1044
+ * @param showSettings - show filter settings AND/OR
1045
+ * @param showSearch - if the search icon show be displayed
1046
+ * @param showFlip - if the flip icon should be displayed
1047
+ * @param showClearSelection - if the clear selection icon should be displayed
1048
+ * @param isFacetView - if the facet selection view (and not the chart view) is displayed
1049
+ * @param toggleSettings - toggle is setting button is visible
1050
+ * @param toggleFlip - function to switch the facet/chart view
1051
+ * @param toggleSearch - function to switch if the search bart is displayed
1052
+ * @param dismissCallback - if facet can be removed, supply a function which will ensure the "dismiss" control will be visible
1053
+ * @param sharedWithIndices
1054
+ * @param header - object containing the display components to use for the header
1055
+ */
1056
+ declare const FacetControlsHeader: ({ field, description, hooks, facetName, showSettings, showSearch, showFlip, showClearSelection, isFacetView, toggleSettings, toggleFlip, toggleSearch, dismissCallback, sharedWithIndices, header, }: FacetHeaderProps) => react_jsx_runtime.JSX.Element;
1057
+ //# sourceMappingURL=FacetControlsHeader.d.ts.map
1058
+
1059
+ interface FacetSortPanelProps {
1060
+ sortType: SortType;
1061
+ valueLabel: string;
1062
+ setSort: (sort: SortType) => void;
1063
+ field: string;
1064
+ }
1065
+ /**
1066
+ * FacetCards "sort" header supporting sort by A-Z or by Value both ascending and descending
1067
+ * @param sortType - current sort type
1068
+ * @param valueLabel - Value labels, typically "case" "file"
1069
+ * @param setSort - sets the sort type and direction
1070
+ * @param field - specifies the facet table name
1071
+ */
1072
+ declare const FacetSortPanel: React__default.FC<FacetSortPanelProps>;
1073
+ //# sourceMappingURL=FacetSortPanel.d.ts.map
1074
+
1075
+ interface FacetExpanderProps {
1076
+ readonly remainingValues: number;
1077
+ readonly isGroupExpanded: boolean;
1078
+ readonly onShowChanged: (v: boolean) => void;
1079
+ }
1080
+ /**
1081
+ * Component which manages the compact/expanded state of a FacetCard
1082
+ * @param remainingValues - number of remaining values when compact "show 4"
1083
+ * @param isGroupExpanded - true if expanded, false if compact
1084
+ * @param onShowChanged - callback to call when the expand/compact button is clicked
1085
+ */
1086
+ declare const FacetExpander: React__default.FC<FacetExpanderProps>;
405
1087
 
406
1088
  interface ProtectedContentProps {
407
1089
  children?: ReactNode;
@@ -538,9 +1220,9 @@ interface NavPageLayoutProps {
538
1220
  headerProps: Readonly<HeaderProps>;
539
1221
  footerProps: Readonly<FooterProps>;
540
1222
  mainProps?: Partial<MainContentProps>;
541
- headerData: HeaderData;
1223
+ headerMetadata: HeaderMetadata;
542
1224
  }
543
- declare const NavPageLayout: ({ headerProps, footerProps, mainProps, headerData, children, }: PropsWithChildren<NavPageLayoutProps>) => react_jsx_runtime.JSX.Element;
1225
+ declare const NavPageLayout: ({ headerProps, footerProps, mainProps, headerMetadata, children, }: PropsWithChildren<NavPageLayoutProps>) => react_jsx_runtime.JSX.Element;
544
1226
 
545
1227
  interface SummaryStatisticsConfig {
546
1228
  name: string;
@@ -785,18 +1467,6 @@ interface DataLoader {
785
1467
  dataFetchArgs?: JSONObject;
786
1468
  sortingAndPagination?: 'client' | 'server';
787
1469
  }
788
- interface SummaryChartWithField extends SummaryChart {
789
- field: string;
790
- }
791
- interface ChartsSection {
792
- enabled: boolean;
793
- title?: string;
794
- showLegends?: {
795
- enabled: boolean;
796
- showSwitch?: boolean;
797
- };
798
- charts?: Record<string, SummaryChartWithField>;
799
- }
800
1470
  interface DiscoveryIndexConfig {
801
1471
  guidType?: string;
802
1472
  studyField?: string;
@@ -809,7 +1479,7 @@ interface DiscoveryIndexConfig {
809
1479
  search?: SearchConfig;
810
1480
  authorization: DataAuthorization;
811
1481
  dataLoader?: DataLoader;
812
- chartsSection?: ChartsSection;
1482
+ chartsSection?: CollapsableChartsPanelConfiguration;
813
1483
  };
814
1484
  aggregations: SummaryStatisticsConfig[];
815
1485
  tags: TagsConfig;
@@ -936,233 +1606,6 @@ interface TagInfo {
936
1606
  }
937
1607
  declare const getTagInfo: (tagData: TagData, tagsConfig?: TagsConfig) => TagInfo;
938
1608
 
939
- type RendererFunction<T> = (props: T, ...params: any[]) => ReactNode;
940
- interface RendererFunctionCatalogEntry<T> {
941
- [key: string]: RendererFunction<T>;
942
- }
943
- interface RendererFactoryInterface<T> {
944
- getRenderer(type: string, functionName: string): RendererFunction<T>;
945
- registerRenderer(type: string, functionName: string, func: RendererFunction<T>): void;
946
- registerRendererCatalog(catalog: Record<string, RendererFunctionCatalogEntry<T>>): void;
947
- }
948
- declare class RenderFactoryTypedInstance<T> implements RendererFactoryInterface<T> {
949
- private catalog;
950
- private defaultRenderer;
951
- constructor();
952
- /**
953
- * Sets the default renderer function for the specified type.
954
- *
955
- * @param {RendererFunction<T>} func - The renderer function to set as the default.
956
- * @return {void}
957
- */
958
- setDefaultRenderer(func: RendererFunction<T>): void;
959
- getRenderer(type: string, functionName: string): RendererFunction<T>;
960
- /**
961
- * Check if a renderer exists for a given type and function name
962
- * @param type
963
- * @param functionName
964
- * @returns boolean indicating if the renderer exists
965
- */
966
- rendererExists(type: string, functionName: string): boolean;
967
- /**
968
- * Registers a renderer function for a given type and function name.
969
- *
970
- * @param {string} type - The type of the renderer function.
971
- * @param {string} functionName - The name of the renderer function.
972
- * @param {RendererFunction<T>} func - The renderer function to register.
973
- * @returns {boolean} - True if the registration is successful, false otherwise.
974
- * @throws {Error} - If any of the input parameters are missing or if the renderer function already exists.
975
- */
976
- registerRenderer(type: string, functionName: string, func: RendererFunction<T>): boolean;
977
- /**
978
- * Registers a renderer catalog.
979
- *
980
- * @param {Record<string, RendererFunctionCatalogEntry<T>>} catalog - The catalog object containing the renderers.
981
- * @returns {boolean} - True if the catalog was registered successfully, otherwise false.
982
- */
983
- registerRendererCatalog(catalog: Record<string, RendererFunctionCatalogEntry<T>>): boolean;
984
- }
985
-
986
- interface DetailsPanelComponentProps extends Record<string, unknown> {
987
- id?: string;
988
- onClose?: (id?: string) => void;
989
- row?: MRT_Row<Record<string, any>>;
990
- }
991
-
992
- interface TableDetailsPanelProps extends DetailsPanelComponentProps {
993
- index: string;
994
- tableConfig: SummaryTable;
995
- accessibility: Accessibility;
996
- }
997
- /**
998
- * Represents the configuration for the Explorer details.
999
- *
1000
- * @interface ExplorerDetailsConfig
1001
- * @property {('click' | 'doubleclick' | 'expand')} [mode] - The interaction mode for the Explorer details. Default is 'click'.
1002
- * @property {string} [title] - The title of the Explorer details.
1003
- * @property {string} panel - The panel name for the Explorer details that has been registered with the appropriate factory
1004
- * @property {Record<string, unknown>} [params] - Additional parameters for the Explorer details panel.
1005
- * @property {Record<string, string>} [classNames] - Additional CSS class names for the Explorer modal | drawer.
1006
- * @property {string} [idField] - The field used as an identifier for the Explorer details.
1007
- */
1008
- interface ExplorerDetailsConfig {
1009
- mode?: 'click' | 'doubleclick' | 'expand';
1010
- title?: string;
1011
- panel: string;
1012
- params?: Record<string, unknown>;
1013
- classNames?: Record<string, string>;
1014
- idField?: string;
1015
- }
1016
-
1017
- declare const ExplorerTableCellRendererFactory: () => RenderFactoryTypedInstance<CellRendererFunctionProps>;
1018
- declare const registerExplorerDefaultCellRenderers: () => void;
1019
-
1020
- type SummaryTableColumnType = 'string' | 'number' | 'date' | 'array' | 'link' | 'boolean' | 'paragraphs';
1021
- interface SummaryTableColumn {
1022
- field: string;
1023
- title: string;
1024
- accessorPath?: string;
1025
- type?: SummaryTableColumnType;
1026
- cellRenderFunction?: string;
1027
- params?: Record<string, any>;
1028
- width?: number;
1029
- sortable?: boolean;
1030
- visible?: boolean;
1031
- }
1032
- interface SummaryTablePageLimit {
1033
- limit?: number;
1034
- label?: string;
1035
- }
1036
- interface TableColumnsAndFields {
1037
- fields: ReadonlyArray<string>;
1038
- columns: Record<string, SummaryTableColumn>;
1039
- }
1040
- interface FieldSubtableClassnames extends Record<string, string> {
1041
- header: string;
1042
- columnLabel: string;
1043
- }
1044
- interface FieldSubtable extends TableColumnsAndFields {
1045
- root: string;
1046
- label: string;
1047
- classNames?: Partial<FieldSubtableClassnames>;
1048
- }
1049
- interface SummaryTable extends TableColumnsAndFields {
1050
- enabled: boolean;
1051
- subTables?: ReadonlyArray<FieldSubtable>;
1052
- pageLimit?: SummaryTablePageLimit;
1053
- detailsConfig?: ExplorerDetailsConfig;
1054
- selectableRows?: boolean;
1055
- }
1056
- /**
1057
- * Represents the props required for a cell renderer function.
1058
- */
1059
- interface CellRendererFunctionProps<T extends MRT_RowData = JSONObject> {
1060
- cell: MRT_Cell<T>;
1061
- renderedCellValue: ReactNode;
1062
- column: MRT_Column<T>;
1063
- row: MRT_Row<T>;
1064
- rowRef?: RefObject<HTMLTableRowElement> | undefined;
1065
- table: MRT_TableInstance<T>;
1066
- params?: Record<string, unknown>;
1067
- }
1068
-
1069
- interface FieldToName {
1070
- readonly field: string;
1071
- readonly name: string;
1072
- }
1073
- type FacetSortType = 'value-asc' | 'value-dsc' | 'label-asc' | 'label-desc';
1074
-
1075
- interface DownloadButtonProps {
1076
- enabled?: boolean;
1077
- type?: string;
1078
- title: string;
1079
- actionTitle?: string;
1080
- leftIcon?: string;
1081
- rightIcon?: string;
1082
- tooltipText?: string;
1083
- action?: string;
1084
- actionArgs?: Record<string, string>;
1085
- classNames?: StylingOverride;
1086
- }
1087
- interface DropdownButtonProps extends Omit<DownloadButtonProps, 'action' | 'actionArgs'> {
1088
- dropdownItems: ReadonlyArray<Partial<DownloadButtonProps>>;
1089
- }
1090
-
1091
- declare const DropdownButton: ({ title, dropdownItems, }: DropdownButtonProps) => JSX.Element;
1092
- //# sourceMappingURL=DropdownButton.d.ts.map
1093
-
1094
- interface TabConfig {
1095
- title: string;
1096
- fields: ReadonlyArray<string>;
1097
- fieldsConfig: Record<string, FacetDefinition>;
1098
- classNames?: StylingOverride;
1099
- defaultSort?: FacetSortType;
1100
- }
1101
- interface TabsConfig {
1102
- readonly tabs: ReadonlyArray<TabConfig>;
1103
- }
1104
- interface ManifestFieldsConfig {
1105
- resourceIndexType: string;
1106
- resourceIdField: string;
1107
- referenceIdFieldInResourceIndex: string;
1108
- referenceIdFieldInDataIndex: string;
1109
- }
1110
- interface DataTypeConfig {
1111
- dataType: string;
1112
- nodeCountTitle?: string;
1113
- accessibleFieldCheckList?: string[];
1114
- accessibleValidationField?: string;
1115
- tierAccessLevel?: 'libre' | 'regular' | 'private';
1116
- tierAccessLimit?: number;
1117
- }
1118
- interface DataTypeConfigWithManifest extends DataTypeConfig {
1119
- manifestMapping?: ManifestFieldsConfig;
1120
- fieldMapping?: ReadonlyArray<FieldToName>;
1121
- }
1122
- interface DownloadButtonConfig extends DownloadButtonProps {
1123
- dropdownId?: string;
1124
- }
1125
- interface DropdownButtonsConfig {
1126
- readonly title: string;
1127
- }
1128
- interface DropdownsWithButtonsProps extends DropdownButtonsConfig {
1129
- dropdownItems: ReadonlyArray<DownloadButtonProps>;
1130
- }
1131
- interface CohortPanelConfiguration {
1132
- guppyConfig: DataTypeConfigWithManifest;
1133
- tabTitle: string;
1134
- charts?: Record<string, SummaryChart>;
1135
- table?: SummaryTable;
1136
- filters?: TabsConfig;
1137
- dropdowns?: Record<string, DropdownsWithButtonsProps>;
1138
- buttons?: ReadonlyArray<DownloadButtonConfig>;
1139
- loginForDownload?: boolean;
1140
- sharedFiltersMap?: SharedFieldMapping;
1141
- }
1142
- interface SharedFieldConfiguration {
1143
- defined?: SharedFieldMapping;
1144
- autoCreate?: boolean;
1145
- }
1146
- declare enum GuppyDataAccessMode {
1147
- REGULAR = "regular",
1148
- LIBRE = "libre",
1149
- PRIVATE = "private"
1150
- }
1151
- interface AccessControlConfiguration {
1152
- dataMode: GuppyDataAccessMode;
1153
- tierLimit?: number;
1154
- showAccessLevelControl?: boolean;
1155
- }
1156
- interface CohortBuilderConfiguration extends Gen3AppConfigData {
1157
- tabsLayout?: 'left' | 'right' | 'center';
1158
- sharedFilters?: SharedFieldConfiguration;
1159
- explorerConfig: Array<CohortPanelConfiguration>;
1160
- accessControl?: AccessControlConfiguration;
1161
- }
1162
- interface CohortBuilderProps extends Omit<CohortBuilderConfiguration, 'sharedFilters'> {
1163
- sharedFiltersMap: SharedFieldMapping | null;
1164
- }
1165
-
1166
1609
  declare const CohortBuilder: ({ explorerConfig, sharedFiltersMap, tabsLayout, }: CohortBuilderProps) => react_jsx_runtime.JSX.Element;
1167
1610
 
1168
1611
  declare const ExplorerTableDetailsPanelFactory: () => RenderFactoryTypedInstance<TableDetailsPanelProps>;
@@ -1203,6 +1646,20 @@ interface CohortManagerProps {
1203
1646
  declare const CohortManager: ({ index }: CohortManagerProps) => react_jsx_runtime.JSX.Element;
1204
1647
  //# sourceMappingURL=CohortManager.d.ts.map
1205
1648
 
1649
+ interface CohortBuilderTabCategoryConfig {
1650
+ readonly label: string;
1651
+ readonly queryOptions: {
1652
+ readonly indexType: string;
1653
+ };
1654
+ readonly facets: ReadonlyArray<string>;
1655
+ }
1656
+ type TabbedCohortBuilderFacetConfig = Record<string, CohortBuilderTabCategoryConfig>;
1657
+ interface TabbedCohortBuilderConfiguration {
1658
+ tabsConfiguration: TabbedCohortBuilderFacetConfig;
1659
+ index: string;
1660
+ }
1661
+ declare const TabbedCohortBuilder: ({ index, tabsConfiguration, }: TabbedCohortBuilderConfiguration) => react_jsx_runtime.JSX.Element;
1662
+
1206
1663
  interface GqlQueryEndpointProps {
1207
1664
  graphQLEndpoint?: string;
1208
1665
  }
@@ -1252,10 +1709,16 @@ interface AnalysisToolConfiguration {
1252
1709
  hasDemo?: boolean;
1253
1710
  loginRequired: boolean;
1254
1711
  href: string;
1712
+ appId?: string;
1255
1713
  count?: number;
1714
+ countIndex?: string;
1256
1715
  countUnits?: string;
1716
+ noDataTooltip?: string;
1257
1717
  cardType?: 'regular' | 'compact';
1258
1718
  btnText?: string;
1719
+ tags?: Array<string>;
1720
+ readonly rightComponent?: React.FC;
1721
+ readonly selectionScreen?: React.FC;
1259
1722
  }
1260
1723
  interface AnalysisCenterConfiguration extends Gen3AppConfigData {
1261
1724
  tools: Array<AnalysisToolConfiguration>;
@@ -1294,6 +1757,16 @@ declare const AnalysisCenter: ({ tools, showFilterAndSort, }: AnalysisCenterConf
1294
1757
  declare const AnalysisCenterWithSections: React__default.FC<AnalysisCenterWithSectionsConfiguration>;
1295
1758
  //# sourceMappingURL=AnalysisCenterWithSections.d.ts.map
1296
1759
 
1760
+ interface StaticNotebookViewerProps$1 {
1761
+ notebook: string;
1762
+ }
1763
+ declare const StaticNotebookViewer: ({ notebook }: StaticNotebookViewerProps$1) => react_jsx_runtime.JSX.Element;
1764
+
1765
+ interface StaticNotebookViewerProps {
1766
+ notebook: string;
1767
+ }
1768
+ declare const StaticNotebookIFrame: ({ notebook }: StaticNotebookViewerProps) => react_jsx_runtime.JSX.Element;
1769
+
1297
1770
  /**
1298
1771
  * Retrieves navigation page layout properties from configuration.
1299
1772
  * Note: GEN3_COMMONS_NAME depends on siteConfig.json value in the data commons package
@@ -1365,14 +1838,14 @@ declare const registerCohortDiscoveryApp: () => React$1.ReactNode;
1365
1838
 
1366
1839
  declare const registerCohortSimilarityApp: () => React$1.ReactNode;
1367
1840
 
1368
- interface DictionaryConfig extends Record<string, string | number | boolean | undefined | HeaderData> {
1841
+ interface DictionaryConfig extends Record<string, string | number | boolean | undefined | HeaderMetadata> {
1369
1842
  showGraph: boolean;
1370
1843
  showDownloads: boolean;
1371
1844
  historyStorageId: string;
1372
1845
  maxHistoryItems: number;
1373
1846
  version?: string;
1374
1847
  description?: string;
1375
- headerMetadata?: HeaderData;
1848
+ headerMetadata?: HeaderMetadata;
1376
1849
  }
1377
1850
  interface DictionaryProps {
1378
1851
  config: DictionaryConfig;
@@ -1612,7 +2085,7 @@ declare const AdminAuthZPageGetServerSideProps: () => Promise<{
1612
2085
  headerProps: Readonly<HeaderProps>;
1613
2086
  footerProps: Readonly<FooterProps>;
1614
2087
  mainProps?: Partial<MainContentProps>;
1615
- headerData: HeaderData;
2088
+ headerMetadata: HeaderMetadata;
1616
2089
  };
1617
2090
  }>;
1618
2091
 
@@ -1676,7 +2149,7 @@ declare const AnalysisEditorPageGetServerSideProps: () => Promise<{
1676
2149
  headerProps: Readonly<HeaderProps>;
1677
2150
  footerProps: Readonly<FooterProps>;
1678
2151
  mainProps?: Partial<MainContentProps>;
1679
- headerData: HeaderData;
2152
+ headerMetadata: HeaderMetadata;
1680
2153
  };
1681
2154
  }>;
1682
2155
 
@@ -1778,6 +2251,15 @@ declare const CrosswalkPage: ({ headerProps, footerProps, config, }: CrosswalkPa
1778
2251
 
1779
2252
  declare const CrosswalkPageGetServerSideProps: GetServerSideProps<NavPageLayoutProps>;
1780
2253
 
2254
+ interface TabbedCohortBuilderPageProps extends NavPageLayoutProps {
2255
+ configuration: TabbedCohortBuilderConfiguration;
2256
+ }
2257
+
2258
+ declare const TabbedCohortBuilderPage: ({ headerProps, footerProps, configuration, }: TabbedCohortBuilderPageProps) => JSX.Element;
2259
+ //# sourceMappingURL=TabbedCohortBuilderPage.d.ts.map
2260
+
2261
+ declare const TabbedCohortBuilderPageGetServerSideProps: GetServerSideProps<TabbedCohortBuilderPageProps>;
2262
+
1781
2263
  declare const TailwindConfig: (themer: any) => {
1782
2264
  important: string;
1783
2265
  content: string[];
@@ -1848,5 +2330,7 @@ declare function export_default$1(req: NextApiRequest, res: NextApiResponse): Pr
1848
2330
 
1849
2331
  declare function export_default(req: NextApiRequest, res: NextApiResponse): Promise<void>;
1850
2332
 
1851
- export { AISearchPageGetServerSideProps, AccessLevel, ActionBar, ActionButton, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AnalysisCenter, AnalysisCenterWithSections, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, AuthzPage, Banner, BaseModal, Charts, CohortBuilder, CohortManager, CollapsableSidebar, ColorThemePage, ColorThemePageGetServerSideProps, _default as ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DataLibraryPage, DataLibraryPageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, DropdownButton, EnumFacetChart, ErrorCard, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerPageGetServerSidePropsForConfigId, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FirstTimeModal, Footer, Gen3Button, Gen3ButtonReverse, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor, Header, HoverLink, LandingPage, LandingPageGetServerSideProps, LoginButton, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, MinutesToMilliseconds, NavPageLayout, NavigationBar, NavigationButton, NoAccessModal, NotebookLitePage, NotebookLitePageGetStaticProps, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, ProtectedContent, QueryExpression, QueryExpressionContext, QueryExpressionSection, QueryPage, QueryPageGetServerSideProps, ReactECharts, ResourcesFilters, SPECIAL_CASE_FIELDS, SessionExpiredModal, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, TagCloud, TailwindConfig, TopBar, UploadJSONButton, User$1 as User, Workspace, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, accessibleFieldName, export_default as analysisApiCohortDiscovery, capitalize, computeRowSpan, convertMinutesToMilliseconds, convertPathsToTree, convertSecondsToMilliseconds, create10ColorAccessibleContrast, create10ColorPallet, createMantineTheme, export_default$2 as credentialsLogin, export_default$1 as credentialsLogout, extractObjectKey, focusStyles, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getParamsValueAsString, getTagInfo, hasOwnProperty, isArrayOfString, isPropertyKey, isTextTransform, processLabel, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerCohortDiscoveryApp, registerCohortSimilarityApp, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, registerMetadataSchemaApp, removeKey, resourcePathFromProjectID, export_default$3 as sessionLogout, export_default$4 as sessionToken, stripTrailingSlash, toDisplayName, truncateString, unixTimeToString, useDiscoveryContext, userHasMethodForServiceOnResource };
1852
- export type { AnalysisCenterSection, AnalysisCenterWithSectionsConfiguration, AnalysisPageLayoutProps, AnalysisToolConfiguration, AuthorizationValues, BannerLevelCategories, BannerProps, CellRenderFunctionProps, CellRendererFunctionProps, ChartProps, CohortBuilderConfiguration, CohortBuilderProps, CohortPanelConfiguration, DataAuthorization, DiscoveryConfig, ExplorerPageProps, Fonts, FooterProps, HeaderProps, LoginConfig, ModalsConfig, NavPageLayoutProps, NavigationProps, ProfileConfig, ReactEChartsProps, RegisteredIcons, RowRenderFunctionParams, SessionConfiguration, StudyDetailsField, SummaryChart, TableDetailsPanelProps, TagData, TagsConfig, TenStringArray, TopBarProps, UserAuthMapping, WorkspaceConfig };
2333
+ declare const staticNotebookAPI: (req: NextApiRequest, res: NextApiResponse) => Promise<void | Response>;
2334
+
2335
+ export { AISearchPageGetServerSideProps, AccessLevel, ActionBar, ActionButton, AdminAuthZPageGetServerSideProps, AiSearch, AISearchPage as AiSearchPage, AnalysisCenter, AnalysisCenterWithSections, AnalysisEditorPage, AnalysisEditorPageGetServerSideProps, AnalysisPage, AnalysisPageGetServerSideProps, AuthzPage, BAD_DATA_MESSAGE, Banner, BaseModal, Charts, CohortBuilder, CohortManager, CollapsableCharts, CollapsableSidebar, ColorThemePage, ColorThemePageGetServerSideProps, _default as ContentSource, CreateCredentialsAPIKeyModal, CrosswalkPage, CrosswalkPageGetServerSideProps, Custom404Page, DAYS_IN_YEAR, DEFAULT_MAXIMUM, DEFAULT_MINIMUM, DEFAULT_VISIBLE_ITEMS, DataLibraryPage, DataLibraryPageGetServerSideProps, DictionaryPage, DictionaryPageGetServerSideProps, DiscoveryCellRendererFactory, DiscoveryProvider as DiscoveryConfigProvider, DiscoveryIndexPanel, DiscoveryPage, DiscoveryPageGetServerSideProps, DiscoveryRowRendererFactory, DropdownButton, EnumFacet, EnumFacetChart, ErrorCard, ExactValueFacet, ExplorerPage, ExplorerPageGetServerSideProps, ExplorerPageGetServerSidePropsForConfigId, ExplorerTableCellRendererFactory, ExplorerTableDetailsPanelFactory, FacetControlsHeader, FacetExpander, FacetSelector, FacetSortPanel, FacetTabs, FirstTimeModal, Footer, Gen3Button, Gen3ButtonReverse, Gen3Link, Gen3ModalsProvider, Gen3Provider, GqlQueryEditor, Header, HoverLink, LandingPage, LandingPageGetServerSideProps, LoginButton, LoginPage, LoginPageGetServerSideProps, LoginPanel, LoginProvidersPanel, MinutesToMilliseconds, MultiSelectValueFacet, NavPageLayout, NavigationBar, NavigationButton, NoAccessModal, NotebookLitePage, NotebookLitePageGetStaticProps, ProfilePage, ProfilePageGetServerSideProps, ProfileProvider, ProtectedContent, QueryExpression, QueryExpressionContext, QueryExpressionSection, QueryPage, QueryPageGetServerSideProps, RangeFacet, ReactECharts, ResourcesFilters, SPECIAL_CASE_FIELDS, SessionExpiredModal, StaticNotebookIFrame, StaticNotebookViewer, StudyGroup, SubmissionPage, SubmissionPageGetServerSideProps, TabbedCohortBuilder, TabbedCohortBuilderPage, TabbedCohortBuilderPageGetServerSideProps, TagCloud, TailwindConfig, TopBar, UploadJSONButton, User$1 as User, Workspace, WorkspaceNoAccessPage, WorkspaceNoAccessPageServerSideProps, WorkspacePage, WorkspacePageGetServerSideProps, accessibleFieldName, addIntersectionToIncludes, addUnion, export_default as analysisApiCohortDiscovery, buildNested, capitalize, classifyFacets, compareKeysAscending, compareKeysDescending, computeRowSpan, convertMinutesToMilliseconds, convertPathsToTree, convertSecondsToMilliseconds, convertToStringArray, create10ColorAccessibleContrast, create10ColorPallet, createMantineTheme, export_default$2 as credentialsLogin, export_default$1 as credentialsLogout, extractObjectKey, extractRangeValues, focusStyles, getAllFieldsFromFilterConfigs, getCurrentUnixTimestamp, getNavPageLayoutPropsFromConfig, getParamsValueAsString, getTagInfo, hasOwnProperty, isArrayOfString, isEnumFacetResponse, isHeaderMetadata, isPropertyKey, isTextTransform, mapFacetSortToSortType, processBucketData, processLabel, processRangeData, processRangeKeyLabel, registerCohortBuilderDefaultPreviewRenderers, registerCohortDiscoveryApp, registerCohortSimilarityApp, registerDefaultDiscoveryDataLoaders, registerDiscoveryDefaultCellRenderers, registerDiscoveryDefaultStudyPreviewRenderers, registerExplorerDefaultCellRenderers, registerMetadataSchemaApp, removeIntersectionFromEnum, removeKey, removeUnion, resourcePathFromProjectID, export_default$3 as sessionLogout, export_default$4 as sessionToken, staticNotebookAPI, stripTrailingSlash, toDisplayName, truncateString, unixTimeToString, updateFacetEnum, useClearFilters, useDiscoveryContext, useExtractEnumFilterValues, useExtractRangeFilterValues, useFieldNameToTitle, useGetFacetFilters, useUpdateFilters, userHasMethodForServiceOnResource };
2336
+ export type { AdvancedRangeFacetHooks, AllowableRange, AnalysisCenterSection, AnalysisCenterWithSectionsConfiguration, AnalysisPageLayoutProps, AnalysisToolConfiguration, AuthorizationValues, BannerLevelCategories, BannerProps, CellRenderFunctionProps, CellRendererFunctionProps, ChartProps, ClearFacetFunction, ClearFacetHook, ClearIndexedFacetFunction, CohortBuilderCategoryConfig, CohortBuilderConfiguration, CohortBuilderProps, CohortBuilderTabCategoryConfig, CohortPanelConfiguration, CollapsableChartsPanelConfiguration, CustomFacetHooks, DataAuthorization, DiscoveryConfig, EnumChartProps, EnumFacetData, EnumFacetDataChangedFunction, EnumFacetDataHooks, EnumFacetResponse, EnumOperandValue, ExplorerPageProps, FacetCardProps, FacetCommonHooks, FacetDataHooks, FacetRequiredHooks, FacetResponse, FacetSortType, FacetType, FieldNameToTitleFunction, FieldToName, Fonts, FooterProps, FromToRange, FromToRangeValues, GetEnumFacetDataFunction, GetFacetCombineModeFunction, GetFacetDataFunction, GetRangeFacetDataFunction, GetRangeFacetWithDefinedRangesDataFunction, GetTotalCountsFunction, HeaderMetadata, HeaderProps, LoginConfig, ModalsConfig, NavPageLayoutProps, NavigationProps, NumericFacetCardProps, NumericRangeFacetHooks, ProfileConfig, QueryOptions, RangeFacetHooks, RangeFacetResponse, RangeFromOp, RangeToOp, ReactEChartsProps, RegisteredIcons, RowRenderFunctionParams, SelectFacetFilterFunction, SelectedFields$1 as SelectedFields, SessionConfiguration, SetFacetCombineModeFunction, SortType, StudyDetailsField, SummaryChart, TabbedCohortBuilderConfiguration, TabbedCohortBuilderFacetConfig, TableDetailsPanelProps, TagData, TagsConfig, TenStringArray, TopBarProps, UpdateFacetFilterFunction, UpdateFacetFilterHook, UserAuthMapping, WorkspaceConfig };