@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/icon/index.d.ts
CHANGED
|
@@ -1,95 +1,45 @@
|
|
|
1
|
-
import { AfterViewChecked } from '@angular/core';
|
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import { ElementRef } from '@angular/core';
|
|
4
|
-
import { ErrorHandler } from '@angular/core';
|
|
5
|
-
import { HttpClient } from '@angular/common/http';
|
|
6
1
|
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnInit, AfterViewChecked, OnDestroy, ElementRef, ErrorHandler, Optional } from '@angular/core';
|
|
7
3
|
import * as i1 from '@angular/material/core';
|
|
8
|
-
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
import { OnDestroy } from '@angular/core';
|
|
11
|
-
import { OnInit } from '@angular/core';
|
|
12
|
-
import { Optional } from '@angular/core';
|
|
13
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
14
|
-
import { SafeResourceUrl } from '@angular/platform-browser';
|
|
15
4
|
import { ThemePalette } from '@angular/material/core';
|
|
5
|
+
import { HttpClient } from '@angular/common/http';
|
|
6
|
+
import { SafeResourceUrl, SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
16
8
|
|
|
9
|
+
/** Default options for `mat-icon`. */
|
|
10
|
+
interface MatIconDefaultOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Theme color of the icon. This API is supported in M2 themes only, it
|
|
13
|
+
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/icon/styling.
|
|
14
|
+
*
|
|
15
|
+
* For information on applying color variants in M3, see
|
|
16
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
17
|
+
*/
|
|
18
|
+
color?: ThemePalette;
|
|
19
|
+
/** Font set that the icon is a part of. */
|
|
20
|
+
fontSet?: string;
|
|
21
|
+
}
|
|
22
|
+
/** Injection token to be used to override the default options for `mat-icon`. */
|
|
23
|
+
declare const MAT_ICON_DEFAULT_OPTIONS: InjectionToken<MatIconDefaultOptions>;
|
|
17
24
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @docs-private
|
|
21
|
-
*/
|
|
22
|
-
export declare function getMatIconFailedToSanitizeLiteralError(literal: SafeHtml): Error;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Returns an exception to be thrown when a URL couldn't be sanitized.
|
|
26
|
-
* @param url URL that was attempted to be sanitized.
|
|
27
|
-
* @docs-private
|
|
28
|
-
*/
|
|
29
|
-
export declare function getMatIconFailedToSanitizeUrlError(url: SafeResourceUrl): Error;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Returns an exception to be thrown in the case when attempting to
|
|
33
|
-
* load an icon with a name that cannot be found.
|
|
25
|
+
* Injection token used to provide the current location to `MatIcon`.
|
|
26
|
+
* Used to handle server-side rendering and to stub out during unit tests.
|
|
34
27
|
* @docs-private
|
|
35
28
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
declare const MAT_ICON_LOCATION: InjectionToken<MatIconLocation>;
|
|
38
30
|
/**
|
|
39
|
-
*
|
|
40
|
-
* `<mat-icon>` without including @angular/common/http.
|
|
31
|
+
* Stubbed out location for `MatIcon`.
|
|
41
32
|
* @docs-private
|
|
42
33
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
declare namespace i2 {
|
|
46
|
-
export {
|
|
47
|
-
MAT_ICON_LOCATION_FACTORY,
|
|
48
|
-
MatIconDefaultOptions,
|
|
49
|
-
MAT_ICON_DEFAULT_OPTIONS,
|
|
50
|
-
MAT_ICON_LOCATION,
|
|
51
|
-
MatIconLocation,
|
|
52
|
-
MatIcon
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** @docs-private */
|
|
57
|
-
export declare const ICON_REGISTRY_PROVIDER: {
|
|
58
|
-
provide: typeof MatIconRegistry;
|
|
59
|
-
deps: (Optional[] | typeof DomSanitizer | typeof ErrorHandler)[];
|
|
60
|
-
useFactory: typeof ICON_REGISTRY_PROVIDER_FACTORY;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/** @docs-private */
|
|
64
|
-
export declare function ICON_REGISTRY_PROVIDER_FACTORY(parentRegistry: MatIconRegistry, httpClient: HttpClient, sanitizer: DomSanitizer, errorHandler: ErrorHandler, document?: any): MatIconRegistry;
|
|
65
|
-
|
|
66
|
-
/** Options that can be used to configure how an icon or the icons in an icon set are presented. */
|
|
67
|
-
export declare interface IconOptions {
|
|
68
|
-
/** View box to set on the icon. */
|
|
69
|
-
viewBox?: string;
|
|
70
|
-
/** Whether or not to fetch the icon or icon set using HTTP credentials. */
|
|
71
|
-
withCredentials?: boolean;
|
|
34
|
+
interface MatIconLocation {
|
|
35
|
+
getPathname: () => string;
|
|
72
36
|
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Function that will be invoked by the icon registry when trying to resolve the
|
|
76
|
-
* URL from which to fetch an icon. The returned URL will be used to make a request for the icon.
|
|
77
|
-
*/
|
|
78
|
-
export declare type IconResolver = (name: string, namespace: string) => SafeResourceUrl | SafeResourceUrlWithIconOptions | null;
|
|
79
|
-
|
|
80
|
-
/** Injection token to be used to override the default options for `mat-icon`. */
|
|
81
|
-
export declare const MAT_ICON_DEFAULT_OPTIONS: InjectionToken<MatIconDefaultOptions>;
|
|
82
|
-
|
|
83
37
|
/**
|
|
84
|
-
* Injection token used to provide the current location to `MatIcon`.
|
|
85
|
-
* Used to handle server-side rendering and to stub out during unit tests.
|
|
86
38
|
* @docs-private
|
|
39
|
+
* @deprecated No longer used, will be removed.
|
|
40
|
+
* @breaking-change 21.0.0
|
|
87
41
|
*/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/** @docs-private */
|
|
91
|
-
export declare function MAT_ICON_LOCATION_FACTORY(): MatIconLocation;
|
|
92
|
-
|
|
42
|
+
declare function MAT_ICON_LOCATION_FACTORY(): MatIconLocation;
|
|
93
43
|
/**
|
|
94
44
|
* Component to display an icon. It can be used in the following ways:
|
|
95
45
|
*
|
|
@@ -122,7 +72,7 @@ export declare function MAT_ICON_LOCATION_FACTORY(): MatIconLocation;
|
|
|
122
72
|
* Example:
|
|
123
73
|
* `<mat-icon fontSet="fa" fontIcon="alarm"></mat-icon>`
|
|
124
74
|
*/
|
|
125
|
-
|
|
75
|
+
declare class MatIcon implements OnInit, AfterViewChecked, OnDestroy {
|
|
126
76
|
readonly _elementRef: ElementRef<HTMLElement>;
|
|
127
77
|
private _iconRegistry;
|
|
128
78
|
private _location;
|
|
@@ -211,34 +161,53 @@ export declare class MatIcon implements OnInit, AfterViewChecked, OnDestroy {
|
|
|
211
161
|
static ngAcceptInputType_inline: unknown;
|
|
212
162
|
}
|
|
213
163
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
* has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/icon/styling.
|
|
219
|
-
*
|
|
220
|
-
* For information on applying color variants in M3, see
|
|
221
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
222
|
-
*/
|
|
223
|
-
color?: ThemePalette;
|
|
224
|
-
/** Font set that the icon is a part of. */
|
|
225
|
-
fontSet?: string;
|
|
164
|
+
declare class MatIconModule {
|
|
165
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconModule, never>;
|
|
166
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatIconModule, never, [typeof i1.MatCommonModule, typeof MatIcon], [typeof MatIcon, typeof i1.MatCommonModule]>;
|
|
167
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatIconModule>;
|
|
226
168
|
}
|
|
227
169
|
|
|
228
170
|
/**
|
|
229
|
-
*
|
|
171
|
+
* Returns an exception to be thrown in the case when attempting to
|
|
172
|
+
* load an icon with a name that cannot be found.
|
|
230
173
|
* @docs-private
|
|
231
174
|
*/
|
|
232
|
-
|
|
233
|
-
|
|
175
|
+
declare function getMatIconNameNotFoundError(iconName: string): Error;
|
|
176
|
+
/**
|
|
177
|
+
* Returns an exception to be thrown when the consumer attempts to use
|
|
178
|
+
* `<mat-icon>` without including @angular/common/http.
|
|
179
|
+
* @docs-private
|
|
180
|
+
*/
|
|
181
|
+
declare function getMatIconNoHttpProviderError(): Error;
|
|
182
|
+
/**
|
|
183
|
+
* Returns an exception to be thrown when a URL couldn't be sanitized.
|
|
184
|
+
* @param url URL that was attempted to be sanitized.
|
|
185
|
+
* @docs-private
|
|
186
|
+
*/
|
|
187
|
+
declare function getMatIconFailedToSanitizeUrlError(url: SafeResourceUrl): Error;
|
|
188
|
+
/**
|
|
189
|
+
* Returns an exception to be thrown when a HTML string couldn't be sanitized.
|
|
190
|
+
* @param literal HTML that was attempted to be sanitized.
|
|
191
|
+
* @docs-private
|
|
192
|
+
*/
|
|
193
|
+
declare function getMatIconFailedToSanitizeLiteralError(literal: SafeHtml): Error;
|
|
194
|
+
/** Options that can be used to configure how an icon or the icons in an icon set are presented. */
|
|
195
|
+
interface IconOptions {
|
|
196
|
+
/** View box to set on the icon. */
|
|
197
|
+
viewBox?: string;
|
|
198
|
+
/** Whether or not to fetch the icon or icon set using HTTP credentials. */
|
|
199
|
+
withCredentials?: boolean;
|
|
234
200
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
201
|
+
/**
|
|
202
|
+
* Function that will be invoked by the icon registry when trying to resolve the
|
|
203
|
+
* URL from which to fetch an icon. The returned URL will be used to make a request for the icon.
|
|
204
|
+
*/
|
|
205
|
+
type IconResolver = (name: string, namespace: string) => SafeResourceUrl | SafeResourceUrlWithIconOptions | null;
|
|
206
|
+
/** Object that specifies a URL from which to fetch an icon and the options to use for it. */
|
|
207
|
+
interface SafeResourceUrlWithIconOptions {
|
|
208
|
+
url: SafeResourceUrl;
|
|
209
|
+
options: IconOptions;
|
|
240
210
|
}
|
|
241
|
-
|
|
242
211
|
/**
|
|
243
212
|
* Service to register and display icons used by the `<mat-icon>` component.
|
|
244
213
|
* - Registers icon URLs by namespace and name.
|
|
@@ -246,7 +215,7 @@ export declare class MatIconModule {
|
|
|
246
215
|
* - Registers aliases for CSS classes, for use with icon fonts.
|
|
247
216
|
* - Loads icons from URLs and extracts individual icons from icon sets.
|
|
248
217
|
*/
|
|
249
|
-
|
|
218
|
+
declare class MatIconRegistry implements OnDestroy {
|
|
250
219
|
private _httpClient;
|
|
251
220
|
private _sanitizer;
|
|
252
221
|
private readonly _errorHandler;
|
|
@@ -460,11 +429,21 @@ export declare class MatIconRegistry implements OnDestroy {
|
|
|
460
429
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconRegistry, [{ optional: true; }, null, { optional: true; }, null]>;
|
|
461
430
|
static ɵprov: i0.ɵɵInjectableDeclaration<MatIconRegistry>;
|
|
462
431
|
}
|
|
432
|
+
/**
|
|
433
|
+
* @docs-private
|
|
434
|
+
* @deprecated No longer used, will be removed.
|
|
435
|
+
* @breaking-change 21.0.0
|
|
436
|
+
*/
|
|
437
|
+
declare function ICON_REGISTRY_PROVIDER_FACTORY(parentRegistry: MatIconRegistry, httpClient: HttpClient, sanitizer: DomSanitizer, errorHandler: ErrorHandler, document?: any): MatIconRegistry;
|
|
438
|
+
/**
|
|
439
|
+
* @docs-private
|
|
440
|
+
* @deprecated No longer used, will be removed.
|
|
441
|
+
* @breaking-change 21.0.0
|
|
442
|
+
*/
|
|
443
|
+
declare const ICON_REGISTRY_PROVIDER: {
|
|
444
|
+
provide: typeof MatIconRegistry;
|
|
445
|
+
deps: (Optional[] | typeof DomSanitizer | typeof ErrorHandler)[];
|
|
446
|
+
useFactory: typeof ICON_REGISTRY_PROVIDER_FACTORY;
|
|
447
|
+
};
|
|
463
448
|
|
|
464
|
-
|
|
465
|
-
export declare interface SafeResourceUrlWithIconOptions {
|
|
466
|
-
url: SafeResourceUrl;
|
|
467
|
-
options: IconOptions;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
export { }
|
|
449
|
+
export { ICON_REGISTRY_PROVIDER, ICON_REGISTRY_PROVIDER_FACTORY, type IconOptions, type IconResolver, MAT_ICON_DEFAULT_OPTIONS, MAT_ICON_LOCATION, MAT_ICON_LOCATION_FACTORY, MatIcon, type MatIconDefaultOptions, type MatIconLocation, MatIconModule, MatIconRegistry, type SafeResourceUrlWithIconOptions, getMatIconFailedToSanitizeLiteralError, getMatIconFailedToSanitizeUrlError, getMatIconNameNotFoundError, getMatIconNoHttpProviderError };
|
package/icon/testing/index.d.ts
CHANGED
|
@@ -1,39 +1,16 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
3
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
4
2
|
import * as i0 from '@angular/core';
|
|
3
|
+
import { OnDestroy } from '@angular/core';
|
|
5
4
|
import { MatIconRegistry } from '@angular/material/icon';
|
|
6
5
|
import { Observable } from 'rxjs';
|
|
7
|
-
import { OnDestroy } from '@angular/core';
|
|
8
6
|
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare class FakeMatIconRegistry implements PublicApi<MatIconRegistry>, OnDestroy {
|
|
14
|
-
addSvgIcon(): this;
|
|
15
|
-
addSvgIconLiteral(): this;
|
|
16
|
-
addSvgIconInNamespace(): this;
|
|
17
|
-
addSvgIconLiteralInNamespace(): this;
|
|
18
|
-
addSvgIconSet(): this;
|
|
19
|
-
addSvgIconSetLiteral(): this;
|
|
20
|
-
addSvgIconSetInNamespace(): this;
|
|
21
|
-
addSvgIconSetLiteralInNamespace(): this;
|
|
22
|
-
registerFontClassAlias(): this;
|
|
23
|
-
classNameForFontAlias(alias: string): string;
|
|
24
|
-
getDefaultFontSetClass(): string[];
|
|
25
|
-
getSvgIconFromUrl(): Observable<SVGElement>;
|
|
26
|
-
getNamedSvgIcon(): Observable<SVGElement>;
|
|
27
|
-
setDefaultFontSetClass(): this;
|
|
28
|
-
addSvgIconResolver(): this;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
private _generateEmptySvg;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FakeMatIconRegistry, never>;
|
|
32
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FakeMatIconRegistry>;
|
|
7
|
+
/** Possible types of icons. */
|
|
8
|
+
declare enum IconType {
|
|
9
|
+
SVG = 0,
|
|
10
|
+
FONT = 1
|
|
33
11
|
}
|
|
34
|
-
|
|
35
12
|
/** A set of criteria that can be used to filter a list of `MatIconHarness` instances. */
|
|
36
|
-
|
|
13
|
+
interface IconHarnessFilters extends BaseHarnessFilters {
|
|
37
14
|
/** Filters based on the typef of the icon. */
|
|
38
15
|
type?: IconType;
|
|
39
16
|
/** Filters based on the name of the icon. */
|
|
@@ -42,14 +19,8 @@ export declare interface IconHarnessFilters extends BaseHarnessFilters {
|
|
|
42
19
|
namespace?: string | null | RegExp;
|
|
43
20
|
}
|
|
44
21
|
|
|
45
|
-
/** Possible types of icons. */
|
|
46
|
-
export declare enum IconType {
|
|
47
|
-
SVG = 0,
|
|
48
|
-
FONT = 1
|
|
49
|
-
}
|
|
50
|
-
|
|
51
22
|
/** Harness for interacting with a standard mat-icon in tests. */
|
|
52
|
-
|
|
23
|
+
declare class MatIconHarness extends ComponentHarness {
|
|
53
24
|
/** The selector for the host element of a `MatIcon` instance. */
|
|
54
25
|
static hostSelector: string;
|
|
55
26
|
/**
|
|
@@ -69,15 +40,39 @@ export declare class MatIconHarness extends ComponentHarness {
|
|
|
69
40
|
isInline(): Promise<boolean>;
|
|
70
41
|
}
|
|
71
42
|
|
|
43
|
+
type PublicApi<T> = {
|
|
44
|
+
[K in keyof T]: T[K] extends (...x: any[]) => T ? (...x: any[]) => PublicApi<T> : T[K];
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* A null icon registry that must be imported to allow disabling of custom
|
|
48
|
+
* icons.
|
|
49
|
+
*/
|
|
50
|
+
declare class FakeMatIconRegistry implements PublicApi<MatIconRegistry>, OnDestroy {
|
|
51
|
+
addSvgIcon(): this;
|
|
52
|
+
addSvgIconLiteral(): this;
|
|
53
|
+
addSvgIconInNamespace(): this;
|
|
54
|
+
addSvgIconLiteralInNamespace(): this;
|
|
55
|
+
addSvgIconSet(): this;
|
|
56
|
+
addSvgIconSetLiteral(): this;
|
|
57
|
+
addSvgIconSetInNamespace(): this;
|
|
58
|
+
addSvgIconSetLiteralInNamespace(): this;
|
|
59
|
+
registerFontClassAlias(): this;
|
|
60
|
+
classNameForFontAlias(alias: string): string;
|
|
61
|
+
getDefaultFontSetClass(): string[];
|
|
62
|
+
getSvgIconFromUrl(): Observable<SVGElement>;
|
|
63
|
+
getNamedSvgIcon(): Observable<SVGElement>;
|
|
64
|
+
setDefaultFontSetClass(): this;
|
|
65
|
+
addSvgIconResolver(): this;
|
|
66
|
+
ngOnDestroy(): void;
|
|
67
|
+
private _generateEmptySvg;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FakeMatIconRegistry, never>;
|
|
69
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FakeMatIconRegistry>;
|
|
70
|
+
}
|
|
72
71
|
/** Import this module in tests to install the null icon registry. */
|
|
73
|
-
|
|
72
|
+
declare class MatIconTestingModule {
|
|
74
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconTestingModule, never>;
|
|
75
74
|
static ɵmod: i0.ɵɵNgModuleDeclaration<MatIconTestingModule, never, never, never>;
|
|
76
75
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatIconTestingModule>;
|
|
77
76
|
}
|
|
78
77
|
|
|
79
|
-
|
|
80
|
-
[K in keyof T]: T[K] extends (...x: any[]) => T ? (...x: any[]) => PublicApi<T> : T[K];
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export { }
|
|
78
|
+
export { FakeMatIconRegistry, type IconHarnessFilters, IconType, MatIconHarness, MatIconTestingModule };
|
package/index.d.ts
CHANGED
package/input/index.d.ts
CHANGED
|
@@ -1,59 +1,24 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
-
import {
|
|
4
|
-
import { ElementRef } from '@angular/core';
|
|
5
|
-
import { ErrorStateMatcher } from '@angular/material/core';
|
|
2
|
+
import { Platform } from '@angular/cdk/platform';
|
|
6
3
|
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, OnChanges, OnDestroy, AfterViewInit, DoCheck, ElementRef, WritableSignal } from '@angular/core';
|
|
5
|
+
import { NgControl } from '@angular/forms';
|
|
7
6
|
import * as i1 from '@angular/material/core';
|
|
7
|
+
import { ErrorStateMatcher } from '@angular/material/core';
|
|
8
8
|
import * as i2 from '@angular/material/form-field';
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import { MatError } from '@angular/material/form-field';
|
|
12
|
-
import { MatFormField } from '@angular/material/form-field';
|
|
13
|
-
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
14
|
-
import { MatHint } from '@angular/material/form-field';
|
|
15
|
-
import { MatLabel } from '@angular/material/form-field';
|
|
16
|
-
import { MatPrefix } from '@angular/material/form-field';
|
|
17
|
-
import { MatSuffix } from '@angular/material/form-field';
|
|
18
|
-
import { NgControl } from '@angular/forms';
|
|
19
|
-
import { OnChanges } from '@angular/core';
|
|
20
|
-
import { OnDestroy } from '@angular/core';
|
|
21
|
-
import { Platform } from '@angular/cdk/platform';
|
|
9
|
+
import { MatFormFieldControl, MatFormField } from '@angular/material/form-field';
|
|
10
|
+
export { MatError, MatFormField, MatHint, MatLabel, MatPrefix, MatSuffix } from '@angular/material/form-field';
|
|
22
11
|
import { Subject } from 'rxjs';
|
|
23
|
-
import
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/** @docs-private */
|
|
27
|
-
export declare function getMatInputUnsupportedTypeError(type: string): Error;
|
|
12
|
+
import * as i4 from '@angular/cdk/text-field';
|
|
28
13
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
MatInput
|
|
34
|
-
}
|
|
14
|
+
/** Object that can be used to configure the default options for the input. */
|
|
15
|
+
interface MatInputConfig {
|
|
16
|
+
/** Whether disabled inputs should be interactive. */
|
|
17
|
+
disabledInteractive?: boolean;
|
|
35
18
|
}
|
|
36
|
-
|
|
37
19
|
/** Injection token that can be used to provide the default options for the input. */
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* This token is used to inject the object whose value should be set into `MatInput`. If none is
|
|
42
|
-
* provided, the native `HTMLInputElement` is used. Directives like `MatDatepickerInput` can provide
|
|
43
|
-
* themselves for this token, in order to make `MatInput` delegate the getting and setting of the
|
|
44
|
-
* value to them.
|
|
45
|
-
*/
|
|
46
|
-
export declare const MAT_INPUT_VALUE_ACCESSOR: InjectionToken<{
|
|
47
|
-
value: any | WritableSignal<any>;
|
|
48
|
-
}>;
|
|
49
|
-
|
|
50
|
-
export { MatError }
|
|
51
|
-
|
|
52
|
-
export { MatFormField }
|
|
53
|
-
|
|
54
|
-
export { MatHint }
|
|
55
|
-
|
|
56
|
-
export declare class MatInput implements MatFormFieldControl<any>, OnChanges, OnDestroy, AfterViewInit, DoCheck {
|
|
20
|
+
declare const MAT_INPUT_CONFIG: InjectionToken<MatInputConfig>;
|
|
21
|
+
declare class MatInput implements MatFormFieldControl<any>, OnChanges, OnDestroy, AfterViewInit, DoCheck {
|
|
57
22
|
protected _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
|
|
58
23
|
protected _platform: Platform;
|
|
59
24
|
ngControl: NgControl;
|
|
@@ -224,22 +189,23 @@ export declare class MatInput implements MatFormFieldControl<any>, OnChanges, On
|
|
|
224
189
|
static ngAcceptInputType_disabledInteractive: unknown;
|
|
225
190
|
}
|
|
226
191
|
|
|
227
|
-
|
|
228
|
-
export declare interface MatInputConfig {
|
|
229
|
-
/** Whether disabled inputs should be interactive. */
|
|
230
|
-
disabledInteractive?: boolean;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export declare class MatInputModule {
|
|
192
|
+
declare class MatInputModule {
|
|
234
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatInputModule, never>;
|
|
235
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatInputModule, never, [typeof i1.MatCommonModule, typeof i2.MatFormFieldModule, typeof
|
|
194
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatInputModule, never, [typeof i1.MatCommonModule, typeof i2.MatFormFieldModule, typeof MatInput], [typeof MatInput, typeof i2.MatFormFieldModule, typeof i4.TextFieldModule, typeof i1.MatCommonModule]>;
|
|
236
195
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatInputModule>;
|
|
237
196
|
}
|
|
238
197
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
198
|
+
/**
|
|
199
|
+
* This token is used to inject the object whose value should be set into `MatInput`. If none is
|
|
200
|
+
* provided, the native `HTMLInputElement` is used. Directives like `MatDatepickerInput` can provide
|
|
201
|
+
* themselves for this token, in order to make `MatInput` delegate the getting and setting of the
|
|
202
|
+
* value to them.
|
|
203
|
+
*/
|
|
204
|
+
declare const MAT_INPUT_VALUE_ACCESSOR: InjectionToken<{
|
|
205
|
+
value: any | WritableSignal<any>;
|
|
206
|
+
}>;
|
|
242
207
|
|
|
243
|
-
|
|
208
|
+
/** @docs-private */
|
|
209
|
+
declare function getMatInputUnsupportedTypeError(type: string): Error;
|
|
244
210
|
|
|
245
|
-
export { }
|
|
211
|
+
export { MAT_INPUT_CONFIG, MAT_INPUT_VALUE_ACCESSOR, MatInput, type MatInputConfig, MatInputModule, getMatInputUnsupportedTypeError };
|
package/input/testing/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
3
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import { BaseHarnessFilters, HarnessPredicate, ComponentHarness } from '@angular/cdk/testing';
|
|
4
2
|
import { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control';
|
|
5
3
|
|
|
6
4
|
/** A set of criteria that can be used to filter a list of `MatInputHarness` instances. */
|
|
7
|
-
|
|
5
|
+
interface InputHarnessFilters extends BaseHarnessFilters {
|
|
8
6
|
/** Filters based on the value of the input. */
|
|
9
7
|
value?: string | RegExp;
|
|
10
8
|
/** Filters based on the placeholder text of the input. */
|
|
@@ -12,7 +10,7 @@ export declare interface InputHarnessFilters extends BaseHarnessFilters {
|
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
/** Harness for interacting with a standard Material inputs in tests. */
|
|
15
|
-
|
|
13
|
+
declare class MatInputHarness extends MatFormFieldControlHarness {
|
|
16
14
|
static hostSelector: string;
|
|
17
15
|
/**
|
|
18
16
|
* Gets a `HarnessPredicate` that can be used to search for a `MatInputHarness` that meets
|
|
@@ -59,8 +57,18 @@ export declare class MatInputHarness extends MatFormFieldControlHarness {
|
|
|
59
57
|
setValue(newValue: string): Promise<void>;
|
|
60
58
|
}
|
|
61
59
|
|
|
60
|
+
/** A set of criteria that can be used to filter a list of `MatNativeSelectHarness` instances. */
|
|
61
|
+
interface NativeSelectHarnessFilters extends BaseHarnessFilters {
|
|
62
|
+
}
|
|
63
|
+
/** A set of criteria that can be used to filter a list of `MatNativeOptionHarness` instances. */
|
|
64
|
+
interface NativeOptionHarnessFilters extends BaseHarnessFilters {
|
|
65
|
+
text?: string | RegExp;
|
|
66
|
+
index?: number;
|
|
67
|
+
isSelected?: boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
62
70
|
/** Harness for interacting with a native `option` in tests. */
|
|
63
|
-
|
|
71
|
+
declare class MatNativeOptionHarness extends ComponentHarness {
|
|
64
72
|
/** Selector used to locate option instances. */
|
|
65
73
|
static hostSelector: string;
|
|
66
74
|
/**
|
|
@@ -81,7 +89,7 @@ export declare class MatNativeOptionHarness extends ComponentHarness {
|
|
|
81
89
|
}
|
|
82
90
|
|
|
83
91
|
/** Harness for interacting with a native `select` in tests. */
|
|
84
|
-
|
|
92
|
+
declare class MatNativeSelectHarness extends MatFormFieldControlHarness {
|
|
85
93
|
static hostSelector: string;
|
|
86
94
|
/**
|
|
87
95
|
* Gets a `HarnessPredicate` that can be used to search for a `MatNativeSelectHarness` that meets
|
|
@@ -115,15 +123,4 @@ export declare class MatNativeSelectHarness extends MatFormFieldControlHarness {
|
|
|
115
123
|
selectOptions(filter?: NativeOptionHarnessFilters): Promise<void>;
|
|
116
124
|
}
|
|
117
125
|
|
|
118
|
-
|
|
119
|
-
export declare interface NativeOptionHarnessFilters extends BaseHarnessFilters {
|
|
120
|
-
text?: string | RegExp;
|
|
121
|
-
index?: number;
|
|
122
|
-
isSelected?: boolean;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** A set of criteria that can be used to filter a list of `MatNativeSelectHarness` instances. */
|
|
126
|
-
export declare interface NativeSelectHarnessFilters extends BaseHarnessFilters {
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export { }
|
|
126
|
+
export { type InputHarnessFilters, MatInputHarness, MatNativeOptionHarness, MatNativeSelectHarness, type NativeOptionHarnessFilters, type NativeSelectHarnessFilters };
|