igniteui-angular 12.2.4 → 12.2.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.
Files changed (29) hide show
  1. package/bundles/igniteui-angular.umd.js +106 -30
  2. package/bundles/igniteui-angular.umd.js.map +1 -1
  3. package/esm2015/lib/action-strip/action-strip.component.js +19 -2
  4. package/esm2015/lib/action-strip/grid-actions/grid-action-button.component.js +2 -2
  5. package/esm2015/lib/action-strip/grid-actions/grid-editing-actions.component.js +3 -3
  6. package/esm2015/lib/action-strip/grid-actions/grid-pinning-actions.component.js +5 -5
  7. package/esm2015/lib/core/i18n/action-strip-resources.js +4 -0
  8. package/esm2015/lib/core/i18n/resources.js +5 -3
  9. package/esm2015/lib/data-operations/data-util.js +2 -3
  10. package/esm2015/lib/data-operations/grouping-strategy.js +1 -1
  11. package/esm2015/lib/grids/grid/grid.component.js +19 -2
  12. package/esm2015/lib/grids/grid/grid.pipes.js +3 -3
  13. package/esm2015/lib/grids/grid-base.directive.js +4 -1
  14. package/esm2015/lib/services/exporter-common/base-export-service.js +2 -2
  15. package/esm2015/lib/toast/toast.component.js +46 -21
  16. package/esm2015/public_api.js +1 -1
  17. package/fesm2015/igniteui-angular.js +98 -35
  18. package/fesm2015/igniteui-angular.js.map +1 -1
  19. package/igniteui-angular.metadata.json +1 -1
  20. package/lib/action-strip/action-strip.component.d.ts +10 -0
  21. package/lib/core/i18n/action-strip-resources.d.ts +4 -0
  22. package/lib/core/i18n/resources.d.ts +3 -1
  23. package/lib/data-operations/data-util.d.ts +2 -1
  24. package/lib/data-operations/grouping-strategy.d.ts +5 -2
  25. package/lib/grids/grid/grid.component.d.ts +17 -0
  26. package/lib/grids/grid/grid.pipes.d.ts +2 -1
  27. package/lib/toast/toast.component.d.ts +8 -4
  28. package/package.json +1 -1
  29. package/public_api.d.ts +1 -0
@@ -1,5 +1,6 @@
1
1
  import { Renderer2, ViewContainerRef, QueryList, TemplateRef, AfterContentInit, ChangeDetectorRef, AfterViewInit } from '@angular/core';
2
2
  import { DisplayDensityBase, IDisplayDensityOptions } from '../core/density';
3
+ import { IActionStripResourceStrings } from '../core/i18n/action-strip-resources';
3
4
  import { IgxDropDownComponent } from '../drop-down/public_api';
4
5
  import { OverlaySettings } from '../services/public_api';
5
6
  import { IgxGridActionsBaseDirective } from './grid-actions/grid-actions-base.directive';
@@ -76,6 +77,14 @@ export declare class IgxActionStripComponent extends DisplayDensityBase implemen
76
77
  * @internal
77
78
  */
78
79
  hostClass: string;
80
+ /**
81
+ * Gets/Sets the resource strings.
82
+ *
83
+ * @remarks
84
+ * By default it uses EN resources.
85
+ */
86
+ set resourceStrings(value: IActionStripResourceStrings);
87
+ get resourceStrings(): IActionStripResourceStrings;
79
88
  /**
80
89
  * Reference to the menu
81
90
  *
@@ -91,6 +100,7 @@ export declare class IgxActionStripComponent extends DisplayDensityBase implemen
91
100
  */
92
101
  menuOverlaySettings: OverlaySettings;
93
102
  private _hidden;
103
+ private _resourceStrings;
94
104
  constructor(_viewContainer: ViewContainerRef, renderer: Renderer2, _displayDensityOptions: IDisplayDensityOptions, cdr: ChangeDetectorRef);
