@angular/material 14.0.0-next.1 → 14.0.0-next.4

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 (153) hide show
  1. package/button-toggle/_button-toggle-theme.scss +4 -2
  2. package/chips/chip-input.d.ts +2 -5
  3. package/chips/chip-list.d.ts +18 -5
  4. package/core/common-behaviors/error-state.d.ts +1 -2
  5. package/core/datetime/index.d.ts +1 -2
  6. package/core/ripple/index.d.ts +1 -2
  7. package/core/ripple/ripple-ref.d.ts +2 -1
  8. package/core/ripple/ripple-renderer.d.ts +9 -2
  9. package/datepicker/calendar-body.d.ts +12 -3
  10. package/datepicker/date-range-input-parts.d.ts +4 -1
  11. package/datepicker/datepicker-base.d.ts +2 -0
  12. package/datepicker/month-view.d.ts +18 -0
  13. package/datepicker/multi-year-view.d.ts +18 -0
  14. package/datepicker/year-view.d.ts +18 -0
  15. package/dialog/dialog-content-directives.d.ts +5 -1
  16. package/esm2020/autocomplete/autocomplete-trigger.mjs +8 -3
  17. package/esm2020/button-toggle/button-toggle.mjs +2 -2
  18. package/esm2020/checkbox/checkbox.mjs +4 -2
  19. package/esm2020/chips/chip-input.mjs +1 -1
  20. package/esm2020/chips/chip-list.mjs +23 -6
  21. package/esm2020/core/common-behaviors/error-state.mjs +1 -8
  22. package/esm2020/core/datetime/index.mjs +3 -5
  23. package/esm2020/core/ripple/index.mjs +4 -5
  24. package/esm2020/core/ripple/ripple-ref.mjs +5 -2
  25. package/esm2020/core/ripple/ripple-renderer.mjs +72 -37
  26. package/esm2020/core/version.mjs +1 -1
  27. package/esm2020/datepicker/calendar-body.mjs +25 -3
  28. package/esm2020/datepicker/calendar.mjs +2 -2
  29. package/esm2020/datepicker/date-range-input-parts.mjs +1 -1
  30. package/esm2020/datepicker/datepicker-base.mjs +4 -12
  31. package/esm2020/datepicker/month-view.mjs +34 -7
  32. package/esm2020/datepicker/multi-year-view.mjs +40 -8
  33. package/esm2020/datepicker/year-view.mjs +39 -8
  34. package/esm2020/dialog/dialog-container.mjs +3 -3
  35. package/esm2020/dialog/dialog-content-directives.mjs +16 -4
  36. package/esm2020/form-field/form-field.mjs +14 -9
  37. package/esm2020/input/input.mjs +13 -3
  38. package/esm2020/menu/menu-trigger.mjs +15 -6
  39. package/esm2020/menu/menu.mjs +14 -9
  40. package/esm2020/progress-spinner/progress-spinner.mjs +4 -1
  41. package/esm2020/radio/radio.mjs +3 -3
  42. package/esm2020/select/select.mjs +16 -4
  43. package/esm2020/sidenav/drawer.mjs +3 -3
  44. package/esm2020/sidenav/sidenav-module.mjs +4 -5
  45. package/esm2020/sidenav/sidenav.mjs +3 -3
  46. package/esm2020/sort/sort-header.mjs +14 -6
  47. package/esm2020/sort/sort.mjs +1 -1
  48. package/esm2020/stepper/stepper-module.mjs +3 -7
  49. package/esm2020/stepper/stepper.mjs +8 -58
  50. package/esm2020/tabs/paginated-tab-header.mjs +13 -7
  51. package/esm2020/tabs/tab-group.mjs +25 -1
  52. package/esm2020/tabs/tab-header.mjs +3 -3
  53. package/fesm2015/autocomplete.mjs +7 -2
  54. package/fesm2015/autocomplete.mjs.map +1 -1
  55. package/fesm2015/button-toggle.mjs +2 -2
  56. package/fesm2015/checkbox.mjs +3 -1
  57. package/fesm2015/checkbox.mjs.map +1 -1
  58. package/fesm2015/chips.mjs +22 -5
  59. package/fesm2015/chips.mjs.map +1 -1
  60. package/fesm2015/core.mjs +83 -52
  61. package/fesm2015/core.mjs.map +1 -1
  62. package/fesm2015/datepicker.mjs +139 -35
  63. package/fesm2015/datepicker.mjs.map +1 -1
  64. package/fesm2015/dialog.mjs +17 -5
  65. package/fesm2015/dialog.mjs.map +1 -1
  66. package/fesm2015/form-field.mjs +14 -8
  67. package/fesm2015/form-field.mjs.map +1 -1
  68. package/fesm2015/input.mjs +12 -2
  69. package/fesm2015/input.mjs.map +1 -1
  70. package/fesm2015/menu.mjs +26 -11
  71. package/fesm2015/menu.mjs.map +1 -1
  72. package/fesm2015/progress-spinner.mjs +3 -0
  73. package/fesm2015/progress-spinner.mjs.map +1 -1
  74. package/fesm2015/radio.mjs +2 -2
  75. package/fesm2015/radio.mjs.map +1 -1
  76. package/fesm2015/select.mjs +15 -3
  77. package/fesm2015/select.mjs.map +1 -1
  78. package/fesm2015/sidenav.mjs +8 -9
  79. package/fesm2015/sidenav.mjs.map +1 -1
  80. package/fesm2015/sort.mjs +119 -111
  81. package/fesm2015/sort.mjs.map +1 -1
  82. package/fesm2015/stepper.mjs +9 -62
  83. package/fesm2015/stepper.mjs.map +1 -1
  84. package/fesm2015/tabs.mjs +38 -8
  85. package/fesm2015/tabs.mjs.map +1 -1
  86. package/fesm2020/autocomplete.mjs +7 -2
  87. package/fesm2020/autocomplete.mjs.map +1 -1
  88. package/fesm2020/button-toggle.mjs +2 -2
  89. package/fesm2020/checkbox.mjs +3 -1
  90. package/fesm2020/checkbox.mjs.map +1 -1
  91. package/fesm2020/chips.mjs +22 -5
  92. package/fesm2020/chips.mjs.map +1 -1
  93. package/fesm2020/core.mjs +83 -52
  94. package/fesm2020/core.mjs.map +1 -1
  95. package/fesm2020/datepicker.mjs +139 -35
  96. package/fesm2020/datepicker.mjs.map +1 -1
  97. package/fesm2020/dialog.mjs +17 -5
  98. package/fesm2020/dialog.mjs.map +1 -1
  99. package/fesm2020/form-field.mjs +13 -8
  100. package/fesm2020/form-field.mjs.map +1 -1
  101. package/fesm2020/input.mjs +12 -2
  102. package/fesm2020/input.mjs.map +1 -1
  103. package/fesm2020/menu.mjs +25 -11
  104. package/fesm2020/menu.mjs.map +1 -1
  105. package/fesm2020/progress-spinner.mjs +3 -0
  106. package/fesm2020/progress-spinner.mjs.map +1 -1
  107. package/fesm2020/radio.mjs +2 -2
  108. package/fesm2020/radio.mjs.map +1 -1
  109. package/fesm2020/select.mjs +15 -3
  110. package/fesm2020/select.mjs.map +1 -1
  111. package/fesm2020/sidenav.mjs +8 -9
  112. package/fesm2020/sidenav.mjs.map +1 -1
  113. package/fesm2020/sort.mjs +12 -4
  114. package/fesm2020/sort.mjs.map +1 -1
  115. package/fesm2020/stepper.mjs +9 -62
  116. package/fesm2020/stepper.mjs.map +1 -1
  117. package/fesm2020/tabs.mjs +38 -8
  118. package/fesm2020/tabs.mjs.map +1 -1
  119. package/form-field/form-field.d.ts +9 -5
  120. package/input/input.d.ts +11 -1
  121. package/menu/menu-trigger.d.ts +7 -1
  122. package/menu/menu.d.ts +7 -2
  123. package/package.json +7 -7
  124. package/prebuilt-themes/deeppurple-amber.css +1 -1
  125. package/prebuilt-themes/indigo-pink.css +1 -1
  126. package/prebuilt-themes/pink-bluegrey.css +1 -1
  127. package/prebuilt-themes/purple-green.css +1 -1
  128. package/progress-spinner/progress-spinner.d.ts +3 -1
  129. package/schematics/ng-add/index.js +2 -2
  130. package/schematics/ng-add/index.mjs +2 -2
  131. package/schematics/ng-add/schema.json +17 -5
  132. package/schematics/ng-generate/address-form/schema.json +1 -1
  133. package/schematics/ng-generate/dashboard/schema.json +1 -1
  134. package/schematics/ng-generate/navigation/schema.json +1 -1
  135. package/schematics/ng-generate/table/schema.json +1 -1
  136. package/schematics/ng-generate/tree/schema.json +1 -1
  137. package/schematics/ng-update/data/constructor-checks.js +5 -1
  138. package/schematics/ng-update/data/constructor-checks.mjs +5 -1
  139. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +4 -4
  140. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.mjs +4 -4
  141. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.js +13 -13
  142. package/schematics/ng-update/migrations/hammer-gestures-v9/import-manager.mjs +13 -13
  143. package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.js +2 -13
  144. package/schematics/ng-update/migrations/package-imports-v8/secondary-entry-points-migration.mjs +2 -13
  145. package/schematics/tsconfig.json +1 -4
  146. package/select/select.d.ts +11 -0
  147. package/sidenav/sidenav-module.d.ts +2 -3
  148. package/sort/sort-header.d.ts +4 -4
  149. package/sort/sort.d.ts +4 -0
  150. package/stepper/stepper-module.d.ts +1 -1
  151. package/stepper/stepper.d.ts +2 -35
  152. package/tabs/paginated-tab-header.d.ts +4 -2
  153. package/tabs/tab-group.d.ts +6 -2
