@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
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.GridColumnMenuFilterCell = void 0;
16
19
  var React = require("react");
17
20
  var kendo_react_dropdowns_1 = require("@progress/kendo-react-dropdowns");
18
21
  var kendo_react_inputs_1 = require("@progress/kendo-react-inputs");
@@ -46,13 +49,13 @@ var GridColumnMenuFilterCell = /** @class */ (function (_super) {
46
49
  this.filterComponent(this.props.filterType, this.props.value, this.props.booleanValues)));
47
50
  };
48
51
  GridColumnMenuFilterCell.prototype.inputChange = function (value, e) {
49
- filterCommon_1.cellInputChange(value, e, this.props);
52
+ (0, filterCommon_1.cellInputChange)(value, e, this.props);
50
53
  };
51
54
  GridColumnMenuFilterCell.prototype.operatorChange = function (event) {
52
- filterCommon_1.cellOperatorChange(event, this.props.value, this.props.onChange);
55
+ (0, filterCommon_1.cellOperatorChange)(event, this.props.value, this.props.onChange);
53
56
  };
54
57
  GridColumnMenuFilterCell.prototype.boolDropdownChange = function (event) {
55
- filterCommon_1.cellBoolDropdownChange(event, this.props.onChange);
58
+ (0, filterCommon_1.cellBoolDropdownChange)(event, this.props.onChange);
56
59
  };
57
60
  GridColumnMenuFilterCell.prototype.filterComponent = function (filterType, value, booleanValues) {
58
61
  var _this = this;
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
24
26
  return __assign.apply(this, arguments);
25
27
  };
26
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.GridColumnMenuFilterUI = void 0;
27
30
  var React = require("react");
28
31
  var GridColumnMenuFilterCell_1 = require("./GridColumnMenuFilterCell");
29
32
  var kendo_react_dropdowns_1 = require("@progress/kendo-react-dropdowns");
@@ -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
  */
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.GridColumnMenuGroup = void 0;
16
19
  var React = require("react");
17
20
  var kendo_react_intl_1 = require("@progress/kendo-react-intl");
18
21
  var GridColumnMenuItemGroup_1 = require("./GridColumnMenuItemGroup");
