@gen3/frontend 0.10.75 → 0.10.77
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.
- package/dist/cjs/index.js +19 -43
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts +0 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js +3 -3
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.js.map +1 -1
- package/dist/dts/components/Buttons/UploadJSONButton.d.ts.map +1 -1
- package/dist/dts/components/Buttons/UploadJSONButton.js +12 -1
- package/dist/dts/components/Buttons/UploadJSONButton.js.map +1 -1
- package/dist/dts/components/Content/TextContent.d.ts +2 -1
- package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
- package/dist/dts/components/Content/TextContent.js +8 -5
- package/dist/dts/components/Content/TextContent.js.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts +12 -8
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js +11 -17
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js +4 -18
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js +8 -5
- package/dist/dts/components/Login/LoginProvidersPanel.js.map +1 -1
- package/dist/dts/components/MessageCards/ErrorCard.js +1 -1
- package/dist/dts/components/MessageCards/ErrorCard.js.map +1 -1
- package/dist/dts/components/MessageCards/WarningCard.js +1 -1
- package/dist/dts/components/MessageCards/WarningCard.js.map +1 -1
- package/dist/dts/components/MessagePanel.d.ts.map +1 -1
- package/dist/dts/components/MessagePanel.js +1 -1
- package/dist/dts/components/MessagePanel.js.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts +2 -3
- package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.js +4 -8
- package/dist/dts/components/Providers/Gen3Provider.js.map +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.d.ts +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.d.ts.map +1 -1
- package/dist/dts/components/Providers/ResourceMonitor.js +131 -48
- package/dist/dts/components/Providers/ResourceMonitor.js.map +1 -1
- package/dist/dts/components/charts/Charts.d.ts.map +1 -1
- package/dist/dts/components/charts/Charts.js +4 -3
- package/dist/dts/components/charts/Charts.js.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.js +4 -28
- package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
- package/dist/dts/components/facets/RangeFacet.d.ts.map +1 -1
- package/dist/dts/components/facets/RangeFacet.js +1 -3
- package/dist/dts/components/facets/RangeFacet.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +1 -13
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager.js +17 -0
- package/dist/dts/features/CohortBuilder/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +2 -3
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts +3 -0
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortSelector.js +18 -0
- package/dist/dts/features/CohortBuilder/CohortSelector.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionSection.d.ts → QueryExpressionSection.d.ts} +4 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionSection.js → QueryExpressionSection.js} +28 -36
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentation.d.ts → QueryRepresentation.d.ts} +1 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentation.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentation.js → QueryRepresentation.js} +30 -23
- package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/hooks.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/hooks.js +1 -52
- package/dist/dts/features/CohortBuilder/hooks.js.map +1 -1
- package/dist/dts/features/CohortBuilder/style.d.ts +0 -6
- package/dist/dts/features/CohortBuilder/style.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/style.js +0 -11
- package/dist/dts/features/CohortBuilder/style.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +4 -6
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/FilterPanels/createFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/IndexPanel.js +3 -5
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.d.ts +0 -2
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +0 -2
- package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts +0 -10
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.js +1 -38
- package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiversity/diversityApi.d.ts +12 -12
- package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkPanel.d.ts.map +1 -1
- package/dist/dts/features/Crosswalk/CrosswalkPanel.js +11 -11
- package/dist/dts/features/Crosswalk/CrosswalkPanel.js.map +1 -1
- package/dist/dts/features/Crosswalk/types.d.ts +1 -0
- package/dist/dts/features/Crosswalk/types.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/QueryDetails.d.ts.map +1 -1
- package/dist/dts/features/DataLibrary/QueryDetails.js +2 -2
- package/dist/dts/features/DataLibrary/QueryDetails.js.map +1 -1
- package/dist/dts/features/Dictionary/Dictionary.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/Dictionary.js +1 -0
- package/dist/dts/features/Dictionary/Dictionary.js.map +1 -1
- package/dist/dts/features/Dictionary/index.d.ts +3 -1
- package/dist/dts/features/Dictionary/index.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/index.js +3 -1
- package/dist/dts/features/Dictionary/index.js.map +1 -1
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts +7 -0
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js +39 -0
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js.map +1 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts +9 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js +113 -0
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js.map +1 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.d.ts +3 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.js +13 -0
- package/dist/dts/features/Dictionary/metadata/registerApp.js.map +1 -0
- package/dist/dts/features/Dictionary/metadata/types.d.ts +17 -0
- package/dist/dts/features/Dictionary/metadata/types.d.ts.map +1 -0
- package/dist/dts/features/Dictionary/metadata/types.js +2 -0
- package/dist/dts/features/Dictionary/metadata/types.js.map +1 -0
- package/dist/dts/features/Navigation/TopBar.d.ts.map +1 -1
- package/dist/dts/features/Navigation/TopBar.js +4 -3
- package/dist/dts/features/Navigation/TopBar.js.map +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.d.ts.map +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js +1 -1
- package/dist/dts/features/Workspace/ExternalLogins/ExternalLoginsStatus.js.map +1 -1
- package/dist/dts/features/Workspace/NotebookCard.d.ts.map +1 -1
- package/dist/dts/features/Workspace/NotebookCard.js +30 -8
- package/dist/dts/features/Workspace/NotebookCard.js.map +1 -1
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.d.ts.map +1 -1
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js +3 -4
- package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js.map +1 -1
- package/dist/dts/features/Workspace/StatusAndControls.d.ts.map +1 -1
- package/dist/dts/features/Workspace/StatusAndControls.js +3 -4
- package/dist/dts/features/Workspace/StatusAndControls.js.map +1 -1
- package/dist/dts/features/Workspace/Workspace.d.ts.map +1 -1
- package/dist/dts/features/Workspace/Workspace.js +0 -1
- package/dist/dts/features/Workspace/Workspace.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js +4 -1
- package/dist/dts/features/Workspace/WorkspaceNotebookPanelWithControls.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspacePanel.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspacePanel.js +10 -9
- package/dist/dts/features/Workspace/WorkspacePanel.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.js +1 -0
- package/dist/dts/features/Workspace/WorkspaceProvider.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts +2 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.js +56 -27
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.js.map +1 -1
- package/dist/dts/features/Workspace/types.d.ts +10 -0
- package/dist/dts/features/Workspace/types.d.ts.map +1 -1
- package/dist/dts/features/Workspace/types.js +10 -1
- package/dist/dts/features/Workspace/types.js.map +1 -1
- package/dist/dts/index.d.ts +3 -2
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +3 -2
- package/dist/dts/index.js.map +1 -1
- package/dist/dts/lib/session/session.d.ts.map +1 -1
- package/dist/dts/lib/session/session.js +7 -7
- package/dist/dts/lib/session/session.js.map +1 -1
- package/dist/dts/pages/Crosswalk/data.d.ts +2 -3
- package/dist/dts/pages/Crosswalk/data.d.ts.map +1 -1
- package/dist/dts/pages/Crosswalk/data.js +27 -11
- package/dist/dts/pages/Crosswalk/data.js.map +1 -1
- package/dist/dts/pages/Theme/index.d.ts.map +1 -1
- package/dist/dts/utils/date.d.ts +0 -6
- package/dist/dts/utils/date.d.ts.map +1 -1
- package/dist/dts/utils/date.js +0 -12
- package/dist/dts/utils/date.js.map +1 -1
- package/dist/dts/utils/index.d.ts +1 -0
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +1 -0
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/time.d.ts +15 -0
- package/dist/dts/utils/time.d.ts.map +1 -1
- package/dist/dts/utils/time.js +105 -0
- package/dist/dts/utils/time.js.map +1 -1
- package/dist/esm/index.js +19 -43
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +46 -15
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/dts/components/CountButton/CountButton.d.ts +0 -19
- package/dist/dts/components/CountButton/CountButton.d.ts.map +0 -1
- package/dist/dts/components/CountButton/CountButton.js +0 -18
- package/dist/dts/components/CountButton/CountButton.js.map +0 -1
- package/dist/dts/components/ErrorMessage.d.ts +0 -6
- package/dist/dts/components/ErrorMessage.d.ts.map +0 -1
- package/dist/dts/components/ErrorMessage.js +0 -8
- package/dist/dts/components/ErrorMessage.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +0 -10
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +0 -53
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +0 -7
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +0 -38
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +0 -13
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +0 -56
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts +0 -4
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js +0 -22
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +0 -320
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +0 -29
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +0 -85
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +0 -6
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +0 -55
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +0 -13
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +0 -41
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.js.map +0 -1
- package/dist/dts/features/CohortBuilder/cohortUtils.d.ts +0 -4
- package/dist/dts/features/CohortBuilder/cohortUtils.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/cohortUtils.js +0 -23
- package/dist/dts/features/CohortBuilder/cohortUtils.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortManager.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortManager.js +0 -57
- package/dist/dts/features/CohortDiscovery/CohortManager.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -23
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js +0 -35
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -91
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +0 -1
- package/dist/dts/features/CohortDiscovery/CohortSlice.js +0 -93
- package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +0 -1
- package/dist/dts/utils/icons.d.ts +0 -18
- package/dist/dts/utils/icons.d.ts.map +0 -1
- package/dist/dts/utils/icons.js +0 -18
- package/dist/dts/utils/icons.js.map +0 -1
- /package/dist/dts/features/{CohortDiscovery → CohortBuilder}/CohortManager.d.ts +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionsExpandedContext.d.ts → QueryExpressionsExpandedContext.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryExpressionsExpandedContext.js → QueryExpressionsExpandedContext.js} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpression/QueryRepresentationLabel.d.ts → QueryRepresentationLabel.d.ts} +0 -0
- /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.
|
|
3
|
+
"version": "0.10.77",
|
|
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.
|
|
52
|
+
"@gen3/core": "^0.10.77",
|
|
53
53
|
"@graphiql/react": "^0.23.1",
|
|
54
54
|
"@hello-pangea/dnd": "^17.0.0",
|
|
55
55
|
"@iconify/react": "^5.0.2",
|
|
@@ -154,5 +154,5 @@
|
|
|
154
154
|
"files": [
|
|
155
155
|
"dist"
|
|
156
156
|
],
|
|
157
|
-
"gitHead": "
|
|
157
|
+
"gitHead": "f6fb0711ae4f211661d9917177d3382623ad4c34"
|
|
158
158
|
}
|
|
@@ -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 +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,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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,uBAAuB,GASxB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,s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,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,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG9E,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,EAA4B;QAA1B,KAAK,WAAA;IAAuC,OAAA,CACxE,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,kBAC9B,eAAM,SAAS,EAAC,+BAA+B,YAC7C,KAAC,IAAI,IAAC,IAAI,EAAC,qBAAqB,iBAAa,MAAM,EAAC,MAAM,EAAC,QAAQ,GAAG,GACjE,GACC,CACX;AANyE,CAMzE,CAAC;AAQF,IAAM,cAAc,GAAkC,UAAC,EAAkB;QAAhB,KAAK,WAAA,EAAE,OAAO,aAAA;IACrE,IAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IACvC,IAAM,OAAO,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;IACxD,IAAM,eAAe,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;IAC/D,IAAM,qBAAqB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;IAC3E,IAAM,kBAAkB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;IACrE,IAAM,mBAAmB,GAAG,kBAAkB;QAC5C,CAAC,CAAC,mBAAmB;QACrB,CAAC,CAAC,kBAAkB,CAAC;IACvB,IAAM,gBAAgB,GAAG,kBAAkB,IAAI,CAAC,qBAAqB,CAA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B,UAAU,QACV,SAAS,EAAE,KAAK,EAChB,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,UAAC,EAAE;oBACX,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC;wBAChB,kBAAkB,CAAC,EAAE,CAAC,CAAC;oBACzB,CAAC;gBACH,CAAC,EACD,UAAU,EAAE;oBACV,IAAI,EAAE,uCAAuC;oBAC7C,KAAK,EACH,iGAAiG;oBACnG,MAAM,EACJ,oJAAoJ;iBACvJ,gBACU,eAAe,iBACd,cAAc,EAC1B,YAAY,EACV,eAAK,SAAS,EAAC,yBAAyB,aACrC,CAAC,gBAAgB,IAAI,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,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
{"version":3,"file":"SaveCohortModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CohortBuilder/CohortManager/modals/SaveCohortModal.tsx"],"names":[],"mappings":""}
|