Updated @digi/core
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<digi-button af-variation="tertiary">
|
<digi-button af-variation="tertiary">
|
||||||
<digi-icon-edit style="--digi--ui--width--icon: 1.25rem;" slot="icon"></digi-icon-edit>
|
<digi-icon-edit style="--digi--ui--width--icon: 1.25rem" slot="icon"></digi-icon-edit>
|
||||||
</digi-button>
|
</digi-button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
</digi-table>
|
</digi-table>
|
||||||
|
|
||||||
<digi-navigation-pagination
|
<digi-navigation-pagination
|
||||||
*ngIf="employees.length > pagedEmployees.length"
|
*ngIf="totalPages > 1"
|
||||||
class="employees-list__pagination"
|
class="employees-list__pagination"
|
||||||
[afTotalPages]="totalPages"
|
[afTotalPages]="totalPages"
|
||||||
[afCurrentResultStart]="currentResultStart"
|
[afCurrentResultStart]="currentResultStart"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export class EmployeesListComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get pagedEmployees(): Employee[] {
|
get pagedEmployees(): Employee[] {
|
||||||
return [...this.employees].slice(this.currentResultStart - 1, this.currentResultEnd - 1);
|
return [...this.employees].slice(this.currentResultStart - 1, this.currentResultEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
get currentResultStart(): number {
|
get currentResultStart(): number {
|
||||||
@@ -34,7 +34,7 @@ export class EmployeesListComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get currentResultEnd(): number {
|
get currentResultEnd(): number {
|
||||||
return this.currentResultStart + this._employeesPerPage;
|
return this.currentResultStart + this._employeesPerPage - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSort(key: keyof Employee): void {
|
handleSort(key: keyof Employee): void {
|
||||||
|
|||||||
367
package-lock.json
generated
367
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -53,7 +53,7 @@
|
|||||||
"@angular/platform-browser": "^11.2.0",
|
"@angular/platform-browser": "^11.2.0",
|
||||||
"@angular/platform-browser-dynamic": "^11.2.0",
|
"@angular/platform-browser-dynamic": "^11.2.0",
|
||||||
"@angular/router": "^11.2.0",
|
"@angular/router": "^11.2.0",
|
||||||
"@digi/core": "^9.0.0",
|
"@digi/core": "^9.1.0",
|
||||||
"@digi/styles": "^6.0.2",
|
"@digi/styles": "^6.0.2",
|
||||||
"@nrwl/angular": "11.5.1",
|
"@nrwl/angular": "11.5.1",
|
||||||
"ngx-markdown": "^11.1.3",
|
"ngx-markdown": "^11.1.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user