@angular/material 19.2.1 → 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 (197) 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 -104
  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 +39 -30
  29. package/fesm2022/autocomplete.mjs.map +1 -1
  30. package/fesm2022/badge/testing.mjs.map +1 -1
  31. package/fesm2022/badge.mjs +13 -17
  32. package/fesm2022/badge.mjs.map +1 -1
  33. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  34. package/fesm2022/bottom-sheet.mjs +11 -22
  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 +15 -14
  39. package/fesm2022/button-toggle.mjs.map +1 -1
  40. package/fesm2022/button.mjs +40 -40
  41. package/fesm2022/button.mjs.map +1 -1
  42. package/fesm2022/card/testing.mjs.map +1 -1
  43. package/fesm2022/card.mjs +46 -50
  44. package/fesm2022/card.mjs.map +1 -1
  45. package/fesm2022/checkbox/testing.mjs.map +1 -1
  46. package/fesm2022/checkbox.mjs +19 -19
  47. package/fesm2022/checkbox.mjs.map +1 -1
  48. package/fesm2022/chips/testing.mjs.map +1 -1
  49. package/fesm2022/chips.mjs +41 -47
  50. package/fesm2022/chips.mjs.map +1 -1
  51. package/fesm2022/core/testing.mjs.map +1 -1
  52. package/fesm2022/core.mjs +71 -71
  53. package/fesm2022/core.mjs.map +1 -1
  54. package/fesm2022/datepicker/testing.mjs.map +1 -1
  55. package/fesm2022/datepicker.mjs +124 -100
  56. package/fesm2022/datepicker.mjs.map +1 -1
  57. package/fesm2022/dialog/testing.mjs.map +1 -1
  58. package/fesm2022/dialog.mjs +29 -33
  59. package/fesm2022/dialog.mjs.map +1 -1
  60. package/fesm2022/divider/testing.mjs.map +1 -1
  61. package/fesm2022/divider.mjs +7 -11
  62. package/fesm2022/divider.mjs.map +1 -1
  63. package/fesm2022/expansion/testing.mjs.map +1 -1
  64. package/fesm2022/expansion.mjs +27 -31
  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 +34 -38
  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 +22 -26
  72. package/fesm2022/grid-list.mjs.map +1 -1
  73. package/fesm2022/icon/testing.mjs +7 -11
  74. package/fesm2022/icon/testing.mjs.map +1 -1
  75. package/fesm2022/icon.mjs +25 -17
  76. package/fesm2022/icon.mjs.map +1 -1
  77. package/fesm2022/input/testing.mjs.map +1 -1
  78. package/fesm2022/input.mjs +7 -11
  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 +51 -55
  83. package/fesm2022/list.mjs.map +1 -1
  84. package/fesm2022/menu/testing.mjs.map +1 -1
  85. package/fesm2022/menu.mjs +31 -23
  86. package/fesm2022/menu.mjs.map +1 -1
  87. package/fesm2022/paginator/testing.mjs.map +1 -1
  88. package/fesm2022/paginator.mjs +20 -16
  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 +12 -12
  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 +12 -12
  97. package/fesm2022/progress-spinner.mjs.map +1 -1
  98. package/fesm2022/radio/testing.mjs.map +1 -1
  99. package/fesm2022/radio.mjs +15 -14
  100. package/fesm2022/radio.mjs.map +1 -1
  101. package/fesm2022/select/testing.mjs.map +1 -1
  102. package/fesm2022/select.mjs +24 -20
  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 +31 -31
  107. package/fesm2022/sidenav.mjs.map +1 -1
  108. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  109. package/fesm2022/slide-toggle.mjs +14 -18
  110. package/fesm2022/slide-toggle.mjs.map +1 -1
  111. package/fesm2022/slider/testing.mjs.map +1 -1
  112. package/fesm2022/slider.mjs +16 -20
  113. package/fesm2022/slider.mjs.map +1 -1
  114. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  115. package/fesm2022/snack-bar.mjs +27 -27
  116. package/fesm2022/snack-bar.mjs.map +1 -1
  117. package/fesm2022/sort/testing.mjs.map +1 -1
  118. package/fesm2022/sort.mjs +24 -20
  119. package/fesm2022/sort.mjs.map +1 -1
  120. package/fesm2022/stepper/testing.mjs.map +1 -1
  121. package/fesm2022/stepper.mjs +41 -37
  122. package/fesm2022/stepper.mjs.map +1 -1
  123. package/fesm2022/table/testing.mjs.map +1 -1
  124. package/fesm2022/table.mjs +55 -59
  125. package/fesm2022/table.mjs.map +1 -1
  126. package/fesm2022/tabs/testing.mjs.map +1 -1
  127. package/fesm2022/tabs.mjs +51 -58
  128. package/fesm2022/tabs.mjs.map +1 -1
  129. package/fesm2022/timepicker/testing.mjs.map +1 -1
  130. package/fesm2022/timepicker.mjs +15 -20
  131. package/fesm2022/timepicker.mjs.map +1 -1
  132. package/fesm2022/toolbar/testing.mjs.map +1 -1
  133. package/fesm2022/toolbar.mjs +10 -14
  134. package/fesm2022/toolbar.mjs.map +1 -1
  135. package/fesm2022/tooltip/testing.mjs.map +1 -1
  136. package/fesm2022/tooltip.mjs +25 -17
  137. package/fesm2022/tooltip.mjs.map +1 -1
  138. package/fesm2022/tree/testing.mjs.map +1 -1
  139. package/fesm2022/tree.mjs +25 -29
  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 +159 -242
  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/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +6 -9
  167. package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +6 -9
  168. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +6 -9
  169. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +6 -9
  170. package/schematics/ng-generate/theme-color/schema.json +10 -0
  171. package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +1 -1
  172. package/select/index.d.ts +77 -130
  173. package/select/testing/index.d.ts +10 -15
  174. package/sidenav/index.d.ts +47 -91
  175. package/sidenav/testing/index.d.ts +58 -63
  176. package/slide-toggle/index.d.ts +51 -84
  177. package/slide-toggle/testing/index.d.ts +17 -21
  178. package/slider/index.d.ts +277 -327
  179. package/slider/testing/index.d.ts +42 -47
  180. package/snack-bar/index.d.ts +147 -185
  181. package/snack-bar/testing/index.d.ts +7 -9
  182. package/sort/index.d.ts +94 -124
  183. package/sort/testing/index.d.ts +21 -24
  184. package/stepper/index.d.ts +108 -165
  185. package/stepper/testing/index.d.ts +43 -52
  186. package/table/index.d.ts +87 -153
  187. package/table/testing/index.d.ts +64 -78
  188. package/tabs/index.d.ts +306 -382
  189. package/tabs/testing/index.d.ts +67 -76
  190. package/timepicker/index.d.ts +123 -159
  191. package/timepicker/testing/index.d.ts +20 -26
  192. package/toolbar/index.d.ts +13 -25
  193. package/toolbar/testing/index.d.ts +13 -16
  194. package/tooltip/index.d.ts +88 -117
  195. package/tooltip/testing/index.d.ts +7 -10
  196. package/tree/index.d.ts +116 -163
  197. package/tree/testing/index.d.ts +52 -58
