UNPKG

@swimlane/ngx-charts

Version:

Declarative Charting Framework for Angular2 and beyond!

289 lines (288 loc) 13.8 kB
/** * @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/common/timeline.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 '@angular/core/src/linker/element_ref'; import * as import10 from '@angular/core/src/zone/ng_zone'; export class Wrapper_Timeline { /*private*/ _eventHandler:Function; context:import0.Timeline; /*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; subscription1:any; constructor(p0:any,p1:any,p2:any) { this._changed = false; this._changes = {}; this.context = new import0.Timeline(p0,p1,p2); 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()); (this.subscription1 && this.subscription1.unsubscribe()); } check_view(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_0,currValue))) { this._changed = true; this.context.view = currValue; this._changes['view'] = new import1.SimpleChange(this._expr_0,currValue); this._expr_0 = currValue; } } check_state(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_1,currValue))) { this._changed = true; this.context.state = currValue; this._changes['state'] = new import1.SimpleChange(this._expr_1,currValue); this._expr_1 = currValue; } } check_results(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_2,currValue))) { this._changed = true; this.context.results = currValue; this._changes['results'] = new import1.SimpleChange(this._expr_2,currValue); this._expr_2 = currValue; } } check_scheme(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_3,currValue))) { this._changed = true; this.context.scheme = currValue; this._changes['scheme'] = new import1.SimpleChange(this._expr_3,currValue); this._expr_3 = currValue; } } check_customColors(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_4,currValue))) { this._changed = true; this.context.customColors = currValue; this._changes['customColors'] = new import1.SimpleChange(this._expr_4,currValue); this._expr_4 = currValue; } } check_legend(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_5,currValue))) { this._changed = true; this.context.legend = currValue; this._changes['legend'] = new import1.SimpleChange(this._expr_5,currValue); this._expr_5 = currValue; } } check_miniChart(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_6,currValue))) { this._changed = true; this.context.miniChart = currValue; this._changes['miniChart'] = new import1.SimpleChange(this._expr_6,currValue); this._expr_6 = currValue; } } check_autoScale(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_7,currValue))) { this._changed = true; this.context.autoScale = currValue; this._changes['autoScale'] = new import1.SimpleChange(this._expr_7,currValue); this._expr_7 = currValue; } } check_scaleType(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_8,currValue))) { this._changed = true; this.context.scaleType = currValue; this._changes['scaleType'] = new import1.SimpleChange(this._expr_8,currValue); this._expr_8 = currValue; } } check_height(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_9,currValue))) { this._changed = true; this.context.height = currValue; this._changes['height'] = 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,emit1:boolean):void { this._eventHandler = _eventHandler; if (emit0) { (this.subscription0 = this.context.select.subscribe(_eventHandler.bind(view,'select'))); } if (emit1) { (this.subscription1 = this.context.onDomainChange.subscribe(_eventHandler.bind(view,'onDomainChange'))); } } } var renderType_Timeline_Host:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,([] as any[]),{}); class View_Timeline_Host0 extends import2.AppView<any> { _el_0:any; compView_0:import2.AppView<import0.Timeline>; _Timeline_0_3:Wrapper_Timeline; constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) { super(View_Timeline_Host0,renderType_Timeline_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-timeline',''),rootSelector,(null as any)); this.compView_0 = new View_Timeline0(this.viewUtils,this,0,this._el_0); this._Timeline_0_3 = new Wrapper_Timeline(new import9.ElementRef(this._el_0),this.injectorGet(import10.NgZone,this.parentIndex),this.compView_0.ref); this.compView_0.create(this._Timeline_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._Timeline_0_3.context); } injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { if (((token === import0.Timeline) && (0 === requestNodeIndex))) { return this._Timeline_0_3.context; } return notFoundResult; } detectChangesInternal(throwOnChange:boolean):void { if (this._Timeline_0_3.ngDoCheck(this,this._el_0,throwOnChange)) { this.compView_0.markAsCheckOnce(); } this.compView_0.internalDetectChanges(throwOnChange); } destroyInternal():void { this.compView_0.destroy(); this._Timeline_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))) { } } } export const TimelineNgFactory:import8.ComponentFactory<import0.Timeline> = new import8.ComponentFactory<import0.Timeline>('g[ngx-charts-timeline]',View_Timeline_Host0,import0.Timeline); const styles_Timeline:any[] = ([] as any[]); var renderType_Timeline:import4.RenderComponentType = import3.createRenderComponentType('',1,import5.ViewEncapsulation.None,styles_Timeline,{}); export class View_Timeline0 extends import2.AppView<import0.Timeline> { _text_0:any; _el_1:any; _text_2:any; _el_3:any; _text_4:any; _el_5:any; _text_6:any; _text_7:any; _el_8:any; _text_9:any; _text_10:any; _text_11:any; _el_12:any; _text_13:any; _el_14:any; _text_15:any; _text_16:any; /*private*/ _expr_17:any; /*private*/ _expr_18:any; /*private*/ _expr_19:any; /*private*/ _expr_20:any; constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) { super(View_Timeline0,renderType_Timeline,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckOnce); this._expr_17 = import1.UNINITIALIZED; this._expr_18 = import1.UNINITIALIZED; this._expr_19 = import1.UNINITIALIZED; this._expr_20 = 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.InlineArray2(2,'class','timeline'),(null as any)); this._text_2 = this.renderer.createText(this._el_1,'\n ',(null as any)); this._el_3 = import3.createRenderElement(this.renderer,this._el_1,':svg:filter',import3.EMPTY_INLINE_ARRAY,(null as any)); this._text_4 = this.renderer.createText(this._el_3,'\n ',(null as any)); this._el_5 = import3.createRenderElement(this.renderer,this._el_3,':svg:feColorMatrix',new import3.InlineArray8(6,'in','SourceGraphic','type','matrix','values','0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'),(null as any)); this._text_6 = this.renderer.createText(this._el_3,'\n ',(null as any)); this._text_7 = this.renderer.createText(this._el_1,'\n ',(null as any)); this._el_8 = import3.createRenderElement(this.renderer,this._el_1,':svg:g',new import3.InlineArray2(2,'class','embedded-chart'),(null as any)); this._text_9 = this.renderer.createText(this._el_8,'\n ',(null as any)); this.projectNodes(this._el_8,0); this._text_10 = this.renderer.createText(this._el_8,'\n ',(null as any)); this._text_11 = this.renderer.createText(this._el_1,'\n ',(null as any)); this._el_12 = import3.createRenderElement(this.renderer,this._el_1,':svg:rect',new import3.InlineArray8(6,'class','brush-background','x','0','y','0'),(null as any)); this._text_13 = this.renderer.createText(this._el_1,'\n ',(null as any)); this._el_14 = import3.createRenderElement(this.renderer,this._el_1,':svg:g',new import3.InlineArray2(2,'class','brush'),(null as any)); this._text_15 = this.renderer.createText(this._el_1,'\n ',(null as any)); this._text_16 = 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, this._el_3, this._text_4, this._el_5, this._text_6, this._text_7, this._el_8, this._text_9, this._text_10, this._text_11, this._el_12, this._text_13, this._el_14, this._text_15, this._text_16 ] ),(null as any)); return (null as any); } detectChangesInternal(throwOnChange:boolean):void { const currVal_17:any = this.context.transform; if (import3.checkBinding(throwOnChange,this._expr_17,currVal_17)) { this.renderer.setElementAttribute(this._el_1,'transform',((currVal_17 == null)? (null as any): currVal_17.toString())); this._expr_17 = currVal_17; } const currVal_18:any = this.context.filterId; if (import3.checkBinding(throwOnChange,this._expr_18,currVal_18)) { this.renderer.setElementAttribute(this._el_3,'id',((currVal_18 == null)? (null as any): currVal_18.toString())); this._expr_18 = currVal_18; } const currVal_19:any = this.context.view[0]; if (import3.checkBinding(throwOnChange,this._expr_19,currVal_19)) { this.renderer.setElementAttribute(this._el_12,'width',((currVal_19 == null)? (null as any): currVal_19.toString())); this._expr_19 = currVal_19; } const currVal_20:any = this.context.height; if (import3.checkBinding(throwOnChange,this._expr_20,currVal_20)) { this.renderer.setElementAttribute(this._el_12,'height',((currVal_20 == null)? (null as any): currVal_20.toString())); this._expr_20 = currVal_20; } } }