novo-elements
Version:
Bullhorn's NOVO Element Repository for Angular 2
150 lines (149 loc) • 6.33 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/elements/popover/PopOver';
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_PopOverDirective {
/*private*/ _eventHandler:Function;
context:import0.PopOverDirective;
/*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;
/*private*/ _expr_5:any;
/*private*/ _expr_6:any;
/*private*/ _expr_7:any;
subscription0:any;
subscription1:any;
constructor(p0:any,p1:any) {
this._changed = false;
this._changes = {};
this.context = new import0.PopOverDirective(p0,p1);
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;
this._expr_5 = import1.UNINITIALIZED;
this._expr_6 = import1.UNINITIALIZED;
this._expr_7 = import1.UNINITIALIZED;
}
ngOnDetach(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any):void {
}
ngOnDestroy():void {
(this.subscription0 && this.subscription0.unsubscribe());
(this.subscription1 && this.subscription1.unsubscribe());
}
check_content(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_0,currValue))) {
this._changed = true;
this.context.content = currValue;
this._changes['content'] = new import1.SimpleChange(this._expr_0,currValue);
this._expr_0 = currValue;
}
}
check_popoverDisabled(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_1,currValue))) {
this._changed = true;
this.context.popoverDisabled = currValue;
this._changes['popoverDisabled'] = new import1.SimpleChange(this._expr_1,currValue);
this._expr_1 = currValue;
}
}
check_popoverAlways(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_2,currValue))) {
this._changed = true;
this.context.popoverAlways = currValue;
this._changes['popoverAlways'] = new import1.SimpleChange(this._expr_2,currValue);
this._expr_2 = currValue;
}
}
check_popoverAnimation(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_3,currValue))) {
this._changed = true;
this.context.popoverAnimation = currValue;
this._changes['popoverAnimation'] = new import1.SimpleChange(this._expr_3,currValue);
this._expr_3 = currValue;
}
}
check_popoverPlacement(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_4,currValue))) {
this._changed = true;
this.context.popoverPlacement = currValue;
this._changes['popoverPlacement'] = new import1.SimpleChange(this._expr_4,currValue);
this._expr_4 = currValue;
}
}
check_popoverTitle(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_5,currValue))) {
this._changed = true;
this.context.popoverTitle = currValue;
this._changes['popoverTitle'] = new import1.SimpleChange(this._expr_5,currValue);
this._expr_5 = currValue;
}
}
check_popoverOnHover(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_6,currValue))) {
this._changed = true;
this.context.popoverOnHover = currValue;
this._changes['popoverOnHover'] = new import1.SimpleChange(this._expr_6,currValue);
this._expr_6 = currValue;
}
}
check_popoverDismissTimeout(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_7,currValue))) {
this._changed = true;
this.context.popoverDismissTimeout = currValue;
this._changes['popoverDismissTimeout'] = new import1.SimpleChange(this._expr_7,currValue);
this._expr_7 = 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;
if ((eventName == 'click')) {
const pd_sub_0:any = ((<any>this.context.showOrHideOnClick()) !== false);
result = (pd_sub_0 && result);
}
if ((eventName == 'focusin')) {
const pd_sub_1:any = ((<any>this.context.showOnHover()) !== false);
result = (pd_sub_1 && result);
}
if ((eventName == 'mouseenter')) {
const pd_sub_2:any = ((<any>this.context.showOnHover()) !== false);
result = (pd_sub_2 && result);
}
if ((eventName == 'focusout')) {
const pd_sub_3:any = ((<any>this.context.hideOnHover()) !== false);
result = (pd_sub_3 && result);
}
if ((eventName == 'mouseleave')) {
const pd_sub_4:any = ((<any>this.context.hideOnHover()) !== false);
result = (pd_sub_4 && result);
}
return result;
}
subscribe(view:import2.AppView<any>,_eventHandler:any,emit0:boolean,emit1:boolean):void {
this._eventHandler = _eventHandler;
if (emit0) { (this.subscription0 = this.context.onShown.subscribe(_eventHandler.bind(view,'onShown'))); }
if (emit1) { (this.subscription1 = this.context.onHidden.subscribe(_eventHandler.bind(view,'onHidden'))); }
}
}