@@ -111,7 +114,7 @@ var GridColumnMenuGroup = /** @class */ (function (_super) {
111
114
  */
112
115
  GridColumnMenuGroup.prototype.render = function () {
113
116
  var _a = this.props, group = _a.group, column = _a.column;
114
- var localizationService = kendo_react_intl_1.provideLocalizationService(this);
117
+ var localizationService = (0, kendo_react_intl_1.provideLocalizationService)(this);
115
118
  var isGrouped = Boolean(group && column.field && group.find(function (currentGroup) { return currentGroup.field === column.field; }));
116
119
  var message = !isGrouped ? messages_1.groupColumn : messages_1.ungroupColumn;
117
120
  var iconClass = !isGrouped ? 'k-i-group' : 'k-i-ungroup';
@@ -121,5 +124,5 @@ var GridColumnMenuGroup = /** @class */ (function (_super) {
121
124
  return GridColumnMenuGroup;
122
125
  }(React.Component));
123
126
  exports.GridColumnMenuGroup = GridColumnMenuGroup;
124
- kendo_react_intl_1.registerForIntl(GridColumnMenuGroup);
125
- kendo_react_intl_1.registerForLocalization(GridColumnMenuGroup);
127
+ (0, kendo_react_intl_1.registerForIntl)(GridColumnMenuGroup);
128
+ (0, kendo_react_intl_1.registerForLocalization)(GridColumnMenuGroup);
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.GridColumnMenuItem = void 0;
16
19
  var React = require("react");
17
20
  /**
18
21
  * The GridColumnMenuItem component that is used inside the Grid ColumnMenu.
@@ -33,8 +36,8 @@ var GridColumnMenuItem = /** @class */ (function (_super) {
33
36
  */
34
37
  GridColumnMenuItem.prototype.render = function () {
35
38
  var _a = this.props, title = _a.title, iconClass = _a.iconClass, selected = _a.selected;
36
- return (React.createElement("div", { onClick: this.onClick, className: "k-columnmenu-item " + (selected ? 'k-selected' : '') },
37
- iconClass && React.createElement("span", { className: "k-icon " + iconClass }),
39
+ return (React.createElement("div", { onClick: this.onClick, className: "k-columnmenu-item ".concat(selected ? 'k-selected' : '') },
40
+ iconClass && React.createElement("span", { className: "k-icon ".concat(iconClass) }),
38
41
  title));
39
42
  };
40
43
  return GridColumnMenuItem;
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.GridColumnMenuItemContent = void 0;
16
19
  var React = require("react");
17
20
  var kendo_react_animation_1 = require("@progress/kendo-react-animation");
18
21
  var kendo_react_common_1 = require("@progress/kendo-react-common");
@@ -28,7 +31,7 @@ var GridColumnMenuItemContent = /** @class */ (function (_super) {
28
31
  * @hidden
29
32
  */
30
33
  GridColumnMenuItemContent.prototype.render = function () {
31
- return (React.createElement("div", { id: this.props.id, className: kendo_react_common_1.classNames('k-columnmenu-item-content', this.props.className), style: this.props.style },
34
+ return (React.createElement("div", { id: this.props.id, className: (0, kendo_react_common_1.classNames)('k-columnmenu-item-content', this.props.className), style: this.props.style },
32
35
  React.createElement(kendo_react_animation_1.Reveal, { style: { position: 'relative', display: 'block' } }, this.props.show ? this.props.children : null)));
33
36
  };
34
37
  return GridColumnMenuItemContent;
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.GridColumnMenuItemGroup = void 0;
16
19
  var kendo_react_common_1 = require("@progress/kendo-react-common");
17
20
  var React = require("react");
18
21
  /**
@@ -28,7 +31,7 @@ var GridColumnMenuItemGroup = /** @class */ (function (_super) {
28
31
  */
29
32
  GridColumnMenuItemGroup.prototype.render = function () {
30
33
  var children = this.props.children;
31
- return (React.createElement("div", { id: this.props.id, className: kendo_react_common_1.classNames('k-columnmenu-item-wrapper', this.props.className), style: this.props.style }, children));
34
+ return (React.createElement("div", { id: this.props.id, className: (0, kendo_react_common_1.classNames)('k-columnmenu-item-wrapper', this.props.className), style: this.props.style }, children));
32
35
  };
33
36
  return GridColumnMenuItemGroup;
34
37
  }(React.Component));
@@ -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
  */
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.GridColumnMenuSort = void 0;
16
19
  var React = require("react");
17
20
  var GridColumnMenuItem_1 = require("./GridColumnMenuItem");
18
21
  var GridColumnMenuItemGroup_1 = require("./GridColumnMenuItemGroup");
@@ -149,7 +152,7 @@ var GridColumnMenuSort = /** @class */ (function (_super) {
149
152
  return;
150
153
  }
151
154
  var _a = _this.props, column = _a.column, sortable = _a.sortable, sort = _a.sort;
152
- var _b = GridSortSettings_1.normalize(sortable || false, false), allowUnsort = _b.allowUnsort, mode = _b.mode;
155
+ var _b = (0, GridSortSettings_1.normalize)(sortable || false, false), allowUnsort = _b.allowUnsort, mode = _b.mode;
153
156
  var oldDescriptor = (sort || []).filter(function (d) { return d.field === column.field; })[0];
154
157
  var dir = sortSeqMap[allowUnsort][oldDescriptor && oldDescriptor.dir || ''][selectedDir];
155
158
  var newDescriptor = (mode === 'single') ?
@@ -167,7 +170,7 @@ var GridColumnMenuSort = /** @class */ (function (_super) {
167
170
  GridColumnMenuSort.prototype.render = function () {
168
171
  var _a = this.props, sort = _a.sort, column = _a.column;
169
172
  var currentSortIndex = sortIndex(column.field, sort);
170
- var localizationService = kendo_react_intl_1.provideLocalizationService(this);
173
+ var localizationService = (0, kendo_react_intl_1.provideLocalizationService)(this);
171
174
  return (React.createElement(GridColumnMenuItemGroup_1.GridColumnMenuItemGroup, null,
172
175
  React.createElement(GridColumnMenuItem_1.GridColumnMenuItem, { title: localizationService.toLanguageString(messages_1.sortAscending, messages_1.messages[messages_1.sortAscending]), iconClass: 'k-i-sort-asc-sm', selected: sortedAsc(currentSortIndex, sort), onClick: this.onAscClick }),
173
176
  React.createElement(GridColumnMenuItem_1.GridColumnMenuItem, { title: localizationService.toLanguageString(messages_1.sortDescending, messages_1.messages[messages_1.sortDescending]), iconClass: 'k-i-sort-desc-sm', selected: sortedDesc(currentSortIndex, sort), onClick: this.onDescClick })));
@@ -184,5 +187,5 @@ var GridColumnMenuSort = /** @class */ (function (_super) {
184
187
  return GridColumnMenuSort;
185
188
  }(React.Component));
186
189
  exports.GridColumnMenuSort = GridColumnMenuSort;
187
- kendo_react_intl_1.registerForIntl(GridColumnMenuSort);
188
- kendo_react_intl_1.registerForLocalization(GridColumnMenuSort);
190
+ (0, kendo_react_intl_1.registerForIntl)(GridColumnMenuSort);
191
+ (0, kendo_react_intl_1.registerForLocalization)(GridColumnMenuSort);
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -28,11 +30,14 @@ var __rest = (this && this.__rest) || function (s, e) {
28
30
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
29
31
  t[p] = s[p];
30
32
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
31
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
32
- t[p[i]] = s[p[i]];
33
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
+ t[p[i]] = s[p[i]];
36
+ }
33
37
  return t;
34
38
  };
35
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.GridColumnMenuWrapper = void 0;
36
41
  var React = require("react");
37
42
  var kendo_react_popup_1 = require("@progress/kendo-react-popup");
38
43
  /**
@@ -47,6 +52,10 @@ var GridColumnMenuWrapper = /** @class */ (function (_super) {
47
52
  show: false
48
53
  };
49
54
  /** @hidden */
55
+ _this._anchor = null;
56
+ /** @hidden */
57
+ _this._content = null;
58
+ /** @hidden */
50
59
  _this.blurTimeout = undefined;
51
60
  /** @hidden */
52
61
  _this.blur = function () {
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GRID_PREVENT_SELECTION_ELEMENT = exports.GRID_COL_INDEX_ATTRIBUTE = exports.GRID_ROW_INDEX_ATTRIBUTE = void 0;
3
4
  var kendo_react_data_tools_1 = require("@progress/kendo-react-data-tools");
4
5
  /** The attribute required by the Grid selection on Grid `tr` elements. */
5
6
  exports.GRID_ROW_INDEX_ATTRIBUTE = kendo_react_data_tools_1.TABLE_ROW_INDEX_ATTRIBUTE;
@@ -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
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ColumnDraggable = void 0;
16
19
  var React = require("react");
17
20
  var kendo_react_common_1 = require("@progress/kendo-react-common");
18
21
  /**
@@ -22,6 +25,7 @@ var ColumnDraggable = /** @class */ (function (_super) {
22
25
  __extends(ColumnDraggable, _super);
23
26
  function ColumnDraggable() {
24
27
  var _this = _super !== null && _super.apply(this, arguments) || this;
28
+ _this.draggable = null;
25
29
  /**
26
30
  * @hidden
27
31
  */
@@ -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;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ColumnResize = void 0;
3
4
  // offsetWidth() is slowly transition to reporting double instead of integet in all browsers
4
5
  // during this process (which is a bit back-and-forth) we need to make sure we are working across all browsers and versions
5
6
  var OFFSET_ROUND = 1;
@@ -9,6 +10,9 @@ var OFFSET_ROUND = 1;
9
10
  var ColumnResize = /** @class */ (function () {
10
11
  function ColumnResize(triggerResize) {
11
12
  var _this = this;
13
+ // Typings. `col` and `colgroup` do not differ, both represnt a `HTMLTableColElement`.
14
+ // Implemented as `any`.
15
+ this.columns = [];
12
16
  /**
13
17
  * The settings for resizing the Grid.
14
18
  */
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ColumnResizer = void 0;
16
19
  var React = require("react");
17
20
  var kendo_react_common_1 = require("@progress/kendo-react-common");
18
21
  /**
@@ -22,6 +25,8 @@ var ColumnResizer = /** @class */ (function (_super) {
22
25
  __extends(ColumnResizer, _super);
23
26
  function ColumnResizer() {
24
27
  var _this = _super !== null && _super.apply(this, arguments) || this;
28
+ _this.draggable = null;
29
+ _this.isDragged = false;
25
30
  /**
26
31
  * @hidden
27
32
  */
@@ -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;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommonDragLogic = void 0;
3
4
  var React = require("react");
4
5
  var kendo_react_data_tools_1 = require("@progress/kendo-react-data-tools");
5
6
  /**
@@ -10,6 +11,7 @@ var CommonDragLogic = /** @class */ (function () {
10
11
  var _this = this;
11
12
  this.refDragElementClue = React.createRef();
12
13
  this.refDropElementClue = React.createRef();
14
+ this.columns = [];
13
15
  this.reorderable = false;
14
16
  this.groupable = false;
15
17
  this.startColumn = -1;
@@ -89,35 +91,35 @@ var CommonDragLogic = /** @class */ (function () {
89
91
  get: function () {
90
92
  return this.refDragElementClue;
91
93
  },
92
- enumerable: true,
94
+ enumerable: false,
93
95
  configurable: true
94
96
  });
95
97
  Object.defineProperty(CommonDragLogic.prototype, "dropClueRef", {
96
98
  get: function () {
97
99
  return this.refDropElementClue;
98
100
  },
99
- enumerable: true,
101
+ enumerable: false,
100
102
  configurable: true
101
103
  });
102
104
  Object.defineProperty(CommonDragLogic.prototype, "dragElementClue", {
103
105
  get: function () {
104
106
  return this.refDragElementClue.current;
105
107
  },
106
- enumerable: true,
108
+ enumerable: false,
107
109
  configurable: true
108
110
  });
109
111
  Object.defineProperty(CommonDragLogic.prototype, "dropElementClue", {
110
112
  get: function () {
111
113
  return this.refDropElementClue.current;
112
114
  },
113
- enumerable: true,
115
+ enumerable: false,
114
116
  configurable: true
115
117
  });
116
118
  CommonDragLogic.prototype.getColumnIndex = function (event, parent) {
117
119
  if (!parent || (parent.parentElement === this.groupPanelDivElement)) {
118
120
  return -1;
119
121
  }
120
- var index = kendo_react_data_tools_1.getIndex(event, parent);
122
+ var index = (0, kendo_react_data_tools_1.getIndex)(event, parent);
121
123
  if (index === -1) {
122
124
  return -1;
123
125
  }
@@ -135,7 +137,7 @@ var CommonDragLogic = /** @class */ (function () {
135
137
  return -1;
136
138
  };
137
139
  CommonDragLogic.prototype.getGroupIndex = function (event) {
138
- return kendo_react_data_tools_1.getIndex(event, this.groupPanelDivElement);
140
+ return (0, kendo_react_data_tools_1.getIndex)(event, this.groupPanelDivElement);
139
141
  };
140
142
  CommonDragLogic.prototype.isValid = function () {
141
143
  if (this.startGroup >= 0) {
@@ -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
  }
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.GroupingIndicator = void 0;
16
19
  var React = require("react");
17
20
  var kendo_react_common_1 = require("@progress/kendo-react-common");
18
21
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
@@ -23,6 +26,7 @@ var GroupingIndicator = /** @class */ (function (_super) {
23
26
  __extends(GroupingIndicator, _super);
24
27
  function GroupingIndicator() {
25
28
  var _this = _super !== null && _super.apply(this, arguments) || this;
29
+ _this.draggable = null;
26
30
  /**
27
31
  * @hidden
28
32
  */
@@ -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
  */