@angular/material 19.2.0-next.1 → 19.2.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 (102) hide show
  1. package/bottom-sheet/index.d.ts +18 -8
  2. package/button/_button-base.scss +4 -4
  3. package/checkbox/_checkbox-common.scss +38 -25
  4. package/chips/index.d.ts +0 -2
  5. package/core/index.d.ts +1 -0
  6. package/datepicker/index.d.ts +3 -3
  7. package/dialog/index.d.ts +10 -3
  8. package/expansion/index.d.ts +7 -4
  9. package/fesm2022/autocomplete.mjs +13 -13
  10. package/fesm2022/autocomplete.mjs.map +1 -1
  11. package/fesm2022/badge.mjs +10 -10
  12. package/fesm2022/badge.mjs.map +1 -1
  13. package/fesm2022/bottom-sheet/testing.mjs +1 -1
  14. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  15. package/fesm2022/bottom-sheet.mjs +138 -50
  16. package/fesm2022/bottom-sheet.mjs.map +1 -1
  17. package/fesm2022/button-toggle.mjs +14 -14
  18. package/fesm2022/button-toggle.mjs.map +1 -1
  19. package/fesm2022/button.mjs +42 -42
  20. package/fesm2022/button.mjs.map +1 -1
  21. package/fesm2022/card.mjs +46 -46
  22. package/fesm2022/card.mjs.map +1 -1
  23. package/fesm2022/checkbox.mjs +16 -16
  24. package/fesm2022/checkbox.mjs.map +1 -1
  25. package/fesm2022/chips.mjs +52 -53
  26. package/fesm2022/chips.mjs.map +1 -1
  27. package/fesm2022/core.mjs +74 -76
  28. package/fesm2022/core.mjs.map +1 -1
  29. package/fesm2022/datepicker.mjs +205 -131
  30. package/fesm2022/datepicker.mjs.map +1 -1
  31. package/fesm2022/dialog.mjs +123 -43
  32. package/fesm2022/dialog.mjs.map +1 -1
  33. package/fesm2022/divider.mjs +7 -7
  34. package/fesm2022/divider.mjs.map +1 -1
  35. package/fesm2022/expansion.mjs +97 -41
  36. package/fesm2022/expansion.mjs.map +1 -1
  37. package/fesm2022/form-field.mjs +68 -43
  38. package/fesm2022/form-field.mjs.map +1 -1
  39. package/fesm2022/grid-list.mjs +22 -22
  40. package/fesm2022/grid-list.mjs.map +1 -1
  41. package/fesm2022/icon/testing.mjs +7 -7
  42. package/fesm2022/icon/testing.mjs.map +1 -1
  43. package/fesm2022/icon.mjs +10 -10
  44. package/fesm2022/icon.mjs.map +1 -1
  45. package/fesm2022/input.mjs +7 -7
  46. package/fesm2022/input.mjs.map +1 -1
  47. package/fesm2022/list.mjs +51 -51
  48. package/fesm2022/list.mjs.map +1 -1
  49. package/fesm2022/menu.mjs +111 -51
  50. package/fesm2022/menu.mjs.map +1 -1
  51. package/fesm2022/paginator.mjs +10 -10
  52. package/fesm2022/paginator.mjs.map +1 -1
  53. package/fesm2022/progress-bar.mjs +7 -7
  54. package/fesm2022/progress-bar.mjs.map +1 -1
  55. package/fesm2022/progress-spinner.mjs +7 -7
  56. package/fesm2022/progress-spinner.mjs.map +1 -1
  57. package/fesm2022/radio.mjs +10 -10
  58. package/fesm2022/radio.mjs.map +1 -1
  59. package/fesm2022/select.mjs +174 -69
  60. package/fesm2022/select.mjs.map +1 -1
  61. package/fesm2022/sidenav.mjs +94 -44
  62. package/fesm2022/sidenav.mjs.map +1 -1
  63. package/fesm2022/slide-toggle.mjs +14 -14
  64. package/fesm2022/slide-toggle.mjs.map +1 -1
  65. package/fesm2022/slider.mjs +16 -16
  66. package/fesm2022/slider.mjs.map +1 -1
  67. package/fesm2022/snack-bar.mjs +179 -91
  68. package/fesm2022/snack-bar.mjs.map +1 -1
  69. package/fesm2022/sort.mjs +299 -56
  70. package/fesm2022/sort.mjs.map +1 -1
  71. package/fesm2022/stepper.mjs +169 -60
  72. package/fesm2022/stepper.mjs.map +1 -1
  73. package/fesm2022/table.mjs +55 -55
  74. package/fesm2022/table.mjs.map +1 -1
  75. package/fesm2022/tabs.mjs +171 -73
  76. package/fesm2022/tabs.mjs.map +1 -1
  77. package/fesm2022/timepicker.mjs +36 -43
  78. package/fesm2022/timepicker.mjs.map +1 -1
  79. package/fesm2022/toolbar.mjs +10 -10
  80. package/fesm2022/toolbar.mjs.map +1 -1
  81. package/fesm2022/tooltip.mjs +46 -19
  82. package/fesm2022/tooltip.mjs.map +1 -1
  83. package/fesm2022/tree.mjs +25 -25
  84. package/fesm2022/tree.mjs.map +1 -1
  85. package/form-field/index.d.ts +1 -2
  86. package/menu/index.d.ts +5 -10
  87. package/package.json +2 -2
  88. package/schematics/ng-add/index.js +1 -1
  89. package/schematics/ng-add/index.mjs +1 -1
  90. package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
  91. package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
  92. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
  93. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
  94. package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
  95. package/select/index.d.ts +12 -11
  96. package/sidenav/index.d.ts +1 -2
  97. package/snack-bar/index.d.ts +9 -8
  98. package/sort/index.d.ts +6 -7
  99. package/stepper/index.d.ts +2 -3
  100. package/tabs/index.d.ts +1 -2
  101. package/timepicker/index.d.ts +4 -1
  102. package/tooltip/index.d.ts +1 -2
