igniteui-angular 16.0.22 → 16.0.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.
@@ -25660,7 +25660,7 @@ class IgxGridCRUDService extends IgxRowAddCrudState {
25660
25660
  });
25661
25661
  }
25662
25662
  /**
25663
- * Finishes the row transactions on the current row.
25663
+ * Finishes the row transactions on the current row and returns whether the grid editing was canceled.
25664
25664
  *
25665
25665
  * @remarks
25666
25666
  * If `commit === true`, passes them from the pending state to the data (or transaction service)
@@ -44338,7 +44338,7 @@ class IgxColumnComponent {
44338
44338
  const isPercentageWidth = colWidth && typeof colWidth === 'string' && colWidth.indexOf('%') !== -1;
44339
44339
  const isAutoWidth = colWidth && typeof colWidth === 'string' && colWidth === 'fit-content';
44340
44340
  if (isPercentageWidth) {
44341
- this._calcWidth = parseFloat(colWidth) / 100 * this.grid.calcWidth;
44341
+ this._calcWidth = Math.floor(parseFloat(colWidth) / 100 * this.grid.calcWidth);
44342
44342
  }
44343
44343
  else if (!colWidth || isAutoWidth && !this.autoSize) {
44344
44344
  // no width
@@ -65816,7 +65816,6 @@ class IgxGridBaseDirective extends DisplayDensityBase {
65816
65816
  computedWidth = this.calcWidth ||
65817
65817
  parseInt(this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width'), 10);
65818
65818
  }
65819
- computedWidth -= this.featureColumnsWidth();
65820
65819
  const visibleChildColumns = this.visibleColumns.filter(c => !c.columnGroup);
65821
65820
  // Column layouts related
65822
65821
  let visibleCols = [];
@@ -65847,6 +65846,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
65847
65846
  if (!sumExistingWidths && !columnsToSize) {
65848
65847
  return '0px';
65849
65848
  }
65849
+ computedWidth -= this.featureColumnsWidth();
65850
65850
  const columnWidth = Math.floor(!Number.isFinite(sumExistingWidths) ?
65851
65851
  Math.max(computedWidth / columnsToSize, this.minColumnWidth) :
65852
65852
  Math.max((computedWidth - sumExistingWidths) / columnsToSize, this.minColumnWidth));
@@ -66579,7 +66579,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
66579
66579
  return this.unpinnedRecords.findIndex(x => x[this.primaryKey] === id);
66580
66580
  }
66581
66581
  /**
66582
- * Finishes the row transactions on the current row.
66582
+ * Finishes the row transactions on the current row and returns whether the grid editing was canceled.
66583
66583
  *
66584
66584
  * @remarks
66585
66585
  * If `commit === true`, passes them from the pending state to the data (or transaction service)
@@ -66592,7 +66592,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
66592
66592
  // TODO: Facade for crud service refactoring. To be removed
66593
66593
  // TODO: do not remove this, as it is used in rowEditTemplate, but mark is as internal and hidden
66594
66594
  endEdit(commit = true, event) {
66595
- this.crudService.endEdit(commit, event);
66595
+ return this.crudService.endEdit(commit, event);
66596
66596
  }
66597
66597
  /**
66598
66598
  * Enters add mode by spawning the UI under the specified row by rowID.
@@ -67074,8 +67074,8 @@ class IgxGridBaseDirective extends DisplayDensityBase {
67074
67074
  sizing process which of course, uses values from the caches, thus resulting
67075
67075
  in a broken layout.
67076
67076
  */
67077
- this.resetCaches(recalcFeatureWidth);
67078
67077
  this.cdr.detectChanges();
67078
+ this.resetCaches(recalcFeatureWidth);
67079
67079
  const hasScroll = this.hasVerticalScroll();
67080
67080
  this.calculateGridWidth();
67081
67081
  this.resetCaches(recalcFeatureWidth);
@@ -75214,6 +75214,7 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
75214
75214
  * @hidden @internal
75215
75215
  */
75216
75216
  endEdit(_commit = true, _event) {
75217
+ return;
75217
75218
  }
75218
75219
  /**
75219
75220
  * @hidden @internal