@angular/material 17.1.0-next.1 → 17.1.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 (367) hide show
  1. package/checkbox/_checkbox-theme.scss +5 -10
  2. package/checkbox/index.d.ts +28 -5
  3. package/core/index.d.ts +12 -0
  4. package/core/internal-form-field/_internal-form-field-theme.scss +37 -0
  5. package/core/tokens/m2/mdc/_form-field.scss +46 -0
  6. package/esm2022/autocomplete/autocomplete-origin.mjs +4 -4
  7. package/esm2022/autocomplete/autocomplete-trigger.mjs +4 -4
  8. package/esm2022/autocomplete/autocomplete.mjs +4 -4
  9. package/esm2022/autocomplete/module.mjs +5 -5
  10. package/esm2022/autocomplete/testing/autocomplete-harness.mjs +1 -1
  11. package/esm2022/badge/badge-module.mjs +5 -5
  12. package/esm2022/badge/badge.mjs +4 -4
  13. package/esm2022/badge/testing/badge-harness.mjs +1 -1
  14. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +4 -4
  15. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +5 -5
  16. package/esm2022/bottom-sheet/bottom-sheet-ref.mjs +1 -1
  17. package/esm2022/bottom-sheet/bottom-sheet.mjs +4 -4
  18. package/esm2022/button/button-base.mjs +7 -7
  19. package/esm2022/button/button.mjs +7 -7
  20. package/esm2022/button/fab.mjs +13 -13
  21. package/esm2022/button/icon-button.mjs +7 -7
  22. package/esm2022/button/module.mjs +5 -5
  23. package/esm2022/button/testing/button-harness.mjs +1 -1
  24. package/esm2022/button-toggle/button-toggle-module.mjs +5 -5
  25. package/esm2022/button-toggle/button-toggle.mjs +7 -7
  26. package/esm2022/button-toggle/testing/button-toggle-harness.mjs +1 -1
  27. package/esm2022/card/card.mjs +43 -43
  28. package/esm2022/card/module.mjs +5 -5
  29. package/esm2022/checkbox/checkbox-required-validator.mjs +11 -5
  30. package/esm2022/checkbox/checkbox.mjs +39 -7
  31. package/esm2022/checkbox/module.mjs +16 -13
  32. package/esm2022/checkbox/testing/checkbox-harness.mjs +1 -1
  33. package/esm2022/chips/chip-action.mjs +4 -4
  34. package/esm2022/chips/chip-edit-input.mjs +4 -4
  35. package/esm2022/chips/chip-grid.mjs +4 -4
  36. package/esm2022/chips/chip-icons.mjs +10 -10
  37. package/esm2022/chips/chip-input.mjs +4 -4
  38. package/esm2022/chips/chip-listbox.mjs +4 -4
  39. package/esm2022/chips/chip-option.mjs +4 -4
  40. package/esm2022/chips/chip-row.mjs +4 -4
  41. package/esm2022/chips/chip-set.mjs +4 -4
  42. package/esm2022/chips/chip.mjs +4 -4
  43. package/esm2022/chips/module.mjs +5 -5
  44. package/esm2022/chips/testing/chip-edit-input-harness.mjs +1 -1
  45. package/esm2022/chips/testing/chip-input-harness.mjs +1 -1
  46. package/esm2022/chips/testing/chip-listbox-harness.mjs +1 -1
  47. package/esm2022/chips/testing/chip-option-harness.mjs +1 -1
  48. package/esm2022/chips/testing/chip-row-harness.mjs +1 -1
  49. package/esm2022/core/common-behaviors/color.mjs +1 -1
  50. package/esm2022/core/common-behaviors/common-module.mjs +5 -5
  51. package/esm2022/core/common-behaviors/error-state.mjs +1 -1
  52. package/esm2022/core/common-behaviors/initialized.mjs +1 -1
  53. package/esm2022/core/datetime/date-adapter.mjs +1 -1
  54. package/esm2022/core/datetime/index.mjs +9 -9
  55. package/esm2022/core/datetime/native-date-adapter.mjs +4 -4
  56. package/esm2022/core/error/error-options.mjs +7 -7
  57. package/esm2022/core/internal-form-field/internal-form-field.mjs +29 -0
  58. package/esm2022/core/line/line.mjs +8 -8
  59. package/esm2022/core/option/index.mjs +5 -5
  60. package/esm2022/core/option/optgroup.mjs +4 -4
  61. package/esm2022/core/option/option.mjs +4 -4
  62. package/esm2022/core/private/ripple-loader.mjs +4 -4
  63. package/esm2022/core/public-api.mjs +2 -1
  64. package/esm2022/core/ripple/index.mjs +5 -5
  65. package/esm2022/core/ripple/ripple-event-manager.mjs +1 -1
  66. package/esm2022/core/ripple/ripple-renderer.mjs +1 -1
  67. package/esm2022/core/ripple/ripple.mjs +4 -4
  68. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  69. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  70. package/esm2022/core/version.mjs +1 -1
  71. package/esm2022/datepicker/aria-accessible-name.mjs +1 -1
  72. package/esm2022/datepicker/calendar-body.mjs +4 -4
  73. package/esm2022/datepicker/calendar.mjs +7 -7
  74. package/esm2022/datepicker/date-range-input-parts.mjs +10 -10
  75. package/esm2022/datepicker/date-range-input.mjs +4 -4
  76. package/esm2022/datepicker/date-range-picker.mjs +4 -4
  77. package/esm2022/datepicker/date-range-selection-strategy.mjs +4 -4
  78. package/esm2022/datepicker/date-selection-model.mjs +10 -10
  79. package/esm2022/datepicker/datepicker-actions.mjs +10 -10
  80. package/esm2022/datepicker/datepicker-base.mjs +7 -7
  81. package/esm2022/datepicker/datepicker-input-base.mjs +4 -4
  82. package/esm2022/datepicker/datepicker-input.mjs +4 -4
  83. package/esm2022/datepicker/datepicker-intl.mjs +4 -4
  84. package/esm2022/datepicker/datepicker-module.mjs +5 -5
  85. package/esm2022/datepicker/datepicker-toggle.mjs +7 -7
  86. package/esm2022/datepicker/datepicker.mjs +4 -4
  87. package/esm2022/datepicker/month-view.mjs +4 -4
  88. package/esm2022/datepicker/multi-year-view.mjs +4 -4
  89. package/esm2022/datepicker/testing/calendar-harness.mjs +1 -1
  90. package/esm2022/datepicker/testing/datepicker-input-harness-base.mjs +1 -1
  91. package/esm2022/datepicker/testing/datepicker-input-harness.mjs +1 -1
  92. package/esm2022/datepicker/testing/datepicker-trigger-harness-base.mjs +1 -1
  93. package/esm2022/datepicker/year-view.mjs +4 -4
  94. package/esm2022/dialog/dialog-container.mjs +4 -4
  95. package/esm2022/dialog/dialog-content-directives.mjs +13 -13
  96. package/esm2022/dialog/dialog-ref.mjs +1 -1
  97. package/esm2022/dialog/dialog.mjs +4 -4
  98. package/esm2022/dialog/module.mjs +5 -5
  99. package/esm2022/dialog/testing/dialog-opener.mjs +1 -1
  100. package/esm2022/divider/divider-module.mjs +5 -5
  101. package/esm2022/divider/divider.mjs +4 -4
  102. package/esm2022/expansion/accordion.mjs +4 -4
  103. package/esm2022/expansion/expansion-module.mjs +5 -5
  104. package/esm2022/expansion/expansion-panel-content.mjs +4 -4
  105. package/esm2022/expansion/expansion-panel-header.mjs +10 -10
  106. package/esm2022/expansion/expansion-panel.mjs +7 -7
  107. package/esm2022/expansion/testing/expansion-harness.mjs +1 -1
  108. package/esm2022/form-field/directives/error.mjs +4 -4
  109. package/esm2022/form-field/directives/floating-label.mjs +4 -4
  110. package/esm2022/form-field/directives/hint.mjs +4 -4
  111. package/esm2022/form-field/directives/label.mjs +4 -4
  112. package/esm2022/form-field/directives/line-ripple.mjs +4 -4
  113. package/esm2022/form-field/directives/notched-outline.mjs +4 -4
  114. package/esm2022/form-field/directives/prefix.mjs +4 -4
  115. package/esm2022/form-field/directives/suffix.mjs +4 -4
  116. package/esm2022/form-field/form-field-control.mjs +4 -4
  117. package/esm2022/form-field/form-field.mjs +4 -4
  118. package/esm2022/form-field/module.mjs +5 -5
  119. package/esm2022/form-field/testing/form-field-harness.mjs +1 -1
  120. package/esm2022/grid-list/grid-list-module.mjs +5 -5
  121. package/esm2022/grid-list/grid-list.mjs +4 -4
  122. package/esm2022/grid-list/grid-tile.mjs +16 -16
  123. package/esm2022/grid-list/testing/grid-list-harness.mjs +1 -1
  124. package/esm2022/grid-list/tile-coordinator.mjs +1 -1
  125. package/esm2022/grid-list/tile-styler.mjs +1 -1
  126. package/esm2022/icon/icon-module.mjs +5 -5
  127. package/esm2022/icon/icon-registry.mjs +4 -4
  128. package/esm2022/icon/icon.mjs +4 -4
  129. package/esm2022/icon/testing/fake-icon-registry.mjs +8 -8
  130. package/esm2022/icon/testing/icon-harness.mjs +1 -1
  131. package/esm2022/icon/trusted-types.mjs +1 -1
  132. package/esm2022/input/input.mjs +4 -4
  133. package/esm2022/input/module.mjs +5 -5
  134. package/esm2022/input/testing/input-harness.mjs +1 -1
  135. package/esm2022/input/testing/native-select-harness.mjs +1 -1
  136. package/esm2022/list/action-list.mjs +4 -4
  137. package/esm2022/list/list-base.mjs +7 -7
  138. package/esm2022/list/list-item-sections.mjs +19 -19
  139. package/esm2022/list/list-module.mjs +5 -5
  140. package/esm2022/list/list-option.mjs +4 -4
  141. package/esm2022/list/list.mjs +7 -7
  142. package/esm2022/list/nav-list.mjs +4 -4
  143. package/esm2022/list/selection-list.mjs +4 -4
  144. package/esm2022/list/subheader.mjs +4 -4
  145. package/esm2022/list/testing/list-harness-base.mjs +1 -1
  146. package/esm2022/list/testing/list-item-harness-base.mjs +1 -1
  147. package/esm2022/list/testing/selection-list-harness.mjs +1 -1
  148. package/esm2022/menu/menu-content.mjs +4 -4
  149. package/esm2022/menu/menu-item.mjs +4 -4
  150. package/esm2022/menu/menu-trigger.mjs +4 -4
  151. package/esm2022/menu/menu.mjs +4 -4
  152. package/esm2022/menu/module.mjs +5 -5
  153. package/esm2022/menu/testing/menu-harness.mjs +1 -1
  154. package/esm2022/paginator/module.mjs +5 -5
  155. package/esm2022/paginator/paginator-intl.mjs +4 -4
  156. package/esm2022/paginator/paginator.mjs +4 -4
  157. package/esm2022/paginator/testing/paginator-harness.mjs +1 -1
  158. package/esm2022/progress-bar/module.mjs +5 -5
  159. package/esm2022/progress-bar/progress-bar.mjs +4 -4
  160. package/esm2022/progress-spinner/module.mjs +5 -5
  161. package/esm2022/progress-spinner/progress-spinner.mjs +4 -4
  162. package/esm2022/radio/module.mjs +5 -5
  163. package/esm2022/radio/radio.mjs +12 -9
  164. package/esm2022/radio/testing/radio-harness.mjs +1 -1
  165. package/esm2022/select/module.mjs +5 -5
  166. package/esm2022/select/select.mjs +7 -7
  167. package/esm2022/select/testing/select-harness.mjs +1 -1
  168. package/esm2022/sidenav/drawer.mjs +10 -10
  169. package/esm2022/sidenav/sidenav-module.mjs +5 -5
  170. package/esm2022/sidenav/sidenav.mjs +10 -10
  171. package/esm2022/sidenav/testing/drawer-harness.mjs +1 -1
  172. package/esm2022/slide-toggle/module.mjs +16 -22
  173. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +11 -4
  174. package/esm2022/slide-toggle/slide-toggle.mjs +39 -8
  175. package/esm2022/slide-toggle/testing/slide-toggle-harness.mjs +1 -1
  176. package/esm2022/slider/module.mjs +5 -5
  177. package/esm2022/slider/slider-input.mjs +9 -8
  178. package/esm2022/slider/slider-thumb.mjs +4 -4
  179. package/esm2022/slider/slider.mjs +6 -6
  180. package/esm2022/slider/testing/slider-harness.mjs +1 -1
  181. package/esm2022/snack-bar/module.mjs +5 -5
  182. package/esm2022/snack-bar/simple-snack-bar.mjs +4 -4
  183. package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
  184. package/esm2022/snack-bar/snack-bar-content.mjs +10 -10
  185. package/esm2022/snack-bar/snack-bar-ref.mjs +1 -1
  186. package/esm2022/snack-bar/snack-bar.mjs +4 -4
  187. package/esm2022/snack-bar/testing/snack-bar-harness.mjs +1 -1
  188. package/esm2022/sort/sort-header-intl.mjs +4 -4
  189. package/esm2022/sort/sort-header.mjs +4 -4
  190. package/esm2022/sort/sort-module.mjs +5 -5
  191. package/esm2022/sort/sort.mjs +4 -4
  192. package/esm2022/sort/testing/sort-harness.mjs +1 -1
  193. package/esm2022/sort/testing/sort-header-harness.mjs +1 -1
  194. package/esm2022/stepper/step-content.mjs +4 -4
  195. package/esm2022/stepper/step-header.mjs +4 -4
  196. package/esm2022/stepper/step-label.mjs +4 -4
  197. package/esm2022/stepper/stepper-button.mjs +7 -7
  198. package/esm2022/stepper/stepper-icon.mjs +4 -4
  199. package/esm2022/stepper/stepper-intl.mjs +4 -4
  200. package/esm2022/stepper/stepper-module.mjs +5 -5
  201. package/esm2022/stepper/stepper.mjs +7 -7
  202. package/esm2022/stepper/testing/step-harness.mjs +1 -1
  203. package/esm2022/stepper/testing/stepper-harness.mjs +1 -1
  204. package/esm2022/table/cell.mjs +22 -22
  205. package/esm2022/table/module.mjs +5 -5
  206. package/esm2022/table/row.mjs +22 -22
  207. package/esm2022/table/table-data-source.mjs +1 -1
  208. package/esm2022/table/table.mjs +7 -7
  209. package/esm2022/table/testing/cell-harness.mjs +1 -1
  210. package/esm2022/table/testing/table-harness.mjs +1 -1
  211. package/esm2022/table/text-column.mjs +4 -4
  212. package/esm2022/tabs/ink-bar.mjs +1 -1
  213. package/esm2022/tabs/module.mjs +5 -5
  214. package/esm2022/tabs/paginated-tab-header.mjs +4 -4
  215. package/esm2022/tabs/tab-body.mjs +7 -7
  216. package/esm2022/tabs/tab-content.mjs +4 -4
  217. package/esm2022/tabs/tab-group.mjs +4 -4
  218. package/esm2022/tabs/tab-header.mjs +4 -4
  219. package/esm2022/tabs/tab-label-wrapper.mjs +4 -4
  220. package/esm2022/tabs/tab-label.mjs +4 -4
  221. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +10 -10
  222. package/esm2022/tabs/tab.mjs +4 -4
  223. package/esm2022/tabs/testing/tab-group-harness.mjs +1 -1
  224. package/esm2022/tabs/testing/tab-nav-bar-harness.mjs +1 -1
  225. package/esm2022/toolbar/toolbar-module.mjs +5 -5
  226. package/esm2022/toolbar/toolbar.mjs +7 -7
  227. package/esm2022/tooltip/module.mjs +5 -5
  228. package/esm2022/tooltip/tooltip.mjs +7 -7
  229. package/esm2022/tree/data-source/flat-data-source.mjs +1 -1
  230. package/esm2022/tree/node.mjs +10 -10
  231. package/esm2022/tree/outlet.mjs +4 -4
  232. package/esm2022/tree/padding.mjs +4 -4
  233. package/esm2022/tree/testing/node-harness.mjs +1 -1
  234. package/esm2022/tree/testing/tree-harness.mjs +1 -1
  235. package/esm2022/tree/toggle.mjs +4 -4
  236. package/esm2022/tree/tree-module.mjs +5 -5
  237. package/esm2022/tree/tree.mjs +4 -4
  238. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  239. package/fesm2022/autocomplete.mjs +13 -13
  240. package/fesm2022/autocomplete.mjs.map +1 -1
  241. package/fesm2022/badge/testing.mjs.map +1 -1
  242. package/fesm2022/badge.mjs +7 -7
  243. package/fesm2022/badge.mjs.map +1 -1
  244. package/fesm2022/bottom-sheet.mjs +10 -10
  245. package/fesm2022/bottom-sheet.mjs.map +1 -1
  246. package/fesm2022/button/testing.mjs.map +1 -1
  247. package/fesm2022/button-toggle/testing.mjs.map +1 -1
  248. package/fesm2022/button-toggle.mjs +10 -10
  249. package/fesm2022/button-toggle.mjs.map +1 -1
  250. package/fesm2022/button.mjs +34 -34
  251. package/fesm2022/button.mjs.map +1 -1
  252. package/fesm2022/card.mjs +46 -46
  253. package/fesm2022/card.mjs.map +1 -1
  254. package/fesm2022/checkbox/testing.mjs.map +1 -1
  255. package/fesm2022/checkbox.mjs +61 -20
  256. package/fesm2022/checkbox.mjs.map +1 -1
  257. package/fesm2022/chips/testing.mjs.map +1 -1
  258. package/fesm2022/chips.mjs +40 -40
  259. package/fesm2022/chips.mjs.map +1 -1
  260. package/fesm2022/core.mjs +77 -57
  261. package/fesm2022/core.mjs.map +1 -1
  262. package/fesm2022/datepicker/testing.mjs.map +1 -1
  263. package/fesm2022/datepicker.mjs +82 -82
  264. package/fesm2022/datepicker.mjs.map +1 -1
  265. package/fesm2022/dialog/testing.mjs.map +1 -1
  266. package/fesm2022/dialog.mjs +22 -22
  267. package/fesm2022/dialog.mjs.map +1 -1
  268. package/fesm2022/divider.mjs +7 -7
  269. package/fesm2022/divider.mjs.map +1 -1
  270. package/fesm2022/expansion/testing.mjs.map +1 -1
  271. package/fesm2022/expansion.mjs +25 -25
  272. package/fesm2022/expansion.mjs.map +1 -1
  273. package/fesm2022/form-field/testing.mjs.map +1 -1
  274. package/fesm2022/form-field.mjs +34 -34
  275. package/fesm2022/form-field.mjs.map +1 -1
  276. package/fesm2022/grid-list/testing.mjs.map +1 -1
  277. package/fesm2022/grid-list.mjs +22 -22
  278. package/fesm2022/grid-list.mjs.map +1 -1
  279. package/fesm2022/icon/testing.mjs +7 -7
  280. package/fesm2022/icon/testing.mjs.map +1 -1
  281. package/fesm2022/icon.mjs +10 -10
  282. package/fesm2022/icon.mjs.map +1 -1
  283. package/fesm2022/input/testing.mjs.map +1 -1
  284. package/fesm2022/input.mjs +7 -7
  285. package/fesm2022/input.mjs.map +1 -1
  286. package/fesm2022/list/testing.mjs.map +1 -1
  287. package/fesm2022/list.mjs +49 -49
  288. package/fesm2022/list.mjs.map +1 -1
  289. package/fesm2022/menu/testing.mjs.map +1 -1
  290. package/fesm2022/menu.mjs +16 -16
  291. package/fesm2022/menu.mjs.map +1 -1
  292. package/fesm2022/paginator/testing.mjs.map +1 -1
  293. package/fesm2022/paginator.mjs +10 -10
  294. package/fesm2022/paginator.mjs.map +1 -1
  295. package/fesm2022/progress-bar.mjs +7 -7
  296. package/fesm2022/progress-bar.mjs.map +1 -1
  297. package/fesm2022/progress-spinner.mjs +7 -7
  298. package/fesm2022/progress-spinner.mjs.map +1 -1
  299. package/fesm2022/radio/testing.mjs.map +1 -1
  300. package/fesm2022/radio.mjs +16 -13
  301. package/fesm2022/radio.mjs.map +1 -1
  302. package/fesm2022/select/testing.mjs.map +1 -1
  303. package/fesm2022/select.mjs +10 -10
  304. package/fesm2022/select.mjs.map +1 -1
  305. package/fesm2022/sidenav/testing.mjs.map +1 -1
  306. package/fesm2022/sidenav.mjs +22 -22
  307. package/fesm2022/sidenav.mjs.map +1 -1
  308. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  309. package/fesm2022/slide-toggle.mjs +61 -29
  310. package/fesm2022/slide-toggle.mjs.map +1 -1
  311. package/fesm2022/slider/testing.mjs.map +1 -1
  312. package/fesm2022/slider.mjs +20 -19
  313. package/fesm2022/slider.mjs.map +1 -1
  314. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  315. package/fesm2022/snack-bar.mjs +22 -22
  316. package/fesm2022/snack-bar.mjs.map +1 -1
  317. package/fesm2022/sort/testing.mjs.map +1 -1
  318. package/fesm2022/sort.mjs +13 -13
  319. package/fesm2022/sort.mjs.map +1 -1
  320. package/fesm2022/stepper/testing.mjs.map +1 -1
  321. package/fesm2022/stepper.mjs +31 -31
  322. package/fesm2022/stepper.mjs.map +1 -1
  323. package/fesm2022/table/testing.mjs.map +1 -1
  324. package/fesm2022/table.mjs +55 -55
  325. package/fesm2022/table.mjs.map +1 -1
  326. package/fesm2022/tabs/testing.mjs.map +1 -1
  327. package/fesm2022/tabs.mjs +40 -40
  328. package/fesm2022/tabs.mjs.map +1 -1
  329. package/fesm2022/toolbar.mjs +10 -10
  330. package/fesm2022/toolbar.mjs.map +1 -1
  331. package/fesm2022/tooltip.mjs +10 -10
  332. package/fesm2022/tooltip.mjs.map +1 -1
  333. package/fesm2022/tree/testing.mjs.map +1 -1
  334. package/fesm2022/tree.mjs +25 -25
  335. package/fesm2022/tree.mjs.map +1 -1
  336. package/package.json +2 -2
  337. package/prebuilt-themes/deeppurple-amber.css +1 -1
  338. package/prebuilt-themes/indigo-pink.css +1 -1
  339. package/prebuilt-themes/pink-bluegrey.css +1 -1
  340. package/prebuilt-themes/purple-green.css +1 -1
  341. package/radio/_radio-theme.scss +5 -10
  342. package/radio/index.d.ts +2 -0
  343. package/schematics/ng-add/fonts/material-fonts.js +1 -1
  344. package/schematics/ng-add/fonts/material-fonts.mjs +1 -1
  345. package/schematics/ng-add/index.js +2 -2
  346. package/schematics/ng-add/index.mjs +2 -2
  347. package/schematics/ng-add/package-config.js +1 -1
  348. package/schematics/ng-add/package-config.mjs +1 -1
  349. package/schematics/ng-add/setup-project.js +1 -1
  350. package/schematics/ng-add/setup-project.mjs +1 -1
  351. package/schematics/ng-add/theming/theming.js +1 -1
  352. package/schematics/ng-add/theming/theming.mjs +1 -1
  353. package/schematics/ng-generate/address-form/index.js +1 -1
  354. package/schematics/ng-generate/address-form/index.mjs +1 -1
  355. package/schematics/ng-generate/dashboard/index.js +1 -1
  356. package/schematics/ng-generate/dashboard/index.mjs +1 -1
  357. package/schematics/ng-generate/mdc-migration/index_bundled.js +202 -193
  358. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +4 -4
  359. package/schematics/ng-generate/navigation/index.js +1 -1
  360. package/schematics/ng-generate/navigation/index.mjs +1 -1
  361. package/schematics/ng-generate/table/index.js +1 -1
  362. package/schematics/ng-generate/table/index.mjs +1 -1
  363. package/schematics/ng-generate/tree/index.js +1 -1
  364. package/schematics/ng-generate/tree/index.mjs +1 -1
  365. package/schematics/ng-update/index_bundled.js.map +1 -1
  366. package/slide-toggle/_slide-toggle-theme.scss +5 -4
  367. package/slide-toggle/index.d.ts +30 -6