@@ -1,88 +1,60 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, AfterContentInit, OnDestroy, TemplateRef, ElementRef, QueryList, EventEmitter, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
3
+ import * as i2 from '@angular/cdk/overlay';
4
+ import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
5
+ import * as i1 from '@angular/material/core';
6
+ import { MatOption, ThemePalette, MatOptgroup, MatOptionSelectionChange } from '@angular/material/core';
7
+ export { MatOptgroup, MatOption } from '@angular/material/core';
1
8
  import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
2
- import { AfterContentInit } from '@angular/core';
3
- import { AfterViewInit } from '@angular/core';
4
9
  import { ControlValueAccessor } from '@angular/forms';
5
- import { ElementRef } from '@angular/core';
6
- import { EventEmitter } from '@angular/core';
7
- import * as i0 from '@angular/core';
8
- import * as i1 from '@angular/cdk/overlay';
9
- import * as i2 from '@angular/material/core';
10
- import * as i6 from '@angular/cdk/scrolling';
11
- import { InjectionToken } from '@angular/core';
12
- import { MatOptgroup } from '@angular/material/core';
13
- import { MatOption } from '@angular/material/core';
14
- import { MatOptionSelectionChange } from '@angular/material/core';
15
10
  import { Observable } from 'rxjs';
16
- import { OnChanges } from '@angular/core';
17
- import { OnDestroy } from '@angular/core';
18
- import { Overlay } from '@angular/cdk/overlay';
19
- import { QueryList } from '@angular/core';
20
- import { ScrollStrategy } from '@angular/cdk/overlay';
21
- import { SimpleChanges } from '@angular/core';
22
- import { TemplateRef } from '@angular/core';
23
- import { ThemePalette } from '@angular/material/core';
24
-
25
- /**
26
- * Creates an error to be thrown when attempting to use an autocomplete trigger without a panel.
27
- * @docs-private
28
- */
29
- export declare function getMatAutocompleteMissingPanelError(): Error;
11
+ import * as i2$1 from '@angular/cdk/scrolling';
30
12
 
