/** * @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/core/components/formly.field'; import * as import1 from '@angular/core/src/change_detection/change_detection'; 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/linker/component_factory'; import * as import8 from '@angular/core/src/linker/element_ref'; import * as import9 from '../../../../src/core/services/formly.event.emitter'; import * as import10 from '../../../../src/core/services/formly.config'; import * as import11 from '@angular/core/src/linker/component_factory_resolver'; import * as import12 from '@angular/core/src/linker/query_list'; 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 '@angular/core/src/security'; export class Wrapper_FormlyField { /*private*/ _eventHandler:Function; context:import0.FormlyField; /*private*/ _changed:boolean; /*private*/ _expr_0:any; /*private*/ _expr_1:any; /*private*/ _expr_2:any; /*private*/ _expr_3:any; /*private*/ _expr_4:any; subscription0:any; constructor(p0:any,p1:any,p2:any,p3:any,p4:any) { this._changed = false; this.context = new import0.FormlyField(p0,p1,p2,p3,p4); 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,componentView:import2.AppView,el:any):void { } ngOnDestroy():void { (this.subscription0 && this.subscription0.unsubscribe()); } check_model(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_0,currValue))) { this._changed = true; this.context.model = currValue; this._expr_0 = currValue; } } check_form(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_1,currValue))) { this._changed = true; this.context.form = currValue; this._expr_1 = currValue; } } check_field(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_2,currValue))) { this._changed = true; this.context.field = currValue; this._expr_2 = currValue; } } check_options(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_3,currValue))) { this._changed = true; this.context.options = currValue; this._expr_3 = currValue; } } check_hide(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_4,currValue))) { this._changed = true; this.context.hide = currValue; this._expr_4 = currValue; } } ngDoCheck(view:import2.AppView,el:any,throwOnChange:boolean):boolean { var changed:any = this._changed; this._changed = false; if (!throwOnChange) { if ((view.numberOfChecks === 0)) { this.context.ngOnInit(); } this.context.ngDoCheck(); } return changed; } checkHost(view:import2.AppView,componentView:import2.AppView,el:any,throwOnChange:boolean):void { } handleEvent(eventName:string,$event:any):boolean { var result:boolean = true; return result; } subscribe(view:import2.AppView,_eventHandler:any,emit0:boolean):void { this._eventHandler = _eventHandler; if (emit0) { (this.subscription0 = this.context.modelChange.subscribe(_eventHandler.bind(view,'modelChange'))); } } } var renderType_FormlyField_Host:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,([] as any[]),{}); class View_FormlyField_Host0 extends import2.AppView { _el_0:any; compView_0:import2.AppView; _FormlyField_0_3:Wrapper_FormlyField; constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) { super(View_FormlyField_Host0,renderType_FormlyField_Host,import6.ViewType.HOST,viewUtils,parentView,parentIndex,parentElement,import1.ChangeDetectorStatus.CheckAlways); } createInternal(rootSelector:string):import7.ComponentRef { this._el_0 = import3.selectOrCreateRenderHostElement(this.renderer,'formly-field',import3.EMPTY_INLINE_ARRAY,rootSelector,(null as any)); this.compView_0 = new View_FormlyField0(this.viewUtils,this,0,this._el_0); this._FormlyField_0_3 = new Wrapper_FormlyField(new import8.ElementRef(this._el_0),this.injectorGet(import9.FormlyPubSub,this.parentIndex),this.renderer,this.injectorGet(import10.FormlyConfig,this.parentIndex),this.injectorGet(import11.ComponentFactoryResolver,this.parentIndex)); this.compView_0.create(this._FormlyField_0_3.context); this.init(this._el_0,((this.renderer).directRenderer? (null as any): [this._el_0]),(null as any)); return new import7.ComponentRef_(0,this,this._el_0,this._FormlyField_0_3.context); } injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { if (((token === import0.FormlyField) && (0 === requestNodeIndex))) { return this._FormlyField_0_3.context; } return notFoundResult; } detectChangesInternal(throwOnChange:boolean):void { this._FormlyField_0_3.ngDoCheck(this,this._el_0,throwOnChange); this.compView_0.detectChanges(throwOnChange); } destroyInternal():void { this.compView_0.destroy(); this._FormlyField_0_3.ngOnDestroy(); } visitRootNodesInternal(cb:any,ctx:any):void { cb(this._el_0,ctx); } } export const FormlyFieldNgFactory:import7.ComponentFactory = new import7.ComponentFactory('formly-field',View_FormlyField_Host0,import0.FormlyField); const styles_FormlyField:any[] = ([] as any[]); var renderType_FormlyField:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,styles_FormlyField,{}); export class View_FormlyField0 extends import2.AppView { _viewQuery_fieldComponent_0:import12.QueryList; _text_0:any; _anchor_1:any; /*private*/ _vc_1:import13.ViewContainer; _TemplateRef_1_5:any; _text_2:any; _anchor_3:any; /*private*/ _vc_3:import13.ViewContainer; _TemplateRef_3_5:any; _NgIf_3_6:import14.Wrapper_NgIf; _text_4:any; constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) { super(View_FormlyField0,renderType_FormlyField,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import1.ChangeDetectorStatus.CheckAlways); } createInternal(rootSelector:string):import7.ComponentRef { const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement); this._viewQuery_fieldComponent_0 = new import12.QueryList(); 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 import15.TemplateRef_(this,1,this._anchor_1); this._text_2 = this.renderer.createText(parentRenderNode,'\n ',(null as any)); this._anchor_3 = this.renderer.createTemplateAnchor(parentRenderNode,(null as any)); this._vc_3 = new import13.ViewContainer(3,(null as any),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(parentRenderNode,'\n ',(null as any)); this._viewQuery_fieldComponent_0.reset([this._vc_1.vcRef]); this.context.fieldComponent = this._viewQuery_fieldComponent_0.first; this.init((null as any),((this.renderer).directRenderer? (null as any): [ this._text_0, this._anchor_1, this._text_2, this._anchor_3, this._text_4 ] ),(null as any)); return (null as any); } injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { if (((token === import15.TemplateRef) && (1 === requestNodeIndex))) { return this._TemplateRef_1_5; } if (((token === import15.TemplateRef) && (3 === requestNodeIndex))) { return this._TemplateRef_3_5; } if (((token === import16.NgIf) && (3 === requestNodeIndex))) { return this._NgIf_3_6.context; } return notFoundResult; } detectChangesInternal(throwOnChange:boolean):void { const currVal_3_0_0:any = (this.context.field.template && !this.context.field.fieldGroup); this._NgIf_3_6.check_ngIf(currVal_3_0_0,throwOnChange,false); this._NgIf_3_6.ngDoCheck(this,this._anchor_3,throwOnChange); this._vc_1.detectChangesInNestedViews(throwOnChange); this._vc_3.detectChangesInNestedViews(throwOnChange); } destroyInternal():void { this._vc_1.destroyNestedViews(); this._vc_3.destroyNestedViews(); } createEmbeddedViewInternal(nodeIndex:number):import2.AppView { if ((nodeIndex == 1)) { return new View_FormlyField1(this.viewUtils,this,1,this._anchor_1,this._vc_1); } if ((nodeIndex == 3)) { return new View_FormlyField2(this.viewUtils,this,3,this._anchor_3,this._vc_3); } return (null as any); } } class View_FormlyField1 extends import2.AppView { _el_0:any; constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import13.ViewContainer) { super(View_FormlyField1,renderType_FormlyField,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import1.ChangeDetectorStatus.CheckAlways,declaredViewContainer); } createInternal(rootSelector:string):import7.ComponentRef { this._el_0 = this.renderer.createTemplateAnchor((null as any),(null as any)); this.init(this._el_0,((this.renderer).directRenderer? (null as any): ([] as any[])),(null as any)); return (null as any); } visitRootNodesInternal(cb:any,ctx:any):void { cb(this._el_0,ctx); } } class View_FormlyField2 extends import2.AppView { _el_0:any; /*private*/ _expr_1:any; constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import13.ViewContainer) { super(View_FormlyField2,renderType_FormlyField,import6.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import1.ChangeDetectorStatus.CheckAlways,declaredViewContainer); this._expr_1 = import1.UNINITIALIZED; } createInternal(rootSelector:string):import7.ComponentRef { this._el_0 = import3.createRenderElement(this.renderer,(null as any),'div',import3.EMPTY_INLINE_ARRAY,(null as any)); this.init(this._el_0,((this.renderer).directRenderer? (null as any): [this._el_0]),(null as any)); return (null as any); } detectChangesInternal(throwOnChange:boolean):void { const currVal_1:any = this.parentView.context.field.template; if (import3.checkBinding(throwOnChange,this._expr_1,currVal_1)) { this.renderer.setElementProperty(this._el_0,'innerHTML',this.viewUtils.sanitizer.sanitize(import17.SecurityContext.HTML,currVal_1)); this._expr_1 = currVal_1; } } visitRootNodesInternal(cb:any,ctx:any):void { cb(this._el_0,ctx); } }