@progress/kendo-angular-dialog 7.0.0-next.202204010850 → 7.0.0-next.202204060707
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/animations"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@progress/kendo-popup-common"),require("@progress/kendo-angular-buttons")):"function"==typeof define&&define.amd?define("KendoAngularDialog",["exports","@angular/core","@angular/animations","rxjs","rxjs/operators","@angular/common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@progress/kendo-angular-common","@progress/kendo-popup-common","@progress/kendo-angular-buttons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDialog={},e.ng.core,e.ng.animations,e.rxjs,e.rxjs.operators,e.ng.common,e.KendoAngularL10N,e.KendoLicensing,e.KendoAngularCommon,e.kendoPopupCommon,e.KendoAngularButtons)}(this,function(e,d,t,u,g,n,i,j,R,W,o){"use strict";function L(n){if(n&&n.__esModule)return n;var i=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i)}var r=L(d),s=L(n),a=L(i),B=L(R),N=function(e,t){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function Z(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function _(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||((i=i||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;function X(e){return String(e).trim().split(" ")}function q(e,t){var n=X(t);return Boolean(X(e.className).find(function(e){return 0<=n.indexOf(e)}))}function K(e,t){var n,i;return void 0===t&&(t=!0),!!e.tagName&&(n=e.tagName.toLowerCase(),i=null!==(i=e.getAttribute("tabIndex"))&&!isNaN(i)&&-1<i,(J.test(n)?!e.disabled:i)&&(!t||!(!(i=(n=e).getBoundingClientRect()).width||!i.height)&&"hidden"!==window.getComputedStyle(n).visibility))}function Y(e,t,n){for(var i in e)i&&t.setAttribute(n,i,e[i])}function $(e){return p(t=e)&&!Array.isArray(t)&&"object"==typeof t?(n=e,i=[],Object.keys(n).forEach(function(e){var t=oe(e);n[e]&&t[0]&&i.push.apply(i,_([],Z(t)))}),i):G(e)?(o=[],oe(e).forEach(function(e){o.push(e)}),o):Array.isArray(e)?(r=[],e.forEach(function(e){e=oe(e);e[0]&&r.push.apply(r,_([],Z(e)))}),r):void 0;var n,i,t,o,r}function U(e){(e=e.originalEvent).stopPropagation(),e.preventDefault()}function G(e){return e instanceof String||"string"==typeof e}function Q(e){return e+("number"==typeof(e=e)&&isFinite(e)?"px":"")}var l,p=function(e){return null!=e},J=/^(?:a|input|select|textarea|button|object)$/i,ee=((c=l=l||{})[c.esc=27]="esc",c[c.tab=9]="tab",c[c.enter=13]="enter",c[c.space=32]="space",c[c.ctrl=17]="ctrl",c[c.shift=16]="shift",c[c.left=37]="left",c[c.up=38]="up",c[c.right=39]="right",c[c.down=40]="down","k-dialog-wrapper k-dialog-buttongroup k-dialog-action"),te=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),ne=["n","e","s","w","se","sw","ne","nw"],ie=["top","left","width","height"],oe=function(e){return e.trim().replace(/\s+/g," ").split(" ")},c=(Object.defineProperty(re.prototype,"actions",{set:function(e){if(e instanceof d.TemplateRef)this.actionsTemplate=e;else{if(!Array.isArray(e))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=e}},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"className",{get:function(){return"stretched"===this.layout},enumerable:!1,configurable:!0}),re.prototype.onButtonClick=function(e,t){this.action.emit(e)},re.prototype.buttonClass=function(e){var t=["k-button k-button-md k-rounded-md"],n=e.fillMode||"solid",i=e.themeColor||"base",e=e.cssClass?$(e.cssClass):[];return t.push("k-button-"+n+" k-button-"+n+"-"+i),(t=0<e.length?t.concat(e):t).join(" ")},re);function re(e){this.el=e,this.layout="stretched",this.action=new d.EventEmitter,this.buttonGroupClassName=!0}c.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:c,deps:[{token:r.ElementRef}],target:r.ɵɵFactoryTarget.Component}),c.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:c,selector:"kendo-dialog-actions",inputs:{actions:"actions",layout:"layout"},outputs:{action:"action"},host:{properties:{"class.k-dialog-buttongroup":"this.buttonGroupClassName","class.k-actions":"this.buttonGroupClassName","class.k-actions-stretched":"this.className"}},ngImport:r,template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="actionsArray; else actionTemplate">\n <button\n type="button"\n *ngFor="let action of actionsArray"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>\n ',isInline:!0,directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:s.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:c,decorators:[{type:d.Component,args:[{selector:"kendo-dialog-actions",template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="actionsArray; else actionTemplate">\n <button\n type="button"\n *ngFor="let action of actionsArray"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef}]},propDecorators:{actions:[{type:d.Input}],layout:[{type:d.Input}],action:[{type:d.Output}],buttonGroupClassName:[{type:d.HostBinding,args:["class.k-dialog-buttongroup"]},{type:d.HostBinding,args:["class.k-actions"]}],className:[{type:d.HostBinding,args:["class.k-actions-stretched"]}]}});ae.prototype.preventDefault=function(){this.prevented=!0},ae.prototype.isDefaultPrevented=function(){return this.prevented};var se=ae;function ae(){this.prevented=!1}var le,ce=new d.InjectionToken("Dialog LocalizationService"),h=(H(pe,le=i.LocalizationService),pe.prototype.get=function(e){return this.dialogLocalization?this.dialogLocalization.get(e):le.prototype.get.call(this,e)},pe);function pe(e,t,n,i){e=le.call(this,e,t,n)||this;return e.dialogLocalization=i,e}h.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,deps:[{token:i.L10N_PREFIX},{token:a.MessageService,optional:!0},{token:i.RTL,optional:!0},{token:ce,optional:!0}],target:r.ɵɵFactoryTarget.Injectable}),h.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:void 0,decorators:[{type:d.Inject,args:[i.L10N_PREFIX]}]},{type:a.MessageService,decorators:[{type:d.Optional}]},{type:void 0,decorators:[{type:d.Optional},{type:d.Inject,args:[i.RTL]}]},{type:a.LocalizationService,decorators:[{type:d.Optional},{type:d.Inject,args:[ce]}]}]}});H(ue,de=i.ComponentMessages);var de,m=ue;function ue(){return null!==de&&de.apply(this,arguments)||this}m.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:m,deps:null,target:r.ɵɵFactoryTarget.Directive}),m.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:m,selector:"kendo-dialog-messages-base",inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:m,decorators:[{type:d.Directive,args:[{selector:"kendo-dialog-messages-base"}]}],propDecorators:{closeTitle:[{type:d.Input}],restoreTitle:[{type:d.Input}],maximizeTitle:[{type:d.Input}],minimizeTitle:[{type:d.Input}]}});H(he,ge=m);var ge,f=he;function he(e){var t=ge.call(this)||this;return t.service=e,t}f.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:f,deps:[{token:a.LocalizationService}],target:r.ɵɵFactoryTarget.Directive}),f.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ",providers:[{provide:m,useExisting:d.forwardRef(function(){return f})}],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:f,decorators:[{type:d.Directive,args:[{providers:[{provide:m,useExisting:d.forwardRef(function(){return f})}],selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});Object.defineProperty(me.prototype,"className",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!1,configurable:!0}),me.prototype.ngAfterViewInit=function(){var e=this;this.zone.onStable.pipe(g.take(1)).subscribe(function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)})},me.prototype.onCloseClick=function(e){e.preventDefault();e=new se;this.close.emit(e)};var y=me;function me(e,t,n){this.zone=e,this.hostElement=t,this.localizationService=n,this.close=new d.EventEmitter}y.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:y,deps:[{token:r.NgZone},{token:r.ElementRef},{token:a.LocalizationService,optional:!0}],target:r.ɵɵFactoryTarget.Component}),y.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:y,selector:"kendo-dialog-titlebar",inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},host:{properties:{"class.k-window-titlebar":"this.className","class.k-dialog-titlebar":"this.className"}},providers:[h,{provide:i.LocalizationService,useExisting:h},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],ngImport:r,template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n ',isInline:!0,directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:y,decorators:[{type:d.Component,args:[{selector:"kendo-dialog-titlebar",providers:[h,{provide:i.LocalizationService,useExisting:h},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:r.NgZone},{type:r.ElementRef},{type:a.LocalizationService,decorators:[{type:d.Optional}]}]},propDecorators:{close:[{type:d.Output}],id:[{type:d.Input}],closeTitle:[{type:d.Input}],className:[{type:d.HostBinding,args:["class.k-window-titlebar"]},{type:d.HostBinding,args:["class.k-dialog-titlebar"]}]}});var fe={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1648802960,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},ye=function(){},b=(Object.defineProperty(v.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){Y(e,this.renderer,this.wrapper.nativeElement);var t=this.wrapper.nativeElement,n=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==n&&n&&(this.direction=n),this.tabIndex!==t&&t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),v.prototype.ngAfterContentInit=function(){var e=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(function(){p(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(g.take(1)).subscribe(function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))}))},v.prototype.ngAfterViewInit=function(){var e=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(function(){p(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(g.take(1)).subscribe(function(){e.bubble("close",e.titlebarView.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))})),this.initDomEvents()},v.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()},v.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()},v.prototype.focus=function(){var e=this.wrapper.nativeElement;p(e)&&e.focus()},v.prototype.initDomEvents=function(){var t=this;this.wrapper&&this.ngZone.runOutsideAngular(function(){t.domSubs.add(t.renderer.listen(t.wrapper.nativeElement,"keydown",function(e){t.onKeyDown(e)}))})},v.prototype.onKeyDown=function(e){var t=this,n=e.target,i=n.parentElement;(q(n,ee)||q(i,ee))&&e.keyCode===l.esc&&this.ngZone.run(function(){t.close.emit(new ye)}),q(n,"k-button")&&q(i,"k-dialog-buttongroup")&&(e.keyCode===l.left||e.keyCode===l.right)&&this.ngZone.run(function(){t.handleActionButtonFocus(i,e.keyCode)}),e.keyCode===l.tab&&this.ngZone.run(function(){t.keepFocusWithinComponent(n,e)})},v.prototype.setServiceClasses=function(e,t){var n=this,i=this.wrapper.nativeElement;e&&$(e).forEach(function(e){n.renderer.removeClass(i,e)}),t&&$(t).forEach(function(e){n.renderer.addClass(i,e)})},v.prototype.handleInitialFocus=function(){var e,t=this.wrapper.nativeElement,n=this.findPrimary(t);this.autoFocusedElement?(e=t.querySelector(this.autoFocusedElement))&&e.focus():(this.shouldFocusPrimary(n)?n:t).focus()},v.prototype.findPrimary=function(e){for(var t=e.querySelectorAll(".k-actions .k-button"),n=t.length-1;0<=n;n--)for(var i=t[n].classList,o=0;o<i.length;o++)if(i[o].endsWith("-primary"))return t[n]},v.prototype.handleActionButtonFocus=function(e,t){for(var n=this.getAllFocusableChildren(e),i=0;i<n.length;i++)if(n[i]===document.activeElement){if(t===l.left&&0<i){n[i-1].focus();break}if(t===l.right&&i<n.length-1){n[i+1].focus();break}}},v.prototype.keepFocusWithinComponent=function(e,t){var n=this.wrapper.nativeElement,n=Z(this.getFirstAndLastFocusable(n),2),i=n[0],n=n[1],o=!t.shiftKey&&e===n,e=t.shiftKey&&e===i;o&&(t.preventDefault(),i.focus()),e&&(t.preventDefault(),n.focus())},v.prototype.shouldFocusPrimary=function(e){return p(e)&&K(e)},v.prototype.getAllFocusableChildren=function(e){return e.querySelectorAll(te)},v.prototype.getFirstAndLastFocusable=function(e){var t=this.getAllFocusableChildren(e);return[0<t.length?t[0]:e,0<t.length?t[t.length-1]:e]},v.prototype.generateTitleId=function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()},v.prototype.generateContentId=function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()},Object.defineProperty(v.prototype,"wrapperClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"styles",{get:function(){var e={};return this.width&&(e.width=Q(this.width)),this.height&&(e.height=Q(this.height)),this.minWidth&&(e.minWidth=Q(this.minWidth)),this.maxWidth&&(e.maxWidth=Q(this.maxWidth)),this.minHeight&&(e.minHeight=Q(this.minHeight)),this.maxHeight&&(e.maxHeight=Q(this.maxHeight)),e},enumerable:!1,configurable:!0}),v.prototype.bubble=function(t,e){var n=this;e&&(e=e[t].subscribe(function(e){return n[t].emit(e)}),this.subscriptions.push(e))},v);function v(e,t,n,i,o){var r=this;this.wrapper=e,this.renderer=t,this.cdr=i,this.ngZone=o,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new d.EventEmitter,this.close=new d.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.domSubs=new u.Subscription,j.validatePackage(fe),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe(function(e){e=e.rtl;return r.direction=e?"rtl":"ltr"})),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}b.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:b,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:a.LocalizationService},{token:r.ChangeDetectorRef},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Component}),b.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:b,selector:"kendo-dialog",inputs:{actions:"actions",actionsLayout:"actionsLayout",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight"},outputs:{action:"action",close:"close"},host:{properties:{"attr.dir":"this.dir","attr.tabIndex":"this.tabIndex","class.k-dialog-wrapper":"this.wrapperClass"}},providers:[i.LocalizationService,{provide:ce,useExisting:i.LocalizationService},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],queries:[{propertyName:"titlebarContent",predicate:y}],viewQueries:[{propertyName:"actionsView",first:!0,predicate:c,descendants:!0},{propertyName:"titlebarView",predicate:y,descendants:!0}],exportAs:["kendoDialog"],ngImport:r,template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n ',isInline:!0,components:[{type:y,selector:"kendo-dialog-titlebar",inputs:["id","closeTitle"],outputs:["close"]},{type:c,selector:"kendo-dialog-actions",inputs:["actions","layout"],outputs:["action"]}],directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "},{type:s.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],animations:[t.trigger("overlayAppear",[t.state("in",t.style({opacity:1})),t.transition("void => *",[t.style({opacity:.1}),t.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),t.trigger("dialogSlideInAppear",[t.state("in",t.style({transform:"translate(0, 0)"})),t.transition("void => *",[t.style({transform:"translate(0, -10%)"}),t.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:b,decorators:[{type:d.Component,args:[{animations:[t.trigger("overlayAppear",[t.state("in",t.style({opacity:1})),t.transition("void => *",[t.style({opacity:.1}),t.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),t.trigger("dialogSlideInAppear",[t.state("in",t.style({transform:"translate(0, 0)"})),t.transition("void => *",[t.style({transform:"translate(0, -10%)"}),t.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])],exportAs:"kendoDialog",providers:[i.LocalizationService,{provide:ce,useExisting:i.LocalizationService},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],selector:"kendo-dialog",template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:a.LocalizationService},{type:r.ChangeDetectorRef},{type:r.NgZone}]},propDecorators:{actions:[{type:d.Input}],actionsLayout:[{type:d.Input}],autoFocusedElement:[{type:d.Input}],title:[{type:d.Input}],width:[{type:d.Input}],minWidth:[{type:d.Input}],maxWidth:[{type:d.Input}],height:[{type:d.Input}],minHeight:[{type:d.Input}],maxHeight:[{type:d.Input}],action:[{type:d.Output}],close:[{type:d.Output}],dir:[{type:d.HostBinding,args:["attr.dir"]}],tabIndex:[{type:d.HostBinding,args:["attr.tabIndex"]}],titlebarContent:[{type:d.ContentChildren,args:[y,{descendants:!1}]}],titlebarView:[{type:d.ViewChildren,args:[y]}],actionsView:[{type:d.ViewChild,args:[c,{static:!1}]}],wrapperClass:[{type:d.HostBinding,args:["class.k-dialog-wrapper"]}]}});function be(){}we.prototype.ngAfterViewInit=function(){var t=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(g.filter(function(e){return!e.isDefaultPrevented()})).subscribe(function(){t.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(function(e){return t.dialog.dialog.instance.action.emit(e)})};var ve=we;function we(e){this.dialog=e}ve.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:ve,deps:[{token:be}],target:r.ɵɵFactoryTarget.Component}),ve.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ve,selector:"kendo-dialog-content-base",viewQueries:[{propertyName:"dialogTitleBar",first:!0,predicate:y,descendants:!0},{propertyName:"dialogActions",first:!0,predicate:c,descendants:!0}],ngImport:r,template:"",isInline:!0}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:ve,decorators:[{type:d.Component,args:[{template:"",selector:"kendo-dialog-content-base"}]}],ctorParameters:function(){return[{type:be}]},propDecorators:{dialogTitleBar:[{type:d.ViewChild,args:[y,{static:!1}]}],dialogActions:[{type:d.ViewChild,args:[c,{static:!1}]}]}});Object.defineProperty(ke.prototype,"container",{get:function(){return ke.container},set:function(e){ke.container=e},enumerable:!1,configurable:!0});var w=ke;function ke(){}w.container=null,w.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:w,deps:[],target:r.ɵɵFactoryTarget.Injectable}),w.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:w}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:w,decorators:[{type:d.Injectable}]});function Ie(){}function Ce(){}Te.prototype.get=function(e,t){return e===be?this.getDialogRef():this.parentInjector.get(e,t)};var De=Te;function Te(e,t){this.getDialogRef=e,this.parentInjector=t}ze.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(b),n=e.appendTo||this.containerService.container;if(!n)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(e.content,t,n,{close:function(){},content:null,dialog:null,result:null},e)},ze.prototype.initializeDialog=function(n,e,t,i,o){function r(e){e instanceof se&&(e=new ye),p.next(e||new ye),l.componentRef&&l.componentRef.destroy(),c.destroy()}var s,a,l=this.contentFrom(n,t,i),c=t.createComponent(e,void 0,void 0,l.nodes),p=((i.dialog=c).changeDetectorRef.markForCheck(),this.applyOptions(c.instance,o),new u.Subject),t=u.merge(p,u.merge(c.instance.close,c.instance.action).pipe(g.map(function(e){return e instanceof se?new ye:e}),g.filter(function(e){var t;return!o.preventAction||(t=G(t=n)||t instanceof d.TemplateRef?void 0:i,!o.preventAction(e,t))}))).pipe(g.take(1),g.share());return t.subscribe(r),i.close=r,i.result=t,n&&d.isDevMode()&&(e=l.nodes[0]&&0<l.nodes[0].length,t=l.nodes[2]&&0<l.nodes[2].length,s=o.title&&e,a=o.actions&&t,n.prototype instanceof ve?(s||a)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(e||t)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")),i},ze.prototype.applyOptions=function(e,t){e.title=t.title,e.actions=t.actions,e.actionsLayout=t.actionsLayout||"stretched",e.width=t.width,e.minWidth=t.minWidth,e.maxWidth=t.maxWidth,e.height=t.height,e.minHeight=t.minHeight,e.maxHeight=t.maxHeight,e.autoFocusedElement=t.autoFocusedElement,e.closeTitle=t.closeTitle,e.cssClass=t.cssClass,e.htmlAttributes=t.htmlAttributes,t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content)},ze.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=[],s=[],a=null;return"string"==typeof e?o=[i.createText(e)]:!e||e instanceof d.TemplateRef||(i=new De(function(){return n},t.injector),e=this.resolver.resolveComponentFactory(e),a=t.createComponent(e,void 0,i),r=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),o=[a.location.nativeElement],s=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-actions")),n.content=a),{componentRef:a,nodes:[r,o,s]}};h=ze;function ze(e,t){this.resolver=e,this.containerService=t}h.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,deps:[{token:r.ComponentFactoryResolver},{token:w}],target:r.ɵɵFactoryTarget.Injectable}),h.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:r.ComponentFactoryResolver},{type:w,decorators:[{type:d.Inject,args:[w]}]}]}});function Ee(e,t){return function(n){return e.kendoDrag.pipe(g.takeUntil(e.kendoRelease.pipe(g.tap(function(){t.emit()}))),g.map(function(e){var t=e.pageX,e=e.pageY;return{originalX:n.pageX,originalY:n.pageY,pageX:t,pageY:e}}))}}var xe=10002,Oe={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},k=(I.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},I.prototype.init=function(e){var t=this.options.state,n=this.options;this.window=e,"default"!==t&&(this.restoreOptions=Object.assign({},n)),"minimized"===t&&(n.height=0,n.minHeight=0),"maximized"===t&&(n.position="fixed")},I.prototype.onDrag=function(e){var s=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,r;s.dragSubscription=e.kendoPress.pipe(g.tap(function(e){e.isTouch||U(e),s.focus.emit(),o=s.currentPosition(),r=!1}),g.switchMap(Ee(e,s.dragEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,e=e.originalY;r||(s.ensureWidth(),s.dragStart.emit(),r=!0),s.handleDrag({originalX:i,originalY:e,pageX:t,pageY:n,startPosition:o})})}))},I.prototype.handleDrag=function(e){var t=e.originalX,n=e.originalY,i=e.pageX,o=e.pageY,e=e.startPosition;this.options.left=e.x+i-t,this.options.top=e.y+o-n,"minimized"===this.options.state&&p(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:e.x+i-t,top:e.y+o-n})},I.prototype.onResize=function(e,s){var a=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,r=!1;e.kendoPress.pipe(g.tap(function(e){U(e),a.focus.emit(),o=a.currentOffsetAndPosition(),r=!1}),g.switchMap(Ee(e,a.resizeEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,e=e.originalY,t=(r||(a.resizeStart.emit(s),r=!0),t-i);a.handleResize(o,s,t,n-e)})}))},I.prototype.handleResize=function(e,t,n,i){var o,r,s,a=this,l=this.options,c={};0<=t.indexOf("e")&&(s=e.width+n)!==l.width&&s>=l.minWidth&&(c.width=s),0<=t.indexOf("n")&&(o=e.height-i,r=e.y+i,o!==l.height&&o>=l.minHeight&&r!==l.top&&(c.height=o,c.top=r)),0<=t.indexOf("s")&&(o=e.height+i)!==l.height&&o>=l.minHeight&&(c.height=o),0<=t.indexOf("w")&&(r=e.x+n,(s=e.width-n)!==l.width&&s>=l.minWidth&&r!==l.left&&(c.width=s,c.left=r)),(p(c.width)||p(c.height))&&(ie.forEach(function(e){p(c[e])&&(a.options[e]=c[e])}),this.change.emit(c))},I.prototype.restoreAction=function(){this.lastAction="restore",this.defaultState()},I.prototype.defaultState=function(){p(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},I.prototype.storeOptions=function(){this.restoreOptions=Object.assign({},this.options)},I.prototype.maximizeAction=function(){this.lastAction="maximize",this.maximizeState()},I.prototype.maximizeState=function(){this.storeOptions();var e=this.windowViewPort;this.options=Object.assign({},this.options,{height:e.height,left:0,position:"fixed",state:"maximized",top:0,width:e.width}),this.stateChange.emit("maximized")},I.prototype.minimizeAction=function(){this.lastAction="minimize",this.minimizeState()},I.prototype.minimizeState=function(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")},I.prototype.applyManualState=function(){switch(this.options.state){case"default":this.clearHeight(),this.defaultState();break;case"maximized":this.clearHeight(),this.maximizeState();break;case"minimized":this.minimizeState()}},I.prototype.closeAction=function(){this.close.emit()},I.prototype.ensureWidth=function(){var e=W.offset(this.window.nativeElement);p(this.options.width)||(this.options.width=e.width,this.change.emit({width:e.width}))},I.prototype.clearHeight=function(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight},I.prototype.center=function(){var e,t,n,i;"maximized"!==this.options.state&&(e=W.scrollPosition(this.window.nativeElement),t=this.windowViewPort,n=W.offset(this.window.nativeElement),i={},p(this.options.left)||(this.options.left=e.x+Math.max(0,(t.width-n.width)/2),i.left=this.options.left),p(this.options.top)||(this.options.top=e.y+Math.max(0,(t.height-n.height)/2),i.top=this.options.top),this.change.emit(i))},I.prototype.currentOffsetAndPosition=function(){var e=this.options,t=W.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:e.height||t.height,width:e.width||t.width})},I.prototype.currentPosition=function(){var e=this.options;return e.top&&e.left||this.setPosition(),{x:this.options.left,y:this.options.top}},I.prototype.setPosition=function(){var e=W.positionWithScroll(this.window.nativeElement,W.getDocumentElement(this.window.nativeElement));this.options.left=e.left,this.options.top=e.top},I.prototype.setRestoreOption=function(e,t){p(this.restoreOptions)&&(this.restoreOptions[e]=t)},Object.defineProperty(I.prototype,"nextPossibleZIndex",{get:function(){return xe},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"nextZIndex",{get:function(){return xe++},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"windowViewPort",{get:function(){return W.getWindowViewPort(this.window.nativeElement)},enumerable:!1,configurable:!0}),I);function I(e){this.ngZone=e,this.close=new d.EventEmitter,this.focus=new d.EventEmitter,this.change=new d.EventEmitter,this.stateChange=new d.EventEmitter,this.dragStart=new d.EventEmitter,this.dragEnd=new d.EventEmitter,this.resizeStart=new d.EventEmitter,this.resizeEnd=new d.EventEmitter,this.options=Object.assign({},Oe),this.lastAction=null,this.subscriptions=new u.Subscription,this.dragSubscription=new u.Subscription}k.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:k,deps:[{token:r.NgZone}],target:r.ɵɵFactoryTarget.Injectable}),k.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:k}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:k,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:r.NgZone}]}});Object.defineProperty(Se.prototype,"hostClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Se.prototype.ngOnInit=function(){var t=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(u.of(this.draggable).subscribe(function(e){t.service.onResize(e,t.direction)})),this.subscriptions.add(this.service.resizeStart.subscribe(function(e){e!==t.direction&&t.setDisplay("none")})),this.subscriptions.add(this.service.dragStart.subscribe(function(){t.setDisplay("none")})),this.subscriptions.add(u.merge(this.service.resizeEnd,this.service.dragEnd).subscribe(function(){t.setDisplay("block")})),this.subscriptions.add(this.service.stateChange.subscribe(function(e){t.setDisplay("default"===e?"block":"none")}))},Se.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Se.prototype.setDisplay=function(e){void 0===e&&(e="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?e:"none")};t=Se;function Se(e,t,n,i){this.draggable=e,this.el=t,this.renderer=n,this.service=i,this.subscriptions=new u.Subscription}t.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,deps:[{token:B.DraggableDirective,host:!0},{token:r.ElementRef},{token:r.Renderer2},{token:k}],target:r.ɵɵFactoryTarget.Directive}),t.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"[kendoWindowResizeHandle]",inputs:{direction:"direction"},host:{properties:{"class.k-resize-handle":"this.hostClass"}},ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,decorators:[{type:d.Directive,args:[{selector:"[kendoWindowResizeHandle]"}]}],ctorParameters:function(){return[{type:B.DraggableDirective,decorators:[{type:d.Host}]},{type:r.ElementRef},{type:r.Renderer2},{type:k}]},propDecorators:{direction:[{type:d.Input}],hostClass:[{type:d.HostBinding,args:["class.k-resize-handle"]}]}});D.prototype.ngOnInit=function(){this.dragDirective=new R.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()},D.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()},D.prototype.subscribeDrag=function(){var t=this;this.unsubscribeDrag(),this.dragSubscription=u.of(this.dragDirective).subscribe(function(e){t.service.onDrag(e)})},D.prototype.subscribeStateChange=function(){var t=this;this.stateSubscription=this.service.stateChange.subscribe(function(e){t.service.options.draggable&&("maximized"===e?t.unsubscribeDrag():t.subscribeDrag())})},D.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},D.prototype.unsubscribeState=function(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)},Object.defineProperty(D.prototype,"className",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"touchAction",{get:function(){if(this.isDraggable)return"none"},enumerable:!1,configurable:!0}),D.prototype.handle=function(e){var e=e.target,t=this.service.options.state;q(e,"k-icon")||K(e,!1)||!this.service.options.resizable||("default"===t?this.service.maximizeAction():"maximized"===t&&this.service.restoreAction())},Object.defineProperty(D.prototype,"isDraggable",{get:function(){var e=this.service.options;return e.draggable&&"maximized"!==e.state},enumerable:!1,configurable:!0});var C=D;function D(e,t,n){this.el=e,this.ngZone=n,this.service=t}C.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:C,deps:[{token:r.ElementRef},{token:k},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Component}),C.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:C,selector:"kendo-window-titlebar",inputs:{template:"template"},host:{listeners:{dblclick:"handle($event)"},properties:{"class.k-window-titlebar":"this.className","class.k-dialog-titlebar":"this.className","style.touch-action":"this.touchAction"}},ngImport:r,template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n ',isInline:!0,directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:C,decorators:[{type:d.Component,args:[{selector:"kendo-window-titlebar",template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:k},{type:r.NgZone}]},propDecorators:{template:[{type:d.Input}],className:[{type:d.HostBinding,args:["class.k-window-titlebar"]},{type:d.HostBinding,args:["class.k-dialog-titlebar"]}],touchAction:[{type:d.HostBinding,args:["style.touch-action"]}],handle:[{type:d.HostListener,args:["dblclick",["$event"]]}]}});Fe.prototype.process=function(e){var t=this,n=e.keyCode;switch(n){case l.up:case l.down:case l.left:case l.right:e.preventDefault(),this.ngZone.run(function(){t.handleArrow(n,e)});break;case l.esc:this.ngZone.run(function(){t.handleEscape()})}},Fe.prototype.handleArrow=function(e,t){var n=this.window.options;t.altKey?this.handleStateChange(e,n.state):(t.ctrlKey||t.metaKey)&&"default"===n.state?this.handleResize(e):this.handleDrag(e)},Fe.prototype.handleEscape=function(){this.window.closeAction()},Fe.prototype.handleDrag=function(e){var t=this.window.options;if(t.draggable){var n=this.window.currentOffsetAndPosition(),i=this.window.restoreOptions,o={},r=10;switch(e!==l.left&&e!==l.up||(r*=-1),e){case l.left:case l.right:o.left=n.x+r,t.left=o.left;break;case l.up:case l.down:o.top=n.y+r,t.top=o.top}"minimized"===t.state&&p(i)&&(i.left=t.left,i.top=t.top),this.window.change.emit(o)}},Fe.prototype.handleResize=function(e){var t=this,n=this.window.options;if(n.resizable){var i,o=this.window.currentOffsetAndPosition(),r={},s=10;switch(e!==l.left&&e!==l.up||(s*=-1),e){case l.left:case l.right:(i=o.width+s)!==n.width&&i>=n.minWidth&&(r.width=i);break;case l.up:case l.down:(i=o.height+s)!==n.height&&i>=n.minHeight&&(r.height=i)}(p(r.width)||p(r.height))&&(ie.forEach(function(e){p(r[e])&&(t.window.options[e]=r[e])}),this.window.change.emit(r))}},Fe.prototype.handleStateChange=function(e,t){"minimized"===t&&e===l.up||"maximized"===t&&e===l.down?this.window.restoreAction():"default"===t&&(e===l.up?this.window.maximizeAction():e===l.down&&this.window.minimizeAction())};var Ae=Fe;function Fe(e,t){this.window=e,this.ngZone=t}Ae.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:Ae,deps:[{token:k},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Injectable}),Ae.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:Ae}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:Ae,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:k},{type:r.NgZone}]}});H(Me,Ve=o.Button),Me.prototype.onClick=function(){this.isDisabled||this.window.minimizeAction()},Object.defineProperty(Me.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!1,configurable:!0});var Ve,T=Me;function Me(e,t,n,i,o){e=Ve.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-minimize",e}T.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:T,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),T.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:T,selector:"button[kendoWindowMinimizeAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowMinimizeAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:T,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowMinimizeAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMinimizeAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});H(je,Pe=o.Button),je.prototype.onClick=function(){this.isDisabled||this.window.maximizeAction()},Object.defineProperty(je.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!1,configurable:!0});var Pe,z=je;function je(e,t,n,i,o){e=Pe.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-maximize",e}z.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:z,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),z.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:z,selector:"button[kendoWindowMaximizeAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowMaximizeAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:z,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowMaximizeAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMaximizeAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});H(We,Re=o.Button),We.prototype.onClick=function(){this.isDisabled||this.window.restoreAction()},Object.defineProperty(We.prototype,"visible",{get:function(){return"default"===this.window.options.state?"none":"inline-flex"},enumerable:!1,configurable:!0});var Re,E=We;function We(e,t,n,i,o){e=Re.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-restore",e}E.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:E,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),E.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:E,selector:"button[kendoWindowRestoreAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowRestoreAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:E,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowRestoreAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowRestoreAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});H(Be,Le=o.Button),Be.prototype.onClick=function(){this.isDisabled||this.window.closeAction()};var Le,o=Be;function Be(e,t,n,i,o){e=Le.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="close",e}o.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:o,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),o.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:o,selector:"button[kendoWindowCloseAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowCloseAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:o,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowCloseAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowCloseAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}]}});Object.defineProperty(O.prototype,"draggable",{get:function(){return this.options.draggable},set:function(e){this.options.draggable=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"resizable",{get:function(){return this.options.resizable},set:function(e){this.options.resizable=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){Y(e,this.renderer,this.el.nativeElement);var t=this.el.nativeElement,n=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==n&&(this.direction=n),this.tabIndex!==t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"state",{get:function(){return this.options.state},set:function(e){this.options.state=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(e){this.setOption("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(e){this.setOption("minHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"width",{get:function(){return this.options.width},set:function(e){this.setOption("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"height",{get:function(){return this.options.height},set:function(e){this.setOption("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"top",{get:function(){return this.options.top},set:function(e){this.setOption("top",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"left",{get:function(){return this.options.left},set:function(e){this.setOption("left",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"closeButtonTitle",{get:function(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"restoreButtonTitle",{get:function(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"maximizeButtonTitle",{get:function(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minimizeButtonTitle",{get:function(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostClasses",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),O.prototype.ngAfterViewInit=function(){var e=this;this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular(function(){return Promise.resolve(null).then(function(){return e.setInitialOffset()})}),this.initDomEvents()},O.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},O.prototype.ngOnChanges=function(t){var e,n=this;ie.forEach(function(e){R.isChanged(e,t)&&n.setStyle(e,n.options[e])}),R.isChanged("draggable",t)&&(e=p(this.titleBarContent)?this.titleBarContent:this.titleBarView,t.draggable.currentValue?e.subscribeDrag():e.unsubscribeDrag()),R.isChanged("state",t)&&(p(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))},O.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},O.prototype.focus=function(){var e=this.el.nativeElement;p(e)&&e.focus()},O.prototype.bringToFront=function(){this.setNextZIndex()},O.prototype.setDimension=function(e,t){this.setOption(e,t),this.setStyle(e,t)},O.prototype.setOffset=function(e,t){this.setOption(e,t),this.setStyle(e,t)},Object.defineProperty(O.prototype,"showDefaultTitleBar",{get:function(){return!p(this.titleBarContent)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"wrapperMinimizedClass",{get:function(){return"minimized"===this.state},enumerable:!1,configurable:!0}),O.prototype.onComponentFocus=function(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()},O.prototype.onComponentBlur=function(){this.renderer.removeClass(this.el.nativeElement,"k-focus")},O.prototype.subscribeEvents=function(){var i=this;R.isDocumentAvailable()&&(this.windowSubscription.add(this.service.focus.subscribe(function(){i.el.nativeElement.focus()})),this.windowSubscription.add(this.service.dragStart.subscribe(function(){i.draged=!0,i.ngZone.run(function(){i.dragStart.emit()})})),this.windowSubscription.add(this.service.dragEnd.subscribe(function(){i.draged&&(i.draged=!1,i.ngZone.run(function(){i.dragEnd.emit()}))})),this.windowSubscription.add(this.service.close.subscribe(function(){i.close.emit()})),this.windowSubscription.add(this.service.resizeStart.subscribe(function(){i.resized=!0,i.ngZone.run(function(){i.resizeStart.emit()})})),this.windowSubscription.add(this.service.resizeEnd.subscribe(function(){i.resized&&(i.resized=!1,i.ngZone.run(function(){i.resizeEnd.emit()}))})),this.windowSubscription.add(this.service.change.subscribe(function(n){ie.forEach(function(e){var t;p(n[e])&&(i.setStyle(e,n[e]),"maximized"!==i.state&&(t=i[e+"Change"]).observers.length&&i.ngZone.run(function(){t.emit(n[e])}))})})),this.windowSubscription.add(this.service.stateChange.subscribe(function(e){p(i.service.lastAction)&&(i.updateAllOffset(),i.stateChange.emit(e))})))},O.prototype.initDomEvents=function(){var t=this;this.el&&this.ngZone.runOutsideAngular(function(){t.domSubs.add(t.renderer.listen(t.el.nativeElement,"keydown",function(e){t.onKeyDown(e)}))})},O.prototype.onKeyDown=function(e){q(e.target,"k-window")&&this.navigation.process(e)},O.prototype.setServiceClasses=function(e,t){var n=this,i=this.el.nativeElement;e&&$(e).forEach(function(e){n.renderer.removeClass(i,e)}),t&&$(t).forEach(function(e){n.renderer.addClass(i,e)})},O.prototype.setNextZIndex=function(){var e=this.el.nativeElement.style["z-index"],t=this.service.nextPossibleZIndex;(!e||1<t-e)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},O.prototype.setInitialOffset=function(){var e;"maximized"!==this.state?(this.updateAllOffset(),p(this.left)&&p(this.top)||this.service.center()):(e=this.service.windowViewPort,this.setStyle("width",e.width),this.setStyle("height",e.height),this.setStyle("top",0),this.setStyle("left",0))},O.prototype.updateAllOffset=function(){var t=this;ie.forEach(function(e){p(t[e])?t.setStyle(e,t[e]):t.removeStyle(e)})},O.prototype.setStyle=function(e,t){this.renderer.setStyle(this.el.nativeElement,e,t+"px")},O.prototype.removeStyle=function(e){this.renderer.removeStyle(this.el.nativeElement,e)},Object.defineProperty(O.prototype,"options",{get:function(){return this.service.options},enumerable:!1,configurable:!0}),O.prototype.setOption=function(e,t){"number"!=typeof t&&"string"!=typeof t||(t="number"==typeof t?t:parseInt(t,10),this.options[e]=t,this.service.setRestoreOption(e,t))},O.prototype.handleInitialFocus=function(){var e=this.el.nativeElement;this.autoFocusedElement?(e=e.querySelector(this.autoFocusedElement))&&e.focus():this.focus()};var x=O;function O(e,t,n,i,o,r){var s=this;this.el=e,this.renderer=t,this.service=n,this.navigation=i,this.ngZone=o,this.localization=r,this.keepContent=!1,this.dragStart=new d.EventEmitter,this.dragEnd=new d.EventEmitter,this.resizeStart=new d.EventEmitter,this.resizeEnd=new d.EventEmitter,this.close=new d.EventEmitter,this.widthChange=new d.EventEmitter,this.heightChange=new d.EventEmitter,this.topChange=new d.EventEmitter,this.leftChange=new d.EventEmitter,this.stateChange=new d.EventEmitter,this.messages={},this.tabIndex=0,this.draged=!1,this.resized=!1,this.windowSubscription=new u.Subscription,this.domSubs=new u.Subscription,j.validatePackage(fe),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;return s.direction=e?"rtl":"ltr"}),this.resizeDirections=ne,this.subscribeEvents()}x.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:x,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k},{token:Ae},{token:r.NgZone},{token:a.LocalizationService}],target:r.ɵɵFactoryTarget.Component}),x.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:x,selector:"kendo-window",inputs:{autoFocusedElement:"autoFocusedElement",title:"title",draggable:"draggable",resizable:"resizable",keepContent:"keepContent",state:"state",minWidth:"minWidth",minHeight:"minHeight",width:"width",height:"height",top:"top",left:"left"},outputs:{dragStart:"dragStart",dragEnd:"dragEnd",resizeStart:"resizeStart",resizeEnd:"resizeEnd",close:"close",widthChange:"widthChange",heightChange:"heightChange",topChange:"topChange",leftChange:"leftChange",stateChange:"stateChange"},host:{listeners:{focus:"onComponentFocus()",blur:"onComponentBlur()"},properties:{"attr.tabIndex":"this.tabIndex","class.k-window":"this.hostClasses","attr.dir":"this.dir","style.minWidth":"this.styleMinWidth","style.minHeight":"this.styleMinHeight","style.position":"this.stylePosition","class.k-window-maximized":"this.wrapperMaximizedClass","class.k-window-minimized":"this.wrapperMinimizedClass"}},providers:[k,Ae,i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.window"}],queries:[{propertyName:"titleBarContent",first:!0,predicate:C,descendants:!0}],viewQueries:[{propertyName:"titleBarView",first:!0,predicate:C,descendants:!0},{propertyName:"resizeHandles",predicate:t,descendants:!0}],exportAs:["kendoWindow"],usesOnChanges:!0,ngImport:r,template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n ',isInline:!0,components:[{type:C,selector:"kendo-window-titlebar",inputs:["template"]}],directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:T,selector:"button[kendoWindowMinimizeAction]",inputs:["window"],exportAs:["kendoWindowMinimizeAction"]},{type:z,selector:"button[kendoWindowMaximizeAction]",inputs:["window"],exportAs:["kendoWindowMaximizeAction"]},{type:E,selector:"button[kendoWindowRestoreAction]",inputs:["window"],exportAs:["kendoWindowRestoreAction"]},{type:o,selector:"button[kendoWindowCloseAction]",inputs:["window"],exportAs:["kendoWindowCloseAction"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:t,selector:"[kendoWindowResizeHandle]",inputs:["direction"]},{type:B.DraggableDirective,selector:"[kendoDraggable]",inputs:["enableDrag"],outputs:["kendoPress","kendoDrag","kendoRelease"]}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:x,decorators:[{type:d.Component,args:[{exportAs:"kendoWindow",providers:[k,Ae,i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.window"}],selector:"kendo-window",template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k},{type:Ae},{type:r.NgZone},{type:a.LocalizationService}]},propDecorators:{autoFocusedElement:[{type:d.Input}],title:[{type:d.Input}],draggable:[{type:d.Input}],resizable:[{type:d.Input}],keepContent:[{type:d.Input}],state:[{type:d.Input}],minWidth:[{type:d.Input}],minHeight:[{type:d.Input}],width:[{type:d.Input}],height:[{type:d.Input}],top:[{type:d.Input}],left:[{type:d.Input}],dragStart:[{type:d.Output}],dragEnd:[{type:d.Output}],resizeStart:[{type:d.Output}],resizeEnd:[{type:d.Output}],close:[{type:d.Output}],widthChange:[{type:d.Output}],heightChange:[{type:d.Output}],topChange:[{type:d.Output}],leftChange:[{type:d.Output}],stateChange:[{type:d.Output}],tabIndex:[{type:d.HostBinding,args:["attr.tabIndex"]}],hostClasses:[{type:d.HostBinding,args:["class.k-window"]}],dir:[{type:d.HostBinding,args:["attr.dir"]}],titleBarView:[{type:d.ViewChild,args:[C,{static:!1}]}],titleBarContent:[{type:d.ContentChild,args:[C,{static:!1}]}],resizeHandles:[{type:d.ViewChildren,args:[t]}],styleMinWidth:[{type:d.HostBinding,args:["style.minWidth"]}],styleMinHeight:[{type:d.HostBinding,args:["style.minHeight"]}],stylePosition:[{type:d.HostBinding,args:["style.position"]}],wrapperMaximizedClass:[{type:d.HostBinding,args:["class.k-window-maximized"]}],wrapperMinimizedClass:[{type:d.HostBinding,args:["class.k-window-minimized"]}],onComponentFocus:[{type:d.HostListener,args:["focus"]}],onComponentBlur:[{type:d.HostListener,args:["blur"]}]}});function Ne(){}function He(){}var Ze=function(){},S=(Object.defineProperty(_e.prototype,"container",{get:function(){return _e.container},set:function(e){_e.container=e},enumerable:!1,configurable:!0}),_e);function _e(){}S.container=null,S.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:S,deps:[],target:r.ɵɵFactoryTarget.Injectable}),S.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:S}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:S,decorators:[{type:d.Injectable}]});qe.prototype.get=function(e,t){return e===Ne?this.getWindowRef():this.parentInjector.get(e,t)};var Xe=qe;function qe(e,t){this.getWindowRef=e,this.parentInjector=t}Ke.prototype.open=function(n){var e=this.resolver.resolveComponentFactory(x),t=n.appendTo||this.containerService.container;if(!t)throw new Error("Cannot attach window to the page.\n Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n ");function i(e){a.next(e||new Ze),r.componentRef&&r.componentRef.destroy(),s.destroy()}var o={close:function(){},content:null,result:null,window:null},r=this.contentFrom(n.content,t,o),s=t.createComponent(e,void 0,void 0,r.nodes),a=(o.window=s,this.applyOptions(s.instance,n),new u.Subject),t=u.merge(a,s.instance.close.pipe(g.map(function(e){return e||new Ze}),g.filter(function(e){var t;return!n.preventClose||(t=n.content,t=G(t)||t instanceof d.TemplateRef?void 0:o,!n.preventClose(e,t))}))).pipe(g.take(1),g.share());return t.subscribe(i),o.close=i,o.result=t,s.changeDetectorRef.markForCheck(),o},Ke.prototype.applyOptions=function(e,t){p(t.htmlAttributes)&&(e.htmlAttributes=t.htmlAttributes),p(t.cssClass)&&(e.cssClass=t.cssClass),p(t.title)&&(e.title=t.title),p(t.keepContent)&&(e.keepContent=t.keepContent),p(t.width)&&(e.width=t.width),p(t.minWidth)&&(e.minWidth=t.minWidth),p(t.height)&&(e.height=t.height),p(t.minHeight)&&(e.minHeight=t.minHeight),p(t.left)&&(e.left=t.left),p(t.top)&&(e.top=t.top),p(t.draggable)&&(e.draggable=t.draggable),p(t.resizable)&&(e.resizable=t.resizable),p(t.messages&&t.messages.closeTitle)&&(e.messages.closeTitle=t.messages.closeTitle),p(t.messages&&t.messages.restoreTitle)&&(e.messages.restoreTitle=t.messages.restoreTitle),p(t.messages&&t.messages.maximizeTitle)&&(e.messages.maximizeTitle=t.messages.maximizeTitle),p(t.messages&&t.messages.minimizeTitle)&&(e.messages.minimizeTitle=t.messages.minimizeTitle),p(t.autoFocusedElement)&&(e.autoFocusedElement=t.autoFocusedElement),p(t.state)&&(e.state=t.state,"minimized"===t.state&&(e.keepContent=!0)),t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content),t.titleBarContent instanceof d.TemplateRef&&(e.titleBarTemplate=t.titleBarContent)},Ke.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=null;return"string"==typeof e?o=[i.createText(e)]:!e||e instanceof d.TemplateRef||(i=new Xe(function(){return n},t.injector),e=this.resolver.resolveComponentFactory(e),o=[(r=t.createComponent(e,void 0,i)).location.nativeElement],n.content=r),{componentRef:r,nodes:[[],o]}};s=Ke;function Ke(e,t){this.resolver=e,this.containerService=t}s.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:s,deps:[{token:r.ComponentFactoryResolver},{token:S}],target:r.ɵɵFactoryTarget.Injectable}),s.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:s}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:s,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:r.ComponentFactoryResolver},{type:S,decorators:[{type:d.Inject,args:[S]}]}]}});var Ye,A=function(e,t){t.container=e},F=(A.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:A,deps:[{token:r.ViewContainerRef},{token:w}],target:r.ɵɵFactoryTarget.Directive}),A.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:A,selector:"[kendoDialogContainer]",ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:A,decorators:[{type:d.Directive,args:[{selector:"[kendoDialogContainer]"}]}],ctorParameters:function(){return[{type:r.ViewContainerRef},{type:w}]}}),H($e,Ye=m),Object.defineProperty($e.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),$e);function $e(e){var t=Ye.call(this)||this;return t.service=e,t}F.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:F,deps:[{token:a.LocalizationService}],target:r.ɵɵFactoryTarget.Directive}),F.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"kendo-dialog-messages, kendo-window-messages",providers:[{provide:m,useExisting:d.forwardRef(function(){return F})}],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:F,decorators:[{type:d.Directive,args:[{providers:[{provide:m,useExisting:d.forwardRef(function(){return F})}],selector:"kendo-dialog-messages, kendo-window-messages"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var Ue=[c,F,f],V=function(){},n=(V.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,deps:[],target:r.ɵɵFactoryTarget.NgModule}),V.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,declarations:[c,F,f],imports:[n.CommonModule],exports:[c,F,f,n.CommonModule]}),V.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,imports:[[n.CommonModule],n.CommonModule]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,decorators:[{type:d.NgModule,args:[{declarations:[Ue],exports:[Ue,n.CommonModule],imports:[n.CommonModule]}]}]}),[b,y]),M=function(){},n=(M.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,deps:[],target:r.ɵɵFactoryTarget.NgModule}),M.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,declarations:[b,y,A],imports:[V],exports:[b,y,c,F,f,A]}),M.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,providers:[w,h],imports:[[V]]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,decorators:[{type:d.NgModule,args:[{declarations:[n,A],exports:[n,Ue,A],imports:[V],providers:[w,h]}]}]}),function(e,t){t.container=e}),Ge=(n.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:n,deps:[{token:r.ViewContainerRef},{token:S}],target:r.ɵɵFactoryTarget.Directive}),n.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:n,selector:"[kendoWindowContainer]",ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:n,decorators:[{type:d.Directive,args:[{selector:"[kendoWindowContainer]"}]}],ctorParameters:function(){return[{type:r.ViewContainerRef},{type:S}]}}),[t,x,C,o,T,z,E]),Qe=[x,o,T,z,E,C],P=function(){},t=(P.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,deps:[],target:r.ɵɵFactoryTarget.NgModule}),P.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,declarations:[t,x,C,o,T,z,E,n],imports:[V,R.DraggableModule],exports:[x,o,T,z,E,C,c,F,f,n]}),P.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,providers:[S,s],imports:[[V,R.DraggableModule]]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,decorators:[{type:d.NgModule,args:[{declarations:[Ge,n],exports:[Qe,Ue,n],imports:[V,R.DraggableModule],providers:[S,s]}]}]}),function(){});t.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,deps:[],target:r.ɵɵFactoryTarget.NgModule}),t.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,exports:[M,P]}),t.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,imports:[M,P]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,decorators:[{type:d.NgModule,args:[{exports:[M,P]}]}]}),e.CustomMessagesComponent=F,e.DialogAction=Ie,e.DialogActionsComponent=c,e.DialogCloseResult=ye,e.DialogComponent=b,e.DialogContainerDirective=A,e.DialogContentBase=ve,e.DialogModule=M,e.DialogRef=be,e.DialogService=h,e.DialogSettings=Ce,e.DialogTitleBarComponent=y,e.DialogsModule=t,e.LocalizedMessagesDirective=f,e.Messages=m,e.WindowCloseActionDirective=o,e.WindowCloseResult=Ze,e.WindowComponent=x,e.WindowContainerDirective=n,e.WindowMaximizeActionDirective=z,e.WindowMinimizeActionDirective=T,e.WindowModule=P,e.WindowRef=Ne,e.WindowRestoreActionDirective=E,e.WindowService=s,e.WindowSettings=He,e.WindowTitleBarComponent=C,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/animations"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@progress/kendo-popup-common"),require("@progress/kendo-angular-buttons")):"function"==typeof define&&define.amd?define("KendoAngularDialog",["exports","@angular/core","@angular/animations","rxjs","rxjs/operators","@angular/common","@progress/kendo-angular-l10n","@progress/kendo-licensing","@progress/kendo-angular-common","@progress/kendo-popup-common","@progress/kendo-angular-buttons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularDialog={},e.ng.core,e.ng.animations,e.rxjs,e.rxjs.operators,e.ng.common,e.KendoAngularL10N,e.KendoLicensing,e.KendoAngularCommon,e.kendoPopupCommon,e.KendoAngularButtons)}(this,function(e,d,t,u,g,n,i,j,R,W,o){"use strict";function L(n){if(n&&n.__esModule)return n;var i=Object.create(null);return n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(i,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),i.default=n,Object.freeze(i)}var r=L(d),s=L(n),a=L(i),B=L(R),N=function(e,t){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function Z(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function _(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||((i=i||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;function X(e){return String(e).trim().split(" ")}function q(e,t){var n=X(t);return Boolean(X(e.className).find(function(e){return 0<=n.indexOf(e)}))}function K(e,t){var n,i;return void 0===t&&(t=!0),!!e.tagName&&(n=e.tagName.toLowerCase(),i=null!==(i=e.getAttribute("tabIndex"))&&!isNaN(i)&&-1<i,(J.test(n)?!e.disabled:i)&&(!t||!(!(i=(n=e).getBoundingClientRect()).width||!i.height)&&"hidden"!==window.getComputedStyle(n).visibility))}function Y(e,t,n){for(var i in e)i&&t.setAttribute(n,i,e[i])}function $(e){return p(t=e)&&!Array.isArray(t)&&"object"==typeof t?(n=e,i=[],Object.keys(n).forEach(function(e){var t=oe(e);n[e]&&t[0]&&i.push.apply(i,_([],Z(t)))}),i):G(e)?(o=[],oe(e).forEach(function(e){o.push(e)}),o):Array.isArray(e)?(r=[],e.forEach(function(e){e=oe(e);e[0]&&r.push.apply(r,_([],Z(e)))}),r):void 0;var n,i,t,o,r}function U(e){(e=e.originalEvent).stopPropagation(),e.preventDefault()}function G(e){return e instanceof String||"string"==typeof e}function Q(e){return e+("number"==typeof(e=e)&&isFinite(e)?"px":"")}var l,p=function(e){return null!=e},J=/^(?:a|input|select|textarea|button|object)$/i,ee=((c=l=l||{})[c.esc=27]="esc",c[c.tab=9]="tab",c[c.enter=13]="enter",c[c.space=32]="space",c[c.ctrl=17]="ctrl",c[c.shift=16]="shift",c[c.left=37]="left",c[c.up=38]="up",c[c.right=39]="right",c[c.down=40]="down","k-dialog-wrapper k-dialog-buttongroup k-dialog-action"),te=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),ne=["n","e","s","w","se","sw","ne","nw"],ie=["top","left","width","height"],oe=function(e){return e.trim().replace(/\s+/g," ").split(" ")},c=(Object.defineProperty(re.prototype,"actions",{set:function(e){if(e instanceof d.TemplateRef)this.actionsTemplate=e;else{if(!Array.isArray(e))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=e}},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"className",{get:function(){return"stretched"===this.layout},enumerable:!1,configurable:!0}),re.prototype.onButtonClick=function(e,t){this.action.emit(e)},re.prototype.buttonClass=function(e){var t=["k-button k-button-md k-rounded-md"],n=e.fillMode||"solid",i=e.themeColor||"base",e=e.cssClass?$(e.cssClass):[];return t.push("k-button-"+n+" k-button-"+n+"-"+i),(t=0<e.length?t.concat(e):t).join(" ")},re);function re(e){this.el=e,this.layout="stretched",this.action=new d.EventEmitter,this.buttonGroupClassName=!0}c.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:c,deps:[{token:r.ElementRef}],target:r.ɵɵFactoryTarget.Component}),c.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:c,selector:"kendo-dialog-actions",inputs:{actions:"actions",layout:"layout"},outputs:{action:"action"},host:{properties:{"class.k-dialog-buttongroup":"this.buttonGroupClassName","class.k-actions":"this.buttonGroupClassName","class.k-actions-stretched":"this.className"}},ngImport:r,template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="actionsArray; else actionTemplate">\n <button\n type="button"\n *ngFor="let action of actionsArray"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>\n ',isInline:!0,directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:s.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:c,decorators:[{type:d.Component,args:[{selector:"kendo-dialog-actions",template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="actionsArray; else actionTemplate">\n <button\n type="button"\n *ngFor="let action of actionsArray"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template #actionTemplate [ngTemplateOutlet]="actionsTemplate"></ng-template>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef}]},propDecorators:{actions:[{type:d.Input}],layout:[{type:d.Input}],action:[{type:d.Output}],buttonGroupClassName:[{type:d.HostBinding,args:["class.k-dialog-buttongroup"]},{type:d.HostBinding,args:["class.k-actions"]}],className:[{type:d.HostBinding,args:["class.k-actions-stretched"]}]}});ae.prototype.preventDefault=function(){this.prevented=!0},ae.prototype.isDefaultPrevented=function(){return this.prevented};var se=ae;function ae(){this.prevented=!1}var le,ce=new d.InjectionToken("Dialog LocalizationService"),h=(H(pe,le=i.LocalizationService),pe.prototype.get=function(e){return this.dialogLocalization?this.dialogLocalization.get(e):le.prototype.get.call(this,e)},pe);function pe(e,t,n,i){e=le.call(this,e,t,n)||this;return e.dialogLocalization=i,e}h.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,deps:[{token:i.L10N_PREFIX},{token:a.MessageService,optional:!0},{token:i.RTL,optional:!0},{token:ce,optional:!0}],target:r.ɵɵFactoryTarget.Injectable}),h.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:void 0,decorators:[{type:d.Inject,args:[i.L10N_PREFIX]}]},{type:a.MessageService,decorators:[{type:d.Optional}]},{type:void 0,decorators:[{type:d.Optional},{type:d.Inject,args:[i.RTL]}]},{type:a.LocalizationService,decorators:[{type:d.Optional},{type:d.Inject,args:[ce]}]}]}});H(ue,de=i.ComponentMessages);var de,m=ue;function ue(){return null!==de&&de.apply(this,arguments)||this}m.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:m,deps:null,target:r.ɵɵFactoryTarget.Directive}),m.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:m,selector:"kendo-dialog-messages-base",inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:m,decorators:[{type:d.Directive,args:[{selector:"kendo-dialog-messages-base"}]}],propDecorators:{closeTitle:[{type:d.Input}],restoreTitle:[{type:d.Input}],maximizeTitle:[{type:d.Input}],minimizeTitle:[{type:d.Input}]}});H(he,ge=m);var ge,f=he;function he(e){var t=ge.call(this)||this;return t.service=e,t}f.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:f,deps:[{token:a.LocalizationService}],target:r.ɵɵFactoryTarget.Directive}),f.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n ",providers:[{provide:m,useExisting:d.forwardRef(function(){return f})}],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:f,decorators:[{type:d.Directive,args:[{providers:[{provide:m,useExisting:d.forwardRef(function(){return f})}],selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});Object.defineProperty(me.prototype,"className",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!1,configurable:!0}),me.prototype.ngAfterViewInit=function(){var e=this;this.zone.onStable.pipe(g.take(1)).subscribe(function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)})},me.prototype.onCloseClick=function(e){e.preventDefault();e=new se;this.close.emit(e)};var y=me;function me(e,t,n){this.zone=e,this.hostElement=t,this.localizationService=n,this.close=new d.EventEmitter}y.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:y,deps:[{token:r.NgZone},{token:r.ElementRef},{token:a.LocalizationService,optional:!0}],target:r.ɵɵFactoryTarget.Component}),y.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:y,selector:"kendo-dialog-titlebar",inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},host:{properties:{"class.k-window-titlebar":"this.className","class.k-dialog-titlebar":"this.className"}},providers:[h,{provide:i.LocalizationService,useExisting:h},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],ngImport:r,template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n ',isInline:!0,directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:y,decorators:[{type:d.Component,args:[{selector:"kendo-dialog-titlebar",providers:[h,{provide:i.LocalizationService,useExisting:h},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:r.NgZone},{type:r.ElementRef},{type:a.LocalizationService,decorators:[{type:d.Optional}]}]},propDecorators:{close:[{type:d.Output}],id:[{type:d.Input}],closeTitle:[{type:d.Input}],className:[{type:d.HostBinding,args:["class.k-window-titlebar"]},{type:d.HostBinding,args:["class.k-dialog-titlebar"]}]}});var fe={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1649228719,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},ye=function(){},b=(Object.defineProperty(v.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){Y(e,this.renderer,this.wrapper.nativeElement);var t=this.wrapper.nativeElement,n=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==n&&n&&(this.direction=n),this.tabIndex!==t&&t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),v.prototype.ngAfterContentInit=function(){var e=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(function(){p(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(g.take(1)).subscribe(function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))}))},v.prototype.ngAfterViewInit=function(){var e=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(function(){p(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(g.take(1)).subscribe(function(){e.bubble("close",e.titlebarView.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))})),this.initDomEvents()},v.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()},v.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()},v.prototype.focus=function(){var e=this.wrapper.nativeElement;p(e)&&e.focus()},v.prototype.initDomEvents=function(){var t=this;this.wrapper&&this.ngZone.runOutsideAngular(function(){t.domSubs.add(t.renderer.listen(t.wrapper.nativeElement,"keydown",function(e){t.onKeyDown(e)}))})},v.prototype.onKeyDown=function(e){var t=this,n=e.target,i=n.parentElement;(q(n,ee)||q(i,ee))&&e.keyCode===l.esc&&this.ngZone.run(function(){t.close.emit(new ye)}),q(n,"k-button")&&q(i,"k-dialog-buttongroup")&&(e.keyCode===l.left||e.keyCode===l.right)&&this.ngZone.run(function(){t.handleActionButtonFocus(i,e.keyCode)}),e.keyCode===l.tab&&this.ngZone.run(function(){t.keepFocusWithinComponent(n,e)})},v.prototype.setServiceClasses=function(e,t){var n=this,i=this.wrapper.nativeElement;e&&$(e).forEach(function(e){n.renderer.removeClass(i,e)}),t&&$(t).forEach(function(e){n.renderer.addClass(i,e)})},v.prototype.handleInitialFocus=function(){var e,t=this.wrapper.nativeElement,n=this.findPrimary(t);this.autoFocusedElement?(e=t.querySelector(this.autoFocusedElement))&&e.focus():(this.shouldFocusPrimary(n)?n:t).focus()},v.prototype.findPrimary=function(e){for(var t=e.querySelectorAll(".k-actions .k-button"),n=t.length-1;0<=n;n--)for(var i=t[n].classList,o=0;o<i.length;o++)if(i[o].endsWith("-primary"))return t[n]},v.prototype.handleActionButtonFocus=function(e,t){for(var n=this.getAllFocusableChildren(e),i=0;i<n.length;i++)if(n[i]===document.activeElement){if(t===l.left&&0<i){n[i-1].focus();break}if(t===l.right&&i<n.length-1){n[i+1].focus();break}}},v.prototype.keepFocusWithinComponent=function(e,t){var n=this.wrapper.nativeElement,n=Z(this.getFirstAndLastFocusable(n),2),i=n[0],n=n[1],o=!t.shiftKey&&e===n,e=t.shiftKey&&e===i;o&&(t.preventDefault(),i.focus()),e&&(t.preventDefault(),n.focus())},v.prototype.shouldFocusPrimary=function(e){return p(e)&&K(e)},v.prototype.getAllFocusableChildren=function(e){return e.querySelectorAll(te)},v.prototype.getFirstAndLastFocusable=function(e){var t=this.getAllFocusableChildren(e);return[0<t.length?t[0]:e,0<t.length?t[t.length-1]:e]},v.prototype.generateTitleId=function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()},v.prototype.generateContentId=function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()},Object.defineProperty(v.prototype,"wrapperClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"styles",{get:function(){var e={};return this.width&&(e.width=Q(this.width)),this.height&&(e.height=Q(this.height)),this.minWidth&&(e.minWidth=Q(this.minWidth)),this.maxWidth&&(e.maxWidth=Q(this.maxWidth)),this.minHeight&&(e.minHeight=Q(this.minHeight)),this.maxHeight&&(e.maxHeight=Q(this.maxHeight)),e},enumerable:!1,configurable:!0}),v.prototype.bubble=function(t,e){var n=this;e&&(e=e[t].subscribe(function(e){return n[t].emit(e)}),this.subscriptions.push(e))},v);function v(e,t,n,i,o){var r=this;this.wrapper=e,this.renderer=t,this.cdr=i,this.ngZone=o,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new d.EventEmitter,this.close=new d.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.domSubs=new u.Subscription,j.validatePackage(fe),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe(function(e){e=e.rtl;return r.direction=e?"rtl":"ltr"})),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}b.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:b,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:a.LocalizationService},{token:r.ChangeDetectorRef},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Component}),b.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:b,selector:"kendo-dialog",inputs:{actions:"actions",actionsLayout:"actionsLayout",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight"},outputs:{action:"action",close:"close"},host:{properties:{"attr.dir":"this.dir","attr.tabIndex":"this.tabIndex","class.k-dialog-wrapper":"this.wrapperClass"}},providers:[i.LocalizationService,{provide:ce,useExisting:i.LocalizationService},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],queries:[{propertyName:"titlebarContent",predicate:y}],viewQueries:[{propertyName:"actionsView",first:!0,predicate:c,descendants:!0},{propertyName:"titlebarView",predicate:y,descendants:!0}],exportAs:["kendoDialog"],ngImport:r,template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n ',isInline:!0,components:[{type:y,selector:"kendo-dialog-titlebar",inputs:["id","closeTitle"],outputs:["close"]},{type:c,selector:"kendo-dialog-actions",inputs:["actions","layout"],outputs:["action"]}],directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "},{type:s.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}],animations:[t.trigger("overlayAppear",[t.state("in",t.style({opacity:1})),t.transition("void => *",[t.style({opacity:.1}),t.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),t.trigger("dialogSlideInAppear",[t.state("in",t.style({transform:"translate(0, 0)"})),t.transition("void => *",[t.style({transform:"translate(0, -10%)"}),t.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:b,decorators:[{type:d.Component,args:[{animations:[t.trigger("overlayAppear",[t.state("in",t.style({opacity:1})),t.transition("void => *",[t.style({opacity:.1}),t.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),t.trigger("dialogSlideInAppear",[t.state("in",t.style({transform:"translate(0, 0)"})),t.transition("void => *",[t.style({transform:"translate(0, -10%)"}),t.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])],exportAs:"kendoDialog",providers:[i.LocalizationService,{provide:ce,useExisting:i.LocalizationService},{provide:i.L10N_PREFIX,useValue:"kendo.dialog"}],selector:"kendo-dialog",template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:a.LocalizationService},{type:r.ChangeDetectorRef},{type:r.NgZone}]},propDecorators:{actions:[{type:d.Input}],actionsLayout:[{type:d.Input}],autoFocusedElement:[{type:d.Input}],title:[{type:d.Input}],width:[{type:d.Input}],minWidth:[{type:d.Input}],maxWidth:[{type:d.Input}],height:[{type:d.Input}],minHeight:[{type:d.Input}],maxHeight:[{type:d.Input}],action:[{type:d.Output}],close:[{type:d.Output}],dir:[{type:d.HostBinding,args:["attr.dir"]}],tabIndex:[{type:d.HostBinding,args:["attr.tabIndex"]}],titlebarContent:[{type:d.ContentChildren,args:[y,{descendants:!1}]}],titlebarView:[{type:d.ViewChildren,args:[y]}],actionsView:[{type:d.ViewChild,args:[c,{static:!1}]}],wrapperClass:[{type:d.HostBinding,args:["class.k-dialog-wrapper"]}]}});function be(){}we.prototype.ngAfterViewInit=function(){var t=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(g.filter(function(e){return!e.isDefaultPrevented()})).subscribe(function(){t.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(function(e){return t.dialog.dialog.instance.action.emit(e)})};var ve=we;function we(e){this.dialog=e}ve.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:ve,deps:[{token:be}],target:r.ɵɵFactoryTarget.Component}),ve.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:ve,selector:"kendo-dialog-content-base",viewQueries:[{propertyName:"dialogTitleBar",first:!0,predicate:y,descendants:!0},{propertyName:"dialogActions",first:!0,predicate:c,descendants:!0}],ngImport:r,template:"",isInline:!0}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:ve,decorators:[{type:d.Component,args:[{template:"",selector:"kendo-dialog-content-base"}]}],ctorParameters:function(){return[{type:be}]},propDecorators:{dialogTitleBar:[{type:d.ViewChild,args:[y,{static:!1}]}],dialogActions:[{type:d.ViewChild,args:[c,{static:!1}]}]}});Object.defineProperty(ke.prototype,"container",{get:function(){return ke.container},set:function(e){ke.container=e},enumerable:!1,configurable:!0});var w=ke;function ke(){}w.container=null,w.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:w,deps:[],target:r.ɵɵFactoryTarget.Injectable}),w.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:w}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:w,decorators:[{type:d.Injectable}]});function Ie(){}function Ce(){}Te.prototype.get=function(e,t){return e===be?this.getDialogRef():this.parentInjector.get(e,t)};var De=Te;function Te(e,t){this.getDialogRef=e,this.parentInjector=t}ze.prototype.open=function(e){var t=this.resolver.resolveComponentFactory(b),n=e.appendTo||this.containerService.container;if(!n)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(e.content,t,n,{close:function(){},content:null,dialog:null,result:null},e)},ze.prototype.initializeDialog=function(n,e,t,i,o){function r(e){e instanceof se&&(e=new ye),p.next(e||new ye),l.componentRef&&l.componentRef.destroy(),c.destroy()}var s,a,l=this.contentFrom(n,t,i),c=t.createComponent(e,void 0,void 0,l.nodes),p=((i.dialog=c).changeDetectorRef.markForCheck(),this.applyOptions(c.instance,o),new u.Subject),t=u.merge(p,u.merge(c.instance.close,c.instance.action).pipe(g.map(function(e){return e instanceof se?new ye:e}),g.filter(function(e){var t;return!o.preventAction||(t=G(t=n)||t instanceof d.TemplateRef?void 0:i,!o.preventAction(e,t))}))).pipe(g.take(1),g.share());return t.subscribe(r),i.close=r,i.result=t,n&&d.isDevMode()&&(e=l.nodes[0]&&0<l.nodes[0].length,t=l.nodes[2]&&0<l.nodes[2].length,s=o.title&&e,a=o.actions&&t,n.prototype instanceof ve?(s||a)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(e||t)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")),i},ze.prototype.applyOptions=function(e,t){e.title=t.title,e.actions=t.actions,e.actionsLayout=t.actionsLayout||"stretched",e.width=t.width,e.minWidth=t.minWidth,e.maxWidth=t.maxWidth,e.height=t.height,e.minHeight=t.minHeight,e.maxHeight=t.maxHeight,e.autoFocusedElement=t.autoFocusedElement,e.closeTitle=t.closeTitle,e.cssClass=t.cssClass,e.htmlAttributes=t.htmlAttributes,t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content)},ze.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=[],s=[],a=null;return"string"==typeof e?o=[i.createText(e)]:!e||e instanceof d.TemplateRef||(i=new De(function(){return n},t.injector),e=this.resolver.resolveComponentFactory(e),a=t.createComponent(e,void 0,i),r=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),o=[a.location.nativeElement],s=Array.from(a.location.nativeElement.querySelectorAll("kendo-dialog-actions")),n.content=a),{componentRef:a,nodes:[r,o,s]}};h=ze;function ze(e,t){this.resolver=e,this.containerService=t}h.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,deps:[{token:r.ComponentFactoryResolver},{token:w}],target:r.ɵɵFactoryTarget.Injectable}),h.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:h,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:r.ComponentFactoryResolver},{type:w,decorators:[{type:d.Inject,args:[w]}]}]}});function Ee(e,t){return function(n){return e.kendoDrag.pipe(g.takeUntil(e.kendoRelease.pipe(g.tap(function(){t.emit()}))),g.map(function(e){var t=e.pageX,e=e.pageY;return{originalX:n.pageX,originalY:n.pageY,pageX:t,pageY:e}}))}}var xe=10002,Oe={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},k=(I.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},I.prototype.init=function(e){var t=this.options.state,n=this.options;this.window=e,"default"!==t&&(this.restoreOptions=Object.assign({},n)),"minimized"===t&&(n.height=0,n.minHeight=0),"maximized"===t&&(n.position="fixed")},I.prototype.onDrag=function(e){var s=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,r;s.dragSubscription=e.kendoPress.pipe(g.tap(function(e){e.isTouch||U(e),s.focus.emit(),o=s.currentPosition(),r=!1}),g.switchMap(Ee(e,s.dragEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,e=e.originalY;r||(s.ensureWidth(),s.dragStart.emit(),r=!0),s.handleDrag({originalX:i,originalY:e,pageX:t,pageY:n,startPosition:o})})}))},I.prototype.handleDrag=function(e){var t=e.originalX,n=e.originalY,i=e.pageX,o=e.pageY,e=e.startPosition;this.options.left=e.x+i-t,this.options.top=e.y+o-n,"minimized"===this.options.state&&p(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:e.x+i-t,top:e.y+o-n})},I.prototype.onResize=function(e,s){var a=this;this.subscriptions.add(this.ngZone.runOutsideAngular(function(){var o,r=!1;e.kendoPress.pipe(g.tap(function(e){U(e),a.focus.emit(),o=a.currentOffsetAndPosition(),r=!1}),g.switchMap(Ee(e,a.resizeEnd))).subscribe(function(e){var t=e.pageX,n=e.pageY,i=e.originalX,e=e.originalY,t=(r||(a.resizeStart.emit(s),r=!0),t-i);a.handleResize(o,s,t,n-e)})}))},I.prototype.handleResize=function(e,t,n,i){var o,r,s,a=this,l=this.options,c={};0<=t.indexOf("e")&&(s=e.width+n)!==l.width&&s>=l.minWidth&&(c.width=s),0<=t.indexOf("n")&&(o=e.height-i,r=e.y+i,o!==l.height&&o>=l.minHeight&&r!==l.top&&(c.height=o,c.top=r)),0<=t.indexOf("s")&&(o=e.height+i)!==l.height&&o>=l.minHeight&&(c.height=o),0<=t.indexOf("w")&&(r=e.x+n,(s=e.width-n)!==l.width&&s>=l.minWidth&&r!==l.left&&(c.width=s,c.left=r)),(p(c.width)||p(c.height))&&(ie.forEach(function(e){p(c[e])&&(a.options[e]=c[e])}),this.change.emit(c))},I.prototype.restoreAction=function(){this.lastAction="restore",this.defaultState()},I.prototype.defaultState=function(){p(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},I.prototype.storeOptions=function(){this.restoreOptions=Object.assign({},this.options)},I.prototype.maximizeAction=function(){this.lastAction="maximize",this.maximizeState()},I.prototype.maximizeState=function(){this.storeOptions();var e=this.windowViewPort;this.options=Object.assign({},this.options,{height:e.height,left:0,position:"fixed",state:"maximized",top:0,width:e.width}),this.stateChange.emit("maximized")},I.prototype.minimizeAction=function(){this.lastAction="minimize",this.minimizeState()},I.prototype.minimizeState=function(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")},I.prototype.applyManualState=function(){switch(this.options.state){case"default":this.clearHeight(),this.defaultState();break;case"maximized":this.clearHeight(),this.maximizeState();break;case"minimized":this.minimizeState()}},I.prototype.closeAction=function(){this.close.emit()},I.prototype.ensureWidth=function(){var e=W.offset(this.window.nativeElement);p(this.options.width)||(this.options.width=e.width,this.change.emit({width:e.width}))},I.prototype.clearHeight=function(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight},I.prototype.center=function(){var e,t,n,i;"maximized"!==this.options.state&&(e=W.scrollPosition(this.window.nativeElement),t=this.windowViewPort,n=W.offset(this.window.nativeElement),i={},p(this.options.left)||(this.options.left=e.x+Math.max(0,(t.width-n.width)/2),i.left=this.options.left),p(this.options.top)||(this.options.top=e.y+Math.max(0,(t.height-n.height)/2),i.top=this.options.top),this.change.emit(i))},I.prototype.currentOffsetAndPosition=function(){var e=this.options,t=W.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:e.height||t.height,width:e.width||t.width})},I.prototype.currentPosition=function(){var e=this.options;return e.top&&e.left||this.setPosition(),{x:this.options.left,y:this.options.top}},I.prototype.setPosition=function(){var e=W.positionWithScroll(this.window.nativeElement,W.getDocumentElement(this.window.nativeElement));this.options.left=e.left,this.options.top=e.top},I.prototype.setRestoreOption=function(e,t){p(this.restoreOptions)&&(this.restoreOptions[e]=t)},Object.defineProperty(I.prototype,"nextPossibleZIndex",{get:function(){return xe},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"nextZIndex",{get:function(){return xe++},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"windowViewPort",{get:function(){return W.getWindowViewPort(this.window.nativeElement)},enumerable:!1,configurable:!0}),I);function I(e){this.ngZone=e,this.close=new d.EventEmitter,this.focus=new d.EventEmitter,this.change=new d.EventEmitter,this.stateChange=new d.EventEmitter,this.dragStart=new d.EventEmitter,this.dragEnd=new d.EventEmitter,this.resizeStart=new d.EventEmitter,this.resizeEnd=new d.EventEmitter,this.options=Object.assign({},Oe),this.lastAction=null,this.subscriptions=new u.Subscription,this.dragSubscription=new u.Subscription}k.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:k,deps:[{token:r.NgZone}],target:r.ɵɵFactoryTarget.Injectable}),k.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:k}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:k,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:r.NgZone}]}});Object.defineProperty(Se.prototype,"hostClass",{get:function(){return!0},enumerable:!1,configurable:!0}),Se.prototype.ngOnInit=function(){var t=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(u.of(this.draggable).subscribe(function(e){t.service.onResize(e,t.direction)})),this.subscriptions.add(this.service.resizeStart.subscribe(function(e){e!==t.direction&&t.setDisplay("none")})),this.subscriptions.add(this.service.dragStart.subscribe(function(){t.setDisplay("none")})),this.subscriptions.add(u.merge(this.service.resizeEnd,this.service.dragEnd).subscribe(function(){t.setDisplay("block")})),this.subscriptions.add(this.service.stateChange.subscribe(function(e){t.setDisplay("default"===e?"block":"none")}))},Se.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Se.prototype.setDisplay=function(e){void 0===e&&(e="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?e:"none")};t=Se;function Se(e,t,n,i){this.draggable=e,this.el=t,this.renderer=n,this.service=i,this.subscriptions=new u.Subscription}t.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,deps:[{token:B.DraggableDirective,host:!0},{token:r.ElementRef},{token:r.Renderer2},{token:k}],target:r.ɵɵFactoryTarget.Directive}),t.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"[kendoWindowResizeHandle]",inputs:{direction:"direction"},host:{properties:{"class.k-resize-handle":"this.hostClass"}},ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,decorators:[{type:d.Directive,args:[{selector:"[kendoWindowResizeHandle]"}]}],ctorParameters:function(){return[{type:B.DraggableDirective,decorators:[{type:d.Host}]},{type:r.ElementRef},{type:r.Renderer2},{type:k}]},propDecorators:{direction:[{type:d.Input}],hostClass:[{type:d.HostBinding,args:["class.k-resize-handle"]}]}});D.prototype.ngOnInit=function(){this.dragDirective=new R.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()},D.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()},D.prototype.subscribeDrag=function(){var t=this;this.unsubscribeDrag(),this.dragSubscription=u.of(this.dragDirective).subscribe(function(e){t.service.onDrag(e)})},D.prototype.subscribeStateChange=function(){var t=this;this.stateSubscription=this.service.stateChange.subscribe(function(e){t.service.options.draggable&&("maximized"===e?t.unsubscribeDrag():t.subscribeDrag())})},D.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},D.prototype.unsubscribeState=function(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)},Object.defineProperty(D.prototype,"className",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"touchAction",{get:function(){if(this.isDraggable)return"none"},enumerable:!1,configurable:!0}),D.prototype.handle=function(e){var e=e.target,t=this.service.options.state;q(e,"k-icon")||K(e,!1)||!this.service.options.resizable||("default"===t?this.service.maximizeAction():"maximized"===t&&this.service.restoreAction())},Object.defineProperty(D.prototype,"isDraggable",{get:function(){var e=this.service.options;return e.draggable&&"maximized"!==e.state},enumerable:!1,configurable:!0});var C=D;function D(e,t,n){this.el=e,this.ngZone=n,this.service=t}C.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:C,deps:[{token:r.ElementRef},{token:k},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Component}),C.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:C,selector:"kendo-window-titlebar",inputs:{template:"template"},host:{listeners:{dblclick:"handle($event)"},properties:{"class.k-window-titlebar":"this.className","class.k-dialog-titlebar":"this.className","style.touch-action":"this.touchAction"}},ngImport:r,template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n ',isInline:!0,directives:[{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:C,decorators:[{type:d.Component,args:[{selector:"kendo-window-titlebar",template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:k},{type:r.NgZone}]},propDecorators:{template:[{type:d.Input}],className:[{type:d.HostBinding,args:["class.k-window-titlebar"]},{type:d.HostBinding,args:["class.k-dialog-titlebar"]}],touchAction:[{type:d.HostBinding,args:["style.touch-action"]}],handle:[{type:d.HostListener,args:["dblclick",["$event"]]}]}});Fe.prototype.process=function(e){var t=this,n=e.keyCode;switch(n){case l.up:case l.down:case l.left:case l.right:e.preventDefault(),this.ngZone.run(function(){t.handleArrow(n,e)});break;case l.esc:this.ngZone.run(function(){t.handleEscape()})}},Fe.prototype.handleArrow=function(e,t){var n=this.window.options;t.altKey?this.handleStateChange(e,n.state):(t.ctrlKey||t.metaKey)&&"default"===n.state?this.handleResize(e):this.handleDrag(e)},Fe.prototype.handleEscape=function(){this.window.closeAction()},Fe.prototype.handleDrag=function(e){var t=this.window.options;if(t.draggable){var n=this.window.currentOffsetAndPosition(),i=this.window.restoreOptions,o={},r=10;switch(e!==l.left&&e!==l.up||(r*=-1),e){case l.left:case l.right:o.left=n.x+r,t.left=o.left;break;case l.up:case l.down:o.top=n.y+r,t.top=o.top}"minimized"===t.state&&p(i)&&(i.left=t.left,i.top=t.top),this.window.change.emit(o)}},Fe.prototype.handleResize=function(e){var t=this,n=this.window.options;if(n.resizable){var i,o=this.window.currentOffsetAndPosition(),r={},s=10;switch(e!==l.left&&e!==l.up||(s*=-1),e){case l.left:case l.right:(i=o.width+s)!==n.width&&i>=n.minWidth&&(r.width=i);break;case l.up:case l.down:(i=o.height+s)!==n.height&&i>=n.minHeight&&(r.height=i)}(p(r.width)||p(r.height))&&(ie.forEach(function(e){p(r[e])&&(t.window.options[e]=r[e])}),this.window.change.emit(r))}},Fe.prototype.handleStateChange=function(e,t){"minimized"===t&&e===l.up||"maximized"===t&&e===l.down?this.window.restoreAction():"default"===t&&(e===l.up?this.window.maximizeAction():e===l.down&&this.window.minimizeAction())};var Ae=Fe;function Fe(e,t){this.window=e,this.ngZone=t}Ae.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:Ae,deps:[{token:k},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Injectable}),Ae.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:Ae}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:Ae,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:k},{type:r.NgZone}]}});H(Me,Ve=o.Button),Me.prototype.onClick=function(){this.isDisabled||this.window.minimizeAction()},Object.defineProperty(Me.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!1,configurable:!0});var Ve,T=Me;function Me(e,t,n,i,o){e=Ve.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-minimize",e}T.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:T,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),T.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:T,selector:"button[kendoWindowMinimizeAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowMinimizeAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:T,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowMinimizeAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMinimizeAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});H(je,Pe=o.Button),je.prototype.onClick=function(){this.isDisabled||this.window.maximizeAction()},Object.defineProperty(je.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!1,configurable:!0});var Pe,z=je;function je(e,t,n,i,o){e=Pe.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-maximize",e}z.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:z,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),z.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:z,selector:"button[kendoWindowMaximizeAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowMaximizeAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:z,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowMaximizeAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMaximizeAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});H(We,Re=o.Button),We.prototype.onClick=function(){this.isDisabled||this.window.restoreAction()},Object.defineProperty(We.prototype,"visible",{get:function(){return"default"===this.window.options.state?"none":"inline-flex"},enumerable:!1,configurable:!0});var Re,E=We;function We(e,t,n,i,o){e=Re.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="window-restore",e}E.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:E,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),E.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:E,selector:"button[kendoWindowRestoreAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType","style.display":"this.visible"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowRestoreAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:E,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowRestoreAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowRestoreAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}],visible:[{type:d.HostBinding,args:["style.display"]}]}});H(Be,Le=o.Button),Be.prototype.onClick=function(){this.isDisabled||this.window.closeAction()};var Le,o=Be;function Be(e,t,n,i,o){e=Le.call(this,e,t,null,i,o)||this;return e.buttonType="button",e.window=n,e.fillMode="flat",e.icon="close",e}o.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:o,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k,optional:!0},{token:a.LocalizationService},{token:r.NgZone}],target:r.ɵɵFactoryTarget.Directive}),o.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:o,selector:"button[kendoWindowCloseAction]",inputs:{window:"window"},host:{listeners:{click:"onClick()"},properties:{"attr.type":"this.buttonType"}},providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],exportAs:["kendoWindowCloseAction"],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:o,decorators:[{type:d.Directive,args:[{exportAs:"kendoWindowCloseAction",providers:[i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowCloseAction]"}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k,decorators:[{type:d.Optional}]},{type:a.LocalizationService},{type:r.NgZone}]},propDecorators:{window:[{type:d.Input}],buttonType:[{type:d.HostBinding,args:["attr.type"]}],onClick:[{type:d.HostListener,args:["click"]}]}});Object.defineProperty(O.prototype,"draggable",{get:function(){return this.options.draggable},set:function(e){this.options.draggable=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"resizable",{get:function(){return this.options.resizable},set:function(e){this.options.resizable=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(e){Y(e,this.renderer,this.el.nativeElement);var t=this.el.nativeElement,n=t.getAttribute("dir"),t=t.getAttribute("tabindex");this.direction!==n&&(this.direction=n),this.tabIndex!==t&&(this.tabIndex=t),this._htmlAttributes=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"state",{get:function(){return this.options.state},set:function(e){this.options.state=e},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(e){this.setOption("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(e){this.setOption("minHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"width",{get:function(){return this.options.width},set:function(e){this.setOption("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"height",{get:function(){return this.options.height},set:function(e){this.setOption("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"top",{get:function(){return this.options.top},set:function(e){this.setOption("top",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"left",{get:function(){return this.options.left},set:function(e){this.setOption("left",e)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"closeButtonTitle",{get:function(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"restoreButtonTitle",{get:function(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"maximizeButtonTitle",{get:function(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minimizeButtonTitle",{get:function(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hostClasses",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"dir",{get:function(){return this.direction},enumerable:!1,configurable:!0}),O.prototype.ngAfterViewInit=function(){var e=this;this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular(function(){return Promise.resolve(null).then(function(){return e.setInitialOffset()})}),this.initDomEvents()},O.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},O.prototype.ngOnChanges=function(t){var e,n=this;ie.forEach(function(e){R.isChanged(e,t)&&n.setStyle(e,n.options[e])}),R.isChanged("draggable",t)&&(e=p(this.titleBarContent)?this.titleBarContent:this.titleBarView,t.draggable.currentValue?e.subscribeDrag():e.unsubscribeDrag()),R.isChanged("state",t)&&(p(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))},O.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},O.prototype.focus=function(){var e=this.el.nativeElement;p(e)&&e.focus()},O.prototype.bringToFront=function(){this.setNextZIndex()},O.prototype.setDimension=function(e,t){this.setOption(e,t),this.setStyle(e,t)},O.prototype.setOffset=function(e,t){this.setOption(e,t),this.setStyle(e,t)},Object.defineProperty(O.prototype,"showDefaultTitleBar",{get:function(){return!p(this.titleBarContent)},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"wrapperMinimizedClass",{get:function(){return"minimized"===this.state},enumerable:!1,configurable:!0}),O.prototype.onComponentFocus=function(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()},O.prototype.onComponentBlur=function(){this.renderer.removeClass(this.el.nativeElement,"k-focus")},O.prototype.subscribeEvents=function(){var i=this;R.isDocumentAvailable()&&(this.windowSubscription.add(this.service.focus.subscribe(function(){i.el.nativeElement.focus()})),this.windowSubscription.add(this.service.dragStart.subscribe(function(){i.draged=!0,i.ngZone.run(function(){i.dragStart.emit()})})),this.windowSubscription.add(this.service.dragEnd.subscribe(function(){i.draged&&(i.draged=!1,i.ngZone.run(function(){i.dragEnd.emit()}))})),this.windowSubscription.add(this.service.close.subscribe(function(){i.close.emit()})),this.windowSubscription.add(this.service.resizeStart.subscribe(function(){i.resized=!0,i.ngZone.run(function(){i.resizeStart.emit()})})),this.windowSubscription.add(this.service.resizeEnd.subscribe(function(){i.resized&&(i.resized=!1,i.ngZone.run(function(){i.resizeEnd.emit()}))})),this.windowSubscription.add(this.service.change.subscribe(function(n){ie.forEach(function(e){var t;p(n[e])&&(i.setStyle(e,n[e]),"maximized"!==i.state&&(t=i[e+"Change"]).observers.length&&i.ngZone.run(function(){t.emit(n[e])}))})})),this.windowSubscription.add(this.service.stateChange.subscribe(function(e){p(i.service.lastAction)&&(i.updateAllOffset(),i.stateChange.emit(e))})))},O.prototype.initDomEvents=function(){var t=this;this.el&&this.ngZone.runOutsideAngular(function(){t.domSubs.add(t.renderer.listen(t.el.nativeElement,"keydown",function(e){t.onKeyDown(e)}))})},O.prototype.onKeyDown=function(e){q(e.target,"k-window")&&this.navigation.process(e)},O.prototype.setServiceClasses=function(e,t){var n=this,i=this.el.nativeElement;e&&$(e).forEach(function(e){n.renderer.removeClass(i,e)}),t&&$(t).forEach(function(e){n.renderer.addClass(i,e)})},O.prototype.setNextZIndex=function(){var e=this.el.nativeElement.style["z-index"],t=this.service.nextPossibleZIndex;(!e||1<t-e)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},O.prototype.setInitialOffset=function(){var e;"maximized"!==this.state?(this.updateAllOffset(),p(this.left)&&p(this.top)||this.service.center()):(e=this.service.windowViewPort,this.setStyle("width",e.width),this.setStyle("height",e.height),this.setStyle("top",0),this.setStyle("left",0))},O.prototype.updateAllOffset=function(){var t=this;ie.forEach(function(e){p(t[e])?t.setStyle(e,t[e]):t.removeStyle(e)})},O.prototype.setStyle=function(e,t){this.renderer.setStyle(this.el.nativeElement,e,t+"px")},O.prototype.removeStyle=function(e){this.renderer.removeStyle(this.el.nativeElement,e)},Object.defineProperty(O.prototype,"options",{get:function(){return this.service.options},enumerable:!1,configurable:!0}),O.prototype.setOption=function(e,t){"number"!=typeof t&&"string"!=typeof t||(t="number"==typeof t?t:parseInt(t,10),this.options[e]=t,this.service.setRestoreOption(e,t))},O.prototype.handleInitialFocus=function(){var e=this.el.nativeElement;this.autoFocusedElement?(e=e.querySelector(this.autoFocusedElement))&&e.focus():this.focus()};var x=O;function O(e,t,n,i,o,r){var s=this;this.el=e,this.renderer=t,this.service=n,this.navigation=i,this.ngZone=o,this.localization=r,this.keepContent=!1,this.dragStart=new d.EventEmitter,this.dragEnd=new d.EventEmitter,this.resizeStart=new d.EventEmitter,this.resizeEnd=new d.EventEmitter,this.close=new d.EventEmitter,this.widthChange=new d.EventEmitter,this.heightChange=new d.EventEmitter,this.topChange=new d.EventEmitter,this.leftChange=new d.EventEmitter,this.stateChange=new d.EventEmitter,this.messages={},this.tabIndex=0,this.draged=!1,this.resized=!1,this.windowSubscription=new u.Subscription,this.domSubs=new u.Subscription,j.validatePackage(fe),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe(function(e){e=e.rtl;return s.direction=e?"rtl":"ltr"}),this.resizeDirections=ne,this.subscribeEvents()}x.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:x,deps:[{token:r.ElementRef},{token:r.Renderer2},{token:k},{token:Ae},{token:r.NgZone},{token:a.LocalizationService}],target:r.ɵɵFactoryTarget.Component}),x.ɵcmp=r.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:x,selector:"kendo-window",inputs:{autoFocusedElement:"autoFocusedElement",title:"title",draggable:"draggable",resizable:"resizable",keepContent:"keepContent",state:"state",minWidth:"minWidth",minHeight:"minHeight",width:"width",height:"height",top:"top",left:"left"},outputs:{dragStart:"dragStart",dragEnd:"dragEnd",resizeStart:"resizeStart",resizeEnd:"resizeEnd",close:"close",widthChange:"widthChange",heightChange:"heightChange",topChange:"topChange",leftChange:"leftChange",stateChange:"stateChange"},host:{listeners:{focus:"onComponentFocus()",blur:"onComponentBlur()"},properties:{"attr.tabIndex":"this.tabIndex","class.k-window":"this.hostClasses","attr.dir":"this.dir","style.minWidth":"this.styleMinWidth","style.minHeight":"this.styleMinHeight","style.position":"this.stylePosition","class.k-window-maximized":"this.wrapperMaximizedClass","class.k-window-minimized":"this.wrapperMinimizedClass"}},providers:[k,Ae,i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.window"}],queries:[{propertyName:"titleBarContent",first:!0,predicate:C,descendants:!0}],viewQueries:[{propertyName:"titleBarView",first:!0,predicate:C,descendants:!0},{propertyName:"resizeHandles",predicate:t,descendants:!0}],exportAs:["kendoWindow"],usesOnChanges:!0,ngImport:r,template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n ',isInline:!0,components:[{type:C,selector:"kendo-window-titlebar",inputs:["template"]}],directives:[{type:f,selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "},{type:s.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:T,selector:"button[kendoWindowMinimizeAction]",inputs:["window"],exportAs:["kendoWindowMinimizeAction"]},{type:z,selector:"button[kendoWindowMaximizeAction]",inputs:["window"],exportAs:["kendoWindowMaximizeAction"]},{type:E,selector:"button[kendoWindowRestoreAction]",inputs:["window"],exportAs:["kendoWindowRestoreAction"]},{type:o,selector:"button[kendoWindowCloseAction]",inputs:["window"],exportAs:["kendoWindowCloseAction"]},{type:s.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]},{type:s.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:t,selector:"[kendoWindowResizeHandle]",inputs:["direction"]},{type:B.DraggableDirective,selector:"[kendoDraggable]",inputs:["enableDrag"],outputs:["kendoPress","kendoDrag","kendoRelease"]}]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:x,decorators:[{type:d.Component,args:[{exportAs:"kendoWindow",providers:[k,Ae,i.LocalizationService,{provide:i.L10N_PREFIX,useValue:"kendo.window"}],selector:"kendo-window",template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n '}]}],ctorParameters:function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:k},{type:Ae},{type:r.NgZone},{type:a.LocalizationService}]},propDecorators:{autoFocusedElement:[{type:d.Input}],title:[{type:d.Input}],draggable:[{type:d.Input}],resizable:[{type:d.Input}],keepContent:[{type:d.Input}],state:[{type:d.Input}],minWidth:[{type:d.Input}],minHeight:[{type:d.Input}],width:[{type:d.Input}],height:[{type:d.Input}],top:[{type:d.Input}],left:[{type:d.Input}],dragStart:[{type:d.Output}],dragEnd:[{type:d.Output}],resizeStart:[{type:d.Output}],resizeEnd:[{type:d.Output}],close:[{type:d.Output}],widthChange:[{type:d.Output}],heightChange:[{type:d.Output}],topChange:[{type:d.Output}],leftChange:[{type:d.Output}],stateChange:[{type:d.Output}],tabIndex:[{type:d.HostBinding,args:["attr.tabIndex"]}],hostClasses:[{type:d.HostBinding,args:["class.k-window"]}],dir:[{type:d.HostBinding,args:["attr.dir"]}],titleBarView:[{type:d.ViewChild,args:[C,{static:!1}]}],titleBarContent:[{type:d.ContentChild,args:[C,{static:!1}]}],resizeHandles:[{type:d.ViewChildren,args:[t]}],styleMinWidth:[{type:d.HostBinding,args:["style.minWidth"]}],styleMinHeight:[{type:d.HostBinding,args:["style.minHeight"]}],stylePosition:[{type:d.HostBinding,args:["style.position"]}],wrapperMaximizedClass:[{type:d.HostBinding,args:["class.k-window-maximized"]}],wrapperMinimizedClass:[{type:d.HostBinding,args:["class.k-window-minimized"]}],onComponentFocus:[{type:d.HostListener,args:["focus"]}],onComponentBlur:[{type:d.HostListener,args:["blur"]}]}});function Ne(){}function He(){}var Ze=function(){},S=(Object.defineProperty(_e.prototype,"container",{get:function(){return _e.container},set:function(e){_e.container=e},enumerable:!1,configurable:!0}),_e);function _e(){}S.container=null,S.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:S,deps:[],target:r.ɵɵFactoryTarget.Injectable}),S.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:S}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:S,decorators:[{type:d.Injectable}]});qe.prototype.get=function(e,t){return e===Ne?this.getWindowRef():this.parentInjector.get(e,t)};var Xe=qe;function qe(e,t){this.getWindowRef=e,this.parentInjector=t}Ke.prototype.open=function(n){var e=this.resolver.resolveComponentFactory(x),t=n.appendTo||this.containerService.container;if(!t)throw new Error("Cannot attach window to the page.\n Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n ");function i(e){a.next(e||new Ze),r.componentRef&&r.componentRef.destroy(),s.destroy()}var o={close:function(){},content:null,result:null,window:null},r=this.contentFrom(n.content,t,o),s=t.createComponent(e,void 0,void 0,r.nodes),a=(o.window=s,this.applyOptions(s.instance,n),new u.Subject),t=u.merge(a,s.instance.close.pipe(g.map(function(e){return e||new Ze}),g.filter(function(e){var t;return!n.preventClose||(t=n.content,t=G(t)||t instanceof d.TemplateRef?void 0:o,!n.preventClose(e,t))}))).pipe(g.take(1),g.share());return t.subscribe(i),o.close=i,o.result=t,s.changeDetectorRef.markForCheck(),o},Ke.prototype.applyOptions=function(e,t){p(t.htmlAttributes)&&(e.htmlAttributes=t.htmlAttributes),p(t.cssClass)&&(e.cssClass=t.cssClass),p(t.title)&&(e.title=t.title),p(t.keepContent)&&(e.keepContent=t.keepContent),p(t.width)&&(e.width=t.width),p(t.minWidth)&&(e.minWidth=t.minWidth),p(t.height)&&(e.height=t.height),p(t.minHeight)&&(e.minHeight=t.minHeight),p(t.left)&&(e.left=t.left),p(t.top)&&(e.top=t.top),p(t.draggable)&&(e.draggable=t.draggable),p(t.resizable)&&(e.resizable=t.resizable),p(t.messages&&t.messages.closeTitle)&&(e.messages.closeTitle=t.messages.closeTitle),p(t.messages&&t.messages.restoreTitle)&&(e.messages.restoreTitle=t.messages.restoreTitle),p(t.messages&&t.messages.maximizeTitle)&&(e.messages.maximizeTitle=t.messages.maximizeTitle),p(t.messages&&t.messages.minimizeTitle)&&(e.messages.minimizeTitle=t.messages.minimizeTitle),p(t.autoFocusedElement)&&(e.autoFocusedElement=t.autoFocusedElement),p(t.state)&&(e.state=t.state,"minimized"===t.state&&(e.keepContent=!0)),t.content instanceof d.TemplateRef&&(e.contentTemplate=t.content),t.titleBarContent instanceof d.TemplateRef&&(e.titleBarTemplate=t.titleBarContent)},Ke.prototype.contentFrom=function(e,t,n){var i=t.injector.get(d.Renderer2),o=[],r=null;return"string"==typeof e?o=[i.createText(e)]:!e||e instanceof d.TemplateRef||(i=new Xe(function(){return n},t.injector),e=this.resolver.resolveComponentFactory(e),o=[(r=t.createComponent(e,void 0,i)).location.nativeElement],n.content=r),{componentRef:r,nodes:[[],o]}};s=Ke;function Ke(e,t){this.resolver=e,this.containerService=t}s.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:s,deps:[{token:r.ComponentFactoryResolver},{token:S}],target:r.ɵɵFactoryTarget.Injectable}),s.ɵprov=r.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:s}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:s,decorators:[{type:d.Injectable}],ctorParameters:function(){return[{type:r.ComponentFactoryResolver},{type:S,decorators:[{type:d.Inject,args:[S]}]}]}});var Ye,A=function(e,t){t.container=e},F=(A.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:A,deps:[{token:r.ViewContainerRef},{token:w}],target:r.ɵɵFactoryTarget.Directive}),A.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:A,selector:"[kendoDialogContainer]",ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:A,decorators:[{type:d.Directive,args:[{selector:"[kendoDialogContainer]"}]}],ctorParameters:function(){return[{type:r.ViewContainerRef},{type:w}]}}),H($e,Ye=m),Object.defineProperty($e.prototype,"override",{get:function(){return!0},enumerable:!1,configurable:!0}),$e);function $e(e){var t=Ye.call(this)||this;return t.service=e,t}F.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:F,deps:[{token:a.LocalizationService}],target:r.ɵɵFactoryTarget.Directive}),F.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:F,selector:"kendo-dialog-messages, kendo-window-messages",providers:[{provide:m,useExisting:d.forwardRef(function(){return F})}],usesInheritance:!0,ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:F,decorators:[{type:d.Directive,args:[{providers:[{provide:m,useExisting:d.forwardRef(function(){return F})}],selector:"kendo-dialog-messages, kendo-window-messages"}]}],ctorParameters:function(){return[{type:a.LocalizationService}]}});var Ue=[c,F,f],V=function(){},n=(V.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,deps:[],target:r.ɵɵFactoryTarget.NgModule}),V.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,declarations:[c,F,f],imports:[n.CommonModule],exports:[c,F,f,n.CommonModule]}),V.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,imports:[[n.CommonModule],n.CommonModule]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:V,decorators:[{type:d.NgModule,args:[{declarations:[Ue],exports:[Ue,n.CommonModule],imports:[n.CommonModule]}]}]}),[b,y]),M=function(){},n=(M.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,deps:[],target:r.ɵɵFactoryTarget.NgModule}),M.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,declarations:[b,y,A],imports:[V],exports:[b,y,c,F,f,A]}),M.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,providers:[w,h],imports:[[V]]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:M,decorators:[{type:d.NgModule,args:[{declarations:[n,A],exports:[n,Ue,A],imports:[V],providers:[w,h]}]}]}),function(e,t){t.container=e}),Ge=(n.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:n,deps:[{token:r.ViewContainerRef},{token:S}],target:r.ɵɵFactoryTarget.Directive}),n.ɵdir=r.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:n,selector:"[kendoWindowContainer]",ngImport:r}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:n,decorators:[{type:d.Directive,args:[{selector:"[kendoWindowContainer]"}]}],ctorParameters:function(){return[{type:r.ViewContainerRef},{type:S}]}}),[t,x,C,o,T,z,E]),Qe=[x,o,T,z,E,C],P=function(){},t=(P.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,deps:[],target:r.ɵɵFactoryTarget.NgModule}),P.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,declarations:[t,x,C,o,T,z,E,n],imports:[V,R.DraggableModule],exports:[x,o,T,z,E,C,c,F,f,n]}),P.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,providers:[S,s],imports:[[V,R.DraggableModule]]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:P,decorators:[{type:d.NgModule,args:[{declarations:[Ge,n],exports:[Qe,Ue,n],imports:[V,R.DraggableModule],providers:[S,s]}]}]}),function(){});t.ɵfac=r.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,deps:[],target:r.ɵɵFactoryTarget.NgModule}),t.ɵmod=r.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,exports:[M,P]}),t.ɵinj=r.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,imports:[M,P]}),r.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:r,type:t,decorators:[{type:d.NgModule,args:[{exports:[M,P]}]}]}),e.CustomMessagesComponent=F,e.DialogAction=Ie,e.DialogActionsComponent=c,e.DialogCloseResult=ye,e.DialogComponent=b,e.DialogContainerDirective=A,e.DialogContentBase=ve,e.DialogModule=M,e.DialogRef=be,e.DialogService=h,e.DialogSettings=Ce,e.DialogTitleBarComponent=y,e.DialogsModule=t,e.LocalizedMessagesDirective=f,e.Messages=m,e.WindowCloseActionDirective=o,e.WindowCloseResult=Ze,e.WindowComponent=x,e.WindowContainerDirective=n,e.WindowMaximizeActionDirective=z,e.WindowMinimizeActionDirective=T,e.WindowModule=P,e.WindowRef=Ne,e.WindowRestoreActionDirective=E,e.WindowService=s,e.WindowSettings=He,e.WindowTitleBarComponent=C,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-dialog',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1649228719,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -578,7 +578,7 @@ const packageMetadata = {
|
|
|
578
578
|
name: '@progress/kendo-angular-dialog',
|
|
579
579
|
productName: 'Kendo UI for Angular',
|
|
580
580
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
581
|
-
publishDate:
|
|
581
|
+
publishDate: 1649228719,
|
|
582
582
|
version: '',
|
|
583
583
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
584
584
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dialog",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.202204060707",
|
|
4
4
|
"description": "Dialog Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"friendlyName": "Dialogs"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@progress/kendo-schematics": "^
|
|
29
|
+
"@progress/kendo-schematics": "^3.0.0",
|
|
30
30
|
"tslib": "^2.3.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@angular/animations": "^12.0.0 || ^13.0.0",
|
|
34
34
|
"@angular/common": "^12.0.0 || ^13.0.0",
|
|
35
35
|
"@angular/core": "^12.0.0 || ^13.0.0",
|
|
36
|
-
"@progress/kendo-angular-buttons": "next",
|
|
37
|
-
"@progress/kendo-angular-common": "next",
|
|
38
|
-
"@progress/kendo-angular-l10n": "next",
|
|
36
|
+
"@progress/kendo-angular-buttons": ">8.0.0-next",
|
|
37
|
+
"@progress/kendo-angular-common": ">3.0.0-next",
|
|
38
|
+
"@progress/kendo-angular-l10n": ">4.0.0-next",
|
|
39
39
|
"@progress/kendo-licensing": "^1.0.2",
|
|
40
40
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
41
41
|
},
|