@progress/kendo-react-treelist 7.2.4-develop.3 → 7.2.4-develop.4

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.
Files changed (86) hide show
  1. package/TreeList.js +8 -0
  2. package/TreeList.mjs +580 -0
  3. package/TreeListNoRecords.js +8 -0
  4. package/TreeListNoRecords.mjs +23 -0
  5. package/TreeListToolbar.js +8 -0
  6. package/TreeListToolbar.mjs +26 -0
  7. package/cells/EditCells/TreeListBooleanEditor.js +8 -0
  8. package/cells/EditCells/TreeListBooleanEditor.mjs +55 -0
  9. package/cells/EditCells/TreeListDateEditor.js +8 -0
  10. package/cells/EditCells/TreeListDateEditor.mjs +54 -0
  11. package/cells/EditCells/TreeListNumericEditor.js +8 -0
  12. package/cells/EditCells/TreeListNumericEditor.mjs +53 -0
  13. package/cells/EditCells/TreeListTextEditor.js +8 -0
  14. package/cells/EditCells/TreeListTextEditor.mjs +53 -0
  15. package/cells/FilterCells/TreeListBooleanFilter.js +8 -0
  16. package/cells/FilterCells/TreeListBooleanFilter.mjs +26 -0
  17. package/cells/FilterCells/TreeListDateFilter.js +8 -0
  18. package/cells/FilterCells/TreeListDateFilter.mjs +26 -0
  19. package/cells/FilterCells/TreeListNumericFilter.js +8 -0
  20. package/cells/FilterCells/TreeListNumericFilter.mjs +26 -0
  21. package/cells/FilterCells/TreeListTextFilter.js +8 -0
  22. package/cells/FilterCells/TreeListTextFilter.mjs +26 -0
  23. package/cells/FilterCells/utils.js +8 -0
  24. package/cells/FilterCells/utils.mjs +59 -0
  25. package/cells/TreeListCell.js +8 -0
  26. package/cells/TreeListCell.mjs +71 -0
  27. package/cells/TreeListSelectionCell.js +8 -0
  28. package/cells/TreeListSelectionCell.mjs +47 -0
  29. package/constants/index.js +8 -0
  30. package/constants/index.mjs +15 -0
  31. package/dist/cdn/js/kendo-react-treelist.js +8 -5
  32. package/header/TreeListHeaderCell.js +8 -0
  33. package/header/TreeListHeaderCell.mjs +14 -0
  34. package/header/TreeListHeaderSelectionCell.js +8 -0
  35. package/header/TreeListHeaderSelectionCell.mjs +25 -0
  36. package/index.d.mts +1139 -5
  37. package/index.d.ts +1139 -38
  38. package/index.js +8 -5
  39. package/index.mjs +66 -1184
  40. package/messages/index.js +8 -0
  41. package/messages/index.mjs +59 -0
  42. package/package-metadata.js +8 -0
  43. package/package-metadata.mjs +19 -0
  44. package/package.json +8 -8
  45. package/rows/TreeListDraggableRow.js +8 -0
  46. package/rows/TreeListDraggableRow.mjs +130 -0
  47. package/rows/TreeListRow.js +8 -0
  48. package/rows/TreeListRow.mjs +47 -0
  49. package/utils/index.js +8 -0
  50. package/utils/index.mjs +46 -0
  51. package/ScrollMode.d.ts +0 -5
  52. package/TreeList.d.ts +0 -137
  53. package/TreeListNoRecords.d.ts +0 -16
  54. package/TreeListToolbar.d.ts +0 -15
  55. package/cells/EditCells/TreeListBooleanEditor.d.ts +0 -11
  56. package/cells/EditCells/TreeListDateEditor.d.ts +0 -11
  57. package/cells/EditCells/TreeListNumericEditor.d.ts +0 -12
  58. package/cells/EditCells/TreeListTextEditor.d.ts +0 -11
  59. package/cells/FilterCells/TreeListBooleanFilter.d.ts +0 -14
  60. package/cells/FilterCells/TreeListDateFilter.d.ts +0 -14
  61. package/cells/FilterCells/TreeListNumericFilter.d.ts +0 -14
  62. package/cells/FilterCells/TreeListTextFilter.d.ts +0 -14
  63. package/cells/FilterCells/utils.d.ts +0 -42
  64. package/cells/TreeListCell.d.ts +0 -9
  65. package/cells/TreeListSelectionCell.d.ts +0 -11
  66. package/constants/index.d.ts +0 -10
  67. package/header/TreeListHeaderCell.d.ts +0 -7
  68. package/header/TreeListHeaderSelectionCell.d.ts +0 -15
  69. package/interfaces/DataItemWrapper.d.ts +0 -14
  70. package/interfaces/TreeListCellProps.d.ts +0 -45
  71. package/interfaces/TreeListColumnProps.d.ts +0 -45
  72. package/interfaces/TreeListFilterCellProps.d.ts +0 -10
  73. package/interfaces/TreeListFilterOperator.d.ts +0 -10
  74. package/interfaces/TreeListHeaderCellProps.d.ts +0 -10
  75. package/interfaces/TreeListNoRecordsProps.d.ts +0 -13
  76. package/interfaces/TreeListProps.d.ts +0 -241
  77. package/interfaces/TreeListRowProps.d.ts +0 -96
  78. package/interfaces/TreeListSelectableSettings.d.ts +0 -22
  79. package/interfaces/TreeListSortSettings.d.ts +0 -13
  80. package/interfaces/TreeListToolbarProps.d.ts +0 -13
  81. package/interfaces/events.d.ts +0 -269
  82. package/messages/index.d.ts +0 -124
  83. package/package-metadata.d.ts +0 -9
  84. package/rows/TreeListDraggableRow.d.ts +0 -36
  85. package/rows/TreeListRow.d.ts +0 -10
  86. package/utils/index.d.ts +0 -21
