@angular/material 19.2.2 → 19.2.3
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/autocomplete/index.d.ts +83 -124
- package/autocomplete/testing/index.d.ts +5 -11
- package/badge/index.d.ts +17 -30
- package/badge/testing/index.d.ts +5 -8
- package/bottom-sheet/index.d.ts +88 -103
- package/bottom-sheet/testing/index.d.ts +4 -6
- package/button/index.d.ts +109 -148
- package/button/testing/index.d.ts +6 -10
- package/button-toggle/index.d.ts +116 -142
- package/button-toggle/testing/index.d.ts +34 -36
- package/card/index.d.ts +79 -117
- package/card/testing/index.d.ts +11 -15
- package/checkbox/index.d.ts +55 -85
- package/checkbox/testing/index.d.ts +6 -10
- package/chips/index.d.ts +592 -690
- package/chips/testing/index.d.ts +78 -93
- package/core/index.d.ts +565 -669
- package/core/testing/index.d.ts +28 -32
- package/datepicker/index.d.ts +1323 -1479
- package/datepicker/testing/index.d.ts +109 -119
- package/dialog/index.d.ts +194 -246
- package/dialog/testing/index.d.ts +17 -26
- package/divider/index.d.ts +4 -10
- package/divider/testing/index.d.ts +4 -6
- package/expansion/index.d.ts +137 -189
- package/expansion/testing/index.d.ts +25 -31
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +26 -17
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +3 -7
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +0 -4
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +5 -4
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +6 -6
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +0 -4
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +5 -5
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +0 -4
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +7 -7
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +42 -18
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +4 -8
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +0 -4
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +2 -6
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +0 -2
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field.mjs +0 -4
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +0 -4
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +0 -4
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +15 -7
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input.mjs +0 -4
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list/testing.mjs +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +2 -6
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +15 -7
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +10 -6
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs +0 -4
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +5 -5
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs +0 -4
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +5 -5
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +5 -4
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +14 -10
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +9 -9
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +0 -4
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +0 -4
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +5 -5
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +10 -6
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +10 -6
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +0 -4
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +8 -15
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +1 -5
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +0 -4
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +15 -7
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +0 -4
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +251 -318
- package/form-field/testing/control/index.d.ts +2 -2
- package/form-field/testing/index.d.ts +14 -21
- package/grid-list/index.d.ts +124 -150
- package/grid-list/testing/index.d.ts +39 -44
- package/icon/index.d.ts +87 -108
- package/icon/testing/index.d.ts +38 -43
- package/index.d.ts +2 -3
- package/input/index.d.ts +27 -61
- package/input/testing/index.d.ts +16 -19
- package/list/index.d.ts +158 -241
- package/list/testing/index.d.ts +157 -179
- package/menu/index.d.ts +180 -231
- package/menu/testing/index.d.ts +17 -23
- package/package.json +2 -2
- package/paginator/index.d.ts +84 -97
- package/paginator/testing/index.d.ts +10 -14
- package/progress-bar/index.d.ts +38 -58
- package/progress-bar/testing/index.d.ts +7 -10
- package/progress-spinner/index.d.ts +38 -51
- package/progress-spinner/testing/index.d.ts +7 -10
- package/radio/index.d.ts +145 -168
- package/radio/testing/index.d.ts +61 -67
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/theme-color/index_bundled.js +2 -2
- package/schematics/ng-generate/theme-color/schema.json +10 -0
- package/schematics/ng-update/index_bundled.js +31 -31
- package/select/index.d.ts +77 -130
- package/select/testing/index.d.ts +10 -15
- package/sidenav/index.d.ts +47 -91
- package/sidenav/testing/index.d.ts +58 -63
- package/slide-toggle/index.d.ts +51 -84
- package/slide-toggle/testing/index.d.ts +17 -21
- package/slider/index.d.ts +277 -327
- package/slider/testing/index.d.ts +42 -47
- package/snack-bar/index.d.ts +147 -185
- package/snack-bar/testing/index.d.ts +7 -9
- package/sort/index.d.ts +94 -124
- package/sort/testing/index.d.ts +21 -24
- package/stepper/index.d.ts +108 -165
- package/stepper/testing/index.d.ts +43 -52
- package/table/index.d.ts +87 -153
- package/table/testing/index.d.ts +64 -78
- package/tabs/index.d.ts +306 -382
- package/tabs/testing/index.d.ts +67 -76
- package/timepicker/index.d.ts +123 -159
- package/timepicker/testing/index.d.ts +20 -26
- package/toolbar/index.d.ts +13 -25
- package/toolbar/testing/index.d.ts +13 -16
- package/tooltip/index.d.ts +88 -117
- package/tooltip/testing/index.d.ts +7 -10
- package/tree/index.d.ts +116 -163
- package/tree/testing/index.d.ts +52 -58
package/paginator/index.d.ts
CHANGED
|
@@ -1,46 +1,101 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
2
|
+
import { Optional, InjectionToken, OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/material/button';
|
|
4
4
|
import * as i2 from '@angular/material/select';
|
|
5
5
|
import * as i3 from '@angular/material/tooltip';
|
|
6
|
-
import { InjectionToken } from '@angular/core';
|
|
7
|
-
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
8
|
-
import { Observable } from 'rxjs';
|
|
9
|
-
import { OnDestroy } from '@angular/core';
|
|
10
|
-
import { OnInit } from '@angular/core';
|
|
11
|
-
import { Optional } from '@angular/core';
|
|
12
|
-
import { Subject } from 'rxjs';
|
|
13
6
|
import { ThemePalette } from '@angular/material/core';
|
|
7
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
8
|
+
import { Subject, Observable } from 'rxjs';
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
/**
|
|
11
|
+
* To modify the labels and text displayed, create a new instance of MatPaginatorIntl and
|
|
12
|
+
* include it in a custom provider
|
|
13
|
+
*/
|
|
14
|
+
declare class MatPaginatorIntl {
|
|
15
|
+
/**
|
|
16
|
+
* Stream to emit from when labels are changed. Use this to notify components when the labels have
|
|
17
|
+
* changed after initialization.
|
|
18
|
+
*/
|
|
19
|
+
readonly changes: Subject<void>;
|
|
20
|
+
/** A label for the page size selector. */
|
|
21
|
+
itemsPerPageLabel: string;
|
|
22
|
+
/** A label for the button that increments the current page. */
|
|
23
|
+
nextPageLabel: string;
|
|
24
|
+
/** A label for the button that decrements the current page. */
|
|
25
|
+
previousPageLabel: string;
|
|
26
|
+
/** A label for the button that moves to the first page. */
|
|
27
|
+
firstPageLabel: string;
|
|
28
|
+
/** A label for the button that moves to the last page. */
|
|
29
|
+
lastPageLabel: string;
|
|
30
|
+
/** A label for the range of items within the current page and the length of the whole list. */
|
|
31
|
+
getRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginatorIntl, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatPaginatorIntl>;
|
|
23
34
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @docs-private
|
|
37
|
+
* @deprecated No longer used, will be removed.
|
|
38
|
+
* @breaking-change 21.0.0
|
|
39
|
+
*/
|
|
40
|
+
declare function MAT_PAGINATOR_INTL_PROVIDER_FACTORY(parentIntl: MatPaginatorIntl): MatPaginatorIntl;
|
|
41
|
+
/**
|
|
42
|
+
* @docs-private
|
|
43
|
+
* @deprecated No longer used, will be removed.
|
|
44
|
+
* @breaking-change 21.0.0
|
|
45
|
+
*/
|
|
46
|
+
declare const MAT_PAGINATOR_INTL_PROVIDER: {
|
|
30
47
|
provide: typeof MatPaginatorIntl;
|
|
31
48
|
deps: Optional[][];
|
|
32
49
|
useFactory: typeof MAT_PAGINATOR_INTL_PROVIDER_FACTORY;
|
|
33
50
|
};
|
|
34
51
|
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
52
|
+
/** Object that can used to configure the underlying `MatSelect` inside a `MatPaginator`. */
|
|
53
|
+
interface MatPaginatorSelectConfig {
|
|
54
|
+
/** Whether to center the active option over the trigger. */
|
|
55
|
+
disableOptionCentering?: boolean;
|
|
56
|
+
/** Classes to be passed to the select panel. */
|
|
57
|
+
panelClass?: string | string[] | Set<string> | {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Change event object that is emitted when the user selects a
|
|
63
|
+
* different page size or navigates to another page.
|
|
64
|
+
*/
|
|
65
|
+
declare class PageEvent {
|
|
66
|
+
/** The current page index. */
|
|
67
|
+
pageIndex: number;
|
|
68
|
+
/**
|
|
69
|
+
* Index of the page that was selected previously.
|
|
70
|
+
* @breaking-change 8.0.0 To be made into a required property.
|
|
71
|
+
*/
|
|
72
|
+
previousPageIndex?: number;
|
|
73
|
+
/** The current page size. */
|
|
74
|
+
pageSize: number;
|
|
75
|
+
/** The current total number of items being paged. */
|
|
76
|
+
length: number;
|
|
77
|
+
}
|
|
78
|
+
/** Object that can be used to configure the default options for the paginator module. */
|
|
79
|
+
interface MatPaginatorDefaultOptions {
|
|
80
|
+
/** Number of items to display on a page. By default set to 50. */
|
|
81
|
+
pageSize?: number;
|
|
82
|
+
/** The set of provided page size options to display to the user. */
|
|
83
|
+
pageSizeOptions?: number[];
|
|
84
|
+
/** Whether to hide the page size selection UI from the user. */
|
|
85
|
+
hidePageSize?: boolean;
|
|
86
|
+
/** Whether to show the first/last buttons UI to the user. */
|
|
87
|
+
showFirstLastButtons?: boolean;
|
|
88
|
+
/** The default form-field appearance to apply to the page size options selector. */
|
|
89
|
+
formFieldAppearance?: MatFormFieldAppearance;
|
|
90
|
+
}
|
|
91
|
+
/** Injection token that can be used to provide the default options for the paginator module. */
|
|
92
|
+
declare const MAT_PAGINATOR_DEFAULT_OPTIONS: InjectionToken<MatPaginatorDefaultOptions>;
|
|
38
93
|
/**
|
|
39
94
|
* Component to provide navigation between paged information. Displays the size of the current
|
|
40
95
|
* page, user-selectable options to change that size, what items are being shown, and
|
|
41
96
|
* navigational button to go to the previous or next page.
|
|
42
97
|
*/
|
|
43
|
-
|
|
98
|
+
declare class MatPaginator implements OnInit, OnDestroy {
|
|
44
99
|
_intl: MatPaginatorIntl;
|
|
45
100
|
private _changeDetectorRef;
|
|
46
101
|
/** If set, styles the "page size" form field with the designated style. */
|
|
@@ -144,78 +199,10 @@ export declare class MatPaginator implements OnInit, OnDestroy {
|
|
|
144
199
|
static ngAcceptInputType_disabled: unknown;
|
|
145
200
|
}
|
|
146
201
|
|
|
147
|
-
|
|
148
|
-
export declare interface MatPaginatorDefaultOptions {
|
|
149
|
-
/** Number of items to display on a page. By default set to 50. */
|
|
150
|
-
pageSize?: number;
|
|
151
|
-
/** The set of provided page size options to display to the user. */
|
|
152
|
-
pageSizeOptions?: number[];
|
|
153
|
-
/** Whether to hide the page size selection UI from the user. */
|
|
154
|
-
hidePageSize?: boolean;
|
|
155
|
-
/** Whether to show the first/last buttons UI to the user. */
|
|
156
|
-
showFirstLastButtons?: boolean;
|
|
157
|
-
/** The default form-field appearance to apply to the page size options selector. */
|
|
158
|
-
formFieldAppearance?: MatFormFieldAppearance;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* To modify the labels and text displayed, create a new instance of MatPaginatorIntl and
|
|
163
|
-
* include it in a custom provider
|
|
164
|
-
*/
|
|
165
|
-
export declare class MatPaginatorIntl {
|
|
166
|
-
/**
|
|
167
|
-
* Stream to emit from when labels are changed. Use this to notify components when the labels have
|
|
168
|
-
* changed after initialization.
|
|
169
|
-
*/
|
|
170
|
-
readonly changes: Subject<void>;
|
|
171
|
-
/** A label for the page size selector. */
|
|
172
|
-
itemsPerPageLabel: string;
|
|
173
|
-
/** A label for the button that increments the current page. */
|
|
174
|
-
nextPageLabel: string;
|
|
175
|
-
/** A label for the button that decrements the current page. */
|
|
176
|
-
previousPageLabel: string;
|
|
177
|
-
/** A label for the button that moves to the first page. */
|
|
178
|
-
firstPageLabel: string;
|
|
179
|
-
/** A label for the button that moves to the last page. */
|
|
180
|
-
lastPageLabel: string;
|
|
181
|
-
/** A label for the range of items within the current page and the length of the whole list. */
|
|
182
|
-
getRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
183
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginatorIntl, never>;
|
|
184
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MatPaginatorIntl>;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export declare class MatPaginatorModule {
|
|
202
|
+
declare class MatPaginatorModule {
|
|
188
203
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginatorModule, never>;
|
|
189
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatPaginatorModule, never, [typeof i1.MatButtonModule, typeof i2.MatSelectModule, typeof i3.MatTooltipModule, typeof
|
|
204
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatPaginatorModule, never, [typeof i1.MatButtonModule, typeof i2.MatSelectModule, typeof i3.MatTooltipModule, typeof MatPaginator], [typeof MatPaginator]>;
|
|
190
205
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatPaginatorModule>;
|
|
191
206
|
}
|
|
192
207
|
|
|
193
|
-
|
|
194
|
-
export declare interface MatPaginatorSelectConfig {
|
|
195
|
-
/** Whether to center the active option over the trigger. */
|
|
196
|
-
disableOptionCentering?: boolean;
|
|
197
|
-
/** Classes to be passed to the select panel. */
|
|
198
|
-
panelClass?: string | string[] | Set<string> | {
|
|
199
|
-
[key: string]: any;
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Change event object that is emitted when the user selects a
|
|
205
|
-
* different page size or navigates to another page.
|
|
206
|
-
*/
|
|
207
|
-
export declare class PageEvent {
|
|
208
|
-
/** The current page index. */
|
|
209
|
-
pageIndex: number;
|
|
210
|
-
/**
|
|
211
|
-
* Index of the page that was selected previously.
|
|
212
|
-
* @breaking-change 8.0.0 To be made into a required property.
|
|
213
|
-
*/
|
|
214
|
-
previousPageIndex?: number;
|
|
215
|
-
/** The current page size. */
|
|
216
|
-
pageSize: number;
|
|
217
|
-
/** The current total number of items being paged. */
|
|
218
|
-
length: number;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export { }
|
|
208
|
+
export { MAT_PAGINATOR_DEFAULT_OPTIONS, MAT_PAGINATOR_INTL_PROVIDER, MAT_PAGINATOR_INTL_PROVIDER_FACTORY, MatPaginator, type MatPaginatorDefaultOptions, MatPaginatorIntl, MatPaginatorModule, type MatPaginatorSelectConfig, PageEvent };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
3
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
4
|
-
import { ComponentHarnessConstructor } from '@angular/cdk/testing';
|
|
5
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
6
3
|
import { MatSelectHarness } from '@angular/material/select/testing';
|
|
7
|
-
|
|
4
|
+
|
|
5
|
+
/** A set of criteria that can be used to filter a list of `MatPaginatorHarness` instances. */
|
|
6
|
+
interface PaginatorHarnessFilters extends BaseHarnessFilters {
|
|
7
|
+
}
|
|
8
8
|
|
|
9
9
|
/** Harness for interacting with a mat-paginator in tests. */
|
|
10
|
-
|
|
10
|
+
declare class MatPaginatorHarness extends ComponentHarness {
|
|
11
11
|
/** Selector used to find paginator instances. */
|
|
12
12
|
static hostSelector: string;
|
|
13
13
|
private _nextButton;
|
|
14
14
|
private _previousButton;
|
|
15
15
|
private _firstPageButton;
|
|
16
16
|
private _lastPageButton;
|
|
17
|
-
_select: AsyncFactoryFn<MatSelectHarness | null>;
|
|
17
|
+
_select: _angular_cdk_testing.AsyncFactoryFn<MatSelectHarness | null>;
|
|
18
18
|
private _pageSizeFallback;
|
|
19
|
-
_rangeLabel: AsyncFactoryFn<TestElement>;
|
|
19
|
+
_rangeLabel: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement>;
|
|
20
20
|
/**
|
|
21
21
|
* Gets a `HarnessPredicate` that can be used to search for a paginator with specific attributes.
|
|
22
22
|
* @param options Options for filtering which paginator instances are considered a match.
|
|
@@ -45,8 +45,4 @@ export declare class MatPaginatorHarness extends ComponentHarness {
|
|
|
45
45
|
getRangeLabel(): Promise<string>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
export declare interface PaginatorHarnessFilters extends BaseHarnessFilters {
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { }
|
|
48
|
+
export { MatPaginatorHarness, type PaginatorHarnessFilters };
|
package/progress-bar/index.d.ts
CHANGED
|
@@ -1,39 +1,48 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
|
-
import { EventEmitter } from '@angular/core';
|
|
4
1
|
import * as i0 from '@angular/core';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { InjectionToken, AfterViewInit, OnDestroy, ElementRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/material/core';
|
|
8
4
|
import { ThemePalette } from '@angular/material/core';
|
|
9
5
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
/** Last animation end data. */
|
|
7
|
+
interface ProgressAnimationEnd {
|
|
8
|
+
value: number;
|
|
9
|
+
}
|
|
10
|
+
/** Default `mat-progress-bar` options that can be overridden. */
|
|
11
|
+
interface MatProgressBarDefaultOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Default theme color of the progress bar. This API is supported in M2 themes only,
|
|
14
|
+
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-bar/styling.
|
|
15
|
+
*
|
|
16
|
+
* For information on applying color variants in M3, see
|
|
17
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
18
|
+
*/
|
|
19
|
+
color?: ThemePalette;
|
|
20
|
+
/** Default mode of the progress bar. */
|
|
21
|
+
mode?: ProgressBarMode;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
23
|
/** Injection token to be used to override the default options for `mat-progress-bar`. */
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
declare const MAT_PROGRESS_BAR_DEFAULT_OPTIONS: InjectionToken<MatProgressBarDefaultOptions>;
|
|
26
25
|
/**
|
|
27
26
|
* Injection token used to provide the current location to `MatProgressBar`.
|
|
28
27
|
* Used to handle server-side rendering and to stub out during unit tests.
|
|
29
28
|
* @docs-private
|
|
30
29
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
declare const MAT_PROGRESS_BAR_LOCATION: InjectionToken<MatProgressBarLocation>;
|
|
31
|
+
/**
|
|
32
|
+
* Stubbed out location for `MatProgressBar`.
|
|
33
|
+
* @docs-private
|
|
34
|
+
*/
|
|
35
|
+
interface MatProgressBarLocation {
|
|
36
|
+
getPathname: () => string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @docs-private
|
|
40
|
+
* @deprecated No longer used, will be removed.
|
|
41
|
+
* @breaking-change 21.0.0
|
|
42
|
+
*/
|
|
43
|
+
declare function MAT_PROGRESS_BAR_LOCATION_FACTORY(): MatProgressBarLocation;
|
|
44
|
+
type ProgressBarMode = 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
|
45
|
+
declare class MatProgressBar implements AfterViewInit, OnDestroy {
|
|
37
46
|
readonly _elementRef: ElementRef<HTMLElement>;
|
|
38
47
|
private _ngZone;
|
|
39
48
|
private _changeDetectorRef;
|
|
@@ -94,39 +103,10 @@ export declare class MatProgressBar implements AfterViewInit, OnDestroy {
|
|
|
94
103
|
static ngAcceptInputType_bufferValue: unknown;
|
|
95
104
|
}
|
|
96
105
|
|
|
97
|
-
|
|
98
|
-
export declare interface MatProgressBarDefaultOptions {
|
|
99
|
-
/**
|
|
100
|
-
* Default theme color of the progress bar. This API is supported in M2 themes only,
|
|
101
|
-
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-bar/styling.
|
|
102
|
-
*
|
|
103
|
-
* For information on applying color variants in M3, see
|
|
104
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
105
|
-
*/
|
|
106
|
-
color?: ThemePalette;
|
|
107
|
-
/** Default mode of the progress bar. */
|
|
108
|
-
mode?: ProgressBarMode;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Stubbed out location for `MatProgressBar`.
|
|
113
|
-
* @docs-private
|
|
114
|
-
*/
|
|
115
|
-
export declare interface MatProgressBarLocation {
|
|
116
|
-
getPathname: () => string;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export declare class MatProgressBarModule {
|
|
106
|
+
declare class MatProgressBarModule {
|
|
120
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressBarModule, never>;
|
|
121
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatProgressBarModule, never, [typeof
|
|
108
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatProgressBarModule, never, [typeof MatProgressBar], [typeof MatProgressBar, typeof i1.MatCommonModule]>;
|
|
122
109
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatProgressBarModule>;
|
|
123
110
|
}
|
|
124
111
|
|
|
125
|
-
|
|
126
|
-
export declare interface ProgressAnimationEnd {
|
|
127
|
-
value: number;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export declare type ProgressBarMode = 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
|
131
|
-
|
|
132
|
-
export { }
|
|
112
|
+
export { MAT_PROGRESS_BAR_DEFAULT_OPTIONS, MAT_PROGRESS_BAR_LOCATION, MAT_PROGRESS_BAR_LOCATION_FACTORY, MatProgressBar, type MatProgressBarDefaultOptions, type MatProgressBarLocation, MatProgressBarModule, type ProgressAnimationEnd, type ProgressBarMode };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
|
|
3
|
+
/** A set of criteria that can be used to filter a list of `MatProgressBarHarness` instances. */
|
|
4
|
+
interface ProgressBarHarnessFilters extends BaseHarnessFilters {
|
|
5
|
+
}
|
|
5
6
|
|
|
6
7
|
/** Harness for interacting with a `mat-progress-bar` in tests. */
|
|
7
|
-
|
|
8
|
+
declare class MatProgressBarHarness extends ComponentHarness {
|
|
8
9
|
static hostSelector: string;
|
|
9
10
|
/**
|
|
10
11
|
* Gets a `HarnessPredicate` that can be used to search for a progress bar with specific
|
|
@@ -19,8 +20,4 @@ export declare class MatProgressBarHarness extends ComponentHarness {
|
|
|
19
20
|
getMode(): Promise<string | null>;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
export declare interface ProgressBarHarnessFilters extends BaseHarnessFilters {
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { }
|
|
23
|
+
export { MatProgressBarHarness, type ProgressBarHarnessFilters };
|
|
@@ -1,27 +1,39 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { InjectionToken, ElementRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/material/core';
|
|
5
4
|
import { ThemePalette } from '@angular/material/core';
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
/** Possible mode for a progress spinner. */
|
|
7
|
+
type ProgressSpinnerMode = 'determinate' | 'indeterminate';
|
|
8
|
+
/** Default `mat-progress-spinner` options that can be overridden. */
|
|
9
|
+
interface MatProgressSpinnerDefaultOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Default theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
12
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
13
|
+
*
|
|
14
|
+
* For information on applying color variants in M3, see
|
|
15
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
16
|
+
*/
|
|
17
|
+
color?: ThemePalette;
|
|
18
|
+
/** Diameter of the spinner. */
|
|
19
|
+
diameter?: number;
|
|
20
|
+
/** Width of the spinner's stroke. */
|
|
21
|
+
strokeWidth?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the animations should be force to be enabled, ignoring if the current environment is
|
|
24
|
+
* using NoopAnimationsModule.
|
|
25
|
+
*/
|
|
26
|
+
_forceAnimations?: boolean;
|
|
16
27
|
}
|
|
17
|
-
|
|
18
28
|
/** Injection token to be used to override the default options for `mat-progress-spinner`. */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
declare const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken<MatProgressSpinnerDefaultOptions>;
|
|
30
|
+
/**
|
|
31
|
+
* @docs-private
|
|
32
|
+
* @deprecated No longer used, will be removed.
|
|
33
|
+
* @breaking-change 21.0.0
|
|
34
|
+
*/
|
|
35
|
+
declare function MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY(): MatProgressSpinnerDefaultOptions;
|
|
36
|
+
declare class MatProgressSpinner {
|
|
25
37
|
readonly _elementRef: ElementRef<HTMLElement>;
|
|
26
38
|
/** Whether the _mat-animation-noopable class should be applied, disabling animations. */
|
|
27
39
|
_noopAnimations: boolean;
|
|
@@ -75,42 +87,17 @@ export declare class MatProgressSpinner {
|
|
|
75
87
|
static ngAcceptInputType_diameter: unknown;
|
|
76
88
|
static ngAcceptInputType_strokeWidth: unknown;
|
|
77
89
|
}
|
|
78
|
-
|
|
79
|
-
/** Default `mat-progress-spinner` options that can be overridden. */
|
|
80
|
-
export declare interface MatProgressSpinnerDefaultOptions {
|
|
81
|
-
/**
|
|
82
|
-
* Default theme color of the progress spinner. This API is supported in M2 themes only, it
|
|
83
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/progress-spinner/styling.
|
|
84
|
-
*
|
|
85
|
-
* For information on applying color variants in M3, see
|
|
86
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
87
|
-
*/
|
|
88
|
-
color?: ThemePalette;
|
|
89
|
-
/** Diameter of the spinner. */
|
|
90
|
-
diameter?: number;
|
|
91
|
-
/** Width of the spinner's stroke. */
|
|
92
|
-
strokeWidth?: number;
|
|
93
|
-
/**
|
|
94
|
-
* Whether the animations should be force to be enabled, ignoring if the current environment is
|
|
95
|
-
* using NoopAnimationsModule.
|
|
96
|
-
*/
|
|
97
|
-
_forceAnimations?: boolean;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export declare class MatProgressSpinnerModule {
|
|
101
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinnerModule, never>;
|
|
102
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatProgressSpinnerModule, never, [typeof i1.MatProgressSpinner, typeof i1.MatProgressSpinner], [typeof i1.MatProgressSpinner, typeof i1.MatProgressSpinner, typeof i2.MatCommonModule]>;
|
|
103
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatProgressSpinnerModule>;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
90
|
/**
|
|
107
91
|
* @deprecated Import Progress Spinner instead. Note that the
|
|
108
92
|
* `mat-spinner` selector isn't deprecated.
|
|
109
93
|
* @breaking-change 16.0.0
|
|
110
94
|
*/
|
|
111
|
-
|
|
95
|
+
declare const MatSpinner: typeof MatProgressSpinner;
|
|
112
96
|
|
|
113
|
-
|
|
114
|
-
|
|
97
|
+
declare class MatProgressSpinnerModule {
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinnerModule, never>;
|
|
99
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatProgressSpinnerModule, never, [typeof MatProgressSpinner, typeof MatProgressSpinner], [typeof MatProgressSpinner, typeof MatProgressSpinner, typeof i1.MatCommonModule]>;
|
|
100
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatProgressSpinnerModule>;
|
|
101
|
+
}
|
|
115
102
|
|
|
116
|
-
export { }
|
|
103
|
+
export { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS, MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY, MatProgressSpinner, type MatProgressSpinnerDefaultOptions, MatProgressSpinnerModule, MatSpinner, type ProgressSpinnerMode };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
3
|
-
import { ComponentHarnessConstructor } from '@angular/cdk/testing';
|
|
4
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
5
2
|
import { ProgressSpinnerMode } from '@angular/material/progress-spinner';
|
|
6
3
|
|
|
4
|
+
/** A set of criteria that can be used to filter a list of `MatProgressSpinnerHarness` instances. */
|
|
5
|
+
interface ProgressSpinnerHarnessFilters extends BaseHarnessFilters {
|
|
6
|
+
}
|
|
7
|
+
|
|
7
8
|
/** Harness for interacting with a MDC based mat-progress-spinner in tests. */
|
|
8
|
-
|
|
9
|
+
declare class MatProgressSpinnerHarness extends ComponentHarness {
|
|
9
10
|
/** The selector for the host element of a `MatProgressSpinner` instance. */
|
|
10
11
|
static hostSelector: string;
|
|
11
12
|
/**
|
|
@@ -21,8 +22,4 @@ export declare class MatProgressSpinnerHarness extends ComponentHarness {
|
|
|
21
22
|
getMode(): Promise<ProgressSpinnerMode>;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
export declare interface ProgressSpinnerHarnessFilters extends BaseHarnessFilters {
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { }
|
|
25
|
+
export { MatProgressSpinnerHarness, type ProgressSpinnerHarnessFilters };
|