igniteui-angular 14.1.1 → 14.2.0-alpha.2
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/setImmediate.mjs +1 -1
- package/esm2020/lib/core/utils.mjs +2 -2
- package/esm2020/lib/grids/columns/column-group.component.mjs +1 -1
- package/esm2020/lib/grids/columns/column.component.mjs +1 -1
- package/esm2020/lib/grids/columns/templates.directive.mjs +29 -1
- package/esm2020/lib/grids/common/grid.interface.mjs +1 -1
- package/esm2020/lib/grids/filtering/base/grid-filtering-cell.component.mjs +2 -2
- package/esm2020/lib/grids/filtering/excel-style/excel-style-search.component.mjs +5 -1
- package/esm2020/lib/grids/grid/expandable-cell.component.mjs +3 -3
- package/esm2020/lib/grids/grid/grid.component.mjs +1 -1
- package/esm2020/lib/grids/grid/grid.directives.mjs +41 -1
- package/esm2020/lib/grids/grid-base.directive.mjs +1 -1
- package/esm2020/lib/grids/grid-public-row.mjs +2 -2
- package/esm2020/lib/grids/grid.rowEdit.directive.mjs +17 -1
- package/esm2020/lib/grids/headers/grid-header-row.component.mjs +3 -3
- package/esm2020/lib/grids/pivot-grid/pivot-grid.component.mjs +1 -1
- package/esm2020/lib/grids/pivot-grid/pivot-grid.directives.mjs +5 -1
- package/esm2020/lib/grids/pivot-grid/pivot-grid.interface.mjs +1 -1
- package/esm2020/lib/grids/row-drag.directive.mjs +9 -1
- package/esm2020/lib/grids/row.directive.mjs +2 -2
- package/esm2020/lib/grids/selection/row-selectors.mjs +13 -1
- package/esm2020/lib/grids/toolbar/common.mjs +5 -1
- package/esm2020/lib/services/excel/excel-exporter.mjs +13 -13
- package/esm2020/lib/services/excel/excel-files.mjs +14 -13
- package/esm2020/lib/services/excel/excel-interfaces.mjs +1 -1
- package/fesm2015/igniteui-angular.mjs +146 -30
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +146 -30
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/core/setImmediate.d.ts +8 -3
- package/lib/grids/columns/column-group.component.d.ts +2 -2
- package/lib/grids/columns/column.component.d.ts +19 -19
- package/lib/grids/columns/templates.directive.d.ts +22 -14
- package/lib/grids/common/grid.interface.d.ts +97 -13
- package/lib/grids/filtering/base/grid-filtering-cell.component.d.ts +1 -0
- package/lib/grids/filtering/excel-style/excel-style-search.component.d.ts +3 -2
- package/lib/grids/grid/grid.component.d.ts +8 -11
- package/lib/grids/grid/grid.directives.d.ts +13 -2
- package/lib/grids/grid-base.directive.d.ts +24 -24
- package/lib/grids/grid.rowEdit.directive.d.ts +5 -1
- package/lib/grids/headers/grid-header-row.component.d.ts +3 -11
- package/lib/grids/hierarchical-grid/hierarchical-grid.component.d.ts +3 -3
- package/lib/grids/pivot-grid/pivot-grid.component.d.ts +3 -3
- package/lib/grids/pivot-grid/pivot-grid.directives.d.ts +4 -2
- package/lib/grids/pivot-grid/pivot-grid.interface.d.ts +3 -0
- package/lib/grids/row-drag.directive.d.ts +5 -2
- package/lib/grids/selection/row-selectors.d.ts +10 -6
- package/lib/grids/toolbar/common.d.ts +1 -0
- package/lib/services/excel/excel-exporter.d.ts +2 -5
- package/lib/services/excel/excel-files.d.ts +12 -13
- package/lib/services/excel/excel-interfaces.d.ts +1 -2
- package/package.json +3 -3
- package/schematics/ng-add/index.spec.js +1 -1
- package/schematics/tsconfig.tsbuildinfo +1 -1
- package/schematics/utils/dependency-handler.js +2 -2
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
setImmediate: any;
|
|
4
|
+
clearImmediate: any;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export declare function setImmediate(cb: () => void, ...args: any[]): any;
|
|
8
|
+
export declare function clearImmediate(id: any): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterContentInit, QueryList, TemplateRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { IgxColumnComponent } from './column.component';
|
|
3
|
-
import { CellType } from '../common/grid.interface';
|
|
3
|
+
import { CellType, IgxColumnTemplateContext } from '../common/grid.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class IgxColumnGroupComponent extends IgxColumnComponent implements AfterContentInit {
|
|
6
6
|
children: QueryList<IgxColumnComponent>;
|
|
@@ -105,7 +105,7 @@ export declare class IgxColumnGroupComponent extends IgxColumnComponent implemen
|
|
|
105
105
|
*
|
|
106
106
|
* @memberof IgxColumnGroupComponent
|
|
107
107
|
*/
|
|
108
|
-
collapsibleIndicatorTemplate: TemplateRef<
|
|
108
|
+
collapsibleIndicatorTemplate: TemplateRef<IgxColumnTemplateContext>;
|
|
109
109
|
/**
|
|
110
110
|
* Returns a reference to the inline editor template.
|
|
111
111
|
* ```typescript
|
|
@@ -4,7 +4,7 @@ import { GridColumnDataType } from '../../data-operations/data-util';
|
|
|
4
4
|
import { IgxFilteringOperand } from '../../data-operations/filtering-condition';
|
|
5
5
|
import { ISortingStrategy } from '../../data-operations/sorting-strategy';
|
|
6
6
|
import { FilteringExpressionsTree } from '../../data-operations/filtering-expressions-tree';
|
|
7
|
-
import { CellType, ColumnType, GridType } from '../common/grid.interface';
|
|
7
|
+
import { CellType, ColumnType, GridType, IgxCellTemplateContext, IgxColumnTemplateContext, IgxSummaryTemplateContext } from '../common/grid.interface';
|
|
8
8
|
import { IgxGridHeaderComponent } from '../headers/grid-header.component';
|
|
9
9
|
import { IgxGridFilteringCellComponent } from '../filtering/base/grid-filtering-cell.component';
|
|
10
10
|
import { IgxGridHeaderGroupComponent } from '../headers/grid-header-group.component';
|
|
@@ -782,7 +782,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
782
782
|
*
|
|
783
783
|
* @memberof IgxColumnComponent
|
|
784
784
|
*/
|
|
785
|
-
get summaryTemplate(): TemplateRef<
|
|
785
|
+
get summaryTemplate(): TemplateRef<IgxSummaryTemplateContext>;
|
|
786
786
|
/**
|
|
787
787
|
* Sets the summary template.
|
|
788
788
|
* ```html
|
|
@@ -799,7 +799,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
799
799
|
*
|
|
800
800
|
* @memberof IgxColumnComponent
|
|
801
801
|
*/
|
|
802
|
-
set summaryTemplate(template: TemplateRef<
|
|
802
|
+
set summaryTemplate(template: TemplateRef<IgxSummaryTemplateContext>);
|
|
803
803
|
/**
|
|
804
804
|
* Returns a reference to the `bodyTemplate`.
|
|
805
805
|
* ```typescript
|
|
@@ -808,7 +808,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
808
808
|
*
|
|
809
809
|
* @memberof IgxColumnComponent
|
|
810
810
|
*/
|
|
811
|
-
get bodyTemplate(): TemplateRef<
|
|
811
|
+
get bodyTemplate(): TemplateRef<IgxCellTemplateContext>;
|
|
812
812
|
/**
|
|
813
813
|
* Sets the body template.
|
|
814
814
|
* ```html
|
|
@@ -826,7 +826,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
826
826
|
*
|
|
827
827
|
* @memberof IgxColumnComponent
|
|
828
828
|
*/
|
|
829
|
-
set bodyTemplate(template: TemplateRef<
|
|
829
|
+
set bodyTemplate(template: TemplateRef<IgxCellTemplateContext>);
|
|
830
830
|
/**
|
|
831
831
|
* Returns a reference to the header template.
|
|
832
832
|
* ```typescript
|
|
@@ -835,7 +835,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
835
835
|
*
|
|
836
836
|
* @memberof IgxColumnComponent
|
|
837
837
|
*/
|
|
838
|
-
get headerTemplate(): TemplateRef<
|
|
838
|
+
get headerTemplate(): TemplateRef<IgxColumnTemplateContext>;
|
|
839
839
|
/**
|
|
840
840
|
* Sets the header template.
|
|
841
841
|
* Note that the column header height is fixed and any content bigger than it will be cut off.
|
|
@@ -854,7 +854,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
854
854
|
*
|
|
855
855
|
* @memberof IgxColumnComponent
|
|
856
856
|
*/
|
|
857
|
-
set headerTemplate(template: TemplateRef<
|
|
857
|
+
set headerTemplate(template: TemplateRef<IgxColumnTemplateContext>);
|
|
858
858
|
/**
|
|
859
859
|
* Returns a reference to the inline editor template.
|
|
860
860
|
* ```typescript
|
|
@@ -863,7 +863,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
863
863
|
*
|
|
864
864
|
* @memberof IgxColumnComponent
|
|
865
865
|
*/
|
|
866
|
-
get inlineEditorTemplate(): TemplateRef<
|
|
866
|
+
get inlineEditorTemplate(): TemplateRef<IgxCellTemplateContext>;
|
|
867
867
|
/**
|
|
868
868
|
* Sets the inline editor template.
|
|
869
869
|
* ```html
|
|
@@ -879,14 +879,14 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
879
879
|
*
|
|
880
880
|
* @memberof IgxColumnComponent
|
|
881
881
|
*/
|
|
882
|
-
set inlineEditorTemplate(template: TemplateRef<
|
|
882
|
+
set inlineEditorTemplate(template: TemplateRef<IgxCellTemplateContext>);
|
|
883
883
|
/**
|
|
884
884
|
* Returns a reference to the validation error template.
|
|
885
885
|
* ```typescript
|
|
886
886
|
* let errorTemplate = this.column.errorTemplate;
|
|
887
887
|
* ```
|
|
888
888
|
*/
|
|
889
|
-
get errorTemplate(): TemplateRef<
|
|
889
|
+
get errorTemplate(): TemplateRef<IgxCellTemplateContext>;
|
|
890
890
|
/**
|
|
891
891
|
* Sets the error template.
|
|
892
892
|
* ```html
|
|
@@ -902,7 +902,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
902
902
|
* this.column.errorTemplate = this.errorTemplate;
|
|
903
903
|
* ```
|
|
904
904
|
*/
|
|
905
|
-
set errorTemplate(template: TemplateRef<
|
|
905
|
+
set errorTemplate(template: TemplateRef<IgxCellTemplateContext>);
|
|
906
906
|
/**
|
|
907
907
|
* Returns a reference to the `filterCellTemplate`.
|
|
908
908
|
* ```typescript
|
|
@@ -911,7 +911,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
911
911
|
*
|
|
912
912
|
* @memberof IgxColumnComponent
|
|
913
913
|
*/
|
|
914
|
-
get filterCellTemplate(): TemplateRef<
|
|
914
|
+
get filterCellTemplate(): TemplateRef<IgxColumnTemplateContext>;
|
|
915
915
|
/**
|
|
916
916
|
* Sets the quick filter template.
|
|
917
917
|
* ```html
|
|
@@ -927,7 +927,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
927
927
|
*
|
|
928
928
|
* @memberof IgxColumnComponent
|
|
929
929
|
*/
|
|
930
|
-
set filterCellTemplate(template: TemplateRef<
|
|
930
|
+
set filterCellTemplate(template: TemplateRef<IgxColumnTemplateContext>);
|
|
931
931
|
/**
|
|
932
932
|
* Gets the cells of the column.
|
|
933
933
|
* ```typescript
|
|
@@ -1118,27 +1118,27 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
|
|
|
1118
1118
|
/**
|
|
1119
1119
|
* @hidden
|
|
1120
1120
|
*/
|
|
1121
|
-
protected _bodyTemplate: TemplateRef<
|
|
1121
|
+
protected _bodyTemplate: TemplateRef<IgxCellTemplateContext>;
|
|
1122
1122
|
/**
|
|
1123
1123
|
* @hidden
|
|
1124
1124
|
*/
|
|
1125
|
-
protected _errorTemplate: TemplateRef<
|
|
1125
|
+
protected _errorTemplate: TemplateRef<IgxCellTemplateContext>;
|
|
1126
1126
|
/**
|
|
1127
1127
|
* @hidden
|
|
1128
1128
|
*/
|
|
1129
|
-
protected _headerTemplate: TemplateRef<
|
|
1129
|
+
protected _headerTemplate: TemplateRef<IgxColumnTemplateContext>;
|
|
1130
1130
|
/**
|
|
1131
1131
|
* @hidden
|
|
1132
1132
|
*/
|
|
1133
|
-
protected _summaryTemplate: TemplateRef<
|
|
1133
|
+
protected _summaryTemplate: TemplateRef<IgxSummaryTemplateContext>;
|
|
1134
1134
|
/**
|
|
1135
1135
|
* @hidden
|
|
1136
1136
|
*/
|
|
1137
|
-
protected _inlineEditorTemplate: TemplateRef<
|
|
1137
|
+
protected _inlineEditorTemplate: TemplateRef<IgxCellTemplateContext>;
|
|
1138
1138
|
/**
|
|
1139
1139
|
* @hidden
|
|
1140
1140
|
*/
|
|
1141
|
-
protected _filterCellTemplate: TemplateRef<
|
|
1141
|
+
protected _filterCellTemplate: TemplateRef<IgxColumnTemplateContext>;
|
|
1142
1142
|
/**
|
|
1143
1143
|
* @hidden
|
|
1144
1144
|
*/
|
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { IgxCellTemplateContext, IgxColumnTemplateContext, IgxSummaryTemplateContext } from '../common/grid.interface';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class IgxFilterCellTemplateDirective {
|
|
4
|
-
template: TemplateRef<
|
|
5
|
-
constructor(template: TemplateRef<
|
|
5
|
+
template: TemplateRef<IgxColumnTemplateContext>;
|
|
6
|
+
constructor(template: TemplateRef<IgxColumnTemplateContext>);
|
|
7
|
+
static ngTemplateContextGuard(_directive: IgxFilterCellTemplateDirective, context: unknown): context is IgxColumnTemplateContext;
|
|
6
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxFilterCellTemplateDirective, never>;
|
|
7
9
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxFilterCellTemplateDirective, "[igxFilterCellTemplate]", never, {}, {}, never, never, false>;
|
|
8
10
|
}
|
|
9
11
|
export declare class IgxCellTemplateDirective {
|
|
10
|
-
template: TemplateRef<
|
|
11
|
-
constructor(template: TemplateRef<
|
|
12
|
+
template: TemplateRef<IgxCellTemplateContext>;
|
|
13
|
+
constructor(template: TemplateRef<IgxCellTemplateContext>);
|
|
14
|
+
static ngTemplateContextGuard(_directive: IgxCellTemplateDirective, context: unknown): context is IgxCellTemplateContext;
|
|
12
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxCellTemplateDirective, never>;
|
|
13
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxCellTemplateDirective, "[igxCell]", never, {}, {}, never, never, false>;
|
|
14
17
|
}
|
|
15
18
|
export declare class IgxCellValidationErrorDirective {
|
|
16
|
-
template: TemplateRef<
|
|
17
|
-
constructor(template: TemplateRef<
|
|
19
|
+
template: TemplateRef<IgxCellTemplateContext>;
|
|
20
|
+
constructor(template: TemplateRef<IgxCellTemplateContext>);
|
|
21
|
+
static ngTemplateContextGuard(_directive: IgxCellValidationErrorDirective, context: unknown): context is IgxCellTemplateContext;
|
|
18
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxCellValidationErrorDirective, never>;
|
|
19
23
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxCellValidationErrorDirective, "[igxCellValidationError]", never, {}, {}, never, never, false>;
|
|
20
24
|
}
|
|
21
25
|
export declare class IgxCellHeaderTemplateDirective {
|
|
22
|
-
template: TemplateRef<
|
|
23
|
-
constructor(template: TemplateRef<
|
|
26
|
+
template: TemplateRef<IgxColumnTemplateContext>;
|
|
27
|
+
constructor(template: TemplateRef<IgxColumnTemplateContext>);
|
|
28
|
+
static ngTemplateContextGuard(_directive: IgxCellHeaderTemplateDirective, context: unknown): context is IgxColumnTemplateContext;
|
|
24
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxCellHeaderTemplateDirective, never>;
|
|
25
30
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxCellHeaderTemplateDirective, "[igxHeader]", never, {}, {}, never, never, false>;
|
|
26
31
|
}
|
|
@@ -34,20 +39,23 @@ export declare class IgxCellFooterTemplateDirective {
|
|
|
34
39
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxCellFooterTemplateDirective, "[igxFooter]", never, {}, {}, never, never, false>;
|
|
35
40
|
}
|
|
36
41
|
export declare class IgxCellEditorTemplateDirective {
|
|
37
|
-
template: TemplateRef<
|
|
38
|
-
constructor(template: TemplateRef<
|
|
42
|
+
template: TemplateRef<IgxCellTemplateContext>;
|
|
43
|
+
constructor(template: TemplateRef<IgxCellTemplateContext>);
|
|
44
|
+
static ngTemplateContextGuard(_directive: IgxCellEditorTemplateDirective, context: unknown): context is IgxCellTemplateContext;
|
|
39
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxCellEditorTemplateDirective, never>;
|
|
40
46
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxCellEditorTemplateDirective, "[igxCellEditor]", never, {}, {}, never, never, false>;
|
|
41
47
|
}
|
|
42
48
|
export declare class IgxCollapsibleIndicatorTemplateDirective {
|
|
43
|
-
template: TemplateRef<
|
|
44
|
-
constructor(template: TemplateRef<
|
|
49
|
+
template: TemplateRef<IgxColumnTemplateContext>;
|
|
50
|
+
constructor(template: TemplateRef<IgxColumnTemplateContext>);
|
|
51
|
+
static ngTemplateContextGuard(_directive: IgxCollapsibleIndicatorTemplateDirective, context: unknown): context is IgxColumnTemplateContext;
|
|
45
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxCollapsibleIndicatorTemplateDirective, never>;
|
|
46
53
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxCollapsibleIndicatorTemplateDirective, "[igxCollapsibleIndicator]", never, {}, {}, never, never, false>;
|
|
47
54
|
}
|
|
48
55
|
export declare class IgxSummaryTemplateDirective {
|
|
49
|
-
template: TemplateRef<
|
|
50
|
-
constructor(template: TemplateRef<
|
|
56
|
+
template: TemplateRef<IgxSummaryTemplateContext>;
|
|
57
|
+
constructor(template: TemplateRef<IgxSummaryTemplateContext>);
|
|
58
|
+
static ngTemplateContextGuard(_directive: IgxSummaryTemplateDirective, context: unknown): context is IgxSummaryTemplateContext;
|
|
51
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxSummaryTemplateDirective, never>;
|
|
52
60
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxSummaryTemplateDirective, "[igxSummary]", never, {}, {}, never, never, false>;
|
|
53
61
|
}
|
|
@@ -28,7 +28,7 @@ import { OverlaySettings } from '../../services/overlay/utilities';
|
|
|
28
28
|
import { IPinningConfig } from '../grid.common';
|
|
29
29
|
import { IDimensionsChange, IPivotConfiguration, IPivotDimension, IPivotKeys, IPivotValue, IValuesChange, PivotDimensionType } from '../pivot-grid/pivot-grid.interface';
|
|
30
30
|
import { IDataCloneStrategy } from '../../data-operations/data-clone-strategy';
|
|
31
|
-
import { FormGroup, ValidationErrors } from '@angular/forms';
|
|
31
|
+
import { FormControl, FormGroup, ValidationErrors } from '@angular/forms';
|
|
32
32
|
import { IgxGridValidationService } from '../grid/grid-validation.service';
|
|
33
33
|
export declare const IGX_GRID_BASE: InjectionToken<GridType>;
|
|
34
34
|
export declare const IGX_GRID_SERVICE_BASE: InjectionToken<GridServiceType>;
|
|
@@ -69,6 +69,16 @@ export interface CellType {
|
|
|
69
69
|
onDoubleClick?(event: MouseEvent): void;
|
|
70
70
|
onClick?(event: MouseEvent): void;
|
|
71
71
|
}
|
|
72
|
+
export interface HeaderType {
|
|
73
|
+
nativeElement: HTMLElement;
|
|
74
|
+
column: ColumnType;
|
|
75
|
+
density: DisplayDensity;
|
|
76
|
+
sorted: boolean;
|
|
77
|
+
selectable: boolean;
|
|
78
|
+
selected: boolean;
|
|
79
|
+
title: boolean;
|
|
80
|
+
sortDirection: SortingDirection;
|
|
81
|
+
}
|
|
72
82
|
export interface RowType {
|
|
73
83
|
nativeElement?: HTMLElement;
|
|
74
84
|
index: number;
|
|
@@ -306,16 +316,16 @@ export interface GridType extends IGridDataBindable {
|
|
|
306
316
|
hiddenColumnsCount: number;
|
|
307
317
|
pinnedColumnsCount: number;
|
|
308
318
|
iconTemplate?: TemplateRef<any>;
|
|
309
|
-
groupRowTemplate?: TemplateRef<
|
|
310
|
-
groupByRowSelectorTemplate?: TemplateRef<
|
|
319
|
+
groupRowTemplate?: TemplateRef<IgxGroupByRowTemplateContext>;
|
|
320
|
+
groupByRowSelectorTemplate?: TemplateRef<IgxGroupByRowSelectorTemplateContext>;
|
|
311
321
|
rowLoadingIndicatorTemplate?: TemplateRef<any>;
|
|
312
|
-
headSelectorTemplate: TemplateRef<
|
|
313
|
-
rowSelectorTemplate: TemplateRef<
|
|
314
|
-
sortHeaderIconTemplate: TemplateRef<
|
|
315
|
-
sortAscendingHeaderIconTemplate: TemplateRef<
|
|
316
|
-
sortDescendingHeaderIconTemplate: TemplateRef<
|
|
317
|
-
headerCollapseIndicatorTemplate: TemplateRef<
|
|
318
|
-
headerExpandIndicatorTemplate: TemplateRef<
|
|
322
|
+
headSelectorTemplate: TemplateRef<IgxHeadSelectorTemplateContext>;
|
|
323
|
+
rowSelectorTemplate: TemplateRef<IgxRowSelectorTemplateContext>;
|
|
324
|
+
sortHeaderIconTemplate: TemplateRef<IgxGridHeaderTemplateContext>;
|
|
325
|
+
sortAscendingHeaderIconTemplate: TemplateRef<IgxGridHeaderTemplateContext>;
|
|
326
|
+
sortDescendingHeaderIconTemplate: TemplateRef<IgxGridHeaderTemplateContext>;
|
|
327
|
+
headerCollapseIndicatorTemplate: TemplateRef<IgxGridTemplateContext>;
|
|
328
|
+
headerExpandIndicatorTemplate: TemplateRef<IgxGridTemplateContext>;
|
|
319
329
|
dragIndicatorIconTemplate: any;
|
|
320
330
|
dragIndicatorIconBase: any;
|
|
321
331
|
disableTransitions: boolean;
|
|
@@ -391,9 +401,9 @@ export interface GridType extends IGridDataBindable {
|
|
|
391
401
|
getHeaderCellWidth: (element: HTMLElement) => ISizeInfo;
|
|
392
402
|
cdr: ChangeDetectorRef;
|
|
393
403
|
document: Document;
|
|
394
|
-
rowExpandedIndicatorTemplate: TemplateRef<
|
|
395
|
-
rowCollapsedIndicatorTemplate: TemplateRef<
|
|
396
|
-
excelStyleHeaderIconTemplate: TemplateRef<
|
|
404
|
+
rowExpandedIndicatorTemplate: TemplateRef<IgxGridRowTemplateContext>;
|
|
405
|
+
rowCollapsedIndicatorTemplate: TemplateRef<IgxGridRowTemplateContext>;
|
|
406
|
+
excelStyleHeaderIconTemplate: TemplateRef<IgxGridHeaderTemplateContext>;
|
|
397
407
|
selectRowOnClick: boolean;
|
|
398
408
|
cellSelection: GridSelectionMode;
|
|
399
409
|
rowSelection: GridSelectionMode;
|
|
@@ -629,3 +639,77 @@ export interface ISizeInfo {
|
|
|
629
639
|
width: number;
|
|
630
640
|
padding: number;
|
|
631
641
|
}
|
|
642
|
+
export interface IgxGridMasterDetailContext {
|
|
643
|
+
$implicit: any;
|
|
644
|
+
index: number;
|
|
645
|
+
}
|
|
646
|
+
export interface IgxGroupByRowTemplateContext {
|
|
647
|
+
$implicit: IGroupByRecord;
|
|
648
|
+
}
|
|
649
|
+
export interface IgxGridTemplateContext {
|
|
650
|
+
$implicit: GridType;
|
|
651
|
+
}
|
|
652
|
+
export interface IgxGridRowTemplateContext {
|
|
653
|
+
$implicit: RowType;
|
|
654
|
+
}
|
|
655
|
+
export interface IgxGridRowDragGhostContext {
|
|
656
|
+
$implicit: any;
|
|
657
|
+
data: any;
|
|
658
|
+
grid: GridType;
|
|
659
|
+
}
|
|
660
|
+
export interface IgxGridEmptyTemplateContext {
|
|
661
|
+
$implicit: undefined;
|
|
662
|
+
}
|
|
663
|
+
export interface IgxGridRowEditTemplateContext {
|
|
664
|
+
$implicit: undefined;
|
|
665
|
+
rowChangesCount: number;
|
|
666
|
+
endEdit: (commit: boolean, event?: Event) => void;
|
|
667
|
+
}
|
|
668
|
+
export interface IgxGridRowEditTextTemplateContext {
|
|
669
|
+
$implicit: number;
|
|
670
|
+
}
|
|
671
|
+
export interface IgxGridRowEditActionsTemplateContext {
|
|
672
|
+
$implicit: (commit: boolean, event?: Event) => void;
|
|
673
|
+
}
|
|
674
|
+
export interface IgxGridHeaderTemplateContext {
|
|
675
|
+
$implicit: HeaderType;
|
|
676
|
+
}
|
|
677
|
+
export interface IgxColumnTemplateContext {
|
|
678
|
+
$implicit: ColumnType;
|
|
679
|
+
column: ColumnType;
|
|
680
|
+
}
|
|
681
|
+
export interface IgxCellTemplateContext {
|
|
682
|
+
$implicit: any;
|
|
683
|
+
additionalTemplateContext: any;
|
|
684
|
+
formControl?: FormControl<any>;
|
|
685
|
+
defaultErrorTemplate?: TemplateRef<any>;
|
|
686
|
+
cell?: CellType;
|
|
687
|
+
}
|
|
688
|
+
export interface IgxRowSelectorTemplateContext {
|
|
689
|
+
$implicit: {
|
|
690
|
+
index: number;
|
|
691
|
+
rowID: any;
|
|
692
|
+
key: any;
|
|
693
|
+
selected: boolean;
|
|
694
|
+
select?: () => void;
|
|
695
|
+
deselect?: () => void;
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
export interface IgxGroupByRowSelectorTemplateContext {
|
|
699
|
+
$implicit: {
|
|
700
|
+
selectedCount: number;
|
|
701
|
+
totalCount: number;
|
|
702
|
+
groupRow: IGroupByRecord;
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
export interface IgxHeadSelectorTemplateContext {
|
|
706
|
+
$implicit: {
|
|
707
|
+
selectedCount: number;
|
|
708
|
+
totalCount: number;
|
|
709
|
+
selectAll?: () => void;
|
|
710
|
+
deselectAll?: () => void;
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
export interface IgxSummaryTemplateContext {
|
|
714
|
+
$implicit: IgxSummaryResult[];
|
|
715
|
+
}
|
|
@@ -9,8 +9,9 @@ import { FilterListItem } from './common';
|
|
|
9
9
|
import { IgxTreeComponent, ITreeNodeSelectionEvent } from '../../../tree/public_api';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class IgxExcelStyleLoadingValuesTemplateDirective {
|
|
12
|
-
template: TemplateRef<
|
|
13
|
-
|
|
12
|
+
template: TemplateRef<undefined>;
|
|
13
|
+
static ngTemplateContextGuard(_dir: IgxExcelStyleLoadingValuesTemplateDirective, ctx: unknown): ctx is undefined;
|
|
14
|
+
constructor(template: TemplateRef<undefined>);
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxExcelStyleLoadingValuesTemplateDirective, never>;
|
|
15
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxExcelStyleLoadingValuesTemplateDirective, "[igxExcelStyleLoading]", never, {}, {}, never, never, false>;
|
|
16
17
|
}
|
|
@@ -2,12 +2,12 @@ import { EventEmitter, QueryList, TemplateRef, DoCheck, AfterContentInit, OnInit
|
|
|
2
2
|
import { IgxGridBaseDirective } from '../grid-base.directive';
|
|
3
3
|
import { IBaseEventArgs } from '../../core/utils';
|
|
4
4
|
import { IGroupByRecord } from '../../data-operations/groupby-record.interface';
|
|
5
|
-
import { IgxGroupByRowTemplateDirective } from './grid.directives';
|
|
5
|
+
import { IgxGroupByRowTemplateDirective, IgxGridDetailTemplateDirective } from './grid.directives';
|
|
6
6
|
import { IGroupByExpandState } from '../../data-operations/groupby-expand-state.interface';
|
|
7
7
|
import { IForOfState } from '../../directives/for-of/for_of.directive';
|
|
8
8
|
import { IgxColumnComponent } from '../columns/column.component';
|
|
9
9
|
import { IGroupingExpression } from '../../data-operations/grouping-expression.interface';
|
|
10
|
-
import { CellType, GridType, RowType } from '../common/grid.interface';
|
|
10
|
+
import { CellType, GridType, IgxGridMasterDetailContext, IgxGroupByRowSelectorTemplateContext, IgxGroupByRowTemplateContext, RowType } from '../common/grid.interface';
|
|
11
11
|
import { IgxGroupByRowSelectorDirective } from '../selection/row-selectors';
|
|
12
12
|
import { IgxGridGroupByAreaComponent } from '../grouping/grid-group-by-area.component';
|
|
13
13
|
import { ISortingExpression } from '../../data-operations/sorting-strategy';
|
|
@@ -101,7 +101,7 @@ export declare class IgxGridComponent extends IgxGridBaseDirective implements Gr
|
|
|
101
101
|
/**
|
|
102
102
|
* @hidden @internal
|
|
103
103
|
*/
|
|
104
|
-
detailTemplate: QueryList<TemplateRef<
|
|
104
|
+
detailTemplate: QueryList<TemplateRef<IgxGridMasterDetailContext>>;
|
|
105
105
|
/**
|
|
106
106
|
* @hidden @internal
|
|
107
107
|
*/
|
|
@@ -172,7 +172,7 @@ export declare class IgxGridComponent extends IgxGridBaseDirective implements Gr
|
|
|
172
172
|
/**
|
|
173
173
|
* @hidden
|
|
174
174
|
*/
|
|
175
|
-
protected _groupRowTemplate: TemplateRef<
|
|
175
|
+
protected _groupRowTemplate: TemplateRef<IgxGroupByRowTemplateContext>;
|
|
176
176
|
/**
|
|
177
177
|
* @hidden
|
|
178
178
|
*/
|
|
@@ -321,14 +321,11 @@ export declare class IgxGridComponent extends IgxGridBaseDirective implements Gr
|
|
|
321
321
|
* @hidden
|
|
322
322
|
* @internal
|
|
323
323
|
*/
|
|
324
|
-
get groupByRowSelectorTemplate(): TemplateRef<
|
|
324
|
+
get groupByRowSelectorTemplate(): TemplateRef<IgxGroupByRowSelectorTemplateContext>;
|
|
325
325
|
/**
|
|
326
326
|
* @hidden @internal
|
|
327
327
|
*/
|
|
328
|
-
getDetailsContext(rowData: any, index: any):
|
|
329
|
-
$implicit: any;
|
|
330
|
-
index: any;
|
|
331
|
-
};
|
|
328
|
+
getDetailsContext(rowData: any, index: any): IgxGridDetailTemplateDirective;
|
|
332
329
|
/**
|
|
333
330
|
* @hidden @internal
|
|
334
331
|
*/
|
|
@@ -358,8 +355,8 @@ export declare class IgxGridComponent extends IgxGridBaseDirective implements Gr
|
|
|
358
355
|
* this.grid.groupRowTemplate = myRowTemplate;
|
|
359
356
|
* ```
|
|
360
357
|
*/
|
|
361
|
-
get groupRowTemplate(): TemplateRef<
|
|
362
|
-
set groupRowTemplate(template: TemplateRef<
|
|
358
|
+
get groupRowTemplate(): TemplateRef<IgxGroupByRowTemplateContext>;
|
|
359
|
+
set groupRowTemplate(template: TemplateRef<IgxGroupByRowTemplateContext>);
|
|
363
360
|
/**
|
|
364
361
|
* Gets/Sets the template reference of the `IgxGridComponent`'s group area.
|
|
365
362
|
*
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ElementRef, Renderer2, NgZone, TemplateRef } from '@angular/core';
|
|
2
2
|
import { IgxDropDirective } from '../../directives/drag-drop/drag-drop.directive';
|
|
3
3
|
import { IgxGroupByAreaDirective } from '../grouping/group-by-area.directive';
|
|
4
|
+
import { IgxGridMasterDetailContext, IgxGroupByRowTemplateContext, IgxGridHeaderTemplateContext, IgxGridRowTemplateContext, IgxGridTemplateContext } from '../common/grid.interface';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* @hidden
|
|
7
8
|
*/
|
|
8
9
|
export declare class IgxGroupByRowTemplateDirective {
|
|
9
|
-
template: TemplateRef<
|
|
10
|
-
|
|
10
|
+
template: TemplateRef<IgxGroupByRowTemplateContext>;
|
|
11
|
+
static ngTemplateContextGuard(_dir: IgxGroupByRowTemplateDirective, ctx: unknown): ctx is IgxGroupByRowTemplateContext;
|
|
12
|
+
constructor(template: TemplateRef<IgxGroupByRowTemplateContext>);
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxGroupByRowTemplateDirective, never>;
|
|
12
14
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxGroupByRowTemplateDirective, "[igxGroupByRow]", never, {}, {}, never, never, false>;
|
|
13
15
|
}
|
|
@@ -15,6 +17,7 @@ export declare class IgxGroupByRowTemplateDirective {
|
|
|
15
17
|
* @hidden
|
|
16
18
|
*/
|
|
17
19
|
export declare class IgxGridDetailTemplateDirective {
|
|
20
|
+
static ngTemplateContextGuard(_dir: IgxGridDetailTemplateDirective, ctx: unknown): ctx is IgxGridMasterDetailContext;
|
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxGridDetailTemplateDirective, never>;
|
|
19
22
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxGridDetailTemplateDirective, "[igxGridDetail]", never, {}, {}, never, never, false>;
|
|
20
23
|
}
|
|
@@ -22,6 +25,7 @@ export declare class IgxGridDetailTemplateDirective {
|
|
|
22
25
|
* @hidden
|
|
23
26
|
*/
|
|
24
27
|
export declare class IgxRowExpandedIndicatorDirective {
|
|
28
|
+
static ngTemplateContextGuard(_directive: IgxRowExpandedIndicatorDirective, context: unknown): context is IgxGridRowTemplateContext;
|
|
25
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxRowExpandedIndicatorDirective, never>;
|
|
26
30
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxRowExpandedIndicatorDirective, "[igxRowExpandedIndicator]", never, {}, {}, never, never, false>;
|
|
27
31
|
}
|
|
@@ -29,6 +33,7 @@ export declare class IgxRowExpandedIndicatorDirective {
|
|
|
29
33
|
* @hidden
|
|
30
34
|
*/
|
|
31
35
|
export declare class IgxRowCollapsedIndicatorDirective {
|
|
36
|
+
static ngTemplateContextGuard(_directive: IgxRowCollapsedIndicatorDirective, context: unknown): context is IgxGridRowTemplateContext;
|
|
32
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxRowCollapsedIndicatorDirective, never>;
|
|
33
38
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxRowCollapsedIndicatorDirective, "[igxRowCollapsedIndicator]", never, {}, {}, never, never, false>;
|
|
34
39
|
}
|
|
@@ -36,6 +41,7 @@ export declare class IgxRowCollapsedIndicatorDirective {
|
|
|
36
41
|
* @hidden
|
|
37
42
|
*/
|
|
38
43
|
export declare class IgxHeaderExpandIndicatorDirective {
|
|
44
|
+
static ngTemplateContextGuard(_directive: IgxHeaderExpandIndicatorDirective, context: unknown): context is IgxGridTemplateContext;
|
|
39
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxHeaderExpandIndicatorDirective, never>;
|
|
40
46
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxHeaderExpandIndicatorDirective, "[igxHeaderExpandedIndicator]", never, {}, {}, never, never, false>;
|
|
41
47
|
}
|
|
@@ -43,6 +49,7 @@ export declare class IgxHeaderExpandIndicatorDirective {
|
|
|
43
49
|
* @hidden
|
|
44
50
|
*/
|
|
45
51
|
export declare class IgxHeaderCollapseIndicatorDirective {
|
|
52
|
+
static ngTemplateContextGuard(_directive: IgxHeaderCollapseIndicatorDirective, context: unknown): context is IgxGridTemplateContext;
|
|
46
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxHeaderCollapseIndicatorDirective, never>;
|
|
47
54
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxHeaderCollapseIndicatorDirective, "[igxHeaderCollapsedIndicator]", never, {}, {}, never, never, false>;
|
|
48
55
|
}
|
|
@@ -50,6 +57,7 @@ export declare class IgxHeaderCollapseIndicatorDirective {
|
|
|
50
57
|
* @hidden
|
|
51
58
|
*/
|
|
52
59
|
export declare class IgxExcelStyleHeaderIconDirective {
|
|
60
|
+
static ngTemplateContextGuard(_directive: IgxExcelStyleHeaderIconDirective, context: unknown): context is IgxGridHeaderTemplateContext;
|
|
53
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxExcelStyleHeaderIconDirective, never>;
|
|
54
62
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxExcelStyleHeaderIconDirective, "[igxExcelStyleHeaderIcon]", never, {}, {}, never, never, false>;
|
|
55
63
|
}
|
|
@@ -57,6 +65,7 @@ export declare class IgxExcelStyleHeaderIconDirective {
|
|
|
57
65
|
* @hidden
|
|
58
66
|
*/
|
|
59
67
|
export declare class IgxSortHeaderIconDirective {
|
|
68
|
+
static ngTemplateContextGuard(_directive: IgxSortHeaderIconDirective, context: unknown): context is IgxGridHeaderTemplateContext;
|
|
60
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxSortHeaderIconDirective, never>;
|
|
61
70
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxSortHeaderIconDirective, "[igxSortHeaderIcon]", never, {}, {}, never, never, false>;
|
|
62
71
|
}
|
|
@@ -64,6 +73,7 @@ export declare class IgxSortHeaderIconDirective {
|
|
|
64
73
|
* @hidden
|
|
65
74
|
*/
|
|
66
75
|
export declare class IgxSortAscendingHeaderIconDirective {
|
|
76
|
+
static ngTemplateContextGuard(_directive: IgxSortAscendingHeaderIconDirective, context: unknown): context is IgxGridHeaderTemplateContext;
|
|
67
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxSortAscendingHeaderIconDirective, never>;
|
|
68
78
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxSortAscendingHeaderIconDirective, "[igxSortAscendingHeaderIcon]", never, {}, {}, never, never, false>;
|
|
69
79
|
}
|
|
@@ -71,6 +81,7 @@ export declare class IgxSortAscendingHeaderIconDirective {
|
|
|
71
81
|
* @hidden
|
|
72
82
|
*/
|
|
73
83
|
export declare class IgxSortDescendingHeaderIconDirective {
|
|
84
|
+
static ngTemplateContextGuard(_directive: IgxSortDescendingHeaderIconDirective, context: unknown): context is IgxGridHeaderTemplateContext;
|
|
74
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<IgxSortDescendingHeaderIconDirective, never>;
|
|
75
86
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IgxSortDescendingHeaderIconDirective, "[igxSortDescendingHeaderIcon]", never, {}, {}, never, never, false>;
|
|
76
87
|
}
|