@angular/material 19.0.0-next.8 → 19.0.0-rc.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 (229) hide show
  1. package/_index.scss +1 -2
  2. package/autocomplete/_autocomplete-theme.scss +37 -24
  3. package/autocomplete/index.d.ts +5 -6
  4. package/badge/_badge-theme.scss +38 -24
  5. package/bottom-sheet/_bottom-sheet-theme.scss +32 -20
  6. package/button/_button-theme.scss +229 -105
  7. package/button/_fab-theme.scss +95 -44
  8. package/button/_icon-button-theme.scss +38 -25
  9. package/button/index.d.ts +3 -3
  10. package/button-toggle/_button-toggle-theme.scss +62 -37
  11. package/card/_card-theme.scss +79 -38
  12. package/card/index.d.ts +2 -3
  13. package/checkbox/_checkbox-theme.scss +16 -10
  14. package/chips/_chips-theme.scss +64 -30
  15. package/core/_core-theme.scss +55 -37
  16. package/core/_core.scss +3 -6
  17. package/core/option/_optgroup-theme.scss +29 -18
  18. package/core/option/_option-theme.scss +34 -21
  19. package/core/ripple/_ripple-theme.scss +33 -21
  20. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +49 -23
  21. package/core/theming/_config-validation.scss +4 -4
  22. package/core/theming/_definition.scss +12 -2
  23. package/core/tokens/_m3-system.scss +86 -42
  24. package/core/tokens/_token-utils.scss +91 -34
  25. package/core/tokens/m2/mat/_badge.scss +12 -3
  26. package/core/tokens/m2/mdc/_radio.scss +1 -1
  27. package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +1 -1
  28. package/core/tokens/m3/mat/_badge.scss +6 -3
  29. package/datepicker/_datepicker-theme.scss +53 -32
  30. package/datepicker/index.d.ts +33 -34
  31. package/dialog/_dialog-theme.scss +46 -23
  32. package/divider/_divider-theme.scss +28 -17
  33. package/expansion/_expansion-theme.scss +36 -24
  34. package/fesm2022/autocomplete/testing.mjs +2 -5
  35. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  36. package/fesm2022/autocomplete.mjs +225 -148
  37. package/fesm2022/autocomplete.mjs.map +1 -1
  38. package/fesm2022/badge/testing.mjs +2 -5
  39. package/fesm2022/badge/testing.mjs.map +1 -1
  40. package/fesm2022/badge.mjs +45 -35
  41. package/fesm2022/badge.mjs.map +1 -1
  42. package/fesm2022/bottom-sheet/testing.mjs +1 -1
  43. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  44. package/fesm2022/bottom-sheet.mjs +80 -58
  45. package/fesm2022/bottom-sheet.mjs.map +1 -1
  46. package/fesm2022/button/testing.mjs +2 -2
  47. package/fesm2022/button/testing.mjs.map +1 -1
  48. package/fesm2022/button-toggle/testing.mjs +4 -7
  49. package/fesm2022/button-toggle/testing.mjs.map +1 -1
  50. package/fesm2022/button-toggle.mjs +82 -45
  51. package/fesm2022/button-toggle.mjs.map +1 -1
  52. package/fesm2022/button.mjs +106 -79
  53. package/fesm2022/button.mjs.map +1 -1
  54. package/fesm2022/card/testing.mjs +3 -6
  55. package/fesm2022/card/testing.mjs.map +1 -1
  56. package/fesm2022/card.mjs +56 -69
  57. package/fesm2022/card.mjs.map +1 -1
  58. package/fesm2022/checkbox/testing.mjs +4 -7
  59. package/fesm2022/checkbox/testing.mjs.map +1 -1
  60. package/fesm2022/checkbox.mjs +104 -62
  61. package/fesm2022/checkbox.mjs.map +1 -1
  62. package/fesm2022/chips/testing.mjs +11 -14
  63. package/fesm2022/chips/testing.mjs.map +1 -1
  64. package/fesm2022/chips.mjs +322 -276
  65. package/fesm2022/chips.mjs.map +1 -1
  66. package/fesm2022/core/testing.mjs +5 -11
  67. package/fesm2022/core/testing.mjs.map +1 -1
  68. package/fesm2022/core.mjs +242 -187
  69. package/fesm2022/core.mjs.map +1 -1
  70. package/fesm2022/datepicker/testing.mjs +13 -22
  71. package/fesm2022/datepicker/testing.mjs.map +1 -1
  72. package/fesm2022/datepicker.mjs +827 -582
  73. package/fesm2022/datepicker.mjs.map +1 -1
  74. package/fesm2022/dialog/testing.mjs +15 -10
  75. package/fesm2022/dialog/testing.mjs.map +1 -1
  76. package/fesm2022/dialog.mjs +221 -156
  77. package/fesm2022/dialog.mjs.map +1 -1
  78. package/fesm2022/divider/testing.mjs +1 -1
  79. package/fesm2022/divider/testing.mjs.map +1 -1
  80. package/fesm2022/divider.mjs +10 -12
  81. package/fesm2022/divider.mjs.map +1 -1
  82. package/fesm2022/expansion/testing.mjs +7 -10
  83. package/fesm2022/expansion/testing.mjs.map +1 -1
  84. package/fesm2022/expansion.mjs +86 -80
  85. package/fesm2022/expansion.mjs.map +1 -1
  86. package/fesm2022/form-field/testing.mjs +12 -15
  87. package/fesm2022/form-field/testing.mjs.map +1 -1
  88. package/fesm2022/form-field.mjs +179 -132
  89. package/fesm2022/form-field.mjs.map +1 -1
  90. package/fesm2022/grid-list/testing.mjs +11 -17
  91. package/fesm2022/grid-list/testing.mjs.map +1 -1
  92. package/fesm2022/grid-list.mjs +75 -56
  93. package/fesm2022/grid-list.mjs.map +1 -1
  94. package/fesm2022/icon/testing.mjs +8 -8
  95. package/fesm2022/icon/testing.mjs.map +1 -1
  96. package/fesm2022/icon.mjs +66 -46
  97. package/fesm2022/icon.mjs.map +1 -1
  98. package/fesm2022/input/testing.mjs +3 -3
  99. package/fesm2022/input/testing.mjs.map +1 -1
  100. package/fesm2022/input.mjs +103 -72
  101. package/fesm2022/input.mjs.map +1 -1
  102. package/fesm2022/list/testing.mjs +21 -38
  103. package/fesm2022/list/testing.mjs.map +1 -1
  104. package/fesm2022/list.mjs +197 -195
  105. package/fesm2022/list.mjs.map +1 -1
  106. package/fesm2022/menu/testing.mjs +3 -6
  107. package/fesm2022/menu/testing.mjs.map +1 -1
  108. package/fesm2022/menu.mjs +178 -127
  109. package/fesm2022/menu.mjs.map +1 -1
  110. package/fesm2022/paginator/testing.mjs +10 -13
  111. package/fesm2022/paginator/testing.mjs.map +1 -1
  112. package/fesm2022/paginator.mjs +83 -58
  113. package/fesm2022/paginator.mjs.map +1 -1
  114. package/fesm2022/progress-bar/testing.mjs +1 -1
  115. package/fesm2022/progress-bar/testing.mjs.map +1 -1
  116. package/fesm2022/progress-bar.mjs +36 -35
  117. package/fesm2022/progress-bar.mjs.map +1 -1
  118. package/fesm2022/progress-spinner/testing.mjs +1 -1
  119. package/fesm2022/progress-spinner/testing.mjs.map +1 -1
  120. package/fesm2022/progress-spinner.mjs +28 -14
  121. package/fesm2022/progress-spinner.mjs.map +1 -1
  122. package/fesm2022/radio/testing.mjs +6 -12
  123. package/fesm2022/radio/testing.mjs.map +1 -1
  124. package/fesm2022/radio.mjs +123 -87
  125. package/fesm2022/radio.mjs.map +1 -1
  126. package/fesm2022/select/testing.mjs +6 -9
  127. package/fesm2022/select/testing.mjs.map +1 -1
  128. package/fesm2022/select.mjs +219 -182
  129. package/fesm2022/select.mjs.map +1 -1
  130. package/fesm2022/sidenav/testing.mjs +6 -6
  131. package/fesm2022/sidenav/testing.mjs.map +1 -1
  132. package/fesm2022/sidenav.mjs +136 -125
  133. package/fesm2022/sidenav.mjs.map +1 -1
  134. package/fesm2022/slide-toggle/testing.mjs +3 -6
  135. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  136. package/fesm2022/slide-toggle.mjs +77 -47
  137. package/fesm2022/slide-toggle.mjs.map +1 -1
  138. package/fesm2022/slider/testing.mjs +2 -2
  139. package/fesm2022/slider/testing.mjs.map +1 -1
  140. package/fesm2022/slider.mjs +262 -194
  141. package/fesm2022/slider.mjs.map +1 -1
  142. package/fesm2022/snack-bar/testing.mjs +4 -7
  143. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  144. package/fesm2022/snack-bar.mjs +143 -111
  145. package/fesm2022/snack-bar.mjs.map +1 -1
  146. package/fesm2022/sort/testing.mjs +3 -6
  147. package/fesm2022/sort/testing.mjs.map +1 -1
  148. package/fesm2022/sort.mjs +94 -74
  149. package/fesm2022/sort.mjs.map +1 -1
  150. package/fesm2022/stepper/testing.mjs +4 -4
  151. package/fesm2022/stepper/testing.mjs.map +1 -1
  152. package/fesm2022/stepper.mjs +146 -113
  153. package/fesm2022/stepper.mjs.map +1 -1
  154. package/fesm2022/table/testing.mjs +13 -25
  155. package/fesm2022/table/testing.mjs.map +1 -1
  156. package/fesm2022/table.mjs +183 -194
  157. package/fesm2022/table.mjs.map +1 -1
  158. package/fesm2022/tabs/testing.mjs +5 -5
  159. package/fesm2022/tabs/testing.mjs.map +1 -1
  160. package/fesm2022/tabs.mjs +329 -251
  161. package/fesm2022/tabs.mjs.map +1 -1
  162. package/fesm2022/timepicker/testing.mjs +7 -16
  163. package/fesm2022/timepicker/testing.mjs.map +1 -1
  164. package/fesm2022/timepicker.mjs +160 -155
  165. package/fesm2022/timepicker.mjs.map +1 -1
  166. package/fesm2022/toolbar/testing.mjs +2 -5
  167. package/fesm2022/toolbar/testing.mjs.map +1 -1
  168. package/fesm2022/toolbar.mjs +26 -17
  169. package/fesm2022/toolbar.mjs.map +1 -1
  170. package/fesm2022/tooltip/testing.mjs +6 -9
  171. package/fesm2022/tooltip/testing.mjs.map +1 -1
  172. package/fesm2022/tooltip.mjs +97 -74
  173. package/fesm2022/tooltip.mjs.map +1 -1
  174. package/fesm2022/tree/testing.mjs +3 -6
  175. package/fesm2022/tree/testing.mjs.map +1 -1
  176. package/fesm2022/tree.mjs +57 -61
  177. package/fesm2022/tree.mjs.map +1 -1
  178. package/form-field/_form-field-theme.scss +114 -61
  179. package/form-field/index.d.ts +9 -10
  180. package/grid-list/_grid-list-theme.scss +25 -15
  181. package/icon/_icon-theme.scss +22 -14
  182. package/input/_input-theme.scss +18 -11
  183. package/list/_list-theme.scss +89 -47
  184. package/list/index.d.ts +20 -21
  185. package/menu/_menu-theme.scss +33 -21
  186. package/menu/index.d.ts +8 -9
  187. package/package.json +2 -2
  188. package/paginator/_paginator-theme.scss +39 -23
  189. package/prebuilt-themes/azure-blue.css +1 -1
  190. package/prebuilt-themes/cyan-orange.css +1 -1
  191. package/prebuilt-themes/deeppurple-amber.css +1 -1
  192. package/prebuilt-themes/indigo-pink.css +1 -1
  193. package/prebuilt-themes/magenta-violet.css +1 -1
  194. package/prebuilt-themes/pink-bluegrey.css +1 -1
  195. package/prebuilt-themes/purple-green.css +1 -1
  196. package/prebuilt-themes/rose-red.css +1 -1
  197. package/progress-bar/_progress-bar-theme.scss +20 -16
  198. package/progress-spinner/_progress-spinner-theme.scss +41 -25
  199. package/progress-spinner/index.d.ts +3 -4
  200. package/radio/_radio-theme.scss +60 -32
  201. package/radio/index.d.ts +2 -3
  202. package/schematics/collection.json +3 -3
  203. package/schematics/ng-add/index.js +1 -1
  204. package/schematics/ng-add/index.mjs +1 -1
  205. package/schematics/ng-add/theming/create-custom-theme.js +1 -6
  206. package/schematics/ng-add/theming/create-custom-theme.mjs +1 -6
  207. package/schematics/ng-generate/{m3-theme → theme-color}/index_bundled.js +480 -288
  208. package/schematics/ng-generate/theme-color/index_bundled.js.map +7 -0
  209. package/schematics/ng-generate/{m3-theme → theme-color}/schema.json +7 -13
  210. package/schematics/ng-update/index_bundled.js +6 -1
  211. package/schematics/ng-update/index_bundled.js.map +1 -1
  212. package/select/_select-theme.scss +38 -25
  213. package/select/index.d.ts +6 -7
  214. package/sidenav/_sidenav-theme.scss +28 -17
  215. package/slide-toggle/_slide-toggle-theme.scss +52 -28
  216. package/slider/_slider-theme.scss +62 -38
  217. package/snack-bar/_snack-bar-theme.scss +29 -17
  218. package/sort/_sort-theme.scss +33 -21
  219. package/stepper/_stepper-theme.scss +40 -27
  220. package/stepper/index.d.ts +14 -15
  221. package/table/_table-theme.scss +36 -23
  222. package/tabs/_tabs-theme.scss +97 -50
  223. package/tabs/index.d.ts +2 -2
  224. package/timepicker/_timepicker-theme.scss +37 -24
  225. package/toolbar/_toolbar-theme.scss +35 -22
  226. package/tooltip/_tooltip-theme.scss +18 -15
  227. package/tooltip/index.d.ts +5 -6
  228. package/tree/_tree-theme.scss +33 -21
  229. package/schematics/ng-generate/m3-theme/index_bundled.js.map +0 -7
