@progress/kendo-react-grid 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059

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 (140) hide show
  1. package/dist/cdn/js/kendo-react-grid.js +1 -1
  2. package/dist/es/Grid.d.ts +5 -4
  3. package/dist/es/Grid.js +25 -19
  4. package/dist/es/GridColumn.js +1 -1
  5. package/dist/es/GridNoRecords.js +3 -1
  6. package/dist/es/GridToolbar.js +3 -1
  7. package/dist/es/ScrollMode.js +1 -0
  8. package/dist/es/VirtualScroll.d.ts +2 -2
  9. package/dist/es/VirtualScroll.js +2 -2
  10. package/dist/es/cells/GridFilterCell.js +3 -1
  11. package/dist/es/columnMenu/GridColumnMenuCheckboxFilter.d.ts +2 -2
  12. package/dist/es/columnMenu/GridColumnMenuCheckboxFilter.js +11 -4
  13. package/dist/es/columnMenu/GridColumnMenuFilter.d.ts +4 -4
  14. package/dist/es/columnMenu/GridColumnMenuFilter.js +21 -14
  15. package/dist/es/columnMenu/GridColumnMenuFilterCell.js +3 -1
  16. package/dist/es/columnMenu/GridColumnMenuFilterUI.js +3 -1
  17. package/dist/es/columnMenu/GridColumnMenuGroup.d.ts +1 -1
  18. package/dist/es/columnMenu/GridColumnMenuGroup.js +3 -1
  19. package/dist/es/columnMenu/GridColumnMenuItem.js +3 -1
  20. package/dist/es/columnMenu/GridColumnMenuItemContent.js +3 -1
  21. package/dist/es/columnMenu/GridColumnMenuItemGroup.js +3 -1
  22. package/dist/es/columnMenu/GridColumnMenuSort.d.ts +1 -1
  23. package/dist/es/columnMenu/GridColumnMenuSort.js +3 -1
  24. package/dist/es/columnMenu/GridColumnMenuWrapper.js +7 -3
  25. package/dist/es/drag/ColumnDraggable.d.ts +1 -2
  26. package/dist/es/drag/ColumnDraggable.js +3 -1
  27. package/dist/es/drag/ColumnResize.d.ts +1 -2
  28. package/dist/es/drag/ColumnResizer.js +3 -1
  29. package/dist/es/drag/CommonDragLogic.d.ts +7 -7
  30. package/dist/es/drag/CommonDragLogic.js +4 -4
  31. package/dist/es/drag/GroupingIndicator.d.ts +2 -2
  32. package/dist/es/drag/GroupingIndicator.js +3 -1
  33. package/dist/es/filterCommon.d.ts +3 -3
  34. package/dist/es/footer/Footer.js +3 -1
  35. package/dist/es/footer/FooterRow.d.ts +1 -1
  36. package/dist/es/footer/FooterRow.js +4 -2
  37. package/dist/es/header/FilterRow.js +3 -1
  38. package/dist/es/header/GridHeaderCell.js +3 -1
  39. package/dist/es/header/GridHeaderSelectionCell.js +3 -1
  40. package/dist/es/header/GroupPanel.d.ts +2 -2
  41. package/dist/es/header/GroupPanel.js +3 -1
  42. package/dist/es/header/Header.d.ts +2 -2
  43. package/dist/es/header/Header.js +6 -5
  44. package/dist/es/header/HeaderRow.js +3 -1
  45. package/dist/es/interfaces/GridCellProps.js +1 -0
  46. package/dist/es/interfaces/GridColumnMenuBaseProps.js +1 -0
  47. package/dist/es/interfaces/GridColumnMenuColumnProps.js +1 -0
  48. package/dist/es/interfaces/GridColumnMenuFilterBaseProps.js +1 -0
  49. package/dist/es/interfaces/GridColumnMenuFilterUIProps.js +1 -0
  50. package/dist/es/interfaces/GridColumnMenuGroupBaseProps.js +1 -0
  51. package/dist/es/interfaces/GridColumnMenuProps.js +1 -0
  52. package/dist/es/interfaces/GridColumnMenuSortBaseProps.js +1 -0
  53. package/dist/es/interfaces/GridColumnProps.js +1 -0
  54. package/dist/es/interfaces/GridDetailRowProps.js +1 -0
  55. package/dist/es/interfaces/GridFilterCellProps.js +1 -0
  56. package/dist/es/interfaces/GridFilterOperator.js +1 -0
  57. package/dist/es/interfaces/GridFilterOperators.js +1 -0
  58. package/dist/es/interfaces/GridFooterCellProps.js +1 -0
  59. package/dist/es/interfaces/GridGroupableSettings.js +1 -0
  60. package/dist/es/interfaces/GridHeaderCellProps.js +1 -0
  61. package/dist/es/interfaces/GridNoRecordsProps.js +1 -0
  62. package/dist/es/interfaces/GridProps.js +1 -0
  63. package/dist/es/interfaces/GridRowProps.js +1 -0
  64. package/dist/es/interfaces/GridRowType.js +1 -0
  65. package/dist/es/interfaces/GridSelectableSettings.js +1 -0
  66. package/dist/es/interfaces/GridSortSettings.d.ts +1 -11
  67. package/dist/es/interfaces/GridSortSettings.js +6 -1
  68. package/dist/es/interfaces/GridToolbarProps.js +1 -0
  69. package/dist/es/interfaces/events.js +1 -0
  70. package/dist/es/main.js +1 -0
  71. package/dist/es/messages/index.d.ts +28 -28
  72. package/dist/es/package-metadata.js +1 -1
  73. package/dist/es/paging/Page.js +1 -0
  74. package/dist/es/rows/GridDetailRow.js +3 -1
  75. package/dist/es/rows/GridRow.js +3 -1
  76. package/dist/es/utils/index.js +4 -2
  77. package/dist/npm/Grid.d.ts +5 -4
  78. package/dist/npm/Grid.js +26 -19
  79. package/dist/npm/GridColumn.js +4 -2
  80. package/dist/npm/GridNoRecords.js +4 -1
  81. package/dist/npm/GridToolbar.js +4 -1
  82. package/dist/npm/VirtualScroll.d.ts +2 -2
  83. package/dist/npm/VirtualScroll.js +3 -2
  84. package/dist/npm/cells/GridCell.js +3 -1
  85. package/dist/npm/cells/GridDetailCell.js +3 -1
  86. package/dist/npm/cells/GridDetailHierarchyCell.js +3 -1
  87. package/dist/npm/cells/GridEditCell.js +3 -1
  88. package/dist/npm/cells/GridFilterCell.js +4 -1
  89. package/dist/npm/cells/GridGroupCell.js +3 -1
  90. package/dist/npm/cells/GridHierarchyCell.js +3 -1
  91. package/dist/npm/cells/GridSelectionCell.js +3 -1
  92. package/dist/npm/columnMenu/GridColumnMenuCheckboxFilter.d.ts +2 -2
  93. package/dist/npm/columnMenu/GridColumnMenuCheckboxFilter.js +12 -4
  94. package/dist/npm/columnMenu/GridColumnMenuFilter.d.ts +4 -4
  95. package/dist/npm/columnMenu/GridColumnMenuFilter.js +26 -16
  96. package/dist/npm/columnMenu/GridColumnMenuFilterCell.js +4 -1
  97. package/dist/npm/columnMenu/GridColumnMenuFilterUI.js +4 -1
  98. package/dist/npm/columnMenu/GridColumnMenuGroup.d.ts +1 -1
  99. package/dist/npm/columnMenu/GridColumnMenuGroup.js +4 -1
  100. package/dist/npm/columnMenu/GridColumnMenuItem.js +4 -1
  101. package/dist/npm/columnMenu/GridColumnMenuItemContent.js +4 -1
  102. package/dist/npm/columnMenu/GridColumnMenuItemGroup.js +4 -1
  103. package/dist/npm/columnMenu/GridColumnMenuSort.d.ts +1 -1
  104. package/dist/npm/columnMenu/GridColumnMenuSort.js +4 -1
  105. package/dist/npm/columnMenu/GridColumnMenuWrapper.js +8 -3
  106. package/dist/npm/constants/index.js +1 -0
  107. package/dist/npm/drag/ColumnDraggable.d.ts +1 -2
  108. package/dist/npm/drag/ColumnDraggable.js +4 -1
  109. package/dist/npm/drag/ColumnResize.d.ts +1 -2
  110. package/dist/npm/drag/ColumnResize.js +1 -0
  111. package/dist/npm/drag/ColumnResizer.js +4 -1
  112. package/dist/npm/drag/CommonDragLogic.d.ts +7 -7
  113. package/dist/npm/drag/CommonDragLogic.js +5 -4
  114. package/dist/npm/drag/GroupingIndicator.d.ts +2 -2
  115. package/dist/npm/drag/GroupingIndicator.js +4 -1
  116. package/dist/npm/filterCommon.d.ts +3 -3
  117. package/dist/npm/filterCommon.js +15 -7
  118. package/dist/npm/footer/Footer.js +4 -1
  119. package/dist/npm/footer/FooterRow.d.ts +1 -1
  120. package/dist/npm/footer/FooterRow.js +5 -2
  121. package/dist/npm/header/FilterRow.js +4 -1
  122. package/dist/npm/header/GridHeaderCell.js +4 -1
  123. package/dist/npm/header/GridHeaderSelectionCell.js +4 -1
  124. package/dist/npm/header/GroupPanel.d.ts +2 -2
  125. package/dist/npm/header/GroupPanel.js +4 -1
  126. package/dist/npm/header/Header.d.ts +2 -2
  127. package/dist/npm/header/Header.js +7 -5
  128. package/dist/npm/header/HeaderRow.js +4 -1
  129. package/dist/npm/interfaces/GridSortSettings.d.ts +1 -11
  130. package/dist/npm/interfaces/GridSortSettings.js +9 -2
  131. package/dist/npm/main.js +39 -27
  132. package/dist/npm/messages/index.d.ts +28 -28
  133. package/dist/npm/messages/index.js +2 -1
  134. package/dist/npm/package-metadata.js +2 -1
  135. package/dist/npm/paging/GridPagerSettings.js +3 -1
  136. package/dist/npm/rows/GridDetailRow.js +4 -1
  137. package/dist/npm/rows/GridRow.js +4 -1
  138. package/dist/npm/utils/index.js +9 -4
  139. package/dist/systemjs/kendo-react-grid.js +1 -1
  140. package/package.json +18 -18
