@angular/material 19.1.0-next.3 → 19.1.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 (75) hide show
  1. package/LICENSE +1 -1
  2. package/autocomplete/index.d.ts +1 -1
  3. package/badge/index.d.ts +2 -2
  4. package/button/index.d.ts +4 -4
  5. package/checkbox/index.d.ts +4 -4
  6. package/chips/index.d.ts +3 -3
  7. package/core/index.d.ts +0 -1
  8. package/datepicker/index.d.ts +16 -40
  9. package/fesm2022/autocomplete.mjs.map +1 -1
  10. package/fesm2022/badge.mjs +2 -2
  11. package/fesm2022/badge.mjs.map +1 -1
  12. package/fesm2022/button.mjs +2 -2
  13. package/fesm2022/button.mjs.map +1 -1
  14. package/fesm2022/checkbox.mjs +2 -2
  15. package/fesm2022/checkbox.mjs.map +1 -1
  16. package/fesm2022/chips.mjs +2 -2
  17. package/fesm2022/chips.mjs.map +1 -1
  18. package/fesm2022/core.mjs +11 -9
  19. package/fesm2022/core.mjs.map +1 -1
  20. package/fesm2022/datepicker.mjs +750 -751
  21. package/fesm2022/datepicker.mjs.map +1 -1
  22. package/fesm2022/form-field.mjs +2 -2
  23. package/fesm2022/form-field.mjs.map +1 -1
  24. package/fesm2022/icon.mjs +2 -2
  25. package/fesm2022/icon.mjs.map +1 -1
  26. package/fesm2022/list.mjs +5 -4
  27. package/fesm2022/list.mjs.map +1 -1
  28. package/fesm2022/menu.mjs +14 -11
  29. package/fesm2022/menu.mjs.map +1 -1
  30. package/fesm2022/paginator.mjs +12 -15
  31. package/fesm2022/paginator.mjs.map +1 -1
  32. package/fesm2022/progress-bar.mjs +2 -2
  33. package/fesm2022/progress-bar.mjs.map +1 -1
  34. package/fesm2022/progress-spinner.mjs +2 -2
  35. package/fesm2022/progress-spinner.mjs.map +1 -1
  36. package/fesm2022/radio.mjs +4 -4
  37. package/fesm2022/radio.mjs.map +1 -1
  38. package/fesm2022/select.mjs.map +1 -1
  39. package/fesm2022/sidenav.mjs +113 -90
  40. package/fesm2022/sidenav.mjs.map +1 -1
  41. package/fesm2022/slide-toggle.mjs +2 -2
  42. package/fesm2022/slide-toggle.mjs.map +1 -1
  43. package/fesm2022/slider.mjs +2 -2
  44. package/fesm2022/slider.mjs.map +1 -1
  45. package/fesm2022/sort.mjs +2 -2
  46. package/fesm2022/sort.mjs.map +1 -1
  47. package/fesm2022/stepper.mjs +6 -6
  48. package/fesm2022/stepper.mjs.map +1 -1
  49. package/fesm2022/tabs.mjs +8 -8
  50. package/fesm2022/tabs.mjs.map +1 -1
  51. package/fesm2022/timepicker.mjs +3 -1
  52. package/fesm2022/timepicker.mjs.map +1 -1
  53. package/fesm2022/toolbar.mjs +2 -2
  54. package/fesm2022/toolbar.mjs.map +1 -1
  55. package/fesm2022/tooltip.mjs +91 -60
  56. package/fesm2022/tooltip.mjs.map +1 -1
  57. package/form-field/index.d.ts +4 -4
  58. package/icon/index.d.ts +4 -4
  59. package/list/index.d.ts +6 -5
  60. package/menu/index.d.ts +5 -1
  61. package/package.json +2 -2
  62. package/paginator/index.d.ts +5 -5
  63. package/progress-bar/index.d.ts +4 -4
  64. package/progress-spinner/index.d.ts +4 -4
  65. package/radio/index.d.ts +6 -6
  66. package/schematics/ng-add/index.js +1 -1
  67. package/schematics/ng-add/index.mjs +1 -1
  68. package/select/index.d.ts +1 -1
  69. package/sidenav/index.d.ts +11 -10
  70. package/slide-toggle/index.d.ts +4 -4
  71. package/slider/index.d.ts +2 -2
  72. package/stepper/index.d.ts +6 -6
  73. package/tabs/index.d.ts +8 -8
  74. package/toolbar/index.d.ts +2 -2
  75. package/tooltip/index.d.ts +8 -4
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2024 Google LLC.
3
+ Copyright (c) 2025 Google LLC.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -212,7 +212,7 @@ export declare interface MatAutocompleteDefaultOptions {
212
212
  requireSelection?: boolean;
213
213
  /** Class or list of classes to be applied to the autocomplete's overlay panel. */
214
214
  overlayPanelClass?: string | string[];
215
- /** Wheter icon indicators should be hidden for single-selection. */
215
+ /** Whether icon indicators should be hidden for single-selection. */
216
216
  hideSingleSelectionIndicator?: boolean;
217
217
  }
