@progress/kendo-react-grid 5.10.0-dev.202301051045 → 5.10.0-dev.202301092204

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.
Files changed (57) hide show
  1. package/dist/cdn/js/kendo-react-grid.js +1 -1
  2. package/dist/es/Grid.d.ts +1 -0
  3. package/dist/es/Grid.js +39 -27
  4. package/dist/es/GridToolbar.js +5 -1
  5. package/dist/es/cells/GridCell.js +1 -1
  6. package/dist/es/cells/GridDetailCell.js +1 -1
  7. package/dist/es/cells/GridDetailHierarchyCell.js +1 -1
  8. package/dist/es/cells/GridEditCell.js +1 -1
  9. package/dist/es/cells/GridFilterCell.js +8 -8
  10. package/dist/es/cells/GridGroupCell.js +3 -3
  11. package/dist/es/cells/GridHierarchyCell.js +3 -2
  12. package/dist/es/columnMenu/GridColumnMenuWrapper.d.ts +2 -2
  13. package/dist/es/columnMenu/GridColumnMenuWrapper.js +1 -1
  14. package/dist/es/drag/ColumnDraggable.js +1 -1
  15. package/dist/es/footer/Footer.d.ts +2 -0
  16. package/dist/es/footer/Footer.js +7 -3
  17. package/dist/es/footer/FooterRow.js +3 -2
  18. package/dist/es/header/FilterRow.d.ts +2 -1
  19. package/dist/es/header/FilterRow.js +4 -3
  20. package/dist/es/header/Header.d.ts +2 -0
  21. package/dist/es/header/Header.js +7 -4
  22. package/dist/es/header/HeaderRow.js +6 -3
  23. package/dist/es/interfaces/GridColumnProps.d.ts +1 -1
  24. package/dist/es/interfaces/GridFilterCellProps.d.ts +12 -0
  25. package/dist/es/interfaces/GridProps.d.ts +10 -0
  26. package/dist/es/interfaces/GridToolbarProps.d.ts +16 -0
  27. package/dist/es/package-metadata.js +1 -1
  28. package/dist/es/rows/GridRow.js +2 -2
  29. package/dist/npm/Grid.d.ts +1 -0
  30. package/dist/npm/Grid.js +38 -26
  31. package/dist/npm/GridToolbar.js +5 -1
  32. package/dist/npm/cells/GridCell.js +1 -1
  33. package/dist/npm/cells/GridDetailCell.js +1 -1
  34. package/dist/npm/cells/GridDetailHierarchyCell.js +1 -1
  35. package/dist/npm/cells/GridEditCell.js +1 -1
  36. package/dist/npm/cells/GridFilterCell.js +7 -7
  37. package/dist/npm/cells/GridGroupCell.js +3 -3
  38. package/dist/npm/cells/GridHierarchyCell.js +3 -2
  39. package/dist/npm/columnMenu/GridColumnMenuWrapper.d.ts +2 -2
  40. package/dist/npm/columnMenu/GridColumnMenuWrapper.js +1 -1
  41. package/dist/npm/drag/ColumnDraggable.js +1 -1
  42. package/dist/npm/footer/Footer.d.ts +2 -0
  43. package/dist/npm/footer/Footer.js +7 -3
  44. package/dist/npm/footer/FooterRow.js +3 -2
  45. package/dist/npm/header/FilterRow.d.ts +2 -1
  46. package/dist/npm/header/FilterRow.js +4 -3
  47. package/dist/npm/header/Header.d.ts +2 -0
  48. package/dist/npm/header/Header.js +6 -3
  49. package/dist/npm/header/HeaderRow.js +6 -3
  50. package/dist/npm/interfaces/GridColumnProps.d.ts +1 -1
  51. package/dist/npm/interfaces/GridFilterCellProps.d.ts +12 -0
  52. package/dist/npm/interfaces/GridProps.d.ts +10 -0
  53. package/dist/npm/interfaces/GridToolbarProps.d.ts +16 -0
  54. package/dist/npm/package-metadata.js +1 -1
  55. package/dist/npm/rows/GridRow.js +2 -2
  56. package/dist/systemjs/kendo-react-grid.js +1 -1
  57. package/package.json +18 -18
package/dist/es/Grid.d.ts CHANGED
@@ -100,6 +100,7 @@ export declare class Grid extends React.Component<GridProps, {}> {
100
100
  onColumnReorder: PropTypes.Requireable<(...args: any[]) => any>;
101
101
  dataItemKey: PropTypes.Requireable<string>;
102
102
  navigatable: PropTypes.Requireable<boolean>;
103
+ size: PropTypes.Requireable<string>;
103
104
  };
104
105
  /** @hidden */
105
106
  static contextType: React.Context<TableKeyboardNavigationContextType | undefined>;
package/dist/es/Grid.js CHANGED
@@ -35,7 +35,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
35
35
  };
36
36
  import * as React from 'react';
37
37
  import * as PropTypes from 'prop-types';
38
- import { dispatchEvent, classNames, getter, guid, setScrollbarWidth, canUseDOM, memoizeOne } from '@progress/kendo-react-common';
38
+ import { dispatchEvent, classNames, getter, guid, setScrollbarWidth, canUseDOM, memoizeOne, kendoThemeMaps } from '@progress/kendo-react-common';
39
39
  import { tableColumnsVirtualization, Pager, mapColumns, isRtl, tableKeyboardNavigation, TableKeyboardNavigationContext, tableKeyboardNavigationScopeAttributes, tableKeyboardNavigationTools as navigationTools, tableKeyboardNavigationBodyAttributes, getSelectionOptions, TableSelection, DropClue, DragClue } from '@progress/kendo-react-data-tools';
40
40
  import { GridSelectionCell } from './cells/GridSelectionCell';
