@angular/material 17.0.0-next.0 → 17.0.0-next.2

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 (204) hide show
  1. package/_index.scss +3 -4
  2. package/autocomplete/_autocomplete-theme.scss +12 -18
  3. package/autocomplete/index.d.ts +15 -24
  4. package/badge/_badge-theme.scss +15 -27
  5. package/badge/index.d.ts +9 -17
  6. package/bottom-sheet/_bottom-sheet-theme.scss +13 -22
  7. package/button/_button-base.scss +3 -3
  8. package/button/_button-theme-private.scss +3 -2
  9. package/button/_button-theme.scss +18 -25
  10. package/button/_fab-theme.scss +31 -49
  11. package/button/_icon-button-theme.scss +19 -26
  12. package/button/index.d.ts +22 -31
  13. package/button-toggle/_button-toggle-theme.scss +17 -28
  14. package/button-toggle/index.d.ts +15 -18
  15. package/card/_card-theme.scss +27 -38
  16. package/checkbox/_checkbox-theme.scss +28 -45
  17. package/checkbox/index.d.ts +21 -27
  18. package/chips/_chips-theme.scss +18 -56
  19. package/core/_core-theme.scss +24 -39
  20. package/core/color/_all-color.scss +7 -15
  21. package/core/density/private/_all-density.scss +34 -39
  22. package/core/focus-indicators/_focus-indicators-theme.scss +6 -8
  23. package/core/focus-indicators/_private.scss +22 -26
  24. package/core/index.d.ts +7 -11
  25. package/core/mdc-helpers/_mdc-helpers.scss +19 -22
  26. package/core/option/_optgroup-theme.scss +13 -23
  27. package/core/option/_option-theme.scss +23 -37
  28. package/core/ripple/_ripple-theme.scss +6 -10
  29. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +17 -24
  30. package/core/style/_form-common.scss +7 -7
  31. package/core/style/_private.scss +5 -7
  32. package/core/style/_sass-utils.scss +7 -0
  33. package/core/testing/index.d.ts +2 -1
  34. package/core/theming/_all-theme.scss +41 -41
  35. package/core/theming/_inspection.scss +133 -59
  36. package/core/theming/_m2-inspection.scss +268 -0
  37. package/core/theming/_theming.scss +59 -20
  38. package/core/tokens/m2/mat/_autocomplete.scss +5 -8
  39. package/core/tokens/m2/mat/_badge.scss +12 -15
  40. package/core/tokens/m2/mat/_bottom-sheet.scss +11 -17
  41. package/core/tokens/m2/mat/_card.scss +15 -21
  42. package/core/tokens/m2/mat/_datepicker.scss +28 -38
  43. package/core/tokens/m2/mat/_divider.scss +5 -8
  44. package/core/tokens/m2/mat/_expansion.scss +24 -28
  45. package/core/tokens/m2/mat/_form-field.scss +21 -25
  46. package/core/tokens/m2/mat/_grid-list.scss +8 -8
  47. package/core/tokens/m2/mat/_icon.scss +3 -3
  48. package/core/tokens/m2/mat/_legacy-button-toggle.scss +15 -19
  49. package/core/tokens/m2/mat/_menu.scss +12 -17
  50. package/core/tokens/m2/mat/_optgroup.scss +12 -17
  51. package/core/tokens/m2/mat/_option.scss +16 -28
  52. package/core/tokens/m2/mat/_paginator.scss +16 -18
  53. package/core/tokens/m2/mat/_radio.scss +7 -10
  54. package/core/tokens/m2/mat/_select.scss +15 -29
  55. package/core/tokens/m2/mat/_sidenav.scss +12 -14
  56. package/core/tokens/m2/mat/_slide-toggle.scss +9 -17
  57. package/core/tokens/m2/mat/_slider.scss +5 -5
  58. package/core/tokens/m2/mat/_snack-bar.scss +7 -8
  59. package/core/tokens/m2/mat/_standard-button-toggle.scss +23 -22
  60. package/core/tokens/m2/mat/_stepper.scss +30 -33
  61. package/core/tokens/m2/mat/_tab-header-with-background.scss +6 -8
  62. package/core/tokens/m2/mat/_tab-header.scss +13 -18
  63. package/core/tokens/m2/mat/_table.scss +19 -23
  64. package/core/tokens/m2/mat/_toolbar.scss +12 -16
  65. package/core/tokens/m2/mdc/_checkbox.scss +21 -20
  66. package/core/tokens/m2/mdc/_chip.scss +38 -24
  67. package/core/tokens/m2/mdc/_circular-progress.scss +5 -6
  68. package/core/tokens/m2/mdc/_dialog.scss +16 -30
  69. package/core/tokens/m2/mdc/_elevated-card.scss +6 -9
  70. package/core/tokens/m2/mdc/_extended-fab.scss +8 -17
  71. package/core/tokens/m2/mdc/_fab.scss +6 -7
  72. package/core/tokens/m2/mdc/_filled-text-field.scss +16 -22
  73. package/core/tokens/m2/mdc/_icon-button.scss +3 -3
  74. package/core/tokens/m2/mdc/_linear-progress.scss +9 -10
  75. package/core/tokens/m2/mdc/_list.scss +44 -42
  76. package/core/tokens/m2/mdc/_outlined-card.scss +7 -10
  77. package/core/tokens/m2/mdc/_outlined-text-field.scss +14 -20
  78. package/core/tokens/m2/mdc/_plain-tooltip.scss +9 -22
  79. package/core/tokens/m2/mdc/_radio.scss +11 -11
  80. package/core/tokens/m2/mdc/_slider.scss +16 -23
  81. package/core/tokens/m2/mdc/_snack-bar.scss +10 -23
  82. package/core/tokens/m2/mdc/_switch.scss +16 -19
  83. package/core/tokens/m2/mdc/_tab-indicator.scss +5 -8
  84. package/core/tokens/m2/mdc/_tab.scss +5 -4
  85. package/core/typography/_all-typography.scss +44 -47
  86. package/core/typography/_definition.scss +258 -0
  87. package/core/typography/_property-getters.scss +63 -0
  88. package/core/typography/_typography-utils.scss +9 -69
  89. package/core/typography/_typography.scss +38 -494
  90. package/core/typography/_versioning.scss +91 -0
  91. package/datepicker/_datepicker-theme.scss +20 -34
  92. package/datepicker/index.d.ts +3 -3
  93. package/dialog/_dialog-theme.scss +22 -23
  94. package/dialog/_mdc-dialog-structure-overrides.scss +12 -10
  95. package/dialog/index.d.ts +2 -0
  96. package/divider/_divider-theme.scss +12 -18
  97. package/esm2022/autocomplete/autocomplete-trigger.mjs +5 -17
  98. package/esm2022/autocomplete/autocomplete.mjs +23 -50
  99. package/esm2022/badge/badge.mjs +11 -29
  100. package/esm2022/button/button-base.mjs +32 -27
  101. package/esm2022/button/button.mjs +6 -6
  102. package/esm2022/button/fab.mjs +23 -31
  103. package/esm2022/button/icon-button.mjs +6 -6
  104. package/esm2022/button/testing/button-harness.mjs +3 -3
  105. package/esm2022/button-toggle/button-toggle.mjs +25 -33
  106. package/esm2022/checkbox/checkbox.mjs +32 -39
  107. package/esm2022/core/option/optgroup.mjs +10 -11
  108. package/esm2022/core/option/option.mjs +6 -6
  109. package/esm2022/core/testing/option-harness.mjs +3 -3
  110. package/esm2022/core/version.mjs +1 -1
  111. package/esm2022/datepicker/calendar.mjs +1 -1
  112. package/esm2022/datepicker/datepicker-base.mjs +2 -2
  113. package/esm2022/datepicker/datepicker-toggle.mjs +1 -1
  114. package/esm2022/datepicker/month-view.mjs +2 -2
  115. package/esm2022/datepicker/multi-year-view.mjs +2 -2
  116. package/esm2022/datepicker/year-view.mjs +2 -2
  117. package/esm2022/dialog/dialog-container.mjs +16 -3
  118. package/esm2022/form-field/form-field.mjs +3 -3
  119. package/esm2022/menu/menu-item.mjs +15 -11
  120. package/esm2022/menu/menu.mjs +9 -22
  121. package/esm2022/paginator/paginator.mjs +1 -1
  122. package/esm2022/select/select.mjs +3 -3
  123. package/esm2022/slide-toggle/slide-toggle.mjs +33 -37
  124. package/esm2022/slider/slider-input.mjs +19 -9
  125. package/esm2022/slider/slider.mjs +2 -2
  126. package/esm2022/snack-bar/simple-snack-bar.mjs +1 -1
  127. package/esm2022/tabs/tab-group.mjs +3 -3
  128. package/expansion/_expansion-theme.scss +16 -24
  129. package/fesm2022/autocomplete.mjs +25 -63
  130. package/fesm2022/autocomplete.mjs.map +1 -1
  131. package/fesm2022/badge.mjs +11 -28
  132. package/fesm2022/badge.mjs.map +1 -1
  133. package/fesm2022/button/testing.mjs +2 -2
  134. package/fesm2022/button/testing.mjs.map +1 -1
  135. package/fesm2022/button-toggle.mjs +25 -32
  136. package/fesm2022/button-toggle.mjs.map +1 -1
  137. package/fesm2022/button.mjs +59 -61
  138. package/fesm2022/button.mjs.map +1 -1
  139. package/fesm2022/checkbox.mjs +31 -38
  140. package/fesm2022/checkbox.mjs.map +1 -1
  141. package/fesm2022/core/testing.mjs +2 -2
  142. package/fesm2022/core/testing.mjs.map +1 -1
  143. package/fesm2022/core.mjs +14 -13
  144. package/fesm2022/core.mjs.map +1 -1
  145. package/fesm2022/datepicker.mjs +6 -6
  146. package/fesm2022/datepicker.mjs.map +1 -1
  147. package/fesm2022/dialog.mjs +15 -2
  148. package/fesm2022/dialog.mjs.map +1 -1
  149. package/fesm2022/form-field.mjs +2 -2
  150. package/fesm2022/form-field.mjs.map +1 -1
  151. package/fesm2022/menu.mjs +23 -31
  152. package/fesm2022/menu.mjs.map +1 -1
  153. package/fesm2022/paginator.mjs +1 -1
  154. package/fesm2022/paginator.mjs.map +1 -1
  155. package/fesm2022/select.mjs +2 -2
  156. package/fesm2022/select.mjs.map +1 -1
  157. package/fesm2022/slide-toggle.mjs +33 -36
  158. package/fesm2022/slide-toggle.mjs.map +1 -1
  159. package/fesm2022/slider.mjs +20 -10
  160. package/fesm2022/slider.mjs.map +1 -1
  161. package/fesm2022/snack-bar.mjs +1 -1
  162. package/fesm2022/snack-bar.mjs.map +1 -1
  163. package/fesm2022/tabs.mjs +2 -2
  164. package/fesm2022/tabs.mjs.map +1 -1
  165. package/form-field/_form-field-density.scss +3 -4
  166. package/form-field/_form-field-focus-overlay.scss +1 -1
  167. package/form-field/_form-field-sizing.scss +1 -1
  168. package/form-field/_form-field-theme.scss +24 -34
  169. package/grid-list/_grid-list-theme.scss +12 -19
  170. package/icon/_icon-theme.scss +17 -25
  171. package/input/_input-theme.scss +11 -23
  172. package/list/_list-theme.scss +27 -42
  173. package/menu/_menu-theme.scss +13 -22
  174. package/menu/index.d.ts +12 -18
  175. package/package.json +2 -2
  176. package/paginator/_paginator-theme.scss +15 -24
  177. package/prebuilt-themes/deeppurple-amber.css +1 -1
  178. package/prebuilt-themes/indigo-pink.css +1 -1
  179. package/prebuilt-themes/pink-bluegrey.css +1 -1
  180. package/prebuilt-themes/purple-green.css +1 -1
  181. package/progress-bar/_progress-bar-theme.scss +17 -24
  182. package/progress-spinner/_progress-spinner-theme.scss +18 -24
  183. package/radio/_radio-theme.scss +23 -38
  184. package/schematics/ng-add/index.js +1 -1
  185. package/schematics/ng-add/index.mjs +1 -1
  186. package/schematics/ng-generate/mdc-migration/index_bundled.js +44 -44
  187. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +1 -1
  188. package/schematics/ng-update/index_bundled.js +25 -25
  189. package/select/_select-theme.scss +17 -31
  190. package/sidenav/_sidenav-theme.scss +12 -18
  191. package/slide-toggle/_slide-toggle-theme.scss +23 -40
  192. package/slide-toggle/index.d.ts +20 -23
  193. package/slider/_slider-theme.scss +25 -42
  194. package/snack-bar/_snack-bar-theme.scss +17 -26
  195. package/sort/_sort-theme.scss +13 -22
  196. package/stepper/_stepper-theme.scss +16 -34
  197. package/table/_table-theme.scss +14 -25
  198. package/tabs/_tabs-theme.scss +31 -45
  199. package/toolbar/_toolbar-theme.scss +22 -31
  200. package/tooltip/_tooltip-theme.scss +15 -23
  201. package/tree/_tree-theme.scss +20 -29
  202. package/button-toggle/_button-toggle-variables.scss +0 -16
  203. package/core/typography/_typography-deprecated.scss +0 -39
  204. package/paginator/_paginator-variables.scss +0 -15
