@angular/material 21.2.2 → 21.3.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/button/_m3-button.scss +1 -0
  2. package/fesm2022/_error-options-chunk.mjs +6 -6
  3. package/fesm2022/_error-options-chunk.mjs.map +1 -1
  4. package/fesm2022/_form-field-chunk.mjs +30 -30
  5. package/fesm2022/_form-field-chunk.mjs.map +1 -1
  6. package/fesm2022/_icon-button-chunk.mjs +85 -20
  7. package/fesm2022/_icon-button-chunk.mjs.map +1 -1
  8. package/fesm2022/_icon-registry-chunk.mjs +3 -3
  9. package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
  10. package/fesm2022/_internal-form-field-chunk.mjs +3 -3
  11. package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
  12. package/fesm2022/_line-chunk.mjs +7 -7
  13. package/fesm2022/_line-chunk.mjs.map +1 -1
  14. package/fesm2022/_option-chunk.mjs +6 -6
  15. package/fesm2022/_option-chunk.mjs.map +1 -1
  16. package/fesm2022/_option-module-chunk.mjs +4 -4
  17. package/fesm2022/_option-module-chunk.mjs.map +1 -1
  18. package/fesm2022/_pseudo-checkbox-chunk.mjs +3 -3
  19. package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
  20. package/fesm2022/_pseudo-checkbox-module-chunk.mjs +4 -4
  21. package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
  22. package/fesm2022/_ripple-chunk.mjs +6 -6
  23. package/fesm2022/_ripple-chunk.mjs.map +1 -1
  24. package/fesm2022/_ripple-loader-chunk.mjs +3 -3
  25. package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
  26. package/fesm2022/_ripple-module-chunk.mjs +4 -4
  27. package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
  28. package/fesm2022/_structural-styles-chunk.mjs +3 -3
  29. package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
  30. package/fesm2022/_tooltip-chunk.mjs +6 -6
  31. package/fesm2022/_tooltip-chunk.mjs.map +1 -1
  32. package/fesm2022/autocomplete.mjs +13 -13
  33. package/fesm2022/autocomplete.mjs.map +1 -1
  34. package/fesm2022/badge.mjs +10 -10
  35. package/fesm2022/badge.mjs.map +1 -1
  36. package/fesm2022/bottom-sheet.mjs +12 -12
  37. package/fesm2022/bottom-sheet.mjs.map +1 -1
  38. package/fesm2022/button-testing.mjs +4 -0
  39. package/fesm2022/button-testing.mjs.map +1 -1
  40. package/fesm2022/button-toggle.mjs +10 -10
  41. package/fesm2022/button-toggle.mjs.map +1 -1
  42. package/fesm2022/button.mjs +28 -28
  43. package/fesm2022/button.mjs.map +1 -1
  44. package/fesm2022/card.mjs +46 -46
  45. package/fesm2022/card.mjs.map +1 -1
  46. package/fesm2022/checkbox.mjs +7 -7
  47. package/fesm2022/checkbox.mjs.map +1 -1
  48. package/fesm2022/chips.mjs +46 -46
  49. package/fesm2022/chips.mjs.map +1 -1
  50. package/fesm2022/core.mjs +12 -12
  51. package/fesm2022/core.mjs.map +1 -1
  52. package/fesm2022/datepicker.mjs +82 -82
  53. package/fesm2022/datepicker.mjs.map +1 -1
  54. package/fesm2022/dialog.mjs +28 -28
  55. package/fesm2022/dialog.mjs.map +1 -1
  56. package/fesm2022/divider.mjs +7 -7
  57. package/fesm2022/divider.mjs.map +1 -1
  58. package/fesm2022/expansion.mjs +29 -29
  59. package/fesm2022/expansion.mjs.map +1 -1
  60. package/fesm2022/form-field.mjs +4 -4
  61. package/fesm2022/form-field.mjs.map +1 -1
  62. package/fesm2022/grid-list.mjs +22 -22
  63. package/fesm2022/grid-list.mjs.map +1 -1
  64. package/fesm2022/icon-testing.mjs +7 -7
  65. package/fesm2022/icon.mjs +7 -7
  66. package/fesm2022/icon.mjs.map +1 -1
  67. package/fesm2022/input.mjs +7 -7
  68. package/fesm2022/input.mjs.map +1 -1
  69. package/fesm2022/list.mjs +49 -49
  70. package/fesm2022/list.mjs.map +1 -1
  71. package/fesm2022/menu.mjs +22 -22
  72. package/fesm2022/menu.mjs.map +1 -1
  73. package/fesm2022/paginator.mjs +10 -10
  74. package/fesm2022/paginator.mjs.map +1 -1
  75. package/fesm2022/progress-bar.mjs +7 -7
  76. package/fesm2022/progress-bar.mjs.map +1 -1
  77. package/fesm2022/progress-spinner.mjs +7 -7
  78. package/fesm2022/progress-spinner.mjs.map +1 -1
  79. package/fesm2022/radio.mjs +10 -10
  80. package/fesm2022/radio.mjs.map +1 -1
  81. package/fesm2022/select.mjs +10 -10
  82. package/fesm2022/select.mjs.map +1 -1
  83. package/fesm2022/sidenav.mjs +22 -22
  84. package/fesm2022/sidenav.mjs.map +1 -1
  85. package/fesm2022/slide-toggle.mjs +7 -7
  86. package/fesm2022/slide-toggle.mjs.map +1 -1
  87. package/fesm2022/slider.mjs +16 -16
  88. package/fesm2022/slider.mjs.map +1 -1
  89. package/fesm2022/snack-bar.mjs +26 -26
  90. package/fesm2022/snack-bar.mjs.map +1 -1
  91. package/fesm2022/sort.mjs +13 -13
  92. package/fesm2022/sort.mjs.map +1 -1
  93. package/fesm2022/stepper.mjs +31 -31
  94. package/fesm2022/stepper.mjs.map +1 -1
  95. package/fesm2022/table.mjs +65 -65
  96. package/fesm2022/table.mjs.map +1 -1
  97. package/fesm2022/tabs.mjs +82 -69
  98. package/fesm2022/tabs.mjs.map +1 -1
  99. package/fesm2022/timepicker.mjs +13 -13
  100. package/fesm2022/timepicker.mjs.map +1 -1
  101. package/fesm2022/toolbar.mjs +10 -10
  102. package/fesm2022/toolbar.mjs.map +1 -1
  103. package/fesm2022/tooltip.mjs +4 -4
  104. package/fesm2022/tooltip.mjs.map +1 -1
  105. package/fesm2022/tree.mjs +27 -27
  106. package/fesm2022/tree.mjs.map +1 -1
  107. package/package.json +6 -6
  108. package/schematics/ng-add/index.js +2 -2
  109. package/types/autocomplete.d.ts +1 -1
  110. package/types/button-testing.d.ts +3 -0
  111. package/types/button.d.ts +8 -6
  112. package/types/checkbox.d.ts +1 -1
  113. package/types/datepicker.d.ts +7 -7
  114. package/types/dialog.d.ts +1 -1
  115. package/types/expansion.d.ts +28 -2
  116. package/types/list.d.ts +1 -1
  117. package/types/select.d.ts +1 -1
  118. package/types/slide-toggle.d.ts +1 -1
  119. package/types/tabs.d.ts +11 -4
