igniteui-angular 15.1.23 → 15.1.24

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.
@@ -30223,20 +30223,25 @@ class IgxButtonGroupComponent extends DisplayDensityBase {
30223
30223
  */
30224
30224
  _clickHandler(index) {
30225
30225
  const button = this.buttons[index];
30226
+ const args = { cancel: false, button, index };
30226
30227
  if (!this.multiSelection) {
30227
30228
  this.buttons.forEach((b, i) => {
30228
30229
  if (i !== index && this.selectedIndexes.indexOf(i) !== -1) {
30229
- this.deselected.emit({ button: b, index: i });
30230
+ this.deselected.emit({ cancel: false, button: b, index: i });
30230
30231
  }
30231
30232
  });
30232
30233
  }
30233
30234
  if (this.selectedIndexes.indexOf(index) === -1) {
30234
- this.selectButton(index);
30235
- this.selected.emit({ button, index });
30235
+ this.selected.emit(args);
30236
+ if (!args.cancel) {
30237
+ this.selectButton(index);
30238
+ }
30236
30239
  }
30237
30240
  else {
30238
- this.deselectButton(index);
30239
- this.deselected.emit({ button, index });
30241
+ this.deselected.emit(args);
30242
+ if (!args.cancel) {
30243
+ this.deselectButton(index);
30244
+ }
30240
30245
  }
30241
30246
  }
30242
30247
  }
@@ -51102,12 +51107,7 @@ class IgxGridCell {
51102
51107
  this._row = row;
51103
51108
  this._rowIndex = row.index;
51104
51109
  }
51105
- if (typeof column === 'string') {
51106
- this._columnField = column;
51107
- }
51108
- else {
51109
- this._column = column;
51110
- }
51110
+ this._column = column;
51111
51111
  }
51112
51112
  /**
51113
51113
  * Returns the row containing the cell.
@@ -51129,7 +51129,7 @@ class IgxGridCell {
51129
51129
  * @memberof IgxGridCell
51130
51130
  */
51131
51131
  get column() {
51132
- return this._column || this.grid.getColumnByName(this._columnField);
51132
+ return this._column;
51133
51133
  }