41
41
  import { GridHierarchyCell } from './cells/GridHierarchyCell';
@@ -421,6 +421,7 @@ var Grid = /** @class */ (function (_super) {
421
421
  * @hidden
422
422
  */
423
423
  Grid.prototype.render = function () {
424
+ var _a, _b, _c;
424
425
  var _this = this;
425
426
  var total = this.props.total || 0;
426
427
  var idPrefix = navigationTools.getIdPrefix(this.navigationStateRef);
@@ -470,17 +471,17 @@ var Grid = /** @class */ (function (_super) {
470
471
  child.type.displayName === 'KendoReactGridNoRecords'; });
471
472
  var leafColumns = this._columns.filter(function (c) { return c.children.length === 0; });
472
473
  var groupingPanel = groupable && (React.createElement(GroupPanel, { group: this.props.group || [], groupChange: this.groupChange, pressHandler: this.dragLogic.pressHandler, dragHandler: this.dragLogic.dragHandler, releaseHandler: this.dragLogic.releaseHandler, refCallback: this.dragLogic.refGroupPanelDiv, resolveTitle: this.resolveTitle }));
473
- var _a = this.props, sort = _a.sort, sortable = _a.sortable, group = _a.group, filter = _a.filter, filterable = _a.filterable, _b = _a.filterOperators, filterOperators = _b === void 0 ? operators : _b, headerCellRender = _a.headerCellRender, columnMenu = _a.columnMenu;
474
- var header = (React.createElement(Header, { columnResize: this.columnResize, staticHeaders: this.props.scrollable !== 'none', scrollableDataElement: function () { return _this.vs.container; }, draggable: this.props.reorderable || groupable, ref: this.headerRef, elemRef: this.headerElementRef, headerRow: this.getHeaderRow(sort, sortable, group, groupable, filter, filterable, filterOperators, headerCellRender, columnMenu, this._columns, this._columnsMap), filterRow: this.props.filterable && React.createElement(FilterRow, { columns: this._columns, filter: this.props.filter, filterOperators: this.props.filterOperators || operators, filterChange: this.filterChange, sort: this.props.sort, cellRender: this.props.filterCellRender, isRtl: this.isRtl, ariaRowIndex: this._columnsMap.length + 1 }) || undefined, cols: leafColumns.map(function (column, index) { return (React.createElement("col", { key: index.toString(), width: column.width !== undefined ?
474
+ var _d = this.props, sort = _d.sort, sortable = _d.sortable, group = _d.group, filter = _d.filter, filterable = _d.filterable, _e = _d.filterOperators, filterOperators = _e === void 0 ? operators : _e, headerCellRender = _d.headerCellRender, columnMenu = _d.columnMenu;
475
+ var header = (React.createElement(Header, { size: this.props.size, columnResize: this.columnResize, staticHeaders: this.props.scrollable !== 'none', scrollableDataElement: function () { return _this.vs.container; }, draggable: this.props.reorderable || groupable, ref: this.headerRef, elemRef: this.headerElementRef, headerRow: this.getHeaderRow(sort, sortable, group, groupable, filter, filterable, filterOperators, headerCellRender, columnMenu, this._columns, this._columnsMap), filterRow: this.props.filterable && React.createElement(FilterRow, { size: this.props.size, columns: this._columns, filter: this.props.filter, filterOperators: this.props.filterOperators || operators, filterChange: this.filterChange, sort: this.props.sort, cellRender: this.props.filterCellRender, isRtl: this.isRtl, ariaRowIndex: this._columnsMap.length + 1 }) || undefined, cols: leafColumns.map(function (column, index) { return (React.createElement("col", { key: index.toString(), width: column.width !== undefined ?
475
476
  Math.floor(parseFloat(column.width.toString())) + 'px' : undefined })); }) }));
476
477
  var scrollLeft = this.vs && this.vs.container && this.vs.container.scrollLeft || 0;
477
478
  var tableWidth = parseFloat(((this.props.style || {}).width || '').toString());
478
- var _c = tableColumnsVirtualization({
479
+ var _f = tableColumnsVirtualization({
479
480
  enabled: this.props.columnVirtualization,
480
481
  columns: leafColumns,
481
482
  tableViewPortWidth: tableWidth,
482
483
  scrollLeft: scrollLeft
483
- }), colSpans = _c.colSpans, isColHidden = _c.hiddenColumns;
484
+ }), colSpans = _f.colSpans, isColHidden = _f.hiddenColumns;
484
485
  var dataRow = function (item, rowId, rowDataIndex) {
485
486
  var isInEdit = false;
486
487
  var selectedValue = _this.props.selectedField ? getNestedValue(_this.props.selectedField, item.dataItem) : undefined;
@@ -559,7 +560,7 @@ var Grid = /** @class */ (function (_super) {
559
560
  - (_this.props.group ? _this.props.group.length : 0)) || 1;
560
561
  detailRowCount_1++;
561
562
  currentAriaRowIndex = absoluteIndex + rowIndexStart + detailRowCount_1;
562
- body.push((React.createElement("tr", { key: detailRowId, className: isAlt ? 'k-detail-row k-alt' : 'k-detail-row', style: { visibility: hidden(rowIndex) ? 'hidden' : '' }, role: "row", "aria-rowindex": currentAriaRowIndex },
563
+ body.push((React.createElement("tr", { key: detailRowId, className: classNames('k-table-row', isAlt ? 'k-detail-row k-table-alt-row k-alt' : 'k-detail-row'), style: { visibility: hidden(rowIndex) ? 'hidden' : '' }, role: "row", "aria-rowindex": currentAriaRowIndex },
563
564
  _this.props.group && _this.props.group.map(function (gr, idx) {
564
565
  return (React.createElement(GridGroupCell, { id: '', dataIndex: item.dataIndex, field: gr.field, dataItem: item.dataItem, key: idx, style: {}, ariaColumnIndex: 1 + idx, isSelected: false, locked: _this.props.lockGroups }));
565
566
  }),
@@ -570,15 +571,15 @@ var Grid = /** @class */ (function (_super) {
570
571
  });
571
572
  }
572
573
  else {
573
- body.push((React.createElement("tr", { key: "no-records", className: "k-grid-norecords", "aria-rowindex": rowIndexStart },
574
- React.createElement("td", { colSpan: leafColumns.length }, noRecords.length ? noRecords : React.createElement(GridNoRecords, null)))));
574
+ body.push((React.createElement("tr", { key: "no-records", className: "k-table-row k-grid-norecords", role: 'row', "aria-rowindex": rowIndexStart },
575
+ React.createElement("td", { className: 'k-table-td', colSpan: leafColumns.length, role: 'gridcell' }, noRecords.length ? noRecords : React.createElement(GridNoRecords, null)))));
575
576
  }
576
- var pagerProps = __assign({ className: 'k-grid-pager', onPageChange: this.pagerPageChange, total: total, skip: this.vs.propsSkip || 0, take: (this.props.take !== undefined ? this.props.take : this.props.pageSize) || 10, messagesMap: pagerMessagesMap }, (normalize(this.props.pageable || {})));
577
- var pager = this.props.pager ? React.createElement(this.props.pager, __assign({}, pagerProps)) : React.createElement(Pager, __assign({}, pagerProps));
577
+ var pagerProps = __assign({ size: this.props.size, onPageChange: this.pagerPageChange, total: total, skip: this.vs.propsSkip || 0, take: (this.props.take !== undefined ? this.props.take : this.props.pageSize) || 10, messagesMap: pagerMessagesMap }, (normalize(this.props.pageable || {})));
578
+ var pager = this.props.pager ? React.createElement(this.props.pager, __assign({}, pagerProps)) : React.createElement(Pager, __assign({ className: "k-grid-pager" }, pagerProps));
578
579
  var sorted = function (field) {
579
580
  return _this.props.sort && _this.props.sort.filter(function (descriptor) { return descriptor.field === field; }).length > 0;
580
581
  };
581
- var footer = this._columns.some(function (c) { return Boolean(c.footerCell); }) ? (React.createElement(Footer, { columnResize: this.columnResize, staticHeaders: this.props.scrollable !== 'none', ref: function (f) { return _this._footer = f; }, row: React.createElement(FooterRow, { columns: this._columns, isRtl: this.isRtl, ariaRowIndex: currentAriaRowIndex + 1 }), cols: leafColumns.map(function (column, index) { return (React.createElement("col", { key: index.toString(), width: column.width !== undefined ?
582
+ var footer = this._columns.some(function (c) { return Boolean(c.footerCell); }) ? (React.createElement(Footer, { size: this.props.size, columnResize: this.columnResize, staticHeaders: this.props.scrollable !== 'none', ref: function (f) { return _this._footer = f; }, row: React.createElement(FooterRow, { columns: this._columns, isRtl: this.isRtl, ariaRowIndex: currentAriaRowIndex + 1 }), cols: leafColumns.map(function (column, index) { return (React.createElement("col", { key: index.toString(), width: column.width !== undefined ?
582
583
  Math.floor(parseFloat(column.width.toString())) + 'px' : undefined })); }) })) : null;
583
584
  var colGroups = (React.createElement("colgroup", { ref: function (c) {
584
585
  _this.columnResize.colGroupMain = c;
@@ -588,7 +589,11 @@ var Grid = /** @class */ (function (_super) {
588
589
  var tableDisplay = this.props.columnVirtualization ? 'block' : 'table';
589
590
  if (this.props.scrollable === 'none') {
590
591
  return (React.createElement(TableKeyboardNavigationContext.Provider, { value: this.contextStateRef.current },
591
- React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: classNames('k-widget k-grid', this.props.className), ref: function (el) { _this._element = el; }, "aria-label": this.props.ariaLabel, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
592
+ React.createElement("div", __assign({ id: this.props.id, style: this.props.style, className: classNames('k-grid', (_a = {
593
+ 'k-grid-md': !this.props.size
594
+ },
595
+ _a["k-grid-".concat(kendoThemeMaps.sizeMap[this.props.size] || this.props.size)] = this.props.size,
596
+ _a), this.props.className), ref: function (el) { _this._element = el; }, "aria-label": this.props.ariaLabel, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
592
597
  toolbar,
593
598
  groupingPanel,
594
599
  React.createElement(TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
@@ -599,7 +604,7 @@ var Grid = /** @class */ (function (_super) {
599
604
  React.createElement("table", { style: { userSelect: tableUserSelect, display: tableDisplay } },
600
605
  colGroups,
601
606
  header,
602
- React.createElement("tbody", __assign({}, tableKeyboardNavigationBodyAttributes), body),
607
+ React.createElement("tbody", __assign({ role: 'rowgroup', className: 'k-table-tbody' }, tableKeyboardNavigationBodyAttributes), body),
603
608
  footer)),
604
609
  this.props.pageable && pager,
605
610
  enableDragClues && (React.createElement(React.Fragment, null,
@@ -614,9 +619,12 @@ var Grid = /** @class */ (function (_super) {
614
619
  }
615
620
  }
616
621
  return (React.createElement(TableKeyboardNavigationContext.Provider, { value: this.contextStateRef.current },
617
- React.createElement("div", __assign({ id: this.props.id, style: wrapperStyle, className: classNames('k-widget k-grid', {
618
- 'k-grid-virtual': this.props.scrollable === 'virtual'
619
- }, this.props.className), ref: function (el) {
622
+ React.createElement("div", __assign({ id: this.props.id, style: wrapperStyle, className: classNames('k-grid', (_b = {
623
+ 'k-grid-md': !this.props.size
624
+ },
625
+ _b["k-grid-".concat(kendoThemeMaps.sizeMap[this.props.size] || this.props.size)] = this.props.size,
626
+ _b['k-grid-virtual'] = this.props.scrollable === 'virtual',
627
+ _b), this.props.className), ref: function (el) {
620
628
  _this._element = el;
621
629
  _this.resetTableWidth();
622
630
  }, role: "grid", "aria-colcount": leafColumns.length, "aria-rowcount": total, "aria-label": this.props.ariaLabel, onKeyDown: this.onKeyDown, onFocus: this.onFocus }, tableKeyboardNavigationScopeAttributes),
@@ -625,16 +633,19 @@ var Grid = /** @class */ (function (_super) {
625
633
  header,
626
634
  React.createElement("div", { className: "k-grid-container", role: "presentation" },
627
635
  React.createElement("div", { ref: this.vs.containerRef, className: "k-grid-content k-virtual-content", onScroll: this.scrollHandler, role: "presentation" },
628
- React.createElement("div", { className: 'k-grid-table-wrap', role: "presentation" },
629
- React.createElement(TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
630
- _this.vs.table = table;
631
- _this.tableElement = table;
632
- } },
633
- React.createElement("table", { className: 'k-grid-table', role: "presentation", style: { userSelect: tableUserSelect, display: tableDisplay } },
634
- colGroups,
635
- React.createElement("tbody", __assign({ ref: function (tableBody) {
636
- _this.vs.tableBody = tableBody;
637
- }, role: "presentation" }, tableKeyboardNavigationBodyAttributes), body)))),
636
+ React.createElement(TableSelection, { selectable: this.props.selectable, onRelease: this.selectionRelease, childRef: function (table) {
637
+ _this.vs.table = table;
638
+ _this.tableElement = table;
639
+ } },
640
+ React.createElement("table", { className: classNames('k-table k-grid-table', (_c = {
641
+ 'k-grid-md': !this.props.size
642
+ },
643
+ _c["k-table-".concat(kendoThemeMaps.sizeMap[this.props.size] || this.props.size)] = this.props.size,
644
+ _c), this.props.className), role: "presentation", style: { userSelect: tableUserSelect, display: tableDisplay } },
645
+ colGroups,
646
+ React.createElement("tbody", __assign({ className: 'k-table-tbody', ref: function (tableBody) {
647
+ _this.vs.tableBody = tableBody;
648
+ }, role: 'rowgroup' }, tableKeyboardNavigationBodyAttributes), body))),
638
649
  React.createElement("div", { className: "k-height-container", role: "presentation" },
639
650
  React.createElement("div", { style: this.props.scrollable === 'virtual' ?
640
651
  { 'height': (this.vs.containerHeight) + 'px' } : {} })))),
@@ -867,7 +878,8 @@ var Grid = /** @class */ (function (_super) {
867
878
  onColumnResize: PropTypes.func,
868
879
  onColumnReorder: PropTypes.func,
869
880
  dataItemKey: PropTypes.string,
870
- navigatable: PropTypes.bool
881
+ navigatable: PropTypes.bool,
882
+ size: PropTypes.oneOf(['small', 'medium'])
871
883
  };
872
884
  /** @hidden */
873
885
  Grid.contextType = TableKeyboardNavigationContext;
@@ -14,6 +14,7 @@ var __extends = (this && this.__extends) || (function () {
14
14
  };
15
15
  })();
16
16
  import * as React from 'react';
17
+ import { classNames, kendoThemeMaps } from '@progress/kendo-react-common';
17
18
  /**
18
19
  * Represents the GridToolbar component.
19
20
  *
@@ -61,7 +62,10 @@ var GridToolbar = /** @class */ (function (_super) {
61
62
  * @hidden
62
63
  */
63
64
  GridToolbar.prototype.render = function () {
64
- return (React.createElement("div", { className: "k-toolbar k-grid-toolbar" }, this.props.children));
65
+ var _a;
66
+ return (React.createElement("div", { className: classNames('k-toolbar k-grid-toolbar', (_a = {},
67
+ _a["k-toolbar-".concat(kendoThemeMaps.sizeMap[this.props.size] || this.props.size)] = this.props.size,
68
+ _a), this.props.className) }, this.props.children));
65
69
  };
66
70
  /**
67
71
  * @hidden
@@ -31,7 +31,7 @@ export var GridCell = function (props) {
31
31
  intl.format(props.format, data) :
32
32
  data.toString();
33
33
  }
34
- var className = classNames(props.className, { 'k-selected': props.isSelected });
34
+ var className = classNames('k-table-td', props.className, { 'k-selected': props.isSelected });
35
35
  defaultRendering = (React.createElement("td", __assign({ colSpan: props.colSpan, style: props.style, className: className, role: 'gridcell', "aria-colindex": props.ariaColumnIndex, "aria-selected": props.isSelected }, (_a = {}, _a[GRID_COL_INDEX_ATTRIBUTE] = props.columnIndex, _a), navigationAttributes), dataAsString));
36
36
  }
37
37
  return props.render ?
@@ -15,6 +15,6 @@ import * as React from 'react';
15
15
  export var GridDetailCell = function (props) {
16
16
  var colSpan = props.colSpan, ariaColIndex = props.ariaColIndex, dataItem = props.dataItem, dataIndex = props.dataIndex, id = props.id;
17
17
  var navigationAttributes = useTableKeyboardNavigation(id);
18
- return (React.createElement("td", __assign({ className: "k-detail-cell", colSpan: colSpan, "aria-colindex": ariaColIndex, role: 'gridcell' }, navigationAttributes),
18
+ return (React.createElement("td", __assign({ className: "k-table-td k-detail-cell", colSpan: colSpan, "aria-colindex": ariaColIndex, role: 'gridcell' }, navigationAttributes),
19
19
  React.createElement(props.detail, { dataItem: dataItem, dataIndex: dataIndex })));
20
20
  };
@@ -14,5 +14,5 @@ import * as React from 'react';
14
14
  /** @hidden */
15
15
  export var GridDetailHierarchyCell = function (props) {
16
16
  var navigationAttributes = useTableKeyboardNavigation(props.id);
17
- return (React.createElement("td", __assign({ className: "k-hierarchy-cell" }, navigationAttributes)));
17
+ return (React.createElement("td", __assign({ className: "k-table-td k-hierarchy-cell" }, navigationAttributes, { role: 'gridcell' })));
18
18
  };
@@ -23,7 +23,7 @@ export var GridEditCell = function (props) {
23
23
  var _a, _b, _c, _d, _e;
24
24
  var data = getNestedValue(props.field, props.dataItem);
25
25
  var defaultRendering = null;
26
- var editCellClasses = classNames('k-grid-edit-cell', (_a = {},
26
+ var editCellClasses = classNames('k-table-td', 'k-grid-edit-cell', (_a = {},
27
27
  _a['k-selected'] = props.isSelected,
28
28
  _a), props.className);
29
29
  var inputId = React.useMemo(function () { return guid(); }, []);
@@ -16,7 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  import * as React from 'react';
17
17
  import { Button } from '@progress/kendo-react-buttons';
18
18
  import { DropDownList } from '@progress/kendo-react-dropdowns';
19
- import { NumericTextBox, Input } from '@progress/kendo-react-inputs';
19
+ import { NumericTextBox, TextBox } from '@progress/kendo-react-inputs';
20
20
  import { DatePicker } from '@progress/kendo-react-dateinputs';
21
21
  import { messages, filterClearButton, filterChooseOperator } from '../messages';
22
22
  import { registerForLocalization, provideLocalizationService } from '@progress/kendo-react-intl';
@@ -31,7 +31,7 @@ var GridFilterCell = /** @class */ (function (_super) {
31
31
  return;
32
32
  }
33
33
  var value = _this.props.operators.find(function (item) { return item.operator === _this.props.operator; }) || null;
34
- return (React.createElement(DropDownList, { value: value, onChange: _this.operatorChange, className: "k-dropdown-operator", iconClassName: "k-i-filter k-icon", data: _this.props.operators, textField: "text", title: localization.toLanguageString(filterChooseOperator, messages[filterChooseOperator]), popupSettings: {
34
+ return (React.createElement(DropDownList, { size: _this.props.size, value: value, onChange: _this.operatorChange, className: "k-dropdown-operator", iconClassName: "k-i-filter k-icon", data: _this.props.operators, textField: "text", title: localization.toLanguageString(filterChooseOperator, messages[filterChooseOperator]), popupSettings: {
35
35
  width: ''
36
36
  } }));
37
37
  };
@@ -48,12 +48,12 @@ var GridFilterCell = /** @class */ (function (_super) {
48
48
  var _a;
49
49
  var localizationService = provideLocalizationService(this);
50
50
  var defaultRendering = (React.createElement("div", { className: "k-filtercell" },
51
- React.createElement("span", null,
51
+ React.createElement("div", { className: "k-filtercell-wrapper" },
52
52
  this.filterComponent(this.props.filterType, this.props.value, this.props.booleanValues),
53
53
  React.createElement("div", { className: "k-filtercell-operator" },
54
54
  this.renderOperatorEditor(localizationService),
55
55
  "\u00A0",
56
- React.createElement(Button, { icon: 'filter-clear', className: classNames((_a = {},
56
+ React.createElement(Button, { size: this.props.size, icon: 'filter-clear', className: classNames((_a = {},
57
57
  _a['k-clear-button-visible'] = Boolean(!(this.props.value === null || this.props.value === '') || this.props.operator),
58
58
  _a)), title: localizationService.toLanguageString(filterClearButton, messages[filterClearButton]), type: "button", onClick: this.clear, disabled: !(!(this.props.value === null || this.props.value === '') || this.props.operator) })))));
59
59
  if (this.props.render) {
@@ -78,13 +78,13 @@ var GridFilterCell = /** @class */ (function (_super) {
78
78
  var _this = this;
79
79
  switch (filterType) {
80
80
  case 'numeric':
81
- return (React.createElement(NumericTextBox, { value: value, onChange: function (e) { _this.inputChange(e.value, e.syntheticEvent); }, title: this.props.title, ariaLabel: this.props.ariaLabel }));
81
+ return (React.createElement(NumericTextBox, { size: this.props.size, value: value, onChange: function (e) { _this.inputChange(e.value, e.syntheticEvent); }, title: this.props.title, ariaLabel: this.props.ariaLabel }));
82
82
  case 'date':
83
- return (React.createElement(DatePicker, { value: value, onChange: function (e) { _this.inputChange(e.value, e.syntheticEvent); }, title: this.props.title, ariaLabel: this.props.ariaLabel }));
83
+ return (React.createElement(DatePicker, { size: this.props.size, value: value, onChange: function (e) { _this.inputChange(e.value, e.syntheticEvent); }, title: this.props.title, ariaLabel: this.props.ariaLabel }));
84
84
  case 'boolean':
85
85
  var noFilterSet_1 = function (filter) { return filter === null || filter === undefined; };
86
- return (React.createElement(DropDownList, { onChange: this.boolDropdownChange, value: booleanValues.find(function (item) { return item.operator === (noFilterSet_1(value) ? '' : value); }), data: booleanValues, textField: "text", title: this.props.title, ariaLabel: this.props.ariaLabel }));
87
- default: return (React.createElement(Input, { value: value || '', onChange: function (e) { _this.inputChange(e.target.value, e.syntheticEvent); }, title: this.props.title, "aria-label": this.props.ariaLabel }));
86
+ return (React.createElement(DropDownList, { size: this.props.size, onChange: this.boolDropdownChange, value: booleanValues.find(function (item) { return item.operator === (noFilterSet_1(value) ? '' : value); }), data: booleanValues, textField: "text", title: this.props.title, ariaLabel: this.props.ariaLabel }));
87
+ default: return (React.createElement(TextBox, { size: this.props.size, value: value || '', onChange: function (e) { _this.inputChange(e.target.value, e.syntheticEvent); }, title: this.props.title, "aria-label": this.props.ariaLabel }));
88
88
  }
89
89
  };
90
90
  return GridFilterCell;
@@ -41,7 +41,7 @@ export var GridGroupCell = function (props) {
41
41
  var renderCellCollapse = function (colspan, styles) {
42
42
  var baseMessage = expanded ? groupCollapse : groupExpand;
43
43
  var message = localization.toLanguageString(baseMessage, messages[baseMessage]);
44
- return (React.createElement("td", __assign({ style: __assign(__assign({}, props.style), styles), colSpan: colspan, key: 'g-colspan', role: 'gridcell', "aria-selected": false, "aria-expanded": expanded, "aria-colindex": ariaColumnIndex, onKeyDown: onKeyDownHandler }, navigationAttributes),
44
+ return (React.createElement("td", __assign({ className: 'k-table-td', style: __assign(__assign({}, props.style), styles), colSpan: colspan, key: 'g-colspan', role: 'gridcell', "aria-selected": false, "aria-expanded": expanded, "aria-colindex": ariaColumnIndex, onKeyDown: onKeyDownHandler }, navigationAttributes),
45
45
  React.createElement("p", { className: "k-reset" },
46
46
  React.createElement("a", { onClick: function (e) {
47
47
  e.preventDefault();
@@ -61,7 +61,7 @@ export var GridGroupCell = function (props) {
61
61
  };
62
62
  if (columnIndex === undefined || level === undefined || columnIndex < level ||
63
63
  columnsCount === undefined || rowType !== 'groupHeader' || dataItem[definedField] === undefined) {
64
- defaultRendering = (React.createElement("td", { style: props.style, key: 'g' + columnIndex, className: classNames('k-group-cell', { 'k-grid-content-sticky': props.locked }), role: "presentation" }));
64
+ defaultRendering = (React.createElement("td", { style: props.style, key: 'g' + columnIndex, className: classNames('k-table-td', 'k-group-cell', { 'k-grid-content-sticky': props.locked }), role: "gridcell" }));
65
65
  }
66
66
  else if (columnIndex <= level && !props.locked) {
67
67
  defaultRendering = renderCellCollapse(columnsCount - columnIndex, {});
@@ -69,7 +69,7 @@ export var GridGroupCell = function (props) {
69
69
  else if (columnIndex <= level && props.locked) {
70
70
  defaultRendering = (React.createElement(React.Fragment, null,
71
71
  renderCellCollapse(0, { position: 'sticky', zIndex: 2 }),
72
- React.createElement("td", { colSpan: (columnsCount - columnIndex), style: { borderLeftWidth: 0, borderRightWidth: 0 } })));
72
+ React.createElement("td", { className: 'k-table-td', role: 'gridcell', colSpan: (columnsCount - columnIndex), style: { borderLeftWidth: 0, borderRightWidth: 0 } })));
73
73
  }
74
74
  return render ?
75
75
  render.call(undefined, defaultRendering, props) :
@@ -39,13 +39,14 @@ export var GridHierarchyCell = function (props) {
39
39
  }
40
40
  }, [props.dataItem, props.dataIndex, props.field, props.onChange, expanded]);
41
41
  if (props.rowType === 'groupFooter') {
42
- defaultRendering = React.createElement("td", __assign({ className: "k-hierarchy-cell" }, navigationAttributes));
42
+ defaultRendering =
43
+ React.createElement("td", __assign({ className: "k-table-td k-hierarchy-cell", role: 'gridcell' }, navigationAttributes));
43
44
  }
44
45
  else if (props.rowType !== 'groupHeader') {
45
46
  var className = expanded ? 'k-icon k-i-minus' : 'k-icon k-i-plus';
46
47
  var baseMessage = expanded ? detailCollapse : detailExpand;
47
48
  var message = localization.toLanguageString(baseMessage, messages[baseMessage]);
48
- defaultRendering = (React.createElement("td", __assign({ className: "k-hierarchy-cell", onKeyDown: onKeyDownHandler, "aria-expanded": expanded ? 'true' : 'false', role: 'gridcell', "aria-colindex": props.ariaColumnIndex }, navigationAttributes),
49
+ defaultRendering = (React.createElement("td", __assign({ className: "k-table-td k-hierarchy-cell", onKeyDown: onKeyDownHandler, "aria-expanded": expanded ? 'true' : 'false', role: 'gridcell', "aria-colindex": props.ariaColumnIndex }, navigationAttributes),
49
50
  React.createElement("a", { onClick: function (e) {
50
51
  e.preventDefault();
51
52
  if (props.onChange) {
@@ -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: HTMLDivElement | null;
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<HTMLDivElement>) => void;
41
+ onAnchorMouseDown: (event: React.MouseEvent<HTMLAnchorElement>) => void;
42
42
  render(): JSX.Element;
43
43
  }
@@ -87,7 +87,7 @@ var GridColumnMenuWrapper = /** @class */ (function (_super) {
87
87
  var _this = this;
88
88
  var _a = this.props, ColumnMenu = _a.columnMenu, others = __rest(_a, ["columnMenu"]);
89
89
  return (React.createElement(React.Fragment, null,
90
- React.createElement("div", { className: 'k-grid-header-menu k-grid-column-menu', ref: function (e) { return _this._anchor = e; }, onClick: this.anchorClick, onMouseDown: this.onAnchorMouseDown },
90
+ 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: "#" },
91
91
  React.createElement("span", { className: 'k-icon k-i-more-vertical' })),
92
92
  React.createElement(Popup, { anchor: this._anchor, show: this.state.show },
93
93
  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 })))))));
@@ -55,7 +55,7 @@ var ColumnDraggable = /** @class */ (function (_super) {
55
55
  ColumnDraggable.prototype.render = function () {
56
56
  var _this = this;
57
57
  return (React.createElement(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; } },
58
- React.createElement("tr", { style: { touchAction: 'none' }, role: "row", "aria-rowindex": this.props.ariaRowIndex }, this.props.children)));
58
+ React.createElement("tr", { className: 'k-table-row', style: { touchAction: 'none' }, role: "row", "aria-rowindex": this.props.ariaRowIndex }, this.props.children)));
59
59
  };
60
60
  return ColumnDraggable;
61
61
  }(React.PureComponent));
@@ -9,6 +9,8 @@ export interface FooterProps {
9
9
  colGroupFooter: HTMLTableColElement | null;
10
10
  };
11
11
  cols: React.ReactElement<HTMLTableColElement>[];
12
+ className?: string;
13
+ size?: string;
12
14
  }
13
15
  /**
14
16
  * @hidden
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  })();
16
16
  import { getScrollbarWidth } from '@progress/kendo-react-common';
17
17
  import * as React from 'react';
18
+ import { classNames, kendoThemeMaps } from '@progress/kendo-react-common';
18
19
  /**
19
20
  * @hidden
20
21
  */
@@ -49,15 +50,18 @@ var Footer = /** @class */ (function (_super) {
49
50
  }
50
51
  };
51
52
  Footer.prototype.render = function () {
53
+ var _a;
52
54
  var _this = this;
53
55
  if (!this.props.staticHeaders) {
54
- return (React.createElement("tfoot", { className: "k-grid-footer" }, this.props.row));
56
+ return (React.createElement("tfoot", { className: "k-table-tfoot" }, this.props.row));
55
57
  }
56
58
  return (React.createElement("div", { className: "k-grid-footer", role: "presentation" },
57
59
  React.createElement("div", { ref: function (div) { _this.footerWrap = div; }, className: "k-grid-footer-wrap", style: this.scrollbarWidth ? {} : { borderWidth: 0 }, role: "presentation" },
58
- React.createElement("table", { ref: function (table) { _this.table = table; }, role: "presentation" },
60
+ React.createElement("table", { ref: function (table) { _this.table = table; }, className: classNames('k-table k-grid-footer-table', (_a = {},
61
+ _a["k-table-".concat(kendoThemeMaps.sizeMap[this.props.size] || this.props.size)] = this.props.size,
62
+ _a), this.props.className), role: "presentation" },
59
63
  React.createElement("colgroup", { ref: function (e) { _this.props.columnResize.colGroupFooter = e; }, role: "presentation" }, this.props.cols),
60
- React.createElement("tfoot", { role: "presentation" }, this.props.row)))));
64
+ React.createElement("tfoot", { className: "k-table-tfoot", role: "presentation" }, this.props.row)))));
61
65
  };
62
66
  return Footer;
63
67
  }(React.Component));
@@ -26,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
26
26
  };
27
27
  import * as React from 'react';
28
28
  import { footerColumns } from './../utils';
29
+ import { classNames } from '@progress/kendo-react-common';
29
30
  /**
30
31
  * @hidden
31
32
  */
@@ -42,7 +43,7 @@ var FooterRow = /** @class */ (function (_super) {
42
43
  ? { left: column.left, right: column.right }
43
44
  : { left: column.right, right: column.left }
44
45
  : {},
45
- className: column.locked && column.left !== undefined ? 'k-grid-footer-sticky' : ''
46
+ className: classNames('k-table-td', column.locked && column.left !== undefined ? 'k-grid-footer-sticky' : '')
46
47
  };
47
48
  var cellProps = __assign({ field: column.field, ariaColumnIndex: column.ariaColumnIndex }, tdProps);
48
49
  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 })));
@@ -57,7 +58,7 @@ var FooterRow = /** @class */ (function (_super) {
57
58
  configurable: true
58
59
  });
59
60
  FooterRow.prototype.render = function () {
60
- return React.createElement("tr", { role: "row", "aria-rowindex": this.props.ariaRowIndex }, footerColumns(this.props.columns).map(this.renderCell));
61
+ return React.createElement("tr", { className: 'k-table-row', role: "row", "aria-rowindex": this.props.ariaRowIndex }, footerColumns(this.props.columns).map(this.renderCell));
61
62
  };
62
63
  return FooterRow;
63
64
  }(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
  *
@@ -30,10 +30,11 @@ import { GridFilterCell } from '../cells/GridFilterCell';
30
30
  import { operatorMap, booleanFilterValues, getFilterType } from '../filterCommon';
31
31
  import { tableKeyboardNavigationTools as navigationTools, HeaderThElement } from '@progress/kendo-react-data-tools';
32
32
  import { filterAriaLabel, messages } from '../messages';
33
+ import { classNames } from '@progress/kendo-react-common';
33
34
  /**
34
35
  * @hidden
35
36
  */
36
- export var FILTER_ROW_CLASS = 'k-filter-row';
37
+ export var FILTER_ROW_CLASS = 'k-table-row k-filter-row';
37
38
  /**
38
39
  *
39
40
  * @hidden
@@ -118,9 +119,9 @@ var FilterRow = /** @class */ (function (_super) {
118
119
  ? { left: column.left, right: column.right }
119
120
  : { left: column.right, right: column.left }
120
121
  : {};
121
- return (React.createElement(HeaderThElement, __assign({ key: key, columnId: navigationTools.getFilterColumnId(column.id), navigatable: column.navigatable, style: style, className: _this.headerCellClassName(column.field, column.locked) || undefined, role: "columnheader" }, ariaAttrs), filterCellProps && (column.filterCell ?
122
+ return (React.createElement(HeaderThElement, __assign({ key: key, columnId: navigationTools.getFilterColumnId(column.id), navigatable: column.navigatable, style: style, className: classNames('k-header', _this.headerCellClassName(column.field, column.locked) || undefined), role: "columnheader" }, ariaAttrs), filterCellProps && (column.filterCell ?
122
123
  React.createElement(column.filterCell, __assign({}, filterCellProps)) :
123
- React.createElement(GridFilterCell, __assign({}, filterCellProps)))));
124
+ React.createElement(GridFilterCell, __assign({ size: _this.props.size }, filterCellProps)))));
124
125
  });
125
126
  return React.createElement("tr", { className: FILTER_ROW_CLASS, "aria-rowindex": this.props.ariaRowIndex, role: "row" }, filterCells);
126
127
  };
@@ -14,6 +14,8 @@ export interface HeaderProps {
14
14
  cols: React.ReactElement<HTMLTableColElement>[];
15
15
  draggable?: boolean | undefined;
16
16
  elemRef: React.RefObject<HTMLDivElement>;
17
+ className?: string;
18
+ size?: string;
17
19
  }
18
20
  /**
19
21
  * @hidden
@@ -25,7 +25,7 @@ var __assign = (this && this.__assign) || function () {
25
25
  return __assign.apply(this, arguments);
26
26
  };
27
27
  import * as React from 'react';
28
- import { classNames, getScrollbarWidth } from '@progress/kendo-react-common';
28
+ import { classNames, getScrollbarWidth, kendoThemeMaps } from '@progress/kendo-react-common';
29
29
  import { isRtl, tableKeyboardNavigationHeaderAttributes } from '@progress/kendo-react-data-tools';
30
30
  /**
31
31
  * @hidden
@@ -88,17 +88,20 @@ var Header = /** @class */ (function (_super) {
88
88
  }
89
89
  };
90
90
  Header.prototype.render = function () {
91
+ var _a;
91
92
  var _this = this;
92
93
  if (!this.props.staticHeaders) {
93
- return (React.createElement("thead", __assign({ role: "presentation", className: classNames('k-grid-header', { 'k-grid-draggable-header': this.props.draggable }) }, tableKeyboardNavigationHeaderAttributes),
94
+ return (React.createElement("thead", __assign({ role: "presentation", className: classNames('k-table-thead', { 'k-grid-draggable-header': this.props.draggable }) }, tableKeyboardNavigationHeaderAttributes),
94
95
  this.props.headerRow,
95
96
  this.props.filterRow));
96
97
  }
97
98
  return (React.createElement("div", { ref: this.props.elemRef, className: classNames('k-grid-header', { 'k-grid-draggable-header': this.props.draggable }), role: "presentation" },
98
99
  React.createElement("div", { ref: function (div) { _this.headerWrap = div; }, className: "k-grid-header-wrap", style: this.scrollbarWidth ? {} : { borderWidth: 0 }, onScroll: this.onScroll, role: "presentation" },
99
- React.createElement("table", { ref: function (table) { _this.table = table; }, role: "presentation" },
100
+ React.createElement("table", { ref: function (table) { _this.table = table; }, className: classNames('k-table k-grid-header-table', (_a = {},
101
+ _a["k-table-".concat(kendoThemeMaps.sizeMap[this.props.size] || this.props.size)] = this.props.size,
102
+ _a), this.props.className), role: "presentation" },
100
103
  React.createElement("colgroup", { ref: function (e) { _this.props.columnResize.colGroupHeader = e; } }, this.props.cols),
101
- React.createElement("thead", __assign({ role: "rowgroup" }, tableKeyboardNavigationHeaderAttributes),
104
+ React.createElement("thead", __assign({ className: 'k-table-thead', role: "rowgroup" }, tableKeyboardNavigationHeaderAttributes),
102
105
  this.props.headerRow,
103
106
  this.props.filterRow)))));
104
107
  };
@@ -146,8 +146,11 @@ var HeaderRow = /** @class */ (function (_super) {
146
146
  return null;
147
147
  }
148
148
  return sortIndex >= 0 && [
149
- React.createElement("span", { key: 1, className: 'k-icon k-i-sort-' + this.props.sort[sortIndex].dir + '-small' }),
150
- this.props.sort.length > 1 && React.createElement("span", { key: 2, className: "k-sort-order" }, sortIndex + 1)
149
+ React.createElement("span", { key: 1, className: 'k-sort-icon' },
150
+ React.createElement("span", { className: 'k-icon k-i-sort-' + this.props.sort[sortIndex].dir + '-small' })),
151
+ this.props.sort.length > 1 &&
152
+ React.createElement("span", { key: 2, className: 'k-sort-icon' },
153
+ React.createElement("span", { className: "k-sort-order" }, sortIndex + 1))
151
154
  ];
152
155
  };
153
156
  HeaderRow.prototype.render = function () {
@@ -155,7 +158,7 @@ var HeaderRow = /** @class */ (function (_super) {
155
158
  this.serviceIndex = 0;
156
159
  this.index = -1;
157
160
  return this.props.columnsMap.map(function (rowIndexes, i) {
158
- return _this.props.pressHandler && (React.createElement(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));
161
+ return _this.props.pressHandler && (React.createElement(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));
159
162
  });
160
163
  };
161
164
  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&mdash;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&mdash;Does not set a size `className`.
22
+ *
23
+ * @default `medium`
24
+ */
25
+ size?: null | 'small' | 'medium' | 'large';
10
26
  }