Skip to content

Commit 7234d69

Browse files
committed
(release): 2.1.3
1 parent aeff4e1 commit 7234d69

11 files changed

+132
-69
lines changed

docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.1.3
4+
- Bug: Fix footer not updating when all removes removed
5+
- Bug: Fix Add/Remove items in array not updating (#255)
6+
37
## 2.1.2
48
- Bug: Fix sizing method being debounced on view inits rather than just window resize.
59

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular2-data-table",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "angular2-data-table is a Angular2 component for presenting large and complex data.",
55
"main": "release/index.js",
66
"typings": "release/index.d.ts",

release/components/datatable.component.d.ts

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { ElementRef, EventEmitter, OnInit, QueryList, AfterViewInit, TemplateRef } from '@angular/core';
1+
import { ElementRef, EventEmitter, OnInit, QueryList, AfterViewInit, TemplateRef, DoCheck, KeyValueDiffers } from '@angular/core';
22
import { ColumnMode, SortType, SelectionType } from '../types';
33
import { DataTableColumnDirective } from './columns';
44
import { DatatableRowDetailDirective } from './row-detail';
5-
export declare class DatatableComponent implements OnInit, AfterViewInit {
5+
export declare class DatatableComponent implements OnInit, AfterViewInit, DoCheck {
66
/**
77
* Gets the rows.
88
*
@@ -330,7 +330,7 @@ export declare class DatatableComponent implements OnInit, AfterViewInit {
330330
* if the horziontal scrolling is enabled.
331331
*
332332
* @readonly
333-
*
333+
* @type {boolean}
334334
* @memberOf DatatableComponent
335335
*/
336336
readonly isHorScroll: boolean;
@@ -425,12 +425,13 @@ export declare class DatatableComponent implements OnInit, AfterViewInit {
425425
private bodyHeight;
426426
private rowCount;
427427
private offsetX;
428+
private rowDiffer;
428429
private _rows;
429430
private _columns;
430431
private _count;
431432
private _columnTemplates;
432433
private _rowDetailTemplateChild;
433-
constructor(element: ElementRef);
434+
constructor(element: ElementRef, differs: KeyValueDiffers);
434435
/**
435436
* Lifecycle hook that is called after data-bound
436437
* properties of a directive are initialized.
@@ -445,6 +446,12 @@ export declare class DatatableComponent implements OnInit, AfterViewInit {
445446
* @memberOf DatatableComponent
446447
*/
447448
ngAfterViewInit(): void;
449+
/**
450+
* Lifecycle hook that is called when Angular dirty checks a directive.
451+
*
452+
* @memberOf DatatableComponent
453+
*/
454+
ngDoCheck(): void;
448455
/**
449456
* Toggle the expansion of the row
450457
*
@@ -502,6 +509,13 @@ export declare class DatatableComponent implements OnInit, AfterViewInit {
502509
* @memberOf DatatableComponent
503510
*/
504511
recalculateDims(): void;
512+
/**
513+
* Recalculates the pages after a update.
514+
*
515+
*
516+
* @memberOf DatatableComponent
517+
*/
518+
recalculatePages(): void;
505519
/**
506520
* Body triggered a page event.
507521
*

release/components/datatable.component.js

Lines changed: 23 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/components/datatable.component.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/components/datatable.component.metadata.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)