UNPKG

@duoduo-oba/ng-devui

Version:

DevUI components based on Angular

38 lines (37 loc) 1.36 kB
import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core'; import { DocumentRef } from '@duoduo-oba/ng-devui/window-ref'; import { Observable, Subscription } from 'rxjs'; import { ModalContainerDirective } from './modal.directive'; export declare class ModalComponent implements OnInit, OnDestroy { private documentRef; private renderer; id: string; showAnimate: boolean; width: string; backdropCloseable: boolean; beforeHidden: () => boolean | Promise<boolean> | Observable<boolean>; draggable: boolean; placement: 'center' | 'top' | 'bottom'; offsetX: string; offsetY: string; bodyScrollable: boolean; modalContainerHost: ModalContainerDirective; dialogElement: ElementRef; animateState: string; draggableHandleEl: HTMLElement; mouseDwonEl: ElementRef; ignoreBackDropClick: boolean; pressEscToClose: Subscription; constructor(documentRef: DocumentRef, renderer: Renderer2); ngOnInit(): void; onAnimationDone(event: any): void; onHidden(): void; canHideModel(): Promise<boolean>; onModalClick: ($event: any) => void; modalMouseDown: ($event: any) => void; modalMouseUp: ($event: any) => void; hide(): void; show(): void; resolveTransformTranslate(): string; ngOnDestroy(): void; }