igniteui-angular 13.0.0-alpha.3 → 13.0.0-alpha.4

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 (27) hide show
  1. package/esm2020/lib/core/utils.mjs +3 -2
  2. package/esm2020/lib/directives/scroll-inertia/scroll_inertia.directive.mjs +1 -90
  3. package/esm2020/lib/grids/cell.component.mjs +5 -5
  4. package/esm2020/lib/grids/common/grid.interface.mjs +1 -1
  5. package/esm2020/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.mjs +4 -4
  6. package/esm2020/lib/grids/grid/grid.component.mjs +1 -1
  7. package/esm2020/lib/grids/grid-base.directive.mjs +13 -9
  8. package/esm2020/lib/grids/hierarchical-grid/hierarchical-grid.component.mjs +1 -1
  9. package/esm2020/lib/grids/hierarchical-grid/row-island.component.mjs +1 -1
  10. package/esm2020/lib/grids/state.directive.mjs +8 -5
  11. package/esm2020/lib/grids/toolbar/grid-toolbar-advanced-filtering.component.mjs +13 -11
  12. package/esm2020/lib/grids/toolbar/grid-toolbar-exporter.component.mjs +17 -15
  13. package/esm2020/lib/grids/toolbar/grid-toolbar.base.mjs +6 -4
  14. package/esm2020/lib/grids/tree-grid/tree-grid.component.mjs +1 -1
  15. package/fesm2015/igniteui-angular.mjs +37 -109
  16. package/fesm2015/igniteui-angular.mjs.map +1 -1
  17. package/fesm2020/igniteui-angular.mjs +31 -109
  18. package/fesm2020/igniteui-angular.mjs.map +1 -1
  19. package/lib/core/utils.d.ts +5 -0
  20. package/lib/directives/scroll-inertia/scroll_inertia.directive.d.ts +0 -24
  21. package/lib/grids/common/grid.interface.d.ts +19 -1
  22. package/lib/grids/grid-base.directive.d.ts +5 -5
  23. package/lib/grids/state.directive.d.ts +3 -3
  24. package/lib/grids/toolbar/grid-toolbar-advanced-filtering.component.d.ts +1 -1
  25. package/lib/grids/toolbar/grid-toolbar-exporter.component.d.ts +1 -1
  26. package/lib/grids/toolbar/grid-toolbar.base.d.ts +1 -1
  27. package/package.json +2 -2
