|
1 |
| -<div class="mat-paginator-page-size"> |
2 |
| - <div class="mat-paginator-page-size-label"> |
3 |
| - {{_intl.itemsPerPageLabel}} |
4 |
| - </div> |
| 1 | +<div class="mat-paginator-container"> |
| 2 | + <div class="mat-paginator-page-size"> |
| 3 | + <div class="mat-paginator-page-size-label"> |
| 4 | + {{_intl.itemsPerPageLabel}} |
| 5 | + </div> |
5 | 6 |
|
6 |
| - <mat-form-field |
7 |
| - *ngIf="_displayedPageSizeOptions.length > 1" |
8 |
| - class="mat-paginator-page-size-select"> |
9 |
| - <mat-select |
10 |
| - [value]="pageSize" |
11 |
| - [aria-label]="_intl.itemsPerPageLabel" |
12 |
| - (change)="_changePageSize($event.value)"> |
13 |
| - <mat-option *ngFor="let pageSizeOption of _displayedPageSizeOptions" [value]="pageSizeOption"> |
14 |
| - {{pageSizeOption}} |
15 |
| - </mat-option> |
16 |
| - </mat-select> |
17 |
| - </mat-form-field> |
| 7 | + <mat-form-field |
| 8 | + *ngIf="_displayedPageSizeOptions.length > 1" |
| 9 | + class="mat-paginator-page-size-select"> |
| 10 | + <mat-select |
| 11 | + [value]="pageSize" |
| 12 | + [aria-label]="_intl.itemsPerPageLabel" |
| 13 | + (change)="_changePageSize($event.value)"> |
| 14 | + <mat-option *ngFor="let pageSizeOption of _displayedPageSizeOptions" [value]="pageSizeOption"> |
| 15 | + {{pageSizeOption}} |
| 16 | + </mat-option> |
| 17 | + </mat-select> |
| 18 | + </mat-form-field> |
18 | 19 |
|
19 |
| - <div *ngIf="_displayedPageSizeOptions.length <= 1">{{pageSize}}</div> |
20 |
| -</div> |
| 20 | + <div *ngIf="_displayedPageSizeOptions.length <= 1">{{pageSize}}</div> |
| 21 | + </div> |
21 | 22 |
|
22 |
| -<div class="mat-paginator-range-label"> |
23 |
| - {{_intl.getRangeLabel(pageIndex, pageSize, length)}} |
24 |
| -</div> |
| 23 | + <div class="mat-paginator-range-actions"> |
| 24 | + <div class="mat-paginator-range-label"> |
| 25 | + {{_intl.getRangeLabel(pageIndex, pageSize, length)}} |
| 26 | + </div> |
25 | 27 |
|
26 |
| -<button mat-icon-button type="button" |
27 |
| - class="mat-paginator-navigation-previous" |
28 |
| - (click)="previousPage()" |
29 |
| - [attr.aria-label]="_intl.previousPageLabel" |
30 |
| - [matTooltip]="_intl.previousPageLabel" |
31 |
| - [matTooltipPosition]="'above'" |
32 |
| - [disabled]="!hasPreviousPage()"> |
33 |
| - <div class="mat-paginator-increment"></div> |
34 |
| -</button> |
35 |
| -<button mat-icon-button type="button" |
36 |
| - class="mat-paginator-navigation-next" |
37 |
| - (click)="nextPage()" |
38 |
| - [attr.aria-label]="_intl.nextPageLabel" |
39 |
| - [matTooltip]="_intl.nextPageLabel" |
40 |
| - [matTooltipPosition]="'above'" |
41 |
| - [disabled]="!hasNextPage()"> |
42 |
| - <div class="mat-paginator-decrement"></div> |
43 |
| -</button> |
| 28 | + <button mat-icon-button type="button" |
| 29 | + class="mat-paginator-navigation-previous" |
| 30 | + (click)="previousPage()" |
| 31 | + [attr.aria-label]="_intl.previousPageLabel" |
| 32 | + [matTooltip]="_intl.previousPageLabel" |
| 33 | + [matTooltipPosition]="'above'" |
| 34 | + [disabled]="!hasPreviousPage()"> |
| 35 | + <div class="mat-paginator-increment"></div> |
| 36 | + </button> |
| 37 | + <button mat-icon-button type="button" |
| 38 | + class="mat-paginator-navigation-next" |
| 39 | + (click)="nextPage()" |
| 40 | + [attr.aria-label]="_intl.nextPageLabel" |
| 41 | + [matTooltip]="_intl.nextPageLabel" |
| 42 | + [matTooltipPosition]="'above'" |
| 43 | + [disabled]="!hasNextPage()"> |
| 44 | + <div class="mat-paginator-decrement"></div> |
| 45 | + </button> |
| 46 | + </div> |
| 47 | +</div> |
0 commit comments