@angular/material 17.0.2 → 17.1.0-next.1

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 (329) hide show
  1. package/autocomplete/index.d.ts +14 -10
  2. package/badge/index.d.ts +5 -5
  3. package/bottom-sheet/index.d.ts +6 -6
  4. package/button/_fab-theme.scss +65 -32
  5. package/button/_icon-button-theme.scss +91 -54
  6. package/button/index.d.ts +13 -13
  7. package/button-toggle/index.d.ts +5 -5
  8. package/card/index.d.ts +18 -18
  9. package/card/testing/index.d.ts +1 -1
  10. package/checkbox/index.d.ts +7 -7
  11. package/chips/index.d.ts +103 -126
  12. package/core/index.d.ts +51 -32
  13. package/core/tokens/m2/_index.scss +10 -0
  14. package/datepicker/index.d.ts +109 -109
  15. package/datepicker/testing/index.d.ts +1 -1
  16. package/dialog/index.d.ts +1 -1
  17. package/dialog/testing/index.d.ts +1 -1
  18. package/divider/index.d.ts +4 -4
  19. package/esm2022/autocomplete/autocomplete-origin.mjs +3 -2
  20. package/esm2022/autocomplete/autocomplete-trigger.mjs +11 -4
  21. package/esm2022/autocomplete/autocomplete.mjs +4 -4
  22. package/esm2022/autocomplete/module.mjs +21 -5
  23. package/esm2022/autocomplete/public-api.mjs +3 -1
  24. package/esm2022/badge/badge-module.mjs +3 -4
  25. package/esm2022/badge/badge.mjs +3 -2
  26. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +4 -4
  27. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +6 -5
  28. package/esm2022/bottom-sheet/bottom-sheet.mjs +3 -4
  29. package/esm2022/button/button.mjs +5 -5
  30. package/esm2022/button/fab.mjs +9 -9
  31. package/esm2022/button/icon-button.mjs +5 -5
  32. package/esm2022/button/module.mjs +14 -10
  33. package/esm2022/button-toggle/button-toggle-module.mjs +3 -4
  34. package/esm2022/button-toggle/button-toggle.mjs +6 -5
  35. package/esm2022/card/card.mjs +29 -18
  36. package/esm2022/card/module.mjs +4 -5
  37. package/esm2022/card/testing/card-harness.mjs +9 -1
  38. package/esm2022/checkbox/checkbox-required-validator.mjs +4 -2
  39. package/esm2022/checkbox/checkbox.mjs +31 -17
  40. package/esm2022/checkbox/module.mjs +5 -6
  41. package/esm2022/chips/chip-action.mjs +15 -13
  42. package/esm2022/chips/chip-edit-input.mjs +3 -2
  43. package/esm2022/chips/chip-grid.mjs +41 -40
  44. package/esm2022/chips/chip-icons.mjs +7 -4
  45. package/esm2022/chips/chip-input.mjs +15 -17
  46. package/esm2022/chips/chip-listbox.mjs +20 -23
  47. package/esm2022/chips/chip-option.mjs +13 -12
  48. package/esm2022/chips/chip-row.mjs +6 -7
  49. package/esm2022/chips/chip-set.mjs +20 -19
  50. package/esm2022/chips/chip.mjs +50 -44
  51. package/esm2022/chips/module.mjs +4 -5
  52. package/esm2022/chips/tokens.mjs +8 -2
  53. package/esm2022/core/common-behaviors/error-state.mjs +50 -11
  54. package/esm2022/core/common-behaviors/index.mjs +2 -2
  55. package/esm2022/core/line/line.mjs +5 -5
  56. package/esm2022/core/option/index.mjs +3 -4
  57. package/esm2022/core/option/optgroup.mjs +3 -3
  58. package/esm2022/core/option/option.mjs +7 -7
  59. package/esm2022/core/ripple/index.mjs +3 -4
  60. package/esm2022/core/ripple/ripple-ref.mjs +10 -2
  61. package/esm2022/core/ripple/ripple-renderer.mjs +11 -11
  62. package/esm2022/core/ripple/ripple.mjs +3 -2
  63. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +3 -4
  64. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  65. package/esm2022/core/version.mjs +1 -1
  66. package/esm2022/datepicker/calendar-body.mjs +4 -4
  67. package/esm2022/datepicker/calendar.mjs +8 -12
  68. package/esm2022/datepicker/date-range-input-parts.mjs +35 -14
  69. package/esm2022/datepicker/date-range-input.mjs +13 -13
  70. package/esm2022/datepicker/date-range-picker.mjs +3 -2
  71. package/esm2022/datepicker/datepicker-actions.mjs +7 -5
  72. package/esm2022/datepicker/datepicker-base.mjs +57 -62
  73. package/esm2022/datepicker/datepicker-input-base.mjs +8 -7
  74. package/esm2022/datepicker/datepicker-input.mjs +3 -2
  75. package/esm2022/datepicker/datepicker-module.mjs +15 -13
  76. package/esm2022/datepicker/datepicker-toggle.mjs +10 -10
  77. package/esm2022/datepicker/datepicker.mjs +3 -2
  78. package/esm2022/datepicker/month-view.mjs +3 -4
  79. package/esm2022/datepicker/multi-year-view.mjs +3 -4
  80. package/esm2022/datepicker/testing/calendar-harness.mjs +11 -4
  81. package/esm2022/datepicker/year-view.mjs +3 -4
  82. package/esm2022/dialog/dialog-container.mjs +5 -6
  83. package/esm2022/dialog/dialog-ref.mjs +10 -4
  84. package/esm2022/dialog/module.mjs +2 -2
  85. package/esm2022/dialog/testing/dialog-harness.mjs +11 -4
  86. package/esm2022/dialog/testing/dialog-opener.mjs +3 -3
  87. package/esm2022/dialog/testing/public-api.mjs +2 -2
  88. package/esm2022/divider/divider-module.mjs +3 -4
  89. package/esm2022/divider/divider.mjs +3 -3
  90. package/esm2022/expansion/accordion.mjs +8 -13
  91. package/esm2022/expansion/expansion-module.mjs +14 -7
  92. package/esm2022/expansion/expansion-panel-content.mjs +3 -2
  93. package/esm2022/expansion/expansion-panel-header.mjs +18 -16
  94. package/esm2022/expansion/expansion-panel.mjs +11 -11
  95. package/esm2022/expansion/testing/expansion-harness.mjs +14 -6
  96. package/esm2022/form-field/directives/error.mjs +3 -2
  97. package/esm2022/form-field/directives/floating-label.mjs +3 -2
  98. package/esm2022/form-field/directives/hint.mjs +3 -2
  99. package/esm2022/form-field/directives/label.mjs +3 -2
  100. package/esm2022/form-field/directives/line-ripple.mjs +3 -2
  101. package/esm2022/form-field/directives/notched-outline.mjs +3 -3
  102. package/esm2022/form-field/directives/prefix.mjs +3 -2
  103. package/esm2022/form-field/directives/suffix.mjs +3 -2
  104. package/esm2022/form-field/form-field.mjs +12 -11
  105. package/esm2022/form-field/module.mjs +14 -16
  106. package/esm2022/grid-list/grid-list-module.mjs +13 -9
  107. package/esm2022/grid-list/grid-list.mjs +3 -3
  108. package/esm2022/grid-list/grid-tile.mjs +11 -8
  109. package/esm2022/grid-list/testing/grid-tile-harness.mjs +9 -3
  110. package/esm2022/grid-list/tile-coordinator.mjs +1 -1
  111. package/esm2022/icon/icon-module.mjs +3 -4
  112. package/esm2022/icon/icon.mjs +25 -29
  113. package/esm2022/icon/testing/icon-harness-filters.mjs +7 -2
  114. package/esm2022/icon/testing/icon-harness.mjs +4 -3
  115. package/esm2022/input/input.mjs +26 -28
  116. package/esm2022/input/module.mjs +3 -4
  117. package/esm2022/input/public-api.mjs +3 -1
  118. package/esm2022/list/action-list.mjs +3 -3
  119. package/esm2022/list/list-base.mjs +5 -3
  120. package/esm2022/list/list-item-sections.mjs +13 -7
  121. package/esm2022/list/list-module.mjs +12 -13
  122. package/esm2022/list/list-option.mjs +6 -6
  123. package/esm2022/list/list.mjs +6 -6
  124. package/esm2022/list/nav-list.mjs +3 -3
  125. package/esm2022/list/selection-list.mjs +3 -3
  126. package/esm2022/list/subheader.mjs +3 -2
  127. package/esm2022/list/testing/list-item-harness-base.mjs +18 -6
  128. package/esm2022/list/testing/public-api.mjs +2 -2
  129. package/esm2022/menu/menu-content.mjs +3 -2
  130. package/esm2022/menu/menu-item.mjs +4 -4
  131. package/esm2022/menu/menu-trigger.mjs +10 -3
  132. package/esm2022/menu/menu.mjs +4 -4
  133. package/esm2022/menu/module.mjs +23 -5
  134. package/esm2022/paginator/module.mjs +4 -5
  135. package/esm2022/paginator/paginator.mjs +37 -41
  136. package/esm2022/progress-bar/module.mjs +3 -3
  137. package/esm2022/progress-bar/progress-bar.mjs +25 -20
  138. package/esm2022/progress-spinner/module.mjs +3 -4
  139. package/esm2022/progress-spinner/progress-spinner.mjs +35 -34
  140. package/esm2022/radio/module.mjs +3 -4
  141. package/esm2022/radio/radio.mjs +42 -35
  142. package/esm2022/select/module.mjs +19 -5
  143. package/esm2022/select/public-api.mjs +5 -1
  144. package/esm2022/select/select.mjs +83 -66
  145. package/esm2022/sidenav/drawer.mjs +7 -6
  146. package/esm2022/sidenav/sidenav-module.mjs +12 -8
  147. package/esm2022/sidenav/sidenav.mjs +7 -6
  148. package/esm2022/slide-toggle/module.mjs +15 -7
  149. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +3 -2
  150. package/esm2022/slide-toggle/slide-toggle.mjs +4 -4
  151. package/esm2022/slider/module.mjs +17 -5
  152. package/esm2022/slider/slider-input.mjs +26 -23
  153. package/esm2022/slider/slider-interface.mjs +16 -1
  154. package/esm2022/slider/slider-thumb.mjs +8 -9
  155. package/esm2022/slider/slider.mjs +74 -73
  156. package/esm2022/slider/testing/slider-harness-filters.mjs +7 -2
  157. package/esm2022/slider/testing/slider-harness.mjs +4 -3
  158. package/esm2022/slider/testing/slider-thumb-harness.mjs +3 -2
  159. package/esm2022/snack-bar/module.mjs +2 -2
  160. package/esm2022/snack-bar/simple-snack-bar.mjs +4 -6
  161. package/esm2022/snack-bar/snack-bar-container.mjs +5 -6
  162. package/esm2022/snack-bar/snack-bar-ref.mjs +1 -1
  163. package/esm2022/sort/sort-header.mjs +17 -25
  164. package/esm2022/sort/sort-module.mjs +3 -4
  165. package/esm2022/sort/sort.mjs +13 -19
  166. package/esm2022/stepper/step-content.mjs +3 -2
  167. package/esm2022/stepper/step-header.mjs +11 -16
  168. package/esm2022/stepper/step-label.mjs +3 -2
  169. package/esm2022/stepper/stepper-button.mjs +5 -3
  170. package/esm2022/stepper/stepper-icon.mjs +3 -2
  171. package/esm2022/stepper/stepper-module.mjs +14 -13
  172. package/esm2022/stepper/stepper.mjs +11 -13
  173. package/esm2022/stepper/testing/step-harness-filters.mjs +7 -2
  174. package/esm2022/stepper/testing/stepper-harness.mjs +4 -3
  175. package/esm2022/table/cell.mjs +15 -8
  176. package/esm2022/table/module.mjs +4 -5
  177. package/esm2022/table/row.mjs +19 -10
  178. package/esm2022/table/table.mjs +7 -7
  179. package/esm2022/table/text-column.mjs +6 -4
  180. package/esm2022/tabs/module.mjs +8 -41
  181. package/esm2022/tabs/paginated-tab-header.mjs +12 -18
  182. package/esm2022/tabs/tab-body.mjs +6 -4
  183. package/esm2022/tabs/tab-content.mjs +3 -2
  184. package/esm2022/tabs/tab-group.mjs +69 -78
  185. package/esm2022/tabs/tab-header.mjs +10 -16
  186. package/esm2022/tabs/tab-label-wrapper.mjs +13 -8
  187. package/esm2022/tabs/tab-label.mjs +3 -2
  188. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +51 -45
  189. package/esm2022/tabs/tab.mjs +12 -12
  190. package/esm2022/toolbar/testing/toolbar-harness.mjs +7 -2
  191. package/esm2022/toolbar/toolbar-module.mjs +3 -4
  192. package/esm2022/toolbar/toolbar.mjs +14 -18
  193. package/esm2022/tooltip/module.mjs +3 -4
  194. package/esm2022/tooltip/tooltip.mjs +14 -8
  195. package/esm2022/tree/node.mjs +24 -21
  196. package/esm2022/tree/outlet.mjs +3 -2
  197. package/esm2022/tree/padding.mjs +12 -4
  198. package/esm2022/tree/toggle.mjs +3 -2
  199. package/esm2022/tree/tree-module.mjs +4 -5
  200. package/esm2022/tree/tree.mjs +3 -4
  201. package/expansion/_expansion-theme.scss +56 -22
  202. package/expansion/index.d.ts +25 -33
  203. package/expansion/testing/index.d.ts +1 -1
  204. package/fesm2022/autocomplete.mjs +39 -15
  205. package/fesm2022/autocomplete.mjs.map +1 -1
  206. package/fesm2022/badge.mjs +4 -4
  207. package/fesm2022/badge.mjs.map +1 -1
  208. package/fesm2022/bottom-sheet.mjs +21 -22
  209. package/fesm2022/bottom-sheet.mjs.map +1 -1
  210. package/fesm2022/button-toggle.mjs +7 -8
  211. package/fesm2022/button-toggle.mjs.map +1 -1
  212. package/fesm2022/button.mjs +29 -25
  213. package/fesm2022/button.mjs.map +1 -1
  214. package/fesm2022/card/testing.mjs +9 -1
  215. package/fesm2022/card/testing.mjs.map +1 -1
  216. package/fesm2022/card.mjs +31 -21
  217. package/fesm2022/card.mjs.map +1 -1
  218. package/fesm2022/checkbox.mjs +38 -23
  219. package/fesm2022/checkbox.mjs.map +1 -1
  220. package/fesm2022/chips.mjs +179 -156
  221. package/fesm2022/chips.mjs.map +1 -1
  222. package/fesm2022/core.mjs +87 -42
  223. package/fesm2022/core.mjs.map +1 -1
  224. package/fesm2022/datepicker/testing.mjs +11 -4
  225. package/fesm2022/datepicker/testing.mjs.map +1 -1
  226. package/fesm2022/datepicker.mjs +183 -156
  227. package/fesm2022/datepicker.mjs.map +1 -1
  228. package/fesm2022/dialog/testing.mjs +13 -6
  229. package/fesm2022/dialog/testing.mjs.map +1 -1
  230. package/fesm2022/dialog.mjs +15 -10
  231. package/fesm2022/dialog.mjs.map +1 -1
  232. package/fesm2022/divider.mjs +4 -5
  233. package/fesm2022/divider.mjs.map +1 -1
  234. package/fesm2022/expansion/testing.mjs +14 -6
  235. package/fesm2022/expansion/testing.mjs.map +1 -1
  236. package/fesm2022/expansion.mjs +51 -44
  237. package/fesm2022/expansion.mjs.map +1 -1
  238. package/fesm2022/form-field.mjs +38 -25
  239. package/fesm2022/form-field.mjs.map +1 -1
  240. package/fesm2022/grid-list/testing.mjs +9 -3
  241. package/fesm2022/grid-list/testing.mjs.map +1 -1
  242. package/fesm2022/grid-list.mjs +24 -17
  243. package/fesm2022/grid-list.mjs.map +1 -1
  244. package/fesm2022/icon/testing.mjs +10 -3
  245. package/fesm2022/icon/testing.mjs.map +1 -1
  246. package/fesm2022/icon.mjs +27 -31
  247. package/fesm2022/icon.mjs.map +1 -1
  248. package/fesm2022/input.mjs +28 -30
  249. package/fesm2022/input.mjs.map +1 -1
  250. package/fesm2022/list/testing.mjs +18 -6
  251. package/fesm2022/list/testing.mjs.map +1 -1
  252. package/fesm2022/list.mjs +44 -38
  253. package/fesm2022/list.mjs.map +1 -1
  254. package/fesm2022/menu.mjs +42 -18
  255. package/fesm2022/menu.mjs.map +1 -1
  256. package/fesm2022/paginator.mjs +39 -47
  257. package/fesm2022/paginator.mjs.map +1 -1
  258. package/fesm2022/progress-bar.mjs +27 -21
  259. package/fesm2022/progress-bar.mjs.map +1 -1
  260. package/fesm2022/progress-spinner.mjs +37 -37
  261. package/fesm2022/progress-spinner.mjs.map +1 -1
  262. package/fesm2022/radio.mjs +43 -37
  263. package/fesm2022/radio.mjs.map +1 -1
  264. package/fesm2022/select.mjs +102 -70
  265. package/fesm2022/select.mjs.map +1 -1
  266. package/fesm2022/sidenav.mjs +23 -17
  267. package/fesm2022/sidenav.mjs.map +1 -1
  268. package/fesm2022/slide-toggle.mjs +19 -11
  269. package/fesm2022/slide-toggle.mjs.map +1 -1
  270. package/fesm2022/slider/testing.mjs +11 -4
  271. package/fesm2022/slider/testing.mjs.map +1 -1
  272. package/fesm2022/slider.mjs +133 -102
  273. package/fesm2022/slider.mjs.map +1 -1
  274. package/fesm2022/snack-bar.mjs +13 -15
  275. package/fesm2022/snack-bar.mjs.map +1 -1
  276. package/fesm2022/sort.mjs +29 -42
  277. package/fesm2022/sort.mjs.map +1 -1
  278. package/fesm2022/stepper/testing.mjs +10 -3
  279. package/fesm2022/stepper/testing.mjs.map +1 -1
  280. package/fesm2022/stepper.mjs +42 -43
  281. package/fesm2022/stepper.mjs.map +1 -1
  282. package/fesm2022/table.mjs +44 -26
  283. package/fesm2022/table.mjs.map +1 -1
  284. package/fesm2022/tabs.mjs +594 -621
  285. package/fesm2022/tabs.mjs.map +1 -1
  286. package/fesm2022/toolbar/testing.mjs +7 -2
  287. package/fesm2022/toolbar/testing.mjs.map +1 -1
  288. package/fesm2022/toolbar.mjs +16 -20
  289. package/fesm2022/toolbar.mjs.map +1 -1
  290. package/fesm2022/tooltip.mjs +15 -10
  291. package/fesm2022/tooltip.mjs.map +1 -1
  292. package/fesm2022/tree.mjs +36 -30
  293. package/fesm2022/tree.mjs.map +1 -1
  294. package/form-field/index.d.ts +33 -45
  295. package/grid-list/index.d.ts +10 -10
  296. package/grid-list/testing/index.d.ts +1 -1
  297. package/icon/index.d.ts +14 -20
  298. package/icon/testing/index.d.ts +1 -1
  299. package/input/index.d.ts +33 -32
  300. package/list/index.d.ts +36 -36
  301. package/list/testing/index.d.ts +2 -2
  302. package/menu/index.d.ts +12 -12
  303. package/package.json +7 -7
  304. package/paginator/index.d.ts +21 -22
  305. package/prebuilt-themes/deeppurple-amber.css +1 -1
  306. package/prebuilt-themes/indigo-pink.css +1 -1
  307. package/prebuilt-themes/pink-bluegrey.css +1 -1
  308. package/prebuilt-themes/purple-green.css +1 -1
  309. package/progress-bar/index.d.ts +14 -17
  310. package/progress-spinner/index.d.ts +18 -19
  311. package/radio/index.d.ts +25 -27
  312. package/schematics/ng-add/index.js +2 -2
  313. package/schematics/ng-add/index.mjs +2 -2
  314. package/schematics/ng-generate/mdc-migration/index_bundled.js +11 -4
  315. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +3 -3
  316. package/select/index.d.ts +66 -49
  317. package/sidenav/index.d.ts +11 -11
  318. package/slide-toggle/index.d.ts +6 -6
  319. package/slider/index.d.ts +38 -38
  320. package/slider/testing/index.d.ts +1 -1
  321. package/sort/index.d.ts +19 -24
  322. package/stepper/index.d.ts +33 -43
  323. package/stepper/testing/index.d.ts +1 -1
  324. package/table/index.d.ts +24 -24
  325. package/tabs/index.d.ts +75 -103
  326. package/toolbar/index.d.ts +10 -17
  327. package/toolbar/testing/index.d.ts +1 -1
  328. package/tooltip/index.d.ts +8 -8
  329. package/tree/index.d.ts +26 -28
