@swimlane/ngx-charts
Version:
Declarative Charting Framework for Angular2 and beyond!
250 lines (249 loc) • 12.9 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/common/grid-panel-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 '@angular/core/src/linker/view_container';
import * as import10 from '../../node_modules/@angular/common/src/directives/ng_for.ngfactory';
import * as import11 from '@angular/core/src/linker/template_ref';
import * as import12 from '@angular/core/src/change_detection/differs/iterable_differs';
import * as import13 from '@angular/common/src/directives/ng_for';
import * as import14 from '../../../src/common/grid-panel.component';
import * as import15 from './grid-panel.component.ngfactory';
export class Wrapper_GridPanelSeriesComponent {
/*private*/ _eventHandler:Function;
context:import0.GridPanelSeriesComponent;
/*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;
constructor() {
this._changed = false;
this._changes = {};
this.context = new import0.GridPanelSeriesComponent();
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;
}
ngOnDetach(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any):void {
}
ngOnDestroy():void {
}
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_dims(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_1,currValue))) {
this._changed = true;
this.context.dims = currValue;
this._changes['dims'] = new import1.SimpleChange(this._expr_1,currValue);
this._expr_1 = currValue;
}
}
check_xScale(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_2,currValue))) {
this._changed = true;
this.context.xScale = currValue;
this._changes['xScale'] = new import1.SimpleChange(this._expr_2,currValue);
this._expr_2 = currValue;
}
}
check_yScale(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_3,currValue))) {
this._changed = true;
this.context.yScale = currValue;
this._changes['yScale'] = new import1.SimpleChange(this._expr_3,currValue);
this._expr_3 = currValue;
}
}
check_orient(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_4,currValue))) {
this._changed = true;
this.context.orient = currValue;
this._changes['orient'] = new import1.SimpleChange(this._expr_4,currValue);
this._expr_4 = 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):void {
this._eventHandler = _eventHandler;
}
}
var renderType_GridPanelSeriesComponent_Host:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,([] as any[]),{});
class View_GridPanelSeriesComponent_Host0 extends import2.AppView<any> {
_el_0:any;
compView_0:import2.AppView<import0.GridPanelSeriesComponent>;
_GridPanelSeriesComponent_0_3:Wrapper_GridPanelSeriesComponent;
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) {
super(View_GridPanelSeriesComponent_Host0,renderType_GridPanelSeriesComponent_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-grid-panel-series',''),rootSelector,(null as any));
this.compView_0 = new View_GridPanelSeriesComponent0(this.viewUtils,this,0,this._el_0);
this._GridPanelSeriesComponent_0_3 = new Wrapper_GridPanelSeriesComponent();
this.compView_0.create(this._GridPanelSeriesComponent_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._GridPanelSeriesComponent_0_3.context);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
if (((token === import0.GridPanelSeriesComponent) && (0 === requestNodeIndex))) { return this._GridPanelSeriesComponent_0_3.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
if (this._GridPanelSeriesComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange)) { this.compView_0.markAsCheckOnce(); }
this.compView_0.internalDetectChanges(throwOnChange);
}
destroyInternal():void {
this.compView_0.destroy();
}
visitRootNodesInternal(cb:any,ctx:any):void {
cb(this._el_0,ctx);
}
}
export const GridPanelSeriesComponentNgFactory:import8.ComponentFactory<import0.GridPanelSeriesComponent> = new import8.ComponentFactory<import0.GridPanelSeriesComponent>('g[ngx-charts-grid-panel-series]',View_GridPanelSeriesComponent_Host0,import0.GridPanelSeriesComponent);
const styles_GridPanelSeriesComponent:any[] = ([] as any[]);
var renderType_GridPanelSeriesComponent:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,styles_GridPanelSeriesComponent,{});
export class View_GridPanelSeriesComponent0 extends import2.AppView<import0.GridPanelSeriesComponent> {
_text_0:any;
_anchor_1:any;
/*private*/ _vc_1:import9.ViewContainer;
_TemplateRef_1_5:any;
_NgFor_1_6:import10.Wrapper_NgFor;
_text_2:any;
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) {
super(View_GridPanelSeriesComponent0,renderType_GridPanelSeriesComponent,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckOnce);
}
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._anchor_1 = this.renderer.createTemplateAnchor(parentRenderNode,(null as any));
this._vc_1 = new import9.ViewContainer(1,(null as any),this,this._anchor_1);
this._TemplateRef_1_5 = new import11.TemplateRef_(this,1,this._anchor_1);
this._NgFor_1_6 = new import10.Wrapper_NgFor(this._vc_1.vcRef,this._TemplateRef_1_5,this.parentView.injectorGet(import12.IterableDiffers,this.parentIndex),this.ref);
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._anchor_1,
this._text_2
]
),(null as any));
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
if (((token === import11.TemplateRef) && (1 === requestNodeIndex))) { return this._TemplateRef_1_5; }
if (((token === import13.NgFor) && (1 === requestNodeIndex))) { return this._NgFor_1_6.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
const currVal_1_0_0:any = this.context.gridPanels;
this._NgFor_1_6.check_ngForOf(currVal_1_0_0,throwOnChange,false);
this._NgFor_1_6.ngDoCheck(this,this._anchor_1,throwOnChange);
this._vc_1.detectChangesInNestedViews(throwOnChange);
}
destroyInternal():void {
this._vc_1.destroyNestedViews();
}
createEmbeddedViewInternal(nodeIndex:number):import2.AppView<any> {
if ((nodeIndex == 1)) { return new View_GridPanelSeriesComponent1(this.viewUtils,this,1,this._anchor_1,this._vc_1); }
return (null as any);
}
}
class View_GridPanelSeriesComponent1 extends import2.AppView<any> {
_el_0:any;
compView_0:import2.AppView<import14.GridPanelComponent>;
_GridPanelComponent_0_3:import15.Wrapper_GridPanelComponent;
_text_1:any;
/*private*/ _expr_4:any;
/*private*/ _expr_5:any;
/*private*/ _expr_6:any;
constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any,declaredViewContainer:import9.ViewContainer) {
super(View_GridPanelSeriesComponent1,renderType_GridPanelSeriesComponent,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,declaredViewContainer);
this._expr_4 = import1.UNINITIALIZED;
this._expr_5 = import1.UNINITIALIZED;
this._expr_6 = import1.UNINITIALIZED;
}
createInternal(rootSelector:string):import8.ComponentRef<any> {
this._el_0 = import3.createRenderElement(this.renderer,(null as any),':svg:g',new import3.InlineArray2(2,'ngx-charts-grid-panel',''),(null as any));
this.compView_0 = new import15.View_GridPanelComponent0(this.viewUtils,this,0,this._el_0);
this._GridPanelComponent_0_3 = new import15.Wrapper_GridPanelComponent();
this._text_1 = this.renderer.createText((null as any),'\n ',(null as any));
this.compView_0.create(this._GridPanelComponent_0_3.context);
this.init(this._el_0,((<any>this.renderer).directRenderer? (null as any): [
this._el_0,
this._text_1
]
),(null as any));
return (null as any);
}
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
if (((token === import14.GridPanelComponent) && ((0 <= requestNodeIndex) && (requestNodeIndex <= 1)))) { return this._GridPanelComponent_0_3.context; }
return notFoundResult;
}
detectChangesInternal(throwOnChange:boolean):void {
const currVal_0_0_0:any = this.context.$implicit.width;
this._GridPanelComponent_0_3.check_width(currVal_0_0_0,throwOnChange,false);
const currVal_0_0_1:any = this.context.$implicit.height;
this._GridPanelComponent_0_3.check_height(currVal_0_0_1,throwOnChange,false);
const currVal_0_0_2:any = this.context.$implicit.x;
this._GridPanelComponent_0_3.check_x(currVal_0_0_2,throwOnChange,false);
const currVal_0_0_3:any = this.context.$implicit.y;
this._GridPanelComponent_0_3.check_y(currVal_0_0_3,throwOnChange,false);
if (this._GridPanelComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange)) { this.compView_0.markAsCheckOnce(); }
const currVal_4:any = true;
if (import3.checkBinding(throwOnChange,this._expr_4,currVal_4)) {
this.renderer.setElementClass(this._el_0,'grid-panel',currVal_4);
this._expr_4 = currVal_4;
}
const currVal_5:any = (this.context.$implicit.class === 'odd');
if (import3.checkBinding(throwOnChange,this._expr_5,currVal_5)) {
this.renderer.setElementClass(this._el_0,'odd',currVal_5);
this._expr_5 = currVal_5;
}
const currVal_6:any = (this.context.$implicit.class === 'even');
if (import3.checkBinding(throwOnChange,this._expr_6,currVal_6)) {
this.renderer.setElementClass(this._el_0,'even',currVal_6);
this._expr_6 = currVal_6;
}
this.compView_0.internalDetectChanges(throwOnChange);
}
destroyInternal():void {
this.compView_0.destroy();
}
visitRootNodesInternal(cb:any,ctx:any):void {
cb(this._el_0,ctx);
}
}