@angular/material 19.2.2 → 19.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/autocomplete/index.d.ts +83 -124
  2. package/autocomplete/testing/index.d.ts +5 -11
  3. package/badge/index.d.ts +17 -30
  4. package/badge/testing/index.d.ts +5 -8
  5. package/bottom-sheet/index.d.ts +88 -103
  6. package/bottom-sheet/testing/index.d.ts +4 -6
  7. package/button/index.d.ts +109 -148
  8. package/button/testing/index.d.ts +6 -10
  9. package/button-toggle/index.d.ts +116 -142
  10. package/button-toggle/testing/index.d.ts +34 -36
  11. package/card/index.d.ts +79 -117
  12. package/card/testing/index.d.ts +11 -15
  13. package/checkbox/index.d.ts +55 -85
  14. package/checkbox/testing/index.d.ts +6 -10
  15. package/chips/index.d.ts +592 -690
  16. package/chips/testing/index.d.ts +78 -93
  17. package/core/index.d.ts +565 -669
  18. package/core/testing/index.d.ts +28 -32
  19. package/datepicker/index.d.ts +1323 -1479
  20. package/datepicker/testing/index.d.ts +109 -119
  21. package/dialog/index.d.ts +194 -246
  22. package/dialog/testing/index.d.ts +17 -26
  23. package/divider/index.d.ts +4 -10
  24. package/divider/testing/index.d.ts +4 -6
  25. package/expansion/index.d.ts +137 -189
  26. package/expansion/testing/index.d.ts +25 -31
  27. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  28. package/fesm2022/autocomplete.mjs +26 -17
  29. package/fesm2022/autocomplete.mjs.map +1 -1
  30. package/fesm2022/badge/testing.mjs.map +1 -1
  31. package/fesm2022/badge.mjs +3 -7
  32. package/fesm2022/badge.mjs.map +1 -1
  33. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  34. package/fesm2022/bottom-sheet.mjs +0 -4
  35. package/fesm2022/bottom-sheet.mjs.map +1 -1
  36. package/fesm2022/button/testing.mjs.map +1 -1
  37. package/fesm2022/button-toggle/testing.mjs.map +1 -1
  38. package/fesm2022/button-toggle.mjs +5 -4
  39. package/fesm2022/button-toggle.mjs.map +1 -1
  40. package/fesm2022/button.mjs +6 -6
  41. package/fesm2022/button.mjs.map +1 -1
  42. package/fesm2022/card/testing.mjs.map +1 -1
  43. package/fesm2022/card.mjs +0 -4
  44. package/fesm2022/card.mjs.map +1 -1
  45. package/fesm2022/checkbox/testing.mjs.map +1 -1
  46. package/fesm2022/checkbox.mjs +5 -5
  47. package/fesm2022/checkbox.mjs.map +1 -1
  48. package/fesm2022/chips/testing.mjs.map +1 -1
  49. package/fesm2022/chips.mjs +0 -4
  50. package/fesm2022/chips.mjs.map +1 -1
  51. package/fesm2022/core/testing.mjs.map +1 -1
  52. package/fesm2022/core.mjs +7 -7
  53. package/fesm2022/core.mjs.map +1 -1
  54. package/fesm2022/datepicker/testing.mjs.map +1 -1
  55. package/fesm2022/datepicker.mjs +42 -18
  56. package/fesm2022/datepicker.mjs.map +1 -1
  57. package/fesm2022/dialog/testing.mjs.map +1 -1
  58. package/fesm2022/dialog.mjs +4 -8
  59. package/fesm2022/dialog.mjs.map +1 -1
  60. package/fesm2022/divider/testing.mjs.map +1 -1
  61. package/fesm2022/divider.mjs +0 -4
  62. package/fesm2022/divider.mjs.map +1 -1
  63. package/fesm2022/expansion/testing.mjs.map +1 -1
  64. package/fesm2022/expansion.mjs +2 -6
  65. package/fesm2022/expansion.mjs.map +1 -1
  66. package/fesm2022/form-field/testing.mjs +0 -2
  67. package/fesm2022/form-field/testing.mjs.map +1 -1
  68. package/fesm2022/form-field.mjs +0 -4
  69. package/fesm2022/form-field.mjs.map +1 -1
  70. package/fesm2022/grid-list/testing.mjs.map +1 -1
  71. package/fesm2022/grid-list.mjs +0 -4
  72. package/fesm2022/grid-list.mjs.map +1 -1
  73. package/fesm2022/icon/testing.mjs +0 -4
  74. package/fesm2022/icon/testing.mjs.map +1 -1
  75. package/fesm2022/icon.mjs +15 -7
  76. package/fesm2022/icon.mjs.map +1 -1
  77. package/fesm2022/input/testing.mjs.map +1 -1
  78. package/fesm2022/input.mjs +0 -4
  79. package/fesm2022/input.mjs.map +1 -1
  80. package/fesm2022/list/testing.mjs +1 -1
  81. package/fesm2022/list/testing.mjs.map +1 -1
  82. package/fesm2022/list.mjs +2 -6
  83. package/fesm2022/list.mjs.map +1 -1
  84. package/fesm2022/menu/testing.mjs.map +1 -1
  85. package/fesm2022/menu.mjs +15 -7
  86. package/fesm2022/menu.mjs.map +1 -1
  87. package/fesm2022/paginator/testing.mjs.map +1 -1
  88. package/fesm2022/paginator.mjs +10 -6
  89. package/fesm2022/paginator.mjs.map +1 -1
  90. package/fesm2022/progress-bar/testing.mjs +0 -4
  91. package/fesm2022/progress-bar/testing.mjs.map +1 -1
  92. package/fesm2022/progress-bar.mjs +5 -5
  93. package/fesm2022/progress-bar.mjs.map +1 -1
  94. package/fesm2022/progress-spinner/testing.mjs +0 -4
  95. package/fesm2022/progress-spinner/testing.mjs.map +1 -1
  96. package/fesm2022/progress-spinner.mjs +5 -5
  97. package/fesm2022/progress-spinner.mjs.map +1 -1
  98. package/fesm2022/radio/testing.mjs.map +1 -1
  99. package/fesm2022/radio.mjs +5 -4
  100. package/fesm2022/radio.mjs.map +1 -1
  101. package/fesm2022/select/testing.mjs.map +1 -1
  102. package/fesm2022/select.mjs +14 -10
  103. package/fesm2022/select.mjs.map +1 -1
  104. package/fesm2022/sidenav/testing.mjs +1 -1
  105. package/fesm2022/sidenav/testing.mjs.map +1 -1
  106. package/fesm2022/sidenav.mjs +9 -9
  107. package/fesm2022/sidenav.mjs.map +1 -1
  108. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  109. package/fesm2022/slide-toggle.mjs +0 -4
  110. package/fesm2022/slide-toggle.mjs.map +1 -1
  111. package/fesm2022/slider/testing.mjs.map +1 -1
  112. package/fesm2022/slider.mjs +0 -4
  113. package/fesm2022/slider.mjs.map +1 -1
  114. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  115. package/fesm2022/snack-bar.mjs +5 -5
  116. package/fesm2022/snack-bar.mjs.map +1 -1
  117. package/fesm2022/sort/testing.mjs.map +1 -1
  118. package/fesm2022/sort.mjs +10 -6
  119. package/fesm2022/sort.mjs.map +1 -1
  120. package/fesm2022/stepper/testing.mjs.map +1 -1
  121. package/fesm2022/stepper.mjs +10 -6
  122. package/fesm2022/stepper.mjs.map +1 -1
  123. package/fesm2022/table/testing.mjs.map +1 -1
  124. package/fesm2022/table.mjs +0 -4
  125. package/fesm2022/table.mjs.map +1 -1
  126. package/fesm2022/tabs/testing.mjs.map +1 -1
  127. package/fesm2022/tabs.mjs +8 -15
  128. package/fesm2022/tabs.mjs.map +1 -1
  129. package/fesm2022/timepicker/testing.mjs.map +1 -1
  130. package/fesm2022/timepicker.mjs +1 -5
  131. package/fesm2022/timepicker.mjs.map +1 -1
  132. package/fesm2022/toolbar/testing.mjs.map +1 -1
  133. package/fesm2022/toolbar.mjs +0 -4
  134. package/fesm2022/toolbar.mjs.map +1 -1
  135. package/fesm2022/tooltip/testing.mjs.map +1 -1
  136. package/fesm2022/tooltip.mjs +15 -7
  137. package/fesm2022/tooltip.mjs.map +1 -1
  138. package/fesm2022/tree/testing.mjs.map +1 -1
  139. package/fesm2022/tree.mjs +0 -4
  140. package/fesm2022/tree.mjs.map +1 -1
  141. package/form-field/index.d.ts +251 -318
  142. package/form-field/testing/control/index.d.ts +2 -2
  143. package/form-field/testing/index.d.ts +14 -21
  144. package/grid-list/index.d.ts +124 -150
  145. package/grid-list/testing/index.d.ts +39 -44
  146. package/icon/index.d.ts +87 -108
  147. package/icon/testing/index.d.ts +38 -43
  148. package/index.d.ts +2 -3
  149. package/input/index.d.ts +27 -61
  150. package/input/testing/index.d.ts +16 -19
  151. package/list/index.d.ts +158 -241
  152. package/list/testing/index.d.ts +157 -179
  153. package/menu/index.d.ts +180 -231
  154. package/menu/testing/index.d.ts +17 -23
  155. package/package.json +2 -2
  156. package/paginator/index.d.ts +84 -97
  157. package/paginator/testing/index.d.ts +10 -14
  158. package/progress-bar/index.d.ts +38 -58
  159. package/progress-bar/testing/index.d.ts +7 -10
  160. package/progress-spinner/index.d.ts +38 -51
  161. package/progress-spinner/testing/index.d.ts +7 -10
  162. package/radio/index.d.ts +145 -168
  163. package/radio/testing/index.d.ts +61 -67
  164. package/schematics/ng-add/index.js +1 -1
  165. package/schematics/ng-add/index.mjs +1 -1
  166. package/schematics/ng-generate/theme-color/index_bundled.js +2 -2
  167. package/schematics/ng-generate/theme-color/schema.json +10 -0
  168. package/schematics/ng-update/index_bundled.js +31 -31
  169. package/select/index.d.ts +77 -130
  170. package/select/testing/index.d.ts +10 -15
  171. package/sidenav/index.d.ts +47 -91
  172. package/sidenav/testing/index.d.ts +58 -63
  173. package/slide-toggle/index.d.ts +51 -84
  174. package/slide-toggle/testing/index.d.ts +17 -21
  175. package/slider/index.d.ts +277 -327
  176. package/slider/testing/index.d.ts +42 -47
  177. package/snack-bar/index.d.ts +147 -185
  178. package/snack-bar/testing/index.d.ts +7 -9
  179. package/sort/index.d.ts +94 -124
  180. package/sort/testing/index.d.ts +21 -24
  181. package/stepper/index.d.ts +108 -165
  182. package/stepper/testing/index.d.ts +43 -52
  183. package/table/index.d.ts +87 -153
  184. package/table/testing/index.d.ts +64 -78
  185. package/tabs/index.d.ts +306 -382
  186. package/tabs/testing/index.d.ts +67 -76
  187. package/timepicker/index.d.ts +123 -159
  188. package/timepicker/testing/index.d.ts +20 -26
  189. package/toolbar/index.d.ts +13 -25
  190. package/toolbar/testing/index.d.ts +13 -16
  191. package/tooltip/index.d.ts +88 -117
  192. package/tooltip/testing/index.d.ts +7 -10
  193. package/tree/index.d.ts +116 -163
  194. package/tree/testing/index.d.ts +52 -58
