@progress/kendo-react-grid 5.10.0-dev.202301111405 → 5.10.0-dev.202301121619

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.
package/dist/es/Grid.js CHANGED
@@ -677,7 +677,8 @@ var Grid = /** @class */ (function (_super) {
677
677
  Grid.prototype.columnReorder = function (prev, next, nativeEvent) {
678
678
  var _a;
679
679
  var _this = this;
680
- var depth = this._columns[prev].depth;
680
+ var column = this._columns[prev];
681
+ var depth = column.depth;
681
682
  var end = function (index) {
682
683
  do {
683
684
  index++;
@@ -691,11 +692,13 @@ var Grid = /** @class */ (function (_super) {
691
692
  var eventColumnProps = this.columns;
692
693
  this.forceUpdate();
693
694
  if (this.props.onColumnReorder) {
694
- this.props.onColumnReorder.call(undefined, {
695
+ var reorderEvent = {
695
696
  target: this,
696
697
  columns: eventColumnProps,
698
+ columnId: column.id,
697
699
  nativeEvent: nativeEvent
698
- });
700
+ };
701
+ this.props.onColumnReorder.call(undefined, reorderEvent);
699
702
  }
700
703
  };
701
704
  Grid.prototype.groupReorder = function (prevIndex, nextIndex, nativeEvent) {
@@ -202,4 +202,8 @@ export interface GridColumnReorderEvent {
202
202
  * The current columns collection.
203
203
  */
204
204
  columns: GridColumnProps[];
205
+ /**
206
+ * The id of the dragged column.
207
+ */
208
+ columnId?: string;
205
209
  }
@@ -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: 1673445141,
8
+ publishDate: 1673539236,
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
  };
package/dist/npm/Grid.js CHANGED
@@ -680,7 +680,8 @@ var Grid = /** @class */ (function (_super) {
680
680
  Grid.prototype.columnReorder = function (prev, next, nativeEvent) {
681
681
  var _a;
682
682
  var _this = this;
683
- var depth = this._columns[prev].depth;
683
+ var column = this._columns[prev];
684
+ var depth = column.depth;
684
685
  var end = function (index) {
685
686
  do {
686
687
  index++;
@@ -694,11 +695,13 @@ var Grid = /** @class */ (function (_super) {
694
695
  var eventColumnProps = this.columns;
695
696
  this.forceUpdate();
696
697
  if (this.props.onColumnReorder) {
697
- this.props.onColumnReorder.call(undefined, {
698
+ var reorderEvent = {
698
699
  target: this,
699
700
  columns: eventColumnProps,
701
+ columnId: column.id,
700
702
  nativeEvent: nativeEvent
701
- });
703
+ };
704
+ this.props.onColumnReorder.call(undefined, reorderEvent);
702
705
  }
703
706
  };
704
707
  Grid.prototype.groupReorder = function (prevIndex, nextIndex, nativeEvent) {
@@ -202,4 +202,8 @@ export interface GridColumnReorderEvent {
202
202
  * The current columns collection.
203
203
  */
204
204
  columns: GridColumnProps[];
205
+ /**
206
+ * The id of the dragged column.
207
+ */
208
+ columnId?: string;
205
209
  }
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-grid',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1673445141,
11
+ publishDate: 1673539236,
12
12
  version: '',
13
13
  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'
14
14
  };