igniteui-angular 13.2.17 → 13.2.18
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.
- package/esm2020/lib/services/excel/excel-files.mjs +3 -3
- package/esm2020/lib/services/excel/worksheet-data.mjs +5 -2
- package/fesm2015/igniteui-angular.mjs +6 -3
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +6 -3
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/services/excel/worksheet-data.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|