Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore]: Technical: add types for side panel common (#1807)
* add types for side panel common Signed-off-by: Daria Terekhova <daria.terekhova@actionengine.com> Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com> * remove js modules Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com> * add factories return types Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com> Co-authored-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
- Loading branch information
1 parent
0d3c98c
commit 47e4963
Showing
8 changed files
with
117 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import React, {MouseEvent} from 'react'; | ||
import {Datasets, RGBColor} from 'reducers'; | ||
import KeplerTable from 'utils/table-utils/kepler-table'; | ||
|
||
export type DatasetInfoProps = { | ||
dataset: KeplerTable; | ||
}; | ||
|
||
export type UpdateTableColorTypes = { | ||
id: string; | ||
children: React.ReactNode; | ||
updateTableColor?: (d: string, c?: RGBColor) => void; | ||
}; | ||
|
||
export type DatasetTagWrapperProps = { | ||
updateTableColor?: (d: string, c?: RGBColor) => void; | ||
}; | ||
|
||
export type DatasetTagProps = { | ||
id?: string; | ||
dataset: KeplerTable; | ||
updateTableColor?: (d: string, c?: RGBColor) => void; | ||
onClick?: (e: MouseEvent) => void; | ||
onClickSquare?: (e: MouseEvent) => void; | ||
}; | ||
|
||
export type ShowDataTableProps = { | ||
id: string; | ||
showDatasetTable: Function; | ||
}; | ||
|
||
export type RemoveDatasetProps = { | ||
datasetKey: string; | ||
removeDataset?: (d: string) => void; | ||
}; | ||
|
||
export type StyledDatasetTitleProps = { | ||
clickable: boolean; | ||
}; | ||
|
||
export type DatasetTitleProps = { | ||
dataset: KeplerTable; | ||
showDatasetTable: Function; | ||
showDeleteDataset: boolean; | ||
onTitleClick?: () => void; | ||
updateTableColor?: (d: string, c?: RGBColor) => void; | ||
removeDataset?: (d: string) => void; | ||
}; | ||
|
||
export type SourceDataCatalogProps = { | ||
datasets: Datasets; | ||
showDatasetTable: Function; | ||
showDeleteDataset: boolean; | ||
onTitleClick?: () => void; | ||
updateTableColor?: (d: string, c?: RGBColor) => void; | ||
removeDataset?: (d: string) => void; | ||
}; | ||
|
||
export type DatasetItemProps = { | ||
value: KeplerTable; | ||
}; | ||
|
||
export type SourceDataSelectorProps = { | ||
dataId: string; | ||
datasets: Datasets; | ||
disabled: boolean; | ||
defaultValue: string; | ||
inputTheme: string; | ||
onSelect: (items: ReadonlyArray<string | number | boolean | object> | null) => void; | ||
}; |