@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,16 @@
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 { DividerHarnessFilters } from '@angular/material/divider/testing';
6
- import { HarnessPredicate } from '@angular/cdk/testing';
7
- import { MatDividerHarness } from '@angular/material/divider/testing';
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate, ContentContainerComponentHarness, ComponentHarnessConstructor } from '@angular/cdk/testing';
2
+ import { DividerHarnessFilters, MatDividerHarness } from '@angular/material/divider/testing';
8
3
  import { MatListOptionTogglePosition } from '@angular/material/list';
9
4
 
10
- export declare interface ActionListHarnessFilters extends BaseHarnessFilters {
5
+ interface ListHarnessFilters extends BaseHarnessFilters {
11
6
  }
12
-
13
- export declare interface ActionListItemHarnessFilters extends BaseListItemHarnessFilters {
7
+ interface ActionListHarnessFilters extends BaseHarnessFilters {
14
8
  }
15
-
16
- export declare interface BaseListItemHarnessFilters extends BaseHarnessFilters {
9
+ interface NavListHarnessFilters extends BaseHarnessFilters {
10
+ }
11
+ interface SelectionListHarnessFilters extends BaseHarnessFilters {
12
+ }
13
+ interface BaseListItemHarnessFilters extends BaseHarnessFilters {
17
14
  title?: string | RegExp;
18
15
  secondaryText?: string | RegExp | null;
19
16
  tertiaryText?: string | RegExp | null;
@@ -24,73 +21,90 @@ export declare interface BaseListItemHarnessFilters extends BaseHarnessFilters {
24
21
  */
25
22
  text?: string | RegExp;
26
23
  }
27
-
28
- export declare interface ListHarnessFilters extends BaseHarnessFilters {
24
+ interface ListItemHarnessFilters extends BaseListItemHarnessFilters {
29
25
  }
30
-
31
- export declare interface ListItemHarnessFilters extends BaseListItemHarnessFilters {
26
+ interface ActionListItemHarnessFilters extends BaseListItemHarnessFilters {
32
27
  }
33
-
34
- export declare interface ListOptionHarnessFilters extends BaseListItemHarnessFilters {
28
+ interface NavListItemHarnessFilters extends BaseListItemHarnessFilters {
29
+ href?: string | RegExp | null;
30
+ activated?: boolean;
31
+ }
32
+ interface ListOptionHarnessFilters extends BaseListItemHarnessFilters {
35
33
  selected?: boolean;
36
34
  }
37
-
38
- /** Represents a section of a list falling under a specific header. */
39
- declare interface ListSection<I> {
40
- /** The heading for this list section. `undefined` if there is no heading. */
41
- heading?: string;
42
- /** The items in this list section. */
43
- items: I[];
35
+ interface SubheaderHarnessFilters extends BaseHarnessFilters {
36
+ text?: string | RegExp;
44
37
  }
45
38
 
46
- /** Harness for interacting with a action-list in tests. */
47
- export declare class MatActionListHarness extends MatListHarnessBase<typeof MatActionListItemHarness, MatActionListItemHarness, ActionListItemHarnessFilters> {
48
- /** The selector for the host element of a `MatActionList` instance. */
39
+ /** Harness for interacting with a list subheader. */
40
+ declare class MatSubheaderHarness extends ComponentHarness {
49
41
  static hostSelector: string;
42
+ static with(options?: SubheaderHarnessFilters): HarnessPredicate<MatSubheaderHarness>;
43
+ /** Gets the full text content of the list item (including text from any font icons). */
44
+ getText(): Promise<string>;
45
+ }
46
+ /** Selectors for the various list item sections that may contain user content. */
47
+ declare enum MatListItemSection {
48
+ CONTENT = ".mdc-list-item__content"
49
+ }
50
+ /** Enum describing the possible variants of a list item. */
51
+ declare enum MatListItemType {
52
+ ONE_LINE_ITEM = 0,
53
+ TWO_LINE_ITEM = 1,
54
+ THREE_LINE_ITEM = 2
55
+ }
56
+ /**
57
+ * Shared behavior among the harnesses for the various `MatListItem` flavors.
58
+ * @docs-private
59
+ */
60
+ declare abstract class MatListItemHarnessBase extends ContentContainerComponentHarness<MatListItemSection> {
61
+ private _lines;
62
+ private _primaryText;
63
+ private _avatar;
64
+ private _icon;
65
+ private _unscopedTextContent;
66
+ /** Gets the type of the list item, currently describing how many lines there are. */
67
+ getType(): Promise<MatListItemType>;
50
68
  /**
51
- * Gets a `HarnessPredicate` that can be used to search for an action list with specific
52
- * attributes.
53
- * @param options Options for filtering which action list instances are considered a match.
54
- * @return a `HarnessPredicate` configured with the given options.
69
+ * Gets the full text content of the list item, excluding text
70
+ * from icons and avatars.
71
+ *
72
+ * @deprecated Use the `getFullText` method instead.
73
+ * @breaking-change 16.0.0
55
74
  */
56
- static with<T extends MatActionListHarness>(this: ComponentHarnessConstructor<T>, options?: ActionListHarnessFilters): HarnessPredicate<T>;
57
- _itemHarness: typeof MatActionListItemHarness;
58
- }
59
-
60
- /** Harness for interacting with an action list item. */
61
- export declare class MatActionListItemHarness extends MatListItemHarnessBase {
62
- /** The selector for the host element of a `MatListItem` instance. */
63
- static hostSelector: string;
75
+ getText(): Promise<string>;
64
76
  /**
65
- * Gets a `HarnessPredicate` that can be used to search for a list item with specific
66
- * attributes.
67
- * @param options Options for filtering which action list item instances are considered a match.
68
- * @return a `HarnessPredicate` configured with the given options.
77
+ * Gets the full text content of the list item, excluding text
78
+ * from icons and avatars.
69
79
  */
70
- static with<T extends MatActionListItemHarness>(this: ComponentHarnessConstructor<T>, options?: ActionListItemHarnessFilters): HarnessPredicate<T>;
71
- /** Clicks on the action list item. */
72
- click(): Promise<void>;
73
- /** Focuses the action list item. */
74
- focus(): Promise<void>;
75
- /** Blurs the action list item. */
76
- blur(): Promise<void>;
77
- /** Whether the action list item is focused. */
78
- isFocused(): Promise<boolean>;
79
- }
80
-
81
- /** Harness for interacting with a list in tests. */
82
- export declare class MatListHarness extends MatListHarnessBase<typeof MatListItemHarness, MatListItemHarness, ListItemHarnessFilters> {
83
- /** The selector for the host element of a `MatList` instance. */
84
- static hostSelector: string;
80
+ getFullText(): Promise<string>;
81
+ /** Gets the title of the list item. */
82
+ getTitle(): Promise<string>;
83
+ /** Whether the list item is disabled. */
84
+ isDisabled(): Promise<boolean>;
85
85
  /**
86
- * Gets a `HarnessPredicate` that can be used to search for a list with specific attributes.
87
- * @param options Options for filtering which list instances are considered a match.
88
- * @return a `HarnessPredicate` configured with the given options.
86
+ * Gets the secondary line text of the list item. Null if the list item
87
+ * does not have a secondary line.
89
88
  */
90
- static with<T extends MatListHarness>(this: ComponentHarnessConstructor<T>, options?: ListHarnessFilters): HarnessPredicate<T>;
91
- _itemHarness: typeof MatListItemHarness;
89
+ getSecondaryText(): Promise<string | null>;
90
+ /**
91
+ * Gets the tertiary line text of the list item. Null if the list item
92
+ * does not have a tertiary line.
93
+ */
94
+ getTertiaryText(): Promise<string | null>;
95
+ /** Whether this list item has an avatar. */
96
+ hasAvatar(): Promise<boolean>;
97
+ /** Whether this list item has an icon. */
98
+ hasIcon(): Promise<boolean>;
92
99
  }
93
100
 
101
+ /** Represents a section of a list falling under a specific header. */
102
+ interface ListSection<I> {
103
+ /** The heading for this list section. `undefined` if there is no heading. */
104
+ heading?: string;
105
+ /** The items in this list section. */
106
+ items: I[];
107
+ }
94
108
  /**
95
109
  * Shared behavior among the harnesses for the various `MatList` flavors.
96
110
  * @template T A constructor type for a list item harness type used by this list harness.
@@ -174,116 +188,66 @@ declare abstract class MatListHarnessBase<T extends ComponentHarnessConstructor<
174
188
  }): Promise<(C | MatSubheaderHarness | MatDividerHarness)[]>;
175
189
  }
176
190
 
177
- /** Harness for interacting with a list item. */
178
- export declare class MatListItemHarness extends MatListItemHarnessBase {
179
- /** The selector for the host element of a `MatListItem` instance. */
191
+ /** Harness for interacting with a action-list in tests. */
192
+ declare class MatActionListHarness extends MatListHarnessBase<typeof MatActionListItemHarness, MatActionListItemHarness, ActionListItemHarnessFilters> {
193
+ /** The selector for the host element of a `MatActionList` instance. */
180
194
  static hostSelector: string;
181
195
  /**
182
- * Gets a `HarnessPredicate` that can be used to search for a list item with specific attributes.
183
- * @param options Options for filtering which list item instances are considered a match.
196
+ * Gets a `HarnessPredicate` that can be used to search for an action list with specific
197
+ * attributes.
198
+ * @param options Options for filtering which action list instances are considered a match.
184
199
  * @return a `HarnessPredicate` configured with the given options.
185
200
  */
186
- static with<T extends MatListItemHarness>(this: ComponentHarnessConstructor<T>, options?: ListItemHarnessFilters): HarnessPredicate<T>;
187
- }
188
-
189
- /**
190
- * Shared behavior among the harnesses for the various `MatListItem` flavors.
191
- * @docs-private
192
- */
193
- declare abstract class MatListItemHarnessBase extends ContentContainerComponentHarness<MatListItemSection> {
194
- private _lines;
195
- private _primaryText;
196
- private _avatar;
197
- private _icon;
198
- private _unscopedTextContent;
199
- /** Gets the type of the list item, currently describing how many lines there are. */
200
- getType(): Promise<MatListItemType>;
201
- /**
202
- * Gets the full text content of the list item, excluding text
203
- * from icons and avatars.
204
- *
205
- * @deprecated Use the `getFullText` method instead.
206
- * @breaking-change 16.0.0
207
- */
208
- getText(): Promise<string>;
209
- /**
210
- * Gets the full text content of the list item, excluding text
211
- * from icons and avatars.
212
- */
213
- getFullText(): Promise<string>;
214
- /** Gets the title of the list item. */
215
- getTitle(): Promise<string>;
216
- /** Whether the list item is disabled. */
217
- isDisabled(): Promise<boolean>;
218
- /**
219
- * Gets the secondary line text of the list item. Null if the list item
220
- * does not have a secondary line.
221
- */
222
- getSecondaryText(): Promise<string | null>;
223
- /**
224
- * Gets the tertiary line text of the list item. Null if the list item
225
- * does not have a tertiary line.
226
- */
227
- getTertiaryText(): Promise<string | null>;
228
- /** Whether this list item has an avatar. */
229
- hasAvatar(): Promise<boolean>;
230
- /** Whether this list item has an icon. */
231
- hasIcon(): Promise<boolean>;
232
- }
233
-
234
- /** Selectors for the various list item sections that may contain user content. */
235
- export declare enum MatListItemSection {
236
- CONTENT = ".mdc-list-item__content"
237
- }
238
-
239
- /** Enum describing the possible variants of a list item. */
240
- export declare enum MatListItemType {
241
- ONE_LINE_ITEM = 0,
242
- TWO_LINE_ITEM = 1,
243
- THREE_LINE_ITEM = 2
201
+ static with<T extends MatActionListHarness>(this: ComponentHarnessConstructor<T>, options?: ActionListHarnessFilters): HarnessPredicate<T>;
202
+ _itemHarness: typeof MatActionListItemHarness;
244
203
  }
245
-
246
- /** Harness for interacting with a list option. */
247
- export declare class MatListOptionHarness extends MatListItemHarnessBase {
248
- /** The selector for the host element of a `MatListOption` instance. */
204
+ /** Harness for interacting with an action list item. */
205
+ declare class MatActionListItemHarness extends MatListItemHarnessBase {
206
+ /** The selector for the host element of a `MatListItem` instance. */
249
207
  static hostSelector: string;
250
208
  /**
251
- * Gets a `HarnessPredicate` that can be used to search for a list option with specific
209
+ * Gets a `HarnessPredicate` that can be used to search for a list item with specific
252
210
  * attributes.
253
- * @param options Options for filtering which list option instances are considered a match.
211
+ * @param options Options for filtering which action list item instances are considered a match.
254
212
  * @return a `HarnessPredicate` configured with the given options.
255
213
  */
256
- static with<T extends MatListOptionHarness>(this: ComponentHarnessConstructor<T>, options?: ListOptionHarnessFilters): HarnessPredicate<T>;
257
- private _beforeCheckbox;
258
- private _beforeRadio;
259
- /** Gets the position of the checkbox relative to the list option content. */
260
- getCheckboxPosition(): Promise<MatListOptionTogglePosition>;
261
- /** Gets the position of the radio relative to the list option content. */
262
- getRadioPosition(): Promise<MatListOptionTogglePosition>;
263
- /** Whether the list option is selected. */
264
- isSelected(): Promise<boolean>;
265
- /** Focuses the list option. */
214
+ static with<T extends MatActionListItemHarness>(this: ComponentHarnessConstructor<T>, options?: ActionListItemHarnessFilters): HarnessPredicate<T>;
215
+ /** Clicks on the action list item. */
216
+ click(): Promise<void>;
217
+ /** Focuses the action list item. */
266
218
  focus(): Promise<void>;
267
- /** Blurs the list option. */
219
+ /** Blurs the action list item. */
268
220
  blur(): Promise<void>;
269
- /** Whether the list option is focused. */
221
+ /** Whether the action list item is focused. */
270
222
  isFocused(): Promise<boolean>;
271
- /** Toggles the checked state of the checkbox. */
272
- toggle(): Promise<void>;
223
+ }
224
+
225
+ /** Harness for interacting with a list in tests. */
226
+ declare class MatListHarness extends MatListHarnessBase<typeof MatListItemHarness, MatListItemHarness, ListItemHarnessFilters> {
227
+ /** The selector for the host element of a `MatList` instance. */
228
+ static hostSelector: string;
273
229
  /**
274
- * Puts the list option in a checked state by toggling it if it is currently
275
- * unchecked, or doing nothing if it is already checked.
230
+ * Gets a `HarnessPredicate` that can be used to search for a list with specific attributes.
231
+ * @param options Options for filtering which list instances are considered a match.
232
+ * @return a `HarnessPredicate` configured with the given options.
276
233
  */
277
- select(): Promise<void>;
234
+ static with<T extends MatListHarness>(this: ComponentHarnessConstructor<T>, options?: ListHarnessFilters): HarnessPredicate<T>;
235
+ _itemHarness: typeof MatListItemHarness;
236
+ }
237
+ /** Harness for interacting with a list item. */
238
+ declare class MatListItemHarness extends MatListItemHarnessBase {
239
+ /** The selector for the host element of a `MatListItem` instance. */
240
+ static hostSelector: string;
278
241
  /**
279
- * Puts the list option in an unchecked state by toggling it if it is currently
280
- * checked, or doing nothing if it is already unchecked.
242
+ * Gets a `HarnessPredicate` that can be used to search for a list item with specific attributes.
243
+ * @param options Options for filtering which list item instances are considered a match.
244
+ * @return a `HarnessPredicate` configured with the given options.
281
245
  */
282
- deselect(): Promise<void>;
246
+ static with<T extends MatListItemHarness>(this: ComponentHarnessConstructor<T>, options?: ListItemHarnessFilters): HarnessPredicate<T>;
283
247
  }
284
248
 
285
249
  /** Harness for interacting with a mat-nav-list in tests. */
286
- export declare class MatNavListHarness extends MatListHarnessBase<typeof MatNavListItemHarness, MatNavListItemHarness, NavListItemHarnessFilters> {
250
+ declare class MatNavListHarness extends MatListHarnessBase<typeof MatNavListItemHarness, MatNavListItemHarness, NavListItemHarnessFilters> {
287
251
  /** The selector for the host element of a `MatNavList` instance. */
288
252
  static hostSelector: string;
289
253
  /**
@@ -295,9 +259,8 @@ export declare class MatNavListHarness extends MatListHarnessBase<typeof MatNavL
295
259
  static with<T extends MatNavListHarness>(this: ComponentHarnessConstructor<T>, options?: NavListHarnessFilters): HarnessPredicate<T>;
296
260
  _itemHarness: typeof MatNavListItemHarness;
297
261
  }
298
-
299
262
  /** Harness for interacting with a nav-list item. */
300
- export declare class MatNavListItemHarness extends MatListItemHarnessBase {
263
+ declare class MatNavListItemHarness extends MatListItemHarnessBase {
301
264
  /** The selector for the host element of a `MatListItem` instance. */
302
265
  static hostSelector: string;
303
266
  /**
@@ -322,7 +285,7 @@ export declare class MatNavListItemHarness extends MatListItemHarnessBase {
322
285
  }
323
286
 
324
287
  /** Harness for interacting with a selection-list in tests. */
325
- export declare class MatSelectionListHarness extends MatListHarnessBase<typeof MatListOptionHarness, MatListOptionHarness, ListOptionHarnessFilters> {
288
+ declare class MatSelectionListHarness extends MatListHarnessBase<typeof MatListOptionHarness, MatListOptionHarness, ListOptionHarnessFilters> {
326
289
  /** The selector for the host element of a `MatSelectionList` instance. */
327
290
  static hostSelector: string;
328
291
  /**
@@ -348,28 +311,43 @@ export declare class MatSelectionListHarness extends MatListHarnessBase<typeof M
348
311
  /** Gets all items matching the given list of filters. */
349
312
  private _getItems;
350
313
  }
351
-
352
- /** Harness for interacting with a list subheader. */
353
- export declare class MatSubheaderHarness extends ComponentHarness {
314
+ /** Harness for interacting with a list option. */
315
+ declare class MatListOptionHarness extends MatListItemHarnessBase {
316
+ /** The selector for the host element of a `MatListOption` instance. */
354
317
  static hostSelector: string;
355
- static with(options?: SubheaderHarnessFilters): HarnessPredicate<MatSubheaderHarness>;
356
- /** Gets the full text content of the list item (including text from any font icons). */
357
- getText(): Promise<string>;
358
- }
359
-
360
- export declare interface NavListHarnessFilters extends BaseHarnessFilters {
361
- }
362
-
363
- export declare interface NavListItemHarnessFilters extends BaseListItemHarnessFilters {
364
- href?: string | RegExp | null;
365
- activated?: boolean;
366
- }
367
-
368
- export declare interface SelectionListHarnessFilters extends BaseHarnessFilters {
369
- }
370
-
371
- export declare interface SubheaderHarnessFilters extends BaseHarnessFilters {
372
- text?: string | RegExp;
318
+ /**
319
+ * Gets a `HarnessPredicate` that can be used to search for a list option with specific
320
+ * attributes.
321
+ * @param options Options for filtering which list option instances are considered a match.
322
+ * @return a `HarnessPredicate` configured with the given options.
323
+ */
324
+ static with<T extends MatListOptionHarness>(this: ComponentHarnessConstructor<T>, options?: ListOptionHarnessFilters): HarnessPredicate<T>;
325
+ private _beforeCheckbox;
326
+ private _beforeRadio;
327
+ /** Gets the position of the checkbox relative to the list option content. */
328
+ getCheckboxPosition(): Promise<MatListOptionTogglePosition>;
329
+ /** Gets the position of the radio relative to the list option content. */
330
+ getRadioPosition(): Promise<MatListOptionTogglePosition>;
331
+ /** Whether the list option is selected. */
332
+ isSelected(): Promise<boolean>;
333
+ /** Focuses the list option. */
334
+ focus(): Promise<void>;
335
+ /** Blurs the list option. */
336
+ blur(): Promise<void>;
337
+ /** Whether the list option is focused. */
338
+ isFocused(): Promise<boolean>;
339
+ /** Toggles the checked state of the checkbox. */
340
+ toggle(): Promise<void>;
341
+ /**
342
+ * Puts the list option in a checked state by toggling it if it is currently
343
+ * unchecked, or doing nothing if it is already checked.
344
+ */
345
+ select(): Promise<void>;
346
+ /**
347
+ * Puts the list option in an unchecked state by toggling it if it is currently
348
+ * checked, or doing nothing if it is already unchecked.
349
+ */
350
+ deselect(): Promise<void>;
373
351
  }
374
352
 
375
- export { }
353
+ export { type ActionListHarnessFilters, type ActionListItemHarnessFilters, type BaseListItemHarnessFilters, type ListHarnessFilters, type ListItemHarnessFilters, type ListOptionHarnessFilters, MatActionListHarness, MatActionListItemHarness, MatListHarness, MatListItemHarness, MatListItemSection, MatListItemType, MatListOptionHarness, MatNavListHarness, MatNavListItemHarness, MatSelectionListHarness, MatSubheaderHarness, type NavListHarnessFilters, type NavListItemHarnessFilters, type SelectionListHarnessFilters, type SubheaderHarnessFilters };