package/types/button.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { FocusOrigin } from '@angular/cdk/a11y';
2
1
  import * as i0 from '@angular/core';
3
2
  import { InjectionToken, AfterViewInit, OnDestroy, ElementRef, NgZone } from '@angular/core';
3
+ import { FocusOrigin } from '@angular/cdk/a11y';
4
4
  import { ThemePalette } from './_palette-chunk.js';
5
5
  import { MatRippleLoader } from './_ripple-loader-chunk.js';
6
6
  import { MatRippleModule } from './_ripple-module-chunk.js';
@@ -81,6 +81,8 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
81
81
  * @docs-private
82
82
  */
83
83
  set _tabindex(value: number);
84
+ /** Whether the button is showing a progress indicator. */
85
+ readonly showProgress: i0.InputSignalWithTransform<boolean, unknown>;
84
86
  constructor(...args: unknown[]);
85
87
  ngAfterViewInit(): void;
86
88
  ngOnDestroy(): void;
@@ -92,7 +94,7 @@ declare class MatButtonBase implements AfterViewInit, OnDestroy {
92
94
  protected _getTabIndex(): number;
93
95
  private _setupAsAnchor;
94
96
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonBase, never>;
95
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "_tabindex": { "alias": "tabindex"; "required": false; }; }, {}, never, never, true, never>;
97
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; }; "disabledInteractive": { "alias": "disabledInteractive"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "_tabindex": { "alias": "tabindex"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
96
98
  static ngAcceptInputType_disableRipple: unknown;
97
99
  static ngAcceptInputType_disabled: unknown;
98
100
  static ngAcceptInputType_ariaDisabled: unknown;
@@ -114,7 +116,7 @@ declare class MatButton extends MatButtonBase {
114
116
  /** Programmatically sets the appearance of the button. */
115
117
  setAppearance(appearance: MatButtonAppearance): void;
116
118
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButton, never>;
117
- static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", ["matButton", "matAnchor"], { "appearance": { "alias": "matButton"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
119
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", ["matButton", "matAnchor"], { "appearance": { "alias": "matButton"; "required": false; }; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]", "[progressIndicator]"], true, never>;
118
120
  }
119
121
  /**
120
122
  * Material Design button component for anchor elements. Anchor elements are used to provide
@@ -150,7 +152,7 @@ declare class MatFabButton extends MatButtonBase {
150
152
  extended: boolean;
151
153
  constructor(...args: unknown[]);
152
154
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFabButton, never>;
153
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", ["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]"], true, never>;
155
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", ["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]", "[progressIndicator]"], true, never>;
154
156
  static ngAcceptInputType_extended: unknown;
155
157
  }
156
158
  /**
@@ -163,7 +165,7 @@ declare class MatMiniFabButton extends MatButtonBase {
163
165
  _isFab: boolean;
164
166
  constructor(...args: unknown[]);
165
167
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabButton, never>;
166
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], true, never>;
168
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", ["matButton", "matAnchor"], {}, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]", "[progressIndicator]"], true, never>;
167
169
  }
168
170
  /**
169
171
  * Material Design floating action button (FAB) component for anchor elements. Anchor elements
@@ -190,7 +192,7 @@ type MatMiniFabAnchor = MatMiniFabButton;
190
192
  declare class MatIconButton extends MatButtonBase {
191
193
  constructor(...args: unknown[]);
192
194
  static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, never>;
193
- static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", ["matButton", "matAnchor"], {}, {}, never, ["*"], true, never>;
195
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", ["matButton", "matAnchor"], {}, {}, never, ["*", "[progressIndicator]"], true, never>;
194
196
  }
195
197
  /**
196
198
  * Material Design icon button component for anchor elements. This button displays a single
@@ -113,7 +113,7 @@ declare class MatCheckbox implements AfterViewInit, OnChanges, ControlValueAcces
113
113
  private _controlValueAccessorChangeFn;
114
114
  private _validatorChangeFn;
115
115
  constructor(...args: unknown[]);
116
- ngOnChanges(changes: SimpleChanges): void;
116
+ ngOnChanges(changes: SimpleChanges<this>): void;
117
117
  ngAfterViewInit(): void;
118
118
  /** Whether the checkbox is checked. */
119
119
  get checked(): boolean;
@@ -138,7 +138,7 @@ declare class MatCalendarBody<D = any> implements OnChanges, OnDestroy, AfterVie
138
138
  _emitActiveDateChange(cell: MatCalendarCell, event: FocusEvent): void;
139
139
  /** Returns whether a cell should be marked as selected. */
140
140
  _isSelected(value: number): boolean;
141
- ngOnChanges(changes: SimpleChanges): void;
141
+ ngOnChanges(changes: SimpleChanges<this>): void;
142
142
  ngOnDestroy(): void;
143
143
  /** Returns whether a cell is active. */
144
144
  _isActiveCell(rowIndex: number, colIndex: number): boolean;
@@ -433,7 +433,7 @@ declare class MatMonthView<D> implements AfterContentInit, OnChanges, OnDestroy
433
433
  }[]>;
