@weng-lab/ui-components 1.0.17 → 1.1.0
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/exceljs.min-CJ7sQT0b.js +25279 -0
- package/dist/exceljs.min-CJ7sQT0b.js.map +1 -0
- package/dist/{get-context-DF28w6nV.js → get-context-CJCxWuhJ.js} +2 -2
- package/dist/get-context-CJCxWuhJ.js.map +1 -0
- package/dist/index-dUXe96P3.js +62610 -0
- package/dist/index-dUXe96P3.js.map +1 -0
- package/dist/src/components/BiosampleTable/AggregateDownload.d.ts +11 -0
- package/dist/src/components/BiosampleTable/AggregateDownload.d.ts.map +1 -0
- package/dist/src/components/BiosampleTable/AssayWheel.d.ts +16 -0
- package/dist/src/components/BiosampleTable/AssayWheel.d.ts.map +1 -0
- package/dist/src/components/BiosampleTable/BiosampleTable.d.ts +10 -0
- package/dist/src/components/BiosampleTable/BiosampleTable.d.ts.map +1 -0
- package/dist/src/components/BiosampleTable/DownloadButton.d.ts +8 -0
- package/dist/src/components/BiosampleTable/DownloadButton.d.ts.map +1 -0
- package/dist/src/components/BiosampleTable/columns.d.ts +72 -0
- package/dist/src/components/BiosampleTable/columns.d.ts.map +1 -0
- package/dist/src/components/BiosampleTable/helpers.d.ts +24 -0
- package/dist/src/components/BiosampleTable/helpers.d.ts.map +1 -0
- package/dist/src/components/BiosampleTable/index.d.ts +7 -0
- package/dist/src/components/BiosampleTable/index.d.ts.map +1 -0
- package/dist/src/components/BiosampleTable/ontologyDownloads.d.ts +6 -0
- package/dist/src/components/BiosampleTable/ontologyDownloads.d.ts.map +1 -0
- package/dist/src/components/BiosampleTable/types.d.ts +55 -0
- package/dist/src/components/BiosampleTable/types.d.ts.map +1 -0
- package/dist/src/components/BiosampleTable/useEncodeBiosampleData.d.ts +10 -0
- package/dist/src/components/BiosampleTable/useEncodeBiosampleData.d.ts.map +1 -0
- package/dist/src/components/GenomeSearch/queries.d.ts +1 -1
- package/dist/src/components/GenomeSearch/queries.d.ts.map +1 -1
- package/dist/src/components/GenomeSearch/types.d.ts +6 -3
- package/dist/src/components/GenomeSearch/types.d.ts.map +1 -1
- package/dist/src/components/Table/CustomToolbar.d.ts +1 -1
- package/dist/src/components/Table/CustomToolbar.d.ts.map +1 -1
- package/dist/src/components/Table/Table.d.ts +2 -0
- package/dist/src/components/Table/Table.d.ts.map +1 -1
- package/dist/src/components/Table/index.d.ts +2 -2
- package/dist/src/components/Table/index.d.ts.map +1 -1
- package/dist/src/components/Table/types.d.ts +10 -10
- package/dist/src/components/Table/types.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/ui-components.es.js +409 -313
- package/package.json +3 -3
- package/dist/get-context-DF28w6nV.js.map +0 -1
- package/dist/index-C5pwuAmM.js +0 -50494
- package/dist/index-C5pwuAmM.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type AggregateDownloadProps = {
|
|
2
|
+
ontology: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param ontology
|
|
7
|
+
* Finds available aggregate file urls for the given ontology in the form `[noccl, ccl]`
|
|
8
|
+
*/
|
|
9
|
+
export declare const getAvailableFiles: (ontology: string) => import('./ontologyDownloads').DownloadLink[];
|
|
10
|
+
export declare const AggregateDownloadButton: ({ ontology }: AggregateDownloadProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=AggregateDownload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AggregateDownload.d.ts","sourceRoot":"","sources":["../../../../src/components/BiosampleTable/AggregateDownload.tsx"],"names":[],"mappings":"AAoBA,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AAEH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,iDAGjD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,cAAc,sBAAsB,4CAqI3E,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CcreAssay } from './types';
|
|
2
|
+
export type AssayWheelProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The value of the assay should be the experiment accession if the assay exists for that sample
|
|
5
|
+
*/
|
|
6
|
+
row: {
|
|
7
|
+
[key in CcreAssay]: string | null;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @prop row
|
|
13
|
+
* @returns the assay wheel for the row
|
|
14
|
+
*/
|
|
15
|
+
export declare const AssayWheel: ({ row }: AssayWheelProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=AssayWheel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssayWheel.d.ts","sourceRoot":"","sources":["../../../../src/components/BiosampleTable/AssayWheel.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIpC,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,GAAG,EAAE;SAAG,GAAG,IAAI,SAAS,GAAG,MAAM,GAAG,IAAI;KAAE,CAAC;CAC5C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,SAAS,eAAe,4CA0HlD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BiosampleTableProps } from './types';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
import { GridInitialStatePremium } from '@mui/x-data-grid-premium/models/gridStatePremium';
|
|
4
|
+
/**
|
|
5
|
+
* This intentionally lists all columns in the visibility model (even visible cols) so that consumers can import and print it out to see all the keys
|
|
6
|
+
* Can also use `allColsHidden` which is an object of all column fields set to false, which you can spread and then override the visible cols in initialState
|
|
7
|
+
*/
|
|
8
|
+
export declare const initialTableState: GridInitialStatePremium;
|
|
9
|
+
export declare function BiosampleTable(props: BiosampleTableProps): JSX.Element;
|
|
10
|
+
//# sourceMappingURL=BiosampleTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BiosampleTable.d.ts","sourceRoot":"","sources":["../../../../src/components/BiosampleTable/BiosampleTable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAmB,MAAM,SAAS,CAAC;AAE/D,OAAO,EAAE,GAAG,EAAsB,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAE3F;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,uBA0C/B,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAyDtE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type DownloadButtonProps = {
|
|
2
|
+
message?: (fileSize: string) => string;
|
|
3
|
+
url: string;
|
|
4
|
+
filename?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const DownloadButton: <T extends boolean>({ message, url, filename, disabled }: DownloadButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=DownloadButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownloadButton.d.ts","sourceRoot":"","sources":["../../../../src/components/BiosampleTable/DownloadButton.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACvC,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,OAAO,EAAE,sCAA8C,mBAAmB,4CAsBlH,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { GridColDef } from '@mui/x-data-grid-premium';
|
|
2
|
+
import { EncodeBiosample } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @todo at some point, instead of checking for is rowNode.type === "group", can use isAutogeneratedRow instead
|
|
5
|
+
*/
|
|
6
|
+
export declare const ontologyCol: GridColDef<EncodeBiosample>;
|
|
7
|
+
export declare const displayNameCol: GridColDef<EncodeBiosample>;
|
|
8
|
+
export declare const sampleTypeCol: GridColDef<EncodeBiosample>;
|
|
9
|
+
export declare const lifeStageCol: GridColDef<EncodeBiosample>;
|
|
10
|
+
export declare const assaysCol: GridColDef<EncodeBiosample>;
|
|
11
|
+
export declare const collectionCol: GridColDef<EncodeBiosample>;
|
|
12
|
+
export declare const dnaseExpCol: GridColDef<EncodeBiosample>;
|
|
13
|
+
export declare const h3k4me3ExpCol: GridColDef<EncodeBiosample>;
|
|
14
|
+
export declare const h3k27acExpCol: GridColDef<EncodeBiosample>;
|
|
15
|
+
export declare const ctcfExpCol: GridColDef<EncodeBiosample>;
|
|
16
|
+
export declare const atacExpCol: GridColDef<EncodeBiosample>;
|
|
17
|
+
export declare const dnaseFileIdCol: GridColDef<EncodeBiosample>;
|
|
18
|
+
export declare const h3k4me3FileIdCol: GridColDef<EncodeBiosample>;
|
|
19
|
+
export declare const h3k27acFileIdCol: GridColDef<EncodeBiosample>;
|
|
20
|
+
export declare const ctcfFileIdCol: GridColDef<EncodeBiosample>;
|
|
21
|
+
export declare const atacFileIdCol: GridColDef<EncodeBiosample>;
|
|
22
|
+
export declare const dnaseZscoreUrlCol: GridColDef<EncodeBiosample>;
|
|
23
|
+
export declare const h3k4me3ZscoreUrlCol: GridColDef<EncodeBiosample>;
|
|
24
|
+
export declare const h3k27acZscoreUrlCol: GridColDef<EncodeBiosample>;
|
|
25
|
+
export declare const ctcfZscoreUrlCol: GridColDef<EncodeBiosample>;
|
|
26
|
+
export declare const atacZscoreUrlCol: GridColDef<EncodeBiosample>;
|
|
27
|
+
export declare const dnaseSignalUrlCol: GridColDef<EncodeBiosample>;
|
|
28
|
+
export declare const h3k4me3SignalUrlCol: GridColDef<EncodeBiosample>;
|
|
29
|
+
export declare const h3k27acSignalUrlCol: GridColDef<EncodeBiosample>;
|
|
30
|
+
export declare const ctcfSignalUrlCol: GridColDef<EncodeBiosample>;
|
|
31
|
+
export declare const atacSignalUrlCol: GridColDef<EncodeBiosample>;
|
|
32
|
+
export declare const chromHmmUrlCol: GridColDef<EncodeBiosample>;
|
|
33
|
+
export declare const ccreBedUrlCol: GridColDef<EncodeBiosample>;
|
|
34
|
+
export declare const ccreBigBedUrlCol: GridColDef<EncodeBiosample>;
|
|
35
|
+
export declare const rnaSeqCheckCol: GridColDef<EncodeBiosample>;
|
|
36
|
+
export declare const columns: GridColDef<EncodeBiosample>[];
|
|
37
|
+
/**
|
|
38
|
+
* useful for resetting visible columns by spreading this then overriding with visible cols
|
|
39
|
+
*/
|
|
40
|
+
export declare const allColsHidden: {
|
|
41
|
+
displayname: boolean;
|
|
42
|
+
assays: boolean;
|
|
43
|
+
ontology: boolean;
|
|
44
|
+
sampleType: boolean;
|
|
45
|
+
lifeStage: boolean;
|
|
46
|
+
collection: boolean;
|
|
47
|
+
bedurl: boolean;
|
|
48
|
+
bigbedurl: boolean;
|
|
49
|
+
dnase_experiment_accession: boolean;
|
|
50
|
+
dnase_file_accession: boolean;
|
|
51
|
+
dnaseZ: boolean;
|
|
52
|
+
dnase_signal_url: boolean;
|
|
53
|
+
atac_experiment_accession: boolean;
|
|
54
|
+
atac_file_accession: boolean;
|
|
55
|
+
atacZ: boolean;
|
|
56
|
+
atac_signal_url: boolean;
|
|
57
|
+
h3k4me3_experiment_accession: boolean;
|
|
58
|
+
h3k4me3_file_accession: boolean;
|
|
59
|
+
h3k4me3Z: boolean;
|
|
60
|
+
h3k4me3_signal_url: boolean;
|
|
61
|
+
h3k27ac_experiment_accession: boolean;
|
|
62
|
+
h3k27ac_file_accession: boolean;
|
|
63
|
+
h3k27acZ: boolean;
|
|
64
|
+
h3k27ac_signal_url: boolean;
|
|
65
|
+
ctcf_experiment_accession: boolean;
|
|
66
|
+
ctcf_file_accession: boolean;
|
|
67
|
+
ctcfZ: boolean;
|
|
68
|
+
ctcf_signal_url: boolean;
|
|
69
|
+
chromhmm_url: boolean;
|
|
70
|
+
rnaSeq: boolean;
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=columns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../../src/components/BiosampleTable/columns.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqE,MAAM,0BAA0B,CAAC;AAEzH,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAM1C;;GAEG;AAEH,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAAe,CAkDnD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,eAAe,CAKtD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAAe,CAMrD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,eAAe,CAMpD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eAAe,CAiCjD,CAAC;AAIF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAAe,CA0BrD,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAAe,CAKnD,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAAe,CAKrD,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAAe,CAKrD,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eAAe,CAKlD,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eAAe,CAKlD,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC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EG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BzB,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CcreAssay } from './types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param url
|
|
5
|
+
* @param handleSetState
|
|
6
|
+
*
|
|
7
|
+
* Attempts to fetch the file size, and sets state with given fn. -1 if unsucessful
|
|
8
|
+
*/
|
|
9
|
+
export declare const fetchFileSize: (url: string, handleSetState: (fileSize: number) => void) => Promise<void>;
|
|
10
|
+
export declare const formatFileSize: (fileSize: number) => string;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param assay
|
|
14
|
+
* @returns Formatted assay name
|
|
15
|
+
*/
|
|
16
|
+
export declare const formatAssay: (assay: CcreAssay) => "ATAC" | "CTCF" | "DNase" | "H3K27ac" | "H3K4me3";
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param assays
|
|
20
|
+
* @returns string to display on hover above available assay wheel
|
|
21
|
+
*/
|
|
22
|
+
export declare function assayHoverInfo(assays: Record<CcreAssay, string | null>): string;
|
|
23
|
+
export declare const ASSAY_COLORS: Record<CcreAssay, string>;
|
|
24
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/BiosampleTable/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAU,KAAK,MAAM,EAAE,gBAAgB,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,kBAc1F,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,WAA+E,CAAA;AAC9H;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,SAAS,sDAa3C,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC,UAWtE;AAED,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAMlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/BiosampleTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,0BAA0B,CAAA;AACxC,mBAAmB,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ontologyDownloads.d.ts","sourceRoot":"","sources":["../../../../src/components/BiosampleTable/ontologyDownloads.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAiG9D,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { TableProps } from '../Table';
|
|
2
|
+
export type EncodeBiosample = {
|
|
3
|
+
name: string;
|
|
4
|
+
ontology: string;
|
|
5
|
+
lifeStage: string;
|
|
6
|
+
sampleType: string;
|
|
7
|
+
displayname: string;
|
|
8
|
+
dnase_experiment_accession: string | null;
|
|
9
|
+
h3k4me3_experiment_accession: string | null;
|
|
10
|
+
h3k27ac_experiment_accession: string | null;
|
|
11
|
+
ctcf_experiment_accession: string | null;
|
|
12
|
+
atac_experiment_accession: string | null;
|
|
13
|
+
dnase_file_accession: string | null;
|
|
14
|
+
h3k4me3_file_accession: string | null;
|
|
15
|
+
h3k27ac_file_accession: string | null;
|
|
16
|
+
ctcf_file_accession: string | null;
|
|
17
|
+
atac_file_accession: string | null;
|
|
18
|
+
dnase_signal_url?: string;
|
|
19
|
+
h3k4me3_signal_url?: string;
|
|
20
|
+
h3k27ac_signal_url?: string;
|
|
21
|
+
ctcf_signal_url?: string;
|
|
22
|
+
atac_signal_url?: string;
|
|
23
|
+
rna_seq_tracks?: {
|
|
24
|
+
id: string;
|
|
25
|
+
title: string;
|
|
26
|
+
url: string;
|
|
27
|
+
rnaseq_experiment_accession: string;
|
|
28
|
+
rnaseq_file_accession: string;
|
|
29
|
+
}[];
|
|
30
|
+
chromhmm?: string;
|
|
31
|
+
chromhmm_url?: string;
|
|
32
|
+
bigbedurl?: string | null;
|
|
33
|
+
};
|
|
34
|
+
export type BiosampleTableProps<T extends TableProps["rows"] = EncodeBiosample[]> = Partial<TableProps> & {
|
|
35
|
+
/**
|
|
36
|
+
* If passing rows, no biosamples will be fetched inside the component. Must use useEncodeBiosampleData to retrieve and pass in
|
|
37
|
+
*/
|
|
38
|
+
rows?: T;
|
|
39
|
+
/**
|
|
40
|
+
* optionally prefilter biosamples. Filters the rows before going into the table. To modify initial filter state of table use initialState
|
|
41
|
+
*/
|
|
42
|
+
prefilterBiosamples?: (biosample: T extends object ? T[number] : undefined) => boolean;
|
|
43
|
+
/**
|
|
44
|
+
* assembly to fetch samples for
|
|
45
|
+
*/
|
|
46
|
+
assembly: "GRCh38" | "mm10";
|
|
47
|
+
/**
|
|
48
|
+
* Callback triggered when rowSelectionModel changes. Returns whole row objects. If only id needed, can use onRowSelectionModelChange
|
|
49
|
+
*/
|
|
50
|
+
onSelectionChange?: (selected: EncodeBiosample[]) => void;
|
|
51
|
+
};
|
|
52
|
+
declare const CCRE_ASSAYS: readonly ["dnase", "atac", "h3k4me3", "h3k27ac", "ctcf"];
|
|
53
|
+
export type CcreAssay = (typeof CCRE_ASSAYS)[number];
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,UAAU,CAAC,MAAM,CAAC,GAAG,eAAe,EAAE,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG;IACxG;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,CAAC;IACT;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,SAAS,KAAK,OAAO,CAAC;IACvF;;OAEG;IACH,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,EAAE,KAAK,IAAI,CAAA;CAC1D,CAAC;AAEF,QAAA,MAAM,WAAW,0DAA2D,CAAC;AAE7E,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EncodeBiosample } from './types';
|
|
2
|
+
export declare const useEncodeBiosampleData: ({ assembly, skip }: {
|
|
3
|
+
assembly: "GRCh38" | "mm10";
|
|
4
|
+
skip?: boolean;
|
|
5
|
+
}) => {
|
|
6
|
+
data: EncodeBiosample[] | undefined;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
error: boolean;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useEncodeBiosampleData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEncodeBiosampleData.d.ts","sourceRoot":"","sources":["../../../../src/components/BiosampleTable/useEncodeBiosampleData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,eAAO,MAAM,sBAAsB,GAAI,oBAAoB;IAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE;;;;CAkCzG,CAAC"}
|
|
@@ -4,7 +4,7 @@ export declare const GENE_AUTOCOMPLETE_QUERY = "\n query Genes(\n $id: [St
|
|
|
4
4
|
export declare const RESOLVE_QUERY = "\n query q(\n $id: String!\n $assembly: String!\n ) {\n resolve(\n id: $id\n assembly: $assembly\n ) {\n coordinates {\n chromosome\n start\n end\n }\n }\n }\n";
|
|
5
5
|
export declare const ICRE_AUTOCOMPLETE_QUERY = "\n query iCREQuery($accession_prefix: [String!], $limit: Int) {\n iCREQuery(accession_prefix: $accession_prefix, limit: $limit) {\n rdhs\n accession\n celltypes\n coordinates {\n start\n end\n chromosome\n }\n }\n }\n";
|
|
6
6
|
export declare const CCRE_AUTOCOMPLETE_QUERY = "\n query cCREAutocompleteQuery(\n $accession_prefix: [String!]\n $assembly: String!\n $includeiCREs: Boolean\n $limit: Int\n ) {\n cCREAutocompleteQuery(\n includeiCREs: $includeiCREs\n assembly: $assembly\n limit: $limit\n accession_prefix: $accession_prefix\n ) { \n accession\n isiCRE\n coordinates {\n chromosome\n start\n end\n }\n }\n }\n";
|
|
7
|
-
export declare const GWAS_AUTOCOMPLETE_QUERY = "\nquery
|
|
7
|
+
export declare const GWAS_AUTOCOMPLETE_QUERY = "\nquery getGWASStudyMetadata($studyid: [String], $limit: Int, $studyname_prefix: [String], $parent_terms: [String]){ \n getGWASStudiesMetadata(studyid: $studyid, limit: $limit, parent_terms: $parent_terms, studyname_prefix: $studyname_prefix ) \n { \n studyid\n author\n disease_trait\n has_enrichment_info\n population\n parent_terms \n total_ld_blocks\n ld_blocks_overlapping_ccres\n overlapping_ccres\n }\n}\n";
|
|
8
8
|
export declare const getICREs: (value: string, limit: number) => Promise<any>;
|
|
9
9
|
export declare const getCCREs: (value: string, assembly: string, limit: number, showiCREFlag: boolean) => Promise<any>;
|
|
10
10
|
export declare const getGenes: (value: string, assembly: string, limit: number, geneVersions: GenomeSearchProps["geneVersion"]) => Promise<any[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/components/GenomeSearch/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE1D,eAAO,MAAM,sBAAsB,0QAWlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,g1BAuCnC,CAAC;AAEF,eAAO,MAAM,aAAa,2QAgBzB,CAAC;AAEF,eAAO,MAAM,uBAAuB,8TAanC,CAAC;AAEF,eAAO,MAAM,uBAAuB,qbAsBnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/components/GenomeSearch/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE1D,eAAO,MAAM,sBAAsB,0QAWlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,g1BAuCnC,CAAC;AAEF,eAAO,MAAM,aAAa,2QAgBzB,CAAC;AAEF,eAAO,MAAM,uBAAuB,8TAanC,CAAC;AAEF,eAAO,MAAM,uBAAuB,qbAsBnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,yfAenC,CAAA;AAED,eAAO,MAAM,QAAQ,GAAU,OAAO,MAAM,EAAE,OAAO,MAAM,iBAa1D,CAAC;AAEF,eAAO,MAAM,QAAQ,GACnB,OAAO,MAAM,EACb,UAAU,MAAM,EAChB,OAAO,MAAM,EACb,cAAc,OAAO,iBAgBtB,CAAC;AAEF,eAAO,MAAM,QAAQ,GACnB,OAAO,MAAM,EACb,UAAU,MAAM,EAChB,OAAO,MAAM,EACb,cAAc,iBAAiB,CAAC,aAAa,CAAC,mBA2D/C,CAAC;AAkBF,eAAO,MAAM,OAAO,GAClB,OAAO,MAAM,EACb,UAAU,MAAM,EAChB,OAAO,MAAM,iBAed,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,OAAO,MAAM,EACb,OAAO,MAAM,iBAed,CAAC"}
|
|
@@ -68,10 +68,13 @@ export interface CCREResponse {
|
|
|
68
68
|
isiCRE: boolean;
|
|
69
69
|
}
|
|
70
70
|
export interface StudyResponse {
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
disease_trait: string;
|
|
72
|
+
studyid: string;
|
|
73
|
+
population: string;
|
|
74
|
+
parent_terms: string[];
|
|
75
|
+
has_enrichment_info: boolean;
|
|
73
76
|
author: string;
|
|
74
77
|
pubmedid: string;
|
|
75
|
-
|
|
78
|
+
total_ld_blocks: number;
|
|
76
79
|
}
|
|
77
80
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/GenomeSearch/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,cAAc,EACf,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACrC,iBAAiB,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,CACjE,GAAG;IACF,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEhC,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,SAAS,CAAC,EAAE;QACV,KAAK,CAAC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AM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAGD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB;AAGD,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomToolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/CustomToolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAWL,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,
|
|
1
|
+
{"version":3,"file":"CustomToolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/CustomToolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAWL,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAclC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAgCrC,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC3B,gBAAgB,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;IACjD,YAAY,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;IACxC,YAAY,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IAC1C,gBAAgB,CAAC,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CACnD,GAAG,gBAAgB,GAClB,qBAAqB,CAAC;AAExB,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,EAAE,kBAAkB,2CAoI5J"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { GridAutosizeOptions } from '@mui/x-data-grid-premium';
|
|
1
2
|
import { TableProps } from './types';
|
|
3
|
+
export declare const autosizeOptions: GridAutosizeOptions;
|
|
2
4
|
declare const Table: (props: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
5
|
export default Table;
|
|
4
6
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAKpB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,eAAO,MAAM,eAAe,EAAE,mBAI7B,CAAC;AAEF,QAAA,MAAM,KAAK,GAAI,OAAO,UAAU,4CAgI/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as Table } from './Table';
|
|
2
2
|
export { Table };
|
|
3
3
|
export type * from './types';
|
|
4
|
-
export * from '@mui/x-data-grid-
|
|
5
|
-
export type * from '@mui/x-data-grid-
|
|
4
|
+
export * from '@mui/x-data-grid-premium';
|
|
5
|
+
export type * from '@mui/x-data-grid-premium';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,CAAA;AAChB,mBAAmB,SAAS,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,EAAE,KAAK,EAAE,CAAA;AAChB,mBAAmB,SAAS,CAAA;AAC5B,cAAc,0BAA0B,CAAC;AACzC,mBAAmB,0BAA0B,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DataGridPremiumProps } from '@mui/x-data-grid-premium';
|
|
2
2
|
import { ReactElement, ReactNode } from 'react';
|
|
3
3
|
import { SvgIconOwnProps } from '@mui/material';
|
|
4
|
-
interface BaseTableProps extends Omit<
|
|
4
|
+
interface BaseTableProps extends Omit<DataGridPremiumProps, 'label'> {
|
|
5
5
|
/**
|
|
6
6
|
* Rows to be consumed in the table.
|
|
7
7
|
*
|
|
@@ -9,17 +9,17 @@ interface BaseTableProps extends Omit<DataGridProProps, 'label'> {
|
|
|
9
9
|
*
|
|
10
10
|
* Note: Rows without an 'id' property will be given id matching their index
|
|
11
11
|
*/
|
|
12
|
-
rows:
|
|
12
|
+
rows: DataGridPremiumProps["rows"];
|
|
13
13
|
/**
|
|
14
14
|
* @default true
|
|
15
15
|
* @note Overrides MUI default
|
|
16
16
|
*/
|
|
17
|
-
disableRowSelectionOnClick?:
|
|
17
|
+
disableRowSelectionOnClick?: DataGridPremiumProps["disableRowSelectionOnClick"];
|
|
18
18
|
/**
|
|
19
19
|
* @default "compact"
|
|
20
20
|
* @note Overrides MUI default
|
|
21
21
|
*/
|
|
22
|
-
density?:
|
|
22
|
+
density?: DataGridPremiumProps["density"];
|
|
23
23
|
/**
|
|
24
24
|
* @default true
|
|
25
25
|
* @note Overrides MUI default
|
|
@@ -28,7 +28,7 @@ interface BaseTableProps extends Omit<DataGridProProps, 'label'> {
|
|
|
28
28
|
/**
|
|
29
29
|
* @note Table assigns a default internal ID to each row if no ID is provided in the row data.
|
|
30
30
|
*/
|
|
31
|
-
getRowId?:
|
|
31
|
+
getRowId?: DataGridPremiumProps["getRowId"];
|
|
32
32
|
/**
|
|
33
33
|
* Element to be rendered instead of `DataGridPro` when `rows` has a length of `0`.
|
|
34
34
|
* If a string is passed will use `TableFallback` component
|
|
@@ -38,7 +38,7 @@ interface BaseTableProps extends Omit<DataGridProProps, 'label'> {
|
|
|
38
38
|
* If true, the toolbar is displayed.
|
|
39
39
|
* @default true
|
|
40
40
|
*/
|
|
41
|
-
showToolbar?:
|
|
41
|
+
showToolbar?: DataGridPremiumProps["showToolbar"];
|
|
42
42
|
/**
|
|
43
43
|
* Configures the height properties of the wrapper `<div>`.
|
|
44
44
|
*
|
|
@@ -50,9 +50,9 @@ interface BaseTableProps extends Omit<DataGridProProps, 'label'> {
|
|
|
50
50
|
* Additional height properties spread onto this `<div>`
|
|
51
51
|
*/
|
|
52
52
|
divHeight?: {
|
|
53
|
-
height?: string;
|
|
54
|
-
minHeight?: string;
|
|
55
|
-
maxHeight?: string;
|
|
53
|
+
height?: string | number;
|
|
54
|
+
minHeight?: string | number;
|
|
55
|
+
maxHeight?: string | number;
|
|
56
56
|
};
|
|
57
57
|
/**
|
|
58
58
|
* Used for failed fetches. If true will display error fallback
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/types.ts"],"names":[],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gB,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;CAChD;AAGD,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,CACtC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7C;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,CACnD,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { DataTable } from './components/DataTable';
|
|
|
4
4
|
export type { DataTableProps, DataTableColumn } from './components/DataTable';
|
|
5
5
|
export * from './components/Table';
|
|
6
6
|
export type * from './components/Table';
|
|
7
|
+
export * from './components/BiosampleTable';
|
|
8
|
+
export type * from './components/BiosampleTable';
|
|
7
9
|
export { GenomeSearch } from './components/GenomeSearch';
|
|
8
10
|
export type { GenomeSearchProps, Result, Domain, ResultType } from './components/GenomeSearch';
|
|
9
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9E,cAAc,oBAAoB,CAAC;AACnC,mBAAmB,oBAAoB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9E,cAAc,oBAAoB,CAAC;AACnC,mBAAmB,oBAAoB,CAAC;AAExC,cAAc,6BAA6B,CAAC;AAC5C,mBAAmB,6BAA6B,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC"}
|