import { OverlayContainer } from '@angular/cdk/overlay';
import { Injectable } from '@angular/core';
/**
 * Provides r-layout as overlay container.
 * Container has to be cleared when layout destroys.
 * Another way previous version of the container will be used
 * but it isn't inserted in DOM and exists in memory only.
 * This case important only if you switch between multiple layouts.
 * */
export class ROverlayContainerAdapter extends OverlayContainer {
    setContainer(container) {
        this.container = container;
    }
    clearContainer() {
        this.container = null;
        this._containerElement = null;
    }
}
ROverlayContainerAdapter.decorators = [
    { type: Injectable }
];
//# sourceMappingURL=overlay-container-adapter.js.map