|
1 | 1 | <div class="mat-calendar-header"> |
2 | 2 | <div class="mat-calendar-controls"> |
3 | | - <!-- |
4 | | - TODO(mmalerba): Clean up duplicated compatibility mode code when we have a better way to do |
5 | | - this. |
6 | | - --> |
7 | | - |
8 | | - <!-- Check for compatibility mode and use correct prefix for md-button. --> |
9 | | - <button *ngIf="!_isCompatibilityMode" md-button class="mat-calendar-period-button" |
10 | | - (click)="_currentPeriodClicked()" [attr.aria-label]="_periodButtonLabel"> |
11 | | - {{_periodButtonText}} |
12 | | - <div class="mat-calendar-arrow" [class.mat-calendar-invert]="!_monthView"></div> |
13 | | - </button> |
14 | | - <button *ngIf="_isCompatibilityMode" mat-button class="mat-calendar-period-button" |
| 3 | + <button mat-button class="mat-calendar-period-button" |
15 | 4 | (click)="_currentPeriodClicked()" [attr.aria-label]="_periodButtonLabel"> |
16 | 5 | {{_periodButtonText}} |
17 | 6 | <div class="mat-calendar-arrow" [class.mat-calendar-invert]="!_monthView"></div> |
18 | 7 | </button> |
19 | 8 |
|
20 | 9 | <div class="mat-calendar-spacer"></div> |
21 | 10 |
|
22 | | - <!-- Check for compatibility mode and use correct prefix for md-icon-button. --> |
23 | | - <button *ngIf="!_isCompatibilityMode" md-icon-button class="mat-calendar-previous-button" |
24 | | - [disabled]="!_previousEnabled()" (click)="_previousClicked()" |
25 | | - [attr.aria-label]="_prevButtonLabel"> |
26 | | - </button> |
27 | | - <button *ngIf="_isCompatibilityMode" mat-icon-button class="mat-calendar-previous-button" |
| 11 | + <button mat-icon-button class="mat-calendar-previous-button" |
28 | 12 | [disabled]="!_previousEnabled()" (click)="_previousClicked()" |
29 | 13 | [attr.aria-label]="_prevButtonLabel"> |
30 | 14 | </button> |
31 | 15 |
|
32 | | - <!-- Check for compatibility mode and use correct prefix for md-icon-button. --> |
33 | | - <button *ngIf="!_isCompatibilityMode" md-icon-button class="mat-calendar-next-button" |
34 | | - [disabled]="!_nextEnabled()" (click)="_nextClicked()" |
35 | | - [attr.aria-label]="_nextButtonLabel"> |
36 | | - </button> |
37 | | - <button *ngIf="_isCompatibilityMode" mat-icon-button class="mat-calendar-next-button" |
| 16 | + <button mat-icon-button class="mat-calendar-next-button" |
38 | 17 | [disabled]="!_nextEnabled()" (click)="_nextClicked()" |
39 | 18 | [attr.aria-label]="_nextButtonLabel"> |
40 | 19 | </button> |
|
52 | 31 | (userSelection)="_userSelected()"> |
53 | 32 | </md-month-view> |
54 | 33 |
|
55 | | - <md-year-view |
| 34 | + <mat-year-view |
56 | 35 | *ngSwitchDefault |
57 | 36 | [activeDate]="_activeDate" |
58 | 37 | [selected]="selected" |
59 | 38 | [dateFilter]="_dateFilterForViews" |
60 | 39 | (selectedChange)="_monthSelected($event)"> |
61 | | - </md-year-view> |
| 40 | + </mat-year-view> |
62 | 41 | </div> |
0 commit comments