@progress/kendo-react-grid 7.5.0-develop.2 → 7.5.0-develop.20
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 +1 -1
- package/Grid.mjs +411 -376
- package/GridColumn.js +1 -1
- package/GridColumn.mjs +2 -1
- package/VirtualScrollFixed.js +1 -1
- package/VirtualScrollFixed.mjs +18 -53
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +10 -9
- package/cells/GridGroupCell.js +1 -1
- package/cells/GridGroupCell.mjs +16 -15
- package/columnMenu/GridColumnMenuWrapper.js +1 -1
- package/columnMenu/GridColumnMenuWrapper.mjs +53 -53
- package/constants/index.js +1 -1
- package/constants/index.mjs +4 -3
- package/dist/cdn/js/kendo-react-grid.js +1 -1
- package/drag/GroupingIndicator.js +1 -1
- package/drag/GroupingIndicator.mjs +13 -9
- package/footer/FooterRow.js +1 -1
- package/footer/FooterRow.mjs +40 -35
- package/header/HeaderRow.js +1 -1
- package/header/HeaderRow.mjs +57 -56
- package/index.d.mts +40 -59
- package/index.d.ts +40 -59
- package/package-metadata.mjs +1 -1
- package/package.json +12 -12
package/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ import { SortDescriptor } from '@progress/kendo-data-query';
|
|
|
36
36
|
import { SortSettings } from '@progress/kendo-react-data-tools';
|
|
37
37
|
import { State } from '@progress/kendo-data-query';
|
|
38
38
|
import { SVGIcon } from '@progress/kendo-react-common';
|
|
39
|
+
import { SVGIcon as SVGIcon_2 } from '@progress/kendo-svg-icons';
|
|
39
40
|
import { TABLE_COL_INDEX_ATTRIBUTE } from '@progress/kendo-react-data-tools';
|
|
40
41
|
import { TableDragSelectionReleaseEvent } from '@progress/kendo-react-data-tools';
|
|
41
42
|
import { TableKeyboardNavigationContextType } from '@progress/kendo-react-data-tools';
|
|
@@ -327,6 +328,7 @@ export declare class GridClassComponent extends React_2.Component<GridProps> {
|
|
|
327
328
|
private _columnsMap;
|
|
328
329
|
private _columnsMutations;
|
|
329
330
|
private _resized;
|
|
331
|
+
private _focusFirst;
|
|
330
332
|
private _shouldUpdateLeftRight;
|
|
331
333
|
private contextStateRef;
|
|
332
334
|
private navigationStateRef;
|
|
@@ -391,6 +393,7 @@ export declare class GridClassComponent extends React_2.Component<GridProps> {
|
|
|
391
393
|
private forceUpdateTimeout;
|
|
392
394
|
private isRtl;
|
|
393
395
|
private rowIndex;
|
|
396
|
+
private headTable;
|
|
394
397
|
private get _header();
|
|
395
398
|
private get _gridId();
|
|
396
399
|
private observer;
|
|
@@ -446,6 +449,9 @@ export declare class GridClassComponent extends React_2.Component<GridProps> {
|
|
|
446
449
|
private onHeaderSelectionChange;
|
|
447
450
|
private selectionRelease;
|
|
448
451
|
private pageChange;
|
|
452
|
+
private getTotal;
|
|
453
|
+
private moveToNextPage;
|
|
454
|
+
private moveToPrevPage;
|
|
449
455
|
private pagerPageChange;
|
|
450
456
|
private sortChange;
|
|
451
457
|
private filterChange;
|
|
@@ -472,6 +478,7 @@ export declare class GridClassComponent extends React_2.Component<GridProps> {
|
|
|
472
478
|
private getDataState;
|
|
473
479
|
private getArguments;
|
|
474
480
|
private getLeafDataItems;
|
|
481
|
+
private getSlicedLeafDataItems;
|
|
475
482
|
}
|
|
476
483
|
|
|
477
484
|
/**
|
|
@@ -773,7 +780,7 @@ export declare class GridColumnMenuFilter extends React_2.Component<GridColumnMe
|
|
|
773
780
|
*/
|
|
774
781
|
declare interface GridColumnMenuFilterBaseProps extends GridColumnMenuBaseProps {
|
|
775
782
|
/**
|
|
776
|
-
* The current filter state of the Grid.
|
|
783
|
+
* The current filter state of the Grid.It takes value of type [CompositeFilterDescriptor]({% api_kendo-data-query_compositefilterdescriptor %})
|
|
777
784
|
*/
|
|
778
785
|
filter?: CompositeFilterDescriptor;
|
|
779
786
|
/**
|
|
@@ -983,7 +990,7 @@ declare interface GridColumnMenuGroupBaseProps extends GridColumnMenuBaseProps {
|
|
|
983
990
|
*/
|
|
984
991
|
groupable?: boolean;
|
|
985
992
|
/**
|
|
986
|
-
* The current group state of the Grid.
|
|
993
|
+
* The current group state of the Grid. It takes value of type [GroupDescriptor]({% slug api_kendo-data-query_groupdescriptor %})[]
|
|
987
994
|
*/
|
|
988
995
|
group?: GroupDescriptor[];
|
|
989
996
|
/**
|
|
@@ -1160,7 +1167,7 @@ declare interface GridColumnMenuSortBaseProps extends GridColumnMenuBaseProps {
|
|
|
1160
1167
|
*/
|
|
1161
1168
|
sortable?: GridSortSettings;
|
|
1162
1169
|
/**
|
|
1163
|
-
* The current sort state of the Grid.
|
|
1170
|
+
* The current sort state of the Grid. It takes a value of type [SortDescriptor]({% slug api_kendo-data-query_sortdescriptor %})[]
|
|
1164
1171
|
*/
|
|
1165
1172
|
sort?: SortDescriptor[];
|
|
1166
1173
|
/**
|
|
@@ -1188,6 +1195,10 @@ export declare interface GridColumnMenuWrapperProps extends GridColumnMenuProps
|
|
|
1188
1195
|
* The component to be rendered as content of the Grid column menu.
|
|
1189
1196
|
*/
|
|
1190
1197
|
columnMenu?: React_2.ComponentType<GridColumnMenuProps> | null;
|
|
1198
|
+
/**
|
|
1199
|
+
* The icon that overrides the default(three vertical dots) icon displayed in the column menu of each column.
|
|
1200
|
+
*/
|
|
1201
|
+
columnMenuIcon?: SVGIcon;
|
|
1191
1202
|
}
|
|
1192
1203
|
|
|
1193
1204
|
/**
|
|
@@ -1238,6 +1249,10 @@ export declare interface GridColumnProps extends Omit<ColumnBaseProps, 'cell'> {
|
|
|
1238
1249
|
* Defines the editor type. Used when the column enters the edit mode ([more information and examples]({% slug editing_inline_grid %})). Defaults to `text`.
|
|
1239
1250
|
*/
|
|
1240
1251
|
editor?: 'text' | 'numeric' | 'boolean' | 'date';
|
|
1252
|
+
/**
|
|
1253
|
+
* Overrides the default(three vertical dots) column menu icon or the icon set through the ([`columnMenuIcon`]({% slug api_grid_gridprops %}#toc-columnmenuicon)) property.
|
|
1254
|
+
*/
|
|
1255
|
+
menuIcon?: SVGIcon;
|
|
1241
1256
|
/**
|
|
1242
1257
|
* Defines the component that will be rendered as a cell. If not set, a `GridCell` will be rendered by default.
|
|
1243
1258
|
*/
|
|
@@ -1468,7 +1483,7 @@ export declare interface GridCustomHeaderCellProps extends GridHeaderCellProps {
|
|
|
1468
1483
|
*/
|
|
1469
1484
|
export declare interface GridDataStateChangeEvent extends GridEvent {
|
|
1470
1485
|
/**
|
|
1471
|
-
* The
|
|
1486
|
+
* The [State]({% api_kendo-data-query_state %}) of the Grid based on the user action.
|
|
1472
1487
|
*/
|
|
1473
1488
|
dataState: State;
|
|
1474
1489
|
targetEvent?: PagerTargetEvent;
|
|
@@ -1562,9 +1577,7 @@ export declare interface GridExpandChangeEvent extends GridEvent {
|
|
|
1562
1577
|
*/
|
|
1563
1578
|
dataItem: any;
|
|
1564
1579
|
/**
|
|
1565
|
-
*
|
|
1566
|
-
* - `true`—If the data item is expanded.
|
|
1567
|
-
* - `false`—If the data item is collapsed.
|
|
1580
|
+
* Indicates whether the data item is expanded or collapsed
|
|
1568
1581
|
*/
|
|
1569
1582
|
value: boolean;
|
|
1570
1583
|
/**
|
|
@@ -1657,7 +1670,7 @@ export declare interface GridFilterCellProps {
|
|
|
1657
1670
|
*/
|
|
1658
1671
|
export declare interface GridFilterChangeEvent extends GridEvent {
|
|
1659
1672
|
/**
|
|
1660
|
-
* The new
|
|
1673
|
+
* The new [CompositeFilterDescriptor]({% api_kendo-data-query_compositefilterdescriptor %}) based on the user action.
|
|
1661
1674
|
*/
|
|
1662
1675
|
filter: CompositeFilterDescriptor;
|
|
1663
1676
|
}
|
|
@@ -1764,7 +1777,7 @@ export declare const GridGroupCell: (props: GridCellProps) => JSX_2.Element | nu
|
|
|
1764
1777
|
*/
|
|
1765
1778
|
export declare interface GridGroupChangeEvent extends GridEvent {
|
|
1766
1779
|
/**
|
|
1767
|
-
* An array of
|
|
1780
|
+
* An array of [GroupDescriptor]({% slug api_kendo-data-query_groupdescriptor %})[] that corresponds to the user action.
|
|
1768
1781
|
*/
|
|
1769
1782
|
group: GroupDescriptor[];
|
|
1770
1783
|
}
|
|
@@ -2100,7 +2113,7 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2100
2113
|
*/
|
|
2101
2114
|
cells?: GridCellsSettings;
|
|
2102
2115
|
/**
|
|
2103
|
-
* 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.
|
|
2116
|
+
* 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. It takes values of type null, any or [DataResult]({% slug api_kendo-data-query_dataresult%})
|
|
2104
2117
|
*/
|
|
2105
2118
|
data?: any[] | DataResult | null;
|
|
2106
2119
|
/**
|
|
@@ -2120,7 +2133,7 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2120
2133
|
*/
|
|
2121
2134
|
onSortChange?: (event: GridSortChangeEvent) => void;
|
|
2122
2135
|
/**
|
|
2123
|
-
* The descriptors by which the data is sorted. Applies the sorting styles and buttons to the affected columns.
|
|
2136
|
+
* The ([descriptors]({% slug api_kendo-data-query_sortdescriptor %})) by which the data is sorted. Applies the sorting styles and buttons to the affected columns.
|
|
2124
2137
|
*/
|
|
2125
2138
|
sort?: SortDescriptor[];
|
|
2126
2139
|
/**
|
|
@@ -2128,55 +2141,11 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2128
2141
|
*/
|
|
2129
2142
|
filterable?: boolean;
|
|
2130
2143
|
/**
|
|
2131
|
-
* 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.
|
|
2144
|
+
* The [descriptor]({% api_kendo-data-query_compositefilterdescriptor %}) 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.
|
|
2132
2145
|
*/
|
|
2133
2146
|
filter?: CompositeFilterDescriptor;
|
|
2134
2147
|
/**
|
|
2135
2148
|
* The filter operators for the Grid filters.
|
|
2136
|
-
*
|
|
2137
|
-
* @example
|
|
2138
|
-
* ```jsx
|
|
2139
|
-
* const customFilterOperators = {
|
|
2140
|
-
* 'text': [
|
|
2141
|
-
* { text: 'grid.filterContainsOperator', operator: 'contains' }
|
|
2142
|
-
* ],
|
|
2143
|
-
* 'numeric': [
|
|
2144
|
-
* { text: 'grid.filterGtOperator', operator: 'gt' }
|
|
2145
|
-
* ],
|
|
2146
|
-
* 'date': [
|
|
2147
|
-
* { text: 'grid.filterAfterOperator', operator: 'gt' }
|
|
2148
|
-
* ]
|
|
2149
|
-
* }
|
|
2150
|
-
*
|
|
2151
|
-
* class App extends React.Component {
|
|
2152
|
-
* constructor(props) {
|
|
2153
|
-
* super(props);
|
|
2154
|
-
* this.state = {
|
|
2155
|
-
* data: [
|
|
2156
|
-
* { 'foo': 'A1', 'bar': 'B1' },
|
|
2157
|
-
* { 'foo': 'A2', 'bar': 'B2' },
|
|
2158
|
-
* { 'foo': 'A3', 'bar': 'B2' }
|
|
2159
|
-
* ]
|
|
2160
|
-
* };
|
|
2161
|
-
* }
|
|
2162
|
-
* render() {
|
|
2163
|
-
* return (
|
|
2164
|
-
* <div>
|
|
2165
|
-
* <Grid
|
|
2166
|
-
* data={this.state.data}
|
|
2167
|
-
* reorderable={true}
|
|
2168
|
-
* filterable
|
|
2169
|
-
* filterOperators={customFilterOperators}
|
|
2170
|
-
* >
|
|
2171
|
-
* <GridColumn field="foo" />
|
|
2172
|
-
* <GridColumn field="bar" />
|
|
2173
|
-
* </Grid>
|
|
2174
|
-
* </div>
|
|
2175
|
-
* );
|
|
2176
|
-
* }
|
|
2177
|
-
* }
|
|
2178
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
2179
|
-
* ```
|
|
2180
2149
|
*/
|
|
2181
2150
|
filterOperators?: GridFilterOperators;
|
|
2182
2151
|
/**
|
|
@@ -2188,7 +2157,11 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2188
2157
|
*/
|
|
2189
2158
|
columnMenu?: null | ComponentType<GridColumnMenuProps>;
|
|
2190
2159
|
/**
|
|
2191
|
-
*
|
|
2160
|
+
* Globally overrides the default(three vertical dots) column menu icon for the whole Grid. If set, the prop can be overridden on column level using the ([menuIcon]({% slug api_grid_gridcolumnprops %}#toc-menuicon)) property.
|
|
2161
|
+
*/
|
|
2162
|
+
columnMenuIcon?: SVGIcon_2;
|
|
2163
|
+
/**
|
|
2164
|
+
* The [descriptors]({% slug api_kendo-data-query_groupdescriptor %})[] by which the data will be grouped
|
|
2192
2165
|
* ([more information and examples]({% slug groupingbasics_grid %})).
|
|
2193
2166
|
*/
|
|
2194
2167
|
group?: GroupDescriptor[];
|
|
@@ -2213,7 +2186,7 @@ export declare interface GridProps extends KendoReactComponentBaseProps {
|
|
|
2213
2186
|
*/
|
|
2214
2187
|
pageSize?: number;
|
|
2215
2188
|
/**
|
|
2216
|
-
* The pager component that the Grid will render instead of the built-in pager.
|
|
2189
|
+
* The pager component that the Grid will render instead of the built-in pager. It takes values of type null and ComponentType<[PagerProps]({% slug api_data-tools_pagerprops %})>
|
|
2217
2190
|
*/
|
|
2218
2191
|
pager?: null | ComponentType<PagerProps>;
|
|
2219
2192
|
/**
|
|
@@ -2529,6 +2502,14 @@ export declare const GridSelectionCell: (props: GridCellProps) => JSX_2.Element
|
|
|
2529
2502
|
* Represents the object of the `onSelectionChange` Grid event.
|
|
2530
2503
|
*/
|
|
2531
2504
|
export declare interface GridSelectionChangeEvent extends GridEvent, TableSelectionChangeEvent<GridClassComponent> {
|
|
2505
|
+
/**
|
|
2506
|
+
* The dataItem from which the selection starts(Valid for scenarios without checkbox selection).
|
|
2507
|
+
*/
|
|
2508
|
+
startDataItem?: any;
|
|
2509
|
+
/**
|
|
2510
|
+
* The dataItem to which the selection ends(Valid for scenarios without checkbox selection)
|
|
2511
|
+
*/
|
|
2512
|
+
endDataItem?: any;
|
|
2532
2513
|
}
|
|
2533
2514
|
|
|
2534
2515
|
/**
|
|
@@ -2536,7 +2517,7 @@ export declare interface GridSelectionChangeEvent extends GridEvent, TableSelect
|
|
|
2536
2517
|
*/
|
|
2537
2518
|
export declare interface GridSortChangeEvent extends GridEvent {
|
|
2538
2519
|
/**
|
|
2539
|
-
* The new
|
|
2520
|
+
* The new ([SortDescriptor]({% slug api_kendo-data-query_sortdescriptor %})) according to the user action.
|
|
2540
2521
|
*/
|
|
2541
2522
|
sort: SortDescriptor[];
|
|
2542
2523
|
}
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-grid",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1715351893,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-grid",
|
|
3
|
-
"version": "7.5.0-develop.
|
|
3
|
+
"version": "7.5.0-develop.20",
|
|
4
4
|
"description": "React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-data-query": "^1.0.0",
|
|
26
|
-
"@progress/kendo-drawing": "^1.
|
|
26
|
+
"@progress/kendo-drawing": "^1.20.1",
|
|
27
27
|
"@progress/kendo-licensing": "^1.3.4",
|
|
28
|
-
"@progress/kendo-react-animation": "7.5.0-develop.
|
|
29
|
-
"@progress/kendo-react-buttons": "7.5.0-develop.
|
|
30
|
-
"@progress/kendo-react-common": "7.5.0-develop.
|
|
31
|
-
"@progress/kendo-react-data-tools": "7.5.0-develop.
|
|
32
|
-
"@progress/kendo-react-dateinputs": "7.5.0-develop.
|
|
33
|
-
"@progress/kendo-react-dropdowns": "7.5.0-develop.
|
|
34
|
-
"@progress/kendo-react-inputs": "7.5.0-develop.
|
|
35
|
-
"@progress/kendo-react-intl": "7.5.0-develop.
|
|
36
|
-
"@progress/kendo-react-popup": "7.5.0-develop.
|
|
37
|
-
"@progress/kendo-svg-icons": "^
|
|
28
|
+
"@progress/kendo-react-animation": "7.5.0-develop.20",
|
|
29
|
+
"@progress/kendo-react-buttons": "7.5.0-develop.20",
|
|
30
|
+
"@progress/kendo-react-common": "7.5.0-develop.20",
|
|
31
|
+
"@progress/kendo-react-data-tools": "7.5.0-develop.20",
|
|
32
|
+
"@progress/kendo-react-dateinputs": "7.5.0-develop.20",
|
|
33
|
+
"@progress/kendo-react-dropdowns": "7.5.0-develop.20",
|
|
34
|
+
"@progress/kendo-react-inputs": "7.5.0-develop.20",
|
|
35
|
+
"@progress/kendo-react-intl": "7.5.0-develop.20",
|
|
36
|
+
"@progress/kendo-react-popup": "7.5.0-develop.20",
|
|
37
|
+
"@progress/kendo-svg-icons": "^3.0.0",
|
|
38
38
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
39
39
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
40
40
|
},
|