@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,24 +1,12 @@
1
- import { BaseHarnessFilters } from '@angular/cdk/testing';
2
- import { ComponentHarness } from '@angular/cdk/testing';
3
- import { ComponentHarnessConstructor } from '@angular/cdk/testing';
4
- import { HarnessPredicate } from '@angular/cdk/testing';
5
- import { MatDatepickerInputHarness } from '@angular/material/datepicker/testing';
6
- import { MatDateRangeInputHarness } from '@angular/material/datepicker/testing';
7
1
  import { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control';
2
+ export { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control';
3
+ import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
8
4
  import { MatInputHarness } from '@angular/material/input/testing';
9
5
  import { MatSelectHarness } from '@angular/material/select/testing';
10
-
11
- /** A set of criteria that can be used to filter a list of error harness instances. */
12
- export declare interface ErrorHarnessFilters extends BaseHarnessFilters {
13
- /** Only find instances whose text matches the given value. */
14
- text?: string | RegExp;
15
- }
16
-
17
- /** Possible harnesses of controls which can be bound to a form-field. */
18
- export declare type FormFieldControlHarness = MatInputHarness | MatSelectHarness | MatDatepickerInputHarness | MatDateRangeInputHarness;
6
+ import { MatDatepickerInputHarness, MatDateRangeInputHarness } from '@angular/material/datepicker/testing';
19
7
 
20
8
  /** A set of criteria that can be used to filter a list of `MatFormFieldHarness` instances. */
21
- export declare interface FormFieldHarnessFilters extends BaseHarnessFilters {
9
+ interface FormFieldHarnessFilters extends BaseHarnessFilters {
22
10
  /** Filters based on the text of the form field's floating label. */
23
11
  floatingLabelText?: string | RegExp;
24
12
  /** Filters based on whether the form field has error messages. */
@@ -27,8 +15,13 @@ export declare interface FormFieldHarnessFilters extends BaseHarnessFilters {
27
15
  isValid?: boolean;
28
16
  }
29
17
 
18
+ /** A set of criteria that can be used to filter a list of error harness instances. */
19
+ interface ErrorHarnessFilters extends BaseHarnessFilters {
20
+ /** Only find instances whose text matches the given value. */
21
+ text?: string | RegExp;
22
+ }
30
23
  /** Harness for interacting with a `mat-error` in tests. */
31
- export declare class MatErrorHarness extends ComponentHarness {
24
+ declare class MatErrorHarness extends ComponentHarness {
32
25
  static hostSelector: string;
33
26
  /**
34
27
  * Gets a `HarnessPredicate` that can be used to search for an error with specific
@@ -42,9 +35,9 @@ export declare class MatErrorHarness extends ComponentHarness {
42
35
  getText(): Promise<string>;
43
36
  }
44
37
 
45
- export { MatFormFieldControlHarness }
46
-
47
- export declare class MatFormFieldHarness extends ComponentHarness {
38
+ /** Possible harnesses of controls which can be bound to a form-field. */
39
+ type FormFieldControlHarness = MatInputHarness | MatSelectHarness | MatDatepickerInputHarness | MatDateRangeInputHarness;
40
+ declare class MatFormFieldHarness extends ComponentHarness {
48
41
  private _prefixContainer;
49
42
  private _suffixContainer;
50
43
  private _label;
@@ -129,4 +122,4 @@ export declare class MatFormFieldHarness extends ComponentHarness {
129
122
  private _hasFormControl;
130
123
  }
131
124
 
132
- export { }
125
+ export { type ErrorHarnessFilters, type FormFieldControlHarness, type FormFieldHarnessFilters, MatErrorHarness, MatFormFieldHarness };
@@ -1,163 +1,19 @@
1
- import { AfterContentChecked } from '@angular/core';
2
- import { AfterContentInit } from '@angular/core';
3
1
  import * as i0 from '@angular/core';
2
+ import { AfterContentInit, QueryList, OnInit, AfterContentChecked } from '@angular/core';
4
3
  import * as i1 from '@angular/material/core';
5
4
  import { MatLine } from '@angular/material/core';
6
5
  import { NumberInput } from '@angular/cdk/coercion';
7
- import { OnInit } from '@angular/core';
8
- import { QueryList } from '@angular/core';
9
-
10
- declare namespace i2 {
11
- export {
12
- MatGridList
13
- }
14
- }
15
-
16
- declare namespace i3 {
17
- export {
18
- MatGridTile,
19
- MatGridTileText,
20
- MatGridAvatarCssMatStyler,
21
- MatGridTileHeaderCssMatStyler,
22
- MatGridTileFooterCssMatStyler
23
- }
24
- }
25
-
26
- /**
27
- * Directive whose purpose is to add the mat- CSS styling to this selector.
28
- * @docs-private
29
- */
30
- export declare class MatGridAvatarCssMatStyler {
31
- static ɵfac: i0.ɵɵFactoryDeclaration<MatGridAvatarCssMatStyler, never>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatGridAvatarCssMatStyler, "[mat-grid-avatar], [matGridAvatar]", never, {}, {}, never, never, true, never>;
33
- }
34
-
35
- export declare class MatGridList implements MatGridListBase, OnInit, AfterContentChecked, TileStyleTarget {
36
- private _element;
37
- private _dir;
38
- /** Number of columns being rendered. */
39
- private _cols;
40
- /** Used for determining the position of each tile in the grid. */
41
- private _tileCoordinator;
42
- /**
43
- * Row height value passed in by user. This can be one of three types:
44
- * - Number value (ex: "100px"): sets a fixed row height to that value
45
- * - Ratio value (ex: "4:3"): sets the row height based on width:height ratio
46
- * - "Fit" mode (ex: "fit"): sets the row height to total height divided by number of rows
47
- */
48
- private _rowHeight;
49
- /** The amount of space between tiles. This will be something like '5px' or '2em'. */
50
- private _gutter;
51
- /** Sets position and size styles for a tile */
52
- private _tileStyler;
53
- /** Query list of tiles that are being rendered. */
54
- _tiles: QueryList<MatGridTile>;
55
- constructor(...args: unknown[]);
56
- /** Amount of columns in the grid list. */
57
- get cols(): number;
58
- set cols(value: NumberInput);
59
- /** Size of the grid list's gutter in pixels. */
60
- get gutterSize(): string;
61
- set gutterSize(value: string);
62
- /** Set internal representation of row height from the user-provided value. */
63
- get rowHeight(): string | number;
64
- set rowHeight(value: string | number);
65
- ngOnInit(): void;
66
- /**
67
- * The layout calculation is fairly cheap if nothing changes, so there's little cost
68
- * to run it frequently.
69
- */
70
- ngAfterContentChecked(): void;
71
- /** Throw a friendly error if cols property is missing */
72
- private _checkCols;
73
- /** Default to equal width:height if rowHeight property is missing */
74
- private _checkRowHeight;
75
- /** Creates correct Tile Styler subtype based on rowHeight passed in by user */
76
- private _setTileStyler;
77
- /** Computes and applies the size and position for all children grid tiles. */
78
- private _layoutTiles;
79
- /** Sets style on the main grid-list element, given the style name and value. */
80
- _setListStyle(style: [string, string | null] | null): void;
81
- static ɵfac: i0.ɵɵFactoryDeclaration<MatGridList, never>;
82
- static ɵcmp: i0.ɵɵComponentDeclaration<MatGridList, "mat-grid-list", ["matGridList"], { "cols": { "alias": "cols"; "required": false; }; "gutterSize": { "alias": "gutterSize"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; }, {}, ["_tiles"], ["*"], true, never>;
83
- }
84
-
85
- /**
86
- * Base interface for a `MatGridList`.
87
- * @docs-private
88
- */
89
- declare interface MatGridListBase {
90
- cols: number;
91
- gutterSize: string;
92
- rowHeight: number | string;
93
- }
94
-
95
- export declare class MatGridListModule {
96
- static ɵfac: i0.ɵɵFactoryDeclaration<MatGridListModule, never>;
97
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatGridListModule, never, [typeof i1.MatLineModule, typeof i1.MatCommonModule, typeof i2.MatGridList, typeof i3.MatGridTile, typeof i3.MatGridTileText, typeof i3.MatGridTileHeaderCssMatStyler, typeof i3.MatGridTileFooterCssMatStyler, typeof i3.MatGridAvatarCssMatStyler], [typeof i2.MatGridList, typeof i3.MatGridTile, typeof i3.MatGridTileText, typeof i1.MatLineModule, typeof i1.MatCommonModule, typeof i3.MatGridTileHeaderCssMatStyler, typeof i3.MatGridTileFooterCssMatStyler, typeof i3.MatGridAvatarCssMatStyler]>;
98
- static ɵinj: i0.ɵɵInjectorDeclaration<MatGridListModule>;
99
- }
100
-
101
- export declare class MatGridTile {
102
- private _element;
103
- _gridList?: MatGridListBase | null | undefined;
104
- _rowspan: number;
105
- _colspan: number;
106
- constructor(...args: unknown[]);
107
- /** Amount of rows that the grid tile takes up. */
108
- get rowspan(): number;
109
- set rowspan(value: NumberInput);
110
- /** Amount of columns that the grid tile takes up. */
111
- get colspan(): number;
112
- set colspan(value: NumberInput);
113
- /**
114
- * Sets the style of the grid-tile element. Needs to be set manually to avoid
115
- * "Changed after checked" errors that would occur with HostBinding.
116
- */
117
- _setStyle(property: string, value: any): void;
118
- static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTile, never>;
119
- static ɵcmp: i0.ɵɵComponentDeclaration<MatGridTile, "mat-grid-tile", ["matGridTile"], { "rowspan": { "alias": "rowspan"; "required": false; }; "colspan": { "alias": "colspan"; "required": false; }; }, {}, never, ["*"], true, never>;
120
- }
121
-
122
- /**
123
- * Directive whose purpose is to add the mat- CSS styling to this selector.
124
- * @docs-private
125
- */
126
- export declare class MatGridTileFooterCssMatStyler {
127
- static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTileFooterCssMatStyler, never>;
128
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatGridTileFooterCssMatStyler, "mat-grid-tile-footer", never, {}, {}, never, never, true, never>;
129
- }
130
-
131
- /**
132
- * Directive whose purpose is to add the mat- CSS styling to this selector.
133
- * @docs-private
134
- */
135
- export declare class MatGridTileHeaderCssMatStyler {
136
- static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTileHeaderCssMatStyler, never>;
137
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatGridTileHeaderCssMatStyler, "mat-grid-tile-header", never, {}, {}, never, never, true, never>;
138
- }
139
-
140
- export declare class MatGridTileText implements AfterContentInit {
141
- private _element;
142
- _lines: QueryList<MatLine>;
143
- constructor(...args: unknown[]);
144
- ngAfterContentInit(): void;
145
- static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTileText, never>;
146
- static ɵcmp: i0.ɵɵComponentDeclaration<MatGridTileText, "mat-grid-tile-header, mat-grid-tile-footer", never, {}, {}, ["_lines"], ["[mat-grid-avatar], [matGridAvatar]", "[mat-line], [matLine]", "*"], true, never>;
147
- }
148
-
149
6
 
150
7
  /**
151
8
  * Interface describing a tile.
152
9
  * @docs-private
153
10
  */
154
- declare interface Tile {
11
+ interface Tile {
155
12
  /** Amount of rows that the tile takes up. */
156
13
  rowspan: number;
157
14
  /** Amount of columns that the tile takes up. */
158
15
  colspan: number;
159
16
  }
160
-
161
17
  /**
162
18
  * Class for determining, from a list of tiles, the (row, col) position of each of those tiles
163
19
  * in the grid. This is necessary (rather than just rendering the tiles in normal document flow)
@@ -211,7 +67,6 @@ declare class TileCoordinator {
211
67
  /** Update the tile tracker to account for the given tile in the given space. */
212
68
  private _markTilePosition;
213
69
  }
214
-
215
70
  /**
216
71
  * Simple data structure for tile position (row, col).
217
72
  * @docs-private
@@ -222,12 +77,131 @@ declare class TilePosition {
222
77
  constructor(row: number, col: number);
223
78
  }
224
79
 
80
+ /**
81
+ * Base interface for a `MatGridList`.
82
+ * @docs-private
83
+ */
84
+ interface MatGridListBase {
85
+ cols: number;
86
+ gutterSize: string;
87
+ rowHeight: number | string;
88
+ }
89
+
90
+ declare class MatGridTile {
91
+ private _element;
92
+ _gridList?: MatGridListBase | null | undefined;
93
+ _rowspan: number;
94
+ _colspan: number;
95
+ constructor(...args: unknown[]);
96
+ /** Amount of rows that the grid tile takes up. */
97
+ get rowspan(): number;
98
+ set rowspan(value: NumberInput);
99
+ /** Amount of columns that the grid tile takes up. */
100
+ get colspan(): number;
101
+ set colspan(value: NumberInput);
102
+ /**
103
+ * Sets the style of the grid-tile element. Needs to be set manually to avoid
104
+ * "Changed after checked" errors that would occur with HostBinding.
105
+ */
106
+ _setStyle(property: string, value: any): void;
107
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTile, never>;
108
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatGridTile, "mat-grid-tile", ["matGridTile"], { "rowspan": { "alias": "rowspan"; "required": false; }; "colspan": { "alias": "colspan"; "required": false; }; }, {}, never, ["*"], true, never>;
109
+ }
110
+ declare class MatGridTileText implements AfterContentInit {
111
+ private _element;
112
+ _lines: QueryList<MatLine>;
113
+ constructor(...args: unknown[]);
114
+ ngAfterContentInit(): void;
115
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTileText, never>;
116
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatGridTileText, "mat-grid-tile-header, mat-grid-tile-footer", never, {}, {}, ["_lines"], ["[mat-grid-avatar], [matGridAvatar]", "[mat-line], [matLine]", "*"], true, never>;
117
+ }
118
+ /**
119
+ * Directive whose purpose is to add the mat- CSS styling to this selector.
120
+ * @docs-private
121
+ */
122
+ declare class MatGridAvatarCssMatStyler {
123
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatGridAvatarCssMatStyler, never>;
124
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatGridAvatarCssMatStyler, "[mat-grid-avatar], [matGridAvatar]", never, {}, {}, never, never, true, never>;
125
+ }
126
+ /**
127
+ * Directive whose purpose is to add the mat- CSS styling to this selector.
128
+ * @docs-private
129
+ */
130
+ declare class MatGridTileHeaderCssMatStyler {
131
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTileHeaderCssMatStyler, never>;
132
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatGridTileHeaderCssMatStyler, "mat-grid-tile-header", never, {}, {}, never, never, true, never>;
133
+ }
134
+ /**
135
+ * Directive whose purpose is to add the mat- CSS styling to this selector.
136
+ * @docs-private
137
+ */
138
+ declare class MatGridTileFooterCssMatStyler {
139
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatGridTileFooterCssMatStyler, never>;
140
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatGridTileFooterCssMatStyler, "mat-grid-tile-footer", never, {}, {}, never, never, true, never>;
141
+ }
142
+
225
143
  /** Object that can be styled by the `TileStyler`. */
226
- declare interface TileStyleTarget {
144
+ interface TileStyleTarget {
227
145
  _setListStyle(style: [string, string | null] | null): void;
228
146
  _tiles: QueryList<MatGridTile>;
229
147
  }
230
148
 
231
- export declare const ɵTileCoordinator: typeof TileCoordinator;
149
+ declare class MatGridList implements MatGridListBase, OnInit, AfterContentChecked, TileStyleTarget {
150
+ private _element;
151
+ private _dir;
152
+ /** Number of columns being rendered. */
153
+ private _cols;
154
+ /** Used for determining the position of each tile in the grid. */
155
+ private _tileCoordinator;
156
+ /**
157
+ * Row height value passed in by user. This can be one of three types:
158
+ * - Number value (ex: "100px"): sets a fixed row height to that value
159
+ * - Ratio value (ex: "4:3"): sets the row height based on width:height ratio
160
+ * - "Fit" mode (ex: "fit"): sets the row height to total height divided by number of rows
161
+ */
162
+ private _rowHeight;
163
+ /** The amount of space between tiles. This will be something like '5px' or '2em'. */
164
+ private _gutter;
165
+ /** Sets position and size styles for a tile */
166
+ private _tileStyler;
167
+ /** Query list of tiles that are being rendered. */
168
+ _tiles: QueryList<MatGridTile>;
169
+ constructor(...args: unknown[]);
170
+ /** Amount of columns in the grid list. */
171
+ get cols(): number;
172
+ set cols(value: NumberInput);
173
+ /** Size of the grid list's gutter in pixels. */
174
+ get gutterSize(): string;
175
+ set gutterSize(value: string);
176
+ /** Set internal representation of row height from the user-provided value. */
177
+ get rowHeight(): string | number;
178
+ set rowHeight(value: string | number);
179
+ ngOnInit(): void;
180
+ /**
181
+ * The layout calculation is fairly cheap if nothing changes, so there's little cost
182
+ * to run it frequently.
183
+ */
184
+ ngAfterContentChecked(): void;
185
+ /** Throw a friendly error if cols property is missing */
186
+ private _checkCols;
187
+ /** Default to equal width:height if rowHeight property is missing */
188
+ private _checkRowHeight;
189
+ /** Creates correct Tile Styler subtype based on rowHeight passed in by user */
190
+ private _setTileStyler;
191
+ /** Computes and applies the size and position for all children grid tiles. */
192
+ private _layoutTiles;
193
+ /** Sets style on the main grid-list element, given the style name and value. */
194
+ _setListStyle(style: [string, string | null] | null): void;
195
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatGridList, never>;
196
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatGridList, "mat-grid-list", ["matGridList"], { "cols": { "alias": "cols"; "required": false; }; "gutterSize": { "alias": "gutterSize"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; }, {}, ["_tiles"], ["*"], true, never>;
197
+ }
198
+
199
+ declare class MatGridListModule {
200
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatGridListModule, never>;
201
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatGridListModule, never, [typeof i1.MatLineModule, typeof i1.MatCommonModule, typeof MatGridList, typeof MatGridTile, typeof MatGridTileText, typeof MatGridTileHeaderCssMatStyler, typeof MatGridTileFooterCssMatStyler, typeof MatGridAvatarCssMatStyler], [typeof MatGridList, typeof MatGridTile, typeof MatGridTileText, typeof i1.MatLineModule, typeof i1.MatCommonModule, typeof MatGridTileHeaderCssMatStyler, typeof MatGridTileFooterCssMatStyler, typeof MatGridAvatarCssMatStyler]>;
202
+ static ɵinj: i0.ɵɵInjectorDeclaration<MatGridListModule>;
203
+ }
204
+
205
+ declare const ɵTileCoordinator: typeof TileCoordinator;
232
206
 
233
- export { }
207
+ export { MatGridAvatarCssMatStyler, MatGridList, MatGridListModule, MatGridTile, MatGridTileFooterCssMatStyler, MatGridTileHeaderCssMatStyler, MatGridTileText, ɵTileCoordinator };
@@ -1,54 +1,23 @@
1
- import { BaseHarnessFilters } from '@angular/cdk/testing';
2
- import { ComponentHarness } from '@angular/cdk/testing';
3
- import { ContentContainerComponentHarness } from '@angular/cdk/testing';
4
- import { HarnessPredicate } from '@angular/cdk/testing';
1
+ import { BaseHarnessFilters, ContentContainerComponentHarness, HarnessPredicate, ComponentHarness } from '@angular/cdk/testing';
5
2
 
6
3
  /** A set of criteria that can be used to filter a list of `MatGridListHarness` instances. */
7
- export declare interface GridListHarnessFilters extends BaseHarnessFilters {
4
+ interface GridListHarnessFilters extends BaseHarnessFilters {
8
5
  }
9
-
10
6
  /** A set of criteria that can be used to filter a list of `MatTileHarness` instances. */
11
- export declare interface GridTileHarnessFilters extends BaseHarnessFilters {
7
+ interface GridTileHarnessFilters extends BaseHarnessFilters {
12
8
  /** Text the grid-tile header should match. */
13
9
  headerText?: string | RegExp;
14
10
  /** Text the grid-tile footer should match. */
15
11
  footerText?: string | RegExp;
16
12
  }
17
13
 
18
- /** Harness for interacting with a standard `MatGridList` in tests. */
19
- export declare class MatGridListHarness extends ComponentHarness {
20
- /** The selector for the host element of a `MatGridList` instance. */
21
- static hostSelector: string;
22
- /**
23
- * Gets a `HarnessPredicate` that can be used to search for a `MatGridListHarness`
24
- * that meets certain criteria.
25
- * @param options Options for filtering which dialog instances are considered a match.
26
- * @return a `HarnessPredicate` configured with the given options.
27
- */
28
- static with(options?: GridListHarnessFilters): HarnessPredicate<MatGridListHarness>;
29
- /**
30
- * Tile coordinator that is used by the "MatGridList" for computing
31
- * positions of tiles. We leverage the coordinator to provide an API
32
- * for retrieving tiles based on visual tile positions.
33
- */
34
- private _tileCoordinator;
35
- /** Gets all tiles of the grid-list. */
36
- getTiles(filters?: GridTileHarnessFilters): Promise<MatGridTileHarness[]>;
37
- /** Gets the amount of columns of the grid-list. */
38
- getColumns(): Promise<number>;
39
- /**
40
- * Gets a tile of the grid-list that is located at the given location.
41
- * @param row Zero-based row index.
42
- * @param column Zero-based column index.
43
- */
44
- getTileAtPosition({ row, column, }: {
45
- row: number;
46
- column: number;
47
- }): Promise<MatGridTileHarness>;
14
+ /** Selectors for the various `mat-grid-tile` sections that may contain user content. */
15
+ declare enum MatGridTileSection {
16
+ HEADER = ".mat-grid-tile-header",
17
+ FOOTER = ".mat-grid-tile-footer"
48
18
  }
49
-
50
19
  /** Harness for interacting with a standard `MatGridTitle` in tests. */
51
- export declare class MatGridTileHarness extends ContentContainerComponentHarness<MatGridTileSection> {
20
+ declare class MatGridTileHarness extends ContentContainerComponentHarness<MatGridTileSection> {
52
21
  /** The selector for the host element of a `MatGridTile` instance. */
53
22
  static hostSelector: string;
54
23
  /**
@@ -77,10 +46,36 @@ export declare class MatGridTileHarness extends ContentContainerComponentHarness
77
46
  getFooterText(): Promise<string | null>;
78
47
  }
79
48
 
80
- /** Selectors for the various `mat-grid-tile` sections that may contain user content. */
81
- export declare enum MatGridTileSection {
82
- HEADER = ".mat-grid-tile-header",
83
- FOOTER = ".mat-grid-tile-footer"
49
+ /** Harness for interacting with a standard `MatGridList` in tests. */
50
+ declare class MatGridListHarness extends ComponentHarness {
51
+ /** The selector for the host element of a `MatGridList` instance. */
52
+ static hostSelector: string;
53
+ /**
54
+ * Gets a `HarnessPredicate` that can be used to search for a `MatGridListHarness`
55
+ * that meets certain criteria.
56
+ * @param options Options for filtering which dialog instances are considered a match.
57
+ * @return a `HarnessPredicate` configured with the given options.
58
+ */
59
+ static with(options?: GridListHarnessFilters): HarnessPredicate<MatGridListHarness>;
60
+ /**
61
+ * Tile coordinator that is used by the "MatGridList" for computing
62
+ * positions of tiles. We leverage the coordinator to provide an API
63
+ * for retrieving tiles based on visual tile positions.
64
+ */
65
+ private _tileCoordinator;
66
+ /** Gets all tiles of the grid-list. */
67
+ getTiles(filters?: GridTileHarnessFilters): Promise<MatGridTileHarness[]>;
68
+ /** Gets the amount of columns of the grid-list. */
69
+ getColumns(): Promise<number>;
70
+ /**
71
+ * Gets a tile of the grid-list that is located at the given location.
72
+ * @param row Zero-based row index.
73
+ * @param column Zero-based column index.
74
+ */
75
+ getTileAtPosition({ row, column, }: {
76
+ row: number;
77
+ column: number;
78
+ }): Promise<MatGridTileHarness>;
84
79
  }
85
80
 
86
- export { }
81
+ export { type GridListHarnessFilters, type GridTileHarnessFilters, MatGridListHarness, MatGridTileHarness, MatGridTileSection };