@@ -1,12 +1,13 @@
1
1
  @use 'sass:map';
2
2
  @use '@material/checkbox/checkbox-theme' as mdc-checkbox-theme;
3
- @use '@material/form-field' as mdc-form-field;
3
+ @use '@material/form-field/form-field-theme' as mdc-form-field-theme;
4
4
  @use '../core/style/sass-utils';
5
5
  @use '../core/theming/theming';
6
6
  @use '../core/theming/inspection';
7
7
  @use '../core/typography/typography';
8
8
  @use '../core/mdc-helpers/mdc-helpers';
9
9
  @use '../core/tokens/m2/mdc/checkbox' as tokens-mdc-checkbox;
10
+ @use '../core/tokens/m2/mdc/form-field' as tokens-mdc-form-field;
10
11
 
11
12
  @mixin base($theme) {
12
13
  @if inspection.get-theme-version($theme) == 1 {
@@ -29,6 +30,8 @@
29
30
  }
30
31
 
31
32
  .mat-mdc-checkbox {
33
+ @include mdc-form-field-theme.theme(tokens-mdc-form-field.get-color-tokens($theme));
34
+
32
35
  &.mat-primary {
33
36
  @include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-color-tokens($theme, primary));
34
37
  }
@@ -37,11 +40,6 @@
37
40
  @include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-color-tokens($theme, warn));
