UNPKG

novo-elements

Version:

Bullhorn's NOVO Element Repository for Angular 2

83 lines (82 loc) 3.23 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/elements/drawer/Drawer'; 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'; export class Wrapper_NovoDrawerElement { /*private*/ _eventHandler:Function; context:import0.NovoDrawerElement; /*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) { this._changed = false; this.context = new import0.NovoDrawerElement(p0); 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 { (this.subscription0 && this.subscription0.unsubscribe()); } check_autoClose(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_0,currValue))) { this._changed = true; this.context.autoClose = currValue; this._expr_0 = currValue; } } check_position(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_1,currValue))) { this._changed = true; this.context.position = currValue; this._expr_1 = currValue; } } check_isOpen(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_2,currValue))) { this._changed = true; this.context.isOpen = currValue; this._expr_2 = currValue; } } ngDoCheck(view:import2.AppView<any>,el:any,throwOnChange:boolean):boolean { var changed:any = this._changed; this._changed = false; if (!throwOnChange) { if ((view.numberOfChecks === 0)) { this.context.ngOnInit(); } } return changed; } checkHost(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any,throwOnChange:boolean):void { const currVal_3:any = true; if (import3.checkBinding(throwOnChange,this._expr_3,currVal_3)) { view.renderer.setElementClass(el,'drawer',currVal_3); this._expr_3 = currVal_3; } const currVal_4:any = this.context.isOpen; if (import3.checkBinding(throwOnChange,this._expr_4,currVal_4)) { view.renderer.setElementClass(el,'open',currVal_4); this._expr_4 = currVal_4; } } handleEvent(eventName:string,$event:any):boolean { var result:boolean = true; return result; } subscribe(view:import2.AppView<any>,_eventHandler:any,emit0:boolean):void { this._eventHandler = _eventHandler; if (emit0) { (this.subscription0 = this.context.onDrawerToggle.subscribe(_eventHandler.bind(view,'onDrawerToggle'))); } } }