@gen3/frontend 0.10.94 → 0.10.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (495) hide show
  1. package/dist/cjs/index.js +5530 -3554
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts +64 -0
  4. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  5. package/dist/dts/components/DropdownMenu/DropdownMenu.js +38 -0
  6. package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +1 -0
  7. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +2 -0
  8. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +1 -0
  9. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +141 -0
  10. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +1 -0
  11. package/dist/dts/components/DropdownMenu/index.d.ts +3 -0
  12. package/dist/dts/components/DropdownMenu/index.d.ts.map +1 -0
  13. package/dist/dts/components/DropdownMenu/index.js +3 -0
  14. package/dist/dts/components/DropdownMenu/index.js.map +1 -0
  15. package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
  16. package/dist/dts/components/Login/LoginProvidersPanel.js +1 -1
  17. package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
  18. package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts +5 -0
  19. package/dist/dts/components/MessageCards/EmptyTableMessage.d.ts.map +1 -0
  20. package/dist/dts/components/MessageCards/EmptyTableMessage.js +9 -0
  21. package/dist/dts/components/MessageCards/EmptyTableMessage.js.map +1 -0
  22. package/dist/dts/components/MessageCards/ErrorMessage.d.ts +7 -0
  23. package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +1 -0
  24. package/dist/dts/components/MessageCards/ErrorMessage.js +8 -0
  25. package/dist/dts/components/MessageCards/ErrorMessage.js.map +1 -0
  26. package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
  27. package/dist/dts/components/charts/echarts/BarChart.js +42 -4
  28. package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
  29. package/dist/dts/components/charts/echarts/ReactECharts.js +1 -1
  30. package/dist/dts/components/charts/echarts/ReactECharts.js.map +1 -1
  31. package/dist/dts/components/charts/utils.d.ts +1 -1
  32. package/dist/dts/components/charts/utils.d.ts.map +1 -1
  33. package/dist/dts/components/charts/utils.js +2 -4
  34. package/dist/dts/components/charts/utils.js.map +1 -1
  35. package/dist/dts/components/facets/EnumFacet.d.ts +2 -1
  36. package/dist/dts/components/facets/EnumFacet.d.ts.map +1 -1
  37. package/dist/dts/components/facets/EnumFacet.js.map +1 -1
  38. package/dist/dts/components/facets/FacetEnumList.d.ts.map +1 -1
  39. package/dist/dts/components/facets/FacetEnumList.js +7 -30
  40. package/dist/dts/components/facets/FacetEnumList.js.map +1 -1
  41. package/dist/dts/components/facets/FacetSelector.d.ts +1 -1
  42. package/dist/dts/components/facets/FacetSelector.d.ts.map +1 -1
  43. package/dist/dts/components/facets/FacetSelector.js +3 -1
  44. package/dist/dts/components/facets/FacetSelector.js.map +1 -1
  45. package/dist/dts/components/facets/types.d.ts +1 -0
  46. package/dist/dts/components/facets/types.d.ts.map +1 -1
  47. package/dist/dts/components/facets/types.js.map +1 -1
  48. package/dist/dts/components/facets/utils.d.ts +4 -2
  49. package/dist/dts/components/facets/utils.d.ts.map +1 -1
  50. package/dist/dts/components/facets/utils.js +27 -1
  51. package/dist/dts/components/facets/utils.js.map +1 -1
  52. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
  53. package/dist/dts/features/CohortBuilder/AccessLevel.d.ts +8 -0
  54. package/dist/dts/features/CohortBuilder/AccessLevel.d.ts.map +1 -0
  55. package/dist/dts/features/CohortBuilder/AccessLevel.js +20 -0
  56. package/dist/dts/features/CohortBuilder/AccessLevel.js.map +1 -0
  57. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
  58. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
  59. package/dist/dts/features/CohortBuilder/CohortBuilder.js +4 -19
  60. package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
  61. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +20 -0
  62. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
  63. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +37 -0
  64. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
  65. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +18 -0
  66. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
  67. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +149 -0
  68. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
  69. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +9 -0
  70. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +1 -0
  71. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +122 -0
  72. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +1 -0
  73. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +19 -0
  74. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +1 -0
  75. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +52 -0
  76. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +1 -0
  77. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +10 -0
  78. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
  79. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +37 -0
  80. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
  81. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +13 -0
  82. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +1 -0
  83. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +33 -0
  84. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +1 -0
  85. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +7 -0
  86. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +1 -0
  87. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js +80 -0
  88. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +1 -0
  89. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +5 -0
  90. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +1 -0
  91. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +5 -0
  92. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +1 -0
  93. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +5 -0
  94. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +1 -0
  95. package/dist/dts/features/CohortBuilder/CohortManager/index.js +4 -0
  96. package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +1 -0
  97. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +13 -0
  98. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +1 -0
  99. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +15 -0
  100. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +1 -0
  101. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +4 -0
  102. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +1 -0
  103. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +8 -0
  104. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +1 -0
  105. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +32 -0
  106. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
  107. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +190 -0
  108. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
  109. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +2 -0
  110. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +1 -0
  111. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +145 -0
  112. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +1 -0
  113. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
  114. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
  115. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +79 -0
  116. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
  117. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +5 -0
  118. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +1 -0
  119. package/dist/dts/features/CohortBuilder/CohortManager/style.js +21 -0
  120. package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +1 -0
  121. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +49 -0
  122. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +1 -0
  123. package/dist/dts/features/CohortBuilder/CohortManager/types.js +2 -0
  124. package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +1 -0
  125. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts +6 -0
  126. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.d.ts.map +1 -0
  127. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js +21 -0
  128. package/dist/dts/features/CohortBuilder/CohortManagerAndExpression.js.map +1 -0
  129. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts +6 -2
  130. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  131. package/dist/dts/features/CohortBuilder/CohortPanel.js +15 -19
  132. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  133. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +8 -1
  134. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -1
  135. package/dist/dts/features/CohortBuilder/CohortSelector.js +51 -10
  136. package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -1
  137. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +6 -0
  138. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts.map +1 -0
  139. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js +32 -0
  140. package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.js.map +1 -0
  141. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts +1 -1
  142. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.d.ts.map +1 -1
  143. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js +1 -1
  144. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/QueryRowDetailsPanel.js.map +1 -1
  145. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts +2 -0
  146. package/dist/dts/features/CohortBuilder/ExplorerTable/ExploreTableDetails/types.d.ts.map +1 -1
  147. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts +3 -2
  148. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
  149. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +56 -60
  150. package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
  151. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts +4 -0
  152. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.d.ts.map +1 -0
  153. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js +48 -0
  154. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExpandingSubtable.js.map +1 -0
  155. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts +4 -0
  156. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.d.ts.map +1 -0
  157. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js +81 -0
  158. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/ExplorerTableSubtable.js.map +1 -0
  159. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts +9 -0
  160. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.d.ts.map +1 -0
  161. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js +22 -0
  162. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableAccordian.js.map +1 -0
  163. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts +9 -0
  164. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.d.ts.map +1 -0
  165. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js +17 -0
  166. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/SubtableStack.js.map +1 -0
  167. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts +12 -0
  168. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.d.ts.map +1 -0
  169. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js +2 -0
  170. package/dist/dts/features/CohortBuilder/ExplorerTable/SubTables/types.js.map +1 -0
  171. package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts +52 -12
  172. package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts.map +1 -1
  173. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts +4 -1
  174. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.d.ts.map +1 -1
  175. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js +70 -0
  176. package/dist/dts/features/CohortBuilder/ExplorerTable/utils.js.map +1 -1
  177. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts +1 -1
  178. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.d.ts.map +1 -1
  179. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js +2 -2
  180. package/dist/dts/features/CohortBuilder/Panels/AccordianPanel.js.map +1 -1
  181. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts +1 -1
  182. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.d.ts.map +1 -1
  183. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js +5 -4
  184. package/dist/dts/features/CohortBuilder/Panels/DropdownPanel.js.map +1 -1
  185. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.d.ts.map +1 -1
  186. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js +2 -1
  187. package/dist/dts/features/CohortBuilder/Panels/TabbedPanel.js.map +1 -1
  188. package/dist/dts/features/CohortBuilder/Panels/types.d.ts +4 -1
  189. package/dist/dts/features/CohortBuilder/Panels/types.d.ts.map +1 -1
  190. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -1
  191. package/dist/dts/features/CohortBuilder/index.d.ts +5 -2
  192. package/dist/dts/features/CohortBuilder/index.d.ts.map +1 -1
  193. package/dist/dts/features/CohortBuilder/index.js +4 -1
  194. package/dist/dts/features/CohortBuilder/index.js.map +1 -1
  195. package/dist/dts/features/CohortBuilder/types.d.ts +13 -5
  196. package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
  197. package/dist/dts/features/CohortBuilder/types.js +6 -0
  198. package/dist/dts/features/CohortBuilder/types.js.map +1 -1
  199. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
  200. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +19 -11
  201. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
  202. package/dist/dts/features/CohortDiscovery/CohortDiscovery.d.ts.map +1 -1
  203. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js +23 -8
  204. package/dist/dts/features/CohortDiscovery/CohortDiscovery.js.map +1 -1
  205. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts +6 -0
  206. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.d.ts.map +1 -0
  207. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +71 -0
  208. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js.map +1 -0
  209. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts +2 -0
  210. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.d.ts.map +1 -0
  211. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js +36 -0
  212. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerMiddleware.js.map +1 -0
  213. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts +417 -0
  214. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.d.ts.map +1 -0
  215. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js +45 -0
  216. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSelectors.js.map +1 -0
  217. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts +95 -0
  218. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.d.ts.map +1 -0
  219. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js +388 -0
  220. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManagerSlice.js.map +1 -0
  221. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +64 -0
  222. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +1 -0
  223. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +574 -0
  224. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +1 -0
  225. package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts +7 -0
  226. package/dist/dts/features/CohortDiscovery/CohortManagment/types.d.ts.map +1 -0
  227. package/dist/dts/features/CohortDiscovery/CohortManagment/types.js +2 -0
  228. package/dist/dts/features/CohortDiscovery/CohortManagment/types.js.map +1 -0
  229. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts +1 -1
  230. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.d.ts.map +1 -1
  231. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js +1 -1
  232. package/dist/dts/features/CohortDiscovery/FacetSelectionPanel.js.map +1 -1
  233. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts +1 -1
  234. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.d.ts.map +1 -1
  235. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js +1 -1
  236. package/dist/dts/features/CohortDiscovery/FilterExpandSlice.js.map +1 -1
  237. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts +2 -1
  238. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.d.ts.map +1 -1
  239. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js +22 -6
  240. package/dist/dts/features/CohortDiscovery/FilterPanels/EnumFacetPanel.js.map +1 -1
  241. package/dist/dts/features/CohortDiscovery/FilterPanels/FacetPanelDataHeader.js.map +1 -1
  242. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts +1 -1
  243. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
  244. package/dist/dts/features/CohortDiscovery/IndexPanel.js +41 -33
  245. package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
  246. package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts +22 -0
  247. package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts.map +1 -0
  248. package/dist/dts/features/CohortDiscovery/Requests/hooks.js +147 -0
  249. package/dist/dts/features/CohortDiscovery/Requests/hooks.js.map +1 -0
  250. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts +1 -0
  251. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +1 -0
  252. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +284 -0
  253. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +1 -0
  254. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts +8 -0
  255. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.d.ts.map +1 -0
  256. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js +9 -0
  257. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsPanel.js.map +1 -0
  258. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts +10 -0
  259. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.d.ts.map +1 -0
  260. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js +231 -0
  261. package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js.map +1 -0
  262. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts +3 -4
  263. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.d.ts.map +1 -1
  264. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js +6 -11
  265. package/dist/dts/features/CohortDiscovery/SelectedFacetsSlice.js.map +1 -1
  266. package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts +8 -0
  267. package/dist/dts/features/CohortDiscovery/TabbedIndex.d.ts.map +1 -0
  268. package/dist/dts/features/CohortDiscovery/TabbedIndex.js +15 -0
  269. package/dist/dts/features/CohortDiscovery/TabbedIndex.js.map +1 -0
  270. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +2 -2
  271. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -1
  272. package/dist/dts/features/CohortDiscovery/appApi.d.ts +19 -3
  273. package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
  274. package/dist/dts/features/CohortDiscovery/appApi.js +11 -3
  275. package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
  276. package/dist/dts/features/CohortDiscovery/hooks.d.ts +12 -0
  277. package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
  278. package/dist/dts/features/CohortDiscovery/hooks.js +42 -1
  279. package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
  280. package/dist/dts/features/CohortDiscovery/registerApp.d.ts.map +1 -1
  281. package/dist/dts/features/CohortDiscovery/registerApp.js +5 -3
  282. package/dist/dts/features/CohortDiscovery/registerApp.js.map +1 -1
  283. package/dist/dts/features/CohortDiscovery/types.d.ts +57 -0
  284. package/dist/dts/features/CohortDiscovery/types.d.ts.map +1 -1
  285. package/dist/dts/features/CohortDiscovery/types.js +35 -1
  286. package/dist/dts/features/CohortDiscovery/types.js.map +1 -1
  287. package/dist/dts/features/CohortSimilarity/appApi.d.ts +4 -6
  288. package/dist/dts/features/CohortSimilarity/appApi.d.ts.map +1 -1
  289. package/dist/dts/features/CohortSimilarity/appApi.js +3 -1
  290. package/dist/dts/features/CohortSimilarity/appApi.js.map +1 -1
  291. package/dist/dts/features/CohortSimilarity/registerApp.d.ts.map +1 -1
  292. package/dist/dts/features/CohortSimilarity/registerApp.js +1 -3
  293. package/dist/dts/features/CohortSimilarity/registerApp.js.map +1 -1
  294. package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
  295. package/dist/dts/features/DataLibrary/DatasetAccordionControl.js +2 -2
  296. package/dist/dts/features/DataLibrary/DatasetAccordionControl.js.map +1 -1
  297. package/dist/dts/features/DataLibrary/SearchAndActions.js +1 -1
  298. package/dist/dts/features/DataLibrary/SearchAndActions.js.map +1 -1
  299. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.d.ts.map +1 -1
  300. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js +1 -1
  301. package/dist/dts/features/DataLibrary/tables/SelectedItemsTable.js.map +1 -1
  302. package/dist/dts/features/DataLibrary/tests/utils.unit.test.js +2 -1
  303. package/dist/dts/features/DataLibrary/tests/utils.unit.test.js.map +1 -1
  304. package/dist/dts/features/DataLibrary/utils.d.ts +0 -10
  305. package/dist/dts/features/DataLibrary/utils.d.ts.map +1 -1
  306. package/dist/dts/features/DataLibrary/utils.js +0 -34
  307. package/dist/dts/features/DataLibrary/utils.js.map +1 -1
  308. package/dist/dts/features/Dictionary/CategoryPanel.d.ts.map +1 -1
  309. package/dist/dts/features/Dictionary/CategoryPanel.js +9 -9
  310. package/dist/dts/features/Dictionary/CategoryPanel.js.map +1 -1
  311. package/dist/dts/features/Dictionary/DictionaryWithContext.d.ts.map +1 -1
  312. package/dist/dts/features/Dictionary/DictionaryWithContext.js.map +1 -1
  313. package/dist/dts/features/Discovery/DataLoaders/IndexedMetadata/DataLoader.js.map +1 -1
  314. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.d.ts.map +1 -1
  315. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js +2 -2
  316. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/DataLoader.js.map +1 -1
  317. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.d.ts.map +1 -1
  318. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js +1 -1
  319. package/dist/dts/features/Discovery/DataLoaders/MDSAllLocal/filterByTags.js.map +1 -1
  320. package/dist/dts/features/Discovery/DataLoaders/utils.d.ts.map +1 -1
  321. package/dist/dts/features/Discovery/DataLoaders/utils.js +1 -1
  322. package/dist/dts/features/Discovery/DataLoaders/utils.js.map +1 -1
  323. package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
  324. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +8 -6
  325. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
  326. package/dist/dts/features/Discovery/DiscoveryProvider.d.ts +0 -3
  327. package/dist/dts/features/Discovery/DiscoveryProvider.d.ts.map +1 -1
  328. package/dist/dts/features/Discovery/DiscoveryProvider.js +0 -5
  329. package/dist/dts/features/Discovery/DiscoveryProvider.js.map +1 -1
  330. package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
  331. package/dist/dts/features/Discovery/DiscoveryTable.js +7 -5
  332. package/dist/dts/features/Discovery/DiscoveryTable.js.map +1 -1
  333. package/dist/dts/features/Discovery/StudyDetails/StudyItems.d.ts.map +1 -1
  334. package/dist/dts/features/Discovery/StudyDetails/StudyItems.js +3 -1
  335. package/dist/dts/features/Discovery/StudyDetails/StudyItems.js.map +1 -1
  336. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts +2 -3
  337. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.d.ts.map +1 -1
  338. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js +3 -3
  339. package/dist/dts/features/Discovery/TableRenderers/CellRenderers.js.map +1 -1
  340. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts +1 -2
  341. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
  342. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js +5 -6
  343. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js.map +1 -1
  344. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts +1 -1
  345. package/dist/dts/features/Discovery/TableRenderers/RowRendererFactory.d.ts.map +1 -1
  346. package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts +1 -1
  347. package/dist/dts/features/Discovery/TableRenderers/RowRenderers.d.ts.map +1 -1
  348. package/dist/dts/features/Discovery/index.d.ts +2 -4
  349. package/dist/dts/features/Discovery/index.d.ts.map +1 -1
  350. package/dist/dts/features/Discovery/index.js +1 -3
  351. package/dist/dts/features/Discovery/index.js.map +1 -1
  352. package/dist/dts/features/Discovery/types.d.ts +3 -107
  353. package/dist/dts/features/Discovery/types.d.ts.map +1 -1
  354. package/dist/dts/features/Discovery/types.js +0 -16
  355. package/dist/dts/features/Discovery/types.js.map +1 -1
  356. package/dist/dts/features/Discovery/utils.d.ts +2 -8
  357. package/dist/dts/features/Discovery/utils.d.ts.map +1 -1
  358. package/dist/dts/features/Discovery/utils.js +1 -28
  359. package/dist/dts/features/Discovery/utils.js.map +1 -1
  360. package/dist/dts/features/Navigation/Footer/FooterColumn.d.ts.map +1 -1
  361. package/dist/dts/features/Navigation/Footer/FooterColumn.js.map +1 -1
  362. package/dist/dts/features/Navigation/NavPageLayout.js +2 -2
  363. package/dist/dts/features/Navigation/NavPageLayout.js.map +1 -1
  364. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts +9 -0
  365. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.d.ts.map +1 -0
  366. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js +11 -0
  367. package/dist/dts/features/Study/StudyDetails/DetailsAuthorizationIcon.js.map +1 -0
  368. package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts +19 -0
  369. package/dist/dts/features/Study/StudyDetails/RendererFactory.d.ts.map +1 -0
  370. package/dist/dts/features/Study/StudyDetails/RendererFactory.js +56 -0
  371. package/dist/dts/features/Study/StudyDetails/RendererFactory.js.map +1 -0
  372. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts +15 -0
  373. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.d.ts.map +1 -0
  374. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js +44 -0
  375. package/dist/dts/features/Study/StudyDetails/SinglePageStudyDetailsPanel.js.map +1 -0
  376. package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts +10 -0
  377. package/dist/dts/features/Study/StudyDetails/StudyDetails.d.ts.map +1 -0
  378. package/dist/dts/features/Study/StudyDetails/StudyDetails.js +36 -0
  379. package/dist/dts/features/Study/StudyDetails/StudyDetails.js.map +1 -0
  380. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts +10 -0
  381. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.d.ts.map +1 -0
  382. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js +19 -0
  383. package/dist/dts/features/Study/StudyDetails/StudyDetailsPanel.js.map +1 -0
  384. package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts +8 -0
  385. package/dist/dts/features/Study/StudyDetails/StudyGroup.d.ts.map +1 -0
  386. package/dist/dts/features/Study/StudyDetails/StudyGroup.js +31 -0
  387. package/dist/dts/features/Study/StudyDetails/StudyGroup.js.map +1 -0
  388. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts +9 -0
  389. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.d.ts.map +1 -0
  390. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js +11 -0
  391. package/dist/dts/features/Study/StudyDetails/StudyGroupPanel.js.map +1 -0
  392. package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts +5 -0
  393. package/dist/dts/features/Study/StudyDetails/StudyItems.d.ts.map +1 -0
  394. package/dist/dts/features/Study/StudyDetails/StudyItems.js +283 -0
  395. package/dist/dts/features/Study/StudyDetails/StudyItems.js.map +1 -0
  396. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts +10 -0
  397. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.d.ts.map +1 -0
  398. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js +45 -0
  399. package/dist/dts/features/Study/StudyPage/DownloadLinksPanel.js.map +1 -0
  400. package/dist/dts/features/Study/StudyPage/StudyPage.d.ts +10 -0
  401. package/dist/dts/features/Study/StudyPage/StudyPage.d.ts.map +1 -0
  402. package/dist/dts/features/Study/StudyPage/StudyPage.js +11 -0
  403. package/dist/dts/features/Study/StudyPage/StudyPage.js.map +1 -0
  404. package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts +9 -0
  405. package/dist/dts/features/Study/StudyPage/StudyPageGroup.d.ts.map +1 -0
  406. package/dist/dts/features/Study/StudyPage/StudyPageGroup.js +8 -0
  407. package/dist/dts/features/Study/StudyPage/StudyPageGroup.js.map +1 -0
  408. package/dist/dts/features/Study/StudyProvider.d.ts +12 -0
  409. package/dist/dts/features/Study/StudyProvider.d.ts.map +1 -0
  410. package/dist/dts/features/Study/StudyProvider.js +23 -0
  411. package/dist/dts/features/Study/StudyProvider.js.map +1 -0
  412. package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts +3 -0
  413. package/dist/dts/features/Study/TableRenderers/CellRenderers.d.ts.map +1 -0
  414. package/dist/dts/features/Study/TableRenderers/CellRenderers.js +20 -0
  415. package/dist/dts/features/Study/TableRenderers/CellRenderers.js.map +1 -0
  416. package/dist/dts/features/Study/TableRenderers/types.d.ts +14 -0
  417. package/dist/dts/features/Study/TableRenderers/types.d.ts.map +1 -0
  418. package/dist/dts/features/Study/TableRenderers/types.js +2 -0
  419. package/dist/dts/features/Study/TableRenderers/types.js.map +1 -0
  420. package/dist/dts/features/Study/index.d.ts +5 -0
  421. package/dist/dts/features/Study/index.d.ts.map +1 -0
  422. package/dist/dts/features/Study/index.js +4 -0
  423. package/dist/dts/features/Study/index.js.map +1 -0
  424. package/dist/dts/features/Study/types.d.ts +91 -0
  425. package/dist/dts/features/Study/types.d.ts.map +1 -0
  426. package/dist/dts/features/Study/types.js +8 -0
  427. package/dist/dts/features/Study/types.js.map +1 -0
  428. package/dist/dts/features/Study/utils.d.ts +10 -0
  429. package/dist/dts/features/Study/utils.d.ts.map +1 -0
  430. package/dist/dts/features/Study/utils.js +28 -0
  431. package/dist/dts/features/Study/utils.js.map +1 -0
  432. package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.d.ts.map +1 -1
  433. package/dist/dts/features/Workspace/admin/WorkspacePanelsEditor.js.map +1 -1
  434. package/dist/dts/index.d.ts +3 -1
  435. package/dist/dts/index.d.ts.map +1 -1
  436. package/dist/dts/index.js +7 -1
  437. package/dist/dts/index.js.map +1 -1
  438. package/dist/dts/lib/session/session.d.ts.map +1 -1
  439. package/dist/dts/lib/session/session.js +16 -32
  440. package/dist/dts/lib/session/session.js.map +1 -1
  441. package/dist/dts/pages/Explorer/data.d.ts.map +1 -1
  442. package/dist/dts/pages/Explorer/data.js +28 -22
  443. package/dist/dts/pages/Explorer/data.js.map +1 -1
  444. package/dist/dts/pages/admin/analysis/Analysis.d.ts +1 -1
  445. package/dist/dts/pages/admin/analysis/Analysis.d.ts.map +1 -1
  446. package/dist/dts/pages/admin/analysis/Analysis.js +1 -1
  447. package/dist/dts/pages/admin/analysis/Analysis.js.map +1 -1
  448. package/dist/dts/types/icons.d.ts +4 -0
  449. package/dist/dts/types/icons.d.ts.map +1 -0
  450. package/dist/dts/types/icons.js +5 -0
  451. package/dist/dts/types/icons.js.map +1 -0
  452. package/dist/dts/utils/access.d.ts +10 -0
  453. package/dist/dts/utils/access.d.ts.map +1 -0
  454. package/dist/dts/utils/access.js +11 -0
  455. package/dist/dts/utils/access.js.map +1 -0
  456. package/dist/dts/utils/authMapping.d.ts +4 -0
  457. package/dist/dts/utils/authMapping.d.ts.map +1 -1
  458. package/dist/dts/utils/authMapping.js.map +1 -1
  459. package/dist/dts/utils/convertResourcePathsToTree.d.ts +8 -0
  460. package/dist/dts/utils/convertResourcePathsToTree.d.ts.map +1 -0
  461. package/dist/dts/utils/convertResourcePathsToTree.js +43 -0
  462. package/dist/dts/utils/convertResourcePathsToTree.js.map +1 -0
  463. package/dist/dts/utils/dataAuthorization.d.ts +11 -0
  464. package/dist/dts/utils/dataAuthorization.d.ts.map +1 -0
  465. package/dist/dts/utils/dataAuthorization.js +2 -0
  466. package/dist/dts/utils/dataAuthorization.js.map +1 -0
  467. package/dist/dts/utils/date.d.ts +16 -0
  468. package/dist/dts/utils/date.d.ts.map +1 -1
  469. package/dist/dts/utils/date.js +54 -8
  470. package/dist/dts/utils/date.js.map +1 -1
  471. package/dist/dts/utils/index.d.ts +2 -0
  472. package/dist/dts/utils/index.d.ts.map +1 -1
  473. package/dist/dts/utils/index.js +2 -0
  474. package/dist/dts/utils/index.js.map +1 -1
  475. package/dist/dts/utils/layout.d.ts +2 -0
  476. package/dist/dts/utils/layout.d.ts.map +1 -0
  477. package/dist/dts/utils/layout.js +20 -0
  478. package/dist/dts/utils/layout.js.map +1 -0
  479. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts +2 -0
  480. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.d.ts.map +1 -0
  481. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js +150 -0
  482. package/dist/dts/utils/tests/convertResourcePathsToTree.unit.test.js.map +1 -0
  483. package/dist/esm/index.js +5935 -3965
  484. package/dist/esm/index.js.map +1 -1
  485. package/dist/index.d.ts +214 -145
  486. package/dist/tsconfig.tsbuildinfo +1 -1
  487. package/package.json +7 -7
  488. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +0 -1
  489. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +0 -1
  490. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +0 -2
  491. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +0 -1
  492. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts +0 -3
  493. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.d.ts.map +0 -1
  494. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js +0 -13
  495. package/dist/dts/features/CohortDiscovery/ActionButtonGroup.js.map +0 -1
