@angular/material-experimental 14.0.0-next.0 → 14.0.0-next.11

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 (386) hide show
  1. package/_index.scss +3 -0
  2. package/column-resize/_column-resize-theme.scss +15 -17
  3. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  4. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
  5. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
  6. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
  7. package/esm2020/column-resize/column-resize-module.mjs +13 -13
  8. package/esm2020/column-resize/overlay-handle.mjs +4 -4
  9. package/esm2020/column-resize/resizable-directives/default-enabled-resizable.mjs +4 -4
  10. package/esm2020/column-resize/resizable-directives/resizable.mjs +4 -4
  11. package/esm2020/column-resize/resize-strategy.mjs +4 -4
  12. package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +4 -4
  13. package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +6 -5
  14. package/esm2020/mdc-autocomplete/autocomplete.mjs +5 -5
  15. package/esm2020/mdc-autocomplete/module.mjs +5 -5
  16. package/esm2020/mdc-button/button-base.mjs +8 -8
  17. package/esm2020/mdc-button/button.mjs +9 -9
  18. package/esm2020/mdc-button/fab.mjs +17 -17
  19. package/esm2020/mdc-button/icon-button.mjs +9 -9
  20. package/esm2020/mdc-button/module.mjs +5 -5
  21. package/esm2020/mdc-card/card.mjs +44 -44
  22. package/esm2020/mdc-card/module.mjs +5 -5
  23. package/esm2020/mdc-checkbox/checkbox.mjs +10 -5
  24. package/esm2020/mdc-checkbox/module.mjs +5 -5
  25. package/esm2020/mdc-checkbox/testing/checkbox-harness.mjs +3 -2
  26. package/esm2020/mdc-chips/chip-action.mjs +6 -5
  27. package/esm2020/mdc-chips/chip-edit-input.mjs +5 -5
  28. package/esm2020/mdc-chips/chip-grid.mjs +35 -14
  29. package/esm2020/mdc-chips/chip-icons.mjs +10 -10
  30. package/esm2020/mdc-chips/chip-input.mjs +8 -4
  31. package/esm2020/mdc-chips/chip-listbox.mjs +8 -11
  32. package/esm2020/mdc-chips/chip-option.mjs +5 -5
  33. package/esm2020/mdc-chips/chip-row.mjs +5 -5
  34. package/esm2020/mdc-chips/chip-set.mjs +13 -15
  35. package/esm2020/mdc-chips/chip-text-control.mjs +1 -1
  36. package/esm2020/mdc-chips/chip.mjs +5 -5
  37. package/esm2020/mdc-chips/module.mjs +5 -5
  38. package/esm2020/mdc-chips/testing/public-api.mjs +2 -1
  39. package/esm2020/mdc-core/option/index.mjs +5 -5
  40. package/esm2020/mdc-core/option/optgroup.mjs +5 -5
  41. package/esm2020/mdc-core/option/option.mjs +5 -5
  42. package/esm2020/mdc-dialog/dialog-container.mjs +7 -8
  43. package/esm2020/mdc-dialog/dialog-content-directives.mjs +27 -15
  44. package/esm2020/mdc-dialog/dialog.mjs +10 -5
  45. package/esm2020/mdc-dialog/module.mjs +5 -5
  46. package/esm2020/mdc-dialog/testing/dialog-opener.mjs +45 -0
  47. package/esm2020/mdc-dialog/testing/public-api.mjs +2 -1
  48. package/esm2020/mdc-form-field/directives/error.mjs +4 -4
  49. package/esm2020/mdc-form-field/directives/floating-label.mjs +5 -10
  50. package/esm2020/mdc-form-field/directives/hint.mjs +4 -4
  51. package/esm2020/mdc-form-field/directives/label.mjs +4 -4
  52. package/esm2020/mdc-form-field/directives/line-ripple.mjs +4 -4
  53. package/esm2020/mdc-form-field/directives/notched-outline.mjs +4 -4
  54. package/esm2020/mdc-form-field/directives/prefix.mjs +4 -4
  55. package/esm2020/mdc-form-field/directives/suffix.mjs +4 -4
  56. package/esm2020/mdc-form-field/form-field.mjs +53 -41
  57. package/esm2020/mdc-form-field/module.mjs +5 -5
  58. package/esm2020/mdc-form-field/testing/public-api.mjs +4 -4
  59. package/esm2020/mdc-input/input.mjs +4 -4
  60. package/esm2020/mdc-input/module.mjs +5 -5
  61. package/esm2020/mdc-list/action-list.mjs +6 -6
  62. package/esm2020/mdc-list/interactive-list-base.mjs +5 -5
  63. package/esm2020/mdc-list/list-base.mjs +7 -7
  64. package/esm2020/mdc-list/list-item-sections.mjs +19 -19
  65. package/esm2020/mdc-list/list-option.mjs +7 -7
  66. package/esm2020/mdc-list/list.mjs +21 -9
  67. package/esm2020/mdc-list/module.mjs +5 -5
  68. package/esm2020/mdc-list/nav-list.mjs +5 -5
  69. package/esm2020/mdc-list/selection-list.mjs +6 -6
  70. package/esm2020/mdc-list/subheader.mjs +4 -4
  71. package/esm2020/mdc-menu/directives.mjs +7 -7
  72. package/esm2020/mdc-menu/menu-item.mjs +4 -4
  73. package/esm2020/mdc-menu/menu.mjs +9 -9
  74. package/esm2020/mdc-menu/module.mjs +5 -5
  75. package/esm2020/mdc-paginator/module.mjs +5 -5
  76. package/esm2020/mdc-paginator/paginator.mjs +5 -5
  77. package/esm2020/mdc-paginator/public-api.mjs +1 -1
  78. package/esm2020/mdc-progress-bar/module.mjs +5 -5
  79. package/esm2020/mdc-progress-bar/progress-bar.mjs +8 -5
  80. package/esm2020/mdc-progress-spinner/module.mjs +5 -5
  81. package/esm2020/mdc-progress-spinner/progress-spinner.mjs +8 -5
  82. package/esm2020/mdc-radio/module.mjs +5 -5
  83. package/esm2020/mdc-radio/radio.mjs +9 -8
  84. package/esm2020/mdc-radio/testing/radio-harness.mjs +3 -2
  85. package/esm2020/mdc-select/module.mjs +5 -5
  86. package/esm2020/mdc-select/select.mjs +9 -10
  87. package/esm2020/mdc-slide-toggle/module.mjs +5 -5
  88. package/esm2020/mdc-slide-toggle/slide-toggle.mjs +6 -5
  89. package/esm2020/mdc-slide-toggle/testing/slide-toggle-harness.mjs +4 -2
  90. package/esm2020/mdc-slider/global-change-and-input-listener.mjs +4 -4
  91. package/esm2020/mdc-slider/module.mjs +5 -5
  92. package/esm2020/mdc-slider/slider.mjs +55 -26
  93. package/esm2020/mdc-snack-bar/module.mjs +5 -5
  94. package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +5 -5
  95. package/esm2020/mdc-snack-bar/snack-bar-container.mjs +18 -12
  96. package/esm2020/mdc-snack-bar/snack-bar-content.mjs +10 -10
  97. package/esm2020/mdc-snack-bar/snack-bar.mjs +4 -4
  98. package/esm2020/mdc-table/cell.mjs +22 -22
  99. package/esm2020/mdc-table/module.mjs +5 -5
  100. package/esm2020/mdc-table/row.mjs +22 -22
  101. package/esm2020/mdc-table/table.mjs +9 -9
  102. package/esm2020/mdc-table/text-column.mjs +4 -4
  103. package/esm2020/mdc-tabs/ink-bar.mjs +4 -2
  104. package/esm2020/mdc-tabs/module.mjs +5 -5
  105. package/esm2020/mdc-tabs/tab-body.mjs +8 -8
  106. package/esm2020/mdc-tabs/tab-content.mjs +4 -4
  107. package/esm2020/mdc-tabs/tab-group.mjs +18 -6
  108. package/esm2020/mdc-tabs/tab-header.mjs +5 -5
  109. package/esm2020/mdc-tabs/tab-label-wrapper.mjs +4 -4
  110. package/esm2020/mdc-tabs/tab-label.mjs +4 -4
  111. package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +29 -12
  112. package/esm2020/mdc-tabs/tab.mjs +4 -4
  113. package/esm2020/mdc-tooltip/module.mjs +5 -5
  114. package/esm2020/mdc-tooltip/testing/tooltip-harness.mjs +4 -1
  115. package/esm2020/mdc-tooltip/tooltip.mjs +31 -15
  116. package/esm2020/menubar/menubar-item.mjs +19 -5
  117. package/esm2020/menubar/menubar-module.mjs +5 -5
  118. package/esm2020/menubar/menubar.mjs +11 -14
  119. package/esm2020/popover-edit/lens-directives.mjs +10 -10
  120. package/esm2020/popover-edit/popover-edit-module.mjs +5 -5
  121. package/esm2020/popover-edit/table-directives.mjs +13 -13
  122. package/esm2020/selection/row-selection.mjs +4 -4
  123. package/esm2020/selection/select-all.mjs +4 -4
  124. package/esm2020/selection/selection-column.mjs +6 -6
  125. package/esm2020/selection/selection-module.mjs +5 -5
  126. package/esm2020/selection/selection-toggle.mjs +4 -4
  127. package/esm2020/selection/selection.mjs +4 -4
  128. package/esm2020/version.mjs +1 -1
  129. package/fesm2015/column-resize.mjs +36 -36
  130. package/fesm2015/column-resize.mjs.map +1 -1
  131. package/fesm2015/material-experimental.mjs +1 -1
  132. package/fesm2015/material-experimental.mjs.map +1 -1
  133. package/fesm2015/mdc-autocomplete/testing.mjs.map +1 -1
  134. package/fesm2015/mdc-autocomplete.mjs +16 -15
  135. package/fesm2015/mdc-autocomplete.mjs.map +1 -1
  136. package/fesm2015/mdc-button/testing.mjs.map +1 -1
  137. package/fesm2015/mdc-button.mjs +43 -43
  138. package/fesm2015/mdc-button.mjs.map +1 -1
  139. package/fesm2015/mdc-card/testing.mjs.map +1 -1
  140. package/fesm2015/mdc-card.mjs +47 -47
  141. package/fesm2015/mdc-card.mjs.map +1 -1
  142. package/fesm2015/mdc-checkbox/testing.mjs +2 -1
  143. package/fesm2015/mdc-checkbox/testing.mjs.map +1 -1
  144. package/fesm2015/mdc-checkbox.mjs +13 -8
  145. package/fesm2015/mdc-checkbox.mjs.map +1 -1
  146. package/fesm2015/mdc-chips/testing.mjs +2 -2
  147. package/fesm2015/mdc-chips/testing.mjs.map +1 -1
  148. package/fesm2015/mdc-chips.mjs +93 -73
  149. package/fesm2015/mdc-chips.mjs.map +1 -1
  150. package/fesm2015/mdc-core/testing.mjs.map +1 -1
  151. package/fesm2015/mdc-core.mjs +12 -12
  152. package/fesm2015/mdc-core.mjs.map +1 -1
  153. package/fesm2015/mdc-dialog/testing.mjs +44 -2
  154. package/fesm2015/mdc-dialog/testing.mjs.map +1 -1
  155. package/fesm2015/mdc-dialog.mjs +45 -29
  156. package/fesm2015/mdc-dialog.mjs.map +1 -1
  157. package/fesm2015/mdc-form-field/testing.mjs +1 -1
  158. package/fesm2015/mdc-form-field/testing.mjs.map +1 -1
  159. package/fesm2015/mdc-form-field.mjs +82 -75
  160. package/fesm2015/mdc-form-field.mjs.map +1 -1
  161. package/fesm2015/mdc-input/testing.mjs.map +1 -1
  162. package/fesm2015/mdc-input.mjs +7 -7
  163. package/fesm2015/mdc-input.mjs.map +1 -1
  164. package/fesm2015/mdc-list/testing.mjs.map +1 -1
  165. package/fesm2015/mdc-list.mjs +73 -62
  166. package/fesm2015/mdc-list.mjs.map +1 -1
  167. package/fesm2015/mdc-menu/testing.mjs.map +1 -1
  168. package/fesm2015/mdc-menu.mjs +20 -20
  169. package/fesm2015/mdc-menu.mjs.map +1 -1
  170. package/fesm2015/mdc-paginator/testing.mjs.map +1 -1
  171. package/fesm2015/mdc-paginator.mjs +8 -8
  172. package/fesm2015/mdc-paginator.mjs.map +1 -1
  173. package/fesm2015/mdc-progress-bar/testing.mjs.map +1 -1
  174. package/fesm2015/mdc-progress-bar.mjs +11 -8
  175. package/fesm2015/mdc-progress-bar.mjs.map +1 -1
  176. package/fesm2015/mdc-progress-spinner/testing.mjs.map +1 -1
  177. package/fesm2015/mdc-progress-spinner.mjs +11 -8
  178. package/fesm2015/mdc-progress-spinner.mjs.map +1 -1
  179. package/fesm2015/mdc-radio/testing.mjs +2 -1
  180. package/fesm2015/mdc-radio/testing.mjs.map +1 -1
  181. package/fesm2015/mdc-radio.mjs +12 -11
  182. package/fesm2015/mdc-radio.mjs.map +1 -1
  183. package/fesm2015/mdc-select/testing.mjs.map +1 -1
  184. package/fesm2015/mdc-select.mjs +12 -13
  185. package/fesm2015/mdc-select.mjs.map +1 -1
  186. package/fesm2015/mdc-slide-toggle/testing.mjs +3 -1
  187. package/fesm2015/mdc-slide-toggle/testing.mjs.map +1 -1
  188. package/fesm2015/mdc-slide-toggle.mjs +9 -8
  189. package/fesm2015/mdc-slide-toggle.mjs.map +1 -1
  190. package/fesm2015/mdc-slider/testing.mjs.map +1 -1
  191. package/fesm2015/mdc-slider.mjs +72 -32
  192. package/fesm2015/mdc-slider.mjs.map +1 -1
  193. package/fesm2015/mdc-snack-bar/testing.mjs.map +1 -1
  194. package/fesm2015/mdc-snack-bar.mjs +37 -31
  195. package/fesm2015/mdc-snack-bar.mjs.map +1 -1
  196. package/fesm2015/mdc-table/testing.mjs.map +1 -1
  197. package/fesm2015/mdc-table.mjs +57 -57
  198. package/fesm2015/mdc-table.mjs.map +1 -1
  199. package/fesm2015/mdc-tabs/testing.mjs.map +1 -1
  200. package/fesm2015/mdc-tabs.mjs +75 -44
  201. package/fesm2015/mdc-tabs.mjs.map +1 -1
  202. package/fesm2015/mdc-tooltip/testing.mjs +3 -0
  203. package/fesm2015/mdc-tooltip/testing.mjs.map +1 -1
  204. package/fesm2015/mdc-tooltip.mjs +60 -41
  205. package/fesm2015/mdc-tooltip.mjs.map +1 -1
  206. package/fesm2015/menubar.mjs +32 -20
  207. package/fesm2015/menubar.mjs.map +1 -1
  208. package/fesm2015/popover-edit.mjs +25 -25
  209. package/fesm2015/popover-edit.mjs.map +1 -1
  210. package/fesm2015/selection.mjs +21 -21
  211. package/fesm2015/selection.mjs.map +1 -1
  212. package/fesm2020/column-resize.mjs +36 -36
  213. package/fesm2020/column-resize.mjs.map +1 -1
  214. package/fesm2020/material-experimental.mjs +1 -1
  215. package/fesm2020/material-experimental.mjs.map +1 -1
  216. package/fesm2020/mdc-autocomplete/testing.mjs.map +1 -1
  217. package/fesm2020/mdc-autocomplete.mjs +16 -15
  218. package/fesm2020/mdc-autocomplete.mjs.map +1 -1
  219. package/fesm2020/mdc-button/testing.mjs.map +1 -1
  220. package/fesm2020/mdc-button.mjs +43 -43
  221. package/fesm2020/mdc-button.mjs.map +1 -1
  222. package/fesm2020/mdc-card/testing.mjs.map +1 -1
  223. package/fesm2020/mdc-card.mjs +47 -47
  224. package/fesm2020/mdc-card.mjs.map +1 -1
  225. package/fesm2020/mdc-checkbox/testing.mjs +2 -1
  226. package/fesm2020/mdc-checkbox/testing.mjs.map +1 -1
  227. package/fesm2020/mdc-checkbox.mjs +13 -8
  228. package/fesm2020/mdc-checkbox.mjs.map +1 -1
  229. package/fesm2020/mdc-chips/testing.mjs +1 -1
  230. package/fesm2020/mdc-chips/testing.mjs.map +1 -1
  231. package/fesm2020/mdc-chips.mjs +93 -73
  232. package/fesm2020/mdc-chips.mjs.map +1 -1
  233. package/fesm2020/mdc-core/testing.mjs.map +1 -1
  234. package/fesm2020/mdc-core.mjs +12 -12
  235. package/fesm2020/mdc-core.mjs.map +1 -1
  236. package/fesm2020/mdc-dialog/testing.mjs +44 -2
  237. package/fesm2020/mdc-dialog/testing.mjs.map +1 -1
  238. package/fesm2020/mdc-dialog.mjs +45 -29
  239. package/fesm2020/mdc-dialog.mjs.map +1 -1
  240. package/fesm2020/mdc-form-field/testing.mjs +1 -1
  241. package/fesm2020/mdc-form-field/testing.mjs.map +1 -1
  242. package/fesm2020/mdc-form-field.mjs +81 -74
  243. package/fesm2020/mdc-form-field.mjs.map +1 -1
  244. package/fesm2020/mdc-input/testing.mjs.map +1 -1
  245. package/fesm2020/mdc-input.mjs +7 -7
  246. package/fesm2020/mdc-input.mjs.map +1 -1
  247. package/fesm2020/mdc-list/testing.mjs.map +1 -1
  248. package/fesm2020/mdc-list.mjs +73 -62
  249. package/fesm2020/mdc-list.mjs.map +1 -1
  250. package/fesm2020/mdc-menu/testing.mjs.map +1 -1
  251. package/fesm2020/mdc-menu.mjs +20 -20
  252. package/fesm2020/mdc-menu.mjs.map +1 -1
  253. package/fesm2020/mdc-paginator/testing.mjs.map +1 -1
  254. package/fesm2020/mdc-paginator.mjs +8 -8
  255. package/fesm2020/mdc-paginator.mjs.map +1 -1
  256. package/fesm2020/mdc-progress-bar/testing.mjs.map +1 -1
  257. package/fesm2020/mdc-progress-bar.mjs +11 -8
  258. package/fesm2020/mdc-progress-bar.mjs.map +1 -1
  259. package/fesm2020/mdc-progress-spinner/testing.mjs.map +1 -1
  260. package/fesm2020/mdc-progress-spinner.mjs +11 -8
  261. package/fesm2020/mdc-progress-spinner.mjs.map +1 -1
  262. package/fesm2020/mdc-radio/testing.mjs +2 -1
  263. package/fesm2020/mdc-radio/testing.mjs.map +1 -1
  264. package/fesm2020/mdc-radio.mjs +12 -11
  265. package/fesm2020/mdc-radio.mjs.map +1 -1
  266. package/fesm2020/mdc-select/testing.mjs.map +1 -1
  267. package/fesm2020/mdc-select.mjs +12 -13
  268. package/fesm2020/mdc-select.mjs.map +1 -1
  269. package/fesm2020/mdc-slide-toggle/testing.mjs +3 -1
  270. package/fesm2020/mdc-slide-toggle/testing.mjs.map +1 -1
  271. package/fesm2020/mdc-slide-toggle.mjs +9 -8
  272. package/fesm2020/mdc-slide-toggle.mjs.map +1 -1
  273. package/fesm2020/mdc-slider/testing.mjs.map +1 -1
  274. package/fesm2020/mdc-slider.mjs +61 -31
  275. package/fesm2020/mdc-slider.mjs.map +1 -1
  276. package/fesm2020/mdc-snack-bar/testing.mjs.map +1 -1
  277. package/fesm2020/mdc-snack-bar.mjs +37 -31
  278. package/fesm2020/mdc-snack-bar.mjs.map +1 -1
  279. package/fesm2020/mdc-table/testing.mjs.map +1 -1
  280. package/fesm2020/mdc-table.mjs +57 -57
  281. package/fesm2020/mdc-table.mjs.map +1 -1
  282. package/fesm2020/mdc-tabs/testing.mjs.map +1 -1
  283. package/fesm2020/mdc-tabs.mjs +75 -44
  284. package/fesm2020/mdc-tabs.mjs.map +1 -1
  285. package/fesm2020/mdc-tooltip/testing.mjs +3 -0
  286. package/fesm2020/mdc-tooltip/testing.mjs.map +1 -1
  287. package/fesm2020/mdc-tooltip.mjs +57 -40
  288. package/fesm2020/mdc-tooltip.mjs.map +1 -1
  289. package/fesm2020/menubar.mjs +31 -20
  290. package/fesm2020/menubar.mjs.map +1 -1
  291. package/fesm2020/popover-edit.mjs +25 -25
  292. package/fesm2020/popover-edit.mjs.map +1 -1
  293. package/fesm2020/selection.mjs +21 -21
  294. package/fesm2020/selection.mjs.map +1 -1
  295. package/mdc-autocomplete/_autocomplete-theme.scss +10 -10
  296. package/mdc-button/_button-base.scss +4 -3
  297. package/mdc-button/_button-theme-private.scss +0 -1
  298. package/mdc-button/_button-theme.scss +22 -16
  299. package/mdc-button/_fab-theme.scss +10 -10
  300. package/mdc-button/_icon-button-theme.scss +13 -12
  301. package/mdc-card/_card-theme.scss +11 -11
  302. package/mdc-checkbox/_checkbox-private.scss +46 -0
  303. package/mdc-checkbox/_checkbox-theme.scss +20 -46
  304. package/mdc-chips/_chips-theme.scss +20 -15
  305. package/mdc-chips/chip-action.d.ts +1 -1
  306. package/mdc-chips/chip-grid.d.ts +22 -5
  307. package/mdc-chips/chip-input.d.ts +5 -5
  308. package/mdc-chips/chip-listbox.d.ts +1 -2
  309. package/mdc-chips/chip-set.d.ts +3 -3
  310. package/mdc-chips/chip-text-control.d.ts +2 -0
  311. package/mdc-chips/testing/public-api.d.ts +1 -0
  312. package/mdc-color/_all-color.scss +4 -3
  313. package/mdc-core/_core-theme.scss +23 -11
  314. package/mdc-core/option/_optgroup-theme.scss +11 -11
  315. package/mdc-core/option/_option-theme.scss +11 -11
  316. package/mdc-density/_all-density.scss +4 -3
  317. package/mdc-dialog/_dialog-theme.scss +49 -13
  318. package/mdc-dialog/dialog-content-directives.d.ts +5 -1
  319. package/mdc-dialog/dialog.d.ts +6 -1
  320. package/mdc-dialog/testing/dialog-opener.d.ts +18 -0
  321. package/mdc-dialog/testing/public-api.d.ts +1 -0
  322. package/mdc-form-field/_form-field-density.scss +6 -5
  323. package/mdc-form-field/_form-field-focus-overlay.scss +2 -2
  324. package/mdc-form-field/_form-field-high-contrast.scss +17 -8
  325. package/mdc-form-field/_form-field-native-select.scss +5 -4
  326. package/mdc-form-field/_form-field-subscript.scss +5 -3
  327. package/mdc-form-field/_form-field-theme.scss +17 -17
  328. package/mdc-form-field/_mdc-text-field-structure-overrides.scss +2 -2
  329. package/mdc-form-field/directives/floating-label.d.ts +1 -3
  330. package/mdc-form-field/form-field.d.ts +23 -11
  331. package/mdc-form-field/testing/public-api.d.ts +1 -1
  332. package/mdc-helpers/_focus-indicators-theme.scss +6 -6
  333. package/mdc-helpers/_focus-indicators.scss +2 -2
  334. package/mdc-helpers/_mdc-helpers.scss +13 -16
  335. package/mdc-input/_input-theme.scss +10 -10
  336. package/mdc-list/_interactive-list-theme.scss +2 -2
  337. package/mdc-list/_list-option-theme.scss +3 -3
  338. package/mdc-list/_list-option-trailing-avatar-compat.scss +18 -13
  339. package/mdc-list/_list-theme.scss +33 -25
  340. package/mdc-list/list.d.ts +5 -1
  341. package/mdc-menu/_menu-theme.scss +10 -10
  342. package/mdc-menu/menu.d.ts +1 -1
  343. package/mdc-paginator/_paginator-theme.scss +20 -23
  344. package/mdc-paginator/public-api.d.ts +1 -1
  345. package/mdc-progress-bar/_progress-bar-theme.scss +8 -7
  346. package/mdc-progress-spinner/_progress-spinner-theme.scss +8 -7
  347. package/mdc-radio/_radio-theme.scss +16 -16
  348. package/mdc-select/_select-theme.scss +11 -11
  349. package/mdc-slide-toggle/_slide-toggle-theme.scss +14 -15
  350. package/mdc-slider/_slider-theme.scss +11 -12
  351. package/mdc-slider/slider.d.ts +6 -0
  352. package/mdc-snack-bar/_snack-bar-theme.scss +11 -11
  353. package/mdc-table/_table-theme.scss +14 -21
  354. package/mdc-tabs/_tabs-common.scss +14 -4
  355. package/mdc-tabs/_tabs-theme.scss +14 -14
  356. package/mdc-tabs/ink-bar.d.ts +1 -1
  357. package/mdc-tabs/tab-group.d.ts +5 -1
  358. package/mdc-tabs/tab-nav-bar/tab-nav-bar.d.ts +8 -3
  359. package/mdc-theming/_all-theme.scss +3 -2
  360. package/mdc-theming/prebuilt/deeppurple-amber.css +1 -1
  361. package/mdc-theming/prebuilt/indigo-pink.css +1 -1
  362. package/mdc-theming/prebuilt/pink-bluegrey.css +1 -1
  363. package/mdc-theming/prebuilt/purple-green.css +1 -1
  364. package/mdc-tooltip/_tooltip-theme.scss +12 -13
  365. package/mdc-tooltip/testing/tooltip-harness.d.ts +3 -0
  366. package/mdc-tooltip/tooltip.d.ts +6 -2
  367. package/mdc-typography/_all-typography.scss +5 -5
  368. package/menubar/menubar-item.d.ts +1 -0
  369. package/package.json +55 -17
  370. package/popover-edit/_popover-edit-theme.scss +23 -26
  371. package/selection/_selection.scss +3 -3
  372. package/esm2020/mdc-sidenav/index.mjs +0 -9
  373. package/esm2020/mdc-sidenav/mdc-sidenav_public_index.mjs +0 -5
  374. package/esm2020/mdc-sidenav/module.mjs +0 -23
  375. package/esm2020/mdc-sidenav/public-api.mjs +0 -9
  376. package/fesm2015/mdc-sidenav.mjs +0 -46
  377. package/fesm2015/mdc-sidenav.mjs.map +0 -1
  378. package/fesm2020/mdc-sidenav.mjs +0 -46
  379. package/fesm2020/mdc-sidenav.mjs.map +0 -1
  380. package/mdc-sidenav/_sidenav-theme.import.scss +0 -5
  381. package/mdc-sidenav/_sidenav-theme.scss +0 -28
  382. package/mdc-sidenav/index.d.ts +0 -8
  383. package/mdc-sidenav/mdc-sidenav_public_index.d.ts +0 -4
  384. package/mdc-sidenav/module.d.ts +0 -7
  385. package/mdc-sidenav/package.json +0 -9
  386. package/mdc-sidenav/public-api.d.ts +0 -8
@@ -42,6 +42,8 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
42
42
  protected _chipSetFoundation: MDCChipSetFoundation;
43
43
  /** Subject that emits when the component has been destroyed. */
44
44
  protected _destroyed: Subject<void>;
45
+ /** Role to use if it hasn't been overwritten by the user. */
46
+ protected _defaultRole: string;
45
47
  /** Combined stream of all of the child chips' remove events. */
46
48
  get chipDestroyedChanges(): Observable<MatChipEvent>;
47
49
  /**
@@ -49,8 +51,6 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
49
51
  * These methods are called by the chip set foundation.
50
52
  */
51
53
  protected _chipSetAdapter: MDCChipSetAdapter;
52
- /** The aria-describedby attribute on the chip list for improved a11y. */
53
- _ariaDescribedby: string;
54
54
  /**
55
55
  * Map from class to whether the class is enabled.
56
56
  * Enabled classes are set on the MDC chip-set div.
@@ -67,7 +67,7 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
67
67
  /** The ARIA role applied to the chip set. */
68
68
  get role(): string | null;
69
69
  set role(value: string | null);
70
- private _role;
70
+ private _explicitRole;
71
71
  /** Whether any of the chips inside of this chip-set has focus. */
72
72
  get focused(): boolean;
73
73
  /** The chips that are part of this chip set. */
