@gen3/frontend 0.10.73 → 0.10.75
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 +229 -173
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Buttons/DownloadButtons/JSONObjectDownloadButton.d.ts +1 -0
- 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.js +1 -1
- package/dist/dts/components/Buttons/UploadJSONButton.js.map +1 -1
- package/dist/dts/components/Content/TextContent.d.ts +1 -2
- package/dist/dts/components/Content/TextContent.d.ts.map +1 -1
- package/dist/dts/components/Content/TextContent.js +5 -8
- package/dist/dts/components/Content/TextContent.js.map +1 -1
- package/dist/dts/components/CountButton/CountButton.d.ts +19 -0
- package/dist/dts/components/CountButton/CountButton.d.ts.map +1 -0
- package/dist/dts/components/CountButton/CountButton.js +18 -0
- package/dist/dts/components/CountButton/CountButton.js.map +1 -0
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts +8 -12
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.d.ts.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js +17 -11
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.js.map +1 -1
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js +18 -4
- package/dist/dts/components/DropdownWithIcon/DropdownWithIcon.unit.test.js.map +1 -1
- package/dist/dts/components/ErrorMessage.d.ts +6 -0
- package/dist/dts/components/ErrorMessage.d.ts.map +1 -0
- package/dist/dts/components/ErrorMessage.js +8 -0
- package/dist/dts/components/ErrorMessage.js.map +1 -0
- package/dist/dts/components/Login/LoginProvidersPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginProvidersPanel.js +5 -8
- 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 +3 -2
- package/dist/dts/components/Providers/Gen3Provider.d.ts.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.js +8 -4
- 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 +48 -131
- package/dist/dts/components/Providers/ResourceMonitor.js.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.d.ts.map +1 -1
- package/dist/dts/components/charts/echarts/BarChart.js +28 -4
- package/dist/dts/components/charts/echarts/BarChart.js.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.d.ts.map +1 -1
- package/dist/dts/components/facets/FacetControlsHeader.js +0 -1
- package/dist/dts/components/facets/FacetControlsHeader.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/CohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js +13 -1
- package/dist/dts/features/CohortBuilder/CohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +10 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +53 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +7 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +38 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{CohortSelector.d.ts → CohortManager/CohortSelector.d.ts} +4 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +56 -0
- package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js +22 -0
- package/dist/dts/features/CohortBuilder/CohortManager/cohortUtils.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +320 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js +2 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +29 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +85 -0
- package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +1 -0
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +3 -2
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js +55 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpression.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts +13 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js +41 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionContext.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpressionSection.d.ts → QueryExpression/QueryExpressionSection.d.ts} +1 -4
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryExpressionSection.js → QueryExpression/QueryExpressionSection.js} +36 -28
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionSection.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryExpressionsExpandedContext.js.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryRepresentation.d.ts → QueryExpression/QueryRepresentation.d.ts} +1 -1
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/{QueryRepresentation.js → QueryExpression/QueryRepresentation.js} +23 -30
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentation.js.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/QueryExpression/QueryRepresentationLabel.js.map +1 -0
- package/dist/dts/features/CohortBuilder/cohortUtils.d.ts +4 -0
- package/dist/dts/features/CohortBuilder/cohortUtils.d.ts.map +1 -0
- package/dist/dts/features/CohortBuilder/cohortUtils.js +23 -0
- package/dist/dts/features/CohortBuilder/cohortUtils.js.map +1 -0
- package/dist/dts/features/CohortBuilder/hooks.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/hooks.js +52 -1
- package/dist/dts/features/CohortBuilder/hooks.js.map +1 -1
- package/dist/dts/features/CohortBuilder/style.d.ts +6 -0
- package/dist/dts/features/CohortBuilder/style.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/style.js +11 -0
- 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 +6 -4
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManager.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortManager.js +57 -0
- package/dist/dts/features/CohortDiscovery/CohortManager.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +23 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js +35 -0
- package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +91 -0
- package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +1 -0
- package/dist/dts/features/CohortDiscovery/CohortSlice.js +93 -0
- package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +1 -0
- 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 +5 -3
- package/dist/dts/features/CohortDiscovery/IndexPanel.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.d.ts +2 -0
- package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/appApi.js +2 -0
- package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.d.ts +10 -0
- package/dist/dts/features/CohortDiscovery/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/hooks.js +38 -1
- package/dist/dts/features/CohortDiscovery/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiversity/diversityApi.d.ts +12 -12
- 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 +0 -1
- package/dist/dts/features/Dictionary/Dictionary.js.map +1 -1
- package/dist/dts/features/Dictionary/index.d.ts +1 -3
- package/dist/dts/features/Dictionary/index.d.ts.map +1 -1
- package/dist/dts/features/Dictionary/index.js +1 -3
- package/dist/dts/features/Dictionary/index.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 +8 -30
- 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 -3
- 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 +2 -2
- 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 +1 -0
- 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 +1 -3
- 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 +9 -10
- 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 +0 -1
- package/dist/dts/features/Workspace/WorkspaceProvider.js.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts +1 -2
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.d.ts.map +1 -1
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.js +27 -56
- package/dist/dts/features/Workspace/WorkspaceStatusProvider.js.map +1 -1
- package/dist/dts/features/Workspace/types.d.ts +0 -10
- package/dist/dts/features/Workspace/types.d.ts.map +1 -1
- package/dist/dts/features/Workspace/types.js +1 -10
- package/dist/dts/features/Workspace/types.js.map +1 -1
- package/dist/dts/index.d.ts +2 -3
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/index.js +2 -3
- 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/Theme/index.d.ts.map +1 -1
- package/dist/dts/utils/date.d.ts +6 -0
- package/dist/dts/utils/date.d.ts.map +1 -1
- package/dist/dts/utils/date.js +12 -0
- package/dist/dts/utils/date.js.map +1 -1
- package/dist/dts/utils/icons.d.ts +18 -0
- package/dist/dts/utils/icons.d.ts.map +1 -0
- package/dist/dts/utils/icons.js +18 -0
- package/dist/dts/utils/icons.js.map +1 -0
- package/dist/dts/utils/index.d.ts +0 -1
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/index.js +0 -1
- package/dist/dts/utils/index.js.map +1 -1
- package/dist/dts/utils/time.d.ts +0 -15
- package/dist/dts/utils/time.d.ts.map +1 -1
- package/dist/dts/utils/time.js +0 -105
- package/dist/dts/utils/time.js.map +1 -1
- package/dist/esm/index.js +231 -175
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +15 -45
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortManager.js +0 -17
- package/dist/dts/features/CohortBuilder/CohortManager.js.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/CohortSelector.js +0 -20
- package/dist/dts/features/CohortBuilder/CohortSelector.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionSection.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryExpressionsExpandedContext.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentation.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentation.js.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/QueryRepresentationLabel.js.map +0 -1
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts +0 -7
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.d.ts.map +0 -1
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js +0 -39
- package/dist/dts/features/Dictionary/metadata/MetadataDictionary.js.map +0 -1
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts +0 -9
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.d.ts.map +0 -1
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js +0 -113
- package/dist/dts/features/Dictionary/metadata/MetadataPropertiesTable.js.map +0 -1
- package/dist/dts/features/Dictionary/metadata/registerApp.d.ts +0 -3
- package/dist/dts/features/Dictionary/metadata/registerApp.d.ts.map +0 -1
- package/dist/dts/features/Dictionary/metadata/registerApp.js +0 -13
- package/dist/dts/features/Dictionary/metadata/registerApp.js.map +0 -1
- package/dist/dts/features/Dictionary/metadata/types.d.ts +0 -17
- package/dist/dts/features/Dictionary/metadata/types.d.ts.map +0 -1
- package/dist/dts/features/Dictionary/metadata/types.js +0 -2
- package/dist/dts/features/Dictionary/metadata/types.js.map +0 -1
- /package/dist/dts/features/CohortBuilder/{QueryExpressionsExpandedContext.d.ts → QueryExpression/QueryExpressionsExpandedContext.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryExpressionsExpandedContext.js → QueryExpression/QueryExpressionsExpandedContext.js} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryRepresentationLabel.d.ts → QueryExpression/QueryRepresentationLabel.d.ts} +0 -0
- /package/dist/dts/features/CohortBuilder/{QueryRepresentationLabel.js → QueryExpression/QueryRepresentationLabel.js} +0 -0
- /package/dist/dts/features/{CohortBuilder → CohortDiscovery}/CohortManager.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/hooks.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,qBAAqB,gBAEjB,MAAM,YAAY,OAAO,SAGzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAW,MAAM,QAInD,CAAC;AAEF,eAAO,MAAM,sBAAsB,WAElC,CAAC"}
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/hooks.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAOlD,eAAO,MAAM,qBAAqB,gBAEjB,MAAM,YAAY,OAAO,SAGzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAW,MAAM,QAInD,CAAC;AAEF,eAAO,MAAM,sBAAsB,WAElC,CAAC;AAEF,eAAO,MAAM,qBAAqB,UAAW,MAAM,KAAG,SAErD,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,MAAM,aAG5B,MAAM,SAGtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,UAAW,MAAM,aAI7B,MAAM,UAAU,SAAS,SASzC,CAAC;AACF,eAAO,MAAM,kBAAkB,UAAW,MAAM,SAAS,MAAM,KAAG,SAQjE,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { useAppDispatch, useAppSelector } from './appApi';
|
|
2
|
-
import {
|
|
2
|
+
import { selectAllFiltersCollapsed, selectFilterExpanded, toggleCategoryFilter, } from './FilterExpandSlice';
|
|
3
|
+
import { removeCohortFilter, updateCohortFilter } from './CohortSlice';
|
|
4
|
+
import { buildNested } from '../../components/facets';
|
|
5
|
+
import { selectIndexedFilterByName, selectCohortFilters, } from './CohortSelectors';
|
|
3
6
|
export var useToggleExpandFilter = function () {
|
|
4
7
|
var dispatch = useAppDispatch();
|
|
5
8
|
return function (field, expanded) {
|
|
@@ -14,4 +17,38 @@ export var useFilterExpandedState = function (field) {
|
|
|
14
17
|
export var useAllFiltersCollapsed = function () {
|
|
15
18
|
return useAppSelector(function (state) { return selectAllFiltersCollapsed(state); });
|
|
16
19
|
};
|
|
20
|
+
export var useCohortFacetFilters = function (index) {
|
|
21
|
+
return useAppSelector(function (state) { return selectCohortFilters(state)[index]; });
|
|
22
|
+
};
|
|
23
|
+
export var useClearFilters = function (index) {
|
|
24
|
+
var dispatch = useAppDispatch();
|
|
25
|
+
return function (field) {
|
|
26
|
+
dispatch(removeCohortFilter({ index: index, field: field }));
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Update Guppy filters: process nested fields and have the final
|
|
31
|
+
* leaf be filtered
|
|
32
|
+
* @param index
|
|
33
|
+
*/
|
|
34
|
+
export var useUpdateFilters = function (index) {
|
|
35
|
+
var dispatch = useAppDispatch();
|
|
36
|
+
// update the filter for this facet
|
|
37
|
+
return function (field, filter) {
|
|
38
|
+
dispatch(updateCohortFilter({
|
|
39
|
+
index: index,
|
|
40
|
+
field: field,
|
|
41
|
+
filter: buildNested(field, filter),
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export var useGetFacetFilters = function (index, field) {
|
|
46
|
+
return useAppSelector(function (state) {
|
|
47
|
+
var _a;
|
|
48
|
+
return (_a = selectIndexedFilterByName(state, index, field)) !== null && _a !== void 0 ? _a : {
|
|
49
|
+
operator: 'and',
|
|
50
|
+
operands: [],
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
};
|
|
17
54
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEpE,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,
|
|
1
|
+
{"version":3,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IAAM,QAAQ,GAAG,cAAc,EAAE,CAAC;IAElC,OAAO,UAAC,KAAa;QACnB,QAAQ,CAAC,kBAAkB,CAAC,EAAE,KAAK,OAAA,EAAE,KAAK,OAAA,EAAE,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAC,KAAa;IAC5C,IAAM,QAAQ,GAAG,cAAc,EAAE,CAAC;IAClC,mCAAmC;IAEnC,OAAO,UAAC,KAAa,EAAE,MAAiB;QACtC,QAAQ,CACN,kBAAkB,CAAC;YACjB,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC;SACnC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,KAAa,EAAE,KAAa;IAC7D,OAAO,cAAc,CACnB,UAAC,KAAe;;QACd,OAAA,MAAA,yBAAyB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,mCAAI;YAChD,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,EAAE;SACb,CAAA;KAAA,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -7,13 +7,13 @@ export declare const diversityDataApi: import("@reduxjs/toolkit/query").Api<impo
|
|
|
7
7
|
}, string, never, keyof import("@reduxjs/toolkit/query").ApiModules<any, any, any, any>>;
|
|
8
8
|
export declare const useGetDatasetQuery: <R extends Record<string, any> = import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
9
9
|
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
10
|
-
originalArgs?: undefined
|
|
11
|
-
data?: undefined
|
|
12
|
-
error?: undefined
|
|
13
|
-
requestId?: undefined
|
|
10
|
+
originalArgs?: undefined;
|
|
11
|
+
data?: undefined;
|
|
12
|
+
error?: undefined;
|
|
13
|
+
requestId?: undefined;
|
|
14
14
|
endpointName?: string | undefined;
|
|
15
|
-
startedTimeStamp?: undefined
|
|
16
|
-
fulfilledTimeStamp?: undefined
|
|
15
|
+
startedTimeStamp?: undefined;
|
|
16
|
+
fulfilledTimeStamp?: undefined;
|
|
17
17
|
} & {
|
|
18
18
|
currentData?: AggregationsData | undefined;
|
|
19
19
|
isUninitialized: false;
|
|
@@ -74,13 +74,13 @@ export declare const useGetDatasetQuery: <R extends Record<string, any> = import
|
|
|
74
74
|
skip?: boolean;
|
|
75
75
|
selectFromResult?: ((state: import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
76
76
|
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
77
|
-
originalArgs?: undefined
|
|
78
|
-
data?: undefined
|
|
79
|
-
error?: undefined
|
|
80
|
-
requestId?: undefined
|
|
77
|
+
originalArgs?: undefined;
|
|
78
|
+
data?: undefined;
|
|
79
|
+
error?: undefined;
|
|
80
|
+
requestId?: undefined;
|
|
81
81
|
endpointName?: string | undefined;
|
|
82
|
-
startedTimeStamp?: undefined
|
|
83
|
-
fulfilledTimeStamp?: undefined
|
|
82
|
+
startedTimeStamp?: undefined;
|
|
83
|
+
fulfilledTimeStamp?: undefined;
|
|
84
84
|
} & {
|
|
85
85
|
currentData?: AggregationsData | undefined;
|
|
86
86
|
isUninitialized: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryDetails.d.ts","sourceRoot":"","sources":["../../../../src/features/DataLibrary/QueryDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAe,MAAM,YAAY,CAAC;AAmBrD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"QueryDetails.d.ts","sourceRoot":"","sources":["../../../../src/features/DataLibrary/QueryDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAe,MAAM,YAAY,CAAC;AAmBrD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAoCtC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { isFilterSet } from '@gen3/core';
|
|
3
3
|
import { Group, Text } from '@mantine/core';
|
|
4
4
|
import { ErrorCard } from '../../components/MessageCards';
|
|
5
|
-
import QueryExpressionSection from '../CohortBuilder/QueryExpressionSection';
|
|
5
|
+
import QueryExpressionSection from '../CohortBuilder/QueryExpression/QueryExpressionSection';
|
|
6
6
|
var LabeledText = function (_a) {
|
|
7
7
|
var label = _a.label, text = _a.text;
|
|
8
8
|
return (_jsxs("div", { className: "flex p-1 space-x-2", children: [_jsxs(Text, { fw: 600, children: [label, ":"] }), _jsxs(Text, { fw: 400, children: [" ", text] })] }));
|
|
@@ -14,7 +14,7 @@ var QueryDetails = function (_a) {
|
|
|
14
14
|
}
|
|
15
15
|
return (_jsxs("div", { className: "flex flex-col", children: [_jsxs(Group, { classNames: {
|
|
16
16
|
root: 'p-2 bg-base-lighter rounded-t-lg border-2 border-b-0 border-base-light',
|
|
17
|
-
}, children: [_jsx(Text, { fw: 700, children: name }), _jsx(LabeledText, { label: "Index:", text: index }), _jsx(LabeledText, { label: "Schema Version:", text: schemaVersion }), _jsx(LabeledText, { label: "ID:", text: id })] }), _jsx("div", { className: "p-2 overflow-scroll w-full bg-base-lighter rounded-b-lg border-2 border-t-0 border-base-light", children: isFilterSet(data) ? (_jsx(QueryExpressionSection, {
|
|
17
|
+
}, children: [_jsx(Text, { fw: 700, children: name }), _jsx(LabeledText, { label: "Index:", text: index }), _jsx(LabeledText, { label: "Schema Version:", text: schemaVersion }), _jsx(LabeledText, { label: "ID:", text: id })] }), _jsx("div", { className: "p-2 overflow-scroll w-full bg-base-lighter rounded-b-lg border-2 border-t-0 border-base-light", children: isFilterSet(data) ? (_jsx(QueryExpressionSection, { index: index, displayOnly: true, showTitle: false })) : (_jsx(Text, { fw: 400, children: JSON.stringify(data, null, 2) })) })] }));
|
|
18
18
|
};
|
|
19
19
|
export default QueryDetails;
|
|
20
20
|
//# sourceMappingURL=QueryDetails.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryDetails.js","sourceRoot":"","sources":["../../../../src/features/DataLibrary/QueryDetails.tsx"],"names":[],"mappings":";AACA,OAAO,EAAc,WAAW,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,sBAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"QueryDetails.js","sourceRoot":"","sources":["../../../../src/features/DataLibrary/QueryDetails.tsx"],"names":[],"mappings":";AACA,OAAO,EAAc,WAAW,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAO7F,IAAM,WAAW,GAA+B,UAAC,EAAe;QAAb,KAAK,WAAA,EAAE,IAAI,UAAA;IAC5D,OAAO,CACL,eAAK,SAAS,EAAC,oBAAoB,aACjC,MAAC,IAAI,IAAC,EAAE,EAAE,GAAG,aAAG,KAAK,SAAS,EAC9B,MAAC,IAAI,IAAC,EAAE,EAAE,GAAG,kBAAI,IAAI,IAAQ,IACzB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,YAAY,GAAyB,UAAC,EAM3C;QALC,IAAI,UAAA,EACJ,aAAa,mBAAA,EACb,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,EAAE,QAAA;IAEF,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,KAAC,SAAS,IAAC,OAAO,EAAC,iBAAiB,GAAG,CAAC;IACjD,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAC,eAAe,aAC5B,MAAC,KAAK,IACJ,UAAU,EAAE;oBACV,IAAI,EAAE,wEAAwE;iBAC/E,aAED,KAAC,IAAI,IAAC,EAAE,EAAE,GAAG,YAAG,IAAI,GAAQ,EAC5B,KAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,GAAI,EAC3C,KAAC,WAAW,IAAC,KAAK,EAAC,iBAAiB,EAAC,IAAI,EAAE,aAAa,GAAI,EAC5D,KAAC,WAAW,IAAC,KAAK,EAAC,KAAK,EAAC,IAAI,EAAE,EAAE,GAAI,IAC/B,EACR,cAAK,SAAS,EAAC,+FAA+F,YAC3G,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACnB,KAAC,sBAAsB,IACrB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,IAAI,EACjB,SAAS,EAAE,KAAK,GACQ,CAC3B,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,EAAE,EAAE,GAAG,YAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,GAAQ,CACtD,GACG,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dictionary.d.ts","sourceRoot":"","sources":["../../../../src/features/Dictionary/Dictionary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;;
|
|
1
|
+
{"version":3,"file":"Dictionary.d.ts","sourceRoot":"","sources":["../../../../src/features/Dictionary/Dictionary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;;AAuErD,wBAAsC"}
|
|
@@ -17,7 +17,6 @@ var Dictionary = function () {
|
|
|
17
17
|
setSelectedId(function () { return SearchPathToPropertyIdString(item); });
|
|
18
18
|
}, []);
|
|
19
19
|
var scrollToSelection = useCallback(function (itemRef) {
|
|
20
|
-
// @ts-expect-error need to refactor this
|
|
21
20
|
targetRef.current = itemRef;
|
|
22
21
|
scrollIntoView();
|
|
23
22
|
}, [scrollIntoView, targetRef]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dictionary.js","sourceRoot":"","sources":["../../../../src/features/Dictionary/Dictionary.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,IAAM,UAAU,GAAG;IACX,IAAA,KAA8B,QAAQ,CAAC,EAAE,CAAC,EAAzC,UAAU,QAAA,EAAE,aAAa,QAAgB,CAAC;IAC3C,IAAA,KAAkB,QAAQ,CAAW,OAAO,CAAC,EAA5C,IAAI,QAAA,EAAE,OAAO,QAA+B,CAAC;IAC9C,IAAA,KACJ,oBAAoB,EAAE,EADhB,UAAU,gBAAA,EAAE,UAAU,gBAAA,EAAE,iBAAiB,uBAAA,EAAE,MAAM,YACjC,CAAC;IAEnB,IAAA,
|
|
1
|
+
{"version":3,"file":"Dictionary.js","sourceRoot":"","sources":["../../../../src/features/Dictionary/Dictionary.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,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S,EAAC,CAAC,CAAC,CACnB,KAAC,YAAY,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAI,CAC/C,CAAC,CAAC,CAAC,IAAI,EACR,iEACqC,GAAG,EACtC,eAAM,SAAS,EAAC,WAAW,YAAE,iBAAiB,CAAC,MAAM,GAAQ,gBACzD,GAAG,EACP,eAAM,SAAS,EAAC,WAAW,YACxB,gBAAgB,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAC3C,EAAC,GAAG,kBAEN,EACP,KAAC,WAAW,IAAC,UAAU,EAAE,QAAQ,GAAI,IACjC,GACF,EACN,cACE,SAAS,EAAC,yCAAyC,EACnD,GAAG,EAAE,aAAa,YAElB,cAAK,SAAS,EAAC,QAAQ,YACpB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM;wBAC7B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,UAAC,QAAQ,IAAK,OAAA,CACxC,KAAC,aAAa,IAEZ,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,IAH/B,QAAQ,CAIb,CACH,EAPyC,CAOzC,CAAC,GACA,GACF,IACL,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { type DataDictionary, type DictionaryNode, type DictionaryProps } from './types';
|
|
2
2
|
import DictionaryWithContext from './DictionaryWithContext';
|
|
3
|
-
|
|
4
|
-
import { registerMetadataSchemaApp } from './metadata/registerApp';
|
|
5
|
-
export { type DataDictionary, type DictionaryNode, type DictionaryProps, DictionaryWithContext, MetadataDictionary, registerMetadataSchemaApp, };
|
|
3
|
+
export { type DataDictionary, type DictionaryNode, type DictionaryProps, DictionaryWithContext, };
|
|
6
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/Dictionary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/Dictionary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,qBAAqB,GACtB,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import DictionaryWithContext from './DictionaryWithContext';
|
|
2
|
-
|
|
3
|
-
import { registerMetadataSchemaApp } from './metadata/registerApp';
|
|
4
|
-
export { DictionaryWithContext, MetadataDictionary, registerMetadataSchemaApp, };
|
|
2
|
+
export { DictionaryWithContext, };
|
|
5
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/Dictionary/index.ts"],"names":[],"mappings":"AAKA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/Dictionary/index.ts"],"names":[],"mappings":"AAKA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAIL,qBAAqB,GACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalLoginsStatus.d.ts","sourceRoot":"","sources":["../../../../../src/features/Workspace/ExternalLogins/ExternalLoginsStatus.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ExternalLoginsStatus.d.ts","sourceRoot":"","sources":["../../../../../src/features/Workspace/ExternalLogins/ExternalLoginsStatus.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,oBAAoB,kEAkDzB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -7,7 +7,7 @@ var ExternalLoginsStatus = function () {
|
|
|
7
7
|
return (_jsx("div", { className: "bg-primary h-24 flex justify-center", children: _jsx(Loader, {}) }));
|
|
8
8
|
}
|
|
9
9
|
if (isError) {
|
|
10
|
-
return
|
|
10
|
+
return _jsx("div", { children: "Error occurred while fetching external logins" });
|
|
11
11
|
}
|
|
12
12
|
if (isSuccess) {
|
|
13
13
|
var providersNeedToken = externalProviders.providers.filter(function (option) { return !option.refresh_token_expiration; });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalLoginsStatus.js","sourceRoot":"","sources":["../../../../../src/features/Workspace/ExternalLogins/ExternalLoginsStatus.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"ExternalLoginsStatus.js","sourceRoot":"","sources":["../../../../../src/features/Workspace/ExternalLogins/ExternalLoginsStatus.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAElE,IAAM,oBAAoB,GAAG;IACrB,IAAA,KAKF,yBAAyB,EAAE,EAJvB,iBAAiB,UAAA,EACvB,SAAS,eAAA,EACT,OAAO,aAAA,EACP,SAAS,eACoB,CAAC;IAEhC,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CACL,cAAK,SAAS,EAAC,qCAAqC,YAClD,KAAC,MAAM,KAAG,GACN,CACP,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,0EAAwD,CAAC;IAClE,CAAC;IAED,IAAI,SAAS,EAAE,CAAC;QACd,IAAM,kBAAkB,GAAG,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAC3D,UAAC,MAAM,IAAK,OAAA,CAAC,MAAM,CAAC,wBAAwB,EAAhC,CAAgC,CAC7C,CAAC;QACF,IAAI,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAClC,OAAO,CACL,cAAK,SAAS,EAAC,qCAAqC,YAClD,MAAC,KAAK,eACJ,MAAC,IAAI,oIAEgD,GAAG,IACjD,EACP,KAAC,KAAK,IAAC,GAAG,EAAC,IAAI,YACZ,kBAAkB,CAAC,GAAG,CAAC,UAAC,QAAQ,IAAK,OAAA,CACpC,KAAC,KAAK,IACJ,IAAI,EAAC,IAAI,EACT,OAAO,EAAC,SAAS,EACjB,MAAM,EAAC,IAAI,YAGV,QAAQ,CAAC,IAAI,IAFT,QAAQ,CAAC,IAAI,CAGZ,CACT,EATqC,CASrC,CAAC,GACI,IACF,GACJ,CACP,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotebookCard.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/NotebookCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotebookCard.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/NotebookCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,aAAa,EAEd,MAAM,YAAY,CAAC;AAMpB,UAAU,kBAAkB;IAC1B,IAAI,EAAE,aAAa,CAAC;CACrB;AACD,QAAA,MAAM,YAAY,aAAc,kBAAkB,4CAmEjD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,43 +1,21 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, Card, Group, Stack, Text,
|
|
2
|
+
import { Button, Card, Group, Stack, Text, Transition } from '@mantine/core';
|
|
3
3
|
import { Icon } from '@iconify/react';
|
|
4
4
|
import { selectActiveWorkspaceId, selectRequestedWorkspaceStatus, selectWorkspaceStatusFromService, useCoreSelector, WorkspaceStatus, } from '@gen3/core';
|
|
5
5
|
import { useWorkspaceStatusContext } from './WorkspaceStatusProvider';
|
|
6
|
-
import { PayModelStatus } from './types';
|
|
7
|
-
var LaunchDisabledMessage = {
|
|
8
|
-
NOT_SELECTED: 'A pay model is not selected',
|
|
9
|
-
NOT_REQUIRED: 'A pay model is not required',
|
|
10
|
-
VALID: 'Launch Workspace',
|
|
11
|
-
INVALID: 'A pay model is invalid',
|
|
12
|
-
ERROR: 'An error occurred getting the pay model status',
|
|
13
|
-
OVER_LIMIT: 'You have exceeded your pay model limit',
|
|
14
|
-
GETTING: 'Getting pay model status',
|
|
15
|
-
};
|
|
16
6
|
var COMPUTE_PROPS_LABEL_STYLE = 'text-base-lighter font-medium text-sm opacity-90';
|
|
17
7
|
var NotebookCard = function (_a) {
|
|
18
8
|
var info = _a.info;
|
|
19
|
-
var _b = useWorkspaceStatusContext(), startWorkspace = _b.startWorkspace, stopWorkspace = _b.stopWorkspace,
|
|
9
|
+
var _b = useWorkspaceStatusContext(), startWorkspace = _b.startWorkspace, stopWorkspace = _b.stopWorkspace, isPayModelNeededToLaunch = _b.isPayModelNeededToLaunch;
|
|
20
10
|
var status = useCoreSelector(selectWorkspaceStatusFromService).status;
|
|
21
11
|
var requestedStatus = useCoreSelector(selectRequestedWorkspaceStatus);
|
|
22
12
|
var workspaceId = useCoreSelector(selectActiveWorkspaceId);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
startWorkspace(info.id);
|
|
30
|
-
}, children: "Launch" }) }), _jsx(Transition, { mounted: (info.id === workspaceId && requestedStatus === 'Launch') ||
|
|
31
|
-
status === 'Launching', transition: "fade", duration: 400, timingFunction: "ease", children: function () {
|
|
32
|
-
if (info.id == workspaceId) {
|
|
33
|
-
return (_jsx(Button, { onClick: function () {
|
|
34
|
-
stopWorkspace();
|
|
35
|
-
}, children: "Shutdown" }));
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return _jsx("p", {});
|
|
39
|
-
}
|
|
40
|
-
} })] })] }));
|
|
13
|
+
return (_jsxs(Card, { withBorder: true, radius: "xs", className: "w-64", children: [_jsx(Card.Section, { inheritPadding: true, py: "xs", children: _jsxs(Stack, { align: "center", children: [_jsx(Icon, { height: '48px', icon: 'workspace:jupyter' }), _jsx(Text, { ta: "center", className: "font-header", size: "md", fw: 500, children: info.name })] }) }), _jsx(Card.Section, { inheritPadding: true, py: "xs", children: _jsxs(Group, { justify: "center", children: [_jsxs(Text, { c: "base-contrast.4", className: COMPUTE_PROPS_LABEL_STYLE, children: ["CPU Limit: ", info.cpuLimit] }), _jsxs(Text, { c: "base-contrast.4", className: COMPUTE_PROPS_LABEL_STYLE, size: "xs", children: ["Memory: ", info.memoryLimit] })] }) }), _jsx("div", { className: "flex mx-8 justify-center border-1 border-base" }), _jsxs(Group, { className: "mt-2 p-2", justify: "center", children: [_jsx(Button, { loading: info.id === workspaceId && requestedStatus === 'Launching', disabled: status !== WorkspaceStatus.NotFound || isPayModelNeededToLaunch, onClick: function () {
|
|
14
|
+
startWorkspace(info.id);
|
|
15
|
+
}, children: "Launch" }), _jsx(Transition, { mounted: (info.id === workspaceId && requestedStatus === 'Launching') ||
|
|
16
|
+
status === 'Launching', transition: "fade", duration: 400, timingFunction: "ease", children: function () { return (_jsx(Button, { onClick: function () {
|
|
17
|
+
stopWorkspace();
|
|
18
|
+
}, children: "Shutdown" })); } })] })] }));
|
|
41
19
|
};
|
|
42
20
|
export default NotebookCard;
|
|
43
21
|
//# sourceMappingURL=NotebookCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotebookCard.js","sourceRoot":"","sources":["../../../../src/features/Workspace/NotebookCard.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"NotebookCard.js","sourceRoot":"","sources":["../../../../src/features/Workspace/NotebookCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,8BAA8B,EAC9B,gCAAgC,EAChC,eAAe,EAEf,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,IAAM,yBAAyB,GAC7B,kDAAkD,CAAC;AAKrD,IAAM,YAAY,GAAG,UAAC,EAA4B;QAA1B,IAAI,UAAA;IACpB,IAAA,KACJ,yBAAyB,EAAE,EADrB,cAAc,oBAAA,EAAE,aAAa,mBAAA,EAAE,wBAAwB,8BAClC,CAAC;IAEtB,IAAA,MAAM,GAAK,eAAe,CAAC,gCAAgC,CAAC,OAAtD,CAAuD;IACrE,IAAM,eAAe,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;IACxE,IAAM,WAAW,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;IAE7D,OAAO,CACL,MAAC,IAAI,IAAC,UAAU,QAAC,MAAM,EAAC,IAAI,EAAC,SAAS,EAAC,MAAM,aAC3C,KAAC,IAAI,CAAC,OAAO,IAAC,cAAc,QAAC,EAAE,EAAC,IAAI,YAClC,MAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,aACnB,KAAC,IAAI,IAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAI,EACnD,KAAC,IAAI,IAAC,EA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-
{"version":3,"file":"PaymentPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/Workspace/PaymentPanel/PaymentPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaymentPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/Workspace/PaymentPanel/PaymentPanel.tsx"],"names":[],"mappings":"AAwDA,QAAA,MAAM,YAAY,+CAsJjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { Accordion,
|
|
3
|
+
import { Accordion, Group, Loader, Select, Text, } from '@mantine/core';
|
|
4
4
|
import { useGetWorkspacePayModelsQuery, useSetCurrentPayModelMutation, } from '@gen3/core';
|
|
5
5
|
import { useDeepCompareMemo, useDeepCompareCallback } from 'use-deep-compare';
|
|
6
6
|
var LIMITS_LABEL_STYLE = 'text-base-lighter font-medium text-sm opacity-90';
|
|
@@ -14,7 +14,7 @@ var isNoPayModelError = function (error) {
|
|
|
14
14
|
error.originalStatus === 404);
|
|
15
15
|
};
|
|
16
16
|
var NoPayModel = function () {
|
|
17
|
-
return (_jsxs(Group, { className: "p-2 border-1 border-l-0 border-r-0 border-base-lighter w-full h-16", justify: "space-between", children: [_jsx(Text, { className: "pl-4", size: "md", classNames: { root: 'font-heading
|
|
17
|
+
return (_jsxs(Group, { className: "p-2 border-1 border-l-0 border-r-0 border-base-lighter w-full h-16", justify: "space-between", children: [_jsx(Text, { className: "pl-4", size: "md", classNames: { root: 'font-heading' }, children: "No pay model defined" }), _jsx(StatusAndControls, {})] }));
|
|
18
18
|
};
|
|
19
19
|
var PaymentPanel = function () {
|
|
20
20
|
var _a = useGetWorkspacePayModelsQuery(), data = _a.data, isLoading = _a.isLoading, isFetching = _a.isFetching, isError = _a.isError, error = _a.error;
|
|
@@ -65,7 +65,7 @@ var PaymentPanel = function () {
|
|
|
65
65
|
return _jsx(NoPayModel, {});
|
|
66
66
|
}
|
|
67
67
|
else
|
|
68
|
-
return
|
|
68
|
+
return _jsx(ErrorCard, { message: "Unable to get Payment information" });
|
|
69
69
|
}
|
|
70
70
|
return (_jsx("div", { children: _jsx(Accordion, { chevronPosition: "left", children: _jsxs(Accordion.Item, { value: "accountInformation", children: [_jsx(Accordion.Control, { children: _jsxs(Group, { justify: "space-between", children: ["Account Information", _jsxs(Group, { className: "font-heading text-base-contrast", children: [_jsx(Text, { fw: 600, children: workspaceName }), _jsxs("div", { className: "flex items-center", children: [_jsx(Text, { fw: 500, size: "sm", className: "mr-1", children: "Total Usage:" }), _jsx(Text, { fw: 500, size: "sm", children: PaymentNumberToString(totalUsage) })] }), _jsxs("div", { className: "flex items-center pr-1", children: [_jsx(Text, { fw: 500, size: "sm", className: "mr-1", children: "Hard Limit:" }), _jsx(Text, { fw: 500, size: "sm", children: PaymentNumberToString(hardLimit) })] })] })] }) }), _jsx(Accordion.Panel, { children: _jsxs("div", { className: "grid grid-cols-3 p-4", children: [_jsxs("div", { className: "flex flex-col border-1 border-gray p-2 mr-4", children: [_jsxs("div", { className: "flex justify-between border-b-1 border-gray mb-2 w-full py-2", children: [_jsx("div", { className: "ml-2 text-xs", children: "Account" }), _jsx("div", { className: "mr-2 text-xs", children: "Workspace Account Manager" })] }), _jsx("div", { className: "text-center", children: _jsx("div", { children: _jsx(Select, { placeholder: "Select Workspace", renderOption: PayModelSelectItem, data: usersPayModels, onChange: function (id) {
|
|
71
71
|
if (id)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentPanel.js","sourceRoot":"","sources":["../../../../../src/features/Workspace/PaymentPanel/PaymentPanel.tsx"],"names":[],"mappings":";AAAA,OAAc,
|
|
1
|
+
{"version":3,"file":"PaymentPanel.js","sourceRoot":"","sources":["../../../../../src/features/Workspace/PaymentPanel/PaymentPanel.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAyB,QAAQ,EAA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AC,oDAAoD,aACjE,cAAK,SAAS,EAAC,yDAAyD,qCAElE,EACN,KAAC,IAAI,cAAE,qBAAqB,CAAC,SAAS,CAAC,GAAQ,IAC3C,IACF,GACU,IACH,GACP,GACR,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusAndControls.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/StatusAndControls.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StatusAndControls.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/StatusAndControls.tsx"],"names":[],"mappings":"AAqBA,QAAA,MAAM,iBAAiB,+CAoEtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, Group, Text, Tooltip, Transition } from '@mantine/core';
|
|
2
|
+
import { Button, Group, Text, Tooltip, Transition, } from '@mantine/core';
|
|
3
3
|
import { modals } from '@mantine/modals';
|
|
4
4
|
import { FaRegStopCircle as StopIcon } from 'react-icons/fa';
|
|
5
5
|
import { BsArrowsFullscreen as FullscreenIcon } from 'react-icons/bs';
|
|
@@ -18,7 +18,7 @@ var StatusAndControls = function () {
|
|
|
18
18
|
};
|
|
19
19
|
var workspaceStatus = useCoreSelector(selectActiveWorkspaceStatus);
|
|
20
20
|
var requestedStatus = useCoreSelector(selectRequestedWorkspaceStatus);
|
|
21
|
-
return (_jsx(Transition, { mounted: isWorkspaceRunningOrStopping(workspaceStatus), transition: "fade", duration: 1200, timingFunction: "ease", children: function (styles) { return (_jsx("div", { style: styles, children: _jsxs(Group, { children: [_jsx(Icon, { height: '2.0rem', icon: 'workspace:jupyter' }), _jsx(Tooltip, { label: "Stop Workspace", children: _jsx(Button, { loading: requestedStatus === '
|
|
21
|
+
return (_jsx(Transition, { mounted: isWorkspaceRunningOrStopping(workspaceStatus), transition: "fade", duration: 1200, timingFunction: "ease", children: function (styles) { return (_jsx("div", { style: styles, children: _jsxs(Group, { children: [_jsx(Icon, { height: '2.0rem', icon: 'workspace:jupyter' }), _jsx(Tooltip, { label: "Stop Workspace", children: _jsx(Button, { loading: requestedStatus === 'Terminating', size: "md", color: "accent.5", variant: "default", onClick: function () {
|
|
22
22
|
openModal();
|
|
23
23
|
}, "aria-label": "Stop Workspace", leftSection: _jsx(StopIcon, { color: "utility.2", size: "1rem", className: "text-accent-warm" }), children: "Stop Workspace" }) }), _jsx(Tooltip, { label: "Toggle fullscreen mode", children: _jsx(Button, { color: "utility.2", size: "md", variant: "default", onClick: function () {
|
|
24
24
|
toggleFullscreen();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusAndControls.js","sourceRoot":"","sources":["../../../../src/features/Workspace/StatusAndControls.tsx"],"names":[],"mappings":";AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"StatusAndControls.js","sourceRoot":"","sources":["../../../../src/features/Workspace/StatusAndControls.tsx"],"names":[],"mappings":";AACA,OAAO,EAEL,MAAM,EACN,KAAK,EACL,IAAI,EACJ,OAAO,EACP,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,eAAe,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,IAAI,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,IAAM,iBAAiB,GAAG;IAClB,IAAA,KACJ,yBAAyB,EAAE,EADrB,aAAa,mBAAA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IAAI,EACT,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE;gCACP,gBAAgB,EAAE,CAAC;4BACrB,CAAC,gBAEC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,EAEtD,WAAW,EAAE,KAAC,cAAc,IAAC,SAAS,EAAC,kBAAkB,GAAG,YAE3D,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,GAC9C,GACD,IACJ,GACJ,CACP,EA3CY,CA2CZ,GACU,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workspace.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/Workspace.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Workspace.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/Workspace.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAW1C,UAAU,cAAc;IACtB,MAAM,EAAE,eAAe,CAAC;CACzB;AAGD,QAAA,MAAM,SAAS,eAAgB,cAAc,4CAY5C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -3,6 +3,7 @@ import ProtectedContent from '../../components/Protected/ProtectedContent';
|
|
|
3
3
|
import WorkspaceProvider from './WorkspaceProvider';
|
|
4
4
|
import WorkspaceStatusProvider from './WorkspaceStatusProvider';
|
|
5
5
|
import WorkspaceNotebookPanelWithControls from './WorkspaceNotebookPanelWithControls';
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6
7
|
var Workspace = function (_a) {
|
|
7
8
|
var config = _a.config;
|
|
8
9
|
return (_jsx(ProtectedContent, { children: _jsx(WorkspaceProvider, { config: config, children: _jsx(WorkspaceStatusProvider, { children: _jsx("div", { className: "flex flex-col grow w-full relative", children: _jsx(WorkspaceNotebookPanelWithControls, {}) }) }) }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workspace.js","sourceRoot":"","sources":["../../../../src/features/Workspace/Workspace.tsx"],"names":[],"mappings":";AAEA,OAAO,gBAAgB,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"Workspace.js","sourceRoot":"","sources":["../../../../src/features/Workspace/Workspace.tsx"],"names":[],"mappings":";AAEA,OAAO,gBAAgB,MAAM,6CAA6C,CAAC;AAG3E,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAIhE,OAAO,kCAAkC,MAAM,sCAAsC,CAAC;AAMtF,6DAA6D;AAC7D,IAAM,SAAS,GAAG,UAAC,EAA0B;QAAxB,MAAM,YAAA;IACzB,OAAO,CACL,KAAC,gBAAgB,cACf,KAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,YAC/B,KAAC,uBAAuB,cACtB,cAAK,SAAS,EAAC,oCAAoC,YACjD,KAAC,kCAAkC,KAAG,GAClC,GACkB,GACR,GACH,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceNotebookPanelWithControls.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceNotebookPanelWithControls.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkspaceNotebookPanelWithControls.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceNotebookPanelWithControls.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,kCAAkC,+CAkBvC,CAAC;AAEF,eAAe,kCAAkC,CAAC"}
|
|
@@ -5,14 +5,12 @@ import { useWorkspaceStatusContext } from './WorkspaceStatusProvider';
|
|
|
5
5
|
import ExternalLoginsStatus from './ExternalLogins/ExternalLoginsStatus';
|
|
6
6
|
import PaymentPanel from './PaymentPanel/PaymentPanel';
|
|
7
7
|
import WorkspaceLaunchProgress from './WorkspaceLaunchProgress';
|
|
8
|
-
import { useWorkspaceContext } from './WorkspaceProvider';
|
|
9
8
|
var FULLSCREEN_STYLE = 'fixed top-0 left-0 w-full h-full flex flex-col flex-grow content-center items-center bg-base-lightest';
|
|
10
9
|
var WorkspaceNotebookPanelWithControls = function () {
|
|
11
10
|
var isFullscreen = useWorkspaceStatusContext().isFullscreen;
|
|
12
|
-
var requirePayModel = useWorkspaceContext().requirePayModel;
|
|
13
11
|
return (_jsxs("div", { className: isFullscreen
|
|
14
12
|
? FULLSCREEN_STYLE
|
|
15
|
-
: 'flex flex-col grow w-full h-full relative', children: [_jsx(ExternalLoginsStatus, {}),
|
|
13
|
+
: 'flex flex-col grow w-full h-full relative', children: [_jsx(ExternalLoginsStatus, {}), _jsx(PaymentPanel, {}), _jsx(WorkspaceLaunchProgress, {}), _jsx(WorkspacePanel, {}), _jsx(WorkspaceNotebook, {})] }));
|
|
16
14
|
};
|
|
17
15
|
export default WorkspaceNotebookPanelWithControls;
|
|
18
16
|
//# sourceMappingURL=WorkspaceNotebookPanelWithControls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceNotebookPanelWithControls.js","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceNotebookPanelWithControls.tsx"],"names":[],"mappings":";AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"WorkspaceNotebookPanelWithControls.js","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceNotebookPanelWithControls.tsx"],"names":[],"mappings":";AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAEhE,IAAM,gBAAgB,GACpB,uGAAuG,CAAC;AAE1G,IAAM,kCAAkC,GAAG;IACjC,IAAA,YAAY,GAAK,yBAAyB,EAAE,aAAhC,CAAiC;IAErD,OAAO,CACL,eACE,SAAS,EACP,YAAY;YACV,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,2CAA2C,aAGjD,KAAC,oBAAoB,KAAG,EACxB,KAAC,YAAY,KAAG,EAChB,KAAC,uBAAuB,KAAG,EAC3B,KAAC,cAAc,KAAG,EAClB,KAAC,iBAAiB,KAAG,IACjB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kCAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspacePanel.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspacePanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WorkspacePanel.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspacePanel.tsx"],"names":[],"mappings":"AAaA,QAAA,MAAM,cAAc,+CAyCnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Grid, rem, Transition } from '@mantine/core';
|
|
3
|
+
import { selectActiveWorkspaceStatus, useCoreSelector, useGetWorkspaceOptionsQuery, WorkspaceStatus, } from '@gen3/core';
|
|
4
4
|
import { ErrorCard } from '../../components/MessageCards';
|
|
5
5
|
import NotebookCard from './NotebookCard';
|
|
6
6
|
var WorkspacePanel = function () {
|
|
7
|
-
var _a = useGetWorkspaceOptionsQuery(), data = _a.data, isLoading = _a.isLoading, isError = _a.isError;
|
|
8
|
-
var
|
|
7
|
+
var _a = useGetWorkspaceOptionsQuery(), data = _a.data, isLoading = _a.isLoading, isError = _a.isError, isSuccess = _a.isSuccess;
|
|
8
|
+
var workspaceStatus = useCoreSelector(selectActiveWorkspaceStatus);
|
|
9
9
|
if (isError) {
|
|
10
|
-
return
|
|
10
|
+
return _jsx(ErrorCard, { message: "Error loading workspace definitions" });
|
|
11
11
|
}
|
|
12
|
-
var workspaceStatus = workspaceStatusData === null || workspaceStatusData === void 0 ? void 0 : workspaceStatusData.status;
|
|
13
12
|
return (_jsx(_Fragment, { children: _jsx(Transition, { mounted: workspaceStatus === WorkspaceStatus.NotFound ||
|
|
14
|
-
workspaceStatus === WorkspaceStatus.Launching, transition: "scale-y", duration: 600, exitDuration: 600, timingFunction: "ease", children: function (styles) { return (
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
workspaceStatus === WorkspaceStatus.Launching, transition: "scale-y", duration: 600, exitDuration: 600, timingFunction: "ease", children: function (styles) { return (_jsx("div", { className: "px-2 mt-4", style: styles, children: _jsx(Grid, { justify: "center", align: "stretch", gutter: "md", children: data === null || data === void 0 ? void 0 : data.map(function (card) {
|
|
14
|
+
return (_jsx(Grid.Col, { span: "content", style: { minHeight: rem(120) }, children: _jsx(NotebookCard, { info: card }) }, card.id));
|
|
15
|
+
}) }) })); } }) }));
|
|
17
16
|
};
|
|
18
17
|
export default WorkspacePanel;
|
|
19
18
|
//# sourceMappingURL=WorkspacePanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspacePanel.js","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspacePanel.tsx"],"names":[],"mappings":";AACA,OA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CAAC,GAAG,CAAC,EAAE,YAE9B,KAAC,YAAY,IAAC,IAAI,EAAE,IAAI,GAAI,IAJvB,IAAI,CAAC,EAAE,CAKH,CACZ,CAAC;oBACJ,CAAC,CAAC,GACG,GACH,CACP,EAhBY,CAgBZ,GACU,GACZ,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceProvider.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"WorkspaceProvider.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAyB1C,eAAO,MAAM,mBAAmB,uBAM/B,CAAC;AAEF,QAAA,MAAM,iBAAiB,0BAGpB;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;CACzB,4CAOA,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -12,7 +12,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import React, { createContext } from 'react';
|
|
14
14
|
var WorkspaceConfigDefaults = {
|
|
15
|
-
requirePayModel: true,
|
|
16
15
|
launchStepIndicatorConfig: {
|
|
17
16
|
steps: [
|
|
18
17
|
{ label: 'Requesting', description: 'requesting workspace resources' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceProvider.js","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAGxD,IAAM,uBAAuB,GAAoB;IAC/C,
|
|
1
|
+
{"version":3,"file":"WorkspaceProvider.js","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAGxD,IAAM,uBAAuB,GAAoB;IAC/C,yBAAyB,EAAE;QACzB,KAAK,EAAE;YACL,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,gCAAgC,EAAE;YACtE,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,8BAA8B,EAAE;YACtE,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,mBAAmB,EAAE;YAC1D;gBACE,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,sBAAsB;aACpC;YACD;gBACE,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,qCAAqC;aACnD;YACD,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE;SACtD;KACF;CACF,CAAC;AAEF,IAAM,gBAAgB,GAAG,aAAa,CACpC,uBAAuB,CACxB,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAG;IACjC,IAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IACnD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,KAAK,CAAC,wDAAwD,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,IAAM,iBAAiB,GAAG,UAAC,EAM1B;QALC,QAAQ,cAAA,EACR,MAAM,YAAA;IAKN,IAAM,YAAY,yBAAQ,uBAAuB,GAAK,MAAM,CAAE,CAAC;IAC/D,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,YAC3C,QAAQ,GACiB,CAC7B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { PayModelStatus } from './types';
|
|
3
2
|
interface WorkspaceStatusContextValue {
|
|
4
3
|
isFullscreen: boolean;
|
|
5
4
|
startWorkspace: (id: string) => void;
|
|
@@ -8,7 +7,7 @@ interface WorkspaceStatusContextValue {
|
|
|
8
7
|
statusError?: boolean;
|
|
9
8
|
workspaceLaunchIsLoading: boolean;
|
|
10
9
|
terminateIsLoading: boolean;
|
|
11
|
-
|
|
10
|
+
isPayModelNeededToLaunch?: boolean;
|
|
12
11
|
}
|
|
13
12
|
export declare const useWorkspaceStatusContext: () => WorkspaceStatusContextValue;
|
|
14
13
|
declare const WorkspaceStatusProvider: ({ children }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceStatusProvider.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceStatusProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,
|
|
1
|
+
{"version":3,"file":"WorkspaceStatusProvider.d.ts","sourceRoot":"","sources":["../../../../src/features/Workspace/WorkspaceStatusProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAoC,SAAS,EAAE,MAAM,OAAO,CAAC;AA6B3E,UAAU,2BAA2B;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wBAAwB,EAAE,OAAO,CAAC;IAClC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAWD,eAAO,MAAM,yBAAyB,mCAQrC,CAAC;AAEF,QAAA,MAAM,uBAAuB,iBAAkB;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,4CAgHrE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|