1- import { CdkColumnDef } from '@angular/cdk/table';
2- import { CdkFlexTableResizeStrategy } from '@angular/cdk-experimental/column-resize';
3- import { ChangeDetectorRef } from '@angular/core';
4- import { _CoalescedStyleScheduler } from '@angular/cdk/table';
5- import { COLUMN_RESIZE_OPTIONS } from '@angular/cdk-experimental/column-resize';
6- import { ColumnResize } from '@angular/cdk-experimental/column-resize';
7- import { ColumnResizeNotifier } from '@angular/cdk-experimental/column-resize';
8- import { ColumnResizeNotifierSource } from '@angular/cdk-experimental/column-resize';
9- import { ColumnResizeOptions } from '@angular/cdk-experimental/column-resize';
10- import { ColumnSizeStore } from '@angular/cdk-experimental/column-resize';
11- import { Directionality } from '@angular/cdk/bidi';
12- import { ElementRef } from '@angular/core';
13- import { HeaderRowEventDispatcher } from '@angular/cdk-experimental/column-resize';
141import * as i0 from '@angular/core';
2+ import { ElementRef, NgZone, Type, Injector, ViewContainerRef, ChangeDetectorRef, Provider } from '@angular/core';
3+ import { ColumnResize, ColumnResizeNotifier, HeaderRowEventDispatcher, ColumnResizeNotifierSource, ResizeOverlayHandle, ResizeRef, Resizable, ResizeStrategy, CdkFlexTableResizeStrategy } from '@angular/cdk-experimental/column-resize';
4+ export { COLUMN_RESIZE_OPTIONS, ColumnResizeOptions, ColumnSizeStore, TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER } from '@angular/cdk-experimental/column-resize';
5+ import { CdkColumnDef, _CoalescedStyleScheduler } from '@angular/cdk/table';
6+ import { Directionality } from '@angular/cdk/bidi';
157import * as i2 from '@angular/material/core';
168import * as i3 from '@angular/cdk/overlay';
17- import { Injector } from '@angular/core';
18- import { NgZone } from '@angular/core';
199import { Overlay } from '@angular/cdk/overlay';
20- import { Provider } from '@angular/core';
21- import { Resizable } from '@angular/cdk-experimental/column-resize';
22- import { ResizeOverlayHandle } from '@angular/cdk-experimental/column-resize';
23- import { ResizeRef } from '@angular/cdk-experimental/column-resize';
24- import { ResizeStrategy } from '@angular/cdk-experimental/column-resize';
25- import { TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER } from '@angular/cdk-experimental/column-resize';
26- import { Type } from '@angular/core';
27- import { ViewContainerRef } from '@angular/core';
2810
2911declare abstract class AbstractMatColumnResize extends ColumnResize {
3012 getTableHeight(): number;
3113}
3214
33- declare abstract class AbstractMatResizable extends Resizable<MatColumnResizeOverlayHandle> {
34- minWidthPxInternal: number;
35- protected getInlineHandleCssClassName(): string;
36- protected getOverlayHandleComponentType(): Type<MatColumnResizeOverlayHandle>;
37- }
38-
39- export { COLUMN_RESIZE_OPTIONS }
40-
41- export { ColumnResizeOptions }
42-
43- export { ColumnSizeStore }
44-
45- export declare const FLEX_RESIZE_STRATEGY_PROVIDER: Provider;
46-
47- declare namespace i1 {
48- export {
49- MatColumnResizeOverlayHandle
50- }
51- }
52-
53- declare namespace i4 {
54- export {
55- MatDefaultEnabledColumnResize
56- }
57- }
58-
59- declare namespace i5 {
60- export {
61- MatDefaultEnabledColumnResizeFlex
62- }
63- }
64-
65- declare namespace i6 {
66- export {
67- MatDefaultResizable
68- }
69- }
70-
71- declare namespace i7 {
72- export {
73- MatColumnResize
74- }
75- }
76-
77- declare namespace i8 {
78- export {
79- MatColumnResizeFlex
80- }
81- }
82-
83- declare namespace i9 {
84- export {
85- MatResizable
86- }
87- }
88-
8915/**
9016 * Explicitly enables column resizing for a table-based mat-table.
9117 * Individual columns must be annotated specifically.
9218 */
93- export declare class MatColumnResize extends AbstractMatColumnResize {
19+ declare class MatColumnResize extends AbstractMatColumnResize {
9420 readonly columnResizeNotifier: ColumnResizeNotifier;
9521 readonly elementRef: ElementRef<HTMLElement>;
9622 protected readonly eventDispatcher: HeaderRowEventDispatcher;
@@ -100,17 +26,11 @@ export declare class MatColumnResize extends AbstractMatColumnResize {
10026 static ɵdir: i0.ɵɵDirectiveDeclaration<MatColumnResize, "table[mat-table][columnResize]", never, {}, {}, never, never, true, never>;
10127}
10228
103- export declare class MatColumnResizeCommonModule {
104- static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeCommonModule, never>;
105- static ɵmod: i0.ɵɵNgModuleDeclaration<MatColumnResizeCommonModule, never, [typeof i1.MatColumnResizeOverlayHandle], [typeof i1.MatColumnResizeOverlayHandle]>;
106- static ɵinj: i0.ɵɵInjectorDeclaration<MatColumnResizeCommonModule>;
107- }
108-
10929/**
11030 * Explicitly enables column resizing for a flexbox-based mat-table.
11131 * Individual columns must be annotated specifically.
11232 */
113- export declare class MatColumnResizeFlex extends AbstractMatColumnResize {
33+ declare class MatColumnResizeFlex extends AbstractMatColumnResize {
11434 readonly columnResizeNotifier: ColumnResizeNotifier;
11535 readonly elementRef: ElementRef<HTMLElement>;
11636 protected readonly eventDispatcher: HeaderRowEventDispatcher;
@@ -120,38 +40,11 @@ export declare class MatColumnResizeFlex extends AbstractMatColumnResize {
12040 static ɵdir: i0.ɵɵDirectiveDeclaration<MatColumnResizeFlex, "mat-table[columnResize]", never, {}, {}, never, never, true, never>;
12141}
12242
123- export declare class MatColumnResizeModule {
124- static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeModule, never>;
125- static ɵmod: i0.ɵɵNgModuleDeclaration<MatColumnResizeModule, never, [typeof i2.MatCommonModule, typeof i3.OverlayModule, typeof MatColumnResizeCommonModule, typeof i7.MatColumnResize, typeof i8.MatColumnResizeFlex, typeof i9.MatResizable], [typeof i7.MatColumnResize, typeof i8.MatColumnResizeFlex, typeof i9.MatResizable]>;
126- static ɵinj: i0.ɵɵInjectorDeclaration<MatColumnResizeModule>;
127- }
128-
129- /**
130- * Component shown over the edge of a resizable column that is responsible
131- * for handling column resize mouse events and displaying a vertical line along the column edge.
132- */
133- export declare class MatColumnResizeOverlayHandle extends ResizeOverlayHandle {
134- protected readonly columnDef: CdkColumnDef;
135- protected readonly columnResize: ColumnResize;
136- protected readonly directionality: Directionality;
137- protected readonly elementRef: ElementRef<any>;
138- protected readonly eventDispatcher: HeaderRowEventDispatcher;
139- protected readonly ngZone: NgZone;
140- protected readonly resizeNotifier: ColumnResizeNotifierSource;
141- protected readonly resizeRef: ResizeRef;
142- protected readonly styleScheduler: _CoalescedStyleScheduler;
143- protected readonly document: Document;
144- topElement: ElementRef<HTMLElement>;
145- protected updateResizeActive(active: boolean): void;
146- static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeOverlayHandle, never>;
147- static ɵcmp: i0.ɵɵComponentDeclaration<MatColumnResizeOverlayHandle, "ng-component", never, {}, {}, never, never, true, never>;
148- }
149-
15043/**
15144 * Implicitly enables column resizing for a table-based mat-table.
15245 * Individual columns will be resizable unless opted out.
15346 */
154- export declare class MatDefaultEnabledColumnResize extends AbstractMatColumnResize {
47+ declare class MatDefaultEnabledColumnResize extends AbstractMatColumnResize {
15548 readonly columnResizeNotifier: ColumnResizeNotifier;
15649 readonly elementRef: ElementRef<HTMLElement>;
15750 protected readonly eventDispatcher: HeaderRowEventDispatcher;
@@ -165,7 +58,7 @@ export declare class MatDefaultEnabledColumnResize extends AbstractMatColumnResi
16558 * Implicitly enables column resizing for a flexbox-based mat-table.
16659 * Individual columns will be resizable unless opted out.
16760 */
168- export declare class MatDefaultEnabledColumnResizeFlex extends AbstractMatColumnResize {
61+ declare class MatDefaultEnabledColumnResizeFlex extends AbstractMatColumnResize {
16962 readonly columnResizeNotifier: ColumnResizeNotifier;
17063 readonly elementRef: ElementRef<HTMLElement>;
17164 protected readonly eventDispatcher: HeaderRowEventDispatcher;
@@ -175,17 +68,38 @@ export declare class MatDefaultEnabledColumnResizeFlex extends AbstractMatColumn
17568 static ɵdir: i0.ɵɵDirectiveDeclaration<MatDefaultEnabledColumnResizeFlex, "mat-table", never, {}, {}, never, never, true, never>;
17669}
17770
178- export declare class MatDefaultEnabledColumnResizeModule {
179- static ɵfac: i0.ɵɵFactoryDeclaration<MatDefaultEnabledColumnResizeModule, never>;
180- static ɵmod: i0.ɵɵNgModuleDeclaration<MatDefaultEnabledColumnResizeModule, never, [typeof i2.MatCommonModule, typeof i3.OverlayModule, typeof MatColumnResizeCommonModule, typeof i4.MatDefaultEnabledColumnResize, typeof i5.MatDefaultEnabledColumnResizeFlex, typeof i6.MatDefaultResizable], [typeof i4.MatDefaultEnabledColumnResize, typeof i5.MatDefaultEnabledColumnResizeFlex, typeof i6.MatDefaultResizable]>;
181- static ɵinj: i0.ɵɵInjectorDeclaration<MatDefaultEnabledColumnResizeModule>;
71+ /**
72+ * Component shown over the edge of a resizable column that is responsible
73+ * for handling column resize mouse events and displaying a vertical line along the column edge.
74+ */
75+ declare class MatColumnResizeOverlayHandle extends ResizeOverlayHandle {
76+ protected readonly columnDef: CdkColumnDef;
77+ protected readonly columnResize: ColumnResize;
78+ protected readonly directionality: Directionality;
79+ protected readonly elementRef: ElementRef<any>;
80+ protected readonly eventDispatcher: HeaderRowEventDispatcher;
81+ protected readonly ngZone: NgZone;
82+ protected readonly resizeNotifier: ColumnResizeNotifierSource;
83+ protected readonly resizeRef: ResizeRef;
84+ protected readonly styleScheduler: _CoalescedStyleScheduler;
85+ protected readonly document: Document;
86+ topElement: ElementRef<HTMLElement>;
87+ protected updateResizeActive(active: boolean): void;
88+ static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeOverlayHandle, never>;
89+ static ɵcmp: i0.ɵɵComponentDeclaration<MatColumnResizeOverlayHandle, "ng-component", never, {}, {}, never, never, true, never>;
90+ }
91+
92+ declare abstract class AbstractMatResizable extends Resizable<MatColumnResizeOverlayHandle> {
93+ minWidthPxInternal: number;
94+ protected getInlineHandleCssClassName(): string;
95+ protected getOverlayHandleComponentType(): Type<MatColumnResizeOverlayHandle>;
18296}
18397
18498/**
18599 * Implicitly enables column resizing for a mat-header-cell unless the disableResize attribute
186100 * is present.
187101 */
188- export declare class MatDefaultResizable extends AbstractMatResizable {
102+ declare class MatDefaultResizable extends AbstractMatResizable {
189103 protected readonly columnDef: CdkColumnDef;
190104 protected readonly columnResize: ColumnResize;
191105 protected readonly directionality: Directionality;
@@ -204,19 +118,10 @@ export declare class MatDefaultResizable extends AbstractMatResizable {
204118 static ɵdir: i0.ɵɵDirectiveDeclaration<MatDefaultResizable, "mat-header-cell:not([disableResize]), th[mat-header-cell]:not([disableResize])", never, { "minWidthPx": { "alias": "matResizableMinWidthPx"; "required": false; }; "maxWidthPx": { "alias": "matResizableMaxWidthPx"; "required": false; }; }, {}, never, never, true, never>;
205119}
206120
207- /**
208- * Overrides CdkFlexTableResizeStrategy to match mat-column elements.
209- */
210- export declare class MatFlexTableResizeStrategy extends CdkFlexTableResizeStrategy {
211- protected getColumnCssClass(cssFriendlyColumnName: string): string;
212- static ɵfac: i0.ɵɵFactoryDeclaration<MatFlexTableResizeStrategy, never>;
213- static ɵprov: i0.ɵɵInjectableDeclaration<MatFlexTableResizeStrategy>;
214- }
215-
216121/**
217122 * Explicitly enables column resizing for a mat-header-cell.
218123 */
219- export declare class MatResizable extends AbstractMatResizable {
124+ declare class MatResizable extends AbstractMatResizable {
220125 protected readonly columnDef: CdkColumnDef;
221126 protected readonly columnResize: ColumnResize;
222127 protected readonly directionality: Directionality;
@@ -235,6 +140,30 @@ export declare class MatResizable extends AbstractMatResizable {
235140 static ɵdir: i0.ɵɵDirectiveDeclaration<MatResizable, "mat-header-cell[resizable], th[mat-header-cell][resizable]", never, { "minWidthPx": { "alias": "matResizableMinWidthPx"; "required": false; }; "maxWidthPx": { "alias": "matResizableMaxWidthPx"; "required": false; }; }, {}, never, never, true, never>;
236141}
237142
238- export { TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER }
143+ declare class MatColumnResizeCommonModule {
144+ static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeCommonModule, never>;
145+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatColumnResizeCommonModule, never, [typeof MatColumnResizeOverlayHandle], [typeof MatColumnResizeOverlayHandle]>;
146+ static ɵinj: i0.ɵɵInjectorDeclaration<MatColumnResizeCommonModule>;
147+ }
148+ declare class MatDefaultEnabledColumnResizeModule {
149+ static ɵfac: i0.ɵɵFactoryDeclaration<MatDefaultEnabledColumnResizeModule, never>;
150+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatDefaultEnabledColumnResizeModule, never, [typeof i2.MatCommonModule, typeof i3.OverlayModule, typeof MatColumnResizeCommonModule, typeof MatDefaultEnabledColumnResize, typeof MatDefaultEnabledColumnResizeFlex, typeof MatDefaultResizable], [typeof MatDefaultEnabledColumnResize, typeof MatDefaultEnabledColumnResizeFlex, typeof MatDefaultResizable]>;
151+ static ɵinj: i0.ɵɵInjectorDeclaration<MatDefaultEnabledColumnResizeModule>;
152+ }
153+ declare class MatColumnResizeModule {
154+ static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeModule, never>;
155+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatColumnResizeModule, never, [typeof i2.MatCommonModule, typeof i3.OverlayModule, typeof MatColumnResizeCommonModule, typeof MatColumnResize, typeof MatColumnResizeFlex, typeof MatResizable], [typeof MatColumnResize, typeof MatColumnResizeFlex, typeof MatResizable]>;
156+ static ɵinj: i0.ɵɵInjectorDeclaration<MatColumnResizeModule>;
157+ }
158+
159+ /**
160+ * Overrides CdkFlexTableResizeStrategy to match mat-column elements.
161+ */
162+ declare class MatFlexTableResizeStrategy extends CdkFlexTableResizeStrategy {
163+ protected getColumnCssClass(cssFriendlyColumnName: string): string;
164+ static ɵfac: i0.ɵɵFactoryDeclaration<MatFlexTableResizeStrategy, never>;
165+ static ɵprov: i0.ɵɵInjectableDeclaration<MatFlexTableResizeStrategy>;
166+ }
167+ declare const FLEX_RESIZE_STRATEGY_PROVIDER: Provider;
239168
240- export { }
169+ export { FLEX_RESIZE_STRATEGY_PROVIDER, MatColumnResize, MatColumnResizeCommonModule, MatColumnResizeFlex, MatColumnResizeModule, MatColumnResizeOverlayHandle, MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultEnabledColumnResizeModule, MatDefaultResizable, MatFlexTableResizeStrategy, MatResizable };
0 commit comments