igniteui-angular 15.1.24 → 15.1.26

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.
@@ -25330,7 +25330,7 @@ class IgxGridCRUDService extends IgxRowAddCrudState {
25330
25330
  });
25331
25331
  }
25332
25332
  /**
25333
- * Finishes the row transactions on the current row.
25333
+ * Finishes the row transactions on the current row and returns whether the grid editing was canceled.
25334
25334
  *
25335
25335
  * @remarks
25336
25336
  * If `commit === true`, passes them from the pending state to the data (or transaction service)
@@ -52967,7 +52967,7 @@ class IgxColumnComponent {
52967
52967
  const isPercentageWidth = colWidth && typeof colWidth === 'string' && colWidth.indexOf('%') !== -1;
52968
52968
  const isAutoWidth = colWidth && typeof colWidth === 'string' && colWidth === 'fit-content';
52969
52969
  if (isPercentageWidth) {
52970
- this._calcWidth = parseFloat(colWidth) / 100 * this.grid.calcWidth;
52970
+ this._calcWidth = Math.floor(parseFloat(colWidth) / 100 * this.grid.calcWidth);
52971
52971
  }
52972
52972
  else if (!colWidth || isAutoWidth && !this.autoSize) {
52973
52973
  // no width
@@ -66533,7 +66533,6 @@ class IgxGridBaseDirective extends DisplayDensityBase {
66533
66533
  computedWidth = this.calcWidth ||
66534
66534
  parseInt(this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width'), 10);
66535
66535
  }
66536
- computedWidth -= this.featureColumnsWidth();
66537
66536
  const visibleChildColumns = this.visibleColumns.filter(c => !c.columnGroup);
66538
66537
  // Column layouts related
66539
66538
  let visibleCols = [];
@@ -66564,6 +66563,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
66564
66563
  if (!sumExistingWidths && !columnsToSize) {
66565
66564
  return '0px';
66566
66565
  }
66566
+ computedWidth -= this.featureColumnsWidth();
66567
66567
  const columnWidth = Math.floor(!Number.isFinite(sumExistingWidths) ?
66568
66568
  Math.max(computedWidth / columnsToSize, this.minColumnWidth) :
66569
66569
  Math.max((computedWidth - sumExistingWidths) / columnsToSize, this.minColumnWidth));
@@ -67312,7 +67312,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
67312
67312
  return this.unpinnedRecords.findIndex(x => x[this.primaryKey] === id);
67313
67313
  }
67314
67314
  /**
67315
- * Finishes the row transactions on the current row.
67315
+ * Finishes the row transactions on the current row and returns whether the grid editing was canceled.
67316
67316
  *
67317
67317
  * @remarks
67318
67318
  * If `commit === true`, passes them from the pending state to the data (or transaction service)
@@ -67325,7 +67325,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
67325
67325
  // TODO: Facade for crud service refactoring. To be removed
67326
67326
  // TODO: do not remove this, as it is used in rowEditTemplate, but mark is as internal and hidden
67327
67327
  endEdit(commit = true, event) {
67328
- this.crudService.endEdit(commit, event);
67328
+ return this.crudService.endEdit(commit, event);
67329
67329
  }
67330
67330
  /**
67331
67331
  * Enters add mode by spawning the UI under the specified row by rowID.
@@ -67808,8 +67808,8 @@ class IgxGridBaseDirective extends DisplayDensityBase {
67808
67808
  sizing process which of course, uses values from the caches, thus resulting
67809
67809
  in a broken layout.
67810
67810
  */
67811
- this.resetCaches(recalcFeatureWidth);
67812
67811
  this.cdr.detectChanges();
67812
+ this.resetCaches(recalcFeatureWidth);
67813
67813
  const hasScroll = this.hasVerticalScroll();
67814
67814
  this.calculateGridWidth();
67815
67815
  this.resetCaches(recalcFeatureWidth);
@@ -75226,6 +75226,7 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
75226
75226
  * @hidden @internal
75227
75227
  */
75228
75228
  endEdit(_commit = true, _event) {
75229
+ return;
75229
75230
  }
75230
75231
  /**
75231
75232
  * @hidden @internal