38
41
  }
39
42
 
40
- @include mdc-helpers.using-mdc-theme($theme) {
41
- // TODO(mmalerba): Switch to static-styles, theme-styles, and theme once they're available.
42
- @include mdc-form-field.core-styles($query: mdc-helpers.$mdc-theme-styles-query);
43
- }
44
-
45
43
  &.mat-mdc-checkbox-disabled label {
46
44
  // MDC should set the disabled color on the label, but doesn't, so we do it here instead.
47
45
  color: inspection.get-theme-color($theme, foreground, disabled-text);
@@ -60,10 +58,7 @@
60
58
  }
61
59
 
62
60
  .mat-mdc-checkbox {
63
- @include mdc-helpers.using-mdc-typography($theme) {
64
- // TODO(mmalerba): Switch to static-styles, theme-styles, and theme once they're available.
65
- @include mdc-form-field.core-styles($query: mdc-helpers.$mdc-typography-styles-query);
66
- }
61
+ @include mdc-form-field-theme.theme(tokens-mdc-form-field.get-typography-tokens($theme));
67
62
  }
68
63
  }
69
64
  }
@@ -1,3 +1,4 @@
1
+ import { AbstractControl } from '@angular/forms';
1
2
  import { AfterViewInit } from '@angular/core';
2
3
  import { ChangeDetectorRef } from '@angular/core';
