@osovitny/anatoly 2.14.79 → 2.14.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2450,14 +2450,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
2450
2450
|
class DatapagerComponent {
|
|
2451
2451
|
constructor() {
|
|
2452
2452
|
//Private
|
|
2453
|
-
this.defaultPageSizes = [5, 10, 20, 30
|
|
2453
|
+
this.defaultPageSizes = [5, 10, 20, 30];
|
|
2454
2454
|
//Public
|
|
2455
2455
|
this.pageSizes = [];
|
|
2456
2456
|
//Inputs
|
|
2457
2457
|
this.totalItems = 0;
|
|
2458
2458
|
this.pageSize = 0;
|
|
2459
2459
|
this.skipItems = 0;
|
|
2460
|
-
this.pageSizeMax =
|
|
2460
|
+
this.pageSizeMax = 30;
|
|
2461
2461
|
//Outputs
|
|
2462
2462
|
this.pageChange = new EventEmitter();
|
|
2463
2463
|
}
|
|
@@ -2466,7 +2466,7 @@ class DatapagerComponent {
|
|
|
2466
2466
|
if (this.pageSizeDivisor) {
|
|
2467
2467
|
for (let i = 3; i < this.pageSizeMax; i++) {
|
|
2468
2468
|
let remainder = i % this.pageSizeDivisor;
|
|
2469
|
-
if (remainder
|
|
2469
|
+
if (remainder == 0) {
|
|
2470
2470
|
this.pageSizes.push(i);
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|