@@ -1,63 +1,46 @@
1
- import { AfterContentInit } from '@angular/core';
2
- import { AfterViewInit } from '@angular/core';
3
- import { BooleanInput } from '@angular/cdk/coercion';
4
- import { CdkScrollable } from '@angular/cdk/scrolling';
5
- import { DoCheck } from '@angular/core';
6
- import { ElementRef } from '@angular/core';
7
- import { EventEmitter } from '@angular/core';
8
- import { FocusOrigin } from '@angular/cdk/a11y';
9
1
  import * as i0 from '@angular/core';
2
+ import { InjectionToken, AfterContentInit, AfterViewInit, OnDestroy, EventEmitter, ElementRef, DoCheck, QueryList } from '@angular/core';
10
3
  import * as i1 from '@angular/material/core';
11
4
  import * as i2 from '@angular/cdk/scrolling';
12
- import { InjectionToken } from '@angular/core';
13
- import { NumberInput } from '@angular/cdk/coercion';
14
- import { Observable } from 'rxjs';
15
- import { OnDestroy } from '@angular/core';
16
- import { QueryList } from '@angular/core';
17
- import { Subject } from 'rxjs';
18
-
19
- /** Options for where to set focus to automatically on dialog open */
20
- declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
21
-
22
- declare namespace i3 {
23
- export {
24
- throwMatDuplicatedDrawerError,
25
- MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY,
26
- AutoFocusTarget,
27
- MatDrawerToggleResult,
28
- MatDrawerMode,
29
- MAT_DRAWER_DEFAULT_AUTOSIZE,
30
- MAT_DRAWER_CONTAINER,
31
- MatDrawerContent,
32
- MatDrawer,
33
- MatDrawerContainer
34
- }
35
- }
36
-
37
- declare namespace i4 {
38
- export {
39
- MatSidenavContent,
40
- MatSidenav,
41
- MatSidenavContainer
42
- }
43
- }
5
+ import { CdkScrollable } from '@angular/cdk/scrolling';
6
+ import { FocusOrigin } from '@angular/cdk/a11y';
7
+ import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
8
+ import { Subject, Observable } from 'rxjs';
44
9
 
