@angular/material 19.2.3 → 19.2.4

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 (262) hide show
  1. package/autocomplete/index.d.ts +12 -5
  2. package/autocomplete/testing/index.d.ts +2 -1
  3. package/badge/index.d.ts +7 -98
  4. package/badge/testing/index.d.ts +3 -1
  5. package/badge.d-49a8a74b.d.ts +98 -0
  6. package/bottom-sheet/index.d.ts +2 -2
  7. package/button/index.d.ts +10 -220
  8. package/button-toggle/index.d.ts +10 -257
  9. package/button-toggle/testing/index.d.ts +4 -1
  10. package/button-toggle.d-edc8acff.d.ts +257 -0
  11. package/card/index.d.ts +3 -2
  12. package/checkbox/index.d.ts +4 -3
  13. package/chips/index.d.ts +8 -4
  14. package/common-module.d-0e6515ae.d.ts +43 -0
  15. package/core/index.d.ts +21 -846
  16. package/core/testing/index.d.ts +3 -61
  17. package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +3 -1
  18. package/core/tokens/m3/definitions/_md-sys-color.scss +44 -2
  19. package/core/tokens/m3/definitions/_md-sys-typescale.scss +20 -1
  20. package/date-adapter.d-c6835d41.d.ts +267 -0
  21. package/date-range-input-harness.d-549a9f7e.d.ts +278 -0
  22. package/datepicker/index.d.ts +18 -12
  23. package/datepicker/testing/index.d.ts +5 -277
  24. package/dialog/index.d.ts +12 -360
  25. package/dialog/testing/index.d.ts +6 -1
  26. package/dialog.d-7187c941.d.ts +357 -0
  27. package/divider/index.d.ts +3 -2
  28. package/divider/testing/index.d.ts +2 -14
  29. package/divider-harness.d-d34fede4.d.ts +14 -0
  30. package/error-options.d-448d9046.d.ts +17 -0
  31. package/expansion/index.d.ts +3 -2
  32. package/fesm2022/autocomplete/testing.mjs +2 -1
  33. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  34. package/fesm2022/autocomplete.mjs +14 -3
  35. package/fesm2022/autocomplete.mjs.map +1 -1
  36. package/fesm2022/badge/testing.mjs.map +1 -1
  37. package/fesm2022/badge.mjs +2 -1
  38. package/fesm2022/badge.mjs.map +1 -1
  39. package/fesm2022/bottom-sheet.mjs +3 -1
  40. package/fesm2022/bottom-sheet.mjs.map +1 -1
  41. package/fesm2022/button-toggle/testing.mjs.map +1 -1
  42. package/fesm2022/button-toggle.mjs +7 -1
  43. package/fesm2022/button-toggle.mjs.map +1 -1
  44. package/fesm2022/button.mjs +14 -481
  45. package/fesm2022/button.mjs.map +1 -1
  46. package/fesm2022/card.mjs +3 -1
  47. package/fesm2022/card.mjs.map +1 -1
  48. package/fesm2022/checkbox.mjs +7 -1
  49. package/fesm2022/checkbox.mjs.map +1 -1
  50. package/fesm2022/chips.mjs +11 -2
  51. package/fesm2022/chips.mjs.map +1 -1
  52. package/fesm2022/common-module-a39ee957.mjs +42 -0
  53. package/fesm2022/common-module-a39ee957.mjs.map +1 -0
  54. package/fesm2022/core/testing.mjs +3 -76
  55. package/fesm2022/core/testing.mjs.map +1 -1
  56. package/fesm2022/core.mjs +27 -1587
  57. package/fesm2022/core.mjs.map +1 -1
  58. package/fesm2022/date-formats-b618acb8.mjs +190 -0
  59. package/fesm2022/date-formats-b618acb8.mjs.map +1 -0
  60. package/fesm2022/date-range-input-harness-ee47cdb0.mjs +467 -0
  61. package/fesm2022/date-range-input-harness-ee47cdb0.mjs.map +1 -0
  62. package/fesm2022/datepicker/testing.mjs +5 -465
  63. package/fesm2022/datepicker/testing.mjs.map +1 -1
  64. package/fesm2022/datepicker.mjs +23 -13
  65. package/fesm2022/datepicker.mjs.map +1 -1
  66. package/fesm2022/dialog/testing.mjs +12 -1
  67. package/fesm2022/dialog/testing.mjs.map +1 -1
  68. package/fesm2022/dialog.mjs +14 -897
  69. package/fesm2022/dialog.mjs.map +1 -1
  70. package/fesm2022/divider/testing.mjs +2 -17
  71. package/fesm2022/divider/testing.mjs.map +1 -1
  72. package/fesm2022/divider-harness-3394f29a.mjs +18 -0
  73. package/fesm2022/divider-harness-3394f29a.mjs.map +1 -0
  74. package/fesm2022/divider.mjs +3 -1
  75. package/fesm2022/divider.mjs.map +1 -1
  76. package/fesm2022/error-options-aca21924.mjs +29 -0
  77. package/fesm2022/error-options-aca21924.mjs.map +1 -0
  78. package/fesm2022/error-state-8f4ce1af.mjs +37 -0
  79. package/fesm2022/error-state-8f4ce1af.mjs.map +1 -0
  80. package/fesm2022/expansion.mjs +3 -1
  81. package/fesm2022/expansion.mjs.map +1 -1
  82. package/fesm2022/form-field/testing/control.mjs +2 -10
  83. package/fesm2022/form-field/testing/control.mjs.map +1 -1
  84. package/fesm2022/form-field/testing.mjs +7 -4
  85. package/fesm2022/form-field/testing.mjs.map +1 -1
  86. package/fesm2022/form-field-50ec956f.mjs +1076 -0
  87. package/fesm2022/form-field-50ec956f.mjs.map +1 -0
  88. package/fesm2022/form-field-control-harness-af6fd278.mjs +11 -0
  89. package/fesm2022/form-field-control-harness-af6fd278.mjs.map +1 -0
  90. package/fesm2022/form-field.mjs +14 -1106
  91. package/fesm2022/form-field.mjs.map +1 -1
  92. package/fesm2022/grid-list/testing.mjs +1 -1
  93. package/fesm2022/grid-list/testing.mjs.map +1 -1
  94. package/fesm2022/grid-list.mjs +8 -147
  95. package/fesm2022/grid-list.mjs.map +1 -1
  96. package/fesm2022/icon/testing.mjs +5 -1
  97. package/fesm2022/icon/testing.mjs.map +1 -1
  98. package/fesm2022/icon-button-655c4ed3.mjs +275 -0
  99. package/fesm2022/icon-button-655c4ed3.mjs.map +1 -0
  100. package/fesm2022/icon-module-881c6455.mjs +395 -0
  101. package/fesm2022/icon-module-881c6455.mjs.map +1 -0
  102. package/fesm2022/icon-registry-e1064d47.mjs +639 -0
  103. package/fesm2022/icon-registry-e1064d47.mjs.map +1 -0
  104. package/fesm2022/icon.mjs +11 -1024
  105. package/fesm2022/icon.mjs.map +1 -1
  106. package/fesm2022/index-2f2536d6.mjs +22 -0
  107. package/fesm2022/index-2f2536d6.mjs.map +1 -0
  108. package/fesm2022/index-a36e3c7c.mjs +20 -0
  109. package/fesm2022/index-a36e3c7c.mjs.map +1 -0
  110. package/fesm2022/input/testing.mjs +5 -113
  111. package/fesm2022/input/testing.mjs.map +1 -1
  112. package/fesm2022/input-harness-ed59decc.mjs +115 -0
  113. package/fesm2022/input-harness-ed59decc.mjs.map +1 -0
  114. package/fesm2022/input-value-accessor-8a79a24e.mjs +12 -0
  115. package/fesm2022/input-value-accessor-8a79a24e.mjs.map +1 -0
  116. package/fesm2022/input.mjs +14 -12
  117. package/fesm2022/input.mjs.map +1 -1
  118. package/fesm2022/internal-form-field-5960ea2e.mjs +27 -0
  119. package/fesm2022/internal-form-field-5960ea2e.mjs.map +1 -0
  120. package/fesm2022/line-11b0093d.mjs +59 -0
  121. package/fesm2022/line-11b0093d.mjs.map +1 -0
  122. package/fesm2022/list/testing.mjs +1 -1
  123. package/fesm2022/list/testing.mjs.map +1 -1
  124. package/fesm2022/list.mjs +8 -1
  125. package/fesm2022/list.mjs.map +1 -1
  126. package/fesm2022/menu.mjs +5 -1
  127. package/fesm2022/menu.mjs.map +1 -1
  128. package/fesm2022/module-0776ab9b.mjs +38 -0
  129. package/fesm2022/module-0776ab9b.mjs.map +1 -0
  130. package/fesm2022/module-087ecec3.mjs +970 -0
  131. package/fesm2022/module-087ecec3.mjs.map +1 -0
  132. package/fesm2022/module-6b33072b.mjs +218 -0
  133. package/fesm2022/module-6b33072b.mjs.map +1 -0
  134. package/fesm2022/module-b0a3e0af.mjs +1293 -0
  135. package/fesm2022/module-b0a3e0af.mjs.map +1 -0
  136. package/fesm2022/module-b3de5709.mjs +899 -0
  137. package/fesm2022/module-b3de5709.mjs.map +1 -0
  138. package/fesm2022/optgroup-harness-5e66b138.mjs +36 -0
  139. package/fesm2022/optgroup-harness-5e66b138.mjs.map +1 -0
  140. package/fesm2022/option-cb353f7a.mjs +348 -0
  141. package/fesm2022/option-cb353f7a.mjs.map +1 -0
  142. package/fesm2022/option-harness-3b7c1106.mjs +46 -0
  143. package/fesm2022/option-harness-3b7c1106.mjs.map +1 -0
  144. package/fesm2022/paginator/testing.mjs +4 -1
  145. package/fesm2022/paginator/testing.mjs.map +1 -1
  146. package/fesm2022/paginator.mjs +33 -7
  147. package/fesm2022/paginator.mjs.map +1 -1
  148. package/fesm2022/progress-bar.mjs +3 -1
  149. package/fesm2022/progress-bar.mjs.map +1 -1
  150. package/fesm2022/progress-spinner/testing.mjs.map +1 -1
  151. package/fesm2022/progress-spinner.mjs +3 -1
  152. package/fesm2022/progress-spinner.mjs.map +1 -1
  153. package/fesm2022/pseudo-checkbox-4a60d45e.mjs +52 -0
  154. package/fesm2022/pseudo-checkbox-4a60d45e.mjs.map +1 -0
  155. package/fesm2022/pseudo-checkbox-module-31a58606.mjs +20 -0
  156. package/fesm2022/pseudo-checkbox-module-31a58606.mjs.map +1 -0
  157. package/fesm2022/public-api-c5ab57f5.mjs +147 -0
  158. package/fesm2022/public-api-c5ab57f5.mjs.map +1 -0
  159. package/fesm2022/radio.mjs +8 -1
  160. package/fesm2022/radio.mjs.map +1 -1
  161. package/fesm2022/ripple-5bdada85.mjs +639 -0
  162. package/fesm2022/ripple-5bdada85.mjs.map +1 -0
  163. package/fesm2022/ripple-loader-dabcd93d.mjs +165 -0
  164. package/fesm2022/ripple-loader-dabcd93d.mjs.map +1 -0
  165. package/fesm2022/select/testing.mjs +5 -121
  166. package/fesm2022/select/testing.mjs.map +1 -1
  167. package/fesm2022/select-harness-8c55824d.mjs +123 -0
  168. package/fesm2022/select-harness-8c55824d.mjs.map +1 -0
  169. package/fesm2022/select.mjs +30 -1288
  170. package/fesm2022/select.mjs.map +1 -1
  171. package/fesm2022/sidenav.mjs +1 -1
  172. package/fesm2022/sidenav.mjs.map +1 -1
  173. package/fesm2022/slide-toggle.mjs +7 -1
  174. package/fesm2022/slide-toggle.mjs.map +1 -1
  175. package/fesm2022/slider.mjs +6 -1
  176. package/fesm2022/slider.mjs.map +1 -1
  177. package/fesm2022/snack-bar.mjs +10 -2
  178. package/fesm2022/snack-bar.mjs.map +1 -1
  179. package/fesm2022/sort/testing.mjs.map +1 -1
  180. package/fesm2022/sort.mjs +3 -1
  181. package/fesm2022/sort.mjs.map +1 -1
  182. package/fesm2022/stepper.mjs +11 -2
  183. package/fesm2022/stepper.mjs.map +1 -1
  184. package/fesm2022/structural-styles-326dcb39.mjs +18 -0
  185. package/fesm2022/structural-styles-326dcb39.mjs.map +1 -0
  186. package/fesm2022/table.mjs +3 -1
  187. package/fesm2022/table.mjs.map +1 -1
  188. package/fesm2022/tabs.mjs +4 -1
  189. package/fesm2022/tabs.mjs.map +1 -1
  190. package/fesm2022/timepicker/testing.mjs +1 -1
  191. package/fesm2022/timepicker/testing.mjs.map +1 -1
  192. package/fesm2022/timepicker.mjs +19 -5
  193. package/fesm2022/timepicker.mjs.map +1 -1
  194. package/fesm2022/toolbar.mjs +3 -1
  195. package/fesm2022/toolbar.mjs.map +1 -1
  196. package/fesm2022/tooltip.mjs +15 -968
  197. package/fesm2022/tooltip.mjs.map +1 -1
  198. package/fesm2022/tree.mjs +3 -1
  199. package/fesm2022/tree.mjs.map +1 -1
  200. package/form-field/index.d.ts +12 -437
  201. package/form-field/testing/control/index.d.ts +2 -10
  202. package/form-field/testing/index.d.ts +7 -5
  203. package/form-field-control-harness.d-2d91f25a.d.ts +10 -0
  204. package/form-field-control.d-eb86711c.d.ts +62 -0
  205. package/form-field.d-2edbc094.d.ts +367 -0
  206. package/grid-list/index.d.ts +5 -3
  207. package/icon/index.d.ts +9 -449
  208. package/icon/testing/index.d.ts +3 -1
  209. package/icon-module.d-aa3bbba0.d.ts +167 -0
  210. package/icon-registry.d-1dffe9de.d.ts +286 -0
  211. package/index.d-0536b706.d.ts +11 -0
  212. package/index.d-37e31cd3.d.ts +13 -0
  213. package/input/index.d.ts +11 -6
  214. package/input/testing/index.d.ts +4 -59
  215. package/input-harness.d-4eecd1d3.d.ts +60 -0
  216. package/line.d-570a2537.d.ts +25 -0
  217. package/list/index.d.ts +13 -19
  218. package/list/testing/index.d.ts +2 -2
  219. package/list-option-types.d-8739f903.d.ts +15 -0
  220. package/menu/index.d.ts +6 -3
  221. package/module.d-74a721b9.d.ts +326 -0
  222. package/module.d-ba05faa6.d.ts +448 -0
  223. package/module.d-c17c834e.d.ts +18 -0
  224. package/module.d-f490a6d4.d.ts +224 -0
  225. package/optgroup-harness.d-7f741f69.d.ts +31 -0
  226. package/option-harness.d-3d33fc9a.d.ts +34 -0
  227. package/option-parent.d-559ad5c5.d.ts +19 -0
  228. package/option.d-6f493d78.d.ts +146 -0
  229. package/package.json +2 -2
  230. package/paginator/index.d.ts +29 -201
  231. package/paginator/testing/index.d.ts +4 -1
  232. package/paginator.d-40b1766e.d.ts +199 -0
  233. package/palette.d-ec4a617c.d.ts +4 -0
  234. package/progress-bar/index.d.ts +4 -3
  235. package/progress-spinner/index.d.ts +7 -96
  236. package/progress-spinner/testing/index.d.ts +3 -1
  237. package/progress-spinner.d-1fc040c5.d.ts +96 -0
  238. package/pseudo-checkbox-module.d-3abc0461.d.ts +44 -0
  239. package/radio/index.d.ts +7 -3
  240. package/ripple-loader.d-8aac2988.d.ts +48 -0
  241. package/ripple.d-2fb57d04.d.ts +255 -0
  242. package/schematics/ng-add/index.js +1 -1
  243. package/schematics/ng-add/index.mjs +1 -1
  244. package/select/index.d.ts +24 -446
  245. package/select/testing/index.d.ts +5 -62
  246. package/select-harness.d-7441a7ac.d.ts +63 -0
  247. package/sidenav/index.d.ts +4 -3
  248. package/slide-toggle/index.d.ts +4 -3
  249. package/slider/index.d.ts +6 -3
  250. package/snack-bar/index.d.ts +8 -3
  251. package/sort/index.d.ts +10 -88
  252. package/sort/testing/index.d.ts +1 -1
  253. package/sort-direction.d-f4ce4649.d.ts +3 -0
  254. package/sort.d-c2b79a45.d.ts +87 -0
  255. package/stepper/index.d.ts +9 -4
  256. package/table/index.d.ts +11 -4
  257. package/tabs/index.d.ts +5 -3
  258. package/timepicker/index.d.ts +6 -3
  259. package/timepicker/testing/index.d.ts +1 -1
  260. package/toolbar/index.d.ts +3 -2
  261. package/tooltip/index.d.ts +10 -325
  262. package/tree/index.d.ts +3 -2
