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