@angular/material-experimental 13.2.0-next.0 → 13.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/LICENSE +1 -1
  2. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
  3. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +3 -3
  4. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +3 -3
  5. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +3 -3
  6. package/esm2020/column-resize/column-resize-module.mjs +12 -12
  7. package/esm2020/column-resize/overlay-handle.mjs +3 -3
  8. package/esm2020/column-resize/resizable-directives/default-enabled-resizable.mjs +3 -3
  9. package/esm2020/column-resize/resizable-directives/resizable.mjs +3 -3
  10. package/esm2020/column-resize/resize-strategy.mjs +3 -3
  11. package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +3 -3
  12. package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +3 -3
  13. package/esm2020/mdc-autocomplete/autocomplete.mjs +3 -3
  14. package/esm2020/mdc-autocomplete/module.mjs +4 -4
  15. package/esm2020/mdc-button/button-base.mjs +24 -21
  16. package/esm2020/mdc-button/button.mjs +9 -9
  17. package/esm2020/mdc-button/fab.mjs +18 -18
  18. package/esm2020/mdc-button/icon-button.mjs +11 -13
  19. package/esm2020/mdc-button/module.mjs +4 -4
  20. package/esm2020/mdc-card/card.mjs +42 -42
  21. package/esm2020/mdc-card/module.mjs +4 -4
  22. package/esm2020/mdc-checkbox/checkbox.mjs +9 -16
  23. package/esm2020/mdc-checkbox/module.mjs +6 -7
  24. package/esm2020/mdc-chips/chip-action.mjs +123 -0
  25. package/esm2020/mdc-chips/chip-edit-input.mjs +5 -5
  26. package/esm2020/mdc-chips/chip-grid.mjs +49 -99
  27. package/esm2020/mdc-chips/chip-icons.mjs +39 -101
  28. package/esm2020/mdc-chips/chip-input.mjs +6 -13
  29. package/esm2020/mdc-chips/chip-listbox.mjs +51 -156
  30. package/esm2020/mdc-chips/chip-option.mjs +84 -95
  31. package/esm2020/mdc-chips/chip-row.mjs +82 -90
  32. package/esm2020/mdc-chips/chip-set.mjs +119 -120
  33. package/esm2020/mdc-chips/chip.mjs +188 -180
  34. package/esm2020/mdc-chips/emit-event.mjs +27 -0
  35. package/esm2020/mdc-chips/module.mjs +8 -10
  36. package/esm2020/mdc-chips/testing/chip-harness.mjs +5 -1
  37. package/esm2020/mdc-chips/testing/chip-option-harness.mjs +2 -2
  38. package/esm2020/mdc-chips/testing/chip-row-harness.mjs +10 -1
  39. package/esm2020/mdc-core/option/index.mjs +4 -4
  40. package/esm2020/mdc-core/option/optgroup.mjs +3 -3
  41. package/esm2020/mdc-core/option/option.mjs +5 -5
  42. package/esm2020/mdc-core/public-api.mjs +2 -2
  43. package/esm2020/mdc-dialog/dialog-container.mjs +4 -4
  44. package/esm2020/mdc-dialog/dialog-content-directives.mjs +12 -12
  45. package/esm2020/mdc-dialog/dialog.mjs +3 -3
  46. package/esm2020/mdc-dialog/module.mjs +4 -4
  47. package/esm2020/mdc-form-field/directives/error.mjs +3 -3
  48. package/esm2020/mdc-form-field/directives/floating-label.mjs +3 -3
  49. package/esm2020/mdc-form-field/directives/hint.mjs +3 -3
  50. package/esm2020/mdc-form-field/directives/label.mjs +3 -3
  51. package/esm2020/mdc-form-field/directives/line-ripple.mjs +3 -3
  52. package/esm2020/mdc-form-field/directives/notched-outline.mjs +3 -3
  53. package/esm2020/mdc-form-field/directives/prefix.mjs +3 -3
  54. package/esm2020/mdc-form-field/directives/suffix.mjs +3 -3
  55. package/esm2020/mdc-form-field/form-field.mjs +21 -5
  56. package/esm2020/mdc-form-field/module.mjs +4 -4
  57. package/esm2020/mdc-input/input.mjs +5 -4
  58. package/esm2020/mdc-input/module.mjs +4 -4
  59. package/esm2020/mdc-list/action-list.mjs +4 -4
  60. package/esm2020/mdc-list/interactive-list-base.mjs +3 -3
  61. package/esm2020/mdc-list/list-base.mjs +138 -41
  62. package/esm2020/mdc-list/list-item-sections.mjs +138 -0
  63. package/esm2020/mdc-list/list-option.mjs +25 -17
  64. package/esm2020/mdc-list/list.mjs +24 -18
  65. package/esm2020/mdc-list/module.mjs +46 -23
  66. package/esm2020/mdc-list/nav-list.mjs +4 -4
  67. package/esm2020/mdc-list/public-api.mjs +3 -2
  68. package/esm2020/mdc-list/selection-list.mjs +8 -8
  69. package/esm2020/mdc-list/subheader.mjs +27 -0
  70. package/esm2020/mdc-list/testing/list-harness-filters.mjs +1 -1
  71. package/esm2020/mdc-list/testing/list-item-harness-base.mjs +100 -12
  72. package/esm2020/mdc-list/testing/public-api.mjs +2 -1
  73. package/esm2020/mdc-list/testing/selection-list-harness.mjs +1 -5
  74. package/esm2020/mdc-menu/directives.mjs +6 -6
  75. package/esm2020/mdc-menu/menu-item.mjs +3 -3
  76. package/esm2020/mdc-menu/menu.mjs +3 -3
  77. package/esm2020/mdc-menu/module.mjs +4 -4
  78. package/esm2020/mdc-paginator/module.mjs +4 -4
  79. package/esm2020/mdc-paginator/paginator.mjs +3 -3
  80. package/esm2020/mdc-progress-bar/module.mjs +4 -4
  81. package/esm2020/mdc-progress-bar/progress-bar.mjs +3 -3
  82. package/esm2020/mdc-progress-spinner/module.mjs +4 -4
  83. package/esm2020/mdc-progress-spinner/progress-spinner.mjs +3 -3
  84. package/esm2020/mdc-radio/module.mjs +4 -4
  85. package/esm2020/mdc-radio/radio.mjs +8 -8
  86. package/esm2020/mdc-select/module.mjs +4 -4
  87. package/esm2020/mdc-select/select.mjs +8 -8
  88. package/esm2020/mdc-sidenav/module.mjs +4 -4
  89. package/esm2020/mdc-slide-toggle/module.mjs +4 -4
  90. package/esm2020/mdc-slide-toggle/slide-toggle.mjs +5 -5
  91. package/esm2020/mdc-slider/global-change-and-input-listener.mjs +3 -3
  92. package/esm2020/mdc-slider/module.mjs +4 -4
  93. package/esm2020/mdc-slider/slider.mjs +33 -12
  94. package/esm2020/mdc-snack-bar/module.mjs +7 -7
  95. package/esm2020/mdc-snack-bar/public-api.mjs +2 -2
  96. package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +7 -7
  97. package/esm2020/mdc-snack-bar/snack-bar-container.mjs +3 -3
  98. package/esm2020/mdc-snack-bar/snack-bar-content.mjs +9 -9
  99. package/esm2020/mdc-snack-bar/snack-bar.mjs +26 -12
  100. package/esm2020/mdc-table/cell.mjs +21 -21
  101. package/esm2020/mdc-table/module.mjs +4 -4
  102. package/esm2020/mdc-table/row.mjs +21 -21
  103. package/esm2020/mdc-table/table.mjs +8 -8
  104. package/esm2020/mdc-table/text-column.mjs +3 -3
  105. package/esm2020/mdc-tabs/module.mjs +10 -6
  106. package/esm2020/mdc-tabs/public-api.mjs +2 -2
  107. package/esm2020/mdc-tabs/tab-body.mjs +8 -8
  108. package/esm2020/mdc-tabs/tab-content.mjs +3 -3
  109. package/esm2020/mdc-tabs/tab-group.mjs +7 -7
  110. package/esm2020/mdc-tabs/tab-header.mjs +5 -5
  111. package/esm2020/mdc-tabs/tab-label-wrapper.mjs +3 -3
  112. package/esm2020/mdc-tabs/tab-label.mjs +3 -3
  113. package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +48 -11
  114. package/esm2020/mdc-tabs/tab.mjs +5 -5
  115. package/esm2020/mdc-tabs/testing/tab-harness-filters.mjs +1 -1
  116. package/esm2020/mdc-tabs/testing/tab-nav-bar-harness.mjs +13 -1
  117. package/esm2020/mdc-tabs/testing/tab-nav-panel-harness.mjs +27 -0
  118. package/esm2020/mdc-tooltip/module.mjs +4 -4
  119. package/esm2020/mdc-tooltip/tooltip.mjs +6 -6
  120. package/esm2020/menubar/menubar-item.mjs +3 -3
  121. package/esm2020/menubar/menubar-module.mjs +4 -4
  122. package/esm2020/menubar/menubar.mjs +3 -3
  123. package/esm2020/popover-edit/lens-directives.mjs +9 -9
  124. package/esm2020/popover-edit/popover-edit-module.mjs +4 -4
  125. package/esm2020/popover-edit/table-directives.mjs +12 -12
  126. package/esm2020/selection/row-selection.mjs +3 -3
  127. package/esm2020/selection/select-all.mjs +3 -3
  128. package/esm2020/selection/selection-column.mjs +3 -3
  129. package/esm2020/selection/selection-module.mjs +4 -4
  130. package/esm2020/selection/selection-toggle.mjs +3 -3
  131. package/esm2020/selection/selection.mjs +3 -3
  132. package/esm2020/version.mjs +1 -1
  133. package/fesm2015/column-resize.mjs +36 -36
  134. package/fesm2015/material-experimental.mjs +1 -1
  135. package/fesm2015/material-experimental.mjs.map +1 -1
  136. package/fesm2015/mdc-autocomplete.mjs +13 -13
  137. package/fesm2015/mdc-button.mjs +61 -60
  138. package/fesm2015/mdc-button.mjs.map +1 -1
  139. package/fesm2015/mdc-card.mjs +46 -46
  140. package/fesm2015/mdc-checkbox.mjs +13 -21
  141. package/fesm2015/mdc-checkbox.mjs.map +1 -1
  142. package/fesm2015/mdc-chips/testing.mjs +18 -8
  143. package/fesm2015/mdc-chips/testing.mjs.map +1 -1
  144. package/fesm2015/mdc-chips.mjs +753 -1063
  145. package/fesm2015/mdc-chips.mjs.map +1 -1
  146. package/fesm2015/mdc-core.mjs +12 -12
  147. package/fesm2015/mdc-core.mjs.map +1 -1
  148. package/fesm2015/mdc-dialog.mjs +23 -23
  149. package/fesm2015/mdc-form-field.mjs +50 -32
  150. package/fesm2015/mdc-form-field.mjs.map +1 -1
  151. package/fesm2015/mdc-input.mjs +8 -7
  152. package/fesm2015/mdc-input.mjs.map +1 -1
  153. package/fesm2015/mdc-list/testing.mjs +110 -18
  154. package/fesm2015/mdc-list/testing.mjs.map +1 -1
  155. package/fesm2015/mdc-list.mjs +353 -148
  156. package/fesm2015/mdc-list.mjs.map +1 -1
  157. package/fesm2015/mdc-menu.mjs +16 -16
  158. package/fesm2015/mdc-paginator.mjs +7 -7
  159. package/fesm2015/mdc-progress-bar.mjs +7 -7
  160. package/fesm2015/mdc-progress-spinner.mjs +7 -7
  161. package/fesm2015/mdc-radio.mjs +11 -11
  162. package/fesm2015/mdc-radio.mjs.map +1 -1
  163. package/fesm2015/mdc-select.mjs +12 -12
  164. package/fesm2015/mdc-sidenav.mjs +4 -4
  165. package/fesm2015/mdc-slide-toggle.mjs +8 -8
  166. package/fesm2015/mdc-slide-toggle.mjs.map +1 -1
  167. package/fesm2015/mdc-slider.mjs +39 -18
  168. package/fesm2015/mdc-slider.mjs.map +1 -1
  169. package/fesm2015/mdc-snack-bar.mjs +46 -41
  170. package/fesm2015/mdc-snack-bar.mjs.map +1 -1
  171. package/fesm2015/mdc-table.mjs +57 -57
  172. package/fesm2015/mdc-tabs/testing.mjs +34 -0
  173. package/fesm2015/mdc-tabs/testing.mjs.map +1 -1
  174. package/fesm2015/mdc-tabs.mjs +86 -45
  175. package/fesm2015/mdc-tabs.mjs.map +1 -1
  176. package/fesm2015/mdc-tooltip.mjs +10 -10
  177. package/fesm2015/menubar.mjs +10 -10
  178. package/fesm2015/popover-edit.mjs +25 -25
  179. package/fesm2015/selection.mjs +19 -19
  180. package/fesm2020/column-resize.mjs +36 -36
  181. package/fesm2020/material-experimental.mjs +1 -1
  182. package/fesm2020/material-experimental.mjs.map +1 -1
  183. package/fesm2020/mdc-autocomplete.mjs +13 -13
  184. package/fesm2020/mdc-button.mjs +62 -61
  185. package/fesm2020/mdc-button.mjs.map +1 -1
  186. package/fesm2020/mdc-card.mjs +46 -46
  187. package/fesm2020/mdc-checkbox.mjs +13 -21
  188. package/fesm2020/mdc-checkbox.mjs.map +1 -1
  189. package/fesm2020/mdc-chips/testing.mjs +14 -1
  190. package/fesm2020/mdc-chips/testing.mjs.map +1 -1
  191. package/fesm2020/mdc-chips.mjs +733 -1068
  192. package/fesm2020/mdc-chips.mjs.map +1 -1
  193. package/fesm2020/mdc-core.mjs +12 -12
  194. package/fesm2020/mdc-core.mjs.map +1 -1
  195. package/fesm2020/mdc-dialog.mjs +23 -23
  196. package/fesm2020/mdc-form-field.mjs +48 -32
  197. package/fesm2020/mdc-form-field.mjs.map +1 -1
  198. package/fesm2020/mdc-input.mjs +8 -7
  199. package/fesm2020/mdc-input.mjs.map +1 -1
  200. package/fesm2020/mdc-list/testing.mjs +100 -16
  201. package/fesm2020/mdc-list/testing.mjs.map +1 -1
  202. package/fesm2020/mdc-list.mjs +351 -148
  203. package/fesm2020/mdc-list.mjs.map +1 -1
  204. package/fesm2020/mdc-menu.mjs +16 -16
  205. package/fesm2020/mdc-paginator.mjs +7 -7
  206. package/fesm2020/mdc-progress-bar.mjs +7 -7
  207. package/fesm2020/mdc-progress-spinner.mjs +7 -7
  208. package/fesm2020/mdc-radio.mjs +11 -11
  209. package/fesm2020/mdc-radio.mjs.map +1 -1
  210. package/fesm2020/mdc-select.mjs +12 -12
  211. package/fesm2020/mdc-sidenav.mjs +4 -4
  212. package/fesm2020/mdc-slide-toggle.mjs +8 -8
  213. package/fesm2020/mdc-slide-toggle.mjs.map +1 -1
  214. package/fesm2020/mdc-slider.mjs +39 -18
  215. package/fesm2020/mdc-slider.mjs.map +1 -1
  216. package/fesm2020/mdc-snack-bar.mjs +44 -34
  217. package/fesm2020/mdc-snack-bar.mjs.map +1 -1
  218. package/fesm2020/mdc-table.mjs +57 -57
  219. package/fesm2020/mdc-tabs/testing.mjs +37 -0
  220. package/fesm2020/mdc-tabs/testing.mjs.map +1 -1
  221. package/fesm2020/mdc-tabs.mjs +86 -45
  222. package/fesm2020/mdc-tabs.mjs.map +1 -1
  223. package/fesm2020/mdc-tooltip.mjs +10 -10
  224. package/fesm2020/menubar.mjs +10 -10
  225. package/fesm2020/popover-edit.mjs +25 -25
  226. package/fesm2020/selection.mjs +19 -19
  227. package/mdc-button/_button-base.scss +28 -15
  228. package/mdc-button/_button-theme-private.scss +35 -28
  229. package/mdc-button/_button-theme.scss +118 -80
  230. package/mdc-button/_fab-theme.scss +31 -37
  231. package/mdc-button/_icon-button-theme.scss +15 -22
  232. package/mdc-button/button-base.d.ts +7 -5
  233. package/mdc-button/fab.d.ts +1 -1
  234. package/mdc-button/icon-button.d.ts +2 -2
  235. package/mdc-checkbox/_checkbox-private.scss +46 -0
  236. package/mdc-checkbox/_checkbox-theme.scss +19 -46
  237. package/mdc-checkbox/checkbox.d.ts +0 -6
  238. package/mdc-checkbox/module.d.ts +2 -3
  239. package/mdc-chips/_chips-theme.scss +53 -53
  240. package/mdc-chips/chip-action.d.ts +40 -0
  241. package/mdc-chips/chip-grid.d.ts +6 -24
  242. package/mdc-chips/chip-icons.d.ts +14 -37
  243. package/mdc-chips/chip-listbox.d.ts +4 -40
  244. package/mdc-chips/chip-option.d.ts +15 -11
  245. package/mdc-chips/chip-row.d.ts +13 -28
  246. package/mdc-chips/chip-set.d.ts +25 -42
  247. package/mdc-chips/chip.d.ts +37 -36
  248. package/mdc-chips/emit-event.d.ts +16 -0
  249. package/mdc-chips/module.d.ts +13 -12
  250. package/mdc-chips/testing/chip-harness.d.ts +1 -0
  251. package/mdc-chips/testing/chip-row-harness.d.ts +4 -0
  252. package/mdc-core/option/_option-theme.scss +3 -3
  253. package/mdc-core/option/option.d.ts +3 -3
  254. package/mdc-core/public-api.d.ts +1 -1
  255. package/mdc-form-field/_form-field-subscript.scss +11 -0
  256. package/mdc-form-field/form-field.d.ts +12 -1
  257. package/mdc-helpers/_focus-indicators.scss +15 -3
  258. package/mdc-list/_interactive-list-theme.scss +17 -11
  259. package/mdc-list/_list-option-theme.scss +3 -3
  260. package/mdc-list/_list-option-trailing-avatar-compat.scss +18 -13
  261. package/mdc-list/_list-theme.scss +18 -13
  262. package/mdc-list/list-base.d.ts +56 -11
  263. package/mdc-list/list-item-sections.d.ts +77 -0
  264. package/mdc-list/list-option.d.ts +11 -8
  265. package/mdc-list/list.d.ts +6 -2
  266. package/mdc-list/module.d.ts +7 -5
  267. package/mdc-list/public-api.d.ts +2 -1
  268. package/mdc-list/subheader.d.ts +9 -0
  269. package/mdc-list/testing/list-harness-filters.d.ts +8 -0
  270. package/mdc-list/testing/list-item-harness-base.d.ts +36 -3
  271. package/mdc-list/testing/public-api.d.ts +1 -1
  272. package/mdc-list/testing/selection-list-harness.d.ts +0 -2
  273. package/mdc-radio/_radio-theme.scss +0 -6
  274. package/mdc-select/_select-theme.scss +6 -27
  275. package/mdc-slider/slider.d.ts +13 -1
  276. package/mdc-snack-bar/module.d.ts +1 -1
  277. package/mdc-snack-bar/public-api.d.ts +1 -1
  278. package/mdc-snack-bar/simple-snack-bar.d.ts +4 -4
  279. package/mdc-snack-bar/snack-bar.d.ts +17 -5
  280. package/mdc-table/_table-theme.scss +1 -1
  281. package/mdc-tabs/_tabs-common.scss +8 -1
  282. package/mdc-tabs/_tabs-theme.scss +8 -55
  283. package/mdc-tabs/module.d.ts +1 -1
  284. package/mdc-tabs/public-api.d.ts +1 -1
  285. package/mdc-tabs/tab-nav-bar/tab-nav-bar.d.ts +11 -0
  286. package/mdc-tabs/testing/tab-harness-filters.d.ts +3 -0
  287. package/mdc-tabs/testing/tab-nav-bar-harness.d.ts +3 -0
  288. package/mdc-tabs/testing/tab-nav-panel-harness.d.ts +23 -0
  289. package/mdc-theming/prebuilt/deeppurple-amber.css +1 -0
  290. package/mdc-theming/prebuilt/indigo-pink.css +1 -1
  291. package/mdc-theming/prebuilt/pink-bluegrey.css +1 -0
  292. package/mdc-theming/prebuilt/purple-green.css +1 -0
  293. package/mdc-tooltip/_tooltip-theme.scss +1 -1
  294. package/package.json +16 -2
  295. package/esm2020/mdc-chips/grid-focus-key-manager.mjs +0 -21
  296. package/esm2020/mdc-chips/grid-key-manager.mjs +0 -218
  297. package/esm2020/mdc-list/list-styling.mjs +0 -92
  298. package/mdc-chips/grid-focus-key-manager.d.ts +0 -28
  299. package/mdc-chips/grid-key-manager.d.ts +0 -116
  300. package/mdc-list/list-styling.d.ts +0 -40