package/index.d.ts CHANGED
@@ -1,38 +1,1139 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { TreeList } from './TreeList';
6
- import { type TreeListProps } from './interfaces/TreeListProps';
7
- import { type TreeListColumnProps } from './interfaces/TreeListColumnProps';
8
- import { type TreeListCellProps } from './interfaces/TreeListCellProps';
9
- import { TreeListCell } from './cells/TreeListCell';
10
- import { TreeListHeaderCell } from './header/TreeListHeaderCell';
11
- import { type TreeListHeaderCellProps } from './interfaces/TreeListHeaderCellProps';
12
- import { TreeListSelectionCell, type TreeListSelectionCellProps } from './cells/TreeListSelectionCell';
13
- import { TreeListHeaderSelectionCell, type TreeListHeaderSelectionCellProps } from './header/TreeListHeaderSelectionCell';
14
- import { TreeListRow } from './rows/TreeListRow';
15
- import { TreeListDraggableRow } from './rows/TreeListDraggableRow';
16
- import { type TreeListRowProps } from './interfaces/TreeListRowProps';
17
- import { TreeListToolbar } from './TreeListToolbar';
18
- import { type TreeListToolbarProps } from './interfaces/TreeListToolbarProps';
19
- import { TreeListNoRecords } from './TreeListNoRecords';
20
- import { type TreeListNoRecordsProps } from './interfaces/TreeListNoRecordsProps';
21
- import type { TreeListDataStateChangeEvent, TreeListFilterChangeEvent, TreeListSortChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListItemChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListColumnMenuFilterChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListDragSelectionReleaseEvent, TreeListKeyDownEvent } from './interfaces/events';
22
- import type { TreeListSortSettings, TreeListColumnSortSettings } from './interfaces/TreeListSortSettings';
23
- import { TreeListTextFilter, type TreeListTextFilterProps } from './cells/FilterCells/TreeListTextFilter';
24
- import { TreeListNumericFilter, type TreeListNumericFilterProps } from './cells/FilterCells/TreeListNumericFilter';
25
- import { TreeListDateFilter, type TreeListDateFilterProps } from './cells/FilterCells/TreeListDateFilter';
26
- import { TreeListBooleanFilter, type TreeListBooleanFilterProps } from './cells/FilterCells/TreeListBooleanFilter';
27
- import { TreeListTextEditor, type TreeListTextEditorProps } from './cells/EditCells/TreeListTextEditor';
28
- import { TreeListNumericEditor, type TreeListNumericEditorProps } from './cells/EditCells/TreeListNumericEditor';
29
- import { TreeListBooleanEditor, type TreeListBooleanEditorProps } from './cells/EditCells/TreeListBooleanEditor';
30
- import { TreeListDateEditor, type TreeListDateEditorProps } from './cells/EditCells/TreeListDateEditor';
31
- import { mapTree, mapTreeItem, getNestedValue } from '@progress/kendo-react-common';
32
- import { orderBy, filterBy, moveTreeItem, getItemPath, createDataTree, extendDataItem, removeItems, modifySubItems, treeToFlat, flatData } from '@progress/kendo-react-data-tools';
33
- import { type DataItemWrapper } from './interfaces/DataItemWrapper';
34
- import { setHeaderRowsTop, tableRowsVirtualization } from './utils';
35
- import { TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT } from './constants';
36
- import { getSelectedState, getSelectedStateFromKeyDown, setSelectedState } from '@progress/kendo-react-data-tools';
37
- import { type TreeListSelectableMode, type TreeListSelectableSettings } from './interfaces/TreeListSelectableSettings';
38
- export { TreeList, TreeListProps, TreeListColumnProps, TreeListCell, TreeListCellProps, TreeListRow, TreeListDraggableRow, TreeListRowProps, TreeListHeaderCell, TreeListHeaderCellProps, TreeListSelectionCell, TreeListSelectionCellProps, TreeListHeaderSelectionCell, TreeListHeaderSelectionCellProps, TreeListToolbar, TreeListToolbarProps, TreeListNoRecords, TreeListNoRecordsProps, TreeListSortSettings, TreeListColumnSortSettings, TreeListTextFilter, TreeListTextFilterProps, TreeListNumericFilter, TreeListNumericFilterProps, TreeListDateFilter, TreeListDateFilterProps, TreeListBooleanFilter, TreeListBooleanFilterProps, TreeListTextEditor, TreeListTextEditorProps, TreeListNumericEditor, TreeListNumericEditorProps, TreeListBooleanEditor, TreeListBooleanEditorProps, TreeListDateEditor, TreeListDateEditorProps, TreeListDataStateChangeEvent, TreeListFilterChangeEvent, TreeListColumnMenuFilterChangeEvent, TreeListSortChangeEvent, TreeListExpandChangeEvent, TreeListSelectionChangeEvent, TreeListItemChangeEvent, TreeListHeaderSelectionChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListPageChangeEvent, TreeListRowDragEvent, TreeListEvent, TreeListRowDoubleClickEvent, TreeListRowContextMenuEvent, TreeListDragSelectionReleaseEvent, TreeListKeyDownEvent, orderBy, filterBy, mapTree, createDataTree, extendDataItem, mapTreeItem, moveTreeItem, getItemPath, removeItems, modifySubItems, treeToFlat, DataItemWrapper, flatData, getNestedValue, setHeaderRowsTop, tableRowsVirtualization, TREELIST_COL_INDEX_ATTRIBUTE, TREELIST_ROW_INDEX_ATTRIBUTE, TREELIST_PREVENT_SELECTION_ELEMENT, getSelectedState, getSelectedStateFromKeyDown, setSelectedState, TreeListSelectableSettings, TreeListSelectableMode };
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { BaseEvent } from '@progress/kendo-react-common';
9
+ import { CellProps } from '@progress/kendo-react-data-tools';
10
+ import { ColumnSortSettings } from '@progress/kendo-react-data-tools';
11
+ import { CommonDragLogic } from '@progress/kendo-react-data-tools';
12
+ import { ComponentType } from 'react';
13
+ import { CompositeFilterDescriptor } from '@progress/kendo-data-query';
14
+ import { createDataTree } from '@progress/kendo-react-data-tools';
15
+ import { extendDataItem } from '@progress/kendo-react-data-tools';
16
+ import { filterBy } from '@progress/kendo-react-data-tools';
17
+ import { FilterCellProps } from '@progress/kendo-react-data-tools';
18
+ import { FilterComponentProps } from '@progress/kendo-react-data-tools';
19
+ import { FilterDescriptor } from '@progress/kendo-data-query';
20
+ import { FilterOperator } from '@progress/kendo-react-data-tools';
21
+ import { FilterRowProps } from '@progress/kendo-react-data-tools';
22
+ import { flatData } from '@progress/kendo-react-data-tools';
23
+ import { getItemPath } from '@progress/kendo-react-data-tools';
24
+ import { getNestedValue } from '@progress/kendo-react-common';
25
+ import { getSelectedState } from '@progress/kendo-react-data-tools';
26
+ import { getSelectedStateFromKeyDown } from '@progress/kendo-react-data-tools';
27
+ import { HeaderCellProps } from '@progress/kendo-react-data-tools';
28
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
29
+ import { mapTree } from '@progress/kendo-react-common';
30
+ import { mapTreeItem } from '@progress/kendo-react-common';
31
+ import { modifySubItems } from '@progress/kendo-react-data-tools';
32
+ import { moveTreeItem } from '@progress/kendo-react-data-tools';
33
+ import { orderBy } from '@progress/kendo-react-data-tools';
34
+ import PropTypes from 'prop-types';
35
+ import * as React_2 from 'react';
36
+ import { removeItems } from '@progress/kendo-react-data-tools';
37
+ import { setSelectedState } from '@progress/kendo-react-data-tools';
38
+ import { SortDescriptor } from '@progress/kendo-data-query';
39
+ import { SortSettings } from '@progress/kendo-react-data-tools';
40
+ import { TableDragSelectionReleaseEvent } from '@progress/kendo-react-data-tools';
41
+ import { TableKeyboardNavigationContextType } from '@progress/kendo-react-data-tools';
42
+ import { TableKeyDownEvent } from '@progress/kendo-react-data-tools';
43
+ import { TableSelectableMode } from '@progress/kendo-react-data-tools';
44
+ import { TableSelectableSettings } from '@progress/kendo-react-data-tools';
45
+ import { TableSelectionChangeEvent } from '@progress/kendo-react-data-tools';
46
+ import { TreeColumnBaseProps } from '@progress/kendo-react-data-tools';
47
+ import { treeToFlat } from '@progress/kendo-react-data-tools';
48
+
49
+ declare interface ColumnDragEvent {
50
+ /**
51
+ * An event target.
52
+ */
53
+ target: TreeList;
54
+ /**
55
+ * A native DOM event.
56
+ */
57
+ nativeEvent: any;
58
+ /**
59
+ * The current columns collection.
60
+ */
61
+ columns: TreeListColumnProps[];
62
+ }
63
+
64
+ export { createDataTree }
65
+
66
+ /**
67
+ * @hidden
68
+ */
69
+ export declare interface DataItemWrapper {
70
+ dataItem: any;
71
+ level: number[];
72
+ height: number;
73
+ offsetTop: number;
74
+ levelCount: number;
75
+ }
76
+
77
+ export { extendDataItem }
78
+
79
+ export { filterBy }
80
+
81
+ export { flatData }
82
+
83
+ export { getItemPath }
84
+
85
+ export { getNestedValue }
86
+
87
+ export { getSelectedState }
88
+
89
+ export { getSelectedStateFromKeyDown }
90
+
91
+ export { mapTree }
92
+
93
+ export { mapTreeItem }
94
+
95
+ export { modifySubItems }
96
+
97
+ export { moveTreeItem }
98
+
99
+ export { orderBy }
100
+
101
+ export { removeItems }
102
+
103
+ declare interface RowDragClueProps {
104
+ visible: boolean;
105
+ top: number;
106
+ left: number;
107
+ text: string;
108
+ allowDrop: boolean;
109
+ }
110
+
111
+ declare type ScrollMode = 'none' | 'scrollable' | 'virtual';
112
+
113
+ /**
114
+ * @hidden
115
+ */
116
+ export declare function setHeaderRowsTop(table: HTMLTableElement, toolbarHeight: number, rowHeight?: (row: HTMLTableRowElement) => string | undefined): void;
117
+
118
+ export { setSelectedState }
119
+
120
+ /**
121
+ * @hidden
122
+ */
123
+ export declare function tableRowsVirtualization(args: {
124
+ rows: DataItemWrapper[];
125
+ tableViewPortHeight: number;
126
+ scrollTop: number;
127
+ }): DataItemWrapper[];
128
+
129
+ /**
130
+ * Represents the [KendoReact TreeList component]({% slug getstarted_treelist %}).
131
+ */
132
+ export declare class TreeList extends React_2.Component<TreeListProps, {}> {
133
+ /**
134
+ * @hidden
135
+ */
136
+ static propTypes: {
137
+ data: PropTypes.Requireable<any[]>;
138
+ resizable: PropTypes.Requireable<boolean>;
139
+ reorderable: PropTypes.Requireable<boolean>;
140
+ sortable: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
141
+ mode: PropTypes.Requireable<string>;
142
+ allowUnsort: PropTypes.Requireable<boolean>;
143
+ }> | null | undefined>>;
144
+ onSortChange: PropTypes.Requireable<(...args: any[]) => any>;
145
+ sort: PropTypes.Requireable<any[]>;
146
+ columns: PropTypes.Requireable<(object | null | undefined)[]>;
147
+ columnVirtualization: PropTypes.Requireable<boolean>;
148
+ filter: PropTypes.Requireable<any[]>;
149
+ onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
150
+ filterRow: PropTypes.Requireable<any>;
151
+ toolbar: PropTypes.Requireable<any>;
152
+ noRecords: PropTypes.Requireable<any>;
153
+ onExpandChange: PropTypes.Requireable<(...args: any[]) => any>;
154
+ expandField: PropTypes.Requireable<string>;
155
+ subItemsField: PropTypes.Requireable<string>;
156
+ selectedField: PropTypes.Requireable<string>;
157
+ onSelectionChange: PropTypes.Requireable<(...args: any[]) => any>;
158
+ onHeaderSelectionChange: PropTypes.Requireable<(...args: any[]) => any>;
159
+ onRowClick: PropTypes.Requireable<(...args: any[]) => any>;
160
+ onItemChange: PropTypes.Requireable<(...args: any[]) => any>;
161
+ editField: PropTypes.Requireable<string>;
162
+ scrollable: PropTypes.Requireable<string>;
163
+ rowHeight: PropTypes.Requireable<number>;
164
+ style: PropTypes.Requireable<object>;
165
+ tableProps: PropTypes.Requireable<object>;
166
+ pager: PropTypes.Requireable<any>;
167
+ skip: PropTypes.Requireable<number>;
168
+ take: PropTypes.Requireable<number>;
169
+ onPageChange: PropTypes.Requireable<(...args: any[]) => any>;
170
+ onDataStateChange: PropTypes.Requireable<(...args: any[]) => any>;
171
+ onColumnResize: PropTypes.Requireable<(...args: any[]) => any>;
172
+ onColumnReorder: PropTypes.Requireable<(...args: any[]) => any>;
173
+ dataItemKey: PropTypes.Requireable<string>;
174
+ navigatable: PropTypes.Requireable<boolean>;
175
+ };
176
+ /** @hidden */
177
+ static contextType: React_2.Context<TableKeyboardNavigationContextType | undefined>;
178
+ private wrapperScrollLeft;
179
+ private wrapperScrollTop;
180
+ private updateOnScroll;
181
+ private tbodyOffsetTop;
182
+ private prevData;
183
+ private flattedData;
184
+ private extendedColumn;
185
+ private columnsMap;
186
+ private columnResize;
187
+ private element;
188
+ protected dragLogic: CommonDragLogic<TreeListCellProps, TreeListHeaderCellProps, TreeListFilterCellProps>;
189
+ private get _treeListId();
190
+ private get document();
191
+ private contextStateRef;
192
+ private navigationStateRef;
193
+ constructor(props: TreeListProps);
194
+ /**
195
+ * Method to allow the scroll to be set to a specific row index.
196
+ *
197
+ * @param options - Object, containing the rowIndex to which is going to be scrolled.
198
+ */
199
+ scrollIntoView: (options: {
200
+ rowIndex?: number;
201
+ }) => void;
202
+ /**
203
+ * @hidden
204
+ */
205
+ componentDidMount(): void;
206
+ /**
207
+ * @hidden
208
+ */
209
+ getSnapshotBeforeUpdate(): null;
210
+ /**
211
+ * @hidden
212
+ */
213
+ componentDidUpdate(prevProps: TreeListProps): void;
214
+ /**
215
+ * @hidden
216
+ */
217
+ componentWillUnmount(): void;
218
+ /**
219
+ * @hidden
220
+ */
221
+ render(): JSX_2.Element;
222
+ private getExtendedColumn;
223
+ private getColumnsMap;
224
+ private get columns();
225
+ private get flatData();
226
+ private onKeyDown;
227
+ private onFocus;
228
+ private onRowDrag;
229
+ private onRowDrop;
230
+ private columnReorder;
231
+ private onResize;
232
+ private handleOnScroll;
233
+ private calculateSizes;
234
+ private itemChange;
235
+ private selectionChange;
236
+ private onHeaderSelectionChange;
237
+ private selectionRelease;
238
+ private sortChange;
239
+ private headerFilterChange;
240
+ private filterChange;
241
+ private columnMenuFilterChange;
242
+ private expandChange;
243
+ private rowClick;
244
+ private rowDoubleClick;
245
+ private rowContextMenu;
246
+ private onPageChange;
247
+ private raiseDataEvent;
248
+ private getDataState;
249
+ private getArguments;
250
+ private expandedSubItems;
251
+ private getLeafDataItems;
252
+ private expanded;
253
+ private hasChildren;
254
+ }
255
+
256
+ /** The attribute required by the TreeList selection on TreeList `td` elements. */
257
+ export declare const TREELIST_COL_INDEX_ATTRIBUTE = "data-grid-col-index";
258
+
259
+ /** Attribute which disable selection start from this element. */
260
+ export declare const TREELIST_PREVENT_SELECTION_ELEMENT = "data-prevent-selection";
261
+
262
+ /** The attribute required by the TreeList selection on TreeList `tr` elements. */
263
+ export declare const TREELIST_ROW_INDEX_ATTRIBUTE = "data-grid-row-index";
264
+
265
+ export declare const TreeListBooleanEditor: {
266
+ (props: TreeListBooleanEditorProps): JSX_2.Element | null;
267
+ displayName: string;
268
+ };
269
+
270
+ export declare interface TreeListBooleanEditorProps extends TreeListCellProps {
271
+ }
272
+
273
+ export declare const TreeListBooleanFilter: React_2.FunctionComponent<TreeListBooleanFilterProps>;
274
+
275
+ export declare interface TreeListBooleanFilterProps extends FilterComponentProps {
276
+ /**
277
+ * The list of the operators.
278
+ */
279
+ operators?: TreeListFilterOperator[];
280
+ }
281
+
282
+ export declare const TreeListCell: {
283
+ (props: TreeListCellProps): JSX_2.Element | null;
284
+ displayName: string;
285
+ };
286
+
287
+ /**
288
+ * Represents the props of the TreeListCell component.
289
+ */
290
+ export declare interface TreeListCellProps extends Omit<CellProps, 'onExpandChange' | 'render' | 'onChange'> {
291
+ /**
292
+ * An array of indexes of each parent and current item in the data tree.
293
+ */
294
+ level: number[];
295
+ /**
296
+ * Indicates that the data item of the cell has subitems.
297
+ */
298
+ hasChildren?: boolean;
299
+ /**
300
+ * If set to `true`, the cell will render indentation based on its level prop and
301
+ * the icons that are used for expanding and collapsing child rows.
302
+ */
303
+ expandable?: boolean;
304
+ /**
305
+ * The index of the column. Useful for applying `aria-colindex` accessibility attribute.
306
+ */
307
+ colIndex: number;
308
+ /**
309
+ * The event that is fired when the expand or collapse icon of the cell is clicked.
310
+ */
311
+ onExpandChange: (event: React.MouseEvent<HTMLSpanElement>, dataItem: any, level: number[]) => void;
312
+ /**
313
+ * A function for overriding the default rendering of the cell.
314
+ */
315
+ render?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: TreeListCellProps) => React.ReactElement<HTMLTableCellElement> | null;
316
+ /**
317
+ * The event that is fired when the cell value is changed.
318
+ */
319
+ onChange?: (event: {
320
+ dataItem: any;
321
+ level: number[];
322
+ syntheticEvent: React.SyntheticEvent<any>;
323
+ field?: string;
324
+ value?: any;
325
+ }) => void;
326
+ }
327
+
328
+ /**
329
+ * Represents the object of the `onColumnMenuFilterChange` TreeList event.
330
+ */
331
+ export declare interface TreeListColumnMenuFilterChangeEvent extends TreeListEvent {
332
+ /**
333
+ * The new `CompositeFilterDescriptor` based on the user action.
334
+ */
335
+ filter: CompositeFilterDescriptor[];
336
+ /**
337
+ * The field of the column which triggers the event.
338
+ */
339
+ field: string;
340
+ }
341
+
342
+ /**
343
+ * The props of the columns of the TreeList component.
344
+ */
345
+ export declare interface TreeListColumnProps extends Omit<TreeColumnBaseProps, 'children' | 'cell' | 'editCell'> {
346
+ /**
347
+ * Defines the component that will be rendered as a cell. If not set, a `TreeListCell` will be rendered by default.
348
+ */
349
+ cell?: ComponentType<TreeListCellProps>;
350
+ /**
351
+ * Defines the component that will be rendered as an edit cell.
352
+ */
353
+ editCell?: ComponentType<TreeListCellProps>;
354
+ /**
355
+ * Defines the component that will be rendered as a header cell.
356
+ * If not set, a `TreeListHeaderCell` will be rendered by default.
357
+ */
358
+ headerCell?: ComponentType<TreeListHeaderCellProps>;
359
+ /**
360
+ * **Deprecated**. Use `filterCell` prop instead.
361
+ */
362
+ filter?: ComponentType<TreeListFilterCellProps>;
363
+ /**
364
+ * Defines the component that will be rendered as a filter cell.
365
+ */
366
+ filterCell?: ComponentType<TreeListFilterCellProps>;
367
+ /**
368
+ * A collection of child columns.
369
+ */
370
+ children?: TreeListColumnProps[];
371
+ /**
372
+ * Defines if the column is locked (frozen or sticky).
373
+ * Locked columns are the columns that are visible at all times while the user scrolls the component horizontally.
374
+ * Defaults to `false`.
375
+ */
376
+ locked?: boolean;
377
+ }
378
+
379
+ /**
380
+ * Represents the object of the `onColumnReorder` TreeList event.
381
+ */
382
+ export declare interface TreeListColumnReorderEvent extends ColumnDragEvent {
383
+ }
384
+
385
+ /**
386
+ * Represents the object of the `onColumnResize` TreeList event.
387
+ */
388
+ export declare interface TreeListColumnResizeEvent extends ColumnDragEvent {
389
+ /**
390
+ * The index of the column.
391
+ */
392
+ index: number;
393
+ /**
394
+ * The new width of the column.
395
+ */
396
+ newWidth: number;
397
+ /**
398
+ * The actual width of the column prior to resizing.
399
+ */
400
+ oldWidth: number;
401
+ /**
402
+ * Indicates that resizing is complete and the user has dropped the resize handler.
403
+ */
404
+ end: boolean;
405
+ /**
406
+ * The total width of the columns after the resizing.
407
+ */
408
+ totalWidth: number;
409
+ }
410
+
411
+ /**
412
+ * The settings for sorting the TreeList columns.
413
+ */
414
+ export declare type TreeListColumnSortSettings = ColumnSortSettings;
415
+
416
+ /**
417
+ * Represents the object of the `onDataStateChange` TreeList event.
418
+ */
419
+ export declare interface TreeListDataStateChangeEvent extends TreeListEvent {
420
+ /**
421
+ * The state of the TreeList based on the user action.
422
+ */
423
+ dataState: {
424
+ /**
425
+ * The descriptors that are used for sorting.
426
+ */
427
+ sort?: Array<SortDescriptor>;
428
+ /**
429
+ * The descriptors that are used for filtering.
430
+ */
431
+ filter?: Array<FilterDescriptor>;
432
+ /**
433
+ * The field of the column which triggers the event.
434
+ */
435
+ field?: string;
436
+ };
437
+ }
438
+
439
+ export declare const TreeListDateEditor: {
440
+ (props: TreeListDateEditorProps): JSX_2.Element | null;
441
+ displayName: string;
442
+ };
443
+
444
+ export declare interface TreeListDateEditorProps extends TreeListCellProps {
445
+ }
446
+
447
+ export declare const TreeListDateFilter: React_2.FunctionComponent<TreeListDateFilterProps>;
448
+
449
+ export declare interface TreeListDateFilterProps extends FilterComponentProps {
450
+ /**
451
+ * The list of the operators.
452
+ */
453
+ operators?: TreeListFilterOperator[];
454
+ }
455
+
456
+ /**
457
+ * The TreeList draggable row component.
458
+ */
459
+ export declare class TreeListDraggableRow extends React_2.Component<TreeListRowProps, TreeListRowState> {
460
+ /**
461
+ * @hidden
462
+ */
463
+ readonly state: TreeListRowState;
464
+ private draggable;
465
+ private dragged;
466
+ private draggedOver;
467
+ /**
468
+ * @hidden
469
+ */
470
+ render(): JSX_2.Element;
471
+ private onPress;
472
+ private onDrag;
473
+ private onRelease;
474
+ }
475
+
476
+ /** @hidden */
477
+ export declare interface TreeListDragSelectionReleaseEvent extends TableDragSelectionReleaseEvent {
478
+ }
479
+
480
+ /**
481
+ * Represents the base event object of the TreeList.
482
+ */
483
+ export declare interface TreeListEvent extends BaseEvent<TreeList> {
484
+ }
485
+
486
+ /**
487
+ * Represents the object of the `onExpandChange` TreeList event.
488
+ */
489
+ export declare interface TreeListExpandChangeEvent extends TreeListEvent {
490
+ /**
491
+ * The data item which is expanded or collapsed.
492
+ */
493
+ dataItem: any;
494
+ /**
495
+ * An array of indexes of each parent and current item in the data tree.
496
+ */
497
+ level: number[];
498
+ /**
499
+ * The available values are:
500
+ * - `true`&mdash;If the data item is expanded.
501
+ * - `false`&mdash;If the data item is collapsed.
502
+ */
503
+ value: boolean;
504
+ }
505
+
506
+ /**
507
+ * @hidden
508
+ */
509
+ declare interface TreeListFilterCellProps extends FilterCellProps {
510
+ }
511
+
512
+ /**
513
+ * Represents the object of the `onFilterChange` TreeList event.
514
+ */
515
+ export declare interface TreeListFilterChangeEvent extends TreeListEvent {
516
+ /**
517
+ * The new `FilterDescriptor` based on the user action.
518
+ */
519
+ filter: FilterDescriptor[];
520
+ /**
521
+ * The field of the column which triggers the event.
522
+ */
523
+ field: string;
524
+ }
525
+
526
+ /**
527
+ * The filter operator for the TreeList filters.
528
+ */
529
+ declare interface TreeListFilterOperator extends FilterOperator {
530
+ }
531
+
532
+ export declare const TreeListHeaderCell: React_2.FunctionComponent<TreeListHeaderCellProps>;
533
+
534
+ /**
535
+ * The props of the TreeListHeaderCell component.
536
+ */
537
+ export declare interface TreeListHeaderCellProps extends HeaderCellProps {
538
+ }
539
+
540
+ export declare class TreeListHeaderSelectionCell extends React_2.Component<TreeListHeaderSelectionCellProps> {
541
+ private _inputId;
542
+ /**
543
+ * @hidden
544
+ */
545
+ render(): JSX_2.Element;
546
+ }
547
+
548
+ export declare interface TreeListHeaderSelectionCellProps extends HeaderCellProps {
549
+ }
550
+
551
+ /**
552
+ * Represents the object of the `onHeaderSelectionChange` TreeList event.
553
+ */
554
+ export declare interface TreeListHeaderSelectionChangeEvent extends TreeListEvent {
555
+ /**
556
+ * The field of the column in which the cell is located.
557
+ */
558
+ field?: string;
559
+ /**
560
+ * The current data as flatted array.
561
+ */
562
+ dataItems: any[];
563
+ }
564
+
565
+ /**
566
+ * Represents the object of the `onItemChange` TreeList event.
567
+ */
568
+ export declare interface TreeListItemChangeEvent extends TreeListEvent {
569
+ /**
570
+ * The data item which corresponds to the current row.
571
+ */
572
+ dataItem: any;
573
+ /**
574
+ * An array of indexes of each parent and current item in the data tree.
575
+ */
576
+ level: number[];
577
+ /**
578
+ * The field to which the row is bound.
579
+ */
580
+ field?: string;
581
+ /**
582
+ * The value of the item.
583
+ */
584
+ value: any;
585
+ }
586
+
587
+ /**
588
+ * Represents the object of the `onKeyDownEvent` TreeList event.
589
+ */
590
+ export declare interface TreeListKeyDownEvent extends TreeListEvent, TableKeyDownEvent<TreeList> {
591
+ }
592
+
593
+ /**
594
+ * Represents the TreeListNoRecords component.
595
+ * The component is rendered when the `data` property of the TreeList is an empty array or undefined.
596
+ */
597
+ export declare class TreeListNoRecords extends React_2.Component<TreeListNoRecordsProps, {}> {
598
+ /**
599
+ * @hidden
600
+ */
601
+ render(): any;
602
+ }
603
+
604
+ /**
605
+ * The props of the TreeListNoRecords component.
606
+ */
607
+ export declare interface TreeListNoRecordsProps {
608
+ /**
609
+ * The React elements which will be rendered inside the TreeList when no records are available.
610
+ */
611
+ children?: React.ReactNode;
612
+ }
613
+
614
+ export declare const TreeListNumericEditor: {
615
+ (props: TreeListNumericEditorProps): React_2.ReactElement<HTMLTableCellElement, string | React_2.JSXElementConstructor<any>> | null;
616
+ displayName: string;
617
+ };
618
+
619
+ export declare interface TreeListNumericEditorProps extends TreeListCellProps {
620
+ }
621
+
622
+ export declare const TreeListNumericFilter: React_2.FunctionComponent<TreeListNumericFilterProps>;
623
+
624
+ export declare interface TreeListNumericFilterProps extends FilterComponentProps {
625
+ /**
626
+ * The list of the operators.
627
+ */
628
+ operators?: TreeListFilterOperator[];
629
+ }
630
+
631
+ /**
632
+ * Represents the object of the `onPageChange` TreeList event.
633
+ */
634
+ export declare interface TreeListPageChangeEvent extends TreeListEvent {
635
+ /**
636
+ * The number of records that will be skipped.
637
+ */
638
+ skip: number;
639
+ /**
640
+ * The number of records that will be taken.
641
+ */
642
+ take: number;
643
+ }
644
+
645
+ /**
646
+ * Represents the props of the [KendoReact TreeList component]({% slug getstarted_treelist %}).
647
+ */
648
+ export declare interface TreeListProps {
649
+ /**
650
+ * Sets the TreeList row key prop to the value of this field in the dataItem.
651
+ * If not set, the dataItem index will be used for the row key, which might lead to row not updated during paging or scrolling.
652
+ */
653
+ dataItemKey?: string;
654
+ /**
655
+ * Sets custom CSS classes to the TreeList DOM element.
656
+ */
657
+ className?: string;
658
+ /**
659
+ * Sets `id` to the TreeList DOM element.
660
+ */
661
+ id?: string;
662
+ /**
663
+ * A collection of `TreeListColumnProps` for creating columns.
664
+ */
665
+ columns?: TreeListColumnProps[];
666
+ /**
667
+ * Enables the virtualization of the columns
668
+ * ([see example]({% slug virtual_columns_treelist %})).
669
+ * If enabled, the columns outside the viewport are not rendered.
670
+ */
671
+ columnVirtualization?: boolean;
672
+ /**
673
+ * Sets the data of the TreeList.
674
+ */
675
+ data?: any[];
676
+ /**
677
+ * Enables sorting ([see example]({% slug sorting_treelist %})).
678
+ */
679
+ sortable?: SortSettings;
680
+ /**
681
+ * Fires when the sorting of the TreeList is changed ([see example]({% slug sorting_treelist %})).
682
+ * You have to handle the event yourself and sort the data.
683
+ */
684
+ onSortChange?: (event: TreeListSortChangeEvent) => void;
685
+ /**
686
+ * The descriptors by which the data is sorted. Applies the sorting styles and buttons to the affected columns.
687
+ */
688
+ sort?: SortDescriptor[];
689
+ /**
690
+ * If set, it will be rendered instead of the default `FilterRow` TreeList component.
691
+ */
692
+ filterRow?: React.ComponentType<FilterRowProps>;
693
+ /**
694
+ * If set and when the data item is in edit mode, the `editRow` value will be rendered.
695
+ */
696
+ editRow?: React.ComponentType<TreeListRowProps>;
697
+ /**
698
+ * Represents the TreeList toolbar component.
699
+ */
700
+ toolbar?: React.ReactElement<TreeListToolbarProps>;
701
+ /**
702
+ * Represents the component that will be rendered when the `data` property of the TreeList is empty or undefined.
703
+ */
704
+ noRecords?: React.ReactElement<TreeListNoRecordsProps>;
705
+ /**
706
+ * The descriptors by which the data is filtered ([more information and examples]({% slug filtering_treelist %})).
707
+ * This affects the values and buttons in the `FilterRow` of the TreeList.
708
+ */
709
+ filter?: FilterDescriptor[];
710
+ /**
711
+ * Fires when the TreeList filter is modified through the UI
712
+ * ([more information and examples]({% slug filtering_treelist %})).
713
+ * You have to handle the event yourself and filter the data.
714
+ */
715
+ onFilterChange?: (event: TreeListFilterChangeEvent) => void;
716
+ /**
717
+ * Fires when the user clicks on the expand or collapse icon of a row.
718
+ */
719
+ onExpandChange?: (event: TreeListExpandChangeEvent) => void;
720
+ /**
721
+ * Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.
722
+ */
723
+ expandField?: string;
724
+ /**
725
+ * Specifies the name of the field which will provide an array representation of the item subitems.
726
+ */
727
+ subItemsField?: string;
728
+ /**
729
+ * The TreeList selectable settings.
730
+ */
731
+ selectable?: TreeListSelectableSettings;
732
+ /**
733
+ * Specifies the name of the field which will provide a Boolean representation of the selected state of the item
734
+ * ([see example]({% slug selection_treelist %})).
735
+ */
736
+ selectedField?: string;
737
+ /**
738
+ * Fires when the user tries to select or deselect a row or cell.
739
+ * ([more information and example]({% slug selection_treelist %})).
740
+ */
741
+ onSelectionChange?: (event: TreeListSelectionChangeEvent) => void;
742
+ /**
743
+ * Fires when the user press keyboard key.
744
+ */
745
+ onKeyDown?: (event: TreeListKeyDownEvent) => void;
746
+ /**
747
+ * Fires when the user clicks the checkbox of a column header whose `field` matches `selectedField`
748
+ * ([more information and example]({% slug selection_treelist %})).
749
+ */
750
+ onHeaderSelectionChange?: (event: TreeListHeaderSelectionChangeEvent) => void;
751
+ /**
752
+ * Fires when the user changes the values of the item.
753
+ * The event is not debounced and fires on every `onChange` event of the input in the current `EditCell`
754
+ * ([more information and examples]({% slug editing_inline_treelist %})).
755
+ */
756
+ onItemChange?: (event: TreeListItemChangeEvent) => void;
757
+ /**
758
+ * Fires when the user clicks a row.
759
+ */
760
+ onRowClick?: (event: TreeListRowClickEvent) => void;
761
+ /**
762
+ * Fires when the user double clicks a row.
763
+ */
764
+ onRowDoubleClick?: (event: TreeListRowDoubleClickEvent) => void;
765
+ /**
766
+ * Fires when the user trigger the context menu of row.
767
+ */
768
+ onRowContextMenu?: (event: TreeListRowContextMenuEvent) => void;
769
+ /**
770
+ * Specifies the name of the field which will provide a Boolean representation of the edit state of the current item
771
+ * ([more information and examples]({% slug editing_inline_treelist %})).
772
+ */
773
+ editField?: string;
774
+ /**
775
+ * Defines the scroll mode of the TreeList.
776
+ *
777
+ * The available options are:
778
+ * - `none`&mdash;Renders no scrollbar.
779
+ * - `scrollable`&mdash;Represents the default scroll mode of the TreeList.
780
+ * Requires you to set the `overflow` and `height` (for vertical scrolling),
781
+ * or `width` (for horizontal scrolling) styles.
782
+ * - `virtual`&mdash;Enables the vertical virtual scrolling of the TreeList.
783
+ * Requires you to set the `overflow` and `height` styles and `rowHeight` prop of the TreeList.
784
+ */
785
+ scrollable?: ScrollMode;
786
+ /**
787
+ * If set to `true`, the user can resize columns by dragging the edges (resize handles) of their header cells.
788
+ */
789
+ resizable?: boolean;
790
+ /**
791
+ * If set to `true`, the user can reorder columns by dragging their header cells.
792
+ */
793
+ reorderable?: boolean;
794
+ /**
795
+ * If set to `true`, the user can drag and drop rows.
796
+ */
797
+ rowDraggable?: boolean;
798
+ /**
799
+ * Defines the row height and implements equal heights for all rows.
800
+ */
801
+ rowHeight?: number;
802
+ /**
803
+ * Represents the `style` HTML attribute.
804
+ */
805
+ style?: React.CSSProperties;
806
+ /**
807
+ * A props object that will be passed to the underlying HTML table.
808
+ */
809
+ tableProps?: React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
810
+ columnMenu?: React.ComponentType<any>;
811
+ columnMenuFilter?: CompositeFilterDescriptor[];
812
+ onColumnMenuFilterChange?: (event: TreeListColumnMenuFilterChangeEvent) => void;
813
+ /**
814
+ * The pager component that the TreeList will render.
815
+ */
816
+ pager?: React.ComponentType<any>;
817
+ /**
818
+ * The number of records that will be skipped.
819
+ */
820
+ skip?: number;
821
+ /**
822
+ * The number of records that will be taken.
823
+ */
824
+ take?: number;
825
+ /**
826
+ * The TreeList row component.
827
+ */
828
+ row?: React.ComponentType<TreeListRowProps>;
829
+ /**
830
+ * If set to `true`, the user can use dedicated shortcuts to interact with the TreeList.
831
+ * By default, navigation is disabled and the TreeList content is accessible in the normal tab sequence.
832
+ */
833
+ navigatable?: boolean;
834
+ /**
835
+ * Fires when the page of the TreeList is changed.
836
+ */
837
+ onPageChange?: (event: TreeListPageChangeEvent) => void;
838
+ /**
839
+ * Fires when the data state of the TreeList is changed.
840
+ */
841
+ onDataStateChange?: (event: TreeListDataStateChangeEvent) => void;
842
+ /**
843
+ * Fires when a column is resized.
844
+ */
845
+ onColumnResize?: (event: TreeListColumnResizeEvent) => void;
846
+ /**
847
+ * Fires when the columns are reordered.
848
+ */
849
+ onColumnReorder?: (event: TreeListColumnReorderEvent) => void;
850
+ /**
851
+ * Fires when a row is dragged.
852
+ */
853
+ onRowDrag?: (event: TreeListRowDragEvent) => void;
854
+ /**
855
+ * Fires when a row is dragged and dropped.
856
+ */
857
+ onRowDrop?: (event: TreeListRowDragEvent) => void;
858
+ /**
859
+ * Fires when a row is about to be rendered. Useful for overriding the default rendering of the row.
860
+ */
861
+ rowRender?: (row: React.ReactElement<HTMLTableRowElement>, props: TreeListRowProps) => React.ReactNode;
862
+ /**
863
+ * Fires when a cell is about to be rendered. Useful for overriding the default rendering of the cell.
864
+ */
865
+ cellRender?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: TreeListCellProps) => React.ReactElement<HTMLTableCellElement> | null;
866
+ /**
867
+ * Fires when a header cell is about to be rendered. Useful for overriding the default rendering of the header cell.
868
+ */
869
+ headerCellRender?: (defaultRendering: React.ReactNode | null, props: TreeListHeaderCellProps) => React.ReactNode;
870
+ }
871
+
872
+ /**
873
+ * The default row component of the TreeList.
874
+ */
875
+ export declare const TreeListRow: React_2.ForwardRefExoticComponent<TreeListRowProps & React_2.RefAttributes<HTMLTableRowElement>>;
876
+
877
+ /**
878
+ * Represents the object of the `onRowClick` TreeList event.
879
+ */
880
+ export declare interface TreeListRowClickEvent extends TreeListEvent {
881
+ /**
882
+ * The data item which corresponds to the clicked row.
883
+ */
884
+ dataItem: any;
885
+ /**
886
+ * An array of indexes of each parent and current item in the data tree.
887
+ */
888
+ level: number[];
889
+ }
890
+
891
+ /**
892
+ * Represents the object of the `onRowContextMenu` TreeList event.
893
+ */
894
+ export declare interface TreeListRowContextMenuEvent extends TreeListEvent {
895
+ /**
896
+ * The data item which corresponds to the clicked row.
897
+ */
898
+ dataItem: any;
899
+ /**
900
+ * An array of indexes of each parent and current item in the data tree.
901
+ */
902
+ level: number[];
903
+ }
904
+
905
+ /**
906
+ * Represents the object of the `onRowDoubleClick` TreeList event.
907
+ */
908
+ export declare interface TreeListRowDoubleClickEvent extends TreeListEvent {
909
+ /**
910
+ * The data item which corresponds to the clicked row.
911
+ */
912
+ dataItem: any;
913
+ /**
914
+ * An array of indexes of each parent and current item in the data tree.
915
+ */
916
+ level: number[];
917
+ }
918
+
919
+ /**
920
+ * Represents the object of the TreeList row Drag and Drop event.
921
+ */
922
+ export declare interface TreeListRowDragEvent {
923
+ /**
924
+ * A native DOM event.
925
+ */
926
+ nativeEvent: any;
927
+ /**
928
+ * An event target.
929
+ */
930
+ target: TreeList;
931
+ /**
932
+ * The level of the dragged row.
933
+ * The level represents an array of indexes of each parent and current item in the data tree.
934
+ */
935
+ dragged: number[];
936
+ /**
937
+ * The level of the draggedOver row.
938
+ * The level represents an array of indexes of each parent and current item in the data tree.
939
+ */
940
+ draggedOver: number[] | null;
941
+ /**
942
+ * The data item which corresponds to the dragged row.
943
+ */
944
+ draggedItem: any;
945
+ }
946
+
947
+ /**
948
+ * The props that the TreeList passes to the TreeListRow component when creating it.
949
+ * Accessible during the `rowRender` callback of the TreeList.
950
+ */
951
+ export declare interface TreeListRowProps {
952
+ /**
953
+ * The `data` object that represents the current row.
954
+ */
955
+ dataItem: any;
956
+ /**
957
+ * The event that is fired when the row is clicked.
958
+ */
959
+ onClick?: any;
960
+ /**
961
+ * The event that is fired when the row is double clicked.
962
+ */
963
+ onDoubleClick?: any;
964
+ /**
965
+ * The event that is fired when the row context menu is triggered.
966
+ */
967
+ onContextMenu?: any;
968
+ /**
969
+ * The name of the field which will provide a Boolean representation of the selected state of the item.
970
+ */
971
+ selectedField?: string;
972
+ /**
973
+ * Sets the height of the row.
974
+ */
975
+ rowHeight?: number;
976
+ /**
977
+ * A function for overriding the default rendering of the row.
978
+ */
979
+ render?: (row: React.ReactElement<HTMLTableRowElement>, props: TreeListRowProps) => React.ReactNode;
980
+ /**
981
+ * An array of indexes of each parent and current item in the data tree.
982
+ */
983
+ level: number[];
984
+ /**
985
+ * Fires when a row is dragged.
986
+ */
987
+ onDrag?: (event: {
988
+ nativeEvent: any;
989
+ dragged: number[];
990
+ draggedOver: number[] | null;
991
+ draggedItem: any;
992
+ }) => void;
993
+ /**
994
+ * Fires when a row is dragged and dropped.
995
+ */
996
+ onDrop?: (event: {
997
+ nativeEvent: any;
998
+ dragged: number[];
999
+ draggedOver: number[] | null;
1000
+ draggedItem: any;
1001
+ }) => void;
1002
+ /**
1003
+ * The expanded state of the row. Useful for applying `aria-expanded` accessibility attribute.
1004
+ */
1005
+ expanded: boolean;
1006
+ /**
1007
+ * The index of the row. Useful for applying `aria-rowindex` accessibility attribute.
1008
+ */
1009
+ rowIndex: number;
1010
+ /**
1011
+ * @hidden
1012
+ */
1013
+ children: React.ReactNode;
1014
+ /**
1015
+ * @hidden
1016
+ */
1017
+ levels: number[][];
1018
+ /**
1019
+ * @hidden
1020
+ */
1021
+ isAltRow?: boolean;
1022
+ /**
1023
+ * The index to be applied to the `aria-rowindex` attribute.
1024
+ */
1025
+ ariaRowIndex?: number;
1026
+ /**
1027
+ * The count of items on current level, applied to the `aria-setsize` attribute.
1028
+ */
1029
+ ariaSetSize?: number;
1030
+ /**
1031
+ * The index of the item on current level, applied to the `aria-posinset` attribute.
1032
+ */
1033
+ ariaPosInSet?: number;
1034
+ /**
1035
+ * Indicates if the row is selected.
1036
+ */
1037
+ isSelected: boolean;
1038
+ }
1039
+
1040
+ declare interface TreeListRowState {
1041
+ clueProps: RowDragClueProps;
1042
+ }
1043
+
1044
+ /**
1045
+ * Represents the available selection modes.
1046
+ */
1047
+ export declare type TreeListSelectableMode = TableSelectableMode;
1048
+
1049
+ /**
1050
+ * Represents the TreeList selectable settings.
1051
+ */
1052
+ export declare interface TreeListSelectableSettings extends TableSelectableSettings {
1053
+ /**
1054
+ * The available values are:
1055
+ * * `single`
1056
+ * * `multiple`
1057
+ *
1058
+ * @default "multiple"
1059
+ */
1060
+ mode?: TreeListSelectableMode;
1061
+ }
1062
+
1063
+ export declare const TreeListSelectionCell: {
1064
+ (props: TreeListSelectionCellProps): JSX_2.Element | null;
1065
+ displayName: string;
1066
+ };
1067
+
1068
+ export declare interface TreeListSelectionCellProps extends TreeListCellProps {
1069
+ }
1070
+
1071
+ /**
1072
+ * Represents the object of the `onSelectionChange` TreeList event.
1073
+ */
1074
+ export declare interface TreeListSelectionChangeEvent extends TreeListEvent, TableSelectionChangeEvent<TreeList> {
1075
+ /**
1076
+ * An array of indexes of each parent and current item in the data tree.
1077
+ */
1078
+ level: number[];
1079
+ }
1080
+
1081
+ /**
1082
+ * Represents the object of the `onSortChange` TreeList event.
1083
+ */
1084
+ export declare interface TreeListSortChangeEvent extends TreeListEvent {
1085
+ /**
1086
+ * The new `SortDescriptor` according to the user action.
1087
+ */
1088
+ sort: SortDescriptor[];
1089
+ /**
1090
+ * The field of the column which triggers the event.
1091
+ */
1092
+ field: string;
1093
+ }
1094
+
1095
+ /**
1096
+ * The settings for sorting the TreeList data.
1097
+ */
1098
+ export declare type TreeListSortSettings = SortSettings;
1099
+
1100
+ export declare const TreeListTextEditor: {
1101
+ (props: TreeListTextEditorProps): JSX_2.Element | null;
1102
+ displayName: string;
1103
+ };
1104
+
1105
+ export declare interface TreeListTextEditorProps extends TreeListCellProps {
1106
+ }
1107
+
1108
+ export declare const TreeListTextFilter: React_2.FunctionComponent<TreeListTextFilterProps>;
1109
+
1110
+ export declare interface TreeListTextFilterProps extends FilterComponentProps {
1111
+ /**
1112
+ * The list of the operators.
1113
+ */
1114
+ operators?: TreeListFilterOperator[];
1115
+ }
1116
+
1117
+ /**
1118
+ * Represents the TreeListToolbar component.
1119
+ */
1120
+ export declare class TreeListToolbar extends React_2.Component<TreeListToolbarProps, {}> {
1121
+ /**
1122
+ * @hidden
1123
+ */
1124
+ render(): JSX_2.Element;
1125
+ }
1126
+
1127
+ /**
1128
+ * The props of the TreeListToolbar component.
1129
+ */
1130
+ export declare interface TreeListToolbarProps {
1131
+ /**
1132
+ * The React elements that will be rendered inside the toolbar of the TreeList.
1133
+ */
1134
+ children?: React.ReactNode;
1135
+ }
1136
+
1137
+ export { treeToFlat }
1138
+
1139
+ export { }