UNPKG

com.phloxui

Version:

PhloxUI Ng2+ Framework

96 lines (95 loc) 3.62 kB
import { OnInit, ElementRef, EventEmitter } from '@angular/core'; import { AbstractHasData } from './AbstractHasData'; import { IHasModel } from './IHasModel'; import { ComponentPopoverModel } from './model/models'; import { INeedFocus } from './INeedFocus'; import { IHasData } from './IHasData'; import { NeedFocusService } from '../service/NeedFocusService.service'; export declare class ComponentPopover extends AbstractHasData implements OnInit, IHasModel, INeedFocus { static readonly TYPE_NAME: string; static readonly LEFT: string; static readonly RIGHT: string; static readonly TOP: string; static readonly BOTTOM: string; protected dataParent: IHasData; protected ignoreParentData: boolean; protected data: any; protected ignoreParentDisabled: boolean; protected delegateHistory: boolean; protected onDisabled: Function; protected onEnabled: Function; protected loadingEnabled: boolean; protected i18nKey: string; protected bypass: boolean; protected options: any; protected disabled: boolean; private styleClasses; protected model: ComponentPopoverModel; protected position: string; protected anchor: string; protected autoFocus: boolean; protected hideOnClick: boolean; protected componentHandler: Function; private ARROW_GAP; private MIN_HEIGHT; protected loadEvent: EventEmitter<any>; protected beforeShowEvent: EventEmitter<any>; protected showEvent: EventEmitter<any>; protected beforeHideEvent: EventEmitter<any>; protected hideEvent: EventEmitter<any>; private _show; private defaultArrowTop; private compoWrapInstance; private needFocusService; private nativeElement; private _popoverWidth; private _popoverHeight; private _compClicked; _componentHandler: Function; constructor(elementRef: ElementRef, needFocusService: NeedFocusService); ngOnInit(): void; ngOnChanges(changes: any): void; private render(); private showPopover(isShow, $event?, fireEvent?); protected emitBeforeShowEvent($event?: any): void; protected emitShowEvent($event?: any): void; protected emitBeforeHideEvent($event?: any): void; protected emitHideEvent($event?: any): void; _doFocus($event: Event): void; _doLostFocus($event: Event): void; onFocus(event: any): void; onLostFocus(event: any): void; isModelEmpty(): boolean; setArrowTop(top: number): void; setArrowLeft(left: number): void; getPosition(): string; showAt(positionX: number, positionY: number, $event?: Event, fireEvent?: boolean): void; show($event?: Event, fireEvent?: boolean): void; hide($event?: Event, fireEvent?: boolean): void; getData(): any; setData(data: any): void; getModel(): any; setModel(model: any): void; isShow(): boolean; isSelfDataDirty(): boolean; selfSaveData(data: any): void; selfResetData(): void; getShowEvent(): EventEmitter<any>; setShowEvent(event: EventEmitter<any>): void; getHideEvent(): EventEmitter<any>; setHideEvent(event: EventEmitter<any>): void; setAutoFocus(autoFocus: boolean): void; isAutoFocus(): boolean; setHideOnClick(hideOnClick: boolean): void; isHideOnClick(): boolean; setComponentHandler(componentHandler: Function): void; getComponentHandler(): Function; getI18NKey(): string; doPreload(): Promise<any>; doLoaded(): void; getPopoverWidth(): string; getPopoverHeight(): string; isShowArrow(): boolean; getComponentInstance(): boolean; getStyleClasses(): string[]; }