mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(api): update outputs (#7135)
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
[selected]="selected"
|
||||
[dateFilter]="_dateFilterForViews"
|
||||
(selectedChange)="_dateSelected($event)"
|
||||
(userSelection)="_userSelected()">
|
||||
(_userSelection)="_userSelected()">
|
||||
</mat-month-view>
|
||||
|
||||
<mat-year-view
|
||||
|
||||
@@ -98,7 +98,7 @@ export class MatCalendar<D> implements AfterContentInit, OnDestroy, OnChanges {
|
||||
@Output() selectedChange = new EventEmitter<D>();
|
||||
|
||||
/** Emits when any date is selected. */
|
||||
@Output() userSelection = new EventEmitter<void>();
|
||||
@Output() _userSelection = new EventEmitter<void>();
|
||||
|
||||
/** Reference to the current month view component. */
|
||||
@ViewChild(MatMonthView) monthView: MatMonthView<D>;
|
||||
@@ -197,7 +197,7 @@ export class MatCalendar<D> implements AfterContentInit, OnDestroy, OnChanges {
|
||||
}
|
||||
|
||||
_userSelected(): void {
|
||||
this.userSelection.emit();
|
||||
this._userSelection.emit();
|
||||
}
|
||||
|
||||
/** Handles month selection in the year view. */
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
[dateFilter]="datepicker._dateFilter"
|
||||
[selected]="datepicker._selected"
|
||||
(selectedChange)="datepicker._select($event)"
|
||||
(userSelection)="datepicker.close()">
|
||||
(_userSelection)="datepicker.close()">
|
||||
</mat-calendar>
|
||||
|
||||
@@ -70,7 +70,7 @@ export class MatMonthView<D> implements AfterContentInit {
|
||||
@Output() selectedChange = new EventEmitter<D | null>();
|
||||
|
||||
/** Emits when any date is selected. */
|
||||
@Output() userSelection = new EventEmitter<void>();
|
||||
@Output() _userSelection = new EventEmitter<void>();
|
||||
|
||||
/** The label for this month (e.g. "January 2017"). */
|
||||
_monthLabel: string;
|
||||
@@ -130,7 +130,7 @@ export class MatMonthView<D> implements AfterContentInit {
|
||||
this.selectedChange.emit(selectedDate);
|
||||
}
|
||||
|
||||
this.userSelection.emit();
|
||||
this._userSelection.emit();
|
||||
}
|
||||
|
||||
/** Initializes this month view. */
|
||||
|
||||
Reference in New Issue
Block a user