@progress/kendo-react-treelist 13.3.0-develop.9 → 13.4.0-develop.1
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/ScrollMode.d.ts +8 -0
- package/TreeList.d.ts +145 -0
- package/TreeList.js +1 -1
- package/TreeList.mjs +11 -11
- package/TreeListNoRecords.d.ts +19 -0
- package/TreeListToolbar.d.ts +29 -0
- package/cells/EditCells/TreeListBooleanEditor.d.ts +15 -0
- package/cells/EditCells/TreeListBooleanEditor.js +1 -1
- package/cells/EditCells/TreeListBooleanEditor.mjs +11 -11
- package/cells/EditCells/TreeListDateEditor.d.ts +15 -0
- package/cells/EditCells/TreeListNumericEditor.d.ts +15 -0
- package/cells/EditCells/TreeListTextEditor.d.ts +15 -0
- package/cells/FilterCells/TreeListBooleanFilter.d.ts +17 -0
- package/cells/FilterCells/TreeListDateFilter.d.ts +17 -0
- package/cells/FilterCells/TreeListNumericFilter.d.ts +17 -0
- package/cells/FilterCells/TreeListTextFilter.d.ts +17 -0
- package/cells/FilterCells/utils.d.ts +45 -0
- package/cells/FilterCells/utils.mjs +3 -3
- package/cells/TreeListCell.d.ts +13 -0
- package/cells/TreeListSelectionCell.d.ts +15 -0
- package/cells/TreeListSelectionCell.js +1 -1
- package/cells/TreeListSelectionCell.mjs +1 -1
- package/codemods/utils.js +1 -8
- package/codemods/v11/toolbar-handle.js +1 -8
- package/constants/index.d.ts +13 -0
- package/constants/index.mjs +2 -2
- package/dist/cdn/js/kendo-react-treelist.js +1 -1
- package/header/TreeListHeaderCell.d.ts +10 -0
- package/header/TreeListHeaderSelectionCell.d.ts +18 -0
- package/index.d.mts +33 -1192
- package/index.d.ts +33 -1192
- package/interfaces/DataItemWrapper.d.ts +17 -0
- package/interfaces/TreeListCellProps.d.ts +48 -0
- package/interfaces/TreeListColumnProps.d.ts +48 -0
- package/interfaces/TreeListFilterCellProps.d.ts +13 -0
- package/interfaces/TreeListFilterOperator.d.ts +13 -0
- package/interfaces/TreeListHeaderCellProps.d.ts +13 -0
- package/interfaces/TreeListNoRecordsProps.d.ts +16 -0
- package/interfaces/TreeListProps.d.ts +285 -0
- package/interfaces/TreeListRowProps.d.ts +99 -0
- package/interfaces/TreeListSelectableSettings.d.ts +25 -0
- package/interfaces/TreeListSortSettings.d.ts +16 -0
- package/interfaces/TreeListToolbarProps.d.ts +17 -0
- package/interfaces/events.d.ts +272 -0
- package/messages/index.d.ts +127 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +9 -9
- package/rows/TreeListDraggableRow.d.ts +39 -0
- package/rows/TreeListDraggableRow.js +1 -1
- package/rows/TreeListDraggableRow.mjs +5 -5
- package/rows/TreeListRow.d.ts +13 -0
- package/utils/index.d.ts +24 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
9
|
+
import { TreeList } from '../TreeList.js';
|
|
10
|
+
import { TreeListColumnProps } from './TreeListColumnProps.js';
|
|
11
|
+
import { BaseEvent } from '@progress/kendo-react-common';
|
|
12
|
+
import { TableDragSelectionReleaseEvent, TableKeyDownEvent, TableSelectionChangeEvent } from '@progress/kendo-react-data-tools';
|
|
13
|
+
/**
|
|
14
|
+
* Represents the base event object of the TreeList.
|
|
15
|
+
*/
|
|
16
|
+
export interface TreeListEvent extends BaseEvent<TreeList> {
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Represents the object of the `onDataStateChange` TreeList event.
|
|
20
|
+
*/
|
|
21
|
+
export interface TreeListDataStateChangeEvent extends TreeListEvent {
|
|
22
|
+
/**
|
|
23
|
+
* The state of the TreeList based on the user action.
|
|
24
|
+
*/
|
|
25
|
+
dataState: {
|
|
26
|
+
/**
|
|
27
|
+
* The descriptors that are used for sorting.
|
|
28
|
+
*/
|
|
29
|
+
sort?: Array<SortDescriptor>;
|
|
30
|
+
/**
|
|
31
|
+
* The descriptors that are used for filtering.
|
|
32
|
+
*/
|
|
33
|
+
filter?: Array<FilterDescriptor>;
|
|
34
|
+
/**
|
|
35
|
+
* The field of the column which triggers the event.
|
|
36
|
+
*/
|
|
37
|
+
field?: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Represents the object of the `onSortChange` TreeList event.
|
|
42
|
+
*/
|
|
43
|
+
export interface TreeListSortChangeEvent extends TreeListEvent {
|
|
44
|
+
/**
|
|
45
|
+
* The new `SortDescriptor` according to the user action.
|
|
46
|
+
*/
|
|
47
|
+
sort: SortDescriptor[];
|
|
48
|
+
/**
|
|
49
|
+
* The field of the column which triggers the event.
|
|
50
|
+
*/
|
|
51
|
+
field: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Represents the object of the `onFilterChange` TreeList event.
|
|
55
|
+
*/
|
|
56
|
+
export interface TreeListFilterChangeEvent extends TreeListEvent {
|
|
57
|
+
/**
|
|
58
|
+
* The new `FilterDescriptor` based on the user action.
|
|
59
|
+
*/
|
|
60
|
+
filter: FilterDescriptor[];
|
|
61
|
+
/**
|
|
62
|
+
* The field of the column which triggers the event.
|
|
63
|
+
*/
|
|
64
|
+
field: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Represents the object of the `onColumnMenuFilterChange` TreeList event.
|
|
68
|
+
*/
|
|
69
|
+
export interface TreeListColumnMenuFilterChangeEvent extends TreeListEvent {
|
|
70
|
+
/**
|
|
71
|
+
* The new `CompositeFilterDescriptor` based on the user action.
|
|
72
|
+
*/
|
|
73
|
+
filter: CompositeFilterDescriptor[];
|
|
74
|
+
/**
|
|
75
|
+
* The field of the column which triggers the event.
|
|
76
|
+
*/
|
|
77
|
+
field: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Represents the object of the `onExpandChange` TreeList event.
|
|
81
|
+
*/
|
|
82
|
+
export interface TreeListExpandChangeEvent extends TreeListEvent {
|
|
83
|
+
/**
|
|
84
|
+
* The data item which is expanded or collapsed.
|
|
85
|
+
*/
|
|
86
|
+
dataItem: any;
|
|
87
|
+
/**
|
|
88
|
+
* An array of indexes of each parent and current item in the data tree.
|
|
89
|
+
*/
|
|
90
|
+
level: number[];
|
|
91
|
+
/**
|
|
92
|
+
* The available values are:
|
|
93
|
+
* - `true`—If the data item is expanded.
|
|
94
|
+
* - `false`—If the data item is collapsed.
|
|
95
|
+
*/
|
|
96
|
+
value: boolean;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Represents the object of the `onSelectionChange` TreeList event.
|
|
100
|
+
*/
|
|
101
|
+
export interface TreeListSelectionChangeEvent extends TreeListEvent, TableSelectionChangeEvent<TreeList> {
|
|
102
|
+
/**
|
|
103
|
+
* An array of indexes of each parent and current item in the data tree.
|
|
104
|
+
*/
|
|
105
|
+
level: number[];
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Represents the object of the `onKeyDownEvent` TreeList event.
|
|
109
|
+
*/
|
|
110
|
+
export interface TreeListKeyDownEvent extends TreeListEvent, TableKeyDownEvent<TreeList> {
|
|
111
|
+
}
|
|
112
|
+
/** @hidden */
|
|
113
|
+
export interface TreeListDragSelectionReleaseEvent extends TableDragSelectionReleaseEvent {
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Represents the object of the `onHeaderSelectionChange` TreeList event.
|
|
117
|
+
*/
|
|
118
|
+
export interface TreeListHeaderSelectionChangeEvent extends TreeListEvent {
|
|
119
|
+
/**
|
|
120
|
+
* The field of the column in which the cell is located.
|
|
121
|
+
*/
|
|
122
|
+
field?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The current data as flatted array.
|
|
125
|
+
*/
|
|
126
|
+
dataItems: any[];
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Represents the object of the `onRowClick` TreeList event.
|
|
130
|
+
*/
|
|
131
|
+
export interface TreeListRowClickEvent extends TreeListEvent {
|
|
132
|
+
/**
|
|
133
|
+
* The data item which corresponds to the clicked row.
|
|
134
|
+
*/
|
|
135
|
+
dataItem: any;
|
|
136
|
+
/**
|
|
137
|
+
* An array of indexes of each parent and current item in the data tree.
|
|
138
|
+
*/
|
|
139
|
+
level: number[];
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Represents the object of the `onRowDoubleClick` TreeList event.
|
|
143
|
+
*/
|
|
144
|
+
export interface TreeListRowDoubleClickEvent extends TreeListEvent {
|
|
145
|
+
/**
|
|
146
|
+
* The data item which corresponds to the clicked row.
|
|
147
|
+
*/
|
|
148
|
+
dataItem: any;
|
|
149
|
+
/**
|
|
150
|
+
* An array of indexes of each parent and current item in the data tree.
|
|
151
|
+
*/
|
|
152
|
+
level: number[];
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Represents the object of the `onRowContextMenu` TreeList event.
|
|
156
|
+
*/
|
|
157
|
+
export interface TreeListRowContextMenuEvent extends TreeListEvent {
|
|
158
|
+
/**
|
|
159
|
+
* The data item which corresponds to the clicked row.
|
|
160
|
+
*/
|
|
161
|
+
dataItem: any;
|
|
162
|
+
/**
|
|
163
|
+
* An array of indexes of each parent and current item in the data tree.
|
|
164
|
+
*/
|
|
165
|
+
level: number[];
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Represents the object of the `onItemChange` TreeList event.
|
|
169
|
+
*/
|
|
170
|
+
export interface TreeListItemChangeEvent extends TreeListEvent {
|
|
171
|
+
/**
|
|
172
|
+
* The data item which corresponds to the current row.
|
|
173
|
+
*/
|
|
174
|
+
dataItem: any;
|
|
175
|
+
/**
|
|
176
|
+
* An array of indexes of each parent and current item in the data tree.
|
|
177
|
+
*/
|
|
178
|
+
level: number[];
|
|
179
|
+
/**
|
|
180
|
+
* The field to which the row is bound.
|
|
181
|
+
*/
|
|
182
|
+
field?: string;
|
|
183
|
+
/**
|
|
184
|
+
* The value of the item.
|
|
185
|
+
*/
|
|
186
|
+
value: any;
|
|
187
|
+
}
|
|
188
|
+
interface ColumnDragEvent {
|
|
189
|
+
/**
|
|
190
|
+
* An event target.
|
|
191
|
+
*/
|
|
192
|
+
target: TreeList;
|
|
193
|
+
/**
|
|
194
|
+
* A native DOM event.
|
|
195
|
+
*/
|
|
196
|
+
nativeEvent: any;
|
|
197
|
+
/**
|
|
198
|
+
* The current columns collection.
|
|
199
|
+
*/
|
|
200
|
+
columns: TreeListColumnProps[];
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Represents the object of the `onColumnResize` TreeList event.
|
|
204
|
+
*/
|
|
205
|
+
export interface TreeListColumnResizeEvent extends ColumnDragEvent {
|
|
206
|
+
/**
|
|
207
|
+
* The index of the column.
|
|
208
|
+
*/
|
|
209
|
+
index: number;
|
|
210
|
+
/**
|
|
211
|
+
* The new width of the column.
|
|
212
|
+
*/
|
|
213
|
+
newWidth: number;
|
|
214
|
+
/**
|
|
215
|
+
* The actual width of the column prior to resizing.
|
|
216
|
+
*/
|
|
217
|
+
oldWidth: number;
|
|
218
|
+
/**
|
|
219
|
+
* Indicates that resizing is complete and the user has dropped the resize handler.
|
|
220
|
+
*/
|
|
221
|
+
end: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* The total width of the columns after the resizing.
|
|
224
|
+
*/
|
|
225
|
+
totalWidth: number;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Represents the object of the `onColumnReorder` TreeList event.
|
|
229
|
+
*/
|
|
230
|
+
export interface TreeListColumnReorderEvent extends ColumnDragEvent {
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Represents the object of the `onPageChange` TreeList event.
|
|
234
|
+
*/
|
|
235
|
+
export interface TreeListPageChangeEvent extends TreeListEvent {
|
|
236
|
+
/**
|
|
237
|
+
* The number of records that will be skipped.
|
|
238
|
+
*/
|
|
239
|
+
skip: number;
|
|
240
|
+
/**
|
|
241
|
+
* The number of records that will be taken.
|
|
242
|
+
*/
|
|
243
|
+
take: number;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Represents the object of the TreeList row Drag and Drop event.
|
|
247
|
+
*/
|
|
248
|
+
export interface TreeListRowDragEvent {
|
|
249
|
+
/**
|
|
250
|
+
* A native DOM event.
|
|
251
|
+
*/
|
|
252
|
+
nativeEvent: any;
|
|
253
|
+
/**
|
|
254
|
+
* An event target.
|
|
255
|
+
*/
|
|
256
|
+
target: TreeList;
|
|
257
|
+
/**
|
|
258
|
+
* The level of the dragged row.
|
|
259
|
+
* The level represents an array of indexes of each parent and current item in the data tree.
|
|
260
|
+
*/
|
|
261
|
+
dragged: number[];
|
|
262
|
+
/**
|
|
263
|
+
* The level of the draggedOver row.
|
|
264
|
+
* The level represents an array of indexes of each parent and current item in the data tree.
|
|
265
|
+
*/
|
|
266
|
+
draggedOver: number[] | null;
|
|
267
|
+
/**
|
|
268
|
+
* The data item which corresponds to the dragged row.
|
|
269
|
+
*/
|
|
270
|
+
draggedItem: any;
|
|
271
|
+
}
|
|
272
|
+
export {};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const filterClearButton = "treelist.filterClearButton";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const filterEqOperator = "treelist.filterEqOperator";
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const filterNotEqOperator = "treelist.filterNotEqOperator";
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare const filterIsNullOperator = "treelist.filterIsNullOperator";
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare const filterIsNotNullOperator = "treelist.filterIsNotNullOperator";
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const filterIsEmptyOperator = "treelist.filterIsEmptyOperator";
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare const filterIsNotEmptyOperator = "treelist.filterIsNotEmptyOperator";
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export declare const filterStartsWithOperator = "treelist.filterStartsWithOperator";
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
export declare const filterContainsOperator = "treelist.filterContainsOperator";
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export declare const filterNotContainsOperator = "treelist.filterNotContainsOperator";
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
export declare const filterEndsWithOperator = "treelist.filterEndsWithOperator";
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
export declare const filterGteOperator = "treelist.filterGteOperator";
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
export declare const filterGtOperator = "treelist.filterGtOperator";
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare const filterLteOperator = "treelist.filterLteOperator";
|
|
64
|
+
/**
|
|
65
|
+
* @hidden
|
|
66
|
+
*/
|
|
67
|
+
export declare const filterLtOperator = "treelist.filterLtOperator";
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
export declare const filterIsTrue = "treelist.filterIsTrue";
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
*/
|
|
75
|
+
export declare const filterIsFalse = "treelist.filterIsFalse";
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
export declare const filterBooleanAll = "treelist.filterBooleanAll";
|
|
80
|
+
/**
|
|
81
|
+
* @hidden
|
|
82
|
+
*/
|
|
83
|
+
export declare const filterAfterOrEqualOperator = "treelist.filterAfterOrEqualOperator";
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
export declare const filterAfterOperator = "treelist.filterAfterOperator";
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
*/
|
|
91
|
+
export declare const filterBeforeOperator = "treelist.filterBeforeOperator";
|
|
92
|
+
/**
|
|
93
|
+
* @hidden
|
|
94
|
+
*/
|
|
95
|
+
export declare const filterBeforeOrEqualOperator = "treelist.filterBeforeOrEqualOperator";
|
|
96
|
+
/**
|
|
97
|
+
* @hidden
|
|
98
|
+
*/
|
|
99
|
+
export declare const noRecords = "treelist.noRecords";
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
*/
|
|
103
|
+
export declare const messages: {
|
|
104
|
+
"treelist.filterClearButton": string;
|
|
105
|
+
"treelist.filterEqOperator": string;
|
|
106
|
+
"treelist.filterNotEqOperator": string;
|
|
107
|
+
"treelist.filterIsNullOperator": string;
|
|
108
|
+
"treelist.filterIsNotNullOperator": string;
|
|
109
|
+
"treelist.filterIsEmptyOperator": string;
|
|
110
|
+
"treelist.filterIsNotEmptyOperator": string;
|
|
111
|
+
"treelist.filterStartsWithOperator": string;
|
|
112
|
+
"treelist.filterContainsOperator": string;
|
|
113
|
+
"treelist.filterNotContainsOperator": string;
|
|
114
|
+
"treelist.filterEndsWithOperator": string;
|
|
115
|
+
"treelist.filterGteOperator": string;
|
|
116
|
+
"treelist.filterGtOperator": string;
|
|
117
|
+
"treelist.filterLteOperator": string;
|
|
118
|
+
"treelist.filterLtOperator": string;
|
|
119
|
+
"treelist.filterIsTrue": string;
|
|
120
|
+
"treelist.filterIsFalse": string;
|
|
121
|
+
"treelist.filterBooleanAll": string;
|
|
122
|
+
"treelist.filterAfterOrEqualOperator": string;
|
|
123
|
+
"treelist.filterAfterOperator": string;
|
|
124
|
+
"treelist.filterBeforeOperator": string;
|
|
125
|
+
"treelist.filterBeforeOrEqualOperator": string;
|
|
126
|
+
"treelist.noRecords": string;
|
|
127
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 { PackageMetadata } from '@progress/kendo-licensing';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const packageMetadata: PackageMetadata;
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-treelist",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-treelist",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1770218979,version:"13.4.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
|
+
// Generated file. DO NOT EDIT.
|
|
1
2
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
3
|
+
* @hidden
|
|
7
4
|
*/
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
export const packageMetadata = Object.freeze({
|
|
6
|
+
name: '@progress/kendo-react-treelist',
|
|
7
|
+
productName: 'KendoReact',
|
|
8
|
+
productCode: 'KENDOUIREACT',
|
|
9
|
+
productCodes: ['KENDOUIREACT'],
|
|
10
|
+
publishDate: 0,
|
|
11
|
+
version: '13.4.0-develop.1',
|
|
12
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
16
13
|
});
|
|
17
|
-
export {
|
|
18
|
-
e as packageMetadata
|
|
19
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-treelist",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0-develop.1",
|
|
4
4
|
"description": "React TreeList enables the display of self-referencing tabular data. KendoReact TreeList package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@progress/kendo-date-math": "^1.4.1",
|
|
30
30
|
"@progress/kendo-drawing": "^1.21.2",
|
|
31
31
|
"@progress/kendo-licensing": "^1.7.2",
|
|
32
|
-
"@progress/kendo-react-common": "13.
|
|
33
|
-
"@progress/kendo-react-data-tools": "13.
|
|
34
|
-
"@progress/kendo-react-dateinputs": "13.
|
|
35
|
-
"@progress/kendo-react-dialogs": "13.
|
|
36
|
-
"@progress/kendo-react-dropdowns": "13.
|
|
37
|
-
"@progress/kendo-react-inputs": "13.
|
|
38
|
-
"@progress/kendo-react-intl": "13.
|
|
32
|
+
"@progress/kendo-react-common": "13.4.0-develop.1",
|
|
33
|
+
"@progress/kendo-react-data-tools": "13.4.0-develop.1",
|
|
34
|
+
"@progress/kendo-react-dateinputs": "13.4.0-develop.1",
|
|
35
|
+
"@progress/kendo-react-dialogs": "13.4.0-develop.1",
|
|
36
|
+
"@progress/kendo-react-dropdowns": "13.4.0-develop.1",
|
|
37
|
+
"@progress/kendo-react-inputs": "13.4.0-develop.1",
|
|
38
|
+
"@progress/kendo-react-intl": "13.4.0-develop.1",
|
|
39
39
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
40
40
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
41
41
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"package": {
|
|
77
77
|
"productName": "KendoReact",
|
|
78
78
|
"productCode": "KENDOUIREACT",
|
|
79
|
-
"publishDate":
|
|
79
|
+
"publishDate": 1770218979,
|
|
80
80
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 { TreeListRowProps } from '../interfaces/TreeListRowProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
interface RowDragClueProps {
|
|
11
|
+
visible: boolean;
|
|
12
|
+
top: number;
|
|
13
|
+
left: number;
|
|
14
|
+
text: string;
|
|
15
|
+
allowDrop: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface TreeListRowState {
|
|
18
|
+
clueProps: RowDragClueProps;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The TreeList draggable row component.
|
|
22
|
+
*/
|
|
23
|
+
export declare class TreeListDraggableRow extends React.Component<TreeListRowProps, TreeListRowState> {
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
readonly state: TreeListRowState;
|
|
28
|
+
private draggable;
|
|
29
|
+
private dragged;
|
|
30
|
+
private draggedOver;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
render(): React.JSX.Element;
|
|
35
|
+
private onPress;
|
|
36
|
+
private onDrag;
|
|
37
|
+
private onRelease;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),v=require("react-dom"),i=require("@progress/kendo-react-common"),D=require("./TreeListRow.js"),c=require("@progress/kendo-svg-icons");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=d(m),b=d(v),w=e=>e.visible&&i.canUseDOM?b.createPortal(a.createElement("div",{className:"k-header k-drag-clue",style:{display:"block",position:"absolute",zIndex:2e4,padding:"8px 12px",top:e.top+"px",left:e.left+"px"}},a.createElement(i.IconWrap,{className:i.classNames("k-drag-status"),name:e.allowDrop?"plus":"cancel",icon:e.allowDrop?c.plusIcon:c.cancelIcon}),e.text),document.body):null;function O(e,r,t){if(!e.originalEvent)return-1;const n=u(e,"tr",t);if(n){const o=r?r.childNodes:[];for(let s=0;s<o.length;s++)if(o[s]===n)return s}return-1}function u(e,r,t){const n=t?t.elementFromPoint(e.clientX,e.clientY):null;return r&&n?n.closest(r):null}const R="k-grid",g={visible:!1,top:0,left:0,text:"",allowDrop:!1};class E extends a.Component{constructor(){super(...arguments),this.state={clueProps:{...g}},this.draggable=a.createRef(),this.dragged=null,this.draggedOver=null,this.onPress=()=>this.dragged=this.props.level,this.onDrag=r=>{if(!i.canUseDOM)return;const t=this.draggable.current&&this.draggable.current.element,n=t?t.ownerDocument:document;if(!n)return;const o=r.event,s=this.dragged;if(t&&s){!o.isTouch&&o.type!=="scroll"&&o.originalEvent.preventDefault();const l=this.props.levels[O(o,t.parentNode,n)];this.draggedOver=l;const p=l?!s.every((h,f)=>h===l[f]):!!u(o,R,n);this.setState({clueProps:{visible:!0,top:o.pageY+10,left:o.pageX,text:t.innerText,allowDrop:p}}),this.props.onDrag&&this.props.onDrag.call(void 0,{nativeEvent:o.originalEvent,dragged:s,draggedOver:l,draggedItem:this.props.dataItem})}},this.onRelease=r=>{const t=r.event;if(this.dragged){const n=[...this.dragged],o=this.draggedOver&&[...this.draggedOver],s=this.state.clueProps.allowDrop;this.dragged=null,this.draggedOver=null,this.setState({clueProps:{...g}});const l=this.props.dataItem;s&&this.props.onDrop&&this.props.onDrop.call(void 0,{nativeEvent:t.originalEvent,dragged:n,draggedOver:o,draggedItem:l})}}}render(){const{clueProps:r}=this.state;return a.createElement(a.Fragment,null,a.createElement(i.Draggable,{ref:this.draggable,onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},a.createElement(D.TreeListRow,{...this.props})),a.createElement(w,{...r}))}}exports.TreeListDraggableRow=E;
|
|
@@ -39,7 +39,7 @@ const b = (e) => e.visible && g ? h.createPortal(
|
|
|
39
39
|
function x(e, s, r) {
|
|
40
40
|
if (!e.originalEvent)
|
|
41
41
|
return -1;
|
|
42
|
-
const o =
|
|
42
|
+
const o = c(e, "tr", r);
|
|
43
43
|
if (o) {
|
|
44
44
|
const t = s ? s.childNodes : [];
|
|
45
45
|
for (let n = 0; n < t.length; n++)
|
|
@@ -48,11 +48,11 @@ function x(e, s, r) {
|
|
|
48
48
|
}
|
|
49
49
|
return -1;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function c(e, s, r) {
|
|
52
52
|
const o = r ? r.elementFromPoint(e.clientX, e.clientY) : null;
|
|
53
53
|
return s && o ? o.closest(s) : null;
|
|
54
54
|
}
|
|
55
|
-
const P = "k-grid
|
|
55
|
+
const P = "k-grid", i = {
|
|
56
56
|
visible: !1,
|
|
57
57
|
top: 0,
|
|
58
58
|
left: 0,
|
|
@@ -74,14 +74,14 @@ class k extends a.Component {
|
|
|
74
74
|
!t.isTouch && t.type !== "scroll" && t.originalEvent.preventDefault();
|
|
75
75
|
const l = this.props.levels[x(t, r.parentNode, o)];
|
|
76
76
|
this.draggedOver = l;
|
|
77
|
-
const
|
|
77
|
+
const d = l ? !n.every((p, u) => p === l[u]) : !!c(t, P, o);
|
|
78
78
|
this.setState({
|
|
79
79
|
clueProps: {
|
|
80
80
|
visible: !0,
|
|
81
81
|
top: t.pageY + 10,
|
|
82
82
|
left: t.pageX,
|
|
83
83
|
text: r.innerText,
|
|
84
|
-
allowDrop:
|
|
84
|
+
allowDrop: d
|
|
85
85
|
}
|
|
86
86
|
}), this.props.onDrag && this.props.onDrag.call(void 0, {
|
|
87
87
|
nativeEvent: t.originalEvent,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 { TreeListRowProps } from '../interfaces/TreeListRowProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* The default row component of the TreeList.
|
|
12
|
+
*/
|
|
13
|
+
export declare const TreeListRow: React.ForwardRefExoticComponent<TreeListRowProps & React.RefAttributes<HTMLTableRowElement>>;
|
package/utils/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 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 { DataItemWrapper } from '../interfaces/DataItemWrapper.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare function getNestedValue(fieldName: string | undefined, dataItem: any): any;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare function setHeaderRowsTop(table: HTMLTableElement, toolbarHeight: number, rowHeight?: (row: HTMLTableRowElement) => string | undefined): void;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare function tableRowsVirtualization(args: {
|
|
21
|
+
rows: DataItemWrapper[];
|
|
22
|
+
tableViewPortHeight: number;
|
|
23
|
+
scrollTop: number;
|
|
24
|
+
}): DataItemWrapper[];
|