434
434
  constructor(...args: unknown[]);
435
435
  ngAfterContentInit(): void;
436
- ngOnChanges(changes: SimpleChanges): void;
436
+ ngOnChanges(changes: SimpleChanges<this>): void;
437
437
  ngOnDestroy(): void;
438
438
  /** Handles when a new date is selected. */
439
439
  _dateSelected(event: MatCalendarUserEvent<number>): void;
@@ -842,7 +842,7 @@ declare class MatCalendar<D> implements AfterContentInit, AfterViewChecked, OnDe
842
842
  ngAfterContentInit(): void;
843
843
  ngAfterViewChecked(): void;
844
844
  ngOnDestroy(): void;
845
- ngOnChanges(changes: SimpleChanges): void;
845
+ ngOnChanges(changes: SimpleChanges<this>): void;
846
846
  /** Focuses the active date. */
847
847
  focusActiveCell(): void;
848
848
  /** Updates today's date after an update of the active date */
@@ -956,7 +956,7 @@ declare abstract class MatDatepickerInputBase<S, D = ExtractDateTypeFromSelectio
956
956
  protected _lastValueValid: boolean;
957
957
  constructor(...args: unknown[]);
958
958
  ngAfterViewInit(): void;
959
- ngOnChanges(changes: SimpleChanges): void;
959
+ ngOnChanges(changes: SimpleChanges<this>): void;
960
960
  ngOnDestroy(): void;
