@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
@@ -1,13 +0,0 @@
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
- /**
6
- * The props of the TreeListToolbar component.
7
- */
8
- export interface TreeListToolbarProps {
9
- /**
10
- * The React elements that will be rendered inside the toolbar of the TreeList.
11
- */
12
- children?: React.ReactNode;
13
- }
@@ -1,269 +0,0 @@
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 { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
6
- import { TreeList } from '../TreeList';
7
- import { TreeListColumnProps } from './TreeListColumnProps';
8
- import { BaseEvent } from '@progress/kendo-react-common';
9
- import { TableDragSelectionReleaseEvent, TableKeyDownEvent, TableSelectionChangeEvent } from '@progress/kendo-react-data-tools';
10
- /**
11
- * Represents the base event object of the TreeList.
12
- */
13
- export interface TreeListEvent extends BaseEvent<TreeList> {
14
- }
15
- /**
16
- * Represents the object of the `onDataStateChange` TreeList event.
17
- */
18
- export interface TreeListDataStateChangeEvent extends TreeListEvent {
19
- /**
20
- * The state of the TreeList based on the user action.
21
- */
22
- dataState: {
23
- /**
24
- * The descriptors that are used for sorting.
25
- */
26
- sort?: Array<SortDescriptor>;
27
- /**
28
- * The descriptors that are used for filtering.
29
- */
30
- filter?: Array<FilterDescriptor>;
31
- /**
32
- * The field of the column which triggers the event.
33
- */
34
- field?: string;
35
- };
36
- }
37
- /**
38
- * Represents the object of the `onSortChange` TreeList event.
39
- */
40
- export interface TreeListSortChangeEvent extends TreeListEvent {
41
- /**
42
- * The new `SortDescriptor` according to the user action.
43
- */
44
- sort: SortDescriptor[];
45
- /**
46
- * The field of the column which triggers the event.
47
- */
48
- field: string;
49
- }
50
- /**
51
- * Represents the object of the `onFilterChange` TreeList event.
52
- */
53
- export interface TreeListFilterChangeEvent extends TreeListEvent {
54
- /**
55
- * The new `FilterDescriptor` based on the user action.
56
- */
57
- filter: FilterDescriptor[];
58
- /**
59
- * The field of the column which triggers the event.
60
- */
61
- field: string;
62
- }
63
- /**
64
- * Represents the object of the `onColumnMenuFilterChange` TreeList event.
65
- */
66
- export interface TreeListColumnMenuFilterChangeEvent extends TreeListEvent {
67
- /**
68
- * The new `CompositeFilterDescriptor` based on the user action.
69
- */
70
- filter: CompositeFilterDescriptor[];
71
- /**
72
- * The field of the column which triggers the event.
73
- */
74
- field: string;
75
- }
76
- /**
77
- * Represents the object of the `onExpandChange` TreeList event.
78
- */
79
- export interface TreeListExpandChangeEvent extends TreeListEvent {
80
- /**
81
- * The data item which is expanded or collapsed.
82
- */
83
- dataItem: any;
84
- /**
85
- * An array of indexes of each parent and current item in the data tree.
86
- */
87
- level: number[];
88
- /**
89
- * The available values are:
90
- * - `true`&mdash;If the data item is expanded.
91
- * - `false`&mdash;If the data item is collapsed.
92
- */
93
- value: boolean;
94
- }
95
- /**
96
- * Represents the object of the `onSelectionChange` TreeList event.
97
- */
98
- export interface TreeListSelectionChangeEvent extends TreeListEvent, TableSelectionChangeEvent<TreeList> {
99
- /**
100
- * An array of indexes of each parent and current item in the data tree.
101
- */
102
- level: number[];
103
- }
104
- /**
105
- * Represents the object of the `onKeyDownEvent` TreeList event.
106
- */
107
- export interface TreeListKeyDownEvent extends TreeListEvent, TableKeyDownEvent<TreeList> {
108
- }
109
- /** @hidden */
110
- export interface TreeListDragSelectionReleaseEvent extends TableDragSelectionReleaseEvent {
111
- }
112
- /**
113
- * Represents the object of the `onHeaderSelectionChange` TreeList event.
114
- */
115
- export interface TreeListHeaderSelectionChangeEvent extends TreeListEvent {
116
- /**
117
- * The field of the column in which the cell is located.
118
- */
119
- field?: string;
120
- /**
121
- * The current data as flatted array.
122
- */
123
- dataItems: any[];
124
- }
125
- /**
126
- * Represents the object of the `onRowClick` TreeList event.
127
- */
128
- export interface TreeListRowClickEvent extends TreeListEvent {
129
- /**
130
- * The data item which corresponds to the clicked row.
131
- */
132
- dataItem: any;
133
- /**
134
- * An array of indexes of each parent and current item in the data tree.
135
- */
136
- level: number[];
137
- }
138
- /**
139
- * Represents the object of the `onRowDoubleClick` TreeList event.
140
- */
141
- export interface TreeListRowDoubleClickEvent extends TreeListEvent {
142
- /**
143
- * The data item which corresponds to the clicked row.
144
- */
145
- dataItem: any;
146
- /**
147
- * An array of indexes of each parent and current item in the data tree.
148
- */
149
- level: number[];
150
- }
151
- /**
152
- * Represents the object of the `onRowContextMenu` TreeList event.
153
- */
154
- export interface TreeListRowContextMenuEvent extends TreeListEvent {
155
- /**
156
- * The data item which corresponds to the clicked row.
157
- */
158
- dataItem: any;
159
- /**
160
- * An array of indexes of each parent and current item in the data tree.
161
- */
162
- level: number[];
163
- }
164
- /**
165
- * Represents the object of the `onItemChange` TreeList event.
166
- */
167
- export interface TreeListItemChangeEvent extends TreeListEvent {
168
- /**
169
- * The data item which corresponds to the current row.
170
- */
171
- dataItem: any;
172
- /**
173
- * An array of indexes of each parent and current item in the data tree.
174
- */
175
- level: number[];
176
- /**
177
- * The field to which the row is bound.
178
- */
179
- field?: string;
180
- /**
181
- * The value of the item.
182
- */
183
- value: any;
184
- }
185
- interface ColumnDragEvent {
186
- /**
187
- * An event target.
188
- */
189
- target: TreeList;
190
- /**
191
- * A native DOM event.
192
- */
193
- nativeEvent: any;
194
- /**
195
- * The current columns collection.
196
- */
197
- columns: TreeListColumnProps[];
198
- }
199
- /**
200
- * Represents the object of the `onColumnResize` TreeList event.
201
- */
202
- export interface TreeListColumnResizeEvent extends ColumnDragEvent {
203
- /**
204
- * The index of the column.
205
- */
206
- index: number;
207
- /**
208
- * The new width of the column.
209
- */
210
- newWidth: number;
211
- /**
212
- * The actual width of the column prior to resizing.
213
- */
214
- oldWidth: number;
215
- /**
216
- * Indicates that resizing is complete and the user has dropped the resize handler.
217
- */
218
- end: boolean;
219
- /**
220
- * The total width of the columns after the resizing.
221
- */
222
- totalWidth: number;
223
- }
224
- /**
225
- * Represents the object of the `onColumnReorder` TreeList event.
226
- */
227
- export interface TreeListColumnReorderEvent extends ColumnDragEvent {
228
- }
229
- /**
230
- * Represents the object of the `onPageChange` TreeList event.
231
- */
232
- export interface TreeListPageChangeEvent extends TreeListEvent {
233
- /**
234
- * The number of records that will be skipped.
235
- */
236
- skip: number;
237
- /**
238
- * The number of records that will be taken.
239
- */
240
- take: number;
241
- }
242
- /**
243
- * Represents the object of the TreeList row Drag and Drop event.
244
- */
245
- export interface TreeListRowDragEvent {
246
- /**
247
- * A native DOM event.
248
- */
249
- nativeEvent: any;
250
- /**
251
- * An event target.
252
- */
253
- target: TreeList;
254
- /**
255
- * The level of the dragged row.
256
- * The level represents an array of indexes of each parent and current item in the data tree.
257
- */
258
- dragged: number[];
259
- /**
260
- * The level of the draggedOver row.
261
- * The level represents an array of indexes of each parent and current item in the data tree.
262
- */
263
- draggedOver: number[] | null;
264
- /**
265
- * The data item which corresponds to the dragged row.
266
- */
267
- draggedItem: any;
268
- }
269
- export {};
@@ -1,124 +0,0 @@
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
- /**
6
- * @hidden
7
- */
8
- export declare const filterClearButton = "treelist.filterClearButton";
9
- /**
10
- * @hidden
11
- */
12
- export declare const filterEqOperator = "treelist.filterEqOperator";
13
- /**
14
- * @hidden
15
- */
16
- export declare const filterNotEqOperator = "treelist.filterNotEqOperator";
17
- /**
18
- * @hidden
19
- */
20
- export declare const filterIsNullOperator = "treelist.filterIsNullOperator";
21
- /**
22
- * @hidden
23
- */
24
- export declare const filterIsNotNullOperator = "treelist.filterIsNotNullOperator";
25
- /**
26
- * @hidden
27
- */
28
- export declare const filterIsEmptyOperator = "treelist.filterIsEmptyOperator";
29
- /**
30
- * @hidden
31
- */
32
- export declare const filterIsNotEmptyOperator = "treelist.filterIsNotEmptyOperator";
33
- /**
34
- * @hidden
35
- */
36
- export declare const filterStartsWithOperator = "treelist.filterStartsWithOperator";
37
- /**
38
- * @hidden
39
- */
40
- export declare const filterContainsOperator = "treelist.filterContainsOperator";
41
- /**
42
- * @hidden
43
- */
44
- export declare const filterNotContainsOperator = "treelist.filterNotContainsOperator";
45
- /**
46
- * @hidden
47
- */
48
- export declare const filterEndsWithOperator = "treelist.filterEndsWithOperator";
49
- /**
50
- * @hidden
51
- */
52
- export declare const filterGteOperator = "treelist.filterGteOperator";
53
- /**
54
- * @hidden
55
- */
56
- export declare const filterGtOperator = "treelist.filterGtOperator";
57
- /**
58
- * @hidden
59
- */
60
- export declare const filterLteOperator = "treelist.filterLteOperator";
61
- /**
62
- * @hidden
63
- */
64
- export declare const filterLtOperator = "treelist.filterLtOperator";
65
- /**
66
- * @hidden
67
- */
68
- export declare const filterIsTrue = "treelist.filterIsTrue";
69
- /**
70
- * @hidden
71
- */
72
- export declare const filterIsFalse = "treelist.filterIsFalse";
73
- /**
74
- * @hidden
75
- */
76
- export declare const filterBooleanAll = "treelist.filterBooleanAll";
77
- /**
78
- * @hidden
79
- */
80
- export declare const filterAfterOrEqualOperator = "treelist.filterAfterOrEqualOperator";
81
- /**
82
- * @hidden
83
- */
84
- export declare const filterAfterOperator = "treelist.filterAfterOperator";
85
- /**
86
- * @hidden
87
- */
88
- export declare const filterBeforeOperator = "treelist.filterBeforeOperator";
89
- /**
90
- * @hidden
91
- */
92
- export declare const filterBeforeOrEqualOperator = "treelist.filterBeforeOrEqualOperator";
93
- /**
94
- * @hidden
95
- */
96
- export declare const noRecords = "treelist.noRecords";
97
- /**
98
- * @hidden
99
- */
100
- export declare const messages: {
101
- "treelist.filterClearButton": string;
102
- "treelist.filterEqOperator": string;
103
- "treelist.filterNotEqOperator": string;
104
- "treelist.filterIsNullOperator": string;
105
- "treelist.filterIsNotNullOperator": string;
106
- "treelist.filterIsEmptyOperator": string;
107
- "treelist.filterIsNotEmptyOperator": string;
108
- "treelist.filterStartsWithOperator": string;
109
- "treelist.filterContainsOperator": string;
110
- "treelist.filterNotContainsOperator": string;
111
- "treelist.filterEndsWithOperator": string;
112
- "treelist.filterGteOperator": string;
113
- "treelist.filterGtOperator": string;
114
- "treelist.filterLteOperator": string;
115
- "treelist.filterLtOperator": string;
116
- "treelist.filterIsTrue": string;
117
- "treelist.filterIsFalse": string;
118
- "treelist.filterBooleanAll": string;
119
- "treelist.filterAfterOrEqualOperator": string;
120
- "treelist.filterAfterOperator": string;
121
- "treelist.filterBeforeOperator": string;
122
- "treelist.filterBeforeOrEqualOperator": string;
123
- "treelist.noRecords": string;
124
- };
@@ -1,9 +0,0 @@
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 { PackageMetadata } from '@progress/kendo-licensing';
6
- /**
7
- * @hidden
8
- */
9
- export declare const packageMetadata: PackageMetadata;
@@ -1,36 +0,0 @@
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 * as React from 'react';
6
- import { TreeListRowProps } from '../interfaces/TreeListRowProps';
7
- interface RowDragClueProps {
8
- visible: boolean;
9
- top: number;
10
- left: number;
11
- text: string;
12
- allowDrop: boolean;
13
- }
14
- interface TreeListRowState {
15
- clueProps: RowDragClueProps;
16
- }
17
- /**
18
- * The TreeList draggable row component.
19
- */
20
- export declare class TreeListDraggableRow extends React.Component<TreeListRowProps, TreeListRowState> {
21
- /**
22
- * @hidden
23
- */
24
- readonly state: TreeListRowState;
25
- private draggable;
26
- private dragged;
27
- private draggedOver;
28
- /**
29
- * @hidden
30
- */
31
- render(): import("react/jsx-runtime").JSX.Element;
32
- private onPress;
33
- private onDrag;
34
- private onRelease;
35
- }
36
- export {};
@@ -1,10 +0,0 @@
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 * as React from 'react';
6
- import { TreeListRowProps } from '../interfaces/TreeListRowProps';
7
- /**
8
- * The default row component of the TreeList.
9
- */
10
- export declare const TreeListRow: React.ForwardRefExoticComponent<TreeListRowProps & React.RefAttributes<HTMLTableRowElement>>;
package/utils/index.d.ts DELETED
@@ -1,21 +0,0 @@
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 { DataItemWrapper } from '../interfaces/DataItemWrapper';
6
- /**
7
- * @hidden
8
- */
9
- export declare function getNestedValue(fieldName: string | undefined, dataItem: any): any;
10
- /**
11
- * @hidden
12
- */
13
- export declare function setHeaderRowsTop(table: HTMLTableElement, toolbarHeight: number, rowHeight?: (row: HTMLTableRowElement) => string | undefined): void;
14
- /**
15
- * @hidden
16
- */
17
- export declare function tableRowsVirtualization(args: {
18
- rows: DataItemWrapper[];
19
- tableViewPortHeight: number;
20
- scrollTop: number;
21
- }): DataItemWrapper[];