31
- declare namespace i3 {
32
- export {
33
- MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY,
34
- MatAutocompleteSelectedEvent,
35
- MatAutocompleteActivatedEvent,
36
- MatAutocompleteDefaultOptions,
37
- MAT_AUTOCOMPLETE_DEFAULT_OPTIONS,
38
- MatAutocomplete
39
- }
13
+ /** Event object that is emitted when an autocomplete option is selected. */
14
+ declare class MatAutocompleteSelectedEvent {
15
+ /** Reference to the autocomplete panel that emitted the event. */
16
+ source: MatAutocomplete;
17
+ /** Option that was selected. */
18
+ option: MatOption;
19
+ constructor(
20
+ /** Reference to the autocomplete panel that emitted the event. */
21
+ source: MatAutocomplete,
22
+ /** Option that was selected. */
23
+ option: MatOption);
40
24
  }
41
-
42
- declare namespace i4 {
43
- export {
44
- getMatAutocompleteMissingPanelError,
45
- MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY,
46
- MAT_AUTOCOMPLETE_VALUE_ACCESSOR,
47
- MAT_AUTOCOMPLETE_SCROLL_STRATEGY,
48
- MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER,
49
- MatAutocompleteTrigger
50
- }
25
+ /** Event object that is emitted when an autocomplete option is activated. */
26
+ interface MatAutocompleteActivatedEvent {
27
+ /** Reference to the autocomplete panel that emitted the event. */
28
+ source: MatAutocomplete;
29
+ /** Option that was selected. */
30
+ option: MatOption | null;
51
31
  }
52
-
53
- declare namespace i5 {
54
- export {
55
- MatAutocompleteOrigin
56
- }
32
+ /** Default `mat-autocomplete` options that can be overridden. */
33
+ interface MatAutocompleteDefaultOptions {
34
+ /** Whether the first option should be highlighted when an autocomplete panel is opened. */
35
+ autoActiveFirstOption?: boolean;
36
+ /** Whether the active option should be selected as the user is navigating. */
37
+ autoSelectActiveOption?: boolean;
38
+ /**
39
+ * Whether the user is required to make a selection when
40
+ * they're interacting with the autocomplete.
41
+ */
42
+ requireSelection?: boolean;
43
+ /** Class or list of classes to be applied to the autocomplete's overlay panel. */
44
+ overlayPanelClass?: string | string[];
45
+ /** Whether icon indicators should be hidden for single-selection. */
46
+ hideSingleSelectionIndicator?: boolean;
57
47
  }
58
-
59
48
  /** Injection token to be used to override the default options for `mat-autocomplete`. */
60
- export declare const MAT_AUTOCOMPLETE_DEFAULT_OPTIONS: InjectionToken<MatAutocompleteDefaultOptions>;
61
-
62
- /** @docs-private */
63
- export declare function MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY(): MatAutocompleteDefaultOptions;
64
-
65
- /** Injection token that determines the scroll handling while the autocomplete panel is open. */
66
- export declare const MAT_AUTOCOMPLETE_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
67
-
68
- /** @docs-private */
69
- export declare function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy;
70
-
71
- /** @docs-private */
72
- export declare const MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER: {
73
- provide: InjectionToken<() => ScrollStrategy>;
74
- deps: (typeof Overlay)[];
75
- useFactory: typeof MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY;
76
- };
77
-
49
+ declare const MAT_AUTOCOMPLETE_DEFAULT_OPTIONS: InjectionToken<MatAutocompleteDefaultOptions>;
78
50
  /**
79
- * Provider that allows the autocomplete to register as a ControlValueAccessor.
80
51
  * @docs-private
52
+ * @deprecated No longer used, will be removed.
53
+ * @breaking-change 21.0.0
81
54
  */
82
- export declare const MAT_AUTOCOMPLETE_VALUE_ACCESSOR: any;
83
-
55
+ declare function MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY(): MatAutocompleteDefaultOptions;
84
56
  /** Autocomplete component. */
85
- export declare class MatAutocomplete implements AfterContentInit, OnDestroy {
57
+ declare class MatAutocomplete implements AfterContentInit, OnDestroy {
86
58
  private _changeDetectorRef;
87
59
  private _elementRef;
88
60
  protected _defaults: MatAutocompleteDefaultOptions;
@@ -189,63 +161,47 @@ export declare class MatAutocomplete implements AfterContentInit, OnDestroy {
189
161
  static ngAcceptInputType_hideSingleSelectionIndicator: unknown;
190
162
  }
191
163
 
192
- /** Event object that is emitted when an autocomplete option is activated. */
193
- export declare interface MatAutocompleteActivatedEvent {
194
- /** Reference to the autocomplete panel that emitted the event. */
195
- source: MatAutocomplete;
196
- /** Option that was selected. */
197
- option: MatOption | null;
198
- }
199
-
200
- /** Default `mat-autocomplete` options that can be overridden. */
201
- export declare interface MatAutocompleteDefaultOptions {
202
- /** Whether the first option should be highlighted when an autocomplete panel is opened. */
203
- autoActiveFirstOption?: boolean;
204
- /** Whether the active option should be selected as the user is navigating. */
205
- autoSelectActiveOption?: boolean;
206
- /**
207
- * Whether the user is required to make a selection when
208
- * they're interacting with the autocomplete.
209
- */
210
- requireSelection?: boolean;
211
- /** Class or list of classes to be applied to the autocomplete's overlay panel. */
212
- overlayPanelClass?: string | string[];
213
- /** Whether icon indicators should be hidden for single-selection. */
214
- hideSingleSelectionIndicator?: boolean;
215
- }
216
-
217
- export declare class MatAutocompleteModule {
218
- static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteModule, never>;
219
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatAutocompleteModule, never, [typeof i1.OverlayModule, typeof i2.MatOptionModule, typeof i2.MatCommonModule, typeof i3.MatAutocomplete, typeof i4.MatAutocompleteTrigger, typeof i5.MatAutocompleteOrigin], [typeof i6.CdkScrollableModule, typeof i3.MatAutocomplete, typeof i2.MatOptionModule, typeof i2.MatCommonModule, typeof i4.MatAutocompleteTrigger, typeof i5.MatAutocompleteOrigin]>;
220
- static ɵinj: i0.ɵɵInjectorDeclaration<MatAutocompleteModule>;
221
- }
222
-
223
164
  /**
224
165
  * Directive applied to an element to make it usable
225
166
  * as a connection point for an autocomplete panel.
226
167
  */
227
- export declare class MatAutocompleteOrigin {
168
+ declare class MatAutocompleteOrigin {
228
169
  elementRef: ElementRef<HTMLElement>;
229
170
  constructor(...args: unknown[]);
230
171
  static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteOrigin, never>;
231
172
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatAutocompleteOrigin, "[matAutocompleteOrigin]", ["matAutocompleteOrigin"], {}, {}, never, never, true, never>;
232
173
  }
233
174
 
234
- /** Event object that is emitted when an autocomplete option is selected. */
235
- export declare class MatAutocompleteSelectedEvent {
236
- /** Reference to the autocomplete panel that emitted the event. */
237
- source: MatAutocomplete;
238
- /** Option that was selected. */
239
- option: MatOption;
240
- constructor(
241
- /** Reference to the autocomplete panel that emitted the event. */
242
- source: MatAutocomplete,
243
- /** Option that was selected. */
244
- option: MatOption);
245
- }
246
-
175
+ /**
176
+ * Provider that allows the autocomplete to register as a ControlValueAccessor.
177
+ * @docs-private
178
+ */
179
+ declare const MAT_AUTOCOMPLETE_VALUE_ACCESSOR: any;
180
+ /**
181
+ * Creates an error to be thrown when attempting to use an autocomplete trigger without a panel.
182
+ * @docs-private
183
+ */
184
+ declare function getMatAutocompleteMissingPanelError(): Error;
185
+ /** Injection token that determines the scroll handling while the autocomplete panel is open. */
186
+ declare const MAT_AUTOCOMPLETE_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
187
+ /**
188
+ * @docs-private
189
+ * @deprecated No longer used, will be removed.
190
+ * @breaking-change 21.0.0
191
+ */
192
+ declare function MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy;
193
+ /**
194
+ * @docs-private
195
+ * @deprecated No longer used, will be removed.
196
+ * @breaking-change 21.0.0
197
+ */
198
+ declare const MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER: {
199
+ provide: InjectionToken<() => ScrollStrategy>;
200
+ deps: (typeof Overlay)[];
201
+ useFactory: typeof MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY;
202
+ };
247
203
  /** Base class with all of the `MatAutocompleteTrigger` functionality. */
248
- export declare class MatAutocompleteTrigger implements ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy {
204
+ declare class MatAutocompleteTrigger implements ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy {
249
205
  private _environmentInjector;
250
206
  private _element;
251
207
  private _overlay;
@@ -254,7 +210,6 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
254
210
  private _changeDetectorRef;
255
211
  private _dir;
256
212
  private _formField;
257
- private _document;
258
213
  private _viewportRuler;
259
214
  private _scrollStrategy;
260
215
  private _renderer;
@@ -369,6 +324,8 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
369
324
  _handleInput(event: KeyboardEvent): void;
370
325
  _handleFocus(): void;
371
326
  _handleClick(): void;
327
+ /** Whether the input currently has focus. */
328
+ private _hasFocus;
372
329
  /**
373
330
  * In "auto" mode, the label will animate down as soon as focus is lost.
374
331
  * This causes the value to jump when selecting an option with the mouse.
@@ -463,8 +420,10 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
463
420
  static ngAcceptInputType_autocompleteDisabled: unknown;
464
421
  }
465
422
 
466
- export { MatOptgroup }
467
-
468
- export { MatOption }
423
+ declare class MatAutocompleteModule {
424
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteModule, never>;
425
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatAutocompleteModule, never, [typeof i2.OverlayModule, typeof i1.MatOptionModule, typeof i1.MatCommonModule, typeof MatAutocomplete, typeof MatAutocompleteTrigger, typeof MatAutocompleteOrigin], [typeof i2$1.CdkScrollableModule, typeof MatAutocomplete, typeof i1.MatOptionModule, typeof i1.MatCommonModule, typeof MatAutocompleteTrigger, typeof MatAutocompleteOrigin]>;
426
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatAutocompleteModule>;
427
+ }
469
428
 
470
- export { }
429
+ export { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY, MAT_AUTOCOMPLETE_SCROLL_STRATEGY, MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY, MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_AUTOCOMPLETE_VALUE_ACCESSOR, MatAutocomplete, type MatAutocompleteActivatedEvent, type MatAutocompleteDefaultOptions, MatAutocompleteModule, MatAutocompleteOrigin, MatAutocompleteSelectedEvent, MatAutocompleteTrigger, getMatAutocompleteMissingPanelError };
@@ -1,21 +1,15 @@
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';
5
- import { MatOptgroupHarness } from '@angular/material/core/testing';
6
- import { MatOptionHarness } from '@angular/material/core/testing';
7
- import { OptgroupHarnessFilters } from '@angular/material/core/testing';
8
- import { OptionHarnessFilters } from '@angular/material/core/testing';
1
+ import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
2
+ import { OptionHarnessFilters, MatOptionHarness, OptgroupHarnessFilters, MatOptgroupHarness } from '@angular/material/core/testing';
9
3
 
10
4
  /** A set of criteria that can be used to filter a list of `MatAutocompleteHarness` instances. */
11
- export declare interface AutocompleteHarnessFilters extends BaseHarnessFilters {
5
+ interface AutocompleteHarnessFilters extends BaseHarnessFilters {
12
6
  /** Only find instances whose associated input element matches the given value. */
13
7
  value?: string | RegExp;
14
8
  /** Only find instances which match the given disabled state. */
15
9
  disabled?: boolean;
16
10
  }
17
11
 
18
- export declare class MatAutocompleteHarness extends ComponentHarness {
12
+ declare class MatAutocompleteHarness extends ComponentHarness {
19
13
  private _documentRootLocator;
20
14
  /** The selector for the host element of a `MatAutocomplete` instance. */
21
15
  static hostSelector: string;
@@ -54,4 +48,4 @@ export declare class MatAutocompleteHarness extends ComponentHarness {
54
48
  protected _getPanelSelector(): Promise<string>;
55
49
  }
56
50
 
57
- export { }
51
+ export { type AutocompleteHarnessFilters, MatAutocompleteHarness };
package/badge/index.d.ts CHANGED
@@ -1,21 +1,23 @@
1
1
  import * as i0 from '@angular/core';
2
+ import { OnInit, OnDestroy } from '@angular/core';
2
3
  import * as i1 from '@angular/cdk/a11y';
3
- import * as i2 from '@angular/material/core';
4
- import { OnDestroy } from '@angular/core';
5
- import { OnInit } from '@angular/core';
4
+ import * as i1$1 from '@angular/material/core';
6
5
  import { ThemePalette } from '@angular/material/core';
7
6
 
8
- declare namespace i3 {
9
- export {
10
- MatBadgePosition,
11
- MatBadgeSize,
12
- _MatBadgeStyleLoader,
13
- MatBadge
14
- }
7
+ /** Allowed position options for matBadgePosition */
8
+ type MatBadgePosition = 'above after' | 'above before' | 'below before' | 'below after' | 'before' | 'after' | 'above' | 'below';
9
+ /** Allowed size options for matBadgeSize */
10
+ type MatBadgeSize = 'small' | 'medium' | 'large';
11
+ /**
12
+ * Component used to load the structural styles of the badge.
13
+ * @docs-private
14
+ */
15
+ declare class _MatBadgeStyleLoader {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<_MatBadgeStyleLoader, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<_MatBadgeStyleLoader, "ng-component", never, {}, {}, never, never, true, never>;
15
18
  }
16
-
17
19
  /** Directive to display a text badge. */
18
- export declare class MatBadge implements OnInit, OnDestroy {
20
+ declare class MatBadge implements OnInit, OnDestroy {
19
21
  private _ngZone;
20
22
  private _elementRef;
21
23
  private _ariaDescriber;
@@ -95,25 +97,10 @@ export declare class MatBadge implements OnInit, OnDestroy {
95
97
  static ngAcceptInputType_hidden: unknown;
96
98
  }
97
99
 
98
- export declare class MatBadgeModule {
100
+ declare class MatBadgeModule {
99
101
  static ɵfac: i0.ɵɵFactoryDeclaration<MatBadgeModule, never>;
100
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatBadgeModule, never, [typeof i1.A11yModule, typeof i2.MatCommonModule, typeof i3.MatBadge, typeof i3._MatBadgeStyleLoader], [typeof i3.MatBadge, typeof i2.MatCommonModule]>;
102
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatBadgeModule, never, [typeof i1.A11yModule, typeof i1$1.MatCommonModule, typeof MatBadge, typeof _MatBadgeStyleLoader], [typeof MatBadge, typeof i1$1.MatCommonModule]>;
101
103
  static ɵinj: i0.ɵɵInjectorDeclaration<MatBadgeModule>;
102
104
  }
103
105
 
104
- /** Allowed position options for matBadgePosition */
105
- export declare type MatBadgePosition = 'above after' | 'above before' | 'below before' | 'below after' | 'before' | 'after' | 'above' | 'below';
106
-
107
- /** Allowed size options for matBadgeSize */
108
- export declare type MatBadgeSize = 'small' | 'medium' | 'large';
109
-
110
- /**
111
- * Component used to load the structural styles of the badge.
112
- * @docs-private
113
- */
114
- declare class _MatBadgeStyleLoader {
115
- static ɵfac: i0.ɵɵFactoryDeclaration<_MatBadgeStyleLoader, never>;
116
- static ɵcmp: i0.ɵɵComponentDeclaration<_MatBadgeStyleLoader, "ng-component", never, {}, {}, never, never, true, never>;
117
- }
118
-
119
- export { }
106
+ export { MatBadge, MatBadgeModule, type MatBadgePosition, type MatBadgeSize };
@@ -1,15 +1,12 @@
1
- import { BaseHarnessFilters } from '@angular/cdk/testing';
2
- import { ComponentHarness } from '@angular/cdk/testing';
3
- import { HarnessPredicate } from '@angular/cdk/testing';
4
- import { MatBadgePosition } from '@angular/material/badge';
5
- import { MatBadgeSize } from '@angular/material/badge';
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
2
+ import { MatBadgePosition, MatBadgeSize } from '@angular/material/badge';
6
3
 
7
- export declare interface BadgeHarnessFilters extends BaseHarnessFilters {
4
+ interface BadgeHarnessFilters extends BaseHarnessFilters {
8
5
  text?: string | RegExp;
9
6
  }
10
7
 
11
8
  /** Harness for interacting with a standard Material badge in tests. */
12
- export declare class MatBadgeHarness extends ComponentHarness {
9
+ declare class MatBadgeHarness extends ComponentHarness {
13
10
  static hostSelector: string;
14
11
  /**
15
12
  * Gets a `HarnessPredicate` that can be used to search for a badge with specific attributes.
@@ -33,4 +30,4 @@ export declare class MatBadgeHarness extends ComponentHarness {
33
30
  isDisabled(): Promise<boolean>;
34
31
  }
35
32
 
36
- export { }
33
+ export { type BadgeHarnessFilters, MatBadgeHarness };
@@ -1,85 +1,56 @@
1
- import { CdkDialogContainer } from '@angular/cdk/dialog';
2
- import { ComponentRef } from '@angular/core';
3
- import { ComponentType } from '@angular/cdk/portal';
4
- import { DialogRef } from '@angular/cdk/dialog';
5
- import { Direction } from '@angular/cdk/bidi';
6
- import { EventEmitter } from '@angular/core';
7
1
  import * as i0 from '@angular/core';
2
+ import { OnDestroy, EventEmitter, InjectionToken, ViewContainerRef, ComponentRef, TemplateRef } from '@angular/core';
8
3
  import * as i1 from '@angular/cdk/dialog';
9
- import * as i2 from '@angular/material/core';
4
+ import { CdkDialogContainer, DialogRef } from '@angular/cdk/dialog';
5
+ import * as i1$1 from '@angular/material/core';
10
6
  import * as i3 from '@angular/cdk/portal';
11
- import { InjectionToken } from '@angular/core';
12
- import { Observable } from 'rxjs';
13
- import { OnDestroy } from '@angular/core';
7
+ import { ComponentType } from '@angular/cdk/portal';
8
+ import { Direction } from '@angular/cdk/bidi';
14
9
  import { ScrollStrategy } from '@angular/cdk/overlay';
15
- import { TemplateRef } from '@angular/core';
16
- import { ViewContainerRef } from '@angular/core';
17
-
18
- /** Options for where to set focus to automatically on dialog open */
19
- export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
20
-
21
- declare namespace i4 {
22
- export {
23
- MatBottomSheetContainer
24
- }
25
- }
26
-
27
- /** Injection token that can be used to access the data that was passed in to a bottom sheet. */
28
- export declare const MAT_BOTTOM_SHEET_DATA: InjectionToken<any>;
29
-
30
- /** Injection token that can be used to specify default bottom sheet options. */
31
- export declare const MAT_BOTTOM_SHEET_DEFAULT_OPTIONS: InjectionToken<MatBottomSheetConfig<any>>;
10
+ import { Observable } from 'rxjs';
32
11
 
33
12
  /**
34
- * Service to trigger Material Design bottom sheets.
13
+ * Internal component that wraps user-provided bottom sheet content.
14
+ * @docs-private
35
15
  */
36
- export declare class MatBottomSheet implements OnDestroy {
37
- private _overlay;
38
- private _parentBottomSheet;
39
- private _defaultOptions;
40
- private _bottomSheetRefAtThisLevel;
41
- private _dialog;
42
- /** Reference to the currently opened bottom sheet. */
43
- get _openedBottomSheetRef(): MatBottomSheetRef<any> | null;
44
- set _openedBottomSheetRef(value: MatBottomSheetRef<any> | null);
16
+ declare class MatBottomSheetContainer extends CdkDialogContainer implements OnDestroy {
17
+ private _breakpointSubscription;
18
+ protected _animationsDisabled: boolean;
19
+ /** The state of the bottom sheet animations. */
20
+ _animationState: 'void' | 'visible' | 'hidden';
21
+ /** Emits whenever the state of the animation changes. */
22
+ _animationStateChanged: EventEmitter<{
23
+ toState: "visible" | "hidden";
24
+ phase: "start" | "done";
25
+ }>;
26
+ /** Whether the component has been destroyed. */
27
+ private _destroyed;
45
28
  constructor(...args: unknown[]);
46
- /**
47
- * Opens a bottom sheet containing the given component.
48
- * @param component Type of the component to load into the bottom sheet.
49
- * @param config Extra configuration options.
50
- * @returns Reference to the newly-opened bottom sheet.
51
- */
52
- open<T, D = any, R = any>(component: ComponentType<T>, config?: MatBottomSheetConfig<D>): MatBottomSheetRef<T, R>;
53
- /**
54
- * Opens a bottom sheet containing the given template.
55
- * @param template TemplateRef to instantiate as the bottom sheet content.
56
- * @param config Extra configuration options.
57
- * @returns Reference to the newly-opened bottom sheet.
58
- */
59
- open<T, D = any, R = any>(template: TemplateRef<T>, config?: MatBottomSheetConfig<D>): MatBottomSheetRef<T, R>;
60
- /**
61
- * Dismisses the currently-visible bottom sheet.
62
- * @param result Data to pass to the bottom sheet instance.
63
- */
64
- dismiss<R = any>(result?: R): void;
29
+ /** Begin animation of bottom sheet entrance into view. */
30
+ enter(): void;
31
+ /** Begin animation of the bottom sheet exiting from view. */
32
+ exit(): void;
65
33
  ngOnDestroy(): void;
66
- static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheet, never>;
67
- static ɵprov: i0.ɵɵInjectableDeclaration<MatBottomSheet>;
34
+ private _simulateAnimation;
35
+ protected _handleAnimationEvent(isStart: boolean, animationName: string): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetContainer, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatBottomSheetContainer, "mat-bottom-sheet-container", never, {}, {}, never, never, true, never>;
68
38
  }
69
39
 
70
- /**
71
- * Animations used by the Material bottom sheet.
72
- * @deprecated No longer used. Will be removed.
73
- * @breaking-change 21.0.0
74
- */
75
- export declare const matBottomSheetAnimations: {
76
- readonly bottomSheetState: any;
77
- };
40
+ declare class MatBottomSheetModule {
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetModule, never>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatBottomSheetModule, never, [typeof i1.DialogModule, typeof i1$1.MatCommonModule, typeof i3.PortalModule, typeof MatBottomSheetContainer], [typeof MatBottomSheetContainer, typeof i1$1.MatCommonModule]>;
43
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatBottomSheetModule>;
44
+ }
78
45
 
46
+ /** Options for where to set focus to automatically on dialog open */
47
+ type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
48
+ /** Injection token that can be used to access the data that was passed in to a bottom sheet. */
49
+ declare const MAT_BOTTOM_SHEET_DATA: InjectionToken<any>;
79
50
  /**
80
51
  * Configuration used when opening a bottom sheet.
81
52
  */
82
- export declare class MatBottomSheetConfig<D = any> {
53
+ declare class MatBottomSheetConfig<D = any> {
83
54
  /** The view container to place the overlay for the bottom sheet into. */
84
55
  viewContainerRef?: ViewContainerRef;
85
56
  /** Extra CSS classes to be added to the bottom sheet container. */
@@ -129,45 +100,10 @@ export declare class MatBottomSheetConfig<D = any> {
129
100
  maxHeight?: number | string;
130
101
  }
131
102
 
132
- /**
133
- * Internal component that wraps user-provided bottom sheet content.
134
- * @docs-private
135
- */
136
- export declare class MatBottomSheetContainer extends CdkDialogContainer implements OnDestroy {
137
- private _breakpointSubscription;
138
- protected _animationsDisabled: boolean;
139
- /** The state of the bottom sheet animations. */
140
- _animationState: 'void' | 'visible' | 'hidden';
141
- /** Emits whenever the state of the animation changes. */
142
- _animationStateChanged: EventEmitter<{
143
- toState: "visible" | "hidden";
144
- phase: "start" | "done";
145
- }>;
146
- /** Whether the component has been destroyed. */
147
- private _destroyed;
148
- constructor(...args: unknown[]);
149
- /** Begin animation of bottom sheet entrance into view. */
150
- enter(): void;
151
- /** Begin animation of the bottom sheet exiting from view. */
152
- exit(): void;
153
- ngOnDestroy(): void;
154
- private _simulateAnimation;
155
- protected _handleAnimationEvent(isStart: boolean, animationName: string): void;
156
- protected _captureInitialFocus(): void;
157
- static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetContainer, never>;
158
- static ɵcmp: i0.ɵɵComponentDeclaration<MatBottomSheetContainer, "mat-bottom-sheet-container", never, {}, {}, never, never, true, never>;
159
- }
160
-
161
- export declare class MatBottomSheetModule {
162
- static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheetModule, never>;
163
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatBottomSheetModule, never, [typeof i1.DialogModule, typeof i2.MatCommonModule, typeof i3.PortalModule, typeof i4.MatBottomSheetContainer], [typeof i4.MatBottomSheetContainer, typeof i2.MatCommonModule]>;
164
- static ɵinj: i0.ɵɵInjectorDeclaration<MatBottomSheetModule>;
165
- }
166
-
167
103
  /**
168
104
  * Reference to a bottom sheet dispatched from the bottom sheet service.
169
105
  */
170
- export declare class MatBottomSheetRef<T = any, R = any> {
106
+ declare class MatBottomSheetRef<T = any, R = any> {
171
107
  private _ref;
172
108
  /** Instance of the component making up the content of the bottom sheet. */
173
109
  get instance(): T;
@@ -209,4 +145,52 @@ export declare class MatBottomSheetRef<T = any, R = any> {
209
145
  keydownEvents(): Observable<KeyboardEvent>;
210
146
  }
211
147
 
212
- export { }
148
+ /** Injection token that can be used to specify default bottom sheet options. */
149
+ declare const MAT_BOTTOM_SHEET_DEFAULT_OPTIONS: InjectionToken<MatBottomSheetConfig<any>>;
150
+ /**
151
+ * Service to trigger Material Design bottom sheets.
152
+ */
153
+ declare class MatBottomSheet implements OnDestroy {
154
+ private _overlay;
155
+ private _parentBottomSheet;
156
+ private _defaultOptions;
157
+ private _bottomSheetRefAtThisLevel;
158
+ private _dialog;
159
+ /** Reference to the currently opened bottom sheet. */
160
+ get _openedBottomSheetRef(): MatBottomSheetRef<any> | null;
161
+ set _openedBottomSheetRef(value: MatBottomSheetRef<any> | null);
162
+ constructor(...args: unknown[]);
163
+ /**
164
+ * Opens a bottom sheet containing the given component.
165
+ * @param component Type of the component to load into the bottom sheet.
166
+ * @param config Extra configuration options.
167
+ * @returns Reference to the newly-opened bottom sheet.
168
+ */
169
+ open<T, D = any, R = any>(component: ComponentType<T>, config?: MatBottomSheetConfig<D>): MatBottomSheetRef<T, R>;
170
+ /**
171
+ * Opens a bottom sheet containing the given template.
172
+ * @param template TemplateRef to instantiate as the bottom sheet content.
173
+ * @param config Extra configuration options.
174
+ * @returns Reference to the newly-opened bottom sheet.
175
+ */
176
+ open<T, D = any, R = any>(template: TemplateRef<T>, config?: MatBottomSheetConfig<D>): MatBottomSheetRef<T, R>;
177
+ /**
178
+ * Dismisses the currently-visible bottom sheet.
179
+ * @param result Data to pass to the bottom sheet instance.
180
+ */
181
+ dismiss<R = any>(result?: R): void;
182
+ ngOnDestroy(): void;
183
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatBottomSheet, never>;
184
+ static ɵprov: i0.ɵɵInjectableDeclaration<MatBottomSheet>;
185
+ }
186
+
187
+ /**
188
+ * Animations used by the Material bottom sheet.
189
+ * @deprecated No longer used. Will be removed.
190
+ * @breaking-change 21.0.0
191
+ */
192
+ declare const matBottomSheetAnimations: {
193
+ readonly bottomSheetState: any;
194
+ };
195
+
196
+ export { type AutoFocusTarget, MAT_BOTTOM_SHEET_DATA, MAT_BOTTOM_SHEET_DEFAULT_OPTIONS, MatBottomSheet, MatBottomSheetConfig, MatBottomSheetContainer, MatBottomSheetModule, MatBottomSheetRef, matBottomSheetAnimations };
@@ -1,12 +1,10 @@
1
- import { BaseHarnessFilters } from '@angular/cdk/testing';
2
- import { ContentContainerComponentHarness } from '@angular/cdk/testing';
3
- import { HarnessPredicate } from '@angular/cdk/testing';
1
+ import { BaseHarnessFilters, ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
4
2
 
5
- export declare interface BottomSheetHarnessFilters extends BaseHarnessFilters {
3
+ interface BottomSheetHarnessFilters extends BaseHarnessFilters {
6
4
  }
7
5
 
8
6
  /** Harness for interacting with a standard MatBottomSheet in tests. */
9
- export declare class MatBottomSheetHarness extends ContentContainerComponentHarness<string> {
7
+ declare class MatBottomSheetHarness extends ContentContainerComponentHarness<string> {
10
8
  static hostSelector: string;
11
9
  /**
12
10
  * Gets a `HarnessPredicate` that can be used to search for a bottom sheet with
@@ -24,4 +22,4 @@ export declare class MatBottomSheetHarness extends ContentContainerComponentHarn
24
22
  dismiss(): Promise<void>;
25
23
  }
26
24
 
27
- export { }
25
+ export { type BottomSheetHarnessFilters, MatBottomSheetHarness };