igniteui-angular 13.0.6 → 13.0.7

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.
@@ -4269,7 +4269,7 @@ class WorksheetFile {
4269
4269
  else {
4270
4270
  const owner = worksheetData.owner;
4271
4271
  const isHierarchicalGrid = worksheetData.data[0].type === ExportRecordType.HierarchicalGridRecord;
4272
- const hasMultiColumnHeader = owner.columns.some(col => !col.skip && col.headerType === HeaderType.MultiColumnHeader);
4272
+ const hasMultiColumnHeader = worksheetData.hasMultiColumnHeader;
4273
4273
  const hasUserSetIndex = owner.columns.some(col => col.exportIndex !== undefined);
4274
4274
  const height = worksheetData.options.rowHeight;
4275
4275
  const rowStyle = isHierarchicalGrid ? ' s="3"' : '';
@@ -4399,7 +4399,7 @@ class WorksheetFile {
4399
4399
  const record = worksheetData.data[i];
4400
4400
  if (record.type === ExportRecordType.HeaderRecord) {
4401
4401
  const recordOwner = worksheetData.owners.get(record.owner);
4402
- const hasMultiColumnHeaders = recordOwner.columns.some(c => c.headerType === HeaderType.MultiColumnHeader);
4402
+ const hasMultiColumnHeaders = recordOwner.columns.some(c => !c.skip && c.headerType === HeaderType.MultiColumnHeader);
4403
4403
  if (hasMultiColumnHeaders) {
4404
4404
  this.hGridPrintMultiColHeaders(worksheetData, rowDataArr, record, recordOwner);
4405
4405
  }
@@ -4888,13 +4888,17 @@ class WorksheetData {
4888
4888
  get dataDictionary() {
4889
4889
  return this._dataDictionary;
4890
4890
  }
4891
+ get hasMultiColumnHeader() {
4892
+ return this._hasMultiColumnHeader;
4893
+ }
4891
4894
  initializeData() {
4892
4895
  if (!this._data || this._data.length === 0) {
4893
4896
  return;
4894
4897
  }
4895
- const isMultiColumnHeader = this.owner.columns.some(col => !col.skip && col.headerType === HeaderType.MultiColumnHeader);
4898
+ this._hasMultiColumnHeader = Array.from(this.owners.values())
4899
+ .some(o => o.columns.some(col => !col.skip && col.headerType === HeaderType.MultiColumnHeader));
4896
4900
  const hasHierarchicalGridRecord = this._data[0].type === ExportRecordType.HierarchicalGridRecord;
4897
- if (hasHierarchicalGridRecord || (isMultiColumnHeader && !this.options.ignoreMultiColumnHeaders)) {
4901
+ if (hasHierarchicalGridRecord || (this._hasMultiColumnHeader && !this.options.ignoreMultiColumnHeaders)) {
4898
4902
  this.options.exportAsTable = false;
4899
4903
  }
4900
4904
  this._isSpecialData = ExportUtilities.isSpecialData(this._data[0].data);
@@ -34179,7 +34183,7 @@ class IgxComboBaseDirective extends DisplayDensityBase {
34179
34183
  };
34180
34184
  this.findMatch = (element) => {
34181
34185
  const value = this.displayKey ? element[this.displayKey] : element;
34182
- return value.toString().toLowerCase() === this.searchValue.trim().toLowerCase();
34186
+ return value?.toString().toLowerCase() === this.searchValue.trim().toLowerCase();
34183
34187
  };
34184
34188
  }
34185
34189
  /**
@@ -48603,6 +48607,18 @@ class BaseRow {
48603
48607
  const primaryKey = this.grid.primaryKey;
48604
48608
  return primaryKey ? data[primaryKey] : data;
48605
48609
  }
48610
+ /**
48611
+ * Gets if this represents add row UI
48612
+ *
48613
+ * ```typescript
48614
+ * let isAddRow = row.addRowUI;
48615
+ * ```
48616
+ */
48617
+ get addRowUI() {
48618
+ return !!this.grid.crudService.row &&
48619
+ this.grid.crudService.row.getClassName() === IgxAddRow.name &&
48620
+ this.grid.crudService.row.id === this.key;
48621
+ }
48606
48622
  /**
48607
48623
  * The data record that populates the row.
48608
48624
  *
@@ -55798,6 +55814,7 @@ class IgxGridSummaryService {
55798
55814
  this.grid.summaryPipeTrigger++;
55799
55815
  if (this.grid.rootSummariesEnabled) {
55800
55816
  this.retriggerRootPipe++;
55817
+ Promise.resolve().then(() => this.grid.notifyChanges(true));
55801
55818
  }
55802
55819
  }
55803
55820
  updateSummaryCache(groupingArgs) {
@@ -70484,16 +70501,20 @@ class IgxTreeGridGroupingPipe {
70484
70501
  const value = isDateTime
70485
70502
  ? formatDate(record[key], column.pipeArgs.format, this.grid.locale)
70486
70503
  : record[key];
70504
+ let valueCase = value;
70487
70505
  let groupByRecord;
70488
- if (map.has(value)) {
70489
- groupByRecord = map.get(value);
70506
+ if (groupingExpression.ignoreCase) {
70507
+ valueCase = value?.toString().toLowerCase();
70508
+ }
70509
+ if (map.has(valueCase)) {
70510
+ groupByRecord = map.get(valueCase);
70490
70511
  }
70491
70512
  else {
70492
70513
  groupByRecord = new GroupByRecord();
70493
70514
  groupByRecord.key = key;
70494
70515
  groupByRecord.value = value;
70495
70516
  groupByRecord.records = [];
70496
- map.set(value, groupByRecord);
70517
+ map.set(valueCase, groupByRecord);
70497
70518
  }
70498
70519
  groupByRecord.records.push(record);
70499
70520
  }