@@ -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 __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { DragClue } from '@progress/kendo-react-data-tools';
3
- import { Header } from '../header/Header';
4
3
  /**
5
4
  * @hidden
6
5
  */
@@ -10,7 +9,7 @@ export interface ColumnDraggableProps {
10
9
  releaseHandler?: (draggableEvent: any) => void;
11
10
  ariaRowIndex?: number;
12
11
  dragClue?: React.RefObject<DragClue | null> | null;
13
- headerRef?: React.RefObject<Header | null> | null;
12
+ headerRef?: React.RefObject<HTMLDivElement | null> | null;
14
13
  containerRef?: React.RefObject<HTMLDivElement | null> | null;
15
14
  }
16
15
  /**
@@ -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 __());
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExtendedColumnProps } from '../GridColumn';
3
2
  /**
4
3
  * @hidden
@@ -26,7 +25,7 @@ export declare class ColumnResize {
26
25
  constructor(triggerResize: (index: number, newWidth: number, oldWidth: number, originalEvent: any, end: boolean, targetId?: string) => void);
27
26
  setIsRtl: (isRtl: boolean) => void;
28
27
  dragHandler: (event: any, column: ExtendedColumnProps, dragCue: HTMLSpanElement, end: boolean) => void;
29
- dblClickHandler: (event: import("react").MouseEvent<HTMLSpanElement, MouseEvent>, columnIds: string[]) => void;
28
+ dblClickHandler: (event: React.MouseEvent<HTMLSpanElement, MouseEvent> | null, columnIds: string[]) => void;
30
29
  private fixateInitialWidths;
31
30
  private setWidths;
32
31
  private updateColElements;
@@ -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 __());
@@ -22,14 +22,14 @@ export declare class CommonDragLogic {
22
22
  private groupReorder;
23
23
  private columnToGroup;
24
24
  private groupPanelDivElement;
25
- readonly dragClueRef: React.RefObject<DragClue | null>;
26
- readonly dropClueRef: React.RefObject<DropClue | null>;
27
- private readonly dragElementClue;
28
- private readonly dropElementClue;
25
+ get dragClueRef(): React.RefObject<DragClue | null>;
26
+ get dropClueRef(): React.RefObject<DropClue | null>;
27
+ private get dragElementClue();
28
+ private get dropElementClue();
29
29
  constructor(columnReorder: handler, groupReorder: handler, columnToGroup: handler);
30
- refGroupPanelDiv: (e: HTMLDivElement) => void;
31
- pressHandler: (event: any, element: HTMLDivElement | HTMLTableRowElement) => void;
32
- dragHandler: (event: any, element: HTMLDivElement | HTMLTableRowElement) => void;
30
+ refGroupPanelDiv: (e: HTMLDivElement | null) => void;
31
+ pressHandler: (event: any, element: HTMLTableRowElement | HTMLDivElement) => void;
32
+ dragHandler: (event: any, element: HTMLTableRowElement | HTMLDivElement) => void;
33
33
  releaseHandler: (event: any) => void;
34
34
  private getColumnIndex;
35
35
  private getGroupIndex;
@@ -87,28 +87,28 @@ var CommonDragLogic = /** @class */ (function () {
87
87
  get: function () {
88
88
  return this.refDragElementClue;
89
89
  },
90
- enumerable: true,
90
+ enumerable: false,
91
91
  configurable: true
92
92
  });
