@progress/kendo-react-grid 7.2.4-develop.2 → 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
package/Grid.d.ts
DELETED
|
@@ -1,267 +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 PropTypes from 'prop-types';
|
|
7
|
-
import { TableKeyboardNavigationContextType } from '@progress/kendo-react-data-tools';
|
|
8
|
-
import { CommonDragLogic } from './drag/CommonDragLogic';
|
|
9
|
-
import { GridProps } from './interfaces/GridProps';
|
|
10
|
-
import { GridColumnProps } from './interfaces/GridColumnProps';
|
|
11
|
-
/**
|
|
12
|
-
* Represents the [KendoReact Grid component]({% slug overview_grid %}).
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```jsx
|
|
16
|
-
* class App extends React.Component {
|
|
17
|
-
* constructor(props) {
|
|
18
|
-
* super(props);
|
|
19
|
-
* this.state = {
|
|
20
|
-
* data: [
|
|
21
|
-
* { 'foo': 'A1', 'bar': 'B1' },
|
|
22
|
-
* { 'foo': 'A2', 'bar': 'B2' },
|
|
23
|
-
* { 'foo': 'A3', 'bar': 'B2' }
|
|
24
|
-
* ]
|
|
25
|
-
* };
|
|
26
|
-
* }
|
|
27
|
-
* render() {
|
|
28
|
-
* return (
|
|
29
|
-
* <Grid
|
|
30
|
-
* data={this.state.data}
|
|
31
|
-
* reorderable={true}
|
|
32
|
-
* >
|
|
33
|
-
* <GridColumn field="foo" />
|
|
34
|
-
* <GridColumn field="bar" />
|
|
35
|
-
* </Grid>
|
|
36
|
-
* );
|
|
37
|
-
* }
|
|
38
|
-
* }
|
|
39
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
export declare class Grid extends React.Component<GridProps> {
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
static displayName: string;
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
static defaultProps: {};
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
static propTypes: {
|
|
55
|
-
data: PropTypes.Requireable<NonNullable<any[] | PropTypes.InferProps<{
|
|
56
|
-
data: PropTypes.Requireable<any[]>;
|
|
57
|
-
total: PropTypes.Requireable<number>;
|
|
58
|
-
}> | null | undefined>>;
|
|
59
|
-
sortable: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
60
|
-
mode: PropTypes.Requireable<string>;
|
|
61
|
-
allowUnsort: PropTypes.Requireable<boolean>;
|
|
62
|
-
}> | null | undefined>>;
|
|
63
|
-
onSortChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
64
|
-
sort: PropTypes.Requireable<any[]>;
|
|
65
|
-
filterable: PropTypes.Requireable<boolean>;
|
|
66
|
-
filter: PropTypes.Requireable<any>;
|
|
67
|
-
onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
68
|
-
pageable: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
69
|
-
buttonCount: PropTypes.Requireable<number>;
|
|
70
|
-
responsive: PropTypes.Requireable<boolean>;
|
|
71
|
-
info: PropTypes.Requireable<boolean>;
|
|
72
|
-
type: PropTypes.Requireable<string>;
|
|
73
|
-
pageSizes: PropTypes.Requireable<NonNullable<boolean | (NonNullable<string | number | null | undefined> | null | undefined)[] | null | undefined>>;
|
|
74
|
-
previousNext: PropTypes.Requireable<boolean>;
|
|
75
|
-
}> | null | undefined>>;
|
|
76
|
-
pageSize: PropTypes.Requireable<number>;
|
|
77
|
-
onPageChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
78
|
-
total: PropTypes.Requireable<number>;
|
|
79
|
-
skip: PropTypes.Requireable<number>;
|
|
80
|
-
take: PropTypes.Requireable<number>;
|
|
81
|
-
fixedScroll: PropTypes.Requireable<boolean>;
|
|
82
|
-
onExpandChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
83
|
-
expandField: PropTypes.Requireable<string>;
|
|
84
|
-
selectedField: PropTypes.Requireable<string>;
|
|
85
|
-
onSelectionChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
86
|
-
onHeaderSelectionChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
87
|
-
resizable: PropTypes.Requireable<boolean>;
|
|
88
|
-
reorderable: PropTypes.Requireable<boolean>;
|
|
89
|
-
group: PropTypes.Requireable<any>;
|
|
90
|
-
groupable: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
91
|
-
enabled: PropTypes.Requireable<boolean>;
|
|
92
|
-
footer: PropTypes.Requireable<string>;
|
|
93
|
-
}> | null | undefined>>;
|
|
94
|
-
onGroupChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
95
|
-
onRowClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
96
|
-
onRowDoubleClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
97
|
-
onItemChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
98
|
-
editField: PropTypes.Requireable<string>;
|
|
99
|
-
scrollable: PropTypes.Requireable<string>;
|
|
100
|
-
rowHeight: PropTypes.Requireable<number>;
|
|
101
|
-
detailRowHeight: PropTypes.Requireable<number>;
|
|
102
|
-
detail: PropTypes.Requireable<any>;
|
|
103
|
-
style: PropTypes.Requireable<object>;
|
|
104
|
-
onDataStateChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
105
|
-
onColumnResize: PropTypes.Requireable<(...args: any[]) => any>;
|
|
106
|
-
onColumnReorder: PropTypes.Requireable<(...args: any[]) => any>;
|
|
107
|
-
dataItemKey: PropTypes.Requireable<string>;
|
|
108
|
-
navigatable: PropTypes.Requireable<boolean>;
|
|
109
|
-
size: PropTypes.Requireable<string>;
|
|
110
|
-
};
|
|
111
|
-
/** @hidden */
|
|
112
|
-
static contextType: React.Context<TableKeyboardNavigationContextType | undefined>;
|
|
113
|
-
protected dragLogic: CommonDragLogic;
|
|
114
|
-
private _columns;
|
|
115
|
-
private _columnsMap;
|
|
116
|
-
private _columnsMutations;
|
|
117
|
-
private _resized;
|
|
118
|
-
private _shouldUpdateLeftRight;
|
|
119
|
-
private contextStateRef;
|
|
120
|
-
private navigationStateRef;
|
|
121
|
-
private _data;
|
|
122
|
-
private _slicedData;
|
|
123
|
-
private wrapperScrollTop;
|
|
124
|
-
private showLicenseWatermark;
|
|
125
|
-
/**
|
|
126
|
-
* A getter of the current columns. Gets the current column width or current columns, or any other [`GridColumnProps`]({% slug api_grid_gridcolumnprops %}) for each defined column. Can be used on each Grid instance. To obtain the instance of the rendered Grid, use the `ref` callback. The following example demonstrates how to reorder the columns by dragging their handlers and check the properties afterwards. You can check the result in the browser console.
|
|
127
|
-
*
|
|
128
|
-
* @example
|
|
129
|
-
* ```jsx
|
|
130
|
-
* class App extends React.Component {
|
|
131
|
-
* constructor(props) {
|
|
132
|
-
* super(props);
|
|
133
|
-
* this.state = {
|
|
134
|
-
* data: [
|
|
135
|
-
* { 'foo': 'A1', 'bar': 'B1' },
|
|
136
|
-
* { 'foo': 'A2', 'bar': 'B2' },
|
|
137
|
-
* { 'foo': 'A3', 'bar': 'B2' }
|
|
138
|
-
* ]
|
|
139
|
-
* };
|
|
140
|
-
* this.grid = null;
|
|
141
|
-
* }
|
|
142
|
-
* render() {
|
|
143
|
-
* return (
|
|
144
|
-
* <div>
|
|
145
|
-
* <Grid
|
|
146
|
-
* data={this.state.data}
|
|
147
|
-
* reorderable={true}
|
|
148
|
-
* ref={(g) => { this.grid = g; }}
|
|
149
|
-
* >
|
|
150
|
-
* <GridColumn field="foo" />
|
|
151
|
-
* <GridColumn field="bar" />
|
|
152
|
-
* </Grid>
|
|
153
|
-
* <button onClick={() => console.log(JSON.stringify(this.grid.columns))}>
|
|
154
|
-
* log current properties into browser console.
|
|
155
|
-
* </button>
|
|
156
|
-
* </div>
|
|
157
|
-
* );
|
|
158
|
-
* }
|
|
159
|
-
* }
|
|
160
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
161
|
-
* ```
|
|
162
|
-
*/
|
|
163
|
-
get columns(): GridColumnProps[];
|
|
164
|
-
/**
|
|
165
|
-
* Returns the HTML element of the Grid component.
|
|
166
|
-
*/
|
|
167
|
-
get element(): HTMLDivElement | null;
|
|
168
|
-
private get document();
|
|
169
|
-
private clipboardService?;
|
|
170
|
-
private headerRef;
|
|
171
|
-
private headerElementRef;
|
|
172
|
-
private _element;
|
|
173
|
-
private tableElement;
|
|
174
|
-
private containerRef;
|
|
175
|
-
private tableBodyRef;
|
|
176
|
-
private vs;
|
|
177
|
-
private columnResize;
|
|
178
|
-
private _footer;
|
|
179
|
-
private forceUpdateTimeout;
|
|
180
|
-
private isRtl;
|
|
181
|
-
private rowIndex;
|
|
182
|
-
private get _header();
|
|
183
|
-
private get _gridId();
|
|
184
|
-
private observer;
|
|
185
|
-
constructor(props: GridProps);
|
|
186
|
-
private handleIntersection;
|
|
187
|
-
private setCurrentOnTop;
|
|
188
|
-
/**
|
|
189
|
-
* Method to allow the scroll to be set to a specific row index when the Grid is scrollable. It is zero based.
|
|
190
|
-
*
|
|
191
|
-
* @param options - Object, containing the rowIndex to which is going to be scrolled.
|
|
192
|
-
*/
|
|
193
|
-
scrollIntoView: (options: {
|
|
194
|
-
rowIndex: number;
|
|
195
|
-
}) => void;
|
|
196
|
-
/**
|
|
197
|
-
* Method to fit columns according to their content.
|
|
198
|
-
*
|
|
199
|
-
* @param columnIds - Array of column ids to be fitted.
|
|
200
|
-
*/
|
|
201
|
-
fitColumns: (columnIds: string[]) => void;
|
|
202
|
-
/**
|
|
203
|
-
* @hidden
|
|
204
|
-
*/
|
|
205
|
-
componentDidMount(): void;
|
|
206
|
-
/**
|
|
207
|
-
* @hidden
|
|
208
|
-
*/
|
|
209
|
-
getSnapshotBeforeUpdate(): null;
|
|
210
|
-
/**
|
|
211
|
-
* @hidden
|
|
212
|
-
*/
|
|
213
|
-
componentDidUpdate(): void;
|
|
214
|
-
/**
|
|
215
|
-
* @hidden
|
|
216
|
-
*/
|
|
217
|
-
componentWillUnmount(): void;
|
|
218
|
-
/**
|
|
219
|
-
* @hidden
|
|
220
|
-
*/
|
|
221
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
222
|
-
private onContextMenu;
|
|
223
|
-
private getVirtualScroll;
|
|
224
|
-
private isAllData;
|
|
225
|
-
private initializeVirtualization;
|
|
226
|
-
private scrollHandler;
|
|
227
|
-
private onKeyDown;
|
|
228
|
-
private onFocus;
|
|
229
|
-
private onNavigationAction;
|
|
230
|
-
private rowClick;
|
|
231
|
-
private rowDblClick;
|
|
232
|
-
private itemChange;
|
|
233
|
-
private selectionChange;
|
|
234
|
-
private onHeaderSelectionChange;
|
|
235
|
-
private selectionRelease;
|
|
236
|
-
private pageChange;
|
|
237
|
-
private pagerPageChange;
|
|
238
|
-
private sortChange;
|
|
239
|
-
private filterChange;
|
|
240
|
-
private groupChange;
|
|
241
|
-
private raiseDataEvent;
|
|
242
|
-
private columnReorder;
|
|
243
|
-
private groupReorder;
|
|
244
|
-
private columnToGroup;
|
|
245
|
-
private resetTableWidth;
|
|
246
|
-
private onClipboard;
|
|
247
|
-
private inActiveElement;
|
|
248
|
-
private onResize;
|
|
249
|
-
private reInitVirtualization;
|
|
250
|
-
private flatData;
|
|
251
|
-
private rowHeightService;
|
|
252
|
-
private childrenToArray;
|
|
253
|
-
private readColumns;
|
|
254
|
-
private mapColumns;
|
|
255
|
-
private initColumns;
|
|
256
|
-
private configureColumns;
|
|
257
|
-
private getHeaderRow;
|
|
258
|
-
private resolveTitle;
|
|
259
|
-
private getDataState;
|
|
260
|
-
private getArguments;
|
|
261
|
-
private getLeafDataItems;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Represent the `ref` of the Grid component.
|
|
265
|
-
*/
|
|
266
|
-
export interface GridHandle extends Pick<Grid, keyof Grid> {
|
|
267
|
-
}
|
package/GridColumn.d.ts
DELETED
|
@@ -1,28 +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 { GridColumnProps } from './interfaces/GridColumnProps';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare const GridColumn: React.FunctionComponent<GridColumnProps>;
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export interface ExtendedColumnProps extends GridColumnProps {
|
|
15
|
-
declarationIndex: number;
|
|
16
|
-
parentIndex: number;
|
|
17
|
-
colSpan: number;
|
|
18
|
-
rowSpan: number;
|
|
19
|
-
depth: number;
|
|
20
|
-
kFirst?: boolean;
|
|
21
|
-
index: number;
|
|
22
|
-
children: ExtendedColumnProps[];
|
|
23
|
-
left: number;
|
|
24
|
-
right: number;
|
|
25
|
-
rightBorder: boolean;
|
|
26
|
-
ariaColumnIndex: number;
|
|
27
|
-
isAccessible: boolean;
|
|
28
|
-
}
|
package/GridNoRecords.d.ts
DELETED
|
@@ -1,40 +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 { GridNoRecordsProps } from './interfaces/GridNoRecordsProps';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the GridNoRecords component. The component is rendered when the `data` property of the Grid is empty or `null`.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```jsx
|
|
12
|
-
* class App extends React.Component {
|
|
13
|
-
* render() {
|
|
14
|
-
* return (
|
|
15
|
-
* <Grid data={[]}>
|
|
16
|
-
* <GridNoRecords>
|
|
17
|
-
* There is no data available
|
|
18
|
-
* </GridNoRecords>
|
|
19
|
-
* <GridColumn field="id" />
|
|
20
|
-
* <GridColumn field="name" />
|
|
21
|
-
* </Grid>
|
|
22
|
-
* );
|
|
23
|
-
* }
|
|
24
|
-
* }
|
|
25
|
-
* ReactDOM.render(
|
|
26
|
-
* <App />,
|
|
27
|
-
* document.querySelector('my-app')
|
|
28
|
-
* );
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare class GridNoRecords extends React.Component<GridNoRecordsProps, {}> {
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
static displayName: string;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
render(): any;
|
|
40
|
-
}
|
package/GridToolbar.d.ts
DELETED
|
@@ -1,54 +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 { GridToolbarProps } from './interfaces/GridToolbarProps';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the GridToolbar component.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```jsx
|
|
12
|
-
* class App extends React.Component {
|
|
13
|
-
* state = {
|
|
14
|
-
* data: [
|
|
15
|
-
* {'Column1':'A1', 'Column2':'A2'},
|
|
16
|
-
* {'Column1':'B1', 'Column2':'B2'},
|
|
17
|
-
* {'Column1':'C1', 'Column2':'C2'}
|
|
18
|
-
* ]
|
|
19
|
-
* }
|
|
20
|
-
*
|
|
21
|
-
* customClick = () => {
|
|
22
|
-
* alert("Custom handler in custom toolbar");
|
|
23
|
-
* }
|
|
24
|
-
* render() {
|
|
25
|
-
* return (
|
|
26
|
-
* <Grid data={this.state.data}>
|
|
27
|
-
* <GridToolbar>
|
|
28
|
-
* <button
|
|
29
|
-
* title="Click"
|
|
30
|
-
* className="k-button k-primary"
|
|
31
|
-
* onClick={this.customClick}
|
|
32
|
-
* >Click
|
|
33
|
-
* </button>
|
|
34
|
-
* </GridToolbar>
|
|
35
|
-
* </Grid>
|
|
36
|
-
* );
|
|
37
|
-
* }
|
|
38
|
-
* }
|
|
39
|
-
* ReactDOM.render(
|
|
40
|
-
* <App />,
|
|
41
|
-
* document.querySelector('my-app')
|
|
42
|
-
* );
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
export declare class GridToolbar extends React.Component<GridToolbarProps, {}> {
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
static displayName: string;
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
54
|
-
}
|
package/ScrollMode.d.ts
DELETED
|
@@ -1,5 +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
|
-
export type ScrollMode = 'none' | 'scrollable' | 'virtual';
|
package/StatusBar.d.ts
DELETED
|
@@ -1,51 +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 { GridSelectionChangeEvent } from './interfaces/events';
|
|
7
|
-
import { GridColumnProps } from './interfaces/GridColumnProps';
|
|
8
|
-
/**
|
|
9
|
-
* Represents the KendoReact Grid's StatusItem object.
|
|
10
|
-
*/
|
|
11
|
-
export interface StatusItem {
|
|
12
|
-
/**
|
|
13
|
-
* The type of the status item.
|
|
14
|
-
* Could be `sum`, `min`, `max`, `average`, `count`, `isTrue`, `isFalse`, `earliest` or `latest`.
|
|
15
|
-
*/
|
|
16
|
-
type: string;
|
|
17
|
-
/**
|
|
18
|
-
* The calculated value of the status item.
|
|
19
|
-
*/
|
|
20
|
-
value: number | boolean | Date;
|
|
21
|
-
/**
|
|
22
|
-
* The formatted value of the status item.
|
|
23
|
-
*/
|
|
24
|
-
formattedValue: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Represents the props of the KendoReact Grid's StatusBar component.
|
|
28
|
-
*/
|
|
29
|
-
export interface StatusBarProps {
|
|
30
|
-
data: StatusItem[];
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Represents the KendoReact Grid's StatusBar component.
|
|
34
|
-
*/
|
|
35
|
-
export declare const StatusBar: React.FunctionComponent<StatusBarProps>;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
export declare const leafColumns: (columns: GridColumnProps[]) => GridColumnProps[];
|
|
40
|
-
/**
|
|
41
|
-
* Represents the arguments of the getStatusData function.
|
|
42
|
-
*/
|
|
43
|
-
export interface StatusDataArgs extends Pick<GridSelectionChangeEvent, 'selectedField' | 'dataItems' | 'target'> {
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Calculates the status data.
|
|
47
|
-
*
|
|
48
|
-
* @param args StatusDataArgs
|
|
49
|
-
* @returns StatusItem[]
|
|
50
|
-
*/
|
|
51
|
-
export declare const getStatusData: (args: StatusDataArgs) => StatusItem[];
|
package/VirtualScroll.d.ts
DELETED
|
@@ -1,51 +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 * as React from 'react';
|
|
7
|
-
import { VirtualScrollInterface } from './interfaces/VirtualScrollInterface';
|
|
8
|
-
import { RowHeightService } from './VirtualScrollFixed';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare class VirtualScroll implements VirtualScrollInterface {
|
|
13
|
-
table: HTMLTableElement | null;
|
|
14
|
-
containerHeight: number;
|
|
15
|
-
topCacheCount: number;
|
|
16
|
-
attendedSkip: number;
|
|
17
|
-
propsSkip: number;
|
|
18
|
-
total: number;
|
|
19
|
-
scrollableVirtual: boolean;
|
|
20
|
-
realSkip: number;
|
|
21
|
-
pageSize: number;
|
|
22
|
-
PageChange: ((event: Page, syntheticEvent: React.SyntheticEvent<any>) => void) | null;
|
|
23
|
-
tableBodyRef: React.RefObject<HTMLTableSectionElement>;
|
|
24
|
-
fixedScroll: boolean;
|
|
25
|
-
askedSkip: number | undefined;
|
|
26
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
27
|
-
tableTransform: string;
|
|
28
|
-
get container(): HTMLDivElement | null;
|
|
29
|
-
private prevScrollPos;
|
|
30
|
-
private tableTranslate;
|
|
31
|
-
private scrollSyncing;
|
|
32
|
-
private reactVersion;
|
|
33
|
-
constructor(cached: boolean);
|
|
34
|
-
rowHeightService?: RowHeightService;
|
|
35
|
-
/**
|
|
36
|
-
* @return - The row heights in an array.
|
|
37
|
-
*/
|
|
38
|
-
get rowHeights(): Array<{
|
|
39
|
-
line: number;
|
|
40
|
-
acc: number;
|
|
41
|
-
}>;
|
|
42
|
-
changePage(skip: number, e: React.SyntheticEvent<HTMLDivElement>): void;
|
|
43
|
-
translate(dY: number, forceSet?: boolean): void;
|
|
44
|
-
reset(): void;
|
|
45
|
-
localScrollUp(e: React.SyntheticEvent<HTMLDivElement>): void;
|
|
46
|
-
localScrollDown(e: React.SyntheticEvent<HTMLDivElement>): void;
|
|
47
|
-
scrollNonStrict(e: React.SyntheticEvent<HTMLDivElement>): void;
|
|
48
|
-
scrollHandler(e: React.SyntheticEvent<HTMLDivElement>): void;
|
|
49
|
-
private topItems;
|
|
50
|
-
private horizontalScrollbarHeight;
|
|
51
|
-
}
|
package/VirtualScrollFixed.d.ts
DELETED
|
@@ -1,53 +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 * as React from 'react';
|
|
7
|
-
import { VirtualScrollInterface } from './interfaces/VirtualScrollInterface';
|
|
8
|
-
import { DataItemWrapper } from './utils';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare class RowHeightService {
|
|
13
|
-
private total;
|
|
14
|
-
private offsets;
|
|
15
|
-
private heights;
|
|
16
|
-
constructor(total: number, rowHeight: number, detailRowHeight: number, data?: DataItemWrapper[]);
|
|
17
|
-
height(rowIndex: number): number;
|
|
18
|
-
index(position: number): number | undefined;
|
|
19
|
-
offset(rowIndex: number): number;
|
|
20
|
-
totalHeight(): number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
export declare class VirtualScrollFixed implements VirtualScrollInterface {
|
|
26
|
-
table: HTMLTableElement | null;
|
|
27
|
-
containerHeight: number;
|
|
28
|
-
topCacheCount: number;
|
|
29
|
-
attendedSkip: number;
|
|
30
|
-
propsSkip: number;
|
|
31
|
-
total: number;
|
|
32
|
-
scrollableVirtual: boolean;
|
|
33
|
-
realSkip: number;
|
|
34
|
-
pageSize: number;
|
|
35
|
-
PageChange: ((event: Page, syntheticEvent: React.SyntheticEvent<any>) => void) | null;
|
|
36
|
-
tableBodyRef: React.RefObject<HTMLTableSectionElement>;
|
|
37
|
-
fixedScroll: boolean;
|
|
38
|
-
askedSkip: number | undefined;
|
|
39
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
40
|
-
tableTransform: string;
|
|
41
|
-
rowHeightService?: RowHeightService;
|
|
42
|
-
private scrollSyncing;
|
|
43
|
-
private lastLoaded;
|
|
44
|
-
private firstLoaded;
|
|
45
|
-
private lastScrollTop;
|
|
46
|
-
private reactVersion;
|
|
47
|
-
get container(): HTMLDivElement | null;
|
|
48
|
-
constructor(_cached: boolean);
|
|
49
|
-
translate(dY: number, forceSet?: boolean): void;
|
|
50
|
-
changePage(skip: number, e: React.SyntheticEvent<HTMLDivElement>): void;
|
|
51
|
-
reset(): void;
|
|
52
|
-
scrollHandler(e: React.SyntheticEvent<HTMLDivElement>): void;
|
|
53
|
-
}
|
package/cells/GridCell.d.ts
DELETED
|
@@ -1,6 +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 { GridCellProps } from '../interfaces/GridCellProps';
|
|
6
|
-
export declare const GridCell: (props: GridCellProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,18 +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 { GridDetailRowProps } from '../interfaces/GridDetailRowProps';
|
|
7
|
-
/** @hidden */
|
|
8
|
-
export interface GridDetailCellProps {
|
|
9
|
-
colSpan: number;
|
|
10
|
-
ariaColIndex: number;
|
|
11
|
-
dataItem: any;
|
|
12
|
-
dataIndex: number;
|
|
13
|
-
detail: React.ComponentType<GridDetailRowProps>;
|
|
14
|
-
id: string;
|
|
15
|
-
onContextMenu?: (event: React.MouseEvent<HTMLElement>, dataItem: any) => void;
|
|
16
|
-
}
|
|
17
|
-
/** @hidden */
|
|
18
|
-
export declare const GridDetailCell: (props: GridDetailCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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
|
-
/** @hidden */
|
|
6
|
-
export interface GridDetailHierarchyCellProps {
|
|
7
|
-
id: string;
|
|
8
|
-
}
|
|
9
|
-
/** @hidden */
|
|
10
|
-
export declare const GridDetailHierarchyCell: (props: GridDetailHierarchyCellProps) => import("react/jsx-runtime").JSX.Element;
|
package/cells/GridEditCell.d.ts
DELETED
|
@@ -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 { GridCellProps } from '../interfaces/GridCellProps';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const GridEditCell: (props: GridCellProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,20 +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 { GridFilterCellProps } from '../interfaces/GridFilterCellProps';
|
|
7
|
-
export declare class GridFilterCell extends React.Component<GridFilterCellProps, {}> {
|
|
8
|
-
private _inputRef;
|
|
9
|
-
constructor(props: GridFilterCellProps);
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
14
|
-
private renderOperatorEditor;
|
|
15
|
-
private inputChange;
|
|
16
|
-
private operatorChange;
|
|
17
|
-
private boolDropdownChange;
|
|
18
|
-
private clear;
|
|
19
|
-
private filterComponent;
|
|
20
|
-
}
|
package/cells/GridGroupCell.d.ts
DELETED
|
@@ -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 { GridCellProps } from '../interfaces/GridCellProps';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const GridGroupCell: (props: GridCellProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -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 { GridCellProps } from '../interfaces/GridCellProps';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const GridHierarchyCell: (props: GridCellProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -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 { GridCellProps } from '../interfaces/GridCellProps';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const GridSelectionCell: (props: GridCellProps) => import("react/jsx-runtime").JSX.Element | null;
|