igniteui-angular 15.1.22 → 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.
@@ -29826,20 +29826,25 @@ class IgxButtonGroupComponent extends DisplayDensityBase {
29826
29826
  */
29827
29827
  _clickHandler(index) {
29828
29828
  const button = this.buttons[index];
29829
+ const args = { cancel: false, button, index };
29829
29830
  if (!this.multiSelection) {
29830
29831
  this.buttons.forEach((b, i) => {
29831
29832
  if (i !== index && this.selectedIndexes.indexOf(i) !== -1) {
29832
- this.deselected.emit({ button: b, index: i });
29833
+ this.deselected.emit({ cancel: false, button: b, index: i });
29833
29834
  }
29834
29835
  });
29835
29836
  }
29836
29837
  if (this.selectedIndexes.indexOf(index) === -1) {
29837
- this.selectButton(index);
29838
- this.selected.emit({ button, index });
29838
+ this.selected.emit(args);
29839
+ if (!args.cancel) {
29840
+ this.selectButton(index);
29841
+ }
29839
29842
  }
29840
29843
  else {
29841
- this.deselectButton(index);
29842
- this.deselected.emit({ button, index });
29844
+ this.deselected.emit(args);
29845
+ if (!args.cancel) {
29846
+ this.deselectButton(index);
29847
+ }
29843
29848
  }
29844
29849
  }
29845
29850
  }
@@ -50814,12 +50819,7 @@ class IgxGridCell {
50814
50819
  this._row = row;
50815
50820
  this._rowIndex = row.index;
50816
50821
  }
50817
- if (typeof column === 'string') {
50818
- this._columnField = column;
50819
- }
50820
- else {
50821
- this._column = column;
50822
- }
50822
+ this._column = column;
50823
50823
  }
50824
50824
  /**
50825
50825
  * Returns the row containing the cell.
@@ -50841,7 +50841,7 @@ class IgxGridCell {
50841
50841
  * @memberof IgxGridCell
50842
50842
  */
50843
50843
  get column() {
50844
- return this._column || this.grid.getColumnByName(this._columnField);
50844
+ return this._column;
50845
50845
  }