95
105
  /**
96
106
  * Getter for the 'display' property of the current `IgxActionStrip`
@@ -0,0 +1,4 @@
1
+ export interface IActionStripResourceStrings {
2
+ igx_action_strip_button_more_title?: string;
3
+ }
4
+ export declare const ActionStripResourceStringsEN: IActionStripResourceStrings;
@@ -9,7 +9,8 @@ import { IListResourceStrings } from './list-resources';
9
9
  import { ICalendarResourceStrings } from './calendar-resources';
10
10
  import { IInputResourceStrings } from './input-resources';
11
11
  import { ITreeResourceStrings } from './tree-resources';
12
- export interface IResourceStrings extends IGridResourceStrings, ITimePickerResourceStrings, ICalendarResourceStrings, ICarouselResourceStrings, IChipResourceStrings, IInputResourceStrings, IDatePickerResourceStrings, IDateRangePickerResourceStrings, IListResourceStrings, IPaginatorResourceStrings, ITreeResourceStrings {
12
+ import { IActionStripResourceStrings } from './action-strip-resources';
13
+ export interface IResourceStrings extends IGridResourceStrings, ITimePickerResourceStrings, ICalendarResourceStrings, ICarouselResourceStrings, IChipResourceStrings, IInputResourceStrings, IDatePickerResourceStrings, IDateRangePickerResourceStrings, IListResourceStrings, IPaginatorResourceStrings, ITreeResourceStrings, IActionStripResourceStrings {
13
14
  }
14
15
  /**
15
16
  * @hidden
@@ -35,6 +36,7 @@ export declare const CurrentResourceStrings: {
35
36
  ListResStrings: any;
36
37
  InputResStrings: any;
37
38
  TreeResStrings: any;
39
+ ActionStripResourceStrings: any;
38
40
  };
39
41
  /**
40
42
  * Changes the resource strings for all components in the application
@@ -6,6 +6,7 @@ import { IGroupByKey } from './groupby-expand-state.interface';
6
6
  import { IGroupByRecord } from './groupby-record.interface';
7
7
  import { IGroupingState } from './groupby-state.interface';
8
8
  import { ISortingExpression } from './sorting-expression.interface';
9
+ import { IGridGroupingStrategy } from './grouping-strategy';
9
10
  import { ITreeGridRecord } from '../grids/tree-grid/public_api';
10
11
  import { Transaction, HierarchicalTransaction } from '../services/transaction/transaction';
11
12
  import { GridType } from '../grids/common/grid.interface';
@@ -30,7 +31,7 @@ export declare class DataUtil {
30
31
  static sort<T>(data: T[], expressions: ISortingExpression[], sorting?: IGridSortingStrategy, grid?: GridType): T[];
31
32
  static treeGridSort(hierarchicalData: ITreeGridRecord[], expressions: ISortingExpression[], sorting?: IGridSortingStrategy, parent?: ITreeGridRecord, grid?: GridType): ITreeGridRecord[];
32
33
  static cloneTreeGridRecord(hierarchicalRecord: ITreeGridRecord): ITreeGridRecord;
33
- static group<T>(data: T[], state: IGroupingState, grid?: GridType, groupsRecords?: any[], fullResult?: IGroupByResult): IGroupByResult;
34
+ static group<T>(data: T[], state: IGroupingState, grouping?: IGridGroupingStrategy, grid?: GridType, groupsRecords?: any[], fullResult?: IGroupByResult): IGroupByResult;
34
35
  static page<T>(data: T[], state: IPagingState, dataLength?: number): T[];
35
36
  static filter<T>(data: T[], state: IFilteringState, grid?: GridType): T[];
36
37
  static correctPagingState(state: IPagingState, length: number): void;
@@ -1,6 +1,9 @@
1
- import { IgxSorting } from './sorting-strategy';
1
+ import { IgxSorting, IGridSortingStrategy } from './sorting-strategy';
2
2
  import { IGroupingState } from './groupby-state.interface';
3
3
  import { IGroupByResult } from './grouping-result.interface';
4
- export declare class IgxGrouping extends IgxSorting {
4
+ export interface IGridGroupingStrategy extends IGridSortingStrategy {
5
+ groupBy(data: any[], state: IGroupingState, grid?: any, groupsRecords?: any[], fullResult?: IGroupByResult): IGroupByResult;
6
+ }
7
+ export declare class IgxGrouping extends IgxSorting implements IGridGroupingStrategy {
5
8
  groupBy(data: any[], state: IGroupingState, grid?: any, groupsRecords?: any[], fullResult?: IGroupByResult): IGroupByResult;
6
9
  }
@@ -13,6 +13,7 @@ import { IgxGroupByRowSelectorDirective } from '../selection/row-selectors';
13
13
  import { RowType } from '../common/row.interface';
14
14
  import { IgxGridGroupByAreaComponent } from '../grouping/grid-group-by-area.component';
15
15
  import { CellType } from '../common/cell.interface';
16
+ import { IGridGroupingStrategy } from '../../data-operations/grouping-strategy';
16
17
  export interface IGroupingDoneEventArgs extends IBaseEventArgs {
17
18
  expressions: Array<ISortingExpression> | ISortingExpression;
18
19
  groupedColumns: Array<IgxColumnComponent> | IgxColumnComponent;
@@ -181,6 +182,10 @@ export declare class IgxGridComponent extends IgxGridBaseDirective implements Gr
181
182
  * @hidden
182
183
  */
183
184
  protected _groupAreaTemplate: TemplateRef<any>;
185
+ /**
186
+ * @hidden
187
+ */
188
+ protected _groupStrategy: IGridGroupingStrategy;
184
189
  /**
185
190
  * @hidden
186
191
  */
@@ -269,6 +274,18 @@ export declare class IgxGridComponent extends IgxGridBaseDirective implements Gr
269
274
  */
270
275
  get hideGroupedColumns(): boolean;
271
276
  set hideGroupedColumns(value: boolean);
