@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
package/sort/index.d.ts CHANGED
@@ -1,74 +1,39 @@
1
- import { AfterViewInit } from '@angular/core';
2
- import { EventEmitter } from '@angular/core';
3
1
  import * as i0 from '@angular/core';
2
+ import { InjectionToken, OnChanges, OnDestroy, OnInit, EventEmitter, Optional, AfterViewInit } from '@angular/core';
4
3
  import * as i1 from '@angular/material/core';
5
- import { InjectionToken } from '@angular/core';
6
- import { Observable } from 'rxjs';
7
- import { OnChanges } from '@angular/core';
8
- import { OnDestroy } from '@angular/core';
9
- import { OnInit } from '@angular/core';
10
- import { Optional } from '@angular/core';
11
- import { Subject } from 'rxjs';
12
- import { WritableSignal } from '@angular/core';
4
+ import { Subject, Observable } from 'rxjs';
13
5
 
14
- /**
15
- * Valid positions for the arrow to be in for its opacity and translation. If the state is a
16
- * sort direction, the position of the arrow will be above/below and opacity 0. If the state is
17
- * hint, the arrow will be in the center with a slight opacity. Active state means the arrow will
18
- * be fully opaque in the center.
19
- *
20
- * @docs-private
21
- * @deprecated No longer being used, to be removed.
22
- * @breaking-change 21.0.0
23
- */
24
- export declare type ArrowViewState = SortDirection | 'hint' | 'active';
6
+ type SortDirection = 'asc' | 'desc' | '';
25
7
 
