@progress/kendo-react-grid 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009

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 (169) hide show
  1. package/dist/cdn/js/kendo-react-grid.js +1 -1
  2. package/dist/es/Grid.d.ts +12 -7
  3. package/dist/es/Grid.js +57 -33
  4. package/dist/es/GridColumn.d.ts +1 -1
  5. package/dist/es/GridColumn.js +1 -1
  6. package/dist/es/GridNoRecords.js +3 -1
  7. package/dist/es/GridToolbar.js +3 -1
  8. package/dist/es/ScrollMode.js +1 -0
  9. package/dist/es/VirtualScroll.d.ts +4 -4
  10. package/dist/es/VirtualScroll.js +11 -6
  11. package/dist/es/cells/GridCell.d.ts +2 -1
  12. package/dist/es/cells/GridEditCell.d.ts +2 -1
  13. package/dist/es/cells/GridFilterCell.d.ts +1 -1
  14. package/dist/es/cells/GridFilterCell.js +3 -1
  15. package/dist/es/cells/GridGroupCell.d.ts +2 -1
  16. package/dist/es/cells/GridHierarchyCell.d.ts +2 -1
  17. package/dist/es/cells/GridSelectionCell.d.ts +2 -1
  18. package/dist/es/columnMenu/GridColumnMenuCheckboxFilter.d.ts +2 -2
  19. package/dist/es/columnMenu/GridColumnMenuCheckboxFilter.js +15 -4
  20. package/dist/es/columnMenu/GridColumnMenuFilter.d.ts +4 -4
  21. package/dist/es/columnMenu/GridColumnMenuFilter.js +25 -14
  22. package/dist/es/columnMenu/GridColumnMenuFilterCell.js +3 -1
  23. package/dist/es/columnMenu/GridColumnMenuFilterUI.js +3 -1
  24. package/dist/es/columnMenu/GridColumnMenuGroup.d.ts +1 -1
  25. package/dist/es/columnMenu/GridColumnMenuGroup.js +3 -1
  26. package/dist/es/columnMenu/GridColumnMenuItem.js +5 -3
  27. package/dist/es/columnMenu/GridColumnMenuItemContent.js +3 -1
  28. package/dist/es/columnMenu/GridColumnMenuItemGroup.js +3 -1
  29. package/dist/es/columnMenu/GridColumnMenuSort.d.ts +1 -1
  30. package/dist/es/columnMenu/GridColumnMenuSort.js +3 -1
  31. package/dist/es/columnMenu/GridColumnMenuWrapper.js +11 -3
  32. package/dist/es/drag/ColumnDraggable.d.ts +2 -2
  33. package/dist/es/drag/ColumnDraggable.js +4 -1
  34. package/dist/es/drag/ColumnResize.d.ts +1 -2
  35. package/dist/es/drag/ColumnResize.js +3 -0
  36. package/dist/es/drag/ColumnResizer.js +5 -1
  37. package/dist/es/drag/CommonDragLogic.d.ts +7 -7
  38. package/dist/es/drag/CommonDragLogic.js +5 -4
  39. package/dist/es/drag/GroupingIndicator.d.ts +2 -2
  40. package/dist/es/drag/GroupingIndicator.js +4 -1
  41. package/dist/es/filterCommon.d.ts +3 -3
  42. package/dist/es/footer/Footer.js +3 -1
  43. package/dist/es/footer/FooterRow.d.ts +1 -1
  44. package/dist/es/footer/FooterRow.js +4 -2
  45. package/dist/es/header/FilterRow.js +4 -2
  46. package/dist/es/header/GridHeaderCell.d.ts +1 -1
  47. package/dist/es/header/GridHeaderCell.js +3 -1
  48. package/dist/es/header/GridHeaderSelectionCell.d.ts +1 -1
  49. package/dist/es/header/GridHeaderSelectionCell.js +3 -1
  50. package/dist/es/header/GroupPanel.d.ts +2 -2
  51. package/dist/es/header/GroupPanel.js +3 -1
  52. package/dist/es/header/Header.d.ts +2 -2
  53. package/dist/es/header/Header.js +6 -5
  54. package/dist/es/header/HeaderRow.d.ts +1 -1
  55. package/dist/es/header/HeaderRow.js +3 -1
  56. package/dist/es/interfaces/GridCellProps.d.ts +1 -1
  57. package/dist/es/interfaces/GridCellProps.js +1 -0
  58. package/dist/es/interfaces/GridColumnMenuBaseProps.js +1 -0
  59. package/dist/es/interfaces/GridColumnMenuColumnProps.js +1 -0
  60. package/dist/es/interfaces/GridColumnMenuFilterBaseProps.js +1 -0
  61. package/dist/es/interfaces/GridColumnMenuFilterUIProps.js +1 -0
  62. package/dist/es/interfaces/GridColumnMenuGroupBaseProps.js +1 -0
  63. package/dist/es/interfaces/GridColumnMenuProps.js +1 -0
  64. package/dist/es/interfaces/GridColumnMenuSortBaseProps.js +1 -0
  65. package/dist/es/interfaces/GridColumnProps.d.ts +1 -1
  66. package/dist/es/interfaces/GridColumnProps.js +1 -0
  67. package/dist/es/interfaces/GridDetailRowProps.js +1 -0
  68. package/dist/es/interfaces/GridFilterCellProps.js +1 -0
  69. package/dist/es/interfaces/GridFilterOperator.js +1 -0
  70. package/dist/es/interfaces/GridFilterOperators.js +1 -0
  71. package/dist/es/interfaces/GridFooterCellProps.js +1 -0
  72. package/dist/es/interfaces/GridGroupableSettings.js +1 -0
  73. package/dist/es/interfaces/GridHeaderCellProps.d.ts +1 -1
  74. package/dist/es/interfaces/GridHeaderCellProps.js +1 -0
  75. package/dist/es/interfaces/GridNoRecordsProps.js +1 -0
  76. package/dist/es/interfaces/GridProps.js +1 -0
  77. package/dist/es/interfaces/GridRowProps.js +1 -0
  78. package/dist/es/interfaces/GridRowType.js +1 -0
  79. package/dist/es/interfaces/GridSelectableSettings.js +1 -0
  80. package/dist/es/interfaces/GridSortSettings.d.ts +1 -11
  81. package/dist/es/interfaces/GridSortSettings.js +10 -1
  82. package/dist/es/interfaces/GridToolbarProps.js +1 -0
  83. package/dist/es/interfaces/events.js +1 -0
  84. package/dist/es/main.js +1 -0
  85. package/dist/es/messages/index.d.ts +28 -28
  86. package/dist/es/package-metadata.js +1 -1
  87. package/dist/es/paging/Page.js +1 -0
  88. package/dist/es/rows/GridDetailRow.js +3 -1
  89. package/dist/es/rows/GridRow.d.ts +1 -1
  90. package/dist/es/rows/GridRow.js +3 -1
  91. package/dist/es/utils/index.js +8 -6
  92. package/dist/npm/Grid.d.ts +12 -7
  93. package/dist/npm/Grid.js +77 -52
  94. package/dist/npm/GridColumn.d.ts +1 -1
  95. package/dist/npm/GridColumn.js +4 -2
  96. package/dist/npm/GridNoRecords.js +6 -3
  97. package/dist/npm/GridToolbar.js +4 -1
  98. package/dist/npm/VirtualScroll.d.ts +4 -4
  99. package/dist/npm/VirtualScroll.js +12 -6
  100. package/dist/npm/cells/GridCell.d.ts +2 -1
  101. package/dist/npm/cells/GridCell.js +7 -5
  102. package/dist/npm/cells/GridDetailCell.js +4 -2
  103. package/dist/npm/cells/GridDetailHierarchyCell.js +4 -2
  104. package/dist/npm/cells/GridEditCell.d.ts +2 -1
  105. package/dist/npm/cells/GridEditCell.js +7 -5
  106. package/dist/npm/cells/GridFilterCell.d.ts +1 -1
  107. package/dist/npm/cells/GridFilterCell.js +10 -7
  108. package/dist/npm/cells/GridGroupCell.d.ts +2 -1
  109. package/dist/npm/cells/GridGroupCell.js +5 -3
  110. package/dist/npm/cells/GridHierarchyCell.d.ts +2 -1
  111. package/dist/npm/cells/GridHierarchyCell.js +6 -4
  112. package/dist/npm/cells/GridSelectionCell.d.ts +2 -1
  113. package/dist/npm/cells/GridSelectionCell.js +6 -4
  114. package/dist/npm/columnMenu/GridColumnMenuCheckboxFilter.d.ts +2 -2
  115. package/dist/npm/columnMenu/GridColumnMenuCheckboxFilter.js +23 -11
  116. package/dist/npm/columnMenu/GridColumnMenuFilter.d.ts +4 -4
  117. package/dist/npm/columnMenu/GridColumnMenuFilter.js +51 -37
  118. package/dist/npm/columnMenu/GridColumnMenuFilterCell.js +7 -4
  119. package/dist/npm/columnMenu/GridColumnMenuFilterUI.js +4 -1
  120. package/dist/npm/columnMenu/GridColumnMenuGroup.d.ts +1 -1
  121. package/dist/npm/columnMenu/GridColumnMenuGroup.js +7 -4
  122. package/dist/npm/columnMenu/GridColumnMenuItem.js +6 -3
  123. package/dist/npm/columnMenu/GridColumnMenuItemContent.js +5 -2
  124. package/dist/npm/columnMenu/GridColumnMenuItemGroup.js +5 -2
  125. package/dist/npm/columnMenu/GridColumnMenuSort.d.ts +1 -1
  126. package/dist/npm/columnMenu/GridColumnMenuSort.js +8 -5
  127. package/dist/npm/columnMenu/GridColumnMenuWrapper.js +12 -3
  128. package/dist/npm/constants/index.js +1 -0
  129. package/dist/npm/drag/ColumnDraggable.d.ts +2 -2
  130. package/dist/npm/drag/ColumnDraggable.js +5 -1
  131. package/dist/npm/drag/ColumnResize.d.ts +1 -2
  132. package/dist/npm/drag/ColumnResize.js +4 -0
  133. package/dist/npm/drag/ColumnResizer.js +6 -1
  134. package/dist/npm/drag/CommonDragLogic.d.ts +7 -7
  135. package/dist/npm/drag/CommonDragLogic.js +8 -6
  136. package/dist/npm/drag/GroupingIndicator.d.ts +2 -2
  137. package/dist/npm/drag/GroupingIndicator.js +5 -1
  138. package/dist/npm/filterCommon.d.ts +3 -3
  139. package/dist/npm/filterCommon.js +21 -13
  140. package/dist/npm/footer/Footer.js +5 -2
  141. package/dist/npm/footer/FooterRow.d.ts +1 -1
  142. package/dist/npm/footer/FooterRow.js +6 -3
  143. package/dist/npm/header/FilterRow.js +10 -7
  144. package/dist/npm/header/GridHeaderCell.d.ts +1 -1
  145. package/dist/npm/header/GridHeaderCell.js +4 -1
  146. package/dist/npm/header/GridHeaderSelectionCell.d.ts +1 -1
  147. package/dist/npm/header/GridHeaderSelectionCell.js +5 -2
  148. package/dist/npm/header/GroupPanel.d.ts +2 -2
  149. package/dist/npm/header/GroupPanel.js +6 -3
  150. package/dist/npm/header/Header.d.ts +2 -2
  151. package/dist/npm/header/Header.js +10 -8
  152. package/dist/npm/header/HeaderRow.d.ts +1 -1
  153. package/dist/npm/header/HeaderRow.js +8 -5
  154. package/dist/npm/interfaces/GridCellProps.d.ts +1 -1
  155. package/dist/npm/interfaces/GridColumnProps.d.ts +1 -1
  156. package/dist/npm/interfaces/GridHeaderCellProps.d.ts +1 -1
  157. package/dist/npm/interfaces/GridSortSettings.d.ts +1 -11
  158. package/dist/npm/interfaces/GridSortSettings.js +13 -2
  159. package/dist/npm/main.js +43 -27
  160. package/dist/npm/messages/index.d.ts +28 -28
  161. package/dist/npm/messages/index.js +2 -1
  162. package/dist/npm/package-metadata.js +2 -1
  163. package/dist/npm/paging/GridPagerSettings.js +3 -1
  164. package/dist/npm/rows/GridDetailRow.js +4 -1
  165. package/dist/npm/rows/GridRow.d.ts +1 -1
  166. package/dist/npm/rows/GridRow.js +5 -2
  167. package/dist/npm/utils/index.js +14 -9
  168. package/dist/systemjs/kendo-react-grid.js +1 -1
  169. package/package.json +19 -19