@@ -21,11 +21,15 @@ $calendar-weekday-table-font-size: 11px !default;
21
21
  $palette-color: inspection.get-theme-color($theme, $palette-name);
22
22
  $range-color: tokens-mat-datepicker.private-get-range-background-color($palette-color);
23
23
  $range-tokens: tokens-mat-datepicker.get-range-color-tokens($range-color);
24
- $calendar-tokens:
25
- tokens-mat-datepicker.private-get-calendar-color-palette-color-tokens($theme, $palette-name);
24
+ $calendar-tokens: tokens-mat-datepicker.private-get-calendar-color-palette-color-tokens(
25
+ $theme,
26
+ $palette-name
27
+ );
26
28
 
27
- @include token-utils.create-token-values(tokens-mat-datepicker.$prefix,
28
- map.merge($calendar-tokens, $range-tokens));
29
+ @include token-utils.create-token-values(
30
+ tokens-mat-datepicker.$prefix,
31
+ map.merge($calendar-tokens, $range-tokens)
32
+ );
29
33
  }
30
34
 
31
35
  /// Outputs base theme styles (styles not dependent on the color, typography, or density settings)
@@ -34,11 +38,12 @@ $calendar-weekday-table-font-size: 11px !default;
34
38
  @mixin base($theme) {
35
39
  @if inspection.get-theme-version($theme) == 1 {
36
40
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
37
- }
38
- @else {
41
+ } @else {
39
42
  @include sass-utils.current-selector-or-root() {
40
- @include token-utils.create-token-values(tokens-mat-datepicker.$prefix,
41
- tokens-mat-datepicker.get-unthemable-tokens());
43
+ @include token-utils.create-token-values(
44
+ tokens-mat-datepicker.$prefix,
45
+ tokens-mat-datepicker.get-unthemable-tokens()
46
+ );
42
47
  }
43
48
  }
44
49
  }