@@ -0,0 +1,5 @@
1
+ import { MdAdd as AddIcon, MdDelete as DeleteIcon, MdSave as SaveIcon, MdFileUpload as UploadIcon, MdDownload as DownloadIcon, MdClose as CloseIcon, MdAddCircle as MoreIcon, MdRemoveCircle as LessIcon, MdExpandLess as ExpandLessIcon, MdExpandMore as ExpandMoreIcon, MdSearch as SearchIcon, MdFlip as FlipIcon, MdLibraryAdd as AddFacetIcon, MdWarning as WarningTriangleIcon } from 'react-icons/md';
2
+ import { FaCaretDown as DropdownIcon, FaUndo as UndoIcon, FaPlus as PlusIcon, FaMinus as MinusIcon, FaCircle as CircleIcon } from 'react-icons/fa';
3
+ import { RiErrorWarningFill as WarningMessageIcon } from 'react-icons/ri';
4
+ export { UndoIcon, DropdownIcon, AddIcon, DeleteIcon, UploadIcon, SaveIcon, DownloadIcon, WarningMessageIcon, CloseIcon, CircleIcon, MoreIcon, LessIcon, ExpandLessIcon, ExpandMoreIcon, SearchIcon, FlipIcon, AddFacetIcon, WarningTriangleIcon, PlusIcon, MinusIcon, };
5
+ //# sourceMappingURL=commonIcons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonIcons.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/commonIcons.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,OAAO,EAChB,QAAQ,IAAI,UAAU,EACtB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,UAAU,EAC1B,UAAU,IAAI,YAAY,EAC1B,OAAO,IAAI,SAAS,EACpB,WAAW,IAAI,QAAQ,EACvB,cAAc,IAAI,QAAQ,EAC1B,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAC9B,QAAQ,IAAI,UAAU,EACtB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,YAAY,EAC5B,SAAS,IAAI,mBAAmB,EACjC,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,WAAW,IAAI,YAAY,EAC3B,MAAM,IAAI,QAAQ,EAClB,MAAM,IAAI,QAAQ,EAClB,OAAO,IAAI,SAAS,EACpB,QAAQ,IAAI,UAAU,EACvB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,cAAc,EACd,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,SAAS,GACV,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { MdAdd as AddIcon, MdDelete as DeleteIcon, MdSave as SaveIcon, MdFileUpload as UploadIcon, MdDownload as DownloadIcon, MdClose as CloseIcon, MdAddCircle as MoreIcon, MdRemoveCircle as LessIcon, MdExpandLess as ExpandLessIcon, MdExpandMore as ExpandMoreIcon, MdSearch as SearchIcon, MdFlip as FlipIcon, MdLibraryAdd as AddFacetIcon, MdWarning as WarningTriangleIcon, } from 'react-icons/md';
2
+ import { FaCaretDown as DropdownIcon, FaUndo as UndoIcon, FaPlus as PlusIcon, FaMinus as MinusIcon, FaCircle as CircleIcon, } from 'react-icons/fa';
3
+ import { RiErrorWarningFill as WarningMessageIcon } from 'react-icons/ri';
4
+ export { UndoIcon, DropdownIcon, AddIcon, DeleteIcon, UploadIcon, SaveIcon, DownloadIcon, WarningMessageIcon, CloseIcon, CircleIcon, MoreIcon, LessIcon, ExpandLessIcon, ExpandMoreIcon, SearchIcon, FlipIcon, AddFacetIcon, WarningTriangleIcon, PlusIcon, MinusIcon, };
5
+ //# sourceMappingURL=commonIcons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonIcons.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/commonIcons.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,OAAO,EAChB,QAAQ,IAAI,UAAU,EACtB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,UAAU,EAC1B,UAAU,IAAI,YAAY,EAC1B,OAAO,IAAI,SAAS,EACpB,WAAW,IAAI,QAAQ,EACvB,cAAc,IAAI,QAAQ,EAC1B,YAAY,IAAI,cAAc,EAC9B,YAAY,IAAI,cAAc,EAC9B,QAAQ,IAAI,UAAU,EACtB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,YAAY,EAC5B,SAAS,IAAI,mBAAmB,GACjC,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,WAAW,IAAI,YAAY,EAC3B,MAAM,IAAI,QAAQ,EAClB,MAAM,IAAI,QAAQ,EAClB,OAAO,IAAI,SAAS,EACpB,QAAQ,IAAI,UAAU,GACvB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,UAAU,EACV,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,cAAc,EACd,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,SAAS,GACV,CAAC"}
@@ -0,0 +1,5 @@
1
+ import CohortManager from './CohortManager';
2
+ import CohortNotificationProvider from './CohortNotificationProvider';
3
+ import { type CohortHooks } from './types';
4
+ export { CohortManager, CohortNotificationProvider, type CohortHooks };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,0BAA0B,EAAE,KAAK,WAAW,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import CohortManager from './CohortManager';
2
+ import CohortNotificationProvider from './CohortNotificationProvider';
3
+ export { CohortManager, CohortNotificationProvider };
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AAGtE,OAAO,EAAE,aAAa,EAAE,0BAA0B,EAAoB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ interface GenericCohortModalProps {
3
+ opened: boolean;
4
+ title: string;
5
+ onClose: () => void;
6
+ actionText: string;
7
+ mainText: JSX.Element;
8
+ subText: JSX.Element;
9
+ onActionClick: () => void;
10
+ }
11
+ declare const GenericCohortModal: React.FC<GenericCohortModalProps>;
12
+ export default GenericCohortModal;
13
+ //# sourceMappingURL=GenericCohortModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericCohortModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/GenericCohortModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,uBAAuB;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAiDzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Modal, Button } from "@mantine/core";
3
+ var GenericCohortModal = function (_a) {
4
+ var opened = _a.opened, title = _a.title, onClose = _a.onClose, actionText = _a.actionText, onActionClick = _a.onActionClick, mainText = _a.mainText, subText = _a.subText;
5
+ return (_jsxs(Modal, { title: title, opened: opened, padding: 0, radius: "md", onClose: onClose, children: [_jsxs("div", { className: "font-montserrat py-5 pr-6 pl-2.5", children: [_jsx("p", { className: "font-medium text-[0.95rem] text-base-ink", children: mainText }), _jsx("p", { className: "text-sm pt-3 text-base-ink", children: subText })] }), _jsx("div", { className: "bg-base-lightest p-4", children: _jsxs("div", { className: "flex justify-end gap-3", children: [_jsx(Button, { variant: "outline", styles: {
6
+ root: {
7
+ backgroundColor: "white",
8
+ },
9
+ }, color: "secondary", onClick: onClose, children: "Cancel" }), _jsx(Button, { variant: "filled", color: "secondary", onClick: function () {
10
+ onActionClick();
11
+ onClose();
12
+ }, children: actionText })] }) })] }));
13
+ };
14
+ export default GenericCohortModal;
15
+ //# sourceMappingURL=GenericCohortModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericCohortModal.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/GenericCohortModal.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAY9C,IAAM,kBAAkB,GAAsC,UAAC,EAQ9D;QAPC,MAAM,YAAA,EACN,KAAK,WAAA,EACL,OAAO,aAAA,EACP,UAAU,gBAAA,EACV,aAAa,mBAAA,EACb,QAAQ,cAAA,EACR,OAAO,aAAA;IAEP,OAAO,CACL,MAAC,KAAK,IACJ,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAE,OAAO,aAEhB,eAAK,SAAS,EAAC,kCAAkC,aAC/C,YAAG,SAAS,EAAC,0CAA0C,YAAE,QAAQ,GAAK,EACtE,YAAG,SAAS,EAAC,4BAA4B,YAAE,OAAO,GAAK,IACnD,EACN,cAAK,SAAS,EAAC,sBAAsB,YACnC,eAAK,SAAS,EAAC,wBAAwB,aACrC,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,MAAM,EAAE;gCACN,IAAI,EAAE;oCACJ,eAAe,EAAE,OAAO;iCACzB;6BACF,EACD,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE,OAAO,uBAGT,EACT,KAAC,MAAM,IACL,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE;gCACP,aAAa,EAAE,CAAC;gCAChB,OAAO,EAAE,CAAC;4BACZ,CAAC,YAEA,UAAU,GACJ,IACL,GACF,IACA,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ContextModalProps } from '@mantine/modals';
2
+ declare const SaveCohortErrorModal: ({ context, id }: ContextModalProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default SaveCohortErrorModal;
4
+ //# sourceMappingURL=SaveCohortErrorModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveCohortErrorModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,QAAA,MAAM,oBAAoB,GAAI,iBAAiB,iBAAiB,4CAY/D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button } from '@mantine/core';
3
+ var SaveCohortErrorModal = function (_a) {
4
+ var context = _a.context, id = _a.id;
5
+ return (_jsxs(_Fragment, { children: [_jsx("p", { className: "py-2 px-4", children: "There was a problem saving the cohort." }), _jsx("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, { onClick: function () { return context.closeModal(id); }, variant: "darkFunction", children: "OK" }) })] }));
6
+ };
7
+ export default SaveCohortErrorModal;
8
+ //# sourceMappingURL=SaveCohortErrorModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveCohortErrorModal.js","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGvC,IAAM,oBAAoB,GAAG,UAAC,EAAkC;QAAhC,OAAO,aAAA,EAAE,EAAE,QAAA;IAA0B,OAAA,CACnE,8BACE,YAAG,SAAS,EAAC,WAAW,uDAA2C,EACnE,cACE,SAAS,EAAC,sEAAsE,iBACpE,wBAAwB,YAEpC,KAAC,MAAM,IAAC,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,EAAtB,CAAsB,EAAE,OAAO,EAAC,cAAc,mBAE5D,GACL,IACL,CACJ;AAZoE,CAYpE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { CohortHooks } from '../types';
3
+ interface SaveCohortModalProps {
4
+ readonly opened: boolean;
5
+ readonly hooks: CohortHooks;
6
+ readonly initialName?: string;
7
+ readonly onClose: () => void;
8
+ readonly cohortId: string;
9
+ readonly invalidCohortNames: string[];
10
+ readonly filters: any;
11
+ readonly caseFilters?: any;
12
+ readonly createStaticCohort?: boolean;
13
+ readonly setAsCurrent?: boolean;
14
+ readonly saveAs?: boolean;
15
+ }
16
+ /**
17
+ * SaveCohortModal handles saving a user's cohort
18
+ * @param opened - Whether the modal is open or not
19
+ * @param hooks - Collection of hooks for performing saving, deleting, etc operations on cohorts
20
+ * @param initialName - populates inital value of name field
21
+ * @param onClose - callback triggered when modal closes
22
+ * @param cohortId - id of existing cohort we are saving, if undefined we are not saving a cohort that already exists
23
+ * @param invalidCohortNames - list of cohort names that the user is barred from using
24
+ * @param filters - the filters associated with the cohort
25
+ * @param caseFilters - the case filters to use for the cohort
26
+ * @param createStaticCohort - whether to create a case set from the filters so the cases in the cohort remain static
27
+ * @param setAsCurrent - whether to set the new cohort as the user's current cohort, should not also pass in cohortId
28
+ * @param saveAs - whether to save existing cohort as new cohort, requires cohortId
29
+ */
30
+ declare const SaveCohortModal: React.FC<SaveCohortModalProps>;
31
+ export default SaveCohortModal;
32
+ //# sourceMappingURL=SaveCohortModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SaveCohortModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAIjE,OAAO,EAAE,WAAW,EAAqB,MAAM,UAAU,CAAC;AAG1D,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC;IAC3B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8MnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -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,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AAM,EAAC,MAAM,EACb,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,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,EAA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,IAAI,EAAE,KAAK;yBACZ,EACD,QAAQ,EAAC,GAAG,EACZ,KAAK,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"}