@@ -1,5 +1,3 @@
1
- import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
2
- import { AnimationTriggerMetadata } from '@angular/animations';
3
1
  import { AriaLivePoliteness } from '@angular/cdk/a11y';
4
2
  import { BasePortalOutlet } from '@angular/cdk/portal';
5
3
  import { CdkPortalOutlet } from '@angular/cdk/portal';
@@ -148,9 +146,11 @@ export declare class MatSnackBarActions {
148
146
  /**
149
147
  * Animations used by the Material snack bar.
150
148
  * @docs-private
149
+ * @deprecated No longer used, will be removed.
150
+ * @breaking-change 21.0.0
151
151
  */
152
152
  export declare const matSnackBarAnimations: {
153
- readonly snackBarState: AnimationTriggerMetadata;
153
+ readonly snackBarState: any;
154
154
  };
155
155
 
156
156
  /**
@@ -192,9 +192,14 @@ export declare class MatSnackBarContainer extends BasePortalOutlet implements On
192
192
  private _elementRef;
193
193
  private _changeDetectorRef;
194
194
  private _platform;
195
+ private _rendersRef;
196
+ protected _animationsDisabled: boolean;
195
197
  snackBarConfig: MatSnackBarConfig<any>;
196
198
  private _document;
197
199
  private _trackedModals;
200
+ private _enterFallback;
201
+ private _exitFallback;
202
+ private _renders;
198
203
  /** The number of milliseconds to wait before announcing the snack bar's content. */
199
204
  private readonly _announceDelay;
200
205
  /** The timeout for announcing the snack bar's content. */
@@ -238,17 +243,13 @@ export declare class MatSnackBarContainer extends BasePortalOutlet implements On
238
243
  */
239
244
  attachDomPortal: (portal: DomPortal) => void;
240
245
  /** Handle end of animations, updating the state of the snackbar. */
241
- onAnimationEnd(event: AnimationEvent_2): void;
246
+ onAnimationEnd(animationName: string): void;
242
247
  /** Begin animation of snack bar entrance into view. */
243
248
  enter(): void;
244
249
  /** Begin animation of the snack bar exiting from view. */
245
250
  exit(): Observable<void>;
246
251
  /** Makes sure the exit callbacks have been invoked when the element is destroyed. */
247
252
  ngOnDestroy(): void;
248
- /**
249
- * Removes the element in a microtask. Helps prevent errors where we end up
250
- * removing an element which is in the middle of an animation.
251
- */
252
253
  private _completeExit;
253
254
  /**
254
255
  * Called after the portal contents have been attached. Can be
package/sort/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { AfterViewInit } from '@angular/core';
2
- import { AnimationTriggerMetadata } from '@angular/animations';
3
2
  import { EventEmitter } from '@angular/core';
4
3
  import * as i0 from '@angular/core';
5
4
  import * as i1 from '@angular/material/core';
@@ -139,12 +138,12 @@ export declare interface MatSortable {
139
138
  * @breaking-change 21.0.0
140
139
  */
141
140
  export declare const matSortAnimations: {
142
- readonly indicator: AnimationTriggerMetadata;
143
- readonly leftPointer: AnimationTriggerMetadata;
144
- readonly rightPointer: AnimationTriggerMetadata;
145
- readonly arrowOpacity: AnimationTriggerMetadata;
146
- readonly arrowPosition: AnimationTriggerMetadata;
147
- readonly allowChildren: AnimationTriggerMetadata;
141
+ readonly indicator: any;
142
+ readonly leftPointer: any;
143
+ readonly rightPointer: any;
144
+ readonly arrowOpacity: any;
145
+ readonly arrowPosition: any;
146
+ readonly allowChildren: any;
148
147
  };
149
148
 
150
149
  /** Default options for `mat-sort`. */
@@ -1,7 +1,6 @@
1
1
  import { AbstractControl } from '@angular/forms';
2
2
  import { AfterContentInit } from '@angular/core';
3
3
  import { AfterViewInit } from '@angular/core';
4
- import { AnimationTriggerMetadata } from '@angular/animations';
5
4
  import { CdkStep } from '@angular/cdk/stepper';
6
5
  import { CdkStepHeader } from '@angular/cdk/stepper';
7
6
  import { CdkStepLabel } from '@angular/cdk/stepper';
@@ -235,8 +234,8 @@ export declare class MatStepper extends CdkStepper implements AfterViewInit, Aft
235
234
  * @breaking-change 21.0.0
236
235
  */
237
236
  export declare const matStepperAnimations: {
238
- readonly horizontalStepTransition: AnimationTriggerMetadata;
239
- readonly verticalStepTransition: AnimationTriggerMetadata;
237
+ readonly horizontalStepTransition: any;
238
+ readonly verticalStepTransition: any;
240
239
  };
241
240
 
242
241
  /**
package/tabs/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { AfterContentChecked } from '@angular/core';
2
2
  import { AfterContentInit } from '@angular/core';
3
3
  import { AfterViewInit } from '@angular/core';
4
- import { AnimationTriggerMetadata } from '@angular/animations';
5
4
  import { BehaviorSubject } from 'rxjs';
6
5
  import { CdkPortal } from '@angular/cdk/portal';
7
6
  import { CdkPortalOutlet } from '@angular/cdk/portal';
@@ -919,7 +918,7 @@ export declare class MatTabNavPanel {
919
918
  * @breaking-change 21.0.0.
920
919
  */
921
920
  export declare const matTabsAnimations: {
922
- readonly translateTab: AnimationTriggerMetadata;
921
+ readonly translateTab: any;
923
922
  };
924
923
 
925
924
  /** Object that can be used to configure the default options for the tabs module. */
@@ -52,6 +52,7 @@ export declare class MatTimepicker<D> implements OnDestroy, MatOptionParentCompo
52
52
  private _defaultConfig;
53
53
  private _dateAdapter;
54
54
  private _dateFormats;
55
+ protected _animationsDisabled: boolean;
55
56
  private _isOpen;
56
57
  private _activeDescendant;
57
58
  private _input;
@@ -104,9 +105,11 @@ export declare class MatTimepicker<D> implements OnDestroy, MatOptionParentCompo
104
105
  registerInput(input: MatTimepickerInput<D>): void;
105
106
  ngOnDestroy(): void;
106
107
  /** Selects a specific time value. */
107
- protected _selectValue(value: D): void;
108
+ protected _selectValue(option: MatOption<D>): void;
108
109
  /** Gets the value of the `aria-labelledby` attribute. */
109
110
  protected _getAriaLabelledby(): string | null;
111
+ /** Handles animation events coming from the panel. */
112
+ protected _handleAnimationEnd(event: AnimationEvent): void;
110
113
  /** Creates an overlay reference for the timepicker panel. */
111
114
  private _getOverlayRef;
112
115
  /** Generates the list of options from which the user can select.. */
@@ -1,5 +1,4 @@
1
1
  import { AfterViewInit } from '@angular/core';
2
- import { AnimationTriggerMetadata } from '@angular/animations';
3
2
  import { BooleanInput } from '@angular/cdk/coercion';
4
3
  import { ConnectedPosition } from '@angular/cdk/overlay';
5
4
  import { Directionality } from '@angular/cdk/bidi';
@@ -224,7 +223,7 @@ export declare class MatTooltip implements OnDestroy, AfterViewInit {
224
223
  * @breaking-change 21.0.0
225
224
  */
226
225
  export declare const matTooltipAnimations: {
227
- readonly tooltipState: AnimationTriggerMetadata;
226
+ readonly tooltipState: any;
228
227
  };
229
228
 
230
229
  /** Default `matTooltip` options that can be overridden. */