@@ -1,4 +1,3 @@
1
- @use 'sass:map';
2
1
  @use '@material/fab/fab' as mdc-fab;
3
2
  @use '@material/fab/fab-theme' as mdc-fab-theme;
4
3
  @use '@material/fab/extended-fab-theme' as mdc-extended-fab-theme;
@@ -7,11 +6,12 @@
7
6
  @use '../core/mdc-helpers/mdc-helpers';
8
7
  @use '../core/style/sass-utils';
9
8
  @use '../core/theming/theming';
9
+ @use '../core/theming/inspection';
10
10
  @use '../core/tokens/m2/mdc/fab' as tokens-mdc-fab;
11
11
  @use '../core/tokens/m2/mdc/extended-fab' as tokens-mdc-extended-fab;
12
12
  @use '../core/typography/typography';
13
13
 
14
- @mixin base($config-or-theme) {
14
+ @mixin base($theme) {
15
15
  // Add default values for tokens not related to color, typography, or density.
16
16
  @include sass-utils.current-selector-or-root() {
17
17
  @include mdc-fab-theme.theme(tokens-mdc-fab.get-unthemable-tokens());
@@ -21,17 +21,11 @@
21
21
  }
22
22
  }
23
23
 
24
- @mixin _fab-variant($config, $foreground, $background) {
25
- $color-config: map.merge(
26
- $config,
27
- (
28
- primary: (
29
- default: $background,
30
- default-contrast: $foreground,
31
- ),
32
- )
24
+ @mixin _fab-variant($foreground, $background) {
25
+ $color-tokens: (
26
+ container-color: $background,
27
+ icon-color: $foreground
33
28
  );
34
- $color-tokens: tokens-mdc-fab.get-color-tokens($color-config);
35
29
  @include mdc-fab-theme.theme($color-tokens);
36
30
 
37
31
  --mat-mdc-fab-color: #{$foreground};
@@ -41,16 +35,13 @@
41
35
  @return if(mdc-helpers.variable-safe-contrast-tone($color, $is-dark) == 'dark', #000, #fff);
42
36
  }
43
37
 
44
- @mixin color($config-or-theme) {
45
- $config: theming.get-color-config($config-or-theme);
38
+ @mixin color($theme) {
39
+ $is-dark: inspection.get-theme-type($theme) == dark;
46
40
 
47
- $is-dark: map.get($config, is-dark);
48
- $background: map.get($config, background);
49
-
50
- $surface: theming.get-color-from-palette($background, card);
51
- $primary: theming.get-color-from-palette(map.get($config, primary));
52
- $accent: theming.get-color-from-palette(map.get($config, accent));
53
- $warn: theming.get-color-from-palette(map.get($config, warn));
41
+ $surface: inspection.get-theme-color($theme, background, card);
42
+ $primary: inspection.get-theme-color($theme, primary);
43
+ $accent: inspection.get-theme-color($theme, accent);
44
+ $warn: inspection.get-theme-color($theme, warn);
54
45
 
55
46
  $on-surface: white-or-black($surface, $is-dark);
56
47
  $on-primary: white-or-black($primary, $is-dark);
@@ -58,73 +49,64 @@
58
49
  $on-warn: white-or-black($warn, $is-dark);
59
50
 
60
51
  $disabled: rgba($on-surface, 0.12);
61
- $on-disabled: rgba($on-surface, if(map.get($config, is-dark), 0.5, 0.38));
52
+ $on-disabled: rgba($on-surface, if($is-dark, 0.5, 0.38));
62
53
 
63
54
  .mat-mdc-fab,
64
55
  .mat-mdc-mini-fab {
65
56
  // TODO(wagnermaciel): The ripple-theme-styles mixin depends heavily on
66
57
  // being wrapped by using-mdc-theme. This workaround needs to be
67
58
  // revisited w/ a more holistic solution.
68
- @include mdc-helpers.using-mdc-theme($config) {
69
- @include button-theme-private.ripple-theme-styles($config, true);
59
+ @include mdc-helpers.using-mdc-theme($theme) {
60
+ @include button-theme-private.ripple-theme-styles($theme, true);
70
61
  }
71
62
 
72
63
  @include button-theme-private.apply-disabled-style() {
73
- @include _fab-variant($config, $on-disabled, $disabled);
64
+ @include _fab-variant($on-disabled, $disabled);
74
65
  }
75
66
 
76
67
  &.mat-unthemed {
77
- @include _fab-variant($config, $on-surface, $surface);
68
+ @include _fab-variant($on-surface, $surface);
78
69
  }
79
70
 
80
71
  &.mat-primary {
81
- @include _fab-variant($config, $on-primary, $primary);
72
+ @include _fab-variant($on-primary, $primary);
82
73
  }
83
74
 
84
75
  &.mat-accent {
85
- @include _fab-variant($config, $on-accent, $accent);
76
+ @include _fab-variant($on-accent, $accent);
86
77
  }
87
78
 
88
79
  &.mat-warn {
89
- @include _fab-variant($config, $on-warn, $warn);
80
+ @include _fab-variant($on-warn, $warn);
90
81
  }
91
82
  }
92
83
  }
93
84
 
94
- @mixin typography($config-or-theme) {
95
- $config: typography.private-typography-to-2018-config(
96
- theming.get-typography-config($config-or-theme)
97
- );
98
-
99
- @include mdc-helpers.using-mdc-typography($config) {
85
+ @mixin typography($theme) {
86
+ @include mdc-helpers.using-mdc-typography($theme) {
100
87
  @include mdc-fab.without-ripple($query: mdc-helpers.$mdc-typography-styles-query);
101
88
  }
102
89
 
103
- $typography-tokens: tokens-mdc-extended-fab.get-typography-tokens($config);
90
+ $typography-tokens: tokens-mdc-extended-fab.get-typography-tokens($theme);
104
91
  .mat-mdc-extended-fab {
105
92
  @include mdc-extended-fab-theme.theme($typography-tokens);
106
93
  }
107
94
  }
108
95
 
109
- @mixin density($config-or-theme) {
96
+ @mixin density($theme) {
110
97
  }
111
98
 
112
- @mixin theme($theme-or-color-config) {
113
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
99
+ @mixin theme($theme) {
114
100
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-fab') {
115
- $color: theming.get-color-config($theme);
116
- $density: theming.get-density-config($theme);
117
- $typography: theming.get-typography-config($theme);
118
-
119
101
  @include base($theme);
120
- @if $color != null {
121
- @include color($color);
102
+ @if inspection.theme-has($theme, color) {
103
+ @include color($theme);
122
104
  }
123
- @if $density != null {
124
- @include density($density);
105
+ @if inspection.theme-has($theme, density) {
106
+ @include density($theme);
125
107
  }
126
- @if $typography != null {
127
- @include typography($typography);
108
+ @if inspection.theme-has($theme, typography) {
109
+ @include typography($theme);
128
110
  }
129
111
  }
130
112
  }
@@ -1,4 +1,3 @@
1
- @use 'sass:map';
2
1
  @use 'sass:math';
3
2
  @use '@material/density/functions' as mdc-density-functions;
4
3
  @use '@material/icon-button/icon-button-theme' as mdc-icon-button-theme;
@@ -7,6 +6,7 @@
7
6
 
8
7
  @use './button-theme-private';
9
8
  @use '../core/theming/theming';
9
+ @use '../core/theming/inspection';
10
10
 
11
11
  $_icon-size: 24px;
12
12
 
@@ -23,33 +23,31 @@ $_icon-size: 24px;
23
23
  @return if($is-dark, 'light', 'dark');
24
24
  }
25
25
 
26
- @mixin color($config-or-theme) {
27
- $config: theming.get-color-config($config-or-theme);
28
- $color-tokens: tokens-mdc-icon-button.get-color-tokens($config);
29
- $background-palette: map.get($config, background);
30
- $surface: theming.get-color-from-palette($background-palette, card);
31
- $is-dark: map.get($config, is-dark);
26
+ @mixin color($theme) {
27
+ $color-tokens: tokens-mdc-icon-button.get-color-tokens($theme);
28
+ $surface: inspection.get-theme-color($theme, background, card);
29
+ $is-dark: inspection.get-theme-type($theme) == dark;
32
30
  $on-surface: if(_variable-safe-contrast-tone($surface, $is-dark) == 'dark', #000, #fff);
33
31
 
34
32
  .mat-mdc-icon-button {
35
- @include button-theme-private.ripple-theme-styles($config, false);
33
+ @include button-theme-private.ripple-theme-styles($theme, false);
36
34
  @include mdc-icon-button-theme.theme($color-tokens);
37
35
  @include _ripple-color($on-surface);
38
36
 
39
37
  &.mat-primary {
40
- $color: theming.get-color-from-palette(map.get($config, primary));
38
+ $color: inspection.get-theme-color($theme, primary);
41
39
  @include mdc-icon-button-theme.theme((icon-color: $color));
42
40
  @include _ripple-color($color);
43
41
  }
44
42
 
45
43
  &.mat-accent {
46
- $color: theming.get-color-from-palette(map.get($config, accent));
44
+ $color: inspection.get-theme-color($theme, accent);
47
45
  @include mdc-icon-button-theme.theme((icon-color: $color));
48
46
  @include _ripple-color($color);
49
47
  }
50
48
 
51
49
  &.mat-warn {
52
- $color: theming.get-color-from-palette(map.get($config, warn));
50
+ $color: inspection.get-theme-color($theme, warn);
53
51
  @include mdc-icon-button-theme.theme((icon-color: $color));
54
52
  @include _ripple-color($color);
55
53
  }
@@ -64,11 +62,11 @@ $_icon-size: 24px;
64
62
  }
65
63
  }
66
64
 
67
- @mixin typography($config-or-theme) {
65
+ @mixin typography($theme) {
68
66
  }
69
67
 
70
- @mixin density($config-or-theme) {
71
- $density-scale: theming.get-density-config($config-or-theme);
68
+ @mixin density($theme) {
69
+ $density-scale: inspection.get-theme-density($theme);
72
70
  // Manually apply the expected density theming, and include the padding
73
71
  // as it was applied before
74
72
  $calculated-size: mdc-density-functions.prop-value(
@@ -104,21 +102,16 @@ $_icon-size: 24px;
104
102
  }
105
103
  }
106
104
 
107
- @mixin theme($theme-or-color-config) {
108
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
105
+ @mixin theme($theme) {
109
106
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-icon-button') {
110
- $color: theming.get-color-config($theme);
111
- $density: theming.get-density-config($theme);
112
- $typography: theming.get-typography-config($theme);
113
-
114
- @if $color != null {
115
- @include color($color);
107
+ @if inspection.theme-has($theme, color) {
108
+ @include color($theme);
116
109
  }
117
- @if $density != null {
118
- @include density($density);
110
+ @if inspection.theme-has($theme, density) {
111
+ @include density($theme);
119
112
  }
120
- @if $typography != null {
121
- @include typography($typography);
113
+ @if inspection.theme-has($theme, typography) {
114
+ @include typography($theme);
122
115
  }
123
116
  }
124
117
  }
package/button/index.d.ts CHANGED
@@ -1,10 +1,4 @@
1
- import { _AbstractConstructor } from '@angular/material/core';
2
1
  import { AfterViewInit } from '@angular/core';
3
- import { BooleanInput } from '@angular/cdk/coercion';
4
- import { CanColor } from '@angular/material/core';
5
- import { CanDisable } from '@angular/material/core';
6
- import { CanDisableRipple } from '@angular/material/core';
7
- import { _Constructor } from '@angular/material/core';
8
2
  import { ElementRef } from '@angular/core';
9
3
  import { FocusOrigin } from '@angular/cdk/a11y';
10
4
  import * as i0 from '@angular/core';
@@ -63,7 +57,7 @@ export declare function MAT_FAB_DEFAULT_OPTIONS_FACTORY(): MatFabDefaultOptions;
63
57
  export declare class MatAnchor extends MatAnchorBase {
64
58
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
65
59
  static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchor, [null, null, null, { optional: true; }]>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", ["matButton", "matAnchor"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
67
61
  }
68
62
 
69
63
  /**
@@ -76,7 +70,8 @@ declare class MatAnchorBase extends MatButtonBase implements OnInit, OnDestroy {
76
70
  ngOnDestroy(): void;
77
71
  _haltDisabledEvents: (event: Event) => void;
78
72
  static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchorBase, never>;
79
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatAnchorBase, never, never, {}, {}, never, never, false, never>;
73
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatAnchorBase, never, never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, never, false, never>;
74
+ static ngAcceptInputType_tabIndex: unknown;
80
75
  }
81
76
 
82
77
  /**
@@ -91,11 +86,12 @@ declare class MatAnchorBase extends MatButtonBase implements OnInit, OnDestroy {
91
86
  export declare class MatButton extends MatButtonBase {
92
87
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
93
88
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButton, [null, null, null, { optional: true; }]>;
94
- static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", ["matButton"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
89
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
95
90
  }
96
91
 
97
92
  /** Base class for all buttons. */
98
- declare class MatButtonBase extends _MatButtonMixin implements CanDisable, CanColor, CanDisableRipple, AfterViewInit, OnDestroy {
93
+ declare class MatButtonBase implements AfterViewInit, OnDestroy {
94
+ _elementRef: ElementRef;
99
95
  _platform: Platform;
100
96
  _ngZone: NgZone;
101
97
  _animationMode?: string | undefined;
@@ -114,6 +110,8 @@ declare class MatButtonBase extends _MatButtonMixin implements CanDisable, CanCo
114
110
  */
115
111
  get ripple(): MatRipple;
116
112
  set ripple(v: MatRipple);
113
+ /** Theme color palette of the button */
114
+ color?: string | null;
117
115
  /** Whether the ripple effect is disabled or not. */
118
116
  get disableRipple(): boolean;
119
117
  set disableRipple(value: any);
@@ -121,7 +119,7 @@ declare class MatButtonBase extends _MatButtonMixin implements CanDisable, CanCo
121
119
  get disabled(): boolean;
122
120
  set disabled(value: any);
123
121
  private _disabled;
124
- constructor(elementRef: ElementRef, _platform: Platform, _ngZone: NgZone, _animationMode?: string | undefined);
122
+ constructor(_elementRef: ElementRef, _platform: Platform, _ngZone: NgZone, _animationMode?: string | undefined);
125
123
  ngAfterViewInit(): void;
126
124
  ngOnDestroy(): void;
127
125
  /** Focuses the button. */
@@ -130,16 +128,11 @@ declare class MatButtonBase extends _MatButtonMixin implements CanDisable, CanCo
130
128
  private _hasHostAttributes;
131
129
  private _updateRippleDisabled;
132
130
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonBase, never>;
133
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonBase, never, never, {}, {}, never, never, false, never>;
131
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
132
+ static ngAcceptInputType_disableRipple: unknown;
133
+ static ngAcceptInputType_disabled: unknown;
134
134
  }
135
135
 
136
- /** @docs-private */
137
- declare const _MatButtonMixin: _Constructor<CanColor> & _AbstractConstructor<CanColor> & _Constructor<CanDisable> & _AbstractConstructor<CanDisable> & _Constructor<CanDisableRipple> & _AbstractConstructor<CanDisableRipple> & {
138
- new (_elementRef: ElementRef): {
139
- _elementRef: ElementRef;
140
- };
141
- };
142
-
143
136
  export declare class MatButtonModule {
144
137
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonModule, never>;
145
138
  static ɵmod: i0.ɵɵNgModuleDeclaration<MatButtonModule, [typeof i1.MatAnchor, typeof i1.MatButton, typeof i2.MatIconAnchor, typeof i3.MatMiniFabAnchor, typeof i3.MatMiniFabButton, typeof i2.MatIconButton, typeof i3.MatFabAnchor, typeof i3.MatFabButton], [typeof i4.MatCommonModule, typeof i4.MatRippleModule], [typeof i1.MatAnchor, typeof i1.MatButton, typeof i2.MatIconAnchor, typeof i2.MatIconButton, typeof i3.MatMiniFabAnchor, typeof i3.MatMiniFabButton, typeof i3.MatFabAnchor, typeof i3.MatFabButton, typeof i4.MatCommonModule]>;
@@ -156,12 +149,11 @@ export declare class MatButtonModule {
156
149
  export declare class MatFabAnchor extends MatAnchor {
157
150
  private _options?;
158
151
  _isFab: boolean;
159
- get extended(): boolean;
160
- set extended(value: BooleanInput);
161
- private _extended;
152
+ extended: boolean;
162
153
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
163
154
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFabAnchor, [null, null, null, { optional: true; }, { optional: true; }]>;
164
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFabAnchor, "a[mat-fab]", ["matButton", "matAnchor"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
155
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFabAnchor, "a[mat-fab]", ["matButton", "matAnchor"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
156
+ static ngAcceptInputType_extended: unknown;
165
157
  }
166
158
 
167
159
  /**
@@ -174,12 +166,11 @@ export declare class MatFabAnchor extends MatAnchor {
174
166
  export declare class MatFabButton extends MatButtonBase {
175
167
  private _options?;
176
168
  _isFab: boolean;
177
- get extended(): boolean;
178
- set extended(value: BooleanInput);
179
- private _extended;
169
+ extended: boolean;
180
170
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
181
171
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFabButton, [null, null, null, { optional: true; }, { optional: true; }]>;
182
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab]", ["matButton"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
172
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab]", ["matButton"], { "extended": { "alias": "extended"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
173
+ static ngAcceptInputType_extended: unknown;
183
174
  }
184
175
 
185
176
  /** Default FAB options that can be overridden. */
@@ -195,7 +186,7 @@ export declare interface MatFabDefaultOptions {
195
186
  export declare class MatIconAnchor extends MatAnchorBase {
196
187
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
197
188
  static ɵfac: i0.ɵɵFactoryDeclaration<MatIconAnchor, [null, null, null, { optional: true; }]>;
198
- static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
189
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
199
190
  }
200
191
 
201
192
  /**
@@ -206,7 +197,7 @@ export declare class MatIconAnchor extends MatAnchorBase {
206
197
  export declare class MatIconButton extends MatButtonBase {
207
198
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
208
199
  static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, [null, null, null, { optional: true; }]>;
209
- static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
200
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], {}, {}, never, ["*"], false, never>;
210
201
  }
211
202
 
212
203
  /**
@@ -219,7 +210,7 @@ export declare class MatMiniFabAnchor extends MatAnchor {
219
210
  _isFab: boolean;
220
211
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
221
212
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabAnchor, [null, null, null, { optional: true; }, { optional: true; }]>;
222
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabAnchor, "a[mat-mini-fab]", ["matButton", "matAnchor"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
213
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabAnchor, "a[mat-mini-fab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
223
214
  }
224
215
 
225
216
  /**
@@ -232,7 +223,7 @@ export declare class MatMiniFabButton extends MatButtonBase {
232
223
  _isFab: boolean;
233
224
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
234
225
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabButton, [null, null, null, { optional: true; }, { optional: true; }]>;
235
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab]", ["matButton"], { "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
226
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab]", ["matButton"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false, never>;
236
227
  }
237
228
 
238
229
  export { }
@@ -1,59 +1,48 @@
1
1
  @use '../core/theming/theming';
2
+ @use '../core/theming/inspection';
2
3
  @use '../core/typography/typography';
3
4
  @use '../core/tokens/m2/mat/legacy-button-toggle' as tokens-mat-legacy-button-toggle;
4
5
  @use '../core/tokens/m2/mat/standard-button-toggle' as tokens-mat-standard-button-toggle;
5
6
  @use '../core/tokens/token-utils';
6
7
  @use '../core/style/sass-utils';
7
8
 
8
- @mixin color($config-or-theme) {
9
- $config: theming.get-color-config($config-or-theme);
10
-
9
+ @mixin color($theme) {
11
10
  @include sass-utils.current-selector-or-root() {
12
11
  @include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
13
- tokens-mat-legacy-button-toggle.get-color-tokens($config));
12
+ tokens-mat-legacy-button-toggle.get-color-tokens($theme));
14
13
  @include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
15
- tokens-mat-standard-button-toggle.get-color-tokens($config));
14
+ tokens-mat-standard-button-toggle.get-color-tokens($theme));
16
15
  }
17
16
  }
18
17
 
19
- @mixin typography($config-or-theme) {
20
- $config: typography.private-typography-to-2014-config(
21
- theming.get-typography-config($config-or-theme));
22
-
18
+ @mixin typography($theme) {
23
19
  @include sass-utils.current-selector-or-root() {
24
20
  @include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
25
- tokens-mat-legacy-button-toggle.get-typography-tokens($config));
21
+ tokens-mat-legacy-button-toggle.get-typography-tokens($theme));
26
22
  @include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
27
- tokens-mat-standard-button-toggle.get-typography-tokens($config));
23
+ tokens-mat-standard-button-toggle.get-typography-tokens($theme));
28
24
  }
29
25
  }
30
26
 
31
- @mixin density($config-or-theme) {
32
- $density-scale: theming.get-density-config($config-or-theme);
33
-
27
+ @mixin density($theme) {
34
28
  @include sass-utils.current-selector-or-root() {
35
29
  @include token-utils.create-token-values(tokens-mat-legacy-button-toggle.$prefix,
36
- tokens-mat-legacy-button-toggle.get-density-tokens($density-scale));
30
+ tokens-mat-legacy-button-toggle.get-density-tokens($theme));
37
31
  @include token-utils.create-token-values(tokens-mat-standard-button-toggle.$prefix,
38
- tokens-mat-standard-button-toggle.get-density-tokens($density-scale));
32
+ tokens-mat-standard-button-toggle.get-density-tokens($theme));
39
33
  }
40
34
  }
41
35
 
42
- @mixin theme($theme-or-color-config) {
43
- $theme: theming.private-legacy-get-theme($theme-or-color-config);
36
+ @mixin theme($theme) {
44
37
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-button-toggle') {
45
- $color: theming.get-color-config($theme);
46
- $density: theming.get-density-config($theme);
47
- $typography: theming.get-typography-config($theme);
48
-
49
- @if $color != null {
50
- @include color($color);
38
+ @if inspection.theme-has($theme, color) {
39
+ @include color($theme);
51
40
  }
52
- @if $density != null {
53
- @include density($density);
41
+ @if inspection.theme-has($theme, density) {
42
+ @include density($theme);
54
43
  }
55
- @if $typography != null {
56
- @include typography($typography);
44
+ @if inspection.theme-has($theme, typography) {
45
+ @include typography($theme);
57
46
  }
58
47
  }
59
48
  }
@@ -1,10 +1,6 @@
1
- import { _AbstractConstructor } from '@angular/material/core';
2
1
  import { AfterContentInit } from '@angular/core';
3
2
  import { AfterViewInit } from '@angular/core';
4
- import { BooleanInput } from '@angular/cdk/coercion';
5
- import { CanDisableRipple } from '@angular/material/core';
6
3
  import { ChangeDetectorRef } from '@angular/core';
7
- import { _Constructor } from '@angular/material/core';
8
4
  import { ControlValueAccessor } from '@angular/forms';
9
5
  import { ElementRef } from '@angular/core';
10
6
  import { EventEmitter } from '@angular/core';
@@ -51,7 +47,7 @@ export declare const MAT_BUTTON_TOGGLE_GROUP: InjectionToken<MatButtonToggleGrou
51
47
  export declare const MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR: any;
52
48
 
53
49
  /** Single button inside of a toggle group. */
54
- export declare class MatButtonToggle extends _MatButtonToggleBase implements OnInit, AfterViewInit, CanDisableRipple, OnDestroy {
50
+ export declare class MatButtonToggle implements OnInit, AfterViewInit, OnDestroy {
55
51
  private _changeDetectorRef;
56
52
  private _elementRef;
57
53
  private _focusMonitor;
@@ -79,16 +75,18 @@ export declare class MatButtonToggle extends _MatButtonToggleBase implements OnI
79
75
  value: any;
80
76
  /** Tabindex for the toggle. */
81
77
  tabIndex: number | null;
78
+ /** Whether ripples are disabled on the button toggle. */
79
+ disableRipple: boolean;
82
80
  /** The appearance style of the button. */
83
81
  get appearance(): MatButtonToggleAppearance;
84
82
  set appearance(value: MatButtonToggleAppearance);
85
83
  private _appearance;
86
84
  /** Whether the button is checked. */
87
85
  get checked(): boolean;
88
- set checked(value: BooleanInput);
86
+ set checked(value: boolean);
89
87
  /** Whether the button is disabled. */
90
88
  get disabled(): boolean;
91
- set disabled(value: BooleanInput);
89
+ set disabled(value: boolean);
92
90
  private _disabled;
93
91
  /** Event emitted when the group value changes. */
94
92
  readonly change: EventEmitter<MatButtonToggleChange>;
@@ -111,17 +109,15 @@ export declare class MatButtonToggle extends _MatButtonToggleBase implements OnI
111
109
  /** Whether the toggle is in single selection mode. */
112
110
  private _isSingleSelector;
113
111
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonToggle, [{ optional: true; }, null, null, null, { attribute: "tabindex"; }, { optional: true; }]>;
114
- static ɵcmp: i0.ɵɵComponentDeclaration<MatButtonToggle, "mat-button-toggle", ["matButtonToggle"], { "disableRipple": { "alias": "disableRipple"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, ["*"], false, never>;
112
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatButtonToggle, "mat-button-toggle", ["matButtonToggle"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, ["*"], false, never>;
113
+ static ngAcceptInputType_disableRipple: unknown;
114
+ static ngAcceptInputType_checked: unknown;
115
+ static ngAcceptInputType_disabled: unknown;
115
116
  }
116
117
 
117
118
  /** Possible appearance styles for the button toggle. */
118
119
  export declare type MatButtonToggleAppearance = 'legacy' | 'standard';
119
120
 
120
- /** @docs-private */
121
- declare const _MatButtonToggleBase: _Constructor<CanDisableRipple> & _AbstractConstructor<CanDisableRipple> & {
122
- new (): {};
123
- };
124
-
125
121
  /** Change event object emitted by button toggle. */
126
122
  export declare class MatButtonToggleChange {
127
123
  /** The button toggle that emits the event. */
@@ -150,7 +146,6 @@ export declare interface MatButtonToggleDefaultOptions {
150
146
  /** Exclusive selection button toggle group that behaves like a radio-button group. */
151
147
  export declare class MatButtonToggleGroup implements ControlValueAccessor, OnInit, AfterContentInit {
152
148
  private _changeDetector;
153
- private _vertical;
154
149
  private _multiple;
155
150
  private _disabled;
156
151
  private _selectionModel;
@@ -177,8 +172,7 @@ export declare class MatButtonToggleGroup implements ControlValueAccessor, OnIni
177
172
  set name(value: string);
178
173
  private _name;
179
174
  /** Whether the toggle group is vertical. */
180
- get vertical(): boolean;
181
- set vertical(value: BooleanInput);
175
+ vertical: boolean;
182
176
  /** Value of the toggle group. */
183
177
  get value(): any;
184
178
  set value(newValue: any);
@@ -192,10 +186,10 @@ export declare class MatButtonToggleGroup implements ControlValueAccessor, OnIni
192
186
  get selected(): MatButtonToggle | MatButtonToggle[];
193
187
  /** Whether multiple button toggles can be selected. */
194
188
  get multiple(): boolean;
195
- set multiple(value: BooleanInput);
189
+ set multiple(value: boolean);
196
190
  /** Whether multiple button toggle group is disabled. */
197
191
  get disabled(): boolean;
198
- set disabled(value: BooleanInput);
192
+ set disabled(value: boolean);
199
193
  /** Event emitted when the group's value changes. */
200
194
  readonly change: EventEmitter<MatButtonToggleChange>;
201
195
  constructor(_changeDetector: ChangeDetectorRef, defaultOptions?: MatButtonToggleDefaultOptions);
@@ -235,6 +229,9 @@ export declare class MatButtonToggleGroup implements ControlValueAccessor, OnIni
235
229
  private _markButtonsForCheck;
236
230
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonToggleGroup, [null, { optional: true; }]>;
237
231
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonToggleGroup, "mat-button-toggle-group", ["matButtonToggleGroup"], { "appearance": { "alias": "appearance"; "required": false; }; "name": { "alias": "name"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; "change": "change"; }, ["_buttonToggles"], never, false, never>;
232
+ static ngAcceptInputType_vertical: unknown;
233
+ static ngAcceptInputType_multiple: unknown;
234
+ static ngAcceptInputType_disabled: unknown;
238
235
  }
239
236
 
240
237
  export declare class MatButtonToggleModule {