@progress/kendo-react-grid 5.2.0 → 5.3.0-dev.202205040828
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/dist/cdn/js/kendo-react-grid.js +1 -1
- package/dist/es/Grid.js +1 -1
- package/dist/es/interfaces/GridProps.d.ts +2 -1
- package/dist/es/interfaces/GridRowProps.d.ts +2 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rows/GridRow.js +1 -1
- package/dist/npm/Grid.js +1 -1
- package/dist/npm/interfaces/GridProps.d.ts +2 -1
- package/dist/npm/interfaces/GridRowProps.d.ts +2 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rows/GridRow.js +1 -1
- package/dist/systemjs/kendo-react-grid.js +1 -1
- package/package.json +18 -18
package/dist/es/Grid.js
CHANGED
|
@@ -576,7 +576,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
576
576
|
var tableDisplay = this.props.columnVirtualization ? 'block' : 'table';
|
|
577
577
|
if (this.props.scrollable === 'none') {
|
|
578
578
|
return (React.createElement(TableKeyboardNavigationContext.Provider, { value: this.contextStateRef.current },
|
|
579
|
-
React.createElement("div", __assign({ style: this.props.style, className: classNames('k-widget k-grid', this.props.className), "aria-colcount": leafColumns.length, "aria-rowcount": total, ref: function (el) { _this.element = el; }, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
|
|
579
|
+
React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: classNames('k-widget k-grid', this.props.className), "aria-colcount": leafColumns.length, "aria-rowcount": total, ref: function (el) { _this.element = el; }, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
|
|
580
580
|
toolbar,
|
|
581
581
|
groupingPanel,
|
|
582
582
|
React.createElement(TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
|
|
@@ -14,10 +14,11 @@ import { GridColumnMenuProps } from '../interfaces/GridColumnMenuProps';
|
|
|
14
14
|
import { GridFilterOperators } from './GridFilterOperators';
|
|
15
15
|
import { GridSelectableSettings } from './GridSelectableSettings';
|
|
16
16
|
import { PagerProps } from '@progress/kendo-react-data-tools';
|
|
17
|
+
import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
17
18
|
/**
|
|
18
19
|
* Represents the props of the [KendoReact Grid component]({% slug overview_grid %}).
|
|
19
20
|
*/
|
|
20
|
-
export interface GridProps {
|
|
21
|
+
export interface GridProps extends KendoReactComponentBaseProps {
|
|
21
22
|
/**
|
|
22
23
|
* Sets the Grid row key prop to the value of this field in the dataItem.
|
|
23
24
|
* If not set, the dataItem index will be used for the row key, which might lead to row not updated during paging or scrolling.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
2
3
|
import { GridRowType } from './GridRowType';
|
|
3
4
|
/**
|
|
4
5
|
* The props that the Grid passes to the GridRow component when creating it. Accessible during the `rowRender` callback of the Grid.
|
|
5
6
|
*/
|
|
6
|
-
export interface GridRowProps {
|
|
7
|
+
export interface GridRowProps extends KendoReactComponentBaseProps {
|
|
7
8
|
/**
|
|
8
9
|
* The `data` object that represents the current row.
|
|
9
10
|
*/
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-grid',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1651652440,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/es/rows/GridRow.js
CHANGED
|
@@ -49,7 +49,7 @@ var GridRow = /** @class */ (function (_super) {
|
|
|
49
49
|
'k-state-selected': this.props.isSelected,
|
|
50
50
|
'k-grid-edit-row': this.props.isInEdit
|
|
51
51
|
});
|
|
52
|
-
var defaultRendering = (React.createElement("tr", __assign({ onClick: this.props.onClick, onDoubleClick: this.props.onDoubleClick, className: className, style: {
|
|
52
|
+
var defaultRendering = (React.createElement("tr", __assign({ id: this.props.id, onClick: this.props.onClick, onDoubleClick: this.props.onDoubleClick, className: className, style: {
|
|
53
53
|
height: this.props.rowHeight ? this.props.rowHeight + 'px' : '',
|
|
54
54
|
visibility: this.props.isHidden ? 'hidden' : ''
|
|
55
55
|
}, role: "row", "aria-rowindex": this.props.ariaRowIndex }, (_a = {}, _a[GRID_ROW_INDEX_ATTRIBUTE] = this.props.rowType === 'data' ? this.props.dataIndex : undefined, _a)), this.props.children));
|
package/dist/npm/Grid.js
CHANGED
|
@@ -578,7 +578,7 @@ var Grid = /** @class */ (function (_super) {
|
|
|
578
578
|
var tableDisplay = this.props.columnVirtualization ? 'block' : 'table';
|
|
579
579
|
if (this.props.scrollable === 'none') {
|
|
580
580
|
return (React.createElement(kendo_react_data_tools_1.TableKeyboardNavigationContext.Provider, { value: this.contextStateRef.current },
|
|
581
|
-
React.createElement("div", __assign({ style: this.props.style, className: kendo_react_common_1.classNames('k-widget k-grid', this.props.className), "aria-colcount": leafColumns.length, "aria-rowcount": total, ref: function (el) { _this.element = el; }, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, kendo_react_data_tools_1.tableKeyboardNavigationScopeAttributes),
|
|
581
|
+
React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: kendo_react_common_1.classNames('k-widget k-grid', this.props.className), "aria-colcount": leafColumns.length, "aria-rowcount": total, ref: function (el) { _this.element = el; }, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, kendo_react_data_tools_1.tableKeyboardNavigationScopeAttributes),
|
|
582
582
|
toolbar,
|
|
583
583
|
groupingPanel,
|
|
584
584
|
React.createElement(kendo_react_data_tools_1.TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
|
|
@@ -14,10 +14,11 @@ import { GridColumnMenuProps } from '../interfaces/GridColumnMenuProps';
|
|
|
14
14
|
import { GridFilterOperators } from './GridFilterOperators';
|
|
15
15
|
import { GridSelectableSettings } from './GridSelectableSettings';
|
|
16
16
|
import { PagerProps } from '@progress/kendo-react-data-tools';
|
|
17
|
+
import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
17
18
|
/**
|
|
18
19
|
* Represents the props of the [KendoReact Grid component]({% slug overview_grid %}).
|
|
19
20
|
*/
|
|
20
|
-
export interface GridProps {
|
|
21
|
+
export interface GridProps extends KendoReactComponentBaseProps {
|
|
21
22
|
/**
|
|
22
23
|
* Sets the Grid row key prop to the value of this field in the dataItem.
|
|
23
24
|
* If not set, the dataItem index will be used for the row key, which might lead to row not updated during paging or scrolling.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { KendoReactComponentBaseProps } from '@progress/kendo-react-common';
|
|
2
3
|
import { GridRowType } from './GridRowType';
|
|
3
4
|
/**
|
|
4
5
|
* The props that the Grid passes to the GridRow component when creating it. Accessible during the `rowRender` callback of the Grid.
|
|
5
6
|
*/
|
|
6
|
-
export interface GridRowProps {
|
|
7
|
+
export interface GridRowProps extends KendoReactComponentBaseProps {
|
|
7
8
|
/**
|
|
8
9
|
* The `data` object that represents the current row.
|
|
9
10
|
*/
|
|
@@ -7,7 +7,7 @@ exports.packageMetadata = {
|
|
|
7
7
|
name: '@progress/kendo-react-grid',
|
|
8
8
|
productName: 'KendoReact',
|
|
9
9
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
10
|
+
publishDate: 1651652440,
|
|
11
11
|
version: '',
|
|
12
12
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
13
13
|
};
|
package/dist/npm/rows/GridRow.js
CHANGED
|
@@ -51,7 +51,7 @@ var GridRow = /** @class */ (function (_super) {
|
|
|
51
51
|
'k-state-selected': this.props.isSelected,
|
|
52
52
|
'k-grid-edit-row': this.props.isInEdit
|
|
53
53
|
});
|
|
54
|
-
var defaultRendering = (React.createElement("tr", __assign({ onClick: this.props.onClick, onDoubleClick: this.props.onDoubleClick, className: className, style: {
|
|
54
|
+
var defaultRendering = (React.createElement("tr", __assign({ id: this.props.id, onClick: this.props.onClick, onDoubleClick: this.props.onDoubleClick, className: className, style: {
|
|
55
55
|
height: this.props.rowHeight ? this.props.rowHeight + 'px' : '',
|
|
56
56
|
visibility: this.props.isHidden ? 'hidden' : ''
|
|
57
57
|
}, role: "row", "aria-rowindex": this.props.ariaRowIndex }, (_a = {}, _a[constants_1.GRID_ROW_INDEX_ATTRIBUTE] = this.props.rowType === 'data' ? this.props.dataIndex : undefined, _a)), this.props.children));
|