@angular/material-experimental 14.0.0-next.1 → 14.0.0-next.12

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 (453) hide show
  1. package/_index.scss +3 -0
  2. package/column-resize/_column-resize-theme.scss +15 -17
  3. package/column-resize/column-resize-directives/column-resize-flex.d.ts +1 -1
  4. package/column-resize/column-resize-directives/column-resize.d.ts +1 -1
  5. package/column-resize/column-resize-directives/default-enabled-column-resize-flex.d.ts +1 -1
  6. package/column-resize/column-resize-directives/default-enabled-column-resize.d.ts +1 -1
  7. package/column-resize/overlay-handle.d.ts +1 -1
  8. package/column-resize/resizable-directives/default-enabled-resizable.d.ts +1 -1
  9. package/column-resize/resizable-directives/resizable.d.ts +1 -1
  10. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  11. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
  12. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
  13. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
  14. package/esm2020/column-resize/column-resize-module.mjs +13 -13
  15. package/esm2020/column-resize/overlay-handle.mjs +4 -4
  16. package/esm2020/column-resize/resizable-directives/default-enabled-resizable.mjs +4 -4
  17. package/esm2020/column-resize/resizable-directives/resizable.mjs +4 -4
  18. package/esm2020/column-resize/resize-strategy.mjs +4 -4
  19. package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +4 -4
  20. package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +6 -5
  21. package/esm2020/mdc-autocomplete/autocomplete.mjs +5 -5
  22. package/esm2020/mdc-autocomplete/module.mjs +5 -5
  23. package/esm2020/mdc-button/button-base.mjs +8 -8
  24. package/esm2020/mdc-button/button.mjs +9 -9
  25. package/esm2020/mdc-button/fab.mjs +17 -17
  26. package/esm2020/mdc-button/icon-button.mjs +9 -9
  27. package/esm2020/mdc-button/module.mjs +5 -5
  28. package/esm2020/mdc-card/card.mjs +44 -44
  29. package/esm2020/mdc-card/module.mjs +5 -5
  30. package/esm2020/mdc-checkbox/checkbox.mjs +10 -5
  31. package/esm2020/mdc-checkbox/module.mjs +5 -5
  32. package/esm2020/mdc-checkbox/testing/checkbox-harness.mjs +3 -2
  33. package/esm2020/mdc-chips/chip-action.mjs +6 -5
  34. package/esm2020/mdc-chips/chip-edit-input.mjs +5 -5
  35. package/esm2020/mdc-chips/chip-grid.mjs +35 -14
  36. package/esm2020/mdc-chips/chip-icons.mjs +10 -10
  37. package/esm2020/mdc-chips/chip-input.mjs +8 -4
  38. package/esm2020/mdc-chips/chip-listbox.mjs +8 -11
  39. package/esm2020/mdc-chips/chip-option.mjs +8 -8
  40. package/esm2020/mdc-chips/chip-row.mjs +5 -5
  41. package/esm2020/mdc-chips/chip-set.mjs +13 -15
  42. package/esm2020/mdc-chips/chip-text-control.mjs +1 -1
  43. package/esm2020/mdc-chips/chip.mjs +8 -8
  44. package/esm2020/mdc-chips/module.mjs +5 -5
  45. package/esm2020/mdc-chips/testing/public-api.mjs +2 -1
  46. package/esm2020/mdc-core/option/index.mjs +5 -5
  47. package/esm2020/mdc-core/option/optgroup.mjs +5 -5
  48. package/esm2020/mdc-core/option/option.mjs +5 -5
  49. package/esm2020/mdc-dialog/dialog-container.mjs +7 -8
  50. package/esm2020/mdc-dialog/dialog-content-directives.mjs +27 -15
  51. package/esm2020/mdc-dialog/dialog.mjs +10 -5
  52. package/esm2020/mdc-dialog/module.mjs +5 -5
  53. package/esm2020/mdc-dialog/testing/dialog-opener.mjs +45 -0
  54. package/esm2020/mdc-dialog/testing/public-api.mjs +2 -1
  55. package/esm2020/mdc-form-field/directives/error.mjs +4 -4
  56. package/esm2020/mdc-form-field/directives/floating-label.mjs +5 -10
  57. package/esm2020/mdc-form-field/directives/hint.mjs +4 -4
  58. package/esm2020/mdc-form-field/directives/label.mjs +4 -4
  59. package/esm2020/mdc-form-field/directives/line-ripple.mjs +4 -4
  60. package/esm2020/mdc-form-field/directives/notched-outline.mjs +4 -4
  61. package/esm2020/mdc-form-field/directives/prefix.mjs +4 -4
  62. package/esm2020/mdc-form-field/directives/suffix.mjs +4 -4
  63. package/esm2020/mdc-form-field/form-field.mjs +59 -47
  64. package/esm2020/mdc-form-field/module.mjs +5 -5
  65. package/esm2020/mdc-form-field/testing/public-api.mjs +4 -4
  66. package/esm2020/mdc-input/input.mjs +4 -4
  67. package/esm2020/mdc-input/module.mjs +5 -5
  68. package/esm2020/mdc-list/action-list.mjs +6 -6
  69. package/esm2020/mdc-list/interactive-list-base.mjs +5 -5
  70. package/esm2020/mdc-list/list-base.mjs +7 -7
  71. package/esm2020/mdc-list/list-item-sections.mjs +19 -19
  72. package/esm2020/mdc-list/list-option.mjs +9 -9
  73. package/esm2020/mdc-list/list.mjs +21 -9
  74. package/esm2020/mdc-list/module.mjs +5 -5
  75. package/esm2020/mdc-list/nav-list.mjs +5 -5
  76. package/esm2020/mdc-list/selection-list.mjs +6 -6
  77. package/esm2020/mdc-list/subheader.mjs +4 -4
  78. package/esm2020/mdc-menu/directives.mjs +7 -7
  79. package/esm2020/mdc-menu/menu-item.mjs +6 -6
  80. package/esm2020/mdc-menu/menu.mjs +9 -9
  81. package/esm2020/mdc-menu/module.mjs +5 -5
  82. package/esm2020/mdc-paginator/module.mjs +5 -5
  83. package/esm2020/mdc-paginator/paginator.mjs +10 -10
  84. package/esm2020/mdc-paginator/public-api.mjs +1 -1
  85. package/esm2020/mdc-progress-bar/module.mjs +5 -5
  86. package/esm2020/mdc-progress-bar/progress-bar.mjs +8 -5
  87. package/esm2020/mdc-progress-spinner/module.mjs +5 -5
  88. package/esm2020/mdc-progress-spinner/progress-spinner.mjs +8 -5
  89. package/esm2020/mdc-radio/module.mjs +5 -5
  90. package/esm2020/mdc-radio/radio.mjs +9 -8
  91. package/esm2020/mdc-radio/testing/radio-harness.mjs +3 -2
  92. package/esm2020/mdc-select/module.mjs +5 -5
  93. package/esm2020/mdc-select/select.mjs +11 -12
  94. package/esm2020/mdc-slide-toggle/module.mjs +5 -5
  95. package/esm2020/mdc-slide-toggle/slide-toggle.mjs +6 -5
  96. package/esm2020/mdc-slide-toggle/testing/slide-toggle-harness.mjs +4 -2
  97. package/esm2020/mdc-slider/global-change-and-input-listener.mjs +4 -4
  98. package/esm2020/mdc-slider/module.mjs +5 -5
  99. package/esm2020/mdc-slider/slider.mjs +53 -24
  100. package/esm2020/mdc-snack-bar/module.mjs +5 -5
  101. package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +8 -8
  102. package/esm2020/mdc-snack-bar/snack-bar-container.mjs +37 -25
  103. package/esm2020/mdc-snack-bar/snack-bar-content.mjs +10 -10
  104. package/esm2020/mdc-snack-bar/snack-bar.mjs +4 -4
  105. package/esm2020/mdc-table/cell.mjs +22 -22
  106. package/esm2020/mdc-table/module.mjs +5 -5
  107. package/esm2020/mdc-table/row.mjs +22 -22
  108. package/esm2020/mdc-table/table.mjs +9 -9
  109. package/esm2020/mdc-table/text-column.mjs +5 -5
  110. package/esm2020/mdc-tabs/ink-bar.mjs +4 -2
  111. package/esm2020/mdc-tabs/module.mjs +5 -5
  112. package/esm2020/mdc-tabs/tab-body.mjs +8 -8
  113. package/esm2020/mdc-tabs/tab-content.mjs +4 -4
  114. package/esm2020/mdc-tabs/tab-group.mjs +25 -13
  115. package/esm2020/mdc-tabs/tab-header.mjs +5 -5
  116. package/esm2020/mdc-tabs/tab-label-wrapper.mjs +4 -4
  117. package/esm2020/mdc-tabs/tab-label.mjs +4 -4
  118. package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +29 -12
  119. package/esm2020/mdc-tabs/tab.mjs +4 -4
  120. package/esm2020/mdc-tooltip/module.mjs +5 -5
  121. package/esm2020/mdc-tooltip/testing/tooltip-harness.mjs +4 -1
  122. package/esm2020/mdc-tooltip/tooltip.mjs +31 -15
  123. package/esm2020/menubar/menubar-item.mjs +20 -6
  124. package/esm2020/menubar/menubar-module.mjs +6 -6
  125. package/esm2020/menubar/menubar.mjs +11 -14
  126. package/esm2020/popover-edit/lens-directives.mjs +10 -10
  127. package/esm2020/popover-edit/popover-edit-module.mjs +5 -5
  128. package/esm2020/popover-edit/table-directives.mjs +13 -13
  129. package/esm2020/selection/row-selection.mjs +4 -4
  130. package/esm2020/selection/select-all.mjs +4 -4
  131. package/esm2020/selection/selection-column.mjs +8 -8
  132. package/esm2020/selection/selection-module.mjs +5 -5
  133. package/esm2020/selection/selection-toggle.mjs +4 -4
  134. package/esm2020/selection/selection.mjs +4 -4
  135. package/esm2020/version.mjs +1 -1
  136. package/fesm2015/column-resize.mjs +36 -36
  137. package/fesm2015/column-resize.mjs.map +1 -1
  138. package/fesm2015/material-experimental.mjs +1 -1
  139. package/fesm2015/material-experimental.mjs.map +1 -1
  140. package/fesm2015/mdc-autocomplete/testing.mjs.map +1 -1
  141. package/fesm2015/mdc-autocomplete.mjs +16 -15
  142. package/fesm2015/mdc-autocomplete.mjs.map +1 -1
  143. package/fesm2015/mdc-button/testing.mjs.map +1 -1
  144. package/fesm2015/mdc-button.mjs +43 -43
  145. package/fesm2015/mdc-button.mjs.map +1 -1
  146. package/fesm2015/mdc-card/testing.mjs.map +1 -1
  147. package/fesm2015/mdc-card.mjs +47 -47
  148. package/fesm2015/mdc-card.mjs.map +1 -1
  149. package/fesm2015/mdc-checkbox/testing.mjs +2 -1
  150. package/fesm2015/mdc-checkbox/testing.mjs.map +1 -1
  151. package/fesm2015/mdc-checkbox.mjs +13 -8
  152. package/fesm2015/mdc-checkbox.mjs.map +1 -1
  153. package/fesm2015/mdc-chips/testing.mjs +2 -2
  154. package/fesm2015/mdc-chips/testing.mjs.map +1 -1
  155. package/fesm2015/mdc-chips.mjs +96 -76
  156. package/fesm2015/mdc-chips.mjs.map +1 -1
  157. package/fesm2015/mdc-core/testing.mjs.map +1 -1
  158. package/fesm2015/mdc-core.mjs +12 -12
  159. package/fesm2015/mdc-core.mjs.map +1 -1
  160. package/fesm2015/mdc-dialog/testing.mjs +44 -2
  161. package/fesm2015/mdc-dialog/testing.mjs.map +1 -1
  162. package/fesm2015/mdc-dialog.mjs +45 -29
  163. package/fesm2015/mdc-dialog.mjs.map +1 -1
  164. package/fesm2015/mdc-form-field/testing.mjs +1 -1
  165. package/fesm2015/mdc-form-field/testing.mjs.map +1 -1
  166. package/fesm2015/mdc-form-field.mjs +84 -77
  167. package/fesm2015/mdc-form-field.mjs.map +1 -1
  168. package/fesm2015/mdc-input/testing.mjs.map +1 -1
  169. package/fesm2015/mdc-input.mjs +7 -7
  170. package/fesm2015/mdc-input.mjs.map +1 -1
  171. package/fesm2015/mdc-list/testing.mjs.map +1 -1
  172. package/fesm2015/mdc-list.mjs +74 -63
  173. package/fesm2015/mdc-list.mjs.map +1 -1
  174. package/fesm2015/mdc-menu/testing.mjs.map +1 -1
  175. package/fesm2015/mdc-menu.mjs +21 -21
  176. package/fesm2015/mdc-menu.mjs.map +1 -1
  177. package/fesm2015/mdc-paginator/testing.mjs.map +1 -1
  178. package/fesm2015/mdc-paginator.mjs +13 -13
  179. package/fesm2015/mdc-paginator.mjs.map +1 -1
  180. package/fesm2015/mdc-progress-bar/testing.mjs.map +1 -1
  181. package/fesm2015/mdc-progress-bar.mjs +11 -8
  182. package/fesm2015/mdc-progress-bar.mjs.map +1 -1
  183. package/fesm2015/mdc-progress-spinner/testing.mjs.map +1 -1
  184. package/fesm2015/mdc-progress-spinner.mjs +11 -8
  185. package/fesm2015/mdc-progress-spinner.mjs.map +1 -1
  186. package/fesm2015/mdc-radio/testing.mjs +2 -1
  187. package/fesm2015/mdc-radio/testing.mjs.map +1 -1
  188. package/fesm2015/mdc-radio.mjs +12 -11
  189. package/fesm2015/mdc-radio.mjs.map +1 -1
  190. package/fesm2015/mdc-select/testing.mjs.map +1 -1
  191. package/fesm2015/mdc-select.mjs +14 -15
  192. package/fesm2015/mdc-select.mjs.map +1 -1
  193. package/fesm2015/mdc-slide-toggle/testing.mjs +3 -1
  194. package/fesm2015/mdc-slide-toggle/testing.mjs.map +1 -1
  195. package/fesm2015/mdc-slide-toggle.mjs +9 -8
  196. package/fesm2015/mdc-slide-toggle.mjs.map +1 -1
  197. package/fesm2015/mdc-slider/testing.mjs.map +1 -1
  198. package/fesm2015/mdc-slider.mjs +70 -30
  199. package/fesm2015/mdc-slider.mjs.map +1 -1
  200. package/fesm2015/mdc-snack-bar/testing.mjs.map +1 -1
  201. package/fesm2015/mdc-snack-bar.mjs +62 -50
  202. package/fesm2015/mdc-snack-bar.mjs.map +1 -1
  203. package/fesm2015/mdc-table/testing.mjs.map +1 -1
  204. package/fesm2015/mdc-table.mjs +58 -58
  205. package/fesm2015/mdc-table.mjs.map +1 -1
  206. package/fesm2015/mdc-tabs/testing.mjs.map +1 -1
  207. package/fesm2015/mdc-tabs.mjs +77 -46
  208. package/fesm2015/mdc-tabs.mjs.map +1 -1
  209. package/fesm2015/mdc-tooltip/testing.mjs +3 -0
  210. package/fesm2015/mdc-tooltip/testing.mjs.map +1 -1
  211. package/fesm2015/mdc-tooltip.mjs +60 -41
  212. package/fesm2015/mdc-tooltip.mjs.map +1 -1
  213. package/fesm2015/menubar.mjs +32 -20
  214. package/fesm2015/menubar.mjs.map +1 -1
  215. package/fesm2015/popover-edit.mjs +25 -25
  216. package/fesm2015/popover-edit.mjs.map +1 -1
  217. package/fesm2015/selection.mjs +24 -24
  218. package/fesm2015/selection.mjs.map +1 -1
  219. package/fesm2020/column-resize.mjs +36 -36
  220. package/fesm2020/column-resize.mjs.map +1 -1
  221. package/fesm2020/material-experimental.mjs +1 -1
  222. package/fesm2020/material-experimental.mjs.map +1 -1
  223. package/fesm2020/mdc-autocomplete/testing.mjs.map +1 -1
  224. package/fesm2020/mdc-autocomplete.mjs +16 -15
  225. package/fesm2020/mdc-autocomplete.mjs.map +1 -1
  226. package/fesm2020/mdc-button/testing.mjs.map +1 -1
  227. package/fesm2020/mdc-button.mjs +43 -43
  228. package/fesm2020/mdc-button.mjs.map +1 -1
  229. package/fesm2020/mdc-card/testing.mjs.map +1 -1
  230. package/fesm2020/mdc-card.mjs +47 -47
  231. package/fesm2020/mdc-card.mjs.map +1 -1
  232. package/fesm2020/mdc-checkbox/testing.mjs +2 -1
  233. package/fesm2020/mdc-checkbox/testing.mjs.map +1 -1
  234. package/fesm2020/mdc-checkbox.mjs +13 -8
  235. package/fesm2020/mdc-checkbox.mjs.map +1 -1
  236. package/fesm2020/mdc-chips/testing.mjs +1 -1
  237. package/fesm2020/mdc-chips/testing.mjs.map +1 -1
  238. package/fesm2020/mdc-chips.mjs +96 -76
  239. package/fesm2020/mdc-chips.mjs.map +1 -1
  240. package/fesm2020/mdc-core/testing.mjs.map +1 -1
  241. package/fesm2020/mdc-core.mjs +12 -12
  242. package/fesm2020/mdc-core.mjs.map +1 -1
  243. package/fesm2020/mdc-dialog/testing.mjs +44 -2
  244. package/fesm2020/mdc-dialog/testing.mjs.map +1 -1
  245. package/fesm2020/mdc-dialog.mjs +45 -29
  246. package/fesm2020/mdc-dialog.mjs.map +1 -1
  247. package/fesm2020/mdc-form-field/testing.mjs +1 -1
  248. package/fesm2020/mdc-form-field/testing.mjs.map +1 -1
  249. package/fesm2020/mdc-form-field.mjs +83 -76
  250. package/fesm2020/mdc-form-field.mjs.map +1 -1
  251. package/fesm2020/mdc-input/testing.mjs.map +1 -1
  252. package/fesm2020/mdc-input.mjs +7 -7
  253. package/fesm2020/mdc-input.mjs.map +1 -1
  254. package/fesm2020/mdc-list/testing.mjs.map +1 -1
  255. package/fesm2020/mdc-list.mjs +74 -63
  256. package/fesm2020/mdc-list.mjs.map +1 -1
  257. package/fesm2020/mdc-menu/testing.mjs.map +1 -1
  258. package/fesm2020/mdc-menu.mjs +21 -21
  259. package/fesm2020/mdc-menu.mjs.map +1 -1
  260. package/fesm2020/mdc-paginator/testing.mjs.map +1 -1
  261. package/fesm2020/mdc-paginator.mjs +13 -13
  262. package/fesm2020/mdc-paginator.mjs.map +1 -1
  263. package/fesm2020/mdc-progress-bar/testing.mjs.map +1 -1
  264. package/fesm2020/mdc-progress-bar.mjs +11 -8
  265. package/fesm2020/mdc-progress-bar.mjs.map +1 -1
  266. package/fesm2020/mdc-progress-spinner/testing.mjs.map +1 -1
  267. package/fesm2020/mdc-progress-spinner.mjs +11 -8
  268. package/fesm2020/mdc-progress-spinner.mjs.map +1 -1
  269. package/fesm2020/mdc-radio/testing.mjs +2 -1
  270. package/fesm2020/mdc-radio/testing.mjs.map +1 -1
  271. package/fesm2020/mdc-radio.mjs +12 -11
  272. package/fesm2020/mdc-radio.mjs.map +1 -1
  273. package/fesm2020/mdc-select/testing.mjs.map +1 -1
  274. package/fesm2020/mdc-select.mjs +14 -15
  275. package/fesm2020/mdc-select.mjs.map +1 -1
  276. package/fesm2020/mdc-slide-toggle/testing.mjs +3 -1
  277. package/fesm2020/mdc-slide-toggle/testing.mjs.map +1 -1
  278. package/fesm2020/mdc-slide-toggle.mjs +9 -8
  279. package/fesm2020/mdc-slide-toggle.mjs.map +1 -1
  280. package/fesm2020/mdc-slider/testing.mjs.map +1 -1
  281. package/fesm2020/mdc-slider.mjs +59 -29
  282. package/fesm2020/mdc-slider.mjs.map +1 -1
  283. package/fesm2020/mdc-snack-bar/testing.mjs.map +1 -1
  284. package/fesm2020/mdc-snack-bar.mjs +62 -50
  285. package/fesm2020/mdc-snack-bar.mjs.map +1 -1
  286. package/fesm2020/mdc-table/testing.mjs.map +1 -1
  287. package/fesm2020/mdc-table.mjs +58 -58
  288. package/fesm2020/mdc-table.mjs.map +1 -1
  289. package/fesm2020/mdc-tabs/testing.mjs.map +1 -1
  290. package/fesm2020/mdc-tabs.mjs +77 -46
  291. package/fesm2020/mdc-tabs.mjs.map +1 -1
  292. package/fesm2020/mdc-tooltip/testing.mjs +3 -0
  293. package/fesm2020/mdc-tooltip/testing.mjs.map +1 -1
  294. package/fesm2020/mdc-tooltip.mjs +57 -40
  295. package/fesm2020/mdc-tooltip.mjs.map +1 -1
  296. package/fesm2020/menubar.mjs +31 -20
  297. package/fesm2020/menubar.mjs.map +1 -1
  298. package/fesm2020/popover-edit.mjs +25 -25
  299. package/fesm2020/popover-edit.mjs.map +1 -1
  300. package/fesm2020/selection.mjs +24 -24
  301. package/fesm2020/selection.mjs.map +1 -1
  302. package/mdc-autocomplete/_autocomplete-theme.scss +10 -10
  303. package/mdc-autocomplete/autocomplete-origin.d.ts +1 -1
  304. package/mdc-autocomplete/autocomplete-trigger.d.ts +1 -1
  305. package/mdc-autocomplete/autocomplete.d.ts +1 -1
  306. package/mdc-button/_button-base.scss +4 -3
  307. package/mdc-button/_button-theme-private.scss +0 -1
  308. package/mdc-button/_button-theme.scss +16 -13
  309. package/mdc-button/_fab-theme.scss +10 -10
  310. package/mdc-button/_icon-button-theme.scss +13 -12
  311. package/mdc-button/button-base.d.ts +2 -2
  312. package/mdc-button/button.d.ts +2 -2
  313. package/mdc-button/fab.d.ts +4 -4
  314. package/mdc-button/icon-button.d.ts +2 -2
  315. package/mdc-card/_card-theme.scss +11 -11
  316. package/mdc-card/card.d.ts +14 -14
  317. package/mdc-checkbox/_checkbox-theme.scss +16 -17
  318. package/mdc-checkbox/checkbox.d.ts +1 -1
  319. package/mdc-chips/_chips-theme.scss +20 -15
  320. package/mdc-chips/chip-action.d.ts +2 -2
  321. package/mdc-chips/chip-edit-input.d.ts +1 -1
  322. package/mdc-chips/chip-grid.d.ts +23 -6
  323. package/mdc-chips/chip-icons.d.ts +3 -3
  324. package/mdc-chips/chip-input.d.ts +6 -6
  325. package/mdc-chips/chip-listbox.d.ts +2 -3
  326. package/mdc-chips/chip-option.d.ts +1 -1
  327. package/mdc-chips/chip-row.d.ts +1 -1
  328. package/mdc-chips/chip-set.d.ts +4 -4
  329. package/mdc-chips/chip-text-control.d.ts +2 -0
  330. package/mdc-chips/chip.d.ts +1 -1
  331. package/mdc-chips/testing/public-api.d.ts +1 -0
  332. package/mdc-color/_all-color.scss +4 -3
  333. package/mdc-core/_core-theme.scss +23 -11
  334. package/mdc-core/option/_optgroup-theme.scss +11 -11
  335. package/mdc-core/option/_option-theme.scss +11 -11
  336. package/mdc-core/option/optgroup.d.ts +1 -1
  337. package/mdc-core/option/option.d.ts +1 -1
  338. package/mdc-density/_all-density.scss +4 -3
  339. package/mdc-dialog/_dialog-theme.scss +49 -13
  340. package/mdc-dialog/dialog-container.d.ts +1 -1
  341. package/mdc-dialog/dialog-content-directives.d.ts +8 -4
  342. package/mdc-dialog/dialog.d.ts +6 -1
  343. package/mdc-dialog/testing/dialog-opener.d.ts +18 -0
  344. package/mdc-dialog/testing/public-api.d.ts +1 -0
  345. package/mdc-form-field/_form-field-density.scss +6 -5
  346. package/mdc-form-field/_form-field-focus-overlay.scss +2 -2
  347. package/mdc-form-field/_form-field-high-contrast.scss +17 -8
  348. package/mdc-form-field/_form-field-native-select.scss +5 -4
  349. package/mdc-form-field/_form-field-subscript.scss +5 -3
  350. package/mdc-form-field/_form-field-theme.scss +17 -17
  351. package/mdc-form-field/_mdc-text-field-structure-overrides.scss +2 -2
  352. package/mdc-form-field/directives/error.d.ts +1 -1
  353. package/mdc-form-field/directives/floating-label.d.ts +1 -3
  354. package/mdc-form-field/directives/hint.d.ts +1 -1
  355. package/mdc-form-field/directives/label.d.ts +1 -1
  356. package/mdc-form-field/directives/line-ripple.d.ts +1 -1
  357. package/mdc-form-field/directives/notched-outline.d.ts +1 -1
  358. package/mdc-form-field/directives/prefix.d.ts +1 -1
  359. package/mdc-form-field/directives/suffix.d.ts +1 -1
  360. package/mdc-form-field/form-field.d.ts +24 -12
  361. package/mdc-form-field/testing/public-api.d.ts +1 -1
  362. package/mdc-helpers/_focus-indicators-theme.scss +6 -6
  363. package/mdc-helpers/_focus-indicators.scss +2 -2
  364. package/mdc-helpers/_mdc-helpers.scss +13 -16
  365. package/mdc-input/_input-theme.scss +10 -10
  366. package/mdc-input/input.d.ts +1 -1
  367. package/mdc-list/_interactive-list-theme.scss +2 -2
  368. package/mdc-list/_list-theme.scss +22 -15
  369. package/mdc-list/action-list.d.ts +1 -1
  370. package/mdc-list/interactive-list-base.d.ts +1 -1
  371. package/mdc-list/list-base.d.ts +2 -2
  372. package/mdc-list/list-item-sections.d.ts +6 -6
  373. package/mdc-list/list-option.d.ts +1 -1
  374. package/mdc-list/list.d.ts +6 -2
  375. package/mdc-list/nav-list.d.ts +1 -1
  376. package/mdc-list/selection-list.d.ts +1 -1
  377. package/mdc-list/subheader.d.ts +1 -1
  378. package/mdc-menu/_menu-theme.scss +10 -10
  379. package/mdc-menu/directives.d.ts +2 -2
  380. package/mdc-menu/menu-item.d.ts +1 -1
  381. package/mdc-menu/menu.d.ts +2 -2
  382. package/mdc-paginator/_paginator-theme.scss +20 -23
  383. package/mdc-paginator/paginator.d.ts +1 -1
  384. package/mdc-paginator/public-api.d.ts +1 -1
  385. package/mdc-progress-bar/_progress-bar-theme.scss +8 -7
  386. package/mdc-progress-bar/progress-bar.d.ts +1 -1
  387. package/mdc-progress-spinner/_progress-spinner-theme.scss +8 -7
  388. package/mdc-progress-spinner/progress-spinner.d.ts +1 -1
  389. package/mdc-radio/_radio-theme.scss +16 -16
  390. package/mdc-radio/radio.d.ts +2 -2
  391. package/mdc-select/_select-theme.scss +11 -11
  392. package/mdc-select/select.d.ts +2 -2
  393. package/mdc-slide-toggle/_slide-toggle-theme.scss +14 -15
  394. package/mdc-slide-toggle/slide-toggle.d.ts +1 -1
  395. package/mdc-slider/_slider-theme.scss +11 -12
  396. package/mdc-slider/slider.d.ts +9 -3
  397. package/mdc-snack-bar/_snack-bar-theme.scss +11 -11
  398. package/mdc-snack-bar/simple-snack-bar.d.ts +1 -1
  399. package/mdc-snack-bar/snack-bar-container.d.ts +5 -4
  400. package/mdc-snack-bar/snack-bar-content.d.ts +3 -3
  401. package/mdc-table/_table-theme.scss +14 -21
  402. package/mdc-table/cell.d.ts +7 -7
  403. package/mdc-table/row.d.ts +7 -7
  404. package/mdc-table/table.d.ts +2 -2
  405. package/mdc-table/text-column.d.ts +1 -1
  406. package/mdc-tabs/_tabs-common.scss +14 -4
  407. package/mdc-tabs/_tabs-theme.scss +14 -14
  408. package/mdc-tabs/ink-bar.d.ts +1 -1
  409. package/mdc-tabs/tab-body.d.ts +2 -2
  410. package/mdc-tabs/tab-content.d.ts +1 -1
  411. package/mdc-tabs/tab-group.d.ts +5 -1
  412. package/mdc-tabs/tab-header.d.ts +1 -1
  413. package/mdc-tabs/tab-label-wrapper.d.ts +1 -1
  414. package/mdc-tabs/tab-label.d.ts +1 -1
  415. package/mdc-tabs/tab-nav-bar/tab-nav-bar.d.ts +10 -5
  416. package/mdc-tabs/tab.d.ts +1 -1
  417. package/mdc-theming/_all-theme.scss +3 -2
  418. package/mdc-theming/prebuilt/deeppurple-amber.css +1 -1
  419. package/mdc-theming/prebuilt/indigo-pink.css +1 -1
  420. package/mdc-theming/prebuilt/pink-bluegrey.css +1 -1
  421. package/mdc-theming/prebuilt/purple-green.css +1 -1
  422. package/mdc-tooltip/_tooltip-theme.scss +12 -13
  423. package/mdc-tooltip/testing/tooltip-harness.d.ts +3 -0
  424. package/mdc-tooltip/tooltip.d.ts +8 -4
  425. package/mdc-typography/_all-typography.scss +5 -5
  426. package/menubar/menubar-item.d.ts +3 -2
  427. package/menubar/menubar-module.d.ts +1 -1
  428. package/menubar/menubar.d.ts +2 -2
  429. package/package.json +56 -18
  430. package/popover-edit/_popover-edit-theme.scss +23 -26
  431. package/popover-edit/lens-directives.d.ts +3 -3
  432. package/popover-edit/table-directives.d.ts +4 -4
  433. package/selection/_selection.scss +3 -3
  434. package/selection/row-selection.d.ts +1 -1
  435. package/selection/select-all.d.ts +1 -1
  436. package/selection/selection-column.d.ts +1 -1
  437. package/selection/selection-toggle.d.ts +1 -1
  438. package/selection/selection.d.ts +1 -1
  439. package/esm2020/mdc-sidenav/index.mjs +0 -9
  440. package/esm2020/mdc-sidenav/mdc-sidenav_public_index.mjs +0 -5
  441. package/esm2020/mdc-sidenav/module.mjs +0 -23
  442. package/esm2020/mdc-sidenav/public-api.mjs +0 -9
  443. package/fesm2015/mdc-sidenav.mjs +0 -46
  444. package/fesm2015/mdc-sidenav.mjs.map +0 -1
  445. package/fesm2020/mdc-sidenav.mjs +0 -46
  446. package/fesm2020/mdc-sidenav.mjs.map +0 -1
  447. package/mdc-sidenav/_sidenav-theme.import.scss +0 -5
  448. package/mdc-sidenav/_sidenav-theme.scss +0 -28
  449. package/mdc-sidenav/index.d.ts +0 -8
  450. package/mdc-sidenav/mdc-sidenav_public_index.d.ts +0 -4
  451. package/mdc-sidenav/module.d.ts +0 -7
  452. package/mdc-sidenav/package.json +0 -9
  453. package/mdc-sidenav/public-api.d.ts +0 -8
