@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.
Files changed (194) hide show
  1. package/autocomplete/index.d.ts +83 -124
  2. package/autocomplete/testing/index.d.ts +5 -11
  3. package/badge/index.d.ts +17 -30
  4. package/badge/testing/index.d.ts +5 -8
  5. package/bottom-sheet/index.d.ts +88 -103
  6. package/bottom-sheet/testing/index.d.ts +4 -6
  7. package/button/index.d.ts +109 -148
  8. package/button/testing/index.d.ts +6 -10
  9. package/button-toggle/index.d.ts +116 -142
  10. package/button-toggle/testing/index.d.ts +34 -36
  11. package/card/index.d.ts +79 -117
  12. package/card/testing/index.d.ts +11 -15
  13. package/checkbox/index.d.ts +55 -85
  14. package/checkbox/testing/index.d.ts +6 -10
  15. package/chips/index.d.ts +592 -690
  16. package/chips/testing/index.d.ts +78 -93
  17. package/core/index.d.ts +565 -669
  18. package/core/testing/index.d.ts +28 -32
  19. package/datepicker/index.d.ts +1323 -1479
  20. package/datepicker/testing/index.d.ts +109 -119
  21. package/dialog/index.d.ts +194 -246
  22. package/dialog/testing/index.d.ts +17 -26
  23. package/divider/index.d.ts +4 -10
  24. package/divider/testing/index.d.ts +4 -6
  25. package/expansion/index.d.ts +137 -189
  26. package/expansion/testing/index.d.ts +25 -31
  27. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  28. package/fesm2022/autocomplete.mjs +26 -17
  29. package/fesm2022/autocomplete.mjs.map +1 -1
  30. package/fesm2022/badge/testing.mjs.map +1 -1
  31. package/fesm2022/badge.mjs +3 -7
  32. package/fesm2022/badge.mjs.map +1 -1
  33. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  34. package/fesm2022/bottom-sheet.mjs +0 -4
  35. package/fesm2022/bottom-sheet.mjs.map +1 -1
  36. package/fesm2022/button/testing.mjs.map +1 -1
  37. package/fesm2022/button-toggle/testing.mjs.map +1 -1
  38. package/fesm2022/button-toggle.mjs +5 -4
  39. package/fesm2022/button-toggle.mjs.map +1 -1
  40. package/fesm2022/button.mjs +6 -6
  41. package/fesm2022/button.mjs.map +1 -1
  42. package/fesm2022/card/testing.mjs.map +1 -1
  43. package/fesm2022/card.mjs +0 -4
  44. package/fesm2022/card.mjs.map +1 -1
  45. package/fesm2022/checkbox/testing.mjs.map +1 -1
  46. package/fesm2022/checkbox.mjs +5 -5
  47. package/fesm2022/checkbox.mjs.map +1 -1
  48. package/fesm2022/chips/testing.mjs.map +1 -1
  49. package/fesm2022/chips.mjs +0 -4
  50. package/fesm2022/chips.mjs.map +1 -1
  51. package/fesm2022/core/testing.mjs.map +1 -1
  52. package/fesm2022/core.mjs +7 -7
  53. package/fesm2022/core.mjs.map +1 -1
  54. package/fesm2022/datepicker/testing.mjs.map +1 -1
  55. package/fesm2022/datepicker.mjs +42 -18
  56. package/fesm2022/datepicker.mjs.map +1 -1
  57. package/fesm2022/dialog/testing.mjs.map +1 -1
  58. package/fesm2022/dialog.mjs +4 -8
  59. package/fesm2022/dialog.mjs.map +1 -1
  60. package/fesm2022/divider/testing.mjs.map +1 -1
  61. package/fesm2022/divider.mjs +0 -4
  62. package/fesm2022/divider.mjs.map +1 -1
  63. package/fesm2022/expansion/testing.mjs.map +1 -1
  64. package/fesm2022/expansion.mjs +2 -6
  65. package/fesm2022/expansion.mjs.map +1 -1
  66. package/fesm2022/form-field/testing.mjs +0 -2
  67. package/fesm2022/form-field/testing.mjs.map +1 -1
  68. package/fesm2022/form-field.mjs +0 -4
  69. package/fesm2022/form-field.mjs.map +1 -1
  70. package/fesm2022/grid-list/testing.mjs.map +1 -1
  71. package/fesm2022/grid-list.mjs +0 -4
  72. package/fesm2022/grid-list.mjs.map +1 -1
  73. package/fesm2022/icon/testing.mjs +0 -4
  74. package/fesm2022/icon/testing.mjs.map +1 -1
  75. package/fesm2022/icon.mjs +15 -7
  76. package/fesm2022/icon.mjs.map +1 -1
  77. package/fesm2022/input/testing.mjs.map +1 -1
  78. package/fesm2022/input.mjs +0 -4
  79. package/fesm2022/input.mjs.map +1 -1
  80. package/fesm2022/list/testing.mjs +1 -1
  81. package/fesm2022/list/testing.mjs.map +1 -1
  82. package/fesm2022/list.mjs +2 -6
  83. package/fesm2022/list.mjs.map +1 -1
  84. package/fesm2022/menu/testing.mjs.map +1 -1
  85. package/fesm2022/menu.mjs +15 -7
  86. package/fesm2022/menu.mjs.map +1 -1
  87. package/fesm2022/paginator/testing.mjs.map +1 -1
  88. package/fesm2022/paginator.mjs +10 -6
  89. package/fesm2022/paginator.mjs.map +1 -1
  90. package/fesm2022/progress-bar/testing.mjs +0 -4
  91. package/fesm2022/progress-bar/testing.mjs.map +1 -1
  92. package/fesm2022/progress-bar.mjs +5 -5
  93. package/fesm2022/progress-bar.mjs.map +1 -1
  94. package/fesm2022/progress-spinner/testing.mjs +0 -4
  95. package/fesm2022/progress-spinner/testing.mjs.map +1 -1
  96. package/fesm2022/progress-spinner.mjs +5 -5
  97. package/fesm2022/progress-spinner.mjs.map +1 -1
  98. package/fesm2022/radio/testing.mjs.map +1 -1
  99. package/fesm2022/radio.mjs +5 -4
  100. package/fesm2022/radio.mjs.map +1 -1
  101. package/fesm2022/select/testing.mjs.map +1 -1
  102. package/fesm2022/select.mjs +14 -10
  103. package/fesm2022/select.mjs.map +1 -1
  104. package/fesm2022/sidenav/testing.mjs +1 -1
  105. package/fesm2022/sidenav/testing.mjs.map +1 -1
  106. package/fesm2022/sidenav.mjs +9 -9
  107. package/fesm2022/sidenav.mjs.map +1 -1
  108. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  109. package/fesm2022/slide-toggle.mjs +0 -4
  110. package/fesm2022/slide-toggle.mjs.map +1 -1
  111. package/fesm2022/slider/testing.mjs.map +1 -1
  112. package/fesm2022/slider.mjs +0 -4
  113. package/fesm2022/slider.mjs.map +1 -1
  114. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  115. package/fesm2022/snack-bar.mjs +5 -5
  116. package/fesm2022/snack-bar.mjs.map +1 -1
  117. package/fesm2022/sort/testing.mjs.map +1 -1
  118. package/fesm2022/sort.mjs +10 -6
  119. package/fesm2022/sort.mjs.map +1 -1
  120. package/fesm2022/stepper/testing.mjs.map +1 -1
  121. package/fesm2022/stepper.mjs +10 -6
  122. package/fesm2022/stepper.mjs.map +1 -1
  123. package/fesm2022/table/testing.mjs.map +1 -1
  124. package/fesm2022/table.mjs +0 -4
  125. package/fesm2022/table.mjs.map +1 -1
  126. package/fesm2022/tabs/testing.mjs.map +1 -1
  127. package/fesm2022/tabs.mjs +8 -15
  128. package/fesm2022/tabs.mjs.map +1 -1
  129. package/fesm2022/timepicker/testing.mjs.map +1 -1
  130. package/fesm2022/timepicker.mjs +1 -5
  131. package/fesm2022/timepicker.mjs.map +1 -1
  132. package/fesm2022/toolbar/testing.mjs.map +1 -1
  133. package/fesm2022/toolbar.mjs +0 -4
  134. package/fesm2022/toolbar.mjs.map +1 -1
  135. package/fesm2022/tooltip/testing.mjs.map +1 -1
  136. package/fesm2022/tooltip.mjs +15 -7
  137. package/fesm2022/tooltip.mjs.map +1 -1
  138. package/fesm2022/tree/testing.mjs.map +1 -1
  139. package/fesm2022/tree.mjs +0 -4
  140. package/fesm2022/tree.mjs.map +1 -1
  141. package/form-field/index.d.ts +251 -318
  142. package/form-field/testing/control/index.d.ts +2 -2
  143. package/form-field/testing/index.d.ts +14 -21
  144. package/grid-list/index.d.ts +124 -150
  145. package/grid-list/testing/index.d.ts +39 -44
  146. package/icon/index.d.ts +87 -108
  147. package/icon/testing/index.d.ts +38 -43
  148. package/index.d.ts +2 -3
  149. package/input/index.d.ts +27 -61
  150. package/input/testing/index.d.ts +16 -19
  151. package/list/index.d.ts +158 -241
  152. package/list/testing/index.d.ts +157 -179
  153. package/menu/index.d.ts +180 -231
  154. package/menu/testing/index.d.ts +17 -23
  155. package/package.json +2 -2
  156. package/paginator/index.d.ts +84 -97
  157. package/paginator/testing/index.d.ts +10 -14
  158. package/progress-bar/index.d.ts +38 -58
  159. package/progress-bar/testing/index.d.ts +7 -10
  160. package/progress-spinner/index.d.ts +38 -51
  161. package/progress-spinner/testing/index.d.ts +7 -10
  162. package/radio/index.d.ts +145 -168
  163. package/radio/testing/index.d.ts +61 -67
  164. package/schematics/ng-add/index.js +1 -1
  165. package/schematics/ng-add/index.mjs +1 -1
  166. package/schematics/ng-generate/theme-color/index_bundled.js +2 -2
  167. package/schematics/ng-generate/theme-color/schema.json +10 -0
  168. package/schematics/ng-update/index_bundled.js +31 -31
  169. package/select/index.d.ts +77 -130
  170. package/select/testing/index.d.ts +10 -15
  171. package/sidenav/index.d.ts +47 -91
  172. package/sidenav/testing/index.d.ts +58 -63
  173. package/slide-toggle/index.d.ts +51 -84
  174. package/slide-toggle/testing/index.d.ts +17 -21
  175. package/slider/index.d.ts +277 -327
  176. package/slider/testing/index.d.ts +42 -47
  177. package/snack-bar/index.d.ts +147 -185
  178. package/snack-bar/testing/index.d.ts +7 -9
  179. package/sort/index.d.ts +94 -124
  180. package/sort/testing/index.d.ts +21 -24
  181. package/stepper/index.d.ts +108 -165
  182. package/stepper/testing/index.d.ts +43 -52
  183. package/table/index.d.ts +87 -153
  184. package/table/testing/index.d.ts +64 -78
  185. package/tabs/index.d.ts +306 -382
  186. package/tabs/testing/index.d.ts +67 -76
  187. package/timepicker/index.d.ts +123 -159
  188. package/timepicker/testing/index.d.ts +20 -26
  189. package/toolbar/index.d.ts +13 -25
  190. package/toolbar/testing/index.d.ts +13 -16
  191. package/tooltip/index.d.ts +88 -117
  192. package/tooltip/testing/index.d.ts +7 -10
  193. package/tree/index.d.ts +116 -163
  194. 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
