@angular/material 19.1.0-next.2 → 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 (95) hide show
  1. package/LICENSE +1 -1
  2. package/autocomplete/index.d.ts +6 -6
  3. package/badge/index.d.ts +2 -2
  4. package/button/index.d.ts +6 -4
  5. package/checkbox/index.d.ts +4 -4
  6. package/chips/index.d.ts +3 -3
  7. package/core/theming/_theming.scss +1 -1
  8. package/datepicker/index.d.ts +16 -39
  9. package/expansion/index.d.ts +2 -0
  10. package/fesm2022/autocomplete.mjs +54 -50
  11. package/fesm2022/autocomplete.mjs.map +1 -1
  12. package/fesm2022/badge.mjs +12 -12
  13. package/fesm2022/badge.mjs.map +1 -1
  14. package/fesm2022/bottom-sheet.mjs +10 -10
  15. package/fesm2022/button-toggle.mjs +10 -10
  16. package/fesm2022/button.mjs +41 -39
  17. package/fesm2022/button.mjs.map +1 -1
  18. package/fesm2022/card.mjs +46 -46
  19. package/fesm2022/checkbox.mjs +16 -16
  20. package/fesm2022/checkbox.mjs.map +1 -1
  21. package/fesm2022/chips.mjs +42 -42
  22. package/fesm2022/chips.mjs.map +1 -1
  23. package/fesm2022/core.mjs +65 -65
  24. package/fesm2022/core.mjs.map +1 -1
  25. package/fesm2022/datepicker.mjs +790 -798
  26. package/fesm2022/datepicker.mjs.map +1 -1
  27. package/fesm2022/dialog.mjs +25 -25
  28. package/fesm2022/divider.mjs +7 -7
  29. package/fesm2022/expansion.mjs +30 -28
  30. package/fesm2022/expansion.mjs.map +1 -1
  31. package/fesm2022/form-field.mjs +41 -39
  32. package/fesm2022/form-field.mjs.map +1 -1
  33. package/fesm2022/grid-list.mjs +22 -22
  34. package/fesm2022/icon/testing.mjs +7 -7
  35. package/fesm2022/icon.mjs +12 -12
  36. package/fesm2022/icon.mjs.map +1 -1
  37. package/fesm2022/input.mjs +26 -32
  38. package/fesm2022/input.mjs.map +1 -1
  39. package/fesm2022/list.mjs +63 -59
  40. package/fesm2022/list.mjs.map +1 -1
  41. package/fesm2022/menu.mjs +178 -133
  42. package/fesm2022/menu.mjs.map +1 -1
  43. package/fesm2022/paginator.mjs +21 -24
  44. package/fesm2022/paginator.mjs.map +1 -1
  45. package/fesm2022/progress-bar.mjs +14 -12
  46. package/fesm2022/progress-bar.mjs.map +1 -1
  47. package/fesm2022/progress-spinner.mjs +9 -9
  48. package/fesm2022/progress-spinner.mjs.map +1 -1
  49. package/fesm2022/radio.mjs +19 -18
  50. package/fesm2022/radio.mjs.map +1 -1
  51. package/fesm2022/select.mjs +10 -10
  52. package/fesm2022/select.mjs.map +1 -1
  53. package/fesm2022/sidenav.mjs +138 -114
  54. package/fesm2022/sidenav.mjs.map +1 -1
  55. package/fesm2022/slide-toggle.mjs +16 -16
  56. package/fesm2022/slide-toggle.mjs.map +1 -1
  57. package/fesm2022/slider.mjs +40 -41
  58. package/fesm2022/slider.mjs.map +1 -1
  59. package/fesm2022/snack-bar.mjs +22 -22
  60. package/fesm2022/sort.mjs +14 -14
  61. package/fesm2022/sort.mjs.map +1 -1
  62. package/fesm2022/stepper.mjs +37 -37
  63. package/fesm2022/stepper.mjs.map +1 -1
  64. package/fesm2022/table.mjs +59 -70
  65. package/fesm2022/table.mjs.map +1 -1
  66. package/fesm2022/tabs.mjs +66 -74
  67. package/fesm2022/tabs.mjs.map +1 -1
  68. package/fesm2022/timepicker.mjs +21 -17
  69. package/fesm2022/timepicker.mjs.map +1 -1
  70. package/fesm2022/toolbar.mjs +12 -12
  71. package/fesm2022/toolbar.mjs.map +1 -1
  72. package/fesm2022/tooltip.mjs +37 -28
  73. package/fesm2022/tooltip.mjs.map +1 -1
  74. package/fesm2022/tree.mjs +25 -25
  75. package/form-field/index.d.ts +5 -4
  76. package/icon/index.d.ts +4 -4
  77. package/input/index.d.ts +8 -5
  78. package/list/index.d.ts +8 -5
  79. package/menu/index.d.ts +13 -14
  80. package/package.json +2 -2
  81. package/paginator/index.d.ts +5 -5
  82. package/progress-bar/index.d.ts +6 -4
  83. package/progress-spinner/index.d.ts +4 -4
  84. package/radio/index.d.ts +8 -6
  85. package/schematics/ng-add/index.js +1 -1
  86. package/schematics/ng-add/index.mjs +1 -1
  87. package/select/index.d.ts +1 -1
  88. package/sidenav/index.d.ts +12 -10
  89. package/slide-toggle/index.d.ts +4 -4
  90. package/slider/index.d.ts +6 -3
  91. package/stepper/index.d.ts +6 -6
  92. package/tabs/index.d.ts +12 -10
  93. package/timepicker/index.d.ts +1 -0
  94. package/toolbar/index.d.ts +2 -2
  95. package/tooltip/index.d.ts +3 -0