@@ -17,4 +17,6 @@ export interface MatChipTextControl {
17
17
  empty: boolean;
18
18
  /** Focuses the text control. */
19
19
  focus(): void;
20
+ /** Sets the list of ids the input is described by. */
21
+ setDescribedByIds(ids: string[]): void;
20
22
  }
@@ -5,6 +5,7 @@
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 './chip-avatar-harness';
8
9
  export * from './chip-harness';
9
10
  export * from './chip-harness-filters';
10
11
  export * from './chip-input-harness';
@@ -1,11 +1,12 @@
1
+ @use '@angular/material' as mat;
2
+
1
3
  @use '../mdc-theming/all-theme';
2
- @use '../../material/core/theming/theming';
3
4
 
4
5
  @mixin all-mdc-component-colors($config-or-theme) {
5
6
  // In case a theme object has been passed instead of a configuration for
6
7
  // the color system, extract the color config from the theme object.
7
- $config: if(theming.private-is-theme-object($config-or-theme),
8
- theming.get-color-config($config-or-theme), $config-or-theme);
8
+ $config: if(mat.private-is-theme-object($config-or-theme),
9
+ mat.get-color-config($config-or-theme), $config-or-theme);
9
10
 
10
11
  @if $config == null {
11
12
  @error 'No color configuration specified.';
@@ -1,12 +1,13 @@
1
- @use '../../material/core/theming/theming';
2
- @use '../../material/core/typography/typography';
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+
3
4
  @use './option/option-theme';
4
5
  @use './option/optgroup-theme';
5
6
  @use './elevation';
6
7
 
7
8
 
8
9
  @mixin color($config-or-theme) {
9
- $config: theming.get-color-config($config-or-theme);
10
+ $config: mat.get-color-config($config-or-theme);
10
11
 
11
12
  @include option-theme.color($config);
12
13
  @include optgroup-theme.color($config);
@@ -23,19 +24,30 @@
23
24
  @include elevation.private-theme-elevation($zValue, $config);
24
25
  }
25
26
  }
27
+
28
+ // Wrapper element that provides the theme background when the user's content isn't
29
+ // inside of a `mat-sidenav-container`. Note that we need to exclude the ampersand
30
+ // selector in case the mixin is included at the top level.
31
+ .mat-mdc-app-background#{if(&, ', &.mat-mdc-app-background', '')} {
32
+ $background: map.get($config, background);
33
+ $foreground: map.get($config, foreground);
34
+
35
+ background-color: mat.get-color-from-palette($background, background);
36
+ color: mat.get-color-from-palette($foreground, text);
37
+ }
26
38
  }
