@gen3/frontend 0.10.75 → 0.10.76

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 (262) hide show
  1. package/dist/cjs/index.js +16 -35
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts +0 -1
  4. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts.map +1 -1
  5. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js +3 -3
  6. package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js.map +1 -1
  7. package/dist/dts/components/Buttons/UploadJSONButton.d.ts.map +1 -1
  8. package/dist/dts/components/Buttons/UploadJSONButton.js +12 -1
  9. package/dist/dts/components/Buttons/UploadJSONButton.js.map +1 -1
  10. package/dist/dts/components/Content/TextContent.d.ts +2 -1
  11. package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
  12. package/dist/dts/components/Content/TextContent.js +8 -5
  13. package/dist/dts/components/Content/TextContent.js.map +1 -1
  14. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts +12 -8
  15. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts.map +1 -1
  16. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js +11 -17
  17. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js.map +1 -1
  18. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js +4 -18
  19. package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js.map +1 -1
  20. package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
  21. package/dist/dts/components/Login/LoginProvidersPanel.js +8 -5
  22. package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
  23. package/dist/dts/components/MessageCards/ErrorCard.js +1 -1
  24. package/dist/dts/components/MessageCards/ErrorCard.js.map +1 -1
  25. package/dist/dts/components/MessageCards/WarningCard.js +1 -1
  26. package/dist/dts/components/MessageCards/WarningCard.js.map +1 -1
  27. package/dist/dts/components/MessagePanel.d.ts.map +1 -1
  28. package/dist/dts/components/MessagePanel.js +1 -1
  29. package/dist/dts/components/MessagePanel.js.map +1 -1
  30. package/dist/dts/components/Providers/Gen3Provider.d.ts +2 -3
  31. package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
  32. package/dist/dts/components/Providers/Gen3Provider.js +4 -8
  33. package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
  34. package/dist/dts/components/Providers/ResourceMonitor.d.ts +1 -1
  35. package/dist/dts/components/Providers/ResourceMonitor.d.ts.map +1 -1
  36. package/dist/dts/components/Providers/ResourceMonitor.js +131 -48
  37. package/dist/dts/components/Providers/ResourceMonitor.js.map +1 -1
  38. package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
  39. package/dist/dts/components/charts/echarts/BarChart.js +4 -28
  40. package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
  41. package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
  42. package/dist/dts/components/facets/FacetControlsHeader.js +1 -0
  43. package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
  44. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +0 -1
  45. package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
  46. package/dist/dts/features/CohortBuilder/CohortBuilder.js +1 -13
  47. package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
  48. package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +1 -0
  49. package/dist/dts/features/CohortBuilder/CohortManager.js +17 -0
  50. package/dist/dts/features/CohortBuilder/CohortManager.js.map +1 -0
  51. package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
  52. package/dist/dts/features/CohortBuilder/CohortPanel.js +2 -3
  53. package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
  54. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +3 -0
  55. package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -0
  56. package/dist/dts/features/CohortBuilder/CohortSelector.js +18 -0
  57. package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -0
  58. package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionSection.d.ts → QueryExpressionSection.d.ts} +4 -1
  59. package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +1 -0
  60. package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionSection.js → QueryExpressionSection.js} +28 -36
  61. package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +1 -0
  62. package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.d.ts.map +1 -0
  63. package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.js.map +1 -0
  64. package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentation.d.ts → QueryRepresentation.d.ts} +1 -1
  65. package/dist/dts/features/CohortBuilder/QueryRepresentation.d.ts.map +1 -0
  66. package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentation.js → QueryRepresentation.js} +30 -23
  67. package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +1 -0
  68. package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.d.ts.map +1 -0
  69. package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.js.map +1 -0
  70. package/dist/dts/features/CohortBuilder/hooks.d.ts +0 -1
  71. package/dist/dts/features/CohortBuilder/hooks.d.ts.map +1 -1
  72. package/dist/dts/features/CohortBuilder/hooks.js +1 -52
  73. package/dist/dts/features/CohortBuilder/hooks.js.map +1 -1
  74. package/dist/dts/features/CohortBuilder/style.d.ts +0 -6
  75. package/dist/dts/features/CohortBuilder/style.d.ts.map +1 -1
  76. package/dist/dts/features/CohortBuilder/style.js +0 -11
  77. package/dist/dts/features/CohortBuilder/style.js.map +1 -1
  78. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
  79. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +4 -6
  80. package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
  81. package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -1
  82. package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
  83. package/dist/dts/features/CohortDiscovery/IndexPanel.js +3 -5
  84. package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
  85. package/dist/dts/features/CohortDiscovery/appApi.d.ts +0 -2
  86. package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
  87. package/dist/dts/features/CohortDiscovery/appApi.js +0 -2
  88. package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
  89. package/dist/dts/features/CohortDiscovery/hooks.d.ts +0 -10
  90. package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
  91. package/dist/dts/features/CohortDiscovery/hooks.js +1 -38
  92. package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
  93. package/dist/dts/features/CohortDiversity/diversityApi.d.ts +12 -12
  94. package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts +1 -1
  95. package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts.map +1 -1
  96. package/dist/dts/features/Crosswalk/CrosswalkPanel.js +11 -11
  97. package/dist/dts/features/Crosswalk/CrosswalkPanel.js.map +1 -1
  98. package/dist/dts/features/Crosswalk/types.d.ts +1 -0
  99. package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
  100. package/dist/dts/features/DataLibrary/QueryDetails.d.ts.map +1 -1
  101. package/dist/dts/features/DataLibrary/QueryDetails.js +2 -2
  102. package/dist/dts/features/DataLibrary/QueryDetails.js.map +1 -1
  103. package/dist/dts/features/Dictionary/Dictionary.d.ts.map +1 -1
  104. package/dist/dts/features/Dictionary/Dictionary.js +1 -0
  105. package/dist/dts/features/Dictionary/Dictionary.js.map +1 -1
  106. package/dist/dts/features/Dictionary/index.d.ts +3 -1
  107. package/dist/dts/features/Dictionary/index.d.ts.map +1 -1
  108. package/dist/dts/features/Dictionary/index.js +3 -1
  109. package/dist/dts/features/Dictionary/index.js.map +1 -1
  110. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts +7 -0
  111. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts.map +1 -0
  112. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js +39 -0
  113. package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js.map +1 -0
  114. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts +9 -0
  115. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts.map +1 -0
  116. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js +113 -0
  117. package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js.map +1 -0
  118. package/dist/dts/features/Dictionary/metadata/registerApp.d.ts +3 -0
  119. package/dist/dts/features/Dictionary/metadata/registerApp.d.ts.map +1 -0
  120. package/dist/dts/features/Dictionary/metadata/registerApp.js +13 -0
  121. package/dist/dts/features/Dictionary/metadata/registerApp.js.map +1 -0
  122. package/dist/dts/features/Dictionary/metadata/types.d.ts +17 -0
  123. package/dist/dts/features/Dictionary/metadata/types.d.ts.map +1 -0
  124. package/dist/dts/features/Dictionary/metadata/types.js +2 -0
  125. package/dist/dts/features/Dictionary/metadata/types.js.map +1 -0
  126. package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
  127. package/dist/dts/features/Navigation/TopBar.js +4 -3
  128. package/dist/dts/features/Navigation/TopBar.js.map +1 -1
  129. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.d.ts.map +1 -1
  130. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js +1 -1
  131. package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js.map +1 -1
  132. package/dist/dts/features/Workspace/NotebookCard.d.ts.map +1 -1
  133. package/dist/dts/features/Workspace/NotebookCard.js +30 -8
  134. package/dist/dts/features/Workspace/NotebookCard.js.map +1 -1
  135. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.d.ts.map +1 -1
  136. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js +3 -4
  137. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js.map +1 -1
  138. package/dist/dts/features/Workspace/StatusAndControls.d.ts.map +1 -1
  139. package/dist/dts/features/Workspace/StatusAndControls.js +3 -4
  140. package/dist/dts/features/Workspace/StatusAndControls.js.map +1 -1
  141. package/dist/dts/features/Workspace/Workspace.d.ts.map +1 -1
  142. package/dist/dts/features/Workspace/Workspace.js +0 -1
  143. package/dist/dts/features/Workspace/Workspace.js.map +1 -1
  144. package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.d.ts.map +1 -1
  145. package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js +4 -1
  146. package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js.map +1 -1
  147. package/dist/dts/features/Workspace/WorkspacePanel.d.ts.map +1 -1
  148. package/dist/dts/features/Workspace/WorkspacePanel.js +10 -9
  149. package/dist/dts/features/Workspace/WorkspacePanel.js.map +1 -1
  150. package/dist/dts/features/Workspace/WorkspaceProvider.d.ts.map +1 -1
  151. package/dist/dts/features/Workspace/WorkspaceProvider.js +1 -0
  152. package/dist/dts/features/Workspace/WorkspaceProvider.js.map +1 -1
  153. package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts +2 -1
  154. package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts.map +1 -1
  155. package/dist/dts/features/Workspace/WorkspaceStatusProvider.js +56 -27
  156. package/dist/dts/features/Workspace/WorkspaceStatusProvider.js.map +1 -1
  157. package/dist/dts/features/Workspace/types.d.ts +10 -0
  158. package/dist/dts/features/Workspace/types.d.ts.map +1 -1
  159. package/dist/dts/features/Workspace/types.js +10 -1
  160. package/dist/dts/features/Workspace/types.js.map +1 -1
  161. package/dist/dts/index.d.ts +3 -2
  162. package/dist/dts/index.d.ts.map +1 -1
  163. package/dist/dts/index.js +3 -2
  164. package/dist/dts/index.js.map +1 -1
  165. package/dist/dts/lib/session/session.d.ts.map +1 -1
  166. package/dist/dts/lib/session/session.js +7 -7
  167. package/dist/dts/lib/session/session.js.map +1 -1
  168. package/dist/dts/pages/Crosswalk/data.d.ts +2 -3
  169. package/dist/dts/pages/Crosswalk/data.d.ts.map +1 -1
  170. package/dist/dts/pages/Crosswalk/data.js +27 -11
  171. package/dist/dts/pages/Crosswalk/data.js.map +1 -1
  172. package/dist/dts/pages/Theme/index.d.ts.map +1 -1
  173. package/dist/dts/utils/date.d.ts +0 -6
  174. package/dist/dts/utils/date.d.ts.map +1 -1
  175. package/dist/dts/utils/date.js +0 -12
  176. package/dist/dts/utils/date.js.map +1 -1
  177. package/dist/dts/utils/index.d.ts +1 -0
  178. package/dist/dts/utils/index.d.ts.map +1 -1
  179. package/dist/dts/utils/index.js +1 -0
  180. package/dist/dts/utils/index.js.map +1 -1
  181. package/dist/dts/utils/time.d.ts +15 -0
  182. package/dist/dts/utils/time.d.ts.map +1 -1
  183. package/dist/dts/utils/time.js +105 -0
  184. package/dist/dts/utils/time.js.map +1 -1
  185. package/dist/esm/index.js +16 -35
  186. package/dist/esm/index.js.map +1 -1
  187. package/dist/index.d.ts +46 -15
  188. package/dist/tsconfig.tsbuildinfo +1 -1
  189. package/package.json +3 -4
  190. package/LICENSE +0 -201
  191. package/dist/dts/components/CountButton/CountButton.d.ts +0 -19
  192. package/dist/dts/components/CountButton/CountButton.d.ts.map +0 -1
  193. package/dist/dts/components/CountButton/CountButton.js +0 -18
  194. package/dist/dts/components/CountButton/CountButton.js.map +0 -1
  195. package/dist/dts/components/ErrorMessage.d.ts +0 -6
  196. package/dist/dts/components/ErrorMessage.d.ts.map +0 -1
  197. package/dist/dts/components/ErrorMessage.js +0 -8
  198. package/dist/dts/components/ErrorMessage.js.map +0 -1
  199. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +0 -10
  200. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +0 -1
  201. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +0 -53
  202. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +0 -1
  203. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +0 -7
  204. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +0 -1
  205. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +0 -38
  206. package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +0 -1
  207. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +0 -13
  208. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +0 -1
  209. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +0 -56
  210. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +0 -1
  211. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts +0 -4
  212. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts.map +0 -1
  213. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js +0 -22
  214. package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js.map +0 -1
  215. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +0 -1
  216. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +0 -1
  217. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +0 -320
  218. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +0 -1
  219. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +0 -29
  220. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +0 -1
  221. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +0 -85
  222. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +0 -1
  223. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +0 -6
  224. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +0 -1
  225. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +0 -55
  226. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +0 -1
  227. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +0 -13
  228. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +0 -1
  229. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +0 -41
  230. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +0 -1
  231. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.d.ts.map +0 -1
  232. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +0 -1
  233. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map +0 -1
  234. package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map +0 -1
  235. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +0 -1
  236. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +0 -1
  237. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.d.ts.map +0 -1
  238. package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.js.map +0 -1
  239. package/dist/dts/features/CohortBuilder/cohortUtils.d.ts +0 -4
  240. package/dist/dts/features/CohortBuilder/cohortUtils.d.ts.map +0 -1
  241. package/dist/dts/features/CohortBuilder/cohortUtils.js +0 -23
  242. package/dist/dts/features/CohortBuilder/cohortUtils.js.map +0 -1
  243. package/dist/dts/features/CohortDiscovery/CohortManager.d.ts.map +0 -1
  244. package/dist/dts/features/CohortDiscovery/CohortManager.js +0 -57
  245. package/dist/dts/features/CohortDiscovery/CohortManager.js.map +0 -1
  246. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -23
  247. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +0 -1
  248. package/dist/dts/features/CohortDiscovery/CohortSelectors.js +0 -35
  249. package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +0 -1
  250. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -91
  251. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +0 -1
  252. package/dist/dts/features/CohortDiscovery/CohortSlice.js +0 -93
  253. package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +0 -1
  254. package/dist/dts/utils/icons.d.ts +0 -18
  255. package/dist/dts/utils/icons.d.ts.map +0 -1
  256. package/dist/dts/utils/icons.js +0 -18
  257. package/dist/dts/utils/icons.js.map +0 -1
  258. /package/dist/dts/features/{CohortDiscovery → CohortBuilder}/CohortManager.d.ts +0 -0
  259. /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionsExpandedContext.d.ts → QueryExpressionsExpandedContext.d.ts} +0 -0
  260. /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionsExpandedContext.js → QueryExpressionsExpandedContext.js} +0 -0
  261. /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentationLabel.d.ts → QueryRepresentationLabel.d.ts} +0 -0
  262. /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentationLabel.js → QueryRepresentationLabel.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gen3/frontend",
