@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
@@ -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,6 +24,15 @@ var __assign = (this && this.__assign) || function () {
22
24
  };
23
25
  return __assign.apply(this, arguments);
24
26
  };
27
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
28
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
29
+ if (ar || !(i in from)) {
30
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
31
+ ar[i] = from[i];
32
+ }
33
+ }
34
+ return to.concat(ar || Array.prototype.slice.call(from));
35
+ };
25
36
  import * as React from 'react';
26
37
  import { isCompositeFilterDescriptor } from '@progress/kendo-data-query';
27
38
  import { GridColumnMenuItem } from './GridColumnMenuItem';
@@ -119,21 +130,21 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
119
130
  * @hidden
120
131
  */
121
132
  _this.removeGroup = function (group, rootFilter) {
122
- var filters = rootFilter.filters.slice();
133
+ var filters = __spreadArray([], rootFilter.filters, true);
123
134
  var groupIndex = filters
124
135
  .findIndex(function (f) { return f === group; });
125
136
  if (groupIndex > -1) {
126
137
  filters.splice(groupIndex, 1);
127
138
  }
128
- return __assign({}, rootFilter, { filters: filters });
139
+ return __assign(__assign({}, rootFilter), { filters: filters });
129
140
  };
130
141
  /**
131
142
  * @hidden
132
143
  */
133
144
  _this.insertGroup = function (group, rootFilter) {
134
- return __assign({}, rootFilter, { filters: [
145
+ return __assign(__assign({}, rootFilter), { filters: __spreadArray([
135
146
  group
136
- ].concat(rootFilter.filters) });
147
+ ], rootFilter.filters, true) });
137
148
  };
138
149
  /**
139
150
  * @hidden
@@ -172,12 +183,12 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
172
183
  _this.filterChange = function (filterIndex, e) {
173
184
  var filters = _this.state.filterGroup.filters.map(function (f, i) {
174
185
  if (i === filterIndex) {
175
- return __assign({}, f, { value: e.value, operator: e.operator });
186
+ return __assign(__assign({}, f), { value: e.value, operator: e.operator });
176
187
  }
177
188
  return f;
178
189
  });
179
190
  _this.setState({
180
- filterGroup: __assign({}, _this.state.filterGroup, { filters: filters })
191
+ filterGroup: __assign(__assign({}, _this.state.filterGroup), { filters: filters })
181
192
  });
182
193
  };
183
194
  /**
@@ -185,7 +196,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
185
196
  */
186
197
  _this.logicChange = function (event) {
187
198
  _this.setState({
188
- filterGroup: __assign({}, _this.state.filterGroup, { logic: event.target.value.operator })
199
+ filterGroup: __assign(__assign({}, _this.state.filterGroup), { logic: event.target.value.operator })
189
200
  });
190
201
  };
191
202
  /**
@@ -204,7 +215,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
204
215
  _this.props.onFilterChange(null, event);
205
216
  }
206
217
  else {
207
- _this.props.onFilterChange(__assign({}, rootFilter, { filters: rootFilters }), event);
218
+ _this.props.onFilterChange(__assign(__assign({}, rootFilter), { filters: rootFilters }), event);
208
219
  }
209
220
  if (_this.props.onCloseMenu) {
210
221
  _this.props.onCloseMenu();
@@ -214,7 +225,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
214
225
  * @hidden
215
226
  */
