@angular/material 17.3.0-rc.0 → 18.0.0-next.0

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 (269) hide show
  1. package/chips/index.d.ts +1 -0
  2. package/core/index.d.ts +4 -0
  3. package/core/theming/_theming.scss +4 -3
  4. package/core/tokens/m2/mat/_fab-small.scss +3 -1
  5. package/core/tokens/m2/mat/_fab.scss +3 -1
  6. package/core/tokens/m2/mat/_filled-button.scss +3 -1
  7. package/core/tokens/m2/mat/_icon-button.scss +5 -1
  8. package/core/tokens/m2/mat/_outlined-button.scss +5 -1
  9. package/core/tokens/m2/mat/_protected-button.scss +3 -1
  10. package/core/tokens/m2/mat/_text-button.scss +5 -1
  11. package/datepicker/index.d.ts +8 -2
  12. package/esm2022/autocomplete/autocomplete-origin.mjs +4 -4
  13. package/esm2022/autocomplete/autocomplete-trigger.mjs +4 -4
  14. package/esm2022/autocomplete/autocomplete.mjs +4 -4
  15. package/esm2022/autocomplete/module.mjs +5 -5
  16. package/esm2022/badge/badge-module.mjs +5 -5
  17. package/esm2022/badge/badge.mjs +7 -7
  18. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +4 -4
  19. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +5 -5
  20. package/esm2022/bottom-sheet/bottom-sheet.mjs +4 -4
  21. package/esm2022/button/button-base.mjs +7 -7
  22. package/esm2022/button/button.mjs +7 -7
  23. package/esm2022/button/fab.mjs +13 -13
  24. package/esm2022/button/icon-button.mjs +7 -7
  25. package/esm2022/button/module.mjs +5 -5
  26. package/esm2022/button-toggle/button-toggle-module.mjs +5 -5
  27. package/esm2022/button-toggle/button-toggle.mjs +7 -7
  28. package/esm2022/card/card.mjs +43 -43
  29. package/esm2022/card/module.mjs +5 -5
  30. package/esm2022/checkbox/checkbox-required-validator.mjs +4 -4
  31. package/esm2022/checkbox/checkbox.mjs +4 -4
  32. package/esm2022/checkbox/module.mjs +9 -9
  33. package/esm2022/chips/chip-action.mjs +4 -4
  34. package/esm2022/chips/chip-edit-input.mjs +4 -4
  35. package/esm2022/chips/chip-grid.mjs +4 -4
  36. package/esm2022/chips/chip-icons.mjs +10 -10
  37. package/esm2022/chips/chip-input.mjs +4 -4
  38. package/esm2022/chips/chip-listbox.mjs +4 -4
  39. package/esm2022/chips/chip-option.mjs +4 -4
  40. package/esm2022/chips/chip-row.mjs +4 -4
  41. package/esm2022/chips/chip-set.mjs +4 -4
  42. package/esm2022/chips/chip.mjs +10 -10
  43. package/esm2022/chips/module.mjs +5 -5
  44. package/esm2022/core/common-behaviors/common-module.mjs +5 -5
  45. package/esm2022/core/datetime/index.mjs +9 -9
  46. package/esm2022/core/datetime/native-date-adapter.mjs +4 -4
  47. package/esm2022/core/error/error-options.mjs +7 -7
  48. package/esm2022/core/internal-form-field/internal-form-field.mjs +4 -4
  49. package/esm2022/core/line/line.mjs +8 -8
  50. package/esm2022/core/option/index.mjs +5 -5
  51. package/esm2022/core/option/optgroup.mjs +4 -4
  52. package/esm2022/core/option/option.mjs +4 -4
  53. package/esm2022/core/private/ripple-loader.mjs +6 -6
  54. package/esm2022/core/ripple/index.mjs +5 -5
  55. package/esm2022/core/ripple/ripple.mjs +4 -4
  56. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  57. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  58. package/esm2022/core/version.mjs +1 -1
  59. package/esm2022/datepicker/calendar-body.mjs +15 -17
  60. package/esm2022/datepicker/calendar.mjs +7 -7
  61. package/esm2022/datepicker/date-range-input-parts.mjs +10 -10
  62. package/esm2022/datepicker/date-range-input.mjs +4 -4
  63. package/esm2022/datepicker/date-range-picker.mjs +4 -4
  64. package/esm2022/datepicker/date-range-selection-strategy.mjs +4 -4
  65. package/esm2022/datepicker/date-selection-model.mjs +10 -10
  66. package/esm2022/datepicker/datepicker-actions.mjs +10 -10
  67. package/esm2022/datepicker/datepicker-base.mjs +18 -11
  68. package/esm2022/datepicker/datepicker-input-base.mjs +4 -4
  69. package/esm2022/datepicker/datepicker-input.mjs +4 -4
  70. package/esm2022/datepicker/datepicker-intl.mjs +4 -4
  71. package/esm2022/datepicker/datepicker-module.mjs +5 -5
  72. package/esm2022/datepicker/datepicker-toggle.mjs +7 -7
  73. package/esm2022/datepicker/datepicker.mjs +4 -4
  74. package/esm2022/datepicker/month-view.mjs +4 -4
  75. package/esm2022/datepicker/multi-year-view.mjs +4 -4
  76. package/esm2022/datepicker/year-view.mjs +4 -4
  77. package/esm2022/dialog/dialog-container.mjs +4 -4
  78. package/esm2022/dialog/dialog-content-directives.mjs +16 -16
  79. package/esm2022/dialog/dialog.mjs +4 -4
  80. package/esm2022/dialog/module.mjs +5 -5
  81. package/esm2022/divider/divider-module.mjs +5 -5
  82. package/esm2022/divider/divider.mjs +4 -4
  83. package/esm2022/expansion/accordion.mjs +4 -4
  84. package/esm2022/expansion/expansion-module.mjs +5 -5
  85. package/esm2022/expansion/expansion-panel-content.mjs +4 -4
  86. package/esm2022/expansion/expansion-panel-header.mjs +10 -10
  87. package/esm2022/expansion/expansion-panel.mjs +7 -7
  88. package/esm2022/form-field/directives/error.mjs +4 -4
  89. package/esm2022/form-field/directives/floating-label.mjs +4 -4
  90. package/esm2022/form-field/directives/hint.mjs +4 -4
  91. package/esm2022/form-field/directives/label.mjs +4 -4
  92. package/esm2022/form-field/directives/line-ripple.mjs +4 -4
  93. package/esm2022/form-field/directives/notched-outline.mjs +4 -4
  94. package/esm2022/form-field/directives/prefix.mjs +4 -4
  95. package/esm2022/form-field/directives/suffix.mjs +4 -4
  96. package/esm2022/form-field/form-field-control.mjs +4 -4
  97. package/esm2022/form-field/form-field.mjs +6 -6
  98. package/esm2022/form-field/module.mjs +5 -5
  99. package/esm2022/grid-list/grid-list-module.mjs +5 -5
  100. package/esm2022/grid-list/grid-list.mjs +4 -4
  101. package/esm2022/grid-list/grid-tile.mjs +16 -16
  102. package/esm2022/icon/icon-module.mjs +5 -5
  103. package/esm2022/icon/icon-registry.mjs +4 -4
  104. package/esm2022/icon/icon.mjs +4 -4
  105. package/esm2022/icon/testing/fake-icon-registry.mjs +8 -8
  106. package/esm2022/input/input.mjs +4 -4
  107. package/esm2022/input/module.mjs +5 -5
  108. package/esm2022/list/action-list.mjs +4 -4
  109. package/esm2022/list/list-base.mjs +7 -7
  110. package/esm2022/list/list-item-sections.mjs +19 -19
  111. package/esm2022/list/list-module.mjs +5 -5
  112. package/esm2022/list/list-option.mjs +4 -4
  113. package/esm2022/list/list.mjs +7 -7
  114. package/esm2022/list/nav-list.mjs +4 -4
  115. package/esm2022/list/selection-list.mjs +4 -4
  116. package/esm2022/list/subheader.mjs +4 -4
  117. package/esm2022/menu/menu-content.mjs +4 -4
  118. package/esm2022/menu/menu-item.mjs +4 -4
  119. package/esm2022/menu/menu-trigger.mjs +4 -4
  120. package/esm2022/menu/menu.mjs +4 -4
  121. package/esm2022/menu/module.mjs +5 -5
  122. package/esm2022/paginator/module.mjs +5 -5
  123. package/esm2022/paginator/paginator-intl.mjs +4 -4
  124. package/esm2022/paginator/paginator.mjs +4 -4
  125. package/esm2022/progress-bar/module.mjs +5 -5
  126. package/esm2022/progress-bar/progress-bar.mjs +4 -4
  127. package/esm2022/progress-spinner/module.mjs +5 -5
  128. package/esm2022/progress-spinner/progress-spinner.mjs +4 -4
  129. package/esm2022/radio/module.mjs +5 -5
  130. package/esm2022/radio/radio.mjs +7 -7
  131. package/esm2022/select/module.mjs +5 -5
  132. package/esm2022/select/select.mjs +7 -7
  133. package/esm2022/sidenav/drawer.mjs +10 -10
  134. package/esm2022/sidenav/sidenav-module.mjs +5 -5
  135. package/esm2022/sidenav/sidenav.mjs +10 -10
  136. package/esm2022/slide-toggle/module.mjs +9 -9
  137. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +4 -4
  138. package/esm2022/slide-toggle/slide-toggle.mjs +4 -4
  139. package/esm2022/slider/module.mjs +5 -5
  140. package/esm2022/slider/slider-input.mjs +9 -7
  141. package/esm2022/slider/slider-interface.mjs +1 -1
  142. package/esm2022/slider/slider-thumb.mjs +4 -4
  143. package/esm2022/slider/slider.mjs +4 -4
  144. package/esm2022/snack-bar/module.mjs +5 -5
  145. package/esm2022/snack-bar/simple-snack-bar.mjs +4 -4
  146. package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
  147. package/esm2022/snack-bar/snack-bar-content.mjs +10 -10
  148. package/esm2022/snack-bar/snack-bar.mjs +4 -4
  149. package/esm2022/sort/sort-header-intl.mjs +4 -4
  150. package/esm2022/sort/sort-header.mjs +4 -4
  151. package/esm2022/sort/sort-module.mjs +5 -5
  152. package/esm2022/sort/sort.mjs +4 -4
  153. package/esm2022/stepper/step-content.mjs +4 -4
  154. package/esm2022/stepper/step-header.mjs +4 -4
  155. package/esm2022/stepper/step-label.mjs +4 -4
  156. package/esm2022/stepper/stepper-button.mjs +7 -7
  157. package/esm2022/stepper/stepper-icon.mjs +4 -4
  158. package/esm2022/stepper/stepper-intl.mjs +4 -4
  159. package/esm2022/stepper/stepper-module.mjs +5 -5
  160. package/esm2022/stepper/stepper.mjs +7 -7
  161. package/esm2022/table/cell.mjs +22 -22
  162. package/esm2022/table/module.mjs +5 -5
  163. package/esm2022/table/row.mjs +22 -22
  164. package/esm2022/table/table.mjs +7 -7
  165. package/esm2022/table/text-column.mjs +4 -4
  166. package/esm2022/tabs/ink-bar.mjs +4 -4
  167. package/esm2022/tabs/module.mjs +5 -5
  168. package/esm2022/tabs/paginated-tab-header.mjs +10 -9
  169. package/esm2022/tabs/tab-body.mjs +7 -7
  170. package/esm2022/tabs/tab-content.mjs +4 -4
  171. package/esm2022/tabs/tab-group.mjs +4 -4
  172. package/esm2022/tabs/tab-header.mjs +4 -4
  173. package/esm2022/tabs/tab-label-wrapper.mjs +4 -4
  174. package/esm2022/tabs/tab-label.mjs +4 -4
  175. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +10 -10
  176. package/esm2022/tabs/tab.mjs +4 -4
  177. package/esm2022/toolbar/toolbar-module.mjs +5 -5
  178. package/esm2022/toolbar/toolbar.mjs +7 -7
  179. package/esm2022/tooltip/module.mjs +5 -5
  180. package/esm2022/tooltip/tooltip.mjs +13 -10
  181. package/esm2022/tree/node.mjs +10 -10
  182. package/esm2022/tree/outlet.mjs +4 -4
  183. package/esm2022/tree/padding.mjs +4 -4
  184. package/esm2022/tree/toggle.mjs +4 -4
  185. package/esm2022/tree/tree-module.mjs +5 -5
  186. package/esm2022/tree/tree.mjs +4 -4
  187. package/fesm2022/autocomplete.mjs +13 -13
  188. package/fesm2022/autocomplete.mjs.map +1 -1
  189. package/fesm2022/badge.mjs +10 -10
  190. package/fesm2022/badge.mjs.map +1 -1
  191. package/fesm2022/bottom-sheet.mjs +10 -10
  192. package/fesm2022/bottom-sheet.mjs.map +1 -1
  193. package/fesm2022/button-toggle.mjs +10 -10
  194. package/fesm2022/button-toggle.mjs.map +1 -1
  195. package/fesm2022/button.mjs +34 -34
  196. package/fesm2022/button.mjs.map +1 -1
  197. package/fesm2022/card.mjs +46 -46
  198. package/fesm2022/card.mjs.map +1 -1
  199. package/fesm2022/checkbox.mjs +14 -14
  200. package/fesm2022/checkbox.mjs.map +1 -1
  201. package/fesm2022/chips.mjs +47 -46
  202. package/fesm2022/chips.mjs.map +1 -1
  203. package/fesm2022/core.mjs +61 -61
  204. package/fesm2022/core.mjs.map +1 -1
  205. package/fesm2022/datepicker.mjs +104 -98
  206. package/fesm2022/datepicker.mjs.map +1 -1
  207. package/fesm2022/dialog.mjs +25 -25
  208. package/fesm2022/dialog.mjs.map +1 -1
  209. package/fesm2022/divider.mjs +7 -7
  210. package/fesm2022/divider.mjs.map +1 -1
  211. package/fesm2022/expansion.mjs +25 -25
  212. package/fesm2022/expansion.mjs.map +1 -1
  213. package/fesm2022/form-field.mjs +36 -36
  214. package/fesm2022/form-field.mjs.map +1 -1
  215. package/fesm2022/grid-list.mjs +22 -22
  216. package/fesm2022/grid-list.mjs.map +1 -1
  217. package/fesm2022/icon/testing.mjs +7 -7
  218. package/fesm2022/icon/testing.mjs.map +1 -1
  219. package/fesm2022/icon.mjs +10 -10
  220. package/fesm2022/icon.mjs.map +1 -1
  221. package/fesm2022/input.mjs +7 -7
  222. package/fesm2022/input.mjs.map +1 -1
  223. package/fesm2022/list.mjs +49 -49
  224. package/fesm2022/list.mjs.map +1 -1
  225. package/fesm2022/menu.mjs +16 -16
  226. package/fesm2022/menu.mjs.map +1 -1
  227. package/fesm2022/paginator.mjs +10 -10
  228. package/fesm2022/paginator.mjs.map +1 -1
  229. package/fesm2022/progress-bar.mjs +7 -7
  230. package/fesm2022/progress-bar.mjs.map +1 -1
  231. package/fesm2022/progress-spinner.mjs +7 -7
  232. package/fesm2022/progress-spinner.mjs.map +1 -1
  233. package/fesm2022/radio.mjs +10 -10
  234. package/fesm2022/radio.mjs.map +1 -1
  235. package/fesm2022/select.mjs +10 -10
  236. package/fesm2022/select.mjs.map +1 -1
  237. package/fesm2022/sidenav.mjs +22 -22
  238. package/fesm2022/sidenav.mjs.map +1 -1
  239. package/fesm2022/slide-toggle.mjs +14 -14
  240. package/fesm2022/slide-toggle.mjs.map +1 -1
  241. package/fesm2022/slider.mjs +18 -16
  242. package/fesm2022/slider.mjs.map +1 -1
  243. package/fesm2022/snack-bar.mjs +22 -22
  244. package/fesm2022/snack-bar.mjs.map +1 -1
  245. package/fesm2022/sort.mjs +13 -13
  246. package/fesm2022/sort.mjs.map +1 -1
  247. package/fesm2022/stepper.mjs +31 -31
  248. package/fesm2022/stepper.mjs.map +1 -1
  249. package/fesm2022/table.mjs +55 -55
  250. package/fesm2022/table.mjs.map +1 -1
  251. package/fesm2022/tabs.mjs +49 -48
  252. package/fesm2022/tabs.mjs.map +1 -1
  253. package/fesm2022/toolbar.mjs +10 -10
  254. package/fesm2022/toolbar.mjs.map +1 -1
  255. package/fesm2022/tooltip.mjs +16 -13
  256. package/fesm2022/tooltip.mjs.map +1 -1
  257. package/fesm2022/tree.mjs +25 -25
  258. package/fesm2022/tree.mjs.map +1 -1
  259. package/package.json +7 -7
  260. package/schematics/migration.json +4 -4
  261. package/schematics/ng-add/index.js +2 -2
  262. package/schematics/ng-add/index.mjs +2 -2
  263. package/schematics/ng-generate/mdc-migration/index_bundled.js +2099 -2090
  264. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +4 -4
  265. package/schematics/ng-update/index_bundled.js +5 -404
  266. package/schematics/ng-update/index_bundled.js.map +4 -4
  267. package/slider/index.d.ts +2 -0
  268. package/tabs/index.d.ts +1 -0
  269. package/tooltip/index.d.ts +1 -0