@@ -14,12 +14,14 @@
14
14
 
15
15
  .mat-button-toggle-standalone,
16
16
  .mat-button-toggle-group {
17
- @include private.private-theme-elevation(2, $config);
17
+ @include private.private-theme-overridable-elevation(2, $config);
18
18
  }
19
19
 
20
20
  .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,
21
21
  .mat-button-toggle-group-appearance-standard {
22
- box-shadow: none;
22
+ &:not([class*='mat-elevation-z']) {
23
+ box-shadow: none;
24
+ }
23
25
  }
24
26
 
25
27
  .mat-button-toggle {
@@ -21,11 +21,8 @@ export interface MatChipInputEvent {
21
21
  input: HTMLInputElement;
22
22
  /** The value of the input. */
23
23
  value: string;
24
- /**
25
- * Reference to the chip input that emitted the event.
26
- * @breaking-change 13.0.0 This property will be made required.
27
- */
28
- chipInput?: MatChipInput;
24
+ /** Reference to the chip input that emitted the event. */
25
+ chipInput: MatChipInput;
29
26
  }
30
27
  /**
31
28
  * Directive that adds chip-specific behaviors to an input element inside `<mat-form-field>`.
@@ -13,17 +13,27 @@ import { AfterContentInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter,
13
13
  import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
14
14
  import { CanUpdateErrorState, ErrorStateMatcher } from '@angular/material/core';
15
15
  import { MatFormFieldControl } from '@angular/material/form-field';
16
- import { Observable } from 'rxjs';
16
+ import { Observable, Subject } from 'rxjs';
17
17
  import { MatChip, MatChipEvent, MatChipSelectionChange } from './chip';
18
18
  import { MatChipTextControl } from './chip-text-control';
19
19
  import * as i0 from "@angular/core";
20
20
  /** @docs-private */
21
21
  declare const _MatChipListBase: import("@angular/material/core")._Constructor<CanUpdateErrorState> & import("@angular/material/core")._AbstractConstructor<CanUpdateErrorState> & {
22
22
  new (_defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl): {
23
+ /**
24
+ * Emits whenever the component state changes and should cause the parent
25
+ * form-field to update. Implemented as part of `MatFormFieldControl`.
26
+ * @docs-private
27
+ */
28
+ readonly stateChanges: Subject<void>;
23
29
  _defaultErrorStateMatcher: ErrorStateMatcher;
24
30
  _parentForm: NgForm;
25
31
  _parentFormGroup: FormGroupDirective;
26
- /** @docs-private */
32
+ /**
33
+ * Form control bound to the component.
34
+ * Implemented as part of `MatFormFieldControl`.
35
+ * @docs-private
36
+ */
27
37
  ngControl: NgControl;
28
38
  };
29
39
  };
@@ -71,8 +81,6 @@ export declare class MatChipList extends _MatChipListBase implements MatFormFiel
71
81
  protected _chipInput: MatChipTextControl;
72
82
  /** Uid of the chip list */
73
83
  _uid: string;
74
- /** The aria-describedby attribute on the chip list for improved a11y. */
75
- _ariaDescribedby: string;
76
84
  /** Tab index for the chip list. */
77
85
  _tabIndex: number;
78
86
  /**
@@ -91,6 +99,11 @@ export declare class MatChipList extends _MatChipListBase implements MatFormFiel
91
99
  get selected(): MatChip[] | MatChip;
92
100
  /** The ARIA role applied to the chip list. */
93
101
  get role(): string | null;
102
+ /**
103
+ * Implemented as part of MatFormFieldControl.
104
+ * @docs-private
105
+ */
106
+ userAriaDescribedBy: string;
94
107
  /** An object used to control when error messages are shown. */
95
108
  errorStateMatcher: ErrorStateMatcher;
96
109
  /** Whether the user should be allowed to select multiple chips. */
@@ -269,6 +282,6 @@ export declare class MatChipList extends _MatChipListBase implements MatFormFiel
269
282
  /** Syncs the list's state with the individual chips. */
270
283
  private _syncChipsState;
271
284
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipList, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
272
- static ɵcmp: i0.ɵɵComponentDeclaration<MatChipList, "mat-chip-list", ["matChipList"], { "errorStateMatcher": "errorStateMatcher"; "multiple": "multiple"; "compareWith": "compareWith"; "value": "value"; "required": "required"; "placeholder": "placeholder"; "disabled": "disabled"; "ariaOrientation": "aria-orientation"; "selectable": "selectable"; "tabIndex": "tabIndex"; }, { "change": "change"; "valueChange": "valueChange"; }, ["chips"], ["*"]>;
285
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatChipList, "mat-chip-list", ["matChipList"], { "userAriaDescribedBy": "aria-describedby"; "errorStateMatcher": "errorStateMatcher"; "multiple": "multiple"; "compareWith": "compareWith"; "value": "value"; "required": "required"; "placeholder": "placeholder"; "disabled": "disabled"; "ariaOrientation": "aria-orientation"; "selectable": "selectable"; "tabIndex": "tabIndex"; }, { "change": "change"; "valueChange": "valueChange"; }, ["chips"], ["*"]>;
273
286
  }
