1 |
|
2 | import { ColumnApi, GridApi, GridOptions, ICellEditor, ICellRenderer, IDate, IFilter, IHeader, IHeaderGroup, IStatusPanel, IToolPanel, Module } from 'ag-grid-community';
|
3 | import { ChangeDetectionStrategyType } from './changeDetectionService';
|
4 | export interface SharedProps extends GridOptions {
|
5 | gridOptions?: GridOptions;
|
6 | modules?: Module[];
|
7 | containerStyle?: any;
|
8 | className?: string;
|
9 | setGridApi?: (gridApi: GridApi, columnApi: ColumnApi) => void;
|
10 | componentWrappingElement?: string;
|
11 | maxComponentCreationTimeMs?: number;
|
12 | }
|
13 | export interface AgReactUiProps extends SharedProps {
|
14 | }
|
15 | export interface AgGridReactProps extends SharedProps {
|
16 | children?: any;
|
17 | rowDataChangeDetectionStrategy?: ChangeDetectionStrategyType;
|
18 | disableStaticMarkup?: boolean;
|
19 | legacyComponentRendering?: boolean;
|
20 | }
|
21 | export interface AgReactComponent {
|
22 | getReactContainerStyle?: () => {};
|
23 | getReactContainerClasses?: () => string[];
|
24 | }
|
25 | export interface IHeaderGroupReactComp extends IHeaderGroup, AgReactComponent {
|
26 | }
|
27 | export interface IHeaderReactComp extends IHeader, AgReactComponent {
|
28 | }
|
29 | export interface IDateReactComp extends IDate, AgReactComponent {
|
30 | }
|
31 | export interface IFilterReactComp extends IFilter, AgReactComponent {
|
32 | }
|
33 | export interface ICellRendererReactComp extends ICellRenderer, AgReactComponent {
|
34 | }
|
35 | export interface ICellEditorReactComp extends ICellEditor, AgReactComponent {
|
36 | }
|
37 | export interface ILoadingCellRendererReactComp extends AgReactComponent {
|
38 | }
|
39 | export interface ILoadingOverlayReactComp extends AgReactComponent {
|
40 | }
|
41 | export interface INoRowsOverlayReactComp extends AgReactComponent {
|
42 | }
|
43 | export interface IStatusPanelReactComp extends IStatusPanel, AgReactComponent {
|
44 | }
|
45 | export interface IToolPanelReactComp extends IToolPanel, AgReactComponent {
|
46 | }
|
47 | export interface ITooltipReactComp extends AgReactComponent {
|
48 | }
|