-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
types.ts
76 lines (66 loc) · 2 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import React, {MouseEvent} from 'react';
import KeplerTable from 'utils/table-utils/kepler-table';
import {openDeleteModal} from 'actions/ui-state-actions';
import * as VisStateActions from 'actions/vis-state-actions';
import {Datasets} from 'reducers';
import {ActionHandler} from 'actions';
export type DatasetInfoProps = {
dataset: KeplerTable;
};
export type UpdateTableColorTypes = {
id: string;
children: React.ReactNode;
};
export type DatasetTagProps = {
id?: string;
dataset: KeplerTable;
updateTableColor?: ActionHandler<typeof VisStateActions.updateTableColor>;
onClick?: (e: MouseEvent) => void;
onClickSquare?: (e: MouseEvent) => void;
};
export type ShowDataTableProps = {
id: string;
showDatasetTable?: ActionHandler<typeof VisStateActions.showDatasetTable>;
};
export type RemoveDatasetProps = {
datasetKey: string;
removeDataset?: ActionHandler<typeof openDeleteModal>;
};
export type StyledDatasetTitleProps = {
clickable: boolean;
};
export type DatasetTitleProps = {
dataset: KeplerTable;
showDeleteDataset: boolean;
onTitleClick?: () => void;
showDatasetTable?: ActionHandler<typeof VisStateActions.showDatasetTable>;
updateTableColor: ActionHandler<typeof VisStateActions.updateTableColor>;
removeDataset?: ActionHandler<typeof openDeleteModal>;
};
export type SourceDataCatalogProps = {
datasets: Datasets;
showDeleteDataset?: boolean;
onTitleClick?: () => void;
showDatasetTable?: ActionHandler<typeof VisStateActions.showDatasetTable>;
updateTableColor: ActionHandler<typeof VisStateActions.updateTableColor>;
removeDataset?: ActionHandler<typeof openDeleteModal>;
};
export type DatasetItemProps = {
value: KeplerTable;
};
export type SourceDataSelectorProps = {
dataId: string | string[] | null;
datasets: Datasets;
disabled: boolean;
defaultValue?: string;
inputTheme: string;
onSelect: (
items:
| ReadonlyArray<string | number | boolean | object>
| string
| number
| boolean
| object
| null
) => void;
};