3
- "version": "0.10.75",
3
+ "version": "0.10.76",
4
4
  "description": "Gen3 frontend components, content management, and pages",
5
5
  "keywords": [],
6
6
  "author": "Center for Translational Data Science",
@@ -49,7 +49,7 @@
49
49
  "os": false
50
50
  },
51
51
  "dependencies": {
52
- "@gen3/core": "^0.10.75",
52
+ "@gen3/core": "^0.10.76",
53
53
  "@graphiql/react": "^0.23.1",
54
54
  "@hello-pangea/dnd": "^17.0.0",
55
55
  "@iconify/react": "^5.0.2",
@@ -153,6 +153,5 @@
153
153
  },
154
154
  "files": [
155
155
  "dist"
156
- ],
157
- "gitHead": "a74ac0cfa482c43acb9a048ebd645560f802eb87"
156
+ ]
158
157
  }
package/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
@@ -1,19 +0,0 @@
1
- /**
2
- * A Button component that displays a count in a badge,
3
- * has a tooltip, and can be disabled.
4
- * If loading is true, the badge will be replaced with a loader.
5
- * @param tooltipLabel - The label for the tooltip.
6
- * @param disabled - Whether the button is disabled.
7
- * @param handleOnClick - The function to call when the button is clicked.
8
- * @param count - The count to display in the badge.
9
- * @param loading - Whether to show the loading icon.
10
- * @category Buttons
11
- */
12
- export declare const CountButton: ({ tooltipLabel, disabled, handleOnClick, count, loading, }: {
13
- tooltipLabel: string;
14
- disabled: boolean;
15
- handleOnClick: () => void;
16
- count: number;
17
- loading?: boolean;
18
- }) => JSX.Element;
19
- //# sourceMappingURL=CountButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CountButton.d.ts","sourceRoot":"","sources":["../../../../src/components/CountButton/CountButton.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,+DAMrB;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,KAAG,GAAG,CAAC,OA0BP,CAAC"}
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Badge, Loader, Tooltip } from '@mantine/core';
3
- /**
4
- * A Button component that displays a count in a badge,
5
- * has a tooltip, and can be disabled.
6
- * If loading is true, the badge will be replaced with a loader.
7
- * @param tooltipLabel - The label for the tooltip.
8
- * @param disabled - Whether the button is disabled.
9
- * @param handleOnClick - The function to call when the button is clicked.
10
- * @param count - The count to display in the badge.
11
- * @param loading - Whether to show the loading icon.
12
- * @category Buttons
13
- */
14
- export var CountButton = function (_a) {
15
- var tooltipLabel = _a.tooltipLabel, disabled = _a.disabled, handleOnClick = _a.handleOnClick, count = _a.count, _b = _a.loading, loading = _b === void 0 ? false : _b;
16
- return (_jsx(Tooltip, { label: tooltipLabel, withArrow: true, children: _jsx("span", { children: _jsx("button", { className: "w-fit", disabled: disabled, onClick: handleOnClick, "aria-label": tooltipLabel, children: _jsx(Badge, { variant: "outline", radius: "xs", className: "".concat(disabled ? 'bg-base-lighter' : 'bg-base-max', " w-20"), color: disabled ? 'base' : 'primary', children: loading ? (_jsx(Loader, { size: "xs" })) : count !== undefined ? (count.toLocaleString()) : undefined }) }) }) }));
17
- };
18
- //# sourceMappingURL=CountButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CountButton.js","sourceRoot":"","sources":["../../../../src/components/CountButton/CountButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGvD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,EAY3B;QAXC,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,aAAa,mBAAA,EACb,KAAK,WAAA,EACL,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA;IAQf,OAAO,CACL,KAAC,OAAO,IAAC,KAAK,EAAE,YAAY,EAAE,SAAS,kBACrC,yBACE,iBACE,SAAS,EAAC,OAAO,EACjB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,aAAa,gBACV,YAAY,YAExB,KAAC,KAAK,IACJ,OAAO,EAAC,SAAS,EACjB,MAAM,EAAC,IAAI,EACX,SAAS,EAAE,UAAG,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,UAAO,EACjE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAEnC,OAAO,CAAC,CAAC,CAAC,CACT,KAAC,MAAM,IAAC,IAAI,EAAC,IAAI,GAAG,CACrB,CAAC,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,CACxB,KAAK,CAAC,cAAc,EAAE,CACvB,CAAC,CAAC,CAAC,SAAS,GACP,GACD,GACJ,GACC,CACX,CAAC;AACJ,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- interface ErrorMessageProps {
2
- readonly message: string;
3
- }
4
- declare const ErrorMessage: React.FC<ErrorMessageProps>;
5
- export default ErrorMessage;
6
- //# sourceMappingURL=ErrorMessage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorMessage.tsx"],"names":[],"mappings":"AAEA,UAAU,iBAAiB;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAO7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { WarningIconMessage } from '../utils/icons';
3
- var ErrorMessage = function (_a) {
4
- var message = _a.message;
5
- return (_jsxs("span", { className: "flex items-center mt-2 text-utility-error", children: [_jsx(WarningIconMessage, { className: "mr-1", size: "1rem" }), message] }));
6
- };
7
- export default ErrorMessage;
8
- //# sourceMappingURL=ErrorMessage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../src/components/ErrorMessage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAMpD,IAAM,YAAY,GAAgC,UAAC,EAE/B;QADlB,OAAO,aAAA;IACgB,OAAA,CACvB,gBAAM,SAAS,EAAC,2CAA2C,aACzD,KAAC,kBAAkB,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,MAAM,GAAG,EAClD,OAAO,IACH,CACR;AALwB,CAKxB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface CohortActionsProps {
3
- onSave: () => void;
4
- onSaveAs: () => void;
5
- onDelete: () => void;
6
- index: string;
7
- }
8
- declare const CohortActions: React.FC<CohortActionsProps>;
9
- export default CohortActions;
10
- //# sourceMappingURL=CohortActions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortActions.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAwBrD,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6F/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,53 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from 'react';
3
- import { addNewDefaultUnsavedCohort, selectCurrentCohortModified, selectCurrentCohortName, selectCurrentCohortSaved, useCoreDispatch, useCoreSelector, } from '@gen3/core';
4
- import { Tooltip } from '@mantine/core';
5
- import { DropdownWithIcon } from '../../../components/DropdownWithIcon/DropdownWithIcon';
6
- import { CohortGroupButton } from '../style';
7
- import { useDeepCompareCallback } from 'use-deep-compare';
8
- import { AddIcon, DeleteIcon, SaveIcon, } from '../../../utils/icons';
9
- import JSONObjectDownloadButton from '../../../components/Buttons/DownloadButtons/JSONObjectDownloadButton';
10
- import UploadJSONButton from '../../../components/Buttons/UploadJSONButton';
11
- import { useCohortFacetFilters } from '../hooks';
12
- var CohortActions = function (_a) {
13
- var onSave = _a.onSave, onSaveAs = _a.onSaveAs, onDelete = _a.onDelete, index = _a.index;
14
- var coreDispatch = useCoreDispatch();
15
- // const hasUnsavedCohorts = useCoreSelector(selectHasUnsavedCohorts);
16
- var currentCohortName = useCoreSelector(selectCurrentCohortName);
17
- var currentCohortSaved = useCoreSelector(selectCurrentCohortSaved);
18
- var currentCohortModified = useCoreSelector(selectCurrentCohortModified);
19
- var currentCohortFilters = useCohortFacetFilters(index);
20
- var _b = useState(false), exportCohortPending = _b[0], setExportCohortPending = _b[1];
21
- var handleAdd = useDeepCompareCallback(function () {
22
- coreDispatch(addNewDefaultUnsavedCohort());
23
- }, [coreDispatch]);
24
- // coreDispatch const getData = useDeepCompareCallback(() => {
25
- // return filters;
26
- // }, [filters]);
27
- //
28
- // const setCohort = useDeepCompareCallback(
29
- // (data: string) => {
30
- // const jsonForm = JSON.parse(data);
31
- // coreDispatch(setCohortFilter({ index, filters: jsonForm as FilterSet }));
32
- // },
33
- // [index, coreDispatch],
34
- // );
35
- return (_jsxs("div", { className: "flex justify-center items-center gap-2 md:gap-4", children: [_jsx(Tooltip, { label: "Save Cohort", position: "top", withArrow: true, children: _jsx("span", { className: "h-12", children: _jsx(DropdownWithIcon, { customDataTestId: "saveButton", dropdownElements: [
36
- {
37
- onClick: onSave,
38
- title: 'Save',
39
- disabled: currentCohortSaved && !currentCohortModified,
40
- },
41
- {
42
- onClick: onSaveAs,
43
- title: 'Save As',
44
- disabled: !currentCohortSaved,
45
- },
46
- ], LeftSection: _jsx(SaveIcon, { size: "1.5em", className: "-mr-2.5", "aria-hidden": "true" }), TargetButtonChildren: "", fullHeight: true, disableTargetWidth: true, buttonAriaLabel: "Save cohort" }) }) }), _jsx(Tooltip, { label: "Create New Unsaved Cohort", position: "bottom", withArrow: true, children: _jsx(CohortGroupButton, { onClick: handleAdd, "data-testid": "addButton", "aria-label": "Add cohort", children: _jsx(AddIcon, { size: "1.5em", "aria-hidden": "true" }) }) }), _jsx(Tooltip, { label: "Delete Cohort", position: "bottom", withArrow: true, children: _jsx(CohortGroupButton, { "data-testid": "deleteButton", onClick: onDelete, "aria-label": "Delete cohort", children: _jsx(DeleteIcon, { size: "1.5em", "aria-hidden": "true" }) }) }), _jsx(UploadJSONButton, { handleFileChange: function () {
47
- return {};
48
- }, tooltip: "Import Cohort" }), _jsx(JSONObjectDownloadButton, { getData: function () {
49
- return {};
50
- }, filename: "cohort.json", tooltip: "Export Cohort" })] }));
51
- };
52
- export default CohortActions;
53
- //# sourceMappingURL=CohortActions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortActions.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortActions.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAe,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,uBAAuB,EACvB,wBAAwB,EACxB,eAAe,EACf,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAwB,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,OAAO,EACP,UAAU,EAEV,QAAQ,GAET,MAAM,sBAAsB,CAAC;AAC9B,OAAO,wBAAwB,MAAM,sEAAsE,CAAC;AAC5G,OAAO,gBAAgB,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AASjD,IAAM,aAAa,GAAiC,UAAC,EAKhC;QAJnB,MAAM,YAAA,EACN,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,KAAK,WAAA;IAEL,IAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IACvC,sEAAsE;IACtE,IAAM,iBAAiB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC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B,EAAC,QAAQ,EAAC,QAAQ,EAAC,SAAS,kBACpE,KAAC,iBAAiB,IAChB,OAAO,EAAE,SAAS,iBACN,WAAW,gBACZ,YAAY,YAEvB,KAAC,OAAO,IAAC,IAAI,EAAC,OAAO,iBAAa,MAAM,GAAG,GACzB,GACZ,EAEV,KAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,QAAQ,EAAC,QAAQ,EAAC,SAAS,kBACxD,KAAC,iBAAiB,mBACJ,cAAc,EAC1B,OAAO,EAAE,QAAQ,gBACN,eAAe,YAE1B,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,iBAAa,MAAM,GAAG,GAC5B,GACZ,EAEV,KAAC,gBAAgB,IACf,gBAAgB,EAAE;oBAChB,OAAO,EAAE,CAAC;gBACZ,CAAC,EACD,OAAO,EAAC,eAAe,GACvB,EACF,KAAC,wBAAwB,IACvB,OAAO,EAAE;oBACP,OAAO,EAAE,CAAC;gBACZ,CAAC,EACD,QAAQ,EAAC,aAAa,EACtB,OAAO,EAAC,eAAe,GACvB,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const INVALID_COHORT_NAMES: string[];
2
- interface CohortManagerProps {
3
- index: string;
4
- }
5
- declare const CohortManager: ({ index }: CohortManagerProps) => import("react/jsx-runtime").JSX.Element;
6
- export default CohortManager;
7
- //# sourceMappingURL=CohortManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortManager.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortManager.tsx"],"names":[],"mappings":"AAuBA,eAAO,MAAM,oBAAoB,UAAqB,CAAC;AAEvD,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,aAAa,cAAe,kBAAkB,4CAiDnD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,38 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useCoreSelector, selectCurrentCohortId, selectCurrentCohortName, } from '@gen3/core';
3
- import { modals } from '@mantine/modals';
4
- import { useCohortFacetFilters } from '../hooks';
5
- import CohortSelector from './CohortSelector';
6
- import CohortActions from './CohortActions';
7
- import { SaveOrCreateEntityBody } from './modals/SaveOrCreateEntityModal';
8
- export var INVALID_COHORT_NAMES = ['unsaved_cohort'];
9
- var CohortManager = function (_a) {
10
- var index = _a.index;
11
- var currentCohortId = useCoreSelector(function (state) {
12
- return selectCurrentCohortId(state);
13
- });
14
- var currentCohortName = useCoreSelector(function (state) {
15
- return selectCurrentCohortName(state);
16
- });
17
- var filters = useCohortFacetFilters(index);
18
- var openSaveModal = function (saveAs) {
19
- if (saveAs === void 0) { saveAs = false; }
20
- return modals.open({
21
- title: 'Save Cohort2',
22
- children: (_jsx(SaveOrCreateEntityBody, { entity: "cohort", action: "Save", initialName: "", onClose: function () { return null; }, onActionClick: function (name) {
23
- // handleSaveAction(name, false);
24
- // setState((prev) => ({ ...prev, enteredName: name }));
25
- }, descriptionMessage: saveAs
26
- ? 'Provide a name to save your current cohort as a new cohort'
27
- : 'Provide a name to save the cohort.', closeOnAction: false, disallowedNames: INVALID_COHORT_NAMES })),
28
- });
29
- };
30
- var onSave = function () {
31
- openSaveModal();
32
- };
33
- var onSaveAs = function () { };
34
- var onDelete = function () { };
35
- return (_jsxs("div", { className: "flex items-center gap-2 md:gap-4 mb-2 bg-secondary-lighter px-2", children: [_jsx(CohortSelector, { index: index, filters: filters }), _jsx(CohortActions, { onSave: onSave, onSaveAs: onSaveAs, onDelete: onDelete, index: index })] }));
36
- };
37
- export default CohortManager;
38
- //# sourceMappingURL=CohortManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortManager.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortManager.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,uBAAu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G;QACb,aAAa,EAAE,CAAC;IAClB,CAAC,CAAC;IACF,IAAM,QAAQ,GAAG,cAAO,CAAC,CAAC;IAC1B,IAAM,QAAQ,GAAG,cAAO,CAAC,CAAC;IAC1B,OAAO,CACL,eAAK,SAAS,EAAC,iEAAiE,aAC9E,KAAC,cAAc,IAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAI,EAClD,KAAC,aAAa,IACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,GACZ,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { type FilterSet } from '@gen3/core';
3
- export declare const UnsavedIcon: ({ label }: {
4
- label: string;
5
- }) => JSX.Element;
6
- interface CohortSelectorProps {
7
- showSelectedCohorts?: boolean;
8
- readonly index: string;
9
- readonly filters: FilterSet;
10
- }
11
- declare const CohortSelector: React.FC<CohortSelectorProps>;
12
- export default CohortSelector;
13
- //# sourceMappingURL=CohortSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortSelector.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,YAAY,CAAC;AAIpB,eAAO,MAAM,WAAW,cAAe;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,KAAG,GAAG,CAAC,OAM9D,CAAC;AAEF,UAAU,mBAAmB;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;CAC7B;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0FjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,56 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Select, Tooltip } from '@mantine/core';
3
- import { Icon } from '@iconify/react';
4
- import { useCoreDispatch, setCohortFilter, useCoreSelector, selectAvailableCohorts, selectCurrentCohortModified, selectCurrentCohortSaved, setActiveCohort, selectCurrentCohortId, } from '@gen3/core';
5
- import { useDeepCompareCallback, useDeepCompareMemo } from 'use-deep-compare';
6
- export var UnsavedIcon = function (_a) {
7
- var label = _a.label;
8
- return (_jsx(Tooltip, { label: label, withArrow: true, children: _jsx("span", { className: "leading-0 pointer-events-auto", children: _jsx(Icon, { icon: "gen3:cohort-unsaved", "aria-hidden": "true", height: "1.0rem" }) }) }));
9
- };
10
- var CohortSelector = function (_a) {
11
- var index = _a.index, filters = _a.filters;
12
- var coreDispatch = useCoreDispatch();
13
- var cohorts = useCoreSelector(selectAvailableCohorts);
14
- var currentCohortId = useCoreSelector(selectCurrentCohortId);
15
- var currentCohortModified = useCoreSelector(selectCurrentCohortModified);
16
- var currentCohortSaved = useCoreSelector(selectCurrentCohortSaved);
17
- var cohortStatusMessage = currentCohortSaved
18
- ? 'Changes not saved'
19
- : 'Cohort not saved';
20
- var isSavedUnchanged = currentCohortSaved && !currentCohortModified;
21
- var getData = useDeepCompareCallback(function () {
22
- return filters;
23
- }, [filters]);
24
- var handleCohortChange = useDeepCompareCallback(function (id) {
25
- coreDispatch(setActiveCohort(id));
26
- }, [coreDispatch]);
27
- var cohortList = useDeepCompareMemo(function () {
28
- return cohorts
29
- .sort(function (a, b) {
30
- return a.modified_datetime <= b.modified_datetime ? 1 : -1;
31
- })
32
- .map(function (x) { return ({
33
- value: x.id,
34
- label: x.name,
35
- isSavedUnchanged: x.saved && !x.modified,
36
- cohortStatusMessage: x.saved
37
- ? 'Changes not saved'
38
- : 'Cohort not saved',
39
- }); });
40
- }, [cohorts]);
41
- var setCohort = useDeepCompareCallback(function (data) {
42
- var jsonForm = JSON.parse(data);
43
- coreDispatch(setCohortFilter({ index: index, filters: jsonForm }));
44
- }, [index, coreDispatch]);
45
- return (_jsxs("div", { className: "flex flex-col pt-5", "data-testid": "cohort-list-dropdown", children: [_jsx(Select, { data: cohortList, searchable: true, clearable: false, value: currentCohortId, onChange: function (id) {
46
- if (id !== null) {
47
- handleCohortChange(id);
48
- }
49
- }, classNames: {
50
- root: 'border-secondary-darkest w-56 md:w-80',
51
- input: 'text-heading font-medium text-primary-darkest rounded-l-none h-[48px] border-primary border-l-2',
52
- option: 'text-heading font-normal text-primary-darkest data-selected:bg-primary-lighter hover:bg-accent-lightest hover:text-accent-contrast-lightest my-0.5',
53
- }, "aria-label": "Select cohort", "data-testid": "switchButton", rightSection: _jsxs("div", { className: "flex gap-1 items-center", children: [!isSavedUnchanged && _jsx(UnsavedIcon, { label: cohortStatusMessage }), _jsx(Icon, { icon: "gen3:caret-down", height: "1.0rem", className: "text-primary" })] }), rightSectionWidth: !isSavedUnchanged ? 45 : 30, styles: { section: { pointerEvents: 'none' } } }), _jsx("div", { className: "ml-auto text-heading text-sm font-semibold mt-0.85 text-primary-contrast ".concat(!isSavedUnchanged ? 'visible' : 'invisible'), children: cohortStatusMessage })] }));
54
- };
55
- export default CohortSelector;
56
- //# sourceMappingURL=CohortSelector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CohortSelector.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/CohortSelector.tsx"],"names":[],"mappings":";AACA,OAAO,EAAS,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,OAAO,EAGL,eAAe,EACf,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,eAAe,EACf,qBAAqB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,sBAAsB,EAAE,k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,KAAC,WAAW,IAAC,KAAK,EAAE,mBAAmB,GAAI,EACjE,KAAC,IAAI,IACH,IAAI,EAAC,iBAAiB,EACtB,MAAM,EAAC,QAAQ,EACf,SAAS,EAAC,cAAc,GACxB,IACE,EAER,iBAAiB,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAC9C,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,GAC9C,EACF,cACE,SAAS,EAAE,mFACT,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAC3C,YAED,mBAAmB,GAChB,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,4 +0,0 @@
1
- import { NextRouter } from 'next/router';
2
- export declare const exportCohort: (caseIds: readonly Record<string, any>[], cohortName: string) => void;
3
- export declare const removeQueryParamsFromRouter: (router: NextRouter, removeList?: string[]) => void;
4
- //# sourceMappingURL=cohortUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cohortUtils.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/cohortUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,eAAO,MAAM,YAAY,YACd,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,cAC3B,MAAM,SAWnB,CAAC;AAEF,eAAO,MAAM,2BAA2B,WAC9B,UAAU,eACN,MAAM,EAAE,KACnB,IAeF,CAAC"}
@@ -1,22 +0,0 @@
1
- import { getFormattedTimestamp } from '../../../utils/date';
2
- import saveAs from 'file-saver';
3
- export var exportCohort = function (caseIds, cohortName) {
4
- var tsv = "id\n".concat(caseIds.map(function (c) { return c.case_id; }).join('\n'));
5
- var blob = new Blob([tsv], { type: 'text/tsv' });
6
- saveAs(blob, "cohort_".concat(cohortName.replace(/[^A-Za-z0-9_.]/g, '_'), ".").concat(getFormattedTimestamp(), ".tsv"));
7
- };
8
- export var removeQueryParamsFromRouter = function (router, removeList) {
9
- if (removeList === void 0) { removeList = []; }
10
- if (removeList.length > 0) {
11
- removeList.forEach(function (param) { return delete router.query[param]; });
12
- }
13
- else {
14
- // Remove all
15
- Object.keys(router.query).forEach(function (param) { return delete router.query[param]; });
16
- }
17
- router.replace({
18
- pathname: router.pathname,
19
- query: router.query,
20
- }, undefined, { shallow: true });
21
- };
22
- //# sourceMappingURL=cohortUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cohortUtils.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/CohortManager/cohortUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,MAAM,MAAM,YAAY,CAAC;AAGhC,MAAM,CAAC,IAAM,YAAY,GAAG,UAC1B,OAAuC,EACvC,UAAkB;IAElB,IAAM,GAAG,GAAG,cAAO,OAAO,CAAC,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,OAAO,EAAT,CAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAC;IAC9D,IAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;IACnD,MAAM,CACJ,IAAI,EACJ,iBAAU,UAAU,CAAC,OAAO,CAC1B,iBAAiB,EACjB,GAAG,CACJ,cAAI,qBAAqB,EAAE,SAAM,CACnC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,2BAA2B,GAAG,UACzC,MAAkB,EAClB,UAAyB;IAAzB,2BAAA,EAAA,eAAyB;IAEzB,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,UAAU,CAAC,OAAO,CAAC,UAAC,KAAK,IAAK,OAAA,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAA1B,CAA0B,CAAC,CAAC;IAC5D,CAAC;SAAM,CAAC;QACN,aAAa;QACb,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAC,KAAK,IAAK,OAAA,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAA1B,CAA0B,CAAC,CAAC;IAC3E,CAAC;IACD,MAAM,CAAC,OAAO,CACZ;QACE,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,KAAK,EAAE,MAAM,CAAC,KAAK;KACpB,EACD,SAAS,EACT,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=SaveCohortModal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SaveCohortModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.tsx"],"names":[],"mappings":""}