@progress/kendo-react-grid 5.10.0-dev.202301031638 → 5.10.0-dev.202301091032
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.d.ts +6 -0
- package/dist/es/Grid.js +71 -67
- package/dist/es/GridToolbar.js +5 -1
- package/dist/es/VirtualScroll.d.ts +2 -2
- package/dist/es/VirtualScroll.js +38 -30
- package/dist/es/cells/GridCell.js +1 -1
- package/dist/es/cells/GridDetailCell.js +1 -1
- package/dist/es/cells/GridDetailHierarchyCell.js +1 -1
- package/dist/es/cells/GridEditCell.js +1 -1
- package/dist/es/cells/GridFilterCell.js +8 -8
- package/dist/es/cells/GridGroupCell.js +3 -3
- package/dist/es/cells/GridHierarchyCell.js +3 -2
- package/dist/es/columnMenu/GridColumnMenuWrapper.d.ts +2 -2
- package/dist/es/columnMenu/GridColumnMenuWrapper.js +1 -1
- package/dist/es/drag/ColumnDraggable.js +1 -1
- package/dist/es/footer/Footer.d.ts +2 -0
- package/dist/es/footer/Footer.js +7 -3
- package/dist/es/footer/FooterRow.js +3 -2
- package/dist/es/header/FilterRow.d.ts +2 -1
- package/dist/es/header/FilterRow.js +4 -3
- package/dist/es/header/Header.d.ts +2 -0
- package/dist/es/header/Header.js +7 -4
- package/dist/es/header/HeaderRow.js +25 -31
- package/dist/es/interfaces/GridColumnProps.d.ts +1 -1
- package/dist/es/interfaces/GridFilterCellProps.d.ts +12 -0
- package/dist/es/interfaces/GridProps.d.ts +10 -0
- package/dist/es/interfaces/GridToolbarProps.d.ts +16 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rows/GridRow.js +2 -2
- package/dist/es/utils/index.d.ts +8 -0
- package/dist/es/utils/index.js +9 -0
- package/dist/npm/Grid.d.ts +6 -0
- package/dist/npm/Grid.js +69 -65
- package/dist/npm/GridToolbar.js +5 -1
- package/dist/npm/VirtualScroll.d.ts +2 -2
- package/dist/npm/VirtualScroll.js +38 -30
- package/dist/npm/cells/GridCell.js +1 -1
- package/dist/npm/cells/GridDetailCell.js +1 -1
- package/dist/npm/cells/GridDetailHierarchyCell.js +1 -1
- package/dist/npm/cells/GridEditCell.js +1 -1
- package/dist/npm/cells/GridFilterCell.js +7 -7
- package/dist/npm/cells/GridGroupCell.js +3 -3
- package/dist/npm/cells/GridHierarchyCell.js +3 -2
- package/dist/npm/columnMenu/GridColumnMenuWrapper.d.ts +2 -2
- package/dist/npm/columnMenu/GridColumnMenuWrapper.js +1 -1
- package/dist/npm/drag/ColumnDraggable.js +1 -1
- package/dist/npm/footer/Footer.d.ts +2 -0
- package/dist/npm/footer/Footer.js +7 -3
- package/dist/npm/footer/FooterRow.js +3 -2
- package/dist/npm/header/FilterRow.d.ts +2 -1
- package/dist/npm/header/FilterRow.js +4 -3
- package/dist/npm/header/Header.d.ts +2 -0
- package/dist/npm/header/Header.js +6 -3
- package/dist/npm/header/HeaderRow.js +25 -31
- package/dist/npm/interfaces/GridColumnProps.d.ts +1 -1
- package/dist/npm/interfaces/GridFilterCellProps.d.ts +12 -0
- package/dist/npm/interfaces/GridProps.d.ts +10 -0
- package/dist/npm/interfaces/GridToolbarProps.d.ts +16 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rows/GridRow.js +2 -2
- package/dist/npm/utils/index.d.ts +8 -0
- package/dist/npm/utils/index.js +10 -1
- package/dist/systemjs/kendo-react-grid.js +1 -1
- package/package.json +18 -18
|
@@ -22,7 +22,7 @@ export declare class GridColumnMenuWrapper extends React.Component<GridColumnMen
|
|
|
22
22
|
/** @hidden */
|
|
23
23
|
readonly state: ColumnMenuStateProps;
|
|
24
24
|
/** @hidden */
|
|
25
|
-
_anchor:
|
|
25
|
+
_anchor: HTMLAnchorElement | null;
|
|
26
26
|
/** @hidden */
|
|
27
27
|
_content: HTMLDivElement | null;
|
|
28
28
|
/** @hidden */
|
|
@@ -38,6 +38,6 @@ export declare class GridColumnMenuWrapper extends React.Component<GridColumnMen
|
|
|
38
38
|
/** @hidden */
|
|
39
39
|
closeMenu: () => void;
|
|
40
40
|
/** @hidden */
|
|
41
|
-
onAnchorMouseDown: (event: React.MouseEvent<
|
|
41
|
+
onAnchorMouseDown: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
42
42
|
render(): JSX.Element;
|
|
43
43
|
}
|
|
@@ -90,7 +90,7 @@ var GridColumnMenuWrapper = /** @class */ (function (_super) {
|
|
|
90
90
|
var _this = this;
|
|
91
91
|
var _a = this.props, ColumnMenu = _a.columnMenu, others = __rest(_a, ["columnMenu"]);
|
|
92
92
|
return (React.createElement(React.Fragment, null,
|
|
93
|
-
React.createElement("
|
|
93
|
+
React.createElement("a", { className: 'k-grid-header-menu k-grid-column-menu', ref: function (e) { return _this._anchor = e; }, onClick: this.anchorClick, onMouseDown: this.onAnchorMouseDown, href: "#" },
|
|
94
94
|
React.createElement("span", { className: 'k-icon k-i-more-vertical' })),
|
|
95
95
|
React.createElement(kendo_react_popup_1.Popup, { anchor: this._anchor, show: this.state.show },
|
|
96
96
|
React.createElement("div", { ref: function (e) { return _this._content = e; }, className: 'k-grid-columnmenu-popup', tabIndex: 0, onBlur: this.blur, onFocus: this.focus, style: { outline: 'none' } }, ColumnMenu && (React.createElement(ColumnMenu, __assign({}, others, { onCloseMenu: this.closeMenu })))))));
|
|
@@ -58,7 +58,7 @@ var ColumnDraggable = /** @class */ (function (_super) {
|
|
|
58
58
|
ColumnDraggable.prototype.render = function () {
|
|
59
59
|
var _this = this;
|
|
60
60
|
return (React.createElement(kendo_react_common_1.Draggable, { onPress: this.onPress, onDrag: this.onDrag, onRelease: this.onRelease, hint: this.props.dragClue, autoScroll: { boundaryElementRef: this.props.headerRef, direction: { horizontal: true, vertical: false } }, scrollContainer: this.props.containerRef || undefined, ref: function (component) { _this.draggable = component; } },
|
|
61
|
-
React.createElement("tr", { style: { touchAction: 'none' }, role: "row", "aria-rowindex": this.props.ariaRowIndex }, this.props.children)));
|
|
61
|
+
React.createElement("tr", { className: 'k-table-row', style: { touchAction: 'none' }, role: "row", "aria-rowindex": this.props.ariaRowIndex }, this.props.children)));
|
|
62
62
|
};
|
|
63
63
|
return ColumnDraggable;
|
|
64
64
|
}(React.PureComponent));
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.Footer = void 0;
|
|
19
19
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
20
20
|
var React = require("react");
|
|
21
|
+
var kendo_react_common_2 = require("@progress/kendo-react-common");
|
|
21
22
|
/**
|
|
22
23
|
* @hidden
|
|
23
24
|
*/
|
|
@@ -52,15 +53,18 @@ var Footer = /** @class */ (function (_super) {
|
|
|
52
53
|
}
|
|
53
54
|
};
|
|
54
55
|
Footer.prototype.render = function () {
|
|
56
|
+
var _a;
|
|
55
57
|
var _this = this;
|
|
56
58
|
if (!this.props.staticHeaders) {
|
|
57
|
-
return (React.createElement("tfoot", { className: "k-
|
|
59
|
+
return (React.createElement("tfoot", { className: "k-table-tfoot" }, this.props.row));
|
|
58
60
|
}
|
|
59
61
|
return (React.createElement("div", { className: "k-grid-footer", role: "presentation" },
|
|
60
62
|
React.createElement("div", { ref: function (div) { _this.footerWrap = div; }, className: "k-grid-footer-wrap", style: this.scrollbarWidth ? {} : { borderWidth: 0 }, role: "presentation" },
|
|
61
|
-
React.createElement("table", { ref: function (table) { _this.table = table; },
|
|
63
|
+
React.createElement("table", { ref: function (table) { _this.table = table; }, className: (0, kendo_react_common_2.classNames)('k-table k-grid-footer-table', (_a = {},
|
|
64
|
+
_a["k-table-".concat(kendo_react_common_2.kendoThemeMaps.sizeMap[this.props.size] || this.props.size)] = this.props.size,
|
|
65
|
+
_a), this.props.className), role: "presentation" },
|
|
62
66
|
React.createElement("colgroup", { ref: function (e) { _this.props.columnResize.colGroupFooter = e; }, role: "presentation" }, this.props.cols),
|
|
63
|
-
React.createElement("tfoot", { role: "presentation" }, this.props.row)))));
|
|
67
|
+
React.createElement("tfoot", { className: "k-table-tfoot", role: "presentation" }, this.props.row)))));
|
|
64
68
|
};
|
|
65
69
|
return Footer;
|
|
66
70
|
}(React.Component));
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.FooterRow = void 0;
|
|
30
30
|
var React = require("react");
|
|
31
31
|
var utils_1 = require("./../utils");
|
|
32
|
+
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
32
33
|
/**
|
|
33
34
|
* @hidden
|
|
34
35
|
*/
|
|
@@ -45,7 +46,7 @@ var FooterRow = /** @class */ (function (_super) {
|
|
|
45
46
|
? { left: column.left, right: column.right }
|
|
46
47
|
: { left: column.right, right: column.left }
|
|
47
48
|
: {},
|
|
48
|
-
className: column.locked && column.left !== undefined ? 'k-grid-footer-sticky' : ''
|
|
49
|
+
className: (0, kendo_react_common_1.classNames)('k-table-td', column.locked && column.left !== undefined ? 'k-grid-footer-sticky' : '')
|
|
49
50
|
};
|
|
50
51
|
var cellProps = __assign({ field: column.field, ariaColumnIndex: column.ariaColumnIndex }, tdProps);
|
|
51
52
|
return (column.footerCell && React.createElement(column.footerCell, __assign({}, cellProps, { key: index }))) || (React.createElement("td", __assign({ key: index }, tdProps, { role: 'columnfooter', "aria-selected": false, "aria-colindex": column.ariaColumnIndex })));
|
|
@@ -60,7 +61,7 @@ var FooterRow = /** @class */ (function (_super) {
|
|
|
60
61
|
configurable: true
|
|
61
62
|
});
|
|
62
63
|
FooterRow.prototype.render = function () {
|
|
63
|
-
return React.createElement("tr", { role: "row", "aria-rowindex": this.props.ariaRowIndex }, (0, utils_1.footerColumns)(this.props.columns).map(this.renderCell));
|
|
64
|
+
return React.createElement("tr", { className: 'k-table-row', role: "row", "aria-rowindex": this.props.ariaRowIndex }, (0, utils_1.footerColumns)(this.props.columns).map(this.renderCell));
|
|
64
65
|
};
|
|
65
66
|
return FooterRow;
|
|
66
67
|
}(React.Component));
|
|
@@ -6,7 +6,7 @@ import { GridFilterOperators } from '../interfaces/GridFilterOperators';
|
|
|
6
6
|
/**
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
|
-
export declare const FILTER_ROW_CLASS = "k-filter-row";
|
|
9
|
+
export declare const FILTER_ROW_CLASS = "k-table-row k-filter-row";
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
@@ -19,6 +19,7 @@ export interface FilterRowProps {
|
|
|
19
19
|
cellRender?: (defaultRendering: React.ReactElement<any> | null, props: GridFilterCellProps) => React.ReactElement<any> | null;
|
|
20
20
|
isRtl?: boolean;
|
|
21
21
|
ariaRowIndex?: number;
|
|
22
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
25
|
*
|
|
@@ -33,10 +33,11 @@ var GridFilterCell_1 = require("../cells/GridFilterCell");
|
|
|
33
33
|
var filterCommon_1 = require("../filterCommon");
|
|
34
34
|
var kendo_react_data_tools_1 = require("@progress/kendo-react-data-tools");
|
|
35
35
|
var messages_1 = require("../messages");
|
|
36
|
+
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
36
37
|
/**
|
|
37
38
|
* @hidden
|
|
38
39
|
*/
|
|
39
|
-
exports.FILTER_ROW_CLASS = 'k-filter-row';
|
|
40
|
+
exports.FILTER_ROW_CLASS = 'k-table-row k-filter-row';
|
|
40
41
|
/**
|
|
41
42
|
*
|
|
42
43
|
* @hidden
|
|
@@ -121,9 +122,9 @@ var FilterRow = /** @class */ (function (_super) {
|
|
|
121
122
|
? { left: column.left, right: column.right }
|
|
122
123
|
: { left: column.right, right: column.left }
|
|
123
124
|
: {};
|
|
124
|
-
return (React.createElement(kendo_react_data_tools_1.HeaderThElement, __assign({ key: key, columnId: kendo_react_data_tools_1.tableKeyboardNavigationTools.getFilterColumnId(column.id), navigatable: column.navigatable, style: style, className: _this.headerCellClassName(column.field, column.locked) || undefined, role: "columnheader" }, ariaAttrs), filterCellProps && (column.filterCell ?
|
|
125
|
+
return (React.createElement(kendo_react_data_tools_1.HeaderThElement, __assign({ key: key, columnId: kendo_react_data_tools_1.tableKeyboardNavigationTools.getFilterColumnId(column.id), navigatable: column.navigatable, style: style, className: (0, kendo_react_common_1.classNames)('k-header', _this.headerCellClassName(column.field, column.locked) || undefined), role: "columnheader" }, ariaAttrs), filterCellProps && (column.filterCell ?
|
|
125
126
|
React.createElement(column.filterCell, __assign({}, filterCellProps)) :
|
|
126
|
-
React.createElement(GridFilterCell_1.GridFilterCell, __assign({}, filterCellProps)))));
|
|
127
|
+
React.createElement(GridFilterCell_1.GridFilterCell, __assign({ size: _this.props.size }, filterCellProps)))));
|
|
127
128
|
});
|
|
128
129
|
return React.createElement("tr", { className: exports.FILTER_ROW_CLASS, "aria-rowindex": this.props.ariaRowIndex, role: "row" }, filterCells);
|
|
129
130
|
};
|
|
@@ -91,17 +91,20 @@ var Header = /** @class */ (function (_super) {
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
Header.prototype.render = function () {
|
|
94
|
+
var _a;
|
|
94
95
|
var _this = this;
|
|
95
96
|
if (!this.props.staticHeaders) {
|
|
96
|
-
return (React.createElement("thead", __assign({ role: "presentation", className: (0, kendo_react_common_1.classNames)('k-
|
|
97
|
+
return (React.createElement("thead", __assign({ role: "presentation", className: (0, kendo_react_common_1.classNames)('k-table-thead', { 'k-grid-draggable-header': this.props.draggable }) }, kendo_react_data_tools_1.tableKeyboardNavigationHeaderAttributes),
|
|
97
98
|
this.props.headerRow,
|
|
98
99
|
this.props.filterRow));
|
|
99
100
|
}
|
|
100
101
|
return (React.createElement("div", { ref: this.props.elemRef, className: (0, kendo_react_common_1.classNames)('k-grid-header', { 'k-grid-draggable-header': this.props.draggable }), role: "presentation" },
|
|
101
102
|
React.createElement("div", { ref: function (div) { _this.headerWrap = div; }, className: "k-grid-header-wrap", style: this.scrollbarWidth ? {} : { borderWidth: 0 }, onScroll: this.onScroll, role: "presentation" },
|
|
102
|
-
React.createElement("table", { ref: function (table) { _this.table = table; },
|
|
103
|
+
React.createElement("table", { ref: function (table) { _this.table = table; }, className: (0, kendo_react_common_1.classNames)('k-table k-grid-header-table', (_a = {},
|
|
104
|
+
_a["k-table-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[this.props.size] || this.props.size)] = this.props.size,
|
|
105
|
+
_a), this.props.className), role: "presentation" },
|
|
103
106
|
React.createElement("colgroup", { ref: function (e) { _this.props.columnResize.colGroupHeader = e; } }, this.props.cols),
|
|
104
|
-
React.createElement("thead", __assign({ role: "rowgroup" }, kendo_react_data_tools_1.tableKeyboardNavigationHeaderAttributes),
|
|
107
|
+
React.createElement("thead", __assign({ className: 'k-table-thead', role: "rowgroup" }, kendo_react_data_tools_1.tableKeyboardNavigationHeaderAttributes),
|
|
105
108
|
this.props.headerRow,
|
|
106
109
|
this.props.filterRow)))));
|
|
107
110
|
};
|
|
@@ -96,36 +96,27 @@ var HeaderRow = /** @class */ (function (_super) {
|
|
|
96
96
|
} : {
|
|
97
97
|
'role': 'presentation'
|
|
98
98
|
};
|
|
99
|
-
var columnMenuWrapperProps = {
|
|
100
|
-
column: {
|
|
101
|
-
field: column.field,
|
|
102
|
-
filter: column.filter
|
|
103
|
-
},
|
|
104
|
-
sortable: sortable && _this.props.sortable,
|
|
105
|
-
sort: _this.props.sort,
|
|
106
|
-
onSortChange: _this.props.sortChange,
|
|
107
|
-
filter: _this.props.filter,
|
|
108
|
-
filterable: _this.props.filterable && column.filterable,
|
|
109
|
-
filterOperators: _this.props.filterOperators,
|
|
110
|
-
onFilterChange: _this.props.filterChange,
|
|
111
|
-
group: _this.props.group,
|
|
112
|
-
groupable: _this.props.groupable,
|
|
113
|
-
onGroupChange: _this.props.groupChange,
|
|
114
|
-
columnMenu: columnMenu
|
|
115
|
-
};
|
|
116
|
-
var headerCellProps = {
|
|
117
|
-
field: column.field,
|
|
118
|
-
onClick: sortable && (function (e) { return _this.cellClick(e, column); }) || undefined,
|
|
119
|
-
selectionChange: _this.props.selectionChange,
|
|
120
|
-
title: column.title,
|
|
121
|
-
selectionValue: column.headerSelectionValue,
|
|
122
|
-
render: _this.props.cellRender,
|
|
123
|
-
children: _this.sortIcon(sortIndex),
|
|
124
|
-
columnMenuWrapperProps: columnMenuWrapperProps
|
|
125
|
-
};
|
|
126
99
|
var key = (column.declarationIndex >= 0) ? ++_this.index : --_this.serviceIndex;
|
|
100
|
+
var HeaderCell = column.headerCell ? column.headerCell : GridHeaderCell_1.GridHeaderCell;
|
|
101
|
+
var headerCell = (React.createElement(HeaderCell, { field: column.field, onClick: sortable && (function (e) { return _this.cellClick(e, column); }) || undefined, selectionChange: _this.props.selectionChange, title: column.title, selectionValue: column.headerSelectionValue, render: _this.props.cellRender, children: _this.sortIcon(sortIndex), columnMenuWrapperProps: {
|
|
102
|
+
column: {
|
|
103
|
+
field: column.field,
|
|
104
|
+
filter: column.filter
|
|
105
|
+
},
|
|
106
|
+
sortable: sortable && _this.props.sortable,
|
|
107
|
+
sort: _this.props.sort,
|
|
108
|
+
onSortChange: _this.props.sortChange,
|
|
109
|
+
filter: _this.props.filter,
|
|
110
|
+
filterable: _this.props.filterable && column.filterable,
|
|
111
|
+
filterOperators: _this.props.filterOperators,
|
|
112
|
+
onFilterChange: _this.props.filterChange,
|
|
113
|
+
group: _this.props.group,
|
|
114
|
+
groupable: _this.props.groupable,
|
|
115
|
+
onGroupChange: _this.props.groupChange,
|
|
116
|
+
columnMenu: columnMenu
|
|
117
|
+
} }));
|
|
127
118
|
return (React.createElement(kendo_react_data_tools_1.HeaderThElement, __assign({}, ariaAttrs, { key: key, colSpan: column.colSpan, rowSpan: column.rowSpan, className: className, style: style, columnId: column.id, navigatable: column.navigatable, onKeyDown: sortable && (function (e) { return _this.cellKeyDown(e, column); }) || undefined, role: "columnheader" }),
|
|
128
|
-
|
|
119
|
+
headerCell,
|
|
129
120
|
_this.props.columnResize && _this.props.columnResize.resizable && column.resizable &&
|
|
130
121
|
React.createElement(ColumnResizer_1.ColumnResizer, { key: 2, resize: function (e, element, end) {
|
|
131
122
|
return _this.props.columnResize &&
|
|
@@ -158,8 +149,11 @@ var HeaderRow = /** @class */ (function (_super) {
|
|
|
158
149
|
return null;
|
|
159
150
|
}
|
|
160
151
|
return sortIndex >= 0 && [
|
|
161
|
-
React.createElement("span", { key: 1, className: 'k-
|
|
162
|
-
|
|
152
|
+
React.createElement("span", { key: 1, className: 'k-sort-icon' },
|
|
153
|
+
React.createElement("span", { className: 'k-icon k-i-sort-' + this.props.sort[sortIndex].dir + '-small' })),
|
|
154
|
+
this.props.sort.length > 1 &&
|
|
155
|
+
React.createElement("span", { key: 2, className: 'k-sort-icon' },
|
|
156
|
+
React.createElement("span", { className: "k-sort-order" }, sortIndex + 1))
|
|
163
157
|
];
|
|
164
158
|
};
|
|
165
159
|
HeaderRow.prototype.render = function () {
|
|
@@ -167,7 +161,7 @@ var HeaderRow = /** @class */ (function (_super) {
|
|
|
167
161
|
this.serviceIndex = 0;
|
|
168
162
|
this.index = -1;
|
|
169
163
|
return this.props.columnsMap.map(function (rowIndexes, i) {
|
|
170
|
-
return _this.props.pressHandler && (React.createElement(ColumnDraggable_1.ColumnDraggable, { key: i, pressHandler: _this.props.pressHandler, dragHandler: _this.props.dragHandler, releaseHandler: _this.props.releaseHandler, ariaRowIndex: i + 1, dragClue: _this.props.dragClue, headerRef: _this.props.headerRef, containerRef: _this.props.containerRef }, _this.cells(rowIndexes))) || React.createElement("tr", { role: "row", "aria-rowindex": i + 1 }, _this.cells(rowIndexes));
|
|
164
|
+
return _this.props.pressHandler && (React.createElement(ColumnDraggable_1.ColumnDraggable, { key: i, pressHandler: _this.props.pressHandler, dragHandler: _this.props.dragHandler, releaseHandler: _this.props.releaseHandler, ariaRowIndex: i + 1, dragClue: _this.props.dragClue, headerRef: _this.props.headerRef, containerRef: _this.props.containerRef }, _this.cells(rowIndexes))) || React.createElement("tr", { className: 'k-table-row', role: "row", "aria-rowindex": i + 1 }, _this.cells(rowIndexes));
|
|
171
165
|
});
|
|
172
166
|
};
|
|
173
167
|
return HeaderRow;
|
|
@@ -74,7 +74,7 @@ export interface GridColumnProps extends Omit<ColumnBaseProps, 'cell'> {
|
|
|
74
74
|
* ```jsx-no-run
|
|
75
75
|
* <GridColumn
|
|
76
76
|
* footerCell={props => (
|
|
77
|
-
* <td colSpan={props.colSpan} style={props.style}>Sum: 50</td>
|
|
77
|
+
* <td className='k-table-td' colSpan={props.colSpan} style={props.style} role={'gridcell'}>Sum: 50</td>
|
|
78
78
|
* )}
|
|
79
79
|
* />
|
|
80
80
|
* ```
|
|
@@ -50,4 +50,16 @@ export interface GridFilterCellProps {
|
|
|
50
50
|
* Accessible label of the filter.
|
|
51
51
|
*/
|
|
52
52
|
ariaLabel?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Configures the `size` of the cell.
|
|
55
|
+
*
|
|
56
|
+
* The available options are:
|
|
57
|
+
* - small
|
|
58
|
+
* - medium
|
|
59
|
+
* - large
|
|
60
|
+
* - null—Does not set a size `className`.
|
|
61
|
+
*
|
|
62
|
+
* @default `medium`
|
|
63
|
+
*/
|
|
64
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
53
65
|
}
|
|
@@ -291,4 +291,14 @@ export interface GridProps extends KendoReactComponentBaseProps {
|
|
|
291
291
|
* Defaults to `false`.
|
|
292
292
|
*/
|
|
293
293
|
lockGroups?: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* Configures the `size` of the Grid.
|
|
296
|
+
*
|
|
297
|
+
* The available options are:
|
|
298
|
+
* - small
|
|
299
|
+
* - medium
|
|
300
|
+
*
|
|
301
|
+
* @default `medium`
|
|
302
|
+
*/
|
|
303
|
+
size?: 'small' | 'medium';
|
|
294
304
|
}
|
|
@@ -7,4 +7,20 @@ export interface GridToolbarProps {
|
|
|
7
7
|
* The React elements that will be rendered inside the toolbar of the Grid.
|
|
8
8
|
*/
|
|
9
9
|
children?: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the name of the CSS class which is set to the GridToolbar.
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Configures the `size` of the Toolbar.
|
|
16
|
+
*
|
|
17
|
+
* The available options are:
|
|
18
|
+
* - small
|
|
19
|
+
* - medium
|
|
20
|
+
* - large
|
|
21
|
+
* - null—Does not set a size `className`.
|
|
22
|
+
*
|
|
23
|
+
* @default `medium`
|
|
24
|
+
*/
|
|
25
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
10
26
|
}
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-grid',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1673259545,
|
|
12
12
|
version: '',
|
|
13
13
|
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'
|
|
14
14
|
};
|
package/dist/npm/rows/GridRow.js
CHANGED
|
@@ -43,12 +43,12 @@ var GridRow = /** @class */ (function (_super) {
|
|
|
43
43
|
*/
|
|
44
44
|
GridRow.prototype.render = function () {
|
|
45
45
|
var _a;
|
|
46
|
-
var className = (0, kendo_react_common_1.classNames)({
|
|
46
|
+
var className = (0, kendo_react_common_1.classNames)('k-table-row', {
|
|
47
47
|
'k-grouping-row': this.props.rowType === 'groupHeader',
|
|
48
48
|
'k-group-footer': this.props.rowType === 'groupFooter',
|
|
49
49
|
'k-master-row': this.props.rowType !== 'groupHeader' &&
|
|
50
50
|
this.props.rowType !== 'groupFooter',
|
|
51
|
-
'k-alt': this.props.rowType !== 'groupHeader' &&
|
|
51
|
+
'k-table-alt-row k-alt': this.props.rowType !== 'groupHeader' &&
|
|
52
52
|
this.props.rowType !== 'groupFooter' &&
|
|
53
53
|
this.props.isAltRow,
|
|
54
54
|
'k-selected': this.props.isSelected,
|
|
@@ -50,3 +50,11 @@ export declare const footerColumns: (columns: ExtendedColumnProps[]) => Extended
|
|
|
50
50
|
* @hidden
|
|
51
51
|
*/
|
|
52
52
|
export declare const sanitizeColumns: (columns: ExtendedColumnProps[]) => GridColumnProps[];
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
export declare const firefox: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @hidden
|
|
59
|
+
*/
|
|
60
|
+
export declare const firefoxMaxHeight = 17895697;
|
package/dist/npm/utils/index.js
CHANGED
|
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
return t;
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.sanitizeColumns = exports.footerColumns = exports.autoGenerateColumns = exports.readColumns = exports.checkPropCompatibility = exports.flatData = exports.getNestedValue = void 0;
|
|
25
|
+
exports.firefoxMaxHeight = exports.firefox = exports.sanitizeColumns = exports.footerColumns = exports.autoGenerateColumns = exports.readColumns = exports.checkPropCompatibility = exports.flatData = exports.getNestedValue = void 0;
|
|
26
26
|
/**
|
|
27
27
|
* @hidden
|
|
28
28
|
*/
|
|
@@ -237,3 +237,12 @@ var sanitizeColumns = function (columns) {
|
|
|
237
237
|
});
|
|
238
238
|
};
|
|
239
239
|
exports.sanitizeColumns = sanitizeColumns;
|
|
240
|
+
/**
|
|
241
|
+
* @hidden
|
|
242
|
+
*/
|
|
243
|
+
exports.firefox = typeof window !== 'undefined' &&
|
|
244
|
+
/Firefox/.test(window.navigator.userAgent);
|
|
245
|
+
/**
|
|
246
|
+
* @hidden
|
|
247
|
+
*/
|
|
248
|
+
exports.firefoxMaxHeight = 17895697;
|