@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 { DialogContainerService } from './dialog-container.service';
import * as i0 from "@angular/core";
import * as i1 from "./dialog-container.service";
/**
* Provides an insertion point for the Dialogs which are created through the
* Dialog service ([see example]({% slug api_dialog_dialogservice %}#toc-open)).
* Created Dialogs will be mounted after that element.
*
* @example
* ```html-no-run
* <div kendoDialogContainer></div>
* ```
*/
export class DialogContainerDirective {
constructor(container, service) {
service.container = container;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerDirective, deps: [{ token: i0.ViewContainerRef }, { token: i1.DialogContainerService }], target: i0.ɵɵFactoryTarget.Directive });
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DialogContainerDirective, isStandalone: true, selector: "[kendoDialogContainer]", ngImport: i0 });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogContainerDirective, decorators: [{
type: Directive,
args: [{
selector: '[kendoDialogContainer]',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i1.DialogContainerService }]; } });