@@ -14,7 +14,7 @@ export interface GroupPanelProps extends ColumnDraggableProps {
14
14
  * @hidden
15
15
  */
16
16
  export declare class GroupPanel extends React.Component<GroupPanelProps, {}> {
17
- onGroupRemove: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, index: number) => void;
18
- onGroupSortChange: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>, index: number, groupDesc: GroupDescriptor, dir: string) => void;
17
+ onGroupRemove: (event: React.MouseEvent<HTMLButtonElement>, index: number) => void;
18
+ onGroupSortChange: (event: React.MouseEvent<HTMLAnchorElement>, index: number, groupDesc: GroupDescriptor, dir: string) => void;
19
19
  render(): JSX.Element;
20
20
  }
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -13,17 +13,17 @@ export interface HeaderProps {
13
13
  };
14
14
  cols: React.ReactElement<HTMLTableColElement>[];
15
15
  draggable?: boolean | undefined;
16
+ elemRef: React.RefObject<HTMLDivElement>;
16
17
  }
17
18
  /**
18
19
  * @hidden
19
20
  */
20
21
  export declare class Header extends React.Component<HeaderProps, {}> {
21
- private elementRef;
22
22
  private headerWrap;
23
23
  private table;
24
24
  private syncScroll;
25
25
  private scrollbarWidth;
26
- readonly element: HTMLDivElement | null;
26
+ get element(): HTMLDivElement | null;
27
27
  componentDidMount(): void;
28
28
  /**
29
29
  *
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -32,7 +34,6 @@ var Header = /** @class */ (function (_super) {
32
34
  __extends(Header, _super);
33
35
  function Header() {
34
36
  var _this = _super !== null && _super.apply(this, arguments) || this;
35
- _this.elementRef = React.createRef();
36
37
  _this.headerWrap = null;
37
38
  _this.table = null;
38
39
  _this.syncScroll = false;
@@ -55,9 +56,9 @@ var Header = /** @class */ (function (_super) {
55
56
  }
56
57
  Object.defineProperty(Header.prototype, "element", {
57
58
  get: function () {
58
- return this.elementRef.current;
59
+ return this.props.elemRef.current;
59
60
  },
60
- enumerable: true,
61
+ enumerable: false,
61
62
  configurable: true
62
63
  });
63
64
  Header.prototype.componentDidMount = function () {
@@ -93,7 +94,7 @@ var Header = /** @class */ (function (_super) {
93
94
  this.props.headerRow,
94
95
  this.props.filterRow));
95
96
  }
96
- return (React.createElement("div", { ref: this.elementRef, className: classNames('k-grid-header', { 'k-grid-draggable-header': this.props.draggable }), role: "presentation" },
97
+ return (React.createElement("div", { ref: this.props.elemRef, className: classNames('k-grid-header', { 'k-grid-draggable-header': this.props.draggable }), role: "presentation" },
97
98
  React.createElement("div", { ref: function (div) { _this.headerWrap = div; }, className: "k-grid-header-wrap", style: this.scrollbarWidth ? {} : { borderWidth: 0 }, onScroll: this.onScroll, role: "presentation" },
98
99
  React.createElement("table", { ref: function (table) { _this.table = table; }, role: "presentation" },
99
100
  React.createElement("colgroup", { ref: function (e) { _this.props.columnResize.colGroupHeader = e; } }, this.props.cols),
@@ -39,7 +39,7 @@ export declare class HeaderRow extends React.Component<HeaderRowProps, {}> {
39
39
  constructor(props: HeaderRowProps);
40
40
  cellClick(e: React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent<HTMLElement>, column: GridColumnProps): void;
41
41
  cellKeyDown: (event: React.KeyboardEvent<HTMLElement>, column: GridColumnProps) => void;
42
- sortIcon(sortIndex: number): JSX.Element[];
42
+ sortIcon(sortIndex: number): false | (false | JSX.Element)[] | null;
43
43
  render(): JSX.Element[];
44
44
  private cells;
45
45
  }
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -5,7 +5,7 @@ import { CellProps } from '@progress/kendo-react-data-tools';
5
5
  * Represents the props of the GridCell component
6
6
  * ([more information]({% slug cells_grid %}#toc-grid-cells)).
7
7
  */
8
- export interface GridCellProps extends CellProps {
8
+ export interface GridCellProps extends Omit<CellProps, 'onChange' | 'render'> {
9
9
  /**
10
10
  * Zero-based index of the dataItem.
11
11
  */
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -9,7 +9,7 @@ import { ColumnBaseProps } from '@progress/kendo-react-data-tools';
9
9
  /**
10
10
  * The props of the GridColumn component.
11
11
  */
12
- export interface GridColumnProps extends ColumnBaseProps {
12
+ export interface GridColumnProps extends Omit<ColumnBaseProps, 'cell'> {
13
13
  /**
14
14
  * Allows the column headers to be clicked and the `sortChange` event emitted.
15
15
  * You have to handle the `sortChange` event yourself and sort the data.
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -5,7 +5,7 @@ import { GridColumnMenuWrapperProps } from '../columnMenu/GridColumnMenuWrapper'
5
5
  * The props of the GridHeaderCell component
6
6
  * ([more information]({% slug cells_grid %}#toc-header-cells)).
7
7
  */
8
- export interface GridHeaderCellProps extends HeaderCellBaseProps {
8
+ export interface GridHeaderCellProps extends Omit<HeaderCellBaseProps, 'render'> {
9
9
  /**
10
10
  * A function for overriding the default rendering of the header cell.
11
11
  */
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -1 +1,2 @@
1
+ export {};
1
2
  // tslint:enable:max-line-length
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
1
  ;
2
+ export {};
@@ -10,14 +10,4 @@ export declare type GridSortSettings = SortSettings;
10
10
  /**
11
11
  * @hidden
12
12
  */
13
- export declare const normalize: (...settings: (boolean | {
14
- allowUnsort?: boolean;
15
- } | (false & {
16
- mode?: "multiple" | "single";
17
- }) | (true & {
18
- mode?: "multiple" | "single";
19
- }) | ({
20
- allowUnsort?: boolean;
21
- } & {
22
- mode?: "multiple" | "single";
23
- }))[]) => any;
13
+ export declare const normalize: (...settings: (GridSortSettings | GridColumnSortSettings)[]) => any;
@@ -1,3 +1,12 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
+ if (ar || !(i in from)) {
4
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
+ ar[i] = from[i];
6
+ }
7
+ }
8
+ return to.concat(ar || Array.prototype.slice.call(from));
9
+ };
1
10
  /**
2
11
  * @hidden
3
12
  */
@@ -6,5 +15,5 @@ export var normalize = function () {
6
15
  for (var _i = 0; _i < arguments.length; _i++) {
7
16
  settings[_i] = arguments[_i];
8
17
  }
9
- return Object.assign.apply(Object, [{ allowUnsort: true, mode: 'single' }].concat(settings));
18
+ return Object.assign.apply(Object, __spreadArray([{ allowUnsort: true, mode: 'single' }], settings, false));
10
19
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/dist/es/main.js CHANGED
@@ -17,6 +17,7 @@ import { GridDetailRow } from './rows/GridDetailRow';
17
17
  import { GridRow } from './rows/GridRow';
18
18
  import { GridToolbar } from './GridToolbar';
19
19
  import { GridNoRecords } from './GridNoRecords';
20
+ export * from './interfaces/events';
20
21
  import { GridColumnMenuItem } from './columnMenu/GridColumnMenuItem';
21
22
  import { GridColumnMenuItemContent } from './columnMenu/GridColumnMenuItemContent';
22
23
  import { GridColumnMenuItemGroup } from './columnMenu/GridColumnMenuItemGroup';
@@ -114,34 +114,34 @@ export declare const detailCollapse = "grid.detailCollapse";
114
114
  * @hidden
115
115
  */
116
116
  export declare const messages: {
117
- [detailExpand]: string;
118
- [detailCollapse]: string;
119
- [groupExpand]: string;
120
- [groupCollapse]: string;
121
- [noRecords]: string;
122
- [groupPanelEmpty]: string;
123
- [filterClearButton]: string;
124
- [filterSubmitButton]: string;
125
- [filterTitle]: string;
126
- [sortAscending]: string;
127
- [sortDescending]: string;
128
- [sortAriaLabel]: string;
129
- [groupColumn]: string;
130
- [ungroupColumn]: string;
131
- [pagerItemPerPage]: string;
132
- [pagerInfo]: string;
133
- [pagerFirstPage]: string;
134
- [pagerPreviousPage]: string;
135
- [pagerNextPage]: string;
136
- [pagerLastPage]: string;
137
- [pagerPage]: string;
138
- [pagerOf]: string;
139
- [pagerTotalPages]: string;
140
- [searchPlaceholder]: string;
141
- [filterCheckAll]: string;
142
- [filterChooseOperator]: string;
143
- [filterSelectedItems]: string;
144
- [filterAriaLabel]: string;
117
+ "grid.detailExpand": string;
118
+ "grid.detailCollapse": string;
119
+ "grid.groupExpand": string;
120
+ "grid.groupCollapse": string;
121
+ "grid.noRecords": string;
122
+ "grid.groupPanelEmpty": string;
123
+ "grid.filterClearButton": string;
124
+ "grid.filterSubmitButton": string;
125
+ "grid.filterTitle": string;
126
+ "grid.sortAscending": string;
127
+ "grid.sortDescending": string;
128
+ "grid.sortAriaLabel": string;
129
+ "grid.groupColumn": string;
130
+ "grid.ungroupColumn": string;
131
+ "grid.pagerItemsPerPage": string;
132
+ "grid.pagerInfo": string;
133
+ "grid.pagerFirstPage": string;
134
+ "grid.pagerPreviousPage": string;
135
+ "grid.pagerNextPage": string;
136
+ "grid.pagerLastPage": string;
137
+ "grid.pagerPage": string;
138
+ "grid.pagerOf": string;
139
+ "grid.pagerTotalPages": string;
140
+ "grid.searchPlaceholder": string;
141
+ "grid.filterCheckAll": string;
142
+ "grid.filterChooseOperator": string;
143
+ "grid.filterSelectedItems": string;
144
+ "grid.filterAriaLabel": string;
145
145
  'grid.filterEqOperator': string;
146
146
  'grid.filterNotEqOperator': string;
147
147
  'grid.filterIsNullOperator': string;
@@ -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: 1653030502,
8
+ publishDate: 1654509537,
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
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -7,5 +7,5 @@ export declare class GridRow extends React.Component<GridRowProps, {}> {
7
7
  /**
8
8
  * @hidden
9
9
  */
10
- render(): any;
10
+ render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
11
11
  }
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
14
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
15
  t[p] = s[p];
16
16
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
18
- t[p[i]] = s[p[i]];
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
19
21
  return t;
20
22
  };
21
23
  /**
@@ -90,8 +92,8 @@ var eventKeys = [
90
92
  'columnResize',
91
93
  'columnReorder'
92
94
  ];
93
- var deprecatedHandlerMessage = function (oldKey, newKey) { return ("The " + oldKey + " event handler property is deprecated, " +
94
- ("use https://www.telerik.com/kendo-react-ui/components/grid/api/GridProps/#toc-" + newKey + " instead")); };
95
+ var deprecatedHandlerMessage = function (oldKey, newKey) { return ("The ".concat(oldKey, " event handler property is deprecated, ") +
96
+ "use https://www.telerik.com/kendo-react-ui/components/grid/api/GridProps/#toc-".concat(newKey, " instead")); };
95
97
  /**
96
98
  * @hidden
97
99
  */
@@ -123,7 +125,7 @@ export function readColumns(elements, oldColumns, idInfo, depth) {
123
125
  var oldColumn = oldColumns[index] || null;
124
126
  var children = readColumns(columnProps.children, oldColumn && oldColumn.children || [], idInfo, depth + 1);
125
127
  columns.push(Object.assign({ depth: depth }, GridColumn.defaultProps, (children.length) ? { cell: function () { return null; }, filterCell: function () { return null; } } : {}, oldColumn ? { width: oldColumn.width, orderIndex: oldColumn.orderIndex } : {}, columnProps, {
126
- id: columnProps.id ? columnProps.id : navigationTools.generateNavigatableId("" + idInfo.prevId++, idInfo.idPrefix, 'column'),
128
+ id: columnProps.id ? columnProps.id : navigationTools.generateNavigatableId("".concat(idInfo.prevId++), idInfo.idPrefix, 'column'),
127
129
  declarationIndex: columns.length,
128
130
  children: children,
129
131
  rowSpan: 0,
@@ -173,7 +175,7 @@ export function autoGenerateColumns(data, group, expandField, idInfo) {
173
175
  fields.forEach(function (field) {
174
176
  if (field !== expandField) {
175
177
  columns.push(Object.assign({
176
- id: navigationTools.generateNavigatableId("" + idInfo.prevId++, idInfo.idPrefix, 'column'),
178
+ id: navigationTools.generateNavigatableId("".concat(idInfo.prevId++), idInfo.idPrefix, 'column'),
177
179
  declarationIndex: -1,
178
180
  parentIndex: -1,
179
181
  depth: 0,
@@ -65,7 +65,7 @@ export declare class Grid extends React.Component<GridProps, {}> {
65
65
  buttonCount: PropTypes.Requireable<number>;
66
66
  info: PropTypes.Requireable<boolean>;
67
67
  type: PropTypes.Requireable<string>;
68
- pageSizes: PropTypes.Requireable<boolean | number[]>;
68
+ pageSizes: PropTypes.Requireable<boolean | (number | null)[]>;
69
69
  previousNext: PropTypes.Requireable<boolean>;
70
70
  }>>;
71
71
  pageSize: PropTypes.Requireable<number>;
@@ -102,7 +102,7 @@ export declare class Grid extends React.Component<GridProps, {}> {
102
102
  navigatable: PropTypes.Requireable<boolean>;
103
103
  };
104
104
  /** @hidden */
105
- static contextType: React.Context<TableKeyboardNavigationContextType>;
105
+ static contextType: React.Context<TableKeyboardNavigationContextType | undefined>;
106
106
  protected dragLogic: CommonDragLogic;
107
107
  private _columns;
108
108
  private _columnsMap;
@@ -148,10 +148,15 @@ export declare class Grid extends React.Component<GridProps, {}> {
148
148
  * ReactDOM.render(<App />, document.querySelector('my-app'));
149
149
  * ```
150
150
  */
151
- readonly columns: GridColumnProps[];
152
- private readonly document;
151
+ get columns(): GridColumnProps[];
152
+ /**
153
+ * Returns the HTML element of the Grid component.
154
+ */
155
+ get element(): HTMLDivElement | null;
156
+ private get document();
153
157
  private headerRef;
154
- private element;
158
+ private headerElementRef;
159
+ private _element;
155
160
  private tableElement;
156
161
  private vs;
157
162
  private columnResize;
@@ -159,7 +164,7 @@ export declare class Grid extends React.Component<GridProps, {}> {
159
164
  private forceUpdateTimeout;
160
165
  private isRtl;
161
166
  private _gridId;
162
- private readonly _header;
167
+ private get _header();
163
168
  constructor(props: GridProps);
164
169
  /**
165
170
  * Method to allow the scroll to be set to a specific row index.
@@ -182,7 +187,7 @@ export declare class Grid extends React.Component<GridProps, {}> {
182
187
  /**
183
188
  * @hidden
184
189
  */
185
- getSnapshotBeforeUpdate(): any;
190
+ getSnapshotBeforeUpdate(): null;
186
191
  /**
187
192
  * @hidden
188
193
  */