@swimlane/ngx-charts
Version:
Declarative Charting Framework for Angular2 and beyond!
256 lines (255 loc) • 12.7 kB
text/typescript
/**
* @fileoverview This file is generated by the Angular 2 template compiler.
* Do not edit.
* @suppress {suspiciousCode,uselessCode,missingProperties}
*/
/* tslint:disable */
import * as import0 from '../../../src/area-chart/area-series.component';
import * as import1 from '@angular/core/src/change_detection/change_detection_util';
import * as import2 from '@angular/core/src/linker/view';
import * as import3 from '@angular/core/src/linker/view_utils';
import * as import4 from '@angular/core/src/render/api';
import * as import5 from '@angular/core/src/metadata/view';
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 '../../../src/common/area.component';
import * as import10 from '../common/area.component.ngfactory';
import * as import11 from '@angular/core/src/linker/element_ref';
export class Wrapper_AreaSeriesComponent {
/*private*/ _eventHandler:Function;
context:import0.AreaSeriesComponent;
/*private*/ _changed:boolean;
/*private*/ _changes:{[key: string]:any};
/*private*/ _expr_0:any;
/*private*/ _expr_1:any;
/*private*/ _expr_2:any;
/*private*/ _expr_3:any;
/*private*/ _expr_4:any;
/*private*/ _expr_5:any;
/*private*/ _expr_6:any;
/*private*/ _expr_7:any;
/*private*/ _expr_8:any;
/*private*/ _expr_9:any;
subscription0:any;
constructor() {
this._changed = false;
this._changes = {};
this.context = new import0.AreaSeriesComponent();
this._expr_0 = import1.UNINITIALIZED;
this._expr_1 = import1.UNINITIALIZED;
this._expr_2 = import1.UNINITIALIZED;
this._expr_3 = import1.UNINITIALIZED;
this._expr_4 = import1.UNINITIALIZED;
this._expr_5 = import1.UNINITIALIZED;
this._expr_6 = import1.UNINITIALIZED;
this._expr_7 = import1.UNINITIALIZED;
this._expr_8 = import1.UNINITIALIZED;
this._expr_9 = import1.UNINITIALIZED;
}
ngOnDetach(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any):void {
}
ngOnDestroy():void {
(this.subscription0 && this.subscription0.unsubscribe());
}
check_data(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_0,currValue))) {
this._changed = true;
this.context.data = currValue;
this._changes['data'] = new import1.SimpleChange(this._expr_0,currValue);
this._expr_0 = currValue;
}
}
check_xScale(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_1,currValue))) {
this._changed = true;
this.context.xScale = currValue;
this._changes['xScale'] = new import1.SimpleChange(this._expr_1,currValue);
this._expr_1 = currValue;
}
}
check_yScale(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_2,currValue))) {
this._changed = true;
this.context.yScale = currValue;
this._changes['yScale'] = new import1.SimpleChange(this._expr_2,currValue);
this._expr_2 = currValue;
}
}
check_colors(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_3,currValue))) {
this._changed = true;
this.context.colors = currValue;
this._changes['colors'] = new import1.SimpleChange(this._expr_3,currValue);
this._expr_3 = currValue;
}
}
check_scaleType(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_4,currValue))) {
this._changed = true;
this.context.scaleType = currValue;
this._changes['scaleType'] = new import1.SimpleChange(this._expr_4,currValue);
this._expr_4 = currValue;
}
}
check_stacked(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_5,currValue))) {
this._changed = true;
this.context.stacked = currValue;
this._changes['stacked'] = new import1.SimpleChange(this._expr_5,currValue);
this._expr_5 = currValue;
}
}
check_normalized(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_6,currValue))) {
this._changed = true;
this.context.normalized = currValue;
this._changes['normalized'] = new import1.SimpleChange(this._expr_6,currValue);
this._expr_6 = currValue;
}
}
check_gradient(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_7,currValue))) {
this._changed = true;
this.context.gradient = currValue;
this._changes['gradient'] = new import1.SimpleChange(this._expr_7,currValue);
this._expr_7 = currValue;
}
}
check_curve(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_8,currValue))) {
this._changed = true;
this.context.curve = currValue;
this._changes['curve'] = new import1.SimpleChange(this._expr_8,currValue);
this._expr_8 = currValue;
}
}
check_activeEntries(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_9,currValue))) {
this._changed = true;
this.context.activeEntries = currValue;
this._changes['activeEntries'] = new import1.SimpleChange(this._expr_9,currValue);
this._expr_9 = currValue;
}
}
ngDoCheck(view:import2.AppView<any>,el:any,throwOnChange:boolean):boolean {
var changed:any = this._changed;
this._changed = false;
if (!throwOnChange) { if (changed) {
this.context.ngOnChanges(this._changes);
this._changes = {};
} }
return changed;
}
checkHost(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any,throwOnChange:boolean):void {
}
handleEvent(eventName:string,$event:any):boolean {
var result:boolean = true;
return result;
}
subscribe(view:import2.AppView<any>,_eventHandler:any,emit0:boolean):void {
this._eventHandler = _eventHandler;
if (emit0) { (this.subscription0 = this.context.select.subscribe(_eventHandler.bind(view,'select'))); }
}
}
var renderType_AreaSeriesComponent_Host:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,([] as any[]),{});
class View_AreaSeriesComponent_Host0 extends import2.AppView<any> {
_el_0:any;
compView_0:import2.AppView<import0.AreaSeriesComponent>;
_AreaSeriesComponent_0_3:Wrapper_AreaSeriesComponent;
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) {
super(View_AreaSeriesComponent_Host0,renderType_AreaSeriesComponent_Host,import6.ViewType.HOST,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways);
}
createInternal(rootSelector:string):import8.ComponentRef<any> {
this._el_0 = import3.selectOrCreateRenderHostElement(this.renderer,'g',new import3.InlineArray2(2,'ngx-charts-area-series',''),rootSelector,(null as any));
this.compView_0 = new View_AreaSeriesComponent0(this.viewUtils,this,0,this._el_0);
this._AreaSeriesComponent_0_3 = new Wrapper_AreaSeriesComponent();
this.compView_0.create(this._AreaSeriesComponent_0_3.context);
this.init(this._el_0,((<any>this.renderer).directRenderer? (null as any): [this._el_0]),(null as any));
return new import8.ComponentRef_<any>(0,this,this._el_0,this._AreaSeriesComponent_0_3.context);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
if (((token === import0.AreaSeriesComponent) && (0 === requestNodeIndex))) { return this._AreaSeriesComponent_0_3.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
if (this._AreaSeriesComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange)) { this.compView_0.markAsCheckOnce(); }
this.compView_0.internalDetectChanges(throwOnChange);
}
destroyInternal():void {
this.compView_0.destroy();
this._AreaSeriesComponent_0_3.ngOnDestroy();
}
visitRootNodesInternal(cb:any,ctx:any):void {
cb(this._el_0,ctx);
}
}
export const AreaSeriesComponentNgFactory:import8.ComponentFactory<import0.AreaSeriesComponent> = new import8.ComponentFactory<import0.AreaSeriesComponent>('g[ngx-charts-area-series]',View_AreaSeriesComponent_Host0,import0.AreaSeriesComponent);
const styles_AreaSeriesComponent:any[] = ([] as any[]);
var renderType_AreaSeriesComponent:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,styles_AreaSeriesComponent,{});
export class View_AreaSeriesComponent0 extends import2.AppView<import0.AreaSeriesComponent> {
_text_0:any;
_el_1:any;
compView_1:import2.AppView<import9.AreaComponent>;
_AreaComponent_1_3:import10.Wrapper_AreaComponent;
_text_2:any;
/*private*/ _expr_5:any;
/*private*/ _expr_6:any;
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) {
super(View_AreaSeriesComponent0,renderType_AreaSeriesComponent,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckOnce);
this._expr_5 = import1.UNINITIALIZED;
this._expr_6 = import1.UNINITIALIZED;
}
createInternal(rootSelector:string):import8.ComponentRef<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,':svg:g',new import3.InlineArray4(4,'class','area-series','ngx-charts-area',''),(null as any));
this.compView_1 = new import10.View_AreaComponent0(this.viewUtils,this,1,this._el_1);
this._AreaComponent_1_3 = new import10.Wrapper_AreaComponent(new import11.ElementRef(this._el_1));
this.compView_1.create(this._AreaComponent_1_3.context);
this._text_2 = this.renderer.createText(parentRenderNode,'\n ',(null as any));
this.init((null as any),((<any>this.renderer).directRenderer? (null as any): [
this._text_0,
this._el_1,
this._text_2
]
),(null as any));
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
if (((token === import9.AreaComponent) && (1 === requestNodeIndex))) { return this._AreaComponent_1_3.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
const currVal_1_0_0:any = this.context.data;
this._AreaComponent_1_3.check_data(currVal_1_0_0,throwOnChange,false);
const currVal_1_0_1:any = this.context.path;
this._AreaComponent_1_3.check_path(currVal_1_0_1,throwOnChange,false);
const currVal_1_0_2:any = this.context.startingPath;
this._AreaComponent_1_3.check_startingPath(currVal_1_0_2,throwOnChange,false);
const currVal_1_0_3:any = this.context.colors.getColor(this.context.data.name);
this._AreaComponent_1_3.check_fill(currVal_1_0_3,throwOnChange,false);
const currVal_1_0_4:any = this.context.opacity;
this._AreaComponent_1_3.check_opacity(currVal_1_0_4,throwOnChange,false);
const currVal_1_0_5:any = (this.context.gradient || this.context.hasGradient);
this._AreaComponent_1_3.check_gradient(currVal_1_0_5,throwOnChange,false);
const currVal_1_0_6:any = this.context.gradientStops;
this._AreaComponent_1_3.check_stops(currVal_1_0_6,throwOnChange,false);
if (this._AreaComponent_1_3.ngDoCheck(this,this._el_1,throwOnChange)) { this.compView_1.markAsCheckOnce(); }
const currVal_5:any = this.context.isActive(this.context.data);
if (import3.checkBinding(throwOnChange,this._expr_5,currVal_5)) {
this.renderer.setElementClass(this._el_1,'active',currVal_5);
this._expr_5 = currVal_5;
}
const currVal_6:any = this.context.isInactive(this.context.data);
if (import3.checkBinding(throwOnChange,this._expr_6,currVal_6)) {
this.renderer.setElementClass(this._el_1,'inactive',currVal_6);
this._expr_6 = currVal_6;
}
this.compView_1.internalDetectChanges(throwOnChange);
}
destroyInternal():void {
this.compView_1.destroy();
this._AreaComponent_1_3.ngOnDestroy();
}
}