@@ -1,7 +1,5 @@
1
- import { AfterContentChecked } from '@angular/core';
2
1
  import { AfterContentInit } from '@angular/core';
3
2
  import { AfterViewInit } from '@angular/core';
4
- import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
5
3
  import { AnimationTriggerMetadata } from '@angular/animations';
6
4
  import { BooleanInput } from '@angular/cdk/coercion';
7
5
  import { CdkScrollable } from '@angular/cdk/scrolling';
@@ -60,19 +58,19 @@ export declare function MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY(): boolean;
60
58
  /**
61
59
  * This component corresponds to a drawer that can be opened on the drawer container.
62
60
  */
63
- export declare class MatDrawer implements AfterViewInit, AfterContentChecked, OnDestroy {
61
+ export declare class MatDrawer implements AfterViewInit, OnDestroy {
64
62
  private _elementRef;
65
63
  private _focusTrapFactory;
66
64
  private _focusMonitor;
67
65
  private _platform;
68
66
  private _ngZone;
67
+ private _renderer;
69
68
  private readonly _interactivityChecker;
70
69
  private _doc;
71
70
  _container?: MatDrawerContainer | null | undefined;
72
71
  private _focusTrap;
73
72
  private _elementFocusedBeforeDrawerWasOpened;
74
- /** Whether the drawer is initialized. Used for disabling the initial animation. */
75
- private _enableAnimations;
73
+ private _eventCleanups;
76
74
  /** Whether the view of the component has been attached. */
77
75
  private _isAttached;
78
76
  /** Anchor node used to restore the drawer to its initial position. */
@@ -109,11 +107,9 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
109
107
  /** How the sidenav was opened (keypress, mouse click etc.) */
110
108
  private _openedVia;
111
109
  /** Emits whenever the drawer has started animating. */
112
- readonly _animationStarted: Subject<AnimationEvent_2>;
110
+ readonly _animationStarted: Subject<unknown>;
113
111
  /** Emits whenever the drawer is done animating. */
114
- readonly _animationEnd: Subject<AnimationEvent_2>;
115
- /** Current state of the sidenav animation. */
116
- _animationState: 'open-instant' | 'open' | 'void';
112
+ readonly _animationEnd: Subject<unknown>;
117
113
  /** Event emitted when the drawer open state is changed. */
118
114
  readonly openedChange: EventEmitter<boolean>;
119
115
  /** Event emitted when the drawer has been opened. */
@@ -162,7 +158,6 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
162
158
  /** Whether focus is currently within the drawer. */
163
159
  private _isFocusWithinDrawer;
164
160
  ngAfterViewInit(): void;
165
- ngAfterContentChecked(): void;
166
161
  ngOnDestroy(): void;
167
162
  /**
168
163
  * Open the drawer.
@@ -188,6 +183,8 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
188
183
  * @param focusOrigin Origin to use when restoring focus.
189
184
  */
190
185
  private _setOpen;
186
+ /** Toggles whether the drawer is currently animating. */
187
+ private _setIsAnimating;
191
188
  _getWidth(): number;
192
189
  /** Updates the enabled state of the focus trap. */
193
190
  private _updateFocusTrapState;
@@ -198,6 +195,8 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
198
195
  * started off as `end` and was changed to `start`.
199
196
  */
200
197
  private _updatePositionInParent;
198
+ /** Event handler for animation events. */
199
+ private _handleTransitionEvent;
201
200
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawer, never>;
202
201
  static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawer, "mat-drawer", ["matDrawer"], { "position": { "alias": "position"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, { "openedChange": "openedChange"; "_openedStream": "opened"; "openedStart": "openedStart"; "_closedStream": "closed"; "closedStart": "closedStart"; "onPositionChanged": "positionChanged"; }, never, ["*"], true, never>;
203
202
  }
@@ -205,6 +204,8 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
205
204
  /**
206
205
  * Animations used by the Material drawers.
207
206
  * @docs-private
207
+ * @deprecated No longer used, will be removed.
208
+ * @breaking-change 21.0.0
208
209
  */
209
210
  export declare const matDrawerAnimations: {
210
211
  readonly transformDrawer: AnimationTriggerMetadata;
@@ -222,6 +223,7 @@ export declare class MatDrawerContainer implements AfterContentInit, DoCheck, On
222
223
  private _ngZone;
223
224
  private _changeDetectorRef;
224
225
  private _animationMode;
226
+ _transitionsEnabled: boolean;
225
227
  /** All drawers in the container. Includes drawers from inside nested containers. */
226
228
  _allDrawers: QueryList<MatDrawer>;
227
229
  /** Drawers that belong to this container. */
@@ -91,10 +91,10 @@ export declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnCh
91
91
  required: boolean;
92
92
  /**
93
93
  * Theme color of the slide toggle. This API is supported in M2 themes only,
94
- * it has no effect in M3 themes.
94
+ * it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slide-toggle/styling.
95
95
  *
96
96
  * For information on applying color variants in M3, see
97
- * https://material.angular.io/guide/theming#using-component-color-variants.
97
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
98
98
  */
99
99
  color: string | undefined;
100
100
  /** Whether the slide toggle is disabled. */
@@ -175,10 +175,10 @@ export declare interface MatSlideToggleDefaultOptions {
175
175
  disableToggleValue?: boolean;
176
176
  /**
177
177
  * Default theme color of the slide toggle. This API is supported in M2 themes only,
178
- * it has no effect in M3 themes.
178
+ * it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slide-toggle/styling.
179
179
  *
180
180
  * For information on applying color variants in M3, see
181
- * https://material.angular.io/guide/theming#using-component-color-variants.
181
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
182
182
  */
183
183
  color?: ThemePalette;
184
184
  /** Whether to hide the icon inside the slide toggle. */
package/slider/index.d.ts CHANGED
@@ -82,10 +82,10 @@ export declare class MatSlider implements AfterViewInit, OnDestroy, _MatSlider {
82
82
  private _min;
83
83
  /**
84
84
  * Theme color of the slider. This API is supported in M2 themes only, it
85
- * has no effect in M3 themes.
85
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slider/styling.
86
86
  *
87
87
  * For information on applying color variants in M3, see
88
- * https://material.angular.io/guide/theming#using-component-color-variants.
88
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
89
89
  */
90
90
  color: ThemePalette;
91
91
  /** Whether ripples are disabled in the slider. */
@@ -374,6 +374,8 @@ export declare class MatSliderThumb implements _MatSliderThumb, OnDestroy, Contr
374
374
  readonly _elementRef: ElementRef<HTMLInputElement>;
375
375
  readonly _cdr: ChangeDetectorRef;
376
376
  protected _slider: _MatSlider;
377
+ private _platform;
378
+ private _listenerCleanups;
377
379
  get value(): number;
378
380
  set value(value: number);
379
381
  /**
@@ -461,7 +463,6 @@ export declare class MatSliderThumb implements _MatSliderThumb, OnDestroy, Contr
461
463
  * See https://github.com/angular/angular/issues/14988.
462
464
  */
463
465
  protected _isControlInitialized: boolean;
464
- private _platform;
465
466
  constructor(...args: unknown[]);
466
467
  ngOnDestroy(): void;
467
468
  /** @docs-private */
@@ -601,6 +602,8 @@ export declare class MatSliderVisualThumb implements _MatSliderVisualThumb, Afte
601
602
  readonly _cdr: ChangeDetectorRef;
602
603
  private readonly _ngZone;
603
604
  private _slider;
605
+ private _renderer;
606
+ private _listenerCleanups;
604
607
  /** Whether the slider displays a numeric value label upon pressing the thumb. */
605
608
  discrete: boolean;
606
609
  /** Indicates which slider thumb this input corresponds to. */
@@ -86,10 +86,10 @@ export declare class MatStep extends CdkStep implements ErrorStateMatcher, After
86
86
  stepLabel: MatStepLabel;
87
87
  /**
88
88
  * Theme color for the particular step. This API is supported in M2 themes
89
- * only, it has no effect in M3 themes.
89
+ * only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/stepper/styling.
90
90
  *
91
91
  * For information on applying color variants in M3, see
92
- * https://material.angular.io/guide/theming#using-component-color-variants.
92
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
93
93
  */
94
94
  color: ThemePalette;
95
95
  /** Content that will be rendered lazily. */
@@ -140,10 +140,10 @@ export declare class MatStepHeader extends CdkStepHeader implements AfterViewIni
140
140
  disableRipple: boolean;
141
141
  /**
142
142
  * Theme color of the step header. This API is supported in M2 themes only, it
143
- * has no effect in M3 themes.
143
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/stepper/styling.
144
144
  *
145
145
  * For information on applying color variants in M3, see
146
- * https://material.angular.io/guide/theming#using-component-color-variants.
146
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
147
147
  */
148
148
  color: ThemePalette;
149
149
  constructor(...args: unknown[]);
@@ -184,10 +184,10 @@ export declare class MatStepper extends CdkStepper implements AfterContentInit {
184
184
  disableRipple: boolean;
185
185
  /**
186
186
  * Theme color for all of the steps in stepper. This API is supported in M2
187
- * themes only, it has no effect in M3 themes.
187
+ * themes only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/stepper/styling.
188
188
  *
189
189
  * For information on applying color variants in M3, see
190
- * https://material.angular.io/guide/theming#using-component-color-variants.
190
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
191
191
  */
192
192
  color: ThemePalette;
193
193
  /**
package/tabs/index.d.ts CHANGED
@@ -181,7 +181,11 @@ export declare abstract class MatPaginatedTabHeader implements AfterContentCheck
181
181
  private _dir;
182
182
  private _ngZone;
183
183
  private _platform;
184
+ private _sharedResizeObserver;
185
+ private _injector;
186
+ private _renderer;
184
187
  _animationMode: "NoopAnimations" | "BrowserAnimations" | null;
188
+ private _eventCleanups;
185
189
  abstract _items: QueryList<MatPaginatedTabHeaderItem>;
186
190
  abstract _inkBar: {
187
191
  hide: () => void;
@@ -230,8 +234,6 @@ export declare abstract class MatPaginatedTabHeader implements AfterContentCheck
230
234
  readonly selectFocusedIndex: EventEmitter<number>;
231
235
  /** Event emitted when a label is focused. */
232
236
  readonly indexFocused: EventEmitter<number>;
233
- private _sharedResizeObserver;
234
- private _injector;
235
237
  constructor(...args: unknown[]);
236
238
  /** Called when the user has selected an item via the keyboard. */
237
239
  protected abstract _itemSelected(event: KeyboardEvent): void;
@@ -558,10 +560,10 @@ export declare class MatTabGroup implements AfterContentInit, AfterContentChecke
558
560
  private _tabLabelSubscription;
559
561
  /**
560
562
  * Theme color of the tab group. This API is supported in M2 themes only, it
561
- * has no effect in M3 themes.
563
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/tabs/styling.
562
564
  *
563
565
  * For information on applying color variants in M3, see
564
- * https://material.angular.io/guide/theming#using-component-color-variants.
566
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
565
567
  */
566
568
  color: ThemePalette;
567
569
  /** Whether the ink bar should fit its width to the size of the tab label content. */
@@ -608,10 +610,10 @@ export declare class MatTabGroup implements AfterContentInit, AfterContentChecke
608
610
  preserveContent: boolean;
609
611
  /**
610
612
  * Theme color of the background of the tab group. This API is supported in M2 themes only, it
611
- * has no effect in M3 themes.
613
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/tabs/styling.
612
614
  *
613
615
  * For information on applying color variants in M3, see
614
- * https://material.angular.io/guide/theming#using-component-color-variants.
616
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
615
617
  *
616
618
  * @deprecated The background color should be customized through Sass theming APIs.
617
619
  * @breaking-change 20.0.0 Remove this input
@@ -833,10 +835,10 @@ export declare class MatTabNav extends MatPaginatedTabHeader implements AfterCon
833
835
  _items: QueryList<MatTabLink>;
834
836
  /**
835
837
  * Theme color of the background of the tab nav. This API is supported in M2 themes only, it
836
- * has no effect in M3 themes.
838
+ * has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/tabs/styling.
837
839
  *
838
840
  * For information on applying color variants in M3, see
839
- * https://material.angular.io/guide/theming#using-component-color-variants.
841
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
840
842
  */
841
843
  get backgroundColor(): ThemePalette;
842
844
  set backgroundColor(value: ThemePalette);
@@ -845,10 +847,10 @@ export declare class MatTabNav extends MatPaginatedTabHeader implements AfterCon
845
847
  disableRipple: boolean;
846
848
  /**
847
849
  * Theme color of the nav bar. This API is supported in M2 themes only, it has
848
- * no effect in M3 themes.
850
+ * no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/tabs/styling.
849
851
  *
850
852
  * For information on applying color variants in M3, see
851
- * https://material.angular.io/guide/theming#using-component-color-variants.
853
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
852
854
  */
853
855
  color: ThemePalette;
854
856
  /**
@@ -152,6 +152,7 @@ export declare class MatTimepickerInput<D> implements ControlValueAccessor, Vali
152
152
  private _onChange;
153
153
  private _onTouched;
154
154
  private _validatorOnChange;
155
+ private _cleanupClick;
155
156
  private _accessorDisabled;
156
157
  private _localeSubscription;
157
158
  private _timepickerSubscription;
@@ -18,10 +18,10 @@ export declare class MatToolbar implements AfterViewInit {
18
18
  private _document;
19
19
  /**
20
20
  * Theme color of the toolbar. This API is supported in M2 themes only, it has
21
- * no effect in M3 themes.
21
+ * no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/toolbar/styling.
22
22
  *
23
23
  * For information on applying color variants in M3, see
24
- * https://material.angular.io/guide/theming#using-component-color-variants.
24
+ * https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
25
25
  */
26
26
  color?: string | null;
27
27
  /** Reference to all toolbar row elements that have been projected. */
@@ -96,6 +96,7 @@ export declare class MatTooltip implements OnDestroy, AfterViewInit {
96
96
  private _currentPosition;
97
97
  private readonly _cssClassPrefix;
98
98
  private _ariaDescriptionPending;
99
+ private _dirSubscribed;
99
100
  /** Allows the user to define the position of the tooltip relative to the parent element */
100
101
  get position(): TooltipPosition;
101
102
  set position(value: TooltipPosition);
@@ -150,6 +151,8 @@ export declare class MatTooltip implements OnDestroy, AfterViewInit {
150
151
  private _touchstartTimeout;
151
152
  /** Emits when the component is destroyed. */
152
153
  private readonly _destroyed;
154
+ /** Whether ngOnDestroyed has been called. */
155
+ private _isDestroyed;
153
156
  constructor(...args: unknown[]);
154
157
  ngAfterViewInit(): void;
155
158
  /**