import { ComponentRef, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from '@angular/core'; import { MatDialogRef } from '@angular/material/dialog'; import { ModalType } from '@ieeesa-npm/models'; import { ToggleButton } from '../../models/toggle-button.model'; import { Subject } from 'rxjs'; import * as i0 from "@angular/core"; /** * This component encapsulates the functionality of a modal dialog and implements reusable contents part of the modal components such as text content, loading another component into the modal and emitting modal events to consumed component. * It utilizes Angular Material's MatDialog module to display the modal dialog. * @usageNotes -Pass ModalComponent and data options as parameters to MatDialog open method as given below this.dialog.open(ConfirmationDialogComponent, {data: {}}) * @class ModalComponent */ export declare class ModalComponent implements OnInit, OnDestroy { dialogRef: MatDialogRef; modalData: any; componentContainer: ViewContainerRef; destroy$: Subject; componentRef: ComponentRef; formSubmit: EventEmitter; submitFormResponse: EventEmitter; formCancel: EventEmitter; toggleButtonClicked: EventEmitter; isComponentLoaded: boolean; heading: string; subHeading: string; promptMessage: string; leftButtonLabel: string; rightButtonLabel: string; /** Optional back-button label shown at the top of the title row (before the * heading). When set, a back button is rendered and clicking it emits * `backClick`. Leave unset to render no back button (default). */ backButtonLabel: string; /** Emits when the optional back button is clicked. */ backClick: EventEmitter; /** Optional typography class for the heading. Defaults to the large title * (`ieeesa-headline-lg-32`); pass a smaller class (e.g. `ieeesa-title-sm-14`) * for a compact breadcrumb-style title. */ headingClass: string; closeAriaLabel: string; toggleButtons: ToggleButton[]; componentReference: any; modalType: ModalType; isCloseNeeded: boolean; modalConfirm: EventEmitter; canCloseModal: boolean; componentData: any; constructor(dialogRef: MatDialogRef, modalData: any); /** * Initializes the component. * @return -returns nothing */ ngOnInit(): void; /** * Emit onToggleButtonClicked event when a toggle button is selected. * @param {ToggleButton} selected -Selected toggle button object. */ onToggleButtonSelect(selected: ToggleButton): void; /** * Loads the component into the view container. */ loadComponent(): void; /** * Emits the backClick event when the optional back button is clicked. * @memberof ModalComponent */ onBackClick(): void; /** * Handles the confirmation event. * @param {boolean} value - The confirmation value. */ onConfirm(value: boolean): void; /** * Closes modal based on canCloseModal and emits an event. * @param {boolean} value * @memberof ModalComponent */ onModalClose(value: boolean): void; /** * Returns dialog type * @return {number} value-Dialog type enum */ getModalType(): boolean; /** * Cleans up resources when the component is destroyed. */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }