@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.
@@ -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
- pages: IPage[];
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "12.0.51",
3
+ "version": "12.0.52",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {