@progress/kendo-react-grid 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.
- package/Grid.js +8 -0
- package/Grid.mjs +1108 -0
- package/GridColumn.js +8 -0
- package/GridColumn.mjs +53 -0
- package/GridNoRecords.js +8 -0
- package/GridNoRecords.mjs +25 -0
- package/GridToolbar.js +8 -0
- package/GridToolbar.mjs +39 -0
- package/StatusBar.js +8 -0
- package/StatusBar.mjs +53 -0
- package/VirtualScroll.js +8 -0
- package/VirtualScroll.mjs +128 -0
- package/VirtualScrollFixed.js +8 -0
- package/VirtualScrollFixed.mjs +86 -0
- package/cells/GridCell.js +8 -0
- package/cells/GridCell.mjs +57 -0
- package/cells/GridDetailCell.js +8 -0
- package/cells/GridDetailCell.mjs +30 -0
- package/cells/GridDetailHierarchyCell.js +8 -0
- package/cells/GridDetailHierarchyCell.mjs +17 -0
- package/cells/GridEditCell.js +8 -0
- package/cells/GridEditCell.mjs +172 -0
- package/cells/GridFilterCell.js +8 -0
- package/cells/GridFilterCell.mjs +145 -0
- package/cells/GridGroupCell.js +8 -0
- package/cells/GridGroupCell.mjs +115 -0
- package/cells/GridHierarchyCell.js +8 -0
- package/cells/GridHierarchyCell.mjs +84 -0
- package/cells/GridSelectionCell.js +8 -0
- package/cells/GridSelectionCell.mjs +54 -0
- package/columnMenu/GridColumnMenuCheckboxFilter.js +8 -0
- package/columnMenu/GridColumnMenuCheckboxFilter.mjs +199 -0
- package/columnMenu/GridColumnMenuColumnsList.js +8 -0
- package/columnMenu/GridColumnMenuColumnsList.mjs +60 -0
- package/columnMenu/GridColumnMenuFilter.js +8 -0
- package/columnMenu/GridColumnMenuFilter.mjs +188 -0
- package/columnMenu/GridColumnMenuFilterCell.js +8 -0
- package/columnMenu/GridColumnMenuFilterCell.mjs +96 -0
- package/columnMenu/GridColumnMenuFilterUI.js +8 -0
- package/columnMenu/GridColumnMenuFilterUI.mjs +36 -0
- package/columnMenu/GridColumnMenuGroup.js +8 -0
- package/columnMenu/GridColumnMenuGroup.mjs +50 -0
- package/columnMenu/GridColumnMenuItem.js +8 -0
- package/columnMenu/GridColumnMenuItem.mjs +22 -0
- package/columnMenu/GridColumnMenuItemContent.js +8 -0
- package/columnMenu/GridColumnMenuItemContent.mjs +30 -0
- package/columnMenu/GridColumnMenuItemGroup.js +8 -0
- package/columnMenu/GridColumnMenuItemGroup.mjs +30 -0
- package/columnMenu/GridColumnMenuSort.js +8 -0
- package/columnMenu/GridColumnMenuSort.mjs +75 -0
- package/columnMenu/GridColumnMenuWrapper.js +8 -0
- package/columnMenu/GridColumnMenuWrapper.mjs +91 -0
- package/constants/index.js +8 -0
- package/constants/index.mjs +15 -0
- package/dist/cdn/js/kendo-react-grid.js +8 -5
- package/drag/ColumnDraggable.js +8 -0
- package/drag/ColumnDraggable.mjs +43 -0
- package/drag/ColumnResize.js +8 -0
- package/drag/ColumnResize.mjs +128 -0
- package/drag/CommonDragLogic.js +8 -0
- package/drag/CommonDragLogic.mjs +104 -0
- package/drag/GroupingIndicator.js +8 -0
- package/drag/GroupingIndicator.mjs +91 -0
- package/filterCommon.js +8 -0
- package/filterCommon.mjs +103 -0
- package/footer/Footer.js +8 -0
- package/footer/Footer.mjs +76 -0
- package/footer/FooterRow.js +8 -0
- package/footer/FooterRow.mjs +46 -0
- package/header/FilterRow.js +8 -0
- package/header/FilterRow.mjs +96 -0
- package/header/GridHeaderCell.js +8 -0
- package/header/GridHeaderCell.mjs +38 -0
- package/header/GridHeaderSelectionCell.js +8 -0
- package/header/GridHeaderSelectionCell.mjs +44 -0
- package/header/GroupPanel.js +8 -0
- package/header/GroupPanel.mjs +60 -0
- package/header/Header.js +8 -0
- package/header/Header.mjs +107 -0
- package/header/HeaderRow.js +8 -0
- package/header/HeaderRow.mjs +155 -0
- package/index.d.mts +2771 -5
- package/index.d.ts +2771 -57
- package/index.js +8 -5
- package/index.mjs +89 -3845
- package/interfaces/GridSortSettings.js +8 -0
- package/interfaces/GridSortSettings.mjs +12 -0
- package/messages/index.js +8 -0
- package/messages/index.mjs +105 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +10 -10
- package/paging/GridPagerSettings.js +8 -0
- package/paging/GridPagerSettings.mjs +28 -0
- package/rows/GridDetailRow.js +8 -0
- package/rows/GridDetailRow.mjs +20 -0
- package/rows/GridRow.js +8 -0
- package/rows/GridRow.mjs +51 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +180 -0
- package/Grid.d.ts +0 -267
- package/GridColumn.d.ts +0 -28
- package/GridNoRecords.d.ts +0 -40
- package/GridToolbar.d.ts +0 -54
- package/ScrollMode.d.ts +0 -5
- package/StatusBar.d.ts +0 -51
- package/VirtualScroll.d.ts +0 -51
- package/VirtualScrollFixed.d.ts +0 -53
- package/cells/GridCell.d.ts +0 -6
- package/cells/GridDetailCell.d.ts +0 -18
- package/cells/GridDetailHierarchyCell.d.ts +0 -10
- package/cells/GridEditCell.d.ts +0 -9
- package/cells/GridFilterCell.d.ts +0 -20
- package/cells/GridGroupCell.d.ts +0 -9
- package/cells/GridHierarchyCell.d.ts +0 -9
- package/cells/GridSelectionCell.d.ts +0 -9
- package/columnMenu/GridColumnMenuCheckboxFilter.d.ts +0 -122
- package/columnMenu/GridColumnMenuColumnsList.d.ts +0 -31
- package/columnMenu/GridColumnMenuFilter.d.ts +0 -165
- package/columnMenu/GridColumnMenuFilterCell.d.ts +0 -37
- package/columnMenu/GridColumnMenuFilterUI.d.ts +0 -12
- package/columnMenu/GridColumnMenuGroup.d.ts +0 -77
- package/columnMenu/GridColumnMenuItem.d.ts +0 -40
- package/columnMenu/GridColumnMenuItemContent.d.ts +0 -24
- package/columnMenu/GridColumnMenuItemGroup.d.ts +0 -20
- package/columnMenu/GridColumnMenuSort.d.ts +0 -89
- package/columnMenu/GridColumnMenuWrapper.d.ts +0 -49
- package/constants/index.d.ts +0 -10
- package/drag/ColumnDraggable.d.ts +0 -38
- package/drag/ColumnResize.d.ts +0 -37
- package/drag/CommonDragLogic.d.ts +0 -44
- package/drag/GroupingIndicator.d.ts +0 -41
- package/filterCommon.d.ts +0 -73
- package/footer/Footer.d.ts +0 -38
- package/footer/FooterRow.d.ts +0 -25
- package/header/FilterRow.d.ts +0 -38
- package/header/GridHeaderCell.d.ts +0 -56
- package/header/GridHeaderSelectionCell.d.ts +0 -10
- package/header/GroupPanel.d.ts +0 -26
- package/header/Header.d.ts +0 -46
- package/header/HeaderRow.d.ts +0 -51
- package/interfaces/GridCellProps.d.ts +0 -73
- package/interfaces/GridCellsSettings.d.ts +0 -115
- package/interfaces/GridColumnMenuBaseProps.d.ts +0 -18
- package/interfaces/GridColumnMenuColumnProps.d.ts +0 -29
- package/interfaces/GridColumnMenuFilterBaseProps.d.ts +0 -28
- package/interfaces/GridColumnMenuFilterUIProps.d.ts +0 -35
- package/interfaces/GridColumnMenuGroupBaseProps.d.ts +0 -23
- package/interfaces/GridColumnMenuProps.d.ts +0 -12
- package/interfaces/GridColumnMenuSortBaseProps.d.ts +0 -24
- package/interfaces/GridColumnProps.d.ts +0 -92
- package/interfaces/GridDetailRowProps.d.ts +0 -17
- package/interfaces/GridFilterCellProps.d.ts +0 -68
- package/interfaces/GridFilterOperator.d.ts +0 -10
- package/interfaces/GridFilterOperators.d.ts +0 -53
- package/interfaces/GridFooterCellProps.d.ts +0 -26
- package/interfaces/GridGroupableSettings.d.ts +0 -17
- package/interfaces/GridHeaderCellProps.d.ts +0 -24
- package/interfaces/GridNoRecordsProps.d.ts +0 -13
- package/interfaces/GridProps.d.ts +0 -333
- package/interfaces/GridRowProps.d.ts +0 -67
- package/interfaces/GridRowType.d.ts +0 -13
- package/interfaces/GridSelectableSettings.d.ts +0 -22
- package/interfaces/GridSortSettings.d.ts +0 -17
- package/interfaces/GridToolbarProps.d.ts +0 -37
- package/interfaces/VirtualScrollInterface.d.ts +0 -31
- package/interfaces/events.d.ts +0 -232
- package/messages/index.d.ts +0 -199
- package/package-metadata.d.ts +0 -9
- package/paging/GridPagerSettings.d.ts +0 -71
- package/paging/Page.d.ts +0 -17
- package/rows/GridDetailRow.d.ts +0 -55
- package/rows/GridRow.d.ts +0 -15
- package/utils/index.d.ts +0 -73
|
@@ -1,333 +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 { ComponentType } from 'react';
|
|
6
|
-
import { DataResult, SortDescriptor, CompositeFilterDescriptor, GroupDescriptor } from '@progress/kendo-data-query';
|
|
7
|
-
import { GridGroupableSettings } from './GridGroupableSettings';
|
|
8
|
-
import { GridSortChangeEvent, GridFilterChangeEvent, GridPageChangeEvent, GridExpandChangeEvent, GridSelectionChangeEvent, GridHeaderSelectionChangeEvent, GridRowClickEvent, GridItemChangeEvent, GridDataStateChangeEvent, GridColumnResizeEvent, GridColumnReorderEvent, GridGroupChangeEvent, GridEvent, GridRowDoubleClickEvent, GridNavigationActionEvent, GridKeyDownEvent, GridContextMenuEvent } from './events';
|
|
9
|
-
import { ScrollMode } from '../ScrollMode';
|
|
10
|
-
import { GridCellProps } from './GridCellProps';
|
|
11
|
-
import { GridFilterCellProps } from './GridFilterCellProps';
|
|
12
|
-
import { GridSortSettings } from './GridSortSettings';
|
|
13
|
-
import { GridPagerSettings } from '../paging/GridPagerSettings';
|
|
14
|
-
import { GridRowProps } from '../interfaces/GridRowProps';
|
|
15
|
-
import { GridHeaderCellProps } from '../interfaces/GridHeaderCellProps';
|
|
16
|
-
import { GridDetailRowProps } from '../interfaces/GridDetailRowProps';
|
|
17
|
-
import { GridColumnMenuProps } from '../interfaces/GridColumnMenuProps';
|
|
18
|
-
import { GridFilterOperators } from './GridFilterOperators';
|
|
19
|
-
import { GridSelectableSettings } from './GridSelectableSettings';
|
|
20
|
-
import { ClipboardSettings, ClipboardDataEvent, PagerProps } from '@progress/kendo-react-data-tools';
|
|
21
|
-
import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
22
|
-
import { GridCellsSettings } from './GridCellsSettings';
|
|
23
|
-
/**
|
|
24
|
-
* Represents the props of the [KendoReact Grid component]({% slug overview_grid %}).
|
|
25
|
-
*/
|
|
26
|
-
export interface GridProps extends KendoReactComponentBaseProps {
|
|
27
|
-
/**
|
|
28
|
-
* Sets the Grid row key prop to the value of this field in the dataItem.
|
|
29
|
-
* If not set, the dataItem index will be used for the row key, which might lead to row not updated during paging or scrolling.
|
|
30
|
-
*/
|
|
31
|
-
dataItemKey?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Sets a class of the Grid DOM element.
|
|
34
|
-
*/
|
|
35
|
-
className?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Sets a set of custom components that the Grid will render instead of the built-in cell.
|
|
38
|
-
*/
|
|
39
|
-
cells?: GridCellsSettings;
|
|
40
|
-
/**
|
|
41
|
-
* Sets the data of the Grid ([see example]({% slug paging_grid %})). If you use paging, the `data` option has to contain only the items for the current page.
|
|
42
|
-
*/
|
|
43
|
-
data?: any[] | DataResult | null;
|
|
44
|
-
/**
|
|
45
|
-
* Enables the sorting for the columns with their `field` option set ([see example]({% slug sorting_grid %})).
|
|
46
|
-
*/
|
|
47
|
-
sortable?: GridSortSettings;
|
|
48
|
-
/**
|
|
49
|
-
* When set enables the clipboard copy, cut and paste manipulations. It takes values of type [ClipboardSettings]({% slug api_data-tools_clipboardsettings %}) or boolean.
|
|
50
|
-
*/
|
|
51
|
-
clipboard?: ClipboardSettings | boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Fires when clipboard support is enabled and the one of the actions 'copy'. The event accepts type [ClipboardDataEvent]({% slug api_data-tools_clipboarddataevent %}).
|
|
54
|
-
*/
|
|
55
|
-
onClipboard?: (event: ClipboardDataEvent) => void;
|
|
56
|
-
/**
|
|
57
|
-
* Fires when the sorting of the Grid is changed ([see example]({% slug sorting_grid %})). You have to handle the event yourself and sort the data.
|
|
58
|
-
*/
|
|
59
|
-
onSortChange?: (event: GridSortChangeEvent) => void;
|
|
60
|
-
/**
|
|
61
|
-
* The descriptors by which the data is sorted. Applies the sorting styles and buttons to the affected columns.
|
|
62
|
-
*/
|
|
63
|
-
sort?: SortDescriptor[];
|
|
64
|
-
/**
|
|
65
|
-
* Enables the filtering of the columns with their `field` option set ([more information and examples]({% slug filtering_grid %})).
|
|
66
|
-
*/
|
|
67
|
-
filterable?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* The descriptor by which the data is filtered ([more information and examples]({% slug filtering_grid %})). This affects the values and buttons in the `FilterRow` of the Grid.
|
|
70
|
-
*/
|
|
71
|
-
filter?: CompositeFilterDescriptor;
|
|
72
|
-
/**
|
|
73
|
-
* The filter operators for the Grid filters.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```jsx
|
|
77
|
-
* const customFilterOperators = {
|
|
78
|
-
* 'text': [
|
|
79
|
-
* { text: 'grid.filterContainsOperator', operator: 'contains' }
|
|
80
|
-
* ],
|
|
81
|
-
* 'numeric': [
|
|
82
|
-
* { text: 'grid.filterGtOperator', operator: 'gt' }
|
|
83
|
-
* ],
|
|
84
|
-
* 'date': [
|
|
85
|
-
* { text: 'grid.filterAfterOperator', operator: 'gt' }
|
|
86
|
-
* ]
|
|
87
|
-
* }
|
|
88
|
-
*
|
|
89
|
-
* class App extends React.Component {
|
|
90
|
-
* constructor(props) {
|
|
91
|
-
* super(props);
|
|
92
|
-
* this.state = {
|
|
93
|
-
* data: [
|
|
94
|
-
* { 'foo': 'A1', 'bar': 'B1' },
|
|
95
|
-
* { 'foo': 'A2', 'bar': 'B2' },
|
|
96
|
-
* { 'foo': 'A3', 'bar': 'B2' }
|
|
97
|
-
* ]
|
|
98
|
-
* };
|
|
99
|
-
* }
|
|
100
|
-
* render() {
|
|
101
|
-
* return (
|
|
102
|
-
* <div>
|
|
103
|
-
* <Grid
|
|
104
|
-
* data={this.state.data}
|
|
105
|
-
* reorderable={true}
|
|
106
|
-
* filterable
|
|
107
|
-
* filterOperators={customFilterOperators}
|
|
108
|
-
* >
|
|
109
|
-
* <GridColumn field="foo" />
|
|
110
|
-
* <GridColumn field="bar" />
|
|
111
|
-
* </Grid>
|
|
112
|
-
* </div>
|
|
113
|
-
* );
|
|
114
|
-
* }
|
|
115
|
-
* }
|
|
116
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
117
|
-
* ```
|
|
118
|
-
*/
|
|
119
|
-
filterOperators?: GridFilterOperators;
|
|
120
|
-
/**
|
|
121
|
-
* Fires when the Grid filter is modified through the UI ([more information and examples]({% slug filtering_grid %})). You have to handle the event yourself and filter the data.
|
|
122
|
-
*/
|
|
123
|
-
onFilterChange?: (event: GridFilterChangeEvent) => void;
|
|
124
|
-
/**
|
|
125
|
-
* Specifies a React element that will be cloned and rendered inside the column menu of the Grid. Can be overridden on column level.
|
|
126
|
-
*/
|
|
127
|
-
columnMenu?: null | ComponentType<GridColumnMenuProps>;
|
|
128
|
-
/**
|
|
129
|
-
* The descriptors by which the data will be grouped
|
|
130
|
-
* ([more information and examples]({% slug groupingbasics_grid %})).
|
|
131
|
-
*/
|
|
132
|
-
group?: GroupDescriptor[];
|
|
133
|
-
/**
|
|
134
|
-
* Fires when the grouping of the Grid is changed. You have to handle the event yourself and group the data
|
|
135
|
-
* ([more information and examples]({% slug groupingbasics_grid %})).
|
|
136
|
-
*/
|
|
137
|
-
onGroupChange?: (event: GridGroupChangeEvent) => void;
|
|
138
|
-
/**
|
|
139
|
-
* Configures the pager of the Grid ([see example]({% slug paging_grid %})).
|
|
140
|
-
*
|
|
141
|
-
* The available options are:
|
|
142
|
-
* - `buttonCount: Number`—Sets the maximum numeric buttons count before the buttons are collapsed.
|
|
143
|
-
* - `info: Boolean`—Toggles the information about the current page and the total number of records.
|
|
144
|
-
* - `type: PagerType`—Accepts the `numeric` (buttons with numbers) and `input` (input for typing the page number) values.
|
|
145
|
-
* - `pageSizes: Boolean` or `Array<number>`—Shows a menu for selecting the page size.
|
|
146
|
-
* - `previousNext: Boolean`—Toggles the **Previous** and **Next** buttons.
|
|
147
|
-
*/
|
|
148
|
-
pageable?: GridPagerSettings | boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Defines the page size that is used by the Grid pager ([see example]({% slug paging_grid %})). Required by the paging functionality.
|
|
151
|
-
*/
|
|
152
|
-
pageSize?: number;
|
|
153
|
-
/**
|
|
154
|
-
* The pager component that the Grid will render instead of the built-in pager.
|
|
155
|
-
*/
|
|
156
|
-
pager?: null | ComponentType<PagerProps>;
|
|
157
|
-
/**
|
|
158
|
-
* Alias of `pageSize` property. If `take` is set, `pageSize` will be ignored.
|
|
159
|
-
*/
|
|
160
|
-
take?: number;
|
|
161
|
-
/**
|
|
162
|
-
* Fires when the page of the Grid is changed ([see example]({% slug paging_grid %})). You have to handle the event yourself and page the data.
|
|
163
|
-
*/
|
|
164
|
-
onPageChange?: (event: GridPageChangeEvent) => void;
|
|
165
|
-
/**
|
|
166
|
-
* Defines the total number of data items in all pages ([see example]({% slug paging_grid %})). Required by the paging functionality.
|
|
167
|
-
*/
|
|
168
|
-
total?: number;
|
|
169
|
-
/**
|
|
170
|
-
* Defines the number of records that will be skipped by the pager ([see example]({% slug paging_grid %})). Required by the paging functionality.
|
|
171
|
-
*/
|
|
172
|
-
skip?: number;
|
|
173
|
-
/**
|
|
174
|
-
* Determines if the scroll position will be updated after data change. If set to `true` the scroll will remain on the same position.
|
|
175
|
-
*/
|
|
176
|
-
fixedScroll?: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* Fires when the user tries to expand or collapse a row.
|
|
179
|
-
*/
|
|
180
|
-
onExpandChange?: (event: GridExpandChangeEvent) => void;
|
|
181
|
-
/**
|
|
182
|
-
* Specifies the name of the field which will provide a Boolean representation of the expanded state of the item ([see example]({% slug detailrow_grid %})).
|
|
183
|
-
*/
|
|
184
|
-
expandField?: string;
|
|
185
|
-
/**
|
|
186
|
-
* The Grid selectable settings.
|
|
187
|
-
*/
|
|
188
|
-
selectable?: GridSelectableSettings;
|
|
189
|
-
/**
|
|
190
|
-
* Specifies the name of the field which will provide a:
|
|
191
|
-
* - Boolean representation of the selected state of the item ([see example]({% slug selection_grid %})) for row selection
|
|
192
|
-
* - String array of the selected columns of the item for cell selection
|
|
193
|
-
*/
|
|
194
|
-
selectedField?: string;
|
|
195
|
-
/**
|
|
196
|
-
* Fires when the user tries to select or deselect a row or cell.
|
|
197
|
-
*/
|
|
198
|
-
onSelectionChange?: (event: GridSelectionChangeEvent) => void;
|
|
199
|
-
/**
|
|
200
|
-
* Fires when the user clicks the checkbox of a column header whose `field` matches `selectedField` ([more information and example]({% slug selection_grid %})).
|
|
201
|
-
*/
|
|
202
|
-
onHeaderSelectionChange?: (event: GridHeaderSelectionChangeEvent) => void;
|
|
203
|
-
/**
|
|
204
|
-
* Fires when the user clicks a row.
|
|
205
|
-
*/
|
|
206
|
-
onRowClick?: (event: GridRowClickEvent) => void;
|
|
207
|
-
/**
|
|
208
|
-
* Fires when the user double clicks a row.
|
|
209
|
-
*/
|
|
210
|
-
onRowDoubleClick?: (event: GridRowDoubleClickEvent) => void;
|
|
211
|
-
/**
|
|
212
|
-
* Fires when the user changes the values of the item. The event is not debounced and fires on every `onChange` event of the input in the current `EditCell` ([more information and examples]({% slug editing_inline_grid %})).
|
|
213
|
-
*/
|
|
214
|
-
onItemChange?: (event: GridItemChangeEvent) => void;
|
|
215
|
-
/**
|
|
216
|
-
* Specifies the name of the field which will provide a Boolean representation of the edit state of the current item ([more information and examples]({% slug editing_inline_grid %})).
|
|
217
|
-
*/
|
|
218
|
-
editField?: string;
|
|
219
|
-
/**
|
|
220
|
-
* Defines the scroll mode that is used by the Grid ([see example]({% slug scrollmodes_grid %})).
|
|
221
|
-
*
|
|
222
|
-
* The available options are:
|
|
223
|
-
* - `none`—Renders no scrollbar.
|
|
224
|
-
* - `scrollable`—This is the default scroll mode. It requires the setting of the `height` option.
|
|
225
|
-
* - `virtual`—Displays no pager and renders a portion of the data (optimized rendering) while the user is scrolling the content.
|
|
226
|
-
*/
|
|
227
|
-
scrollable?: ScrollMode;
|
|
228
|
-
/**
|
|
229
|
-
* Defines the row height and forces an equal height to all rows ([see example]({% slug scrollmodes_grid %})).
|
|
230
|
-
*/
|
|
231
|
-
rowHeight?: number;
|
|
232
|
-
/**
|
|
233
|
-
* Defines the detail row height and forces an equal height to all detail rows.
|
|
234
|
-
*/
|
|
235
|
-
detailRowHeight?: number;
|
|
236
|
-
/**
|
|
237
|
-
* Specifies a React element that will be cloned and rendered inside the detail rows of the currently expanded items ([see example]({% slug hierarchy_grid %})). An item will be rendered as expanded if the value of its `expandField` is `true`.
|
|
238
|
-
*/
|
|
239
|
-
detail?: null | ComponentType<GridDetailRowProps>;
|
|
240
|
-
/**
|
|
241
|
-
* Represents the `style` HTML attribute.
|
|
242
|
-
*/
|
|
243
|
-
style?: React.CSSProperties;
|
|
244
|
-
/**
|
|
245
|
-
* Fires when the data state of the Grid is changed ([more information]({% slug localoperations_grid %}) and [example]({% slug odataserveroperations_grid %})).
|
|
246
|
-
*/
|
|
247
|
-
onDataStateChange?: (event: GridDataStateChangeEvent) => void;
|
|
248
|
-
/**
|
|
249
|
-
* If set to `true`, the user can resize columns by dragging the edges (resize handles) of their header cells ([see example]({% slug resizing_columns_grid %})).
|
|
250
|
-
*/
|
|
251
|
-
resizable?: boolean;
|
|
252
|
-
/**
|
|
253
|
-
* If set to `true`, the user can reorder columns by dragging their header cells ([see example]({% slug reordering_columns_grid %})).
|
|
254
|
-
*/
|
|
255
|
-
reorderable?: boolean;
|
|
256
|
-
/**
|
|
257
|
-
* Determines if grouping by dragging and dropping the column headers is allowed ([more information and examples]({% slug groupingbasics_grid %})).
|
|
258
|
-
*/
|
|
259
|
-
groupable?: GridGroupableSettings | boolean;
|
|
260
|
-
/**
|
|
261
|
-
* Fires when a column is resized.
|
|
262
|
-
*/
|
|
263
|
-
onColumnResize?: (event: GridColumnResizeEvent) => void;
|
|
264
|
-
/**
|
|
265
|
-
* Fires when the columns are reordered.
|
|
266
|
-
*/
|
|
267
|
-
onColumnReorder?: (event: GridColumnReorderEvent) => void;
|
|
268
|
-
/**
|
|
269
|
-
* Fires when a row is about to be rendered. Overrides the default appearance of the row.
|
|
270
|
-
*/
|
|
271
|
-
rowRender?: (row: React.ReactElement<HTMLTableRowElement>, props: GridRowProps) => React.ReactNode;
|
|
272
|
-
/**
|
|
273
|
-
* Fires when a cell is about to be rendered. Used to override the default appearance of the cell ([see example]({% slug groupingaggregates_grid %})).
|
|
274
|
-
*/
|
|
275
|
-
cellRender?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: GridCellProps) => React.ReactElement<HTMLTableCellElement> | React.ReactElement<HTMLTableCellElement>[] | null;
|
|
276
|
-
/**
|
|
277
|
-
* Fires when a filter cell is about to be rendered. Overrides the default appearance of the filter cell.
|
|
278
|
-
*/
|
|
279
|
-
filterCellRender?: (defaultRendering: React.ReactElement<any> | null, props: GridFilterCellProps) => React.ReactElement<any> | null;
|
|
280
|
-
/**
|
|
281
|
-
* Fires when a header cell is about to be rendered. Overrides the default appearance of the header cell.
|
|
282
|
-
*/
|
|
283
|
-
headerCellRender?: (defaultRendering: React.ReactNode | null, props: GridHeaderCellProps) => React.ReactNode;
|
|
284
|
-
/**
|
|
285
|
-
* Fires when Grid is scrolled.
|
|
286
|
-
*/
|
|
287
|
-
onScroll?: (event: GridEvent) => void;
|
|
288
|
-
/**
|
|
289
|
-
* Enables virtualization of the columns. If virtualization is enabled, the columns outside the view are not rendered.
|
|
290
|
-
*/
|
|
291
|
-
columnVirtualization?: boolean;
|
|
292
|
-
/**
|
|
293
|
-
* If set to `true`, the user can use dedicated shortcuts to interact with the Grid.
|
|
294
|
-
* By default, navigation is disabled and the Grid content is accessible in the normal tab sequence.
|
|
295
|
-
*/
|
|
296
|
-
navigatable?: boolean;
|
|
297
|
-
/**
|
|
298
|
-
* Fires when Grid keyboard navigation position is changed.
|
|
299
|
-
*/
|
|
300
|
-
onNavigationAction?: (event: GridNavigationActionEvent) => void;
|
|
301
|
-
/**
|
|
302
|
-
* Fires when the user press keyboard key.
|
|
303
|
-
*/
|
|
304
|
-
onKeyDown?: (event: GridKeyDownEvent) => void;
|
|
305
|
-
/**
|
|
306
|
-
* The accessible label of the Grid.
|
|
307
|
-
*/
|
|
308
|
-
ariaLabel?: string;
|
|
309
|
-
/**
|
|
310
|
-
* Defines if the group descriptor columns are locked (frozen or sticky).
|
|
311
|
-
* Locked columns are the columns that are visible at all times while the user scrolls the component horizontally.
|
|
312
|
-
* Defaults to `false`.
|
|
313
|
-
*/
|
|
314
|
-
lockGroups?: boolean;
|
|
315
|
-
/**
|
|
316
|
-
* Configures the `size` of the Grid.
|
|
317
|
-
*
|
|
318
|
-
* The available options are:
|
|
319
|
-
* - small
|
|
320
|
-
* - medium
|
|
321
|
-
*
|
|
322
|
-
* @default `medium`
|
|
323
|
-
*/
|
|
324
|
-
size?: 'small' | 'medium';
|
|
325
|
-
/**
|
|
326
|
-
* The event that is fired when the ContextMenu is activated.
|
|
327
|
-
*/
|
|
328
|
-
onContextMenu?: (event: GridContextMenuEvent) => void;
|
|
329
|
-
/**
|
|
330
|
-
* Sets the `id` property of the top div element of the component.
|
|
331
|
-
*/
|
|
332
|
-
id?: string;
|
|
333
|
-
}
|
|
@@ -1,67 +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 { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
6
|
-
import { GridRowType } from './GridRowType';
|
|
7
|
-
/**
|
|
8
|
-
* The props that the Grid passes to the GridRow component when creating it. Accessible during the `rowRender` callback of the Grid.
|
|
9
|
-
*/
|
|
10
|
-
export interface GridRowProps extends KendoReactComponentBaseProps {
|
|
11
|
-
/**
|
|
12
|
-
* The `data` object that represents the current row.
|
|
13
|
-
*/
|
|
14
|
-
dataItem: any;
|
|
15
|
-
/**
|
|
16
|
-
* Indicates whether the row is an alternating row.
|
|
17
|
-
*/
|
|
18
|
-
isAltRow: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Indicates whether the row has at least one edit cell.
|
|
21
|
-
*/
|
|
22
|
-
isInEdit: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Indicates if the row is hidden. The hidden row is rendered above the visible area of the Grid. Occurs when the Grid uses virtualization and the row is on the current page. When `rowHeight` is set, `isHidden` is always `true`.
|
|
25
|
-
*/
|
|
26
|
-
isHidden: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* The event that is fired when the row is clicked.
|
|
29
|
-
*/
|
|
30
|
-
onClick: any;
|
|
31
|
-
/**
|
|
32
|
-
* The event that is fired when the row is double clicked.
|
|
33
|
-
*/
|
|
34
|
-
onDoubleClick: any;
|
|
35
|
-
/**
|
|
36
|
-
* The name of the field which will provide a Boolean representation of the selected state of the item.
|
|
37
|
-
*/
|
|
38
|
-
selectedField?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Sets the height of the row.
|
|
41
|
-
*/
|
|
42
|
-
rowHeight?: number;
|
|
43
|
-
/**
|
|
44
|
-
* The type of the row.
|
|
45
|
-
*/
|
|
46
|
-
rowType: GridRowType;
|
|
47
|
-
/**
|
|
48
|
-
* A function for overriding the default rendering of the row.
|
|
49
|
-
*/
|
|
50
|
-
render?: (row: React.ReactElement<HTMLTableRowElement>, props: GridRowProps) => React.ReactNode;
|
|
51
|
-
/**
|
|
52
|
-
* The index to be applied to the `aria-rowindex` attribute.
|
|
53
|
-
*/
|
|
54
|
-
ariaRowIndex?: number;
|
|
55
|
-
/**
|
|
56
|
-
* The index of the leaf dataItem in data. Used by selection.
|
|
57
|
-
*/
|
|
58
|
-
dataIndex: number;
|
|
59
|
-
/**
|
|
60
|
-
* Indicates if the row is selected.
|
|
61
|
-
*/
|
|
62
|
-
isSelected: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
absoluteRowIndex: number;
|
|
67
|
-
}
|
|
@@ -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 type of the GridRow component.
|
|
7
|
-
*
|
|
8
|
-
* The available values are:
|
|
9
|
-
* - `groupHeader`—The row is a group header.
|
|
10
|
-
* - `groupFooter`—The row is a group footer.
|
|
11
|
-
* - `data`—The row corresponds to an item from the `data` collection which is passed to the Grid.
|
|
12
|
-
*/
|
|
13
|
-
export type GridRowType = 'groupFooter' | 'groupHeader' | 'data';
|
|
@@ -1,22 +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 { TableSelectableMode, TableSelectableSettings } from '@progress/kendo-react-data-tools';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the available selection modes.
|
|
8
|
-
*/
|
|
9
|
-
export type GridSelectableMode = TableSelectableMode;
|
|
10
|
-
/**
|
|
11
|
-
* Represents the Grid selectable settings.
|
|
12
|
-
*/
|
|
13
|
-
export interface GridSelectableSettings extends TableSelectableSettings {
|
|
14
|
-
/**
|
|
15
|
-
* The available values are:
|
|
16
|
-
* * `single`
|
|
17
|
-
* * `multiple`
|
|
18
|
-
*
|
|
19
|
-
* @default "multiple"
|
|
20
|
-
*/
|
|
21
|
-
mode?: GridSelectableMode;
|
|
22
|
-
}
|
|
@@ -1,17 +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 { ColumnSortSettings, SortSettings } from '@progress/kendo-react-data-tools';
|
|
6
|
-
/**
|
|
7
|
-
* The settings for sorting the Grid columns.
|
|
8
|
-
*/
|
|
9
|
-
export type GridColumnSortSettings = ColumnSortSettings;
|
|
10
|
-
/**
|
|
11
|
-
* The settings for sorting the Grid data.
|
|
12
|
-
*/
|
|
13
|
-
export type GridSortSettings = SortSettings;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const normalize: (...settings: (GridSortSettings | GridColumnSortSettings)[]) => any;
|
|
@@ -1,37 +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 properties of the GridToolbar component.
|
|
7
|
-
*/
|
|
8
|
-
export interface GridToolbarProps {
|
|
9
|
-
/**
|
|
10
|
-
* The React elements that will be rendered inside the toolbar of the Grid.
|
|
11
|
-
*/
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Specifies the name of the CSS class which is set to the GridToolbar.
|
|
15
|
-
*/
|
|
16
|
-
className?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Configures the `size` of the Toolbar.
|
|
19
|
-
*
|
|
20
|
-
* The available options are:
|
|
21
|
-
* - small
|
|
22
|
-
* - medium
|
|
23
|
-
* - large
|
|
24
|
-
* - null—Does not set a size `className`.
|
|
25
|
-
*
|
|
26
|
-
* @default `medium`
|
|
27
|
-
*/
|
|
28
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
29
|
-
/**
|
|
30
|
-
* The accessible label of the GridToolbar component.
|
|
31
|
-
*/
|
|
32
|
-
ariaLabel?: string;
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
ariaControls?: string;
|
|
37
|
-
}
|
|
@@ -1,31 +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 { Page } from '../paging/Page';
|
|
6
|
-
import { SyntheticEvent, RefObject } from 'react';
|
|
7
|
-
import { RowHeightService } from '../VirtualScrollFixed';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface VirtualScrollInterface {
|
|
12
|
-
get container(): HTMLDivElement | null;
|
|
13
|
-
askedSkip: number | undefined;
|
|
14
|
-
total: number;
|
|
15
|
-
reset: () => void;
|
|
16
|
-
table: HTMLTableElement | null;
|
|
17
|
-
tableBodyRef: RefObject<HTMLTableSectionElement>;
|
|
18
|
-
fixedScroll: boolean;
|
|
19
|
-
PageChange: ((event: Page, syntheticEvent: SyntheticEvent<any>) => void) | null;
|
|
20
|
-
realSkip: number;
|
|
21
|
-
pageSize: number;
|
|
22
|
-
scrollableVirtual: boolean;
|
|
23
|
-
propsSkip: number;
|
|
24
|
-
topCacheCount: number;
|
|
25
|
-
attendedSkip: number;
|
|
26
|
-
containerHeight: number;
|
|
27
|
-
containerRef: RefObject<HTMLDivElement>;
|
|
28
|
-
scrollHandler(e: SyntheticEvent<HTMLDivElement>): void;
|
|
29
|
-
rowHeightService?: RowHeightService;
|
|
30
|
-
tableTransform: string;
|
|
31
|
-
}
|