51134
51134
  /**
51135
51135
  * Gets the current edit value while a cell is in edit mode.
@@ -52030,7 +52030,7 @@ class IgxColumnComponent {
52030
52030
  .map((rec, index) => {
52031
52031
  if (!this.grid.isGroupByRecord(rec) && !this.grid.isSummaryRow(rec)) {
52032
52032
  this.grid.pagingMode === 1 && this.grid.page !== 0 ? index = index + this.grid.perPage * this.grid.page : index = this.grid.dataRowList.first.index + index;
52033
- const cell = new IgxGridCell(this.grid, index, this.field);
52033
+ const cell = new IgxGridCell(this.grid, index, this);
52034
52034
  return cell;
52035
52035
  }
52036
52036
  }).filter(cell => cell);
@@ -52918,7 +52918,8 @@ class IgxColumnComponent {
52918
52918
  }
52919
52919
  }
52920
52920
  if (hasIndex) {
52921
- grid._moveColumns(this, targetColumn);
52921
+ index === grid._pinnedColumns.length - 1 ?
52922
+ grid._moveColumns(this, targetColumn, DropPosition.AfterDropTarget) : grid._moveColumns(this, targetColumn, DropPosition.BeforeDropTarget);
52922
52923
  }
52923
52924
  if (this.columnGroup) {
52924
52925
  this.allChildren.forEach(child => child.pin());
@@ -54751,7 +54752,7 @@ class BaseRow {
54751
54752
  get cells() {
54752
54753
  const res = [];
54753
54754
  this.grid.columns.forEach(col => {
54754
- const cell = new IgxGridCell(this.grid, this.index, col.field);
54755
+ const cell = new IgxGridCell(this.grid, this.index, col);
54755
54756
  res.push(cell);
54756
54757
  });
54757
54758
  return res;
@@ -55058,7 +55059,7 @@ class IgxHierarchicalGridRow extends BaseRow {
55058
55059
  get cells() {
55059
55060
  const res = [];
55060
55061
  this.grid.columns.forEach(col => {
55061
- const cell = new IgxGridCell(this.grid, this.index, col.field);
55062
+ const cell = new IgxGridCell(this.grid, this.index, col);
55062
55063
  res.push(cell);
55063
55064
  });
55064
55065
  return res;
@@ -71185,7 +71186,7 @@ class IgxGridCellComponent {
71185
71186
  }
71186
71187
  getCellType(useRow) {
71187
71188
  const rowID = useRow ? this.grid.createRow(this.intRow.index, this.intRow.data) : this.intRow.index;
71188
- return new IgxGridCell(this.grid, rowID, this.column.field);
71189
+ return new IgxGridCell(this.grid, rowID, this.column);
71189
71190
  }
71190
71191
  }
71191
71192
  IgxGridCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: IgxGridCellComponent, deps: [{ token: IgxGridSelectionService }, { token: IGX_GRID_BASE }, { token: IgxOverlayService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: HammerGesturesManager }, { token: PlatformUtil }], target: i0.ɵɵFactoryTarget.Component });
@@ -72104,7 +72105,7 @@ class IgxGridComponent extends IgxGridBaseDirective {
72104
72105
  const row = this.getRowByIndex(rowIndex);
72105
72106
  const column = this._columns.find((col) => col.visibleIndex === index);
72106
72107
  if (row && row instanceof IgxGridRow && !row.data?.detailsData && column) {
72107
- return new IgxGridCell(this, rowIndex, column.field);
72108
+ return new IgxGridCell(this, rowIndex, column);
72108
72109
  }
72109
72110
  }
72110
72111
  /**
@@ -72694,7 +72695,7 @@ class IgxGridComponent extends IgxGridBaseDirective {
72694
72695
  if (this.pagingMode === 1 && this.page !== 0) {
72695
72696
  row.index = rowIndex + this.perPage * this.page;
72696
72697
  }
72697
- return new IgxGridCell(this, row.index, columnField);
72698
+ return new IgxGridCell(this, row.index, column);
72698
72699
  }
72699
72700
  }
72700
72701
  /**
@@ -72713,7 +72714,7 @@ class IgxGridComponent extends IgxGridBaseDirective {
72713
72714
  const row = this.getRowByKey(rowSelector);
72714
72715
  const column = this._columns.find((col) => col.field === columnField);
72715
72716
  if (row && column) {
72716
- return new IgxGridCell(this, row.index, columnField);
72717
+ return new IgxGridCell(this, row.index, column);
72717
72718
  }
72718
72719
  }
72719
72720
  pinRow(rowID, index) {
@@ -80867,7 +80868,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
80867
80868
  const row = this.getRowByIndex(rowIndex);
80868
80869
  const column = this.columns.find((col) => col.visibleIndex === index);
80869
80870
  if (row && row instanceof IgxTreeGridRow && column) {
80870
- return new IgxGridCell(this, rowIndex, column.field);
80871
+ return new IgxGridCell(this, rowIndex, column);
80871
80872
  }
80872
80873
  }
80873
80874
  /**
@@ -81223,7 +81224,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
81223
81224
  const row = this.getRowByIndex(rowIndex);
81224
81225
  const column = this.columns.find((col) => col.field === columnField);
81225
81226
  if (row && row instanceof IgxTreeGridRow && column) {
81226
- return new IgxGridCell(this, rowIndex, columnField);
81227
+ return new IgxGridCell(this, rowIndex, column);
81227
81228
  }
81228
81229
  }
81229
81230
  /**
@@ -81242,7 +81243,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
81242
81243
  const row = this.getRowByKey(rowSelector);
81243
81244
  const column = this.columns.find((col) => col.field === columnField);
81244
81245
  if (row && column) {
81245
- return new IgxGridCell(this, row.index, columnField);
81246
+ return new IgxGridCell(this, row.index, column);
81246
81247
  }
81247
81248
  }
81248
81249
  pinRow(rowID, index) {
@@ -83429,7 +83430,7 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
83429
83430
  const row = this.getRowByIndex(rowIndex);
83430
83431
  const column = this.columns.find((col) => col.visibleIndex === index);
83431
83432
  if (row && row instanceof IgxHierarchicalGridRow && column) {
83432
- return new IgxGridCell(this, rowIndex, column.field);
83433
+ return new IgxGridCell(this, rowIndex, column);
83433
83434
  }
83434
83435
  }
83435
83436
  /**
@@ -83652,7 +83653,7 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
83652
83653
  const row = this.getRowByIndex(rowIndex);
83653
83654
  const column = this.columns.find((col) => col.field === columnField);
83654
83655
  if (row && row instanceof IgxHierarchicalGridRow && column) {
83655
- return new IgxGridCell(this, rowIndex, columnField);
83656
+ return new IgxGridCell(this, rowIndex, column);
83656
83657
  }
83657
83658
  }
83658
83659
  /**
@@ -83671,7 +83672,7 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
83671
83672
  const row = this.getRowByKey(rowSelector);
83672
83673
  const column = this.columns.find((col) => col.field === columnField);
83673
83674
  if (row && column) {
83674
- return new IgxGridCell(this, row.index, columnField);
83675
+ return new IgxGridCell(this, row.index, column);
83675
83676
  }
83676
83677
  }
83677
83678
  pinRow(rowID, index) {