Updated @digi/core

This commit is contained in:
Erik Tiekstra
2021-06-02 08:30:24 +02:00
parent c4440a2bbe
commit b3f7c823b3
4 changed files with 341 additions and 36 deletions

View File

@@ -50,7 +50,7 @@
</td>
<td>
<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>
</td>
</tr>
@@ -59,7 +59,7 @@
</digi-table>
<digi-navigation-pagination
*ngIf="employees.length > pagedEmployees.length"
*ngIf="totalPages > 1"
class="employees-list__pagination"
[afTotalPages]="totalPages"
[afCurrentResultStart]="currentResultStart"

View File

@@ -26,7 +26,7 @@ export class EmployeesListComponent {
}
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 {
@@ -34,7 +34,7 @@ export class EmployeesListComponent {
}
get currentResultEnd(): number {
return this.currentResultStart + this._employeesPerPage;
return this.currentResultStart + this._employeesPerPage - 1;
}
handleSort(key: keyof Employee): void {

367
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -53,7 +53,7 @@
"@angular/platform-browser": "^11.2.0",
"@angular/platform-browser-dynamic": "^11.2.0",
"@angular/router": "^11.2.0",
"@digi/core": "^9.0.0",
"@digi/core": "^9.1.0",
"@digi/styles": "^6.0.2",
"@nrwl/angular": "11.5.1",
"ngx-markdown": "^11.1.3",