package/input/index.d.ts CHANGED
@@ -1,20 +1,22 @@
1
- import { _AbstractConstructor } from '@angular/material/core';
2
1
  import { AfterViewInit } from '@angular/core';
3
2
  import { AutofillMonitor } from '@angular/cdk/text-field';
4
3
  import { BooleanInput } from '@angular/cdk/coercion';
5
- import { CanUpdateErrorState } from '@angular/material/core';
6
- import { _Constructor } from '@angular/material/core';
7
4
  import { DoCheck } from '@angular/core';
8
5
  import { ElementRef } from '@angular/core';
9
6
  import { ErrorStateMatcher } from '@angular/material/core';
10
7
  import { FormGroupDirective } from '@angular/forms';
11
8
  import * as i0 from '@angular/core';
12
- import * as i2 from '@angular/material/core';
13
- import * as i3 from '@angular/material/form-field';
9
+ import * as i1 from '@angular/material/core';
10
+ import * as i2 from '@angular/material/form-field';
14
11
  import * as i4 from '@angular/cdk/text-field';
15
12
  import { InjectionToken } from '@angular/core';
13
+ import { MatError } from '@angular/material/form-field';
16
14
  import { MatFormField } from '@angular/material/form-field';
17
15
  import { MatFormFieldControl } from '@angular/material/form-field';