- * Returns an exception to be thrown when a HTML string couldn't be sanitized.
19
- * @param literal HTML that was attempted to be sanitized.
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
- export declare function getMatIconNameNotFoundError(iconName: string): Error;
37
-
29
+ declare const MAT_ICON_LOCATION: InjectionToken<MatIconLocation>;
38
30
  /**
39
- * Returns an exception to be thrown when the consumer attempts to use
40
- * `<mat-icon>` without including @angular/common/http.
31
+ * Stubbed out location for `MatIcon`.
41
32
  * @docs-private
42
33
  */
43
- export declare function getMatIconNoHttpProviderError(): Error;
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
- export declare const MAT_ICON_LOCATION: InjectionToken<MatIconLocation>;
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
- export declare class MatIcon implements OnInit, AfterViewChecked, OnDestroy {
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
- /** Default options for `mat-icon`. */
215
- export declare interface MatIconDefaultOptions {
216
- /**
217
- * Theme color of the icon. This API is supported in M2 themes only, it
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
- * Stubbed out location for `MatIcon`.
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
- export declare interface MatIconLocation {
233
- getPathname: () => string;
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
- export declare class MatIconModule {
237
- static ɵfac: i0.ɵɵFactoryDeclaration<MatIconModule, never>;
238
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatIconModule, never, [typeof i1.MatCommonModule, typeof i2.MatIcon], [typeof i2.MatIcon, typeof i1.MatCommonModule]>;
239
- static ɵinj: i0.ɵɵInjectorDeclaration<MatIconModule>;
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
- export declare class MatIconRegistry implements OnDestroy {
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
- /** Object that specifies a URL from which to fetch an icon and the options to use for it. */
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 };
@@ -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
- * A null icon registry that must be imported to allow disabling of custom
11
- * icons.
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
- export declare interface IconHarnessFilters extends BaseHarnessFilters {
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
- export declare class MatIconHarness extends ComponentHarness {
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
- export declare class MatIconTestingModule {
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
- declare type PublicApi<T> = {
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
@@ -1,4 +1,3 @@
1
+ declare const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;
1
2
 
2
- export declare const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;
3
-
4
- export { }
3
+ export { ɵɵtsModuleIndicatorApiExtractorWorkaround };
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 { DoCheck } from '@angular/core';
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 * as i4 from '@angular/cdk/text-field';
10
- import { InjectionToken } from '@angular/core';
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 { WritableSignal } from '@angular/core';
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
- declare namespace i3 {
30
- export {
31
- MatInputConfig,
32
- MAT_INPUT_CONFIG,
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
- export declare const MAT_INPUT_CONFIG: InjectionToken<MatInputConfig>;
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
- /** Object that can be used to configure the default options for the input. */
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 i3.MatInput], [typeof i3.MatInput, typeof i2.MatFormFieldModule, typeof i4.TextFieldModule, typeof i1.MatCommonModule]>;
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
- export { MatLabel }
240
-
241
- export { MatPrefix }
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
- export { MatSuffix }
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 };
@@ -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
- export declare interface InputHarnessFilters extends BaseHarnessFilters {
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
- export declare class MatInputHarness extends MatFormFieldControlHarness {
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
- export declare class MatNativeOptionHarness extends ComponentHarness {
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
- export declare class MatNativeSelectHarness extends MatFormFieldControlHarness {
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
- /** A set of criteria that can be used to filter a list of `MatNativeOptionHarness` instances. */
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 };