3
4
  import { CheckboxRequiredValidator } from '@angular/forms';
@@ -6,12 +7,16 @@ import { ElementRef } from '@angular/core';
6
7
  import { EventEmitter } from '@angular/core';
7
8
  import { FocusableOption } from '@angular/cdk/a11y';
8
9
  import * as i0 from '@angular/core';
9
- import * as i2 from '@angular/material/core';
10
+ import * as i3 from '@angular/material/core';
10
11
  import { InjectionToken } from '@angular/core';
11
12
  import { MatRipple } from '@angular/material/core';
12
13
  import { NgZone } from '@angular/core';
14
+ import { OnChanges } from '@angular/core';
13
15
  import { Provider } from '@angular/core';
16
+ import { SimpleChanges } from '@angular/core';
14
17
  import { ThemePalette } from '@angular/material/core';
18
+ import { ValidationErrors } from '@angular/forms';
19
+ import { Validator } from '@angular/forms';
15
20
 
16
21
  declare namespace i1 {
17
22
  export {
@@ -20,7 +25,7 @@ declare namespace i1 {
20
25
  }
21
26
  }
22
27
 
23
- declare namespace i3 {
28
+ declare namespace i2 {
24
29
  export {
25
30
  TransitionCheckState,
26
31
  MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR,
@@ -29,6 +34,10 @@ declare namespace i3 {
29
34
  }
30
35
  }
31
36
 
37
+ /**
38
+ * @deprecated Will stop being exported.
39
+ * @breaking-change 19.0.0
40
+ */
32
41
  export declare const MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR: any;
33
42
 
34
43
  /** Injection token to be used to override the default options for `mat-checkbox`. */
@@ -37,9 +46,13 @@ export declare const MAT_CHECKBOX_DEFAULT_OPTIONS: InjectionToken<MatCheckboxDef
37
46
  /** @docs-private */
38
47
  export declare function MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY(): MatCheckboxDefaultOptions;
39
48
 
49
+ /**
50
+ * @deprecated No longer used, `MatCheckbox` implements required validation directly.
51
+ * @breaking-change 19.0.0
52
+ */
40
53
  export declare const MAT_CHECKBOX_REQUIRED_VALIDATOR: Provider;
41
54
 
42
- export declare class MatCheckbox implements AfterViewInit, ControlValueAccessor, FocusableOption {
55
+ export declare class MatCheckbox implements AfterViewInit, OnChanges, ControlValueAccessor, Validator, FocusableOption {
43
56
  _elementRef: ElementRef<HTMLElement>;
44
57
  private _changeDetectorRef;
45
58
  private _ngZone;
@@ -112,7 +125,9 @@ export declare class MatCheckbox implements AfterViewInit, ControlValueAccessor,
112
125
  private _currentAnimationClass;
113
126
  private _currentCheckState;
114
127
  private _controlValueAccessorChangeFn;
128
+ private _validatorChangeFn;
115
129
  constructor(_elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, _ngZone: NgZone, tabIndex: string, _animationMode?: string | undefined, _options?: MatCheckboxDefaultOptions | undefined);
130
+ ngOnChanges(changes: SimpleChanges): void;
116
131
  ngAfterViewInit(): void;
117
132
  /** Whether the checkbox is checked. */
118
133
  get checked(): boolean;
@@ -138,6 +153,8 @@ export declare class MatCheckbox implements AfterViewInit, ControlValueAccessor,
138
153
  registerOnChange(fn: (value: any) => void): void;
139
154
  registerOnTouched(fn: any): void;
140
155
  setDisabledState(isDisabled: boolean): void;
156
+ validate(control: AbstractControl<boolean>): ValidationErrors | null;
157
+ registerOnValidatorChange(fn: () => void): void;
141
158
  private _transitionCheckState;
142
159
  private _emitChangeEvent;
143
160
  /** Toggles the `checked` state of the checkbox. */
@@ -202,7 +219,7 @@ export declare interface MatCheckboxDefaultOptions {
202
219
 
203
220
  export declare class MatCheckboxModule {
204
221
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxModule, never>;
205
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatCheckboxModule, never, [typeof i2.MatCommonModule, typeof i2.MatRippleModule, typeof _MatCheckboxRequiredValidatorModule, typeof i3.MatCheckbox], [typeof i3.MatCheckbox, typeof i2.MatCommonModule, typeof _MatCheckboxRequiredValidatorModule]>;
222
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatCheckboxModule, never, [typeof i2.MatCheckbox, typeof i3.MatCommonModule], [typeof i2.MatCheckbox, typeof i3.MatCommonModule]>;
206
223
  static ɵinj: i0.ɵɵInjectorDeclaration<MatCheckboxModule>;
207
224
  }
208
225
 
@@ -210,13 +227,19 @@ export declare class MatCheckboxModule {
210
227
  * Validator for Material checkbox's required attribute in template-driven checkbox.
211
228
  * Current CheckboxRequiredValidator only work with `input type=checkbox` and does not
212
229
  * work with `mat-checkbox`.
230
+ *
231
+ * @deprecated No longer used, `MatCheckbox` implements required validation directly.
232
+ * @breaking-change 19.0.0
213
233
  */
214
234
  export declare class MatCheckboxRequiredValidator extends CheckboxRequiredValidator {
215
235
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxRequiredValidator, never>;
216
236
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatCheckboxRequiredValidator, "mat-checkbox[required][formControlName], mat-checkbox[required][formControl], mat-checkbox[required][ngModel]", never, {}, {}, never, never, true, never>;
217
237
  }
218
238
 
219
- /** This module is used by both original and MDC-based checkbox implementations. */
239
+ /**
240
+ * @deprecated No longer used, `MatCheckbox` implements required validation directly.
241
+ * @breaking-change 19.0.0
242
+ */
220
243
  export declare class _MatCheckboxRequiredValidatorModule {
221
244
  static ɵfac: i0.ɵɵFactoryDeclaration<_MatCheckboxRequiredValidatorModule, never>;
222
245
  static ɵmod: i0.ɵɵNgModuleDeclaration<_MatCheckboxRequiredValidatorModule, never, [typeof i1.MatCheckboxRequiredValidator], [typeof i1.MatCheckboxRequiredValidator]>;
package/core/index.d.ts CHANGED
@@ -519,6 +519,18 @@ export declare const MATERIAL_SANITY_CHECKS: InjectionToken<SanityChecks>;
519
519
  /** @docs-private */
520
520
  declare function MATERIAL_SANITY_CHECKS_FACTORY(): SanityChecks;
521
521
 
522
+ /**
523
+ * Internal shared component used as a container in form field controls.
524
+ * Not to be confused with `mat-form-field` which MDC calls a "text field".
525
+ * @docs-private
526
+ */
527
+ export declare class _MatInternalFormField {
528
+ /** Position of the label relative to the content. */
529
+ labelPosition: 'before' | 'after';
530
+ static ɵfac: i0.ɵɵFactoryDeclaration<_MatInternalFormField, never>;
531
+ static ɵcmp: i0.ɵɵComponentDeclaration<_MatInternalFormField, "div[mat-internal-form-field]", never, { "labelPosition": { "alias": "labelPosition"; "required": true; }; }, {}, never, ["*"], true, never>;
532
+ }
533
+
522
534
  /**
523
535
  * Shared directive to count lines inside a text area, such as a list item.
524
536
  * Line elements can be extracted with a @ContentChildren(MatLine) query, then
@@ -0,0 +1,37 @@
1
+ @use '@material/form-field/form-field-theme' as mdc-form-field-theme;
2
+ @use '../tokens/m2/mdc/form-field' as tokens-mdc-form-field;
3
+ @use '../style/sass-utils';
4
+ @use '../theming/theming';
5
+ @use '../theming/inspection';
6
+ @use '../typography/typography';
7
+
8
+ @mixin base($theme) {}
9
+
10
+ @mixin color($theme) {
11
+ @include sass-utils.current-selector-or-root() {
12
+ @include mdc-form-field-theme.theme(tokens-mdc-form-field.get-color-tokens($theme));
13
+ }
14
+ }
15
+
16
+ @mixin typography($theme) {
17
+ @include sass-utils.current-selector-or-root() {
18
+ @include mdc-form-field-theme.theme(tokens-mdc-form-field.get-typography-tokens($theme));
19
+ }
20
+ }
21
+
22
+ @mixin density($theme) {}
23
+
24
+ @mixin theme($theme) {
25
+ @include theming.private-check-duplicate-theme-styles($theme, 'mat-internal-form-field') {
26
+ @include base($theme);
27
+ @if inspection.theme-has($theme, color) {
28
+ @include color($theme);
29
+ }
30
+ @if inspection.theme-has($theme, density) {
31
+ @include density($theme);
32
+ }
33
+ @if inspection.theme-has($theme, typography) {
34
+ @include typography($theme);
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,46 @@
1
+ @use '../../../theming/inspection';
2
+ @use '../../../style/sass-utils';
3
+ @use '../../token-utils';
4
+
5
+ // The prefix used to generate the fully qualified name for tokens in this file.
6
+ $prefix: (mdc, form-field);
7
+
8
+ // Tokens that can't be configured through Angular Material's current theming API,
9
+ // but may be in a future version of the theming API.
10
+ @function get-unthemable-tokens() {
11
+ @return ();
12
+ }
13
+
14
+ // Tokens that can be configured through Angular Material's color theming API.
15
+ @function get-color-tokens($theme) {
16
+ @return (
17
+ label-text-color: inspection.get-theme-color($theme, foreground, text),
18
+ );
19
+ }
20
+
21
+ // Tokens that can be configured through Angular Material's typography theming API.
22
+ @function get-typography-tokens($theme) {
23
+ @return (
24
+ label-text-font: inspection.get-theme-typography($theme, body-2, font-family),
25
+ label-text-line-height: inspection.get-theme-typography($theme, body-2, line-height),
26
+ label-text-size: inspection.get-theme-typography($theme, body-2, font-size),
27
+ label-text-tracking: inspection.get-theme-typography($theme, body-2, letter-spacing),
28
+ label-text-weight: inspection.get-theme-typography($theme, body-2, font-weight),
29
+ );
30
+ }
31
+
32
+ // Tokens that can be configured through Angular Material's density theming API.
33
+ @function get-density-tokens($theme) {
34
+ @return ();
35
+ }
36
+
37
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
38
+ // This is used to create token slots.
39
+ @function get-token-slots() {
40
+ @return sass-utils.deep-merge-all(
41
+ get-unthemable-tokens(),
42
+ get-color-tokens(token-utils.$placeholder-color-config),
43
+ get-typography-tokens(token-utils.$placeholder-typography-config),
44
+ get-density-tokens(token-utils.$placeholder-density-config)
45
+ );
46
+ }
@@ -17,10 +17,10 @@ export class MatAutocompleteOrigin {
17
17
  elementRef) {
18
18
  this.elementRef = elementRef;
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: MatAutocompleteOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: MatAutocompleteOrigin, isStandalone: true, selector: "[matAutocompleteOrigin]", exportAs: ["matAutocompleteOrigin"], ngImport: i0 }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: MatAutocompleteOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
21
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.0-next.2", type: MatAutocompleteOrigin, isStandalone: true, selector: "[matAutocompleteOrigin]", exportAs: ["matAutocompleteOrigin"], ngImport: i0 }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: MatAutocompleteOrigin, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0-next.2", ngImport: i0, type: MatAutocompleteOrigin, decorators: [{
24
24
  type: Directive,
25
25
  args: [{
26
26
  selector: '[matAutocompleteOrigin]',
@@ -28,4 +28,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImpor
28
28
  standalone: true,
29
29
  }]
30
30
  }], ctorParameters: () => [{ type: i0.ElementRef }] });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLW9yaWdpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9hdXRvY29tcGxldGUvYXV0b2NvbXBs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