@@ -1,439 +1,14 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, OnDestroy, AfterViewInit, ElementRef, AfterContentInit, AfterContentChecked, QueryList } from '@angular/core';
3
- import { BooleanInput } from '@angular/cdk/coercion';
4
- import { NgControl, AbstractControlDirective } from '@angular/forms';
5
- import * as i1 from '@angular/material/core';
6
- import { ThemePalette } from '@angular/material/core';
7
- import { Observable } from 'rxjs';
8
- import * as i2 from '@angular/cdk/observers';
9
-
10
- /** The floating label for a `mat-form-field`. */
11
- declare class MatLabel {
12
- static ɵfac: i0.ɵɵFactoryDeclaration<MatLabel, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatLabel, "mat-label", never, {}, {}, never, never, true, never>;
14
- }
15
-
16
- /**
17
- * Injection token that can be used to reference instances of `MatError`. It serves as
18
- * alternative token to the actual `MatError` class which could cause unnecessary
19
- * retention of the class and its directive metadata.
20
- */
21
- declare const MAT_ERROR: InjectionToken<MatError>;
22
- /** Single error message to be shown underneath the form-field. */
23
- declare class MatError {
24
- id: string;
25
- constructor(...args: unknown[]);
26
- static ɵfac: i0.ɵɵFactoryDeclaration<MatError, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatError, "mat-error, [matError]", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
28
- }
29
-
30
- /** Hint text to be shown underneath the form field control. */
31
- declare class MatHint {
32
- /** Whether to align the hint label at the start or end of the line. */
33
- align: 'start' | 'end';
34
- /** Unique ID for the hint. Used for the aria-describedby on the form field control. */
35
- id: string;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<MatHint, never>;
37
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatHint, "mat-hint", never, { "align": { "alias": "align"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
38
- }
39
-
40
- /**
41
- * Injection token that can be used to reference instances of `MatPrefix`. It serves as
42
- * alternative token to the actual `MatPrefix` class which could cause unnecessary
43
- * retention of the class and its directive metadata.
44
- */
45
- declare const MAT_PREFIX: InjectionToken<MatPrefix>;
46
- /** Prefix to be placed in front of the form field. */
47
- declare class MatPrefix {
48
- set _isTextSelector(value: '');
49
- _isText: boolean;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<MatPrefix, never>;
51
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatPrefix, "[matPrefix], [matIconPrefix], [matTextPrefix]", never, { "_isTextSelector": { "alias": "matTextPrefix"; "required": false; }; }, {}, never, never, true, never>;
52
- }
53
-
54
- /**
55
- * Injection token that can be used to reference instances of `MatSuffix`. It serves as
56
- * alternative token to the actual `MatSuffix` class which could cause unnecessary
57
- * retention of the class and its directive metadata.
58
- */
59
- declare const MAT_SUFFIX: InjectionToken<MatSuffix>;
60
- /** Suffix to be placed at the end of the form field. */
61
- declare class MatSuffix {
62
- set _isTextSelector(value: '');
63
- _isText: boolean;
64
- static ɵfac: i0.ɵɵFactoryDeclaration<MatSuffix, never>;
65
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatSuffix, "[matSuffix], [matIconSuffix], [matTextSuffix]", never, { "_isTextSelector": { "alias": "matTextSuffix"; "required": false; }; }, {}, never, never, true, never>;
66
- }
67
-
68
- /** An interface that the parent form-field should implement to receive resize events. */
69
- interface FloatingLabelParent {
70
- _handleLabelResized(): void;
71
- }
72
- /**
73
- * Internal directive that maintains a MDC floating label. This directive does not
74
- * use the `MDCFloatingLabelFoundation` class, as it is not worth the size cost of
75
- * including it just to measure the label width and toggle some classes.
76
- *
77
- * The use of a directive allows us to conditionally render a floating label in the
78
- * template without having to manually manage instantiation and destruction of the
79
- * floating label component based on.
80
- *
81
- * The component is responsible for setting up the floating label styles, measuring label
82
- * width for the outline notch, and providing inputs that can be used to toggle the
83
- * label's floating or required state.
84
- */
85
- declare class MatFormFieldFloatingLabel implements OnDestroy {
86
- private _elementRef;
87
- /** Whether the label is floating. */
88
- get floating(): boolean;
89
- set floating(value: boolean);
90
- private _floating;
91
- /** Whether to monitor for resize events on the floating label. */
92
- get monitorResize(): boolean;
93
- set monitorResize(value: boolean);
94
- private _monitorResize;
95
- /** The shared ResizeObserver. */
96
- private _resizeObserver;
97
- /** The Angular zone. */
98
- private _ngZone;
99
- /** The parent form-field. */
100
- private _parent;
101
- /** The current resize event subscription. */
102
- private _resizeSubscription;
103
- constructor(...args: unknown[]);
104
- ngOnDestroy(): void;
105
- /** Gets the width of the label. Used for the outline notch. */
106
- getWidth(): number;
107
- /** Gets the HTML element for the floating label. */
108
- get element(): HTMLElement;
109
- /** Handles resize events from the ResizeObserver. */
110
- private _handleResize;
111
- /** Subscribes to resize events. */
112
- private _subscribeToResize;
113
- static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldFloatingLabel, never>;
114
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldFloatingLabel, "label[matFormFieldFloatingLabel]", never, { "floating": { "alias": "floating"; "required": false; }; "monitorResize": { "alias": "monitorResize"; "required": false; }; }, {}, never, never, true, never>;
115
- }
116
-
117
- /**
118
- * Internal directive that creates an instance of the MDC line-ripple component. Using a
119
- * directive allows us to conditionally render a line-ripple in the template without having
120
- * to manually create and destroy the `MDCLineRipple` component whenever the condition changes.
121
- *
122
- * The directive sets up the styles for the line-ripple and provides an API for activating
123
- * and deactivating the line-ripple.
124
- */
125
- declare class MatFormFieldLineRipple implements OnDestroy {
126
- private _elementRef;
127
- private _cleanupTransitionEnd;
128
- constructor(...args: unknown[]);
129
- activate(): void;
130
- deactivate(): void;
131
- private _handleTransitionEnd;
132
- ngOnDestroy(): void;
133
- static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldLineRipple, never>;
134
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldLineRipple, "div[matFormFieldLineRipple]", never, {}, {}, never, never, true, never>;
135
- }
136
-
137
- /**
138
- * Internal component that creates an instance of the MDC notched-outline component.
139
- *
140
- * The component sets up the HTML structure and styles for the notched-outline. It provides
141
- * inputs to toggle the notch state and width.
142
- */
143
- declare class MatFormFieldNotchedOutline implements AfterViewInit {
144
- private _elementRef;
145
- private _ngZone;
146
- /** Whether the notch should be opened. */
147
- open: boolean;
148
- _notch: ElementRef;
149
- constructor(...args: unknown[]);
150
- ngAfterViewInit(): void;
151
- _setNotchWidth(labelWidth: number): void;
152
- static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldNotchedOutline, never>;
153
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFormFieldNotchedOutline, "div[matFormFieldNotchedOutline]", never, { "open": { "alias": "matFormFieldNotchedOutlineOpen"; "required": false; }; }, {}, never, ["*"], true, never>;
154
- }
155
-
156
- /** An interface which allows a control to work inside of a `MatFormField`. */
157
- declare abstract class MatFormFieldControl$1<T> {
158
- /** The value of the control. */
159
- value: T | null;
160
- /**
161
- * Stream that emits whenever the state of the control changes such that the parent `MatFormField`
162
- * needs to run change detection.
163
- */
164
- readonly stateChanges: Observable<void>;
165
- /** The element ID for this control. */
166
- readonly id: string;
167
- /** The placeholder for this control. */
168
- readonly placeholder: string;
169
- /** Gets the AbstractControlDirective for this control. */
170
- readonly ngControl: NgControl | AbstractControlDirective | null;
171
- /** Whether the control is focused. */
172
- readonly focused: boolean;
173
- /** Whether the control is empty. */
174
- readonly empty: boolean;
175
- /** Whether the `MatFormField` label should try to float. */
176
- readonly shouldLabelFloat: boolean;
177
- /** Whether the control is required. */
178
- readonly required: boolean;
179
- /** Whether the control is disabled. */
180
- readonly disabled: boolean;
181
- /** Whether the control is in an error state. */
182
- readonly errorState: boolean;
183
- /**
184
- * An optional name for the control type that can be used to distinguish `mat-form-field` elements
185
- * based on their control type. The form field will add a class,
186
- * `mat-form-field-type-{{controlType}}` to its root element.
187
- */
188
- readonly controlType?: string;
189
- /**
190
- * Whether the input is currently in an autofilled state. If property is not present on the
191
- * control it is assumed to be false.
192
- */
193
- readonly autofilled?: boolean;
194
- /**
195
- * Value of `aria-describedby` that should be merged with the described-by ids
196
- * which are set by the form-field.
197
- */
198
- readonly userAriaDescribedBy?: string;
199
- /**
200
- * Whether to automatically assign the ID of the form field as the `for` attribute
201
- * on the `<label>` inside the form field. Set this to true to prevent the form
202
- * field from associating the label with non-native elements.
203
- */
204
- readonly disableAutomaticLabeling?: boolean;
205
- /** Sets the list of element IDs that currently describe this control. */
206
- abstract setDescribedByIds(ids: string[]): void;
207
- /** Handles a click on the control's container. */
208
- abstract onContainerClick(event: MouseEvent): void;
209
- static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldControl$1<any>, never>;
210
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldControl$1<any>, never, never, {}, {}, never, never, true, never>;
211
- }
212
-
213
- /** Type for the available floatLabel values. */
214
- type FloatLabelType = 'always' | 'auto';
215
- /** Possible appearance styles for the form field. */
216
- type MatFormFieldAppearance = 'fill' | 'outline';
217
- /** Behaviors for how the subscript height is set. */
218
- type SubscriptSizing = 'fixed' | 'dynamic';
219
- /**
220
- * Represents the default options for the form field that can be configured
221
- * using the `MAT_FORM_FIELD_DEFAULT_OPTIONS` injection token.
222
- */
223
- interface MatFormFieldDefaultOptions {
224
- /** Default form field appearance style. */
225
- appearance?: MatFormFieldAppearance;
226
- /**
227
- * Default theme color of the form field. This API is supported in M2 themes only, it has no
228
- * effect in M3 themes. For color customization in M3, see https://material.angular.io/components/form-field/styling.
229
- *
230
- * For information on applying color variants in M3, see
231
- * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
232
- */
233
- color?: ThemePalette;
234
- /** Whether the required marker should be hidden by default. */
235
- hideRequiredMarker?: boolean;
236
- /**
237
- * Whether the label for form fields should by default float `always`,
238
- * `never`, or `auto` (only when necessary).
239
- */
240
- floatLabel?: FloatLabelType;
241
- /** Whether the form field should reserve space for one line by default. */
242
- subscriptSizing?: SubscriptSizing;
243
- }
244
- /**
245
- * Injection token that can be used to inject an instances of `MatFormField`. It serves
246
- * as alternative token to the actual `MatFormField` class which would cause unnecessary
247
- * retention of the `MatFormField` class and its component metadata.
248
- */
249
- declare const MAT_FORM_FIELD: InjectionToken<MatFormField>;
250
- /**
251
- * Injection token that can be used to configure the
252
- * default options for all form field within an app.
253
- */
254
- declare const MAT_FORM_FIELD_DEFAULT_OPTIONS: InjectionToken<MatFormFieldDefaultOptions>;
255
- /**
256
- * Despite `MatFormFieldControl` being an abstract class, most of our usages enforce its shape
257
- * using `implements` instead of `extends`. This appears to be problematic when Closure compiler
258
- * is configured to use type information to rename properties, because it can't figure out which
259
- * class properties are coming from. This interface seems to work around the issue while preserving
260
- * our type safety (alternative being using `any` everywhere).
261
- * @docs-private
262
- */
263
- interface MatFormFieldControl<T> extends MatFormFieldControl$1<T> {
264
- }
265
- /** Container for form controls that applies Material Design styling and behavior. */
266
- declare class MatFormField implements FloatingLabelParent, AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy {
267
- _elementRef: ElementRef<any>;
268
- private _changeDetectorRef;
269
- private _dir;
270
- private _platform;
271
- private _idGenerator;
272
- private _ngZone;
273
- private _injector;
274
- private _defaults;
275
- _textField: ElementRef<HTMLElement>;
276
- _iconPrefixContainer: ElementRef<HTMLElement>;
277
- _textPrefixContainer: ElementRef<HTMLElement>;
278
- _iconSuffixContainer: ElementRef<HTMLElement>;
279
- _textSuffixContainer: ElementRef<HTMLElement>;
280
- _floatingLabel: MatFormFieldFloatingLabel | undefined;
281
- _notchedOutline: MatFormFieldNotchedOutline | undefined;
282
- _lineRipple: MatFormFieldLineRipple | undefined;
283
- _formFieldControl: MatFormFieldControl<any>;
284
- _prefixChildren: QueryList<MatPrefix>;
285
- _suffixChildren: QueryList<MatSuffix>;
286
- _errorChildren: QueryList<MatError>;
287
- _hintChildren: QueryList<MatHint>;
288
- private readonly _labelChild;
289
- /** Whether the required marker should be hidden. */
290
- get hideRequiredMarker(): boolean;
291
- set hideRequiredMarker(value: BooleanInput);
292
- private _hideRequiredMarker;
293
- /**
294
- * Theme color of the form field. This API is supported in M2 themes only, it
295
- * has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/form-field/styling.
296
- *
297
- * For information on applying color variants in M3, see
298
- * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
299
- */
300
- color: ThemePalette;
301
- /** Whether the label should always float or float as the user types. */
302
- get floatLabel(): FloatLabelType;
303
- set floatLabel(value: FloatLabelType);
304
- private _floatLabel;
305
- /** The form field appearance style. */
306
- get appearance(): MatFormFieldAppearance;
307
- set appearance(value: MatFormFieldAppearance);
308
- private _appearance;
309
- /**
310
- * Whether the form field should reserve space for one line of hint/error text (default)
311
- * or to have the spacing grow from 0px as needed based on the size of the hint/error content.
312
- * Note that when using dynamic sizing, layout shifts will occur when hint/error text changes.
313
- */
314
- get subscriptSizing(): SubscriptSizing;
315
- set subscriptSizing(value: SubscriptSizing);
316
- private _subscriptSizing;
317
- /** Text for the form field hint. */
318
- get hintLabel(): string;
319
- set hintLabel(value: string);
320
- private _hintLabel;
321
- _hasIconPrefix: boolean;
322
- _hasTextPrefix: boolean;
323
- _hasIconSuffix: boolean;
324
- _hasTextSuffix: boolean;
325
- readonly _labelId: string;
326
- readonly _hintLabelId: string;
327
- /** Gets the current form field control */
328
- get _control(): MatFormFieldControl<any>;
329
- set _control(value: MatFormFieldControl<any>);
330
- private _destroyed;
331
- private _isFocused;
332
- private _explicitFormFieldControl;
333
- private _needsOutlineLabelOffsetUpdate;
334
- private _previousControl;
335
- private _previousControlValidatorFn;
336
- private _stateChanges;
337
- private _valueChanges;
338
- private _describedByChanges;
339
- protected readonly _animationsDisabled: boolean;
340
- constructor(...args: unknown[]);
341
- ngAfterViewInit(): void;
342
- ngAfterContentInit(): void;
343
- ngAfterContentChecked(): void;
344
- ngOnDestroy(): void;
345
- /**
346
- * Gets the id of the label element. If no label is present, returns `null`.
347
- */
348
- getLabelId: i0.Signal<string | null>;
349
- /**
350
- * Gets an ElementRef for the element that a overlay attached to the form field
351
- * should be positioned relative to.
352
- */
353
- getConnectedOverlayOrigin(): ElementRef;
354
- /** Animates the placeholder up and locks it in position. */
355
- _animateAndLockLabel(): void;
356
- /** Initializes the registered form field control. */
357
- private _initializeControl;
358
- private _checkPrefixAndSuffixTypes;
359
- /** Initializes the prefix and suffix containers. */
360
- private _initializePrefixAndSuffix;
361
- /**
362
- * Initializes the subscript by validating hints and synchronizing "aria-describedby" ids
363
- * with the custom form field control. Also subscribes to hint and error changes in order
364
- * to be able to validate and synchronize ids on change.
365
- */
366
- private _initializeSubscript;
367
- /** Throws an error if the form field's control is missing. */
368
- private _assertFormFieldControl;
369
- private _updateFocusState;
370
- /**
371
- * The floating label in the docked state needs to account for prefixes. The horizontal offset
372
- * is calculated whenever the appearance changes to `outline`, the prefixes change, or when the
373
- * form field is added to the DOM. This method sets up all subscriptions which are needed to
374
- * trigger the label offset update.
375
- */
376
- private _initializeOutlineLabelOffsetSubscriptions;
377
- /** Whether the floating label should always float or not. */
378
- _shouldAlwaysFloat(): boolean;
379
- _hasOutline(): boolean;
380
- /**
381
- * Whether the label should display in the infix. Labels in the outline appearance are
382
- * displayed as part of the notched-outline and are horizontally offset to account for
383
- * form field prefix content. This won't work in server side rendering since we cannot
384
- * measure the width of the prefix container. To make the docked label appear as if the
385
- * right offset has been calculated, we forcibly render the label inside the infix. Since
386
- * the label is part of the infix, the label cannot overflow the prefix content.
387
- */
388
- _forceDisplayInfixLabel(): boolean | 0;
389
- _hasFloatingLabel: i0.Signal<boolean>;
390
- _shouldLabelFloat(): boolean;
391
- /**
392
- * Determines whether a class from the AbstractControlDirective
393
- * should be forwarded to the host element.
394
- */
395
- _shouldForward(prop: keyof AbstractControlDirective): boolean;
396
- /** Determines whether to display hints or errors. */
397
- _getDisplayedMessages(): 'error' | 'hint';
398
- /** Handle label resize events. */
399
- _handleLabelResized(): void;
400
- /** Refreshes the width of the outline-notch, if present. */
401
- _refreshOutlineNotchWidth(): void;
402
- /** Does any extra processing that is required when handling the hints. */
403
- private _processHints;
404
- /**
405
- * Ensure that there is a maximum of one of each "mat-hint" alignment specified. The hint
406
- * label specified set through the input is being considered as "start" aligned.
407
- *
408
- * This method is a noop if Angular runs in production mode.
409
- */
410
- private _validateHints;
411
- /**
412
- * Sets the list of element IDs that describe the child control. This allows the control to update
413
- * its `aria-describedby` attribute accordingly.
414
- */
415
- private _syncDescribedByIds;
416
- /**
417
- * Updates the horizontal offset of the label in the outline appearance. In the outline
418
- * appearance, the notched-outline and label are not relative to the infix container because
419
- * the outline intends to surround prefixes, suffixes and the infix. This means that the
420
- * floating label by default overlaps prefixes in the docked state. To avoid this, we need to
421
- * horizontally offset the label by the width of the prefix container. The MDC text-field does
422
- * not need to do this because they use a fixed width for prefixes. Hence, they can simply
423
- * incorporate the horizontal offset into their default text-field styles.
424
- */
425
- private _updateOutlineLabelOffset;
426
- /** Checks whether the form field is attached to the DOM. */
427
- private _isAttachedToDom;
428
- static ɵfac: i0.ɵɵFactoryDeclaration<MatFormField, never>;
429
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "color": { "alias": "color"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "hintLabel": { "alias": "hintLabel"; "required": false; }; }, {}, ["_labelChild", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error, [matError]", "mat-hint:not([align='end'])", "mat-hint[align='end']"], true, never>;
430
- }
431
-
432
- declare class MatFormFieldModule {
433
- static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldModule, never>;
434
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatFormFieldModule, never, [typeof i1.MatCommonModule, typeof i2.ObserversModule, typeof MatFormField, typeof MatLabel, typeof MatError, typeof MatHint, typeof MatPrefix, typeof MatSuffix], [typeof MatFormField, typeof MatLabel, typeof MatHint, typeof MatError, typeof MatPrefix, typeof MatSuffix, typeof i1.MatCommonModule]>;
435
- static ɵinj: i0.ɵɵInjectorDeclaration<MatFormFieldModule>;
436
- }
1
+ export { a as MatFormFieldModule, M as MatLabel } from '../module.d-c17c834e.js';
2
+ export { F as FloatLabelType, M as MAT_ERROR, i as MAT_FORM_FIELD, j as MAT_FORM_FIELD_DEFAULT_OPTIONS, c as MAT_PREFIX, e as MAT_SUFFIX, a as MatError, k as MatFormField, g as MatFormFieldAppearance, h as MatFormFieldDefaultOptions, b as MatHint, d as MatPrefix, f as MatSuffix, S as SubscriptSizing } from '../form-field.d-2edbc094.js';
3
+ export { M as MatFormFieldControl } from '../form-field-control.d-eb86711c.js';
4
+ import '@angular/core';
5
+ import '../common-module.d-0e6515ae.js';
6
+ import '@angular/cdk/bidi';
7
+ import '@angular/cdk/observers';
8
+ import '@angular/cdk/coercion';
9
+ import '@angular/forms';
10
+ import '../palette.d-ec4a617c.js';
11
+ import 'rxjs';
437
12
 
438
13
  /** @docs-private */
439
14
  declare function getMatFormFieldPlaceholderConflictError(): Error;
@@ -452,4 +27,4 @@ declare const matFormFieldAnimations: {
452
27
  readonly transitionMessages: any;
453
28
  };
454
29
 
455
- export { type FloatLabelType, MAT_ERROR, MAT_FORM_FIELD, MAT_FORM_FIELD_DEFAULT_OPTIONS, MAT_PREFIX, MAT_SUFFIX, MatError, MatFormField, type MatFormFieldAppearance, MatFormFieldControl$1 as MatFormFieldControl, type MatFormFieldDefaultOptions, MatFormFieldModule, MatHint, MatLabel, MatPrefix, MatSuffix, type SubscriptSizing, getMatFormFieldDuplicatedHintError, getMatFormFieldMissingControlError, getMatFormFieldPlaceholderConflictError, matFormFieldAnimations };
30
+ export { getMatFormFieldDuplicatedHintError, getMatFormFieldMissingControlError, getMatFormFieldPlaceholderConflictError, matFormFieldAnimations };
@@ -1,10 +1,2 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
-
3
- /**
4
- * Base class for custom form-field control harnesses. Harnesses for
5
- * custom controls with form-fields need to implement this interface.
6
- */
7
- declare abstract class MatFormFieldControlHarness extends ComponentHarness {
8
- }
9
-
10
- export { MatFormFieldControlHarness };
1
+ export { M as MatFormFieldControlHarness } from '../../../form-field-control-harness.d-2d91f25a.js';
2
+ import '@angular/cdk/testing';
@@ -1,9 +1,11 @@
1
- import { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control';
2
- export { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control';
1
+ import { M as MatFormFieldControlHarness } from '../../form-field-control-harness.d-2d91f25a.js';
2
+ export { M as MatFormFieldControlHarness } from '../../form-field-control-harness.d-2d91f25a.js';
3
3
  import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
4
- import { MatInputHarness } from '@angular/material/input/testing';
5
- import { MatSelectHarness } from '@angular/material/select/testing';
6
- import { MatDatepickerInputHarness, MatDateRangeInputHarness } from '@angular/material/datepicker/testing';
4
+ import { M as MatInputHarness } from '../../input-harness.d-4eecd1d3.js';
5
+ import { M as MatSelectHarness } from '../../select-harness.d-7441a7ac.js';
6
+ import { M as MatDatepickerInputHarness, g as MatDateRangeInputHarness } from '../../date-range-input-harness.d-549a9f7e.js';
7
+ import '../../option-harness.d-3d33fc9a.js';
8
+ import '../../optgroup-harness.d-7f741f69.js';
7
9
 
8
10
  /** A set of criteria that can be used to filter a list of `MatFormFieldHarness` instances. */
9
11
  interface FormFieldHarnessFilters extends BaseHarnessFilters {
@@ -0,0 +1,10 @@
1
+ import { ComponentHarness } from '@angular/cdk/testing';
2
+
3
+ /**
4
+ * Base class for custom form-field control harnesses. Harnesses for
5
+ * custom controls with form-fields need to implement this interface.
6
+ */
7
+ declare abstract class MatFormFieldControlHarness extends ComponentHarness {
8
+ }
9
+
10
+ export { MatFormFieldControlHarness as M };
@@ -0,0 +1,62 @@
1
+ import { Observable } from 'rxjs';
2
+ import { NgControl, AbstractControlDirective } from '@angular/forms';
3
+ import * as i0 from '@angular/core';
4
+
5
+ /** An interface which allows a control to work inside of a `MatFormField`. */
6
+ declare abstract class MatFormFieldControl<T> {
7
+ /** The value of the control. */
8
+ value: T | null;
9
+ /**
10
+ * Stream that emits whenever the state of the control changes such that the parent `MatFormField`
11
+ * needs to run change detection.
12
+ */
13
+ readonly stateChanges: Observable<void>;
14
+ /** The element ID for this control. */
15
+ readonly id: string;
16
+ /** The placeholder for this control. */
17
+ readonly placeholder: string;
18
+ /** Gets the AbstractControlDirective for this control. */
19
+ readonly ngControl: NgControl | AbstractControlDirective | null;
20
+ /** Whether the control is focused. */
21
+ readonly focused: boolean;
22
+ /** Whether the control is empty. */
23
+ readonly empty: boolean;
24
+ /** Whether the `MatFormField` label should try to float. */
25
+ readonly shouldLabelFloat: boolean;
26
+ /** Whether the control is required. */
27
+ readonly required: boolean;
28
+ /** Whether the control is disabled. */
29
+ readonly disabled: boolean;
30
+ /** Whether the control is in an error state. */
31
+ readonly errorState: boolean;
32
+ /**
33
+ * An optional name for the control type that can be used to distinguish `mat-form-field` elements
34
+ * based on their control type. The form field will add a class,
35
+ * `mat-form-field-type-{{controlType}}` to its root element.
36
+ */
37
+ readonly controlType?: string;
38
+ /**
39
+ * Whether the input is currently in an autofilled state. If property is not present on the
40
+ * control it is assumed to be false.
41
+ */
42
+ readonly autofilled?: boolean;
43
+ /**
44
+ * Value of `aria-describedby` that should be merged with the described-by ids
45
+ * which are set by the form-field.
46
+ */
47
+ readonly userAriaDescribedBy?: string;
48
+ /**
49
+ * Whether to automatically assign the ID of the form field as the `for` attribute
50
+ * on the `<label>` inside the form field. Set this to true to prevent the form
51
+ * field from associating the label with non-native elements.
52
+ */
53
+ readonly disableAutomaticLabeling?: boolean;
54
+ /** Sets the list of element IDs that currently describe this control. */
55
+ abstract setDescribedByIds(ids: string[]): void;
56
+ /** Handles a click on the control's container. */
57
+ abstract onContainerClick(event: MouseEvent): void;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldControl<any>, never>;
59
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldControl<any>, never, never, {}, {}, never, never, true, never>;
60
+ }
61
+
62
+ export { MatFormFieldControl as M };