igniteui-angular 16.1.17 → 16.1.19

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.
@@ -4050,7 +4050,7 @@ class IgxBaseExporter {
4050
4050
  let currKey = '';
4051
4051
  let summaryKey = '';
4052
4052
  if (this._setChildSummaries) {
4053
- currKey = `'${groupExpressionName}': '${recordVal}'`;
4053
+ currKey = `'${record.expression.fieldName}': '${recordVal}'`;
4054
4054
  summaryKeysArr = summaryKeysArr.filter(a => a !== previousKey);
4055
4055
  previousKey = currKey;
4056
4056
  summaryKeysArr.push(currKey);
@@ -5193,7 +5193,7 @@ class WorksheetFile {
5193
5193
  if (worksheetData.hasSummaries && (isValidRecordType || (worksheetData.isGroupedGrid && isSummaryRecord))) {
5194
5194
  this.setSummaryCoordinates(columnName, key, fullRow.hierarchicalOwner, worksheetData.isGroupedGrid && isSummaryRecord);
5195
5195
  }
5196
- if (fullRow.summaryKey && fullRow.summaryKey === GRID_ROOT_SUMMARY && key !== GRID_LEVEL_COL && !this.isValidGrid) {
5196
+ if (fullRow.summaryKey && fullRow.summaryKey === GRID_ROOT_SUMMARY && key !== GRID_LEVEL_COL && worksheetData.isGroupedGrid) {
5197
5197
  this.setRootSummaryStartCoordinate(column, key);
5198
5198
  if (this.firstColumn > column) {
5199
5199
  this.setRootSummaryStartCoordinate(worksheetData.columnCount + 1, GRID_LEVEL_COL);
@@ -5337,8 +5337,9 @@ class WorksheetFile {
5337
5337
  }
5338
5338
  setRootSummaryStartCoordinate(column, key) {
5339
5339
  const firstDataRecordColName = ExcelStrings.getExcelColumn(column) + (this.firstDataRow);
5340
- if (this.dimensionMap.get(key).startCoordinate !== firstDataRecordColName) {
5341
- this.dimensionMap.get(key).startCoordinate = firstDataRecordColName;
5340
+ const targetMap = this.hierarchicalDimensionMap.get(GRID_PARENT);
5341
+ if (targetMap.get(key).startCoordinate !== firstDataRecordColName) {
5342
+ targetMap.get(key).startCoordinate = firstDataRecordColName;
5342
5343
  }
5343
5344
  }
5344
5345
  printHeaders(worksheetData, headersForLevel, i, isVertical) {
@@ -23375,6 +23376,13 @@ class IgxSelectionAPIService {
23375
23376
  clear(componentID) {
23376
23377
  this.selection.set(componentID, this.get_empty());
23377
23378
  }
23379
+ /**
23380
+ * Removes selection for a component.
23381
+ * @param componentID
23382
+ */
23383
+ delete(componentID) {
23384
+ this.selection.delete(componentID);
23385
+ }
23378
23386
  /**
23379
23387
  * Get current component selection length.
23380
23388
  *
@@ -24383,8 +24391,8 @@ class IgxDropDownComponent extends IgxDropDownBaseDirective {
24383
24391
  ngOnDestroy() {
24384
24392
  this.destroy$.next(true);
24385
24393
  this.destroy$.complete();
24386
- this.selection.clear(this.id);
24387
- this.selection.clear(`${this.id}-active`);
24394
+ this.selection.delete(this.id);
24395
+ this.selection.delete(`${this.id}-active`);
24388
24396
  }
24389
24397
  /** @hidden @internal */
24390
24398
  calculateScrollPosition(item) {
@@ -30959,8 +30967,10 @@ class IgxCalendarBaseDirective {
30959
30967
  * @hidden
30960
30968
  */
30961
30969
  selectSingle(value) {
30962
- this.selectedDates = this.getDateOnly(value);
30963
- this._onChangeCallback(this.selectedDates);
30970
+ if (!isEqual(this.selectedDates, value)) {
30971
+ this.selectedDates = this.getDateOnly(value);
30972
+ this._onChangeCallback(this.selectedDates);
30973
+ }
30964
30974
  }
30965
30975
  /**
30966
30976
  * Performs a multiple selection
@@ -37927,7 +37937,7 @@ class IgxComboBaseDirective extends DisplayDensityBase {
37927
37937
  this.destroy$.next();
37928
37938
  this.destroy$.complete();
37929
37939
  this.comboAPI.clear();
37930
- this.selectionService.clear(this.id);
37940
+ this.selectionService.delete(this.id);
37931
37941
  }
37932
37942
  /**
37933
37943
  * A method that opens/closes the combo.
@@ -43486,7 +43496,7 @@ class IgxColumnComponent {
43486
43496
  this._visibleWhenCollapsed = value;
43487
43497
  this.visibleWhenCollapsedChange.emit(this._visibleWhenCollapsed);
43488
43498
  if (this.parent) {
43489
- this.parent.setExpandCollapseState();
43499
+ this.parent?.setExpandCollapseState?.();
43490
43500
  }
43491
43501
  }
43492
43502
  get visibleWhenCollapsed() {
@@ -46215,14 +46225,6 @@ class IgxSelectComponent extends IgxDropDownComponent {
46215
46225
  this.inputGroup.suffixes = this.suffixes;
46216
46226
  }
46217
46227
  }
46218
- /**
46219
- * @hidden @internal
46220
- */
46221
- ngOnDestroy() {
46222
- this.destroy$.next(true);
46223
- this.destroy$.complete();
46224
- this.selection.clear(this.id);
46225
- }
46226
46228
  /**
46227
46229
  * @hidden @internal
46228
46230
  * Prevent input blur - closing the items container on Header/Footer Template click.
@@ -76951,7 +76953,10 @@ class IgxGridStateDirective {
76951
76953
  parent: c.parent ? c.parent.header : null,
76952
76954
  columnGroup: c.columnGroup,
76953
76955
  disableHiding: c.disableHiding,
76954
- disablePinning: c.disablePinning
76956
+ disablePinning: c.disablePinning,
76957
+ collapsible: c.columnGroup ? c.collapsible : undefined,
76958
+ expanded: c.columnGroup ? c.expanded : undefined,
76959
+ visibleWhenCollapsed: c.parent?.columnGroup ? c.visibleWhenCollapsed : undefined
76955
76960
  }));
76956
76961
  return { columns: gridColumns };
76957
76962
  },
@@ -82184,8 +82189,8 @@ class IgxChildGridRowComponent {
82184
82189
  }
82185
82190
  set data(value) {
82186
82191
  this._data = value;
82187
- if (this.hGrid) {
82188
- this.hGrid.data = this._data.childGridsData[this.layout.key];
82192
+ if (this.hGrid && !this.hGrid.dataSetByUser) {
82193
+ this.hGrid.setDataInternal(this._data.childGridsData[this.layout.key]);
82189
82194
  }
82190
82195
  }
82191
82196
  /**
@@ -82241,7 +82246,7 @@ class IgxChildGridRowComponent {
82241
82246
  ngOnInit() {
82242
82247
  const ref = this.container.createComponent(IgxHierarchicalGridComponent, { injector: this.container.injector });
82243
82248
  this.hGrid = ref.instance;
82244
- this.hGrid.data = this.data.childGridsData[this.layout.key];
82249
+ this.hGrid.setDataInternal(this.data.childGridsData[this.layout.key]);
82245
82250
  this.layout.layoutChange.subscribe((ch) => {
82246
82251
  this._handleLayoutChanges(ch);
82247
82252
  });
@@ -82340,6 +82345,8 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
82340
82345
  * @hidden
82341
82346
  */
82342
82347
  this.childLayoutKeys = [];
82348
+ /** @hidden @internal */
82349
+ this.dataSetByUser = false;
82343
82350
  /**
82344
82351
  * @hidden
82345
82352
  */
@@ -82384,20 +82391,8 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
82384
82391
  * @memberof IgxHierarchicalGridComponent
82385
82392
  */
82386
82393
  set data(value) {
82387
- this._data = value || [];
82388
- this.summaryService.clearSummaryCache();
82389
- if (!this._init) {
82390
- this.validation.updateAll(this._data);
82391
- }
82392
- if (this.shouldGenerate) {
82393
- this.setupColumns();
82394
- this.reflow();
82395
- }
82396
- this.cdr.markForCheck();
82397
- if (this.parent && (this.height === null || this.height.indexOf('%') !== -1)) {
82398
- // If the height will change based on how much data there is, recalculate sizes in igxForOf.
82399
- this.notifyChanges(true);
82400
- }
82394
+ this.setDataInternal(value);
82395
+ this.dataSetByUser = true;
82401
82396
  }
82402
82397
  /**
82403
82398
  * Returns an array of data set to the `IgxHierarchicalGridComponent`.
@@ -82702,6 +82697,23 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
82702
82697
  const row = this.getRowByKey(rowID);
82703
82698
  return super.pinRow(rowID, index, row);
82704
82699
  }
82700
+ /** @hidden @internal */
82701
+ setDataInternal(value) {
82702
+ this._data = value || [];
82703
+ this.summaryService.clearSummaryCache();
82704
+ if (!this._init) {
82705
+ this.validation.updateAll(this._data);
82706
+ }
82707
+ if (this.shouldGenerate) {
82708
+ this.setupColumns();
82709
+ this.reflow();
82710
+ }
82711
+ this.cdr.markForCheck();
82712
+ if (this.parent && (this.height === null || this.height.indexOf('%') !== -1)) {
82713
+ // If the height will change based on how much data there is, recalculate sizes in igxForOf.
82714
+ this.notifyChanges(true);
82715
+ }
82716
+ }
82705
82717
  unpinRow(rowID) {
82706
82718
  const row = this.getRowByKey(rowID);
82707
82719
  return super.unpinRow(rowID, row);