igniteui-angular 14.2.11 → 14.2.12
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/grids/grid/grid.summary.pipe.mjs +3 -3
- package/esm2020/lib/grids/summaries/grid-summary.mjs +7 -7
- package/esm2020/lib/grids/summaries/grid-summary.service.mjs +3 -3
- package/fesm2015/igniteui-angular.mjs +10 -10
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +10 -10
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/grids/summaries/grid-summary.d.ts +5 -4
- package/lib/grids/summaries/grid-summary.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -22482,7 +22482,7 @@ class IgxSummaryOperand {
|
|
|
22482
22482
|
*
|
|
22483
22483
|
* @memberof IgxSummaryOperand
|
|
22484
22484
|
*/
|
|
22485
|
-
operate(data = [], allData = [], fieldName) {
|
|
22485
|
+
operate(data = [], allData = [], fieldName, groupRecord) {
|
|
22486
22486
|
return [{
|
|
22487
22487
|
key: 'count',
|
|
22488
22488
|
label: 'Count',
|
|
@@ -22576,8 +22576,8 @@ class IgxNumberSummaryOperand extends IgxSummaryOperand {
|
|
|
22576
22576
|
*
|
|
22577
22577
|
* @memberof IgxNumberSummaryOperand
|
|
22578
22578
|
*/
|
|
22579
|
-
operate(data = [], allData = [], fieldName) {
|
|
22580
|
-
const result = super.operate(data, allData, fieldName);
|
|
22579
|
+
operate(data = [], allData = [], fieldName, groupRecord) {
|
|
22580
|
+
const result = super.operate(data, allData, fieldName, groupRecord);
|
|
22581
22581
|
result.push({
|
|
22582
22582
|
key: 'min',
|
|
22583
22583
|
label: 'Min',
|
|
@@ -22663,8 +22663,8 @@ class IgxDateSummaryOperand extends IgxSummaryOperand {
|
|
|
22663
22663
|
*
|
|
22664
22664
|
* @memberof IgxDateSummaryOperand
|
|
22665
22665
|
*/
|
|
22666
|
-
operate(data = [], allData = [], fieldName) {
|
|
22667
|
-
const result = super.operate(data, allData, fieldName);
|
|
22666
|
+
operate(data = [], allData = [], fieldName, groupRecord) {
|
|
22667
|
+
const result = super.operate(data, allData, fieldName, groupRecord);
|
|
22668
22668
|
result.push({
|
|
22669
22669
|
key: 'earliest',
|
|
22670
22670
|
label: 'Earliest',
|
|
@@ -22713,7 +22713,7 @@ class IgxTimeSummaryOperand extends IgxSummaryOperand {
|
|
|
22713
22713
|
/**
|
|
22714
22714
|
* @memberof IgxTimeSummaryOperand
|
|
22715
22715
|
*/
|
|
22716
|
-
operate(data = [], allData = [], fieldName) {
|
|
22716
|
+
operate(data = [], allData = [], fieldName, groupRecord) {
|
|
22717
22717
|
const result = super.operate(data, allData, fieldName);
|
|
22718
22718
|
result.push({
|
|
22719
22719
|
key: 'earliest',
|
|
@@ -60681,7 +60681,7 @@ class IgxGridSummaryService {
|
|
|
60681
60681
|
this.summaryHeight = maxSummaryLength * this.grid.defaultSummaryHeight;
|
|
60682
60682
|
return this.summaryHeight;
|
|
60683
60683
|
}
|
|
60684
|
-
calculateSummaries(rowID, data) {
|
|
60684
|
+
calculateSummaries(rowID, data, groupRecord) {
|
|
60685
60685
|
let rowSummaries = this.summaryCacheMap.get(rowID);
|
|
60686
60686
|
if (!rowSummaries) {
|
|
60687
60687
|
rowSummaries = new Map();
|
|
@@ -60692,7 +60692,7 @@ class IgxGridSummaryService {
|
|
|
60692
60692
|
}
|
|
60693
60693
|
this.grid.columns.filter(col => col.hasSummary).forEach((column) => {
|
|
60694
60694
|
if (!rowSummaries.get(column.field)) {
|
|
60695
|
-
const summaryResult = column.summaries.operate(data.map(r => resolveNestedPath(r, column.field)), data, column.field, this.grid.locale, column.pipeArgs);
|
|
60695
|
+
const summaryResult = column.summaries.operate(data.map(r => resolveNestedPath(r, column.field)), data, column.field, groupRecord, this.grid.locale, column.pipeArgs);
|
|
60696
60696
|
rowSummaries.set(column.field, summaryResult);
|
|
60697
60697
|
}
|
|
60698
60698
|
});
|
|
@@ -69714,7 +69714,7 @@ class IgxGridSummaryPipe {
|
|
|
69714
69714
|
for (const groupRecord of groupRecords) {
|
|
69715
69715
|
const groupRecordId = this.grid.gridAPI.get_groupBy_record_id(groupRecord);
|
|
69716
69716
|
const records = this.removeDeletedRecord(this.grid, groupRecord.records.slice());
|
|
69717
|
-
const summaries = this.grid.summaryService.calculateSummaries(groupRecordId, records);
|
|
69717
|
+
const summaries = this.grid.summaryService.calculateSummaries(groupRecordId, records, groupRecord);
|
|
69718
69718
|
const summaryRecord = {
|
|
69719
69719
|
summaries,
|
|
69720
69720
|
max: maxSummaryHeight
|
|
@@ -69728,7 +69728,7 @@ class IgxGridSummaryPipe {
|
|
|
69728
69728
|
}
|
|
69729
69729
|
if (summaryPosition === GridSummaryPosition.top) {
|
|
69730
69730
|
const records = this.removeDeletedRecord(this.grid, groupByRecord.records.slice());
|
|
69731
|
-
const summaries = this.grid.summaryService.calculateSummaries(recordId, records);
|
|
69731
|
+
const summaries = this.grid.summaryService.calculateSummaries(recordId, records, groupByRecord);
|
|
69732
69732
|
const summaryRecord = {
|
|
69733
69733
|
summaries,
|
|
69734
69734
|
max: maxSummaryHeight
|