961
961
  /** @docs-private */
962
962
  registerOnValidatorChange(fn: () => void): void;
@@ -1215,7 +1215,7 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
1215
1215
  readonly stateChanges: Subject<void>;
1216
1216
  private readonly _changeDetectorRef;
1217
1217
  constructor(...args: unknown[]);
1218
- ngOnChanges(changes: SimpleChanges): void;
1218
+ ngOnChanges(changes: SimpleChanges<this>): void;
1219
1219
  ngOnDestroy(): void;
1220
1220
  /** Selects the given date */
1221
1221
  select(date: D): void;
@@ -1410,7 +1410,7 @@ declare class MatDatepickerToggle<D> implements AfterContentInit, OnChanges, OnD
1410
1410
  /** Underlying button element. */
1411
1411
  _button: MatButton;
1412
1412
  constructor(...args: unknown[]);
1413
- ngOnChanges(changes: SimpleChanges): void;
1413
+ ngOnChanges(changes: SimpleChanges<this>): void;
1414
1414
  ngOnDestroy(): void;
1415
1415
  ngAfterContentInit(): void;
1416
1416
  _open(event: Event): void;
@@ -1621,7 +1621,7 @@ declare class MatDateRangeInput<D> implements MatFormFieldControl<DateRange<D>>,
1621
1621
  */
1622
1622
  onContainerClick(): void;
1623
1623
  ngAfterContentInit(): void;
1624
- ngOnChanges(changes: SimpleChanges): void;
1624
+ ngOnChanges(changes: SimpleChanges<this>): void;
1625
1625
  ngOnDestroy(): void;
1626
1626
  /** Gets the date at which the calendar should start. */
1627
1627
  getStartValue(): D | null;
