@angular/material 18.1.0-next.2 → 18.1.0-next.3

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 (95) hide show
  1. package/autocomplete/index.d.ts +3 -0
  2. package/bottom-sheet/index.d.ts +0 -1
  3. package/button/index.d.ts +7 -1
  4. package/checkbox/index.d.ts +5 -3
  5. package/chips/index.d.ts +9 -5
  6. package/core/_core-theme.scss +8 -14
  7. package/core/_core.scss +18 -4
  8. package/core/tokens/_density.scss +1 -0
  9. package/core/tokens/m2/mat/_app.scss +13 -1
  10. package/core/tokens/m2/mat/_menu.scss +3 -0
  11. package/core/tokens/m2/mat/_paginator.scss +1 -0
  12. package/core/tokens/m3/mat/_app.scss +9 -0
  13. package/core/tokens/m3/mat/_menu.scss +3 -0
  14. package/datepicker/index.d.ts +17 -1
  15. package/esm2022/autocomplete/autocomplete-trigger.mjs +28 -1
  16. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +6 -7
  17. package/esm2022/button/button-base.mjs +1 -1
  18. package/esm2022/checkbox/checkbox.mjs +1 -1
  19. package/esm2022/chips/chip-grid.mjs +11 -4
  20. package/esm2022/chips/chip-row.mjs +8 -13
  21. package/esm2022/chips/chip-set.mjs +7 -3
  22. package/esm2022/chips/chip.mjs +1 -1
  23. package/esm2022/core/option/optgroup.mjs +2 -2
  24. package/esm2022/core/option/option.mjs +3 -3
  25. package/esm2022/core/version.mjs +1 -1
  26. package/esm2022/datepicker/date-range-input-parts.mjs +14 -10
  27. package/esm2022/datepicker/date-range-input.mjs +17 -7
  28. package/esm2022/datepicker/datepicker-base.mjs +5 -1
  29. package/esm2022/datepicker/datepicker-input.mjs +16 -5
  30. package/esm2022/form-field/form-field.mjs +12 -6
  31. package/esm2022/icon/icon.mjs +8 -2
  32. package/esm2022/list/list-option.mjs +3 -3
  33. package/esm2022/list/selection-list.mjs +9 -2
  34. package/esm2022/menu/menu.mjs +13 -4
  35. package/esm2022/paginator/paginator.mjs +3 -3
  36. package/esm2022/radio/radio.mjs +3 -3
  37. package/esm2022/slide-toggle/slide-toggle.mjs +1 -1
  38. package/esm2022/stepper/step-header.mjs +1 -1
  39. package/esm2022/stepper/stepper.mjs +1 -1
  40. package/esm2022/tabs/tab-header.mjs +3 -3
  41. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +10 -4
  42. package/esm2022/toolbar/toolbar.mjs +1 -1
  43. package/fesm2022/autocomplete.mjs +27 -0
  44. package/fesm2022/autocomplete.mjs.map +1 -1
  45. package/fesm2022/bottom-sheet.mjs +5 -6
  46. package/fesm2022/bottom-sheet.mjs.map +1 -1
  47. package/fesm2022/button.mjs.map +1 -1
  48. package/fesm2022/checkbox.mjs.map +1 -1
  49. package/fesm2022/chips.mjs +15 -9
  50. package/fesm2022/chips.mjs.map +1 -1
  51. package/fesm2022/core.mjs +5 -5
  52. package/fesm2022/core.mjs.map +1 -1
  53. package/fesm2022/datepicker.mjs +37 -8
  54. package/fesm2022/datepicker.mjs.map +1 -1
  55. package/fesm2022/form-field.mjs +9 -3
  56. package/fesm2022/form-field.mjs.map +1 -1
  57. package/fesm2022/icon.mjs +7 -1
  58. package/fesm2022/icon.mjs.map +1 -1
  59. package/fesm2022/list.mjs +10 -3
  60. package/fesm2022/list.mjs.map +1 -1
  61. package/fesm2022/menu.mjs +12 -3
  62. package/fesm2022/menu.mjs.map +1 -1
  63. package/fesm2022/paginator.mjs +2 -2
  64. package/fesm2022/paginator.mjs.map +1 -1
  65. package/fesm2022/radio.mjs +2 -2
  66. package/fesm2022/radio.mjs.map +1 -1
  67. package/fesm2022/slide-toggle.mjs.map +1 -1
  68. package/fesm2022/stepper.mjs.map +1 -1
  69. package/fesm2022/tabs.mjs +11 -5
  70. package/fesm2022/tabs.mjs.map +1 -1
  71. package/fesm2022/toolbar.mjs.map +1 -1
  72. package/form-field/index.d.ts +12 -2
  73. package/icon/index.d.ts +14 -2
  74. package/list/_list-theme.scss +8 -5
  75. package/list/index.d.ts +8 -1
  76. package/package.json +2 -2
  77. package/paginator/index.d.ts +7 -1
  78. package/prebuilt-themes/azure-blue.css +1 -1
  79. package/prebuilt-themes/cyan-orange.css +1 -1
  80. package/prebuilt-themes/deeppurple-amber.css +1 -1
  81. package/prebuilt-themes/indigo-pink.css +1 -1
  82. package/prebuilt-themes/magenta-violet.css +1 -1
  83. package/prebuilt-themes/pink-bluegrey.css +1 -1
  84. package/prebuilt-themes/purple-green.css +1 -1
  85. package/prebuilt-themes/rose-red.css +1 -1
  86. package/radio/_radio-common.scss +238 -0
  87. package/radio/_radio-theme.scss +25 -32
  88. package/radio/index.d.ts +7 -1
  89. package/schematics/ng-add/index.js +1 -1
  90. package/schematics/ng-add/index.mjs +1 -1
  91. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
  92. package/slide-toggle/index.d.ts +7 -1
  93. package/stepper/index.d.ts +21 -3
  94. package/tabs/index.d.ts +7 -1
  95. package/toolbar/index.d.ts +7 -1