16
+ import { MatHint } from '@angular/material/form-field';
17
+ import { MatLabel } from '@angular/material/form-field';
18
+ import { MatPrefix } from '@angular/material/form-field';
19
+ import { MatSuffix } from '@angular/material/form-field';
18
20
  import { NgControl } from '@angular/forms';
19
21
  import { NgForm } from '@angular/forms';
20
22
  import { NgZone } from '@angular/core';
@@ -27,7 +29,7 @@ import { Subject } from 'rxjs';
27
29
  /** @docs-private */
28
30
  export declare function getMatInputUnsupportedTypeError(type: string): Error;
29
31
 
30
- declare namespace i1 {
32
+ declare namespace i3 {
31
33
  export {
32
34
  MatInput
33
35
  }
@@ -43,15 +45,23 @@ export declare const MAT_INPUT_VALUE_ACCESSOR: InjectionToken<{
43
45
  value: any;
44
46
  }>;
45
47
 
46
- export declare class MatInput extends _MatInputBase implements MatFormFieldControl<any>, OnChanges, OnDestroy, AfterViewInit, DoCheck, CanUpdateErrorState {
48
+ export { MatError }
49
+
50
+ export { MatFormField }
51
+
52
+ export { MatHint }
53
+
54
+ export declare class MatInput implements MatFormFieldControl<any>, OnChanges, OnDestroy, AfterViewInit, DoCheck {
47
55
  protected _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
48
56
  protected _platform: Platform;
57
+ ngControl: NgControl;
49
58
  private _autofillMonitor;
50
59
  protected _formField?: MatFormField | undefined;
51
60
  protected _uid: string;
52
61
  protected _previousNativeValue: any;
53
62
  private _inputValueAccessor;
54
63
  private _previousPlaceholder;
64
+ private _errorStateTracker;
55
65
  /** Whether the component is being rendered on the server. */
56
66
  readonly _isServer: boolean;
57
67
  /** Whether the component is a native html select. */
@@ -116,7 +126,8 @@ export declare class MatInput extends _MatInputBase implements MatFormFieldContr
116
126
  set type(value: string);
117
127
  protected _type: string;
118
128
  /** An object used to control when error messages are shown. */
119
- errorStateMatcher: ErrorStateMatcher;
129
+ get errorStateMatcher(): ErrorStateMatcher;
130
+ set errorStateMatcher(value: ErrorStateMatcher);
120
131
  /**
121
132
  * Implemented as part of MatFormFieldControl.
122
133
  * @docs-private
@@ -132,14 +143,19 @@ export declare class MatInput extends _MatInputBase implements MatFormFieldContr
132
143
  get readonly(): boolean;
133
144
  set readonly(value: BooleanInput);
134
145
  private _readonly;
146
+ /** Whether the input is in an error state. */
147
+ get errorState(): boolean;
148
+ set errorState(value: boolean);
135
149
  protected _neverEmptyInputTypes: string[];
136
- constructor(_elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>, _platform: Platform, ngControl: NgControl, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _defaultErrorStateMatcher: ErrorStateMatcher, inputValueAccessor: any, _autofillMonitor: AutofillMonitor, ngZone: NgZone, _formField?: MatFormField | undefined);
150
+ constructor(_elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>, _platform: Platform, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, inputValueAccessor: any, _autofillMonitor: AutofillMonitor, ngZone: NgZone, _formField?: MatFormField | undefined);
137
151
  ngAfterViewInit(): void;
138
152
  ngOnChanges(): void;
139
153
  ngOnDestroy(): void;
140
154
  ngDoCheck(): void;
141
155
  /** Focuses the input. */
142
156
  focus(options?: FocusOptions): void;
157
+ /** Refreshes the error state of the input. */
158
+ updateErrorState(): void;
143
159
  /** Callback for the cases where the focused state of the input changes. */
144
160
  _focusChanged(isFocused: boolean): void;
145
161
  _onInput(): void;
@@ -179,34 +195,19 @@ export declare class MatInput extends _MatInputBase implements MatFormFieldContr
179
195
  _isInlineSelect(): boolean;
180
196
  private _iOSKeyupListener;
181
197
  static ɵfac: i0.ɵɵFactoryDeclaration<MatInput, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }, null, null, { optional: true; }]>;
182
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatInput, "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", ["matInput"], { "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; }; "value": { "alias": "value"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, never, false, never>;
198
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatInput, "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", ["matInput"], { "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "name": { "alias": "name"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; }; "value": { "alias": "value"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, never, true, never>;
183
199
  }
184
200
 
185
- /** @docs-private */
186
- declare const _MatInputBase: _Constructor<CanUpdateErrorState> & _AbstractConstructor<CanUpdateErrorState> & {
187
- new (_defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl): {
188
- /**
189
- * Emits whenever the component state changes and should cause the parent
190
- * form field to update. Implemented as part of `MatFormFieldControl`.
191
- * @docs-private
192
- */
193
- readonly stateChanges: Subject<void>;
194
- _defaultErrorStateMatcher: ErrorStateMatcher;
195
- _parentForm: NgForm;
196
- _parentFormGroup: FormGroupDirective;
197
- /**
198
- * Form control bound to the component.
199
- * Implemented as part of `MatFormFieldControl`.
200
- * @docs-private
201
- */
202
- ngControl: NgControl;
203
- };
204
- };
205
-
206
201
  export declare class MatInputModule {
207
202
  static ɵfac: i0.ɵɵFactoryDeclaration<MatInputModule, never>;
208
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatInputModule, [typeof i1.MatInput], [typeof i2.MatCommonModule, typeof i3.MatFormFieldModule], [typeof i1.MatInput, typeof i3.MatFormFieldModule, typeof i4.TextFieldModule, typeof i2.MatCommonModule]>;
203
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatInputModule, never, [typeof i1.MatCommonModule, typeof i2.MatFormFieldModule, typeof i3.MatInput], [typeof i3.MatInput, typeof i2.MatFormFieldModule, typeof i4.TextFieldModule, typeof i1.MatCommonModule]>;
209
204
  static ɵinj: i0.ɵɵInjectorDeclaration<MatInputModule>;
210
205
  }
211
206
 
207
+ export { MatLabel }
208
+
209
+ export { MatPrefix }
210
+
211
+ export { MatSuffix }
212
+
212
213
  export { }
package/list/index.d.ts CHANGED
@@ -5,10 +5,10 @@ import { ControlValueAccessor } from '@angular/forms';
5
5
  import { ElementRef } from '@angular/core';
6
6
  import { EventEmitter } from '@angular/core';
7
7
  import * as i0 from '@angular/core';
8
- import * as i10 from '@angular/material/core';
8
+ import * as i1 from '@angular/cdk/observers';
9
9
  import * as i11 from '@angular/material/divider';
10
- import * as i8 from '@angular/cdk/observers';
11
- import * as i9 from '@angular/common';
10
+ import * as i2 from '@angular/common';
11
+ import * as i3 from '@angular/material/core';
12
12
  import { InjectionToken } from '@angular/core';
13
13
  import { NgZone } from '@angular/core';
14
14
  import { OnChanges } from '@angular/core';
@@ -23,7 +23,18 @@ import { SelectionModel } from '@angular/cdk/collections';
23
23
  import { SimpleChanges } from '@angular/core';
24
24
  import { ThemePalette } from '@angular/material/core';
25
25
 
26
- declare namespace i1 {
26
+ declare namespace i10 {
27
+ export {
28
+ MatListItemTitle,
29
+ MatListItemLine,
30
+ MatListItemMeta,
31
+ _MatListItemGraphicBase,
32
+ MatListItemAvatar,
33
+ MatListItemIcon
34
+ }
35
+ }
36
+
37
+ declare namespace i4 {
27
38
  export {
28
39
  MAT_LIST,
29
40
  MatList,
@@ -31,20 +42,20 @@ declare namespace i1 {
31
42
  }
32
43
  }
33
44
 
34
- declare namespace i2 {
45
+ declare namespace i5 {
35
46
  export {
36
47
  MatActionList
37
48
  }
38
49
  }
39
50
 
40
- declare namespace i3 {
51
+ declare namespace i6 {
41
52
  export {
42
53
  MAT_NAV_LIST,
43
54
  MatNavList
44
55
  }
45
56
  }
46
57
 
47
- declare namespace i4 {
58
+ declare namespace i7 {
48
59
  export {
49
60
  MAT_SELECTION_LIST_VALUE_ACCESSOR,
50
61
  MatSelectionListChange,
@@ -52,7 +63,7 @@ declare namespace i4 {
52
63
  }
53
64
  }
54
65
 
55
- declare namespace i5 {
66
+ declare namespace i8 {
56
67
  export {
57
68
  SELECTION_LIST,
58
69
  SelectionList,
@@ -60,23 +71,12 @@ declare namespace i5 {
60
71
  }
61
72
  }
62
73
 
63
- declare namespace i6 {
74
+ declare namespace i9 {
64
75
  export {
65
76
  MatListSubheaderCssMatStyler
66
77
  }
67
78
  }
68
79
 
69
- declare namespace i7 {
70
- export {
71
- MatListItemTitle,
72
- MatListItemLine,
73
- MatListItemMeta,
74
- _MatListItemGraphicBase,
75
- MatListItemAvatar,
76
- MatListItemIcon
77
- }
78
- }
79
-
80
80
  /**
81
81
  * Interface describing a list option. This is used to avoid circular
82
82
  * dependencies between the list-option and the styler directives.
@@ -108,12 +108,12 @@ export declare const MAT_SELECTION_LIST_VALUE_ACCESSOR: any;
108
108
  export declare class MatActionList extends MatListBase {
109
109
  _isNonInteractive: boolean;
110
110
  static ɵfac: i0.ɵɵFactoryDeclaration<MatActionList, never>;
111
- static ɵcmp: i0.ɵɵComponentDeclaration<MatActionList, "mat-action-list", ["matActionList"], {}, {}, never, ["*"], false, never>;
111
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatActionList, "mat-action-list", ["matActionList"], {}, {}, never, ["*"], true, never>;
112
112
  }
113
113
 
114
114
  export declare class MatList extends MatListBase {
115
115
  static ɵfac: i0.ɵɵFactoryDeclaration<MatList, never>;
116
- static ɵcmp: i0.ɵɵComponentDeclaration<MatList, "mat-list", ["matList"], {}, {}, never, ["*"], false, never>;
116
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatList, "mat-list", ["matList"], {}, {}, never, ["*"], true, never>;
117
117
  }
118
118
 
119
119
  declare abstract class MatListBase {
@@ -131,7 +131,7 @@ declare abstract class MatListBase {
131
131
  private _disabled;
132
132
  protected _defaultOptions: MatListConfig | null;
133
133
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListBase, never>;
134
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatListBase, never, never, { "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
134
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatListBase, never, never, { "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
135
135
  }
136
136
 
137
137
  /** Object that can be used to configure the default options for the list module. */
@@ -157,7 +157,7 @@ export declare class MatListItem extends MatListItemBase {
157
157
  */
158
158
  _getAriaCurrent(): string | null;
159
159
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListItem, [null, null, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
160
- static ɵcmp: i0.ɵɵComponentDeclaration<MatListItem, "mat-list-item, a[mat-list-item], button[mat-list-item]", ["matListItem"], { "activated": { "alias": "activated"; "required": false; }; }, {}, ["_lines", "_titles", "_meta"], ["[matListItemAvatar],[matListItemIcon]", "[matListItemTitle]", "[matListItemLine]", "*", "[matListItemMeta]", "mat-divider"], false, never>;
160
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatListItem, "mat-list-item, a[mat-list-item], button[mat-list-item]", ["matListItem"], { "activated": { "alias": "activated"; "required": false; }; }, {}, ["_lines", "_titles", "_meta"], ["[matListItemAvatar],[matListItemIcon]", "[matListItemTitle]", "[matListItemLine]", "*", "[matListItemMeta]", "mat-divider"], true, never>;
161
161
  }
162
162
 
163
163
  /**
@@ -167,7 +167,7 @@ export declare class MatListItem extends MatListItemBase {
167
167
  */
168
168
  export declare class MatListItemAvatar extends _MatListItemGraphicBase {
169
169
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListItemAvatar, never>;
170
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemAvatar, "[matListItemAvatar]", never, {}, {}, never, never, false, never>;
170
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemAvatar, "[matListItemAvatar]", never, {}, {}, never, never, true, never>;
171
171
  }
172
172
 
173
173
  declare abstract class MatListItemBase implements AfterViewInit, OnDestroy, RippleTarget {
@@ -263,7 +263,7 @@ declare abstract class MatListItemBase implements AfterViewInit, OnDestroy, Ripp
263
263
  /** Checks whether the list item has unscoped text content. */
264
264
  private _checkDomForUnscopedTextContent;
265
265
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListItemBase, [null, null, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
266
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemBase, never, never, { "lines": { "alias": "lines"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["_avatars", "_icons"], never, false, never>;
266
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemBase, never, never, { "lines": { "alias": "lines"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["_avatars", "_icons"], never, true, never>;
267
267
  }
268
268
 
269
269
  /**
@@ -279,7 +279,7 @@ export declare class _MatListItemGraphicBase {
279
279
  constructor(_listOption: ListOption);
280
280
  _isAlignedAtStart(): boolean;
281
281
  static ɵfac: i0.ɵɵFactoryDeclaration<_MatListItemGraphicBase, [{ optional: true; }]>;
282
- static ɵdir: i0.ɵɵDirectiveDeclaration<_MatListItemGraphicBase, never, never, {}, {}, never, never, false, never>;
282
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_MatListItemGraphicBase, never, never, {}, {}, never, never, true, never>;
283
283
  }
284
284
 
285
285
  /**
@@ -289,7 +289,7 @@ export declare class _MatListItemGraphicBase {
289
289
  */
290
290
  export declare class MatListItemIcon extends _MatListItemGraphicBase {
291
291
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListItemIcon, never>;
292
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemIcon, "[matListItemIcon]", never, {}, {}, never, never, false, never>;
292
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemIcon, "[matListItemIcon]", never, {}, {}, never, never, true, never>;
293
293
  }
294
294
 
295
295
  /**
@@ -302,7 +302,7 @@ export declare class MatListItemLine {
302
302
  _elementRef: ElementRef<HTMLElement>;
303
303
  constructor(_elementRef: ElementRef<HTMLElement>);
304
304
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListItemLine, never>;
305
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemLine, "[matListItemLine]", never, {}, {}, never, never, false, never>;
305
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemLine, "[matListItemLine]", never, {}, {}, never, never, true, never>;
306
306
  }
307
307
 
308
308
  /**
@@ -313,7 +313,7 @@ export declare class MatListItemLine {
313
313
  */
314
314
  export declare class MatListItemMeta {
315
315
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListItemMeta, never>;
316
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemMeta, "[matListItemMeta]", never, {}, {}, never, never, false, never>;
316
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemMeta, "[matListItemMeta]", never, {}, {}, never, never, true, never>;
317
317
  }
318
318
 
319
319
  /**
@@ -326,12 +326,12 @@ export declare class MatListItemTitle {
326
326
  _elementRef: ElementRef<HTMLElement>;
327
327
  constructor(_elementRef: ElementRef<HTMLElement>);
328
328
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListItemTitle, never>;
329
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemTitle, "[matListItemTitle]", never, {}, {}, never, never, false, never>;
329
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatListItemTitle, "[matListItemTitle]", never, {}, {}, never, never, true, never>;
330
330
  }
331
331
 
332
332
  export declare class MatListModule {
333
333
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListModule, never>;
334
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatListModule, [typeof i1.MatList, typeof i2.MatActionList, typeof i3.MatNavList, typeof i4.MatSelectionList, typeof i1.MatListItem, typeof i5.MatListOption, typeof i6.MatListSubheaderCssMatStyler, typeof i7.MatListItemAvatar, typeof i7.MatListItemIcon, typeof i7.MatListItemLine, typeof i7.MatListItemTitle, typeof i7.MatListItemMeta], [typeof i8.ObserversModule, typeof i9.CommonModule, typeof i10.MatCommonModule, typeof i10.MatRippleModule, typeof i10.MatPseudoCheckboxModule], [typeof i1.MatList, typeof i2.MatActionList, typeof i3.MatNavList, typeof i4.MatSelectionList, typeof i1.MatListItem, typeof i5.MatListOption, typeof i7.MatListItemAvatar, typeof i7.MatListItemIcon, typeof i6.MatListSubheaderCssMatStyler, typeof i11.MatDividerModule, typeof i7.MatListItemLine, typeof i7.MatListItemTitle, typeof i7.MatListItemMeta]>;
334
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatListModule, never, [typeof i1.ObserversModule, typeof i2.CommonModule, typeof i3.MatCommonModule, typeof i3.MatRippleModule, typeof i3.MatPseudoCheckboxModule, typeof i4.MatList, typeof i5.MatActionList, typeof i6.MatNavList, typeof i7.MatSelectionList, typeof i4.MatListItem, typeof i8.MatListOption, typeof i9.MatListSubheaderCssMatStyler, typeof i10.MatListItemAvatar, typeof i10.MatListItemIcon, typeof i10.MatListItemLine, typeof i10.MatListItemTitle, typeof i10.MatListItemMeta], [typeof i4.MatList, typeof i5.MatActionList, typeof i6.MatNavList, typeof i7.MatSelectionList, typeof i4.MatListItem, typeof i8.MatListOption, typeof i10.MatListItemAvatar, typeof i10.MatListItemIcon, typeof i9.MatListSubheaderCssMatStyler, typeof i11.MatDividerModule, typeof i10.MatListItemLine, typeof i10.MatListItemTitle, typeof i10.MatListItemMeta]>;
335
335
  static ɵinj: i0.ɵɵInjectorDeclaration<MatListModule>;
336
336
  }
337
337
 
@@ -410,7 +410,7 @@ export declare class MatListOption extends MatListItemBase implements ListOption
410
410
  /** Sets the tabindex of the list option. */
411
411
  _setTabindex(value: number): void;
412
412
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListOption, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
413
- static ɵcmp: i0.ɵɵComponentDeclaration<MatListOption, "mat-list-option", ["matListOption"], { "togglePosition": { "alias": "togglePosition"; "required": false; }; "checkboxPosition": { "alias": "checkboxPosition"; "required": false; }; "color": { "alias": "color"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectedChange": "selectedChange"; }, ["_lines", "_titles"], ["[matListItemAvatar],[matListItemIcon]", "[matListItemTitle]", "[matListItemLine]", "*", "mat-divider"], false, never>;
413
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatListOption, "mat-list-option", ["matListOption"], { "togglePosition": { "alias": "togglePosition"; "required": false; }; "checkboxPosition": { "alias": "checkboxPosition"; "required": false; }; "color": { "alias": "color"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectedChange": "selectedChange"; }, ["_lines", "_titles"], ["[matListItemAvatar],[matListItemIcon]", "[matListItemTitle]", "[matListItemLine]", "*", "mat-divider"], true, never>;
414
414
  }
415
415
 
416
416
  /**
@@ -427,13 +427,13 @@ export { MatListOptionTogglePosition }
427
427
  */
428
428
  export declare class MatListSubheaderCssMatStyler {
429
429
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListSubheaderCssMatStyler, never>;
430
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatListSubheaderCssMatStyler, "[mat-subheader], [matSubheader]", never, {}, {}, never, never, false, never>;
430
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatListSubheaderCssMatStyler, "[mat-subheader], [matSubheader]", never, {}, {}, never, never, true, never>;
431
431
  }
432
432
 
433
433
  export declare class MatNavList extends MatListBase {
434
434
  _isNonInteractive: boolean;
435
435
  static ɵfac: i0.ɵɵFactoryDeclaration<MatNavList, never>;
436
- static ɵcmp: i0.ɵɵComponentDeclaration<MatNavList, "mat-nav-list", ["matNavList"], {}, {}, never, ["*"], false, never>;
436
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatNavList, "mat-nav-list", ["matNavList"], {}, {}, never, ["*"], true, never>;
437
437
  }
438
438
 
439
439
  export declare class MatSelectionList extends MatListBase implements SelectionList, ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy {
@@ -549,7 +549,7 @@ export declare class MatSelectionList extends MatListBase implements SelectionLi
549
549
  /** Returns whether the focus is currently within the list. */
550
550
  private _containsFocus;
551
551
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectionList, never>;
552
- static ɵcmp: i0.ɵɵComponentDeclaration<MatSelectionList, "mat-selection-list", ["matSelectionList"], { "color": { "alias": "color"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; }, ["_items"], ["*"], false, never>;
552
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatSelectionList, "mat-selection-list", ["matSelectionList"], { "color": { "alias": "color"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; }, ["_items"], ["*"], true, never>;
553
553
  }
554
554
 
555
555
  /** Change event that is being fired whenever the selected state of an option changes. */
@@ -232,12 +232,12 @@ declare abstract class MatListItemHarnessBase extends ContentContainerComponentH
232
232
  }
233
233
 
234
234
  /** Selectors for the various list item sections that may contain user content. */
235
- export declare const enum MatListItemSection {
235
+ export declare enum MatListItemSection {
236
236
  CONTENT = ".mdc-list-item__content"
237
237
  }
238
238
 
239
239
  /** Enum describing the possible variants of a list item. */
240
- export declare const enum MatListItemType {
240
+ export declare enum MatListItemType {
241
241
  ONE_LINE_ITEM = 0,
242
242
  TWO_LINE_ITEM = 1,
243
243
  THREE_LINE_ITEM = 2
package/menu/index.d.ts CHANGED
@@ -13,9 +13,9 @@ import { FocusableOption } from '@angular/cdk/a11y';
13
13
  import { FocusMonitor } from '@angular/cdk/a11y';
14
14
  import { FocusOrigin } from '@angular/cdk/a11y';
15
15
  import * as i0 from '@angular/core';
16
- import * as i5 from '@angular/common';
17
- import * as i6 from '@angular/material/core';
18
- import * as i7 from '@angular/cdk/overlay';
16
+ import * as i1 from '@angular/common';
17
+ import * as i2 from '@angular/material/core';
18
+ import * as i3 from '@angular/cdk/overlay';
19
19
  import * as i8 from '@angular/cdk/scrolling';
20
20
  import { InjectionToken } from '@angular/core';
21
21
  import { Injector } from '@angular/core';
@@ -37,7 +37,7 @@ import { ViewContainerRef } from '@angular/core';
37
37
  */
38
38
  export declare const fadeInItems: AnimationTriggerMetadata;
39
39
 
40
- declare namespace i1 {
40
+ declare namespace i4 {
41
41
  export {
42
42
  MAT_MENU_DEFAULT_OPTIONS_FACTORY,
43
43
  MenuCloseReason,
@@ -47,20 +47,20 @@ declare namespace i1 {
47
47
  }
48
48
  }
49
49
 
50
- declare namespace i2 {
50
+ declare namespace i5 {
51
51
  export {
52
52
  MatMenuItem
53
53
  }
54
54
  }
55
55
 
56
- declare namespace i3 {
56
+ declare namespace i6 {
57
57
  export {
58
58
  MAT_MENU_CONTENT,
59
59
  MatMenuContent
60
60
  }
61
61
  }
62
62
 
63
- declare namespace i4 {
63
+ declare namespace i7 {
64
64
  export {
65
65
  MAT_MENU_SCROLL_STRATEGY_FACTORY,
66
66
  MAT_MENU_SCROLL_STRATEGY,
@@ -249,7 +249,7 @@ export declare class MatMenu implements AfterContentInit, MatMenuPanel<MatMenuIt
249
249
  */
250
250
  private _updateDirectDescendants;
251
251
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMenu, never>;
252
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMenu, "mat-menu", ["matMenu"], { "backdropClass": { "alias": "backdropClass"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "overlapTrigger": { "alias": "overlapTrigger"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "panelClass": { "alias": "class"; "required": false; }; "classList": { "alias": "classList"; "required": false; }; }, { "closed": "closed"; "close": "close"; }, ["lazyContent", "_allItems", "items"], ["*"], false, never>;
252
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMenu, "mat-menu", ["matMenu"], { "backdropClass": { "alias": "backdropClass"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "overlapTrigger": { "alias": "overlapTrigger"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "panelClass": { "alias": "class"; "required": false; }; "classList": { "alias": "classList"; "required": false; }; }, { "closed": "closed"; "close": "close"; }, ["lazyContent", "_allItems", "items"], ["*"], true, never>;
253
253
  static ngAcceptInputType_overlapTrigger: unknown;
254
254
  static ngAcceptInputType_hasBackdrop: any;
255
255
  }
@@ -296,7 +296,7 @@ export declare class MatMenuContent implements OnDestroy {
296
296
  detach(): void;
297
297
  ngOnDestroy(): void;
298
298
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMenuContent, never>;
299
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatMenuContent, "ng-template[matMenuContent]", never, {}, {}, never, never, false, never>;
299
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatMenuContent, "ng-template[matMenuContent]", never, {}, {}, never, never, true, never>;
300
300
  }
301
301
 
302
302
  /** Default `mat-menu` options that can be overridden. */
@@ -362,14 +362,14 @@ export declare class MatMenuItem implements FocusableOption, AfterViewInit, OnDe
362
362
  _setTriggersSubmenu(triggersSubmenu: boolean): void;
363
363
  _hasFocus(): boolean;
364
364
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMenuItem, [null, null, null, { optional: true; }, null]>;
365
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMenuItem, "[mat-menu-item]", ["matMenuItem"], { "role": { "alias": "role"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, {}, never, ["mat-icon, [matMenuItemIcon]", "*"], false, never>;
365
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMenuItem, "[mat-menu-item]", ["matMenuItem"], { "role": { "alias": "role"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, {}, never, ["mat-icon, [matMenuItemIcon]", "*"], true, never>;
366
366
  static ngAcceptInputType_disabled: unknown;
367
367
  static ngAcceptInputType_disableRipple: unknown;
368
368
  }
369
369
 
370
370
  export declare class MatMenuModule {
371
371
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMenuModule, never>;
372
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatMenuModule, [typeof i1.MatMenu, typeof i2.MatMenuItem, typeof i3.MatMenuContent, typeof i4.MatMenuTrigger], [typeof i5.CommonModule, typeof i6.MatRippleModule, typeof i6.MatCommonModule, typeof i7.OverlayModule], [typeof i8.CdkScrollableModule, typeof i1.MatMenu, typeof i6.MatCommonModule, typeof i2.MatMenuItem, typeof i3.MatMenuContent, typeof i4.MatMenuTrigger]>;
372
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatMenuModule, never, [typeof i1.CommonModule, typeof i2.MatRippleModule, typeof i2.MatCommonModule, typeof i3.OverlayModule, typeof i4.MatMenu, typeof i5.MatMenuItem, typeof i6.MatMenuContent, typeof i7.MatMenuTrigger], [typeof i8.CdkScrollableModule, typeof i4.MatMenu, typeof i2.MatCommonModule, typeof i5.MatMenuItem, typeof i6.MatMenuContent, typeof i7.MatMenuTrigger]>;
373
373
  static ɵinj: i0.ɵɵInjectorDeclaration<MatMenuModule>;
374
374
  }
375
375
 
@@ -552,7 +552,7 @@ export declare class MatMenuTrigger implements AfterContentInit, OnDestroy {
552
552
  /** Gets the portal that should be attached to the overlay. */
553
553
  private _getPortal;
554
554
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMenuTrigger, [null, null, null, null, { optional: true; }, { optional: true; self: true; }, { optional: true; }, null, null]>;
555
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatMenuTrigger, "[mat-menu-trigger-for], [matMenuTriggerFor]", ["matMenuTrigger"], { "_deprecatedMatMenuTriggerFor": { "alias": "mat-menu-trigger-for"; "required": false; }; "menu": { "alias": "matMenuTriggerFor"; "required": false; }; "menuData": { "alias": "matMenuTriggerData"; "required": false; }; "restoreFocus": { "alias": "matMenuTriggerRestoreFocus"; "required": false; }; }, { "menuOpened": "menuOpened"; "onMenuOpen": "onMenuOpen"; "menuClosed": "menuClosed"; "onMenuClose": "onMenuClose"; }, never, never, false, never>;
555
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatMenuTrigger, "[mat-menu-trigger-for], [matMenuTriggerFor]", ["matMenuTrigger"], { "_deprecatedMatMenuTriggerFor": { "alias": "mat-menu-trigger-for"; "required": false; }; "menu": { "alias": "matMenuTriggerFor"; "required": false; }; "menuData": { "alias": "matMenuTriggerData"; "required": false; }; "restoreFocus": { "alias": "matMenuTriggerRestoreFocus"; "required": false; }; }, { "menuOpened": "menuOpened"; "onMenuOpen": "onMenuOpen"; "menuClosed": "menuClosed"; "onMenuClose": "onMenuClose"; }, never, never, true, never>;
556
556
  }
557
557
 
558
558
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material",
3
- "version": "17.0.2",
3
+ "version": "17.1.0-next.1",
4
4
  "description": "Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -477,12 +477,12 @@
477
477
  }
478
478
  },
479
479
  "peerDependencies": {
480
- "@angular/animations": "^17.0.0 || ^18.0.0",
481
- "@angular/cdk": "17.0.2",
482
- "@angular/core": "^17.0.0 || ^18.0.0",
483
- "@angular/common": "^17.0.0 || ^18.0.0",
484
- "@angular/forms": "^17.0.0 || ^18.0.0",
485
- "@angular/platform-browser": "^17.0.0 || ^18.0.0",
480
+ "@angular/animations": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
481
+ "@angular/cdk": "17.1.0-next.1",
482
+ "@angular/core": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
483
+ "@angular/common": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
484
+ "@angular/forms": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
485
+ "@angular/platform-browser": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
486
486
  "rxjs": "^6.5.3 || ^7.4.0"
487
487
  },
488
488
  "dependencies": {
@@ -1,24 +1,19 @@
1
- import { _AbstractConstructor } from '@angular/material/core';
2
- import { BooleanInput } from '@angular/cdk/coercion';
3
- import { CanDisable } from '@angular/material/core';
4
1
  import { ChangeDetectorRef } from '@angular/core';
5
- import { _Constructor } from '@angular/material/core';
6
2
  import { EventEmitter } from '@angular/core';
7
3
  import { HasInitialized } from '@angular/material/core';
8
4
  import * as i0 from '@angular/core';
9
- import * as i2 from '@angular/material/button';
10
- import * as i3 from '@angular/material/select';
11
- import * as i4 from '@angular/material/tooltip';
5
+ import * as i1 from '@angular/material/button';
6
+ import * as i2 from '@angular/material/select';
7
+ import * as i3 from '@angular/material/tooltip';
12
8
  import { InjectionToken } from '@angular/core';
13
9
  import { MatFormFieldAppearance } from '@angular/material/form-field';
14
- import { NumberInput } from '@angular/cdk/coercion';
15
10
  import { OnDestroy } from '@angular/core';
16
11
  import { OnInit } from '@angular/core';
17
12
  import { Optional } from '@angular/core';
18
13
  import { Subject } from 'rxjs';
19
14
  import { ThemePalette } from '@angular/material/core';
20
15
 
21
- declare namespace i1 {
16
+ declare namespace i4 {
22
17
  export {
23
18
  MatPaginatorSelectConfig,
24
19
  PageEvent,
@@ -46,7 +41,7 @@ export declare function MAT_PAGINATOR_INTL_PROVIDER_FACTORY(parentIntl: MatPagin
46
41
  * page, user-selectable options to change that size, what items are being shown, and
47
42
  * navigational button to go to the previous or next page.
48
43
  */
49
- export declare class MatPaginator extends _MatPaginatorMixinBase implements OnInit, OnDestroy, CanDisable, HasInitialized {
44
+ export declare class MatPaginator extends _MatPaginatorMixinBase implements OnInit, OnDestroy, HasInitialized {
50
45
  _intl: MatPaginatorIntl;
51
46
  private _changeDetectorRef;
52
47
  /** If set, styles the "page size" form field with the designated style. */
@@ -59,30 +54,28 @@ export declare class MatPaginator extends _MatPaginatorMixinBase implements OnIn
59
54
  color: ThemePalette;
60
55
  /** The zero-based page index of the displayed list of items. Defaulted to 0. */
61
56
  get pageIndex(): number;
62
- set pageIndex(value: NumberInput);
57
+ set pageIndex(value: number);
63
58
  private _pageIndex;
64
59
  /** The length of the total number of items that are being paginated. Defaulted to 0. */
65
60
  get length(): number;
66
- set length(value: NumberInput);
61
+ set length(value: number);
67
62
  private _length;
68
63
  /** Number of items to display on a page. By default set to 50. */
69
64
  get pageSize(): number;
70
- set pageSize(value: NumberInput);
65
+ set pageSize(value: number);
71
66
  private _pageSize;
72
67
  /** The set of provided page size options to display to the user. */
73
68
  get pageSizeOptions(): number[];
74
69
  set pageSizeOptions(value: number[] | readonly number[]);
75
70
  private _pageSizeOptions;
76
71
  /** Whether to hide the page size selection UI from the user. */
77
- get hidePageSize(): boolean;
78
- set hidePageSize(value: BooleanInput);
79
- private _hidePageSize;
72
+ hidePageSize: boolean;
80
73
  /** Whether to show the first/last buttons UI to the user. */
81
- get showFirstLastButtons(): boolean;
82
- set showFirstLastButtons(value: BooleanInput);
83
- private _showFirstLastButtons;
74
+ showFirstLastButtons: boolean;
84
75
  /** Used to configure the underlying `MatSelect` inside the paginator. */
85
76
  selectConfig: MatPaginatorSelectConfig;
77
+ /** Whether the paginator is disabled. */
78
+ disabled: boolean;
86
79
  /** Event emitted when the paginator changes the page size or page index. */
87
80
  readonly page: EventEmitter<PageEvent>;
88
81
  /** Displayed set of page size options. Will be sorted and include current page size. */
@@ -125,7 +118,13 @@ export declare class MatPaginator extends _MatPaginatorMixinBase implements OnIn
125
118
  /** Emits an event notifying that a change of the paginator's properties has been triggered. */
126
119
  private _emitPageEvent;
127
120
  static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginator, [null, null, { optional: true; }]>;
128
- static ɵcmp: i0.ɵɵComponentDeclaration<MatPaginator, "mat-paginator", ["matPaginator"], { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "length": { "alias": "length"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "selectConfig": { "alias": "selectConfig"; "required": false; }; }, { "page": "page"; }, never, never, false, never>;
121
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatPaginator, "mat-paginator", ["matPaginator"], { "color": { "alias": "color"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "length": { "alias": "length"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; }; "selectConfig": { "alias": "selectConfig"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "page": "page"; }, never, never, true, never>;
122
+ static ngAcceptInputType_pageIndex: unknown;
123
+ static ngAcceptInputType_length: unknown;
124
+ static ngAcceptInputType_pageSize: unknown;
125
+ static ngAcceptInputType_hidePageSize: unknown;
126
+ static ngAcceptInputType_showFirstLastButtons: unknown;
127
+ static ngAcceptInputType_disabled: unknown;
129
128
  }
130
129
 
131
130
  /** Object that can be used to configure the default options for the paginator module. */
@@ -169,13 +168,13 @@ export declare class MatPaginatorIntl {
169
168
  }
170
169
 
171
170
  /** @docs-private */
172
- declare const _MatPaginatorMixinBase: _Constructor<CanDisable> & _AbstractConstructor<CanDisable> & (new (...args: any[]) => HasInitialized) & {
171
+ declare const _MatPaginatorMixinBase: (new (...args: any[]) => HasInitialized) & {
173
172
  new (): {};
174
173
  };
175
174
 
176
175
  export declare class MatPaginatorModule {
177
176
  static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginatorModule, never>;
178
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatPaginatorModule, [typeof i1.MatPaginator], [typeof i2.MatButtonModule, typeof i3.MatSelectModule, typeof i4.MatTooltipModule], [typeof i1.MatPaginator]>;
177
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatPaginatorModule, never, [typeof i1.MatButtonModule, typeof i2.MatSelectModule, typeof i3.MatTooltipModule, typeof i4.MatPaginator], [typeof i4.MatPaginator]>;
179
178
  static ɵinj: i0.ɵɵInjectorDeclaration<MatPaginatorModule>;
180
179
  }
181
180