diff --git a/package.json b/package.json
index a550ac6ec..1cce95e9e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@swimlane/ngx-datatable",
- "version": "4.1.0",
+ "version": "4.2.0",
"description": "ngx-datatable is a Angular2+ table grid component for presenting large and complex data.",
"main": "release/index.js",
"typings": "release/index.d.ts",
diff --git a/release/assets/icons-reference.html b/release/assets/icons-reference.html
index 1d2781ed1..f5ac20906 100644
--- a/release/assets/icons-reference.html
+++ b/release/assets/icons-reference.html
@@ -6,7 +6,7 @@
Font Reference - Data Table
-
+
diff --git a/release/components/body/body-cell.component.d.ts b/release/components/body/body-cell.component.d.ts
index aeb85e8a9..14a0cc736 100644
--- a/release/components/body/body-cell.component.d.ts
+++ b/release/components/body/body-cell.component.d.ts
@@ -7,6 +7,7 @@ export declare class DataTableBodyCellComponent {
isSelected: boolean;
sorts: any[];
activate: EventEmitter;
+ readonly columnCssClasses: any;
isFocused: boolean;
readonly isSortActive: boolean;
readonly isSortAscending: boolean;
diff --git a/release/components/body/body-cell.component.js b/release/components/body/body-cell.component.js
index e6d10dd23..6369177ea 100644
--- a/release/components/body/body-cell.component.js
+++ b/release/components/body/body-cell.component.js
@@ -19,6 +19,16 @@ var DataTableBodyCellComponent = (function () {
enumerable: true,
configurable: true
});
+ Object.defineProperty(DataTableBodyCellComponent.prototype, "columnCssClasses", {
+ get: function () {
+ var cls = 'datatable-body-cell';
+ if (this.column.cssClasses)
+ cls += ' ' + this.column.cssClasses;
+ return cls;
+ },
+ enumerable: true,
+ configurable: true
+ });
Object.defineProperty(DataTableBodyCellComponent.prototype, "isSortActive", {
get: function () {
return !this.sortDir;
@@ -159,6 +169,7 @@ var DataTableBodyCellComponent = (function () {
'isSelected': [{ type: core_1.Input },],
'sorts': [{ type: core_1.Input },],
'activate': [{ type: core_1.Output },],
+ 'columnCssClasses': [{ type: core_1.HostBinding, args: ['class',] },],
'isFocused': [{ type: core_1.HostBinding, args: ['class.active',] },],
'isSortActive': [{ type: core_1.HostBinding, args: ['class.sort-active',] },],
'isSortAscending': [{ type: core_1.HostBinding, args: ['class.sort-asc',] },],
diff --git a/release/components/body/body-cell.component.js.map b/release/components/body/body-cell.component.js.map
index a5ea233d3..f584de6a0 100644
--- a/release/components/body/body-cell.component.js.map
+++ b/release/components/body/body-cell.component.js.map
@@ -1 +1 @@
-{"version":3,"file":"body-cell.component.js","sourceRoot":"","sources":["../../../src/components/body/body-cell.component.ts"],"names":[],"mappings":";AAAA,qBAGO,eAAe,CAAC,CAAA;AAEvB,sBAAsC,aAAa,CAAC,CAAA;AACpD,sBAA8B,aAAa,CAAC,CAAA;AAG5C;IA8DE,oCAAY,OAAmB;QA9C9B,aAAQ,GAAsB,IAAI,mBAAY,EAAE,CAAC;QAGlD,cAAS,GAAY,KAAK,CAAC;QA4CzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC;IACvC,CAAC;IAzDA,sBAAI,6CAAK;aAKV;YACE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;aAPA,UAAU,GAAU;YACnB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;YAClB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC3C,CAAC;;;OAAA;IAYD,sBAAI,oDAAY;aAAhB;YACE,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QACvB,CAAC;;;OAAA;IAGD,sBAAI,uDAAe;aAAnB;YACE,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,qBAAa,CAAC,GAAG,CAAC;QAC5C,CAAC;;;OAAA;IAGD,sBAAI,wDAAgB;aAApB;YACE,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,qBAAa,CAAC,IAAI,CAAC;QAC7C,CAAC;;;OAAA;IAGD,sBAAI,6CAAK;aAAT;YACE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QAC3B,CAAC;;;OAAA;IAG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,iCAAC;AAAD,CAAC,AAjND,IAiNC;AAjNY,kCAA0B,6BAiNtC,CAAA"}
\ No newline at end of file
diff --git a/release/components/body/body-cell.component.metadata.json b/release/components/body/body-cell.component.metadata.json
index 2b77a4ff4..8433b303f 100644
--- a/release/components/body/body-cell.component.metadata.json
+++ b/release/components/body/body-cell.component.metadata.json
@@ -1 +1 @@
-[{"__symbolic":"module","version":3,"metadata":{"DataTableBodyCellComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datatable-body-cell","template":"\n \n \n \n \n \n \n \n \n
\n ","host":{"class":"datatable-body-cell"}}]}],"members":{"row":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"column":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rowHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"sorts":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"activate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"isFocused":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.active"]}]}],"isSortActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-active"]}]}],"isSortAscending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-asc"]}]}],"isSortDescending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-desc"]}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.width.px"]}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.height"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"onFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["focus"]}]}],"onBlur":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["blur"]}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click",["$event"]]}]}],"onDblClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["dblclick",["$event"]]}]}],"onKeyDown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["keydown",["$event"]]}]}],"onCheckboxChange":[{"__symbolic":"method"}],"calcSortDir":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DataTableBodyCellComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datatable-body-cell","template":"\n \n \n \n \n \n \n \n \n
\n ","host":{"class":"datatable-body-cell"}}]}],"members":{"row":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"column":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rowHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"sorts":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"activate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"isFocused":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.active"]}]}],"isSortActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-active"]}]}],"isSortAscending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-asc"]}]}],"isSortDescending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-desc"]}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.width.px"]}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.height"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"onFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["focus"]}]}],"onBlur":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["blur"]}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click",["$event"]]}]}],"onDblClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["dblclick",["$event"]]}]}],"onKeyDown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["keydown",["$event"]]}]}],"onCheckboxChange":[{"__symbolic":"method"}],"calcSortDir":[{"__symbolic":"method"}]}}}}]
\ No newline at end of file
+[{"__symbolic":"module","version":3,"metadata":{"DataTableBodyCellComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datatable-body-cell","template":"\n \n \n \n \n \n \n \n \n
\n ","host":{"class":"datatable-body-cell"}}]}],"members":{"row":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"column":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rowHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"sorts":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"activate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"columnCssClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class"]}]}],"isFocused":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.active"]}]}],"isSortActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-active"]}]}],"isSortAscending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-asc"]}]}],"isSortDescending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-desc"]}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.width.px"]}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.height"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"onFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["focus"]}]}],"onBlur":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["blur"]}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click",["$event"]]}]}],"onDblClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["dblclick",["$event"]]}]}],"onKeyDown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["keydown",["$event"]]}]}],"onCheckboxChange":[{"__symbolic":"method"}],"calcSortDir":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"DataTableBodyCellComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"datatable-body-cell","template":"\n \n \n \n \n \n \n \n \n
\n ","host":{"class":"datatable-body-cell"}}]}],"members":{"row":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"column":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rowHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"isSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"sorts":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"activate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"columnCssClasses":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class"]}]}],"isFocused":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.active"]}]}],"isSortActive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-active"]}]}],"isSortAscending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-asc"]}]}],"isSortDescending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["class.sort-desc"]}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.width.px"]}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.height"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"onFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["focus"]}]}],"onBlur":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["blur"]}]}],"onClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["click",["$event"]]}]}],"onDblClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["dblclick",["$event"]]}]}],"onKeyDown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["keydown",["$event"]]}]}],"onCheckboxChange":[{"__symbolic":"method"}],"calcSortDir":[{"__symbolic":"method"}]}}}}]
\ No newline at end of file
diff --git a/release/components/body/body-cell.component.ngfactory.ts b/release/components/body/body-cell.component.ngfactory.ts
index 308757fad..de110167a 100644
--- a/release/components/body/body-cell.component.ngfactory.ts
+++ b/release/components/body/body-cell.component.ngfactory.ts
@@ -17,11 +17,11 @@ import * as import8 from '@angular/core/src/change_detection/constants';
import * as import9 from '@angular/core/src/linker/component_factory';
import * as import10 from '@angular/core/src/linker/element_ref';
import * as import11 from '@angular/core/src/linker/view_container';
-import * as import12 from '../../../node_modules/@angular/common/src/directives/ng_if.ngfactory';
+import * as import12 from '../../../node_modules/@angular/common/src/directives/ng_template_outlet.ngfactory';
import * as import13 from '@angular/core/src/linker/template_ref';
-import * as import14 from '@angular/common/src/directives/ng_if';
-import * as import15 from '../../../node_modules/@angular/common/src/directives/ng_template_outlet.ngfactory';
-import * as import16 from '@angular/common/src/directives/ng_template_outlet';
+import * as import14 from '@angular/common/src/directives/ng_template_outlet';
+import * as import15 from '../../../node_modules/@angular/common/src/directives/ng_if.ngfactory';
+import * as import16 from '@angular/common/src/directives/ng_if';
export class Wrapper_DataTableBodyCellComponent {
/*private*/ _eventHandler:Function;
context:import0.DataTableBodyCellComponent;
@@ -37,6 +37,7 @@ export class Wrapper_DataTableBodyCellComponent {
/*private*/ _expr_8:any;
/*private*/ _expr_9:any;
/*private*/ _expr_10:any;
+ /*private*/ _expr_11:any;
subscription0:any;
constructor(p0:any) {
this._changed = false;
@@ -52,6 +53,7 @@ export class Wrapper_DataTableBodyCellComponent {
this._expr_8 = import1.UNINITIALIZED;
this._expr_9 = import1.UNINITIALIZED;
this._expr_10 = import1.UNINITIALIZED;
+ this._expr_11 = import1.UNINITIALIZED;
}
ngOnDetach(view:import2.AppView,componentView:import2.AppView,el:any):void {
}
@@ -99,36 +101,41 @@ export class Wrapper_DataTableBodyCellComponent {
return changed;
}
checkHost(view:import2.AppView,componentView:import2.AppView,el:any,throwOnChange:boolean):void {
- const currVal_5:any = this.context.isFocused;
+ const currVal_5:any = this.context.columnCssClasses;
if (import3.checkBinding(throwOnChange,this._expr_5,currVal_5)) {
- view.renderer.setElementClass(el,'active',currVal_5);
+ view.renderer.setElementProperty(el,'className',currVal_5);
this._expr_5 = currVal_5;
}
- const currVal_6:any = this.context.isSortActive;
+ const currVal_6:any = this.context.isFocused;
if (import3.checkBinding(throwOnChange,this._expr_6,currVal_6)) {
- view.renderer.setElementClass(el,'sort-active',currVal_6);
+ view.renderer.setElementClass(el,'active',currVal_6);
this._expr_6 = currVal_6;
}
- const currVal_7:any = this.context.isSortAscending;
+ const currVal_7:any = this.context.isSortActive;
if (import3.checkBinding(throwOnChange,this._expr_7,currVal_7)) {
- view.renderer.setElementClass(el,'sort-asc',currVal_7);
+ view.renderer.setElementClass(el,'sort-active',currVal_7);
this._expr_7 = currVal_7;
}
- const currVal_8:any = this.context.isSortDescending;
+ const currVal_8:any = this.context.isSortAscending;
if (import3.checkBinding(throwOnChange,this._expr_8,currVal_8)) {
- view.renderer.setElementClass(el,'sort-desc',currVal_8);
+ view.renderer.setElementClass(el,'sort-asc',currVal_8);
this._expr_8 = currVal_8;
}
- const currVal_9:any = this.context.width;
+ const currVal_9:any = this.context.isSortDescending;
if (import3.checkBinding(throwOnChange,this._expr_9,currVal_9)) {
- view.renderer.setElementStyle(el,'width',((view.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_9) == null)? (null as any): (view.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_9).toString() + 'px')));
+ view.renderer.setElementClass(el,'sort-desc',currVal_9);
this._expr_9 = currVal_9;
}
- const currVal_10:any = this.context.height;
+ const currVal_10:any = this.context.width;
if (import3.checkBinding(throwOnChange,this._expr_10,currVal_10)) {
- view.renderer.setElementStyle(el,'height',((view.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_10) == null)? (null as any): view.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_10).toString()));
+ view.renderer.setElementStyle(el,'width',((view.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_10) == null)? (null as any): (view.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_10).toString() + 'px')));
this._expr_10 = currVal_10;
}
+ const currVal_11:any = this.context.height;
+ if (import3.checkBinding(throwOnChange,this._expr_11,currVal_11)) {
+ view.renderer.setElementStyle(el,'height',((view.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_11) == null)? (null as any): view.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_11).toString()));
+ this._expr_11 = currVal_11;
+ }
}
handleEvent(eventName:string,$event:any):boolean {
var result:boolean = true;
@@ -201,101 +208,6 @@ class View_DataTableBodyCellComponent_Host0 extends import2.AppView {
}
export const DataTableBodyCellComponentNgFactory:import9.ComponentFactory = new import9.ComponentFactory('datatable-body-cell',View_DataTableBodyCellComponent_Host0,import0.DataTableBodyCellComponent);
const styles_DataTableBodyCellComponent:any[] = ([] as any[]);
-var renderType_DataTableBodyCellComponent:import5.RenderComponentType = import3.createRenderComponentType('',0,import6.ViewEncapsulation.None,styles_DataTableBodyCellComponent,{});
-export class View_DataTableBodyCellComponent0 extends import2.AppView {
- _text_0:any;
- _el_1:any;
- _text_2:any;
- _anchor_3:any;
- /*private*/ _vc_3:import11.ViewContainer;
- _TemplateRef_3_5:any;
- _NgIf_3_6:import12.Wrapper_NgIf;
- _text_4:any;
- _anchor_5:any;
- /*private*/ _vc_5:import11.ViewContainer;
- _TemplateRef_5_5:any;
- _NgIf_5_6:import12.Wrapper_NgIf;
- _text_6:any;
- _anchor_7:any;
- /*private*/ _vc_7:import11.ViewContainer;
- _TemplateRef_7_5:any;
- _NgIf_7_6:import12.Wrapper_NgIf;
- _text_8:any;
- _text_9:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
- super(View_DataTableBodyCellComponent0,renderType_DataTableBodyCellComponent,import7.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways);
- }
- createInternal(rootSelector:string):import9.ComponentRef {
- const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
- this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this._el_1 = import3.createRenderElement(this.renderer,parentRenderNode,'div',new import3.InlineArray2(2,'class','datatable-body-cell-label'),(null as any));
- this._text_2 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._anchor_3 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
- this._vc_3 = new import11.ViewContainer(3,1,this,this._anchor_3);
- this._TemplateRef_3_5 = new import13.TemplateRef_(this,3,this._anchor_3);
- this._NgIf_3_6 = new import12.Wrapper_NgIf(this._vc_3.vcRef,this._TemplateRef_3_5);
- this._text_4 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._anchor_5 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
- this._vc_5 = new import11.ViewContainer(5,1,this,this._anchor_5);
- this._TemplateRef_5_5 = new import13.TemplateRef_(this,5,this._anchor_5);
- this._NgIf_5_6 = new import12.Wrapper_NgIf(this._vc_5.vcRef,this._TemplateRef_5_5);
- this._text_6 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._anchor_7 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
- this._vc_7 = new import11.ViewContainer(7,1,this,this._anchor_7);
- this._TemplateRef_7_5 = new import13.TemplateRef_(this,7,this._anchor_7);
- this._NgIf_7_6 = new import12.Wrapper_NgIf(this._vc_7.vcRef,this._TemplateRef_7_5);
- this._text_8 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._text_9 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this.init((null as any),((this.renderer).directRenderer? (null as any): [
- this._text_0,
- this._el_1,
- this._text_2,
- this._anchor_3,
- this._text_4,
- this._anchor_5,
- this._text_6,
- this._anchor_7,
- this._text_8,
- this._text_9
- ]
- ),(null as any));
- return (null as any);
- }
- injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import13.TemplateRef) && (3 === requestNodeIndex))) { return this._TemplateRef_3_5; }
- if (((token === import14.NgIf) && (3 === requestNodeIndex))) { return this._NgIf_3_6.context; }
- if (((token === import13.TemplateRef) && (5 === requestNodeIndex))) { return this._TemplateRef_5_5; }
- if (((token === import14.NgIf) && (5 === requestNodeIndex))) { return this._NgIf_5_6.context; }
- if (((token === import13.TemplateRef) && (7 === requestNodeIndex))) { return this._TemplateRef_7_5; }
- if (((token === import14.NgIf) && (7 === requestNodeIndex))) { return this._NgIf_7_6.context; }
- return notFoundResult;
- }
- detectChangesInternal(throwOnChange:boolean):void {
- const currVal_3_0_0:any = this.context.column.checkboxable;
- this._NgIf_3_6.check_ngIf(currVal_3_0_0,throwOnChange,false);
- this._NgIf_3_6.ngDoCheck(this,this._anchor_3,throwOnChange);
- const currVal_5_0_0:boolean = !this.context.column.cellTemplate;
- this._NgIf_5_6.check_ngIf(currVal_5_0_0,throwOnChange,false);
- this._NgIf_5_6.ngDoCheck(this,this._anchor_5,throwOnChange);
- const currVal_7_0_0:any = this.context.column.cellTemplate;
- this._NgIf_7_6.check_ngIf(currVal_7_0_0,throwOnChange,false);
- this._NgIf_7_6.ngDoCheck(this,this._anchor_7,throwOnChange);
- this._vc_3.detectChangesInNestedViews(throwOnChange);
- this._vc_5.detectChangesInNestedViews(throwOnChange);
- this._vc_7.detectChangesInNestedViews(throwOnChange);
- }
- destroyInternal():void {
- this._vc_3.destroyNestedViews();
- this._vc_5.destroyNestedViews();
- this._vc_7.destroyNestedViews();
- }
- createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
- if ((nodeIndex == 3)) { return new View_DataTableBodyCellComponent1(this.viewUtils,this,3,this._anchor_3,this._vc_3); }
- if ((nodeIndex == 5)) { return new View_DataTableBodyCellComponent2(this.viewUtils,this,5,this._anchor_5,this._vc_5); }
- if ((nodeIndex == 7)) { return new View_DataTableBodyCellComponent3(this.viewUtils,this,7,this._anchor_7,this._vc_7); }
- return (null as any);
- }
-}
class View_DataTableBodyCellComponent1 extends import2.AppView {
_el_0:any;
_text_1:any;
@@ -370,11 +282,25 @@ class View_DataTableBodyCellComponent2 extends import2.AppView {
cb(this._el_0,ctx);
}
}
+class View_DataTableBodyCellComponent4 extends import2.AppView {
+ _text_0:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import11.ViewContainer) {
+ super(View_DataTableBodyCellComponent4,renderType_DataTableBodyCellComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
+ }
+ createInternal(rootSelector:string):import9.ComponentRef {
+ this._text_0 = this.renderer.createText((null as any),'\n ',(null as any));
+ this.init(this._text_0,((this.renderer).directRenderer? (null as any): [this._text_0]),(null as any));
+ return (null as any);
+ }
+ visitRootNodesInternal(cb:any,ctx:any):void {
+ cb(this._text_0,ctx);
+ }
+}
class View_DataTableBodyCellComponent3 extends import2.AppView {
_anchor_0:any;
/*private*/ _vc_0:import11.ViewContainer;
_TemplateRef_0_5:any;
- _NgTemplateOutlet_0_6:import15.Wrapper_NgTemplateOutlet;
+ _NgTemplateOutlet_0_6:import12.Wrapper_NgTemplateOutlet;
_el_1:any;
_map_5:any;
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import11.ViewContainer) {
@@ -392,14 +318,14 @@ class View_DataTableBodyCellComponent3 extends import2.AppView {
this._anchor_0 = this.renderer.createTemplateAnchor((null as any),(null as any));
this._vc_0 = new import11.ViewContainer(0,(null as any),this,this._anchor_0);
this._TemplateRef_0_5 = new import13.TemplateRef_(this,0,this._anchor_0);
- this._NgTemplateOutlet_0_6 = new import15.Wrapper_NgTemplateOutlet(this._vc_0.vcRef);
+ this._NgTemplateOutlet_0_6 = new import12.Wrapper_NgTemplateOutlet(this._vc_0.vcRef);
this._el_1 = this.renderer.createTemplateAnchor((null as any),(null as any));
this.init(this._el_1,((this.renderer).directRenderer? (null as any): [this._anchor_0]),(null as any));
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
if (((token === import13.TemplateRef) && (0 === requestNodeIndex))) { return this._TemplateRef_0_5; }
- if (((token === import16.NgTemplateOutlet) && (0 === requestNodeIndex))) { return this._NgTemplateOutlet_0_6.context; }
+ if (((token === import14.NgTemplateOutlet) && (0 === requestNodeIndex))) { return this._NgTemplateOutlet_0_6.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
@@ -423,17 +349,98 @@ class View_DataTableBodyCellComponent3 extends import2.AppView {
return (null as any);
}
}
-class View_DataTableBodyCellComponent4 extends import2.AppView {
+var renderType_DataTableBodyCellComponent:import5.RenderComponentType = import3.createRenderComponentType('',0,import6.ViewEncapsulation.None,styles_DataTableBodyCellComponent,{});
+export class View_DataTableBodyCellComponent0 extends import2.AppView {
_text_0:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import11.ViewContainer) {
- super(View_DataTableBodyCellComponent4,renderType_DataTableBodyCellComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
+ _el_1:any;
+ _text_2:any;
+ _anchor_3:any;
+ /*private*/ _vc_3:import11.ViewContainer;
+ _TemplateRef_3_5:any;
+ _NgIf_3_6:import15.Wrapper_NgIf;
+ _text_4:any;
+ _anchor_5:any;
+ /*private*/ _vc_5:import11.ViewContainer;
+ _TemplateRef_5_5:any;
+ _NgIf_5_6:import15.Wrapper_NgIf;
+ _text_6:any;
+ _anchor_7:any;
+ /*private*/ _vc_7:import11.ViewContainer;
+ _TemplateRef_7_5:any;
+ _NgIf_7_6:import15.Wrapper_NgIf;
+ _text_8:any;
+ _text_9:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
+ super(View_DataTableBodyCellComponent0,renderType_DataTableBodyCellComponent,import7.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways);
}
createInternal(rootSelector:string):import9.ComponentRef {
- this._text_0 = this.renderer.createText((null as any),'\n ',(null as any));
- this.init(this._text_0,((this.renderer).directRenderer? (null as any): [this._text_0]),(null as any));
+ const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
+ this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ this._el_1 = import3.createRenderElement(this.renderer,parentRenderNode,'div',new import3.InlineArray2(2,'class','datatable-body-cell-label'),(null as any));
+ this._text_2 = this.renderer.createText(this._el_1,'\n ',(null as any));
+ this._anchor_3 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
+ this._vc_3 = new import11.ViewContainer(3,1,this,this._anchor_3);
+ this._TemplateRef_3_5 = new import13.TemplateRef_(this,3,this._anchor_3);
+ this._NgIf_3_6 = new import15.Wrapper_NgIf(this._vc_3.vcRef,this._TemplateRef_3_5);
+ this._text_4 = this.renderer.createText(this._el_1,'\n ',(null as any));
+ this._anchor_5 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
+ this._vc_5 = new import11.ViewContainer(5,1,this,this._anchor_5);
+ this._TemplateRef_5_5 = new import13.TemplateRef_(this,5,this._anchor_5);
+ this._NgIf_5_6 = new import15.Wrapper_NgIf(this._vc_5.vcRef,this._TemplateRef_5_5);
+ this._text_6 = this.renderer.createText(this._el_1,'\n ',(null as any));
+ this._anchor_7 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
+ this._vc_7 = new import11.ViewContainer(7,1,this,this._anchor_7);
+ this._TemplateRef_7_5 = new import13.TemplateRef_(this,7,this._anchor_7);
+ this._NgIf_7_6 = new import15.Wrapper_NgIf(this._vc_7.vcRef,this._TemplateRef_7_5);
+ this._text_8 = this.renderer.createText(this._el_1,'\n ',(null as any));
+ this._text_9 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ this.init((null as any),((this.renderer).directRenderer? (null as any): [
+ this._text_0,
+ this._el_1,
+ this._text_2,
+ this._anchor_3,
+ this._text_4,
+ this._anchor_5,
+ this._text_6,
+ this._anchor_7,
+ this._text_8,
+ this._text_9
+ ]
+ ),(null as any));
return (null as any);
}
- visitRootNodesInternal(cb:any,ctx:any):void {
- cb(this._text_0,ctx);
+ injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
+ if (((token === import13.TemplateRef) && (3 === requestNodeIndex))) { return this._TemplateRef_3_5; }
+ if (((token === import16.NgIf) && (3 === requestNodeIndex))) { return this._NgIf_3_6.context; }
+ if (((token === import13.TemplateRef) && (5 === requestNodeIndex))) { return this._TemplateRef_5_5; }
+ if (((token === import16.NgIf) && (5 === requestNodeIndex))) { return this._NgIf_5_6.context; }
+ if (((token === import13.TemplateRef) && (7 === requestNodeIndex))) { return this._TemplateRef_7_5; }
+ if (((token === import16.NgIf) && (7 === requestNodeIndex))) { return this._NgIf_7_6.context; }
+ return notFoundResult;
+ }
+ detectChangesInternal(throwOnChange:boolean):void {
+ const currVal_3_0_0:any = this.context.column.checkboxable;
+ this._NgIf_3_6.check_ngIf(currVal_3_0_0,throwOnChange,false);
+ this._NgIf_3_6.ngDoCheck(this,this._anchor_3,throwOnChange);
+ const currVal_5_0_0:boolean = !this.context.column.cellTemplate;
+ this._NgIf_5_6.check_ngIf(currVal_5_0_0,throwOnChange,false);
+ this._NgIf_5_6.ngDoCheck(this,this._anchor_5,throwOnChange);
+ const currVal_7_0_0:any = this.context.column.cellTemplate;
+ this._NgIf_7_6.check_ngIf(currVal_7_0_0,throwOnChange,false);
+ this._NgIf_7_6.ngDoCheck(this,this._anchor_7,throwOnChange);
+ this._vc_3.detectChangesInNestedViews(throwOnChange);
+ this._vc_5.detectChangesInNestedViews(throwOnChange);
+ this._vc_7.detectChangesInNestedViews(throwOnChange);
+ }
+ destroyInternal():void {
+ this._vc_3.destroyNestedViews();
+ this._vc_5.destroyNestedViews();
+ this._vc_7.destroyNestedViews();
+ }
+ createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
+ if ((nodeIndex == 3)) { return new View_DataTableBodyCellComponent1(this.viewUtils,this,3,this._anchor_3,this._vc_3); }
+ if ((nodeIndex == 5)) { return new View_DataTableBodyCellComponent2(this.viewUtils,this,5,this._anchor_5,this._vc_5); }
+ if ((nodeIndex == 7)) { return new View_DataTableBodyCellComponent3(this.viewUtils,this,7,this._anchor_7,this._vc_7); }
+ return (null as any);
}
}
\ No newline at end of file
diff --git a/release/components/body/body-cell.component.ngsummary.json b/release/components/body/body-cell.component.ngsummary.json
index 56be9fd1b..3578c5dd6 100644
--- a/release/components/body/body-cell.component.ngsummary.json
+++ b/release/components/body/body-cell.component.ngsummary.json
@@ -1 +1 @@
-{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1}}}}],"lifecycleHooks":[]},"isComponent":true,"selector":"datatable-body-cell","inputs":{"row":"row","column":"column","rowHeight":"rowHeight","isSelected":"isSelected","sorts":"sorts"},"outputs":{"activate":"activate"},"hostListeners":{"focus":"onFocus()","blur":"onBlur()","click":"onClick($event)","dblclick":"onDblClick($event)","keydown":"onKeyDown($event)"},"hostProperties":{"class.active":"isFocused","class.sort-active":"isSortActive","class.sort-asc":"isSortAscending","class.sort-desc":"isSortDescending","style.width.px":"width","style.height":"height"},"hostAttributes":{"class":"datatable-body-cell"},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":[],"ngContentSelectors":[],"encapsulation":2}}}],"symbols":[{"__symbol":0,"name":"DataTableBodyCellComponent","filePath":"C:/dev/angular2-data-table/src/components/body/body-cell.component.d.ts"},{"__symbol":1,"name":"ElementRef","filePath":"C:/dev/angular2-data-table/node_modules/@angular/core/src/linker/element_ref.d.ts"}]}
\ No newline at end of file
+{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1}}}}],"lifecycleHooks":[]},"isComponent":true,"selector":"datatable-body-cell","inputs":{"row":"row","column":"column","rowHeight":"rowHeight","isSelected":"isSelected","sorts":"sorts"},"outputs":{"activate":"activate"},"hostListeners":{"focus":"onFocus()","blur":"onBlur()","click":"onClick($event)","dblclick":"onDblClick($event)","keydown":"onKeyDown($event)"},"hostProperties":{"class":"columnCssClasses","class.active":"isFocused","class.sort-active":"isSortActive","class.sort-asc":"isSortAscending","class.sort-desc":"isSortDescending","style.width.px":"width","style.height":"height"},"hostAttributes":{"class":"datatable-body-cell"},"providers":[],"viewProviders":[],"queries":[],"entryComponents":[],"changeDetection":1,"template":{"animations":[],"ngContentSelectors":[],"encapsulation":2}}}],"symbols":[{"__symbol":0,"name":"DataTableBodyCellComponent","filePath":"C:/dev/angular2-data-table/src/components/body/body-cell.component.d.ts"},{"__symbol":1,"name":"ElementRef","filePath":"C:/dev/angular2-data-table/node_modules/@angular/core/src/linker/element_ref.d.ts"}]}
\ No newline at end of file
diff --git a/release/components/body/body-row-wrapper.component.ngfactory.ts b/release/components/body/body-row-wrapper.component.ngfactory.ts
index 80c746e08..f9867f4a4 100644
--- a/release/components/body/body-row-wrapper.component.ngfactory.ts
+++ b/release/components/body/body-row-wrapper.component.ngfactory.ts
@@ -15,12 +15,12 @@ import * as import6 from '@angular/core/src/linker/view_type';
import * as import7 from '@angular/core/src/change_detection/constants';
import * as import8 from '@angular/core/src/linker/component_factory';
import * as import9 from '@angular/core/src/linker/view_container';
-import * as import10 from '../../../node_modules/@angular/common/src/directives/ng_if.ngfactory';
+import * as import10 from '../../../node_modules/@angular/common/src/directives/ng_template_outlet.ngfactory';
import * as import11 from '@angular/core/src/linker/template_ref';
-import * as import12 from '@angular/common/src/directives/ng_if';
-import * as import13 from '@angular/core/src/security';
-import * as import14 from '../../../node_modules/@angular/common/src/directives/ng_template_outlet.ngfactory';
-import * as import15 from '@angular/common/src/directives/ng_template_outlet';
+import * as import12 from '@angular/common/src/directives/ng_template_outlet';
+import * as import13 from '../../../node_modules/@angular/common/src/directives/ng_if.ngfactory';
+import * as import14 from '@angular/common/src/directives/ng_if';
+import * as import15 from '@angular/core/src/security';
export class Wrapper_DataTableRowWrapperComponent {
/*private*/ _eventHandler:Function;
context:import0.DataTableRowWrapperComponent;
@@ -135,53 +135,65 @@ class View_DataTableRowWrapperComponent_Host0 extends import2.AppView {
}
export const DataTableRowWrapperComponentNgFactory:import8.ComponentFactory = new import8.ComponentFactory('datatable-row-wrapper',View_DataTableRowWrapperComponent_Host0,import0.DataTableRowWrapperComponent);
const styles_DataTableRowWrapperComponent:any[] = ([] as any[]);
-var renderType_DataTableRowWrapperComponent:import4.RenderComponentType = import3.createRenderComponentType('',1,import5.ViewEncapsulation.None,styles_DataTableRowWrapperComponent,{});
-export class View_DataTableRowWrapperComponent0 extends import2.AppView {
+class View_DataTableRowWrapperComponent3 extends import2.AppView {
_text_0:any;
- _text_1:any;
- _anchor_2:any;
- /*private*/ _vc_2:import9.ViewContainer;
- _TemplateRef_2_5:any;
- _NgIf_2_6:import10.Wrapper_NgIf;
- _text_3:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
- super(View_DataTableRowWrapperComponent0,renderType_DataTableRowWrapperComponent,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways);
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import9.ViewContainer) {
+ super(View_DataTableRowWrapperComponent3,renderType_DataTableRowWrapperComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
}
createInternal(rootSelector:string):import8.ComponentRef {
- const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
- this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this.projectNodes(parentRenderNode,0);
- this._text_1 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this._anchor_2 = this.renderer.createTemplateAnchor(parentRenderNode,(null as any));
- this._vc_2 = new import9.ViewContainer(2,(null as any),this,this._anchor_2);
- this._TemplateRef_2_5 = new import11.TemplateRef_(this,2,this._anchor_2);
- this._NgIf_2_6 = new import10.Wrapper_NgIf(this._vc_2.vcRef,this._TemplateRef_2_5);
- this._text_3 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this.init((null as any),((this.renderer).directRenderer? (null as any): [
- this._text_0,
- this._text_1,
- this._anchor_2,
- this._text_3
- ]
- ),(null as any));
+ this._text_0 = this.renderer.createText((null as any),'\n ',(null as any));
+ this.init(this._text_0,((this.renderer).directRenderer? (null as any): [this._text_0]),(null as any));
+ return (null as any);
+ }
+ visitRootNodesInternal(cb:any,ctx:any):void {
+ cb(this._text_0,ctx);
+ }
+}
+class View_DataTableRowWrapperComponent2 extends import2.AppView {
+ _anchor_0:any;
+ /*private*/ _vc_0:import9.ViewContainer;
+ _TemplateRef_0_5:any;
+ _NgTemplateOutlet_0_6:import10.Wrapper_NgTemplateOutlet;
+ _el_1:any;
+ _map_5:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import9.ViewContainer) {
+ super(View_DataTableRowWrapperComponent2,renderType_DataTableRowWrapperComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
+ this._map_5 = import3.pureProxy1((p0:any):{[key: string]:any} => {
+ return {row: p0};
+ });
+ }
+ createInternal(rootSelector:string):import8.ComponentRef {
+ this._anchor_0 = this.renderer.createTemplateAnchor((null as any),(null as any));
+ this._vc_0 = new import9.ViewContainer(0,(null as any),this,this._anchor_0);
+ this._TemplateRef_0_5 = new import11.TemplateRef_(this,0,this._anchor_0);
+ this._NgTemplateOutlet_0_6 = new import10.Wrapper_NgTemplateOutlet(this._vc_0.vcRef);
+ this._el_1 = this.renderer.createTemplateAnchor((null as any),(null as any));
+ this.init(this._el_1,((this.renderer).directRenderer? (null as any): [this._anchor_0]),(null as any));
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import11.TemplateRef) && (2 === requestNodeIndex))) { return this._TemplateRef_2_5; }
- if (((token === import12.NgIf) && (2 === requestNodeIndex))) { return this._NgIf_2_6.context; }
+ if (((token === import11.TemplateRef) && (0 === requestNodeIndex))) { return this._TemplateRef_0_5; }
+ if (((token === import12.NgTemplateOutlet) && (0 === requestNodeIndex))) { return this._NgTemplateOutlet_0_6.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
- const currVal_2_0_0:any = this.context.expanded;
- this._NgIf_2_6.check_ngIf(currVal_2_0_0,throwOnChange,false);
- this._NgIf_2_6.ngDoCheck(this,this._anchor_2,throwOnChange);
- this._vc_2.detectChangesInNestedViews(throwOnChange);
+ const currVal_0_0_0:any = this._map_5(this.parentView.parentView.context.row);
+ this._NgTemplateOutlet_0_6.check_ngOutletContext(currVal_0_0_0,throwOnChange,false);
+ const currVal_0_0_1:any = this.parentView.parentView.context.rowDetailTemplate;
+ this._NgTemplateOutlet_0_6.check_ngTemplateOutlet(currVal_0_0_1,throwOnChange,false);
+ this._NgTemplateOutlet_0_6.ngDoCheck(this,this._anchor_0,throwOnChange);
+ this._vc_0.detectChangesInNestedViews(throwOnChange);
}
destroyInternal():void {
- this._vc_2.destroyNestedViews();
+ this._vc_0.destroyNestedViews();
+ }
+ visitRootNodesInternal(cb:any,ctx:any):void {
+ cb(this._vc_0.nativeElement,ctx);
+ this._vc_0.visitNestedViewRootNodes(cb,ctx);
+ cb(this._el_1,ctx);
}
createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
- if ((nodeIndex == 2)) { return new View_DataTableRowWrapperComponent1(this.viewUtils,this,2,this._anchor_2,this._vc_2); }
+ if ((nodeIndex == 0)) { return new View_DataTableRowWrapperComponent3(this.viewUtils,this,0,this._anchor_0,this._vc_0); }
return (null as any);
}
}
@@ -191,7 +203,7 @@ class View_DataTableRowWrapperComponent1 extends import2.AppView {
_anchor_2:any;
/*private*/ _vc_2:import9.ViewContainer;
_TemplateRef_2_5:any;
- _NgIf_2_6:import10.Wrapper_NgIf;
+ _NgIf_2_6:import13.Wrapper_NgIf;
_text_3:any;
/*private*/ _expr_7:any;
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import9.ViewContainer) {
@@ -204,7 +216,7 @@ class View_DataTableRowWrapperComponent1 extends import2.AppView {
this._anchor_2 = this.renderer.createTemplateAnchor(this._el_0,(null as any));
this._vc_2 = new import9.ViewContainer(2,0,this,this._anchor_2);
this._TemplateRef_2_5 = new import11.TemplateRef_(this,2,this._anchor_2);
- this._NgIf_2_6 = new import10.Wrapper_NgIf(this._vc_2.vcRef,this._TemplateRef_2_5);
+ this._NgIf_2_6 = new import13.Wrapper_NgIf(this._vc_2.vcRef,this._TemplateRef_2_5);
this._text_3 = this.renderer.createText(this._el_0,'\n ',(null as any));
this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
this._el_0,
@@ -217,7 +229,7 @@ class View_DataTableRowWrapperComponent1 extends import2.AppView {
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
if (((token === import11.TemplateRef) && (2 === requestNodeIndex))) { return this._TemplateRef_2_5; }
- if (((token === import12.NgIf) && (2 === requestNodeIndex))) { return this._NgIf_2_6.context; }
+ if (((token === import14.NgIf) && (2 === requestNodeIndex))) { return this._NgIf_2_6.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
@@ -227,7 +239,7 @@ class View_DataTableRowWrapperComponent1 extends import2.AppView {
this._vc_2.detectChangesInNestedViews(throwOnChange);
const currVal_7:any = this.parentView.context.detailRowHeight;
if (import3.checkBinding(throwOnChange,this._expr_7,currVal_7)) {
- this.renderer.setElementStyle(this._el_0,'height',((this.viewUtils.sanitizer.sanitize(import13.SecurityContext.STYLE,currVal_7) == null)? (null as any): (this.viewUtils.sanitizer.sanitize(import13.SecurityContext.STYLE,currVal_7).toString() + 'px')));
+ this.renderer.setElementStyle(this._el_0,'height',((this.viewUtils.sanitizer.sanitize(import15.SecurityContext.STYLE,currVal_7) == null)? (null as any): (this.viewUtils.sanitizer.sanitize(import15.SecurityContext.STYLE,currVal_7).toString() + 'px')));
this._expr_7 = currVal_7;
}
}
@@ -242,65 +254,53 @@ class View_DataTableRowWrapperComponent1 extends import2.AppView {
return (null as any);
}
}
-class View_DataTableRowWrapperComponent2 extends import2.AppView {
- _anchor_0:any;
- /*private*/ _vc_0:import9.ViewContainer;
- _TemplateRef_0_5:any;
- _NgTemplateOutlet_0_6:import14.Wrapper_NgTemplateOutlet;
- _el_1:any;
- _map_5:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import9.ViewContainer) {
- super(View_DataTableRowWrapperComponent2,renderType_DataTableRowWrapperComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
- this._map_5 = import3.pureProxy1((p0:any):{[key: string]:any} => {
- return {row: p0};
- });
+var renderType_DataTableRowWrapperComponent:import4.RenderComponentType = import3.createRenderComponentType('',1,import5.ViewEncapsulation.None,styles_DataTableRowWrapperComponent,{});
+export class View_DataTableRowWrapperComponent0 extends import2.AppView {
+ _text_0:any;
+ _text_1:any;
+ _anchor_2:any;
+ /*private*/ _vc_2:import9.ViewContainer;
+ _TemplateRef_2_5:any;
+ _NgIf_2_6:import13.Wrapper_NgIf;
+ _text_3:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
+ super(View_DataTableRowWrapperComponent0,renderType_DataTableRowWrapperComponent,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways);
}
createInternal(rootSelector:string):import8.ComponentRef {
- this._anchor_0 = this.renderer.createTemplateAnchor((null as any),(null as any));
- this._vc_0 = new import9.ViewContainer(0,(null as any),this,this._anchor_0);
- this._TemplateRef_0_5 = new import11.TemplateRef_(this,0,this._anchor_0);
- this._NgTemplateOutlet_0_6 = new import14.Wrapper_NgTemplateOutlet(this._vc_0.vcRef);
- this._el_1 = this.renderer.createTemplateAnchor((null as any),(null as any));
- this.init(this._el_1,((this.renderer).directRenderer? (null as any): [this._anchor_0]),(null as any));
+ const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
+ this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ this.projectNodes(parentRenderNode,0);
+ this._text_1 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ this._anchor_2 = this.renderer.createTemplateAnchor(parentRenderNode,(null as any));
+ this._vc_2 = new import9.ViewContainer(2,(null as any),this,this._anchor_2);
+ this._TemplateRef_2_5 = new import11.TemplateRef_(this,2,this._anchor_2);
+ this._NgIf_2_6 = new import13.Wrapper_NgIf(this._vc_2.vcRef,this._TemplateRef_2_5);
+ this._text_3 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ this.init((null as any),((this.renderer).directRenderer? (null as any): [
+ this._text_0,
+ this._text_1,
+ this._anchor_2,
+ this._text_3
+ ]
+ ),(null as any));
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import11.TemplateRef) && (0 === requestNodeIndex))) { return this._TemplateRef_0_5; }
- if (((token === import15.NgTemplateOutlet) && (0 === requestNodeIndex))) { return this._NgTemplateOutlet_0_6.context; }
+ if (((token === import11.TemplateRef) && (2 === requestNodeIndex))) { return this._TemplateRef_2_5; }
+ if (((token === import14.NgIf) && (2 === requestNodeIndex))) { return this._NgIf_2_6.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
- const currVal_0_0_0:any = this._map_5(this.parentView.parentView.context.row);
- this._NgTemplateOutlet_0_6.check_ngOutletContext(currVal_0_0_0,throwOnChange,false);
- const currVal_0_0_1:any = this.parentView.parentView.context.rowDetailTemplate;
- this._NgTemplateOutlet_0_6.check_ngTemplateOutlet(currVal_0_0_1,throwOnChange,false);
- this._NgTemplateOutlet_0_6.ngDoCheck(this,this._anchor_0,throwOnChange);
- this._vc_0.detectChangesInNestedViews(throwOnChange);
+ const currVal_2_0_0:any = this.context.expanded;
+ this._NgIf_2_6.check_ngIf(currVal_2_0_0,throwOnChange,false);
+ this._NgIf_2_6.ngDoCheck(this,this._anchor_2,throwOnChange);
+ this._vc_2.detectChangesInNestedViews(throwOnChange);
}
destroyInternal():void {
- this._vc_0.destroyNestedViews();
- }
- visitRootNodesInternal(cb:any,ctx:any):void {
- cb(this._vc_0.nativeElement,ctx);
- this._vc_0.visitNestedViewRootNodes(cb,ctx);
- cb(this._el_1,ctx);
+ this._vc_2.destroyNestedViews();
}
createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
- if ((nodeIndex == 0)) { return new View_DataTableRowWrapperComponent3(this.viewUtils,this,0,this._anchor_0,this._vc_0); }
- return (null as any);
- }
-}
-class View_DataTableRowWrapperComponent3 extends import2.AppView {
- _text_0:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import9.ViewContainer) {
- super(View_DataTableRowWrapperComponent3,renderType_DataTableRowWrapperComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
- }
- createInternal(rootSelector:string):import8.ComponentRef {
- this._text_0 = this.renderer.createText((null as any),'\n ',(null as any));
- this.init(this._text_0,((this.renderer).directRenderer? (null as any): [this._text_0]),(null as any));
+ if ((nodeIndex == 2)) { return new View_DataTableRowWrapperComponent1(this.viewUtils,this,2,this._anchor_2,this._vc_2); }
return (null as any);
}
- visitRootNodesInternal(cb:any,ctx:any):void {
- cb(this._text_0,ctx);
- }
}
\ No newline at end of file
diff --git a/release/components/body/body-row.component.ngfactory.ts b/release/components/body/body-row.component.ngfactory.ts
index f9d746068..72a79e09c 100644
--- a/release/components/body/body-row.component.ngfactory.ts
+++ b/release/components/body/body-row.component.ngfactory.ts
@@ -16,16 +16,16 @@ import * as import7 from '@angular/core/src/linker/view_type';
import * as import8 from '@angular/core/src/change_detection/constants';
import * as import9 from '@angular/core/src/linker/component_factory';
import * as import10 from '@angular/core/src/linker/element_ref';
-import * as import11 from '@angular/core/src/linker/view_container';
-import * as import12 from '../../../node_modules/@angular/common/src/directives/ng_for.ngfactory';
-import * as import13 from '@angular/core/src/linker/template_ref';
-import * as import14 from '@angular/core/src/change_detection/differs/iterable_differs';
-import * as import15 from '@angular/common/src/directives/ng_for';
-import * as import16 from '../../../node_modules/@angular/common/src/directives/ng_style.ngfactory';
-import * as import17 from '@angular/core/src/change_detection/differs/keyvalue_differs';
-import * as import18 from '@angular/common/src/directives/ng_style';
-import * as import19 from '../../../../src/components/body/body-cell.component';
-import * as import20 from './body-cell.component.ngfactory';
+import * as import11 from '../../../../src/components/body/body-cell.component';
+import * as import12 from './body-cell.component.ngfactory';
+import * as import13 from '@angular/core/src/linker/view_container';
+import * as import14 from '../../../node_modules/@angular/common/src/directives/ng_style.ngfactory';
+import * as import15 from '../../../node_modules/@angular/common/src/directives/ng_for.ngfactory';
+import * as import16 from '@angular/core/src/change_detection/differs/keyvalue_differs';
+import * as import17 from '@angular/core/src/linker/template_ref';
+import * as import18 from '@angular/core/src/change_detection/differs/iterable_differs';
+import * as import19 from '@angular/common/src/directives/ng_for';
+import * as import20 from '@angular/common/src/directives/ng_style';
export class Wrapper_DataTableBodyRowComponent {
/*private*/ _eventHandler:Function;
context:import0.DataTableBodyRowComponent;
@@ -184,76 +184,86 @@ class View_DataTableBodyRowComponent_Host0 extends import2.AppView {
}
export const DataTableBodyRowComponentNgFactory:import9.ComponentFactory = new import9.ComponentFactory('datatable-body-row',View_DataTableBodyRowComponent_Host0,import0.DataTableBodyRowComponent);
const styles_DataTableBodyRowComponent:any[] = ([] as any[]);
-var renderType_DataTableBodyRowComponent:import5.RenderComponentType = import3.createRenderComponentType('',0,import6.ViewEncapsulation.None,styles_DataTableBodyRowComponent,{});
-export class View_DataTableBodyRowComponent0 extends import2.AppView {
- _text_0:any;
- _anchor_1:any;
- /*private*/ _vc_1:import11.ViewContainer;
- _TemplateRef_1_5:any;
- _NgFor_1_6:import12.Wrapper_NgFor;
- _text_2:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
- super(View_DataTableBodyRowComponent0,renderType_DataTableBodyRowComponent,import7.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways);
+class View_DataTableBodyRowComponent2 extends import2.AppView {
+ _el_0:any;
+ compView_0:import2.AppView;
+ _DataTableBodyCellComponent_0_3:import12.Wrapper_DataTableBodyCellComponent;
+ _text_1:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import13.ViewContainer) {
+ super(View_DataTableBodyRowComponent2,renderType_DataTableBodyRowComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
}
createInternal(rootSelector:string):import9.ComponentRef {
- const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
- this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this._anchor_1 = this.renderer.createTemplateAnchor(parentRenderNode,(null as any));
- this._vc_1 = new import11.ViewContainer(1,(null as any),this,this._anchor_1);
- this._TemplateRef_1_5 = new import13.TemplateRef_(this,1,this._anchor_1);
- this._NgFor_1_6 = new import12.Wrapper_NgFor(this._vc_1.vcRef,this._TemplateRef_1_5,this.parentView.injectorGet(import14.IterableDiffers,this.parentIndex),this.ref);
- this._text_2 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this.init((null as any),((this.renderer).directRenderer? (null as any): [
- this._text_0,
- this._anchor_1,
- this._text_2
+ this._el_0 = import3.createRenderElement(this.renderer,(null as any),'datatable-body-cell',new import3.InlineArray4(4,'class','datatable-body-cell','tabindex','-1'),(null as any));
+ this.compView_0 = new import12.View_DataTableBodyCellComponent0(this.viewUtils,this,0,this._el_0);
+ this._DataTableBodyCellComponent_0_3 = new import12.Wrapper_DataTableBodyCellComponent(new import10.ElementRef(this._el_0));
+ this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
+ this.compView_0.create(this._DataTableBodyCellComponent_0_3.context);
+ var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_0,new import3.InlineArray16(12,'activate',(null as any),'focus',(null as any),'blur',(null as any),'click',(null as any),'dblclick',(null as any),'keydown',(null as any)),this.eventHandler(this.handleEvent_0));
+ this._DataTableBodyCellComponent_0_3.subscribe(this,this.eventHandler(this.handleEvent_0),true);
+ this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
+ this._el_0,
+ this._text_1
]
- ),(null as any));
+ ),[disposable_0]);
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import13.TemplateRef) && (1 === requestNodeIndex))) { return this._TemplateRef_1_5; }
- if (((token === import15.NgFor) && (1 === requestNodeIndex))) { return this._NgFor_1_6.context; }
+ if (((token === import11.DataTableBodyCellComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._DataTableBodyCellComponent_0_3.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
- const currVal_1_0_0:any = this.context.columnsByPin;
- this._NgFor_1_6.check_ngForOf(currVal_1_0_0,throwOnChange,false);
- const currVal_1_0_1:any = this.context.trackByGroups;
- this._NgFor_1_6.check_ngForTrackBy(currVal_1_0_1,throwOnChange,false);
- this._NgFor_1_6.ngDoCheck(this,this._anchor_1,throwOnChange);
- this._vc_1.detectChangesInNestedViews(throwOnChange);
+ const currVal_0_0_0:any = this.parentView.parentView.context.row;
+ this._DataTableBodyCellComponent_0_3.check_row(currVal_0_0_0,throwOnChange,false);
+ const currVal_0_0_1:any = this.context.$implicit;
+ this._DataTableBodyCellComponent_0_3.check_column(currVal_0_0_1,throwOnChange,false);
+ const currVal_0_0_2:any = this.parentView.parentView.context.rowHeight;
+ this._DataTableBodyCellComponent_0_3.check_rowHeight(currVal_0_0_2,throwOnChange,false);
+ const currVal_0_0_3:any = this.parentView.parentView.context.isSelected;
+ this._DataTableBodyCellComponent_0_3.check_isSelected(currVal_0_0_3,throwOnChange,false);
+ this._DataTableBodyCellComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange);
+ this._DataTableBodyCellComponent_0_3.checkHost(this,this.compView_0,this._el_0,throwOnChange);
+ this.compView_0.internalDetectChanges(throwOnChange);
}
destroyInternal():void {
- this._vc_1.destroyNestedViews();
+ this.compView_0.destroy();
+ this._DataTableBodyCellComponent_0_3.ngOnDestroy();
}
- createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
- if ((nodeIndex == 1)) { return new View_DataTableBodyRowComponent1(this.viewUtils,this,1,this._anchor_1,this._vc_1); }
- return (null as any);
+ visitRootNodesInternal(cb:any,ctx:any):void {
+ cb(this._el_0,ctx);
+ }
+ handleEvent_0(eventName:string,$event:any):boolean {
+ this.compView_0.markPathToRootAsCheckOnce();
+ var result:boolean = true;
+ result = (this._DataTableBodyCellComponent_0_3.handleEvent(eventName,$event) && result);
+ if ((eventName == 'activate')) {
+ const pd_sub_0:any = ((this.parentView.parentView.context.onActivate($event,this.context.index)) !== false);
+ result = (pd_sub_0 && result);
+ }
+ return result;
}
}
class View_DataTableBodyRowComponent1 extends import2.AppView {
_el_0:any;
- _NgStyle_0_3:import16.Wrapper_NgStyle;
+ _NgStyle_0_3:import14.Wrapper_NgStyle;
_text_1:any;
_anchor_2:any;
- /*private*/ _vc_2:import11.ViewContainer;
+ /*private*/ _vc_2:import13.ViewContainer;
_TemplateRef_2_5:any;
- _NgFor_2_6:import12.Wrapper_NgFor;
+ _NgFor_2_6:import15.Wrapper_NgFor;
_text_3:any;
/*private*/ _expr_8:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import11.ViewContainer) {
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import13.ViewContainer) {
super(View_DataTableBodyRowComponent1,renderType_DataTableBodyRowComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
this._expr_8 = import1.UNINITIALIZED;
}
createInternal(rootSelector:string):import9.ComponentRef {
this._el_0 = import3.createRenderElement(this.renderer,(null as any),'div',import3.EMPTY_INLINE_ARRAY,(null as any));
- this._NgStyle_0_3 = new import16.Wrapper_NgStyle(this.parentView.injectorGet(import17.KeyValueDiffers,this.parentIndex),new import10.ElementRef(this._el_0),this.renderer);
+ this._NgStyle_0_3 = new import14.Wrapper_NgStyle(this.parentView.injectorGet(import16.KeyValueDiffers,this.parentIndex),new import10.ElementRef(this._el_0),this.renderer);
this._text_1 = this.renderer.createText(this._el_0,'\n ',(null as any));
this._anchor_2 = this.renderer.createTemplateAnchor(this._el_0,(null as any));
- this._vc_2 = new import11.ViewContainer(2,0,this,this._anchor_2);
- this._TemplateRef_2_5 = new import13.TemplateRef_(this,2,this._anchor_2);
- this._NgFor_2_6 = new import12.Wrapper_NgFor(this._vc_2.vcRef,this._TemplateRef_2_5,this.parentView.injectorGet(import14.IterableDiffers,this.parentIndex),this.parentView.ref);
+ this._vc_2 = new import13.ViewContainer(2,0,this,this._anchor_2);
+ this._TemplateRef_2_5 = new import17.TemplateRef_(this,2,this._anchor_2);
+ this._NgFor_2_6 = new import15.Wrapper_NgFor(this._vc_2.vcRef,this._TemplateRef_2_5,this.parentView.injectorGet(import18.IterableDiffers,this.parentIndex),this.parentView.ref);
this._text_3 = this.renderer.createText(this._el_0,'\n ',(null as any));
this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
this._el_0,
@@ -265,9 +275,9 @@ class View_DataTableBodyRowComponent1 extends import2.AppView {
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import13.TemplateRef) && (2 === requestNodeIndex))) { return this._TemplateRef_2_5; }
- if (((token === import15.NgFor) && (2 === requestNodeIndex))) { return this._NgFor_2_6.context; }
- if (((token === import18.NgStyle) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 3)))) { return this._NgStyle_0_3.context; }
+ if (((token === import17.TemplateRef) && (2 === requestNodeIndex))) { return this._TemplateRef_2_5; }
+ if (((token === import19.NgFor) && (2 === requestNodeIndex))) { return this._NgFor_2_6.context; }
+ if (((token === import20.NgStyle) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 3)))) { return this._NgStyle_0_3.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
@@ -297,61 +307,51 @@ class View_DataTableBodyRowComponent1 extends import2.AppView {
return (null as any);
}
}
-class View_DataTableBodyRowComponent2 extends import2.AppView {
- _el_0:any;
- compView_0:import2.AppView;
- _DataTableBodyCellComponent_0_3:import20.Wrapper_DataTableBodyCellComponent;
- _text_1:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import11.ViewContainer) {
- super(View_DataTableBodyRowComponent2,renderType_DataTableBodyRowComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
+var renderType_DataTableBodyRowComponent:import5.RenderComponentType = import3.createRenderComponentType('',0,import6.ViewEncapsulation.None,styles_DataTableBodyRowComponent,{});
+export class View_DataTableBodyRowComponent0 extends import2.AppView {
+ _text_0:any;
+ _anchor_1:any;
+ /*private*/ _vc_1:import13.ViewContainer;
+ _TemplateRef_1_5:any;
+ _NgFor_1_6:import15.Wrapper_NgFor;
+ _text_2:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
+ super(View_DataTableBodyRowComponent0,renderType_DataTableBodyRowComponent,import7.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways);
}
createInternal(rootSelector:string):import9.ComponentRef {
- this._el_0 = import3.createRenderElement(this.renderer,(null as any),'datatable-body-cell',new import3.InlineArray4(4,'class','datatable-body-cell','tabindex','-1'),(null as any));
- this.compView_0 = new import20.View_DataTableBodyCellComponent0(this.viewUtils,this,0,this._el_0);
- this._DataTableBodyCellComponent_0_3 = new import20.Wrapper_DataTableBodyCellComponent(new import10.ElementRef(this._el_0));
- this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
- this.compView_0.create(this._DataTableBodyCellComponent_0_3.context);
- var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_0,new import3.InlineArray16(12,'activate',(null as any),'focus',(null as any),'blur',(null as any),'click',(null as any),'dblclick',(null as any),'keydown',(null as any)),this.eventHandler(this.handleEvent_0));
- this._DataTableBodyCellComponent_0_3.subscribe(this,this.eventHandler(this.handleEvent_0),true);
- this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
- this._el_0,
- this._text_1
+ const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
+ this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ this._anchor_1 = this.renderer.createTemplateAnchor(parentRenderNode,(null as any));
+ this._vc_1 = new import13.ViewContainer(1,(null as any),this,this._anchor_1);
+ this._TemplateRef_1_5 = new import17.TemplateRef_(this,1,this._anchor_1);
+ this._NgFor_1_6 = new import15.Wrapper_NgFor(this._vc_1.vcRef,this._TemplateRef_1_5,this.parentView.injectorGet(import18.IterableDiffers,this.parentIndex),this.ref);
+ this._text_2 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ this.init((null as any),((this.renderer).directRenderer? (null as any): [
+ this._text_0,
+ this._anchor_1,
+ this._text_2
]
- ),[disposable_0]);
+ ),(null as any));
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import19.DataTableBodyCellComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._DataTableBodyCellComponent_0_3.context; }
+ if (((token === import17.TemplateRef) && (1 === requestNodeIndex))) { return this._TemplateRef_1_5; }
+ if (((token === import19.NgFor) && (1 === requestNodeIndex))) { return this._NgFor_1_6.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
- const currVal_0_0_0:any = this.parentView.parentView.context.row;
- this._DataTableBodyCellComponent_0_3.check_row(currVal_0_0_0,throwOnChange,false);
- const currVal_0_0_1:any = this.context.$implicit;
- this._DataTableBodyCellComponent_0_3.check_column(currVal_0_0_1,throwOnChange,false);
- const currVal_0_0_2:any = this.parentView.parentView.context.rowHeight;
- this._DataTableBodyCellComponent_0_3.check_rowHeight(currVal_0_0_2,throwOnChange,false);
- const currVal_0_0_3:any = this.parentView.parentView.context.isSelected;
- this._DataTableBodyCellComponent_0_3.check_isSelected(currVal_0_0_3,throwOnChange,false);
- this._DataTableBodyCellComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange);
- this._DataTableBodyCellComponent_0_3.checkHost(this,this.compView_0,this._el_0,throwOnChange);
- this.compView_0.internalDetectChanges(throwOnChange);
+ const currVal_1_0_0:any = this.context.columnsByPin;
+ this._NgFor_1_6.check_ngForOf(currVal_1_0_0,throwOnChange,false);
+ const currVal_1_0_1:any = this.context.trackByGroups;
+ this._NgFor_1_6.check_ngForTrackBy(currVal_1_0_1,throwOnChange,false);
+ this._NgFor_1_6.ngDoCheck(this,this._anchor_1,throwOnChange);
+ this._vc_1.detectChangesInNestedViews(throwOnChange);
}
destroyInternal():void {
- this.compView_0.destroy();
- this._DataTableBodyCellComponent_0_3.ngOnDestroy();
- }
- visitRootNodesInternal(cb:any,ctx:any):void {
- cb(this._el_0,ctx);
+ this._vc_1.destroyNestedViews();
}
- handleEvent_0(eventName:string,$event:any):boolean {
- this.compView_0.markPathToRootAsCheckOnce();
- var result:boolean = true;
- result = (this._DataTableBodyCellComponent_0_3.handleEvent(eventName,$event) && result);
- if ((eventName == 'activate')) {
- const pd_sub_0:any = ((this.parentView.parentView.context.onActivate($event,this.context.index)) !== false);
- result = (pd_sub_0 && result);
- }
- return result;
+ createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
+ if ((nodeIndex == 1)) { return new View_DataTableBodyRowComponent1(this.viewUtils,this,1,this._anchor_1,this._vc_1); }
+ return (null as any);
}
}
\ No newline at end of file
diff --git a/release/components/body/body.component.ngfactory.ts b/release/components/body/body.component.ngfactory.ts
index a24efd122..1c47c59da 100644
--- a/release/components/body/body.component.ngfactory.ts
+++ b/release/components/body/body.component.ngfactory.ts
@@ -15,28 +15,28 @@ import * as import6 from '@angular/core/src/metadata/view';
import * as import7 from '@angular/core/src/linker/view_type';
import * as import8 from '@angular/core/src/change_detection/constants';
import * as import9 from '@angular/core/src/linker/component_factory';
-import * as import10 from '@angular/core/src/linker/query_list';
-import * as import11 from '../../../../src/components/body/selection.component';
-import * as import12 from './selection.component.ngfactory';
-import * as import13 from '@angular/core/src/linker/view_container';
-import * as import14 from '../../../node_modules/@angular/common/src/directives/ng_if.ngfactory';
-import * as import15 from '@angular/core/src/linker/template_ref';
-import * as import16 from '@angular/common/src/directives/ng_if';
-import * as import17 from '../../../../src/components/body/progress-bar.component';
-import * as import18 from './progress-bar.component.ngfactory';
-import * as import19 from '../../../../src/components/body/scroller.component';
-import * as import20 from './scroller.component.ngfactory';
-import * as import21 from '../../../node_modules/@angular/common/src/directives/ng_for.ngfactory';
-import * as import22 from '@angular/core/src/linker/element_ref';
-import * as import23 from '@angular/core/src/change_detection/differs/iterable_differs';
-import * as import24 from '@angular/common/src/directives/ng_for';
-import * as import25 from '../../../../src/components/body/body-row-wrapper.component';
-import * as import26 from '../../../node_modules/@angular/common/src/directives/ng_style.ngfactory';
-import * as import27 from './body-row-wrapper.component.ngfactory';
-import * as import28 from '../../../../src/components/body/body-row.component';
-import * as import29 from './body-row.component.ngfactory';
-import * as import30 from '@angular/core/src/change_detection/differs/keyvalue_differs';
-import * as import31 from '@angular/common/src/directives/ng_style';
+import * as import10 from '../../../../src/components/body/progress-bar.component';
+import * as import11 from './progress-bar.component.ngfactory';
+import * as import12 from '@angular/core/src/linker/view_container';
+import * as import13 from '../../../../src/components/body/body-row-wrapper.component';
+import * as import14 from '../../../node_modules/@angular/common/src/directives/ng_style.ngfactory';
+import * as import15 from './body-row-wrapper.component.ngfactory';
+import * as import16 from '../../../../src/components/body/body-row.component';
+import * as import17 from './body-row.component.ngfactory';
+import * as import18 from '@angular/core/src/change_detection/differs/keyvalue_differs';
+import * as import19 from '@angular/core/src/linker/element_ref';
+import * as import20 from '@angular/common/src/directives/ng_style';
+import * as import21 from '../../../../src/components/body/scroller.component';
+import * as import22 from './scroller.component.ngfactory';
+import * as import23 from '../../../node_modules/@angular/common/src/directives/ng_for.ngfactory';
+import * as import24 from '@angular/core/src/linker/template_ref';
+import * as import25 from '@angular/core/src/change_detection/differs/iterable_differs';
+import * as import26 from '@angular/common/src/directives/ng_for';
+import * as import27 from '@angular/core/src/linker/query_list';
+import * as import28 from '../../../../src/components/body/selection.component';
+import * as import29 from './selection.component.ngfactory';
+import * as import30 from '../../../node_modules/@angular/common/src/directives/ng_if.ngfactory';
+import * as import31 from '@angular/common/src/directives/ng_if';
export class Wrapper_DataTableBodyComponent {
/*private*/ _eventHandler:Function;
context:import0.DataTableBodyComponent;
@@ -311,172 +311,18 @@ class View_DataTableBodyComponent_Host0 extends import2.AppView {
}
export const DataTableBodyComponentNgFactory:import9.ComponentFactory = new import9.ComponentFactory('datatable-body',View_DataTableBodyComponent_Host0,import0.DataTableBodyComponent);
const styles_DataTableBodyComponent:any[] = ([] as any[]);
-var renderType_DataTableBodyComponent:import5.RenderComponentType = import3.createRenderComponentType('',0,import6.ViewEncapsulation.None,styles_DataTableBodyComponent,{});
-export class View_DataTableBodyComponent0 extends import2.AppView {
- _viewQuery_ScrollerComponent_0:import10.QueryList;
- _text_0:any;
- _el_1:any;
- compView_1:import2.AppView;
- _DataTableSelectionComponent_1_3:import12.Wrapper_DataTableSelectionComponent;
- _text_2:any;
- _anchor_3:any;
- /*private*/ _vc_3:import13.ViewContainer;
- _TemplateRef_3_5:any;
- _NgIf_3_6:import14.Wrapper_NgIf;
- _text_4:any;
- _anchor_5:any;
- /*private*/ _vc_5:import13.ViewContainer;
- _TemplateRef_5_5:any;
- _NgIf_5_6:import14.Wrapper_NgIf;
- _text_6:any;
- _anchor_7:any;
- /*private*/ _vc_7:import13.ViewContainer;
- _TemplateRef_7_5:any;
- _NgIf_7_6:import14.Wrapper_NgIf;
- _text_8:any;
- _text_9:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
- super(View_DataTableBodyComponent0,renderType_DataTableBodyComponent,import7.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways);
- }
- createInternal(rootSelector:string):import9.ComponentRef {
- const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
- this._viewQuery_ScrollerComponent_0 = new import10.QueryList();
- this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this._el_1 = import3.createRenderElement(this.renderer,parentRenderNode,'datatable-selection',import3.EMPTY_INLINE_ARRAY,(null as any));
- this.compView_1 = new import12.View_DataTableSelectionComponent0(this.viewUtils,this,1,this._el_1);
- this._DataTableSelectionComponent_1_3 = new import12.Wrapper_DataTableSelectionComponent();
- this._text_2 = this.renderer.createText((null as any),'\n ',(null as any));
- this._anchor_3 = this.renderer.createTemplateAnchor((null as any),(null as any));
- this._vc_3 = new import13.ViewContainer(3,1,this,this._anchor_3);
- this._TemplateRef_3_5 = new import15.TemplateRef_(this,3,this._anchor_3);
- this._NgIf_3_6 = new import14.Wrapper_NgIf(this._vc_3.vcRef,this._TemplateRef_3_5);
- this._text_4 = this.renderer.createText((null as any),'\n ',(null as any));
- this._anchor_5 = this.renderer.createTemplateAnchor((null as any),(null as any));
- this._vc_5 = new import13.ViewContainer(5,1,this,this._anchor_5);
- this._TemplateRef_5_5 = new import15.TemplateRef_(this,5,this._anchor_5);
- this._NgIf_5_6 = new import14.Wrapper_NgIf(this._vc_5.vcRef,this._TemplateRef_5_5);
- this._text_6 = this.renderer.createText((null as any),'\n ',(null as any));
- this._anchor_7 = this.renderer.createTemplateAnchor((null as any),(null as any));
- this._vc_7 = new import13.ViewContainer(7,1,this,this._anchor_7);
- this._TemplateRef_7_5 = new import15.TemplateRef_(this,7,this._anchor_7);
- this._NgIf_7_6 = new import14.Wrapper_NgIf(this._vc_7.vcRef,this._TemplateRef_7_5);
- this._text_8 = this.renderer.createText((null as any),'\n ',(null as any));
- this.compView_1.create(this._DataTableSelectionComponent_1_3.context);
- this._text_9 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_1,new import3.InlineArray4(4,'select',(null as any),'activate',(null as any)),this.eventHandler(this.handleEvent_1));
- this._DataTableSelectionComponent_1_3.subscribe(this,this.eventHandler(this.handleEvent_1),true,true);
- this.init((null as any),((this.renderer).directRenderer? (null as any): [
- this._text_0,
- this._el_1,
- this._text_2,
- this._anchor_3,
- this._text_4,
- this._anchor_5,
- this._text_6,
- this._anchor_7,
- this._text_8,
- this._text_9
- ]
- ),[disposable_0]);
- return (null as any);
- }
- injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import15.TemplateRef) && (3 === requestNodeIndex))) { return this._TemplateRef_3_5; }
- if (((token === import16.NgIf) && (3 === requestNodeIndex))) { return this._NgIf_3_6.context; }
- if (((token === import15.TemplateRef) && (5 === requestNodeIndex))) { return this._TemplateRef_5_5; }
- if (((token === import16.NgIf) && (5 === requestNodeIndex))) { return this._NgIf_5_6.context; }
- if (((token === import15.TemplateRef) && (7 === requestNodeIndex))) { return this._TemplateRef_7_5; }
- if (((token === import16.NgIf) && (7 === requestNodeIndex))) { return this._NgIf_7_6.context; }
- if (((token === import11.DataTableSelectionComponent) && ((1 <= requestNodeIndex) && (requestNodeIndex <= 8)))) { return this._DataTableSelectionComponent_1_3.context; }
- return notFoundResult;
- }
- detectChangesInternal(throwOnChange:boolean):void {
- const currVal_1_0_0:any = this.context.temp;
- this._DataTableSelectionComponent_1_3.check_rows(currVal_1_0_0,throwOnChange,false);
- const currVal_1_0_1:any = this.context.selected;
- this._DataTableSelectionComponent_1_3.check_selected(currVal_1_0_1,throwOnChange,false);
- const currVal_1_0_2:any = this.context.selectEnabled;
- this._DataTableSelectionComponent_1_3.check_selectEnabled(currVal_1_0_2,throwOnChange,false);
- const currVal_1_0_3:any = this.context.selectionType;
- this._DataTableSelectionComponent_1_3.check_selectionType(currVal_1_0_3,throwOnChange,false);
- const currVal_1_0_4:any = this.context.rowIdentity;
- this._DataTableSelectionComponent_1_3.check_rowIdentity(currVal_1_0_4,throwOnChange,false);
- const currVal_1_0_5:any = this.context.selectCheck;
- this._DataTableSelectionComponent_1_3.check_selectCheck(currVal_1_0_5,throwOnChange,false);
- this._DataTableSelectionComponent_1_3.ngDoCheck(this,this._el_1,throwOnChange);
- const currVal_3_0_0:any = this.context.loadingIndicator;
- this._NgIf_3_6.check_ngIf(currVal_3_0_0,throwOnChange,false);
- this._NgIf_3_6.ngDoCheck(this,this._anchor_3,throwOnChange);
- const currVal_5_0_0:any = ((this.context.rows == null)? (null as any): this.context.rows.length);
- this._NgIf_5_6.check_ngIf(currVal_5_0_0,throwOnChange,false);
- this._NgIf_5_6.ngDoCheck(this,this._anchor_5,throwOnChange);
- const currVal_7_0_0:boolean = !((this.context.rows == null)? (null as any): this.context.rows.length);
- this._NgIf_7_6.check_ngIf(currVal_7_0_0,throwOnChange,false);
- this._NgIf_7_6.ngDoCheck(this,this._anchor_7,throwOnChange);
- this._vc_3.detectChangesInNestedViews(throwOnChange);
- this._vc_5.detectChangesInNestedViews(throwOnChange);
- this._vc_7.detectChangesInNestedViews(throwOnChange);
- this.compView_1.internalDetectChanges(throwOnChange);
- if (!throwOnChange) { if (this._viewQuery_ScrollerComponent_0.dirty) {
- this._viewQuery_ScrollerComponent_0.reset([this._vc_5.mapNestedViews(View_DataTableBodyComponent2,(nestedView:View_DataTableBodyComponent2):any => {
- return [nestedView._ScrollerComponent_0_3.context];
- })]);
- this.context.scroller = this._viewQuery_ScrollerComponent_0.first;
- } }
- }
- destroyInternal():void {
- this._vc_3.destroyNestedViews();
- this._vc_5.destroyNestedViews();
- this._vc_7.destroyNestedViews();
- this.compView_1.destroy();
- this._DataTableSelectionComponent_1_3.ngOnDestroy();
- }
- visitProjectableNodesInternal(nodeIndex:number,ngContentIndex:number,cb:any,ctx:any):void {
- if (((nodeIndex == 1) && (ngContentIndex == 0))) {
- cb(this._text_2,ctx);
- cb(this._vc_3.nativeElement,ctx);
- this._vc_3.visitNestedViewRootNodes(cb,ctx);
- cb(this._text_4,ctx);
- cb(this._vc_5.nativeElement,ctx);
- this._vc_5.visitNestedViewRootNodes(cb,ctx);
- cb(this._text_6,ctx);
- cb(this._vc_7.nativeElement,ctx);
- this._vc_7.visitNestedViewRootNodes(cb,ctx);
- cb(this._text_8,ctx);
- }
- }
- createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
- if ((nodeIndex == 3)) { return new View_DataTableBodyComponent1(this.viewUtils,this,3,this._anchor_3,this._vc_3); }
- if ((nodeIndex == 5)) { return new View_DataTableBodyComponent2(this.viewUtils,this,5,this._anchor_5,this._vc_5); }
- if ((nodeIndex == 7)) { return new View_DataTableBodyComponent4(this.viewUtils,this,7,this._anchor_7,this._vc_7); }
- return (null as any);
- }
- handleEvent_1(eventName:string,$event:any):boolean {
- this.markPathToRootAsCheckOnce();
- var result:boolean = true;
- if ((eventName == 'select')) {
- const pd_sub_0:any = ((this.context.select.emit($event)) !== false);
- result = (pd_sub_0 && result);
- }
- if ((eventName == 'activate')) {
- const pd_sub_1:any = ((this.context.activate.emit($event)) !== false);
- result = (pd_sub_1 && result);
- }
- return result;
- }
-}
class View_DataTableBodyComponent1 extends import2.AppView {
_el_0:any;
- compView_0:import2.AppView;
- _ProgressBarComponent_0_3:import18.Wrapper_ProgressBarComponent;
+ compView_0:import2.AppView;
+ _ProgressBarComponent_0_3:import11.Wrapper_ProgressBarComponent;
_text_1:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import13.ViewContainer) {
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import12.ViewContainer) {
super(View_DataTableBodyComponent1,renderType_DataTableBodyComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
}
createInternal(rootSelector:string):import9.ComponentRef {
this._el_0 = import3.createRenderElement(this.renderer,(null as any),'datatable-progress',import3.EMPTY_INLINE_ARRAY,(null as any));
- this.compView_0 = new import18.View_ProgressBarComponent0(this.viewUtils,this,0,this._el_0);
- this._ProgressBarComponent_0_3 = new import18.Wrapper_ProgressBarComponent();
+ this.compView_0 = new import11.View_ProgressBarComponent0(this.viewUtils,this,0,this._el_0);
+ this._ProgressBarComponent_0_3 = new import11.Wrapper_ProgressBarComponent();
this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
this.compView_0.create(this._ProgressBarComponent_0_3.context);
this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
@@ -487,7 +333,7 @@ class View_DataTableBodyComponent1 extends import2.AppView {
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import17.ProgressBarComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._ProgressBarComponent_0_3.context; }
+ if (((token === import10.ProgressBarComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._ProgressBarComponent_0_3.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
@@ -501,122 +347,29 @@ class View_DataTableBodyComponent1 extends import2.AppView {
cb(this._el_0,ctx);
}
}
-class View_DataTableBodyComponent2 extends import2.AppView {
- _el_0:any;
- compView_0:import2.AppView;
- _ScrollerComponent_0_3:import20.Wrapper_ScrollerComponent;
- _text_1:any;
- _anchor_2:any;
- /*private*/ _vc_2:import13.ViewContainer;
- _TemplateRef_2_5:any;
- _NgFor_2_6:import21.Wrapper_NgFor;
- _text_3:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import13.ViewContainer) {
- super(View_DataTableBodyComponent2,renderType_DataTableBodyComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
- }
- createInternal(rootSelector:string):import9.ComponentRef {
- this._el_0 = import3.createRenderElement(this.renderer,(null as any),'datatable-scroller',new import3.InlineArray2(2,'class','datatable-scroll'),(null as any));
- this.compView_0 = new import20.View_ScrollerComponent0(this.viewUtils,this,0,this._el_0);
- this._ScrollerComponent_0_3 = new import20.Wrapper_ScrollerComponent(new import22.ElementRef(this._el_0),this.renderer);
- this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
- this._anchor_2 = this.renderer.createTemplateAnchor((null as any),(null as any));
- this._vc_2 = new import13.ViewContainer(2,0,this,this._anchor_2);
- this._TemplateRef_2_5 = new import15.TemplateRef_(this,2,this._anchor_2);
- this._NgFor_2_6 = new import21.Wrapper_NgFor(this._vc_2.vcRef,this._TemplateRef_2_5,this.parentView.parentView.injectorGet(import23.IterableDiffers,this.parentView.parentIndex),this.parentView.ref);
- this._text_3 = this.renderer.createText((null as any),'\n ',(null as any));
- this.compView_0.create(this._ScrollerComponent_0_3.context);
- var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_0,new import3.InlineArray2(2,'scroll',(null as any)),this.eventHandler(this.handleEvent_0));
- this._ScrollerComponent_0_3.subscribe(this,this.eventHandler(this.handleEvent_0),true);
- this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
- this._el_0,
- this._text_1,
- this._anchor_2,
- this._text_3
- ]
- ),[disposable_0]);
- return (null as any);
- }
- injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import15.TemplateRef) && (2 === requestNodeIndex))) { return this._TemplateRef_2_5; }
- if (((token === import24.NgFor) && (2 === requestNodeIndex))) { return this._NgFor_2_6.context; }
- if (((token === import19.ScrollerComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 3)))) { return this._ScrollerComponent_0_3.context; }
- return notFoundResult;
- }
- detectChangesInternal(throwOnChange:boolean):void {
- const currVal_0_0_0:any = this.parentView.context.scrollbarV;
- this._ScrollerComponent_0_3.check_scrollbarV(currVal_0_0_0,throwOnChange,false);
- const currVal_0_0_1:any = this.parentView.context.scrollbarH;
- this._ScrollerComponent_0_3.check_scrollbarH(currVal_0_0_1,throwOnChange,false);
- const currVal_0_0_2:any = this.parentView.context.scrollHeight;
- this._ScrollerComponent_0_3.check_scrollHeight(currVal_0_0_2,throwOnChange,false);
- const currVal_0_0_3:any = this.parentView.context.columnGroupWidths.total;
- this._ScrollerComponent_0_3.check_scrollWidth(currVal_0_0_3,throwOnChange,false);
- this._ScrollerComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange);
- const currVal_2_0_0:any = this.parentView.context.temp;
- this._NgFor_2_6.check_ngForOf(currVal_2_0_0,throwOnChange,false);
- const currVal_2_0_1:any = this.parentView.context.rowTrackingFn;
- this._NgFor_2_6.check_ngForTrackBy(currVal_2_0_1,throwOnChange,false);
- this._NgFor_2_6.ngDoCheck(this,this._anchor_2,throwOnChange);
- this._vc_2.detectChangesInNestedViews(throwOnChange);
- this._ScrollerComponent_0_3.checkHost(this,this.compView_0,this._el_0,throwOnChange);
- this.compView_0.internalDetectChanges(throwOnChange);
- }
- dirtyParentQueriesInternal():void {
- (this.parentView)._viewQuery_ScrollerComponent_0.setDirty();
- }
- destroyInternal():void {
- this._vc_2.destroyNestedViews();
- this.compView_0.destroy();
- this._ScrollerComponent_0_3.ngOnDestroy();
- }
- visitRootNodesInternal(cb:any,ctx:any):void {
- cb(this._el_0,ctx);
- }
- visitProjectableNodesInternal(nodeIndex:number,ngContentIndex:number,cb:any,ctx:any):void {
- if (((nodeIndex == 0) && (ngContentIndex == 0))) {
- cb(this._text_1,ctx);
- cb(this._vc_2.nativeElement,ctx);
- this._vc_2.visitNestedViewRootNodes(cb,ctx);
- cb(this._text_3,ctx);
- }
- }
- createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
- if ((nodeIndex == 2)) { return new View_DataTableBodyComponent3(this.viewUtils,this,2,this._anchor_2,this._vc_2); }
- return (null as any);
- }
- handleEvent_0(eventName:string,$event:any):boolean {
- this.markPathToRootAsCheckOnce();
- var result:boolean = true;
- if ((eventName == 'scroll')) {
- const pd_sub_0:any = ((this.parentView.context.onBodyScroll($event)) !== false);
- result = (pd_sub_0 && result);
- }
- return result;
- }
-}
class View_DataTableBodyComponent3 extends import2.AppView {
_el_0:any;
- compView_0:import2.AppView;
- _NgStyle_0_3:import26.Wrapper_NgStyle;
- _DataTableRowWrapperComponent_0_4:import27.Wrapper_DataTableRowWrapperComponent;
+ compView_0:import2.AppView;
+ _NgStyle_0_3:import14.Wrapper_NgStyle;
+ _DataTableRowWrapperComponent_0_4:import15.Wrapper_DataTableRowWrapperComponent;
_text_1:any;
_el_2:any;
- compView_2:import2.AppView;
- _DataTableBodyRowComponent_2_3:import29.Wrapper_DataTableBodyRowComponent;
+ compView_2:import2.AppView;
+ _DataTableBodyRowComponent_2_3:import17.Wrapper_DataTableBodyRowComponent;
_text_3:any;
_text_4:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import13.ViewContainer) {
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import12.ViewContainer) {
super(View_DataTableBodyComponent3,renderType_DataTableBodyComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
}
createInternal(rootSelector:string):import9.ComponentRef {
this._el_0 = import3.createRenderElement(this.renderer,(null as any),'datatable-row-wrapper',new import3.InlineArray2(2,'class','datatable-row-wrapper'),(null as any));
- this.compView_0 = new import27.View_DataTableRowWrapperComponent0(this.viewUtils,this,0,this._el_0);
- this._NgStyle_0_3 = new import26.Wrapper_NgStyle(this.parentView.parentView.parentView.injectorGet(import30.KeyValueDiffers,this.parentView.parentView.parentIndex),new import22.ElementRef(this._el_0),this.renderer);
- this._DataTableRowWrapperComponent_0_4 = new import27.Wrapper_DataTableRowWrapperComponent();
+ this.compView_0 = new import15.View_DataTableRowWrapperComponent0(this.viewUtils,this,0,this._el_0);
+ this._NgStyle_0_3 = new import14.Wrapper_NgStyle(this.parentView.parentView.parentView.injectorGet(import18.KeyValueDiffers,this.parentView.parentView.parentIndex),new import19.ElementRef(this._el_0),this.renderer);
+ this._DataTableRowWrapperComponent_0_4 = new import15.Wrapper_DataTableRowWrapperComponent();
this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
this._el_2 = import3.createRenderElement(this.renderer,(null as any),'datatable-body-row',new import3.InlineArray4(4,'class','datatable-body-row','tabindex','-1'),(null as any));
- this.compView_2 = new import29.View_DataTableBodyRowComponent0(this.viewUtils,this,2,this._el_2);
- this._DataTableBodyRowComponent_2_3 = new import29.Wrapper_DataTableBodyRowComponent(new import22.ElementRef(this._el_2));
+ this.compView_2 = new import17.View_DataTableBodyRowComponent0(this.viewUtils,this,2,this._el_2);
+ this._DataTableBodyRowComponent_2_3 = new import17.Wrapper_DataTableBodyRowComponent(new import19.ElementRef(this._el_2));
this._text_3 = this.renderer.createText((null as any),'\n ',(null as any));
this.compView_2.create(this._DataTableBodyRowComponent_2_3.context);
this._text_4 = this.renderer.createText((null as any),'\n ',(null as any));
@@ -640,9 +393,9 @@ class View_DataTableBodyComponent3 extends import2.AppView {
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import28.DataTableBodyRowComponent) && ((2 <= requestNodeIndex) && (requestNodeIndex <= 3)))) { return this._DataTableBodyRowComponent_2_3.context; }
- if (((token === import31.NgStyle) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 4)))) { return this._NgStyle_0_3.context; }
- if (((token === import25.DataTableRowWrapperComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 4)))) { return this._DataTableRowWrapperComponent_0_4.context; }
+ if (((token === import16.DataTableBodyRowComponent) && ((2 <= requestNodeIndex) && (requestNodeIndex <= 3)))) { return this._DataTableBodyRowComponent_2_3.context; }
+ if (((token === import20.NgStyle) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 4)))) { return this._NgStyle_0_3.context; }
+ if (((token === import13.DataTableRowWrapperComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 4)))) { return this._DataTableRowWrapperComponent_0_4.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
@@ -712,11 +465,104 @@ class View_DataTableBodyComponent3 extends import2.AppView {
return result;
}
}
+class View_DataTableBodyComponent2 extends import2.AppView {
+ _el_0:any;
+ compView_0:import2.AppView;
+ _ScrollerComponent_0_3:import22.Wrapper_ScrollerComponent;
+ _text_1:any;
+ _anchor_2:any;
+ /*private*/ _vc_2:import12.ViewContainer;
+ _TemplateRef_2_5:any;
+ _NgFor_2_6:import23.Wrapper_NgFor;
+ _text_3:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import12.ViewContainer) {
+ super(View_DataTableBodyComponent2,renderType_DataTableBodyComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
+ }
+ createInternal(rootSelector:string):import9.ComponentRef {
+ this._el_0 = import3.createRenderElement(this.renderer,(null as any),'datatable-scroller',new import3.InlineArray2(2,'class','datatable-scroll'),(null as any));
+ this.compView_0 = new import22.View_ScrollerComponent0(this.viewUtils,this,0,this._el_0);
+ this._ScrollerComponent_0_3 = new import22.Wrapper_ScrollerComponent(new import19.ElementRef(this._el_0),this.renderer);
+ this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
+ this._anchor_2 = this.renderer.createTemplateAnchor((null as any),(null as any));
+ this._vc_2 = new import12.ViewContainer(2,0,this,this._anchor_2);
+ this._TemplateRef_2_5 = new import24.TemplateRef_(this,2,this._anchor_2);
+ this._NgFor_2_6 = new import23.Wrapper_NgFor(this._vc_2.vcRef,this._TemplateRef_2_5,this.parentView.parentView.injectorGet(import25.IterableDiffers,this.parentView.parentIndex),this.parentView.ref);
+ this._text_3 = this.renderer.createText((null as any),'\n ',(null as any));
+ this.compView_0.create(this._ScrollerComponent_0_3.context);
+ var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_0,new import3.InlineArray2(2,'scroll',(null as any)),this.eventHandler(this.handleEvent_0));
+ this._ScrollerComponent_0_3.subscribe(this,this.eventHandler(this.handleEvent_0),true);
+ this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
+ this._el_0,
+ this._text_1,
+ this._anchor_2,
+ this._text_3
+ ]
+ ),[disposable_0]);
+ return (null as any);
+ }
+ injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
+ if (((token === import24.TemplateRef) && (2 === requestNodeIndex))) { return this._TemplateRef_2_5; }
+ if (((token === import26.NgFor) && (2 === requestNodeIndex))) { return this._NgFor_2_6.context; }
+ if (((token === import21.ScrollerComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 3)))) { return this._ScrollerComponent_0_3.context; }
+ return notFoundResult;
+ }
+ detectChangesInternal(throwOnChange:boolean):void {
+ const currVal_0_0_0:any = this.parentView.context.scrollbarV;
+ this._ScrollerComponent_0_3.check_scrollbarV(currVal_0_0_0,throwOnChange,false);
+ const currVal_0_0_1:any = this.parentView.context.scrollbarH;
+ this._ScrollerComponent_0_3.check_scrollbarH(currVal_0_0_1,throwOnChange,false);
+ const currVal_0_0_2:any = this.parentView.context.scrollHeight;
+ this._ScrollerComponent_0_3.check_scrollHeight(currVal_0_0_2,throwOnChange,false);
+ const currVal_0_0_3:any = this.parentView.context.columnGroupWidths.total;
+ this._ScrollerComponent_0_3.check_scrollWidth(currVal_0_0_3,throwOnChange,false);
+ this._ScrollerComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange);
+ const currVal_2_0_0:any = this.parentView.context.temp;
+ this._NgFor_2_6.check_ngForOf(currVal_2_0_0,throwOnChange,false);
+ const currVal_2_0_1:any = this.parentView.context.rowTrackingFn;
+ this._NgFor_2_6.check_ngForTrackBy(currVal_2_0_1,throwOnChange,false);
+ this._NgFor_2_6.ngDoCheck(this,this._anchor_2,throwOnChange);
+ this._vc_2.detectChangesInNestedViews(throwOnChange);
+ this._ScrollerComponent_0_3.checkHost(this,this.compView_0,this._el_0,throwOnChange);
+ this.compView_0.internalDetectChanges(throwOnChange);
+ }
+ dirtyParentQueriesInternal():void {
+ (this.parentView)._viewQuery_ScrollerComponent_0.setDirty();
+ }
+ destroyInternal():void {
+ this._vc_2.destroyNestedViews();
+ this.compView_0.destroy();
+ this._ScrollerComponent_0_3.ngOnDestroy();
+ }
+ visitRootNodesInternal(cb:any,ctx:any):void {
+ cb(this._el_0,ctx);
+ }
+ visitProjectableNodesInternal(nodeIndex:number,ngContentIndex:number,cb:any,ctx:any):void {
+ if (((nodeIndex == 0) && (ngContentIndex == 0))) {
+ cb(this._text_1,ctx);
+ cb(this._vc_2.nativeElement,ctx);
+ this._vc_2.visitNestedViewRootNodes(cb,ctx);
+ cb(this._text_3,ctx);
+ }
+ }
+ createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
+ if ((nodeIndex == 2)) { return new View_DataTableBodyComponent3(this.viewUtils,this,2,this._anchor_2,this._vc_2); }
+ return (null as any);
+ }
+ handleEvent_0(eventName:string,$event:any):boolean {
+ this.markPathToRootAsCheckOnce();
+ var result:boolean = true;
+ if ((eventName == 'scroll')) {
+ const pd_sub_0:any = ((this.parentView.context.onBodyScroll($event)) !== false);
+ result = (pd_sub_0 && result);
+ }
+ return result;
+ }
+}
class View_DataTableBodyComponent4 extends import2.AppView {
_el_0:any;
_text_1:any;
/*private*/ _expr_2:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import13.ViewContainer) {
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import12.ViewContainer) {
super(View_DataTableBodyComponent4,renderType_DataTableBodyComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
this._expr_2 = import1.UNINITIALIZED;
}
@@ -740,4 +586,158 @@ class View_DataTableBodyComponent4 extends import2.AppView {
visitRootNodesInternal(cb:any,ctx:any):void {
cb(this._el_0,ctx);
}
+}
+var renderType_DataTableBodyComponent:import5.RenderComponentType = import3.createRenderComponentType('',0,import6.ViewEncapsulation.None,styles_DataTableBodyComponent,{});
+export class View_DataTableBodyComponent0 extends import2.AppView {
+ _viewQuery_ScrollerComponent_0:import27.QueryList;
+ _text_0:any;
+ _el_1:any;
+ compView_1:import2.AppView;
+ _DataTableSelectionComponent_1_3:import29.Wrapper_DataTableSelectionComponent;
+ _text_2:any;
+ _anchor_3:any;
+ /*private*/ _vc_3:import12.ViewContainer;
+ _TemplateRef_3_5:any;
+ _NgIf_3_6:import30.Wrapper_NgIf;
+ _text_4:any;
+ _anchor_5:any;
+ /*private*/ _vc_5:import12.ViewContainer;
+ _TemplateRef_5_5:any;
+ _NgIf_5_6:import30.Wrapper_NgIf;
+ _text_6:any;
+ _anchor_7:any;
+ /*private*/ _vc_7:import12.ViewContainer;
+ _TemplateRef_7_5:any;
+ _NgIf_7_6:import30.Wrapper_NgIf;
+ _text_8:any;
+ _text_9:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
+ super(View_DataTableBodyComponent0,renderType_DataTableBodyComponent,import7.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways);
+ }
+ createInternal(rootSelector:string):import9.ComponentRef {
+ const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
+ this._viewQuery_ScrollerComponent_0 = new import27.QueryList();
+ this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ this._el_1 = import3.createRenderElement(this.renderer,parentRenderNode,'datatable-selection',import3.EMPTY_INLINE_ARRAY,(null as any));
+ this.compView_1 = new import29.View_DataTableSelectionComponent0(this.viewUtils,this,1,this._el_1);
+ this._DataTableSelectionComponent_1_3 = new import29.Wrapper_DataTableSelectionComponent();
+ this._text_2 = this.renderer.createText((null as any),'\n ',(null as any));
+ this._anchor_3 = this.renderer.createTemplateAnchor((null as any),(null as any));
+ this._vc_3 = new import12.ViewContainer(3,1,this,this._anchor_3);
+ this._TemplateRef_3_5 = new import24.TemplateRef_(this,3,this._anchor_3);
+ this._NgIf_3_6 = new import30.Wrapper_NgIf(this._vc_3.vcRef,this._TemplateRef_3_5);
+ this._text_4 = this.renderer.createText((null as any),'\n ',(null as any));
+ this._anchor_5 = this.renderer.createTemplateAnchor((null as any),(null as any));
+ this._vc_5 = new import12.ViewContainer(5,1,this,this._anchor_5);
+ this._TemplateRef_5_5 = new import24.TemplateRef_(this,5,this._anchor_5);
+ this._NgIf_5_6 = new import30.Wrapper_NgIf(this._vc_5.vcRef,this._TemplateRef_5_5);
+ this._text_6 = this.renderer.createText((null as any),'\n ',(null as any));
+ this._anchor_7 = this.renderer.createTemplateAnchor((null as any),(null as any));
+ this._vc_7 = new import12.ViewContainer(7,1,this,this._anchor_7);
+ this._TemplateRef_7_5 = new import24.TemplateRef_(this,7,this._anchor_7);
+ this._NgIf_7_6 = new import30.Wrapper_NgIf(this._vc_7.vcRef,this._TemplateRef_7_5);
+ this._text_8 = this.renderer.createText((null as any),'\n ',(null as any));
+ this.compView_1.create(this._DataTableSelectionComponent_1_3.context);
+ this._text_9 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_1,new import3.InlineArray4(4,'select',(null as any),'activate',(null as any)),this.eventHandler(this.handleEvent_1));
+ this._DataTableSelectionComponent_1_3.subscribe(this,this.eventHandler(this.handleEvent_1),true,true);
+ this.init((null as any),((this.renderer).directRenderer? (null as any): [
+ this._text_0,
+ this._el_1,
+ this._text_2,
+ this._anchor_3,
+ this._text_4,
+ this._anchor_5,
+ this._text_6,
+ this._anchor_7,
+ this._text_8,
+ this._text_9
+ ]
+ ),[disposable_0]);
+ return (null as any);
+ }
+ injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
+ if (((token === import24.TemplateRef) && (3 === requestNodeIndex))) { return this._TemplateRef_3_5; }
+ if (((token === import31.NgIf) && (3 === requestNodeIndex))) { return this._NgIf_3_6.context; }
+ if (((token === import24.TemplateRef) && (5 === requestNodeIndex))) { return this._TemplateRef_5_5; }
+ if (((token === import31.NgIf) && (5 === requestNodeIndex))) { return this._NgIf_5_6.context; }
+ if (((token === import24.TemplateRef) && (7 === requestNodeIndex))) { return this._TemplateRef_7_5; }
+ if (((token === import31.NgIf) && (7 === requestNodeIndex))) { return this._NgIf_7_6.context; }
+ if (((token === import28.DataTableSelectionComponent) && ((1 <= requestNodeIndex) && (requestNodeIndex <= 8)))) { return this._DataTableSelectionComponent_1_3.context; }
+ return notFoundResult;
+ }
+ detectChangesInternal(throwOnChange:boolean):void {
+ const currVal_1_0_0:any = this.context.temp;
+ this._DataTableSelectionComponent_1_3.check_rows(currVal_1_0_0,throwOnChange,false);
+ const currVal_1_0_1:any = this.context.selected;
+ this._DataTableSelectionComponent_1_3.check_selected(currVal_1_0_1,throwOnChange,false);
+ const currVal_1_0_2:any = this.context.selectEnabled;
+ this._DataTableSelectionComponent_1_3.check_selectEnabled(currVal_1_0_2,throwOnChange,false);
+ const currVal_1_0_3:any = this.context.selectionType;
+ this._DataTableSelectionComponent_1_3.check_selectionType(currVal_1_0_3,throwOnChange,false);
+ const currVal_1_0_4:any = this.context.rowIdentity;
+ this._DataTableSelectionComponent_1_3.check_rowIdentity(currVal_1_0_4,throwOnChange,false);
+ const currVal_1_0_5:any = this.context.selectCheck;
+ this._DataTableSelectionComponent_1_3.check_selectCheck(currVal_1_0_5,throwOnChange,false);
+ this._DataTableSelectionComponent_1_3.ngDoCheck(this,this._el_1,throwOnChange);
+ const currVal_3_0_0:any = this.context.loadingIndicator;
+ this._NgIf_3_6.check_ngIf(currVal_3_0_0,throwOnChange,false);
+ this._NgIf_3_6.ngDoCheck(this,this._anchor_3,throwOnChange);
+ const currVal_5_0_0:any = ((this.context.rows == null)? (null as any): this.context.rows.length);
+ this._NgIf_5_6.check_ngIf(currVal_5_0_0,throwOnChange,false);
+ this._NgIf_5_6.ngDoCheck(this,this._anchor_5,throwOnChange);
+ const currVal_7_0_0:boolean = !((this.context.rows == null)? (null as any): this.context.rows.length);
+ this._NgIf_7_6.check_ngIf(currVal_7_0_0,throwOnChange,false);
+ this._NgIf_7_6.ngDoCheck(this,this._anchor_7,throwOnChange);
+ this._vc_3.detectChangesInNestedViews(throwOnChange);
+ this._vc_5.detectChangesInNestedViews(throwOnChange);
+ this._vc_7.detectChangesInNestedViews(throwOnChange);
+ this.compView_1.internalDetectChanges(throwOnChange);
+ if (!throwOnChange) { if (this._viewQuery_ScrollerComponent_0.dirty) {
+ this._viewQuery_ScrollerComponent_0.reset([this._vc_5.mapNestedViews(View_DataTableBodyComponent2,(nestedView:View_DataTableBodyComponent2):any => {
+ return [nestedView._ScrollerComponent_0_3.context];
+ })]);
+ this.context.scroller = this._viewQuery_ScrollerComponent_0.first;
+ } }
+ }
+ destroyInternal():void {
+ this._vc_3.destroyNestedViews();
+ this._vc_5.destroyNestedViews();
+ this._vc_7.destroyNestedViews();
+ this.compView_1.destroy();
+ this._DataTableSelectionComponent_1_3.ngOnDestroy();
+ }
+ visitProjectableNodesInternal(nodeIndex:number,ngContentIndex:number,cb:any,ctx:any):void {
+ if (((nodeIndex == 1) && (ngContentIndex == 0))) {
+ cb(this._text_2,ctx);
+ cb(this._vc_3.nativeElement,ctx);
+ this._vc_3.visitNestedViewRootNodes(cb,ctx);
+ cb(this._text_4,ctx);
+ cb(this._vc_5.nativeElement,ctx);
+ this._vc_5.visitNestedViewRootNodes(cb,ctx);
+ cb(this._text_6,ctx);
+ cb(this._vc_7.nativeElement,ctx);
+ this._vc_7.visitNestedViewRootNodes(cb,ctx);
+ cb(this._text_8,ctx);
+ }
+ }
+ createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
+ if ((nodeIndex == 3)) { return new View_DataTableBodyComponent1(this.viewUtils,this,3,this._anchor_3,this._vc_3); }
+ if ((nodeIndex == 5)) { return new View_DataTableBodyComponent2(this.viewUtils,this,5,this._anchor_5,this._vc_5); }
+ if ((nodeIndex == 7)) { return new View_DataTableBodyComponent4(this.viewUtils,this,7,this._anchor_7,this._vc_7); }
+ return (null as any);
+ }
+ handleEvent_1(eventName:string,$event:any):boolean {
+ this.markPathToRootAsCheckOnce();
+ var result:boolean = true;
+ if ((eventName == 'select')) {
+ const pd_sub_0:any = ((this.context.select.emit($event)) !== false);
+ result = (pd_sub_0 && result);
+ }
+ if ((eventName == 'activate')) {
+ const pd_sub_1:any = ((this.context.activate.emit($event)) !== false);
+ result = (pd_sub_1 && result);
+ }
+ return result;
+ }
}
\ No newline at end of file
diff --git a/release/components/datatable.component.ngfactory.ts b/release/components/datatable.component.ngfactory.ts
index ba5165c93..2d8f7acf9 100644
--- a/release/components/datatable.component.ngfactory.ts
+++ b/release/components/datatable.component.ngfactory.ts
@@ -17,19 +17,19 @@ import * as import8 from '@angular/core/src/change_detection/constants';
import * as import9 from '@angular/core/src/linker/component_factory';
import * as import10 from '@angular/core/src/linker/element_ref';
import * as import11 from '@angular/core/src/change_detection/differs/keyvalue_differs';
-import * as import12 from '../directives/visibility.directive.ngfactory';
-import * as import13 from '@angular/core/src/linker/view_container';
-import * as import14 from '../../node_modules/@angular/common/src/directives/ng_if.ngfactory';
-import * as import15 from '../../../src/components/body/body.component';
-import * as import16 from './body/body.component.ngfactory';
-import * as import17 from '@angular/core/src/zone/ng_zone';
-import * as import18 from '@angular/core/src/linker/template_ref';
-import * as import19 from '@angular/common/src/directives/ng_if';
-import * as import20 from '../../../src/directives/visibility.directive';
-import * as import21 from '../../../src/components/header/header.component';
-import * as import22 from './header/header.component.ngfactory';
-import * as import23 from '../../../src/components/footer/footer.component';
-import * as import24 from './footer/footer.component.ngfactory';
+import * as import12 from '../../../src/components/header/header.component';
+import * as import13 from './header/header.component.ngfactory';
+import * as import14 from '@angular/core/src/linker/view_container';
+import * as import15 from '../../../src/components/footer/footer.component';
+import * as import16 from './footer/footer.component.ngfactory';
+import * as import17 from '../directives/visibility.directive.ngfactory';
+import * as import18 from '../../node_modules/@angular/common/src/directives/ng_if.ngfactory';
+import * as import19 from '../../../src/components/body/body.component';
+import * as import20 from './body/body.component.ngfactory';
+import * as import21 from '@angular/core/src/zone/ng_zone';
+import * as import22 from '@angular/core/src/linker/template_ref';
+import * as import23 from '@angular/common/src/directives/ng_if';
+import * as import24 from '../../../src/directives/visibility.directive';
export class Wrapper_DatatableComponent {
/*private*/ _eventHandler:Function;
context:import0.DatatableComponent;
@@ -412,10 +412,10 @@ class View_DatatableComponent_Host0 extends import2.AppView {
this._DatatableComponent_0_3 = new Wrapper_DatatableComponent(new import10.ElementRef(this._el_0),this.injectorGet(import11.KeyValueDiffers,this.parentIndex));
this._query_DataTableColumnDirective_0_0 = new import6.QueryList();
this._query_DatatableRowDetailDirective_0_1 = new import6.QueryList();
- this._query_DatatableRowDetailDirective_0_1.reset(([] as any[]));
- this._DatatableComponent_0_3.context.rowDetailTemplateChild = this._query_DatatableRowDetailDirective_0_1.first;
this.compView_0.create(this._DatatableComponent_0_3.context);
var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_0,new import3.InlineArray2(2,'resize','window'),this.eventHandler(this.handleEvent_0));
+ this._query_DatatableRowDetailDirective_0_1.reset(([] as any[]));
+ this._DatatableComponent_0_3.context.rowDetailTemplateChild = this._query_DatatableRowDetailDirective_0_1.first;
this.init(this._el_0,((this.renderer).directRenderer? (null as any): [this._el_0]),[disposable_0]);
return new import9.ComponentRef_(0,this,this._el_0,this._DatatableComponent_0_3.context);
}
@@ -450,27 +450,178 @@ class View_DatatableComponent_Host0 extends import2.AppView {
}
export const DatatableComponentNgFactory:import9.ComponentFactory = new import9.ComponentFactory('ngx-datatable',View_DatatableComponent_Host0,import0.DatatableComponent);
const styles_DatatableComponent:any[] = ([] as any[]);
+class View_DatatableComponent1 extends import2.AppView {
+ _el_0:any;
+ compView_0:import2.AppView;
+ _DataTableHeaderComponent_0_3:import13.Wrapper_DataTableHeaderComponent;
+ _text_1:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import14.ViewContainer) {
+ super(View_DatatableComponent1,renderType_DatatableComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
+ }
+ createInternal(rootSelector:string):import9.ComponentRef {
+ this._el_0 = import3.createRenderElement(this.renderer,(null as any),'datatable-header',new import3.InlineArray2(2,'class','datatable-header'),(null as any));
+ this.compView_0 = new import13.View_DataTableHeaderComponent0(this.viewUtils,this,0,this._el_0);
+ this._DataTableHeaderComponent_0_3 = new import13.Wrapper_DataTableHeaderComponent();
+ this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
+ this.compView_0.create(this._DataTableHeaderComponent_0_3.context);
+ var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_0,new import3.InlineArray8(8,'sort',(null as any),'resize',(null as any),'reorder',(null as any),'select',(null as any)),this.eventHandler(this.handleEvent_0));
+ this._DataTableHeaderComponent_0_3.subscribe(this,this.eventHandler(this.handleEvent_0),true,true,true,true);
+ this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
+ this._el_0,
+ this._text_1
+ ]
+ ),[disposable_0]);
+ return (null as any);
+ }
+ injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
+ if (((token === import12.DataTableHeaderComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._DataTableHeaderComponent_0_3.context; }
+ return notFoundResult;
+ }
+ detectChangesInternal(throwOnChange:boolean):void {
+ const currVal_0_0_0:any = this.parentView.context.cssClasses.sortAscending;
+ this._DataTableHeaderComponent_0_3.check_sortAscendingIcon(currVal_0_0_0,throwOnChange,false);
+ const currVal_0_0_1:any = this.parentView.context.cssClasses.sortDescending;
+ this._DataTableHeaderComponent_0_3.check_sortDescendingIcon(currVal_0_0_1,throwOnChange,false);
+ const currVal_0_0_2:any = this.parentView.context.scrollbarH;
+ this._DataTableHeaderComponent_0_3.check_scrollbarH(currVal_0_0_2,throwOnChange,false);
+ const currVal_0_0_3:any = this.parentView.context.innerWidth;
+ this._DataTableHeaderComponent_0_3.check_innerWidth(currVal_0_0_3,throwOnChange,false);
+ const currVal_0_0_4:any = this.parentView.context.offsetX;
+ this._DataTableHeaderComponent_0_3.check_offsetX(currVal_0_0_4,throwOnChange,false);
+ const currVal_0_0_5:any = this.parentView.context.sorts;
+ this._DataTableHeaderComponent_0_3.check_sorts(currVal_0_0_5,throwOnChange,false);
+ const currVal_0_0_6:any = this.parentView.context.sortType;
+ this._DataTableHeaderComponent_0_3.check_sortType(currVal_0_0_6,throwOnChange,false);
+ const currVal_0_0_7:any = this.parentView.context.allRowsSelected;
+ this._DataTableHeaderComponent_0_3.check_allRowsSelected(currVal_0_0_7,throwOnChange,false);
+ const currVal_0_0_8:any = this.parentView.context.selectionType;
+ this._DataTableHeaderComponent_0_3.check_selectionType(currVal_0_0_8,throwOnChange,false);
+ const currVal_0_0_9:any = this.parentView.context.reorderable;
+ this._DataTableHeaderComponent_0_3.check_reorderable(currVal_0_0_9,throwOnChange,false);
+ const currVal_0_0_10:any = this.parentView.context.headerHeight;
+ this._DataTableHeaderComponent_0_3.check_headerHeight(currVal_0_0_10,throwOnChange,false);
+ const currVal_0_0_11:any = this.parentView.context.columns;
+ this._DataTableHeaderComponent_0_3.check_columns(currVal_0_0_11,throwOnChange,false);
+ this._DataTableHeaderComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange);
+ this._DataTableHeaderComponent_0_3.checkHost(this,this.compView_0,this._el_0,throwOnChange);
+ this.compView_0.internalDetectChanges(throwOnChange);
+ }
+ destroyInternal():void {
+ this.compView_0.destroy();
+ this._DataTableHeaderComponent_0_3.ngOnDestroy();
+ }
+ visitRootNodesInternal(cb:any,ctx:any):void {
+ cb(this._el_0,ctx);
+ }
+ handleEvent_0(eventName:string,$event:any):boolean {
+ this.markPathToRootAsCheckOnce();
+ var result:boolean = true;
+ if ((eventName == 'sort')) {
+ const pd_sub_0:any = ((this.parentView.context.onColumnSort($event)) !== false);
+ result = (pd_sub_0 && result);
+ }
+ if ((eventName == 'resize')) {
+ const pd_sub_1:any = ((this.parentView.context.onColumnResize($event)) !== false);
+ result = (pd_sub_1 && result);
+ }
+ if ((eventName == 'reorder')) {
+ const pd_sub_2:any = ((this.parentView.context.onColumnReorder($event)) !== false);
+ result = (pd_sub_2 && result);
+ }
+ if ((eventName == 'select')) {
+ const pd_sub_3:any = ((this.parentView.context.onHeaderSelect($event)) !== false);
+ result = (pd_sub_3 && result);
+ }
+ return result;
+ }
+}
+class View_DatatableComponent2 extends import2.AppView {
+ _el_0:any;
+ compView_0:import2.AppView;
+ _DataTableFooterComponent_0_3:import16.Wrapper_DataTableFooterComponent;
+ _text_1:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import14.ViewContainer) {
+ super(View_DatatableComponent2,renderType_DatatableComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
+ }
+ createInternal(rootSelector:string):import9.ComponentRef {
+ this._el_0 = import3.createRenderElement(this.renderer,(null as any),'datatable-footer',new import3.InlineArray2(2,'class','datatable-footer'),(null as any));
+ this.compView_0 = new import16.View_DataTableFooterComponent0(this.viewUtils,this,0,this._el_0);
+ this._DataTableFooterComponent_0_3 = new import16.Wrapper_DataTableFooterComponent();
+ this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
+ this.compView_0.create(this._DataTableFooterComponent_0_3.context);
+ var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_0,new import3.InlineArray2(2,'page',(null as any)),this.eventHandler(this.handleEvent_0));
+ this._DataTableFooterComponent_0_3.subscribe(this,this.eventHandler(this.handleEvent_0),true);
+ this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
+ this._el_0,
+ this._text_1
+ ]
+ ),[disposable_0]);
+ return (null as any);
+ }
+ injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
+ if (((token === import15.DataTableFooterComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._DataTableFooterComponent_0_3.context; }
+ return notFoundResult;
+ }
+ detectChangesInternal(throwOnChange:boolean):void {
+ const currVal_0_0_0:any = this.parentView.context.footerHeight;
+ this._DataTableFooterComponent_0_3.check_footerHeight(currVal_0_0_0,throwOnChange,false);
+ const currVal_0_0_1:any = this.parentView.context.rowCount;
+ this._DataTableFooterComponent_0_3.check_rowCount(currVal_0_0_1,throwOnChange,false);
+ const currVal_0_0_2:any = this.parentView.context.pageSize;
+ this._DataTableFooterComponent_0_3.check_pageSize(currVal_0_0_2,throwOnChange,false);
+ const currVal_0_0_3:any = this.parentView.context.offset;
+ this._DataTableFooterComponent_0_3.check_offset(currVal_0_0_3,throwOnChange,false);
+ const currVal_0_0_4:any = this.parentView.context.cssClasses.pagerLeftArrow;
+ this._DataTableFooterComponent_0_3.check_pagerLeftArrowIcon(currVal_0_0_4,throwOnChange,false);
+ const currVal_0_0_5:any = this.parentView.context.cssClasses.pagerRightArrow;
+ this._DataTableFooterComponent_0_3.check_pagerRightArrowIcon(currVal_0_0_5,throwOnChange,false);
+ const currVal_0_0_6:any = this.parentView.context.cssClasses.pagerPrevious;
+ this._DataTableFooterComponent_0_3.check_pagerPreviousIcon(currVal_0_0_6,throwOnChange,false);
+ const currVal_0_0_7:any = this.parentView.context.cssClasses.pagerNext;
+ this._DataTableFooterComponent_0_3.check_pagerNextIcon(currVal_0_0_7,throwOnChange,false);
+ const currVal_0_0_8:any = this.parentView.context.messages.totalMessage;
+ this._DataTableFooterComponent_0_3.check_totalMessage(currVal_0_0_8,throwOnChange,false);
+ if (this._DataTableFooterComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange)) { this.compView_0.markAsCheckOnce(); }
+ this.compView_0.internalDetectChanges(throwOnChange);
+ }
+ destroyInternal():void {
+ this.compView_0.destroy();
+ this._DataTableFooterComponent_0_3.ngOnDestroy();
+ }
+ visitRootNodesInternal(cb:any,ctx:any):void {
+ cb(this._el_0,ctx);
+ }
+ handleEvent_0(eventName:string,$event:any):boolean {
+ this.markPathToRootAsCheckOnce();
+ var result:boolean = true;
+ if ((eventName == 'page')) {
+ const pd_sub_0:any = ((this.parentView.context.onFooterPage($event)) !== false);
+ result = (pd_sub_0 && result);
+ }
+ return result;
+ }
+}
var renderType_DatatableComponent:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,styles_DatatableComponent,{});
export class View_DatatableComponent0 extends import2.AppView {
_viewQuery_DataTableBodyComponent_0:import6.QueryList;
_text_0:any;
_el_1:any;
- _VisibilityDirective_1_3:import12.Wrapper_VisibilityDirective;
+ _VisibilityDirective_1_3:import17.Wrapper_VisibilityDirective;
_text_2:any;
_anchor_3:any;
- /*private*/ _vc_3:import13.ViewContainer;
+ /*private*/ _vc_3:import14.ViewContainer;
_TemplateRef_3_5:any;
- _NgIf_3_6:import14.Wrapper_NgIf;
+ _NgIf_3_6:import18.Wrapper_NgIf;
_text_4:any;
_el_5:any;
- compView_5:import2.AppView;
- _DataTableBodyComponent_5_3:import16.Wrapper_DataTableBodyComponent;
+ compView_5:import2.AppView;
+ _DataTableBodyComponent_5_3:import20.Wrapper_DataTableBodyComponent;
_text_6:any;
_text_7:any;
_anchor_8:any;
- /*private*/ _vc_8:import13.ViewContainer;
+ /*private*/ _vc_8:import14.ViewContainer;
_TemplateRef_8_5:any;
- _NgIf_8_6:import14.Wrapper_NgIf;
+ _NgIf_8_6:import18.Wrapper_NgIf;
_text_9:any;
_text_10:any;
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
@@ -481,23 +632,23 @@ export class View_DatatableComponent0 extends import2.AppView();
this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
this._el_1 = import3.createRenderElement(this.renderer,parentRenderNode,'div',new import3.InlineArray2(2,'visibility-observer',''),(null as any));
- this._VisibilityDirective_1_3 = new import12.Wrapper_VisibilityDirective(new import10.ElementRef(this._el_1),this.parentView.injectorGet(import17.NgZone,this.parentIndex));
+ this._VisibilityDirective_1_3 = new import17.Wrapper_VisibilityDirective(new import10.ElementRef(this._el_1),this.parentView.injectorGet(import21.NgZone,this.parentIndex));
this._text_2 = this.renderer.createText(this._el_1,'\n ',(null as any));
this._anchor_3 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
- this._vc_3 = new import13.ViewContainer(3,1,this,this._anchor_3);
- this._TemplateRef_3_5 = new import18.TemplateRef_(this,3,this._anchor_3);
- this._NgIf_3_6 = new import14.Wrapper_NgIf(this._vc_3.vcRef,this._TemplateRef_3_5);
+ this._vc_3 = new import14.ViewContainer(3,1,this,this._anchor_3);
+ this._TemplateRef_3_5 = new import22.TemplateRef_(this,3,this._anchor_3);
+ this._NgIf_3_6 = new import18.Wrapper_NgIf(this._vc_3.vcRef,this._TemplateRef_3_5);
this._text_4 = this.renderer.createText(this._el_1,'\n ',(null as any));
this._el_5 = import3.createRenderElement(this.renderer,this._el_1,'datatable-body',new import3.InlineArray2(2,'class','datatable-body'),(null as any));
- this.compView_5 = new import16.View_DataTableBodyComponent0(this.viewUtils,this,5,this._el_5);
- this._DataTableBodyComponent_5_3 = new import16.Wrapper_DataTableBodyComponent();
+ this.compView_5 = new import20.View_DataTableBodyComponent0(this.viewUtils,this,5,this._el_5);
+ this._DataTableBodyComponent_5_3 = new import20.Wrapper_DataTableBodyComponent();
this._text_6 = this.renderer.createText((null as any),'\n ',(null as any));
this.compView_5.create(this._DataTableBodyComponent_5_3.context);
this._text_7 = this.renderer.createText(this._el_1,'\n ',(null as any));
this._anchor_8 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
- this._vc_8 = new import13.ViewContainer(8,1,this,this._anchor_8);
- this._TemplateRef_8_5 = new import18.TemplateRef_(this,8,this._anchor_8);
- this._NgIf_8_6 = new import14.Wrapper_NgIf(this._vc_8.vcRef,this._TemplateRef_8_5);
+ this._vc_8 = new import14.ViewContainer(8,1,this,this._anchor_8);
+ this._TemplateRef_8_5 = new import22.TemplateRef_(this,8,this._anchor_8);
+ this._NgIf_8_6 = new import18.Wrapper_NgIf(this._vc_8.vcRef,this._TemplateRef_8_5);
this._text_9 = this.renderer.createText(this._el_1,'\n ',(null as any));
this._text_10 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_1,new import3.InlineArray2(2,'visible',(null as any)),this.eventHandler(this.handleEvent_1));
@@ -527,12 +678,12 @@ export class View_DatatableComponent0 extends import2.AppView {
- _el_0:any;
- compView_0:import2.AppView;
- _DataTableHeaderComponent_0_3:import22.Wrapper_DataTableHeaderComponent;
- _text_1:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import13.ViewContainer) {
- super(View_DatatableComponent1,renderType_DatatableComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
- }
- createInternal(rootSelector:string):import9.ComponentRef {
- this._el_0 = import3.createRenderElement(this.renderer,(null as any),'datatable-header',new import3.InlineArray2(2,'class','datatable-header'),(null as any));
- this.compView_0 = new import22.View_DataTableHeaderComponent0(this.viewUtils,this,0,this._el_0);
- this._DataTableHeaderComponent_0_3 = new import22.Wrapper_DataTableHeaderComponent();
- this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
- this.compView_0.create(this._DataTableHeaderComponent_0_3.context);
- var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_0,new import3.InlineArray8(8,'sort',(null as any),'resize',(null as any),'reorder',(null as any),'select',(null as any)),this.eventHandler(this.handleEvent_0));
- this._DataTableHeaderComponent_0_3.subscribe(this,this.eventHandler(this.handleEvent_0),true,true,true,true);
- this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
- this._el_0,
- this._text_1
- ]
- ),[disposable_0]);
- return (null as any);
- }
- injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import21.DataTableHeaderComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._DataTableHeaderComponent_0_3.context; }
- return notFoundResult;
- }
- detectChangesInternal(throwOnChange:boolean):void {
- const currVal_0_0_0:any = this.parentView.context.cssClasses.sortAscending;
- this._DataTableHeaderComponent_0_3.check_sortAscendingIcon(currVal_0_0_0,throwOnChange,false);
- const currVal_0_0_1:any = this.parentView.context.cssClasses.sortDescending;
- this._DataTableHeaderComponent_0_3.check_sortDescendingIcon(currVal_0_0_1,throwOnChange,false);
- const currVal_0_0_2:any = this.parentView.context.scrollbarH;
- this._DataTableHeaderComponent_0_3.check_scrollbarH(currVal_0_0_2,throwOnChange,false);
- const currVal_0_0_3:any = this.parentView.context.innerWidth;
- this._DataTableHeaderComponent_0_3.check_innerWidth(currVal_0_0_3,throwOnChange,false);
- const currVal_0_0_4:any = this.parentView.context.offsetX;
- this._DataTableHeaderComponent_0_3.check_offsetX(currVal_0_0_4,throwOnChange,false);
- const currVal_0_0_5:any = this.parentView.context.sorts;
- this._DataTableHeaderComponent_0_3.check_sorts(currVal_0_0_5,throwOnChange,false);
- const currVal_0_0_6:any = this.parentView.context.sortType;
- this._DataTableHeaderComponent_0_3.check_sortType(currVal_0_0_6,throwOnChange,false);
- const currVal_0_0_7:any = this.parentView.context.allRowsSelected;
- this._DataTableHeaderComponent_0_3.check_allRowsSelected(currVal_0_0_7,throwOnChange,false);
- const currVal_0_0_8:any = this.parentView.context.selectionType;
- this._DataTableHeaderComponent_0_3.check_selectionType(currVal_0_0_8,throwOnChange,false);
- const currVal_0_0_9:any = this.parentView.context.reorderable;
- this._DataTableHeaderComponent_0_3.check_reorderable(currVal_0_0_9,throwOnChange,false);
- const currVal_0_0_10:any = this.parentView.context.headerHeight;
- this._DataTableHeaderComponent_0_3.check_headerHeight(currVal_0_0_10,throwOnChange,false);
- const currVal_0_0_11:any = this.parentView.context.columns;
- this._DataTableHeaderComponent_0_3.check_columns(currVal_0_0_11,throwOnChange,false);
- this._DataTableHeaderComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange);
- this._DataTableHeaderComponent_0_3.checkHost(this,this.compView_0,this._el_0,throwOnChange);
- this.compView_0.internalDetectChanges(throwOnChange);
- }
- destroyInternal():void {
- this.compView_0.destroy();
- this._DataTableHeaderComponent_0_3.ngOnDestroy();
- }
- visitRootNodesInternal(cb:any,ctx:any):void {
- cb(this._el_0,ctx);
- }
- handleEvent_0(eventName:string,$event:any):boolean {
- this.markPathToRootAsCheckOnce();
- var result:boolean = true;
- if ((eventName == 'sort')) {
- const pd_sub_0:any = ((this.parentView.context.onColumnSort($event)) !== false);
- result = (pd_sub_0 && result);
- }
- if ((eventName == 'resize')) {
- const pd_sub_1:any = ((this.parentView.context.onColumnResize($event)) !== false);
- result = (pd_sub_1 && result);
- }
- if ((eventName == 'reorder')) {
- const pd_sub_2:any = ((this.parentView.context.onColumnReorder($event)) !== false);
- result = (pd_sub_2 && result);
- }
- if ((eventName == 'select')) {
- const pd_sub_3:any = ((this.parentView.context.onHeaderSelect($event)) !== false);
- result = (pd_sub_3 && result);
- }
- return result;
- }
-}
-class View_DatatableComponent2 extends import2.AppView {
- _el_0:any;
- compView_0:import2.AppView;
- _DataTableFooterComponent_0_3:import24.Wrapper_DataTableFooterComponent;
- _text_1:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import13.ViewContainer) {
- super(View_DatatableComponent2,renderType_DatatableComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
- }
- createInternal(rootSelector:string):import9.ComponentRef {
- this._el_0 = import3.createRenderElement(this.renderer,(null as any),'datatable-footer',new import3.InlineArray2(2,'class','datatable-footer'),(null as any));
- this.compView_0 = new import24.View_DataTableFooterComponent0(this.viewUtils,this,0,this._el_0);
- this._DataTableFooterComponent_0_3 = new import24.Wrapper_DataTableFooterComponent();
- this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
- this.compView_0.create(this._DataTableFooterComponent_0_3.context);
- var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_0,new import3.InlineArray2(2,'page',(null as any)),this.eventHandler(this.handleEvent_0));
- this._DataTableFooterComponent_0_3.subscribe(this,this.eventHandler(this.handleEvent_0),true);
- this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
- this._el_0,
- this._text_1
- ]
- ),[disposable_0]);
- return (null as any);
- }
- injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import23.DataTableFooterComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._DataTableFooterComponent_0_3.context; }
- return notFoundResult;
- }
- detectChangesInternal(throwOnChange:boolean):void {
- const currVal_0_0_0:any = this.parentView.context.footerHeight;
- this._DataTableFooterComponent_0_3.check_footerHeight(currVal_0_0_0,throwOnChange,false);
- const currVal_0_0_1:any = this.parentView.context.rowCount;
- this._DataTableFooterComponent_0_3.check_rowCount(currVal_0_0_1,throwOnChange,false);
- const currVal_0_0_2:any = this.parentView.context.pageSize;
- this._DataTableFooterComponent_0_3.check_pageSize(currVal_0_0_2,throwOnChange,false);
- const currVal_0_0_3:any = this.parentView.context.offset;
- this._DataTableFooterComponent_0_3.check_offset(currVal_0_0_3,throwOnChange,false);
- const currVal_0_0_4:any = this.parentView.context.cssClasses.pagerLeftArrow;
- this._DataTableFooterComponent_0_3.check_pagerLeftArrowIcon(currVal_0_0_4,throwOnChange,false);
- const currVal_0_0_5:any = this.parentView.context.cssClasses.pagerRightArrow;
- this._DataTableFooterComponent_0_3.check_pagerRightArrowIcon(currVal_0_0_5,throwOnChange,false);
- const currVal_0_0_6:any = this.parentView.context.cssClasses.pagerPrevious;
- this._DataTableFooterComponent_0_3.check_pagerPreviousIcon(currVal_0_0_6,throwOnChange,false);
- const currVal_0_0_7:any = this.parentView.context.cssClasses.pagerNext;
- this._DataTableFooterComponent_0_3.check_pagerNextIcon(currVal_0_0_7,throwOnChange,false);
- const currVal_0_0_8:any = this.parentView.context.messages.totalMessage;
- this._DataTableFooterComponent_0_3.check_totalMessage(currVal_0_0_8,throwOnChange,false);
- if (this._DataTableFooterComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange)) { this.compView_0.markAsCheckOnce(); }
- this.compView_0.internalDetectChanges(throwOnChange);
- }
- destroyInternal():void {
- this.compView_0.destroy();
- this._DataTableFooterComponent_0_3.ngOnDestroy();
- }
- visitRootNodesInternal(cb:any,ctx:any):void {
- cb(this._el_0,ctx);
- }
- handleEvent_0(eventName:string,$event:any):boolean {
- this.markPathToRootAsCheckOnce();
- var result:boolean = true;
- if ((eventName == 'page')) {
- const pd_sub_0:any = ((this.parentView.context.onFooterPage($event)) !== false);
- result = (pd_sub_0 && result);
- }
- return result;
- }
}
\ No newline at end of file
diff --git a/release/components/footer/pager.component.ngfactory.ts b/release/components/footer/pager.component.ngfactory.ts
index 344fe0f1e..dfb2c903e 100644
--- a/release/components/footer/pager.component.ngfactory.ts
+++ b/release/components/footer/pager.component.ngfactory.ts
@@ -146,6 +146,61 @@ class View_DataTablePagerComponent_Host0 extends import2.AppView {
}
export const DataTablePagerComponentNgFactory:import8.ComponentFactory = new import8.ComponentFactory('datatable-pager',View_DataTablePagerComponent_Host0,import0.DataTablePagerComponent);
const styles_DataTablePagerComponent:any[] = ([] as any[]);
+class View_DataTablePagerComponent1 extends import2.AppView {
+ _el_0:any;
+ _text_1:any;
+ _el_2:any;
+ _text_3:any;
+ _text_4:any;
+ /*private*/ _expr_5:any;
+ /*private*/ _expr_6:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import9.ViewContainer) {
+ super(View_DataTablePagerComponent1,renderType_DataTablePagerComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
+ this._expr_5 = import1.UNINITIALIZED;
+ this._expr_6 = import1.UNINITIALIZED;
+ }
+ createInternal(rootSelector:string):import8.ComponentRef {
+ this._el_0 = import3.createRenderElement(this.renderer,(null as any),'li',new import3.InlineArray2(2,'class','pages'),(null as any));
+ this._text_1 = this.renderer.createText(this._el_0,'\n ',(null as any));
+ this._el_2 = import3.createRenderElement(this.renderer,this._el_0,'a',new import3.InlineArray2(2,'href','javascript:void(0)'),(null as any));
+ this._text_3 = this.renderer.createText(this._el_2,'',(null as any));
+ this._text_4 = this.renderer.createText(this._el_0,'\n ',(null as any));
+ var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_2,new import3.InlineArray2(2,'click',(null as any)),this.eventHandler(this.handleEvent_2));
+ this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
+ this._el_0,
+ this._text_1,
+ this._el_2,
+ this._text_3,
+ this._text_4
+ ]
+ ),[disposable_0]);
+ return (null as any);
+ }
+ detectChangesInternal(throwOnChange:boolean):void {
+ const currVal_5:any = (this.context.$implicit.number === this.parentView.context.page);
+ if (import3.checkBinding(throwOnChange,this._expr_5,currVal_5)) {
+ this.renderer.setElementClass(this._el_0,'active',currVal_5);
+ this._expr_5 = currVal_5;
+ }
+ const currVal_6:any = import3.inlineInterpolate(1,'\n ',this.context.$implicit.text,'\n ');
+ if (import3.checkBinding(throwOnChange,this._expr_6,currVal_6)) {
+ this.renderer.setText(this._text_3,currVal_6);
+ this._expr_6 = currVal_6;
+ }
+ }
+ visitRootNodesInternal(cb:any,ctx:any):void {
+ cb(this._el_0,ctx);
+ }
+ handleEvent_2(eventName:string,$event:any):boolean {
+ this.markPathToRootAsCheckOnce();
+ var result:boolean = true;
+ if ((eventName == 'click')) {
+ const pd_sub_0:any = ((this.parentView.context.selectPage(this.context.$implicit.number)) !== false);
+ result = (pd_sub_0 && result);
+ }
+ return result;
+ }
+}
var renderType_DataTablePagerComponent:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,styles_DataTablePagerComponent,{});
export class View_DataTablePagerComponent0 extends import2.AppView {
_text_0:any;
@@ -398,59 +453,4 @@ export class View_DataTablePagerComponent0 extends import2.AppView {
- _el_0:any;
- _text_1:any;
- _el_2:any;
- _text_3:any;
- _text_4:any;
- /*private*/ _expr_5:any;
- /*private*/ _expr_6:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import9.ViewContainer) {
- super(View_DataTablePagerComponent1,renderType_DataTablePagerComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
- this._expr_5 = import1.UNINITIALIZED;
- this._expr_6 = import1.UNINITIALIZED;
- }
- createInternal(rootSelector:string):import8.ComponentRef {
- this._el_0 = import3.createRenderElement(this.renderer,(null as any),'li',new import3.InlineArray2(2,'class','pages'),(null as any));
- this._text_1 = this.renderer.createText(this._el_0,'\n ',(null as any));
- this._el_2 = import3.createRenderElement(this.renderer,this._el_0,'a',new import3.InlineArray2(2,'href','javascript:void(0)'),(null as any));
- this._text_3 = this.renderer.createText(this._el_2,'',(null as any));
- this._text_4 = this.renderer.createText(this._el_0,'\n ',(null as any));
- var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_2,new import3.InlineArray2(2,'click',(null as any)),this.eventHandler(this.handleEvent_2));
- this.init(this._el_0,((this.renderer).directRenderer? (null as any): [
- this._el_0,
- this._text_1,
- this._el_2,
- this._text_3,
- this._text_4
- ]
- ),[disposable_0]);
- return (null as any);
- }
- detectChangesInternal(throwOnChange:boolean):void {
- const currVal_5:any = (this.context.$implicit.number === this.parentView.context.page);
- if (import3.checkBinding(throwOnChange,this._expr_5,currVal_5)) {
- this.renderer.setElementClass(this._el_0,'active',currVal_5);
- this._expr_5 = currVal_5;
- }
- const currVal_6:any = import3.inlineInterpolate(1,'\n ',this.context.$implicit.text,'\n ');
- if (import3.checkBinding(throwOnChange,this._expr_6,currVal_6)) {
- this.renderer.setText(this._text_3,currVal_6);
- this._expr_6 = currVal_6;
- }
- }
- visitRootNodesInternal(cb:any,ctx:any):void {
- cb(this._el_0,ctx);
- }
- handleEvent_2(eventName:string,$event:any):boolean {
- this.markPathToRootAsCheckOnce();
- var result:boolean = true;
- if ((eventName == 'click')) {
- const pd_sub_0:any = ((this.parentView.context.selectPage(this.context.$implicit.number)) !== false);
- result = (pd_sub_0 && result);
- }
- return result;
- }
}
\ No newline at end of file
diff --git a/release/components/header/header-cell.component.js b/release/components/header/header-cell.component.js
index 07f7cabaf..f7874fcfc 100644
--- a/release/components/header/header-cell.component.js
+++ b/release/components/header/header-cell.component.js
@@ -26,6 +26,8 @@ var DataTableHeaderCellComponent = (function () {
cls += ' sortable';
if (this.column.resizeable)
cls += ' resizeable';
+ if (this.column.cssClasses)
+ cls += ' ' + this.column.cssClasses;
var sortDir = this.sortDir;
if (sortDir) {
cls += " sort-active sort-" + sortDir;
diff --git a/release/components/header/header-cell.component.js.map b/release/components/header/header-cell.component.js.map
index 0480f43dc..3e9b3d8f3 100644
--- a/release/components/header/header-cell.component.js.map
+++ b/release/components/header/header-cell.component.js.map
@@ -1 +1 @@
-{"version":3,"file":"header-cell.component.js","sourceRoot":"","sources":["../../../src/components/header/header-cell.component.ts"],"names":[],"mappings":";AAAA,qBAEO,eAAe,CAAC,CAAA;AAEvB,sBAAuD,aAAa,C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AAM,EAAE,CAAC,EAAE,IAAI,EAAE,kBAAW,EAAE,IAAI,EAAE,CAAC,YAAY,EAAG,EAAE,EAAE;QACxD,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,kBAAW,EAAE,IAAI,EAAE,CAAC,mBAAmB,EAAG,EAAE,EAAE;QACnE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,kBAAW,EAAE,IAAI,EAAE,CAAC,mBAAmB,EAAG,EAAE,EAAE;QACnE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,kBAAW,EAAE,IAAI,EAAE,CAAC,gBAAgB,EAAG,EAAE,EAAE;KAC5D,CAAC;IACF,mCAAC;AAAD,CAAC,AA5JD,IA4JC;AA5JY,oCAA4B,+BA4JxC,CAAA"}
\ No newline at end of file
+{"version":3,"file":"header-cell.component.js","sourceRoot":"","sources":["../../../src/components/header/header-cell.component.ts"],"names":[],"mappings":";AAAA,qBAEO,eAAe,CAAC,CAAA;AAEvB,sBAAuD,aAAa,CAAC,CAAA;AACrE,sBAA4B,aAAa,CAAC,CAAA;AAG1C;IAAA;QAsBG,SAAI,GAAsB,IAAI,mBAAY,EAAE,CAAC;QAC7C,WAAM,GAAsB,IAAI,mBAAY,EAAE,CAAC;IAsIlD,CAAC;IAjJE,sBAAI,+CAAK;aAMV;YACE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;aARA,UAAU,GAAU;YACnB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;YAClB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACrC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,CAAC;;;OAAA;IAUD,sBAAI,0DAAgB;aAApB;YACE,IAAI,GAAG,GAAG,uBAAuB,CAAC;YAElC,EAAE,CAAA,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;gBAAC,G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
diff --git a/release/components/header/header-cell.component.ngfactory.ts b/release/components/header/header-cell.component.ngfactory.ts
index c8f4238a6..f3a1aac52 100644
--- a/release/components/header/header-cell.component.ngfactory.ts
+++ b/release/components/header/header-cell.component.ngfactory.ts
@@ -16,11 +16,11 @@ import * as import7 from '@angular/core/src/linker/view_type';
import * as import8 from '@angular/core/src/change_detection/constants';
import * as import9 from '@angular/core/src/linker/component_factory';
import * as import10 from '@angular/core/src/linker/view_container';
-import * as import11 from '../../../node_modules/@angular/common/src/directives/ng_if.ngfactory';
+import * as import11 from '../../../node_modules/@angular/common/src/directives/ng_template_outlet.ngfactory';
import * as import12 from '@angular/core/src/linker/template_ref';
-import * as import13 from '@angular/common/src/directives/ng_if';
-import * as import14 from '../../../node_modules/@angular/common/src/directives/ng_template_outlet.ngfactory';
-import * as import15 from '@angular/common/src/directives/ng_template_outlet';
+import * as import13 from '@angular/common/src/directives/ng_template_outlet';
+import * as import14 from '../../../node_modules/@angular/common/src/directives/ng_if.ngfactory';
+import * as import15 from '@angular/common/src/directives/ng_if';
export class Wrapper_DataTableHeaderCellComponent {
/*private*/ _eventHandler:Function;
context:import0.DataTableHeaderCellComponent;
@@ -203,117 +203,6 @@ class View_DataTableHeaderCellComponent_Host0 extends import2.AppView {
}
export const DataTableHeaderCellComponentNgFactory:import9.ComponentFactory = new import9.ComponentFactory('datatable-header-cell',View_DataTableHeaderCellComponent_Host0,import0.DataTableHeaderCellComponent);
const styles_DataTableHeaderCellComponent:any[] = ([] as any[]);
-var renderType_DataTableHeaderCellComponent:import5.RenderComponentType = import3.createRenderComponentType('',0,import6.ViewEncapsulation.None,styles_DataTableHeaderCellComponent,{});
-export class View_DataTableHeaderCellComponent0 extends import2.AppView {
- _text_0:any;
- _el_1:any;
- _text_2:any;
- _anchor_3:any;
- /*private*/ _vc_3:import10.ViewContainer;
- _TemplateRef_3_5:any;
- _NgIf_3_6:import11.Wrapper_NgIf;
- _text_4:any;
- _anchor_5:any;
- /*private*/ _vc_5:import10.ViewContainer;
- _TemplateRef_5_5:any;
- _NgIf_5_6:import11.Wrapper_NgIf;
- _text_6:any;
- _anchor_7:any;
- /*private*/ _vc_7:import10.ViewContainer;
- _TemplateRef_7_5:any;
- _NgIf_7_6:import11.Wrapper_NgIf;
- _text_8:any;
- _el_9:any;
- _text_10:any;
- _text_11:any;
- _text_12:any;
- /*private*/ _expr_22:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
- super(View_DataTableHeaderCellComponent0,renderType_DataTableHeaderCellComponent,import7.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways);
- this._expr_22 = import1.UNINITIALIZED;
- }
- createInternal(rootSelector:string):import9.ComponentRef {
- const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
- this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this._el_1 = import3.createRenderElement(this.renderer,parentRenderNode,'div',import3.EMPTY_INLINE_ARRAY,(null as any));
- this._text_2 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._anchor_3 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
- this._vc_3 = new import10.ViewContainer(3,1,this,this._anchor_3);
- this._TemplateRef_3_5 = new import12.TemplateRef_(this,3,this._anchor_3);
- this._NgIf_3_6 = new import11.Wrapper_NgIf(this._vc_3.vcRef,this._TemplateRef_3_5);
- this._text_4 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._anchor_5 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
- this._vc_5 = new import10.ViewContainer(5,1,this,this._anchor_5);
- this._TemplateRef_5_5 = new import12.TemplateRef_(this,5,this._anchor_5);
- this._NgIf_5_6 = new import11.Wrapper_NgIf(this._vc_5.vcRef,this._TemplateRef_5_5);
- this._text_6 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._anchor_7 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
- this._vc_7 = new import10.ViewContainer(7,1,this,this._anchor_7);
- this._TemplateRef_7_5 = new import12.TemplateRef_(this,7,this._anchor_7);
- this._NgIf_7_6 = new import11.Wrapper_NgIf(this._vc_7.vcRef,this._TemplateRef_7_5);
- this._text_8 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._el_9 = import3.createRenderElement(this.renderer,this._el_1,'span',new import3.InlineArray2(2,'class','sort-btn'),(null as any));
- this._text_10 = this.renderer.createText(this._el_9,'\n ',(null as any));
- this._text_11 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._text_12 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this.init((null as any),((this.renderer).directRenderer? (null as any): [
- this._text_0,
- this._el_1,
- this._text_2,
- this._anchor_3,
- this._text_4,
- this._anchor_5,
- this._text_6,
- this._anchor_7,
- this._text_8,
- this._el_9,
- this._text_10,
- this._text_11,
- this._text_12
- ]
- ),(null as any));
- return (null as any);
- }
- injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import12.TemplateRef) && (3 === requestNodeIndex))) { return this._TemplateRef_3_5; }
- if (((token === import13.NgIf) && (3 === requestNodeIndex))) { return this._NgIf_3_6.context; }
- if (((token === import12.TemplateRef) && (5 === requestNodeIndex))) { return this._TemplateRef_5_5; }
- if (((token === import13.NgIf) && (5 === requestNodeIndex))) { return this._NgIf_5_6.context; }
- if (((token === import12.TemplateRef) && (7 === requestNodeIndex))) { return this._TemplateRef_7_5; }
- if (((token === import13.NgIf) && (7 === requestNodeIndex))) { return this._NgIf_7_6.context; }
- return notFoundResult;
- }
- detectChangesInternal(throwOnChange:boolean):void {
- const currVal_3_0_0:any = this.context.isCheckboxable;
- this._NgIf_3_6.check_ngIf(currVal_3_0_0,throwOnChange,false);
- this._NgIf_3_6.ngDoCheck(this,this._anchor_3,throwOnChange);
- const currVal_5_0_0:boolean = !this.context.column.headerTemplate;
- this._NgIf_5_6.check_ngIf(currVal_5_0_0,throwOnChange,false);
- this._NgIf_5_6.ngDoCheck(this,this._anchor_5,throwOnChange);
- const currVal_7_0_0:any = this.context.column.headerTemplate;
- this._NgIf_7_6.check_ngIf(currVal_7_0_0,throwOnChange,false);
- this._NgIf_7_6.ngDoCheck(this,this._anchor_7,throwOnChange);
- this._vc_3.detectChangesInNestedViews(throwOnChange);
- this._vc_5.detectChangesInNestedViews(throwOnChange);
- this._vc_7.detectChangesInNestedViews(throwOnChange);
- const currVal_22:any = this.context.sortClass;
- if (import3.checkBinding(throwOnChange,this._expr_22,currVal_22)) {
- this.renderer.setElementProperty(this._el_9,'className',currVal_22);
- this._expr_22 = currVal_22;
- }
- }
- destroyInternal():void {
- this._vc_3.destroyNestedViews();
- this._vc_5.destroyNestedViews();
- this._vc_7.destroyNestedViews();
- }
- createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
- if ((nodeIndex == 3)) { return new View_DataTableHeaderCellComponent1(this.viewUtils,this,3,this._anchor_3,this._vc_3); }
- if ((nodeIndex == 5)) { return new View_DataTableHeaderCellComponent2(this.viewUtils,this,5,this._anchor_5,this._vc_5); }
- if ((nodeIndex == 7)) { return new View_DataTableHeaderCellComponent3(this.viewUtils,this,7,this._anchor_7,this._vc_7); }
- return (null as any);
- }
-}
class View_DataTableHeaderCellComponent1 extends import2.AppView {
_el_0:any;
_text_1:any;
@@ -398,11 +287,25 @@ class View_DataTableHeaderCellComponent2 extends import2.AppView {
return result;
}
}
+class View_DataTableHeaderCellComponent4 extends import2.AppView {
+ _text_0:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import10.ViewContainer) {
+ super(View_DataTableHeaderCellComponent4,renderType_DataTableHeaderCellComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
+ }
+ createInternal(rootSelector:string):import9.ComponentRef {
+ this._text_0 = this.renderer.createText((null as any),'\n ',(null as any));
+ this.init(this._text_0,((this.renderer).directRenderer? (null as any): [this._text_0]),(null as any));
+ return (null as any);
+ }
+ visitRootNodesInternal(cb:any,ctx:any):void {
+ cb(this._text_0,ctx);
+ }
+}
class View_DataTableHeaderCellComponent3 extends import2.AppView {
_anchor_0:any;
/*private*/ _vc_0:import10.ViewContainer;
_TemplateRef_0_5:any;
- _NgTemplateOutlet_0_6:import14.Wrapper_NgTemplateOutlet;
+ _NgTemplateOutlet_0_6:import11.Wrapper_NgTemplateOutlet;
_el_1:any;
_map_5:any;
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import10.ViewContainer) {
@@ -419,14 +322,14 @@ class View_DataTableHeaderCellComponent3 extends import2.AppView {
this._anchor_0 = this.renderer.createTemplateAnchor((null as any),(null as any));
this._vc_0 = new import10.ViewContainer(0,(null as any),this,this._anchor_0);
this._TemplateRef_0_5 = new import12.TemplateRef_(this,0,this._anchor_0);
- this._NgTemplateOutlet_0_6 = new import14.Wrapper_NgTemplateOutlet(this._vc_0.vcRef);
+ this._NgTemplateOutlet_0_6 = new import11.Wrapper_NgTemplateOutlet(this._vc_0.vcRef);
this._el_1 = this.renderer.createTemplateAnchor((null as any),(null as any));
this.init(this._el_1,((this.renderer).directRenderer? (null as any): [this._anchor_0]),(null as any));
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
if (((token === import12.TemplateRef) && (0 === requestNodeIndex))) { return this._TemplateRef_0_5; }
- if (((token === import15.NgTemplateOutlet) && (0 === requestNodeIndex))) { return this._NgTemplateOutlet_0_6.context; }
+ if (((token === import13.NgTemplateOutlet) && (0 === requestNodeIndex))) { return this._NgTemplateOutlet_0_6.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
@@ -450,17 +353,114 @@ class View_DataTableHeaderCellComponent3 extends import2.AppView {
return (null as any);
}
}
-class View_DataTableHeaderCellComponent4 extends import2.AppView {
+var renderType_DataTableHeaderCellComponent:import5.RenderComponentType = import3.createRenderComponentType('',0,import6.ViewEncapsulation.None,styles_DataTableHeaderCellComponent,{});
+export class View_DataTableHeaderCellComponent0 extends import2.AppView {
_text_0:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import10.ViewContainer) {
- super(View_DataTableHeaderCellComponent4,renderType_DataTableHeaderCellComponent,import7.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
+ _el_1:any;
+ _text_2:any;
+ _anchor_3:any;
+ /*private*/ _vc_3:import10.ViewContainer;
+ _TemplateRef_3_5:any;
+ _NgIf_3_6:import14.Wrapper_NgIf;
+ _text_4:any;
+ _anchor_5:any;
+ /*private*/ _vc_5:import10.ViewContainer;
+ _TemplateRef_5_5:any;
+ _NgIf_5_6:import14.Wrapper_NgIf;
+ _text_6:any;
+ _anchor_7:any;
+ /*private*/ _vc_7:import10.ViewContainer;
+ _TemplateRef_7_5:any;
+ _NgIf_7_6:import14.Wrapper_NgIf;
+ _text_8:any;
+ _el_9:any;
+ _text_10:any;
+ _text_11:any;
+ _text_12:any;
+ /*private*/ _expr_22:any;
+ constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
+ super(View_DataTableHeaderCellComponent0,renderType_DataTableHeaderCellComponent,import7.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways);
+ this._expr_22 = import1.UNINITIALIZED;
}
createInternal(rootSelector:string):import9.ComponentRef {
- this._text_0 = this.renderer.createText((null as any),'\n ',(null as any));
- this.init(this._text_0,((this.renderer).directRenderer? (null as any): [this._text_0]),(null as any));
+ const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
+ this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ this._el_1 = import3.createRenderElement(this.renderer,parentRenderNode,'div',import3.EMPTY_INLINE_ARRAY,(null as any));
+ this._text_2 = this.renderer.createText(this._el_1,'\n ',(null as any));
+ this._anchor_3 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
+ this._vc_3 = new import10.ViewContainer(3,1,this,this._anchor_3);
+ this._TemplateRef_3_5 = new import12.TemplateRef_(this,3,this._anchor_3);
+ this._NgIf_3_6 = new import14.Wrapper_NgIf(this._vc_3.vcRef,this._TemplateRef_3_5);
+ this._text_4 = this.renderer.createText(this._el_1,'\n ',(null as any));
+ this._anchor_5 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
+ this._vc_5 = new import10.ViewContainer(5,1,this,this._anchor_5);
+ this._TemplateRef_5_5 = new import12.TemplateRef_(this,5,this._anchor_5);
+ this._NgIf_5_6 = new import14.Wrapper_NgIf(this._vc_5.vcRef,this._TemplateRef_5_5);
+ this._text_6 = this.renderer.createText(this._el_1,'\n ',(null as any));
+ this._anchor_7 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
+ this._vc_7 = new import10.ViewContainer(7,1,this,this._anchor_7);
+ this._TemplateRef_7_5 = new import12.TemplateRef_(this,7,this._anchor_7);
+ this._NgIf_7_6 = new import14.Wrapper_NgIf(this._vc_7.vcRef,this._TemplateRef_7_5);
+ this._text_8 = this.renderer.createText(this._el_1,'\n ',(null as any));
+ this._el_9 = import3.createRenderElement(this.renderer,this._el_1,'span',new import3.InlineArray2(2,'class','sort-btn'),(null as any));
+ this._text_10 = this.renderer.createText(this._el_9,'\n ',(null as any));
+ this._text_11 = this.renderer.createText(this._el_1,'\n ',(null as any));
+ this._text_12 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
+ this.init((null as any),((this.renderer).directRenderer? (null as any): [
+ this._text_0,
+ this._el_1,
+ this._text_2,
+ this._anchor_3,
+ this._text_4,
+ this._anchor_5,
+ this._text_6,
+ this._anchor_7,
+ this._text_8,
+ this._el_9,
+ this._text_10,
+ this._text_11,
+ this._text_12
+ ]
+ ),(null as any));
return (null as any);
}
- visitRootNodesInternal(cb:any,ctx:any):void {
- cb(this._text_0,ctx);
+ injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
+ if (((token === import12.TemplateRef) && (3 === requestNodeIndex))) { return this._TemplateRef_3_5; }
+ if (((token === import15.NgIf) && (3 === requestNodeIndex))) { return this._NgIf_3_6.context; }
+ if (((token === import12.TemplateRef) && (5 === requestNodeIndex))) { return this._TemplateRef_5_5; }
+ if (((token === import15.NgIf) && (5 === requestNodeIndex))) { return this._NgIf_5_6.context; }
+ if (((token === import12.TemplateRef) && (7 === requestNodeIndex))) { return this._TemplateRef_7_5; }
+ if (((token === import15.NgIf) && (7 === requestNodeIndex))) { return this._NgIf_7_6.context; }
+ return notFoundResult;
+ }
+ detectChangesInternal(throwOnChange:boolean):void {
+ const currVal_3_0_0:any = this.context.isCheckboxable;
+ this._NgIf_3_6.check_ngIf(currVal_3_0_0,throwOnChange,false);
+ this._NgIf_3_6.ngDoCheck(this,this._anchor_3,throwOnChange);
+ const currVal_5_0_0:boolean = !this.context.column.headerTemplate;
+ this._NgIf_5_6.check_ngIf(currVal_5_0_0,throwOnChange,false);
+ this._NgIf_5_6.ngDoCheck(this,this._anchor_5,throwOnChange);
+ const currVal_7_0_0:any = this.context.column.headerTemplate;
+ this._NgIf_7_6.check_ngIf(currVal_7_0_0,throwOnChange,false);
+ this._NgIf_7_6.ngDoCheck(this,this._anchor_7,throwOnChange);
+ this._vc_3.detectChangesInNestedViews(throwOnChange);
+ this._vc_5.detectChangesInNestedViews(throwOnChange);
+ this._vc_7.detectChangesInNestedViews(throwOnChange);
+ const currVal_22:any = this.context.sortClass;
+ if (import3.checkBinding(throwOnChange,this._expr_22,currVal_22)) {
+ this.renderer.setElementProperty(this._el_9,'className',currVal_22);
+ this._expr_22 = currVal_22;
+ }
+ }
+ destroyInternal():void {
+ this._vc_3.destroyNestedViews();
+ this._vc_5.destroyNestedViews();
+ this._vc_7.destroyNestedViews();
+ }
+ createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
+ if ((nodeIndex == 3)) { return new View_DataTableHeaderCellComponent1(this.viewUtils,this,3,this._anchor_3,this._vc_3); }
+ if ((nodeIndex == 5)) { return new View_DataTableHeaderCellComponent2(this.viewUtils,this,5,this._anchor_5,this._vc_5); }
+ if ((nodeIndex == 7)) { return new View_DataTableHeaderCellComponent3(this.viewUtils,this,7,this._anchor_7,this._vc_7); }
+ return (null as any);
}
}
\ No newline at end of file
diff --git a/release/components/header/header.component.ngfactory.ts b/release/components/header/header.component.ngfactory.ts
index 37326fb40..2599a8b0d 100644
--- a/release/components/header/header.component.ngfactory.ts
+++ b/release/components/header/header.component.ngfactory.ts
@@ -15,26 +15,26 @@ import * as import6 from '@angular/core/src/metadata/view';
import * as import7 from '@angular/core/src/linker/view_type';
import * as import8 from '@angular/core/src/change_detection/constants';
import * as import9 from '@angular/core/src/linker/component_factory';
-import * as import10 from '../../directives/orderable.directive.ngfactory';
-import * as import11 from '@angular/core/src/linker/query_list';
-import * as import12 from '@angular/core/src/linker/view_container';
-import * as import13 from '../../../node_modules/@angular/common/src/directives/ng_for.ngfactory';
-import * as import14 from '@angular/core/src/change_detection/differs/keyvalue_differs';
-import * as import15 from '@angular/core/src/linker/template_ref';
-import * as import16 from '@angular/core/src/change_detection/differs/iterable_differs';
-import * as import17 from '@angular/common/src/directives/ng_for';
-import * as import18 from '../../../../src/directives/orderable.directive';
-import * as import19 from '../../../node_modules/@angular/common/src/directives/ng_style.ngfactory';
-import * as import20 from '@angular/core/src/linker/element_ref';
-import * as import21 from '@angular/common/src/directives/ng_style';
-import * as import22 from '../../../../src/components/header/header-cell.component';
-import * as import23 from '../../directives/draggable.directive.ngfactory';
-import * as import24 from '../../directives/resizeable.directive.ngfactory';
-import * as import25 from '../../directives/long-press.directive.ngfactory';
-import * as import26 from './header-cell.component.ngfactory';
-import * as import27 from '../../../../src/directives/draggable.directive';
-import * as import28 from '../../../../src/directives/resizeable.directive';
-import * as import29 from '../../../../src/directives/long-press.directive';
+import * as import10 from '../../../../src/components/header/header-cell.component';
+import * as import11 from '../../directives/draggable.directive.ngfactory';
+import * as import12 from '../../directives/resizeable.directive.ngfactory';
+import * as import13 from '../../directives/long-press.directive.ngfactory';
+import * as import14 from './header-cell.component.ngfactory';
+import * as import15 from '@angular/core/src/linker/view_container';
+import * as import16 from '@angular/core/src/linker/element_ref';
+import * as import17 from '../../../../src/directives/draggable.directive';
+import * as import18 from '../../../../src/directives/resizeable.directive';
+import * as import19 from '../../../../src/directives/long-press.directive';
+import * as import20 from '../../../node_modules/@angular/common/src/directives/ng_style.ngfactory';
+import * as import21 from '../../../node_modules/@angular/common/src/directives/ng_for.ngfactory';
+import * as import22 from '@angular/core/src/change_detection/differs/keyvalue_differs';
+import * as import23 from '@angular/core/src/linker/template_ref';
+import * as import24 from '@angular/core/src/change_detection/differs/iterable_differs';
+import * as import25 from '@angular/common/src/directives/ng_for';
+import * as import26 from '@angular/common/src/directives/ng_style';
+import * as import27 from '../../directives/orderable.directive.ngfactory';
+import * as import28 from '@angular/core/src/linker/query_list';
+import * as import29 from '../../../../src/directives/orderable.directive';
export class Wrapper_DataTableHeaderComponent {
/*private*/ _eventHandler:Function;
context:import0.DataTableHeaderComponent;
@@ -231,183 +231,24 @@ class View_DataTableHeaderComponent_Host0 extends import2.AppView {
}
export const DataTableHeaderComponentNgFactory:import9.ComponentFactory = new import9.ComponentFactory('datatable-header',View_DataTableHeaderComponent_Host0,import0.DataTableHeaderComponent);
const styles_DataTableHeaderComponent:any[] = ([] as any[]);
-var renderType_DataTableHeaderComponent:import5.RenderComponentType = import3.createRenderComponentType('',0,import6.ViewEncapsulation.None,styles_DataTableHeaderComponent,{});
-export class View_DataTableHeaderComponent0 extends import2.AppView {
- _text_0:any;
- _el_1:any;
- _OrderableDirective_1_3:import10.Wrapper_OrderableDirective;
- _query_DraggableDirective_1_0:import11.QueryList;
- _text_2:any;
- _anchor_3:any;
- /*private*/ _vc_3:import12.ViewContainer;
- _TemplateRef_3_5:any;
- _NgFor_3_6:import13.Wrapper_NgFor;
- _text_4:any;
- _text_5:any;
- /*private*/ _expr_11:any;
- constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) {
- super(View_DataTableHeaderComponent0,renderType_DataTableHeaderComponent,import7.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import8.ChangeDetectorStatus.CheckAlways);
- this._expr_11 = import1.UNINITIALIZED;
- }
- createInternal(rootSelector:string):import9.ComponentRef {
- const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
- this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- this._el_1 = import3.createRenderElement(this.renderer,parentRenderNode,'div',new import3.InlineArray4(4,'class','datatable-header-inner','orderable',''),(null as any));
- this._OrderableDirective_1_3 = new import10.Wrapper_OrderableDirective(this.parentView.injectorGet(import14.KeyValueDiffers,this.parentIndex));
- this._query_DraggableDirective_1_0 = new import11.QueryList();
- this._text_2 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._anchor_3 = this.renderer.createTemplateAnchor(this._el_1,(null as any));
- this._vc_3 = new import12.ViewContainer(3,1,this,this._anchor_3);
- this._TemplateRef_3_5 = new import15.TemplateRef_(this,3,this._anchor_3);
- this._NgFor_3_6 = new import13.Wrapper_NgFor(this._vc_3.vcRef,this._TemplateRef_3_5,this.parentView.injectorGet(import16.IterableDiffers,this.parentIndex),this.ref);
- this._text_4 = this.renderer.createText(this._el_1,'\n ',(null as any));
- this._text_5 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
- var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_1,new import3.InlineArray2(2,'reorder',(null as any)),this.eventHandler(this.handleEvent_1));
- this._OrderableDirective_1_3.subscribe(this,this.eventHandler(this.handleEvent_1),true);
- this.init((null as any),((this.renderer).directRenderer? (null as any): [
- this._text_0,
- this._el_1,
- this._text_2,
- this._anchor_3,
- this._text_4,
- this._text_5
- ]
- ),[disposable_0]);
- return (null as any);
- }
- injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
- if (((token === import15.TemplateRef) && (3 === requestNodeIndex))) { return this._TemplateRef_3_5; }
- if (((token === import17.NgFor) && (3 === requestNodeIndex))) { return this._NgFor_3_6.context; }
- if (((token === import18.OrderableDirective) && ((1 <= requestNodeIndex) && (requestNodeIndex <= 4)))) { return this._OrderableDirective_1_3.context; }
- return notFoundResult;
- }
- detectChangesInternal(throwOnChange:boolean):void {
- this._OrderableDirective_1_3.ngDoCheck(this,this._el_1,throwOnChange);
- const currVal_3_0_0:any = this.context.columnsByPin;
- this._NgFor_3_6.check_ngForOf(currVal_3_0_0,throwOnChange,false);
- const currVal_3_0_1:any = this.context.trackByGroups;
- this._NgFor_3_6.check_ngForTrackBy(currVal_3_0_1,throwOnChange,false);
- this._NgFor_3_6.ngDoCheck(this,this._anchor_3,throwOnChange);
- this._vc_3.detectChangesInNestedViews(throwOnChange);
- if (!throwOnChange) {
- if (this._query_DraggableDirective_1_0.dirty) {
- this._query_DraggableDirective_1_0.reset([this._vc_3.mapNestedViews(View_DataTableHeaderComponent1,(nestedView:View_DataTableHeaderComponent1):any => {
- return [nestedView._vc_2.mapNestedViews(View_DataTableHeaderComponent2,(nestedView:View_DataTableHeaderComponent2):any => {
- return [nestedView._DraggableDirective_0_3.context];
- })];
- })]);
- this._OrderableDirective_1_3.context.draggables = this._query_DraggableDirective_1_0;
- this._query_DraggableDirective_1_0.notifyOnChanges();
- }
- if ((this.numberOfChecks === 0)) { this._OrderableDirective_1_3.context.ngAfterContentInit(); }
- }
- const currVal_11:any = this.context.columnGroupWidths.total;
- if (import3.checkBinding(throwOnChange,this._expr_11,currVal_11)) {
- this.renderer.setElementStyle(this._el_1,'width',((this.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_11) == null)? (null as any): (this.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_11).toString() + 'px')));
- this._expr_11 = currVal_11;
- }
- }
- destroyInternal():void {
- this._vc_3.destroyNestedViews();
- this._OrderableDirective_1_3.ngOnDestroy();
- }
- createEmbeddedViewInternal(nodeIndex:number):import2.AppView {
- if ((nodeIndex == 3)) { return new View_DataTableHeaderComponent1(this.viewUtils,this,3,this._anchor_3,this._vc_3); }
- return (null as any);
- }
- handleEvent_1(eventName:string,$event:any):boolean {
- this.markPathToRootAsCheckOnce();
- var result:boolean = true;
- if ((eventName == 'reorder')) {
- const pd_sub_0:any = ((