/** * @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/ui-bootstrap/wrappers/message-validation'; import * as import1 from '@angular/core/src/linker/view'; import * as import2 from '@angular/core/src/render/api'; import * as import3 from '@angular/core/src/linker/view_utils'; import * as import4 from '@angular/core/src/metadata/view'; import * as import5 from '@angular/core/src/linker/view_type'; import * as import6 from '@angular/core/src/change_detection/change_detection'; import * as import7 from '@angular/core/src/linker/component_factory'; import * as import8 from '@angular/core/src/linker/query_list'; 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 import11 from '@angular/core/src/linker/template_ref'; import * as import12 from '@angular/common/src/directives/ng_if'; import * as import13 from '../../../../src/ui-bootstrap/formly.validation-message'; import * as import14 from '../formly.validation-message.ngfactory'; import * as import15 from '../../../../src/core/services/formly.validation-messages'; export class Wrapper_FormlyWrapperValidationMessages { /*private*/ _eventHandler:Function; context:import0.FormlyWrapperValidationMessages; /*private*/ _changed:boolean; constructor() { this._changed = false; this.context = new import0.FormlyWrapperValidationMessages(); } ngOnDetach(view:import1.AppView,componentView:import1.AppView,el:any):void { } ngOnDestroy():void { } ngDoCheck(view:import1.AppView,el:any,throwOnChange:boolean):boolean { var changed:any = this._changed; this._changed = false; return changed; } checkHost(view:import1.AppView,componentView:import1.AppView,el:any,throwOnChange:boolean):void { } handleEvent(eventName:string,$event:any):boolean { var result:boolean = true; return result; } subscribe(view:import1.AppView,_eventHandler:any):void { this._eventHandler = _eventHandler; } } var renderType_FormlyWrapperValidationMessages_Host:import2.RenderComponentType = import3.createRenderComponentType('',0,import4.ViewEncapsulation.None,([] as any[]),{}); class View_FormlyWrapperValidationMessages_Host0 extends import1.AppView { _el_0:any; compView_0:import1.AppView; _FormlyWrapperValidationMessages_0_3:Wrapper_FormlyWrapperValidationMessages; constructor(viewUtils:import3.ViewUtils,parentView:import1.AppView,parentIndex:number,parentElement:any) { super(View_FormlyWrapperValidationMessages_Host0,renderType_FormlyWrapperValidationMessages_Host,import5.ViewType.HOST,viewUtils,parentView,parentIndex,parentElement,import6.ChangeDetectorStatus.CheckAlways); } createInternal(rootSelector:string):import7.ComponentRef { this._el_0 = import3.selectOrCreateRenderHostElement(this.renderer,'formly-wrapper-validation-messages',import3.EMPTY_INLINE_ARRAY,rootSelector,(null as any)); this.compView_0 = new View_FormlyWrapperValidationMessages0(this.viewUtils,this,0,this._el_0); this._FormlyWrapperValidationMessages_0_3 = new Wrapper_FormlyWrapperValidationMessages(); this.compView_0.create(this._FormlyWrapperValidationMessages_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._FormlyWrapperValidationMessages_0_3.context); } injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { if (((token === import0.FormlyWrapperValidationMessages) && (0 === requestNodeIndex))) { return this._FormlyWrapperValidationMessages_0_3.context; } return notFoundResult; } detectChangesInternal(throwOnChange:boolean):void { this._FormlyWrapperValidationMessages_0_3.ngDoCheck(this,this._el_0,throwOnChange); this.compView_0.detectChanges(throwOnChange); } destroyInternal():void { this.compView_0.destroy(); } visitRootNodesInternal(cb:any,ctx:any):void { cb(this._el_0,ctx); } } export const FormlyWrapperValidationMessagesNgFactory:import7.ComponentFactory = new import7.ComponentFactory('formly-wrapper-validation-messages',View_FormlyWrapperValidationMessages_Host0,import0.FormlyWrapperValidationMessages); const styles_FormlyWrapperValidationMessages:any[] = ([] as any[]); var renderType_FormlyWrapperValidationMessages:import2.RenderComponentType = import3.createRenderComponentType('',0,import4.ViewEncapsulation.None,styles_FormlyWrapperValidationMessages,{}); export class View_FormlyWrapperValidationMessages0 extends import1.AppView { _viewQuery_fieldComponent_0:import8.QueryList; _text_0:any; _anchor_1:any; /*private*/ _vc_1:import9.ViewContainer; _TemplateRef_1_5:any; _text_2:any; _el_3:any; _text_4:any; _anchor_5:any; /*private*/ _vc_5:import9.ViewContainer; _TemplateRef_5_5:any; _NgIf_5_6:import10.Wrapper_NgIf; _text_6:any; _text_7:any; constructor(viewUtils:import3.ViewUtils,parentView:import1.AppView,parentIndex:number,parentElement:any) { super(View_FormlyWrapperValidationMessages0,renderType_FormlyWrapperValidationMessages,import5.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import6.ChangeDetectorStatus.CheckAlways); } createInternal(rootSelector:string):import7.ComponentRef { const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement); this._viewQuery_fieldComponent_0 = new import8.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 import9.ViewContainer(1,(null as any),this,this._anchor_1); this._TemplateRef_1_5 = new import11.TemplateRef_(this,1,this._anchor_1); this._text_2 = this.renderer.createText(parentRenderNode,'\n ',(null as any)); this._el_3 = import3.createRenderElement(this.renderer,parentRenderNode,'div',import3.EMPTY_INLINE_ARRAY,(null as any)); this._text_4 = this.renderer.createText(this._el_3,'\n ',(null as any)); this._anchor_5 = this.renderer.createTemplateAnchor(this._el_3,(null as any)); this._vc_5 = new import9.ViewContainer(5,3,this,this._anchor_5); this._TemplateRef_5_5 = new import11.TemplateRef_(this,5,this._anchor_5); this._NgIf_5_6 = new import10.Wrapper_NgIf(this._vc_5.vcRef,this._TemplateRef_5_5); this._text_6 = this.renderer.createText(this._el_3,'\n ',(null as any)); this._text_7 = 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._el_3, this._text_4, this._anchor_5, this._text_6, this._text_7 ] ),(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 === import11.TemplateRef) && (5 === requestNodeIndex))) { return this._TemplateRef_5_5; } if (((token === import12.NgIf) && (5 === requestNodeIndex))) { return this._NgIf_5_6.context; } return notFoundResult; } detectChangesInternal(throwOnChange:boolean):void { const currVal_5_0_0:any = this.context.valid; this._NgIf_5_6.check_ngIf(currVal_5_0_0,throwOnChange,false); this._NgIf_5_6.ngDoCheck(this,this._anchor_5,throwOnChange); this._vc_1.detectChangesInNestedViews(throwOnChange); this._vc_5.detectChangesInNestedViews(throwOnChange); } destroyInternal():void { this._vc_1.destroyNestedViews(); this._vc_5.destroyNestedViews(); } createEmbeddedViewInternal(nodeIndex:number):import1.AppView { if ((nodeIndex == 1)) { return new View_FormlyWrapperValidationMessages1(this.viewUtils,this,1,this._anchor_1,this._vc_1); } if ((nodeIndex == 5)) { return new View_FormlyWrapperValidationMessages2(this.viewUtils,this,5,this._anchor_5,this._vc_5); } return (null as any); } } class View_FormlyWrapperValidationMessages1 extends import1.AppView { _el_0:any; constructor(viewUtils:import3.ViewUtils,parentView:import1.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import9.ViewContainer) { super(View_FormlyWrapperValidationMessages1,renderType_FormlyWrapperValidationMessages,import5.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import6.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_FormlyWrapperValidationMessages2 extends import1.AppView { _el_0:any; _el_1:any; compView_1:import1.AppView; _FormlyValidationMessage_1_3:import14.Wrapper_FormlyValidationMessage; /*private*/ _expr_4:any; constructor(viewUtils:import3.ViewUtils,parentView:import1.AppView,parentIndex:number,parentElement:any,declaredViewContainer:import9.ViewContainer) { super(View_FormlyWrapperValidationMessages2,renderType_FormlyWrapperValidationMessages,import5.ViewType.EMBEDDED,viewUtils,parentView,parentIndex,parentElement,import6.ChangeDetectorStatus.CheckAlways,declaredViewContainer); this._expr_4 = import6.UNINITIALIZED; } createInternal(rootSelector:string):import7.ComponentRef { this._el_0 = import3.createRenderElement(this.renderer,(null as any),'small',new import3.InlineArray4(4,'class','text-muted text-danger','role','alert'),(null as any)); this._el_1 = import3.createRenderElement(this.renderer,this._el_0,'formly-validation-message',import3.EMPTY_INLINE_ARRAY,(null as any)); this.compView_1 = new import14.View_FormlyValidationMessage0(this.viewUtils,this,1,this._el_1); this._FormlyValidationMessage_1_3 = new import14.Wrapper_FormlyValidationMessage(this.parentView.parentView.injectorGet(import15.FormlyValidationMessages,this.parentView.parentIndex)); this.compView_1.create(this._FormlyValidationMessage_1_3.context); this.init(this._el_0,((this.renderer).directRenderer? (null as any): [ this._el_0, this._el_1 ] ),(null as any)); return (null as any); } injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { if (((token === import13.FormlyValidationMessage) && (1 === requestNodeIndex))) { return this._FormlyValidationMessage_1_3.context; } return notFoundResult; } detectChangesInternal(throwOnChange:boolean):void { const currVal_1_0_0:any = this.parentView.context.formControl; this._FormlyValidationMessage_1_3.check_fieldForm(currVal_1_0_0,throwOnChange,false); const currVal_1_0_1:any = this.parentView.context.field; this._FormlyValidationMessage_1_3.check_field(currVal_1_0_1,throwOnChange,false); this._FormlyValidationMessage_1_3.ngDoCheck(this,this._el_1,throwOnChange); const currVal_4:any = this.parentView.context.validationId; if (import3.checkBinding(throwOnChange,this._expr_4,currVal_4)) { this.renderer.setElementProperty(this._el_0,'id',currVal_4); this._expr_4 = currVal_4; } this.compView_1.detectChanges(throwOnChange); } destroyInternal():void { this.compView_1.destroy(); } visitRootNodesInternal(cb:any,ctx:any):void { cb(this._el_0,ctx); } }