igniteui-angular 16.1.17 → 16.1.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/esm2022/lib/calendar/calendar-base.mjs +6 -4
- package/esm2022/lib/grids/hierarchical-grid/hierarchical-grid.component.mjs +25 -18
- package/esm2022/lib/services/excel/excel-files.mjs +5 -4
- package/esm2022/lib/services/exporter-common/base-export-service.mjs +2 -2
- package/fesm2022/igniteui-angular.mjs +33 -23
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/lib/grids/hierarchical-grid/hierarchical-grid.component.d.ts +4 -0
- package/package.json +1 -1
|
@@ -4050,7 +4050,7 @@ class IgxBaseExporter {
|
|
|
4050
4050
|
let currKey = '';
|
|
4051
4051
|
let summaryKey = '';
|
|
4052
4052
|
if (this._setChildSummaries) {
|
|
4053
|
-
currKey = `'${
|
|
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 &&
|
|
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
|
-
|
|
5341
|
-
|
|
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) {
|
|
@@ -30959,8 +30960,10 @@ class IgxCalendarBaseDirective {
|
|
|
30959
30960
|
* @hidden
|
|
30960
30961
|
*/
|
|
30961
30962
|
selectSingle(value) {
|
|
30962
|
-
this.selectedDates
|
|
30963
|
-
|
|
30963
|
+
if (!isEqual(this.selectedDates, value)) {
|
|
30964
|
+
this.selectedDates = this.getDateOnly(value);
|
|
30965
|
+
this._onChangeCallback(this.selectedDates);
|
|
30966
|
+
}
|
|
30964
30967
|
}
|
|
30965
30968
|
/**
|
|
30966
30969
|
* Performs a multiple selection
|
|
@@ -82184,8 +82187,8 @@ class IgxChildGridRowComponent {
|
|
|
82184
82187
|
}
|
|
82185
82188
|
set data(value) {
|
|
82186
82189
|
this._data = value;
|
|
82187
|
-
if (this.hGrid) {
|
|
82188
|
-
this.hGrid.
|
|
82190
|
+
if (this.hGrid && !this.hGrid.dataSetByUser) {
|
|
82191
|
+
this.hGrid.setDataInternal(this._data.childGridsData[this.layout.key]);
|
|
82189
82192
|
}
|
|
82190
82193
|
}
|
|
82191
82194
|
/**
|
|
@@ -82241,7 +82244,7 @@ class IgxChildGridRowComponent {
|
|
|
82241
82244
|
ngOnInit() {
|
|
82242
82245
|
const ref = this.container.createComponent(IgxHierarchicalGridComponent, { injector: this.container.injector });
|
|
82243
82246
|
this.hGrid = ref.instance;
|
|
82244
|
-
this.hGrid.
|
|
82247
|
+
this.hGrid.setDataInternal(this.data.childGridsData[this.layout.key]);
|
|
82245
82248
|
this.layout.layoutChange.subscribe((ch) => {
|
|
82246
82249
|
this._handleLayoutChanges(ch);
|
|
82247
82250
|
});
|
|
@@ -82340,6 +82343,8 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
|
|
|
82340
82343
|
* @hidden
|
|
82341
82344
|
*/
|
|
82342
82345
|
this.childLayoutKeys = [];
|
|
82346
|
+
/** @hidden @internal */
|
|
82347
|
+
this.dataSetByUser = false;
|
|
82343
82348
|
/**
|
|
82344
82349
|
* @hidden
|
|
82345
82350
|
*/
|
|
@@ -82384,20 +82389,8 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
|
|
|
82384
82389
|
* @memberof IgxHierarchicalGridComponent
|
|
82385
82390
|
*/
|
|
82386
82391
|
set data(value) {
|
|
82387
|
-
this.
|
|
82388
|
-
this.
|
|
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
|
-
}
|
|
82392
|
+
this.setDataInternal(value);
|
|
82393
|
+
this.dataSetByUser = true;
|
|
82401
82394
|
}
|
|
82402
82395
|
/**
|
|
82403
82396
|
* Returns an array of data set to the `IgxHierarchicalGridComponent`.
|
|
@@ -82702,6 +82695,23 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
|
|
|
82702
82695
|
const row = this.getRowByKey(rowID);
|
|
82703
82696
|
return super.pinRow(rowID, index, row);
|
|
82704
82697
|
}
|
|
82698
|
+
/** @hidden @internal */
|
|
82699
|
+
setDataInternal(value) {
|
|
82700
|
+
this._data = value || [];
|
|
82701
|
+
this.summaryService.clearSummaryCache();
|
|
82702
|
+
if (!this._init) {
|
|
82703
|
+
this.validation.updateAll(this._data);
|
|
82704
|
+
}
|
|
82705
|
+
if (this.shouldGenerate) {
|
|
82706
|
+
this.setupColumns();
|
|
82707
|
+
this.reflow();
|
|
82708
|
+
}
|
|
82709
|
+
this.cdr.markForCheck();
|
|
82710
|
+
if (this.parent && (this.height === null || this.height.indexOf('%') !== -1)) {
|
|
82711
|
+
// If the height will change based on how much data there is, recalculate sizes in igxForOf.
|
|
82712
|
+
this.notifyChanges(true);
|
|
82713
|
+
}
|
|
82714
|
+
}
|
|
82705
82715
|
unpinRow(rowID) {
|
|
82706
82716
|
const row = this.getRowByKey(rowID);
|
|
82707
82717
|
return super.unpinRow(rowID, row);
|