45
10
  /**
46
- * Used to provide a drawer container to a drawer while avoiding circular references.
11
+ * Throws an exception when two MatDrawer are matching the same position.
47
12
  * @docs-private
48
13
  */
49
- declare const MAT_DRAWER_CONTAINER: InjectionToken<unknown>;
50
-
14
+ declare function throwMatDuplicatedDrawerError(position: string): void;
15
+ /** Options for where to set focus to automatically on dialog open */
16
+ type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
17
+ /** Result of the toggle promise that indicates the state of the drawer. */
18
+ type MatDrawerToggleResult = 'open' | 'close';
19
+ /** Drawer and SideNav display modes. */
20
+ type MatDrawerMode = 'over' | 'push' | 'side';
51
21
  /** Configures whether drawers should use auto sizing by default. */
52
- export declare const MAT_DRAWER_DEFAULT_AUTOSIZE: InjectionToken<boolean>;
53
-
54
- /** @docs-private */
55
- export declare function MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY(): boolean;
56
-
22
+ declare const MAT_DRAWER_DEFAULT_AUTOSIZE: InjectionToken<boolean>;
23
+ /**
24
+ * @docs-private
25
+ * @deprecated No longer used, will be removed.
26
+ * @breaking-change 21.0.0
27
+ */
28
+ declare function MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY(): boolean;
29
+ declare class MatDrawerContent extends CdkScrollable implements AfterContentInit {
30
+ private _platform;
31
+ private _changeDetectorRef;
32
+ _container: MatDrawerContainer;
33
+ constructor(...args: unknown[]);
34
+ ngAfterContentInit(): void;
35
+ /** Determines whether the content element should be hidden from the user. */
36
+ protected _shouldBeHidden(): boolean;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawerContent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawerContent, "mat-drawer-content", never, {}, {}, never, ["*"], true, never>;
39
+ }
57
40
  /**
58
41
  * This component corresponds to a drawer that can be opened on the drawer container.
59
42
  */
60
- export declare class MatDrawer implements AfterViewInit, OnDestroy {
43
+ declare class MatDrawer implements AfterViewInit, OnDestroy {
61
44
  private _elementRef;
62
45
  private _focusTrapFactory;
63
46
  private _focusMonitor;
@@ -199,24 +182,13 @@ export declare class MatDrawer implements AfterViewInit, OnDestroy {
199
182
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawer, never>;
200
183
  static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawer, "mat-drawer", ["matDrawer"], { "position": { "alias": "position"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, { "openedChange": "openedChange"; "_openedStream": "opened"; "openedStart": "openedStart"; "_closedStream": "closed"; "closedStart": "closedStart"; "onPositionChanged": "positionChanged"; }, never, ["*"], true, never>;
201
184
  }
202
-
203
- /**
204
- * Animations used by the Material drawers.
205
- * @docs-private
206
- * @deprecated No longer used, will be removed.
207
- * @breaking-change 21.0.0
208
- */
209
- export declare const matDrawerAnimations: {
210
- readonly transformDrawer: any;
211
- };
212
-
213
185
  /**
214
186
  * `<mat-drawer-container>` component.
215
187
  *
216
188
  * This is the parent component to one or two `<mat-drawer>`s that validates the state internally
217
189
  * and coordinates the backdrop and content styling.
218
190
  */
219
- export declare class MatDrawerContainer implements AfterContentInit, DoCheck, OnDestroy {
191
+ declare class MatDrawerContainer implements AfterContentInit, DoCheck, OnDestroy {
220
192
  private _dir;
221
193
  private _element;
222
194
  private _ngZone;
@@ -326,25 +298,11 @@ export declare class MatDrawerContainer implements AfterContentInit, DoCheck, On
326
298
  static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawerContainer, "mat-drawer-container", ["matDrawerContainer"], { "autosize": { "alias": "autosize"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; }, { "backdropClick": "backdropClick"; }, ["_content", "_allDrawers"], ["mat-drawer", "mat-drawer-content", "*"], true, never>;
327
299
  }
328
300
 
329
- export declare class MatDrawerContent extends CdkScrollable implements AfterContentInit {
330
- private _platform;
331
- private _changeDetectorRef;
332
- _container: MatDrawerContainer;
333
- constructor(...args: unknown[]);
334
- ngAfterContentInit(): void;
335
- /** Determines whether the content element should be hidden from the user. */
336
- protected _shouldBeHidden(): boolean;
337
- static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawerContent, never>;
338
- static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawerContent, "mat-drawer-content", never, {}, {}, never, ["*"], true, never>;
301
+ declare class MatSidenavContent extends MatDrawerContent {
302
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavContent, never>;
303
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenavContent, "mat-sidenav-content", never, {}, {}, never, ["*"], true, never>;
339
304
  }
340
-
341
- /** Drawer and SideNav display modes. */
342
- export declare type MatDrawerMode = 'over' | 'push' | 'side';
343
-
344
- /** Result of the toggle promise that indicates the state of the drawer. */
345
- export declare type MatDrawerToggleResult = 'open' | 'close';
346
-
347
- export declare class MatSidenav extends MatDrawer {
305
+ declare class MatSidenav extends MatDrawer {
348
306
  /** Whether the sidenav is fixed in the viewport. */
349
307
  get fixedInViewport(): boolean;
350
308
  set fixedInViewport(value: BooleanInput);
@@ -366,29 +324,27 @@ export declare class MatSidenav extends MatDrawer {
366
324
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenav, never>;
367
325
  static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenav, "mat-sidenav", ["matSidenav"], { "fixedInViewport": { "alias": "fixedInViewport"; "required": false; }; "fixedTopGap": { "alias": "fixedTopGap"; "required": false; }; "fixedBottomGap": { "alias": "fixedBottomGap"; "required": false; }; }, {}, never, ["*"], true, never>;
368
326
  }
369
-
370
- export declare class MatSidenavContainer extends MatDrawerContainer {
327
+ declare class MatSidenavContainer extends MatDrawerContainer {
371
328
  _allDrawers: QueryList<MatSidenav>;
372
329
  _content: MatSidenavContent;
373
330
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavContainer, never>;
374
331
  static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenavContainer, "mat-sidenav-container", ["matSidenavContainer"], {}, {}, ["_content", "_allDrawers"], ["mat-sidenav", "mat-sidenav-content", "*"], true, never>;
375
332
  }
376
333
 
377
- export declare class MatSidenavContent extends MatDrawerContent {
378
- static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavContent, never>;
379
- static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenavContent, "mat-sidenav-content", never, {}, {}, never, ["*"], true, never>;
380
- }
381
-
382
- export declare class MatSidenavModule {
334
+ declare class MatSidenavModule {
383
335
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavModule, never>;
384
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatSidenavModule, never, [typeof i1.MatCommonModule, typeof i2.CdkScrollableModule, typeof i3.MatDrawer, typeof i3.MatDrawerContainer, typeof i3.MatDrawerContent, typeof i4.MatSidenav, typeof i4.MatSidenavContainer, typeof i4.MatSidenavContent], [typeof i2.CdkScrollableModule, typeof i1.MatCommonModule, typeof i3.MatDrawer, typeof i3.MatDrawerContainer, typeof i3.MatDrawerContent, typeof i4.MatSidenav, typeof i4.MatSidenavContainer, typeof i4.MatSidenavContent]>;
336
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatSidenavModule, never, [typeof i1.MatCommonModule, typeof i2.CdkScrollableModule, typeof MatDrawer, typeof MatDrawerContainer, typeof MatDrawerContent, typeof MatSidenav, typeof MatSidenavContainer, typeof MatSidenavContent], [typeof i2.CdkScrollableModule, typeof i1.MatCommonModule, typeof MatDrawer, typeof MatDrawerContainer, typeof MatDrawerContent, typeof MatSidenav, typeof MatSidenavContainer, typeof MatSidenavContent]>;
385
337
  static ɵinj: i0.ɵɵInjectorDeclaration<MatSidenavModule>;
386
338
  }
387
339
 
388
340
  /**
389
- * Throws an exception when two MatDrawer are matching the same position.
341
+ * Animations used by the Material drawers.
390
342
  * @docs-private
343
+ * @deprecated No longer used, will be removed.
344
+ * @breaking-change 21.0.0
391
345
  */
392
- export declare function throwMatDuplicatedDrawerError(position: string): void;
346
+ declare const matDrawerAnimations: {
347
+ readonly transformDrawer: any;
348
+ };
393
349
 
394
- export { }
350
+ export { MAT_DRAWER_DEFAULT_AUTOSIZE, MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY, MatDrawer, MatDrawerContainer, MatDrawerContent, type MatDrawerMode, type MatDrawerToggleResult, MatSidenav, MatSidenavContainer, MatSidenavContent, MatSidenavModule, matDrawerAnimations, throwMatDuplicatedDrawerError };
@@ -1,43 +1,44 @@
1
- import { BaseHarnessFilters } from '@angular/cdk/testing';
2
- import { ContentContainerComponentHarness } from '@angular/cdk/testing';
3
- import { HarnessPredicate } from '@angular/cdk/testing';
1
+ import { BaseHarnessFilters, HarnessPredicate, ContentContainerComponentHarness } from '@angular/cdk/testing';
4
2
 
3
+ /** A set of criteria that can be used to filter a list of `MatDrawerHarness` instances. */
4
+ interface DrawerHarnessFilters extends BaseHarnessFilters {
5
+ /** Only find instances whose side is the given value. */
6
+ position?: 'start' | 'end';
7
+ }
5
8
  /** A set of criteria that can be used to filter a list of `MatDrawerContainerHarness` instances. */
6
- export declare interface DrawerContainerHarnessFilters extends BaseHarnessFilters {
9
+ interface DrawerContainerHarnessFilters extends BaseHarnessFilters {
7
10
  }
8
-
9
11
  /** A set of criteria that can be used to filter a list of `MatDrawerContentHarness` instances. */
10
- export declare interface DrawerContentHarnessFilters extends BaseHarnessFilters {
12
+ interface DrawerContentHarnessFilters extends BaseHarnessFilters {
11
13
  }
12
14
 
13
- /** A set of criteria that can be used to filter a list of `MatDrawerHarness` instances. */
14
- export declare interface DrawerHarnessFilters extends BaseHarnessFilters {
15
- /** Only find instances whose side is the given value. */
16
- position?: 'start' | 'end';
15
+ /**
16
+ * Base class for the drawer harness functionality.
17
+ * @docs-private
18
+ */
19
+ declare class MatDrawerHarnessBase extends ContentContainerComponentHarness<string> {
20
+ /** Whether the drawer is open. */
21
+ isOpen(): Promise<boolean>;
22
+ /** Gets the position of the drawer inside its container. */
23
+ getPosition(): Promise<'start' | 'end'>;
24
+ /** Gets the mode that the drawer is in. */
25
+ getMode(): Promise<'over' | 'push' | 'side'>;
17
26
  }
18
-
19
- /** Harness for interacting with a standard mat-drawer-container in tests. */
20
- export declare class MatDrawerContainerHarness extends ContentContainerComponentHarness<string> {
21
- /** The selector for the host element of a `MatDrawerContainer` instance. */
27
+ /** Harness for interacting with a standard mat-drawer in tests. */
28
+ declare class MatDrawerHarness extends MatDrawerHarnessBase {
29
+ /** The selector for the host element of a `MatDrawer` instance. */
22
30
  static hostSelector: string;
23
31
  /**
24
- * Gets a `HarnessPredicate` that can be used to search for a `MatDrawerContainerHarness` that
25
- * meets certain criteria.
26
- * @param options Options for filtering which container instances are considered a match.
32
+ * Gets a `HarnessPredicate` that can be used to search for a `MatDrawerHarness` that meets
33
+ * certain criteria.
34
+ * @param options Options for filtering which drawer instances are considered a match.
27
35
  * @return a `HarnessPredicate` configured with the given options.
28
36
  */
29
- static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<MatDrawerContainerHarness>;
30
- /**
31
- * Gets drawers that match particular criteria within the container.
32
- * @param filter Optionally filters which chips are included.
33
- */
34
- getDrawers(filter?: DrawerHarnessFilters): Promise<MatDrawerHarness[]>;
35
- /** Gets the element that has the container's content. */
36
- getContent(): Promise<MatDrawerContentHarness>;
37
+ static with(options?: DrawerHarnessFilters): HarnessPredicate<MatDrawerHarness>;
37
38
  }
38
39
 
39
40
  /** Harness for interacting with a standard mat-drawer-content in tests. */
40
- export declare class MatDrawerContentHarness extends ContentContainerComponentHarness<string> {
41
+ declare class MatDrawerContentHarness extends ContentContainerComponentHarness<string> {
41
42
  /** The selector for the host element of a `MatDrawerContent` instance. */
42
43
  static hostSelector: string;
43
44
  /**
@@ -49,54 +50,28 @@ export declare class MatDrawerContentHarness extends ContentContainerComponentHa
49
50
  static with(options?: DrawerContentHarnessFilters): HarnessPredicate<MatDrawerContentHarness>;
50
51
  }
51
52
 
52
- /** Harness for interacting with a standard mat-drawer in tests. */
53
- export declare class MatDrawerHarness extends MatDrawerHarnessBase {
54
- /** The selector for the host element of a `MatDrawer` instance. */
55
- static hostSelector: string;
56
- /**
57
- * Gets a `HarnessPredicate` that can be used to search for a `MatDrawerHarness` that meets
58
- * certain criteria.
59
- * @param options Options for filtering which drawer instances are considered a match.
60
- * @return a `HarnessPredicate` configured with the given options.
61
- */
62
- static with(options?: DrawerHarnessFilters): HarnessPredicate<MatDrawerHarness>;
63
- }
64
-
65
- /**
66
- * Base class for the drawer harness functionality.
67
- * @docs-private
68
- */
69
- declare class MatDrawerHarnessBase extends ContentContainerComponentHarness<string> {
70
- /** Whether the drawer is open. */
71
- isOpen(): Promise<boolean>;
72
- /** Gets the position of the drawer inside its container. */
73
- getPosition(): Promise<'start' | 'end'>;
74
- /** Gets the mode that the drawer is in. */
75
- getMode(): Promise<'over' | 'push' | 'side'>;
76
- }
77
-
78
- /** Harness for interacting with a standard mat-sidenav-container in tests. */
79
- export declare class MatSidenavContainerHarness extends ContentContainerComponentHarness<string> {
80
- /** The selector for the host element of a `MatSidenavContainer` instance. */
53
+ /** Harness for interacting with a standard mat-drawer-container in tests. */
54
+ declare class MatDrawerContainerHarness extends ContentContainerComponentHarness<string> {
55
+ /** The selector for the host element of a `MatDrawerContainer` instance. */
81
56
  static hostSelector: string;
82
57
  /**
83
- * Gets a `HarnessPredicate` that can be used to search for a `MatSidenavContainerHarness` that
58
+ * Gets a `HarnessPredicate` that can be used to search for a `MatDrawerContainerHarness` that
84
59
  * meets certain criteria.
85
60
  * @param options Options for filtering which container instances are considered a match.
86
61
  * @return a `HarnessPredicate` configured with the given options.
87
62
  */
88
- static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<MatSidenavContainerHarness>;
63
+ static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<MatDrawerContainerHarness>;
89
64
  /**
90
- * Gets sidenavs that match particular criteria within the container.
65
+ * Gets drawers that match particular criteria within the container.
91
66
  * @param filter Optionally filters which chips are included.
92
67
  */
93
- getSidenavs(filter?: DrawerHarnessFilters): Promise<MatSidenavHarness[]>;
68
+ getDrawers(filter?: DrawerHarnessFilters): Promise<MatDrawerHarness[]>;
94
69
  /** Gets the element that has the container's content. */
95
- getContent(): Promise<MatSidenavContentHarness>;
70
+ getContent(): Promise<MatDrawerContentHarness>;
96
71
  }
97
72
 
98
73
  /** Harness for interacting with a standard mat-sidenav-content in tests. */
99
- export declare class MatSidenavContentHarness extends ContentContainerComponentHarness<string> {
74
+ declare class MatSidenavContentHarness extends ContentContainerComponentHarness<string> {
100
75
  /** The selector for the host element of a `MatSidenavContent` instance. */
101
76
  static hostSelector: string;
102
77
  /**
@@ -109,7 +84,7 @@ export declare class MatSidenavContentHarness extends ContentContainerComponentH
109
84
  }
110
85
 
111
86
  /** Harness for interacting with a standard mat-sidenav in tests. */
112
- export declare class MatSidenavHarness extends MatDrawerHarnessBase {
87
+ declare class MatSidenavHarness extends MatDrawerHarnessBase {
113
88
  /** The selector for the host element of a `MatSidenav` instance. */
114
89
  static hostSelector: string;
115
90
  /**
@@ -123,4 +98,24 @@ export declare class MatSidenavHarness extends MatDrawerHarnessBase {
123
98
  isFixedInViewport(): Promise<boolean>;
124
99
  }
125
100
 
126
- export { }
101
+ /** Harness for interacting with a standard mat-sidenav-container in tests. */
102
+ declare class MatSidenavContainerHarness extends ContentContainerComponentHarness<string> {
103
+ /** The selector for the host element of a `MatSidenavContainer` instance. */
104
+ static hostSelector: string;
105
+ /**
106
+ * Gets a `HarnessPredicate` that can be used to search for a `MatSidenavContainerHarness` that
107
+ * meets certain criteria.
108
+ * @param options Options for filtering which container instances are considered a match.
109
+ * @return a `HarnessPredicate` configured with the given options.
110
+ */
111
+ static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<MatSidenavContainerHarness>;
112
+ /**
113
+ * Gets sidenavs that match particular criteria within the container.
114
+ * @param filter Optionally filters which chips are included.
115
+ */
116
+ getSidenavs(filter?: DrawerHarnessFilters): Promise<MatSidenavHarness[]>;
117
+ /** Gets the element that has the container's content. */
118
+ getContent(): Promise<MatSidenavContentHarness>;
119
+ }
120
+
121
+ export { type DrawerContainerHarnessFilters, type DrawerContentHarnessFilters, type DrawerHarnessFilters, MatDrawerContainerHarness, MatDrawerContentHarness, MatDrawerHarness, MatSidenavContainerHarness, MatSidenavContentHarness, MatSidenavHarness };
@@ -1,58 +1,52 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import { AfterContentInit } from '@angular/core';
3
- import { ChangeDetectorRef } from '@angular/core';
4
- import { CheckboxRequiredValidator } from '@angular/forms';
5
- import { ControlValueAccessor } from '@angular/forms';
6
- import { ElementRef } from '@angular/core';
7
- import { EventEmitter } from '@angular/core';
8
- import { FocusMonitor } from '@angular/cdk/a11y';
9
1
  import * as i0 from '@angular/core';
10
- import * as i3 from '@angular/material/core';
11
- import { InjectionToken } from '@angular/core';
12
- import { OnChanges } from '@angular/core';
13
- import { OnDestroy } from '@angular/core';
14
- import { Provider } from '@angular/core';
15
- import { SimpleChanges } from '@angular/core';
2
+ import { InjectionToken, OnDestroy, AfterContentInit, OnChanges, ChangeDetectorRef, ElementRef, EventEmitter, SimpleChanges, Provider } from '@angular/core';
3
+ import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, CheckboxRequiredValidator } from '@angular/forms';
4
+ import { FocusMonitor } from '@angular/cdk/a11y';
5
+ import * as i1 from '@angular/material/core';
16
6
  import { ThemePalette } from '@angular/material/core';
17
- import { Type } from '@angular/core';
18
- import { ValidationErrors } from '@angular/forms';
19
- import { Validator } from '@angular/forms';
20
7
 
21
- declare namespace i1 {
22
- export {
23
- MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR,
24
- MatSlideToggleRequiredValidator
25
- }
26
- }
27
-
28
- declare namespace i2 {
29
- export {
30
- MAT_SLIDE_TOGGLE_VALUE_ACCESSOR,
31
- MatSlideToggleChange,
32
- MatSlideToggle
33
- }
8
+ /** Default `mat-slide-toggle` options that can be overridden. */
9
+ interface MatSlideToggleDefaultOptions {
10
+ /** Whether toggle action triggers value changes in slide toggle. */
11
+ disableToggleValue?: boolean;
12
+ /**
13
+ * Default theme color of the slide toggle. 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/slide-toggle/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
+ /** Whether to hide the icon inside the slide toggle. */
21
+ hideIcon?: boolean;
22
+ /** Whether disabled slide toggles should remain interactive. */
23
+ disabledInteractive?: boolean;
34
24
  }
35
-
36
25
  /** Injection token to be used to override the default options for `mat-slide-toggle`. */
37
- export declare const MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS: InjectionToken<MatSlideToggleDefaultOptions>;
38
-
39
- /**
40
- * @deprecated No longer used, `MatCheckbox` implements required validation directly.
41
- * @breaking-change 19.0.0
42
- */
43
- export declare const MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR: Provider;
26
+ declare const MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS: InjectionToken<MatSlideToggleDefaultOptions>;
44
27
 
45
28
  /**
46
29
  * @deprecated Will stop being exported.
47
30
  * @breaking-change 19.0.0
48
31
  */
49
- export declare const MAT_SLIDE_TOGGLE_VALUE_ACCESSOR: {
50
- provide: InjectionToken<readonly ControlValueAccessor[]>;
51
- useExisting: Type<any>;
32
+ declare const MAT_SLIDE_TOGGLE_VALUE_ACCESSOR: {
33
+ provide: i0.InjectionToken<readonly ControlValueAccessor[]>;
34
+ useExisting: i0.Type<any>;
52
35
  multi: boolean;
53
36
  };
54
-
55
- export declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnChanges, ControlValueAccessor, Validator {
37
+ /** Change event object emitted by a slide toggle. */
38
+ declare class MatSlideToggleChange {
39
+ /** The source slide toggle of the event. */
40
+ source: MatSlideToggle;
41
+ /** The new `checked` value of the slide toggle. */
42
+ checked: boolean;
43
+ constructor(
44
+ /** The source slide toggle of the event. */
45
+ source: MatSlideToggle,
46
+ /** The new `checked` value of the slide toggle. */
47
+ checked: boolean);
48
+ }
49
+ declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnChanges, ControlValueAccessor, Validator {
56
50
  private _elementRef;
57
51
  protected _focusMonitor: FocusMonitor;
58
52
  protected _changeDetectorRef: ChangeDetectorRef;
@@ -156,43 +150,11 @@ export declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnCh
156
150
  static ngAcceptInputType_disabledInteractive: unknown;
157
151
  }
158
152
 
159
- /** Change event object emitted by a slide toggle. */
160
- export declare class MatSlideToggleChange {
161
- /** The source slide toggle of the event. */
162
- source: MatSlideToggle;
163
- /** The new `checked` value of the slide toggle. */
164
- checked: boolean;
165
- constructor(
166
- /** The source slide toggle of the event. */
167
- source: MatSlideToggle,
168
- /** The new `checked` value of the slide toggle. */
169
- checked: boolean);
170
- }
171
-
172
- /** Default `mat-slide-toggle` options that can be overridden. */
173
- export declare interface MatSlideToggleDefaultOptions {
174
- /** Whether toggle action triggers value changes in slide toggle. */
175
- disableToggleValue?: boolean;
176
- /**
177
- * Default theme color of the slide toggle. This API is supported in M2 themes only,
178
- * it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slide-toggle/styling.
179
- *
180
- * For information on applying color variants in M3, see
181
- * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
182
- */
183
- color?: ThemePalette;
184
- /** Whether to hide the icon inside the slide toggle. */
185
- hideIcon?: boolean;
186
- /** Whether disabled slide toggles should remain interactive. */
187
- disabledInteractive?: boolean;
188
- }
189
-
190
- export declare class MatSlideToggleModule {
191
- static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleModule, never>;
192
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatSlideToggleModule, never, [typeof i2.MatSlideToggle, typeof i3.MatCommonModule], [typeof i2.MatSlideToggle, typeof i3.MatCommonModule]>;
193
- static ɵinj: i0.ɵɵInjectorDeclaration<MatSlideToggleModule>;
194
- }
195
-
153
+ /**
154
+ * @deprecated No longer used, `MatCheckbox` implements required validation directly.
155
+ * @breaking-change 19.0.0
156
+ */
157
+ declare const MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR: Provider;
196
158
  /**
197
159
  * Validator for Material slide-toggle components with the required attribute in a
198
160
  * template-driven form. The default validator for required form controls asserts
@@ -204,7 +166,7 @@ export declare class MatSlideToggleModule {
204
166
  * @deprecated No longer used, `MatCheckbox` implements required validation directly.
205
167
  * @breaking-change 19.0.0
206
168
  */
207
- export declare class MatSlideToggleRequiredValidator extends CheckboxRequiredValidator {
169
+ declare class MatSlideToggleRequiredValidator extends CheckboxRequiredValidator {
208
170
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleRequiredValidator, never>;
209
171
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatSlideToggleRequiredValidator, "mat-slide-toggle[required][formControlName], mat-slide-toggle[required][formControl], mat-slide-toggle[required][ngModel]", never, {}, {}, never, never, true, never>;
210
172
  }
@@ -213,10 +175,15 @@ export declare class MatSlideToggleRequiredValidator extends CheckboxRequiredVal
213
175
  * @deprecated No longer used, `MatSlideToggle` implements required validation directly.
214
176
  * @breaking-change 19.0.0
215
177
  */
216
- export declare class _MatSlideToggleRequiredValidatorModule {
178
+ declare class _MatSlideToggleRequiredValidatorModule {
217
179
  static ɵfac: i0.ɵɵFactoryDeclaration<_MatSlideToggleRequiredValidatorModule, never>;
218
- static ɵmod: i0.ɵɵNgModuleDeclaration<_MatSlideToggleRequiredValidatorModule, never, [typeof i1.MatSlideToggleRequiredValidator], [typeof i1.MatSlideToggleRequiredValidator]>;
180
+ static ɵmod: i0.ɵɵNgModuleDeclaration<_MatSlideToggleRequiredValidatorModule, never, [typeof MatSlideToggleRequiredValidator], [typeof MatSlideToggleRequiredValidator]>;
219
181
  static ɵinj: i0.ɵɵInjectorDeclaration<_MatSlideToggleRequiredValidatorModule>;
220
182
  }
183
+ declare class MatSlideToggleModule {
184
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleModule, never>;
185
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatSlideToggleModule, never, [typeof MatSlideToggle, typeof i1.MatCommonModule], [typeof MatSlideToggle, typeof i1.MatCommonModule]>;
186
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatSlideToggleModule>;
187
+ }
221
188
 
222
- export { }
189
+ export { MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS, MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR, MAT_SLIDE_TOGGLE_VALUE_ACCESSOR, MatSlideToggle, MatSlideToggleChange, type MatSlideToggleDefaultOptions, MatSlideToggleModule, MatSlideToggleRequiredValidator, _MatSlideToggleRequiredValidatorModule };
@@ -1,14 +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';
6
- import { TestElement } from '@angular/cdk/testing';
1
+ import * as _angular_cdk_testing from '@angular/cdk/testing';
2
+ import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
3
+
4
+ /** A set of criteria that can be used to filter a list of `MatSlideToggleHarness` instances. */
5
+ interface SlideToggleHarnessFilters extends BaseHarnessFilters {
6
+ /** Only find instances whose label matches the given value. */
7
+ label?: string | RegExp;
8
+ /** Only find instances whose name is the given value. */
9
+ name?: string;
10
+ /** Only find instances with the given checked value. */
11
+ checked?: boolean;
12
+ /** Only find instances where the disabled state matches the given value. */
13
+ disabled?: boolean;
14
+ }
7
15
 
8
16
  /** Harness for interacting with a mat-slide-toggle in tests. */
9
- export declare class MatSlideToggleHarness extends ComponentHarness {
17
+ declare class MatSlideToggleHarness extends ComponentHarness {
10
18
  private _label;
11
- _nativeElement: AsyncFactoryFn<TestElement>;
19
+ _nativeElement: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement>;
12
20
  static hostSelector: string;
13
21
  /**
14
22
  * Gets a `HarnessPredicate` that can be used to search for a slide-toggle w/ specific attributes.
@@ -54,16 +62,4 @@ export declare class MatSlideToggleHarness extends ComponentHarness {
54
62
  uncheck(): Promise<void>;
55
63
  }
56
64
 
57
- /** A set of criteria that can be used to filter a list of `MatSlideToggleHarness` instances. */
58
- export declare interface SlideToggleHarnessFilters extends BaseHarnessFilters {
59
- /** Only find instances whose label matches the given value. */
60
- label?: string | RegExp;
61
- /** Only find instances whose name is the given value. */
62
- name?: string;
63
- /** Only find instances with the given checked value. */
64
- checked?: boolean;
65
- /** Only find instances where the disabled state matches the given value. */
66
- disabled?: boolean;
67
- }
68
-
69
- export { }
65
+ export { MatSlideToggleHarness, type SlideToggleHarnessFilters };