93
93
  Object.defineProperty(CommonDragLogic.prototype, "dropClueRef", {
94
94
  get: function () {
95
95
  return this.refDropElementClue;
96
96
  },
97
- enumerable: true,
97
+ enumerable: false,
98
98
  configurable: true
99
99
  });
100
100
  Object.defineProperty(CommonDragLogic.prototype, "dragElementClue", {
101
101
  get: function () {
102
102
  return this.refDragElementClue.current;
103
103
  },
104
- enumerable: true,
104
+ enumerable: false,
105
105
  configurable: true
106
106
  });
107
107
  Object.defineProperty(CommonDragLogic.prototype, "dropElementClue", {
108
108
  get: function () {
109
109
  return this.refDropElementClue.current;
110
110
  },
111
- enumerable: true,
111
+ enumerable: false,
112
112
  configurable: true
113
113
  });
114
114
  CommonDragLogic.prototype.getColumnIndex = function (event, parent) {
@@ -28,7 +28,7 @@ export declare class GroupingIndicator extends React.Component<GroupingIndicator
28
28
  * @hidden
29
29
  */
30
30
  onRelease: (data: any) => void;
31
- sortChange: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
32
- groupRemove: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
31
+ sortChange: (event: React.MouseEvent<HTMLAnchorElement>) => void;
32
+ groupRemove: (event: React.MouseEvent<HTMLButtonElement>) => void;
33
33
  render(): JSX.Element;
34
34
  }
