@angular/material 19.2.0-next.1 → 19.2.0-next.2

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 (91) hide show
  1. package/bottom-sheet/index.d.ts +17 -6
  2. package/button/_button-base.scss +3 -3
  3. package/checkbox/_checkbox-common.scss +10 -10
  4. package/core/index.d.ts +1 -0
  5. package/datepicker/index.d.ts +1 -0
  6. package/dialog/index.d.ts +5 -1
  7. package/fesm2022/autocomplete.mjs +13 -13
  8. package/fesm2022/autocomplete.mjs.map +1 -1
  9. package/fesm2022/badge.mjs +10 -10
  10. package/fesm2022/badge.mjs.map +1 -1
  11. package/fesm2022/bottom-sheet/testing.mjs +1 -1
  12. package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
  13. package/fesm2022/bottom-sheet.mjs +79 -50
  14. package/fesm2022/bottom-sheet.mjs.map +1 -1
  15. package/fesm2022/button-toggle.mjs +11 -11
  16. package/fesm2022/button-toggle.mjs.map +1 -1
  17. package/fesm2022/button.mjs +42 -42
  18. package/fesm2022/button.mjs.map +1 -1
  19. package/fesm2022/card.mjs +46 -46
  20. package/fesm2022/card.mjs.map +1 -1
  21. package/fesm2022/checkbox.mjs +16 -16
  22. package/fesm2022/checkbox.mjs.map +1 -1
  23. package/fesm2022/chips.mjs +40 -40
  24. package/fesm2022/chips.mjs.map +1 -1
  25. package/fesm2022/core.mjs +74 -76
  26. package/fesm2022/core.mjs.map +1 -1
  27. package/fesm2022/datepicker.mjs +104 -111
  28. package/fesm2022/datepicker.mjs.map +1 -1
  29. package/fesm2022/dialog.mjs +31 -27
  30. package/fesm2022/dialog.mjs.map +1 -1
  31. package/fesm2022/divider.mjs +7 -7
  32. package/fesm2022/divider.mjs.map +1 -1
  33. package/fesm2022/expansion.mjs +25 -25
  34. package/fesm2022/expansion.mjs.map +1 -1
  35. package/fesm2022/form-field.mjs +34 -34
  36. package/fesm2022/form-field.mjs.map +1 -1
  37. package/fesm2022/grid-list.mjs +22 -22
  38. package/fesm2022/grid-list.mjs.map +1 -1
  39. package/fesm2022/icon/testing.mjs +7 -7
  40. package/fesm2022/icon/testing.mjs.map +1 -1
  41. package/fesm2022/icon.mjs +10 -10
  42. package/fesm2022/icon.mjs.map +1 -1
  43. package/fesm2022/input.mjs +7 -7
  44. package/fesm2022/input.mjs.map +1 -1
  45. package/fesm2022/list.mjs +49 -49
  46. package/fesm2022/list.mjs.map +1 -1
  47. package/fesm2022/menu.mjs +27 -30
  48. package/fesm2022/menu.mjs.map +1 -1
  49. package/fesm2022/paginator.mjs +10 -10
  50. package/fesm2022/paginator.mjs.map +1 -1
  51. package/fesm2022/progress-bar.mjs +7 -7
  52. package/fesm2022/progress-bar.mjs.map +1 -1
  53. package/fesm2022/progress-spinner.mjs +7 -7
  54. package/fesm2022/progress-spinner.mjs.map +1 -1
  55. package/fesm2022/radio.mjs +10 -10
  56. package/fesm2022/radio.mjs.map +1 -1
  57. package/fesm2022/select.mjs +106 -69
  58. package/fesm2022/select.mjs.map +1 -1
  59. package/fesm2022/sidenav.mjs +22 -22
  60. package/fesm2022/sidenav.mjs.map +1 -1
  61. package/fesm2022/slide-toggle.mjs +14 -14
  62. package/fesm2022/slide-toggle.mjs.map +1 -1
  63. package/fesm2022/slider.mjs +16 -16
  64. package/fesm2022/slider.mjs.map +1 -1
  65. package/fesm2022/snack-bar.mjs +134 -91
  66. package/fesm2022/snack-bar.mjs.map +1 -1
  67. package/fesm2022/sort.mjs +13 -13
  68. package/fesm2022/sort.mjs.map +1 -1
  69. package/fesm2022/stepper.mjs +31 -31
  70. package/fesm2022/stepper.mjs.map +1 -1
  71. package/fesm2022/table.mjs +55 -55
  72. package/fesm2022/table.mjs.map +1 -1
  73. package/fesm2022/tabs.mjs +43 -43
  74. package/fesm2022/tabs.mjs.map +1 -1
  75. package/fesm2022/timepicker.mjs +36 -43
  76. package/fesm2022/timepicker.mjs.map +1 -1
  77. package/fesm2022/toolbar.mjs +10 -10
  78. package/fesm2022/toolbar.mjs.map +1 -1
  79. package/fesm2022/tooltip.mjs +10 -10
  80. package/fesm2022/tooltip.mjs.map +1 -1
  81. package/fesm2022/tree.mjs +25 -25
  82. package/fesm2022/tree.mjs.map +1 -1
  83. package/menu/index.d.ts +1 -5
  84. package/package.json +2 -2
  85. package/schematics/ng-add/index.js +1 -1
  86. package/schematics/ng-add/index.mjs +1 -1
  87. package/schematics/ng-generate/theme-color/index_bundled.js +2 -2
  88. package/schematics/ng-update/index_bundled.js +31 -31
  89. package/select/index.d.ts +10 -8
  90. package/snack-bar/index.d.ts +8 -6
  91. package/timepicker/index.d.ts +4 -1
