@angular/material-experimental 20.0.0-next.0 → 20.0.0-next.10
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/column-resize/index.d.ts +61 -135
- package/fesm2022/column-resize.mjs +42 -48
- package/fesm2022/column-resize.mjs.map +1 -1
- package/fesm2022/material-experimental.mjs +1 -1
- package/fesm2022/material-experimental.mjs.map +1 -1
- package/fesm2022/menubar.mjs +11 -15
- package/fesm2022/menubar.mjs.map +1 -1
- package/fesm2022/popover-edit.mjs +25 -29
- package/fesm2022/popover-edit.mjs.map +1 -1
- package/fesm2022/selection.mjs +22 -25
- package/fesm2022/selection.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/menubar/index.d.ts +7 -20
- package/package.json +9 -3
- package/popover-edit/index.d.ts +27 -55
- package/selection/index.d.ts +43 -81
package/column-resize/index.d.ts
CHANGED
|
@@ -1,96 +1,21 @@
|
|
|
1
|
+
import * 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, _CoalescedStyleScheduler, 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';
|
|
1
5
|
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
6
|
import { Directionality } from '@angular/cdk/bidi';
|
|
12
|
-
import { ElementRef } from '@angular/core';
|
|
13
|
-
import { HeaderRowEventDispatcher } from '@angular/cdk-experimental/column-resize';
|
|
14
|
-
import * as i0 from '@angular/core';
|
|
15
7
|
import * as i2 from '@angular/material/core';
|
|
16
8
|
import * as i3 from '@angular/cdk/overlay';
|
|
17
|
-
import { Injector } from '@angular/core';
|
|
18
|
-
import { NgZone } from '@angular/core';
|
|
19
|
-
import { 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';
|
|
28
9
|
|
|
29
10
|
declare abstract class AbstractMatColumnResize extends ColumnResize {
|
|
30
11
|
getTableHeight(): number;
|
|
31
12
|
}
|
|
32
13
|
|
|
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
|
-
|
|
89
14
|
/**
|
|
90
15
|
* Explicitly enables column resizing for a table-based mat-table.
|
|
91
16
|
* Individual columns must be annotated specifically.
|
|
92
17
|
*/
|
|
93
|
-
|
|
18
|
+
declare class MatColumnResize extends AbstractMatColumnResize {
|
|
94
19
|
readonly columnResizeNotifier: ColumnResizeNotifier;
|
|
95
20
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
96
21
|
protected readonly eventDispatcher: HeaderRowEventDispatcher;
|
|
@@ -100,17 +25,11 @@ export declare class MatColumnResize extends AbstractMatColumnResize {
|
|
|
100
25
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatColumnResize, "table[mat-table][columnResize]", never, {}, {}, never, never, true, never>;
|
|
101
26
|
}
|
|
102
27
|
|
|
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
|
-
|
|
109
28
|
/**
|
|
110
29
|
* Explicitly enables column resizing for a flexbox-based mat-table.
|
|
111
30
|
* Individual columns must be annotated specifically.
|
|
112
31
|
*/
|
|
113
|
-
|
|
32
|
+
declare class MatColumnResizeFlex extends AbstractMatColumnResize {
|
|
114
33
|
readonly columnResizeNotifier: ColumnResizeNotifier;
|
|
115
34
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
116
35
|
protected readonly eventDispatcher: HeaderRowEventDispatcher;
|
|
@@ -120,38 +39,11 @@ export declare class MatColumnResizeFlex extends AbstractMatColumnResize {
|
|
|
120
39
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatColumnResizeFlex, "mat-table[columnResize]", never, {}, {}, never, never, true, never>;
|
|
121
40
|
}
|
|
122
41
|
|
|
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
|
-
|
|
150
42
|
/**
|
|
151
43
|
* Implicitly enables column resizing for a table-based mat-table.
|
|
152
44
|
* Individual columns will be resizable unless opted out.
|
|
153
45
|
*/
|
|
154
|
-
|
|
46
|
+
declare class MatDefaultEnabledColumnResize extends AbstractMatColumnResize {
|
|
155
47
|
readonly columnResizeNotifier: ColumnResizeNotifier;
|
|
156
48
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
157
49
|
protected readonly eventDispatcher: HeaderRowEventDispatcher;
|
|
@@ -165,7 +57,7 @@ export declare class MatDefaultEnabledColumnResize extends AbstractMatColumnResi
|
|
|
165
57
|
* Implicitly enables column resizing for a flexbox-based mat-table.
|
|
166
58
|
* Individual columns will be resizable unless opted out.
|
|
167
59
|
*/
|
|
168
|
-
|
|
60
|
+
declare class MatDefaultEnabledColumnResizeFlex extends AbstractMatColumnResize {
|
|
169
61
|
readonly columnResizeNotifier: ColumnResizeNotifier;
|
|
170
62
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
171
63
|
protected readonly eventDispatcher: HeaderRowEventDispatcher;
|
|
@@ -175,17 +67,38 @@ export declare class MatDefaultEnabledColumnResizeFlex extends AbstractMatColumn
|
|
|
175
67
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDefaultEnabledColumnResizeFlex, "mat-table", never, {}, {}, never, never, true, never>;
|
|
176
68
|
}
|
|
177
69
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
70
|
+
/**
|
|
71
|
+
* Component shown over the edge of a resizable column that is responsible
|
|
72
|
+
* for handling column resize mouse events and displaying a vertical line along the column edge.
|
|
73
|
+
*/
|
|
74
|
+
declare class MatColumnResizeOverlayHandle extends ResizeOverlayHandle {
|
|
75
|
+
protected readonly columnDef: CdkColumnDef;
|
|
76
|
+
protected readonly columnResize: ColumnResize;
|
|
77
|
+
protected readonly directionality: Directionality;
|
|
78
|
+
protected readonly elementRef: ElementRef<any>;
|
|
79
|
+
protected readonly eventDispatcher: HeaderRowEventDispatcher;
|
|
80
|
+
protected readonly ngZone: NgZone;
|
|
81
|
+
protected readonly resizeNotifier: ColumnResizeNotifierSource;
|
|
82
|
+
protected readonly resizeRef: ResizeRef;
|
|
83
|
+
protected readonly styleScheduler: _CoalescedStyleScheduler;
|
|
84
|
+
protected readonly document: Document;
|
|
85
|
+
topElement: ElementRef<HTMLElement>;
|
|
86
|
+
protected updateResizeActive(active: boolean): void;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeOverlayHandle, never>;
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatColumnResizeOverlayHandle, "ng-component", never, {}, {}, never, never, true, never>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare abstract class AbstractMatResizable extends Resizable<MatColumnResizeOverlayHandle> {
|
|
92
|
+
minWidthPxInternal: number;
|
|
93
|
+
protected getInlineHandleCssClassName(): string;
|
|
94
|
+
protected getOverlayHandleComponentType(): Type<MatColumnResizeOverlayHandle>;
|
|
182
95
|
}
|
|
183
96
|
|
|
184
97
|
/**
|
|
185
98
|
* Implicitly enables column resizing for a mat-header-cell unless the disableResize attribute
|
|
186
99
|
* is present.
|
|
187
100
|
*/
|
|
188
|
-
|
|
101
|
+
declare class MatDefaultResizable extends AbstractMatResizable {
|
|
189
102
|
protected readonly columnDef: CdkColumnDef;
|
|
190
103
|
protected readonly columnResize: ColumnResize;
|
|
191
104
|
protected readonly directionality: Directionality;
|
|
@@ -193,7 +106,6 @@ export declare class MatDefaultResizable extends AbstractMatResizable {
|
|
|
193
106
|
protected readonly eventDispatcher: HeaderRowEventDispatcher;
|
|
194
107
|
protected readonly injector: Injector;
|
|
195
108
|
protected readonly ngZone: NgZone;
|
|
196
|
-
protected readonly overlay: Overlay;
|
|
197
109
|
protected readonly resizeNotifier: ColumnResizeNotifierSource;
|
|
198
110
|
protected readonly resizeStrategy: ResizeStrategy;
|
|
199
111
|
protected readonly styleScheduler: _CoalescedStyleScheduler;
|
|
@@ -204,19 +116,10 @@ export declare class MatDefaultResizable extends AbstractMatResizable {
|
|
|
204
116
|
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>;
|
|
205
117
|
}
|
|
206
118
|
|
|
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
|
-
|
|
216
119
|
/**
|
|
217
120
|
* Explicitly enables column resizing for a mat-header-cell.
|
|
218
121
|
*/
|
|
219
|
-
|
|
122
|
+
declare class MatResizable extends AbstractMatResizable {
|
|
220
123
|
protected readonly columnDef: CdkColumnDef;
|
|
221
124
|
protected readonly columnResize: ColumnResize;
|
|
222
125
|
protected readonly directionality: Directionality;
|
|
@@ -224,7 +127,6 @@ export declare class MatResizable extends AbstractMatResizable {
|
|
|
224
127
|
protected readonly eventDispatcher: HeaderRowEventDispatcher;
|
|
225
128
|
protected readonly injector: Injector;
|
|
226
129
|
protected readonly ngZone: NgZone;
|
|
227
|
-
protected readonly overlay: Overlay;
|
|
228
130
|
protected readonly resizeNotifier: ColumnResizeNotifierSource;
|
|
229
131
|
protected readonly resizeStrategy: ResizeStrategy;
|
|
230
132
|
protected readonly styleScheduler: _CoalescedStyleScheduler;
|
|
@@ -235,6 +137,30 @@ export declare class MatResizable extends AbstractMatResizable {
|
|
|
235
137
|
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>;
|
|
236
138
|
}
|
|
237
139
|
|
|
238
|
-
|
|
140
|
+
declare class MatColumnResizeCommonModule {
|
|
141
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeCommonModule, never>;
|
|
142
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatColumnResizeCommonModule, never, [typeof MatColumnResizeOverlayHandle], [typeof MatColumnResizeOverlayHandle]>;
|
|
143
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatColumnResizeCommonModule>;
|
|
144
|
+
}
|
|
145
|
+
declare class MatDefaultEnabledColumnResizeModule {
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDefaultEnabledColumnResizeModule, never>;
|
|
147
|
+
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]>;
|
|
148
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatDefaultEnabledColumnResizeModule>;
|
|
149
|
+
}
|
|
150
|
+
declare class MatColumnResizeModule {
|
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatColumnResizeModule, never>;
|
|
152
|
+
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]>;
|
|
153
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatColumnResizeModule>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Overrides CdkFlexTableResizeStrategy to match mat-column elements.
|
|
158
|
+
*/
|
|
159
|
+
declare class MatFlexTableResizeStrategy extends CdkFlexTableResizeStrategy {
|
|
160
|
+
protected getColumnCssClass(cssFriendlyColumnName: string): string;
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatFlexTableResizeStrategy, never>;
|
|
162
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatFlexTableResizeStrategy>;
|
|
163
|
+
}
|
|
164
|
+
declare const FLEX_RESIZE_STRATEGY_PROVIDER: Provider;
|
|
239
165
|
|
|
240
|
-
export { }
|
|
166
|
+
export { FLEX_RESIZE_STRATEGY_PROVIDER, MatColumnResize, MatColumnResizeCommonModule, MatColumnResizeFlex, MatColumnResizeModule, MatColumnResizeOverlayHandle, MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultEnabledColumnResizeModule, MatDefaultResizable, MatFlexTableResizeStrategy, MatResizable };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Injectable, inject, ElementRef, NgZone, Directive, Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, Injector, ViewContainerRef, ChangeDetectorRef, NgModule } from '@angular/core';
|
|
3
|
-
import { CdkFlexTableResizeStrategy, ResizeStrategy, ColumnResizeNotifier, HeaderRowEventDispatcher, ColumnResizeNotifierSource, TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER, ColumnResize, ResizeOverlayHandle, ResizeRef, Resizable } from '@angular/cdk-experimental/column-resize';
|
|
1
|
+
import { CdkFlexTableResizeStrategy, ResizeStrategy, TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER, ColumnResize, ColumnResizeNotifier, HeaderRowEventDispatcher, ColumnResizeNotifierSource, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, ResizeOverlayHandle, ResizeRef, Resizable } from '@angular/cdk-experimental/column-resize';
|
|
4
2
|
export { COLUMN_RESIZE_OPTIONS, ColumnSizeStore, TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER } from '@angular/cdk-experimental/column-resize';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Injectable, inject, ElementRef, NgZone, Directive, DOCUMENT, Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, Injector, ViewContainerRef, ChangeDetectorRef, NgModule } from '@angular/core';
|
|
5
5
|
import { MatCommonModule } from '@angular/material/core';
|
|
6
|
-
import {
|
|
7
|
-
import { DOCUMENT } from '@angular/common';
|
|
6
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
8
7
|
import { Directionality } from '@angular/cdk/bidi';
|
|
9
|
-
import { CdkColumnDef
|
|
8
|
+
import { CdkColumnDef } from '@angular/cdk/table';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Overrides CdkFlexTableResizeStrategy to match mat-column elements.
|
|
@@ -15,10 +14,10 @@ class MatFlexTableResizeStrategy extends CdkFlexTableResizeStrategy {
|
|
|
15
14
|
getColumnCssClass(cssFriendlyColumnName) {
|
|
16
15
|
return `mat-column-${cssFriendlyColumnName}`;
|
|
17
16
|
}
|
|
18
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatFlexTableResizeStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
18
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatFlexTableResizeStrategy });
|
|
20
19
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatFlexTableResizeStrategy, decorators: [{
|
|
22
21
|
type: Injectable
|
|
23
22
|
}] });
|
|
24
23
|
const FLEX_RESIZE_STRATEGY_PROVIDER = {
|
|
@@ -30,6 +29,7 @@ const PROVIDERS = [
|
|
|
30
29
|
ColumnResizeNotifier,
|
|
31
30
|
HeaderRowEventDispatcher,
|
|
32
31
|
ColumnResizeNotifierSource,
|
|
32
|
+
{ provide: _COALESCED_STYLE_SCHEDULER, useClass: _CoalescedStyleScheduler },
|
|
33
33
|
];
|
|
34
34
|
const TABLE_PROVIDERS = [
|
|
35
35
|
...PROVIDERS,
|
|
@@ -58,10 +58,10 @@ class MatColumnResize extends AbstractMatColumnResize {
|
|
|
58
58
|
eventDispatcher = inject(HeaderRowEventDispatcher);
|
|
59
59
|
ngZone = inject(NgZone);
|
|
60
60
|
notifier = inject(ColumnResizeNotifierSource);
|
|
61
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
62
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResize, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
62
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatColumnResize, isStandalone: true, selector: "table[mat-table][columnResize]", host: { classAttribute: "mat-column-resize-table" }, providers: [...TABLE_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResize }], usesInheritance: true, ngImport: i0 });
|
|
63
63
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResize, decorators: [{
|
|
65
65
|
type: Directive,
|
|
66
66
|
args: [{
|
|
67
67
|
selector: 'table[mat-table][columnResize]',
|
|
@@ -80,10 +80,10 @@ class MatColumnResizeFlex extends AbstractMatColumnResize {
|
|
|
80
80
|
eventDispatcher = inject(HeaderRowEventDispatcher);
|
|
81
81
|
ngZone = inject(NgZone);
|
|
82
82
|
notifier = inject(ColumnResizeNotifierSource);
|
|
83
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
84
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeFlex, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
84
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatColumnResizeFlex, isStandalone: true, selector: "mat-table[columnResize]", host: { classAttribute: "mat-column-resize-flex" }, providers: [...FLEX_PROVIDERS, { provide: ColumnResize, useExisting: MatColumnResizeFlex }], usesInheritance: true, ngImport: i0 });
|
|
85
85
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeFlex, decorators: [{
|
|
87
87
|
type: Directive,
|
|
88
88
|
args: [{
|
|
89
89
|
selector: 'mat-table[columnResize]',
|
|
@@ -102,13 +102,13 @@ class MatDefaultEnabledColumnResize extends AbstractMatColumnResize {
|
|
|
102
102
|
eventDispatcher = inject(HeaderRowEventDispatcher);
|
|
103
103
|
ngZone = inject(NgZone);
|
|
104
104
|
notifier = inject(ColumnResizeNotifierSource);
|
|
105
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
106
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatDefaultEnabledColumnResize, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
106
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatDefaultEnabledColumnResize, isStandalone: true, selector: "table[mat-table]", host: { classAttribute: "mat-column-resize-table" }, providers: [
|
|
107
107
|
...TABLE_PROVIDERS,
|
|
108
108
|
{ provide: ColumnResize, useExisting: MatDefaultEnabledColumnResize },
|
|
109
109
|
], usesInheritance: true, ngImport: i0 });
|
|
110
110
|
}
|
|
111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatDefaultEnabledColumnResize, decorators: [{
|
|
112
112
|
type: Directive,
|
|
113
113
|
args: [{
|
|
114
114
|
selector: 'table[mat-table]',
|
|
@@ -130,13 +130,13 @@ class MatDefaultEnabledColumnResizeFlex extends AbstractMatColumnResize {
|
|
|
130
130
|
eventDispatcher = inject(HeaderRowEventDispatcher);
|
|
131
131
|
ngZone = inject(NgZone);
|
|
132
132
|
notifier = inject(ColumnResizeNotifierSource);
|
|
133
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
134
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
133
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatDefaultEnabledColumnResizeFlex, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
134
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatDefaultEnabledColumnResizeFlex, isStandalone: true, selector: "mat-table", host: { classAttribute: "mat-column-resize-flex" }, providers: [
|
|
135
135
|
...FLEX_PROVIDERS,
|
|
136
136
|
{ provide: ColumnResize, useExisting: MatDefaultEnabledColumnResizeFlex },
|
|
137
137
|
], usesInheritance: true, ngImport: i0 });
|
|
138
138
|
}
|
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatDefaultEnabledColumnResizeFlex, decorators: [{
|
|
140
140
|
type: Directive,
|
|
141
141
|
args: [{
|
|
142
142
|
selector: 'mat-table',
|
|
@@ -174,10 +174,10 @@ class MatColumnResizeOverlayHandle extends ResizeOverlayHandle {
|
|
|
174
174
|
: originHeight,
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
178
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeOverlayHandle, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatColumnResizeOverlayHandle, isStandalone: true, selector: "ng-component", host: { classAttribute: "mat-column-resize-overlay-thumb" }, viewQueries: [{ propertyName: "topElement", first: true, predicate: ["top"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: '<div #top class="mat-column-resize-overlay-thumb-top"></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
179
179
|
}
|
|
180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeOverlayHandle, decorators: [{
|
|
181
181
|
type: Component,
|
|
182
182
|
args: [{
|
|
183
183
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -219,17 +219,16 @@ class MatDefaultResizable extends AbstractMatResizable {
|
|
|
219
219
|
eventDispatcher = inject(HeaderRowEventDispatcher);
|
|
220
220
|
injector = inject(Injector);
|
|
221
221
|
ngZone = inject(NgZone);
|
|
222
|
-
overlay = inject(Overlay);
|
|
223
222
|
resizeNotifier = inject(ColumnResizeNotifierSource);
|
|
224
223
|
resizeStrategy = inject(ResizeStrategy);
|
|
225
224
|
styleScheduler = inject(_COALESCED_STYLE_SCHEDULER);
|
|
226
225
|
viewContainerRef = inject(ViewContainerRef);
|
|
227
226
|
changeDetectorRef = inject(ChangeDetectorRef);
|
|
228
227
|
document = inject(DOCUMENT);
|
|
229
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
230
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
228
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatDefaultResizable, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
229
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatDefaultResizable, isStandalone: true, selector: "mat-header-cell:not([disableResize]), th[mat-header-cell]:not([disableResize])", inputs: { minWidthPx: ["matResizableMinWidthPx", "minWidthPx"], maxWidthPx: ["matResizableMaxWidthPx", "maxWidthPx"] }, host: { classAttribute: "mat-resizable" }, usesInheritance: true, ngImport: i0 });
|
|
231
230
|
}
|
|
232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatDefaultResizable, decorators: [{
|
|
233
232
|
type: Directive,
|
|
234
233
|
args: [{
|
|
235
234
|
selector: 'mat-header-cell:not([disableResize]), th[mat-header-cell]:not([disableResize])',
|
|
@@ -249,17 +248,16 @@ class MatResizable extends AbstractMatResizable {
|
|
|
249
248
|
eventDispatcher = inject(HeaderRowEventDispatcher);
|
|
250
249
|
injector = inject(Injector);
|
|
251
250
|
ngZone = inject(NgZone);
|
|
252
|
-
overlay = inject(Overlay);
|
|
253
251
|
resizeNotifier = inject(ColumnResizeNotifierSource);
|
|
254
252
|
resizeStrategy = inject(ResizeStrategy);
|
|
255
253
|
styleScheduler = inject(_COALESCED_STYLE_SCHEDULER);
|
|
256
254
|
viewContainerRef = inject(ViewContainerRef);
|
|
257
255
|
changeDetectorRef = inject(ChangeDetectorRef);
|
|
258
256
|
document = inject(DOCUMENT);
|
|
259
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
260
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
257
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatResizable, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
258
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: MatResizable, isStandalone: true, selector: "mat-header-cell[resizable], th[mat-header-cell][resizable]", inputs: { minWidthPx: ["matResizableMinWidthPx", "minWidthPx"], maxWidthPx: ["matResizableMaxWidthPx", "maxWidthPx"] }, host: { classAttribute: "mat-resizable" }, usesInheritance: true, ngImport: i0 });
|
|
261
259
|
}
|
|
262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatResizable, decorators: [{
|
|
263
261
|
type: Directive,
|
|
264
262
|
args: [{
|
|
265
263
|
selector: 'mat-header-cell[resizable], th[mat-header-cell][resizable]',
|
|
@@ -270,11 +268,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
270
268
|
|
|
271
269
|
const ENTRY_COMMON_COMPONENTS = [MatColumnResizeOverlayHandle];
|
|
272
270
|
class MatColumnResizeCommonModule {
|
|
273
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
274
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
275
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
271
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
272
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeCommonModule, imports: [MatColumnResizeOverlayHandle], exports: [MatColumnResizeOverlayHandle] });
|
|
273
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeCommonModule });
|
|
276
274
|
}
|
|
277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeCommonModule, decorators: [{
|
|
278
276
|
type: NgModule,
|
|
279
277
|
args: [{
|
|
280
278
|
imports: [...ENTRY_COMMON_COMPONENTS],
|
|
@@ -283,13 +281,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
283
281
|
}] });
|
|
284
282
|
const IMPORTS = [MatCommonModule, OverlayModule, MatColumnResizeCommonModule];
|
|
285
283
|
class MatDefaultEnabledColumnResizeModule {
|
|
286
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
287
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
284
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
285
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, imports: [MatCommonModule, OverlayModule, MatColumnResizeCommonModule, MatDefaultEnabledColumnResize,
|
|
288
286
|
MatDefaultEnabledColumnResizeFlex,
|
|
289
287
|
MatDefaultResizable], exports: [MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultResizable] });
|
|
290
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
288
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, imports: [IMPORTS] });
|
|
291
289
|
}
|
|
292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatDefaultEnabledColumnResizeModule, decorators: [{
|
|
293
291
|
type: NgModule,
|
|
294
292
|
args: [{
|
|
295
293
|
imports: [
|
|
@@ -302,11 +300,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
302
300
|
}]
|
|
303
301
|
}] });
|
|
304
302
|
class MatColumnResizeModule {
|
|
305
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
306
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
307
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
303
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
304
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeModule, imports: [MatCommonModule, OverlayModule, MatColumnResizeCommonModule, MatColumnResize, MatColumnResizeFlex, MatResizable], exports: [MatColumnResize, MatColumnResizeFlex, MatResizable] });
|
|
305
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeModule, imports: [IMPORTS] });
|
|
308
306
|
}
|
|
309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: MatColumnResizeModule, decorators: [{
|
|
310
308
|
type: NgModule,
|
|
311
309
|
args: [{
|
|
312
310
|
imports: [...IMPORTS, MatColumnResize, MatColumnResizeFlex, MatResizable],
|
|
@@ -314,9 +312,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
314
312
|
}]
|
|
315
313
|
}] });
|
|
316
314
|
|
|
317
|
-
/**
|
|
318
|
-
* Generated bundle index. Do not edit.
|
|
319
|
-
*/
|
|
320
|
-
|
|
321
315
|
export { FLEX_RESIZE_STRATEGY_PROVIDER, MatColumnResize, MatColumnResizeCommonModule, MatColumnResizeFlex, MatColumnResizeModule, MatColumnResizeOverlayHandle, MatDefaultEnabledColumnResize, MatDefaultEnabledColumnResizeFlex, MatDefaultEnabledColumnResizeModule, MatDefaultResizable, MatFlexTableResizeStrategy, MatResizable };
|
|
322
316
|
//# sourceMappingURL=column-resize.mjs.map
|