1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

Bundled output for commit eaf1b86785

Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
This commit is contained in:
flarum-bot
2021-11-21 19:49:09 +00:00
parent eaf1b86785
commit 9117747d41
13 changed files with 93 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
import Component from '../Component';
import type Mithril from 'mithril';
import { FocusTrap } from '../utils/focusTrap';
import type ModalManagerState from '../states/ModalManagerState';
import type Mithril from 'mithril';
interface IModalManagerAttrs {
state: ModalManagerState;
}
@@ -10,8 +11,14 @@ interface IModalManagerAttrs {
* overwrite the previous one.
*/
export default class ModalManager extends Component<IModalManagerAttrs> {
view(): JSX.Element;
protected focusTrap: FocusTrap | undefined;
/**
* Whether a modal is currently shown by this modal manager.
*/
protected modalShown: boolean;
view(vnode: Mithril.VnodeDOM<IModalManagerAttrs, this>): Mithril.Children;
oncreate(vnode: Mithril.VnodeDOM<IModalManagerAttrs, this>): void;
onupdate(vnode: Mithril.VnodeDOM<IModalManagerAttrs, this>): void;
animateShow(readyCallback: () => void): void;
animateHide(): void;
}