@@ -1,4 +1,3 @@
1
- @use '@material/radio/radio-theme' as mdc-radio-theme;
2
1
  @use '../core/style/sass-utils';
3
2
  @use '../core/theming/theming';
4
3
  @use '../core/theming/inspection';
@@ -16,11 +15,10 @@
16
15
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
17
16
  } @else {
18
17
  @include sass-utils.current-selector-or-root() {
19
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-unthemable-tokens());
20
- @include token-utils.create-token-values(
21
- tokens-mat-radio.$prefix,
22
- tokens-mat-radio.get-unthemable-tokens()
23
- );
18
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
19
+ tokens-mdc-radio.get-unthemable-tokens());
20
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
21
+ tokens-mat-radio.get-unthemable-tokens());
24
22
  }
25
23
  }
26
24
  }
@@ -36,27 +34,24 @@
36
34
  } @else {
37
35
  .mat-mdc-radio-button {
38
36
  &.mat-primary {
39
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-color-tokens($theme, primary));
40
- @include token-utils.create-token-values(
41
- tokens-mat-radio.$prefix,
42
- tokens-mat-radio.get-color-tokens($theme, primary)
43
- );
37
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
38
+ tokens-mdc-radio.get-color-tokens($theme, primary));
39
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
40
+ tokens-mat-radio.get-color-tokens($theme, primary));
44
41
  }
45
42
 
46
43
  &.mat-accent {
47
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-color-tokens($theme));
48
- @include token-utils.create-token-values(
49
- tokens-mat-radio.$prefix,
50
- tokens-mat-radio.get-color-tokens($theme)
51
- );
44
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
45
+ tokens-mdc-radio.get-color-tokens($theme));
46
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
47
+ tokens-mat-radio.get-color-tokens($theme));
52
48
  }
53
49
 
54
50
  &.mat-warn {
55
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-color-tokens($theme, warn));
56
- @include token-utils.create-token-values(
57
- tokens-mat-radio.$prefix,
58
- tokens-mat-radio.get-color-tokens($theme, warn)
59
- );
51
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
52
+ tokens-mdc-radio.get-color-tokens($theme, warn));
53
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
54
+ tokens-mat-radio.get-color-tokens($theme, warn));
60
55
  }
