// #region Imports
import { ControllerBase } from './Abstracts/ControllerBase';
// #endregion
/**
 * The registry controller registers and unregisters elements.
 * It is used to handle static elements like Drawer, Dialog, etc. on a global level.
 *
 * @public
 */
export class RegistryController extends ControllerBase {
    // #region Fields
    _registry;
    // #endregion
    // #region Ctor
    constructor(host, config) {
        super(host);
        this._registry = config.registry;
    }
    // #endregion
    // #region Methods
    /**
     * @public
     * @override
     */
    hostConnected() {
        this._registry.set(this.host.id, this.host);
    }
    /**
     * @public
     * @override
     */
    hostDisconnected() {
        this._registry.delete(this.host.id);
    }
}
//# sourceMappingURL=RegistryController.js.map