1 | import type { BaseCellEditor, BaseDate, BaseDateParams, BaseFilter, BaseFilterParams, BaseFloatingFilter, BaseMenuItem, BaseMenuItemParams, BaseToolPanelParams, ICellEditorParams, ICellRendererParams, IDetailCellRendererParams, IFilter, IFloatingFilterParams, IGroupCellRendererParams, IHeaderGroupParams, IHeaderParams, ILoadingCellRendererParams, ILoadingOverlayParams, INoRowsOverlayParams, IStatusPanelParams, ITooltipParams } from 'ag-grid-community';
|
2 |
|
3 | export interface CustomCellEditorProps<TData = any, TValue = any, TContext = any> extends ICellEditorParams<TData, TValue, TContext> {
|
4 |
|
5 | initialValue: TValue | null | undefined;
|
6 |
|
7 | value: TValue | null | undefined;
|
8 |
|
9 | onValueChange: (value: TValue | null | undefined) => void;
|
10 | }
|
11 |
|
12 | export interface CustomDateProps<TData = any, TContext = any> extends BaseDateParams<TData, TContext> {
|
13 |
|
14 | date: Date | null;
|
15 |
|
16 | onDateChange: (date: Date | null) => void;
|
17 | }
|
18 |
|
19 | export interface CustomFilterProps<TData = any, TContext = any, TModel = any> extends BaseFilterParams<TData, TContext> {
|
20 |
|
21 | model: TModel | null;
|
22 |
|
23 | onModelChange: (model: TModel | null) => void;
|
24 | |
25 |
|
26 |
|
27 |
|
28 |
|
29 | onUiChange: () => void;
|
30 | }
|
31 |
|
32 | export interface CustomFloatingFilterProps<P = IFilter, TData = any, TContext = any, TModel = any> extends IFloatingFilterParams<P, TData, TContext> {
|
33 |
|
34 | model: TModel | null;
|
35 |
|
36 | onModelChange: (model: TModel | null) => void;
|
37 | }
|
38 |
|
39 | export interface CustomToolPanelProps<TData = any, TContext = any, TState = any> extends BaseToolPanelParams<TData, TContext, TState> {
|
40 | |
41 |
|
42 |
|
43 |
|
44 | state: TState | undefined;
|
45 | |
46 |
|
47 |
|
48 |
|
49 | onStateChange: (model: TState | undefined) => void;
|
50 | }
|
51 |
|
52 | export interface CustomMenuItemProps<TData = any, TContext = any> extends BaseMenuItemParams<TData, TContext> {
|
53 |
|
54 | active: boolean;
|
55 |
|
56 | expanded: boolean;
|
57 |
|
58 | onActiveChange: (active: boolean) => void;
|
59 | }
|
60 |
|
61 | export interface CustomLoadingOverlayProps<TData = any, TContext = any> extends ILoadingOverlayParams<TData, TContext> {
|
62 | }
|
63 |
|
64 | export interface CustomNoRowsOverlayProps<TData = any, TContext = any> extends INoRowsOverlayParams<TData, TContext> {
|
65 | }
|
66 |
|
67 | export interface CustomStatusPanelProps<TData = any, TContext = any> extends IStatusPanelParams<TData, TContext> {
|
68 | }
|
69 |
|
70 | export interface CustomCellRendererProps<TData = any, TValue = any, TContext = any> extends ICellRendererParams<TData, TValue, TContext> {
|
71 | }
|
72 |
|
73 | export interface CustomDetailCellRendererProps<TData = any, TDetail = any> extends IDetailCellRendererParams<TData, TDetail> {
|
74 | }
|
75 |
|
76 | export interface CustomGroupCellRendererProps<TData = any, TValue = any> extends IGroupCellRendererParams<TData, TValue> {
|
77 | }
|
78 |
|
79 | export interface CustomHeaderProps<TData = any, TContext = any> extends IHeaderParams<TData, TContext> {
|
80 | }
|
81 |
|
82 | export interface CustomHeaderGroupProps<TData = any, TContext = any> extends IHeaderGroupParams<TData, TContext> {
|
83 | }
|
84 |
|
85 | export interface CustomLoadingCellRendererProps<TData = any, TContext = any> extends ILoadingCellRendererParams<TData, TContext> {
|
86 | }
|
87 |
|
88 | export interface CustomTooltipProps<TData = any, TValue = any, TContext = any> extends ITooltipParams<TData, TValue, TContext> {
|
89 | }
|
90 |
|
91 | export interface CustomCellEditorCallbacks extends BaseCellEditor {
|
92 | }
|
93 |
|
94 | export interface CustomDateCallbacks extends BaseDate {
|
95 | }
|
96 |
|
97 | export interface CustomFilterCallbacks extends BaseFilter {
|
98 | }
|
99 |
|
100 | export interface CustomFloatingFilterCallbacks extends BaseFloatingFilter {
|
101 | }
|
102 |
|
103 | export interface CustomMenuItemCallbacks extends BaseMenuItem {
|
104 | }
|
105 |
|
106 | export declare function useGridCellEditor(callbacks: CustomCellEditorCallbacks): void;
|
107 |
|
108 | export declare function useGridDate(callbacks: CustomDateCallbacks): void;
|
109 |
|
110 | export declare function useGridFilter(callbacks: CustomFilterCallbacks): void;
|
111 |
|
112 | export declare function useGridFloatingFilter(callbacks: CustomFloatingFilterCallbacks): void;
|
113 |
|
114 | export declare function useGridMenuItem(callbacks: CustomMenuItemCallbacks): void;
|