UNPKG

@skyux/modals

Version:

This library was generated with [Nx](https://nx.dev).

31 lines (30 loc) 1.23 kB
import { ElementRef } from '@angular/core'; import { SkyAppWindowRef } from '@skyux/core'; import * as i0 from "@angular/core"; /** * @internal */ export declare class SkyModalAdapterService { #private; private static readonly MODAL_BODY_FULL_CLASS; private static readonly MODAL_BODY_CLASS; constructor(windowRef: SkyAppWindowRef); toggleFullPageModalClass(isAddFull: boolean): void; setPageScroll(isAdd: boolean): void; getModalOpener(): HTMLElement; scrollContentToTop(element: ElementRef): void; /** * Hides siblings of modal-host from screen readers * @param hostElRef reference to modal-host element */ hideHostSiblingsFromScreenReaders(hostElRef: ElementRef): void; focusFirstElement(modalEl: ElementRef): void; /** * Restores modal-host siblings to screen reader status prior to modals being opened */ unhideOrRestoreHostSiblingsFromScreenReaders(): void; hidePreviousModalFromScreenReaders(topModal: ElementRef): void; unhidePreviousModalFromScreenReaders(topModal: ElementRef): void; static ɵfac: i0.ɵɵFactoryDeclaration<SkyModalAdapterService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<SkyModalAdapterService>; }