@progress/kendo-angular-dialog
Version:
Dialog Package for Angular
33 lines (32 loc) • 1.86 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { Directive, ViewContainerRef } from '@angular/core';
import { WindowContainerService } from './window-container.service';
import * as i0 from "@angular/core";
import * as i1 from "./window-container.service";
/**
* Provides an insertion point for the Windows which are created through the
* Window service ([see example]({% slug api_dialog_windowservice %}#toc-open)).
* Created Windows will be mounted after that element.
*
* @example
* ```html-no-run
* <div kendoWindowContainer></div>
* ```
*/
export class WindowContainerDirective {
constructor(container, service) {
service.container = container;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: i1.WindowContainerService }], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: WindowContainerDirective, isStandalone: true, selector: "[kendoWindowContainer]", ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowContainerDirective, decorators: [{
type: Directive,
args: [{
selector: '[kendoWindowContainer]',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i1.WindowContainerService }]; } });