angular2-smart-table
Advanced tools
Comparing version
@@ -5,2 +5,6 @@ # CHANGELOG | ||
## Version 3.5.2 | ||
* Fix that after removing the unnecessary paging events, the first page was not selected anymore when data was lazy loaded | ||
## Version 3.5.1 | ||
@@ -7,0 +11,0 @@ |
@@ -1,6 +0,6 @@ | ||
import { OnChanges, SimpleChanges } from '@angular/core'; | ||
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; | ||
import { Subscription } from 'rxjs'; | ||
import { DataSource, DataSourceChangeEvent } from '../../lib/data-source/data-source'; | ||
import { DataSource } from '../../lib/data-source/data-source'; | ||
import * as i0 from "@angular/core"; | ||
export declare class PagerComponent implements OnChanges { | ||
export declare class PagerComponent implements OnChanges, OnDestroy { | ||
source: DataSource; | ||
@@ -13,11 +13,5 @@ perPageSelect: number[]; | ||
protected perPage: number; | ||
protected dataChangedSub: Subscription; | ||
protected dataChangedSub: Subscription | null; | ||
ngOnChanges(changes: SimpleChanges): void; | ||
/** | ||
* We change the page here depending on the action performed against data source | ||
* if a new element was added to the end of the table - then change the page to the last | ||
* if a new element was added to the beginning of the table - then to the first page | ||
* @param changes | ||
*/ | ||
processPageChange(changes: DataSourceChangeEvent): void; | ||
ngOnDestroy(): void; | ||
shouldShow(): boolean; | ||
@@ -24,0 +18,0 @@ paginate(page: number): boolean; |
{ | ||
"name": "angular2-smart-table", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"description": "Angular 2 Smart Table", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
580609
-0.03%5962
-0.08%