@@ -1,7 +1,6 @@
1
1
  @use '@material/theme/theme-color' as mdc-theme-color;
2
2
  @use '@material/menu-surface' as mdc-menu-surface;
3
3
  @use '@material/list/evolution-mixins' as mdc-list;
4
- @use '@material/select' as mdc-select;
5
4
  @use '@material/typography' as mdc-typography;
6
5
  @use '../mdc-helpers/mdc-helpers';
7
6
  @use '../../material/core/typography/typography';
@@ -15,38 +14,25 @@
15
14
  @mixin color($config-or-theme) {
16
15
  $config: theming.get-color-config($config-or-theme);
17
16
 
18
- // Save original values of MDC global variables. We need to save these so we can restore the
19
- // variables to their original values and prevent unintended side effects from using this mixin.
20
- $orig-ink-color: mdc-select.$ink-color;
21
- $orig-label-color: mdc-select.$label-color;
22
- $orig-disabled-label-color: mdc-select.$disabled-label-color;
23
- $orig-dropdown-icon-color: mdc-select.$dropdown-icon-color;
24
- $orig-disabled-dropdown-icon-color: mdc-select.$disabled-dropdown-icon-color;
25
-
26
17
  @include mdc-helpers.mat-using-mdc-theme($config) {
27
- mdc-select.$ink-color: rgba(mdc-theme-color.prop-value(on-surface), 0.87);
28
- mdc-select.$label-color: rgba(mdc-theme-color.prop-value(on-surface), 0.6);
29
- mdc-select.$disabled-label-color: rgba(mdc-theme-color.prop-value(on-surface), 0.38);
30
- mdc-select.$dropdown-icon-color: rgba(mdc-theme-color.prop-value(on-surface), 0.54);
31
- mdc-select.$disabled-dropdown-icon-color: rgba(mdc-theme-color.prop-value(on-surface), 0.38);
32
-
18
+ $disabled-color: rgba(mdc-theme-color.prop-value(on-surface), 0.38);
33
19
  @include mdc-menu-surface.core-styles(mdc-helpers.$mat-theme-styles-query);
34
20
  @include mdc-list.without-ripple(mdc-helpers.$mat-theme-styles-query);
35
21
 
36
22
  .mat-mdc-select-value {
37
- color: mdc-select.$ink-color;
23
+ color: rgba(mdc-theme-color.prop-value(on-surface), 0.87);
38
24
  }
39
25
 
40
26
  .mat-mdc-select-placeholder {
41
- color: mdc-select.$label-color;
27
+ color: rgba(mdc-theme-color.prop-value(on-surface), 0.6);
42
28
  }
43
29
 
44
30
  .mat-mdc-select-disabled .mat-mdc-select-value {
45
- color: mdc-select.$disabled-label-color;
31
+ color: $disabled-color;
46
32
  }
47
33
 
48
34
  .mat-mdc-select-arrow {
49
- color: mdc-select.$dropdown-icon-color;
35
+ color: rgba(mdc-theme-color.prop-value(on-surface), 0.54);
50
36
  }
51
37
 
52
38
  .mat-mdc-form-field {
@@ -69,17 +55,10 @@
69
55
  }
70
56
 
71
57
  .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow {
72
- color: mdc-select.$disabled-dropdown-icon-color;
58
+ color: $disabled-color;
73
59
  }
74
60
  }
75
61
  }