package/types/dialog.d.ts CHANGED
@@ -26,7 +26,7 @@ declare class MatDialogClose implements OnInit, OnChanges {
26
26
  _matDialogClose: any;
27
27
  constructor(...args: unknown[]);
28
28
  ngOnInit(): void;
29
- ngOnChanges(changes: SimpleChanges): void;
29
+ ngOnChanges(changes: SimpleChanges<this>): void;
30
30
  _onButtonClick(event: MouseEvent): void;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogClose, never>;
32
32
  static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogClose, "[mat-dialog-close], [matDialogClose]", ["matDialogClose"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dialogResult": { "alias": "mat-dialog-close"; "required": false; }; "_matDialogClose": { "alias": "matDialogClose"; "required": false; }; }, {}, never, never, true, never>;
@@ -105,7 +105,33 @@ declare class MatExpansionPanel extends CdkAccordionItem implements AfterContent
105
105
  readonly afterCollapse: EventEmitter<void>;
106
106
  /** Stream that emits for changes in `@Input` properties. */
107
107
  readonly _inputChanges: Subject<{
108
- [propName: string]: i0.SimpleChange<any>;
108
+ hideToggle?: i0.SimpleChange<boolean> | undefined;
109
+ togglePosition?: i0.SimpleChange<MatAccordionTogglePosition> | undefined;
110
+ readonly afterExpand?: i0.SimpleChange<EventEmitter<void>> | undefined;
111
+ readonly afterCollapse?: i0.SimpleChange<EventEmitter<void>> | undefined;
112
+ readonly _inputChanges?: i0.SimpleChange<Subject</*elided*/ any>> | undefined;
113
+ accordion?: i0.SimpleChange<MatAccordionBase> | undefined;
114
+ _lazyContent?: i0.SimpleChange<MatExpansionPanelContent> | undefined;
115
+ _body?: i0.SimpleChange<ElementRef<HTMLElement>> | undefined;
116
+ _portal?: i0.SimpleChange<TemplatePortal<any>> | undefined;
117
+ _headerId?: i0.SimpleChange<string> | undefined;
118
+ _hasSpacing?: i0.SimpleChange<() => boolean> | undefined;
119
+ _getExpandedState?: i0.SimpleChange<() => MatExpansionPanelState> | undefined;
120
+ toggle?: i0.SimpleChange<() => void> | undefined;
121
+ close?: i0.SimpleChange<() => void> | undefined;
122
+ open?: i0.SimpleChange<() => void> | undefined;
123
+ ngAfterContentInit?: i0.SimpleChange<() => void> | undefined;
124
+ ngOnChanges?: i0.SimpleChange<(changes: /*elided*/ any) => void> | undefined;
125
+ ngOnDestroy?: i0.SimpleChange<() => void> | undefined;
126
+ _containsFocus?: i0.SimpleChange<() => boolean> | undefined;
127
+ readonly closed?: i0.SimpleChange<EventEmitter<void>> | undefined;
128
+ readonly opened?: i0.SimpleChange<EventEmitter<void>> | undefined;
129
+ readonly destroyed?: i0.SimpleChange<EventEmitter<void>> | undefined;
130
+ readonly expandedChange?: i0.SimpleChange<EventEmitter<boolean>> | undefined;
131
+ readonly id?: i0.SimpleChange<string> | undefined;
132
+ expanded?: i0.SimpleChange<boolean> | undefined;
133
+ disabled?: i0.SimpleChange<boolean> | undefined;
134
+ ngOnInit?: i0.SimpleChange<() => void> | undefined;
109
135
  }>;
110
136
  /** Optionally defined accordion the expansion panel belongs to. */
111
137
  accordion: MatAccordionBase;
@@ -131,7 +157,7 @@ declare class MatExpansionPanel extends CdkAccordionItem implements AfterContent
131
157
  /** Sets the expanded state of the expansion panel to true. */
132
158
  open(): void;
133
159
  ngAfterContentInit(): void;
134
- ngOnChanges(changes: SimpleChanges): void;
160
+ ngOnChanges(changes: SimpleChanges<this>): void;
135
161
  ngOnDestroy(): void;
136
162
  /** Checks whether the expansion panel's content contains the currently-focused element. */
137
163
  _containsFocus(): boolean;
package/types/list.d.ts CHANGED
@@ -419,7 +419,7 @@ declare class MatSelectionList extends MatListBase implements SelectionList, Con
419
419
  private readonly _changeDetectorRef;
420
420
  constructor(...args: unknown[]);
421
421
  ngAfterViewInit(): void;
422
- ngOnChanges(changes: SimpleChanges): void;
422
+ ngOnChanges(changes: SimpleChanges<this>): void;
423
423
  ngOnDestroy(): void;
424
424
  /** Focuses the selection list. */
425
425
  focus(options?: FocusOptions): void;
package/types/select.d.ts CHANGED
@@ -259,7 +259,7 @@ declare class MatSelect implements AfterContentInit, OnChanges, OnDestroy, OnIni
259
259
  ngOnInit(): void;
260
260
  ngAfterContentInit(): void;
261
261
  ngDoCheck(): void;
262
- ngOnChanges(changes: SimpleChanges): void;
262
+ ngOnChanges(changes: SimpleChanges<this>): void;
263
263
  ngOnDestroy(): void;
264
264
  /** Toggles the overlay panel open or closed. */
265
265
  toggle(): void;
@@ -107,7 +107,7 @@ declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnChanges,
107
107
  get inputId(): string;
108
108
  constructor(...args: unknown[]);
109
109
  ngAfterContentInit(): void;
110
- ngOnChanges(changes: SimpleChanges): void;
110
+ ngOnChanges(changes: SimpleChanges<this>): void;
111
111
  ngOnDestroy(): void;
112
112
  /** Implemented as part of ControlValueAccessor. */
113
113
  writeValue(value: any): void;
package/types/tabs.d.ts CHANGED
@@ -100,7 +100,7 @@ declare class MatTab implements OnInit, OnChanges, OnDestroy {
100
100
  */
101
101
  isActive: boolean;
102
102
  constructor(...args: unknown[]);
103
- ngOnChanges(changes: SimpleChanges): void;
103
+ ngOnChanges(changes: SimpleChanges<this>): void;
104
104
  ngOnDestroy(): void;
105
105
  ngOnInit(): void;
106
106
  /**
@@ -530,6 +530,11 @@ interface MatTabGroupBaseHeader {
530
530
  }
531
531
  /** Possible positions for the tab header. */
532
532
  type MatTabHeaderPosition = 'above' | 'below';
533
+ /** Possible values for the animation duration of a tab group. */
534
+ type MatTabGroupAnimationDuration = string | number | {
535
+ body: string | number;
536
+ header: string | number;
537
+ };
533
538
  /**
534
539
  * Material design tab-group component. Supports basic tab pairs (label + content) and includes
535
540
  * animated ink-bar, keyboard navigation, and screen reader.
@@ -543,6 +548,8 @@ declare class MatTabGroup implements AfterViewInit, AfterContentInit, AfterConte
543
548
  private _tabLabelSubscription;
544
549
  private _tabBodySubscription;
545
550
  private _diAnimationsDisabled;
551
+ protected _bodyAnimationDuration: string;
552
+ protected _headerAnimationDuration: string;
546
553
  /**
547
554
  * All tabs inside the tab group. This includes tabs that belong to groups that are nested
548
555
  * inside the current one. We filter out only the tabs that belong to this group in `_tabs`.
@@ -584,8 +591,8 @@ declare class MatTabGroup implements AfterViewInit, AfterContentInit, AfterConte
584
591
  /** Position of the tab header. */
585
592
  headerPosition: MatTabHeaderPosition;
586
593
  /** Duration for the tab animation. Will be normalized to milliseconds if no units are set. */
587
- get animationDuration(): string;
588
- set animationDuration(value: string | number);
594
+ get animationDuration(): MatTabGroupAnimationDuration;
595
+ set animationDuration(value: MatTabGroupAnimationDuration);
589
596
  private _animationDuration;
590
597
  /**
591
598
  * `tabindex` to be set on the inner element that wraps the tab content. Can be used for improved
@@ -698,7 +705,7 @@ declare class MatTabGroup implements AfterViewInit, AfterContentInit, AfterConte
698
705
  * @param isCenter Whether the tab will be in the center.
699
706
  */
700
707
  protected _bodyCentered(isCenter: boolean): void;
701
- protected _animationsDisabled(): boolean;
708
+ protected _bodyAnimationsDisabled(): boolean;
702
709
  static ɵfac: i0.ɵɵFactoryDeclaration<MatTabGroup, never>;
703
710
  static ɵcmp: i0.ɵɵComponentDeclaration<MatTabGroup, "mat-tab-group", ["matTabGroup"], { "color": { "alias": "color"; "required": false; }; "fitInkBarToContent": { "alias": "fitInkBarToContent"; "required": false; }; "stretchTabs": { "alias": "mat-stretch-tabs"; "required": false; }; "alignTabs": { "alias": "mat-align-tabs"; "required": false; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "headerPosition": { "alias": "headerPosition"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; "contentTabIndex": { "alias": "contentTabIndex"; "required": false; }; "disablePagination": { "alias": "disablePagination"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "preserveContent": { "alias": "preserveContent"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; "focusChange": "focusChange"; "animationDone": "animationDone"; "selectedTabChange": "selectedTabChange"; }, ["_allTabs"], ["*"], true, never>;
704
711
  static ngAcceptInputType_fitInkBarToContent: unknown;