@@ -246,3 +246,8 @@ export declare const isVerticalAnimation: (animation: AnimationReferenceMetadata
246
246
  * coalescing to an empty string.
247
247
  */
248
248
  export declare const formatDate: (value: string | number | Date, format: string, locale: string, timezone?: string) => string;
249
+ export declare const formatCurrency: {
250
+ (value: string | number, currencyCode?: string, display?: string | boolean, digitsInfo?: string, locale?: string): string;
251
+ (value: null, currencyCode?: string, display?: string | boolean, digitsInfo?: string, locale?: string): null;
252
+ (value: string | number, currencyCode?: string, display?: string | boolean, digitsInfo?: string, locale?: string): string;
253
+ };
@@ -32,10 +32,6 @@ export declare class IgxScrollInertiaDirective implements OnInit, OnDestroy {
32
32
  private _offsetDirection;
33
33
  private _lastMovedX;
34
34
  private _lastMovedY;
35
- private _gestureObject;
36
- private setPointerCaptureFName;
37
- private releasePointerCaptureFName;
38
- private _pointer;
39
35
  private _nextX;
40
36
  private _nextY;
41
37
  private parentElement;
@@ -65,26 +61,6 @@ export declare class IgxScrollInertiaDirective implements OnInit, OnDestroy {
65
61
  */
66
62
  protected onTouchMove(event: any): void;
67
63
  protected onTouchEnd(event: any): void;
68
- /**
69
- * @hidden
70
- * Function that is called when we need to detect touch starting on a touch device on IE/Edge
71
- */
72
- protected onPointerDown(event: any): boolean;
73
- /**
74
- * @hidden
75
- * Function that is called when we need to detect touch ending on a touch device on IE/Edge
76
- */
77
- protected onPointerUp(event: any): boolean;
78
- /**
79
- * @hidden
80
- * Function that is called when a gesture begins on IE/Edge
81
- */
82
- protected onMSGestureStart(event: any): boolean;
83
- /**
84
- * @hidden
85
- * Function that is called when a we need to scroll based on the gesture performed on IE/Edge
86
- */
87
- protected onMSGestureChange(event: any): boolean;
88
64
  protected _smoothWheelScroll(delta: any): void;
89
65
  protected _inertiaInit(speedX: any, speedY: any): void;
90
66
  private calcAxisCoords;
@@ -23,8 +23,9 @@ import { IColumnPipeArgs, MRLResizeColumnInfo } from '../columns/interfaces';
23
23
  import { IgxSummaryResult } from '../summaries/grid-summary';
24
24
  import { ISortingExpression, ISortingStrategy } from '../../data-operations/sorting-strategy';
25
25
  import { IGridGroupingStrategy, IGridSortingStrategy } from './strategy';
26
- import { IForOfState } from '../../directives/for-of/for_of.directive';
26
+ import { IForOfState, IgxGridForOfDirective } from '../../directives/for-of/for_of.directive';
27
27
  import { OverlaySettings } from '../../services/overlay/utilities';
28
+ import { IPinningConfig } from '../grid.common';
28
29
  export declare const IGX_GRID_BASE: InjectionToken<GridType>;
29
30
  export declare const IGX_GRID_SERVICE_BASE: InjectionToken<GridServiceType>;
30
31
  export interface IPathSegment {
@@ -52,12 +53,16 @@ export interface CellType {
52
53
  rowIndex: number;
53
54
  };
54
55
  cellID?: any;
56
+ readonly?: boolean;
57
+ title?: any;
55
58
  width: string;
56
59
  visibleColumnIndex?: number;
57
60
  update: (value: any) => void;
58
61
  setEditMode?(value: boolean): void;
59
62
  calculateSizeToFit?(range: any): number;
60
63
  activate?(event: FocusEvent | KeyboardEvent): void;
64
+ onDoubleClick?(event: MouseEvent): void;
65
+ onClick?(event: MouseEvent): void;
61
66
  }
62
67
  export interface RowType {
63
68
  nativeElement?: HTMLElement;
@@ -75,6 +80,7 @@ export interface RowType {
75
80
  data?: any;
76
81
  cells?: QueryList<CellType> | CellType[];
77
82
  disabled?: boolean;
83
+ virtDirRow?: IgxGridForOfDirective<any>;
78
84
  pinned?: boolean;
79
85
  selected?: boolean;
80
86
  expanded?: boolean;
@@ -85,7 +91,10 @@ export interface RowType {
85
91
  hasChildren?: boolean;
86
92
  treeRow?: ITreeGridRecord;
87
93
  addRowUI?: any;
94
+ focused?: boolean;
88
95
  grid: GridType;
96
+ onRowSelectorClick?: (event: any) => void;
97
+ onClick?: (event: MouseEvent) => void;
89
98
  beginAddRow?: () => void;
90
99
  update?: (value: any) => void;
91
100
  delete?: () => any;
@@ -164,6 +173,7 @@ export interface ColumnType {
164
173
  title: string;
165
174
  groupingComparer: (a: any, b: any) => number;
166
175
  filterCellTemplate: TemplateRef<any>;
176
+ move(index: number): void;
167
177
  getAutoSize(): string;
168
178
  getResizableColUnderEnd(): MRLResizeColumnInfo[];
169
179
  getCellWidth(): string;
@@ -285,6 +295,7 @@ export interface GridType extends IGridDataBindable {
285
295
  defaultRowHeight: number;
286
296
  _baseFontSize?: number;
287
297
  scrollSize: number;
298
+ pinning: IPinningConfig;
288
299
  expansionStates: Map<any, boolean>;
289
300
  parentVirtDir: any;
290
301
  tbody: any;
@@ -431,9 +442,15 @@ export interface GridType extends IGridDataBindable {
431
442
  groupingFlatResult?: any[];
432
443
  groupingResult?: any[];
433
444
  groupingMetadata?: any[];
445
+ selectedCells?: CellType[];
446
+ selectedRows: any[];
434
447
  toggleGroup?(groupRow: IGroupByRecord): void;
435
448
  clearGrouping?(field: string): void;
436
449
  groupBy?(expression: IGroupingExpression | Array<IGroupingExpression>): void;
450
+ getSelectedRanges(): GridSelectionRange[];
451
+ deselectAllColumns(): void;
452
+ deselectColumns(columns: string[] | ColumnType[]): void;
453
+ selectColumns(columns: string[] | ColumnType[]): void;
437
454
  selectedColumns(): ColumnType[];
438
455
  refreshSearch(): void;
439
456
  getDefaultExpandState(record: any): boolean;
@@ -450,6 +467,7 @@ export interface GridType extends IGridDataBindable {
450
467
  getColumnByVisibleIndex(index: number): ColumnType;
451
468
  getHeaderGroupWidth(column: ColumnType): string;
452
469
  getRowByKey?(key: any): RowType;
470
+ getRowByIndex?(index: number): RowType;
453
471
  setFilteredData(data: any, pinned: boolean): void;
454
472
  setFilteredSortedData(data: any, pinned: boolean): void;
455
473
  sort(expression: ISortingExpression | ISortingExpression[]): void;
@@ -2898,7 +2898,7 @@ export declare abstract class IgxGridBaseDirective extends DisplayDensityBase im
2898
2898
  * const selectedColumns = this.grid.selectedColumns();
2899
2899
  * ```
2900
2900
  */
2901
- selectedColumns(): IgxColumnComponent[];
2901
+ selectedColumns(): ColumnType[];
2902
2902
  /**
2903
2903
  * Select specified columns.
2904
2904
  *
@@ -2909,9 +2909,9 @@ export declare abstract class IgxGridBaseDirective extends DisplayDensityBase im
2909
2909
  * @param columns
2910
2910
  * @param clearCurrentSelection if true clears the current selection
2911
2911
  */
2912
- selectColumns(columns: string[] | IgxColumnComponent[], clearCurrentSelection?: boolean): void;
2912
+ selectColumns(columns: string[] | ColumnType[], clearCurrentSelection?: boolean): void;
2913
2913
  /**
2914
- * Deselect specified columns by filed.
2914
+ * Deselect specified columns by field.
2915
2915
  *
2916
2916
  * @example
2917
2917
  * ```typescript
@@ -2919,7 +2919,7 @@ export declare abstract class IgxGridBaseDirective extends DisplayDensityBase im
2919
2919
  * ```
2920
2920
  * @param columns
2921
2921
  */
2922
- deselectColumns(columns: string[] | IgxColumnComponent[]): void;
2922
+ deselectColumns(columns: string[] | ColumnType[]): void;
2923
2923
  /**
2924
2924
  * Deselects all columns
2925
2925
  *
@@ -3050,7 +3050,7 @@ export declare abstract class IgxGridBaseDirective extends DisplayDensityBase im
3050
3050
  /**
3051
3051
  * @hidden @internal
3052
3052
  */
3053
- getEmptyRecordObjectFor(inRow: IgxRowDirective): {
3053
+ getEmptyRecordObjectFor(inRow: RowType): {
3054
3054
  rowID: string | number;
3055
3055
  data: any;
3056
3056
  recordRef: any;
@@ -3,10 +3,10 @@ import { IFilteringExpressionsTree } from '../data-operations/filtering-expressi
3
3
  import { IPagingState } from '../data-operations/paging-state.interface';
4
4
  import { GridColumnDataType } from '../data-operations/data-util';
5
5
  import { IGroupingState } from '../data-operations/groupby-state.interface';
6
- import { IgxGridBaseDirective } from './grid-base.directive';
7
6
  import { IPinningConfig } from './grid.common';
8
7
  import { GridSelectionRange } from './common/types';
9
8
  import { ISortingExpression } from '../data-operations/sorting-strategy';
9
+ import { GridType } from './common/grid.interface';
10
10
  import * as i0 from "@angular/core";
11
11
  export interface IGridState {
12
12
  columns?: IColumnState[];
@@ -70,7 +70,7 @@ export interface IColumnState {
70
70
  }
71
71
  export declare type GridFeatures = keyof IGridStateOptions;
72
72
  export declare class IgxGridStateDirective {
73
- grid: IgxGridBaseDirective;
73
+ grid: GridType;
74
74
  private resolver;
75
75
  private viewRef;
76
76
  private static ngAcceptInputType_options;
@@ -93,7 +93,7 @@ export declare class IgxGridStateDirective {
93
93
  /**
94
94
  * @hidden
95
95
  */
96
- constructor(grid: IgxGridBaseDirective, resolver: ComponentFactoryResolver, viewRef: ViewContainerRef);
96
+ constructor(grid: GridType, resolver: ComponentFactoryResolver, viewRef: ViewContainerRef);
97
97
  /**
98
98
  * Gets the state of a feature or states of all grid features, unless a certain feature is disabled through the `options` property.
99
99
  *
@@ -22,6 +22,6 @@ export declare class IgxGridToolbarAdvancedFilteringComponent {
22
22
  get grid(): import("../common/grid.interface").GridType;
23
23
  overlaySettings: OverlaySettings;
24
24
  constructor(toolbar: IgxToolbarToken);
25
- static ɵfac: i0.ɵɵFactoryDeclaration<IgxGridToolbarAdvancedFilteringComponent, [{ host: true; }]>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<IgxGridToolbarAdvancedFilteringComponent, never>;
26
26
  static ɵcmp: i0.ɵɵComponentDeclaration<IgxGridToolbarAdvancedFilteringComponent, "igx-grid-toolbar-advanced-filtering", never, { "overlaySettings": "overlaySettings"; }, {}, never, ["*"]>;
27
27
  }
@@ -65,6 +65,6 @@ export declare class IgxGridToolbarExporterComponent extends BaseToolbarDirectiv
65
65
  isExporting: boolean;
66
66
  constructor(toolbar: IgxToolbarToken, excelExporter: IgxExcelExporterService, csvExporter: IgxCsvExporterService);
67
67
  export(type: 'excel' | 'csv', toggleRef?: IgxToggleDirective): void;
68
- static ɵfac: i0.ɵɵFactoryDeclaration<IgxGridToolbarExporterComponent, [{ host: true; }, null, null]>;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<IgxGridToolbarExporterComponent, never>;
69
69
  static ɵcmp: i0.ɵɵComponentDeclaration<IgxGridToolbarExporterComponent, "igx-grid-toolbar-exporter", never, { "exportCSV": "exportCSV"; "exportExcel": "exportExcel"; "filename": "filename"; }, { "exportStarted": "exportStarted"; "exportEnded": "exportEnded"; }, ["hasExcelAttr", "hasCSVAttr"], ["*", "[excelText],excel-text", "[csvText],csv-text"]>;
70
70
  }
@@ -67,7 +67,7 @@ export declare abstract class BaseToolbarDirective implements OnDestroy {
67
67
  /** @hidden @internal */
68
68
  focusSearch(columnActions: HTMLElement): void;
69
69
  private _setupListeners;
70
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseToolbarDirective, [{ host: true; }]>;
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseToolbarDirective, never>;
71
71
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseToolbarDirective, never, never, { "columnListHeight": "columnListHeight"; "title": "title"; "prompt": "prompt"; "overlaySettings": "overlaySettings"; }, { "opening": "opening"; "opened": "opened"; "closing": "closing"; "closed": "closed"; "columnToggle": "columnToggle"; }, never>;
72
72
  }
73
73
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-angular",
3
- "version": "13.0.0-alpha.3",
3
+ "version": "13.0.0-alpha.4",
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",
@@ -82,7 +82,7 @@
82
82
  "@angular/forms": "^13.0.0"
83
83
  },
84
84
  "igxDevDependencies": {
85
- "@igniteui/angular-schematics": "~12.2.820"
85
+ "@igniteui/angular-schematics": "~13.0.900-beta.0"
86
86
  },
87
87
  "ng-update": {
88
88
  "migrations": "./migrations/migration-collection.json"