218
218
 
package/badge/index.d.ts CHANGED
@@ -24,10 +24,10 @@ export declare class MatBadge implements OnInit, OnDestroy {
24
24
  private _idGenerator;
25
25
  /**
26
26
  * Theme color of the badge. This API is supported in M2 themes only, it
27
- * has no effect in M3 themes.
27
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/badge/styling.
28
28
  *
29
29
  * For information on applying color variants in M3, see
30
- * https://material.angular.io/guide/theming#using-component-color-variants.
30
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
31
31
  */
32
32
  get color(): ThemePalette;
33
33
  set color(value: ThemePalette);
package/button/index.d.ts CHANGED
@@ -107,10 +107,10 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
107
107
  protected _isFab: boolean;
108
108
  /**
109
109
  * Theme color of the button. This API is supported in M2 themes only, it has
110
- * no effect in M3 themes.
110
+ * no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/button/styling.
111
111
  *
112
112
  * For information on applying color variants in M3, see
113
- * https://material.angular.io/guide/theming#using-component-color-variants.
113
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
114
114
  */
115
115
  color?: string | null;
116
116
  /** Whether the ripple effect is disabled or not. */
@@ -203,10 +203,10 @@ export declare class MatFabButton extends MatButtonBase {
203
203
  export declare interface MatFabDefaultOptions {
204
204
  /**
205
205
  * Default theme color of the button. This API is supported in M2 themes
206
- * only, it has no effect in M3 themes.
206
+ * only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/button/styling.
207
207
  *
208
208
  * For information on applying color variants in M3, see
209
- * https://material.angular.io/guide/theming#using-component-color-variants
209
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants.
210
210
  */
211
211
  color?: ThemePalette;
212
212
  }
@@ -118,10 +118,10 @@ export declare class MatCheckbox implements AfterViewInit, OnChanges, ControlVal
118
118
  tabIndex: number;
119
119
  /**
120
120
  * Theme color of the checkbox. This API is supported in M2 themes only, it
121
- * has no effect in M3 themes.
121
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/checkbox/styling.
122
122
  *
123
123
  * For information on applying color variants in M3, see
124
- * https://material.angular.io/guide/theming#using-component-color-variants.
124
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
125
125
  */
126
126
  color: string | undefined;
127
127
  /** Whether the checkbox should remain interactive when it is disabled. */
@@ -224,10 +224,10 @@ export declare type MatCheckboxClickAction = 'noop' | 'check' | 'check-indetermi
224
224
  export declare interface MatCheckboxDefaultOptions {
225
225
  /**
226
226
  * Default theme color of the checkbox. This API is supported in M2 themes
227
- * only, it has no effect in M3 themes.
227
+ * only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/checkbox/styling.
228
228
  *
229
229
  * For information on applying color variants in M3, see
230
- * https://material.angular.io/guide/theming#using-component-color-variants
230
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
231
231
  */
232
232
  color?: ThemePalette;
233
233
  /** Default checkbox click action for checkboxes. */
package/chips/index.d.ts CHANGED
@@ -181,10 +181,10 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
181
181
  protected _value: any;
182
182
  /**
183
183
  * Theme color of the chip. This API is supported in M2 themes only, it has no
184
- * effect in M3 themes.
184
+ * effect in M3 themes. For color customization in M3, see https://material.angular.io/components/chips/styling.
185
185
  *
186
186
  * For information on applying color variants in M3, see
187
- * https://material.angular.io/guide/theming#using-component-color-variants.
187
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
188
188
  */
189
189
  color?: string | null;
190
190
  /**
@@ -849,7 +849,7 @@ export declare class MatChipRow extends MatChip implements AfterViewInit {
849
849
  export declare interface MatChipsDefaultOptions {
850
850
  /** The list of key codes that will trigger a chipEnd event. */
851
851
  separatorKeyCodes: readonly number[] | ReadonlySet<number>;
852
- /** Wheter icon indicators should be hidden for single-selection. */
852
+ /** Whether icon indicators should be hidden for single-selection. */
853
853
  hideSingleSelectionIndicator?: boolean;
854
854
  }
855
855
 
package/core/index.d.ts CHANGED
@@ -794,7 +794,6 @@ export declare class MatRippleLoader implements OnDestroy {
794
794
  private _platform;
795
795
  private _ngZone;
796
796
  private _injector;
797
- private _eventCleanups;
798
797
  private _hosts;
799
798
  constructor();
800
799
  ngOnDestroy(): void;
@@ -35,7 +35,6 @@ import { OnInit } from '@angular/core';
35
35
  import { Overlay } from '@angular/cdk/overlay';
36
36
  import { Portal } from '@angular/cdk/portal';
37
37
  import { ScrollStrategy } from '@angular/cdk/overlay';
38
- import { Signal } from '@angular/core';
39
38
  import { SimpleChanges } from '@angular/core';
40
39
  import { Subject } from 'rxjs';
41
40
  import { TemplatePortal } from '@angular/cdk/portal';
@@ -159,8 +158,6 @@ declare namespace i15 {
159
158
 
160
159
  declare namespace i16 {
161
160
  export {
162
- MatDateRangeInputParent,
163
- MAT_DATE_RANGE_INPUT_PARENT,
164
161
  MatStartDate,
165
162
  MatEndDate
166
163
  }
@@ -221,12 +218,6 @@ declare namespace i9 {
221
218
 
222
219
  declare function isSameMultiYearView<D>(dateAdapter: DateAdapter<D>, date1: D, date2: D, minDate: D | null, maxDate: D | null): boolean;
223
220
 
224
- /**
225
- * Used to provide the date range input wrapper component
226
- * to the parts without circular dependencies.
227
- */
228
- declare const MAT_DATE_RANGE_INPUT_PARENT: InjectionToken<MatDateRangeInputParent<unknown>>;
229
-
230
221
  /** Injection token used to customize the date range selection behavior. */
231
222
  export declare const MAT_DATE_RANGE_SELECTION_STRATEGY: InjectionToken<MatDateRangeSelectionStrategy<any>>;
232
223
 
@@ -395,7 +386,6 @@ export declare class MatCalendarBody<D = any> implements OnChanges, OnDestroy, A
395
386
  private _ngZone;
396
387
  private _platform;
397
388
  private _intl;
398
- private _eventCleanups;
399
389
  /**
400
390
  * Used to skip the next focus event when rendering the preview range.
401
391
  * We need a flag like this, because some browsers fire focus events asynchronously.
@@ -705,10 +695,10 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
705
695
  startView: 'month' | 'year' | 'multi-year';
706
696
  /**
707
697
  * Theme color of the datepicker's calendar. This API is supported in M2 themes only, it
708
- * has no effect in M3 themes.
698
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/datepicker/styling.
709
699
  *
710
700
  * For information on applying color variants in M3, see
711
- * https://material.angular.io/guide/theming#using-component-color-variants.
701
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
712
702
  */
713
703
  get color(): ThemePalette;
714
704
  set color(value: ThemePalette);
@@ -865,10 +855,10 @@ export declare class MatDatepickerContent<S, D = ExtractDateTypeFromSelection<S>
865
855
  _calendar: MatCalendar<D>;
866
856
  /**
867
857
  * Theme color of the internal calendar. This API is supported in M2 themes
868
- * only, it has no effect in M3 themes.
858
+ * only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/datepicker/styling.
869
859
  *
870
860
  * For information on applying color variants in M3, see
871
- * https://material.angular.io/guide/theming#using-component-color-variants.
861
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
872
862
  */
873
863
  color: ThemePalette;
874
864
  /** Reference to the datepicker that created the overlay. */
@@ -1168,10 +1158,10 @@ export declare interface MatDatepickerPanel<C extends MatDatepickerControl<D>, S
1168
1158
  closedStream: EventEmitter<void>;
1169
1159
  /**
1170
1160
  * Color palette to use on the datepicker's calendar. This API is supported in M2 themes only, it
1171
- * has no effect in M3 themes.
1161
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/datepicker/styling.
1172
1162
  *
1173
1163
  * For information on applying color variants in M3, see
1174
- * https://material.angular.io/guide/theming#using-component-color-variants
1164
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
1175
1165
  */
1176
1166
  color: ThemePalette;
1177
1167
  /** The input element the datepicker is associated with. */
@@ -1229,13 +1219,15 @@ export declare class MatDatepickerToggleIcon {
1229
1219
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatDatepickerToggleIcon, "[matDatepickerToggleIcon]", never, {}, {}, never, never, true, never>;
1230
1220
  }
1231
1221
 
1232
- export declare class MatDateRangeInput<D> implements MatFormFieldControl<DateRange<D>>, MatDatepickerControl<D>, MatDateRangeInputParent<D>, MatDateRangePickerInput<D>, AfterContentInit, OnChanges, OnDestroy {
1222
+ export declare class MatDateRangeInput<D> implements MatFormFieldControl<DateRange<D>>, MatDatepickerControl<D>, MatDateRangePickerInput<D>, AfterContentInit, OnChanges, OnDestroy {
1233
1223
  private _changeDetectorRef;
1234
1224
  private _elementRef;
1235
1225
  private _dateAdapter;
1236
1226
  private _formField;
1237
1227
  private _closedSubscription;
1238
1228
  private _openedSubscription;
1229
+ _startInput: MatStartDate<D>;
1230
+ _endInput: MatEndDate<D>;
1239
1231
  /** Current value of the range input. */
1240
1232
  get value(): DateRange<D> | null;
1241
1233
  /** Unique ID for the group. */
@@ -1292,8 +1284,6 @@ export declare class MatDateRangeInput<D> implements MatFormFieldControl<DateRan
1292
1284
  comparisonStart: D | null;
1293
1285
  /** End of the comparison range that should be shown in the calendar. */
1294
1286
  comparisonEnd: D | null;
1295
- _startInput: MatStartDate<D>;
1296
- _endInput: MatEndDate<D>;
1297
1287
  /**
1298
1288
  * Implemented as a part of `MatFormFieldControl`.
1299
1289
  * TODO(crisbeto): change type to `AbstractControlDirective` after #18206 lands.
@@ -1352,34 +1342,16 @@ export declare class MatDateRangeInput<D> implements MatFormFieldControl<DateRan
1352
1342
  /** Checks whether a specific range input directive is required. */
1353
1343
  private _isTargetRequired;
1354
1344
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDateRangeInput<any>, never>;
1355
- static ɵcmp: i0.ɵɵComponentDeclaration<MatDateRangeInput<any>, "mat-date-range-input", ["matDateRangeInput"], { "rangePicker": { "alias": "rangePicker"; "required": false; }; "required": { "alias": "required"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "comparisonStart": { "alias": "comparisonStart"; "required": false; }; "comparisonEnd": { "alias": "comparisonEnd"; "required": false; }; }, {}, ["_startInput", "_endInput"], ["input[matStartDate]", "input[matEndDate]"], true, never>;
1345
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatDateRangeInput<any>, "mat-date-range-input", ["matDateRangeInput"], { "rangePicker": { "alias": "rangePicker"; "required": false; }; "required": { "alias": "required"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "comparisonStart": { "alias": "comparisonStart"; "required": false; }; "comparisonEnd": { "alias": "comparisonEnd"; "required": false; }; }, {}, never, ["input[matStartDate]", "input[matEndDate]"], true, never>;
1356
1346
  static ngAcceptInputType_required: unknown;
1357
1347
  static ngAcceptInputType_disabled: unknown;
1358
1348
  }
1359
1349
 
1360
- /** Parent component that should be wrapped around `MatStartDate` and `MatEndDate`. */
1361
- declare interface MatDateRangeInputParent<D> {
1362
- id: string;
1363
- min: D | null;
1364
- max: D | null;
1365
- dateFilter: DateFilterFn<D>;
1366
- rangePicker: {
1367
- opened: boolean;
1368
- id: string;
1369
- };
1370
- _ariaOwns?: Signal<string | null>;
1371
- _startInput: MatDateRangeInputPartBase<D>;
1372
- _endInput: MatDateRangeInputPartBase<D>;
1373
- _groupDisabled: boolean;
1374
- _handleChildValueChange(): void;
1375
- _openDatepicker(): void;
1376
- }
1377
-
1378
1350
  /**
1379
1351
  * Base class for the individual inputs that can be projected inside a `mat-date-range-input`.
1380
1352
  */
1381
- declare abstract class MatDateRangeInputPartBase<D> extends MatDatepickerInputBase<DateRange<D>> implements OnInit, DoCheck {
1382
- _rangeInput: MatDateRangeInputParent<D>;
1353
+ declare abstract class MatDateRangeInputPartBase<D> extends MatDatepickerInputBase<DateRange<D>> implements OnInit, AfterContentInit, DoCheck {
1354
+ _rangeInput: MatDateRangeInput<D>;
1383
1355
  _elementRef: ElementRef<HTMLInputElement>;
1384
1356
  _defaultErrorStateMatcher: ErrorStateMatcher;
1385
1357
  private _injector;
@@ -1393,6 +1365,7 @@ declare abstract class MatDateRangeInputPartBase<D> extends MatDatepickerInputBa
1393
1365
  protected abstract _validator: ValidatorFn | null;
1394
1366
  protected abstract _assignValueToModel(value: D | null): void;
1395
1367
  protected abstract _getValueFromModel(modelValue: DateRange<D>): D | null;
1368
+ protected abstract _register(): void;
1396
1369
  protected readonly _dir: Directionality | null;
1397
1370
  private _errorStateTracker;
1398
1371
  /** Object used to control when error messages are shown. */
@@ -1403,6 +1376,7 @@ declare abstract class MatDateRangeInputPartBase<D> extends MatDatepickerInputBa
1403
1376
  set errorState(value: boolean);
1404
1377
  constructor(...args: unknown[]);
1405
1378
  ngOnInit(): void;
1379
+ ngAfterContentInit(): void;
1406
1380
  ngDoCheck(): void;
1407
1381
  /** Gets whether the input is empty. */
1408
1382
  isEmpty(): boolean;
@@ -1523,6 +1497,7 @@ export declare abstract class MatDateSelectionModel<S, D = ExtractDateTypeFromSe
1523
1497
  export declare class MatEndDate<D> extends MatDateRangeInputPartBase<D> {
1524
1498
  /** Validator that checks that the end date isn't before the start date. */
1525
1499
  private _endValidator;
1500
+ protected _register(): void;
1526
1501
  protected _validator: ValidatorFn | null;
1527
1502
  protected _getValueFromModel(modelValue: DateRange<D>): D | null;
1528
1503
  protected _shouldHandleChangeEvent(change: DateSelectionModelChange<DateRange<D>>): boolean;
@@ -1830,6 +1805,7 @@ export declare class MatStartDate<D> extends MatDateRangeInputPartBase<D> {
1830
1805
  /** Validator that checks that the start date isn't after the end date. */
1831
1806
  private _startValidator;
1832
1807
  protected _validator: ValidatorFn | null;
1808
+ protected _register(): void;
1833
1809
  protected _getValueFromModel(modelValue: DateRange<D>): D | null;
1834
1810
  protected _shouldHandleChangeEvent(change: DateSelectionModelChange<DateRange<D>>): boolean;
1835
1811
  protected _assignValueToModel(value: D | null): void;