50846
50846
  /**
50847
50847
  * Gets the current edit value while a cell is in edit mode.
@@ -51749,7 +51749,7 @@ class IgxColumnComponent {
51749
51749
  .map((rec, index) => {
51750
51750
  if (!this.grid.isGroupByRecord(rec) && !this.grid.isSummaryRow(rec)) {
51751
51751
  this.grid.pagingMode === 1 && this.grid.page !== 0 ? index = index + this.grid.perPage * this.grid.page : index = this.grid.dataRowList.first.index + index;
51752
- const cell = new IgxGridCell(this.grid, index, this.field);
51752
+ const cell = new IgxGridCell(this.grid, index, this);
51753
51753
  return cell;
51754
51754
  }
51755
51755
  }).filter(cell => cell);
@@ -52637,7 +52637,8 @@ class IgxColumnComponent {
52637
52637
  }
52638
52638
  }
52639
52639
  if (hasIndex) {
52640
- grid._moveColumns(this, targetColumn);
52640
+ index === grid._pinnedColumns.length - 1 ?
52641
+ grid._moveColumns(this, targetColumn, DropPosition.AfterDropTarget) : grid._moveColumns(this, targetColumn, DropPosition.BeforeDropTarget);
52641
52642
  }
52642
52643
  if (this.columnGroup) {
52643
52644
  this.allChildren.forEach(child => child.pin());
@@ -54481,7 +54482,7 @@ class BaseRow {
54481
54482
  get cells() {
54482
54483
  const res = [];
54483
54484
  this.grid.columns.forEach(col => {
54484
- const cell = new IgxGridCell(this.grid, this.index, col.field);
54485
+ const cell = new IgxGridCell(this.grid, this.index, col);
54485
54486
  res.push(cell);
54486
54487
  });
54487
54488
  return res;
@@ -54791,7 +54792,7 @@ class IgxHierarchicalGridRow extends BaseRow {
54791
54792
  get cells() {
54792
54793
  const res = [];
54793
54794
  this.grid.columns.forEach(col => {
54794
- const cell = new IgxGridCell(this.grid, this.index, col.field);
54795
+ const cell = new IgxGridCell(this.grid, this.index, col);
54795
54796
  res.push(cell);
54796
54797
  });
54797
54798
  return res;
@@ -71003,7 +71004,7 @@ class IgxGridCellComponent {
71003
71004
  }
71004
71005
  getCellType(useRow) {
71005
71006
  const rowID = useRow ? this.grid.createRow(this.intRow.index, this.intRow.data) : this.intRow.index;
71006
- return new IgxGridCell(this.grid, rowID, this.column.field);
71007
+ return new IgxGridCell(this.grid, rowID, this.column);
71007
71008
  }
71008
71009
  }
71009
71010
  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 });
@@ -71942,7 +71943,7 @@ class IgxGridComponent extends IgxGridBaseDirective {
71942
71943
  const row = this.getRowByIndex(rowIndex);
71943
71944
  const column = this._columns.find((col) => col.visibleIndex === index);
71944
71945
  if (row && row instanceof IgxGridRow && !((_a = row.data) === null || _a === void 0 ? void 0 : _a.detailsData) && column) {
71945
- return new IgxGridCell(this, rowIndex, column.field);
71946
+ return new IgxGridCell(this, rowIndex, column);
71946
71947
  }
71947
71948
  }
71948
71949
  /**
@@ -72536,7 +72537,7 @@ class IgxGridComponent extends IgxGridBaseDirective {
72536
72537
  if (this.pagingMode === 1 && this.page !== 0) {
72537
72538
  row.index = rowIndex + this.perPage * this.page;
72538
72539
  }
72539
- return new IgxGridCell(this, row.index, columnField);
72540
+ return new IgxGridCell(this, row.index, column);
72540
72541
  }
72541
72542
  }
72542
72543
  /**
@@ -72555,7 +72556,7 @@ class IgxGridComponent extends IgxGridBaseDirective {
72555
72556
  const row = this.getRowByKey(rowSelector);
72556
72557
  const column = this._columns.find((col) => col.field === columnField);
72557
72558
  if (row && column) {
72558
- return new IgxGridCell(this, row.index, columnField);
72559
+ return new IgxGridCell(this, row.index, column);
72559
72560
  }
72560
72561
  }
72561
72562
  pinRow(rowID, index) {
@@ -80786,7 +80787,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
80786
80787
  const row = this.getRowByIndex(rowIndex);
80787
80788
  const column = this.columns.find((col) => col.visibleIndex === index);
80788
80789
  if (row && row instanceof IgxTreeGridRow && column) {
80789
- return new IgxGridCell(this, rowIndex, column.field);
80790
+ return new IgxGridCell(this, rowIndex, column);
80790
80791
  }
80791
80792
  }
80792
80793
  /**
@@ -81143,7 +81144,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
81143
81144
  const row = this.getRowByIndex(rowIndex);
81144
81145
  const column = this.columns.find((col) => col.field === columnField);
81145
81146
  if (row && row instanceof IgxTreeGridRow && column) {
81146
- return new IgxGridCell(this, rowIndex, columnField);
81147
+ return new IgxGridCell(this, rowIndex, column);
81147
81148
  }
81148
81149
  }
81149
81150
  /**
@@ -81162,7 +81163,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
81162
81163
  const row = this.getRowByKey(rowSelector);
81163
81164
  const column = this.columns.find((col) => col.field === columnField);
81164
81165
  if (row && column) {
81165
- return new IgxGridCell(this, row.index, columnField);
81166
+ return new IgxGridCell(this, row.index, column);
81166
81167
  }
81167
81168
  }
81168
81169
  pinRow(rowID, index) {
@@ -83366,7 +83367,7 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
83366
83367
  const row = this.getRowByIndex(rowIndex);
83367
83368
  const column = this.columns.find((col) => col.visibleIndex === index);
83368
83369
  if (row && row instanceof IgxHierarchicalGridRow && column) {
83369
- return new IgxGridCell(this, rowIndex, column.field);
83370
+ return new IgxGridCell(this, rowIndex, column);
83370
83371
  }
83371
83372
  }
83372
83373
  /**
@@ -83590,7 +83591,7 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
83590
83591
  const row = this.getRowByIndex(rowIndex);
83591
83592
  const column = this.columns.find((col) => col.field === columnField);
83592
83593
  if (row && row instanceof IgxHierarchicalGridRow && column) {
83593
- return new IgxGridCell(this, rowIndex, columnField);
83594
+ return new IgxGridCell(this, rowIndex, column);
83594
83595
  }
83595
83596
  }
83596
83597
  /**
@@ -83609,7 +83610,7 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
83609
83610
  const row = this.getRowByKey(rowSelector);
83610
83611
  const column = this.columns.find((col) => col.field === columnField);
83611
83612
  if (row && column) {
83612
- return new IgxGridCell(this, row.index, columnField);
83613
+ return new IgxGridCell(this, row.index, column);
83613
83614
  }
83614
83615
  }
83615
83616
  pinRow(rowID, index) {