igniteui-angular 17.2.1 → 17.2.2

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.
@@ -23318,6 +23318,7 @@ class IgxAddRow extends IgxEditRow {
23318
23318
  const args = super.createRowEditEventArgs(includeNewValue, event);
23319
23319
  args.oldValue = null;
23320
23320
  args.isAddRow = true;
23321
+ args.rowData = this.newData ?? this.data;
23321
23322
  return args;
23322
23323
  }
23323
23324
  createRowEditDoneEventArgs(cachedRowData, event) {
@@ -74295,18 +74296,22 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
74295
74296
  const separator = this.pivotKeys.columnDimensionSeparator;
74296
74297
  const dataArr = fields.map(x => x.split(separator)).sort(x => x.length);
74297
74298
  const hierarchy = new Map();
74299
+ const columnDimensions = PivotUtil.flatten(this.columnDimensions);
74298
74300
  dataArr.forEach(arr => {
74299
74301
  let currentHierarchy = hierarchy;
74300
74302
  const path = [];
74303
+ let index = 0;
74301
74304
  for (const val of arr) {
74302
74305
  path.push(val);
74303
74306
  const newPath = path.join(separator);
74304
74307
  let targetHierarchy = currentHierarchy.get(newPath);
74305
74308
  if (!targetHierarchy) {
74306
- currentHierarchy.set(newPath, { value: newPath, expandable: true, children: new Map(), dimension: this.columnDimensions[0] });
74309
+ const currentColumnDimension = columnDimensions[index];
74310
+ currentHierarchy.set(newPath, { value: newPath, expandable: !!currentColumnDimension.childLevel, children: new Map(), dimension: currentColumnDimension });
74307
74311
  targetHierarchy = currentHierarchy.get(newPath);
74308
74312
  }
74309
74313
  currentHierarchy = targetHierarchy.children;
74314
+ index++;
74310
74315
  }
74311
74316
  });
74312
74317
  return hierarchy;
@@ -80728,6 +80733,7 @@ class IgxRowIslandComponent extends IgxHierarchicalGridBaseDirective {
80728
80733
  return false;
80729
80734
  });
80730
80735
  this._childColumns = topCols;
80736
+ this.updateColumns(this._childColumns);
80731
80737
  this.rowIslandAPI.getChildGrids().forEach((grid) => {
80732
80738
  grid.createColumnsList(this._childColumns);
80733
80739
  if (!document.body.contains(grid.nativeElement)) {