package/select/index.d.ts CHANGED
@@ -96,11 +96,15 @@ export declare class MatSelect implements AfterContentInit, OnChanges, OnDestroy
96
96
  readonly _elementRef: ElementRef<any>;
97
97
  private _dir;
98
98
  private _idGenerator;
99
+ private _renderer;
100
+ private _ngZone;
99
101
  protected _parentFormField: MatFormField | null;
100
102
  ngControl: NgControl;
101
103
  private _liveAnnouncer;
102
104
  protected _defaultOptions: MatSelectConfig | null;
105
+ protected _animationsDisabled: boolean;
103
106
  private _initialized;
107
+ private _cleanupDetach;
104
108
  /** All of the defined select options. */
105
109
  options: QueryList<MatOption>;
106
110
  /** All of the defined groups of options. */
@@ -169,8 +173,6 @@ export declare class MatSelect implements AfterContentInit, OnChanges, OnDestroy
169
173
  _onTouched: () => void;
170
174
  /** ID for the DOM node containing the select's value. */
171
175
  _valueId: string;
172
- /** Emits when the panel element is finished transforming in. */
173
- readonly _panelDoneAnimatingStream: Subject<string>;
174
176
  /** Strategy that will be used to handle scrolling while the select panel is open. */
175
177
  _scrollStrategy: ScrollStrategy;
176
178
  _overlayPanelClass: string | string[];
@@ -313,6 +315,8 @@ export declare class MatSelect implements AfterContentInit, OnChanges, OnDestroy
313
315
  private _clearFromModal;
314
316
  /** Closes the overlay panel and focuses the host element. */
315
317
  close(): void;
318
+ /** Triggers the exit animation and detaches the overlay at the end. */
319
+ private _exitAndDetach;
316
320
  /**
317
321
  * Sets the select's value. Part of the ControlValueAccessor interface
318
322
  * required to integrate with Angular's core forms API.
@@ -359,16 +363,14 @@ export declare class MatSelect implements AfterContentInit, OnChanges, OnDestroy
359
363
  private _handleClosedKeydown;
360
364
  /** Handles keyboard events when the selected is open. */