27
39
  }
28
40
 
29
41
  @mixin typography($config-or-theme) {
30
- $config: typography.private-typography-to-2018-config(
31
- theming.get-typography-config($config-or-theme));
42
+ $config: mat.private-typography-to-2018-config(
43
+ mat.get-typography-config($config-or-theme));
32
44
 
33
45
  @include option-theme.typography($config-or-theme);
34
46
  @include optgroup-theme.typography($config-or-theme);
35
47
  }
36
48
 
37
49
  @mixin density($config-or-theme) {
38
- $density-scale: theming.get-density-config($config-or-theme);
50
+ $density-scale: mat.get-density-config($config-or-theme);
39
51
 
40
52
  @include option-theme.density($density-scale);
41
53
  @include optgroup-theme.density($density-scale);
@@ -43,15 +55,15 @@
43
55
 
44
56
  // Mixin that renders all of the core styles that depend on the theme.
45
57
  @mixin theme($theme-or-color-config) {
46
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
58
+ $theme: mat.private-legacy-get-theme($theme-or-color-config);
47
59
 
48
60
  // Wrap the sub-theme includes in the duplicate theme styles mixin. This ensures that
49
61
  // there won't be multiple warnings. e.g. if `mat-mdc-core-theme` reports a warning, then
50
62
  // the imported themes (such as `mat-ripple-theme`) should not report again.
51
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-mdc-core') {
52
- $color: theming.get-color-config($theme);
53
- $density: theming.get-density-config($theme);
54
- $typography: theming.get-typography-config($theme);
63
+ @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-core') {
64
+ $color: mat.get-color-config($theme);
65
+ $density: mat.get-density-config($theme);
66
+ $typography: mat.get-typography-config($theme);
55
67
 
56
68
  @if $color != null {
57
69
  @include color($color);
@@ -1,10 +1,10 @@
1
1
  @use '@material/theme/theme' as mdc-theme;
2
+ @use '@angular/material' as mat;
3
+
2
4
  @use '../../mdc-helpers/mdc-helpers';
3
- @use '../../../material/core/theming/theming';
4
- @use '../../../material/core/typography/typography';
5
5
 
6
6
  @mixin color($config-or-theme) {
7
- $config: theming.get-color-config($config-or-theme);
7
+ $config: mat.get-color-config($config-or-theme);
8
8
 
9
9
  @include mdc-helpers.mat-using-mdc-theme($config) {
10
10
  .mat-mdc-optgroup-label {
@@ -16,20 +16,20 @@
16
16
  }
17
17
 
18
18
  @mixin typography($config-or-theme) {
19
- $config: typography.private-typography-to-2018-config(
20
- theming.get-typography-config($config-or-theme));
19
+ $config: mat.private-typography-to-2018-config(
20
+ mat.get-typography-config($config-or-theme));
21
21
  }
22
22
 
23
23
  @mixin density($config-or-theme) {
24
- $density-scale: theming.get-density-config($config-or-theme);
24
+ $density-scale: mat.get-density-config($config-or-theme);
25
25
  }
26
26
 
27
27
  @mixin theme($theme-or-color-config) {
28
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
29
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-mdc-optgroup') {
30
- $color: theming.get-color-config($theme);
31
- $density: theming.get-density-config($theme);
32
- $typography: theming.get-typography-config($theme);
28
+ $theme: mat.private-legacy-get-theme($theme-or-color-config);
29
+ @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-optgroup') {
30
+ $color: mat.get-color-config($theme);
31
+ $density: mat.get-density-config($theme);
32
+ $typography: mat.get-typography-config($theme);
33
33
 
34
34
  @if $color != null {
35
35
  @include color($color);
@@ -3,12 +3,12 @@
3
3
  @use '@material/list/evolution-mixins' as mdc-list-mixins;
4
4
  @use '@material/typography' as mdc-typography;
5
5
  @use '@material/ripple' as mdc-ripple;
6
+ @use '@angular/material' as mat;
7
+
6
8
  @use '../../mdc-helpers/mdc-helpers';
7
- @use '../../../material/core/theming/theming';
8
- @use '../../../material/core/typography/typography';
9
9
 
10
10
  @mixin color($config-or-theme) {
11
- $config: theming.get-color-config($config-or-theme);
11
+ $config: mat.get-color-config($config-or-theme);
12
12
 
13
13
  @include mdc-helpers.mat-using-mdc-theme($config) {
14
14
  .mat-mdc-option {
@@ -51,8 +51,8 @@
51
51
  }
52
52
 
53
53
  @mixin typography($config-or-theme) {
54
- $config: typography.private-typography-to-2018-config(
55
- theming.get-typography-config($config-or-theme));
54
+ $config: mat.private-typography-to-2018-config(
55
+ mat.get-typography-config($config-or-theme));
56
56
 
57
57
  @include mdc-helpers.mat-using-mdc-typography($config) {
58
58
  // MDC uses the `subtitle1` level for list items, but
@@ -64,15 +64,15 @@
64
64
  }
65
65
 
66
66
  @mixin density($config-or-theme) {
67
- $density-scale: theming.get-density-config($config-or-theme);
67
+ $density-scale: mat.get-density-config($config-or-theme);
68
68
  }
69
69
 
70
70
  @mixin theme($theme-or-color-config) {
71
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
72
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-mdc-option') {
73
- $color: theming.get-color-config($theme);
74
- $density: theming.get-density-config($theme);
75
- $typography: theming.get-typography-config($theme);
71
+ $theme: mat.private-legacy-get-theme($theme-or-color-config);
72
+ @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-option') {
73
+ $color: mat.get-color-config($theme);
74
+ $density: mat.get-density-config($theme);
75
+ $typography: mat.get-typography-config($theme);
76
76
 
77
77
  @if $color != null {
78
78
  @include color($color);
@@ -1,11 +1,12 @@
1
+ @use '@angular/material' as mat;
2
+
1
3
  @use '../mdc-theming/all-theme';
2
- @use '../../material/core/theming/theming';
3
4
 
4
5
  @mixin all-mdc-component-densities($config-or-theme) {
5
6
  // In case a theme object has been passed instead of a configuration for
6
7
  // the density system, extract the density config from the theme object.
7
- $config: if(theming.private-is-theme-object($config-or-theme),
8
- theming.get-density-config($config-or-theme), $config-or-theme);
8
+ $config: if(mat.private-is-theme-object($config-or-theme),
9
+ mat.get-density-config($config-or-theme), $config-or-theme);
9
10
 
10
11
  @if $config == null {
11
12
  @error 'No density configuration specified.';
@@ -1,33 +1,69 @@
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
1
3
  @use '@material/dialog' as mdc-dialog;
4
+ @use '@material/dialog/dialog-theme' as mdc-dialog-theme;
5
+ @use '@material/theme/theme-color' as mdc-theme-color;
6
+ @use '@material/typography' as mdc-typography;
7
+
2
8
  @use '../mdc-helpers/mdc-helpers';
3
- @use '../../material/core/typography/typography';
4
- @use '../../material/core/theming/theming';
5
9
 
6
10
  @mixin color($config-or-theme) {
7
- $config: theming.get-color-config($config-or-theme);
11
+ $config: mat.get-color-config($config-or-theme);
12
+
8
13
  @include mdc-helpers.mat-using-mdc-theme($config) {
9
- @include mdc-dialog.core-styles($query: mdc-helpers.$mat-theme-styles-query);
14
+ .mat-mdc-dialog-container {
15
+ $surface: mdc-theme-color.$surface;
16
+ $on-surface: mdc-theme-color.$on-surface;
17
+ $text-emphasis-high: mdc-theme-color.text-emphasis(high);
18
+ $text-emphasis-medium: mdc-theme-color.text-emphasis(medium);
19
+
20
+ @include mdc-dialog-theme.theme((
21
+ container-color: $surface,
22
+ container-elevation: 24,
23
+ container-shadow-color: $on-surface,
24
+ with-divider-divider-color: rgba($on-surface, mdc-dialog.$scroll-divider-opacity),
25
+ subhead-color: rgba($on-surface, $text-emphasis-high),
26
+ supporting-text-color: rgba($on-surface, $text-emphasis-medium),
27
+ ));
28
+ }
10
29
  }
11
30
  }
12
31
 
13
32
  @mixin typography($config-or-theme) {
14
- $config: typography.private-typography-to-2018-config(
15
- theming.get-typography-config($config-or-theme));
33
+ $config: mat.private-typography-to-2018-config(
34
+ mat.get-typography-config($config-or-theme));
16
35
  @include mdc-helpers.mat-using-mdc-typography($config) {
17
- @include mdc-dialog.core-styles($query: mdc-helpers.$mat-typography-styles-query);
36
+ .mat-mdc-dialog-container {
37
+ $styles: mdc-typography.$styles;
38
+ $headline6: map.get($styles, headline6);
39
+
40
+ @include mdc-dialog-theme.theme((
41
+ subhead-font: map.get($headline6, font-family),
42
+ subhead-line-height: map.get($styles, headline6, line-height),
43
+ subhead-size: map.get($styles, headline6, font-size),
44
+ subhead-weight: map.get($styles, headline6, font-weight),
45
+ subhead-tracking: map.get($styles, headline6, letter-spacing),
46
+
47
+ supporting-text-font: map.get($styles, body1, font-family),
48
+ supporting-text-line-height: map.get($styles, body1, line-height),
49
+ supporting-text-size: map.get($styles, body1, font-size),
50
+ supporting-text-weight: map.get($styles, body1, font-weight),
51
+ supporting-text-tracking: map.get($styles, body1, letter-spacing),
52
+ ));
53
+ }
18
54
  }
19
55
  }
20
56
 
21
57
  @mixin density($config-or-theme) {
22
- $density-scale: theming.get-density-config($config-or-theme);
58
+ $density-scale: mat.get-density-config($config-or-theme);
23
59
  }
24
60
 
25
61
  @mixin theme($theme-or-color-config) {
26
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
27
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-mdc-dialog') {
28
- $color: theming.get-color-config($theme);
29
- $density: theming.get-density-config($theme);
30
- $typography: theming.get-typography-config($theme);
62
+ $theme: mat.private-legacy-get-theme($theme-or-color-config);
63
+ @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-dialog') {
64
+ $color: mat.get-color-config($theme);
65
+ $density: mat.get-density-config($theme);
66
+ $typography: mat.get-typography-config($theme);
31
67
 
32
68
  @if $color != null {
33
69
  @include color($color);
@@ -55,6 +55,10 @@ export declare class MatDialogContent {
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>;
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
  }
@@ -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>;
36
34
  }