277
+ /**
278
+ * Gets/Sets the grouping strategy of the grid.
279
+ *
280
+ * @remarks The default IgxGrouping extends from IgxSorting and a custom one can be used as a `sortStrategy` as well.
281
+ *
282
+ * @example
283
+ * ```html
284
+ * <igx-grid #grid [data]="localData" [groupStrategy]="groupStrategy"></igx-grid>
285
+ * ```
286
+ */
287
+ get groupStrategy(): IGridGroupingStrategy;
288
+ set groupStrategy(value: IGridGroupingStrategy);
272
289
  /**
273
290
  * Gets/Sets the message displayed inside the GroupBy drop area where columns can be dragged on.
274
291
  *
@@ -9,6 +9,7 @@ import { IgxGridBaseDirective } from '../grid-base.directive';
9
9
  import { GridType } from '../common/grid.interface';
10
10
  import { IFilteringStrategy } from '../../data-operations/filtering-strategy';
11
11
  import { IGridSortingStrategy } from '../../data-operations/sorting-strategy';
12
+ import { IGridGroupingStrategy } from '../../data-operations/grouping-strategy';
12
13
  /**
13
14
  * @hidden
14
15
  */
@@ -23,7 +24,7 @@ export declare class IgxGridSortingPipe implements PipeTransform {
23
24
  export declare class IgxGridGroupingPipe implements PipeTransform {
24
25
  private gridAPI;
25
26
  constructor(gridAPI: GridBaseAPIService<IgxGridBaseDirective & GridType>);
26
- transform(collection: any[], expression: IGroupingExpression | IGroupingExpression[], expansion: IGroupByExpandState | IGroupByExpandState[], defaultExpanded: boolean, id: string, groupsRecords: any[], _pipeTrigger: number): IGroupByResult;
27
+ transform(collection: any[], expression: IGroupingExpression | IGroupingExpression[], expansion: IGroupByExpandState | IGroupByExpandState[], groupingStrategy: IGridGroupingStrategy, defaultExpanded: boolean, id: string, groupsRecords: any[], _pipeTrigger: number): IGroupByResult;
27
28
  }
28
29
  /**
29
30
  * @hidden
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { IgxNavigationService } from '../core/navigation';
3
3
  import { IgxOverlayService, PositionSettings } from '../services/public_api';
4
4
  import { IgxNotificationsDirective } from '../directives/notification/notifications.directive';
@@ -31,7 +31,7 @@ export declare type IgxToastPosition = (typeof IgxToastPosition)[keyof typeof Ig
31
31
  * </igx-toast>
32
32
  * ```
33
33
  */
34
- export declare class IgxToastComponent extends IgxNotificationsDirective implements OnInit {
34
+ export declare class IgxToastComponent extends IgxNotificationsDirective implements OnInit, OnChanges {
35
35
  private _element;
36
36
  /**
37
37
  * @hidden
@@ -77,7 +77,8 @@ export declare class IgxToastComponent extends IgxNotificationsDirective impleme
77
77
  *
78
78
  * @memberof IgxToastComponent
79
79
  */
80
- position: IgxToastPosition;
80
+ get position(): IgxToastPosition;
81
+ set position(position: IgxToastPosition);
81
82
  /**
82
83
  * Get the position and animation settings used by the toast.
83
84
  * ```typescript
@@ -107,6 +108,7 @@ export declare class IgxToastComponent extends IgxNotificationsDirective impleme
107
108
  * ```
108
109
  */
109
110
  set positionSettings(settings: PositionSettings);
111
+ private _position;
110
112
  private _positionSettings;
111
113
  /**
112
114
  * Gets the nativeElement of the toast.
@@ -126,7 +128,7 @@ export declare class IgxToastComponent extends IgxNotificationsDirective impleme
126
128
  * this.toast.open();
127
129
  * ```
128
130
  */
129
- open(message?: string): void;
131
+ open(message?: string, settings?: PositionSettings): void;
130
132
  /**
131
133
  * Opens or closes the toast, depending on its current state.
132
134
  *
@@ -139,6 +141,8 @@ export declare class IgxToastComponent extends IgxNotificationsDirective impleme
139
141
  * @hidden
140
142
  */
141
143
  ngOnInit(): void;
144
+ ngOnChanges(changes: SimpleChanges): void;
145
+ private calculatePosition;
142
146
  }
143
147
  /**
144
148
  * @hidden
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-angular",
3
- "version": "12.2.4",
3
+ "version": "12.2.5",
4
4
  "description": "Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps",
5
5
  "author": "Infragistics",
6
6
  "license": "SEE LICENSE IN LICENSE",
package/public_api.d.ts CHANGED
@@ -115,5 +115,6 @@ export { IListResourceStrings } from './lib/core/i18n/list-resources';
115
115
  export { ITreeResourceStrings } from './lib/core/i18n/tree-resources';
116
116
  export { IInputResourceStrings } from './lib/core/i18n/input-resources';
117
117
  export { IChipResourceStrings } from './lib/core/i18n/chip-resources';
118
+ export { IActionStripResourceStrings } from './lib/core/i18n/action-strip-resources';
118
119
  export { PickerInteractionMode } from './lib/date-common/types';
119
120
  export { SplitterType } from './lib/splitter/splitter.component';