/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Dialog
 */
import * as React from "react";
import { DialogRendererBase } from "./DialogManagerBase";
import { InternalContentDialogManager as internal } from "./InternalContentDialogManager";
// cSpell:ignore ZINDEX modeless
/** Content Dialog Manager class displays and manages multiple modeless dialogs
 * @public
 * @deprecated in 3.7. Use `UiFramework.content.dialog` property.
 */
export class ContentDialogManager {
    /** Initialize the modeless dialog manager.
     * @deprecated in 3.7. This is called internally.
    */
    static initialize() {
        return internal.initialize();
    }
    /** Content Dialog Changed Event */
    static get onContentDialogChangedEvent() { return internal.onContentDialogChangedEvent; }
    /** @internal */
    static get dialogManager() { return internal.dialogManager; }
    /** Get the array of modeless dialogs */
    static get dialogs() { return internal.dialogs; }
    /** Open a modeless dialog
     * @param dialog The Dialog to open
     * @param id The id of the Dialog to open
     */
    static openDialog(dialog, id, parentDocument = document) {
        return internal.open(dialog, id, parentDocument);
    }
    /** Close a modeless dialog
     * @param id The id of the Dialog to close.
     */
    static closeDialog(id) {
        return internal.close(id);
    }
    /** @internal */
    static closeAll() {
        return internal.closeAll();
    }
    /** Update the dialogs */
    static update() {
        return internal.update();
    }
    /** Get the active modeless dialog */
    static get activeDialog() {
        return internal.active;
    }
    /** Get the count of modeless dialogs */
    static get dialogCount() {
        return internal.count;
    }
    /** Handle a pointer down event on a modeless dialog */
    static handlePointerDownEvent(_event, id, updateFunc) {
        return internal.handlePointerDownEvent(_event, id, updateFunc);
    }
    /** Get the z-index for a modeless dialog */
    static getDialogZIndex(id) {
        return internal.getZIndex(id);
    }
    static getDialogInfo(id) {
        return internal.getInfo(id);
    }
}
/** ContentDialogRenderer React component renders modeless dialogs.
 * @public
 */
export class ContentDialogRenderer extends React.PureComponent {
    constructor(props) {
        super(props);
    }
    render() {
        return (React.createElement(DialogRendererBase, { ...this.props, dialogManager: internal.dialogManager }));
    }
}
//# sourceMappingURL=ContentDialogManager.js.map