61
56
  }
62
57
  }
@@ -69,11 +64,10 @@
69
64
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
70
65
  } @else {
71
66
  @include sass-utils.current-selector-or-root() {
72
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-typography-tokens($theme));
73
- @include token-utils.create-token-values(
74
- tokens-mat-radio.$prefix,
75
- tokens-mat-radio.get-typography-tokens($theme)
76
- );
67
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
68
+ tokens-mdc-radio.get-typography-tokens($theme));
69
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
70
+ tokens-mat-radio.get-typography-tokens($theme));
77
71
  }
78
72
  }
79
73
  }
@@ -87,11 +81,10 @@
87
81
  $density-scale: inspection.get-theme-density($theme);
88
82
 
89
83
  @include sass-utils.current-selector-or-root() {
90
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-density-tokens($theme));
91
- @include token-utils.create-token-values(
92
- tokens-mat-radio.$prefix,
93
- tokens-mat-radio.get-density-tokens($theme)
94
- );
84
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
85
+ tokens-mdc-radio.get-density-tokens($theme));
86
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
87
+ tokens-mat-radio.get-density-tokens($theme));
95
88
  }
96
89
  }
97
90
  }
@@ -142,6 +135,6 @@
142
135
  );
143
136
  $mdc-radio-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-radio.$prefix, $options...);
144
137
  $mat-radio-tokens: token-utils.get-tokens-for($tokens, tokens-mat-radio.$prefix, $options...);
145
- @include mdc-radio-theme.theme($mdc-radio-tokens);
138
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix, $mdc-radio-tokens);
146
139
  @include token-utils.create-token-values(tokens-mat-radio.$prefix, $mat-radio-tokens);
147
140
  }
package/radio/index.d.ts CHANGED
@@ -205,7 +205,13 @@ export declare class MatRadioGroup implements AfterContentInit, OnDestroy, Contr
205
205
  readonly change: EventEmitter<MatRadioChange>;
206
206
  /** Child radio buttons. */
207
207
  _radios: QueryList<MatRadioButton>;
208
- /** Theme color for all of the radio buttons in the group. */
208
+ /**
209
+ * Theme color of the radio buttons in the group. This API is supported in M2
210
+ * themes only, it has no effect in M3 themes.
211
+ *
212
+ * For information on applying color variants in M3, see
213
+ * https://material.angular.io/guide/theming#using-component-color-variants.
214
+ */
209
215
  color: ThemePalette;
210
216
  /** Name of the radio button group. All radio buttons inside this group will use this name. */
211
217
  get name(): string;
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
19
19
  * Note that the fallback version range does not use caret, but tilde because that is
20
20
  * the default for Angular framework dependencies in CLI projects.
21
21
  */
22
- const fallbackMaterialVersionRange = `~18.1.0-next.2`;
22
+ const fallbackMaterialVersionRange = `~18.1.0-next.3`;
23
23
  /**
24
24
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
25
25
  * automatically executed if developers run `ng add @angular/material`.
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
19
19
  * Note that the fallback version range does not use caret, but tilde because that is
20
20
  * the default for Angular framework dependencies in CLI projects.
21
21
  */
22
- const fallbackMaterialVersionRange = `~18.1.0-next.2`;
22
+ const fallbackMaterialVersionRange = `~18.1.0-next.3`;
23
23
  /**
24
24
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
25
25
  * automatically executed if developers run `ng add @angular/material`.
@@ -1,4 +1,4 @@
1
- <div class="mat-elevation-z8">
1
+ <div class="mat-elevation-z2">
2
2
  <table mat-table class="full-width-table" matSort aria-label="Elements">
3
3
  <!-- Id Column -->
4
4
  <ng-container matColumnDef="id">
@@ -89,7 +89,13 @@ export declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnCh
89
89
  ariaDescribedby: string;
90
90
  /** Whether the slide-toggle is required. */
91
91
  required: boolean;
