import { MatDialogRef } from '@angular/material/dialog'; import { CustomToastrService } from '../custom-toastr/services/custom-toastr.service'; import { ConfirmDialogComponent } from './confirm-dialog/confirm-dialog.component'; import * as i0 from "@angular/core"; /** * A material dialog confirm component that will ask the user for confirmation, * then shows a loader and execute a function and only close the dialog after the action is complete * * * ![screenshot-1](../screenshots/dialog.png) * * ### Usage Example * ~~~ts * let actionFunction = () => { * return this.someService.observableFunction(); * }; * return this.dialog * .open(ConfirmCallerDialogComponent, { * data: { * call: actionFunction, * title: 'path.to.title.translation', * toastrTitle: 'path.to.success.title', * toastrMsg: 'path.to.success.message', * }, * }) * .afterClosed() * .pipe(take(1)) * .subscribe((data) => { * if (data) { * // do something on success * } * }); * ~~~ * @title * Confirm dialog */ export declare class ConfirmCallerDialogComponent { data: any; dialogRef: MatDialogRef; private toastr; calling: boolean; constructor(data: any, dialogRef: MatDialogRef, toastr: CustomToastrService); makeCall(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }