igniteui-angular 15.0.0 → 15.0.1
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/core/i18n/grid-resources.mjs +3 -2
- package/esm2020/lib/core/utils.mjs +3 -2
- package/esm2020/lib/directives/for-of/for_of.directive.mjs +4 -2
- package/esm2020/lib/grids/grid/grid.component.mjs +6 -1
- package/esm2020/lib/grids/grid-base.directive.mjs +18 -1
- package/esm2020/lib/grids/hierarchical-grid/hierarchical-grid-navigation.service.mjs +3 -2
- package/esm2020/lib/grids/hierarchical-grid/hierarchical-grid.component.mjs +3 -3
- package/esm2020/lib/grids/pivot-grid/pivot-grid-aggregate.mjs +1 -1
- package/esm2020/lib/grids/pivot-grid/pivot-grid.interface.mjs +1 -1
- package/esm2020/lib/grids/pivot-grid/pivot-util.mjs +21 -2
- package/esm2020/lib/simple-combo/simple-combo.component.mjs +3 -3
- package/fesm2015/igniteui-angular.mjs +55 -9
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +54 -9
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/core/i18n/grid-resources.d.ts +1 -0
- package/lib/grids/grid-base.directive.d.ts +9 -0
- package/lib/grids/pivot-grid/pivot-grid-aggregate.d.ts +1 -5
- package/lib/grids/pivot-grid/pivot-grid.interface.d.ts +7 -1
- package/lib/grids/pivot-grid/pivot-util.d.ts +2 -0
- package/package.json +1 -1
|
@@ -162,5 +162,6 @@ export interface IGridResourceStrings {
|
|
|
162
162
|
igx_grid_max_length_validation_error?: string;
|
|
163
163
|
igx_grid_email_validation_error?: string;
|
|
164
164
|
igx_grid_pattern_validation_error?: string;
|
|
165
|
+
igx_grid_pivot_no_aggregator?: string;
|
|
165
166
|
}
|
|
166
167
|
export declare const GridResourceStringsEN: IGridResourceStrings;
|
|
@@ -2545,6 +2545,15 @@ export declare abstract class IgxGridBaseDirective extends DisplayDensityBase im
|
|
|
2545
2545
|
*/
|
|
2546
2546
|
getColumnByName(name: string): IgxColumnComponent;
|
|
2547
2547
|
getColumnByVisibleIndex(index: number): IgxColumnComponent;
|
|
2548
|
+
/**
|
|
2549
|
+
* Recalculates all widths of columns that have size set to `auto`.
|
|
2550
|
+
*
|
|
2551
|
+
* @example
|
|
2552
|
+
* ```typescript
|
|
2553
|
+
* this.grid1.recalculateAutoSizes();
|
|
2554
|
+
* ```
|
|
2555
|
+
*/
|
|
2556
|
+
recalculateAutoSizes(): void;
|
|
2548
2557
|
/**
|
|
2549
2558
|
* Returns an array of visible `IgxColumnComponent`s.
|
|
2550
2559
|
*
|
|
@@ -18,11 +18,7 @@ export declare class IgxPivotAggregate {
|
|
|
18
18
|
*
|
|
19
19
|
* @memberof IgxPivotAggregate
|
|
20
20
|
*/
|
|
21
|
-
static aggregators():
|
|
22
|
-
key: string;
|
|
23
|
-
label: string;
|
|
24
|
-
aggregator: typeof IgxPivotAggregate.count;
|
|
25
|
-
}[];
|
|
21
|
+
static aggregators(): Array<IPivotAggregator>;
|
|
26
22
|
/**
|
|
27
23
|
* Counts all the records in the data source.
|
|
28
24
|
* If filtering is applied, counts only the filtered records.
|
|
@@ -50,11 +50,16 @@ export interface IPivotAggregator {
|
|
|
50
50
|
key: string;
|
|
51
51
|
/** Aggregation label to show in the UI. */
|
|
52
52
|
label: string;
|
|
53
|
+
/**
|
|
54
|
+
* Aggregation name that will be used from a list of predefined aggregations.
|
|
55
|
+
* If not set will use the specified aggregator function.
|
|
56
|
+
*/
|
|
57
|
+
aggregatorName?: PivotAggregationType;
|
|
53
58
|
/**
|
|
54
59
|
* Aggregator function can be a custom implementation of `PivotAggregation`, or
|
|
55
60
|
* use predefined ones from `IgxPivotAggregate` and its variants.
|
|
56
61
|
*/
|
|
57
|
-
aggregator
|
|
62
|
+
aggregator?: (members: any[], data?: any[]) => any;
|
|
58
63
|
}
|
|
59
64
|
/**
|
|
60
65
|
* Configuration of the pivot grid.
|
|
@@ -163,6 +168,7 @@ export declare enum PivotDimensionType {
|
|
|
163
168
|
Column = 1,
|
|
164
169
|
Filter = 2
|
|
165
170
|
}
|
|
171
|
+
export declare type PivotAggregationType = 'SUM' | 'AVG' | 'MIN' | 'MAX' | 'COUNT' | 'LATEST' | 'EARLIEST';
|
|
166
172
|
/** Interface describing the pivot dimension data.
|
|
167
173
|
* Contains additional information needed to render dimension headers.
|
|
168
174
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GridColumnDataType } from '../../data-operations/data-util';
|
|
1
2
|
import { FilteringExpressionsTree } from '../../data-operations/filtering-expressions-tree';
|
|
2
3
|
import { ISortingExpression } from '../../data-operations/sorting-strategy';
|
|
3
4
|
import { PivotGridType } from '../common/grid.interface';
|
|
@@ -17,6 +18,7 @@ export declare class PivotUtil {
|
|
|
17
18
|
static applyAggregations(rec: IPivotGridRecord, hierarchies: any, values: any, pivotKeys: IPivotKeys): void;
|
|
18
19
|
protected static applyAggregationRecordData(aggregationData: any, groupName: string, rec: IPivotGridRecord, pivotKeys: IPivotKeys): void;
|
|
19
20
|
static aggregate(records: any, values: IPivotValue[]): {};
|
|
21
|
+
static getAggregatorForType(aggregate: IPivotAggregator, dataType: GridColumnDataType): (members: any[], data?: any[]) => any;
|
|
20
22
|
static processHierarchy(hierarchies: any, pivotKeys: any, level?: number, rootData?: boolean): IPivotGridRecord[];
|
|
21
23
|
static getDirectLeafs(records: IPivotGridRecord[]): any[];
|
|
22
24
|
static getRecordKey(rec: IPivotGridRecord, currentDim: IPivotDimension): string;
|
package/package.json
CHANGED