216
227
  _this.currentFilterGroup = function () {
217
- return __assign({}, _this.state.filterGroup, { filters: _this.state
228
+ return __assign(__assign({}, _this.state.filterGroup), { filters: _this.state
218
229
  .filterGroup
219
230
  .filters
220
231
  .filter(function (nf) {
@@ -242,18 +253,18 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
242
253
  }
243
254
  return f;
244
255
  });
245
- updatedFilter = __assign({}, rootFilter, { filters: rootFilters });
256
+ updatedFilter = __assign(__assign({}, rootFilter), { filters: rootFilters });
246
257
  }
247
258
  else if (currentFilterGroup.filters.length === 0) {
248
259
  var rootFilters = rootFilter
249
260
  .filters
250
261
  .filter(function (f) { return f !== filterGroup; });
251
262
  if (rootFilters.length) {
252
- updatedFilter = __assign({}, rootFilter, { filters: rootFilters });
263
+ updatedFilter = __assign(__assign({}, rootFilter), { filters: rootFilters });
253
264
  }
254
265
  }
255
266
  else {
256
- updatedFilter = __assign({}, rootFilter, { filters: rootFilter.filters.concat([currentFilterGroup]) });
267
+ updatedFilter = __assign(__assign({}, rootFilter), { filters: __spreadArray(__spreadArray([], rootFilter.filters, true), [currentFilterGroup], false) });
257
268
  }
258
269
  _this.props.onFilterChange(updatedFilter, event);
259
270
  if (_this.props.onCloseMenu) {
@@ -265,7 +276,7 @@ var GridColumnMenuFilter = /** @class */ (function (_super) {
265
276
  var filterType = getFilterType(props.column.filter);
266
277
  var defaultOperator = getDefaultOperator(props.filterOperators, filterType);
267
278
  filterGroup = filterGroupByField(props.column.field, props.filter);
268
- filterGroup = filterGroup ? __assign({}, filterGroup, { filters: filterGroup.filters.map(function (f) {
279
+ filterGroup = filterGroup ? __assign(__assign({}, filterGroup), { filters: filterGroup.filters.map(function (f) {
269
280
  return __assign({}, f);
270
281
  }) }) : {
271
282
  logic: 'and',
@@ -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 __());
@@ -65,7 +65,7 @@ export declare class GridColumnMenuGroup extends React.Component<GridColumnMenuG
65
65
  /**
66
66
  * @hidden
67
67
  */
68
- onGroupClick: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
68
+ onGroupClick: (event: React.MouseEvent<HTMLAnchorElement>) => void;
69
69
  /**
70
70
  * @hidden
71
71
  */
@@ -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 __());
@@ -31,8 +33,8 @@ var GridColumnMenuItem = /** @class */ (function (_super) {
31
33
  */
32
34
  GridColumnMenuItem.prototype.render = function () {
33
35
  var _a = this.props, title = _a.title, iconClass = _a.iconClass, selected = _a.selected;
34
- return (React.createElement("div", { onClick: this.onClick, className: "k-columnmenu-item " + (selected ? 'k-selected' : '') },
35
- iconClass && React.createElement("span", { className: "k-icon " + iconClass }),
36
+ return (React.createElement("div", { onClick: this.onClick, className: "k-columnmenu-item ".concat(selected ? 'k-selected' : '') },
37
+ iconClass && React.createElement("span", { className: "k-icon ".concat(iconClass) }),
36
38
  title));
37
39
  };
38
40
  return GridColumnMenuItem;
@@ -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 __());
@@ -77,7 +77,7 @@ export declare class GridColumnMenuSort extends React.Component<GridColumnMenuSo
77
77
  /**
78
78
  * @hidden
79
79
  */
80
- onSort: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>, selectedDir: "desc" | "asc") => void;
80
+ onSort: (event: React.MouseEvent<HTMLAnchorElement>, selectedDir: 'asc' | 'desc') => void;
81
81
  /**
82
82
  * @hidden
83
83
  */
@@ -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 __());
@@ -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';
@@ -45,6 +49,10 @@ var GridColumnMenuWrapper = /** @class */ (function (_super) {
45
49
  show: false
46
50
  };
47
51
  /** @hidden */
52
+ _this._anchor = null;
53
+ /** @hidden */
54
+ _this._content = null;
55
+ /** @hidden */
48
56
  _this.blurTimeout = undefined;
49
57
  /** @hidden */
50
58
  _this.blur = function () {
@@ -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,8 +9,9 @@ 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;
14
+ children?: React.ReactNode;
15
15
  }
16
16
  /**
17
17
  * @hidden
@@ -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,6 +22,7 @@ var ColumnDraggable = /** @class */ (function (_super) {
20
22
  __extends(ColumnDraggable, _super);
21
23
  function ColumnDraggable() {
22
24
  var _this = _super !== null && _super.apply(this, arguments) || this;
25
+ _this.draggable = null;
23
26
  /**
24
27
  * @hidden
25
28
  */
@@ -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;
@@ -7,6 +7,9 @@ var OFFSET_ROUND = 1;
7
7
  var ColumnResize = /** @class */ (function () {
8
8
  function ColumnResize(triggerResize) {
9
9
  var _this = this;
10
+ // Typings. `col` and `colgroup` do not differ, both represnt a `HTMLTableColElement`.
11
+ // Implemented as `any`.
12
+ this.columns = [];
10
13
  /**
11
14
  * The settings for resizing the Grid.
12
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 __());
@@ -20,6 +22,8 @@ var ColumnResizer = /** @class */ (function (_super) {
20
22
  __extends(ColumnResizer, _super);
21
23
  function ColumnResizer() {
22
24
  var _this = _super !== null && _super.apply(this, arguments) || this;
25
+ _this.draggable = null;
26
+ _this.isDragged = false;
23
27
  /**
24
28
  * @hidden
25
29
  */
@@ -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;
@@ -8,6 +8,7 @@ var CommonDragLogic = /** @class */ (function () {
8
8
  var _this = this;
9
9
  this.refDragElementClue = React.createRef();
10
10
  this.refDropElementClue = React.createRef();
11
+ this.columns = [];
11
12
  this.reorderable = false;
12
13
  this.groupable = false;
13
14
  this.startColumn = -1;
@@ -87,28 +88,28 @@ var CommonDragLogic = /** @class */ (function () {
87
88
  get: function () {
88
89
  return this.refDragElementClue;
89
90
  },
90
- enumerable: true,
91
+ enumerable: false,
91
92
  configurable: true
92
93
  });
93
94
  Object.defineProperty(CommonDragLogic.prototype, "dropClueRef", {
94
95
  get: function () {
95
96
  return this.refDropElementClue;
96
97
  },
97
- enumerable: true,
98
+ enumerable: false,
98
99
  configurable: true
99
100
  });
100
101
  Object.defineProperty(CommonDragLogic.prototype, "dragElementClue", {
101
102
  get: function () {
102
103
  return this.refDragElementClue.current;
103
104
  },
104
- enumerable: true,
105
+ enumerable: false,
105
106
  configurable: true
106
107
  });
107
108
  Object.defineProperty(CommonDragLogic.prototype, "dropElementClue", {
108
109
  get: function () {
109
110
  return this.refDropElementClue.current;
110
111
  },
111
- enumerable: true,
112
+ enumerable: false,
112
113
  configurable: true
113
114
  });
114
115
  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 __());
@@ -21,6 +23,7 @@ var GroupingIndicator = /** @class */ (function (_super) {
21
23
  __extends(GroupingIndicator, _super);
22
24
  function GroupingIndicator() {
23
25
  var _this = _super !== null && _super.apply(this, arguments) || this;
26
+ _this.draggable = null;
24
27
  /**
25
28
  * @hidden
26
29
  */
@@ -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 | null;
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 __());
@@ -42,7 +44,7 @@ var FilterRow = /** @class */ (function (_super) {
42
44
  return _super !== null && _super.apply(this, arguments) || this;
43
45
  }
44
46
  FilterRow.prototype.headerCellClassName = function (field, locked) {
45
- var result = "" + (locked ? 'k-grid-header-sticky' : '');
47
+ var result = "".concat(locked ? 'k-grid-header-sticky' : '');
46
48
  if (this.props.sort &&
47
49
  this.props.sort.filter(function (descriptor) { return descriptor.field === field; }).length > 0) {
48
50
  result += ' k-sorted';
@@ -48,5 +48,5 @@ export declare class GridHeaderCell extends React.Component<GridHeaderCellProps,
48
48
  /**
49
49
  * @hidden
50
50
  */
51
- render(): any;
51
+ render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
52
52
  }
@@ -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,5 +5,5 @@ import { GridHeaderCellProps } from '../interfaces/GridHeaderCellProps';
5
5
  */
6
6
  export declare class GridHeaderSelectionCell extends React.Component<GridHeaderCellProps> {
7
7
  private _inputId;
8
- render(): any;
8
+ render(): string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | (JSX.Element | null | undefined)[] | null | undefined;
9
9
  }
@@ -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 __());