@alicloud/console-components
Version:
Alibaba Cloud React Components
721 lines • 52.7 kB
TypeScript
/// <reference types="react" />
import { Overlay } from '@alifd/next';
export default Overlay;
export declare const OverlayPopup: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<import("@alifd/next/types/overlay").PopupProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
overlay: {
lastAlign: string | boolean;
timeoutMap: {
[key: string]: number;
};
_isMounted: boolean;
_isDestroyed: boolean;
focusTimeout: number;
_animation: {
off: () => void;
};
_containerNode: HTMLElement;
_hasFocused: boolean;
contentRef: import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
};
gatewayRef: {
child: Element;
componentDidMount(): void;
componentDidUpdate(): void;
updateContainer: () => void;
getChildNode(): Element | Text;
saveChildRef: (ref: HTMLDivElement) => void;
render(): import("react").ReactPortal;
context: any;
setState<K extends "containerNode">(state: import("@alifd/next/types/overlay/types").GatewayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, props: Readonly<import("@alifd/next/types/overlay").GatewayProps>) => import("@alifd/next/types/overlay/types").GatewayState | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>) | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").GatewayProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").GatewayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
};
_keydownEvents: {
off: () => void;
};
_clickEvents: {
off: () => void;
};
_touchEvents: {
off: () => void;
};
overlay: any;
componentDidMount(): void;
componentDidUpdate(prevProps: import("@alifd/next/types/overlay/types").OverlayV1Props): void;
componentWillUnmount(): void;
doAnimation(open: boolean, close: boolean): void;
getAnimation(props: import("@alifd/next/types/overlay/types").OverlayV1Props): string | boolean | import("@alifd/next/types/overlay/types").AnimationObjectType;
getAnimationByAlign(align: string | boolean | string[]): {
in: string;
out: string;
};
addAnimationEvents(): void;
handlePosition(config: {
align: string[];
}): void;
handleAnimateEnd(id: string): void;
onEntering(): void;
onLeaving(): void;
onEntered(): void;
onLeaved(): void;
beforeOpen(): void;
beforeClose(): void;
setFocusNode(): void;
getContent(): import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
};
getContentNode(): HTMLElement;
getWrapperNode(): Element;
addDocumentEvents(): void;
removeDocumentEvents(): void;
handleDocumentKeyDown(e: KeyboardEvent): void;
isInShadowDOM(node: Element | Text): boolean;
getEventPath(event: Event | {
path: string;
}): string | EventTarget[];
composedPath(el: HTMLElement): (Document | HTMLElement | Window)[];
matchInShadowDOM(node: Element | Text, e: Event): boolean;
handleDocumentClick(e: Event): void;
handleMaskClick(e: import("react").MouseEvent<Element, MouseEvent>): void;
saveContentRef: (ref: import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
}) => void;
saveGatewayRef: (ref: {
child: Element;
componentDidMount(): void;
componentDidUpdate(): void;
updateContainer: () => void;
getChildNode(): Element | Text;
saveChildRef: (ref: HTMLDivElement) => void;
render(): import("react").ReactPortal;
context: any;
setState<K extends "containerNode">(state: import("@alifd/next/types/overlay/types").GatewayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, props: Readonly<import("@alifd/next/types/overlay").GatewayProps>) => import("@alifd/next/types/overlay/types").GatewayState | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>) | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").GatewayProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").GatewayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
}) => void;
getInstance(): any;
render(): import("react").JSX.Element;
context: any;
setState<K_1 extends keyof import("@alifd/next/types/overlay/types").OverlayState>(state: import("@alifd/next/types/overlay/types").OverlayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, props: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>) => import("@alifd/next/types/overlay/types").OverlayState | Pick<import("@alifd/next/types/overlay/types").OverlayState, K_1>) | Pick<import("@alifd/next/types/overlay/types").OverlayState, K_1>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").OverlayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, prevState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): void;
};
saveRef(ref: {
_mouseNotFirstOnMask: boolean;
_isForwardContent: boolean;
overlay: {
lastAlign: string | boolean;
timeoutMap: {
[key: string]: number;
};
_isMounted: boolean;
_isDestroyed: boolean;
focusTimeout: number;
_animation: {
off: () => void;
};
_containerNode: HTMLElement;
_hasFocused: boolean;
contentRef: import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
};
gatewayRef: {
child: Element;
componentDidMount(): void;
componentDidUpdate(): void;
updateContainer: () => void;
getChildNode(): Element | Text;
saveChildRef: (ref: HTMLDivElement) => void;
render(): import("react").ReactPortal;
context: any;
setState<K extends "containerNode">(state: import("@alifd/next/types/overlay/types").GatewayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, props: Readonly<import("@alifd/next/types/overlay").GatewayProps>) => import("@alifd/next/types/overlay/types").GatewayState | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>) | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").GatewayProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").GatewayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
};
_keydownEvents: {
off: () => void;
};
_clickEvents: {
off: () => void;
};
_touchEvents: {
off: () => void;
};
overlay: any;
componentDidMount(): void;
componentDidUpdate(prevProps: import("@alifd/next/types/overlay/types").OverlayV1Props): void;
componentWillUnmount(): void;
doAnimation(open: boolean, close: boolean): void;
getAnimation(props: import("@alifd/next/types/overlay/types").OverlayV1Props): string | boolean | import("@alifd/next/types/overlay/types").AnimationObjectType;
getAnimationByAlign(align: string | boolean | string[]): {
in: string;
out: string;
};
addAnimationEvents(): void;
handlePosition(config: {
align: string[];
}): void;
handleAnimateEnd(id: string): void;
onEntering(): void;
onLeaving(): void;
onEntered(): void;
onLeaved(): void;
beforeOpen(): void;
beforeClose(): void;
setFocusNode(): void;
getContent(): import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
};
getContentNode(): HTMLElement;
getWrapperNode(): Element;
addDocumentEvents(): void;
removeDocumentEvents(): void;
handleDocumentKeyDown(e: KeyboardEvent): void;
isInShadowDOM(node: Element | Text): boolean;
getEventPath(event: Event | {
path: string;
}): string | EventTarget[];
composedPath(el: HTMLElement): (Document | HTMLElement | Window)[];
matchInShadowDOM(node: Element | Text, e: Event): boolean;
handleDocumentClick(e: Event): void;
handleMaskClick(e: import("react").MouseEvent<Element, MouseEvent>): void;
saveContentRef: (ref: import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
}) => void;
saveGatewayRef: (ref: {
child: Element;
componentDidMount(): void;
componentDidUpdate(): void;
updateContainer: () => void;
getChildNode(): Element | Text;
saveChildRef: (ref: HTMLDivElement) => void;
render(): import("react").ReactPortal;
context: any;
setState<K extends "containerNode">(state: import("@alifd/next/types/overlay/types").GatewayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, props: Readonly<import("@alifd/next/types/overlay").GatewayProps>) => import("@alifd/next/types/overlay/types").GatewayState | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>) | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").GatewayProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").GatewayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
}) => void;
getInstance(): any;
render(): import("react").JSX.Element;
context: any;
setState<K_1 extends keyof import("@alifd/next/types/overlay/types").OverlayState>(state: import("@alifd/next/types/overlay/types").OverlayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, props: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>) => import("@alifd/next/types/overlay/types").OverlayState | Pick<import("@alifd/next/types/overlay/types").OverlayState, K_1>) | Pick<import("@alifd/next/types/overlay/types").OverlayState, K_1>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").OverlayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, prevState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): void;
};
_timer: number;
_hideTimer: number;
_showTimer: number;
componentWillUnmount(): void;
handleVisibleChange(visible: boolean, type: string | object, e?: MouseEvent | KeyboardEvent): void;
handleTriggerClick(e: MouseEvent | KeyboardEvent): void;
handleTriggerKeyDown(e: KeyboardEvent): void;
handleTriggerMouseEnter(e: MouseEvent): void;
handleTriggerMouseLeave(e: MouseEvent, type: string | object): void;
handleTriggerFocus(e: MouseEvent): void;
handleTriggerBlur(e: MouseEvent): void;
handleContentMouseDown(): void;
handleContentMouseEnter(): void;
handleContentMouseLeave(e: MouseEvent): void;
handleMaskMouseEnter(): void;
handleMaskMouseLeave(): void;
handleRequestClose(type: string | object, e: MouseEvent): void;
renderTrigger(): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
renderContent(): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
renderPortal(): import("react").JSX.Element;
render(): import("react").JSX.Element[];
context: any;
setState<K_2 extends "visible">(state: import("@alifd/next/types/overlay/types").PopupState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").PopupState>, props: Readonly<import("@alifd/next/types/overlay").PopupProps>) => import("@alifd/next/types/overlay/types").PopupState | Pick<import("@alifd/next/types/overlay/types").PopupState, K_2>) | Pick<import("@alifd/next/types/overlay/types").PopupState, K_2>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").PopupProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").PopupState>;
refs: {
[key: string]: import("react").ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").PopupState>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").PopupState>): any;
componentDidUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").PopupState>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").PopupState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").PopupState>, nextContext: any): void;
}): void;
render(): import("react").JSX.Element;
context: any;
setState<K_3 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@alifd/next/types/overlay").PopupProps>) => {} | Pick<{}, K_3>) | Pick<{}, K_3>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").PopupProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: import("react").ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextState: Readonly<{}>, nextContext: any): void;
}, Pick<{
overlay: {
lastAlign: string | boolean;
timeoutMap: {
[key: string]: number;
};
_isMounted: boolean;
_isDestroyed: boolean;
focusTimeout: number;
_animation: {
off: () => void;
};
_containerNode: HTMLElement;
_hasFocused: boolean;
contentRef: import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
};
gatewayRef: {
child: Element;
componentDidMount(): void;
componentDidUpdate(): void;
updateContainer: () => void;
getChildNode(): Element | Text;
saveChildRef: (ref: HTMLDivElement) => void;
render(): import("react").ReactPortal;
context: any;
setState<K extends "containerNode">(state: import("@alifd/next/types/overlay/types").GatewayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, props: Readonly<import("@alifd/next/types/overlay").GatewayProps>) => import("@alifd/next/types/overlay/types").GatewayState | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>) | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").GatewayProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").GatewayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
};
_keydownEvents: {
off: () => void;
};
_clickEvents: {
off: () => void;
};
_touchEvents: {
off: () => void;
};
overlay: any;
componentDidMount(): void;
componentDidUpdate(prevProps: import("@alifd/next/types/overlay/types").OverlayV1Props): void;
componentWillUnmount(): void;
doAnimation(open: boolean, close: boolean): void;
getAnimation(props: import("@alifd/next/types/overlay/types").OverlayV1Props): string | boolean | import("@alifd/next/types/overlay/types").AnimationObjectType;
getAnimationByAlign(align: string | boolean | string[]): {
in: string;
out: string;
};
addAnimationEvents(): void;
handlePosition(config: {
align: string[];
}): void;
handleAnimateEnd(id: string): void;
onEntering(): void;
onLeaving(): void;
onEntered(): void;
onLeaved(): void;
beforeOpen(): void;
beforeClose(): void;
setFocusNode(): void;
getContent(): import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
};
getContentNode(): HTMLElement;
getWrapperNode(): Element;
addDocumentEvents(): void;
removeDocumentEvents(): void;
handleDocumentKeyDown(e: KeyboardEvent): void;
isInShadowDOM(node: Element | Text): boolean;
getEventPath(event: Event | {
path: string;
}): string | EventTarget[];
composedPath(el: HTMLElement): (Document | HTMLElement | Window)[];
matchInShadowDOM(node: Element | Text, e: Event): boolean;
handleDocumentClick(e: Event): void;
handleMaskClick(e: import("react").MouseEvent<Element, MouseEvent>): void;
saveContentRef: (ref: import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
}) => void;
saveGatewayRef: (ref: {
child: Element;
componentDidMount(): void;
componentDidUpdate(): void;
updateContainer: () => void;
getChildNode(): Element | Text;
saveChildRef: (ref: HTMLDivElement) => void;
render(): import("react").ReactPortal;
context: any;
setState<K extends "containerNode">(state: import("@alifd/next/types/overlay/types").GatewayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, props: Readonly<import("@alifd/next/types/overlay").GatewayProps>) => import("@alifd/next/types/overlay/types").GatewayState | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>) | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").GatewayProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").GatewayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
}) => void;
getInstance(): any;
render(): import("react").JSX.Element;
context: any;
setState<K_1 extends keyof import("@alifd/next/types/overlay/types").OverlayState>(state: import("@alifd/next/types/overlay/types").OverlayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, props: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>) => import("@alifd/next/types/overlay/types").OverlayState | Pick<import("@alifd/next/types/overlay/types").OverlayState, K_1>) | Pick<import("@alifd/next/types/overlay/types").OverlayState, K_1>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").OverlayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, prevState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): void;
};
saveRef(ref: {
_mouseNotFirstOnMask: boolean;
_isForwardContent: boolean;
overlay: {
lastAlign: string | boolean;
timeoutMap: {
[key: string]: number;
};
_isMounted: boolean;
_isDestroyed: boolean;
focusTimeout: number;
_animation: {
off: () => void;
};
_containerNode: HTMLElement;
_hasFocused: boolean;
contentRef: import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
};
gatewayRef: {
child: Element;
componentDidMount(): void;
componentDidUpdate(): void;
updateContainer: () => void;
getChildNode(): Element | Text;
saveChildRef: (ref: HTMLDivElement) => void;
render(): import("react").ReactPortal;
context: any;
setState<K extends "containerNode">(state: import("@alifd/next/types/overlay/types").GatewayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, props: Readonly<import("@alifd/next/types/overlay").GatewayProps>) => import("@alifd/next/types/overlay/types").GatewayState | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>) | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").GatewayProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").GatewayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
};
_keydownEvents: {
off: () => void;
};
_clickEvents: {
off: () => void;
};
_touchEvents: {
off: () => void;
};
overlay: any;
componentDidMount(): void;
componentDidUpdate(prevProps: import("@alifd/next/types/overlay/types").OverlayV1Props): void;
componentWillUnmount(): void;
doAnimation(open: boolean, close: boolean): void;
getAnimation(props: import("@alifd/next/types/overlay/types").OverlayV1Props): string | boolean | import("@alifd/next/types/overlay/types").AnimationObjectType;
getAnimationByAlign(align: string | boolean | string[]): {
in: string;
out: string;
};
addAnimationEvents(): void;
handlePosition(config: {
align: string[];
}): void;
handleAnimateEnd(id: string): void;
onEntering(): void;
onLeaving(): void;
onEntered(): void;
onLeaved(): void;
beforeOpen(): void;
beforeClose(): void;
setFocusNode(): void;
getContent(): import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
};
getContentNode(): HTMLElement;
getWrapperNode(): Element;
addDocumentEvents(): void;
removeDocumentEvents(): void;
handleDocumentKeyDown(e: KeyboardEvent): void;
isInShadowDOM(node: Element | Text): boolean;
getEventPath(event: Event | {
path: string;
}): string | EventTarget[];
composedPath(el: HTMLElement): (Document | HTMLElement | Window)[];
matchInShadowDOM(node: Element | Text, e: Event): boolean;
handleDocumentClick(e: Event): void;
handleMaskClick(e: import("react").MouseEvent<Element, MouseEvent>): void;
saveContentRef: (ref: import("react").ReactInstance & {
headerNode: HTMLElement;
bodyNode: HTMLElement;
footerNode: HTMLDivElement;
}) => void;
saveGatewayRef: (ref: {
child: Element;
componentDidMount(): void;
componentDidUpdate(): void;
updateContainer: () => void;
getChildNode(): Element | Text;
saveChildRef: (ref: HTMLDivElement) => void;
render(): import("react").ReactPortal;
context: any;
setState<K extends "containerNode">(state: import("@alifd/next/types/overlay/types").GatewayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, props: Readonly<import("@alifd/next/types/overlay").GatewayProps>) => import("@alifd/next/types/overlay/types").GatewayState | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>) | Pick<import("@alifd/next/types/overlay/types").GatewayState, K>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").GatewayProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").GatewayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").GatewayProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").GatewayState>, nextContext: any): void;
}) => void;
getInstance(): any;
render(): import("react").JSX.Element;
context: any;
setState<K_1 extends keyof import("@alifd/next/types/overlay/types").OverlayState>(state: import("@alifd/next/types/overlay/types").OverlayState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, props: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>) => import("@alifd/next/types/overlay/types").OverlayState | Pick<import("@alifd/next/types/overlay/types").OverlayState, K_1>) | Pick<import("@alifd/next/types/overlay/types").OverlayState, K_1>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").OverlayState>;
refs: {
[key: string]: import("react").ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, prevState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>): any;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay/types").OverlayV1Props>, nextState: Readonly<import("@alifd/next/types/overlay/types").OverlayState>, nextContext: any): void;
};
_timer: number;
_hideTimer: number;
_showTimer: number;
componentWillUnmount(): void;
handleVisibleChange(visible: boolean, type: string | object, e?: MouseEvent | KeyboardEvent): void;
handleTriggerClick(e: MouseEvent | KeyboardEvent): void;
handleTriggerKeyDown(e: KeyboardEvent): void;
handleTriggerMouseEnter(e: MouseEvent): void;
handleTriggerMouseLeave(e: MouseEvent, type: string | object): void;
handleTriggerFocus(e: MouseEvent): void;
handleTriggerBlur(e: MouseEvent): void;
handleContentMouseDown(): void;
handleContentMouseEnter(): void;
handleContentMouseLeave(e: MouseEvent): void;
handleMaskMouseEnter(): void;
handleMaskMouseLeave(): void;
handleRequestClose(type: string | object, e: MouseEvent): void;
renderTrigger(): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
renderContent(): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
renderPortal(): import("react").JSX.Element;
render(): import("react").JSX.Element[];
context: any;
setState<K_2 extends "visible">(state: import("@alifd/next/types/overlay/types").PopupState | ((prevState: Readonly<import("@alifd/next/types/overlay/types").PopupState>, props: Readonly<import("@alifd/next/types/overlay").PopupProps>) => import("@alifd/next/types/overlay/types").PopupState | Pick<import("@alifd/next/types/overlay/types").PopupState, K_2>) | Pick<import("@alifd/next/types/overlay/types").PopupState, K_2>, callback?: () => void): void;
forceUpdate(callback?: () => void): void;
readonly props: Readonly<import("@alifd/next/types/overlay").PopupProps> & Readonly<{
children?: import("react").ReactNode;
}>;
state: Readonly<import("@alifd/next/types/overlay/types").PopupState>;
refs: {
[key: string]: import("react").ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, nextState: Readonly<import("@alifd/next/types/overlay/types").PopupState>, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, prevState: Readonly<import("@alifd/next/types/overlay/types").PopupState>): any;
componentDidUpdate?(prevProps: Readonly<import("@alifd/next/types/overlay").PopupProps>, prevState: Readonly<import("@alifd/next/types/o