UNPKG

@hxui/angular

Version:

An Angular library based on the [HXUI design system](https://hxui.io).

33 lines (32 loc) 1.27 kB
import { ViewContainerRef, Injector, ComponentRef, ComponentFactoryResolver } from '@angular/core'; import { FocusTrapFactory } from '@angular/cdk/a11y'; import * as i0 from "@angular/core"; export declare class ModalService { private componentFactoryResolver; private focusTrapFactory; private document; private vcRef; private injector; private backdropRef; private elementFocusedBeforeDialogWasOpened; private componentRef; private componentNativeElement; private focusTrap; constructor(componentFactoryResolver: ComponentFactoryResolver, focusTrapFactory: FocusTrapFactory, document: any); registerViewContainerRef(vcRef: ViewContainerRef): void; registerInjector(injector: Injector): void; /** * Create component dynamically */ create<T>(component: any, parameters?: Object): ComponentRef<T>; close(): void; /** * Load dynamic component and return componentRef */ private dynamicComponentLoader; private trapFocus; private restoreFocus; private savePreviouslyFocusedElement; static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, [null, null, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>; }