@gen3/frontend 0.11.34 → 0.11.35
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/dts/components/Providers/Gen3Provider.d.ts +7 -7
- package/dist/dts/components/facets/utils.d.ts +2 -2
- package/dist/dts/components/facets/utils.d.ts.map +1 -1
- package/dist/dts/components/facets/utils.js +11 -0
- package/dist/dts/components/facets/utils.js.map +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +6 -6
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +20 -15
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/DownloadsPanel.d.ts +2 -1
- package/dist/dts/features/CohortBuilder/DownloadsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/DownloadsPanel.js +2 -2
- package/dist/dts/features/CohortBuilder/DownloadsPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.js +13 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ArrayCellRenderer.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js +24 -21
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTable.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTableCellRenderers.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTableCellRenderers.js +2 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/ExplorerTableCellRenderers.js.map +1 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/ExplorerTable/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Repository/FileFacetPanel.d.ts +2 -1
- package/dist/dts/features/CohortBuilder/Repository/FileFacetPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Repository/FileFacetPanel.js +9 -7
- package/dist/dts/features/CohortBuilder/Repository/FileFacetPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Repository/RepositoryPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Repository/RepositoryPanel.js +6 -5
- package/dist/dts/features/CohortBuilder/Repository/RepositoryPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Repository/hooks.d.ts +1 -1
- package/dist/dts/features/CohortBuilder/Repository/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/Repository/hooks.js +15 -12
- package/dist/dts/features/CohortBuilder/Repository/hooks.js.map +1 -1
- package/dist/dts/features/CohortBuilder/Repository/types.d.ts +3 -0
- package/dist/dts/features/CohortBuilder/Repository/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.d.ts +2 -1
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.js +13 -10
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortBuilder/types.d.ts +1 -0
- package/dist/dts/features/CohortBuilder/types.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/types.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts +1 -2
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js +5 -3
- package/dist/dts/features/CohortDiscovery/ChartsAndFacetsPanel.js.map +1 -1
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.d.ts.map +1 -1
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js +5 -3
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js.map +1 -1
- package/dist/index/cjs/QueryPanel-DYFafkCZ.js +24 -0
- package/dist/index/cjs/QueryPanel-DYFafkCZ.js.map +1 -0
- package/dist/index/cjs/index-CpFlz2uI.js +28177 -0
- package/dist/index/cjs/index-CpFlz2uI.js.map +1 -0
- package/dist/index/cjs/index.js +2 -1
- package/dist/index/cjs/index.js.map +1 -1
- package/dist/index/esm/QueryPanel-D4p49W-8.js +22 -0
- package/dist/index/esm/QueryPanel-D4p49W-8.js.map +1 -0
- package/dist/index/esm/index-CDTiHZsz.js +27952 -0
- package/dist/index/esm/index-CDTiHZsz.js.map +1 -0
- package/dist/index/esm/index.js +1 -1
- package/dist/index.d.ts +12 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ import { Grid } from '@mantine/core';
|
|
|
3
3
|
import { extractEnumFilterValue, fieldNameToTitle, } from '@gen3/core';
|
|
4
4
|
import { useAppSelector } from './appApi';
|
|
5
5
|
import { useDeepCompareCallback, useDeepCompareMemo } from 'use-deep-compare';
|
|
6
|
-
import { extractRangeValues, processBucketData, processRangeData, } from '../../components/facets';
|
|
6
|
+
import { extractRangeValues, getByPath, processBucketData, processRangeData, } from '../../components/facets';
|
|
7
7
|
import { partial } from 'lodash';
|
|
8
8
|
import { createFacetPanel } from './FilterPanels/createFacetPanel';
|
|
9
9
|
import { selectCurrentCohortIndexFilters } from './CohortManagment/CohortManagerSelectors';
|
|
@@ -27,8 +27,9 @@ var ChartsAndFacetsPanel = function (_a) {
|
|
|
27
27
|
return selectCurrentCohortIndexFilters(state, index);
|
|
28
28
|
});
|
|
29
29
|
var getEnumFacetData = useDeepCompareCallback(function (field) {
|
|
30
|
+
var dataRoot = getByPath(data, field);
|
|
30
31
|
return {
|
|
31
|
-
data: processBucketData(
|
|
32
|
+
data: processBucketData(dataRoot),
|
|
32
33
|
enumFilters: field in cohortFilters.root
|
|
33
34
|
? extractEnumFilterValue(cohortFilters.root[field])
|
|
34
35
|
: undefined,
|
|
@@ -38,8 +39,9 @@ var ChartsAndFacetsPanel = function (_a) {
|
|
|
38
39
|
};
|
|
39
40
|
}, [cohortFilters, cohortFilters.root, data]);
|
|
40
41
|
var getRangeFacetData = useDeepCompareCallback(function (field) {
|
|
42
|
+
var dataRoot = getByPath(data, field);
|
|
41
43
|
return {
|
|
42
|
-
data: processRangeData(
|
|
44
|
+
data: processRangeData(dataRoot),
|
|
43
45
|
filters: extractRangeValues(cohortFilters.root[field]),
|
|
44
46
|
isSuccess: isSuccess,
|
|
45
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartsAndFacetsPanel.js","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/ChartsAndFacetsPanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAEL,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ChartsAndFacetsPanel.js","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/ChartsAndFacetsPanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAEL,sBAAsB,EAEtB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAY,cAAc,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,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AE5C,IAAM,iBAAiB,GAAG,EAAE,CAAC;IAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC;QACpC,iBAAiB,CAAC,IAAI,CACpB,cAA8B,SAAS,EAAC,WAAW,IAAzC,sBAAe,CAAC,CAAE,CAA0B,CACvD,CAAC;IACJ,CAAC;IAED,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,EAAC,0EAA0E,aACvF,MAAM,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,KAAK,IAAK,OAAA,CAC5B,KAAC,IAAI,CAAC,GAAG,IACP,IAAI,EAAE,OAAO,YAGZ,KAAK,IAFD,UAAG,KAAK,qBAAW,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,SAAM,CAGxC,CACZ,EAP6B,CAO7B,CAAC,EACD,iBAAiB,CAAC,GAAG,CAAC,UAAC,KAAK,EAAE,KAAK,IAAK,OAAA,CACvC,KAAC,IAAI,CAAC,GAAG,IAAC,IAAI,EAAE,OAAO,YACpB,KAAK,IADsB,UAAG,KAAK,4BAAyB,CAEpD,CACZ,EAJwC,CAIxC,CAAC,IACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabbedCohortBuilderPage.d.ts","sourceRoot":"","sources":["../../../../src/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"TabbedCohortBuilderPage.d.ts","sourceRoot":"","sources":["../../../../src/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAoDvD,QAAA,MAAM,uBAAuB,GAAI,8CAI9B,4BAA4B,KAAG,GAAG,CAAC,OA6BrC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -19,8 +19,8 @@ import CountsValue from '../../components/counts/CountsValue';
|
|
|
19
19
|
import { Accessibility, selectCurrentCohortId, selectIndexFilters, useCoreSelector, useLazyGetCountsQuery, } from '@gen3/core';
|
|
20
20
|
import { useDeepCompareEffect } from 'use-deep-compare';
|
|
21
21
|
var CountsPanel = function (_a) {
|
|
22
|
-
var index = _a.index, _b = _a.accessibility, accessibility = _b === void 0 ? Accessibility.ALL : _b;
|
|
23
|
-
var
|
|
22
|
+
var index = _a.index, _b = _a.accessibility, accessibility = _b === void 0 ? Accessibility.ALL : _b, _c = _a.indexPrefix, indexPrefix = _c === void 0 ? '' : _c;
|
|
23
|
+
var _d = useLazyGetCountsQuery(), getCounts = _d[0], _e = _d[1], counts = _e.data, isFetching = _e.isFetching, isError = _e.isError, isSuccess = _e.isSuccess;
|
|
24
24
|
var currentCohortId = useCoreSelector(function (state) {
|
|
25
25
|
return selectCurrentCohortId(state);
|
|
26
26
|
});
|
|
@@ -33,17 +33,19 @@ var CountsPanel = function (_a) {
|
|
|
33
33
|
filters: cohortFilters,
|
|
34
34
|
accessibility: accessibility,
|
|
35
35
|
queryId: currentCohortId,
|
|
36
|
+
indexPrefix: indexPrefix,
|
|
36
37
|
});
|
|
37
38
|
}, [cohortFilters, currentCohortId, accessibility]);
|
|
38
39
|
return (_jsx(CountsValue, { label: "Case", counts: counts, isFetching: isFetching, isError: isError }));
|
|
39
40
|
};
|
|
40
41
|
var TabbedCohortBuilderPage = function (_a) {
|
|
41
42
|
var headerProps = _a.headerProps, footerProps = _a.footerProps, configuration = _a.configuration;
|
|
43
|
+
console.log(configuration);
|
|
42
44
|
return (_jsx(NavPageLayout, { headerProps: headerProps, footerProps: footerProps, headerMetadata: {
|
|
43
45
|
title: 'Gen3 Tabbed Cohort Builder Page',
|
|
44
46
|
content: 'Tabbed Cohort Builder Page',
|
|
45
47
|
key: 'gen3-tabbed-cohort-builder-page',
|
|
46
|
-
}, children: _jsxs(Stack, { align: "stretch", classNames: { root: 'w-full' }, children: [_jsxs("div", { className: "w-full flex-col flex gap-4 fixed bg-white z-10", children: [_jsx(CohortManager, { rightPanel: _jsx(CountsPanel, { index: configuration.index }) }), _jsx(QueryExpression, { index: configuration.index })] }), _jsx("div", { className: "w-full mt-80 mr-4", children: _jsx(TabbedCohortBuilder, __assign({}, configuration)) })] }) }));
|
|
48
|
+
}, children: _jsxs(Stack, { align: "stretch", classNames: { root: 'w-full' }, children: [_jsxs("div", { className: "w-full flex-col flex gap-4 fixed bg-white z-10", children: [_jsx(CohortManager, { rightPanel: _jsx(CountsPanel, { index: configuration.index, indexPrefix: configuration === null || configuration === void 0 ? void 0 : configuration.indexPrefix }) }), _jsx(QueryExpression, { index: configuration.index })] }), _jsx("div", { className: "w-full mt-80 mr-4", children: _jsx(TabbedCohortBuilder, __assign({}, configuration)) })] }) }));
|
|
47
49
|
};
|
|
48
50
|
export default TabbedCohortBuilderPage;
|
|
49
51
|
//# sourceMappingURL=TabbedCohortBuilderPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabbedCohortBuilderPage.js","sourceRoot":"","sources":["../../../../src/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,mBAAmB,MAAM,kDAAkD,CAAC;AACnF,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,eAAe,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EACL,aAAa,EAEb,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"TabbedCohortBuilderPage.js","sourceRoot":"","sources":["../../../../src/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,mBAAmB,MAAM,kDAAkD,CAAC;AACnF,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,eAAe,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EACL,aAAa,EAEb,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAQxD,IAAM,WAAW,GAA+B,UAAC,EAI9B;QAHjB,KAAK,WAAA,EACL,qBAAiC,EAAjC,aAAa,mBAAG,aAAa,CAAC,GAAG,KAAA,EACjC,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA;IAEV,IAAA,KACJ,qBAAqB,EAAE,EADlB,SAAS,QAAA,EAAE,UAAgD,EAAxC,MAAM,UAAA,EAAE,UAAU,gBAAA,EAAE,OAAO,aAAA,EAAE,SAAS,eACvC,CAAC;IAC1B,IAAM,eAAe,GAAG,eAAe,CAAC,UAAC,KAAgB;QACvD,OAAA,qBAAqB,CAAC,KAAK,CAAC;IAA5B,CAA4B,CAC7B,CAAC;IACF,IAAM,aAAa,GAAG,eAAe,CAAC,UAAC,KAAgB;QACrD,OAAA,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC;IAAhC,CAAgC,CACjC,CAAC;IAEF,oBAAoB,CAAC;QACnB,SAAS,CAAC;YACR,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,aAAa;YACtB,aAAa,EAAE,aAAa;YAC5B,OAAO,EAAE,eAAe;YACx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core = require('@mantine/core');
|
|
7
|
+
|
|
8
|
+
// Wrapper function for displaying loading element before GqlQueryEditor renders
|
|
9
|
+
const GqlQueryEditor = dynamic(()=>Promise.resolve().then(function () { return require('./index-CpFlz2uI.js'); }).then(function (n) { return n.GqlQueryEditor$1; }), {
|
|
10
|
+
loading: ()=>/*#__PURE__*/ jsxRuntime.jsx(core.LoadingOverlay, {
|
|
11
|
+
visible: true
|
|
12
|
+
}),
|
|
13
|
+
ssr: false
|
|
14
|
+
});
|
|
15
|
+
const QueryPanel = ({ graphQLEndpoint })=>{
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
return /*#__PURE__*/ jsxRuntime.jsx(GqlQueryEditor, {
|
|
19
|
+
graphQLEndpoint: graphQLEndpoint
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.default = QueryPanel;
|
|
24
|
+
//# sourceMappingURL=QueryPanel-DYFafkCZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryPanel-DYFafkCZ.js","sources":["../../../src/features/Query/QueryPanel.tsx"],"sourcesContent":["import dynamic from 'next/dynamic';\nimport React from 'react';\nimport { LoadingOverlay } from '@mantine/core';\n\n// Wrapper function for displaying loading element before GqlQueryEditor renders\nconst GqlQueryEditor = dynamic(() => import('./GqlQueryEditor'), {\n loading: () => <LoadingOverlay visible={true} />,\n ssr: false,\n});\n\ninterface QueryPanelProps {\n graphQLEndpoint?: string;\n title?: string;\n}\n\nconst QueryPanel = ({\n graphQLEndpoint,\n}: QueryPanelProps) => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return <GqlQueryEditor graphQLEndpoint={graphQLEndpoint} />;\n};\n\nexport default QueryPanel;\n"],"names":["GqlQueryEditor","dynamic","loading","_jsx","LoadingOverlay","visible","ssr","QueryPanel","graphQLEndpoint"],"mappings":";;;;;;;AAIA;AACA,MAAMA,cAAAA,GAAiBC,OAAAA,CAAQ,IAAM,oDAAO,qBAAA,uDAAA,EAAqB;AAC/DC,IAAAA,OAAAA,EAAS,kBAAMC,cAAA,CAACC,mBAAAA,EAAAA;YAAeC,OAAAA,EAAS;;IACxCC,GAAAA,EAAK;AACP,CAAA,CAAA;AAOA,MAAMC,UAAAA,GAAa,CAAC,EAClBC,eAAe,EACC,GAAA;;;AAGhB,IAAA,qBAAOL,cAAA,CAACH,cAAAA,EAAAA;QAAeQ,eAAAA,EAAiBA;;AAC1C;;;;"}
|