igniteui-angular 14.1.1 → 14.1.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.
@@ -4450,7 +4450,7 @@ class WorksheetFile {
4450
4450
  const freezeHeaders = worksheetData.options.freezeHeaders ? 2 + multiColumnHeaderLevel : 1;
4451
4451
  if (!isHierarchicalGrid) {
4452
4452
  this.dimension =
4453
- 'A1:' + ExcelStrings.getExcelColumn(worksheetData.columnCount - 1) + (worksheetData.rowCount + owner.maxLevel);
4453
+ 'A1:' + ExcelStrings.getExcelColumn(worksheetData.columnCount - 1) + (worksheetData.rowCount);
4454
4454
  cols += '<cols>';
4455
4455
  if (!hasMultiColumnHeader) {
4456
4456
  for (let j = 0; j < worksheetData.columnCount; j++) {
@@ -4513,7 +4513,7 @@ class WorksheetFile {
4513
4513
  const isHierarchicalGrid = worksheetData.isHierarchical;
4514
4514
  const hasUserSetIndex = worksheetData.owner.columns.some(c => c.exportIndex !== undefined);
4515
4515
  let recordHeaders = [];
4516
- yieldingLoop(worksheetData.rowCount - 1, 1000, (i) => {
4516
+ yieldingLoop(worksheetData.rowCount - worksheetData.multiColumnHeaderRows - 1, 1000, (i) => {
4517
4517
  if (!worksheetData.isEmpty) {
4518
4518
  if (!isHierarchicalGrid) {
4519
4519
  if (hasUserSetIndex) {
@@ -5034,6 +5034,9 @@ class WorksheetData {
5034
5034
  get isHierarchical() {
5035
5035
  return this._isHierarchical;
5036
5036
  }
5037
+ get multiColumnHeaderRows() {
5038
+ return !this.options.ignoreMultiColumnHeaders ? Array.from(this.owners.values()).map(c => c.maxLevel).reduce((a, b) => a + b) : 0;
5039
+ }
5037
5040
  initializeData() {
5038
5041
  this._dataDictionary = new WorksheetDataDictionary(this.columnCount, this.options.columnWidth, this.columnWidths);
5039
5042
  this._hasMultiColumnHeader = Array.from(this.owners.values())
@@ -5050,7 +5053,7 @@ class WorksheetData {
5050
5053
  return;
5051
5054
  }
5052
5055
  this._isSpecialData = ExportUtilities.isSpecialData(this._data[0].data);
5053
- this._rowCount = this._data.length + 1;
5056
+ this._rowCount = this._data.length + this.multiColumnHeaderRows + 1;
5054
5057
  }
5055
5058
  }
5056
5059
 
@@ -18179,7 +18182,6 @@ class IgxRadioComponent {
18179
18182
  * @memberof IgxRadioComponent
18180
18183
  */
18181
18184
  select() {
18182
- this.nativeRadio.nativeElement.focus();
18183
18185
  if (!this.checked) {
18184
18186
  this.checked = true;
18185
18187
  this.change.emit({ value: this.value, radio: this });
@@ -23931,6 +23933,9 @@ class IgxCellCrudState {
23931
23933
  if (!this.cell) {
23932
23934
  return;
23933
23935
  }
23936
+ if (this.grid.validationTrigger === 'blur') {
23937
+ this.grid.tbody.nativeElement.focus({ preventScroll: true });
23938
+ }
23934
23939
  let doneArgs;
23935
23940
  if (isEqual(this.cell.value, this.cell.editValue)) {
23936
23941
  doneArgs = this.exitCellEdit(event);
@@ -68418,9 +68423,6 @@ class IgxGridCellComponent {
68418
68423
  const editMode = !!(crud.row || crud.cell);
68419
68424
  if (this.editable && editMode && !this.intRow.deleted) {
68420
68425
  if (editableCell) {
68421
- if (this.grid.validationTrigger === 'blur') {
68422
- this.grid.tbody.nativeElement.focus({ preventScroll: true });
68423
- }
68424
68426
  editableArgs = this.grid.crudService.updateCell(false, event);
68425
68427
  /* This check is related with the following issue #6517:
68426
68428
  * when edit cell that belongs to a column which is sorted and press tab,