@@ -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 __());
@@ -20,7 +20,7 @@ export declare const IsUnaryFilter: (operator: string) => boolean;
20
20
  /**
21
21
  * @hidden
22
22
  */
23
- export declare const operatorMap: (iterable: any[], service: LocalizationService) => {
23
+ export declare const operatorMap: (iterable: Array<any>, service: LocalizationService) => {
24
24
  text: string;
25
25
  operator: any;
26
26
  }[];
@@ -50,7 +50,7 @@ export declare const defaultHideSecondFilter: {
50
50
  /**
51
51
  * @hidden
52
52
  */
53
- export declare const cellInputChange: (value: any, e: React.SyntheticEvent<any, Event>, props: any) => void;
53
+ export declare const cellInputChange: (value: any, e: React.SyntheticEvent<any>, props: any) => void;
54
54
  /**
55
55
  * @hidden
56
56
  */
@@ -58,7 +58,7 @@ export declare const getDefaultOperator: (filterOperators: GridFilterOperators |
58
58
  /**
59
59
  * @hidden
60
60
  */
61
- export declare const getFilterType: (filterType: "boolean" | "text" | "numeric" | "date") => "boolean" | "text" | "numeric" | "date";
61
+ export declare const getFilterType: (filterType: 'text' | 'numeric' | 'boolean' | 'date' | undefined) => "boolean" | "numeric" | "text" | "date";
62
62
  /**
63
63
  * @hidden
64
64
  */
@@ -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,7 +13,7 @@ export interface FooterRowProps {
13
13
  */
14
14
  export declare class FooterRow extends React.Component<FooterRowProps, {}> {
15
15
  private _element;
16
- readonly element: HTMLTableRowElement;
16
+ get element(): HTMLTableRowElement;
17
17
  render(): JSX.Element;
18
18
  private renderCell;
19
19
  }
@@ -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 __());
@@ -51,7 +53,7 @@ var FooterRow = /** @class */ (function (_super) {
51
53
  get: function () {
52
54
  return this._element;
53
55
  },
54
- enumerable: true,
56
+ enumerable: false,
55
57
  configurable: true
56
58
  });
57
59
  FooterRow.prototype.render = function () {
@@ -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 __());
@@ -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 __());
@@ -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,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),
@@ -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 __());
@@ -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 {};
@@ -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 {};
@@ -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,8 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
2
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
3
+ to[j] = from[i];
4
+ return to;
5
+ };
1
6
  /**
2
7
  * @hidden
3
8
  */
@@ -6,5 +11,5 @@ export var normalize = function () {
6
11
  for (var _i = 0; _i < arguments.length; _i++) {
7
12
  settings[_i] = arguments[_i];
8
13
  }
9
- return Object.assign.apply(Object, [{ allowUnsort: true, mode: 'single' }].concat(settings));
14
+ return Object.assign.apply(Object, __spreadArray([{ allowUnsort: true, mode: 'single' }], settings));
10
15
  };
@@ -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: 1653457163,
8
+ publishDate: 1653648614,
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 __());