ÿØÿà JFIF ` ` ÿþ
|
Server : Apache System : Linux cloud.heroica.com.br 4.18.0-553.36.1.el8_10.x86_64 #1 SMP Wed Jan 22 03:07:54 EST 2025 x86_64 User : farolpborg ( 1053) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /var/www/node_services/datajud/frontend/node_modules/@restart/ui/esm/ |
Upload File : |
export interface ModalInstance {
dialog: Element;
backdrop: Element;
}
export interface ModalManagerOptions {
ownerDocument?: Document;
handleContainerOverflow?: boolean;
isRTL?: boolean;
}
export type ContainerState = {
scrollBarWidth: number;
style: Record<string, any>;
[key: string]: any;
};
export declare const OPEN_DATA_ATTRIBUTE: "data-rr-ui-modal-open";
/**
* Manages a stack of Modals as well as ensuring
* body scrolling is is disabled and padding accounted for
*/
declare class ModalManager {
readonly handleContainerOverflow: boolean;
readonly isRTL: boolean;
readonly modals: ModalInstance[];
protected state: ContainerState;
protected ownerDocument: Document | undefined;
constructor({ ownerDocument, handleContainerOverflow, isRTL, }?: ModalManagerOptions);
getScrollbarWidth(): number;
getElement(): HTMLElement;
setModalAttributes(_modal: ModalInstance): void;
removeModalAttributes(_modal: ModalInstance): void;
setContainerStyle(containerState: ContainerState): void;
reset(): void;
removeContainerStyle(containerState: ContainerState): void;
add(modal: ModalInstance): number;
remove(modal: ModalInstance): void;
isTopModal(modal: ModalInstance): boolean;
}
export default ModalManager;