274
287
  export {};
@@ -11,8 +11,6 @@ import { ErrorStateMatcher } from '../error/error-options';
11
11
  import { AbstractConstructor, Constructor } from './constructor';
12
12
  /** @docs-private */
13
13
  export interface CanUpdateErrorState {
14
- /** Emits whenever the component state changes. */
15
- readonly stateChanges: Subject<void>;
16
14
  /** Updates the error state based on the provided error state matcher. */
17
15
  updateErrorState(): void;
18
16
  /** Whether the component is in an error state. */
@@ -27,6 +25,7 @@ export interface HasErrorState {
27
25
  _parentForm: NgForm;
28
26
  _defaultErrorStateMatcher: ErrorStateMatcher;
29
27
  ngControl: NgControl;
28
+ stateChanges: Subject<void>;
30
29
  }
31
30
  /**
32
31
  * Mixin to augment a directive with updateErrorState method.
@@ -1,12 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/cdk/platform";
3
2
  export * from './date-adapter';
4
3
  export * from './date-formats';
5
4
  export * from './native-date-adapter';
6
5
  export * from './native-date-formats';
7
6
  export declare class NativeDateModule {
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<NativeDateModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<NativeDateModule, never, [typeof i1.PlatformModule], never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NativeDateModule, never, never, never>;
10
9
  static ɵinj: i0.ɵɵInjectorDeclaration<NativeDateModule>;
11
10
  }
12
11
  export declare class MatNativeDateModule {
@@ -1,12 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./ripple";
3
3
  import * as i2 from "../common-behaviors/common-module";
4
- import * as i3 from "@angular/cdk/platform";
5
4
  export * from './ripple';
6
5
  export * from './ripple-ref';
7
6
  export * from './ripple-renderer';
8
7
  export declare class MatRippleModule {
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MatRippleModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatRippleModule, [typeof i1.MatRipple], [typeof i2.MatCommonModule, typeof i3.PlatformModule], [typeof i1.MatRipple, typeof i2.MatCommonModule]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatRippleModule, [typeof i1.MatRipple], [typeof i2.MatCommonModule], [typeof i1.MatRipple, typeof i2.MatCommonModule]>;
11
10
  static ɵinj: i0.ɵɵInjectorDeclaration<MatRippleModule>;
12
11
  }
@@ -39,6 +39,7 @@ export declare class RippleRef {
39
39
  element: HTMLElement;
40
40
  /** Ripple configuration used for the ripple. */
41
41
  config: RippleConfig;
42
+ _animationForciblyDisabledThroughCss: boolean;
42
43
  /** Current state of the ripple. */
43
44
  state: RippleState;
44
45
  constructor(_renderer: {
@@ -47,7 +48,7 @@ export declare class RippleRef {
47
48
  /** Reference to the ripple HTML element. */
48
49
  element: HTMLElement,
49
50
  /** Ripple configuration used for the ripple. */
50
- config: RippleConfig);
51
+ config: RippleConfig, _animationForciblyDisabledThroughCss?: boolean);
51
52
  /** Fades out the ripple element. */
52
53
  fadeOut(): void;
53
54
  }
@@ -77,14 +77,21 @@ export declare class RippleRenderer implements EventListenerObject {
77
77
  * @docs-private
78
78
  */
79
79
  handleEvent(event: Event): void;
80
+ /** Method that will be called if the fade-in or fade-in transition completed. */
81
+ private _finishRippleTransition;
82
+ /**
83
+ * Starts the fade-out transition of the given ripple if it's not persistent and the pointer
84
+ * is not held down anymore.
85
+ */
86
+ private _startFadeOutTransition;
87
+ /** Destroys the given ripple by removing it from the DOM and updating its state. */
88
+ private _destroyRipple;
80
89
  /** Function being called whenever the trigger is being pressed using mouse. */
81
90
  private _onMousedown;
82
91
  /** Function being called whenever the trigger is being pressed using touch. */
83
92
  private _onTouchStart;
84
93
  /** Function being called whenever the trigger is being released. */
85
94
  private _onPointerUp;
86
- /** Runs a timeout outside of the Angular zone to avoid triggering the change detection. */
87
- private _runTimeoutOutsideZone;
88
95
  /** Registers event listeners for a given list of events. */
89
96
  private _registerEvents;
90
97
  /** Removes previously registered event listeners from the trigger element. */
@@ -5,7 +5,7 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- import { ElementRef, EventEmitter, NgZone, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
8
+ import { ElementRef, EventEmitter, NgZone, OnChanges, SimpleChanges, OnDestroy, AfterViewChecked } from '@angular/core';
9
9
  import * as i0 from "@angular/core";
10
10
  /** Extra CSS classes that can be associated with a calendar cell. */
11
11
  export declare type MatCalendarCellCssClasses = string | string[] | Set<string> | {
@@ -36,7 +36,7 @@ export interface MatCalendarUserEvent<D> {
36
36
  * An internal component used to display calendar data in a table.
37
37
  * @docs-private
38
38
  */
39
- export declare class MatCalendarBody implements OnChanges, OnDestroy {
39
+ export declare class MatCalendarBody implements OnChanges, OnDestroy, AfterViewChecked {
40
40
  private _elementRef;
41
41
  private _ngZone;
42
42
  /**
@@ -44,6 +44,10 @@ export declare class MatCalendarBody implements OnChanges, OnDestroy {
44
44
  * We need a flag like this, because some browsers fire focus events asynchronously.
45
45
  */
46
46
  private _skipNextFocus;
47
+ /**
48
+ * Used to focus the active cell after change detection has run.
49
+ */
50
+ private _focusActiveCellAfterViewChecked;
47
51
  /** The label for the table. (e.g. "Jan 2017"). */
48
52
  label: string;
49
53
  /** The cells to display in the table. */
@@ -60,6 +64,7 @@ export declare class MatCalendarBody implements OnChanges, OnDestroy {
60
64
  numCols: number;
61
65
  /** The cell number of the active cell in the table. */
62
66
  activeCell: number;
67
+ ngAfterViewChecked(): void;
63
68
  /** Whether a range is being selected. */
64
69
  isRange: boolean;
65
70
  /**
@@ -79,6 +84,7 @@ export declare class MatCalendarBody implements OnChanges, OnDestroy {
79
84
  readonly selectedValueChange: EventEmitter<MatCalendarUserEvent<number>>;
80
85
  /** Emits when the preview has changed as a result of a user action. */
81
86
  readonly previewChange: EventEmitter<MatCalendarUserEvent<MatCalendarCell<any> | null>>;
87
+ readonly activeDateChange: EventEmitter<MatCalendarUserEvent<number>>;
82
88
  /** The number of blank cells to put at the beginning for the first row. */
83
89
  _firstRowOffset: number;
84
90
  /** Padding for the individual date cells. */
@@ -88,6 +94,7 @@ export declare class MatCalendarBody implements OnChanges, OnDestroy {
88
94
  constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone);
89
95
  /** Called when a cell is clicked. */
90
96
  _cellClicked(cell: MatCalendarCell, event: MouseEvent): void;
97
+ _emitActiveDateChange(cell: MatCalendarCell, event: FocusEvent): void;
91
98
  /** Returns whether a cell should be marked as selected. */
92
99
  _isSelected(value: number): boolean;
93
100
  ngOnChanges(changes: SimpleChanges): void;
@@ -96,6 +103,8 @@ export declare class MatCalendarBody implements OnChanges, OnDestroy {
96
103
  _isActiveCell(rowIndex: number, colIndex: number): boolean;
97
104
  /** Focuses the active cell after the microtask queue is empty. */
98
105
  _focusActiveCell(movePreview?: boolean): void;
106
+ /** Focuses the active cell after change detection has run and the microtask queue is empty. */
107
+ _scheduleFocusActiveCellAfterViewChecked(): void;
99
108
  /** Gets whether a value is the start of the main range. */
100
109
  _isRangeStart(value: number): boolean;
101
110
  /** Gets whether a value is the end of the main range. */
@@ -142,5 +151,5 @@ export declare class MatCalendarBody implements OnChanges, OnDestroy {
142
151
  /** Finds the MatCalendarCell that corresponds to a DOM node. */
143
152
  private _getCellFromElement;
144
153
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCalendarBody, never>;
145
- static ɵcmp: i0.ɵɵComponentDeclaration<MatCalendarBody, "[mat-calendar-body]", ["matCalendarBody"], { "label": "label"; "rows": "rows"; "todayValue": "todayValue"; "startValue": "startValue"; "endValue": "endValue"; "labelMinRequiredCells": "labelMinRequiredCells"; "numCols": "numCols"; "activeCell": "activeCell"; "isRange": "isRange"; "cellAspectRatio": "cellAspectRatio"; "comparisonStart": "comparisonStart"; "comparisonEnd": "comparisonEnd"; "previewStart": "previewStart"; "previewEnd": "previewEnd"; }, { "selectedValueChange": "selectedValueChange"; "previewChange": "previewChange"; }, never, never>;
154
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatCalendarBody, "[mat-calendar-body]", ["matCalendarBody"], { "label": "label"; "rows": "rows"; "todayValue": "todayValue"; "startValue": "startValue"; "endValue": "endValue"; "labelMinRequiredCells": "labelMinRequiredCells"; "numCols": "numCols"; "activeCell": "activeCell"; "isRange": "isRange"; "cellAspectRatio": "cellAspectRatio"; "comparisonStart": "comparisonStart"; "comparisonEnd": "comparisonEnd"; "previewStart": "previewStart"; "previewEnd": "previewEnd"; }, { "selectedValueChange": "selectedValueChange"; "previewChange": "previewChange"; "activeDateChange": "activeDateChange"; }, never, never>;
146
155
  }
@@ -41,7 +41,10 @@ declare abstract class MatDateRangeInputPartBase<D> extends MatDatepickerInputBa
41
41
  private _injector;
42
42
  _parentForm: NgForm;
43
43
  _parentFormGroup: FormGroupDirective;
44
- /** @docs-private */
44
+ /**
45
+ * Form control bound to this input part.
46
+ * @docs-private
47
+ */
45
48
  ngControl: NgControl;
46
49
  /** @docs-private */
47
50
  abstract updateErrorState(): void;
@@ -73,6 +73,8 @@ export declare class MatDatepickerContent<S, D = ExtractDateTypeFromSelection<S>
73
73
  _closeButtonFocused: boolean;
74
74
  /** Portal with projected action buttons. */
75
75
  _actionsPortal: TemplatePortal | null;
76
+ /** Id of the label for the `role="dialog"` element. */
77
+ _dialogLabelId: string | null;
76
78
  constructor(elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _globalModel: MatDateSelectionModel<S, D>, _dateAdapter: DateAdapter<D>, _rangeSelectionStrategy: MatDateRangeSelectionStrategy<D>, intl: MatDatepickerIntl);
77
79
  ngOnInit(): void;
78
80
  ngAfterViewInit(): void;
@@ -85,6 +85,17 @@ export declare class MatMonthView<D> implements AfterContentInit, OnChanges, OnD
85
85
  ngOnDestroy(): void;
86
86
  /** Handles when a new date is selected. */
87
87
  _dateSelected(event: MatCalendarUserEvent<number>): void;
88
+ /**
89
+ * Takes the index of a calendar body cell wrapped in in an event as argument. For the date that
90
+ * corresponds to the given cell, set `activeDate` to that date and fire `activeDateChange` with
91
+ * that date.
92
+ *
93
+ * This fucntion is used to match each component's model of the active date with the calendar
94
+ * body cell that was focused. It updates its value of `activeDate` synchronously and updates the
95
+ * parent's value asynchonously via the `activeDateChange` event. The child component receives an
96
+ * updated value asynchronously via the `activeCell` Input.
97
+ */
98
+ _updateActiveDate(event: MatCalendarUserEvent<number>): void;
88
99
  /** Handles keydown events on the calendar body when calendar is in month view. */
89
100
  _handleCalendarBodyKeydown(event: KeyboardEvent): void;
90
101
  /** Handles keyup events on the calendar body when calendar is in month view. */
@@ -93,8 +104,15 @@ export declare class MatMonthView<D> implements AfterContentInit, OnChanges, OnD
93
104
  _init(): void;
94
105
  /** Focuses the active cell after the microtask queue is empty. */
95
106
  _focusActiveCell(movePreview?: boolean): void;
107
+ /** Focuses the active cell after change detection has run and the microtask queue is empty. */
108
+ _focusActiveCellAfterViewChecked(): void;
96
109
  /** Called when the user has activated a new cell and the preview needs to be updated. */
97
110
  _previewChanged({ event, value: cell }: MatCalendarUserEvent<MatCalendarCell<D> | null>): void;
111
+ /**
112
+ * Takes a day of the month and returns a new date in the same month and year as the currently
113
+ * active date. The returned date will have the same day of the month as the argument date.
114
+ */
115
+ private _getDateFromDayOfMonth;
98
116
  /** Initializes the weekdays. */
99
117
  private _initWeekdays;
100
118
  /** Creates MatCalendarCells for the dates in this month. */
@@ -58,6 +58,17 @@ export declare class MatMultiYearView<D> implements AfterContentInit, OnDestroy
58
58
  _init(): void;
59
59
  /** Handles when a new year is selected. */
60
60
  _yearSelected(event: MatCalendarUserEvent<number>): void;
61
+ /**
62
+ * Takes the index of a calendar body cell wrapped in in an event as argument. For the date that
63
+ * corresponds to the given cell, set `activeDate` to that date and fire `activeDateChange` with
64
+ * that date.
65
+ *
66
+ * This fucntion is used to match each component's model of the active date with the calendar
67
+ * body cell that was focused. It updates its value of `activeDate` synchronously and updates the
68
+ * parent's value asynchonously via the `activeDateChange` event. The child component receives an
69
+ * updated value asynchronously via the `activeCell` Input.
70
+ */
71
+ _updateActiveDate(event: MatCalendarUserEvent<number>): void;
61
72
  /** Handles keydown events on the calendar body when calendar is in multi-year view. */
62
73
  _handleCalendarBodyKeydown(event: KeyboardEvent): void;
63
74
  /** Handles keyup events on the calendar body when calendar is in multi-year view. */
@@ -65,6 +76,13 @@ export declare class MatMultiYearView<D> implements AfterContentInit, OnDestroy
65
76
  _getActiveCell(): number;
66
77
  /** Focuses the active cell after the microtask queue is empty. */
67
78
  _focusActiveCell(): void;
79
+ /** Focuses the active cell after change detection has run and the microtask queue is empty. */
80
+ _focusActiveCellAfterViewChecked(): void;
81
+ /**
82
+ * Takes a year and returns a new date on the same day and month as the currently active date
83
+ * The returned date will have the same year as the argument date.
84
+ */
85
+ private _getDateFromYear;
68
86
  /** Creates an MatCalendarCell for the given year. */
69
87
  private _createCellForYear;
70
88
  /** Whether the given year is enabled. */
@@ -60,6 +60,17 @@ export declare class MatYearView<D> implements AfterContentInit, OnDestroy {
60
60
  ngOnDestroy(): void;
61
61
  /** Handles when a new month is selected. */
62
62
  _monthSelected(event: MatCalendarUserEvent<number>): void;
63
+ /**
64
+ * Takes the index of a calendar body cell wrapped in in an event as argument. For the date that
65
+ * corresponds to the given cell, set `activeDate` to that date and fire `activeDateChange` with
66
+ * that date.
67
+ *
68
+ * This fucntion is used to match each component's model of the active date with the calendar
69
+ * body cell that was focused. It updates its value of `activeDate` synchronously and updates the
70
+ * parent's value asynchonously via the `activeDateChange` event. The child component receives an
71
+ * updated value asynchronously via the `activeCell` Input.
72
+ */
73
+ _updateActiveDate(event: MatCalendarUserEvent<number>): void;
63
74
  /** Handles keydown events on the calendar body when calendar is in year view. */
64
75
  _handleCalendarBodyKeydown(event: KeyboardEvent): void;
65
76
  /** Handles keyup events on the calendar body when calendar is in year view. */
@@ -68,11 +79,18 @@ export declare class MatYearView<D> implements AfterContentInit, OnDestroy {
68
79
  _init(): void;
69
80
  /** Focuses the active cell after the microtask queue is empty. */
70
81
  _focusActiveCell(): void;
82
+ /** Schedules the matCalendarBody to focus the active cell after change detection has run */
83
+ _focusActiveCellAfterViewChecked(): void;
71
84
  /**
72
85
  * Gets the month in this year that the given Date falls on.
73
86
  * Returns null if the given Date is in another year.
74
87
  */
75
88
  private _getMonthInCurrentYear;
89
+ /**
90
+ * Takes a month and returns a new date in the same day and year as the currently active date.
91
+ * The returned date will have the same month as the argument date.
92
+ */
93
+ private _getDateFromMonth;
76
94
  /** Creates an MatCalendarCell for the given month. */
77
95
  private _createCellForMonth;
78
96
  /** Whether the given month is enabled. */
@@ -67,6 +67,10 @@ export declare class MatDialogContent {
67
67
  * Stays fixed to the bottom when scrolling.
68
68
  */
69
69
  export declare class MatDialogActions {
70
+ /**
71
+ * Horizontal alignment of action buttons.
72
+ */
73
+ align?: 'start' | 'center' | 'end';
70
74
  static ɵfac: i0.ɵɵFactoryDeclaration<MatDialogActions, never>;
71
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogActions, "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", never, {}, {}, never>;
75
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatDialogActions, "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", never, { "align": "align"; }, {}, never>;
72
76
  }