@gen3/frontend 0.11.29 → 0.11.30
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 +69 -24
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
- package/dist/dts/components/Login/LoginPanel.js +1 -2
- package/dist/dts/components/Login/LoginPanel.js.map +1 -1
- package/dist/dts/components/Providers/Gen3Provider.d.ts +1 -1
- package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +2 -2
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts +3 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js +4 -4
- package/dist/dts/features/CohortBuilder/CohortManager/CohortManager.js.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/CohortPanel.js +9 -2
- package/dist/dts/features/CohortBuilder/CohortPanel.js.map +1 -1
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.d.ts.map +1 -1
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.js +7 -2
- package/dist/dts/features/CohortBuilder/TabbedCohortBuilder.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js +2 -2
- package/dist/dts/features/CohortDiscovery/CohortManagment/CohortManager.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts +2 -2
- package/dist/dts/features/CohortDiscovery/Requests/hooks.d.ts.map +1 -1
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js +1 -0
- package/dist/dts/features/CohortDiscovery/Requests/hooks.js.map +1 -1
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js +2 -2
- package/dist/dts/features/CohortDiscovery/SavedCohorts/SavedCohortsTable.js.map +1 -1
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.d.ts.map +1 -1
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js +20 -1
- package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js.map +1 -1
- package/dist/esm/index.js +70 -26
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.d.ts +0 -3
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.js +0 -46
- package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.js.map +0 -1
- package/dist/dts/features/CohortBuilder/Repository/Repository.d.ts +0 -4
- package/dist/dts/features/CohortBuilder/Repository/Repository.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/Repository/Repository.js +0 -8
- package/dist/dts/features/CohortBuilder/Repository/Repository.js.map +0 -1
- package/dist/dts/features/CohortBuilder/Repository/index.d.ts +0 -4
- package/dist/dts/features/CohortBuilder/Repository/index.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/Repository/index.js +0 -3
- package/dist/dts/features/CohortBuilder/Repository/index.js.map +0 -1
- package/dist/dts/features/CohortBuilder/Repository/types.d.ts +0 -12
- package/dist/dts/features/CohortBuilder/Repository/types.d.ts.map +0 -1
- package/dist/dts/features/CohortBuilder/Repository/types.js +0 -2
- package/dist/dts/features/CohortBuilder/Repository/types.js.map +0 -1
- package/dist/dts/pages/Repository/Repository.d.ts +0 -4
- package/dist/dts/pages/Repository/Repository.d.ts.map +0 -1
- package/dist/dts/pages/Repository/Repository.js +0 -24
- package/dist/dts/pages/Repository/Repository.js.map +0 -1
- package/dist/dts/pages/Repository/data.d.ts +0 -4
- package/dist/dts/pages/Repository/data.d.ts.map +0 -1
- package/dist/dts/pages/Repository/data.js +0 -93
- package/dist/dts/pages/Repository/data.js.map +0 -1
- package/dist/dts/pages/Repository/index.d.ts +0 -4
- package/dist/dts/pages/Repository/index.d.ts.map +0 -1
- package/dist/dts/pages/Repository/index.js +0 -4
- package/dist/dts/pages/Repository/index.js.map +0 -1
- package/dist/dts/pages/Repository/types.d.ts +0 -6
- package/dist/dts/pages/Repository/types.d.ts.map +0 -1
- package/dist/dts/pages/Repository/types.js +0 -2
- package/dist/dts/pages/Repository/types.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gen3/frontend",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.30",
|
|
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.11.
|
|
52
|
+
"@gen3/core": "^0.11.30",
|
|
53
53
|
"@graphiql/react": "^0.23.1",
|
|
54
54
|
"@hello-pangea/dnd": "^17.0.0",
|
|
55
55
|
"@iconify-icon/react": "^3.0.0",
|
|
@@ -155,5 +155,5 @@
|
|
|
155
155
|
"files": [
|
|
156
156
|
"dist"
|
|
157
157
|
],
|
|
158
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "522788e2559d0813edda2444984d61ea5ace1131"
|
|
159
159
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccessCellRenderers.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/ExplorerTable/AccessCellRenderers.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAiDpD,eAAO,MAAM,yBAAyB,GAAI,mBAGvC,yBAAyB,4CAa3B,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ExtractValueFromObject } from '@gen3/core';
|
|
3
|
-
import { Badge } from '@mantine/core';
|
|
4
|
-
// TODO: refine this to make more general
|
|
5
|
-
var extractProgramAndProjectNames = function (path) {
|
|
6
|
-
// Regular expression to match the pattern /programs/{programName}/projects/{projectName}
|
|
7
|
-
var regex = /\/programs\/([^\/]+)\/projects\/([^\/]+)/;
|
|
8
|
-
var match = path.match(regex);
|
|
9
|
-
if (match) {
|
|
10
|
-
return {
|
|
11
|
-
programName: match[1],
|
|
12
|
-
projectName: match[2],
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
return {
|
|
16
|
-
programName: null,
|
|
17
|
-
projectName: null,
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
var isStringToColorTable = function (value) {
|
|
21
|
-
if (typeof value !== 'object' || value === null || Array.isArray(value)) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
for (var key in value) {
|
|
25
|
-
if (typeof key !== 'string' ||
|
|
26
|
-
typeof value[key] !== 'string') {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return true;
|
|
31
|
-
};
|
|
32
|
-
export var ProjectAccessCellRenderer = function (_a) {
|
|
33
|
-
var cell = _a.cell, params = _a.params;
|
|
34
|
-
var value = cell.getValue();
|
|
35
|
-
if (typeof value !== 'string')
|
|
36
|
-
return _jsx("span", { children: "Bad Value" });
|
|
37
|
-
var projectName = extractProgramAndProjectNames(value).projectName;
|
|
38
|
-
var color = 'primary.4';
|
|
39
|
-
if (params && isStringToColorTable(params === null || params === void 0 ? void 0 : params.colorTable)) {
|
|
40
|
-
if (projectName) {
|
|
41
|
-
color = ExtractValueFromObject(params.colorTable, projectName, color);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return _jsx(Badge, { color: color, children: projectName });
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=AccessCellRenderers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccessCellRenderers.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/ExplorerTable/AccessCellRenderers.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOtC,yCAAyC;AACzC,IAAM,6BAA6B,GAAG,UAAC,IAAY;IACjD,yFAAyF;IACzF,IAAM,KAAK,GAAG,0CAA0C,CAAC;IACzD,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEhC,IAAI,KAAK,EAAE,CAAC;QACV,OAAO;YACL,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;YACrB,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;SACtB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,WAAW,EAAE,IAAI;QACjB,WAAW,EAAE,IAAI;KAClB,CAAC;AACJ,CAAC,CAAC;AAMF,IAAM,oBAAoB,GAAG,UAAC,KAAc;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACxE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,IAAM,GAAG,IAAI,KAAK,EAAE,CAAC;QACxB,IACE,OAAO,GAAG,KAAK,QAAQ;YACvB,OAAQ,KAAiC,CAAC,GAAG,CAAC,KAAK,QAAQ,EAC3D,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,yBAAyB,GAAG,UAAC,EAGd;QAF1B,IAAI,UAAA,EACJ,MAAM,YAAA;IAEN,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC9B,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,uCAAsB,CAAC;IACrD,IAAA,WAAW,GAAK,6BAA6B,CAAC,KAAK,CAAC,YAAzC,CAA0C;IAE7D,IAAI,KAAK,GAAG,WAAW,CAAC;IACxB,IAAI,MAAM,IAAI,oBAAoB,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,CAAC,EAAE,CAAC;QACvD,IAAI,WAAW,EAAE,CAAC;YAChB,KAAK,GAAG,sBAAsB,CAAC,MAAM,CAAC,UAAU,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;IAED,OAAO,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,YAAG,WAAW,GAAS,CAAC;AACpD,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RepositoryConfiguration } from './types';
|
|
2
|
-
declare const Repository: ({ filters, guppyConfig, table, buttons, loginForDownload, dropdowns, }: RepositoryConfiguration) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default Repository;
|
|
4
|
-
//# sourceMappingURL=Repository.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Repository.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/Repository.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAIlD,QAAA,MAAM,UAAU,GAAI,wEAOjB,uBAAuB,4CAazB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { CohortPanel } from '../CohortPanel';
|
|
3
|
-
var Repository = function (_a) {
|
|
4
|
-
var filters = _a.filters, guppyConfig = _a.guppyConfig, table = _a.table, buttons = _a.buttons, loginForDownload = _a.loginForDownload, dropdowns = _a.dropdowns;
|
|
5
|
-
return (_jsx(CohortPanel, { guppyConfig: guppyConfig, filters: filters, table: table, tabTitle: "Files", dropdowns: dropdowns, buttons: buttons, loginForDownload: loginForDownload }, "Repository-Panel"));
|
|
6
|
-
};
|
|
7
|
-
export default Repository;
|
|
8
|
-
//# sourceMappingURL=Repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Repository.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/Repository.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,IAAM,UAAU,GAAG,UAAC,EAOM;QANxB,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,KAAK,WAAA,EACL,OAAO,aAAA,EACP,gBAAgB,sBAAA,EAChB,SAAS,eAAA;IAET,OAAO,CACL,KAAC,WAAW,IACV,WAAW,EAAE,WAAW,EAExB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAC,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,IAN9B,kBAAkB,CAOtB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAgC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DataTypeConfigWithManifest, DownloadButtonConfig, DropdownsWithButtonsProps, TabsConfig } from '../types';
|
|
2
|
-
import { SummaryTable } from '../ExplorerTable/types';
|
|
3
|
-
import { Gen3AppConfigData } from '../../../lib/content/types';
|
|
4
|
-
export interface RepositoryConfiguration extends Gen3AppConfigData {
|
|
5
|
-
filters?: TabsConfig;
|
|
6
|
-
guppyConfig: DataTypeConfigWithManifest;
|
|
7
|
-
table?: SummaryTable;
|
|
8
|
-
dropdowns?: Record<string, DropdownsWithButtonsProps>;
|
|
9
|
-
buttons?: ReadonlyArray<DownloadButtonConfig>;
|
|
10
|
-
loginForDownload?: boolean;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,WAAW,EAAE,0BAA0B,CAAC;IACxC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACtD,OAAO,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC9C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Repository.d.ts","sourceRoot":"","sources":["../../../../src/pages/Repository/Repository.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAI9C,QAAA,MAAM,cAAc,GAAI,8DAKrB,mBAAmB,KAAG,GAAG,CAAC,OAuB5B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { NavPageLayout } from '../../features/Navigation';
|
|
14
|
-
import { Center } from '@mantine/core';
|
|
15
|
-
import { Repository } from '../../features/CohortBuilder';
|
|
16
|
-
var RepositoryPage = function (_a) {
|
|
17
|
-
var headerProps = _a.headerProps, footerProps = _a.footerProps, configuration = _a.configuration, headerMetadata = _a.headerMetadata;
|
|
18
|
-
if (configuration === undefined) {
|
|
19
|
-
return (_jsx(Center, { maw: 400, h: 100, mx: "auto", children: _jsx("div", { children: "Repository config is not defined. Page disabled" }) }));
|
|
20
|
-
}
|
|
21
|
-
return (_jsx(NavPageLayout, { headerProps: headerProps, footerProps: footerProps, headerMetadata: __assign(__assign({ title: 'Gen3 Repository Page', content: 'Repository Page', key: 'gen3-repository-page' }, (headerMetadata ? headerMetadata : {})), ((configuration === null || configuration === void 0 ? void 0 : configuration.headerMetadata) ? configuration.headerMetadata : {})), children: _jsx(Repository, __assign({}, configuration)) }));
|
|
22
|
-
};
|
|
23
|
-
export default RepositoryPage;
|
|
24
|
-
//# sourceMappingURL=Repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Repository.js","sourceRoot":"","sources":["../../../../src/pages/Repository/Repository.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,IAAM,cAAc,GAAG,UAAC,EAKF;QAJpB,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,aAAa,mBAAA,EACb,cAAc,oBAAA;IAEd,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,CACL,KAAC,MAAM,IAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAC,MAAM,YACjC,4EAA0D,GACnD,CACV,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAC,aAAa,IACN,WAAW,aAAA,EAAE,WAAW,aAAA,EAC9B,cAAc,sBACZ,KAAK,EAAE,sBAAsB,EAC7B,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,sBAAsB,IACxB,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,GACtC,CAAC,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,cAAc,EAAC,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,aAGxE,KAAC,UAAU,eAAK,aAAa,EAAI,GACnB,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/pages/Repository/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAU1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAc9C,eAAO,MAAM,gCAAgC,EAAE,kBAAkB,CAC/D,mBAAmB,CA8BpB,CAAC"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
23
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
import { getNavPageLayoutPropsFromConfig } from '../../lib/common/staticProps';
|
|
49
|
-
import ContentSource from '../../lib/content';
|
|
50
|
-
import { GEN3_COMMONS_NAME } from '@gen3/core';
|
|
51
|
-
import { GuppyDataAccessMode, } from '../../features/CohortBuilder/types';
|
|
52
|
-
var DefaultHeaderMetadata = {
|
|
53
|
-
title: 'Gen3 Repository Page',
|
|
54
|
-
content: 'Repository Page',
|
|
55
|
-
key: 'gen3-repository-page',
|
|
56
|
-
};
|
|
57
|
-
var DefaultAccessControlConfiguration = {
|
|
58
|
-
dataMode: GuppyDataAccessMode.REGULAR,
|
|
59
|
-
tierLimit: -1,
|
|
60
|
-
showAccessLevelControl: false,
|
|
61
|
-
};
|
|
62
|
-
export var RepositoryPageGetServerSideProps = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
|
-
var repositoryConfiguration, _a, err_1, _b;
|
|
64
|
-
var _c, _d;
|
|
65
|
-
return __generator(this, function (_e) {
|
|
66
|
-
switch (_e.label) {
|
|
67
|
-
case 0:
|
|
68
|
-
_e.trys.push([0, 3, , 5]);
|
|
69
|
-
return [4 /*yield*/, ContentSource.getContentDatabase().get("".concat(GEN3_COMMONS_NAME, "/repository.json"))];
|
|
70
|
-
case 1:
|
|
71
|
-
repositoryConfiguration = _e.sent();
|
|
72
|
-
_c = {};
|
|
73
|
-
_a = [{}];
|
|
74
|
-
return [4 /*yield*/, getNavPageLayoutPropsFromConfig()];
|
|
75
|
-
case 2: return [2 /*return*/, (_c.props = __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_e.sent())])), { configuration: repositoryConfiguration,
|
|
76
|
-
// headerMetadata: cohortBuilderConfiguration.headerMetadata,
|
|
77
|
-
accessControl: __assign({}, DefaultAccessControlConfiguration) }]),
|
|
78
|
-
_c)];
|
|
79
|
-
case 3:
|
|
80
|
-
err_1 = _e.sent();
|
|
81
|
-
if (err_1 instanceof Error) {
|
|
82
|
-
console.warn('Explorer config cannot be read', err_1);
|
|
83
|
-
}
|
|
84
|
-
_d = {};
|
|
85
|
-
_b = [{}];
|
|
86
|
-
return [4 /*yield*/, getNavPageLayoutPropsFromConfig()];
|
|
87
|
-
case 4: return [2 /*return*/, (_d.props = __assign.apply(void 0, [__assign.apply(void 0, _b.concat([(_e.sent())])), { configuration: undefined }]),
|
|
88
|
-
_d)];
|
|
89
|
-
case 5: return [2 /*return*/];
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}); };
|
|
93
|
-
//# sourceMappingURL=data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../src/pages/Repository/data.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAEL,mBAAmB,GACpB,MAAM,oCAAoC,CAAC;AAG5C,IAAM,qBAAqB,GAAG;IAC5B,KAAK,EAAE,sBAAsB;IAC7B,OAAO,EAAE,iBAAiB;IAC1B,GAAG,EAAE,sBAAsB;CAC5B,CAAC;AAEF,IAAM,iCAAiC,GAA+B;IACpE,QAAQ,EAAE,mBAAmB,CAAC,OAAO;IACrC,SAAS,EAAE,CAAC,CAAC;IACb,sBAAsB,EAAE,KAAK;CAC9B,CAAC;AAEF,MAAM,CAAC,IAAM,gCAAgC,GAEzC;;;;;;;gBAGE,qBAAM,aAAa,CAAC,kBAAkB,EAAE,CAAC,GAAG,CAC1C,UAAG,iBAAiB,qBAAkB,CACvC,EAAA;;gBAHG,uBAAuB,GAC3B,SAEC;;;gBAIK,qBAAM,+BAA+B,EAAE,EAAA;oBAF/C,uBACE,QAAK,6DACA,CAAC,SAAuC,CAAC,OAE5C,aAAa,EAAE,uBAAuB;wBACtC,8DAA8D;wBAC9D,aAAa,eACR,iCAAiC,KAEvC;yBACD;;;gBAEF,IAAI,KAAG,YAAY,KAAK,EAAE,CAAC;oBACzB,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,KAAG,CAAC,CAAC;gBACtD,CAAC;;;gBAGO,qBAAM,+BAA+B,EAAE,EAAA;oBAF/C,uBACE,QAAK,6DACA,CAAC,SAAuC,CAAC,OAC5C,aAAa,EAAE,SAAS,IACzB;yBACD;;;;KAEL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pages/Repository/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/Repository/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { NavPageLayoutProps } from '../../features/Navigation';
|
|
2
|
-
import { RepositoryConfiguration } from '../../features/CohortBuilder/Repository/types';
|
|
3
|
-
export interface RepositoryPageProps extends NavPageLayoutProps {
|
|
4
|
-
configuration?: RepositoryConfiguration;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/pages/Repository/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAExF,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/pages/Repository/types.ts"],"names":[],"mappings":""}
|