@colijnit/corecomponents_v12 12.0.51 → 12.0.52
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.
- package/bundles/colijnit-corecomponents_v12.umd.js +76 -61
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/input-combo-box/input-combo-box.component.js +2 -1
- package/esm2015/lib/components/pagination/pagination.component.js +8 -60
- package/esm2015/lib/components/pagination/pagination.service.js +1 -1
- package/esm2015/lib/components/pagination-bar/pagination-bar.component.js +71 -3
- package/fesm2015/colijnit-corecomponents_v12.js +78 -61
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/pagination/pagination.component.d.ts +2 -4
- package/lib/components/pagination-bar/pagination-bar.component.d.ts +11 -3
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { IPage } from "../pagination-bar/pagination-bar.component";
|
|
3
2
|
import { PaginationService } from './pagination.service';
|
|
4
3
|
export declare class PaginationComponent implements OnInit, OnChanges, OnDestroy {
|
|
5
4
|
private _paginationService;
|
|
@@ -12,7 +11,8 @@ export declare class PaginationComponent implements OnInit, OnChanges, OnDestroy
|
|
|
12
11
|
autoHide: boolean;
|
|
13
12
|
readonly pageChange: EventEmitter<number>;
|
|
14
13
|
showClass: boolean;
|
|
15
|
-
|
|
14
|
+
totalItems: number;
|
|
15
|
+
itemsPerPage: number;
|
|
16
16
|
private changeSub;
|
|
17
17
|
constructor(_paginationService: PaginationService);
|
|
18
18
|
ngOnInit(): void;
|
|
@@ -38,6 +38,4 @@ export declare class PaginationComponent implements OnInit, OnChanges, OnDestroy
|
|
|
38
38
|
* If not, return a correct value for currentPage, or the current value if OK.
|
|
39
39
|
*/
|
|
40
40
|
private outOfBoundCorrection;
|
|
41
|
-
private createPageArray;
|
|
42
|
-
private calculatePageNumber;
|
|
43
41
|
}
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
|
|
2
2
|
export interface IPage {
|
|
3
3
|
label: string;
|
|
4
4
|
value: any;
|
|
5
5
|
}
|
|
6
|
-
export declare class PaginationBarComponent {
|
|
7
|
-
pages: IPage[];
|
|
6
|
+
export declare class PaginationBarComponent implements OnInit, OnChanges {
|
|
8
7
|
directionLinks: boolean;
|
|
9
8
|
previousLabel: string;
|
|
10
9
|
nextLabel: string;
|
|
11
10
|
currentPage: number;
|
|
11
|
+
itemsPerPage: number;
|
|
12
|
+
totalItems: number;
|
|
13
|
+
paginationRange: number;
|
|
12
14
|
previousClick: EventEmitter<void>;
|
|
13
15
|
nextClick: EventEmitter<void>;
|
|
14
16
|
pageClick: EventEmitter<any>;
|
|
15
17
|
showClass(): boolean;
|
|
18
|
+
pages: IPage[];
|
|
19
|
+
totalPages: number;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
22
|
isOnFirstPage(): boolean;
|
|
17
23
|
isOnLastPage(): boolean;
|
|
18
24
|
onPreviousClick(): void;
|
|
19
25
|
onNextClick(): void;
|
|
20
26
|
onPageClick(value: any): void;
|
|
27
|
+
private _createPageArray;
|
|
28
|
+
private _calculatePageNumber;
|
|
21
29
|
}
|