361
365
  private _handleOpenKeydown;
366
+ /** Handles keyboard events coming from the overlay. */
367
+ protected _handleOverlayKeydown(event: KeyboardEvent): void;
362
368
  _onFocus(): void;
363
369
  /**
364
370
  * Calls the touched callback only if the panel is closed. Otherwise, the trigger will
365
371
  * "blur" to the panel when it opens, causing a false positive.
366
372
  */
367
373
  _onBlur(): void;
368
- /**
369
- * Callback that is invoked when the overlay panel has been attached.
370
- */
371
- _onAttached(): void;
372
374
  /** Returns the theme to be used on the panel. */
373
375
  _getPanelTheme(): string;
374
376
  /** Whether the select has a value. */
@@ -416,8 +418,6 @@ export declare class MatSelect implements AfterContentInit, OnChanges, OnDestroy
416
418
  _getAriaActiveDescendant(): string | null;
417
419
  /** Gets the aria-labelledby of the select component trigger. */
418
420
  private _getTriggerAriaLabelledby;
419
- /** Called when the overlay panel is done animating. */
420
- protected _panelDoneAnimating(isOpen: boolean): void;
421
421
  /**
422
422
  * Implemented as part of MatFormFieldControl.
423
423
  * @docs-private
@@ -452,6 +452,8 @@ export declare class MatSelect implements AfterContentInit, OnChanges, OnDestroy
452
452
  *
453
453
  * The values below match the implementation of the AngularJS Material mat-select animation.
454
454
  * @docs-private
455
+ * @deprecated No longer used, will be removed.
456
+ * @breaking-change 21.0.0
455
457
  */
456
458
  export declare const matSelectAnimations: {
457
459
  /**
@@ -1,4 +1,3 @@
1
- import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
2
1
  import { AnimationTriggerMetadata } from '@angular/animations';
3
2
  import { AriaLivePoliteness } from '@angular/cdk/a11y';
4
3
  import { BasePortalOutlet } from '@angular/cdk/portal';
@@ -148,6 +147,8 @@ export declare class MatSnackBarActions {
148
147
  /**
149
148
  * Animations used by the Material snack bar.
150
149
  * @docs-private
150
+ * @deprecated No longer used, will be removed.
151
+ * @breaking-change 21.0.0
151
152
  */
152
153
  export declare const matSnackBarAnimations: {
153
154
  readonly snackBarState: AnimationTriggerMetadata;
@@ -192,9 +193,14 @@ export declare class MatSnackBarContainer extends BasePortalOutlet implements On
192
193
  private _elementRef;
193
194
  private _changeDetectorRef;
194
195
  private _platform;
196
+ private _rendersRef;
197
+ protected _animationsDisabled: boolean;
195
198
  snackBarConfig: MatSnackBarConfig<any>;
196
199
  private _document;
197
200
  private _trackedModals;
201
+ private _enterFallback;
202
+ private _exitFallback;
203
+ private _renders;
198
204
  /** The number of milliseconds to wait before announcing the snack bar's content. */
199
205
  private readonly _announceDelay;
200
206
  /** The timeout for announcing the snack bar's content. */
@@ -238,17 +244,13 @@ export declare class MatSnackBarContainer extends BasePortalOutlet implements On
238
244
  */
239
245
  attachDomPortal: (portal: DomPortal) => void;
240
246
  /** Handle end of animations, updating the state of the snackbar. */
241
- onAnimationEnd(event: AnimationEvent_2): void;
247
+ onAnimationEnd(animationName: string): void;
242
248
  /** Begin animation of snack bar entrance into view. */
243
249
  enter(): void;
244
250
  /** Begin animation of the snack bar exiting from view. */
245
251
  exit(): Observable<void>;
246
252
  /** Makes sure the exit callbacks have been invoked when the element is destroyed. */
247
253
  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
254
  private _completeExit;
253
255
  /**
254
256
  * Called after the portal contents have been attached. Can be
@@ -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.. */