igniteui-angular 15.0.4 → 15.0.5

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.
@@ -22801,7 +22801,7 @@ class IgxSummaryOperand {
22801
22801
  * constructor() {
22802
22802
  * super();
22803
22803
  * }
22804
- * public operate(data: any[], allData: any[], fieldName: string): IgxSummaryResult[] {
22804
+ * public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
22805
22805
  * const result = [];
22806
22806
  * result.push({
22807
22807
  * key: "test",
@@ -22816,7 +22816,7 @@ class IgxSummaryOperand {
22816
22816
  *
22817
22817
  * @memberof IgxSummaryOperand
22818
22818
  */
22819
- operate(data = [], allData = [], fieldName) {
22819
+ operate(data = [], allData = [], fieldName, groupRecord) {
22820
22820
  return [{
22821
22821
  key: 'count',
22822
22822
  label: 'Count',
@@ -22890,8 +22890,8 @@ class IgxNumberSummaryOperand extends IgxSummaryOperand {
22890
22890
  * constructor() {
22891
22891
  * super();
22892
22892
  * }
22893
- * public operate(data: any[], allData: any[], fieldName: string): IgxSummaryResult[] {
22894
- * const result = super.operate(data, allData, fieldName);
22893
+ * public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
22894
+ * const result = super.operate(data, allData, fieldName, groupRecord);
22895
22895
  * result.push({
22896
22896
  * key: "avg",
22897
22897
  * label: "Avg",
@@ -22910,8 +22910,8 @@ class IgxNumberSummaryOperand extends IgxSummaryOperand {
22910
22910
  *
22911
22911
  * @memberof IgxNumberSummaryOperand
22912
22912
  */
22913
- operate(data = [], allData = [], fieldName) {
22914
- const result = super.operate(data, allData, fieldName);
22913
+ operate(data = [], allData = [], fieldName, groupRecord) {
22914
+ const result = super.operate(data, allData, fieldName, groupRecord);
22915
22915
  result.push({
22916
22916
  key: 'min',
22917
22917
  label: 'Min',
@@ -22982,8 +22982,8 @@ class IgxDateSummaryOperand extends IgxSummaryOperand {
22982
22982
  * constructor() {
22983
22983
  * super();
22984
22984
  * }
22985
- * public operate(data: any[], allData: any[], fieldName: string): IgxSummaryResult[] {
22986
- * const result = super.operate(data, allData, fieldName);
22985
+ * public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
22986
+ * const result = super.operate(data, allData, fieldName, groupRecord);
22987
22987
  * result.push({
22988
22988
  * key: "deadline",
22989
22989
  * label: "Deadline Date",
@@ -22997,8 +22997,8 @@ class IgxDateSummaryOperand extends IgxSummaryOperand {
22997
22997
  *
22998
22998
  * @memberof IgxDateSummaryOperand
22999
22999
  */
23000
- operate(data = [], allData = [], fieldName) {
23001
- const result = super.operate(data, allData, fieldName);
23000
+ operate(data = [], allData = [], fieldName, groupRecord) {
23001
+ const result = super.operate(data, allData, fieldName, groupRecord);
23002
23002
  result.push({
23003
23003
  key: 'earliest',
23004
23004
  label: 'Earliest',
@@ -23047,8 +23047,8 @@ class IgxTimeSummaryOperand extends IgxSummaryOperand {
23047
23047
  /**
23048
23048
  * @memberof IgxTimeSummaryOperand
23049
23049
  */
23050
- operate(data = [], allData = [], fieldName) {
23051
- const result = super.operate(data, allData, fieldName);
23050
+ operate(data = [], allData = [], fieldName, groupRecord) {
23051
+ const result = super.operate(data, allData, fieldName, groupRecord);
23052
23052
  result.push({
23053
23053
  key: 'earliest',
23054
23054
  label: 'Earliest',
@@ -61218,7 +61218,7 @@ class IgxGridSummaryService {
61218
61218
  this.summaryHeight = maxSummaryLength * this.grid.defaultSummaryHeight;
61219
61219
  return this.summaryHeight;
61220
61220
  }
61221
- calculateSummaries(rowID, data) {
61221
+ calculateSummaries(rowID, data, groupRecord) {
61222
61222
  let rowSummaries = this.summaryCacheMap.get(rowID);
61223
61223
  if (!rowSummaries) {
61224
61224
  rowSummaries = new Map();
@@ -61229,7 +61229,7 @@ class IgxGridSummaryService {
61229
61229
  }
61230
61230
  this.grid.columns.filter(col => col.hasSummary).forEach((column) => {
61231
61231
  if (!rowSummaries.get(column.field)) {
61232
- const summaryResult = column.summaries.operate(data.map(r => resolveNestedPath(r, column.field)), data, column.field, this.grid.locale, column.pipeArgs);
61232
+ const summaryResult = column.summaries.operate(data.map(r => resolveNestedPath(r, column.field)), data, column.field, groupRecord, this.grid.locale, column.pipeArgs);
61233
61233
  rowSummaries.set(column.field, summaryResult);
61234
61234
  }
61235
61235
  });
@@ -70510,7 +70510,7 @@ class IgxGridSummaryPipe {
70510
70510
  for (const groupRecord of groupRecords) {
70511
70511
  const groupRecordId = this.grid.gridAPI.get_groupBy_record_id(groupRecord);
70512
70512
  const records = this.removeDeletedRecord(this.grid, groupRecord.records.slice());
70513
- const summaries = this.grid.summaryService.calculateSummaries(groupRecordId, records);
70513
+ const summaries = this.grid.summaryService.calculateSummaries(groupRecordId, records, groupRecord);
70514
70514
  const summaryRecord = {
70515
70515
  summaries,
70516
70516
  max: maxSummaryHeight
@@ -70524,7 +70524,7 @@ class IgxGridSummaryPipe {
70524
70524
  }
70525
70525
  if (summaryPosition === GridSummaryPosition.top) {
70526
70526
  const records = this.removeDeletedRecord(this.grid, groupByRecord.records.slice());
70527
- const summaries = this.grid.summaryService.calculateSummaries(recordId, records);
70527
+ const summaries = this.grid.summaryService.calculateSummaries(recordId, records, groupByRecord);
70528
70528
  const summaryRecord = {
70529
70529
  summaries,
70530
70530
  max: maxSummaryHeight