@angular/material 20.0.0-next.0 → 20.0.0-next.2

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