gentics-ui-core
Version:
This is the common core framework for the Gentics CMS and Mesh UI, and other Angular applications.
62 lines (61 loc) • 2.13 kB
TypeScript
import { AfterViewChecked, ComponentFactoryResolver, ComponentRef, OnDestroy, OnInit, Renderer2, Type, ViewContainerRef } from '@angular/core';
import { IModalDialog, IModalOptions } from './modal-interfaces';
import { UserAgentRef } from './user-agent-ref';
import * as i0 from "@angular/core";
/**
* This is an internal component which is responsible for creating the modal dialog window and overlay.
*/
export declare class DynamicModalWrapper implements OnInit, OnDestroy, AfterViewChecked {
private componentFactoryResolver;
private userAgent;
private renderer;
portal: ViewContainerRef;
isIE11: boolean;
dismissFn: Function;
modalElementsHeight: number;
visible: boolean;
options: IModalOptions;
private subscriptions;
private cmpRef;
private openTimer;
private modalHeightEvents$;
constructor(componentFactoryResolver: ComponentFactoryResolver, userAgent: UserAgentRef, renderer: Renderer2);
ngOnInit(): void;
ngOnDestroy(): void;
setOptions(options: IModalOptions): void;
/**
* Inject the component which will appear within the modal.
*/
injectContent(component: Type<IModalDialog>): ComponentRef<IModalDialog>;
/**
* Display the modal
*/
open(): void;
/**
* Programatically force the modal to close and resolve with the value passed.
*/
forceClose(val?: any): void;
/**
* Close the modal and call the cancelFn of the embedded component.
*/
cancel(): void;
overlayClick(): void;
keyHandler(e: KeyboardEvent): void;
/**
* IE11 Related fixes
*/
/**
* Listen for browsers size changes, to notify IE for modal height change
*/
onResize(): void;
/**
* Listen for content changes, to notify IE for modal height change
*/
ngAfterViewChecked(): void;
/**
* Fixes modal body height for IE11
*/
ie11FixContentHeight(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicModalWrapper, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicModalWrapper, "gtx-dynamic-modal", never, {}, {}, never, never>;
}