76
-
77
- // Restore original values of MDC global variables.
78
- mdc-select.$ink-color: $orig-ink-color;
79
- mdc-select.$label-color: $orig-label-color;
80
- mdc-select.$disabled-label-color: $orig-disabled-label-color;
81
- mdc-select.$dropdown-icon-color: $orig-dropdown-icon-color;
82
- mdc-select.$disabled-dropdown-icon-color: $orig-disabled-dropdown-icon-color;
83
62
  }
84
63
 
85
64
  @mixin typography($config-or-theme) {
@@ -44,8 +44,10 @@ export declare class MatSliderVisualThumb implements AfterViewInit, OnDestroy {
44
44
  disableRipple: boolean;
45
45
  /** The MatRipple for this slider thumb. */
46
46
  private readonly _ripple;
47
- /** The slider thumb knob */
47
+ /** The slider thumb knob. */
48
48
  _knob: ElementRef<HTMLElement>;
49
+ /** The slider thumb value indicator container. */
50
+ _valueIndicatorContainer: ElementRef<HTMLElement>;
49
51
  /** The slider input corresponding to this slider thumb. */
50
52
  private _sliderInput;
51
53
  /** The RippleRef for the slider thumbs hover state. */
@@ -83,6 +85,11 @@ export declare class MatSliderVisualThumb implements AfterViewInit, OnDestroy {
83
85
  _getHostElement(): HTMLElement;
84
86
  /** Gets the native HTML element of the slider thumb knob. */
85
87
  _getKnob(): HTMLElement;
88
+ /**
89
+ * Gets the native HTML element of the slider thumb value indicator
90
+ * container.
91
+ */
92
+ _getValueIndicatorContainer(): HTMLElement;
86
93
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSliderVisualThumb, never>;
87
94
  static ɵcmp: i0.ɵɵComponentDeclaration<MatSliderVisualThumb, "mat-slider-visual-thumb", never, { "discrete": "discrete"; "thumbPosition": "thumbPosition"; "valueIndicatorText": "valueIndicatorText"; "disableRipple": "disableRipple"; }, {}, never, never>;
88
95
  }
@@ -336,6 +343,11 @@ export declare class MatSlider extends _MatSliderMixinBase implements AfterViewI
336
343
  _getThumbElement(thumbPosition: Thumb): HTMLElement;
337
344
  /** Gets the slider knob HTML element of the given thumb position. */
338
345
  _getKnobElement(thumbPosition: Thumb): HTMLElement;
346
+ /**
347
+ * Gets the slider value indicator container HTML element of the given thumb
348
+ * position.
349
+ */
350
+ _getValueIndicatorContainerElement(thumbPosition: Thumb): HTMLElement;
339
351
  /**
340
352
  * Sets the value indicator text of the given thumb position using the given value.
341
353
  *
@@ -9,6 +9,6 @@ import * as i7 from "@angular/material-experimental/mdc-button";
9
9
  import * as i8 from "@angular/material-experimental/mdc-core";
10
10
  export declare class MatSnackBarModule {
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, [typeof i1.MatSimpleSnackBar, typeof i2.MatSnackBarContainer, typeof i3.MatSnackBarLabel, typeof i3.MatSnackBarActions, typeof i3.MatSnackBarAction], [typeof i4.OverlayModule, typeof i5.PortalModule, typeof i6.CommonModule, typeof i7.MatButtonModule, typeof i8.MatCommonModule], [typeof i8.MatCommonModule, typeof i2.MatSnackBarContainer, typeof i3.MatSnackBarLabel, typeof i3.MatSnackBarActions, typeof i3.MatSnackBarAction]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, [typeof i1.SimpleSnackBar, typeof i2.MatSnackBarContainer, typeof i3.MatSnackBarLabel, typeof i3.MatSnackBarActions, typeof i3.MatSnackBarAction], [typeof i4.OverlayModule, typeof i5.PortalModule, typeof i6.CommonModule, typeof i7.MatButtonModule, typeof i8.MatCommonModule], [typeof i8.MatCommonModule, typeof i2.MatSnackBarContainer, typeof i3.MatSnackBarLabel, typeof i3.MatSnackBarActions, typeof i3.MatSnackBarAction]>;
13
13
  static ɵinj: i0.ɵɵInjectorDeclaration<MatSnackBarModule>;
14
14
  }
@@ -10,4 +10,4 @@ export * from './snack-bar-container';
10
10
  export * from './snack-bar-content';
11
11
  export * from './snack-bar';
12
12
  export * from './module';
13
- export { MatSnackBarConfig, MatSnackBarDismiss, MatSnackBarRef, SimpleSnackBar, MAT_SNACK_BAR_DATA, MAT_SNACK_BAR_DEFAULT_OPTIONS, MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition, TextOnlySnackBar, matSnackBarAnimations, } from '@angular/material/snack-bar';
13
+ export { MatSnackBarConfig, MatSnackBarDismiss, MatSnackBarRef, MAT_SNACK_BAR_DATA, MAT_SNACK_BAR_DEFAULT_OPTIONS, MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY, MatSnackBarHorizontalPosition, MatSnackBarVerticalPosition, TextOnlySnackBar, matSnackBarAnimations, } from '@angular/material/snack-bar';
@@ -1,6 +1,6 @@
1
- import { TextOnlySnackBar, MatSnackBarRef, SimpleSnackBar } from '@angular/material/snack-bar';
1
+ import { TextOnlySnackBar, MatSnackBarRef } from '@angular/material/snack-bar';
2
2
  import * as i0 from "@angular/core";
3
- export declare class MatSimpleSnackBar implements TextOnlySnackBar {
3
+ export declare class SimpleSnackBar implements TextOnlySnackBar {
4
4
  snackBarRef: MatSnackBarRef<SimpleSnackBar>;
5
5
  data: {
6
6
  message: string;
@@ -14,6 +14,6 @@ export declare class MatSimpleSnackBar implements TextOnlySnackBar {
14
14
  action(): void;
15
15
  /** If the action button should be shown. */
16
16
  get hasAction(): boolean;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<MatSimpleSnackBar, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<MatSimpleSnackBar, "mat-simple-snack-bar", ["matSnackBar"], {}, {}, never, never>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<SimpleSnackBar, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSnackBar, "simple-snack-bar", ["matSnackBar"], {}, {}, never, never>;
19
19
  }
@@ -1,14 +1,26 @@
1
- import { MatSnackBar as BaseMatSnackBar } from '@angular/material/snack-bar';
2
- import { MatSimpleSnackBar } from './simple-snack-bar';
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 { LiveAnnouncer } from '@angular/cdk/a11y';
9
+ import { BreakpointObserver } from '@angular/cdk/layout';
10
+ import { Overlay } from '@angular/cdk/overlay';
11
+ import { Injector } from '@angular/core';
12
+ import { MatSnackBarConfig, _MatSnackBarBase } from '@angular/material/snack-bar';
13
+ import { SimpleSnackBar } from './simple-snack-bar';
3
14
  import { MatSnackBarContainer } from './snack-bar-container';
4
15
  import * as i0 from "@angular/core";
5
16
  /**
6
17
  * Service to dispatch Material Design snack bar messages.
7
18
  */
8
- export declare class MatSnackBar extends BaseMatSnackBar {
9
- protected simpleSnackBarComponent: typeof MatSimpleSnackBar;
19
+ export declare class MatSnackBar extends _MatSnackBarBase {
20
+ protected simpleSnackBarComponent: typeof SimpleSnackBar;
10
21
  protected snackBarContainerComponent: typeof MatSnackBarContainer;
11
22
  protected handsetCssClass: string;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBar, never>;
23
+ constructor(overlay: Overlay, live: LiveAnnouncer, injector: Injector, breakpointObserver: BreakpointObserver, parentSnackBar: MatSnackBar, defaultConfig: MatSnackBarConfig);
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBar, [null, null, null, null, { optional: true; skipSelf: true; }, null]>;
13
25
  static ɵprov: i0.ɵɵInjectableDeclaration<MatSnackBar>;
14
26
  }
@@ -1,7 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '@material/theme/theme-color' as mdc-theme-color;
3
3
  @use '@material/data-table/data-table' as mdc-data-table;
4
- @use '@material/data-table/data-table-theme' as mdc-data-table-theme;
4
+ @use '@material/data-table' as mdc-data-table-theme;
5
5
  @use '../mdc-helpers/mdc-helpers';
6
6
  @use '../../material/core/typography/typography';
7
7
  @use '../../material/core/theming/theming';
@@ -11,7 +11,7 @@ $mat-tab-animation-duration: 500ms !default;
11
11
  // Combines the various structural styles we need for the tab group and tab nav bar.
12
12
  @mixin structural-styles {
13
13
  @include mdc-helpers.disable-fallback-declarations {
14
- @include mdc-tab.without-ripple($query: mdc-helpers.$mat-base-styles-query);
14
+ @include mdc-tab.static-styles($query: mdc-helpers.$mat-base-styles-query);
15
15
  @include mdc-tab-indicator.core-styles($query: mdc-helpers.$mat-base-styles-query);
16
16
  }
17
17
 
@@ -51,6 +51,13 @@ $mat-tab-animation-duration: 500ms !default;
51
51
  pointer-events: none;
52
52
  }
53
53
 
54
+ // Required for `fitInkBarToContent` to work. This used to be included with MDC's `without-ripple`
55
+ // mixin, but that no longer appears to be the case with `static-styles`. Since the latter is
56
+ // ~10kb smaller, we include this one extra style ourselves.
57
+ .mdc-tab__content {
58
+ @include mdc-tab-indicator.surface;
59
+ }
60
+
54
61
  // We need to handle the hover and focus indication ourselves, because we don't use MDC's ripple.
55
62
  &:hover .mdc-tab__ripple::before {
56
63
  opacity: map.get(mdc-ripple.$dark-ink-opacities, hover);
@@ -4,7 +4,7 @@
4
4
  @use '@material/tab-indicator' as mdc-tab-indicator;
5
5
  @use '@material/tab-indicator/tab-indicator-theme' as mdc-tab-indicator-theme;
6
6
  @use '@material/tab' as mdc-tab;
7
- @use '@material/tab/tab-theme' as mdc-tab-theme;
7
+ @use '@material/tab/mixins' as mdc-tab-mixins;
8
8
  @use '@material/tab-bar' as mdc-tab-bar;
9
9
  @use '../mdc-helpers/mdc-helpers';
10
10
  @use '../../material/core/typography/typography';
@@ -18,39 +18,9 @@
18
18
 
19
19
  @include mdc-helpers.mat-using-mdc-theme($config) {
20
20
  .mat-mdc-tab, .mat-mdc-tab-link {
21
- $surface: mdc-theme-color.$surface;
22
- $on-surface: rgba(mdc-theme-color.$on-surface, 0.6);
23
-
24
- // TODO(crisbeto): these styles should actually be set through the `theme` mixin while the
25
- // `theme-styles` are included in the `tab` mixin inside `_tabs-common.scss`. Currently
26
- // they are not, because `theme-styles` outputs the token values directly, rather than
27
- // generating CSS variables.
28
- @include mdc-tab-theme.primary-navigation-tab-theme-styles(map.merge(
29
- mdc-tab-theme.$primary-light-theme,
30
- (
31
- container-color: $surface,
32
- inactive-focus-state-layer-color: $on-surface,
33
- inactive-hover-state-layer-color: $on-surface,
34
- inactive-pressed-state-layer-color: $on-surface,
35
- with-icon-inactive-focus-icon-color: $on-surface,
36
- with-icon-inactive-hover-icon-color: $on-surface,
37
- with-icon-inactive-icon-color: $on-surface,
38
- with-icon-inactive-pressed-icon-color: $on-surface,
39
- with-label-text-inactive-focus-label-text-color: $on-surface,
40
- with-label-text-inactive-hover-label-text-color: $on-surface,
41
- with-label-text-inactive-label-text-color: $on-surface,
42
- with-label-text-inactive-pressed-label-text-color: $on-surface,
43
-
44
- // TODO(crisbeto): MDC's styles are set up so that the icon size is set through a
45
- // `font-size` at the root of the tab while the text size of the tab is set on
46
- // `.mdc-tab__text-label` which overrides the one from the root. The problem is that
47
- // the `$light-theme` is looking for a `subhead2` level which doesn't exist in MDC's
48
- // code which in turn causes no text label styles to be emitted and for the icon size
49
- // to be applied to the entire tab. Since we don't support icons inside the tab
50
- // anyway, we can temporarily work around it by preventing MDC from emitting icon
51
- // styles. The correct label typography will be applied by our theme instead.
52
- with-icon-icon-size: null
53
- )));
21
+ &:not(.mat-mdc-tab-disabled) {
22
+ @include mdc-tab-mixins.text-label-color(rgba(mdc-theme-color.$on-surface, 0.6));
23
+ }
54
24
 
55
25
  // MDC seems to include a background color on tabs which only stands out on dark themes.
56
26
  // Disable for now for backwards compatibility. These styles are inside the theme in order
@@ -125,27 +95,10 @@
125
95
 
126
96
  @mixin _palette-styles($color) {
127
97
  .mat-mdc-tab, .mat-mdc-tab-link {
128
- // TODO(crisbeto): these styles should actually be set through the `theme` mixin while the
129
- // `theme-styles` are included in the `tab` mixin inside `_tabs-common.scss`. Currently
130
- // they are not, because `theme-styles` outputs the token values directly, rather than
131
- // generating CSS variables.
132
- @include mdc-tab-theme.primary-navigation-tab-theme-styles((
133
- active-focus-state-layer-color: $color,
134
- active-hover-state-layer-color: $color,
135
- active-pressed-state-layer-color: $color,
136
- with-icon-active-focus-icon-color: $color,
137
- with-icon-active-hover-icon-color: $color,
138
- with-icon-active-icon-color: $color,
139
- with-icon-active-pressed-icon-color: $color,
140
- with-label-text-active-focus-label-text-color: $color,
141
- with-label-text-active-hover-label-text-color: $color,
142
- with-label-text-active-label-text-color: $color,
143
- with-label-text-active-pressed-label-text-color: $color,
144
- ));
145
-
146
- @include mdc-tab-indicator-theme.theme-styles((
147
- active-indicator-color: $color
148
- ));
98
+ &:not(.mat-mdc-tab-disabled) {
99
+ @include mdc-tab-mixins.active-text-label-color($color);
100
+ @include mdc-tab-indicator-theme.theme-styles((active-indicator-color: $color));
101
+ }
149
102
  }
150
103
 
151
104
  .mdc-tab__ripple::before,
@@ -14,6 +14,6 @@ import * as i12 from "@angular/cdk/observers";
14
14
  import * as i13 from "@angular/cdk/a11y";
15
15
  export declare class MatTabsModule {
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<MatTabsModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatTabsModule, [typeof i1.MatTabContent, typeof i2.MatTabLabel, typeof i3.MatTab, typeof i4.MatTabGroup, typeof i5.MatTabNav, typeof i5.MatTabLink, typeof i6.MatTabBody, typeof i6.MatTabBodyPortal, typeof i7.MatTabLabelWrapper, typeof i8.MatTabHeader], [typeof i9.CommonModule, typeof i10.MatCommonModule, typeof i11.PortalModule, typeof i10.MatRippleModule, typeof i12.ObserversModule, typeof i13.A11yModule], [typeof i10.MatCommonModule, typeof i1.MatTabContent, typeof i2.MatTabLabel, typeof i3.MatTab, typeof i4.MatTabGroup, typeof i5.MatTabNav, typeof i5.MatTabLink]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatTabsModule, [typeof i1.MatTabContent, typeof i2.MatTabLabel, typeof i3.MatTab, typeof i4.MatTabGroup, typeof i5.MatTabNav, typeof i5.MatTabNavPanel, typeof i5.MatTabLink, typeof i6.MatTabBody, typeof i6.MatTabBodyPortal, typeof i7.MatTabLabelWrapper, typeof i8.MatTabHeader], [typeof i9.CommonModule, typeof i10.MatCommonModule, typeof i11.PortalModule, typeof i10.MatRippleModule, typeof i12.ObserversModule, typeof i13.A11yModule], [typeof i10.MatCommonModule, typeof i1.MatTabContent, typeof i2.MatTabLabel, typeof i3.MatTab, typeof i4.MatTabGroup, typeof i5.MatTabNav, typeof i5.MatTabNavPanel, typeof i5.MatTabLink]>;
18
18
  static ɵinj: i0.ɵɵInjectorDeclaration<MatTabsModule>;
19
19
  }
@@ -14,5 +14,5 @@ export { MatTab } from './tab';
14
14
  export { MatInkBar } from './ink-bar';
15
15
  export { MatTabHeader } from './tab-header';
16
16
  export { MatTabGroup } from './tab-group';
17
- export { MatTabNav, MatTabLink } from './tab-nav-bar/tab-nav-bar';
17
+ export { MatTabNav, MatTabNavPanel, MatTabLink } from './tab-nav-bar/tab-nav-bar';
18
18
  export { MatTabBodyPositionState, MatTabBodyOriginState, matTabsAnimations, _MatInkBarPositioner, _MAT_INK_BAR_POSITIONER, MatTabChangeEvent, MatTabHeaderPosition, MatTabsConfig, MAT_TABS_CONFIG, MAT_TAB_GROUP, MAT_TAB, ScrollDirection, } from '@angular/material/tabs';
@@ -50,3 +50,14 @@ export declare class MatTabLink extends _MatTabLinkBase implements MatInkBarItem
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<MatTabLink, [null, null, { optional: true; }, { attribute: "tabindex"; }, null, null, { optional: true; }]>;
51
51
  static ɵcmp: i0.ɵɵComponentDeclaration<MatTabLink, "[mat-tab-link], [matTabLink]", ["matTabLink"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, never, ["*"]>;
52
52
  }
53
+ /**
54
+ * Tab panel component associated with MatTabNav.
55
+ */
56
+ export declare class MatTabNavPanel {
57
+ /** Unique id for the tab panel. */
58
+ id: string;
59
+ /** Id of the active tab in the nav bar. */
60
+ _activeTabId?: string;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatTabNavPanel, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatTabNavPanel, "mat-tab-nav-panel", ["matTabNavPanel"], { "id": "id"; }, {}, never, ["*"]>;
63
+ }
@@ -24,3 +24,6 @@ export interface TabLinkHarnessFilters extends BaseHarnessFilters {
24
24
  /** A set of criteria that can be used to filter a list of `MatTabNavBarHarness` instances. */
25
25
  export interface TabNavBarHarnessFilters extends BaseHarnessFilters {
26
26
  }
27
+ /** A set of criteria that can be used to filter a list of `MatTabNavBarHarness` instances. */
28
+ export interface TabNavPanelHarnessFilters extends BaseHarnessFilters {
29
+ }
@@ -8,6 +8,7 @@
8
8
  import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9
9
  import { TabNavBarHarnessFilters, TabLinkHarnessFilters } from './tab-harness-filters';
10
10
  import { MatTabLinkHarness } from './tab-link-harness';
11
+ import { MatTabNavPanelHarness } from './tab-nav-panel-harness';
11
12
  /** Harness for interacting with an MDC-based mat-tab-nav-bar in tests. */
12
13
  export declare class MatTabNavBarHarness extends ComponentHarness {
13
14
  /** The selector for the host element of a `MatTabNavBar` instance. */
@@ -32,4 +33,6 @@ export declare class MatTabNavBarHarness extends ComponentHarness {
32
33
  * will be clicked.
33
34
  */
34
35
  clickLink(filter?: TabLinkHarnessFilters): Promise<void>;
36
+ /** Gets the panel associated with the nav bar. */
37
+ getPanel(): Promise<MatTabNavPanelHarness>;
35
38
  }
@@ -0,0 +1,23 @@
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 { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9
+ import { TabNavPanelHarnessFilters } from './tab-harness-filters';
10
+ /** Harness for interacting with a standard mat-tab-nav-panel in tests. */
11
+ export declare class MatTabNavPanelHarness extends ContentContainerComponentHarness {
12
+ /** The selector for the host element of a `MatTabNavPanel` instance. */
13
+ static hostSelector: string;
14
+ /**
15
+ * Gets a `HarnessPredicate` that can be used to search for a `MatTabNavPanel` that meets
16
+ * certain criteria.
17
+ * @param options Options for filtering which tab nav panel instances are considered a match.
18
+ * @return a `HarnessPredicate` configured with the given options.
19
+ */
20
+ static with(options?: TabNavPanelHarnessFilters): HarnessPredicate<MatTabNavPanelHarness>;
21
+ /** Gets the tab panel text content. */
22
+ getTextContent(): Promise<string>;
23
+ }