import { ComponentType } from '@angular/cdk/portal'; import { TemplateRef } from '@angular/core'; import { MatDialog, MatDialogRef } from '@angular/material/dialog'; import { BehaviorSubject, Observable } from 'rxjs'; import { DejaPopupAdvancedComponent } from '../component/popup-advanced/popup-advanced.component'; import { DejaPopupAction } from '../model/popup-action.model'; import { DejaPopupBase } from '../model/popup-base.class'; import { DejaPopupConfig } from '../model/popup-config.model'; import { DejaPopupReponse } from '../model/popup-response.model'; import * as i0 from "@angular/core"; export declare class DejaPopupService extends MatDialog { defaultActionComponent: ComponentType; get openDialogs(): MatDialogRef[]; private _dialogCom$; get dejaPopupCom$(): BehaviorSubject; /** * Displays a modal dialog, with the given buttons. * @param title * @param message * @param buttons types de DpiButton * @param customComponent Custom Component that must extend DpiDialogComponent. * @param data Données que l'on peux passer au Dialog * @return La réponse du dialog sous forme d'un Observable */ openInline(title: string, content: string, buttons: DejaPopupAction[], config?: DejaPopupConfig): Observable; openCustom(customComponent: ComponentType | TemplateRef, config?: DejaPopupConfig): Observable; openUrl(url: string, config?: DejaPopupConfig): Observable; openAdvanced(config?: DejaPopupConfig): MatDialogRef; openAdvanced$(config?: DejaPopupConfig): Observable; openPopUp(config?: DejaPopupConfig): Observable; /** * Opens a modal dialog containing the given component. * @param componentOrTemplateRef Type of the component to load into the dialog, * or a TemplateRef to instantiate as the dialog content. * @param config Extra configuration options. * @returns Reference to the newly-opened dialog. */ open(componentOrTemplateRef: ComponentType | TemplateRef, config: DejaPopupConfig): MatDialogRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }