@gen3/frontend 0.10.94 → 0.10.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (612) hide show
  1. package/dist/cjs/index.js +5783 -2696
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/Content/LandingPageContent.d.ts +2 -1
  4. package/dist/dts/components/Content/LandingPageContent.d.ts.map +1 -1
  5. package/dist/dts/components/Content/LandingPageContent.js.map +1 -1
  6. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts +64 -0
  7. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  8. package/dist/dts/components/DropdownMenu/DropdownMenu.js +38 -0
  9. package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +1 -0
  10. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +2 -0
  11. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +1 -0
  12. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +141 -0
  13. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +1 -0
  14. package/dist/dts/components/DropdownMenu/index.d.ts +3 -0
  15. package/dist/dts/components/DropdownMenu/index.d.ts.map +1 -0
  16. package/dist/dts/components/DropdownMenu/index.js +3 -0
  17. package/dist/dts/components/DropdownMenu/index.js.map +1 -0
  18. package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
  19. package/dist/dts/components/Login/LoginPanel.js +1 -0
  20. package/dist/dts/components/Login/LoginPanel.js.map +1 -1
  21. package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
  22. package/dist/dts/components/Login/LoginProvidersPanel.js +1 -1
  23. package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
  24. package/dist/dts/components/Login/types.d.ts +2 -1
  25. package/dist/dts/components/Login/types.d.ts.map +1 -1
  26. package/dist/dts/components/Login/types.js.map +1 -1
  27. package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts +5 -0
  28. package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts.map +1 -0
  29. package/dist/dts/components/MessageCards/EmptyTableMessage.js +9 -0
  30. package/dist/dts/components/MessageCards/EmptyTableMessage.js.map +1 -0
  31. package/dist/dts/components/MessageCards/ErrorMessage.d.ts +7 -0
  32. package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +1 -0
  33. package/dist/dts/components/MessageCards/ErrorMessage.js +8 -0
  34. package/dist/dts/components/MessageCards/ErrorMessage.js.map +1 -0
  35. package/dist/dts/components/MessageCards/index.d.ts +2 -1
  36. package/dist/dts/components/MessageCards/index.d.ts.map +1 -1
  37. package/dist/dts/components/MessageCards/index.js +2 -1
  38. package/dist/dts/components/MessageCards/index.js.map +1 -1
  39. package/dist/dts/components/Profile/types.d.ts +2 -1
  40. package/dist/dts/components/Profile/types.d.ts.map +1 -1
  41. package/dist/dts/components/charts/Charts.d.ts.map +1 -1
  42. package/dist/dts/components/charts/Charts.js +2 -0
  43. package/dist/dts/components/charts/Charts.js.map +1 -1
  44. package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
  45. package/dist/dts/components/charts/echarts/BarChart.js +42 -4
  46. package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
  47. package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts +1 -1
  48. package/dist/dts/components/charts/echarts/HorizontalBarChart.d.ts.map +1 -1
  49. package/dist/dts/components/charts/echarts/HorizontalBarChart.js +3 -2
  50. package/dist/dts/components/charts/echarts/HorizontalBarChart.js.map +1 -1
  51. package/dist/dts/components/charts/echarts/ReactECharts.js +1 -1
  52. package/dist/dts/components/charts/echarts/ReactECharts.js.map +1 -1
  53. package/dist/dts/components/charts/types.d.ts +2 -0
  54. package/dist/dts/components/charts/types.d.ts.map +1 -1
  55. package/dist/dts/components/charts/utils.d.ts +1 -1
  56. package/dist/dts/components/charts/utils.d.ts.map +1 -1
  57. package/dist/dts/components/charts/utils.js +2 -4
  58. package/dist/dts/components/charts/utils.js.map +1 -1
  59. package/dist/dts/components/facets/EnumFacet.d.ts +2 -1
  60. package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
  61. package/dist/dts/components/facets/EnumFacet.js.map +1 -1
  62. package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
  63. package/dist/dts/components/facets/FacetControlsHeader.js +1 -1
  64. package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
  65. package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
  66. package/dist/dts/components/facets/FacetEnumList.js +7 -30
  67. package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
  68. package/dist/dts/components/facets/FacetSelector.d.ts +1 -1
  69. package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
  70. package/dist/dts/components/facets/FacetSelector.js +9 -7
  71. package/dist/dts/components/facets/FacetSelector.js.map +1 -1
  72. package/dist/dts/components/facets/types.d.ts +1 -0
  73. package/dist/dts/components/facets/types.d.ts.map +1 -1
  74. package/dist/dts/components/facets/types.js.map +1 -1
  75. package/dist/dts/components/facets/utils.d.ts +4 -2
  76. package/dist/dts/components/facets/utils.d.ts.map +1 -1
  77. package/dist/dts/components/facets/utils.js +27 -1
  78. package/dist/dts/components/facets/utils.js.map +1 -1
  79. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
  80. package/dist/dts/features/Analysis/types.d.ts +2 -1
  81. package/dist/dts/features/Analysis/types.d.ts.map +1 -1
  82. package/dist/dts/features/Analysis/types.js.map +1 -1
  83. package/dist/dts/features/CohortBuilder/AccessLevel.d.ts +8 -0
  84. package/dist/dts/features/CohortBuilder/AccessLevel.d.ts.map +1 -0
  85. package/dist/dts/features/CohortBuilder/AccessLevel.js +20 -0
  86. package/dist/dts/features/CohortBuilder/AccessLevel.js.map +1 -0
  87. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
  88. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
  89. package/dist/dts/features/CohortBuilder/CohortBuilder.js +4 -20
  90. package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
  91. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +20 -0
  92. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
  93. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +37 -0
  94. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
  95. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +18 -0
  96. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
  97. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +149 -0
  98. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
  99. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +9 -0
  100. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +1 -0
  101. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +122 -0
  102. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +1 -0
  103. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +19 -0
  104. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +1 -0
  105. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +52 -0
  106. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +1 -0
  107. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +10 -0
  108. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
  109. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +37 -0
  110. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
  111. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +13 -0
  112. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +1 -0
  113. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +33 -0
  114. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +1 -0
  115. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +7 -0
  116. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +1 -0
  117. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js +80 -0
  118. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +1 -0
  119. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +5 -0
  120. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +1 -0
  121. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +5 -0
  122. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +1 -0
  123. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +5 -0
  124. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +1 -0
  125. package/dist/dts/features/CohortBuilder/CohortManager/index.js +4 -0
  126. package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +1 -0
  127. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +13 -0
  128. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +1 -0
  129. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +15 -0
  130. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +1 -0
  131. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +4 -0
  132. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +1 -0
  133. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +8 -0
  134. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +1 -0
  135. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +32 -0
  136. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
  137. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +190 -0
  138. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
  139. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +2 -0
  140. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +1 -0
  141. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +145 -0
  142. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +1 -0
  143. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
  144. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
  145. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +79 -0
  146. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
  147. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +5 -0
  148. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +1 -0
  149. package/dist/dts/features/CohortBuilder/CohortManager/style.js +21 -0
  150. package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +1 -0
  151. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +49 -0
  152. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +1 -0
  153. package/dist/dts/features/CohortBuilder/CohortManager/types.js +2 -0
  154. package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +1 -0
  155. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts +6 -0
  156. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts.map +1 -0
  157. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js +21 -0
  158. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js.map +1 -0
  159. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +6 -2
  160. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  161. package/dist/dts/features/CohortBuilder/CohortPanel.js +15 -19
  162. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  163. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +8 -1
  164. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -1
  165. package/dist/dts/features/CohortBuilder/CohortSelector.js +51 -10
  166. package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -1
  167. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +6 -0
  168. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -0
  169. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +32 -0
  170. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -0
  171. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts +1 -1
  172. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
  173. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js +1 -1
  174. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -1
  175. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts +2 -0
  176. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts.map +1 -1
  177. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts +3 -2
  178. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
  179. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +56 -60
  180. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
  181. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts +4 -0
  182. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts.map +1 -0
  183. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js +48 -0
  184. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js.map +1 -0
  185. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts +4 -0
  186. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts.map +1 -0
  187. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js +81 -0
  188. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js.map +1 -0
  189. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts +9 -0
  190. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts.map +1 -0
  191. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js +22 -0
  192. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js.map +1 -0
  193. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts +9 -0
  194. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts.map +1 -0
  195. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js +17 -0
  196. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js.map +1 -0
  197. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts +12 -0
  198. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts.map +1 -0
  199. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js +2 -0
  200. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js.map +1 -0
  201. package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts +52 -12
  202. package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts.map +1 -1
  203. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts +4 -1
  204. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts.map +1 -1
  205. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js +70 -0
  206. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js.map +1 -1
  207. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +1 -1
  208. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -1
  209. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +2 -2
  210. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -1
  211. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts +1 -1
  212. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -1
  213. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +5 -4
  214. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -1
  215. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -1
  216. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js +2 -1
  217. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js.map +1 -1
  218. package/dist/dts/features/CohortBuilder/Panels/types.d.ts +4 -1
  219. package/dist/dts/features/CohortBuilder/Panels/types.d.ts.map +1 -1
  220. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js +1 -1
  221. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -1
  222. package/dist/dts/features/CohortBuilder/index.d.ts +5 -2
  223. package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
  224. package/dist/dts/features/CohortBuilder/index.js +4 -1
  225. package/dist/dts/features/CohortBuilder/index.js.map +1 -1
  226. package/dist/dts/features/CohortBuilder/types.d.ts +15 -7
  227. package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
  228. package/dist/dts/features/CohortBuilder/types.js +6 -0
  229. package/dist/dts/features/CohortBuilder/types.js.map +1 -1
  230. package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.d.ts.map +1 -1
  231. package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js +18 -2
  232. package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js.map +1 -1
  233. package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.d.ts.map +1 -1
  234. package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js +10 -4
  235. package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js.map +1 -1
  236. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
  237. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +20 -12
  238. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
  239. package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
  240. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +28 -8
  241. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
  242. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts +9 -0
  243. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts.map +1 -0
  244. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +147 -0
  245. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js.map +1 -0
  246. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts +2 -0
  247. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts.map +1 -0
  248. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js +36 -0
  249. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js.map +1 -0
  250. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts +461 -0
  251. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts.map +1 -0
  252. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js +51 -0
  253. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js.map +1 -0
  254. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts +97 -0
  255. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts.map +1 -0
  256. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js +435 -0
  257. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js.map +1 -0
  258. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +64 -0
  259. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +1 -0
  260. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +572 -0
  261. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +1 -0
  262. package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts +7 -0
  263. package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts.map +1 -0
  264. package/dist/dts/features/CohortDiscovery/CohortManagment/types.js +2 -0
  265. package/dist/dts/features/CohortDiscovery/CohortManagment/types.js.map +1 -0
  266. package/dist/dts/features/CohortDiscovery/CohortQueryExpression.d.ts +6 -0
  267. package/dist/dts/features/CohortDiscovery/CohortQueryExpression.d.ts.map +1 -0
  268. package/dist/dts/features/CohortDiscovery/CohortQueryExpression.js +55 -0
  269. package/dist/dts/features/CohortDiscovery/CohortQueryExpression.js.map +1 -0
  270. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -22
  271. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +1 -1
  272. package/dist/dts/features/CohortDiscovery/CohortSelectors.js +40 -34
  273. package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +1 -1
  274. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -90
  275. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +1 -1
  276. package/dist/dts/features/CohortDiscovery/CohortSlice.js +161 -92
  277. package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +1 -1
  278. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts +1 -1
  279. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts.map +1 -1
  280. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js +1 -1
  281. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js.map +1 -1
  282. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts +1 -1
  283. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -1
  284. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js +1 -1
  285. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js.map +1 -1
  286. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts +2 -1
  287. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts.map +1 -1
  288. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js +25 -7
  289. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js.map +1 -1
  290. package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.js.map +1 -1
  291. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts +1 -1
  292. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
  293. package/dist/dts/features/CohortDiscovery/IndexPanel.js +42 -34
  294. package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
  295. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts +14 -28
  296. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts.map +1 -1
  297. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js +4 -4
  298. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js.map +1 -1
  299. package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.d.ts.map +1 -1
  300. package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js +4 -10
  301. package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js.map +1 -1
  302. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.d.ts.map +1 -1
  303. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js +2 -1
  304. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js.map +1 -1
  305. package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.d.ts.map +1 -1
  306. package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js +76 -13
  307. package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js.map +1 -1
  308. package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts +22 -0
  309. package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts.map +1 -0
  310. package/dist/dts/features/CohortDiscovery/Requests/hooks.js +147 -0
  311. package/dist/dts/features/CohortDiscovery/Requests/hooks.js.map +1 -0
  312. package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.d.ts +9 -0
  313. package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.d.ts.map +1 -0
  314. package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.js +133 -0
  315. package/dist/dts/features/CohortDiscovery/Requests/submitCohortRequestAction.js.map +1 -0
  316. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts +1 -0
  317. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +1 -0
  318. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +284 -0
  319. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +1 -0
  320. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts +8 -0
  321. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts.map +1 -0
  322. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js +9 -0
  323. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js.map +1 -0
  324. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts +10 -0
  325. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts.map +1 -0
  326. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js +157 -0
  327. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js.map +1 -0
  328. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts +3 -4
  329. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -1
  330. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js +6 -11
  331. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js.map +1 -1
  332. package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts +9 -0
  333. package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts.map +1 -0
  334. package/dist/dts/features/CohortDiscovery/TabbedIndex.js +15 -0
  335. package/dist/dts/features/CohortDiscovery/TabbedIndex.js.map +1 -0
  336. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +2 -2
  337. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
  338. package/dist/dts/features/CohortDiscovery/appApi.d.ts +17 -3
  339. package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
  340. package/dist/dts/features/CohortDiscovery/appApi.js +13 -3
  341. package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
  342. package/dist/dts/features/CohortDiscovery/hooks.d.ts +12 -0
  343. package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
  344. package/dist/dts/features/CohortDiscovery/hooks.js +40 -1
  345. package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
  346. package/dist/dts/features/CohortDiscovery/queryApi.d.ts.map +1 -1
  347. package/dist/dts/features/CohortDiscovery/queryApi.js.map +1 -1
  348. package/dist/dts/features/CohortDiscovery/registerApp.d.ts.map +1 -1
  349. package/dist/dts/features/CohortDiscovery/registerApp.js +5 -3
  350. package/dist/dts/features/CohortDiscovery/registerApp.js.map +1 -1
  351. package/dist/dts/features/CohortDiscovery/types.d.ts +88 -3
  352. package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -1
  353. package/dist/dts/features/CohortDiscovery/types.js +45 -1
  354. package/dist/dts/features/CohortDiscovery/types.js.map +1 -1
  355. package/dist/dts/features/CohortDiscovery/utils.d.ts +2 -0
  356. package/dist/dts/features/CohortDiscovery/utils.d.ts.map +1 -1
  357. package/dist/dts/features/CohortDiscovery/utils.js +9 -0
  358. package/dist/dts/features/CohortDiscovery/utils.js.map +1 -1
  359. package/dist/dts/features/CohortSimilarity/appApi.d.ts +4 -6
  360. package/dist/dts/features/CohortSimilarity/appApi.d.ts.map +1 -1
  361. package/dist/dts/features/CohortSimilarity/appApi.js +3 -1
  362. package/dist/dts/features/CohortSimilarity/appApi.js.map +1 -1
  363. package/dist/dts/features/CohortSimilarity/registerApp.d.ts.map +1 -1
  364. package/dist/dts/features/CohortSimilarity/registerApp.js +1 -3
  365. package/dist/dts/features/CohortSimilarity/registerApp.js.map +1 -1
  366. package/dist/dts/features/Crosswalk/types.d.ts +2 -1
  367. package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
  368. package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
  369. package/dist/dts/features/DataLibrary/DatasetAccordionControl.js +2 -2
  370. package/dist/dts/features/DataLibrary/DatasetAccordionControl.js.map +1 -1
  371. package/dist/dts/features/DataLibrary/SearchAndActions.js +1 -1
  372. package/dist/dts/features/DataLibrary/SearchAndActions.js.map +1 -1
  373. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.d.ts.map +1 -1
  374. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js +1 -1
  375. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js.map +1 -1
  376. package/dist/dts/features/DataLibrary/tests/utils.unit.test.js +2 -1
  377. package/dist/dts/features/DataLibrary/tests/utils.unit.test.js.map +1 -1
  378. package/dist/dts/features/DataLibrary/utils.d.ts +0 -10
  379. package/dist/dts/features/DataLibrary/utils.d.ts.map +1 -1
  380. package/dist/dts/features/DataLibrary/utils.js +0 -34
  381. package/dist/dts/features/DataLibrary/utils.js.map +1 -1
  382. package/dist/dts/features/Dictionary/CategoryPanel.d.ts.map +1 -1
  383. package/dist/dts/features/Dictionary/CategoryPanel.js +9 -9
  384. package/dist/dts/features/Dictionary/CategoryPanel.js.map +1 -1
  385. package/dist/dts/features/Dictionary/DictionaryWithContext.d.ts.map +1 -1
  386. package/dist/dts/features/Dictionary/DictionaryWithContext.js.map +1 -1
  387. package/dist/dts/features/Dictionary/types.d.ts +5 -1
  388. package/dist/dts/features/Dictionary/types.d.ts.map +1 -1
  389. package/dist/dts/features/Discovery/DataLoaders/IndexedMetadata/DataLoader.js.map +1 -1
  390. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.d.ts.map +1 -1
  391. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js +2 -2
  392. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js.map +1 -1
  393. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.d.ts.map +1 -1
  394. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js +1 -1
  395. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js.map +1 -1
  396. package/dist/dts/features/Discovery/DataLoaders/utils.d.ts.map +1 -1
  397. package/dist/dts/features/Discovery/DataLoaders/utils.js +1 -1
  398. package/dist/dts/features/Discovery/DataLoaders/utils.js.map +1 -1
  399. package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
  400. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +8 -6
  401. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
  402. package/dist/dts/features/Discovery/DiscoveryProvider.d.ts +0 -3
  403. package/dist/dts/features/Discovery/DiscoveryProvider.d.ts.map +1 -1
  404. package/dist/dts/features/Discovery/DiscoveryProvider.js +0 -5
  405. package/dist/dts/features/Discovery/DiscoveryProvider.js.map +1 -1
  406. package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
  407. package/dist/dts/features/Discovery/DiscoveryTable.js +7 -5
  408. package/dist/dts/features/Discovery/DiscoveryTable.js.map +1 -1
  409. package/dist/dts/features/Discovery/StudyDetails/StudyItems.d.ts.map +1 -1
  410. package/dist/dts/features/Discovery/StudyDetails/StudyItems.js +3 -1
  411. package/dist/dts/features/Discovery/StudyDetails/StudyItems.js.map +1 -1
  412. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts +2 -3
  413. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts.map +1 -1
  414. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js +3 -3
  415. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js.map +1 -1
  416. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts +1 -2
  417. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
  418. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js +5 -6
  419. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js.map +1 -1
  420. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts +1 -1
  421. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
  422. package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts +1 -1
  423. package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts.map +1 -1
  424. package/dist/dts/features/Discovery/index.d.ts +2 -4
  425. package/dist/dts/features/Discovery/index.d.ts.map +1 -1
  426. package/dist/dts/features/Discovery/index.js +1 -3
  427. package/dist/dts/features/Discovery/index.js.map +1 -1
  428. package/dist/dts/features/Discovery/types.d.ts +5 -108
  429. package/dist/dts/features/Discovery/types.d.ts.map +1 -1
  430. package/dist/dts/features/Discovery/types.js +0 -16
  431. package/dist/dts/features/Discovery/types.js.map +1 -1
  432. package/dist/dts/features/Discovery/utils.d.ts +2 -8
  433. package/dist/dts/features/Discovery/utils.d.ts.map +1 -1
  434. package/dist/dts/features/Discovery/utils.js +1 -28
  435. package/dist/dts/features/Discovery/utils.js.map +1 -1
  436. package/dist/dts/features/Navigation/Footer/FooterColumn.d.ts.map +1 -1
  437. package/dist/dts/features/Navigation/Footer/FooterColumn.js.map +1 -1
  438. package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
  439. package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
  440. package/dist/dts/features/Navigation/TopBar/AccountButton.js +1 -1
  441. package/dist/dts/features/Navigation/TopBar/AccountButton.js.map +1 -1
  442. package/dist/dts/features/Navigation/TopBar/LoginButton.js +1 -1
  443. package/dist/dts/features/Navigation/TopBar/LoginButton.js.map +1 -1
  444. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts +9 -0
  445. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -0
  446. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js +11 -0
  447. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js.map +1 -0
  448. package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts +19 -0
  449. package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts.map +1 -0
  450. package/dist/dts/features/Study/StudyDetails/RendererFactory.js +56 -0
  451. package/dist/dts/features/Study/StudyDetails/RendererFactory.js.map +1 -0
  452. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts +15 -0
  453. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts.map +1 -0
  454. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js +44 -0
  455. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js.map +1 -0
  456. package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts +10 -0
  457. package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts.map +1 -0
  458. package/dist/dts/features/Study/StudyDetails/StudyDetails.js +36 -0
  459. package/dist/dts/features/Study/StudyDetails/StudyDetails.js.map +1 -0
  460. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts +10 -0
  461. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts.map +1 -0
  462. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js +19 -0
  463. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js.map +1 -0
  464. package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts +8 -0
  465. package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts.map +1 -0
  466. package/dist/dts/features/Study/StudyDetails/StudyGroup.js +31 -0
  467. package/dist/dts/features/Study/StudyDetails/StudyGroup.js.map +1 -0
  468. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts +9 -0
  469. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts.map +1 -0
  470. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js +11 -0
  471. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js.map +1 -0
  472. package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts +5 -0
  473. package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts.map +1 -0
  474. package/dist/dts/features/Study/StudyDetails/StudyItems.js +283 -0
  475. package/dist/dts/features/Study/StudyDetails/StudyItems.js.map +1 -0
  476. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts +10 -0
  477. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts.map +1 -0
  478. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js +45 -0
  479. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js.map +1 -0
  480. package/dist/dts/features/Study/StudyPage/StudyPage.d.ts +10 -0
  481. package/dist/dts/features/Study/StudyPage/StudyPage.d.ts.map +1 -0
  482. package/dist/dts/features/Study/StudyPage/StudyPage.js +11 -0
  483. package/dist/dts/features/Study/StudyPage/StudyPage.js.map +1 -0
  484. package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts +9 -0
  485. package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts.map +1 -0
  486. package/dist/dts/features/Study/StudyPage/StudyPageGroup.js +8 -0
  487. package/dist/dts/features/Study/StudyPage/StudyPageGroup.js.map +1 -0
  488. package/dist/dts/features/Study/StudyProvider.d.ts +12 -0
  489. package/dist/dts/features/Study/StudyProvider.d.ts.map +1 -0
  490. package/dist/dts/features/Study/StudyProvider.js +23 -0
  491. package/dist/dts/features/Study/StudyProvider.js.map +1 -0
  492. package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts +3 -0
  493. package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts.map +1 -0
  494. package/dist/dts/features/Study/TableRenderers/CellRenderers.js +20 -0
  495. package/dist/dts/features/Study/TableRenderers/CellRenderers.js.map +1 -0
  496. package/dist/dts/features/Study/TableRenderers/types.d.ts +14 -0
  497. package/dist/dts/features/Study/TableRenderers/types.d.ts.map +1 -0
  498. package/dist/dts/features/Study/TableRenderers/types.js +2 -0
  499. package/dist/dts/features/Study/TableRenderers/types.js.map +1 -0
  500. package/dist/dts/features/Study/index.d.ts +5 -0
  501. package/dist/dts/features/Study/index.d.ts.map +1 -0
  502. package/dist/dts/features/Study/index.js +4 -0
  503. package/dist/dts/features/Study/index.js.map +1 -0
  504. package/dist/dts/features/Study/types.d.ts +91 -0
  505. package/dist/dts/features/Study/types.d.ts.map +1 -0
  506. package/dist/dts/features/Study/types.js +8 -0
  507. package/dist/dts/features/Study/types.js.map +1 -0
  508. package/dist/dts/features/Study/utils.d.ts +10 -0
  509. package/dist/dts/features/Study/utils.d.ts.map +1 -0
  510. package/dist/dts/features/Study/utils.js +28 -0
  511. package/dist/dts/features/Study/utils.js.map +1 -0
  512. package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.d.ts.map +1 -1
  513. package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.js.map +1 -1
  514. package/dist/dts/features/Workspace/types.d.ts +2 -1
  515. package/dist/dts/features/Workspace/types.d.ts.map +1 -1
  516. package/dist/dts/features/Workspace/types.js.map +1 -1
  517. package/dist/dts/index.d.ts +3 -1
  518. package/dist/dts/index.d.ts.map +1 -1
  519. package/dist/dts/index.js +7 -1
  520. package/dist/dts/index.js.map +1 -1
  521. package/dist/dts/lib/content/types.d.ts +2 -0
  522. package/dist/dts/lib/content/types.d.ts.map +1 -1
  523. package/dist/dts/lib/session/session.d.ts.map +1 -1
  524. package/dist/dts/lib/session/session.js +22 -34
  525. package/dist/dts/lib/session/session.js.map +1 -1
  526. package/dist/dts/pages/Crosswalk/Crosswalk.d.ts.map +1 -1
  527. package/dist/dts/pages/Crosswalk/Crosswalk.js +1 -5
  528. package/dist/dts/pages/Crosswalk/Crosswalk.js.map +1 -1
  529. package/dist/dts/pages/DataDictionary/DataDictionary.d.ts.map +1 -1
  530. package/dist/dts/pages/DataDictionary/DataDictionary.js +12 -5
  531. package/dist/dts/pages/DataDictionary/DataDictionary.js.map +1 -1
  532. package/dist/dts/pages/Discovery/Discovery.d.ts.map +1 -1
  533. package/dist/dts/pages/Discovery/Discovery.js +14 -5
  534. package/dist/dts/pages/Discovery/Discovery.js.map +1 -1
  535. package/dist/dts/pages/Explorer/Explorer.d.ts +1 -1
  536. package/dist/dts/pages/Explorer/Explorer.d.ts.map +1 -1
  537. package/dist/dts/pages/Explorer/Explorer.js +13 -6
  538. package/dist/dts/pages/Explorer/Explorer.js.map +1 -1
  539. package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
  540. package/dist/dts/pages/Explorer/data.js +28 -22
  541. package/dist/dts/pages/Explorer/data.js.map +1 -1
  542. package/dist/dts/pages/Landing/Landing.d.ts.map +1 -1
  543. package/dist/dts/pages/Landing/Landing.js +12 -5
  544. package/dist/dts/pages/Landing/Landing.js.map +1 -1
  545. package/dist/dts/pages/Login/Login.d.ts.map +1 -1
  546. package/dist/dts/pages/Login/Login.js +1 -5
  547. package/dist/dts/pages/Login/Login.js.map +1 -1
  548. package/dist/dts/pages/Profile/Profile.d.ts.map +1 -1
  549. package/dist/dts/pages/Profile/Profile.js +12 -5
  550. package/dist/dts/pages/Profile/Profile.js.map +1 -1
  551. package/dist/dts/pages/Query/Query.d.ts.map +1 -1
  552. package/dist/dts/pages/Query/Query.js +12 -5
  553. package/dist/dts/pages/Query/Query.js.map +1 -1
  554. package/dist/dts/pages/Query/types.d.ts +2 -1
  555. package/dist/dts/pages/Query/types.d.ts.map +1 -1
  556. package/dist/dts/pages/Workspace/Workspace.d.ts.map +1 -1
  557. package/dist/dts/pages/Workspace/Workspace.js +14 -5
  558. package/dist/dts/pages/Workspace/Workspace.js.map +1 -1
  559. package/dist/dts/pages/admin/analysis/Analysis.d.ts +1 -1
  560. package/dist/dts/pages/admin/analysis/Analysis.d.ts.map +1 -1
  561. package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
  562. package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
  563. package/dist/dts/types/icons.d.ts +5 -0
  564. package/dist/dts/types/icons.d.ts.map +1 -0
  565. package/dist/dts/types/icons.js +6 -0
  566. package/dist/dts/types/icons.js.map +1 -0
  567. package/dist/dts/utils/access.d.ts +10 -0
  568. package/dist/dts/utils/access.d.ts.map +1 -0
  569. package/dist/dts/utils/access.js +11 -0
  570. package/dist/dts/utils/access.js.map +1 -0
  571. package/dist/dts/utils/authMapping.d.ts +4 -0
  572. package/dist/dts/utils/authMapping.d.ts.map +1 -1
  573. package/dist/dts/utils/authMapping.js.map +1 -1
  574. package/dist/dts/utils/convertResourcePathsToTree.d.ts +8 -0
  575. package/dist/dts/utils/convertResourcePathsToTree.d.ts.map +1 -0
  576. package/dist/dts/utils/convertResourcePathsToTree.js +43 -0
  577. package/dist/dts/utils/convertResourcePathsToTree.js.map +1 -0
  578. package/dist/dts/utils/dataAuthorization.d.ts +11 -0
  579. package/dist/dts/utils/dataAuthorization.d.ts.map +1 -0
  580. package/dist/dts/utils/dataAuthorization.js +2 -0
  581. package/dist/dts/utils/dataAuthorization.js.map +1 -0
  582. package/dist/dts/utils/date.d.ts +16 -0
  583. package/dist/dts/utils/date.d.ts.map +1 -1
  584. package/dist/dts/utils/date.js +54 -8
  585. package/dist/dts/utils/date.js.map +1 -1
  586. package/dist/dts/utils/index.d.ts +4 -3
  587. package/dist/dts/utils/index.d.ts.map +1 -1
  588. package/dist/dts/utils/index.js +4 -2
  589. package/dist/dts/utils/index.js.map +1 -1
  590. package/dist/dts/utils/layout.d.ts +2 -0
  591. package/dist/dts/utils/layout.d.ts.map +1 -0
  592. package/dist/dts/utils/layout.js +20 -0
  593. package/dist/dts/utils/layout.js.map +1 -0
  594. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts +2 -0
  595. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts.map +1 -0
  596. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js +150 -0
  597. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js.map +1 -0
  598. package/dist/dts/utils/tests/values.test.js +0 -1
  599. package/dist/dts/utils/tests/values.test.js.map +1 -1
  600. package/dist/esm/index.js +5798 -2718
  601. package/dist/esm/index.js.map +1 -1
  602. package/dist/index.d.ts +412 -329
  603. package/dist/tsconfig.tsbuildinfo +1 -1
  604. package/package.json +7 -7
  605. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +0 -1
  606. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +0 -1
  607. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +0 -2
  608. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +0 -1
  609. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts +0 -3
  610. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts.map +0 -1
  611. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js +0 -13
  612. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js.map +0 -1
@@ -0,0 +1,190 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
38
+ import { useState, useCallback, useContext } from 'react';
39
+ import { Modal, Button, Loader } from '@mantine/core';
40
+ import { modals } from '@mantine/modals';
41
+ import { CohortNotificationContext } from '../CohortNotificationProvider';
42
+ import { SaveOrCreateEntityBody } from './SaveOrCreateEntityModal';
43
+ /**
44
+ * SaveCohortModal handles saving a user's cohort
45
+ * @param opened - Whether the modal is open or not
46
+ * @param hooks - Collection of hooks for performing saving, deleting, etc operations on cohorts
47
+ * @param initialName - populates inital value of name field
48
+ * @param onClose - callback triggered when modal closes
49
+ * @param cohortId - id of existing cohort we are saving, if undefined we are not saving a cohort that already exists
50
+ * @param invalidCohortNames - list of cohort names that the user is barred from using
51
+ * @param filters - the filters associated with the cohort
52
+ * @param caseFilters - the case filters to use for the cohort
53
+ * @param createStaticCohort - whether to create a case set from the filters so the cases in the cohort remain static
54
+ * @param setAsCurrent - whether to set the new cohort as the user's current cohort, should not also pass in cohortId
55
+ * @param saveAs - whether to save existing cohort as new cohort, requires cohortId
56
+ */
57
+ var SaveCohortModal = function (_a) {
58
+ var opened = _a.opened, hooks = _a.hooks, _b = _a.initialName, initialName = _b === void 0 ? '' : _b, onClose = _a.onClose, cohortId = _a.cohortId, invalidCohortNames = _a.invalidCohortNames, filters = _a.filters, caseFilters = _a.caseFilters, _c = _a.createStaticCohort, createStaticCohort = _c === void 0 ? false : _c, _d = _a.setAsCurrent, setAsCurrent = _d === void 0 ? false : _d, _e = _a.saveAs, saveAs = _e === void 0 ? false : _e;
59
+ var _f = useState(false), showReplaceCohort = _f[0], setShowReplaceCohort = _f[1];
60
+ var _g = useState(''), enteredName = _g[0], setEnteredName = _g[1];
61
+ var _h = useState(false), isSaving = _h[0], setIsSaving = _h[1];
62
+ var saveCohort = hooks.useSaveCohort();
63
+ var replaceCohort = hooks.useReplaceCohort();
64
+ var setActiveCohort = hooks.useSetActiveCohort();
65
+ var setCohortMessage = useContext(CohortNotificationContext);
66
+ var closeModal = useCallback(function () {
67
+ onClose();
68
+ // Reset modal state on close
69
+ setShowReplaceCohort(false);
70
+ setEnteredName('');
71
+ setIsSaving(false);
72
+ }, [onClose]);
73
+ var saveAction = function (newName, replace) { return __awaiter(void 0, void 0, void 0, function () {
74
+ return __generator(this, function (_a) {
75
+ if (isSaving)
76
+ return [2 /*return*/];
77
+ setIsSaving(true);
78
+ if (replace) {
79
+ replaceCohort({
80
+ newName: newName,
81
+ filters: filters,
82
+ caseFilters: caseFilters,
83
+ createStaticCohort: createStaticCohort,
84
+ cohortId: cohortId,
85
+ saveAs: saveAs,
86
+ })
87
+ .then(function (_a) {
88
+ var newCohortId = _a.newCohortId;
89
+ if (newCohortId) {
90
+ if (setAsCurrent || saveAs) {
91
+ setCohortMessage &&
92
+ setCohortMessage([
93
+ {
94
+ cmd: setAsCurrent ? 'savedCohort' : 'savedCurrentCohort',
95
+ param1: newName,
96
+ param2: newCohortId,
97
+ },
98
+ ]);
99
+ setActiveCohort(newCohortId);
100
+ }
101
+ else {
102
+ setCohortMessage &&
103
+ setCohortMessage([
104
+ {
105
+ cmd: 'savedCohortSetCurrent',
106
+ param1: newName,
107
+ param2: newCohortId,
108
+ },
109
+ ]);
110
+ }
111
+ closeModal();
112
+ }
113
+ })
114
+ .catch(function () {
115
+ modals.openContextModal({
116
+ modal: 'saveCohortError',
117
+ title: 'Save Cohort Error',
118
+ innerProps: {},
119
+ });
120
+ setIsSaving(false);
121
+ });
122
+ }
123
+ else {
124
+ saveCohort({
125
+ newName: newName,
126
+ cohortId: cohortId,
127
+ filters: filters,
128
+ caseFilters: caseFilters,
129
+ createStaticCohort: createStaticCohort,
130
+ saveAs: saveAs,
131
+ })
132
+ .then(function (_a) {
133
+ var cohortAlreadyExists = _a.cohortAlreadyExists, newCohortId = _a.newCohortId;
134
+ if (cohortAlreadyExists) {
135
+ setShowReplaceCohort(true);
136
+ setIsSaving(false);
137
+ }
138
+ else {
139
+ if (newCohortId && (setAsCurrent || saveAs)) {
140
+ setActiveCohort(newCohortId);
141
+ }
142
+ var cmd = void 0;
143
+ if (cohortId) {
144
+ cmd = saveAs ? 'savedCohort' : 'savedCurrentCohort';
145
+ }
146
+ else {
147
+ cmd = setAsCurrent ? 'savedCohort' : 'savedCohortSetCurrent';
148
+ }
149
+ setCohortMessage &&
150
+ setCohortMessage([
151
+ {
152
+ cmd: cmd,
153
+ param1: newName,
154
+ param2: newCohortId,
155
+ },
156
+ ]);
157
+ closeModal();
158
+ }
159
+ })
160
+ .catch(function () {
161
+ modals.openContextModal({
162
+ modal: 'saveCohortError',
163
+ title: 'Save Cohort Error',
164
+ innerProps: {},
165
+ });
166
+ setIsSaving(false);
167
+ });
168
+ }
169
+ return [2 /*return*/];
170
+ });
171
+ }); };
172
+ var UpdateBody = function () { return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "p-4", children: [_jsx("p", { className: "font-content text-sm", children: "A saved cohort with same name already exists. Are you sure you want to replace it?" }), _jsx("p", { className: "text-xs font-content mt-1", children: "You cannot undo this action." })] }), _jsxs("div", { className: "bg-base-lightest flex p-4 gap-4 justify-end mt-4 rounded-b-lg sticky", "data-testid": "modal-button-container", children: [_jsx(Button, { variant: "outline", className: 'bg-white', color: "secondary", onClick: function () { return setShowReplaceCohort(false); }, children: "Cancel" }), _jsx(Button, { variant: "filled", color: "secondary", onClick: function () {
173
+ saveAction(enteredName, true);
174
+ }, "data-testid": "replace-cohort-button", leftSection: isSaving ? _jsx(Loader, { size: 15, color: "white" }) : undefined, children: "Replace" })] })] })); };
175
+ return (_jsx(Modal, { opened: opened, onClose: showReplaceCohort ? function () { return setShowReplaceCohort(false); } : onClose, title: showReplaceCohort
176
+ ? 'Replace Existing Cohort'
177
+ : saveAs
178
+ ? 'Save Cohort As'
179
+ : 'Save Cohort', size: "md", classNames: {
180
+ content: 'p-0',
181
+ title: 'text-xl',
182
+ }, children: showReplaceCohort ? (_jsx(UpdateBody, {})) : (_jsx(SaveOrCreateEntityBody, { entity: "cohort", action: "Save", initialName: initialName, onClose: onClose, onActionClick: function (name) {
183
+ saveAction(name, false);
184
+ setEnteredName(name);
185
+ }, descriptionMessage: saveAs
186
+ ? 'Provide a name to save your current cohort as a new cohort'
187
+ : 'Provide a name to save the cohort.', closeOnAction: false, loading: isSaving, disallowedNames: invalidCohortNames })) }));
188
+ };
189
+ export default SaveCohortModal;
190
+ //# sourceMappingURL=SaveCohortModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveCohortModal.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACjE,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O,EAChB,aAAa,EAAE,UAAC,IAAY;gBAC1B,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBACxB,cAAc,CAAC,IAAI,CAAC,CAAC;YACvB,CAAC,EACD,kBAAkB,EAChB,MAAM;gBACJ,CAAC,CAAC,4DAA4D;gBAC9D,CAAC,CAAC,oCAAoC,EAE1C,aAAa,EAAE,KAAK,EACpB,OAAO,EAAE,QAAQ,EACjB,eAAe,EAAE,kBAAkB,GACnC,CACH,GACK,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SaveCohortModal.unit.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveCohortModal.unit.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,145 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { jsx as _jsx } from "react/jsx-runtime";
38
+ import { render } from "@testing-library/react";
39
+ import userEvent from "@testing-library/user-event";
40
+ import SaveCohortModal from "./SaveCohortModal";
41
+ var hooks = {
42
+ useSelectCurrentCohort: jest.fn(),
43
+ useSelectAvailableCohorts: jest.fn(),
44
+ useDeleteCohort: jest.fn(),
45
+ useDiscardChanges: jest.fn(),
46
+ useUpdateFilters: jest.fn(),
47
+ useSetActiveCohort: jest.fn().mockReturnValue(jest.fn()),
48
+ useAddUnsavedCohort: jest.fn(),
49
+ useExportCohort: jest.fn(),
50
+ useImportCohort: jest.fn(),
51
+ useSaveCohort: jest
52
+ .fn()
53
+ .mockReturnValue(jest.fn().mockResolvedValue({ cohortAlreadyExists: true })),
54
+ useReplaceCohort: jest
55
+ .fn()
56
+ .mockReturnValue(jest.fn().mockResolvedValue({ newCohortId: "1" })),
57
+ };
58
+ describe("SaveCohortModal", function () {
59
+ beforeEach(function () {
60
+ jest.clearAllMocks();
61
+ });
62
+ test("populates name field from initialName", function () {
63
+ var getByRole = render(_jsx(SaveCohortModal, { onClose: jest.fn(), opened: true, filters: {
64
+ root: {
65
+ "projects.program.name": {
66
+ field: "projects.program.name",
67
+ operands: ["TCGA"],
68
+ operator: "includes",
69
+ },
70
+ },
71
+ mode: "and",
72
+ }, cohortId: "1", initialName: "cohort name", hooks: hooks, invalidCohortNames: [] })).getByRole;
73
+ var nameInput = getByRole("textbox", {
74
+ name: "Name",
75
+ });
76
+ expect(nameInput.value).toBe("cohort name");
77
+ });
78
+ test("replaces cohort with same name", function () { return __awaiter(void 0, void 0, void 0, function () {
79
+ var getByText;
80
+ return __generator(this, function (_a) {
81
+ switch (_a.label) {
82
+ case 0:
83
+ getByText = render(_jsx(SaveCohortModal, { opened: true, onClose: jest.fn(), filters: {
84
+ root: {
85
+ "projects.program.name": {
86
+ field: "projects.program.name",
87
+ operands: ["TCGA"],
88
+ operator: "includes",
89
+ },
90
+ },
91
+ mode: "and",
92
+ }, cohortId: "1", hooks: hooks, invalidCohortNames: [] })).getByText;
93
+ return [4 /*yield*/, userEvent.type(getByText("Name"), "my new cohort")];
94
+ case 1:
95
+ _a.sent();
96
+ return [4 /*yield*/, userEvent.click(getByText("Save"))];
97
+ case 2:
98
+ _a.sent();
99
+ expect(getByText("A saved cohort with same name already exists. Are you sure you want to replace it?")).toBeInTheDocument();
100
+ return [2 /*return*/];
101
+ }
102
+ });
103
+ }); });
104
+ test("clears state when modal is closed", function () { return __awaiter(void 0, void 0, void 0, function () {
105
+ var _a, getByText, queryByText, rerender;
106
+ return __generator(this, function (_b) {
107
+ switch (_b.label) {
108
+ case 0:
109
+ _a = render(_jsx(SaveCohortModal, { opened: true, onClose: jest.fn(), filters: {
110
+ root: {
111
+ "projects.program.name": {
112
+ field: "projects.program.name",
113
+ operands: ["TCGA"],
114
+ operator: "includes",
115
+ },
116
+ },
117
+ mode: "and",
118
+ }, cohortId: "1", hooks: hooks, invalidCohortNames: [] })), getByText = _a.getByText, queryByText = _a.queryByText, rerender = _a.rerender;
119
+ return [4 /*yield*/, userEvent.type(getByText("Name"), "my new cohort")];
120
+ case 1:
121
+ _b.sent();
122
+ return [4 /*yield*/, userEvent.click(getByText("Save"))];
123
+ case 2:
124
+ _b.sent();
125
+ return [4 /*yield*/, userEvent.click(getByText("Replace"))];
126
+ case 3:
127
+ _b.sent();
128
+ // Modal is closed
129
+ rerender(_jsx(SaveCohortModal, { opened: true, onClose: jest.fn(), filters: {
130
+ root: {
131
+ "projects.program.name": {
132
+ field: "projects.program.name",
133
+ operands: ["TCGA"],
134
+ operator: "includes",
135
+ },
136
+ },
137
+ mode: "and",
138
+ }, cohortId: "1", hooks: hooks, invalidCohortNames: [] }));
139
+ expect(queryByText("Replace Existing Cohort")).not.toBeInTheDocument();
140
+ return [2 /*return*/];
141
+ }
142
+ });
143
+ }); });
144
+ });
145
+ //# sourceMappingURL=SaveCohortModal.unit.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveCohortModal.unit.test.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,IAAM,KAAK,GAAG;IACZ,sBAAsB,EAAE,IAAI,CAAC,EAAE,EAAE;IACjC,yBAAyB,EAAE,IAAI,CAAC,EAAE,EAAE;IACpC,eAAe,EAAE,IAAI,CAAC,EAAE,EAAE;IAC1B,iBAAiB,E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,EAAE,KAAK,EACZ,kBAAkB,EAAE,EAAE,GACtB,CACH,EAlBO,SAAS,eAAA,EAAE,WAAW,iBAAA,EAAE,QAAQ,cAAA,CAkBtC;oBAEF,qBAAM,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC,EAAA;;oBAAxD,SAAwD,CAAC;oBACzD,qBAAM,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAA;;oBAAxC,SAAwC,CAAC;oBACzC,qBAAM,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,EAAA;;oBAA3C,SAA2C,CAAC;oBAE5C,kBAAkB;oBAElB,QAAQ,CACN,KAAC,eAAe,IACd,MAAM,QACN,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,EAClB,OAAO,EAAE;4BACP,IAAI,EAAE;gCACJ,uBAAuB,EAAE;oCACvB,KAAK,EAAE,uBAAuB;oCAC9B,QAAQ,EAAE,CAAC,MAAM,CAAC;oCAClB,QAAQ,EAAE,UAAU;iCACrB;6BACF;4BACD,IAAI,EAAE,KAAK;yBACZ,EACD,QAAQ,EAAC,GAAG,EACZ,KAAK,EAAE,KAAK,EACZ,kBAAkB,EAAE,EAAE,GACtB,CACH,CAAC;oBAEF,MAAM,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;;;;SACxE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ interface SaveOrCreateEntityModalProps {
2
+ entity: string;
3
+ action?: string;
4
+ initialName?: string;
5
+ opened: boolean;
6
+ onClose: () => void;
7
+ onActionClick: (name: string) => void;
8
+ onNameChange?: (name: string) => boolean;
9
+ descriptionMessage?: string;
10
+ additionalDuplicateMessage?: string;
11
+ disallowedNames?: string[];
12
+ }
13
+ export declare const SaveOrCreateEntityModal: ({ entity, action, initialName, opened, onClose, onActionClick, onNameChange, descriptionMessage, additionalDuplicateMessage, disallowedNames, }: SaveOrCreateEntityModalProps) => JSX.Element;
14
+ interface SaveOrCreateEntityBodyProps {
15
+ entity: string;
16
+ action?: string;
17
+ initialName?: string;
18
+ onClose: () => void;
19
+ onActionClick: (name: string) => void;
20
+ onNameChange?: (name: string) => boolean;
21
+ descriptionMessage?: string;
22
+ additionalDuplicateMessage?: string;
23
+ closeOnAction?: boolean;
24
+ loading?: boolean;
25
+ disallowedNames?: string[];
26
+ }
27
+ export declare const SaveOrCreateEntityBody: ({ entity, action, initialName, onClose, onActionClick, onNameChange, descriptionMessage, additionalDuplicateMessage, closeOnAction, loading, disallowedNames, }: SaveOrCreateEntityBodyProps) => JSX.Element;
28
+ export {};
29
+ //# sourceMappingURL=SaveOrCreateEntityModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveOrCreateEntityModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.tsx"],"names":[],"mappings":"AAOA,UAAU,4BAA4B;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AACD,eAAO,MAAM,uBAAuB,GAAI,iJAWrC,4BAA4B,KAAG,GAAG,CAAC,OAsBrC,CAAC;AAEF,UAAU,2BAA2B;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,sBAAsB,GAAI,iKAYpC,2BAA2B,KAAG,GAAG,CAAC,OAuGpC,CAAC"}
@@ -0,0 +1,79 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
24
+ import { upperFirst } from 'lodash';
25
+ import { Button, Modal, TextInput, Loader } from '@mantine/core';
26
+ import { useForm } from '@mantine/form';
27
+ import ErrorMessage from '../../../../components/MessageCards/ErrorMessage';
28
+ import { Icon } from '@iconify/react';
29
+ export var SaveOrCreateEntityModal = function (_a) {
30
+ var entity = _a.entity, _b = _a.action, action = _b === void 0 ? 'Save' : _b, _c = _a.initialName, initialName = _c === void 0 ? '' : _c, opened = _a.opened, onClose = _a.onClose, onActionClick = _a.onActionClick, onNameChange = _a.onNameChange, descriptionMessage = _a.descriptionMessage, additionalDuplicateMessage = _a.additionalDuplicateMessage, _d = _a.disallowedNames, disallowedNames = _d === void 0 ? [] : _d;
31
+ return (_jsx(Modal, { title: "".concat(upperFirst(action), " ").concat(upperFirst(entity)), opened: opened, padding: 0, radius: "md", onClose: onClose, children: _jsx(SaveOrCreateEntityBody, { entity: entity, action: action, initialName: initialName, onClose: onClose, onActionClick: onActionClick, onNameChange: onNameChange, descriptionMessage: descriptionMessage, additionalDuplicateMessage: additionalDuplicateMessage, disallowedNames: disallowedNames }) }));
32
+ };
33
+ export var SaveOrCreateEntityBody = function (_a) {
34
+ var _b;
35
+ var entity = _a.entity, _c = _a.action, action = _c === void 0 ? 'Save' : _c, _d = _a.initialName, initialName = _d === void 0 ? '' : _d, onClose = _a.onClose, onActionClick = _a.onActionClick, onNameChange = _a.onNameChange, descriptionMessage = _a.descriptionMessage, additionalDuplicateMessage = _a.additionalDuplicateMessage, _e = _a.closeOnAction, closeOnAction = _e === void 0 ? true : _e, _f = _a.loading, loading = _f === void 0 ? false : _f, _g = _a.disallowedNames, disallowedNames = _g === void 0 ? [] : _g;
36
+ var validationMessages = {
37
+ emptyField: 'Please fill out this field.',
38
+ invalidName: function (value) {
39
+ return "".concat(value, " is not a valid name for a saved ").concat(entity, ". Please try another name.");
40
+ },
41
+ };
42
+ var form = useForm({
43
+ initialValues: {
44
+ name: initialName,
45
+ },
46
+ validate: {
47
+ name: function (value) {
48
+ if (value.length === 0) {
49
+ return validationMessages.emptyField;
50
+ }
51
+ else if (disallowedNames.includes(value.trim().toLowerCase())) {
52
+ return validationMessages.invalidName(value);
53
+ }
54
+ return null;
55
+ },
56
+ },
57
+ });
58
+ // ignoring this error object as new one is being defined below
59
+ var _h = form.getInputProps('name'), _ = _h.error, inputProps = __rest(_h, ["error"]);
60
+ var validationError = form.errors.name;
61
+ var error = validationError && (_jsx(ErrorMessage, { message: validationError }));
62
+ var description = Object.keys(form.errors).length === 0 &&
63
+ (onNameChange && !onNameChange((((_b = form === null || form === void 0 ? void 0 : form.values) === null || _b === void 0 ? void 0 : _b.name) || '').trim()) ? (_jsxs("span", { className: "text-warningColorText", children: [_jsx(Icon, { icon: "gen3:wanring", className: "text-warningColor inline mr-0.5" }), "A ", entity, " with the same name already exists.", ' ', additionalDuplicateMessage && additionalDuplicateMessage] })) : (_jsx("span", { children: "Maximum 100 characters" })));
64
+ var handleActionClick = function () {
65
+ var _a;
66
+ if (form.validate().hasErrors || loading)
67
+ return;
68
+ onActionClick((((_a = form === null || form === void 0 ? void 0 : form.values) === null || _a === void 0 ? void 0 : _a.name) || '').trim());
69
+ if (closeOnAction) {
70
+ onClose();
71
+ }
72
+ };
73
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "font-content mt-1 mr-6 mb-5 ml-3", children: [_jsx("p", { className: "mb-2 text-sm font-content", children: descriptionMessage && descriptionMessage }), _jsx(TextInput, __assign({ withAsterisk: true, label: "Name", placeholder: "New ".concat(upperFirst(entity), " Name"), description: description, classNames: {
74
+ description: 'mt-1',
75
+ input: 'font-content data-[invalid=true]:text-utility-error data-[invalid=true]:border-utility-error',
76
+ error: 'text-utility-error',
77
+ }, "data-autofocus": true, maxLength: 100, error: error, inputWrapperOrder: ['label', 'input', 'error', 'description'] }, inputProps, { "aria-required": true, "data-testid": "textbox-name-input-field" }))] }), _jsx("div", { className: "bg-base-lightest p-4", children: _jsxs("div", { className: "flex justify-end gap-3", children: [_jsx(Button, { "data-testid": "button-cancel-save", variant: "outline", classNames: { root: 'bg-base-max' }, color: "secondary", onClick: onClose, children: "Cancel" }), _jsx(Button, { variant: "filled", color: "secondary", onClick: handleActionClick, "data-testid": "button-save-name", leftSection: loading ? _jsx(Loader, { size: 15, color: "white" }) : undefined, children: upperFirst(action) })] }) })] }));
78
+ };
79
+ //# sourceMappingURL=SaveOrCreateEntityModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveOrCreateEntityModal.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AActC,MAAM,CAAC,IAAM,uBAAuB,GAAG,UAAC,EAWT;QAV7B,MAAM,YAAA,EACN,cAAe,EAAf,MAAM,mBAAG,MAAM,KAAA,EACf,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA,EAChB,MAAM,YAAA,EACN,OAAO,aAAA,EACP,aAAa,mBAAA,EACb,YAAY,kBAAA,EACZ,kBAAkB,wBAAA,EAClB,0BAA0B,gCAAA,EAC1B,uBAAoB,EAApB,eAAe,mBAAG,EAAE,KAAA;IAEpB,OAAO,CACL,KAAC,KAAK,IACJ,KAAK,EAAE,UAAG,UAAU,CAAC,MAAM,CAAC,cAAI,UAAU,CAAC,MAAM,CAAC,CAAE,EACpD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAE,OAAO,YAEhB,KAAC,sBAAsB,IACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,aA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EAAE,cAAO,UAAU,CAAC,MAAM,CAAC,UAAO,EAC7C,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE;4BACV,WAAW,EAAE,MAAM;4BACnB,KAAK,EACH,8FAA8F;4BAChG,KAAK,EAAE,oBAAoB;yBAC5B,0BAED,SAAS,EAAE,GAAG,EACd,KAAK,EAAE,KAAK,EACZ,iBAAiB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,IACzD,UAAU,0CAEF,0BAA0B,IACtC,IACE,EACN,cAAK,SAAS,EAAC,sBAAsB,YACnC,eAAK,SAAS,EAAC,wBAAwB,aACrC,KAAC,MAAM,mBACO,oBAAoB,EAChC,OAAO,EAAC,SAAS,EACjB,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EACnC,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,OAAO,uBAGT,EACT,KAAC,MAAM,IACL,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,iBAAiB,iBACd,kBAAkB,EAC9B,WAAW,EACT,OAAO,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,OAAO,GAAG,CAAC,CAAC,CAAC,SAAS,YAGzD,UAAU,CAAC,MAAM,CAAC,GACZ,IACL,GACF,IACL,CACJ,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const getCombinedClassesExpandCollapseQuery: (allQueryExpressionsCollapsed: boolean) => string;
2
+ export declare const getCombinedClassesForRowCollapse: (filtersSectionCollapsed: boolean) => string;
3
+ export declare const actionButtonVariant = "data-[variant=\"action\"]:h-12 data-[variant=\"action\"]:w-12 data-[variant=\"action\"]:flex data-[variant=\"action\"]:justify-center data-[variant=\"action\"]:items-center\n data-[variant=\"action\"]:transition-colors data-[variant=\"action\"]:focus-visible:outline-none data-[variant=\"action\"]:focus-visible:ring-offset-2 data-[variant=\"action\"]:focus-visible:ring-inset\n data-[variant=\"action\"]:focus-visible:ring-2 data-[variant=\"action\"]:focus-visible:ring-focusColor data-[variant=\"action\"]:disabled:opacity-50 data-[variant=\"action\"]:disabled:bg-base-max data-[variant=\"action\"]:disabled:text-primary\n data-[variant=\"action\"]:text-primary data-[variant=\"action\"]:hover:bg-primary-darkest data-[variant=\"action\"]:hover:text-primary-content-lightest data-[variant=\"action\"]:bg-base-max";
4
+ export declare const darkFunctionVariant = "\ndata-[variant=\"darkFunction\"]:flex\ndata-[variant=\"darkFunction\"]:flex-row\ndata-[variant=\"darkFunction\"]:items-center\ndata-[variant=\"darkFunction\"]:bg-secondary\ndata-[variant=\"darkFunction\"]:text-secondary-contrast\ndata-[variant=\"darkFunction\"]:border\ndata-[variant=\"darkFunction\"]:border-solid\ndata-[variant=\"darkFunction\"]:font-heading\ndata-[variant=\"darkFunction\"]:disabled:opacity-60\ndata-[variant=\"darkFunction\"]:disabled:border-opacity-60\ndata-[variant=\"darkFunction\"]:disabled:text-opacity-60";
5
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/style.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qCAAqC,GAChD,8BAA8B,OAAO,WAWtC,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAC3C,yBAAyB,OAAO,WAYjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,szBAGwJ,CAAC;AAEzL,eAAO,MAAM,mBAAmB,yhBAWuB,CAAC"}
@@ -0,0 +1,21 @@
1
+ export var getCombinedClassesExpandCollapseQuery = function (allQueryExpressionsCollapsed) {
2
+ var baseClasses = "flex gap-0 items-center border-1 border-base-max rounded-md w-7 h-7";
3
+ var dynamicClasses = allQueryExpressionsCollapsed
4
+ ? "text-primary bg-base-max"
5
+ : "text-base-max bg-transparent";
6
+ var disabledClasses = "disabled:opacity-50";
7
+ var enabledHoverClasses = "enabled:hover:bg-primary-darkest enabled:hover:text-primary-content-lightest enabled:hover:border-primary-darkest";
8
+ return "".concat(dynamicClasses, " ").concat(disabledClasses, " ").concat(enabledHoverClasses, " ").concat(baseClasses);
9
+ };
10
+ export var getCombinedClassesForRowCollapse = function (filtersSectionCollapsed) {
11
+ var baseClasses = "border-1 border-white rounded-md w-7 h-7 flex items-center";
12
+ var dynamicClasses = !filtersSectionCollapsed
13
+ ? "text-primary bg-base-max"
14
+ : "text-base-max bg-transparent";
15
+ var disabledClasses = "disabled:opacity-50 disabled:bg-base-max disabled:text-primary";
16
+ var enabledHoverClasses = "enabled:hover:bg-primary-darkest enabled:hover:text-primary-content-lightest enabled:hover:border-primary-darkest";
17
+ return "".concat(disabledClasses, " ").concat(enabledHoverClasses, " ").concat(baseClasses, " ").concat(dynamicClasses);
18
+ };
19
+ export var actionButtonVariant = "data-[variant=\"action\"]:h-12 data-[variant=\"action\"]:w-12 data-[variant=\"action\"]:flex data-[variant=\"action\"]:justify-center data-[variant=\"action\"]:items-center\n data-[variant=\"action\"]:transition-colors data-[variant=\"action\"]:focus-visible:outline-none data-[variant=\"action\"]:focus-visible:ring-offset-2 data-[variant=\"action\"]:focus-visible:ring-inset\n data-[variant=\"action\"]:focus-visible:ring-2 data-[variant=\"action\"]:focus-visible:ring-focusColor data-[variant=\"action\"]:disabled:opacity-50 data-[variant=\"action\"]:disabled:bg-base-max data-[variant=\"action\"]:disabled:text-primary\n data-[variant=\"action\"]:text-primary data-[variant=\"action\"]:hover:bg-primary-darkest data-[variant=\"action\"]:hover:text-primary-content-lightest data-[variant=\"action\"]:bg-base-max";
20
+ export var darkFunctionVariant = "\ndata-[variant=\"darkFunction\"]:flex\ndata-[variant=\"darkFunction\"]:flex-row\ndata-[variant=\"darkFunction\"]:items-center\ndata-[variant=\"darkFunction\"]:bg-secondary\ndata-[variant=\"darkFunction\"]:text-secondary-contrast\ndata-[variant=\"darkFunction\"]:border\ndata-[variant=\"darkFunction\"]:border-solid\ndata-[variant=\"darkFunction\"]:font-heading\ndata-[variant=\"darkFunction\"]:disabled:opacity-60\ndata-[variant=\"darkFunction\"]:disabled:border-opacity-60\ndata-[variant=\"darkFunction\"]:disabled:text-opacity-60";
21
+ //# sourceMappingURL=style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/style.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,qCAAqC,GAAG,UACnD,4BAAqC;IAErC,IAAM,WAAW,GACf,qEAAqE,CAAC;IACxE,IAAM,cAAc,GAAG,4BAA4B;QACjD,CAAC,CAAC,0BAA0B;QAC5B,CAAC,CAAC,8BAA8B,CAAC;IACnC,IAAM,eAAe,GAAG,qBAAqB,CAAC;IAC9C,IAAM,mBAAmB,GACvB,mHAAmH,CAAC;IACtH,OAAO,UAAG,cAAc,cAAI,eAAe,cAAI,mBAAmB,cAAI,WAAW,CAAE,CAAC;AACtF,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,gCAAgC,GAAG,UAC9C,uBAAgC;IAEhC,IAAM,WAAW,GACf,4DAA4D,CAAC;IAC/D,IAAM,cAAc,GAAG,CAAC,uBAAuB;QAC7C,CAAC,CAAC,0BAA0B;QAC5B,CAAC,CAAC,8BAA8B,CAAC;IACnC,IAAM,eAAe,GACnB,gEAAgE,CAAC;IACnE,IAAM,mBAAmB,GACvB,mHAAmH,CAAC;IACtH,OAAO,UAAG,eAAe,cAAI,mBAAmB,cAAI,WAAW,cAAI,cAAc,CAAE,CAAC;AACtF,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAG,mzBAGqJ,CAAC;AAEzL,MAAM,CAAC,IAAM,mBAAmB,GAAG,shBAWoB,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { type CohortPersistenceSaveReplaceParameters, type ReplacePersistedCohortResults, type SavePersistedCohortResult } from '@gen3/core';
2
+ export interface DataFetchingResult<T> extends DataFetchingStatus {
3
+ readonly data: T;
4
+ }
5
+ export interface DataFetchingStatus {
6
+ readonly isSuccess?: boolean;
7
+ readonly isFetching?: boolean;
8
+ readonly isError?: boolean;
9
+ readonly isUninitialized?: boolean;
10
+ readonly error?: string;
11
+ }
12
+ export interface Cohort {
13
+ readonly id: string;
14
+ readonly name: string;
15
+ readonly filters: Record<string, any>;
16
+ readonly modified?: boolean;
17
+ readonly modified_datetime: string;
18
+ readonly saved?: boolean;
19
+ }
20
+ export type NotificationTypes = 'newCohort' | 'deleteCohort' | 'savedCohort' | 'savedCohortSetCurrent' | 'savedCurrentCohort' | 'discardChanges' | 'error';
21
+ export interface CohortNotificationCommandWithParam {
22
+ cmd: Omit<NotificationTypes, 'savedCurrentCohort' | 'discardChanges'>;
23
+ param1: string;
24
+ param2?: string;
25
+ }
26
+ export interface CohortNotificationCommandNoParam {
27
+ cmd: 'savedCurrentCohort' | 'discardChanges';
28
+ }
29
+ export type CohortNotificationCommand = CohortNotificationCommandWithParam | CohortNotificationCommandNoParam;
30
+ type SetCohortMessageFunc = (cmd: CohortNotificationCommand[]) => void;
31
+ export interface CohortHooks {
32
+ useSelectCurrentCohort: () => Cohort;
33
+ useSelectAvailableCohorts: () => Cohort[];
34
+ useDeleteCohort: () => () => Promise<void>;
35
+ useDiscardChanges: () => () => Promise<void>;
36
+ useUpdateFilters?: () => () => void;
37
+ useSetActiveCohort: () => (cohortId: string) => void;
38
+ useAddUnsavedCohort: () => () => void;
39
+ useSaveCohort: () => ({ newName, cohortId, filters, caseFilters, createStaticCohort, saveAs, }: CohortPersistenceSaveReplaceParameters) => Promise<SavePersistedCohortResult>;
40
+ useReplaceCohort: () => ({ newName, filters, caseFilters, createStaticCohort, cohortId, saveAs, }: CohortPersistenceSaveReplaceParameters) => Promise<ReplacePersistedCohortResults>;
41
+ useExportCohort?: () => {
42
+ handleExport: () => void;
43
+ status: DataFetchingStatus;
44
+ };
45
+ useImportCohort?: () => () => void;
46
+ useCreateCohortExternally?: (setCohortMessage?: SetCohortMessageFunc) => void;
47
+ }
48
+ export {};
49
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sCAAsC,EAC3C,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC/B,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,kBAAkB,CAAC,CAAC,CAAE,SAAQ,kBAAkB;IAC/D,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACtC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,MAAM,iBAAiB,GACzB,WAAW,GACX,cAAc,GACd,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,gBAAgB,GAChB,OAAO,CAAC;AAEZ,MAAM,WAAW,kCAAkC;IACjD,GAAG,EAAE,IAAI,CAAC,iBAAiB,EAAE,oBAAoB,GAAG,gBAAgB,CAAC,CAAC;IACtE,M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I,CAAC;CAC/E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ interface CohortManagerProps {
2
+ index: string;
3
+ }
4
+ declare const CohortManagerAndExpression: ({ index }: CohortManagerProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default CohortManagerAndExpression;
6
+ //# sourceMappingURL=CohortManagerAndExpression.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CohortManagerAndExpression.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortBuilder/CohortManagerAndExpression.tsx"],"names":[],"mappings":"AAkBA,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,0BAA0B,GAAI,WAAW,kBAAkB,4CAqBhE,CAAC;AAEF,eAAe,0BAA0B,CAAC"}