26
- /**
27
- * States describing the arrow's animated position (animating fromState to toState).
28
- * If the fromState is not defined, there will be no animated transition to the toState.
29
- * @docs-private
30
- * @deprecated No longer being used, to be removed.
31
- * @breaking-change 21.0.0
32
- */
33
- export declare interface ArrowViewStateTransition {
34
- fromState?: ArrowViewState;
35
- toState?: ArrowViewState;
8
+ /** Position of the arrow that displays when sorted. */
9
+ type SortHeaderArrowPosition = 'before' | 'after';
10
+ /** Interface for a directive that holds sorting state consumed by `MatSortHeader`. */
11
+ interface MatSortable {
12
+ /** The id of the column being sorted. */
13
+ id: string;
14
+ /** Starting sort direction. */
15
+ start: SortDirection;
16
+ /** Whether to disable clearing the sorting state. */
17
+ disableClear: boolean;
36
18
  }
37
-
38
- declare namespace i2 {
39
- export {
40
- SortHeaderArrowPosition,
41
- MatSortable,
42
- Sort,
43
- MatSortDefaultOptions,
44
- MAT_SORT_DEFAULT_OPTIONS,
45
- MatSort
46
- }
19
+ /** The current sort state. */
20
+ interface Sort {
21
+ /** The id of the column being sorted. */
22
+ active: string;
23
+ /** The sort direction. */
24
+ direction: SortDirection;
47
25
  }
48
-
49
- declare namespace i3 {
50
- export {
51
- ArrowViewState,
52
- ArrowViewStateTransition,
53
- MatSortHeader
54
- }
26
+ /** Default options for `mat-sort`. */
27
+ interface MatSortDefaultOptions {
28
+ /** Whether to disable clearing the sorting state. */
29
+ disableClear?: boolean;
30
+ /** Position of the arrow that displays when sorted. */
31
+ arrowPosition?: SortHeaderArrowPosition;
55
32
  }
56
-
57
33
  /** Injection token to be used to override the default options for `mat-sort`. */
58
- export declare const MAT_SORT_DEFAULT_OPTIONS: InjectionToken<MatSortDefaultOptions>;
59
-
60
- /** @docs-private */
61
- export declare const MAT_SORT_HEADER_INTL_PROVIDER: {
62
- provide: typeof MatSortHeaderIntl;
63
- deps: Optional[][];
64
- useFactory: typeof MAT_SORT_HEADER_INTL_PROVIDER_FACTORY;
65
- };
66
-
67
- /** @docs-private */
68
- export declare function MAT_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl: MatSortHeaderIntl): MatSortHeaderIntl;
69
-
34
+ declare const MAT_SORT_DEFAULT_OPTIONS: InjectionToken<MatSortDefaultOptions>;
70
35
  /** Container for MatSortables to manage the sort state and provide default sort parameters. */
71
- export declare class MatSort implements OnChanges, OnDestroy, OnInit {
36
+ declare class MatSort implements OnChanges, OnDestroy, OnInit {
72
37
  private _defaultOptions?;
73
38
  private _initializedStream;
74
39
  /** Collection of all registered sortables that this directive manages. */
@@ -121,39 +86,62 @@ export declare class MatSort implements OnChanges, OnDestroy, OnInit {
121
86
  static ngAcceptInputType_disabled: unknown;
122
87
  }
123
88
 
124
- /** Interface for a directive that holds sorting state consumed by `MatSortHeader`. */
125
- export declare interface MatSortable {
126
- /** The id of the column being sorted. */
127
- id: string;
128
- /** Starting sort direction. */
129
- start: SortDirection;
130
- /** Whether to disable clearing the sorting state. */
131
- disableClear: boolean;
89
+ /**
90
+ * To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and
91
+ * include it in a custom provider.
92
+ */
93
+ declare class MatSortHeaderIntl {
94
+ /**
95
+ * Stream that emits whenever the labels here are changed. Use this to notify
96
+ * components if the labels have changed after initialization.
97
+ */
98
+ readonly changes: Subject<void>;
99
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatSortHeaderIntl, never>;
100
+ static ɵprov: i0.ɵɵInjectableDeclaration<MatSortHeaderIntl>;
132
101
  }
133
-
134
102
  /**
135
- * Animations used by MatSort.
136
103
  * @docs-private
137
- * @deprecated No longer being used, to be removed.
104
+ * @deprecated No longer used, will be removed.
138
105
  * @breaking-change 21.0.0
139
106
  */
140
- export declare const matSortAnimations: {
141
- readonly indicator: any;
142
- readonly leftPointer: any;
143
- readonly rightPointer: any;
144
- readonly arrowOpacity: any;
145
- readonly arrowPosition: any;
146
- readonly allowChildren: any;
107
+ declare function MAT_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl: MatSortHeaderIntl): MatSortHeaderIntl;
108
+ /**
109
+ * @docs-private
110
+ * @deprecated No longer used, will be removed.
111
+ * @breaking-change 21.0.0
112
+ */
113
+ declare const MAT_SORT_HEADER_INTL_PROVIDER: {
114
+ provide: typeof MatSortHeaderIntl;
115
+ deps: Optional[][];
116
+ useFactory: typeof MAT_SORT_HEADER_INTL_PROVIDER_FACTORY;
147
117
  };
148
118
 
149
- /** Default options for `mat-sort`. */
150
- export declare interface MatSortDefaultOptions {
151
- /** Whether to disable clearing the sorting state. */
152
- disableClear?: boolean;
153
- /** Position of the arrow that displays when sorted. */
154
- arrowPosition?: SortHeaderArrowPosition;
119
+ /**
120
+ * Valid positions for the arrow to be in for its opacity and translation. If the state is a
121
+ * sort direction, the position of the arrow will be above/below and opacity 0. If the state is
122
+ * hint, the arrow will be in the center with a slight opacity. Active state means the arrow will
123
+ * be fully opaque in the center.
124
+ *
125
+ * @docs-private
126
+ * @deprecated No longer being used, to be removed.
127
+ * @breaking-change 21.0.0
128
+ */
129
+ type ArrowViewState = SortDirection | 'hint' | 'active';
130
+ /**
131
+ * States describing the arrow's animated position (animating fromState to toState).
132
+ * If the fromState is not defined, there will be no animated transition to the toState.
133
+ * @docs-private
134
+ * @deprecated No longer being used, to be removed.
135
+ * @breaking-change 21.0.0
136
+ */
137
+ interface ArrowViewStateTransition {
138
+ fromState?: ArrowViewState;
139
+ toState?: ArrowViewState;
140
+ }
141
+ /** Column definition associated with a `MatSortHeader`. */
142
+ interface MatSortHeaderColumnDef {
143
+ name: string;
155
144
  }
156
-
157
145
  /**
158
146
  * Applies sorting behavior (click to change sort) and styles to an element, including an
159
147
  * arrow to display the current sort direction.
@@ -163,7 +151,7 @@ export declare interface MatSortDefaultOptions {
163
151
  * If used on header cells in a CdkTable, it will automatically default its id from its containing
164
152
  * column definition.
165
153
  */
166
- export declare class MatSortHeader implements MatSortable, OnDestroy, OnInit, AfterViewInit {
154
+ declare class MatSortHeader implements MatSortable, OnDestroy, OnInit, AfterViewInit {
167
155
  _intl: MatSortHeaderIntl;
168
156
  _sort: MatSort;
169
157
  _columnDef: MatSortHeaderColumnDef | null;
@@ -177,7 +165,7 @@ export declare class MatSortHeader implements MatSortable, OnDestroy, OnInit, Af
177
165
  * Indicates which state was just cleared from the sort header.
178
166
  * Will be reset on the next interaction. Used for coordinating animations.
179
167
  */
180
- protected _recentlyCleared: WritableSignal<SortDirection | null>;
168
+ protected _recentlyCleared: i0.WritableSignal<SortDirection | null>;
181
169
  /**
182
170
  * The element with role="button" inside this component's view. We need this
183
171
  * in order to apply a description with AriaDescriber.
@@ -229,43 +217,25 @@ export declare class MatSortHeader implements MatSortable, OnDestroy, OnInit, Af
229
217
  static ngAcceptInputType_disableClear: unknown;
230
218
  }
231
219
 
232
- /** Column definition associated with a `MatSortHeader`. */
233
- declare interface MatSortHeaderColumnDef {
234
- name: string;
235
- }
236
-
237
- /**
238
- * To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and
239
- * include it in a custom provider.
240
- */
241
- export declare class MatSortHeaderIntl {
242
- /**
243
- * Stream that emits whenever the labels here are changed. Use this to notify
244
- * components if the labels have changed after initialization.
245
- */
246
- readonly changes: Subject<void>;
247
- static ɵfac: i0.ɵɵFactoryDeclaration<MatSortHeaderIntl, never>;
248
- static ɵprov: i0.ɵɵInjectableDeclaration<MatSortHeaderIntl>;
249
- }
250
-
251
- export declare class MatSortModule {
220
+ declare class MatSortModule {
252
221
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSortModule, never>;
253
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatSortModule, never, [typeof i1.MatCommonModule, typeof i2.MatSort, typeof i3.MatSortHeader], [typeof i2.MatSort, typeof i3.MatSortHeader]>;
222
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatSortModule, never, [typeof i1.MatCommonModule, typeof MatSort, typeof MatSortHeader], [typeof MatSort, typeof MatSortHeader]>;
254
223
  static ɵinj: i0.ɵɵInjectorDeclaration<MatSortModule>;
255
224
  }
256
225
 
257
- /** The current sort state. */
258
- export declare interface Sort {
259
- /** The id of the column being sorted. */
260
- active: string;
261
- /** The sort direction. */
262
- direction: SortDirection;
263
- }
264
-
265
-
266
- export declare type SortDirection = 'asc' | 'desc' | '';
267
-
268
- /** Position of the arrow that displays when sorted. */
269
- export declare type SortHeaderArrowPosition = 'before' | 'after';
226
+ /**
227
+ * Animations used by MatSort.
228
+ * @docs-private
229
+ * @deprecated No longer being used, to be removed.
230
+ * @breaking-change 21.0.0
231
+ */
232
+ declare const matSortAnimations: {
233
+ readonly indicator: any;
234
+ readonly leftPointer: any;
235
+ readonly rightPointer: any;
236
+ readonly arrowOpacity: any;
237
+ readonly arrowPosition: any;
238
+ readonly allowChildren: any;
239
+ };
270
240
 
271
- export { }
241
+ export { type ArrowViewState, type ArrowViewStateTransition, MAT_SORT_DEFAULT_OPTIONS, MAT_SORT_HEADER_INTL_PROVIDER, MAT_SORT_HEADER_INTL_PROVIDER_FACTORY, MatSort, type MatSortDefaultOptions, MatSortHeader, MatSortHeaderIntl, MatSortModule, type MatSortable, type Sort, type SortDirection, type SortHeaderArrowPosition, matSortAnimations };
@@ -1,25 +1,15 @@
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 { SortDirection } from '@angular/material/sort';
5
3
 
6
- /** Harness for interacting with a standard `mat-sort` in tests. */
7
- export declare class MatSortHarness extends ComponentHarness {
8
- static hostSelector: string;
9
- /**
10
- * Gets a `HarnessPredicate` that can be used to search for a `mat-sort` with specific attributes.
11
- * @param options Options for narrowing the search.
12
- * @return a `HarnessPredicate` configured with the given options.
13
- */
14
- static with(options?: SortHarnessFilters): HarnessPredicate<MatSortHarness>;
15
- /** Gets all of the sort headers in the `mat-sort`. */
16
- getSortHeaders(filter?: SortHeaderHarnessFilters): Promise<MatSortHeaderHarness[]>;
17
- /** Gets the selected header in the `mat-sort`. */
18
- getActiveHeader(): Promise<MatSortHeaderHarness | null>;
4
+ interface SortHarnessFilters extends BaseHarnessFilters {
5
+ }
6
+ interface SortHeaderHarnessFilters extends BaseHarnessFilters {
7
+ label?: string | RegExp;
8
+ sortDirection?: SortDirection;
19
9
  }
20
10
 
21
11
  /** Harness for interacting with a standard Angular Material sort header in tests. */
22
- export declare class MatSortHeaderHarness extends ComponentHarness {
12
+ declare class MatSortHeaderHarness extends ComponentHarness {
23
13
  static hostSelector: string;
24
14
  private _container;
25
15
  /**
@@ -39,12 +29,19 @@ export declare class MatSortHeaderHarness extends ComponentHarness {
39
29
  click(): Promise<void>;
40
30
  }
41
31
 
42
- export declare interface SortHarnessFilters extends BaseHarnessFilters {
43
- }
44
-
45
- export declare interface SortHeaderHarnessFilters extends BaseHarnessFilters {
46
- label?: string | RegExp;
47
- sortDirection?: SortDirection;
32
+ /** Harness for interacting with a standard `mat-sort` in tests. */
33
+ declare class MatSortHarness extends ComponentHarness {
34
+ static hostSelector: string;
35
+ /**
36
+ * Gets a `HarnessPredicate` that can be used to search for a `mat-sort` with specific attributes.
37
+ * @param options Options for narrowing the search.
38
+ * @return a `HarnessPredicate` configured with the given options.
39
+ */
40
+ static with(options?: SortHarnessFilters): HarnessPredicate<MatSortHarness>;
41
+ /** Gets all of the sort headers in the `mat-sort`. */
42
+ getSortHeaders(filter?: SortHeaderHarnessFilters): Promise<MatSortHeaderHarness[]>;
43
+ /** Gets the selected header in the `mat-sort`. */
44
+ getActiveHeader(): Promise<MatSortHeaderHarness | null>;
48
45
  }
49
46
 
50
- export { }
47
+ export { MatSortHarness, MatSortHeaderHarness, type SortHarnessFilters, type SortHeaderHarnessFilters };
@@ -1,120 +1,77 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import { AfterContentInit } from '@angular/core';
3
- import { AfterViewInit } from '@angular/core';
4
- import { CdkStep } from '@angular/cdk/stepper';
5
- import { CdkStepHeader } from '@angular/cdk/stepper';
6
- import { CdkStepLabel } from '@angular/cdk/stepper';
7
- import { CdkStepper } from '@angular/cdk/stepper';
8
- import { CdkStepperNext } from '@angular/cdk/stepper';
9
- import { CdkStepperPrevious } from '@angular/cdk/stepper';
10
- import { ElementRef } from '@angular/core';
11
- import { ErrorStateMatcher } from '@angular/material/core';
12
- import { EventEmitter } from '@angular/core';
13
- import { FocusOrigin } from '@angular/cdk/a11y';
14
- import { FormGroupDirective } from '@angular/forms';
1
+ import * as i3$1 from '@angular/cdk/stepper';
2
+ import { CdkStepLabel, StepState, CdkStepHeader, CdkStep, CdkStepper, CdkStepperNext, CdkStepperPrevious } from '@angular/cdk/stepper';
3
+ export { StepState, StepperOrientation } from '@angular/cdk/stepper';
15
4
  import * as i0 from '@angular/core';
5
+ import { Optional, TemplateRef, AfterViewInit, OnDestroy, AfterContentInit, QueryList, ElementRef, EventEmitter } from '@angular/core';
16
6
  import * as i1 from '@angular/material/core';
17
- import * as i2 from '@angular/cdk/portal';
18
- import * as i3 from '@angular/cdk/stepper';
7
+ import { ThemePalette, ErrorStateMatcher } from '@angular/material/core';
8
+ import * as i3 from '@angular/cdk/portal';
9
+ import { TemplatePortal } from '@angular/cdk/portal';
19
10
  import * as i4 from '@angular/material/icon';
20
- import { NgForm } from '@angular/forms';
21
- import { OnDestroy } from '@angular/core';
22
- import { Optional } from '@angular/core';
23
- import { QueryList } from '@angular/core';
24
- import { StepperOrientation } from '@angular/cdk/stepper';
25
- import { StepState } from '@angular/cdk/stepper';
11
+ import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms';
12
+ import { FocusOrigin } from '@angular/cdk/a11y';
26
13
  import { Subject } from 'rxjs';
27
- import { TemplatePortal } from '@angular/cdk/portal';
28
- import { TemplateRef } from '@angular/core';
29
- import { ThemePalette } from '@angular/material/core';
30
- import { WritableSignal } from '@angular/core';
31
-
32
- declare namespace i10 {
33
- export {
34
- MatStepContent
35
- }
36
- }
37
-
38
- declare namespace i5 {
39
- export {
40
- MatStep,
41
- MatStepper
42
- }
43
- }
44
-
45
- declare namespace i6 {
46
- export {
47
- MatStepLabel
48
- }
49
- }
50
-
51
- declare namespace i7 {
52
- export {
53
- MatStepperNext,
54
- MatStepperPrevious
55
- }
56
- }
57
14
 
58
- declare namespace i8 {
59
- export {
60
- MatStepHeader
61
- }
15
+ declare class MatStepLabel extends CdkStepLabel {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatStepLabel, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepLabel, "[matStepLabel]", never, {}, {}, never, never, true, never>;
62
18
  }
63
19
 
64
- declare namespace i9 {
65
- export {
66
- MatStepperIconContext,
67
- MatStepperIcon
68
- }
20
+ /** Stepper data that is required for internationalization. */
21
+ declare class MatStepperIntl {
22
+ /**
23
+ * Stream that emits whenever the labels here are changed. Use this to notify
24
+ * components if the labels have changed after initialization.
25
+ */
26
+ readonly changes: Subject<void>;
27
+ /** Label that is rendered below optional steps. */
28
+ optionalLabel: string;
29
+ /** Label that is used to indicate step as completed to screen readers. */
30
+ completedLabel: string;
31
+ /** Label that is used to indicate step as editable to screen readers. */
32
+ editableLabel: string;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperIntl, never>;
34
+ static ɵprov: i0.ɵɵInjectableDeclaration<MatStepperIntl>;
69
35
  }
70
-
71
- /** @docs-private */
72
- export declare const MAT_STEPPER_INTL_PROVIDER: {
36
+ /**
37
+ * @docs-private
38
+ * @deprecated No longer used, will be removed.
39
+ * @breaking-change 21.0.0
40
+ */
41
+ declare function MAT_STEPPER_INTL_PROVIDER_FACTORY(parentIntl: MatStepperIntl): MatStepperIntl;
42
+ /**
43
+ * @docs-private
44
+ * @deprecated No longer used, will be removed.
45
+ * @breaking-change 21.0.0
46
+ */
47
+ declare const MAT_STEPPER_INTL_PROVIDER: {
73
48
  provide: typeof MatStepperIntl;
74
49
  deps: Optional[][];
75
50
  useFactory: typeof MAT_STEPPER_INTL_PROVIDER_FACTORY;
76
51
  };
77
52
 
78
- /** @docs-private */
79
- export declare function MAT_STEPPER_INTL_PROVIDER_FACTORY(parentIntl: MatStepperIntl): MatStepperIntl;
80
-
81
- export declare class MatStep extends CdkStep implements ErrorStateMatcher, AfterContentInit, OnDestroy {
82
- private _errorStateMatcher;
83
- private _viewContainerRef;
84
- private _isSelected;
85
- /** Content for step label given by `<ng-template matStepLabel>`. */
86
- stepLabel: MatStepLabel;
87
- /**
88
- * Theme color for the particular step. This API is supported in M2 themes
89
- * only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/stepper/styling.
90
- *
91
- * For information on applying color variants in M3, see
92
- * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
93
- */
94
- color: ThemePalette;
95
- /** Content that will be rendered lazily. */
96
- _lazyContent: MatStepContent;
97
- /** Currently-attached portal containing the lazy content. */
98
- _portal: TemplatePortal;
99
- ngAfterContentInit(): void;
100
- ngOnDestroy(): void;
101
- /** Custom error state matcher that additionally checks for validity of interacted form. */
102
- isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
103
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStep, never>;
104
- static ɵcmp: i0.ɵɵComponentDeclaration<MatStep, "mat-step", ["matStep"], { "color": { "alias": "color"; "required": false; }; }, {}, ["stepLabel", "_lazyContent"], ["*"], true, never>;
53
+ /** Template context available to an attached `matStepperIcon`. */
54
+ interface MatStepperIconContext {
55
+ /** Index of the step. */
56
+ index: number;
57
+ /** Whether the step is currently active. */
58
+ active: boolean;
59
+ /** Whether the step is optional. */
60
+ optional: boolean;
105
61
  }
106
-
107
62
  /**
108
- * Content for a `mat-step` that will be rendered lazily.
63
+ * Template to be used to override the icons inside the step header.
109
64
  */
110
- export declare class MatStepContent {
111
- _template: TemplateRef<any>;
65
+ declare class MatStepperIcon {
66
+ templateRef: TemplateRef<MatStepperIconContext>;
67
+ /** Name of the icon to be overridden. */
68
+ name: StepState;
112
69
  constructor(...args: unknown[]);
113
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepContent, never>;
114
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepContent, "ng-template[matStepContent]", never, {}, {}, never, never, true, never>;
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperIcon, never>;
71
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepperIcon, "ng-template[matStepperIcon]", never, { "name": { "alias": "matStepperIcon"; "required": false; }; }, {}, never, never, true, never>;
115
72
  }
116
73
 
117
- export declare class MatStepHeader extends CdkStepHeader implements AfterViewInit, OnDestroy {
74
+ declare class MatStepHeader extends CdkStepHeader implements AfterViewInit, OnDestroy {
118
75
  _intl: MatStepperIntl;
119
76
  private _focusMonitor;
120
77
  private _intlSubscription;
@@ -164,17 +121,47 @@ export declare class MatStepHeader extends CdkStepHeader implements AfterViewIni
164
121
  static ɵcmp: i0.ɵɵComponentDeclaration<MatStepHeader, "mat-step-header", never, { "state": { "alias": "state"; "required": false; }; "label": { "alias": "label"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "iconOverrides": { "alias": "iconOverrides"; "required": false; }; "index": { "alias": "index"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "active": { "alias": "active"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
165
122
  }
166
123
 
167
- export declare class MatStepLabel extends CdkStepLabel {
168
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepLabel, never>;
169
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepLabel, "[matStepLabel]", never, {}, {}, never, never, true, never>;
124
+ /**
125
+ * Content for a `mat-step` that will be rendered lazily.
126
+ */
127
+ declare class MatStepContent {
128
+ _template: TemplateRef<any>;
129
+ constructor(...args: unknown[]);
130
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatStepContent, never>;
131
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepContent, "ng-template[matStepContent]", never, {}, {}, never, never, true, never>;
170
132
  }
171
133
 
172
- export declare class MatStepper extends CdkStepper implements AfterViewInit, AfterContentInit, OnDestroy {
134
+ declare class MatStep extends CdkStep implements ErrorStateMatcher, AfterContentInit, OnDestroy {
135
+ private _errorStateMatcher;
136
+ private _viewContainerRef;
137
+ private _isSelected;
138
+ /** Content for step label given by `<ng-template matStepLabel>`. */
139
+ stepLabel: MatStepLabel;
140
+ /**
141
+ * Theme color for the particular step. This API is supported in M2 themes
142
+ * only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/stepper/styling.
143
+ *
144
+ * For information on applying color variants in M3, see
145
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
146
+ */
147
+ color: ThemePalette;
148
+ /** Content that will be rendered lazily. */
149
+ _lazyContent: MatStepContent;
150
+ /** Currently-attached portal containing the lazy content. */
151
+ _portal: TemplatePortal;
152
+ ngAfterContentInit(): void;
153
+ ngOnDestroy(): void;
154
+ /** Custom error state matcher that additionally checks for validity of interacted form. */
155
+ isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatStep, never>;
157
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatStep, "mat-step", ["matStep"], { "color": { "alias": "color"; "required": false; }; }, {}, ["stepLabel", "_lazyContent"], ["*"], true, never>;
158
+ }
159
+ declare class MatStepper extends CdkStepper implements AfterViewInit, AfterContentInit, OnDestroy {
173
160
  private _ngZone;
174
161
  private _renderer;
175
162
  private _animationsModule;
176
163
  private _cleanupTransition;
177
- protected _isAnimating: WritableSignal<boolean>;
164
+ protected _isAnimating: i0.WritableSignal<boolean>;
178
165
  /** The list of step headers of the steps in the stepper. */
179
166
  _stepHeader: QueryList<MatStepHeader>;
180
167
  /** Elements hosting the step animations. */
@@ -227,76 +214,32 @@ export declare class MatStepper extends CdkStepper implements AfterViewInit, Aft
227
214
  static ɵcmp: i0.ɵɵComponentDeclaration<MatStepper, "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", ["matStepper", "matVerticalStepper", "matHorizontalStepper"], { "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "headerPosition": { "alias": "headerPosition"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], ["*"], true, never>;
228
215
  }
229
216
 
230
- /**
231
- * Animations used by the Material steppers.
232
- * @docs-private
233
- * @deprecated No longer used, will be removed.
234
- * @breaking-change 21.0.0
235
- */
236
- export declare const matStepperAnimations: {
237
- readonly horizontalStepTransition: any;
238
- readonly verticalStepTransition: any;
239
- };
240
-
241
- /**
242
- * Template to be used to override the icons inside the step header.
243
- */
244
- export declare class MatStepperIcon {
245
- templateRef: TemplateRef<MatStepperIconContext>;
246
- /** Name of the icon to be overridden. */
247
- name: StepState;
248
- constructor(...args: unknown[]);
249
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperIcon, never>;
250
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepperIcon, "ng-template[matStepperIcon]", never, { "name": { "alias": "matStepperIcon"; "required": false; }; }, {}, never, never, true, never>;
251
- }
252
-
253
- /** Template context available to an attached `matStepperIcon`. */
254
- export declare interface MatStepperIconContext {
255
- /** Index of the step. */
256
- index: number;
257
- /** Whether the step is currently active. */
258
- active: boolean;
259
- /** Whether the step is optional. */
260
- optional: boolean;
261
- }
262
-
263
- /** Stepper data that is required for internationalization. */
264
- export declare class MatStepperIntl {
265
- /**
266
- * Stream that emits whenever the labels here are changed. Use this to notify
267
- * components if the labels have changed after initialization.
268
- */
269
- readonly changes: Subject<void>;
270
- /** Label that is rendered below optional steps. */
271
- optionalLabel: string;
272
- /** Label that is used to indicate step as completed to screen readers. */
273
- completedLabel: string;
274
- /** Label that is used to indicate step as editable to screen readers. */
275
- editableLabel: string;
276
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperIntl, never>;
277
- static ɵprov: i0.ɵɵInjectableDeclaration<MatStepperIntl>;
278
- }
279
-
280
- export declare class MatStepperModule {
281
- static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperModule, never>;
282
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatStepperModule, never, [typeof i1.MatCommonModule, typeof i2.PortalModule, typeof i3.CdkStepperModule, typeof i4.MatIconModule, typeof i1.MatRippleModule, typeof i5.MatStep, typeof i6.MatStepLabel, typeof i5.MatStepper, typeof i7.MatStepperNext, typeof i7.MatStepperPrevious, typeof i8.MatStepHeader, typeof i9.MatStepperIcon, typeof i10.MatStepContent], [typeof i1.MatCommonModule, typeof i5.MatStep, typeof i6.MatStepLabel, typeof i5.MatStepper, typeof i7.MatStepperNext, typeof i7.MatStepperPrevious, typeof i8.MatStepHeader, typeof i9.MatStepperIcon, typeof i10.MatStepContent]>;
283
- static ɵinj: i0.ɵɵInjectorDeclaration<MatStepperModule>;
284
- }
285
-
286
217
  /** Button that moves to the next step in a stepper workflow. */
287
- export declare class MatStepperNext extends CdkStepperNext {
218
+ declare class MatStepperNext extends CdkStepperNext {
288
219
  static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperNext, never>;
289
220
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepperNext, "button[matStepperNext]", never, {}, {}, never, never, true, never>;
290
221
  }
291
-
292
222
  /** Button that moves to the previous step in a stepper workflow. */
293
- export declare class MatStepperPrevious extends CdkStepperPrevious {
223
+ declare class MatStepperPrevious extends CdkStepperPrevious {
294
224
  static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperPrevious, never>;
295
225
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatStepperPrevious, "button[matStepperPrevious]", never, {}, {}, never, never, true, never>;
296
226
  }
297
227
 
298
- export { StepperOrientation }
228
+ declare class MatStepperModule {
229
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatStepperModule, never>;
230
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatStepperModule, never, [typeof i1.MatCommonModule, typeof i3.PortalModule, typeof i3$1.CdkStepperModule, typeof i4.MatIconModule, typeof i1.MatRippleModule, typeof MatStep, typeof MatStepLabel, typeof MatStepper, typeof MatStepperNext, typeof MatStepperPrevious, typeof MatStepHeader, typeof MatStepperIcon, typeof MatStepContent], [typeof i1.MatCommonModule, typeof MatStep, typeof MatStepLabel, typeof MatStepper, typeof MatStepperNext, typeof MatStepperPrevious, typeof MatStepHeader, typeof MatStepperIcon, typeof MatStepContent]>;
231
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatStepperModule>;
232
+ }
299
233
 
300
- export { StepState }
234
+ /**
235
+ * Animations used by the Material steppers.
236
+ * @docs-private
237
+ * @deprecated No longer used, will be removed.
238
+ * @breaking-change 21.0.0
239
+ */
240
+ declare const matStepperAnimations: {
241
+ readonly horizontalStepTransition: any;
242
+ readonly verticalStepTransition: any;
243
+ };
301
244
 
302
- export { }
245
+ export { MAT_STEPPER_INTL_PROVIDER, MAT_STEPPER_INTL_PROVIDER_FACTORY, MatStep, MatStepContent, MatStepHeader, MatStepLabel, MatStepper, MatStepperIcon, type MatStepperIconContext, MatStepperIntl, MatStepperModule, MatStepperNext, MatStepperPrevious, matStepperAnimations };