@@ -28,7 +28,7 @@ export declare class MatDialogClose implements OnInit, OnChanges {
28
28
  ngOnChanges(changes: SimpleChanges): void;
29
29
  _onButtonClick(event: MouseEvent): void;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogClose, [{ optional: true; }, null, null]>;
31
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogClose, "[mat-dialog-close], [matDialogClose]", ["matDialogClose"], { "ariaLabel": "aria-label"; "type": "type"; "dialogResult": "mat-dialog-close"; "_matDialogClose": "matDialogClose"; }, {}, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogClose, "[mat-dialog-close], [matDialogClose]", ["matDialogClose"], { "ariaLabel": "aria-label"; "type": "type"; "dialogResult": "mat-dialog-close"; "_matDialogClose": "matDialogClose"; }, {}, never, never, false>;
32
32
  }
33
33
  /**
34
34
  * Title of a dialog element. Stays fixed to the top of the dialog when scrolling.
@@ -41,20 +41,24 @@ export declare class MatDialogTitle implements OnInit {
41
41
  constructor(_dialogRef: MatDialogRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: MatDialog);
42
42
  ngOnInit(): void;
43
43
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogTitle, [{ optional: true; }, null, null]>;
44
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogTitle, "[mat-dialog-title], [matDialogTitle]", ["matDialogTitle"], { "id": "id"; }, {}, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogTitle, "[mat-dialog-title], [matDialogTitle]", ["matDialogTitle"], { "id": "id"; }, {}, never, never, false>;
45
45
  }
46
46
  /**
47
47
  * Scrollable content container of a dialog.
48
48
  */
49
49
  export declare class MatDialogContent {
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogContent, never>;
51
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogContent, "[mat-dialog-content], mat-dialog-content, [matDialogContent]", never, {}, {}, never>;
51
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogContent, "[mat-dialog-content], mat-dialog-content, [matDialogContent]", never, {}, {}, never, never, false>;
52
52
  }
53
53
  /**
54
54
  * Container for the bottom action buttons in a dialog.
55
55
  * Stays fixed to the bottom when scrolling.
56
56
  */
57
57
  export declare class MatDialogActions {
58
+ /**
59
+ * Horizontal alignment of action buttons.
60
+ */
61
+ align?: 'start' | 'center' | 'end';
58
62
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogActions, never>;
59
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogActions, "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", never, {}, {}, never>;
63
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogActions, "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", never, { "align": "align"; }, {}, never, never, false>;
60
64
  }
@@ -34,7 +34,12 @@ export declare class MatDialog extends _MatDialogBase<MatDialogContainer> {
34
34
  * @deprecated `_location` parameter to be removed.
35
35
  * @breaking-change 10.0.0
36
36
  */
37
- location: Location, defaultOptions: MatDialogConfig, scrollStrategy: any, parentDialog: MatDialog, overlayContainer: OverlayContainer, animationMode?: 'NoopAnimations' | 'BrowserAnimations');
37
+ location: Location, defaultOptions: MatDialogConfig, scrollStrategy: any, parentDialog: MatDialog, overlayContainer: OverlayContainer,
38
+ /**
39
+ * @deprecated No longer used. To be removed.
40
+ * @breaking-change 14.0.0
41
+ */
42
+ animationMode?: 'NoopAnimations' | 'BrowserAnimations');
38
43
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDialog, [null, null, { optional: true; }, { optional: true; }, null, { optional: true; skipSelf: true; }, null, { optional: true; }]>;
39
44
  static ɵprov: i0.ɵɵInjectableDeclaration<MatDialog>;
40
45
  }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { ComponentType } from '@angular/cdk/overlay';
9
+ import { _MatTestDialogOpenerBase } from '@angular/material/dialog/testing';
10
+ import { MatDialog, MatDialogContainer, MatDialogConfig } from '@angular/material-experimental/mdc-dialog';
11
+ /** Test component that immediately opens a dialog when bootstrapped. */
12
+ export declare class MatTestDialogOpener<T = unknown, R = unknown> extends _MatTestDialogOpenerBase<MatDialogContainer, T, R> {
13
+ constructor(dialog: MatDialog);
14
+ /** Static method that prepares this class to open the provided component. */
15
+ static withComponent<T = unknown, R = unknown>(component: ComponentType<T>, config?: MatDialogConfig): ComponentType<MatTestDialogOpener<T, R>>;
16
+ }
17
+ export declare class MatTestDialogOpenerModule {
18
+ }
@@ -7,3 +7,4 @@
7
7
  */
8
8
  export { DialogHarnessFilters } from '@angular/material/dialog/testing';
9
9
  export { MatDialogHarness, MatDialogSection } from './dialog-harness';
10
+ export * from './dialog-opener';
@@ -1,9 +1,10 @@
1
1
  @use 'sass:map';
2
2
  @use 'sass:math';
3
+ @use '@angular/material' as mat;
3
4
  @use '@material/density' as mdc-density;
4
5
  @use '@material/textfield' as mdc-textfield;
5
- @use '../../material/core/theming/theming';
6
- @use 'form-field-sizing';
6
+
7
+ @use './form-field-sizing';
7
8
 
8
9
  // Mixin that sets the vertical spacing for the infix container of filled form fields.
9
10
  // We need to apply spacing to the infix container because we removed the input padding
@@ -39,7 +40,7 @@
39
40
  // specification. In order to support density, we need to adjust the vertical spacing to be
40
41
  // based on the density scale.
41
42
  @mixin private-form-field-density($config-or-theme) {
42
- $density-scale: theming.get-density-config($config-or-theme);
43
+ $density-scale: mat.get-density-config($config-or-theme);
43
44
  // Height of the form field that is based on the current density scale.
44
45
  $height: mdc-density.prop-value(
45
46
  $density-config: mdc-textfield.$density-config,
@@ -77,7 +78,7 @@
77
78
  // on whether a textarea is used. This is not possible in our implementation of the
78
79
  // form-field because we do not know what type of form-field control is set up. Hence
79
80
  // we always use a fixed position for the label. This does not have any implications.
80
- .mat-mdc-form-field .mat-mdc-text-field-wrapper .mdc-floating-label {
81
+ .mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-floating-label {
81
82
  top: math.div($height, 2);
82
83
  }
83
84
 
@@ -107,7 +108,7 @@
107
108
  // Update the spacing for filled form fields to account for the hidden floating label.
108
109
  @include _infix-vertical-spacing-filled(
109
110
  $no-label-padding, $no-label-padding);
110
- .mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mdc-floating-label {
111
+ .mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-floating-label {
111
112
  display: none;
112
113
  }
113
114
  }
@@ -1,6 +1,6 @@
1
+ @use '@angular/material' as mat;
1
2
  @use '@material/ripple/functions' as mdc-ripple-functions;
2
3
  @use '@material/textfield' as mdc-textfield;
3
- @use '../../material/core/style/layout-common';
4
4
 
5
5
  // MDC text-field uses `@material/ripple` in order to show a focus and hover effect for
6
6
  // text-fields. This is unnecessary because the ripples bring in a lot of unnecessary
@@ -11,7 +11,7 @@
11
11
  // uses the exact same logic to compute the colors as in the default MDC text-field ripples.
12
12
  @mixin private-form-field-focus-overlay() {
13
13
  .mat-mdc-form-field-focus-overlay {
14
- @include layout-common.fill;
14
+ @include mat.private-fill;
15
15
  opacity: 0;
16
16
  }
17
17
  }
@@ -1,21 +1,30 @@
1
- @use '../../cdk/a11y';
1
+ @use '@angular/cdk';
2
2
 
3
3
  @mixin private-form-field-high-contrast() {
4
4
  $focus-indicator-width: 3px;
5
5
  $focus-indicator-style: dashed;
6
6
 
7
- // The outline of the `fill` appearance is achieved through a background color
8
- // which won't be visible in high contrast mode. Add an outline to replace it.
9
- .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper {
10
- @include a11y.high-contrast(active, off) {
11
- outline: solid 1px;
7
+ .mat-form-field-appearance-fill {
8
+ // The outline of the `fill` appearance is achieved through a background color
9
+ // which won't be visible in high contrast mode. Add an outline to replace it.
10
+ .mat-mdc-text-field-wrapper {
11
+ @include cdk.high-contrast(active, off) {
12
+ outline: solid 1px;
13
+ }
14
+ }
15
+
16
+ // Use GreyText for the disabled outline color which will account for the user's configuration.
17
+ &.mat-form-field-disabled .mat-mdc-text-field-wrapper {
18
+ @include cdk.high-contrast(active, off) {
19
+ outline-color: GrayText;
20
+ }
12
21
  }
13
22
  }
14
23
 
15
24
  // If a form field with fill appearance is focused, update the outline to be
16
25
  // dashed and thicker to indicate focus.
17
26
  .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper {
18
- @include a11y.high-contrast(active, off) {
27
+ @include cdk.high-contrast(active, off) {
19
28
  outline: $focus-indicator-style $focus-indicator-width;
20
29
  }
21
30
  }
@@ -23,7 +32,7 @@
23
32
  // For form fields with outline appearance, we show a dashed thick border on top
24
33
  // of the solid notched-outline border to indicate focus.
25
34
  .mat-mdc-form-field.mat-focused .mdc-notched-outline {
26
- @include a11y.high-contrast(active, off) {
35
+ @include cdk.high-contrast(active, off) {
27
36
  border: $focus-indicator-style $focus-indicator-width;
28
37
  }
29
38
  }
@@ -1,9 +1,10 @@
1
1
  @use 'sass:map';
2
2
  @use 'sass:math';
3
- @use '../mdc-helpers/mdc-helpers';
4
- @use '../../material/core/theming/palette';
3
+ @use '@angular/material' as mat;
5
4
  @use '@material/theme/theme-color' as mdc-theme-color;
6
5
 
6
+ @use '../mdc-helpers/mdc-helpers';
7
+
7
8
  // Width of the Material Design form-field select arrow.
8
9
  $mat-form-field-select-arrow-width: 10px;
9
10
  // Height of the Material Design form-field select arrow.
@@ -88,11 +89,11 @@ $mat-form-field-select-horizontal-end-padding: $mat-form-field-select-arrow-widt
88
89
  // reset the color of the options to something dark.
89
90
  @if (map.get($config, is-dark)) {
90
91
  option {
91
- color: palette.$dark-primary-text;
92
+ color: mat.$private-dark-primary-text;
92
93
  }
93
94
 
94
95
  option:disabled {
95
- color: palette.$dark-disabled-text;
96
+ color: mat.$private-dark-disabled-text;
96
97
  }
97
98
  }
98
99
  }
@@ -1,10 +1,12 @@
1
+
2
+ @use '@angular/material' as mat;
1
3
  @use '@material/textfield' as mdc-textfield;
2
4
  @use '@material/theme/theme' as mdc-theme;
3
5
  @use '@material/typography' as mdc-typography;
4
6
  @use '@material/textfield/variables' as mdc-textfield-variables;
5
- @use 'form-field-sizing';
7
+
8
+ @use './form-field-sizing';
6
9
  @use '../mdc-helpers/mdc-helpers';
7
- @use '../../material/core/theming/theming';
8
10
 
9
11
  @mixin private-form-field-subscript() {
10
12
  // Wrapper for the hints and error messages.
@@ -70,7 +72,7 @@
70
72
  // We need to define our own typography for the subscript because we don't include MDC's
71
73
  // helper text in our MDC based form field
72
74
  @mixin private-form-field-subscript-typography($config-or-theme) {
73
- $config: theming.get-typography-config($config-or-theme);
75
+ $config: mat.get-typography-config($config-or-theme);
74
76
 
75
77
  // The subscript wrapper has a minimum height to avoid that the form-field
76
78
  // jumps when hints or errors are displayed.
@@ -1,17 +1,17 @@
1
+ @use '@angular/material' as mat;
1
2
  @use '@material/textfield' as mdc-textfield;
2
3
  @use '@material/floating-label' as mdc-floating-label;
3
4
  @use '@material/notched-outline' as mdc-notched-outline;
4
5
  @use '@material/line-ripple' as mdc-line-ripple;
5
6
  @use '@material/theme/theme-color' as mdc-theme-color;
6
7
  @use '@material/typography/typography' as mdc-typography;
8
+
7
9
  @use '../mdc-helpers/mdc-helpers';
8
- @use '../../material/core/typography/typography';
9
- @use 'form-field-density';
10
- @use 'form-field-subscript';
11
- @use 'form-field-focus-overlay';
12
- @use 'form-field-native-select';
13
- @use 'mdc-text-field-theme-variable-refresh';
14
- @use '../../material/core/theming/theming';
10
+ @use './form-field-density';
11
+ @use './form-field-subscript';
12
+ @use './form-field-focus-overlay';
13
+ @use './form-field-native-select';
14
+ @use './mdc-text-field-theme-variable-refresh';
15
15
 
16
16
 
17
17
  // Mixin that overwrites the default MDC text-field color styles to be based on
@@ -40,7 +40,7 @@
40
40
  }
41
41
 
42
42
  @mixin color($config-or-theme) {
43
- $config: theming.get-color-config($config-or-theme);
43
+ $config: mat.get-color-config($config-or-theme);
44
44
  @include mdc-helpers.mat-using-mdc-theme($config) {
45
45
  @include mdc-text-field-theme-variable-refresh.private-text-field-refresh-theme-variables() {
46
46
  @include mdc-textfield.without-ripple($query: mdc-helpers.$mat-theme-styles-query);
@@ -63,8 +63,8 @@
63
63
  }
64
64
 
65
65
  @mixin typography($config-or-theme) {
66
- $config: typography.private-typography-to-2018-config(
67
- theming.get-typography-config($config-or-theme));
66
+ $config: mat.private-typography-to-2018-config(
67
+ mat.get-typography-config($config-or-theme));
68
68
  @include mdc-helpers.mat-using-mdc-typography($config) {
69
69
  @include mdc-textfield.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
70
70
  @include mdc-floating-label.core-styles($query: mdc-helpers.$mat-typography-styles-query);
@@ -76,7 +76,7 @@
76
76
  // shows `body1` for text fields though, so we manually override the typography.
77
77
  // Note: Form controls inherit the typography from the parent form field.
78
78
  .mat-mdc-form-field,
79
- .mat-mdc-form-field .mdc-floating-label {
79
+ .mat-mdc-floating-label {
80
80
  @include mdc-typography.typography(body1, $query: mdc-helpers.$mat-typography-styles-query);
81
81
  }
82
82
 
@@ -100,16 +100,16 @@
100
100
  }
101
101
 
102
102
  @mixin density($config-or-theme) {
103
- $density-scale: theming.get-density-config($config-or-theme);
103
+ $density-scale: mat.get-density-config($config-or-theme);
104
104
  @include form-field-density.private-form-field-density($density-scale);
105
105
  }
106
106
 
107
107
  @mixin theme($theme-or-color-config) {
108
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
109
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-mdc-form-field') {
110
- $color: theming.get-color-config($theme);
111
- $density: theming.get-density-config($theme);
112
- $typography: theming.get-typography-config($theme);
108
+ $theme: mat.private-legacy-get-theme($theme-or-color-config);
109
+ @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-form-field') {
110
+ $color: mat.get-color-config($theme);
111
+ $density: mat.get-density-config($theme);
112
+ $typography: mat.get-typography-config($theme);
113
113
 
114
114
  @if $color != null {
115
115
  @include color($color);
@@ -20,7 +20,7 @@
20
20
  // In order to ensure proper alignment of the floating label, we reset its line-height.
21
21
  // The line-height is not important as the element is absolutely positioned and only has one line
22
22
  // of text.
23
- .mat-mdc-form-field .mdc-floating-label.mdc-floating-label {
23
+ .mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label {
24
24
  line-height: normal;
25
25
  }
26
26
 
@@ -95,7 +95,7 @@
95
95
  // the notched outline container, and already applies a specific horizontal spacing which
96
96
  // we do not want to overwrite. *Note*: We need to have increased specificity for this
97
97
  // override because the `right` property will be set with higher specificity in RTL mode.
98
- .mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mdc-floating-label {
98
+ .mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label {
99
99
  left: auto;
100
100
  right: auto;
101
101
  }
@@ -18,5 +18,5 @@ export declare class MatError {
18
18
  id: string;
19
19
  constructor(ariaLive: string, elementRef: ElementRef);
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MatError, [{ attribute: "aria-live"; }, null]>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatError, "mat-error", never, { "id": "id"; }, {}, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatError, "mat-error", never, { "id": "id"; }, {}, never, never, false>;
22
22
  }
@@ -24,13 +24,11 @@ export declare class MatFormFieldFloatingLabel {
24
24
  private _elementRef;
25
25
  /** Whether the label is floating. */
26
26
  floating: boolean;
27
- /** Whether the label is required. */
28
- required: boolean;
29
27
  constructor(_elementRef: ElementRef);
30
28
  /** Gets the width of the label. Used for the outline notch. */
31
29
  getWidth(): number;
32
30
  /** Gets the HTML element for the floating label. */
33
31
  get element(): HTMLElement;
34
32
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldFloatingLabel, never>;
35
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldFloatingLabel, "label[matFormFieldFloatingLabel]", never, { "floating": "floating"; "required": "required"; }, {}, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldFloatingLabel, "label[matFormFieldFloatingLabel]", never, { "floating": "floating"; }, {}, never, never, false>;
36
34
  }
@@ -6,5 +6,5 @@ export declare class MatHint {
6
6
  /** Unique ID for the hint. Used for the aria-describedby on the form field control. */
7
7
  id: string;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MatHint, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatHint, "mat-hint", never, { "align": "align"; "id": "id"; }, {}, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatHint, "mat-hint", never, { "align": "align"; "id": "id"; }, {}, never, never, false>;
10
10
  }
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
2
2
  /** The floating label for a `mat-form-field`. */
3
3
  export declare class MatLabel {
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<MatLabel, never>;
5
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatLabel, "mat-label", never, {}, {}, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatLabel, "mat-label", never, {}, {}, never, never, false>;
6
6
  }
@@ -20,5 +20,5 @@ export declare class MatFormFieldLineRipple extends MDCLineRipple implements OnD
20
20
  constructor(elementRef: ElementRef);
21
21
  ngOnDestroy(): void;
22
22
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldLineRipple, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldLineRipple, "div[matFormFieldLineRipple]", never, {}, {}, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldLineRipple, "div[matFormFieldLineRipple]", never, {}, {}, never, never, false>;
24
24
  }
@@ -33,5 +33,5 @@ export declare class MatFormFieldNotchedOutline implements AfterViewInit, OnChan
33
33
  /** Synchronizes the notched outline state to be based on the `width` and `open` inputs. */
34
34
  private _syncNotchedOutlineState;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldNotchedOutline, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFormFieldNotchedOutline, "div[matFormFieldNotchedOutline]", never, { "width": "matFormFieldNotchedOutlineWidth"; "open": "matFormFieldNotchedOutlineOpen"; }, {}, never, ["*"]>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFormFieldNotchedOutline, "div[matFormFieldNotchedOutline]", never, { "width": "matFormFieldNotchedOutlineWidth"; "open": "matFormFieldNotchedOutlineOpen"; }, {}, never, ["*"], false>;
37
37
  }
@@ -18,5 +18,5 @@ export declare class MatPrefix {
18
18
  _isText: boolean;
19
19
  constructor(elementRef: ElementRef);
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MatPrefix, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatPrefix, "[matPrefix], [matIconPrefix], [matTextPrefix]", never, {}, {}, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatPrefix, "[matPrefix], [matIconPrefix], [matTextPrefix]", never, {}, {}, never, never, false>;
22
22
  }
@@ -18,5 +18,5 @@ export declare class MatSuffix {
18
18
  _isText: boolean;
19
19
  constructor(elementRef: ElementRef);
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSuffix, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatSuffix, "[matSuffix], [matIconSuffix], [matTextSuffix]", never, {}, {}, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatSuffix, "[matSuffix], [matIconSuffix], [matTextSuffix]", never, {}, {}, never, never, false>;
22
22
  }
@@ -8,7 +8,7 @@
8
8
  import { Directionality } from '@angular/cdk/bidi';
9
9
  import { Platform } from '@angular/cdk/platform';
10
10
  import { AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, InjectionToken, NgZone, OnDestroy, QueryList } from '@angular/core';
11
- import { NgControl } from '@angular/forms';
11
+ import { AbstractControlDirective } from '@angular/forms';
12
12
  import { ThemePalette } from '@angular/material-experimental/mdc-core';
13
13
  import { MatFormFieldControl } from '@angular/material/form-field';
14
14
  import { MatError } from './directives/error';
@@ -32,9 +32,18 @@ export declare type SubscriptSizing = 'fixed' | 'dynamic';
32
32
  * using the `MAT_FORM_FIELD_DEFAULT_OPTIONS` injection token.
33
33
  */
34
34
  export interface MatFormFieldDefaultOptions {
35
+ /** Default form field appearance style. */
35
36
  appearance?: MatFormFieldAppearance;
37
+ /** Default color of the form field. */
38
+ color?: ThemePalette;
39
+ /** Whether the required marker should be hidden by default. */
36
40
  hideRequiredMarker?: boolean;
41
+ /**
42
+ * Whether the label for form fields should by default float `always`,
43
+ * `never`, or `auto` (only when necessary).
44
+ */
37
45
  floatLabel?: FloatLabelType;
46
+ /** Whether the form field should reserve space for one line by default. */
38
47
  subscriptSizing?: SubscriptSizing;
39
48
  }
40
49
  /**
@@ -43,7 +52,7 @@ export interface MatFormFieldDefaultOptions {
43
52
  */
44
53
  export declare const MAT_FORM_FIELD_DEFAULT_OPTIONS: InjectionToken<MatFormFieldDefaultOptions>;
45
54
  /** Container for form controls that applies Material Design styling and behavior. */
46
- export declare class MatFormField implements AfterViewInit, OnDestroy, AfterContentChecked, AfterContentInit {
55
+ export declare class MatFormField implements AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy {
47
56
  private _elementRef;
48
57
  private _changeDetectorRef;
49
58
  private _ngZone;
@@ -69,13 +78,13 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
69
78
  get hideRequiredMarker(): boolean;
70
79
  set hideRequiredMarker(value: BooleanInput);
71
80
  private _hideRequiredMarker;
72
- /** The color palette for the form-field. */
81
+ /** The color palette for the form field. */
73
82
  color: ThemePalette;
74
83
  /** Whether the label should always float or float as the user types. */
75
84
  get floatLabel(): FloatLabelType;
76
85
  set floatLabel(value: FloatLabelType);
77
86
  private _floatLabel;
78
- /** The form-field appearance style. */
87
+ /** The form field appearance style. */
79
88
  get appearance(): MatFormFieldAppearance;
80
89
  set appearance(value: MatFormFieldAppearance);
81
90
  private _appearance;
@@ -120,20 +129,20 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
120
129
  */
121
130
  getLabelId(): string | null;
122
131
  /**
123
- * Gets an ElementRef for the element that a overlay attached to the form-field
132
+ * Gets an ElementRef for the element that a overlay attached to the form field
124
133
  * should be positioned relative to.
125
134
  */
126
135
  getConnectedOverlayOrigin(): ElementRef;
127
136
  /** Animates the placeholder up and locks it in position. */
128
137
  _animateAndLockLabel(): void;
129
- /** Initializes the registered form-field control. */
138
+ /** Initializes the registered form field control. */
130
139
  private _initializeControl;
131
140
  private _checkPrefixAndSuffixTypes;
132
141
  /** Initializes the prefix and suffix containers. */
133
142
  private _initializePrefixAndSuffix;
134
143
  /**
135
144
  * Initializes the subscript by validating hints and synchronizing "aria-describedby" ids
136
- * with the custom form-field control. Also subscribes to hint and error changes in order
145
+ * with the custom form field control. Also subscribes to hint and error changes in order
137
146
  * to be able to validate and synchronize ids on change.
138
147
  */
139
148
  private _initializeSubscript;
@@ -143,7 +152,7 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
143
152
  /**
144
153
  * The floating label in the docked state needs to account for prefixes. The horizontal offset
145
154
  * is calculated whenever the appearance changes to `outline`, the prefixes change, or when the
146
- * form-field is added to the DOM. This method sets up all subscriptions which are needed to
155
+ * form field is added to the DOM. This method sets up all subscriptions which are needed to
147
156
  * trigger the label offset update. In general, we want to avoid performing measurements often,
148
157
  * so we rely on the `NgZone` as indicator when the offset should be recalculated, instead of
149
158
  * checking every change detection cycle.
@@ -155,7 +164,7 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
155
164
  /**
156
165
  * Whether the label should display in the infix. Labels in the outline appearance are
157
166
  * displayed as part of the notched-outline and are horizontally offset to account for
158
- * form-field prefix content. This won't work in server side rendering since we cannot
167
+ * form field prefix content. This won't work in server side rendering since we cannot
159
168
  * measure the width of the prefix container. To make the docked label appear as if the
160
169
  * right offset has been calculated, we forcibly render the label inside the infix. Since
161
170
  * the label is part of the infix, the label cannot overflow the prefix content.
@@ -163,8 +172,11 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
163
172
  _forceDisplayInfixLabel(): boolean | 0;
164
173
  _hasFloatingLabel(): boolean;
165
174
  _shouldLabelFloat(): boolean;
166
- /** Determines whether a class from the NgControl should be forwarded to the host element. */
167
- _shouldForward(prop: keyof NgControl): boolean;
175
+ /**
176
+ * Determines whether a class from the AbstractControlDirective
177
+ * should be forwarded to the host element.
178
+ */
179
+ _shouldForward(prop: keyof AbstractControlDirective): boolean;
168
180
  /** Determines whether to display hints or errors. */
169
181
  _getDisplayedMessages(): 'error' | 'hint';
170
182
  /** Refreshes the width of the outline-notch, if present. */
@@ -196,5 +208,5 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
196
208
  /** Checks whether the form field is attached to the DOM. */
197
209
  private _isAttachedToDom;
198
210
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFormField, [null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
199
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": "hideRequiredMarker"; "color": "color"; "floatLabel": "floatLabel"; "appearance": "appearance"; "subscriptSizing": "subscriptSizing"; "hintLabel": "hintLabel"; }, {}, ["_labelChildNonStatic", "_labelChildStatic", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error", "mat-hint:not([align='end'])", "mat-hint[align='end']"]>;
211
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": "hideRequiredMarker"; "color": "color"; "floatLabel": "floatLabel"; "appearance": "appearance"; "subscriptSizing": "subscriptSizing"; "hintLabel": "hintLabel"; }, {}, ["_labelChildNonStatic", "_labelChildStatic", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error", "mat-hint:not([align='end'])", "mat-hint[align='end']"], false>;
200
212
  }
@@ -5,6 +5,6 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- export * from '@angular/material/form-field/testing/control';
8
+ export { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control';
9
9
  export { FormFieldHarnessFilters } from '@angular/material/form-field/testing';
10
10
  export * from './form-field-harness';
@@ -1,6 +1,6 @@
1
+ @use '@angular/material' as mat;
1
2
  @use 'sass:map';
2
3
  @use 'sass:meta';
3
- @use '../../material/core/theming/theming';
4
4
 
5
5
  @mixin _border-color($color) {
6
6
  .mat-mdc-focus-indicator::before {
@@ -14,8 +14,8 @@
14
14
  @include _border-color($config-or-theme-or-color);
15
15
  }
16
16
  @else {
17
- $config: theming.get-color-config($config-or-theme-or-color);
18
- $border-color: theming.get-color-from-palette(map.get($config, primary));
17
+ $config: mat.get-color-config($config-or-theme-or-color);
18
+ $border-color: mat.get-color-from-palette(map.get($config, primary));
19
19
  @include _border-color($border-color);
20
20
  }
21
21
  }
@@ -26,9 +26,9 @@
26
26
  @include _border-color($theme-or-color-config-or-color);
27
27
  }
28
28
  @else {
29
- $theme: theming.private-legacy-get-theme($theme-or-color-config-or-color);
30
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-mdc-focus-indicators') {
31
- $color: theming.get-color-config($theme);
29
+ $theme: mat.private-legacy-get-theme($theme-or-color-config-or-color);
30
+ @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-focus-indicators') {
31
+ $color: mat.get-color-config($theme);
32
32
  @if $color != null {
33
33
  @include color($color);
34
34
  }
@@ -1,5 +1,5 @@
1
+ @use '@angular/material' as mat;
1
2
  @use 'sass:map';
2
- @use '../../material/core/style/layout-common';
3
3
 
4
4
  /// Mixin that turns on strong focus indicators.
5
5
  ///
@@ -23,7 +23,7 @@
23
23
 
24
24
  // Base styles for focus indicators.
25
25
  .mat-mdc-focus-indicator::before {
26
- @include layout-common.fill();
26
+ @include mat.private-fill();
27
27
  box-sizing: border-box;
28
28
  pointer-events: none;
29
29
  border: $border-width $border-style transparent;