package/chips/index.d.ts CHANGED
@@ -226,6 +226,7 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
226
226
  * Used to improve initial load time of large applications.
227
227
  */
228
228
  _rippleLoader: MatRippleLoader;
229
+ private _injector;
229
230
  constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusMonitor: FocusMonitor, _document: any, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined, tabIndex?: string);
230
231
  ngOnInit(): void;
231
232
  ngAfterViewInit(): void;
package/core/index.d.ts CHANGED
@@ -1040,6 +1040,10 @@ export declare interface RippleGlobalOptions {
1040
1040
  * default, ripples will wait for the enter animation to complete and for mouse or touch release.
1041
1041
  */
1042
1042
  terminateOnPointerUp?: boolean;
1043
+ /**
1044
+ * A namespace to use for ripple loader to allow multiple instances to exist on the same page.
1045
+ */
1046
+ namespace?: string;
1043
1047
  }
1044
1048
 
1045
1049
  /**
@@ -432,9 +432,10 @@ $_internals: _mat-theming-internals-do-not-access;
432
432
  // Checks for duplicate styles in a `theme-version: 0` style theme.
433
433
  @mixin _check-duplicate-theme-styles-v0($theme-or-color-config, $id) {
434
434
  $theme: private-legacy-get-theme($theme-or-color-config);
435
- $color-config: get-color-config($theme);
436
- $density-config: get-density-config($theme);
437
- $typography-config: get-typography-config($theme);
435
+ $color-config: map.get($theme, $_internals, m2-config, color) or get-color-config($theme);
436
+ $density-config: map.get($theme, $_internals, m2-config, density) or get-density-config($theme);
437
+ $typography-config:
438
+ map.get($theme, $_internals, m2-config, typography) or get-typography-config($theme);
438
439
  // Lists of previous `color`, `density` and `typography` configurations.
439
440
  $previous-color: map.get($_emitted-color, $id) or ();
440
441
  $previous-typography: map.get($_emitted-typography, $id) or ();
@@ -1,4 +1,5 @@
1
1
  @use 'sass:map';
2
+ @use 'sass:meta';
2
3
  @use '@material/ripple/ripple-theme' as mdc-ripple-theme;
3
4
  @use '../../token-utils';
4
5
  @use '../../../theming/theming';
@@ -63,8 +64,9 @@ $prefix: (mat, fab-small);
63
64
  $foreground-color: null;
64
65
  $state-layer-color: null;
65
66
  $ripple-color: null;
67
+ $contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
66
68
 
67
- @if (token-utils.$private-is-internal-build) {
69
+ @if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
68
70
  $is-dark: inspection.get-theme-type($theme) == dark;
69
71
  $container-color: inspection.get-theme-color($theme, $palette-name);
70
72
  $contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
@@ -1,4 +1,5 @@
1
1
  @use 'sass:map';
2
+ @use 'sass:meta';
2
3
  @use '@material/ripple/ripple-theme' as mdc-ripple-theme;
3
4
  @use '../../token-utils';
4
5
  @use '../../../theming/theming';
@@ -63,8 +64,9 @@ $prefix: (mat, fab);
63
64
  $foreground-color: null;
64
65
  $state-layer-color: null;
65
66
  $ripple-color: null;
67
+ $contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
66
68
 
67
- @if (token-utils.$private-is-internal-build) {
69
+ @if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
68
70
  $is-dark: inspection.get-theme-type($theme) == dark;
69
71
  $container-color: inspection.get-theme-color($theme, $palette-name);
70
72
  $contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
@@ -1,4 +1,5 @@
1
1
  @use 'sass:map';
2
+ @use 'sass:meta';
2
3
  @use '@material/ripple/ripple-theme' as mdc-ripple-theme;
3
4
  @use '../../token-utils';
4
5
  @use '../../../theming/theming';
@@ -58,10 +59,11 @@ $prefix: (mat, filled-button);
58
59
  @function private-get-color-palette-color-tokens($theme, $palette-name) {
59
60
  $state-layer-color: null;
60
61
  $ripple-color: null;
62
+ $contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
61
63
 
62
64
  // Ideally we would derive all values directly from the theme, but it causes a lot of regressions
63
65
  // internally. For now we fall back to the old hardcoded behavior only for internal apps.
64
- @if (token-utils.$private-is-internal-build) {
66
+ @if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
65
67
  $is-dark: inspection.get-theme-type($theme) == dark;
66
68
  $container-color: inspection.get-theme-color($theme, $palette-name);
67
69
  $contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
@@ -47,10 +47,14 @@ $prefix: (mat, icon-button);
47
47
  // Generates the mapping for the properties that change based on the button palette color.
48
48
  @function private-get-color-palette-color-tokens($theme, $palette-name) {
49
49
  $color: inspection.get-theme-color($theme, $palette-name);
50
+ $ripple-opacity: 0.1;
50
51
 
51
52
  @return (
52
53
  state-layer-color: $color,
53
- ripple-color: if(meta.type-of($color) == color, rgba($color, 0.1), $color),
54
+ ripple-color: if(
55
+ meta.type-of($color) == color,
56
+ rgba($color, $ripple-opacity),
57
+ inspection.get-theme-color($theme, foreground, base, $ripple-opacity)),
54
58
  );
55
59
  }
56
60
 
@@ -57,10 +57,14 @@ $prefix: (mat, outlined-button);
57
57
  // Generates the mapping for the properties that change based on the button palette color.
58
58
  @function private-get-color-palette-color-tokens($theme, $palette-name) {
59
59
  $color: inspection.get-theme-color($theme, $palette-name);
60
+ $ripple-opacity: 0.1;
60
61
 
61
62
  @return (
62
63
  state-layer-color: $color,
63
- ripple-color: if(meta.type-of($color) == color, rgba($color, 0.1), $color),
64
+ ripple-color: if(
65
+ meta.type-of($color) == color,
66
+ rgba($color, $ripple-opacity),
67
+ inspection.get-theme-color($theme, foreground, base, $ripple-opacity)),
64
68
  );
65
69
  }
66
70
 
@@ -1,4 +1,5 @@
1
1
  @use 'sass:map';
2
+ @use 'sass:meta';
2
3
  @use '@material/ripple/ripple-theme' as mdc-ripple-theme;
3
4
  @use '../../token-utils';
4
5
  @use '../../../theming/theming';
@@ -58,10 +59,11 @@ $prefix: (mat, protected-button);
58
59
  @function private-get-color-palette-color-tokens($theme, $palette-name) {
59
60
  $state-layer-color: null;
60
61
  $ripple-color: null;
62
+ $contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
61
63
 
62
64
  // Ideally we would derive all values directly from the theme, but it causes a lot of regressions
63
65
  // internally. For now we fall back to the old hardcoded behavior only for internal apps.
64
- @if (token-utils.$private-is-internal-build) {
66
+ @if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
65
67
  $is-dark: inspection.get-theme-type($theme) == dark;
66
68
  $container-color: inspection.get-theme-color($theme, $palette-name);
67
69
  $contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
@@ -60,10 +60,14 @@ $prefix: (mat, text-button);
60
60
  // Generates the mapping for the properties that change based on the button palette color.
61
61
  @function private-get-color-palette-color-tokens($theme, $palette-name) {
62
62
  $color: inspection.get-theme-color($theme, $palette-name);
63
+ $ripple-opacity: 0.1;
63
64
 
64
65
  @return (
65
66
  state-layer-color: $color,
66
- ripple-color: if(meta.type-of($color) == color, rgba($color, 0.1), $color),
67
+ ripple-color: if(
68
+ meta.type-of($color) == color,
69
+ rgba($color, $ripple-opacity),
70
+ inspection.get-theme-color($theme, foreground, base, $ripple-opacity)),
67
71
  );
68
72
  }
69
73
 
@@ -455,6 +455,7 @@ export declare class MatCalendarBody<D = any> implements OnChanges, OnDestroy, A
455
455
  /** Width of an individual cell. */
456
456
  _cellWidth: string;
457
457
  private _didDragSinceMouseDown;
458
+ private _injector;
458
459
  constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone);
459
460
  /** Called when a cell is clicked. */
460
461
  _cellClicked(cell: MatCalendarCell, event: MouseEvent): void;
@@ -673,7 +674,6 @@ export declare class MatDatepickerApply {
673
674
  /** Base class for a datepicker. */
674
675
  declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D = ExtractDateTypeFromSelection<S>> implements MatDatepickerPanel<C, S, D>, OnDestroy, OnChanges {
675
676
  private _overlay;
676
- private _ngZone;
677
677
  private _viewContainerRef;
678
678
  private _dateAdapter;
679
679
  private _dir;
@@ -764,7 +764,13 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
764
764
  datepickerInput: C;
765
765
  /** Emits when the datepicker's state changes. */
766
766
  readonly stateChanges: Subject<void>;
767
- constructor(_overlay: Overlay, _ngZone: NgZone, _viewContainerRef: ViewContainerRef, scrollStrategy: any, _dateAdapter: DateAdapter<D>, _dir: Directionality, _model: MatDateSelectionModel<S, D>);
767
+ private _injector;
768
+ constructor(_overlay: Overlay,
769
+ /**
770
+ * @deprecated parameter is unused and will be removed
771
+ * @breaking-change 19.0.0
772
+ */
773
+ _unusedNgZone: NgZone, _viewContainerRef: ViewContainerRef, scrollStrategy: any, _dateAdapter: DateAdapter<D>, _dir: Directionality, _model: MatDateSelectionModel<S, D>);
768
774
  ngOnChanges(changes: SimpleChanges): void;
769
775
  ngOnDestroy(): void;
770
776
  /** Selects the given date */
@@ -17,10 +17,10 @@ export class MatAutocompleteOrigin {
17
17
  elementRef) {
18
18
  this.elementRef = elementRef;
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: MatAutocompleteOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.2.0", type: MatAutocompleteOrigin, isStandalone: true, selector: "[matAutocompleteOrigin]", exportAs: ["matAutocompleteOrigin"], ngImport: i0 }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.0+sha-37d1f71", ngImport: i0, type: MatAutocompleteOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
21
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.0+sha-37d1f71", type: MatAutocompleteOrigin, isStandalone: true, selector: "[matAutocompleteOrigin]", exportAs: ["matAutocompleteOrigin"], ngImport: i0 }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: MatAutocompleteOrigin, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.0+sha-37d1f71", ngImport: i0, type: MatAutocompleteOrigin, decorators: [{
24
24
  type: Directive,
25
25
  args: [{
26
26
  selector: '[matAutocompleteOrigin]',
@@ -28,4 +28,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
28
28
  standalone: true,
29
29
  }]
30
30
  }], ctorParameters: () => [{ type: i0.ElementRef }] });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLW9yaWdpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9hdXRvY29tcGxldGUvYXV0b2NvbXBsZXRlLW9yaWdpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsU0FBUyxFQUFFLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFFcEQ7OztHQUdHO0FBTUgsTUFBTSxPQUFPLHFCQUFxQjtJQUNoQztJQUNFLGtFQUFrRTtJQUMz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