92
- /** Palette color of slide toggle. */
92
+ /**
93
+ * Theme color of the slide toggle. This API is supported in M2 themes only,
94
+ * it has no effect in M3 themes.
95
+ *
96
+ * For information on applying color variants in M3, see
97
+ * https://material.angular.io/guide/theming#using-component-color-variants.
98
+ */
93
99
  color: string | undefined;
94
100
  /** Whether the slide toggle is disabled. */
95
101
  disabled: boolean;
@@ -91,7 +91,13 @@ export declare class MatStep extends CdkStep implements ErrorStateMatcher, After
91
91
  private _isSelected;
92
92
  /** Content for step label given by `<ng-template matStepLabel>`. */
93
93
  stepLabel: MatStepLabel;
94
- /** Theme color for the particular step. */
94
+ /**
95
+ * Theme color for the particular step. This API is supported in M2 themes
96
+ * only, it has no effect in M3 themes.
97
+ *
98
+ * For information on applying color variants in M3, see
99
+ * https://material.angular.io/guide/theming#using-component-color-variants.
100
+ */
95
101
  color: ThemePalette;
96
102
  /** Content that will be rendered lazily. */
97
103
  _lazyContent: MatStepContent;
@@ -140,7 +146,13 @@ export declare class MatStepHeader extends CdkStepHeader implements AfterViewIni
140
146
  optional: boolean;
141
147
  /** Whether the ripple should be disabled. */
142
148
  disableRipple: boolean;
143
- /** Theme palette color of the step header. */
149
+ /**
150
+ * Theme color of the step header. This API is supported in M2 themes only, it
151
+ * has no effect in M3 themes.
152
+ *
153
+ * For information on applying color variants in M3, see
154
+ * https://material.angular.io/guide/theming#using-component-color-variants.
155
+ */
144
156
  color: ThemePalette;
145
157
  constructor(_intl: MatStepperIntl, _focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef);
146
158
  ngAfterViewInit(): void;
@@ -178,7 +190,13 @@ export declare class MatStepper extends CdkStepper implements AfterContentInit {
178
190
  readonly animationDone: EventEmitter<void>;
179
191
  /** Whether ripples should be disabled for the step headers. */
180
192
  disableRipple: boolean;
181
- /** Theme color for all of the steps in stepper. */
193
+ /**
194
+ * Theme color for all of the steps in stepper. This API is supported in M2
195
+ * themes only, it has no effect in M3 themes.
196
+ *
197
+ * For information on applying color variants in M3, see
198
+ * https://material.angular.io/guide/theming#using-component-color-variants.
199
+ */
182
200
  color: ThemePalette;
183
201
  /**
184
202
  * Whether the label should display in bottom or end position.
package/tabs/index.d.ts CHANGED
@@ -827,7 +827,13 @@ export declare class MatTabNav extends MatPaginatedTabHeader implements AfterCon
827
827
  private _backgroundColor;
828
828
  /** Whether the ripple effect is disabled or not. */
829
829
  disableRipple: boolean;
830
- /** Theme color of the nav bar. */
830
+ /**
831
+ * Theme color of the nav bar. This API is supported in M2 themes only, it has
832
+ * no effect in M3 themes.
833
+ *
834
+ * For information on applying color variants in M3, see
835
+ * https://material.angular.io/guide/theming#using-component-color-variants.
836
+ */
831
837
  color: ThemePalette;
832
838
  /**
833
839
  * Associated tab panel controlled by the nav bar. If not provided, then the nav bar
@@ -16,7 +16,13 @@ declare namespace i2 {
16
16
  export declare class MatToolbar implements AfterViewInit {
17
17
  protected _elementRef: ElementRef;
18
18
  private _platform;
19
- /** Palette color of the toolbar. */
19
+ /**
20
+ * Theme color of the toolbar. This API is supported in M2 themes only, it has
21
+ * no effect in M3 themes.
22
+ *
23
+ * For information on applying color variants in M3, see
24
+ * https://material.angular.io/guide/theming#using-component-color-variants.
25
+ */
20
26
  color?: string | null;
21
27
  private _document;
22
28
  /** Reference to all toolbar row elements that have been projected. */