Skip to content

Commit

Permalink
(release): 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed Dec 4, 2016
1 parent d52a92d commit eac67bf
Show file tree
Hide file tree
Showing 12 changed files with 102 additions and 31 deletions.
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 2.1.2
- Bug: Fix sizing method being debounced on view inits rather than just window resize.

## 2.1.1
- Bug: Fix memory leak with visibility observer

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular2-data-table",
"version": "2.1.1",
"version": "2.1.2",
"description": "angular2-data-table is a Angular2 component for presenting large and complex data.",
"main": "release/index.js",
"typings": "release/index.d.ts",
Expand Down
14 changes: 14 additions & 0 deletions release/components/datatable.component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ export declare class DatatableComponent implements OnInit, AfterViewInit {
* @memberOf DatatableComponent
*/
limit: number;
/**
* Gets the count.
*
* @readonly
* @type {number}
* @memberOf DatatableComponent
*/
/**
* The total count of all rows.
* Default value: `0`
Expand Down Expand Up @@ -420,6 +427,7 @@ export declare class DatatableComponent implements OnInit, AfterViewInit {
private offsetX;
private _rows;
private _columns;
private _count;
private _columnTemplates;
private _rowDetailTemplateChild;
constructor(element: ElementRef);
Expand Down Expand Up @@ -469,6 +477,12 @@ export declare class DatatableComponent implements OnInit, AfterViewInit {
* @memberOf DatatableComponent
*/
recalculate(): void;
/**
* Window resize handler to update sizes.
*
* @memberOf DatatableComponent
*/
onWindowResize(): void;
/**
* Recalulcates the column widths based on column width
* distribution mode and scrollbar offsets.
Expand Down
47 changes: 37 additions & 10 deletions release/components/datatable.component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion release/components/datatable.component.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion release/components/datatable.component.metadata.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion release/components/datatable.component.ngfactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export class Wrapper_DatatableComponent {
handleEvent(eventName:string,$event:any):boolean {
var result:boolean = true;
if ((eventName == 'window:resize')) {
const pd_sub_0:any = ((<any>this.context.recalculate()) !== false);
const pd_sub_0:any = ((<any>this.context.onWindowResize()) !== false);
result = (pd_sub_0 && result);
}
return result;
Expand Down
52 changes: 40 additions & 12 deletions release/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion release/index.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions release/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion release/index.min.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion release/utils/deep-getter.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="chai" />

/**
* Returns a deep object given a string. zoo['animal.type']
Expand Down

0 comments on commit eac67bf

Please sign in to comment.