@@ -51,11 +56,12 @@ $calendar-weekday-table-font-size: 11px !default;
51
56
  @mixin color($theme, $options...) {
52
57
  @if inspection.get-theme-version($theme) == 1 {
53
58
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
54
- }
55
- @else {
59
+ } @else {
56
60
  @include sass-utils.current-selector-or-root() {
57
- @include token-utils.create-token-values(tokens-mat-datepicker.$prefix,
58
- tokens-mat-datepicker.get-color-tokens($theme));
61
+ @include token-utils.create-token-values(
62
+ tokens-mat-datepicker.$prefix,
63
+ tokens-mat-datepicker.get-color-tokens($theme)
64
+ );
59
65
  }
60
66
 
61
67
  .mat-datepicker-content {
@@ -70,14 +76,18 @@ $calendar-weekday-table-font-size: 11px !default;
70
76
 
71
77
  .mat-datepicker-toggle-active {
72
78
  &.mat-accent {
73
- $accent-tokens:
74
- tokens-mat-datepicker.private-get-toggle-color-palette-color-tokens($theme, accent);
79
+ $accent-tokens: tokens-mat-datepicker.private-get-toggle-color-palette-color-tokens(
80
+ $theme,
81
+ accent
82
+ );
75
83
  @include token-utils.create-token-values(tokens-mat-datepicker.$prefix, $accent-tokens);
76
84
  }
77
85
 
78
86
  &.mat-warn {
79
- $warn-tokens:
80
- tokens-mat-datepicker.private-get-toggle-color-palette-color-tokens($theme, warn);
87
+ $warn-tokens: tokens-mat-datepicker.private-get-toggle-color-palette-color-tokens(
88
+ $theme,
89
+ warn
90
+ );
81
91
  @include token-utils.create-token-values(tokens-mat-datepicker.$prefix, $warn-tokens);
82
92
  }
83
93
  }
@@ -89,11 +99,12 @@ $calendar-weekday-table-font-size: 11px !default;
89
99
  @mixin typography($theme) {
90
100
  @if inspection.get-theme-version($theme) == 1 {
91
101
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
92
- }
93
- @else {
102
+ } @else {
94
103
  @include sass-utils.current-selector-or-root() {
95
- @include token-utils.create-token-values(tokens-mat-datepicker.$prefix,
96
- tokens-mat-datepicker.get-typography-tokens($theme));
104
+ @include token-utils.create-token-values(
105
+ tokens-mat-datepicker.$prefix,
106
+ tokens-mat-datepicker.get-typography-tokens($theme)
107
+ );
97
108
  }
98
109
  }
99
110
  }
@@ -103,7 +114,8 @@ $calendar-weekday-table-font-size: 11px !default;
103
114
  $comparison-color: tokens-mat-datepicker.$private-default-comparison-color,
104
115
  $overlap-color: tokens-mat-datepicker.$private-default-overlap-color,
105
116
  $overlap-selected-color:
106
- tokens-mat-datepicker.private-get-default-overlap-selected-color($overlap-color)) {
117
+ tokens-mat-datepicker.private-get-default-overlap-selected-color($overlap-color)
118
+ ) {
107
119
  $tokens: tokens-mat-datepicker.get-range-color-tokens(
108
120
  $range-color: $range-color,
109
121
  $comparison-color: $comparison-color,
@@ -121,8 +133,7 @@ $calendar-weekday-table-font-size: 11px !default;
121
133
  @mixin density($theme) {
122
134
  @if inspection.get-theme-version($theme) == 1 {
123
135
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
124
- }
125
- @else {
136
+ } @else {
126
137
  // TODO(crisbeto): move this into the structural styles
127
138
  // once the icon button density is switched to tokens.
128
139
 
@@ -134,13 +145,20 @@ $calendar-weekday-table-font-size: 11px !default;
134
145
  }
135
146
  }
136
147
 
148
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
149
+ @function _define-overrides() {
150
+ @return (
151
+ (
152
+ namespace: tokens-mat-datepicker.$prefix,
153
+ tokens: tokens-mat-datepicker.get-token-slots(),
154
+ ),
155
+ );
156
+ }
157
+
137
158
  /// Outputs the CSS variable values for the given tokens.
138
159
  /// @param {Map} $tokens The token values to emit.
139
160
  @mixin overrides($tokens: ()) {
140
- @include token-utils.batch-create-token-values(
141
- $tokens,
142
- (prefix: tokens-mat-datepicker.$prefix, tokens: tokens-mat-datepicker.get-token-slots()),
143
- );
161
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
144
162
  }
145
163
 
146
164
  /// Outputs all (base, color, typography, and density) theme styles for the mat-datepicker.
@@ -152,8 +170,7 @@ $calendar-weekday-table-font-size: 11px !default;
152
170
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-datepicker') {
153
171
  @if inspection.get-theme-version($theme) == 1 {
154
172
  @include _theme-from-tokens(inspection.get-theme-tokens($theme), $options...);
155
- }
156
- @else {
173
+ } @else {
157
174
  @include base($theme);
158
175
  @if inspection.theme-has($theme, color) {
159
176
  @include color($theme);
@@ -170,8 +187,12 @@ $calendar-weekday-table-font-size: 11px !default;
170
187
 
171
188
  @mixin _theme-from-tokens($tokens, $options...) {
172
189
  @include validation.selector-defined(
173
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
174
- $mat-datepicker-tokens:
175
- token-utils.get-tokens-for($tokens, tokens-mat-datepicker.$prefix, $options...);
190
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
191
+ );
192
+ $mat-datepicker-tokens: token-utils.get-tokens-for(
193
+ $tokens,
194
+ tokens-mat-datepicker.$prefix,
195
+ $options...
196
+ );
176
197
  @include token-utils.create-token-values(tokens-mat-datepicker.$prefix, $mat-datepicker-tokens);
177
198
  }
@@ -17,13 +17,12 @@ import { FactoryProvider } from '@angular/core';
17
17
  import { FocusOrigin } from '@angular/cdk/a11y';
18
18
  import { FormGroupDirective } from '@angular/forms';
19
19
  import * as i0 from '@angular/core';
20
- import * as i1 from '@angular/common';
21
- import * as i2 from '@angular/material/button';
22
- import * as i20 from '@angular/cdk/scrolling';
23
- import * as i3 from '@angular/cdk/overlay';
24
- import * as i4 from '@angular/cdk/a11y';
25
- import * as i5 from '@angular/cdk/portal';
26
- import * as i6 from '@angular/material/core';
20
+ import * as i1 from '@angular/material/button';
21
+ import * as i19 from '@angular/cdk/scrolling';
22
+ import * as i2 from '@angular/cdk/overlay';
23
+ import * as i3 from '@angular/cdk/a11y';
24
+ import * as i4 from '@angular/cdk/portal';
25
+ import * as i5 from '@angular/material/core';
27
26
  import { InjectionToken } from '@angular/core';
28
27
  import { MatButton } from '@angular/material/button';
29
28
  import { MatFormFieldControl } from '@angular/material/form-field';
@@ -116,20 +115,6 @@ export declare type ExtractDateTypeFromSelection<T> = T extends DateRange<infer
116
115
  declare function getActiveOffset<D>(dateAdapter: DateAdapter<D>, activeDate: D, minDate: D | null, maxDate: D | null): number;
117
116
 
118
117
  declare namespace i10 {
119
- export {
120
- MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,
121
- MAT_DATEPICKER_SCROLL_STRATEGY,
122
- DatepickerDropdownPositionX,
123
- DatepickerDropdownPositionY,
124
- MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,
125
- MatDatepickerContent,
126
- MatDatepickerControl,
127
- MatDatepickerPanel,
128
- MatDatepickerBase
129
- }
130
- }
131
-
132
- declare namespace i11 {
133
118
  export {
134
119
  MAT_DATEPICKER_VALUE_ACCESSOR,
135
120
  MAT_DATEPICKER_VALIDATORS,
@@ -137,26 +122,26 @@ declare namespace i11 {
137
122
  }
138
123
  }
139
124
 
140
- declare namespace i12 {
125
+ declare namespace i11 {
141
126
  export {
142
127
  MatDatepickerToggleIcon,
143
128
  MatDatepickerToggle
144
129
  }
145
130
  }
146
131
 
147
- declare namespace i13 {
132
+ declare namespace i12 {
148
133
  export {
149
134
  MatMonthView
150
135
  }
151
136
  }
152
137
 
153
- declare namespace i14 {
138
+ declare namespace i13 {
154
139
  export {
155
140
  MatYearView
156
141
  }
157
142
  }
158
143
 
159
- declare namespace i15 {
144
+ declare namespace i14 {
160
145
  export {
161
146
  isSameMultiYearView,
162
147
  getActiveOffset,
@@ -166,13 +151,13 @@ declare namespace i15 {
166
151
  }
167
152
  }
168
153
 
169
- declare namespace i16 {
154
+ declare namespace i15 {
170
155
  export {
171
156
  MatDateRangeInput
172
157
  }
173
158
  }
174
159
 
175
- declare namespace i17 {
160
+ declare namespace i16 {
176
161
  export {
177
162
  MatDateRangeInputParent,
178
163
  MAT_DATE_RANGE_INPUT_PARENT,
@@ -181,14 +166,14 @@ declare namespace i17 {
181
166
  }
182
167
  }
183
168
 
184
- declare namespace i18 {
169
+ declare namespace i17 {
185
170
  export {
186
171
  MatDateRangePickerInput,
187
172
  MatDateRangePicker
188
173
  }
189
174
  }
190
175
 
191
- declare namespace i19 {
176
+ declare namespace i18 {
192
177
  export {
193
178
  MatDatepickerApply,
194
179
  MatDatepickerCancel,
@@ -196,7 +181,7 @@ declare namespace i19 {
196
181
  }
197
182
  }
198
183
 
199
- declare namespace i7 {
184
+ declare namespace i6 {
200
185
  export {
201
186
  MatCalendarView,
202
187
  MatCalendarHeader,
@@ -204,7 +189,7 @@ declare namespace i7 {
204
189
  }
205
190
  }
206
191
 
207
- declare namespace i8 {
192
+ declare namespace i7 {
208
193
  export {
209
194
  MatCalendarCellCssClasses,
210
195
  MatCalendarCellClassFunction,
@@ -214,12 +199,26 @@ declare namespace i8 {
214
199
  }
215
200
  }
216
201
 
217
- declare namespace i9 {
202
+ declare namespace i8 {
218
203
  export {
219
204
  MatDatepicker
220
205
  }
221
206
  }
222
207
 
208
+ declare namespace i9 {
209
+ export {
210
+ MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,
211
+ MAT_DATEPICKER_SCROLL_STRATEGY,
212
+ DatepickerDropdownPositionX,
213
+ DatepickerDropdownPositionY,
214
+ MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,
215
+ MatDatepickerContent,
216
+ MatDatepickerControl,
217
+ MatDatepickerPanel,
218
+ MatDatepickerBase
219
+ }
220
+ }
221
+
223
222
  declare function isSameMultiYearView<D>(dateAdapter: DateAdapter<D>, date1: D, date2: D, minDate: D | null, maxDate: D | null): boolean;
224
223
 
225
224
  /**
@@ -825,7 +824,7 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
825
824
  /** Gets an observable that will emit when the overlay is supposed to be closed. */
826
825
  private _getCloseStream;
827
826
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDatepickerBase<any, any, any>, never>;
828
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatDatepickerBase<any, any, any>, never, never, { "calendarHeaderComponent": { "alias": "calendarHeaderComponent"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "color": { "alias": "color"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; "dateClass": { "alias": "dateClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, { "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "viewChanged": "viewChanged"; "openedStream": "opened"; "closedStream": "closed"; }, never, never, false, never>;
827
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatDatepickerBase<any, any, any>, never, never, { "calendarHeaderComponent": { "alias": "calendarHeaderComponent"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "color": { "alias": "color"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; "dateClass": { "alias": "dateClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, { "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "viewChanged": "viewChanged"; "openedStream": "opened"; "closedStream": "closed"; }, never, never, true, never>;
829
828
  static ngAcceptInputType_touchUi: unknown;
830
829
  static ngAcceptInputType_disabled: unknown;
831
830
  static ngAcceptInputType_restoreFocus: unknown;
@@ -1148,7 +1147,7 @@ export declare class MatDatepickerIntl {
1148
1147
 
1149
1148
  export declare class MatDatepickerModule {
1150
1149
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDatepickerModule, never>;
1151
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatDatepickerModule, never, [typeof i1.CommonModule, typeof i2.MatButtonModule, typeof i3.OverlayModule, typeof i4.A11yModule, typeof i5.PortalModule, typeof i6.MatCommonModule, typeof i7.MatCalendar, typeof i8.MatCalendarBody, typeof i9.MatDatepicker, typeof i10.MatDatepickerContent, typeof i11.MatDatepickerInput, typeof i12.MatDatepickerToggle, typeof i12.MatDatepickerToggleIcon, typeof i13.MatMonthView, typeof i14.MatYearView, typeof i15.MatMultiYearView, typeof i7.MatCalendarHeader, typeof i16.MatDateRangeInput, typeof i17.MatStartDate, typeof i17.MatEndDate, typeof i18.MatDateRangePicker, typeof i19.MatDatepickerActions, typeof i19.MatDatepickerCancel, typeof i19.MatDatepickerApply], [typeof i20.CdkScrollableModule, typeof i7.MatCalendar, typeof i8.MatCalendarBody, typeof i9.MatDatepicker, typeof i10.MatDatepickerContent, typeof i11.MatDatepickerInput, typeof i12.MatDatepickerToggle, typeof i12.MatDatepickerToggleIcon, typeof i13.MatMonthView, typeof i14.MatYearView, typeof i15.MatMultiYearView, typeof i7.MatCalendarHeader, typeof i16.MatDateRangeInput, typeof i17.MatStartDate, typeof i17.MatEndDate, typeof i18.MatDateRangePicker, typeof i19.MatDatepickerActions, typeof i19.MatDatepickerCancel, typeof i19.MatDatepickerApply]>;
1150
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatDatepickerModule, never, [typeof i1.MatButtonModule, typeof i2.OverlayModule, typeof i3.A11yModule, typeof i4.PortalModule, typeof i5.MatCommonModule, typeof i6.MatCalendar, typeof i7.MatCalendarBody, typeof i8.MatDatepicker, typeof i9.MatDatepickerContent, typeof i10.MatDatepickerInput, typeof i11.MatDatepickerToggle, typeof i11.MatDatepickerToggleIcon, typeof i12.MatMonthView, typeof i13.MatYearView, typeof i14.MatMultiYearView, typeof i6.MatCalendarHeader, typeof i15.MatDateRangeInput, typeof i16.MatStartDate, typeof i16.MatEndDate, typeof i17.MatDateRangePicker, typeof i18.MatDatepickerActions, typeof i18.MatDatepickerCancel, typeof i18.MatDatepickerApply], [typeof i19.CdkScrollableModule, typeof i6.MatCalendar, typeof i7.MatCalendarBody, typeof i8.MatDatepicker, typeof i9.MatDatepickerContent, typeof i10.MatDatepickerInput, typeof i11.MatDatepickerToggle, typeof i11.MatDatepickerToggleIcon, typeof i12.MatMonthView, typeof i13.MatYearView, typeof i14.MatMultiYearView, typeof i6.MatCalendarHeader, typeof i15.MatDateRangeInput, typeof i16.MatStartDate, typeof i16.MatEndDate, typeof i17.MatDateRangePicker, typeof i18.MatDatepickerActions, typeof i18.MatDatepickerCancel, typeof i18.MatDatepickerApply]>;
1152
1151
  static ɵinj: i0.ɵɵInjectorDeclaration<MatDatepickerModule>;
1153
1152
  }
1154
1153
 
@@ -11,14 +11,17 @@
11
11
  @mixin base($theme) {
12
12
  @if inspection.get-theme-version($theme) == 1 {
13
13
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
14
- }
15
- @else {
14
+ } @else {
16
15
  // Add default values for tokens not related to color, typography, or density.
17
16
  @include sass-utils.current-selector-or-root() {
18
17
  @include token-utils.create-token-values(
19
- tokens-mdc-dialog.$prefix, tokens-mdc-dialog.get-unthemable-tokens());
18
+ tokens-mdc-dialog.$prefix,
19
+ tokens-mdc-dialog.get-unthemable-tokens()
20
+ );
20
21
  @include token-utils.create-token-values(
21
- tokens-mat-dialog.$prefix, tokens-mat-dialog.get-unthemable-tokens());
22
+ tokens-mat-dialog.$prefix,
23
+ tokens-mat-dialog.get-unthemable-tokens()
24
+ );
22
25
  }
23
26
  }
24
27
  }
@@ -26,13 +29,16 @@
26
29
  @mixin color($theme) {
27
30
  @if inspection.get-theme-version($theme) == 1 {
28
31
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
29
- }
30
- @else {
32
+ } @else {
31
33
  @include sass-utils.current-selector-or-root() {
32
34
  @include token-utils.create-token-values(
33
- tokens-mdc-dialog.$prefix, tokens-mdc-dialog.get-color-tokens($theme));
35
+ tokens-mdc-dialog.$prefix,
36
+ tokens-mdc-dialog.get-color-tokens($theme)
37
+ );
34
38
  @include token-utils.create-token-values(
35
- tokens-mat-dialog.$prefix, tokens-mat-dialog.get-color-tokens($theme));
39
+ tokens-mat-dialog.$prefix,
40
+ tokens-mat-dialog.get-color-tokens($theme)
41
+ );
36
42
  }
37
43
  }
38
44
  }
@@ -40,13 +46,16 @@
40
46
  @mixin typography($theme) {
41
47
  @if inspection.get-theme-version($theme) == 1 {
42
48
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
43
- }
44
- @else {
49
+ } @else {
45
50
  @include sass-utils.current-selector-or-root() {
46
51
  @include token-utils.create-token-values(
47
- tokens-mdc-dialog.$prefix, tokens-mdc-dialog.get-typography-tokens($theme));
52
+ tokens-mdc-dialog.$prefix,
53
+ tokens-mdc-dialog.get-typography-tokens($theme)
54
+ );
48
55
  @include token-utils.create-token-values(
49
- tokens-mat-dialog.$prefix, tokens-mat-dialog.get-typography-tokens($theme));
56
+ tokens-mat-dialog.$prefix,
57
+ tokens-mat-dialog.get-typography-tokens($theme)
58
+ );
50
59
  }
51
60
  }
52
61
  }
@@ -54,24 +63,33 @@
54
63
  @mixin density($theme) {
55
64
  @if inspection.get-theme-version($theme) == 1 {
56
65
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
66
+ } @else {
57
67
  }
58
- @else {}
59
68
  }
60
69
 
61
- @mixin overrides($tokens: ()) {
62
- @include token-utils.batch-create-token-values(
63
- $tokens,
64
- (prefix: tokens-mdc-dialog.$prefix, tokens: tokens-mdc-dialog.get-token-slots()),
65
- (prefix: tokens-mat-dialog.$prefix, tokens: tokens-mat-dialog.get-token-slots()),
70
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
71
+ @function _define-overrides() {
72
+ @return (
73
+ (
74
+ namespace: tokens-mdc-dialog.$prefix,
75
+ tokens: tokens-mdc-dialog.get-token-slots(),
76
+ ),
77
+ (
78
+ namespace: tokens-mat-dialog.$prefix,
79
+ tokens: tokens-mat-dialog.get-token-slots(),
80
+ ),
66
81
  );
67
82
  }
68
83
 
84
+ @mixin overrides($tokens: ()) {
85
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
86
+ }
87
+
69
88
  @mixin theme($theme) {
70
89
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-dialog') {
71
90
  @if inspection.get-theme-version($theme) == 1 {
72
91
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
73
- }
74
- @else {
92
+ } @else {
75
93
  @include base($theme);
76
94
  @if inspection.theme-has($theme, color) {
77
95
  @include color($theme);
@@ -88,11 +106,16 @@
88
106
 
89
107
  @mixin _theme-from-tokens($tokens) {
90
108
  @include validation.selector-defined(
91
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
109
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
110
+ );
92
111
  @if ($tokens != ()) {
93
112
  @include token-utils.create-token-values(
94
- tokens-mdc-dialog.$prefix, map.get($tokens, tokens-mdc-dialog.$prefix));
113
+ tokens-mdc-dialog.$prefix,
114
+ map.get($tokens, tokens-mdc-dialog.$prefix)
115
+ );
95
116
  @include token-utils.create-token-values(
96
- tokens-mat-dialog.$prefix, map.get($tokens, tokens-mat-dialog.$prefix));
117
+ tokens-mat-dialog.$prefix,
118
+ map.get($tokens, tokens-mat-dialog.$prefix)
119
+ );
97
120
  }
98
121
  }
@@ -9,11 +9,12 @@
9
9
  @mixin base($theme) {
10
10
  @if inspection.get-theme-version($theme) == 1 {
11
11
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
12
- }
13
- @else {
12
+ } @else {
14
13
  @include sass-utils.current-selector-or-root() {
15
14
  @include token-utils.create-token-values(
16
- tokens-mat-divider.$prefix, tokens-mat-divider.get-unthemable-tokens());
15
+ tokens-mat-divider.$prefix,
16
+ tokens-mat-divider.get-unthemable-tokens()
17
+ );
17
18
  }
18
19
  }
19
20
  }
@@ -21,11 +22,12 @@
21
22
  @mixin color($theme) {
22
23
  @if inspection.get-theme-version($theme) == 1 {
23
24
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
24
- }
25
- @else {
25
+ } @else {
26
26
  @include sass-utils.current-selector-or-root() {
27
- @include token-utils.create-token-values(tokens-mat-divider.$prefix,
28
- tokens-mat-divider.get-color-tokens($theme));
27
+ @include token-utils.create-token-values(
28
+ tokens-mat-divider.$prefix,
29
+ tokens-mat-divider.get-color-tokens($theme)
30
+ );
29
31
  }
30
32
  }
31
33
  }
@@ -33,30 +35,36 @@
33
35
  @mixin typography($theme) {
34
36
  @if inspection.get-theme-version($theme) == 1 {
35
37
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
38
+ } @else {
36
39
  }
37
- @else {}
38
40
  }
39
41
 
40
42
  @mixin density($theme) {
41
43
  @if inspection.get-theme-version($theme) == 1 {
42
44
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
45
+ } @else {
43
46
  }
44
- @else {}
45
47
  }
46
48
 
47
- @mixin overrides($tokens: ()) {
48
- @include token-utils.batch-create-token-values(
49
- $tokens,
50
- (prefix: tokens-mat-divider.$prefix, tokens: tokens-mat-divider.get-token-slots()),
49
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
50
+ @function _define-overrides() {
51
+ @return (
52
+ (
53
+ namespace: tokens-mat-divider.$prefix,
54
+ tokens: tokens-mat-divider.get-token-slots(),
55
+ ),
51
56
  );
52
57
  }
53
58
 
59
+ @mixin overrides($tokens: ()) {
60
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
61
+ }
62
+
54
63
  @mixin theme($theme) {
55
64
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-divider') {
56
65
  @if inspection.get-theme-version($theme) == 1 {
57
66
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
58
- }
59
- @else {
67
+ } @else {
60
68
  @include base($theme);
61
69
  @if inspection.theme-has($theme, color) {
62
70
  @include color($theme);
@@ -73,9 +81,12 @@
73
81
 
74
82
  @mixin _theme-from-tokens($tokens) {
75
83
  @include validation.selector-defined(
76
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
84
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
85
+ );
77
86
  @if ($tokens != ()) {
78
87
  @include token-utils.create-token-values(
79
- tokens-mat-divider.$prefix, map.get($tokens, tokens-mat-divider.$prefix));
88
+ tokens-mat-divider.$prefix,
89
+ map.get($tokens, tokens-mat-divider.$prefix)
90
+ );
80
91
  }
81
92
  }
@@ -10,11 +10,12 @@
10
10
  @mixin base($theme) {
11
11
  @if inspection.get-theme-version($theme) == 1 {
12
12
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
13
- }
14
- @else {
13
+ } @else {
15
14
  @include sass-utils.current-selector-or-root() {
16
15
  @include token-utils.create-token-values(
17
- tokens-mat-expansion.$prefix, tokens-mat-expansion.get-unthemable-tokens());
16
+ tokens-mat-expansion.$prefix,
17
+ tokens-mat-expansion.get-unthemable-tokens()
18
+ );
18
19
  }
19
20
  }
20
21
  }
@@ -22,11 +23,12 @@
22
23
  @mixin color($theme) {
23
24
  @if inspection.get-theme-version($theme) == 1 {
24
25
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
25
- }
26
- @else {
26
+ } @else {
27
27
  @include sass-utils.current-selector-or-root() {
28
- @include token-utils.create-token-values(tokens-mat-expansion.$prefix,
29
- tokens-mat-expansion.get-color-tokens($theme));
28
+ @include token-utils.create-token-values(
29
+ tokens-mat-expansion.$prefix,
30
+ tokens-mat-expansion.get-color-tokens($theme)
31
+ );
30
32
  }
31
33
  }
32
34
  }
@@ -34,14 +36,15 @@
34
36
  @mixin typography($theme) {
35
37
  @if inspection.get-theme-version($theme) == 1 {
36
38
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
37
- }
38
- @else {
39
+ } @else {
39
40
  // TODO(mmalerba): Stop calling this and resolve resulting screen diffs.
40
41
  $theme: inspection.private-get-typography-back-compat-theme($theme);
41
42
 
42
43
  @include sass-utils.current-selector-or-root() {
43
- @include token-utils.create-token-values(tokens-mat-expansion.$prefix,
44
- tokens-mat-expansion.get-typography-tokens($theme));
44
+ @include token-utils.create-token-values(
45
+ tokens-mat-expansion.$prefix,
46
+ tokens-mat-expansion.get-typography-tokens($theme)
47
+ );
45
48
  }
46
49
  }
47
50
  }
@@ -49,28 +52,35 @@
49
52
  @mixin density($theme) {
50
53
  @if inspection.get-theme-version($theme) == 1 {
51
54
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
52
- }
53
- @else {
55
+ } @else {
54
56
  @include sass-utils.current-selector-or-root() {
55
- @include token-utils.create-token-values(tokens-mat-expansion.$prefix,
56
- tokens-mat-expansion.get-density-tokens($theme));
57
+ @include token-utils.create-token-values(
58
+ tokens-mat-expansion.$prefix,
59
+ tokens-mat-expansion.get-density-tokens($theme)
60
+ );
57
61
  }
58
62
  }
59
63
  }
60
64
 
61
- @mixin overrides($tokens: ()) {
62
- @include token-utils.batch-create-token-values(
63
- $tokens,
64
- (prefix: tokens-mat-expansion.$prefix, tokens: tokens-mat-expansion.get-token-slots()),
65
+ /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
66
+ @function _define-overrides() {
67
+ @return (
68
+ (
69
+ namespace: tokens-mat-expansion.$prefix,
70
+ tokens: tokens-mat-expansion.get-token-slots(),
71
+ ),
65
72
  );
66
73
  }
67
74
 
75
+ @mixin overrides($tokens: ()) {
76
+ @include token-utils.batch-create-token-values($tokens, _define-overrides()...);
77
+ }
78
+
68
79
  @mixin theme($theme) {
69
80
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-expansion') {
70
81
  @if inspection.get-theme-version($theme) == 1 {
71
82
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
72
- }
73
- @else {
83
+ } @else {
74
84
  @include base($theme);
75
85
  @if inspection.theme-has($theme, color) {
76
86
  @include color($theme);
@@ -85,12 +95,14 @@
85
95
  }
86
96
  }
87
97
 
88
-
89
98
  @mixin _theme-from-tokens($tokens) {
90
99
  @include validation.selector-defined(
91
- 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
100
+ 'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
101
+ );
92
102
  @if ($tokens != ()) {
93
103
  @include token-utils.create-token-values(
94
- tokens-mat-expansion.$prefix, map.get($tokens, tokens-mat-expansion.$prefix));
104
+ tokens-mat-expansion.$prefix,
105
+ map.get($tokens, tokens-mat-expansion.$prefix)
106
+ );
95
107
  }
96
108
  }