@agile-team/mach-table 0.18.0 → 0.19.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/README.md +35 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +121 -1225
- package/dist/index.d.ts +121 -1225
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/worker-P1ks_WSx.d.cts +1409 -0
- package/dist/worker-P1ks_WSx.d.ts +1409 -0
- package/dist/worker.cjs +2 -0
- package/dist/worker.cjs.map +1 -0
- package/dist/worker.d.cts +1 -0
- package/dist/worker.d.ts +1 -0
- package/dist/worker.js +2 -0
- package/dist/worker.js.map +1 -0
- package/package.json +11 -1
- package/styles/mach-table.css +24 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,1221 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly def: ColDefGroup<TData>;
|
|
4
|
-
parent: ColumnGroup<TData> | null;
|
|
5
|
-
children: (ColumnGroup<TData> | Column<TData>)[];
|
|
6
|
-
constructor(groupId: string, def: ColDefGroup<TData>);
|
|
7
|
-
get headerName(): string;
|
|
8
|
-
getLeafColumns(out?: Column<TData>[]): Column<TData>[];
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare class Column<TData = any> {
|
|
12
|
-
readonly id: string;
|
|
13
|
-
readonly colDef: ColDef<TData>;
|
|
14
|
-
hide: boolean;
|
|
15
|
-
pinned: PinnedDirection | null;
|
|
16
|
-
manualWidth: number | null;
|
|
17
|
-
flex: number | null;
|
|
18
|
-
currentWidth: number;
|
|
19
|
-
parentGroup: ColumnGroup<TData> | null;
|
|
20
|
-
level: number;
|
|
21
|
-
isDetailToggle: boolean;
|
|
22
|
-
constructor(id: string, colDef: ColDef<TData>);
|
|
23
|
-
get sortable(): boolean;
|
|
24
|
-
get resizable(): boolean;
|
|
25
|
-
get movable(): boolean;
|
|
26
|
-
get filterable(): boolean;
|
|
27
|
-
get filterType(): FilterType;
|
|
28
|
-
get hasCheckbox(): boolean;
|
|
29
|
-
resetWidth(): void;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface RowNode<TData = any> {
|
|
33
|
-
id: string;
|
|
34
|
-
data: TData | null;
|
|
35
|
-
rowIndex: number;
|
|
36
|
-
selected: boolean;
|
|
37
|
-
isDetail?: boolean;
|
|
38
|
-
masterId?: string;
|
|
39
|
-
isGroup?: boolean;
|
|
40
|
-
groupLevel?: number;
|
|
41
|
-
groupKey?: string;
|
|
42
|
-
leafNodes?: RowNode<TData>[];
|
|
43
|
-
aggValues?: Record<string, any>;
|
|
44
|
-
/** Lazy tree request state. These fields are read-only from application code. */
|
|
45
|
-
treeLoading?: boolean;
|
|
46
|
-
treeChildrenLoaded?: boolean;
|
|
47
|
-
treeLoadError?: unknown;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
interface AdvancedFilterCondition {
|
|
51
|
-
kind: "condition";
|
|
52
|
-
colId: string;
|
|
53
|
-
filter: ColumnFilter;
|
|
54
|
-
}
|
|
55
|
-
interface AdvancedFilterGroup {
|
|
56
|
-
kind: "group";
|
|
57
|
-
operator: "and" | "or";
|
|
58
|
-
children: AdvancedFilterNode[];
|
|
59
|
-
/** Negates the complete group without changing its children. */
|
|
60
|
-
not?: boolean;
|
|
61
|
-
}
|
|
62
|
-
type AdvancedFilterNode = AdvancedFilterCondition | AdvancedFilterGroup;
|
|
63
|
-
/** Serializable, backend-friendly nested filter expression. */
|
|
64
|
-
interface AdvancedFilterModel {
|
|
65
|
-
version: 1;
|
|
66
|
-
root: AdvancedFilterNode;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
declare const EVENT_TYPES: readonly ["gridReady", "gridDestroyed", "modelUpdated", "cellClicked", "cellDoubleClicked", "cellContextMenu", "rowClicked", "rowDoubleClicked", "selectionChanged", "sortChanged", "filterChanged", "columnResized", "columnMoved", "columnVisibilityChanged", "cellValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "detailToggled", "treeChildrenLoaded", "treeChildrenLoadFailed", "rowDragEnd", "rangeSelectionChanged", "paginationChanged", "displayedColumnsChanged", "gridError", "dirtyStateChanged"];
|
|
70
|
-
type GridEventType = (typeof EVENT_TYPES)[number];
|
|
71
|
-
type GridErrorCode = "DATA_SOURCE_ERROR" | "DATA_INTEGRITY_ERROR" | "VALIDATION_ERROR" | "RENDERER_ERROR" | "EDITOR_ERROR" | "FEATURE_ERROR" | "STATE_ERROR" | "EVENT_HANDLER_ERROR" | "GRID_ERROR";
|
|
72
|
-
interface GridEventBase<TData = any> {
|
|
73
|
-
type: GridEventType;
|
|
74
|
-
api: GridApi<TData>;
|
|
75
|
-
}
|
|
76
|
-
interface GridReadyEvent<TData = any> extends GridEventBase<TData> {
|
|
77
|
-
type: "gridReady";
|
|
78
|
-
}
|
|
79
|
-
interface GridDestroyedEvent<TData = any> extends GridEventBase<TData> {
|
|
80
|
-
type: "gridDestroyed";
|
|
81
|
-
}
|
|
82
|
-
interface ModelUpdatedEvent<TData = any> extends GridEventBase<TData> {
|
|
83
|
-
type: "modelUpdated";
|
|
84
|
-
rowCount: number;
|
|
85
|
-
}
|
|
86
|
-
interface CellClickEvent<TData = any, TValue = any> extends GridEventBase<TData> {
|
|
87
|
-
type: "cellClicked";
|
|
88
|
-
event: MouseEvent;
|
|
89
|
-
rowNode: RowNode<TData>;
|
|
90
|
-
rowIndex: number;
|
|
91
|
-
column: Column<TData>;
|
|
92
|
-
colDef: ColDef<TData, TValue>;
|
|
93
|
-
value: TValue;
|
|
94
|
-
}
|
|
95
|
-
interface CellDoubleClickEvent<TData = any, TValue = any> extends GridEventBase<TData> {
|
|
96
|
-
type: "cellDoubleClicked";
|
|
97
|
-
event: MouseEvent;
|
|
98
|
-
rowNode: RowNode<TData>;
|
|
99
|
-
rowIndex: number;
|
|
100
|
-
column: Column<TData>;
|
|
101
|
-
colDef: ColDef<TData, TValue>;
|
|
102
|
-
value: TValue;
|
|
103
|
-
}
|
|
104
|
-
interface CellContextMenuEvent<TData = any, TValue = any> extends GridEventBase<TData> {
|
|
105
|
-
type: "cellContextMenu";
|
|
106
|
-
event: MouseEvent;
|
|
107
|
-
rowNode: RowNode<TData>;
|
|
108
|
-
rowIndex: number;
|
|
109
|
-
column: Column<TData>;
|
|
110
|
-
colDef: ColDef<TData, TValue>;
|
|
111
|
-
value: TValue;
|
|
112
|
-
}
|
|
113
|
-
interface RowClickEvent<TData = any> extends GridEventBase<TData> {
|
|
114
|
-
type: "rowClicked" | "rowDoubleClicked";
|
|
115
|
-
event: MouseEvent;
|
|
116
|
-
rowNode: RowNode<TData>;
|
|
117
|
-
rowIndex: number;
|
|
118
|
-
}
|
|
119
|
-
interface SelectionChangedEvent<TData = any> extends GridEventBase<TData> {
|
|
120
|
-
type: "selectionChanged";
|
|
121
|
-
selectedNodes: RowNode<TData>[];
|
|
122
|
-
selectedRows: TData[];
|
|
123
|
-
}
|
|
124
|
-
interface SortChangedEvent<TData = any> extends GridEventBase<TData> {
|
|
125
|
-
type: "sortChanged";
|
|
126
|
-
sortModel: SortModel;
|
|
127
|
-
}
|
|
128
|
-
interface FilterChangedEvent<TData = any> extends GridEventBase<TData> {
|
|
129
|
-
type: "filterChanged";
|
|
130
|
-
filterModel: FilterModel;
|
|
131
|
-
advancedFilterModel: AdvancedFilterModel | null;
|
|
132
|
-
}
|
|
133
|
-
interface ColumnResizedEvent<TData = any> extends GridEventBase<TData> {
|
|
134
|
-
type: "columnResized";
|
|
135
|
-
colId: string;
|
|
136
|
-
width: number;
|
|
137
|
-
finished: boolean;
|
|
138
|
-
}
|
|
139
|
-
interface ColumnMovedEvent<TData = any> extends GridEventBase<TData> {
|
|
140
|
-
type: "columnMoved";
|
|
141
|
-
colId: string;
|
|
142
|
-
toIndex: number;
|
|
143
|
-
}
|
|
144
|
-
interface ColumnVisibilityChangedEvent<TData = any> extends GridEventBase<TData> {
|
|
145
|
-
type: "columnVisibilityChanged";
|
|
146
|
-
colId: string;
|
|
147
|
-
visible: boolean;
|
|
148
|
-
}
|
|
149
|
-
interface CellValueChangedEvent<TData = any, TValue = any> extends GridEventBase<TData> {
|
|
150
|
-
type: "cellValueChanged";
|
|
151
|
-
oldValue: TValue;
|
|
152
|
-
newValue: TValue;
|
|
153
|
-
rowNode: RowNode<TData>;
|
|
154
|
-
rowIndex: number;
|
|
155
|
-
column: Column<TData>;
|
|
156
|
-
colDef: ColDef<TData, TValue>;
|
|
157
|
-
data: TData;
|
|
158
|
-
}
|
|
159
|
-
interface CellEditingStartedEvent<TData = any> extends GridEventBase<TData> {
|
|
160
|
-
type: "cellEditingStarted";
|
|
161
|
-
rowIndex: number;
|
|
162
|
-
colId: string;
|
|
163
|
-
rowNode: RowNode<TData>;
|
|
164
|
-
}
|
|
165
|
-
interface CellEditingStoppedEvent<TData = any> extends GridEventBase<TData> {
|
|
166
|
-
type: "cellEditingStopped";
|
|
167
|
-
rowIndex: number;
|
|
168
|
-
colId: string;
|
|
169
|
-
rowNode: RowNode<TData>;
|
|
170
|
-
oldValue: any;
|
|
171
|
-
newValue: any;
|
|
172
|
-
}
|
|
173
|
-
interface RowEditChange {
|
|
174
|
-
colId: string;
|
|
175
|
-
oldValue: unknown;
|
|
176
|
-
newValue: unknown;
|
|
177
|
-
}
|
|
178
|
-
interface RowEditingStartedEvent<TData = any> extends GridEventBase<TData> {
|
|
179
|
-
type: "rowEditingStarted";
|
|
180
|
-
rowIndex: number;
|
|
181
|
-
rowNode: RowNode<TData>;
|
|
182
|
-
data: TData;
|
|
183
|
-
}
|
|
184
|
-
interface RowEditingStoppedEvent<TData = any> extends GridEventBase<TData> {
|
|
185
|
-
type: "rowEditingStopped";
|
|
186
|
-
rowIndex: number;
|
|
187
|
-
rowNode: RowNode<TData>;
|
|
188
|
-
data: TData;
|
|
189
|
-
cancelled: boolean;
|
|
190
|
-
changes: RowEditChange[];
|
|
191
|
-
}
|
|
192
|
-
interface DetailToggledEvent<TData = any> extends GridEventBase<TData> {
|
|
193
|
-
type: "detailToggled";
|
|
194
|
-
rowId: string;
|
|
195
|
-
rowNode: RowNode<TData>;
|
|
196
|
-
expanded: boolean;
|
|
197
|
-
}
|
|
198
|
-
interface TreeChildrenLoadedEvent<TData = any> extends GridEventBase<TData> {
|
|
199
|
-
type: "treeChildrenLoaded";
|
|
200
|
-
rowId: string;
|
|
201
|
-
rowNode: RowNode<TData>;
|
|
202
|
-
children: readonly TData[];
|
|
203
|
-
}
|
|
204
|
-
interface TreeChildrenLoadFailedEvent<TData = any> extends GridEventBase<TData> {
|
|
205
|
-
type: "treeChildrenLoadFailed";
|
|
206
|
-
rowId: string;
|
|
207
|
-
rowNode: RowNode<TData>;
|
|
208
|
-
error: unknown;
|
|
209
|
-
}
|
|
210
|
-
interface GridCellRange {
|
|
211
|
-
row1: number;
|
|
212
|
-
row2: number;
|
|
213
|
-
colId1: string;
|
|
214
|
-
colId2: string;
|
|
215
|
-
}
|
|
216
|
-
interface RangeSelectionChangedEvent<TData = any> extends GridEventBase<TData> {
|
|
217
|
-
type: "rangeSelectionChanged";
|
|
218
|
-
range: GridCellRange | null;
|
|
219
|
-
}
|
|
220
|
-
interface RowDragEndEvent<TData = any> extends GridEventBase<TData> {
|
|
221
|
-
type: "rowDragEnd";
|
|
222
|
-
rowNode: RowNode<TData>;
|
|
223
|
-
fromIndex: number;
|
|
224
|
-
toIndex: number;
|
|
225
|
-
}
|
|
226
|
-
interface PaginationChangedEvent<TData = any> extends GridEventBase<TData> {
|
|
227
|
-
type: "paginationChanged";
|
|
228
|
-
page: number;
|
|
229
|
-
pageSize: number;
|
|
230
|
-
pageCount: number;
|
|
231
|
-
total: number;
|
|
232
|
-
}
|
|
233
|
-
interface DisplayedColumnsChangedEvent<TData = any> extends GridEventBase<TData> {
|
|
234
|
-
type: "displayedColumnsChanged";
|
|
235
|
-
}
|
|
236
|
-
interface GridErrorEvent<TData = any> extends GridEventBase<TData> {
|
|
237
|
-
type: "gridError";
|
|
238
|
-
code: GridErrorCode;
|
|
239
|
-
error: unknown;
|
|
240
|
-
source: string;
|
|
241
|
-
context?: Record<string, unknown>;
|
|
242
|
-
}
|
|
243
|
-
interface DirtyStateChangedEvent<TData = any> extends GridEventBase<TData> {
|
|
244
|
-
type: "dirtyStateChanged";
|
|
245
|
-
dirtyRowIds: string[];
|
|
246
|
-
}
|
|
247
|
-
interface GridEventMap<TData = any> {
|
|
248
|
-
gridReady: GridReadyEvent<TData>;
|
|
249
|
-
gridDestroyed: GridDestroyedEvent<TData>;
|
|
250
|
-
modelUpdated: ModelUpdatedEvent<TData>;
|
|
251
|
-
cellClicked: CellClickEvent<TData>;
|
|
252
|
-
cellDoubleClicked: CellDoubleClickEvent<TData>;
|
|
253
|
-
cellContextMenu: CellContextMenuEvent<TData>;
|
|
254
|
-
rowClicked: RowClickEvent<TData>;
|
|
255
|
-
rowDoubleClicked: RowClickEvent<TData>;
|
|
256
|
-
selectionChanged: SelectionChangedEvent<TData>;
|
|
257
|
-
sortChanged: SortChangedEvent<TData>;
|
|
258
|
-
filterChanged: FilterChangedEvent<TData>;
|
|
259
|
-
columnResized: ColumnResizedEvent<TData>;
|
|
260
|
-
columnMoved: ColumnMovedEvent<TData>;
|
|
261
|
-
columnVisibilityChanged: ColumnVisibilityChangedEvent<TData>;
|
|
262
|
-
cellValueChanged: CellValueChangedEvent<TData>;
|
|
263
|
-
cellEditingStarted: CellEditingStartedEvent<TData>;
|
|
264
|
-
cellEditingStopped: CellEditingStoppedEvent<TData>;
|
|
265
|
-
rowEditingStarted: RowEditingStartedEvent<TData>;
|
|
266
|
-
rowEditingStopped: RowEditingStoppedEvent<TData>;
|
|
267
|
-
detailToggled: DetailToggledEvent<TData>;
|
|
268
|
-
treeChildrenLoaded: TreeChildrenLoadedEvent<TData>;
|
|
269
|
-
treeChildrenLoadFailed: TreeChildrenLoadFailedEvent<TData>;
|
|
270
|
-
rowDragEnd: RowDragEndEvent<TData>;
|
|
271
|
-
rangeSelectionChanged: RangeSelectionChangedEvent<TData>;
|
|
272
|
-
paginationChanged: PaginationChangedEvent<TData>;
|
|
273
|
-
displayedColumnsChanged: DisplayedColumnsChangedEvent<TData>;
|
|
274
|
-
gridError: GridErrorEvent<TData>;
|
|
275
|
-
dirtyStateChanged: DirtyStateChangedEvent<TData>;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
declare const DEFAULT_LOCALE: {
|
|
279
|
-
readonly matchContains: "包含";
|
|
280
|
-
readonly matchNotContains: "不包含";
|
|
281
|
-
readonly matchEquals: "等于";
|
|
282
|
-
readonly matchNotEquals: "不等于";
|
|
283
|
-
readonly matchStartsWith: "开头是";
|
|
284
|
-
readonly matchEndsWith: "结尾是";
|
|
285
|
-
readonly matchBlank: "为空";
|
|
286
|
-
readonly matchNotBlank: "不为空";
|
|
287
|
-
readonly matchLessThan: "小于";
|
|
288
|
-
readonly matchLessThanOrEqual: "小于等于";
|
|
289
|
-
readonly matchGreaterThan: "大于";
|
|
290
|
-
readonly matchGreaterThanOrEqual: "大于等于";
|
|
291
|
-
readonly matchInRange: "在范围内";
|
|
292
|
-
readonly apply: "应用";
|
|
293
|
-
readonly reset: "重置";
|
|
294
|
-
readonly search: "搜索...";
|
|
295
|
-
readonly emptySetLabel: "(空)";
|
|
296
|
-
readonly selectedCount: "已选 {n} 项";
|
|
297
|
-
readonly sortAsc: "升序";
|
|
298
|
-
readonly sortDesc: "降序";
|
|
299
|
-
readonly clearSort: "取消排序";
|
|
300
|
-
readonly pinLeft: "固定左侧";
|
|
301
|
-
readonly pinRight: "固定右侧";
|
|
302
|
-
readonly clearPin: "取消固定";
|
|
303
|
-
readonly autoSize: "自适应列宽";
|
|
304
|
-
readonly hideColumn: "隐藏此列";
|
|
305
|
-
readonly columnVisibility: "列显示";
|
|
306
|
-
readonly resetAll: "重置全部";
|
|
307
|
-
readonly autoSizeAll: "全部自适应";
|
|
308
|
-
readonly columnSettings: "列设置";
|
|
309
|
-
readonly totalLabel: "合计";
|
|
310
|
-
readonly totalRowsLabel: "共 {n} 行";
|
|
311
|
-
readonly menuCopy: "复制";
|
|
312
|
-
readonly menuPaste: "粘贴";
|
|
313
|
-
readonly menuClearContents: "清除内容";
|
|
314
|
-
readonly loading: "加载中...";
|
|
315
|
-
readonly statusSelected: "已选 {n} 行";
|
|
316
|
-
readonly statusSum: "和 {n}";
|
|
317
|
-
readonly statusAvg: "均 {n}";
|
|
318
|
-
readonly statusCount: "计 {n}";
|
|
319
|
-
readonly emptyRows: "暂无数据";
|
|
320
|
-
readonly emptyRowsHint: "没有可显示的行";
|
|
321
|
-
readonly paginationTotal: "共 {n} 条";
|
|
322
|
-
readonly paginationPage: "第 {a} / {b} 页";
|
|
323
|
-
readonly perPage: "{n} 条/页";
|
|
324
|
-
readonly pageFirst: "首页";
|
|
325
|
-
readonly pagePrev: "上一页";
|
|
326
|
-
readonly pageNext: "下一页";
|
|
327
|
-
readonly pageLast: "末页";
|
|
328
|
-
readonly requestFailed: "数据加载失败";
|
|
329
|
-
readonly requestFailedHint: "请检查网络后重试";
|
|
330
|
-
readonly actionView: "查看";
|
|
331
|
-
readonly actionEdit: "编辑";
|
|
332
|
-
readonly actionDelete: "删除";
|
|
333
|
-
readonly actionConfirm: "确认";
|
|
334
|
-
readonly actionSave: "保存";
|
|
335
|
-
readonly actionCancel: "取消";
|
|
336
|
-
readonly actionMore: "更多操作";
|
|
337
|
-
};
|
|
338
|
-
type RgLocaleKey = keyof typeof DEFAULT_LOCALE;
|
|
339
|
-
type RgLocale = Partial<Record<RgLocaleKey, string>>;
|
|
340
|
-
declare const LOCALE_EN: RgLocale;
|
|
341
|
-
declare function matchLocaleKey(match: string): RgLocaleKey;
|
|
342
|
-
declare function formatText(template: string, n: number | string): string;
|
|
343
|
-
declare function formatTwo(template: string, a: number | string, b: number | string): string;
|
|
344
|
-
|
|
345
|
-
interface GridStateBase {
|
|
346
|
-
columns: ColumnState[];
|
|
347
|
-
sortModel: SortModel;
|
|
348
|
-
filterModel: FilterModel;
|
|
349
|
-
quickFilterText: string | null;
|
|
350
|
-
pagination: {
|
|
351
|
-
enabled: boolean;
|
|
352
|
-
page: number;
|
|
353
|
-
pageSize: number;
|
|
354
|
-
};
|
|
355
|
-
selectedRowIds: string[];
|
|
356
|
-
expandedRowIds: string[];
|
|
357
|
-
expandedGroupIds: string[];
|
|
358
|
-
}
|
|
359
|
-
/** Read-only compatibility shape accepted from MachTable 0.14/0.15. */
|
|
360
|
-
interface LegacyGridStateV1 extends GridStateBase {
|
|
361
|
-
version: 1;
|
|
362
|
-
}
|
|
363
|
-
/** Serializable snapshot of user-visible grid state. */
|
|
364
|
-
interface GridState extends GridStateBase {
|
|
365
|
-
/** State schema version, independent from the package version. */
|
|
366
|
-
version: 2;
|
|
367
|
-
advancedFilterModel: AdvancedFilterModel | null;
|
|
368
|
-
}
|
|
369
|
-
type GridStateInput = GridState | LegacyGridStateV1;
|
|
370
|
-
type GridStateSection = "columns" | "sort" | "filter" | "pagination" | "selection" | "expansion";
|
|
371
|
-
interface ApplyGridStateOptions {
|
|
372
|
-
/** Applies all sections when omitted. */
|
|
373
|
-
sections?: readonly GridStateSection[];
|
|
374
|
-
/** Emit the standard sort/filter/pagination events after restoration. */
|
|
375
|
-
emitEvents?: boolean;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
type Callable = (...args: never[]) => unknown;
|
|
379
|
-
type Primitive = string | number | boolean | bigint | symbol | null | undefined | Date | Callable;
|
|
380
|
-
type Depth = 0 | 1 | 2 | 3 | 4;
|
|
381
|
-
type Previous = {
|
|
382
|
-
0: 0;
|
|
383
|
-
1: 0;
|
|
384
|
-
2: 1;
|
|
385
|
-
3: 2;
|
|
386
|
-
4: 3;
|
|
387
|
-
};
|
|
388
|
-
/** Dot-separated path to a serializable field, capped to keep editor inference fast. */
|
|
389
|
-
type FieldPath<T, D extends Depth = 4> = D extends 0 ? never : T extends Primitive ? never : {
|
|
390
|
-
[K in keyof T & string]: NonNullable<T[K]> extends Primitive | readonly unknown[] ? K : K | `${K}.${FieldPath<NonNullable<T[K]>, Previous[D]>}`;
|
|
391
|
-
}[keyof T & string];
|
|
392
|
-
type FieldPathValue<T, P extends string> = P extends keyof T ? T[P] : P extends `${infer Head}.${infer Tail}` ? Head extends keyof T ? FieldPathValue<NonNullable<T[Head]>, Tail> : unknown : unknown;
|
|
393
|
-
|
|
394
|
-
interface ColumnStateStore {
|
|
395
|
-
load(key: string): ColumnState[] | null | Promise<ColumnState[] | null>;
|
|
396
|
-
save(key: string, state: ColumnState[]): void | Promise<void>;
|
|
397
|
-
}
|
|
398
|
-
interface GridStateStore {
|
|
399
|
-
load(key: string): GridStateInput | null | Promise<GridStateInput | null>;
|
|
400
|
-
save(key: string, state: GridStateInput): void | Promise<void>;
|
|
401
|
-
clear?(key: string): void | Promise<void>;
|
|
402
|
-
}
|
|
403
|
-
/** Per-grid component overrides. These take precedence over the global registry. */
|
|
404
|
-
interface GridComponents {
|
|
405
|
-
cellRenderers?: Readonly<Record<string, CellRendererFn>>;
|
|
406
|
-
cellEditors?: Readonly<Record<string, CellEditorFactory>>;
|
|
407
|
-
}
|
|
408
|
-
interface GridFeatureContext<TData = any> {
|
|
409
|
-
readonly api: GridApi<TData>;
|
|
410
|
-
readonly root: HTMLElement;
|
|
411
|
-
getOptions(): Readonly<ResolvedGridOptions<TData>>;
|
|
412
|
-
addEventListener<K extends keyof GridEventMap<TData>>(type: K, listener: (event: GridEventMap<TData>[K]) => void): () => void;
|
|
413
|
-
/** Registers cleanup even when setup later throws or the feature is hot-replaced. */
|
|
414
|
-
onCleanup(cleanup: () => void): void;
|
|
415
|
-
addManagedDomListener(target: EventTarget, type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
|
|
416
|
-
setManagedTimeout(handler: () => void, delayMs: number): ReturnType<typeof setTimeout>;
|
|
417
|
-
createAbortController(): AbortController;
|
|
418
|
-
reportError(error: unknown, source: string, context?: Record<string, unknown>): void;
|
|
419
|
-
}
|
|
420
|
-
/** Composable extension point; feature instances are scoped to one grid. */
|
|
421
|
-
interface GridFeature<TData = any> {
|
|
422
|
-
readonly key: string;
|
|
423
|
-
/** Informational extension version exposed through diagnostics. */
|
|
424
|
-
readonly version?: string;
|
|
425
|
-
/** Feature keys that must be initialised before this feature. */
|
|
426
|
-
readonly requires?: readonly string[];
|
|
427
|
-
/** Mutually exclusive feature keys. Conflicting features are not initialised. */
|
|
428
|
-
readonly conflicts?: readonly string[];
|
|
429
|
-
setup(context: GridFeatureContext<TData>): void | (() => void);
|
|
430
|
-
destroy?(): void;
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
* Safe overlay content. Strings render as text unless
|
|
434
|
-
* `allowUnsafeOverlayHtml` is explicitly enabled.
|
|
435
|
-
*/
|
|
436
|
-
type OverlayContent = string | HTMLElement | ICellRendererResult;
|
|
437
|
-
type OverlayTemplate = OverlayContent | (() => OverlayContent);
|
|
438
|
-
type StatusBarPanel = "rowCount" | "selectedRowCount" | "rangeAggregate";
|
|
439
|
-
interface StatusBarConfig {
|
|
440
|
-
panels?: StatusBarPanel[];
|
|
441
|
-
}
|
|
442
|
-
interface InfiniteGetRowsParams<TData = any> {
|
|
443
|
-
startRow: number;
|
|
444
|
-
endRow: number;
|
|
445
|
-
sortModel: SortModel;
|
|
446
|
-
filterModel: FilterModel;
|
|
447
|
-
advancedFilterModel: AdvancedFilterModel | null;
|
|
448
|
-
quickFilterText: string | null;
|
|
449
|
-
signal: AbortSignal;
|
|
450
|
-
onSuccess(rows: TData[], lastRow?: number): void;
|
|
451
|
-
fail(reason?: unknown): void;
|
|
452
|
-
}
|
|
453
|
-
interface GridDatasource<TData = any> {
|
|
454
|
-
getRows(params: InfiniteGetRowsParams<TData>): void | Promise<void>;
|
|
455
|
-
}
|
|
456
|
-
type EventHandlers<TData = any> = {
|
|
457
|
-
[K in keyof GridEventMap<TData> as `on${Capitalize<K & string>}`]?: (event: GridEventMap<TData>[K]) => void;
|
|
458
|
-
};
|
|
459
|
-
type RowSelectionMode = "none" | "single" | "multiple";
|
|
460
|
-
type GridSize = "compact" | "normal" | "large";
|
|
461
|
-
type ColumnLayoutMode = "normal" | "fit";
|
|
462
|
-
type DomLayoutMode = "normal" | "autoHeight";
|
|
463
|
-
type ThemeMode = "light" | "dark" | "auto";
|
|
464
|
-
type GridEditType = "cell" | "fullRow";
|
|
465
|
-
type EditableIndicator = "hover" | "always" | "none";
|
|
466
|
-
interface RowEditValidationParams<TData = any> {
|
|
467
|
-
data: TData;
|
|
468
|
-
node: RowNode<TData>;
|
|
469
|
-
/** Draft values keyed by colId, including unchanged editable cells. */
|
|
470
|
-
values: Readonly<Record<string, unknown>>;
|
|
471
|
-
changes: readonly RowEditChange[];
|
|
472
|
-
api: GridApi<TData>;
|
|
473
|
-
}
|
|
474
|
-
type RowEditValidationResult = true | null | undefined | string | Readonly<Record<string, string>>;
|
|
475
|
-
interface DetailRowRendererParams<TData = any> {
|
|
476
|
-
data: TData | null;
|
|
477
|
-
node: RowNode<TData>;
|
|
478
|
-
api: GridApi<TData>;
|
|
479
|
-
}
|
|
480
|
-
interface TreeDataLoadParams<TData = any> {
|
|
481
|
-
data: TData;
|
|
482
|
-
node: RowNode<TData>;
|
|
483
|
-
api: GridApi<TData>;
|
|
484
|
-
signal: AbortSignal;
|
|
485
|
-
}
|
|
486
|
-
interface PaginationConfig {
|
|
487
|
-
/** `server` displays the supplied page as-is and uses `total` for navigation. */
|
|
488
|
-
mode?: "client" | "server";
|
|
489
|
-
/** Controlled current page for server mode. */
|
|
490
|
-
page?: number;
|
|
491
|
-
/** Total rows across all server pages. */
|
|
492
|
-
total?: number;
|
|
493
|
-
pageSize?: number;
|
|
494
|
-
pageSizeOptions?: number[];
|
|
495
|
-
showTotal?: boolean;
|
|
496
|
-
showPageSizeSelector?: boolean;
|
|
497
|
-
}
|
|
498
|
-
interface WatermarkConfig {
|
|
499
|
-
text: string;
|
|
500
|
-
fontSize?: number;
|
|
501
|
-
color?: string;
|
|
502
|
-
opacity?: number;
|
|
503
|
-
gap?: number;
|
|
504
|
-
angle?: number;
|
|
505
|
-
}
|
|
506
|
-
interface ActionPolicyContext<TData = any> {
|
|
507
|
-
/** Stable business action identifier, for example `order.delete`. */
|
|
508
|
-
actionId?: string;
|
|
509
|
-
permissions: readonly string[];
|
|
510
|
-
message?: string;
|
|
511
|
-
params: CellRendererParams<TData>;
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* Application-wide UI action policy. This centralises permission, confirmation
|
|
515
|
-
* and error handling while the backend remains the final security boundary.
|
|
516
|
-
*/
|
|
517
|
-
interface ActionPolicy<TData = any> {
|
|
518
|
-
canAccess?(context: ActionPolicyContext<TData>): boolean;
|
|
519
|
-
confirm?(context: ActionPolicyContext<TData>): boolean | Promise<boolean>;
|
|
520
|
-
onError?(error: unknown, context: ActionPolicyContext<TData>): void;
|
|
521
|
-
}
|
|
522
|
-
interface GridOptions<TData = any> extends EventHandlers<TData> {
|
|
523
|
-
columnDefs?: (ColDef<TData> | ColDefGroup<TData>)[] | null;
|
|
524
|
-
rowData?: TData[] | null;
|
|
525
|
-
defaultColDef?: Partial<ColDef<TData>>;
|
|
526
|
-
/** Reusable semantic column definitions referenced through `colDef.type`. */
|
|
527
|
-
columnTypes?: Readonly<Record<string, Partial<ColDef<TData>>>>;
|
|
528
|
-
getRowId?: (params: GetRowIdParams<TData>) => string;
|
|
529
|
-
/** Stable business key shorthand. `getRowId` takes precedence when both are set. */
|
|
530
|
-
rowKey?: FieldPath<TData> | ((row: TData) => string | number);
|
|
531
|
-
rowHeight?: number;
|
|
532
|
-
headerHeight?: number;
|
|
533
|
-
rowBuffer?: number;
|
|
534
|
-
/** `fit` continuously fills the container without grid-ready glue code. */
|
|
535
|
-
columnLayout?: ColumnLayoutMode;
|
|
536
|
-
/** Enables pointer, double-click and Alt+Arrow column resizing. Disabled by default. */
|
|
537
|
-
enableColumnResize?: boolean;
|
|
538
|
-
/** Lets small grids grow with their rows. Avoid for large or infinite datasets. */
|
|
539
|
-
domLayout?: DomLayoutMode;
|
|
540
|
-
rowSelection?: RowSelectionMode;
|
|
541
|
-
multiSort?: boolean;
|
|
542
|
-
size?: GridSize;
|
|
543
|
-
stripedRows?: boolean;
|
|
544
|
-
showCellBorders?: boolean;
|
|
545
|
-
theme?: ThemeMode;
|
|
546
|
-
quickFilterText?: string | null;
|
|
547
|
-
/** Nested AND/OR filter expression, safe for local evaluation and backend serialization. */
|
|
548
|
-
advancedFilterModel?: AdvancedFilterModel | null;
|
|
549
|
-
masterDetail?: boolean;
|
|
550
|
-
detailRowHeight?: number;
|
|
551
|
-
detailRowRenderer?: (params: DetailRowRendererParams<TData>) => string | HTMLElement | ICellRendererResult | null | undefined;
|
|
552
|
-
isRowExpandable?: (params: DetailRowRendererParams<TData>) => boolean;
|
|
553
|
-
detailToggleColumn?: boolean;
|
|
554
|
-
columnMenu?: boolean;
|
|
555
|
-
columnStateKey?: string | null;
|
|
556
|
-
columnStateStore?: ColumnStateStore;
|
|
557
|
-
aggFuncs?: Record<string, (values: any[]) => any>;
|
|
558
|
-
components?: GridComponents;
|
|
559
|
-
/** Shared policy consumed by action column helpers. */
|
|
560
|
-
actionPolicy?: ActionPolicy<TData>;
|
|
561
|
-
features?: readonly GridFeature<TData>[];
|
|
562
|
-
/** State restored atomically after columns and initial rows are available. */
|
|
563
|
-
initialState?: GridStateInput;
|
|
564
|
-
/** Persist the complete user-visible GridState with a versioned store. */
|
|
565
|
-
stateKey?: string | null;
|
|
566
|
-
stateStore?: GridStateStore;
|
|
567
|
-
stateSaveDebounceMs?: number;
|
|
568
|
-
locale?: RgLocale;
|
|
569
|
-
/** Cell editing is isolated; fullRow stages every editable cell and commits them together. */
|
|
570
|
-
editType?: GridEditType;
|
|
571
|
-
/** Visibility of the subtle pencil affordance on editable cells. */
|
|
572
|
-
editableIndicator?: EditableIndicator;
|
|
573
|
-
/** Cross-field full-row validation. Return a message or a colId -> message map. */
|
|
574
|
-
rowEditValidator?: (params: RowEditValidationParams<TData>) => RowEditValidationResult | Promise<RowEditValidationResult>;
|
|
575
|
-
singleClickEdit?: boolean;
|
|
576
|
-
manualSorting?: boolean;
|
|
577
|
-
manualFiltering?: boolean;
|
|
578
|
-
showSummary?: boolean;
|
|
579
|
-
summaryMethod?: (params: {
|
|
580
|
-
colId: string;
|
|
581
|
-
column: Column<any>;
|
|
582
|
-
values: any[];
|
|
583
|
-
}) => string;
|
|
584
|
-
treeData?: boolean;
|
|
585
|
-
childrenKey?: string;
|
|
586
|
-
/** Marks rows that can load children even when `childrenKey` is currently empty. */
|
|
587
|
-
isTreeRowExpandable?: (params: Omit<TreeDataLoadParams<TData>, "signal">) => boolean;
|
|
588
|
-
/** Loads children once on first expansion; use the API retry/force methods to reload. */
|
|
589
|
-
loadTreeChildren?: (params: TreeDataLoadParams<TData>) => Promise<readonly TData[]>;
|
|
590
|
-
autoCheckedChildren?: boolean;
|
|
591
|
-
defaultExpandAll?: boolean;
|
|
592
|
-
indexOffset?: number;
|
|
593
|
-
applyRowDrag?: boolean;
|
|
594
|
-
undoStackSize?: number;
|
|
595
|
-
/** Milliseconds used to coalesce applyTransactionAsync calls. */
|
|
596
|
-
asyncTransactionWaitMillis?: number;
|
|
597
|
-
getRowHeight?: (params: GetRowHeightParams<TData>) => number;
|
|
598
|
-
pinnedTopRowData?: TData[] | null;
|
|
599
|
-
pinnedBottomRowData?: TData[] | null;
|
|
600
|
-
pagination?: boolean | PaginationConfig;
|
|
601
|
-
watermark?: boolean | WatermarkConfig;
|
|
602
|
-
suppressWarnings?: boolean;
|
|
603
|
-
enableRangeSelection?: boolean;
|
|
604
|
-
suppressClipboard?: boolean;
|
|
605
|
-
contextMenu?: boolean;
|
|
606
|
-
getContextMenuItems?: (params: ContextMenuParams<TData>) => ContextMenuItem[] | null;
|
|
607
|
-
tooltipComponent?: (params: TooltipParams<TData>) => string | HTMLElement;
|
|
608
|
-
tooltipShowDelay?: number;
|
|
609
|
-
flashCells?: boolean;
|
|
610
|
-
fillHandle?: boolean;
|
|
611
|
-
statusBar?: boolean | StatusBarConfig;
|
|
612
|
-
datasource?: GridDatasource<TData>;
|
|
613
|
-
blockSize?: number;
|
|
614
|
-
infiniteBufferRows?: number;
|
|
615
|
-
/** Number of automatic retries after an infinite datasource request fails. */
|
|
616
|
-
datasourceRetryCount?: number;
|
|
617
|
-
/** Base retry delay in milliseconds. Retries use capped exponential backoff. */
|
|
618
|
-
datasourceRetryDelay?: number;
|
|
619
|
-
suppressCellFocus?: boolean;
|
|
620
|
-
suppressRowHoverHighlight?: boolean;
|
|
621
|
-
suppressNoRowsOverlay?: boolean;
|
|
622
|
-
suppressHeaderFocus?: boolean;
|
|
623
|
-
/** Accessible name applied to the element with role="grid"/"treegrid". */
|
|
624
|
-
ariaLabel?: string;
|
|
625
|
-
/** ID of an external element that labels the grid. Takes precedence over ariaLabel. */
|
|
626
|
-
ariaLabelledBy?: string;
|
|
627
|
-
/** ID of an external element that provides additional grid instructions. */
|
|
628
|
-
ariaDescribedBy?: string;
|
|
629
|
-
loading?: boolean;
|
|
630
|
-
/** Non-null errors take precedence over the empty state and remain retryable by the host. */
|
|
631
|
-
error?: unknown | null;
|
|
632
|
-
overlayNoRowsTemplate?: OverlayTemplate;
|
|
633
|
-
overlayLoadingTemplate?: OverlayTemplate;
|
|
634
|
-
overlayErrorTemplate?: OverlayTemplate;
|
|
635
|
-
/** Opt in only for trusted overlay strings. Prefer HTMLElement factories. */
|
|
636
|
-
allowUnsafeOverlayHtml?: boolean;
|
|
637
|
-
className?: string;
|
|
638
|
-
}
|
|
639
|
-
interface ResolvedGridOptions<TData = any> extends EventHandlers<TData> {
|
|
640
|
-
columnDefs: (ColDef<TData> | ColDefGroup<TData>)[];
|
|
641
|
-
rowData: TData[];
|
|
642
|
-
defaultColDef: Partial<ColDef<TData>>;
|
|
643
|
-
columnTypes: Readonly<Record<string, Partial<ColDef<TData>>>>;
|
|
644
|
-
getRowId?: (params: GetRowIdParams<TData>) => string;
|
|
645
|
-
rowKey?: FieldPath<TData> | ((row: TData) => string | number);
|
|
646
|
-
rowHeight: number;
|
|
647
|
-
headerHeight: number;
|
|
648
|
-
rowBuffer: number;
|
|
649
|
-
columnLayout: ColumnLayoutMode;
|
|
650
|
-
enableColumnResize: boolean;
|
|
651
|
-
domLayout: DomLayoutMode;
|
|
652
|
-
rowSelection: RowSelectionMode;
|
|
653
|
-
multiSort: boolean;
|
|
654
|
-
size: GridSize;
|
|
655
|
-
stripedRows: boolean;
|
|
656
|
-
showCellBorders: boolean;
|
|
657
|
-
theme: ThemeMode;
|
|
658
|
-
quickFilterText: string | null;
|
|
659
|
-
advancedFilterModel: AdvancedFilterModel | null;
|
|
660
|
-
masterDetail: boolean;
|
|
661
|
-
detailRowHeight: number;
|
|
662
|
-
detailRowRenderer?: (params: DetailRowRendererParams<TData>) => string | HTMLElement | ICellRendererResult | null | undefined;
|
|
663
|
-
isRowExpandable?: (params: DetailRowRendererParams<TData>) => boolean;
|
|
664
|
-
detailToggleColumn: boolean;
|
|
665
|
-
columnMenu: boolean;
|
|
666
|
-
columnStateKey: string | null;
|
|
667
|
-
columnStateStore?: ColumnStateStore;
|
|
668
|
-
aggFuncs?: Record<string, (values: any[]) => any>;
|
|
669
|
-
components?: GridComponents;
|
|
670
|
-
actionPolicy?: ActionPolicy<TData>;
|
|
671
|
-
features: readonly GridFeature<TData>[];
|
|
672
|
-
initialState?: GridStateInput;
|
|
673
|
-
stateKey: string | null;
|
|
674
|
-
stateStore?: GridStateStore;
|
|
675
|
-
stateSaveDebounceMs: number;
|
|
676
|
-
locale: RgLocale;
|
|
677
|
-
editType: GridEditType;
|
|
678
|
-
editableIndicator: EditableIndicator;
|
|
679
|
-
rowEditValidator?: (params: RowEditValidationParams<TData>) => RowEditValidationResult | Promise<RowEditValidationResult>;
|
|
680
|
-
singleClickEdit: boolean;
|
|
681
|
-
manualSorting: boolean;
|
|
682
|
-
manualFiltering: boolean;
|
|
683
|
-
showSummary: boolean;
|
|
684
|
-
summaryMethod?: (params: {
|
|
685
|
-
colId: string;
|
|
686
|
-
column: Column<any>;
|
|
687
|
-
values: any[];
|
|
688
|
-
}) => string;
|
|
689
|
-
treeData: boolean;
|
|
690
|
-
childrenKey: string;
|
|
691
|
-
isTreeRowExpandable?: (params: Omit<TreeDataLoadParams<TData>, "signal">) => boolean;
|
|
692
|
-
loadTreeChildren?: (params: TreeDataLoadParams<TData>) => Promise<readonly TData[]>;
|
|
693
|
-
autoCheckedChildren: boolean;
|
|
694
|
-
defaultExpandAll: boolean;
|
|
695
|
-
indexOffset: number;
|
|
696
|
-
applyRowDrag: boolean;
|
|
697
|
-
undoStackSize: number;
|
|
698
|
-
asyncTransactionWaitMillis: number;
|
|
699
|
-
getRowHeight?: (params: GetRowHeightParams<TData>) => number;
|
|
700
|
-
pinnedTopRowData: TData[];
|
|
701
|
-
pinnedBottomRowData: TData[];
|
|
702
|
-
paginationEnabled: boolean;
|
|
703
|
-
paginationMode: "client" | "server";
|
|
704
|
-
paginationPage: number;
|
|
705
|
-
paginationTotal: number;
|
|
706
|
-
paginationPageSize: number;
|
|
707
|
-
paginationPageSizeOptions: number[];
|
|
708
|
-
paginationShowTotal: boolean;
|
|
709
|
-
paginationShowSizeSelector: boolean;
|
|
710
|
-
watermarkEnabled: boolean;
|
|
711
|
-
watermarkConfig: WatermarkConfig | null;
|
|
712
|
-
suppressWarnings: boolean;
|
|
713
|
-
enableRangeSelection: boolean;
|
|
714
|
-
suppressClipboard: boolean;
|
|
715
|
-
contextMenu: boolean;
|
|
716
|
-
getContextMenuItems?: (params: ContextMenuParams<TData>) => ContextMenuItem[] | null;
|
|
717
|
-
tooltipComponent?: (params: TooltipParams<TData>) => string | HTMLElement;
|
|
718
|
-
tooltipShowDelay: number;
|
|
719
|
-
flashCells: boolean;
|
|
720
|
-
fillHandle: boolean;
|
|
721
|
-
statusBarEnabled: boolean;
|
|
722
|
-
statusBarPanels: StatusBarPanel[];
|
|
723
|
-
datasource?: GridDatasource<TData>;
|
|
724
|
-
blockSize: number;
|
|
725
|
-
infiniteBufferRows: number;
|
|
726
|
-
datasourceRetryCount: number;
|
|
727
|
-
datasourceRetryDelay: number;
|
|
728
|
-
suppressCellFocus: boolean;
|
|
729
|
-
suppressRowHoverHighlight: boolean;
|
|
730
|
-
suppressNoRowsOverlay: boolean;
|
|
731
|
-
suppressHeaderFocus: boolean;
|
|
732
|
-
ariaLabel: string;
|
|
733
|
-
ariaLabelledBy: string;
|
|
734
|
-
ariaDescribedBy: string;
|
|
735
|
-
loading: boolean;
|
|
736
|
-
error: unknown | null;
|
|
737
|
-
overlayNoRowsTemplate: OverlayTemplate;
|
|
738
|
-
overlayLoadingTemplate: OverlayTemplate;
|
|
739
|
-
overlayErrorTemplate: OverlayTemplate;
|
|
740
|
-
allowUnsafeOverlayHtml: boolean;
|
|
741
|
-
className: string;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
interface CsvExportParams {
|
|
745
|
-
includeHeader?: boolean;
|
|
746
|
-
columnSeparator?: string;
|
|
747
|
-
prependBOM?: boolean;
|
|
748
|
-
onlySelected?: boolean;
|
|
749
|
-
onlyAllDisplayed?: boolean;
|
|
750
|
-
protectFormulas?: boolean;
|
|
751
|
-
headersOnly?: boolean;
|
|
752
|
-
}
|
|
753
|
-
interface ImportCsvOptions {
|
|
754
|
-
separator?: string;
|
|
755
|
-
mode?: "replace" | "append" | "paste";
|
|
756
|
-
headerRowIndex?: number;
|
|
757
|
-
coerceNumbers?: boolean;
|
|
758
|
-
parseValue?: (params: {
|
|
759
|
-
value: string;
|
|
760
|
-
field: string;
|
|
761
|
-
rowIndex: number;
|
|
762
|
-
columnIndex: number;
|
|
763
|
-
}) => any;
|
|
764
|
-
}
|
|
765
|
-
interface PrintOptions {
|
|
766
|
-
title?: string;
|
|
767
|
-
includeHeader?: boolean;
|
|
768
|
-
}
|
|
769
|
-
interface RowTransaction<TData = any> {
|
|
770
|
-
add?: TData[];
|
|
771
|
-
addIndex?: number;
|
|
772
|
-
remove?: TData[];
|
|
773
|
-
update?: TData[];
|
|
774
|
-
}
|
|
775
|
-
interface GridCellChange {
|
|
776
|
-
colId: string;
|
|
777
|
-
originalValue: unknown;
|
|
778
|
-
value: unknown;
|
|
779
|
-
}
|
|
780
|
-
interface GridChange<TData = any> {
|
|
781
|
-
rowId: string;
|
|
782
|
-
data: TData;
|
|
783
|
-
cells: GridCellChange[];
|
|
784
|
-
}
|
|
785
|
-
interface GridDiagnosticError {
|
|
786
|
-
code: GridErrorCode;
|
|
787
|
-
source: string;
|
|
788
|
-
message: string;
|
|
789
|
-
timestamp: number;
|
|
790
|
-
context?: Record<string, unknown>;
|
|
791
|
-
}
|
|
792
|
-
interface GridPerformanceSnapshot {
|
|
793
|
-
sampleCount: number;
|
|
794
|
-
lastRenderMs: number;
|
|
795
|
-
averageRenderMs: number;
|
|
796
|
-
maxRenderMs: number;
|
|
797
|
-
p95RenderMs: number;
|
|
798
|
-
longRenderCount: number;
|
|
799
|
-
renderedRows: number;
|
|
800
|
-
renderedColumns: number;
|
|
801
|
-
renderedCells: number;
|
|
802
|
-
}
|
|
803
|
-
interface ColumnWorkbenchItem {
|
|
804
|
-
colId: string;
|
|
805
|
-
label: string;
|
|
806
|
-
visible: boolean;
|
|
807
|
-
pinned: "left" | "right" | null;
|
|
808
|
-
width: number;
|
|
809
|
-
movable: boolean;
|
|
810
|
-
hideable: boolean;
|
|
811
|
-
}
|
|
812
|
-
interface GridDiagnostics {
|
|
813
|
-
gridId: number;
|
|
814
|
-
version: string;
|
|
815
|
-
destroyed: boolean;
|
|
816
|
-
infinite: boolean;
|
|
817
|
-
loading: boolean;
|
|
818
|
-
rowCount: number;
|
|
819
|
-
renderedRowCount: number;
|
|
820
|
-
columnCount: number;
|
|
821
|
-
selectedRowCount: number;
|
|
822
|
-
dirtyRowCount: number;
|
|
823
|
-
activeFeatures: ReadonlyArray<{
|
|
824
|
-
key: string;
|
|
825
|
-
version?: string;
|
|
826
|
-
}>;
|
|
827
|
-
performance: GridPerformanceSnapshot;
|
|
828
|
-
recentErrors: readonly GridDiagnosticError[];
|
|
829
|
-
}
|
|
830
|
-
interface SaveChangeIssue {
|
|
831
|
-
rowId: string;
|
|
832
|
-
code?: string;
|
|
833
|
-
message: string;
|
|
834
|
-
colIds?: readonly string[];
|
|
835
|
-
retryable?: boolean;
|
|
836
|
-
}
|
|
837
|
-
interface SaveChangeConflict<TData = any> extends SaveChangeIssue {
|
|
838
|
-
serverData?: TData;
|
|
839
|
-
serverVersion?: string | number;
|
|
840
|
-
}
|
|
841
|
-
interface SaveChangesResult<TData = any> {
|
|
842
|
-
/** Omit to acknowledge every submitted row; return a subset for partial batch success. */
|
|
843
|
-
savedRowIds?: readonly string[];
|
|
844
|
-
failures?: readonly SaveChangeIssue[];
|
|
845
|
-
conflicts?: readonly SaveChangeConflict<TData>[];
|
|
846
|
-
}
|
|
847
|
-
interface GridBatchSaveResult<TData = any> {
|
|
848
|
-
submitted: GridChange<TData>[];
|
|
849
|
-
saved: GridChange<TData>[];
|
|
850
|
-
failures: SaveChangeIssue[];
|
|
851
|
-
conflicts: SaveChangeConflict<TData>[];
|
|
852
|
-
}
|
|
853
|
-
type SaveChangesHandler<TData = any> = (changes: readonly GridChange<TData>[]) => void | SaveChangesResult<TData> | Promise<void | SaveChangesResult<TData>>;
|
|
854
|
-
interface GridApi<TData = any> {
|
|
855
|
-
/** Resolves after the first layout frame and gridReady emission. */
|
|
856
|
-
whenReady(): Promise<GridApi<TData>>;
|
|
857
|
-
/** Stable grid root for portals, measurements and fullscreen targets; null after destroy. */
|
|
858
|
-
getRootElement(): HTMLElement | null;
|
|
859
|
-
/** Reads the currently resolved value after application, preset and table overrides. */
|
|
860
|
-
getGridOption<K extends keyof GridOptions<TData>>(key: K): GridOptions<TData>[K];
|
|
861
|
-
/** Typed shorthand for updating one runtime option. */
|
|
862
|
-
setGridOption<K extends keyof GridOptions<TData>>(key: K, value: GridOptions<TData>[K]): void;
|
|
863
|
-
setRowData(rows: TData[] | null | undefined): void;
|
|
864
|
-
applyTransaction(transaction: RowTransaction<TData>): void;
|
|
865
|
-
/** Coalesces rapid transactions and refreshes the row pipeline once per batch. */
|
|
866
|
-
applyTransactionAsync(transaction: RowTransaction<TData>): Promise<void>;
|
|
867
|
-
/** Immediately applies transactions currently waiting in the async queue. */
|
|
868
|
-
flushAsyncTransactions(): void;
|
|
869
|
-
getColumnDefs(): (ColDef<TData> | ColDefGroup<TData>)[] | null;
|
|
870
|
-
setColumnDefs(colDefs: (ColDef<TData> | ColDefGroup<TData>)[] | null | undefined): void;
|
|
871
|
-
getColumnState(): ColumnState[];
|
|
872
|
-
setColumnState(state: ColumnState[]): void;
|
|
873
|
-
resetColumnState(): void;
|
|
874
|
-
setColumnVisibility(colId: string, visible: boolean): void;
|
|
875
|
-
moveColumn(colId: string, toIndex: number): void;
|
|
876
|
-
setColumnPinned(colId: string, pinned: "left" | "right" | null): void;
|
|
877
|
-
/** Sets one width without replacing the rest of the column state. */
|
|
878
|
-
setColumnWidth(colId: string, width: number): boolean;
|
|
879
|
-
sizeColumnsToFit(width?: number): void;
|
|
880
|
-
autoSizeColumn(colId: string, skipHeader?: boolean): void;
|
|
881
|
-
autoSizeAllColumns(skipHeader?: boolean): void;
|
|
882
|
-
getSortModel(): SortModel;
|
|
883
|
-
setSortModel(sortModel: SortModel | null): void;
|
|
884
|
-
getFilterModel(): FilterModel;
|
|
885
|
-
setFilterModel(filterModel: FilterModel | null): void;
|
|
886
|
-
getAdvancedFilterModel(): AdvancedFilterModel | null;
|
|
887
|
-
setAdvancedFilterModel(model: AdvancedFilterModel | null): void;
|
|
888
|
-
isColumnFilterPresent(colId: string): boolean;
|
|
889
|
-
setQuickFilter(text: string | null | undefined): void;
|
|
890
|
-
getQuickFilter(): string | null;
|
|
891
|
-
getRowSelection(): RowSelectionMode;
|
|
892
|
-
setRowSelection(mode: RowSelectionMode): void;
|
|
893
|
-
getSelectedNodes(): RowNode<TData>[];
|
|
894
|
-
getSelectedRows(): TData[];
|
|
895
|
-
selectNodeById(nodeId: string, selected?: boolean, clearOthers?: boolean): void;
|
|
896
|
-
selectAll(filteredOnly?: boolean): void;
|
|
897
|
-
deselectAll(): void;
|
|
898
|
-
getDisplayedRowCount(): number;
|
|
899
|
-
getRowNode(rowIndex: number): RowNode<TData> | undefined;
|
|
900
|
-
getNodeById(id: string): RowNode<TData> | undefined;
|
|
901
|
-
forEachNode(callback: (node: RowNode<TData>, index: number) => void): void;
|
|
902
|
-
forEachNodeAfterFilterAndSort(callback: (node: RowNode<TData>, index: number) => void): void;
|
|
903
|
-
scrollToIndex(rowIndex: number, position?: "top" | "bottom" | "middle" | "nearest"): void;
|
|
904
|
-
expandRow(rowId: string): boolean;
|
|
905
|
-
collapseRow(rowId: string): boolean;
|
|
906
|
-
toggleDetailRow(rowId: string): boolean;
|
|
907
|
-
isRowExpanded(rowId: string): boolean;
|
|
908
|
-
expandAllDetails(): void;
|
|
909
|
-
collapseAllDetails(): void;
|
|
910
|
-
/** Loads and caches lazy tree children. Concurrent calls for one row are deduplicated. */
|
|
911
|
-
loadTreeChildren(rowId: string, options?: {
|
|
912
|
-
force?: boolean;
|
|
913
|
-
}): Promise<readonly TData[]>;
|
|
914
|
-
retryTreeChildren(rowId: string): Promise<readonly TData[]>;
|
|
915
|
-
isTreeRowLoading(rowId: string): boolean;
|
|
916
|
-
toggleRowGroup(groupId: string): boolean;
|
|
917
|
-
isGroupExpanded(groupId: string): boolean;
|
|
918
|
-
expandAllGroups(): void;
|
|
919
|
-
collapseAllGroups(): void;
|
|
920
|
-
reorderRows(fromIndex: number, toIndex: number): boolean;
|
|
921
|
-
setSelection(rows: TData[], clearOthers?: boolean): void;
|
|
922
|
-
getVisibleSelection(): TData[];
|
|
923
|
-
getSelectedIds(): string[];
|
|
924
|
-
undo(): boolean;
|
|
925
|
-
redo(): boolean;
|
|
926
|
-
canUndo(): boolean;
|
|
927
|
-
canRedo(): boolean;
|
|
928
|
-
getDirtyRowIds(): string[];
|
|
929
|
-
getChanges(): GridChange<TData>[];
|
|
930
|
-
markChangesSaved(rowIds?: readonly string[]): void;
|
|
931
|
-
/** Saves a stable snapshot; supports partial success and preserves edits made in flight. */
|
|
932
|
-
saveChanges(handler: SaveChangesHandler<TData>, rowIds?: readonly string[]): Promise<GridChange<TData>[]>;
|
|
933
|
-
saveChangesDetailed(handler: SaveChangesHandler<TData>, rowIds?: readonly string[]): Promise<GridBatchSaveResult<TData>>;
|
|
934
|
-
rollbackChanges(rowIds?: readonly string[]): boolean;
|
|
935
|
-
setPinnedTopRowData(rows: TData[] | null): void;
|
|
936
|
-
getPinnedTopRowData(): TData[];
|
|
937
|
-
setPinnedBottomRowData(rows: TData[] | null): void;
|
|
938
|
-
getPinnedBottomRowData(): TData[];
|
|
939
|
-
getRangeSelection(): GridCellRange | null;
|
|
940
|
-
clearRangeSelection(): void;
|
|
941
|
-
copyRangeToClipboard(): Promise<boolean>;
|
|
942
|
-
/** Opens the built-in searchable column workbench. */
|
|
943
|
-
openColumnWorkbench(anchor?: HTMLElement): void;
|
|
944
|
-
closeColumnWorkbench(): void;
|
|
945
|
-
getColumnWorkbenchItems(): ColumnWorkbenchItem[];
|
|
946
|
-
/** @deprecated Use openColumnWorkbench. Kept during the 0.x compatibility window. */
|
|
947
|
-
openColumnPanel(anchor?: HTMLElement): void;
|
|
948
|
-
refreshLayout(): void;
|
|
949
|
-
isInfinite(): boolean;
|
|
950
|
-
reload(): Promise<void>;
|
|
951
|
-
paginationEnabled(): boolean;
|
|
952
|
-
setPaginationEnabled(enabled: boolean): void;
|
|
953
|
-
getPage(): number;
|
|
954
|
-
setPage(page: number): void;
|
|
955
|
-
getPageSize(): number;
|
|
956
|
-
setPageSize(size: number): void;
|
|
957
|
-
getPageCount(): number;
|
|
958
|
-
getTotalRowCount(): number;
|
|
959
|
-
importCsv(text: string, options?: ImportCsvOptions): boolean;
|
|
960
|
-
print(options?: PrintOptions): boolean;
|
|
961
|
-
startEditingCell(params: {
|
|
962
|
-
rowIndex: number;
|
|
963
|
-
colId: string;
|
|
964
|
-
keyPress?: string;
|
|
965
|
-
}): boolean;
|
|
966
|
-
/** Starts staged editing for every editable cell in one displayed row. */
|
|
967
|
-
startEditingRow(rowIndex: number): boolean;
|
|
968
|
-
/** Returns whether any row, or the requested displayed row, is in full-row edit mode. */
|
|
969
|
-
isRowEditing(rowIndex?: number): boolean;
|
|
970
|
-
stopEditing(cancel?: boolean): void;
|
|
971
|
-
/** Stops editing and resolves after synchronous or asynchronous validation. */
|
|
972
|
-
stopEditingAsync(cancel?: boolean): Promise<boolean>;
|
|
973
|
-
/** Explicit full-row counterpart; aliases stopEditingAsync when a row is active. */
|
|
974
|
-
stopEditingRow(cancel?: boolean): Promise<boolean>;
|
|
975
|
-
refreshCells(): void;
|
|
976
|
-
updateOptions(options: Partial<GridOptions<TData>>): void;
|
|
977
|
-
getDataAsCsv(params?: CsvExportParams): string;
|
|
978
|
-
getState(): GridState;
|
|
979
|
-
applyState(state: GridStateInput, options?: ApplyGridStateOptions): void;
|
|
980
|
-
/** Lightweight runtime snapshot suitable for support logs and health panels. */
|
|
981
|
-
getDiagnostics(): GridDiagnostics;
|
|
982
|
-
/** Rolling viewport-render metrics for diagnostics and reproducible benchmarks. */
|
|
983
|
-
getPerformanceSnapshot(): GridPerformanceSnapshot;
|
|
984
|
-
resetPerformanceMetrics(): void;
|
|
985
|
-
setOverlay(type: "loading" | "noRows" | "error" | null): void;
|
|
986
|
-
hideOverlays(): void;
|
|
987
|
-
addEventListener<K extends GridEventType>(eventType: K, listener: (event: GridEventMap<TData>[K]) => void): () => void;
|
|
988
|
-
removeEventListener<K extends GridEventType>(eventType: K, listener: (event: GridEventMap<TData>[K]) => void): void;
|
|
989
|
-
destroy(): void;
|
|
990
|
-
isDestroyed(): boolean;
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
interface ValueGetterParams<TData = any, TValue = any> {
|
|
994
|
-
data: TData | null;
|
|
995
|
-
node: RowNode<TData>;
|
|
996
|
-
colDef: ColDef<TData, TValue>;
|
|
997
|
-
column: Column<TData>;
|
|
998
|
-
api: GridApi<TData>;
|
|
999
|
-
}
|
|
1000
|
-
interface ValueFormatterParams<TData = any, TValue = any> extends ValueGetterParams<TData, TValue> {
|
|
1001
|
-
value: TValue;
|
|
1002
|
-
}
|
|
1003
|
-
interface CellRendererParams<TData = any, TValue = any> extends ValueGetterParams<TData, TValue> {
|
|
1004
|
-
value: TValue;
|
|
1005
|
-
formatted: string;
|
|
1006
|
-
rowIndex: number;
|
|
1007
|
-
rendererParams?: Record<string, any>;
|
|
1008
|
-
}
|
|
1009
|
-
interface CellClassParams<TData = any, TValue = any> extends ValueGetterParams<TData, TValue> {
|
|
1010
|
-
value: TValue;
|
|
1011
|
-
rowIndex: number;
|
|
1012
|
-
}
|
|
1013
|
-
interface EditableParams<TData = any, TValue = any> extends ValueGetterParams<TData, TValue> {
|
|
1014
|
-
value: TValue;
|
|
1015
|
-
rowIndex: number;
|
|
1016
|
-
}
|
|
1017
|
-
interface CellEditorParams<TData = any, TValue = any> extends ValueGetterParams<TData, TValue> {
|
|
1018
|
-
value: TValue;
|
|
1019
|
-
rowIndex: number;
|
|
1020
|
-
keyPress?: string | null;
|
|
1021
|
-
}
|
|
1022
|
-
interface ValueSetterParams<TData = any, TValue = any> {
|
|
1023
|
-
oldValue: TValue;
|
|
1024
|
-
newValue: TValue;
|
|
1025
|
-
data: TData;
|
|
1026
|
-
node: RowNode<TData>;
|
|
1027
|
-
colDef: ColDef<TData, TValue>;
|
|
1028
|
-
column: Column<TData>;
|
|
1029
|
-
api: GridApi<TData>;
|
|
1030
|
-
}
|
|
1031
|
-
interface GetRowIdParams<TData = any> {
|
|
1032
|
-
data: TData;
|
|
1033
|
-
index: number;
|
|
1034
|
-
api: GridApi<TData>;
|
|
1035
|
-
}
|
|
1036
|
-
interface GetRowHeightParams<TData = any> {
|
|
1037
|
-
data: TData | null;
|
|
1038
|
-
node: RowNode<TData>;
|
|
1039
|
-
api: GridApi<TData>;
|
|
1040
|
-
}
|
|
1041
|
-
interface TooltipParams<TData = any> {
|
|
1042
|
-
data: TData | null;
|
|
1043
|
-
node: RowNode<TData>;
|
|
1044
|
-
api: GridApi<TData>;
|
|
1045
|
-
colId: string;
|
|
1046
|
-
value: any;
|
|
1047
|
-
formatted: string;
|
|
1048
|
-
rowIndex: number;
|
|
1049
|
-
}
|
|
1050
|
-
interface ContextMenuParams<TData = any> {
|
|
1051
|
-
data: TData | null;
|
|
1052
|
-
node: RowNode<TData>;
|
|
1053
|
-
api: GridApi<TData>;
|
|
1054
|
-
colId: string;
|
|
1055
|
-
value: any;
|
|
1056
|
-
rowIndex: number;
|
|
1057
|
-
}
|
|
1058
|
-
interface ContextMenuItem {
|
|
1059
|
-
label?: string;
|
|
1060
|
-
action?: () => void;
|
|
1061
|
-
danger?: boolean;
|
|
1062
|
-
disabled?: boolean;
|
|
1063
|
-
separator?: boolean;
|
|
1064
|
-
}
|
|
1065
|
-
interface HeaderComponentParams<TData = any> {
|
|
1066
|
-
colDef: ColDef<TData>;
|
|
1067
|
-
column: Column<TData>;
|
|
1068
|
-
api: GridApi<TData>;
|
|
1069
|
-
}
|
|
1070
|
-
interface ICellRendererResult {
|
|
1071
|
-
el: HTMLElement;
|
|
1072
|
-
/** Reuses the mounted renderer for an update. Return false to request recreation. */
|
|
1073
|
-
refresh?(params: CellRendererParams): boolean | void;
|
|
1074
|
-
destroy?: () => void;
|
|
1075
|
-
}
|
|
1076
|
-
type CellRendererOutput = string | HTMLElement | ICellRendererResult | null | undefined;
|
|
1077
|
-
interface ICellEditor<TValue = any> {
|
|
1078
|
-
el: HTMLElement;
|
|
1079
|
-
getValue(): TValue | null | undefined;
|
|
1080
|
-
focus?(): void;
|
|
1081
|
-
destroy?(): void;
|
|
1082
|
-
isCancelBeforeStart?(): boolean;
|
|
1083
|
-
isCancelAfterEnd?(value: TValue | null | undefined): boolean;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
type SortDirection = "asc" | "desc";
|
|
1087
|
-
type PinnedDirection = "left" | "right";
|
|
1088
|
-
type FilterType = "text" | "number" | "date" | "set";
|
|
1089
|
-
type CellAlign = "left" | "center" | "right";
|
|
1090
|
-
type TextFilterMatch = "contains" | "notContains" | "equals" | "notEquals" | "startsWith" | "endsWith" | "blank" | "notBlank";
|
|
1091
|
-
type NumberFilterMatch = "equals" | "notEquals" | "lessThan" | "lessThanOrEqual" | "greaterThan" | "greaterThanOrEqual" | "inRange" | "blank" | "notBlank";
|
|
1092
|
-
type DateFilterMatch = "equals" | "notEquals" | "lessThan" | "greaterThan" | "inRange" | "blank" | "notBlank";
|
|
1093
|
-
interface TextFilterCondition {
|
|
1094
|
-
match: TextFilterMatch;
|
|
1095
|
-
value?: string;
|
|
1096
|
-
}
|
|
1097
|
-
interface NumberFilterCondition {
|
|
1098
|
-
match: NumberFilterMatch;
|
|
1099
|
-
value?: number;
|
|
1100
|
-
value2?: number;
|
|
1101
|
-
}
|
|
1102
|
-
interface DateFilterCondition {
|
|
1103
|
-
match: DateFilterMatch;
|
|
1104
|
-
value?: string;
|
|
1105
|
-
value2?: string;
|
|
1106
|
-
}
|
|
1107
|
-
interface SetFilterCondition {
|
|
1108
|
-
values: (string | number | null)[];
|
|
1109
|
-
}
|
|
1110
|
-
interface TextColumnFilter {
|
|
1111
|
-
type: "text";
|
|
1112
|
-
operator?: "and" | "or";
|
|
1113
|
-
conditions: TextFilterCondition[];
|
|
1114
|
-
}
|
|
1115
|
-
interface NumberColumnFilter {
|
|
1116
|
-
type: "number";
|
|
1117
|
-
operator?: "and" | "or";
|
|
1118
|
-
conditions: NumberFilterCondition[];
|
|
1119
|
-
}
|
|
1120
|
-
interface DateColumnFilter {
|
|
1121
|
-
type: "date";
|
|
1122
|
-
operator?: "and" | "or";
|
|
1123
|
-
conditions: DateFilterCondition[];
|
|
1124
|
-
}
|
|
1125
|
-
interface SetColumnFilter {
|
|
1126
|
-
type: "set";
|
|
1127
|
-
values: (string | number | null)[];
|
|
1128
|
-
}
|
|
1129
|
-
type ColumnFilter = TextColumnFilter | NumberColumnFilter | DateColumnFilter | SetColumnFilter;
|
|
1130
|
-
type FilterModel = Record<string, ColumnFilter>;
|
|
1131
|
-
interface SortModelItem {
|
|
1132
|
-
colId: string;
|
|
1133
|
-
direction: SortDirection;
|
|
1134
|
-
}
|
|
1135
|
-
type SortModel = SortModelItem[];
|
|
1136
|
-
interface SelectEditorParams {
|
|
1137
|
-
values: (string | number)[];
|
|
1138
|
-
}
|
|
1139
|
-
interface SetFilterParams {
|
|
1140
|
-
values?: (string | number | null)[];
|
|
1141
|
-
maxValues?: number;
|
|
1142
|
-
}
|
|
1143
|
-
type CellEditorFactory = (params: CellEditorParams) => ICellEditor;
|
|
1144
|
-
type CellRendererFn = (params: CellRendererParams) => string | HTMLElement | ICellRendererResult | null | undefined;
|
|
1145
|
-
type CellClassRule = string | string[] | ((params: CellClassParams) => string | string[] | null | undefined);
|
|
1146
|
-
type CellStyleRule = Partial<CSSStyleDeclaration> | ((params: CellClassParams<any, any>) => Partial<CSSStyleDeclaration> | null | undefined);
|
|
1147
|
-
interface ColDef<TData = any, TValue = any> {
|
|
1148
|
-
colId?: string;
|
|
1149
|
-
field?: string;
|
|
1150
|
-
headerName?: string;
|
|
1151
|
-
align?: CellAlign;
|
|
1152
|
-
headerAlign?: CellAlign;
|
|
1153
|
-
headerClass?: string | string[];
|
|
1154
|
-
headerTooltip?: string;
|
|
1155
|
-
headerComponent?: (params: HeaderComponentParams<TData>) => string | HTMLElement | ICellRendererResult | null | undefined;
|
|
1156
|
-
width?: number;
|
|
1157
|
-
minWidth?: number;
|
|
1158
|
-
maxWidth?: number;
|
|
1159
|
-
flex?: number;
|
|
1160
|
-
/** Excludes the column from `columnLayout: "fit"` scaling. */
|
|
1161
|
-
suppressSizeToFit?: boolean;
|
|
1162
|
-
hide?: boolean;
|
|
1163
|
-
pinned?: PinnedDirection | boolean;
|
|
1164
|
-
sortable?: boolean;
|
|
1165
|
-
resizable?: boolean;
|
|
1166
|
-
movable?: boolean;
|
|
1167
|
-
filter?: boolean | FilterType;
|
|
1168
|
-
filterParams?: SetFilterParams;
|
|
1169
|
-
editable?: boolean | ((params: EditableParams<TData, TValue>) => boolean);
|
|
1170
|
-
cellEditor?: "text" | "number" | "date" | "select" | CellEditorFactory | string;
|
|
1171
|
-
cellEditorParams?: SelectEditorParams;
|
|
1172
|
-
wrapText?: boolean;
|
|
1173
|
-
checkboxSelection?: boolean;
|
|
1174
|
-
rowGroup?: boolean;
|
|
1175
|
-
aggFunc?: string;
|
|
1176
|
-
cellStyle?: CellStyleRule;
|
|
1177
|
-
selectable?: (params: CellClassParams<TData, TValue>) => boolean;
|
|
1178
|
-
singleClickEdit?: boolean;
|
|
1179
|
-
tooltipValueGetter?: (params: ValueFormatterParams<TData, TValue>) => string | null | undefined;
|
|
1180
|
-
rowSpan?: (params: CellClassParams<TData, TValue>) => number;
|
|
1181
|
-
autoRowSpan?: boolean;
|
|
1182
|
-
colSpan?: (params: CellClassParams<TData, TValue>) => number;
|
|
1183
|
-
autoHeight?: boolean;
|
|
1184
|
-
validate?: (newValue: TValue, params: ValueSetterParams<TData, TValue>) => string | true | null | undefined | Promise<string | true | null | undefined>;
|
|
1185
|
-
rowDrag?: boolean;
|
|
1186
|
-
valueGetter?: (params: ValueGetterParams<TData, TValue>) => TValue;
|
|
1187
|
-
valueSetter?: (params: ValueSetterParams<TData, TValue>) => boolean;
|
|
1188
|
-
valueFormatter?: (params: ValueFormatterParams<TData, TValue>) => any;
|
|
1189
|
-
cellRenderer?: CellRendererFn | string;
|
|
1190
|
-
cellRendererParams?: Record<string, any>;
|
|
1191
|
-
cellClass?: CellClassRule;
|
|
1192
|
-
comparator?: (valueA: any, valueB: any, nodeA: RowNode<TData>, nodeB: RowNode<TData>) => number;
|
|
1193
|
-
/** Named column type(s), resolved left-to-right before this column definition. */
|
|
1194
|
-
type?: string | readonly string[];
|
|
1195
|
-
initialSort?: SortDirection;
|
|
1196
|
-
onCellClick?: (event: CellClickEvent<TData, TValue>) => void;
|
|
1197
|
-
onCellDoubleClick?: (event: CellDoubleClickEvent<TData, TValue>) => void;
|
|
1198
|
-
}
|
|
1199
|
-
interface ColDefGroup<TData = any> {
|
|
1200
|
-
groupId?: string;
|
|
1201
|
-
headerName?: string;
|
|
1202
|
-
headerClass?: string | string[];
|
|
1203
|
-
children: (ColDefGroup<TData> | ColDef<TData>)[];
|
|
1204
|
-
}
|
|
1205
|
-
type ColDefOrGroup<TData = any> = ColDefGroup<TData> | ColDef<TData>;
|
|
1206
|
-
declare function isColDefGroup<TData = any>(def: ColDefOrGroup<TData>): def is ColDefGroup<TData>;
|
|
1207
|
-
interface ColumnState {
|
|
1208
|
-
colId: string;
|
|
1209
|
-
hide?: boolean;
|
|
1210
|
-
width?: number;
|
|
1211
|
-
/** Active flex weight. A resize clears flex and turns width into a manual override. */
|
|
1212
|
-
flex?: number | null;
|
|
1213
|
-
/** Distinguishes responsive/definition width from an explicit user or API override. */
|
|
1214
|
-
widthMode?: "auto" | "manual";
|
|
1215
|
-
pinned?: "left" | "right" | null;
|
|
1216
|
-
sort?: SortDirection | null;
|
|
1217
|
-
sortIndex?: number | null;
|
|
1218
|
-
}
|
|
1
|
+
import { G as GridOptions, a as GridApi, C as ColDefOrGroup, b as Column, c as ColumnGroup, P as PinnedDirection, d as ColumnState, S as SortModel, R as RemoteBlockCacheSnapshot, e as RowTransaction, F as FilterModel, A as AdvancedFilterModel, f as RowNode, g as GridChange, h as GridPerformanceSnapshot, i as RefreshCellsParams, j as ResolvedGridOptions, k as GridSize, T as ThemeMode, D as DomLayoutMode, O as OverlayTemplate, l as GridEventMap, m as CellRendererFn, n as CellEditorFactory, o as GridFeature, p as RgLocaleKey, q as GridEventType, r as GridDiagnostics, s as ColumnFilter, t as ColDef, u as ColDefGroup, v as AdvancedFilterCondition, w as AdvancedFilterNode, x as AdvancedFilterGroup, y as ColumnStateStore, z as GridStateStore, B as GridState, E as GridStateInput, H as CellRendererParams, I as FieldPath, J as FieldPathValue, K as GridComponents, L as SaveChangesResult, M as GridBatchSaveResult, N as SaveChangeConflict } from './worker-P1ks_WSx.cjs';
|
|
2
|
+
export { Q as ActionPolicy, U as ActionPolicyContext, V as ApplyGridStateOptions, W as CellAlign, X as CellClassParams, Y as CellClassRule, Z as CellClickEvent, _ as CellContextMenuEvent, $ as CellDoubleClickEvent, a0 as CellEditingStartedEvent, a1 as CellEditingStoppedEvent, a2 as CellEditorParams, a3 as CellRendererOutput, a4 as CellStyleRule, a5 as CellValueChangedEvent, a6 as ColumnLayoutMode, a7 as ColumnMovedEvent, a8 as ColumnResizedEvent, a9 as ColumnVisibilityChangedEvent, aa as ColumnWorkbenchItem, ab as ContextMenuItem, ac as ContextMenuParams, ad as CsvExportParams, ae as DEFAULT_LOCALE, af as DatasourceMode, ag as DateFilterCondition, ah as DateFilterMatch, ai as DetailRowRendererParams, aj as DetailToggledEvent, ak as DirtyStateChangedEvent, al as EVENT_TYPES, am as EditableIndicator, an as EditableParams, ao as EventHandlers, ap as FieldDataProcessorOptions, aq as FilterChangedEvent, ar as FilterType, as as GetRowHeightParams, at as GetRowIdParams, au as GridAsyncOptions, av as GridCellChange, aw as GridCellRange, ax as GridColumnsApi, ay as GridDataProcessor, az as GridDataProcessorColumn, aA as GridDataProcessorPayload, aB as GridDataProcessorRequest, aC as GridDataProcessorResult, aD as GridDataProcessorRow, aE as GridDataWorkerScope, aF as GridDatasource, aG as GridDiagnosticError, aH as GridDiagnosticsApi, aI as GridEditType, aJ as GridEditingApi, aK as GridErrorCode, aL as GridErrorEvent, aM as GridEventBase, aN as GridFeatureContext, aO as GridReadyEvent, aP as GridRowsApi, aQ as GridSelectionApi, aR as GridStateApi, aS as GridStateSection, aT as GridUpdateSchedulerSnapshot, aU as GridWorkerCancelMessage, aV as GridWorkerProcessMessage, aW as GridWorkerRequestMessage, aX as GridWorkerResponseMessage, aY as HeaderComponentParams, aZ as ICellEditor, a_ as ICellRendererResult, a$ as ImportCsvOptions, b0 as InfiniteGetRowsParams, b1 as LOCALE_EN, b2 as LegacyGridStateV1, b3 as ModelUpdatedEvent, b4 as NumberFilterCondition, b5 as NumberFilterMatch, b6 as OverlayContent, b7 as PaginationChangedEvent, b8 as PaginationConfig, b9 as PrintOptions, ba as RangeSelectionChangedEvent, bb as RgLocale, bc as RowClickEvent, bd as RowDragEndEvent, be as RowEditChange, bf as RowEditValidationParams, bg as RowEditValidationResult, bh as RowEditingStartedEvent, bi as RowEditingStoppedEvent, bj as RowSelectionMode, bk as SaveChangeIssue, bl as SaveChangesHandler, bm as SelectEditorParams, bn as SelectionChangedEvent, bo as SetFilterCondition, bp as SetFilterParams, bq as SortChangedEvent, br as SortDirection, bs as SortModelItem, bt as StatusBarConfig, bu as StatusBarPanel, bv as TextFilterCondition, bw as TextFilterMatch, bx as TooltipParams, by as TreeChildrenLoadFailedEvent, bz as TreeChildrenLoadedEvent, bA as TreeDataLoadParams, bB as ValueFormatterParams, bC as ValueGetterParams, bD as ValueSetterParams, bE as WatermarkConfig, bF as WorkerDataProcessorOptions, bG as formatText, bH as formatTwo, bI as isColDefGroup, bJ as matchLocaleKey } from './worker-P1ks_WSx.cjs';
|
|
1219
3
|
|
|
1220
4
|
declare function createGrid<TData = any>(container: HTMLElement, options?: GridOptions<TData>): GridApi<TData>;
|
|
1221
5
|
|
|
@@ -1280,7 +64,7 @@ declare class ColumnModel {
|
|
|
1280
64
|
cycleSort(column: Column, additive: boolean): void;
|
|
1281
65
|
}
|
|
1282
66
|
|
|
1283
|
-
type RowModelContext = Pick<GridCore<any>, "bodyRenderer" | "changeTracker" | "columnModel" | "emit" | "getApi" | "getCellValue" | "getLocaleText" | "headerRenderer" | "isDestroyed" | "nextId" | "options" | "relayout" | "reportError" | "selectionService" | "skeleton" | "undoService">;
|
|
67
|
+
type RowModelContext = Pick<GridCore<any>, "bodyRenderer" | "changeTracker" | "columnModel" | "emit" | "getApi" | "getCellValue" | "getLocaleText" | "headerRenderer" | "isDestroyed" | "nextId" | "options" | "performanceMonitor" | "relayout" | "reportError" | "requestUpdate" | "selectionService" | "skeleton" | "undoService">;
|
|
1284
68
|
declare class RowModel<TData = any> {
|
|
1285
69
|
private core;
|
|
1286
70
|
private all;
|
|
@@ -1307,22 +91,43 @@ declare class RowModel<TData = any> {
|
|
|
1307
91
|
private rowSequence;
|
|
1308
92
|
private treeLoadControllers;
|
|
1309
93
|
private treeLoadPromises;
|
|
94
|
+
private displayRevision;
|
|
95
|
+
private blockNodes;
|
|
96
|
+
private blockPlaceholders;
|
|
97
|
+
private installedBlocks;
|
|
98
|
+
private blockCache;
|
|
99
|
+
private dataProcessorSeq;
|
|
100
|
+
private dataProcessorAbort;
|
|
101
|
+
private skipDataProcessorOnce;
|
|
1310
102
|
constructor(core: RowModelContext);
|
|
1311
103
|
resolveRowId(data: TData, index: number, fallback: string): string;
|
|
1312
104
|
get isTree(): boolean;
|
|
1313
105
|
get isInfinite(): boolean;
|
|
106
|
+
get isBlockDatasource(): boolean;
|
|
1314
107
|
getDisplayTotalCount(): number;
|
|
108
|
+
getDisplayRevision(): number;
|
|
1315
109
|
isLoadingInfinite(): boolean;
|
|
1316
|
-
startInfinite(): Promise<void>;
|
|
1317
|
-
reloadInfinite(): Promise<void>;
|
|
110
|
+
startInfinite(signal?: AbortSignal): Promise<void>;
|
|
111
|
+
reloadInfinite(signal?: AbortSignal): Promise<void>;
|
|
1318
112
|
private setInfiniteLoading;
|
|
1319
113
|
private loadBlock;
|
|
1320
114
|
private cancelInfiniteRequest;
|
|
1321
115
|
private appendInfiniteRows;
|
|
116
|
+
private loadRandomBlock;
|
|
117
|
+
private requestDatasourceRange;
|
|
118
|
+
private installBlock;
|
|
119
|
+
private evictBlock;
|
|
120
|
+
private rebuildLoadedBlockRows;
|
|
121
|
+
private resolveBlockRowCount;
|
|
122
|
+
private blockPlaceholder;
|
|
123
|
+
private abortError;
|
|
1322
124
|
checkInfiniteScroll(lastVisibleIndex: number): void;
|
|
1323
125
|
onServerParamsChanged(): Promise<void>;
|
|
1324
126
|
onDatasourceChanged(): Promise<void>;
|
|
1325
127
|
destroy(): void;
|
|
128
|
+
ensureRowsLoaded(startRow: number, endRow: number, signal?: AbortSignal): Promise<void>;
|
|
129
|
+
purgeDatasourceCache(): void;
|
|
130
|
+
getDatasourceCacheSnapshot(): RemoteBlockCacheSnapshot;
|
|
1326
131
|
setRowData(rows: TData[] | null | undefined): void;
|
|
1327
132
|
getChildrenIds(id: string): string[];
|
|
1328
133
|
getChildrenCount(id: string): number;
|
|
@@ -1344,6 +149,11 @@ declare class RowModel<TData = any> {
|
|
|
1344
149
|
getQuickFilter(): string | null;
|
|
1345
150
|
isFilterPresent(): boolean;
|
|
1346
151
|
refreshPipeline(): void;
|
|
152
|
+
private refreshInfinitePipeline;
|
|
153
|
+
private startDataProcessorIfNeeded;
|
|
154
|
+
private shouldUseDataProcessor;
|
|
155
|
+
private refreshWithDataProcessor;
|
|
156
|
+
private cancelDataProcessor;
|
|
1347
157
|
private pipelineRows;
|
|
1348
158
|
private page;
|
|
1349
159
|
private pageSize;
|
|
@@ -1677,10 +487,58 @@ declare class ChangeTrackingService<TData = any> {
|
|
|
1677
487
|
|
|
1678
488
|
declare class PerformanceMonitor {
|
|
1679
489
|
private samples;
|
|
490
|
+
private layoutSamples;
|
|
491
|
+
private modelSamples;
|
|
492
|
+
private longTaskCount;
|
|
493
|
+
private longTaskTotalMs;
|
|
494
|
+
private longTaskObserver;
|
|
495
|
+
constructor();
|
|
1680
496
|
start(): number;
|
|
1681
497
|
recordRender(startedAt: number, rows: number, columns: number): void;
|
|
498
|
+
recordLayout(startedAt: number): void;
|
|
499
|
+
recordModel(startedAt: number): void;
|
|
1682
500
|
snapshot(): GridPerformanceSnapshot;
|
|
1683
501
|
reset(): void;
|
|
502
|
+
destroy(): void;
|
|
503
|
+
private pushDuration;
|
|
504
|
+
private average;
|
|
505
|
+
private usedHeapBytes;
|
|
506
|
+
private percentile;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
interface GridUpdateRequest {
|
|
510
|
+
columns?: boolean;
|
|
511
|
+
header?: boolean;
|
|
512
|
+
pool?: boolean;
|
|
513
|
+
data?: boolean;
|
|
514
|
+
layout?: boolean;
|
|
515
|
+
cells?: true | RefreshCellsParams;
|
|
516
|
+
pinned?: boolean;
|
|
517
|
+
summary?: boolean;
|
|
518
|
+
overlays?: boolean;
|
|
519
|
+
}
|
|
520
|
+
interface GridUpdateSchedulerSnapshot {
|
|
521
|
+
batchDepth: number;
|
|
522
|
+
flushCount: number;
|
|
523
|
+
requestCount: number;
|
|
524
|
+
coalescedRequestCount: number;
|
|
525
|
+
pending: boolean;
|
|
526
|
+
}
|
|
527
|
+
/** Coalesces explicit API batches while preserving synchronous behavior outside a batch. */
|
|
528
|
+
declare class GridUpdateScheduler {
|
|
529
|
+
private readonly apply;
|
|
530
|
+
private depth;
|
|
531
|
+
private pending;
|
|
532
|
+
private flushCount;
|
|
533
|
+
private requestCount;
|
|
534
|
+
private coalescedRequestCount;
|
|
535
|
+
private destroyed;
|
|
536
|
+
constructor(apply: (request: GridUpdateRequest) => void);
|
|
537
|
+
batch<T>(callback: () => T): T;
|
|
538
|
+
schedule(request: GridUpdateRequest): void;
|
|
539
|
+
flush(): void;
|
|
540
|
+
snapshot(): GridUpdateSchedulerSnapshot;
|
|
541
|
+
destroy(): void;
|
|
1684
542
|
}
|
|
1685
543
|
|
|
1686
544
|
type SkeletonContext = Pick<GridCore<any>, "options" | "relayout" | "reportError">;
|
|
@@ -1775,7 +633,8 @@ declare class BodyRenderer {
|
|
|
1775
633
|
private lastExcl;
|
|
1776
634
|
private rafId;
|
|
1777
635
|
private hoverIndex;
|
|
1778
|
-
private
|
|
636
|
+
private rowSizes;
|
|
637
|
+
private columnViewport;
|
|
1779
638
|
private rangeSelection;
|
|
1780
639
|
private rangeDragging;
|
|
1781
640
|
private colFirst;
|
|
@@ -1789,15 +648,19 @@ declare class BodyRenderer {
|
|
|
1789
648
|
private onScroll;
|
|
1790
649
|
syncScroll(): void;
|
|
1791
650
|
private paneWidths;
|
|
1792
|
-
private positionsBuf;
|
|
1793
651
|
private lastMinRowHeight;
|
|
1794
652
|
private rowHeightCache;
|
|
653
|
+
private dirtyHeightNodes;
|
|
654
|
+
private rowLayoutSignature;
|
|
1795
655
|
private pendingFlash;
|
|
1796
656
|
private measureCanvas;
|
|
1797
657
|
applyContainerSizes(): void;
|
|
1798
658
|
invalidateRowHeight(node: RowNode<any>): void;
|
|
1799
659
|
private applyDomLayoutHeight;
|
|
1800
660
|
invalidateAllRowHeights(): void;
|
|
661
|
+
private resolveRowHeight;
|
|
662
|
+
private rowTop;
|
|
663
|
+
private rowAtOffset;
|
|
1801
664
|
private collectAutoHeightColumns;
|
|
1802
665
|
private get hasAnyAutoHeight();
|
|
1803
666
|
private measureAutoHeight;
|
|
@@ -1839,6 +702,10 @@ declare class BodyRenderer {
|
|
|
1839
702
|
private renderGroupCell;
|
|
1840
703
|
refreshRows(indexes: number[]): void;
|
|
1841
704
|
refreshAllCells(): void;
|
|
705
|
+
refreshCells(params?: RefreshCellsParams): void;
|
|
706
|
+
private matchesRefreshRow;
|
|
707
|
+
private refreshSlotCells;
|
|
708
|
+
private refreshPaneCells;
|
|
1842
709
|
onDataChanged(): void;
|
|
1843
710
|
refreshOverlays(): void;
|
|
1844
711
|
getCellElement(rowIndex: number, colId: string): HTMLElement | null;
|
|
@@ -1981,6 +848,7 @@ declare class GridCore<TData = any> {
|
|
|
1981
848
|
readonly undoService: UndoRedoService;
|
|
1982
849
|
readonly changeTracker: ChangeTrackingService<TData>;
|
|
1983
850
|
readonly performanceMonitor: PerformanceMonitor;
|
|
851
|
+
readonly updateScheduler: GridUpdateScheduler;
|
|
1984
852
|
readonly filterPopup: FilterPopupService;
|
|
1985
853
|
readonly columnMenu: ColumnMenuService;
|
|
1986
854
|
readonly contextMenuService: ContextMenuService;
|
|
@@ -2061,6 +929,10 @@ declare class GridCore<TData = any> {
|
|
|
2061
929
|
checkWarnings(inputOptions?: Partial<GridOptions<any>> | Record<string, unknown>): void;
|
|
2062
930
|
validateDefs(defs: (ColDef<any> | ColDefGroup<any>)[] | null | undefined): void;
|
|
2063
931
|
onColumnsStructureChanged(): void;
|
|
932
|
+
requestUpdate(request: GridUpdateRequest): void;
|
|
933
|
+
batchUpdates<TResult>(callback: () => TResult): TResult;
|
|
934
|
+
private applyScheduledUpdate;
|
|
935
|
+
private applyColumnsStructureChanged;
|
|
2064
936
|
relayout(): void;
|
|
2065
937
|
refreshAriaState(): void;
|
|
2066
938
|
relayoutColumns(invalidateRowHeights?: boolean): void;
|
|
@@ -2401,6 +1273,10 @@ declare const GRID_OPTION_META: {
|
|
|
2401
1273
|
readonly kind: "object";
|
|
2402
1274
|
readonly update: "options";
|
|
2403
1275
|
};
|
|
1276
|
+
readonly datasourceMode: {
|
|
1277
|
+
readonly kind: "string";
|
|
1278
|
+
readonly update: "options";
|
|
1279
|
+
};
|
|
2404
1280
|
readonly blockSize: {
|
|
2405
1281
|
readonly kind: "number";
|
|
2406
1282
|
readonly update: "options";
|
|
@@ -2409,6 +1285,26 @@ declare const GRID_OPTION_META: {
|
|
|
2409
1285
|
readonly kind: "number";
|
|
2410
1286
|
readonly update: "options";
|
|
2411
1287
|
};
|
|
1288
|
+
readonly maxBlocksInCache: {
|
|
1289
|
+
readonly kind: "number";
|
|
1290
|
+
readonly update: "options";
|
|
1291
|
+
};
|
|
1292
|
+
readonly blockPrefetch: {
|
|
1293
|
+
readonly kind: "number";
|
|
1294
|
+
readonly update: "options";
|
|
1295
|
+
};
|
|
1296
|
+
readonly datasourceRowCount: {
|
|
1297
|
+
readonly kind: "number";
|
|
1298
|
+
readonly update: "options";
|
|
1299
|
+
};
|
|
1300
|
+
readonly dataProcessor: {
|
|
1301
|
+
readonly kind: "object";
|
|
1302
|
+
readonly update: "options";
|
|
1303
|
+
};
|
|
1304
|
+
readonly dataProcessorMinRows: {
|
|
1305
|
+
readonly kind: "number";
|
|
1306
|
+
readonly update: "options";
|
|
1307
|
+
};
|
|
2412
1308
|
readonly datasourceRetryCount: {
|
|
2413
1309
|
readonly kind: "number";
|
|
2414
1310
|
readonly update: "options";
|
|
@@ -2497,7 +1393,7 @@ interface GridValidationIssue {
|
|
|
2497
1393
|
/** Runtime validation for JavaScript, JSON/schema driven and dynamic options. */
|
|
2498
1394
|
declare function validateGridOptions(options: Partial<GridOptions<any>> | Record<string, unknown>): GridValidationIssue[];
|
|
2499
1395
|
|
|
2500
|
-
type GridFeatureIssueCode = "DUPLICATE_FEATURE" | "FEATURE_CONFLICT" | "FEATURE_CYCLE" | "FEATURE_DEPENDENCY_SETUP_FAILED" | "INVALID_FEATURE_KEY" | "MISSING_FEATURE_DEPENDENCY";
|
|
1396
|
+
type GridFeatureIssueCode = "DUPLICATE_FEATURE" | "FEATURE_CONFLICT" | "FEATURE_CYCLE" | "FEATURE_DEPENDENCY_SETUP_FAILED" | "INVALID_FEATURE_KEY" | "MISSING_FEATURE_DEPENDENCY" | "UNSUPPORTED_FEATURE_VERSION";
|
|
2501
1397
|
interface GridFeatureIssue {
|
|
2502
1398
|
code: GridFeatureIssueCode;
|
|
2503
1399
|
feature?: string;
|
|
@@ -2917,4 +1813,4 @@ declare function sortNodes<TData>(nodes: RowNode<TData>[], sortModel: SortModel,
|
|
|
2917
1813
|
|
|
2918
1814
|
declare const version: string;
|
|
2919
1815
|
|
|
2920
|
-
export { type ActionButtonsConfig, type ActionItem, type ActionOverflowMode, type
|
|
1816
|
+
export { type ActionButtonsConfig, type ActionItem, type ActionOverflowMode, type ActionVariant, AdvancedFilterCondition, AdvancedFilterGroup, AdvancedFilterModel, AdvancedFilterNode, type AggFunction, type AggValues, BUILTIN_AGG_FUNCS, type BuiltInActionIcon, type BusinessColumnType, type BusinessColumnTypeOptions, type CachedDictionary, type CachedDictionaryOptions, CellEditorFactory, CellRendererFn, CellRendererParams, ColDef, ColDefGroup, ColDefOrGroup, Column, ColumnFilter, type ColumnHelper, ColumnState, type ColumnStateKeyParts, type ColumnStateStorage, ColumnStateStore, DIRECT_GRID_OPTION_KEYS, type DictionaryEntry, type DictionaryKey, type DictionaryRendererOptions, DomLayoutMode, EventBus, FieldPath, FieldPathValue, FilterModel, GRID_OPTION_KEYS, GRID_OPTION_META, GRID_SIZE_PRESETS, GridApi, GridBatchSaveResult, GridChange, GridComponents, GridCore, GridDiagnostics, GridEventMap, GridEventType, GridFeature, type GridFeatureIssue, type GridFeatureIssueCode, type GridOptionKey, type GridOptionMetadata, type GridOptionUpdateMode, type GridOptionValueKind, GridOptions, GridPerformanceSnapshot, type GridSchema, type GridSchemaField, type GridSchemaFieldType, type GridSchemaGroup, GridSize, type GridSizePreset, GridState, GridStateInput, GridStateStore, type GridValidationCode, type GridValidationIssue, type GridViewManager, type GridViewState, type GridViewStore, type LocalColumnStateStoreOptions, type LocalGridStateStoreOptions, type LocalGridViewStoreOptions, type MachTableCommandOptions, type MachTableCommands, type MachTableConfigWarning, type MachTableOptionExplanation, type MachTablePresetSelection, type MachTableRuntimeConfig, type ManagedColumnStateStore, type ManagedGridStateStore, OverlayTemplate, PinnedDirection, type ProgressConfig, RefreshCellsParams, RemoteBlockCacheSnapshot, type ResolvedGridFeatures, ResolvedGridOptions, type ResolvedMachTableConfig, type ResolvedMachTableGridOptions, RgLocaleKey, type RowActionsConfig, RowNode, RowTransaction, SaveChangeConflict, SaveChangesResult, type SavedGridView, type SchemaSelectOption, SortModel, type StatusTagConfig, type StoredColumnState, type StoredGridState, type TagVariant, ThemeMode, type WidthInput, actionsColumn, advancedFilterCondition, advancedFilterGroup, applyGridViewState, buildColDefsFromSchema, captureGridViewState, clearColumnState, clearComponentRegistries, clearGridState, computeColumnWidths, createActionButtonsRenderer, createAggResolver, createBusinessColumnTypes, createCachedDictionary, createColumnHelper, createColumnStateKey, createDictionaryRenderer, createEnterprisePreset, createGrid, createGridViewManager, createLocalColumnStateStore, createLocalGridStateStore, createLocalGridViewStore, createMachTableCommands, createMachTablePreset, createProgressBarRenderer, createRowActionsRenderer, createSaveSnapshot, createStatusTagRenderer, defaultComparator, defineColumns, defineGridOptions, defineMachTableConfig, defineMachTablePreset, describeFilter, downloadFile, dragColumn, escapeHtml, evaluateColumnFilter, fitColumnWidths, getByPath, getCellEditor, getCellRenderer, indexColumn, isSafePath, linkRenderer, loadColumnState, loadGridState, matchesGridOptionKind, mergeMachTableConfig, migrateGridState, normalizeAdvancedFilterModel, normalizeBatchSaveResult, normalizeColumnFilter, normalizeFilterModel, normalizeGridViewState, normalizeMachTableConfig, normalizeSavedGridView, parseCsv, parseDelimited, parseTsv, registerBuiltinRenderers, registerCellEditor, registerCellRenderer, resolveGridFeatures, resolveMachTableGridOptions, resolveSaveConflict, resolveTagVariant, rowActionsColumn, sanitizeFormulaCell, sanitizeGridOptionPatch, saveColumnState, saveGridState, selectionColumn, setByPath, sortNodes, toTsv, validateGridOptions, version };
|