/** * @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/formly.validation-message'; 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 '../../../src/core/services/formly.validation-messages'; export class Wrapper_FormlyValidationMessage { /*private*/ _eventHandler:Function; context:import0.FormlyValidationMessage; /*private*/ _changed:boolean; /*private*/ _expr_0:any; /*private*/ _expr_1:any; constructor(p0:any) { this._changed = false; this.context = new import0.FormlyValidationMessage(p0); this._expr_0 = import1.UNINITIALIZED; this._expr_1 = import1.UNINITIALIZED; } ngOnDetach(view:import2.AppView,componentView:import2.AppView,el:any):void { } ngOnDestroy():void { } check_fieldForm(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_0,currValue))) { this._changed = true; this.context.fieldForm = currValue; this._expr_0 = currValue; } } check_field(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_1,currValue))) { this._changed = true; this.context.field = currValue; this._expr_1 = currValue; } } ngDoCheck(view:import2.AppView,el:any,throwOnChange:boolean):boolean { var changed:any = this._changed; this._changed = false; 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):void { this._eventHandler = _eventHandler; } } var renderType_FormlyValidationMessage_Host:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,([] as any[]),{}); class View_FormlyValidationMessage_Host0 extends import2.AppView { _el_0:any; compView_0:import2.AppView; _FormlyValidationMessage_0_3:Wrapper_FormlyValidationMessage; constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) { super(View_FormlyValidationMessage_Host0,renderType_FormlyValidationMessage_Host,import6.ViewType.HOST,viewUtils,parentView,parentIndex,parentElement,import1.ChangeDetectorStatus.CheckAlways); } createInternal(rootSelector:string):import7.ComponentRef { this._el_0 = import3.selectOrCreateRenderHostElement(this.renderer,'formly-validation-message',import3.EMPTY_INLINE_ARRAY,rootSelector,(null as any)); this.compView_0 = new View_FormlyValidationMessage0(this.viewUtils,this,0,this._el_0); this._FormlyValidationMessage_0_3 = new Wrapper_FormlyValidationMessage(this.injectorGet(import8.FormlyValidationMessages,this.parentIndex)); this.compView_0.create(this._FormlyValidationMessage_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._FormlyValidationMessage_0_3.context); } injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { if (((token === import0.FormlyValidationMessage) && (0 === requestNodeIndex))) { return this._FormlyValidationMessage_0_3.context; } return notFoundResult; } detectChangesInternal(throwOnChange:boolean):void { this._FormlyValidationMessage_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 FormlyValidationMessageNgFactory:import7.ComponentFactory = new import7.ComponentFactory('formly-validation-message',View_FormlyValidationMessage_Host0,import0.FormlyValidationMessage); const styles_FormlyValidationMessage:any[] = ([] as any[]); var renderType_FormlyValidationMessage:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,styles_FormlyValidationMessage,{}); export class View_FormlyValidationMessage0 extends import2.AppView { _text_0:any; /*private*/ _expr_1:any; constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView,parentIndex:number,parentElement:any) { super(View_FormlyValidationMessage0,renderType_FormlyValidationMessage,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import1.ChangeDetectorStatus.CheckAlways); this._expr_1 = import1.UNINITIALIZED; } createInternal(rootSelector:string):import7.ComponentRef { const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement); this._text_0 = this.renderer.createText(parentRenderNode,'',(null as any)); this.init((null as any),((this.renderer).directRenderer? (null as any): [this._text_0]),(null as any)); return (null as any); } detectChangesInternal(throwOnChange:boolean):void { const currVal_1:any = import3.inlineInterpolate(1,'',this.context.errorMessage,''); if (import3.checkBinding(throwOnChange,this._expr_1,currVal_1)) { this.renderer.setText(this._text_0,currVal_1); this._expr_1 = currVal_1; } } }