igniteui-angular 15.1.0 → 15.1.1

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.
@@ -3400,7 +3400,7 @@ class IgxBaseExporter {
3400
3400
  const ownerCols = this._ownersMap.get(owner).columns;
3401
3401
  if (record.type !== ExportRecordType.HeaderRecord) {
3402
3402
  const columns = ownerCols
3403
- .filter(c => c.headerType !== HeaderType.MultiColumnHeader && c.headerType !== HeaderType.RowHeader && c.headerType !== HeaderType.MultiRowHeader && !c.skip)
3403
+ .filter(c => c.headerType === HeaderType.ColumnHeader && !c.skip)
3404
3404
  .sort((a, b) => a.startIndex - b.startIndex)
3405
3405
  .sort((a, b) => a.pinnedIndex - b.pinnedIndex);
3406
3406
  record.data = columns.reduce((a, e) => {
@@ -3875,7 +3875,10 @@ class IgxBaseExporter {
3875
3875
  return;
3876
3876
  }
3877
3877
  let previousKey = '';
3878
- const firstCol = this._ownersMap.get(DEFAULT_OWNER).columns[0].field;
3878
+ const firstCol = this._ownersMap.get(DEFAULT_OWNER).columns
3879
+ .filter(c => c.headerType === HeaderType.ColumnHeader && !c.skip)
3880
+ .sort((a, b) => a.startIndex - b.startIndex)
3881
+ .sort((a, b) => a.pinnedIndex - b.pinnedIndex)[0].field;
3879
3882
  for (const record of records) {
3880
3883
  let recordVal = record.value;
3881
3884
  const hierarchicalOwner = setGridParent ? GRID_PARENT : `${GRID_CHILD}${++this.rowIslandCounter}`;
@@ -4926,7 +4929,7 @@ class WorksheetFile {
4926
4929
  }
4927
4930
  else {
4928
4931
  recordHeaders = worksheetData.owner.columns
4929
- .filter(c => c.headerType !== HeaderType.MultiColumnHeader && c.headerType !== HeaderType.MultiRowHeader && c.headerType !== HeaderType.RowHeader && !c.skip)
4932
+ .filter(c => c.headerType === HeaderType.ColumnHeader && !c.skip)
4930
4933
  .sort((a, b) => a.startIndex - b.startIndex)
4931
4934
  .sort((a, b) => a.pinnedIndex - b.pinnedIndex)
4932
4935
  .map(c => c.field);
@@ -39684,13 +39687,7 @@ class IgxSimpleComboComponent extends IgxComboBaseDirective {
39684
39687
  return;
39685
39688
  }
39686
39689
  this.clearSelection(true);
39687
- if (this.collapsed) {
39688
- this.filterValue = '';
39689
- this.cdr.detectChanges();
39690
- this.open();
39691
- this.dropdown.navigateFirst();
39692
- }
39693
- else {
39690
+ if (!this.collapsed) {
39694
39691
  this.focusSearchInput(true);
39695
39692
  }
39696
39693
  event.stopPropagation();
@@ -59179,13 +59176,13 @@ class IgxGridFilteringRowComponent {
59179
59176
  return this.expression ? this.expression.searchVal : null;
59180
59177
  }
59181
59178
  set value(val) {
59182
- if (!val && val !== 0) {
59179
+ if (!val && val !== 0 && this.expression.searchVal) {
59183
59180
  this.expression.searchVal = null;
59184
59181
  const index = this.expressionsList.findIndex(item => item.expression === this.expression);
59185
59182
  if (index === 0 && this.expressionsList.length === 1) {
59186
59183
  this.filteringService.clearFilter(this.column.field);
59187
59184
  if (this.expression.condition.isUnary) {
59188
- this.resetExpression();
59185
+ this.resetExpression(this.expression.condition.name);
59189
59186
  }
59190
59187
  return;
59191
59188
  }
@@ -59746,7 +59743,7 @@ class IgxGridFilteringRowComponent {
59746
59743
  }
59747
59744
  this.showHideArrowButtons();
59748
59745
  }
59749
- resetExpression() {
59746
+ resetExpression(condition) {
59750
59747
  this.expression = {
59751
59748
  fieldName: this.column.field,
59752
59749
  condition: null,
@@ -59754,7 +59751,7 @@ class IgxGridFilteringRowComponent {
59754
59751
  ignoreCase: this.column.filteringIgnoreCase
59755
59752
  };
59756
59753
  if (this.column.dataType !== GridColumnDataType.Boolean) {
59757
- this.expression.condition = this.getCondition(this.conditions[0]);
59754
+ this.expression.condition = this.getCondition(condition ?? this.conditions[0]);
59758
59755
  }
59759
59756
  if (this.column.dataType === GridColumnDataType.Date && this.input) {
59760
59757
  this.input.nativeElement.value = null;