import * as i1 from '@angular/cdk/overlay'; import { Overlay, OverlayRef, OverlayConfig, ComponentType as ComponentType$1 } from '@angular/cdk/overlay'; import * as i0 from '@angular/core'; import { Injector, ComponentRef, InjectionToken } from '@angular/core'; import { ComponentType } from '@angular/cdk/portal'; import { Observable, Subject, Subscription } from 'rxjs'; import * as _lucca_front_ng_popup from '@lucca-front/ng/popup'; interface ILuPopupConfig { position?: 'center' | 'top' | 'bottom' | 'left' | 'right'; noBackdrop?: boolean; /** popup dismisses if `esc` is pressed or backdrop is clicked, set it to true if you want to prevent it but be aware that your popup might become unclosable */ undismissable?: boolean; backdropClass?: string | string[]; panelClass?: string | string[]; size?: string; } declare const luDefaultPopupConfig: ILuPopupConfig; interface ILuPopupRef { onOpen: Observable; onClose: Observable; onDismiss: Observable; onBackdropClick: Observable; open(data: D): void; close(result: R): void; dismiss(): void; } interface ILuPopupRefFactory { forge(component: ComponentType, config: C): ILuPopupRef; } declare abstract class ALuPopupRef implements ILuPopupRef { protected _overlay: Overlay; protected _injector: Injector; protected _component: ComponentType; protected _config: C; onOpen: Subject; onClose: Subject; onDismiss: Subject; onBackdropClick: Subject; protected _overlayRef: OverlayRef; protected _componentRef: ComponentRef; protected _subs: Subscription; constructor(_overlay: Overlay, _injector: Injector, _component: ComponentType, _config: C); open(data?: D): void; close(result?: R): void; dismiss(): void; /** * This method creates the overlay from the provided popover's template and saves its * OverlayRef so that it can be attached to the DOM when openPopover is called. */ protected _createOverlay(): void; /** * This method builds the configuration object needed to create the overlay, the OverlayConfig. * @returns OverlayConfig */ protected _getOverlayConfig(): OverlayConfig; protected _openPopup(data?: D): void; protected _getOverlayPanelClasses(): string[]; protected _destroy(): void; protected _completeSubjects(): void; protected _destroyOverlay(): void; protected _closePopup(): void; protected _subToCloseEvents(): void; protected _subToEscapeKeydownEvent(): void; protected _subToBackdropClickEvent(): void; protected _cleanSubscription(): void; } declare class LuPopupRef extends ALuPopupRef { protected _overlay: Overlay; protected _injector: Injector; protected _component: ComponentType$1; protected _config: ILuPopupConfig; constructor(_overlay: Overlay, _injector: Injector, _component: ComponentType$1, _config: ILuPopupConfig); } declare class LuPopupRefFactory implements ILuPopupRefFactory { protected _overlay: Overlay; protected _injector: Injector; constructor(_overlay: Overlay, _injector: Injector); forge(component: ComponentType$1, config: ILuPopupConfig): LuPopupRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * @deprecated use `OverlayModule` imports && `LuPopup, { provide: LU_POPUP_CONFIG, useValue: luDefaultPopupConfig }, { provide: LU_POPUP_REF_FACTORY, useClass: LuPopupRefFactory }` providers instead */ declare class LuPopupModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class LuPopup { protected _factory: _lucca_front_ng_popup.ILuPopupRefFactory; protected _config: ILuPopupConfig; open(component: ComponentType$1, data?: D, config?: Partial): ILuPopupRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const LU_POPUP_REF_FACTORY: InjectionToken>; /** Injection token that can be used to access the data that was passed in to a dialog. */ declare const LU_POPUP_DATA: InjectionToken; declare const LU_POPUP_CONFIG: InjectionToken; export { ALuPopupRef, LU_POPUP_CONFIG, LU_POPUP_DATA, LU_POPUP_REF_FACTORY, LuPopup, LuPopupModule, LuPopupRef, LuPopupRefFactory, luDefaultPopupConfig }; export type { ILuPopupConfig, ILuPopupRef, ILuPopupRefFactory };