@procore/data-table 14.4.2 → 14.4.3-next.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/CHANGELOG.md +7 -0
- package/dist/Analytics/Analytics.d.ts +18 -0
- package/dist/Analytics/Client.d.ts +10 -0
- package/dist/Analytics/index.d.ts +2 -0
- package/dist/Analytics/types.d.ts +21 -0
- package/dist/BulkActions/BulkActions.d.ts +10 -0
- package/dist/BulkActions/BulkEditActionButton.d.ts +6 -0
- package/dist/CellRenderers/AutoGroupCell.d.ts +15 -0
- package/dist/CellRenderers/BooleanCell.d.ts +18 -0
- package/dist/CellRenderers/ButtonsCell.d.ts +8 -0
- package/dist/CellRenderers/Cells.d.ts +19 -0
- package/dist/CellRenderers/CompanyCell.d.ts +15 -0
- package/dist/CellRenderers/CurrencyCell.d.ts +23 -0
- package/dist/CellRenderers/DataTableCell.d.ts +67 -0
- package/dist/CellRenderers/DateCell.d.ts +23 -0
- package/dist/CellRenderers/DateTimeCell.d.ts +21 -0
- package/dist/CellRenderers/FullWidthCell.d.ts +5 -0
- package/dist/CellRenderers/GrandTotalsLabel.d.ts +5 -0
- package/dist/CellRenderers/GroupCell.d.ts +34 -0
- package/dist/CellRenderers/InlineEditWrapper.d.ts +35 -0
- package/dist/CellRenderers/InlineError.d.ts +10 -0
- package/dist/CellRenderers/LinkCell.d.ts +13 -0
- package/dist/CellRenderers/MultiSelectCell.d.ts +20 -0
- package/dist/CellRenderers/NumberCell.d.ts +21 -0
- package/dist/CellRenderers/PeopleCell.d.ts +18 -0
- package/dist/CellRenderers/PercentCell.d.ts +23 -0
- package/dist/CellRenderers/PersonCell.d.ts +17 -0
- package/dist/CellRenderers/PillCell.d.ts +22 -0
- package/dist/CellRenderers/RowActionsCell.d.ts +16 -0
- package/dist/CellRenderers/RowCheckbox.d.ts +9 -0
- package/dist/CellRenderers/SelectCell.d.ts +27 -0
- package/dist/CellRenderers/TextAreaCell.d.ts +18 -0
- package/dist/CellRenderers/TextCell.d.ts +18 -0
- package/dist/CellRenderers/index.d.ts +16 -0
- package/dist/ClientSideDataTable.d.ts +25 -0
- package/dist/DataTable.d.ts +36 -0
- package/dist/EmptyState.d.ts +12 -0
- package/dist/FilterRenderers/ClientSideFilter.d.ts +11 -0
- package/dist/FilterRenderers/DateFilterRenderer.d.ts +47 -0
- package/dist/FilterRenderers/LocationFilterRenderer.d.ts +9 -0
- package/dist/FilterRenderers/MultiSelectFilterRenderer.d.ts +7 -0
- package/dist/FilterRenderers/NumberFilterRenderer.d.ts +23 -0
- package/dist/FilterRenderers/ServerSideFilter.d.ts +3 -0
- package/dist/FilterRenderers/index.d.ts +114 -0
- package/dist/FilterRenderers/useServerSideFilter.d.ts +16 -0
- package/dist/FilterRenderers/useServerSideFilterStorage.d.ts +3 -0
- package/dist/FilterRenderers/utils.d.ts +7 -0
- package/dist/GenericHeader/GenericColumnGroupHeader.d.ts +15 -0
- package/dist/GenericHeader/GenericHeader.d.ts +27 -0
- package/dist/Panels/BulkEdit.d.ts +65 -0
- package/dist/Panels/Configuration.d.ts +8 -0
- package/dist/Panels/Filters.d.ts +10 -0
- package/dist/Panels/StyledPanelSection.d.ts +4 -0
- package/dist/Panels/helpers.d.ts +12 -0
- package/dist/Panels/useContextPanel.d.ts +2 -0
- package/dist/QuickControls/ConfigPanelButton.d.ts +2 -0
- package/dist/QuickControls/EmptyResultsControlTooltip.d.ts +6 -0
- package/dist/QuickControls/FiltersPanelToggleButton.d.ts +9 -0
- package/dist/QuickControls/QuickControls.d.ts +8 -0
- package/dist/QuickControls/QuickFilters.d.ts +12 -0
- package/dist/QuickControls/RowGroupSelector.d.ts +5 -0
- package/dist/QuickControls/Search.d.ts +9 -0
- package/dist/QuickControls/ServerSideSearch.d.ts +13 -0
- package/dist/QuickFilterRenderers/DateQuickFilterRenderer.d.ts +30 -0
- package/dist/QuickFilterRenderers/LocationQuickFilterRenderer.d.ts +4 -0
- package/dist/QuickFilterRenderers/MultiSelectQuickFilterRenderer.d.ts +7 -0
- package/dist/QuickFilterRenderers/QuickFilterLabel.d.ts +13 -0
- package/dist/QuickFilterRenderers/SingleSelectQuickFilterRenderer.d.ts +19 -0
- package/dist/QuickFilterRenderers/SuperSelectFilterPreset.d.ts +8 -0
- package/dist/QuickFilterRenderers/index.d.ts +4 -0
- package/dist/QuickFilterRenderers/types.d.ts +16 -0
- package/dist/QuickFilterRenderers/utils.d.ts +6 -0
- package/dist/ServerSideDataTable.d.ts +25 -0
- package/dist/constants.d.ts +21 -0
- package/dist/icons.d.ts +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +220 -0
- package/dist/index.js.LICENSE.txt +60 -0
- package/dist/state/useFilterState.d.ts +36 -0
- package/dist/state/useRowSelectionState.d.ts +8 -0
- package/dist/types.d.ts +684 -0
- package/dist/utils/ContactItem.d.ts +12 -0
- package/dist/utils/RadioList.d.ts +12 -0
- package/dist/utils/addSubcomponents.d.ts +3 -0
- package/dist/utils/adjustRowDragIcon.d.ts +2 -0
- package/dist/utils/aggData.d.ts +3 -0
- package/dist/utils/aggregationFunctions.d.ts +2 -0
- package/dist/utils/buildDetailRows.d.ts +14 -0
- package/dist/utils/cellHelpers.d.ts +25 -0
- package/dist/utils/columnDefHelpers.d.ts +10 -0
- package/dist/utils/columnMenuHelpers.d.ts +11 -0
- package/dist/utils/companyOptionRenderer.d.ts +3 -0
- package/dist/utils/findNode.d.ts +6 -0
- package/dist/utils/generateHTMLString.d.ts +23 -0
- package/dist/utils/genericAnalyticsClient.d.ts +19 -0
- package/dist/utils/getCellValueTypographyProps.d.ts +5 -0
- package/dist/utils/getRootRowNode.d.ts +2 -0
- package/dist/utils/helpers.d.ts +14 -0
- package/dist/utils/internalTableContext.d.ts +45 -0
- package/dist/utils/isEmptyValue.d.ts +1 -0
- package/dist/utils/logger.d.ts +5 -0
- package/dist/utils/pagination.d.ts +5 -0
- package/dist/utils/personOptionRenderer.d.ts +3 -0
- package/dist/utils/rowSelectionHelpers.d.ts +54 -0
- package/dist/utils/serverSideSharedTestHelpers.d.ts +237 -0
- package/dist/utils/setSiblingGroupsRowSelection.d.ts +2 -0
- package/dist/utils/sort.d.ts +7 -0
- package/dist/utils/sortFilters.d.ts +2 -0
- package/dist/utils/test/i18n.d.ts +4 -0
- package/dist/utils/transformers.d.ts +25 -0
- package/dist/utils/translations.d.ts +1990 -0
- package/dist/utils/useTableApi.d.ts +14 -0
- package/dist/utils/waitForAsyncCondition.d.ts +1 -0
- package/package.json +9 -9
- package/dist/legacy/index.d.mts +0 -1399
- package/dist/legacy/index.d.ts +0 -1399
- package/dist/legacy/index.js +0 -88330
- package/dist/legacy/index.mjs +0 -88271
- package/dist/modern/index.d.mts +0 -1399
- package/dist/modern/index.d.ts +0 -1399
- package/dist/modern/index.js +0 -88100
- package/dist/modern/index.mjs +0 -88041
package/dist/modern/index.d.mts
DELETED
|
@@ -1,1399 +0,0 @@
|
|
|
1
|
-
import * as _ag_grid_community_core from '@ag-grid-community/core';
|
|
2
|
-
import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, ColumnPinnedType, RowHeightParams, CheckboxSelectionCallbackParams, ExcelDataType, RowGroupOpenedEvent, Module, RowSelectedEvent, ColumnEverythingChangedEvent, GetRowIdParams, ColumnApi, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
|
|
3
|
-
import * as React$1 from 'react';
|
|
4
|
-
import React__default from 'react';
|
|
5
|
-
import { AgGridReactProps, AgReactUiProps } from '@ag-grid-community/react';
|
|
6
|
-
import { DropdownFlyoutOption, FormSelectProps, FormMultiSelectProps, FormCurrencyProps, TypographyProps, InputProps, DateTimeFormatTypes, PillColor, TextAreaProps, ComponentWithFieldProp, FormFieldValueComponentProps } from '@procore/core-react';
|
|
7
|
-
import { FormatConfig } from '@procore/labs-financials-utils/dist/configs';
|
|
8
|
-
|
|
9
|
-
interface RequestInfo extends RequestInit {
|
|
10
|
-
headers: Record<string, any>;
|
|
11
|
-
}
|
|
12
|
-
interface AnalyticsConfig$1 {
|
|
13
|
-
bodyParams?: Record<string, any>;
|
|
14
|
-
client: (endpoint: string, request: RequestInfo) => void;
|
|
15
|
-
endpoint: string;
|
|
16
|
-
headers?: Record<string, any>;
|
|
17
|
-
trackEvent: (event: string, properties: Record<string, any>) => void;
|
|
18
|
-
}
|
|
19
|
-
declare class Analytics {
|
|
20
|
-
bodyParams: Record<string, any>;
|
|
21
|
-
client: (endpoint: string, request: RequestInfo) => void;
|
|
22
|
-
endpoint: string;
|
|
23
|
-
headers: Object;
|
|
24
|
-
constructor({ bodyParams, client, endpoint, headers, }: AnalyticsConfig$1);
|
|
25
|
-
trackEvent(event: string, properties?: Record<string, any>): void;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface AnalyticEvent {
|
|
29
|
-
key: string;
|
|
30
|
-
properties: Record<string, any>;
|
|
31
|
-
timestamp: Date;
|
|
32
|
-
project_id: number;
|
|
33
|
-
event_id: string;
|
|
34
|
-
page_id: string;
|
|
35
|
-
}
|
|
36
|
-
interface AnalyticsClient extends AnalyticsConfig$1 {
|
|
37
|
-
sendAllEvents: () => Promise<void>;
|
|
38
|
-
addEvent: AnalyticsConfig$1['trackEvent'];
|
|
39
|
-
}
|
|
40
|
-
interface AnalyticsConfig {
|
|
41
|
-
client: AnalyticsClient;
|
|
42
|
-
clientName: string;
|
|
43
|
-
}
|
|
44
|
-
interface AnalyticsBulkConfig extends AnalyticsConfig$1 {
|
|
45
|
-
projectId: number;
|
|
46
|
-
bulkEndpoint: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface GrandTotalsLabelRendererProps extends ICellRendererParams {
|
|
50
|
-
}
|
|
51
|
-
declare const GrandTotalsLabelRenderer: React__default.FunctionComponent<GrandTotalsLabelRendererProps>;
|
|
52
|
-
|
|
53
|
-
declare const columnSort: {
|
|
54
|
-
readonly asc: "asc";
|
|
55
|
-
readonly desc: "desc";
|
|
56
|
-
};
|
|
57
|
-
type ColumnSort = (typeof columnSort)[keyof typeof columnSort];
|
|
58
|
-
declare const pinColumnSide: {
|
|
59
|
-
readonly left: "left";
|
|
60
|
-
readonly right: "right";
|
|
61
|
-
};
|
|
62
|
-
type PinColumnSide = (typeof pinColumnSide)[keyof typeof pinColumnSide];
|
|
63
|
-
declare const rowSize: {
|
|
64
|
-
readonly sm: 33;
|
|
65
|
-
readonly md: 49;
|
|
66
|
-
readonly lg: 65;
|
|
67
|
-
};
|
|
68
|
-
type RowSize = (typeof rowSize)[keyof typeof rowSize];
|
|
69
|
-
|
|
70
|
-
type AcceptedTypes = NumberFilterModel$1['type'] | 'any_value' | 'no_value';
|
|
71
|
-
type NumberFilterModel = Omit<NumberFilterModel$1, 'type'> & {
|
|
72
|
-
type?: AcceptedTypes;
|
|
73
|
-
};
|
|
74
|
-
type NumberFilterValue = {
|
|
75
|
-
type?: AcceptedTypes;
|
|
76
|
-
filter?: number;
|
|
77
|
-
filterTo?: number;
|
|
78
|
-
} | undefined;
|
|
79
|
-
type NumberFilterProps = FilterComponentProps<unknown, NumberFilterValue>;
|
|
80
|
-
declare const NumberFilterRenderer: React__default.NamedExoticComponent<NumberFilterProps>;
|
|
81
|
-
|
|
82
|
-
interface MenuDropdownOption extends Omit<DropdownFlyoutOption, 'children'> {
|
|
83
|
-
action?: (params: ColDef | null) => void;
|
|
84
|
-
children?: MenuDropdownOption[];
|
|
85
|
-
menuType?: 'defaultMenuOptions' | 'menuOptions';
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
interface BulkEditResult {
|
|
89
|
-
/** The id of the selected row node. The value is the output from the getRowId callback */
|
|
90
|
-
id: number | string | undefined;
|
|
91
|
-
/** The row index of the selected row node */
|
|
92
|
-
rowIndex: IRowNode['rowIndex'];
|
|
93
|
-
/** The row data from before the bulk edit for the entire row */
|
|
94
|
-
oldRowData: {
|
|
95
|
-
[key: string]: any;
|
|
96
|
-
};
|
|
97
|
-
/** Row Data containing only the changed key/value pairs from the bulk edit */
|
|
98
|
-
changedRowData: {
|
|
99
|
-
[key: string]: any;
|
|
100
|
-
};
|
|
101
|
-
/** The entire updated row data including changes from the bulk edit */
|
|
102
|
-
newRowData: {
|
|
103
|
-
[key: string]: any;
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
/** For server side implementation, we may want to extend options to be an array,
|
|
107
|
-
* or a promise returning an array like server side filters */
|
|
108
|
-
interface SelectBulkEditorParams extends Omit<FormSelectProps, 'name'> {
|
|
109
|
-
}
|
|
110
|
-
interface MultiSelectBulkEditorParams extends Omit<FormMultiSelectProps, 'name'> {
|
|
111
|
-
}
|
|
112
|
-
interface CurrencyBulkEditorParams extends FormCurrencyProps {
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface ClientSideFilterProps<TValue = any[] | NumberFilterModel> {
|
|
116
|
-
filter: FilterRecord<TValue>;
|
|
117
|
-
columnDefinition: ColumnDefinition;
|
|
118
|
-
onChange?: (values: any[]) => void;
|
|
119
|
-
onRemove?: () => void;
|
|
120
|
-
overlayMatchesTriggerWidth?: boolean;
|
|
121
|
-
}
|
|
122
|
-
interface ServerSideFilterProps {
|
|
123
|
-
columnDefinition: ColumnDefinition;
|
|
124
|
-
overlayMatchesTriggerWidth?: boolean;
|
|
125
|
-
}
|
|
126
|
-
type FilterProps<TValue = any[] | NumberFilterModel> = ClientSideFilterProps<TValue> | ServerSideFilterProps;
|
|
127
|
-
|
|
128
|
-
interface ExportPageFormat {
|
|
129
|
-
pageWidthInInches: number;
|
|
130
|
-
pageHeightInInches?: number;
|
|
131
|
-
marginInPixels?: {
|
|
132
|
-
top: number;
|
|
133
|
-
left: number;
|
|
134
|
-
bottom: number;
|
|
135
|
-
right: number;
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
declare const rowSelectionState: {
|
|
140
|
-
readonly indeterminate: "indeterminate";
|
|
141
|
-
readonly selected: "selected";
|
|
142
|
-
readonly unselected: "unselected";
|
|
143
|
-
};
|
|
144
|
-
type RowSelectionState = (typeof rowSelectionState)[keyof typeof rowSelectionState];
|
|
145
|
-
interface AffectedRows {
|
|
146
|
-
[id: string]: {
|
|
147
|
-
node: IRowNode;
|
|
148
|
-
selectedState: RowSelectionState;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
interface DataTableCellRendererProps<TValue = any, TColumnDefinition extends ColumnDefinition = ColumnDefinition<TValue>> {
|
|
153
|
-
columnDefinition: TColumnDefinition;
|
|
154
|
-
/**
|
|
155
|
-
* Array of data for the row, keyed by field
|
|
156
|
-
*/
|
|
157
|
-
data: any;
|
|
158
|
-
/**
|
|
159
|
-
* Field name for the cell being rendered
|
|
160
|
-
*/
|
|
161
|
-
field: string;
|
|
162
|
-
/**
|
|
163
|
-
* Boolean for if the cell is a group cell
|
|
164
|
-
*/
|
|
165
|
-
isGroup: boolean;
|
|
166
|
-
/**
|
|
167
|
-
* If rendering in a nested table, this is the data for the parent row
|
|
168
|
-
*/
|
|
169
|
-
parentData: any | undefined;
|
|
170
|
-
/**
|
|
171
|
-
* If rendering in a nested table, this is the id of the parent row
|
|
172
|
-
*/
|
|
173
|
-
parentId: string | undefined;
|
|
174
|
-
/**
|
|
175
|
-
* The height of the row in pixels
|
|
176
|
-
*/
|
|
177
|
-
rowHeight: RowSize;
|
|
178
|
-
/**
|
|
179
|
-
* Will be "top" or "bottom" if the row is pinned, otherwise undefined
|
|
180
|
-
*/
|
|
181
|
-
rowPinned: string | undefined;
|
|
182
|
-
/**
|
|
183
|
-
* The api for working with and modifying the table data
|
|
184
|
-
*/
|
|
185
|
-
tableApi: TableApi;
|
|
186
|
-
/**
|
|
187
|
-
* The individual cell's value
|
|
188
|
-
*/
|
|
189
|
-
value: TValue;
|
|
190
|
-
/**
|
|
191
|
-
* Row index of current row
|
|
192
|
-
*/
|
|
193
|
-
rowIndex?: number;
|
|
194
|
-
}
|
|
195
|
-
interface DataTableCellEditorProps<TValue = any, TColumnDefinition extends ColumnDefinition = ColumnDefinition<TValue>> extends DataTableCellRendererProps<TValue, TColumnDefinition> {
|
|
196
|
-
eventKey: string | null;
|
|
197
|
-
ref?: ((instance: HTMLElement | null) => void) | React__default.MutableRefObject<HTMLElement | null> | null;
|
|
198
|
-
setDataValue: (field: string, newValue: TValue) => void;
|
|
199
|
-
stopEditing: () => void;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
interface BooleanCellRendererParams {
|
|
203
|
-
typographyProps?: TypographyProps;
|
|
204
|
-
}
|
|
205
|
-
type BooleanCellColumnDefinition<TValue = boolean> = ColumnDefinition<TValue, typeof BooleanCellRenderer, BooleanCellRendererParams>;
|
|
206
|
-
interface BooleanCellRendererProps<TValue = boolean> extends DataTableCellRendererProps<TValue, BooleanCellColumnDefinition<TValue>> {
|
|
207
|
-
}
|
|
208
|
-
declare const BooleanCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
209
|
-
interface BooleanCellEditorProps<TValue = boolean> extends DataTableCellEditorProps<TValue, BooleanCellColumnDefinition<TValue>> {
|
|
210
|
-
}
|
|
211
|
-
declare const BooleanCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
|
|
212
|
-
|
|
213
|
-
interface ButtonsCellRendererParams {
|
|
214
|
-
buttons: React__default.FunctionComponent<DataTableCellRendererProps>[];
|
|
215
|
-
}
|
|
216
|
-
type ButtonsCellColumnDefinition<TValue = undefined> = GranularRequired<ColumnDefinition<TValue, typeof ButtonsCellRenderer, ButtonsCellRendererParams>, 'cellRendererParams'>;
|
|
217
|
-
declare const ButtonsCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
218
|
-
|
|
219
|
-
interface CompanyCellRendererParams<TValue> {
|
|
220
|
-
typographyProps?: TypographyProps;
|
|
221
|
-
getCompanyName?: (companyInfo: TValue) => string;
|
|
222
|
-
getImageURL?: (companyInfo: TValue) => string;
|
|
223
|
-
}
|
|
224
|
-
type CompanyCellColumnDefinition<TValue = any, TFilterOption = any, TFilterValue = number | string> = ColumnDefinition<TValue, typeof CompanyCellRenderer, CompanyCellRendererParams<TValue>, never, // editor does not exist
|
|
225
|
-
never, // editor does not exist
|
|
226
|
-
TFilterOption, TFilterValue>;
|
|
227
|
-
interface CompanyCellRendererProps<TValue = any> extends DataTableCellRendererProps<TValue, CompanyCellColumnDefinition> {
|
|
228
|
-
}
|
|
229
|
-
declare const CompanyCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
230
|
-
|
|
231
|
-
interface CurrencyCellRendererParams {
|
|
232
|
-
typographyProps?: TypographyProps;
|
|
233
|
-
formatConfig?: Partial<FormatConfig>;
|
|
234
|
-
}
|
|
235
|
-
type CurrencyCellColumnDefinition<TValue = any> = ColumnDefinition<TValue, typeof CurrencyCellRenderer, CurrencyCellRendererParams, typeof CurrencyCellEditor, CurrencyCellEditorParams, '', '', 'currency', CurrencyBulkEditorParams> & {
|
|
236
|
-
rightAlign: true;
|
|
237
|
-
};
|
|
238
|
-
interface CurrencyCellRendererProps<TValue = string> extends DataTableCellRendererProps<TValue, CurrencyCellColumnDefinition<TValue>> {
|
|
239
|
-
}
|
|
240
|
-
declare const CurrencyCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
241
|
-
interface CurrencyCellEditorParams {
|
|
242
|
-
inputProps?: InputProps;
|
|
243
|
-
formatConfig?: Partial<FormatConfig>;
|
|
244
|
-
}
|
|
245
|
-
interface CurrencyCellEditorProps<TValue = string> extends DataTableCellEditorProps<TValue, CurrencyCellColumnDefinition<TValue>> {
|
|
246
|
-
}
|
|
247
|
-
declare const CurrencyCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
|
|
248
|
-
|
|
249
|
-
type PickedDateTimeFormatTypes = Extract<DateTimeFormatTypes, 'abbr-weekday-abbr-date' | 'date' | 'numeric-date' | 'weekday-date'>;
|
|
250
|
-
interface DateCellRendererParams {
|
|
251
|
-
dateFormatType?: PickedDateTimeFormatTypes;
|
|
252
|
-
typographyProps?: TypographyProps;
|
|
253
|
-
timeZone?: string;
|
|
254
|
-
}
|
|
255
|
-
interface DateCellColumnDefinition<TValue = string | Date | undefined> extends DateTimeCellColumnDefinition<TValue, typeof DateCellRenderer, DateCellRendererParams, typeof DateCellEditor, DateCellEditorParams> {
|
|
256
|
-
}
|
|
257
|
-
interface DateCellRendererProps<TValue = string | Date | undefined> extends DataTableCellRendererProps<TValue, DateCellColumnDefinition<TValue>> {
|
|
258
|
-
}
|
|
259
|
-
declare const DateCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
260
|
-
interface DateCellEditorParams {
|
|
261
|
-
disabledDate?: ((date: Date, today: Date) => boolean) | undefined;
|
|
262
|
-
timeZone?: string;
|
|
263
|
-
}
|
|
264
|
-
interface DateCellEditorProps<TValue = string | Date | undefined> extends DataTableCellEditorProps<TValue, DateCellColumnDefinition<TValue>> {
|
|
265
|
-
}
|
|
266
|
-
declare const DateCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
|
|
267
|
-
|
|
268
|
-
type GroupCellRendererParams<TInnerRendererParams> = {
|
|
269
|
-
/**
|
|
270
|
-
* turn off the row count
|
|
271
|
-
*/
|
|
272
|
-
suppressCount?: boolean;
|
|
273
|
-
/**
|
|
274
|
-
* enable checkbox selection
|
|
275
|
-
*/
|
|
276
|
-
checkbox?: boolean;
|
|
277
|
-
/**
|
|
278
|
-
* set to true to node including any padding (indentation) in the child rows
|
|
279
|
-
*/
|
|
280
|
-
suppressPadding?: boolean;
|
|
281
|
-
/**
|
|
282
|
-
* turn off double click for expand
|
|
283
|
-
*/
|
|
284
|
-
suppressDoubleClickExpand?: boolean;
|
|
285
|
-
/**
|
|
286
|
-
* suppress expand on Enter key
|
|
287
|
-
*/
|
|
288
|
-
suppressEnterExpand?: boolean;
|
|
289
|
-
/**
|
|
290
|
-
* the renderer to use inside the cell (after grouping functions are added)
|
|
291
|
-
*/
|
|
292
|
-
innerRenderer?: string;
|
|
293
|
-
/**
|
|
294
|
-
* provide a footer value getter
|
|
295
|
-
*/
|
|
296
|
-
footerValueGetter?: string | ((value: any) => string);
|
|
297
|
-
} & TInnerRendererParams;
|
|
298
|
-
type GroupCellColumnDefinition<TValue = any, TInnerRendererParams = object> = ColumnDefinition<TValue, typeof GroupCellRenderer, GroupCellRendererParams<TInnerRendererParams>>;
|
|
299
|
-
declare const GroupCellRenderer: React$1.FC<any>;
|
|
300
|
-
|
|
301
|
-
interface LinkCellRendererParams<TValue> {
|
|
302
|
-
typographyProps?: TypographyProps;
|
|
303
|
-
getURL: (value: TValue, data: any) => string;
|
|
304
|
-
}
|
|
305
|
-
type LinkCellColumnDefinition<TValue = any> = GranularRequired<ColumnDefinition<TValue, typeof LinkCellRenderer, LinkCellRendererParams<TValue>>, 'cellRendererParams'>;
|
|
306
|
-
interface LinkCellRendererProps<TValue = any> extends DataTableCellRendererProps<TValue, LinkCellColumnDefinition> {
|
|
307
|
-
}
|
|
308
|
-
declare const LinkCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
309
|
-
|
|
310
|
-
interface MultiSelectCellRendererParams<TValue, OptionValue> {
|
|
311
|
-
getId?: (cellValue: OptionValue) => string | number;
|
|
312
|
-
getLabel?: (cellValue: OptionValue) => string;
|
|
313
|
-
getValue?: (cellValue: TValue) => OptionValue[];
|
|
314
|
-
typographyProps?: TypographyProps;
|
|
315
|
-
}
|
|
316
|
-
type MultiSelectCellColumnDefinition<TValue = any[], OptionValue = any, TFilterOption = any, TFilterValue = number | string> = ColumnDefinition<TValue, typeof MultiSelectCellRenderer, MultiSelectCellRendererParams<TValue, OptionValue>, never, // editor does not exist
|
|
317
|
-
never, // editor does not exist
|
|
318
|
-
TFilterOption, TFilterValue, 'multiSelect', MultiSelectBulkEditorParams>;
|
|
319
|
-
interface MultiSelectCellRendererProps<TValue = any[], OptionValue = any> extends DataTableCellRendererProps<TValue, MultiSelectCellColumnDefinition<TValue, OptionValue>> {
|
|
320
|
-
}
|
|
321
|
-
declare const MultiSelectCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
322
|
-
|
|
323
|
-
interface NumberCellRendererParams {
|
|
324
|
-
typographyProps?: TypographyProps;
|
|
325
|
-
formatConfig?: Partial<FormatConfig>;
|
|
326
|
-
}
|
|
327
|
-
type NumberCellColumnDefinition<TValue = number> = ColumnDefinition<TValue, typeof NumberCellRenderer, NumberCellRendererParams, typeof NumberCellEditor, NumberCellEditorParams>;
|
|
328
|
-
interface NumberCellRendererProps<TValue = number | string> extends DataTableCellRendererProps<TValue, NumberCellColumnDefinition<TValue>> {
|
|
329
|
-
}
|
|
330
|
-
declare const NumberCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
331
|
-
interface NumberCellEditorParams {
|
|
332
|
-
inputProps?: InputProps;
|
|
333
|
-
}
|
|
334
|
-
interface NumberCellEditorProps<TValue = number> extends DataTableCellEditorProps<TValue, NumberCellColumnDefinition<TValue>> {
|
|
335
|
-
}
|
|
336
|
-
declare const NumberCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
|
|
337
|
-
|
|
338
|
-
interface PeopleCellRendererParams<TValue, PersonValue> extends AvatarStackItemFilter {
|
|
339
|
-
getCompanyName?: (person: PersonValue) => string;
|
|
340
|
-
getImageURL?: (person: PersonValue) => string;
|
|
341
|
-
getInitials?: (person: PersonValue) => string;
|
|
342
|
-
getPersonName?: (person: PersonValue) => string;
|
|
343
|
-
getValue?: (cellValue: TValue) => PersonValue[];
|
|
344
|
-
typographyProps?: TypographyProps;
|
|
345
|
-
}
|
|
346
|
-
type PeopleCellColumnDefinition<TValue = any[], PersonValue = any, TFilterOption = any, TFilterValue = number | string> = ColumnDefinition<TValue, typeof PeopleCellRenderer, PeopleCellRendererParams<TValue, PersonValue>, never, // editor does not exist
|
|
347
|
-
never, // editor does not exist
|
|
348
|
-
TFilterOption, TFilterValue>;
|
|
349
|
-
interface PeopleCellRendererProps<TValue = any[], PersonValue = any> extends DataTableCellRendererProps<TValue, PeopleCellColumnDefinition<TValue, PersonValue>> {
|
|
350
|
-
}
|
|
351
|
-
declare const PeopleCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
352
|
-
|
|
353
|
-
interface PercentCellRendererParams {
|
|
354
|
-
typographyProps?: TypographyProps;
|
|
355
|
-
formatConfig?: Partial<FormatConfig>;
|
|
356
|
-
}
|
|
357
|
-
interface PercentCellEditorParams {
|
|
358
|
-
inputProps?: InputProps;
|
|
359
|
-
formatConfig?: Partial<FormatConfig>;
|
|
360
|
-
}
|
|
361
|
-
type PercentCellColumnDefinition<TValue = any> = ColumnDefinition<TValue, typeof PercentCellRenderer, PercentCellRendererParams, typeof PercentCellEditor, PercentCellEditorParams> & {
|
|
362
|
-
rightAlign: true;
|
|
363
|
-
};
|
|
364
|
-
interface PercentCellRendererProps<TValue = string> extends DataTableCellRendererProps<TValue, PercentCellColumnDefinition<TValue>> {
|
|
365
|
-
}
|
|
366
|
-
declare const PercentCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
367
|
-
interface PercentCellEditorProps<TValue = string> extends DataTableCellEditorProps<TValue, PercentCellColumnDefinition<TValue>> {
|
|
368
|
-
}
|
|
369
|
-
declare const PercentCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
|
|
370
|
-
|
|
371
|
-
interface PillCellRendererParams<TValue> {
|
|
372
|
-
getColor: (item: TValue) => PillColor;
|
|
373
|
-
typographyProps?: TypographyProps;
|
|
374
|
-
}
|
|
375
|
-
type PillCellColumnDefinition<TValue = any, TFilterOption = any, TFilterValue = number | string> = GranularRequired<ColumnDefinition<TValue, typeof PillCellRenderer, PillCellRendererParams<TValue>, typeof PillSelectCellEditor, PillCellEditorParams<TValue>, TFilterOption, TFilterValue>, 'cellRendererParams'>;
|
|
376
|
-
interface PillCellRendererProps<TValue = any> extends DataTableCellRendererProps<TValue, PillCellColumnDefinition<TValue>> {
|
|
377
|
-
}
|
|
378
|
-
declare const PillCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
379
|
-
interface PillCellEditorParams<TValue> {
|
|
380
|
-
clearable?: boolean;
|
|
381
|
-
getId?: (item: TValue) => number | string;
|
|
382
|
-
getColor?: (item: TValue) => PillColor;
|
|
383
|
-
placeholder?: string;
|
|
384
|
-
selectOptions: TValue[] | ((rowData: Record<string, any>) => TValue[]) | ((rowData: Record<string, any>) => Promise<TValue[]>);
|
|
385
|
-
}
|
|
386
|
-
interface PillSelectCellEditorProps<TValue = any> extends DataTableCellEditorProps<TValue, PillCellColumnDefinition<TValue>> {
|
|
387
|
-
}
|
|
388
|
-
declare const PillSelectCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
|
|
389
|
-
|
|
390
|
-
type SelectCellColumnDefinition<TValue = any, TFilterOption = any, TFilterValue = number | string> = GranularRequired<ColumnDefinition<TValue, typeof SelectCellRenderer, {
|
|
391
|
-
typographyProps?: TypographyProps;
|
|
392
|
-
}, typeof SelectCellEditor, SelectCellEditorParams<TValue>, TFilterOption, TFilterValue, 'select', SelectBulkEditorParams>, 'cellEditor' | 'cellEditorParams'>;
|
|
393
|
-
interface SelectCellRendererProps<TValue = any> extends DataTableCellRendererProps<TValue, SelectCellColumnDefinition<TValue>> {
|
|
394
|
-
}
|
|
395
|
-
declare const SelectCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
396
|
-
type OnSearchParams = {
|
|
397
|
-
data: SelectCellEditorProps['data'];
|
|
398
|
-
event: React__default.ChangeEvent<HTMLInputElement>;
|
|
399
|
-
};
|
|
400
|
-
interface SelectCellEditorParams<TValue> {
|
|
401
|
-
clearable?: boolean;
|
|
402
|
-
getId?: (item: TValue) => number | string;
|
|
403
|
-
getOptionLabel?: (option: any) => string;
|
|
404
|
-
placeholder?: string;
|
|
405
|
-
selectOptions: TValue[] | ((rowData: Record<string, any>) => TValue[]) | ((rowData: Record<string, any>) => Promise<TValue[]>);
|
|
406
|
-
onSearch?: (params: OnSearchParams) => TValue[] | Promise<TValue[]>;
|
|
407
|
-
}
|
|
408
|
-
interface SelectCellEditorProps<TValue = any> extends DataTableCellEditorProps<TValue, SelectCellColumnDefinition<TValue>> {
|
|
409
|
-
}
|
|
410
|
-
declare const SelectCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
|
|
411
|
-
|
|
412
|
-
interface TextAreaCellRendererParams {
|
|
413
|
-
typographyProps?: TypographyProps;
|
|
414
|
-
}
|
|
415
|
-
interface TextAreaCellEditorParams {
|
|
416
|
-
textAreaProps?: TextAreaProps;
|
|
417
|
-
}
|
|
418
|
-
type TextAreaCellColumnDefinition<TValue = string, TFilterOption = any, TFilterValue = number | string> = ColumnDefinition<TValue, typeof TextAreaCellRenderer, TextAreaCellRendererParams, typeof TextAreaCellEditor, TextAreaCellEditorParams, TFilterOption, TFilterValue>;
|
|
419
|
-
interface TextAreaCellRendererProps<TValue = string> extends DataTableCellRendererProps<TValue, TextAreaCellColumnDefinition<TValue>> {
|
|
420
|
-
node?: RowNode;
|
|
421
|
-
}
|
|
422
|
-
interface TextAreaCellEditorProps<TValue = string> extends DataTableCellEditorProps<TValue, TextAreaCellColumnDefinition<TValue>> {
|
|
423
|
-
}
|
|
424
|
-
declare const TextAreaCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
|
|
425
|
-
declare const TextAreaCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
426
|
-
|
|
427
|
-
interface TextCellRendererParams {
|
|
428
|
-
typographyProps?: TypographyProps;
|
|
429
|
-
}
|
|
430
|
-
interface TextCellEditorParams {
|
|
431
|
-
inputProps?: InputProps;
|
|
432
|
-
}
|
|
433
|
-
type TextCellColumnDefinition<TValue = string, TFilterOption = any, TFilterValue = number | string> = ColumnDefinition<TValue, typeof TextCellRenderer, TextCellRendererParams, typeof TextCellEditor, TextCellEditorParams, TFilterOption, TFilterValue>;
|
|
434
|
-
interface TextCellRendererProps<TValue = string> extends DataTableCellRendererProps<TValue, TextCellColumnDefinition<TValue>> {
|
|
435
|
-
node?: RowNode;
|
|
436
|
-
}
|
|
437
|
-
declare const TextCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
438
|
-
interface TextCellEditorProps<TValue = string> extends DataTableCellEditorProps<TValue, TextCellColumnDefinition<TValue>> {
|
|
439
|
-
}
|
|
440
|
-
declare const TextCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
|
|
441
|
-
|
|
442
|
-
type GranularRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
443
|
-
type GranularPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
444
|
-
/** Column Definitions */
|
|
445
|
-
interface ColumnDefinition<TValue = any, TRenderer = React.FC<ICellRendererParams<any, TValue>>, TRendererParams = any, TEditor = React.ForwardRefExoticComponent<ICellEditorParams<any, TValue>>, TEditorParams = any, TFilterOption = TValue, TFilterValue = number | string | LocationFilterOpt | {
|
|
446
|
-
date: Date;
|
|
447
|
-
} | NumberFilterValue, TBulkEditor = string, TBulkEditorParams = any> {
|
|
448
|
-
aggFunc?: string | AggregationFunction<TValue>;
|
|
449
|
-
bulkEditable?: ((params: IsEditableParams) => boolean) | boolean;
|
|
450
|
-
bulkEditEditor?: TBulkEditor;
|
|
451
|
-
bulkEditEditorParams?: TBulkEditorParams;
|
|
452
|
-
children?: ColumnDefinition[] | ExtendedColDef[];
|
|
453
|
-
groupId?: string;
|
|
454
|
-
cellEditor?: TEditor;
|
|
455
|
-
cellEditorParams?: TEditorParams;
|
|
456
|
-
cellCSVFormatter?: (value: TValue) => string;
|
|
457
|
-
cellExcelFormatter?: (value: TValue) => string;
|
|
458
|
-
cellExcelDataType?: string;
|
|
459
|
-
cellRenderer?: TRenderer;
|
|
460
|
-
cellRendererParams?: TRendererParams;
|
|
461
|
-
cellRendererSelector?: (params?: ICellRendererParams) => {
|
|
462
|
-
component: TRenderer;
|
|
463
|
-
params: TRendererParams;
|
|
464
|
-
};
|
|
465
|
-
columnGroupName?: string;
|
|
466
|
-
comparator?: (a: any, b: any) => number;
|
|
467
|
-
editable?: ((params: IsEditableParams) => boolean) | boolean;
|
|
468
|
-
enableRowGroup?: boolean;
|
|
469
|
-
field: string;
|
|
470
|
-
filterRenderer?: React.FunctionComponent<FilterComponentProps>;
|
|
471
|
-
filterProps?: Omit<IFilterProps<TFilterOption, TFilterValue> | IDateFilterProps<TFilterOption, TFilterValue> | ILocationFilterProps<TFilterOption, TFilterValue> | INumberFilterProps<{
|
|
472
|
-
id: NumberFilterModel['type'];
|
|
473
|
-
label: string;
|
|
474
|
-
}, TFilterValue>, 'columnDefinition'>;
|
|
475
|
-
quickFilterRenderer?: React.FunctionComponent<ClientSideFilterProps | ServerSideFilterProps>;
|
|
476
|
-
flex?: number;
|
|
477
|
-
getStringFormattedValue?: (value: TValue) => string;
|
|
478
|
-
getFilterKeyCreator?: ColDef['keyCreator'];
|
|
479
|
-
headerName?: string;
|
|
480
|
-
columnHeaderParams?: {
|
|
481
|
-
menuOptions?: MenuDropdownOption[];
|
|
482
|
-
headerNode?: (props: {
|
|
483
|
-
columnDefinition: ColumnDefinition;
|
|
484
|
-
}) => React.ReactNode;
|
|
485
|
-
};
|
|
486
|
-
hidden?: boolean;
|
|
487
|
-
/** @deprecated please use pinned instead */
|
|
488
|
-
initialIsPinned?: PinColumnSide;
|
|
489
|
-
initialSort?: ColumnSort;
|
|
490
|
-
lockPinned?: boolean;
|
|
491
|
-
lockVisible?: boolean;
|
|
492
|
-
marryChildren?: boolean;
|
|
493
|
-
maxWidth?: number;
|
|
494
|
-
minWidth?: number;
|
|
495
|
-
onCellValueChanged?: (params: CellValueChangeParams<TValue>) => void;
|
|
496
|
-
pinned?: PinColumnSide;
|
|
497
|
-
resizable?: boolean;
|
|
498
|
-
rightAlign?: boolean;
|
|
499
|
-
rowGroup?: boolean;
|
|
500
|
-
sortable?: boolean;
|
|
501
|
-
suppressMenu?: boolean;
|
|
502
|
-
suppressMovable?: boolean;
|
|
503
|
-
suppressSizeToFit?: boolean;
|
|
504
|
-
valueGetter?: (params: ValueGetterParams) => TValue;
|
|
505
|
-
valueParser?: (params: ValueParserParams) => TValue;
|
|
506
|
-
valueSetter?: (params: ValueSetterParams) => boolean;
|
|
507
|
-
valueValidator?: ValueValidator<TValue>;
|
|
508
|
-
width?: number;
|
|
509
|
-
autoHeight?: boolean;
|
|
510
|
-
wrapText?: boolean;
|
|
511
|
-
lockPosition?: ColDef['lockPosition'];
|
|
512
|
-
}
|
|
513
|
-
interface ExtendedColDef extends ColDef {
|
|
514
|
-
bulkEditable?: ((params: IsEditableParams) => boolean) | boolean;
|
|
515
|
-
valueValidator?: ValueValidator;
|
|
516
|
-
bulkEditEditor?: 'number' | 'text';
|
|
517
|
-
cellCSVFormatter?: (v: any) => any;
|
|
518
|
-
cellExcelFormatter?: (v: any) => any;
|
|
519
|
-
colGroupName?: string;
|
|
520
|
-
children?: ExtendedColDef[];
|
|
521
|
-
groupId?: string;
|
|
522
|
-
}
|
|
523
|
-
interface NestedColumnDefinition {
|
|
524
|
-
children: ColumnDefinition[];
|
|
525
|
-
groupId: string;
|
|
526
|
-
headerName: string;
|
|
527
|
-
columnGroupShow?: 'open' | 'closed';
|
|
528
|
-
marryChildren?: boolean;
|
|
529
|
-
}
|
|
530
|
-
/** Controls the type of filtering: single, range,
|
|
531
|
-
* or up to user choice (either) */
|
|
532
|
-
type DateFilterSelectionType = 'single' | 'range' | 'either';
|
|
533
|
-
interface DateTimeCellColumnDefinition<TValue = any, TRenderer = string, TRendererParams = any, TEditor = string, TEditorParams = any> extends ColumnDefinition<TValue, TRenderer, TRendererParams, TEditor, TEditorParams, {
|
|
534
|
-
date: Date;
|
|
535
|
-
}, string> {
|
|
536
|
-
filterProps?: Omit<IDateFilterProps<{
|
|
537
|
-
date: Date;
|
|
538
|
-
}, string>, 'columnDefinition'>;
|
|
539
|
-
/** See this this list of timezones: https://github.com/eggert/tz/blob/main/zone1970.tab */
|
|
540
|
-
timeZone?: string;
|
|
541
|
-
}
|
|
542
|
-
interface LocationFilterOpt {
|
|
543
|
-
id: number | string;
|
|
544
|
-
label: string;
|
|
545
|
-
}
|
|
546
|
-
interface LocationColumnDefinition extends Omit<ColumnDefinition, 'filterProps'> {
|
|
547
|
-
filterProps?: ILocationFilterProps<LocationFilterOpt, string>;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
/** End Column Definitions */
|
|
551
|
-
interface TableApi {
|
|
552
|
-
applyListFilter: (field: string, values: any[]) => Promise<void>;
|
|
553
|
-
applyNumberFilter: (field: string, values: Omit<NumberFilterModel, 'filterType'>) => Promise<void>;
|
|
554
|
-
applyTransaction: (rowDataTransaction: RowDataTransaction) => RowNodeTransaction | null | undefined;
|
|
555
|
-
applyServerSideTransaction: (transaction: ServerSideTransaction) => ReturnType<GridApi['applyServerSideTransaction']>;
|
|
556
|
-
collapseAll: () => void;
|
|
557
|
-
exportToCSV: (config: CSVExportConfig) => void;
|
|
558
|
-
expandAll: () => void;
|
|
559
|
-
exportToExcel: (config: ExcelExportConfig) => void;
|
|
560
|
-
exportToHTMLString: (config?: HTMLStringExportConfig) => Promise<string>;
|
|
561
|
-
/**
|
|
562
|
-
* Returns an array of column definitions (of type ColumnDefinition from DataTable) transformed
|
|
563
|
-
* from ag-grid's current array of col defs (of type ColDef from ag-grid)
|
|
564
|
-
*/
|
|
565
|
-
getColumnDefinitions: () => ColumnDefinition[];
|
|
566
|
-
getDetailGridTableApi: (rowId: string) => PartialTableApi | undefined;
|
|
567
|
-
getRootAggregateData: () => any;
|
|
568
|
-
/**
|
|
569
|
-
* For now, used for testing to detect open editors. If programmatic editing
|
|
570
|
-
* is something we want to enable, we can consider making this public
|
|
571
|
-
* @private
|
|
572
|
-
*/
|
|
573
|
-
getCellEditorInstances: () => ICellEditor[];
|
|
574
|
-
/**
|
|
575
|
-
* Get the sorted leaf and group nodes remaining after filtering. Note: This only works for tables using the client side row model.
|
|
576
|
-
*/
|
|
577
|
-
getFilteredAndSortedRowNodes: () => RowNode[];
|
|
578
|
-
getListFilter: (field: string) => Promise<any | undefined>;
|
|
579
|
-
getListFilters: (fields?: string[]) => Promise<ListFilter[]>;
|
|
580
|
-
getTableConfiguration: () => DataTableConfig;
|
|
581
|
-
getBulkEditColumns: () => ColumnDefinition[];
|
|
582
|
-
hideContextPanel: ContextPanelApi['hide'];
|
|
583
|
-
isAnyFilterPresent: () => boolean;
|
|
584
|
-
isSearchPresent: () => boolean;
|
|
585
|
-
refreshCells: (params?: RefreshCellsParams) => void;
|
|
586
|
-
refreshServerSide: (params: RefreshServerSideDataParams) => void;
|
|
587
|
-
removeAllFilters: () => void;
|
|
588
|
-
removeFilter: (field: string) => Promise<void>;
|
|
589
|
-
setColumnsVisibility: (field: string[], visibility: boolean) => void;
|
|
590
|
-
setColumnVisibility: (field: string, visibility: boolean) => void;
|
|
591
|
-
setLoading: (loading: boolean, message?: string) => void;
|
|
592
|
-
setPinnedBottomRowData: (rows: any[]) => void;
|
|
593
|
-
setRowNodeExpanded: (rowNode: RowNode$1, expanded: boolean) => void;
|
|
594
|
-
setRowGrouping: (group: string[]) => void;
|
|
595
|
-
setRowHeight: (size: RowSize) => void;
|
|
596
|
-
setSearchValue: (value: string) => void;
|
|
597
|
-
setTableConfiguration: (config: DataTableConfig) => void;
|
|
598
|
-
showContextPanel: ContextPanelApi['show'];
|
|
599
|
-
sizeColumnsToFit: (tableWidth?: number) => void;
|
|
600
|
-
/**
|
|
601
|
-
* Get row data for all leaf row nodes. Note: This only works for tables using the client side row model.
|
|
602
|
-
*/
|
|
603
|
-
getRowData: () => any[];
|
|
604
|
-
setRowData: (items: any[]) => void;
|
|
605
|
-
getSelectedRows: () => any[];
|
|
606
|
-
/**
|
|
607
|
-
* Select all rows, regardless of filtering and rows that are not visible due to grouping being enabled and their groups not expanded.
|
|
608
|
-
* Note: This currently doesn't work for SSRM tables.
|
|
609
|
-
*/
|
|
610
|
-
selectAll: () => void;
|
|
611
|
-
/** Clear all row selections, regardless of filtering. */
|
|
612
|
-
deselectAll: () => void;
|
|
613
|
-
/** Auto-sizes a column based on its contents. */
|
|
614
|
-
autoSizeColumn?: (key: string | Column, skipHeader?: boolean) => void;
|
|
615
|
-
/** Same as `autoSizeColumn`, but provide a list of column keys. */
|
|
616
|
-
autoSizeColumns?: (keys: (string | Column)[], skipHeader?: boolean) => void;
|
|
617
|
-
/** Calls `autoSizeColumns` on all displayed columns. */
|
|
618
|
-
autoSizeAllColumns?: (skipHeader?: boolean) => void;
|
|
619
|
-
/**
|
|
620
|
-
* Scroll a row into view and optionally focus on one of its cells. If no argument is passed to `focusField` it will default to not applying focus.
|
|
621
|
-
* Once in view the row will be positioned at the top, middle or bottom of the visible table rows depending on the optional `position` parameter.
|
|
622
|
-
* If no argument is passsed to `position` it will default to doing the minimum amount of scrolling required to show the row.
|
|
623
|
-
* */
|
|
624
|
-
scrollToRow(rowIndex: number, focusField?: string, position?: 'top' | 'bottom' | 'middle'): void;
|
|
625
|
-
/**
|
|
626
|
-
* Selects row nodes by their respective row node IDs.
|
|
627
|
-
* The row node ID is the one you provide from the callback `getRowId(data)`,
|
|
628
|
-
* otherwise the ID is a number auto-generated by the grid when the row data is set.
|
|
629
|
-
*/
|
|
630
|
-
selectRows: (rowIds: (string | number)[], source?: SelectionEventSourceType) => void;
|
|
631
|
-
/**
|
|
632
|
-
* Deselects row nodes by their respective row node IDs.
|
|
633
|
-
* The row node ID is the one you provide from the callback `getRowId(data)`,
|
|
634
|
-
* otherwise the ID is a number auto-generated by the grid when the row data is set.
|
|
635
|
-
*/
|
|
636
|
-
deselectRows: (rowIds: (string | number)[], source?: SelectionEventSourceType) => void;
|
|
637
|
-
/**
|
|
638
|
-
* Set a function determining if selection is enabled for each row as it's loaded into the table.
|
|
639
|
-
* Note: Changing this will not affect existing rows that have already been loaded. Additionally,
|
|
640
|
-
* selected rows which are later disabled remain selected.
|
|
641
|
-
*/
|
|
642
|
-
setIsRowSelectable?(isRowSelectableFunc: IsRowSelectable): void;
|
|
643
|
-
}
|
|
644
|
-
type PartialTableApi = Pick<TableApi, 'applyTransaction' | 'applyServerSideTransaction' | 'collapseAll' | 'deselectAll' | 'expandAll' | 'getColumnDefinitions' | 'getDetailGridTableApi' | 'getFilteredAndSortedRowNodes' | 'getRootAggregateData' | 'getRowData' | 'getSelectedRows' | 'getTableConfiguration' | 'refreshCells' | 'scrollToRow' | 'selectAll' | 'setPinnedBottomRowData' | 'setRowData' | 'setRowNodeExpanded' | 'sizeColumnsToFit'>;
|
|
645
|
-
type AgDomLayout = 'normal' | 'autoHeight' | 'print' | undefined;
|
|
646
|
-
interface IsRowSelectable {
|
|
647
|
-
(node: RowNode): boolean;
|
|
648
|
-
}
|
|
649
|
-
interface RowSelectionRef {
|
|
650
|
-
affectedRows: AffectedRows;
|
|
651
|
-
enabled?: boolean | ((params: RowSelectablePredicateParams<any>) => boolean);
|
|
652
|
-
getRowId: DataTableProps['getRowId'];
|
|
653
|
-
siblingGroupsRowDisabled?: boolean;
|
|
654
|
-
}
|
|
655
|
-
interface CellValueChangeParams<TValue> {
|
|
656
|
-
field: string;
|
|
657
|
-
rowData: Record<string, any>;
|
|
658
|
-
newValue: TValue;
|
|
659
|
-
oldValue: TValue;
|
|
660
|
-
rowIndex?: number | null;
|
|
661
|
-
}
|
|
662
|
-
interface FirstDataRenderedEvent<TData = any, TContext = any> {
|
|
663
|
-
firstRow: number;
|
|
664
|
-
lastRow: number;
|
|
665
|
-
api: GridApi<TData>;
|
|
666
|
-
columnApi: ColumnApi;
|
|
667
|
-
context: TContext;
|
|
668
|
-
type: string;
|
|
669
|
-
}
|
|
670
|
-
type AgSort = 'asc' | 'desc' | null | undefined;
|
|
671
|
-
interface ColumnConfig {
|
|
672
|
-
field: string;
|
|
673
|
-
flex?: number | null | undefined;
|
|
674
|
-
hidden: boolean | null | undefined;
|
|
675
|
-
pinned: ColumnPinnedType;
|
|
676
|
-
rowGroup: boolean | null | undefined;
|
|
677
|
-
rowGroupIndex: number | null | undefined;
|
|
678
|
-
sort: AgSort;
|
|
679
|
-
sortIndex: number | null | undefined;
|
|
680
|
-
width: number | undefined;
|
|
681
|
-
}
|
|
682
|
-
type ColumnGroupStateConfig = {
|
|
683
|
-
groupId: string;
|
|
684
|
-
open: boolean;
|
|
685
|
-
};
|
|
686
|
-
type ContextPanelContent = 'configuration' | 'custom' | 'filters' | 'bulkEdit';
|
|
687
|
-
interface ContextPanelApi {
|
|
688
|
-
content?: ContextPanelContent;
|
|
689
|
-
hide: () => void;
|
|
690
|
-
isVisible: boolean;
|
|
691
|
-
show: (content: ContextPanelContent) => void;
|
|
692
|
-
}
|
|
693
|
-
interface CustomFooterConfig {
|
|
694
|
-
height?: RowSize;
|
|
695
|
-
id: string;
|
|
696
|
-
}
|
|
697
|
-
interface AgGetDetailRowDataParams<TRow = any> {
|
|
698
|
-
/** Row node for the details request */
|
|
699
|
-
node: RowNode;
|
|
700
|
-
/** Data for the current row */
|
|
701
|
-
data: TRow;
|
|
702
|
-
/** Callback to pass the rows back for the grid request */
|
|
703
|
-
successCallback(rowData: any[]): void;
|
|
704
|
-
}
|
|
705
|
-
interface AvatarStackItemFilter {
|
|
706
|
-
avatarStackItemFilter?: (x: any) => boolean;
|
|
707
|
-
}
|
|
708
|
-
interface GetDetailRowDataParams<TRow = any> extends Omit<AgGetDetailRowDataParams<TRow>, 'node'> {
|
|
709
|
-
}
|
|
710
|
-
type GetRowHeightWithFooters = (customFooters: CustomFooterConfig[] | undefined) => (params: Partial<RowHeightParams>) => number;
|
|
711
|
-
interface DetailRowConfig<TRow = any> {
|
|
712
|
-
autoGroupColumnDefinition?: ColumnDefinition;
|
|
713
|
-
columnDefinitions: ColumnDefinition[];
|
|
714
|
-
getDetailRowData: (params: GetDetailRowDataParams<TRow>) => void;
|
|
715
|
-
height?: 'auto' | number;
|
|
716
|
-
isExpandable?: (rowData: TRow) => boolean;
|
|
717
|
-
customFooters?: CustomFooterConfig[];
|
|
718
|
-
/** See ag-grid docs for more info: https://www.ag-grid.com/javascript-data-grid/master-detail-refresh/ */
|
|
719
|
-
refreshStrategy?: 'everything' | 'rows' | 'nothing';
|
|
720
|
-
rowSelectionEnabled?: boolean | ((params: CheckboxSelectionCallbackParams<TRow>) => boolean);
|
|
721
|
-
rowSelection?: 'multiple' | 'single';
|
|
722
|
-
rowMultiSelectWithClick?: boolean;
|
|
723
|
-
suppressRowClickSelection?: boolean;
|
|
724
|
-
}
|
|
725
|
-
type CustomRendererCell = {
|
|
726
|
-
component: React.ComponentType<any>;
|
|
727
|
-
editorType?: 'input' | 'select';
|
|
728
|
-
name: string;
|
|
729
|
-
type: 'renderer';
|
|
730
|
-
};
|
|
731
|
-
type CustomEditorCell = {
|
|
732
|
-
component: React.ForwardRefExoticComponent<any>;
|
|
733
|
-
editorType: 'input' | 'select';
|
|
734
|
-
name: string;
|
|
735
|
-
type: 'editor';
|
|
736
|
-
};
|
|
737
|
-
type CustomFilter = {
|
|
738
|
-
component: React.FunctionComponent<any>;
|
|
739
|
-
name: string;
|
|
740
|
-
};
|
|
741
|
-
type CustomBulkEditorFields = {
|
|
742
|
-
[key: string]: {
|
|
743
|
-
component: ComponentWithFieldProp<any, FormFieldValueComponentProps<any>>;
|
|
744
|
-
isEmpty: (value: any, defaultIsEmpty: (value: any) => boolean) => boolean;
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
interface CSVExportConfig {
|
|
748
|
-
fileName: string;
|
|
749
|
-
columnKeys?: string[];
|
|
750
|
-
skipFooters?: boolean;
|
|
751
|
-
skipGroups?: boolean;
|
|
752
|
-
skipPinnedBottom?: boolean;
|
|
753
|
-
skipPinnedTop?: boolean;
|
|
754
|
-
}
|
|
755
|
-
interface ExcelExportConfig {
|
|
756
|
-
fileName: string;
|
|
757
|
-
columnKeys?: string[];
|
|
758
|
-
sheetName?: string;
|
|
759
|
-
}
|
|
760
|
-
interface DataTableConfig {
|
|
761
|
-
columnState: ColumnConfig[];
|
|
762
|
-
columnGroupState?: ColumnGroupStateConfig[];
|
|
763
|
-
filters?: {
|
|
764
|
-
[key: string]: any;
|
|
765
|
-
} | undefined;
|
|
766
|
-
rowHeight?: RowSize;
|
|
767
|
-
serverFilters?: IServerFilter[];
|
|
768
|
-
}
|
|
769
|
-
interface HTMLStringExportConfig {
|
|
770
|
-
header?: React.FunctionComponent;
|
|
771
|
-
preserveColumnWidths?: boolean;
|
|
772
|
-
pageFormat?: ExportPageFormat;
|
|
773
|
-
showTableHeaderOnEveryPage?: boolean;
|
|
774
|
-
totalRowCount?: number;
|
|
775
|
-
}
|
|
776
|
-
interface IsEditableParams {
|
|
777
|
-
columnDefinition: ColumnDefinition;
|
|
778
|
-
data: Record<string, any>;
|
|
779
|
-
node: RowNode;
|
|
780
|
-
}
|
|
781
|
-
interface SortModel {
|
|
782
|
-
/** The column that is being sorted */
|
|
783
|
-
field: string;
|
|
784
|
-
/** The sort direction, ascending or descending */
|
|
785
|
-
sort: 'asc' | 'desc';
|
|
786
|
-
}
|
|
787
|
-
interface ServerSideGetRowsRequest {
|
|
788
|
-
/** The row index of the last row of request data
|
|
789
|
-
* or undefined from all rows */
|
|
790
|
-
endRow: number | undefined;
|
|
791
|
-
/** Array of fields of grouped columns that are currently expanded */
|
|
792
|
-
groupKeys: string[];
|
|
793
|
-
/** Array of fields of all columns that are grouped */
|
|
794
|
-
rowGroupCols: ColumnDefinition[];
|
|
795
|
-
/** The value entered in the search */
|
|
796
|
-
searchValue: string;
|
|
797
|
-
/** Contains the selected filters; the filter type,
|
|
798
|
-
* and the value being filtered on */
|
|
799
|
-
serverFilters: IServerFilter[];
|
|
800
|
-
/** Array of objects consisting of the field of the column being sorted,
|
|
801
|
-
* along with the sort direction ('asc' or 'desc')
|
|
802
|
-
*/
|
|
803
|
-
sortModel: SortModel[];
|
|
804
|
-
/** The row index of the first row of requested data
|
|
805
|
-
* or undefined from all rows */
|
|
806
|
-
startRow: number | undefined;
|
|
807
|
-
/** The list of columns which are being aggregated */
|
|
808
|
-
valueCols: ColumnDefinition[];
|
|
809
|
-
}
|
|
810
|
-
type SuccessParams = {
|
|
811
|
-
/** The collection of data for a given request */
|
|
812
|
-
rowData: any[];
|
|
813
|
-
/** The total amount of rows */
|
|
814
|
-
rowCount?: number;
|
|
815
|
-
/** @private */
|
|
816
|
-
storeInfo?: any;
|
|
817
|
-
};
|
|
818
|
-
type UpdateServerSideDataSourceParams = {
|
|
819
|
-
search?: ISearchState;
|
|
820
|
-
filter?: {
|
|
821
|
-
field: string;
|
|
822
|
-
value: any;
|
|
823
|
-
};
|
|
824
|
-
};
|
|
825
|
-
type ServerSideParamsOptions = {
|
|
826
|
-
/**
|
|
827
|
-
* Enable pagination
|
|
828
|
-
* @default true
|
|
829
|
-
*/
|
|
830
|
-
pagination?: boolean;
|
|
831
|
-
/**
|
|
832
|
-
* Enable sorting
|
|
833
|
-
* @default true
|
|
834
|
-
*/
|
|
835
|
-
sort?: boolean;
|
|
836
|
-
/**
|
|
837
|
-
* Enable filtering
|
|
838
|
-
* @default true
|
|
839
|
-
*/
|
|
840
|
-
filters?: boolean;
|
|
841
|
-
/**
|
|
842
|
-
* Enable searching
|
|
843
|
-
* @default true
|
|
844
|
-
*/
|
|
845
|
-
search?: boolean;
|
|
846
|
-
/**
|
|
847
|
-
* Enable grouping
|
|
848
|
-
* @default true
|
|
849
|
-
*/
|
|
850
|
-
group?: boolean;
|
|
851
|
-
/**
|
|
852
|
-
* Custom search param key
|
|
853
|
-
* @default filters[search]
|
|
854
|
-
*/
|
|
855
|
-
searchKey?: string;
|
|
856
|
-
};
|
|
857
|
-
interface RowActionsConfig extends Omit<ColDef, 'field' | 'pinned' | 'lockPinned' | 'lockVisible'> {
|
|
858
|
-
}
|
|
859
|
-
type ServerSideGetRowsParams = {
|
|
860
|
-
/** Callback function to indicate that data fetching failed */
|
|
861
|
-
onError(): void;
|
|
862
|
-
/** Callback function to load row data into DataTable */
|
|
863
|
-
onSuccess(params: SuccessParams): void;
|
|
864
|
-
/** The data request object */
|
|
865
|
-
request: ServerSideGetRowsRequest;
|
|
866
|
-
/** Function that returns URL params from current request */
|
|
867
|
-
getParams(options?: ServerSideParamsOptions): URLSearchParams;
|
|
868
|
-
};
|
|
869
|
-
type RefreshServerSideDataParams = {
|
|
870
|
-
route?: string[];
|
|
871
|
-
purge?: boolean;
|
|
872
|
-
};
|
|
873
|
-
type RowActivePredicateParams<TRow = any> = {
|
|
874
|
-
data: TRow;
|
|
875
|
-
node: RowNode;
|
|
876
|
-
rowIndex: number;
|
|
877
|
-
};
|
|
878
|
-
type RowSelectablePredicateParams<TRow = any> = {
|
|
879
|
-
data: TRow;
|
|
880
|
-
node: RowNode;
|
|
881
|
-
rowIndex: number | null;
|
|
882
|
-
};
|
|
883
|
-
interface DTExcelFormats {
|
|
884
|
-
id: string;
|
|
885
|
-
numberFormat?: {
|
|
886
|
-
format: string;
|
|
887
|
-
};
|
|
888
|
-
dataType?: ExcelDataType;
|
|
889
|
-
}
|
|
890
|
-
type ISearchState = string;
|
|
891
|
-
declare enum SelectAllState {
|
|
892
|
-
All = "all",
|
|
893
|
-
None = "none",
|
|
894
|
-
Partial = "partial"
|
|
895
|
-
}
|
|
896
|
-
type RowGroupToggledEvent<TRow> = Pick<RowGroupOpenedEvent<TRow>, 'expanded' | 'rowIndex'> & {
|
|
897
|
-
node: RowNode;
|
|
898
|
-
};
|
|
899
|
-
interface TableProps<TRow = any, TBottomRow = any> {
|
|
900
|
-
alwaysShowPseudoEditors?: boolean;
|
|
901
|
-
autoGroupColumnDefinition?: ColumnDefinition;
|
|
902
|
-
rowActionsConfig?: RowActionsConfig;
|
|
903
|
-
/**
|
|
904
|
-
* Overrides internal props for AgGridReact. This is not guaranteed under DataTable SemVer
|
|
905
|
-
* and can break during any upgrade of the ag-grid-react package
|
|
906
|
-
*
|
|
907
|
-
* For documentation see: {@link https://www.ag-grid.com/react-data-grid/grid-options/}
|
|
908
|
-
* The ag-grid changelog can be found here: {@link https://www.ag-grid.com/changelog/}
|
|
909
|
-
*
|
|
910
|
-
* Warning: This can break normal Data Table functionality.
|
|
911
|
-
*/
|
|
912
|
-
UNSAFE_internalAGGridOverrides?: AgGridReactProps | AgReactUiProps;
|
|
913
|
-
customFooters?: CustomFooterConfig[];
|
|
914
|
-
columnHeaderMenuOptions?: MenuDropdownOption[];
|
|
915
|
-
/**
|
|
916
|
-
* @deprecated Please use `detailRowConfig` instead
|
|
917
|
-
* @deprecatedSince 11.13.0
|
|
918
|
-
*/
|
|
919
|
-
detailRowConfigs?: DetailRowConfig<TRow>[];
|
|
920
|
-
detailRowConfig?: DetailRowConfig<TRow>;
|
|
921
|
-
/**
|
|
922
|
-
* @deprecated Please use `detailRowConfig.rowSelectionEnabled` instead
|
|
923
|
-
* @deprecatedSince 11.13.0
|
|
924
|
-
*/
|
|
925
|
-
detailRowSelectionEnabled?: boolean;
|
|
926
|
-
siblingGroupsRowSelectionDisabled?: boolean;
|
|
927
|
-
emptyStateRenderer?: React.FunctionComponent;
|
|
928
|
-
excelDataTypeFormats?: DTExcelFormats[];
|
|
929
|
-
fullWidthCellRenderer?: React.FunctionComponent<ICellRendererParams>;
|
|
930
|
-
getGroupRowAgg?: (nodes: RowNode[], currentGroupsValues: string[]) => TRow;
|
|
931
|
-
getRowNodeId?: (data: TRow) => any;
|
|
932
|
-
getSubtotalLabel?: (columnDefinition: ColumnDefinition, rowData: TRow, value: string | number) => string;
|
|
933
|
-
groupDefaultExpanded?: number;
|
|
934
|
-
groupIncludeFooter?: boolean;
|
|
935
|
-
headerHeight?: number;
|
|
936
|
-
hideActionsOnGroupedRow?: boolean;
|
|
937
|
-
initialGroupOrderComparator?: (nodeA: RowNode, nodeB: RowNode) => number;
|
|
938
|
-
isFullWidth?: (data: TRow) => boolean;
|
|
939
|
-
isRowActive?: (params: RowActivePredicateParams<TRow>) => boolean;
|
|
940
|
-
isRowOverdue?: (params: RowActivePredicateParams<TRow>) => boolean;
|
|
941
|
-
loading?: boolean;
|
|
942
|
-
maxHeight?: number;
|
|
943
|
-
maintainColumnOrder?: boolean;
|
|
944
|
-
modules: Module[];
|
|
945
|
-
onCellValueChanged?: (params: CellValueChangeParams<any>) => void;
|
|
946
|
-
onRowDragEnd?: (row: TRow, endIndex: number, node: Pick<RowNode, 'childIndex' | 'group'>, overNode?: Pick<RowNode, 'childIndex' | 'group' | 'data'>) => void;
|
|
947
|
-
onRowGroupOpened?: (event: RowGroupToggledEvent<TRow>) => void;
|
|
948
|
-
onRowSelected?: (event: RowSelectedEvent) => void;
|
|
949
|
-
onSelectAll?: (param: SelectAllState.All | SelectAllState.None) => void;
|
|
950
|
-
onTableReady?: (tableApi: TableApi, tableApiRef: React.RefObject<TableApi>) => void;
|
|
951
|
-
onColumnEverythingChanged?: (changeEvent: ColumnEverythingChangedEvent) => void;
|
|
952
|
-
onFirstDataRendered?: (event: FirstDataRenderedEvent) => void;
|
|
953
|
-
pagination?: boolean;
|
|
954
|
-
paginationPageSize?: number;
|
|
955
|
-
pinnedBottomRowData?: TBottomRow[];
|
|
956
|
-
popupParent?: HTMLElement;
|
|
957
|
-
rowActions?: React.FunctionComponent<any>[];
|
|
958
|
-
/**
|
|
959
|
-
* @private
|
|
960
|
-
* Unsafe to use.
|
|
961
|
-
*
|
|
962
|
-
* Sets row virtualization buffer
|
|
963
|
-
*/
|
|
964
|
-
rowBuffer?: number;
|
|
965
|
-
/**
|
|
966
|
-
* Row data for the table. Only necessary when using client side data
|
|
967
|
-
* model.
|
|
968
|
-
* @see onServerSideDataRequest if using server side data model
|
|
969
|
-
*/
|
|
970
|
-
rows?: TRow[];
|
|
971
|
-
rowDragManaged?: boolean;
|
|
972
|
-
rowSelectionEnabled?: boolean | ((params: RowSelectablePredicateParams<TRow>) => boolean);
|
|
973
|
-
selectionSSREnabled?: boolean;
|
|
974
|
-
showExpandableMenuOptions?: boolean;
|
|
975
|
-
showGroupChildCount?: boolean;
|
|
976
|
-
/**
|
|
977
|
-
* Removes border right from column group's last column
|
|
978
|
-
*/
|
|
979
|
-
suppressColumnGroupBorders?: boolean;
|
|
980
|
-
suppressColumnVirtualisation?: boolean;
|
|
981
|
-
suppressExpandGroupsButton?: boolean;
|
|
982
|
-
suppressFieldDotNotation?: boolean;
|
|
983
|
-
suppressResetColumnsOption?: boolean;
|
|
984
|
-
suppressRowClickSelection?: boolean;
|
|
985
|
-
stickyExpandedGroupRows?: boolean;
|
|
986
|
-
}
|
|
987
|
-
type AggregationFunction<TValue> = (params: {
|
|
988
|
-
columnDefinition: ColumnDefinition;
|
|
989
|
-
values: TValue[];
|
|
990
|
-
rowNode: {
|
|
991
|
-
allLeafChildren: {
|
|
992
|
-
data: TValue;
|
|
993
|
-
}[];
|
|
994
|
-
};
|
|
995
|
-
/**
|
|
996
|
-
* If rendering in a nested table, this is the id of the parent row
|
|
997
|
-
*/
|
|
998
|
-
parentId: string | undefined;
|
|
999
|
-
/**
|
|
1000
|
-
* If rendering in a nested table, this is the data for the parent row
|
|
1001
|
-
*/
|
|
1002
|
-
parentData: any | undefined;
|
|
1003
|
-
}) => number;
|
|
1004
|
-
type RowNode = {
|
|
1005
|
-
aggData: any;
|
|
1006
|
-
childIndex: number;
|
|
1007
|
-
childrenAfterFilter: IRowNode[];
|
|
1008
|
-
data: any;
|
|
1009
|
-
expanded: boolean;
|
|
1010
|
-
field: string | null;
|
|
1011
|
-
footer?: boolean;
|
|
1012
|
-
group?: boolean;
|
|
1013
|
-
id: string | undefined;
|
|
1014
|
-
key: string | null;
|
|
1015
|
-
parent: RowNode | null;
|
|
1016
|
-
rowGroupIndex: number | null;
|
|
1017
|
-
rowIndex: number | null;
|
|
1018
|
-
rowPinned: ColumnPinnedType | 'top' | 'bottom';
|
|
1019
|
-
};
|
|
1020
|
-
interface ValueGetterParams {
|
|
1021
|
-
columnDefinition: ColumnDefinition;
|
|
1022
|
-
data: Record<string, any>;
|
|
1023
|
-
node?: RowNode;
|
|
1024
|
-
}
|
|
1025
|
-
interface ValueParserParams {
|
|
1026
|
-
columnDefinition: ColumnDefinition;
|
|
1027
|
-
newValue: any;
|
|
1028
|
-
oldValue: any;
|
|
1029
|
-
}
|
|
1030
|
-
interface ValueSetterParams {
|
|
1031
|
-
columnDefinition: ColumnDefinition;
|
|
1032
|
-
data: Record<string, any>;
|
|
1033
|
-
node?: RowNode;
|
|
1034
|
-
newValue: any;
|
|
1035
|
-
oldValue: any;
|
|
1036
|
-
}
|
|
1037
|
-
interface ValueValidator<TValue extends any = any> {
|
|
1038
|
-
(params: ValueValidatorParams<TValue>): {
|
|
1039
|
-
isValid: boolean;
|
|
1040
|
-
errorMessage?: string | string[];
|
|
1041
|
-
isRequired?: boolean;
|
|
1042
|
-
};
|
|
1043
|
-
}
|
|
1044
|
-
interface ValueValidatorParams<TValue = any> {
|
|
1045
|
-
columnDefinition: ColumnDefinition;
|
|
1046
|
-
data: Record<string, any>;
|
|
1047
|
-
node?: RowNode;
|
|
1048
|
-
value: TValue;
|
|
1049
|
-
}
|
|
1050
|
-
interface FrameworkComponents {
|
|
1051
|
-
[key: string]: React.ComponentType<any>;
|
|
1052
|
-
}
|
|
1053
|
-
interface PinnedBottomRow extends Record<string, any> {
|
|
1054
|
-
footerId: 'grandTotal' | string;
|
|
1055
|
-
isAggData?: boolean;
|
|
1056
|
-
}
|
|
1057
|
-
interface TablePanelProps extends React.HtmlHTMLAttributes<HTMLDivElement> {
|
|
1058
|
-
children?: React.ReactNode;
|
|
1059
|
-
className?: string;
|
|
1060
|
-
style?: React.CSSProperties;
|
|
1061
|
-
}
|
|
1062
|
-
interface DataTableTranslations {
|
|
1063
|
-
loadingLabel?: string;
|
|
1064
|
-
searchEmptyStateTitle?: string;
|
|
1065
|
-
tableName?: string;
|
|
1066
|
-
}
|
|
1067
|
-
interface DataTableProps {
|
|
1068
|
-
analytics?: AnalyticsConfig;
|
|
1069
|
-
columnDefinitions: (ColumnDefinition | NestedColumnDefinition)[];
|
|
1070
|
-
enableGroupEditAndValidation?: boolean;
|
|
1071
|
-
enableDynamicRowHeight?: boolean;
|
|
1072
|
-
filterGroups?: FilterGroup[];
|
|
1073
|
-
getRowId?: (params: GetRowIdParams) => string;
|
|
1074
|
-
initialTableConfig?: DataTableConfig;
|
|
1075
|
-
onTableConfigChange?: (config: DataTableConfig) => void;
|
|
1076
|
-
onServerSideDataRequest?: (params: ServerSideGetRowsParams) => Promise<SuccessParams | void> | void;
|
|
1077
|
-
grandTotalsLabelRenderer?: React.FunctionComponent<GrandTotalsLabelRendererProps>;
|
|
1078
|
-
/**
|
|
1079
|
-
* Callback after bulk edit action is performed.
|
|
1080
|
-
* Each object in the array represents a selected row with
|
|
1081
|
-
* the updated values
|
|
1082
|
-
*/
|
|
1083
|
-
onBulkEditUpdate?: (rows: BulkEditResult[]) => Promise<void>;
|
|
1084
|
-
translations?: DataTableTranslations;
|
|
1085
|
-
customBulkEditorFields?: CustomBulkEditorFields;
|
|
1086
|
-
enableCellTextSelection?: boolean;
|
|
1087
|
-
}
|
|
1088
|
-
interface ClientSideDataTableProps extends Omit<DataTableProps, 'onServerSideDataRequest'> {
|
|
1089
|
-
}
|
|
1090
|
-
interface FilterGroup {
|
|
1091
|
-
name: string;
|
|
1092
|
-
displayedName: string;
|
|
1093
|
-
scrollHeight?: number;
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
interface ListFilter extends IClientSideFilter {
|
|
1097
|
-
options: (string | null)[];
|
|
1098
|
-
value: (string | null)[];
|
|
1099
|
-
}
|
|
1100
|
-
type FilterRecord<TValue = any[] | NumberFilterModel> = {
|
|
1101
|
-
field: string;
|
|
1102
|
-
instance: IFilter;
|
|
1103
|
-
columnDefinition: ColumnDefinition;
|
|
1104
|
-
type: 'set' | 'number';
|
|
1105
|
-
options?: any[];
|
|
1106
|
-
filterValues?: TValue;
|
|
1107
|
-
};
|
|
1108
|
-
/**
|
|
1109
|
-
* @param columnDefinitons The DataTable column definitions object
|
|
1110
|
-
* @param gridApi The api from ag-grid
|
|
1111
|
-
* @param enabled Will set the event listeners if true. Should be false when using server side row model
|
|
1112
|
-
*/
|
|
1113
|
-
declare function useFilterState({ columnDefinitions, gridApi, enabled, }: {
|
|
1114
|
-
columnDefinitions: ColumnDefinition[];
|
|
1115
|
-
gridApi?: GridApi;
|
|
1116
|
-
enabled?: boolean;
|
|
1117
|
-
}): {
|
|
1118
|
-
allAvailableFilters: FilterRecord<any[] | NumberFilterModel>[];
|
|
1119
|
-
changeFilterValue: typeof changeFilterValue;
|
|
1120
|
-
filterableColumns: ColumnDefinition<any, React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>, any, React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>, any, any, string | number | NumberFilterValue | LocationFilterOpt | {
|
|
1121
|
-
date: Date;
|
|
1122
|
-
}, string, any>[];
|
|
1123
|
-
};
|
|
1124
|
-
declare function changeFilterValue(fieldName: string, values: string[] | NumberFilterModel | undefined, tableRef: React__default.RefObject<TableApi> | null): void;
|
|
1125
|
-
|
|
1126
|
-
type DateFilterComponentProps = FilterComponentProps<{
|
|
1127
|
-
date: Date;
|
|
1128
|
-
}, Array<{
|
|
1129
|
-
date: Date;
|
|
1130
|
-
}>>;
|
|
1131
|
-
declare const DateFilterRenderer: (props: DateFilterComponentProps) => React__default.JSX.Element | null;
|
|
1132
|
-
|
|
1133
|
-
type LocationFilterProps = FilterComponentProps<LocationOption, LocationOption[]>;
|
|
1134
|
-
interface LocationOption {
|
|
1135
|
-
label?: string;
|
|
1136
|
-
name?: string;
|
|
1137
|
-
id: string | number;
|
|
1138
|
-
}
|
|
1139
|
-
declare const LocationFilterRenderer: (props: LocationFilterProps) => React__default.JSX.Element | null;
|
|
1140
|
-
|
|
1141
|
-
declare const MultiSelectFilterRenderer: (props: FilterComponentProps) => React__default.JSX.Element | null;
|
|
1142
|
-
|
|
1143
|
-
interface IFilterProps<Opt = any, Val = number | string | null> {
|
|
1144
|
-
columnDefinition: ColumnDefinition;
|
|
1145
|
-
filter?: FilterRecord;
|
|
1146
|
-
getFilterHeadingText?: (columnDefinition: ColumnDefinition) => React.FunctionComponent | string;
|
|
1147
|
-
getFilterTokenText?: ({ headerName, value, }: {
|
|
1148
|
-
headerName: string;
|
|
1149
|
-
value: Val extends string ? string[] : Val extends number ? number[] : unknown[];
|
|
1150
|
-
}) => React.FunctionComponent | string;
|
|
1151
|
-
getFilterOptions?: () => Promise<Opt[]>;
|
|
1152
|
-
getId?: (option: Opt) => Val extends string ? string : Val extends number ? number : unknown;
|
|
1153
|
-
getLabel?: (option: Opt) => string;
|
|
1154
|
-
groupName?: string;
|
|
1155
|
-
index?: number;
|
|
1156
|
-
onChange?: (values: any[]) => void;
|
|
1157
|
-
onRemove?: () => void;
|
|
1158
|
-
placeholder?: string;
|
|
1159
|
-
}
|
|
1160
|
-
interface IDateFilterProps<Opt = {
|
|
1161
|
-
date: Date;
|
|
1162
|
-
}, Val = string> extends IFilterProps<Opt, Val> {
|
|
1163
|
-
/** Controls the type of filtering: single, range,
|
|
1164
|
-
* or up to user choice (either) */
|
|
1165
|
-
selectionType?: DateFilterSelectionType;
|
|
1166
|
-
}
|
|
1167
|
-
interface ILocationFilterProps<Opt = LocationFilterOpt, Val = string> extends IFilterProps<Opt, Val> {
|
|
1168
|
-
onSearch?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
1169
|
-
}
|
|
1170
|
-
interface INumberFilterProps<Opt = {
|
|
1171
|
-
id: NumberFilterModel['type'];
|
|
1172
|
-
label: string;
|
|
1173
|
-
}, Val = any> extends Omit<IFilterProps<Opt, Val>, 'getFilterOptions'>, Pick<IScalarFilterParams, 'inRangeInclusive' | 'includeBlanksInEquals' | 'includeBlanksInLessThan' | 'includeBlanksInGreaterThan' | 'includeBlanksInRange'> {
|
|
1174
|
-
getFilterOptions?: () => ISimpleFilterParams['filterOptions'];
|
|
1175
|
-
}
|
|
1176
|
-
interface FilterComponentProps<Opt = any, Val = Opt[] | NumberFilterModel> {
|
|
1177
|
-
columnDefinition: ColumnDefinition;
|
|
1178
|
-
filter: FilterRecord<Opt[] | NumberFilterModel>;
|
|
1179
|
-
filterDef: IFilter;
|
|
1180
|
-
getOptions?: () => Promise<boolean>;
|
|
1181
|
-
loading: boolean;
|
|
1182
|
-
onChange: (value: Opt[] | NumberFilterModel | undefined) => void;
|
|
1183
|
-
onRemove: () => void;
|
|
1184
|
-
options: Opt[];
|
|
1185
|
-
value: Val;
|
|
1186
|
-
}
|
|
1187
|
-
interface IClientSideFilter {
|
|
1188
|
-
active: boolean;
|
|
1189
|
-
field: string;
|
|
1190
|
-
name: string;
|
|
1191
|
-
readonly type: 'list' | 'number';
|
|
1192
|
-
}
|
|
1193
|
-
interface IFilterMeta<Opt = any, Val = number | string> {
|
|
1194
|
-
headerName?: string;
|
|
1195
|
-
filterRenderer?: React.FunctionComponent<IFilterProps<Opt, Val>>;
|
|
1196
|
-
field: string;
|
|
1197
|
-
filterProps?: IFilterProps<Opt, Val>;
|
|
1198
|
-
}
|
|
1199
|
-
interface IServerFilter<Opt = any, Val = number | string> extends IFilterState<Opt, Val>, IFilterMeta<Opt, Val> {
|
|
1200
|
-
}
|
|
1201
|
-
interface IFilterState<Opt = any, Val = number | string> {
|
|
1202
|
-
/**
|
|
1203
|
-
* The full selected option shape
|
|
1204
|
-
*/
|
|
1205
|
-
selected: Opt[];
|
|
1206
|
-
/**
|
|
1207
|
-
* The result of getId from each option
|
|
1208
|
-
*/
|
|
1209
|
-
value: Val[];
|
|
1210
|
-
field: string;
|
|
1211
|
-
}
|
|
1212
|
-
interface IServerFiltersState {
|
|
1213
|
-
[field: string]: IFilterState;
|
|
1214
|
-
}
|
|
1215
|
-
interface IFilterStorage<UniversalOpt = any, UniversalVal = number | string> {
|
|
1216
|
-
hasDefinedFilters: boolean;
|
|
1217
|
-
hasSelectedFilters: boolean;
|
|
1218
|
-
getOptions: (field: string) => UniversalOpt[];
|
|
1219
|
-
getSelected: (field: string) => IFilterState<UniversalOpt, UniversalVal>;
|
|
1220
|
-
getListFilter: (field: string) => IFilterState<UniversalOpt, UniversalVal>;
|
|
1221
|
-
selectedFilters: IServerFiltersState;
|
|
1222
|
-
onChangeFilterValue: ({ field, value, }: {
|
|
1223
|
-
field: string;
|
|
1224
|
-
value: any;
|
|
1225
|
-
}) => void;
|
|
1226
|
-
onClearFilter: (field: string) => void;
|
|
1227
|
-
onClearAllFilters: React.MouseEventHandler<HTMLButtonElement>;
|
|
1228
|
-
possibleFilters: string[];
|
|
1229
|
-
setSelectedFilters: (filters: IServerFilter[]) => void;
|
|
1230
|
-
waitForStoredOptions: (field: string) => Promise<void>;
|
|
1231
|
-
filtersState: IServerFilter[];
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
interface ISearchStorage {
|
|
1235
|
-
searchValue: string;
|
|
1236
|
-
setSearchValue: (value: string) => void;
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
interface InternalTableContext {
|
|
1240
|
-
analytics?: AnalyticsConfig;
|
|
1241
|
-
columnApi?: ColumnApi;
|
|
1242
|
-
columnDefinitions: ColumnDefinition[];
|
|
1243
|
-
contextPanel: ContextPanelApi;
|
|
1244
|
-
customBulkEditorFields?: CustomBulkEditorFields;
|
|
1245
|
-
enableDynamicRowHeight: boolean;
|
|
1246
|
-
enableCellTextSelection: boolean;
|
|
1247
|
-
enableGroupEditAndValidation: boolean;
|
|
1248
|
-
filterGroups?: FilterGroup[];
|
|
1249
|
-
getRowHeight: GetRowHeightWithFooters;
|
|
1250
|
-
getRowId?: DataTableProps['getRowId'];
|
|
1251
|
-
gridApi?: GridApi;
|
|
1252
|
-
grandTotalsLabelInnerRenderer?: React__default.FunctionComponent<GrandTotalsLabelRendererProps>;
|
|
1253
|
-
initialTableConfig?: DataTableConfig;
|
|
1254
|
-
filterState: ReturnType<typeof useFilterState>;
|
|
1255
|
-
filterStorage: IFilterStorage;
|
|
1256
|
-
onBulkEditUpdate: DataTableProps['onBulkEditUpdate'];
|
|
1257
|
-
onServerSideDataRequest?: DataTableProps['onServerSideDataRequest'];
|
|
1258
|
-
updateServerSideDataSource: (params: UpdateServerSideDataSourceParams) => void;
|
|
1259
|
-
onTableConfigChange: () => void;
|
|
1260
|
-
rowHeight: RowSize;
|
|
1261
|
-
rowSelectionRef?: React__default.MutableRefObject<RowSelectionRef>;
|
|
1262
|
-
searchStorage: ISearchStorage;
|
|
1263
|
-
selectedGroupIndex?: string | null;
|
|
1264
|
-
setColumnApi: (columnApi: ColumnApi) => void;
|
|
1265
|
-
setGridApi: (gridApi: GridApi) => void;
|
|
1266
|
-
setRowHeight: (rowHeight: RowSize, createTrackEvent?: boolean, triggerTableConfigChange?: boolean) => void;
|
|
1267
|
-
tableRef: React__default.RefObject<TableApi> | null;
|
|
1268
|
-
getColumnDefinition: (field: string) => ColumnDefinition | undefined;
|
|
1269
|
-
totalRowCount: number;
|
|
1270
|
-
setTotalRowCount: React__default.Dispatch<React__default.SetStateAction<number>>;
|
|
1271
|
-
setSelectedGroupIndex?: React__default.Dispatch<React__default.SetStateAction<string | null>>;
|
|
1272
|
-
}
|
|
1273
|
-
declare const InternalTableContext: React__default.Context<InternalTableContext>;
|
|
1274
|
-
|
|
1275
|
-
type AnalyticsProviderProps = React__default.PropsWithChildren<{
|
|
1276
|
-
analytics?: Analytics;
|
|
1277
|
-
}>;
|
|
1278
|
-
type HydratedContextValue = Pick<Analytics, 'trackEvent'>;
|
|
1279
|
-
type DefaultContextValue = {};
|
|
1280
|
-
type ContextValue = HydratedContextValue | DefaultContextValue;
|
|
1281
|
-
declare function AnalyticsProvider({ analytics, children, }: AnalyticsProviderProps): React__default.JSX.Element;
|
|
1282
|
-
declare const useAnalyticsContext: () => HydratedContextValue;
|
|
1283
|
-
declare const _default$2: {
|
|
1284
|
-
Client: typeof Analytics;
|
|
1285
|
-
Consumer: React__default.Consumer<ContextValue>;
|
|
1286
|
-
Provider: typeof AnalyticsProvider;
|
|
1287
|
-
Context: React__default.Context<ContextValue>;
|
|
1288
|
-
};
|
|
1289
|
-
|
|
1290
|
-
declare class AnalyticsBulkClient extends _default$2.Client {
|
|
1291
|
-
private events;
|
|
1292
|
-
private projectId;
|
|
1293
|
-
private bulkEndpoint;
|
|
1294
|
-
constructor({ projectId, bulkEndpoint, bodyParams, headers, ...coreAnalyticsConfig }: AnalyticsBulkConfig);
|
|
1295
|
-
addEvent(event: string, properties: Record<string, any>): void;
|
|
1296
|
-
sendAllEvents(): Promise<void>;
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
declare const DateTimeCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
1300
|
-
declare const DateTimeCellEditor: React__default.ForwardRefExoticComponent<_ag_grid_community_core.ICellEditorParams<any, any, any>>;
|
|
1301
|
-
|
|
1302
|
-
declare const PersonCellRenderer: React__default.FC<_ag_grid_community_core.ICellRendererParams<any, any, any>>;
|
|
1303
|
-
|
|
1304
|
-
interface SearchProps {
|
|
1305
|
-
onSearch?: React__default.ChangeEventHandler<HTMLInputElement>;
|
|
1306
|
-
/** The placeholder to the Search input */
|
|
1307
|
-
placeholder?: string;
|
|
1308
|
-
disabled?: boolean;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
interface QuickControlsProps extends Omit<SearchProps, 'disabled'> {
|
|
1312
|
-
style?: React__default.CSSProperties;
|
|
1313
|
-
disabledSearch?: boolean;
|
|
1314
|
-
filterOverlayMatchesTriggerWidth?: boolean;
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
interface ActionButtonProps {
|
|
1318
|
-
showLabel?: boolean;
|
|
1319
|
-
actionText?: string;
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
interface BulkActionProps {
|
|
1323
|
-
/** To not hide the bulk actions bar,
|
|
1324
|
-
* even when the row selection is empty it should be displayed. */
|
|
1325
|
-
showAlways?: boolean;
|
|
1326
|
-
showEditButtonLabel?: boolean;
|
|
1327
|
-
editButtonText?: string;
|
|
1328
|
-
style?: React__default.CSSProperties;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
declare const _default$1: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onTableConfigChange, translations, enableCellTextSelection, }: React__default.PropsWithChildren<ClientSideDataTableProps>) => React__default.JSX.Element) & {
|
|
1332
|
-
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1333
|
-
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1334
|
-
ConfigPanelButton: React__default.FC<{}>;
|
|
1335
|
-
ContextPanel: React__default.FC<TablePanelProps>;
|
|
1336
|
-
QuickControls: React__default.FunctionComponent<QuickControlsProps>;
|
|
1337
|
-
QuickFilters: React__default.FunctionComponent<{
|
|
1338
|
-
overlayMatchesTriggerWidth?: boolean | undefined;
|
|
1339
|
-
}>;
|
|
1340
|
-
RowGroupSelector: React__default.FC<{
|
|
1341
|
-
localeText: GroupBySelectProps;
|
|
1342
|
-
}>;
|
|
1343
|
-
Search: React__default.FunctionComponent<SearchProps>;
|
|
1344
|
-
Table: React__default.FC<Omit<TableProps<any, any>, "selectionSSREnabled" | "modules">>;
|
|
1345
|
-
FiltersPanel: React__default.FunctionComponent<TablePanelProps>;
|
|
1346
|
-
FiltersPanelButton: React__default.FunctionComponent<{}>;
|
|
1347
|
-
};
|
|
1348
|
-
|
|
1349
|
-
type EmptyRendererProps = {
|
|
1350
|
-
children?: React__default.ReactNode;
|
|
1351
|
-
hasFilters?: boolean;
|
|
1352
|
-
hasSearch?: boolean;
|
|
1353
|
-
itemsLabel?: string;
|
|
1354
|
-
};
|
|
1355
|
-
|
|
1356
|
-
declare const QuickDateFilterRenderer: (props: ServerSideFilterProps) => React__default.JSX.Element | null;
|
|
1357
|
-
|
|
1358
|
-
declare const LocationQuickFilterRenderer: React__default.FC<FilterProps>;
|
|
1359
|
-
|
|
1360
|
-
declare const MultiSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1361
|
-
|
|
1362
|
-
declare const SingleSelectQuickFilterRenderer: (props: FilterProps<any[]>) => React__default.JSX.Element;
|
|
1363
|
-
|
|
1364
|
-
declare const _default: (({ analytics, children, columnDefinitions: _columnDefinitions, customBulkEditorFields, enableDynamicRowHeight, enableGroupEditAndValidation, filterGroups, getRowId, initialTableConfig: _initialTableConfig, onBulkEditUpdate, onServerSideDataRequest, onTableConfigChange, enableCellTextSelection, translations, }: React__default.PropsWithChildren<DataTableProps>) => React__default.JSX.Element) & {
|
|
1365
|
-
BulkActions: React__default.FunctionComponent<React__default.PropsWithChildren<BulkActionProps>>;
|
|
1366
|
-
BulkEditActionButton: React__default.FunctionComponent<ActionButtonProps>;
|
|
1367
|
-
ConfigPanelButton: React__default.FC<{}>;
|
|
1368
|
-
ContextPanel: React__default.FC<TablePanelProps>;
|
|
1369
|
-
QuickControls: React__default.FunctionComponent<QuickControlsProps>;
|
|
1370
|
-
QuickFilters: React__default.FunctionComponent<{
|
|
1371
|
-
overlayMatchesTriggerWidth?: boolean | undefined;
|
|
1372
|
-
}>;
|
|
1373
|
-
RowGroupSelector: React__default.FC<{
|
|
1374
|
-
localeText: GroupBySelectProps;
|
|
1375
|
-
}>;
|
|
1376
|
-
Search: React__default.FunctionComponent<SearchProps>;
|
|
1377
|
-
Table: React__default.FC<Omit<TableProps<any, any>, "rows" | "modules">>;
|
|
1378
|
-
FiltersPanel: React__default.FunctionComponent<TablePanelProps>;
|
|
1379
|
-
FiltersPanelButton: React__default.FunctionComponent<{}>;
|
|
1380
|
-
};
|
|
1381
|
-
|
|
1382
|
-
declare const useRowSelectionState: () => IRowNode<any>[];
|
|
1383
|
-
|
|
1384
|
-
declare function withDataTableEditor(Component: React__default.ForwardRefExoticComponent<any>, editorType: 'input' | 'select' | 'date' | 'textarea'): React__default.ForwardRefExoticComponent<ICellEditorParams>;
|
|
1385
|
-
declare function withDataTableRenderer(Component: React__default.ComponentType<any>, editorType?: 'input' | 'select' | 'date' | 'textarea'): React__default.FC<ICellRendererParams>;
|
|
1386
|
-
|
|
1387
|
-
declare const waitForAsyncCondition: (condition: Function, maxAttempts?: number, timeout?: number, attempts?: number) => Promise<void>;
|
|
1388
|
-
|
|
1389
|
-
/**
|
|
1390
|
-
* **For power users only!**
|
|
1391
|
-
*
|
|
1392
|
-
* Usage of {@link TableApi} is preferred.
|
|
1393
|
-
* Please try using `onTableReady` prop to access `TableApi`
|
|
1394
|
-
*
|
|
1395
|
-
* @internal This is not under semver and can break during any release
|
|
1396
|
-
*/
|
|
1397
|
-
declare const UNSAFE_useTableContext: () => InternalTableContext;
|
|
1398
|
-
|
|
1399
|
-
export { type AgDomLayout, type AgGetDetailRowDataParams, type AgSort, type AggregationFunction, type AnalyticEvent, _default$2 as Analytics, AnalyticsBulkClient, type AnalyticsBulkConfig, type AnalyticsClient, type AnalyticsConfig$1 as AnalyticsConfig, type AvatarStackItemFilter, type BooleanCellColumnDefinition, BooleanCellEditor, type BooleanCellEditorProps, BooleanCellRenderer, type BooleanCellRendererProps, type ButtonsCellColumnDefinition, ButtonsCellRenderer, type CSVExportConfig, type CellValueChangeParams, _default$1 as ClientSideDataTable, type ClientSideDataTableProps, type ColumnConfig, type ColumnDefinition, type ColumnGroupStateConfig, type CompanyCellColumnDefinition, CompanyCellRenderer, type CompanyCellRendererProps, type ContextPanelApi, type ContextPanelContent, type CurrencyCellColumnDefinition, CurrencyCellEditor, type CurrencyCellEditorProps, CurrencyCellRenderer, type CurrencyCellRendererProps, type CustomBulkEditorFields, type CustomEditorCell, type CustomFilter, type CustomFooterConfig, type CustomRendererCell, type DTExcelFormats, type DataTableCellEditorProps, type DataTableCellRendererProps, type DataTableConfig, type DataTableProps, type DataTableTranslations, type DateCellColumnDefinition, DateCellEditor, type DateCellEditorProps, DateCellRenderer, type DateCellRendererProps, DateFilterRenderer, type DateFilterSelectionType, QuickDateFilterRenderer as DateQuickFilterRenderer, type DateTimeCellColumnDefinition, DateTimeCellEditor, DateTimeCellRenderer, type DetailRowConfig, type EmptyRendererProps, type ExcelExportConfig, type ExtendedColDef, type FilterGroup, type FrameworkComponents, type GetDetailRowDataParams, type GetRowHeightWithFooters, GrandTotalsLabelRenderer, type GranularPartial, type GranularRequired, type GroupCellColumnDefinition, GroupCellRenderer, type HTMLStringExportConfig, type ISearchState, type IServerFilter, type IsEditableParams, type IsRowSelectable, type LinkCellColumnDefinition, LinkCellRenderer, type LinkCellRendererProps, type LocationColumnDefinition, type LocationFilterOpt, LocationFilterRenderer, LocationQuickFilterRenderer, type MultiSelectCellColumnDefinition, MultiSelectCellRenderer, type MultiSelectCellRendererProps, MultiSelectFilterRenderer, MultiSelectQuickFilterRenderer, type NestedColumnDefinition, type NumberCellColumnDefinition, NumberCellEditor, type NumberCellEditorProps, NumberCellRenderer, type NumberCellRendererProps, NumberFilterRenderer, type PartialTableApi, type PeopleCellColumnDefinition, PeopleCellRenderer, type PeopleCellRendererProps, type PercentCellColumnDefinition, PercentCellEditor, type PercentCellEditorProps, PercentCellRenderer, type PercentCellRendererProps, PersonCellRenderer, type PillCellColumnDefinition, PillCellRenderer, type PillCellRendererProps, PillSelectCellEditor, type PillSelectCellEditorProps, type PinnedBottomRow, type RefreshServerSideDataParams, type RowActionsConfig, type RowActivePredicateParams, type RowGroupToggledEvent, type RowNode, type RowSelectablePredicateParams, type RowSelectionRef, SelectAllState, type SelectCellColumnDefinition, SelectCellEditor, type SelectCellEditorProps, SelectCellRenderer, type SelectCellRendererProps, _default as ServerSideDataTable, type DataTableProps as ServerSideDataTableProps, type ServerSideGetRowsParams, type ServerSideGetRowsRequest, type ServerSideParamsOptions, SingleSelectQuickFilterRenderer, type SortModel, type SuccessParams, type TableApi, type TablePanelProps, type TableProps, type TextAreaCellColumnDefinition, type TextAreaCellEditorProps, type TextAreaCellRendererProps, type TextCellColumnDefinition, TextCellEditor, type TextCellEditorProps, TextCellRenderer, type TextCellRendererProps, UNSAFE_useTableContext, type UpdateServerSideDataSourceParams, type ValueGetterParams, type ValueParserParams, type ValueSetterParams, type ValueValidator, type ValueValidatorParams, rowSize, useAnalyticsContext, useRowSelectionState, waitForAsyncCondition, withDataTableEditor, withDataTableRenderer };
|