@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
@@ -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. */
@@ -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;
@@ -1,15 +1,12 @@
1
1
  // TODO(mmalerba): this file should be split into separate cohesive partials for things like
2
- // "theming", "typography", "core". Currently splitting it is difficult because of our brittle
3
- // gulp-based release build process. We can update this when we switch to bazel.
2
+ // "theming", "typography", "core".
4
3
 
4
+ @use '@angular/material' as mat;
5
5
  @use '@material/feature-targeting' as mdc-feature-targeting;
6
6
  @use '@material/typography' as mdc-typography;
7
7
  @use '@material/theme/theme-color' as mdc-theme-color;
8
8
  @use '@material/theme/css' as mdc-theme-css;
9
9
  @use 'sass:map';
10
- @use '../../material/core/theming/theming';
11
- @use '../../material/core/typography/typography';
12
- @use '../../material/core/typography/typography-utils';
13
10
 
14
11
  // A set of standard queries to use with MDC's queryable mixins.
15
12
  $mat-base-styles-query: mdc-feature-targeting.without(mdc-feature-targeting.any(color, typography));
@@ -49,11 +46,11 @@ $mat-typography-mdc-level-mappings: (
49
46
  )),
50
47
  if($mat-level,
51
48
  (
52
- font-size: typography-utils.font-size($mat-config, $mat-level),
53
- line-height: typography-utils.line-height($mat-config, $mat-level),
54
- font-weight: typography-utils.font-weight($mat-config, $mat-level),
55
- letter-spacing: typography-utils.letter-spacing($mat-config, $mat-level),
56
- font-family: typography-utils.font-family($mat-config, $mat-level),
49
+ font-size: mat.font-size($mat-config, $mat-level),
50
+ line-height: mat.line-height($mat-config, $mat-level),
51
+ font-weight: mat.font-weight($mat-config, $mat-level),
52
+ letter-spacing: mat.letter-spacing($mat-config, $mat-level),
53
+ font-family: mat.font-family($mat-config, $mat-level),
57
54
  // Angular Material doesn't use text-transform, so disable it.
58
55
  text-transform: none,
59
56
  ),
@@ -87,7 +84,7 @@ $mat-typography-mdc-level-mappings: (
87
84
  @function mat-typography-config-level-from-mdc($mdc-level) {
88
85
  $mdc-level-config: map.get(mdc-typography.$styles, $mdc-level);
89
86
 
90
- @return typography.define-typography-level(
87
+ @return mat.define-typography-level(
91
88
  map.get($mdc-level-config, font-size),
92
89
  map.get($mdc-level-config, line-height),
93
90
  map.get($mdc-level-config, font-weight),
@@ -98,9 +95,9 @@ $mat-typography-mdc-level-mappings: (
98
95
  // Configures MDC's global variables to reflect the given theme, applies the given styles,
99
96
  // then resets the global variables to prevent unintended side effects.
100
97
  @mixin mat-using-mdc-theme($config) {
101
- $primary: theming.get-color-from-palette(map.get($config, primary));
102
- $accent: theming.get-color-from-palette(map.get($config, accent));
103
- $warn: theming.get-color-from-palette(map.get($config, warn));
98
+ $primary: mat.get-color-from-palette(map.get($config, primary));
99
+ $accent: mat.get-color-from-palette(map.get($config, accent));
100
+ $warn: mat.get-color-from-palette(map.get($config, warn));
104
101
  $background-palette: map.get($config, background);
105
102
 
106
103
  // Save the original values.
@@ -122,8 +119,8 @@ $mat-typography-mdc-level-mappings: (
122
119
  mdc-theme-color.$secondary: $accent;
123
120
  mdc-theme-color.$on-secondary:
124
121
  if(mdc-theme-color.contrast-tone(mdc-theme-color.$secondary) == 'dark', #000, #fff);
125
- mdc-theme-color.$background: theming.get-color-from-palette($background-palette, background);
126
- mdc-theme-color.$surface: theming.get-color-from-palette($background-palette, card);
122
+ mdc-theme-color.$background: mat.get-color-from-palette($background-palette, background);
123
+ mdc-theme-color.$surface: mat.get-color-from-palette($background-palette, card);
127
124
  mdc-theme-color.$on-surface:
128
125
  if(mdc-theme-color.contrast-tone(mdc-theme-color.$surface) == 'dark', #000, #fff);
129
126
  mdc-theme-color.$error: $warn;
@@ -1,26 +1,26 @@
1
+ @use '@angular/material' as mat;
2
+
1
3
  @use '../mdc-helpers/mdc-helpers';
2
- @use '../../material/core/typography/typography';
3
- @use '../../material/core/theming/theming';
4
4
 
5
5
  @mixin color($config-or-theme) {
6
- $config: theming.get-color-config($config-or-theme);
6
+ $config: mat.get-color-config($config-or-theme);
7
7
  @include mdc-helpers.mat-using-mdc-theme($config) {}
8
8
  }
9
9
 
10
10
  @mixin typography($config-or-theme) {
11
- $config: typography.private-typography-to-2018-config(
12
- theming.get-typography-config($config-or-theme));
11
+ $config: mat.private-typography-to-2018-config(
12
+ mat.get-typography-config($config-or-theme));
13
13
  @include mdc-helpers.mat-using-mdc-typography($config) {}
14
14
  }
15
15
 
16
16
  @mixin density($config-or-theme) {}
17
17
 
18
18
  @mixin theme($theme-or-color-config) {
19
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
20
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-mdc-input') {
21
- $color: theming.get-color-config($theme);
22
- $density: theming.get-density-config($theme);
23
- $typography: theming.get-typography-config($theme);
19
+ $theme: mat.private-legacy-get-theme($theme-or-color-config);
20
+ @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-input') {
21
+ $color: mat.get-color-config($theme);
22
+ $density: mat.get-density-config($theme);
23
+ $typography: mat.get-typography-config($theme);
24
24
 
25
25
  @if $color != null {
26
26
  @include color($color);
@@ -1,13 +1,13 @@
1
+ @use '@angular/material' as mat;
1
2
  @use '@material/ripple' as mdc-ripple;
2
3
  @use 'sass:map';
3
- @use '../../material/core/theming/theming';
4
4
 
5
5
  // Mixin that provides colors for the various states of an interactive list-item. MDC
6
6
  // has integrated styles for these states but relies on their complex ripples for it.
7
7
  @mixin private-interactive-list-item-state-colors($config) {
8
8
  $is-dark-theme: map.get($config, is-dark);
9
9
  $active-base-color: if($is-dark-theme, white, black);
10
- $selected-color: theming.get-color-from-palette(map.get($config, primary));
10
+ $selected-color: mat.get-color-from-palette(map.get($config, primary));
11
11
 
12
12
  .mat-mdc-list-item-interactive {
13
13
  &::before {
@@ -1,14 +1,14 @@
1
1
  @use '@material/checkbox' as mdc-checkbox;
2
- @use '../mdc-checkbox/checkbox-theme';
2
+ @use '../mdc-checkbox/checkbox-private';
3
3
  @use '../mdc-helpers/mdc-helpers';
4
4
  @use './list-option-trailing-avatar-compat';
5
5
 
6
6
  // Mixin that overrides the selected item and checkbox colors for list options. By
7
7
  // default, the MDC list uses the `primary` color for list items. The MDC checkbox
8
8
  // inside list options by default uses the `primary` color too.
9
- @mixin private-list-option-color-override($color, $mdcColor) {
9
+ @mixin private-list-option-color-override($color, $mdc-color) {
10
10
  & .mdc-list-item__start, & .mdc-list-item__end {
11
- @include checkbox-theme.private-checkbox-styles-with-color($color, $mdcColor);
11
+ @include checkbox-private.private-checkbox-styles-with-color($color, $mdc-color);
12
12
  }
13
13
  }
14
14
 
@@ -3,6 +3,7 @@
3
3
  @use '@material/density/functions' as density-functions;
4
4
  @use '@material/list/evolution-mixins' as mdc-list;
5
5
  @use '@material/list/evolution-variables' as mdc-list-variables;
6
+ @use '../mdc-helpers/mdc-helpers';
6
7
 
7
8
  // For compatibility with the non-MDC selection list, we support avatars that are
8
9
  // shown at the end of the list option. This is not supported by the MDC list as the
@@ -15,19 +16,21 @@
15
16
  @mixin core-styles($query) {
16
17
  $feat-structure: feature-targeting.create-target($query, structure);
17
18
 
18
- .mat-mdc-list-option-with-trailing-avatar {
19
- @include mdc-list.item-end-spacing(16px, $query: $query);
20
- @include mdc-list.item-end-size(40px, $query: $query);
19
+ @include mdc-helpers.disable-fallback-declarations {
20
+ .mat-mdc-list-option-with-trailing-avatar {
21
+ @include mdc-list.item-end-spacing(16px, $query: $query);
22
+ @include mdc-list.item-end-size(40px, $query: $query);
21
23
 
22
- &.mdc-list-item--with-two-lines {
23
- .mdc-list-item__primary-text {
24
- @include typography.text-baseline($top: 32px, $bottom: 20px, $query: $query);
24
+ &.mdc-list-item--with-two-lines {
25
+ .mdc-list-item__primary-text {
26
+ @include typography.text-baseline($top: 32px, $bottom: 20px, $query: $query);
27
+ }
25
28
  }
26
- }
27
29
 
28
- .mdc-list-item__end {
29
- @include feature-targeting.targets($feat-structure) {
30
- border-radius: 50%;
30
+ .mdc-list-item__end {
31
+ @include feature-targeting.targets($feat-structure) {
32
+ border-radius: 50%;
33
+ }
31
34
  }
32
35
  }
33
36
  }
@@ -46,8 +49,10 @@
46
49
  $property-name: height,
47
50
  );
48
51
 
49
- .mat-mdc-list-option-with-trailing-avatar {
50
- @include mdc-list.one-line-item-height($one-line-tall-height);
51
- @include mdc-list.two-line-item-height($two-line-tall-height);
52
+ @include mdc-helpers.disable-fallback-declarations {
53
+ .mat-mdc-list-option-with-trailing-avatar {
54
+ @include mdc-list.one-line-item-height($one-line-tall-height);
55
+ @include mdc-list.two-line-item-height($two-line-tall-height);
56
+ }
52
57
  }
53
58
  }
@@ -1,26 +1,24 @@
1
1
  @use 'sass:map';
2
+ @use '@angular/material' as mat;
2
3
  @use '@material/list/evolution-mixins' as mdc-list;
4
+
3
5
  @use './interactive-list-theme';
4
6
  @use './list-option-theme';
5
7
  @use '../mdc-helpers/mdc-helpers';
6
- @use '../../material/core/typography/typography';
7
- @use '../../material/core/theming/theming';
8
-
9
8
 
10
9
  // TODO: implement mat-list[dense] once density system is in master
11
10
 
12
11
 
13
12
  @mixin color($config-or-theme) {
14
- $config: theming.get-color-config($config-or-theme);
15
- $primary: theming.get-color-from-palette(map.get($config, primary));
16
- $accent: theming.get-color-from-palette(map.get($config, accent));
17
- $warn: theming.get-color-from-palette(map.get($config, warn));
18
-
19
- // MDC's state styles are tied in with their ripple. Since we don't use the MDC
20
- // ripple, we need to add the hover, focus and selected states manually.
21
- @include interactive-list-theme.private-interactive-list-item-state-colors($config);
13
+ $config: mat.get-color-config($config-or-theme);
14
+ $primary: mat.get-color-from-palette(map.get($config, primary));
15
+ $accent: mat.get-color-from-palette(map.get($config, accent));
16
+ $warn: mat.get-color-from-palette(map.get($config, warn));
22
17
 
23
18
  @include mdc-helpers.mat-using-mdc-theme($config) {
19
+ // MDC's state styles are tied in with their ripple. Since we don't use the MDC
20
+ // ripple, we need to add the hover, focus and selected states manually.
21
+ @include interactive-list-theme.private-interactive-list-item-state-colors($config);
24
22
  @include mdc-list.without-ripple($query: mdc-helpers.$mat-theme-styles-query);
25
23
 
26
24
  .mat-mdc-list-option {
@@ -36,32 +34,42 @@
36
34
  }
37
35
 
38
36
  @mixin density($config-or-theme) {
39
- $density-scale: theming.get-density-config($config-or-theme);
37
+ $density-scale: mat.get-density-config($config-or-theme);
40
38
 
41
- .mat-mdc-list-item {
42
- @include mdc-list.one-line-item-density($density-scale);
43
- @include mdc-list.two-line-item-density($density-scale);
44
- @include mdc-list.three-line-item-density($density-scale);
45
- }
39
+ @include mdc-helpers.disable-fallback-declarations {
40
+ .mat-mdc-list-item {
41
+ @include mdc-list.one-line-item-density($density-scale);
42
+ @include mdc-list.two-line-item-density($density-scale);
43
+ @include mdc-list.three-line-item-density($density-scale);
44
+ }
46
45
 
47
- @include list-option-theme.private-list-option-density-styles($density-scale);
46
+ @include list-option-theme.private-list-option-density-styles($density-scale);
47
+ }
48
48
  }
49
49
 
50
50
  @mixin typography($config-or-theme) {
51
- $config: typography.private-typography-to-2018-config(
52
- theming.get-typography-config($config-or-theme));
51
+ $config: mat.private-typography-to-2018-config(
52
+ mat.get-typography-config($config-or-theme));
53
53
  @include mdc-helpers.mat-using-mdc-typography($config) {
54
54
  @include mdc-list.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
55
55
  @include list-option-theme.private-list-option-typography-styles();
56
56
  }
57
+
58
+ // According to the public spec this should be subtitle-1.
59
+ // However, body-1 and subtitle-1 are nearly identical in the public spec,
60
+ // and the Google-specific spec states that it should be body-1.
61
+ // For consistency, we use body-1 for both public and Google internal.
62
+ .mat-mdc-list-item .mdc-list-item__primary-text {
63
+ @include mat.typography-level($config, body-1);
64
+ }
57
65
  }
58
66
 
59
67
  @mixin theme($theme-or-color-config) {
60
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
61
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-mdc-list') {
62
- $color: theming.get-color-config($theme);
63
- $density: theming.get-density-config($theme);
64
- $typography: theming.get-typography-config($theme);
68
+ $theme: mat.private-legacy-get-theme($theme-or-color-config);
69
+ @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-list') {
70
+ $color: mat.get-color-config($theme);
71
+ $density: mat.get-density-config($theme);
72
+ $typography: mat.get-typography-config($theme);
65
73
 
66
74
  @if $color != null {
67
75
  @include color($color);
@@ -21,7 +21,11 @@ export declare class MatListItem extends MatListItemBase {
21
21
  _meta: QueryList<MatListItemMeta>;
22
22
  _unscopedContent: ElementRef<HTMLSpanElement>;
23
23
  _itemText: ElementRef<HTMLElement>;
24
+ /** Indicates whether an item in a `<mat-nav-list>` is the currently active page. */
25
+ get activated(): boolean;
26
+ set activated(activated: boolean);
27
+ _activated: boolean;
24
28
  constructor(element: ElementRef, ngZone: NgZone, listBase: MatListBase, platform: Platform, globalRippleOptions?: RippleGlobalOptions, animationMode?: string);
25
29
  static ɵfac: i0.ɵɵFactoryDeclaration<MatListItem, [null, null, null, null, { optional: true; }, { optional: true; }]>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<MatListItem, "mat-list-item, a[mat-list-item], button[mat-list-item]", ["matListItem"], {}, {}, ["_lines", "_titles", "_meta"], ["[matListItemAvatar],[matListItemIcon]", "[matListItemTitle]", "[matListItemLine]", "*", "[matListItemMeta]", "mat-divider"]>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatListItem, "mat-list-item, a[mat-list-item], button[mat-list-item]", ["matListItem"], { "activated": "activated"; }, {}, ["_lines", "_titles", "_meta"], ["[matListItemAvatar],[matListItemIcon]", "[matListItemTitle]", "[matListItemLine]", "*", "[matListItemMeta]", "mat-divider"]>;
27
31
  }
@@ -1,15 +1,15 @@
1
+ @use '@angular/material' as mat;
1
2
  @use '@material/theme/theme-color' as mdc-theme-color;
2
3
  @use '@material/theme/theme' as mdc-theme;
3
4
  @use '@material/menu-surface' as mdc-menu-surface;
4
5
  @use '@material/list/evolution-mixins' as mdc-list;
5
6
  @use '@material/typography' as mdc-typography;
6
7
  @use '@material/ripple' as mdc-ripple;
8
+
7
9
  @use '../mdc-helpers/mdc-helpers';
8
- @use '../../material/core/typography/typography';
9
- @use '../../material/core/theming/theming';
10
10
 
11
11
  @mixin color($config-or-theme) {
12
- $config: theming.get-color-config($config-or-theme);
12
+ $config: mat.get-color-config($config-or-theme);
13
13
  @include mdc-helpers.mat-using-mdc-theme($config) {
14
14
  @include mdc-menu-surface.core-styles(mdc-helpers.$mat-theme-styles-query);
15
15
  @include mdc-list.without-ripple(mdc-helpers.$mat-theme-styles-query);
@@ -45,8 +45,8 @@
45
45
  }
46
46
 
47
47
  @mixin typography($config-or-theme) {
48
- $config: typography.private-typography-to-2018-config(
49
- theming.get-typography-config($config-or-theme));
48
+ $config: mat.private-typography-to-2018-config(
49
+ mat.get-typography-config($config-or-theme));
50
50
  @include mdc-helpers.mat-using-mdc-typography($config) {
51
51
  @include mdc-menu-surface.core-styles(mdc-helpers.$mat-typography-styles-query);
52
52
 
@@ -68,11 +68,11 @@
68
68
  @mixin density($config-or-theme) {}
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-menu') {
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-menu') {
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);
@@ -16,7 +16,7 @@ export declare const MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER: Provider;
16
16
  export declare class MatMenu extends _MatMenuBase {
17
17
  protected _elevationPrefix: string;
18
18
  protected _baseElevation: number;
19
- constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _defaultOptions: MatMenuDefaultOptions);
19
+ constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone, defaultOptions: MatMenuDefaultOptions);
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMenu, never>;
21
21
  static ɵcmp: i0.ɵɵComponentDeclaration<MatMenu, "mat-menu", ["matMenu"], {}, {}, never, ["*"]>;
22
22
  }
@@ -1,22 +1,21 @@
1
+ @use '@angular/material' as mat;
2
+ @use '@material/density' as mdc-density;
1
3
  @use '@material/typography' as mdc-typography;
2
4
  @use 'sass:map';
3
- @use '../../material/core/theming/theming';
4
- @use '../../material/core/density/private/compatibility';
5
- @use '../../material/core/typography/typography';
5
+
6
6
  @use '../mdc-helpers/mdc-helpers';
7
7
  @use './paginator-variables';
8
- @use '../../material/core/typography/typography-utils';
9
8
 
10
9
  @mixin color($config-or-theme) {
11
- $config: theming.get-color-config($config-or-theme);
10
+ $config: mat.get-color-config($config-or-theme);
12
11
  $background: map.get($config, background);
13
12
  $foreground: map.get($config, foreground);
14
- $icon-color: rgba(theming.get-color-from-palette($foreground, base), 0.54);
15
- $disabled-color: rgba(theming.get-color-from-palette($foreground, base), 0.12);
13
+ $icon-color: rgba(mat.get-color-from-palette($foreground, base), 0.54);
14
+ $disabled-color: rgba(mat.get-color-from-palette($foreground, base), 0.12);
16
15
 
17
16
  .mat-mdc-paginator {
18
- background: theming.get-color-from-palette($background, card);
19
- color: rgba(theming.get-color-from-palette($foreground, base), 0.87);
17
+ background: mat.get-color-from-palette($background, card);
18
+ color: rgba(mat.get-color-from-palette($foreground, base), 0.87);
20
19
  }
21
20
 
22
21
  .mat-mdc-paginator-icon {
@@ -49,8 +48,8 @@
49
48
  }
50
49
 
51
50
  @mixin typography($config-or-theme) {
52
- $config: typography.private-typography-to-2018-config(
53
- theming.get-typography-config($config-or-theme));
51
+ $config: mat.private-typography-to-2018-config(
52
+ mat.get-typography-config($config-or-theme));
54
53
 
55
54
  @include mdc-helpers.mat-using-mdc-typography($config) {
56
55
  .mat-mdc-paginator {
@@ -58,29 +57,27 @@
58
57
  }
59
58
 
60
59
  .mat-mdc-paginator .mat-mdc-select-value {
61
- font-size: typography-utils.font-size($config, caption);
60
+ font-size: mat.font-size($config, caption);
62
61
  }
63
62
  }
64
63
  }
65
64
 
66
65
  @mixin density($config-or-theme) {
67
- $density-scale: theming.get-density-config($config-or-theme);
68
- $height: compatibility.private-density-prop-value(
66
+ $density-scale: mat.get-density-config($config-or-theme);
67
+ $height: mdc-density.prop-value(
69
68
  paginator-variables.$density-config, $density-scale, height);
70
69
 
71
- @include compatibility.private-density-legacy-compatibility() {
72
- .mat-mdc-paginator-container {
73
- min-height: $height;
74
- }
70
+ .mat-mdc-paginator-container {
71
+ min-height: $height;
75
72
  }
76
73
  }
77
74
 
78
75
  @mixin theme($theme-or-color-config) {
79
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
80
- @include theming.private-check-duplicate-theme-styles($theme, 'mat-mdc-paginator') {
81
- $color: theming.get-color-config($theme);
82
- $density: theming.get-density-config($theme);
83
- $typography: theming.get-typography-config($theme);
76
+ $theme: mat.private-legacy-get-theme($theme-or-color-config);
77
+ @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-paginator') {
78
+ $color: mat.get-color-config($theme);
79
+ $density: mat.get-density-config($theme);
80
+ $typography: mat.get-typography-config($theme);
84
81
 
85
82
  @if $color != null {
86
83
  @include color($color);
@@ -7,4 +7,4 @@
7
7
  */
8
8
  export * from './module';
9
9
  export * from './paginator';
10
- export { MatPaginatorIntl, MAT_PAGINATOR_INTL_PROVIDER_FACTORY, MAT_PAGINATOR_INTL_PROVIDER, PageEvent, } from '@angular/material/paginator';
10
+ export { MatPaginatorIntl, MAT_PAGINATOR_INTL_PROVIDER_FACTORY, MAT_PAGINATOR_INTL_PROVIDER, PageEvent, MatPaginatorSelectConfig, } from '@angular/material/paginator';