sa-modals
Version:
Angular Modal Library: A versatile and accessible modal component for Angular applications, designed to enhance user experience with smooth animations and responsive design. This library leverages Angular's CDK to create dynamic overlays, ensuring seamles
39 lines (38 loc) • 2.02 kB
TypeScript
import { FocusTrapFactory } from '@angular/cdk/a11y';
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
import { HeaderComponent } from './components/header/header.component';
import { Overlay } from '@angular/cdk/overlay';
import { Subscription } from 'rxjs';
import { SaModalService } from './sa-modal.service';
import * as i0 from "@angular/core";
export declare class SaModalComponent implements AfterViewInit, OnDestroy {
private overlay;
private viewContainerRef;
private cdr;
private service;
private focusTrapFactory;
onPopState(event: PopStateEvent): void;
center: boolean;
extraClass: string;
saWidth: number;
hasBackdrop: boolean;
staticBackdrop: boolean;
closeWithESC: boolean;
onOpen: EventEmitter<any>;
onClose: EventEmitter<any>;
backdropClicked: EventEmitter<any>;
header: HeaderComponent;
contentRef: ElementRef;
overlayTemplate: TemplateRef<any>;
private overlayRef;
private focusTrap;
visible: boolean;
subscriptions: Subscription[];
constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef, service: SaModalService, focusTrapFactory: FocusTrapFactory);
ngAfterViewInit(): void;
open(): void;
close(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<SaModalComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SaModalComponent, "sa-modal", never, { "center": { "alias": "center"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "saWidth": { "alias": "saWidth"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "staticBackdrop": { "alias": "staticBackdrop"; "required": false; }; "closeWithESC": { "alias": "closeWithESC"; "required": false; }; }, { "onOpen": "onOpen"; "onClose": "onClose"; "backdropClicked": "backdropClicked"; }, ["header"], ["*"], false, never>;
}