@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,19 +1,28 @@
1
- import { BaseHarnessFilters } from '@angular/cdk/testing';
2
- import { ComponentHarness } from '@angular/cdk/testing';
3
- import { ComponentHarnessConstructor } from '@angular/cdk/testing';
4
- import { ContentContainerComponentHarness } from '@angular/cdk/testing';
5
- import { HarnessPredicate } from '@angular/cdk/testing';
1
+ import { BaseHarnessFilters, ContentContainerComponentHarness, ComponentHarnessConstructor, HarnessPredicate, ComponentHarness } from '@angular/cdk/testing';
6
2
 
7
3
  /** A set of criteria that can be used to filter a list of cell harness instances. */
8
- export declare interface CellHarnessFilters extends BaseHarnessFilters {
4
+ interface CellHarnessFilters extends BaseHarnessFilters {
9
5
  /** Only find instances whose text matches the given value. */
10
6
  text?: string | RegExp;
11
7
  /** Only find instances whose column name matches the given value. */
12
8
  columnName?: string | RegExp;
13
9
  }
10
+ /** A set of criteria that can be used to filter a list of row harness instances. */
11
+ interface RowHarnessFilters extends BaseHarnessFilters {
12
+ }
13
+ /** A set of criteria that can be used to filter a list of table harness instances. */
14
+ interface TableHarnessFilters extends BaseHarnessFilters {
15
+ }
14
16
 
17
+ declare abstract class _MatCellHarnessBase extends ContentContainerComponentHarness {
18
+ /** Gets the cell's text. */
19
+ getText(): Promise<string>;
20
+ /** Gets the name of the column that the cell belongs to. */
21
+ getColumnName(): Promise<string>;
22
+ protected static _getCellPredicate<T extends MatCellHarness>(type: ComponentHarnessConstructor<T>, options: CellHarnessFilters): HarnessPredicate<T>;
23
+ }
15
24
  /** Harness for interacting with an Angular Material table cell. */
16
- export declare class MatCellHarness extends _MatCellHarnessBase {
25
+ declare class MatCellHarness extends _MatCellHarnessBase {
17
26
  /** The selector for the host element of a `MatCellHarness` instance. */
18
27
  static hostSelector: string;
19
28
  /**
@@ -23,57 +32,60 @@ export declare class MatCellHarness extends _MatCellHarnessBase {
23
32
  */
24
33
  static with(options?: CellHarnessFilters): HarnessPredicate<MatCellHarness>;
25
34
  }
26
-
27
- export declare abstract class _MatCellHarnessBase extends ContentContainerComponentHarness {
28
- /** Gets the cell's text. */
29
- getText(): Promise<string>;
30
- /** Gets the name of the column that the cell belongs to. */
31
- getColumnName(): Promise<string>;
32
- protected static _getCellPredicate<T extends MatCellHarness>(type: ComponentHarnessConstructor<T>, options: CellHarnessFilters): HarnessPredicate<T>;
33
- }
34
-
35
- /** Harness for interacting with an Angular Material table footer cell. */
36
- export declare class MatFooterCellHarness extends _MatCellHarnessBase {
37
- /** The selector for the host element of a `MatFooterCellHarness` instance. */
35
+ /** Harness for interacting with an Angular Material table header cell. */
36
+ declare class MatHeaderCellHarness extends _MatCellHarnessBase {
37
+ /** The selector for the host element of a `MatHeaderCellHarness` instance. */
38
38
  static hostSelector: string;
39
39
  /**
40
- * Gets a `HarnessPredicate` that can be used to search for a table footer cell with specific
40
+ * Gets a `HarnessPredicate` that can be used to search for a table header cell with specific
41
41
  * attributes.
42
42
  * @param options Options for narrowing the search
43
43
  * @return a `HarnessPredicate` configured with the given options.
44
44
  */
45
- static with(options?: CellHarnessFilters): HarnessPredicate<MatFooterCellHarness>;
45
+ static with(options?: CellHarnessFilters): HarnessPredicate<MatHeaderCellHarness>;
46
46
  }
47
-
48
- /** Harness for interacting with an Angular Material table footer row. */
49
- export declare class MatFooterRowHarness extends _MatRowHarnessBase<typeof MatFooterCellHarness, MatFooterCellHarness> {
50
- /** The selector for the host element of a `MatFooterRowHarness` instance. */
47
+ /** Harness for interacting with an Angular Material table footer cell. */
48
+ declare class MatFooterCellHarness extends _MatCellHarnessBase {
49
+ /** The selector for the host element of a `MatFooterCellHarness` instance. */
51
50
  static hostSelector: string;
52
- protected _cellHarness: typeof MatFooterCellHarness;
53
51
  /**
54
- * Gets a `HarnessPredicate` that can be used to search for a table footer row cell with specific
52
+ * Gets a `HarnessPredicate` that can be used to search for a table footer cell with specific
55
53
  * attributes.
56
54
  * @param options Options for narrowing the search
57
55
  * @return a `HarnessPredicate` configured with the given options.
58
56
  */
59
- static with<T extends MatFooterRowHarness>(this: ComponentHarnessConstructor<T>, options?: RowHarnessFilters): HarnessPredicate<T>;
57
+ static with(options?: CellHarnessFilters): HarnessPredicate<MatFooterCellHarness>;
60
58
  }
61
59
 
62
- /** Harness for interacting with an Angular Material table header cell. */
63
- export declare class MatHeaderCellHarness extends _MatCellHarnessBase {
64
- /** The selector for the host element of a `MatHeaderCellHarness` instance. */
60
+ /** Text extracted from a table row organized by columns. */
61
+ interface MatRowHarnessColumnsText {
62
+ [columnName: string]: string;
63
+ }
64
+ declare abstract class _MatRowHarnessBase<CellType extends ComponentHarnessConstructor<Cell> & {
65
+ with: (options?: CellHarnessFilters) => HarnessPredicate<Cell>;
66
+ }, Cell extends _MatCellHarnessBase> extends ComponentHarness {
67
+ protected abstract _cellHarness: CellType;
68
+ /** Gets a list of `MatCellHarness` for all cells in the row. */
69
+ getCells(filter?: CellHarnessFilters): Promise<Cell[]>;
70
+ /** Gets the text of the cells in the row. */
71
+ getCellTextByIndex(filter?: CellHarnessFilters): Promise<string[]>;
72
+ /** Gets the text inside the row organized by columns. */
73
+ getCellTextByColumnName(): Promise<MatRowHarnessColumnsText>;
74
+ }
75
+ /** Harness for interacting with an Angular Material table row. */
76
+ declare class MatRowHarness extends _MatRowHarnessBase<typeof MatCellHarness, MatCellHarness> {
77
+ /** The selector for the host element of a `MatRowHarness` instance. */
65
78
  static hostSelector: string;
79
+ protected _cellHarness: typeof MatCellHarness;
66
80
  /**
67
- * Gets a `HarnessPredicate` that can be used to search for a table header cell with specific
68
- * attributes.
81
+ * Gets a `HarnessPredicate` that can be used to search for a table row with specific attributes.
69
82
  * @param options Options for narrowing the search
70
83
  * @return a `HarnessPredicate` configured with the given options.
71
84
  */
72
- static with(options?: CellHarnessFilters): HarnessPredicate<MatHeaderCellHarness>;
85
+ static with<T extends MatRowHarness>(this: ComponentHarnessConstructor<T>, options?: RowHarnessFilters): HarnessPredicate<T>;
73
86
  }
74
-
75
87
  /** Harness for interacting with an Angular Material table header row. */
76
- export declare class MatHeaderRowHarness extends _MatRowHarnessBase<typeof MatHeaderCellHarness, MatHeaderCellHarness> {
88
+ declare class MatHeaderRowHarness extends _MatRowHarnessBase<typeof MatHeaderCellHarness, MatHeaderCellHarness> {
77
89
  /** The selector for the host element of a `MatHeaderRowHarness` instance. */
78
90
  static hostSelector: string;
79
91
  protected _cellHarness: typeof MatHeaderCellHarness;
@@ -85,39 +97,30 @@ export declare class MatHeaderRowHarness extends _MatRowHarnessBase<typeof MatHe
85
97
  */
86
98
  static with<T extends MatHeaderRowHarness>(this: ComponentHarnessConstructor<T>, options?: RowHarnessFilters): HarnessPredicate<T>;
87
99
  }
88
-
89
- /** Harness for interacting with an Angular Material table row. */
90
- export declare class MatRowHarness extends _MatRowHarnessBase<typeof MatCellHarness, MatCellHarness> {
91
- /** The selector for the host element of a `MatRowHarness` instance. */
100
+ /** Harness for interacting with an Angular Material table footer row. */
101
+ declare class MatFooterRowHarness extends _MatRowHarnessBase<typeof MatFooterCellHarness, MatFooterCellHarness> {
102
+ /** The selector for the host element of a `MatFooterRowHarness` instance. */
92
103
  static hostSelector: string;
93
- protected _cellHarness: typeof MatCellHarness;
104
+ protected _cellHarness: typeof MatFooterCellHarness;
94
105
  /**
95
- * Gets a `HarnessPredicate` that can be used to search for a table row with specific attributes.
106
+ * Gets a `HarnessPredicate` that can be used to search for a table footer row cell with specific
107
+ * attributes.
96
108
  * @param options Options for narrowing the search
97
109
  * @return a `HarnessPredicate` configured with the given options.
98
110
  */
99
- static with<T extends MatRowHarness>(this: ComponentHarnessConstructor<T>, options?: RowHarnessFilters): HarnessPredicate<T>;
100
- }
101
-
102
- export declare abstract class _MatRowHarnessBase<CellType extends ComponentHarnessConstructor<Cell> & {
103
- with: (options?: CellHarnessFilters) => HarnessPredicate<Cell>;
104
- }, Cell extends _MatCellHarnessBase> extends ComponentHarness {
105
- protected abstract _cellHarness: CellType;
106
- /** Gets a list of `MatCellHarness` for all cells in the row. */
107
- getCells(filter?: CellHarnessFilters): Promise<Cell[]>;
108
- /** Gets the text of the cells in the row. */
109
- getCellTextByIndex(filter?: CellHarnessFilters): Promise<string[]>;
110
- /** Gets the text inside the row organized by columns. */
111
- getCellTextByColumnName(): Promise<MatRowHarnessColumnsText>;
111
+ static with<T extends MatFooterRowHarness>(this: ComponentHarnessConstructor<T>, options?: RowHarnessFilters): HarnessPredicate<T>;
112
112
  }
113
113
 
114
- /** Text extracted from a table row organized by columns. */
115
- export declare interface MatRowHarnessColumnsText {
116
- [columnName: string]: string;
114
+ /** Text extracted from a table organized by columns. */
115
+ interface MatTableHarnessColumnsText {
116
+ [columnName: string]: {
117
+ text: string[];
118
+ headerText: string[];
119
+ footerText: string[];
120
+ };
117
121
  }
118
-
119
122
  /** Harness for interacting with a mat-table in tests. */
120
- export declare class MatTableHarness extends ContentContainerComponentHarness<string> {
123
+ declare class MatTableHarness extends ContentContainerComponentHarness<string> {
121
124
  /** The selector for the host element of a `MatTableHarness` instance. */
122
125
  static hostSelector: string;
123
126
  _headerRowHarness: typeof MatHeaderRowHarness;
@@ -141,21 +144,4 @@ export declare class MatTableHarness extends ContentContainerComponentHarness<st
141
144
  getCellTextByColumnName(): Promise<MatTableHarnessColumnsText>;
142
145
  }
143
146
 
144
- /** Text extracted from a table organized by columns. */
145
- export declare interface MatTableHarnessColumnsText {
146
- [columnName: string]: {
147
- text: string[];
148
- headerText: string[];
149
- footerText: string[];
150
- };
151
- }
152
-
153
- /** A set of criteria that can be used to filter a list of row harness instances. */
154
- export declare interface RowHarnessFilters extends BaseHarnessFilters {
155
- }
156
-
157
- /** A set of criteria that can be used to filter a list of table harness instances. */
158
- export declare interface TableHarnessFilters extends BaseHarnessFilters {
159
- }
160
-
161
- export { }
147
+ export { type CellHarnessFilters, MatCellHarness, MatFooterCellHarness, MatFooterRowHarness, MatHeaderCellHarness, MatHeaderRowHarness, MatRowHarness, type MatRowHarnessColumnsText, MatTableHarness, type MatTableHarnessColumnsText, type RowHarnessFilters, type TableHarnessFilters, _MatCellHarnessBase, _MatRowHarnessBase };